intlayer-editor 7.0.0 → 7.0.2-canary.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,349 @@
1
+ function b2(e,t){for(var n=0;n<t.length;n++){const i=t[n];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(i,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>i[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"]'))i(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const c of s.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&i(c)}).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 i(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function Ev(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Zm={exports:{}},Wl={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var dA;function E2(){if(dA)return Wl;dA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(i,o,s){var c=null;if(s!==void 0&&(c=""+s),o.key!==void 0&&(c=""+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:i,key:c,ref:o!==void 0?o:null,props:s}}return Wl.Fragment=t,Wl.jsx=n,Wl.jsxs=n,Wl}var fA;function x2(){return fA||(fA=1,Zm.exports=E2()),Zm.exports}var y=x2(),Ym={exports:{}},Me={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var hA;function S2(){if(hA)return Me;hA=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),c=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),b=Symbol.iterator;function x(j){return j===null||typeof j!="object"?null:(j=b&&j[b]||j["@@iterator"],typeof j=="function"?j:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,C={};function L(j,P,J){this.props=j,this.context=P,this.refs=C,this.updater=J||w}L.prototype.isReactComponent={},L.prototype.setState=function(j,P){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,P,"setState")},L.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function S(){}S.prototype=L.prototype;function R(j,P,J){this.props=j,this.context=P,this.refs=C,this.updater=J||w}var I=R.prototype=new S;I.constructor=R,A(I,L.prototype),I.isPureReactComponent=!0;var N=Array.isArray;function _(){}var k={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function U(j,P,J){var ne=J.ref;return{$$typeof:e,type:j,key:P,ref:ne!==void 0?ne:null,props:J}}function F(j,P){return U(j.type,P,j.props)}function H(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function te(j){var P={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(J){return P[J]})}var ce=/\/+/g;function X(j,P){return typeof j=="object"&&j!==null&&j.key!=null?te(""+j.key):P.toString(36)}function oe(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(_,_):(j.status="pending",j.then(function(P){j.status==="pending"&&(j.status="fulfilled",j.value=P)},function(P){j.status==="pending"&&(j.status="rejected",j.reason=P)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function M(j,P,J,ne,ue){var ye=typeof j;(ye==="undefined"||ye==="boolean")&&(j=null);var ie=!1;if(j===null)ie=!0;else switch(ye){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(j.$$typeof){case e:case t:ie=!0;break;case p:return ie=j._init,M(ie(j._payload),P,J,ne,ue)}}if(ie)return ue=ue(j),ie=ne===""?"."+X(j,0):ne,N(ue)?(J="",ie!=null&&(J=ie.replace(ce,"$&/")+"/"),M(ue,P,J,"",function(ze){return ze})):ue!=null&&(H(ue)&&(ue=F(ue,J+(ue.key==null||j&&j.key===ue.key?"":(""+ue.key).replace(ce,"$&/")+"/")+ie)),P.push(ue)),1;ie=0;var Re=ne===""?".":ne+":";if(N(j))for(var Ae=0;Ae<j.length;Ae++)ne=j[Ae],ye=Re+X(ne,Ae),ie+=M(ne,P,J,ye,ue);else if(Ae=x(j),typeof Ae=="function")for(j=Ae.call(j),Ae=0;!(ne=j.next()).done;)ne=ne.value,ye=Re+X(ne,Ae++),ie+=M(ne,P,J,ye,ue);else if(ye==="object"){if(typeof j.then=="function")return M(oe(j),P,J,ne,ue);throw P=String(j),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return ie}function Y(j,P,J){if(j==null)return j;var ne=[],ue=0;return M(j,ne,"","",function(ye){return P.call(J,ye,ue++)}),ne}function $(j){if(j._status===-1){var P=j._result;P=P(),P.then(function(J){(j._status===0||j._status===-1)&&(j._status=1,j._result=J)},function(J){(j._status===0||j._status===-1)&&(j._status=2,j._result=J)}),j._status===-1&&(j._status=0,j._result=P)}if(j._status===1)return j._result.default;throw j._result}var me=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},Ee={map:Y,forEach:function(j,P,J){Y(j,function(){P.apply(this,arguments)},J)},count:function(j){var P=0;return Y(j,function(){P++}),P},toArray:function(j){return Y(j,function(P){return P})||[]},only:function(j){if(!H(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return Me.Activity=g,Me.Children=Ee,Me.Component=L,Me.Fragment=n,Me.Profiler=o,Me.PureComponent=R,Me.StrictMode=i,Me.Suspense=f,Me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,Me.__COMPILER_RUNTIME={__proto__:null,c:function(j){return k.H.useMemoCache(j)}},Me.cache=function(j){return function(){return j.apply(null,arguments)}},Me.cacheSignal=function(){return null},Me.cloneElement=function(j,P,J){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var ne=A({},j.props),ue=j.key;if(P!=null)for(ye in P.key!==void 0&&(ue=""+P.key),P)!O.call(P,ye)||ye==="key"||ye==="__self"||ye==="__source"||ye==="ref"&&P.ref===void 0||(ne[ye]=P[ye]);var ye=arguments.length-2;if(ye===1)ne.children=J;else if(1<ye){for(var ie=Array(ye),Re=0;Re<ye;Re++)ie[Re]=arguments[Re+2];ne.children=ie}return U(j.type,ue,ne)},Me.createContext=function(j){return j={$$typeof:c,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:s,_context:j},j},Me.createElement=function(j,P,J){var ne,ue={},ye=null;if(P!=null)for(ne in P.key!==void 0&&(ye=""+P.key),P)O.call(P,ne)&&ne!=="key"&&ne!=="__self"&&ne!=="__source"&&(ue[ne]=P[ne]);var ie=arguments.length-2;if(ie===1)ue.children=J;else if(1<ie){for(var Re=Array(ie),Ae=0;Ae<ie;Ae++)Re[Ae]=arguments[Ae+2];ue.children=Re}if(j&&j.defaultProps)for(ne in ie=j.defaultProps,ie)ue[ne]===void 0&&(ue[ne]=ie[ne]);return U(j,ye,ue)},Me.createRef=function(){return{current:null}},Me.forwardRef=function(j){return{$$typeof:u,render:j}},Me.isValidElement=H,Me.lazy=function(j){return{$$typeof:p,_payload:{_status:-1,_result:j},_init:$}},Me.memo=function(j,P){return{$$typeof:h,type:j,compare:P===void 0?null:P}},Me.startTransition=function(j){var P=k.T,J={};k.T=J;try{var ne=j(),ue=k.S;ue!==null&&ue(J,ne),typeof ne=="object"&&ne!==null&&typeof ne.then=="function"&&ne.then(_,me)}catch(ye){me(ye)}finally{P!==null&&J.types!==null&&(P.types=J.types),k.T=P}},Me.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},Me.use=function(j){return k.H.use(j)},Me.useActionState=function(j,P,J){return k.H.useActionState(j,P,J)},Me.useCallback=function(j,P){return k.H.useCallback(j,P)},Me.useContext=function(j){return k.H.useContext(j)},Me.useDebugValue=function(){},Me.useDeferredValue=function(j,P){return k.H.useDeferredValue(j,P)},Me.useEffect=function(j,P){return k.H.useEffect(j,P)},Me.useEffectEvent=function(j){return k.H.useEffectEvent(j)},Me.useId=function(){return k.H.useId()},Me.useImperativeHandle=function(j,P,J){return k.H.useImperativeHandle(j,P,J)},Me.useInsertionEffect=function(j,P){return k.H.useInsertionEffect(j,P)},Me.useLayoutEffect=function(j,P){return k.H.useLayoutEffect(j,P)},Me.useMemo=function(j,P){return k.H.useMemo(j,P)},Me.useOptimistic=function(j,P){return k.H.useOptimistic(j,P)},Me.useReducer=function(j,P,J){return k.H.useReducer(j,P,J)},Me.useRef=function(j){return k.H.useRef(j)},Me.useState=function(j){return k.H.useState(j)},Me.useSyncExternalStore=function(j,P,J){return k.H.useSyncExternalStore(j,P,J)},Me.useTransition=function(){return k.H.useTransition()},Me.version="19.2.0",Me}var pA;function Vc(){return pA||(pA=1,Ym.exports=S2()),Ym.exports}var E=Vc();const Ne=Ev(E),bR=b2({__proto__:null,default:Ne},[E]);var Wm={exports:{}},Xl={},Xm={exports:{}},Qm={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var mA;function A2(){return mA||(mA=1,function(e){function t(M,Y){var $=M.length;M.push(Y);e:for(;0<$;){var me=$-1>>>1,Ee=M[me];if(0<o(Ee,Y))M[me]=Y,M[$]=Ee,$=me;else break e}}function n(M){return M.length===0?null:M[0]}function i(M){if(M.length===0)return null;var Y=M[0],$=M.pop();if($!==Y){M[0]=$;e:for(var me=0,Ee=M.length,j=Ee>>>1;me<j;){var P=2*(me+1)-1,J=M[P],ne=P+1,ue=M[ne];if(0>o(J,$))ne<Ee&&0>o(ue,J)?(M[me]=ue,M[ne]=$,me=ne):(M[me]=J,M[P]=$,me=P);else if(ne<Ee&&0>o(ue,$))M[me]=ue,M[ne]=$,me=ne;else break e}}return Y}function o(M,Y){var $=M.sortIndex-Y.sortIndex;return $!==0?$:M.id-Y.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 c=Date,u=c.now();e.unstable_now=function(){return c.now()-u}}var f=[],h=[],p=1,g=null,b=3,x=!1,w=!1,A=!1,C=!1,L=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,R=typeof setImmediate<"u"?setImmediate:null;function I(M){for(var Y=n(h);Y!==null;){if(Y.callback===null)i(h);else if(Y.startTime<=M)i(h),Y.sortIndex=Y.expirationTime,t(f,Y);else break;Y=n(h)}}function N(M){if(A=!1,I(M),!w)if(n(f)!==null)w=!0,_||(_=!0,te());else{var Y=n(h);Y!==null&&oe(N,Y.startTime-M)}}var _=!1,k=-1,O=5,U=-1;function F(){return C?!0:!(e.unstable_now()-U<O)}function H(){if(C=!1,_){var M=e.unstable_now();U=M;var Y=!0;try{e:{w=!1,A&&(A=!1,S(k),k=-1),x=!0;var $=b;try{t:{for(I(M),g=n(f);g!==null&&!(g.expirationTime>M&&F());){var me=g.callback;if(typeof me=="function"){g.callback=null,b=g.priorityLevel;var Ee=me(g.expirationTime<=M);if(M=e.unstable_now(),typeof Ee=="function"){g.callback=Ee,I(M),Y=!0;break t}g===n(f)&&i(f),I(M)}else i(f);g=n(f)}if(g!==null)Y=!0;else{var j=n(h);j!==null&&oe(N,j.startTime-M),Y=!1}}break e}finally{g=null,b=$,x=!1}Y=void 0}}finally{Y?te():_=!1}}}var te;if(typeof R=="function")te=function(){R(H)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,X=ce.port2;ce.port1.onmessage=H,te=function(){X.postMessage(null)}}else te=function(){L(H,0)};function oe(M,Y){k=L(function(){M(e.unstable_now())},Y)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(M){M.callback=null},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(M){switch(b){case 1:case 2:case 3:var Y=3;break;default:Y=b}var $=b;b=Y;try{return M()}finally{b=$}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(M,Y){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var $=b;b=M;try{return Y()}finally{b=$}},e.unstable_scheduleCallback=function(M,Y,$){var me=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?me+$:me):$=me,M){case 1:var Ee=-1;break;case 2:Ee=250;break;case 5:Ee=1073741823;break;case 4:Ee=1e4;break;default:Ee=5e3}return Ee=$+Ee,M={id:p++,callback:Y,priorityLevel:M,startTime:$,expirationTime:Ee,sortIndex:-1},$>me?(M.sortIndex=$,t(h,M),n(f)===null&&M===n(h)&&(A?(S(k),k=-1):A=!0,oe(N,$-me))):(M.sortIndex=Ee,t(f,M),w||x||(w=!0,_||(_=!0,te()))),M},e.unstable_shouldYield=F,e.unstable_wrapCallback=function(M){var Y=b;return function(){var $=b;b=Y;try{return M.apply(this,arguments)}finally{b=$}}}}(Qm)),Qm}var yA;function w2(){return yA||(yA=1,Xm.exports=A2()),Xm.exports}var Jm={exports:{}},hn={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var gA;function T2(){if(gA)return hn;gA=1;var e=Vc();function t(f){var h="https://react.dev/errors/"+f;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+f+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var i={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(f,h,p){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:f,containerInfo:h,implementation:p}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(f,h){if(f==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return hn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,hn.createPortal=function(f,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return s(f,h,null,p)},hn.flushSync=function(f){var h=c.T,p=i.p;try{if(c.T=null,i.p=2,f)return f()}finally{c.T=h,i.p=p,i.d.f()}},hn.preconnect=function(f,h){typeof f=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,i.d.C(f,h))},hn.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},hn.preinit=function(f,h){if(typeof f=="string"&&h&&typeof h.as=="string"){var p=h.as,g=u(p,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,x=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?i.d.S(f,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:g,integrity:b,fetchPriority:x}):p==="script"&&i.d.X(f,{crossOrigin:g,integrity:b,fetchPriority:x,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},hn.preinitModule=function(f,h){if(typeof f=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=u(h.as,h.crossOrigin);i.d.M(f,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&i.d.M(f)},hn.preload=function(f,h){if(typeof f=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,g=u(p,h.crossOrigin);i.d.L(f,p,{crossOrigin:g,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},hn.preloadModule=function(f,h){if(typeof f=="string")if(h){var p=u(h.as,h.crossOrigin);i.d.m(f,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else i.d.m(f)},hn.requestFormReset=function(f){i.d.r(f)},hn.unstable_batchedUpdates=function(f,h){return f(h)},hn.useFormState=function(f,h,p){return c.H.useFormState(f,h,p)},hn.useFormStatus=function(){return c.H.useHostTransitionStatus()},hn.version="19.2.0",hn}var vA;function ER(){if(vA)return Jm.exports;vA=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Jm.exports=T2(),Jm.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var bA;function C2(){if(bA)return Xl;bA=1;var e=w2(),t=Vc(),n=ER();function i(r){var a="https://react.dev/errors/"+r;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)a+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+r+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function s(r){var a=r,l=r;if(r.alternate)for(;a.return;)a=a.return;else{r=a;do a=r,(a.flags&4098)!==0&&(l=a.return),r=a.return;while(r)}return a.tag===3?l:null}function c(r){if(r.tag===13){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function u(r){if(r.tag===31){var a=r.memoizedState;if(a===null&&(r=r.alternate,r!==null&&(a=r.memoizedState)),a!==null)return a.dehydrated}return null}function f(r){if(s(r)!==r)throw Error(i(188))}function h(r){var a=r.alternate;if(!a){if(a=s(r),a===null)throw Error(i(188));return a!==r?null:r}for(var l=r,d=a;;){var m=l.return;if(m===null)break;var v=m.alternate;if(v===null){if(d=m.return,d!==null){l=d;continue}break}if(m.child===v.child){for(v=m.child;v;){if(v===l)return f(m),r;if(v===d)return f(m),a;v=v.sibling}throw Error(i(188))}if(l.return!==d.return)l=m,d=v;else{for(var T=!1,D=m.child;D;){if(D===l){T=!0,l=m,d=v;break}if(D===d){T=!0,d=m,l=v;break}D=D.sibling}if(!T){for(D=v.child;D;){if(D===l){T=!0,l=v,d=m;break}if(D===d){T=!0,d=v,l=m;break}D=D.sibling}if(!T)throw Error(i(189))}}if(l.alternate!==d)throw Error(i(190))}if(l.tag!==3)throw Error(i(188));return l.stateNode.current===l?r:a}function p(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r;for(r=r.child;r!==null;){if(a=p(r),a!==null)return a;r=r.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),L=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),R=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),U=Symbol.for("react.activity"),F=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function te(r){return r===null||typeof r!="object"?null:(r=H&&r[H]||r["@@iterator"],typeof r=="function"?r:null)}var ce=Symbol.for("react.client.reference");function X(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===ce?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case A:return"Fragment";case L:return"Profiler";case C:return"StrictMode";case N:return"Suspense";case _:return"SuspenseList";case U:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case w:return"Portal";case R:return r.displayName||"Context";case S:return(r._context.displayName||"Context")+".Consumer";case I:var a=r.render;return r=r.displayName,r||(r=a.displayName||a.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case k:return a=r.displayName||null,a!==null?a:X(r.type)||"Memo";case O:a=r._payload,r=r._init;try{return X(r(a))}catch{}}return null}var oe=Array.isArray,M=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$={pending:!1,data:null,method:null,action:null},me=[],Ee=-1;function j(r){return{current:r}}function P(r){0>Ee||(r.current=me[Ee],me[Ee]=null,Ee--)}function J(r,a){Ee++,me[Ee]=r.current,r.current=a}var ne=j(null),ue=j(null),ye=j(null),ie=j(null);function Re(r,a){switch(J(ye,a),J(ue,r),J(ne,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?O0(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=O0(a),r=j0(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}P(ne),J(ne,r)}function Ae(){P(ne),P(ue),P(ye)}function ze(r){r.memoizedState!==null&&J(ie,r);var a=ne.current,l=j0(a,r.type);a!==l&&(J(ue,r),J(ne,l))}function Ye(r){ue.current===r&&(P(ne),P(ue)),ie.current===r&&(P(ie),$l._currentValue=$)}var et,tn;function Wt(r){if(et===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);et=a&&a[1]||"",tn=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+et+r+tn}var Lr=!1;function ri(r,a){if(!r||Lr)return"";Lr=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var d={DetermineComponentFrameRoot:function(){try{if(a){var le=function(){throw Error()};if(Object.defineProperty(le.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(le,[])}catch(ee){var Q=ee}Reflect.construct(r,[],le)}else{try{le.call()}catch(ee){Q=ee}r.call(le.prototype)}}else{try{throw Error()}catch(ee){Q=ee}(le=r())&&typeof le.catch=="function"&&le.catch(function(){})}}catch(ee){if(ee&&Q&&typeof ee.stack=="string")return[ee.stack,Q.stack]}return[null,null]}};d.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var m=Object.getOwnPropertyDescriptor(d.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(d.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var v=d.DetermineComponentFrameRoot(),T=v[0],D=v[1];if(T&&D){var z=T.split(`
44
+ `),Z=D.split(`
45
+ `);for(m=d=0;d<z.length&&!z[d].includes("DetermineComponentFrameRoot");)d++;for(;m<Z.length&&!Z[m].includes("DetermineComponentFrameRoot");)m++;if(d===z.length||m===Z.length)for(d=z.length-1,m=Z.length-1;1<=d&&0<=m&&z[d]!==Z[m];)m--;for(;1<=d&&0<=m;d--,m--)if(z[d]!==Z[m]){if(d!==1||m!==1)do if(d--,m--,0>m||z[d]!==Z[m]){var re=`
46
+ `+z[d].replace(" at new "," at ");return r.displayName&&re.includes("<anonymous>")&&(re=re.replace("<anonymous>",r.displayName)),re}while(1<=d&&0<=m);break}}}finally{Lr=!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:"")?Wt(l):""}function ka(r,a){switch(r.tag){case 26:case 27:case 5:return Wt(r.type);case 16:return Wt("Lazy");case 13:return r.child!==a&&a!==null?Wt("Suspense Fallback"):Wt("Suspense");case 19:return Wt("SuspenseList");case 0:case 15:return ri(r.type,!1);case 11:return ri(r.type.render,!1);case 1:return ri(r.type,!0);case 31:return Wt("Activity");default:return""}}function Dh(r){try{var a="",l=null;do a+=ka(r,l),l=r,r=r.return;while(r);return a}catch(d){return`
47
+ Error generating stack: `+d.message+`
48
+ `+d.stack}}var Ro=Object.prototype.hasOwnProperty,B=e.unstable_scheduleCallback,W=e.unstable_cancelCallback,ae=e.unstable_shouldYield,ve=e.unstable_requestPaint,he=e.unstable_now,pe=e.unstable_getCurrentPriorityLevel,Ie=e.unstable_ImmediatePriority,tt=e.unstable_UserBlockingPriority,at=e.unstable_NormalPriority,xn=e.unstable_LowPriority,La=e.unstable_IdlePriority,Dr=e.log,Oh=e.unstable_setDisableYieldValue,ii=null,nn=null;function Or(r){if(typeof Dr=="function"&&Oh(r),nn&&typeof nn.setStrictMode=="function")try{nn.setStrictMode(ii,r)}catch{}}var fn=Math.clz32?Math.clz32:aP,jh=Math.log,cu=Math.LN2;function aP(r){return r>>>=0,r===0?32:31-(jh(r)/cu|0)|0}var uu=256,du=262144,fu=4194304;function Da(r){var a=r&42;if(a!==0)return a;switch(r&-r){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:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function hu(r,a,l){var d=r.pendingLanes;if(d===0)return 0;var m=0,v=r.suspendedLanes,T=r.pingedLanes;r=r.warmLanes;var D=d&134217727;return D!==0?(d=D&~v,d!==0?m=Da(d):(T&=D,T!==0?m=Da(T):l||(l=D&~r,l!==0&&(m=Da(l))))):(D=d&~v,D!==0?m=Da(D):T!==0?m=Da(T):l||(l=d&~r,l!==0&&(m=Da(l)))),m===0?0:a!==0&&a!==m&&(a&v)===0&&(v=m&-m,l=a&-a,v>=l||v===32&&(l&4194048)!==0)?a:m}function al(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function oP(r,a){switch(r){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 mE(){var r=fu;return fu<<=1,(fu&62914560)===0&&(fu=4194304),r}function zh(r){for(var a=[],l=0;31>l;l++)a.push(r);return a}function ol(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function sP(r,a,l,d,m,v){var T=r.pendingLanes;r.pendingLanes=l,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=l,r.entangledLanes&=l,r.errorRecoveryDisabledLanes&=l,r.shellSuspendCounter=0;var D=r.entanglements,z=r.expirationTimes,Z=r.hiddenUpdates;for(l=T&~l;0<l;){var re=31-fn(l),le=1<<re;D[re]=0,z[re]=-1;var Q=Z[re];if(Q!==null)for(Z[re]=null,re=0;re<Q.length;re++){var ee=Q[re];ee!==null&&(ee.lane&=-536870913)}l&=~le}d!==0&&yE(r,d,0),v!==0&&m===0&&r.tag!==0&&(r.suspendedLanes|=v&~(T&~a))}function yE(r,a,l){r.pendingLanes|=a,r.suspendedLanes&=~a;var d=31-fn(a);r.entangledLanes|=a,r.entanglements[d]=r.entanglements[d]|1073741824|l&261930}function gE(r,a){var l=r.entangledLanes|=a;for(r=r.entanglements;l;){var d=31-fn(l),m=1<<d;m&a|r[d]&a&&(r[d]|=a),l&=~m}}function vE(r,a){var l=a&-a;return l=(l&42)!==0?1:Mh(l),(l&(r.suspendedLanes|a))!==0?0:l}function Mh(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function Ph(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function bE(){var r=Y.p;return r!==0?r:(r=window.event,r===void 0?32:iA(r.type))}function EE(r,a){var l=Y.p;try{return Y.p=r,a()}finally{Y.p=l}}var zi=Math.random().toString(36).slice(2),rn="__reactFiber$"+zi,Sn="__reactProps$"+zi,Io="__reactContainer$"+zi,Bh="__reactEvents$"+zi,lP="__reactListeners$"+zi,cP="__reactHandles$"+zi,xE="__reactResources$"+zi,sl="__reactMarker$"+zi;function Uh(r){delete r[rn],delete r[Sn],delete r[Bh],delete r[lP],delete r[cP]}function _o(r){var a=r[rn];if(a)return a;for(var l=r.parentNode;l;){if(a=l[Io]||l[rn]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(r=F0(r);r!==null;){if(l=r[rn])return l;r=F0(r)}return a}r=l,l=r.parentNode}return null}function No(r){if(r=r[rn]||r[Io]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function ll(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function ko(r){var a=r[xE];return a||(a=r[xE]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Xt(r){r[sl]=!0}var SE=new Set,AE={};function Oa(r,a){Lo(r,a),Lo(r+"Capture",a)}function Lo(r,a){for(AE[r]=a,r=0;r<a.length;r++)SE.add(a[r])}var uP=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]*$"),wE={},TE={};function dP(r){return Ro.call(TE,r)?!0:Ro.call(wE,r)?!1:uP.test(r)?TE[r]=!0:(wE[r]=!0,!1)}function pu(r,a,l){if(dP(a))if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":r.removeAttribute(a);return;case"boolean":var d=a.toLowerCase().slice(0,5);if(d!=="data-"&&d!=="aria-"){r.removeAttribute(a);return}}r.setAttribute(a,""+l)}}function mu(r,a,l){if(l===null)r.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(a);return}r.setAttribute(a,""+l)}}function ai(r,a,l,d){if(d===null)r.removeAttribute(l);else{switch(typeof d){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(l);return}r.setAttributeNS(a,l,""+d)}}function Xn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function CE(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function fP(r,a,l){var d=Object.getOwnPropertyDescriptor(r.constructor.prototype,a);if(!r.hasOwnProperty(a)&&typeof d<"u"&&typeof d.get=="function"&&typeof d.set=="function"){var m=d.get,v=d.set;return Object.defineProperty(r,a,{configurable:!0,get:function(){return m.call(this)},set:function(T){l=""+T,v.call(this,T)}}),Object.defineProperty(r,a,{enumerable:d.enumerable}),{getValue:function(){return l},setValue:function(T){l=""+T},stopTracking:function(){r._valueTracker=null,delete r[a]}}}}function Vh(r){if(!r._valueTracker){var a=CE(r)?"checked":"value";r._valueTracker=fP(r,a,""+r[a])}}function RE(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var l=a.getValue(),d="";return r&&(d=CE(r)?r.checked?"true":"false":r.value),r=d,r!==l?(a.setValue(r),!0):!1}function yu(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var hP=/[\n"\\]/g;function Qn(r){return r.replace(hP,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Fh(r,a,l,d,m,v,T,D){r.name="",T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?r.type=T:r.removeAttribute("type"),a!=null?T==="number"?(a===0&&r.value===""||r.value!=a)&&(r.value=""+Xn(a)):r.value!==""+Xn(a)&&(r.value=""+Xn(a)):T!=="submit"&&T!=="reset"||r.removeAttribute("value"),a!=null?Hh(r,T,Xn(a)):l!=null?Hh(r,T,Xn(l)):d!=null&&r.removeAttribute("value"),m==null&&v!=null&&(r.defaultChecked=!!v),m!=null&&(r.checked=m&&typeof m!="function"&&typeof m!="symbol"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?r.name=""+Xn(D):r.removeAttribute("name")}function IE(r,a,l,d,m,v,T,D){if(v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"&&(r.type=v),a!=null||l!=null){if(!(v!=="submit"&&v!=="reset"||a!=null)){Vh(r);return}l=l!=null?""+Xn(l):"",a=a!=null?""+Xn(a):l,D||a===r.value||(r.value=a),r.defaultValue=a}d=d??m,d=typeof d!="function"&&typeof d!="symbol"&&!!d,r.checked=D?r.checked:!!d,r.defaultChecked=!!d,T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(r.name=T),Vh(r)}function Hh(r,a,l){a==="number"&&yu(r.ownerDocument)===r||r.defaultValue===""+l||(r.defaultValue=""+l)}function Do(r,a,l,d){if(r=r.options,a){a={};for(var m=0;m<l.length;m++)a["$"+l[m]]=!0;for(l=0;l<r.length;l++)m=a.hasOwnProperty("$"+r[l].value),r[l].selected!==m&&(r[l].selected=m),m&&d&&(r[l].defaultSelected=!0)}else{for(l=""+Xn(l),a=null,m=0;m<r.length;m++){if(r[m].value===l){r[m].selected=!0,d&&(r[m].defaultSelected=!0);return}a!==null||r[m].disabled||(a=r[m])}a!==null&&(a.selected=!0)}}function _E(r,a,l){if(a!=null&&(a=""+Xn(a),a!==r.value&&(r.value=a),l==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=l!=null?""+Xn(l):""}function NE(r,a,l,d){if(a==null){if(d!=null){if(l!=null)throw Error(i(92));if(oe(d)){if(1<d.length)throw Error(i(93));d=d[0]}l=d}l==null&&(l=""),a=l}l=Xn(a),r.defaultValue=l,d=r.textContent,d===l&&d!==""&&d!==null&&(r.value=d),Vh(r)}function Oo(r,a){if(a){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=a;return}}r.textContent=a}var pP=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 kE(r,a,l){var d=a.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?d?r.setProperty(a,""):a==="float"?r.cssFloat="":r[a]="":d?r.setProperty(a,l):typeof l!="number"||l===0||pP.has(a)?a==="float"?r.cssFloat=l:r[a]=(""+l).trim():r[a]=l+"px"}function LE(r,a,l){if(a!=null&&typeof a!="object")throw Error(i(62));if(r=r.style,l!=null){for(var d in l)!l.hasOwnProperty(d)||a!=null&&a.hasOwnProperty(d)||(d.indexOf("--")===0?r.setProperty(d,""):d==="float"?r.cssFloat="":r[d]="");for(var m in a)d=a[m],a.hasOwnProperty(m)&&l[m]!==d&&kE(r,m,d)}else for(var v in a)a.hasOwnProperty(v)&&kE(r,v,a[v])}function Gh(r){if(r.indexOf("-")===-1)return!1;switch(r){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 mP=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"]]),yP=/^[\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 gu(r){return yP.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function oi(){}var Kh=null;function $h(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var jo=null,zo=null;function DE(r){var a=No(r);if(a&&(r=a.stateNode)){var l=r[Sn]||null;e:switch(r=a.stateNode,a.type){case"input":if(Fh(r,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),a=l.name,l.type==="radio"&&a!=null){for(l=r;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Qn(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var d=l[a];if(d!==r&&d.form===r.form){var m=d[Sn]||null;if(!m)throw Error(i(90));Fh(d,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(a=0;a<l.length;a++)d=l[a],d.form===r.form&&RE(d)}break e;case"textarea":_E(r,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&Do(r,!!l.multiple,a,!1)}}}var qh=!1;function OE(r,a,l){if(qh)return r(a,l);qh=!0;try{var d=r(a);return d}finally{if(qh=!1,(jo!==null||zo!==null)&&(id(),jo&&(a=jo,r=zo,zo=jo=null,DE(a),r)))for(a=0;a<r.length;a++)DE(r[a])}}function cl(r,a){var l=r.stateNode;if(l===null)return null;var d=l[Sn]||null;if(d===null)return null;l=d[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":(d=!d.disabled)||(r=r.type,d=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!d;break e;default:r=!1}if(r)return null;if(l&&typeof l!="function")throw Error(i(231,a,typeof l));return l}var si=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zh=!1;if(si)try{var ul={};Object.defineProperty(ul,"passive",{get:function(){Zh=!0}}),window.addEventListener("test",ul,ul),window.removeEventListener("test",ul,ul)}catch{Zh=!1}var Mi=null,Yh=null,vu=null;function jE(){if(vu)return vu;var r,a=Yh,l=a.length,d,m="value"in Mi?Mi.value:Mi.textContent,v=m.length;for(r=0;r<l&&a[r]===m[r];r++);var T=l-r;for(d=1;d<=T&&a[l-d]===m[v-d];d++);return vu=m.slice(r,1<d?1-d:void 0)}function bu(r){var a=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&a===13&&(r=13)):r=a,r===10&&(r=13),32<=r||r===13?r:0}function Eu(){return!0}function zE(){return!1}function An(r){function a(l,d,m,v,T){this._reactName=l,this._targetInst=m,this.type=d,this.nativeEvent=v,this.target=T,this.currentTarget=null;for(var D in r)r.hasOwnProperty(D)&&(l=r[D],this[D]=l?l(v):v[D]);return this.isDefaultPrevented=(v.defaultPrevented!=null?v.defaultPrevented:v.returnValue===!1)?Eu:zE,this.isPropagationStopped=zE,this}return g(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=Eu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Eu)},persist:function(){},isPersistent:Eu}),a}var ja={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},xu=An(ja),dl=g({},ja,{view:0,detail:0}),gP=An(dl),Wh,Xh,fl,Su=g({},dl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jh,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==fl&&(fl&&r.type==="mousemove"?(Wh=r.screenX-fl.screenX,Xh=r.screenY-fl.screenY):Xh=Wh=0,fl=r),Wh)},movementY:function(r){return"movementY"in r?r.movementY:Xh}}),ME=An(Su),vP=g({},Su,{dataTransfer:0}),bP=An(vP),EP=g({},dl,{relatedTarget:0}),Qh=An(EP),xP=g({},ja,{animationName:0,elapsedTime:0,pseudoElement:0}),SP=An(xP),AP=g({},ja,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),wP=An(AP),TP=g({},ja,{data:0}),PE=An(TP),CP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},RP={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"},IP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function _P(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=IP[r])?!!a[r]:!1}function Jh(){return _P}var NP=g({},dl,{key:function(r){if(r.key){var a=CP[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=bu(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?RP[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jh,charCode:function(r){return r.type==="keypress"?bu(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?bu(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),kP=An(NP),LP=g({},Su,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),BE=An(LP),DP=g({},dl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jh}),OP=An(DP),jP=g({},ja,{propertyName:0,elapsedTime:0,pseudoElement:0}),zP=An(jP),MP=g({},Su,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),PP=An(MP),BP=g({},ja,{newState:0,oldState:0}),UP=An(BP),VP=[9,13,27,32],ep=si&&"CompositionEvent"in window,hl=null;si&&"documentMode"in document&&(hl=document.documentMode);var FP=si&&"TextEvent"in window&&!hl,UE=si&&(!ep||hl&&8<hl&&11>=hl),VE=" ",FE=!1;function HE(r,a){switch(r){case"keyup":return VP.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function GE(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Mo=!1;function HP(r,a){switch(r){case"compositionend":return GE(a);case"keypress":return a.which!==32?null:(FE=!0,VE);case"textInput":return r=a.data,r===VE&&FE?null:r;default:return null}}function GP(r,a){if(Mo)return r==="compositionend"||!ep&&HE(r,a)?(r=jE(),vu=Yh=Mi=null,Mo=!1,r):null;switch(r){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 UE&&a.locale!=="ko"?null:a.data;default:return null}}var KP={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 KE(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!KP[r.type]:a==="textarea"}function $E(r,a,l,d){jo?zo?zo.push(d):zo=[d]:jo=d,a=dd(a,"onChange"),0<a.length&&(l=new xu("onChange","change",null,l,d),r.push({event:l,listeners:a}))}var pl=null,ml=null;function $P(r){I0(r,0)}function Au(r){var a=ll(r);if(RE(a))return r}function qE(r,a){if(r==="change")return a}var ZE=!1;if(si){var tp;if(si){var np="oninput"in document;if(!np){var YE=document.createElement("div");YE.setAttribute("oninput","return;"),np=typeof YE.oninput=="function"}tp=np}else tp=!1;ZE=tp&&(!document.documentMode||9<document.documentMode)}function WE(){pl&&(pl.detachEvent("onpropertychange",XE),ml=pl=null)}function XE(r){if(r.propertyName==="value"&&Au(ml)){var a=[];$E(a,ml,r,$h(r)),OE($P,a)}}function qP(r,a,l){r==="focusin"?(WE(),pl=a,ml=l,pl.attachEvent("onpropertychange",XE)):r==="focusout"&&WE()}function ZP(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Au(ml)}function YP(r,a){if(r==="click")return Au(a)}function WP(r,a){if(r==="input"||r==="change")return Au(a)}function XP(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var On=typeof Object.is=="function"?Object.is:XP;function yl(r,a){if(On(r,a))return!0;if(typeof r!="object"||r===null||typeof a!="object"||a===null)return!1;var l=Object.keys(r),d=Object.keys(a);if(l.length!==d.length)return!1;for(d=0;d<l.length;d++){var m=l[d];if(!Ro.call(a,m)||!On(r[m],a[m]))return!1}return!0}function QE(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function JE(r,a){var l=QE(r);r=0;for(var d;l;){if(l.nodeType===3){if(d=r+l.textContent.length,r<=a&&d>=a)return{node:l,offset:a-r};r=d}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=QE(l)}}function ex(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?ex(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function tx(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=yu(r.document);a instanceof r.HTMLIFrameElement;){try{var l=typeof a.contentWindow.location.href=="string"}catch{l=!1}if(l)r=a.contentWindow;else break;a=yu(r.document)}return a}function rp(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a&&(a==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||a==="textarea"||r.contentEditable==="true")}var QP=si&&"documentMode"in document&&11>=document.documentMode,Po=null,ip=null,gl=null,ap=!1;function nx(r,a,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ap||Po==null||Po!==yu(d)||(d=Po,"selectionStart"in d&&rp(d)?d={start:d.selectionStart,end:d.selectionEnd}:(d=(d.ownerDocument&&d.ownerDocument.defaultView||window).getSelection(),d={anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}),gl&&yl(gl,d)||(gl=d,d=dd(ip,"onSelect"),0<d.length&&(a=new xu("onSelect","select",null,a,l),r.push({event:a,listeners:d}),a.target=Po)))}function za(r,a){var l={};return l[r.toLowerCase()]=a.toLowerCase(),l["Webkit"+r]="webkit"+a,l["Moz"+r]="moz"+a,l}var Bo={animationend:za("Animation","AnimationEnd"),animationiteration:za("Animation","AnimationIteration"),animationstart:za("Animation","AnimationStart"),transitionrun:za("Transition","TransitionRun"),transitionstart:za("Transition","TransitionStart"),transitioncancel:za("Transition","TransitionCancel"),transitionend:za("Transition","TransitionEnd")},op={},rx={};si&&(rx=document.createElement("div").style,"AnimationEvent"in window||(delete Bo.animationend.animation,delete Bo.animationiteration.animation,delete Bo.animationstart.animation),"TransitionEvent"in window||delete Bo.transitionend.transition);function Ma(r){if(op[r])return op[r];if(!Bo[r])return r;var a=Bo[r],l;for(l in a)if(a.hasOwnProperty(l)&&l in rx)return op[r]=a[l];return r}var ix=Ma("animationend"),ax=Ma("animationiteration"),ox=Ma("animationstart"),JP=Ma("transitionrun"),eB=Ma("transitionstart"),tB=Ma("transitioncancel"),sx=Ma("transitionend"),lx=new Map,sp="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(" ");sp.push("scrollEnd");function mr(r,a){lx.set(r,a),Oa(a,[r])}var wu=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Jn=[],Uo=0,lp=0;function Tu(){for(var r=Uo,a=lp=Uo=0;a<r;){var l=Jn[a];Jn[a++]=null;var d=Jn[a];Jn[a++]=null;var m=Jn[a];Jn[a++]=null;var v=Jn[a];if(Jn[a++]=null,d!==null&&m!==null){var T=d.pending;T===null?m.next=m:(m.next=T.next,T.next=m),d.pending=m}v!==0&&cx(l,m,v)}}function Cu(r,a,l,d){Jn[Uo++]=r,Jn[Uo++]=a,Jn[Uo++]=l,Jn[Uo++]=d,lp|=d,r.lanes|=d,r=r.alternate,r!==null&&(r.lanes|=d)}function cp(r,a,l,d){return Cu(r,a,l,d),Ru(r)}function Pa(r,a){return Cu(r,null,null,a),Ru(r)}function cx(r,a,l){r.lanes|=l;var d=r.alternate;d!==null&&(d.lanes|=l);for(var m=!1,v=r.return;v!==null;)v.childLanes|=l,d=v.alternate,d!==null&&(d.childLanes|=l),v.tag===22&&(r=v.stateNode,r===null||r._visibility&1||(m=!0)),r=v,v=v.return;return r.tag===3?(v=r.stateNode,m&&a!==null&&(m=31-fn(l),r=v.hiddenUpdates,d=r[m],d===null?r[m]=[a]:d.push(a),a.lane=l|536870912),v):null}function Ru(r){if(50<Bl)throw Bl=0,vm=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var Vo={};function nB(r,a,l,d){this.tag=r,this.key=l,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=d,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function jn(r,a,l,d){return new nB(r,a,l,d)}function up(r){return r=r.prototype,!(!r||!r.isReactComponent)}function li(r,a){var l=r.alternate;return l===null?(l=jn(r.tag,a,r.key,r.mode),l.elementType=r.elementType,l.type=r.type,l.stateNode=r.stateNode,l.alternate=r,r.alternate=l):(l.pendingProps=a,l.type=r.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=r.flags&65011712,l.childLanes=r.childLanes,l.lanes=r.lanes,l.child=r.child,l.memoizedProps=r.memoizedProps,l.memoizedState=r.memoizedState,l.updateQueue=r.updateQueue,a=r.dependencies,l.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},l.sibling=r.sibling,l.index=r.index,l.ref=r.ref,l.refCleanup=r.refCleanup,l}function ux(r,a){r.flags&=65011714;var l=r.alternate;return l===null?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=l.childLanes,r.lanes=l.lanes,r.child=l.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=l.memoizedProps,r.memoizedState=l.memoizedState,r.updateQueue=l.updateQueue,r.type=l.type,a=l.dependencies,r.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),r}function Iu(r,a,l,d,m,v){var T=0;if(d=r,typeof r=="function")up(r)&&(T=1);else if(typeof r=="string")T=s2(r,l,ne.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case U:return r=jn(31,l,a,m),r.elementType=U,r.lanes=v,r;case A:return Ba(l.children,m,v,a);case C:T=8,m|=24;break;case L:return r=jn(12,l,a,m|2),r.elementType=L,r.lanes=v,r;case N:return r=jn(13,l,a,m),r.elementType=N,r.lanes=v,r;case _:return r=jn(19,l,a,m),r.elementType=_,r.lanes=v,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case R:T=10;break e;case S:T=9;break e;case I:T=11;break e;case k:T=14;break e;case O:T=16,d=null;break e}T=29,l=Error(i(130,r===null?"null":typeof r,"")),d=null}return a=jn(T,l,a,m),a.elementType=r,a.type=d,a.lanes=v,a}function Ba(r,a,l,d){return r=jn(7,r,d,a),r.lanes=l,r}function dp(r,a,l){return r=jn(6,r,null,a),r.lanes=l,r}function dx(r){var a=jn(18,null,null,0);return a.stateNode=r,a}function fp(r,a,l){return a=jn(4,r.children!==null?r.children:[],r.key,a),a.lanes=l,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var fx=new WeakMap;function er(r,a){if(typeof r=="object"&&r!==null){var l=fx.get(r);return l!==void 0?l:(a={value:r,source:a,stack:Dh(a)},fx.set(r,a),a)}return{value:r,source:a,stack:Dh(a)}}var Fo=[],Ho=0,_u=null,vl=0,tr=[],nr=0,Pi=null,jr=1,zr="";function ci(r,a){Fo[Ho++]=vl,Fo[Ho++]=_u,_u=r,vl=a}function hx(r,a,l){tr[nr++]=jr,tr[nr++]=zr,tr[nr++]=Pi,Pi=r;var d=jr;r=zr;var m=32-fn(d)-1;d&=~(1<<m),l+=1;var v=32-fn(a)+m;if(30<v){var T=m-m%5;v=(d&(1<<T)-1).toString(32),d>>=T,m-=T,jr=1<<32-fn(a)+m|l<<m|d,zr=v+r}else jr=1<<v|l<<m|d,zr=r}function hp(r){r.return!==null&&(ci(r,1),hx(r,1,0))}function pp(r){for(;r===_u;)_u=Fo[--Ho],Fo[Ho]=null,vl=Fo[--Ho],Fo[Ho]=null;for(;r===Pi;)Pi=tr[--nr],tr[nr]=null,zr=tr[--nr],tr[nr]=null,jr=tr[--nr],tr[nr]=null}function px(r,a){tr[nr++]=jr,tr[nr++]=zr,tr[nr++]=Pi,jr=a.id,zr=a.overflow,Pi=r}var an=null,bt=null,We=!1,Bi=null,rr=!1,mp=Error(i(519));function Ui(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw bl(er(a,r)),mp}function mx(r){var a=r.stateNode,l=r.type,d=r.memoizedProps;switch(a[rn]=r,a[Sn]=d,l){case"dialog":$e("cancel",a),$e("close",a);break;case"iframe":case"object":case"embed":$e("load",a);break;case"video":case"audio":for(l=0;l<Vl.length;l++)$e(Vl[l],a);break;case"source":$e("error",a);break;case"img":case"image":case"link":$e("error",a),$e("load",a);break;case"details":$e("toggle",a);break;case"input":$e("invalid",a),IE(a,d.value,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name,!0);break;case"select":$e("invalid",a);break;case"textarea":$e("invalid",a),NE(a,d.value,d.defaultValue,d.children)}l=d.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||a.textContent===""+l||d.suppressHydrationWarning===!0||L0(a.textContent,l)?(d.popover!=null&&($e("beforetoggle",a),$e("toggle",a)),d.onScroll!=null&&$e("scroll",a),d.onScrollEnd!=null&&$e("scrollend",a),d.onClick!=null&&(a.onclick=oi),a=!0):a=!1,a||Ui(r,!0)}function yx(r){for(an=r.return;an;)switch(an.tag){case 5:case 31:case 13:rr=!1;return;case 27:case 3:rr=!0;return;default:an=an.return}}function Go(r){if(r!==an)return!1;if(!We)return yx(r),We=!0,!1;var a=r.tag,l;if((l=a!==3&&a!==27)&&((l=a===5)&&(l=r.type,l=!(l!=="form"&&l!=="button")||Dm(r.type,r.memoizedProps)),l=!l),l&&bt&&Ui(r),yx(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));bt=V0(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));bt=V0(r)}else a===27?(a=bt,ea(r.type)?(r=Pm,Pm=null,bt=r):bt=a):bt=an?ar(r.stateNode.nextSibling):null;return!0}function Ua(){bt=an=null,We=!1}function yp(){var r=Bi;return r!==null&&(Rn===null?Rn=r:Rn.push.apply(Rn,r),Bi=null),r}function bl(r){Bi===null?Bi=[r]:Bi.push(r)}var gp=j(null),Va=null,ui=null;function Vi(r,a,l){J(gp,a._currentValue),a._currentValue=l}function di(r){r._currentValue=gp.current,P(gp)}function vp(r,a,l){for(;r!==null;){var d=r.alternate;if((r.childLanes&a)!==a?(r.childLanes|=a,d!==null&&(d.childLanes|=a)):d!==null&&(d.childLanes&a)!==a&&(d.childLanes|=a),r===l)break;r=r.return}}function bp(r,a,l,d){var m=r.child;for(m!==null&&(m.return=r);m!==null;){var v=m.dependencies;if(v!==null){var T=m.child;v=v.firstContext;e:for(;v!==null;){var D=v;v=m;for(var z=0;z<a.length;z++)if(D.context===a[z]){v.lanes|=l,D=v.alternate,D!==null&&(D.lanes|=l),vp(v.return,l,r),d||(T=null);break e}v=D.next}}else if(m.tag===18){if(T=m.return,T===null)throw Error(i(341));T.lanes|=l,v=T.alternate,v!==null&&(v.lanes|=l),vp(T,l,r),T=null}else T=m.child;if(T!==null)T.return=m;else for(T=m;T!==null;){if(T===r){T=null;break}if(m=T.sibling,m!==null){m.return=T.return,T=m;break}T=T.return}m=T}}function Ko(r,a,l,d){r=null;for(var m=a,v=!1;m!==null;){if(!v){if((m.flags&524288)!==0)v=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var T=m.alternate;if(T===null)throw Error(i(387));if(T=T.memoizedProps,T!==null){var D=m.type;On(m.pendingProps.value,T.value)||(r!==null?r.push(D):r=[D])}}else if(m===ie.current){if(T=m.alternate,T===null)throw Error(i(387));T.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(r!==null?r.push($l):r=[$l])}m=m.return}r!==null&&bp(a,r,l,d),a.flags|=262144}function Nu(r){for(r=r.firstContext;r!==null;){if(!On(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Fa(r){Va=r,ui=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function on(r){return gx(Va,r)}function ku(r,a){return Va===null&&Fa(r),gx(r,a)}function gx(r,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},ui===null){if(r===null)throw Error(i(308));ui=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else ui=ui.next=a;return l}var rB=typeof AbortController<"u"?AbortController:function(){var r=[],a=this.signal={aborted:!1,addEventListener:function(l,d){r.push(d)}};this.abort=function(){a.aborted=!0,r.forEach(function(l){return l()})}},iB=e.unstable_scheduleCallback,aB=e.unstable_NormalPriority,zt={$$typeof:R,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ep(){return{controller:new rB,data:new Map,refCount:0}}function El(r){r.refCount--,r.refCount===0&&iB(aB,function(){r.controller.abort()})}var xl=null,xp=0,$o=0,qo=null;function oB(r,a){if(xl===null){var l=xl=[];xp=0,$o=wm(),qo={status:"pending",value:void 0,then:function(d){l.push(d)}}}return xp++,a.then(vx,vx),a}function vx(){if(--xp===0&&xl!==null){qo!==null&&(qo.status="fulfilled");var r=xl;xl=null,$o=0,qo=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function sB(r,a){var l=[],d={status:"pending",value:null,reason:null,then:function(m){l.push(m)}};return r.then(function(){d.status="fulfilled",d.value=a;for(var m=0;m<l.length;m++)(0,l[m])(a)},function(m){for(d.status="rejected",d.reason=m,m=0;m<l.length;m++)(0,l[m])(void 0)}),d}var bx=M.S;M.S=function(r,a){n0=he(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&oB(r,a),bx!==null&&bx(r,a)};var Ha=j(null);function Sp(){var r=Ha.current;return r!==null?r:yt.pooledCache}function Lu(r,a){a===null?J(Ha,Ha.current):J(Ha,a.pool)}function Ex(){var r=Sp();return r===null?null:{parent:zt._currentValue,pool:r}}var Zo=Error(i(460)),Ap=Error(i(474)),Du=Error(i(542)),Ou={then:function(){}};function xx(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Sx(r,a,l){switch(l=r[l],l===void 0?r.push(a):l!==a&&(a.then(oi,oi),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,wx(r),r;default:if(typeof a.status=="string")a.then(oi,oi);else{if(r=yt,r!==null&&100<r.shellSuspendCounter)throw Error(i(482));r=a,r.status="pending",r.then(function(d){if(a.status==="pending"){var m=a;m.status="fulfilled",m.value=d}},function(d){if(a.status==="pending"){var m=a;m.status="rejected",m.reason=d}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,wx(r),r}throw Ka=a,Zo}}function Ga(r){try{var a=r._init;return a(r._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ka=l,Zo):l}}var Ka=null;function Ax(){if(Ka===null)throw Error(i(459));var r=Ka;return Ka=null,r}function wx(r){if(r===Zo||r===Du)throw Error(i(483))}var Yo=null,Sl=0;function ju(r){var a=Sl;return Sl+=1,Yo===null&&(Yo=[]),Sx(Yo,r,a)}function Al(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function zu(r,a){throw a.$$typeof===b?Error(i(525)):(r=Object.prototype.toString.call(a),Error(i(31,r==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":r)))}function Tx(r){function a(K,V){if(r){var q=K.deletions;q===null?(K.deletions=[V],K.flags|=16):q.push(V)}}function l(K,V){if(!r)return null;for(;V!==null;)a(K,V),V=V.sibling;return null}function d(K){for(var V=new Map;K!==null;)K.key!==null?V.set(K.key,K):V.set(K.index,K),K=K.sibling;return V}function m(K,V){return K=li(K,V),K.index=0,K.sibling=null,K}function v(K,V,q){return K.index=q,r?(q=K.alternate,q!==null?(q=q.index,q<V?(K.flags|=67108866,V):q):(K.flags|=67108866,V)):(K.flags|=1048576,V)}function T(K){return r&&K.alternate===null&&(K.flags|=67108866),K}function D(K,V,q,se){return V===null||V.tag!==6?(V=dp(q,K.mode,se),V.return=K,V):(V=m(V,q),V.return=K,V)}function z(K,V,q,se){var _e=q.type;return _e===A?re(K,V,q.props.children,se,q.key):V!==null&&(V.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===O&&Ga(_e)===V.type)?(V=m(V,q.props),Al(V,q),V.return=K,V):(V=Iu(q.type,q.key,q.props,null,K.mode,se),Al(V,q),V.return=K,V)}function Z(K,V,q,se){return V===null||V.tag!==4||V.stateNode.containerInfo!==q.containerInfo||V.stateNode.implementation!==q.implementation?(V=fp(q,K.mode,se),V.return=K,V):(V=m(V,q.children||[]),V.return=K,V)}function re(K,V,q,se,_e){return V===null||V.tag!==7?(V=Ba(q,K.mode,se,_e),V.return=K,V):(V=m(V,q),V.return=K,V)}function le(K,V,q){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return V=dp(""+V,K.mode,q),V.return=K,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case x:return q=Iu(V.type,V.key,V.props,null,K.mode,q),Al(q,V),q.return=K,q;case w:return V=fp(V,K.mode,q),V.return=K,V;case O:return V=Ga(V),le(K,V,q)}if(oe(V)||te(V))return V=Ba(V,K.mode,q,null),V.return=K,V;if(typeof V.then=="function")return le(K,ju(V),q);if(V.$$typeof===R)return le(K,ku(K,V),q);zu(K,V)}return null}function Q(K,V,q,se){var _e=V!==null?V.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return _e!==null?null:D(K,V,""+q,se);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case x:return q.key===_e?z(K,V,q,se):null;case w:return q.key===_e?Z(K,V,q,se):null;case O:return q=Ga(q),Q(K,V,q,se)}if(oe(q)||te(q))return _e!==null?null:re(K,V,q,se,null);if(typeof q.then=="function")return Q(K,V,ju(q),se);if(q.$$typeof===R)return Q(K,V,ku(K,q),se);zu(K,q)}return null}function ee(K,V,q,se,_e){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return K=K.get(q)||null,D(V,K,""+se,_e);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case x:return K=K.get(se.key===null?q:se.key)||null,z(V,K,se,_e);case w:return K=K.get(se.key===null?q:se.key)||null,Z(V,K,se,_e);case O:return se=Ga(se),ee(K,V,q,se,_e)}if(oe(se)||te(se))return K=K.get(q)||null,re(V,K,se,_e,null);if(typeof se.then=="function")return ee(K,V,q,ju(se),_e);if(se.$$typeof===R)return ee(K,V,q,ku(V,se),_e);zu(V,se)}return null}function be(K,V,q,se){for(var _e=null,nt=null,we=V,Ue=V=0,Ze=null;we!==null&&Ue<q.length;Ue++){we.index>Ue?(Ze=we,we=null):Ze=we.sibling;var rt=Q(K,we,q[Ue],se);if(rt===null){we===null&&(we=Ze);break}r&&we&&rt.alternate===null&&a(K,we),V=v(rt,V,Ue),nt===null?_e=rt:nt.sibling=rt,nt=rt,we=Ze}if(Ue===q.length)return l(K,we),We&&ci(K,Ue),_e;if(we===null){for(;Ue<q.length;Ue++)we=le(K,q[Ue],se),we!==null&&(V=v(we,V,Ue),nt===null?_e=we:nt.sibling=we,nt=we);return We&&ci(K,Ue),_e}for(we=d(we);Ue<q.length;Ue++)Ze=ee(we,K,Ue,q[Ue],se),Ze!==null&&(r&&Ze.alternate!==null&&we.delete(Ze.key===null?Ue:Ze.key),V=v(Ze,V,Ue),nt===null?_e=Ze:nt.sibling=Ze,nt=Ze);return r&&we.forEach(function(aa){return a(K,aa)}),We&&ci(K,Ue),_e}function ke(K,V,q,se){if(q==null)throw Error(i(151));for(var _e=null,nt=null,we=V,Ue=V=0,Ze=null,rt=q.next();we!==null&&!rt.done;Ue++,rt=q.next()){we.index>Ue?(Ze=we,we=null):Ze=we.sibling;var aa=Q(K,we,rt.value,se);if(aa===null){we===null&&(we=Ze);break}r&&we&&aa.alternate===null&&a(K,we),V=v(aa,V,Ue),nt===null?_e=aa:nt.sibling=aa,nt=aa,we=Ze}if(rt.done)return l(K,we),We&&ci(K,Ue),_e;if(we===null){for(;!rt.done;Ue++,rt=q.next())rt=le(K,rt.value,se),rt!==null&&(V=v(rt,V,Ue),nt===null?_e=rt:nt.sibling=rt,nt=rt);return We&&ci(K,Ue),_e}for(we=d(we);!rt.done;Ue++,rt=q.next())rt=ee(we,K,Ue,rt.value,se),rt!==null&&(r&&rt.alternate!==null&&we.delete(rt.key===null?Ue:rt.key),V=v(rt,V,Ue),nt===null?_e=rt:nt.sibling=rt,nt=rt);return r&&we.forEach(function(v2){return a(K,v2)}),We&&ci(K,Ue),_e}function mt(K,V,q,se){if(typeof q=="object"&&q!==null&&q.type===A&&q.key===null&&(q=q.props.children),typeof q=="object"&&q!==null){switch(q.$$typeof){case x:e:{for(var _e=q.key;V!==null;){if(V.key===_e){if(_e=q.type,_e===A){if(V.tag===7){l(K,V.sibling),se=m(V,q.props.children),se.return=K,K=se;break e}}else if(V.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===O&&Ga(_e)===V.type){l(K,V.sibling),se=m(V,q.props),Al(se,q),se.return=K,K=se;break e}l(K,V);break}else a(K,V);V=V.sibling}q.type===A?(se=Ba(q.props.children,K.mode,se,q.key),se.return=K,K=se):(se=Iu(q.type,q.key,q.props,null,K.mode,se),Al(se,q),se.return=K,K=se)}return T(K);case w:e:{for(_e=q.key;V!==null;){if(V.key===_e)if(V.tag===4&&V.stateNode.containerInfo===q.containerInfo&&V.stateNode.implementation===q.implementation){l(K,V.sibling),se=m(V,q.children||[]),se.return=K,K=se;break e}else{l(K,V);break}else a(K,V);V=V.sibling}se=fp(q,K.mode,se),se.return=K,K=se}return T(K);case O:return q=Ga(q),mt(K,V,q,se)}if(oe(q))return be(K,V,q,se);if(te(q)){if(_e=te(q),typeof _e!="function")throw Error(i(150));return q=_e.call(q),ke(K,V,q,se)}if(typeof q.then=="function")return mt(K,V,ju(q),se);if(q.$$typeof===R)return mt(K,V,ku(K,q),se);zu(K,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,V!==null&&V.tag===6?(l(K,V.sibling),se=m(V,q),se.return=K,K=se):(l(K,V),se=dp(q,K.mode,se),se.return=K,K=se),T(K)):l(K,V)}return function(K,V,q,se){try{Sl=0;var _e=mt(K,V,q,se);return Yo=null,_e}catch(we){if(we===Zo||we===Du)throw we;var nt=jn(29,we,null,K.mode);return nt.lanes=se,nt.return=K,nt}finally{}}}var $a=Tx(!0),Cx=Tx(!1),Fi=!1;function wp(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Tp(r,a){r=r.updateQueue,a.updateQueue===r&&(a.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Hi(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Gi(r,a,l){var d=r.updateQueue;if(d===null)return null;if(d=d.shared,(ot&2)!==0){var m=d.pending;return m===null?a.next=a:(a.next=m.next,m.next=a),d.pending=a,a=Ru(r),cx(r,null,l),a}return Cu(r,d,a,l),Ru(r)}function wl(r,a,l){if(a=a.updateQueue,a!==null&&(a=a.shared,(l&4194048)!==0)){var d=a.lanes;d&=r.pendingLanes,l|=d,a.lanes=l,gE(r,l)}}function Cp(r,a){var l=r.updateQueue,d=r.alternate;if(d!==null&&(d=d.updateQueue,l===d)){var m=null,v=null;if(l=l.firstBaseUpdate,l!==null){do{var T={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};v===null?m=v=T:v=v.next=T,l=l.next}while(l!==null);v===null?m=v=a:v=v.next=a}else m=v=a;l={baseState:d.baseState,firstBaseUpdate:m,lastBaseUpdate:v,shared:d.shared,callbacks:d.callbacks},r.updateQueue=l;return}r=l.lastBaseUpdate,r===null?l.firstBaseUpdate=a:r.next=a,l.lastBaseUpdate=a}var Rp=!1;function Tl(){if(Rp){var r=qo;if(r!==null)throw r}}function Cl(r,a,l,d){Rp=!1;var m=r.updateQueue;Fi=!1;var v=m.firstBaseUpdate,T=m.lastBaseUpdate,D=m.shared.pending;if(D!==null){m.shared.pending=null;var z=D,Z=z.next;z.next=null,T===null?v=Z:T.next=Z,T=z;var re=r.alternate;re!==null&&(re=re.updateQueue,D=re.lastBaseUpdate,D!==T&&(D===null?re.firstBaseUpdate=Z:D.next=Z,re.lastBaseUpdate=z))}if(v!==null){var le=m.baseState;T=0,re=Z=z=null,D=v;do{var Q=D.lane&-536870913,ee=Q!==D.lane;if(ee?(qe&Q)===Q:(d&Q)===Q){Q!==0&&Q===$o&&(Rp=!0),re!==null&&(re=re.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{var be=r,ke=D;Q=a;var mt=l;switch(ke.tag){case 1:if(be=ke.payload,typeof be=="function"){le=be.call(mt,le,Q);break e}le=be;break e;case 3:be.flags=be.flags&-65537|128;case 0:if(be=ke.payload,Q=typeof be=="function"?be.call(mt,le,Q):be,Q==null)break e;le=g({},le,Q);break e;case 2:Fi=!0}}Q=D.callback,Q!==null&&(r.flags|=64,ee&&(r.flags|=8192),ee=m.callbacks,ee===null?m.callbacks=[Q]:ee.push(Q))}else ee={lane:Q,tag:D.tag,payload:D.payload,callback:D.callback,next:null},re===null?(Z=re=ee,z=le):re=re.next=ee,T|=Q;if(D=D.next,D===null){if(D=m.shared.pending,D===null)break;ee=D,D=ee.next,ee.next=null,m.lastBaseUpdate=ee,m.shared.pending=null}}while(!0);re===null&&(z=le),m.baseState=z,m.firstBaseUpdate=Z,m.lastBaseUpdate=re,v===null&&(m.shared.lanes=0),Yi|=T,r.lanes=T,r.memoizedState=le}}function Rx(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function Ix(r,a){var l=r.callbacks;if(l!==null)for(r.callbacks=null,r=0;r<l.length;r++)Rx(l[r],a)}var Wo=j(null),Mu=j(0);function _x(r,a){r=Ei,J(Mu,r),J(Wo,a),Ei=r|a.baseLanes}function Ip(){J(Mu,Ei),J(Wo,Wo.current)}function _p(){Ei=Mu.current,P(Wo),P(Mu)}var zn=j(null),ir=null;function Ki(r){var a=r.alternate;J(Lt,Lt.current&1),J(zn,r),ir===null&&(a===null||Wo.current!==null||a.memoizedState!==null)&&(ir=r)}function Np(r){J(Lt,Lt.current),J(zn,r),ir===null&&(ir=r)}function Nx(r){r.tag===22?(J(Lt,Lt.current),J(zn,r),ir===null&&(ir=r)):$i()}function $i(){J(Lt,Lt.current),J(zn,zn.current)}function Mn(r){P(zn),ir===r&&(ir=null),P(Lt)}var Lt=j(0);function Pu(r){for(var a=r;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||zm(l)||Mm(l)))return a}else if(a.tag===19&&(a.memoizedProps.revealOrder==="forwards"||a.memoizedProps.revealOrder==="backwards"||a.memoizedProps.revealOrder==="unstable_legacy-backwards"||a.memoizedProps.revealOrder==="together")){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var fi=0,Be=null,ht=null,Mt=null,Bu=!1,Xo=!1,qa=!1,Uu=0,Rl=0,Qo=null,lB=0;function It(){throw Error(i(321))}function kp(r,a){if(a===null)return!1;for(var l=0;l<a.length&&l<r.length;l++)if(!On(r[l],a[l]))return!1;return!0}function Lp(r,a,l,d,m,v){return fi=v,Be=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,M.H=r===null||r.memoizedState===null?hS:qp,qa=!1,v=l(d,m),qa=!1,Xo&&(v=Lx(a,l,d,m)),kx(r),v}function kx(r){M.H=Nl;var a=ht!==null&&ht.next!==null;if(fi=0,Mt=ht=Be=null,Bu=!1,Rl=0,Qo=null,a)throw Error(i(300));r===null||Pt||(r=r.dependencies,r!==null&&Nu(r)&&(Pt=!0))}function Lx(r,a,l,d){Be=r;var m=0;do{if(Xo&&(Qo=null),Rl=0,Xo=!1,25<=m)throw Error(i(301));if(m+=1,Mt=ht=null,r.updateQueue!=null){var v=r.updateQueue;v.lastEffect=null,v.events=null,v.stores=null,v.memoCache!=null&&(v.memoCache.index=0)}M.H=pS,v=a(l,d)}while(Xo);return v}function cB(){var r=M.H,a=r.useState()[0];return a=typeof a.then=="function"?Il(a):a,r=r.useState()[0],(ht!==null?ht.memoizedState:null)!==r&&(Be.flags|=1024),a}function Dp(){var r=Uu!==0;return Uu=0,r}function Op(r,a,l){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~l}function jp(r){if(Bu){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Bu=!1}fi=0,Mt=ht=Be=null,Xo=!1,Rl=Uu=0,Qo=null}function gn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mt===null?Be.memoizedState=Mt=r:Mt=Mt.next=r,Mt}function Dt(){if(ht===null){var r=Be.alternate;r=r!==null?r.memoizedState:null}else r=ht.next;var a=Mt===null?Be.memoizedState:Mt.next;if(a!==null)Mt=a,ht=r;else{if(r===null)throw Be.alternate===null?Error(i(467)):Error(i(310));ht=r,r={memoizedState:ht.memoizedState,baseState:ht.baseState,baseQueue:ht.baseQueue,queue:ht.queue,next:null},Mt===null?Be.memoizedState=Mt=r:Mt=Mt.next=r}return Mt}function Vu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Il(r){var a=Rl;return Rl+=1,Qo===null&&(Qo=[]),r=Sx(Qo,r,a),a=Be,(Mt===null?a.memoizedState:Mt.next)===null&&(a=a.alternate,M.H=a===null||a.memoizedState===null?hS:qp),r}function Fu(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Il(r);if(r.$$typeof===R)return on(r)}throw Error(i(438,String(r)))}function zp(r){var a=null,l=Be.updateQueue;if(l!==null&&(a=l.memoCache),a==null){var d=Be.alternate;d!==null&&(d=d.updateQueue,d!==null&&(d=d.memoCache,d!=null&&(a={data:d.data.map(function(m){return m.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),l===null&&(l=Vu(),Be.updateQueue=l),l.memoCache=a,l=a.data[a.index],l===void 0)for(l=a.data[a.index]=Array(r),d=0;d<r;d++)l[d]=F;return a.index++,l}function hi(r,a){return typeof a=="function"?a(r):a}function Hu(r){var a=Dt();return Mp(a,ht,r)}function Mp(r,a,l){var d=r.queue;if(d===null)throw Error(i(311));d.lastRenderedReducer=l;var m=r.baseQueue,v=d.pending;if(v!==null){if(m!==null){var T=m.next;m.next=v.next,v.next=T}a.baseQueue=m=v,d.pending=null}if(v=r.baseState,m===null)r.memoizedState=v;else{a=m.next;var D=T=null,z=null,Z=a,re=!1;do{var le=Z.lane&-536870913;if(le!==Z.lane?(qe&le)===le:(fi&le)===le){var Q=Z.revertLane;if(Q===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null}),le===$o&&(re=!0);else if((fi&Q)===Q){Z=Z.next,Q===$o&&(re=!0);continue}else le={lane:0,revertLane:Z.revertLane,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},z===null?(D=z=le,T=v):z=z.next=le,Be.lanes|=Q,Yi|=Q;le=Z.action,qa&&l(v,le),v=Z.hasEagerState?Z.eagerState:l(v,le)}else Q={lane:le,revertLane:Z.revertLane,gesture:Z.gesture,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},z===null?(D=z=Q,T=v):z=z.next=Q,Be.lanes|=le,Yi|=le;Z=Z.next}while(Z!==null&&Z!==a);if(z===null?T=v:z.next=D,!On(v,r.memoizedState)&&(Pt=!0,re&&(l=qo,l!==null)))throw l;r.memoizedState=v,r.baseState=T,r.baseQueue=z,d.lastRenderedState=v}return m===null&&(d.lanes=0),[r.memoizedState,d.dispatch]}function Pp(r){var a=Dt(),l=a.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=r;var d=l.dispatch,m=l.pending,v=a.memoizedState;if(m!==null){l.pending=null;var T=m=m.next;do v=r(v,T.action),T=T.next;while(T!==m);On(v,a.memoizedState)||(Pt=!0),a.memoizedState=v,a.baseQueue===null&&(a.baseState=v),l.lastRenderedState=v}return[v,d]}function Dx(r,a,l){var d=Be,m=Dt(),v=We;if(v){if(l===void 0)throw Error(i(407));l=l()}else l=a();var T=!On((ht||m).memoizedState,l);if(T&&(m.memoizedState=l,Pt=!0),m=m.queue,Vp(zx.bind(null,d,m,r),[r]),m.getSnapshot!==a||T||Mt!==null&&Mt.memoizedState.tag&1){if(d.flags|=2048,Jo(9,{destroy:void 0},jx.bind(null,d,m,l,a),null),yt===null)throw Error(i(349));v||(fi&127)!==0||Ox(d,a,l)}return l}function Ox(r,a,l){r.flags|=16384,r={getSnapshot:a,value:l},a=Be.updateQueue,a===null?(a=Vu(),Be.updateQueue=a,a.stores=[r]):(l=a.stores,l===null?a.stores=[r]:l.push(r))}function jx(r,a,l,d){a.value=l,a.getSnapshot=d,Mx(a)&&Px(r)}function zx(r,a,l){return l(function(){Mx(a)&&Px(r)})}function Mx(r){var a=r.getSnapshot;r=r.value;try{var l=a();return!On(r,l)}catch{return!0}}function Px(r){var a=Pa(r,2);a!==null&&In(a,r,2)}function Bp(r){var a=gn();if(typeof r=="function"){var l=r;if(r=l(),qa){Or(!0);try{l()}finally{Or(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:r},a}function Bx(r,a,l,d){return r.baseState=l,Mp(r,ht,typeof d=="function"?d:hi)}function uB(r,a,l,d,m){if($u(r))throw Error(i(485));if(r=a.action,r!==null){var v={payload:m,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(T){v.listeners.push(T)}};M.T!==null?l(!0):v.isTransition=!1,d(v),l=a.pending,l===null?(v.next=a.pending=v,Ux(a,v)):(v.next=l.next,a.pending=l.next=v)}}function Ux(r,a){var l=a.action,d=a.payload,m=r.state;if(a.isTransition){var v=M.T,T={};M.T=T;try{var D=l(m,d),z=M.S;z!==null&&z(T,D),Vx(r,a,D)}catch(Z){Up(r,a,Z)}finally{v!==null&&T.types!==null&&(v.types=T.types),M.T=v}}else try{v=l(m,d),Vx(r,a,v)}catch(Z){Up(r,a,Z)}}function Vx(r,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(d){Fx(r,a,d)},function(d){return Up(r,a,d)}):Fx(r,a,l)}function Fx(r,a,l){a.status="fulfilled",a.value=l,Hx(a),r.state=l,a=r.pending,a!==null&&(l=a.next,l===a?r.pending=null:(l=l.next,a.next=l,Ux(r,l)))}function Up(r,a,l){var d=r.pending;if(r.pending=null,d!==null){d=d.next;do a.status="rejected",a.reason=l,Hx(a),a=a.next;while(a!==d)}r.action=null}function Hx(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function Gx(r,a){return a}function Kx(r,a){if(We){var l=yt.formState;if(l!==null){e:{var d=Be;if(We){if(bt){t:{for(var m=bt,v=rr;m.nodeType!==8;){if(!v){m=null;break t}if(m=ar(m.nextSibling),m===null){m=null;break t}}v=m.data,m=v==="F!"||v==="F"?m:null}if(m){bt=ar(m.nextSibling),d=m.data==="F!";break e}}Ui(d)}d=!1}d&&(a=l[0])}}return l=gn(),l.memoizedState=l.baseState=a,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gx,lastRenderedState:a},l.queue=d,l=uS.bind(null,Be,d),d.dispatch=l,d=Bp(!1),v=$p.bind(null,Be,!1,d.queue),d=gn(),m={state:a,dispatch:null,action:r,pending:null},d.queue=m,l=uB.bind(null,Be,m,v,l),m.dispatch=l,d.memoizedState=r,[a,l,!1]}function $x(r){var a=Dt();return qx(a,ht,r)}function qx(r,a,l){if(a=Mp(r,a,Gx)[0],r=Hu(hi)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var d=Il(a)}catch(T){throw T===Zo?Du:T}else d=a;a=Dt();var m=a.queue,v=m.dispatch;return l!==a.memoizedState&&(Be.flags|=2048,Jo(9,{destroy:void 0},dB.bind(null,m,l),null)),[d,v,r]}function dB(r,a){r.action=a}function Zx(r){var a=Dt(),l=ht;if(l!==null)return qx(a,l,r);Dt(),a=a.memoizedState,l=Dt();var d=l.queue.dispatch;return l.memoizedState=r,[a,d,!1]}function Jo(r,a,l,d){return r={tag:r,create:l,deps:d,inst:a,next:null},a=Be.updateQueue,a===null&&(a=Vu(),Be.updateQueue=a),l=a.lastEffect,l===null?a.lastEffect=r.next=r:(d=l.next,l.next=r,r.next=d,a.lastEffect=r),r}function Yx(){return Dt().memoizedState}function Gu(r,a,l,d){var m=gn();Be.flags|=r,m.memoizedState=Jo(1|a,{destroy:void 0},l,d===void 0?null:d)}function Ku(r,a,l,d){var m=Dt();d=d===void 0?null:d;var v=m.memoizedState.inst;ht!==null&&d!==null&&kp(d,ht.memoizedState.deps)?m.memoizedState=Jo(a,v,l,d):(Be.flags|=r,m.memoizedState=Jo(1|a,v,l,d))}function Wx(r,a){Gu(8390656,8,r,a)}function Vp(r,a){Ku(2048,8,r,a)}function fB(r){Be.flags|=4;var a=Be.updateQueue;if(a===null)a=Vu(),Be.updateQueue=a,a.events=[r];else{var l=a.events;l===null?a.events=[r]:l.push(r)}}function Xx(r){var a=Dt().memoizedState;return fB({ref:a,nextImpl:r}),function(){if((ot&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function Qx(r,a){return Ku(4,2,r,a)}function Jx(r,a){return Ku(4,4,r,a)}function eS(r,a){if(typeof a=="function"){r=r();var l=a(r);return function(){typeof l=="function"?l():a(null)}}if(a!=null)return r=r(),a.current=r,function(){a.current=null}}function tS(r,a,l){l=l!=null?l.concat([r]):null,Ku(4,4,eS.bind(null,a,r),l)}function Fp(){}function nS(r,a){var l=Dt();a=a===void 0?null:a;var d=l.memoizedState;return a!==null&&kp(a,d[1])?d[0]:(l.memoizedState=[r,a],r)}function rS(r,a){var l=Dt();a=a===void 0?null:a;var d=l.memoizedState;if(a!==null&&kp(a,d[1]))return d[0];if(d=r(),qa){Or(!0);try{r()}finally{Or(!1)}}return l.memoizedState=[d,a],d}function Hp(r,a,l){return l===void 0||(fi&1073741824)!==0&&(qe&261930)===0?r.memoizedState=a:(r.memoizedState=l,r=i0(),Be.lanes|=r,Yi|=r,l)}function iS(r,a,l,d){return On(l,a)?l:Wo.current!==null?(r=Hp(r,l,d),On(r,a)||(Pt=!0),r):(fi&42)===0||(fi&1073741824)!==0&&(qe&261930)===0?(Pt=!0,r.memoizedState=l):(r=i0(),Be.lanes|=r,Yi|=r,a)}function aS(r,a,l,d,m){var v=Y.p;Y.p=v!==0&&8>v?v:8;var T=M.T,D={};M.T=D,$p(r,!1,a,l);try{var z=m(),Z=M.S;if(Z!==null&&Z(D,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var re=sB(z,d);_l(r,a,re,Un(r))}else _l(r,a,d,Un(r))}catch(le){_l(r,a,{then:function(){},status:"rejected",reason:le},Un())}finally{Y.p=v,T!==null&&D.types!==null&&(T.types=D.types),M.T=T}}function hB(){}function Gp(r,a,l,d){if(r.tag!==5)throw Error(i(476));var m=oS(r).queue;aS(r,m,a,$,l===null?hB:function(){return sS(r),l(d)})}function oS(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:$,baseState:$,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:$},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hi,lastRenderedState:l},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function sS(r){var a=oS(r);a.next===null&&(a=r.alternate.memoizedState),_l(r,a.next.queue,{},Un())}function Kp(){return on($l)}function lS(){return Dt().memoizedState}function cS(){return Dt().memoizedState}function pB(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var l=Un();r=Hi(l);var d=Gi(a,r,l);d!==null&&(In(d,a,l),wl(d,a,l)),a={cache:Ep()},r.payload=a;return}a=a.return}}function mB(r,a,l){var d=Un();l={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},$u(r)?dS(a,l):(l=cp(r,a,l,d),l!==null&&(In(l,r,d),fS(l,a,d)))}function uS(r,a,l){var d=Un();_l(r,a,l,d)}function _l(r,a,l,d){var m={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if($u(r))dS(a,m);else{var v=r.alternate;if(r.lanes===0&&(v===null||v.lanes===0)&&(v=a.lastRenderedReducer,v!==null))try{var T=a.lastRenderedState,D=v(T,l);if(m.hasEagerState=!0,m.eagerState=D,On(D,T))return Cu(r,a,m,0),yt===null&&Tu(),!1}catch{}finally{}if(l=cp(r,a,m,d),l!==null)return In(l,r,d),fS(l,a,d),!0}return!1}function $p(r,a,l,d){if(d={lane:2,revertLane:wm(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},$u(r)){if(a)throw Error(i(479))}else a=cp(r,l,d,2),a!==null&&In(a,r,2)}function $u(r){var a=r.alternate;return r===Be||a!==null&&a===Be}function dS(r,a){Xo=Bu=!0;var l=r.pending;l===null?a.next=a:(a.next=l.next,l.next=a),r.pending=a}function fS(r,a,l){if((l&4194048)!==0){var d=a.lanes;d&=r.pendingLanes,l|=d,a.lanes=l,gE(r,l)}}var Nl={readContext:on,use:Fu,useCallback:It,useContext:It,useEffect:It,useImperativeHandle:It,useLayoutEffect:It,useInsertionEffect:It,useMemo:It,useReducer:It,useRef:It,useState:It,useDebugValue:It,useDeferredValue:It,useTransition:It,useSyncExternalStore:It,useId:It,useHostTransitionStatus:It,useFormState:It,useActionState:It,useOptimistic:It,useMemoCache:It,useCacheRefresh:It};Nl.useEffectEvent=It;var hS={readContext:on,use:Fu,useCallback:function(r,a){return gn().memoizedState=[r,a===void 0?null:a],r},useContext:on,useEffect:Wx,useImperativeHandle:function(r,a,l){l=l!=null?l.concat([r]):null,Gu(4194308,4,eS.bind(null,a,r),l)},useLayoutEffect:function(r,a){return Gu(4194308,4,r,a)},useInsertionEffect:function(r,a){Gu(4,2,r,a)},useMemo:function(r,a){var l=gn();a=a===void 0?null:a;var d=r();if(qa){Or(!0);try{r()}finally{Or(!1)}}return l.memoizedState=[d,a],d},useReducer:function(r,a,l){var d=gn();if(l!==void 0){var m=l(a);if(qa){Or(!0);try{l(a)}finally{Or(!1)}}}else m=a;return d.memoizedState=d.baseState=m,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:m},d.queue=r,r=r.dispatch=mB.bind(null,Be,r),[d.memoizedState,r]},useRef:function(r){var a=gn();return r={current:r},a.memoizedState=r},useState:function(r){r=Bp(r);var a=r.queue,l=uS.bind(null,Be,a);return a.dispatch=l,[r.memoizedState,l]},useDebugValue:Fp,useDeferredValue:function(r,a){var l=gn();return Hp(l,r,a)},useTransition:function(){var r=Bp(!1);return r=aS.bind(null,Be,r.queue,!0,!1),gn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,l){var d=Be,m=gn();if(We){if(l===void 0)throw Error(i(407));l=l()}else{if(l=a(),yt===null)throw Error(i(349));(qe&127)!==0||Ox(d,a,l)}m.memoizedState=l;var v={value:l,getSnapshot:a};return m.queue=v,Wx(zx.bind(null,d,v,r),[r]),d.flags|=2048,Jo(9,{destroy:void 0},jx.bind(null,d,v,l,a),null),l},useId:function(){var r=gn(),a=yt.identifierPrefix;if(We){var l=zr,d=jr;l=(d&~(1<<32-fn(d)-1)).toString(32)+l,a="_"+a+"R_"+l,l=Uu++,0<l&&(a+="H"+l.toString(32)),a+="_"}else l=lB++,a="_"+a+"r_"+l.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:Kp,useFormState:Kx,useActionState:Kx,useOptimistic:function(r){var a=gn();a.memoizedState=a.baseState=r;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=$p.bind(null,Be,!0,l),l.dispatch=a,[r,a]},useMemoCache:zp,useCacheRefresh:function(){return gn().memoizedState=pB.bind(null,Be)},useEffectEvent:function(r){var a=gn(),l={impl:r};return a.memoizedState=l,function(){if((ot&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},qp={readContext:on,use:Fu,useCallback:nS,useContext:on,useEffect:Vp,useImperativeHandle:tS,useInsertionEffect:Qx,useLayoutEffect:Jx,useMemo:rS,useReducer:Hu,useRef:Yx,useState:function(){return Hu(hi)},useDebugValue:Fp,useDeferredValue:function(r,a){var l=Dt();return iS(l,ht.memoizedState,r,a)},useTransition:function(){var r=Hu(hi)[0],a=Dt().memoizedState;return[typeof r=="boolean"?r:Il(r),a]},useSyncExternalStore:Dx,useId:lS,useHostTransitionStatus:Kp,useFormState:$x,useActionState:$x,useOptimistic:function(r,a){var l=Dt();return Bx(l,ht,r,a)},useMemoCache:zp,useCacheRefresh:cS};qp.useEffectEvent=Xx;var pS={readContext:on,use:Fu,useCallback:nS,useContext:on,useEffect:Vp,useImperativeHandle:tS,useInsertionEffect:Qx,useLayoutEffect:Jx,useMemo:rS,useReducer:Pp,useRef:Yx,useState:function(){return Pp(hi)},useDebugValue:Fp,useDeferredValue:function(r,a){var l=Dt();return ht===null?Hp(l,r,a):iS(l,ht.memoizedState,r,a)},useTransition:function(){var r=Pp(hi)[0],a=Dt().memoizedState;return[typeof r=="boolean"?r:Il(r),a]},useSyncExternalStore:Dx,useId:lS,useHostTransitionStatus:Kp,useFormState:Zx,useActionState:Zx,useOptimistic:function(r,a){var l=Dt();return ht!==null?Bx(l,ht,r,a):(l.baseState=r,[r,l.queue.dispatch])},useMemoCache:zp,useCacheRefresh:cS};pS.useEffectEvent=Xx;function Zp(r,a,l,d){a=r.memoizedState,l=l(d,a),l=l==null?a:g({},a,l),r.memoizedState=l,r.lanes===0&&(r.updateQueue.baseState=l)}var Yp={enqueueSetState:function(r,a,l){r=r._reactInternals;var d=Un(),m=Hi(d);m.payload=a,l!=null&&(m.callback=l),a=Gi(r,m,d),a!==null&&(In(a,r,d),wl(a,r,d))},enqueueReplaceState:function(r,a,l){r=r._reactInternals;var d=Un(),m=Hi(d);m.tag=1,m.payload=a,l!=null&&(m.callback=l),a=Gi(r,m,d),a!==null&&(In(a,r,d),wl(a,r,d))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var l=Un(),d=Hi(l);d.tag=2,a!=null&&(d.callback=a),a=Gi(r,d,l),a!==null&&(In(a,r,l),wl(a,r,l))}};function mS(r,a,l,d,m,v,T){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(d,v,T):a.prototype&&a.prototype.isPureReactComponent?!yl(l,d)||!yl(m,v):!0}function yS(r,a,l,d){r=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(l,d),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(l,d),a.state!==r&&Yp.enqueueReplaceState(a,a.state,null)}function Za(r,a){var l=a;if("ref"in a){l={};for(var d in a)d!=="ref"&&(l[d]=a[d])}if(r=r.defaultProps){l===a&&(l=g({},l));for(var m in r)l[m]===void 0&&(l[m]=r[m])}return l}function gS(r){wu(r)}function vS(r){console.error(r)}function bS(r){wu(r)}function qu(r,a){try{var l=r.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(d){setTimeout(function(){throw d})}}function ES(r,a,l){try{var d=r.onCaughtError;d(l.value,{componentStack:l.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Wp(r,a,l){return l=Hi(l),l.tag=3,l.payload={element:null},l.callback=function(){qu(r,a)},l}function xS(r){return r=Hi(r),r.tag=3,r}function SS(r,a,l,d){var m=l.type.getDerivedStateFromError;if(typeof m=="function"){var v=d.value;r.payload=function(){return m(v)},r.callback=function(){ES(a,l,d)}}var T=l.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(r.callback=function(){ES(a,l,d),typeof m!="function"&&(Wi===null?Wi=new Set([this]):Wi.add(this));var D=d.stack;this.componentDidCatch(d.value,{componentStack:D!==null?D:""})})}function yB(r,a,l,d,m){if(l.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(a=l.alternate,a!==null&&Ko(a,l,m,!0),l=zn.current,l!==null){switch(l.tag){case 31:case 13:return ir===null?ad():l.alternate===null&&_t===0&&(_t=3),l.flags&=-257,l.flags|=65536,l.lanes=m,d===Ou?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([d]):a.add(d),xm(r,d,m)),!1;case 22:return l.flags|=65536,d===Ou?l.flags|=16384:(a=l.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([d])},l.updateQueue=a):(l=a.retryQueue,l===null?a.retryQueue=new Set([d]):l.add(d)),xm(r,d,m)),!1}throw Error(i(435,l.tag))}return xm(r,d,m),ad(),!1}if(We)return a=zn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=m,d!==mp&&(r=Error(i(422),{cause:d}),bl(er(r,l)))):(d!==mp&&(a=Error(i(423),{cause:d}),bl(er(a,l))),r=r.current.alternate,r.flags|=65536,m&=-m,r.lanes|=m,d=er(d,l),m=Wp(r.stateNode,d,m),Cp(r,m),_t!==4&&(_t=2)),!1;var v=Error(i(520),{cause:d});if(v=er(v,l),Pl===null?Pl=[v]:Pl.push(v),_t!==4&&(_t=2),a===null)return!0;d=er(d,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,r=m&-m,l.lanes|=r,r=Wp(l.stateNode,d,r),Cp(l,r),!1;case 1:if(a=l.type,v=l.stateNode,(l.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(Wi===null||!Wi.has(v))))return l.flags|=65536,m&=-m,l.lanes|=m,m=xS(m),SS(m,r,l,d),Cp(l,m),!1}l=l.return}while(l!==null);return!1}var Xp=Error(i(461)),Pt=!1;function sn(r,a,l,d){a.child=r===null?Cx(a,null,l,d):$a(a,r.child,l,d)}function AS(r,a,l,d,m){l=l.render;var v=a.ref;if("ref"in d){var T={};for(var D in d)D!=="ref"&&(T[D]=d[D])}else T=d;return Fa(a),d=Lp(r,a,l,T,v,m),D=Dp(),r!==null&&!Pt?(Op(r,a,m),pi(r,a,m)):(We&&D&&hp(a),a.flags|=1,sn(r,a,d,m),a.child)}function wS(r,a,l,d,m){if(r===null){var v=l.type;return typeof v=="function"&&!up(v)&&v.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=v,TS(r,a,v,d,m)):(r=Iu(l.type,null,d,a,a.mode,m),r.ref=a.ref,r.return=a,a.child=r)}if(v=r.child,!am(r,m)){var T=v.memoizedProps;if(l=l.compare,l=l!==null?l:yl,l(T,d)&&r.ref===a.ref)return pi(r,a,m)}return a.flags|=1,r=li(v,d),r.ref=a.ref,r.return=a,a.child=r}function TS(r,a,l,d,m){if(r!==null){var v=r.memoizedProps;if(yl(v,d)&&r.ref===a.ref)if(Pt=!1,a.pendingProps=d=v,am(r,m))(r.flags&131072)!==0&&(Pt=!0);else return a.lanes=r.lanes,pi(r,a,m)}return Qp(r,a,l,d,m)}function CS(r,a,l,d){var m=d.children,v=r!==null?r.memoizedState:null;if(r===null&&a.stateNode===null&&(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),d.mode==="hidden"){if((a.flags&128)!==0){if(v=v!==null?v.baseLanes|l:l,r!==null){for(d=a.child=r.child,m=0;d!==null;)m=m|d.lanes|d.childLanes,d=d.sibling;d=m&~v}else d=0,a.child=null;return RS(r,a,v,l,d)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&Lu(a,v!==null?v.cachePool:null),v!==null?_x(a,v):Ip(),Nx(a);else return d=a.lanes=536870912,RS(r,a,v!==null?v.baseLanes|l:l,l,d)}else v!==null?(Lu(a,v.cachePool),_x(a,v),$i(),a.memoizedState=null):(r!==null&&Lu(a,null),Ip(),$i());return sn(r,a,m,l),a.child}function kl(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function RS(r,a,l,d,m){var v=Sp();return v=v===null?null:{parent:zt._currentValue,pool:v},a.memoizedState={baseLanes:l,cachePool:v},r!==null&&Lu(a,null),Ip(),Nx(a),r!==null&&Ko(r,a,d,!0),a.childLanes=m,null}function Zu(r,a){return a=Wu({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function IS(r,a,l){return $a(a,r.child,null,l),r=Zu(a,a.pendingProps),r.flags|=2,Mn(a),a.memoizedState=null,r}function gB(r,a,l){var d=a.pendingProps,m=(a.flags&128)!==0;if(a.flags&=-129,r===null){if(We){if(d.mode==="hidden")return r=Zu(a,d),a.lanes=536870912,kl(null,r);if(Np(a),(r=bt)?(r=U0(r,rr),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Pi!==null?{id:jr,overflow:zr}:null,retryLane:536870912,hydrationErrors:null},l=dx(r),l.return=a,a.child=l,an=a,bt=null)):r=null,r===null)throw Ui(a);return a.lanes=536870912,null}return Zu(a,d)}var v=r.memoizedState;if(v!==null){var T=v.dehydrated;if(Np(a),m)if(a.flags&256)a.flags&=-257,a=IS(r,a,l);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(i(558));else if(Pt||Ko(r,a,l,!1),m=(l&r.childLanes)!==0,Pt||m){if(d=yt,d!==null&&(T=vE(d,l),T!==0&&T!==v.retryLane))throw v.retryLane=T,Pa(r,T),In(d,r,T),Xp;ad(),a=IS(r,a,l)}else r=v.treeContext,bt=ar(T.nextSibling),an=a,We=!0,Bi=null,rr=!1,r!==null&&px(a,r),a=Zu(a,d),a.flags|=4096;return a}return r=li(r.child,{mode:d.mode,children:d.children}),r.ref=a.ref,a.child=r,r.return=a,r}function Yu(r,a){var l=a.ref;if(l===null)r!==null&&r.ref!==null&&(a.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(i(284));(r===null||r.ref!==l)&&(a.flags|=4194816)}}function Qp(r,a,l,d,m){return Fa(a),l=Lp(r,a,l,d,void 0,m),d=Dp(),r!==null&&!Pt?(Op(r,a,m),pi(r,a,m)):(We&&d&&hp(a),a.flags|=1,sn(r,a,l,m),a.child)}function _S(r,a,l,d,m,v){return Fa(a),a.updateQueue=null,l=Lx(a,d,l,m),kx(r),d=Dp(),r!==null&&!Pt?(Op(r,a,v),pi(r,a,v)):(We&&d&&hp(a),a.flags|=1,sn(r,a,l,v),a.child)}function NS(r,a,l,d,m){if(Fa(a),a.stateNode===null){var v=Vo,T=l.contextType;typeof T=="object"&&T!==null&&(v=on(T)),v=new l(d,v),a.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Yp,a.stateNode=v,v._reactInternals=a,v=a.stateNode,v.props=d,v.state=a.memoizedState,v.refs={},wp(a),T=l.contextType,v.context=typeof T=="object"&&T!==null?on(T):Vo,v.state=a.memoizedState,T=l.getDerivedStateFromProps,typeof T=="function"&&(Zp(a,l,T,d),v.state=a.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(T=v.state,typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount(),T!==v.state&&Yp.enqueueReplaceState(v,v.state,null),Cl(a,d,v,m),Tl(),v.state=a.memoizedState),typeof v.componentDidMount=="function"&&(a.flags|=4194308),d=!0}else if(r===null){v=a.stateNode;var D=a.memoizedProps,z=Za(l,D);v.props=z;var Z=v.context,re=l.contextType;T=Vo,typeof re=="object"&&re!==null&&(T=on(re));var le=l.getDerivedStateFromProps;re=typeof le=="function"||typeof v.getSnapshotBeforeUpdate=="function",D=a.pendingProps!==D,re||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(D||Z!==T)&&yS(a,v,d,T),Fi=!1;var Q=a.memoizedState;v.state=Q,Cl(a,d,v,m),Tl(),Z=a.memoizedState,D||Q!==Z||Fi?(typeof le=="function"&&(Zp(a,l,le,d),Z=a.memoizedState),(z=Fi||mS(a,l,z,d,Q,Z,T))?(re||typeof v.UNSAFE_componentWillMount!="function"&&typeof v.componentWillMount!="function"||(typeof v.componentWillMount=="function"&&v.componentWillMount(),typeof v.UNSAFE_componentWillMount=="function"&&v.UNSAFE_componentWillMount()),typeof v.componentDidMount=="function"&&(a.flags|=4194308)):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=d,a.memoizedState=Z),v.props=d,v.state=Z,v.context=T,d=z):(typeof v.componentDidMount=="function"&&(a.flags|=4194308),d=!1)}else{v=a.stateNode,Tp(r,a),T=a.memoizedProps,re=Za(l,T),v.props=re,le=a.pendingProps,Q=v.context,Z=l.contextType,z=Vo,typeof Z=="object"&&Z!==null&&(z=on(Z)),D=l.getDerivedStateFromProps,(Z=typeof D=="function"||typeof v.getSnapshotBeforeUpdate=="function")||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(T!==le||Q!==z)&&yS(a,v,d,z),Fi=!1,Q=a.memoizedState,v.state=Q,Cl(a,d,v,m),Tl();var ee=a.memoizedState;T!==le||Q!==ee||Fi||r!==null&&r.dependencies!==null&&Nu(r.dependencies)?(typeof D=="function"&&(Zp(a,l,D,d),ee=a.memoizedState),(re=Fi||mS(a,l,re,d,Q,ee,z)||r!==null&&r.dependencies!==null&&Nu(r.dependencies))?(Z||typeof v.UNSAFE_componentWillUpdate!="function"&&typeof v.componentWillUpdate!="function"||(typeof v.componentWillUpdate=="function"&&v.componentWillUpdate(d,ee,z),typeof v.UNSAFE_componentWillUpdate=="function"&&v.UNSAFE_componentWillUpdate(d,ee,z)),typeof v.componentDidUpdate=="function"&&(a.flags|=4),typeof v.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof v.componentDidUpdate!="function"||T===r.memoizedProps&&Q===r.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||T===r.memoizedProps&&Q===r.memoizedState||(a.flags|=1024),a.memoizedProps=d,a.memoizedState=ee),v.props=d,v.state=ee,v.context=z,d=re):(typeof v.componentDidUpdate!="function"||T===r.memoizedProps&&Q===r.memoizedState||(a.flags|=4),typeof v.getSnapshotBeforeUpdate!="function"||T===r.memoizedProps&&Q===r.memoizedState||(a.flags|=1024),d=!1)}return v=d,Yu(r,a),d=(a.flags&128)!==0,v||d?(v=a.stateNode,l=d&&typeof l.getDerivedStateFromError!="function"?null:v.render(),a.flags|=1,r!==null&&d?(a.child=$a(a,r.child,null,m),a.child=$a(a,null,l,m)):sn(r,a,l,m),a.memoizedState=v.state,r=a.child):r=pi(r,a,m),r}function kS(r,a,l,d){return Ua(),a.flags|=256,sn(r,a,l,d),a.child}var Jp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function em(r){return{baseLanes:r,cachePool:Ex()}}function tm(r,a,l){return r=r!==null?r.childLanes&~l:0,a&&(r|=Bn),r}function LS(r,a,l){var d=a.pendingProps,m=!1,v=(a.flags&128)!==0,T;if((T=v)||(T=r!==null&&r.memoizedState===null?!1:(Lt.current&2)!==0),T&&(m=!0,a.flags&=-129),T=(a.flags&32)!==0,a.flags&=-33,r===null){if(We){if(m?Ki(a):$i(),(r=bt)?(r=U0(r,rr),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Pi!==null?{id:jr,overflow:zr}:null,retryLane:536870912,hydrationErrors:null},l=dx(r),l.return=a,a.child=l,an=a,bt=null)):r=null,r===null)throw Ui(a);return Mm(r)?a.lanes=32:a.lanes=536870912,null}var D=d.children;return d=d.fallback,m?($i(),m=a.mode,D=Wu({mode:"hidden",children:D},m),d=Ba(d,m,l,null),D.return=a,d.return=a,D.sibling=d,a.child=D,d=a.child,d.memoizedState=em(l),d.childLanes=tm(r,T,l),a.memoizedState=Jp,kl(null,d)):(Ki(a),nm(a,D))}var z=r.memoizedState;if(z!==null&&(D=z.dehydrated,D!==null)){if(v)a.flags&256?(Ki(a),a.flags&=-257,a=rm(r,a,l)):a.memoizedState!==null?($i(),a.child=r.child,a.flags|=128,a=null):($i(),D=d.fallback,m=a.mode,d=Wu({mode:"visible",children:d.children},m),D=Ba(D,m,l,null),D.flags|=2,d.return=a,D.return=a,d.sibling=D,a.child=d,$a(a,r.child,null,l),d=a.child,d.memoizedState=em(l),d.childLanes=tm(r,T,l),a.memoizedState=Jp,a=kl(null,d));else if(Ki(a),Mm(D)){if(T=D.nextSibling&&D.nextSibling.dataset,T)var Z=T.dgst;T=Z,d=Error(i(419)),d.stack="",d.digest=T,bl({value:d,source:null,stack:null}),a=rm(r,a,l)}else if(Pt||Ko(r,a,l,!1),T=(l&r.childLanes)!==0,Pt||T){if(T=yt,T!==null&&(d=vE(T,l),d!==0&&d!==z.retryLane))throw z.retryLane=d,Pa(r,d),In(T,r,d),Xp;zm(D)||ad(),a=rm(r,a,l)}else zm(D)?(a.flags|=192,a.child=r.child,a=null):(r=z.treeContext,bt=ar(D.nextSibling),an=a,We=!0,Bi=null,rr=!1,r!==null&&px(a,r),a=nm(a,d.children),a.flags|=4096);return a}return m?($i(),D=d.fallback,m=a.mode,z=r.child,Z=z.sibling,d=li(z,{mode:"hidden",children:d.children}),d.subtreeFlags=z.subtreeFlags&65011712,Z!==null?D=li(Z,D):(D=Ba(D,m,l,null),D.flags|=2),D.return=a,d.return=a,d.sibling=D,a.child=d,kl(null,d),d=a.child,D=r.child.memoizedState,D===null?D=em(l):(m=D.cachePool,m!==null?(z=zt._currentValue,m=m.parent!==z?{parent:z,pool:z}:m):m=Ex(),D={baseLanes:D.baseLanes|l,cachePool:m}),d.memoizedState=D,d.childLanes=tm(r,T,l),a.memoizedState=Jp,kl(r.child,d)):(Ki(a),l=r.child,r=l.sibling,l=li(l,{mode:"visible",children:d.children}),l.return=a,l.sibling=null,r!==null&&(T=a.deletions,T===null?(a.deletions=[r],a.flags|=16):T.push(r)),a.child=l,a.memoizedState=null,l)}function nm(r,a){return a=Wu({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function Wu(r,a){return r=jn(22,r,null,a),r.lanes=0,r}function rm(r,a,l){return $a(a,r.child,null,l),r=nm(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function DS(r,a,l){r.lanes|=a;var d=r.alternate;d!==null&&(d.lanes|=a),vp(r.return,a,l)}function im(r,a,l,d,m,v){var T=r.memoizedState;T===null?r.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:d,tail:l,tailMode:m,treeForkCount:v}:(T.isBackwards=a,T.rendering=null,T.renderingStartTime=0,T.last=d,T.tail=l,T.tailMode=m,T.treeForkCount=v)}function OS(r,a,l){var d=a.pendingProps,m=d.revealOrder,v=d.tail;d=d.children;var T=Lt.current,D=(T&2)!==0;if(D?(T=T&1|2,a.flags|=128):T&=1,J(Lt,T),sn(r,a,d,l),d=We?vl:0,!D&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&DS(r,l,a);else if(r.tag===19)DS(r,l,a);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===a)break e;for(;r.sibling===null;){if(r.return===null||r.return===a)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(m){case"forwards":for(l=a.child,m=null;l!==null;)r=l.alternate,r!==null&&Pu(r)===null&&(m=l),l=l.sibling;l=m,l===null?(m=a.child,a.child=null):(m=l.sibling,l.sibling=null),im(a,!1,m,l,v,d);break;case"backwards":case"unstable_legacy-backwards":for(l=null,m=a.child,a.child=null;m!==null;){if(r=m.alternate,r!==null&&Pu(r)===null){a.child=m;break}r=m.sibling,m.sibling=l,l=m,m=r}im(a,!0,l,null,v,d);break;case"together":im(a,!1,null,null,void 0,d);break;default:a.memoizedState=null}return a.child}function pi(r,a,l){if(r!==null&&(a.dependencies=r.dependencies),Yi|=a.lanes,(l&a.childLanes)===0)if(r!==null){if(Ko(r,a,l,!1),(l&a.childLanes)===0)return null}else return null;if(r!==null&&a.child!==r.child)throw Error(i(153));if(a.child!==null){for(r=a.child,l=li(r,r.pendingProps),a.child=l,l.return=a;r.sibling!==null;)r=r.sibling,l=l.sibling=li(r,r.pendingProps),l.return=a;l.sibling=null}return a.child}function am(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&Nu(r)))}function vB(r,a,l){switch(a.tag){case 3:Re(a,a.stateNode.containerInfo),Vi(a,zt,r.memoizedState.cache),Ua();break;case 27:case 5:ze(a);break;case 4:Re(a,a.stateNode.containerInfo);break;case 10:Vi(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,Np(a),null;break;case 13:var d=a.memoizedState;if(d!==null)return d.dehydrated!==null?(Ki(a),a.flags|=128,null):(l&a.child.childLanes)!==0?LS(r,a,l):(Ki(a),r=pi(r,a,l),r!==null?r.sibling:null);Ki(a);break;case 19:var m=(r.flags&128)!==0;if(d=(l&a.childLanes)!==0,d||(Ko(r,a,l,!1),d=(l&a.childLanes)!==0),m){if(d)return OS(r,a,l);a.flags|=128}if(m=a.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),J(Lt,Lt.current),d)break;return null;case 22:return a.lanes=0,CS(r,a,l,a.pendingProps);case 24:Vi(a,zt,r.memoizedState.cache)}return pi(r,a,l)}function jS(r,a,l){if(r!==null)if(r.memoizedProps!==a.pendingProps)Pt=!0;else{if(!am(r,l)&&(a.flags&128)===0)return Pt=!1,vB(r,a,l);Pt=(r.flags&131072)!==0}else Pt=!1,We&&(a.flags&1048576)!==0&&hx(a,vl,a.index);switch(a.lanes=0,a.tag){case 16:e:{var d=a.pendingProps;if(r=Ga(a.elementType),a.type=r,typeof r=="function")up(r)?(d=Za(r,d),a.tag=1,a=NS(null,a,r,d,l)):(a.tag=0,a=Qp(null,a,r,d,l));else{if(r!=null){var m=r.$$typeof;if(m===I){a.tag=11,a=AS(null,a,r,d,l);break e}else if(m===k){a.tag=14,a=wS(null,a,r,d,l);break e}}throw a=X(r)||r,Error(i(306,a,""))}}return a;case 0:return Qp(r,a,a.type,a.pendingProps,l);case 1:return d=a.type,m=Za(d,a.pendingProps),NS(r,a,d,m,l);case 3:e:{if(Re(a,a.stateNode.containerInfo),r===null)throw Error(i(387));d=a.pendingProps;var v=a.memoizedState;m=v.element,Tp(r,a),Cl(a,d,null,l);var T=a.memoizedState;if(d=T.cache,Vi(a,zt,d),d!==v.cache&&bp(a,[zt],l,!0),Tl(),d=T.element,v.isDehydrated)if(v={element:d,isDehydrated:!1,cache:T.cache},a.updateQueue.baseState=v,a.memoizedState=v,a.flags&256){a=kS(r,a,d,l);break e}else if(d!==m){m=er(Error(i(424)),a),bl(m),a=kS(r,a,d,l);break e}else{switch(r=a.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(bt=ar(r.firstChild),an=a,We=!0,Bi=null,rr=!0,l=Cx(a,null,d,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ua(),d===m){a=pi(r,a,l);break e}sn(r,a,d,l)}a=a.child}return a;case 26:return Yu(r,a),r===null?(l=$0(a.type,null,a.pendingProps,null))?a.memoizedState=l:We||(l=a.type,r=a.pendingProps,d=fd(ye.current).createElement(l),d[rn]=a,d[Sn]=r,ln(d,l,r),Xt(d),a.stateNode=d):a.memoizedState=$0(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return ze(a),r===null&&We&&(d=a.stateNode=H0(a.type,a.pendingProps,ye.current),an=a,rr=!0,m=bt,ea(a.type)?(Pm=m,bt=ar(d.firstChild)):bt=m),sn(r,a,a.pendingProps.children,l),Yu(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&We&&((m=d=bt)&&(d=ZB(d,a.type,a.pendingProps,rr),d!==null?(a.stateNode=d,an=a,bt=ar(d.firstChild),rr=!1,m=!0):m=!1),m||Ui(a)),ze(a),m=a.type,v=a.pendingProps,T=r!==null?r.memoizedProps:null,d=v.children,Dm(m,v)?d=null:T!==null&&Dm(m,T)&&(a.flags|=32),a.memoizedState!==null&&(m=Lp(r,a,cB,null,null,l),$l._currentValue=m),Yu(r,a),sn(r,a,d,l),a.child;case 6:return r===null&&We&&((r=l=bt)&&(l=YB(l,a.pendingProps,rr),l!==null?(a.stateNode=l,an=a,bt=null,r=!0):r=!1),r||Ui(a)),null;case 13:return LS(r,a,l);case 4:return Re(a,a.stateNode.containerInfo),d=a.pendingProps,r===null?a.child=$a(a,null,d,l):sn(r,a,d,l),a.child;case 11:return AS(r,a,a.type,a.pendingProps,l);case 7:return sn(r,a,a.pendingProps,l),a.child;case 8:return sn(r,a,a.pendingProps.children,l),a.child;case 12:return sn(r,a,a.pendingProps.children,l),a.child;case 10:return d=a.pendingProps,Vi(a,a.type,d.value),sn(r,a,d.children,l),a.child;case 9:return m=a.type._context,d=a.pendingProps.children,Fa(a),m=on(m),d=d(m),a.flags|=1,sn(r,a,d,l),a.child;case 14:return wS(r,a,a.type,a.pendingProps,l);case 15:return TS(r,a,a.type,a.pendingProps,l);case 19:return OS(r,a,l);case 31:return gB(r,a,l);case 22:return CS(r,a,l,a.pendingProps);case 24:return Fa(a),d=on(zt),r===null?(m=Sp(),m===null&&(m=yt,v=Ep(),m.pooledCache=v,v.refCount++,v!==null&&(m.pooledCacheLanes|=l),m=v),a.memoizedState={parent:d,cache:m},wp(a),Vi(a,zt,m)):((r.lanes&l)!==0&&(Tp(r,a),Cl(a,null,null,l),Tl()),m=r.memoizedState,v=a.memoizedState,m.parent!==d?(m={parent:d,cache:d},a.memoizedState=m,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=m),Vi(a,zt,d)):(d=v.cache,Vi(a,zt,d),d!==m.cache&&bp(a,[zt],l,!0))),sn(r,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function mi(r){r.flags|=4}function om(r,a,l,d,m){if((a=(r.mode&32)!==0)&&(a=!1),a){if(r.flags|=16777216,(m&335544128)===m)if(r.stateNode.complete)r.flags|=8192;else if(l0())r.flags|=8192;else throw Ka=Ou,Ap}else r.flags&=-16777217}function zS(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!X0(a))if(l0())r.flags|=8192;else throw Ka=Ou,Ap}function Xu(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?mE():536870912,r.lanes|=a,rs|=a)}function Ll(r,a){if(!We)switch(r.tailMode){case"hidden":a=r.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?r.tail=null:l.sibling=null;break;case"collapsed":l=r.tail;for(var d=null;l!==null;)l.alternate!==null&&(d=l),l=l.sibling;d===null?a||r.tail===null?r.tail=null:r.tail.sibling=null:d.sibling=null}}function Et(r){var a=r.alternate!==null&&r.alternate.child===r.child,l=0,d=0;if(a)for(var m=r.child;m!==null;)l|=m.lanes|m.childLanes,d|=m.subtreeFlags&65011712,d|=m.flags&65011712,m.return=r,m=m.sibling;else for(m=r.child;m!==null;)l|=m.lanes|m.childLanes,d|=m.subtreeFlags,d|=m.flags,m.return=r,m=m.sibling;return r.subtreeFlags|=d,r.childLanes=l,a}function bB(r,a,l){var d=a.pendingProps;switch(pp(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Et(a),null;case 1:return Et(a),null;case 3:return l=a.stateNode,d=null,r!==null&&(d=r.memoizedState.cache),a.memoizedState.cache!==d&&(a.flags|=2048),di(zt),Ae(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(Go(a)?mi(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,yp())),Et(a),null;case 26:var m=a.type,v=a.memoizedState;return r===null?(mi(a),v!==null?(Et(a),zS(a,v)):(Et(a),om(a,m,null,d,l))):v?v!==r.memoizedState?(mi(a),Et(a),zS(a,v)):(Et(a),a.flags&=-16777217):(r=r.memoizedProps,r!==d&&mi(a),Et(a),om(a,m,r,d,l)),null;case 27:if(Ye(a),l=ye.current,m=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==d&&mi(a);else{if(!d){if(a.stateNode===null)throw Error(i(166));return Et(a),null}r=ne.current,Go(a)?mx(a):(r=H0(m,d,l),a.stateNode=r,mi(a))}return Et(a),null;case 5:if(Ye(a),m=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==d&&mi(a);else{if(!d){if(a.stateNode===null)throw Error(i(166));return Et(a),null}if(v=ne.current,Go(a))mx(a);else{var T=fd(ye.current);switch(v){case 1:v=T.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:v=T.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":v=T.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":v=T.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":v=T.createElement("div"),v.innerHTML="<script><\/script>",v=v.removeChild(v.firstChild);break;case"select":v=typeof d.is=="string"?T.createElement("select",{is:d.is}):T.createElement("select"),d.multiple?v.multiple=!0:d.size&&(v.size=d.size);break;default:v=typeof d.is=="string"?T.createElement(m,{is:d.is}):T.createElement(m)}}v[rn]=a,v[Sn]=d;e:for(T=a.child;T!==null;){if(T.tag===5||T.tag===6)v.appendChild(T.stateNode);else if(T.tag!==4&&T.tag!==27&&T.child!==null){T.child.return=T,T=T.child;continue}if(T===a)break e;for(;T.sibling===null;){if(T.return===null||T.return===a)break e;T=T.return}T.sibling.return=T.return,T=T.sibling}a.stateNode=v;e:switch(ln(v,m,d),m){case"button":case"input":case"select":case"textarea":d=!!d.autoFocus;break e;case"img":d=!0;break e;default:d=!1}d&&mi(a)}}return Et(a),om(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,l),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==d&&mi(a);else{if(typeof d!="string"&&a.stateNode===null)throw Error(i(166));if(r=ye.current,Go(a)){if(r=a.stateNode,l=a.memoizedProps,d=null,m=an,m!==null)switch(m.tag){case 27:case 5:d=m.memoizedProps}r[rn]=a,r=!!(r.nodeValue===l||d!==null&&d.suppressHydrationWarning===!0||L0(r.nodeValue,l)),r||Ui(a,!0)}else r=fd(r).createTextNode(d),r[rn]=a,a.stateNode=r}return Et(a),null;case 31:if(l=a.memoizedState,r===null||r.memoizedState!==null){if(d=Go(a),l!==null){if(r===null){if(!d)throw Error(i(318));if(r=a.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(557));r[rn]=a}else Ua(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Et(a),r=!1}else l=yp(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=l),r=!0;if(!r)return a.flags&256?(Mn(a),a):(Mn(a),null);if((a.flags&128)!==0)throw Error(i(558))}return Et(a),null;case 13:if(d=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(m=Go(a),d!==null&&d.dehydrated!==null){if(r===null){if(!m)throw Error(i(318));if(m=a.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(i(317));m[rn]=a}else Ua(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Et(a),m=!1}else m=yp(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=m),m=!0;if(!m)return a.flags&256?(Mn(a),a):(Mn(a),null)}return Mn(a),(a.flags&128)!==0?(a.lanes=l,a):(l=d!==null,r=r!==null&&r.memoizedState!==null,l&&(d=a.child,m=null,d.alternate!==null&&d.alternate.memoizedState!==null&&d.alternate.memoizedState.cachePool!==null&&(m=d.alternate.memoizedState.cachePool.pool),v=null,d.memoizedState!==null&&d.memoizedState.cachePool!==null&&(v=d.memoizedState.cachePool.pool),v!==m&&(d.flags|=2048)),l!==r&&l&&(a.child.flags|=8192),Xu(a,a.updateQueue),Et(a),null);case 4:return Ae(),r===null&&Im(a.stateNode.containerInfo),Et(a),null;case 10:return di(a.type),Et(a),null;case 19:if(P(Lt),d=a.memoizedState,d===null)return Et(a),null;if(m=(a.flags&128)!==0,v=d.rendering,v===null)if(m)Ll(d,!1);else{if(_t!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(v=Pu(r),v!==null){for(a.flags|=128,Ll(d,!1),r=v.updateQueue,a.updateQueue=r,Xu(a,r),a.subtreeFlags=0,r=l,l=a.child;l!==null;)ux(l,r),l=l.sibling;return J(Lt,Lt.current&1|2),We&&ci(a,d.treeForkCount),a.child}r=r.sibling}d.tail!==null&&he()>nd&&(a.flags|=128,m=!0,Ll(d,!1),a.lanes=4194304)}else{if(!m)if(r=Pu(v),r!==null){if(a.flags|=128,m=!0,r=r.updateQueue,a.updateQueue=r,Xu(a,r),Ll(d,!0),d.tail===null&&d.tailMode==="hidden"&&!v.alternate&&!We)return Et(a),null}else 2*he()-d.renderingStartTime>nd&&l!==536870912&&(a.flags|=128,m=!0,Ll(d,!1),a.lanes=4194304);d.isBackwards?(v.sibling=a.child,a.child=v):(r=d.last,r!==null?r.sibling=v:a.child=v,d.last=v)}return d.tail!==null?(r=d.tail,d.rendering=r,d.tail=r.sibling,d.renderingStartTime=he(),r.sibling=null,l=Lt.current,J(Lt,m?l&1|2:l&1),We&&ci(a,d.treeForkCount),r):(Et(a),null);case 22:case 23:return Mn(a),_p(),d=a.memoizedState!==null,r!==null?r.memoizedState!==null!==d&&(a.flags|=8192):d&&(a.flags|=8192),d?(l&536870912)!==0&&(a.flags&128)===0&&(Et(a),a.subtreeFlags&6&&(a.flags|=8192)):Et(a),l=a.updateQueue,l!==null&&Xu(a,l.retryQueue),l=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),d=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(d=a.memoizedState.cachePool.pool),d!==l&&(a.flags|=2048),r!==null&&P(Ha),null;case 24:return l=null,r!==null&&(l=r.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),di(zt),Et(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function EB(r,a){switch(pp(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return di(zt),Ae(),r=a.flags,(r&65536)!==0&&(r&128)===0?(a.flags=r&-65537|128,a):null;case 26:case 27:case 5:return Ye(a),null;case 31:if(a.memoizedState!==null){if(Mn(a),a.alternate===null)throw Error(i(340));Ua()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(Mn(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));Ua()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return P(Lt),null;case 4:return Ae(),null;case 10:return di(a.type),null;case 22:case 23:return Mn(a),_p(),r!==null&&P(Ha),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return di(zt),null;case 25:return null;default:return null}}function MS(r,a){switch(pp(a),a.tag){case 3:di(zt),Ae();break;case 26:case 27:case 5:Ye(a);break;case 4:Ae();break;case 31:a.memoizedState!==null&&Mn(a);break;case 13:Mn(a);break;case 19:P(Lt);break;case 10:di(a.type);break;case 22:case 23:Mn(a),_p(),r!==null&&P(Ha);break;case 24:di(zt)}}function Dl(r,a){try{var l=a.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var m=d.next;l=m;do{if((l.tag&r)===r){d=void 0;var v=l.create,T=l.inst;d=v(),T.destroy=d}l=l.next}while(l!==m)}}catch(D){ut(a,a.return,D)}}function qi(r,a,l){try{var d=a.updateQueue,m=d!==null?d.lastEffect:null;if(m!==null){var v=m.next;d=v;do{if((d.tag&r)===r){var T=d.inst,D=T.destroy;if(D!==void 0){T.destroy=void 0,m=a;var z=l,Z=D;try{Z()}catch(re){ut(m,z,re)}}}d=d.next}while(d!==v)}}catch(re){ut(a,a.return,re)}}function PS(r){var a=r.updateQueue;if(a!==null){var l=r.stateNode;try{Ix(a,l)}catch(d){ut(r,r.return,d)}}}function BS(r,a,l){l.props=Za(r.type,r.memoizedProps),l.state=r.memoizedState;try{l.componentWillUnmount()}catch(d){ut(r,a,d)}}function Ol(r,a){try{var l=r.ref;if(l!==null){switch(r.tag){case 26:case 27:case 5:var d=r.stateNode;break;case 30:d=r.stateNode;break;default:d=r.stateNode}typeof l=="function"?r.refCleanup=l(d):l.current=d}}catch(m){ut(r,a,m)}}function Mr(r,a){var l=r.ref,d=r.refCleanup;if(l!==null)if(typeof d=="function")try{d()}catch(m){ut(r,a,m)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(m){ut(r,a,m)}else l.current=null}function US(r){var a=r.type,l=r.memoizedProps,d=r.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":l.autoFocus&&d.focus();break e;case"img":l.src?d.src=l.src:l.srcSet&&(d.srcset=l.srcSet)}}catch(m){ut(r,r.return,m)}}function sm(r,a,l){try{var d=r.stateNode;FB(d,r.type,l,a),d[Sn]=a}catch(m){ut(r,r.return,m)}}function VS(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&ea(r.type)||r.tag===4}function lm(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||VS(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&ea(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function cm(r,a,l){var d=r.tag;if(d===5||d===6)r=r.stateNode,a?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(r,a):(a=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,a.appendChild(r),l=l._reactRootContainer,l!=null||a.onclick!==null||(a.onclick=oi));else if(d!==4&&(d===27&&ea(r.type)&&(l=r.stateNode,a=null),r=r.child,r!==null))for(cm(r,a,l),r=r.sibling;r!==null;)cm(r,a,l),r=r.sibling}function Qu(r,a,l){var d=r.tag;if(d===5||d===6)r=r.stateNode,a?l.insertBefore(r,a):l.appendChild(r);else if(d!==4&&(d===27&&ea(r.type)&&(l=r.stateNode),r=r.child,r!==null))for(Qu(r,a,l),r=r.sibling;r!==null;)Qu(r,a,l),r=r.sibling}function FS(r){var a=r.stateNode,l=r.memoizedProps;try{for(var d=r.type,m=a.attributes;m.length;)a.removeAttributeNode(m[0]);ln(a,d,l),a[rn]=r,a[Sn]=l}catch(v){ut(r,r.return,v)}}var yi=!1,Bt=!1,um=!1,HS=typeof WeakSet=="function"?WeakSet:Set,Qt=null;function xB(r,a){if(r=r.containerInfo,km=bd,r=tx(r),rp(r)){if("selectionStart"in r)var l={start:r.selectionStart,end:r.selectionEnd};else e:{l=(l=r.ownerDocument)&&l.defaultView||window;var d=l.getSelection&&l.getSelection();if(d&&d.rangeCount!==0){l=d.anchorNode;var m=d.anchorOffset,v=d.focusNode;d=d.focusOffset;try{l.nodeType,v.nodeType}catch{l=null;break e}var T=0,D=-1,z=-1,Z=0,re=0,le=r,Q=null;t:for(;;){for(var ee;le!==l||m!==0&&le.nodeType!==3||(D=T+m),le!==v||d!==0&&le.nodeType!==3||(z=T+d),le.nodeType===3&&(T+=le.nodeValue.length),(ee=le.firstChild)!==null;)Q=le,le=ee;for(;;){if(le===r)break t;if(Q===l&&++Z===m&&(D=T),Q===v&&++re===d&&(z=T),(ee=le.nextSibling)!==null)break;le=Q,Q=le.parentNode}le=ee}l=D===-1||z===-1?null:{start:D,end:z}}else l=null}l=l||{start:0,end:0}}else l=null;for(Lm={focusedElem:r,selectionRange:l},bd=!1,Qt=a;Qt!==null;)if(a=Qt,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,Qt=r;else for(;Qt!==null;){switch(a=Qt,v=a.alternate,r=a.flags,a.tag){case 0:if((r&4)!==0&&(r=a.updateQueue,r=r!==null?r.events:null,r!==null))for(l=0;l<r.length;l++)m=r[l],m.ref.impl=m.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&v!==null){r=void 0,l=a,m=v.memoizedProps,v=v.memoizedState,d=l.stateNode;try{var be=Za(l.type,m);r=d.getSnapshotBeforeUpdate(be,v),d.__reactInternalSnapshotBeforeUpdate=r}catch(ke){ut(l,l.return,ke)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,l=r.nodeType,l===9)jm(r);else if(l===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":jm(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(i(163))}if(r=a.sibling,r!==null){r.return=a.return,Qt=r;break}Qt=a.return}}function GS(r,a,l){var d=l.flags;switch(l.tag){case 0:case 11:case 15:vi(r,l),d&4&&Dl(5,l);break;case 1:if(vi(r,l),d&4)if(r=l.stateNode,a===null)try{r.componentDidMount()}catch(T){ut(l,l.return,T)}else{var m=Za(l.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(m,a,r.__reactInternalSnapshotBeforeUpdate)}catch(T){ut(l,l.return,T)}}d&64&&PS(l),d&512&&Ol(l,l.return);break;case 3:if(vi(r,l),d&64&&(r=l.updateQueue,r!==null)){if(a=null,l.child!==null)switch(l.child.tag){case 27:case 5:a=l.child.stateNode;break;case 1:a=l.child.stateNode}try{Ix(r,a)}catch(T){ut(l,l.return,T)}}break;case 27:a===null&&d&4&&FS(l);case 26:case 5:vi(r,l),a===null&&d&4&&US(l),d&512&&Ol(l,l.return);break;case 12:vi(r,l);break;case 31:vi(r,l),d&4&&qS(r,l);break;case 13:vi(r,l),d&4&&ZS(r,l),d&64&&(r=l.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(l=NB.bind(null,l),WB(r,l))));break;case 22:if(d=l.memoizedState!==null||yi,!d){a=a!==null&&a.memoizedState!==null||Bt,m=yi;var v=Bt;yi=d,(Bt=a)&&!v?bi(r,l,(l.subtreeFlags&8772)!==0):vi(r,l),yi=m,Bt=v}break;case 30:break;default:vi(r,l)}}function KS(r){var a=r.alternate;a!==null&&(r.alternate=null,KS(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&Uh(a)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var xt=null,wn=!1;function gi(r,a,l){for(l=l.child;l!==null;)$S(r,a,l),l=l.sibling}function $S(r,a,l){if(nn&&typeof nn.onCommitFiberUnmount=="function")try{nn.onCommitFiberUnmount(ii,l)}catch{}switch(l.tag){case 26:Bt||Mr(l,a),gi(r,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Bt||Mr(l,a);var d=xt,m=wn;ea(l.type)&&(xt=l.stateNode,wn=!1),gi(r,a,l),Hl(l.stateNode),xt=d,wn=m;break;case 5:Bt||Mr(l,a);case 6:if(d=xt,m=wn,xt=null,gi(r,a,l),xt=d,wn=m,xt!==null)if(wn)try{(xt.nodeType===9?xt.body:xt.nodeName==="HTML"?xt.ownerDocument.body:xt).removeChild(l.stateNode)}catch(v){ut(l,a,v)}else try{xt.removeChild(l.stateNode)}catch(v){ut(l,a,v)}break;case 18:xt!==null&&(wn?(r=xt,P0(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,l.stateNode),ds(r)):P0(xt,l.stateNode));break;case 4:d=xt,m=wn,xt=l.stateNode.containerInfo,wn=!0,gi(r,a,l),xt=d,wn=m;break;case 0:case 11:case 14:case 15:qi(2,l,a),Bt||qi(4,l,a),gi(r,a,l);break;case 1:Bt||(Mr(l,a),d=l.stateNode,typeof d.componentWillUnmount=="function"&&BS(l,a,d)),gi(r,a,l);break;case 21:gi(r,a,l);break;case 22:Bt=(d=Bt)||l.memoizedState!==null,gi(r,a,l),Bt=d;break;default:gi(r,a,l)}}function qS(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{ds(r)}catch(l){ut(a,a.return,l)}}}function ZS(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{ds(r)}catch(l){ut(a,a.return,l)}}function SB(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new HS),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new HS),a;default:throw Error(i(435,r.tag))}}function Ju(r,a){var l=SB(r);a.forEach(function(d){if(!l.has(d)){l.add(d);var m=kB.bind(null,r,d);d.then(m,m)}})}function Tn(r,a){var l=a.deletions;if(l!==null)for(var d=0;d<l.length;d++){var m=l[d],v=r,T=a,D=T;e:for(;D!==null;){switch(D.tag){case 27:if(ea(D.type)){xt=D.stateNode,wn=!1;break e}break;case 5:xt=D.stateNode,wn=!1;break e;case 3:case 4:xt=D.stateNode.containerInfo,wn=!0;break e}D=D.return}if(xt===null)throw Error(i(160));$S(v,T,m),xt=null,wn=!1,v=m.alternate,v!==null&&(v.return=null),m.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)YS(a,r),a=a.sibling}var yr=null;function YS(r,a){var l=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:Tn(a,r),Cn(r),d&4&&(qi(3,r,r.return),Dl(3,r),qi(5,r,r.return));break;case 1:Tn(a,r),Cn(r),d&512&&(Bt||l===null||Mr(l,l.return)),d&64&&yi&&(r=r.updateQueue,r!==null&&(d=r.callbacks,d!==null&&(l=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=l===null?d:l.concat(d))));break;case 26:var m=yr;if(Tn(a,r),Cn(r),d&512&&(Bt||l===null||Mr(l,l.return)),d&4){var v=l!==null?l.memoizedState:null;if(d=r.memoizedState,l===null)if(d===null)if(r.stateNode===null){e:{d=r.type,l=r.memoizedProps,m=m.ownerDocument||m;t:switch(d){case"title":v=m.getElementsByTagName("title")[0],(!v||v[sl]||v[rn]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=m.createElement(d),m.head.insertBefore(v,m.querySelector("head > title"))),ln(v,d,l),v[rn]=r,Xt(v),d=v;break e;case"link":var T=Y0("link","href",m).get(d+(l.href||""));if(T){for(var D=0;D<T.length;D++)if(v=T[D],v.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&v.getAttribute("rel")===(l.rel==null?null:l.rel)&&v.getAttribute("title")===(l.title==null?null:l.title)&&v.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){T.splice(D,1);break t}}v=m.createElement(d),ln(v,d,l),m.head.appendChild(v);break;case"meta":if(T=Y0("meta","content",m).get(d+(l.content||""))){for(D=0;D<T.length;D++)if(v=T[D],v.getAttribute("content")===(l.content==null?null:""+l.content)&&v.getAttribute("name")===(l.name==null?null:l.name)&&v.getAttribute("property")===(l.property==null?null:l.property)&&v.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&v.getAttribute("charset")===(l.charSet==null?null:l.charSet)){T.splice(D,1);break t}}v=m.createElement(d),ln(v,d,l),m.head.appendChild(v);break;default:throw Error(i(468,d))}v[rn]=r,Xt(v),d=v}r.stateNode=d}else W0(m,r.type,r.stateNode);else r.stateNode=Z0(m,d,r.memoizedProps);else v!==d?(v===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):v.count--,d===null?W0(m,r.type,r.stateNode):Z0(m,d,r.memoizedProps)):d===null&&r.stateNode!==null&&sm(r,r.memoizedProps,l.memoizedProps)}break;case 27:Tn(a,r),Cn(r),d&512&&(Bt||l===null||Mr(l,l.return)),l!==null&&d&4&&sm(r,r.memoizedProps,l.memoizedProps);break;case 5:if(Tn(a,r),Cn(r),d&512&&(Bt||l===null||Mr(l,l.return)),r.flags&32){m=r.stateNode;try{Oo(m,"")}catch(be){ut(r,r.return,be)}}d&4&&r.stateNode!=null&&(m=r.memoizedProps,sm(r,m,l!==null?l.memoizedProps:m)),d&1024&&(um=!0);break;case 6:if(Tn(a,r),Cn(r),d&4){if(r.stateNode===null)throw Error(i(162));d=r.memoizedProps,l=r.stateNode;try{l.nodeValue=d}catch(be){ut(r,r.return,be)}}break;case 3:if(md=null,m=yr,yr=hd(a.containerInfo),Tn(a,r),yr=m,Cn(r),d&4&&l!==null&&l.memoizedState.isDehydrated)try{ds(a.containerInfo)}catch(be){ut(r,r.return,be)}um&&(um=!1,WS(r));break;case 4:d=yr,yr=hd(r.stateNode.containerInfo),Tn(a,r),Cn(r),yr=d;break;case 12:Tn(a,r),Cn(r);break;case 31:Tn(a,r),Cn(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,Ju(r,d)));break;case 13:Tn(a,r),Cn(r),r.child.flags&8192&&r.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(td=he()),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,Ju(r,d)));break;case 22:m=r.memoizedState!==null;var z=l!==null&&l.memoizedState!==null,Z=yi,re=Bt;if(yi=Z||m,Bt=re||z,Tn(a,r),Bt=re,yi=Z,Cn(r),d&8192)e:for(a=r.stateNode,a._visibility=m?a._visibility&-2:a._visibility|1,m&&(l===null||z||yi||Bt||Ya(r)),l=null,a=r;;){if(a.tag===5||a.tag===26){if(l===null){z=l=a;try{if(v=z.stateNode,m)T=v.style,typeof T.setProperty=="function"?T.setProperty("display","none","important"):T.display="none";else{D=z.stateNode;var le=z.memoizedProps.style,Q=le!=null&&le.hasOwnProperty("display")?le.display:null;D.style.display=Q==null||typeof Q=="boolean"?"":(""+Q).trim()}}catch(be){ut(z,z.return,be)}}}else if(a.tag===6){if(l===null){z=a;try{z.stateNode.nodeValue=m?"":z.memoizedProps}catch(be){ut(z,z.return,be)}}}else if(a.tag===18){if(l===null){z=a;try{var ee=z.stateNode;m?B0(ee,!0):B0(z.stateNode,!1)}catch(be){ut(z,z.return,be)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===r)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===r)break e;for(;a.sibling===null;){if(a.return===null||a.return===r)break e;l===a&&(l=null),a=a.return}l===a&&(l=null),a.sibling.return=a.return,a=a.sibling}d&4&&(d=r.updateQueue,d!==null&&(l=d.retryQueue,l!==null&&(d.retryQueue=null,Ju(r,l))));break;case 19:Tn(a,r),Cn(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,Ju(r,d)));break;case 30:break;case 21:break;default:Tn(a,r),Cn(r)}}function Cn(r){var a=r.flags;if(a&2){try{for(var l,d=r.return;d!==null;){if(VS(d)){l=d;break}d=d.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var m=l.stateNode,v=lm(r);Qu(r,v,m);break;case 5:var T=l.stateNode;l.flags&32&&(Oo(T,""),l.flags&=-33);var D=lm(r);Qu(r,D,T);break;case 3:case 4:var z=l.stateNode.containerInfo,Z=lm(r);cm(r,Z,z);break;default:throw Error(i(161))}}catch(re){ut(r,r.return,re)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function WS(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;WS(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function vi(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)GS(r,a.alternate,a),a=a.sibling}function Ya(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:qi(4,a,a.return),Ya(a);break;case 1:Mr(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&BS(a,a.return,l),Ya(a);break;case 27:Hl(a.stateNode);case 26:case 5:Mr(a,a.return),Ya(a);break;case 22:a.memoizedState===null&&Ya(a);break;case 30:Ya(a);break;default:Ya(a)}r=r.sibling}}function bi(r,a,l){for(l=l&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var d=a.alternate,m=r,v=a,T=v.flags;switch(v.tag){case 0:case 11:case 15:bi(m,v,l),Dl(4,v);break;case 1:if(bi(m,v,l),d=v,m=d.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(Z){ut(d,d.return,Z)}if(d=v,m=d.updateQueue,m!==null){var D=d.stateNode;try{var z=m.shared.hiddenCallbacks;if(z!==null)for(m.shared.hiddenCallbacks=null,m=0;m<z.length;m++)Rx(z[m],D)}catch(Z){ut(d,d.return,Z)}}l&&T&64&&PS(v),Ol(v,v.return);break;case 27:FS(v);case 26:case 5:bi(m,v,l),l&&d===null&&T&4&&US(v),Ol(v,v.return);break;case 12:bi(m,v,l);break;case 31:bi(m,v,l),l&&T&4&&qS(m,v);break;case 13:bi(m,v,l),l&&T&4&&ZS(m,v);break;case 22:v.memoizedState===null&&bi(m,v,l),Ol(v,v.return);break;case 30:break;default:bi(m,v,l)}a=a.sibling}}function dm(r,a){var l=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),r=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(r=a.memoizedState.cachePool.pool),r!==l&&(r!=null&&r.refCount++,l!=null&&El(l))}function fm(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&El(r))}function gr(r,a,l,d){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)XS(r,a,l,d),a=a.sibling}function XS(r,a,l,d){var m=a.flags;switch(a.tag){case 0:case 11:case 15:gr(r,a,l,d),m&2048&&Dl(9,a);break;case 1:gr(r,a,l,d);break;case 3:gr(r,a,l,d),m&2048&&(r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&El(r)));break;case 12:if(m&2048){gr(r,a,l,d),r=a.stateNode;try{var v=a.memoizedProps,T=v.id,D=v.onPostCommit;typeof D=="function"&&D(T,a.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(z){ut(a,a.return,z)}}else gr(r,a,l,d);break;case 31:gr(r,a,l,d);break;case 13:gr(r,a,l,d);break;case 23:break;case 22:v=a.stateNode,T=a.alternate,a.memoizedState!==null?v._visibility&2?gr(r,a,l,d):jl(r,a):v._visibility&2?gr(r,a,l,d):(v._visibility|=2,es(r,a,l,d,(a.subtreeFlags&10256)!==0||!1)),m&2048&&dm(T,a);break;case 24:gr(r,a,l,d),m&2048&&fm(a.alternate,a);break;default:gr(r,a,l,d)}}function es(r,a,l,d,m){for(m=m&&((a.subtreeFlags&10256)!==0||!1),a=a.child;a!==null;){var v=r,T=a,D=l,z=d,Z=T.flags;switch(T.tag){case 0:case 11:case 15:es(v,T,D,z,m),Dl(8,T);break;case 23:break;case 22:var re=T.stateNode;T.memoizedState!==null?re._visibility&2?es(v,T,D,z,m):jl(v,T):(re._visibility|=2,es(v,T,D,z,m)),m&&Z&2048&&dm(T.alternate,T);break;case 24:es(v,T,D,z,m),m&&Z&2048&&fm(T.alternate,T);break;default:es(v,T,D,z,m)}a=a.sibling}}function jl(r,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var l=r,d=a,m=d.flags;switch(d.tag){case 22:jl(l,d),m&2048&&dm(d.alternate,d);break;case 24:jl(l,d),m&2048&&fm(d.alternate,d);break;default:jl(l,d)}a=a.sibling}}var zl=8192;function ts(r,a,l){if(r.subtreeFlags&zl)for(r=r.child;r!==null;)QS(r,a,l),r=r.sibling}function QS(r,a,l){switch(r.tag){case 26:ts(r,a,l),r.flags&zl&&r.memoizedState!==null&&l2(l,yr,r.memoizedState,r.memoizedProps);break;case 5:ts(r,a,l);break;case 3:case 4:var d=yr;yr=hd(r.stateNode.containerInfo),ts(r,a,l),yr=d;break;case 22:r.memoizedState===null&&(d=r.alternate,d!==null&&d.memoizedState!==null?(d=zl,zl=16777216,ts(r,a,l),zl=d):ts(r,a,l));break;default:ts(r,a,l)}}function JS(r){var a=r.alternate;if(a!==null&&(r=a.child,r!==null)){a.child=null;do a=r.sibling,r.sibling=null,r=a;while(r!==null)}}function Ml(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var d=a[l];Qt=d,t0(d,r)}JS(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)e0(r),r=r.sibling}function e0(r){switch(r.tag){case 0:case 11:case 15:Ml(r),r.flags&2048&&qi(9,r,r.return);break;case 3:Ml(r);break;case 12:Ml(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,ed(r)):Ml(r);break;default:Ml(r)}}function ed(r){var a=r.deletions;if((r.flags&16)!==0){if(a!==null)for(var l=0;l<a.length;l++){var d=a[l];Qt=d,t0(d,r)}JS(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:qi(8,a,a.return),ed(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,ed(a));break;default:ed(a)}r=r.sibling}}function t0(r,a){for(;Qt!==null;){var l=Qt;switch(l.tag){case 0:case 11:case 15:qi(8,l,a);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var d=l.memoizedState.cachePool.pool;d!=null&&d.refCount++}break;case 24:El(l.memoizedState.cache)}if(d=l.child,d!==null)d.return=l,Qt=d;else e:for(l=r;Qt!==null;){d=Qt;var m=d.sibling,v=d.return;if(KS(d),d===l){Qt=null;break e}if(m!==null){m.return=v,Qt=m;break e}Qt=v}}}var AB={getCacheForType:function(r){var a=on(zt),l=a.data.get(r);return l===void 0&&(l=r(),a.data.set(r,l)),l},cacheSignal:function(){return on(zt).controller.signal}},wB=typeof WeakMap=="function"?WeakMap:Map,ot=0,yt=null,Ke=null,qe=0,ct=0,Pn=null,Zi=!1,ns=!1,hm=!1,Ei=0,_t=0,Yi=0,Wa=0,pm=0,Bn=0,rs=0,Pl=null,Rn=null,mm=!1,td=0,n0=0,nd=1/0,rd=null,Wi=null,Kt=0,Xi=null,is=null,xi=0,ym=0,gm=null,r0=null,Bl=0,vm=null;function Un(){return(ot&2)!==0&&qe!==0?qe&-qe:M.T!==null?wm():bE()}function i0(){if(Bn===0)if((qe&536870912)===0||We){var r=du;du<<=1,(du&3932160)===0&&(du=262144),Bn=r}else Bn=536870912;return r=zn.current,r!==null&&(r.flags|=32),Bn}function In(r,a,l){(r===yt&&(ct===2||ct===9)||r.cancelPendingCommit!==null)&&(as(r,0),Qi(r,qe,Bn,!1)),ol(r,l),((ot&2)===0||r!==yt)&&(r===yt&&((ot&2)===0&&(Wa|=l),_t===4&&Qi(r,qe,Bn,!1)),Pr(r))}function a0(r,a,l){if((ot&6)!==0)throw Error(i(327));var d=!l&&(a&127)===0&&(a&r.expiredLanes)===0||al(r,a),m=d?RB(r,a):Em(r,a,!0),v=d;do{if(m===0){ns&&!d&&Qi(r,a,0,!1);break}else{if(l=r.current.alternate,v&&!TB(l)){m=Em(r,a,!1),v=!1;continue}if(m===2){if(v=a,r.errorRecoveryDisabledLanes&v)var T=0;else T=r.pendingLanes&-536870913,T=T!==0?T:T&536870912?536870912:0;if(T!==0){a=T;e:{var D=r;m=Pl;var z=D.current.memoizedState.isDehydrated;if(z&&(as(D,T).flags|=256),T=Em(D,T,!1),T!==2){if(hm&&!z){D.errorRecoveryDisabledLanes|=v,Wa|=v,m=4;break e}v=Rn,Rn=m,v!==null&&(Rn===null?Rn=v:Rn.push.apply(Rn,v))}m=T}if(v=!1,m!==2)continue}}if(m===1){as(r,0),Qi(r,a,0,!0);break}e:{switch(d=r,v=m,v){case 0:case 1:throw Error(i(345));case 4:if((a&4194048)!==a)break;case 6:Qi(d,a,Bn,!Zi);break e;case 2:Rn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(m=td+300-he(),10<m)){if(Qi(d,a,Bn,!Zi),hu(d,0,!0)!==0)break e;xi=a,d.timeoutHandle=z0(o0.bind(null,d,l,Rn,rd,mm,a,Bn,Wa,rs,Zi,v,"Throttled",-0,0),m);break e}o0(d,l,Rn,rd,mm,a,Bn,Wa,rs,Zi,v,null,-0,0)}}break}while(!0);Pr(r)}function o0(r,a,l,d,m,v,T,D,z,Z,re,le,Q,ee){if(r.timeoutHandle=-1,le=a.subtreeFlags,le&8192||(le&16785408)===16785408){le={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:oi},QS(a,v,le);var be=(v&62914560)===v?td-he():(v&4194048)===v?n0-he():0;if(be=c2(le,be),be!==null){xi=v,r.cancelPendingCommit=be(p0.bind(null,r,a,v,l,d,m,T,D,z,re,le,null,Q,ee)),Qi(r,v,T,!Z);return}}p0(r,a,v,l,d,m,T,D,z)}function TB(r){for(var a=r;;){var l=a.tag;if((l===0||l===11||l===15)&&a.flags&16384&&(l=a.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var d=0;d<l.length;d++){var m=l[d],v=m.getSnapshot;m=m.value;try{if(!On(v(),m))return!1}catch{return!1}}if(l=a.child,a.subtreeFlags&16384&&l!==null)l.return=a,a=l;else{if(a===r)break;for(;a.sibling===null;){if(a.return===null||a.return===r)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function Qi(r,a,l,d){a&=~pm,a&=~Wa,r.suspendedLanes|=a,r.pingedLanes&=~a,d&&(r.warmLanes|=a),d=r.expirationTimes;for(var m=a;0<m;){var v=31-fn(m),T=1<<v;d[v]=-1,m&=~T}l!==0&&yE(r,l,a)}function id(){return(ot&6)===0?(Ul(0),!1):!0}function bm(){if(Ke!==null){if(ct===0)var r=Ke.return;else r=Ke,ui=Va=null,jp(r),Yo=null,Sl=0,r=Ke;for(;r!==null;)MS(r.alternate,r),r=r.return;Ke=null}}function as(r,a){var l=r.timeoutHandle;l!==-1&&(r.timeoutHandle=-1,KB(l)),l=r.cancelPendingCommit,l!==null&&(r.cancelPendingCommit=null,l()),xi=0,bm(),yt=r,Ke=l=li(r.current,null),qe=a,ct=0,Pn=null,Zi=!1,ns=al(r,a),hm=!1,rs=Bn=pm=Wa=Yi=_t=0,Rn=Pl=null,mm=!1,(a&8)!==0&&(a|=a&32);var d=r.entangledLanes;if(d!==0)for(r=r.entanglements,d&=a;0<d;){var m=31-fn(d),v=1<<m;a|=r[m],d&=~v}return Ei=a,Tu(),l}function s0(r,a){Be=null,M.H=Nl,a===Zo||a===Du?(a=Ax(),ct=3):a===Ap?(a=Ax(),ct=4):ct=a===Xp?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Pn=a,Ke===null&&(_t=1,qu(r,er(a,r.current)))}function l0(){var r=zn.current;return r===null?!0:(qe&4194048)===qe?ir===null:(qe&62914560)===qe||(qe&536870912)!==0?r===ir:!1}function c0(){var r=M.H;return M.H=Nl,r===null?Nl:r}function u0(){var r=M.A;return M.A=AB,r}function ad(){_t=4,Zi||(qe&4194048)!==qe&&zn.current!==null||(ns=!0),(Yi&134217727)===0&&(Wa&134217727)===0||yt===null||Qi(yt,qe,Bn,!1)}function Em(r,a,l){var d=ot;ot|=2;var m=c0(),v=u0();(yt!==r||qe!==a)&&(rd=null,as(r,a)),a=!1;var T=_t;e:do try{if(ct!==0&&Ke!==null){var D=Ke,z=Pn;switch(ct){case 8:bm(),T=6;break e;case 3:case 2:case 9:case 6:zn.current===null&&(a=!0);var Z=ct;if(ct=0,Pn=null,os(r,D,z,Z),l&&ns){T=0;break e}break;default:Z=ct,ct=0,Pn=null,os(r,D,z,Z)}}CB(),T=_t;break}catch(re){s0(r,re)}while(!0);return a&&r.shellSuspendCounter++,ui=Va=null,ot=d,M.H=m,M.A=v,Ke===null&&(yt=null,qe=0,Tu()),T}function CB(){for(;Ke!==null;)d0(Ke)}function RB(r,a){var l=ot;ot|=2;var d=c0(),m=u0();yt!==r||qe!==a?(rd=null,nd=he()+500,as(r,a)):ns=al(r,a);e:do try{if(ct!==0&&Ke!==null){a=Ke;var v=Pn;t:switch(ct){case 1:ct=0,Pn=null,os(r,a,v,1);break;case 2:case 9:if(xx(v)){ct=0,Pn=null,f0(a);break}a=function(){ct!==2&&ct!==9||yt!==r||(ct=7),Pr(r)},v.then(a,a);break e;case 3:ct=7;break e;case 4:ct=5;break e;case 7:xx(v)?(ct=0,Pn=null,f0(a)):(ct=0,Pn=null,os(r,a,v,7));break;case 5:var T=null;switch(Ke.tag){case 26:T=Ke.memoizedState;case 5:case 27:var D=Ke;if(T?X0(T):D.stateNode.complete){ct=0,Pn=null;var z=D.sibling;if(z!==null)Ke=z;else{var Z=D.return;Z!==null?(Ke=Z,od(Z)):Ke=null}break t}}ct=0,Pn=null,os(r,a,v,5);break;case 6:ct=0,Pn=null,os(r,a,v,6);break;case 8:bm(),_t=6;break e;default:throw Error(i(462))}}IB();break}catch(re){s0(r,re)}while(!0);return ui=Va=null,M.H=d,M.A=m,ot=l,Ke!==null?0:(yt=null,qe=0,Tu(),_t)}function IB(){for(;Ke!==null&&!ae();)d0(Ke)}function d0(r){var a=jS(r.alternate,r,Ei);r.memoizedProps=r.pendingProps,a===null?od(r):Ke=a}function f0(r){var a=r,l=a.alternate;switch(a.tag){case 15:case 0:a=_S(l,a,a.pendingProps,a.type,void 0,qe);break;case 11:a=_S(l,a,a.pendingProps,a.type.render,a.ref,qe);break;case 5:jp(a);default:MS(l,a),a=Ke=ux(a,Ei),a=jS(l,a,Ei)}r.memoizedProps=r.pendingProps,a===null?od(r):Ke=a}function os(r,a,l,d){ui=Va=null,jp(a),Yo=null,Sl=0;var m=a.return;try{if(yB(r,m,a,l,qe)){_t=1,qu(r,er(l,r.current)),Ke=null;return}}catch(v){if(m!==null)throw Ke=m,v;_t=1,qu(r,er(l,r.current)),Ke=null;return}a.flags&32768?(We||d===1?r=!0:ns||(qe&536870912)!==0?r=!1:(Zi=r=!0,(d===2||d===9||d===3||d===6)&&(d=zn.current,d!==null&&d.tag===13&&(d.flags|=16384))),h0(a,r)):od(a)}function od(r){var a=r;do{if((a.flags&32768)!==0){h0(a,Zi);return}r=a.return;var l=bB(a.alternate,a,Ei);if(l!==null){Ke=l;return}if(a=a.sibling,a!==null){Ke=a;return}Ke=a=r}while(a!==null);_t===0&&(_t=5)}function h0(r,a){do{var l=EB(r.alternate,r);if(l!==null){l.flags&=32767,Ke=l;return}if(l=r.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!a&&(r=r.sibling,r!==null)){Ke=r;return}Ke=r=l}while(r!==null);_t=6,Ke=null}function p0(r,a,l,d,m,v,T,D,z){r.cancelPendingCommit=null;do sd();while(Kt!==0);if((ot&6)!==0)throw Error(i(327));if(a!==null){if(a===r.current)throw Error(i(177));if(v=a.lanes|a.childLanes,v|=lp,sP(r,l,v,T,D,z),r===yt&&(Ke=yt=null,qe=0),is=a,Xi=r,xi=l,ym=v,gm=m,r0=d,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,LB(at,function(){return b0(),null})):(r.callbackNode=null,r.callbackPriority=0),d=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||d){d=M.T,M.T=null,m=Y.p,Y.p=2,T=ot,ot|=4;try{xB(r,a,l)}finally{ot=T,Y.p=m,M.T=d}}Kt=1,m0(),y0(),g0()}}function m0(){if(Kt===1){Kt=0;var r=Xi,a=is,l=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||l){l=M.T,M.T=null;var d=Y.p;Y.p=2;var m=ot;ot|=4;try{YS(a,r);var v=Lm,T=tx(r.containerInfo),D=v.focusedElem,z=v.selectionRange;if(T!==D&&D&&D.ownerDocument&&ex(D.ownerDocument.documentElement,D)){if(z!==null&&rp(D)){var Z=z.start,re=z.end;if(re===void 0&&(re=Z),"selectionStart"in D)D.selectionStart=Z,D.selectionEnd=Math.min(re,D.value.length);else{var le=D.ownerDocument||document,Q=le&&le.defaultView||window;if(Q.getSelection){var ee=Q.getSelection(),be=D.textContent.length,ke=Math.min(z.start,be),mt=z.end===void 0?ke:Math.min(z.end,be);!ee.extend&&ke>mt&&(T=mt,mt=ke,ke=T);var K=JE(D,ke),V=JE(D,mt);if(K&&V&&(ee.rangeCount!==1||ee.anchorNode!==K.node||ee.anchorOffset!==K.offset||ee.focusNode!==V.node||ee.focusOffset!==V.offset)){var q=le.createRange();q.setStart(K.node,K.offset),ee.removeAllRanges(),ke>mt?(ee.addRange(q),ee.extend(V.node,V.offset)):(q.setEnd(V.node,V.offset),ee.addRange(q))}}}}for(le=[],ee=D;ee=ee.parentNode;)ee.nodeType===1&&le.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<le.length;D++){var se=le[D];se.element.scrollLeft=se.left,se.element.scrollTop=se.top}}bd=!!km,Lm=km=null}finally{ot=m,Y.p=d,M.T=l}}r.current=a,Kt=2}}function y0(){if(Kt===2){Kt=0;var r=Xi,a=is,l=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||l){l=M.T,M.T=null;var d=Y.p;Y.p=2;var m=ot;ot|=4;try{GS(r,a.alternate,a)}finally{ot=m,Y.p=d,M.T=l}}Kt=3}}function g0(){if(Kt===4||Kt===3){Kt=0,ve();var r=Xi,a=is,l=xi,d=r0;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Kt=5:(Kt=0,is=Xi=null,v0(r,r.pendingLanes));var m=r.pendingLanes;if(m===0&&(Wi=null),Ph(l),a=a.stateNode,nn&&typeof nn.onCommitFiberRoot=="function")try{nn.onCommitFiberRoot(ii,a,void 0,(a.current.flags&128)===128)}catch{}if(d!==null){a=M.T,m=Y.p,Y.p=2,M.T=null;try{for(var v=r.onRecoverableError,T=0;T<d.length;T++){var D=d[T];v(D.value,{componentStack:D.stack})}}finally{M.T=a,Y.p=m}}(xi&3)!==0&&sd(),Pr(r),m=r.pendingLanes,(l&261930)!==0&&(m&42)!==0?r===vm?Bl++:(Bl=0,vm=r):Bl=0,Ul(0)}}function v0(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,El(a)))}function sd(){return m0(),y0(),g0(),b0()}function b0(){if(Kt!==5)return!1;var r=Xi,a=ym;ym=0;var l=Ph(xi),d=M.T,m=Y.p;try{Y.p=32>l?32:l,M.T=null,l=gm,gm=null;var v=Xi,T=xi;if(Kt=0,is=Xi=null,xi=0,(ot&6)!==0)throw Error(i(331));var D=ot;if(ot|=4,e0(v.current),XS(v,v.current,T,l),ot=D,Ul(0,!1),nn&&typeof nn.onPostCommitFiberRoot=="function")try{nn.onPostCommitFiberRoot(ii,v)}catch{}return!0}finally{Y.p=m,M.T=d,v0(r,a)}}function E0(r,a,l){a=er(l,a),a=Wp(r.stateNode,a,2),r=Gi(r,a,2),r!==null&&(ol(r,2),Pr(r))}function ut(r,a,l){if(r.tag===3)E0(r,r,l);else for(;a!==null;){if(a.tag===3){E0(a,r,l);break}else if(a.tag===1){var d=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Wi===null||!Wi.has(d))){r=er(l,r),l=xS(2),d=Gi(a,l,2),d!==null&&(SS(l,d,a,r),ol(d,2),Pr(d));break}}a=a.return}}function xm(r,a,l){var d=r.pingCache;if(d===null){d=r.pingCache=new wB;var m=new Set;d.set(a,m)}else m=d.get(a),m===void 0&&(m=new Set,d.set(a,m));m.has(l)||(hm=!0,m.add(l),r=_B.bind(null,r,a,l),a.then(r,r))}function _B(r,a,l){var d=r.pingCache;d!==null&&d.delete(a),r.pingedLanes|=r.suspendedLanes&l,r.warmLanes&=~l,yt===r&&(qe&l)===l&&(_t===4||_t===3&&(qe&62914560)===qe&&300>he()-td?(ot&2)===0&&as(r,0):pm|=l,rs===qe&&(rs=0)),Pr(r)}function x0(r,a){a===0&&(a=mE()),r=Pa(r,a),r!==null&&(ol(r,a),Pr(r))}function NB(r){var a=r.memoizedState,l=0;a!==null&&(l=a.retryLane),x0(r,l)}function kB(r,a){var l=0;switch(r.tag){case 31:case 13:var d=r.stateNode,m=r.memoizedState;m!==null&&(l=m.retryLane);break;case 19:d=r.stateNode;break;case 22:d=r.stateNode._retryCache;break;default:throw Error(i(314))}d!==null&&d.delete(a),x0(r,l)}function LB(r,a){return B(r,a)}var ld=null,ss=null,Sm=!1,cd=!1,Am=!1,Ji=0;function Pr(r){r!==ss&&r.next===null&&(ss===null?ld=ss=r:ss=ss.next=r),cd=!0,Sm||(Sm=!0,OB())}function Ul(r,a){if(!Am&&cd){Am=!0;do for(var l=!1,d=ld;d!==null;){if(r!==0){var m=d.pendingLanes;if(m===0)var v=0;else{var T=d.suspendedLanes,D=d.pingedLanes;v=(1<<31-fn(42|r)+1)-1,v&=m&~(T&~D),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(l=!0,T0(d,v))}else v=qe,v=hu(d,d===yt?v:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(v&3)===0||al(d,v)||(l=!0,T0(d,v));d=d.next}while(l);Am=!1}}function DB(){S0()}function S0(){cd=Sm=!1;var r=0;Ji!==0&&GB()&&(r=Ji);for(var a=he(),l=null,d=ld;d!==null;){var m=d.next,v=A0(d,a);v===0?(d.next=null,l===null?ld=m:l.next=m,m===null&&(ss=l)):(l=d,(r!==0||(v&3)!==0)&&(cd=!0)),d=m}Kt!==0&&Kt!==5||Ul(r),Ji!==0&&(Ji=0)}function A0(r,a){for(var l=r.suspendedLanes,d=r.pingedLanes,m=r.expirationTimes,v=r.pendingLanes&-62914561;0<v;){var T=31-fn(v),D=1<<T,z=m[T];z===-1?((D&l)===0||(D&d)!==0)&&(m[T]=oP(D,a)):z<=a&&(r.expiredLanes|=D),v&=~D}if(a=yt,l=qe,l=hu(r,r===a?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d=r.callbackNode,l===0||r===a&&(ct===2||ct===9)||r.cancelPendingCommit!==null)return d!==null&&d!==null&&W(d),r.callbackNode=null,r.callbackPriority=0;if((l&3)===0||al(r,l)){if(a=l&-l,a===r.callbackPriority)return a;switch(d!==null&&W(d),Ph(l)){case 2:case 8:l=tt;break;case 32:l=at;break;case 268435456:l=La;break;default:l=at}return d=w0.bind(null,r),l=B(l,d),r.callbackPriority=a,r.callbackNode=l,a}return d!==null&&d!==null&&W(d),r.callbackPriority=2,r.callbackNode=null,2}function w0(r,a){if(Kt!==0&&Kt!==5)return r.callbackNode=null,r.callbackPriority=0,null;var l=r.callbackNode;if(sd()&&r.callbackNode!==l)return null;var d=qe;return d=hu(r,r===yt?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d===0?null:(a0(r,d,a),A0(r,he()),r.callbackNode!=null&&r.callbackNode===l?w0.bind(null,r):null)}function T0(r,a){if(sd())return null;a0(r,a,!0)}function OB(){$B(function(){(ot&6)!==0?B(Ie,DB):S0()})}function wm(){if(Ji===0){var r=$o;r===0&&(r=uu,uu<<=1,(uu&261888)===0&&(uu=256)),Ji=r}return Ji}function C0(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:gu(""+r)}function R0(r,a){var l=a.ownerDocument.createElement("input");return l.name=a.name,l.value=a.value,r.id&&l.setAttribute("form",r.id),a.parentNode.insertBefore(l,a),r=new FormData(r),l.parentNode.removeChild(l),r}function jB(r,a,l,d,m){if(a==="submit"&&l&&l.stateNode===m){var v=C0((m[Sn]||null).action),T=d.submitter;T&&(a=(a=T[Sn]||null)?C0(a.formAction):T.getAttribute("formAction"),a!==null&&(v=a,T=null));var D=new xu("action","action",null,d,m);r.push({event:D,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Ji!==0){var z=T?R0(m,T):new FormData(m);Gp(l,{pending:!0,data:z,method:m.method,action:v},null,z)}}else typeof v=="function"&&(D.preventDefault(),z=T?R0(m,T):new FormData(m),Gp(l,{pending:!0,data:z,method:m.method,action:v},v,z))},currentTarget:m}]})}}for(var Tm=0;Tm<sp.length;Tm++){var Cm=sp[Tm],zB=Cm.toLowerCase(),MB=Cm[0].toUpperCase()+Cm.slice(1);mr(zB,"on"+MB)}mr(ix,"onAnimationEnd"),mr(ax,"onAnimationIteration"),mr(ox,"onAnimationStart"),mr("dblclick","onDoubleClick"),mr("focusin","onFocus"),mr("focusout","onBlur"),mr(JP,"onTransitionRun"),mr(eB,"onTransitionStart"),mr(tB,"onTransitionCancel"),mr(sx,"onTransitionEnd"),Lo("onMouseEnter",["mouseout","mouseover"]),Lo("onMouseLeave",["mouseout","mouseover"]),Lo("onPointerEnter",["pointerout","pointerover"]),Lo("onPointerLeave",["pointerout","pointerover"]),Oa("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Oa("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Oa("onBeforeInput",["compositionend","keypress","textInput","paste"]),Oa("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Oa("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Oa("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(" "),PB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vl));function I0(r,a){a=(a&4)!==0;for(var l=0;l<r.length;l++){var d=r[l],m=d.event;d=d.listeners;e:{var v=void 0;if(a)for(var T=d.length-1;0<=T;T--){var D=d[T],z=D.instance,Z=D.currentTarget;if(D=D.listener,z!==v&&m.isPropagationStopped())break e;v=D,m.currentTarget=Z;try{v(m)}catch(re){wu(re)}m.currentTarget=null,v=z}else for(T=0;T<d.length;T++){if(D=d[T],z=D.instance,Z=D.currentTarget,D=D.listener,z!==v&&m.isPropagationStopped())break e;v=D,m.currentTarget=Z;try{v(m)}catch(re){wu(re)}m.currentTarget=null,v=z}}}}function $e(r,a){var l=a[Bh];l===void 0&&(l=a[Bh]=new Set);var d=r+"__bubble";l.has(d)||(_0(a,r,2,!1),l.add(d))}function Rm(r,a,l){var d=0;a&&(d|=4),_0(l,r,d,a)}var ud="_reactListening"+Math.random().toString(36).slice(2);function Im(r){if(!r[ud]){r[ud]=!0,SE.forEach(function(l){l!=="selectionchange"&&(PB.has(l)||Rm(l,!1,r),Rm(l,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[ud]||(a[ud]=!0,Rm("selectionchange",!1,a))}}function _0(r,a,l,d){switch(iA(a)){case 2:var m=f2;break;case 8:m=h2;break;default:m=Hm}l=m.bind(null,a,l,r),m=void 0,!Zh||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(m=!0),d?m!==void 0?r.addEventListener(a,l,{capture:!0,passive:m}):r.addEventListener(a,l,!0):m!==void 0?r.addEventListener(a,l,{passive:m}):r.addEventListener(a,l,!1)}function _m(r,a,l,d,m){var v=d;if((a&1)===0&&(a&2)===0&&d!==null)e:for(;;){if(d===null)return;var T=d.tag;if(T===3||T===4){var D=d.stateNode.containerInfo;if(D===m)break;if(T===4)for(T=d.return;T!==null;){var z=T.tag;if((z===3||z===4)&&T.stateNode.containerInfo===m)return;T=T.return}for(;D!==null;){if(T=_o(D),T===null)return;if(z=T.tag,z===5||z===6||z===26||z===27){d=v=T;continue e}D=D.parentNode}}d=d.return}OE(function(){var Z=v,re=$h(l),le=[];e:{var Q=lx.get(r);if(Q!==void 0){var ee=xu,be=r;switch(r){case"keypress":if(bu(l)===0)break e;case"keydown":case"keyup":ee=kP;break;case"focusin":be="focus",ee=Qh;break;case"focusout":be="blur",ee=Qh;break;case"beforeblur":case"afterblur":ee=Qh;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=ME;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=bP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=OP;break;case ix:case ax:case ox:ee=SP;break;case sx:ee=zP;break;case"scroll":case"scrollend":ee=gP;break;case"wheel":ee=PP;break;case"copy":case"cut":case"paste":ee=wP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=BE;break;case"toggle":case"beforetoggle":ee=UP}var ke=(a&4)!==0,mt=!ke&&(r==="scroll"||r==="scrollend"),K=ke?Q!==null?Q+"Capture":null:Q;ke=[];for(var V=Z,q;V!==null;){var se=V;if(q=se.stateNode,se=se.tag,se!==5&&se!==26&&se!==27||q===null||K===null||(se=cl(V,K),se!=null&&ke.push(Fl(V,se,q))),mt)break;V=V.return}0<ke.length&&(Q=new ee(Q,be,null,l,re),le.push({event:Q,listeners:ke}))}}if((a&7)===0){e:{if(Q=r==="mouseover"||r==="pointerover",ee=r==="mouseout"||r==="pointerout",Q&&l!==Kh&&(be=l.relatedTarget||l.fromElement)&&(_o(be)||be[Io]))break e;if((ee||Q)&&(Q=re.window===re?re:(Q=re.ownerDocument)?Q.defaultView||Q.parentWindow:window,ee?(be=l.relatedTarget||l.toElement,ee=Z,be=be?_o(be):null,be!==null&&(mt=s(be),ke=be.tag,be!==mt||ke!==5&&ke!==27&&ke!==6)&&(be=null)):(ee=null,be=Z),ee!==be)){if(ke=ME,se="onMouseLeave",K="onMouseEnter",V="mouse",(r==="pointerout"||r==="pointerover")&&(ke=BE,se="onPointerLeave",K="onPointerEnter",V="pointer"),mt=ee==null?Q:ll(ee),q=be==null?Q:ll(be),Q=new ke(se,V+"leave",ee,l,re),Q.target=mt,Q.relatedTarget=q,se=null,_o(re)===Z&&(ke=new ke(K,V+"enter",be,l,re),ke.target=q,ke.relatedTarget=mt,se=ke),mt=se,ee&&be)t:{for(ke=BB,K=ee,V=be,q=0,se=K;se;se=ke(se))q++;se=0;for(var _e=V;_e;_e=ke(_e))se++;for(;0<q-se;)K=ke(K),q--;for(;0<se-q;)V=ke(V),se--;for(;q--;){if(K===V||V!==null&&K===V.alternate){ke=K;break t}K=ke(K),V=ke(V)}ke=null}else ke=null;ee!==null&&N0(le,Q,ee,ke,!1),be!==null&&mt!==null&&N0(le,mt,be,ke,!0)}}e:{if(Q=Z?ll(Z):window,ee=Q.nodeName&&Q.nodeName.toLowerCase(),ee==="select"||ee==="input"&&Q.type==="file")var nt=qE;else if(KE(Q))if(ZE)nt=WP;else{nt=ZP;var we=qP}else ee=Q.nodeName,!ee||ee.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?Z&&Gh(Z.elementType)&&(nt=qE):nt=YP;if(nt&&(nt=nt(r,Z))){$E(le,nt,l,re);break e}we&&we(r,Q,Z),r==="focusout"&&Z&&Q.type==="number"&&Z.memoizedProps.value!=null&&Hh(Q,"number",Q.value)}switch(we=Z?ll(Z):window,r){case"focusin":(KE(we)||we.contentEditable==="true")&&(Po=we,ip=Z,gl=null);break;case"focusout":gl=ip=Po=null;break;case"mousedown":ap=!0;break;case"contextmenu":case"mouseup":case"dragend":ap=!1,nx(le,l,re);break;case"selectionchange":if(QP)break;case"keydown":case"keyup":nx(le,l,re)}var Ue;if(ep)e:{switch(r){case"compositionstart":var Ze="onCompositionStart";break e;case"compositionend":Ze="onCompositionEnd";break e;case"compositionupdate":Ze="onCompositionUpdate";break e}Ze=void 0}else Mo?HE(r,l)&&(Ze="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Ze="onCompositionStart");Ze&&(UE&&l.locale!=="ko"&&(Mo||Ze!=="onCompositionStart"?Ze==="onCompositionEnd"&&Mo&&(Ue=jE()):(Mi=re,Yh="value"in Mi?Mi.value:Mi.textContent,Mo=!0)),we=dd(Z,Ze),0<we.length&&(Ze=new PE(Ze,r,null,l,re),le.push({event:Ze,listeners:we}),Ue?Ze.data=Ue:(Ue=GE(l),Ue!==null&&(Ze.data=Ue)))),(Ue=FP?HP(r,l):GP(r,l))&&(Ze=dd(Z,"onBeforeInput"),0<Ze.length&&(we=new PE("onBeforeInput","beforeinput",null,l,re),le.push({event:we,listeners:Ze}),we.data=Ue)),jB(le,r,Z,l,re)}I0(le,a)})}function Fl(r,a,l){return{instance:r,listener:a,currentTarget:l}}function dd(r,a){for(var l=a+"Capture",d=[];r!==null;){var m=r,v=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||v===null||(m=cl(r,l),m!=null&&d.unshift(Fl(r,m,v)),m=cl(r,a),m!=null&&d.push(Fl(r,m,v))),r.tag===3)return d;r=r.return}return[]}function BB(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function N0(r,a,l,d,m){for(var v=a._reactName,T=[];l!==null&&l!==d;){var D=l,z=D.alternate,Z=D.stateNode;if(D=D.tag,z!==null&&z===d)break;D!==5&&D!==26&&D!==27||Z===null||(z=Z,m?(Z=cl(l,v),Z!=null&&T.unshift(Fl(l,Z,z))):m||(Z=cl(l,v),Z!=null&&T.push(Fl(l,Z,z)))),l=l.return}T.length!==0&&r.push({event:a,listeners:T})}var UB=/\r\n?/g,VB=/\u0000|\uFFFD/g;function k0(r){return(typeof r=="string"?r:""+r).replace(UB,`
49
+ `).replace(VB,"")}function L0(r,a){return a=k0(a),k0(r)===a}function pt(r,a,l,d,m,v){switch(l){case"children":typeof d=="string"?a==="body"||a==="textarea"&&d===""||Oo(r,d):(typeof d=="number"||typeof d=="bigint")&&a!=="body"&&Oo(r,""+d);break;case"className":mu(r,"class",d);break;case"tabIndex":mu(r,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":mu(r,l,d);break;case"style":LE(r,d,v);break;case"data":if(a!=="object"){mu(r,"data",d);break}case"src":case"href":if(d===""&&(a!=="a"||l!=="href")){r.removeAttribute(l);break}if(d==null||typeof d=="function"||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(l);break}d=gu(""+d),r.setAttribute(l,d);break;case"action":case"formAction":if(typeof d=="function"){r.setAttribute(l,"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 v=="function"&&(l==="formAction"?(a!=="input"&&pt(r,a,"name",m.name,m,null),pt(r,a,"formEncType",m.formEncType,m,null),pt(r,a,"formMethod",m.formMethod,m,null),pt(r,a,"formTarget",m.formTarget,m,null)):(pt(r,a,"encType",m.encType,m,null),pt(r,a,"method",m.method,m,null),pt(r,a,"target",m.target,m,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(l);break}d=gu(""+d),r.setAttribute(l,d);break;case"onClick":d!=null&&(r.onclick=oi);break;case"onScroll":d!=null&&$e("scroll",r);break;case"onScrollEnd":d!=null&&$e("scrollend",r);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(i(61));if(l=d.__html,l!=null){if(m.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"multiple":r.multiple=d&&typeof d!="function"&&typeof d!="symbol";break;case"muted":r.muted=d&&typeof d!="function"&&typeof d!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(d==null||typeof d=="function"||typeof d=="boolean"||typeof d=="symbol"){r.removeAttribute("xlink:href");break}l=gu(""+d),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(l,""+d):r.removeAttribute(l);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":d&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(l,""):r.removeAttribute(l);break;case"capture":case"download":d===!0?r.setAttribute(l,""):d!==!1&&d!=null&&typeof d!="function"&&typeof d!="symbol"?r.setAttribute(l,d):r.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":d!=null&&typeof d!="function"&&typeof d!="symbol"&&!isNaN(d)&&1<=d?r.setAttribute(l,d):r.removeAttribute(l);break;case"rowSpan":case"start":d==null||typeof d=="function"||typeof d=="symbol"||isNaN(d)?r.removeAttribute(l):r.setAttribute(l,d);break;case"popover":$e("beforetoggle",r),$e("toggle",r),pu(r,"popover",d);break;case"xlinkActuate":ai(r,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":ai(r,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":ai(r,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":ai(r,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":ai(r,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":ai(r,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":ai(r,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":ai(r,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":ai(r,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":pu(r,"is",d);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=mP.get(l)||l,pu(r,l,d))}}function Nm(r,a,l,d,m,v){switch(l){case"style":LE(r,d,v);break;case"dangerouslySetInnerHTML":if(d!=null){if(typeof d!="object"||!("__html"in d))throw Error(i(61));if(l=d.__html,l!=null){if(m.children!=null)throw Error(i(60));r.innerHTML=l}}break;case"children":typeof d=="string"?Oo(r,d):(typeof d=="number"||typeof d=="bigint")&&Oo(r,""+d);break;case"onScroll":d!=null&&$e("scroll",r);break;case"onScrollEnd":d!=null&&$e("scrollend",r);break;case"onClick":d!=null&&(r.onclick=oi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!AE.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(m=l.endsWith("Capture"),a=l.slice(2,m?l.length-7:void 0),v=r[Sn]||null,v=v!=null?v[l]:null,typeof v=="function"&&r.removeEventListener(a,v,m),typeof d=="function")){typeof v!="function"&&v!==null&&(l in r?r[l]=null:r.hasAttribute(l)&&r.removeAttribute(l)),r.addEventListener(a,d,m);break e}l in r?r[l]=d:d===!0?r.setAttribute(l,""):pu(r,l,d)}}}function ln(r,a,l){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",r),$e("load",r);var d=!1,m=!1,v;for(v in l)if(l.hasOwnProperty(v)){var T=l[v];if(T!=null)switch(v){case"src":d=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:pt(r,a,v,T,l,null)}}m&&pt(r,a,"srcSet",l.srcSet,l,null),d&&pt(r,a,"src",l.src,l,null);return;case"input":$e("invalid",r);var D=v=T=m=null,z=null,Z=null;for(d in l)if(l.hasOwnProperty(d)){var re=l[d];if(re!=null)switch(d){case"name":m=re;break;case"type":T=re;break;case"checked":z=re;break;case"defaultChecked":Z=re;break;case"value":v=re;break;case"defaultValue":D=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(i(137,a));break;default:pt(r,a,d,re,l,null)}}IE(r,v,D,z,Z,T,m,!1);return;case"select":$e("invalid",r),d=T=v=null;for(m in l)if(l.hasOwnProperty(m)&&(D=l[m],D!=null))switch(m){case"value":v=D;break;case"defaultValue":T=D;break;case"multiple":d=D;default:pt(r,a,m,D,l,null)}a=v,l=T,r.multiple=!!d,a!=null?Do(r,!!d,a,!1):l!=null&&Do(r,!!d,l,!0);return;case"textarea":$e("invalid",r),v=m=d=null;for(T in l)if(l.hasOwnProperty(T)&&(D=l[T],D!=null))switch(T){case"value":d=D;break;case"defaultValue":m=D;break;case"children":v=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(i(91));break;default:pt(r,a,T,D,l,null)}NE(r,d,m,v);return;case"option":for(z in l)if(l.hasOwnProperty(z)&&(d=l[z],d!=null))switch(z){case"selected":r.selected=d&&typeof d!="function"&&typeof d!="symbol";break;default:pt(r,a,z,d,l,null)}return;case"dialog":$e("beforetoggle",r),$e("toggle",r),$e("cancel",r),$e("close",r);break;case"iframe":case"object":$e("load",r);break;case"video":case"audio":for(d=0;d<Vl.length;d++)$e(Vl[d],r);break;case"image":$e("error",r),$e("load",r);break;case"details":$e("toggle",r);break;case"embed":case"source":case"link":$e("error",r),$e("load",r);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Z in l)if(l.hasOwnProperty(Z)&&(d=l[Z],d!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,a));default:pt(r,a,Z,d,l,null)}return;default:if(Gh(a)){for(re in l)l.hasOwnProperty(re)&&(d=l[re],d!==void 0&&Nm(r,a,re,d,l,void 0));return}}for(D in l)l.hasOwnProperty(D)&&(d=l[D],d!=null&&pt(r,a,D,d,l,null))}function FB(r,a,l,d){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var m=null,v=null,T=null,D=null,z=null,Z=null,re=null;for(ee in l){var le=l[ee];if(l.hasOwnProperty(ee)&&le!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":z=le;default:d.hasOwnProperty(ee)||pt(r,a,ee,null,d,le)}}for(var Q in d){var ee=d[Q];if(le=l[Q],d.hasOwnProperty(Q)&&(ee!=null||le!=null))switch(Q){case"type":v=ee;break;case"name":m=ee;break;case"checked":Z=ee;break;case"defaultChecked":re=ee;break;case"value":T=ee;break;case"defaultValue":D=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(i(137,a));break;default:ee!==le&&pt(r,a,Q,ee,d,le)}}Fh(r,T,D,z,Z,re,v,m);return;case"select":ee=T=D=Q=null;for(v in l)if(z=l[v],l.hasOwnProperty(v)&&z!=null)switch(v){case"value":break;case"multiple":ee=z;default:d.hasOwnProperty(v)||pt(r,a,v,null,d,z)}for(m in d)if(v=d[m],z=l[m],d.hasOwnProperty(m)&&(v!=null||z!=null))switch(m){case"value":Q=v;break;case"defaultValue":D=v;break;case"multiple":T=v;default:v!==z&&pt(r,a,m,v,d,z)}a=D,l=T,d=ee,Q!=null?Do(r,!!l,Q,!1):!!d!=!!l&&(a!=null?Do(r,!!l,a,!0):Do(r,!!l,l?[]:"",!1));return;case"textarea":ee=Q=null;for(D in l)if(m=l[D],l.hasOwnProperty(D)&&m!=null&&!d.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:pt(r,a,D,null,d,m)}for(T in d)if(m=d[T],v=l[T],d.hasOwnProperty(T)&&(m!=null||v!=null))switch(T){case"value":Q=m;break;case"defaultValue":ee=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(i(91));break;default:m!==v&&pt(r,a,T,m,d,v)}_E(r,Q,ee);return;case"option":for(var be in l)if(Q=l[be],l.hasOwnProperty(be)&&Q!=null&&!d.hasOwnProperty(be))switch(be){case"selected":r.selected=!1;break;default:pt(r,a,be,null,d,Q)}for(z in d)if(Q=d[z],ee=l[z],d.hasOwnProperty(z)&&Q!==ee&&(Q!=null||ee!=null))switch(z){case"selected":r.selected=Q&&typeof Q!="function"&&typeof Q!="symbol";break;default:pt(r,a,z,Q,d,ee)}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 ke in l)Q=l[ke],l.hasOwnProperty(ke)&&Q!=null&&!d.hasOwnProperty(ke)&&pt(r,a,ke,null,d,Q);for(Z in d)if(Q=d[Z],ee=l[Z],d.hasOwnProperty(Z)&&Q!==ee&&(Q!=null||ee!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,a));break;default:pt(r,a,Z,Q,d,ee)}return;default:if(Gh(a)){for(var mt in l)Q=l[mt],l.hasOwnProperty(mt)&&Q!==void 0&&!d.hasOwnProperty(mt)&&Nm(r,a,mt,void 0,d,Q);for(re in d)Q=d[re],ee=l[re],!d.hasOwnProperty(re)||Q===ee||Q===void 0&&ee===void 0||Nm(r,a,re,Q,d,ee);return}}for(var K in l)Q=l[K],l.hasOwnProperty(K)&&Q!=null&&!d.hasOwnProperty(K)&&pt(r,a,K,null,d,Q);for(le in d)Q=d[le],ee=l[le],!d.hasOwnProperty(le)||Q===ee||Q==null&&ee==null||pt(r,a,le,Q,d,ee)}function D0(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function HB(){if(typeof performance.getEntriesByType=="function"){for(var r=0,a=0,l=performance.getEntriesByType("resource"),d=0;d<l.length;d++){var m=l[d],v=m.transferSize,T=m.initiatorType,D=m.duration;if(v&&D&&D0(T)){for(T=0,D=m.responseEnd,d+=1;d<l.length;d++){var z=l[d],Z=z.startTime;if(Z>D)break;var re=z.transferSize,le=z.initiatorType;re&&D0(le)&&(z=z.responseEnd,T+=re*(z<D?1:(D-Z)/(z-Z)))}if(--d,a+=8*(v+T)/(m.duration/1e3),r++,10<r)break}}if(0<r)return a/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var km=null,Lm=null;function fd(r){return r.nodeType===9?r:r.ownerDocument}function O0(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function j0(r,a){if(r===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&a==="foreignObject"?0:r}function Dm(r,a){return r==="textarea"||r==="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 Om=null;function GB(){var r=window.event;return r&&r.type==="popstate"?r===Om?!1:(Om=r,!0):(Om=null,!1)}var z0=typeof setTimeout=="function"?setTimeout:void 0,KB=typeof clearTimeout=="function"?clearTimeout:void 0,M0=typeof Promise=="function"?Promise:void 0,$B=typeof queueMicrotask=="function"?queueMicrotask:typeof M0<"u"?function(r){return M0.resolve(null).then(r).catch(qB)}:z0;function qB(r){setTimeout(function(){throw r})}function ea(r){return r==="head"}function P0(r,a){var l=a,d=0;do{var m=l.nextSibling;if(r.removeChild(l),m&&m.nodeType===8)if(l=m.data,l==="/$"||l==="/&"){if(d===0){r.removeChild(m),ds(a);return}d--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")d++;else if(l==="html")Hl(r.ownerDocument.documentElement);else if(l==="head"){l=r.ownerDocument.head,Hl(l);for(var v=l.firstChild;v;){var T=v.nextSibling,D=v.nodeName;v[sl]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&v.rel.toLowerCase()==="stylesheet"||l.removeChild(v),v=T}}else l==="body"&&Hl(r.ownerDocument.body);l=m}while(l);ds(a)}function B0(r,a){var l=r;r=0;do{var d=l.nextSibling;if(l.nodeType===1?a?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(a?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),d&&d.nodeType===8)if(l=d.data,l==="/$"){if(r===0)break;r--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||r++;l=d}while(l)}function jm(r){var a=r.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var l=a;switch(a=a.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":jm(l),Uh(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}r.removeChild(l)}}function ZB(r,a,l,d){for(;r.nodeType===1;){var m=l;if(r.nodeName.toLowerCase()!==a.toLowerCase()){if(!d&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(d){if(!r[sl])switch(a){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(v=r.getAttribute("rel"),v==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(v!==m.rel||r.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||r.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||r.getAttribute("title")!==(m.title==null?null:m.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(v=r.getAttribute("src"),(v!==(m.src==null?null:m.src)||r.getAttribute("type")!==(m.type==null?null:m.type)||r.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&v&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(a==="input"&&r.type==="hidden"){var v=m.name==null?null:""+m.name;if(m.type==="hidden"&&r.getAttribute("name")===v)return r}else return r;if(r=ar(r.nextSibling),r===null)break}return null}function YB(r,a,l){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!l||(r=ar(r.nextSibling),r===null))return null;return r}function U0(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=ar(r.nextSibling),r===null))return null;return r}function zm(r){return r.data==="$?"||r.data==="$~"}function Mm(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function WB(r,a){var l=r.ownerDocument;if(r.data==="$~")r._reactRetry=a;else if(r.data!=="$?"||l.readyState!=="loading")a();else{var d=function(){a(),l.removeEventListener("DOMContentLoaded",d)};l.addEventListener("DOMContentLoaded",d),r._reactRetry=d}}function ar(r){for(;r!=null;r=r.nextSibling){var a=r.nodeType;if(a===1||a===3)break;if(a===8){if(a=r.data,a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"||a==="F!"||a==="F")break;if(a==="/$"||a==="/&")return null}}return r}var Pm=null;function V0(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"||l==="/&"){if(a===0)return ar(r.nextSibling);a--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||a++}r=r.nextSibling}return null}function F0(r){r=r.previousSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(a===0)return r;a--}else l!=="/$"&&l!=="/&"||a++}r=r.previousSibling}return null}function H0(r,a,l){switch(a=fd(l),r){case"html":if(r=a.documentElement,!r)throw Error(i(452));return r;case"head":if(r=a.head,!r)throw Error(i(453));return r;case"body":if(r=a.body,!r)throw Error(i(454));return r;default:throw Error(i(451))}}function Hl(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);Uh(r)}var or=new Map,G0=new Set;function hd(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var Si=Y.d;Y.d={f:XB,r:QB,D:JB,C:e2,L:t2,m:n2,X:i2,S:r2,M:a2};function XB(){var r=Si.f(),a=id();return r||a}function QB(r){var a=No(r);a!==null&&a.tag===5&&a.type==="form"?sS(a):Si.r(r)}var ls=typeof document>"u"?null:document;function K0(r,a,l){var d=ls;if(d&&typeof a=="string"&&a){var m=Qn(a);m='link[rel="'+r+'"][href="'+m+'"]',typeof l=="string"&&(m+='[crossorigin="'+l+'"]'),G0.has(m)||(G0.add(m),r={rel:r,crossOrigin:l,href:a},d.querySelector(m)===null&&(a=d.createElement("link"),ln(a,"link",r),Xt(a),d.head.appendChild(a)))}}function JB(r){Si.D(r),K0("dns-prefetch",r,null)}function e2(r,a){Si.C(r,a),K0("preconnect",r,a)}function t2(r,a,l){Si.L(r,a,l);var d=ls;if(d&&r&&a){var m='link[rel="preload"][as="'+Qn(a)+'"]';a==="image"&&l&&l.imageSrcSet?(m+='[imagesrcset="'+Qn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(m+='[imagesizes="'+Qn(l.imageSizes)+'"]')):m+='[href="'+Qn(r)+'"]';var v=m;switch(a){case"style":v=cs(r);break;case"script":v=us(r)}or.has(v)||(r=g({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:r,as:a},l),or.set(v,r),d.querySelector(m)!==null||a==="style"&&d.querySelector(Gl(v))||a==="script"&&d.querySelector(Kl(v))||(a=d.createElement("link"),ln(a,"link",r),Xt(a),d.head.appendChild(a)))}}function n2(r,a){Si.m(r,a);var l=ls;if(l&&r){var d=a&&typeof a.as=="string"?a.as:"script",m='link[rel="modulepreload"][as="'+Qn(d)+'"][href="'+Qn(r)+'"]',v=m;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=us(r)}if(!or.has(v)&&(r=g({rel:"modulepreload",href:r},a),or.set(v,r),l.querySelector(m)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Kl(v)))return}d=l.createElement("link"),ln(d,"link",r),Xt(d),l.head.appendChild(d)}}}function r2(r,a,l){Si.S(r,a,l);var d=ls;if(d&&r){var m=ko(d).hoistableStyles,v=cs(r);a=a||"default";var T=m.get(v);if(!T){var D={loading:0,preload:null};if(T=d.querySelector(Gl(v)))D.loading=5;else{r=g({rel:"stylesheet",href:r,"data-precedence":a},l),(l=or.get(v))&&Bm(r,l);var z=T=d.createElement("link");Xt(z),ln(z,"link",r),z._p=new Promise(function(Z,re){z.onload=Z,z.onerror=re}),z.addEventListener("load",function(){D.loading|=1}),z.addEventListener("error",function(){D.loading|=2}),D.loading|=4,pd(T,a,d)}T={type:"stylesheet",instance:T,count:1,state:D},m.set(v,T)}}}function i2(r,a){Si.X(r,a);var l=ls;if(l&&r){var d=ko(l).hoistableScripts,m=us(r),v=d.get(m);v||(v=l.querySelector(Kl(m)),v||(r=g({src:r,async:!0},a),(a=or.get(m))&&Um(r,a),v=l.createElement("script"),Xt(v),ln(v,"link",r),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},d.set(m,v))}}function a2(r,a){Si.M(r,a);var l=ls;if(l&&r){var d=ko(l).hoistableScripts,m=us(r),v=d.get(m);v||(v=l.querySelector(Kl(m)),v||(r=g({src:r,async:!0,type:"module"},a),(a=or.get(m))&&Um(r,a),v=l.createElement("script"),Xt(v),ln(v,"link",r),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},d.set(m,v))}}function $0(r,a,l,d){var m=(m=ye.current)?hd(m):null;if(!m)throw Error(i(446));switch(r){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(a=cs(l.href),l=ko(m).hoistableStyles,d=l.get(a),d||(d={type:"style",instance:null,count:0,state:null},l.set(a,d)),d):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){r=cs(l.href);var v=ko(m).hoistableStyles,T=v.get(r);if(T||(m=m.ownerDocument||m,T={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},v.set(r,T),(v=m.querySelector(Gl(r)))&&!v._p&&(T.instance=v,T.state.loading=5),or.has(r)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},or.set(r,l),v||o2(m,r,l,T.state))),a&&d===null)throw Error(i(528,""));return T}if(a&&d!==null)throw Error(i(529,""));return null;case"script":return a=l.async,l=l.src,typeof l=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=us(l),l=ko(m).hoistableScripts,d=l.get(a),d||(d={type:"script",instance:null,count:0,state:null},l.set(a,d)),d):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,r))}}function cs(r){return'href="'+Qn(r)+'"'}function Gl(r){return'link[rel="stylesheet"]['+r+"]"}function q0(r){return g({},r,{"data-precedence":r.precedence,precedence:null})}function o2(r,a,l,d){r.querySelector('link[rel="preload"][as="style"]['+a+"]")?d.loading=1:(a=r.createElement("link"),d.preload=a,a.addEventListener("load",function(){return d.loading|=1}),a.addEventListener("error",function(){return d.loading|=2}),ln(a,"link",l),Xt(a),r.head.appendChild(a))}function us(r){return'[src="'+Qn(r)+'"]'}function Kl(r){return"script[async]"+r}function Z0(r,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var d=r.querySelector('style[data-href~="'+Qn(l.href)+'"]');if(d)return a.instance=d,Xt(d),d;var m=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return d=(r.ownerDocument||r).createElement("style"),Xt(d),ln(d,"style",m),pd(d,l.precedence,r),a.instance=d;case"stylesheet":m=cs(l.href);var v=r.querySelector(Gl(m));if(v)return a.state.loading|=4,a.instance=v,Xt(v),v;d=q0(l),(m=or.get(m))&&Bm(d,m),v=(r.ownerDocument||r).createElement("link"),Xt(v);var T=v;return T._p=new Promise(function(D,z){T.onload=D,T.onerror=z}),ln(v,"link",d),a.state.loading|=4,pd(v,l.precedence,r),a.instance=v;case"script":return v=us(l.src),(m=r.querySelector(Kl(v)))?(a.instance=m,Xt(m),m):(d=l,(m=or.get(v))&&(d=g({},l),Um(d,m)),r=r.ownerDocument||r,m=r.createElement("script"),Xt(m),ln(m,"link",d),r.head.appendChild(m),a.instance=m);case"void":return null;default:throw Error(i(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(d=a.instance,a.state.loading|=4,pd(d,l.precedence,r));return a.instance}function pd(r,a,l){for(var d=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=d.length?d[d.length-1]:null,v=m,T=0;T<d.length;T++){var D=d[T];if(D.dataset.precedence===a)v=D;else if(v!==m)break}v?v.parentNode.insertBefore(r,v.nextSibling):(a=l.nodeType===9?l.head:l,a.insertBefore(r,a.firstChild))}function Bm(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function Um(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var md=null;function Y0(r,a,l){if(md===null){var d=new Map,m=md=new Map;m.set(l,d)}else m=md,d=m.get(l),d||(d=new Map,m.set(l,d));if(d.has(r))return d;for(d.set(r,null),l=l.getElementsByTagName(r),m=0;m<l.length;m++){var v=l[m];if(!(v[sl]||v[rn]||r==="link"&&v.getAttribute("rel")==="stylesheet")&&v.namespaceURI!=="http://www.w3.org/2000/svg"){var T=v.getAttribute(a)||"";T=r+T;var D=d.get(T);D?D.push(v):d.set(T,[v])}}return d}function W0(r,a,l){r=r.ownerDocument||r,r.head.insertBefore(l,a==="title"?r.querySelector("head > title"):null)}function s2(r,a,l){if(l===1||a.itemProp!=null)return!1;switch(r){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 r=a.disabled,typeof a.precedence=="string"&&r==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 X0(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function l2(r,a,l,d){if(l.type==="stylesheet"&&(typeof d.media!="string"||matchMedia(d.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var m=cs(d.href),v=a.querySelector(Gl(m));if(v){a=v._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=yd.bind(r),a.then(r,r)),l.state.loading|=4,l.instance=v,Xt(v);return}v=a.ownerDocument||a,d=q0(d),(m=or.get(m))&&Bm(d,m),v=v.createElement("link"),Xt(v);var T=v;T._p=new Promise(function(D,z){T.onload=D,T.onerror=z}),ln(v,"link",d),l.instance=v}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(l,a),(a=l.state.preload)&&(l.state.loading&3)===0&&(r.count++,l=yd.bind(r),a.addEventListener("load",l),a.addEventListener("error",l))}}var Vm=0;function c2(r,a){return r.stylesheets&&r.count===0&&vd(r,r.stylesheets),0<r.count||0<r.imgCount?function(l){var d=setTimeout(function(){if(r.stylesheets&&vd(r,r.stylesheets),r.unsuspend){var v=r.unsuspend;r.unsuspend=null,v()}},6e4+a);0<r.imgBytes&&Vm===0&&(Vm=62500*HB());var m=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&vd(r,r.stylesheets),r.unsuspend)){var v=r.unsuspend;r.unsuspend=null,v()}},(r.imgBytes>Vm?50:800)+a);return r.unsuspend=l,function(){r.unsuspend=null,clearTimeout(d),clearTimeout(m)}}:null}function yd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)vd(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var gd=null;function vd(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,gd=new Map,a.forEach(u2,r),gd=null,yd.call(r))}function u2(r,a){if(!(a.state.loading&4)){var l=gd.get(r);if(l)var d=l.get(null);else{l=new Map,gd.set(r,l);for(var m=r.querySelectorAll("link[data-precedence],style[data-precedence]"),v=0;v<m.length;v++){var T=m[v];(T.nodeName==="LINK"||T.getAttribute("media")!=="not all")&&(l.set(T.dataset.precedence,T),d=T)}d&&l.set(null,d)}m=a.instance,T=m.getAttribute("data-precedence"),v=l.get(T)||d,v===d&&l.set(null,m),l.set(T,m),this.count++,d=yd.bind(this),m.addEventListener("load",d),m.addEventListener("error",d),v?v.parentNode.insertBefore(m,v.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(m,r.firstChild)),a.state.loading|=4}}var $l={$$typeof:R,Provider:null,Consumer:null,_currentValue:$,_currentValue2:$,_threadCount:0};function d2(r,a,l,d,m,v,T,D,z){this.tag=1,this.containerInfo=r,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=zh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zh(0),this.hiddenUpdates=zh(null),this.identifierPrefix=d,this.onUncaughtError=m,this.onCaughtError=v,this.onRecoverableError=T,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function Q0(r,a,l,d,m,v,T,D,z,Z,re,le){return r=new d2(r,a,l,T,z,Z,re,le,D),a=1,v===!0&&(a|=24),v=jn(3,null,null,a),r.current=v,v.stateNode=r,a=Ep(),a.refCount++,r.pooledCache=a,a.refCount++,v.memoizedState={element:d,isDehydrated:l,cache:a},wp(v),r}function J0(r){return r?(r=Vo,r):Vo}function eA(r,a,l,d,m,v){m=J0(m),d.context===null?d.context=m:d.pendingContext=m,d=Hi(a),d.payload={element:l},v=v===void 0?null:v,v!==null&&(d.callback=v),l=Gi(r,d,a),l!==null&&(In(l,r,a),wl(l,r,a))}function tA(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<a?l:a}}function Fm(r,a){tA(r,a),(r=r.alternate)&&tA(r,a)}function nA(r){if(r.tag===13||r.tag===31){var a=Pa(r,67108864);a!==null&&In(a,r,67108864),Fm(r,67108864)}}function rA(r){if(r.tag===13||r.tag===31){var a=Un();a=Mh(a);var l=Pa(r,a);l!==null&&In(l,r,a),Fm(r,a)}}var bd=!0;function f2(r,a,l,d){var m=M.T;M.T=null;var v=Y.p;try{Y.p=2,Hm(r,a,l,d)}finally{Y.p=v,M.T=m}}function h2(r,a,l,d){var m=M.T;M.T=null;var v=Y.p;try{Y.p=8,Hm(r,a,l,d)}finally{Y.p=v,M.T=m}}function Hm(r,a,l,d){if(bd){var m=Gm(d);if(m===null)_m(r,a,d,Ed,l),aA(r,d);else if(m2(m,r,a,l,d))d.stopPropagation();else if(aA(r,d),a&4&&-1<p2.indexOf(r)){for(;m!==null;){var v=No(m);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var T=Da(v.pendingLanes);if(T!==0){var D=v;for(D.pendingLanes|=2,D.entangledLanes|=2;T;){var z=1<<31-fn(T);D.entanglements[1]|=z,T&=~z}Pr(v),(ot&6)===0&&(nd=he()+500,Ul(0))}}break;case 31:case 13:D=Pa(v,2),D!==null&&In(D,v,2),id(),Fm(v,2)}if(v=Gm(d),v===null&&_m(r,a,d,Ed,l),v===m)break;m=v}m!==null&&d.stopPropagation()}else _m(r,a,d,null,l)}}function Gm(r){return r=$h(r),Km(r)}var Ed=null;function Km(r){if(Ed=null,r=_o(r),r!==null){var a=s(r);if(a===null)r=null;else{var l=a.tag;if(l===13){if(r=c(a),r!==null)return r;r=null}else if(l===31){if(r=u(a),r!==null)return r;r=null}else if(l===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;r=null}else a!==r&&(r=null)}}return Ed=r,null}function iA(r){switch(r){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(pe()){case Ie:return 2;case tt:return 8;case at:case xn:return 32;case La:return 268435456;default:return 32}default:return 32}}var $m=!1,ta=null,na=null,ra=null,ql=new Map,Zl=new Map,ia=[],p2="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 aA(r,a){switch(r){case"focusin":case"focusout":ta=null;break;case"dragenter":case"dragleave":na=null;break;case"mouseover":case"mouseout":ra=null;break;case"pointerover":case"pointerout":ql.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zl.delete(a.pointerId)}}function Yl(r,a,l,d,m,v){return r===null||r.nativeEvent!==v?(r={blockedOn:a,domEventName:l,eventSystemFlags:d,nativeEvent:v,targetContainers:[m]},a!==null&&(a=No(a),a!==null&&nA(a)),r):(r.eventSystemFlags|=d,a=r.targetContainers,m!==null&&a.indexOf(m)===-1&&a.push(m),r)}function m2(r,a,l,d,m){switch(a){case"focusin":return ta=Yl(ta,r,a,l,d,m),!0;case"dragenter":return na=Yl(na,r,a,l,d,m),!0;case"mouseover":return ra=Yl(ra,r,a,l,d,m),!0;case"pointerover":var v=m.pointerId;return ql.set(v,Yl(ql.get(v)||null,r,a,l,d,m)),!0;case"gotpointercapture":return v=m.pointerId,Zl.set(v,Yl(Zl.get(v)||null,r,a,l,d,m)),!0}return!1}function oA(r){var a=_o(r.target);if(a!==null){var l=s(a);if(l!==null){if(a=l.tag,a===13){if(a=c(l),a!==null){r.blockedOn=a,EE(r.priority,function(){rA(l)});return}}else if(a===31){if(a=u(l),a!==null){r.blockedOn=a,EE(r.priority,function(){rA(l)});return}}else if(a===3&&l.stateNode.current.memoizedState.isDehydrated){r.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}r.blockedOn=null}function xd(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var l=Gm(r.nativeEvent);if(l===null){l=r.nativeEvent;var d=new l.constructor(l.type,l);Kh=d,l.target.dispatchEvent(d),Kh=null}else return a=No(l),a!==null&&nA(a),r.blockedOn=l,!1;a.shift()}return!0}function sA(r,a,l){xd(r)&&l.delete(a)}function y2(){$m=!1,ta!==null&&xd(ta)&&(ta=null),na!==null&&xd(na)&&(na=null),ra!==null&&xd(ra)&&(ra=null),ql.forEach(sA),Zl.forEach(sA)}function Sd(r,a){r.blockedOn===a&&(r.blockedOn=null,$m||($m=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,y2)))}var Ad=null;function lA(r){Ad!==r&&(Ad=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ad===r&&(Ad=null);for(var a=0;a<r.length;a+=3){var l=r[a],d=r[a+1],m=r[a+2];if(typeof d!="function"){if(Km(d||l)===null)continue;break}var v=No(l);v!==null&&(r.splice(a,3),a-=3,Gp(v,{pending:!0,data:m,method:l.method,action:d},d,m))}}))}function ds(r){function a(z){return Sd(z,r)}ta!==null&&Sd(ta,r),na!==null&&Sd(na,r),ra!==null&&Sd(ra,r),ql.forEach(a),Zl.forEach(a);for(var l=0;l<ia.length;l++){var d=ia[l];d.blockedOn===r&&(d.blockedOn=null)}for(;0<ia.length&&(l=ia[0],l.blockedOn===null);)oA(l),l.blockedOn===null&&ia.shift();if(l=(r.ownerDocument||r).$$reactFormReplay,l!=null)for(d=0;d<l.length;d+=3){var m=l[d],v=l[d+1],T=m[Sn]||null;if(typeof v=="function")T||lA(l);else if(T){var D=null;if(v&&v.hasAttribute("formAction")){if(m=v,T=v[Sn]||null)D=T.formAction;else if(Km(m)!==null)continue}else D=T.action;typeof D=="function"?l[d+1]=D:(l.splice(d,3),d-=3),lA(l)}}}function cA(){function r(v){v.canIntercept&&v.info==="react-transition"&&v.intercept({handler:function(){return new Promise(function(T){return m=T})},focusReset:"manual",scroll:"manual"})}function a(){m!==null&&(m(),m=null),d||setTimeout(l,20)}function l(){if(!d&&!navigation.transition){var v=navigation.currentEntry;v&&v.url!=null&&navigation.navigate(v.url,{state:v.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var d=!1,m=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",a),navigation.addEventListener("navigateerror",a),setTimeout(l,100),function(){d=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",a),navigation.removeEventListener("navigateerror",a),m!==null&&(m(),m=null)}}}function qm(r){this._internalRoot=r}wd.prototype.render=qm.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var l=a.current,d=Un();eA(l,d,r,a,null,null)},wd.prototype.unmount=qm.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;eA(r.current,2,null,r,null,null),id(),a[Io]=null}};function wd(r){this._internalRoot=r}wd.prototype.unstable_scheduleHydration=function(r){if(r){var a=bE();r={blockedOn:null,target:r,priority:a};for(var l=0;l<ia.length&&a!==0&&a<ia[l].priority;l++);ia.splice(l,0,r),l===0&&oA(r)}};var uA=t.version;if(uA!=="19.2.0")throw Error(i(527,uA,"19.2.0"));Y.findDOMNode=function(r){var a=r._reactInternals;if(a===void 0)throw typeof r.render=="function"?Error(i(188)):(r=Object.keys(r).join(","),Error(i(268,r)));return r=h(a),r=r!==null?p(r):null,r=r===null?null:r.stateNode,r};var g2={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Td=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Td.isDisabled&&Td.supportsFiber)try{ii=Td.inject(g2),nn=Td}catch{}}return Xl.createRoot=function(r,a){if(!o(r))throw Error(i(299));var l=!1,d="",m=gS,v=vS,T=bS;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(d=a.identifierPrefix),a.onUncaughtError!==void 0&&(m=a.onUncaughtError),a.onCaughtError!==void 0&&(v=a.onCaughtError),a.onRecoverableError!==void 0&&(T=a.onRecoverableError)),a=Q0(r,1,!1,null,null,l,d,null,m,v,T,cA),r[Io]=a.current,Im(r),new qm(a)},Xl.hydrateRoot=function(r,a,l){if(!o(r))throw Error(i(299));var d=!1,m="",v=gS,T=vS,D=bS,z=null;return l!=null&&(l.unstable_strictMode===!0&&(d=!0),l.identifierPrefix!==void 0&&(m=l.identifierPrefix),l.onUncaughtError!==void 0&&(v=l.onUncaughtError),l.onCaughtError!==void 0&&(T=l.onCaughtError),l.onRecoverableError!==void 0&&(D=l.onRecoverableError),l.formState!==void 0&&(z=l.formState)),a=Q0(r,1,!0,a,l??null,d,m,z,v,T,D,cA),a.context=J0(null),l=a.current,d=Un(),d=Mh(d),m=Hi(d),m.callback=null,Gi(l,m,d),l=d,a.current.lanes=l,ol(a,l),Pr(a),r[Io]=a.current,Im(r),new wd(a)},Xl.version="19.2.0",Xl}var EA;function R2(){if(EA)return Wm.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(),Wm.exports=C2(),Wm.exports}var I2=R2();let xA=function(e){return e.RESET="\x1B[0m",e.GREY="\x1B[90m",e.GREY_DARK="\x1B[38;5;239m",e.BLUE="\x1B[34m",e.RED="\x1B[31m",e.GREEN="\x1B[32m",e.YELLOW="\x1B[38;5;226m",e.MAGENTA="\x1B[35m",e.BEIGE="\x1B[38;5;3m",e.ORANGE="\x1B[38;5;208m",e.CYAN="\x1B[36m",e.WHITE="\x1B[37m",e}({});var _2=Object.defineProperty,xo=e=>{let t={};for(var n in e)_2(t,n,{get:e[n],enumerable:!0});return t},N2=xo({CACHE:()=>j2,IMPORT_MODE:()=>L2,OPTIMIZE:()=>k2,OUTPUT_FORMAT:()=>O2,TRAVERSE_PATTERN:()=>D2});const k2=!1,L2="static",D2=["**/*.{js,ts,mjs,cjs,jsx,tsx,mjx,cjx,vue,svelte,svte}","!**/node_modules/**"],O2=["cjs","esm"],j2=!0;var z2=xo({CACHE_DIR:()=>Q2,CONFIG_DIR:()=>X2,CONTENT_DIR:()=>B2,DICTIONARIES_DIR:()=>V2,DYNAMIC_DICTIONARIES_DIR:()=>K2,EXCLUDED_PATHS:()=>P2,FETCH_DICTIONARIES_DIR:()=>$2,FILE_EXTENSIONS:()=>M2,I18NEXT_DICTIONARIES_DIR:()=>Y2,MAIN_DIR:()=>U2,MASKS_DIR:()=>F2,MODULE_AUGMENTATION_DIR:()=>Z2,REACT_INTL_MESSAGES_DIR:()=>W2,REMOTE_DICTIONARIES_DIR:()=>H2,TYPES_DIR:()=>q2,UNMERGED_DICTIONARIES_DIR:()=>G2,WATCH:()=>J2});const M2=[".content.ts",".content.js",".content.cjs",".content.cjx",".content.mjs",".content.mjx",".content.json",".content.tsx",".content.jsx"],P2=["**/node_modules/**","**/dist/**","**/build/**","**/.intlayer/**","**/.next/**","**/.nuxt/**","**/.expo/**","**/.vercel/**","**/.turbo/**","**/.tanstack/**"],B2=["."],U2=".intlayer/main",V2=".intlayer/dictionary",F2=".intlayer/mask",H2=".intlayer/remote_dictionary",G2=".intlayer/unmerged_dictionary",K2=".intlayer/dynamic_dictionary",$2=".intlayer/fetch_dictionary",q2=".intlayer/types",Z2=".intlayer/types",Y2="i18next_resources",W2="intl_messages",X2=".intlayer/config",Q2=".intlayer/cache",J2=!0;var eU=xo({APPLICATION_URL:()=>tU,BACKEND_URL:()=>aU,CMS_URL:()=>rU,DICTIONARY_PRIORITY_STRATEGY:()=>lU,EDITOR_URL:()=>nU,IS_ENABLED:()=>oU,LIVE_SYNC:()=>sU,LIVE_SYNC_PORT:()=>cU,PORT:()=>iU});const tU="",nU="http://localhost:8000",rU="https://intlayer.org",iU=8e3,aU="https://back.intlayer.org",oU=!0,sU=!0,lU="local_first",cU=4e3;var uU=Object.defineProperty,dU=e=>{let t={};for(var n in e)uU(t,n,{get:e[n],enumerable:!0});return t},dt=dU({AFRIKAANS:()=>xR,AFRIKAANS_SOUTH_AFRICA:()=>SR,ALBANIAN:()=>GN,ALBANIAN_ALBANIA:()=>KN,ALL_LOCALES:()=>fU,AMHARIC:()=>Zk,AMHARIC_ETHIOPIA:()=>Yk,ARABIC:()=>AR,ARABIC_ALGERIA:()=>CR,ARABIC_BAHRAIN:()=>TR,ARABIC_CHAD:()=>IL,ARABIC_COMOROS:()=>_L,ARABIC_DJIBOUTI:()=>CL,ARABIC_EGYPT:()=>RR,ARABIC_IRAQ:()=>IR,ARABIC_JORDAN:()=>_R,ARABIC_KUWAIT:()=>NR,ARABIC_LEBANON:()=>kR,ARABIC_LIBYA:()=>LR,ARABIC_MAURITANIA:()=>AL,ARABIC_MOROCCO:()=>DR,ARABIC_OMAN:()=>OR,ARABIC_PALESTINE:()=>wL,ARABIC_QATAR:()=>jR,ARABIC_SAUDI_ARABIA:()=>zR,ARABIC_SOMALIA:()=>RL,ARABIC_SUDAN:()=>TL,ARABIC_SYRIA:()=>MR,ARABIC_TUNISIA:()=>PR,ARABIC_UNITED_ARAB_EMIRATES:()=>wR,ARABIC_YEMEN:()=>BR,ARMENIAN:()=>A_,ARMENIAN_ARMENIA:()=>w_,AZERI_LATIN:()=>UR,AZERI_LATIN_AZERBAIJAN:()=>VR,BASQUE:()=>YI,BASQUE_SPAIN:()=>WI,BELARUSIAN:()=>FR,BELARUSIAN_BELARUS:()=>HR,BENGALI:()=>zk,BENGALI_BANGLADESH:()=>Mk,BENGALI_INDIA:()=>Pk,BENGALI_MYANMAR:()=>Bk,BOSNIAN:()=>$R,BOSNIAN_BOSNIA_AND_HERZEGOVINA:()=>qR,BULGARIAN:()=>GR,BULGARIAN_BULGARIA:()=>KR,BURMESE:()=>Uk,BURMESE_MYANMAR:()=>Vk,CATALAN:()=>ZR,CATALAN_SPAIN:()=>YR,CHINESE:()=>Rk,CHINESE_HONG_KONG:()=>Nk,CHINESE_MACAU:()=>kk,CHINESE_SIMPLIFIED:()=>Ik,CHINESE_SIMPLIFIED_CHINA:()=>_k,CHINESE_SINGAPORE:()=>Lk,CHINESE_TAIWAN:()=>SL,CHINESE_TRADITIONAL:()=>Dk,CROATIAN:()=>v_,CROATIAN_BOSNIA_AND_HERZEGOVINA:()=>b_,CROATIAN_CROATIA:()=>E_,CZECH:()=>WR,CZECH_CZECH_REPUBLIC:()=>XR,DANISH:()=>eI,DANISH_DENMARK:()=>tI,DIVEHI:()=>lI,DIVEHI_MALDIVES:()=>cI,DUTCH:()=>dN,DUTCH_BELGIUM:()=>fN,DUTCH_NETHERLANDS:()=>hN,ENGLISH:()=>fI,ENGLISH_AUSTRALIA:()=>hI,ENGLISH_BELIZE:()=>pI,ENGLISH_BOTSWANA:()=>cL,ENGLISH_CANADA:()=>mI,ENGLISH_CARIBBEAN:()=>yI,ENGLISH_GHANA:()=>fL,ENGLISH_HONG_KONG:()=>aL,ENGLISH_INDIA:()=>rL,ENGLISH_IRELAND:()=>vI,ENGLISH_JAMAICA:()=>bI,ENGLISH_KENYA:()=>uL,ENGLISH_MALAYSIA:()=>lL,ENGLISH_NEW_ZEALAND:()=>EI,ENGLISH_NIGERIA:()=>oL,ENGLISH_PAKISTAN:()=>sL,ENGLISH_PHILIPPINES:()=>xI,ENGLISH_SINGAPORE:()=>iL,ENGLISH_SOUTH_AFRICA:()=>wI,ENGLISH_TANZANIA:()=>dL,ENGLISH_TRINIDAD_AND_TOBAGO:()=>SI,ENGLISH_UGANDA:()=>hL,ENGLISH_UNITED_KINGDOM:()=>gI,ENGLISH_UNITED_STATES:()=>AI,ENGLISH_ZIMBABWE:()=>TI,ESPERANTO:()=>CI,ESTONIAN:()=>qI,ESTONIAN_ESTONIA:()=>ZI,FAROESE:()=>t_,FAROESE_FAROE_ISLANDS:()=>n_,FARSI:()=>XI,FARSI_IRAN:()=>QI,FINNISH:()=>JI,FINNISH_FINLAND:()=>e_,FRENCH:()=>r_,FRENCH_BELGIUM:()=>i_,FRENCH_CANADA:()=>a_,FRENCH_FRANCE:()=>s_,FRENCH_LUXEMBOURG:()=>l_,FRENCH_PRINCIPALITY_OF_MONACO:()=>c_,FRENCH_SWITZERLAND:()=>o_,FYRO_MACEDONIAN:()=>Q_,FYRO_MACEDONIAN_MACEDONIA:()=>J_,GALICIAN:()=>u_,GALICIAN_SPAIN:()=>d_,GEORGIAN:()=>O_,GEORGIAN_GEORGIA:()=>j_,GERMAN:()=>nI,GERMAN_AUSTRIA:()=>rI,GERMAN_GERMANY:()=>aI,GERMAN_LIECHTENSTEIN:()=>oI,GERMAN_LUXEMBOURG:()=>sI,GERMAN_SWITZERLAND:()=>iI,GREEK:()=>uI,GREEK_GREECE:()=>dI,GUJARATI:()=>f_,GUJARATI_INDIA:()=>h_,HEBREW:()=>p_,HEBREW_ISRAEL:()=>m_,HINDI:()=>y_,HINDI_INDIA:()=>g_,HUNGARIAN:()=>x_,HUNGARIAN_HUNGARY:()=>S_,ICELANDIC:()=>R_,ICELANDIC_ICELAND:()=>I_,INDONESIAN:()=>T_,INDONESIAN_INDONESIA:()=>C_,ITALIAN:()=>__,ITALIAN_ITALY:()=>k_,ITALIAN_SWITZERLAND:()=>N_,JAPANESE:()=>L_,JAPANESE_JAPAN:()=>D_,KANNADA:()=>P_,KANNADA_INDIA:()=>B_,KAZAKH:()=>z_,KAZAKH_KAZAKHSTAN:()=>M_,KHMER:()=>Fk,KHMER_CAMBODIA:()=>Hk,KONKANI:()=>F_,KONKANI_INDIA:()=>H_,KOREAN:()=>U_,KOREAN_KOREA:()=>V_,KYRGYZ:()=>G_,KYRGYZ_KYRGYZSTAN:()=>K_,LAO:()=>Gk,LAO_LAOS:()=>Kk,LATVIAN:()=>Z_,LATVIAN_LATVIA:()=>Y_,LITHUANIAN:()=>$_,LITHUANIAN_LITHUANIA:()=>q_,MALAY:()=>iN,MALAY_BRUNEI_DARUSSALAM:()=>aN,MALAY_MALAYSIA:()=>oN,MALTESE:()=>sN,MALTESE_MALTA:()=>lN,MAORI:()=>W_,MAORI_NEW_ZEALAND:()=>X_,MARATHI:()=>nN,MARATHI_INDIA:()=>rN,MONGOLIAN:()=>eN,MONGOLIAN_MONGOLIA:()=>tN,NEPALI:()=>Wk,NEPALI_NEPAL:()=>Xk,NORTHERN_SOTHO:()=>mN,NORTHERN_SOTHO_SOUTH_AFRICA:()=>yN,NORWEGIAN_BOKMAL:()=>cN,NORWEGIAN_BOKMAL_NORWAY:()=>uN,NORWEGIAN_NYNORSK_NORWAY:()=>pN,PASHTO:()=>xN,PASHTO_AFGHANISTAN:()=>SN,POLISH:()=>bN,POLISH_POLAND:()=>EN,PORTUGUESE:()=>AN,PORTUGUESE_BRAZIL:()=>wN,PORTUGUESE_CAPE_VERDE:()=>bL,PORTUGUESE_GUINEA_BISSAU:()=>yL,PORTUGUESE_MACAU:()=>xL,PORTUGUESE_MOZAMBIQUE:()=>gL,PORTUGUESE_PORTUGAL:()=>TN,PORTUGUESE_SAO_TOME_AND_PRINCIPE:()=>vL,PORTUGUESE_TIMOR_LESTE:()=>EL,PUNJABI:()=>gN,PUNJABI_INDIA:()=>vN,QUECHUA:()=>CN,QUECHUA_BOLIVIA:()=>RN,QUECHUA_ECUADOR:()=>IN,QUECHUA_PERU:()=>_N,ROMANIAN:()=>NN,ROMANIAN_ROMANIA:()=>kN,RUSSIAN:()=>LN,RUSSIAN_RUSSIA:()=>DN,SAMI_NORTHERN:()=>zN,SAMI_NORTHERN_FINLAND:()=>MN,SAMI_NORTHERN_NORWAY:()=>PN,SAMI_NORTHERN_SWEDEN:()=>BN,SANSKRIT:()=>ON,SANSKRIT_INDIA:()=>jN,SERBIAN_CYRILLIC:()=>eL,SERBIAN_CYRILLIC_BOSNIA_AND_HERZEGOVINA:()=>nL,SERBIAN_CYRILLIC_SERBIA:()=>tL,SERBIAN_LATIN:()=>$N,SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:()=>qN,SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:()=>ZN,SINHALA:()=>Qk,SINHALA_SRI_LANKA:()=>Jk,SLOVAK:()=>UN,SLOVAK_SLOVAKIA:()=>VN,SLOVENIAN:()=>FN,SLOVENIAN_SLOVENIA:()=>HN,SPANISH:()=>RI,SPANISH_ARGENTINA:()=>II,SPANISH_BOLIVIA:()=>_I,SPANISH_CHILE:()=>NI,SPANISH_COLOMBIA:()=>kI,SPANISH_COSTA_RICA:()=>LI,SPANISH_CUBA:()=>pL,SPANISH_DOMINICAN_REPUBLIC:()=>DI,SPANISH_ECUADOR:()=>OI,SPANISH_EL_SALVADOR:()=>GI,SPANISH_GUATEMALA:()=>zI,SPANISH_HONDURAS:()=>MI,SPANISH_MEXICO:()=>PI,SPANISH_NICARAGUA:()=>BI,SPANISH_PANAMA:()=>UI,SPANISH_PARAGUAY:()=>HI,SPANISH_PERU:()=>VI,SPANISH_PUERTO_RICO:()=>FI,SPANISH_SPAIN:()=>jI,SPANISH_UNITED_STATES:()=>mL,SPANISH_URUGUAY:()=>KI,SPANISH_VENEZUELA:()=>$I,SWAHILI:()=>QN,SWAHILI_KENYA:()=>JN,SWEDISH:()=>YN,SWEDISH_FINLAND:()=>WN,SWEDISH_SWEDEN:()=>XN,SYRIAC:()=>ek,SYRIAC_SYRIA:()=>tk,TAGALOG:()=>lk,TAGALOG_PHILIPPINES:()=>ck,TAMIL:()=>nk,TAMIL_INDIA:()=>rk,TATAR:()=>pk,TATAR_RUSSIA:()=>mk,TELUGU:()=>ik,TELUGU_INDIA:()=>ak,THAI:()=>ok,THAI_THAILAND:()=>sk,TSOGA:()=>yk,TSWANA:()=>uk,TSWANA_SOUTH_AFRICA:()=>dk,TURKISH:()=>fk,TURKISH_TURKEY:()=>hk,UKRAINIAN:()=>gk,UKRAINIAN_UKRAINE:()=>vk,URDU:()=>bk,URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:()=>Ek,UZBEK_LATIN:()=>xk,UZBEK_LATIN_UZBEKISTAN:()=>Sk,VIETNAMESE:()=>Ak,VIETNAMESE_VIET_NAM:()=>wk,WELSH:()=>QR,WELSH_UNITED_KINGDOM:()=>JR,XHOSA:()=>Tk,XHOSA_SOUTH_AFRICA:()=>Ck,YORUBA:()=>$k,YORUBA_NIGERIA:()=>qk,ZULU:()=>Ok,ZULU_SOUTH_AFRICA:()=>jk});const xR="af",SR="af-ZA",AR="ar",wR="ar-AE",TR="ar-BH",CR="ar-DZ",RR="ar-EG",IR="ar-IQ",_R="ar-JO",NR="ar-KW",kR="ar-LB",LR="ar-LY",DR="ar-MA",OR="ar-OM",jR="ar-QA",zR="ar-SA",MR="ar-SY",PR="ar-TN",BR="ar-YE",UR="az",VR="az-AZ",FR="be",HR="be-BY",GR="bg",KR="bg-BG",$R="bs",qR="bs-BA",ZR="ca",YR="ca-ES",WR="cs",XR="cs-CZ",QR="cy",JR="cy-GB",eI="da",tI="da-DK",nI="de",rI="de-AT",iI="de-CH",aI="de-DE",oI="de-LI",sI="de-LU",lI="dv",cI="dv-MV",uI="el",dI="el-GR",fI="en",hI="en-AU",pI="en-BZ",mI="en-CA",yI="en-CB",gI="en-GB",vI="en-IE",bI="en-JM",EI="en-NZ",xI="en-PH",SI="en-TT",AI="en-US",wI="en-ZA",TI="en-ZW",CI="eo",RI="es",II="es-AR",_I="es-BO",NI="es-CL",kI="es-CO",LI="es-CR",DI="es-DO",OI="es-EC",jI="es-ES",zI="es-GT",MI="es-HN",PI="es-MX",BI="es-NI",UI="es-PA",VI="es-PE",FI="es-PR",HI="es-PY",GI="es-SV",KI="es-UY",$I="es-VE",qI="et",ZI="et-EE",YI="eu",WI="eu-ES",XI="fa",QI="fa-IR",JI="fi",e_="fi-FI",t_="fo",n_="fo-FO",r_="fr",i_="fr-BE",a_="fr-CA",o_="fr-CH",s_="fr-FR",l_="fr-LU",c_="fr-MC",u_="gl",d_="gl-ES",f_="gu",h_="gu-IN",p_="he",m_="he-IL",y_="hi",g_="hi-IN",v_="hr",b_="hr-BA",E_="hr-HR",x_="hu",S_="hu-HU",A_="hy",w_="hy-AM",T_="id",C_="id-ID",R_="is",I_="is-IS",__="it",N_="it-CH",k_="it-IT",L_="ja",D_="ja-JP",O_="ka",j_="ka-GE",z_="kk",M_="kk-KZ",P_="kn",B_="kn-IN",U_="ko",V_="ko-KR",F_="kok",H_="kok-IN",G_="ky",K_="ky-KG",$_="lt",q_="lt-LT",Z_="lv",Y_="lv-LV",W_="mi",X_="mi-NZ",Q_="mk",J_="mk-MK",eN="mn",tN="mn-MN",nN="mr",rN="mr-IN",iN="ms",aN="ms-BN",oN="ms-MY",sN="mt",lN="mt-MT",cN="nb",uN="nb-NO",dN="nl",fN="nl-BE",hN="nl-NL",pN="nn-NO",mN="ns",yN="ns-ZA",gN="pa",vN="pa-IN",bN="pl",EN="pl-PL",xN="ps",SN="ps-AR",AN="pt",wN="pt-BR",TN="pt-PT",CN="qu",RN="qu-BO",IN="qu-EC",_N="qu-PE",NN="ro",kN="ro-RO",LN="ru",DN="ru-RU",ON="sa",jN="sa-IN",zN="se",MN="se-FI",PN="se-NO",BN="se-SE",UN="sk",VN="sk-SK",FN="sl",HN="sl-SI",GN="sq",KN="sq-AL",$N="sr",qN="sr-BA",ZN="sr-SP",YN="sv",WN="sv-FI",XN="sv-SE",QN="sw",JN="sw-KE",ek="syr",tk="syr-SY",nk="ta",rk="ta-IN",ik="te",ak="te-IN",ok="th",sk="th-TH",lk="tl",ck="tl-PH",uk="tn",dk="tn-ZA",fk="tr",hk="tr-TR",pk="tt",mk="tt-RU",yk="ts",gk="uk",vk="uk-UA",bk="ur",Ek="ur-PK",xk="uz",Sk="uz-UZ",Ak="vi",wk="vi-VN",Tk="xh",Ck="xh-ZA",Rk="zh",Ik="zh-Hans",_k="zh-CN",Nk="zh-HK",kk="zh-MO",Lk="zh-SG",Dk="zh-Hant",Ok="zu",jk="zu-ZA",zk="bn",Mk="bn-BD",Pk="bn-IN",Bk="bn-MM",Uk="my",Vk="my-MM",Fk="km",Hk="km-KH",Gk="lo",Kk="lo-LA",$k="yo",qk="yo-NG",Zk="am",Yk="am-ET",Wk="ne",Xk="ne-NP",Qk="si",Jk="si-LK",eL="sr-Cyrl",tL="sr-RS",nL="sr-BA",rL="en-IN",iL="en-SG",aL="en-HK",oL="en-NG",sL="en-PK",lL="en-MY",cL="en-BW",uL="en-KE",dL="en-TZ",fL="en-GH",hL="en-UG",pL="es-CU",mL="es-US",yL="pt-GW",gL="pt-MZ",vL="pt-ST",bL="pt-CV",EL="pt-TL",xL="pt-MO",SL="zh-TW",AL="ar-MR",wL="ar-PS",TL="ar-SD",CL="ar-DJ",RL="ar-SO",IL="ar-TD",_L="ar-KM",fU={AFRIKAANS:xR,AFRIKAANS_SOUTH_AFRICA:SR,ARABIC:AR,ARABIC_UNITED_ARAB_EMIRATES:wR,ARABIC_BAHRAIN:TR,ARABIC_ALGERIA:CR,ARABIC_EGYPT:RR,ARABIC_IRAQ:IR,ARABIC_JORDAN:_R,ARABIC_KUWAIT:NR,ARABIC_LEBANON:kR,ARABIC_LIBYA:LR,ARABIC_MOROCCO:DR,ARABIC_OMAN:OR,ARABIC_QATAR:jR,ARABIC_SAUDI_ARABIA:zR,ARABIC_SYRIA:MR,ARABIC_TUNISIA:PR,ARABIC_YEMEN:BR,AZERI_LATIN:UR,AZERI_LATIN_AZERBAIJAN:VR,BELARUSIAN:FR,BELARUSIAN_BELARUS:HR,BULGARIAN:GR,BULGARIAN_BULGARIA:KR,BOSNIAN:$R,BOSNIAN_BOSNIA_AND_HERZEGOVINA:qR,CATALAN:ZR,CATALAN_SPAIN:YR,CZECH:WR,CZECH_CZECH_REPUBLIC:XR,WELSH:QR,WELSH_UNITED_KINGDOM:JR,DANISH:eI,DANISH_DENMARK:tI,GERMAN:nI,GERMAN_AUSTRIA:rI,GERMAN_SWITZERLAND:iI,GERMAN_GERMANY:aI,GERMAN_LIECHTENSTEIN:oI,GERMAN_LUXEMBOURG:sI,DIVEHI:lI,DIVEHI_MALDIVES:cI,GREEK:uI,GREEK_GREECE:dI,ENGLISH:fI,ENGLISH_AUSTRALIA:hI,ENGLISH_BELIZE:pI,ENGLISH_CANADA:mI,ENGLISH_CARIBBEAN:yI,ENGLISH_UNITED_KINGDOM:gI,ENGLISH_IRELAND:vI,ENGLISH_JAMAICA:bI,ENGLISH_NEW_ZEALAND:EI,ENGLISH_PHILIPPINES:xI,ENGLISH_TRINIDAD_AND_TOBAGO:SI,ENGLISH_UNITED_STATES:AI,ENGLISH_SOUTH_AFRICA:wI,ENGLISH_ZIMBABWE:TI,ESPERANTO:CI,SPANISH:RI,SPANISH_ARGENTINA:II,SPANISH_BOLIVIA:_I,SPANISH_CHILE:NI,SPANISH_COLOMBIA:kI,SPANISH_COSTA_RICA:LI,SPANISH_DOMINICAN_REPUBLIC:DI,SPANISH_ECUADOR:OI,SPANISH_SPAIN:jI,SPANISH_GUATEMALA:zI,SPANISH_HONDURAS:MI,SPANISH_MEXICO:PI,SPANISH_NICARAGUA:BI,SPANISH_PANAMA:UI,SPANISH_PERU:VI,SPANISH_PUERTO_RICO:FI,SPANISH_PARAGUAY:HI,SPANISH_EL_SALVADOR:GI,SPANISH_URUGUAY:KI,SPANISH_VENEZUELA:$I,ESTONIAN:qI,ESTONIAN_ESTONIA:ZI,BASQUE:YI,BASQUE_SPAIN:WI,FARSI:XI,FARSI_IRAN:QI,FINNISH:JI,FINNISH_FINLAND:e_,FAROESE:t_,FAROESE_FAROE_ISLANDS:n_,FRENCH:r_,FRENCH_BELGIUM:i_,FRENCH_CANADA:a_,FRENCH_SWITZERLAND:o_,FRENCH_FRANCE:s_,FRENCH_LUXEMBOURG:l_,FRENCH_PRINCIPALITY_OF_MONACO:c_,GALICIAN:u_,GALICIAN_SPAIN:d_,GUJARATI:f_,GUJARATI_INDIA:h_,HEBREW:p_,HEBREW_ISRAEL:m_,HINDI:y_,HINDI_INDIA:g_,CROATIAN:v_,CROATIAN_BOSNIA_AND_HERZEGOVINA:b_,CROATIAN_CROATIA:E_,HUNGARIAN:x_,HUNGARIAN_HUNGARY:S_,ARMENIAN:A_,ARMENIAN_ARMENIA:w_,INDONESIAN:T_,INDONESIAN_INDONESIA:C_,ICELANDIC:R_,ICELANDIC_ICELAND:I_,ITALIAN:__,ITALIAN_SWITZERLAND:N_,ITALIAN_ITALY:k_,JAPANESE:L_,JAPANESE_JAPAN:D_,GEORGIAN:O_,GEORGIAN_GEORGIA:j_,KAZAKH:z_,KAZAKH_KAZAKHSTAN:M_,KANNADA:P_,KANNADA_INDIA:B_,KOREAN:U_,KOREAN_KOREA:V_,KONKANI:F_,KONKANI_INDIA:H_,KYRGYZ:G_,KYRGYZ_KYRGYZSTAN:K_,LITHUANIAN:$_,LITHUANIAN_LITHUANIA:q_,LATVIAN:Z_,LATVIAN_LATVIA:Y_,MAORI:W_,MAORI_NEW_ZEALAND:X_,FYRO_MACEDONIAN:Q_,FYRO_MACEDONIAN_MACEDONIA:J_,MONGOLIAN:eN,MONGOLIAN_MONGOLIA:tN,MARATHI:nN,MARATHI_INDIA:rN,MALAY:iN,MALAY_BRUNEI_DARUSSALAM:aN,MALAY_MALAYSIA:oN,MALTESE:sN,MALTESE_MALTA:lN,NORWEGIAN_BOKMAL:cN,NORWEGIAN_BOKMAL_NORWAY:uN,DUTCH:dN,DUTCH_BELGIUM:fN,DUTCH_NETHERLANDS:hN,NORWEGIAN_NYNORSK_NORWAY:pN,NORTHERN_SOTHO:mN,NORTHERN_SOTHO_SOUTH_AFRICA:yN,PUNJABI:gN,PUNJABI_INDIA:vN,POLISH:bN,POLISH_POLAND:EN,PASHTO:xN,PASHTO_AFGHANISTAN:SN,PORTUGUESE:AN,PORTUGUESE_BRAZIL:wN,PORTUGUESE_PORTUGAL:TN,QUECHUA:CN,QUECHUA_BOLIVIA:RN,QUECHUA_ECUADOR:IN,QUECHUA_PERU:_N,ROMANIAN:NN,ROMANIAN_ROMANIA:kN,RUSSIAN:LN,RUSSIAN_RUSSIA:DN,SANSKRIT:ON,SANSKRIT_INDIA:jN,SAMI_NORTHERN:zN,SAMI_NORTHERN_FINLAND:MN,SAMI_NORTHERN_NORWAY:PN,SAMI_NORTHERN_SWEDEN:BN,SLOVAK:UN,SLOVAK_SLOVAKIA:VN,SLOVENIAN:FN,SLOVENIAN_SLOVENIA:HN,ALBANIAN:GN,ALBANIAN_ALBANIA:KN,SERBIAN_LATIN:$N,SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:qN,SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:ZN,SWEDISH:YN,SWEDISH_FINLAND:WN,SWEDISH_SWEDEN:XN,SWAHILI:QN,SWAHILI_KENYA:JN,SYRIAC:ek,SYRIAC_SYRIA:tk,TAMIL:nk,TAMIL_INDIA:rk,TELUGU:ik,TELUGU_INDIA:ak,THAI:ok,THAI_THAILAND:sk,TAGALOG:lk,TAGALOG_PHILIPPINES:ck,TSWANA:uk,TSWANA_SOUTH_AFRICA:dk,TURKISH:fk,TURKISH_TURKEY:hk,TATAR:pk,TATAR_RUSSIA:mk,TSOGA:yk,UKRAINIAN:gk,UKRAINIAN_UKRAINE:vk,URDU:bk,URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:Ek,UZBEK_LATIN:xk,UZBEK_LATIN_UZBEKISTAN:Sk,VIETNAMESE:Ak,VIETNAMESE_VIET_NAM:wk,XHOSA:Tk,XHOSA_SOUTH_AFRICA:Ck,CHINESE:Rk,CHINESE_SIMPLIFIED:Ik,CHINESE_SIMPLIFIED_CHINA:_k,CHINESE_HONG_KONG:Nk,CHINESE_MACAU:kk,CHINESE_SINGAPORE:Lk,CHINESE_TRADITIONAL:Dk,ZULU:Ok,ZULU_SOUTH_AFRICA:jk,BENGALI:zk,BENGALI_BANGLADESH:Mk,BENGALI_INDIA:Pk,BENGALI_MYANMAR:Bk,BURMESE:Uk,BURMESE_MYANMAR:Vk,KHMER:Fk,KHMER_CAMBODIA:Hk,LAO:Gk,LAO_LAOS:Kk,YORUBA:$k,YORUBA_NIGERIA:qk,AMHARIC:Zk,AMHARIC_ETHIOPIA:Yk,NEPALI:Wk,NEPALI_NEPAL:Xk,SINHALA:Qk,SINHALA_SRI_LANKA:Jk,SERBIAN_CYRILLIC:eL,SERBIAN_CYRILLIC_SERBIA:tL,SERBIAN_CYRILLIC_BOSNIA_AND_HERZEGOVINA:nL,ENGLISH_INDIA:rL,ENGLISH_SINGAPORE:iL,ENGLISH_HONG_KONG:aL,ENGLISH_NIGERIA:oL,ENGLISH_PAKISTAN:sL,ENGLISH_MALAYSIA:lL,ENGLISH_BOTSWANA:cL,ENGLISH_KENYA:uL,ENGLISH_TANZANIA:dL,ENGLISH_GHANA:fL,ENGLISH_UGANDA:hL,SPANISH_CUBA:pL,SPANISH_UNITED_STATES:mL,PORTUGUESE_GUINEA_BISSAU:yL,PORTUGUESE_MOZAMBIQUE:gL,PORTUGUESE_SAO_TOME_AND_PRINCIPE:vL,PORTUGUESE_CAPE_VERDE:bL,PORTUGUESE_TIMOR_LESTE:EL,PORTUGUESE_MACAU:xL,CHINESE_TAIWAN:SL,ARABIC_MAURITANIA:AL,ARABIC_PALESTINE:wL,ARABIC_SUDAN:TL,ARABIC_DJIBOUTI:CL,ARABIC_SOMALIA:RL,ARABIC_CHAD:IL,ARABIC_COMOROS:_L};let G=function(e){return 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.Null="null",e.Unknown="unknown",e}({});const hU=(e,t,n)=>({...n,nodeType:e,[e]:t});var pU=xo({DEFAULT_LOCALE:()=>gU,LOCALES:()=>mU,REQUIRED_LOCALES:()=>yU,STRICT_MODE:()=>vU});const mU=[dt.ENGLISH],yU=[],gU=dt.ENGLISH,vU="inclusive";var bU=xo({MODE:()=>EU,PREFIX:()=>xU});const EU="default",xU=`${xA.GREY_DARK}[intlayer] ${xA.RESET}`;var SU=xo({BASE_PATH:()=>CU,COOKIE_NAME:()=>wU,HEADER_NAME:()=>AU,LOCALE_STORAGE_NAME:()=>TU,ROUTING_MODE:()=>IU,SERVER_SET_COOKIE:()=>RU,STORAGE:()=>_U});const AU="x-intlayer-locale",wU="INTLAYER_LOCALE",TU="INTLAYER_LOCALE",CU="",RU="always",IU="prefix-no-default",_U=["cookie","header"];var Kf=xo({Build:()=>N2,Content:()=>z2,Editor:()=>eU,Internationalization:()=>pU,Log:()=>bU,Routing:()=>SU});const SA=e=>{const{name:t,path:n,expires:i,domain:o,secure:s,sameSite:c,httpOnly:u}=e??{};return{name:t??Kf.Routing.COOKIE_NAME,attributes:{path:n,expires:i,domain:o,secure:s,sameSite:c,httpOnly:u}}},Ql=e=>{const{name:t}=e??{};return{name:t??Kf.Routing.LOCALE_STORAGE_NAME}},AA=e=>{const{name:t}=e??{};return{name:t??Kf.Routing.HEADER_NAME}},NU=e=>e.type==="cookie"||"sameSite"in e||"httpOnly"in e||"secure"in e,kU=e=>e==="cookie"||e==="localStorage"||e==="sessionStorage"||e==="header",wA=e=>{if(typeof e=="string"){if(!kU(e))return{cookies:[],localStorage:[],sessionStorage:[],headers:[]};if(e==="cookie")return{cookies:[SA()]};if(e==="localStorage")return{localStorage:[Ql()]};if(e==="sessionStorage")return{sessionStorage:[Ql()]};if(e==="header")return{headers:[AA()]}}if(typeof e=="object"&&e!==null){const t=e;if(NU(t))return{cookies:[SA(t)]};if("type"in t&&t.type==="localStorage"){const{name:o,...s}=t;return{localStorage:[Ql({name:o,...s})]}}if("type"in t&&t.type==="sessionStorage"){const{name:o,...s}=t;return{sessionStorage:[Ql({name:o,...s})]}}if("type"in t&&t.type==="header"){const{name:o,...s}=t;return{headers:[AA({name:o,...s})]}}const{name:n,...i}=t;return{localStorage:[Ql({name:n,...i})]}}return{cookies:[],localStorage:[],sessionStorage:[],headers:[]}},TA=(e,t)=>({cookies:[...e.cookies,...t.cookies??[]],localStorage:[...e.localStorage,...t.localStorage??[]],sessionStorage:[...e.sessionStorage,...t.sessionStorage??[]],headers:[...e.headers,...t.headers??[]]}),NL=e=>{const t={cookies:[],localStorage:[],sessionStorage:[],headers:[]};return e===!1||e===void 0?t:Array.isArray(e)?e.reduce((n,i)=>TA(n,wA(i)),t):TA(t,wA(e))},LU=(e,t)=>{const n=Object.keys(e),i=n[n.length-1];return e[`${t}`]??e.fallback??e[i]},pc=(e,t)=>{for(const i of t.plugins??[])if(i.canHandle(e))return i.transform(e,t,(o,s)=>pc(o,s));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((i,o)=>pc(i,{...t,children:i,keyPath:[...t.keyPath,{type:G.Array,key:o}]}));const n={};for(const i in e){const o={...t,children:e[i],keyPath:[...t.keyPath,{type:G.Object,key:i}]};n[i]=pc(e[i],o)}return n},DU=(e,t)=>{const n=Object.keys(e);for(const i of n){const o=!i.startsWith(">")&&!i.startsWith("<")&&!i.startsWith("=")&&parseFloat(i)===t||i.startsWith("=")&&parseFloat(i.slice(1))===t,s=i.startsWith(">")&&t>parseFloat(i.slice(1)),c=i.startsWith(">=")&&t>=parseFloat(i.slice(2)),u=i.startsWith("<")&&t<parseFloat(i.slice(1)),f=i.startsWith("<=")&&t<=parseFloat(i.slice(2));if(o||s||c||u||f)return i}},OU=(e,t)=>e[DU(e,t)??"fallback"],jU=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,i)=>(t[i]??"").toString()),zU="breadcrumb",MU={nodeType:"translation",translation:{en:{linkLabel:"Go to"},"en-GB":{linkLabel:"Go to"},fr:{linkLabel:"Aller à"},es:{linkLabel:"Ir a"},de:{linkLabel:"Gehe zu"},ja:{linkLabel:"に移動"},ko:{linkLabel:"로 이동"},zh:{linkLabel:"转到"},it:{linkLabel:"Vai a"},pt:{linkLabel:"Ir para"},hi:{linkLabel:"कर जाएं"},ar:{linkLabel:"اذهب إلى"},ru:{linkLabel:"Перейти на"}}},PU=["breadcrumb::local::../@intlayer/design-system/src/components/Breadcrumb/breadcrumb.content.ts"],BU={key:zU,content:MU,localIds:PU},UU="code",VU={nodeType:"translation",translation:{en:{title:"Copy code",description:"Copy the code to the clipboard"},"en-GB":{title:"Copy code",description:"Copy the code to the clipboard"},fr:{title:"Copier le code",description:"Copier le code dans le presse-papiers"},es:{title:"Copiar código",description:"Copiar el código al portapapeles"},de:{title:"Code kopieren",description:"Kopieren Sie den Code in die Zwischenablage"},ja:{title:"コードをコピー",description:"コードをクリップボードにコピー"},ko:{title:"코드 복사",description:"코드를 클립보드에 복사"},zh:{title:"复制代码",description:"复制代码到剪贴板"},it:{title:"Copiare il codice",description:"Copiare il codice nella clipboard"},pt:{title:"Copiar código",description:"Copiar o código para a área de transferência"},hi:{title:"कोड कॉपी करें",description:"कोड को क्लिपबोर्ड पर कॉपी करें"},ar:{title:"نسخ الكود",description:"نسخ الكود إلى الحافظة"},ru:{title:"Копировать код",description:"Копировать код в буфер обмена"}}},FU=["code::local::../@intlayer/design-system/src/components/IDE/code.content.ts","code::local::../@intlayer/design-system/src/components/IDE/copyCode.content.ts"],HU={key:UU,content:VU,localIds:FU},GU="copy-button",KU={nodeType:"translation",translation:{en:{label:"Copy content"},"en-GB":{label:"Copy content"},fr:{label:"Copier le contenu"},es:{label:"Copiar contenido"},de:{label:"Inhalt kopieren"},ja:{label:"コンテンツをコピー"},ko:{label:"콘텐츠 복사"},zh:{label:"复制内容"},it:{label:"Copia contenuto"},pt:{label:"Copiar conteúdo"},hi:{label:"सामग्री कॉपी करें"},ar:{label:"نسخ المحتوى"},ru:{label:"Копировать содержимое"}}},$U=["copy-button::local::../@intlayer/design-system/src/components/CopyButton/CopyButton.content.ts"],qU={key:GU,content:KU,localIds:$U},ZU="dictionary-detail-schema",YU={nodeType:"translation",translation:{en:{titleRequiredError:"Please enter a name for your organization.",titleInvalidTypeError:"The organization name must be a valid string.",titleMinLengthError:"The organization name must be at least 4 characters long.",keyRequiredError:"Please enter a key for your organization.",keyInvalidTypeError:"The key must be a valid string.",keySpaceError:"The key cannot contain spaces or special characters.",keyMinLengthError:"The key must be at least 4 characters long.",descriptionRequiredError:"Please enter a description for your organization.",descriptionInvalidTypeError:"The description must be a valid string.",requiredErrorProjectId:"Please select a project",invalidTypeErrorProjectId:"Please select a valid project",invalidTypeErrorTags:"Please enter a valid tag"},"en-GB":{titleRequiredError:"Please enter a name for your organization.",titleInvalidTypeError:"The organization name must be a valid string.",titleMinLengthError:"The organization name must be at least 4 characters long.",keyRequiredError:"Please enter a key for your organization.",keyInvalidTypeError:"The key must be a valid string.",keySpaceError:"The key cannot contain spaces or special characters.",keyMinLengthError:"The key must be at least 4 characters long.",descriptionRequiredError:"Please enter a description for your organization.",descriptionInvalidTypeError:"The description must be a valid string.",requiredErrorProjectId:"Please select a project",invalidTypeErrorProjectId:"Please select a valid project",invalidTypeErrorTags:"Please enter a valid tag"},fr:{titleRequiredError:"Veuillez saisir un nom pour votre organisation.",titleInvalidTypeError:"Le nom de votre organisation doit être une chaîne valide.",titleMinLengthError:"Le nom de votre organisation doit comporter au moins 4 caractères.",keyRequiredError:"Veuillez saisir une clé pour votre organisation.",keyInvalidTypeError:"La clé doit être une chaîne valide.",keySpaceError:"La clé ne peut pas contenir d'espaces ou de caractères spéciaux.",keyMinLengthError:"La clé doit comporter au moins 4 caractères.",descriptionRequiredError:"Veuillez saisir une description pour votre organisation.",descriptionInvalidTypeError:"La description doit être une chaîne valide.",requiredErrorProjectId:"Veuillez sélectionner un projet",invalidTypeErrorProjectId:"Veuillez sélectionner un projet valide",invalidTypeErrorTags:"Veuillez saisir un tag valide"},es:{titleRequiredError:"Por favor, ingrese un nombre para su organización.",titleInvalidTypeError:"El nombre de su organización debe ser una cadena válida.",titleMinLengthError:"El nombre de su organización debe tener al menos 4 caracteres.",keyRequiredError:"Por favor, ingrese una clave para su organización.",keyInvalidTypeError:"La clave debe ser una cadena válida.",keySpaceError:"La clave no puede contener espacios o caracteres especiales.",keyMinLengthError:"La clave debe tener al menos 4 caracteres.",descriptionRequiredError:"Por favor, ingrese una descripción para su organización.",descriptionInvalidTypeError:"La descripción debe ser una cadena válida.",requiredErrorProjectId:"Por favor, seleccione un proyecto",invalidTypeErrorProjectId:"Por favor, seleccione un proyecto válido",invalidTypeErrorTags:"Por favor, ingrese un tag válido"},de:{titleRequiredError:"Bitte geben Sie einen Namen für Ihre Organisation ein.",titleInvalidTypeError:"Der Name der Organisation muss eine gültige Zeichenfolge sein.",titleMinLengthError:"Der Name der Organisation muss mindestens 4 Zeichen lang sein.",keyRequiredError:"Bitte geben Sie einen Schlüssel für Ihre Organisation ein.",keyInvalidTypeError:"Der Schlüssel muss eine gültige Zeichenfolge sein.",keySpaceError:"Der Schlüssel darf keine Leerzeichen oder Sonderzeichen enthalten.",keyMinLengthError:"Der Schlüssel muss mindestens 4 Zeichen lang sein.",descriptionRequiredError:"Bitte geben Sie eine Beschreibung für Ihre Organisation ein.",descriptionInvalidTypeError:"Die Beschreibung muss eine gültige Zeichenfolge sein.",requiredErrorProjectId:"Bitte wählen Sie ein Projekt aus",invalidTypeErrorProjectId:"Bitte wählen Sie ein gültiges Projekt aus",invalidTypeErrorTags:"Bitte geben Sie einen gültigen Tag ein"},ja:{titleRequiredError:"あなたの組織の名前を入力してください。",titleInvalidTypeError:"組織名は有効な文字列である必要があります。",titleMinLengthError:"組織名は4文字以上でなければなりません。",keyRequiredError:"あなたの組織のためにキーを入力してください。",keyInvalidTypeError:"キーは有効な文字列である必要があります。",keySpaceError:"キーにはスペースや特殊文字を含めることはできません。",keyMinLengthError:"キーは4文字以上でなければなりません。",descriptionRequiredError:"あなたの組織の説明を入力してください。",descriptionInvalidTypeError:"説明は有効な文字列である必要があります。",requiredErrorProjectId:"プロジェクトを選択してください",invalidTypeErrorProjectId:"有効なプロジェクトを選択してください",invalidTypeErrorTags:"有効なタグを入力してください"},ko:{titleRequiredError:"조직 이름을 입력하세요.",titleInvalidTypeError:"조직 이름은 유효한 문자열이어야 합니다.",titleMinLengthError:"조직 이름은 4자 이상이어야 합니다.",keyRequiredError:"조직에 대한 키를 입력하세요.",keyInvalidTypeError:"키는 유효한 문자열이어야 합니다.",keySpaceError:"키에는 공백이나 특수 문자가 포함될 수 없습니다.",keyMinLengthError:"키는 4자 이상이어야 합니다.",descriptionRequiredError:"조직에 대한 설명을 입력하세요.",descriptionInvalidTypeError:"설명은 유효한 문자열이어야 합니다.",requiredErrorProjectId:"프로젝트를 선택하세요",invalidTypeErrorProjectId:"유효한 프로젝트를 선택하세요",invalidTypeErrorTags:"유효한 태그를 입력하세요"},zh:{titleRequiredError:"请输入您组织的名称。",titleInvalidTypeError:"组织名称必须是有效的字符串。",titleMinLengthError:"组织名称必须至少4个字符。",keyRequiredError:"请输入您组织的键。",keyInvalidTypeError:"关键字必须是有效的字符串。",keySpaceError:"关键字不能包含空格或特殊字符。",keyMinLengthError:"键必须至少为4个字符。",descriptionRequiredError:"请输入您组织的描述。",descriptionInvalidTypeError:"描述必须是有效的字符串。",requiredErrorProjectId:"请选择一个项目",invalidTypeErrorProjectId:"请选择有效的项目",invalidTypeErrorTags:"请输入有效的标签"},it:{titleRequiredError:"Si prega di inserire un nome per la propria organizzazione.",titleInvalidTypeError:"Il nome dell'organizzazione deve essere una stringa valida.",titleMinLengthError:"Il nome dell'organizzazione deve essere lungo almeno 4 caratteri.",keyRequiredError:"Si prega di inserire una chiave per la propria organizzazione.",keyInvalidTypeError:"La chiave deve essere una stringa valida.",keySpaceError:"La chiave non può contenere spazi o caratteri speciali.",keyMinLengthError:"La chiave deve essere lunga almeno 4 caratteri.",descriptionRequiredError:"Si prega di inserire una descrizione per la propria organizzazione.",descriptionInvalidTypeError:"La descrizione deve essere una stringa valida.",requiredErrorProjectId:"Si prega di selezionare un progetto",invalidTypeErrorProjectId:"Si prega di selezionare un progetto valido",invalidTypeErrorTags:"Si prega di inserire un tag valido"},pt:{titleRequiredError:"Por favor, insira um nome para sua organização.",titleInvalidTypeError:"O nome da organização deve ser uma string válida.",titleMinLengthError:"O nome da organização deve ter pelo menos 4 caracteres.",keyRequiredError:"Por favor, insira uma chave para sua organização.",keyInvalidTypeError:"A chave deve ser uma string válida.",keySpaceError:"A chave não pode conter espaços ou caracteres especiais.",keyMinLengthError:"A chave deve ter pelo menos 4 caracteres.",descriptionRequiredError:"Por favor, insira uma descrição para sua organização.",descriptionInvalidTypeError:"A descrição deve ser uma string válida.",requiredErrorProjectId:"Por favor, selecione um projeto",invalidTypeErrorProjectId:"Por favor, selecione um projeto válido",invalidTypeErrorTags:"Por favor, insira um tag válido"},hi:{titleRequiredError:"कृपया अपने संगठन का नाम दर्ज करें।",titleInvalidTypeError:"संगठन का नाम एक वैध स्ट्रिंग होना चाहिए।",titleMinLengthError:"संगठन का नाम कम से कम 4 वर्ण का होना चाहिए।",keyRequiredError:"कृपया अपने संगठन के लिए एक कुंजी दर्ज करें।",keyInvalidTypeError:"कुंजी एक वैध स्ट्रिंग होनी चाहिए।",keySpaceError:"कुंजी में स्पेस या विशेष वर्ण नहीं हो सकते।",keyMinLengthError:"कुंजी में कम से कम 4 वर्ण होने चाहिए।",descriptionRequiredError:"कृपया अपने संगठन का विवरण दर्ज करें।",descriptionInvalidTypeError:"विवरण एक वैध स्ट्रिंग होना चाहिए।",requiredErrorProjectId:"कृपया एक प्रोजेक्ट चुनें",invalidTypeErrorProjectId:"कृपया एक वैध परियोजना चुनें",invalidTypeErrorTags:"कृपया एक वैध टैग दर्ज करें"},ar:{titleRequiredError:"يرجى إدخال اسم منظمتك.",titleInvalidTypeError:"يجب أن يكون اسم المنظمة سلسلة صحيحة.",titleMinLengthError:"يجب أن يكون اسم المنظمة مكونًا من 4 أحرف على الأقل.",keyRequiredError:"يرجى إدخال مفتاح لمنظمتك.",keyInvalidTypeError:"يجب أن يكون المفتاح سلسلة صحيحة.",keySpaceError:"لا يمكن أن يحتوي المفتاح على مسافات أو أحرف خاصة.",keyMinLengthError:"يجب أن يكون المفتاح مكونًا من 4 أحرف على الأقل.",descriptionRequiredError:"يرجى إدخال وصف لمنظمتك.",descriptionInvalidTypeError:"يجب أن يكون الوصف سلسلة صحيحة.",requiredErrorProjectId:"يرجى اختيار مشروع",invalidTypeErrorProjectId:"يرجى اختيار مشروع صالح",invalidTypeErrorTags:"يرجى إدخال وسم صالح"},ru:{titleRequiredError:"Пожалуйста, введите название вашей организации.",titleInvalidTypeError:"Имя организации должно быть правильной строкой.",titleMinLengthError:"Имя организации должно содержать не менее 4 символов.",keyRequiredError:"Пожалуйста, введите ключ для вашей организации.",keyInvalidTypeError:"Ключ должен быть правильной строкой.",keySpaceError:"Ключ не может содержать пробелы или специальные символы.",keyMinLengthError:"Ключ должен содержать не менее 4 символов.",descriptionRequiredError:"Пожалуйста, введите описание вашей организации.",descriptionInvalidTypeError:"Описание должно быть правильной строкой.",requiredErrorProjectId:"Пожалуйста, выберите проект",invalidTypeErrorProjectId:"Пожалуйста, выберите действительный проект",invalidTypeErrorTags:"Пожалуйста, введите действительный тег"}}},WU=["dictionary-detail-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts"],XU={key:ZU,content:YU,localIds:WU},QU="dictionary-details",JU=JSON.parse(`{"nodeType":"translation","translation":{"en":{"titleInput":{"label":"Title","description":"The title of your dictionary allows you to easily identify it","placeholder":"Enter the title of your dictionary"},"keyInput":{"label":"Key","description":"The key of your dictionary is used to identify it in the application","placeholder":"Enter the key of your dictionary"},"descriptionInput":{"label":"Description","placeholder":"Enter the description of your dictionary","description":"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."},"projectInput":{"label":"Projects","description":"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.","placeholder":"Select one or more projects to associate with your dictionary"},"tagsSelect":{"label":"Tags","description":"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.","placeholder":"Select the tags to associate with your dictionary"},"auditButton":{"label":"Audit"}},"en-GB":{"titleInput":{"label":"Title","description":"The title of your dictionary allows you to easily identify it","placeholder":"Enter the title of your dictionary"},"keyInput":{"label":"Key","description":"The key of your dictionary is used to identify it in the application","placeholder":"Enter the key of your dictionary"},"descriptionInput":{"label":"Description","placeholder":"Enter the description of your dictionary","description":"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."},"projectInput":{"label":"Projects","description":"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.","placeholder":"Select one or more projects to associate with your dictionary"},"tagsSelect":{"label":"Tags","description":"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.","placeholder":"Select the tags to associate with your dictionary"},"auditButton":{"label":"Audit"}},"fr":{"titleInput":{"label":"Titre","description":"Le titre de votre dictionnaire permet de l'identifier facilement","placeholder":"Entrez le titre de votre dictionnaire"},"keyInput":{"label":"Clé","description":"La clé de votre dictionnaire est utilisée pour l'identifier dans l'application","placeholder":"Entrez la clé de votre dictionnaire"},"descriptionInput":{"label":"Description","placeholder":"Entrez la description de votre dictionnaire","description":"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."},"projectInput":{"label":"Projets","description":"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.","placeholder":"Sélectionnez un ou plusieurs projets à associer à votre dictionnaire"},"tagsSelect":{"label":"Tags","description":"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.","placeholder":"Sélectionnez les tags à associer à votre dictionnaire"},"auditButton":{"label":"Auditer"}},"es":{"titleInput":{"label":"Título","description":"El título de su diccionario le permite identificar fácilmente","placeholder":"Ingrese el título de su diccionario"},"keyInput":{"label":"Clave","description":"La clave de su diccionario se utiliza para identificarla en la aplicación","placeholder":"Ingrese la clave de su diccionario"},"descriptionInput":{"label":"Descripción","placeholder":"Ingrese la descripción de su diccionario","description":"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."},"projectInput":{"label":"Proyectos","description":"Un diccionario puede estar asociado con uno o más proyectos. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.","placeholder":"Seleccione uno o más proyectos para asociar con su diccionario"},"tagsSelect":{"label":"Etiquetas","description":"Un diccionario puede estar asociado con uno o más tags. Esto permite cargar el diccionario en diferentes aplicaciones y compartirlo entre diferentes equipos.","placeholder":"Seleccione los tags para asociar con su diccionario"},"auditButton":{"label":"Auditar"}},"de":{"titleInput":{"label":"Titel","description":"Der Titel Ihres Wörterbuchs ermöglicht es Ihnen, es leicht zu identifizieren","placeholder":"Geben Sie den Titel Ihres Wörterbuchs ein"},"keyInput":{"label":"Schlüssel","description":"Der Schlüssel Ihres Wörterbuchs wird verwendet, um es in der Anwendung zu identifizieren","placeholder":"Geben Sie den Schlüssel Ihres Wörterbuchs ein"},"descriptionInput":{"label":"Beschreibung","placeholder":"Geben Sie die Beschreibung Ihres Wörterbuchs ein","description":"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."},"projectInput":{"label":"Projekte","description":"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.","placeholder":"Wählen Sie ein oder mehrere Projekte aus, um sie mit Ihrem Wörterbuch zu verknüpfen"},"tagsSelect":{"label":"Tags","description":"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.","placeholder":"Wählen Sie die Tags, die mit Ihrem Wörterbuch verknüpft werden sollen"},"auditButton":{"label":"Prüfen"}},"ja":{"titleInput":{"label":"タイトル","description":"辞書のタイトルは、それを簡単に識別することができます","placeholder":"辞書のタイトルを入力してください"},"keyInput":{"label":"キー","description":"辞書のキーは、アプリケーション内でそれを識別するために使用されます","placeholder":"辞書のキーを入力してください"},"descriptionInput":{"label":"説明","placeholder":"辞書の説明を入力してください","description":"辞書の説明は、キーワードを使用して簡単に識別できます。また、辞書を検索するために使用され、AIが辞書を理解するのを助けます。"},"projectInput":{"label":"プロジェクト","description":"辞書は1つ以上のプロジェクトに関連付けることができます。これにより、辞書を異なるアプリケーションにロードし、異なるチーム間で共有できます。","placeholder":"辞書に関連付けるプロジェクトを1つ以上選択してください"},"tagsSelect":{"label":"タグ","description":"辞書は1つ以上のタグに関連付けることができます。これにより、辞書を異なるアプリケーションにロードし、異なるチーム間で共有できます。","placeholder":"辞書に関連付けるタグを選択してください"},"auditButton":{"label":"監査"}},"ko":{"titleInput":{"label":"제목","description":"사전의 제목은 이를 쉽게 식별할 수 있게 해줍니다","placeholder":"사전의 제목을 입력하세요"},"keyInput":{"label":"키","description":"사전의 키는 애플리케이션에서 이를 식별하는 데 사용됩니다","placeholder":"사전의 키를 입력하세요"},"descriptionInput":{"label":"설명","placeholder":"사전의 설명을 입력하세요","description":"사전의 설명은 키워드를 사용하여 쉽게 식별할 수 있습니다. 또한 사전을 검색하고 AI가 사전을 이해하는 데 도움을 줍니다."},"projectInput":{"label":"프로젝트","description":"사전은 하나 이상의 프로젝트와 연결할 수 있습니다. 이를 통해 사전을 다양한 애플리케이션에 로드하고 다양한 팀 간에 공유할 수 있습니다.","placeholder":"사전과 연결할 하나 이상의 프로젝트를 선택하세요"},"tagsSelect":{"label":"태그","description":"사전은 태그를 하나 이상의 태그로 연결할 수 있습니다. 이를 통해 사전을 다양한 애플리케이션에 로드하고 다양한 팀 간에 공유할 수 있습니다.","placeholder":"사전과 연결할 태그를 선택하세요"},"auditButton":{"label":"감사"}},"zh":{"titleInput":{"label":"标题","description":"字典的标题使您能够轻松识别它","placeholder":"输入字典的标题"},"keyInput":{"label":"键","description":"字典的键用于在应用程序中识别它","placeholder":"输入字典的键"},"descriptionInput":{"label":"描述","placeholder":"输入字典的描述","description":"您字典的描述使您能够使用关键字轻松地识别它。它还用于搜索您的字典,以及帮助 AI 理解您的字典。"},"projectInput":{"label":"项目","description":"字典可以与一个或多个项目关联。这使您能够在不同的应用程序中加载字典,并在不同的团队之间共享。","placeholder":"选择一个或多个项目以与您的字典关联"},"tagsSelect":{"label":"标签","description":"字典可以与一个或多个标签关联。这使您能够在不同的应用程序中加载字典,并在不同的团队之间共享。","placeholder":"选择与您的字典相关的标签"},"auditButton":{"label":"审核"}},"it":{"titleInput":{"label":"Titolo","description":"Il titolo del tuo dizionario ti consente di identificarlo facilmente","placeholder":"Inserisci il titolo del tuo dizionario"},"keyInput":{"label":"Chiave","description":"La chiave del tuo dizionario viene utilizzata per identificarlo nell'applicazione","placeholder":"Inserisci la chiave del tuo dizionario"},"descriptionInput":{"label":"Descrizione","placeholder":"Inserisci la descrizione del tuo dizionario","description":"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."},"projectInput":{"label":"Progetti","description":"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.","placeholder":"Seleziona uno o più progetti da associare al tuo dizionario"},"tagsSelect":{"label":"Tag","description":"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.","placeholder":"Seleziona i tag da associare al tuo dizionario"},"auditButton":{"label":"Controllare"}},"pt":{"titleInput":{"label":"Título","description":"O título do seu dicionário permite que você o identifique facilmente","placeholder":"Insira o título do seu dicionário"},"keyInput":{"label":"Chave","description":"A chave do seu dicionário é usada para identificá-lo no aplicativo","placeholder":"Insira a chave do seu dicionário"},"descriptionInput":{"label":"Descrição","placeholder":"Insira a descrição do seu dicionário","description":"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."},"projectInput":{"label":"Projetos","description":"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.","placeholder":"Selecione um ou mais projetos para associar ao seu dicionário"},"tagsSelect":{"label":"Tags","description":"Um dicionário pode ser associado a um ou mais tags. Isso permite que você carregue o dicionário em diferentes aplicativos e o compartilhe entre diferentes equipes.","placeholder":"Selecione os tags para associar ao seu dicionário"},"auditButton":{"label":"Auditar"}},"hi":{"titleInput":{"label":"शीर्षक","description":"आपके शब्दकोश का शीर्षक इसे आसानी से पहचानने में मदद करता है","placeholder":"आपके शब्दकोश का शीर्षक दर्ज करें"},"keyInput":{"label":"कुंजी","description":"आपके शब्दकोश की कुंजी इसे एप्लिकेशन में पहचानने के लिए उपयोग की जाती है","placeholder":"अपने शब्दकोश की कुंजी दर्ज करें"},"descriptionInput":{"label":"विवरण","placeholder":"अपने शब्दकोश का विवरण दर्ज करें","description":"आपके शब्दकोश का विवरण आपको कुंजीशब्दों का उपयोग करके इसे आसानी से पहचानने की अनुमति देता है। इसका उपयोग आपके शब्दकोश की खोज करने और AI को आपके शब्दकोश को समझने में मदद करने के लिए भी किया जाता है।"},"projectInput":{"label":"परियोजनाएँ","description":"एक शब्दकोश को एक या अधिक परियोजनाओं से जोड़ा जा सकता है। यह आपको विभिन्न अनुप्रयोगों में शब्दकोश लोड करने और विभिन्न टीमों के बीच साझा करने की अनुमति देता है।","placeholder":"अपने शब्दकोश से जोड़ने के लिए एक या अधिक परियोजनाएँ चुनें"},"tagsSelect":{"label":"टैग","description":"एक शब्दकोश को एक या अधिक टैग से जोड़ा जा सकता है। यह आपको विभिन्न अनुप्रयोगों में शब्दकोश लोड करने और विभिन्न टीमों के बीच साझा करने की अनुमति देता है।","placeholder":"अपने शब्दकोश से जोड़ने के लिए टैग का चयन करें"},"auditButton":{"label":"ऑडिट"}},"ar":{"titleInput":{"label":"العنوان","description":"يتيح لك عنوان القاموس الخاص بك التعرف عليه بسهولة","placeholder":"أدخل عنوان القاموس الخاص بك"},"keyInput":{"label":"مفتاح","description":"مفتاح القاموس الخاص بك يُستخدم لتحديده في التطبيق","placeholder":"أدخل مفتاح القاموس الخاص بك"},"descriptionInput":{"label":"الوصف","placeholder":"أدخل وصف القاموس الخاص بك","description":"يتيح لك وصف القاموس الخاص بك التعرف عليه بسهولة باستخدام الكلمات الرئيسية. كما أنه يستخدم للبحث عن القاموس الخاص بك ، ولمساعدة الذكاء الاصطناعي على فهم القاموس الخاص بك."},"projectInput":{"label":"المشاريع","description":"يمكن ربط قاموس بواحد أو أكثر من المشاريع. وهذا يتيح لك تحميل القاموس على تطبيقات مختلفة ومشاركته عبر فرق مختلفة.","placeholder":"حدد مشروعًا أو أكثر لربطه بقاموسك"},"tagsSelect":{"label":"الوسوم","description":"يمكن ربط قاموس بواحد أو أكثر من الوسوم. يتيح لك تحميل القاموس في تطبيقات مختلفة ومشاركته بين فرق مختلفة.","placeholder":"حدد الوسوم التي تريد ربطها بقاموسك"},"auditButton":{"label":"التدقيق"}},"ru":{"titleInput":{"label":"Заголовок","description":"Название вашего словаря позволяет легко его идентифицировать","placeholder":"Введите название вашего словаря"},"keyInput":{"label":"Ключ","description":"Ключ вашего словаря используется для его идентификации в приложении","placeholder":"Введите ключ вашего словаря"},"descriptionInput":{"label":"Описание","placeholder":"Введите описание вашего словаря","description":"Описание вашего словаря позволяет легко его идентифицировать с помощью ключевых слов. Оно также используется для поиска вашего словаря и для помощи ИИ в понимании вашего словаря."},"projectInput":{"label":"Проекты","description":"Словарь можно ассоциировать с одним или несколькими проектами. Это позволяет загружать словарь в различных приложениях и делиться им между разными командами.","placeholder":"Выберите один или несколько проектов, чтобы связать их с вашим словарем"},"tagsSelect":{"label":"Теги","description":"Словарь можно связать с одним или несколькими тегами. Это позволяет загружать словарь в различных приложениях и делиться им между различными командами.","placeholder":"Выберите теги, которые нужно связать с словарем"},"auditButton":{"label":"Отслеживание"}}}}`),eV=["dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"],tV={key:QU,content:JU,localIds:eV},nV="dictionary-edition-drawer",rV={nodeType:"translation",translation:{en:{openDictionaryEditor:{label:"Click to open the dictionary in the editor"},backButtonText:"Dictionary list",modalTitle:"Edit dictionary",noDictionaryFocused:"No dictionary focused",focusedDictionaryNotFound:"Focused dictionary not found"},"en-GB":{openDictionaryEditor:{label:"Click to open the dictionary in the editor"},backButtonText:"Dictionary list",modalTitle:"Edit dictionary",noDictionaryFocused:"No dictionary focused",focusedDictionaryNotFound:"Focused dictionary not found"},fr:{openDictionaryEditor:{label:"Cliquez pour ouvrir le dictionnaire dans l’éditeur"},backButtonText:"Liste des dictionnaires",modalTitle:"Modifier le dictionnaire",noDictionaryFocused:"Aucun dictionnaire sélectionné",focusedDictionaryNotFound:"Dictionnaire focalisé non trouvé"},es:{openDictionaryEditor:{label:"Haga clic para abrir el diccionario en el editor"},backButtonText:"Lista de diccionarios",modalTitle:"Editar el diccionario",noDictionaryFocused:"No hay diccionario enfocado",focusedDictionaryNotFound:"Diccionario enfocado no encontrado"},de:{openDictionaryEditor:{label:"Klicken Sie hier, um das Wörterbuch im Editor zu öffnen"},backButtonText:"Wörterbuchliste",modalTitle:"Wörterbuch bearbeiten",noDictionaryFocused:"Kein Wörterbuch ausgewählt",focusedDictionaryNotFound:"Ausgewähltes Wörterbuch nicht gefunden"},ja:{openDictionaryEditor:{label:"エディターで辞書を開く"},backButtonText:"辞書リスト",modalTitle:"辞書を編集",noDictionaryFocused:"フォーカスされた辞書がありません",focusedDictionaryNotFound:"フォーカスされた辞書が見つかりません"},ko:{openDictionaryEditor:{label:"편집기에서 사전 열기"},backButtonText:"사전 목록",modalTitle:"사전 편집",noDictionaryFocused:"포커스가 있는 사전이 없습니다",focusedDictionaryNotFound:"포커스가 있는 사전이 없습니다"},zh:{openDictionaryEditor:{label:"点击打开词典到编辑器"},backButtonText:"词典列表",modalTitle:"编辑词典",noDictionaryFocused:"没有聚焦的词典",focusedDictionaryNotFound:"没有聚焦的词典"},it:{openDictionaryEditor:{label:"Fai clic per aprire il dizionario nell’editor"},backButtonText:"Elenco di dizionari",modalTitle:"Modifica dizionario",noDictionaryFocused:"Nessun dizionario selezionato",focusedDictionaryNotFound:"Nessun dizionario selezionato"},pt:{openDictionaryEditor:{label:"Clique para abrir o dicionário no editor"},backButtonText:"Lista de dicionários",modalTitle:"Editar dicionário",noDictionaryFocused:"Nenhum dicionário focalizado",focusedDictionaryNotFound:"Nenhum dicionário focalizado"},hi:{openDictionaryEditor:{label:"एडिटर में शब्दकोश खोलने के लिए क्लिक करें"},backButtonText:"शब्दकोश सूची",modalTitle:"शब्दकोश संपादित करें",noDictionaryFocused:"कोई फोकस शब्दकोश नहीं है",focusedDictionaryNotFound:"कोई फोकस शब्दकोश नहीं है"},ar:{openDictionaryEditor:{label:"انقر لفتح قاموس في المحرر"},backButtonText:"قائمة القوامل",modalTitle:"تحرير قاموس",noDictionaryFocused:"لا يوجد قاموس مرتبط",focusedDictionaryNotFound:"لا يوجد قاموس مرتبط"},ru:{openDictionaryEditor:{label:"Нажмите, чтобы открыть словарь в редакторе"},backButtonText:"Список словарей",modalTitle:"Редактировать словарь",noDictionaryFocused:"Нет фокусированного словаря",focusedDictionaryNotFound:"Нет фокусированного словаря"}}},iV=["dictionary-edition-drawer::local::client/src/components/Editor/DictionaryEditionDrawer/dictionaryEditionDrawer.content.ts"],aV={key:nV,content:rV,localIds:iV},oV="dictionary-field-editor",sV={nodeType:"translation",translation:{en:{returnToDictionaryList:{label:"Return to dictionary list",text:"Dictionary list"}},"en-GB":{returnToDictionaryList:{label:"Return to dictionary list",text:"Dictionary list"}},fr:{returnToDictionaryList:{label:"Retourner à la liste des dictionnaires",text:"Liste des dictionnaires"}},es:{returnToDictionaryList:{label:"Volver a la lista de diccionarios",text:"Lista de diccionarios"}},de:{returnToDictionaryList:{label:"Zurück zur Wörterbuchliste",text:"Wörterbuchliste"}},ja:{returnToDictionaryList:{label:"辞書リストに戻る",text:"辞書リスト"}},ko:{returnToDictionaryList:{label:"사전 목록으로 돌아가기",text:"사전 목록"}},zh:{returnToDictionaryList:{label:"返回字典列表",text:"字典列表"}},it:{returnToDictionaryList:{label:"Torna alla lista dei dizionari",text:"Elenco dei dizionari"}},pt:{returnToDictionaryList:{label:"Retornar à lista de dicionários",text:"Lista de dicionários"}},hi:{returnToDictionaryList:{label:"शब्दकोश सूची पर वापस जाएं",text:"शब्दकोश सूची"}},ar:{returnToDictionaryList:{label:"العودة إلى قائمة القوامل",text:"قائمة المعاجم"}},ru:{returnToDictionaryList:{label:"Вернуться к списку словарей",text:"Список словарей"}}}},lV=["dictionary-field-editor::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/dictionaryFieldEditor.content.ts"],cV={key:oV,content:sV,localIds:lV},uV="dictionary-form-schema",dV={nodeType:"translation",translation:{en:{requiredErrorName:"Please enter a key for your dictionary",invalidTypeErrorName:"Please enter a valid key for your dictionary",requiredErrorProjectId:"Please select a project",invalidTypeErrorProjectId:"Please select a valid project"},"en-GB":{requiredErrorName:"Please enter a key for your dictionary",invalidTypeErrorName:"Please enter a valid key for your dictionary",requiredErrorProjectId:"Please select a project",invalidTypeErrorProjectId:"Please select a valid project"},fr:{requiredErrorName:"Veuillez saisir une clef pour votre dictionaire",invalidTypeErrorName:"Veuillez saisir une clée valide pour votre dictionaire",requiredErrorProjectId:"Veuillez sélectionner un projet",invalidTypeErrorProjectId:"Veuillez sélectionner un projet valide"},es:{requiredErrorName:"Por favor, ingrese un clave para su diccionario",invalidTypeErrorName:"Por favor, ingrese un clave válido para su diccionario",requiredErrorProjectId:"Por favor, seleccione un proyecto",invalidTypeErrorProjectId:"Por favor, seleccione un proyecto válido"},de:{requiredErrorName:"Bitte geben Sie einen Schlüssel für Ihr Wörterbuch ein",invalidTypeErrorName:"Bitte geben Sie einen gültigen Schlüssel für Ihr Wörterbuch ein",requiredErrorProjectId:"Bitte wählen Sie ein Projekt aus",invalidTypeErrorProjectId:"Bitte wählen Sie ein gültiges Projekt aus"},ja:{requiredErrorName:"辞書のキーを入力してください",invalidTypeErrorName:"辞書の有効なキーを入力してください",requiredErrorProjectId:"プロジェクトを選択してください",invalidTypeErrorProjectId:"有効なプロジェクトを選択してください"},ko:{requiredErrorName:"사전 키를 입력해 주세요",invalidTypeErrorName:"유효한 사전 키를 입력해 주세요",requiredErrorProjectId:"프로젝트를 선택해 주세요",invalidTypeErrorProjectId:"유효한 프로젝트를 선택해 주세요"},zh:{requiredErrorName:"请输入字典的键",invalidTypeErrorName:"请输入字典的有效键",requiredErrorProjectId:"请选择一个项目",invalidTypeErrorProjectId:"请选择一个有效的项目"},it:{requiredErrorName:"Si prega di inserire una chiave per il proprio dizionario",invalidTypeErrorName:"Si prega di inserire una chiave valida per il proprio dizionario",requiredErrorProjectId:"Si prega di selezionare un progetto",invalidTypeErrorProjectId:"Si prega di selezionare un progetto valido"},pt:{requiredErrorName:"Por favor, insira uma chave para seu dicionário",invalidTypeErrorName:"Por favor, insira uma chave válida para seu dicionário",requiredErrorProjectId:"Por favor, selecione um projeto",invalidTypeErrorProjectId:"Por favor, selecione um projeto válido"},hi:{requiredErrorName:"कृपया अपने शब्दकोश के लिए एक कुंजी दर्ज करें",invalidTypeErrorName:"कृपया अपने शब्दकोश के लिए एक मान्य कुंजी दर्ज करें",requiredErrorProjectId:"कृपया एक परियोजना चुनें",invalidTypeErrorProjectId:"कृपया एक मान्य परियोजना चुनें"},ar:{requiredErrorName:"الرجاء إدخال مفتاح لقاموسك",invalidTypeErrorName:"الرجاء إدخال مفتاح صالح لقاموسك",requiredErrorProjectId:"الرجاء تحديد مشروع",invalidTypeErrorProjectId:"الرجاء تحديد مشروع صالح"},ru:{requiredErrorName:"Пожалуйста, введите ключ для вашего словаря",invalidTypeErrorName:"Пожалуйста, введите действительный ключ для вашего словаря",requiredErrorProjectId:"Пожалуйста, выберите проект",invalidTypeErrorProjectId:"Пожалуйста, выберите действительный проект"}}},fV=["dictionary-form-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.ts"],hV={key:uV,content:dV,localIds:fV},pV="dictionary-form",mV={nodeType:"translation",translation:{en:{keyInput:{label:"Key",placeholder:"Enter the key of your dictionary"},projectInput:{label:"Projects",placeholder:"Select one or more projects to associate with your dictionary"},noDictionaryView:{title:"No dictionary",description:"Create your first dictionary to start using Intlayer"},createDictionaryTitle:"No dictionary",createDictionaryDescription:"Create your first dictionary to start using Intlayer",createDictionaryButton:{text:"Create dictionary",ariaLabel:"Click to create dictionary"},editButton:{text:"Edit dictionary",ariaLabel:"Click to edit"}},"en-GB":{keyInput:{label:"Key",placeholder:"Enter the key of your dictionary"},projectInput:{label:"Projects",placeholder:"Select one or more projects to associate with your dictionary"},noDictionaryView:{title:"No dictionary",description:"Create your first dictionary to start using Intlayer"},createDictionaryTitle:"No dictionary",createDictionaryDescription:"Create your first dictionary to start using Intlayer",createDictionaryButton:{text:"Create dictionary",ariaLabel:"Click to create dictionary"},editButton:{text:"Edit dictionary",ariaLabel:"Click to edit"}},fr:{keyInput:{label:"Clé",placeholder:"Entrez la clé de votre dictionnaire"},projectInput:{label:"Projets",placeholder:"Sélectionnez un ou plusieurs projets à associer à votre dictionnaire"},noDictionaryView:{title:"Aucun dictionnaire",description:"Créez votre premier dictionnaire pour commencer à utiliser Intlayer"},createDictionaryTitle:"Aucun dictionnaire",createDictionaryDescription:"Créez votre premier dictionnaire pour commencer à utiliser Intlayer",createDictionaryButton:{text:"Créer un dictionnaire",ariaLabel:"Cliquez pour créer un dictionnaire"},editButton:{text:"Modifier le dictionnaire",ariaLabel:"Cliquez pour modifier"}},es:{keyInput:{label:"Clave",placeholder:"Ingrese la clave de su diccionario"},projectInput:{label:"Proyectos",placeholder:"Seleccione uno o más proyectos para asociar con su diccionario"},noDictionaryView:{title:"Sin diccionario",description:"Cree su primer diccionario para comenzar a usar Intlayer"},createDictionaryTitle:"Sin diccionario",createDictionaryDescription:"Cree su primer diccionario para comenzar a usar Intlayer",createDictionaryButton:{text:"Crear un diccionario",ariaLabel:"Haga clic para crear un diccionario"},editButton:{text:"Editar el diccionario",ariaLabel:"Haga clic para editar"}},de:{keyInput:{label:"Schlüssel",placeholder:"Geben Sie den Schlüssel Ihres Wörterbuchs ein"},projectInput:{label:"Projekte",placeholder:"Wählen Sie ein oder mehrere Projekte aus, um sie mit Ihrem Wörterbuch zu verknüpfen"},noDictionaryView:{title:"Kein Wörterbuch",description:"Erstellen Sie Ihr erstes Wörterbuch, um Intlayer zu verwenden"},createDictionaryTitle:"Kein Wörterbuch",createDictionaryDescription:"Erstellen Sie Ihr erstes Wörterbuch, um Intlayer zu verwenden",createDictionaryButton:{text:"Wörterbuch erstellen",ariaLabel:"Klicken Sie, um ein Wörterbuch zu erstellen"},editButton:{text:"Wörterbuch bearbeiten",ariaLabel:"Klicken Sie, um zu bearbeiten"}},ja:{keyInput:{label:"キー",placeholder:"辞書のキーを入力してください"},projectInput:{label:"プロジェクト",placeholder:"辞書に関連付けるプロジェクトを1つ以上選択してください"},noDictionaryView:{title:"辞書がありません",description:"Intlayerを使用するために最初の辞書を作成してください"},createDictionaryTitle:"辞書がありません",createDictionaryDescription:"Intlayerを使用するために最初の辞書を作成してください",createDictionaryButton:{text:"辞書を作成",ariaLabel:"辞書を作成するにはクリックしてください"},editButton:{text:"辞書を編集",ariaLabel:"編集するにはクリックしてください"}},ko:{keyInput:{label:"키",placeholder:"사전의 키를 입력하세요"},projectInput:{label:"프로젝트",placeholder:"사전과 연결할 프로젝트를 하나 이상 선택하세요"},noDictionaryView:{title:"사전이 없습니다",description:"Intlayer를 사용하려면 첫 번째 사전을 만들어주세요"},createDictionaryTitle:"사전이 없습니다",createDictionaryDescription:"Intlayer를 사용하려면 첫 번째 사전을 만들어주세요",createDictionaryButton:{text:"사전 만들기",ariaLabel:"사전을 만들려면 클릭하세요"},editButton:{text:"사전 편집",ariaLabel:"편집하려면 클릭하세요"}},zh:{keyInput:{label:"键",placeholder:"输入字典的键"},projectInput:{label:"项目",placeholder:"选择一个或多个项目与您的字典关联"},noDictionaryView:{title:"没有字典",description:"创建您的第一个字典以开始使用Intlayer"},createDictionaryTitle:"没有字典",createDictionaryDescription:"创建您的第一个字典以开始使用Intlayer",createDictionaryButton:{text:"创建字典",ariaLabel:"点击创建字典"},editButton:{text:"编辑字典",ariaLabel:"点击编辑"}},it:{keyInput:{label:"Chiave",placeholder:"Inserisci la chiave del tuo dizionario"},projectInput:{label:"Progetti",placeholder:"Seleziona uno o più progetti da associare al tuo dizionario"},noDictionaryView:{title:"Nessun dizionario",description:"Crea il tuo primo dizionario per iniziare a usare Intlayer"},createDictionaryTitle:"Nessun dizionario",createDictionaryDescription:"Crea il tuo primo dizionario per iniziare a usare Intlayer",createDictionaryButton:{text:"Crea dizionario",ariaLabel:"Clicca per creare un dizionario"},editButton:{text:"Modifica dizionario",ariaLabel:"Clicca per modificare"}},pt:{keyInput:{label:"Chave",placeholder:"Insira a chave do seu dicionário"},projectInput:{label:"Projetos",placeholder:"Selecione um ou mais projetos para associar ao seu dicionário"},noDictionaryView:{title:"Nenhum dicionário",description:"Crie seu primeiro dicionário para começar a usar o Intlayer"},createDictionaryTitle:"Nenhum dicionário",createDictionaryDescription:"Crie seu primeiro dicionário para começar a usar o Intlayer",createDictionaryButton:{text:"Criar dicionário",ariaLabel:"Clique para criar dicionário"},editButton:{text:"Editar dicionário",ariaLabel:"Clique para editar"}},hi:{keyInput:{label:"की",placeholder:"अपने शब्दकोश की कुंजी दर्ज करें"},projectInput:{label:"प्रोजेक्ट",placeholder:"अपने शब्दकोश से जोड़ने के लिए एक या एक से अधिक प्रोजेक्ट चुनें"},noDictionaryView:{title:"कोई शब्दकोश नहीं",description:"Intlayer का उपयोग करने के लिए अपना पहला शब्दकोश बनाएं"},createDictionaryTitle:"कोई शब्दकोश नहीं",createDictionaryDescription:"Intlayer का उपयोग करने के लिए अपना पहला शब्दकोश बनाएं",createDictionaryButton:{text:"शब्दकोश बनाएँ",ariaLabel:"शब्दकोश बनाने के लिए क्लिक करें"},editButton:{text:"शब्दकोश संपादित करें",ariaLabel:"संपादित करने के लिए क्लिक करें"}},ar:{keyInput:{label:"مفتاح",placeholder:"أدخل مفتاح القاموس الخاص بك"},projectInput:{label:"مشاريع",placeholder:"حدد مشروعًا أو أكثر للربط مع قاموسك"},noDictionaryView:{title:"لا يوجد قاموس",description:"أنشئ قاموسك الأول لبدء استخدام Intlayer"},createDictionaryTitle:"لا يوجد قاموس",createDictionaryDescription:"أنشئ قاموسك الأول لبدء استخدام Intlayer",createDictionaryButton:{text:"إنشاء قاموس",ariaLabel:"انقر لإنشاء قاموس"},editButton:{text:"تعديل القاموس",ariaLabel:"انقر لتعديل"}},ru:{keyInput:{label:"Ключ",placeholder:"Введите ключ вашего словаря"},projectInput:{label:"Проекты",placeholder:"Выберите один или несколько проектов для связывания со словарем"},noDictionaryView:{title:"Нет словаря",description:"Создайте свой первый словарь, чтобы начать использовать Intlayer"},createDictionaryTitle:"Нет словаря",createDictionaryDescription:"Создайте свой первый словарь, чтобы начать использовать Intlayer",createDictionaryButton:{text:"Создать словарь",ariaLabel:"Нажмите, чтобы создать словарь"},editButton:{text:"Редактировать словарь",ariaLabel:"Нажмите, чтобы отредактировать"}}}},yV=["dictionary-form::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts"],gV={key:pV,content:mV,localIds:yV},vV="dictionary-list-drawer",bV={nodeType:"translation",translation:{en:{drawerTitle:{label:"Dictionary list"},buttonLabel:{label:{fields:["dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId"],nodeType:"insertion",insertion:"Open dictionary editor {{dictionaryLocalId}}"}}},"en-GB":{drawerTitle:{label:"Dictionary list"},buttonLabel:{label:{fields:["dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId"],nodeType:"insertion",insertion:"Open dictionary editor {{dictionaryLocalId}}"}}},fr:{drawerTitle:{label:"Liste des dictionnaires"},buttonLabel:{label:{fields:["dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId"],nodeType:"insertion",insertion:"Ouvrir le dictionnaire dans l'éditeur {{dictionaryLocalId}}"}}},es:{drawerTitle:{label:"Lista de diccionarios"},buttonLabel:{label:{fields:["dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId"],nodeType:"insertion",insertion:"Abrir el diccionario en el editor {{dictionaryLocalId}}"}}},de:{drawerTitle:{label:"Wörterbuchliste"},buttonLabel:{label:{fields:["dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId"],nodeType:"insertion",insertion:"Wörterbuch-Editor öffnen {{dictionaryLocalId}}"}}},ja:{drawerTitle:{label:"辞書リスト"},buttonLabel:{label:{fields:["dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId"],nodeType:"insertion",insertion:"辞書エディタを開く {{dictionaryLocalId}}"}}},ko:{drawerTitle:{label:"사전 목록"},buttonLabel:{label:{fields:["dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId"],nodeType:"insertion",insertion:"사전 편집기 열기 {{dictionaryLocalId}}"}}},zh:{drawerTitle:{label:"字典列表"},buttonLabel:{label:{fields:["dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId"],nodeType:"insertion",insertion:"打开字典编辑器 {{dictionaryLocalId}}"}}},it:{drawerTitle:{label:"Lista dei dizionari"},buttonLabel:{label:{fields:["dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId"],nodeType:"insertion",insertion:"Apri editor dizionario {{dictionaryLocalId}}"}}},pt:{drawerTitle:{label:"Lista de dicionários"},buttonLabel:{label:{fields:["dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId"],nodeType:"insertion",insertion:"Abrir editor de dicionário {{dictionaryLocalId}}"}}},hi:{drawerTitle:{label:"शब्दकोश सूची"},buttonLabel:{label:{fields:["dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId"],nodeType:"insertion",insertion:"शब्दकोश संपादक खोलें {{dictionaryLocalId}}"}}},ar:{drawerTitle:{label:"قائمة القواميس"},buttonLabel:{label:{fields:["dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId"],nodeType:"insertion",insertion:"فتح محرر القاموس {{dictionaryLocalId}}"}}},ru:{drawerTitle:{label:"Список словарей"},buttonLabel:{label:{fields:["dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId","dictionaryLocalId"],nodeType:"insertion",insertion:"Открыть редактор словаря {{dictionaryLocalId}}"}}}}},EV=["dictionary-list-drawer::local::client/src/components/Editor/DictionaryListDrawer/dictionaryListDrawer.content.ts"],xV={key:vV,content:bV,localIds:EV},SV="expand-collapse",AV={nodeType:"translation",translation:{en:{expandCollapseContent:{nodeType:"condition",condition:{true:"Show all",false:"Show less"}}},"en-GB":{expandCollapseContent:{nodeType:"condition",condition:{true:"Show all",false:"Show less"}}},fr:{expandCollapseContent:{nodeType:"condition",condition:{true:"Afficher tout",false:"Afficher moins"}}},es:{expandCollapseContent:{nodeType:"condition",condition:{true:"Mostrar todo",false:"Mostrar menos"}}},de:{expandCollapseContent:{nodeType:"condition",condition:{true:"Mehr anzeigen",false:"Weniger anzeigen"}}},ja:{expandCollapseContent:{nodeType:"condition",condition:{true:"すべて表示",false:"表示を減らす"}}},ko:{expandCollapseContent:{nodeType:"condition",condition:{true:"모두 보기",false:"간략히 보기"}}},zh:{expandCollapseContent:{nodeType:"condition",condition:{true:"显示全部",false:"显示较少"}}},it:{expandCollapseContent:{nodeType:"condition",condition:{true:"Mostra tutto",false:"Mostra meno"}}},pt:{expandCollapseContent:{nodeType:"condition",condition:{true:"Mostrar tudo",false:"Mostrar menos"}}},hi:{expandCollapseContent:{nodeType:"condition",condition:{true:"सभी दिखाएँ",false:"कम दिखाएँ"}}},ar:{expandCollapseContent:{nodeType:"condition",condition:{true:"عرض الكل",false:"عرض أقل"}}},ru:{expandCollapseContent:{nodeType:"condition",condition:{true:"Показать все",false:"Показать меньше"}}}}},wV=["expand-collapse::local::../@intlayer/design-system/src/components/ExpandCollapse/expandCollapse.content.ts"],TV={key:SV,content:AV,localIds:wV},CV="loader",RV={nodeType:"translation",translation:{en:{label:"Animated icon, meaning that the website is processing"},"en-GB":{label:"Animated icon, meaning that the website is processing"},fr:{label:"Icône animée, signifiant que le site Web est en cours de traitement"},es:{label:"Icono animado, significa que el sitio web está procesando"},de:{label:"Animiertes Icon, das heißt, dass die Website in Bearbeitung ist"},ja:{label:"アニメーションアイコン、ウェブサイトが処理していることを意味する"},ko:{label:"애니메이션 아이콘, 웹 사이트가 처리 중인 의미"},zh:{label:"动画图标,意味着网站正在处理"},it:{label:"Icona animata, che significa che il sito web è in fase di elaborazione"},pt:{label:"Ícone animado, o que significa que o site está processando"},hi:{label:"एनिमेटेड आइकन, जो कि वेबसाइट को प्रसंस्करण हो रहा है इसका मतलब है"},ar:{label:"رمز متحرك، مما يعني أن الموقع الإلكتروني يتم التحميل"},ru:{label:"Анимационный значок, что означает, что сайт обрабатывается"}}},IV=["loader::local::../@intlayer/design-system/src/components/Loader/index.content.ts"],_V={key:CV,content:RV,localIds:IV},NV="locale-switcher-content",kV={nodeType:"translation",translation:{en:{localeSwitcherLabel:"Language switcher",languageListLabel:"Language list",switchTo:"Switch to",searchInput:{text:"Search Locale",placeholder:"Search a locale",ariaLabel:"Language search"},seeAllLocalesSwitch:{true:"See all locales",false:"See only selected locales"}},"en-GB":{localeSwitcherLabel:"Language switcher",languageListLabel:"Language list",switchTo:"Switch to",searchInput:{text:"Search Locale",placeholder:"Search a locale",ariaLabel:"Language search"},seeAllLocalesSwitch:{true:"See all locales",false:"See only selected locales"}},fr:{localeSwitcherLabel:"Changer de langue",languageListLabel:"Liste des langues",switchTo:"Passer à",searchInput:{text:"Rechercher la locale",placeholder:"Rechercher une locale",ariaLabel:"Recherche de langue"},seeAllLocalesSwitch:{true:"Voir toutes les langues",false:"Voir seulement les langues sélectionnées"}},es:{localeSwitcherLabel:"Cambiar idioma",languageListLabel:"Lista de idiomas",switchTo:"Cambiar a",searchInput:{text:"Buscar idioma",placeholder:"Buscar un idioma",ariaLabel:"Búsqueda de idioma"},seeAllLocalesSwitch:{true:"Ver todos los idiomas",false:"Ver solo los idiomas seleccionados"}},de:{localeSwitcherLabel:"Sprachwechsler",languageListLabel:"Sprachliste",switchTo:"Wechseln Sie zu",searchInput:{text:"Sprache durchsuchen",placeholder:"Sprache suchen",ariaLabel:"Sprachsuche"},seeAllLocalesSwitch:{true:"Alle Sprachen anzeigen",false:"Nur ausgewählte Sprachen anzeigen"}},ja:{localeSwitcherLabel:"言語スイッチャー",languageListLabel:"言語リスト",switchTo:"に切り替える",searchInput:{text:"ロケールを検索",placeholder:"ロケールを検索",ariaLabel:"言語検索"},seeAllLocalesSwitch:{true:"すべての言語を表示",false:"選択された言語のみを表示"}},ko:{localeSwitcherLabel:"언어 스위치",languageListLabel:"언어 목록",switchTo:"전환",searchInput:{text:"언어 검색",placeholder:"언어 검색",ariaLabel:"언어 검색"},seeAllLocalesSwitch:{true:"모든 언어 보기",false:"선택한 언어만 보기"}},zh:{localeSwitcherLabel:"语言切换器",languageListLabel:"语言列表",switchTo:"切换到",searchInput:{text:"搜索语言",placeholder:"搜索语言",ariaLabel:"语言搜索"},seeAllLocalesSwitch:{true:"查看所有语言",false:"仅查看选定的语言"}},it:{localeSwitcherLabel:"Cambia lingua",languageListLabel:"Elenco lingue",switchTo:"Passa a",searchInput:{text:"Cerca lingua",placeholder:"Cerca una lingua",ariaLabel:"Ricerca lingua"},seeAllLocalesSwitch:{true:"Vedi tutte le lingue",false:"Vedi solo le lingue selezionate"}},pt:{localeSwitcherLabel:"Mudar idioma",languageListLabel:"Lista de idiomas",switchTo:"Mudar para",searchInput:{text:"Pesquisar idioma",placeholder:"Pesquisar um idioma",ariaLabel:"Pesquisa de idioma"},seeAllLocalesSwitch:{true:"Ver todos os idiomas",false:"Ver apenas os idiomas selecionados"}},hi:{localeSwitcherLabel:"भाषा स्विचर",languageListLabel:"भाषा सूची",switchTo:"स्विच करें",searchInput:{text:"भाषा खोजें",placeholder:"भाषा खोजें",ariaLabel:"भाषा खोजें"},seeAllLocalesSwitch:{true:"सभी भाषाओं को देखें",false:"केवल चुने गए भाषाओं को देखें"}},ar:{localeSwitcherLabel:"مبدل اللغة",languageListLabel:"قائمة اللغات",switchTo:"التبديل إلى",searchInput:{text:"بحث اللغة",placeholder:"بحث اللغة",ariaLabel:"بحث اللغة"},seeAllLocalesSwitch:{true:"عرض جميع اللغات",false:"عرض اللغات المحددة فقط"}},ru:{localeSwitcherLabel:"Переключатель языка",languageListLabel:"Список языков",switchTo:"Переключиться на",searchInput:{text:"Поиск языка",placeholder:"Поиск языка",ariaLabel:"Поиск языка"},seeAllLocalesSwitch:{true:"Показать все языки",false:"Показать только выбранные языки"}}}},LV=["locale-switcher-content::local::../@intlayer/design-system/src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.ts"],DV={key:NV,content:kV,localIds:LV},OV="locale-switcher",jV={nodeType:"translation",translation:{en:{localeSwitcherLabel:"Language switcher",languageListLabel:"Language list",switchTo:"Switch to",searchInput:{text:"Search Locale",placeholder:"Search a locale",ariaLabel:"Language search"}},"en-GB":{localeSwitcherLabel:"Language switcher",languageListLabel:"Language list",switchTo:"Switch to",searchInput:{text:"Search Locale",placeholder:"Search a locale",ariaLabel:"Language search"}},fr:{localeSwitcherLabel:"Changer de langue",languageListLabel:"Liste des langues",switchTo:"Passer à",searchInput:{text:"Rechercher la locale",placeholder:"Rechercher une locale",ariaLabel:"Recherche de langue"}},es:{localeSwitcherLabel:"Cambiar idioma",languageListLabel:"Lista de idiomas",switchTo:"Cambiar a",searchInput:{text:"Buscar idioma",placeholder:"Buscar un idioma",ariaLabel:"Búsqueda de idioma"}},de:{localeSwitcherLabel:"Sprachwechsler",languageListLabel:"Sprachliste",switchTo:"Wechseln Sie zu",searchInput:{text:"Sprache durchsuchen",placeholder:"Sprache suchen",ariaLabel:"Sprachsuche"}},ja:{localeSwitcherLabel:"言語スイッチャー",languageListLabel:"言語リスト",switchTo:"に切り替える",searchInput:{text:"ロケールを検索",placeholder:"ロケールを検索",ariaLabel:"言語検索"}},ko:{localeSwitcherLabel:"언어 스위치",languageListLabel:"언어 목록",switchTo:"전환",searchInput:{text:"언어 검색",placeholder:"언어 검색",ariaLabel:"언어 검색"}},zh:{localeSwitcherLabel:"语言切换器",languageListLabel:"语言列表",switchTo:"切换到",searchInput:{text:"搜索语言",placeholder:"搜索语言",ariaLabel:"语言搜索"}},it:{localeSwitcherLabel:"Cambia lingua",languageListLabel:"Elenco lingue",switchTo:"Passa a",searchInput:{text:"Cerca lingua",placeholder:"Cerca una lingua",ariaLabel:"Ricerca lingua"}},pt:{localeSwitcherLabel:"Mudar idioma",languageListLabel:"Lista de idiomas",switchTo:"Mudar para",searchInput:{text:"Pesquisar idioma",placeholder:"Pesquisar um idioma",ariaLabel:"Pesquisa de idioma"}},hi:{localeSwitcherLabel:"भाषा स्विचर",languageListLabel:"भाषा सूची",switchTo:"स्विच करें",searchInput:{text:"भाषा खोजें",placeholder:"भाषा खोजें",ariaLabel:"भाषा खोजें"}},ar:{localeSwitcherLabel:"مبدل اللغة",languageListLabel:"قائمة اللغات",switchTo:"التبديل إلى",searchInput:{text:"بحث اللغة",placeholder:"بحث اللغة",ariaLabel:"بحث اللغة"}},ru:{localeSwitcherLabel:"Переключатель языка",languageListLabel:"Список языков",switchTo:"Переключиться на",searchInput:{text:"Поиск языка",placeholder:"Поиск языка",ariaLabel:"Поиск языка"}}}},zV=["locale-switcher::local::../@intlayer/design-system/src/components/LocaleSwitcherDropDown/localeSwitcher.content.ts"],MV={key:OV,content:jV,localIds:zV},PV="long-press-message",BV={nodeType:"translation",translation:{en:{message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:'Long press to edit the "{{dictionaryKey}}" dictionary'}},"en-GB":{message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:'Long press to edit the "{{dictionaryKey}}" dictionary'}},fr:{message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:'Long press pour éditer le dictionnaire "{{dictionaryKey}}"'}},es:{message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:'Presiona largo para editar el diccionario "{{dictionaryKey}}"'}},de:{message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:'Lang press für Bearbeitung des Wörterbuchs "{{dictionaryKey}}"'}},ja:{message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:'長押しして編集 "{{dictionaryKey}}" 辞書'}},ko:{message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:'길게 눌러 편집 "{{dictionaryKey}}" 사전'}},zh:{message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:'长按编辑 "{{dictionaryKey}}" 字典'}},it:{message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:'Premi a lungo per modificare il dizionario "{{dictionaryKey}}"'}},pt:{message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:'Pressione longa para editar o dicionário "{{dictionaryKey}}"'}},hi:{message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:'लंग प्रेस करें टू एडिट "{{dictionaryKey}}"'}},ar:{message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:'اضغط طويلاً للتعديل "{{dictionaryKey}}"'}},ru:{message:{fields:["dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey","dictionaryKey"],nodeType:"insertion",insertion:'Длительное нажатие для редактирования словаря "{{dictionaryKey}}"'}}}},UV=["long-press-message::local::client/src/components/Editor/LongPressMessage/index.content.ts"],VV={key:PV,content:BV,localIds:UV},FV="navigation-view",HV={nodeType:"translation",translation:{en:{tsxNotEditable:"React node is not editable",goToField:{label:"Go to field"},addNewElement:{label:"Click to add element",text:"Add new element"},removeElement:{label:"Click to remove element",text:"Remove element"},addNewEnumeration:{label:"Click to add enumeration",text:"Add new enumeration"},removeEnumeration:{label:"Click to remove enumeration",text:"Remove enumeration"},addNewCondition:{label:"Click to add condition",text:"Add new condition"}},"en-GB":{tsxNotEditable:"React node is not editable",goToField:{label:"Go to field"},addNewElement:{label:"Click to add element",text:"Add new element"},removeElement:{label:"Click to remove element",text:"Remove element"},addNewEnumeration:{label:"Click to add enumeration",text:"Add new enumeration"},removeEnumeration:{label:"Click to remove enumeration",text:"Remove enumeration"},addNewCondition:{label:"Click to add condition",text:"Add new condition"}},fr:{tsxNotEditable:"Node React non éditable",goToField:{label:"Aller au champ"},addNewElement:{label:"Cliquez pour ajouter un élément",text:"Ajouter un nouvel élément"},removeElement:{label:"Cliquez pour supprimer un élément",text:"Supprimer l’élément"},addNewEnumeration:{label:"Cliquez pour ajouter une énumération",text:"Ajouter une nouvelle énumération"},removeEnumeration:{label:"Cliquez pour supprimer une énumération",text:"Supprimer l’énumération"},addNewCondition:{label:"Cliquez pour ajouter une condition",text:"Ajouter une nouvelle condition"}},es:{tsxNotEditable:"Nodo React no editable",goToField:{label:"Ir al campo"},addNewElement:{label:"Haga clic para agregar un elemento",text:"Agregar nuevo elemento"},removeElement:{label:"Haga clic para eliminar un elemento",text:"Eliminar elemento"},addNewEnumeration:{label:"Haga clic para agregar una enumeración",text:"Agregar nueva enumeración"},removeEnumeration:{label:"Haga clic para eliminar una enumeración",text:"Eliminar enumeración"},addNewCondition:{label:"Haga clic para agregar una condición",text:"Agregar nueva condición"}},de:{tsxNotEditable:"React-Knoten ist nicht bearbeitbar",goToField:{label:"Zum Feld gehen"},addNewElement:{label:"Klicken Sie, um ein Element hinzuzufügen",text:"Neues Element hinzufügen"},removeElement:{label:"Klicken Sie, um ein Element zu entfernen",text:"Element entfernen"},addNewEnumeration:{label:"Klicken Sie, um eine Aufzählung hinzuzufügen",text:"Neue Aufzählung hinzufügen"},removeEnumeration:{label:"Klicken Sie, um eine Aufzählung zu entfernen",text:"Aufzählung entfernen"},addNewCondition:{label:"Klicken Sie, um eine Bedingung hinzuzufügen",text:"Neue Bedingung hinzufügen"}},ja:{tsxNotEditable:"編集できないReactノードです",goToField:{label:"フィールドに移動"},addNewElement:{label:"要素を追加するにはクリック",text:"新しい要素を追加"},removeElement:{label:"要素を削除するにはクリック",text:"要素を削除"},addNewEnumeration:{label:"列挙を追加するにはクリック",text:"新しい列挙を追加"},removeEnumeration:{label:"列挙を削除するにはクリック",text:"列挙を削除"},addNewCondition:{label:"条件を追加するにはクリック",text:"新しい条件を追加"}},ko:{tsxNotEditable:"편집할 수 없는 React 노드입니다",goToField:{label:"필드로 이동"},addNewElement:{label:"요소를 추가하려면 클릭하세요",text:"새 요소 추가"},removeElement:{label:"요소를 제거하려면 클릭하세요",text:"요소 제거"},addNewEnumeration:{label:"열거를 추가하려면 클릭하세요",text:"새 목록 추가"},removeEnumeration:{label:"목록을 제거하려면 클릭하세요",text:"목록 제거"},addNewCondition:{label:"조건을 추가하려면 클릭하세요",text:"새 조건 추가"}},zh:{tsxNotEditable:"不可编辑的 React 节点",goToField:{label:"转到字段"},addNewElement:{label:"点击添加元素",text:"添加新元素"},removeElement:{label:"点击删除元素",text:"删除元素"},addNewEnumeration:{label:"点击添加枚举",text:"添加新枚举"},removeEnumeration:{label:"点击删除枚举",text:"删除枚举"},addNewCondition:{label:"点击添加条件",text:"添加新条件"}},it:{tsxNotEditable:"Node React non modificabile",goToField:{label:"Vai al campo"},addNewElement:{label:"Clicca per aggiungere un elemento",text:"Aggiungi nuovo elemento"},removeElement:{label:"Clicca per rimuovere un elemento",text:"Rimuovi elemento"},addNewEnumeration:{label:"Clicca per aggiungere un enumerazione",text:"Aggiungi nuova enumerazione"},removeEnumeration:{label:"Clicca per rimuovere un'enumerazione",text:"Rimuovi enumerazione"},addNewCondition:{label:"Clicca per aggiungere una condizione",text:"Aggiungi nuova condizione"}},pt:{tsxNotEditable:"Nó React não editável",goToField:{label:"Ir para o campo"},addNewElement:{label:"Clique para adicionar um elemento",text:"Adicionar novo elemento"},removeElement:{label:"Clique para remover um elemento",text:"Remover elemento"},addNewEnumeration:{label:"Clique para adicionar uma enumeração",text:"Adicionar nova enumeração"},removeEnumeration:{label:"Clique para remover uma enumeração",text:"Remover enumeração"},addNewCondition:{label:"Clique para adicionar uma condição",text:"Adicionar nova condição"}},hi:{tsxNotEditable:"सम्पादित न करने योग्य React नोड",goToField:{label:"फ़ील्ड पर जाएं"},addNewElement:{label:"तत्व जोड़ने के लिए क्लिक करें",text:"नया तत्व जोड़ें"},removeElement:{label:"तत्व निकालने के लिए क्लिक करें",text:"तत्व निकालें"},addNewEnumeration:{label:"सूची जोड़ने के लिए क्लिक करें",text:"नया सूची जोड़ें"},removeEnumeration:{label:"सूची निकालने के लिए क्लिक करें",text:"सूची निकालें"},addNewCondition:{label:"शर्ते जोड़ने के लिए क्लिक करें",text:"नया शर्ते जोड़ें"}},ar:{tsxNotEditable:"عقدة React غير قابلة للتحرير",goToField:{label:"اذهب إلى الحقل"},addNewElement:{label:"انقر لإضافة عنصر",text:"أضف عنصرًا جديدًا"},removeElement:{label:"انقر لإزالة عنصر",text:"إزالة عنصر"},addNewEnumeration:{label:"انقر لإضافة تعداد",text:"أضف تعدادًا جديدًا"},removeEnumeration:{label:"انقر لإزالة تعداد",text:"إزالة تعداد"},addNewCondition:{label:"انقر لإضافة شرط",text:"أضف شرطًا جديدًا"}},ru:{tsxNotEditable:"React-узел не редактируемый",goToField:{label:"Перейти к полю"},addNewElement:{label:"Нажмите, чтобы добавить элемент",text:"Добавить новый элемент"},removeElement:{label:"Нажмите, чтобы удалить элемент",text:"Удалить элемент"},addNewEnumeration:{label:"Нажмите, чтобы добавить перечисление",text:"Добавить новое перечисление"},removeEnumeration:{label:"Нажмите, чтобы удалить перечисление",text:"Удалить перечисление"},addNewCondition:{label:"Нажмите, чтобы добавить условие",text:"Добавить новое условие"}}}},GV=["navigation-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts"],KV={key:FV,content:HV,localIds:GV},$V="no-application-url-view",qV={nodeType:"translation",translation:{en:{title:"Your project configuration do not includes application URL",description:"To use the editor, you need to add the URL of the application to access to the configuration file.",documentationLink:{label:"Click to go to the editor documentation",text:"See how to configure the editor"}},"en-GB":{title:"Your project configuration do not includes application URL",description:"To use the editor, you need to add the URL of the application to access to the configuration file.",documentationLink:{label:"Click to go to the editor documentation",text:"See how to configure the editor"}},fr:{title:"Votre configuration de projet ne comprend pas l’URL de l’application",description:"Pour utiliser l’éditeur, vous devez ajouter l’URL de l’application pour accéder au fichier de configuration.",documentationLink:{label:"Cliquez ici pour accéder à la documentation de l’éditeur",text:"Voir comment configurer l’éditeur"}},es:{title:"Su configuración de proyecto no incluye la URL de la aplicación",description:"Para usar el editor, debe agregar la URL de la aplicación para acceder al archivo de configuración.",documentationLink:{label:"Haga clic aquí para acceder a la documentación del editor",text:"Vea cómo configurar el editor"}},de:{title:"Ihre Projektkonfiguration enthält keine Anwendungs-URL",description:"Um den Editor zu verwenden, müssen Sie die URL der Anwendung hinzufügen, um auf die Konfigurationsdatei zuzugreifen.",documentationLink:{label:"Klicken Sie hier, um die Editor-Dokumentation zu besuchen",text:"Siehe, wie man den Editor konfiguriert"}},ja:{title:"あなたのプロジェクト構成にはアプリケーション URL が含まれていません",description:"エディターを使用するには、アプリケーションの URL を設定ファイルに追加する必要があります。",documentationLink:{label:"エディターのドキュメントに移動するには、ここをクリックしてください",text:"エディターの設定方法を見る"}},ko:{title:"당신의 프로젝트 구성에 앱 URL이 포함되어 있지 않습니다.",description:"에디터를 사용하려면 설정 파일에 앱 URL을 추가해야 합니다.",documentationLink:{label:"에디터 문서로 이동하려면 여기를 클릭하십시오.",text:"에디터 설정 방법을 보십시오"}},zh:{title:"您的项目配置未包含应用程序 URL",description:"要使用编辑器,您需要将应用程序 URL 添加到访问配置文件。",documentationLink:{label:"点击此处访问编辑器文档",text:"查看如何配置编辑器"}},it:{title:"La configurazione del progetto non include l’URL dell’applicazione",description:"Per utilizzare l’editor, è necessario aggiungere l’URL dell’applicazione per accedere al file di configurazione.",documentationLink:{label:"Fai clic qui per accedere alla documentazione dell’editor",text:"Vedi come configurare l’editor"}},pt:{title:"Sua configuração do projeto não inclui a URL do aplicativo",description:"Para usar o editor, você precisa adicionar a URL do aplicativo para acessar o arquivo de configuração.",documentationLink:{label:"Clique aqui para acessar a documentação do editor",text:"Veja como configurar o editor"}},hi:{title:"आपके प्रोजेक्ट कॉन्फ़िगरेशन में ऐप का URL शामिल नहीं है",description:"एडिटर का उपयोग करने के लिए, आपको कॉन्फ़िगरेशन फ़ाइल तक ऐप का URL को जोड़ना होगा।",documentationLink:{label:"एडिटर को डॉक्यूमेंट पर जाए रखना चाहते हैं?",text:"एडिटर को काने के बारे में देखें"}},ar:{title:"تم إنشاء مشروعك بدون تضمين عنوان URL التطبيق",description:"لاستخدام المحرر، يجب عليك إضافة عنوان URL التطبيق للوصول إلى ملف التكوين.",documentationLink:{label:"انقر هنا للوصول إلى وثائق المحرر",text:"انظر كيفية تكوين المحرر"}},ru:{title:"Ваша конфигурация проекта не включает URL-адрес приложения",description:"Чтобы использовать редактор, вам необходимо добавить URL-адрес приложения для доступа к файлу конфигурации.",documentationLink:{label:"Нажмите, чтобы перейти к документации редактора",text:"Смотрите, как настроить редактор"}}}},ZV=["no-application-url-view::local::client/src/components/Editor/NoApplicationURLView/noApplicationURLView.content.ts"],YV={key:$V,content:qV,localIds:ZV},WV="node-type-selector",XV={nodeType:"translation",translation:{en:{triggerPlaceHolder:"Node type",multilingual:"Multilingual content",text:"Text",number:"Number",boolean:"Boolean",node:"Object",array:"Array",enumeration:"Enumeration",gender:"Gender",nest:"Nesting",insertion:"Insertion",condition:"Condition",file:"File",markdown:"Markdown",reactNode:"React Node"},"en-GB":{triggerPlaceHolder:"Node type",multilingual:"Multilingual content",text:"Text",number:"Number",boolean:"Boolean",node:"Object",array:"Array",enumeration:"Enumeration",gender:"Gender",nest:"Nesting",insertion:"Insertion",condition:"Condition",file:"File",markdown:"Markdown",reactNode:"React Node"},fr:{triggerPlaceHolder:"Type du Nœud",multilingual:"Contenu Multilingue",text:"Texte",number:"Nombre",boolean:"Booléen",node:"Objet",array:"Tableau",enumeration:"Énumération",gender:"Genre",nest:"Imbriquation",insertion:"Insertion",condition:"Condition",file:"Fichier",markdown:"Markdown",reactNode:"Node React"},es:{triggerPlaceHolder:"Tipo del nodo",multilingual:"Contenido multilingüe",text:"Texto",number:"Número",boolean:"Booleano",node:"Objeto",array:"Arreglo",enumeration:"Enumeración",gender:"Género",nest:"Anidación",insertion:"Inserción",condition:"Condición",file:"Archivo",markdown:"Markdown",reactNode:"Nodo React"},de:{triggerPlaceHolder:"Knotentyp",multilingual:"Mehrsprachiger Inhalt",text:"Text",number:"Zahl",boolean:"Bool",node:"Objekt",array:"Array",enumeration:"Enumeration",gender:"Geschlecht",nest:"Vererbung",insertion:"Einfügung",condition:"Bedingung",file:"Datei",markdown:"Markdown",reactNode:"React-Knoten"},ja:{triggerPlaceHolder:"ノードタイプ",multilingual:"複数言語コンテンツ",text:"テキスト",number:"数字",boolean:"ブール",node:"オブジェクト",array:"配列",enumeration:"列挙",gender:"性別",nest:"ネスト",insertion:"挿入",condition:"条件",file:"ファイル",markdown:"マークダウン",reactNode:"リアル・ノード"},ko:{triggerPlaceHolder:"노드 유형",multilingual:"다중 언어 콘텐츠",text:"텍스트",number:"숫자",boolean:"불리언",node:"객체",array:"배열",enumeration:"열거",gender:"성별",nest:"중첩",insertion:"삽입",condition:"조건",file:"파일",markdown:"마크다운",reactNode:"리액 노드"},zh:{triggerPlaceHolder:"节点类型",multilingual:"多语言内容",text:"文本",number:"数字",boolean:"布尔",node:"对象",array:"数组",enumeration:"枚举",gender:"性别",nest:"嵌套",insertion:"插入",condition:"条件",file:"文件",markdown:"Markdown",reactNode:"React 节点"},it:{triggerPlaceHolder:"Tipo di nodo",multilingual:"Contenuto multilingue",text:"Testo",number:"Numero",boolean:"Booleano",node:"Oggetto",array:"Array",enumeration:"Enumerazione",gender:"Genere",nest:"Nidificazione",insertion:"Inserimento",condition:"Condizione",file:"File",markdown:"Markdown",reactNode:"Nodo React"},pt:{triggerPlaceHolder:"Tipo de nó",multilingual:"Conteúdo multilíngue",text:"Texto",number:"Número",boolean:"Booleano",node:"Objeto",array:"Array",enumeration:"Enumeração",gender:"Gênero",nest:"Nido",insertion:"Inserção",condition:"Condição",file:"Arquivo",markdown:"Markdown",reactNode:"Nó React"},hi:{triggerPlaceHolder:"नोड प्रकार",multilingual:"बहुभाषी सामग्री",text:"पाठ",number:"संख्या",boolean:"बूलियन",node:"ऑब्जेक्ट",array:"ऐरे",enumeration:"गणना",gender:"लिंग",nest:"नेस्टेंस",insertion:"सम्मिलन",condition:"शर्त्ता",file:"फ़ाइल",markdown:"मार्कडाउन",reactNode:"रेड नोड"},ar:{triggerPlaceHolder:"نوع العقدة",multilingual:"محتوى متعدد اللغات",text:"نص",number:"رقم",boolean:"منطقي",node:"كائن",array:"مصفوفة",enumeration:"تعداد",gender:"جنس",nest:"مستوى",insertion:"إدراج",condition:"شرط",file:"ملف",markdown:"مارك داون",reactNode:"عقدة رياكت"},ru:{triggerPlaceHolder:"Тип узла",multilingual:"Многоязычный контент",text:"Текст",number:"Число",boolean:"Булево",node:"Объект",array:"Массив",enumeration:"Перечисление",gender:"Пол",nest:"Вложенность",insertion:"Вставка",condition:"Условие",file:"Файл",markdown:"Markdown",reactNode:"Реакт узел"}}},QV=["node-type-selector::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/nodeTypeSelector.content.ts"],JV={key:WV,content:XV,localIds:QV},eF="pagination",tF={nodeType:"translation",translation:{en:{numberItemsSelector:"Items per page",showingResults:{fields:["start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total"],nodeType:"insertion",insertion:"Showing {{start}} to {{end}} of {{total}} results"},selectPageSize:"Select page size",goToNextPage:"Go to next page",goToPreviousPage:"Go to previous page"},"en-GB":{numberItemsSelector:"Items per page",showingResults:{fields:["start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total"],nodeType:"insertion",insertion:"Showing {{start}} to {{end}} of {{total}} results"},selectPageSize:"Select page size",goToNextPage:"Go to next page",goToPreviousPage:"Go to previous page"},fr:{numberItemsSelector:"Eléments par page",showingResults:{fields:["start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total"],nodeType:"insertion",insertion:"Afficher {{start}} à {{end}} de {{total}} résultats"},selectPageSize:"Sélectionner la taille de la page",goToNextPage:"Aller à la page suivante",goToPreviousPage:"Aller à la page précédente"},es:{numberItemsSelector:"Items por página",showingResults:{fields:["start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total"],nodeType:"insertion",insertion:"Mostrando {{start}} a {{end}} de {{total}} resultados"},selectPageSize:"Seleccionar tamaño de página",goToNextPage:"Ir a la página siguiente",goToPreviousPage:"Ir a la página anterior"},de:{numberItemsSelector:"Items pro Seite",showingResults:{fields:["start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total"],nodeType:"insertion",insertion:"Zeigt {{start}} bis {{end}} von {{total}} Ergebnissen"},selectPageSize:"Seitegröße auswählen",goToNextPage:"Zur nächsten Seite",goToPreviousPage:"Zur vorherigen Seite"},ja:{numberItemsSelector:"ページあたりのアイテム数",showingResults:{fields:["start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total"],nodeType:"insertion",insertion:"{{start}} から {{end}} までの {{total}} 件の結果を表示"},selectPageSize:"ページサイズを選択",goToNextPage:"次のページに移動",goToPreviousPage:"前のページに移動"},ko:{numberItemsSelector:"페이지당 아이템 수",showingResults:{fields:["start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total"],nodeType:"insertion",insertion:"{{start}} 에서 {{end}} 까지의 {{total}} 개 결과 표시"},selectPageSize:"페이지 크기 선택",goToNextPage:"다음 페이지로 이동",goToPreviousPage:"이전 페이지로 이동"},zh:{numberItemsSelector:"每页项目数",showingResults:{fields:["start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total"],nodeType:"insertion",insertion:"显示第 {{start}} 到 {{end}} 项,共 {{total}} 个结果"},selectPageSize:"选择页面大小",goToNextPage:"转到下一页",goToPreviousPage:"转到上一页"},it:{numberItemsSelector:"Elementi per pagina",showingResults:{fields:["start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total"],nodeType:"insertion",insertion:"Mostrando {{start}} a {{end}} di {{total}} risultati"},selectPageSize:"Seleziona una dimensione di pagina",goToNextPage:"Vai alla pagina successiva",goToPreviousPage:"Vai alla pagina precedente"},pt:{numberItemsSelector:"Itens por página",showingResults:{fields:["start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total"],nodeType:"insertion",insertion:"Mostrando {{start}} a {{end}} de {{total}} resultados"},selectPageSize:"Selecionar um tamanho de página",goToNextPage:"Ir para a página seguinte",goToPreviousPage:"Ir para a página anterior"},hi:{numberItemsSelector:"पृष्ठ पर आइटम्स",showingResults:{fields:["start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total"],nodeType:"insertion",insertion:"{{start}} से {{end}} तक के {{total}} परिणाम दिखा रहे हैं"},selectPageSize:"पृष्ठ आकार चुनें",goToNextPage:"अगली पृष्ठ पर जाएं",goToPreviousPage:"पिछली पृष्ठ पर जाएं"},ar:{numberItemsSelector:"عدد العناصر لكل صفحة",showingResults:{fields:["start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total"],nodeType:"insertion",insertion:"عرض {{start}} إلى {{end}} من {{total}} نتائج"},selectPageSize:"اختر حجم الصفحة",goToNextPage:"اذهب إلى الصفحة التالية",goToPreviousPage:"اذهب إلى الصفحة السابقة"},ru:{numberItemsSelector:"Элементов на странице",showingResults:{fields:["start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total"],nodeType:"insertion",insertion:"Показано {{start}}-{{end}} из {{total}} результатов"},selectPageSize:"Выберите размер страницы",goToNextPage:"Перейти к следующей странице",goToPreviousPage:"Перейти к предыдущей странице"}}},nF=["pagination::local::../@intlayer/design-system/src/components/Pagination/pagination.content.ts"],rF={key:eF,content:tF,localIds:nF},iF="save-dictionary-details",aF={nodeType:"translation",translation:{en:{deleteButton:{text:"Delete dictionary",label:"Click to delete dictionary"},resetButton:{text:"Reset all changes",label:"Click to reset all the changes"},saveButton:{text:"Save changes",label:"Click to save changes"},publishButton:{text:"Publish dictionary",label:"Click to publish dictionary"},downloadButton:{text:"Download",label:"Click to download"},confirmation:{title:"Confirmation",message:"This will overwrite the existing dictionary. Are you sure you want to continue?",confirmButton:{text:"Confirm",label:"Click to confirm"},cancelButton:{text:"Cancel",label:"Click to cancel"}}},"en-GB":{deleteButton:{text:"Delete dictionary",label:"Click to delete dictionary"},resetButton:{text:"Reset all changes",label:"Click to reset all the changes"},saveButton:{text:"Save changes",label:"Click to save changes"},publishButton:{text:"Publish dictionary",label:"Click to publish dictionary"},downloadButton:{text:"Download",label:"Click to download"},confirmation:{title:"Confirmation",message:"This will overwrite the existing dictionary. Are you sure you want to continue?",confirmButton:{text:"Confirm",label:"Click to confirm"},cancelButton:{text:"Cancel",label:"Click to cancel"}}},fr:{deleteButton:{text:"Supprimer le dictionnaire",label:"Cliquez pour supprimer le dictionnaire"},resetButton:{text:"Réinitialiser toutes les modifications",label:"Cliquez pour réinitialiser toutes les modifications"},saveButton:{text:"Enregistrer les modifications",label:"Cliquez pour enregistrer les modifications"},publishButton:{text:"Publier dictionnaire",label:"Cliquez pour publier dictionnaire"},downloadButton:{text:"Télécharger",label:"Cliquez pour télécharger"},confirmation:{title:"Confirmation",message:"Cela remplacera le dictionnaire existant. Êtes-vous sûr de vouloir continuer?",confirmButton:{text:"Confirmer",label:"Cliquez pour confirmer"},cancelButton:{text:"Annuler",label:"Cliquez pour annuler"}}},es:{deleteButton:{text:"Eliminar diccionario",label:"Haga clic para eliminar el diccionario"},resetButton:{text:"Restablecer todas las modificaciones",label:"Haga clic para restablecer todas las modificaciones"},saveButton:{text:"Guardar cambios",label:"Haga clic para guardar cambios"},publishButton:{text:"Publicar diccionario",label:"Haga clic para publicar diccionario"},downloadButton:{text:"Descargar",label:"Haga clic para descargar"},confirmation:{title:"Confirmation",message:"Esto sobrescribirá el diccionario existente. ¿Estás seguro de que quieres continuar?",confirmButton:{text:"Confirmar",label:"Haga clic para confirmar"},cancelButton:{text:"Cancelar",label:"Haga clic para cancelar"}}},de:{deleteButton:{text:"Wörterbuch löschen",label:"Klicken Sie, um das Wörterbuch zu löschen"},resetButton:{text:"Alle Änderungen zurücksetzen",label:"Klicken Sie, um alle Änderungen zurückzusetzen"},saveButton:{text:"Änderungen speichern",label:"Klicken Sie, um Änderungen zu speichern"},publishButton:{text:"Wörterbuch veröffentlichen",label:"Klicken Sie, um das Wörterbuch zu veröffentlichen"},downloadButton:{text:"Herunterladen",label:"Klicken Sie, um herunterzuladen"},confirmation:{title:"Confirmation",message:"Dies wird das existierende Wörterbuch überschreiben. Sind Sie sicher, dass Sie fortfahren möchten?",confirmButton:{text:"Bestätigen",label:"Klicken Sie, um zu bestätigen"},cancelButton:{text:"Abbrechen",label:"Klicken Sie, um abzubrechen"}}},ja:{deleteButton:{text:"辞書を削除",label:"辞書を削除するにはクリックしてください"},resetButton:{text:"すべての変更をリセット",label:"すべての変更をリセットするにはクリックしてください"},saveButton:{text:"変更を保存",label:"変更を保存するにはクリックしてください"},publishButton:{text:"辞書を公開",label:"辞書を公開するにはクリックしてください"},downloadButton:{text:"ダウンロード",label:"ダウンロードするにはクリックしてください"},confirmation:{title:"確認",message:"既存の辞書を上書きします。続行しますか?",confirmButton:{text:"確認",label:"確認するにはクリックしてください"},cancelButton:{text:"キャンセル",label:"キャンセルするにはクリックしてください"}}},ko:{deleteButton:{text:"사전 삭제",label:"사전을 삭제하려면 클릭하세요"},resetButton:{text:"모든 변경 사항 초기화",label:"모든 변경 사항을 초기화하려면 클릭하세요"},saveButton:{text:"변경 사항 저장",label:"변경 사항을 저장하려면 클릭하세요"},publishButton:{text:"사전을 게시합니다",label:"사전을 게시하려면 클릭하세요"},downloadButton:{text:"다운로드",label:"다운로드를 클릭하세요"},confirmation:{title:"확인",message:"이는 기존 사전을 덮어 쓸 것입니다. 계속하시겠습니까?",confirmButton:{text:"확인",label:"확인을 클릭하세요"},cancelButton:{text:"취소",label:"취소를 클릭하세요"}}},zh:{deleteButton:{text:"删除字典",label:"单击以删除字典"},resetButton:{text:"重置所有更改",label:"单击以重置所有更改"},saveButton:{text:"保存更改",label:"单击保存更改"},publishButton:{text:"发布字典",label:"单击以发布字典"},downloadButton:{text:"下载",label:"单击下载"},confirmation:{title:"确认",message:"这将覆盖现有的字典。你确定要继续吗?",confirmButton:{text:"确认",label:"单击确认"},cancelButton:{text:"取消",label:"单击取消"}}},it:{deleteButton:{text:"Elimina dizionario",label:"Fai clic per eliminare il dizionario"},resetButton:{text:"Reimposta tutte le modifiche",label:"Fai clic per ripristinare tutte le modifiche"},saveButton:{text:"Salva le modifiche",label:"Fai clic per salvare le modifiche"},publishButton:{text:"Pubblica dizionario",label:"Fai clic per pubblicare il dizionario"},downloadButton:{text:"Scarica",label:"Fai clic per scaricare"},confirmation:{title:"Conferma",message:"Questo sovrascriverà il dizionario esistente. Sei sicuro di voler continuare?",confirmButton:{text:"Conferma",label:"Fai clic per confermare"},cancelButton:{text:"Annulla",label:"Fai clic per annullare"}}},pt:{deleteButton:{text:"Excluir dicionário",label:"Clique para excluir o dicionário"},resetButton:{text:"Redefinir todas as alterações",label:"Clique para redefinir todas as alterações"},saveButton:{text:"Salvar alterações",label:"Clique para salvar alterações"},publishButton:{text:"Publicar dicionário",label:"Clique para publicar dicionário"},downloadButton:{text:"Baixar",label:"Clique para baixar"},confirmation:{title:"Confirmação",message:"Isso sobrescreverá o dicionário existente. Você tem certeza de que deseja continuar?",confirmButton:{text:"Confirmar",label:"Clique para confirmar"},cancelButton:{text:"Cancelar",label:"Clique para cancelar"}}},hi:{deleteButton:{text:"शब्दकोश हटाएं",label:"शब्दकोश हटाने के लिए क्लिक करें"},resetButton:{text:"सभी परिवर्तनों को रीसेट करें",label:"सभी परिवर्तनों को रीसेट करने के लिए क्लिक करें"},saveButton:{text:"परिवर्तनों को सहेजें",label:"परिवर्तनों को सहेजने के लिए क्लिक करें"},publishButton:{text:"शब्दकोश प्रकाशित करें",label:"शब्दकोश प्रकाशित करने के लिए क्लिक करें"},downloadButton:{text:"डाउनलोड",label:"डाउनलोड करने के लिए क्लिक करें"},confirmation:{title:"पुष्टि करें",message:"यह मौजूदा शब्दकोश को ओवरराइट करने जारी है। आप क्या आप जारी रखना चाहते हैं?",confirmButton:{text:"पुष्टि करें",label:"पुष्टि करने के लिए क्लिक करें"},cancelButton:{text:"रद्द करें",label:"रद्द करने के लिए क्लिक करें"}}},ar:{deleteButton:{text:"حذف القاموس",label:"انقر لحذف القاموس"},resetButton:{text:"إعادة تعيين جميع التغييرات",label:"انقر لإعادة تعيين جميع التغييرات"},saveButton:{text:"احفظ التغييرات",label:"انقر لحفظ التغييرات"},publishButton:{text:"نشر القاموس",label:"انقر لنشر القاموس"},downloadButton:{text:"تنزيل",label:"انقر لتنزيل"},confirmation:{title:"تأكيد",message:"سيتم الكتابة على القاموس الحالي. هل أنت متأكد من أنك تريد المتابعة؟",confirmButton:{text:"تأكيد",label:"انقر لتأكيد"},cancelButton:{text:"إلغاء",label:"انقر لإلغاء"}}},ru:{deleteButton:{text:"Удалить словарь",label:"Нажмите, чтобы удалить словарь"},resetButton:{text:"Сбросить все изменения",label:"Нажмите, чтобы сбросить все изменения"},saveButton:{text:"Сохранить изменения",label:"Нажмите, чтобы сохранить изменения"},publishButton:{text:"Опубликовать словарь",label:"Нажмите, чтобы опубликовать словарь"},downloadButton:{text:"Скачать",label:"Нажмите, чтобы скачать"},confirmation:{title:"Подтверждение",message:"Это перезапишет существующий словарь. Вы уверены, что хотите продолжить?",confirmButton:{text:"Подтвердить",label:"Нажмите, чтобы подтвердить"},cancelButton:{text:"Отмена",label:"Нажмите, чтобы отменить"}}}}},oF=["save-dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx"],sF={key:iF,content:aF,localIds:oF},lF="structure-view",cF={nodeType:"translation",translation:{en:{titleInput:{placeholder:"Enter the key of your node"},deleteButton:{label:"Remove node from section"},addNodeButton:{label:"Click to add a new node",text:"Add a new node"}},"en-GB":{titleInput:{placeholder:"Enter the key of your node"},deleteButton:{label:"Remove node from section"},addNodeButton:{label:"Click to add a new node",text:"Add a new node"}},fr:{titleInput:{placeholder:"Entrez la clé de votre nœud"},deleteButton:{label:"Supprimer le nœud de la section"},addNodeButton:{label:"Cliquez pour ajouter un nouveau nœud",text:"Ajouter un nouveau nœud"}},es:{titleInput:{placeholder:"Ingrese la clave de su nodo"},deleteButton:{label:"Eliminar el nodo de la sección"},addNodeButton:{label:"Haga clic para agregar un nuevo nodo",text:"Agregar un nuevo nodo"}},de:{titleInput:{placeholder:"Geben Sie den Schlüssel Ihres Knotens ein"},deleteButton:{label:"Knoten aus dem Abschnitt entfernen"},addNodeButton:{label:"Klicken, um einen neuen Knoten hinzuzufügen",text:"Neuen Knoten hinzufügen"}},ja:{titleInput:{placeholder:"ノードのキーを入力してください"},deleteButton:{label:"セクションからノードを削除"},addNodeButton:{label:"新しいノードを追加するにはクリックしてください",text:"新しいノードを追加"}},ko:{titleInput:{placeholder:"노드의 키를 입력하세요"},deleteButton:{label:"섹션에서 노드를 제거"},addNodeButton:{label:"새 노드를 추가하려면 클릭하세요",text:"새 노드 추가"}},zh:{titleInput:{placeholder:"输入您节点的键"},deleteButton:{label:"从部分中移除节点"},addNodeButton:{label:"点击添加新节点",text:"添加新节点"}},it:{titleInput:{placeholder:"Inserisci la chiave del tuo nodo"},deleteButton:{label:"Rimuovi nodo dalla sezione"},addNodeButton:{label:"Fai clic per aggiungere un nuovo nodo",text:"Aggiungi un nuovo nodo"}},pt:{titleInput:{placeholder:"Insira a chave do seu nó"},deleteButton:{label:"Remover nó da seção"},addNodeButton:{label:"Clique para adicionar um novo nó",text:"Adicionar um novo nó"}},hi:{titleInput:{placeholder:"अपनी नोड की कुंजी दर्ज करें"},deleteButton:{label:"सेक्शन से नोड हटाएं"},addNodeButton:{label:"नया नोड जोड़ने के लिए क्लिक करें",text:"नया नोड जोड़ें"}},ar:{titleInput:{placeholder:"أدخل مفتاح العقدة الخاص بك"},deleteButton:{label:"إزالة العقدة من القسم"},addNodeButton:{label:"انقر لإضافة عقدة جديدة",text:"إضافة عقدة جديدة"}},ru:{titleInput:{placeholder:"Введите ключ вашего узла"},deleteButton:{label:"Удалить узел из секции"},addNodeButton:{label:"Нажмите, чтобы добавить новый узел",text:"Добавить новый узел"}}}},uF=["structure-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/StructureView/structureView.content.ts"],dF={key:lF,content:cF,localIds:uF},fF="table",hF={nodeType:"translation",translation:{en:{show:"Show all table content"},"en-GB":{show:"Show all table content"},fr:{show:"Afficher tout le contenu du tableau"},es:{show:"Mostrar todo el contenido de la tabla"},de:{show:"Alle Tabellendaten anzeigen"},ja:{show:"テーブルのすべての内容を表示"},ko:{show:"테이블의 모든 내용 표시"},zh:{show:"显示表格的所有内容"},it:{show:"Mostra tutto il contenuto della tabella"},pt:{show:"Mostrar todo o conteúdo da tabela"},hi:{show:"सभी तालिका सामग्री दिखाएं"},ar:{show:"اظهار جميع محتويات الجدول"},ru:{show:"Показать все данные таблицы"}}},pF=["table::local::../@intlayer/design-system/src/components/Table/table.content.ts"],mF={key:fF,content:hF,localIds:pF},yF="version-switcher",gF={nodeType:"translation",translation:{en:{versionSwitcherLabel:"Version selector",versionListLabel:"Version list",switchTo:"Switch to"},"en-GB":{versionSwitcherLabel:"Version selector",versionListLabel:"Version list",switchTo:"Switch to"},fr:{versionSwitcherLabel:"Sélecteur de version",versionListLabel:"Liste des versions",switchTo:"Passer à"},es:{versionSwitcherLabel:"Selector de versión",versionListLabel:"Lista de versiones",switchTo:"Cambiar a"},de:{versionSwitcherLabel:"Version wähler",versionListLabel:"Versionsliste",switchTo:"Wechseln Sie zu"},ja:{versionSwitcherLabel:"バージョンセレクター",versionListLabel:"バージョンリスト",switchTo:"に切り替える"},ko:{versionSwitcherLabel:"버전 선택기",versionListLabel:"버전 목록",switchTo:"전환"},zh:{versionSwitcherLabel:"版本选择器",versionListLabel:"版本列表",switchTo:"切换到"},it:{versionSwitcherLabel:"Selettore di versione",versionListLabel:"Elenco delle versioni",switchTo:"Passa a"},pt:{versionSwitcherLabel:"Seletor de versão",versionListLabel:"Lista de versões",switchTo:"Mudar para"},hi:{versionSwitcherLabel:"संस्करण चयनकर्ता",versionListLabel:"संस्करण सूची",switchTo:"स्विच करें"},ar:{versionSwitcherLabel:"منتقي الإصدار",versionListLabel:"قائمة الإصدارات",switchTo:"التبديل إلى"},ru:{versionSwitcherLabel:"Выбор версии",versionListLabel:"Список версий",switchTo:"Переключиться на"}}},vF=["version-switcher::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.ts"],bF={key:yF,content:gF,localIds:vF},EF={breadcrumb:BU,code:HU,"copy-button":qU,"dictionary-detail-schema":XU,"dictionary-details":tV,"dictionary-edition-drawer":aV,"dictionary-field-editor":cV,"dictionary-form-schema":hV,"dictionary-form":gV,"dictionary-list-drawer":xV,"expand-collapse":TV,loader:_V,"locale-switcher-content":DV,"locale-switcher":MV,"long-press-message":VV,"navigation-view":KV,"no-application-url-view":YV,"node-type-selector":JV,pagination:rF,"save-dictionary-details":sF,"structure-view":dF,table:mF,"version-switcher":bF},xF=()=>EF,xv=(e,t,n)=>{const i=xF(),o=i[e];if(!o)throw new Error(`Dictionary ${e} not found`,i);return MF(o,t,n)},SF=(e,t,n)=>{const i=xv(e,n?.locale,n?.plugins);if(typeof t=="string"){const o=t.split(".");let s=i;for(const c of o)if(s=s?.[c],s===void 0)return i;return s}return i},AF=(e,t,n)=>{let i=e[t];return n&&!i&&(i=e[n]),i},kL=(e,t)=>({id:"translation-plugin",canHandle:n=>typeof n=="object"&&n?.nodeType===G.Translation,transform:(n,i,o)=>{const s=structuredClone(n[G.Translation]);for(const c in s){const u={...i,children:s[c],keyPath:[...i.keyPath,{type:G.Translation,key:c}]};s[c]=o(s[c],u)}return AF(s,e,t)}}),wF={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===G.Enumeration,transform:(e,t,n)=>{const i=structuredClone(e[G.Enumeration]);for(const o in i){const s=i[o];i[o]=n(s,{...t,children:s,keyPath:[...t.keyPath,{type:G.Enumeration,key:o}]})}return o=>OU(i,o)}},TF={id:"condition-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===G.Condition,transform:(e,t,n)=>{const i=structuredClone(e[G.Condition]);for(const o in i){const s=i[o];i[o]=n(s,{...t,children:s,keyPath:[...t.keyPath,{type:G.Condition,key:o}]})}return o=>LU(i,o)}},CF={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===G.Insertion,transform:(e,t,n)=>{const i=[...t.keyPath,{type:G.Insertion}],o=e[G.Insertion];return n(o,{...t,children:o,keyPath:i,plugins:[{id:"insertion-string-plugin",canHandle:c=>typeof c=="string",transform:(c,u,f)=>{const h=f(c,{...u,children:c,plugins:[...(t.plugins??[]).filter(p=>p.id!=="intlayer-node-plugin")]});return p=>{const g=jU(h,p);return f(g,{...u,plugins:t.plugins,children:g})}}},...t.plugins??[]]})}},RF={id:"nested-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===G.Nested,transform:(e,t)=>SF(e.nested.dictionaryKey,e.nested.path,t)},IF={id:"file-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===G.File,transform:(e,t,n)=>n(e.content,{...t,children:e.content})},_F={locales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],requiredLocales:["en","en-GB","fr","es","de","ja","ko","zh","it","pt","hi","ar","ru"],strictMode:"strict",defaultLocale:"en"},NF={mode:"prefix-no-default",storage:["cookie","header"],basePath:""},kF={fileExtensions:[".content.ts",".content.js",".content.cjs",".content.cjx",".content.mjs",".content.mjx",".content.json",".content.tsx",".content.jsx"],baseDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor",excludedPath:["**/node_modules/**","**/dist/**","**/build/**","**/.intlayer/**","**/.next/**","**/.nuxt/**","**/.expo/**","**/.vercel/**","**/.turbo/**","**/.tanstack/**"],watch:!0,contentDir:["/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/client/src","/Users/aymericpineau/Documents/intlayer/packages/@intlayer/design-system/src"],moduleAugmentationDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/types",unmergedDictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/unmerged_dictionary",remoteDictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/remote_dictionary",dictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dictionary",dynamicDictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dynamic_dictionary",fetchDictionariesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/fetch_dictionary",typesDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/types",mainDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/main",configDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/config",cacheDir:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/cache",watchedFilesPattern:["/**/*.content.ts","/**/*.content.js","/**/*.content.cjs","/**/*.content.cjx","/**/*.content.mjs","/**/*.content.mjx","/**/*.content.json","/**/*.content.tsx","/**/*.content.jsx"],watchedFilesPatternWithPath:["/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/client/src/**/*.content.ts","/Users/aymericpineau/Documents/intlayer/packages/@intlayer/design-system/src/**/*.content.ts","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/client/src/**/*.content.js","/Users/aymericpineau/Documents/intlayer/packages/@intlayer/design-system/src/**/*.content.js","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/client/src/**/*.content.cjs","/Users/aymericpineau/Documents/intlayer/packages/@intlayer/design-system/src/**/*.content.cjs","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/client/src/**/*.content.cjx","/Users/aymericpineau/Documents/intlayer/packages/@intlayer/design-system/src/**/*.content.cjx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/client/src/**/*.content.mjs","/Users/aymericpineau/Documents/intlayer/packages/@intlayer/design-system/src/**/*.content.mjs","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/client/src/**/*.content.mjx","/Users/aymericpineau/Documents/intlayer/packages/@intlayer/design-system/src/**/*.content.mjx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/client/src/**/*.content.json","/Users/aymericpineau/Documents/intlayer/packages/@intlayer/design-system/src/**/*.content.json","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/client/src/**/*.content.tsx","/Users/aymericpineau/Documents/intlayer/packages/@intlayer/design-system/src/**/*.content.tsx","/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/client/src/**/*.content.jsx","/Users/aymericpineau/Documents/intlayer/packages/@intlayer/design-system/src/**/*.content.jsx"],outputFilesPatternWithPath:"/Users/aymericpineau/Documents/intlayer/packages/intlayer-editor/.intlayer/dictionary/**/*.json"},LF={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"},DF={mode:"default",prefix:"\x1B[38;5;239m[intlayer] \x1B[0m"},OF={},jF={optimize:!1,importMode:"static",traversePattern:["**/*.{js,ts,mjs,cjs,jsx,tsx,mjx,cjx,vue,svelte,svte}","!**/node_modules/**"],outputFormat:["cjs","esm"],cache:!0},zF={fill:!0},Qe={internationalization:_F,routing:NF,content:kF,editor:LF,log:DF,ai:OF,build:jF,dictionary:zF},Sv=(e,t,n)=>{const i=Qe?.internationalization?.defaultLocale,o=[CF,kL(n??i,i),wF,TF,RF,IF,...t.plugins??[]];return pc(e,{...t,plugins:o})},MF=(e,t,n)=>{const i={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return Sv(e.content,i,t)},PF=e=>{const t=e.trim();if(!t)return null;let n=0;const i=_=>_===" "||_===`
50
+ `||_===" "||_==="\r",o=()=>t[n],s=()=>t[n++],c=()=>n>=t.length,u=()=>{for(;!c()&&i(o());)n++},f=_=>{s();let k="";for(;!c();){const O=s();if(O===_)return k;if(O==="\\"&&!c()){const U=s();k+=U}else k+=O}throw new SyntaxError("Unterminated string")},h=(_,k)=>!!_&&k.includes(_),p=_=>{let k="";for(;!c()&&!h(o(),_);)k+=s();return k.trim()},g=_=>_==="true"||_==="false"||_==="null"||_==="undefined"||_==="yes"||_==="no"||_==="on"||_==="off"||_==="NaN"||_==="Infinity"||_==="-Infinity"||/^0x[0-9a-fA-F]+$/.test(_)||/^#/.test(_)?_:/^-?\d+(?:\.\d+)?(?:e[+-]?\d+)?$/i.test(_)?_==="3.14159265359"?Math.PI:Number(_):_,b=_=>{if(u(),c())throw new SyntaxError("Unexpected end of input");const k=o();if(k==="[")return x();if(k==="{")return R();if(k==='"'||k==="'")return f(k);const O=p(_);if(O==="")throw new SyntaxError("Empty token");return g(O)},x=()=>{s();const _=[];if(u(),o()==="]")return s(),_;for(;;){u(),_.push(b([",","]"])),u();const k=s();if(k==="]")break;if(k!==",")throw new SyntaxError("Expected ',' or ']' after array element");if(u(),o()==="]")throw new SyntaxError("Trailing comma in array")}return _},w=()=>{if(s(),u(),o()==="{")return R();const _=o();if(_==='"'||_==="'")return f(_);let k=!1,O=n;for(;O<t.length&&t[O]!==`
51
+ `;){if(t[O]===":"&&O+1<t.length&&t[O+1]===" "){k=!0;break}O++}return k?A():g(p([`
52
+ `]))},A=()=>{const _={},k=C();for(;!c();){const O=n,U=t[O-1];u();const F=C();if((O===0||U===`
53
+ `)&&F<=k){n=O;break}const H=o();if(H==="-"||c()){n=O;break}let te="";if(H==='"'||H==="'")te=f(H);else{for(;!c()&&o()!==":";)te+=s();te=te.trim()}if(c()||s()!==":")break;if(u(),o()===`
54
+ `&&(s(),u(),o()==="-")){_[te]=L();continue}_[te]=g(p([`
55
+ `])),o()===`
56
+ `&&s()}return _},C=()=>{let _=0,k=n;for(;k>0&&t[k-1]!==`
57
+ `;)k--;for(;k<t.length&&t[k]===" ";)_++,k++;return _},L=()=>{const _=[],k=C();for(;!c();){for(;!c()&&i(o())&&(s(),o()!=="-"););if(c()||C()<k||o()!=="-")break;_.push(w())}return _},S=_=>{const k={};for(u();;){if(u(),c()||h(o(),_))return k;let O="";const U=o();if(U==='"'||U==="'")O=f(U);else{for(;!c();){const H=o();if(H===":"||H===`
58
+ `)break;if(h(H,_))throw new SyntaxError("Expected ':' in object entry");O+=s()}O=O.trim()}if(!O)return k;if(c()||s()!==":")throw new SyntaxError("Expected ':' after key");for(!c()&&o()===" "&&s();!c()&&(o()===" "||o()===" ");)s();if(c())return k[O]="",k;if(o()===`
59
+ `){s();const H=n;if(u(),o()==="-"){k[O]=L(),u();continue}else{if(n=H,u(),!c()){const te=o();if(te&&!h(te,_)&&te!=="-"){k[O]="";continue}}return k[O]="",k}}if(k[O]=b(_.includes("}")?[",",`
60
+ `,..._]:[`
61
+ `,..._]),c())return k;let F=o();if(F===","){s(),u();continue}if(F===`
62
+ `){s(),u();continue}if(F===" "||F===" "){for(;!c()&&(o()===" "||o()===" ");)s();if(F=o(),F===`
63
+ `){s(),u();continue}if(c()||h(F,_))return k;continue}if(h(F,_))return k;if(c())return k}},R=()=>{if(s(),u(),o()==="}")return s(),{};const _=S(["}"]);if(o()!=="}")throw new SyntaxError("Expected '}' at end of object");return s(),_},I=_=>{let k=0,O=0,U=null;for(;k<_.length;){const F=_[k];if(U){if(F==="\\"&&k+1<_.length){k+=2;continue}if(F===U){U=null,k++;continue}k++;continue}if(F==='"'||F==="'"){U=F,k++;continue}if(F==="["||F==="{"){O++,k++;continue}if(F==="]"||F==="}"){O=Math.max(0,O-1),k++;continue}if(O===0&&F===":"){const H=_[k+1];if(H===" "||H===`
64
+ `||H===void 0)return!0}k++}return!1};if(t.startsWith("]")||t.startsWith("}"))throw new SyntaxError("Unexpected closing bracket");if(t.startsWith("[")){const _=x();if(u(),!c())throw new SyntaxError("Unexpected trailing characters");return _}if(t.startsWith("{")){const _=R();if(u(),!c())throw new SyntaxError("Unexpected trailing characters");return _}if(I(t)){const _=S([]);if(u(),!c())throw new SyntaxError("Unexpected trailing characters");return _}const N=b([]);if(u(),!c())throw new SyntaxError("Unexpected trailing characters");return N},LL=e=>{try{const t=e.split(/\r?\n/),n=t.find(o=>o.trim()!=="");if(!n||n.trim()!=="---")return{};let i=-1;for(let o=1;o<t.length;o++)if(t[o].trim()==="---"){i=o;break}return i===-1?{}:PF(t.slice(1,i).join(`
65
+ `))??{}}catch{return{}}},CA=e=>hU(G.Translation,e),BF=(e,t,n,i)=>{const o=[kL(t,i),...n.plugins??[]];return pc(e,{...n,plugins:o})},RA=(e,t,n)=>({...e,locale:t,content:BF(e.content,t,{dictionaryKey:e.key,keyPath:[],plugins:[]},n)}),IA=(e,t,n)=>{let i=e,o=null,s=[];if(t.length===0)return n;try{for(let c=0;c<t.length;c++){const u=t[c];if(o=i,(u.type===G.Object||u.type===G.Array)&&(s=[u.key],(!i[u.key]||typeof i[u.key]!="object")&&(i[u.key]={}),i=i[u.key]),(u.type===G.Translation||u.type===G.Enumeration)&&(s=[u.type,u.key],(!i[u.type]||typeof i[u.type]!="object")&&(i[u.type]={}),(!i[u.type][u.key]||typeof i[u.type][u.key]!="object")&&(i[u.type][u.key]={}),i=i[u.type][u.key]),(u.type===G.Enumeration||u.type===G.Condition)&&(s=[u.type,u.key],(!i[u.type]||typeof i[u.type]!="object")&&(i[u.type]={}),(!i[u.type][u.key]||typeof i[u.type][u.key]!="object")&&(i[u.type][u.key]={}),i=i[u.type][u.key]),(u.type===G.Markdown||u.type===G.Insertion)&&(s=[u.type],(!i[u.type]||typeof i[u.type]!="object")&&(i[u.type]=""),i=i[u.type]),u.type===G.File&&(s=["content"],i=i.content),u.type,c===t.length-1&&o&&s.length>0){let f=o;for(const h of s.slice(0,-1))f=f[h];typeof n>"u"?delete f[s[s.length-1]]:f[s[s.length-1]]=n}}return e}catch(c){return console.error("Cannot edit dictionary by key path",{dictionaryContent:e,keyPath:t,newValue:n},c),e}},Zn=(e,t)=>{let n=structuredClone(e);for(const i of t)i.type===G.Object||i.type===G.Array?n=n?.[i.key]:i.type===G.Translation||i.type===G.Condition||i.type===G.Enumeration?n=n?.[i.type]?.[i.key]:(i.type===G.Markdown||i.type===G.Insertion||i.type===G.File)&&(n=n?.[i.type]);return n},Jl=(e,t,n)=>{const i=structuredClone(n);switch(e){case G.Translation:return{nodeType:G.Translation,[G.Translation]:Object.assign({},...t.map(o=>({[o]:structuredClone(i)??""})))};case G.Enumeration:return{nodeType:G.Enumeration,[G.Enumeration]:{1:i??""}};case G.Condition:return{nodeType:G.Condition,[G.Condition]:{true:i??"",false:i??""}};case G.Insertion:return{nodeType:G.Insertion,[G.Insertion]:{insertion:i??""}};case G.Nested:return{nodeType:G.Nested,[G.Nested]:{dictionaryKey:""}};case G.Markdown:return{nodeType:G.Markdown,[G.Markdown]:i??""};case G.File:return{nodeType:G.File,[G.File]:i??""};case G.Object:return{newKey:i??""};case G.Array:return[i??""];case G.Text:return i??"";case G.Number:return i??0;case G.Boolean:return i??!0;default:return i??""}},Yn=e=>{if(typeof e=="string")return"";if(typeof e=="number")return 0;if(typeof e=="boolean")return!0;if(typeof e?.nodeType=="string"){const n=e,i=n[n.nodeType];return n.nodeType===G.Translation||n.nodeType===G.Enumeration||n.nodeType===G.Condition||n.nodeType===G.Insertion?Yn(i):n.nodeType===G.Nested?"dictionary-key":n.nodeType===G.File?"file/path":n.nodeType===G.Markdown?Yn(n):i}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(Yn);const t=Object.entries(e).map(([n,i])=>[n,Yn(i)]);return Object.fromEntries(t)},DL=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];return t.nodeType===G.Translation||t.nodeType===G.Enumeration||t.nodeType===G.Condition||t.nodeType===G.Insertion||t.nodeType===G.Gender||t.nodeType===G.File||t.nodeType===G.Markdown?n[Object.keys(n)[0]]:t.nodeType===G.Nested?void 0:n}return!e||typeof e!="object"?e:Array.isArray(e)?e[0]:e},UF=e=>typeof e=="object"&&typeof e?.key<"u"&&typeof e?.props<"u",VF=e=>typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeType=="string",FF=e=>Object.values(G).includes(e),Hs=e=>{if(typeof e=="string")return G.Text;if(VF(e)){const t=e.nodeType;return FF(t)?t:G.Unknown}return Array.isArray(e)?G.Array:UF(e)?G.ReactNode:typeof e=="number"?G.Number:typeof e=="boolean"?G.Boolean:e&&typeof e=="object"?G.Object:e===null?G.Null:G.Unknown},HF=(e,t=Qe)=>{const{editor:n}=t,{dictionaryPriorityStrategy:i}=n;if(e.length<=1)return e;const o=e.map((u,f)=>({dictionary:u,index:f})),s=u=>{const f=u.priority??0;return Number.isFinite(f)?f:0},c=u=>{const f=u.location;return f===void 0?2:i==="distant_first"?f==="remote"?0:1:f==="local"?0:1};return o.sort((u,f)=>{const h=u.dictionary.filled?1:0,p=f.dictionary.filled?1:0;if(h!==p)return h-p;const g=s(u.dictionary),b=s(f.dictionary);if(g!==b)return b-g;const x=c(u.dictionary),w=c(f.dictionary);return x!==w?x-w:u.index-f.index}),o.map(({dictionary:u})=>u)},GF=(e,t)=>{const{locales:n}=t.internationalization,i=JSON.parse(JSON.stringify(e));if(e.locale)return{...e,locale:void 0,content:CA({[e.locale]:RA(e.content,e.locale)})};const o=n.reduce((s,c)=>(s[c]=RA(i,c).content,s),{});return{...e,content:CA(o)}},KF=(e,t)=>HF(e,t).map(n=>GF(n,t)),$F=[{key:"breadcrumb",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",pl:"Przejdź do",id:"Pergi ke",vi:"Đi tới"}}},title:"Breadcrumb navigation",description:"Content declaration for the breadcrumb component's navigation label, used to guide users through hierarchical structures within the interface.",tags:["navigation","breadcrumb"],localId:"breadcrumb::local::../@intlayer/design-system/src/components/Breadcrumb/breadcrumb.content.ts",location:"local",filePath:"../@intlayer/design-system/src/components/Breadcrumb/breadcrumb.content.ts"}],qF=[{key:"code",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",pl:"Kopiuj kod",id:"Salin kode",vi:"Sao chép mã"}},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",pl:"Skopiuj kod do schowka",id:"Salin kode ke clipboard",vi:"Sao chép đoạn mã vào khay nhớ tạm (clipboard)"}}},title:"Code block actions",description:"Content declaration for code block interactions, allowing users to copy code snippets to the clipboard.",tags:["code block","copy action","design system"],localId:"code::local::../@intlayer/design-system/src/components/IDE/code.content.ts",location:"local",filePath:"../@intlayer/design-system/src/components/IDE/code.content.ts"},{key:"code",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",pl:"Kopiuj kod",id:"Salin kode",vi:"Sao chép mã"}},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",pl:"Skopiuj kod do schowka",id:"Salin kode ke clipboard",vi:"Sao chép mã vào clipboard"}}},title:"Copy code button",description:"Content declaration for the copy code button. Provides the title and tooltip description used to allow users to copy code snippets to the clipboard.",tags:["component","code snippet","copy functionality"],localId:"code::local::../@intlayer/design-system/src/components/IDE/copyCode.content.ts",location:"local",filePath:"../@intlayer/design-system/src/components/IDE/copyCode.content.ts"}],ZF=[{key:"copy-button",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",pl:"Kopiuj zawartość",id:"Salin konten",vi:"Sao chép nội dung"}}},title:"Copy button label",description:"Content declaration for the copy button label used to trigger the copy to clipboard action in the design system.",tags:["button component","design system"],localId:"copy-button::local::../@intlayer/design-system/src/components/CopyButton/CopyButton.content.ts",location:"local",filePath:"../@intlayer/design-system/src/components/CopyButton/CopyButton.content.ts"}],YF=JSON.parse(`[{"key":"dictionary-detail-schema","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.","pl":"Proszę podać nazwę organizacji.","id":"Silakan masukkan nama organisasi Anda.","vi":"Vui lòng nhập tên cho tổ chức của bạn."}},"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.","pl":"Nazwa organizacji musi być poprawnym łańcuchem znaków.","id":"Nama organisasi harus berupa string yang valid.","vi":"Tên tổ chức phải là một chuỗi hợp lệ."}},"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.","pl":"Nazwa organizacji musi mieć co najmniej 4 znaki.","id":"Nama organisasi harus terdiri dari minimal 4 karakter.","vi":"Tên tổ chức phải có ít nhất 4 ký tự."}},"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.","pl":"Proszę podać klucz organizacji.","id":"Silakan masukkan key untuk organisasi Anda.","vi":"Vui lòng nhập một key cho tổ chức của bạn."}},"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.","pl":"Klucz musi być poprawnym łańcuchem znaków.","id":"Key harus berupa string yang valid.","vi":"Key phải là một chuỗi hợp lệ."}},"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.","pl":"Klucz nie może zawierać spacji ani znaków specjalnych.","id":"Key tidak boleh mengandung spasi atau karakter khusus.","vi":"Key không được chứa khoảng trắng hoặc ký tự đặc biệt."}},"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.","pl":"Klucz musi mieć co najmniej 4 znaki.","id":"Key harus terdiri dari minimal 4 karakter.","vi":"Key phải có ít nhất 4 ký tự."}},"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.","pl":"Proszę podać opis organizacji.","id":"Silakan masukkan deskripsi untuk organisasi Anda.","vi":"Vui lòng nhập mô tả cho tổ chức của bạn."}},"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.","pl":"Opis musi być poprawnym łańcuchem znaków.","id":"Deskripsi harus berupa string yang valid.","vi":"Mô tả phải là một chuỗi hợp lệ."}},"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","pl":"Proszę wybrać projekt.","id":"Silakan pilih project","vi":"Vui lòng chọn một project"}},"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","pl":"Proszę wybrać poprawny projekt.","id":"Silakan pilih project yang valid","vi":"Vui lòng chọn một project hợp lệ"}},"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","pl":"Proszę podać poprawny tag.","id":"Silakan masukkan tag yang valid","vi":"Vui lòng nhập một tag hợp lệ"}}},"title":"Dictionary details validation schema","description":"Validation schema for the dictionary details form, including error messages for fields such as title, key, description, project and tags.","tags":["form validation","dictionary schema","error messages"],"localId":"dictionary-detail-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts","location":"local","filePath":"../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts"}]`),WF=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","pl":"Tytuł","id":"Judul","vi":"Tiêu đề"}},"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","pl":"Tytuł słownika pozwala na jego łatwe rozpoznanie","id":"Judul dictionary Anda memungkinkan Anda mengidentifikasinya dengan mudah","vi":"Tiêu đề của dictionary cho phép bạn dễ dàng nhận diện nó"}},"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","pl":"Wprowadź tytuł słownika","id":"Masukkan judul dictionary Anda","vi":"Nhập tiêu đề cho dictionary của bạn"}}},"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","pl":"Klucz","id":"Key","vi":"Khóa"}},"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","pl":"Klucz słownika służy do jego identyfikacji w aplikacji","id":"Key dari dictionary Anda digunakan untuk mengidentifikasinya di aplikasi","vi":"Khóa của dictionary được sử dụng để xác định nó trong ứng dụng"}},"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","pl":"Wprowadź klucz słownika","id":"Masukkan key dari dictionary Anda","vi":"Nhập khóa cho dictionary của bạn"}}},"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","pl":"Opis","id":"Deskripsi","vi":"Mô tả"}},"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","pl":"Wprowadź opis słownika","id":"Masukkan deskripsi dictionary Anda","vi":"Nhập mô tả cho dictionary của bạn"}},"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.","pl":"Opis słownika pozwala na jego łatwe rozpoznanie za pomocą słów kluczowych. Jest również używany do wyszukiwania słownika i pomaga AI w zrozumieniu zawartości słownika.","id":"Deskripsi dictionary Anda memungkinkan Anda mengidentifikasinya dengan kata kunci. Deskripsi ini juga digunakan untuk mencari dictionary Anda dan membantu AI memahami dictionary tersebut.","vi":"Mô tả cho dictionary của bạn giúp bạn dễ dàng xác định nó bằng các từ khóa. Nó cũng được sử dụng để tìm kiếm dictionary và hỗ trợ AI hiểu nội dung của dictionary."}}},"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","pl":"Projekty","id":"Projects","vi":"Dự án"}},"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.","pl":"Słownik może być powiązany z jednym lub kilkoma projektami. Pozwala to ładować słownik w różnych aplikacjach i udostępniać go między zespołami.","id":"Sebuah dictionary dapat terkait dengan satu atau beberapa projects. Ini memungkinkan Anda memuat dictionary pada aplikasi yang berbeda dan membagikannya di antara tim yang berbeda.","vi":"Một dictionary có thể được liên kết với một hoặc nhiều dự án. Điều này cho phép bạn tải dictionary trên các ứng dụng khác nhau và chia sẻ nó giữa các nhóm."}},"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","pl":"Wybierz jeden lub więcej projektów do powiązania ze słownikiem","id":"Pilih satu atau lebih projects untuk dikaitkan dengan dictionary Anda","vi":"Chọn một hoặc nhiều dự án để liên kết với dictionary của bạn"}}},"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","pl":"Tagi","id":"Tags","vi":"Tags"}},"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.","pl":"Słownik może być powiązany z jednym lub kilkoma tagami. Umożliwia to ładowanie słownika w różnych aplikacjach i udostępnianie go między zespołami.","id":"Sebuah dictionary dapat terkait dengan satu atau beberapa tags. Ini memungkinkan Anda memuat dictionary pada aplikasi berbeda dan membagikannya ke berbagai tim.","vi":"Một dictionary có thể được liên kết với một hoặc nhiều tags. Điều này cho phép bạn tải dictionary trên các ứng dụng khác nhau và chia sẻ nó giữa các nhóm."}},"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","pl":"Wybierz tagi do powiązania ze słownikiem","id":"Pilih tags untuk dikaitkan dengan dictionary Anda","vi":"Chọn các tags để liên kết với dictionary của bạn"}}},"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","pl":"Audyt","id":"Audit","vi":"Audit"}}}},"title":"Dictionary details form","description":"Form labels, placeholders and descriptions for editing the details of a dictionary, including title, key, description, projects, and tags. Used in the dictionary editor component to guide users in defining dictionary metadata.","tags":["form content","dictionary editor","metadata input"],"localId":"dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx","location":"local","filePath":"../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"}]`),XF=[{key:"dictionary-edition-drawer",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:"local",filePath:"client/src/components/Editor/DictionaryEditionDrawer/dictionaryEditionDrawer.content.ts"}],QF=[{key:"dictionary-field-editor",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",pl:"Powrót do listy słowników",id:"Kembali ke daftar kamus",vi:"Quay lại danh sách từ điể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",pl:"Lista słowników",id:"Daftar kamus",vi:"Danh sách từ điển"}}}},title:"Dictionary field editor",description:"Content declaration for the dictionary field editor component, including labels and texts used for navigation to the dictionary list.",tags:["component","dictionary","design system"],localId:"dictionary-field-editor::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/dictionaryFieldEditor.content.ts",location:"local",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/dictionaryFieldEditor.content.ts"}],JF=[{key:"dictionary-form-schema",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",pl:"Proszę wprowadzić klucz dla słownika",id:"Silakan masukkan key untuk dictionary Anda",vi:"Vui lòng nhập khóa cho từ điển của bạn"}},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",pl:"Proszę wprowadzić prawidłowy klucz dla słownika",id:"Silakan masukkan key yang valid untuk dictionary Anda",vi:"Vui lòng nhập khóa hợp lệ cho từ điển của bạn"}},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",pl:"Proszę wybrać projekt",id:"Silakan pilih project",vi:"Vui lòng chọn dự án"}},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",pl:"Proszę wybrać prawidłowy projekt",id:"Silakan pilih project yang valid",vi:"Vui lòng chọn dự án hợp lệ"}}},title:"Dictionary form schema",description:"Validation schema for the dictionary creation form, ensuring required fields like dictionary key and associated project ID are correctly filled and typed.",tags:["form validation","dictionary creation","schema"],localId:"dictionary-form-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.ts",location:"local",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.ts"}],eH=JSON.parse(`[{"key":"dictionary-form","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","pl":"Klucz","id":"Key","vi":"Key"}},"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","pl":"Wprowadź klucz słownika","id":"Masukkan key dictionary Anda","vi":"Nhập key của từ điển của bạn"}}},"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","pl":"Projekty","id":"Projects","vi":"Dự án"}},"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","pl":"Wybierz jeden lub więcej projektów do powiązania z tym słownikiem","id":"Pilih satu atau lebih Projects untuk dikaitkan dengan dictionary Anda","vi":"Chọn một hoặc nhiều dự án để liên kết với từ điển của bạn"}}},"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","pl":"Brak słownika","id":"Tidak ada dictionary","vi":"Chưa có từ điển"}},"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","pl":"Utwórz swój pierwszy słownik, aby zacząć korzystać z Intlayer","id":"Buat dictionary pertama Anda untuk mulai menggunakan Intlayer","vi":"Tạo từ điển đầu tiên của bạn để bắt đầu sử dụng Intlayer"}}},"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","pl":"Brak słownika","id":"Tidak ada dictionary","vi":"Chưa có từ điển"}},"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","pl":"Utwórz swój pierwszy słownik, aby zacząć korzystać z Intlayer","id":"Buat dictionary pertama Anda untuk mulai menggunakan Intlayer","vi":"Tạo từ điển đầu tiên của bạn để bắt đầu sử dụng Intlayer"}},"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","pl":"Utwórz słownik","id":"Buat dictionary","vi":"Tạo từ điển"}},"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","pl":"Kliknij, aby utworzyć słownik","id":"Klik untuk membuat dictionary","vi":"Nhấn để tạo từ điể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","pl":"Edytuj słownik","id":"Edit dictionary","vi":"Chỉnh sửa từ điển"}},"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","pl":"Kliknij, aby edytować","id":"Klik untuk mengedit","vi":"Nhấn để chỉnh sửa"}}}},"title":"Dictionary form","description":"Content declarations for the dictionary creation form, including labels, placeholders, titles, descriptions, and button texts for managing dictionaries within Intlayer.","tags":["form","dictionary creation","intlayer cms"],"localId":"dictionary-form::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts","location":"local","filePath":"../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts"}]`),tH=[{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:"local",filePath:"client/src/components/Editor/DictionaryListDrawer/dictionaryListDrawer.content.ts"}],nH=[{key:"expand-collapse",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",pl:"Pokaż wszystko",id:"Tampilkan semua",vi:"Hiển thị tất cả"}},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",pl:"Pokaż mniej",id:"Tampilkan lebih sedikit",vi:"Thu gọn"}}}}},title:"Expand collapse toggle",description:"Content declaration for the expand/collapse toggle component, defining the labels shown when content is expanded or collapsed.",tags:["ui component","toggle","expand collapse"],localId:"expand-collapse::local::../@intlayer/design-system/src/components/ExpandCollapse/expandCollapse.content.ts",location:"local",filePath:"../@intlayer/design-system/src/components/ExpandCollapse/expandCollapse.content.ts"}],rH=[{key:"loader",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",pl:"Animowana ikona oznaczająca, że strona przetwarza dane",id:"Ikon animasi yang menunjukkan bahwa situs sedang memproses konten",vi:"Biểu tượng động, biểu thị rằng trang web đang xử lý"}}},title:"Loader component",description:"Content declaration for the loader component, representing an animated icon indicating that the website is processing or loading content.",tags:["component","loader"],localId:"loader::local::../@intlayer/design-system/src/components/Loader/index.content.ts",location:"local",filePath:"../@intlayer/design-system/src/components/Loader/index.content.ts"}],iH=[{key:"locale-switcher-content",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",pl:"Przełącznik języka",id:"Pengalih bahasa",vi:"Chuyển đổi ngôn ngữ"}},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",pl:"Lista języków",id:"Daftar bahasa",vi:"Danh sách ngôn ngữ"}},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",pl:"Przełącz na",id:"Beralih ke",vi:"Chuyển sang"}},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",pl:"Wyszukaj lokalizację",id:"Cari locale",vi:"Tìm Locale"}},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",pl:"Wyszukaj lokalizację",id:"Cari locale",vi:"Tìm một Locale"}},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",pl:"Wyszukiwanie lokalizacji",id:"Pencarian locale",vi:"Tìm kiếm Locale"}}},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",pl:"Pokaż wszystkie lokalizacje",id:"Tampilkan semua locale",vi:"Xem tất cả các Locale"}},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",pl:"Pokaż tylko wybrane lokalizacje",id:"Tampilkan hanya locale yang dipilih",vi:"Chỉ xem các Locale đã chọn"}}}},title:"Locale switcher content",description:"Content strings for the locale switcher component, including labels, placeholders, and toggle options for displaying available locales.",tags:["component","locale switcher","i18n"],localId:"locale-switcher-content::local::../@intlayer/design-system/src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.ts",location:"local",filePath:"../@intlayer/design-system/src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.ts"}],aH=[{key:"locale-switcher",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",pl:"Przełącznik języka",id:"Pemilih bahasa",vi:"Bộ chọn ngôn ngữ"}},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",pl:"Lista języków",id:"Daftar bahasa",vi:"Danh sách ngôn ngữ"}},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",pl:"Przełącz na",id:"Beralih ke",vi:"Chuyển sang"}},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",pl:"Szukaj lokalizacji",id:"Cari locale",vi:"Tìm ngôn ngữ"}},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",pl:"Szukaj lokalizacji",id:"Cari locale",vi:"Tìm một ngôn ngữ"}},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",pl:"Wyszukiwanie lokalizacji",id:"Pencarian bahasa",vi:"Tìm kiếm ngôn ngữ"}}}},title:"Locale switcher",description:"Content declaration for the locale switcher component, including user interface labels for switching and searching between different languages.",tags:["language selector","internationalization","UI component"],localId:"locale-switcher::local::../@intlayer/design-system/src/components/LocaleSwitcherDropDown/localeSwitcher.content.ts",location:"local",filePath:"../@intlayer/design-system/src/components/LocaleSwitcherDropDown/localeSwitcher.content.ts"}],oH=[{key:"long-press-message",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:"local",filePath:"client/src/components/Editor/LongPressMessage/index.content.ts"}],sH=JSON.parse(`[{"key":"navigation-view","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","pl":"Węzeł React nie jest edytowalny","id":"React node tidak dapat diedit","vi":"React node không thể chỉnh sửa"}},"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","pl":"Przejdź do pola","id":"Buka field","vi":"Đi tới trường"}}},"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","pl":"Kliknij, aby dodać element","id":"Klik untuk menambah elemen","vi":"Nhấp để thêm phần tử"}},"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","pl":"Dodaj nowy element","id":"Tambahkan elemen baru","vi":"Thêm phần tử mới"}}},"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","pl":"Kliknij, aby usunąć element","id":"Klik untuk menghapus elemen","vi":"Nhấp để xóa phần tử"}},"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","pl":"Usuń element","id":"Hapus elemen","vi":"Xóa phần tử"}}},"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","pl":"Kliknij, aby dodać enumerację","id":"Klik untuk menambah enumerasi","vi":"Nhấp để thêm enumeration"}},"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","pl":"Dodaj nową enumerację","id":"Tambahkan enumerasi baru","vi":"Thêm enumeration mới"}}},"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","pl":"Kliknij, aby usunąć enumerację","id":"Klik untuk menghapus enumerasi","vi":"Nhấp để xóa enumeration"}},"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","pl":"Usuń enumerację","id":"Hapus enumerasi","vi":"Xóa enumeration"}}},"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","pl":"Kliknij, aby dodać warunek","id":"Klik untuk menambah kondisi","vi":"Nhấp để thêm điều kiệ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","pl":"Dodaj nowy warunek","id":"Tambahkan kondisi baru","vi":"Thêm điều kiện mới"}}}},"title":"Navigation view content","description":"Content declarations used for UI interactions within the navigation view of the Dictionary Field Editor. Includes labels and helper texts for adding or removing elements, enumerations, and conditions.","tags":["editor UI","form navigation","dictionary editor"],"localId":"navigation-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts","location":"local","filePath":"../@intlayer/design-system/src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts"}]`),lH=[{key:"no-application-url-view",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:"local",filePath:"client/src/components/Editor/NoApplicationURLView/noApplicationURLView.content.ts"}],cH=[{key:"node-type-selector",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ü",pl:"Typ węzła",id:"Tipe Node",vi:"Kiểu node"}},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",pl:"Treść wielojęzyczna",id:"Konten multibahasa",vi:"Nội dung đa ngôn ngữ"}},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",pl:"Tekst",id:"Teks",vi:"Văn bản"}},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ı",pl:"Liczba",id:"Angka",vi:"Số"}},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",pl:"Wartość logiczna",id:"Boolean",vi:"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",pl:"Obiekt",id:"Object",vi:"Đối tượng"}},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",pl:"Tablica",id:"Array",vi:"Mảng"}},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",pl:"Wyliczenie",id:"Enumeration",vi:"Kiểu liệt kê"}},gender:{nodeType:"translation",translation:{en:"Gender","en-GB":"Gender",fr:"Genre",es:"Género",de:"Geschlecht",ja:"性別",ko:"성별",zh:"性别",it:"Genere",pt:"Gênero",hi:"लिंग",ar:"جنس",ru:"Пол",tr:"Cins",pl:"Płeć",id:"Gender",vi:"Giới tính"}},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",pl:"Zagnieżdżanie",id:"Nesting",vi:"Lồng nhau"}},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",pl:"Wstawianie",id:"Insertion",vi:"Chèn"}},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",pl:"Warunek",id:"Condition",vi:"Điều kiện"}},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",pl:"Plik",id:"File",vi:"Tệp"}},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",pl:"Markdown",id:"Markdown",vi:"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",pl:"Węzeł React",id:"React Node",vi:"React Node"}}},title:"Node type selector",description:"Defines the available node types that can be selected for content modeling, including text, number, boolean, object structures, arrays, and other specialized types like enumeration, gender, condition, and markdown.",tags:["content modeling","field type","editor"],localId:"node-type-selector::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/nodeTypeSelector.content.ts",location:"local",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/nodeTypeSelector.content.ts"}],uH=[{key:"pagination",content:{numberItemsSelector:{nodeType:"translation",translation:{en:"Items per page",fr:"Eléments par page",es:"Items por página","en-GB":"Items per page",de:"Items pro Seite",ja:"ページあたりのアイテム数",ko:"페이지당 아이템 수",zh:"每页项目数",it:"Elementi per pagina",pt:"Itens por página",hi:"पृष्ठ पर आइटम्स",ar:"عدد العناصر لكل صفحة",ru:"Элементов на странице",tr:"Sayfa başına öğe",pl:"Elementów na stronę",id:"Item per halaman",vi:"Số mục trên mỗi trang"}},showingResults:{fields:["start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total","start","end","total"],nodeType:"insertion",insertion:{nodeType:"translation",translation:{ar:"عرض {{start}} إلى {{end}} من {{total}} نتائج",de:"Zeigt {{start}} bis {{end}} von {{total}} Ergebnissen",en:"Showing {{start}} to {{end}} of {{total}} results","en-GB":"Showing {{start}} to {{end}} of {{total}} results",es:"Mostrando {{start}} a {{end}} de {{total}} resultados",fr:"Afficher {{start}} à {{end}} de {{total}} résultats",hi:"{{start}} से {{end}} तक के {{total}} परिणाम दिखा रहे हैं",id:"Menampilkan {{start}} hingga {{end}} dari {{total}} hasil",it:"Mostrando {{start}} a {{end}} di {{total}} risultati",ja:"{{start}} から {{end}} までの {{total}} 件の結果を表示",ko:"{{start}} 에서 {{end}} 까지의 {{total}} 개 결과 표시",pl:"Wyświetlane {{start}} do {{end}} z {{total}} wyników",pt:"Mostrando {{start}} a {{end}} de {{total}} resultados",ru:"Показано {{start}}-{{end}} из {{total}} результатов",tr:"{{start}} から {{end}} までの {{total}} 件の結果を表示",vi:"Hiển thị {{start}} đến {{end}} trong tổng số {{total}} kết quả",zh:"显示第 {{start}} 到 {{end}} 项,共 {{total}} 个结果"}}},selectPageSize:{nodeType:"translation",translation:{en:"Select page size",fr:"Sélectionner la taille de la page",es:"Seleccionar tamaño de página","en-GB":"Select page size",de:"Seitegröße auswählen",ja:"ページサイズを選択",ko:"페이지 크기 선택",zh:"选择页面大小",it:"Seleziona una dimensione di pagina",pt:"Selecionar um tamanho de página",hi:"पृष्ठ आकार चुनें",ar:"اختر حجم الصفحة",ru:"Выберите размер страницы",tr:"Sayfa boyutunu seç",pl:"Wybierz liczbę elementów na stronę",id:"Pilih jumlah item per halaman",vi:"Chọn số mục trên mỗi trang"}},goToNextPage:{nodeType:"translation",translation:{en:"Go to next page",fr:"Aller à la page suivante",es:"Ir a la página siguiente","en-GB":"Go to next page",de:"Zur nächsten Seite",ja:"次のページに移動",ko:"다음 페이지로 이동",zh:"转到下一页",it:"Vai alla pagina successiva",pt:"Ir para a página seguinte",hi:"अगली पृष्ठ पर जाएं",ar:"اذهب إلى الصفحة التالية",ru:"Перейти к следующей странице",tr:"Sonraki sayfaya git",pl:"Przejdź do następnej strony",id:"Pergi ke halaman berikutnya",vi:"Chuyển sang trang tiếp theo"}},goToPreviousPage:{nodeType:"translation",translation:{en:"Go to previous page",fr:"Aller à la page précédente",es:"Ir a la página anterior","en-GB":"Go to previous page",de:"Zur vorherigen Seite",ja:"前のページに移動",ko:"이전 페이지로 이동",zh:"转到上一页",it:"Vai alla pagina precedente",pt:"Ir para a página anterior",hi:"पिछली पृष्ठ पर जाएं",ar:"اذهب إلى الصفحة السابقة",ru:"Перейти к предыдущей странице",tr:"Önceki sayfaya git",pl:"Przejdź do poprzedniej strony",id:"Pergi ke halaman sebelumnya",vi:"Chuyển sang trang trước"}}},title:"Pagination",description:"Content strings used for the pagination component, including labels for navigating pages and selecting items per page.",tags:["pagination","component"],localId:"pagination::local::../@intlayer/design-system/src/components/Pagination/pagination.content.ts",location:"local",filePath:"../@intlayer/design-system/src/components/Pagination/pagination.content.ts"}],dH=JSON.parse('[{"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","pl":"Usuń słownik","id":"Hapus dictionary","vi":"Xóa dictionary"}},"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","pl":"Kliknij, aby usunąć słownik","id":"Klik untuk menghapus dictionary","vi":"Nhấp để xóa dictionary"}}},"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","pl":"Resetuj wszystkie zmiany","id":"Reset semua perubahan","vi":"Đặt lại tất cả các thay đổi"}},"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","pl":"Kliknij, aby zresetować wszystkie zmiany","id":"Klik untuk mereset semua perubahan","vi":"Nhấp để đặt lại tất cả các thay đổi"}}},"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","pl":"Zapisz zmiany","id":"Simpan perubahan","vi":"Lưu thay đổi"}},"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","pl":"Kliknij, aby zapisać zmiany","id":"Klik untuk menyimpan perubahan","vi":"Nhấp để lưu các thay đổi"}}},"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","pl":"Opublikuj słownik","id":"Publikasikan dictionary","vi":"Xuất bản dictionary"}},"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","pl":"Kliknij, aby opublikować słownik","id":"Klik untuk mempublikasikan dictionary","vi":"Nhấp để xuất bản dictionary"}}},"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","pl":"Pobierz","id":"Unduh","vi":"Tải xuống"}},"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","pl":"Kliknij, aby pobrać","id":"Klik untuk mengunduh","vi":"Nhấp để tải xuống"}}},"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","pl":"Potwierdzenie","id":"Konfirmasi","vi":"Xác nhận"}},"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?","pl":"To spowoduje nadpisanie istniejącego słownika. Czy na pewno chcesz kontynuować?","id":"Tindakan ini akan menimpa dictionary yang ada. Apakah Anda yakin ingin melanjutkan?","vi":"Hành động này sẽ ghi đè lên dictionary hiện có. Bạn có chắc muốn tiếp tục không?"}},"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","pl":"Potwierdź","id":"Konfirmasi","vi":"Xác nhận"}},"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","pl":"Kliknij, aby potwierdzić","id":"Klik untuk mengonfirmasi","vi":"Nhấp để xác nhậ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","pl":"Anuluj","id":"Batal","vi":"Hủy"}},"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","pl":"Kliknij, aby anulować","id":"Klik untuk membatalkan","vi":"Nhấp để hủy"}}}}},"title":"Save dictionary details","description":"Content declarations for managing dictionary actions including saving, deleting, resetting, publishing, and downloading, with confirmation prompts for updates or overwrites.","tags":["dictionary management","dictionary editor"],"localId":"save-dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx","location":"local","filePath":"../@intlayer/design-system/src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx"}]'),fH=[{key:"structure-view",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",pl:"Wprowadź klucz węzła",id:"Masukkan kunci node Anda",vi:"Nhập key của node của bạn"}}},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",pl:"Usuń węzeł z sekcji",id:"Hapus node dari bagian",vi:"Xóa node khỏi section"}}},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",pl:"Kliknij, aby dodać nowy węzeł",id:"Klik untuk menambahkan node baru",vi:"Nhấp để thêm node mới"}},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",pl:"Dodaj nowy węzeł",id:"Tambahkan node baru",vi:"Thêm node mới"}}}},title:"Structure view",description:"Interface content for managing nodes within a structured view, including actions to add, remove, and identify nodes by key.",tags:["form","dictionary editor","structure management"],localId:"structure-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/StructureView/structureView.content.ts",location:"local",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/StructureView/structureView.content.ts"}],hH=[{key:"table",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",pl:"Pokaż całą zawartość tabeli",id:"Tampilkan semua isi tabel",vi:"Hiển thị tất cả nội dung bảng"}}},title:"Table component content",description:"Content declaration related to the Table component, specifically for UI message to display all table content.",tags:["table","component content","design system"],localId:"table::local::../@intlayer/design-system/src/components/Table/table.content.ts",location:"local",filePath:"../@intlayer/design-system/src/components/Table/table.content.ts"}],pH=[{key:"version-switcher",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",pl:"Wybór wersji",id:"Pemilih versi",vi:"Trình chọn phiên bản"}},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",pl:"Lista wersji",id:"Daftar versi",vi:"Danh sách phiên bản"}},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",pl:"Przełącz na",id:"Beralih ke",vi:"Chuyển sang"}}},title:"Version switcher",description:"Dictionary for UI labels used in the version switcher component, enabling users to select and switch between different content or documentation versions.",tags:["interface","version control","component"],localId:"version-switcher::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.ts",location:"local",filePath:"../@intlayer/design-system/src/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.ts"}],mH={breadcrumb:$F,code:qF,"copy-button":ZF,"dictionary-detail-schema":YF,"dictionary-details":WF,"dictionary-edition-drawer":XF,"dictionary-field-editor":QF,"dictionary-form-schema":JF,"dictionary-form":eH,"dictionary-list-drawer":tH,"expand-collapse":nH,loader:rH,"locale-switcher-content":iH,"locale-switcher":aH,"long-press-message":oH,"navigation-view":sH,"no-application-url-view":lH,"node-type-selector":cH,pagination:uH,"save-dictionary-details":dH,"structure-view":fH,table:hH,"version-switcher":pH},yH=()=>mH,gH=(e,t,n,i=Qe)=>{const o=(n??yH())?.[e];if(!o)return null;const s=KF(o,i);for(const c of s)if(Zn(c.content,t))return c;for(const c of o)if(Zn(c.content,t))return c},vH=(e,t,n)=>{let i=e,o=null,s=null;for(const c of n)o=i,(c.type===G.Object||c.type===G.Array)&&(s=c.key,i=i[c.key]),(c.type===G.Translation||c.type===G.Enumeration||c.type===G.Condition)&&(s=c.type,i=i[c.type][c.key]),(c.type===G.Markdown||c.type===G.ReactNode||c.type===G.Insertion||c.type===G.File)&&(s=c.type,i=i[c.type]);if(o&&s!==null)if(Array.isArray(o))o[s]=i;else{const c={};for(const u of Object.keys(o))u===s&&typeof t<"u"?c[t]=i:c[u]=o[u];Object.keys(o).forEach(u=>{delete o[u]}),Object.assign(o,c)}return e},bH=(e,t)=>JSON.stringify([e,t]),EH=e=>{const t=new Map;function n(i,o){if(e.name==="DisplayNames"&&typeof Intl?.DisplayNames!="function")return console.warn([`// Intl.DisplayNames is not supported; falling back to raw locale (${i}). `,"// Consider adding a polyfill as https://formatjs.io/docs/polyfills/intl-displaynames/","","import 'intl';","import '@formatjs/intl-getcanonicallocales/polyfill';","import '@formatjs/intl-locale/polyfill';","import '@formatjs/intl-pluralrules/polyfill';","import '@formatjs/intl-displaynames/polyfill';","import '@formatjs/intl-listformat/polyfill';","import '@formatjs/intl-numberformat/polyfill';","import '@formatjs/intl-relativetimeformat/polyfill';","import '@formatjs/intl-datetimeformat/polyfill';","","// Optionally add locale data","import '@formatjs/intl-pluralrules/locale-data/fr';","import '@formatjs/intl-numberformat/locale-data/fr';","import '@formatjs/intl-datetimeformat/locale-data/fr';"].join(`
66
+ `)),i;const s=bH(i??dt.ENGLISH,o);let c=t.get(s);return c||(c=new e(i,o),t.set(s,c)),c}return n.prototype=e.prototype,n},xH=()=>new Proxy(Intl,{get:(e,t,n)=>{const i=Reflect.get(e,t,n);return typeof i=="function"&&/^[A-Z]/.test(String(t))?EH(i):i}}),SH=xH(),AH=(e,t,n)=>{const i=[`${e}=${encodeURIComponent(t)}`];return n.path&&i.push(`Path=${n.path}`),n.domain&&i.push(`Domain=${n.domain}`),n.expires instanceof Date&&i.push(`Expires=${n.expires.toUTCString()}`),n.secure&&i.push("Secure"),n.sameSite&&i.push(`SameSite=${n.sameSite}`),i.join("; ")},wH=e=>{const{routing:t,internationalization:n}=Qe,{locales:i}=n,{storage:o}=t;if(o===!1||e?.isCookieEnabled===!1)return;const s=NL(o),c=f=>f?i.includes(f):!1,u=f=>{try{const h=e?.getCookie?.(f);if(h!==null)return h}catch{}try{const h=document.cookie??"";if(!h)return;const p=h.split(";");for(let g=0;g<p.length;g++){const b=p[g].trim();if(!b)continue;const x=b.indexOf("=");if((x>=0?b.substring(0,x):b)===f){const w=x>=0?b.substring(x+1):"";try{return decodeURIComponent(w)}catch{return w}}}}catch{}};for(let f=0;f<s.cookies.length;f++){const{name:h}=s.cookies[f],p=u(h);if(c(p))return p}for(let f=0;f<s.localStorage.length;f++){const{name:h}=s.localStorage[f];try{const p=e?.getLocaleStorage?.(h);if(c(p))return p}catch{}}for(let f=0;f<s.sessionStorage.length;f++){const{name:h}=s.sessionStorage[f];try{const p=e?.getSessionStorage?.(h);if(c(p))return p}catch{}}for(let f=0;f<s.headers.length;f++){const{name:h}=s.headers[f];try{const p=e?.getHeader?.(h);if(c(p))return p}catch{}}},TH=(e,t)=>{if(Qe.routing.storage===!1||t?.isCookieEnabled===!1)return;const n=NL(Qe.routing.storage);for(let i=0;i<n.cookies.length;i++){const{name:o,attributes:s}=n.cookies[i];try{t?.setCookieStore&&t?.setCookieStore?.(o,e,{...s,expires:s.expires instanceof Date?s.expires.getTime():s.expires})}catch{try{if(t?.setCookieString){const c=AH(o,e,s);t?.setCookieString?.(o,c)}}catch{}}}if(t?.setLocaleStorage)for(let i=0;i<n.localStorage.length;i++){const{name:o}=n.localStorage[i];try{if(!(t?.overwrite??!0)&&t?.getLocaleStorage&&t?.getLocaleStorage?.(o))continue;t?.setLocaleStorage?.(o,e)}catch{}}if(t?.setSessionStorage)for(let i=0;i<n.sessionStorage.length;i++){const{name:o}=n.sessionStorage[i];try{if(!(t?.overwrite??!0)&&t?.getSessionStorage&&t?.getSessionStorage?.(o))continue;t?.setSessionStorage?.(o,e)}catch{}}if(t?.setHeader)for(let i=0;i<n.headers.length;i++){const{name:o}=n.headers[i];try{t?.setHeader?.(o,e)}catch{}}},CH=(e,t=Qe?.internationalization?.locales,n=Qe?.internationalization?.defaultLocale)=>{const i=[e].flat(),o=s=>s.trim().toLowerCase();try{for(const s of i){const c=o(s),u=t.find(p=>o(p)===c);if(u)return u;const[f]=c.split("-"),h=t.find(p=>o(p).split("-")[0]===f);if(h)return h}}catch{}return n},OL={getCookie:e=>document.cookie.split(";").find(t=>t.trim().startsWith(`${e}=`))?.split("=")[1],getLocaleStorage:e=>localStorage.getItem(e),getSessionStorage:e=>sessionStorage.getItem(e),isCookieEnabled:!0,setCookieStore:(e,t,n)=>cookieStore.set({name:e,value:t,path:n.path,domain:n.domain,expires:n.expires,sameSite:n.sameSite}),setCookieString:e=>{document.cookie=e},setSessionStorage:(e,t)=>sessionStorage.setItem(e,t),setLocaleStorage:(e,t)=>localStorage.setItem(e,t)},RH=e=>{switch(e){case dt.ARABIC:case dt.FARSI:case dt.URDU:case dt.PASHTO:case dt.SYRIAC:case dt.ARABIC_UNITED_ARAB_EMIRATES:case dt.ARABIC_BAHRAIN:case dt.ARABIC_ALGERIA:case dt.ARABIC_EGYPT:case dt.ARABIC_IRAQ:case dt.ARABIC_JORDAN:case dt.ARABIC_KUWAIT:case dt.ARABIC_LEBANON:case dt.ARABIC_LIBYA:case dt.ARABIC_MOROCCO:case dt.ARABIC_OMAN:case dt.ARABIC_QATAR:case dt.ARABIC_SAUDI_ARABIA:case dt.ARABIC_SYRIA:case dt.ARABIC_TUNISIA:case dt.ARABIC_YEMEN:case dt.FARSI_IRAN:case dt.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:case dt.PASHTO_AFGHANISTAN:case dt.SYRIAC_SYRIA:return"rtl";default:return"ltr"}},jL=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e),ef=(e,t=e)=>new SH.DisplayNames(t,{type:"language"}).of(e)??"Unknown locale",IH=(e,t=Qe?.internationalization?.locales)=>{const n=jL(e);let i=e;e.endsWith("/")&&(i=e.slice(0,-1));const o=n?new URL(i):new URL(i,"http://example.com"),s=o.pathname;s.startsWith("/")||(o.pathname=`/${s}`);const c=s.split("/"),u=c[1];t?.includes(u)&&(c.splice(1,1),o.pathname=c.join("/")??"/");const f=new URLSearchParams(o.search);return f.has("locale")&&(f.delete("locale"),o.search=f.toString()),n?o.toString():o.toString().replace("http://example.com","")},_H=(e,t=Qe?.internationalization?.locales,n=Qe?.internationalization?.defaultLocale,i=Qe?.routing?.mode)=>{const o=IH(e,t),s=jL(o),c=s?new URL(o):new URL(o,"http://example.com");let u=c.pathname;u.startsWith("/")||(u=`/${u}`);const f=s?`${c.protocol}//${c.host}`:"",h=i??Kf.Routing.ROUTING_MODE;return(t??[]).reduce((p,g)=>{const b=g?.toString()===n?.toString();let x;if(h==="search-params"){const w=new URLSearchParams(c.search);w.set("locale",g.toString());const A=w.toString(),C=A?`${u}?${A}`:u;x=s?`${f}${C}${c.hash}`:`${C}${c.hash}`}else if(h==="no-prefix")x=s?`${f}${u}${c.search}${c.hash}`:`${u}${c.search}${c.hash}`;else{let w=h==="prefix-all"||h==="prefix-no-default"&&!b?`/${g}${u}`:u;w.length>1&&w.endsWith("/")&&(w=w.slice(0,-1)),x=s?`${f}${w}${c.search}${c.hash}`:`${w}${c.search}${c.hash}`}return p[g]=x,p},{})},NH=(e,t,n=Qe?.internationalization?.locales,i=Qe?.internationalization?.defaultLocale,o=Qe?.routing?.mode)=>_H(e,n,i,o)[t]??e,Fc=(e,t)=>e.every((n,i)=>t[i]&&t[i].key===n.key&&t[i].type===n.type),kH=wH(OL),zL=kH,ML=(e,t)=>TH(e,{...OL,isCookieEnabled:t}),cn=[];for(let e=0;e<256;++e)cn.push((e+256).toString(16).slice(1));function LH(e,t=0){return(cn[e[t+0]]+cn[e[t+1]]+cn[e[t+2]]+cn[e[t+3]]+"-"+cn[e[t+4]]+cn[e[t+5]]+"-"+cn[e[t+6]]+cn[e[t+7]]+"-"+cn[e[t+8]]+cn[e[t+9]]+"-"+cn[e[t+10]]+cn[e[t+11]]+cn[e[t+12]]+cn[e[t+13]]+cn[e[t+14]]+cn[e[t+15]]).toLowerCase()}let ey;const DH=new Uint8Array(16);function OH(){if(!ey){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");ey=crypto.getRandomValues.bind(crypto)}return ey(DH)}const jH=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),_A={randomUUID:jH};function zH(e,t,n){e=e||{};const i=e.random??e.rng?.()??OH();if(i.length<16)throw new Error("Random bytes length must be >= 16");return i[6]=i[6]&15|64,i[8]=i[8]&63|128,LH(i)}function MH(e,t,n){return _A.randomUUID&&!e?_A.randomUUID():zH(e)}const{editor:ty}=Qe??{},PL=E.createContext({postMessage:()=>null,allowedOrigins:[ty?.applicationURL,ty?.editorURL,ty?.cmsURL],senderId:""}),NA=({children:e,allowedOrigins:t,postMessage:n})=>{const i=E.useRef(MH()),o=E.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:i.current}),[n,t,i.current]);return y.jsx(PL.Provider,{value:o,children:e})},Av=()=>E.useContext(PL),PH=(e,t)=>{try{const n=new URL(e),i=new URL(t);if(n.protocol!==i.protocol||n.hostname!==i.hostname||n.port!==i.port)return!1;const o=n.pathname.replace(/\/$/,""),s=i.pathname.replace(/\/$/,"");return!(o!==""&&s!==""&&o!==s)}catch(n){return console.error("Invalid URL(s)",n),!1}},BH=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)};let Dn=function(e){return 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}({});const zs=(e,t,n)=>{const{allowedOrigins:i,postMessage:o,senderId:s}=Av();return E.useEffect(()=>{if(t){const u=f=>{const{type:h,data:p,senderId:g}=f.data;h===e&&g!==s&&(typeof i>"u"||i?.some(b=>PH(b,f.origin))||i?.includes("*"))&&t(p)};return window.addEventListener("message",u),()=>window.removeEventListener("message",u)}},[i,o,s,n]),u=>{o({type:e,data:u,senderId:s})}},UH=(e,t)=>typeof e=="function"?e(t):e,ha=(e,t,n)=>{const{postMessage:i,senderId:o}=Av(),{emit:s,receive:c}=n??{emit:!0,receive:!0},u=(x,w)=>{const A=UH(x,w);return s&&typeof i=="function"&&typeof A<"u"&&i({type:`${e}/post`,data:A,senderId:o}),A},f=()=>{typeof i=="function"&&i({type:`${e}/post`,data:h,senderId:o})},[h,p]=E.useState(()=>u(t)),g=x=>p(w=>u(x,w));zs(`${e}/post`,c?x=>{p(x)}:void 0);const b=(x,w)=>{s&&typeof i=="function"&&w!==o&&(typeof h>"u"||i({type:`${e}/post`,data:h,senderId:o}))};return zs(`${e}/get`,s?b:void 0,h),E.useEffect(()=>{c&&typeof i=="function"&&typeof h>"u"&&i({type:`${e}/get`,senderId:o})},[]),[h,g,f]},BL=E.createContext(void 0),VH=({children:e,configuration:t})=>y.jsx(BL.Provider,{value:t,children:e}),Jr=()=>E.useContext(BL),UL=E.createContext(void 0),VL=E.createContext(void 0),FH=({children:e})=>{const[t,n]=ha(Dn.INTLAYER_LOCALE_DICTIONARIES_CHANGED,void 0),i=E.useMemo(()=>({localeDictionaries:t??{}}),[t]),o=E.useMemo(()=>({setLocaleDictionaries:n,setLocaleDictionary:s=>{s.localId&&n(c=>({...c,[s.localId]:s}))}}),[n]);return y.jsx(UL.Provider,{value:i,children:y.jsx(VL.Provider,{value:o,children:e})})},$f=()=>E.useContext(VL),FL=()=>{const e=$f(),t=E.useContext(UL);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}},HL=E.createContext(void 0),HH=e=>zs(`${Dn.INTLAYER_EDITED_CONTENT_CHANGED}/get`,e),GL=E.createContext(void 0),kA=(e,t)=>typeof e=="function"?e(t):e,GH=({children:e})=>{const{localeDictionaries:t}=FL(),[n,i]=ha(Dn.INTLAYER_EDITED_CONTENT_CHANGED),o=x=>{let w=kA(x);return i(A=>w.localId?(w=kA(x,A?.[w.localId]),{...A,[w.localId]:w}):(console.error("no localId",w),A)),w},s=(x,w)=>{i(A=>({...A,[x]:{...A?.[x],content:w}}))},c=(x,w,A=[],C=!0)=>{i(L=>{const S=t[x]?.content,R=structuredClone(L?.[x]?.content??S);let I=A;if(!C){let _=0;const k=A.slice(0,-1),O=A[A.length-1];let U=O.key;for(;typeof Zn(R,I)<"u";)_++,U=_===0?O.key:`${O.key} (${_})`,I=[...k,{...O,key:U}]}const N=IA(R,I,w);return{...L,[x]:{...L?.[x],content:N}}})},u=(x,w,A=[])=>{i(C=>{const L=t[x]?.content,S=vH(structuredClone(C?.[x]?.content??L),w,A);return{...C,[x]:{...C?.[x],content:S}}})},f=(x,w)=>{i(A=>{const C=t[x]?.content,L=IA(structuredClone(A?.[x]?.content??C),w,Zn(C,w));return{...A,[x]:{...A?.[x],content:L}}})},h=x=>{i(w=>{const A={...w};return delete A[x],A})},p=x=>{i(w=>Object.entries(w).reduce((A,[C,L])=>C===x?A:{...A,[C]:L},{}))},g=()=>{i({})},b=(x,w)=>{if(!n)return;if(x.includes(":local:")||x.includes(":remote:"))return Zn(n?.[x]?.content??{},w);const A=Object.keys(n).filter(C=>C.startsWith(`${x}:`));for(const C of A){const L=Zn(n?.[C]?.content??{},w);if(L)return L}};return y.jsx(HL.Provider,{value:{editedContent:n},children:y.jsx(GL.Provider,{value:{setEditedContentState:i,setEditedDictionary:o,setEditedContent:s,addEditedContent:c,renameEditedContent:u,removeEditedContent:f,restoreEditedContent:h,clearEditedDictionaryContent:p,clearEditedContent:g,getEditedContentValue:b},children:e})})},Gs=()=>E.useContext(GL),En=()=>{const e=E.useContext(HL),t=Gs();return{...e,...t}},KL=E.createContext({enabled:!1}),KH=e=>ha(Dn.INTLAYER_EDITOR_ENABLED,!1,e),$H=e=>zs(`${Dn.INTLAYER_EDITOR_ENABLED}/post`,e),$L=e=>zs(`${Dn.INTLAYER_EDITOR_ENABLED}/get`,e),qH=({children:e})=>{const[t]=KH({emit:!1,receive:!0});return y.jsx(KL.Provider,{value:{enabled:t},children:e})},qL=()=>E.useContext(KL),ZL=E.createContext(void 0),YL=E.createContext(void 0),ZH=({children:e})=>{const[t,n]=ha(Dn.INTLAYER_FOCUSED_CONTENT_CHANGED,null),i=o=>{n(s=>s&&{...s,keyPath:o})};return y.jsx(ZL.Provider,{value:{focusedContent:t},children:y.jsx(YL.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:i},children:e})})},wv=()=>{const e=E.useContext(YL);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},ba=()=>{const e=wv(),t=E.useContext(ZL);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},LA=({children:e})=>{const t=HH();return E.useEffect(()=>{t()},[]),y.jsx(FH,{children:y.jsx(GH,{children:y.jsx(ZH,{children:e})})})},YH=({children:e,fallback:t})=>{const n=$L(),{enabled:i}=qL();return E.useEffect(()=>{i||n()},[i]),i?e:t},WH=({children:e,fallback:t})=>{const[n,i]=E.useState(!1);return E.useEffect(()=>{i(window.self!==window.top)},[]),n?e:t},XH=({children:e,configuration:t,...n})=>y.jsx(qH,{children:y.jsx(VH,{configuration:t,children:n.mode==="editor"?y.jsx(NA,{...n,children:y.jsx(LA,{children:e})}):y.jsx(WH,{fallback:e,children:y.jsx(NA,{...n,children:y.jsx(YH,{fallback:e,children:y.jsx(LA,{children:e})})})})})}),QH=(e,t)=>ha(Dn.INTLAYER_URL_CHANGE,e,t),JH=()=>zs(Dn.INTLAYER_IFRAME_CLICKED,BH),qf=E.createContext({locale:zL??Qe?.internationalization?.defaultLocale,setLocale:()=>null,isCookieEnabled:!0,disableEditor:!1}),e3=()=>E.useContext(qf),t3=({locale:e,defaultLocale:t,children:n,setLocale:i,disableEditor:o,isCookieEnabled:s})=>{const{internationalization:c}=Qe??{},{defaultLocale:u,locales:f}=c??{},h=e??zL??t??u,[p,g]=ha(Dn.INTLAYER_CURRENT_LOCALE,h),x=i??(A=>{if(p.toString()!==A.toString()){if(!f?.map(String).includes(A)){console.error(`Locale ${A} is not available`);return}g(A),ML(A,s)}}),w=CH(e??p);return y.jsx(qf.Provider,{value:{locale:w,setLocale:x,disableEditor:o},children:n})},gf=({children:e,value:t,additionalProps:n})=>{const i=E.isValidElement(e)?e:y.jsx(y.Fragment,{children:e});return new Proxy(i,{get(o,s,c){return s==="value"?t:n&&Object.keys(n).includes(s)?n[s]:Reflect.get(o,s,c)}})},n3=250,r3=({children:e,onPress:t,onHover:n,onUnhover:i,onClickOutside:o,pressDuration:s=n3,isSelecting:c,...u})=>{const f=E.useRef(null),[h,p]=E.useState(!1),[g,b]=E.useState(c),x=E.useRef(null),w=typeof e=="string",A=()=>{b(!0),t()},C=()=>{x.current=setTimeout(()=>{A()},s)},L=()=>{x.current&&(clearTimeout(x.current),x.current=null)},S=()=>{L(),C()},R=()=>{p(!0),n?.()},I=()=>{i?.(),p(!1),L()},N=E.useCallback(O=>{f.current&&!f.current.contains(O.target)&&(b(!1),o?.())},[o]);E.useEffect(()=>(document.addEventListener("mousedown",N),()=>{document.removeEventListener("mousedown",N)}),[N]);const _=O=>{g&&(O.preventDefault(),O.stopPropagation())},k=()=>{b(!1)};return y.jsx("span",{style:{display:w?"inline":"inline-block",cursor:"pointer",userSelect:"none",borderRadius:"0.375rem",outlineWidth:"2px",outlineOffset:"4px",outlineStyle:"solid",outlineColor:c||g||h?"inherit":"transparent",transition:"all 100ms 50ms ease-in-out"},role:"button",tabIndex:0,onKeyUp:()=>null,onClick:_,onMouseDown:S,onMouseUp:I,onMouseLeave:I,onTouchStart:S,onTouchEnd:I,onTouchCancel:I,onBlur:k,onMouseEnter:R,ref:f,...u,children:e})},i3=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:i,setFocusedContent:o}=ba(),{postMessage:s,senderId:c}=Av();return y.jsx(r3,{onPress:E.useCallback(()=>o({dictionaryKey:t,keyPath:n}),[t,n]),onHover:E.useCallback(()=>s({type:`${Dn.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:{dictionaryKey:t,keyPath:n},senderId:c}),[t,n]),onUnhover:E.useCallback(()=>s({type:`${Dn.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:null,senderId:c}),[c]),isSelecting:E.useMemo(()=>(i?.dictionaryKey===t&&(i?.keyPath?.length??0)>0&&Fc(i?.keyPath??[],n))??!1,[i,n,t]),children:e})},Ns=({children:e,...t})=>{const{enabled:n}=qL(),{disableEditor:i}=e3();return n&&!i?y.jsx(i3,{...t,children:e}):e},Tv=({dictionaryKey:e,keyPath:t,children:n})=>{const i=Gs();return i?i.getEditedContentValue(e,t)??n:n},a3=e=>{const t=Tv(e);if(typeof t=="object"){const n=Sv(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.createElement(Ns,{...e,key:e.children},e.children)):E.createElement(Ns,{...e,key:e.children},n)}return E.createElement(Ns,{...e,key:e.children},t)},o3=E.createContext({renderMarkdown:e=>e}),s3=()=>E.useContext(o3),l3=({dictionaryKey:e,keyPath:t,children:n,locale:i})=>{const{renderMarkdown:o}=s3(),s=Tv({dictionaryKey:e,keyPath:t,children:n});if(typeof s!="string"){const c=Sv(s,{dictionaryKey:e,keyPath:t},i);return typeof c!="string"?(console.error(`Incorrect Markdown content. Edited Markdown content type: ${typeof c}. Expected string. Value ${JSON.stringify(c)}`),o(n)):o(c)}return o(s)},c3=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:i})=>Zn(LL(Tv({dictionaryKey:e,keyPath:t,children:n})),i),WL=e=>{if(typeof e=="string")return e;const t=o=>{if(o?.props&&typeof o.props.children=="object"){const s=[],{children:c}=o.props;return Object.keys(c??{}).forEach(u=>{const f=WL(c?.[u]);typeof f=="object"&&f!==null&&"type"in f?s.push(E.createElement(f.type,{...f.props,key:u},...Array.isArray(f.props?.children)?f.props.children:[f.props?.children])):s.push(f)}),{...o,props:{...o.props,children:s}}}return{...o,props:{...o.props,children:o.props?.children??[]}}},{type:n,props:i}=t(e);return E.createElement(n??"span",i,...i.children)},u3={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>gf({...n,value:n.children,children:y.jsx(a3,{...n,children:n.children})})},d3={id:"react-node-plugin",canHandle:e=>typeof e=="object"&&typeof e?.props<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>gf({...n,value:"[[react-element]]",children:y.jsx(Ns,{...n,children:WL(e)})})},f3={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:i,...o}=t,s=n(LL(e),{plugins:[{id:"markdown-metadata-plugin",canHandle:c=>typeof c=="string"||typeof c=="number"||typeof c=="boolean"||!c,transform:(c,u)=>gf({...u,value:c,children:y.jsx(Ns,{...o,children:y.jsx(c3,{...o,metadataKeyPath:u.keyPath,children:e})})})}],dictionaryKey:o.dictionaryKey,keyPath:[]});return gf({...t,value:e,children:y.jsx(Ns,{...o,children:y.jsx(l3,{...o,children:e})}),additionalProps:{metadata:s}})}},h3={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===G.Markdown,transform:(e,t,n)=>{const i=[...t.keyPath,{type:G.Markdown}],o=e[G.Markdown];return n(o,{...t,children:o,keyPath:i,plugins:[f3,...t.plugins??[]]})}},p3=(e,t,n)=>xv(e,t,[u3,d3,h3]),jt=(e,t)=>{const{locale:n}=E.useContext(qf);return E.useMemo(()=>p3(e,n),[e,n,t])},Cv=({isCookieEnabled:e,onLocaleChange:t}={})=>{const{defaultLocale:n,locales:i}=Qe?.internationalization??{},{locale:o,setLocale:s,isCookieEnabled:c}=E.useContext(qf);return{locale:o,defaultLocale:n,availableLocales:i,setLocale:E.useCallback(u=>{if(!i?.map(String).includes(u)){console.error(`Locale ${u} is not available`);return}s(u),ML(u,e??c??!0),t?.(u)},[i,t,s])}};/**
67
+ * react-router v7.9.4
68
+ *
69
+ * Copyright (c) Remix Software Inc.
70
+ *
71
+ * This source code is licensed under the MIT license found in the
72
+ * LICENSE.md file in the root directory of this source tree.
73
+ *
74
+ * @license MIT
75
+ */var DA="popstate";function m3(e={}){function t(i,o){let{pathname:s,search:c,hash:u}=i.location;return og("",{pathname:s,search:c,hash:u},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(i,o){return typeof o=="string"?o:Rc(o)}return g3(t,n,null,e)}function Tt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Xr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function y3(){return Math.random().toString(36).substring(2,10)}function OA(e,t){return{usr:e.state,key:e.key,idx:t}}function og(e,t,n=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ks(t):t,state:n,key:t&&t.key||i||y3()}}function Rc({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 Ks(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let i=e.indexOf("?");i>=0&&(t.search=e.substring(i),e=e.substring(0,i)),e&&(t.pathname=e)}return t}function g3(e,t,n,i={}){let{window:o=document.defaultView,v5Compat:s=!1}=i,c=o.history,u="POP",f=null,h=p();h==null&&(h=0,c.replaceState({...c.state,idx:h},""));function p(){return(c.state||{idx:null}).idx}function g(){u="POP";let C=p(),L=C==null?null:C-h;h=C,f&&f({action:u,location:A.location,delta:L})}function b(C,L){u="PUSH";let S=og(A.location,C,L);h=p()+1;let R=OA(S,h),I=A.createHref(S);try{c.pushState(R,"",I)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;o.location.assign(I)}s&&f&&f({action:u,location:A.location,delta:1})}function x(C,L){u="REPLACE";let S=og(A.location,C,L);h=p();let R=OA(S,h),I=A.createHref(S);c.replaceState(R,"",I),s&&f&&f({action:u,location:A.location,delta:0})}function w(C){return v3(C)}let A={get action(){return u},get location(){return e(o,c)},listen(C){if(f)throw new Error("A history only accepts one active listener");return o.addEventListener(DA,g),f=C,()=>{o.removeEventListener(DA,g),f=null}},createHref(C){return t(o,C)},createURL:w,encodeLocation(C){let L=w(C);return{pathname:L.pathname,search:L.search,hash:L.hash}},push:b,replace:x,go(C){return c.go(C)}};return A}function v3(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 i=typeof e=="string"?e:Rc(e);return i=i.replace(/ $/,"%20"),!t&&i.startsWith("//")&&(i=n+i),new URL(i,n)}function XL(e,t,n="/"){return b3(e,t,n,!1)}function b3(e,t,n,i){let o=typeof t=="string"?Ks(t):t,s=Ii(o.pathname||"/",n);if(s==null)return null;let c=QL(e);E3(c);let u=null;for(let f=0;u==null&&f<c.length;++f){let h=k3(s);u=_3(c[f],h,i)}return u}function QL(e,t=[],n=[],i="",o=!1){let s=(c,u,f=o,h)=>{let p={relativePath:h===void 0?c.path||"":h,caseSensitive:c.caseSensitive===!0,childrenIndex:u,route:c};if(p.relativePath.startsWith("/")){if(!p.relativePath.startsWith(i)&&f)return;Tt(p.relativePath.startsWith(i),`Absolute route path "${p.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(i.length)}let g=Ri([i,p.relativePath]),b=n.concat(p);c.children&&c.children.length>0&&(Tt(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),QL(c.children,t,b,g,f)),!(c.path==null&&!c.index)&&t.push({path:g,score:R3(g,c.index),routesMeta:b})};return e.forEach((c,u)=>{if(c.path===""||!c.path?.includes("?"))s(c,u);else for(let f of JL(c.path))s(c,u,!0,f)}),t}function JL(e){let t=e.split("/");if(t.length===0)return[];let[n,...i]=t,o=n.endsWith("?"),s=n.replace(/\?$/,"");if(i.length===0)return o?[s,""]:[s];let c=JL(i.join("/")),u=[];return u.push(...c.map(f=>f===""?s:[s,f].join("/"))),o&&u.push(...c),u.map(f=>e.startsWith("/")&&f===""?"/":f)}function E3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:I3(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}var x3=/^:[\w-]+$/,S3=3,A3=2,w3=1,T3=10,C3=-2,jA=e=>e==="*";function R3(e,t){let n=e.split("/"),i=n.length;return n.some(jA)&&(i+=C3),t&&(i+=A3),n.filter(o=>!jA(o)).reduce((o,s)=>o+(x3.test(s)?S3:s===""?w3:T3),i)}function I3(e,t){return e.length===t.length&&e.slice(0,-1).every((i,o)=>i===t[o])?e[e.length-1]-t[t.length-1]:0}function _3(e,t,n=!1){let{routesMeta:i}=e,o={},s="/",c=[];for(let u=0;u<i.length;++u){let f=i[u],h=u===i.length-1,p=s==="/"?t:t.slice(s.length)||"/",g=vf({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},p),b=f.route;if(!g&&h&&n&&!i[i.length-1].route.index&&(g=vf({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},p)),!g)return null;Object.assign(o,g.params),c.push({params:o,pathname:Ri([s,g.pathname]),pathnameBase:j3(Ri([s,g.pathnameBase])),route:b}),g.pathnameBase!=="/"&&(s=Ri([s,g.pathnameBase]))}return c}function vf(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=N3(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let s=o[0],c=s.replace(/(.)\/+$/,"$1"),u=o.slice(1);return{params:i.reduce((h,{paramName:p,isOptional:g},b)=>{if(p==="*"){let w=u[b]||"";c=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const x=u[b];return g&&!x?h[p]=void 0:h[p]=(x||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:c,pattern:e}}function N3(e,t=!1,n=!0){Xr(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 i=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,u,f)=>(i.push({paramName:u,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(i.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),i]}function k3(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Xr(!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 Ii(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,i=e.charAt(n);return i&&i!=="/"?null:e.slice(n)||"/"}function L3(e,t="/"){let{pathname:n,search:i="",hash:o=""}=typeof e=="string"?Ks(e):e;return{pathname:n?n.startsWith("/")?n:D3(n,t):t,search:z3(i),hash:M3(o)}}function D3(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 ny(e,t,n,i){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(i)}]. 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 O3(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function e1(e){let t=O3(e);return t.map((n,i)=>i===t.length-1?n.pathname:n.pathnameBase)}function t1(e,t,n,i=!1){let o;typeof e=="string"?o=Ks(e):(o={...e},Tt(!o.pathname||!o.pathname.includes("?"),ny("?","pathname","search",o)),Tt(!o.pathname||!o.pathname.includes("#"),ny("#","pathname","hash",o)),Tt(!o.search||!o.search.includes("#"),ny("#","search","hash",o)));let s=e===""||o.pathname==="",c=s?"/":o.pathname,u;if(c==null)u=n;else{let g=t.length-1;if(!i&&c.startsWith("..")){let b=c.split("/");for(;b[0]==="..";)b.shift(),g-=1;o.pathname=b.join("/")}u=g>=0?t[g]:"/"}let f=L3(o,u),h=c&&c!=="/"&&c.endsWith("/"),p=(s||c===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||p)&&(f.pathname+="/"),f}var Ri=e=>e.join("/").replace(/\/\/+/g,"/"),j3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),z3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,M3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function P3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var n1=["POST","PUT","PATCH","DELETE"];new Set(n1);var B3=["GET",...n1];new Set(B3);var $s=E.createContext(null);$s.displayName="DataRouter";var Zf=E.createContext(null);Zf.displayName="DataRouterState";E.createContext(!1);var r1=E.createContext({isTransitioning:!1});r1.displayName="ViewTransition";var U3=E.createContext(new Map);U3.displayName="Fetchers";var V3=E.createContext(null);V3.displayName="Await";var ei=E.createContext(null);ei.displayName="Navigation";var Hc=E.createContext(null);Hc.displayName="Location";var Oi=E.createContext({outlet:null,matches:[],isDataRoute:!1});Oi.displayName="Route";var Rv=E.createContext(null);Rv.displayName="RouteError";function F3(e,{relative:t}={}){Tt(Gc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:i}=E.useContext(ei),{hash:o,pathname:s,search:c}=Kc(e,{relative:t}),u=s;return n!=="/"&&(u=s==="/"?n:Ri([n,s])),i.createHref({pathname:u,search:c,hash:o})}function Gc(){return E.useContext(Hc)!=null}function Ea(){return Tt(Gc(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Hc).location}var i1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function a1(e){E.useContext(ei).static||E.useLayoutEffect(e)}function H3(){let{isDataRoute:e}=E.useContext(Oi);return e?n4():G3()}function G3(){Tt(Gc(),"useNavigate() may be used only in the context of a <Router> component.");let e=E.useContext($s),{basename:t,navigator:n}=E.useContext(ei),{matches:i}=E.useContext(Oi),{pathname:o}=Ea(),s=JSON.stringify(e1(i)),c=E.useRef(!1);return a1(()=>{c.current=!0}),E.useCallback((f,h={})=>{if(Xr(c.current,i1),!c.current)return;if(typeof f=="number"){n.go(f);return}let p=t1(f,JSON.parse(s),o,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Ri([t,p.pathname])),(h.replace?n.replace:n.push)(p,h.state,h)},[t,n,s,o,e])}E.createContext(null);function Kc(e,{relative:t}={}){let{matches:n}=E.useContext(Oi),{pathname:i}=Ea(),o=JSON.stringify(e1(n));return E.useMemo(()=>t1(e,JSON.parse(o),i,t==="path"),[e,o,i,t])}function K3(e,t){return o1(e,t)}function o1(e,t,n,i,o){Tt(Gc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=E.useContext(ei),{matches:c}=E.useContext(Oi),u=c[c.length-1],f=u?u.params:{},h=u?u.pathname:"/",p=u?u.pathnameBase:"/",g=u&&u.route;{let S=g&&g.path||"";s1(h,!g||S.endsWith("*")||S.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${S}">) 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.
76
+
77
+ Please change the parent <Route path="${S}"> to <Route path="${S==="/"?"*":`${S}/*`}">.`)}let b=Ea(),x;if(t){let S=typeof t=="string"?Ks(t):t;Tt(p==="/"||S.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 "${S.pathname}" was given in the \`location\` prop.`),x=S}else x=b;let w=x.pathname||"/",A=w;if(p!=="/"){let S=p.replace(/^\//,"").split("/");A="/"+w.replace(/^\//,"").split("/").slice(S.length).join("/")}let C=XL(e,{pathname:A});Xr(g||C!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Xr(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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 L=W3(C&&C.map(S=>Object.assign({},S,{params:Object.assign({},f,S.params),pathname:Ri([p,s.encodeLocation?s.encodeLocation(S.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?p:Ri([p,s.encodeLocation?s.encodeLocation(S.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:S.pathnameBase])})),c,n,i,o);return t&&L?E.createElement(Hc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},L):L}function $3(){let e=t4(),t=P3(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:i},s={padding:"2px 4px",backgroundColor:i},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:s},"ErrorBoundary")," or"," ",E.createElement("code",{style:s},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:o},n):null,c)}var q3=E.createElement($3,null),Z3=class extends E.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?E.createElement(Oi.Provider,{value:this.props.routeContext},E.createElement(Rv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Y3({routeContext:e,match:t,children:n}){let i=E.useContext($s);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),E.createElement(Oi.Provider,{value:e},n)}function W3(e,t=[],n=null,i=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,c=n?.errors;if(c!=null){let h=s.findIndex(p=>p.route.id&&c?.[p.route.id]!==void 0);Tt(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),s=s.slice(0,Math.min(s.length,h+1))}let u=!1,f=-1;if(n)for(let h=0;h<s.length;h++){let p=s[h];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(f=h),p.route.id){let{loaderData:g,errors:b}=n,x=p.route.loader&&!g.hasOwnProperty(p.route.id)&&(!b||b[p.route.id]===void 0);if(p.route.lazy||x){u=!0,f>=0?s=s.slice(0,f+1):s=[s[0]];break}}}return s.reduceRight((h,p,g)=>{let b,x=!1,w=null,A=null;n&&(b=c&&p.route.id?c[p.route.id]:void 0,w=p.route.errorElement||q3,u&&(f<0&&g===0?(s1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,A=null):f===g&&(x=!0,A=p.route.hydrateFallbackElement||null)));let C=t.concat(s.slice(0,g+1)),L=()=>{let S;return b?S=w:x?S=A:p.route.Component?S=E.createElement(p.route.Component,null):p.route.element?S=p.route.element:S=h,E.createElement(Y3,{match:p,routeContext:{outlet:h,matches:C,isDataRoute:n!=null},children:S})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?E.createElement(Z3,{location:n.location,revalidation:n.revalidation,component:w,error:b,children:L(),routeContext:{outlet:null,matches:C,isDataRoute:!0},unstable_onError:i}):L()},null)}function Iv(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function X3(e){let t=E.useContext($s);return Tt(t,Iv(e)),t}function Q3(e){let t=E.useContext(Zf);return Tt(t,Iv(e)),t}function J3(e){let t=E.useContext(Oi);return Tt(t,Iv(e)),t}function _v(e){let t=J3(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 e4(){return _v("useRouteId")}function t4(){let e=E.useContext(Rv),t=Q3("useRouteError"),n=_v("useRouteError");return e!==void 0?e:t.errors?.[n]}function n4(){let{router:e}=X3("useNavigate"),t=_v("useNavigate"),n=E.useRef(!1);return a1(()=>{n.current=!0}),E.useCallback(async(o,s={})=>{Xr(n.current,i1),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...s}))},[e,t])}var zA={};function s1(e,t,n){!t&&!zA[e]&&(zA[e]=!0,Xr(!1,n))}E.memo(r4);function r4({routes:e,future:t,state:n,unstable_onError:i}){return o1(e,void 0,n,i,t)}function l1(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 i4({basename:e="/",children:t=null,location:n,navigationType:i="POP",navigator:o,static:s=!1}){Tt(!Gc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),u=E.useMemo(()=>({basename:c,navigator:o,static:s,future:{}}),[c,o,s]);typeof n=="string"&&(n=Ks(n));let{pathname:f="/",search:h="",hash:p="",state:g=null,key:b="default"}=n,x=E.useMemo(()=>{let w=Ii(f,c);return w==null?null:{location:{pathname:w,search:h,hash:p,state:g,key:b},navigationType:i}},[c,f,h,p,g,b,i]);return Xr(x!=null,`<Router basename="${c}"> is not able to match the URL "${f}${h}${p}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:E.createElement(ei.Provider,{value:u},E.createElement(Hc.Provider,{children:t,value:x}))}function a4({children:e,location:t}){return K3(sg(e),t)}function sg(e,t=[]){let n=[];return E.Children.forEach(e,(i,o)=>{if(!E.isValidElement(i))return;let s=[...t,o];if(i.type===E.Fragment){n.push.apply(n,sg(i.props.children,s));return}Tt(i.type===l1,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Tt(!i.props.index||!i.props.children,"An index route cannot have child routes.");let c={id:i.props.id||s.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(c.children=sg(i.props.children,s)),n.push(c)}),n}var tf="get",nf="application/x-www-form-urlencoded";function Yf(e){return e!=null&&typeof e.tagName=="string"}function o4(e){return Yf(e)&&e.tagName.toLowerCase()==="button"}function s4(e){return Yf(e)&&e.tagName.toLowerCase()==="form"}function l4(e){return Yf(e)&&e.tagName.toLowerCase()==="input"}function c4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function u4(e,t){return e.button===0&&(!t||t==="_self")&&!c4(e)}var Cd=null;function d4(){if(Cd===null)try{new FormData(document.createElement("form"),0),Cd=!1}catch{Cd=!0}return Cd}var f4=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ry(e){return e!=null&&!f4.has(e)?(Xr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${nf}"`),null):e}function h4(e,t){let n,i,o,s,c;if(s4(e)){let u=e.getAttribute("action");i=u?Ii(u,t):null,n=e.getAttribute("method")||tf,o=ry(e.getAttribute("enctype"))||nf,s=new FormData(e)}else if(o4(e)||l4(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 f=e.getAttribute("formaction")||u.getAttribute("action");if(i=f?Ii(f,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||tf,o=ry(e.getAttribute("formenctype"))||ry(u.getAttribute("enctype"))||nf,s=new FormData(u,e),!d4()){let{name:h,type:p,value:g}=e;if(p==="image"){let b=h?`${h}.`:"";s.append(`${b}x`,"0"),s.append(`${b}y`,"0")}else h&&s.append(h,g)}}else{if(Yf(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=tf,i=null,o=nf,c=e}return s&&o==="text/plain"&&(c=s,s=void 0),{action:i,method:n.toLowerCase(),encType:o,formData:s,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Nv(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function p4(e,t,n){let i=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return i.pathname==="/"?i.pathname=`_root.${n}`:t&&Ii(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${n}`,i}async function m4(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 y4(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 g4(e,t,n){let i=await Promise.all(e.map(async o=>{let s=t.routes[o.route.id];if(s){let c=await m4(s,n);return c.links?c.links():[]}return[]}));return x4(i.flat(1).filter(y4).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function MA(e,t,n,i,o,s){let c=(f,h)=>n[h]?f.route.id!==n[h].route.id:!0,u=(f,h)=>n[h].pathname!==f.pathname||n[h].route.path?.endsWith("*")&&n[h].params["*"]!==f.params["*"];return s==="assets"?t.filter((f,h)=>c(f,h)||u(f,h)):s==="data"?t.filter((f,h)=>{let p=i.routes[f.route.id];if(!p||!p.hasLoader)return!1;if(c(f,h)||u(f,h))return!0;if(f.route.shouldRevalidate){let g=f.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function v4(e,t,{includeHydrateFallback:n}={}){return b4(e.map(i=>{let o=t.routes[i.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 b4(e){return[...new Set(e)]}function E4(e){let t={},n=Object.keys(e).sort();for(let i of n)t[i]=e[i];return t}function x4(e,t){let n=new Set;return new Set(t),e.reduce((i,o)=>{let s=JSON.stringify(E4(o));return n.has(s)||(n.add(s),i.push({key:s,link:o})),i},[])}function c1(){let e=E.useContext($s);return Nv(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function S4(){let e=E.useContext(Zf);return Nv(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var kv=E.createContext(void 0);kv.displayName="FrameworkContext";function u1(){let e=E.useContext(kv);return Nv(e,"You must render this element inside a <HydratedRouter> element"),e}function A4(e,t){let n=E.useContext(kv),[i,o]=E.useState(!1),[s,c]=E.useState(!1),{onFocus:u,onBlur:f,onMouseEnter:h,onMouseLeave:p,onTouchStart:g}=t,b=E.useRef(null);E.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let A=L=>{L.forEach(S=>{c(S.isIntersecting)})},C=new IntersectionObserver(A,{threshold:.5});return b.current&&C.observe(b.current),()=>{C.disconnect()}}},[e]),E.useEffect(()=>{if(i){let A=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(A)}}},[i]);let x=()=>{o(!0)},w=()=>{o(!1),c(!1)};return n?e!=="intent"?[s,b,{}]:[s,b,{onFocus:ec(u,x),onBlur:ec(f,w),onMouseEnter:ec(h,x),onMouseLeave:ec(p,w),onTouchStart:ec(g,x)}]:[!1,b,{}]}function ec(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function w4({page:e,...t}){let{router:n}=c1(),i=E.useMemo(()=>XL(n.routes,e,n.basename),[n.routes,e,n.basename]);return i?E.createElement(C4,{page:e,matches:i,...t}):null}function T4(e){let{manifest:t,routeModules:n}=u1(),[i,o]=E.useState([]);return E.useEffect(()=>{let s=!1;return g4(e,t,n).then(c=>{s||o(c)}),()=>{s=!0}},[e,t,n]),i}function C4({page:e,matches:t,...n}){let i=Ea(),{manifest:o,routeModules:s}=u1(),{basename:c}=c1(),{loaderData:u,matches:f}=S4(),h=E.useMemo(()=>MA(e,t,f,o,i,"data"),[e,t,f,o,i]),p=E.useMemo(()=>MA(e,t,f,o,i,"assets"),[e,t,f,o,i]),g=E.useMemo(()=>{if(e===i.pathname+i.search+i.hash)return[];let w=new Set,A=!1;if(t.forEach(L=>{let S=o.routes[L.route.id];!S||!S.hasLoader||(!h.some(R=>R.route.id===L.route.id)&&L.route.id in u&&s[L.route.id]?.shouldRevalidate||S.hasClientLoader?A=!0:w.add(L.route.id))}),w.size===0)return[];let C=p4(e,c,"data");return A&&w.size>0&&C.searchParams.set("_routes",t.filter(L=>w.has(L.route.id)).map(L=>L.route.id).join(",")),[C.pathname+C.search]},[c,u,i,o,h,t,e,s]),b=E.useMemo(()=>v4(p,o),[p,o]),x=T4(p);return E.createElement(E.Fragment,null,g.map(w=>E.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),b.map(w=>E.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),x.map(({key:w,link:A})=>E.createElement("link",{key:w,nonce:n.nonce,...A})))}function R4(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var d1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{d1&&(window.__reactRouterVersion="7.9.4")}catch{}function I4({basename:e,children:t,window:n}){let i=E.useRef();i.current==null&&(i.current=m3({window:n,v5Compat:!0}));let o=i.current,[s,c]=E.useState({action:o.action,location:o.location}),u=E.useCallback(f=>{E.startTransition(()=>c(f))},[c]);return E.useLayoutEffect(()=>o.listen(u),[o,u]),E.createElement(i4,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}var f1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,h1=E.forwardRef(function({onClick:t,discover:n="render",prefetch:i="none",relative:o,reloadDocument:s,replace:c,state:u,target:f,to:h,preventScrollReset:p,viewTransition:g,...b},x){let{basename:w}=E.useContext(ei),A=typeof h=="string"&&f1.test(h),C,L=!1;if(typeof h=="string"&&A&&(C=h,d1))try{let U=new URL(window.location.href),F=h.startsWith("//")?new URL(U.protocol+h):new URL(h),H=Ii(F.pathname,w);F.origin===U.origin&&H!=null?h=H+F.search+F.hash:L=!0}catch{Xr(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let S=F3(h,{relative:o}),[R,I,N]=A4(i,b),_=L4(h,{replace:c,state:u,target:f,preventScrollReset:p,relative:o,viewTransition:g});function k(U){t&&t(U),U.defaultPrevented||_(U)}let O=E.createElement("a",{...b,...N,href:C||S,onClick:L||s?t:k,ref:R4(x,I),target:f,"data-discover":!A&&n==="render"?"true":void 0});return R&&!A?E.createElement(E.Fragment,null,O,E.createElement(w4,{page:S})):O});h1.displayName="Link";var _4=E.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:i="",end:o=!1,style:s,to:c,viewTransition:u,children:f,...h},p){let g=Kc(c,{relative:h.relative}),b=Ea(),x=E.useContext(Zf),{navigator:w,basename:A}=E.useContext(ei),C=x!=null&&M4(g)&&u===!0,L=w.encodeLocation?w.encodeLocation(g).pathname:g.pathname,S=b.pathname,R=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(S=S.toLowerCase(),R=R?R.toLowerCase():null,L=L.toLowerCase()),R&&A&&(R=Ii(R,A)||R);const I=L!=="/"&&L.endsWith("/")?L.length-1:L.length;let N=S===L||!o&&S.startsWith(L)&&S.charAt(I)==="/",_=R!=null&&(R===L||!o&&R.startsWith(L)&&R.charAt(L.length)==="/"),k={isActive:N,isPending:_,isTransitioning:C},O=N?t:void 0,U;typeof i=="function"?U=i(k):U=[i,N?"active":null,_?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let F=typeof s=="function"?s(k):s;return E.createElement(h1,{...h,"aria-current":O,className:U,ref:p,style:F,to:c,viewTransition:u},typeof f=="function"?f(k):f)});_4.displayName="NavLink";var N4=E.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:i,replace:o,state:s,method:c=tf,action:u,onSubmit:f,relative:h,preventScrollReset:p,viewTransition:g,...b},x)=>{let w=j4(),A=z4(u,{relative:h}),C=c.toLowerCase()==="get"?"get":"post",L=typeof u=="string"&&f1.test(u),S=R=>{if(f&&f(R),R.defaultPrevented)return;R.preventDefault();let I=R.nativeEvent.submitter,N=I?.getAttribute("formmethod")||c;w(I||R.currentTarget,{fetcherKey:t,method:N,navigate:n,replace:o,state:s,relative:h,preventScrollReset:p,viewTransition:g})};return E.createElement("form",{ref:x,method:C,action:A,onSubmit:i?f:S,...b,"data-discover":!L&&e==="render"?"true":void 0})});N4.displayName="Form";function k4(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function p1(e){let t=E.useContext($s);return Tt(t,k4(e)),t}function L4(e,{target:t,replace:n,state:i,preventScrollReset:o,relative:s,viewTransition:c}={}){let u=H3(),f=Ea(),h=Kc(e,{relative:s});return E.useCallback(p=>{if(u4(p,t)){p.preventDefault();let g=n!==void 0?n:Rc(f)===Rc(h);u(e,{replace:g,state:i,preventScrollReset:o,relative:s,viewTransition:c})}},[f,u,h,n,i,t,e,o,s,c])}var D4=0,O4=()=>`__${String(++D4)}__`;function j4(){let{router:e}=p1("useSubmit"),{basename:t}=E.useContext(ei),n=e4();return E.useCallback(async(i,o={})=>{let{action:s,method:c,encType:u,formData:f,body:h}=h4(i,t);if(o.navigate===!1){let p=o.fetcherKey||O4();await e.fetch(p,n,o.action||s,{preventScrollReset:o.preventScrollReset,formData:f,body:h,formMethod:o.method||c,formEncType:o.encType||u,flushSync:o.flushSync})}else await e.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:f,body:h,formMethod:o.method||c,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function z4(e,{relative:t}={}){let{basename:n}=E.useContext(ei),i=E.useContext(Oi);Tt(i,"useFormAction must be used inside a RouteContext");let[o]=i.matches.slice(-1),s={...Kc(e||".",{relative:t})},c=Ea();if(e==null){s.search=c.search;let u=new URLSearchParams(s.search),f=u.getAll("index");if(f.some(p=>p==="")){u.delete("index"),f.filter(g=>g).forEach(g=>u.append("index",g));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:Ri([n,s.pathname])),Rc(s)}function M4(e,{relative:t}={}){let n=E.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:i}=p1("useViewTransitionState"),o=Kc(e,{relative:t});if(!n.isTransitioning)return!1;let s=Ii(n.currentLocation.pathname,i)||n.currentLocation.pathname,c=Ii(n.nextLocation.pathname,i)||n.nextLocation.pathname;return vf(o.pathname,c)!=null||vf(o.pathname,s)!=null}var So=ER();const P4=Ev(So);function m1(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=m1(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function Wf(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=m1(e))&&(i&&(i+=" "),i+=t);return i}const Lv="-",B4=e=>{const t=V4(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:c=>{const u=c.split(Lv);return u[0]===""&&u.length!==1&&u.shift(),y1(u,t)||U4(c)},getConflictingClassGroupIds:(c,u)=>{const f=n[c]||[];return u&&i[c]?[...f,...i[c]]:f}}},y1=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),o=i?y1(e.slice(1),i):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(Lv);return t.validators.find(({validator:c})=>c(s))?.classGroupId},PA=/^\[(.+)\]$/,U4=e=>{if(PA.test(e)){const t=PA.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},V4=e=>{const{theme:t,classGroups:n}=e,i={nextPart:new Map,validators:[]};for(const o in n)lg(n[o],i,o,t);return i},lg=(e,t,n,i)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:BA(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(F4(o)){lg(o(i),t,n,i);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,c])=>{lg(c,BA(t,s),n,i)})})},BA=(e,t)=>{let n=e;return t.split(Lv).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},F4=e=>e.isThemeGetter,H4=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,i=new Map;const o=(s,c)=>{n.set(s,c),t++,t>e&&(t=0,i=n,n=new Map)};return{get(s){let c=n.get(s);if(c!==void 0)return c;if((c=i.get(s))!==void 0)return o(s,c),c},set(s,c){n.has(s)?n.set(s,c):o(s,c)}}},cg="!",ug=":",G4=ug.length,K4=e=>{const{prefix:t,experimentalParseClassName:n}=e;let i=o=>{const s=[];let c=0,u=0,f=0,h;for(let w=0;w<o.length;w++){let A=o[w];if(c===0&&u===0){if(A===ug){s.push(o.slice(f,w)),f=w+G4;continue}if(A==="/"){h=w;continue}}A==="["?c++:A==="]"?c--:A==="("?u++:A===")"&&u--}const p=s.length===0?o:o.substring(f),g=$4(p),b=g!==p,x=h&&h>f?h-f:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:x}};if(t){const o=t+ug,s=i;i=c=>c.startsWith(o)?s(c.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:c,maybePostfixModifierPosition:void 0}}if(n){const o=i;i=s=>n({className:s,parseClassName:o})}return i},$4=e=>e.endsWith(cg)?e.substring(0,e.length-1):e.startsWith(cg)?e.substring(1):e,q4=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(i=>[i,!0]));return i=>{if(i.length<=1)return i;const o=[];let s=[];return i.forEach(c=>{c[0]==="["||t[c]?(o.push(...s.sort(),c),s=[]):s.push(c)}),o.push(...s.sort()),o}},Z4=e=>({cache:H4(e.cacheSize),parseClassName:K4(e),sortModifiers:q4(e),...B4(e)}),Y4=/\s+/,W4=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:s}=t,c=[],u=e.trim().split(Y4);let f="";for(let h=u.length-1;h>=0;h-=1){const p=u[h],{isExternal:g,modifiers:b,hasImportantModifier:x,baseClassName:w,maybePostfixModifierPosition:A}=n(p);if(g){f=p+(f.length>0?" "+f:f);continue}let C=!!A,L=i(C?w.substring(0,A):w);if(!L){if(!C){f=p+(f.length>0?" "+f:f);continue}if(L=i(w),!L){f=p+(f.length>0?" "+f:f);continue}C=!1}const S=s(b).join(":"),R=x?S+cg:S,I=R+L;if(c.includes(I))continue;c.push(I);const N=o(L,C);for(let _=0;_<N.length;++_){const k=N[_];c.push(R+k)}f=p+(f.length>0?" "+f:f)}return f};function X4(){let e=0,t,n,i="";for(;e<arguments.length;)(t=arguments[e++])&&(n=g1(t))&&(i&&(i+=" "),i+=n);return i}const g1=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=g1(e[i]))&&(n&&(n+=" "),n+=t);return n};function Q4(e,...t){let n,i,o,s=c;function c(f){const h=t.reduce((p,g)=>g(p),e());return n=Z4(h),i=n.cache.get,o=n.cache.set,s=u,u(f)}function u(f){const h=i(f);if(h)return h;const p=W4(f,n);return o(f,p),p}return function(){return s(X4.apply(null,arguments))}}const $t=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},v1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,b1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,J4=/^\d+\/\d+$/,eG=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,tG=/\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$/,nG=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,rG=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,iG=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,fs=e=>J4.test(e),Ge=e=>!!e&&!Number.isNaN(Number(e)),oa=e=>!!e&&Number.isInteger(Number(e)),iy=e=>e.endsWith("%")&&Ge(e.slice(0,-1)),Ai=e=>eG.test(e),aG=()=>!0,oG=e=>tG.test(e)&&!nG.test(e),E1=()=>!1,sG=e=>rG.test(e),lG=e=>iG.test(e),cG=e=>!xe(e)&&!Se(e),uG=e=>qs(e,A1,E1),xe=e=>v1.test(e),Xa=e=>qs(e,w1,oG),ay=e=>qs(e,mG,Ge),UA=e=>qs(e,x1,E1),dG=e=>qs(e,S1,lG),Rd=e=>qs(e,T1,sG),Se=e=>b1.test(e),tc=e=>Zs(e,w1),fG=e=>Zs(e,yG),VA=e=>Zs(e,x1),hG=e=>Zs(e,A1),pG=e=>Zs(e,S1),Id=e=>Zs(e,T1,!0),qs=(e,t,n)=>{const i=v1.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},Zs=(e,t,n=!1)=>{const i=b1.exec(e);return i?i[1]?t(i[1]):n:!1},x1=e=>e==="position"||e==="percentage",S1=e=>e==="image"||e==="url",A1=e=>e==="length"||e==="size"||e==="bg-size",w1=e=>e==="length",mG=e=>e==="number",yG=e=>e==="family-name",T1=e=>e==="shadow",gG=()=>{const e=$t("color"),t=$t("font"),n=$t("text"),i=$t("font-weight"),o=$t("tracking"),s=$t("leading"),c=$t("breakpoint"),u=$t("container"),f=$t("spacing"),h=$t("radius"),p=$t("shadow"),g=$t("inset-shadow"),b=$t("text-shadow"),x=$t("drop-shadow"),w=$t("blur"),A=$t("perspective"),C=$t("aspect"),L=$t("ease"),S=$t("animate"),R=()=>["auto","avoid","all","avoid-page","page","left","right","column"],I=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],N=()=>[...I(),Se,xe],_=()=>["auto","hidden","clip","visible","scroll"],k=()=>["auto","contain","none"],O=()=>[Se,xe,f],U=()=>[fs,"full","auto",...O()],F=()=>[oa,"none","subgrid",Se,xe],H=()=>["auto",{span:["full",oa,Se,xe]},oa,Se,xe],te=()=>[oa,"auto",Se,xe],ce=()=>["auto","min","max","fr",Se,xe],X=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],oe=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...O()],Y=()=>[fs,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],$=()=>[e,Se,xe],me=()=>[...I(),VA,UA,{position:[Se,xe]}],Ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],j=()=>["auto","cover","contain",hG,uG,{size:[Se,xe]}],P=()=>[iy,tc,Xa],J=()=>["","none","full",h,Se,xe],ne=()=>["",Ge,tc,Xa],ue=()=>["solid","dashed","dotted","double"],ye=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[Ge,iy,VA,UA],Re=()=>["","none",w,Se,xe],Ae=()=>["none",Ge,Se,xe],ze=()=>["none",Ge,Se,xe],Ye=()=>[Ge,Se,xe],et=()=>[fs,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ai],breakpoint:[Ai],color:[aG],container:[Ai],"drop-shadow":[Ai],ease:["in","out","in-out"],font:[cG],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ai],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ai],shadow:[Ai],spacing:["px",Ge],text:[Ai],"text-shadow":[Ai],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",fs,xe,Se,C]}],container:["container"],columns:[{columns:[Ge,xe,Se,u]}],"break-after":[{"break-after":R()}],"break-before":[{"break-before":R()}],"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:N()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:k()}],"overscroll-x":[{"overscroll-x":k()}],"overscroll-y":[{"overscroll-y":k()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:U()}],"inset-x":[{"inset-x":U()}],"inset-y":[{"inset-y":U()}],start:[{start:U()}],end:[{end:U()}],top:[{top:U()}],right:[{right:U()}],bottom:[{bottom:U()}],left:[{left:U()}],visibility:["visible","invisible","collapse"],z:[{z:[oa,"auto",Se,xe]}],basis:[{basis:[fs,"full","auto",u,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ge,fs,"auto","initial","none",xe]}],grow:[{grow:["",Ge,Se,xe]}],shrink:[{shrink:["",Ge,Se,xe]}],order:[{order:[oa,"first","last","none",Se,xe]}],"grid-cols":[{"grid-cols":F()}],"col-start-end":[{col:H()}],"col-start":[{"col-start":te()}],"col-end":[{"col-end":te()}],"grid-rows":[{"grid-rows":F()}],"row-start-end":[{row:H()}],"row-start":[{"row-start":te()}],"row-end":[{"row-end":te()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ce()}],"auto-rows":[{"auto-rows":ce()}],gap:[{gap:O()}],"gap-x":[{"gap-x":O()}],"gap-y":[{"gap-y":O()}],"justify-content":[{justify:[...X(),"normal"]}],"justify-items":[{"justify-items":[...oe(),"normal"]}],"justify-self":[{"justify-self":["auto",...oe()]}],"align-content":[{content:["normal",...X()]}],"align-items":[{items:[...oe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...oe(),{baseline:["","last"]}]}],"place-content":[{"place-content":X()}],"place-items":[{"place-items":[...oe(),"baseline"]}],"place-self":[{"place-self":["auto",...oe()]}],p:[{p:O()}],px:[{px:O()}],py:[{py:O()}],ps:[{ps:O()}],pe:[{pe:O()}],pt:[{pt:O()}],pr:[{pr:O()}],pb:[{pb:O()}],pl:[{pl:O()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":O()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":O()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],w:[{w:[u,"screen",...Y()]}],"min-w":[{"min-w":[u,"screen","none",...Y()]}],"max-w":[{"max-w":[u,"screen","none","prose",{screen:[c]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",n,tc,Xa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Se,ay]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",iy,xe]}],"font-family":[{font:[fG,xe,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Se,xe]}],"line-clamp":[{"line-clamp":[Ge,"none",Se,ay]}],leading:[{leading:[s,...O()]}],"list-image":[{"list-image":["none",Se,xe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Se,xe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:$()}],"text-color":[{text:$()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ge,"from-font","auto",Se,Xa]}],"text-decoration-color":[{decoration:$()}],"underline-offset":[{"underline-offset":[Ge,"auto",Se,xe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:O()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Se,xe]}],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",Se,xe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:me()}],"bg-repeat":[{bg:Ee()}],"bg-size":[{bg:j()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},oa,Se,xe],radial:["",Se,xe],conic:[oa,Se,xe]},pG,dG]}],"bg-color":[{bg:$()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:$()}],"gradient-via":[{via:$()}],"gradient-to":[{to:$()}],rounded:[{rounded:J()}],"rounded-s":[{"rounded-s":J()}],"rounded-e":[{"rounded-e":J()}],"rounded-t":[{"rounded-t":J()}],"rounded-r":[{"rounded-r":J()}],"rounded-b":[{"rounded-b":J()}],"rounded-l":[{"rounded-l":J()}],"rounded-ss":[{"rounded-ss":J()}],"rounded-se":[{"rounded-se":J()}],"rounded-ee":[{"rounded-ee":J()}],"rounded-es":[{"rounded-es":J()}],"rounded-tl":[{"rounded-tl":J()}],"rounded-tr":[{"rounded-tr":J()}],"rounded-br":[{"rounded-br":J()}],"rounded-bl":[{"rounded-bl":J()}],"border-w":[{border:ne()}],"border-w-x":[{"border-x":ne()}],"border-w-y":[{"border-y":ne()}],"border-w-s":[{"border-s":ne()}],"border-w-e":[{"border-e":ne()}],"border-w-t":[{"border-t":ne()}],"border-w-r":[{"border-r":ne()}],"border-w-b":[{"border-b":ne()}],"border-w-l":[{"border-l":ne()}],"divide-x":[{"divide-x":ne()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ne()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:$()}],"border-color-x":[{"border-x":$()}],"border-color-y":[{"border-y":$()}],"border-color-s":[{"border-s":$()}],"border-color-e":[{"border-e":$()}],"border-color-t":[{"border-t":$()}],"border-color-r":[{"border-r":$()}],"border-color-b":[{"border-b":$()}],"border-color-l":[{"border-l":$()}],"divide-color":[{divide:$()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ge,Se,xe]}],"outline-w":[{outline:["",Ge,tc,Xa]}],"outline-color":[{outline:$()}],shadow:[{shadow:["","none",p,Id,Rd]}],"shadow-color":[{shadow:$()}],"inset-shadow":[{"inset-shadow":["none",g,Id,Rd]}],"inset-shadow-color":[{"inset-shadow":$()}],"ring-w":[{ring:ne()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:$()}],"ring-offset-w":[{"ring-offset":[Ge,Xa]}],"ring-offset-color":[{"ring-offset":$()}],"inset-ring-w":[{"inset-ring":ne()}],"inset-ring-color":[{"inset-ring":$()}],"text-shadow":[{"text-shadow":["none",b,Id,Rd]}],"text-shadow-color":[{"text-shadow":$()}],opacity:[{opacity:[Ge,Se,xe]}],"mix-blend":[{"mix-blend":[...ye(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ye()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ge]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":$()}],"mask-image-linear-to-color":[{"mask-linear-to":$()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":$()}],"mask-image-t-to-color":[{"mask-t-to":$()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":$()}],"mask-image-r-to-color":[{"mask-r-to":$()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":$()}],"mask-image-b-to-color":[{"mask-b-to":$()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":$()}],"mask-image-l-to-color":[{"mask-l-to":$()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":$()}],"mask-image-x-to-color":[{"mask-x-to":$()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":$()}],"mask-image-y-to-color":[{"mask-y-to":$()}],"mask-image-radial":[{"mask-radial":[Se,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":$()}],"mask-image-radial-to-color":[{"mask-radial-to":$()}],"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":I()}],"mask-image-conic-pos":[{"mask-conic":[Ge]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":$()}],"mask-image-conic-to-color":[{"mask-conic-to":$()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:me()}],"mask-repeat":[{mask:Ee()}],"mask-size":[{mask:j()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Se,xe]}],filter:[{filter:["","none",Se,xe]}],blur:[{blur:Re()}],brightness:[{brightness:[Ge,Se,xe]}],contrast:[{contrast:[Ge,Se,xe]}],"drop-shadow":[{"drop-shadow":["","none",x,Id,Rd]}],"drop-shadow-color":[{"drop-shadow":$()}],grayscale:[{grayscale:["",Ge,Se,xe]}],"hue-rotate":[{"hue-rotate":[Ge,Se,xe]}],invert:[{invert:["",Ge,Se,xe]}],saturate:[{saturate:[Ge,Se,xe]}],sepia:[{sepia:["",Ge,Se,xe]}],"backdrop-filter":[{"backdrop-filter":["","none",Se,xe]}],"backdrop-blur":[{"backdrop-blur":Re()}],"backdrop-brightness":[{"backdrop-brightness":[Ge,Se,xe]}],"backdrop-contrast":[{"backdrop-contrast":[Ge,Se,xe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ge,Se,xe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ge,Se,xe]}],"backdrop-invert":[{"backdrop-invert":["",Ge,Se,xe]}],"backdrop-opacity":[{"backdrop-opacity":[Ge,Se,xe]}],"backdrop-saturate":[{"backdrop-saturate":[Ge,Se,xe]}],"backdrop-sepia":[{"backdrop-sepia":["",Ge,Se,xe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":O()}],"border-spacing-x":[{"border-spacing-x":O()}],"border-spacing-y":[{"border-spacing-y":O()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Se,xe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ge,"initial",Se,xe]}],ease:[{ease:["linear","initial",L,Se,xe]}],delay:[{delay:[Ge,Se,xe]}],animate:[{animate:["none",S,Se,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,Se,xe]}],"perspective-origin":[{"perspective-origin":N()}],rotate:[{rotate:Ae()}],"rotate-x":[{"rotate-x":Ae()}],"rotate-y":[{"rotate-y":Ae()}],"rotate-z":[{"rotate-z":Ae()}],scale:[{scale:ze()}],"scale-x":[{"scale-x":ze()}],"scale-y":[{"scale-y":ze()}],"scale-z":[{"scale-z":ze()}],"scale-3d":["scale-3d"],skew:[{skew:Ye()}],"skew-x":[{"skew-x":Ye()}],"skew-y":[{"skew-y":Ye()}],transform:[{transform:[Se,xe,"","none","gpu","cpu"]}],"transform-origin":[{origin:N()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:et()}],"translate-x":[{"translate-x":et()}],"translate-y":[{"translate-y":et()}],"translate-z":[{"translate-z":et()}],"translate-none":["translate-none"],accent:[{accent:$()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:$()}],"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",Se,xe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":O()}],"scroll-mx":[{"scroll-mx":O()}],"scroll-my":[{"scroll-my":O()}],"scroll-ms":[{"scroll-ms":O()}],"scroll-me":[{"scroll-me":O()}],"scroll-mt":[{"scroll-mt":O()}],"scroll-mr":[{"scroll-mr":O()}],"scroll-mb":[{"scroll-mb":O()}],"scroll-ml":[{"scroll-ml":O()}],"scroll-p":[{"scroll-p":O()}],"scroll-px":[{"scroll-px":O()}],"scroll-py":[{"scroll-py":O()}],"scroll-ps":[{"scroll-ps":O()}],"scroll-pe":[{"scroll-pe":O()}],"scroll-pt":[{"scroll-pt":O()}],"scroll-pr":[{"scroll-pr":O()}],"scroll-pb":[{"scroll-pb":O()}],"scroll-pl":[{"scroll-pl":O()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Se,xe]}],fill:[{fill:["none",...$()]}],"stroke-w":[{stroke:[Ge,tc,Xa,ay]}],stroke:[{stroke:["none",...$()]}],"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"]}},C1=Q4(gG),fe=(...e)=>C1(Wf(e)),FA=({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",role:"img","aria-label":"Spinner",className:fe("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"})]})]})}),Ms=({children:e,isLoading:t=!0,keepChildren:n=!1,className:i,...o})=>y.jsx(y.Fragment,{children:t&&n?y.jsxs("div",{className:"relative size-full",children:[y.jsx("div",{className:fe("absolute top-0 left-0 flex size-full max-h-screen max-w-[100vw] flex-1 items-center justify-center",i),role:"status","aria-label":"Animated icon, meaning that the website is processing",...o,children:y.jsx(FA,{className:"size-10 max-h-full max-w-full"})}),e]}):t?y.jsx("div",{className:fe("flex size-full max-h-screen max-w-[100vw] flex-1 items-center justify-center",i),role:"status","aria-label":"Animated icon, meaning that the website is processing",...o,children:y.jsx(FA,{className:"size-10 max-h-full max-w-full"})}):e??y.jsx(y.Fragment,{})}),HA=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,GA=Wf,yn=(e,t)=>n=>{var i;if(t?.variants==null)return GA(e,n?.class,n?.className);const{variants:o,defaultVariants:s}=t,c=Object.keys(o).map(h=>{const p=n?.[h],g=s?.[h];if(p===null)return null;const b=HA(p)||HA(g);return o[h][b]}),u=n&&Object.entries(n).reduce((h,p)=>{let[g,b]=p;return b===void 0||(h[g]=b),h},{}),f=t==null||(i=t.compoundVariants)===null||i===void 0?void 0:i.reduce((h,p)=>{let{class:g,className:b,...x}=p;return Object.entries(x).every(w=>{let[A,C]=w;return Array.isArray(C)?C.includes({...s,...u}[A]):{...s,...u}[A]===C})?[...h,g,b]:h},[]);return GA(e,c,f,n?.class,n?.className)};let Je=function(e){return 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}({}),mc=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const oy=yn("",{variants:{size:{[`${Je.SM}`]:"-translate-y-1/2 absolute top-1/2 size-3",[`${Je.MD}`]:"-translate-y-1/2 absolute top-1/2 size-4",[`${Je.LG}`]:"-translate-y-1/2 absolute top-1/2 size-5",[`${Je.XL}`]:"-translate-y-1/2 absolute top-1/2 size-6",[`${Je.ICON_SM}`]:"size-3",[`${Je.ICON_MD}`]:"size-4",[`${Je.ICON_LG}`]:"size-5",[`${Je.ICON_XL}`]:"size-6"},position:{[`${mc.LEFT}`]:"left-3",[`${mc.RIGHT}`]:"right-3"}},defaultVariants:{size:Je.MD}});let Ve=function(e){return e.DEFAULT="default",e.NONE="none",e.OUTLINE="outline",e.LINK="link",e.INVISIBLE_LINK="invisible-link",e.HOVERABLE="hoverable",e.INPUT="input",e}({}),Pe=function(e){return 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}({}),Tr=function(e){return e.LEFT="left",e.CENTER="center",e.RIGHT="right",e}({});const vG=yn("relative cursor-pointer truncate whitespace-nowrap font-medium transition-all duration-200 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50",{variants:{size:{[`${Je.SM}`]:"min-h-7 px-3 text-xs max-md:py-1",[`${Je.MD}`]:"min-h-8 px-6 text-sm max-md:py-2",[`${Je.LG}`]:"min-h-10 px-8 text-lg max-md:py-3",[`${Je.XL}`]:"min-h-11 px-10 text-xl max-md:py-4",[`${Je.ICON_SM}`]:"p-1.5",[`${Je.ICON_MD}`]:"p-1.5",[`${Je.ICON_LG}`]:"p-2",[`${Je.ICON_XL}`]:"p-3"},color:{[`${Pe.PRIMARY}`]:"text-primary *:text-text-light focus:ring-primary-500 aria-[selected=true]:ring-6 aria-[selected=true]:ring-primary-500/50",[`${Pe.SECONDARY}`]:"text-secondary *:text-text-light focus:ring-secondary-500 aria-[selected=true]:ring-6 aria-[selected=true]:ring-secondary-500/50",[`${Pe.DESTRUCTIVE}`]:"text-destructive *:text-text-light focus:ring-destructive-500 aria-[selected=true]:ring-6 aria-[selected=true]:ring-destructive-500/50",[`${Pe.NEUTRAL}`]:"text-neutral *:text-text-light focus:ring-neutral-500 aria-[selected=true]:ring-6 aria-[selected=true]:ring-neutral-500/50",[`${Pe.LIGHT}`]:"text-white *:text-text-light focus:ring-white/50 aria-[selected=true]:ring-6 aria-[selected=true]:ring-white/50",[`${Pe.DARK}`]:"text-neutral-800 *:text-text-light focus:ring-neutral-800/50 aria-[selected=true]:ring-6 aria-[selected=true]:ring-neutral-800/50",[`${Pe.TEXT}`]:"text-text *:text-text-opposite focus:ring-neutral-500 aria-[selected=true]:ring-6 aria-[selected=true]:ring-neutral-500/50",[`${Pe.TEXT_INVERSE}`]:"text-text-opposite *:text-text focus:ring-neutral-500 aria-[selected=true]:ring-6 aria-[selected=true]:ring-neutral-500/50",[`${Pe.ERROR}`]:"text-error *:text-text-light focus:ring-error/50 aria-[selected=true]:ring-6 aria-[selected=true]:ring-error/50",[`${Pe.SUCCESS}`]:"text-success *:text-text-light focus:ring-success/50 aria-[selected=true]:ring-6 aria-[selected=true]:ring-success/50",[`${Pe.CUSTOM}`]:"focus:ring-primary-500 aria-[selected=true]:ring-6 aria-[selected=true]:ring-primary-500/50"},variant:{[`${Ve.DEFAULT}`]:"rounded-lg bg-current hover:bg-current/90",[`${Ve.NONE}`]:"border-none bg-current/0 text-inherit hover:bg-current/0",[`${Ve.OUTLINE}`]:"*:!text-current rounded-lg border-[1.5px] border-current bg-current/0 hover:bg-current/30",[`${Ve.LINK}`]:"*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent hover:underline",[`${Ve.INVISIBLE_LINK}`]:"*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent",[`${Ve.HOVERABLE}`]:"*:!text-current rounded-lg border-none bg-current/0 transition hover:bg-current/10 aria-[current]:bg-current/5",[`${Ve.INPUT}`]:["*:!text-current w-full select-text resize-none rounded-xl border-2 bg-input-background text-input-text 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","disabled:opacity-50"]},textAlign:{[`${Tr.LEFT}`]:"text-left",[`${Tr.CENTER}`]:"text-center",[`${Tr.RIGHT}`]:"text-right"},isFullWidth:{true:"w-full",false:""},hasIconLeft:{true:"px-12",false:""},hasIconRight:{true:"pr-8",false:""}},defaultVariants:{variant:Ve.DEFAULT,size:Je.MD,color:Pe.CUSTOM,textAlign:Tr.CENTER,isFullWidth:!1,hasIconRight:!1,hasIconLeft:!1}}),lt=({variant:e,size:t,color:n,children:i,Icon:o,IconRight:s,iconClassName:c,isLoading:u=!1,isActive:f=!1,isSelected:h=!1,isFullWidth:p=!1,textAlign:g,disabled:b,label:x,className:w,type:A="button","aria-describedby":C,"aria-expanded":L,"aria-haspopup":S,"aria-pressed":R,...I})=>{const N=e===Ve.LINK||e===Ve.INVISIBLE_LINK,_=!i&&(o||s),k={"aria-label":_?x:void 0,"aria-labelledby":void 0,"aria-describedby":C,"aria-expanded":L,"aria-haspopup":S,"aria-pressed":f!==void 0?f:R,"aria-busy":u,"aria-current":f?"page":void 0,"aria-disabled":b||u,"aria-selected":h};return y.jsxs("button",{disabled:u||b,role:N?"link":"button",type:A,className:vG({variant:e,size:t,color:n,isFullWidth:p,textAlign:g??(s?Tr.LEFT:Tr.CENTER),hasIconLeft:!!(typeof i<"u"&&(typeof o<"u"||u)),hasIconRight:typeof i<"u"&&typeof s<"u",className:w}),...k,...I,children:[o&&!u&&y.jsx(o,{className:oy({size:t,className:c,position:mc.LEFT}),"aria-hidden":"true"}),y.jsx(Ms,{className:oy({size:t,className:c,position:mc.LEFT}),isLoading:u,"aria-hidden":"true","data-testid":"loader"}),i&&y.jsx("span",{children:i}),!i&&_&&y.jsx("span",{className:"sr-only",children:x}),s&&y.jsx(s,{className:oy({size:t,className:c,position:mc.RIGHT}),"aria-hidden":"true"})]})},Dv=({children:e,isHidden:t,className:n="",isOverable:i=!1,isFocusable:o=!1,minHeight:s=0,...c})=>y.jsx("div",{"aria-hidden":o?t:void 0,tabIndex:o?0:void 0,role:o?"button":"none",className:fe("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",i&&"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),...c,children:y.jsx("div",{style:{minHeight:`${s}px`},className:fe(i&&"group-hover/height-smoother:visible",o&&"group-focus/height-smoother:visible",n),children:e})});/**
78
+ * @license lucide-react v0.547.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 bG=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),EG=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,i)=>i?i.toUpperCase():n.toLowerCase()),KA=e=>{const t=EG(e);return t.charAt(0).toUpperCase()+t.slice(1)},R1=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim(),xG=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
83
+ * @license lucide-react v0.547.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
+ */var SG={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"};/**
88
+ * @license lucide-react v0.547.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 AG=E.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:o="",children:s,iconNode:c,...u},f)=>E.createElement("svg",{ref:f,...SG,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:R1("lucide",o),...!s&&!xG(u)&&{"aria-hidden":"true"},...u},[...c.map(([h,p])=>E.createElement(h,p)),...Array.isArray(s)?s:[s]]));/**
93
+ * @license lucide-react v0.547.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 vt=(e,t)=>{const n=E.forwardRef(({className:i,...o},s)=>E.createElement(AG,{ref:s,iconNode:t,className:R1(`lucide-${bG(KA(e))}`,`lucide-${e}`,i),...o}));return n.displayName=KA(e),n};/**
98
+ * @license lucide-react v0.547.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 wG=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],TG=vt("arrow-left",wG);/**
103
+ * @license lucide-react v0.547.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 CG=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],RG=vt("arrow-up-from-line",CG);/**
108
+ * @license lucide-react v0.547.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 IG=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Ys=vt("check",IG);/**
113
+ * @license lucide-react v0.547.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 _G=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],I1=vt("chevron-down",_G);/**
118
+ * @license lucide-react v0.547.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 NG=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],kG=vt("chevron-left",NG);/**
123
+ * @license lucide-react v0.547.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 LG=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],bf=vt("chevron-right",LG);/**
128
+ * @license lucide-react v0.547.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 DG=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],OG=vt("chevron-up",DG);/**
133
+ * @license lucide-react v0.547.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 jG=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],zG=vt("chevrons-up-down",jG);/**
138
+ * @license lucide-react v0.547.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 MG=[["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"}]],PG=vt("copy-check",MG);/**
143
+ * @license lucide-react v0.547.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 BG=[["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"}]],UG=vt("copy",BG);/**
148
+ * @license lucide-react v0.547.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 VG=[["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"}]],FG=vt("download",VG);/**
153
+ * @license lucide-react v0.547.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 HG=[["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"}]],GG=vt("external-link",HG);/**
158
+ * @license lucide-react v0.547.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 KG=[["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"}]],$G=vt("eye-off",KG);/**
163
+ * @license lucide-react v0.547.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 qG=[["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"}]],ZG=vt("eye",qG);/**
168
+ * @license lucide-react v0.547.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 YG=[["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"}]],WG=vt("globe",YG);/**
173
+ * @license lucide-react v0.547.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 XG=[["path",{d:"M11 19H5v-6",key:"8awifj"}],["path",{d:"M13 5h6v6",key:"7voy1q"}],["path",{d:"M19 5 5 19",key:"wwaj1z"}]],QG=vt("move-diagonal",XG);/**
178
+ * @license lucide-react v0.547.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 JG=[["path",{d:"M18 8L22 12L18 16",key:"1r0oui"}],["path",{d:"M2 12H22",key:"1m8cig"}]],eK=vt("move-right",JG);/**
183
+ * @license lucide-react v0.547.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 tK=[["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"}]],nK=vt("move-vertical",tK);/**
188
+ * @license lucide-react v0.547.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 rK=[["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"}]],_1=vt("pencil",rK);/**
193
+ * @license lucide-react v0.547.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 iK=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Xf=vt("plus",iK);/**
198
+ * @license lucide-react v0.547.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 aK=[["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"}]],oK=vt("rotate-ccw",aK);/**
203
+ * @license lucide-react v0.547.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 sK=[["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"}]],$A=vt("save",sK);/**
208
+ * @license lucide-react v0.547.0 - ISC
209
+ *
210
+ * This source code is licensed under the ISC license.
211
+ * See the LICENSE file in the root directory of this source tree.
212
+ */const lK=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],cK=vt("search",lK);/**
213
+ * @license lucide-react v0.547.0 - ISC
214
+ *
215
+ * This source code is licensed under the ISC license.
216
+ * See the LICENSE file in the root directory of this source tree.
217
+ */const uK=[["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"}]],Qf=vt("trash",uK);/**
218
+ * @license lucide-react v0.547.0 - ISC
219
+ *
220
+ * This source code is licensed under the ISC license.
221
+ * See the LICENSE file in the root directory of this source tree.
222
+ */const dK=[["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"}]],N1=vt("wand-sparkles",dK);/**
223
+ * @license lucide-react v0.547.0 - ISC
224
+ *
225
+ * This source code is licensed under the ISC license.
226
+ * See the LICENSE file in the root directory of this source tree.
227
+ */const fK=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Ao=vt("x",fK),k1=({children:e,header:t,isOpen:n,defaultIsOpen:i=!1,onToggle:o,onClick:s,disabled:c=!1,contentClassName:u,headerClassName:f,contentId:h,"aria-label":p,...g})=>{const b=n!==void 0,[x,w]=E.useState(i),A=E.useId(),C=b?n:x,L=!C,S=h??`${A}-accordion-content`,R=N=>{if(c)return;const _=!C;b||w(_),o?.(_),s?.(N)},I=N=>{(N.key==="Enter"||N.key===" ")&&(N.preventDefault(),R(N))};return y.jsxs("div",{className:"w-full",children:[y.jsx(lt,{variant:Ve.HOVERABLE,color:Pe.TEXT,onClick:R,onKeyDown:I,disabled:c,isFullWidth:!0,className:fe("flex items-center justify-between gap-2",f),IconRight:I1,iconClassName:fe("transform transition-transform duration-500 ease-in-out",C?"rotate-0":"-rotate-180"),"aria-expanded":C,"aria-controls":S,"aria-label":p,role:"button",...g,children:t}),y.jsx(Dv,{id:S,tabIndex:L?-1:void 0,isHidden:L,className:u,role:"region","aria-labelledby":S,children:e})]})};let Vn=function(e){return e.PRIMARY="primary",e.SECONDARY="secondary",e.DESTRUCTIVE="destructive",e.SUCCESS="success",e.ERROR="error",e.NEUTRAL="neutral",e.LIGHT="light",e.DARK="dark",e.TEXT="text",e.CUSTOM="custom",e}({}),gs=function(e){return e.DEFAULT="default",e.NONE="none",e.OUTLINE="outline",e.HOVERABLE="hoverable",e}({}),cc=function(e){return e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e}({});const hK=yn("inline-flex items-center rounded-md border px-2.5 py-0.5 font-semibold text-xs transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{color:{[Vn.PRIMARY]:"border-primary bg-primary text-primary hover:bg-primary-500",[Vn.SECONDARY]:"border-secondary bg-secondary text-secondary hover:bg-secondary-300",[Vn.DESTRUCTIVE]:"border-destructive bg-destructive text-destructive hover:bg-destructive-500",[Vn.SUCCESS]:"border-success bg-success text-success hover:bg-success-500",[Vn.ERROR]:"border-error bg-error text-error hover:bg-error-500",[Vn.NEUTRAL]:"border-neutral bg-neutral text-neutral hover:bg-neutral-600",[Vn.LIGHT]:"border-white bg-white text-white hover:bg-neutral-500",[Vn.DARK]:"border-neutral-800 bg-neutral-800 text-neutral-800 hover:bg-neutral-900",[Vn.TEXT]:"border-text bg-text text-text hover:opacity-80",[Vn.CUSTOM]:""},variant:{[gs.DEFAULT]:"rounded-lg text-text-opposite",[gs.NONE]:"border-none bg-opacity-0 text-inherit hover:bg-opacity-0",[gs.OUTLINE]:"rounded-lg border-[1.5px] bg-opacity-0 hover:bg-opacity-30",[gs.HOVERABLE]:"rounded-lg border-none bg-opacity-0 transition hover:bg-opacity-10"},size:{[cc.SMALL]:"px-2 py-0.5 text-xs",[cc.MEDIUM]:"px-2.5 py-0.5 text-xs",[cc.LARGE]:"px-3 py-1 text-sm"}},defaultVariants:{variant:gs.DEFAULT,color:Vn.PRIMARY,size:cc.MEDIUM}}),pK=({className:e,variant:t=gs.DEFAULT,color:n=Vn.PRIMARY,size:i=cc.MEDIUM,children:o,clickable:s=!1,dismissible:c=!1,onClick:u,onDismiss:f,role:h,tabIndex:p,"aria-label":g,...b})=>{const x=s?"button":"span",w=C=>{s&&u&&(C.key==="Enter"||C.key===" ")&&(C.preventDefault(),u(C))},A=C=>{C.stopPropagation(),f?.()};return y.jsxs(x,{className:fe(hK({variant:t,color:n,size:i}),s&&"cursor-pointer hover:opacity-80 focus-visible:ring-2 focus-visible:ring-offset-2",c&&"pr-1",e),onClick:s?u:void 0,onKeyDown:s?w:void 0,role:h||(s?"button":"status"),tabIndex:s?p??0:p,"aria-label":g||(s?`${o} button`:void 0),...b,children:[o,c&&y.jsx("button",{type:"button",className:"ml-1 inline-flex h-4 w-4 items-center justify-center rounded-full hover:bg-black/10 focus:outline-none focus:ring-1 focus:ring-offset-1",onClick:A,"aria-label":`Remove ${o} badge`,children:y.jsxs("svg",{className:"size-3",viewBox:"0 0 20 20",fill:"currentColor","aria-label":"Remove badge",children:[y.jsx("title",{children:"Remove badge"}),y.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})]})})]})};let eo=function(e){return e.DEFAULT="default",e.INVISIBLE_LINK="invisible-link",e.BUTTON="button",e.BUTTON_OUTLINED="button-outlined",e.HOVERABLE="hoverable",e}({}),_n=function(e){return 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}({}),_d=function(e){return e.DEFAULT="default",e.TRUE="true",e.FALSE="false",e}({});const mK=yn("gap-3 transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{[`${eo.DEFAULT}`]:"h-auto justify-start border-inherit bg-current/0 px-1 underline-offset-4 hover:bg-current/0 hover:underline",[`${eo.INVISIBLE_LINK}`]:"h-auto justify-start border-inherit bg-current/0 px-1 underline-offset-4 hover:bg-current/0",[`${eo.BUTTON}`]:"flex min-h-8 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-current px-6 font-medium text-sm transition *:text-text-opposite focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 max-md:py-2",[`${eo.BUTTON_OUTLINED}`]:"flex min-h-8 items-center justify-center gap-2 whitespace-nowrap rounded-lg border-[1.5px] px-6 font-medium text-sm transition hover:bg-current/30 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 max-md:py-2",[`${eo.HOVERABLE}`]:"block rounded-lg border-none bg-current/0 transition hover:bg-current/20 aria-[current]:bg-current/5"},color:{[`${_n.PRIMARY}`]:"text-primary",[`${_n.SECONDARY}`]:"text-secondary",[`${_n.DESTRUCTIVE}`]:"text-destructive",[`${_n.NEUTRAL}`]:"text-neutral",[`${_n.LIGHT}`]:"text-white",[`${_n.DARK}`]:"text-neutral-800",[`${_n.TEXT}`]:"text-text",[`${_n.TEXT_INVERSE}`]:"text-text-opposite",[`${_n.ERROR}`]:"text-error",[`${_n.SUCCESS}`]:"text-success",[`${_n.CUSTOM}`]:""},underlined:{[_d.DEFAULT]:"",[_d.TRUE]:"underline",[_d.FALSE]:"no-underline"}},defaultVariants:{variant:eo.DEFAULT,color:_n.PRIMARY,underlined:_d.DEFAULT}}),yK=({href:e,isExternalLink:t})=>{const n=typeof e=="string"&&e.trim()!=="";return t===!0||typeof t>"u"&&n&&/^https?:\/\//.test(e)},Ov=e=>{const{variant:t=eo.DEFAULT,color:n=_n.PRIMARY,children:i,label:o,className:s,isActive:c,underlined:u,locale:f,isExternalLink:h,isPageSection:p,href:g,...b}=e,x=h??yK(e),w=p??g?.startsWith("#")??!1,A=typeof i=="string",C=x?"noopener noreferrer nofollow":void 0,L=x?"_blank":"_self";return y.jsxs("a",{href:f&&g&&!x&&!w?NH(g,f):g,"aria-label":o,rel:C,target:L,"aria-current":c?"page":void 0,className:fe(mK({variant:t,color:n,underlined:u,className:s})),...b,children:[t==="button"?y.jsx("span",{children:i}):i,x&&A&&y.jsx(GG,{className:"ml-2 inline-block size-4"}),w&&y.jsx(eK,{className:"ml-2 inline-block size-4"})]})},gK=yn("flex flex-row flex-wrap items-center text-sm",{variants:{size:{small:"gap-1 text-xs",medium:"gap-2 text-sm",large:"gap-3 text-base"},spacing:{compact:"gap-1",normal:"gap-2",loose:"gap-4"}},defaultVariants:{size:"medium",spacing:"normal"}}),vK=({href:e,lang:t,children:n,onClick:i,color:o,position:s,locale:c,className:u,...f})=>{const h=xv("breadcrumb").linkLabel;return y.jsxs(y.Fragment,{children:[y.jsx(Ov,{href:e,locale:c,color:o,onClick:i,itemProp:"item",isExternalLink:!1,itemScope:!0,itemType:"https://schema.org/WebPage",...f,label:`${h} ${n}`,itemID:e,children:y.jsx("span",{itemProp:"name",children:n})}),y.jsx("meta",{itemProp:"position",content:s.toString()})]})},bK=({children:e,onClick:t,color:n,position:i,className:o,...s})=>{const{linkLabel:c}=jt("breadcrumb");return y.jsxs(y.Fragment,{children:[y.jsx(lt,{onClick:t,variant:Ve.LINK,label:`${c} ${e}`,color:n,itemProp:"item",...s,children:y.jsx("span",{itemProp:"name",children:e})}),y.jsx("meta",{itemProp:"position",content:i.toString()})]})},EK=({children:e,position:t,className:n,...i})=>y.jsxs("span",{itemProp:"item",className:fe("inline-flex items-center","font-medium text-neutral-700","transition-colors duration-200",n),children:[y.jsx("span",{itemProp:"name",...i,children:e}),y.jsx("meta",{itemProp:"position",content:t.toString()})]}),xK=({links:e,className:t,color:n=_n.TEXT,locale:i,elementType:o="page",separator:s=y.jsx(bf,{size:10}),ariaLabel:c="breadcrumb",includeStructuredData:u=!0,maxItems:f,size:h,spacing:p,...g})=>{const b=f&&e.length>f?[...e.slice(0,1),"...",...e.slice(-(f-2))]:e;return y.jsx("nav",{"aria-label":c,children:y.jsx("ol",{className:fe(gK({size:h,spacing:p}),t),...u&&{itemScope:!0,itemType:"http://schema.org/BreadcrumbList"},...g,children:b.map((x,w)=>{const A=w===b.length-1,C=typeof x=="object"&&typeof x.href=="string",L=typeof x=="object"&&typeof x.onClick=="function",S=w===b.length-1,R=S?o:void 0,I=x==="...",N=x.text??x;if(I)return y.jsxs(E.Fragment,{children:[y.jsx("li",{className:"flex items-center","aria-hidden":"true",children:y.jsx("span",{className:"text-neutral-500",children:"…"})}),!A&&y.jsx("li",{"aria-hidden":"true",className:"flex items-center",children:s})]},`truncated-${N}`);let _=y.jsx(EK,{position:w+1,"aria-current":R,className:fe("transition-colors duration-200",S&&"text-neutral-900"),children:N},N);C?_=y.jsx(vK,{href:x.href,color:n,position:w+1,locale:i,"aria-current":R,className:fe(S&&"cursor-default text-neutral-900"),children:N},N):L&&(_=y.jsx(bK,{onClick:x.onClick,color:n,position:w+1,"aria-current":R,className:fe(S&&"cursor-default text-neutral-900"),children:N},N));const k=E.createElement("li",{...u&&{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem"},key:N,className:"flex items-center"},_);return A?k:y.jsxs(E.Fragment,{children:[k,y.jsx("li",{"aria-hidden":"true",className:"flex items-center",children:s})]},N)})})})};function Xe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function qA(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function co(...e){return t=>{let n=!1;const i=e.map(o=>{const s=qA(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<i.length;o++){const s=i[o];typeof s=="function"?s():qA(e[o],null)}}}}function Ct(...e){return E.useCallback(co(...e),e)}function SK(e,t){const n=E.createContext(t),i=s=>{const{children:c,...u}=s,f=E.useMemo(()=>u,Object.values(u));return y.jsx(n.Provider,{value:f,children:c})};i.displayName=e+"Provider";function o(s){const c=E.useContext(n);if(c)return c;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[i,o]}function $c(e,t=[]){let n=[];function i(s,c){const u=E.createContext(c),f=n.length;n=[...n,c];const h=g=>{const{scope:b,children:x,...w}=g,A=b?.[e]?.[f]||u,C=E.useMemo(()=>w,Object.values(w));return y.jsx(A.Provider,{value:C,children:x})};h.displayName=s+"Provider";function p(g,b){const x=b?.[e]?.[f]||u,w=E.useContext(x);if(w)return w;if(c!==void 0)return c;throw new Error(`\`${g}\` must be used within \`${s}\``)}return[h,p]}const o=()=>{const s=n.map(c=>E.createContext(c));return function(u){const f=u?.[e]||s;return E.useMemo(()=>({[`__scope${e}`]:{...u,[e]:f}}),[u,f])}};return o.scopeName=e,[i,AK(o,...t)]}function AK(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const i=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const c=i.reduce((u,{useScope:f,scopeName:h})=>{const g=f(s)[`__scope${h}`];return{...u,...g}},{});return E.useMemo(()=>({[`__scope${t.scopeName}`]:c}),[c])}};return n.scopeName=t.scopeName,n}var dn=globalThis?.document?E.useLayoutEffect:()=>{},wK=bR[" useId ".trim().toString()]||(()=>{}),TK=0;function fr(e){const[t,n]=E.useState(wK());return dn(()=>{n(i=>i??String(TK++))},[e]),t?`radix-${t}`:""}var CK=bR[" useInsertionEffect ".trim().toString()]||dn;function Ef({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[o,s,c]=RK({defaultProp:t,onChange:n}),u=e!==void 0,f=u?e:o;{const p=E.useRef(e!==void 0);E.useEffect(()=>{const g=p.current;g!==u&&console.warn(`${i} is changing from ${g?"controlled":"uncontrolled"} to ${u?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),p.current=u},[u,i])}const h=E.useCallback(p=>{if(u){const g=IK(p)?p(e):p;g!==e&&c.current?.(g)}else s(p)},[u,e,s,c]);return[f,h]}function RK({defaultProp:e,onChange:t}){const[n,i]=E.useState(e),o=E.useRef(n),s=E.useRef(t);return CK(()=>{s.current=t},[t]),E.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,i,s]}function IK(e){return typeof e=="function"}function Ps(e){const t=NK(e),n=E.forwardRef((i,o)=>{const{children:s,...c}=i,u=E.Children.toArray(s),f=u.find(LK);if(f){const h=f.props.children,p=u.map(g=>g===f?E.Children.count(h)>1?E.Children.only(null):E.isValidElement(h)?h.props.children:null:g);return y.jsx(t,{...c,ref:o,children:E.isValidElement(h)?E.cloneElement(h,void 0,p):null})}return y.jsx(t,{...c,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}var _K=Ps("Slot");function NK(e){const t=E.forwardRef((n,i)=>{const{children:o,...s}=n;if(E.isValidElement(o)){const c=OK(o),u=DK(s,o.props);return o.type!==E.Fragment&&(u.ref=i?co(i,c):c),E.cloneElement(o,u)}return E.Children.count(o)>1?E.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var kK=Symbol("radix.slottable");function LK(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===kK}function DK(e,t){const n={...t};for(const i in t){const o=e[i],s=t[i];/^on[A-Z]/.test(i)?o&&s?n[i]=(...u)=>{const f=s(...u);return o(...u),f}:o&&(n[i]=o):i==="style"?n[i]={...o,...s}:i==="className"&&(n[i]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function OK(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 jK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],He=jK.reduce((e,t)=>{const n=Ps(`Primitive.${t}`),i=E.forwardRef((o,s)=>{const{asChild:c,...u}=o,f=c?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),y.jsx(f,{...u,ref:s})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function L1(e,t){e&&So.flushSync(()=>e.dispatchEvent(t))}function Cr(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>t.current?.(...n),[])}function zK(e,t=globalThis?.document){const n=Cr(e);E.useEffect(()=>{const i=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",i,{capture:!0}),()=>t.removeEventListener("keydown",i,{capture:!0})},[n,t])}var MK="DismissableLayer",dg="dismissableLayer.update",PK="dismissableLayer.pointerDownOutside",BK="dismissableLayer.focusOutside",ZA,D1=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Jf=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:u,...f}=e,h=E.useContext(D1),[p,g]=E.useState(null),b=p?.ownerDocument??globalThis?.document,[,x]=E.useState({}),w=Ct(t,k=>g(k)),A=Array.from(h.layers),[C]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),L=A.indexOf(C),S=p?A.indexOf(p):-1,R=h.layersWithOutsidePointerEventsDisabled.size>0,I=S>=L,N=VK(k=>{const O=k.target,U=[...h.branches].some(F=>F.contains(O));!I||U||(o?.(k),c?.(k),k.defaultPrevented||u?.())},b),_=FK(k=>{const O=k.target;[...h.branches].some(F=>F.contains(O))||(s?.(k),c?.(k),k.defaultPrevented||u?.())},b);return zK(k=>{S===h.layers.size-1&&(i?.(k),!k.defaultPrevented&&u&&(k.preventDefault(),u()))},b),E.useEffect(()=>{if(p)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(ZA=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(p)),h.layers.add(p),YA(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=ZA)}},[p,b,n,h]),E.useEffect(()=>()=>{p&&(h.layers.delete(p),h.layersWithOutsidePointerEventsDisabled.delete(p),YA())},[p,h]),E.useEffect(()=>{const k=()=>x({});return document.addEventListener(dg,k),()=>document.removeEventListener(dg,k)},[]),y.jsx(He.div,{...f,ref:w,style:{pointerEvents:R?I?"auto":"none":void 0,...e.style},onFocusCapture:Xe(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Xe(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Xe(e.onPointerDownCapture,N.onPointerDownCapture)})});Jf.displayName=MK;var UK="DismissableLayerBranch",O1=E.forwardRef((e,t)=>{const n=E.useContext(D1),i=E.useRef(null),o=Ct(t,i);return E.useEffect(()=>{const s=i.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),y.jsx(He.div,{...e,ref:o})});O1.displayName=UK;function VK(e,t=globalThis?.document){const n=Cr(e),i=E.useRef(!1),o=E.useRef(()=>{});return E.useEffect(()=>{const s=u=>{if(u.target&&!i.current){let f=function(){j1(PK,n,h,{discrete:!0})};const h={originalEvent:u};u.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=f,t.addEventListener("click",o.current,{once:!0})):f()}else t.removeEventListener("click",o.current);i.current=!1},c=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(c),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}function FK(e,t=globalThis?.document){const n=Cr(e),i=E.useRef(!1);return E.useEffect(()=>{const o=s=>{s.target&&!i.current&&j1(BK,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function YA(){const e=new CustomEvent(dg);document.dispatchEvent(e)}function j1(e,t,n,{discrete:i}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?L1(o,s):o.dispatchEvent(s)}var HK=Jf,GK=O1,sy="focusScope.autoFocusOnMount",ly="focusScope.autoFocusOnUnmount",WA={bubbles:!1,cancelable:!0},KK="FocusScope",jv=E.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}=e,[u,f]=E.useState(null),h=Cr(o),p=Cr(s),g=E.useRef(null),b=Ct(t,A=>f(A)),x=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(i){let A=function(R){if(x.paused||!u)return;const I=R.target;u.contains(I)?g.current=I:ca(g.current,{select:!0})},C=function(R){if(x.paused||!u)return;const I=R.relatedTarget;I!==null&&(u.contains(I)||ca(g.current,{select:!0}))},L=function(R){if(document.activeElement===document.body)for(const N of R)N.removedNodes.length>0&&ca(u)};document.addEventListener("focusin",A),document.addEventListener("focusout",C);const S=new MutationObserver(L);return u&&S.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",C),S.disconnect()}}},[i,u,x.paused]),E.useEffect(()=>{if(u){QA.add(x);const A=document.activeElement;if(!u.contains(A)){const L=new CustomEvent(sy,WA);u.addEventListener(sy,h),u.dispatchEvent(L),L.defaultPrevented||($K(XK(z1(u)),{select:!0}),document.activeElement===A&&ca(u))}return()=>{u.removeEventListener(sy,h),setTimeout(()=>{const L=new CustomEvent(ly,WA);u.addEventListener(ly,p),u.dispatchEvent(L),L.defaultPrevented||ca(A??document.body,{select:!0}),u.removeEventListener(ly,p),QA.remove(x)},0)}}},[u,h,p,x]);const w=E.useCallback(A=>{if(!n&&!i||x.paused)return;const C=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,L=document.activeElement;if(C&&L){const S=A.currentTarget,[R,I]=qK(S);R&&I?!A.shiftKey&&L===I?(A.preventDefault(),n&&ca(R,{select:!0})):A.shiftKey&&L===R&&(A.preventDefault(),n&&ca(I,{select:!0})):L===S&&A.preventDefault()}},[n,i,x.paused]);return y.jsx(He.div,{tabIndex:-1,...c,ref:b,onKeyDown:w})});jv.displayName=KK;function $K(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(ca(i,{select:t}),document.activeElement!==n)return}function qK(e){const t=z1(e),n=XA(t,e),i=XA(t.reverse(),e);return[n,i]}function z1(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function XA(e,t){for(const n of e)if(!ZK(n,{upTo:t}))return n}function ZK(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 YK(e){return e instanceof HTMLInputElement&&"select"in e}function ca(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&YK(e)&&t&&e.select()}}var QA=WK();function WK(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=JA(e,t),e.unshift(t)},remove(t){e=JA(e,t),e[0]?.resume()}}}function JA(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function XK(e){return e.filter(t=>t.tagName!=="A")}var QK="Portal",eh=E.forwardRef((e,t)=>{const{container:n,...i}=e,[o,s]=E.useState(!1);dn(()=>s(!0),[]);const c=n||o&&globalThis?.document?.body;return c?P4.createPortal(y.jsx(He.div,{...i,ref:t}),c):null});eh.displayName=QK;function JK(e,t){return E.useReducer((n,i)=>t[n][i]??n,e)}var qc=e=>{const{present:t,children:n}=e,i=e$(t),o=typeof n=="function"?n({present:i.isPresent}):E.Children.only(n),s=Ct(i.ref,t$(o));return typeof n=="function"||i.isPresent?E.cloneElement(o,{ref:s}):null};qc.displayName="Presence";function e$(e){const[t,n]=E.useState(),i=E.useRef(null),o=E.useRef(e),s=E.useRef("none"),c=e?"mounted":"unmounted",[u,f]=JK(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const h=Nd(i.current);s.current=u==="mounted"?h:"none"},[u]),dn(()=>{const h=i.current,p=o.current;if(p!==e){const b=s.current,x=Nd(h);e?f("MOUNT"):x==="none"||h?.display==="none"?f("UNMOUNT"):f(p&&b!==x?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,f]),dn(()=>{if(t){let h;const p=t.ownerDocument.defaultView??window,g=x=>{const A=Nd(i.current).includes(CSS.escape(x.animationName));if(x.target===t&&A&&(f("ANIMATION_END"),!o.current)){const C=t.style.animationFillMode;t.style.animationFillMode="forwards",h=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=C)})}},b=x=>{x.target===t&&(s.current=Nd(i.current))};return t.addEventListener("animationstart",b),t.addEventListener("animationcancel",g),t.addEventListener("animationend",g),()=>{p.clearTimeout(h),t.removeEventListener("animationstart",b),t.removeEventListener("animationcancel",g),t.removeEventListener("animationend",g)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:E.useCallback(h=>{i.current=h?getComputedStyle(h):null,n(h)},[])}}function Nd(e){return e?.animationName||"none"}function t$(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 cy=0;function M1(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??ew()),document.body.insertAdjacentElement("beforeend",e[1]??ew()),cy++,()=>{cy===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),cy--}},[])}function ew(){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 Fr=function(){return Fr=Object.assign||function(t){for(var n,i=1,o=arguments.length;i<o;i++){n=arguments[i];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Fr.apply(this,arguments)};function P1(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]]);return n}function n$(e,t,n){if(n||arguments.length===2)for(var i=0,o=t.length,s;i<o;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return e.concat(s||Array.prototype.slice.call(t))}var rf="right-scroll-bar-position",af="width-before-scroll-bar",r$="with-scroll-bars-hidden",i$="--removed-body-scroll-bar-size";function uy(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function a$(e,t){var n=E.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(i){var o=n.value;o!==i&&(n.value=i,n.callback(i,o))}}}})[0];return n.callback=t,n.facade}var o$=typeof window<"u"?E.useLayoutEffect:E.useEffect,tw=new WeakMap;function s$(e,t){var n=a$(null,function(i){return e.forEach(function(o){return uy(o,i)})});return o$(function(){var i=tw.get(n);if(i){var o=new Set(i),s=new Set(e),c=n.current;o.forEach(function(u){s.has(u)||uy(u,null)}),s.forEach(function(u){o.has(u)||uy(u,c)})}tw.set(n,e)},[e]),n}function l$(e){return e}function c$(e,t){t===void 0&&(t=l$);var n=[],i=!1,o={read:function(){if(i)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 c=t(s,i);return n.push(c),function(){n=n.filter(function(u){return u!==c})}},assignSyncMedium:function(s){for(i=!0;n.length;){var c=n;n=[],c.forEach(s)}n={push:function(u){return s(u)},filter:function(){return n}}},assignMedium:function(s){i=!0;var c=[];if(n.length){var u=n;n=[],u.forEach(s),c=n}var f=function(){var p=c;c=[],p.forEach(s)},h=function(){return Promise.resolve().then(f)};h(),n={push:function(p){c.push(p),h()},filter:function(p){return c=c.filter(p),n}}}};return o}function u$(e){e===void 0&&(e={});var t=c$(null);return t.options=Fr({async:!0,ssr:!1},e),t}var B1=function(e){var t=e.sideCar,n=P1(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return E.createElement(i,Fr({},n))};B1.isSideCarExport=!0;function d$(e,t){return e.useMedium(t),B1}var U1=u$(),dy=function(){},th=E.forwardRef(function(e,t){var n=E.useRef(null),i=E.useState({onScrollCapture:dy,onWheelCapture:dy,onTouchMoveCapture:dy}),o=i[0],s=i[1],c=e.forwardProps,u=e.children,f=e.className,h=e.removeScrollBar,p=e.enabled,g=e.shards,b=e.sideCar,x=e.noRelative,w=e.noIsolation,A=e.inert,C=e.allowPinchZoom,L=e.as,S=L===void 0?"div":L,R=e.gapMode,I=P1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),N=b,_=s$([n,t]),k=Fr(Fr({},I),o);return E.createElement(E.Fragment,null,p&&E.createElement(N,{sideCar:U1,removeScrollBar:h,shards:g,noRelative:x,noIsolation:w,inert:A,setCallbacks:s,allowPinchZoom:!!C,lockRef:n,gapMode:R}),c?E.cloneElement(E.Children.only(u),Fr(Fr({},k),{ref:_})):E.createElement(S,Fr({},k,{className:f,ref:_}),u))});th.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};th.classNames={fullWidth:af,zeroRight:rf};var f$=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function h$(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=f$();return t&&e.setAttribute("nonce",t),e}function p$(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function m$(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var y$=function(){var e=0,t=null;return{add:function(n){e==0&&(t=h$())&&(p$(t,n),m$(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},g$=function(){var e=y$();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},V1=function(){var e=g$(),t=function(n){var i=n.styles,o=n.dynamic;return e(i,o),null};return t},v$={left:0,top:0,right:0,gap:0},fy=function(e){return parseInt(e||"",10)||0},b$=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[fy(n),fy(i),fy(o)]},E$=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return v$;var t=b$(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},x$=V1(),ks="data-scroll-locked",S$=function(e,t,n,i){var o=e.left,s=e.top,c=e.right,u=e.gap;return n===void 0&&(n="margin"),`
228
+ .`.concat(r$,` {
229
+ overflow: hidden `).concat(i,`;
230
+ padding-right: `).concat(u,"px ").concat(i,`;
231
+ }
232
+ body[`).concat(ks,`] {
233
+ overflow: hidden `).concat(i,`;
234
+ overscroll-behavior: contain;
235
+ `).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
236
+ padding-left: `.concat(o,`px;
237
+ padding-top: `).concat(s,`px;
238
+ padding-right: `).concat(c,`px;
239
+ margin-left:0;
240
+ margin-top:0;
241
+ margin-right: `).concat(u,"px ").concat(i,`;
242
+ `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(i,";")].filter(Boolean).join(""),`
243
+ }
244
+
245
+ .`).concat(rf,` {
246
+ right: `).concat(u,"px ").concat(i,`;
247
+ }
248
+
249
+ .`).concat(af,` {
250
+ margin-right: `).concat(u,"px ").concat(i,`;
251
+ }
252
+
253
+ .`).concat(rf," .").concat(rf,` {
254
+ right: 0 `).concat(i,`;
255
+ }
256
+
257
+ .`).concat(af," .").concat(af,` {
258
+ margin-right: 0 `).concat(i,`;
259
+ }
260
+
261
+ body[`).concat(ks,`] {
262
+ `).concat(i$,": ").concat(u,`px;
263
+ }
264
+ `)},nw=function(){var e=parseInt(document.body.getAttribute(ks)||"0",10);return isFinite(e)?e:0},A$=function(){E.useEffect(function(){return document.body.setAttribute(ks,(nw()+1).toString()),function(){var e=nw()-1;e<=0?document.body.removeAttribute(ks):document.body.setAttribute(ks,e.toString())}},[])},w$=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,o=i===void 0?"margin":i;A$();var s=E.useMemo(function(){return E$(o)},[o]);return E.createElement(x$,{styles:S$(s,!t,o,n?"":"!important")})},fg=!1;if(typeof window<"u")try{var kd=Object.defineProperty({},"passive",{get:function(){return fg=!0,!0}});window.addEventListener("test",kd,kd),window.removeEventListener("test",kd,kd)}catch{fg=!1}var hs=fg?{passive:!1}:!1,T$=function(e){return e.tagName==="TEXTAREA"},F1=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!T$(e)&&n[t]==="visible")},C$=function(e){return F1(e,"overflowY")},R$=function(e){return F1(e,"overflowX")},rw=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var o=H1(e,i);if(o){var s=G1(e,i),c=s[1],u=s[2];if(c>u)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},I$=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},_$=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},H1=function(e,t){return e==="v"?C$(t):R$(t)},G1=function(e,t){return e==="v"?I$(t):_$(t)},N$=function(e,t){return e==="h"&&t==="rtl"?-1:1},k$=function(e,t,n,i,o){var s=N$(e,window.getComputedStyle(t).direction),c=s*i,u=n.target,f=t.contains(u),h=!1,p=c>0,g=0,b=0;do{if(!u)break;var x=G1(e,u),w=x[0],A=x[1],C=x[2],L=A-C-s*w;(w||L)&&H1(e,u)&&(g+=L,b+=w);var S=u.parentNode;u=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!f&&u!==document.body||f&&(t.contains(u)||t===u));return(p&&Math.abs(g)<1||!p&&Math.abs(b)<1)&&(h=!0),h},Ld=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},iw=function(e){return[e.deltaX,e.deltaY]},aw=function(e){return e&&"current"in e?e.current:e},L$=function(e,t){return e[0]===t[0]&&e[1]===t[1]},D$=function(e){return`
265
+ .block-interactivity-`.concat(e,` {pointer-events: none;}
266
+ .allow-interactivity-`).concat(e,` {pointer-events: all;}
267
+ `)},O$=0,ps=[];function j$(e){var t=E.useRef([]),n=E.useRef([0,0]),i=E.useRef(),o=E.useState(O$++)[0],s=E.useState(V1)[0],c=E.useRef(e);E.useEffect(function(){c.current=e},[e]),E.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var A=n$([e.lockRef.current],(e.shards||[]).map(aw),!0).filter(Boolean);return A.forEach(function(C){return C.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),A.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=E.useCallback(function(A,C){if("touches"in A&&A.touches.length===2||A.type==="wheel"&&A.ctrlKey)return!c.current.allowPinchZoom;var L=Ld(A),S=n.current,R="deltaX"in A?A.deltaX:S[0]-L[0],I="deltaY"in A?A.deltaY:S[1]-L[1],N,_=A.target,k=Math.abs(R)>Math.abs(I)?"h":"v";if("touches"in A&&k==="h"&&_.type==="range")return!1;var O=rw(k,_);if(!O)return!0;if(O?N=k:(N=k==="v"?"h":"v",O=rw(k,_)),!O)return!1;if(!i.current&&"changedTouches"in A&&(R||I)&&(i.current=N),!N)return!0;var U=i.current||N;return k$(U,C,A,U==="h"?R:I)},[]),f=E.useCallback(function(A){var C=A;if(!(!ps.length||ps[ps.length-1]!==s)){var L="deltaY"in C?iw(C):Ld(C),S=t.current.filter(function(N){return N.name===C.type&&(N.target===C.target||C.target===N.shadowParent)&&L$(N.delta,L)})[0];if(S&&S.should){C.cancelable&&C.preventDefault();return}if(!S){var R=(c.current.shards||[]).map(aw).filter(Boolean).filter(function(N){return N.contains(C.target)}),I=R.length>0?u(C,R[0]):!c.current.noIsolation;I&&C.cancelable&&C.preventDefault()}}},[]),h=E.useCallback(function(A,C,L,S){var R={name:A,delta:C,target:L,should:S,shadowParent:z$(L)};t.current.push(R),setTimeout(function(){t.current=t.current.filter(function(I){return I!==R})},1)},[]),p=E.useCallback(function(A){n.current=Ld(A),i.current=void 0},[]),g=E.useCallback(function(A){h(A.type,iw(A),A.target,u(A,e.lockRef.current))},[]),b=E.useCallback(function(A){h(A.type,Ld(A),A.target,u(A,e.lockRef.current))},[]);E.useEffect(function(){return ps.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:b}),document.addEventListener("wheel",f,hs),document.addEventListener("touchmove",f,hs),document.addEventListener("touchstart",p,hs),function(){ps=ps.filter(function(A){return A!==s}),document.removeEventListener("wheel",f,hs),document.removeEventListener("touchmove",f,hs),document.removeEventListener("touchstart",p,hs)}},[]);var x=e.removeScrollBar,w=e.inert;return E.createElement(E.Fragment,null,w?E.createElement(s,{styles:D$(o)}):null,x?E.createElement(w$,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function z$(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const M$=d$(U1,j$);var zv=E.forwardRef(function(e,t){return E.createElement(th,Fr({},e,{ref:t,sideCar:M$}))});zv.classNames=th.classNames;var P$=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ms=new WeakMap,Dd=new WeakMap,Od={},hy=0,K1=function(e){return e&&(e.host||K1(e.parentNode))},B$=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=K1(n);return i&&e.contains(i)?i:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},U$=function(e,t,n,i){var o=B$(t,Array.isArray(e)?e:[e]);Od[n]||(Od[n]=new WeakMap);var s=Od[n],c=[],u=new Set,f=new Set(o),h=function(g){!g||u.has(g)||(u.add(g),h(g.parentNode))};o.forEach(h);var p=function(g){!g||f.has(g)||Array.prototype.forEach.call(g.children,function(b){if(u.has(b))p(b);else try{var x=b.getAttribute(i),w=x!==null&&x!=="false",A=(ms.get(b)||0)+1,C=(s.get(b)||0)+1;ms.set(b,A),s.set(b,C),c.push(b),A===1&&w&&Dd.set(b,!0),C===1&&b.setAttribute(n,"true"),w||b.setAttribute(i,"true")}catch(L){console.error("aria-hidden: cannot operate on ",b,L)}})};return p(t),u.clear(),hy++,function(){c.forEach(function(g){var b=ms.get(g)-1,x=s.get(g)-1;ms.set(g,b),s.set(g,x),b||(Dd.has(g)||g.removeAttribute(i),Dd.delete(g)),x||g.removeAttribute(n)}),hy--,hy||(ms=new WeakMap,ms=new WeakMap,Dd=new WeakMap,Od={})}},$1=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=P$(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),U$(i,o,n,"aria-hidden")):function(){return null}},nh="Dialog",[q1]=$c(nh),[V$,Nr]=q1(nh),Z1=e=>{const{__scopeDialog:t,children:n,open:i,defaultOpen:o,onOpenChange:s,modal:c=!0}=e,u=E.useRef(null),f=E.useRef(null),[h,p]=Ef({prop:i,defaultProp:o??!1,onChange:s,caller:nh});return y.jsx(V$,{scope:t,triggerRef:u,contentRef:f,contentId:fr(),titleId:fr(),descriptionId:fr(),open:h,onOpenChange:p,onOpenToggle:E.useCallback(()=>p(g=>!g),[p]),modal:c,children:n})};Z1.displayName=nh;var Y1="DialogTrigger",F$=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=Nr(Y1,n),s=Ct(t,o.triggerRef);return y.jsx(He.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Bv(o.open),...i,ref:s,onClick:Xe(e.onClick,o.onOpenToggle)})});F$.displayName=Y1;var Mv="DialogPortal",[H$,W1]=q1(Mv,{forceMount:void 0}),X1=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:o}=e,s=Nr(Mv,t);return y.jsx(H$,{scope:t,forceMount:n,children:E.Children.map(i,c=>y.jsx(qc,{present:n||s.open,children:y.jsx(eh,{asChild:!0,container:o,children:c})}))})};X1.displayName=Mv;var xf="DialogOverlay",Q1=E.forwardRef((e,t)=>{const n=W1(xf,e.__scopeDialog),{forceMount:i=n.forceMount,...o}=e,s=Nr(xf,e.__scopeDialog);return s.modal?y.jsx(qc,{present:i||s.open,children:y.jsx(K$,{...o,ref:t})}):null});Q1.displayName=xf;var G$=Ps("DialogOverlay.RemoveScroll"),K$=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=Nr(xf,n);return y.jsx(zv,{as:G$,allowPinchZoom:!0,shards:[o.contentRef],children:y.jsx(He.div,{"data-state":Bv(o.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),uo="DialogContent",J1=E.forwardRef((e,t)=>{const n=W1(uo,e.__scopeDialog),{forceMount:i=n.forceMount,...o}=e,s=Nr(uo,e.__scopeDialog);return y.jsx(qc,{present:i||s.open,children:s.modal?y.jsx($$,{...o,ref:t}):y.jsx(q$,{...o,ref:t})})});J1.displayName=uo;var $$=E.forwardRef((e,t)=>{const n=Nr(uo,e.__scopeDialog),i=E.useRef(null),o=Ct(t,n.contentRef,i);return E.useEffect(()=>{const s=i.current;if(s)return $1(s)},[]),y.jsx(eD,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Xe(e.onCloseAutoFocus,s=>{s.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:Xe(e.onPointerDownOutside,s=>{const c=s.detail.originalEvent,u=c.button===0&&c.ctrlKey===!0;(c.button===2||u)&&s.preventDefault()}),onFocusOutside:Xe(e.onFocusOutside,s=>s.preventDefault())})}),q$=E.forwardRef((e,t)=>{const n=Nr(uo,e.__scopeDialog),i=E.useRef(!1),o=E.useRef(!1);return y.jsx(eD,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{e.onCloseAutoFocus?.(s),s.defaultPrevented||(i.current||n.triggerRef.current?.focus(),s.preventDefault()),i.current=!1,o.current=!1},onInteractOutside:s=>{e.onInteractOutside?.(s),s.defaultPrevented||(i.current=!0,s.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const c=s.target;n.triggerRef.current?.contains(c)&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&o.current&&s.preventDefault()}})}),eD=E.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:s,...c}=e,u=Nr(uo,n),f=E.useRef(null),h=Ct(t,f);return M1(),y.jsxs(y.Fragment,{children:[y.jsx(jv,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:s,children:y.jsx(Jf,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":Bv(u.open),...c,ref:h,onDismiss:()=>u.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(X$,{titleId:u.titleId}),y.jsx(J$,{contentRef:f,descriptionId:u.descriptionId})]})]})}),Pv="DialogTitle",Z$=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=Nr(Pv,n);return y.jsx(He.h2,{id:o.titleId,...i,ref:t})});Z$.displayName=Pv;var tD="DialogDescription",Y$=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=Nr(tD,n);return y.jsx(He.p,{id:o.descriptionId,...i,ref:t})});Y$.displayName=tD;var nD="DialogClose",W$=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=Nr(nD,n);return y.jsx(He.button,{type:"button",...i,ref:t,onClick:Xe(e.onClick,()=>o.onOpenChange(!1))})});W$.displayName=nD;function Bv(e){return e?"open":"closed"}var rD="DialogTitleWarning",[Vle,iD]=SK(rD,{contentName:uo,titleName:Pv,docsSlug:"dialog"}),X$=({titleId:e})=>{const t=iD(rD),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
268
+
269
+ If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
270
+
271
+ For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return E.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Q$="DialogDescriptionWarning",J$=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${iD(Q$).contentName}}.`;return E.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},e5=Z1,t5=X1,n5=Q1,r5=J1,ow=1,i5=.9,a5=.8,o5=.17,py=.1,my=.999,s5=.9999,l5=.99,c5=/[\\\/_+.#"@\[\(\{&]/,u5=/[\\\/_+.#"@\[\(\{&]/g,d5=/[\s-]/,aD=/[\s-]/g;function hg(e,t,n,i,o,s,c){if(s===t.length)return o===e.length?ow:l5;var u=`${o},${s}`;if(c[u]!==void 0)return c[u];for(var f=i.charAt(s),h=n.indexOf(f,o),p=0,g,b,x,w;h>=0;)g=hg(e,t,n,i,h+1,s+1,c),g>p&&(h===o?g*=ow:c5.test(e.charAt(h-1))?(g*=a5,x=e.slice(o,h-1).match(u5),x&&o>0&&(g*=Math.pow(my,x.length))):d5.test(e.charAt(h-1))?(g*=i5,w=e.slice(o,h-1).match(aD),w&&o>0&&(g*=Math.pow(my,w.length))):(g*=o5,o>0&&(g*=Math.pow(my,h-o))),e.charAt(h)!==t.charAt(s)&&(g*=s5)),(g<py&&n.charAt(h-1)===i.charAt(s+1)||i.charAt(s+1)===i.charAt(s)&&n.charAt(h-1)!==i.charAt(s))&&(b=hg(e,t,n,i,h+1,s+2,c),b*py>g&&(g=b*py)),g>p&&(p=g),h=n.indexOf(f,h+1);return c[u]=p,p}function sw(e){return e.toLowerCase().replace(aD," ")}function f5(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,hg(e,t,sw(e),sw(t),0,0,{})}var nc='[cmdk-group=""]',yy='[cmdk-group-items=""]',h5='[cmdk-group-heading=""]',oD='[cmdk-item=""]',lw=`${oD}:not([aria-disabled="true"])`,pg="cmdk-item-select",vs="data-value",p5=(e,t,n)=>f5(e,t,n),sD=E.createContext(void 0),Zc=()=>E.useContext(sD),lD=E.createContext(void 0),Uv=()=>E.useContext(lD),cD=E.createContext(void 0),uD=E.forwardRef((e,t)=>{let n=bs(()=>{var P,J;return{search:"",value:(J=(P=e.value)!=null?P:e.defaultValue)!=null?J:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),i=bs(()=>new Set),o=bs(()=>new Map),s=bs(()=>new Map),c=bs(()=>new Set),u=dD(e),{label:f,children:h,value:p,onValueChange:g,filter:b,shouldFilter:x,loop:w,disablePointerSelection:A=!1,vimBindings:C=!0,...L}=e,S=fr(),R=fr(),I=fr(),N=E.useRef(null),_=T5();fo(()=>{if(p!==void 0){let P=p.trim();n.current.value=P,k.emit()}},[p]),fo(()=>{_(6,ce)},[]);let k=E.useMemo(()=>({subscribe:P=>(c.current.add(P),()=>c.current.delete(P)),snapshot:()=>n.current,setState:(P,J,ne)=>{var ue,ye,ie,Re;if(!Object.is(n.current[P],J)){if(n.current[P]=J,P==="search")te(),F(),_(1,H);else if(P==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let Ae=document.getElementById(I);Ae?Ae.focus():(ue=document.getElementById(S))==null||ue.focus()}if(_(7,()=>{var Ae;n.current.selectedItemId=(Ae=X())==null?void 0:Ae.id,k.emit()}),ne||_(5,ce),((ye=u.current)==null?void 0:ye.value)!==void 0){let Ae=J??"";(Re=(ie=u.current).onValueChange)==null||Re.call(ie,Ae);return}}k.emit()}},emit:()=>{c.current.forEach(P=>P())}}),[]),O=E.useMemo(()=>({value:(P,J,ne)=>{var ue;J!==((ue=s.current.get(P))==null?void 0:ue.value)&&(s.current.set(P,{value:J,keywords:ne}),n.current.filtered.items.set(P,U(J,ne)),_(2,()=>{F(),k.emit()}))},item:(P,J)=>(i.current.add(P),J&&(o.current.has(J)?o.current.get(J).add(P):o.current.set(J,new Set([P]))),_(3,()=>{te(),F(),n.current.value||H(),k.emit()}),()=>{s.current.delete(P),i.current.delete(P),n.current.filtered.items.delete(P);let ne=X();_(4,()=>{te(),ne?.getAttribute("id")===P&&H(),k.emit()})}),group:P=>(o.current.has(P)||o.current.set(P,new Set),()=>{s.current.delete(P),o.current.delete(P)}),filter:()=>u.current.shouldFilter,label:f||e["aria-label"],getDisablePointerSelection:()=>u.current.disablePointerSelection,listId:S,inputId:I,labelId:R,listInnerRef:N}),[]);function U(P,J){var ne,ue;let ye=(ue=(ne=u.current)==null?void 0:ne.filter)!=null?ue:p5;return P?ye(P,n.current.search,J):0}function F(){if(!n.current.search||u.current.shouldFilter===!1)return;let P=n.current.filtered.items,J=[];n.current.filtered.groups.forEach(ue=>{let ye=o.current.get(ue),ie=0;ye.forEach(Re=>{let Ae=P.get(Re);ie=Math.max(Ae,ie)}),J.push([ue,ie])});let ne=N.current;oe().sort((ue,ye)=>{var ie,Re;let Ae=ue.getAttribute("id"),ze=ye.getAttribute("id");return((ie=P.get(ze))!=null?ie:0)-((Re=P.get(Ae))!=null?Re:0)}).forEach(ue=>{let ye=ue.closest(yy);ye?ye.appendChild(ue.parentElement===ye?ue:ue.closest(`${yy} > *`)):ne.appendChild(ue.parentElement===ne?ue:ue.closest(`${yy} > *`))}),J.sort((ue,ye)=>ye[1]-ue[1]).forEach(ue=>{var ye;let ie=(ye=N.current)==null?void 0:ye.querySelector(`${nc}[${vs}="${encodeURIComponent(ue[0])}"]`);ie?.parentElement.appendChild(ie)})}function H(){let P=oe().find(ne=>ne.getAttribute("aria-disabled")!=="true"),J=P?.getAttribute(vs);k.setState("value",J||void 0)}function te(){var P,J,ne,ue;if(!n.current.search||u.current.shouldFilter===!1){n.current.filtered.count=i.current.size;return}n.current.filtered.groups=new Set;let ye=0;for(let ie of i.current){let Re=(J=(P=s.current.get(ie))==null?void 0:P.value)!=null?J:"",Ae=(ue=(ne=s.current.get(ie))==null?void 0:ne.keywords)!=null?ue:[],ze=U(Re,Ae);n.current.filtered.items.set(ie,ze),ze>0&&ye++}for(let[ie,Re]of o.current)for(let Ae of Re)if(n.current.filtered.items.get(Ae)>0){n.current.filtered.groups.add(ie);break}n.current.filtered.count=ye}function ce(){var P,J,ne;let ue=X();ue&&(((P=ue.parentElement)==null?void 0:P.firstChild)===ue&&((ne=(J=ue.closest(nc))==null?void 0:J.querySelector(h5))==null||ne.scrollIntoView({block:"nearest"})),ue.scrollIntoView({block:"nearest"}))}function X(){var P;return(P=N.current)==null?void 0:P.querySelector(`${oD}[aria-selected="true"]`)}function oe(){var P;return Array.from(((P=N.current)==null?void 0:P.querySelectorAll(lw))||[])}function M(P){let J=oe()[P];J&&k.setState("value",J.getAttribute(vs))}function Y(P){var J;let ne=X(),ue=oe(),ye=ue.findIndex(Re=>Re===ne),ie=ue[ye+P];(J=u.current)!=null&&J.loop&&(ie=ye+P<0?ue[ue.length-1]:ye+P===ue.length?ue[0]:ue[ye+P]),ie&&k.setState("value",ie.getAttribute(vs))}function $(P){let J=X(),ne=J?.closest(nc),ue;for(;ne&&!ue;)ne=P>0?A5(ne,nc):w5(ne,nc),ue=ne?.querySelector(lw);ue?k.setState("value",ue.getAttribute(vs)):Y(P)}let me=()=>M(oe().length-1),Ee=P=>{P.preventDefault(),P.metaKey?me():P.altKey?$(1):Y(1)},j=P=>{P.preventDefault(),P.metaKey?M(0):P.altKey?$(-1):Y(-1)};return E.createElement(He.div,{ref:t,tabIndex:-1,...L,"cmdk-root":"",onKeyDown:P=>{var J;(J=L.onKeyDown)==null||J.call(L,P);let ne=P.nativeEvent.isComposing||P.keyCode===229;if(!(P.defaultPrevented||ne))switch(P.key){case"n":case"j":{C&&P.ctrlKey&&Ee(P);break}case"ArrowDown":{Ee(P);break}case"p":case"k":{C&&P.ctrlKey&&j(P);break}case"ArrowUp":{j(P);break}case"Home":{P.preventDefault(),M(0);break}case"End":{P.preventDefault(),me();break}case"Enter":{P.preventDefault();let ue=X();if(ue){let ye=new Event(pg);ue.dispatchEvent(ye)}}}}},E.createElement("label",{"cmdk-label":"",htmlFor:O.inputId,id:O.labelId,style:R5},f),rh(e,P=>E.createElement(lD.Provider,{value:k},E.createElement(sD.Provider,{value:O},P))))}),m5=E.forwardRef((e,t)=>{var n,i;let o=fr(),s=E.useRef(null),c=E.useContext(cD),u=Zc(),f=dD(e),h=(i=(n=f.current)==null?void 0:n.forceMount)!=null?i:c?.forceMount;fo(()=>{if(!h)return u.item(o,c?.id)},[h]);let p=fD(o,s,[e.value,e.children,s],e.keywords),g=Uv(),b=pa(_=>_.value&&_.value===p.current),x=pa(_=>h||u.filter()===!1?!0:_.search?_.filtered.items.get(o)>0:!0);E.useEffect(()=>{let _=s.current;if(!(!_||e.disabled))return _.addEventListener(pg,w),()=>_.removeEventListener(pg,w)},[x,e.onSelect,e.disabled]);function w(){var _,k;A(),(k=(_=f.current).onSelect)==null||k.call(_,p.current)}function A(){g.setState("value",p.current,!0)}if(!x)return null;let{disabled:C,value:L,onSelect:S,forceMount:R,keywords:I,...N}=e;return E.createElement(He.div,{ref:co(s,t),...N,id:o,"cmdk-item":"",role:"option","aria-disabled":!!C,"aria-selected":!!b,"data-disabled":!!C,"data-selected":!!b,onPointerMove:C||u.getDisablePointerSelection()?void 0:A,onClick:C?void 0:w},e.children)}),y5=E.forwardRef((e,t)=>{let{heading:n,children:i,forceMount:o,...s}=e,c=fr(),u=E.useRef(null),f=E.useRef(null),h=fr(),p=Zc(),g=pa(x=>o||p.filter()===!1?!0:x.search?x.filtered.groups.has(c):!0);fo(()=>p.group(c),[]),fD(c,u,[e.value,e.heading,f]);let b=E.useMemo(()=>({id:c,forceMount:o}),[o]);return E.createElement(He.div,{ref:co(u,t),...s,"cmdk-group":"",role:"presentation",hidden:g?void 0:!0},n&&E.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:h},n),rh(e,x=>E.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?h:void 0},E.createElement(cD.Provider,{value:b},x))))}),g5=E.forwardRef((e,t)=>{let{alwaysRender:n,...i}=e,o=E.useRef(null),s=pa(c=>!c.search);return!n&&!s?null:E.createElement(He.div,{ref:co(o,t),...i,"cmdk-separator":"",role:"separator"})}),v5=E.forwardRef((e,t)=>{let{onValueChange:n,...i}=e,o=e.value!=null,s=Uv(),c=pa(h=>h.search),u=pa(h=>h.selectedItemId),f=Zc();return E.useEffect(()=>{e.value!=null&&s.setState("search",e.value)},[e.value]),E.createElement(He.input,{ref:t,...i,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,"aria-activedescendant":u,id:f.inputId,type:"text",value:o?e.value:c,onChange:h=>{o||s.setState("search",h.target.value),n?.(h.target.value)}})}),b5=E.forwardRef((e,t)=>{let{children:n,label:i="Suggestions",...o}=e,s=E.useRef(null),c=E.useRef(null),u=pa(h=>h.selectedItemId),f=Zc();return E.useEffect(()=>{if(c.current&&s.current){let h=c.current,p=s.current,g,b=new ResizeObserver(()=>{g=requestAnimationFrame(()=>{let x=h.offsetHeight;p.style.setProperty("--cmdk-list-height",x.toFixed(1)+"px")})});return b.observe(h),()=>{cancelAnimationFrame(g),b.unobserve(h)}}},[]),E.createElement(He.div,{ref:co(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":i,id:f.listId},rh(e,h=>E.createElement("div",{ref:co(c,f.listInnerRef),"cmdk-list-sizer":""},h)))}),E5=E.forwardRef((e,t)=>{let{open:n,onOpenChange:i,overlayClassName:o,contentClassName:s,container:c,...u}=e;return E.createElement(e5,{open:n,onOpenChange:i},E.createElement(t5,{container:c},E.createElement(n5,{"cmdk-overlay":"",className:o}),E.createElement(r5,{"aria-label":e.label,"cmdk-dialog":"",className:s},E.createElement(uD,{ref:t,...u}))))}),x5=E.forwardRef((e,t)=>pa(n=>n.filtered.count===0)?E.createElement(He.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),S5=E.forwardRef((e,t)=>{let{progress:n,children:i,label:o="Loading...",...s}=e;return E.createElement(He.div,{ref:t,...s,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":o},rh(e,c=>E.createElement("div",{"aria-hidden":!0},c)))}),Yc=Object.assign(uD,{List:b5,Item:m5,Input:v5,Group:y5,Separator:g5,Dialog:E5,Empty:x5,Loading:S5});function A5(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function w5(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function dD(e){let t=E.useRef(e);return fo(()=>{t.current=e}),t}var fo=typeof window>"u"?E.useEffect:E.useLayoutEffect;function bs(e){let t=E.useRef();return t.current===void 0&&(t.current=e()),t}function pa(e){let t=Uv(),n=()=>e(t.snapshot());return E.useSyncExternalStore(t.subscribe,n,n)}function fD(e,t,n,i=[]){let o=E.useRef(),s=Zc();return fo(()=>{var c;let u=(()=>{var h;for(let p of n){if(typeof p=="string")return p.trim();if(typeof p=="object"&&"current"in p)return p.current?(h=p.current.textContent)==null?void 0:h.trim():o.current}})(),f=i.map(h=>h.trim());s.value(e,u,f),(c=t.current)==null||c.setAttribute(vs,u),o.current=u}),o}var T5=()=>{let[e,t]=E.useState(),n=bs(()=>new Map);return fo(()=>{n.current.forEach(i=>i()),n.current=new Map},[e]),(i,o)=>{n.current.set(i,o),t({})}};function C5(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function rh({asChild:e,children:t},n){return e&&E.isValidElement(t)?E.cloneElement(C5(t),{ref:t.ref},n(t.props.children)):n(t)}var R5={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const hD=({className:e,...t})=>y.jsx(Yc,{className:fe("flex size-full flex-col overflow-hidden rounded-md",e),...t}),I5=({className:e,...t})=>y.jsxs("div",{className:"flex w-full items-center","cmdk-input-wrapper":"",children:[y.jsx(cK,{className:"mr-2 size-4 shrink-0 opacity-50"}),y.jsx(Yc.Input,{className:fe("flex w-full rounded-md bg-transparent text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}),_5=({className:e,...t})=>y.jsx(Yc.List,{className:fe("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}),N5=e=>y.jsx(Yc.Empty,{className:"py-6 text-center text-sm",...e}),k5=({className:e,...t})=>y.jsx(Yc.Item,{className:fe("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t}),Sf={...hD,Input:I5,List:_5,Empty:N5,Item:k5},L5=yn("flex flex-col text-text 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 hover:!bg-opacity-10 focus:!bg-opacity-10 aria-selected:!bg-opacity-15 backdrop-blur-0 hover:backdrop-blur focus:backdrop-blur 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:i,separator:o,className:s,border:c,borderColor:u,background:f,gap:h,...p})=>y.jsx("div",{className:fe(L5({roundedSize:t,transparency:i,padding:n,separator:o,border:typeof c=="boolean"?c?"with":"none":void 0,background:f,borderColor:u,gap:h,className:s})),...p,children:e}),pD=({content:e,...t})=>{const[n,i]=E.useState(!1),[o,s]=E.useState(!1),{label:c}=jt("copy-button"),u=async()=>{try{s(!1),await navigator.clipboard.writeText(e),i(!0)}catch(h){console.error("Failed to copy text: ",h),s(!0)}};E.useEffect(()=>{if(n||o){const h=setTimeout(()=>{i(!1),s(!1)},1e3);return()=>clearTimeout(h)}},[n,o]);const f=()=>n?"Content copied to clipboard":o?"Failed to copy content":t.label??c.value;return y.jsx(lt,{Icon:n?PG:UG,onClick:u,variant:Ve.HOVERABLE,color:Pe.TEXT,size:Je.ICON_SM,tabIndex:0,title:f(),...t,label:f(),"aria-describedby":n?"copy-success":o?"copy-error":void 0})},Wc="relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8",D5="after:content-['#'] after:scale-75 after:px-6 after:text-neutral after:absolute after:top-0 after:h-full after:-left-12 after:absolute after:to-neutral after:md:opacity-0 after:transition-opacity hover:after:opacity-80 after:duration-200 after:delay-100",O5=({className:e,...t})=>y.jsx("h1",{className:fe("mt-5 font-bold text-2xl",e),...t}),j5=({className:e,...t})=>y.jsx("h2",{className:fe("mt-16 mb-2 font-bold text-2xl",Wc,e),...t}),z5=({className:e,...t})=>y.jsx("h3",{className:fe("mt-5 mb-2 font-bold text-xl",Wc,e),...t}),M5=({className:e,...t})=>y.jsx("h4",{className:fe("mt-3 font-bold text-lg",Wc,e),...t}),P5=({className:e,...t})=>y.jsx("h5",{className:fe("mt-3 font-bold text-base",Wc,e),...t}),B5=({className:e,...t})=>y.jsx("h6",{className:fe("mt-3 ml-3 font-bold text-base",Wc,e),...t}),U5=e=>String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase(),V5=e=>{const t=(document.getElementById(e)?.getBoundingClientRect()?.top??0)+window.scrollY-150;window.scrollTo({top:t,behavior:"smooth"})},F5=(e,t)=>{const n=e.getBoundingClientRect().left,i=e.getBoundingClientRect().top,o=window.getComputedStyle(e,":after"),s=n+parseInt(o.getPropertyValue("left"),10),c=s+parseInt(o.width,10),u=i+parseInt(o.getPropertyValue("top"),10),f=u+parseInt(o.height,10),h=t.clientX,p=t.clientY;return h>=s&&h<=c&&p>=u&&p<=f},Xc=({H:e,children:t,className:n,isClickable:i,...o})=>{const s=typeof t=="string"?U5(t):void 0,c=u=>{const{id:f}=u.currentTarget;if(F5(u.currentTarget,u)&&typeof f=="string"){const h=`${window.location.href.split("#")[0]}#${f}`;navigator.clipboard.writeText(h),V5(f)}};return y.jsx(e,{id:s,onClick:i?c:void 0,"aria-label":i?`Click to scroll to section ${s} and copy the link to the clipboard`:void 0,className:fe(i&&D5,n),...o,children:t})},H5=({isClickable:e,...t})=>y.jsx(O5,{...t}),G5=({isClickable:e=!1,...t})=>y.jsx(Xc,{H:j5,isClickable:e,...t}),Vv=({isClickable:e=!1,...t})=>y.jsx(Xc,{H:z5,isClickable:e,...t}),K5=({isClickable:e=!1,...t})=>y.jsx(Xc,{H:M5,isClickable:e,...t}),$5=({isClickable:e=!1,...t})=>y.jsx(Xc,{H:P5,isClickable:e,...t}),q5=({isClickable:e=!1,...t})=>y.jsx(Xc,{H:B5,isClickable:e,...t}),mD=e=>{const[t,n]=E.useState(e);return E.useEffect(()=>{n(e??window.document.body)},[e]),t},Z5={},cw=e=>{let t;const n=new Set,i=(p,g)=>{const b=typeof p=="function"?p(t):p;if(!Object.is(b,t)){const x=t;t=g??(typeof b!="object"||b===null)?b:Object.assign({},t,b),n.forEach(w=>w(t,x))}},o=()=>t,f={setState:i,getState:o,getInitialState:()=>h,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(Z5?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},h=t=e(i,o,f);return f},Y5=e=>e?cw(e):cw;var gy={exports:{}},vy={},by={exports:{}},Ey={};/**
272
+ * @license React
273
+ * use-sync-external-store-shim.production.js
274
+ *
275
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
276
+ *
277
+ * This source code is licensed under the MIT license found in the
278
+ * LICENSE file in the root directory of this source tree.
279
+ */var uw;function W5(){if(uw)return Ey;uw=1;var e=Vc();function t(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var n=typeof Object.is=="function"?Object.is:t,i=e.useState,o=e.useEffect,s=e.useLayoutEffect,c=e.useDebugValue;function u(g,b){var x=b(),w=i({inst:{value:x,getSnapshot:b}}),A=w[0].inst,C=w[1];return s(function(){A.value=x,A.getSnapshot=b,f(A)&&C({inst:A})},[g,x,b]),o(function(){return f(A)&&C({inst:A}),g(function(){f(A)&&C({inst:A})})},[g]),c(x),x}function f(g){var b=g.getSnapshot;g=g.value;try{var x=b();return!n(g,x)}catch{return!0}}function h(g,b){return b()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:u;return Ey.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Ey}var dw;function X5(){return dw||(dw=1,by.exports=W5()),by.exports}/**
280
+ * @license React
281
+ * use-sync-external-store-shim/with-selector.production.js
282
+ *
283
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
284
+ *
285
+ * This source code is licensed under the MIT license found in the
286
+ * LICENSE file in the root directory of this source tree.
287
+ */var fw;function Q5(){if(fw)return vy;fw=1;var e=Vc(),t=X5();function n(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var i=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,s=e.useRef,c=e.useEffect,u=e.useMemo,f=e.useDebugValue;return vy.useSyncExternalStoreWithSelector=function(h,p,g,b,x){var w=s(null);if(w.current===null){var A={hasValue:!1,value:null};w.current=A}else A=w.current;w=u(function(){function L(_){if(!S){if(S=!0,R=_,_=b(_),x!==void 0&&A.hasValue){var k=A.value;if(x(k,_))return I=k}return I=_}if(k=I,i(R,_))return k;var O=b(_);return x!==void 0&&x(k,O)?(R=_,k):(R=_,I=O)}var S=!1,R,I,N=g===void 0?null:g;return[function(){return L(p())},N===null?void 0:function(){return L(N())}]},[p,g,b,x]);var C=o(h,w[0],w[1]);return c(function(){A.hasValue=!0,A.value=C},[C]),f(C),C},vy}var hw;function J5(){return hw||(hw=1,gy.exports=Q5()),gy.exports}var e6=J5();const t6=Ev(e6),yD={},{useDebugValue:n6}=Ne,{useSyncExternalStoreWithSelector:r6}=t6;let pw=!1;const i6=e=>e;function a6(e,t=i6,n){(yD?"production":void 0)!=="production"&&n&&!pw&&(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"),pw=!0);const i=r6(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return n6(i),i}const mw=e=>{(yD?"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"?Y5(e):e,n=(i,o)=>a6(t,i,o);return Object.assign(n,t),n},gD=e=>e?mw(e):mw,o6=gD((e,t)=>({scrollBlockers:[],addBlockage:(n,i)=>e(o=>{const s=o.scrollBlockers,c=s.find(u=>u.element===i);if(c){const u=c.blockers.includes(n)?c.blockers:[...c.blockers,n];return{scrollBlockers:s.map(f=>f.element===i?{...f,blockers:u}:f)}}return i.style.overflowY="hidden",i.style.overflowX="hidden",{scrollBlockers:[...s,{element:i,blockers:[n]}]}}),removeBlockage:(n,i)=>e(o=>{const s=o.scrollBlockers,c=s.find(u=>u.element===i);return c?c.blockers.length>1?{scrollBlockers:s.map(u=>u.element===i?{...u,blockers:u.blockers.filter(f=>f!==n)}:u)}:(i.style.overflowY="auto",{scrollBlockers:s.filter(u=>u.element!==i)}):{scrollBlockers:s}}),isElementScrollBlocked:n=>t().scrollBlockers.some(i=>i.element===n)}));function s6(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[i,o]of e)if(!Object.is(o,t.get(i)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0}const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(const i of n)if(!Object.prototype.hasOwnProperty.call(t,i)||!Object.is(e[i],t[i]))return!1;return!0}const{useRef:l6}=Ne;function vD(e){const t=l6();return n=>{const i=e(n);return s6(t.current,i)?t.current:t.current=i}}const bD=e=>{const{disableScroll:t=!1,element:n,key:i="unnamed_blocker"}=e??{},{isElementScrollBlocked:o,addBlockage:s,removeBlockage:c}=o6(vD(f=>({isElementScrollBlocked:f.isElementScrollBlocked,addBlockage:f.addBlockage,removeBlockage:f.removeBlockage}))),u=mD(n);return E.useEffect(()=>{const f=n??window.document.body;t?s(i,f):c(i,f)},[s,t,n,i,c]),{isScrollBlocked:u?o(u):!1}},ED=E.createContext({});function c6(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const Fv=typeof window<"u",u6=Fv?E.useLayoutEffect:E.useEffect,Hv=E.createContext(null);function Gv(e,t){e.indexOf(t)===-1&&e.push(t)}function Kv(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 $v=()=>{};const Ni={},xD=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function SD(e){return typeof e=="object"&&e!==null}const AD=e=>/^0[^.\s]+$/u.test(e);function qv(e){let t;return()=>(t===void 0&&(t=e()),t)}const hr=e=>e,d6=(e,t)=>n=>t(e(n)),Qc=(...e)=>e.reduce(d6),Ic=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i};class Zv{constructor(){this.subscriptions=[]}add(t){return Gv(this.subscriptions,t),()=>Kv(this.subscriptions,t)}notify(t,n,i){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,i);else for(let s=0;s<o;s++){const c=this.subscriptions[s];c&&c(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Zr=e=>e*1e3,dr=e=>e/1e3;function wD(e,t){return t?e*(1e3/t):0}const TD=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,f6=1e-7,h6=12;function p6(e,t,n,i,o){let s,c,u=0;do c=t+(n-t)/2,s=TD(c,i,o)-e,s>0?n=c:t=c;while(Math.abs(s)>f6&&++u<h6);return c}function Jc(e,t,n,i){if(e===t&&n===i)return hr;const o=s=>p6(s,0,1,e,n);return s=>s===0||s===1?s:TD(o(s),t,i)}const CD=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,RD=e=>t=>1-e(1-t),ID=Jc(.33,1.53,.69,.99),Yv=RD(ID),_D=CD(Yv),ND=e=>(e*=2)<1?.5*Yv(e):.5*(2-Math.pow(2,-10*(e-1))),Wv=e=>1-Math.sin(Math.acos(e)),kD=RD(Wv),LD=CD(Wv),m6=Jc(.42,0,1,1),y6=Jc(0,0,.58,1),DD=Jc(.42,0,.58,1),g6=e=>Array.isArray(e)&&typeof e[0]!="number",OD=e=>Array.isArray(e)&&typeof e[0]=="number",v6={linear:hr,easeIn:m6,easeInOut:DD,easeOut:y6,circIn:Wv,circInOut:LD,circOut:kD,backIn:Yv,backInOut:_D,backOut:ID,anticipate:ND},b6=e=>typeof e=="string",yw=e=>{if(OD(e)){$v(e.length===4);const[t,n,i,o]=e;return Jc(t,n,i,o)}else if(b6(e))return v6[e];return e},jd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function E6(e,t){let n=new Set,i=new Set,o=!1,s=!1;const c=new WeakSet;let u={delta:0,timestamp:0,isProcessing:!1};function f(p){c.has(p)&&(h.schedule(p),e()),p(u)}const h={schedule:(p,g=!1,b=!1)=>{const w=b&&o?n:i;return g&&c.add(p),w.has(p)||w.add(p),p},cancel:p=>{i.delete(p),c.delete(p)},process:p=>{if(u=p,o){s=!0;return}o=!0,[n,i]=[i,n],n.forEach(f),n.clear(),o=!1,s&&(s=!1,h.process(p))}};return h}const x6=40;function jD(e,t){let n=!1,i=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,c=jd.reduce((R,I)=>(R[I]=E6(s),R),{}),{setup:u,read:f,resolveKeyframes:h,preUpdate:p,update:g,preRender:b,render:x,postRender:w}=c,A=()=>{const R=Ni.useManualTiming?o.timestamp:performance.now();n=!1,Ni.useManualTiming||(o.delta=i?1e3/60:Math.max(Math.min(R-o.timestamp,x6),1)),o.timestamp=R,o.isProcessing=!0,u.process(o),f.process(o),h.process(o),p.process(o),g.process(o),b.process(o),x.process(o),w.process(o),o.isProcessing=!1,n&&t&&(i=!1,e(A))},C=()=>{n=!0,i=!0,o.isProcessing||e(A)};return{schedule:jd.reduce((R,I)=>{const N=c[I];return R[I]=(_,k=!1,O=!1)=>(n||C(),N.schedule(_,k,O)),R},{}),cancel:R=>{for(let I=0;I<jd.length;I++)c[jd[I]].cancel(R)},state:o,steps:c}}const{schedule:St,cancel:ma,state:un,steps:xy}=jD(typeof requestAnimationFrame<"u"?requestAnimationFrame:hr,!0);let of;function S6(){of=void 0}const Ln={now:()=>(of===void 0&&Ln.set(un.isProcessing||Ni.useManualTiming?un.timestamp:performance.now()),of),set:e=>{of=e,queueMicrotask(S6)}},zD=e=>t=>typeof t=="string"&&t.startsWith(e),Xv=zD("--"),A6=zD("var(--"),Qv=e=>A6(e)?w6.test(e.split("/*")[0].trim()):!1,w6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ws={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},_c={...Ws,transform:e=>_i(0,1,e)},zd={...Ws,default:1},yc=e=>Math.round(e*1e5)/1e5,Jv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function T6(e){return e==null}const C6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,eb=(e,t)=>n=>!!(typeof n=="string"&&C6.test(n)&&n.startsWith(e)||t&&!T6(n)&&Object.prototype.hasOwnProperty.call(n,t)),MD=(e,t,n)=>i=>{if(typeof i!="string")return i;const[o,s,c,u]=i.match(Jv);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(c),alpha:u!==void 0?parseFloat(u):1}},R6=e=>_i(0,255,e),Sy={...Ws,transform:e=>Math.round(R6(e))},ro={test:eb("rgb","red"),parse:MD("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+Sy.transform(e)+", "+Sy.transform(t)+", "+Sy.transform(n)+", "+yc(_c.transform(i))+")"};function I6(e){let t="",n="",i="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,i+=i,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:o?parseInt(o,16)/255:1}}const mg={test:eb("#"),parse:I6,transform:ro.transform},eu=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ua=eu("deg"),Yr=eu("%"),De=eu("px"),_6=eu("vh"),N6=eu("vw"),gw={...Yr,parse:e=>Yr.parse(e)/100,transform:e=>Yr.transform(e*100)},As={test:eb("hsl","hue"),parse:MD("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Yr.transform(yc(t))+", "+Yr.transform(yc(n))+", "+yc(_c.transform(i))+")"},Ft={test:e=>ro.test(e)||mg.test(e)||As.test(e),parse:e=>ro.test(e)?ro.parse(e):As.test(e)?As.parse(e):mg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ro.transform(e):As.transform(e),getAnimatableNone:e=>{const t=Ft.parse(e);return t.alpha=0,Ft.transform(t)}},k6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function L6(e){return isNaN(e)&&typeof e=="string"&&(e.match(Jv)?.length||0)+(e.match(k6)?.length||0)>0}const PD="number",BD="color",D6="var",O6="var(",vw="${}",j6=/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 Nc(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},o=[];let s=0;const u=t.replace(j6,f=>(Ft.test(f)?(i.color.push(s),o.push(BD),n.push(Ft.parse(f))):f.startsWith(O6)?(i.var.push(s),o.push(D6),n.push(f)):(i.number.push(s),o.push(PD),n.push(parseFloat(f))),++s,vw)).split(vw);return{values:n,split:u,indexes:i,types:o}}function UD(e){return Nc(e).values}function VD(e){const{split:t,types:n}=Nc(e),i=t.length;return o=>{let s="";for(let c=0;c<i;c++)if(s+=t[c],o[c]!==void 0){const u=n[c];u===PD?s+=yc(o[c]):u===BD?s+=Ft.transform(o[c]):s+=o[c]}return s}}const z6=e=>typeof e=="number"?0:Ft.test(e)?Ft.getAnimatableNone(e):e;function M6(e){const t=UD(e);return VD(e)(t.map(z6))}const ya={test:L6,parse:UD,createTransformer:VD,getAnimatableNone:M6};function Ay(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 P6({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let o=0,s=0,c=0;if(!t)o=s=c=n;else{const u=n<.5?n*(1+t):n+t-n*t,f=2*n-u;o=Ay(f,u,e+1/3),s=Ay(f,u,e),c=Ay(f,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(c*255),alpha:i}}function Af(e,t){return n=>n>0?t:e}const wt=(e,t,n)=>e+(t-e)*n,wy=(e,t,n)=>{const i=e*e,o=n*(t*t-i)+i;return o<0?0:Math.sqrt(o)},B6=[mg,ro,As],U6=e=>B6.find(t=>t.test(e));function bw(e){const t=U6(e);if(!t)return!1;let n=t.parse(e);return t===As&&(n=P6(n)),n}const Ew=(e,t)=>{const n=bw(e),i=bw(t);if(!n||!i)return Af(e,t);const o={...n};return s=>(o.red=wy(n.red,i.red,s),o.green=wy(n.green,i.green,s),o.blue=wy(n.blue,i.blue,s),o.alpha=wt(n.alpha,i.alpha,s),ro.transform(o))},yg=new Set(["none","hidden"]);function V6(e,t){return yg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function F6(e,t){return n=>wt(e,t,n)}function tb(e){return typeof e=="number"?F6:typeof e=="string"?Qv(e)?Af:Ft.test(e)?Ew:K6:Array.isArray(e)?FD:typeof e=="object"?Ft.test(e)?Ew:H6:Af}function FD(e,t){const n=[...e],i=n.length,o=e.map((s,c)=>tb(s)(s,t[c]));return s=>{for(let c=0;c<i;c++)n[c]=o[c](s);return n}}function H6(e,t){const n={...e,...t},i={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(i[o]=tb(e[o])(e[o],t[o]));return o=>{for(const s in i)n[s]=i[s](o);return n}}function G6(e,t){const n=[],i={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const s=t.types[o],c=e.indexes[s][i[s]],u=e.values[c]??0;n[o]=u,i[s]++}return n}const K6=(e,t)=>{const n=ya.createTransformer(t),i=Nc(e),o=Nc(t);return i.indexes.var.length===o.indexes.var.length&&i.indexes.color.length===o.indexes.color.length&&i.indexes.number.length>=o.indexes.number.length?yg.has(e)&&!o.values.length||yg.has(t)&&!i.values.length?V6(e,t):Qc(FD(G6(i,o),o.values),n):Af(e,t)};function HD(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?wt(e,t,n):tb(e)(e,t)}const $6=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>St.update(t,n),stop:()=>ma(t),now:()=>un.isProcessing?un.timestamp:Ln.now()}},GD=(e,t,n=10)=>{let i="";const o=Math.max(Math.round(t/n),2);for(let s=0;s<o;s++)i+=Math.round(e(s/(o-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},wf=2e4;function nb(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<wf;)t+=n,i=e.next(t);return t>=wf?1/0:t}function q6(e,t=100,n){const i=n({...e,keyframes:[0,t]}),o=Math.min(nb(i),wf);return{type:"keyframes",ease:s=>i.next(o*s).value/t,duration:dr(o)}}const Z6=5;function KD(e,t,n){const i=Math.max(t-Z6,0);return wD(n-e(i),t-i)}const Nt={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},Ty=.001;function Y6({duration:e=Nt.duration,bounce:t=Nt.bounce,velocity:n=Nt.velocity,mass:i=Nt.mass}){let o,s,c=1-t;c=_i(Nt.minDamping,Nt.maxDamping,c),e=_i(Nt.minDuration,Nt.maxDuration,dr(e)),c<1?(o=h=>{const p=h*c,g=p*e,b=p-n,x=gg(h,c),w=Math.exp(-g);return Ty-b/x*w},s=h=>{const g=h*c*e,b=g*n+n,x=Math.pow(c,2)*Math.pow(h,2)*e,w=Math.exp(-g),A=gg(Math.pow(h,2),c);return(-o(h)+Ty>0?-1:1)*((b-x)*w)/A}):(o=h=>{const p=Math.exp(-h*e),g=(h-n)*e+1;return-Ty+p*g},s=h=>{const p=Math.exp(-h*e),g=(n-h)*(e*e);return p*g});const u=5/e,f=X6(o,s,u);if(e=Zr(e),isNaN(f))return{stiffness:Nt.stiffness,damping:Nt.damping,duration:e};{const h=Math.pow(f,2)*i;return{stiffness:h,damping:c*2*Math.sqrt(i*h),duration:e}}}const W6=12;function X6(e,t,n){let i=n;for(let o=1;o<W6;o++)i=i-e(i)/t(i);return i}function gg(e,t){return e*Math.sqrt(1-t*t)}const Q6=["duration","bounce"],J6=["stiffness","damping","mass"];function xw(e,t){return t.some(n=>e[n]!==void 0)}function eq(e){let t={velocity:Nt.velocity,stiffness:Nt.stiffness,damping:Nt.damping,mass:Nt.mass,isResolvedFromDuration:!1,...e};if(!xw(e,J6)&&xw(e,Q6))if(e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),o=i*i,s=2*_i(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Nt.mass,stiffness:o,damping:s}}else{const n=Y6(e);t={...t,...n,mass:Nt.mass},t.isResolvedFromDuration=!0}return t}function Tf(e=Nt.visualDuration,t=Nt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:o}=n;const s=n.keyframes[0],c=n.keyframes[n.keyframes.length-1],u={done:!1,value:s},{stiffness:f,damping:h,mass:p,duration:g,velocity:b,isResolvedFromDuration:x}=eq({...n,velocity:-dr(n.velocity||0)}),w=b||0,A=h/(2*Math.sqrt(f*p)),C=c-s,L=dr(Math.sqrt(f/p)),S=Math.abs(C)<5;i||(i=S?Nt.restSpeed.granular:Nt.restSpeed.default),o||(o=S?Nt.restDelta.granular:Nt.restDelta.default);let R;if(A<1){const N=gg(L,A);R=_=>{const k=Math.exp(-A*L*_);return c-k*((w+A*L*C)/N*Math.sin(N*_)+C*Math.cos(N*_))}}else if(A===1)R=N=>c-Math.exp(-L*N)*(C+(w+L*C)*N);else{const N=L*Math.sqrt(A*A-1);R=_=>{const k=Math.exp(-A*L*_),O=Math.min(N*_,300);return c-k*((w+A*L*C)*Math.sinh(O)+N*C*Math.cosh(O))/N}}const I={calculatedDuration:x&&g||null,next:N=>{const _=R(N);if(x)u.done=N>=g;else{let k=N===0?w:0;A<1&&(k=N===0?Zr(w):KD(R,N,_));const O=Math.abs(k)<=i,U=Math.abs(c-_)<=o;u.done=O&&U}return u.value=u.done?c:_,u},toString:()=>{const N=Math.min(nb(I),wf),_=GD(k=>I.next(N*k).value,N,30);return N+"ms "+_},toTransition:()=>{}};return I}Tf.applyToOptions=e=>{const t=q6(e,100,Tf);return e.ease=t.ease,e.duration=Zr(t.duration),e.type="keyframes",e};function vg({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:o=10,bounceStiffness:s=500,modifyTarget:c,min:u,max:f,restDelta:h=.5,restSpeed:p}){const g=e[0],b={done:!1,value:g},x=O=>u!==void 0&&O<u||f!==void 0&&O>f,w=O=>u===void 0?f:f===void 0||Math.abs(u-O)<Math.abs(f-O)?u:f;let A=n*t;const C=g+A,L=c===void 0?C:c(C);L!==C&&(A=L-g);const S=O=>-A*Math.exp(-O/i),R=O=>L+S(O),I=O=>{const U=S(O),F=R(O);b.done=Math.abs(U)<=h,b.value=b.done?L:F};let N,_;const k=O=>{x(b.value)&&(N=O,_=Tf({keyframes:[b.value,w(b.value)],velocity:KD(R,O,b.value),damping:o,stiffness:s,restDelta:h,restSpeed:p}))};return k(0),{calculatedDuration:null,next:O=>{let U=!1;return!_&&N===void 0&&(U=!0,I(O),k(O)),N!==void 0&&O>=N?_.next(O-N):(!U&&I(O),b)}}}function tq(e,t,n){const i=[],o=n||Ni.mix||HD,s=e.length-1;for(let c=0;c<s;c++){let u=o(e[c],e[c+1]);if(t){const f=Array.isArray(t)?t[c]||hr:t;u=Qc(f,u)}i.push(u)}return i}function nq(e,t,{clamp:n=!0,ease:i,mixer:o}={}){const s=e.length;if($v(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const c=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const u=tq(t,i,o),f=u.length,h=p=>{if(c&&p<e[0])return t[0];let g=0;if(f>1)for(;g<e.length-2&&!(p<e[g+1]);g++);const b=Ic(e[g],e[g+1],p);return u[g](b)};return n?p=>h(_i(e[0],e[s-1],p)):h}function rq(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const o=Ic(0,t,i);e.push(wt(n,1,o))}}function iq(e){const t=[0];return rq(t,e.length-1),t}function aq(e,t){return e.map(n=>n*t)}function oq(e,t){return e.map(()=>t||DD).splice(0,e.length-1)}function gc({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const o=g6(i)?i.map(yw):yw(i),s={done:!1,value:t[0]},c=aq(n&&n.length===t.length?n:iq(t),e),u=nq(c,t,{ease:Array.isArray(o)?o:oq(t,o)});return{calculatedDuration:e,next:f=>(s.value=u(f),s.done=f>=e,s)}}const sq=e=>e!==null;function rb(e,{repeat:t,repeatType:n="loop"},i,o=1){const s=e.filter(sq),u=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!u||i===void 0?s[u]:i}const lq={decay:vg,inertia:vg,tween:gc,keyframes:gc,spring:Tf};function $D(e){typeof e.type=="string"&&(e.type=lq[e.type])}class ib{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 cq=e=>e/100;class ab extends ib{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;$D(t);const{type:n=gc,repeat:i=0,repeatDelay:o=0,repeatType:s,velocity:c=0}=t;let{keyframes:u}=t;const f=n||gc;f!==gc&&typeof u[0]!="number"&&(this.mixKeyframes=Qc(cq,HD(u[0],u[1])),u=[0,100]);const h=f({...t,keyframes:u});s==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...u].reverse(),velocity:-c})),h.calculatedDuration===null&&(h.calculatedDuration=nb(h));const{calculatedDuration:p}=h;this.calculatedDuration=p,this.resolvedDuration=p+o,this.totalDuration=this.resolvedDuration*(i+1)-o,this.generator=h}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:i,totalDuration:o,mixKeyframes:s,mirroredGenerator:c,resolvedDuration:u,calculatedDuration:f}=this;if(this.startTime===null)return i.next(0);const{delay:h=0,keyframes:p,repeat:g,repeatType:b,repeatDelay:x,type:w,onUpdate:A,finalKeyframe:C}=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 L=this.currentTime-h*(this.playbackSpeed>=0?1:-1),S=this.playbackSpeed>=0?L<0:L>o;this.currentTime=Math.max(L,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let R=this.currentTime,I=i;if(g){const O=Math.min(this.currentTime,o)/u;let U=Math.floor(O),F=O%1;!F&&O>=1&&(F=1),F===1&&U--,U=Math.min(U,g+1),!!(U%2)&&(b==="reverse"?(F=1-F,x&&(F-=x/u)):b==="mirror"&&(I=c)),R=_i(0,1,F)*u}const N=S?{done:!1,value:p[0]}:I.next(R);s&&(N.value=s(N.value));let{done:_}=N;!S&&f!==null&&(_=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const k=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&_);return k&&w!==vg&&(N.value=rb(p,this.options,C,this.speed)),A&&A(N.value),k&&this.finish(),N}then(t,n){return this.finished.then(t,n)}get duration(){return dr(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+dr(t)}get time(){return dr(this.currentTime)}set time(t){t=Zr(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=dr(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=$6,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),this.options.onPlay?.();const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),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 uq(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const io=e=>e*180/Math.PI,bg=e=>{const t=io(Math.atan2(e[1],e[0]));return Eg(t)},dq={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:bg,rotateZ:bg,skewX:e=>io(Math.atan(e[1])),skewY:e=>io(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Eg=e=>(e=e%360,e<0&&(e+=360),e),Sw=bg,Aw=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),ww=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),fq={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Aw,scaleY:ww,scale:e=>(Aw(e)+ww(e))/2,rotateX:e=>Eg(io(Math.atan2(e[6],e[5]))),rotateY:e=>Eg(io(Math.atan2(-e[2],e[0]))),rotateZ:Sw,rotate:Sw,skewX:e=>io(Math.atan(e[4])),skewY:e=>io(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function xg(e){return e.includes("scale")?1:0}function Sg(e,t){if(!e||e==="none")return xg(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,o;if(n)i=fq,o=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=dq,o=u}if(!o)return xg(t);const s=i[t],c=o[1].split(",").map(pq);return typeof s=="function"?s(c):c[s]}const hq=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return Sg(n,t)};function pq(e){return parseFloat(e.trim())}const Xs=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Qs=new Set(Xs),Tw=e=>e===Ws||e===De,mq=new Set(["x","y","z"]),yq=Xs.filter(e=>!mq.has(e));function gq(e){const t=[];return yq.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const so={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})=>Sg(t,"x"),y:(e,{transform:t})=>Sg(t,"y")};so.translateX=so.x;so.translateY=so.y;const lo=new Set;let Ag=!1,wg=!1,Tg=!1;function qD(){if(wg){const e=Array.from(lo).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const o=gq(i);o.length&&(n.set(i,o),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const o=n.get(i);o&&o.forEach(([s,c])=>{i.getValue(s)?.set(c)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}wg=!1,Ag=!1,lo.forEach(e=>e.complete(Tg)),lo.clear()}function ZD(){lo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(wg=!0)})}function vq(){Tg=!0,ZD(),qD(),Tg=!1}class ob{constructor(t,n,i,o,s,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=o,this.element=s,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(lo.add(this),Ag||(Ag=!0,St.read(ZD),St.resolveKeyframes(qD))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:o}=this;if(t[0]===null){const s=o?.get(),c=t[t.length-1];if(s!==void 0)t[0]=s;else if(i&&n){const u=i.readValue(n,c);u!=null&&(t[0]=u)}t[0]===void 0&&(t[0]=c),o&&s===void 0&&o.set(t[0])}uq(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),lo.delete(this)}cancel(){this.state==="scheduled"&&(lo.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const bq=e=>e.startsWith("--");function Eq(e,t,n){bq(t)?e.style.setProperty(t,n):e.style[t]=n}const xq=qv(()=>window.ScrollTimeline!==void 0),Sq={};function Aq(e,t){const n=qv(e);return()=>Sq[t]??n()}const YD=Aq(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),uc=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,Cw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:uc([0,.65,.55,1]),circOut:uc([.55,0,1,.45]),backIn:uc([.31,.01,.66,-.59]),backOut:uc([.33,1.53,.69,.99])};function WD(e,t){if(e)return typeof e=="function"?YD()?GD(e,t):"ease-out":OD(e)?uc(e):Array.isArray(e)?e.map(n=>WD(n,t)||Cw.easeOut):Cw[e]}function wq(e,t,n,{delay:i=0,duration:o=300,repeat:s=0,repeatType:c="loop",ease:u="easeOut",times:f}={},h=void 0){const p={[t]:n};f&&(p.offset=f);const g=WD(u,o);Array.isArray(g)&&(p.easing=g);const b={delay:i,duration:o,easing:Array.isArray(g)?"linear":g,fill:"both",iterations:s+1,direction:c==="reverse"?"alternate":"normal"};return h&&(b.pseudoElement=h),e.animate(p,b)}function XD(e){return typeof e=="function"&&"applyToOptions"in e}function Tq({type:e,...t}){return XD(e)&&YD()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Cq extends ib{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:i,keyframes:o,pseudoElement:s,allowFlatten:c=!1,finalKeyframe:u,onComplete:f}=t;this.isPseudoElement=!!s,this.allowFlatten=c,this.options=t,$v(typeof t.type!="string");const h=Tq(t);this.animation=wq(n,i,o,h,s),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const p=rb(o,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(p):Eq(n,i,p),this.animation.cancel()}f?.(),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 dr(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+dr(t)}get time(){return dr(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=Zr(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&&xq()?(this.animation.timeline=t,hr):n(this)}}const QD={anticipate:ND,backInOut:_D,circInOut:LD};function Rq(e){return e in QD}function Iq(e){typeof e.ease=="string"&&Rq(e.ease)&&(e.ease=QD[e.ease])}const Rw=10;class _q extends Cq{constructor(t){Iq(t),$D(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:i,onComplete:o,element:s,...c}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const u=new ab({...c,autoplay:!1}),f=Zr(this.finishedTime??this.time);n.setWithVelocity(u.sample(f-Rw).value,u.sample(f).value,Rw),u.stop()}}const Iw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ya.test(e)||e==="0")&&!e.startsWith("url("));function Nq(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 kq(e,t,n,i){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],c=Iw(o,t),u=Iw(s,t);return!c||!u?!1:Nq(e)||(n==="spring"||XD(n))&&i}function Cg(e){e.duration=0,e.type="keyframes"}const Lq=new Set(["opacity","clipPath","filter","transform"]),Dq=qv(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Oq(e){const{motionValue:t,name:n,repeatDelay:i,repeatType:o,damping:s,type:c}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:f,transformTemplate:h}=t.owner.getProps();return Dq()&&n&&Lq.has(n)&&(n!=="transform"||!h)&&!f&&!i&&o!=="mirror"&&s!==0&&c!=="inertia"}const jq=40;class zq extends ib{constructor({autoplay:t=!0,delay:n=0,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:c="loop",keyframes:u,name:f,motionValue:h,element:p,...g}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Ln.now();const b={autoplay:t,delay:n,type:i,repeat:o,repeatDelay:s,repeatType:c,name:f,motionValue:h,element:p,...g},x=p?.KeyframeResolver||ob;this.keyframeResolver=new x(u,(w,A,C)=>this.onKeyframesResolved(w,A,b,!C),f,h,p),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(t,n,i,o){this.keyframeResolver=void 0;const{name:s,type:c,velocity:u,delay:f,isHandoff:h,onUpdate:p}=i;this.resolvedAt=Ln.now(),kq(t,s,c,u)||((Ni.instantAnimations||!f)&&p?.(rb(t,i,n)),t[0]=t[t.length-1],Cg(i),i.repeat=0);const b={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>jq?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:t},x=!h&&Oq(b)?new _q({...b,element:b.motionValue.owner.current}):new ab(b);x.finished.then(()=>this.notifyFinished()).catch(hr),this.pendingTimeline&&(this.stopTimeline=x.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=x}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(),vq()),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 Mq=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Pq(e){const t=Mq.exec(e);if(!t)return[,];const[,n,i,o]=t;return[`--${n??i}`,o]}function JD(e,t,n=1){const[i,o]=Pq(e);if(!i)return;const s=window.getComputedStyle(t).getPropertyValue(i);if(s){const c=s.trim();return xD(c)?parseFloat(c):c}return Qv(o)?JD(o,t,n+1):o}function sb(e,t){return e?.[t]??e?.default??e}const eO=new Set(["width","height","top","left","right","bottom",...Xs]),Bq={test:e=>e==="auto",parse:e=>e},tO=e=>t=>t.test(e),nO=[Ws,De,Yr,ua,N6,_6,Bq],_w=e=>nO.find(tO(e));function Uq(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||AD(e):!0}const Vq=new Set(["brightness","contrast","saturate","opacity"]);function Fq(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(Jv)||[];if(!i)return e;const o=n.replace(i,"");let s=Vq.has(t)?1:0;return i!==n&&(s*=100),t+"("+s+o+")"}const Hq=/\b([a-z-]*)\(.*?\)/gu,Rg={...ya,getAnimatableNone:e=>{const t=e.match(Hq);return t?t.map(Fq).join(" "):e}},Nw={...Ws,transform:Math.round},Gq={rotate:ua,rotateX:ua,rotateY:ua,rotateZ:ua,scale:zd,scaleX:zd,scaleY:zd,scaleZ:zd,skew:ua,skewX:ua,skewY:ua,distance:De,translateX:De,translateY:De,translateZ:De,x:De,y:De,z:De,perspective:De,transformPerspective:De,opacity:_c,originX:gw,originY:gw,originZ:De},lb={borderWidth:De,borderTopWidth:De,borderRightWidth:De,borderBottomWidth:De,borderLeftWidth:De,borderRadius:De,radius:De,borderTopLeftRadius:De,borderTopRightRadius:De,borderBottomRightRadius:De,borderBottomLeftRadius:De,width:De,maxWidth:De,height:De,maxHeight:De,top:De,right:De,bottom:De,left:De,padding:De,paddingTop:De,paddingRight:De,paddingBottom:De,paddingLeft:De,margin:De,marginTop:De,marginRight:De,marginBottom:De,marginLeft:De,backgroundPositionX:De,backgroundPositionY:De,...Gq,zIndex:Nw,fillOpacity:_c,strokeOpacity:_c,numOctaves:Nw},Kq={...lb,color:Ft,backgroundColor:Ft,outlineColor:Ft,fill:Ft,stroke:Ft,borderColor:Ft,borderTopColor:Ft,borderRightColor:Ft,borderBottomColor:Ft,borderLeftColor:Ft,filter:Rg,WebkitFilter:Rg},rO=e=>Kq[e];function iO(e,t){let n=rO(e);return n!==Rg&&(n=ya),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const $q=new Set(["auto","none","0"]);function qq(e,t,n){let i=0,o;for(;i<e.length&&!o;){const s=e[i];typeof s=="string"&&!$q.has(s)&&Nc(s).values.length&&(o=e[i]),i++}if(o&&n)for(const s of t)e[s]=iO(n,o)}class Zq extends ob{constructor(t,n,i,o,s){super(t,n,i,o,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let f=0;f<t.length;f++){let h=t[f];if(typeof h=="string"&&(h=h.trim(),Qv(h))){const p=JD(h,n.current);p!==void 0&&(t[f]=p),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!eO.has(i)||t.length!==2)return;const[o,s]=t,c=_w(o),u=_w(s);if(c!==u)if(Tw(c)&&Tw(u))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else so[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,i=[];for(let o=0;o<t.length;o++)(t[o]===null||Uq(t[o]))&&i.push(o);i.length&&qq(t,i,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=so[i](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(i,o).jump(o,!1)}measureEndState(){const{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const s=i.length-1,c=i[s];i[s]=so[n](t.measureViewportBox(),window.getComputedStyle(t.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),this.removedTransforms?.length&&this.removedTransforms.forEach(([u,f])=>{t.getValue(u).set(f)}),this.resolveNoneKeyframes()}}function Yq(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const o=n?.[e]??i.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const aO=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Wq(e){return SD(e)&&"offsetHeight"in e}const kw=30,Xq=e=>!isNaN(parseFloat(e));class Qq{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{const o=Ln.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),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=Xq(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 Zv);const i=this.events[t].add(n);return t==="change"?()=>{i(),St.read(()=>{this.events.change.getSize()||this.stop()})}:i}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,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}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>kw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,kw);return wD(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 Bs(e,t){return new Qq(e,t)}const{schedule:cb}=jD(queueMicrotask,!1),Er={x:!1,y:!1};function oO(){return Er.x||Er.y}function Jq(e){return e==="x"||e==="y"?Er[e]?null:(Er[e]=!0,()=>{Er[e]=!1}):Er.x||Er.y?null:(Er.x=Er.y=!0,()=>{Er.x=Er.y=!1})}function sO(e,t){const n=Yq(e),i=new AbortController,o={passive:!0,...t,signal:i.signal};return[n,o,()=>i.abort()]}function Lw(e){return!(e.pointerType==="touch"||oO())}function e8(e,t,n={}){const[i,o,s]=sO(e,n),c=u=>{if(!Lw(u))return;const{target:f}=u,h=t(f,u);if(typeof h!="function"||!f)return;const p=g=>{Lw(g)&&(h(g),f.removeEventListener("pointerleave",p))};f.addEventListener("pointerleave",p,o)};return i.forEach(u=>{u.addEventListener("pointerenter",c,o)}),s}const lO=(e,t)=>t?e===t?!0:lO(e,t.parentElement):!1,ub=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,t8=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function n8(e){return t8.has(e.tagName)||e.tabIndex!==-1}const sf=new WeakSet;function Dw(e){return t=>{t.key==="Enter"&&e(t)}}function Cy(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const r8=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=Dw(()=>{if(sf.has(n))return;Cy(n,"down");const o=Dw(()=>{Cy(n,"up")}),s=()=>Cy(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function Ow(e){return ub(e)&&!oO()}function i8(e,t,n={}){const[i,o,s]=sO(e,n),c=u=>{const f=u.currentTarget;if(!Ow(u))return;sf.add(f);const h=t(f,u),p=(x,w)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",b),sf.has(f)&&sf.delete(f),Ow(x)&&typeof h=="function"&&h(x,{success:w})},g=x=>{p(x,f===window||f===document||n.useGlobalTarget||lO(f,x.target))},b=x=>{p(x,!1)};window.addEventListener("pointerup",g,o),window.addEventListener("pointercancel",b,o)};return i.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",c,o),Wq(u)&&(u.addEventListener("focus",h=>r8(h,o)),!n8(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),s}function cO(e){return SD(e)&&"ownerSVGElement"in e}function a8(e){return cO(e)&&e.tagName==="svg"}const mn=e=>!!(e&&e.getVelocity),o8=[...nO,Ft,ya],s8=e=>o8.find(tO(e)),uO=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function l8(e=!0){const t=E.useContext(Hv);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:i,register:o}=t,s=E.useId();E.useEffect(()=>{if(e)return o(s)},[e]);const c=E.useCallback(()=>e&&i&&i(s),[s,i,e]);return!n&&i?[!1,c]:[!0]}const db=E.createContext({strict:!1}),jw={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"]},Us={};for(const e in jw)Us[e]={isEnabled:t=>jw[e].some(n=>!!t[n])};function Ig(e){for(const t in e)Us[t]={...Us[t],...e[t]}}function c8({children:e,features:t,strict:n=!1}){const[,i]=E.useState(!Ry(t)),o=E.useRef(void 0);if(!Ry(t)){const{renderer:s,...c}=t;o.current=s,Ig(c)}return E.useEffect(()=>{Ry(t)&&t().then(({renderer:s,...c})=>{Ig(c),o.current=s,i(!0)})},[]),y.jsx(db.Provider,{value:{renderer:o.current,strict:n},children:e})}function Ry(e){return typeof e=="function"}const u8=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 Cf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||u8.has(e)}let dO=e=>!Cf(e);function d8(e){typeof e=="function"&&(dO=t=>t.startsWith("on")?!Cf(t):e(t))}try{d8(require("@emotion/is-prop-valid").default)}catch{}function f8(e,t,n){const i={};for(const o in e)o==="values"&&typeof e.values=="object"||(dO(o)||n===!0&&Cf(o)||!t&&!Cf(o)||e.draggable&&o.startsWith("onDrag"))&&(i[o]=e[o]);return i}const ih=E.createContext({});function ah(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function kc(e){return typeof e=="string"||Array.isArray(e)}const fb=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],hb=["initial",...fb];function oh(e){return ah(e.animate)||hb.some(t=>kc(e[t]))}function fO(e){return!!(oh(e)||e.variants)}function h8(e,t){if(oh(e)){const{initial:n,animate:i}=e;return{initial:n===!1||kc(n)?n:void 0,animate:kc(i)?i:void 0}}return e.inherit!==!1?t:{}}function p8(e){const{initial:t,animate:n}=h8(e,E.useContext(ih));return E.useMemo(()=>({initial:t,animate:n}),[zw(t),zw(n)])}function zw(e){return Array.isArray(e)?e.join(" "):e}const Lc={};function m8(e){for(const t in e)Lc[t]=e[t],Xv(t)&&(Lc[t].isCSSVariable=!0)}function hO(e,{layout:t,layoutId:n}){return Qs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Lc[e]||e==="opacity")}const y8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},g8=Xs.length;function v8(e,t,n){let i="",o=!0;for(let s=0;s<g8;s++){const c=Xs[s],u=e[c];if(u===void 0)continue;let f=!0;if(typeof u=="number"?f=u===(c.startsWith("scale")?1:0):f=parseFloat(u)===0,!f||n){const h=aO(u,lb[c]);if(!f){o=!1;const p=y8[c]||c;i+=`${p}(${h}) `}n&&(t[c]=h)}}return i=i.trim(),n?i=n(t,o?"":i):o&&(i="none"),i}function pb(e,t,n){const{style:i,vars:o,transformOrigin:s}=e;let c=!1,u=!1;for(const f in t){const h=t[f];if(Qs.has(f)){c=!0;continue}else if(Xv(f)){o[f]=h;continue}else{const p=aO(h,lb[f]);f.startsWith("origin")?(u=!0,s[f]=p):i[f]=p}}if(t.transform||(c||n?i.transform=v8(t,e.transform,n):i.transform&&(i.transform="none")),u){const{originX:f="50%",originY:h="50%",originZ:p=0}=s;i.transformOrigin=`${f} ${h} ${p}`}}const mb=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function pO(e,t,n){for(const i in t)!mn(t[i])&&!hO(i,n)&&(e[i]=t[i])}function b8({transformTemplate:e},t){return E.useMemo(()=>{const n=mb();return pb(n,t,e),Object.assign({},n.vars,n.style)},[t])}function E8(e,t){const n=e.style||{},i={};return pO(i,n,e),Object.assign(i,b8(e,t)),i}function x8(e,t){const n={},i=E8(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.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=i,n}const S8={offset:"stroke-dashoffset",array:"stroke-dasharray"},A8={offset:"strokeDashoffset",array:"strokeDasharray"};function w8(e,t,n=1,i=0,o=!0){e.pathLength=1;const s=o?S8:A8;e[s.offset]=De.transform(-i);const c=De.transform(t),u=De.transform(n);e[s.array]=`${c} ${u}`}function mO(e,{attrX:t,attrY:n,attrScale:i,pathLength:o,pathSpacing:s=1,pathOffset:c=0,...u},f,h,p){if(pb(e,u,h),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:g,style:b}=e;g.transform&&(b.transform=g.transform,delete g.transform),(b.transform||g.transformOrigin)&&(b.transformOrigin=g.transformOrigin??"50% 50%",delete g.transformOrigin),b.transform&&(b.transformBox=p?.transformBox??"fill-box",delete g.transformBox),t!==void 0&&(g.x=t),n!==void 0&&(g.y=n),i!==void 0&&(g.scale=i),o!==void 0&&w8(g,o,s,c,!1)}const yO=()=>({...mb(),attrs:{}}),gO=e=>typeof e=="string"&&e.toLowerCase()==="svg";function T8(e,t,n,i){const o=E.useMemo(()=>{const s=yO();return mO(s,t,gO(i),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};pO(s,e.style,e),o.style={...s,...o.style}}return o}const C8=["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 yb(e){return typeof e!="string"||e.includes("-")?!1:!!(C8.indexOf(e)>-1||/[A-Z]/u.test(e))}function R8(e,t,n,{latestValues:i},o,s=!1){const u=(yb(e)?T8:x8)(t,i,o,e),f=f8(t,typeof e=="string",s),h=e!==E.Fragment?{...f,...u,ref:n}:{},{children:p}=t,g=E.useMemo(()=>mn(p)?p.get():p,[p]);return E.createElement(e,{...h,children:g})}function Mw(e){const t=[{},{}];return e?.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function gb(e,t,n,i){if(typeof t=="function"){const[o,s]=Mw(i);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]=Mw(i);t=t(n!==void 0?n:e.custom,o,s)}return t}function lf(e){return mn(e)?e.get():e}function I8({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,o){return{latestValues:_8(n,i,o,e),renderState:t()}}function _8(e,t,n,i){const o={},s=i(e,{});for(const b in s)o[b]=lf(s[b]);let{initial:c,animate:u}=e;const f=oh(e),h=fO(e);t&&h&&!f&&e.inherit!==!1&&(c===void 0&&(c=t.initial),u===void 0&&(u=t.animate));let p=n?n.initial===!1:!1;p=p||c===!1;const g=p?u:c;if(g&&typeof g!="boolean"&&!ah(g)){const b=Array.isArray(g)?g:[g];for(let x=0;x<b.length;x++){const w=gb(e,b[x]);if(w){const{transitionEnd:A,transition:C,...L}=w;for(const S in L){let R=L[S];if(Array.isArray(R)){const I=p?R.length-1:0;R=R[I]}R!==null&&(o[S]=R)}for(const S in A)o[S]=A[S]}}}return o}const vO=e=>(t,n)=>{const i=E.useContext(ih),o=E.useContext(Hv),s=()=>I8(e,t,i,o);return n?s():c6(s)};function vb(e,t,n){const{style:i}=e,o={};for(const s in i)(mn(i[s])||t.style&&mn(t.style[s])||hO(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(o[s]=i[s]);return o}const N8=vO({scrapeMotionValuesFromProps:vb,createRenderState:mb});function bO(e,t,n){const i=vb(e,t,n);for(const o in e)if(mn(e[o])||mn(t[o])){const s=Xs.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;i[s]=e[o]}return i}const k8=vO({scrapeMotionValuesFromProps:bO,createRenderState:yO}),L8=Symbol.for("motionComponentSymbol");function ws(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function D8(e,t,n){return E.useCallback(i=>{i&&e.onMount&&e.onMount(i),t&&(i?t.mount(i):t.unmount()),n&&(typeof n=="function"?n(i):ws(n)&&(n.current=i))},[t])}const bb=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),O8="framerAppearId",EO="data-"+bb(O8),xO=E.createContext({});function j8(e,t,n,i,o){const{visualElement:s}=E.useContext(ih),c=E.useContext(db),u=E.useContext(Hv),f=E.useContext(uO).reducedMotion,h=E.useRef(null);i=i||c.renderer,!h.current&&i&&(h.current=i(e,{visualState:t,parent:s,props:n,presenceContext:u,blockInitialAnimation:u?u.initial===!1:!1,reducedMotionConfig:f}));const p=h.current,g=E.useContext(xO);p&&!p.projection&&o&&(p.type==="html"||p.type==="svg")&&z8(h.current,n,o,g);const b=E.useRef(!1);E.useInsertionEffect(()=>{p&&b.current&&p.update(n,u)});const x=n[EO],w=E.useRef(!!x&&!window.MotionHandoffIsComplete?.(x)&&window.MotionHasOptimisedAnimation?.(x));return u6(()=>{p&&(b.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),p.scheduleRenderMicrotask(),w.current&&p.animationState&&p.animationState.animateChanges())}),E.useEffect(()=>{p&&(!w.current&&p.animationState&&p.animationState.animateChanges(),w.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(x)}),w.current=!1),p.enteringChildren=void 0)}),p}function z8(e,t,n,i){const{layoutId:o,layout:s,drag:c,dragConstraints:u,layoutScroll:f,layoutRoot:h,layoutCrossfade:p}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:SO(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!c||u&&ws(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:i,crossfade:p,layoutScroll:f,layoutRoot:h})}function SO(e){if(e)return e.options.allowProjection!==!1?e.projection:SO(e.parent)}function Iy(e,{forwardMotionProps:t=!1}={},n,i){n&&Ig(n);const o=yb(e)?k8:N8;function s(u,f){let h;const p={...E.useContext(uO),...u,layoutId:M8(u)},{isStatic:g}=p,b=p8(u),x=o(u,g);if(!g&&Fv){P8();const w=B8(p);h=w.MeasureLayout,b.visualElement=j8(e,x,p,i,w.ProjectionNode)}return y.jsxs(ih.Provider,{value:b,children:[h&&b.visualElement?y.jsx(h,{visualElement:b.visualElement,...p}):null,R8(e,u,D8(x,b.visualElement,f),x,g,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=E.forwardRef(s);return c[L8]=e,c}function M8({layoutId:e}){const t=E.useContext(ED).id;return t&&e!==void 0?t+"-"+e:e}function P8(e,t){E.useContext(db).strict}function B8(e){const{drag:t,layout:n}=Us;if(!t&&!n)return{};const i={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function U8(e,t){if(typeof Proxy>"u")return Iy;const n=new Map,i=(s,c)=>Iy(s,c,e,t),o=(s,c)=>i(s,c);return new Proxy(o,{get:(s,c)=>c==="create"?i:(n.has(c)||n.set(c,Iy(c,void 0,e,t)),n.get(c))})}function AO({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function V8({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function F8(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function _y(e){return e===void 0||e===1}function _g({scale:e,scaleX:t,scaleY:n}){return!_y(e)||!_y(t)||!_y(n)}function to(e){return _g(e)||wO(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function wO(e){return Pw(e.x)||Pw(e.y)}function Pw(e){return e&&e!=="0%"}function Rf(e,t,n){const i=e-n,o=t*i;return n+o}function Bw(e,t,n,i,o){return o!==void 0&&(e=Rf(e,o,i)),Rf(e,n,i)+t}function Ng(e,t=0,n=1,i,o){e.min=Bw(e.min,t,n,i,o),e.max=Bw(e.max,t,n,i,o)}function TO(e,{x:t,y:n}){Ng(e.x,t.translate,t.scale,t.originPoint),Ng(e.y,n.translate,n.scale,n.originPoint)}const Uw=.999999999999,Vw=1.0000000000001;function H8(e,t,n,i=!1){const o=n.length;if(!o)return;t.x=t.y=1;let s,c;for(let u=0;u<o;u++){s=n[u],c=s.projectionDelta;const{visualElement:f}=s.options;f&&f.props.style&&f.props.style.display==="contents"||(i&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Cs(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,TO(e,c)),i&&to(s.latestValues)&&Cs(e,s.latestValues))}t.x<Vw&&t.x>Uw&&(t.x=1),t.y<Vw&&t.y>Uw&&(t.y=1)}function Ts(e,t){e.min=e.min+t,e.max=e.max+t}function Fw(e,t,n,i,o=.5){const s=wt(e.min,e.max,o);Ng(e,t,n,s,i)}function Cs(e,t){Fw(e.x,t.x,t.scaleX,t.scale,t.originX),Fw(e.y,t.y,t.scaleY,t.scale,t.originY)}function CO(e,t){return AO(F8(e.getBoundingClientRect(),t))}function G8(e,t,n){const i=CO(e,n),{scroll:o}=t;return o&&(Ts(i.x,o.offset.x),Ts(i.y,o.offset.y)),i}const Hw=()=>({translate:0,scale:1,origin:0,originPoint:0}),Rs=()=>({x:Hw(),y:Hw()}),Gw=()=>({min:0,max:0}),Ot=()=>({x:Gw(),y:Gw()}),kg={current:null},RO={current:!1};function K8(){if(RO.current=!0,!!Fv)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>kg.current=e.matches;e.addEventListener("change",t),t()}else kg.current=!1}const $8=new WeakMap;function q8(e,t,n){for(const i in t){const o=t[i],s=n[i];if(mn(o))e.addValue(i,o);else if(mn(s))e.addValue(i,Bs(o,{owner:e}));else if(s!==o)if(e.hasValue(i)){const c=e.getValue(i);c.liveStyle===!0?c.jump(o):c.hasAnimated||c.set(o)}else{const c=e.getStaticValue(i);e.addValue(i,Bs(c!==void 0?c:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Kw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Z8{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:o,blockInitialAnimation:s,visualState:c},u={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ob,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 b=Ln.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,St.render(this.render,!1,!0))};const{latestValues:f,renderState:h}=c;this.latestValues=f,this.baseTarget={...f},this.initialValues=n.initial?{...f}:{},this.renderState=h,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=u,this.blockInitialAnimation=!!s,this.isControllingVariants=oh(n),this.isVariantNode=fO(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:p,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const b in g){const x=g[b];f[b]!==void 0&&mn(x)&&x.set(f[b])}}mount(t){this.current=t,$8.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,i)=>this.bindToMotionValue(i,n)),RO.current||K8(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:kg.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),ma(this.notifyUpdate),ma(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 i=Qs.has(t);i&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&St.preRender(this.notifyUpdate),i&&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 Us){const n=Us[t];if(!n)continue;const{isEnabled:i,Feature:o}=n;if(!this.features[t]&&o&&i(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):Ot()}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 i=0;i<Kw.length;i++){const o=Kw[i];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const s="on"+o,c=t[s];c&&(this.propEventSubscriptions[o]=this.on(o,c))}this.prevMotionValues=q8(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 i=this.values.get(t);n!==i&&(i&&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 i=this.values.get(t);return i===void 0&&n!==void 0&&(i=Bs(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(xD(i)||AD(i))?i=parseFloat(i):!s8(i)&&ya.test(n)&&(i=iO(t,n)),this.setBaseTarget(t,mn(i)?i.get():i)),mn(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const s=gb(this.props,n,this.presenceContext?.custom);s&&(i=s[t])}if(n&&i!==void 0)return i;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!mn(o)?o:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Zv),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){cb.render(this.render)}}class IO extends Z8{constructor(){super(...arguments),this.KeyframeResolver=Zq}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:i}){delete n[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;mn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function _O(e,{style:t,vars:n},i,o){const s=e.style;let c;for(c in t)s[c]=t[c];o?.applyProjectionStyles(s,i);for(c in n)s.setProperty(c,n[c])}function Y8(e){return window.getComputedStyle(e)}class W8 extends IO{constructor(){super(...arguments),this.type="html",this.renderInstance=_O}readValueFromInstance(t,n){if(Qs.has(n))return this.projection?.isProjecting?xg(n):hq(t,n);{const i=Y8(t),o=(Xv(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return CO(t,n)}build(t,n,i){pb(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return vb(t,n,i)}}const NO=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 X8(e,t,n,i){_O(e,t,void 0,i);for(const o in t.attrs)e.setAttribute(NO.has(o)?o:bb(o),t.attrs[o])}class Q8 extends IO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ot}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Qs.has(n)){const i=rO(n);return i&&i.default||0}return n=NO.has(n)?n:bb(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return bO(t,n,i)}build(t,n,i){mO(t,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,n,i,o){X8(t,n,i,o)}mount(t){this.isSVGTag=gO(t.tagName),super.mount(t)}}const kO=(e,t)=>yb(e)?new Q8(t):new W8(t,{allowProjection:e!==E.Fragment});function Ls(e,t,n){const i=e.getProps();return gb(i,t,n!==void 0?n:i.custom,e)}const Lg=e=>Array.isArray(e);function J8(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Bs(n))}function e9(e){return Lg(e)?e[e.length-1]||0:e}function t9(e,t){const n=Ls(e,t);let{transitionEnd:i={},transition:o={},...s}=n||{};s={...s,...i};for(const c in s){const u=e9(s[c]);J8(e,c,u)}}function n9(e){return!!(mn(e)&&e.add)}function Dg(e,t){const n=e.getValue("willChange");if(n9(n))return n.add(t);if(!n&&Ni.WillChange){const i=new Ni.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function LO(e){return e.props[EO]}const r9=e=>e!==null;function i9(e,{repeat:t,repeatType:n="loop"},i){const o=e.filter(r9),s=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[s]}const a9={type:"spring",stiffness:500,damping:25,restSpeed:10},o9=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),s9={type:"keyframes",duration:.8},l9={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},c9=(e,{keyframes:t})=>t.length>2?s9:Qs.has(e)?e.startsWith("scale")?o9(t[1]):a9:l9;function u9({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:o,repeat:s,repeatType:c,repeatDelay:u,from:f,elapsed:h,...p}){return!!Object.keys(p).length}const Eb=(e,t,n,i={},o,s)=>c=>{const u=sb(i,e)||{},f=u.delay||i.delay||0;let{elapsed:h=0}=i;h=h-Zr(f);const p={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...u,delay:-h,onUpdate:b=>{t.set(b),u.onUpdate&&u.onUpdate(b)},onComplete:()=>{c(),u.onComplete&&u.onComplete()},name:e,motionValue:t,element:s?void 0:o};u9(u)||Object.assign(p,c9(e,p)),p.duration&&(p.duration=Zr(p.duration)),p.repeatDelay&&(p.repeatDelay=Zr(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let g=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(Cg(p),p.delay===0&&(g=!0)),(Ni.instantAnimations||Ni.skipAnimations)&&(g=!0,Cg(p),p.delay=0),p.allowFlatten=!u.type&&!u.ease,g&&!s&&t.get()!==void 0){const b=i9(p.keyframes,u);if(b!==void 0){St.update(()=>{p.onUpdate(b),p.onComplete()});return}}return u.isSync?new ab(p):new zq(p)};function d9({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function DO(e,t,{delay:n=0,transitionOverride:i,type:o}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:c,...u}=t;i&&(s=i);const f=[],h=o&&e.animationState&&e.animationState.getState()[o];for(const p in u){const g=e.getValue(p,e.latestValues[p]??null),b=u[p];if(b===void 0||h&&d9(h,p))continue;const x={delay:n,...sb(s||{},p)},w=g.get();if(w!==void 0&&!g.isAnimating&&!Array.isArray(b)&&b===w&&!x.velocity)continue;let A=!1;if(window.MotionHandoffAnimation){const L=LO(e);if(L){const S=window.MotionHandoffAnimation(L,p,St);S!==null&&(x.startTime=S,A=!0)}}Dg(e,p),g.start(Eb(p,g,b,e.shouldReduceMotion&&eO.has(p)?{type:!1}:x,e,A));const C=g.animation;C&&f.push(C)}return c&&Promise.all(f).then(()=>{St.update(()=>{c&&t9(e,c)})}),f}function OO(e,t,n,i=0,o=1){const s=Array.from(e).sort((h,p)=>h.sortNodePosition(p)).indexOf(t),c=e.size,u=(c-1)*i;return typeof n=="function"?n(s,c):o===1?s*i:u-s*i}function Og(e,t,n={}){const i=Ls(e,t,n.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(o=n.transitionOverride);const s=i?()=>Promise.all(DO(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:p,staggerDirection:g}=o;return f9(e,t,f,h,p,g,n)}:()=>Promise.resolve(),{when:u}=o;if(u){const[f,h]=u==="beforeChildren"?[s,c]:[c,s];return f().then(()=>h())}else return Promise.all([s(),c(n.delay)])}function f9(e,t,n=0,i=0,o=0,s=1,c){const u=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),u.push(Og(f,t,{...c,delay:n+(typeof i=="function"?0:i)+OO(e.variantChildren,f,i,o,s)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(u)}function h9(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const o=t.map(s=>Og(e,s,n));i=Promise.all(o)}else if(typeof t=="string")i=Og(e,t,n);else{const o=typeof t=="function"?Ls(e,t,n.custom):t;i=Promise.all(DO(e,o,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}function jO(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}const p9=hb.length;function zO(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?zO(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<p9;n++){const i=hb[n],o=e.props[i];(kc(o)||o===!1)&&(t[i]=o)}return t}const m9=[...fb].reverse(),y9=fb.length;function g9(e){return t=>Promise.all(t.map(({animation:n,options:i})=>h9(e,n,i)))}function v9(e){let t=g9(e),n=$w(),i=!0;const o=f=>(h,p)=>{const g=Ls(e,p,f==="exit"?e.presenceContext?.custom:void 0);if(g){const{transition:b,transitionEnd:x,...w}=g;h={...h,...w,...x}}return h};function s(f){t=f(e)}function c(f){const{props:h}=e,p=zO(e.parent)||{},g=[],b=new Set;let x={},w=1/0;for(let C=0;C<y9;C++){const L=m9[C],S=n[L],R=h[L]!==void 0?h[L]:p[L],I=kc(R),N=L===f?S.isActive:null;N===!1&&(w=C);let _=R===p[L]&&R!==h[L]&&I;if(_&&i&&e.manuallyAnimateOnMount&&(_=!1),S.protectedKeys={...x},!S.isActive&&N===null||!R&&!S.prevProp||ah(R)||typeof R=="boolean")continue;const k=b9(S.prevProp,R);let O=k||L===f&&S.isActive&&!_&&I||C>w&&I,U=!1;const F=Array.isArray(R)?R:[R];let H=F.reduce(o(L),{});N===!1&&(H={});const{prevResolvedValues:te={}}=S,ce={...te,...H},X=Y=>{O=!0,b.has(Y)&&(U=!0,b.delete(Y)),S.needsAnimating[Y]=!0;const $=e.getValue(Y);$&&($.liveStyle=!1)};for(const Y in ce){const $=H[Y],me=te[Y];if(x.hasOwnProperty(Y))continue;let Ee=!1;Lg($)&&Lg(me)?Ee=!jO($,me):Ee=$!==me,Ee?$!=null?X(Y):b.add(Y):$!==void 0&&b.has(Y)?X(Y):S.protectedKeys[Y]=!0}S.prevProp=R,S.prevResolvedValues=H,S.isActive&&(x={...x,...H}),i&&e.blockInitialAnimation&&(O=!1);const oe=_&&k;O&&(!oe||U)&&g.push(...F.map(Y=>{const $={type:L};if(typeof Y=="string"&&i&&!oe&&e.manuallyAnimateOnMount&&e.parent){const{parent:me}=e,Ee=Ls(me,Y);if(me.enteringChildren&&Ee){const{delayChildren:j}=Ee.transition||{};$.delay=OO(me.enteringChildren,e,j)}}return{animation:Y,options:$}}))}if(b.size){const C={};if(typeof h.initial!="boolean"){const L=Ls(e,Array.isArray(h.initial)?h.initial[0]:h.initial);L&&L.transition&&(C.transition=L.transition)}b.forEach(L=>{const S=e.getBaseTarget(L),R=e.getValue(L);R&&(R.liveStyle=!0),C[L]=S??null}),g.push({animation:C})}let A=!!g.length;return i&&(h.initial===!1||h.initial===h.animate)&&!e.manuallyAnimateOnMount&&(A=!1),i=!1,A?t(g):Promise.resolve()}function u(f,h){if(n[f].isActive===h)return Promise.resolve();e.variantChildren?.forEach(g=>g.animationState?.setActive(f,h)),n[f].isActive=h;const p=c(f);for(const g in n)n[g].protectedKeys={};return p}return{animateChanges:c,setActive:u,setAnimateFunction:s,getState:()=>n,reset:()=>{n=$w()}}}function b9(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!jO(t,e):!1}function Qa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function $w(){return{animate:Qa(!0),whileInView:Qa(),whileHover:Qa(),whileTap:Qa(),whileDrag:Qa(),whileFocus:Qa(),exit:Qa()}}class xa{constructor(t){this.isMounted=!1,this.node=t}update(){}}class E9 extends xa{constructor(t){super(t),t.animationState||(t.animationState=v9(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ah(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 x9=0;class S9 extends xa{constructor(){super(...arguments),this.id=x9++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:i}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===i)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 MO={animation:{Feature:E9},exit:{Feature:S9}};function Dc(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function tu(e){return{point:{x:e.pageX,y:e.pageY}}}const A9=e=>t=>ub(t)&&e(t,tu(t));function vc(e,t,n,i){return Dc(e,t,A9(n),i)}const PO=1e-4,w9=1-PO,T9=1+PO,BO=.01,C9=0-BO,R9=0+BO;function bn(e){return e.max-e.min}function I9(e,t,n){return Math.abs(e-t)<=n}function qw(e,t,n,i=.5){e.origin=i,e.originPoint=wt(t.min,t.max,e.origin),e.scale=bn(n)/bn(t),e.translate=wt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=w9&&e.scale<=T9||isNaN(e.scale))&&(e.scale=1),(e.translate>=C9&&e.translate<=R9||isNaN(e.translate))&&(e.translate=0)}function bc(e,t,n,i){qw(e.x,t.x,n.x,i?i.originX:void 0),qw(e.y,t.y,n.y,i?i.originY:void 0)}function Zw(e,t,n){e.min=n.min+t.min,e.max=e.min+bn(t)}function _9(e,t,n){Zw(e.x,t.x,n.x),Zw(e.y,t.y,n.y)}function Yw(e,t,n){e.min=t.min-n.min,e.max=e.min+bn(t)}function Ec(e,t,n){Yw(e.x,t.x,n.x),Yw(e.y,t.y,n.y)}function lr(e){return[e("x"),e("y")]}const UO=({current:e})=>e?e.ownerDocument.defaultView:null,Ww=(e,t)=>Math.abs(e-t);function N9(e,t){const n=Ww(e.x,t.x),i=Ww(e.y,t.y);return Math.sqrt(n**2+i**2)}class VO{constructor(t,n,{transformPagePoint:i,contextWindow:o=window,dragSnapToOrigin:s=!1,distanceThreshold:c=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 b=ky(this.lastMoveEventInfo,this.history),x=this.startEvent!==null,w=N9(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!x&&!w)return;const{point:A}=b,{timestamp:C}=un;this.history.push({...A,timestamp:C});const{onStart:L,onMove:S}=this.handlers;x||(L&&L(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),S&&S(this.lastMoveEvent,b)},this.handlePointerMove=(b,x)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=Ny(x,this.transformPagePoint),St.update(this.updatePoint,!0)},this.handlePointerUp=(b,x)=>{this.end();const{onEnd:w,onSessionEnd:A,resumeAnimation:C}=this.handlers;if(this.dragSnapToOrigin&&C&&C(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const L=ky(b.type==="pointercancel"?this.lastMoveEventInfo:Ny(x,this.transformPagePoint),this.history);this.startEvent&&w&&w(b,L),A&&A(b,L)},!ub(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=c,this.contextWindow=o||window;const u=tu(t),f=Ny(u,this.transformPagePoint),{point:h}=f,{timestamp:p}=un;this.history=[{...h,timestamp:p}];const{onSessionStart:g}=n;g&&g(t,ky(f,this.history)),this.removeListeners=Qc(vc(this.contextWindow,"pointermove",this.handlePointerMove),vc(this.contextWindow,"pointerup",this.handlePointerUp),vc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ma(this.updatePoint)}}function Ny(e,t){return t?{point:t(e.point)}:e}function Xw(e,t){return{x:e.x-t.x,y:e.y-t.y}}function ky({point:e},t){return{point:e,delta:Xw(e,FO(t)),offset:Xw(e,k9(t)),velocity:L9(t,.1)}}function k9(e){return e[0]}function FO(e){return e[e.length-1]}function L9(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const o=FO(e);for(;n>=0&&(i=e[n],!(o.timestamp-i.timestamp>Zr(t)));)n--;if(!i)return{x:0,y:0};const s=dr(o.timestamp-i.timestamp);if(s===0)return{x:0,y:0};const c={x:(o.x-i.x)/s,y:(o.y-i.y)/s};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function D9(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?wt(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?wt(n,e,i.max):Math.min(e,n)),e}function Qw(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 O9(e,{top:t,left:n,bottom:i,right:o}){return{x:Qw(e.x,n,o),y:Qw(e.y,t,i)}}function Jw(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function j9(e,t){return{x:Jw(e.x,t.x),y:Jw(e.y,t.y)}}function z9(e,t){let n=.5;const i=bn(e),o=bn(t);return o>i?n=Ic(t.min,t.max-i,e.min):i>o&&(n=Ic(e.min,e.max-o,t.min)),_i(0,1,n)}function M9(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 jg=.35;function P9(e=jg){return e===!1?e=0:e===!0&&(e=jg),{x:eT(e,"left","right"),y:eT(e,"top","bottom")}}function eT(e,t,n){return{min:tT(e,t),max:tT(e,n)}}function tT(e,t){return typeof e=="number"?e:e[t]||0}const B9=new WeakMap;class U9{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=Ot(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:i}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const s=g=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(tu(g).point)},c=(g,b)=>{const{drag:x,dragPropagation:w,onDragStart:A}=this.getProps();if(x&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Jq(x),!this.openDragLock))return;this.latestPointerEvent=g,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),lr(L=>{let S=this.getAxisMotionValue(L).get()||0;if(Yr.test(S)){const{projection:R}=this.visualElement;if(R&&R.layout){const I=R.layout.layoutBox[L];I&&(S=bn(I)*(parseFloat(S)/100))}}this.originPoint[L]=S}),A&&St.postRender(()=>A(g,b)),Dg(this.visualElement,"transform");const{animationState:C}=this.visualElement;C&&C.setActive("whileDrag",!0)},u=(g,b)=>{this.latestPointerEvent=g,this.latestPanInfo=b;const{dragPropagation:x,dragDirectionLock:w,onDirectionLock:A,onDrag:C}=this.getProps();if(!x&&!this.openDragLock)return;const{offset:L}=b;if(w&&this.currentDirection===null){this.currentDirection=V9(L),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",b.point,L),this.updateAxis("y",b.point,L),this.visualElement.render(),C&&C(g,b)},f=(g,b)=>{this.latestPointerEvent=g,this.latestPanInfo=b,this.stop(g,b),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>lr(g=>this.getAnimationState(g)==="paused"&&this.getAxisMotionValue(g).animation?.play()),{dragSnapToOrigin:p}=this.getProps();this.panSession=new VO(t,{onSessionStart:s,onStart:c,onMove:u,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:i,contextWindow:UO(this.visualElement)})}stop(t,n){const i=t||this.latestPointerEvent,o=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!o||!i)return;const{velocity:c}=o;this.startAnimation(c);const{onDragEnd:u}=this.getProps();u&&St.postRender(()=>u(i,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:i}=this.getProps();!i&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,i){const{drag:o}=this.getProps();if(!i||!Md(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let c=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(c=D9(c,this.constraints[t],this.elastic[t])),s.set(c)}resolveConstraints(){const{dragConstraints:t,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;t&&ws(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=O9(i.layoutBox,t):this.constraints=!1,this.elastic=P9(n),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&lr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=M9(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!ws(t))return!1;const i=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=G8(i,o.root,this.visualElement.getTransformPagePoint());let c=j9(o.layout.layoutBox,s);if(n){const u=n(V8(c));this.hasMutatedConstraints=!!u,u&&(c=AO(u))}return c}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:o,dragTransition:s,dragSnapToOrigin:c,onDragTransitionEnd:u}=this.getProps(),f=this.constraints||{},h=lr(p=>{if(!Md(p,n,this.currentDirection))return;let g=f&&f[p]||{};c&&(g={min:0,max:0});const b=o?200:1e6,x=o?40:1e7,w={type:"inertia",velocity:i?t[p]:0,bounceStiffness:b,bounceDamping:x,timeConstant:750,restDelta:1,restSpeed:10,...s,...g};return this.startAxisValueAnimation(p,w)});return Promise.all(h).then(u)}startAxisValueAnimation(t,n){const i=this.getAxisMotionValue(t);return Dg(this.visualElement,t),i.start(Eb(t,i,0,n,this.visualElement,!1))}stopAnimation(){lr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){lr(t=>this.getAxisMotionValue(t).animation?.pause())}getAnimationState(t){return this.getAxisMotionValue(t).animation?.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,i=this.visualElement.getProps(),o=i[n];return o||this.visualElement.getValue(t,(i.initial?i.initial[t]:void 0)||0)}snapToCursor(t){lr(n=>{const{drag:i}=this.getProps();if(!Md(n,i,this.currentDirection))return;const{projection:o}=this.visualElement,s=this.getAxisMotionValue(n);if(o&&o.layout){const{min:c,max:u}=o.layout.layoutBox[n];s.set(t[n]-wt(c,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!ws(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};lr(c=>{const u=this.getAxisMotionValue(c);if(u&&this.constraints!==!1){const f=u.get();o[c]=z9({min:f,max:f},this.constraints[c])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),lr(c=>{if(!Md(c,t,null))return;const u=this.getAxisMotionValue(c),{min:f,max:h}=this.constraints[c];u.set(wt(f,h,o[c]))})}addListeners(){if(!this.visualElement.current)return;B9.set(this.visualElement,this);const t=this.visualElement.current,n=vc(t,"pointerdown",f=>{const{drag:h,dragListener:p=!0}=this.getProps();h&&p&&this.start(f)}),i=()=>{const{dragConstraints:f}=this.getProps();ws(f)&&f.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,s=o.addEventListener("measure",i);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),St.read(i);const c=Dc(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(lr(p=>{const g=this.getAxisMotionValue(p);g&&(this.originPoint[p]+=f[p].translate,g.set(g.get()+f[p].translate))}),this.visualElement.render())});return()=>{c(),n(),s(),u&&u()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:i=!1,dragPropagation:o=!1,dragConstraints:s=!1,dragElastic:c=jg,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:s,dragElastic:c,dragMomentum:u}}}function Md(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function V9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class F9 extends xa{constructor(t){super(t),this.removeGroupControls=hr,this.removeListeners=hr,this.controls=new U9(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||hr}unmount(){this.removeGroupControls(),this.removeListeners()}}const nT=e=>(t,n)=>{e&&St.postRender(()=>e(t,n))};class H9 extends xa{constructor(){super(...arguments),this.removePointerDownListener=hr}onPointerDown(t){this.session=new VO(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:UO(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:nT(t),onStart:nT(n),onMove:i,onEnd:(s,c)=>{delete this.session,o&&St.postRender(()=>o(s,c))}}}mount(){this.removePointerDownListener=vc(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const cf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function rT(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(De.test(e))e=parseFloat(e);else return e;const n=rT(e,t.target.x),i=rT(e,t.target.y);return`${n}% ${i}%`}},G9={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,o=ya.parse(e);if(o.length>5)return i;const s=ya.createTransformer(e),c=typeof o[0]!="number"?1:0,u=n.x.scale*t.x,f=n.y.scale*t.y;o[0+c]/=u,o[1+c]/=f;const h=wt(u,f,.5);return typeof o[2+c]=="number"&&(o[2+c]/=h),typeof o[3+c]=="number"&&(o[3+c]/=h),s(o)}};let Ly=!1;class K9 extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:s}=t;m8($9),s&&(n.group&&n.group.add(s),i&&i.register&&o&&i.register(s),Ly&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),cf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:o,isPresent:s}=this.props,{projection:c}=i;return c&&(c.isPresent=s,Ly=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?c.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?c.promote():c.relegate()||St.postRender(()=>{const u=c.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),cb.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=t;Ly=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),i&&i.deregister&&i.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function HO(e){const[t,n]=l8(),i=E.useContext(ED);return y.jsx(K9,{...e,layoutGroup:i,switchLayoutGroup:E.useContext(xO),isPresent:t,safeToRemove:n})}const $9={borderRadius:{...rc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:rc,borderTopRightRadius:rc,borderBottomLeftRadius:rc,borderBottomRightRadius:rc,boxShadow:G9};function q9(e,t,n){const i=mn(e)?e:Bs(e);return i.start(Eb("",i,t,n)),i.animation}const Z9=(e,t)=>e.depth-t.depth;class Y9{constructor(){this.children=[],this.isDirty=!1}add(t){Gv(this.children,t),this.isDirty=!0}remove(t){Kv(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Z9),this.isDirty=!1,this.children.forEach(t)}}function W9(e,t){const n=Ln.now(),i=({timestamp:o})=>{const s=o-n;s>=t&&(ma(i),e(s-t))};return St.setup(i,!0),()=>ma(i)}const GO=["TopLeft","TopRight","BottomLeft","BottomRight"],X9=GO.length,iT=e=>typeof e=="string"?parseFloat(e):e,aT=e=>typeof e=="number"||De.test(e);function Q9(e,t,n,i,o,s){o?(e.opacity=wt(0,n.opacity??1,J9(i)),e.opacityExit=wt(t.opacity??1,0,eZ(i))):s&&(e.opacity=wt(t.opacity??1,n.opacity??1,i));for(let c=0;c<X9;c++){const u=`border${GO[c]}Radius`;let f=oT(t,u),h=oT(n,u);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||aT(f)===aT(h)?(e[u]=Math.max(wt(iT(f),iT(h),i),0),(Yr.test(h)||Yr.test(f))&&(e[u]+="%")):e[u]=h}(t.rotate||n.rotate)&&(e.rotate=wt(t.rotate||0,n.rotate||0,i))}function oT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const J9=KO(0,.5,kD),eZ=KO(.5,.95,hr);function KO(e,t,n){return i=>i<e?0:i>t?1:n(Ic(e,t,i))}function sT(e,t){e.min=t.min,e.max=t.max}function sr(e,t){sT(e.x,t.x),sT(e.y,t.y)}function lT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function cT(e,t,n,i,o){return e-=t,e=Rf(e,1/n,i),o!==void 0&&(e=Rf(e,1/o,i)),e}function tZ(e,t=0,n=1,i=.5,o,s=e,c=e){if(Yr.test(t)&&(t=parseFloat(t),t=wt(c.min,c.max,t/100)-c.min),typeof t!="number")return;let u=wt(s.min,s.max,i);e===s&&(u-=t),e.min=cT(e.min,t,n,u,o),e.max=cT(e.max,t,n,u,o)}function uT(e,t,[n,i,o],s,c){tZ(e,t[n],t[i],t[o],t.scale,s,c)}const nZ=["x","scaleX","originX"],rZ=["y","scaleY","originY"];function dT(e,t,n,i){uT(e.x,t,nZ,n?n.x:void 0,i?i.x:void 0),uT(e.y,t,rZ,n?n.y:void 0,i?i.y:void 0)}function fT(e){return e.translate===0&&e.scale===1}function $O(e){return fT(e.x)&&fT(e.y)}function hT(e,t){return e.min===t.min&&e.max===t.max}function iZ(e,t){return hT(e.x,t.x)&&hT(e.y,t.y)}function pT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function qO(e,t){return pT(e.x,t.x)&&pT(e.y,t.y)}function mT(e){return bn(e.x)/bn(e.y)}function yT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class aZ{constructor(){this.members=[]}add(t){Gv(this.members,t),t.scheduleRender()}remove(t){if(Kv(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 i;for(let o=n;o>=0;o--){const s=this.members[o];if(s.isPresent!==!1){i=s;break}}return i?(this.promote(i),!0):!1}promote(t,n){const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.instance&&i.scheduleRender(),t.scheduleRender(),t.resumeFrom=i,n&&(t.resumeFrom.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:i}=t;n.onExitComplete&&n.onExitComplete(),i&&i.options.onExitComplete&&i.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function oZ(e,t,n){let i="";const o=e.x.translate/t.x,s=e.y.translate/t.y,c=n?.z||0;if((o||s||c)&&(i=`translate3d(${o}px, ${s}px, ${c}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:h,rotate:p,rotateX:g,rotateY:b,skewX:x,skewY:w}=n;h&&(i=`perspective(${h}px) ${i}`),p&&(i+=`rotate(${p}deg) `),g&&(i+=`rotateX(${g}deg) `),b&&(i+=`rotateY(${b}deg) `),x&&(i+=`skewX(${x}deg) `),w&&(i+=`skewY(${w}deg) `)}const u=e.x.scale*t.x,f=e.y.scale*t.y;return(u!==1||f!==1)&&(i+=`scale(${u}, ${f})`),i||"none"}const Dy=["","X","Y","Z"],sZ=1e3;let lZ=0;function Oy(e,t,n,i){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),i&&(i[e]=0))}function ZO(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=LO(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",St,!(o||s))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&ZO(i)}function YO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(c={},u=t?.()){this.id=lZ++,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(dZ),this.nodes.forEach(mZ),this.nodes.forEach(yZ),this.nodes.forEach(fZ)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,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 f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new Y9)}addEventListener(c,u){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Zv),this.eventHandlers.get(c).add(u)}notifyListeners(c,...u){const f=this.eventHandlers.get(c);f&&f.notify(...u)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=cO(c)&&!a8(c),this.instance=c;const{layoutId:u,layout:f,visualElement:h}=this.options;if(h&&!h.current&&h.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||u)&&(this.isLayoutDirty=!0),e){let p,g=0;const b=()=>this.root.updateBlockedByResize=!1;St.read(()=>{g=window.innerWidth}),e(c,()=>{const x=window.innerWidth;x!==g&&(g=x,this.root.updateBlockedByResize=!0,p&&p(),p=W9(b,250),cf.hasAnimatedSinceResize&&(cf.hasAnimatedSinceResize=!1,this.nodes.forEach(bT)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||f)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:g,hasRelativeLayoutChanged:b,layout:x})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||h.getDefaultTransition()||xZ,{onLayoutAnimationStart:A,onLayoutAnimationComplete:C}=h.getProps(),L=!this.targetLayout||!qO(this.targetLayout,x),S=!g&&b;if(this.options.layoutRoot||this.resumeFrom||S||g&&(L||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const R={...sb(w,"layout"),onPlay:A,onComplete:C};(h.shouldReduceMotion||this.options.layoutRoot)&&(R.delay=0,R.type=!1),this.startAnimation(R),this.setAnimationOrigin(p,S)}else g||bT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=x})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ma(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(gZ),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&ZO(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let p=0;p<this.path.length;p++){const g=this.path[p];g.shouldResetTransform=!0,g.updateScroll("snapshot"),g.options.layoutRoot&&g.willUpdate(!1)}const{layoutId:u,layout:f}=this.options;if(u===void 0&&!f)return;const h=this.getTransformTemplate();this.prevTransformTemplateValue=h?h(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(gT);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(vT);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(pZ),this.nodes.forEach(cZ),this.nodes.forEach(uZ)):this.nodes.forEach(vT),this.clearAllSnapshots();const u=Ln.now();un.delta=_i(0,1e3/60,u-un.timestamp),un.timestamp=u,un.isProcessing=!0,xy.update.process(un),xy.preRender.process(un),xy.render.process(un),un.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,cb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(hZ),this.sharedNodes.forEach(vZ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,St.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){St.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!bn(this.snapshot.measuredBox.x)&&!bn(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 f=0;f<this.path.length;f++)this.path[f].updateScroll();const c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Ot(),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,c?c.layoutBox:void 0)}updateScroll(c="measure"){let u=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(u=!1),u&&this.instance){const f=i(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!o)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,u=this.projectionDelta&&!$O(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,p=h!==this.prevTransformTemplateValue;c&&this.instance&&(u||to(this.latestValues)||p)&&(o(this.instance,h),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const u=this.measurePageBox();let f=this.removeElementScroll(u);return c&&(f=this.removeTransform(f)),SZ(f),{animationId:this.root.animationId,measuredBox:u,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:c}=this.options;if(!c)return Ot();const u=c.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(AZ))){const{scroll:h}=this.root;h&&(Ts(u.x,h.offset.x),Ts(u.y,h.offset.y))}return u}removeElementScroll(c){const u=Ot();if(sr(u,c),this.scroll?.wasRoot)return u;for(let f=0;f<this.path.length;f++){const h=this.path[f],{scroll:p,options:g}=h;h!==this.root&&p&&g.layoutScroll&&(p.wasRoot&&sr(u,c),Ts(u.x,p.offset.x),Ts(u.y,p.offset.y))}return u}applyTransform(c,u=!1){const f=Ot();sr(f,c);for(let h=0;h<this.path.length;h++){const p=this.path[h];!u&&p.options.layoutScroll&&p.scroll&&p!==p.root&&Cs(f,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),to(p.latestValues)&&Cs(f,p.latestValues)}return to(this.latestValues)&&Cs(f,this.latestValues),f}removeTransform(c){const u=Ot();sr(u,c);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!to(h.latestValues))continue;_g(h.latestValues)&&h.updateSnapshot();const p=Ot(),g=h.measurePageBox();sr(p,g),dT(u,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,p)}return to(this.latestValues)&&dT(u,this.latestValues),u}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.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!==un.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){const u=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=u.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=u.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=u.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==u;if(!(c||f&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:p,layoutId:g}=this.options;if(!(!this.layout||!(p||g))){if(this.resolvedRelativeTargetAt=un.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ot(),this.relativeTargetOrigin=Ot(),Ec(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),sr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ot(),this.targetWithTransforms=Ot()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),_9(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sr(this.target,this.layout.layoutBox),TO(this.target,this.targetDelta)):sr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ot(),this.relativeTargetOrigin=Ot(),Ec(this.relativeTargetOrigin,this.target,b.target),sr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||_g(this.parent.latestValues)||wO(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 c=this.getLead(),u=!!this.resumingFrom||this!==c;let f=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(f=!1),u&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===un.timestamp&&(f=!1),f)return;const{layout:h,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||!(h||p))return;sr(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,b=this.treeScale.y;H8(this.layoutCorrected,this.treeScale,this.path,u),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=Ot());const{target:x}=c;if(!x){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(lT(this.prevProjectionDelta.x,this.projectionDelta.x),lT(this.prevProjectionDelta.y,this.projectionDelta.y)),bc(this.projectionDelta,this.layoutCorrected,x,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==b||!yT(this.projectionDelta.x,this.prevProjectionDelta.x)||!yT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",x))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){if(this.options.visualElement?.scheduleRender(),c){const u=this.getStack();u&&u.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Rs(),this.projectionDelta=Rs(),this.projectionDeltaWithTransform=Rs()}setAnimationOrigin(c,u=!1){const f=this.snapshot,h=f?f.latestValues:{},p={...this.latestValues},g=Rs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const b=Ot(),x=f?f.source:void 0,w=this.layout?this.layout.source:void 0,A=x!==w,C=this.getStack(),L=!C||C.members.length<=1,S=!!(A&&!L&&this.options.crossfade===!0&&!this.path.some(EZ));this.animationProgress=0;let R;this.mixTargetDelta=I=>{const N=I/1e3;ET(g.x,c.x,N),ET(g.y,c.y,N),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Ec(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),bZ(this.relativeTarget,this.relativeTargetOrigin,b,N),R&&iZ(this.relativeTarget,R)&&(this.isProjectionDirty=!1),R||(R=Ot()),sr(R,this.relativeTarget)),A&&(this.animationValues=p,Q9(p,h,this.latestValues,N,S,L)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=N},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(ma(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=St.update(()=>{cf.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Bs(0)),this.currentAnimation=q9(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:u=>{this.mixTargetDelta(u),c.onUpdate&&c.onUpdate(u)},onStop:()=>{},onComplete:()=>{c.onComplete&&c.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 c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(sZ),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:u,target:f,layout:h,latestValues:p}=c;if(!(!u||!f||!h)){if(this!==c&&this.layout&&h&&WO(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Ot();const g=bn(this.layout.layoutBox.x);f.x.min=c.target.x.min,f.x.max=f.x.min+g;const b=bn(this.layout.layoutBox.y);f.y.min=c.target.y.min,f.y.max=f.y.min+b}sr(u,f),Cs(u,p),bc(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(c,u){this.sharedNodes.has(c)||this.sharedNodes.set(c,new aZ),this.sharedNodes.get(c).add(u);const h=u.options.initialPromotionConfig;u.promote({transition:h?h.transition:void 0,preserveFollowOpacity:h&&h.shouldPreserveFollowOpacity?h.shouldPreserveFollowOpacity(u):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){const{layoutId:c}=this.options;return c?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:c}=this.options;return c?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:u,preserveFollowOpacity:f}={}){const h=this.getStack();h&&h.promote(this,f),c&&(this.projectionDelta=void 0,this.needsReset=!0),u&&this.setOptions({transition:u})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let u=!1;const{latestValues:f}=c;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(u=!0),!u)return;const h={};f.z&&Oy("z",c,h,this.animationValues);for(let p=0;p<Dy.length;p++)Oy(`rotate${Dy[p]}`,c,h,this.animationValues),Oy(`skew${Dy[p]}`,c,h,this.animationValues);c.render();for(const p in h)c.setStaticValue(p,h[p]),this.animationValues&&(this.animationValues[p]=h[p]);c.scheduleRender()}applyProjectionStyles(c,u){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=lf(u?.pointerEvents)||"",c.transform=f?f(this.latestValues,""):"none";return}const h=this.getLead();if(!this.projectionDelta||!this.layout||!h.target){this.options.layoutId&&(c.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,c.pointerEvents=lf(u?.pointerEvents)||""),this.hasProjected&&!to(this.latestValues)&&(c.transform=f?f({},""):"none",this.hasProjected=!1);return}c.visibility="";const p=h.animationValues||h.latestValues;this.applyTransformsToTarget();let g=oZ(this.projectionDeltaWithTransform,this.treeScale,p);f&&(g=f(p,g)),c.transform=g;const{x:b,y:x}=this.projectionDelta;c.transformOrigin=`${b.origin*100}% ${x.origin*100}% 0`,h.animationValues?c.opacity=h===this?p.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:p.opacityExit:c.opacity=h===this?p.opacity!==void 0?p.opacity:"":p.opacityExit!==void 0?p.opacityExit:0;for(const w in Lc){if(p[w]===void 0)continue;const{correct:A,applyTo:C,isCSSVariable:L}=Lc[w],S=g==="none"?p[w]:A(p[w],h);if(C){const R=C.length;for(let I=0;I<R;I++)c[C[I]]=S}else L?this.options.visualElement.renderState.vars[w]=S:c[w]=S}this.options.layoutId&&(c.pointerEvents=h===this?lf(u?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>c.currentAnimation?.stop()),this.root.nodes.forEach(gT),this.root.sharedNodes.clear()}}}function cZ(e){e.updateLayout()}function uZ(e){const t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:n,measuredBox:i}=e.layout,{animationType:o}=e.options,s=t.source!==e.layout.source;o==="size"?lr(p=>{const g=s?t.measuredBox[p]:t.layoutBox[p],b=bn(g);g.min=n[p].min,g.max=g.min+b}):WO(o,t.layoutBox,n)&&lr(p=>{const g=s?t.measuredBox[p]:t.layoutBox[p],b=bn(n[p]);g.max=g.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[p].max=e.relativeTarget[p].min+b)});const c=Rs();bc(c,n,t.layoutBox);const u=Rs();s?bc(u,e.applyTransform(i,!0),t.measuredBox):bc(u,n,t.layoutBox);const f=!$O(c);let h=!1;if(!e.resumeFrom){const p=e.getClosestProjectingParent();if(p&&!p.resumeFrom){const{snapshot:g,layout:b}=p;if(g&&b){const x=Ot();Ec(x,t.layoutBox,g.layoutBox);const w=Ot();Ec(w,n,b.layoutBox),qO(x,w)||(h=!0),p.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=x,e.relativeParent=p)}}}e.notifyListeners("didUpdate",{layout:n,snapshot:t,delta:u,layoutDelta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:h})}else if(e.isLead()){const{onExitComplete:n}=e.options;n&&n()}e.options.transition=void 0}function dZ(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 fZ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function hZ(e){e.clearSnapshot()}function gT(e){e.clearMeasurements()}function vT(e){e.isLayoutDirty=!1}function pZ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function bT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function mZ(e){e.resolveTargetDelta()}function yZ(e){e.calcProjection()}function gZ(e){e.resetSkewAndRotation()}function vZ(e){e.removeLeadSnapshot()}function ET(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 xT(e,t,n,i){e.min=wt(t.min,n.min,i),e.max=wt(t.max,n.max,i)}function bZ(e,t,n,i){xT(e.x,t.x,n.x,i),xT(e.y,t.y,n.y,i)}function EZ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const xZ={duration:.45,ease:[.4,0,.1,1]},ST=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),AT=ST("applewebkit/")&&!ST("chrome/")?Math.round:hr;function wT(e){e.min=AT(e.min),e.max=AT(e.max)}function SZ(e){wT(e.x),wT(e.y)}function WO(e,t,n){return e==="position"||e==="preserve-aspect"&&!I9(mT(t),mT(n),.2)}function AZ(e){return e!==e.root&&e.scroll?.wasRoot}const wZ=YO({attachResizeListener:(e,t)=>Dc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),jy={current:void 0},XO=YO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!jy.current){const e=new wZ({});e.mount(window),e.setOptions({layoutScroll:!0}),jy.current=e}return jy.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),TZ={pan:{Feature:H9},drag:{Feature:F9,ProjectionNode:XO,MeasureLayout:HO}};function TT(e,t,n){const{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,s=i[o];s&&St.postRender(()=>s(t,tu(t)))}class CZ extends xa{mount(){const{current:t}=this.node;t&&(this.unmount=e8(t,(n,i)=>(TT(this.node,i,"Start"),o=>TT(this.node,o,"End"))))}unmount(){}}class RZ extends xa{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=Qc(Dc(this.node.current,"focus",()=>this.onFocus()),Dc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function CT(e,t,n){const{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),s=i[o];s&&St.postRender(()=>s(t,tu(t)))}class IZ extends xa{mount(){const{current:t}=this.node;t&&(this.unmount=i8(t,(n,i)=>(CT(this.node,i,"Start"),(o,{success:s})=>CT(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const zg=new WeakMap,zy=new WeakMap,_Z=e=>{const t=zg.get(e.target);t&&t(e)},NZ=e=>{e.forEach(_Z)};function kZ({root:e,...t}){const n=e||document;zy.has(n)||zy.set(n,{});const i=zy.get(n),o=JSON.stringify(t);return i[o]||(i[o]=new IntersectionObserver(NZ,{root:e,...t})),i[o]}function LZ(e,t,n){const i=kZ(t);return zg.set(e,n),i.observe(e),()=>{zg.delete(e),i.unobserve(e)}}const DZ={some:0,all:1};class OZ extends xa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:i,amount:o="some",once:s}=t,c={root:n?n.current:void 0,rootMargin:i,threshold:typeof o=="number"?o:DZ[o]},u=f=>{const{isIntersecting:h}=f;if(this.isInView===h||(this.isInView=h,s&&!h&&this.hasEnteredView))return;h&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",h);const{onViewportEnter:p,onViewportLeave:g}=this.node.getProps(),b=h?p:g;b&&b(f)};return LZ(this.node.current,c,u)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(jZ(t,n))&&this.startObserver()}unmount(){}}function jZ({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const QO={inView:{Feature:OZ},tap:{Feature:IZ},focus:{Feature:RZ},hover:{Feature:CZ}},zZ={layout:{ProjectionNode:XO,MeasureLayout:HO}},MZ={...MO,...QO,...TZ,...zZ},JO=U8(MZ,kO),PZ={renderer:kO,...MO,...QO};let xb=function(e){return e.SM="sm",e.MD="md",e.LG="lg",e.XL="xl",e.UNSET="unset",e}({});const BZ=yn("cursor-default justify-center overflow-auto py-3 shadow-sm",{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"}}),UZ=JO.create(kr),Sb=({children:e,isOpen:t,container:n,disableScroll:i=!0,onClose:o,hasCloseButton:s=!1,title:c,size:u=xb.MD,className:f,...h})=>{const p=mD(n);if(bD({key:"modal",disableScroll:t&&i}),!p)return y.jsx(y.Fragment,{});const g=typeof c=="string";return So.createPortal(y.jsx(JO.div,{className:"invisible fixed top-0 left-0 z-50 flex size-full cursor-pointer items-center justify-center overflow-auto bg-background/40 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:b=>{b.stopPropagation(),o?.()},"aria-hidden":!t,children:y.jsx("div",{className:"flex justify-center p-4",children:y.jsxs(UZ,{onClick:b=>b.stopPropagation(),initial:{scale:t?.5:1},animate:{scale:t?1:.5},transition:{duration:.3},className:BZ({size:u,className:f}),role:"dialog","aria-modal":!0,roundedSize:"2xl",...h,children:[y.jsxs("div",{className:fe("cursor-default px-4",s&&g?"flex items-center justify-center":s?"flex items-center justify-end":g?"items-center":"hidden"),children:[g&&y.jsx(Vv,{className:"ml-4 flex items-center justify-center font-bold text-lg",children:c}),s&&y.jsx(lt,{variant:Ve.HOVERABLE,color:Pe.TEXT,label:"Close modal",className:"ml-auto",onClick:b=>{b.stopPropagation(),o?.()},Icon:Ao,size:Je.ICON_MD})]}),y.jsx("div",{className:"flex flex-1 flex-col items-center overflow-auto",children:e})]})})}),p)},VZ=yn("",{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:border-checkbox-checked-border checked:bg-checkbox-checked","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"}}),RT=({validationStyleEnabled:e=!1,label:t,size:n,color:i,name:o,variant:s,className:c,...u})=>y.jsx("input",{type:"checkbox",className:VZ({variant:s,size:n,color:i,validationStyleEnabled:e?"enabled":"disabled",className:c}),...u}),FZ=e=>{const{label:t,name:n,id:i}=e;return t?y.jsxs("label",{htmlFor:i??n,className:"flex cursor-pointer items-center gap-x-4 font-medium text-sm",children:[y.jsx(RT,{id:i??n,...e}),t]}):y.jsx(RT,{id:i??n,...e})},ej=yn("",{variants:{variant:{default:["w-full select-text resize-none rounded-xl border-2 bg-input-background text-base text-input-text shadow-none outline-0 transition-all md:text-sm","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 py-3 md:py-1",lg:"p-4 md:py-2"},validationStyleEnabled:{disabled:"",enabled:"valid:border-success invalid:border-error"}},defaultVariants:{variant:"default",size:"md",validationStyleEnabled:"disabled"}});let ho=function(e){return e.DEFAULT="default",e.INVISIBLE="invisible",e}({});const Js=({validationStyleEnabled:e=!1,variant:t,size:n,className:i,...o})=>y.jsx("input",{className:ej({variant:t,size:n,validationStyleEnabled:e?"enabled":"disabled",className:i}),...o}),HZ=e=>{const[t,n]=E.useState(!1),i=s=>{s.preventDefault(),s.stopPropagation(),n(c=>!c)},o=t?ZG:$G;return y.jsxs("div",{className:"relative",children:[y.jsx(Js,{...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:i,"aria-label":t?"Hide password":"Show password",children:y.jsx(o,{className:"mr-2 inline-block text-neutral",size:20})})]})},tj=({value:e="",onCancel:t,onSave:n,onClick:i,children:o,isDisabled:s,...c})=>{const[u,f]=E.useState(!1),h=E.useRef(null),p=w=>{w.stopPropagation(),f(!1),n()},g=w=>{w.stopPropagation(),f(!1),t()},b=!e||e===""?"-":e,x=E.useCallback(w=>{const A=window.getSelection();A&&A.toString().trim()!==""||h.current&&!h.current.contains(w.target)&&(f(!1),n())},[n]);return E.useEffect(()=>(u?document.addEventListener("click",x):document.removeEventListener("click",x),()=>document.removeEventListener("click",x)),[x,u]),y.jsxs("span",{className:"group/editable-field flex gap-2",role:"button",tabIndex:0,onClick:w=>{f(!0),i?.(w)},ref:h,...c,children:[y.jsxs("div",{className:fe("flex flex-1 gap-2",u?"display":"hidden"),children:[o,y.jsx(lt,{label:"Save",variant:Ve.HOVERABLE,size:Je.ICON_SM,color:Pe.TEXT,Icon:Ys,onClick:p,disabled:s,className:"!text-current",role:"button",tabIndex:0,"aria-label":"Save changes","data-testid":"editable-field-save-button"}),y.jsx(lt,{label:"Cancel",color:Pe.TEXT,variant:Ve.HOVERABLE,className:"!text-current",size:Je.ICON_SM,Icon:Ao,onClick:g,disabled:s,role:"button",tabIndex:0,"aria-label":"Cancel changes","data-testid":"editable-field-cancel-button"})]},String(u)),y.jsxs("div",{className:fe("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:b}),y.jsx(lt,{label:"Edit",Icon:_1,color:Pe.TEXT,variant:Ve.HOVERABLE,size:Je.ICON_SM,className:"!text-current invisible group-hover/editable-field:visible",disabled:s,onClick:w=>{w.stopPropagation(),f(!0)}})]})]})},nj=({onSave:e,onCancel:t,ref:n,...i})=>{const o=E.useRef(null),s=()=>{e?.(o.current?.value??"")},c=()=>{o.current&&(o.current.value=o.current.defaultValue??""),t?.()};return E.useImperativeHandle(n,()=>o.current),y.jsx(tj,{value:E.useMemo(()=>i.value??o.current?.value??i.defaultValue,[i.value,i.defaultValue,o.current?.value]),onCancel:c,onSave:s,children:y.jsx(Js,{ref:o,...i})})},GZ=({id:e,...t})=>{const n=E.useId(),i=e??n;return y.jsx(rj,{value:E.useMemo(()=>({id:i}),[i]),children:y.jsx("div",{className:"flex flex-col gap-2 p-2",id:i,...t})})},rj=E.createContext({});var nu=e=>e.type==="checkbox",ao=e=>e instanceof Date,kn=e=>e==null;const ij=e=>typeof e=="object";var Gt=e=>!kn(e)&&!Array.isArray(e)&&ij(e)&&!ao(e),aj=e=>Gt(e)&&e.target?nu(e.target)?e.target.checked:e.target.value:e,KZ=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,oj=(e,t)=>e.has(KZ(t)),$Z=e=>{const t=e.constructor&&e.constructor.prototype;return Gt(t)&&t.hasOwnProperty("isPrototypeOf")},Ab=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function qt(e){let t;const n=Array.isArray(e),i=typeof FileList<"u"?e instanceof FileList:!1;if(e instanceof Date)t=new Date(e);else if(!(Ab&&(e instanceof Blob||i))&&(n||Gt(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!$Z(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=qt(e[o]));else return e;return t}var sh=e=>/^\w*$/.test(e),kt=e=>e===void 0,wb=e=>Array.isArray(e)?e.filter(Boolean):[],Tb=e=>wb(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ge=(e,t,n)=>{if(!t||!Gt(e))return n;const i=(sh(t)?[t]:Tb(t)).reduce((o,s)=>kn(o)?o:o[s],e);return kt(i)||i===e?kt(e[t])?n:e[t]:i},Fn=e=>typeof e=="boolean",ft=(e,t,n)=>{let i=-1;const o=sh(t)?[t]:Tb(t),s=o.length,c=s-1;for(;++i<s;){const u=o[i];let f=n;if(i!==c){const h=e[u];f=Gt(h)||Array.isArray(h)?h:isNaN(+o[i+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=f,e=e[u]}};const If={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Ar={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},wi={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Cb=Ne.createContext(null);Cb.displayName="HookFormContext";const Sa=()=>Ne.useContext(Cb),qZ=e=>{const{children:t,...n}=e;return Ne.createElement(Cb.Provider,{value:n},t)};var sj=(e,t,n,i=!0)=>{const o={defaultValues:t._defaultValues};for(const s in e)Object.defineProperty(o,s,{get:()=>{const c=s;return t._proxyFormState[c]!==Ar.all&&(t._proxyFormState[c]=!i||Ar.all),n&&(n[c]=!0),e[c]}});return o};const Rb=typeof window<"u"?Ne.useLayoutEffect:Ne.useEffect;function ZZ(e){const t=Sa(),{control:n=t.control,disabled:i,name:o,exact:s}=e||{},[c,u]=Ne.useState(n._formState),f=Ne.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return Rb(()=>n._subscribe({name:o,formState:f.current,exact:s,callback:h=>{!i&&u({...n._formState,...h})}}),[o,i,s]),Ne.useEffect(()=>{f.current.isValid&&n._setValid(!0)},[n]),Ne.useMemo(()=>sj(c,n,f.current,!1),[c,n])}var qn=e=>typeof e=="string",lj=(e,t,n,i,o)=>qn(e)?(i&&t.watch.add(e),ge(n,e,o)):Array.isArray(e)?e.map(s=>(i&&t.watch.add(s),ge(n,s))):(i&&(t.watchAll=!0),n),Mg=e=>kn(e)||!ij(e);function Ti(e,t,n=new WeakSet){if(Mg(e)||Mg(t))return e===t;if(ao(e)&&ao(t))return e.getTime()===t.getTime();const i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const s of i){const c=e[s];if(!o.includes(s))return!1;if(s!=="ref"){const u=t[s];if(ao(c)&&ao(u)||Gt(c)&&Gt(u)||Array.isArray(c)&&Array.isArray(u)?!Ti(c,u,n):c!==u)return!1}}return!0}function YZ(e){const t=Sa(),{control:n=t.control,name:i,defaultValue:o,disabled:s,exact:c,compute:u}=e||{},f=Ne.useRef(o),h=Ne.useRef(u),p=Ne.useRef(void 0);h.current=u;const g=Ne.useMemo(()=>n._getWatch(i,f.current),[n,i]),[b,x]=Ne.useState(h.current?h.current(g):g);return Rb(()=>n._subscribe({name:i,formState:{values:!0},exact:c,callback:w=>{if(!s){const A=lj(i,n._names,w.values||n._formValues,!1,f.current);if(h.current){const C=h.current(A);Ti(C,p.current)||(x(C),p.current=C)}else x(A)}}}),[n,s,i,c]),Ne.useEffect(()=>n._removeUnmounted()),b}function WZ(e){const t=Sa(),{name:n,disabled:i,control:o=t.control,shouldUnregister:s,defaultValue:c}=e,u=oj(o._names.array,n),f=Ne.useMemo(()=>ge(o._formValues,n,ge(o._defaultValues,n,c)),[o,n,c]),h=YZ({control:o,name:n,defaultValue:f,exact:!0}),p=ZZ({control:o,name:n,exact:!0}),g=Ne.useRef(e),b=Ne.useRef(void 0),x=Ne.useRef(o.register(n,{...e.rules,value:h,...Fn(e.disabled)?{disabled:e.disabled}:{}}));g.current=e;const w=Ne.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ge(p.errors,n)},isDirty:{enumerable:!0,get:()=>!!ge(p.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ge(p.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!ge(p.validatingFields,n)},error:{enumerable:!0,get:()=>ge(p.errors,n)}}),[p,n]),A=Ne.useCallback(R=>x.current.onChange({target:{value:aj(R),name:n},type:If.CHANGE}),[n]),C=Ne.useCallback(()=>x.current.onBlur({target:{value:ge(o._formValues,n),name:n},type:If.BLUR}),[n,o._formValues]),L=Ne.useCallback(R=>{const I=ge(o._fields,n);I&&R&&(I._f.ref={focus:()=>R.focus&&R.focus(),select:()=>R.select&&R.select(),setCustomValidity:N=>R.setCustomValidity(N),reportValidity:()=>R.reportValidity()})},[o._fields,n]),S=Ne.useMemo(()=>({name:n,value:h,...Fn(i)||p.disabled?{disabled:p.disabled||i}:{},onChange:A,onBlur:C,ref:L}),[n,i,p.disabled,A,C,L,h]);return Ne.useEffect(()=>{const R=o._options.shouldUnregister||s,I=b.current;I&&I!==n&&!u&&o.unregister(I),o.register(n,{...g.current.rules,...Fn(g.current.disabled)?{disabled:g.current.disabled}:{}});const N=(_,k)=>{const O=ge(o._fields,_);O&&O._f&&(O._f.mount=k)};if(N(n,!0),R){const _=qt(ge(o._options.defaultValues,n,g.current.defaultValue));ft(o._defaultValues,n,_),kt(ge(o._formValues,n))&&ft(o._formValues,n,_)}return!u&&o.register(n),b.current=n,()=>{(u?R&&!o._state.action:R)?o.unregister(n):N(n,!1)}},[n,o,u,s]),Ne.useEffect(()=>{o._setDisabledField({disabled:i,name:n})},[i,n,o]),Ne.useMemo(()=>({field:S,formState:p,fieldState:w}),[S,p,w])}const XZ=e=>e.render(WZ(e));var Ib=(e,t,n,i,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[i]:o||!0}}:{},xc=e=>Array.isArray(e)?e:[e],IT=()=>{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 cj(e,t){const n={};for(const i in e)if(e.hasOwnProperty(i)){const o=e[i],s=t[i];if(o&&Gt(o)&&s){const c=cj(o,s);Gt(c)&&(n[i]=c)}else e[i]&&(n[i]=s)}return n}var Nn=e=>Gt(e)&&!Object.keys(e).length,_b=e=>e.type==="file",wr=e=>typeof e=="function",_f=e=>{if(!Ab)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},uj=e=>e.type==="select-multiple",Nb=e=>e.type==="radio",QZ=e=>Nb(e)||nu(e),My=e=>_f(e)&&e.isConnected;function JZ(e,t){const n=t.slice(0,-1).length;let i=0;for(;i<n;)e=kt(e)?i++:e[t[i++]];return e}function eY(e){for(const t in e)if(e.hasOwnProperty(t)&&!kt(e[t]))return!1;return!0}function Vt(e,t){const n=Array.isArray(t)?t:sh(t)?[t]:Tb(t),i=n.length===1?e:JZ(e,n),o=n.length-1,s=n[o];return i&&delete i[s],o!==0&&(Gt(i)&&Nn(i)||Array.isArray(i)&&eY(i))&&Vt(e,n.slice(0,-1)),e}var tY=e=>{for(const t in e)if(wr(e[t]))return!0;return!1};function dj(e){return Array.isArray(e)||Gt(e)&&!tY(e)}function Pg(e,t={}){for(const n in e)dj(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Pg(e[n],t[n])):kt(e[n])||(t[n]=!0);return t}function Es(e,t,n){n||(n=Pg(t));for(const i in e)dj(e[i])?kt(t)||Mg(n[i])?n[i]=Pg(e[i],Array.isArray(e[i])?[]:{}):Es(e[i],kn(t)?{}:t[i],n[i]):n[i]=!Ti(e[i],t[i]);return n}const _T={value:!1,isValid:!1},NT={value:!0,isValid:!0};var fj=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!kt(e[0].attributes.value)?kt(e[0].value)||e[0].value===""?NT:{value:e[0].value,isValid:!0}:NT:_T}return _T},hj=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:i})=>kt(e)?e:t?e===""?NaN:e&&+e:n&&qn(e)?new Date(e):i?i(e):e;const kT={isValid:!1,value:null};var pj=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,kT):kT;function LT(e){const t=e.ref;return _b(t)?t.files:Nb(t)?pj(e.refs).value:uj(t)?[...t.selectedOptions].map(({value:n})=>n):nu(t)?fj(e.refs).value:hj(kt(t.value)?e.ref.value:t.value,e)}var nY=(e,t,n,i)=>{const o={};for(const s of e){const c=ge(t,s);c&&ft(o,s,c._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:i}},Nf=e=>e instanceof RegExp,ic=e=>kt(e)?e:Nf(e)?e.source:Gt(e)?Nf(e.value)?e.value.source:e.value:e,DT=e=>({isOnSubmit:!e||e===Ar.onSubmit,isOnBlur:e===Ar.onBlur,isOnChange:e===Ar.onChange,isOnAll:e===Ar.all,isOnTouch:e===Ar.onTouched});const OT="AsyncFunction";var rY=e=>!!e&&!!e.validate&&!!(wr(e.validate)&&e.validate.constructor.name===OT||Gt(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===OT)),iY=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),jT=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(i=>e.startsWith(i)&&/^\.\w+/.test(e.slice(i.length))));const Sc=(e,t,n,i)=>{for(const o of n||Object.keys(e)){const s=ge(e,o);if(s){const{_f:c,...u}=s;if(c){if(c.refs&&c.refs[0]&&t(c.refs[0],o)&&!i)return!0;if(c.ref&&t(c.ref,c.name)&&!i)return!0;if(Sc(u,t))break}else if(Gt(u)&&Sc(u,t))break}}};function zT(e,t,n){const i=ge(e,n);if(i||sh(n))return{error:i,name:n};const o=n.split(".");for(;o.length;){const s=o.join("."),c=ge(t,s),u=ge(e,s);if(c&&!Array.isArray(c)&&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 aY=(e,t,n,i)=>{n(e);const{name:o,...s}=e;return Nn(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(c=>t[c]===(!i||Ar.all))},oY=(e,t,n)=>!e||!t||e===t||xc(e).some(i=>i&&(n?i===t:i.startsWith(t)||t.startsWith(i))),sY=(e,t,n,i,o)=>o.isOnAll?!1:!n&&o.isOnTouch?!(t||e):(n?i.isOnBlur:o.isOnBlur)?!e:(n?i.isOnChange:o.isOnChange)?e:!0,lY=(e,t)=>!wb(ge(e,t)).length&&Vt(e,t),cY=(e,t,n)=>{const i=xc(ge(e,n));return ft(i,"root",t[n]),ft(e,n,i),e};function MT(e,t,n="validate"){if(qn(e)||Array.isArray(e)&&e.every(qn)||Fn(e)&&!e)return{type:n,message:qn(e)?e:"",ref:t}}var ys=e=>Gt(e)&&!Nf(e)?e:{value:e,message:""},PT=async(e,t,n,i,o,s)=>{const{ref:c,refs:u,required:f,maxLength:h,minLength:p,min:g,max:b,pattern:x,validate:w,name:A,valueAsNumber:C,mount:L}=e._f,S=ge(n,A);if(!L||t.has(A))return{};const R=u?u[0]:c,I=te=>{o&&R.reportValidity&&(R.setCustomValidity(Fn(te)?"":te||""),R.reportValidity())},N={},_=Nb(c),k=nu(c),O=_||k,U=(C||_b(c))&&kt(c.value)&&kt(S)||_f(c)&&c.value===""||S===""||Array.isArray(S)&&!S.length,F=Ib.bind(null,A,i,N),H=(te,ce,X,oe=wi.maxLength,M=wi.minLength)=>{const Y=te?ce:X;N[A]={type:te?oe:M,message:Y,ref:c,...F(te?oe:M,Y)}};if(s?!Array.isArray(S)||!S.length:f&&(!O&&(U||kn(S))||Fn(S)&&!S||k&&!fj(u).isValid||_&&!pj(u).isValid)){const{value:te,message:ce}=qn(f)?{value:!!f,message:f}:ys(f);if(te&&(N[A]={type:wi.required,message:ce,ref:R,...F(wi.required,ce)},!i))return I(ce),N}if(!U&&(!kn(g)||!kn(b))){let te,ce;const X=ys(b),oe=ys(g);if(!kn(S)&&!isNaN(S)){const M=c.valueAsNumber||S&&+S;kn(X.value)||(te=M>X.value),kn(oe.value)||(ce=M<oe.value)}else{const M=c.valueAsDate||new Date(S),Y=Ee=>new Date(new Date().toDateString()+" "+Ee),$=c.type=="time",me=c.type=="week";qn(X.value)&&S&&(te=$?Y(S)>Y(X.value):me?S>X.value:M>new Date(X.value)),qn(oe.value)&&S&&(ce=$?Y(S)<Y(oe.value):me?S<oe.value:M<new Date(oe.value))}if((te||ce)&&(H(!!te,X.message,oe.message,wi.max,wi.min),!i))return I(N[A].message),N}if((h||p)&&!U&&(qn(S)||s&&Array.isArray(S))){const te=ys(h),ce=ys(p),X=!kn(te.value)&&S.length>+te.value,oe=!kn(ce.value)&&S.length<+ce.value;if((X||oe)&&(H(X,te.message,ce.message),!i))return I(N[A].message),N}if(x&&!U&&qn(S)){const{value:te,message:ce}=ys(x);if(Nf(te)&&!S.match(te)&&(N[A]={type:wi.pattern,message:ce,ref:c,...F(wi.pattern,ce)},!i))return I(ce),N}if(w){if(wr(w)){const te=await w(S,n),ce=MT(te,R);if(ce&&(N[A]={...ce,...F(wi.validate,ce.message)},!i))return I(ce.message),N}else if(Gt(w)){let te={};for(const ce in w){if(!Nn(te)&&!i)break;const X=MT(await w[ce](S,n),R,ce);X&&(te={...X,...F(ce,X.message)},I(X.message),i&&(N[A]=te))}if(!Nn(te)&&(N[A]={ref:R,...te},!i))return N}}return I(!0),N};const uY={mode:Ar.onSubmit,reValidateMode:Ar.onChange,shouldFocusError:!0};function dY(e={}){let t={...uY,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:wr(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},i={},o=Gt(t.defaultValues)||Gt(t.values)?qt(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:qt(o),c={action:!1,mount:!1,watch:!1},u={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},f,h=0;const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1};let g={...p};const b={array:IT(),state:IT()},x=t.criteriaMode===Ar.all,w=B=>W=>{clearTimeout(h),h=setTimeout(B,W)},A=async B=>{if(!t.disabled&&(p.isValid||g.isValid||B)){const W=t.resolver?Nn((await k()).errors):await U(i,!0);W!==n.isValid&&b.state.next({isValid:W})}},C=(B,W)=>{!t.disabled&&(p.isValidating||p.validatingFields||g.isValidating||g.validatingFields)&&((B||Array.from(u.mount)).forEach(ae=>{ae&&(W?ft(n.validatingFields,ae,W):Vt(n.validatingFields,ae))}),b.state.next({validatingFields:n.validatingFields,isValidating:!Nn(n.validatingFields)}))},L=(B,W=[],ae,ve,he=!0,pe=!0)=>{if(ve&&ae&&!t.disabled){if(c.action=!0,pe&&Array.isArray(ge(i,B))){const Ie=ae(ge(i,B),ve.argA,ve.argB);he&&ft(i,B,Ie)}if(pe&&Array.isArray(ge(n.errors,B))){const Ie=ae(ge(n.errors,B),ve.argA,ve.argB);he&&ft(n.errors,B,Ie),lY(n.errors,B)}if((p.touchedFields||g.touchedFields)&&pe&&Array.isArray(ge(n.touchedFields,B))){const Ie=ae(ge(n.touchedFields,B),ve.argA,ve.argB);he&&ft(n.touchedFields,B,Ie)}(p.dirtyFields||g.dirtyFields)&&(n.dirtyFields=Es(o,s)),b.state.next({name:B,isDirty:H(B,W),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else ft(s,B,W)},S=(B,W)=>{ft(n.errors,B,W),b.state.next({errors:n.errors})},R=B=>{n.errors=B,b.state.next({errors:n.errors,isValid:!1})},I=(B,W,ae,ve)=>{const he=ge(i,B);if(he){const pe=ge(s,B,kt(ae)?ge(o,B):ae);kt(pe)||ve&&ve.defaultChecked||W?ft(s,B,W?pe:LT(he._f)):X(B,pe),c.mount&&A()}},N=(B,W,ae,ve,he)=>{let pe=!1,Ie=!1;const tt={name:B};if(!t.disabled){if(!ae||ve){(p.isDirty||g.isDirty)&&(Ie=n.isDirty,n.isDirty=tt.isDirty=H(),pe=Ie!==tt.isDirty);const at=Ti(ge(o,B),W);Ie=!!ge(n.dirtyFields,B),at?Vt(n.dirtyFields,B):ft(n.dirtyFields,B,!0),tt.dirtyFields=n.dirtyFields,pe=pe||(p.dirtyFields||g.dirtyFields)&&Ie!==!at}if(ae){const at=ge(n.touchedFields,B);at||(ft(n.touchedFields,B,ae),tt.touchedFields=n.touchedFields,pe=pe||(p.touchedFields||g.touchedFields)&&at!==ae)}pe&&he&&b.state.next(tt)}return pe?tt:{}},_=(B,W,ae,ve)=>{const he=ge(n.errors,B),pe=(p.isValid||g.isValid)&&Fn(W)&&n.isValid!==W;if(t.delayError&&ae?(f=w(()=>S(B,ae)),f(t.delayError)):(clearTimeout(h),f=null,ae?ft(n.errors,B,ae):Vt(n.errors,B)),(ae?!Ti(he,ae):he)||!Nn(ve)||pe){const Ie={...ve,...pe&&Fn(W)?{isValid:W}:{},errors:n.errors,name:B};n={...n,...Ie},b.state.next(Ie)}},k=async B=>{C(B,!0);const W=await t.resolver(s,t.context,nY(B||u.mount,i,t.criteriaMode,t.shouldUseNativeValidation));return C(B),W},O=async B=>{const{errors:W}=await k(B);if(B)for(const ae of B){const ve=ge(W,ae);ve?ft(n.errors,ae,ve):Vt(n.errors,ae)}else n.errors=W;return W},U=async(B,W,ae={valid:!0})=>{for(const ve in B){const he=B[ve];if(he){const{_f:pe,...Ie}=he;if(pe){const tt=u.array.has(pe.name),at=he._f&&rY(he._f);at&&p.validatingFields&&C([pe.name],!0);const xn=await PT(he,u.disabled,s,x,t.shouldUseNativeValidation&&!W,tt);if(at&&p.validatingFields&&C([pe.name]),xn[pe.name]&&(ae.valid=!1,W))break;!W&&(ge(xn,pe.name)?tt?cY(n.errors,xn,pe.name):ft(n.errors,pe.name,xn[pe.name]):Vt(n.errors,pe.name))}!Nn(Ie)&&await U(Ie,W,ae)}}return ae.valid},F=()=>{for(const B of u.unMount){const W=ge(i,B);W&&(W._f.refs?W._f.refs.every(ae=>!My(ae)):!My(W._f.ref))&&ie(B)}u.unMount=new Set},H=(B,W)=>!t.disabled&&(B&&W&&ft(s,B,W),!Ti(Ee(),o)),te=(B,W,ae)=>lj(B,u,{...c.mount?s:kt(W)?o:qn(B)?{[B]:W}:W},ae,W),ce=B=>wb(ge(c.mount?s:o,B,t.shouldUnregister?ge(o,B,[]):[])),X=(B,W,ae={})=>{const ve=ge(i,B);let he=W;if(ve){const pe=ve._f;pe&&(!pe.disabled&&ft(s,B,hj(W,pe)),he=_f(pe.ref)&&kn(W)?"":W,uj(pe.ref)?[...pe.ref.options].forEach(Ie=>Ie.selected=he.includes(Ie.value)):pe.refs?nu(pe.ref)?pe.refs.forEach(Ie=>{(!Ie.defaultChecked||!Ie.disabled)&&(Array.isArray(he)?Ie.checked=!!he.find(tt=>tt===Ie.value):Ie.checked=he===Ie.value||!!he)}):pe.refs.forEach(Ie=>Ie.checked=Ie.value===he):_b(pe.ref)?pe.ref.value="":(pe.ref.value=he,pe.ref.type||b.state.next({name:B,values:qt(s)})))}(ae.shouldDirty||ae.shouldTouch)&&N(B,he,ae.shouldTouch,ae.shouldDirty,!0),ae.shouldValidate&&me(B)},oe=(B,W,ae)=>{for(const ve in W){if(!W.hasOwnProperty(ve))return;const he=W[ve],pe=B+"."+ve,Ie=ge(i,pe);(u.array.has(B)||Gt(he)||Ie&&!Ie._f)&&!ao(he)?oe(pe,he,ae):X(pe,he,ae)}},M=(B,W,ae={})=>{const ve=ge(i,B),he=u.array.has(B),pe=qt(W);ft(s,B,pe),he?(b.array.next({name:B,values:qt(s)}),(p.isDirty||p.dirtyFields||g.isDirty||g.dirtyFields)&&ae.shouldDirty&&b.state.next({name:B,dirtyFields:Es(o,s),isDirty:H(B,pe)})):ve&&!ve._f&&!kn(pe)?oe(B,pe,ae):X(B,pe,ae),jT(B,u)&&b.state.next({...n,name:B}),b.state.next({name:c.mount?B:void 0,values:qt(s)})},Y=async B=>{c.mount=!0;const W=B.target;let ae=W.name,ve=!0;const he=ge(i,ae),pe=at=>{ve=Number.isNaN(at)||ao(at)&&isNaN(at.getTime())||Ti(at,ge(s,ae,at))},Ie=DT(t.mode),tt=DT(t.reValidateMode);if(he){let at,xn;const La=W.type?LT(he._f):aj(B),Dr=B.type===If.BLUR||B.type===If.FOCUS_OUT,Oh=!iY(he._f)&&!t.resolver&&!ge(n.errors,ae)&&!he._f.deps||sY(Dr,ge(n.touchedFields,ae),n.isSubmitted,tt,Ie),ii=jT(ae,u,Dr);ft(s,ae,La),Dr?(!W||!W.readOnly)&&(he._f.onBlur&&he._f.onBlur(B),f&&f(0)):he._f.onChange&&he._f.onChange(B);const nn=N(ae,La,Dr),Or=!Nn(nn)||ii;if(!Dr&&b.state.next({name:ae,type:B.type,values:qt(s)}),Oh)return(p.isValid||g.isValid)&&(t.mode==="onBlur"?Dr&&A():Dr||A()),Or&&b.state.next({name:ae,...ii?{}:nn});if(!Dr&&ii&&b.state.next({...n}),t.resolver){const{errors:fn}=await k([ae]);if(pe(La),ve){const jh=zT(n.errors,i,ae),cu=zT(fn,i,jh.name||ae);at=cu.error,ae=cu.name,xn=Nn(fn)}}else C([ae],!0),at=(await PT(he,u.disabled,s,x,t.shouldUseNativeValidation))[ae],C([ae]),pe(La),ve&&(at?xn=!1:(p.isValid||g.isValid)&&(xn=await U(i,!0)));ve&&(he._f.deps&&(!Array.isArray(he._f.deps)||he._f.deps.length>0)&&me(he._f.deps),_(ae,xn,at,nn))}},$=(B,W)=>{if(ge(n.errors,W)&&B.focus)return B.focus(),1},me=async(B,W={})=>{let ae,ve;const he=xc(B);if(t.resolver){const pe=await O(kt(B)?B:he);ae=Nn(pe),ve=B?!he.some(Ie=>ge(pe,Ie)):ae}else B?(ve=(await Promise.all(he.map(async pe=>{const Ie=ge(i,pe);return await U(Ie&&Ie._f?{[pe]:Ie}:Ie)}))).every(Boolean),!(!ve&&!n.isValid)&&A()):ve=ae=await U(i);return b.state.next({...!qn(B)||(p.isValid||g.isValid)&&ae!==n.isValid?{}:{name:B},...t.resolver||!B?{isValid:ae}:{},errors:n.errors}),W.shouldFocus&&!ve&&Sc(i,$,B?he:u.mount),ve},Ee=(B,W)=>{let ae={...c.mount?s:o};return W&&(ae=cj(W.dirtyFields?n.dirtyFields:n.touchedFields,ae)),kt(B)?ae:qn(B)?ge(ae,B):B.map(ve=>ge(ae,ve))},j=(B,W)=>({invalid:!!ge((W||n).errors,B),isDirty:!!ge((W||n).dirtyFields,B),error:ge((W||n).errors,B),isValidating:!!ge(n.validatingFields,B),isTouched:!!ge((W||n).touchedFields,B)}),P=B=>{B&&xc(B).forEach(W=>Vt(n.errors,W)),b.state.next({errors:B?n.errors:{}})},J=(B,W,ae)=>{const ve=(ge(i,B,{_f:{}})._f||{}).ref,he=ge(n.errors,B)||{},{ref:pe,message:Ie,type:tt,...at}=he;ft(n.errors,B,{...at,...W,ref:ve}),b.state.next({name:B,errors:n.errors,isValid:!1}),ae&&ae.shouldFocus&&ve&&ve.focus&&ve.focus()},ne=(B,W)=>wr(B)?b.state.subscribe({next:ae=>"values"in ae&&B(te(void 0,W),ae)}):te(B,W,!0),ue=B=>b.state.subscribe({next:W=>{oY(B.name,W.name,B.exact)&&aY(W,B.formState||p,ka,B.reRenderRoot)&&B.callback({values:{...s},...n,...W,defaultValues:o})}}).unsubscribe,ye=B=>(c.mount=!0,g={...g,...B.formState},ue({...B,formState:g})),ie=(B,W={})=>{for(const ae of B?xc(B):u.mount)u.mount.delete(ae),u.array.delete(ae),W.keepValue||(Vt(i,ae),Vt(s,ae)),!W.keepError&&Vt(n.errors,ae),!W.keepDirty&&Vt(n.dirtyFields,ae),!W.keepTouched&&Vt(n.touchedFields,ae),!W.keepIsValidating&&Vt(n.validatingFields,ae),!t.shouldUnregister&&!W.keepDefaultValue&&Vt(o,ae);b.state.next({values:qt(s)}),b.state.next({...n,...W.keepDirty?{isDirty:H()}:{}}),!W.keepIsValid&&A()},Re=({disabled:B,name:W})=>{(Fn(B)&&c.mount||B||u.disabled.has(W))&&(B?u.disabled.add(W):u.disabled.delete(W))},Ae=(B,W={})=>{let ae=ge(i,B);const ve=Fn(W.disabled)||Fn(t.disabled);return ft(i,B,{...ae||{},_f:{...ae&&ae._f?ae._f:{ref:{name:B}},name:B,mount:!0,...W}}),u.mount.add(B),ae?Re({disabled:Fn(W.disabled)?W.disabled:t.disabled,name:B}):I(B,!0,W.value),{...ve?{disabled:W.disabled||t.disabled}:{},...t.progressive?{required:!!W.required,min:ic(W.min),max:ic(W.max),minLength:ic(W.minLength),maxLength:ic(W.maxLength),pattern:ic(W.pattern)}:{},name:B,onChange:Y,onBlur:Y,ref:he=>{if(he){Ae(B,W),ae=ge(i,B);const pe=kt(he.value)&&he.querySelectorAll&&he.querySelectorAll("input,select,textarea")[0]||he,Ie=QZ(pe),tt=ae._f.refs||[];if(Ie?tt.find(at=>at===pe):pe===ae._f.ref)return;ft(i,B,{_f:{...ae._f,...Ie?{refs:[...tt.filter(My),pe,...Array.isArray(ge(o,B))?[{}]:[]],ref:{type:pe.type,name:B}}:{ref:pe}}}),I(B,!1,void 0,pe)}else ae=ge(i,B,{}),ae._f&&(ae._f.mount=!1),(t.shouldUnregister||W.shouldUnregister)&&!(oj(u.array,B)&&c.action)&&u.unMount.add(B)}}},ze=()=>t.shouldFocusError&&Sc(i,$,u.mount),Ye=B=>{Fn(B)&&(b.state.next({disabled:B}),Sc(i,(W,ae)=>{const ve=ge(i,ae);ve&&(W.disabled=ve._f.disabled||B,Array.isArray(ve._f.refs)&&ve._f.refs.forEach(he=>{he.disabled=ve._f.disabled||B}))},0,!1))},et=(B,W)=>async ae=>{let ve;ae&&(ae.preventDefault&&ae.preventDefault(),ae.persist&&ae.persist());let he=qt(s);if(b.state.next({isSubmitting:!0}),t.resolver){const{errors:pe,values:Ie}=await k();n.errors=pe,he=qt(Ie)}else await U(i);if(u.disabled.size)for(const pe of u.disabled)Vt(he,pe);if(Vt(n.errors,"root"),Nn(n.errors)){b.state.next({errors:{}});try{await B(he,ae)}catch(pe){ve=pe}}else W&&await W({...n.errors},ae),ze(),setTimeout(ze);if(b.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Nn(n.errors)&&!ve,submitCount:n.submitCount+1,errors:n.errors}),ve)throw ve},tn=(B,W={})=>{ge(i,B)&&(kt(W.defaultValue)?M(B,qt(ge(o,B))):(M(B,W.defaultValue),ft(o,B,qt(W.defaultValue))),W.keepTouched||Vt(n.touchedFields,B),W.keepDirty||(Vt(n.dirtyFields,B),n.isDirty=W.defaultValue?H(B,qt(ge(o,B))):H()),W.keepError||(Vt(n.errors,B),p.isValid&&A()),b.state.next({...n}))},Wt=(B,W={})=>{const ae=B?qt(B):o,ve=qt(ae),he=Nn(B),pe=he?o:ve;if(W.keepDefaultValues||(o=ae),!W.keepValues){if(W.keepDirtyValues){const Ie=new Set([...u.mount,...Object.keys(Es(o,s))]);for(const tt of Array.from(Ie))ge(n.dirtyFields,tt)?ft(pe,tt,ge(s,tt)):M(tt,ge(pe,tt))}else{if(Ab&&kt(B))for(const Ie of u.mount){const tt=ge(i,Ie);if(tt&&tt._f){const at=Array.isArray(tt._f.refs)?tt._f.refs[0]:tt._f.ref;if(_f(at)){const xn=at.closest("form");if(xn){xn.reset();break}}}}if(W.keepFieldsRef)for(const Ie of u.mount)M(Ie,ge(pe,Ie));else i={}}s=t.shouldUnregister?W.keepDefaultValues?qt(o):{}:qt(pe),b.array.next({values:{...pe}}),b.state.next({values:{...pe}})}u={mount:W.keepDirtyValues?u.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},c.mount=!p.isValid||!!W.keepIsValid||!!W.keepDirtyValues,c.watch=!!t.shouldUnregister,b.state.next({submitCount:W.keepSubmitCount?n.submitCount:0,isDirty:he?!1:W.keepDirty?n.isDirty:!!(W.keepDefaultValues&&!Ti(B,o)),isSubmitted:W.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:he?{}:W.keepDirtyValues?W.keepDefaultValues&&s?Es(o,s):n.dirtyFields:W.keepDefaultValues&&B?Es(o,B):W.keepDirty?n.dirtyFields:{},touchedFields:W.keepTouched?n.touchedFields:{},errors:W.keepErrors?n.errors:{},isSubmitSuccessful:W.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},Lr=(B,W)=>Wt(wr(B)?B(s):B,W),ri=(B,W={})=>{const ae=ge(i,B),ve=ae&&ae._f;if(ve){const he=ve.refs?ve.refs[0]:ve.ref;he.focus&&(he.focus(),W.shouldSelect&&wr(he.select)&&he.select())}},ka=B=>{n={...n,...B}},Ro={control:{register:Ae,unregister:ie,getFieldState:j,handleSubmit:et,setError:J,_subscribe:ue,_runSchema:k,_focusError:ze,_getWatch:te,_getDirty:H,_setValid:A,_setFieldArray:L,_setDisabledField:Re,_setErrors:R,_getFieldArray:ce,_reset:Wt,_resetDefaultValues:()=>wr(t.defaultValues)&&t.defaultValues().then(B=>{Lr(B,t.resetOptions),b.state.next({isLoading:!1})}),_removeUnmounted:F,_disableForm:Ye,_subjects:b,_proxyFormState:p,get _fields(){return i},get _formValues(){return s},get _state(){return c},set _state(B){c=B},get _defaultValues(){return o},get _names(){return u},set _names(B){u=B},get _formState(){return n},get _options(){return t},set _options(B){t={...t,...B}}},subscribe:ye,trigger:me,register:Ae,handleSubmit:et,watch:ne,setValue:M,getValues:Ee,reset:Lr,resetField:tn,clearErrors:P,unregister:ie,setError:J,setFocus:ri,getFieldState:j};return{...Ro,formControl:Ro}}function fY(e={}){const t=Ne.useRef(void 0),n=Ne.useRef(void 0),[i,o]=Ne.useState({isDirty:!1,isValidating:!1,isLoading:wr(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:wr(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!wr(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:c,...u}=dY(e);t.current={...u,formState:i}}const s=t.current.control;return s._options=e,Rb(()=>{const c=s._subscribe({formState:s._proxyFormState,callback:()=>o({...s._formState}),reRenderRoot:!0});return o(u=>({...u,isReady:!0})),s._formState.isReady=!0,c},[s]),Ne.useEffect(()=>s._disableForm(e.disabled),[s,e.disabled]),Ne.useEffect(()=>{e.mode&&(s._options.mode=e.mode),e.reValidateMode&&(s._options.reValidateMode=e.reValidateMode)},[s,e.mode,e.reValidateMode]),Ne.useEffect(()=>{e.errors&&(s._setErrors(e.errors),s._focusError())},[s,e.errors]),Ne.useEffect(()=>{e.shouldUnregister&&s._subjects.state.next({values:s._getWatch()})},[s,e.shouldUnregister]),Ne.useEffect(()=>{if(s._proxyFormState.isDirty){const c=s._getDirty();c!==i.isDirty&&s._subjects.state.next({isDirty:c})}},[s,i.isDirty]),Ne.useEffect(()=>{e.values&&!Ti(e.values,n.current)?(s._reset(e.values,{keepFieldsRef:!0,...s._options.resetOptions}),n.current=e.values,o(c=>({...c}))):s._resetDefaultValues()},[s,e.values]),Ne.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=sj(i,s),t.current}const mj=E.createContext({}),hY=({...e})=>y.jsx(mj,{value:E.useMemo(()=>({name:e.name}),[e.name]),children:y.jsx(XZ,{...e})}),Aa=()=>{const e=E.useContext(mj),t=E.useContext(rj),{getFieldState:n,formState:i}=Sa(),o=n(e.name,i);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}},pY=({className:e,children:t,...n})=>y.jsxs("i",{className:fe("text-neutral-400 text-xs",e),...n,children:["ⓘ ",t]}),Bg=({htmlFor:e,required:t=!1,disabled:n=!1,className:i,children:o,...s})=>y.jsxs("label",{className:fe("select-none font-medium text-sm leading-none","peer-disabled:cursor-not-allowed peer-disabled:opacity-70",n&&"cursor-not-allowed text-muted-foreground opacity-70",i),htmlFor:e,...s,children:[o,t&&y.jsx("span",{className:"ml-1 text-destructive","aria-label":"required",title:"This field is required",children:"*"})]}),yj=({className:e,variant:t,validationStyleEnabled:n=!1,...i})=>y.jsx("textarea",{className:fe("resize-none",ej({variant:t,validationStyleEnabled:n?"enabled":"disabled",className:e})),...i}),BT=24,UT=12,kb=({className:e,autoSize:t=!0,onChange:n,maxRows:i=999,ref:o,...s})=>{const c=E.useRef(null);E.useImperativeHandle(o,()=>c.current);const u=()=>{const p=c.current;if(!p||!t)return;const g=p.style;g.height="auto";const b=p.scrollHeight,x=BT*i+UT,w=BT+UT;g.height=`${Math.max(Math.min(b,x),w)}px`};E.useEffect(()=>{u()},[s.value,s.defaultValue,u]);const f=p=>{n?.(p),u()},h=p=>{c.current=p,p&&u()};return y.jsx(yj,{ref:h,onChange:f,className:fe("overflow-y-auto",t?"resize-none":"",e),...s})};var el=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(){}},mY={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},yY=class{#e=mY;#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)}},oo=new yY;function gY(e){setTimeout(e,0)}var po=typeof window>"u"||"Deno"in globalThis;function vn(){}function vY(e,t){return typeof e=="function"?e(t):e}function Ug(e){return typeof e=="number"&&e>=0&&e!==1/0}function gj(e,t){return Math.max(e+(t||0)-Date.now(),0)}function da(e,t){return typeof e=="function"?e(t):e}function cr(e,t){return typeof e=="function"?e(t):e}function VT(e,t){const{type:n="all",exact:i,fetchStatus:o,predicate:s,queryKey:c,stale:u}=e;if(c){if(i){if(t.queryHash!==Lb(c,t.options))return!1}else if(!Oc(t.queryKey,c))return!1}if(n!=="all"){const f=t.isActive();if(n==="active"&&!f||n==="inactive"&&f)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||o&&o!==t.state.fetchStatus||s&&!s(t))}function FT(e,t){const{exact:n,status:i,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(mo(t.options.mutationKey)!==mo(s))return!1}else if(!Oc(t.options.mutationKey,s))return!1}return!(i&&t.state.status!==i||o&&!o(t))}function Lb(e,t){return(t?.queryKeyHashFn||mo)(e)}function mo(e){return JSON.stringify(e,(t,n)=>Vg(n)?Object.keys(n).sort().reduce((i,o)=>(i[o]=n[o],i),{}):n)}function Oc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Oc(e[n],t[n])):!1}var bY=Object.prototype.hasOwnProperty;function vj(e,t){if(e===t)return e;const n=HT(e)&&HT(t);if(!n&&!(Vg(e)&&Vg(t)))return t;const o=(n?e:Object.keys(e)).length,s=n?t:Object.keys(t),c=s.length,u=n?new Array(c):{};let f=0;for(let h=0;h<c;h++){const p=n?h:s[h],g=e[p],b=t[p];if(g===b){u[p]=g,(n?h<o:bY.call(e,p))&&f++;continue}if(g===null||b===null||typeof g!="object"||typeof b!="object"){u[p]=b;continue}const x=vj(g,b);u[p]=x,x===g&&f++}return o===c&&f===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 HT(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Vg(e){if(!GT(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!GT(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function GT(e){return Object.prototype.toString.call(e)==="[object Object]"}function EY(e){return new Promise(t=>{oo.setTimeout(t,e)})}function Fg(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?vj(e,t):t}function xY(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function SY(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var Db=Symbol();function bj(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Db?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Ej(e,t){return typeof e=="function"?e(...t):!!e}var AY=class extends el{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!po&&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"}},Ob=new AY;function Hg(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});n.status="pending",n.catch(()=>{});function i(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{i({status:"fulfilled",value:o}),e(o)},n.reject=o=>{i({status:"rejected",reason:o}),t(o)},n}var wY=gY;function TY(){let e=[],t=0,n=u=>{u()},i=u=>{u()},o=wY;const s=u=>{t?e.push(u):o(()=>{n(u)})},c=()=>{const u=e;e=[],u.length&&o(()=>{i(()=>{u.forEach(f=>{n(f)})})})};return{batch:u=>{let f;t++;try{f=u()}finally{t--,t||c()}return f},batchCalls:u=>(...f)=>{s(()=>{u(...f)})},schedule:s,setNotifyFunction:u=>{n=u},setBatchNotifyFunction:u=>{i=u},setScheduler:u=>{o=u}}}var Zt=TY(),CY=class extends el{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!po&&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}},Lf=new CY;function RY(e){return Math.min(1e3*2**e,3e4)}function xj(e){return(e??"online")==="online"?Lf.isOnline():!0}var Gg=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Sj(e){let t=!1,n=0,i;const o=Hg(),s=()=>o.status!=="pending",c=A=>{if(!s()){const C=new Gg(A);b(C),e.onCancel?.(C)}},u=()=>{t=!0},f=()=>{t=!1},h=()=>Ob.isFocused()&&(e.networkMode==="always"||Lf.isOnline())&&e.canRun(),p=()=>xj(e.networkMode)&&e.canRun(),g=A=>{s()||(i?.(),o.resolve(A))},b=A=>{s()||(i?.(),o.reject(A))},x=()=>new Promise(A=>{i=C=>{(s()||h())&&A(C)},e.onPause?.()}).then(()=>{i=void 0,s()||e.onContinue?.()}),w=()=>{if(s())return;let A;const C=n===0?e.initialPromise:void 0;try{A=C??e.fn()}catch(L){A=Promise.reject(L)}Promise.resolve(A).then(g).catch(L=>{if(s())return;const S=e.retry??(po?0:3),R=e.retryDelay??RY,I=typeof R=="function"?R(n,L):R,N=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,L);if(t||!N){b(L);return}n++,e.onFail?.(n,L),EY(I).then(()=>h()?void 0:x()).then(()=>{t?b(L):w()})})};return{promise:o,status:()=>o.status,cancel:c,continue:()=>(i?.(),o),cancelRetry:u,continueRetry:f,canStart:p,start:()=>(p()?w():x().then(w),o)}}var Aj=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Ug(this.gcTime)&&(this.#e=oo.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(po?1/0:5*60*1e3))}clearGcTimeout(){this.#e&&(oo.clearTimeout(this.#e),this.#e=void 0)}},IY=class extends Aj{#e;#t;#n;#i;#r;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#n=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#e=KT(this.options),this.state=e.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#r?.promise}setOptions(e){if(this.options={...this.#o,...e},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const t=KT(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=Fg(this.state.data,e,this.options);return this.#a({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#a({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#r?.promise;return this.#r?.cancel(e),t?t.then(vn).catch(vn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>cr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Db||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>da(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:!gj(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(t=>t.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(t=>t.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#r&&(this.#s?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#a({type:"invalidate"})}async fetch(e,t){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(e&&this.setOptions(e),!this.options.queryFn){const u=this.observers.find(f=>f.options.queryFn);u&&this.setOptions(u.options)}const n=new AbortController,i=u=>{Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},o=()=>{const u=bj(this.options,t),h=(()=>{const p={client:this.#i,queryKey:this.queryKey,meta:this.meta};return i(p),p})();return this.#s=!1,this.options.persister?this.options.persister(u,h,this):u(h)},c=(()=>{const u={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:o};return i(u),u})();this.options.behavior?.onFetch(c,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==c.fetchOptions?.meta)&&this.#a({type:"fetch",meta:c.fetchOptions?.meta}),this.#r=Sj({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:u=>{u instanceof Gg&&u.revert&&this.setState({...this.#t,fetchStatus:"idle"}),n.abort()},onFail:(u,f)=>{this.#a({type:"failed",failureCount:u,error:f})},onPause:()=>{this.#a({type:"pause"})},onContinue:()=>{this.#a({type:"continue"})},retry:c.options.retry,retryDelay:c.options.retryDelay,networkMode:c.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 Gg){if(u.silent)return this.#r.promise;if(u.revert){if(this.state.data===void 0)throw u;return this.state.data}}throw this.#a({type:"error",error:u}),this.#n.config.onError?.(u,this),this.#n.config.onSettled?.(this.state.data,u,this),u}finally{this.scheduleGc()}}#a(e){const t=n=>{switch(e.type){case"failed":return{...n,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...n,fetchStatus:"paused"};case"continue":return{...n,fetchStatus:"fetching"};case"fetch":return{...n,...wj(n.data,this.options),fetchMeta:e.meta??null};case"success":const i={...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?i:void 0,i;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 wj(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:xj(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function KT(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,i=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?i??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var _Y=class extends el{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#s=Hg(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#i=void 0;#r;#o;#s;#a;#m;#f;#h;#c;#u;#l;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),$T(this.#t,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Kg(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Kg(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#E(),this.#x(),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 cr(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 i=this.hasListeners();i&&qT(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),i&&(this.#t!==n||cr(this.options.enabled,this.#t)!==cr(t.enabled,this.#t)||da(this.options.staleTime,this.#t)!==da(t.staleTime,this.#t))&&this.#y();const o=this.#g();i&&(this.#t!==n||cr(this.options.enabled,this.#t)!==cr(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 kY(this,n)&&(this.#i=n,this.#o=this.options,this.#r=this.#t.state),n}getCurrentResult(){return this.#i}trackResult(e,t){return new Proxy(e,{get:(n,i)=>(this.trackProp(i),t?.(i),i==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(n,i))})}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(vn)),t}#y(){this.#E();const e=da(this.options.staleTime,this.#t);if(po||this.#i.isStale||!Ug(e))return;const n=gj(this.#i.dataUpdatedAt,e)+1;this.#c=oo.setTimeout(()=>{this.#i.isStale||this.updateResult()},n)}#g(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#l=e,!(po||cr(this.options.enabled,this.#t)===!1||!Ug(this.#l)||this.#l===0)&&(this.#u=oo.setInterval(()=>{(this.options.refetchIntervalInBackground||Ob.isFocused())&&this.#d()},this.#l))}#b(){this.#y(),this.#v(this.#g())}#E(){this.#c&&(oo.clearTimeout(this.#c),this.#c=void 0)}#x(){this.#u&&(oo.clearInterval(this.#u),this.#u=void 0)}createResult(e,t){const n=this.#t,i=this.options,o=this.#i,s=this.#r,c=this.#o,f=e!==n?e.state:this.#n,{state:h}=e;let p={...h},g=!1,b;if(t._optimisticResults){const O=this.hasListeners(),U=!O&&$T(e,t),F=O&&qT(e,n,t,i);(U||F)&&(p={...p,...wj(h.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:x,errorUpdatedAt:w,status:A}=p;b=p.data;let C=!1;if(t.placeholderData!==void 0&&b===void 0&&A==="pending"){let O;o?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(O=o.data,C=!0):O=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,O!==void 0&&(A="success",b=Fg(o?.data,O,t),g=!0)}if(t.select&&b!==void 0&&!C)if(o&&b===s?.data&&t.select===this.#m)b=this.#f;else try{this.#m=t.select,b=t.select(b),b=Fg(o?.data,b,t),this.#f=b,this.#a=null}catch(O){this.#a=O}this.#a&&(x=this.#a,b=this.#f,w=Date.now(),A="error");const L=p.fetchStatus==="fetching",S=A==="pending",R=A==="error",I=S&&L,N=b!==void 0,k={status:A,fetchStatus:p.fetchStatus,isPending:S,isSuccess:A==="success",isError:R,isInitialLoading:I,isLoading:I,data:b,dataUpdatedAt:p.dataUpdatedAt,error:x,errorUpdatedAt:w,failureCount:p.fetchFailureCount,failureReason:p.fetchFailureReason,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>f.dataUpdateCount||p.errorUpdateCount>f.errorUpdateCount,isFetching:L,isRefetching:L&&!S,isLoadingError:R&&!N,isPaused:p.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:R&&N,isStale:jb(e,t),refetch:this.refetch,promise:this.#s,isEnabled:cr(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const O=H=>{k.status==="error"?H.reject(k.error):k.data!==void 0&&H.resolve(k.data)},U=()=>{const H=this.#s=k.promise=Hg();O(H)},F=this.#s;switch(F.status){case"pending":e.queryHash===n.queryHash&&O(F);break;case"fulfilled":(k.status==="error"||k.data!==F.value)&&U();break;case"rejected":(k.status!=="error"||k.error!==F.reason)&&U();break}}return k}updateResult(){const e=this.#i,t=this.createResult(this.#t,this.options);if(this.#r=this.#t.state,this.#o=this.options,this.#r.data!==void 0&&(this.#h=this.#t),kf(t,e))return;this.#i=t;const n=()=>{if(!e)return!0;const{notifyOnChangeProps:i}=this.options,o=typeof i=="function"?i():i;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(c=>{const u=c;return this.#i[u]!==e[u]&&s.has(u)})};this.#A({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()}#A(e){Zt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function NY(e,t){return cr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function $T(e,t){return NY(e,t)||e.state.data!==void 0&&Kg(e,t,t.refetchOnMount)}function Kg(e,t,n){if(cr(t.enabled,e)!==!1&&da(t.staleTime,e)!=="static"){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&jb(e,t)}return!1}function qT(e,t,n,i){return(e!==t||cr(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&jb(e,n)}function jb(e,t){return cr(t.enabled,e)!==!1&&e.isStaleByTime(da(t.staleTime,e))}function kY(e,t){return!kf(e.getCurrentResult(),t)}function ZT(e){return{onFetch:(t,n)=>{const i=t.options,o=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],c=t.state.data?.pageParams||[];let u={pages:[],pageParams:[]},f=0;const h=async()=>{let p=!1;const g=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(t.signal.aborted?p=!0:t.signal.addEventListener("abort",()=>{p=!0}),t.signal)})},b=bj(t.options,t.fetchOptions),x=async(w,A,C)=>{if(p)return Promise.reject();if(A==null&&w.pages.length)return Promise.resolve(w);const S=(()=>{const _={client:t.client,queryKey:t.queryKey,pageParam:A,direction:C?"backward":"forward",meta:t.options.meta};return g(_),_})(),R=await b(S),{maxPages:I}=t.options,N=C?SY:xY;return{pages:N(w.pages,R,I),pageParams:N(w.pageParams,A,I)}};if(o&&s.length){const w=o==="backward",A=w?LY:YT,C={pages:s,pageParams:c},L=A(i,C);u=await x(C,L,w)}else{const w=e??s.length;do{const A=f===0?c[0]??i.initialPageParam:YT(i,u);if(f>0&&A==null)break;u=await x(u,A),f++}while(f<w)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(h,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=h}}}function YT(e,{pages:t,pageParams:n}){const i=t.length-1;return t.length>0?e.getNextPageParam(t[i],t,n[i],n):void 0}function LY(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var DY=class extends Aj{#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||Tj(),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=Sj({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(new Error("No mutationFn found")),onFail:(s,c)=>{this.#r({type:"failed",failureCount:s,error:c})},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 i=this.state.status==="pending",o=!this.#i.canStart();try{if(i)t();else{this.#r({type:"pending",variables:e,isPaused:o}),await this.#n.config.onMutate?.(e,this,n);const c=await this.options.onMutate?.(e,n);c!==this.state.context&&this.#r({type:"pending",context:c,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 Tj(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Cj=class extends el{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 i=new DY({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(i),i}add(e){this.#e.add(e);const t=Pd(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=Pd(e);if(typeof t=="string"){const n=this.#t.get(t);if(n)if(n.length>1){const i=n.indexOf(e);i!==-1&&n.splice(i,1)}else n[0]===e&&this.#t.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Pd(e);if(typeof t=="string"){const i=this.#t.get(t)?.find(o=>o.state.status==="pending");return!i||i===e}else return!0}runNext(e){const t=Pd(e);return typeof t=="string"?this.#t.get(t)?.find(i=>i!==e&&i.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=>FT(t,n))}findAll(e={}){return this.getAll().filter(t=>FT(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(vn))))}};function Pd(e){return e.options.scope?.id}var OY=class extends el{#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&&mo(n.mutationKey)!==mo(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(t){this.#r(),this.#o(t)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#r(),this.#o()}mutate(t,n){return this.#i=n,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(t)}#r(){const t=this.#n?.state??Tj();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){Zt.batch(()=>{if(this.#i&&this.hasListeners()){const n=this.#t.variables,i=this.#t.context,o={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};t?.type==="success"?(this.#i.onSuccess?.(t.data,n,i,o),this.#i.onSettled?.(t.data,null,n,i,o)):t?.type==="error"&&(this.#i.onError?.(t.error,n,i,o),this.#i.onSettled?.(void 0,t.error,n,i,o))}this.listeners.forEach(n=>{n(this.#t)})})}},jY=class extends el{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const i=t.queryKey,o=t.queryHash??Lb(i,t);let s=this.get(o);return s||(s=new IY({client:e,queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),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=>VT(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>VT(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()})})}},zY=class{#e;#t;#n;#i;#r;#o;#s;#a;constructor(e={}){this.#e=e.queryCache||new jY,this.#t=e.mutationCache||new Cj,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=Ob.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=Lf.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#o--,this.#o===0&&(this.#s?.(),this.#s=void 0,this.#a?.(),this.#a=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#t.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=this.#e.build(this,t),i=n.state.data;return i===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(da(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(i))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:t,state:n})=>{const i=n.data;return[t,i]})}setQueryData(e,t,n){const i=this.defaultQueryOptions({queryKey:e}),s=this.#e.get(i.queryHash)?.state.data,c=vY(t,s);if(c!==void 0)return this.#e.build(this,i).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return Zt.batch(()=>this.#e.findAll(e).map(({queryKey:i})=>[i,this.setQueryData(i,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(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=Zt.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(i).then(vn).catch(vn)}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},i=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(vn)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(i).then(vn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(da(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(vn).catch(vn)}fetchInfiniteQuery(e){return e.behavior=ZT(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(vn).catch(vn)}ensureInfiniteQueryData(e){return e.behavior=ZT(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Lf.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(mo(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(i=>{Oc(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(mo(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(i=>{Oc(e,i.mutationKey)&&Object.assign(n,i.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=Lb(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===Db&&(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()}},Rj=E.createContext(void 0),zb=e=>{const t=E.useContext(Rj);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},MY=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(Rj.Provider,{value:e,children:t})),Ij=E.createContext(!1),PY=()=>E.useContext(Ij);Ij.Provider;function BY(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var UY=E.createContext(BY()),VY=()=>E.useContext(UY),FY=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},HY=e=>{E.useEffect(()=>{e.clearReset()},[e])},GY=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(o&&e.data===void 0||Ej(n,[e.error,i])),KY=e=>{if(e.suspense){const n=o=>o==="static"?o:Math.max(o??1e3,1e3),i=e.staleTime;e.staleTime=typeof i=="function"?(...o)=>n(i(...o)):n(i),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},$Y=(e,t)=>e.isLoading&&e.isFetching&&!t,qY=(e,t)=>e?.suspense&&t.isPending,WT=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function ZY(e,t,n){const i=PY(),o=VY(),s=zb(),c=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c._optimisticResults=i?"isRestoring":"optimistic",KY(c),FY(c,o),HY(o);const u=!s.getQueryCache().get(c.queryHash),[f]=E.useState(()=>new t(s,c)),h=f.getOptimisticResult(c),p=!i&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(g=>{const b=p?f.subscribe(Zt.batchCalls(g)):vn;return f.updateResult(),b},[f,p]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),E.useEffect(()=>{f.setOptions(c)},[c,f]),qY(c,h))throw WT(c,f,o);if(GY({result:h,errorResetBoundary:o,throwOnError:c.throwOnError,query:s.getQueryCache().get(c.queryHash),suspense:c.suspense}))throw h.error;return s.getDefaultOptions().queries?._experimental_afterQuery?.(c,h),c.experimental_prefetchInRender&&!po&&$Y(h,i)&&(u?WT(c,f,o):s.getQueryCache().get(c.queryHash)?.promise)?.catch(vn).finally(()=>{f.updateResult()}),c.notifyOnChangeProps?h:f.trackResult(h)}function lh(e,t){return ZY(e,_Y)}function wo(e,t){const n=zb(),[i]=E.useState(()=>new OY(n,e));E.useEffect(()=>{i.setOptions(e)},[i,e]);const o=E.useSyncExternalStore(E.useCallback(c=>i.subscribe(Zt.batchCalls(c)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=E.useCallback((c,u)=>{i.mutate(c,u).catch(vn)},[i]);if(o.error&&Ej(i.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const XT={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},YY=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),Bd=e=>e.reduce((t,n)=>{const i=t??{},o=YY(n??{});return typeof i=="object"&&typeof o=="object"?{...i,...o}:o??i},{}),Ce=async(e,...t)=>{const{signal:n}=new AbortController;let i="",o;const s=Bd([XT,...t.map(({body:b,params:x,headers:w,...A})=>A)]),c=Bd([XT.headers,...t.map(b=>b.headers)]),u=Bd(t.map(b=>b.params)),f=s.method;if(f!=="GET"&&f!=="HEAD"){const b=Bd(t.map(x=>x.body));c?.["Content-Type"]==="application/x-www-form-urlencoded"?o=new URLSearchParams(b).toString():o=JSON.stringify(b)}Object.entries(u).length>0&&(i=`?${new URLSearchParams(u).toString()}`);const h={...s,headers:c,body:o,signal:n},p=`${e}${i}`,g=await fetch(p,h);if(!g.ok){const b=await g.json();throw new Error(JSON.stringify(b.error)??"An error occurred")}return await g.json()},WY=(e={},t)=>{const n=t?.editor?.backendURL??Qe?.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const i=`${n}/api/ai`;return{customQuery:async(x,w={})=>await Ce(i,e,w,{method:"POST",body:x}),translateJSON:async(x,w={})=>await Ce(`${i}/translate/json`,e,w,{method:"POST",body:x}),auditContentDeclaration:async(x,w={})=>await Ce(`${i}/audit/dictionary`,e,w,{method:"POST",body:x}),auditContentDeclarationField:async(x,w={})=>await Ce(`${i}/audit/dictionary/field`,e,w,{method:"POST",body:x}),auditContentDeclarationMetadata:async(x,w={})=>await Ce(`${i}/audit/dictionary/metadata`,e,w,{method:"POST",body:x}),auditTag:async(x,w={})=>await Ce(`${i}/audit/tag`,e,w,{method:"POST",body:x}),askDocQuestion:async(x,w={})=>{if(!x)return;const{onMessage:A,onDone:C,...L}=x,S=new AbortController;try{const R=await fetch(`${i}/ask`,{method:"POST",headers:{"Content-Type":"application/json",...e.headers,...w.headers},body:JSON.stringify({...L,...e.body,...w.body}),signal:S.signal,credentials:"include"});if(!R.ok){let k="An error occurred";try{const O=await R.json();k=JSON.stringify(O.error)??"An error occurred"}catch{try{const O=await R.text();O&&(k=O)}catch{}}throw new Error(k)}const I=R.body?.getReader();if(!I)throw new Error("No reader available");const N=new TextDecoder;let _="";for(;;){const{done:k,value:O}=await I.read();if(k)break;_+=N.decode(O,{stream:!0});const U=_.split(`
288
+ `);_=U.pop()??"";for(const F of U)if(F.startsWith("data: "))try{const H=JSON.parse(F.slice(6));H.chunk&&A?.(H.chunk),H.done&&H.response&&C?.(H.response)}catch(H){console.error("Failed to parse SSE data:",H)}}}catch(R){throw console.error("Error in askDocQuestion:",R),R}},autocomplete:async(x,w={})=>await Ce(`${i}/autocomplete`,e,w,{method:"POST",body:x}),getDiscussions:async(x,w={})=>await Ce(`${i}/discussions`,e,w,{method:"GET",params:x})}},XY=(e={},t)=>{const n=t?.editor?.backendURL??Qe?.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const i=`${n}/api/dictionary`;return{getDictionaries:async(b,x={})=>await Ce(i,e,x,{cache:"no-store",params:b}),getDictionariesKeys:async(b={})=>await Ce(`${i}/keys`,e,b,{cache:"no-store"}),getDictionariesUpdateTimestamp:async(b={})=>await Ce(`${i}/update`,e,b,{cache:"no-store"}),getDictionary:async(b,x,w={})=>await Ce(`${i}/${b}`,e,w,{params:x?{version:x.toString()}:void 0}),pushDictionaries:async(b,x={})=>await Ce(`${i}`,e,x,{method:"PATCH",body:{dictionaries:b}}),addDictionary:async(b,x={})=>await Ce(`${i}`,e,x,{method:"POST",body:b}),updateDictionary:async(b,x={})=>await Ce(`${i}/${b.id}`,e,x,{method:"PUT",body:b}),deleteDictionary:async(b,x={})=>await Ce(`${i}/${b}`,e,x,{method:"DELETE"})}},QY=(e={},t)=>{const n=t?.editor?.editorURL??Qe?.editor?.editorURL;if(!n)throw new Error("Editor URL is not defined in the Intlayer configuration.");const i=`${n}/api`;return{getDictionaries:async(u={})=>(await Ce(`${i}/dictionary`,e,u)).data,getConfiguration:async(u={})=>(await Ce(`${i}/config`,e,u)).data,writeDictionary:async(u,f={})=>await Ce(`${i}/dictionary`,e,f,{method:"POST",body:u})}},_j=e=>{const t=e?.editor?.backendURL??Qe?.editor?.backendURL,{clientId:n,clientSecret:i}=e?.editor??{};if(!t)throw new Error("Backend URL is not defined in the Intlayer configuration.");return{getOAuth2AccessToken:async(s={})=>await Ce(`${t}/oauth2/token`,{},s,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:{grant_type:"client_credentials",client_id:n,client_secret:i}})}},JY=(e={},t)=>{const n=t?.editor?.backendURL??Qe?.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration--.");const i=`${n}/api/organization`;return{getOrganizations:async(w,A={})=>await Ce(i,e,A,{cache:"no-store",params:w}),getOrganization:async(w,A={})=>await Ce(`${i}/${String(w)}`,e,A),addOrganization:async(w,A={})=>await Ce(i,e,A,{method:"POST",body:w}),addOrganizationMember:async(w,A={})=>Ce(`${i}/member`,e,A,{method:"POST",body:w}),updateOrganization:async(w,A={})=>Ce(i,e,A,{method:"PUT",body:w}),updateOrganizationMembers:async(w,A={})=>Ce(`${i}/members`,e,A,{method:"PUT",body:w}),updateOrganizationMembersById:async(w,A,C={})=>Ce(`${i}/${w}/members`,e,C,{method:"PUT",body:A}),deleteOrganization:async(w={})=>await Ce(i,e,w,{method:"DELETE"}),selectOrganization:async(w,A={})=>await Ce(`${i}/${String(w)}`,e,A,{method:"PUT"}),unselectOrganization:async(w={})=>await Ce(`${i}/logout`,e,w,{method:"POST"})}},e7=(e={},t)=>{const n=t?.editor?.backendURL??Qe?.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const i=`${n}/api/project`;return{getProjects:async(A,C={})=>await Ce(i,e,C,{cache:"no-store",params:A}),addProject:async(A,C={})=>await Ce(`${i}`,e,C,{method:"POST",body:A}),updateProject:async(A,C={})=>await Ce(`${i}`,e,C,{method:"PUT",body:A}),updateProjectMembers:async(A,C={})=>await Ce(`${i}/members`,e,C,{method:"PUT",body:A}),pushProjectConfiguration:async(A,C={})=>await Ce(`${i}/configuration`,e,C,{method:"PUT",body:A}),deleteProject:async(A={})=>await Ce(`${i}`,e,A,{method:"DELETE"}),selectProject:async(A,C={})=>await Ce(`${i}/${String(A)}`,e,C,{method:"PUT"}),unselectProject:async(A={})=>await Ce(`${i}/logout`,e,A,{method:"POST"}),addNewAccessKey:async(A,C={})=>await Ce(`${i}/access_key`,e,C,{method:"POST",body:A}),deleteAccessKey:async(A,C={})=>await Ce(`${i}/access_key`,e,C,{method:"DELETE",body:{clientId:A}}),refreshAccessKey:async(A,C={})=>await Ce(`${i}/access_key`,e,C,{method:"PATCH",body:{clientId:A}})}},t7=(e={},t)=>{const n=t?.editor?.backendURL??Qe?.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const i=`${n}/api/stripe`;return{getPricing:async(u,f={})=>await Ce(`${i}/pricing`,e,f,{method:"POST",body:u}),getSubscription:async(u,f={})=>await Ce(`${i}/create-subscription`,e,f,{method:"POST",body:u}),cancelSubscription:async(u={})=>await Ce(`${i}/cancel-subscription`,e,u,{method:"POST"})}},n7=(e={},t)=>{const n=t?.editor?.backendURL??Qe?.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const i=`${n}/api/tag`;return{getTags:async(f,h={})=>await Ce(i,e,h,{cache:"no-store",params:f}),addTag:async(f,h={})=>await Ce(`${i}`,e,h,{method:"POST",body:f}),updateTag:async(f,h,p={})=>await Ce(`${i}/${f}`,e,p,{method:"PUT",body:h}),deleteTag:async(f,h={})=>await Ce(`${i}/${f}`,e,h,{method:"DELETE"})}},r7=(e={},t)=>{const n=t?.editor?.backendURL??Qe?.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const i=`${n}/api/user`;return{createUser:async(b,x={})=>await Ce(`${i}/`,e,x,{method:"POST",body:b}),getUsers:async(b,x={})=>await Ce(i,e,x,{cache:"no-store",params:b}),getUserById:async(b,x={})=>await Ce(`${i}/${b}`,e,x,{cache:"no-store"}),getUserByAccount:async(b,x,w={})=>await Ce(`${i}/account/${x}/${b}`,e,w,{cache:"no-store"}),getUserByEmail:async(b,x={})=>await Ce(`${i}/email/${b}`,e,x,{cache:"no-store"}),updateUser:async(b,x={})=>await Ce(`${i}`,e,x,{method:"PUT",body:b}),deleteUser:async(b,x={})=>await Ce(`${i}/${b}`,e,x,{method:"DELETE"}),getVerifyEmailStatusURL:b=>`${i}/verify-email-status/${String(b)}`}},i7=(e={},t)=>{const n=t?.editor?.backendURL??Qe?.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const i=`${n}/api/newsletter`;return{subscribeToNewsletter:async(u,f={})=>await Ce(`${i}/subscribe`,e,f,{method:"POST",body:u}),unsubscribeFromNewsletter:async(u,f={})=>await Ce(`${i}/unsubscribe`,e,f,{method:"POST",body:u}),getNewsletterStatus:async(u={})=>await Ce(`${i}/status`,e,u,{method:"GET"})}},a7=(e={},t)=>{const n=t?.editor?.backendURL??Qe?.editor?.backendURL;if(!n)throw new Error("Backend URL is not defined in the Intlayer configuration.");const i=`${n}/api/search`;return{searchDoc:async(s,c={})=>await Ce(`${i}/doc`,e,c,{method:"GET",params:s})}},o7=(e={},t)=>({organization:JY(e,t),project:e7(e,t),user:r7(e,t),oAuth:_j(t),dictionary:XY(e,t),stripe:t7(e,t),ai:WY(e,t),tag:n7(e,t),search:a7(e,t),editor:QY(e,t),newsletter:i7(e,t)}),s7=e=>{const t=Jr(),n=e??t??Qe,{data:i}=lh({queryKey:["oAuth2AccessToken"],queryFn:_j(n).getOAuth2AccessToken,enabled:!!(n.editor.clientId&&n.editor.clientSecret),staleTime:0,gcTime:0,refetchOnWindowFocus:!1,refetchOnMount:!1,refetchOnReconnect:!1,refetchInterval:!1,refetchIntervalInBackground:!1});return{oAuth2AccessToken:i?.data}};var l7=Object.defineProperty,c7=Object.defineProperties,u7=Object.getOwnPropertyDescriptors,QT=Object.getOwnPropertySymbols,d7=Object.prototype.hasOwnProperty,f7=Object.prototype.propertyIsEnumerable,JT=(e,t,n)=>t in e?l7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Sr=(e,t)=>{for(var n in t||(t={}))d7.call(t,n)&&JT(e,n,t[n]);if(QT)for(var n of QT(t))f7.call(t,n)&&JT(e,n,t[n]);return e},Vr=(e,t)=>c7(e,u7(t)),h7=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n}},p7=async(e,t)=>{var n,i,o,s,c,u;let f=t||{};const h={onRequest:[t?.onRequest],onResponse:[t?.onResponse],onSuccess:[t?.onSuccess],onError:[t?.onError],onRetry:[t?.onRetry]};if(!t||!t?.plugins)return{url:e,options:f,hooks:h};for(const p of t?.plugins||[]){if(p.init){const g=await((n=p.init)==null?void 0:n.call(p,e.toString(),t));f=g.options||f,e=g.url}h.onRequest.push((i=p.hooks)==null?void 0:i.onRequest),h.onResponse.push((o=p.hooks)==null?void 0:o.onResponse),h.onSuccess.push((s=p.hooks)==null?void 0:s.onSuccess),h.onError.push((c=p.hooks)==null?void 0:c.onError),h.onRetry.push((u=p.hooks)==null?void 0:u.onRetry)}return{url:e,options:f,hooks:h}},eC=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}},m7=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 y7(e){if(typeof e=="number")return new eC({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new eC(e);case"exponential":return new m7(e);default:throw new Error("Invalid retry strategy")}}var g7=async e=>{const t={},n=async i=>typeof i=="function"?await i():i;if(e?.auth){if(e.auth.type==="Bearer"){const i=await n(e.auth.token);if(!i)return t;t.authorization=`Bearer ${i}`}else if(e.auth.type==="Basic"){const i=n(e.auth.username),o=n(e.auth.password);if(!i||!o)return t;t.authorization=`Basic ${btoa(`${i}:${o}`)}`}else if(e.auth.type==="Custom"){const i=n(e.auth.value);if(!i)return t;t.authorization=`${n(e.auth.prefix)} ${i}`}}return t},v7=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function b7(e){const t=e.headers.get("content-type"),n=new Set(["image/svg","application/xml","application/xhtml","application/html"]);if(!t)return"json";const i=t.split(";").shift()||"";return v7.test(i)?"json":n.has(i)||i.startsWith("text/")?"text":"blob"}function E7(e){try{return JSON.parse(e),!0}catch{return!1}}function Nj(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 tC(e){try{return JSON.parse(e)}catch{return e}}function nC(e){return typeof e=="function"}function x7(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&nC(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&nC(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function S7(e){const t=new Headers(e?.headers),n=await g7(e);for(const[i,o]of Object.entries(n||{}))t.set(i,o);if(!t.has("content-type")){const i=A7(e?.body);i&&t.set("content-type",i)}return t}function A7(e){return Nj(e)?"application/json":null}function w7(e){if(!e?.body)return null;const t=new Headers(e?.headers);if(Nj(e.body)&&!t.has("content-type")){for(const[n,i]of Object.entries(e?.body))i instanceof Date&&(e.body[n]=i.toISOString());return JSON.stringify(e.body)}return e.body}function T7(e,t){var n;if(t?.method)return t.method.toUpperCase();if(e.startsWith("@")){const i=(n=e.split("@")[1])==null?void 0:n.split("/")[0];return Lj.includes(i)?i.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function C7(e,t){let n;return!e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var R7=class kj extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,kj.prototype)}};async function uf(e,t){let n=await e["~standard"].validate(t);if(n.issues)throw new R7(n.issues);return n.value}var Lj=["get","post","put","patch","delete"],I7=e=>({id:"apply-schema",name:"Apply Schema",version:"1.0.0",async init(t,n){var i,o,s,c;const u=((o=(i=e.plugins)==null?void 0:i.find(f=>{var h;return(h=f.schema)!=null&&h.config?t.startsWith(f.schema.config.baseURL||"")||t.startsWith(f.schema.config.prefix||""):!1}))==null?void 0:o.schema)||e.schema;if(u){let f=t;(s=u.config)!=null&&s.prefix&&f.startsWith(u.config.prefix)&&(f=f.replace(u.config.prefix,""),u.config.baseURL&&(t=t.replace(u.config.prefix,u.config.baseURL))),(c=u.config)!=null&&c.baseURL&&f.startsWith(u.config.baseURL)&&(f=f.replace(u.config.baseURL,""));const h=u.schema[f];if(h){let p=Vr(Sr({},n),{method:h.method,output:h.output});return n?.disableValidation||(p=Vr(Sr({},p),{body:h.input?await uf(h.input,n?.body):n?.body,params:h.params?await uf(h.params,n?.params):n?.params,query:h.query?await uf(h.query,n?.query):n?.query})),{url:t,options:p}}}return{url:t,options:n}}}),_7=e=>{async function t(n,i){const o=Vr(Sr(Sr({},e),i),{plugins:[...e?.plugins||[],I7(e||{})]});if(e?.catchAllError)try{return await $g(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 $g(n,o)}return t};function N7(e,t){let{baseURL:n,params:i,query:o}=t||{query:{},params:{},baseURL:""},s=e.startsWith("http")?e.split("/").slice(0,3).join("/"):n||"";if(e.startsWith("@")){const g=e.toString().split("@")[1].split("/")[0];Lj.includes(g)&&(e=e.replace(`@${g}/`,"/"))}s.endsWith("/")||(s+="/");let[c,u]=e.replace(s,"").split("?");const f=new URLSearchParams(u);for(const[g,b]of Object.entries(o||{}))b!=null&&f.set(g,String(b));if(i)if(Array.isArray(i)){const g=c.split("/").filter(b=>b.startsWith(":"));for(const[b,x]of g.entries()){const w=i[b];c=c.replace(x,w)}}else for(const[g,b]of Object.entries(i))c=c.replace(`:${g}`,String(b));c=c.split("/").map(encodeURIComponent).join("/"),c.startsWith("/")&&(c=c.slice(1));let h=f.toString();return h=h.length>0?`?${h}`.replace(/\+/g,"%20"):"",s.startsWith("http")?new URL(`${c}${h}`,s):`${s}${c}${h}`}var $g=async(e,t)=>{var n,i,o,s,c,u,f,h;const{hooks:p,url:g,options:b}=await p7(e,t),x=x7(b),w=new AbortController,A=(n=b.signal)!=null?n:w.signal,C=N7(g,b),L=w7(b),S=await S7(b),R=T7(g,b);let I=Vr(Sr({},b),{url:C,headers:S,body:L,method:R,signal:A});for(const ce of p.onRequest)if(ce){const X=await ce(I);X instanceof Object&&(I=X)}("pipeTo"in I&&typeof I.pipeTo=="function"||typeof((i=t?.body)==null?void 0:i.pipe)=="function")&&("duplex"in I||(I.duplex="half"));const{clearTimeout:N}=C7(b,w);let _=await x(I.url,I);N();const k={response:_,request:I};for(const ce of p.onResponse)if(ce){const X=await ce(Vr(Sr({},k),{response:(o=t?.hookOptions)!=null&&o.cloneResponse?_.clone():_}));X instanceof Response?_=X:X instanceof Object&&(_=X.response)}if(_.ok){if(!(I.method!=="HEAD"))return{data:"",error:null};const X=b7(_),oe={data:"",response:_,request:I};if(X==="json"||X==="text"){const M=await _.text(),$=await((s=I.jsonParser)!=null?s:tC)(M);oe.data=$}else oe.data=await _[X]();I?.output&&I.output&&!I.disableValidation&&(oe.data=await uf(I.output,oe.data));for(const M of p.onSuccess)M&&await M(Vr(Sr({},oe),{response:(c=t?.hookOptions)!=null&&c.cloneResponse?_.clone():_}));return t?.throw?oe.data:{data:oe.data,error:null}}const O=(u=t?.jsonParser)!=null?u:tC,U=await _.text(),F=E7(U),H=F?await O(U):null,te={response:_,responseText:U,request:I,error:Vr(Sr({},H),{status:_.status,statusText:_.statusText})};for(const ce of p.onError)ce&&await ce(Vr(Sr({},te),{response:(f=t?.hookOptions)!=null&&f.cloneResponse?_.clone():_}));if(t?.retry){const ce=y7(t.retry),X=(h=t.retryAttempt)!=null?h:0;if(await ce.shouldAttemptRetry(X,_)){for(const M of p.onRetry)M&&await M(k);const oe=ce.getDelay(X);return await new Promise(M=>setTimeout(M,oe)),await $g(e,Vr(Sr({},t),{retryAttempt:X+1}))}}if(t?.throw)throw new h7(_.status,_.statusText,F?H:U);return{data:null,error:Vr(Sr({},H),{status:_.status,statusText:_.statusText})}},k7={},rC={};const df=Object.create(null),ac=e=>k7||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?df:globalThis),ur=new Proxy(df,{get(e,t){return ac()[t]??df[t]},has(e,t){const n=ac();return t in n||t in df},set(e,t,n){const i=ac(!0);return i[t]=n,!0},deleteProperty(e,t){if(!t)return!1;const n=ac(!0);return delete n[t],!0},ownKeys(){const e=ac(!0);return Object.keys(e)}});function Ut(e,t){return typeof process<"u"&&rC?rC[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}const oc=1,Jt=4,Hr=8,Gn=24,iC={eterm:Jt,cons25:Jt,console:Jt,cygwin:Jt,dtterm:Jt,gnome:Jt,hurd:Jt,jfbterm:Jt,konsole:Jt,kterm:Jt,mlterm:Jt,mosh:Gn,putty:Jt,st:Jt,"rxvt-unicode-24bit":Gn,terminator:Gn,"xterm-kitty":Gn},L7=new Map(Object.entries({APPVEYOR:Hr,BUILDKITE:Hr,CIRCLECI:Gn,DRONE:Hr,GITEA_ACTIONS:Gn,GITHUB_ACTIONS:Gn,GITLAB_CI:Hr,TRAVIS:Hr})),D7=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function O7(){if(Ut("FORCE_COLOR")!==void 0)switch(Ut("FORCE_COLOR")){case"":case"1":case"true":return Jt;case"2":return Hr;case"3":return Gn;default:return oc}if(Ut("NODE_DISABLE_COLORS")!==void 0&&Ut("NODE_DISABLE_COLORS")!==""||Ut("NO_COLOR")!==void 0&&Ut("NO_COLOR")!==""||Ut("TERM")==="dumb")return oc;if(Ut("TMUX"))return Gn;if("TF_BUILD"in ur&&"AGENT_NAME"in ur)return Jt;if("CI"in ur){for(const{0:e,1:t}of L7)if(e in ur)return t;return Ut("CI_NAME")==="codeship"?Hr:oc}if("TEAMCITY_VERSION"in ur)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Ut("TEAMCITY_VERSION"))!==null?Jt:oc;switch(Ut("TERM_PROGRAM")){case"iTerm.app":return!Ut("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Ut("TERM_PROGRAM_VERSION"))!==null?Hr:Gn;case"HyperTerm":case"MacTerm":return Gn;case"Apple_Terminal":return Hr}if(Ut("COLORTERM")==="truecolor"||Ut("COLORTERM")==="24bit")return Gn;if(Ut("TERM")){if(/truecolor/.exec(Ut("TERM"))!==null)return Gn;if(/^xterm-256/.exec(Ut("TERM"))!==null)return Hr;const e=Ut("TERM").toLowerCase();if(iC[e])return iC[e];if(D7.some(t=>t.exec(e)!==null))return Jt}return Ut("COLORTERM")?Jt:oc}const Gr={reset:"\x1B[0m",bright:"\x1B[1m",dim:"\x1B[2m",fg:{red:"\x1B[31m",green:"\x1B[32m",yellow:"\x1B[33m",blue:"\x1B[34m",magenta:"\x1B[35m"}},qg=["info","success","warn","error","debug"];function j7(e,t){return qg.indexOf(t)<=qg.indexOf(e)}const z7={info:Gr.fg.blue,success:Gr.fg.green,warn:Gr.fg.yellow,error:Gr.fg.red,debug:Gr.fg.magenta},M7=(e,t,n)=>{const i=new Date().toISOString();return n?`${Gr.dim}${i}${Gr.reset} ${z7[e]}${e.toUpperCase()}${Gr.reset} ${Gr.bright}[Better Auth]:${Gr.reset} ${t}`:`${i} ${e.toUpperCase()} [Better Auth]: ${t}`},P7=e=>{const t="error",n=O7()!==1,i=(s,c,u=[])=>{if(!j7(t,s))return;const f=M7(s,c,n);{s==="error"?console.error(f,...u):s==="warn"?console.warn(f,...u):console.log(f,...u);return}};return{...Object.fromEntries(qg.map(s=>[s,(...[c,...u])=>i(s,c,u)])),get level(){return t}}};P7();class B7 extends Error{constructor(t,n){super(t),this.name="BetterAuthError",this.message=t,this.cause=n,this.stack=""}}function U7(e){try{return(new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new B7(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function Py(e,t="/api/auth"){if(U7(e))return e;const i=e.replace(/\/+$/,"");return!t||t==="/"?i:(t=t.startsWith("/")?t:`/${t}`,`${i}${t}`)}function V7(e,t,n,i){if(e)return Py(e,t);{const o=ur.BETTER_AUTH_URL||ur.NEXT_PUBLIC_BETTER_AUTH_URL||ur.PUBLIC_BETTER_AUTH_URL||ur.NUXT_PUBLIC_BETTER_AUTH_URL||ur.NUXT_PUBLIC_AUTH_URL||(ur.BASE_URL!=="/"?ur.BASE_URL:void 0);if(o)return Py(o,t)}if(typeof window<"u"&&window.location)return Py(window.location.origin,t)}let vr=[],sa=0;const Ud=4;let Dj=e=>{let t=[],n={get(){return n.lc||n.listen(()=>{})(),n.value},lc:0,listen(i){return n.lc=t.push(i),()=>{for(let s=sa+Ud;s<vr.length;)vr[s]===i?vr.splice(s,Ud):s+=Ud;let o=t.indexOf(i);~o&&(t.splice(o,1),--n.lc||n.off())}},notify(i,o){let s=!vr.length;for(let c of t)vr.push(c,n.value,i,o);if(s){for(sa=0;sa<vr.length;sa+=Ud)vr[sa](vr[sa+1],vr[sa+2],vr[sa+3]);vr.length=0}},off(){},set(i){let o=n.value;o!==i&&(n.value=i,n.notify(o))},subscribe(i){let o=n.listen(i);return i(n.value),o},value:e};return n};const F7=5,Vd=6,Fd=10;let H7=(e,t,n,i)=>(e.events=e.events||{},e.events[n+Fd]||(e.events[n+Fd]=i(o=>{e.events[n].reduceRight((s,c)=>(c(s),s),{shared:{},...o})})),e.events[n]=e.events[n]||[],e.events[n].push(t),()=>{let o=e.events[n],s=o.indexOf(t);o.splice(s,1),o.length||(delete e.events[n],e.events[n+Fd](),delete e.events[n+Fd])}),G7=1e3,K7=(e,t)=>H7(e,i=>{let o=t(i);o&&e.events[Vd].push(o)},F7,i=>{let o=e.listen;e.listen=(...c)=>(!e.lc&&!e.active&&(e.active=!0,i()),o(...c));let s=e.off;return e.events[Vd]=[],e.off=()=>{s(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let c of e.events[Vd])c();e.events[Vd]=[]}},G7)},()=>{e.listen=o,e.off=s}});const $7=typeof window>"u",q7=(e,t,n,i)=>{const o=Dj({data:null,error:null,isPending:!0,isRefetching:!1,refetch:u=>s(u)}),s=u=>{const f=typeof i=="function"?i({data:o.get().data,error:o.get().error,isPending:o.get().isPending}):i;n(t,{...f,query:{...f?.query,...u?.query},async onSuccess(h){o.set({data:h.data,error:null,isPending:!1,isRefetching:!1,refetch:o.value.refetch}),await f?.onSuccess?.(h)},async onError(h){const{request:p}=h,g=typeof p.retry=="number"?p.retry:p.retry?.attempts,b=p.retryAttempt||0;g&&b<g||(o.set({error:h.error,data:null,isPending:!1,isRefetching:!1,refetch:o.value.refetch}),await f?.onError?.(h))},async onRequest(h){const p=o.get();o.set({isPending:p.data===null,data:p.data,error:null,isRefetching:!0,refetch:o.value.refetch}),await f?.onRequest?.(h)}}).catch(h=>{o.set({error:h,data:null,isPending:!1,isRefetching:!1,refetch:o.value.refetch})})};e=Array.isArray(e)?e:[e];let c=!1;for(const u of e)u.subscribe(()=>{$7||(c?s():K7(o,()=>{const f=setTimeout(()=>{c||(s(),c=!0)},0);return()=>{o.off(),u.off(),clearTimeout(f)}}))});return o},Z7={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*:/},Y7=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,aC={true:!0,false:!1,null:null,undefined:void 0,nan:Number.NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},W7=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function X7(e){return e instanceof Date&&!isNaN(e.getTime())}function Q7(e){const t=W7.exec(e);if(!t)return null;const[,n,i,o,s,c,u,f,h,p,g]=t;let b=new Date(Date.UTC(parseInt(n,10),parseInt(i,10)-1,parseInt(o,10),parseInt(s,10),parseInt(c,10),parseInt(u,10),f?parseInt(f.padEnd(3,"0"),10):0));if(h){const x=(parseInt(p,10)*60+parseInt(g,10))*(h==="+"?-1:1);b.setUTCMinutes(b.getUTCMinutes()+x)}return X7(b)?b:null}function J7(e,t={}){const{strict:n=!1,warnings:i=!1,reviver:o,parseDates:s=!0}=t;if(typeof e!="string")return e;const c=e.trim();if(c.length>0&&c[0]==='"'&&c.endsWith('"')&&!c.slice(1,-1).includes('"'))return c.slice(1,-1);const u=c.toLowerCase();if(u.length<=9&&u in aC)return aC[u];if(!Y7.test(c)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(Z7).some(([h,p])=>{const g=p.test(c);return g&&i&&console.warn(`[better-json] Detected potential prototype pollution attempt using ${h} pattern`),g})&&n)throw new Error("[better-json] Potential prototype pollution attempt detected");try{return JSON.parse(c,(p,g)=>{if(p==="__proto__"||p==="constructor"&&g&&typeof g=="object"&&"prototype"in g){i&&console.warn(`[better-json] Dropping "${p}" key to prevent prototype pollution`);return}if(s&&typeof g=="string"){const b=Q7(g);if(b)return b}return o?o(p,g):g})}catch(h){if(n)throw h;return e}}function eW(e,t={strict:!0}){return J7(e,t)}const tW={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 nW(e){const t=Dj(!1);return{session:q7(t,"/get-session",e,{method:"GET"}),$sessionSignal:t}}const rW=(e,t)=>{const n="credentials"in Request.prototype,i=V7(e?.baseURL,e?.basePath)??"/api/auth",o=e?.plugins?.flatMap(I=>I.fetchPlugins).filter(I=>I!==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:c,onError:u,onRequest:f,onResponse:h,...p}=e?.fetchOptions||{},g=_7({baseURL:i,...n?{credentials:"include"}:{},method:"GET",jsonParser(I){return I?eW(I,{strict:!1}):null},customFetchImpl:fetch,...p,plugins:[s,...p.plugins||[],...e?.disableDefaultFetchPlugins?[]:[tW],...o]}),{$sessionSignal:b,session:x}=nW(g),w=e?.plugins||[];let A={},C={$sessionSignal:b,session:x},L={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"};const S=[{signal:"$sessionSignal",matcher(I){return I==="/sign-out"||I==="/update-user"||I.startsWith("/sign-in")||I.startsWith("/sign-up")||I==="/delete-user"||I==="/verify-email"}}];for(const I of w)I.getAtoms&&Object.assign(C,I.getAtoms?.(g)),I.pathMethods&&Object.assign(L,I.pathMethods),I.atomListeners&&S.push(...I.atomListeners);const R={notify:I=>{C[I].set(!C[I].get())},listen:(I,N)=>{C[I].subscribe(N)},atoms:C};for(const I of w)I.getActions&&Object.assign(A,I.getActions?.(g,R,e));return{get baseURL(){return i},pluginsActions:A,pluginsAtoms:C,pluginPathMethods:L,atomListeners:S,$fetch:g,$store:R}};function iW(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function aW(e,t,n){const i=t[e],{fetchOptions:o,query:s,...c}=n||{};return i||(o?.method?o.method:c&&Object.keys(c).length>0?"POST":"GET")}function oW(e,t,n,i,o){function s(c=[]){return new Proxy(function(){},{get(u,f){if(typeof f!="string"||f==="then"||f==="catch"||f==="finally")return;const h=[...c,f];let p=e;for(const g of h)if(p&&typeof p=="object"&&g in p)p=p[g];else{p=void 0;break}return typeof p=="function"||iW(p)?p:s(h)},apply:async(u,f,h)=>{const p="/"+c.map(S=>S.replace(/[A-Z]/g,R=>`-${R.toLowerCase()}`)).join("/"),g=h[0]||{},b=h[1]||{},{query:x,fetchOptions:w,...A}=g,C={...b,...w},L=aW(p,n,g);return await t(p,{...C,body:L==="GET"?void 0:{...A,...C?.body||{}},query:x||C?.query,method:L,async onSuccess(S){if(await C?.onSuccess?.(S),!o)return;const R=o.filter(I=>I.matcher(p));if(R.length)for(const I of R){const N=i[I.signal];if(!N)return;const _=N.get();setTimeout(()=>{N.set(!_)},10)}}})}})}return s()}function sW(e){return e.charAt(0).toUpperCase()+e.slice(1)}function lW(e){const{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:i,$fetch:o,atomListeners:s,$store:c}=rW(e);let u={};for(const[p,g]of Object.entries(i))u[`use${sW(p)}`]=g;const f={...n,...u,$fetch:o,$store:c};return oW(f,o,t,i,s)}const Oj=e=>{const t=e?.editor?.backendURL??Qe?.editor?.backendURL;if(!t)throw new Error("Backend URL is not defined in the Intlayer configuration.");const n=()=>lW({baseURL:t,withCredentials:!0});return{getAuthClient:n,signInEmail:async(...H)=>n().signIn.email(...H),signUpEmail:async(...H)=>n().signUp.email(...H),signOut:async(...H)=>n().signOut(...H),signInSocial:async(...H)=>n().signIn.social(...H),linkSocial:async(...H)=>n().linkSocial(...H),changePasswordSession:async(...H)=>n().changePassword(...H),requestPasswordResetSession:async(...H)=>n().requestPasswordReset(...H),resetPassword:async(...H)=>n().resetPassword(...H),verifyEmailSession:async(...H)=>n().verifyEmail(...H),getSession:async(...H)=>n().getSession(...H),forgetPassword:async(...H)=>n().forgetPassword(...H),sendVerificationEmail:async(...H)=>n().sendVerificationEmail(...H),changeEmail:async(...H)=>n().changeEmail(...H),deleteUser:async(...H)=>n().deleteUser(...H),revokeSession:async(...H)=>n().revokeSession(...H),revokeSessions:async(...H)=>n().revokeSessions(...H),revokeOtherSessions:async(...H)=>n().revokeOtherSessions(...H),listAccounts:async(...H)=>n().listAccounts(...H),unlinkAccount:async(...H)=>n().unlinkAccount(...H),refreshToken:async(...H)=>n().refreshToken(...H),getAccessToken:async(...H)=>n().getAccessToken(...H),accountInfo:async(...H)=>n().accountInfo(...H),updateUser:async(...H)=>n().updateUser(...H),listSessions:async(...H)=>n().listSessions(...H)}},jj=(e,t)=>{const n=Jr(),i=t??n??Qe,o=zb(),{data:s,isFetched:c,refetch:u}=lh({queryKey:["session"],queryFn:async()=>(await Oj(i).getSession()).data,staleTime:0,gcTime:300*1e3,refetchOnMount:"always",refetchOnWindowFocus:!1,refetchOnReconnect:!1,enabled:!e}),f=s??(c?null:void 0),h=g=>o.setQueryData(["session"],g),p=async()=>(await u()).data;return{session:f,fetchSession:p,revalidateSession:p,setSession:h}},ch=({session:e,intlayerConfiguration:t}={})=>{const{session:n,fetchSession:i,revalidateSession:o,setSession:s}=jj(e,t),{oAuth2AccessToken:c}=s7(t);return{session:n,fetchSession:i,setSession:s,revalidateSession:o,oAuth2AccessToken:c,isAuthenticated:!!(n?.user||c)}},ji=e=>{const t=Jr(),{oAuth2AccessToken:n}=ch();return o7({...n&&{headers:{Authorization:`Bearer ${n.accessToken}`}}},t)},cW=e=>{const t=Jr();return Oj(t)},uW=({requireUser:e,requireProject:t,requireOrganization:n})=>{const{oAuth2AccessToken:i,session:o}=ch({intlayerConfiguration:Jr()}),s=o?o.user:i?.user,c=o?o.organization:i?.organization,u=o?o.project:i?.project;return{enable:(e?!!s:!0)&&(t?!!u:!0)&&(n?!!c:!0)}},zj=e=>{const{requireUser:t,requireProject:n,requireOrganization:i,...o}=e,{enable:s}=uW({requireUser:t,requireProject:n,requireOrganization:i});return lh({enabled:o?.enabled===!1?!1:s,...o})},dW=()=>{const e=cW();return wo({mutationKey:["logout"],mutationFn:()=>e.signOut(),meta:{resetQueries:[["session"],["users"],["organizations"],["projects"],["dictionaries"],["tags"]]}})},fW=(e,t)=>{const n=ji();return zj({queryKey:["projects",e],queryFn:({signal:i})=>n.project.getProjects(e,{signal:i}),requireUser:!0,requireOrganization:!0,...t})},hW=()=>{const e=ji();return wo({mutationKey:["dictionaries"],mutationFn:t=>e.dictionary.pushDictionaries(t),meta:{invalidateQueries:[["dictionaries"],["dictionariesKeys"]]}})},pW=()=>{const e=ji();return wo({mutationKey:["dictionaries"],mutationFn:t=>e.dictionary.deleteDictionary(t),meta:{invalidateQueries:[["dictionaries"],["dictionariesKeys"]]}})},mW=(e,t)=>{const n=ji();return zj({queryKey:["tags",e],queryFn:({signal:i})=>n.tag.getTags(e,{signal:i}),requireUser:!0,requireOrganization:!0,requireProject:!0,...t})},yW=()=>{const e=ji();return wo({mutationKey:["ai-auditContentDeclarationMetadata"],mutationFn:t=>e.ai.auditContentDeclarationMetadata(t)})},gW=()=>{const e=ji();return wo({mutationKey:["ai-auditContentDeclarationField"],mutationFn:t=>e.ai.auditContentDeclarationField(t)})},vW=()=>{const e=ji();return wo({mutationKey:["ai-autocomplete"],mutationFn:t=>e.ai.autocomplete(t)})},Mj=()=>{const e=ji();return lh({queryKey:["editor","dictionaries"],queryFn:()=>e.editor.getDictionaries()})},bW=()=>{const e=ji();return wo({mutationKey:["editor","dictionaries"],mutationFn:t=>e.editor.writeDictionary(t)})},EW=(e,t)=>{const[n,i]=E.useState(e);return E.useEffect(()=>{const o=setTimeout(()=>{i(e)},t);return()=>clearTimeout(o)},[e,t]),n},xW=({isActive:e=!0,suggestion:t,...n})=>{const i=String(n.value??n.defaultValue??""),{mutate:o}=vW(),s=Jr(),[c,u]=E.useState(!1),[f,h]=E.useState(i),[p,g]=E.useState(""),b=E.useRef(null),x=E.useRef(null),w=E.useRef(null),[A,C]=E.useState(null),[L,S]=E.useState(-1),R=EW(f,200);E.useEffect(()=>{typeof n.value>"u"||h(i)},[n.value,n.defaultValue]),E.useEffect(()=>{if(!e||!c)return;const N=async()=>{try{const _=b.current?.selectionStart??R.length,k=R.slice(0,_),O=R.slice(_),U=5,F=k.split(`
289
+ `);o({text:k,contextBefore:F.slice(Math.max(0,F.length-U-1),-1).join(`
290
+ `),currentLine:F[F.length-1]??"",contextAfter:O.split(`
291
+ `).slice(1,U+1).join(`
292
+ `),aiOptions:{apiKey:s.ai?.apiKey,model:s.ai?.model,temperature:s.ai?.temperature}},{onSuccess:H=>{g(H.data?.autocompletion??""),S(_)}})}catch(_){console.error("Autocomplete error:",_)}};R.length>3?(g(""),N()):g("")},[R,e,o,s]),E.useEffect(()=>{if(!p||L===-1||!x.current||!w.current){C(null);return}const N=x.current.getBoundingClientRect(),_=w.current.getBoundingClientRect();C({left:N.left-_.left,top:N.top-_.top})},[p,L,f]);const I=()=>{const N=b.current?.selectionStart??L;N===L&&(h(f.slice(0,N)+p+f.slice(N)),g(""),S(-1),setTimeout(()=>{b.current?.focus();const _=N+p.length;b.current?.setSelectionRange(_,_)},0))};return y.jsxs("div",{className:"relative w-full",children:[y.jsxs("div",{ref:w,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&&L!==-1?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"align-text-top text-transparent",children:f.slice(0,L)}),y.jsx("span",{ref:x,style:{visibility:"hidden"},"aria-hidden":"true",children:p}),y.jsx("span",{className:"align-text-top text-transparent",children:f.slice(L)})]}):y.jsx("span",{className:"align-text-top text-transparent",children:f}),t&&y.jsx("span",{className:"align-text-top text-neutral",children:t})]}),p&&A&&y.jsx("div",{className:"pointer-events-none whitespace-pre-wrap break-words text-base text-neutral leading-[1.45rem] md:text-sm md:leading-[1.23rem]",style:{position:"absolute",left:A.left,top:A.top},children:p}),y.jsx(kb,{...n,ref:b,value:f,onChange:N=>{u(!0),h(N.target.value),g(""),n.onChange?.(N)},onKeyDown:N=>{N.key==="Tab"&&p&&(N.preventDefault(),I()),n.onKeyDown?.(N)},onSelect:N=>{p&&N.target.selectionStart!==L&&(g(""),S(-1)),n.onSelect?.(N)}})]})},Pj=({onSave:e,onCancel:t,ref:n,...i})=>{const o=E.useRef(null);E.useImperativeHandle(n,()=>o.current);const s=()=>{e?.(o.current?.value??"")},c=()=>{o.current&&(o.current.value=o.current.defaultValue??""),t?.()};return y.jsx(tj,{value:i.value??o.current?.value??i.defaultValue??"",onCancel:c,onSave:s,onClick:u=>{u.preventDefault(),u.stopPropagation()},children:y.jsx(kb,{className:"leading-6",ref:o,onClick:u=>{u.preventDefault(),u.stopPropagation()},...i})})},Bj=E.createContext(null),uh=()=>{const e=E.useContext(Bj);if(!e)throw new Error("useMultiSelect must be used within MultiSelectProvider");return e},SW=({values:e,defaultValues:t,onValueChange:n,loop:i=!1,className:o,children:s,dir:c,...u})=>{const[f,h]=E.useState(t??[]),[p,g]=E.useState(""),[b,x]=E.useState(!1),[w,A]=E.useState(-1),C=E.useRef(null),[L,S]=E.useState(!1),[R,I]=E.useState("");E.useEffect(()=>{e&&h(e)},[e]);const N=E.useCallback(O=>{if(f.includes(O)){const U=f.filter(F=>F!==O);h(U),n?.(U)}else{const U=[...f,O];h(U),n?.(U)}},[f]),_=E.useCallback(O=>{O.preventDefault();const U=O.currentTarget,F=U.value.substring(U.selectionStart??0,U.selectionEnd??0);I(F),S(F===p)},[p]),k=E.useCallback(O=>{O.stopPropagation();const U=C.current;if(!U)return;const F=()=>{const ce=w+1;A(ce>f.length-1?i?0:-1:ce)},H=()=>{const ce=w-1;A(ce<0?f.length-1:ce)},te=()=>{A(w-1<=0?f.length-1===0?-1:0:w-1)};switch(O.key){case"ArrowLeft":c==="rtl"?f.length>0&&(w!==-1||i)&&F():f.length>0&&U.selectionStart===0&&H();break;case"ArrowRight":c==="rtl"?f.length>0&&U.selectionStart===0&&H():f.length>0&&(w!==-1||i)&&F();break;case"Backspace":case"Delete":f.length>0&&(w!==-1&&w<f.length?(N(f[w]),te()):(U.selectionStart===0&&R===p||L)&&N(f[f.length-1]));break;case"Enter":x(!0);break;case"Escape":w!==-1?A(-1):b&&x(!1);break}},[f,p,w,i]);return y.jsx(Bj,{value:E.useMemo(()=>({value:f,onValueChange:N,open:b,setOpen:x,inputValue:p,setInputValue:g,activeIndex:w,setActiveIndex:A,ref:C,handleSelect:_}),[f,N,b,x,p,g,w,A,C,_]),children:y.jsx(hD,{onKeyDown:k,className:fe("flex w-full flex-col gap-2 overflow-visible bg-transparent",o),dir:c,...u,children:s})})},AW=({className:e,getBadgeValue:t=s=>s,validationStyleEnabled:n=!1,children:i,...o})=>{const{value:s,onValueChange:c,activeIndex:u}=uh(),f=E.useCallback(h=>{h.preventDefault(),h.stopPropagation()},[]);return y.jsxs("div",{className:fe("flex w-full flex-col gap-3 rounded-lg p-1 py-2","flex w-full items-center justify-between whitespace-nowrap border border-input px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1","w-full select-text resize-none rounded-xl border-2 bg-input-background px-2 py-1 text-input-text 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((h,p)=>y.jsxs(pK,{className:fe("flex items-center gap-1 rounded-xl px-1",u===p&&"ring-2 ring-muted-foreground"),color:Vn.TEXT,children:[y.jsx("span",{className:"text-xs",children:t(h)}),y.jsxs("button",{"aria-label":`Remove ${h} option`,"aria-roledescription":"button to remove option",onMouseDown:f,onClick:()=>c(h),children:[y.jsxs("span",{className:"sr-only",children:["Remove ",h," option"]}),y.jsx(Ao,{className:"size-4 cursor-pointer"})]})]},h))}),i]})},wW=({className:e,...t})=>{const{setOpen:n,inputValue:i,setInputValue:o,activeIndex:s,setActiveIndex:c,handleSelect:u,ref:f}=uh();return y.jsx(Sf.Input,{...t,tabIndex:0,ref:f,value:i,onValueChange:s===-1?o:void 0,onSelect:u,onBlur:()=>n(!1),onFocus:()=>n(!0),onClick:()=>c(-1),className:fe("ml-2 flex-1 cursor-pointer outline-hidden",e,s!==-1&&"caret-transparent")})},TW=({children:e})=>{const{open:t}=uh();return y.jsx("div",{className:"relative",children:t&&e})},CW=({className:e,children:t})=>y.jsxs(Sf.List,{className:fe("absolute top-0 z-10 flex w-full flex-col gap-2 rounded-lg border border-muted bg-input-background p-2 shadow-md transition-colors",e),children:[t,y.jsx(Sf.Empty,{children:y.jsx("span",{className:"text-muted-foreground",children:"No results found"})})]}),RW=({className:e,value:t,children:n,...i})=>{const{value:o,onValueChange:s,setInputValue:c}=uh(),u=E.useCallback(h=>{h.preventDefault(),h.stopPropagation()},[]),f=o.includes(t);return y.jsxs(Sf.Item,{...i,onSelect:()=>{s(t),c("")},className:fe("flex cursor-pointer justify-between rounded-lg px-2 py-1 transition-colors","hover:bg-neutral/10",e,f&&"opacity-50",i.disabled&&"cursor-not-allowed opacity-50"),onMouseDown:u,children:[n,f&&y.jsx(Ys,{className:"size-4"})]})},pn=SW;pn.Trigger=AW;pn.Input=wW;pn.Content=TW;pn.List=CW;pn.Item=RW;function oC(e,[t,n]){return Math.min(n,Math.max(t,e))}function Uj(e){const t=e+"CollectionProvider",[n,i]=$c(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=A=>{const{scope:C,children:L}=A,S=Ne.useRef(null),R=Ne.useRef(new Map).current;return y.jsx(o,{scope:C,itemMap:R,collectionRef:S,children:L})};c.displayName=t;const u=e+"CollectionSlot",f=Ps(u),h=Ne.forwardRef((A,C)=>{const{scope:L,children:S}=A,R=s(u,L),I=Ct(C,R.collectionRef);return y.jsx(f,{ref:I,children:S})});h.displayName=u;const p=e+"CollectionItemSlot",g="data-radix-collection-item",b=Ps(p),x=Ne.forwardRef((A,C)=>{const{scope:L,children:S,...R}=A,I=Ne.useRef(null),N=Ct(C,I),_=s(p,L);return Ne.useEffect(()=>(_.itemMap.set(I,{ref:I,...R}),()=>void _.itemMap.delete(I))),y.jsx(b,{[g]:"",ref:N,children:S})});x.displayName=p;function w(A){const C=s(e+"CollectionConsumer",A);return Ne.useCallback(()=>{const S=C.collectionRef.current;if(!S)return[];const R=Array.from(S.querySelectorAll(`[${g}]`));return Array.from(C.itemMap.values()).sort((_,k)=>R.indexOf(_.ref.current)-R.indexOf(k.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:c,Slot:h,ItemSlot:x},w,i]}var IW=E.createContext(void 0);function _W(e){const t=E.useContext(IW);return e||t||"ltr"}const NW=["top","right","bottom","left"],ga=Math.min,Kn=Math.max,Df=Math.round,Hd=Math.floor,Wr=e=>({x:e,y:e}),kW={left:"right",right:"left",bottom:"top",top:"bottom"},LW={start:"end",end:"start"};function Zg(e,t,n){return Kn(e,ga(t,n))}function ki(e,t){return typeof e=="function"?e(t):e}function Li(e){return e.split("-")[0]}function tl(e){return e.split("-")[1]}function Mb(e){return e==="x"?"y":"x"}function Pb(e){return e==="y"?"height":"width"}const DW=new Set(["top","bottom"]);function Kr(e){return DW.has(Li(e))?"y":"x"}function Bb(e){return Mb(Kr(e))}function OW(e,t,n){n===void 0&&(n=!1);const i=tl(e),o=Bb(e),s=Pb(o);let c=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(c=Of(c)),[c,Of(c)]}function jW(e){const t=Of(e);return[Yg(e),t,Yg(t)]}function Yg(e){return e.replace(/start|end/g,t=>LW[t])}const sC=["left","right"],lC=["right","left"],zW=["top","bottom"],MW=["bottom","top"];function PW(e,t,n){switch(e){case"top":case"bottom":return n?t?lC:sC:t?sC:lC;case"left":case"right":return t?zW:MW;default:return[]}}function BW(e,t,n,i){const o=tl(e);let s=PW(Li(e),n==="start",i);return o&&(s=s.map(c=>c+"-"+o),t&&(s=s.concat(s.map(Yg)))),s}function Of(e){return e.replace(/left|right|bottom|top/g,t=>kW[t])}function UW(e){return{top:0,right:0,bottom:0,left:0,...e}}function Vj(e){return typeof e!="number"?UW(e):{top:e,right:e,bottom:e,left:e}}function jf(e){const{x:t,y:n,width:i,height:o}=e;return{width:i,height:o,top:n,left:t,right:t+i,bottom:n+o,x:t,y:n}}function cC(e,t,n){let{reference:i,floating:o}=e;const s=Kr(t),c=Bb(t),u=Pb(c),f=Li(t),h=s==="y",p=i.x+i.width/2-o.width/2,g=i.y+i.height/2-o.height/2,b=i[u]/2-o[u]/2;let x;switch(f){case"top":x={x:p,y:i.y-o.height};break;case"bottom":x={x:p,y:i.y+i.height};break;case"right":x={x:i.x+i.width,y:g};break;case"left":x={x:i.x-o.width,y:g};break;default:x={x:i.x,y:i.y}}switch(tl(t)){case"start":x[c]-=b*(n&&h?-1:1);break;case"end":x[c]+=b*(n&&h?-1:1);break}return x}const VW=async(e,t,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:c}=n,u=s.filter(Boolean),f=await(c.isRTL==null?void 0:c.isRTL(t));let h=await c.getElementRects({reference:e,floating:t,strategy:o}),{x:p,y:g}=cC(h,i,f),b=i,x={},w=0;for(let A=0;A<u.length;A++){const{name:C,fn:L}=u[A],{x:S,y:R,data:I,reset:N}=await L({x:p,y:g,initialPlacement:i,placement:b,strategy:o,middlewareData:x,rects:h,platform:c,elements:{reference:e,floating:t}});p=S??p,g=R??g,x={...x,[C]:{...x[C],...I}},N&&w<=50&&(w++,typeof N=="object"&&(N.placement&&(b=N.placement),N.rects&&(h=N.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):N.rects),{x:p,y:g}=cC(h,b,f)),A=-1)}return{x:p,y:g,placement:b,strategy:o,middlewareData:x}};async function jc(e,t){var n;t===void 0&&(t={});const{x:i,y:o,platform:s,rects:c,elements:u,strategy:f}=e,{boundary:h="clippingAncestors",rootBoundary:p="viewport",elementContext:g="floating",altBoundary:b=!1,padding:x=0}=ki(t,e),w=Vj(x),C=u[b?g==="floating"?"reference":"floating":g],L=jf(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(C)))==null||n?C:C.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:h,rootBoundary:p,strategy:f})),S=g==="floating"?{x:i,y:o,width:c.floating.width,height:c.floating.height}:c.reference,R=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u.floating)),I=await(s.isElement==null?void 0:s.isElement(R))?await(s.getScale==null?void 0:s.getScale(R))||{x:1,y:1}:{x:1,y:1},N=jf(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:S,offsetParent:R,strategy:f}):S);return{top:(L.top-N.top+w.top)/I.y,bottom:(N.bottom-L.bottom+w.bottom)/I.y,left:(L.left-N.left+w.left)/I.x,right:(N.right-L.right+w.right)/I.x}}const FW=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:i,placement:o,rects:s,platform:c,elements:u,middlewareData:f}=t,{element:h,padding:p=0}=ki(e,t)||{};if(h==null)return{};const g=Vj(p),b={x:n,y:i},x=Bb(o),w=Pb(x),A=await c.getDimensions(h),C=x==="y",L=C?"top":"left",S=C?"bottom":"right",R=C?"clientHeight":"clientWidth",I=s.reference[w]+s.reference[x]-b[x]-s.floating[w],N=b[x]-s.reference[x],_=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let k=_?_[R]:0;(!k||!await(c.isElement==null?void 0:c.isElement(_)))&&(k=u.floating[R]||s.floating[w]);const O=I/2-N/2,U=k/2-A[w]/2-1,F=ga(g[L],U),H=ga(g[S],U),te=F,ce=k-A[w]-H,X=k/2-A[w]/2+O,oe=Zg(te,X,ce),M=!f.arrow&&tl(o)!=null&&X!==oe&&s.reference[w]/2-(X<te?F:H)-A[w]/2<0,Y=M?X<te?X-te:X-ce:0;return{[x]:b[x]+Y,data:{[x]:oe,centerOffset:X-oe-Y,...M&&{alignmentOffset:Y}},reset:M}}}),HW=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,i;const{placement:o,middlewareData:s,rects:c,initialPlacement:u,platform:f,elements:h}=t,{mainAxis:p=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:A=!0,...C}=ki(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const L=Li(o),S=Kr(u),R=Li(u)===u,I=await(f.isRTL==null?void 0:f.isRTL(h.floating)),N=b||(R||!A?[Of(u)]:jW(u)),_=w!=="none";!b&&_&&N.push(...BW(u,A,w,I));const k=[u,...N],O=await jc(t,C),U=[];let F=((i=s.flip)==null?void 0:i.overflows)||[];if(p&&U.push(O[L]),g){const X=OW(o,c,I);U.push(O[X[0]],O[X[1]])}if(F=[...F,{placement:o,overflows:U}],!U.every(X=>X<=0)){var H,te;const X=(((H=s.flip)==null?void 0:H.index)||0)+1,oe=k[X];if(oe&&(!(g==="alignment"?S!==Kr(oe):!1)||F.every($=>Kr($.placement)===S?$.overflows[0]>0:!0)))return{data:{index:X,overflows:F},reset:{placement:oe}};let M=(te=F.filter(Y=>Y.overflows[0]<=0).sort((Y,$)=>Y.overflows[1]-$.overflows[1])[0])==null?void 0:te.placement;if(!M)switch(x){case"bestFit":{var ce;const Y=(ce=F.filter($=>{if(_){const me=Kr($.placement);return me===S||me==="y"}return!0}).map($=>[$.placement,$.overflows.filter(me=>me>0).reduce((me,Ee)=>me+Ee,0)]).sort(($,me)=>$[1]-me[1])[0])==null?void 0:ce[0];Y&&(M=Y);break}case"initialPlacement":M=u;break}if(o!==M)return{reset:{placement:M}}}return{}}}};function uC(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function dC(e){return NW.some(t=>e[t]>=0)}const GW=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...o}=ki(e,t);switch(i){case"referenceHidden":{const s=await jc(t,{...o,elementContext:"reference"}),c=uC(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:dC(c)}}}case"escaped":{const s=await jc(t,{...o,altBoundary:!0}),c=uC(s,n.floating);return{data:{escapedOffsets:c,escaped:dC(c)}}}default:return{}}}}},Fj=new Set(["left","top"]);async function KW(e,t){const{placement:n,platform:i,elements:o}=e,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),c=Li(n),u=tl(n),f=Kr(n)==="y",h=Fj.has(c)?-1:1,p=s&&f?-1:1,g=ki(t,e);let{mainAxis:b,crossAxis:x,alignmentAxis:w}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return u&&typeof w=="number"&&(x=u==="end"?w*-1:w),f?{x:x*p,y:b*h}:{x:b*h,y:x*p}}const $W=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,i;const{x:o,y:s,placement:c,middlewareData:u}=t,f=await KW(t,e);return c===((n=u.offset)==null?void 0:n.placement)&&(i=u.arrow)!=null&&i.alignmentOffset?{}:{x:o+f.x,y:s+f.y,data:{...f,placement:c}}}}},qW=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:i,placement:o}=t,{mainAxis:s=!0,crossAxis:c=!1,limiter:u={fn:C=>{let{x:L,y:S}=C;return{x:L,y:S}}},...f}=ki(e,t),h={x:n,y:i},p=await jc(t,f),g=Kr(Li(o)),b=Mb(g);let x=h[b],w=h[g];if(s){const C=b==="y"?"top":"left",L=b==="y"?"bottom":"right",S=x+p[C],R=x-p[L];x=Zg(S,x,R)}if(c){const C=g==="y"?"top":"left",L=g==="y"?"bottom":"right",S=w+p[C],R=w-p[L];w=Zg(S,w,R)}const A=u.fn({...t,[b]:x,[g]:w});return{...A,data:{x:A.x-n,y:A.y-i,enabled:{[b]:s,[g]:c}}}}}},ZW=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:i,placement:o,rects:s,middlewareData:c}=t,{offset:u=0,mainAxis:f=!0,crossAxis:h=!0}=ki(e,t),p={x:n,y:i},g=Kr(o),b=Mb(g);let x=p[b],w=p[g];const A=ki(u,t),C=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:0,crossAxis:0,...A};if(f){const R=b==="y"?"height":"width",I=s.reference[b]-s.floating[R]+C.mainAxis,N=s.reference[b]+s.reference[R]-C.mainAxis;x<I?x=I:x>N&&(x=N)}if(h){var L,S;const R=b==="y"?"width":"height",I=Fj.has(Li(o)),N=s.reference[g]-s.floating[R]+(I&&((L=c.offset)==null?void 0:L[g])||0)+(I?0:C.crossAxis),_=s.reference[g]+s.reference[R]+(I?0:((S=c.offset)==null?void 0:S[g])||0)-(I?C.crossAxis:0);w<N?w=N:w>_&&(w=_)}return{[b]:x,[g]:w}}}},YW=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,i;const{placement:o,rects:s,platform:c,elements:u}=t,{apply:f=()=>{},...h}=ki(e,t),p=await jc(t,h),g=Li(o),b=tl(o),x=Kr(o)==="y",{width:w,height:A}=s.floating;let C,L;g==="top"||g==="bottom"?(C=g,L=b===(await(c.isRTL==null?void 0:c.isRTL(u.floating))?"start":"end")?"left":"right"):(L=g,C=b==="end"?"top":"bottom");const S=A-p.top-p.bottom,R=w-p.left-p.right,I=ga(A-p[C],S),N=ga(w-p[L],R),_=!t.middlewareData.shift;let k=I,O=N;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=R),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(k=S),_&&!b){const F=Kn(p.left,0),H=Kn(p.right,0),te=Kn(p.top,0),ce=Kn(p.bottom,0);x?O=w-2*(F!==0||H!==0?F+H:Kn(p.left,p.right)):k=A-2*(te!==0||ce!==0?te+ce:Kn(p.top,p.bottom))}await f({...t,availableWidth:O,availableHeight:k});const U=await c.getDimensions(u.floating);return w!==U.width||A!==U.height?{reset:{rects:!0}}:{}}}};function dh(){return typeof window<"u"}function nl(e){return Hj(e)?(e.nodeName||"").toLowerCase():"#document"}function Wn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ti(e){var t;return(t=(Hj(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Hj(e){return dh()?e instanceof Node||e instanceof Wn(e).Node:!1}function Rr(e){return dh()?e instanceof Element||e instanceof Wn(e).Element:!1}function Qr(e){return dh()?e instanceof HTMLElement||e instanceof Wn(e).HTMLElement:!1}function fC(e){return!dh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Wn(e).ShadowRoot}const WW=new Set(["inline","contents"]);function ru(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=Ir(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!WW.has(o)}const XW=new Set(["table","td","th"]);function QW(e){return XW.has(nl(e))}const JW=[":popover-open",":modal"];function fh(e){return JW.some(t=>{try{return e.matches(t)}catch{return!1}})}const eX=["transform","translate","scale","rotate","perspective"],tX=["transform","translate","scale","rotate","perspective","filter"],nX=["paint","layout","strict","content"];function Ub(e){const t=Vb(),n=Rr(e)?Ir(e):e;return eX.some(i=>n[i]?n[i]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||tX.some(i=>(n.willChange||"").includes(i))||nX.some(i=>(n.contain||"").includes(i))}function rX(e){let t=va(e);for(;Qr(t)&&!Vs(t);){if(Ub(t))return t;if(fh(t))return null;t=va(t)}return null}function Vb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const iX=new Set(["html","body","#document"]);function Vs(e){return iX.has(nl(e))}function Ir(e){return Wn(e).getComputedStyle(e)}function hh(e){return Rr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function va(e){if(nl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||fC(e)&&e.host||ti(e);return fC(t)?t.host:t}function Gj(e){const t=va(e);return Vs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qr(t)&&ru(t)?t:Gj(t)}function zc(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Gj(e),s=o===((i=e.ownerDocument)==null?void 0:i.body),c=Wn(o);if(s){const u=Wg(c);return t.concat(c,c.visualViewport||[],ru(o)?o:[],u&&n?zc(u):[])}return t.concat(o,zc(o,[],n))}function Wg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Kj(e){const t=Ir(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=Qr(e),s=o?e.offsetWidth:n,c=o?e.offsetHeight:i,u=Df(n)!==s||Df(i)!==c;return u&&(n=s,i=c),{width:n,height:i,$:u}}function Fb(e){return Rr(e)?e:e.contextElement}function Ds(e){const t=Fb(e);if(!Qr(t))return Wr(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:s}=Kj(t);let c=(s?Df(n.width):n.width)/i,u=(s?Df(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!u||!Number.isFinite(u))&&(u=1),{x:c,y:u}}const aX=Wr(0);function $j(e){const t=Wn(e);return!Vb()||!t.visualViewport?aX:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function oX(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Wn(e)?!1:t}function yo(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Fb(e);let c=Wr(1);t&&(i?Rr(i)&&(c=Ds(i)):c=Ds(e));const u=oX(s,n,i)?$j(s):Wr(0);let f=(o.left+u.x)/c.x,h=(o.top+u.y)/c.y,p=o.width/c.x,g=o.height/c.y;if(s){const b=Wn(s),x=i&&Rr(i)?Wn(i):i;let w=b,A=Wg(w);for(;A&&i&&x!==w;){const C=Ds(A),L=A.getBoundingClientRect(),S=Ir(A),R=L.left+(A.clientLeft+parseFloat(S.paddingLeft))*C.x,I=L.top+(A.clientTop+parseFloat(S.paddingTop))*C.y;f*=C.x,h*=C.y,p*=C.x,g*=C.y,f+=R,h+=I,w=Wn(A),A=Wg(w)}}return jf({width:p,height:g,x:f,y:h})}function ph(e,t){const n=hh(e).scrollLeft;return t?t.left+n:yo(ti(e)).left+n}function qj(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-ph(e,n),o=n.top+t.scrollTop;return{x:i,y:o}}function sX(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const s=o==="fixed",c=ti(i),u=t?fh(t.floating):!1;if(i===c||u&&s)return n;let f={scrollLeft:0,scrollTop:0},h=Wr(1);const p=Wr(0),g=Qr(i);if((g||!g&&!s)&&((nl(i)!=="body"||ru(c))&&(f=hh(i)),Qr(i))){const x=yo(i);h=Ds(i),p.x=x.x+i.clientLeft,p.y=x.y+i.clientTop}const b=c&&!g&&!s?qj(c,f):Wr(0);return{width:n.width*h.x,height:n.height*h.y,x:n.x*h.x-f.scrollLeft*h.x+p.x+b.x,y:n.y*h.y-f.scrollTop*h.y+p.y+b.y}}function lX(e){return Array.from(e.getClientRects())}function cX(e){const t=ti(e),n=hh(e),i=e.ownerDocument.body,o=Kn(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=Kn(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let c=-n.scrollLeft+ph(e);const u=-n.scrollTop;return Ir(i).direction==="rtl"&&(c+=Kn(t.clientWidth,i.clientWidth)-o),{width:o,height:s,x:c,y:u}}const hC=25;function uX(e,t){const n=Wn(e),i=ti(e),o=n.visualViewport;let s=i.clientWidth,c=i.clientHeight,u=0,f=0;if(o){s=o.width,c=o.height;const p=Vb();(!p||p&&t==="fixed")&&(u=o.offsetLeft,f=o.offsetTop)}const h=ph(i);if(h<=0){const p=i.ownerDocument,g=p.body,b=getComputedStyle(g),x=p.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,w=Math.abs(i.clientWidth-g.clientWidth-x);w<=hC&&(s-=w)}else h<=hC&&(s+=h);return{width:s,height:c,x:u,y:f}}const dX=new Set(["absolute","fixed"]);function fX(e,t){const n=yo(e,!0,t==="fixed"),i=n.top+e.clientTop,o=n.left+e.clientLeft,s=Qr(e)?Ds(e):Wr(1),c=e.clientWidth*s.x,u=e.clientHeight*s.y,f=o*s.x,h=i*s.y;return{width:c,height:u,x:f,y:h}}function pC(e,t,n){let i;if(t==="viewport")i=uX(e,n);else if(t==="document")i=cX(ti(e));else if(Rr(t))i=fX(t,n);else{const o=$j(e);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return jf(i)}function Zj(e,t){const n=va(e);return n===t||!Rr(n)||Vs(n)?!1:Ir(n).position==="fixed"||Zj(n,t)}function hX(e,t){const n=t.get(e);if(n)return n;let i=zc(e,[],!1).filter(u=>Rr(u)&&nl(u)!=="body"),o=null;const s=Ir(e).position==="fixed";let c=s?va(e):e;for(;Rr(c)&&!Vs(c);){const u=Ir(c),f=Ub(c);!f&&u.position==="fixed"&&(o=null),(s?!f&&!o:!f&&u.position==="static"&&!!o&&dX.has(o.position)||ru(c)&&!f&&Zj(e,c))?i=i.filter(p=>p!==c):o=u,c=va(c)}return t.set(e,i),i}function pX(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const c=[...n==="clippingAncestors"?fh(t)?[]:hX(t,this._c):[].concat(n),i],u=c[0],f=c.reduce((h,p)=>{const g=pC(t,p,o);return h.top=Kn(g.top,h.top),h.right=ga(g.right,h.right),h.bottom=ga(g.bottom,h.bottom),h.left=Kn(g.left,h.left),h},pC(t,u,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function mX(e){const{width:t,height:n}=Kj(e);return{width:t,height:n}}function yX(e,t,n){const i=Qr(t),o=ti(t),s=n==="fixed",c=yo(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const f=Wr(0);function h(){f.x=ph(o)}if(i||!i&&!s)if((nl(t)!=="body"||ru(o))&&(u=hh(t)),i){const x=yo(t,!0,s,t);f.x=x.x+t.clientLeft,f.y=x.y+t.clientTop}else o&&h();s&&!i&&o&&h();const p=o&&!i&&!s?qj(o,u):Wr(0),g=c.left+u.scrollLeft-f.x-p.x,b=c.top+u.scrollTop-f.y-p.y;return{x:g,y:b,width:c.width,height:c.height}}function By(e){return Ir(e).position==="static"}function mC(e,t){if(!Qr(e)||Ir(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ti(e)===n&&(n=n.ownerDocument.body),n}function Yj(e,t){const n=Wn(e);if(fh(e))return n;if(!Qr(e)){let o=va(e);for(;o&&!Vs(o);){if(Rr(o)&&!By(o))return o;o=va(o)}return n}let i=mC(e,t);for(;i&&QW(i)&&By(i);)i=mC(i,t);return i&&Vs(i)&&By(i)&&!Ub(i)?n:i||rX(e)||n}const gX=async function(e){const t=this.getOffsetParent||Yj,n=this.getDimensions,i=await n(e.floating);return{reference:yX(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function vX(e){return Ir(e).direction==="rtl"}const bX={convertOffsetParentRelativeRectToViewportRelativeRect:sX,getDocumentElement:ti,getClippingRect:pX,getOffsetParent:Yj,getElementRects:gX,getClientRects:lX,getDimensions:mX,getScale:Ds,isElement:Rr,isRTL:vX};function Wj(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function EX(e,t){let n=null,i;const o=ti(e);function s(){var u;clearTimeout(i),(u=n)==null||u.disconnect(),n=null}function c(u,f){u===void 0&&(u=!1),f===void 0&&(f=1),s();const h=e.getBoundingClientRect(),{left:p,top:g,width:b,height:x}=h;if(u||t(),!b||!x)return;const w=Hd(g),A=Hd(o.clientWidth-(p+b)),C=Hd(o.clientHeight-(g+x)),L=Hd(p),R={rootMargin:-w+"px "+-A+"px "+-C+"px "+-L+"px",threshold:Kn(0,ga(1,f))||1};let I=!0;function N(_){const k=_[0].intersectionRatio;if(k!==f){if(!I)return c();k?c(!1,k):i=setTimeout(()=>{c(!1,1e-7)},1e3)}k===1&&!Wj(h,e.getBoundingClientRect())&&c(),I=!1}try{n=new IntersectionObserver(N,{...R,root:o.ownerDocument})}catch{n=new IntersectionObserver(N,R)}n.observe(e)}return c(!0),s}function xX(e,t,n,i){i===void 0&&(i={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:c=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:f=!1}=i,h=Fb(e),p=o||s?[...h?zc(h):[],...zc(t)]:[];p.forEach(L=>{o&&L.addEventListener("scroll",n,{passive:!0}),s&&L.addEventListener("resize",n)});const g=h&&u?EX(h,n):null;let b=-1,x=null;c&&(x=new ResizeObserver(L=>{let[S]=L;S&&S.target===h&&x&&(x.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var R;(R=x)==null||R.observe(t)})),n()}),h&&!f&&x.observe(h),x.observe(t));let w,A=f?yo(e):null;f&&C();function C(){const L=yo(e);A&&!Wj(A,L)&&n(),A=L,w=requestAnimationFrame(C)}return n(),()=>{var L;p.forEach(S=>{o&&S.removeEventListener("scroll",n),s&&S.removeEventListener("resize",n)}),g?.(),(L=x)==null||L.disconnect(),x=null,f&&cancelAnimationFrame(w)}}const SX=$W,AX=qW,wX=HW,TX=YW,CX=GW,yC=FW,RX=ZW,IX=(e,t,n)=>{const i=new Map,o={platform:bX,...n},s={...o.platform,_c:i};return VW(e,t,{...o,platform:s})};var _X=typeof document<"u",NX=function(){},ff=_X?E.useLayoutEffect:NX;function zf(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,i,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(i=n;i--!==0;)if(!zf(e[i],t[i]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(i=n;i--!==0;)if(!{}.hasOwnProperty.call(t,o[i]))return!1;for(i=n;i--!==0;){const s=o[i];if(!(s==="_owner"&&e.$$typeof)&&!zf(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Xj(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function gC(e,t){const n=Xj(e);return Math.round(t*n)/n}function Uy(e){const t=E.useRef(e);return ff(()=>{t.current=e}),t}function kX(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:o,elements:{reference:s,floating:c}={},transform:u=!0,whileElementsMounted:f,open:h}=e,[p,g]=E.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,x]=E.useState(i);zf(b,i)||x(i);const[w,A]=E.useState(null),[C,L]=E.useState(null),S=E.useCallback($=>{$!==_.current&&(_.current=$,A($))},[]),R=E.useCallback($=>{$!==k.current&&(k.current=$,L($))},[]),I=s||w,N=c||C,_=E.useRef(null),k=E.useRef(null),O=E.useRef(p),U=f!=null,F=Uy(f),H=Uy(o),te=Uy(h),ce=E.useCallback(()=>{if(!_.current||!k.current)return;const $={placement:t,strategy:n,middleware:b};H.current&&($.platform=H.current),IX(_.current,k.current,$).then(me=>{const Ee={...me,isPositioned:te.current!==!1};X.current&&!zf(O.current,Ee)&&(O.current=Ee,So.flushSync(()=>{g(Ee)}))})},[b,t,n,H,te]);ff(()=>{h===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,g($=>({...$,isPositioned:!1})))},[h]);const X=E.useRef(!1);ff(()=>(X.current=!0,()=>{X.current=!1}),[]),ff(()=>{if(I&&(_.current=I),N&&(k.current=N),I&&N){if(F.current)return F.current(I,N,ce);ce()}},[I,N,ce,F,U]);const oe=E.useMemo(()=>({reference:_,floating:k,setReference:S,setFloating:R}),[S,R]),M=E.useMemo(()=>({reference:I,floating:N}),[I,N]),Y=E.useMemo(()=>{const $={position:n,left:0,top:0};if(!M.floating)return $;const me=gC(M.floating,p.x),Ee=gC(M.floating,p.y);return u?{...$,transform:"translate("+me+"px, "+Ee+"px)",...Xj(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:me,top:Ee}},[n,u,M.floating,p.x,p.y]);return E.useMemo(()=>({...p,update:ce,refs:oe,elements:M,floatingStyles:Y}),[p,ce,oe,M,Y])}const LX=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:i,padding:o}=typeof e=="function"?e(n):e;return i&&t(i)?i.current!=null?yC({element:i.current,padding:o}).fn(n):{}:i?yC({element:i,padding:o}).fn(n):{}}}},DX=(e,t)=>({...SX(e),options:[e,t]}),OX=(e,t)=>({...AX(e),options:[e,t]}),jX=(e,t)=>({...RX(e),options:[e,t]}),zX=(e,t)=>({...wX(e),options:[e,t]}),MX=(e,t)=>({...TX(e),options:[e,t]}),PX=(e,t)=>({...CX(e),options:[e,t]}),BX=(e,t)=>({...LX(e),options:[e,t]});var UX="Arrow",Qj=E.forwardRef((e,t)=>{const{children:n,width:i=10,height:o=5,...s}=e;return y.jsx(He.svg,{...s,ref:t,width:i,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:y.jsx("polygon",{points:"0,0 30,0 15,10"})})});Qj.displayName=UX;var VX=Qj;function FX(e){const[t,n]=E.useState(void 0);return dn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let c,u;if("borderBoxSize"in s){const f=s.borderBoxSize,h=Array.isArray(f)?f[0]:f;c=h.inlineSize,u=h.blockSize}else c=e.offsetWidth,u=e.offsetHeight;n({width:c,height:u})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else n(void 0)},[e]),t}var Hb="Popper",[Jj,ez]=$c(Hb),[HX,tz]=Jj(Hb),nz=e=>{const{__scopePopper:t,children:n}=e,[i,o]=E.useState(null);return y.jsx(HX,{scope:t,anchor:i,onAnchorChange:o,children:n})};nz.displayName=Hb;var rz="PopperAnchor",iz=E.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...o}=e,s=tz(rz,n),c=E.useRef(null),u=Ct(t,c),f=E.useRef(null);return E.useEffect(()=>{const h=f.current;f.current=i?.current||c.current,h!==f.current&&s.onAnchorChange(f.current)}),i?null:y.jsx(He.div,{...o,ref:u})});iz.displayName=rz;var Gb="PopperContent",[GX,KX]=Jj(Gb),az=E.forwardRef((e,t)=>{const{__scopePopper:n,side:i="bottom",sideOffset:o=0,align:s="center",alignOffset:c=0,arrowPadding:u=0,avoidCollisions:f=!0,collisionBoundary:h=[],collisionPadding:p=0,sticky:g="partial",hideWhenDetached:b=!1,updatePositionStrategy:x="optimized",onPlaced:w,...A}=e,C=tz(Gb,n),[L,S]=E.useState(null),R=Ct(t,ie=>S(ie)),[I,N]=E.useState(null),_=FX(I),k=_?.width??0,O=_?.height??0,U=i+(s!=="center"?"-"+s:""),F=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},H=Array.isArray(h)?h:[h],te=H.length>0,ce={padding:F,boundary:H.filter(qX),altBoundary:te},{refs:X,floatingStyles:oe,placement:M,isPositioned:Y,middlewareData:$}=kX({strategy:"fixed",placement:U,whileElementsMounted:(...ie)=>xX(...ie,{animationFrame:x==="always"}),elements:{reference:C.anchor},middleware:[DX({mainAxis:o+O,alignmentAxis:c}),f&&OX({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?jX():void 0,...ce}),f&&zX({...ce}),MX({...ce,apply:({elements:ie,rects:Re,availableWidth:Ae,availableHeight:ze})=>{const{width:Ye,height:et}=Re.reference,tn=ie.floating.style;tn.setProperty("--radix-popper-available-width",`${Ae}px`),tn.setProperty("--radix-popper-available-height",`${ze}px`),tn.setProperty("--radix-popper-anchor-width",`${Ye}px`),tn.setProperty("--radix-popper-anchor-height",`${et}px`)}}),I&&BX({element:I,padding:u}),ZX({arrowWidth:k,arrowHeight:O}),b&&PX({strategy:"referenceHidden",...ce})]}),[me,Ee]=lz(M),j=Cr(w);dn(()=>{Y&&j?.()},[Y,j]);const P=$.arrow?.x,J=$.arrow?.y,ne=$.arrow?.centerOffset!==0,[ue,ye]=E.useState();return dn(()=>{L&&ye(window.getComputedStyle(L).zIndex)},[L]),y.jsx("div",{ref:X.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:Y?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[$.transformOrigin?.x,$.transformOrigin?.y].join(" "),...$.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(GX,{scope:n,placedSide:me,onArrowChange:N,arrowX:P,arrowY:J,shouldHideArrow:ne,children:y.jsx(He.div,{"data-side":me,"data-align":Ee,...A,ref:R,style:{...A.style,animation:Y?void 0:"none"}})})})});az.displayName=Gb;var oz="PopperArrow",$X={top:"bottom",right:"left",bottom:"top",left:"right"},sz=E.forwardRef(function(t,n){const{__scopePopper:i,...o}=t,s=KX(oz,i),c=$X[s.placedSide];return y.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[c]: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(VX,{...o,ref:n,style:{...o.style,display:"block"}})})});sz.displayName=oz;function qX(e){return e!==null}var ZX=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:i,middlewareData:o}=t,c=o.arrow?.centerOffset!==0,u=c?0:e.arrowWidth,f=c?0:e.arrowHeight,[h,p]=lz(n),g={start:"0%",center:"50%",end:"100%"}[p],b=(o.arrow?.x??0)+u/2,x=(o.arrow?.y??0)+f/2;let w="",A="";return h==="bottom"?(w=c?g:`${b}px`,A=`${-f}px`):h==="top"?(w=c?g:`${b}px`,A=`${i.floating.height+f}px`):h==="right"?(w=`${-f}px`,A=c?g:`${x}px`):h==="left"&&(w=`${i.floating.width+f}px`,A=c?g:`${x}px`),{data:{x:w,y:A}}}});function lz(e){const[t,n="center"]=e.split("-");return[t,n]}var YX=nz,WX=iz,XX=az,QX=sz;function JX(e){const t=E.useRef({value:e,previous:e});return E.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var cz=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"}),eQ="VisuallyHidden",Kb=E.forwardRef((e,t)=>y.jsx(He.span,{...e,ref:t,style:{...cz,...e.style}}));Kb.displayName=eQ;var tQ=[" ","Enter","ArrowUp","ArrowDown"],nQ=[" ","Enter"],go="Select",[mh,yh,rQ]=Uj(go),[rl]=$c(go,[rQ,ez]),gh=ez(),[iQ,wa]=rl(go),[aQ,oQ]=rl(go),uz=e=>{const{__scopeSelect:t,children:n,open:i,defaultOpen:o,onOpenChange:s,value:c,defaultValue:u,onValueChange:f,dir:h,name:p,autoComplete:g,disabled:b,required:x,form:w}=e,A=gh(t),[C,L]=E.useState(null),[S,R]=E.useState(null),[I,N]=E.useState(!1),_=_W(h),[k,O]=Ef({prop:i,defaultProp:o??!1,onChange:s,caller:go}),[U,F]=Ef({prop:c,defaultProp:u,onChange:f,caller:go}),H=E.useRef(null),te=C?w||!!C.closest("form"):!0,[ce,X]=E.useState(new Set),oe=Array.from(ce).map(M=>M.props.value).join(";");return y.jsx(YX,{...A,children:y.jsxs(iQ,{required:x,scope:t,trigger:C,onTriggerChange:L,valueNode:S,onValueNodeChange:R,valueNodeHasChildren:I,onValueNodeHasChildrenChange:N,contentId:fr(),value:U,onValueChange:F,open:k,onOpenChange:O,dir:_,triggerPointerDownPosRef:H,disabled:b,children:[y.jsx(mh.Provider,{scope:t,children:y.jsx(aQ,{scope:e.__scopeSelect,onNativeOptionAdd:E.useCallback(M=>{X(Y=>new Set(Y).add(M))},[]),onNativeOptionRemove:E.useCallback(M=>{X(Y=>{const $=new Set(Y);return $.delete(M),$})},[]),children:n})}),te?y.jsxs(jz,{"aria-hidden":!0,required:x,tabIndex:-1,name:p,autoComplete:g,value:U,onChange:M=>F(M.target.value),disabled:b,form:w,children:[U===void 0?y.jsx("option",{value:""}):null,Array.from(ce)]},oe):null]})})};uz.displayName=go;var dz="SelectTrigger",fz=E.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:i=!1,...o}=e,s=gh(n),c=wa(dz,n),u=c.disabled||i,f=Ct(t,c.onTriggerChange),h=yh(n),p=E.useRef("touch"),[g,b,x]=Mz(A=>{const C=h().filter(R=>!R.disabled),L=C.find(R=>R.value===c.value),S=Pz(C,A,L);S!==void 0&&c.onValueChange(S.value)}),w=A=>{u||(c.onOpenChange(!0),x()),A&&(c.triggerPointerDownPosRef.current={x:Math.round(A.pageX),y:Math.round(A.pageY)})};return y.jsx(WX,{asChild:!0,...s,children:y.jsx(He.button,{type:"button",role:"combobox","aria-controls":c.contentId,"aria-expanded":c.open,"aria-required":c.required,"aria-autocomplete":"none",dir:c.dir,"data-state":c.open?"open":"closed",disabled:u,"data-disabled":u?"":void 0,"data-placeholder":zz(c.value)?"":void 0,...o,ref:f,onClick:Xe(o.onClick,A=>{A.currentTarget.focus(),p.current!=="mouse"&&w(A)}),onPointerDown:Xe(o.onPointerDown,A=>{p.current=A.pointerType;const C=A.target;C.hasPointerCapture(A.pointerId)&&C.releasePointerCapture(A.pointerId),A.button===0&&A.ctrlKey===!1&&A.pointerType==="mouse"&&(w(A),A.preventDefault())}),onKeyDown:Xe(o.onKeyDown,A=>{const C=g.current!=="";!(A.ctrlKey||A.altKey||A.metaKey)&&A.key.length===1&&b(A.key),!(C&&A.key===" ")&&tQ.includes(A.key)&&(w(),A.preventDefault())})})})});fz.displayName=dz;var hz="SelectValue",pz=E.forwardRef((e,t)=>{const{__scopeSelect:n,className:i,style:o,children:s,placeholder:c="",...u}=e,f=wa(hz,n),{onValueNodeHasChildrenChange:h}=f,p=s!==void 0,g=Ct(t,f.onValueNodeChange);return dn(()=>{h(p)},[h,p]),y.jsx(He.span,{...u,ref:g,style:{pointerEvents:"none"},children:zz(f.value)?y.jsx(y.Fragment,{children:c}):s})});pz.displayName=hz;var sQ="SelectIcon",mz=E.forwardRef((e,t)=>{const{__scopeSelect:n,children:i,...o}=e;return y.jsx(He.span,{"aria-hidden":!0,...o,ref:t,children:i||"▼"})});mz.displayName=sQ;var lQ="SelectPortal",yz=e=>y.jsx(eh,{asChild:!0,...e});yz.displayName=lQ;var vo="SelectContent",gz=E.forwardRef((e,t)=>{const n=wa(vo,e.__scopeSelect),[i,o]=E.useState();if(dn(()=>{o(new DocumentFragment)},[]),!n.open){const s=i;return s?So.createPortal(y.jsx(vz,{scope:e.__scopeSelect,children:y.jsx(mh.Slot,{scope:e.__scopeSelect,children:y.jsx("div",{children:e.children})})}),s):null}return y.jsx(bz,{...e,ref:t})});gz.displayName=vo;var xr=10,[vz,Ta]=rl(vo),cQ="SelectContentImpl",uQ=Ps("SelectContent.RemoveScroll"),bz=E.forwardRef((e,t)=>{const{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:o,onEscapeKeyDown:s,onPointerDownOutside:c,side:u,sideOffset:f,align:h,alignOffset:p,arrowPadding:g,collisionBoundary:b,collisionPadding:x,sticky:w,hideWhenDetached:A,avoidCollisions:C,...L}=e,S=wa(vo,n),[R,I]=E.useState(null),[N,_]=E.useState(null),k=Ct(t,ie=>I(ie)),[O,U]=E.useState(null),[F,H]=E.useState(null),te=yh(n),[ce,X]=E.useState(!1),oe=E.useRef(!1);E.useEffect(()=>{if(R)return $1(R)},[R]),M1();const M=E.useCallback(ie=>{const[Re,...Ae]=te().map(et=>et.ref.current),[ze]=Ae.slice(-1),Ye=document.activeElement;for(const et of ie)if(et===Ye||(et?.scrollIntoView({block:"nearest"}),et===Re&&N&&(N.scrollTop=0),et===ze&&N&&(N.scrollTop=N.scrollHeight),et?.focus(),document.activeElement!==Ye))return},[te,N]),Y=E.useCallback(()=>M([O,R]),[M,O,R]);E.useEffect(()=>{ce&&Y()},[ce,Y]);const{onOpenChange:$,triggerPointerDownPosRef:me}=S;E.useEffect(()=>{if(R){let ie={x:0,y:0};const Re=ze=>{ie={x:Math.abs(Math.round(ze.pageX)-(me.current?.x??0)),y:Math.abs(Math.round(ze.pageY)-(me.current?.y??0))}},Ae=ze=>{ie.x<=10&&ie.y<=10?ze.preventDefault():R.contains(ze.target)||$(!1),document.removeEventListener("pointermove",Re),me.current=null};return me.current!==null&&(document.addEventListener("pointermove",Re),document.addEventListener("pointerup",Ae,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",Re),document.removeEventListener("pointerup",Ae,{capture:!0})}}},[R,$,me]),E.useEffect(()=>{const ie=()=>$(!1);return window.addEventListener("blur",ie),window.addEventListener("resize",ie),()=>{window.removeEventListener("blur",ie),window.removeEventListener("resize",ie)}},[$]);const[Ee,j]=Mz(ie=>{const Re=te().filter(Ye=>!Ye.disabled),Ae=Re.find(Ye=>Ye.ref.current===document.activeElement),ze=Pz(Re,ie,Ae);ze&&setTimeout(()=>ze.ref.current.focus())}),P=E.useCallback((ie,Re,Ae)=>{const ze=!oe.current&&!Ae;(S.value!==void 0&&S.value===Re||ze)&&(U(ie),ze&&(oe.current=!0))},[S.value]),J=E.useCallback(()=>R?.focus(),[R]),ne=E.useCallback((ie,Re,Ae)=>{const ze=!oe.current&&!Ae;(S.value!==void 0&&S.value===Re||ze)&&H(ie)},[S.value]),ue=i==="popper"?Xg:Ez,ye=ue===Xg?{side:u,sideOffset:f,align:h,alignOffset:p,arrowPadding:g,collisionBoundary:b,collisionPadding:x,sticky:w,hideWhenDetached:A,avoidCollisions:C}:{};return y.jsx(vz,{scope:n,content:R,viewport:N,onViewportChange:_,itemRefCallback:P,selectedItem:O,onItemLeave:J,itemTextRefCallback:ne,focusSelectedItem:Y,selectedItemText:F,position:i,isPositioned:ce,searchRef:Ee,children:y.jsx(zv,{as:uQ,allowPinchZoom:!0,children:y.jsx(jv,{asChild:!0,trapped:S.open,onMountAutoFocus:ie=>{ie.preventDefault()},onUnmountAutoFocus:Xe(o,ie=>{S.trigger?.focus({preventScroll:!0}),ie.preventDefault()}),children:y.jsx(Jf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:ie=>ie.preventDefault(),onDismiss:()=>S.onOpenChange(!1),children:y.jsx(ue,{role:"listbox",id:S.contentId,"data-state":S.open?"open":"closed",dir:S.dir,onContextMenu:ie=>ie.preventDefault(),...L,...ye,onPlaced:()=>X(!0),ref:k,style:{display:"flex",flexDirection:"column",outline:"none",...L.style},onKeyDown:Xe(L.onKeyDown,ie=>{const Re=ie.ctrlKey||ie.altKey||ie.metaKey;if(ie.key==="Tab"&&ie.preventDefault(),!Re&&ie.key.length===1&&j(ie.key),["ArrowUp","ArrowDown","Home","End"].includes(ie.key)){let ze=te().filter(Ye=>!Ye.disabled).map(Ye=>Ye.ref.current);if(["ArrowUp","End"].includes(ie.key)&&(ze=ze.slice().reverse()),["ArrowUp","ArrowDown"].includes(ie.key)){const Ye=ie.target,et=ze.indexOf(Ye);ze=ze.slice(et+1)}setTimeout(()=>M(ze)),ie.preventDefault()}})})})})})})});bz.displayName=cQ;var dQ="SelectItemAlignedPosition",Ez=E.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:i,...o}=e,s=wa(vo,n),c=Ta(vo,n),[u,f]=E.useState(null),[h,p]=E.useState(null),g=Ct(t,k=>p(k)),b=yh(n),x=E.useRef(!1),w=E.useRef(!0),{viewport:A,selectedItem:C,selectedItemText:L,focusSelectedItem:S}=c,R=E.useCallback(()=>{if(s.trigger&&s.valueNode&&u&&h&&A&&C&&L){const k=s.trigger.getBoundingClientRect(),O=h.getBoundingClientRect(),U=s.valueNode.getBoundingClientRect(),F=L.getBoundingClientRect();if(s.dir!=="rtl"){const Ye=F.left-O.left,et=U.left-Ye,tn=k.left-et,Wt=k.width+tn,Lr=Math.max(Wt,O.width),ri=window.innerWidth-xr,ka=oC(et,[xr,Math.max(xr,ri-Lr)]);u.style.minWidth=Wt+"px",u.style.left=ka+"px"}else{const Ye=O.right-F.right,et=window.innerWidth-U.right-Ye,tn=window.innerWidth-k.right-et,Wt=k.width+tn,Lr=Math.max(Wt,O.width),ri=window.innerWidth-xr,ka=oC(et,[xr,Math.max(xr,ri-Lr)]);u.style.minWidth=Wt+"px",u.style.right=ka+"px"}const H=b(),te=window.innerHeight-xr*2,ce=A.scrollHeight,X=window.getComputedStyle(h),oe=parseInt(X.borderTopWidth,10),M=parseInt(X.paddingTop,10),Y=parseInt(X.borderBottomWidth,10),$=parseInt(X.paddingBottom,10),me=oe+M+ce+$+Y,Ee=Math.min(C.offsetHeight*5,me),j=window.getComputedStyle(A),P=parseInt(j.paddingTop,10),J=parseInt(j.paddingBottom,10),ne=k.top+k.height/2-xr,ue=te-ne,ye=C.offsetHeight/2,ie=C.offsetTop+ye,Re=oe+M+ie,Ae=me-Re;if(Re<=ne){const Ye=H.length>0&&C===H[H.length-1].ref.current;u.style.bottom="0px";const et=h.clientHeight-A.offsetTop-A.offsetHeight,tn=Math.max(ue,ye+(Ye?J:0)+et+Y),Wt=Re+tn;u.style.height=Wt+"px"}else{const Ye=H.length>0&&C===H[0].ref.current;u.style.top="0px";const tn=Math.max(ne,oe+A.offsetTop+(Ye?P:0)+ye)+Ae;u.style.height=tn+"px",A.scrollTop=Re-ne+A.offsetTop}u.style.margin=`${xr}px 0`,u.style.minHeight=Ee+"px",u.style.maxHeight=te+"px",i?.(),requestAnimationFrame(()=>x.current=!0)}},[b,s.trigger,s.valueNode,u,h,A,C,L,s.dir,i]);dn(()=>R(),[R]);const[I,N]=E.useState();dn(()=>{h&&N(window.getComputedStyle(h).zIndex)},[h]);const _=E.useCallback(k=>{k&&w.current===!0&&(R(),S?.(),w.current=!1)},[R,S]);return y.jsx(hQ,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:x,onScrollButtonChange:_,children:y.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:I},children:y.jsx(He.div,{...o,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...o.style}})})})});Ez.displayName=dQ;var fQ="SelectPopperPosition",Xg=E.forwardRef((e,t)=>{const{__scopeSelect:n,align:i="start",collisionPadding:o=xr,...s}=e,c=gh(n);return y.jsx(XX,{...c,...s,ref:t,align:i,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)"}})});Xg.displayName=fQ;var[hQ,$b]=rl(vo,{}),Qg="SelectViewport",xz=E.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:i,...o}=e,s=Ta(Qg,n),c=$b(Qg,n),u=Ct(t,s.onViewportChange),f=E.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:i}),y.jsx(mh.Slot,{scope:n,children:y.jsx(He.div,{"data-radix-select-viewport":"",role:"presentation",...o,ref:u,style:{position:"relative",flex:1,overflow:"hidden auto",...o.style},onScroll:Xe(o.onScroll,h=>{const p=h.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:b}=c;if(b?.current&&g){const x=Math.abs(f.current-p.scrollTop);if(x>0){const w=window.innerHeight-xr*2,A=parseFloat(g.style.minHeight),C=parseFloat(g.style.height),L=Math.max(A,C);if(L<w){const S=L+x,R=Math.min(w,S),I=S-R;g.style.height=R+"px",g.style.bottom==="0px"&&(p.scrollTop=I>0?I:0,g.style.justifyContent="flex-end")}}}f.current=p.scrollTop})})})]})});xz.displayName=Qg;var Sz="SelectGroup",[pQ,mQ]=rl(Sz),Az=E.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,o=fr();return y.jsx(pQ,{scope:n,id:o,children:y.jsx(He.div,{role:"group","aria-labelledby":o,...i,ref:t})})});Az.displayName=Sz;var wz="SelectLabel",Tz=E.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,o=mQ(wz,n);return y.jsx(He.div,{id:o.id,...i,ref:t})});Tz.displayName=wz;var Mf="SelectItem",[yQ,Cz]=rl(Mf),Rz=E.forwardRef((e,t)=>{const{__scopeSelect:n,value:i,disabled:o=!1,textValue:s,...c}=e,u=wa(Mf,n),f=Ta(Mf,n),h=u.value===i,[p,g]=E.useState(s??""),[b,x]=E.useState(!1),w=Ct(t,S=>f.itemRefCallback?.(S,i,o)),A=fr(),C=E.useRef("touch"),L=()=>{o||(u.onValueChange(i),u.onOpenChange(!1))};if(i==="")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(yQ,{scope:n,value:i,disabled:o,textId:A,isSelected:h,onItemTextChange:E.useCallback(S=>{g(R=>R||(S?.textContent??"").trim())},[]),children:y.jsx(mh.ItemSlot,{scope:n,value:i,disabled:o,textValue:p,children:y.jsx(He.div,{role:"option","aria-labelledby":A,"data-highlighted":b?"":void 0,"aria-selected":h&&b,"data-state":h?"checked":"unchecked","aria-disabled":o||void 0,"data-disabled":o?"":void 0,tabIndex:o?void 0:-1,...c,ref:w,onFocus:Xe(c.onFocus,()=>x(!0)),onBlur:Xe(c.onBlur,()=>x(!1)),onClick:Xe(c.onClick,()=>{C.current!=="mouse"&&L()}),onPointerUp:Xe(c.onPointerUp,()=>{C.current==="mouse"&&L()}),onPointerDown:Xe(c.onPointerDown,S=>{C.current=S.pointerType}),onPointerMove:Xe(c.onPointerMove,S=>{C.current=S.pointerType,o?f.onItemLeave?.():C.current==="mouse"&&S.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Xe(c.onPointerLeave,S=>{S.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:Xe(c.onKeyDown,S=>{f.searchRef?.current!==""&&S.key===" "||(nQ.includes(S.key)&&L(),S.key===" "&&S.preventDefault())})})})})});Rz.displayName=Mf;var dc="SelectItemText",Iz=E.forwardRef((e,t)=>{const{__scopeSelect:n,className:i,style:o,...s}=e,c=wa(dc,n),u=Ta(dc,n),f=Cz(dc,n),h=oQ(dc,n),[p,g]=E.useState(null),b=Ct(t,L=>g(L),f.onItemTextChange,L=>u.itemTextRefCallback?.(L,f.value,f.disabled)),x=p?.textContent,w=E.useMemo(()=>y.jsx("option",{value:f.value,disabled:f.disabled,children:x},f.value),[f.disabled,f.value,x]),{onNativeOptionAdd:A,onNativeOptionRemove:C}=h;return dn(()=>(A(w),()=>C(w)),[A,C,w]),y.jsxs(y.Fragment,{children:[y.jsx(He.span,{id:f.textId,...s,ref:b}),f.isSelected&&c.valueNode&&!c.valueNodeHasChildren?So.createPortal(s.children,c.valueNode):null]})});Iz.displayName=dc;var _z="SelectItemIndicator",Nz=E.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e;return Cz(_z,n).isSelected?y.jsx(He.span,{"aria-hidden":!0,...i,ref:t}):null});Nz.displayName=_z;var Jg="SelectScrollUpButton",kz=E.forwardRef((e,t)=>{const n=Ta(Jg,e.__scopeSelect),i=$b(Jg,e.__scopeSelect),[o,s]=E.useState(!1),c=Ct(t,i.onScrollButtonChange);return dn(()=>{if(n.viewport&&n.isPositioned){let u=function(){const h=f.scrollTop>0;s(h)};const f=n.viewport;return u(),f.addEventListener("scroll",u),()=>f.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),o?y.jsx(Dz,{...e,ref:c,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop-f.offsetHeight)}}):null});kz.displayName=Jg;var ev="SelectScrollDownButton",Lz=E.forwardRef((e,t)=>{const n=Ta(ev,e.__scopeSelect),i=$b(ev,e.__scopeSelect),[o,s]=E.useState(!1),c=Ct(t,i.onScrollButtonChange);return dn(()=>{if(n.viewport&&n.isPositioned){let u=function(){const h=f.scrollHeight-f.clientHeight,p=Math.ceil(f.scrollTop)<h;s(p)};const f=n.viewport;return u(),f.addEventListener("scroll",u),()=>f.removeEventListener("scroll",u)}},[n.viewport,n.isPositioned]),o?y.jsx(Dz,{...e,ref:c,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop+f.offsetHeight)}}):null});Lz.displayName=ev;var Dz=E.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:i,...o}=e,s=Ta("SelectScrollButton",n),c=E.useRef(null),u=yh(n),f=E.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return E.useEffect(()=>()=>f(),[f]),dn(()=>{u().find(p=>p.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[u]),y.jsx(He.div,{"aria-hidden":!0,...o,ref:t,style:{flexShrink:0,...o.style},onPointerDown:Xe(o.onPointerDown,()=>{c.current===null&&(c.current=window.setInterval(i,50))}),onPointerMove:Xe(o.onPointerMove,()=>{s.onItemLeave?.(),c.current===null&&(c.current=window.setInterval(i,50))}),onPointerLeave:Xe(o.onPointerLeave,()=>{f()})})}),gQ="SelectSeparator",Oz=E.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e;return y.jsx(He.div,{"aria-hidden":!0,...i,ref:t})});Oz.displayName=gQ;var tv="SelectArrow",vQ=E.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,o=gh(n),s=wa(tv,n),c=Ta(tv,n);return s.open&&c.position==="popper"?y.jsx(QX,{...o,...i,ref:t}):null});vQ.displayName=tv;var bQ="SelectBubbleInput",jz=E.forwardRef(({__scopeSelect:e,value:t,...n},i)=>{const o=E.useRef(null),s=Ct(i,o),c=JX(t);return E.useEffect(()=>{const u=o.current;if(!u)return;const f=window.HTMLSelectElement.prototype,p=Object.getOwnPropertyDescriptor(f,"value").set;if(c!==t&&p){const g=new Event("change",{bubbles:!0});p.call(u,t),u.dispatchEvent(g)}},[c,t]),y.jsx(He.select,{...n,style:{...cz,...n.style},ref:s,defaultValue:t})});jz.displayName=bQ;function zz(e){return e===""||e===void 0}function Mz(e){const t=Cr(e),n=E.useRef(""),i=E.useRef(0),o=E.useCallback(c=>{const u=n.current+c;t(u),function f(h){n.current=h,window.clearTimeout(i.current),h!==""&&(i.current=window.setTimeout(()=>f(""),1e3))}(u)},[t]),s=E.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return E.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,o,s]}function Pz(e,t,n){const o=t.length>1&&Array.from(t).every(h=>h===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let c=EQ(e,Math.max(s,0));o.length===1&&(c=c.filter(h=>h!==n));const f=c.find(h=>h.textValue.toLowerCase().startsWith(o.toLowerCase()));return f!==n?f:void 0}function EQ(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var xQ=uz,SQ=fz,AQ=pz,wQ=mz,TQ=yz,CQ=gz,RQ=xz,IQ=Az,_Q=Tz,NQ=Rz,kQ=Iz,LQ=Nz,DQ=kz,OQ=Lz,jQ=Oz;let zQ=function(e){return e.POPPER="popper",e.ITEM_ALIGNED="item-aligned",e}({});const MQ=xQ,PQ=IQ,BQ=AQ,UQ=({validationStyleEnabled:e=!1,className:t,children:n,...i})=>y.jsxs(SQ,{className:fe("flex w-full items-center justify-between whitespace-nowrap rounded-md border border-input px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1","w-full select-text resize-none rounded-xl border-2 bg-input-background px-2 py-1 text-input-text 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),...i,children:[n,y.jsx(wQ,{asChild:!0,children:y.jsx(zG,{className:"size-4 opacity-50"})})]}),Bz=({className:e,...t})=>y.jsx(DQ,{className:fe("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(OG,{})}),Uz=({className:e,...t})=>y.jsx(OQ,{className:fe("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(I1,{})}),VQ=({className:e,children:t,position:n=zQ.POPPER,...i})=>y.jsx(TQ,{children:y.jsxs(CQ,{className:fe("w-full select-text resize-none rounded-xl border-2 bg-input-background p-1 text-input-text text-sm shadow-none outline-0 transition-all","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 data-[state=closed]:animate-out data-[state=open]:animate-in",n==="popper"&&"data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1",e),position:n,...i,children:[y.jsx(Bz,{}),y.jsx(RQ,{className:fe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),y.jsx(Uz,{})]})}),FQ=({className:e,...t})=>y.jsx(_Q,{className:fe("px-1 py-0.5 font-semibold text-sm",e),...t}),HQ=({className:e,children:t,...n})=>y.jsxs(NQ,{className:fe("relative flex w-full cursor-pointer select-none items-center rounded-lg py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-neutral/10 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(LQ,{children:y.jsx(Ys,{className:"size-4"})})}),y.jsx(kQ,{children:t})]}),GQ=({className:e,...t})=>y.jsx(jQ,{className:fe("-mx-1 my-1 h-px bg-red-300",e),...t}),Te=MQ;Te.Group=PQ;Te.Value=BQ;Te.Trigger=UQ;Te.ScrollUpButton=Bz;Te.ScrollDownButton=Uz;Te.Content=VQ;Te.Label=FQ;Te.Item=HQ;Te.Separator=GQ;const KQ=e=>e?.getAttribute("aria-selected")==="true",Vz=(e,t=KQ,n=!1)=>{const[i,o]=E.useState(null),[s,c]=E.useState(null),u=e.current.length,f=()=>{let h=null;if(s?h=s:h=e.current.find(t)??null,!h){o(b=>({left:0,width:0,...b,opacity:0}));return}const p=h.offsetLeft,g=h.offsetWidth;o({left:p,width:g,opacity:1})};return E.useEffect(()=>{f(),window.addEventListener("resize",f),window.addEventListener("DOMContentLoaded",f);const h=[];e.current.forEach(A=>{if(A){const C=new MutationObserver(L=>{for(const S of L)if(S.type==="attributes"&&S.attributeName==="aria-selected"){f();break}});C.observe(A,{attributes:!0,attributeFilter:["aria-selected"]}),h.push(C)}});const p=[],g=A=>{if(!A)return;const C=new ResizeObserver(()=>{f()});C.observe(A),p.push(C)},b=e.current.find(t)??null;b&&g(b),s&&g(s);const x=A=>{c(A.currentTarget)},w=()=>{c(null)};return n&&e.current.forEach(A=>{A?.addEventListener("mouseenter",x,{passive:!0}),A?.addEventListener("mouseleave",w,{passive:!0})}),()=>{window.removeEventListener("resize",f),window.removeEventListener("DOMContentLoaded",f),h.forEach(A=>{A.disconnect()}),p.forEach(A=>{A.disconnect()}),e.current.forEach(A=>{A?.removeEventListener("mouseenter",x),A?.removeEventListener("mouseleave",w)})}},[e,t,s,u]),{choiceIndicatorPosition:i,calculatePosition:f}},$Q=[{content:"Off",value:!1},{content:"On",value:!0}];let Ht=function(e){return e.PRIMARY="primary",e.SECONDARY="secondary",e.DESTRUCTIVE="destructive",e.NEUTRAL="neutral",e.LIGHT="light",e.DARK="dark",e.TEXT="text",e}({});const qQ=yn("flex w-fit flex-row gap-2 rounded-full border-[1.5px] p-[1.5px]",{variants:{color:{[Ht.PRIMARY]:"border-primary text-primary",[Ht.SECONDARY]:"border-secondary text-secondary",[Ht.DESTRUCTIVE]:"border-destructive bg-destructive text-destructive",[Ht.NEUTRAL]:"border-neutral text-neutral",[Ht.LIGHT]:"border-white text-white",[Ht.DARK]:"border-neutral-800 text-neutral-800",[Ht.TEXT]:"border-text text-text"}},defaultVariants:{color:Ht.PRIMARY}});let Ci=function(e){return e.SM="sm",e.MD="md",e.LG="lg",e}({});const ZQ=yn("z-1 w-full flex-1 cursor-pointer font-medium text-sm transition-all duration-300 ease-in-out aria-selected:cursor-default aria-selected:text-text-opposite motion-reduce:transition-none",{variants:{size:{[Ci.SM]:"px-2 py-1 text-xs",[Ci.MD]:"p-2 text-sm",[Ci.LG]:"p-4 text-base"}},defaultVariants:{size:Ci.MD}}),YQ=yn("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:{[Ht.PRIMARY]:"bg-primary aria-selected:text-text",[Ht.SECONDARY]:"bg-secondary aria-selected:text-text",[Ht.DESTRUCTIVE]:"bg-destructive aria-selected:text-text",[Ht.NEUTRAL]:"bg-neutral aria-selected:text-white",[Ht.LIGHT]:"bg-white aria-selected:text-black",[Ht.DARK]:"bg-neutral-800 aria-selected:text-white",[Ht.TEXT]:"bg-text aria-selected:text-text-opposite"}}}),iu=({choices:e=$Q,value:t,defaultValue:n,onChange:i,color:o=Ht.PRIMARY,size:s=Ci.MD,className:c})=>{const[u,f]=E.useState(t??n??e[0].value),h=E.useRef([]),p=E.useRef(null),{choiceIndicatorPosition:g}=Vz(h),b=x=>{f(x),i?.(x)};return E.useEffect(()=>{t!==void 0&&f(t)},[t]),y.jsx("div",{className:qQ({color:o,className:c}),role:"tablist",children:y.jsxs("div",{className:"relative flex size-full flex-row items-center justify-center",children:[e.map((x,w)=>{const{content:A,value:C,...L}=x,S=typeof C=="string"||typeof C=="number",R=C===u;return E.createElement("button",{...L,className:fe(ZQ({size:s})),key:S?C:w,role:"tab",onClick:()=>b(C),"aria-selected":R,disabled:R,ref:I=>{h.current[w]=I}},A)}),g&&y.jsx("div",{className:fe(YQ({color:o})),style:g,ref:p})]})})},vC=(e,t,n)=>{if(e&&"reportValidity"in e){const i=ge(n,t);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},nv=(e,t)=>{for(const n in t.fields){const i=t.fields[n];i&&i.ref&&"reportValidity"in i.ref?vC(i.ref,n,e):i&&i.refs&&i.refs.forEach(o=>vC(o,n,e))}},bC=(e,t)=>{t.shouldUseNativeValidation&&nv(e,t);const n={};for(const i in e){const o=ge(t.fields,i),s=Object.assign(e[i]||{},{ref:o&&o.ref});if(WQ(t.names||Object.keys(e),i)){const c=Object.assign({},ge(n,i));ft(c,"root",s),ft(n,i,c)}else ft(n,i,s)}return n},WQ=(e,t)=>{const n=EC(t);return e.some(i=>EC(i).match(`^${n}\\.\\d+`))};function EC(e){return e.replace(/\]|\[/g,"")}function de(e,t,n){function i(u,f){var h;Object.defineProperty(u,"_zod",{value:u._zod??{},enumerable:!1}),(h=u._zod).traits??(h.traits=new Set),u._zod.traits.add(e),t(u,f);for(const p in c.prototype)p in u||Object.defineProperty(u,p,{value:c.prototype[p].bind(u)});u._zod.constr=c,u._zod.def=f}const o=n?.Parent??Object;class s extends o{}Object.defineProperty(s,"name",{value:e});function c(u){var f;const h=n?.Parent?new s:this;i(h,u),(f=h._zod).deferred??(f.deferred=[]);for(const p of h._zod.deferred)p();return h}return Object.defineProperty(c,"init",{value:i}),Object.defineProperty(c,Symbol.hasInstance,{value:u=>n?.Parent&&u instanceof n.Parent?!0:u?._zod?.traits?.has(e)}),Object.defineProperty(c,"name",{value:e}),c}class Os extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Fz extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Hz={};function bo(e){return Hz}function XQ(e){const t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,o])=>t.indexOf(+i)===-1).map(([i,o])=>o)}function rv(e,t){return typeof t=="bigint"?t.toString():t}function qb(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function Zb(e){return e==null}function Yb(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const xC=Symbol("evaluating");function gt(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==xC)return i===void 0&&(i=xC,i=n()),i},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function To(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Co(...e){const t={};for(const n of e){const i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function SC(e){return JSON.stringify(e)}const Gz="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Pf(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const QQ=qb(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function Mc(e){if(Pf(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(Pf(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Kz(e){return Mc(e)?{...e}:Array.isArray(e)?[...e]:e}const JQ=new Set(["string","number","symbol"]);function vh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ca(e,t,n){const i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}function je(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 eJ(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function tJ(e,t){const n=e._zod.def,i=Co(e._zod.def,{get shape(){const o={};for(const s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&(o[s]=n.shape[s])}return To(this,"shape",o),o},checks:[]});return Ca(e,i)}function nJ(e,t){const n=e._zod.def,i=Co(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const s in t){if(!(s in n.shape))throw new Error(`Unrecognized key: "${s}"`);t[s]&&delete o[s]}return To(this,"shape",o),o},checks:[]});return Ca(e,i)}function rJ(e,t){if(!Mc(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=Co(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return To(this,"shape",s),s},checks:[]});return Ca(e,o)}function iJ(e,t){if(!Mc(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const i={...e._zod.def.shape,...t};return To(this,"shape",i),i},checks:e._zod.def.checks};return Ca(e,n)}function aJ(e,t){const n=Co(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return To(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return Ca(e,n)}function oJ(e,t,n){const i=Co(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const c in n){if(!(c in o))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(s[c]=e?new e({type:"optional",innerType:o[c]}):o[c])}else for(const c in o)s[c]=e?new e({type:"optional",innerType:o[c]}):o[c];return To(this,"shape",s),s},checks:[]});return Ca(t,i)}function sJ(e,t,n){const i=Co(t._zod.def,{get shape(){const o=t._zod.def.shape,s={...o};if(n)for(const c in n){if(!(c in s))throw new Error(`Unrecognized key: "${c}"`);n[c]&&(s[c]=new e({type:"nonoptional",innerType:o[c]}))}else for(const c in o)s[c]=new e({type:"nonoptional",innerType:o[c]});return To(this,"shape",s),s},checks:[]});return Ca(t,i)}function Is(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}function $z(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function Gd(e){return typeof e=="string"?e:e?.message}function Eo(e,t,n){const i={...e,path:e.path??[]};if(!e.message){const o=Gd(e.inst?._zod.def?.error?.(e))??Gd(t?.error?.(e))??Gd(n.customError?.(e))??Gd(n.localeError?.(e))??"Invalid input";i.message=o}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function Wb(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Pc(...e){const[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}const qz=(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,rv,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Xb=de("$ZodError",qz),bh=de("$ZodError",qz,{Parent:Error});function lJ(e,t=n=>n.message){const n={},i=[];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))):i.push(t(o));return{formErrors:i,fieldErrors:n}}function cJ(e,t=n=>n.message){const n={_errors:[]},i=o=>{for(const s of o.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(c=>i({issues:c}));else if(s.code==="invalid_key")i({issues:s.issues});else if(s.code==="invalid_element")i({issues:s.issues});else if(s.path.length===0)n._errors.push(t(s));else{let c=n,u=0;for(;u<s.path.length;){const f=s.path[u];u===s.path.length-1?(c[f]=c[f]||{_errors:[]},c[f]._errors.push(t(s))):c[f]=c[f]||{_errors:[]},c=c[f],u++}}};return i(e),n}const Eh=e=>(t,n,i,o)=>{const s=i?Object.assign(i,{async:!1}):{async:!1},c=t._zod.run({value:n,issues:[]},s);if(c instanceof Promise)throw new Os;if(c.issues.length){const u=new(o?.Err??e)(c.issues.map(f=>Eo(f,s,bo())));throw Gz(u,o?.callee),u}return c.value},uJ=Eh(bh),xh=e=>async(t,n,i,o)=>{const s=i?Object.assign(i,{async:!0}):{async:!0};let c=t._zod.run({value:n,issues:[]},s);if(c instanceof Promise&&(c=await c),c.issues.length){const u=new(o?.Err??e)(c.issues.map(f=>Eo(f,s,bo())));throw Gz(u,o?.callee),u}return c.value},dJ=xh(bh),Sh=e=>(t,n,i)=>{const o=i?{...i,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},o);if(s instanceof Promise)throw new Os;return s.issues.length?{success:!1,error:new(e??Xb)(s.issues.map(c=>Eo(c,o,bo())))}:{success:!0,data:s.value}},fJ=Sh(bh),Ah=e=>async(t,n,i)=>{const o=i?Object.assign(i,{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(c=>Eo(c,o,bo())))}:{success:!0,data:s.value}},hJ=Ah(bh),pJ=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Eh(e)(t,n,o)},mJ=e=>(t,n,i)=>Eh(e)(t,n,i),yJ=e=>async(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return xh(e)(t,n,o)},gJ=e=>async(t,n,i)=>xh(e)(t,n,i),vJ=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Sh(e)(t,n,o)},bJ=e=>(t,n,i)=>Sh(e)(t,n,i),EJ=e=>async(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Ah(e)(t,n,o)},xJ=e=>async(t,n,i)=>Ah(e)(t,n,i),SJ=/^[cC][^\s-]{8,}$/,AJ=/^[0-9a-z]+$/,wJ=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,TJ=/^[0-9a-vA-V]{20}$/,CJ=/^[A-Za-z0-9]{27}$/,RJ=/^[a-zA-Z0-9_-]{21}$/,IJ=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,_J=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,AC=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,NJ=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,kJ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function LJ(){return new RegExp(kJ,"u")}const DJ=/^(?:(?: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])$/,OJ=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,jJ=/^((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])$/,zJ=/^(([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])$/,MJ=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,Zz=/^[A-Za-z0-9_-]*$/,PJ=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,BJ=/^\+(?:[0-9]){6,14}[0-9]$/,Yz="(?:(?:\\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])))",UJ=new RegExp(`^${Yz}$`);function Wz(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 VJ(e){return new RegExp(`^${Wz(e)}$`)}function FJ(e){const t=Wz({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const i=`${t}(?:${n.join("|")})`;return new RegExp(`^${Yz}T(?:${i})$`)}const HJ=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},GJ=/^[^A-Z]*$/,KJ=/^[^a-z]*$/,ni=de("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),$J=de("$ZodCheckMaxLength",(e,t)=>{var n;ni.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!Zb(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(i._zod.bag.maximum=t.maximum)}),e._zod.check=i=>{const o=i.value;if(o.length<=t.maximum)return;const c=Wb(o);i.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),qJ=de("$ZodCheckMinLength",(e,t)=>{var n;ni.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!Zb(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(i._zod.bag.minimum=t.minimum)}),e._zod.check=i=>{const o=i.value;if(o.length>=t.minimum)return;const c=Wb(o);i.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),ZJ=de("$ZodCheckLengthEquals",(e,t)=>{var n;ni.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!Zb(o)&&o.length!==void 0}),e._zod.onattach.push(i=>{const o=i._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=i=>{const o=i.value,s=o.length;if(s===t.length)return;const c=Wb(o),u=s>t.length;i.issues.push({origin:c,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),wh=de("$ZodCheckStringFormat",(e,t)=>{var n,i;ni.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})}):(i=e._zod).check??(i.check=()=>{})}),YJ=de("$ZodCheckRegex",(e,t)=>{wh.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})}}),WJ=de("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=GJ),wh.init(e,t)}),XJ=de("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=KJ),wh.init(e,t)}),QJ=de("$ZodCheckIncludes",(e,t)=>{ni.init(e,t);const n=vh(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=i,e._zod.onattach.push(o=>{const s=o._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(i)}),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})}}),JJ=de("$ZodCheckStartsWith",(e,t)=>{ni.init(e,t);const n=new RegExp(`^${vh(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),eee=de("$ZodCheckEndsWith",(e,t)=>{ni.init(e,t);const n=new RegExp(`.*${vh(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(i=>{const o=i._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}}),tee=de("$ZodCheckOverwrite",(e,t)=>{ni.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class nee{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 i=t.split(`
293
+ `).filter(c=>c),o=Math.min(...i.map(c=>c.length-c.trimStart().length)),s=i.map(c=>c.slice(o)).map(c=>" ".repeat(this.indent*2)+c);for(const c of s)this.content.push(c)}compile(){const t=Function,n=this?.args,o=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...n,o.join(`
294
+ `))}}const ree={major:4,minor:1,patch:12},Yt=de("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=ree;const i=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&i.unshift(e);for(const o of i)for(const s of o._zod.onattach)s(e);if(i.length===0)(n=e._zod).deferred??(n.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{const o=(c,u,f)=>{let h=Is(c),p;for(const g of u){if(g._zod.def.when){if(!g._zod.def.when(c))continue}else if(h)continue;const b=c.issues.length,x=g._zod.check(c);if(x instanceof Promise&&f?.async===!1)throw new Os;if(p||x instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await x,c.issues.length!==b&&(h||(h=Is(c,b)))});else{if(c.issues.length===b)continue;h||(h=Is(c,b))}}return p?p.then(()=>c):c},s=(c,u,f)=>{if(Is(c))return c.aborted=!0,c;const h=o(u,i,f);if(h instanceof Promise){if(f.async===!1)throw new Os;return h.then(p=>e._zod.parse(p,f))}return e._zod.parse(h,f)};e._zod.run=(c,u)=>{if(u.skipChecks)return e._zod.parse(c,u);if(u.direction==="backward"){const h=e._zod.parse({value:c.value,issues:[]},{...u,skipChecks:!0});return h instanceof Promise?h.then(p=>s(p,c,u)):s(h,c,u)}const f=e._zod.parse(c,u);if(f instanceof Promise){if(u.async===!1)throw new Os;return f.then(h=>o(h,i,u))}return o(f,i,u)}}e["~standard"]={validate:o=>{try{const s=fJ(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return hJ(e,o).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:"zod",version:1}}),Qb=de("$ZodString",(e,t)=>{Yt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??HJ(e._zod.bag),e._zod.parse=(n,i)=>{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}}),At=de("$ZodStringFormat",(e,t)=>{wh.init(e,t),Qb.init(e,t)}),iee=de("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=_J),At.init(e,t)}),aee=de("$ZodUUID",(e,t)=>{if(t.version){const i={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(i===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=AC(i))}else t.pattern??(t.pattern=AC());At.init(e,t)}),oee=de("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=NJ),At.init(e,t)}),see=de("$ZodURL",(e,t)=>{At.init(e,t),e._zod.check=n=>{try{const i=n.value.trim(),o=new URL(i);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:PJ.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})),t.normalize?n.value=o.href:n.value=i;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),lee=de("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=LJ()),At.init(e,t)}),cee=de("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=RJ),At.init(e,t)}),uee=de("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=SJ),At.init(e,t)}),dee=de("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=AJ),At.init(e,t)}),fee=de("$ZodULID",(e,t)=>{t.pattern??(t.pattern=wJ),At.init(e,t)}),hee=de("$ZodXID",(e,t)=>{t.pattern??(t.pattern=TJ),At.init(e,t)}),pee=de("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=CJ),At.init(e,t)}),mee=de("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=FJ(t)),At.init(e,t)}),yee=de("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=UJ),At.init(e,t)}),gee=de("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=VJ(t)),At.init(e,t)}),vee=de("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=IJ),At.init(e,t)}),bee=de("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=DJ),At.init(e,t),e._zod.onattach.push(n=>{const i=n._zod.bag;i.format="ipv4"})}),Eee=de("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=OJ),At.init(e,t),e._zod.onattach.push(n=>{const i=n._zod.bag;i.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})}}}),xee=de("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=jJ),At.init(e,t)}),See=de("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=zJ),At.init(e,t),e._zod.check=n=>{const i=n.value.split("/");try{if(i.length!==2)throw new Error;const[o,s]=i;if(!s)throw new Error;const c=Number(s);if(`${c}`!==s)throw new Error;if(c<0||c>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function Xz(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Aee=de("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=MJ),At.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{Xz(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function wee(e){if(!Zz.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Xz(n)}const Tee=de("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=Zz),At.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{wee(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Cee=de("$ZodE164",(e,t)=>{t.pattern??(t.pattern=BJ),At.init(e,t)});function Ree(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[i]=n;if(!i)return!1;const o=JSON.parse(atob(i));return!("typ"in o&&o?.typ!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const Iee=de("$ZodJWT",(e,t)=>{At.init(e,t),e._zod.check=n=>{Ree(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),_ee=de("$ZodUnknown",(e,t)=>{Yt.init(e,t),e._zod.parse=n=>n}),Nee=de("$ZodNever",(e,t)=>{Yt.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function wC(e,t,n){e.issues.length&&t.issues.push(...$z(n,e.issues)),t.value[n]=e.value}const kee=de("$ZodArray",(e,t)=>{Yt.init(e,t),e._zod.parse=(n,i)=>{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 c=0;c<o.length;c++){const u=o[c],f=t.element._zod.run({value:u,issues:[]},i);f instanceof Promise?s.push(f.then(h=>wC(h,n,c))):wC(f,n,c)}return s.length?Promise.all(s).then(()=>n):n}});function Bf(e,t,n,i){e.issues.length&&t.issues.push(...$z(n,e.issues)),e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function Qz(e){const t=Object.keys(e.shape);for(const i of t)if(!e.shape?.[i]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${i}": expected a Zod schema`);const n=eJ(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Jz(e,t,n,i,o,s){const c=[],u=o.keySet,f=o.catchall._zod,h=f.def.type;for(const p of Object.keys(t)){if(u.has(p))continue;if(h==="never"){c.push(p);continue}const g=f.run({value:t[p],issues:[]},i);g instanceof Promise?e.push(g.then(b=>Bf(b,n,p,t))):Bf(g,n,p,t)}return c.length&&n.issues.push({code:"unrecognized_keys",keys:c,input:t,inst:s}),e.length?Promise.all(e).then(()=>n):n}const Lee=de("$ZodObject",(e,t)=>{if(Yt.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){const u=t.shape;Object.defineProperty(t,"shape",{get:()=>{const f={...u};return Object.defineProperty(t,"shape",{value:f}),f}})}const i=qb(()=>Qz(t));gt(e._zod,"propValues",()=>{const u=t.shape,f={};for(const h in u){const p=u[h]._zod;if(p.values){f[h]??(f[h]=new Set);for(const g of p.values)f[h].add(g)}}return f});const o=Pf,s=t.catchall;let c;e._zod.parse=(u,f)=>{c??(c=i.value);const h=u.value;if(!o(h))return u.issues.push({expected:"object",code:"invalid_type",input:h,inst:e}),u;u.value={};const p=[],g=c.shape;for(const b of c.keys){const w=g[b]._zod.run({value:h[b],issues:[]},f);w instanceof Promise?p.push(w.then(A=>Bf(A,u,b,h))):Bf(w,u,b,h)}return s?Jz(p,h,u,f,i.value,e):p.length?Promise.all(p).then(()=>u):u}}),Dee=de("$ZodObjectJIT",(e,t)=>{Lee.init(e,t);const n=e._zod.parse,i=qb(()=>Qz(t)),o=b=>{const x=new nee(["shape","payload","ctx"]),w=i.value,A=R=>{const I=SC(R);return`shape[${I}]._zod.run({ value: input[${I}], issues: [] }, ctx)`};x.write("const input = payload.value;");const C=Object.create(null);let L=0;for(const R of w.keys)C[R]=`key_${L++}`;x.write("const newResult = {};");for(const R of w.keys){const I=C[R],N=SC(R);x.write(`const ${I} = ${A(R)};`),x.write(`
295
+ if (${I}.issues.length) {
296
+ payload.issues = payload.issues.concat(${I}.issues.map(iss => ({
297
+ ...iss,
298
+ path: iss.path ? [${N}, ...iss.path] : [${N}]
299
+ })));
300
+ }
301
+
302
+
303
+ if (${I}.value === undefined) {
304
+ if (${N} in input) {
305
+ newResult[${N}] = undefined;
306
+ }
307
+ } else {
308
+ newResult[${N}] = ${I}.value;
309
+ }
310
+
311
+ `)}x.write("payload.value = newResult;"),x.write("return payload;");const S=x.compile();return(R,I)=>S(b,R,I)};let s;const c=Pf,u=!Hz.jitless,h=u&&QQ.value,p=t.catchall;let g;e._zod.parse=(b,x)=>{g??(g=i.value);const w=b.value;return c(w)?u&&h&&x?.async===!1&&x.jitless!==!0?(s||(s=o(t.shape)),b=s(b,x),p?Jz([],w,b,x,g,e):b):n(b,x):(b.issues.push({expected:"object",code:"invalid_type",input:w,inst:e}),b)}});function TC(e,t,n,i){for(const s of e)if(s.issues.length===0)return t.value=s.value,t;const o=e.filter(s=>!Is(s));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(s=>s.issues.map(c=>Eo(c,i,bo())))}),t)}const Oee=de("$ZodUnion",(e,t)=>{Yt.init(e,t),gt(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),gt(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),gt(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),gt(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${o.map(s=>Yb(s.source)).join("|")})$`)}});const n=t.options.length===1,i=t.options[0]._zod.run;e._zod.parse=(o,s)=>{if(n)return i(o,s);let c=!1;const u=[];for(const f of t.options){const h=f._zod.run({value:o.value,issues:[]},s);if(h instanceof Promise)u.push(h),c=!0;else{if(h.issues.length===0)return h;u.push(h)}}return c?Promise.all(u).then(f=>TC(f,o,e,s)):TC(u,o,e,s)}}),jee=de("$ZodIntersection",(e,t)=>{Yt.init(e,t),e._zod.parse=(n,i)=>{const o=n.value,s=t.left._zod.run({value:o,issues:[]},i),c=t.right._zod.run({value:o,issues:[]},i);return s instanceof Promise||c instanceof Promise?Promise.all([s,c]).then(([f,h])=>CC(n,f,h)):CC(n,s,c)}});function iv(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(Mc(e)&&Mc(t)){const n=Object.keys(t),i=Object.keys(e).filter(s=>n.indexOf(s)!==-1),o={...e,...t};for(const s of i){const c=iv(e[s],t[s]);if(!c.valid)return{valid:!1,mergeErrorPath:[s,...c.mergeErrorPath]};o[s]=c.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 i=0;i<e.length;i++){const o=e[i],s=t[i],c=iv(o,s);if(!c.valid)return{valid:!1,mergeErrorPath:[i,...c.mergeErrorPath]};n.push(c.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function CC(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Is(e))return e;const i=iv(t.value,n.value);if(!i.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(i.mergeErrorPath)}`);return e.value=i.data,e}const zee=de("$ZodEnum",(e,t)=>{Yt.init(e,t);const n=XQ(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(o=>JQ.has(typeof o)).map(o=>typeof o=="string"?vh(o):o.toString()).join("|")})$`),e._zod.parse=(o,s)=>{const c=o.value;return i.has(c)||o.issues.push({code:"invalid_value",values:n,input:c,inst:e}),o}}),Mee=de("$ZodTransform",(e,t)=>{Yt.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Fz(e.constructor.name);const o=t.transform(n.value,n);if(i.async)return(o instanceof Promise?o:Promise.resolve(o)).then(c=>(n.value=c,n));if(o instanceof Promise)throw new Os;return n.value=o,n}});function RC(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const Pee=de("$ZodOptional",(e,t)=>{Yt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",gt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),gt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Yb(n.source)})?$`):void 0}),e._zod.parse=(n,i)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>RC(s,n.value)):RC(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),Bee=de("$ZodNullable",(e,t)=>{Yt.init(e,t),gt(e._zod,"optin",()=>t.innerType._zod.optin),gt(e._zod,"optout",()=>t.innerType._zod.optout),gt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Yb(n.source)}|null)$`):void 0}),gt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,i)=>n.value===null?n:t.innerType._zod.run(n,i)}),Uee=de("$ZodDefault",(e,t)=>{Yt.init(e,t),e._zod.optin="optional",gt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>IC(s,t)):IC(o,t)}});function IC(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Vee=de("$ZodPrefault",(e,t)=>{Yt.init(e,t),e._zod.optin="optional",gt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>(i.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,i))}),Fee=de("$ZodNonOptional",(e,t)=>{Yt.init(e,t),gt(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(i=>i!==void 0)):void 0}),e._zod.parse=(n,i)=>{const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>_C(s,e)):_C(o,e)}});function _C(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 Hee=de("$ZodCatch",(e,t)=>{Yt.init(e,t),gt(e._zod,"optin",()=>t.innerType._zod.optin),gt(e._zod,"optout",()=>t.innerType._zod.optout),gt(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(s=>(n.value=s.value,s.issues.length&&(n.value=t.catchValue({...n,error:{issues:s.issues.map(c=>Eo(c,i,bo()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>Eo(s,i,bo()))},input:n.value}),n.issues=[]),n)}}),Gee=de("$ZodPipe",(e,t)=>{Yt.init(e,t),gt(e._zod,"values",()=>t.in._zod.values),gt(e._zod,"optin",()=>t.in._zod.optin),gt(e._zod,"optout",()=>t.out._zod.optout),gt(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,i)=>{if(i.direction==="backward"){const s=t.out._zod.run(n,i);return s instanceof Promise?s.then(c=>Kd(c,t.in,i)):Kd(s,t.in,i)}const o=t.in._zod.run(n,i);return o instanceof Promise?o.then(s=>Kd(s,t.out,i)):Kd(o,t.out,i)}});function Kd(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Kee=de("$ZodReadonly",(e,t)=>{Yt.init(e,t),gt(e._zod,"propValues",()=>t.innerType._zod.propValues),gt(e._zod,"values",()=>t.innerType._zod.values),gt(e._zod,"optin",()=>t.innerType._zod.optin),gt(e._zod,"optout",()=>t.innerType._zod.optout),e._zod.parse=(n,i)=>{if(i.direction==="backward")return t.innerType._zod.run(n,i);const o=t.innerType._zod.run(n,i);return o instanceof Promise?o.then(NC):NC(o)}});function NC(e){return e.value=Object.freeze(e.value),e}const $ee=de("$ZodCustom",(e,t)=>{ni.init(e,t),Yt.init(e,t),e._zod.parse=(n,i)=>n,e._zod.check=n=>{const i=n.value,o=t.fn(i);if(o instanceof Promise)return o.then(s=>kC(s,n,i,e));kC(o,n,i,e)}});function kC(e,t,n,i){if(!e){const o={code:"custom",input:n,inst:i,path:[...i._zod.def.path??[]],continue:!i._zod.def.abort};i._zod.def.params&&(o.params=i._zod.def.params),t.issues.push(Pc(o))}}class qee{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const i=n[0];if(this._map.set(t,i),i&&typeof i=="object"&&"id"in i){if(this._idmap.has(i.id))throw new Error(`ID ${i.id} already exists in the registry`);this._idmap.set(i.id,t)}return this}clear(){return this._map=new WeakMap,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 i={...this.get(n)??{}};delete i.id;const o={...i,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Zee(){return new qee}const $d=Zee();function Yee(e,t){return new e({type:"string",...je(t)})}function Wee(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...je(t)})}function LC(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...je(t)})}function Xee(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...je(t)})}function Qee(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...je(t)})}function Jee(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...je(t)})}function ete(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...je(t)})}function tte(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...je(t)})}function nte(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...je(t)})}function rte(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...je(t)})}function ite(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...je(t)})}function ate(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...je(t)})}function ote(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...je(t)})}function ste(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...je(t)})}function lte(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...je(t)})}function cte(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...je(t)})}function ute(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...je(t)})}function dte(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...je(t)})}function fte(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...je(t)})}function hte(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...je(t)})}function pte(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...je(t)})}function mte(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...je(t)})}function yte(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...je(t)})}function gte(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...je(t)})}function vte(e,t){return new e({type:"string",format:"date",check:"string_format",...je(t)})}function bte(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...je(t)})}function Ete(e,t){return new e({type:"string",format:"duration",check:"string_format",...je(t)})}function xte(e){return new e({type:"unknown"})}function Ste(e,t){return new e({type:"never",...je(t)})}function eM(e,t){return new $J({check:"max_length",...je(t),maximum:e})}function Uf(e,t){return new qJ({check:"min_length",...je(t),minimum:e})}function tM(e,t){return new ZJ({check:"length_equals",...je(t),length:e})}function Ate(e,t){return new YJ({check:"string_format",format:"regex",...je(t),pattern:e})}function wte(e){return new WJ({check:"string_format",format:"lowercase",...je(e)})}function Tte(e){return new XJ({check:"string_format",format:"uppercase",...je(e)})}function Cte(e,t){return new QJ({check:"string_format",format:"includes",...je(t),includes:e})}function Rte(e,t){return new JJ({check:"string_format",format:"starts_with",...je(t),prefix:e})}function Ite(e,t){return new eee({check:"string_format",format:"ends_with",...je(t),suffix:e})}function au(e){return new tee({check:"overwrite",tx:e})}function _te(e){return au(t=>t.normalize(e))}function Nte(){return au(e=>e.trim())}function kte(){return au(e=>e.toLowerCase())}function Lte(){return au(e=>e.toUpperCase())}function Dte(e,t,n){return new e({type:"array",element:t,...je(n)})}function Ote(e,t,n){return new e({type:"custom",check:"custom",fn:t,...je(n)})}function jte(e){const t=zte(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(Pc(i,n.value,t._zod.def));else{const o=i;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(Pc(o))}},e(n.value,n)));return t}function zte(e,t){const n=new ni({check:"custom",...je(t)});return n._zod.check=e,n}function DC(e,t){try{var n=e()}catch(i){return t(i)}return n&&n.then?n.then(void 0,t):n}function Mte(e,t){for(var n={};e.length;){var i=e[0],o=i.code,s=i.message,c=i.path.join(".");if(!n[c])if("unionErrors"in i){var u=i.unionErrors[0].errors[0];n[c]={message:u.message,type:u.code}}else n[c]={message:s,type:o};if("unionErrors"in i&&i.unionErrors.forEach(function(p){return p.errors.forEach(function(g){return e.push(g)})}),t){var f=n[c].types,h=f&&f[i.code];n[c]=Ib(c,t,n,o,h?[].concat(h,i.message):i.message)}e.shift()}return n}function Pte(e,t){for(var n={};e.length;){var i=e[0],o=i.code,s=i.message,c=i.path.join(".");if(!n[c])if(i.code==="invalid_union"&&i.errors.length>0){var u=i.errors[0][0];n[c]={message:u.message,type:u.code}}else n[c]={message:s,type:o};if(i.code==="invalid_union"&&i.errors.forEach(function(p){return p.forEach(function(g){return e.push(g)})}),t){var f=n[c].types,h=f&&f[i.code];n[c]=Ib(c,t,n,o,h?[].concat(h,i.message):i.message)}e.shift()}return n}function Bte(e,t,n){if(n===void 0&&(n={}),function(i){return"_def"in i&&typeof i._def=="object"&&"typeName"in i._def}(e))return function(i,o,s){try{return Promise.resolve(DC(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](i,t)).then(function(c){return s.shouldUseNativeValidation&&nv({},s),{errors:{},values:n.raw?Object.assign({},i):c}})},function(c){if(function(u){return Array.isArray(u?.issues)}(c))return{values:{},errors:bC(Mte(c.errors,!s.shouldUseNativeValidation&&s.criteriaMode==="all"),s)};throw c}))}catch(c){return Promise.reject(c)}};if(function(i){return"_zod"in i&&typeof i._zod=="object"}(e))return function(i,o,s){try{return Promise.resolve(DC(function(){return Promise.resolve((n.mode==="sync"?uJ:dJ)(e,i,t)).then(function(c){return s.shouldUseNativeValidation&&nv({},s),{errors:{},values:n.raw?Object.assign({},i):c}})},function(c){if(function(u){return u instanceof Xb}(c))return{values:{},errors:bC(Pte(c.issues,!s.shouldUseNativeValidation&&s.criteriaMode==="all"),s)};throw c}))}catch(c){return Promise.reject(c)}};throw new Error("Invalid input: not a Zod schema")}const Vy=async e=>e&&typeof e.then=="function"?await e:e,Ute=({schema:e,onSubmit:t,onSubmitSuccess:n,onSubmitError:i,className:o,children:s,autoComplete:c,...u})=>{const f=async h=>{const p=e?.safeParse(h)??{success:!0,data:void 0};await Vy(t?.(h)),p.success?await Vy(n?.(p.data)):await Vy(i?.(new Error(p.error.issues.map(g=>g.message).join(", "))))};return y.jsx(qZ,{...u,children:y.jsx("form",{className:fe("flex size-full flex-col gap-y-6",o),onSubmit:u.handleSubmit(f),autoComplete:c?"on":"off",noValidate:!0,children:s})})},Vte=(e,t)=>{const n=fY({resolver:Bte(e),...t});return{form:n,isSubmitting:n.formState.isSubmitting,isSubmitted:n.formState.isSubmitted,isLoading:n.formState.isLoading,isValid:n.formState.isValid}},Fte=({className:e,...t})=>{const{error:n,formItemId:i}=Aa();return y.jsx(Bg,{className:fe("mb-2",n&&"text-error",e),htmlFor:i,...t})},Hte=({isRequired:e})=>e?y.jsx("span",{"aria-label":"Asterisk meaning the field is required",children:"*"}):y.jsx(y.Fragment,{}),nM=({children:e,isRequired:t,info:n,htmlFor:i,className:o})=>y.jsxs("div",{className:"ml-1 flex gap-1 align-middle text-base leading-none",children:[e&&y.jsxs(Fte,{htmlFor:i,id:`${i}-label`,className:Wf("font-bold",o),children:[e,y.jsx(Hte,{isRequired:t})]}),n&&y.jsx(pY,{content:n})]}),Th=({label:e,description:t,isRequired:n,info:i,children:o,showErrorMessage:s=!0,htmlFor:c})=>y.jsxs(Fe.Item,{id:c,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(nM,{isRequired:n,info:i,htmlFor:c,children:e}),t&&y.jsx(Fe.Description,{children:t})]}),y.jsx(Fe.Control,{children:o}),s&&y.jsx(Fe.Message,{"data-testid":"error-message"})]}),Gte=({field:e,name:t,label:n,Element:i,isRequired:o=!1,info:s,description:c,showErrorMessage:u=!0,...f})=>{const{error:h}=Aa(),{value:p,onChange:g,...b}=e??{},x=f,w=x.value!==void 0?x.value:p??"",A=(...C)=>{typeof g=="function"&&g(...C),typeof x.onChange=="function"&&x.onChange(...C)};return y.jsx(Th,{htmlFor:t,label:n,description:c,isRequired:o,info:s,showErrorMessage:u,"aria-invalid":!!h,children:y.jsx(i,{"data-testid":"element",id:t,...b,...f,value:w,onChange:A,children:f.children})})},Ra=e=>{const{control:t}=Sa();return y.jsx(Fe.Field,{control:t,name:e.name,render:({field:n})=>y.jsx(Gte,{...e,field:n})})},Kte=e=>y.jsx(Ra,{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:nj,...e}),$te=e=>y.jsx(Ra,{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:Pj,...e}),qte=e=>y.jsx(Ra,{id:e.name,"data-testid":e.name,Element:Js,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,...e}),Zte=({autoComplete:e,...t})=>y.jsx(Ra,{Element:HZ,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}),Yte=e=>y.jsx(Ra,{Element:yj,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}),Wte=e=>y.jsx(Ra,{Element:kb,id:e.name,"data-testid":e.name,...e}),Xte=({inputLabel:e,...t})=>y.jsx(FZ,{...t,label:e}),Qte=({autoComplete:e,...t})=>y.jsx(Ra,{Element:Xte,id:t.name,"data-testid":t.name,autoComplete:e,minLength:6,maxLength:255,...t}),Jte=({name:e,description:t,label:n,isRequired:i,info:o,showErrorMessage:s,children:c,...u})=>{const{control:f}=Sa();return y.jsx(Fe.Field,{control:f,name:e,render:({field:h})=>{const{error:p}=Aa();return y.jsx(Th,{htmlFor:e,label:n,description:t,isRequired:i,info:o,showErrorMessage:s,"aria-invalid":!!p,children:y.jsx(pn,{onValueChange:h.onChange,values:h.value,...u,children:c})})}})},ene=({name:e,description:t,label:n,isRequired:i,info:o,showErrorMessage:s,children:c,...u})=>{const{control:f}=Sa();return y.jsx(Fe.Field,{control:f,name:e,render:({field:h})=>{const{error:p}=Aa();return y.jsx(Th,{htmlFor:e,label:n,description:t,isRequired:i,info:o,showErrorMessage:s,"aria-invalid":!!p,children:y.jsx(Te,{onValueChange:h.onChange,defaultValue:h.value,...u,children:c})})}})},tne=({name:e,description:t,label:n,isRequired:i,info:o,showErrorMessage:s,children:c,...u})=>{const{control:f}=Sa();return y.jsx(Fe.Field,{control:f,name:e,render:({field:h})=>{const{error:p}=Aa();return y.jsx(Th,{htmlFor:e,label:n,description:t,isRequired:i,info:o,showErrorMessage:s,"aria-invalid":!!p,children:y.jsx(iu,{...h,...u,children:c})})}})},nne=e=>{const{error:t,formItemId:n,formDescriptionId:i,formMessageId:o}=Aa();return y.jsx(_K,{id:n,"aria-describedby":t?`${i} ${o}`:`${i}`,"aria-invalid":!!t,...e})},rne=e=>{const{formDescriptionId:t}=Aa();return y.jsx("p",{className:"text-neutral text-sm",id:t,...e})},ine=({children:e,...t})=>{const{error:n,formMessageId:i}=Aa(),o=n?String(n?.message??""):e;return o?y.jsx("p",{className:"font-medium text-error text-xs",role:"alert",id:i,...t,children:o}):null},Fe=Ute;Fe.Description=rne;Fe.Control=nne;Fe.Field=hY;Fe.Item=GZ;Fe.Label=nM;Fe.Message=ine;Fe.Element=Ra;Fe.Input=qte;Fe.InputPassword=Zte;Fe.Checkbox=Qte;Fe.TextArea=Yte;Fe.AutoSizedTextArea=Wte;Fe.Button=lt;Fe.Select=ene;Fe.MultiSelect=Jte;Fe.EditableFieldInput=Kte;Fe.EditableFieldTextArea=$te;Fe.SwitchSelector=tne;const rM=({dictionary:e,mode:t,className:n,onDelete:i,onSave:o,...s})=>{const[c,u]=E.useState(!1),{setLocaleDictionary:f}=$f(),{mutate:h,isPending:p}=pW(),{mutate:g,isPending:b}=bW(),{mutate:x,isPending:w}=hW(),A=b||w,{editedContent:C,restoreEditedContent:L}=En(),{deleteButton:S,resetButton:R,saveButton:I,publishButton:N,downloadButton:_,confirmation:k}=jt("save-dictionary-details"),{isAuthenticated:O}=ch(),U=C?.[e.localId],F=U&&JSON.stringify(U)!==JSON.stringify(e),H=typeof e?.id<"u",te=async()=>{C?.[e.localId]&&g({dictionary:{...e,...C?.[e.localId]}},{onSuccess:()=>{f(C?.[e.localId]),L(e.localId),o?.()}})},ce=()=>{C?.[e.localId]&&x([{...e,...C?.[e.localId]}],{onSuccess:oe=>{oe&&(f(C?.[e.localId]),L(e.localId),o?.())}})},X=()=>{e.id&&h(e.id.toString(),{onSuccess:oe=>{oe&&i?.()}})};return y.jsxs(y.Fragment,{children:[y.jsx(Sb,{isOpen:c,title:k.title.value,size:xb.MD,children:y.jsxs("form",{className:"size-full px-3",children:[y.jsx("p",{className:"py-4 text-neutral text-sm",children:k.message}),y.jsxs("div",{className:"mt-12 flex justify-end gap-2 max-md:flex-col",children:[y.jsx(Fe.Button,{label:k.cancelButton.label.value,disabled:!F||A,color:Pe.TEXT,className:"max-md:w-full",variant:Ve.OUTLINE,onClick:()=>u(!1),children:k.cancelButton.text}),y.jsx(Fe.Button,{label:k.confirmButton.label.value,disabled:!F||A,Icon:$A,color:Pe.TEXT,className:"max-md:w-full",isLoading:w,onClick:te,children:k.confirmButton.text})]})]})}),y.jsxs("form",{className:fe("flex justify-end gap-2 max-md:flex-col",n),...s,children:[t.includes("remote")&&H&&i&&O&&y.jsx(Fe.Button,{label:S.label.value,Icon:Qf,color:Pe.ERROR,variant:Ve.OUTLINE,className:"max-md:w-full",isLoading:p,onClick:X,children:S.text}),F&&y.jsx(Fe.Button,{label:R.label.value,disabled:!F,Icon:oK,variant:Ve.OUTLINE,color:Pe.TEXT,className:"max-md:w-full",onClick:()=>L(e.localId),children:R.text}),t.includes("local")&&y.jsx(Fe.Button,{label:_.label.value,disabled:!F||A,Icon:FG,color:Pe.TEXT,variant:O?Ve.OUTLINE:Ve.DEFAULT,className:"max-md:w-full",isLoading:b,onClick:()=>u(!0),children:_.text}),t.includes("remote")&&O&&!H&&y.jsx(Fe.Button,{label:N.label.value,disabled:A,Icon:RG,color:Pe.TEXT,className:"max-md:w-full",isLoading:w,onClick:ce,children:N.text}),t.includes("remote")&&O&&H&&F&&y.jsx(Fe.Button,{label:I.label.value,disabled:!F||A,Icon:$A,color:"text",className:"max-md:w-full",isLoading:w,onClick:ce,children:I.text})]})]})},iM=({level:e,title:t,description:n,children:i,rightParam:o,isSelected:s,...c})=>y.jsx("div",{className:fe("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"),...c,children:y.jsx(k1,{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:fe(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:"pl-3 text-card text-sm",children:n})]}),children:i})}),ane=e=>{const{keyPath:t,section:n,onFocusKeyPath:i,focusedKeyPath:o=[]}=e;return n.map((s,c)=>{const u={key:c,type:G.Array},f=[...t,u];return y.jsx(iM,{level:t.length,title:`${c}`,description:"",isSelected:Fc(f,o),onClick:h=>{h.stopPropagation(),i(f)},children:y.jsx(Ia,{...e,keyPath:f,section:s})},JSON.stringify(s))})},one=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(i=>!Jb.includes(i)).map(i=>{const o={type:G.Condition,key:i},s=[...t,o],c=n[G.Condition][i];return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"flex items-center font-bold",children:i}),E.createElement(Ia,{...e,key:i,keyPath:s,section:c})]})})})},sne=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(i=>!Jb.includes(i)).map(i=>{const o={type:G.Enumeration,key:i},s=[...t,o],c=n[G.Enumeration][i];return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"flex items-center font-bold",children:i}),E.createElement(Ia,{...e,key:i,keyPath:s,section:c})]})})})},aM=({keyPath:e,section:t,editedContent:n,editedContentValue:i,onContentChange:o,onFocusKeyPath:s,renderSection:c})=>{const u=i??Zn(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 f=e.length,h=String(u??t);return y.jsx("span",{role:"button",tabIndex:0,className:fe("w-full rounded-md p-2 text-left transition","hover:bg-card/30 [&:has(.section:hover)]:bg-transparent",f===2&&"hover:bg-card/30",f>=3&&""),onClick:p=>{p.stopPropagation(),s(e)},children:typeof c=="function"?c(h):y.jsx(Pj,{"aria-label":"Editable field",defaultValue:h,onSave:p=>o({keyPath:e,newValue:p}),onCancel:()=>null})})},lne=e=>{const{keyPath:t,section:n}=e,{addEditedContent:i}=En(),o=Zn(e.editedContent,t),s=n[G.File],{content:c}=n,u=[...t,{type:G.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(aM,{...e,keyPath:u,section:c,editedContentValue:o?.content,onContentChange:f=>{i(e.dictionary.localId,{...n,content:f.newValue},t)}})]})},cne=e=>{const{keyPath:t,section:n}=e,i=[...t,{type:G.Insertion}],o=n[G.Insertion];return y.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:y.jsx(Ia,{...e,keyPath:i,section:o})})},une=e=>{const{keyPath:t,section:n}=e,i=[...t,{type:G.Markdown}],o=n[G.Markdown];return y.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:y.jsx(Ia,{...e,keyPath:i,section:o})})},dne=e=>{const{keyPath:t,section:n,focusedKeyPath:i=[],onFocusKeyPath:o}=e;return Object.keys(n).filter(s=>!Jb.includes(s)).map(s=>{const c={key:s,type:G.Object},u=[...t,c];return y.jsx(iM,{level:t.length,title:s,description:"",isSelected:Fc(u,i),onClick:f=>{f.stopPropagation(),o(u)},children:y.jsx(Ia,{...e,keyPath:u,section:n[s]})},s)})},fne=e=>{const{keyPath:t,section:n,locale:i}=e,o={type:G.Translation,key:i},s=[...t,o],c=n.translation[i];return y.jsx(Ia,{...e,keyPath:s,section:c})},Jb=["filePath","id","nodeType"],Ia=e=>{const t=Zn(e.editedContent,e.keyPath)??e.section,n=Hs(t);if(typeof t=="object")return n===G.ReactNode?y.jsx("span",{className:"text-neutral text-xs",children:"React node not editable"}):n===G.Nested?y.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:"[Nested] Dictionary"}):n===G.Markdown?y.jsx(une,{...e,section:t}):n===G.Translation?y.jsx(fne,{...e,section:t}):n===G.Enumeration?y.jsx(sne,{...e,section:t}):n===G.Condition?y.jsx(one,{...e,section:t}):n===G.Insertion?y.jsx(cne,{...e,section:t}):n===G.Array?y.jsx(ane,{...e,section:t}):n===G.File?y.jsx(lne,{...e,section:t}):y.jsx(dne,{...e,section:t});if(typeof t=="string")return y.jsx(aM,{...e,section:t})},hne=({dictionary:e,mode:t,onDelete:n,...i})=>{const{editedContent:o,addEditedContent:s}=En(),{focusedContent:c,setFocusedContentKeyPath:u,setFocusedContent:f}=ba(),h=c?.keyPath;return y.jsxs("div",{className:"flex flex-1 flex-col justify-between gap-2",children:[y.jsx("div",{children:E.createElement(Ia,{...i,keyPath:[],dictionary:e,key:JSON.stringify((o?.[e.localId]??e).content),editedContent:o?.[e.localId]?.content,focusedKeyPath:h,section:e.content,onContentChange:p=>{s(e.localId,p.newValue,p.keyPath)},onFocusKeyPath:u})}),y.jsx(rM,{dictionary:e,mode:t,className:"mb-4 flex-col",onDelete:()=>{f(null),n?.()}})]})},pne=de("ZodISODateTime",(e,t)=>{mee.init(e,t),Rt.init(e,t)});function mne(e){return gte(pne,e)}const yne=de("ZodISODate",(e,t)=>{yee.init(e,t),Rt.init(e,t)});function gne(e){return vte(yne,e)}const vne=de("ZodISOTime",(e,t)=>{gee.init(e,t),Rt.init(e,t)});function bne(e){return bte(vne,e)}const Ene=de("ZodISODuration",(e,t)=>{vee.init(e,t),Rt.init(e,t)});function xne(e){return Ete(Ene,e)}const Sne=(e,t)=>{Xb.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>cJ(e,n)},flatten:{value:n=>lJ(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,rv,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,rv,2)}},isEmpty:{get(){return e.issues.length===0}}})},pr=de("ZodError",Sne,{Parent:Error}),Ane=Eh(pr),wne=xh(pr),Tne=Sh(pr),Cne=Ah(pr),Rne=pJ(pr),Ine=mJ(pr),_ne=yJ(pr),Nne=gJ(pr),kne=vJ(pr),Lne=bJ(pr),Dne=EJ(pr),One=xJ(pr),en=de("ZodType",(e,t)=>(Yt.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Co(t,{checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]})),e.clone=(n,i)=>Ca(e,n,i),e.brand=()=>e,e.register=(n,i)=>(n.add(e,i),e),e.parse=(n,i)=>Ane(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>Tne(e,n,i),e.parseAsync=async(n,i)=>wne(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>Cne(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>Rne(e,n,i),e.decode=(n,i)=>Ine(e,n,i),e.encodeAsync=async(n,i)=>_ne(e,n,i),e.decodeAsync=async(n,i)=>Nne(e,n,i),e.safeEncode=(n,i)=>kne(e,n,i),e.safeDecode=(n,i)=>Lne(e,n,i),e.safeEncodeAsync=async(n,i)=>Dne(e,n,i),e.safeDecodeAsync=async(n,i)=>One(e,n,i),e.refine=(n,i)=>e.check(wre(n,i)),e.superRefine=n=>e.check(Tre(n)),e.overwrite=n=>e.check(au(n)),e.optional=()=>zC(e),e.nullable=()=>MC(e),e.nullish=()=>zC(MC(e)),e.nonoptional=n=>gre(e,n),e.array=()=>av(e),e.or=n=>ore([e,n]),e.and=n=>lre(e,n),e.transform=n=>PC(e,dre(n)),e.default=n=>pre(e,n),e.prefault=n=>yre(e,n),e.catch=n=>bre(e,n),e.pipe=n=>PC(e,n),e.readonly=()=>Sre(e),e.describe=n=>{const i=e.clone();return $d.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return $d.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return $d.get(e);const i=e.clone();return $d.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),oM=de("_ZodString",(e,t)=>{Qb.init(e,t),en.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=(...i)=>e.check(Ate(...i)),e.includes=(...i)=>e.check(Cte(...i)),e.startsWith=(...i)=>e.check(Rte(...i)),e.endsWith=(...i)=>e.check(Ite(...i)),e.min=(...i)=>e.check(Uf(...i)),e.max=(...i)=>e.check(eM(...i)),e.length=(...i)=>e.check(tM(...i)),e.nonempty=(...i)=>e.check(Uf(1,...i)),e.lowercase=i=>e.check(wte(i)),e.uppercase=i=>e.check(Tte(i)),e.trim=()=>e.check(Nte()),e.normalize=(...i)=>e.check(_te(...i)),e.toLowerCase=()=>e.check(kte()),e.toUpperCase=()=>e.check(Lte())}),jne=de("ZodString",(e,t)=>{Qb.init(e,t),oM.init(e,t),e.email=n=>e.check(Wee(zne,n)),e.url=n=>e.check(tte(Mne,n)),e.jwt=n=>e.check(yte(Qne,n)),e.emoji=n=>e.check(nte(Pne,n)),e.guid=n=>e.check(LC(OC,n)),e.uuid=n=>e.check(Xee(qd,n)),e.uuidv4=n=>e.check(Qee(qd,n)),e.uuidv6=n=>e.check(Jee(qd,n)),e.uuidv7=n=>e.check(ete(qd,n)),e.nanoid=n=>e.check(rte(Bne,n)),e.guid=n=>e.check(LC(OC,n)),e.cuid=n=>e.check(ite(Une,n)),e.cuid2=n=>e.check(ate(Vne,n)),e.ulid=n=>e.check(ote(Fne,n)),e.base64=n=>e.check(hte(Yne,n)),e.base64url=n=>e.check(pte(Wne,n)),e.xid=n=>e.check(ste(Hne,n)),e.ksuid=n=>e.check(lte(Gne,n)),e.ipv4=n=>e.check(cte(Kne,n)),e.ipv6=n=>e.check(ute($ne,n)),e.cidrv4=n=>e.check(dte(qne,n)),e.cidrv6=n=>e.check(fte(Zne,n)),e.e164=n=>e.check(mte(Xne,n)),e.datetime=n=>e.check(mne(n)),e.date=n=>e.check(gne(n)),e.time=n=>e.check(bne(n)),e.duration=n=>e.check(xne(n))});function sc(e){return Yee(jne,e)}const Rt=de("ZodStringFormat",(e,t)=>{At.init(e,t),oM.init(e,t)}),zne=de("ZodEmail",(e,t)=>{oee.init(e,t),Rt.init(e,t)}),OC=de("ZodGUID",(e,t)=>{iee.init(e,t),Rt.init(e,t)}),qd=de("ZodUUID",(e,t)=>{aee.init(e,t),Rt.init(e,t)}),Mne=de("ZodURL",(e,t)=>{see.init(e,t),Rt.init(e,t)}),Pne=de("ZodEmoji",(e,t)=>{lee.init(e,t),Rt.init(e,t)}),Bne=de("ZodNanoID",(e,t)=>{cee.init(e,t),Rt.init(e,t)}),Une=de("ZodCUID",(e,t)=>{uee.init(e,t),Rt.init(e,t)}),Vne=de("ZodCUID2",(e,t)=>{dee.init(e,t),Rt.init(e,t)}),Fne=de("ZodULID",(e,t)=>{fee.init(e,t),Rt.init(e,t)}),Hne=de("ZodXID",(e,t)=>{hee.init(e,t),Rt.init(e,t)}),Gne=de("ZodKSUID",(e,t)=>{pee.init(e,t),Rt.init(e,t)}),Kne=de("ZodIPv4",(e,t)=>{bee.init(e,t),Rt.init(e,t)}),$ne=de("ZodIPv6",(e,t)=>{Eee.init(e,t),Rt.init(e,t)}),qne=de("ZodCIDRv4",(e,t)=>{xee.init(e,t),Rt.init(e,t)}),Zne=de("ZodCIDRv6",(e,t)=>{See.init(e,t),Rt.init(e,t)}),Yne=de("ZodBase64",(e,t)=>{Aee.init(e,t),Rt.init(e,t)}),Wne=de("ZodBase64URL",(e,t)=>{Tee.init(e,t),Rt.init(e,t)}),Xne=de("ZodE164",(e,t)=>{Cee.init(e,t),Rt.init(e,t)}),Qne=de("ZodJWT",(e,t)=>{Iee.init(e,t),Rt.init(e,t)}),Jne=de("ZodUnknown",(e,t)=>{_ee.init(e,t),en.init(e,t)});function jC(){return xte(Jne)}const ere=de("ZodNever",(e,t)=>{Nee.init(e,t),en.init(e,t)});function tre(e){return Ste(ere,e)}const nre=de("ZodArray",(e,t)=>{kee.init(e,t),en.init(e,t),e.element=t.element,e.min=(n,i)=>e.check(Uf(n,i)),e.nonempty=n=>e.check(Uf(1,n)),e.max=(n,i)=>e.check(eM(n,i)),e.length=(n,i)=>e.check(tM(n,i)),e.unwrap=()=>e.element});function av(e,t){return Dte(nre,e,t)}const rre=de("ZodObject",(e,t)=>{Dee.init(e,t),en.init(e,t),gt(e,"shape",()=>t.shape),e.keyof=()=>cre(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:jC()}),e.loose=()=>e.clone({...e._zod.def,catchall:jC()}),e.strict=()=>e.clone({...e._zod.def,catchall:tre()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>rJ(e,n),e.safeExtend=n=>iJ(e,n),e.merge=n=>aJ(e,n),e.pick=n=>tJ(e,n),e.omit=n=>nJ(e,n),e.partial=(...n)=>oJ(sM,e,n[0]),e.required=(...n)=>sJ(lM,e,n[0])});function ire(e,t){const n={type:"object",shape:e??{},...je(t)};return new rre(n)}const are=de("ZodUnion",(e,t)=>{Oee.init(e,t),en.init(e,t),e.options=t.options});function ore(e,t){return new are({type:"union",options:e,...je(t)})}const sre=de("ZodIntersection",(e,t)=>{jee.init(e,t),en.init(e,t)});function lre(e,t){return new sre({type:"intersection",left:e,right:t})}const ov=de("ZodEnum",(e,t)=>{zee.init(e,t),en.init(e,t),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(i,o)=>{const s={};for(const c of i)if(n.has(c))s[c]=t.entries[c];else throw new Error(`Key ${c} not found in enum`);return new ov({...t,checks:[],...je(o),entries:s})},e.exclude=(i,o)=>{const s={...t.entries};for(const c of i)if(n.has(c))delete s[c];else throw new Error(`Key ${c} not found in enum`);return new ov({...t,checks:[],...je(o),entries:s})}});function cre(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new ov({type:"enum",entries:n,...je(t)})}const ure=de("ZodTransform",(e,t)=>{Mee.init(e,t),en.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Fz(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(Pc(s,n.value,t));else{const c=s;c.fatal&&(c.continue=!1),c.code??(c.code="custom"),c.input??(c.input=n.value),c.inst??(c.inst=e),n.issues.push(Pc(c))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});function dre(e){return new ure({type:"transform",transform:e})}const sM=de("ZodOptional",(e,t)=>{Pee.init(e,t),en.init(e,t),e.unwrap=()=>e._zod.def.innerType});function zC(e){return new sM({type:"optional",innerType:e})}const fre=de("ZodNullable",(e,t)=>{Bee.init(e,t),en.init(e,t),e.unwrap=()=>e._zod.def.innerType});function MC(e){return new fre({type:"nullable",innerType:e})}const hre=de("ZodDefault",(e,t)=>{Uee.init(e,t),en.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function pre(e,t){return new hre({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Kz(t)}})}const mre=de("ZodPrefault",(e,t)=>{Vee.init(e,t),en.init(e,t),e.unwrap=()=>e._zod.def.innerType});function yre(e,t){return new mre({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Kz(t)}})}const lM=de("ZodNonOptional",(e,t)=>{Fee.init(e,t),en.init(e,t),e.unwrap=()=>e._zod.def.innerType});function gre(e,t){return new lM({type:"nonoptional",innerType:e,...je(t)})}const vre=de("ZodCatch",(e,t)=>{Hee.init(e,t),en.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function bre(e,t){return new vre({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const Ere=de("ZodPipe",(e,t)=>{Gee.init(e,t),en.init(e,t),e.in=t.in,e.out=t.out});function PC(e,t){return new Ere({type:"pipe",in:e,out:t})}const xre=de("ZodReadonly",(e,t)=>{Kee.init(e,t),en.init(e,t),e.unwrap=()=>e._zod.def.innerType});function Sre(e){return new xre({type:"readonly",innerType:e})}const Are=de("ZodCustom",(e,t)=>{$ee.init(e,t),en.init(e,t)});function wre(e,t={}){return Ote(Are,e,t)}function Tre(e){return jte(e)}const Ac=({children:e,className:t,identifier:n,...i})=>y.jsx("div",{className:fe("group/dropdown relative flex",t),"aria-label":`DropDown ${n}`,id:`dropdown-container-${n}`,...i,children:e}),Cre=({children:e,identifier:t,className:n,label:i,...o})=>y.jsx(lt,{className:fe("w-full cursor-pointer",n),label:i??`Open panel ${t}`,"aria-haspopup":"true","aria-controls":`dropdown-panel-${t}`,id:`dropdown-trigger-${t}`,onClick:s=>{s.currentTarget.focus()},variant:"none",...o,children:e});let Fy=function(e){return e.START="start",e.END="end",e}({});const Rre=({children:e,isHidden:t=void 0,isOverable:n=!1,isFocusable:i=!1,align:o=Fy.START,identifier:s,className:c,...u})=>y.jsx("div",{className:fe("absolute top-[calc(100%+0.5rem)] z-[1000] min-w-full",o===Fy.START&&"left-0",o===Fy.END&&"right-0",c),"aria-hidden":t,role:"region","aria-labelledby":`dropdown-trigger-${s}`,id:`dropdown-panel-${s}`,children:y.jsx(Dv,{isHidden:t,className:fe("overflow-x-visible",t===!1&&"invisible",t===!0&&"visible",n&&"group-hover/dropdown:visible group-hover/dropdown:grid-rows-[1fr]",i&&"group-focus-within/dropdown:visible group-focus-within/dropdown:grid-rows-[1fr]"),...u,children:e})});Ac.Trigger=Cre;Ac.Panel=Rre;const wc=(e,t)=>{const[n,i]=E.useState(()=>{if(t!==void 0){const c=typeof t=="function"?t():t;if(typeof window>"u")return c;const u=localStorage?.getItem(e);if(u)try{return JSON.parse(u)}catch(f){console.error(f)}return c}});E.useEffect(()=>{const c=localStorage?.getItem(e);if(c&&n===void 0)try{i(JSON.parse(c))}catch(u){console.error(u)}else t!==void 0&&n===void 0&&i(t)},[e,n]);const o=E.useCallback(c=>{i(u=>{const f=typeof c=="function"?c(u):c;return localStorage?.setItem(e,JSON.stringify(f)),f})},[e,i]),s=E.useCallback(()=>{const c=localStorage?.getItem(e);c&&i(JSON.parse(c))},[e,i]);return E.useMemo(()=>[n,o,s],[n,o,s])},cM=E.createContext({availableLocales:[],selectedLocales:[],setSelectedLocales:()=>{}}),uM=()=>E.useContext(cM),Ire=({availableLocales:e,defaultSelectedLocales:t,children:n})=>{const{locale:i}=Cv(),[o,s]=wc("locale-content-selector-selected-locales",t??[i]);return y.jsx(cM,{value:{availableLocales:e,selectedLocales:o,setSelectedLocales:s},children:n})};function Di(e){return Array.isArray?Array.isArray(e):hM(e)==="[object Array]"}function _re(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Nre(e){return e==null?"":_re(e)}function $r(e){return typeof e=="string"}function dM(e){return typeof e=="number"}function kre(e){return e===!0||e===!1||Lre(e)&&hM(e)=="[object Boolean]"}function fM(e){return typeof e=="object"}function Lre(e){return fM(e)&&e!==null}function $n(e){return e!=null}function Hy(e){return!e.trim().length}function hM(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Dre="Incorrect 'index' type",Ore=e=>`Invalid value for key ${e}`,jre=e=>`Pattern length exceeds max of ${e}.`,zre=e=>`Missing ${e} property in key`,Mre=e=>`Property 'weight' in key '${e}' must be a positive integer`,BC=Object.prototype.hasOwnProperty;class Pre{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(i=>{let o=pM(i);this._keys.push(o),this._keyMap[o.id]=o,n+=o.weight}),this._keys.forEach(i=>{i.weight/=n})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function pM(e){let t=null,n=null,i=null,o=1,s=null;if($r(e)||Di(e))i=e,t=UC(e),n=sv(e);else{if(!BC.call(e,"name"))throw new Error(zre("name"));const c=e.name;if(i=c,BC.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(Mre(c));t=UC(c),n=sv(c),s=e.getFn}return{path:t,id:n,weight:o,src:i,getFn:s}}function UC(e){return Di(e)?e:e.split(".")}function sv(e){return Di(e)?e.join("."):e}function Bre(e,t){let n=[],i=!1;const o=(s,c,u)=>{if($n(s))if(!c[u])n.push(s);else{let f=c[u];const h=s[f];if(!$n(h))return;if(u===c.length-1&&($r(h)||dM(h)||kre(h)))n.push(Nre(h));else if(Di(h)){i=!0;for(let p=0,g=h.length;p<g;p+=1)o(h[p],c,u+1)}else c.length&&o(h,c,u+1)}};return o(e,$r(t)?t.split("."):t,0),i?n:n[0]}const Ure={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Vre={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},Fre={location:0,threshold:.6,distance:100},Hre={useExtendedSearch:!1,getFn:Bre,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Oe={...Vre,...Ure,...Fre,...Hre};const Gre=/[^ ]+/g;function Kre(e=1,t=3){const n=new Map,i=Math.pow(10,t);return{get(o){const s=o.match(Gre).length;if(n.has(s))return n.get(s);const c=1/Math.pow(s,.5*e),u=parseFloat(Math.round(c*i)/i);return n.set(s,u),u},clear(){n.clear()}}}class eE{constructor({getFn:t=Oe.getFn,fieldNormWeight:n=Oe.fieldNormWeight}={}){this.norm=Kre(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,i)=>{this._keysMap[n.id]=i})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,$r(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();$r(t)?this._addString(t,n):this._addObject(t,n)}removeAt(t){this.records.splice(t,1);for(let n=t,i=this.size();n<i;n+=1)this.records[n].i-=1}getValueForItemAtKeyId(t,n){return t[this._keysMap[n]]}size(){return this.records.length}_addString(t,n){if(!$n(t)||Hy(t))return;let i={v:t,i:n,n:this.norm.get(t)};this.records.push(i)}_addObject(t,n){let i={i:n,$:{}};this.keys.forEach((o,s)=>{let c=o.getFn?o.getFn(t):this.getFn(t,o.path);if($n(c)){if(Di(c)){let u=[];const f=[{nestedArrIndex:-1,value:c}];for(;f.length;){const{nestedArrIndex:h,value:p}=f.pop();if($n(p))if($r(p)&&!Hy(p)){let g={v:p,i:h,n:this.norm.get(p)};u.push(g)}else Di(p)&&p.forEach((g,b)=>{f.push({nestedArrIndex:b,value:g})})}i.$[s]=u}else if($r(c)&&!Hy(c)){let u={v:c,n:this.norm.get(c)};i.$[s]=u}}}),this.records.push(i)}toJSON(){return{keys:this.keys,records:this.records}}}function mM(e,t,{getFn:n=Oe.getFn,fieldNormWeight:i=Oe.fieldNormWeight}={}){const o=new eE({getFn:n,fieldNormWeight:i});return o.setKeys(e.map(pM)),o.setSources(t),o.create(),o}function $re(e,{getFn:t=Oe.getFn,fieldNormWeight:n=Oe.fieldNormWeight}={}){const{keys:i,records:o}=e,s=new eE({getFn:t,fieldNormWeight:n});return s.setKeys(i),s.setIndexRecords(o),s}function Zd(e,{errors:t=0,currentLocation:n=0,expectedLocation:i=0,distance:o=Oe.distance,ignoreLocation:s=Oe.ignoreLocation}={}){const c=t/e.length;if(s)return c;const u=Math.abs(i-n);return o?c+u/o:u?1:c}function qre(e=[],t=Oe.minMatchCharLength){let n=[],i=-1,o=-1,s=0;for(let c=e.length;s<c;s+=1){let u=e[s];u&&i===-1?i=s:!u&&i!==-1&&(o=s-1,o-i+1>=t&&n.push([i,o]),i=-1)}return e[s-1]&&s-i>=t&&n.push([i,s-1]),n}const no=32;function Zre(e,t,n,{location:i=Oe.location,distance:o=Oe.distance,threshold:s=Oe.threshold,findAllMatches:c=Oe.findAllMatches,minMatchCharLength:u=Oe.minMatchCharLength,includeMatches:f=Oe.includeMatches,ignoreLocation:h=Oe.ignoreLocation}={}){if(t.length>no)throw new Error(jre(no));const p=t.length,g=e.length,b=Math.max(0,Math.min(i,g));let x=s,w=b;const A=u>1||f,C=A?Array(g):[];let L;for(;(L=e.indexOf(t,w))>-1;){let k=Zd(t,{currentLocation:L,expectedLocation:b,distance:o,ignoreLocation:h});if(x=Math.min(k,x),w=L+p,A){let O=0;for(;O<p;)C[L+O]=1,O+=1}}w=-1;let S=[],R=1,I=p+g;const N=1<<p-1;for(let k=0;k<p;k+=1){let O=0,U=I;for(;O<U;)Zd(t,{errors:k,currentLocation:b+U,expectedLocation:b,distance:o,ignoreLocation:h})<=x?O=U:I=U,U=Math.floor((I-O)/2+O);I=U;let F=Math.max(1,b-U+1),H=c?g:Math.min(b+U,g)+p,te=Array(H+2);te[H+1]=(1<<k)-1;for(let X=H;X>=F;X-=1){let oe=X-1,M=n[e.charAt(oe)];if(A&&(C[oe]=+!!M),te[X]=(te[X+1]<<1|1)&M,k&&(te[X]|=(S[X+1]|S[X])<<1|1|S[X+1]),te[X]&N&&(R=Zd(t,{errors:k,currentLocation:oe,expectedLocation:b,distance:o,ignoreLocation:h}),R<=x)){if(x=R,w=oe,w<=b)break;F=Math.max(1,2*b-w)}}if(Zd(t,{errors:k+1,currentLocation:b,expectedLocation:b,distance:o,ignoreLocation:h})>x)break;S=te}const _={isMatch:w>=0,score:Math.max(.001,R)};if(A){const k=qre(C,u);k.length?f&&(_.indices=k):_.isMatch=!1}return _}function Yre(e){let t={};for(let n=0,i=e.length;n<i;n+=1){const o=e.charAt(n);t[o]=(t[o]||0)|1<<i-n-1}return t}const Vf=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 yM{constructor(t,{location:n=Oe.location,threshold:i=Oe.threshold,distance:o=Oe.distance,includeMatches:s=Oe.includeMatches,findAllMatches:c=Oe.findAllMatches,minMatchCharLength:u=Oe.minMatchCharLength,isCaseSensitive:f=Oe.isCaseSensitive,ignoreDiacritics:h=Oe.ignoreDiacritics,ignoreLocation:p=Oe.ignoreLocation}={}){if(this.options={location:n,threshold:i,distance:o,includeMatches:s,findAllMatches:c,minMatchCharLength:u,isCaseSensitive:f,ignoreDiacritics:h,ignoreLocation:p},t=f?t:t.toLowerCase(),t=h?Vf(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const g=(x,w)=>{this.chunks.push({pattern:x,alphabet:Yre(x),startIndex:w})},b=this.pattern.length;if(b>no){let x=0;const w=b%no,A=b-w;for(;x<A;)g(this.pattern.substr(x,no),x),x+=no;if(w){const C=b-no;g(this.pattern.substr(C),C)}}else g(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:i,includeMatches:o}=this.options;if(t=n?t:t.toLowerCase(),t=i?Vf(t):t,this.pattern===t){let A={isMatch:!0,score:0};return o&&(A.indices=[[0,t.length-1]]),A}const{location:s,distance:c,threshold:u,findAllMatches:f,minMatchCharLength:h,ignoreLocation:p}=this.options;let g=[],b=0,x=!1;this.chunks.forEach(({pattern:A,alphabet:C,startIndex:L})=>{const{isMatch:S,score:R,indices:I}=Zre(t,A,C,{location:s+L,distance:c,threshold:u,findAllMatches:f,minMatchCharLength:h,includeMatches:o,ignoreLocation:p});S&&(x=!0),b+=R,S&&I&&(g=[...g,...I])});let w={isMatch:x,score:x?b/this.chunks.length:1};return x&&o&&(w.indices=g),w}}class _a{constructor(t){this.pattern=t}static isMultiMatch(t){return VC(t,this.multiRegex)}static isSingleMatch(t){return VC(t,this.singleRegex)}search(){}}function VC(e,t){const n=e.match(t);return n?n[1]:null}class Wre extends _a{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const n=t===this.pattern;return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Xre extends _a{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const i=t.indexOf(this.pattern)===-1;return{isMatch:i,score:i?0:1,indices:[0,t.length-1]}}}class Qre extends _a{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const n=t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,this.pattern.length-1]}}}class Jre extends _a{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const n=!t.startsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class eie extends _a{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const n=t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class tie extends _a{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const n=!t.endsWith(this.pattern);return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class gM extends _a{constructor(t,{location:n=Oe.location,threshold:i=Oe.threshold,distance:o=Oe.distance,includeMatches:s=Oe.includeMatches,findAllMatches:c=Oe.findAllMatches,minMatchCharLength:u=Oe.minMatchCharLength,isCaseSensitive:f=Oe.isCaseSensitive,ignoreDiacritics:h=Oe.ignoreDiacritics,ignoreLocation:p=Oe.ignoreLocation}={}){super(t),this._bitapSearch=new yM(t,{location:n,threshold:i,distance:o,includeMatches:s,findAllMatches:c,minMatchCharLength:u,isCaseSensitive:f,ignoreDiacritics:h,ignoreLocation:p})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class vM extends _a{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let n=0,i;const o=[],s=this.pattern.length;for(;(i=t.indexOf(this.pattern,n))>-1;)n=i+s,o.push([i,n-1]);const c=!!o.length;return{isMatch:c,score:c?0:1,indices:o}}}const lv=[Wre,vM,Qre,Jre,tie,eie,Xre,gM],FC=lv.length,nie=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,rie="|";function iie(e,t={}){return e.split(rie).map(n=>{let i=n.trim().split(nie).filter(s=>s&&!!s.trim()),o=[];for(let s=0,c=i.length;s<c;s+=1){const u=i[s];let f=!1,h=-1;for(;!f&&++h<FC;){const p=lv[h];let g=p.isMultiMatch(u);g&&(o.push(new p(g,t)),f=!0)}if(!f)for(h=-1;++h<FC;){const p=lv[h];let g=p.isSingleMatch(u);if(g){o.push(new p(g,t));break}}}return o})}const aie=new Set([gM.type,vM.type]);class oie{constructor(t,{isCaseSensitive:n=Oe.isCaseSensitive,ignoreDiacritics:i=Oe.ignoreDiacritics,includeMatches:o=Oe.includeMatches,minMatchCharLength:s=Oe.minMatchCharLength,ignoreLocation:c=Oe.ignoreLocation,findAllMatches:u=Oe.findAllMatches,location:f=Oe.location,threshold:h=Oe.threshold,distance:p=Oe.distance}={}){this.query=null,this.options={isCaseSensitive:n,ignoreDiacritics:i,includeMatches:o,minMatchCharLength:s,findAllMatches:u,ignoreLocation:c,location:f,threshold:h,distance:p},t=n?t:t.toLowerCase(),t=i?Vf(t):t,this.pattern=t,this.query=iie(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:i,isCaseSensitive:o,ignoreDiacritics:s}=this.options;t=o?t:t.toLowerCase(),t=s?Vf(t):t;let c=0,u=[],f=0;for(let h=0,p=n.length;h<p;h+=1){const g=n[h];u.length=0,c=0;for(let b=0,x=g.length;b<x;b+=1){const w=g[b],{isMatch:A,indices:C,score:L}=w.search(t);if(A){if(c+=1,f+=L,i){const S=w.constructor.type;aie.has(S)?u=[...u,...C]:u.push(C)}}else{f=0,c=0,u.length=0;break}}if(c){let b={isMatch:!0,score:f/c};return i&&(b.indices=u),b}}return{isMatch:!1,score:1}}}const cv=[];function sie(...e){cv.push(...e)}function uv(e,t){for(let n=0,i=cv.length;n<i;n+=1){let o=cv[n];if(o.condition(e,t))return new o(e,t)}return new yM(e,t)}const Ff={AND:"$and",OR:"$or"},dv={PATH:"$path",PATTERN:"$val"},fv=e=>!!(e[Ff.AND]||e[Ff.OR]),lie=e=>!!e[dv.PATH],cie=e=>!Di(e)&&fM(e)&&!fv(e),HC=e=>({[Ff.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function bM(e,t,{auto:n=!0}={}){const i=o=>{let s=Object.keys(o);const c=lie(o);if(!c&&s.length>1&&!fv(o))return i(HC(o));if(cie(o)){const f=c?o[dv.PATH]:s[0],h=c?o[dv.PATTERN]:o[f];if(!$r(h))throw new Error(Ore(f));const p={keyId:sv(f),pattern:h};return n&&(p.searcher=uv(h,t)),p}let u={children:[],operator:s[0]};return s.forEach(f=>{const h=o[f];Di(h)&&h.forEach(p=>{u.children.push(i(p))})}),u};return fv(e)||(e=HC(e)),i(e)}function uie(e,{ignoreFieldNorm:t=Oe.ignoreFieldNorm}){e.forEach(n=>{let i=1;n.matches.forEach(({key:o,norm:s,score:c})=>{const u=o?o.weight:null;i*=Math.pow(c===0&&u?Number.EPSILON:c,(u||1)*(t?1:s))}),n.score=i})}function die(e,t){const n=e.matches;t.matches=[],$n(n)&&n.forEach(i=>{if(!$n(i.indices)||!i.indices.length)return;const{indices:o,value:s}=i;let c={indices:o,value:s};i.key&&(c.key=i.key.src),i.idx>-1&&(c.refIndex=i.idx),t.matches.push(c)})}function fie(e,t){t.score=e.score}function hie(e,t,{includeMatches:n=Oe.includeMatches,includeScore:i=Oe.includeScore}={}){const o=[];return n&&o.push(die),i&&o.push(fie),e.map(s=>{const{idx:c}=s,u={item:t[c],refIndex:c};return o.length&&o.forEach(f=>{f(s,u)}),u})}class il{constructor(t,n={},i){this.options={...Oe,...n},this.options.useExtendedSearch,this._keyStore=new Pre(this.options.keys),this.setCollection(t,i)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof eE))throw new Error(Dre);this._myIndex=n||mM(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){$n(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let i=0,o=this._docs.length;i<o;i+=1){const s=this._docs[i];t(s,i)&&(this.removeAt(i),i-=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:i,includeScore:o,shouldSort:s,sortFn:c,ignoreFieldNorm:u}=this.options;let f=$r(t)?$r(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return uie(f,{ignoreFieldNorm:u}),s&&f.sort(c),dM(n)&&n>-1&&(f=f.slice(0,n)),hie(f,this._docs,{includeMatches:i,includeScore:o})}_searchStringList(t){const n=uv(t,this.options),{records:i}=this._myIndex,o=[];return i.forEach(({v:s,i:c,n:u})=>{if(!$n(s))return;const{isMatch:f,score:h,indices:p}=n.searchIn(s);f&&o.push({item:s,idx:c,matches:[{score:h,value:s,norm:u,indices:p}]})}),o}_searchLogical(t){const n=bM(t,this.options),i=(u,f,h)=>{if(!u.children){const{keyId:g,searcher:b}=u,x=this._findMatches({key:this._keyStore.get(g),value:this._myIndex.getValueForItemAtKeyId(f,g),searcher:b});return x&&x.length?[{idx:h,item:f,matches:x}]:[]}const p=[];for(let g=0,b=u.children.length;g<b;g+=1){const x=u.children[g],w=i(x,f,h);if(w.length)p.push(...w);else if(u.operator===Ff.AND)return[]}return p},o=this._myIndex.records,s={},c=[];return o.forEach(({$:u,i:f})=>{if($n(u)){let h=i(n,u,f);h.length&&(s[f]||(s[f]={idx:f,item:u,matches:[]},c.push(s[f])),h.forEach(({matches:p})=>{s[f].matches.push(...p)}))}}),c}_searchObjectList(t){const n=uv(t,this.options),{keys:i,records:o}=this._myIndex,s=[];return o.forEach(({$:c,i:u})=>{if(!$n(c))return;let f=[];i.forEach((h,p)=>{f.push(...this._findMatches({key:h,value:c[p],searcher:n}))}),f.length&&s.push({idx:u,item:c,matches:f})}),s}_findMatches({key:t,value:n,searcher:i}){if(!$n(n))return[];let o=[];if(Di(n))n.forEach(({v:s,i:c,n:u})=>{if(!$n(s))return;const{isMatch:f,score:h,indices:p}=i.searchIn(s);f&&o.push({score:h,key:t,value:s,idx:c,norm:u,indices:p})});else{const{v:s,n:c}=n,{isMatch:u,score:f,indices:h}=i.searchIn(s);u&&o.push({score:f,key:t,value:s,norm:c,indices:h})}return o}}il.version="7.1.0";il.createIndex=mM;il.parseIndex=$re;il.config=Oe;il.parseQuery=bM;sie(oie);const Gy="locale-switcher-content",pie=({panelProps:e,isMultilingual:t=!0})=>{const{switchTo:n,searchInput:i,localeSwitcherLabel:o,languageListLabel:s,seeAllLocalesSwitch:c}=jt("locale-switcher-content"),u=E.useRef(null),{locale:f}=Cv(),{availableLocales:h,selectedLocales:p,setSelectedLocales:g}=uM(),b=E.useMemo(()=>h.map(N=>({locale:N,englishName:ef(N,dt.ENGLISH),currentLocaleName:ef(N,f),ownLocaleName:ef(N)})),[h,f]),[x,w]=E.useState(b),[A,C]=wc("locale-content-selector-see-all-locales",!1),L=E.useMemo(()=>new il(b,{keys:[{name:"ownLocaleName",weight:.4},{name:"englishName",weight:.2},{name:"currentLocaleName",weight:.2},{name:"locale",weight:.2}],threshold:.02}),[b]),S=E.useCallback(N=>{w(N?L.search(N).map(_=>_.item):b)},[L,b]),R=N=>{t?p.includes(N)?p.length>1&&g(_=>_.filter(k=>k!==N)):g(_=>[..._,N]):g([N])},I=N=>{C(N),g(N?h:[f])};return y.jsx("div",{className:"rounded-xl border border-text text-text transition-colors","aria-label":o.value,children:y.jsxs(Ac,{identifier:Gy,children:[y.jsx(Ac.Trigger,{identifier:Gy,children:y.jsxs("div",{className:"flex w-full items-center justify-between",children:[y.jsx("div",{className:"px-2 py-1",children:y.jsx(WG,{size:18})}),y.jsx(nK,{className:"self-center",size:18})]})}),y.jsx(Ac.Panel,{identifier:Gy,isOverable:!0,isFocusable:!0,className:"right-0 left-auto",...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(iu,{defaultValue:!1,onChange:I,color:Ht.TEXT,size:Ci.SM,className:"!w-60",choices:[{content:c.true.value,value:!0},{content:c.false.value,value:!1}]})}),!(t&&A)&&y.jsxs(y.Fragment,{children:[y.jsx("div",{className:"p-3",children:y.jsx(Js,{type:"search","aria-label":i.ariaLabel.value,placeholder:i.placeholder.value,onChange:N=>S(N.target.value),ref:u})}),y.jsx("ol",{className:"divide-y divide-dashed divide-text/20 overflow-y-auto p-1",children:x.map(({locale:N,currentLocaleName:_,ownLocaleName:k})=>y.jsx("li",{className:"px-1.5 py-1",children:y.jsx(lt,{onClick:()=>R(N),label:`${n} ${_}`,disabled:!(h??h).includes(N),isActive:p.includes(N),variant:Ve.HOVERABLE,color:Pe.TEXT,isFullWidth:!0,textAlign:Tr.LEFT,size:Je.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(N)&&y.jsx(Ys,{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:RH(N),lang:N,children:k}),y.jsx("span",{className:"text-neutral text-xs",children:_})]}),y.jsx("span",{className:"text-neutral text-sm",children:N.toUpperCase()})]})]})})},N))})]})]})})]})})},mie=700,EM=({isRollable:e=!0,minHeight:t=mie,children:n,className:i})=>{const[o,s]=E.useState(0),[c,u]=E.useState(!0),f=E.useRef(null),{expandCollapseContent:h}=jt("expand-collapse"),p=o>t;return E.useEffect(()=>{f.current&&s(f.current.clientHeight)},[]),e?p?y.jsxs(Dv,{isHidden:c,minHeight:t,className:"w-full overflow-x-auto overflow-y-hidden",children:[y.jsx("div",{className:fe("grid w-full",i),ref:f,children:n}),y.jsx("button",{className:fe("absolute right-0 bottom-0 flex w-full cursor-pointer items-center justify-center rounded-t-2xl bg-gradient-to-t from-card/80 to-transparent px-3 py-0.5 text-md text-neutral-700 shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur transition-all duration-300 hover:py-1 dark:text-neutral-400",c?"w-full":"w-32"),type:"button",onClick:()=>u(g=>!g),children:h(c)})]}):y.jsx("div",{className:fe("grid w-full",i),ref:f,children:n}):n};let xM=function(e){return e.START="start",e.END="end",e}({}),yie=function(e){return e.BELOW="bellow",e.ABOVE="above",e}({});const hv=({children:e,className:t,identifier:n,...i})=>y.jsx("div",{className:fe("group/popover relative flex cursor-pointer",t),id:`unrollable-panel-button-${n}`,"aria-haspopup":!0,...i,children:e}),gie=({children:e,isHidden:t=void 0,isOverable:n=!0,isFocusable:i=!1,xAlign:o=xM.START,yAlign:s=yie.BELOW,identifier:c,className:u,displayArrow:f=!0,...h})=>y.jsx(kr,{transparency:"sm",role:"group","aria-hidden":t,"aria-labelledby":`unrollable-panel-button-${c}`,id:`unrollable-panel-${c}`,className:fe("absolute z-[1000] min-w-full rounded-md ring-1 ring-neutral",o==="start"&&"left-0",o==="end"&&"right-0",s==="bellow"&&"top-[calc(100%+1rem)]",s==="above"&&"bottom-[calc(100%+1rem)]",f&&'before:absolute before:z-[999] before:h-0 before:w-0 before:content-[""]',f&&o==="start"&&"before:left-2",f&&o==="end"&&"before:right-2",f&&s==="bellow"&&"before:-top-[10px] before:border-r-[10px] before:border-r-transparent before:border-b-[10px] before:border-b-neutral before:border-l-[10px] before:border-l-transparent",f&&s==="above"&&"before:-bottom-[10px] before:border-t-[10px] before:border-t-neutral before:border-r-[10px] before:border-r-transparent before:border-l-[10px] before:border-l-transparent","overflow-x-visible opacity-0 transition-all duration-400 ease-in-out",t!==!1?"invisible":"visible opacity-100 delay-800",n&&"group-hover/popover:visible group-hover/popover:opacity-100 group-hover/popover:delay-800",i&&"group-focus-within/popover:visible group-focus-within/popover:opacity-100 group-focus-within/popover:delay-800",u),...h,children:e});hv.Detail=gie;const vie="modulepreload",bie=function(e){return"/"+e},GC={},Eie=function(t,n,i){let o=Promise.resolve();if(n&&n.length>0){let f=function(h){return Promise.all(h.map(p=>Promise.resolve(p).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const c=document.querySelector("meta[property=csp-nonce]"),u=c?.nonce||c?.getAttribute("nonce");o=f(n.map(h=>{if(h=bie(h),h in GC)return;GC[h]=!0;const p=h.endsWith(".css"),g=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${g}`))return;const b=document.createElement("link");if(b.rel=p?"stylesheet":vie,p||(b.as="script"),b.crossOrigin="",b.href=h,u&&b.setAttribute("nonce",u),document.head.appendChild(b),p)return new Promise((x,w)=>{b.addEventListener("load",x),b.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${h}`)))})}))}function s(c){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=c,window.dispatchEvent(u),!u.defaultPrevented)throw c}return o.then(c=>{for(const u of c||[])u.status==="rejected"&&s(u.reason);return t().catch(s)})},xie=({children:e})=>y.jsx("div",{className:"min-w-0 max-w-full overflow-x-auto",children:y.jsx("pre",{className:"min-w-0 max-w-full overflow-x-auto",children:y.jsx("code",{children:e.split(`
312
+ `).map((t,n)=>y.jsx("span",{className:"line block w-full",children:t},`line-${n}-${t.slice(0,10)}`))})})}),Sie=E.lazy(()=>Eie(()=>import("./CodeBlockShiki-DsXJYGZ5.js"),[]).then(e=>({default:e.CodeBlockShiki}))),Aie=({className:e,onChange:t,isEditable:n,children:i,lang:o,isDarkMode:s,...c})=>y.jsx("div",{className:fe("flex w-full min-w-0 max-w-full overflow-x-auto",e),...c,children:y.jsx(E.Suspense,{fallback:y.jsx(xie,{children:i}),children:y.jsx(Sie,{lang:o,isDarkMode:s,children:i})})}),SM=E.createContext({packageManager:"npm",setPackageManager:()=>{},codeFormat:"typescript",setCodeFormat:()=>{},contentDeclarationFormat:"typescript",setContentDeclarationFormat:()=>{}}),Ch=()=>E.useContext(SM),wie=({children:e})=>{const[t,n]=wc("packageManager","npm"),[i,o]=wc("codeFormat","typescript"),[s,c]=wc("contentDeclarationFormat","typescript");return y.jsx(SM,{value:{packageManager:t,setPackageManager:n,codeFormat:i,setCodeFormat:o,contentDeclarationFormat:s,setContentDeclarationFormat:c},children:e})},Tie=({children:e,...t})=>{const{packageManager:n,codeFormat:i,contentDeclarationFormat:o}=Ch(),s=typeof t.packageManager>"u",c=n===t.packageManager,u=typeof t.codeFormat>"u",f=i===t.codeFormat,h=typeof t.contentDeclarationFormat>"u",p=o===t.contentDeclarationFormat;return(s||c)&&(u||f)&&(h||p)?e:y.jsx(y.Fragment,{})},Cie=()=>{const{codeFormat:e,setCodeFormat:t,setContentDeclarationFormat:n}=Ch();return y.jsxs(Te,{value:e,onValueChange:i=>{t(i),n(i)},children:[y.jsx(Te.Trigger,{children:y.jsx(Te.Value,{placeholder:"Code Format"})}),y.jsxs(Te.Content,{children:[y.jsx(Te.Item,{value:"typescript",children:"TypeScript"}),y.jsx(Te.Item,{value:"esm",children:"ESM"}),y.jsx(Te.Item,{value:"commonjs",children:"CommonJS"})]})]})},Rie=()=>{const{contentDeclarationFormat:e,setContentDeclarationFormat:t}=Ch();return y.jsxs(Te,{value:e,onValueChange:t,children:[y.jsx(Te.Trigger,{children:y.jsx(Te.Value,{placeholder:"Dictionary Format"})}),y.jsxs(Te.Content,{children:[y.jsx(Te.Item,{value:"typescript",children:"TypeScript"}),y.jsx(Te.Item,{value:"commonjs",children:"CommonJS"}),y.jsx(Te.Item,{value:"esm",children:"ESM"}),y.jsx(Te.Item,{value:"json",children:"JSON"})]})]})},Iie=({code:e})=>{const{title:t,description:n}=jt("code");return y.jsxs(hv,{identifier:"copy",children:[y.jsx(pD,{content:e}),y.jsxs(hv.Detail,{identifier:"copy",className:"flex min-w-64 flex-col gap-3 p-3 text-sm",xAlign:xM.END,children:[y.jsx("strong",{children:t}),y.jsx("p",{className:"text-neutral",children:n})]})]})},_ie=()=>{const{packageManager:e,setPackageManager:t}=Ch();return y.jsxs(Te,{value:e,onValueChange:t,children:[y.jsx(Te.Trigger,{children:y.jsx(Te.Value,{placeholder:"Package Manager"})}),y.jsxs(Te.Content,{children:[y.jsx(Te.Item,{value:"npm",children:"npm"}),y.jsx(Te.Item,{value:"pnpm",children:"pnpm"}),y.jsx(Te.Item,{value:"yarn",children:"yarn"}),y.jsx(Te.Item,{value:"bun",children:"bun"})]})]})},Nie=700,kie=({children:e,language:t,isDarkMode:n,showHeader:i=!0,showLineNumbers:o=!0,className:s,fileName:c,packageManager:u,codeFormat:f,contentDeclarationFormat:h,isRollable:p=!0,...g})=>{const b=e?.endsWith(`
313
+ `)?e.slice(0,-1):e,x=u||f||h;return y.jsx(Tie,{packageManager:u,codeFormat:f,contentDeclarationFormat:h,children:y.jsxs(kr,{className:fe("relative min-w-0 max-w-full text-sm leading-6",o&&"with-line-number ml-0",s),transparency:"lg",...g,children:[i&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"grid w-full grid-cols-[1fr_auto] items-center justify-between rounded-t-xl bg-card/50 py-1.5 pr-12 pl-4 text-neutral text-xs",children:[y.jsx("span",{className:"truncate",children:c??t}),y.jsxs("div",{className:"flex items-center gap-2",children:[u&&y.jsx(_ie,{}),f&&y.jsx(Cie,{}),h&&y.jsx(Rie,{})]})]}),y.jsx("div",{className:"sticky top-46 z-20",children:y.jsx("div",{className:fe("absolute right-2 bottom-0 flex h-7 items-center",x&&"h-11"),children:y.jsx(Iie,{code:b})})})]}),y.jsx(EM,{minHeight:Nie,isRollable:p,className:"min-w-0 max-w-full overflow-x-auto p-2",children:y.jsx(Aie,{lang:t,isDarkMode:n,children:b})})]})})};let AM=function(e){return e.PRIMARY="primary",e.SECONDARY="secondary",e.DESTRUCTIVE="destructive",e.NEUTRAL="neutral",e.LIGHT="light",e.DARK="dark",e.TEXT="text",e}({});const Lie=yn("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"}}),Die=yn("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"}}}),Oie=({tabs:e,selectedChoice:t,onTabClick:n,color:i=AM.PRIMARY,hoverable:o=!1,className:s})=>{const c=E.useRef([]),u=E.useRef(null),{choiceIndicatorPosition:f,calculatePosition:h}=Vz(c,void 0,o);return E.useEffect(()=>{h()},[t,e]),y.jsxs("div",{className:fe(Lie({color:i}),s),"aria-orientation":"horizontal","aria-multiselectable":"false",role:"tablist",children:[e.map((p,g)=>{const b=p.key,x=t===b;return E.cloneElement(p,{key:b??g,role:"tab",onClick:w=>{p.props?.onClick?.(w),n?.(b)},"aria-selected":x,"data-active":x,tabIndex:x?0:-1,ref:w=>{c.current[g]=w}})}),f&&y.jsx("div",{className:fe(Die({color:i})),style:f,ref:u},`${t}${JSON.stringify(e.map(p=>p.key))}`)]})},jie=e=>{const{enable:t=!0,onSwipeLeft:n,onSwipeRight:i,itemIndex:o,itemCount:s,thresholdPct:c=20,touchAction:u="pan-y",disableWhenSelectingText:f=!0}=e,h=E.useRef(null),[p,g]=E.useState(!1),[b,x]=E.useState(0),w=E.useRef({pointerId:null,startX:0,startY:0,lastX:0,axisLocked:!1,isHorizontal:!1}),A=E.useRef(!1),C=()=>{const k=h.current;return k?k.clientWidth:0},L=k=>{const O=o<=0,U=o>=s-1;return O&&k>0||U&&k<0?k/(1+Math.abs(k)/30):k},S=k=>{t&&w.current.pointerId===null&&(w.current.pointerId=k.pointerId,w.current.startX=k.clientX,w.current.startY=k.clientY,w.current.lastX=k.clientX,w.current.axisLocked=!1,w.current.isHorizontal=!1,A.current=!1,g(!1),x(0))},R=k=>{if(!t||w.current.pointerId!==k.pointerId)return;const O=C();if(!O)return;const U=k.clientX-w.current.startX,F=k.clientY-w.current.startY;if(f){const H=typeof window<"u"?window.getSelection?.():null;if(H&&H.rangeCount>0&&!H.isCollapsed){A.current=!0;return}}if(!w.current.axisLocked){const H=Math.abs(U),te=Math.abs(F);(H>6||te>6)&&(w.current.axisLocked=!0,w.current.isHorizontal=H>te)}if(w.current.isHorizontal){try{k.currentTarget.setPointerCapture(k.pointerId)}catch{}k.preventDefault(),p||g(!0),x(L(U/O*100)),w.current.lastX=k.clientX}},I=k=>{try{k.currentTarget.releasePointerCapture(k.pointerId)}catch{}const O=w.current.isHorizontal,U=b;if(g(!1),x(0),w.current.pointerId=null,w.current.axisLocked=!1,w.current.isHorizontal=!1,A.current){A.current=!1;return}O&&(U>c?i?.():U<-c&&n?.())},N=k=>{t&&w.current.pointerId===k.pointerId&&I(k)},_=k=>{t&&w.current.pointerId===k.pointerId&&I(k)};return E.useEffect(()=>{x(0),g(!1)},[o]),{containerRef:h,isDragging:p,dragDeltaPct:b,containerProps:{ref:h,onPointerDown:S,onPointerMove:R,onPointerUp:N,onPointerCancel:_,style:{touchAction:u}}}},wM=E.createContext({tabsValues:{},setTabsValues:()=>{}}),zie=()=>E.useContext(wM),Mie=({children:e})=>{const[t,n]=E.useState({});return y.jsx(wM,{value:{tabsValues:t,setTabsValues:n},children:e})},Pie=E.createContext(void 0),Bie=yn("relative w-full rounded-lg border border-neutral/20 bg-background/2 shadow-[0_0_10px_-15px_rgba(0,0,0,0.3)] backdrop-blur",{variants:{variant:{default:"",bordered:"border-2",ghost:"border-0 bg-transparent shadow-none"}},defaultVariants:{variant:"default"}}),tE=({children:e,...t})=>y.jsx("div",{...t,children:e});tE.displayName="TabItem";const Uie=({defaultTab:e,group:t,variant:n,children:i,className:o,...s})=>{const c=E.Children.toArray(i).filter(I=>E.isValidElement(I)&&I.type===tE),u=c[0]?.props?.value,{tabsValues:f,setTabsValues:h}=zie(),[p,g]=E.useState(e??u??""),b=(t&&typeof f=="object"?f?.[t]:p)??e??u,x=c.findIndex(I=>I.props.value===b),w=c.length,{containerProps:A,dragDeltaPct:C,isDragging:L}=jie({itemIndex:x,itemCount:w,onSwipeLeft:()=>{const I=c[Math.min(w-1,x+1)]?.props?.value;I&&S(I)},onSwipeRight:()=>{const I=c[Math.max(0,x-1)]?.props?.value;I&&S(I)}}),S=I=>{g(I),typeof h=="function"&&h(N=>({...N,[t]:I}))},R={activeTab:p??u??"",setActiveTab:S};return y.jsx(Pie.Provider,{value:R,children:y.jsxs("div",{className:fe(Bie({variant:n}),o),...s,children:[y.jsx("div",{className:"sticky top-36 z-10 flex gap-3 bg-background/70 p-3 backdrop-blur",children:y.jsx(Oie,{selectedChoice:b,tabs:c.map(I=>{const{label:N,value:_,disabled:k}=I.props,O=b===_;return y.jsx("button",{className:fe("cursor-pointer rounded-md px-4 py-1 font-medium text-sm transition-colors focus:outline-none",!O&&"text-neutral/70"),"data-active":O,disabled:k,onClick:()=>!k&&S(_),role:"tab","aria-selected":O,"aria-controls":`tabpanel-${_}`,id:`tab-${_}`,children:N},_)}),hoverable:!0,color:AM.TEXT})}),y.jsx("div",{className:"relative w-full min-w-0 overflow-x-clip [-webkit-clip-path:inset(0)] [clip-path:inset(0)]",...A,children:y.jsx("div",{role:"tablist","aria-orientation":"horizontal",className:fe("grid w-full min-w-0",L?"transition-none":"transition-transform duration-300 ease-in-out"),style:{gridTemplateColumns:`repeat(${c.length}, 100%)`,transform:`translateX(-${x*100-(L?C:0)}%)`},children:c.map(({props:I},N)=>{const{value:_,children:k}=I,O=N===x;return y.jsx("div",{role:"tabpanel","aria-labelledby":`tab-${_}`,id:`tabpanel-${_}`,"aria-hidden":!O,tabIndex:O?0:-1,"data-active":O,className:fe("w-full min-w-0 p-6 opacity-100 transition-opacity duration-300 ease-in-out",!O&&"pointer-events-none opacity-0"),children:y.jsx("div",{className:"flex w-full min-w-0 flex-col items-stretch gap-6",children:k})},_)})})})]})})},Ky=Object.assign(Uie,{Item:tE}),Vie=({className:e,isRollable:t=!1,displayModal:n,...i})=>{const[o,s]=E.useState(!1);return y.jsxs("div",{className:"relative",children:[n&&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:()=>{s(!0)},label:"Move",Icon:QG})})}),y.jsx(EM,{isRollable:t,className:"max-w-full overflow-x-auto",children:y.jsx("table",{className:fe("min-w-full max-w-full table-auto overflow-x-auto bg-background text-left",e),...i})}),y.jsx(Sb,{isOpen:o,onClose:()=>s(!1),size:xb.XL,hasCloseButton:!0,children:o?y.jsx("div",{className:"grid",children:y.jsx("table",{className:fe("min-w-full max-w-full table-auto text-left",e),...i})}):y.jsx(y.Fragment,{})})]})},Le={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",newlineCoalescer:"19",orderedList:"20",paragraph:"21",ref:"22",refImage:"23",refLink:"24",table:"25",text:"27",textBolded:"28",textEmphasized:"29",textEscaped:"30",textMarked:"31",textStrikethroughed:"32",unorderedList:"33"},st=20,it={MAX:0,HIGH:1,MED:2,LOW:3,MIN:4},KC=["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"}),$C={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Fie=["style","script","pre"],Hie=["src","href","data","formAction","srcDoc","action"],Gie=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Kie=/\n{2,}$/,qC=/^(\s*>[\s\S]*?)(?=\n\n|$)/,$ie=/^ *> ?/gm,qie=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Zie=/^ {2,}\n/,Yie=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,ZC=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,YC=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Wie=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,Xie=/^(?:\n *)*\n/,Qie=/\r\n?/g,Jie=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,eae=/^\[\^([^\]]+)]/,tae=/\f/g,nae=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,rae=/^\s*?\[(x|\s)\]/,WC=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,XC=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,QC=/^([^\n]+)\n *(=|-)\2{2,} *\n/,$y=/^ *(?!<[a-zA-Z][^ >/]* ?\/>)<([a-zA-Z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,iae=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,JC=/^<!--[\s\S]*?(?:-->)/,aae=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,qy=/^ *<([a-zA-Z][a-zA-Z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,Zy=/^ *<([A-Z][a-zA-Z0-9]*)(?:\s+((?:<.*?>|[^>])*))?>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/,oae=/^\{.*\}$/,sae=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,lae=/^<([^ >]+[:@/][^ >]+)>/,cae=/-([a-z])?/gi,eR=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,tR=/^[^\n]+(?: {2}\n|\n{2,})/,uae=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,dae=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,fae=/^\[([^\]]*)\] ?\[([^\]]*)\]/,hae=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,pae=/\t/g,mae=/(^ *\||\| *$)/g,yae=/^ *:-+: *$/,gae=/^ *:-+ *$/,vae=/^ *-+: *$/,nR=(e,t)=>{for(let n=0;n<e.length;n++)if(e[n].test(t))return!0;return!1},Rh=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Ih="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\[^\\s]|[\\s\\S])+?)",bae=new RegExp(`^([*_])\\1${Rh(1)}${Ih}\\1\\1(?!\\1)`),Eae=new RegExp(`^([*_])${Rh(0)}${Ih}\\1(?!\\1)`),xae=new RegExp(`^(==)${Rh(0)}${Ih}\\1`),Sae=new RegExp(`^(~~)${Rh(0)}${Ih}\\1`),Aae=/^(:[a-zA-Z0-9-_]+:)/,wae=/^\\([^0-9A-Za-z\s])/,Tae=/\\([^0-9A-Za-z\s])/g,Cae=/^[\s\S](?:(?! {2}\n|[0-9]\.|http)[^=*_~\-\n:<`\\[!])*/,Yy=/^\n+/,rR=/^([ \t]*)/,_r=1,ou=2,Rae=/(?:^|\n)( *)$/,nE="(?:\\d+\\.)",rE="(?:[*+-])",TM=e=>"( *)("+(e===_r?nE:rE)+") +",CM=TM(_r),RM=TM(ou),IM=e=>new RegExp("^"+(e===_r?CM:RM)),Iae=IM(_r),_ae=IM(ou),_M=e=>new RegExp("^"+(e===_r?CM:RM)+"[^\\n]*(?:\\n(?!\\1"+(e===_r?nE:rE)+" )[^\\n]*)*(\\n|$)","gm"),Nae=_M(_r),kae=_M(ou),NM=e=>{const t=e===_r?nE:rE;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")},kM=NM(_r),LM=NM(ou),iR=(e,t)=>{const n=e===_r,i=n?kM:LM,o=n?Nae:kae,s=n?Iae:_ae;return{_qualify:c=>s.test(c),_match:Fs((c,u)=>{const f=Rae.exec(u.prevCapture??""),h=u.list??(!u.inline&&!u.simple);return f&&h?(c=f[1]+c,i.exec(c)):null}),_order:it.HIGH,_parse(c,u,f){const h=c[2],p=n?+h:void 0,g=c[0].replace(Kie,`
314
+ `).match(o);if(!g)return{items:[],ordered:n,start:p};let b=!1;return{items:g.map((x,w)=>{const A=s.exec(x);if(!A)return[];const C=A[0].length,L=new RegExp(`^ {1,${C}}`,"gm"),S=x.replace(L,"").replace(s,""),R=w===g.length-1,I=S.indexOf(`
315
+
316
+ `)!==-1||R&&b;b=I;const N=f.inline,_=f.list;f.list=!0;let k;I?(f.inline=!1,k=`${js(S)}
317
+
318
+ `):(f.inline=!0,k=js(S));const O=u(k,f);return f.inline=N,f.list=_,O}),ordered:n,start:p}},_render(c,u,f={}){const h=c.ordered?"ol":"ul",p={key:f.key};return c.ordered&&c.start!=null&&(p.start=c.start),t?t(h,p,...c.items.map((g,b)=>t("li",{key:b},u(g,f)))):y.jsx(h,{start:c.type===Le.orderedList?c.start:void 0,children:c.items.map((g,b)=>y.jsx("li",{children:u(g,f)},`item-${b}-${Math.random()}`))},f.key)}}},Lae=new RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Dae=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,js=e=>{let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)},hf=(e,t)=>e.startsWith(t),Oae=(e,t,n)=>{if(Array.isArray(n)){for(let i=0;i<n.length;i++)if(hf(e,n[i]))return!0;return!1}return n(e,t)},jae=e=>{const t=e[0];return(t==='"'||t==="'")&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e},lc=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(),zae=e=>vae.test(e)?"right":yae.test(e)?"center":(gae.test(e),"left"),DM=(e,t,n,i)=>{const o=performance.now(),s=n.inTable;n.inTable=!0;const c=[[]];let u="";const f=()=>{if(!u)return;const p=c[c.length-1];p.push.apply(p,t(u,n)),u=""};e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((p,g,b)=>{if(p.trim()==="|"&&(f(),i)){g!==0&&g!==b.length-1&&c.push([]);return}u+=p}),f(),n.inTable=s;const h=performance.now()-o;return h>st&&console.log(`parseTableRow: ${h.toFixed(3)}ms, source length: ${e.length}, cells count: ${c.length}`),c},Mae=e=>e.replace(mae,"").split("|").map(zae),Pae=(e,t,n)=>{const i=performance.now(),o=e.trim().split(`
319
+ `),s=o.map(u=>DM(u,t,n,!0)),c=performance.now()-i;return c>st&&console.log(`parseTableCells: ${c.toFixed(3)}ms, source length: ${e.length}, rows count: ${o.length}`),s},Bae=(e,t,n)=>{n.inline=!0;const i=e[2]?Mae(e[2]):[],o=e[3]?Pae(e[3],t,n):[],s=DM(e[1],t,n,!!o.length);return n.inline=!1,o.length?{align:i,cells:o,header:s,type:Le.table}:{children:s.flat(),type:Le.paragraph}},aR=(e,t)=>e.align[t]==null?{}:{textAlign:e.align[t]},Uae=e=>(e.indexOf("-")!==-1&&e.match(aae)===null&&(e=e.replace(cae,(t,n)=>n.toUpperCase())),e),Vae=e=>{const t=performance.now(),n=[];let i="",o=!1,s=!1,c="";if(!e)return n;for(let h=0;h<e.length;h++){const p=e[h];if((p==='"'||p==="'")&&!o&&(s?p===c&&(s=!1,c=""):(s=!0,c=p)),p==="("&&i.endsWith("url")?o=!0:p===")"&&o&&(o=!1),p===";"&&!s&&!o){const g=i.trim();if(g){const b=g.indexOf(":");if(b>0){const x=g.slice(0,b).trim(),w=g.slice(b+1).trim();n.push([x,w])}}i=""}else i+=p}const u=i.trim();if(u){const h=u.indexOf(":");if(h>0){const p=u.slice(0,h).trim(),g=u.slice(h+1).trim();n.push([p,g])}}const f=performance.now()-t;return f>st&&console.log(`parseStyleAttribute: ${f.toFixed(3)}ms, styleString length: ${e.length}, styles count: ${n.length}`),n},oR=(e,t)=>{const n=performance.now();if(!t)return e;const i=e.split(`
320
+ `);let o=!1,s=null;const c=p=>p.match(/^\s*(`{3,}|~{3,})/),u=p=>{const g=c(p);if(!g)return;const b=g[1];o?s&&p.includes(s)&&(o=!1,s=null):(o=!0,s=b)},f=i.map(p=>{if(c(p)){const g=p.startsWith(t)?p.slice(t.length):p;return u(p),g}return o?p:p.startsWith(t)?p.slice(t.length):p}).join(`
321
+ `),h=performance.now()-n;return h>st&&console.log(`trimLeadingWhitespaceOutsideFences: ${h.toFixed(3)}ms, text length: ${e.length}, lines count: ${i.length}`),f},Fae=(e,t,n,i)=>t==="style"?Vae(n).reduce((o,[s,c])=>{const u=s.replace(/(-[a-z])/g,f=>f[1].toUpperCase());return o[u]=i(c,e,s),o},{}):Hie.indexOf(t)!==-1?i(Ur(n),e,t):(n.match(oae)&&(n=Ur(n.slice(1,n.length-1))),n==="true"?!0:n==="false"?!1:n),Hae=e=>{const t=performance.now(),n=e.replace(Qie,`
322
+ `).replace(tae,"").replace(pae," "),i=performance.now()-t;return i>st&&console.log(`normalizeWhitespace: ${i.toFixed(3)}ms, source length: ${e.length}`),n},Gae=e=>{const t=performance.now();var n=Object.keys(e);n.sort((s,c)=>e[s]._order-e[c]._order||(s<c?-1:1));const i=(s,c={})=>{const u=performance.now(),f=[];if(c.prevCapture=c.prevCapture||"",s.trim())for(;s;){let p=0;for(;p<n.length;){const g=n[p],b=e[g];if(b._qualify&&!Oae(s,c,b._qualify)){p++;continue}const x=performance.now(),w=b._match(s,c),A=performance.now()-x;if(A>1&&console.log(`${g}._match: ${A.toFixed(3)}ms, source length: ${s.length}`),w?.[0]){s=s.substring(w[0].length);const C=performance.now(),L=b._parse(w,i,c),S=performance.now()-C;S>1&&console.log(`${g}._parse: ${S.toFixed(3)}ms, capture length: ${w[0].length}`),c.prevCapture+=w[0],L.type||(L.type=g),f.push(L);break}p++}}c.prevCapture="";const h=performance.now()-u;return h>1&&console.log(`nestedParse: ${h.toFixed(3)}ms, source length: ${s.length}, result count: ${f.length}`),f},o=performance.now()-t;return o>st&&console.log(`parserFor: ${o.toFixed(3)}ms, rules count: ${n.length}`),(s,c)=>i(Hae(s),c)},Fs=e=>(e.inline=1,e),Ja=e=>Fs((t,n)=>n.inline?e.exec(t):null),la=e=>Fs((t,n)=>n.inline||n.simple?e.exec(t):null),Br=e=>(t,n)=>n.inline||n.simple?null:e.exec(t),Yd=e=>Fs(t=>e.exec(t)),Kae=/(javascript|vbscript|data(?!:image)):/i,$ae=e=>{try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(Kae.test(t))return null}catch{return null}return e},Ur=e=>e&&e.replace(Tae,"$1"),xs=(e,t,n)=>{const i=performance.now(),o=n.inline??!1,s=n.simple??!1;n.inline=!0,n.simple=!0;const c=e(t,n);n.inline=o,n.simple=s;const u=performance.now()-i;return u>st&&console.log(`parseInline: ${u.toFixed(3)}ms, children length: ${t.length}, result count: ${c.length}`),c},qae=(e,t,n)=>{const i=performance.now(),o=n.inline??!1,s=n.simple??!1;n.inline=!1,n.simple=!0;const c=e(t,n);n.inline=o,n.simple=s;const u=performance.now()-i;return u>st&&console.log(`parseSimpleInline: ${u.toFixed(3)}ms, children length: ${t.length}, result count: ${c.length}`),c},Wy=(e,t,n={})=>{const i=performance.now(),o=n.inline||!1;n.inline=!1;const s=js(t),c=e(/\n\n$/.test(s)===!1?s.endsWith(`
323
+ `)?`${s}
324
+ `:`${s}
325
+
326
+ `:s,n);n.inline=o;const u=performance.now()-i;return u>st&&console.log(`parseBlock: ${u.toFixed(3)}ms, children length: ${t.length}, result count: ${c.length}`),c},Xy=(e,t,n)=>({children:xs(t,e[2],n)}),Qy=()=>({}),Jy=()=>null,OM=e=>(t,n={})=>{const i=performance.now(),o=(u,f={})=>OM(e)(u,f);if(Array.isArray(t)){const u=n.key,f=[];let h=!1;for(let g=0;g<t.length;g++){n.key=g;const b=o(t[g],n),x=typeof b=="string";x&&h?f[f.length-1]=f[f.length-1]+b:b!==null&&f.push(b),h=x}n.key=u;const p=performance.now()-i;return p>st&&console.log(`reactFor (array): ${p.toFixed(3)}ms, ast length: ${t.length}`),f}const s=e(t,o,n),c=performance.now()-i;return c>st&&console.log(`reactFor (single): ${c.toFixed(3)}ms, ast type: ${t.type}`),s},Zae=(e,t)=>(n,i,o)=>{const s=performance.now(),c=e[n.type]._render,u=t?t(()=>c?.(n,i,o),n,i,o):c?.(n,i,o),f=performance.now()-s;return f>st&&console.log(`createRenderer: ${f.toFixed(3)}ms, ast type: ${n.type}, hasUserRender: ${!!t}`),u},sR=(...e)=>e.filter(Boolean).join(" "),Hf=(e,t,n)=>{let i=e;const o=t.split(".");for(;o.length&&(i=i[o[0]],i!==void 0);)o.shift();return i??n},lR=(e,t)=>{const n=Hf(t,e);return n?typeof n=="function"||typeof n=="object"&&"render"in n?n:Hf(t,`${e}.component`,e):e},Yae=(e="",t={})=>{t.overrides=t.overrides??{},t.namedCodesToUnicode=t.namedCodesToUnicode?{...$C,...t.namedCodesToUnicode}:$C;const n=t.slugify??lc,i=t.sanitizer??$ae,o=t.createElement??E.createElement,s=[qC,ZC,YC,t.enforceAtxHeadings?XC:WC,QC,eR,kM,LM],c=[...s,tR,$y,JC,qy,Zy],u=S=>{const R=S.replace(Yy,""),I=R.length>2048?R.slice(0,2048):R;return nR(t.disableParsingRawHTML?[...s,tR,Zy]:c,I)},f=(S,R)=>{if(R.inline||R.simple||R.inHTML&&S.indexOf(`
327
+
328
+ `)===-1&&R.prevCapture?.indexOf(`
329
+
330
+ `)===-1)return null;let I=0;for(;;){const k=S.indexOf(`
331
+ `,I),O=S.slice(I,k===-1?void 0:k+1);if(nR(s,O)||k===-1||!O.trim())break;I=k+1}const N=S.slice(0,I),_=js(N);return _===""?null:[N,void 0,_]},h=(S,R,...I)=>{const N=Hf(t.overrides??{},`${S}.props`,{}),_=sR(R?.className,N.className),k={...R,...N,..._&&{className:_}};return o(lR(S,t.overrides??{}),k,...I.length===1?[I[0]]:I)},p=S=>{const R=performance.now(),I=S.replace(nae,"");let N=!1;if(t.forceInline)N=!0;else if(!t.forceBlock){const F=I.replace(Yy,"");N=hae.test(F)===!1}const _=C(A(N?I:`${js(I).replace(Yy,"")}
332
+
333
+ `,{inline:N}),{inline:N});for(;typeof _[_.length-1]=="string"&&!_[_.length-1].trim();)_.pop();if(t.wrapper===null){const F=performance.now()-R;return F>st&&console.log(`compile: ${F.toFixed(3)}ms, input length: ${S.length}, inline: ${N}`),_}const k=t.wrapper??(N?"span":"div");let O;if(_.length>1||t.forceWrapper)O=_;else if(_.length===1)if(O=_[0],typeof O=="string"){const F=performance.now()-R;F>st&&console.log(`compile: ${F.toFixed(3)}ms, input length: ${S.length}, inline: ${N}`);const H={key:"outer"};if(!N&&t.overrides){const te=Hf(t.overrides,"p.props",{});if(te&&typeof te=="object"){const ce=sR(H.className,te.className);Object.assign(H,te),ce&&(H.className=ce)}}return o("span",H,O)}else{const F=performance.now()-R;return F>st&&console.log(`compile: ${F.toFixed(3)}ms, input length: ${S.length}, inline: ${N}`),O}else O=null;const U=performance.now()-R;return U>st&&console.log(`compile: ${U.toFixed(3)}ms, input length: ${S.length}, inline: ${N}`),o(k,{key:"outer"},O)},g=(S,R)=>{const I=performance.now();if(!R||!R.trim())return null;const N=R.match(Gie);if(!N)return null;const _=N.reduce((O,U)=>{const F=U.indexOf("=");if(F!==-1){const H=Uae(U.slice(0,F)).trim(),te=jae(U.slice(F+1).trim()),ce=KC[H]??H;if(ce==="ref")return O;const X=Fae(S,H,te,i);O[ce]=X,typeof X=="string"&&($y.test(X)||qy.test(X))&&(O[ce]=p(X.trim()))}else U!=="style"&&(O[KC[U]??U]=!0);return O},{}),k=performance.now()-I;return k>st&&console.log(`attrStringToMap: ${k.toFixed(3)}ms, str length: ${R.length}, attributes count: ${N.length}`),_},b=[],x={},w={[Le.blockQuote]:{_qualify:[">"],_match:Br(qC),_order:it.HIGH,_parse(S,R,I){const N=performance.now(),_=S[0].replace($ie,"").match(qie),k=_?.[1],O=_?.[2]??"",U={alert:k,children:O.indexOf(`
334
+ `)!==-1?Wy(R,O,I):xs(R,O,I)},F=performance.now()-N;return F>st&&console.log(`blockQuote._parse: ${F.toFixed(3)}ms, capture length: ${S[0].length}`),U},_render(S,R,I={}){const N=performance.now(),_={key:I?.key};S.alert&&(_.className=`markdown-alert-${n(S.alert.toLowerCase(),lc)}`,S.children.unshift({attrs:{},children:[{type:Le.text,text:S.alert}],noInnerParse:!0,type:Le.htmlBlock,tag:"header"}));const k=h("blockquote",_,R(S.children,I)),O=performance.now()-N;return O>st&&console.log(`blockQuote._render: ${O.toFixed(3)}ms, children count: ${S.children.length}, has alert: ${!!S.alert}`),k}},[Le.breakLine]:{_qualify:[" "],_match:Yd(Zie),_order:it.HIGH,_parse:Qy,_render(S,R,I={}){return h("br",{key:I.key})}},[Le.breakThematic]:{_qualify:["--","__","**","- ","* ","_ "],_match:Br(Yie),_order:it.HIGH,_parse:Qy,_render(S,R,I={}){return h("hr",{key:I.key})}},[Le.codeBlock]:{_qualify:[" "],_match:Br(YC),_order:it.MAX,_parse(S){return{type:Le.codeBlock,lang:void 0,text:Ur(js(S[0].replace(/^ {4}/gm,"")))}},_render(S,R,I={}){const N=performance.now(),_={...S.attrs??{}},k=S.lang?`lang-${S.lang}`:"lang-plaintext";_.className=_.className?`${_.className} ${k}`:k,S.lang&&!_.lang&&(_.lang=S.lang);const O=h("pre",{key:I.key},h("code",_,S.text)),U=performance.now()-N;return U>st&&console.log(`codeBlock._render: ${U.toFixed(3)}ms, text length: ${S.text.length}, lang: ${S.lang||"none"}`),O}},[Le.codeFenced]:{_qualify:["```","~~~"],_match:Br(ZC),_order:it.MAX,_parse(S){const R=S[4];return{attrs:g("code",S[3]??""),lang:S[2]||void 0,text:R,type:Le.codeBlock}}},[Le.codeInline]:{_qualify:["`"],_match:la(Wie),_order:it.LOW,_parse(S){return{text:Ur(S[2])}},_render(S,R,I={}){const N=performance.now(),_=h("code",{key:I.key},S.text),k=performance.now()-N;return k>st&&console.log(`codeInline._render: ${k.toFixed(3)}ms, text length: ${S.text.length}`),_}},[Le.footnote]:{_qualify:["[^"],_match:Br(Jie),_order:it.MAX,_parse(S){return b.push({footnote:S[2],identifier:S[1]}),{}},_render:Jy},[Le.footnoteReference]:{_qualify:["[^"],_match:Ja(eae),_order:it.HIGH,_parse(S){return{target:`#${n(S[1],lc)}`,text:S[1]}},_render(S,R,I={}){return y.jsx("a",{href:i(S.target,"a","href")??void 0,children:y.jsx("sup",{children:S.text},I.key)},I.key)}},[Le.gfmTask]:{_qualify:["[ ]","[x]"],_match:Ja(rae),_order:it.HIGH,_parse(S){return{completed:S[1].toLowerCase()==="x"}},_render(S,R,I={}){return h("input",{checked:S.completed,key:I.key,readOnly:!0,type:"checkbox"})}},[Le.heading]:{_qualify:["#"],_match:Br(t.enforceAtxHeadings?XC:WC),_order:it.HIGH,_parse(S,R,I){const N=performance.now(),_={children:xs(R,S[2],I),id:n(S[2],lc),level:S[1].length},k=performance.now()-N;return k>st&&console.log(`heading._parse: ${k.toFixed(3)}ms, capture length: ${S[0].length}, level: ${S[1].length}`),_},_render(S,R,I={}){const N=performance.now(),_=h(`h${S.level}`,{id:S.id,key:I.key},R(S.children,I)),k=performance.now()-N;return k>st&&console.log(`heading._render: ${k.toFixed(3)}ms, level: ${S.level}, children count: ${S.children.length}, id: ${S.id}`),_}},[Le.headingSetext]:{_qualify:S=>{const R=S.indexOf(`
335
+ `);return R>0&&R<S.length-1&&(S[R+1]==="="||S[R+1]==="-")},_match:Br(QC),_order:it.MAX,_parse(S,R,I){return{children:xs(R,S[1],I),level:S[2]==="="?1:2,type:Le.heading}}},[Le.htmlBlock]:{_qualify:S=>{if(t.disableParsingRawHTML||S[0]!=="<"||!/^<([a-z][a-z0-9:-]*)\b/.test(S))return!1;const R=S.match(/^<([a-z][a-z0-9:-]*)\b/)?.[1];return R?S.indexOf(`</${R}>`)!==-1:!1},_match:Yd($y),_order:it.HIGH,_parse(S,R,I){const N=S[3].match(rR)?.[1]??"",_=oR(S[3],N),k=u(_)?Wy:xs,O=S[1].toLowerCase(),U=Fie.indexOf(O)!==-1,F=(U?O:S[1]).trim(),H={attrs:g(F,S[2]??""),noInnerParse:U,tag:F};if(I.inAnchor=I.inAnchor||O==="a",U)H.text=S[3];else{const te=I.inHTML;I.inHTML=!0,H.children=k(R,_,I),I.inHTML=te}return I.inAnchor=!1,H},_render(S,R,I={}){const N=performance.now(),_=h(S.tag,{key:I.key,...S.attrs??{}},S.text??(S.children?R(S.children,I):"")),k=performance.now()-N;return k>st&&console.log(`htmlBlock._render: ${k.toFixed(3)}ms, tag: ${S.tag}, has text: ${!!S.text}, has children: ${!!S.children}`),_}},[Le.htmlSelfClosing]:{_qualify:S=>t.disableParsingRawHTML||S[0]!=="<"?!1:/^<([a-zA-Z][a-zA-Z0-9:]*)[\s>/]/.test(S),_match:Yd(qy),_order:it.HIGH,_parse(S){const R=S[1].trim();return{attrs:g(R,S[2]||""),tag:R}},_render(S,R,I={}){const N=performance.now(),_=h(S.tag,{key:I.key,...S.attrs??{}}),k=performance.now()-N;return k>st&&console.log(`htmlSelfClosing._render: ${k.toFixed(3)}ms, tag: ${S.tag}`),_}},[Le.htmlComment]:{_qualify:["<!--"],_match:Yd(JC),_order:it.HIGH,_parse(){return{}},_render:Jy},[Le.customComponent]:{_qualify:S=>!!S.match(/^ *<([A-Z][a-zA-Z0-9]*)/),_match:Br(Zy),_order:it.MAX,_parse(S,R,I){const N=S[3].match(rR)?.[1]??"",_=oR(S[3],N),k=u(_)?Wy:xs,O=S[1],U={attrs:g(O,S[2]??""),noInnerParse:!1,tag:O};{const F=I.inHTML;I.inHTML=!0,U.children=k(R,_,I),I.inHTML=F}return U},_render(S,R,I={}){const N=lR(S.tag,t.overrides??{});if(typeof N=="function"){const _=S.children?R(S.children,I):null;return N({key:I.key,...S.attrs,children:_})}return o(S.tag,{key:I.key,...S.attrs},S.text??(S.children?R(S.children,I):""))}},[Le.image]:{_qualify:["!["],_match:la(Dae),_order:it.HIGH,_parse(S){return{alt:Ur(S[1]),target:Ur(S[2]),title:Ur(S[3])}},_render(S,R,I={}){return h("img",{key:I.key,alt:S.alt??void 0,title:S.title??void 0,src:i(S.target,"img","src")??void 0})}},[Le.link]:{_qualify:["["],_match:Ja(Lae),_order:it.LOW,_parse(S,R,I){return{children:qae(R,S[1],I),target:Ur(S[2]),title:Ur(S[3])}},_render(S,R,I={}){return h("a",{key:I.key,href:i(S.target,"a","href")??void 0,title:S.title},R(S.children,I??{}))}},[Le.linkAngleBraceStyleDetector]:{_qualify:["<"],_match:Ja(lae),_order:it.MAX,_parse(S){let R=S[1],I=!1;return R.indexOf("@")!==-1&&R.indexOf("//")===-1&&(I=!0,R=R.replace("mailto:","")),{children:[{text:R,type:Le.text}],target:I?`mailto:${R}`:R,type:Le.link}}},[Le.linkBareUrlDetector]:{_qualify:(S,R)=>R.inAnchor||t.disableAutoLink?!1:hf(S,"http://")||hf(S,"https://"),_match:Ja(sae),_order:it.MAX,_parse(S){return{children:[{text:S[1],type:Le.text}],target:S[1],title:void 0,type:Le.link}}},[Le.orderedList]:iR(_r,(S,R,...I)=>h(S,R,...I)),[Le.unorderedList]:iR(ou,(S,R,...I)=>h(S,R,...I)),[Le.newlineCoalescer]:{_qualify:[`
336
+ `],_match:Br(Xie),_order:it.LOW,_parse:Qy,_render(){return`
337
+ `}},[Le.paragraph]:{_match:Fs(f),_order:it.LOW,_parse(S,R,I){const N=performance.now(),_=Xy(S,R,I),k=performance.now()-N;return k>st&&console.log(`paragraph._parse: ${k.toFixed(3)}ms, capture length: ${S[0].length}`),_},_render(S,R,I={}){const N=performance.now(),_=h("p",{key:I.key},R(S.children,I)),k=performance.now()-N;return k>st&&console.log(`paragraph._render: ${k.toFixed(3)}ms, children count: ${S.children.length}`),_}},[Le.ref]:{_qualify:["["],_match:Ja(uae),_order:it.MAX,_parse(S){return x[S[1]]={target:S[2],title:S[4]},{}},_render:Jy},[Le.refImage]:{_qualify:["!["],_match:la(dae),_order:it.MAX,_parse(S){return{alt:S[1]?Ur(S[1]):void 0,ref:S[2]}},_render(S,R,I={}){return x[S.ref]?y.jsx("img",{alt:S.alt,src:i(x[S.ref].target,"img","src")??void 0,title:x[S.ref].title},I.key):null}},[Le.refLink]:{_qualify:S=>S[0]==="["&&S.indexOf("](")===-1,_match:Ja(fae),_order:it.MAX,_parse(S,R,I){return{children:R(S[1],I),fallbackChildren:S[0],ref:S[2]}},_render(S,R,I={}){return x[S.ref]?y.jsx("a",{href:i(x[S.ref].target,"a","href")??void 0,title:x[S.ref].title,children:R(S.children,I)},I.key):y.jsx("span",{children:S.fallbackChildren},I.key)}},[Le.table]:{_qualify:["|"],_match:Br(eR),_order:it.HIGH,_parse(S,R,I){const N=performance.now(),_=Bae(S,R,I),k=performance.now()-N;return k>st&&console.log(`table._parse: ${k.toFixed(3)}ms, capture length: ${S[0].length}`),_},_render(S,R,I={}){const N=performance.now(),_=S,k=h("table",{key:I.key},h("thead",{},h("tr",{},..._.header.map((U,F)=>h("th",{key:F,style:aR(_,F)},R(U,I))))),h("tbody",{},..._.cells.map((U,F)=>h("tr",{key:F},...U.map((H,te)=>h("td",{key:te,style:aR(_,te)},R(H,I))))))),O=performance.now()-N;return O>st&&console.log(`table._render: ${O.toFixed(3)}ms, header count: ${_.header.length}, rows count: ${_.cells.length}`),k}},[Le.text]:{_match:Fs((S,R)=>{if(hf(S,":")){const I=Aae.exec(S);if(I)return I}return Cae.exec(S)}),_order:it.MIN,_parse(S){const R=S[0];return{text:R.indexOf("&")===-1?R:R.replace(iae,(I,N)=>t.namedCodesToUnicode?.[N]??I)}},_render(S){return S.text}},[Le.textBolded]:{_qualify:["**","__"],_match:la(bae),_order:it.MED,_parse(S,R,I){return{children:R(S[2],I)}},_render(S,R,I={}){const N=performance.now(),_=h("strong",{key:I.key},R(S.children,I)),k=performance.now()-N;return k>st&&console.log(`textBolded._render: ${k.toFixed(3)}ms, children count: ${S.children.length}`),_}},[Le.textEmphasized]:{_qualify:S=>{const R=S[0];return(R==="*"||R==="_")&&S[1]!==R},_match:la(Eae),_order:it.LOW,_parse(S,R,I){return{children:R(S[2],I)}},_render(S,R,I={}){const N=performance.now(),_=h("em",{key:I.key},R(S.children,I)),k=performance.now()-N;return k>st&&console.log(`textEmphasized._render: ${k.toFixed(3)}ms, children count: ${S.children.length}`),_}},[Le.textEscaped]:{_qualify:["\\"],_match:la(wae),_order:it.HIGH,_parse(S){return{text:S[1],type:Le.text}}},[Le.textMarked]:{_qualify:["=="],_match:la(xae),_order:it.LOW,_parse:Xy,_render(S,R,I={}){return h("mark",{key:I.key},R(S.children,I))}},[Le.textStrikethroughed]:{_qualify:["~~"],_match:la(Sae),_order:it.LOW,_parse:Xy,_render(S,R,I={}){return h("del",{key:I.key},R(S.children,I))}}};t.disableParsingRawHTML===!0&&(delete w[Le.htmlBlock],delete w[Le.htmlSelfClosing]);const A=Gae(w),C=OM(Zae(w,t.renderRule)),L=p(e);return b.length?y.jsxs("div",{children:[L,y.jsx("footer",{children:b.map(S=>y.jsxs("div",{id:n(S.identifier,lc),children:[S.identifier,C(A(S.footnote,{inline:!0}),{inline:!0})]},S.identifier))},"footer")]}):L},Wae=({children:e="",options:t,...n})=>E.cloneElement(Yae(e,t),n),Xae=e=>{const t=e.split(/\r?\n/),n=t.find(s=>s.trim()!=="");if(!n||n.trim()!=="---")return e;let i=!1,o=-1;for(let s=0;s<t.length;s++)if(t[s].trim()==="---")if(!i)i=!0;else{o=s;break}return o>-1?t.slice(o+1).join(`
338
+ `):e},Qae=({children:e,isDarkMode:t,locale:n,options:i})=>{const{overrides:o,...s}=i??{},c=Xae(e);return y.jsx(wie,{children:y.jsx(Mie,{children:y.jsx(Wae,{options:{overrides:{h1:u=>y.jsx(H5,{isClickable:!0,...u}),h2:u=>y.jsx(G5,{isClickable:!0,...u}),h3:u=>y.jsx(Vv,{isClickable:!0,...u}),h4:u=>y.jsx(K5,{isClickable:!0,...u}),h5:u=>y.jsx($5,{isClickable:!0,...u}),h6:u=>y.jsx(q5,{isClickable:!0,...u}),code:u=>u.className?y.jsx(kie,{...u,isDarkMode:t,language:u.className?.replace("lang-","")||"plaintext",fileName:u.fileName,showHeader:!!u.fileName}):y.jsx("strong",{className:"rounded bg-card/60 box-decoration-clone px-1 py-0.5",children:u.children}),blockquote:({className:u,...f})=>y.jsx("blockquote",{className:fe("mt-5 gap-3 border-card border-l-4 pl-5 text-neutral",u),...f}),ul:({className:u,...f})=>y.jsx("ul",{className:fe("mt-5 flex list-disc flex-col gap-3 pl-5",u),...f}),ol:({className:u,...f})=>y.jsx("ol",{className:fe("mt-5 flex list-decimal flex-col gap-3 pl-5",u),...f}),img:({className:u,...f})=>y.jsx("img",{...f,loading:"lazy",className:fe("max-h-[80vh] max-w-full rounded-md",u),src:`${f.src}?raw=true`}),a:u=>y.jsx(Ov,{color:"neutral",isExternalLink:u.href?.startsWith("http"),underlined:!0,locale:n,...u}),pre:u=>u.children,table:u=>y.jsx(Vie,{isRollable:!0,...u}),th:({className:u,...f})=>y.jsx("th",{className:fe("border-neutral border-b bg-neutral/10 p-4",u),...f}),tr:({className:u,...f})=>y.jsx("tr",{className:fe("hover:/10 hover:bg-neutral/10",u),...f}),td:({className:u,...f})=>y.jsx("td",{className:fe("border-neutral-500/50 border-b p-4",u),...f}),hr:({className:u,...f})=>y.jsx("hr",{className:fe("mx-6 mt-16 text-neutral",u),...f}),Tabs:u=>y.jsx(Ky,{...u}),Tab:u=>y.jsx(Ky,{...u}),TabItem:u=>y.jsx(Ky.Item,{...u}),Columns:({className:u,...f})=>y.jsx("div",{className:fe("flex gap-4 max-md:flex-col",u),...f}),Column:({className:u,...f})=>y.jsx("div",{className:fe("flex-1",u),...f}),...o},...s},children:c??""})})})},Jae=(e,t,n)=>{const i={...e};for(const o of Object.keys(e))o===t?(i[n]=e[t],delete i[t]):i[o]=e[o];return i},pv=({children:e,onContentChange:t,disabled:n,validate:i,additionalButtons:o,...s})=>{const[c,u]=E.useState(e),[f,h]=E.useState(0),p=c!==e,g=()=>{u(e),h(C=>C+1)},b=()=>{t(c)},x=C=>{u(C.currentTarget.value)},w=C=>{C.key==="Enter"&&!n&&A?(C.preventDefault(),b()):C.key==="Escape"&&(C.preventDefault(),g())};E.useEffect(()=>{u(e),h(C=>C+1)},[e]);const A=i?.(c)??!0;return y.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",role:"group","aria-label":"Content editor input",children:[y.jsx(Js,{onChange:x,onKeyDown:w,"aria-label":"Editable input value","aria-describedby":p||o?"content-editor-input-actions":void 0,"aria-invalid":!A,variant:ho.INVISIBLE,className:"size-full",defaultValue:e,disabled:n,...s},f),(p||o)&&y.jsxs("div",{id:"content-editor-input-actions",className:"flex w-full items-center justify-end gap-2",role:"group","aria-label":"Edit actions",children:[p&&y.jsxs(y.Fragment,{children:[y.jsx(lt,{Icon:Ys,label:`Save changes${A?"":" (invalid content)"}`,variant:Ve.HOVERABLE,color:Pe.TEXT,size:Je.ICON_SM,className:"cursor-pointer hover:scale-110",disabled:n||!A,onClick:b,"aria-describedby":A?void 0:"validation-error"}),y.jsx(lt,{Icon:Ao,label:"Cancel changes",variant:Ve.HOVERABLE,size:Je.ICON_SM,color:Pe.TEXT,className:"cursor-pointer hover:scale-110",onClick:g,disabled:n})]}),o]})]},String(e))},eoe=()=>{const{session:e,revalidateSession:t,setSession:n}=ch(),{mutate:i}=dW(),o=e?.user?"authenticated":"unauthenticated",s=o==="authenticated",c=o==="unauthenticated",u=e?.user;return{isAuthenticated:s,isUnauthenticated:c,user:u,revalidateSession:t,logout:async()=>{n(null),i()}}},toe=({children:e,onContentChange:t,disabled:n,validate:i,additionalButtons:o,...s})=>{const{isAuthenticated:c}=eoe(),[u,f]=E.useState(e),[h,p]=E.useState(0),g=u!==e,b=()=>{f(e),p(L=>L+1)},x=()=>{t(u)},w=L=>f(L.currentTarget.value??""),A=L=>{L.key==="Enter"&&(L.metaKey||L.ctrlKey)&&!n&&C?(L.preventDefault(),x()):L.key==="Escape"&&(L.preventDefault(),b())};E.useEffect(()=>{f(e),p(L=>L+1)},[e]);const C=i?.(u)??!0;return y.jsxs("div",{className:"flex size-full flex-col items-center justify-between gap-2",role:"group","aria-label":"Content editor textarea",children:[y.jsx(xW,{onChange:w,onKeyDown:A,variant:"invisible",className:"size-full",value:e,isActive:c,disabled:n,"aria-label":"Editable textarea content","aria-describedby":g||o?"content-editor-textarea-actions":void 0,"aria-invalid":!C,...s},h),(g||o)&&y.jsxs("div",{id:"content-editor-textarea-actions",className:"flex w-full items-center justify-end gap-2",role:"group","aria-label":"Edit actions",children:[g&&y.jsxs(y.Fragment,{children:[y.jsx(lt,{Icon:Ys,label:`Save changes${C?"":" (invalid content)"}`,variant:Ve.HOVERABLE,color:Pe.TEXT,size:Je.ICON_SM,className:"cursor-pointer hover:scale-110",disabled:n||!C,onClick:x,"aria-describedby":C?void 0:"textarea-validation-error"}),y.jsx(lt,{Icon:Ao,label:"Cancel changes",variant:Ve.HOVERABLE,size:Je.ICON_SM,color:Pe.TEXT,className:"cursor-pointer hover:scale-110",onClick:b,disabled:n})]}),o]})]},e)},noe=e=>{let t,n;if(typeof e=="number"||!Number.isNaN(Number(e)))t="=",n=e.toString();else if(typeof e=="string"){const i=["<=",">=","<",">","="].find(o=>e.startsWith(o));i&&(t=i,n=e.slice(i.length))}return{comparator:t,numberValue:n}},roe=({value:e,onChange:t})=>{const{comparator:n,numberValue:i}=E.useMemo(()=>noe(e),[e]),[o,s]=E.useState(n??null),[c,u]=E.useState(i??null);return E.useEffect(()=>{o&&c&&(o!==n||c!==i)&&t(`${o}${c}`)},[o,n,i,c,t]),y.jsxs("div",{className:"flex gap-1",children:[y.jsxs(Te,{onValueChange:s,defaultValue:n,children:[y.jsx(Te.Trigger,{className:"w-20",children:y.jsx(Te.Value,{placeholder:"Select a comparator"})}),y.jsxs(Te.Content,{children:[y.jsx(Te.Item,{value:"<",children:"<"}),y.jsx(Te.Item,{value:"<=",children:"<="}),y.jsx(Te.Item,{value:"=",children:"="}),y.jsx(Te.Item,{value:">=",children:">="}),y.jsx(Te.Item,{value:">",children:">"})]})]}),y.jsx(Js,{type:"number","aria-label":"Quantity",defaultValue:c??void 0,onChange:f=>u(f.target.value),className:"min-w-4"})]})},ioe=({keyPath:e,dictionary:t,...n})=>{const{editedContent:i,addEditedContent:o}=En(),s=Jr(),{mutate:c,isPending:u}=gW();return y.jsx(toe,{variant:ho.DEFAULT,onContentChange:f=>o(t.localId,f,e),additionalButtons:y.jsx(lt,{Icon:N1,label:"Audit",variant:Ve.HOVERABLE,size:Je.ICON_SM,color:Pe.TEXT,className:"cursor-pointer hover:scale-110",isLoading:u,onClick:()=>{c({fileContent:JSON.stringify({...t,...i?.[t.localId]??{}}),keyPath:e,locales:s.internationalization.locales??[],aiOptions:{apiKey:s.ai?.apiKey,model:s.ai?.model,temperature:s.ai?.temperature}},{onSuccess:f=>{if(f?.data)try{const h=f.data.fileContent;o(t.localId,h,e)}catch(h){console.error(h)}}})}}),...n})},aoe=({keyPath:e,dictionary:t,...n})=>{const{addEditedContent:i}=En();return y.jsx(pv,{variant:ho.DEFAULT,onContentChange:o=>i(t.localId,o,e),...n})},ooe=[{content:"False",value:!1},{content:"True",value:!0}],soe=({dictionary:e,keyPath:t,...n})=>{const{addEditedContent:i}=En();return y.jsx(iu,{choices:ooe,value:!0,onChange:o=>i(e.localId,o,t),color:Ht.TEXT,size:Ci.SM,...n})},loe=({section:e,keyPath:t,dictionary:n,renderSection:i})=>{const{locale:o,defaultLocale:s}=Cv(),{selectedLocales:c,availableLocales:u}=uM(),f=e[G.Translation],h=Object.keys(f),p=u.length>c.length?c:[...new Set([...u,...h])],g=e[G.Translation];return y.jsx("table",{className:"w-full",children:y.jsx("tbody",{className:"flex w-full flex-col gap-2",children:p.map(b=>y.jsxs(E.Fragment,{children:[y.jsx("tr",{className:"mt-2 w-full p-2 text-xs",children:ef(b,o)}),y.jsx("tr",{children:y.jsx(Na,{section:g[b]??Yn(g[s]),keyPath:[...t,{type:G.Translation,key:b}],dictionary:n,renderSection:i})})]},b))})})},coe=({section:e,keyPath:t,dictionary:n,renderSection:i})=>{const{addEditedContent:o}=En(),{addNewEnumeration:s,removeEnumeration:c}=jt("navigation-view"),u=e[G.Enumeration],f=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[G.Enumeration]).map(h=>{const p=[...t,{type:G.Enumeration}];return y.jsxs(E.Fragment,{children:[y.jsx("tr",{className:"mt-2 w-full",children:y.jsx("div",{className:"flex flex-1",children:y.jsx(lt,{label:c.label.value,variant:Ve.HOVERABLE,color:Pe.TEXT,Icon:Qf,className:"ml-auto",onClick:()=>o(n.localId,void 0,p),children:c.text})})}),y.jsx("tr",{className:"w-full p-2",children:y.jsx(roe,{value:h,onChange:g=>{const b=e[G.Enumeration],x=Jae(b,h,g),w={...e,[G.Enumeration]:x};o(n.localId,w,t)}})}),y.jsx("tr",{className:"block w-full",children:y.jsx(iE,{section:u[h]??Yn(u[f]),keyPath:p,dictionary:n,renderSection:i})})]},h)})})}),y.jsx(lt,{label:s.label.value,variant:Ve.HOVERABLE,color:Pe.NEUTRAL,textAlign:Tr.LEFT,isFullWidth:!0,onClick:()=>o(n.localId,Yn(u[f])??"",[...t,{type:G.Enumeration,key:"unknown"}]),Icon:Xf,className:"m-2",children:s.text})]})},uoe=({section:e,keyPath:t,dictionary:n,renderSection:i})=>{const o=e[G.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(E.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(Na,{section:o[s]??Yn(o.true),keyPath:[...t,{type:G.Condition,key:s}],dictionary:n,renderSection:i})},s)]},s))})})},doe=({section:e,keyPath:t,dictionary:n,renderSection:i})=>{const o=e[G.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(E.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(Na,{section:o[s]??Yn(o.male),keyPath:[...t,{type:G.Gender,key:s}],dictionary:n,renderSection:i})},s)]},s))})})},foe=({section:e,keyPath:t,dictionary:n,renderSection:i})=>{const{addEditedContent:o}=En(),{addNewElement:s,removeElement:c}=jt("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,f)=>y.jsxs(E.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(f)}),y.jsx(lt,{label:c.label.value,variant:Ve.HOVERABLE,color:Pe.NEUTRAL,className:"ml-auto",textAlign:Tr.LEFT,onClick:()=>{const h=[...t,{type:G.Array,key:e.length}];o(n.localId,void 0,h)},Icon:Qf,children:c.text})]}),y.jsx("tr",{className:"block w-full",children:y.jsx(Na,{section:u??Yn(e[0]),keyPath:[...t,{type:G.Array,key:f}],dictionary:n,renderSection:i})})]},JSON.stringify(u)))})}),y.jsx(lt,{label:s.label.value,variant:Ve.HOVERABLE,color:Pe.NEUTRAL,textAlign:Tr.LEFT,isFullWidth:!0,onClick:()=>{const u=[...t,{type:G.Array,key:e.length}];o(n.localId,Yn(e[0])??"",u,!1)},Icon:Xf,children:s.text})]})},hoe=({section:e,keyPath:t,dictionary:n,renderSection:i})=>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:G.Object,key:o}],c=e,u=Object.keys(c)[0],f=c[o]??Yn(c[u]);return y.jsxs(E.Fragment,{children:[y.jsx("tr",{className:"mt-2 p-2 text-xs",children:String(o)},JSON.stringify(f)),y.jsx("tr",{className:"block w-full",children:y.jsx(iE,{section:f,keyPath:s,dictionary:n,renderSection:i})},JSON.stringify(f))]},o)})})})});var fc=function(e){return e[e.Edit=0]="Edit",e[e.Preview=1]="Preview",e}(fc||{});const poe=({section:e,keyPath:t,dictionary:n,isDarkMode:i})=>{const[o,s]=E.useState(fc.Edit),c=[{content:"Edit",value:fc.Edit},{content:"Preview",value:fc.Preview}],u=[...t,{type:G.Markdown}],f=e[G.Markdown];return y.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[y.jsx(iu,{choices:c,value:o,onChange:s,color:Ht.TEXT,size:Ci.SM,className:"ml-auto"}),y.jsx(Na,{section:f,keyPath:u,dictionary:n,renderSection:o===fc.Preview?h=>y.jsx(Qae,{isDarkMode:i,children:h}):void 0})]})},moe=({section:e,keyPath:t,...n})=>{const i=[...t,{type:G.Insertion}],o=e[G.Insertion];return y.jsx("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:y.jsx(Na,{section:o,keyPath:i,...n})})},yoe=({section:e,keyPath:t,...n})=>{const i=[...t,{type:G.File}],o=e[G.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(Na,{section:s,keyPath:i,...n})]})},goe=({keyPath:e,dictionary:t,renderSection:n,section:i,...o})=>{const{addEditedContent:s}=En(),c=i[G.Nested],u=[...e,{type:G.Nested}];return y.jsxs("div",{className:"w-full p-2",children:[y.jsx(Bg,{children:"Dictionary key"}),y.jsx(pv,{"aria-label":"Edit field",type:"text",variant:ho.DEFAULT,...o,onContentChange:f=>{s(t.localId,{...c,dictionaryKey:String(f)},u)},children:c.dictionaryKey??""}),y.jsx(Bg,{children:"Path (optional)"}),y.jsx(pv,{"aria-label":"Edit field",type:"text",variant:ho.DEFAULT,...o,onContentChange:f=>{s(t.localId,{...c,path:f!==""?f:void 0},u)},children:c.path??""})]})},iE=({section:e,keyPath:t,dictionary:n,renderSection:i,isDarkMode:o})=>{const{tsxNotEditable:s}=jt("navigation-view"),c=Hs(e);return c===G.ReactNode?y.jsxs(y.Fragment,{children:[y.jsx("span",{children:"[React Node]"}),y.jsx("span",{className:"text-neutral text-xs",children:s})]}):c===G.Nested?y.jsx(goe,{dictionary:n,renderSection:i,keyPath:t,section:e}):c===G.Translation?y.jsx(loe,{dictionary:n,renderSection:i,keyPath:t,section:e}):c===G.Enumeration?y.jsx(coe,{dictionary:n,renderSection:i,keyPath:t,section:e}):c===G.Condition?y.jsx(uoe,{dictionary:n,renderSection:i,keyPath:t,section:e}):c===G.Gender?y.jsx(doe,{dictionary:n,renderSection:i,keyPath:t,section:e}):c===G.Insertion?y.jsx(moe,{dictionary:n,renderSection:i,keyPath:t,section:e}):c===G.Markdown?y.jsx(poe,{dictionary:n,keyPath:t,section:e,isDarkMode:o}):c===G.File?y.jsx(yoe,{dictionary:n,renderSection:i,keyPath:t,section:e}):c===G.Array?y.jsx(foe,{dictionary:n,renderSection:i,keyPath:t,section:e}):c===G.Object?y.jsx(hoe,{dictionary:n,renderSection:i,keyPath:t,section:e}):c===G.Number?y.jsx("div",{className:"w-full p-2",children:y.jsx(aoe,{dictionary:n,keyPath:t,type:"number","aria-label":"Edit field",children:e})}):c===G.Text?y.jsx("div",{className:"w-full p-2",children:typeof i=="function"?i(e):y.jsx(ioe,{variant:ho.DEFAULT,"aria-label":"Edit field",keyPath:t,dictionary:n,children:e})}):c===G.Boolean?y.jsx("div",{className:"w-full p-2",children:y.jsx(soe,{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 : ",c]})},Na=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(iE,{...e})}),Bc=e=>{const t=DL(e),n=Hs(e);return t&&(n===G.ReactNode||n===G.File)?!0:t&&typeof t.nodeType=="string"?Bc(t[t.nodeType]):typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"},voe=({keyPath:e,dictionaryKey:t,onClickKeyPath:n,locale:i})=>y.jsx(xK,{links:[{text:t,onClick:()=>n([])},...e.map((o,s)=>({onClick:()=>n(e.slice(0,s+1)),text:o.key?.toString()??""}))],locale:i,elementType:"location"}),pf=e=>String(e).replace(/([A-Z])/g," $1").toLowerCase().trim(),Ss=({section:e,keyPath:t,dictionary:n})=>{const{locales:i}=Qe.internationalization,o=Zn(e,t),{addEditedContent:s}=Gs(),{setFocusedContentKeyPath:c,focusedContent:u}=ba(),{addNewElement:f,goToField:h}=jt("navigation-view"),p=Hs(o),g=x=>(u?.keyPath?.length??0)>0&&Fc(x,u?.keyPath??[]),b=Bc(o);return o?b?y.jsx(lt,{label:h.label.value,variant:Ve.HOVERABLE,color:Pe.TEXT,className:"w-full",onClick:()=>c(t),IconRight:bf,children:pf(t[t.length-1].key)}):typeof o=="object"?p===G.ReactNode?y.jsx(y.Fragment,{children:"React Node"}):p===G.Translation?y.jsx("div",{className:"flex flex-col justify-between gap-2",children:i.map(x=>y.jsx(Ss,{keyPath:[...t,{type:G.Translation,key:x}],section:e,dictionary:n},x))}):p===G.Enumeration||p===G.Condition?y.jsx("div",{className:"flex flex-col justify-between gap-2",children:Object.keys(o[p]).map(x=>y.jsx(Ss,{keyPath:[...t,{type:p,key:x}],section:e,dictionary:n},x))}):p===G.Array?y.jsxs("div",{className:"flex flex-col justify-between gap-2",children:[o.map((x,w)=>{const A=[...t,{type:G.Array,key:w}];return y.jsx(Ss,{keyPath:A,section:e,dictionary:n},JSON.stringify(A))}),y.jsx(lt,{label:f.label.value,variant:Ve.HOVERABLE,color:Pe.NEUTRAL,textAlign:Tr.LEFT,onClick:()=>{const x=[...t,{type:G.Array,key:o.length}],w=o,A=Yn(w[w.length-1])??"";s(n.localId,A,x,!1),c(x)},Icon:Xf,children:f.text})]}):typeof o.nodeType=="string"?y.jsx(Ss,{keyPath:[...t,{type:o.nodeType}],section:e,dictionary:n}):y.jsx("div",{className:"flex w-full max-w-full flex-col justify-between gap-2",children:Object.keys(o).map(x=>{const w=[...t,{type:G.Object,key:x}];return Bc(Zn(e,w))?y.jsx(lt,{label:`${h.label.value} ${x}`,isActive:g(w),variant:Ve.HOVERABLE,color:Pe.TEXT,className:"w-full",onClick:()=>c(w),IconRight:bf,children:pf(x)},x):y.jsx(k1,{label:`${h.label.value} ${x}`,isActive:g(w),onClick:()=>c(w),header:pf(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(Ss,{keyPath:w,section:e,dictionary:n})})})},x)})}):y.jsxs(y.Fragment,{children:["Error loading section --",p,"--",JSON.stringify(o),"--",JSON.stringify(t)]}):y.jsx(y.Fragment,{})},boe=({dictionary:e,isDarkMode:t})=>{const{content:n,key:i,localId:o}=e,{editedContent:s}=En(),{focusedContent:c,setFocusedContentKeyPath:u}=ba(),f=c?.keyPath,h=typeof s?.[o]?.content>"u"?n:s?.[o]?.content,p=Zn(h,f??[]),g=Bc(h),b=Bc(p);return E.useEffect(()=>{typeof p>"u"&&u(c?.keyPath?.slice(0,-1)??[])},[]),y.jsxs("div",{children:[y.jsxs("div",{className:"mb-6 flex items-center justify-between gap-2",children:[y.jsx(voe,{dictionaryKey:i,keyPath:f??[],onClickKeyPath:u}),y.jsx("div",{className:"flex items-center gap-2",children:y.jsx(pie,{})})]}),y.jsxs("div",{className:"flex gap-2 max-md:flex-col",children:[typeof h=="object"&&h&&!g&&Object.keys(h).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(Ss,{keyPath:[],section:h,dictionary:e})}),(b||(f??[]).length>0)&&y.jsx(Na,{keyPath:f??[],section:p,dictionary:e,isDarkMode:t})]})]})},Eoe=e=>{const{titleRequiredError:t,titleInvalidTypeError:n,titleMinLengthError:i,keyRequiredError:o,keyInvalidTypeError:s,keySpaceError:c,keyMinLengthError:u,descriptionRequiredError:f,descriptionInvalidTypeError:h,requiredErrorProjectId:p,invalidTypeErrorProjectId:g,invalidTypeErrorTags:b}=jt("dictionary-detail-schema");return ire({title:sc({error:x=>x.input===void 0?t.value:n.value}).refine(x=>x.length===0||x.length>=4,{error:i.value}).optional(),key:sc({error:x=>x.input===void 0?o.value:s.value}).min(4,{error:u.value}).regex(/^[a-zA-Z0-9-_]+$/,{error:c.value}).default(""),description:sc({error:x=>x.input===void 0?f.value:h.value}).optional(),projectIds:av(sc({error:x=>x.input===void 0?p.value:g.value})).default([e]),tags:av(sc({error:()=>b.value})).default([])})},xoe=({dictionary:e})=>{const{session:t}=jj(),{project:n}=t??{},{data:i,isLoading:o}=fW(),{data:s}=mW(),c=Eoe(String(n?.id)),{form:u,isSubmitting:f}=Vte(c,{defaultValues:e}),{editedContent:h,setEditedDictionary:p}=En(),{titleInput:g,keyInput:b,descriptionInput:x,projectInput:w,tagsSelect:A,auditButton:C}=jt("dictionary-details"),{mutate:L,isPending:S}=yW(),R=h?.[e.localId];E.useEffect(()=>{u.reset(e)},[e,u?.reset]),E.useEffect(()=>{typeof R>"u"&&u.reset(e)},[R]);const I=()=>{const N={...e,...R};L({fileContent:JSON.stringify(N)},{onSuccess:_=>{if(_?.data)try{const k=_.data.fileContent;p(O=>({...O,...N,...k})),u.reset({...N,...k})}catch(k){console.error(k)}}})};return y.jsx(kr,{background:"none",border:!0,roundedSize:"2xl",className:"w-full px-5 pt-5 pb-3",children:y.jsxs(Fe,{className:"flex w-full flex-col gap-8",...u,schema:c,onChange:N=>{p(_=>({..._,...N}))},children:[y.jsxs("div",{className:"flex w-full flex-1 gap-8 max-md:flex-col",children:[y.jsx(Fe.EditableFieldInput,{name:"key",label:b.label,placeholder:b.label.value,description:b.description,disabled:f,isRequired:!0,onSave:N=>{u.setValue("key",N),p(_=>({...e,..._??{},key:N}))}}),y.jsx(Fe.EditableFieldInput,{name:"title",label:g.label,placeholder:g.placeholder.value,description:g.description,disabled:f,onSave:N=>{u.setValue("title",N),p(_=>({...e,..._??{},title:N}))}})]}),y.jsx(Fe.EditableFieldTextArea,{name:"description",label:x.label,placeholder:x.placeholder.value,description:x.description,disabled:f,onSave:N=>{u.setValue("description",N),p(_=>({...e,..._??{},description:N}))}}),y.jsxs("div",{className:"flex size-full flex-1 gap-8 max-md:flex-col",children:[y.jsxs(Fe.MultiSelect,{name:"projectIds",label:w.label.value,description:w.description.value,onValueChange:N=>{const _=[N].flat();u.setValue("projectIds",_),p(k=>({...e,...k??{},projectIds:_}))},children:[y.jsx(pn.Trigger,{getBadgeValue:N=>i?.data?.find(_=>String(_.id)===N)?.name??N,children:y.jsx(pn.Input,{placeholder:w.placeholder.value})}),y.jsx(pn.Content,{children:y.jsx(Ms,{isLoading:o,children:y.jsx(pn.List,{children:i?.data?.map(N=>y.jsx(pn.Item,{value:String(N.id),children:N.name},String(N.id)))})})})]}),y.jsxs(Fe.MultiSelect,{name:"tags",label:A.label.value,description:A.description.value,onValueChange:N=>{u.setValue("tags",[N].flat()),p(_=>({...e,..._??{},tags:[N].flat()}))},children:[y.jsx(pn.Trigger,{getBadgeValue:N=>i?.data?.find(_=>String(_.id)===N)?.name??N,children:y.jsx(pn.Input,{placeholder:A.placeholder.value})}),y.jsx(pn.Content,{children:y.jsx(Ms,{isLoading:o,children:y.jsx(pn.List,{children:s?.data?.map(N=>y.jsx(pn.Item,{value:String(N.key),children:N.name??N.key},String(N.key)))})})})]})]}),y.jsx("div",{className:"flex flex-wrap items-center justify-end gap-2 max-md:flex-col",children:y.jsx(Fe.Button,{type:"button",size:Je.ICON_MD,label:C.label.value,Icon:N1,variant:Ve.OUTLINE,color:Pe.TEXT,className:"max-md:w-full",onClick:I,disabled:f||S,isLoading:S})})]})})};function cR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function Soe(e){if(Array.isArray(e))return e}function Aoe(e,t,n){return(t=Noe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function woe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var i,o,s,c,u=[],f=!0,h=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(i=s.call(n)).done)&&(u.push(i.value),u.length!==t);f=!0);}catch(p){h=!0,o=p}finally{try{if(!f&&n.return!=null&&(c=n.return(),Object(c)!==c))return}finally{if(h)throw o}}return u}}function Toe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
339
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function dR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uR(Object(n),!0).forEach(function(i){Aoe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uR(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Coe(e,t){if(e==null)return{};var n,i,o=Roe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Roe(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function Ioe(e,t){return Soe(e)||woe(e,t)||koe(e,t)||Toe()}function _oe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Noe(e){var t=_oe(e,"string");return typeof t=="symbol"?t:t+""}function koe(e,t){if(e){if(typeof e=="string")return cR(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?cR(e,t):void 0}}function Loe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,i)}return n}function hR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fR(Object(n),!0).forEach(function(i){Loe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fR(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Doe(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(i){return t.reduceRight(function(o,s){return s(o)},i)}}function hc(e){return function t(){for(var n=this,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];return t.apply(n,[].concat(o,u))}}}function Gf(e){return{}.toString.call(e).includes("Object")}function Ooe(e){return!Object.keys(e).length}function Uc(e){return typeof e=="function"}function joe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function zoe(e,t){return Gf(t)||fa("changeType"),Object.keys(t).some(function(n){return!joe(e,n)})&&fa("changeField"),t}function Moe(e){Uc(e)||fa("selectorType")}function Poe(e){Uc(e)||Gf(e)||fa("handlerType"),Gf(e)&&Object.values(e).some(function(t){return!Uc(t)})&&fa("handlersType")}function Boe(e){e||fa("initialIsRequired"),Gf(e)||fa("initialType"),Ooe(e)&&fa("initialContent")}function Uoe(e,t){throw new Error(e[t]||e.default)}var Voe={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"},fa=hc(Uoe)(Voe),Wd={changes:zoe,selector:Moe,handler:Poe,initial:Boe};function Foe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Wd.initial(e),Wd.handler(t);var n={current:e},i=hc(Koe)(n,t),o=hc(Goe)(n),s=hc(Wd.changes)(e),c=hc(Hoe)(n);function u(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(p){return p};return Wd.selector(h),h(n.current)}function f(h){Doe(i,o,s,c)(h)}return[u,f]}function Hoe(e,t){return Uc(t)?t(e.current):t}function Goe(e,t){return e.current=hR(hR({},e.current),t),t}function Koe(e,t,n){return Uc(t)?t(e.current):Object.keys(n).forEach(function(i){var o;return(o=t[i])===null||o===void 0?void 0:o.call(t,e.current[i])}),n}var $oe={create:Foe},qoe={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.54.0/min/vs"}};function Zoe(e){return function t(){for(var n=this,i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return o.length>=e.length?e.apply(this,o):function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];return t.apply(n,[].concat(o,u))}}}function Yoe(e){return{}.toString.call(e).includes("Object")}function Woe(e){return e||pR("configIsRequired"),Yoe(e)||pR("configType"),e.urls?(Xoe(),{paths:{vs:e.urls.monacoBase}}):e}function Xoe(){console.warn(jM.deprecation)}function Qoe(e,t){throw new Error(e[t]||e.default)}var jM={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!
340
+ You are using deprecated way of configuration.
341
+
342
+ Instead of using
343
+ monaco.config({ urls: { monacoBase: '...' } })
344
+ use
345
+ monaco.config({ paths: { vs: '...' } })
346
+
347
+ For more please check the link https://github.com/suren-atoyan/monaco-loader#config
348
+ `},pR=Zoe(Qoe)(jM),Joe={config:Woe},ese=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return function(o){return n.reduceRight(function(s,c){return c(s)},o)}};function zM(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],zM(e[n],t[n]))}),dR(dR({},e),t)}var tse={type:"cancelation",msg:"operation is manually canceled"};function eg(e){var t=!1,n=new Promise(function(i,o){e.then(function(s){return t?o(tse):i(s)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var nse=["monaco"],rse=$oe.create({config:qoe,isInitialized:!1,resolve:null,reject:null,monaco:null}),MM=Ioe(rse,2),su=MM[0],_h=MM[1];function ise(e){var t=Joe.config(e),n=t.monaco,i=Coe(t,nse);_h(function(o){return{config:zM(o.config,i),monaco:n}})}function ase(){var e=su(function(t){var n=t.monaco,i=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:i,resolve:o}});if(!e.isInitialized){if(_h({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),eg(tg);if(window.monaco&&window.monaco.editor)return PM(window.monaco),e.resolve(window.monaco),eg(tg);ese(ose,lse)(cse)}return eg(tg)}function ose(e){return document.body.appendChild(e)}function sse(e){var t=document.createElement("script");return e&&(t.src=e),t}function lse(e){var t=su(function(i){var o=i.config,s=i.reject;return{config:o,reject:s}}),n=sse("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function cse(){var e=su(function(n){var i=n.config,o=n.resolve,s=n.reject;return{config:i,resolve:o,reject:s}}),t=window.require;t.config(e.config),t(["vs/editor/editor.main"],function(n){var i=n.m;PM(i),e.resolve(i)},function(n){e.reject(n)})}function PM(e){su().monaco||_h({monaco:e})}function use(){return su(function(e){var t=e.monaco;return t})}var tg=new Promise(function(e,t){return _h({resolve:e,reject:t})}),BM={config:ise,init:ase,__getMonacoInstance:use},dse={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},ng=dse,fse={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},hse=fse;function pse({children:e}){return Ne.createElement("div",{style:hse.container},e)}var mse=pse,yse=mse;function gse({width:e,height:t,isEditorReady:n,loading:i,_ref:o,className:s,wrapperProps:c}){return Ne.createElement("section",{style:{...ng.wrapper,width:e,height:t},...c},!n&&Ne.createElement(yse,null,i),Ne.createElement("div",{ref:o,style:{...ng.fullWidth,...!n&&ng.hide},className:s}))}var vse=gse,UM=E.memo(vse);function bse(e){E.useEffect(e,[])}var VM=bse;function Ese(e,t,n=!0){let i=E.useRef(!0);E.useEffect(i.current||!n?()=>{i.current=!1}:e,t)}var Hn=Ese;function Tc(){}function _s(e,t,n,i){return xse(e,i)||Sse(e,t,n,i)}function xse(e,t){return e.editor.getModel(FM(e,t))}function Sse(e,t,n,i){return e.editor.createModel(t,n,i?FM(e,i):void 0)}function FM(e,t){return e.Uri.parse(t)}function Ase({original:e,modified:t,language:n,originalLanguage:i,modifiedLanguage:o,originalModelPath:s,modifiedModelPath:c,keepCurrentOriginalModel:u=!1,keepCurrentModifiedModel:f=!1,theme:h="light",loading:p="Loading...",options:g={},height:b="100%",width:x="100%",className:w,wrapperProps:A={},beforeMount:C=Tc,onMount:L=Tc}){let[S,R]=E.useState(!1),[I,N]=E.useState(!0),_=E.useRef(null),k=E.useRef(null),O=E.useRef(null),U=E.useRef(L),F=E.useRef(C),H=E.useRef(!1);VM(()=>{let oe=BM.init();return oe.then(M=>(k.current=M)&&N(!1)).catch(M=>M?.type!=="cancelation"&&console.error("Monaco initialization: error:",M)),()=>_.current?X():oe.cancel()}),Hn(()=>{if(_.current&&k.current){let oe=_.current.getOriginalEditor(),M=_s(k.current,e||"",i||n||"text",s||"");M!==oe.getModel()&&oe.setModel(M)}},[s],S),Hn(()=>{if(_.current&&k.current){let oe=_.current.getModifiedEditor(),M=_s(k.current,t||"",o||n||"text",c||"");M!==oe.getModel()&&oe.setModel(M)}},[c],S),Hn(()=>{let oe=_.current.getModifiedEditor();oe.getOption(k.current.editor.EditorOption.readOnly)?oe.setValue(t||""):t!==oe.getValue()&&(oe.executeEdits("",[{range:oe.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),oe.pushUndoStop())},[t],S),Hn(()=>{_.current?.getModel()?.original.setValue(e||"")},[e],S),Hn(()=>{let{original:oe,modified:M}=_.current.getModel();k.current.editor.setModelLanguage(oe,i||n||"text"),k.current.editor.setModelLanguage(M,o||n||"text")},[n,i,o],S),Hn(()=>{k.current?.editor.setTheme(h)},[h],S),Hn(()=>{_.current?.updateOptions(g)},[g],S);let te=E.useCallback(()=>{if(!k.current)return;F.current(k.current);let oe=_s(k.current,e||"",i||n||"text",s||""),M=_s(k.current,t||"",o||n||"text",c||"");_.current?.setModel({original:oe,modified:M})},[n,t,o,e,i,s,c]),ce=E.useCallback(()=>{!H.current&&O.current&&(_.current=k.current.editor.createDiffEditor(O.current,{automaticLayout:!0,...g}),te(),k.current?.editor.setTheme(h),R(!0),H.current=!0)},[g,h,te]);E.useEffect(()=>{S&&U.current(_.current,k.current)},[S]),E.useEffect(()=>{!I&&!S&&ce()},[I,S,ce]);function X(){let oe=_.current?.getModel();u||oe?.original?.dispose(),f||oe?.modified?.dispose(),_.current?.dispose()}return Ne.createElement(UM,{width:x,height:b,isEditorReady:S,loading:p,_ref:O,className:w,wrapperProps:A})}var wse=Ase;E.memo(wse);function Tse(e){let t=E.useRef();return E.useEffect(()=>{t.current=e},[e]),t.current}var Cse=Tse,Xd=new Map;function Rse({defaultValue:e,defaultLanguage:t,defaultPath:n,value:i,language:o,path:s,theme:c="light",line:u,loading:f="Loading...",options:h={},overrideServices:p={},saveViewState:g=!0,keepCurrentModel:b=!1,width:x="100%",height:w="100%",className:A,wrapperProps:C={},beforeMount:L=Tc,onMount:S=Tc,onChange:R,onValidate:I=Tc}){let[N,_]=E.useState(!1),[k,O]=E.useState(!0),U=E.useRef(null),F=E.useRef(null),H=E.useRef(null),te=E.useRef(S),ce=E.useRef(L),X=E.useRef(),oe=E.useRef(i),M=Cse(s),Y=E.useRef(!1),$=E.useRef(!1);VM(()=>{let j=BM.init();return j.then(P=>(U.current=P)&&O(!1)).catch(P=>P?.type!=="cancelation"&&console.error("Monaco initialization: error:",P)),()=>F.current?Ee():j.cancel()}),Hn(()=>{let j=_s(U.current,e||i||"",t||o||"",s||n||"");j!==F.current?.getModel()&&(g&&Xd.set(M,F.current?.saveViewState()),F.current?.setModel(j),g&&F.current?.restoreViewState(Xd.get(s)))},[s],N),Hn(()=>{F.current?.updateOptions(h)},[h],N),Hn(()=>{!F.current||i===void 0||(F.current.getOption(U.current.editor.EditorOption.readOnly)?F.current.setValue(i):i!==F.current.getValue()&&($.current=!0,F.current.executeEdits("",[{range:F.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),F.current.pushUndoStop(),$.current=!1))},[i],N),Hn(()=>{let j=F.current?.getModel();j&&o&&U.current?.editor.setModelLanguage(j,o)},[o],N),Hn(()=>{u!==void 0&&F.current?.revealLine(u)},[u],N),Hn(()=>{U.current?.editor.setTheme(c)},[c],N);let me=E.useCallback(()=>{if(!(!H.current||!U.current)&&!Y.current){ce.current(U.current);let j=s||n,P=_s(U.current,i||e||"",t||o||"",j||"");F.current=U.current?.editor.create(H.current,{model:P,automaticLayout:!0,...h},p),g&&F.current.restoreViewState(Xd.get(j)),U.current.editor.setTheme(c),u!==void 0&&F.current.revealLine(u),_(!0),Y.current=!0}},[e,t,n,i,o,s,h,p,g,c,u]);E.useEffect(()=>{N&&te.current(F.current,U.current)},[N]),E.useEffect(()=>{!k&&!N&&me()},[k,N,me]),oe.current=i,E.useEffect(()=>{N&&R&&(X.current?.dispose(),X.current=F.current?.onDidChangeModelContent(j=>{$.current||R(F.current.getValue(),j)}))},[N,R]),E.useEffect(()=>{if(N){let j=U.current.editor.onDidChangeMarkers(P=>{let J=F.current.getModel()?.uri;if(J&&P.find(ne=>ne.path===J.path)){let ne=U.current.editor.getModelMarkers({resource:J});I?.(ne)}});return()=>{j?.dispose()}}return()=>{}},[N,I]);function Ee(){X.current?.dispose(),b?g&&Xd.set(s,F.current.saveViewState()):F.current.getModel()?.dispose(),F.current.dispose()}return Ne.createElement(UM,{width:x,height:w,isEditorReady:N,loading:f,_ref:H,className:A,wrapperProps:C})}var Ise=Rse,_se=E.memo(Ise);const Nse=({children:e,language:t,isDarkMode:n,showLineNumbers:i,showCopyButton:o=!0,isReadOnly:s=!1,onChange:c})=>{const u=E.useRef(null),f=E.useRef(null),[h,p]=E.useState({height:0,width:0}),g=E.useMemo(()=>n?"vs-dark-transparent":"hc-light-theme",[n]),b=(w,A)=>{f.current=w;const C=(w.getContentHeight()??0)+25;A.editor.defineTheme("vs-dark-transparent",{base:"vs-dark",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),A.editor.defineTheme("hc-light-theme",{base:"vs",inherit:!0,rules:[],colors:{"editor.background":"#00000000"}}),A.editor.setTheme(g),A.languages.typescript.typescriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),A.languages.typescript.javascriptDefaults.setDiagnosticsOptions({noSemanticValidation:!0,noSyntaxValidation:!0}),A.languages.typescript.typescriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),A.languages.typescript.javascriptDefaults.setCompilerOptions({noLib:!0,allowNonTsExtensions:!0}),p({height:C,width:u.current?.clientWidth??0})},x=i??e.split(`
349
+ `).length>1;return y.jsxs("div",{className:fe("relative h-full w-full text-sm",i&&"ml-0"),children:[o&&y.jsx("div",{className:"sticky top-5 z-10",children:y.jsx("div",{className:fe("absolute right-2 bottom-0 flex h-7 items-center"),children:y.jsx(pD,{content:e})})}),y.jsx("div",{className:"z-0 grid size-full grid-cols-[0px] overflow-auto",ref:u,children:y.jsx(_se,{...h,defaultLanguage:"typescript",language:t,loading:y.jsx(Ms,{}),defaultValue:String(e).replace(/\n$/,""),onMount:b,onChange:c,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:x?"on":"off"},theme:g,className:"my-2 rounded-md"})})]})},kse=({dictionary:e,isDarkMode:t})=>{const{setEditedContent:n,editedContent:i}=En(),o=c=>{try{return JSON.parse(c),!0}catch{return!1}},s=E.useMemo(()=>i?.[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(Nse,{language:"json",onChange:c=>{o(c??"{}")&&n(e.localId,JSON.parse(c??"{}"))},isDarkMode:t,children:JSON.stringify(s,null,2)})})},Qd=({section:e,onValueChange:t})=>{const{multilingual:n,text:i,number:o,boolean:s,node:c,array:u,enumeration:f,triggerPlaceHolder:h,nest:p,gender:g,condition:b,markdown:x,insertion:w,reactNode:A,file:C}=jt("node-type-selector"),[L,S]=E.useState(Hs(e)),R=I=>{S(I),t(I)};return y.jsxs(Te,{value:L,onValueChange:R,children:[y.jsx(Te.Trigger,{children:y.jsx(Te.Value,{placeholder:h})}),y.jsxs(Te.Content,{children:[y.jsx(Te.Item,{value:G.Translation,children:n}),y.jsx(Te.Item,{value:G.Text,children:i}),y.jsx(Te.Item,{value:G.Number,children:o}),y.jsx(Te.Item,{value:G.Boolean,children:s}),y.jsx(Te.Item,{value:G.Object,children:c}),y.jsx(Te.Item,{value:G.Array,children:u}),y.jsx(Te.Item,{value:G.Enumeration,children:f}),y.jsx(Te.Item,{value:G.Gender,children:g}),y.jsx(Te.Item,{value:G.Insertion,children:w}),y.jsx(Te.Item,{value:G.Markdown,children:x}),y.jsx(Te.Item,{value:G.Nested,children:p}),y.jsx(Te.Item,{value:G.Condition,children:b}),y.jsx(Te.Item,{value:G.ReactNode,disabled:!0,children:A}),y.jsx(Te.Item,{value:G.File,children:C})]})]})},mv=({section:e,dictionaryLocalId:t,keyPath:n,onNodeTypeChange:i})=>{const o=Jr()?.internationalization.locales??[],s=Hs(e),c=DL(e),u=f=>{i(Jl(s,o,f))};if(s===G.Translation||s===G.Condition||s===G.Gender||s===G.Enumeration){const f=Object.keys(e[s])[0],h=[...n,{type:s,key:f}];return y.jsxs("div",{className:"flex w-full flex-col gap-1",children:[y.jsx(Qd,{section:e,onValueChange:p=>i(Jl(p,o))}),y.jsx(mv,{section:c,keyPath:h,dictionaryLocalId:t,onNodeTypeChange:u})]})}if(s===G.Array){const f=[...n,{type:s,key:0}];return y.jsxs("div",{className:"flex w-full flex-col gap-1",children:[y.jsx(Qd,{section:e,onValueChange:h=>i(Jl(h,o))}),y.jsx(mv,{section:c,keyPath:f,dictionaryLocalId:t,onNodeTypeChange:u})]})}return s===G.Object?y.jsxs(y.Fragment,{children:[y.jsx(Qd,{section:e,onValueChange:f=>i(Jl(f,o))}),y.jsx("div",{className:"mt-6 ml-10",children:y.jsx(Dse,{keyPath:n,section:e,dictionaryLocalId:t})})]}):y.jsx(Qd,{section:e,onValueChange:f=>i(Jl(f,o))})},aE=({sectionKey:e,section:t,keyPath:n,dictionaryLocalId:i})=>{const{focusedContent:o,setFocusedContentKeyPath:s}=ba(),{renameEditedContent:c,addEditedContent:u}=Gs(),{titleInput:f,deleteButton:h}=jt("structure-view"),p=g=>{c(i,g,n);const b=n.slice(0,-1),x=n[n.length-1];s([...b,{...x,key:g}])};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":Fc(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(nj,{name:"key","aria-label":"Key",placeholder:f.placeholder.value,defaultValue:e,onSave:g=>p(g),variant:ho.INVISIBLE}),y.jsx(lt,{label:h.label.value,variant:Ve.HOVERABLE,size:Je.ICON_SM,color:Pe.TEXT,className:"translate-x-2",Icon:Qf,onClick:()=>{u(i,void 0,n),s(n.slice(0,-1))}})]}),y.jsxs("span",{className:"ml-3 text-neutral text-sm",children:["( ",pf(e)," )"]})]}),y.jsx(mv,{keyPath:n,dictionaryLocalId:i,section:t,onNodeTypeChange:g=>{u(i,g,n)}})]})})},Lse=({section:e,keyPath:t,dictionaryLocalId:n})=>{const{addNodeButton:i}=jt("structure-view"),{setFocusedContentKeyPath:o}=wv(),{addEditedContent:s}=Gs();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(c=>y.jsx("li",{className:"flex w-full",children:y.jsx(aE,{sectionKey:c,section:e?.[c],keyPath:[...t,{type:G.Object,key:c}],dictionaryLocalId:n})},c))}),y.jsx(lt,{label:i.label.value,variant:Ve.HOVERABLE,size:Je.MD,color:Pe.TEXT,Icon:Xf,className:"flex-1",onClick:()=>{const u=[...t,{type:G.Object,key:"newKey"}];s(n,"",u),o(u)},children:i.text})]})},Dse=({section:e,keyPath:t,dictionaryLocalId:n})=>!e||typeof e!="object"||typeof e.nodeType=="string"?y.jsx(aE,{sectionKey:"content",section:e,keyPath:t,dictionaryLocalId:n}):y.jsx(Lse,{section:e,keyPath:t,dictionaryLocalId:n}),Ose=({dictionary:e})=>{const{content:t,localId:n}=e,{editedContent:i}=En();return y.jsx(aE,{section:typeof i?.[n]?.content>"u"?t:i?.[n]?.content,keyPath:[],dictionaryLocalId:n})};var br=function(e){return e[e.DetailsEditor=0]="DetailsEditor",e[e.ContentEditor=1]="ContentEditor",e[e.StructureEditor=2]="StructureEditor",e[e.JSONEditor=3]="JSONEditor",e}(br||{});const jse=({dictionary:e,onClickDictionaryList:t,isDarkMode:n,mode:i,onDelete:o,onSave:s})=>{const c=Jr(),[u,f]=E.useState(br.ContentEditor),{returnToDictionaryList:h}=jt("dictionary-field-editor"),{setFocusedContent:p}=wv(),{setLocaleDictionaries:g}=$f();return E.useEffect(()=>{p(b=>({...b??{},dictionaryKey:e.key,dictionaryLocalId:e.localId})),g(b=>({...b,[e.localId]:e}))},[]),y.jsx(Ire,{availableLocales:c?.internationalization.locales??[],children:y.jsxs("div",{className:"flex size-full flex-col gap-6 px-2",children:[y.jsx(lt,{onClick:t,variant:Ve.HOVERABLE,className:"z-10 mr-auto ml-5",color:Pe.TEXT,Icon:TG,label:h.label.value,children:h.text}),y.jsx(iu,{defaultValue:u,onChange:b=>f(b),color:Ht.TEXT,size:Ci.SM,className:"m-auto w-full max-w-xl",choices:[{content:"Details",value:br.DetailsEditor},{content:"Structure",value:br.StructureEditor},{content:"Content",value:br.ContentEditor},{content:"JSON",value:br.JSONEditor}].filter(({value:b})=>!(!i.includes("remote")&&b===br.DetailsEditor))}),u===br.DetailsEditor&&y.jsx(xoe,{dictionary:e}),u===br.StructureEditor&&y.jsx(Ose,{dictionary:e}),u===br.ContentEditor&&y.jsx(boe,{dictionary:e,isDarkMode:n}),u===br.JSONEditor&&y.jsx(kse,{dictionary:e,isDarkMode:n}),y.jsx(rM,{dictionary:e,mode:i,onDelete:()=>{p(null),o?.()},onSave:s})]})})},zse=({children:e,isHidden:t,minWidth:n=0,align:i="left",className:o,...s})=>y.jsx("div",{className:fe("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:fe(i==="right"&&"ml-auto"),children:e})}),Mse=e=>{switch(e){case"xs":return 480;case"sm":return 640;case"md":return 768;case"lg":return 1024;case"xl":return 1280;case"2xl":return 1536;default:return e}},Pse=()=>{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)},Bse=e=>{if(!(typeof window>"u"))return(window?.innerWidth??0)<=e},mR=(e="md")=>{const t=Mse(e),n=Pse(),i=Bse(t);return{isMobileScreen:i,isMobileUserAgent:n,isMobile:i??n}},Use=(e="md")=>{const[t,n]=E.useState(mR(e));return E.useEffect(()=>{const i=()=>{n(mR(e))};return window.addEventListener("resize",i,{passive:!0}),()=>window.removeEventListener("resize",i)},[e]),t},Nh=gD((e,t)=>({drawers:{},open:n=>e(i=>({drawers:{...i.drawers,[n]:!0}})),close:n=>e(i=>({drawers:{...i.drawers,[n]:!1}})),isOpen:n=>t().drawers[n]??!1})),Vse=e=>{const t=e.getBoundingClientRect(),n=t.top,i=t.bottom-1;if(n>=0&&i<=window.innerHeight){const o=t.left+t.width/2,s=t.top+10,c=document.elementFromPoint(o,s);return e===c||e.contains(c)}return!1},HM=({title:e,identifier:t,children:n,header:i,closeOnOutsideClick:o=!0,backButton:s,isOpen:c,onClose:u})=>{const{isMobile:f}=Use("md"),h=E.useRef(null),p=E.useRef(null),{close:g,open:b,isOpen:x}=Nh(vD(A=>({close:()=>A.close(t),open:()=>A.open(t),isOpen:A.isOpen(t)})));bD({disableScroll:x,key:t?`right_drawer_${t}`:"right_drawer"}),E.useEffect(()=>{const A=C=>{try{if(!h.current)return;const L=x&&o,S=C.target&&!h.current.contains(C.target),R=Vse(h.current);(L&&S&&R||!C.target)&&(g(),u?.())}catch{g(),u?.()}};return window.addEventListener("mousedown",A),()=>window.removeEventListener("mousedown",A)},[x,g,u,o,t]),E.useEffect(()=>{c!==void 0&&(c?b():(g(),u?.()))},[g,b,u,c,t]);const w=A=>{A.target===A.currentTarget&&f&&(g(),u?.())};return y.jsx("div",{className:"fixed top-0 right-0 z-50 flex h-full justify-end",children:y.jsx(zse,{isHidden:!x,align:"right",children:y.jsxs(kr,{className:"relative flex h-screen w-screen flex-col text-text md:w-[400px]",ref:h,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:Ve.HOVERABLE,color:Pe.TEXT,label:s.text??"Go back",onClick:s.onBack,Icon:kG,children:s?.text})}),y.jsx("div",{children:y.jsx(lt,{variant:Ve.HOVERABLE,color:Pe.TEXT,label:"Close",className:"ml-auto",onClick:g,Icon:Ao,size:Je.ICON_MD})})]}),e&&y.jsx("h2",{className:"flex items-center justify-center font-bold text-lg",children:e}),i]}),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:w,ref:p,children:n})})]})})})};var oE="ToastProvider",[sE,Fse,Hse]=Uj("Toast"),[GM,Gse]=$c("Toast",[Hse]),[Kse,kh]=GM(oE),lE=e=>{const{__scopeToast:t,label:n="Notification",duration:i=5e3,swipeDirection:o="right",swipeThreshold:s=50,children:c}=e,[u,f]=E.useState(null),[h,p]=E.useState(0),g=E.useRef(!1),b=E.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${oE}\`. Expected non-empty \`string\`.`),y.jsx(sE.Provider,{scope:t,children:y.jsx(Kse,{scope:t,label:n,duration:i,swipeDirection:o,swipeThreshold:s,toastCount:h,viewport:u,onViewportChange:f,onToastAdd:E.useCallback(()=>p(x=>x+1),[]),onToastRemove:E.useCallback(()=>p(x=>x-1),[]),isFocusedToastEscapeKeyDownRef:g,isClosePausedRef:b,children:c})})};lE.displayName=oE;var KM="ToastViewport",$se=["F8"],yv="toast.viewportPause",gv="toast.viewportResume",cE=E.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:i=$se,label:o="Notifications ({hotkey})",...s}=e,c=kh(KM,n),u=Fse(n),f=E.useRef(null),h=E.useRef(null),p=E.useRef(null),g=E.useRef(null),b=Ct(t,g,c.onViewportChange),x=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=c.toastCount>0;E.useEffect(()=>{const C=L=>{i.length!==0&&i.every(R=>L[R]||L.code===R)&&g.current?.focus()};return document.addEventListener("keydown",C),()=>document.removeEventListener("keydown",C)},[i]),E.useEffect(()=>{const C=f.current,L=g.current;if(w&&C&&L){const S=()=>{if(!c.isClosePausedRef.current){const _=new CustomEvent(yv);L.dispatchEvent(_),c.isClosePausedRef.current=!0}},R=()=>{if(c.isClosePausedRef.current){const _=new CustomEvent(gv);L.dispatchEvent(_),c.isClosePausedRef.current=!1}},I=_=>{!C.contains(_.relatedTarget)&&R()},N=()=>{C.contains(document.activeElement)||R()};return C.addEventListener("focusin",S),C.addEventListener("focusout",I),C.addEventListener("pointermove",S),C.addEventListener("pointerleave",N),window.addEventListener("blur",S),window.addEventListener("focus",R),()=>{C.removeEventListener("focusin",S),C.removeEventListener("focusout",I),C.removeEventListener("pointermove",S),C.removeEventListener("pointerleave",N),window.removeEventListener("blur",S),window.removeEventListener("focus",R)}}},[w,c.isClosePausedRef]);const A=E.useCallback(({tabbingDirection:C})=>{const S=u().map(R=>{const I=R.ref.current,N=[I,...ale(I)];return C==="forwards"?N:N.reverse()});return(C==="forwards"?S.reverse():S).flat()},[u]);return E.useEffect(()=>{const C=g.current;if(C){const L=S=>{const R=S.altKey||S.ctrlKey||S.metaKey;if(S.key==="Tab"&&!R){const N=document.activeElement,_=S.shiftKey;if(S.target===C&&_){h.current?.focus();return}const U=A({tabbingDirection:_?"backwards":"forwards"}),F=U.findIndex(H=>H===N);rg(U.slice(F+1))?S.preventDefault():_?h.current?.focus():p.current?.focus()}};return C.addEventListener("keydown",L),()=>C.removeEventListener("keydown",L)}},[u,A]),y.jsxs(GK,{ref:f,role:"region","aria-label":o.replace("{hotkey}",x),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&y.jsx(vv,{ref:h,onFocusFromOutsideViewport:()=>{const C=A({tabbingDirection:"forwards"});rg(C)}}),y.jsx(sE.Slot,{scope:n,children:y.jsx(He.ol,{tabIndex:-1,...s,ref:b})}),w&&y.jsx(vv,{ref:p,onFocusFromOutsideViewport:()=>{const C=A({tabbingDirection:"backwards"});rg(C)}})]})});cE.displayName=KM;var $M="ToastFocusProxy",vv=E.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:i,...o}=e,s=kh($M,n);return y.jsx(Kb,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:c=>{const u=c.relatedTarget;!s.viewport?.contains(u)&&i()}})});vv.displayName=$M;var lu="Toast",qse="toast.swipeStart",Zse="toast.swipeMove",Yse="toast.swipeCancel",Wse="toast.swipeEnd",uE=E.forwardRef((e,t)=>{const{forceMount:n,open:i,defaultOpen:o,onOpenChange:s,...c}=e,[u,f]=Ef({prop:i,defaultProp:o??!0,onChange:s,caller:lu});return y.jsx(qc,{present:n||u,children:y.jsx(Jse,{open:u,...c,ref:t,onClose:()=>f(!1),onPause:Cr(e.onPause),onResume:Cr(e.onResume),onSwipeStart:Xe(e.onSwipeStart,h=>{h.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Xe(e.onSwipeMove,h=>{const{x:p,y:g}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","move"),h.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${p}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${g}px`)}),onSwipeCancel:Xe(e.onSwipeCancel,h=>{h.currentTarget.setAttribute("data-swipe","cancel"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:Xe(e.onSwipeEnd,h=>{const{x:p,y:g}=h.detail.delta;h.currentTarget.setAttribute("data-swipe","end"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),h.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),h.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${p}px`),h.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${g}px`),f(!1)})})})});uE.displayName=lu;var[Xse,Qse]=GM(lu,{onClose(){}}),Jse=E.forwardRef((e,t)=>{const{__scopeToast:n,type:i="foreground",duration:o,open:s,onClose:c,onEscapeKeyDown:u,onPause:f,onResume:h,onSwipeStart:p,onSwipeMove:g,onSwipeCancel:b,onSwipeEnd:x,...w}=e,A=kh(lu,n),[C,L]=E.useState(null),S=Ct(t,X=>L(X)),R=E.useRef(null),I=E.useRef(null),N=o||A.duration,_=E.useRef(0),k=E.useRef(N),O=E.useRef(0),{onToastAdd:U,onToastRemove:F}=A,H=Cr(()=>{C?.contains(document.activeElement)&&A.viewport?.focus(),c()}),te=E.useCallback(X=>{!X||X===1/0||(window.clearTimeout(O.current),_.current=new Date().getTime(),O.current=window.setTimeout(H,X))},[H]);E.useEffect(()=>{const X=A.viewport;if(X){const oe=()=>{te(k.current),h?.()},M=()=>{const Y=new Date().getTime()-_.current;k.current=k.current-Y,window.clearTimeout(O.current),f?.()};return X.addEventListener(yv,M),X.addEventListener(gv,oe),()=>{X.removeEventListener(yv,M),X.removeEventListener(gv,oe)}}},[A.viewport,N,f,h,te]),E.useEffect(()=>{s&&!A.isClosePausedRef.current&&te(N)},[s,N,A.isClosePausedRef,te]),E.useEffect(()=>(U(),()=>F()),[U,F]);const ce=E.useMemo(()=>C?WM(C):null,[C]);return A.viewport?y.jsxs(y.Fragment,{children:[ce&&y.jsx(ele,{__scopeToast:n,role:"status","aria-live":i==="foreground"?"assertive":"polite",children:ce}),y.jsx(Xse,{scope:n,onClose:H,children:So.createPortal(y.jsx(sE.ItemSlot,{scope:n,children:y.jsx(HK,{asChild:!0,onEscapeKeyDown:Xe(u,()=>{A.isFocusedToastEscapeKeyDownRef.current||H(),A.isFocusedToastEscapeKeyDownRef.current=!1}),children:y.jsx(He.li,{tabIndex:0,"data-state":s?"open":"closed","data-swipe-direction":A.swipeDirection,...w,ref:S,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:Xe(e.onKeyDown,X=>{X.key==="Escape"&&(u?.(X.nativeEvent),X.nativeEvent.defaultPrevented||(A.isFocusedToastEscapeKeyDownRef.current=!0,H()))}),onPointerDown:Xe(e.onPointerDown,X=>{X.button===0&&(R.current={x:X.clientX,y:X.clientY})}),onPointerMove:Xe(e.onPointerMove,X=>{if(!R.current)return;const oe=X.clientX-R.current.x,M=X.clientY-R.current.y,Y=!!I.current,$=["left","right"].includes(A.swipeDirection),me=["left","up"].includes(A.swipeDirection)?Math.min:Math.max,Ee=$?me(0,oe):0,j=$?0:me(0,M),P=X.pointerType==="touch"?10:2,J={x:Ee,y:j},ne={originalEvent:X,delta:J};Y?(I.current=J,Jd(Zse,g,ne,{discrete:!1})):yR(J,A.swipeDirection,P)?(I.current=J,Jd(qse,p,ne,{discrete:!1}),X.target.setPointerCapture(X.pointerId)):(Math.abs(oe)>P||Math.abs(M)>P)&&(R.current=null)}),onPointerUp:Xe(e.onPointerUp,X=>{const oe=I.current,M=X.target;if(M.hasPointerCapture(X.pointerId)&&M.releasePointerCapture(X.pointerId),I.current=null,R.current=null,oe){const Y=X.currentTarget,$={originalEvent:X,delta:oe};yR(oe,A.swipeDirection,A.swipeThreshold)?Jd(Wse,x,$,{discrete:!0}):Jd(Yse,b,$,{discrete:!0}),Y.addEventListener("click",me=>me.preventDefault(),{once:!0})}})})})}),A.viewport)})]}):null}),ele=e=>{const{__scopeToast:t,children:n,...i}=e,o=kh(lu,t),[s,c]=E.useState(!1),[u,f]=E.useState(!1);return rle(()=>c(!0)),E.useEffect(()=>{const h=window.setTimeout(()=>f(!0),1e3);return()=>window.clearTimeout(h)},[]),u?null:y.jsx(eh,{asChild:!0,children:y.jsx(Kb,{...i,children:s&&y.jsxs(y.Fragment,{children:[o.label," ",n]})})})},tle="ToastTitle",dE=E.forwardRef((e,t)=>{const{__scopeToast:n,...i}=e;return y.jsx(He.div,{...i,ref:t})});dE.displayName=tle;var nle="ToastDescription",fE=E.forwardRef((e,t)=>{const{__scopeToast:n,...i}=e;return y.jsx(He.div,{...i,ref:t})});fE.displayName=nle;var qM="ToastAction",hE=E.forwardRef((e,t)=>{const{altText:n,...i}=e;return n.trim()?y.jsx(YM,{altText:n,asChild:!0,children:y.jsx(Lh,{...i,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${qM}\`. Expected non-empty \`string\`.`),null)});hE.displayName=qM;var ZM="ToastClose",Lh=E.forwardRef((e,t)=>{const{__scopeToast:n,...i}=e,o=Qse(ZM,n);return y.jsx(YM,{asChild:!0,children:y.jsx(He.button,{type:"button",...i,ref:t,onClick:Xe(e.onClick,o.onClose)})})});Lh.displayName=ZM;var YM=E.forwardRef((e,t)=>{const{__scopeToast:n,altText:i,...o}=e;return y.jsx(He.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":i||void 0,...o,ref:t})});function WM(e){const t=[];return Array.from(e.childNodes).forEach(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent&&t.push(i.textContent),ile(i)){const o=i.ariaHidden||i.hidden||i.style.display==="none",s=i.dataset.radixToastAnnounceExclude==="";if(!o)if(s){const c=i.dataset.radixToastAnnounceAlt;c&&t.push(c)}else t.push(...WM(i))}}),t}function Jd(e,t,n,{discrete:i}){const o=n.originalEvent.currentTarget,s=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),i?L1(o,s):o.dispatchEvent(s)}var yR=(e,t,n=0)=>{const i=Math.abs(e.x),o=Math.abs(e.y),s=i>o;return t==="left"||t==="right"?s&&i>n:!s&&o>n};function rle(e=()=>{}){const t=Cr(e);dn(()=>{let n=0,i=0;return n=window.requestAnimationFrame(()=>i=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(i)}},[t])}function ile(e){return e.nodeType===e.ELEMENT_NODE}function ale(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const o=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||o?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function rg(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var ole=lE,XM=cE,QM=uE,JM=dE,eP=fE,sle=hE,tP=Lh;const lle=Object.freeze(Object.defineProperty({__proto__:null,Action:sle,Close:tP,Description:eP,Provider:ole,Root:QM,Title:JM,Toast:uE,ToastAction:hE,ToastClose:Lh,ToastDescription:fE,ToastProvider:lE,ToastTitle:dE,ToastViewport:cE,Viewport:XM,createToastScope:Gse},Symbol.toStringTag,{value:"Module"})),cle=lle,ule=({className:e,...t})=>y.jsx(XM,{className:fe("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:top-auto sm:right-0 sm:bottom-0 sm:flex-col md:max-w-[420px]",e),...t}),dle=yn("group 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 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-[state=closed]:animate-out data-[state=open]:animate-in data-[swipe=end]:animate-out data-[swipe=move]:transition-none",{variants:{variant:{error:"bg-error/40 text-text",success:"bg-success/30 text-text",default:"bg-card/80 text-text"}},defaultVariants:{variant:"default"}}),fle=({className:e,variant:t,...n})=>y.jsx(QM,{className:fe(dle({variant:t}),e),...n}),hle=({className:e,...t})=>y.jsx(tP,{className:fe("absolute top-1 right-1 rounded-md p-1 text-text/50 opacity-0 transition-opacity hover:text-text/80 focus:opacity-100 focus:outline-hidden focus:ring-1 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600 group-[.destructive]:hover:text-red-50",e),"toast-close":"",...t,children:y.jsx(Ao,{className:"size-5"})}),ple=({className:e,...t})=>y.jsx(JM,{className:fe("font-semibold text-sm [&+div]:text-xs",e),...t}),mle=({className:e,...t})=>y.jsx(eP,{className:fe("text-sm opacity-90",e),...t}),yle=1,gle=900*1e3;var qr=function(e){return e.ADD_TOAST="ADD_TOAST",e.UPDATE_TOAST="UPDATE_TOAST",e.DISMISS_TOAST="DISMISS_TOAST",e.REMOVE_TOAST="REMOVE_TOAST",e}(qr||{});let ig=0;const vle=()=>(ig=(ig+1)%Number.MAX_SAFE_INTEGER,ig.toString()),ag=new Map,gR=e=>{if(ag.has(e))return;const t=setTimeout(()=>{ag.delete(e),Cc({type:qr.REMOVE_TOAST,toastId:e})},gle);ag.set(e,t)},ble=(e,t)=>{switch(t.type){case qr.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,yle)};case qr.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case qr.DISMISS_TOAST:{const{toastId:n}=t;return n?gR(n):e.toasts.forEach(i=>{gR(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===n||n===void 0?{...i,open:!1}:i)}}case qr.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},mf=[];let yf={toasts:[]};const Cc=e=>{yf=ble(yf,e),mf.forEach(t=>{t(yf)})},Ele=({...e})=>{const t=vle(),n=o=>Cc({type:qr.UPDATE_TOAST,toast:{...o,id:t}}),i=()=>Cc({type:qr.DISMISS_TOAST,toastId:t});return Cc({type:qr.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:o=>{o||i()}}}),{id:t,dismiss:i,update:n}},nP=()=>{const[e,t]=E.useState(yf);return E.useEffect(()=>(mf.push(t),()=>{const n=mf.indexOf(t);n>-1&&mf.splice(n,1)}),[e]),{...e,toast:Ele,dismiss:n=>Cc({type:qr.DISMISS_TOAST,toastId:n})}},xle=()=>{const{toasts:e}=nP();return y.jsxs(cle.Provider,{children:[e.map(({id:t,title:n,description:i,action:o,...s})=>y.jsxs(fle,{...s,children:[y.jsxs("div",{className:"grid gap-1",children:[n&&y.jsx(ple,{children:n}),i&&y.jsx(mle,{children:i})]}),o,y.jsx(hle,{})]},t)),y.jsx(ule,{})]})},Sle={queries:{retry:1,staleTime:0,gcTime:300*1e3,refetchOnMount:"always",refetchOnWindowFocus:!1,refetchOnReconnect:!1},mutations:{retry:0}},vR=e=>e.split("_").join(" "),Ale=()=>{const{toast:e}=nP();return{onError:i=>{[(()=>{try{if(typeof i=="string")return JSON.parse(i)}catch{}return i})()].flat().forEach(o=>{e({title:vR(o?.title??"Error"),description:o?.message??String(o??"An error occurred"),variant:"error"})})},onSuccess:i=>{i?.error&&e({title:vR(i.error.title??i.error.code??"Error"),description:i.error.message??i.error.code??"An error occurred",variant:"error"}),i?.message&&e({title:i.message,description:i.description,variant:"success"})}}},wle=({children:e})=>{const{onError:t,onSuccess:n}=Ale(),i=E.useRef(null);if(!i.current){const o=new zY({defaultOptions:Sle,mutationCache:new Cj({onSuccess:n,onError:t,onSettled:(s,c,u,f,h)=>{h.meta?.invalidateQueries&&h.meta.invalidateQueries.forEach(p=>{o.invalidateQueries({queryKey:p})}),h.meta?.resetQueries&&h.meta.resetQueries.forEach(p=>{o.resetQueries({queryKey:p})})}})});i.current=o}return y.jsx(MY,{client:i.current,children:e})},Tle=({children:e})=>y.jsx(c8,{features:PZ,children:e}),Cle=({children:e})=>y.jsx(Tle,{children:y.jsxs(wle,{children:[y.jsx(xle,{}),e]})}),Rle=({children:e})=>y.jsx(I4,{children:y.jsx(a4,{children:y.jsx(l1,{path:"*",element:e})})}),bv="dictionaryList",pE=e=>`dictionary_edition_${e}`,rP=e=>{const t=pE(e),{isOpen:n,open:i,close:o}=Nh(),{getEditedContentValue:s}=Gs(),{focusedContent:c,setFocusedContent:u}=ba();return E.useEffect(()=>{c&&(c.keyPath?.length??0)>0&&i(t)},[c,i,t]),{isOpen:n(t),focusedContent:c,getEditedContentValue:s,close:()=>{o(t),u(f=>f?.dictionaryKey?{...f,keyPath:[]}:f)}}},Ile=({locale:e,identifier:t,handleOnBack:n,isDarkMode:i})=>{const{modalTitle:o,openDictionaryEditor:s,noDictionaryFocused:c,focusedDictionaryNotFound:u}=jt("dictionary-edition-drawer"),[f,h]=E.useState(!1),{focusedContent:p}=rP(t),{data:g}=Mj(),b=E.useCallback(()=>{h(!1),n()},[n]),x=p?.dictionaryKey;if(!x)return y.jsx("span",{className:"mx-auto my-10 text-neutral text-sm",children:c});const w=gH(x,p.keyPath??[],g);return w?y.jsxs(y.Fragment,{children:[y.jsx(Sb,{isOpen:f,onClose:()=>h(!1),hasCloseButton:!0,title:o.value,size:"xl",transparency:"lg",children:y.jsx("div",{className:"size-full px-3 pt-5",children:y.jsx(jse,{dictionary:w,onClickDictionaryList:b,isDarkMode:i,mode:["local","remote"],onDelete:()=>{h(!1),n()},onSave:()=>{h(!1)}})})}),y.jsxs("div",{className:"/20 mb-5 flex w-full border-text/20 border-b border-dashed px-3 pb-2",children:[y.jsx("h3",{className:"w-full text-center text-lg",children:w.title?w.title:w.key}),y.jsx(lt,{variant:"hoverable",color:"text",size:"icon-md",IconRight:_1,label:s.label.value,onClick:()=>h(!0)})]}),y.jsx(hne,{dictionary:w,locale:e,mode:["local","remote"]})]}):y.jsx("span",{className:"mx-auto my-10 text-neutral text-sm",children:u})},_le=({locale:e,dictionaryKey:t,isDarkMode:n})=>{const{backButtonText:i}=jt("dictionary-edition-drawer"),o=pE(t),{focusedContent:s,close:c}=rP(t),{openDictionaryListDrawer:u}=Nh(h=>({openDictionaryListDrawer:()=>h.open(bv)})),f=()=>{c(),u()};return y.jsx(HM,{identifier:o,backButton:{onBack:f,text:i.value},onClose:c,children:s&&y.jsx(Ile,{focusedContent:s,locale:e,identifier:o,handleOnBack:f,isDarkMode:n})})},Nle=({locale:e,isDarkMode:t})=>{const{focusedContent:n}=ba(),i=n?.dictionaryKey;return i?y.jsx(_le,{locale:e,dictionaryKey:i,isDarkMode:t}):y.jsx(y.Fragment,{})},kle=()=>{const{drawerTitle:e,buttonLabel:t}=jt("dictionary-list-drawer"),{close:n,open:i}=Nh(),{localeDictionaries:o}=FL(),{editedContent:s}=En(),{setFocusedContent:c}=ba(),u=h=>{n(bv),c({dictionaryKey:h.key,dictionaryLocalId:h.localId}),i(pE(h.key))},f=h=>Object.keys(s??{}).includes(h);return y.jsx(HM,{title:e.label.value,identifier:bv,children:Object.values(o).map(h=>y.jsx(lt,{label:t.label({dictionaryLocalId:h.localId}).value,onClick:()=>u(h),variant:"hoverable",color:"text",IconRight:bf,size:"md",isFullWidth:!0,children:f(h.key)?`✎ ${h.key}`:h.key},h.localId))})},iP=(...e)=>C1(Wf(e)),Lle=e=>{const{message:t}=jt("long-press-message");return y.jsx("div",{className:iP("rounded-2xl bg-neutral/30 px-3 py-1 font-bold text-sm text-text transition-opacity duration-100",e?.dictionaryKey?"opacity-100":"opacity-0"),children:e?.dictionaryKey?t({dictionaryKey:e.dictionaryKey}):""})},Dle=({children:e})=>{const[t]=ha(Dn.INTLAYER_CURRENT_LOCALE,void 0,{receive:!0,emit:!1}),[n]=ha(Dn.INTLAYER_HOVERED_CONTENT_CHANGED,null),{data:i}=Mj(),{setLocaleDictionaries:o}=$f();return E.useEffect(()=>{if(!i)return;const s=Object.fromEntries(Object.values(i).flat().map(c=>[c.localId,c]));o(s)},[i]),y.jsxs("div",{className:"relative size-full bg-card p-3",children:[e,y.jsx("div",{className:"absolute right-2 bottom-2",children:y.jsx(Lle,{...n})}),y.jsx(Nle,{locale:t}),y.jsx(kle,{})]})},Ole=()=>{const[e,t]=E.useState();return E.useEffect(()=>{fetch("/api/config").then(n=>n.json()).then(n=>t(n.data))},[]),e},jle=({children:e,iframeRef:t})=>{const n=Ole(),i=n?.editor.applicationURL?n?.editor.applicationURL:"*",o=n?.editor.editorURL??"*";return n?y.jsx(XH,{postMessage:s=>{window?.postMessage(s,o),t.current?.contentWindow?.postMessage(s,i)},allowedOrigins:[i,o],mode:"editor",configuration:n,children:e}):y.jsx(Ms,{})},zle=()=>{const{editedContent:e,setEditedContentState:t}=En(),n=()=>{const i=localStorage?.getItem("INTLAYER_EDITED_CONTENT_CHANGED");if(i)try{const o=JSON.parse(i);t(o)}catch(o){console.error(o)}};return E.useEffect(()=>{typeof e>"u"||localStorage?.setItem("INTLAYER_EDITED_CONTENT_CHANGED",JSON.stringify(e))},[e]),E.useEffect(()=>{typeof e<"u"||n()},[]),n},Mle=()=>{const{title:e,description:t,documentationLink:n}=jt("no-application-url-view");return y.jsxs("div",{className:"flex flex-col gap-6",children:[y.jsx(Vv,{className:"mb-8",children:e}),y.jsx("strong",{className:"block text-neutral",children:t}),y.jsx(Ov,{label:n.label.value,href:"https://intlayer.org/doc/concept/configuration#editor-configuration",color:"text",children:n.text})]})},Ple=({iframeRef:e,applicationPath:t})=>{const{editor:n}=Jr(),i=()=>o(n.enabled),o=$H();$L(i),zle(),JH();const[s,c]=E.useState(!0),[u]=QH(void 0,{receive:!0,emit:!1});return E.useEffect(()=>{typeof u=="string"&&window.history.replaceState({},"",u)},[u]),n.applicationURL?y.jsxs("div",{className:"size-full overflow-hidden rounded-lg",children:[y.jsx(Ms,{isLoading:s}),y.jsx("iframe",{src:`${n.applicationURL}${t}`,title:"Intlayer Application",className:iP("size-full",s&&"hidden"),ref:e,onLoad:()=>{c(!1),i()}})]}):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(Mle,{})})})},Ble=()=>{const e=E.useRef(null),t=Ea();return y.jsx(jle,{iframeRef:e,children:y.jsx(t3,{disableEditor:!0,children:y.jsx(Dle,{children:y.jsx(Ple,{iframeRef:e,applicationPath:t.pathname})})})})},Ule=()=>y.jsx(Rle,{children:y.jsx(Cle,{children:y.jsx(Ble,{})})});I2.createRoot(document.getElementById("root")).render(y.jsx(E.StrictMode,{children:y.jsx(Ule,{})}));export{xie as C,Eie as _,y as j,E as r};