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.
@@ -1,329 +0,0 @@
1
- function v2(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 bv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qm={exports:{}},Yl={};/**
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 uA;function b2(){if(uA)return Yl;uA=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 Yl.Fragment=t,Yl.jsx=n,Yl.jsxs=n,Yl}var dA;function E2(){return dA||(dA=1,qm.exports=b2()),qm.exports}var y=E2(),Zm={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 fA;function x2(){if(fA)return Me;fA=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 S(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,R={};function N(j,P,J){this.props=j,this.context=P,this.refs=R,this.updater=J||w}N.prototype.isReactComponent={},N.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")},N.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function x(){}x.prototype=N.prototype;function C(j,P,J){this.props=j,this.context=P,this.refs=R,this.updater=J||w}var I=C.prototype=new x;I.constructor=C,A(I,N.prototype),I.isPureReactComponent=!0;var _=Array.isArray;function k(){}var L={H:null,A:null,T:null,S:null},O=Object.prototype.hasOwnProperty;function V(j,P,J){var te=J.ref;return{$$typeof:e,type:j,key:P,ref:te!==void 0?te:null,props:J}}function $(j,P){return V(j.type,P,j.props)}function H(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function ae(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?ae(""+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(k,k):(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,te,ue){var ye=typeof j;(ye==="undefined"||ye==="boolean")&&(j=null);var re=!1;if(j===null)re=!0;else switch(ye){case"bigint":case"string":case"number":re=!0;break;case"object":switch(j.$$typeof){case e:case t:re=!0;break;case p:return re=j._init,M(re(j._payload),P,J,te,ue)}}if(re)return ue=ue(j),re=te===""?"."+X(j,0):te,_(ue)?(J="",re!=null&&(J=re.replace(ce,"$&/")+"/"),M(ue,P,J,"",function(ze){return ze})):ue!=null&&(H(ue)&&(ue=$(ue,J+(ue.key==null||j&&j.key===ue.key?"":(""+ue.key).replace(ce,"$&/")+"/")+re)),P.push(ue)),1;re=0;var Re=te===""?".":te+":";if(_(j))for(var Ae=0;Ae<j.length;Ae++)te=j[Ae],ye=Re+X(te,Ae),re+=M(te,P,J,ye,ue);else if(Ae=S(j),typeof Ae=="function")for(j=Ae.call(j),Ae=0;!(te=j.next()).done;)te=te.value,ye=Re+X(te,Ae++),re+=M(te,P,J,ye,ue);else if(ye==="object"){if(typeof j.then=="function")return M(oe(j),P,J,te,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 re}function Y(j,P,J){if(j==null)return j;var te=[],ue=0;return M(j,te,"","",function(ye){return P.call(J,ye,ue++)}),te}function K(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=N,Me.Fragment=n,Me.Profiler=o,Me.PureComponent=C,Me.StrictMode=i,Me.Suspense=f,Me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=L,Me.__COMPILER_RUNTIME={__proto__:null,c:function(j){return L.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 te=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||(te[ye]=P[ye]);var ye=arguments.length-2;if(ye===1)te.children=J;else if(1<ye){for(var re=Array(ye),Re=0;Re<ye;Re++)re[Re]=arguments[Re+2];te.children=re}return V(j.type,ue,te)},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 te,ue={},ye=null;if(P!=null)for(te in P.key!==void 0&&(ye=""+P.key),P)O.call(P,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(ue[te]=P[te]);var re=arguments.length-2;if(re===1)ue.children=J;else if(1<re){for(var Re=Array(re),Ae=0;Ae<re;Ae++)Re[Ae]=arguments[Ae+2];ue.children=Re}if(j&&j.defaultProps)for(te in re=j.defaultProps,re)ue[te]===void 0&&(ue[te]=re[te]);return V(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:K}},Me.memo=function(j,P){return{$$typeof:h,type:j,compare:P===void 0?null:P}},Me.startTransition=function(j){var P=L.T,J={};L.T=J;try{var te=j(),ue=L.S;ue!==null&&ue(J,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then(k,me)}catch(ye){me(ye)}finally{P!==null&&J.types!==null&&(P.types=J.types),L.T=P}},Me.unstable_useCacheRefresh=function(){return L.H.useCacheRefresh()},Me.use=function(j){return L.H.use(j)},Me.useActionState=function(j,P,J){return L.H.useActionState(j,P,J)},Me.useCallback=function(j,P){return L.H.useCallback(j,P)},Me.useContext=function(j){return L.H.useContext(j)},Me.useDebugValue=function(){},Me.useDeferredValue=function(j,P){return L.H.useDeferredValue(j,P)},Me.useEffect=function(j,P){return L.H.useEffect(j,P)},Me.useEffectEvent=function(j){return L.H.useEffectEvent(j)},Me.useId=function(){return L.H.useId()},Me.useImperativeHandle=function(j,P,J){return L.H.useImperativeHandle(j,P,J)},Me.useInsertionEffect=function(j,P){return L.H.useInsertionEffect(j,P)},Me.useLayoutEffect=function(j,P){return L.H.useLayoutEffect(j,P)},Me.useMemo=function(j,P){return L.H.useMemo(j,P)},Me.useOptimistic=function(j,P){return L.H.useOptimistic(j,P)},Me.useReducer=function(j,P,J){return L.H.useReducer(j,P,J)},Me.useRef=function(j){return L.H.useRef(j)},Me.useState=function(j){return L.H.useState(j)},Me.useSyncExternalStore=function(j,P,J){return L.H.useSyncExternalStore(j,P,J)},Me.useTransition=function(){return L.H.useTransition()},Me.version="19.2.0",Me}var hA;function Uc(){return hA||(hA=1,Zm.exports=x2()),Zm.exports}var E=Uc();const Ne=bv(E),vR=v2({__proto__:null,default:Ne},[E]);var Ym={exports:{}},Wl={},Wm={exports:{}},Xm={};/**
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 pA;function S2(){return pA||(pA=1,function(e){function t(M,Y){var K=M.length;M.push(Y);e:for(;0<K;){var me=K-1>>>1,Ee=M[me];if(0<o(Ee,Y))M[me]=Y,M[K]=Ee,K=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],K=M.pop();if(K!==Y){M[0]=K;e:for(var me=0,Ee=M.length,j=Ee>>>1;me<j;){var P=2*(me+1)-1,J=M[P],te=P+1,ue=M[te];if(0>o(J,K))te<Ee&&0>o(ue,J)?(M[me]=ue,M[te]=K,me=te):(M[me]=J,M[P]=K,me=P);else if(te<Ee&&0>o(ue,K))M[me]=ue,M[te]=K,me=te;else break e}}return Y}function o(M,Y){var K=M.sortIndex-Y.sortIndex;return K!==0?K: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,S=!1,w=!1,A=!1,R=!1,N=typeof setTimeout=="function"?setTimeout:null,x=typeof clearTimeout=="function"?clearTimeout:null,C=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 _(M){if(A=!1,I(M),!w)if(n(f)!==null)w=!0,k||(k=!0,ae());else{var Y=n(h);Y!==null&&oe(_,Y.startTime-M)}}var k=!1,L=-1,O=5,V=-1;function $(){return R?!0:!(e.unstable_now()-V<O)}function H(){if(R=!1,k){var M=e.unstable_now();V=M;var Y=!0;try{e:{w=!1,A&&(A=!1,x(L),L=-1),S=!0;var K=b;try{t:{for(I(M),g=n(f);g!==null&&!(g.expirationTime>M&&$());){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(_,j.startTime-M),Y=!1}}break e}finally{g=null,b=K,S=!1}Y=void 0}}finally{Y?ae():k=!1}}}var ae;if(typeof C=="function")ae=function(){C(H)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,X=ce.port2;ce.port1.onmessage=H,ae=function(){X.postMessage(null)}}else ae=function(){N(H,0)};function oe(M,Y){L=N(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 K=b;b=Y;try{return M()}finally{b=K}},e.unstable_requestPaint=function(){R=!0},e.unstable_runWithPriority=function(M,Y){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var K=b;b=M;try{return Y()}finally{b=K}},e.unstable_scheduleCallback=function(M,Y,K){var me=e.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?me+K:me):K=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=K+Ee,M={id:p++,callback:Y,priorityLevel:M,startTime:K,expirationTime:Ee,sortIndex:-1},K>me?(M.sortIndex=K,t(h,M),n(f)===null&&M===n(h)&&(A?(x(L),L=-1):A=!0,oe(_,K-me))):(M.sortIndex=Ee,t(f,M),w||S||(w=!0,k||(k=!0,ae()))),M},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(M){var Y=b;return function(){var K=b;b=Y;try{return M.apply(this,arguments)}finally{b=K}}}}(Xm)),Xm}var mA;function A2(){return mA||(mA=1,Wm.exports=S2()),Wm.exports}var Qm={exports:{}},fn={};/**
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 yA;function w2(){if(yA)return fn;yA=1;var e=Uc();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 fn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,fn.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)},fn.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()}},fn.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))},fn.prefetchDNS=function(f){typeof f=="string"&&i.d.D(f)},fn.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,S=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:S}):p==="script"&&i.d.X(f,{crossOrigin:g,integrity:b,fetchPriority:S,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},fn.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)},fn.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})}},fn.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)},fn.requestFormReset=function(f){i.d.r(f)},fn.unstable_batchedUpdates=function(f,h){return f(h)},fn.useFormState=function(f,h,p){return c.H.useFormState(f,h,p)},fn.useFormStatus=function(){return c.H.useHostTransitionStatus()},fn.version="19.2.0",fn}var gA;function bR(){if(gA)return Qm.exports;gA=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(),Qm.exports=w2(),Qm.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 vA;function T2(){if(vA)return Wl;vA=1;var e=A2(),t=Uc(),n=bR();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"),S=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),x=Symbol.for("react.consumer"),C=Symbol.for("react.context"),I=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),L=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),H=Symbol.iterator;function ae(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 N:return"Profiler";case R:return"StrictMode";case _:return"Suspense";case k:return"SuspenseList";case V:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case w:return"Portal";case C:return r.displayName||"Context";case x: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 L: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,K={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 te=j(null),ue=j(null),ye=j(null),re=j(null);function Re(r,a){switch(J(ye,a),J(ue,r),J(te,null),a.nodeType){case 9:case 11:r=(r=a.documentElement)&&(r=r.namespaceURI)?D0(r):0;break;default:if(r=a.tagName,a=a.namespaceURI)a=D0(a),r=O0(a,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}P(te),J(te,r)}function Ae(){P(te),P(ue),P(ye)}function ze(r){r.memoizedState!==null&&J(re,r);var a=te.current,l=O0(a,r.type);a!==l&&(J(ue,r),J(te,l))}function Ye(r){ue.current===r&&(P(te),P(ue)),re.current===r&&(P(re),Kl._currentValue=K)}var et,en;function Yt(r){if(et===void 0)try{throw Error()}catch(l){var a=l.stack.trim().match(/\n( *(at )?)/);et=a&&a[1]||"",en=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+et+r+en}var kr=!1;function ni(r,a){if(!r||kr)return"";kr=!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 ne=`
46
- `+z[d].replace(" at new "," at ");return r.displayName&&ne.includes("<anonymous>")&&(ne=ne.replace("<anonymous>",r.displayName)),ne}while(1<=d&&0<=m);break}}}finally{kr=!1,Error.prepareStackTrace=l}return(l=r?r.displayName||r.name:"")?Yt(l):""}function Na(r,a){switch(r.tag){case 26:case 27:case 5:return Yt(r.type);case 16:return Yt("Lazy");case 13:return r.child!==a&&a!==null?Yt("Suspense Fallback"):Yt("Suspense");case 19:return Yt("SuspenseList");case 0:case 15:return ni(r.type,!1);case 11:return ni(r.type.render,!1);case 1:return ni(r.type,!0);case 31:return Yt("Activity");default:return""}}function Lh(r){try{var a="",l=null;do a+=Na(r,l),l=r,r=r.return;while(r);return a}catch(d){return`
47
- Error generating stack: `+d.message+`
48
- `+d.stack}}var Co=Object.prototype.hasOwnProperty,B=e.unstable_scheduleCallback,W=e.unstable_cancelCallback,ie=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,En=e.unstable_LowPriority,ka=e.unstable_IdlePriority,Lr=e.log,Dh=e.unstable_setDisableYieldValue,ri=null,tn=null;function Dr(r){if(typeof Lr=="function"&&Dh(r),tn&&typeof tn.setStrictMode=="function")try{tn.setStrictMode(ri,r)}catch{}}var dn=Math.clz32?Math.clz32:iP,Oh=Math.log,lu=Math.LN2;function iP(r){return r>>>=0,r===0?32:31-(Oh(r)/lu|0)|0}var cu=256,uu=262144,du=4194304;function La(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 fu(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=La(d):(T&=D,T!==0?m=La(T):l||(l=D&~r,l!==0&&(m=La(l))))):(D=d&~v,D!==0?m=La(D):T!==0?m=La(T):l||(l=d&~r,l!==0&&(m=La(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 il(r,a){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&a)===0}function aP(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 pE(){var r=du;return du<<=1,(du&62914560)===0&&(du=4194304),r}function jh(r){for(var a=[],l=0;31>l;l++)a.push(r);return a}function al(r,a){r.pendingLanes|=a,a!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function oP(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 ne=31-dn(l),le=1<<ne;D[ne]=0,z[ne]=-1;var Q=Z[ne];if(Q!==null)for(Z[ne]=null,ne=0;ne<Q.length;ne++){var ee=Q[ne];ee!==null&&(ee.lane&=-536870913)}l&=~le}d!==0&&mE(r,d,0),v!==0&&m===0&&r.tag!==0&&(r.suspendedLanes|=v&~(T&~a))}function mE(r,a,l){r.pendingLanes|=a,r.suspendedLanes&=~a;var d=31-dn(a);r.entangledLanes|=a,r.entanglements[d]=r.entanglements[d]|1073741824|l&261930}function yE(r,a){var l=r.entangledLanes|=a;for(r=r.entanglements;l;){var d=31-dn(l),m=1<<d;m&a|r[d]&a&&(r[d]|=a),l&=~m}}function gE(r,a){var l=a&-a;return l=(l&42)!==0?1:zh(l),(l&(r.suspendedLanes|a))!==0?0:l}function zh(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 Mh(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function vE(){var r=Y.p;return r!==0?r:(r=window.event,r===void 0?32:rA(r.type))}function bE(r,a){var l=Y.p;try{return Y.p=r,a()}finally{Y.p=l}}var ji=Math.random().toString(36).slice(2),nn="__reactFiber$"+ji,xn="__reactProps$"+ji,Ro="__reactContainer$"+ji,Ph="__reactEvents$"+ji,sP="__reactListeners$"+ji,lP="__reactHandles$"+ji,EE="__reactResources$"+ji,ol="__reactMarker$"+ji;function Bh(r){delete r[nn],delete r[xn],delete r[Ph],delete r[sP],delete r[lP]}function Io(r){var a=r[nn];if(a)return a;for(var l=r.parentNode;l;){if(a=l[Ro]||l[nn]){if(l=a.alternate,a.child!==null||l!==null&&l.child!==null)for(r=V0(r);r!==null;){if(l=r[nn])return l;r=V0(r)}return a}r=l,l=r.parentNode}return null}function _o(r){if(r=r[nn]||r[Ro]){var a=r.tag;if(a===5||a===6||a===13||a===31||a===26||a===27||a===3)return r}return null}function sl(r){var a=r.tag;if(a===5||a===26||a===27||a===6)return r.stateNode;throw Error(i(33))}function No(r){var a=r[EE];return a||(a=r[EE]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Wt(r){r[ol]=!0}var xE=new Set,SE={};function Da(r,a){ko(r,a),ko(r+"Capture",a)}function ko(r,a){for(SE[r]=a,r=0;r<a.length;r++)xE.add(a[r])}var cP=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]*$"),AE={},wE={};function uP(r){return Co.call(wE,r)?!0:Co.call(AE,r)?!1:cP.test(r)?wE[r]=!0:(AE[r]=!0,!1)}function hu(r,a,l){if(uP(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 pu(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 ii(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 Wn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function TE(r){var a=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function dP(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 Uh(r){if(!r._valueTracker){var a=TE(r)?"checked":"value";r._valueTracker=dP(r,a,""+r[a])}}function CE(r){if(!r)return!1;var a=r._valueTracker;if(!a)return!0;var l=a.getValue(),d="";return r&&(d=TE(r)?r.checked?"true":"false":r.value),r=d,r!==l?(a.setValue(r),!0):!1}function mu(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 fP=/[\n"\\]/g;function Xn(r){return r.replace(fP,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Vh(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=""+Wn(a)):r.value!==""+Wn(a)&&(r.value=""+Wn(a)):T!=="submit"&&T!=="reset"||r.removeAttribute("value"),a!=null?Fh(r,T,Wn(a)):l!=null?Fh(r,T,Wn(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=""+Wn(D):r.removeAttribute("name")}function RE(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)){Uh(r);return}l=l!=null?""+Wn(l):"",a=a!=null?""+Wn(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),Uh(r)}function Fh(r,a,l){a==="number"&&mu(r.ownerDocument)===r||r.defaultValue===""+l||(r.defaultValue=""+l)}function Lo(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=""+Wn(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 IE(r,a,l){if(a!=null&&(a=""+Wn(a),a!==r.value&&(r.value=a),l==null)){r.defaultValue!==a&&(r.defaultValue=a);return}r.defaultValue=l!=null?""+Wn(l):""}function _E(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=Wn(a),r.defaultValue=l,d=r.textContent,d===l&&d!==""&&d!==null&&(r.value=d),Uh(r)}function Do(r,a){if(a){var l=r.firstChild;if(l&&l===r.lastChild&&l.nodeType===3){l.nodeValue=a;return}}r.textContent=a}var hP=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 NE(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||hP.has(a)?a==="float"?r.cssFloat=l:r[a]=(""+l).trim():r[a]=l+"px"}function kE(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&&NE(r,m,d)}else for(var v in a)a.hasOwnProperty(v)&&NE(r,v,a[v])}function Hh(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 pP=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"]]),mP=/^[\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 yu(r){return mP.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function ai(){}var Gh=null;function Kh(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var Oo=null,jo=null;function LE(r){var a=_o(r);if(a&&(r=a.stateNode)){var l=r[xn]||null;e:switch(r=a.stateNode,a.type){case"input":if(Vh(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="'+Xn(""+a)+'"][type="radio"]'),a=0;a<l.length;a++){var d=l[a];if(d!==r&&d.form===r.form){var m=d[xn]||null;if(!m)throw Error(i(90));Vh(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&&CE(d)}break e;case"textarea":IE(r,l.value,l.defaultValue);break e;case"select":a=l.value,a!=null&&Lo(r,!!l.multiple,a,!1)}}}var $h=!1;function DE(r,a,l){if($h)return r(a,l);$h=!0;try{var d=r(a);return d}finally{if($h=!1,(Oo!==null||jo!==null)&&(rd(),Oo&&(a=Oo,r=jo,jo=Oo=null,LE(a),r)))for(a=0;a<r.length;a++)LE(r[a])}}function ll(r,a){var l=r.stateNode;if(l===null)return null;var d=l[xn]||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 oi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),qh=!1;if(oi)try{var cl={};Object.defineProperty(cl,"passive",{get:function(){qh=!0}}),window.addEventListener("test",cl,cl),window.removeEventListener("test",cl,cl)}catch{qh=!1}var zi=null,Zh=null,gu=null;function OE(){if(gu)return gu;var r,a=Zh,l=a.length,d,m="value"in zi?zi.value:zi.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 gu=m.slice(r,1<d?1-d:void 0)}function vu(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 bu(){return!0}function jE(){return!1}function Sn(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)?bu:jE,this.isPropagationStopped=jE,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=bu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=bu)},persist:function(){},isPersistent:bu}),a}var Oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Eu=Sn(Oa),ul=g({},Oa,{view:0,detail:0}),yP=Sn(ul),Yh,Wh,dl,xu=g({},ul,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qh,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!==dl&&(dl&&r.type==="mousemove"?(Yh=r.screenX-dl.screenX,Wh=r.screenY-dl.screenY):Wh=Yh=0,dl=r),Yh)},movementY:function(r){return"movementY"in r?r.movementY:Wh}}),zE=Sn(xu),gP=g({},xu,{dataTransfer:0}),vP=Sn(gP),bP=g({},ul,{relatedTarget:0}),Xh=Sn(bP),EP=g({},Oa,{animationName:0,elapsedTime:0,pseudoElement:0}),xP=Sn(EP),SP=g({},Oa,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),AP=Sn(SP),wP=g({},Oa,{data:0}),ME=Sn(wP),TP={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},CP={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"},RP={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function IP(r){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(r):(r=RP[r])?!!a[r]:!1}function Qh(){return IP}var _P=g({},ul,{key:function(r){if(r.key){var a=TP[r.key]||r.key;if(a!=="Unidentified")return a}return r.type==="keypress"?(r=vu(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?CP[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qh,charCode:function(r){return r.type==="keypress"?vu(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?vu(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),NP=Sn(_P),kP=g({},xu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),PE=Sn(kP),LP=g({},ul,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qh}),DP=Sn(LP),OP=g({},Oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),jP=Sn(OP),zP=g({},xu,{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}),MP=Sn(zP),PP=g({},Oa,{newState:0,oldState:0}),BP=Sn(PP),UP=[9,13,27,32],Jh=oi&&"CompositionEvent"in window,fl=null;oi&&"documentMode"in document&&(fl=document.documentMode);var VP=oi&&"TextEvent"in window&&!fl,BE=oi&&(!Jh||fl&&8<fl&&11>=fl),UE=" ",VE=!1;function FE(r,a){switch(r){case"keyup":return UP.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function HE(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var zo=!1;function FP(r,a){switch(r){case"compositionend":return HE(a);case"keypress":return a.which!==32?null:(VE=!0,UE);case"textInput":return r=a.data,r===UE&&VE?null:r;default:return null}}function HP(r,a){if(zo)return r==="compositionend"||!Jh&&FE(r,a)?(r=OE(),gu=Zh=zi=null,zo=!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 BE&&a.locale!=="ko"?null:a.data;default:return null}}var GP={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 GE(r){var a=r&&r.nodeName&&r.nodeName.toLowerCase();return a==="input"?!!GP[r.type]:a==="textarea"}function KE(r,a,l,d){Oo?jo?jo.push(d):jo=[d]:Oo=d,a=ud(a,"onChange"),0<a.length&&(l=new Eu("onChange","change",null,l,d),r.push({event:l,listeners:a}))}var hl=null,pl=null;function KP(r){R0(r,0)}function Su(r){var a=sl(r);if(CE(a))return r}function $E(r,a){if(r==="change")return a}var qE=!1;if(oi){var ep;if(oi){var tp="oninput"in document;if(!tp){var ZE=document.createElement("div");ZE.setAttribute("oninput","return;"),tp=typeof ZE.oninput=="function"}ep=tp}else ep=!1;qE=ep&&(!document.documentMode||9<document.documentMode)}function YE(){hl&&(hl.detachEvent("onpropertychange",WE),pl=hl=null)}function WE(r){if(r.propertyName==="value"&&Su(pl)){var a=[];KE(a,pl,r,Kh(r)),DE(KP,a)}}function $P(r,a,l){r==="focusin"?(YE(),hl=a,pl=l,hl.attachEvent("onpropertychange",WE)):r==="focusout"&&YE()}function qP(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Su(pl)}function ZP(r,a){if(r==="click")return Su(a)}function YP(r,a){if(r==="input"||r==="change")return Su(a)}function WP(r,a){return r===a&&(r!==0||1/r===1/a)||r!==r&&a!==a}var Dn=typeof Object.is=="function"?Object.is:WP;function ml(r,a){if(Dn(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(!Co.call(a,m)||!Dn(r[m],a[m]))return!1}return!0}function XE(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function QE(r,a){var l=XE(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=XE(l)}}function JE(r,a){return r&&a?r===a?!0:r&&r.nodeType===3?!1:a&&a.nodeType===3?JE(r,a.parentNode):"contains"in r?r.contains(a):r.compareDocumentPosition?!!(r.compareDocumentPosition(a)&16):!1:!1}function ex(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var a=mu(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=mu(r.document)}return a}function np(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 XP=oi&&"documentMode"in document&&11>=document.documentMode,Mo=null,rp=null,yl=null,ip=!1;function tx(r,a,l){var d=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;ip||Mo==null||Mo!==mu(d)||(d=Mo,"selectionStart"in d&&np(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}),yl&&ml(yl,d)||(yl=d,d=ud(rp,"onSelect"),0<d.length&&(a=new Eu("onSelect","select",null,a,l),r.push({event:a,listeners:d}),a.target=Mo)))}function ja(r,a){var l={};return l[r.toLowerCase()]=a.toLowerCase(),l["Webkit"+r]="webkit"+a,l["Moz"+r]="moz"+a,l}var Po={animationend:ja("Animation","AnimationEnd"),animationiteration:ja("Animation","AnimationIteration"),animationstart:ja("Animation","AnimationStart"),transitionrun:ja("Transition","TransitionRun"),transitionstart:ja("Transition","TransitionStart"),transitioncancel:ja("Transition","TransitionCancel"),transitionend:ja("Transition","TransitionEnd")},ap={},nx={};oi&&(nx=document.createElement("div").style,"AnimationEvent"in window||(delete Po.animationend.animation,delete Po.animationiteration.animation,delete Po.animationstart.animation),"TransitionEvent"in window||delete Po.transitionend.transition);function za(r){if(ap[r])return ap[r];if(!Po[r])return r;var a=Po[r],l;for(l in a)if(a.hasOwnProperty(l)&&l in nx)return ap[r]=a[l];return r}var rx=za("animationend"),ix=za("animationiteration"),ax=za("animationstart"),QP=za("transitionrun"),JP=za("transitionstart"),eB=za("transitioncancel"),ox=za("transitionend"),sx=new Map,op="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(" ");op.push("scrollEnd");function pr(r,a){sx.set(r,a),Da(a,[r])}var Au=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)},Qn=[],Bo=0,sp=0;function wu(){for(var r=Bo,a=sp=Bo=0;a<r;){var l=Qn[a];Qn[a++]=null;var d=Qn[a];Qn[a++]=null;var m=Qn[a];Qn[a++]=null;var v=Qn[a];if(Qn[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&&lx(l,m,v)}}function Tu(r,a,l,d){Qn[Bo++]=r,Qn[Bo++]=a,Qn[Bo++]=l,Qn[Bo++]=d,sp|=d,r.lanes|=d,r=r.alternate,r!==null&&(r.lanes|=d)}function lp(r,a,l,d){return Tu(r,a,l,d),Cu(r)}function Ma(r,a){return Tu(r,null,null,a),Cu(r)}function lx(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-dn(l),r=v.hiddenUpdates,d=r[m],d===null?r[m]=[a]:d.push(a),a.lane=l|536870912),v):null}function Cu(r){if(50<Pl)throw Pl=0,gm=null,Error(i(185));for(var a=r.return;a!==null;)r=a,a=r.return;return r.tag===3?r.stateNode:null}var Uo={};function tB(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 On(r,a,l,d){return new tB(r,a,l,d)}function cp(r){return r=r.prototype,!(!r||!r.isReactComponent)}function si(r,a){var l=r.alternate;return l===null?(l=On(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 cx(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 Ru(r,a,l,d,m,v){var T=0;if(d=r,typeof r=="function")cp(r)&&(T=1);else if(typeof r=="string")T=o2(r,l,te.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case V:return r=On(31,l,a,m),r.elementType=V,r.lanes=v,r;case A:return Pa(l.children,m,v,a);case R:T=8,m|=24;break;case N:return r=On(12,l,a,m|2),r.elementType=N,r.lanes=v,r;case _:return r=On(13,l,a,m),r.elementType=_,r.lanes=v,r;case k:return r=On(19,l,a,m),r.elementType=k,r.lanes=v,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case C:T=10;break e;case x:T=9;break e;case I:T=11;break e;case L: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=On(T,l,a,m),a.elementType=r,a.type=d,a.lanes=v,a}function Pa(r,a,l,d){return r=On(7,r,d,a),r.lanes=l,r}function up(r,a,l){return r=On(6,r,null,a),r.lanes=l,r}function ux(r){var a=On(18,null,null,0);return a.stateNode=r,a}function dp(r,a,l){return a=On(4,r.children!==null?r.children:[],r.key,a),a.lanes=l,a.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},a}var dx=new WeakMap;function Jn(r,a){if(typeof r=="object"&&r!==null){var l=dx.get(r);return l!==void 0?l:(a={value:r,source:a,stack:Lh(a)},dx.set(r,a),a)}return{value:r,source:a,stack:Lh(a)}}var Vo=[],Fo=0,Iu=null,gl=0,er=[],tr=0,Mi=null,Or=1,jr="";function li(r,a){Vo[Fo++]=gl,Vo[Fo++]=Iu,Iu=r,gl=a}function fx(r,a,l){er[tr++]=Or,er[tr++]=jr,er[tr++]=Mi,Mi=r;var d=Or;r=jr;var m=32-dn(d)-1;d&=~(1<<m),l+=1;var v=32-dn(a)+m;if(30<v){var T=m-m%5;v=(d&(1<<T)-1).toString(32),d>>=T,m-=T,Or=1<<32-dn(a)+m|l<<m|d,jr=v+r}else Or=1<<v|l<<m|d,jr=r}function fp(r){r.return!==null&&(li(r,1),fx(r,1,0))}function hp(r){for(;r===Iu;)Iu=Vo[--Fo],Vo[Fo]=null,gl=Vo[--Fo],Vo[Fo]=null;for(;r===Mi;)Mi=er[--tr],er[tr]=null,jr=er[--tr],er[tr]=null,Or=er[--tr],er[tr]=null}function hx(r,a){er[tr++]=Or,er[tr++]=jr,er[tr++]=Mi,Or=a.id,jr=a.overflow,Mi=r}var rn=null,gt=null,We=!1,Pi=null,nr=!1,pp=Error(i(519));function Bi(r){var a=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vl(Jn(a,r)),pp}function px(r){var a=r.stateNode,l=r.type,d=r.memoizedProps;switch(a[nn]=r,a[xn]=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<Ul.length;l++)$e(Ul[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),RE(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),_E(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||k0(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=ai),a=!0):a=!1,a||Bi(r,!0)}function mx(r){for(rn=r.return;rn;)switch(rn.tag){case 5:case 31:case 13:nr=!1;return;case 27:case 3:nr=!0;return;default:rn=rn.return}}function Ho(r){if(r!==rn)return!1;if(!We)return mx(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")||Lm(r.type,r.memoizedProps)),l=!l),l&&gt&&Bi(r),mx(r),a===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));gt=U0(r)}else if(a===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(i(317));gt=U0(r)}else a===27?(a=gt,Ji(r.type)?(r=Mm,Mm=null,gt=r):gt=a):gt=rn?ir(r.stateNode.nextSibling):null;return!0}function Ba(){gt=rn=null,We=!1}function mp(){var r=Pi;return r!==null&&(Cn===null?Cn=r:Cn.push.apply(Cn,r),Pi=null),r}function vl(r){Pi===null?Pi=[r]:Pi.push(r)}var yp=j(null),Ua=null,ci=null;function Ui(r,a,l){J(yp,a._currentValue),a._currentValue=l}function ui(r){r._currentValue=yp.current,P(yp)}function gp(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 vp(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),gp(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),gp(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 Go(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;Dn(m.pendingProps.value,T.value)||(r!==null?r.push(D):r=[D])}}else if(m===re.current){if(T=m.alternate,T===null)throw Error(i(387));T.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(r!==null?r.push(Kl):r=[Kl])}m=m.return}r!==null&&vp(a,r,l,d),a.flags|=262144}function _u(r){for(r=r.firstContext;r!==null;){if(!Dn(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Va(r){Ua=r,ci=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function an(r){return yx(Ua,r)}function Nu(r,a){return Ua===null&&Va(r),yx(r,a)}function yx(r,a){var l=a._currentValue;if(a={context:a,memoizedValue:l,next:null},ci===null){if(r===null)throw Error(i(308));ci=a,r.dependencies={lanes:0,firstContext:a},r.flags|=524288}else ci=ci.next=a;return l}var nB=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()})}},rB=e.unstable_scheduleCallback,iB=e.unstable_NormalPriority,jt={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function bp(){return{controller:new nB,data:new Map,refCount:0}}function bl(r){r.refCount--,r.refCount===0&&rB(iB,function(){r.controller.abort()})}var El=null,Ep=0,Ko=0,$o=null;function aB(r,a){if(El===null){var l=El=[];Ep=0,Ko=Am(),$o={status:"pending",value:void 0,then:function(d){l.push(d)}}}return Ep++,a.then(gx,gx),a}function gx(){if(--Ep===0&&El!==null){$o!==null&&($o.status="fulfilled");var r=El;El=null,Ko=0,$o=null;for(var a=0;a<r.length;a++)(0,r[a])()}}function oB(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 vx=M.S;M.S=function(r,a){t0=he(),typeof a=="object"&&a!==null&&typeof a.then=="function"&&aB(r,a),vx!==null&&vx(r,a)};var Fa=j(null);function xp(){var r=Fa.current;return r!==null?r:mt.pooledCache}function ku(r,a){a===null?J(Fa,Fa.current):J(Fa,a.pool)}function bx(){var r=xp();return r===null?null:{parent:jt._currentValue,pool:r}}var qo=Error(i(460)),Sp=Error(i(474)),Lu=Error(i(542)),Du={then:function(){}};function Ex(r){return r=r.status,r==="fulfilled"||r==="rejected"}function xx(r,a,l){switch(l=r[l],l===void 0?r.push(a):l!==a&&(a.then(ai,ai),a=l),a.status){case"fulfilled":return a.value;case"rejected":throw r=a.reason,Ax(r),r;default:if(typeof a.status=="string")a.then(ai,ai);else{if(r=mt,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,Ax(r),r}throw Ga=a,qo}}function Ha(r){try{var a=r._init;return a(r._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ga=l,qo):l}}var Ga=null;function Sx(){if(Ga===null)throw Error(i(459));var r=Ga;return Ga=null,r}function Ax(r){if(r===qo||r===Lu)throw Error(i(483))}var Zo=null,xl=0;function Ou(r){var a=xl;return xl+=1,Zo===null&&(Zo=[]),xx(Zo,r,a)}function Sl(r,a){a=a.props.ref,r.ref=a!==void 0?a:null}function ju(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 wx(r){function a(G,U){if(r){var q=G.deletions;q===null?(G.deletions=[U],G.flags|=16):q.push(U)}}function l(G,U){if(!r)return null;for(;U!==null;)a(G,U),U=U.sibling;return null}function d(G){for(var U=new Map;G!==null;)G.key!==null?U.set(G.key,G):U.set(G.index,G),G=G.sibling;return U}function m(G,U){return G=si(G,U),G.index=0,G.sibling=null,G}function v(G,U,q){return G.index=q,r?(q=G.alternate,q!==null?(q=q.index,q<U?(G.flags|=67108866,U):q):(G.flags|=67108866,U)):(G.flags|=1048576,U)}function T(G){return r&&G.alternate===null&&(G.flags|=67108866),G}function D(G,U,q,se){return U===null||U.tag!==6?(U=up(q,G.mode,se),U.return=G,U):(U=m(U,q),U.return=G,U)}function z(G,U,q,se){var _e=q.type;return _e===A?ne(G,U,q.props.children,se,q.key):U!==null&&(U.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===O&&Ha(_e)===U.type)?(U=m(U,q.props),Sl(U,q),U.return=G,U):(U=Ru(q.type,q.key,q.props,null,G.mode,se),Sl(U,q),U.return=G,U)}function Z(G,U,q,se){return U===null||U.tag!==4||U.stateNode.containerInfo!==q.containerInfo||U.stateNode.implementation!==q.implementation?(U=dp(q,G.mode,se),U.return=G,U):(U=m(U,q.children||[]),U.return=G,U)}function ne(G,U,q,se,_e){return U===null||U.tag!==7?(U=Pa(q,G.mode,se,_e),U.return=G,U):(U=m(U,q),U.return=G,U)}function le(G,U,q){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return U=up(""+U,G.mode,q),U.return=G,U;if(typeof U=="object"&&U!==null){switch(U.$$typeof){case S:return q=Ru(U.type,U.key,U.props,null,G.mode,q),Sl(q,U),q.return=G,q;case w:return U=dp(U,G.mode,q),U.return=G,U;case O:return U=Ha(U),le(G,U,q)}if(oe(U)||ae(U))return U=Pa(U,G.mode,q,null),U.return=G,U;if(typeof U.then=="function")return le(G,Ou(U),q);if(U.$$typeof===C)return le(G,Nu(G,U),q);ju(G,U)}return null}function Q(G,U,q,se){var _e=U!==null?U.key:null;if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return _e!==null?null:D(G,U,""+q,se);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case S:return q.key===_e?z(G,U,q,se):null;case w:return q.key===_e?Z(G,U,q,se):null;case O:return q=Ha(q),Q(G,U,q,se)}if(oe(q)||ae(q))return _e!==null?null:ne(G,U,q,se,null);if(typeof q.then=="function")return Q(G,U,Ou(q),se);if(q.$$typeof===C)return Q(G,U,Nu(G,q),se);ju(G,q)}return null}function ee(G,U,q,se,_e){if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return G=G.get(q)||null,D(U,G,""+se,_e);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case S:return G=G.get(se.key===null?q:se.key)||null,z(U,G,se,_e);case w:return G=G.get(se.key===null?q:se.key)||null,Z(U,G,se,_e);case O:return se=Ha(se),ee(G,U,q,se,_e)}if(oe(se)||ae(se))return G=G.get(q)||null,ne(U,G,se,_e,null);if(typeof se.then=="function")return ee(G,U,q,Ou(se),_e);if(se.$$typeof===C)return ee(G,U,q,Nu(U,se),_e);ju(U,se)}return null}function be(G,U,q,se){for(var _e=null,nt=null,we=U,Ue=U=0,Ze=null;we!==null&&Ue<q.length;Ue++){we.index>Ue?(Ze=we,we=null):Ze=we.sibling;var rt=Q(G,we,q[Ue],se);if(rt===null){we===null&&(we=Ze);break}r&&we&&rt.alternate===null&&a(G,we),U=v(rt,U,Ue),nt===null?_e=rt:nt.sibling=rt,nt=rt,we=Ze}if(Ue===q.length)return l(G,we),We&&li(G,Ue),_e;if(we===null){for(;Ue<q.length;Ue++)we=le(G,q[Ue],se),we!==null&&(U=v(we,U,Ue),nt===null?_e=we:nt.sibling=we,nt=we);return We&&li(G,Ue),_e}for(we=d(we);Ue<q.length;Ue++)Ze=ee(we,G,Ue,q[Ue],se),Ze!==null&&(r&&Ze.alternate!==null&&we.delete(Ze.key===null?Ue:Ze.key),U=v(Ze,U,Ue),nt===null?_e=Ze:nt.sibling=Ze,nt=Ze);return r&&we.forEach(function(ia){return a(G,ia)}),We&&li(G,Ue),_e}function ke(G,U,q,se){if(q==null)throw Error(i(151));for(var _e=null,nt=null,we=U,Ue=U=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 ia=Q(G,we,rt.value,se);if(ia===null){we===null&&(we=Ze);break}r&&we&&ia.alternate===null&&a(G,we),U=v(ia,U,Ue),nt===null?_e=ia:nt.sibling=ia,nt=ia,we=Ze}if(rt.done)return l(G,we),We&&li(G,Ue),_e;if(we===null){for(;!rt.done;Ue++,rt=q.next())rt=le(G,rt.value,se),rt!==null&&(U=v(rt,U,Ue),nt===null?_e=rt:nt.sibling=rt,nt=rt);return We&&li(G,Ue),_e}for(we=d(we);!rt.done;Ue++,rt=q.next())rt=ee(we,G,Ue,rt.value,se),rt!==null&&(r&&rt.alternate!==null&&we.delete(rt.key===null?Ue:rt.key),U=v(rt,U,Ue),nt===null?_e=rt:nt.sibling=rt,nt=rt);return r&&we.forEach(function(g2){return a(G,g2)}),We&&li(G,Ue),_e}function pt(G,U,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 S:e:{for(var _e=q.key;U!==null;){if(U.key===_e){if(_e=q.type,_e===A){if(U.tag===7){l(G,U.sibling),se=m(U,q.props.children),se.return=G,G=se;break e}}else if(U.elementType===_e||typeof _e=="object"&&_e!==null&&_e.$$typeof===O&&Ha(_e)===U.type){l(G,U.sibling),se=m(U,q.props),Sl(se,q),se.return=G,G=se;break e}l(G,U);break}else a(G,U);U=U.sibling}q.type===A?(se=Pa(q.props.children,G.mode,se,q.key),se.return=G,G=se):(se=Ru(q.type,q.key,q.props,null,G.mode,se),Sl(se,q),se.return=G,G=se)}return T(G);case w:e:{for(_e=q.key;U!==null;){if(U.key===_e)if(U.tag===4&&U.stateNode.containerInfo===q.containerInfo&&U.stateNode.implementation===q.implementation){l(G,U.sibling),se=m(U,q.children||[]),se.return=G,G=se;break e}else{l(G,U);break}else a(G,U);U=U.sibling}se=dp(q,G.mode,se),se.return=G,G=se}return T(G);case O:return q=Ha(q),pt(G,U,q,se)}if(oe(q))return be(G,U,q,se);if(ae(q)){if(_e=ae(q),typeof _e!="function")throw Error(i(150));return q=_e.call(q),ke(G,U,q,se)}if(typeof q.then=="function")return pt(G,U,Ou(q),se);if(q.$$typeof===C)return pt(G,U,Nu(G,q),se);ju(G,q)}return typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint"?(q=""+q,U!==null&&U.tag===6?(l(G,U.sibling),se=m(U,q),se.return=G,G=se):(l(G,U),se=up(q,G.mode,se),se.return=G,G=se),T(G)):l(G,U)}return function(G,U,q,se){try{xl=0;var _e=pt(G,U,q,se);return Zo=null,_e}catch(we){if(we===qo||we===Lu)throw we;var nt=On(29,we,null,G.mode);return nt.lanes=se,nt.return=G,nt}finally{}}}var Ka=wx(!0),Tx=wx(!1),Vi=!1;function Ap(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wp(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 Fi(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Hi(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=Cu(r),lx(r,null,l),a}return Tu(r,d,a,l),Cu(r)}function Al(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,yE(r,l)}}function Tp(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 Cp=!1;function wl(){if(Cp){var r=$o;if(r!==null)throw r}}function Tl(r,a,l,d){Cp=!1;var m=r.updateQueue;Vi=!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 ne=r.alternate;ne!==null&&(ne=ne.updateQueue,D=ne.lastBaseUpdate,D!==T&&(D===null?ne.firstBaseUpdate=Z:D.next=Z,ne.lastBaseUpdate=z))}if(v!==null){var le=m.baseState;T=0,ne=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===Ko&&(Cp=!0),ne!==null&&(ne=ne.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{var be=r,ke=D;Q=a;var pt=l;switch(ke.tag){case 1:if(be=ke.payload,typeof be=="function"){le=be.call(pt,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(pt,le,Q):be,Q==null)break e;le=g({},le,Q);break e;case 2:Vi=!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},ne===null?(Z=ne=ee,z=le):ne=ne.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);ne===null&&(z=le),m.baseState=z,m.firstBaseUpdate=Z,m.lastBaseUpdate=ne,v===null&&(m.shared.lanes=0),Zi|=T,r.lanes=T,r.memoizedState=le}}function Cx(r,a){if(typeof r!="function")throw Error(i(191,r));r.call(a)}function Rx(r,a){var l=r.callbacks;if(l!==null)for(r.callbacks=null,r=0;r<l.length;r++)Cx(l[r],a)}var Yo=j(null),zu=j(0);function Ix(r,a){r=bi,J(zu,r),J(Yo,a),bi=r|a.baseLanes}function Rp(){J(zu,bi),J(Yo,Yo.current)}function Ip(){bi=zu.current,P(Yo),P(zu)}var jn=j(null),rr=null;function Gi(r){var a=r.alternate;J(kt,kt.current&1),J(jn,r),rr===null&&(a===null||Yo.current!==null||a.memoizedState!==null)&&(rr=r)}function _p(r){J(kt,kt.current),J(jn,r),rr===null&&(rr=r)}function _x(r){r.tag===22?(J(kt,kt.current),J(jn,r),rr===null&&(rr=r)):Ki()}function Ki(){J(kt,kt.current),J(jn,jn.current)}function zn(r){P(jn),rr===r&&(rr=null),P(kt)}var kt=j(0);function Mu(r){for(var a=r;a!==null;){if(a.tag===13){var l=a.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||jm(l)||zm(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 di=0,Be=null,ft=null,zt=null,Pu=!1,Wo=!1,$a=!1,Bu=0,Cl=0,Xo=null,sB=0;function Rt(){throw Error(i(321))}function Np(r,a){if(a===null)return!1;for(var l=0;l<a.length&&l<r.length;l++)if(!Dn(r[l],a[l]))return!1;return!0}function kp(r,a,l,d,m,v){return di=v,Be=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,M.H=r===null||r.memoizedState===null?fS:$p,$a=!1,v=l(d,m),$a=!1,Wo&&(v=kx(a,l,d,m)),Nx(r),v}function Nx(r){M.H=_l;var a=ft!==null&&ft.next!==null;if(di=0,zt=ft=Be=null,Pu=!1,Cl=0,Xo=null,a)throw Error(i(300));r===null||Mt||(r=r.dependencies,r!==null&&_u(r)&&(Mt=!0))}function kx(r,a,l,d){Be=r;var m=0;do{if(Wo&&(Xo=null),Cl=0,Wo=!1,25<=m)throw Error(i(301));if(m+=1,zt=ft=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=hS,v=a(l,d)}while(Wo);return v}function lB(){var r=M.H,a=r.useState()[0];return a=typeof a.then=="function"?Rl(a):a,r=r.useState()[0],(ft!==null?ft.memoizedState:null)!==r&&(Be.flags|=1024),a}function Lp(){var r=Bu!==0;return Bu=0,r}function Dp(r,a,l){a.updateQueue=r.updateQueue,a.flags&=-2053,r.lanes&=~l}function Op(r){if(Pu){for(r=r.memoizedState;r!==null;){var a=r.queue;a!==null&&(a.pending=null),r=r.next}Pu=!1}di=0,zt=ft=Be=null,Wo=!1,Cl=Bu=0,Xo=null}function yn(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zt===null?Be.memoizedState=zt=r:zt=zt.next=r,zt}function Lt(){if(ft===null){var r=Be.alternate;r=r!==null?r.memoizedState:null}else r=ft.next;var a=zt===null?Be.memoizedState:zt.next;if(a!==null)zt=a,ft=r;else{if(r===null)throw Be.alternate===null?Error(i(467)):Error(i(310));ft=r,r={memoizedState:ft.memoizedState,baseState:ft.baseState,baseQueue:ft.baseQueue,queue:ft.queue,next:null},zt===null?Be.memoizedState=zt=r:zt=zt.next=r}return zt}function Uu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rl(r){var a=Cl;return Cl+=1,Xo===null&&(Xo=[]),r=xx(Xo,r,a),a=Be,(zt===null?a.memoizedState:zt.next)===null&&(a=a.alternate,M.H=a===null||a.memoizedState===null?fS:$p),r}function Vu(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Rl(r);if(r.$$typeof===C)return an(r)}throw Error(i(438,String(r)))}function jp(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=Uu(),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]=$;return a.index++,l}function fi(r,a){return typeof a=="function"?a(r):a}function Fu(r){var a=Lt();return zp(a,ft,r)}function zp(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,ne=!1;do{var le=Z.lane&-536870913;if(le!==Z.lane?(qe&le)===le:(di&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===Ko&&(ne=!0);else if((di&Q)===Q){Z=Z.next,Q===Ko&&(ne=!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,Zi|=Q;le=Z.action,$a&&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,Zi|=le;Z=Z.next}while(Z!==null&&Z!==a);if(z===null?T=v:z.next=D,!Dn(v,r.memoizedState)&&(Mt=!0,ne&&(l=$o,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 Mp(r){var a=Lt(),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);Dn(v,a.memoizedState)||(Mt=!0),a.memoizedState=v,a.baseQueue===null&&(a.baseState=v),l.lastRenderedState=v}return[v,d]}function Lx(r,a,l){var d=Be,m=Lt(),v=We;if(v){if(l===void 0)throw Error(i(407));l=l()}else l=a();var T=!Dn((ft||m).memoizedState,l);if(T&&(m.memoizedState=l,Mt=!0),m=m.queue,Up(jx.bind(null,d,m,r),[r]),m.getSnapshot!==a||T||zt!==null&&zt.memoizedState.tag&1){if(d.flags|=2048,Qo(9,{destroy:void 0},Ox.bind(null,d,m,l,a),null),mt===null)throw Error(i(349));v||(di&127)!==0||Dx(d,a,l)}return l}function Dx(r,a,l){r.flags|=16384,r={getSnapshot:a,value:l},a=Be.updateQueue,a===null?(a=Uu(),Be.updateQueue=a,a.stores=[r]):(l=a.stores,l===null?a.stores=[r]:l.push(r))}function Ox(r,a,l,d){a.value=l,a.getSnapshot=d,zx(a)&&Mx(r)}function jx(r,a,l){return l(function(){zx(a)&&Mx(r)})}function zx(r){var a=r.getSnapshot;r=r.value;try{var l=a();return!Dn(r,l)}catch{return!0}}function Mx(r){var a=Ma(r,2);a!==null&&Rn(a,r,2)}function Pp(r){var a=yn();if(typeof r=="function"){var l=r;if(r=l(),$a){Dr(!0);try{l()}finally{Dr(!1)}}}return a.memoizedState=a.baseState=r,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:r},a}function Px(r,a,l,d){return r.baseState=l,zp(r,ft,typeof d=="function"?d:fi)}function cB(r,a,l,d,m){if(Ku(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,Bx(a,v)):(v.next=l.next,a.pending=l.next=v)}}function Bx(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),Ux(r,a,D)}catch(Z){Bp(r,a,Z)}finally{v!==null&&T.types!==null&&(v.types=T.types),M.T=v}}else try{v=l(m,d),Ux(r,a,v)}catch(Z){Bp(r,a,Z)}}function Ux(r,a,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(d){Vx(r,a,d)},function(d){return Bp(r,a,d)}):Vx(r,a,l)}function Vx(r,a,l){a.status="fulfilled",a.value=l,Fx(a),r.state=l,a=r.pending,a!==null&&(l=a.next,l===a?r.pending=null:(l=l.next,a.next=l,Bx(r,l)))}function Bp(r,a,l){var d=r.pending;if(r.pending=null,d!==null){d=d.next;do a.status="rejected",a.reason=l,Fx(a),a=a.next;while(a!==d)}r.action=null}function Fx(r){r=r.listeners;for(var a=0;a<r.length;a++)(0,r[a])()}function Hx(r,a){return a}function Gx(r,a){if(We){var l=mt.formState;if(l!==null){e:{var d=Be;if(We){if(gt){t:{for(var m=gt,v=nr;m.nodeType!==8;){if(!v){m=null;break t}if(m=ir(m.nextSibling),m===null){m=null;break t}}v=m.data,m=v==="F!"||v==="F"?m:null}if(m){gt=ir(m.nextSibling),d=m.data==="F!";break e}}Bi(d)}d=!1}d&&(a=l[0])}}return l=yn(),l.memoizedState=l.baseState=a,d={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hx,lastRenderedState:a},l.queue=d,l=cS.bind(null,Be,d),d.dispatch=l,d=Pp(!1),v=Kp.bind(null,Be,!1,d.queue),d=yn(),m={state:a,dispatch:null,action:r,pending:null},d.queue=m,l=cB.bind(null,Be,m,v,l),m.dispatch=l,d.memoizedState=r,[a,l,!1]}function Kx(r){var a=Lt();return $x(a,ft,r)}function $x(r,a,l){if(a=zp(r,a,Hx)[0],r=Fu(fi)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var d=Rl(a)}catch(T){throw T===qo?Lu:T}else d=a;a=Lt();var m=a.queue,v=m.dispatch;return l!==a.memoizedState&&(Be.flags|=2048,Qo(9,{destroy:void 0},uB.bind(null,m,l),null)),[d,v,r]}function uB(r,a){r.action=a}function qx(r){var a=Lt(),l=ft;if(l!==null)return $x(a,l,r);Lt(),a=a.memoizedState,l=Lt();var d=l.queue.dispatch;return l.memoizedState=r,[a,d,!1]}function Qo(r,a,l,d){return r={tag:r,create:l,deps:d,inst:a,next:null},a=Be.updateQueue,a===null&&(a=Uu(),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 Zx(){return Lt().memoizedState}function Hu(r,a,l,d){var m=yn();Be.flags|=r,m.memoizedState=Qo(1|a,{destroy:void 0},l,d===void 0?null:d)}function Gu(r,a,l,d){var m=Lt();d=d===void 0?null:d;var v=m.memoizedState.inst;ft!==null&&d!==null&&Np(d,ft.memoizedState.deps)?m.memoizedState=Qo(a,v,l,d):(Be.flags|=r,m.memoizedState=Qo(1|a,v,l,d))}function Yx(r,a){Hu(8390656,8,r,a)}function Up(r,a){Gu(2048,8,r,a)}function dB(r){Be.flags|=4;var a=Be.updateQueue;if(a===null)a=Uu(),Be.updateQueue=a,a.events=[r];else{var l=a.events;l===null?a.events=[r]:l.push(r)}}function Wx(r){var a=Lt().memoizedState;return dB({ref:a,nextImpl:r}),function(){if((ot&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}function Xx(r,a){return Gu(4,2,r,a)}function Qx(r,a){return Gu(4,4,r,a)}function Jx(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 eS(r,a,l){l=l!=null?l.concat([r]):null,Gu(4,4,Jx.bind(null,a,r),l)}function Vp(){}function tS(r,a){var l=Lt();a=a===void 0?null:a;var d=l.memoizedState;return a!==null&&Np(a,d[1])?d[0]:(l.memoizedState=[r,a],r)}function nS(r,a){var l=Lt();a=a===void 0?null:a;var d=l.memoizedState;if(a!==null&&Np(a,d[1]))return d[0];if(d=r(),$a){Dr(!0);try{r()}finally{Dr(!1)}}return l.memoizedState=[d,a],d}function Fp(r,a,l){return l===void 0||(di&1073741824)!==0&&(qe&261930)===0?r.memoizedState=a:(r.memoizedState=l,r=r0(),Be.lanes|=r,Zi|=r,l)}function rS(r,a,l,d){return Dn(l,a)?l:Yo.current!==null?(r=Fp(r,l,d),Dn(r,a)||(Mt=!0),r):(di&42)===0||(di&1073741824)!==0&&(qe&261930)===0?(Mt=!0,r.memoizedState=l):(r=r0(),Be.lanes|=r,Zi|=r,a)}function iS(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,Kp(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 ne=oB(z,d);Il(r,a,ne,Bn(r))}else Il(r,a,d,Bn(r))}catch(le){Il(r,a,{then:function(){},status:"rejected",reason:le},Bn())}finally{Y.p=v,T!==null&&D.types!==null&&(T.types=D.types),M.T=T}}function fB(){}function Hp(r,a,l,d){if(r.tag!==5)throw Error(i(476));var m=aS(r).queue;iS(r,m,a,K,l===null?fB:function(){return oS(r),l(d)})}function aS(r){var a=r.memoizedState;if(a!==null)return a;a={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:K},next:null};var l={};return a.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:l},next:null},r.memoizedState=a,r=r.alternate,r!==null&&(r.memoizedState=a),a}function oS(r){var a=aS(r);a.next===null&&(a=r.alternate.memoizedState),Il(r,a.next.queue,{},Bn())}function Gp(){return an(Kl)}function sS(){return Lt().memoizedState}function lS(){return Lt().memoizedState}function hB(r){for(var a=r.return;a!==null;){switch(a.tag){case 24:case 3:var l=Bn();r=Fi(l);var d=Hi(a,r,l);d!==null&&(Rn(d,a,l),Al(d,a,l)),a={cache:bp()},r.payload=a;return}a=a.return}}function pB(r,a,l){var d=Bn();l={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ku(r)?uS(a,l):(l=lp(r,a,l,d),l!==null&&(Rn(l,r,d),dS(l,a,d)))}function cS(r,a,l){var d=Bn();Il(r,a,l,d)}function Il(r,a,l,d){var m={lane:d,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ku(r))uS(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,Dn(D,T))return Tu(r,a,m,0),mt===null&&wu(),!1}catch{}finally{}if(l=lp(r,a,m,d),l!==null)return Rn(l,r,d),dS(l,a,d),!0}return!1}function Kp(r,a,l,d){if(d={lane:2,revertLane:Am(),gesture:null,action:d,hasEagerState:!1,eagerState:null,next:null},Ku(r)){if(a)throw Error(i(479))}else a=lp(r,l,d,2),a!==null&&Rn(a,r,2)}function Ku(r){var a=r.alternate;return r===Be||a!==null&&a===Be}function uS(r,a){Wo=Pu=!0;var l=r.pending;l===null?a.next=a:(a.next=l.next,l.next=a),r.pending=a}function dS(r,a,l){if((l&4194048)!==0){var d=a.lanes;d&=r.pendingLanes,l|=d,a.lanes=l,yE(r,l)}}var _l={readContext:an,use:Vu,useCallback:Rt,useContext:Rt,useEffect:Rt,useImperativeHandle:Rt,useLayoutEffect:Rt,useInsertionEffect:Rt,useMemo:Rt,useReducer:Rt,useRef:Rt,useState:Rt,useDebugValue:Rt,useDeferredValue:Rt,useTransition:Rt,useSyncExternalStore:Rt,useId:Rt,useHostTransitionStatus:Rt,useFormState:Rt,useActionState:Rt,useOptimistic:Rt,useMemoCache:Rt,useCacheRefresh:Rt};_l.useEffectEvent=Rt;var fS={readContext:an,use:Vu,useCallback:function(r,a){return yn().memoizedState=[r,a===void 0?null:a],r},useContext:an,useEffect:Yx,useImperativeHandle:function(r,a,l){l=l!=null?l.concat([r]):null,Hu(4194308,4,Jx.bind(null,a,r),l)},useLayoutEffect:function(r,a){return Hu(4194308,4,r,a)},useInsertionEffect:function(r,a){Hu(4,2,r,a)},useMemo:function(r,a){var l=yn();a=a===void 0?null:a;var d=r();if($a){Dr(!0);try{r()}finally{Dr(!1)}}return l.memoizedState=[d,a],d},useReducer:function(r,a,l){var d=yn();if(l!==void 0){var m=l(a);if($a){Dr(!0);try{l(a)}finally{Dr(!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=pB.bind(null,Be,r),[d.memoizedState,r]},useRef:function(r){var a=yn();return r={current:r},a.memoizedState=r},useState:function(r){r=Pp(r);var a=r.queue,l=cS.bind(null,Be,a);return a.dispatch=l,[r.memoizedState,l]},useDebugValue:Vp,useDeferredValue:function(r,a){var l=yn();return Fp(l,r,a)},useTransition:function(){var r=Pp(!1);return r=iS.bind(null,Be,r.queue,!0,!1),yn().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,a,l){var d=Be,m=yn();if(We){if(l===void 0)throw Error(i(407));l=l()}else{if(l=a(),mt===null)throw Error(i(349));(qe&127)!==0||Dx(d,a,l)}m.memoizedState=l;var v={value:l,getSnapshot:a};return m.queue=v,Yx(jx.bind(null,d,v,r),[r]),d.flags|=2048,Qo(9,{destroy:void 0},Ox.bind(null,d,v,l,a),null),l},useId:function(){var r=yn(),a=mt.identifierPrefix;if(We){var l=jr,d=Or;l=(d&~(1<<32-dn(d)-1)).toString(32)+l,a="_"+a+"R_"+l,l=Bu++,0<l&&(a+="H"+l.toString(32)),a+="_"}else l=sB++,a="_"+a+"r_"+l.toString(32)+"_";return r.memoizedState=a},useHostTransitionStatus:Gp,useFormState:Gx,useActionState:Gx,useOptimistic:function(r){var a=yn();a.memoizedState=a.baseState=r;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=l,a=Kp.bind(null,Be,!0,l),l.dispatch=a,[r,a]},useMemoCache:jp,useCacheRefresh:function(){return yn().memoizedState=hB.bind(null,Be)},useEffectEvent:function(r){var a=yn(),l={impl:r};return a.memoizedState=l,function(){if((ot&2)!==0)throw Error(i(440));return l.impl.apply(void 0,arguments)}}},$p={readContext:an,use:Vu,useCallback:tS,useContext:an,useEffect:Up,useImperativeHandle:eS,useInsertionEffect:Xx,useLayoutEffect:Qx,useMemo:nS,useReducer:Fu,useRef:Zx,useState:function(){return Fu(fi)},useDebugValue:Vp,useDeferredValue:function(r,a){var l=Lt();return rS(l,ft.memoizedState,r,a)},useTransition:function(){var r=Fu(fi)[0],a=Lt().memoizedState;return[typeof r=="boolean"?r:Rl(r),a]},useSyncExternalStore:Lx,useId:sS,useHostTransitionStatus:Gp,useFormState:Kx,useActionState:Kx,useOptimistic:function(r,a){var l=Lt();return Px(l,ft,r,a)},useMemoCache:jp,useCacheRefresh:lS};$p.useEffectEvent=Wx;var hS={readContext:an,use:Vu,useCallback:tS,useContext:an,useEffect:Up,useImperativeHandle:eS,useInsertionEffect:Xx,useLayoutEffect:Qx,useMemo:nS,useReducer:Mp,useRef:Zx,useState:function(){return Mp(fi)},useDebugValue:Vp,useDeferredValue:function(r,a){var l=Lt();return ft===null?Fp(l,r,a):rS(l,ft.memoizedState,r,a)},useTransition:function(){var r=Mp(fi)[0],a=Lt().memoizedState;return[typeof r=="boolean"?r:Rl(r),a]},useSyncExternalStore:Lx,useId:sS,useHostTransitionStatus:Gp,useFormState:qx,useActionState:qx,useOptimistic:function(r,a){var l=Lt();return ft!==null?Px(l,ft,r,a):(l.baseState=r,[r,l.queue.dispatch])},useMemoCache:jp,useCacheRefresh:lS};hS.useEffectEvent=Wx;function qp(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 Zp={enqueueSetState:function(r,a,l){r=r._reactInternals;var d=Bn(),m=Fi(d);m.payload=a,l!=null&&(m.callback=l),a=Hi(r,m,d),a!==null&&(Rn(a,r,d),Al(a,r,d))},enqueueReplaceState:function(r,a,l){r=r._reactInternals;var d=Bn(),m=Fi(d);m.tag=1,m.payload=a,l!=null&&(m.callback=l),a=Hi(r,m,d),a!==null&&(Rn(a,r,d),Al(a,r,d))},enqueueForceUpdate:function(r,a){r=r._reactInternals;var l=Bn(),d=Fi(l);d.tag=2,a!=null&&(d.callback=a),a=Hi(r,d,l),a!==null&&(Rn(a,r,l),Al(a,r,l))}};function pS(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?!ml(l,d)||!ml(m,v):!0}function mS(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&&Zp.enqueueReplaceState(a,a.state,null)}function qa(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 yS(r){Au(r)}function gS(r){console.error(r)}function vS(r){Au(r)}function $u(r,a){try{var l=r.onUncaughtError;l(a.value,{componentStack:a.stack})}catch(d){setTimeout(function(){throw d})}}function bS(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 Yp(r,a,l){return l=Fi(l),l.tag=3,l.payload={element:null},l.callback=function(){$u(r,a)},l}function ES(r){return r=Fi(r),r.tag=3,r}function xS(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(){bS(a,l,d)}}var T=l.stateNode;T!==null&&typeof T.componentDidCatch=="function"&&(r.callback=function(){bS(a,l,d),typeof m!="function"&&(Yi===null?Yi=new Set([this]):Yi.add(this));var D=d.stack;this.componentDidCatch(d.value,{componentStack:D!==null?D:""})})}function mB(r,a,l,d,m){if(l.flags|=32768,d!==null&&typeof d=="object"&&typeof d.then=="function"){if(a=l.alternate,a!==null&&Go(a,l,m,!0),l=jn.current,l!==null){switch(l.tag){case 31:case 13:return rr===null?id():l.alternate===null&&It===0&&(It=3),l.flags&=-257,l.flags|=65536,l.lanes=m,d===Du?l.flags|=16384:(a=l.updateQueue,a===null?l.updateQueue=new Set([d]):a.add(d),Em(r,d,m)),!1;case 22:return l.flags|=65536,d===Du?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)),Em(r,d,m)),!1}throw Error(i(435,l.tag))}return Em(r,d,m),id(),!1}if(We)return a=jn.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=m,d!==pp&&(r=Error(i(422),{cause:d}),vl(Jn(r,l)))):(d!==pp&&(a=Error(i(423),{cause:d}),vl(Jn(a,l))),r=r.current.alternate,r.flags|=65536,m&=-m,r.lanes|=m,d=Jn(d,l),m=Yp(r.stateNode,d,m),Tp(r,m),It!==4&&(It=2)),!1;var v=Error(i(520),{cause:d});if(v=Jn(v,l),Ml===null?Ml=[v]:Ml.push(v),It!==4&&(It=2),a===null)return!0;d=Jn(d,l),l=a;do{switch(l.tag){case 3:return l.flags|=65536,r=m&-m,l.lanes|=r,r=Yp(l.stateNode,d,r),Tp(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"&&(Yi===null||!Yi.has(v))))return l.flags|=65536,m&=-m,l.lanes|=m,m=ES(m),xS(m,r,l,d),Tp(l,m),!1}l=l.return}while(l!==null);return!1}var Wp=Error(i(461)),Mt=!1;function on(r,a,l,d){a.child=r===null?Tx(a,null,l,d):Ka(a,r.child,l,d)}function SS(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 Va(a),d=kp(r,a,l,T,v,m),D=Lp(),r!==null&&!Mt?(Dp(r,a,m),hi(r,a,m)):(We&&D&&fp(a),a.flags|=1,on(r,a,d,m),a.child)}function AS(r,a,l,d,m){if(r===null){var v=l.type;return typeof v=="function"&&!cp(v)&&v.defaultProps===void 0&&l.compare===null?(a.tag=15,a.type=v,wS(r,a,v,d,m)):(r=Ru(l.type,null,d,a,a.mode,m),r.ref=a.ref,r.return=a,a.child=r)}if(v=r.child,!im(r,m)){var T=v.memoizedProps;if(l=l.compare,l=l!==null?l:ml,l(T,d)&&r.ref===a.ref)return hi(r,a,m)}return a.flags|=1,r=si(v,d),r.ref=a.ref,r.return=a,a.child=r}function wS(r,a,l,d,m){if(r!==null){var v=r.memoizedProps;if(ml(v,d)&&r.ref===a.ref)if(Mt=!1,a.pendingProps=d=v,im(r,m))(r.flags&131072)!==0&&(Mt=!0);else return a.lanes=r.lanes,hi(r,a,m)}return Xp(r,a,l,d,m)}function TS(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 CS(r,a,v,l,d)}if((l&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},r!==null&&ku(a,v!==null?v.cachePool:null),v!==null?Ix(a,v):Rp(),_x(a);else return d=a.lanes=536870912,CS(r,a,v!==null?v.baseLanes|l:l,l,d)}else v!==null?(ku(a,v.cachePool),Ix(a,v),Ki(),a.memoizedState=null):(r!==null&&ku(a,null),Rp(),Ki());return on(r,a,m,l),a.child}function Nl(r,a){return r!==null&&r.tag===22||a.stateNode!==null||(a.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.sibling}function CS(r,a,l,d,m){var v=xp();return v=v===null?null:{parent:jt._currentValue,pool:v},a.memoizedState={baseLanes:l,cachePool:v},r!==null&&ku(a,null),Rp(),_x(a),r!==null&&Go(r,a,d,!0),a.childLanes=m,null}function qu(r,a){return a=Yu({mode:a.mode,children:a.children},r.mode),a.ref=r.ref,r.child=a,a.return=r,a}function RS(r,a,l){return Ka(a,r.child,null,l),r=qu(a,a.pendingProps),r.flags|=2,zn(a),a.memoizedState=null,r}function yB(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=qu(a,d),a.lanes=536870912,Nl(null,r);if(_p(a),(r=gt)?(r=B0(r,nr),r=r!==null&&r.data==="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Mi!==null?{id:Or,overflow:jr}:null,retryLane:536870912,hydrationErrors:null},l=ux(r),l.return=a,a.child=l,rn=a,gt=null)):r=null,r===null)throw Bi(a);return a.lanes=536870912,null}return qu(a,d)}var v=r.memoizedState;if(v!==null){var T=v.dehydrated;if(_p(a),m)if(a.flags&256)a.flags&=-257,a=RS(r,a,l);else if(a.memoizedState!==null)a.child=r.child,a.flags|=128,a=null;else throw Error(i(558));else if(Mt||Go(r,a,l,!1),m=(l&r.childLanes)!==0,Mt||m){if(d=mt,d!==null&&(T=gE(d,l),T!==0&&T!==v.retryLane))throw v.retryLane=T,Ma(r,T),Rn(d,r,T),Wp;id(),a=RS(r,a,l)}else r=v.treeContext,gt=ir(T.nextSibling),rn=a,We=!0,Pi=null,nr=!1,r!==null&&hx(a,r),a=qu(a,d),a.flags|=4096;return a}return r=si(r.child,{mode:d.mode,children:d.children}),r.ref=a.ref,a.child=r,r.return=a,r}function Zu(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 Xp(r,a,l,d,m){return Va(a),l=kp(r,a,l,d,void 0,m),d=Lp(),r!==null&&!Mt?(Dp(r,a,m),hi(r,a,m)):(We&&d&&fp(a),a.flags|=1,on(r,a,l,m),a.child)}function IS(r,a,l,d,m,v){return Va(a),a.updateQueue=null,l=kx(a,d,l,m),Nx(r),d=Lp(),r!==null&&!Mt?(Dp(r,a,v),hi(r,a,v)):(We&&d&&fp(a),a.flags|=1,on(r,a,l,v),a.child)}function _S(r,a,l,d,m){if(Va(a),a.stateNode===null){var v=Uo,T=l.contextType;typeof T=="object"&&T!==null&&(v=an(T)),v=new l(d,v),a.memoizedState=v.state!==null&&v.state!==void 0?v.state:null,v.updater=Zp,a.stateNode=v,v._reactInternals=a,v=a.stateNode,v.props=d,v.state=a.memoizedState,v.refs={},Ap(a),T=l.contextType,v.context=typeof T=="object"&&T!==null?an(T):Uo,v.state=a.memoizedState,T=l.getDerivedStateFromProps,typeof T=="function"&&(qp(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&&Zp.enqueueReplaceState(v,v.state,null),Tl(a,d,v,m),wl(),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=qa(l,D);v.props=z;var Z=v.context,ne=l.contextType;T=Uo,typeof ne=="object"&&ne!==null&&(T=an(ne));var le=l.getDerivedStateFromProps;ne=typeof le=="function"||typeof v.getSnapshotBeforeUpdate=="function",D=a.pendingProps!==D,ne||typeof v.UNSAFE_componentWillReceiveProps!="function"&&typeof v.componentWillReceiveProps!="function"||(D||Z!==T)&&mS(a,v,d,T),Vi=!1;var Q=a.memoizedState;v.state=Q,Tl(a,d,v,m),wl(),Z=a.memoizedState,D||Q!==Z||Vi?(typeof le=="function"&&(qp(a,l,le,d),Z=a.memoizedState),(z=Vi||pS(a,l,z,d,Q,Z,T))?(ne||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,wp(r,a),T=a.memoizedProps,ne=qa(l,T),v.props=ne,le=a.pendingProps,Q=v.context,Z=l.contextType,z=Uo,typeof Z=="object"&&Z!==null&&(z=an(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)&&mS(a,v,d,z),Vi=!1,Q=a.memoizedState,v.state=Q,Tl(a,d,v,m),wl();var ee=a.memoizedState;T!==le||Q!==ee||Vi||r!==null&&r.dependencies!==null&&_u(r.dependencies)?(typeof D=="function"&&(qp(a,l,D,d),ee=a.memoizedState),(ne=Vi||pS(a,l,ne,d,Q,ee,z)||r!==null&&r.dependencies!==null&&_u(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=ne):(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,Zu(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=Ka(a,r.child,null,m),a.child=Ka(a,null,l,m)):on(r,a,l,m),a.memoizedState=v.state,r=a.child):r=hi(r,a,m),r}function NS(r,a,l,d){return Ba(),a.flags|=256,on(r,a,l,d),a.child}var Qp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jp(r){return{baseLanes:r,cachePool:bx()}}function em(r,a,l){return r=r!==null?r.childLanes&~l:0,a&&(r|=Pn),r}function kS(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:(kt.current&2)!==0),T&&(m=!0,a.flags&=-129),T=(a.flags&32)!==0,a.flags&=-33,r===null){if(We){if(m?Gi(a):Ki(),(r=gt)?(r=B0(r,nr),r=r!==null&&r.data!=="&"?r:null,r!==null&&(a.memoizedState={dehydrated:r,treeContext:Mi!==null?{id:Or,overflow:jr}:null,retryLane:536870912,hydrationErrors:null},l=ux(r),l.return=a,a.child=l,rn=a,gt=null)):r=null,r===null)throw Bi(a);return zm(r)?a.lanes=32:a.lanes=536870912,null}var D=d.children;return d=d.fallback,m?(Ki(),m=a.mode,D=Yu({mode:"hidden",children:D},m),d=Pa(d,m,l,null),D.return=a,d.return=a,D.sibling=d,a.child=D,d=a.child,d.memoizedState=Jp(l),d.childLanes=em(r,T,l),a.memoizedState=Qp,Nl(null,d)):(Gi(a),tm(a,D))}var z=r.memoizedState;if(z!==null&&(D=z.dehydrated,D!==null)){if(v)a.flags&256?(Gi(a),a.flags&=-257,a=nm(r,a,l)):a.memoizedState!==null?(Ki(),a.child=r.child,a.flags|=128,a=null):(Ki(),D=d.fallback,m=a.mode,d=Yu({mode:"visible",children:d.children},m),D=Pa(D,m,l,null),D.flags|=2,d.return=a,D.return=a,d.sibling=D,a.child=d,Ka(a,r.child,null,l),d=a.child,d.memoizedState=Jp(l),d.childLanes=em(r,T,l),a.memoizedState=Qp,a=Nl(null,d));else if(Gi(a),zm(D)){if(T=D.nextSibling&&D.nextSibling.dataset,T)var Z=T.dgst;T=Z,d=Error(i(419)),d.stack="",d.digest=T,vl({value:d,source:null,stack:null}),a=nm(r,a,l)}else if(Mt||Go(r,a,l,!1),T=(l&r.childLanes)!==0,Mt||T){if(T=mt,T!==null&&(d=gE(T,l),d!==0&&d!==z.retryLane))throw z.retryLane=d,Ma(r,d),Rn(T,r,d),Wp;jm(D)||id(),a=nm(r,a,l)}else jm(D)?(a.flags|=192,a.child=r.child,a=null):(r=z.treeContext,gt=ir(D.nextSibling),rn=a,We=!0,Pi=null,nr=!1,r!==null&&hx(a,r),a=tm(a,d.children),a.flags|=4096);return a}return m?(Ki(),D=d.fallback,m=a.mode,z=r.child,Z=z.sibling,d=si(z,{mode:"hidden",children:d.children}),d.subtreeFlags=z.subtreeFlags&65011712,Z!==null?D=si(Z,D):(D=Pa(D,m,l,null),D.flags|=2),D.return=a,d.return=a,d.sibling=D,a.child=d,Nl(null,d),d=a.child,D=r.child.memoizedState,D===null?D=Jp(l):(m=D.cachePool,m!==null?(z=jt._currentValue,m=m.parent!==z?{parent:z,pool:z}:m):m=bx(),D={baseLanes:D.baseLanes|l,cachePool:m}),d.memoizedState=D,d.childLanes=em(r,T,l),a.memoizedState=Qp,Nl(r.child,d)):(Gi(a),l=r.child,r=l.sibling,l=si(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 tm(r,a){return a=Yu({mode:"visible",children:a},r.mode),a.return=r,r.child=a}function Yu(r,a){return r=On(22,r,null,a),r.lanes=0,r}function nm(r,a,l){return Ka(a,r.child,null,l),r=tm(a,a.pendingProps.children),r.flags|=2,a.memoizedState=null,r}function LS(r,a,l){r.lanes|=a;var d=r.alternate;d!==null&&(d.lanes|=a),gp(r.return,a,l)}function rm(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 DS(r,a,l){var d=a.pendingProps,m=d.revealOrder,v=d.tail;d=d.children;var T=kt.current,D=(T&2)!==0;if(D?(T=T&1|2,a.flags|=128):T&=1,J(kt,T),on(r,a,d,l),d=We?gl:0,!D&&r!==null&&(r.flags&128)!==0)e:for(r=a.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&LS(r,l,a);else if(r.tag===19)LS(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&&Mu(r)===null&&(m=l),l=l.sibling;l=m,l===null?(m=a.child,a.child=null):(m=l.sibling,l.sibling=null),rm(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&&Mu(r)===null){a.child=m;break}r=m.sibling,m.sibling=l,l=m,m=r}rm(a,!0,l,null,v,d);break;case"together":rm(a,!1,null,null,void 0,d);break;default:a.memoizedState=null}return a.child}function hi(r,a,l){if(r!==null&&(a.dependencies=r.dependencies),Zi|=a.lanes,(l&a.childLanes)===0)if(r!==null){if(Go(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=si(r,r.pendingProps),a.child=l,l.return=a;r.sibling!==null;)r=r.sibling,l=l.sibling=si(r,r.pendingProps),l.return=a;l.sibling=null}return a.child}function im(r,a){return(r.lanes&a)!==0?!0:(r=r.dependencies,!!(r!==null&&_u(r)))}function gB(r,a,l){switch(a.tag){case 3:Re(a,a.stateNode.containerInfo),Ui(a,jt,r.memoizedState.cache),Ba();break;case 27:case 5:ze(a);break;case 4:Re(a,a.stateNode.containerInfo);break;case 10:Ui(a,a.type,a.memoizedProps.value);break;case 31:if(a.memoizedState!==null)return a.flags|=128,_p(a),null;break;case 13:var d=a.memoizedState;if(d!==null)return d.dehydrated!==null?(Gi(a),a.flags|=128,null):(l&a.child.childLanes)!==0?kS(r,a,l):(Gi(a),r=hi(r,a,l),r!==null?r.sibling:null);Gi(a);break;case 19:var m=(r.flags&128)!==0;if(d=(l&a.childLanes)!==0,d||(Go(r,a,l,!1),d=(l&a.childLanes)!==0),m){if(d)return DS(r,a,l);a.flags|=128}if(m=a.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),J(kt,kt.current),d)break;return null;case 22:return a.lanes=0,TS(r,a,l,a.pendingProps);case 24:Ui(a,jt,r.memoizedState.cache)}return hi(r,a,l)}function OS(r,a,l){if(r!==null)if(r.memoizedProps!==a.pendingProps)Mt=!0;else{if(!im(r,l)&&(a.flags&128)===0)return Mt=!1,gB(r,a,l);Mt=(r.flags&131072)!==0}else Mt=!1,We&&(a.flags&1048576)!==0&&fx(a,gl,a.index);switch(a.lanes=0,a.tag){case 16:e:{var d=a.pendingProps;if(r=Ha(a.elementType),a.type=r,typeof r=="function")cp(r)?(d=qa(r,d),a.tag=1,a=_S(null,a,r,d,l)):(a.tag=0,a=Xp(null,a,r,d,l));else{if(r!=null){var m=r.$$typeof;if(m===I){a.tag=11,a=SS(null,a,r,d,l);break e}else if(m===L){a.tag=14,a=AS(null,a,r,d,l);break e}}throw a=X(r)||r,Error(i(306,a,""))}}return a;case 0:return Xp(r,a,a.type,a.pendingProps,l);case 1:return d=a.type,m=qa(d,a.pendingProps),_S(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,wp(r,a),Tl(a,d,null,l);var T=a.memoizedState;if(d=T.cache,Ui(a,jt,d),d!==v.cache&&vp(a,[jt],l,!0),wl(),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=NS(r,a,d,l);break e}else if(d!==m){m=Jn(Error(i(424)),a),vl(m),a=NS(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(gt=ir(r.firstChild),rn=a,We=!0,Pi=null,nr=!0,l=Tx(a,null,d,l),a.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ba(),d===m){a=hi(r,a,l);break e}on(r,a,d,l)}a=a.child}return a;case 26:return Zu(r,a),r===null?(l=K0(a.type,null,a.pendingProps,null))?a.memoizedState=l:We||(l=a.type,r=a.pendingProps,d=dd(ye.current).createElement(l),d[nn]=a,d[xn]=r,sn(d,l,r),Wt(d),a.stateNode=d):a.memoizedState=K0(a.type,r.memoizedProps,a.pendingProps,r.memoizedState),null;case 27:return ze(a),r===null&&We&&(d=a.stateNode=F0(a.type,a.pendingProps,ye.current),rn=a,nr=!0,m=gt,Ji(a.type)?(Mm=m,gt=ir(d.firstChild)):gt=m),on(r,a,a.pendingProps.children,l),Zu(r,a),r===null&&(a.flags|=4194304),a.child;case 5:return r===null&&We&&((m=d=gt)&&(d=qB(d,a.type,a.pendingProps,nr),d!==null?(a.stateNode=d,rn=a,gt=ir(d.firstChild),nr=!1,m=!0):m=!1),m||Bi(a)),ze(a),m=a.type,v=a.pendingProps,T=r!==null?r.memoizedProps:null,d=v.children,Lm(m,v)?d=null:T!==null&&Lm(m,T)&&(a.flags|=32),a.memoizedState!==null&&(m=kp(r,a,lB,null,null,l),Kl._currentValue=m),Zu(r,a),on(r,a,d,l),a.child;case 6:return r===null&&We&&((r=l=gt)&&(l=ZB(l,a.pendingProps,nr),l!==null?(a.stateNode=l,rn=a,gt=null,r=!0):r=!1),r||Bi(a)),null;case 13:return kS(r,a,l);case 4:return Re(a,a.stateNode.containerInfo),d=a.pendingProps,r===null?a.child=Ka(a,null,d,l):on(r,a,d,l),a.child;case 11:return SS(r,a,a.type,a.pendingProps,l);case 7:return on(r,a,a.pendingProps,l),a.child;case 8:return on(r,a,a.pendingProps.children,l),a.child;case 12:return on(r,a,a.pendingProps.children,l),a.child;case 10:return d=a.pendingProps,Ui(a,a.type,d.value),on(r,a,d.children,l),a.child;case 9:return m=a.type._context,d=a.pendingProps.children,Va(a),m=an(m),d=d(m),a.flags|=1,on(r,a,d,l),a.child;case 14:return AS(r,a,a.type,a.pendingProps,l);case 15:return wS(r,a,a.type,a.pendingProps,l);case 19:return DS(r,a,l);case 31:return yB(r,a,l);case 22:return TS(r,a,l,a.pendingProps);case 24:return Va(a),d=an(jt),r===null?(m=xp(),m===null&&(m=mt,v=bp(),m.pooledCache=v,v.refCount++,v!==null&&(m.pooledCacheLanes|=l),m=v),a.memoizedState={parent:d,cache:m},Ap(a),Ui(a,jt,m)):((r.lanes&l)!==0&&(wp(r,a),Tl(a,null,null,l),wl()),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),Ui(a,jt,d)):(d=v.cache,Ui(a,jt,d),d!==m.cache&&vp(a,[jt],l,!0))),on(r,a,a.pendingProps.children,l),a.child;case 29:throw a.pendingProps}throw Error(i(156,a.tag))}function pi(r){r.flags|=4}function am(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(s0())r.flags|=8192;else throw Ga=Du,Sp}else r.flags&=-16777217}function jS(r,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!W0(a))if(s0())r.flags|=8192;else throw Ga=Du,Sp}function Wu(r,a){a!==null&&(r.flags|=4),r.flags&16384&&(a=r.tag!==22?pE():536870912,r.lanes|=a,ns|=a)}function kl(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 vt(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 vB(r,a,l){var d=a.pendingProps;switch(hp(a),a.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vt(a),null;case 1:return vt(a),null;case 3:return l=a.stateNode,d=null,r!==null&&(d=r.memoizedState.cache),a.memoizedState.cache!==d&&(a.flags|=2048),ui(jt),Ae(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(r===null||r.child===null)&&(Ho(a)?pi(a):r===null||r.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,mp())),vt(a),null;case 26:var m=a.type,v=a.memoizedState;return r===null?(pi(a),v!==null?(vt(a),jS(a,v)):(vt(a),am(a,m,null,d,l))):v?v!==r.memoizedState?(pi(a),vt(a),jS(a,v)):(vt(a),a.flags&=-16777217):(r=r.memoizedProps,r!==d&&pi(a),vt(a),am(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&&pi(a);else{if(!d){if(a.stateNode===null)throw Error(i(166));return vt(a),null}r=te.current,Ho(a)?px(a):(r=F0(m,d,l),a.stateNode=r,pi(a))}return vt(a),null;case 5:if(Ye(a),m=a.type,r!==null&&a.stateNode!=null)r.memoizedProps!==d&&pi(a);else{if(!d){if(a.stateNode===null)throw Error(i(166));return vt(a),null}if(v=te.current,Ho(a))px(a);else{var T=dd(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[nn]=a,v[xn]=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(sn(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&&pi(a)}}return vt(a),am(a,a.type,r===null?null:r.memoizedProps,a.pendingProps,l),null;case 6:if(r&&a.stateNode!=null)r.memoizedProps!==d&&pi(a);else{if(typeof d!="string"&&a.stateNode===null)throw Error(i(166));if(r=ye.current,Ho(a)){if(r=a.stateNode,l=a.memoizedProps,d=null,m=rn,m!==null)switch(m.tag){case 27:case 5:d=m.memoizedProps}r[nn]=a,r=!!(r.nodeValue===l||d!==null&&d.suppressHydrationWarning===!0||k0(r.nodeValue,l)),r||Bi(a,!0)}else r=dd(r).createTextNode(d),r[nn]=a,a.stateNode=r}return vt(a),null;case 31:if(l=a.memoizedState,r===null||r.memoizedState!==null){if(d=Ho(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[nn]=a}else Ba(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;vt(a),r=!1}else l=mp(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=l),r=!0;if(!r)return a.flags&256?(zn(a),a):(zn(a),null);if((a.flags&128)!==0)throw Error(i(558))}return vt(a),null;case 13:if(d=a.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(m=Ho(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[nn]=a}else Ba(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;vt(a),m=!1}else m=mp(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=m),m=!0;if(!m)return a.flags&256?(zn(a),a):(zn(a),null)}return zn(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),Wu(a,a.updateQueue),vt(a),null);case 4:return Ae(),r===null&&Rm(a.stateNode.containerInfo),vt(a),null;case 10:return ui(a.type),vt(a),null;case 19:if(P(kt),d=a.memoizedState,d===null)return vt(a),null;if(m=(a.flags&128)!==0,v=d.rendering,v===null)if(m)kl(d,!1);else{if(It!==0||r!==null&&(r.flags&128)!==0)for(r=a.child;r!==null;){if(v=Mu(r),v!==null){for(a.flags|=128,kl(d,!1),r=v.updateQueue,a.updateQueue=r,Wu(a,r),a.subtreeFlags=0,r=l,l=a.child;l!==null;)cx(l,r),l=l.sibling;return J(kt,kt.current&1|2),We&&li(a,d.treeForkCount),a.child}r=r.sibling}d.tail!==null&&he()>td&&(a.flags|=128,m=!0,kl(d,!1),a.lanes=4194304)}else{if(!m)if(r=Mu(v),r!==null){if(a.flags|=128,m=!0,r=r.updateQueue,a.updateQueue=r,Wu(a,r),kl(d,!0),d.tail===null&&d.tailMode==="hidden"&&!v.alternate&&!We)return vt(a),null}else 2*he()-d.renderingStartTime>td&&l!==536870912&&(a.flags|=128,m=!0,kl(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=kt.current,J(kt,m?l&1|2:l&1),We&&li(a,d.treeForkCount),r):(vt(a),null);case 22:case 23:return zn(a),Ip(),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&&(vt(a),a.subtreeFlags&6&&(a.flags|=8192)):vt(a),l=a.updateQueue,l!==null&&Wu(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(Fa),null;case 24:return l=null,r!==null&&(l=r.memoizedState.cache),a.memoizedState.cache!==l&&(a.flags|=2048),ui(jt),vt(a),null;case 25:return null;case 30:return null}throw Error(i(156,a.tag))}function bB(r,a){switch(hp(a),a.tag){case 1:return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 3:return ui(jt),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(zn(a),a.alternate===null)throw Error(i(340));Ba()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 13:if(zn(a),r=a.memoizedState,r!==null&&r.dehydrated!==null){if(a.alternate===null)throw Error(i(340));Ba()}return r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 19:return P(kt),null;case 4:return Ae(),null;case 10:return ui(a.type),null;case 22:case 23:return zn(a),Ip(),r!==null&&P(Fa),r=a.flags,r&65536?(a.flags=r&-65537|128,a):null;case 24:return ui(jt),null;case 25:return null;default:return null}}function zS(r,a){switch(hp(a),a.tag){case 3:ui(jt),Ae();break;case 26:case 27:case 5:Ye(a);break;case 4:Ae();break;case 31:a.memoizedState!==null&&zn(a);break;case 13:zn(a);break;case 19:P(kt);break;case 10:ui(a.type);break;case 22:case 23:zn(a),Ip(),r!==null&&P(Fa);break;case 24:ui(jt)}}function Ll(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){ct(a,a.return,D)}}function $i(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(ne){ct(m,z,ne)}}}d=d.next}while(d!==v)}}catch(ne){ct(a,a.return,ne)}}function MS(r){var a=r.updateQueue;if(a!==null){var l=r.stateNode;try{Rx(a,l)}catch(d){ct(r,r.return,d)}}}function PS(r,a,l){l.props=qa(r.type,r.memoizedProps),l.state=r.memoizedState;try{l.componentWillUnmount()}catch(d){ct(r,a,d)}}function Dl(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){ct(r,a,m)}}function zr(r,a){var l=r.ref,d=r.refCleanup;if(l!==null)if(typeof d=="function")try{d()}catch(m){ct(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){ct(r,a,m)}else l.current=null}function BS(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){ct(r,r.return,m)}}function om(r,a,l){try{var d=r.stateNode;VB(d,r.type,l,a),d[xn]=a}catch(m){ct(r,r.return,m)}}function US(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&Ji(r.type)||r.tag===4}function sm(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||US(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&&Ji(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 lm(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=ai));else if(d!==4&&(d===27&&Ji(r.type)&&(l=r.stateNode,a=null),r=r.child,r!==null))for(lm(r,a,l),r=r.sibling;r!==null;)lm(r,a,l),r=r.sibling}function Xu(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&&Ji(r.type)&&(l=r.stateNode),r=r.child,r!==null))for(Xu(r,a,l),r=r.sibling;r!==null;)Xu(r,a,l),r=r.sibling}function VS(r){var a=r.stateNode,l=r.memoizedProps;try{for(var d=r.type,m=a.attributes;m.length;)a.removeAttributeNode(m[0]);sn(a,d,l),a[nn]=r,a[xn]=l}catch(v){ct(r,r.return,v)}}var mi=!1,Pt=!1,cm=!1,FS=typeof WeakSet=="function"?WeakSet:Set,Xt=null;function EB(r,a){if(r=r.containerInfo,Nm=vd,r=ex(r),np(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,ne=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&&++ne===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(km={focusedElem:r,selectionRange:l},vd=!1,Xt=a;Xt!==null;)if(a=Xt,r=a.child,(a.subtreeFlags&1028)!==0&&r!==null)r.return=a,Xt=r;else for(;Xt!==null;){switch(a=Xt,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=qa(l.type,m);r=d.getSnapshotBeforeUpdate(be,v),d.__reactInternalSnapshotBeforeUpdate=r}catch(ke){ct(l,l.return,ke)}}break;case 3:if((r&1024)!==0){if(r=a.stateNode.containerInfo,l=r.nodeType,l===9)Om(r);else if(l===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":Om(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,Xt=r;break}Xt=a.return}}function HS(r,a,l){var d=l.flags;switch(l.tag){case 0:case 11:case 15:gi(r,l),d&4&&Ll(5,l);break;case 1:if(gi(r,l),d&4)if(r=l.stateNode,a===null)try{r.componentDidMount()}catch(T){ct(l,l.return,T)}else{var m=qa(l.type,a.memoizedProps);a=a.memoizedState;try{r.componentDidUpdate(m,a,r.__reactInternalSnapshotBeforeUpdate)}catch(T){ct(l,l.return,T)}}d&64&&MS(l),d&512&&Dl(l,l.return);break;case 3:if(gi(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{Rx(r,a)}catch(T){ct(l,l.return,T)}}break;case 27:a===null&&d&4&&VS(l);case 26:case 5:gi(r,l),a===null&&d&4&&BS(l),d&512&&Dl(l,l.return);break;case 12:gi(r,l);break;case 31:gi(r,l),d&4&&$S(r,l);break;case 13:gi(r,l),d&4&&qS(r,l),d&64&&(r=l.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(l=_B.bind(null,l),YB(r,l))));break;case 22:if(d=l.memoizedState!==null||mi,!d){a=a!==null&&a.memoizedState!==null||Pt,m=mi;var v=Pt;mi=d,(Pt=a)&&!v?vi(r,l,(l.subtreeFlags&8772)!==0):gi(r,l),mi=m,Pt=v}break;case 30:break;default:gi(r,l)}}function GS(r){var a=r.alternate;a!==null&&(r.alternate=null,GS(a)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(a=r.stateNode,a!==null&&Bh(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 Et=null,An=!1;function yi(r,a,l){for(l=l.child;l!==null;)KS(r,a,l),l=l.sibling}function KS(r,a,l){if(tn&&typeof tn.onCommitFiberUnmount=="function")try{tn.onCommitFiberUnmount(ri,l)}catch{}switch(l.tag){case 26:Pt||zr(l,a),yi(r,a,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Pt||zr(l,a);var d=Et,m=An;Ji(l.type)&&(Et=l.stateNode,An=!1),yi(r,a,l),Fl(l.stateNode),Et=d,An=m;break;case 5:Pt||zr(l,a);case 6:if(d=Et,m=An,Et=null,yi(r,a,l),Et=d,An=m,Et!==null)if(An)try{(Et.nodeType===9?Et.body:Et.nodeName==="HTML"?Et.ownerDocument.body:Et).removeChild(l.stateNode)}catch(v){ct(l,a,v)}else try{Et.removeChild(l.stateNode)}catch(v){ct(l,a,v)}break;case 18:Et!==null&&(An?(r=Et,M0(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,l.stateNode),us(r)):M0(Et,l.stateNode));break;case 4:d=Et,m=An,Et=l.stateNode.containerInfo,An=!0,yi(r,a,l),Et=d,An=m;break;case 0:case 11:case 14:case 15:$i(2,l,a),Pt||$i(4,l,a),yi(r,a,l);break;case 1:Pt||(zr(l,a),d=l.stateNode,typeof d.componentWillUnmount=="function"&&PS(l,a,d)),yi(r,a,l);break;case 21:yi(r,a,l);break;case 22:Pt=(d=Pt)||l.memoizedState!==null,yi(r,a,l),Pt=d;break;default:yi(r,a,l)}}function $S(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{us(r)}catch(l){ct(a,a.return,l)}}}function qS(r,a){if(a.memoizedState===null&&(r=a.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{us(r)}catch(l){ct(a,a.return,l)}}function xB(r){switch(r.tag){case 31:case 13:case 19:var a=r.stateNode;return a===null&&(a=r.stateNode=new FS),a;case 22:return r=r.stateNode,a=r._retryCache,a===null&&(a=r._retryCache=new FS),a;default:throw Error(i(435,r.tag))}}function Qu(r,a){var l=xB(r);a.forEach(function(d){if(!l.has(d)){l.add(d);var m=NB.bind(null,r,d);d.then(m,m)}})}function wn(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(Ji(D.type)){Et=D.stateNode,An=!1;break e}break;case 5:Et=D.stateNode,An=!1;break e;case 3:case 4:Et=D.stateNode.containerInfo,An=!0;break e}D=D.return}if(Et===null)throw Error(i(160));KS(v,T,m),Et=null,An=!1,v=m.alternate,v!==null&&(v.return=null),m.return=null}if(a.subtreeFlags&13886)for(a=a.child;a!==null;)ZS(a,r),a=a.sibling}var mr=null;function ZS(r,a){var l=r.alternate,d=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:wn(a,r),Tn(r),d&4&&($i(3,r,r.return),Ll(3,r),$i(5,r,r.return));break;case 1:wn(a,r),Tn(r),d&512&&(Pt||l===null||zr(l,l.return)),d&64&&mi&&(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=mr;if(wn(a,r),Tn(r),d&512&&(Pt||l===null||zr(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[ol]||v[nn]||v.namespaceURI==="http://www.w3.org/2000/svg"||v.hasAttribute("itemprop"))&&(v=m.createElement(d),m.head.insertBefore(v,m.querySelector("head > title"))),sn(v,d,l),v[nn]=r,Wt(v),d=v;break e;case"link":var T=Z0("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),sn(v,d,l),m.head.appendChild(v);break;case"meta":if(T=Z0("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),sn(v,d,l),m.head.appendChild(v);break;default:throw Error(i(468,d))}v[nn]=r,Wt(v),d=v}r.stateNode=d}else Y0(m,r.type,r.stateNode);else r.stateNode=q0(m,d,r.memoizedProps);else v!==d?(v===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):v.count--,d===null?Y0(m,r.type,r.stateNode):q0(m,d,r.memoizedProps)):d===null&&r.stateNode!==null&&om(r,r.memoizedProps,l.memoizedProps)}break;case 27:wn(a,r),Tn(r),d&512&&(Pt||l===null||zr(l,l.return)),l!==null&&d&4&&om(r,r.memoizedProps,l.memoizedProps);break;case 5:if(wn(a,r),Tn(r),d&512&&(Pt||l===null||zr(l,l.return)),r.flags&32){m=r.stateNode;try{Do(m,"")}catch(be){ct(r,r.return,be)}}d&4&&r.stateNode!=null&&(m=r.memoizedProps,om(r,m,l!==null?l.memoizedProps:m)),d&1024&&(cm=!0);break;case 6:if(wn(a,r),Tn(r),d&4){if(r.stateNode===null)throw Error(i(162));d=r.memoizedProps,l=r.stateNode;try{l.nodeValue=d}catch(be){ct(r,r.return,be)}}break;case 3:if(pd=null,m=mr,mr=fd(a.containerInfo),wn(a,r),mr=m,Tn(r),d&4&&l!==null&&l.memoizedState.isDehydrated)try{us(a.containerInfo)}catch(be){ct(r,r.return,be)}cm&&(cm=!1,YS(r));break;case 4:d=mr,mr=fd(r.stateNode.containerInfo),wn(a,r),Tn(r),mr=d;break;case 12:wn(a,r),Tn(r);break;case 31:wn(a,r),Tn(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,Qu(r,d)));break;case 13:wn(a,r),Tn(r),r.child.flags&8192&&r.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ed=he()),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,Qu(r,d)));break;case 22:m=r.memoizedState!==null;var z=l!==null&&l.memoizedState!==null,Z=mi,ne=Pt;if(mi=Z||m,Pt=ne||z,wn(a,r),Pt=ne,mi=Z,Tn(r),d&8192)e:for(a=r.stateNode,a._visibility=m?a._visibility&-2:a._visibility|1,m&&(l===null||z||mi||Pt||Za(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){ct(z,z.return,be)}}}else if(a.tag===6){if(l===null){z=a;try{z.stateNode.nodeValue=m?"":z.memoizedProps}catch(be){ct(z,z.return,be)}}}else if(a.tag===18){if(l===null){z=a;try{var ee=z.stateNode;m?P0(ee,!0):P0(z.stateNode,!1)}catch(be){ct(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,Qu(r,l))));break;case 19:wn(a,r),Tn(r),d&4&&(d=r.updateQueue,d!==null&&(r.updateQueue=null,Qu(r,d)));break;case 30:break;case 21:break;default:wn(a,r),Tn(r)}}function Tn(r){var a=r.flags;if(a&2){try{for(var l,d=r.return;d!==null;){if(US(d)){l=d;break}d=d.return}if(l==null)throw Error(i(160));switch(l.tag){case 27:var m=l.stateNode,v=sm(r);Xu(r,v,m);break;case 5:var T=l.stateNode;l.flags&32&&(Do(T,""),l.flags&=-33);var D=sm(r);Xu(r,D,T);break;case 3:case 4:var z=l.stateNode.containerInfo,Z=sm(r);lm(r,Z,z);break;default:throw Error(i(161))}}catch(ne){ct(r,r.return,ne)}r.flags&=-3}a&4096&&(r.flags&=-4097)}function YS(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var a=r;YS(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),r=r.sibling}}function gi(r,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)HS(r,a.alternate,a),a=a.sibling}function Za(r){for(r=r.child;r!==null;){var a=r;switch(a.tag){case 0:case 11:case 14:case 15:$i(4,a,a.return),Za(a);break;case 1:zr(a,a.return);var l=a.stateNode;typeof l.componentWillUnmount=="function"&&PS(a,a.return,l),Za(a);break;case 27:Fl(a.stateNode);case 26:case 5:zr(a,a.return),Za(a);break;case 22:a.memoizedState===null&&Za(a);break;case 30:Za(a);break;default:Za(a)}r=r.sibling}}function vi(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:vi(m,v,l),Ll(4,v);break;case 1:if(vi(m,v,l),d=v,m=d.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(Z){ct(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++)Cx(z[m],D)}catch(Z){ct(d,d.return,Z)}}l&&T&64&&MS(v),Dl(v,v.return);break;case 27:VS(v);case 26:case 5:vi(m,v,l),l&&d===null&&T&4&&BS(v),Dl(v,v.return);break;case 12:vi(m,v,l);break;case 31:vi(m,v,l),l&&T&4&&$S(m,v);break;case 13:vi(m,v,l),l&&T&4&&qS(m,v);break;case 22:v.memoizedState===null&&vi(m,v,l),Dl(v,v.return);break;case 30:break;default:vi(m,v,l)}a=a.sibling}}function um(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&&bl(l))}function dm(r,a){r=null,a.alternate!==null&&(r=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==r&&(a.refCount++,r!=null&&bl(r))}function yr(r,a,l,d){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)WS(r,a,l,d),a=a.sibling}function WS(r,a,l,d){var m=a.flags;switch(a.tag){case 0:case 11:case 15:yr(r,a,l,d),m&2048&&Ll(9,a);break;case 1:yr(r,a,l,d);break;case 3:yr(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&&bl(r)));break;case 12:if(m&2048){yr(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){ct(a,a.return,z)}}else yr(r,a,l,d);break;case 31:yr(r,a,l,d);break;case 13:yr(r,a,l,d);break;case 23:break;case 22:v=a.stateNode,T=a.alternate,a.memoizedState!==null?v._visibility&2?yr(r,a,l,d):Ol(r,a):v._visibility&2?yr(r,a,l,d):(v._visibility|=2,Jo(r,a,l,d,(a.subtreeFlags&10256)!==0||!1)),m&2048&&um(T,a);break;case 24:yr(r,a,l,d),m&2048&&dm(a.alternate,a);break;default:yr(r,a,l,d)}}function Jo(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:Jo(v,T,D,z,m),Ll(8,T);break;case 23:break;case 22:var ne=T.stateNode;T.memoizedState!==null?ne._visibility&2?Jo(v,T,D,z,m):Ol(v,T):(ne._visibility|=2,Jo(v,T,D,z,m)),m&&Z&2048&&um(T.alternate,T);break;case 24:Jo(v,T,D,z,m),m&&Z&2048&&dm(T.alternate,T);break;default:Jo(v,T,D,z,m)}a=a.sibling}}function Ol(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:Ol(l,d),m&2048&&um(d.alternate,d);break;case 24:Ol(l,d),m&2048&&dm(d.alternate,d);break;default:Ol(l,d)}a=a.sibling}}var jl=8192;function es(r,a,l){if(r.subtreeFlags&jl)for(r=r.child;r!==null;)XS(r,a,l),r=r.sibling}function XS(r,a,l){switch(r.tag){case 26:es(r,a,l),r.flags&jl&&r.memoizedState!==null&&s2(l,mr,r.memoizedState,r.memoizedProps);break;case 5:es(r,a,l);break;case 3:case 4:var d=mr;mr=fd(r.stateNode.containerInfo),es(r,a,l),mr=d;break;case 22:r.memoizedState===null&&(d=r.alternate,d!==null&&d.memoizedState!==null?(d=jl,jl=16777216,es(r,a,l),jl=d):es(r,a,l));break;default:es(r,a,l)}}function QS(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 zl(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];Xt=d,e0(d,r)}QS(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)JS(r),r=r.sibling}function JS(r){switch(r.tag){case 0:case 11:case 15:zl(r),r.flags&2048&&$i(9,r,r.return);break;case 3:zl(r);break;case 12:zl(r);break;case 22:var a=r.stateNode;r.memoizedState!==null&&a._visibility&2&&(r.return===null||r.return.tag!==13)?(a._visibility&=-3,Ju(r)):zl(r);break;default:zl(r)}}function Ju(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];Xt=d,e0(d,r)}QS(r)}for(r=r.child;r!==null;){switch(a=r,a.tag){case 0:case 11:case 15:$i(8,a,a.return),Ju(a);break;case 22:l=a.stateNode,l._visibility&2&&(l._visibility&=-3,Ju(a));break;default:Ju(a)}r=r.sibling}}function e0(r,a){for(;Xt!==null;){var l=Xt;switch(l.tag){case 0:case 11:case 15:$i(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:bl(l.memoizedState.cache)}if(d=l.child,d!==null)d.return=l,Xt=d;else e:for(l=r;Xt!==null;){d=Xt;var m=d.sibling,v=d.return;if(GS(d),d===l){Xt=null;break e}if(m!==null){m.return=v,Xt=m;break e}Xt=v}}}var SB={getCacheForType:function(r){var a=an(jt),l=a.data.get(r);return l===void 0&&(l=r(),a.data.set(r,l)),l},cacheSignal:function(){return an(jt).controller.signal}},AB=typeof WeakMap=="function"?WeakMap:Map,ot=0,mt=null,Ke=null,qe=0,lt=0,Mn=null,qi=!1,ts=!1,fm=!1,bi=0,It=0,Zi=0,Ya=0,hm=0,Pn=0,ns=0,Ml=null,Cn=null,pm=!1,ed=0,t0=0,td=1/0,nd=null,Yi=null,Gt=0,Wi=null,rs=null,Ei=0,mm=0,ym=null,n0=null,Pl=0,gm=null;function Bn(){return(ot&2)!==0&&qe!==0?qe&-qe:M.T!==null?Am():vE()}function r0(){if(Pn===0)if((qe&536870912)===0||We){var r=uu;uu<<=1,(uu&3932160)===0&&(uu=262144),Pn=r}else Pn=536870912;return r=jn.current,r!==null&&(r.flags|=32),Pn}function Rn(r,a,l){(r===mt&&(lt===2||lt===9)||r.cancelPendingCommit!==null)&&(is(r,0),Xi(r,qe,Pn,!1)),al(r,l),((ot&2)===0||r!==mt)&&(r===mt&&((ot&2)===0&&(Ya|=l),It===4&&Xi(r,qe,Pn,!1)),Mr(r))}function i0(r,a,l){if((ot&6)!==0)throw Error(i(327));var d=!l&&(a&127)===0&&(a&r.expiredLanes)===0||il(r,a),m=d?CB(r,a):bm(r,a,!0),v=d;do{if(m===0){ts&&!d&&Xi(r,a,0,!1);break}else{if(l=r.current.alternate,v&&!wB(l)){m=bm(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=Ml;var z=D.current.memoizedState.isDehydrated;if(z&&(is(D,T).flags|=256),T=bm(D,T,!1),T!==2){if(fm&&!z){D.errorRecoveryDisabledLanes|=v,Ya|=v,m=4;break e}v=Cn,Cn=m,v!==null&&(Cn===null?Cn=v:Cn.push.apply(Cn,v))}m=T}if(v=!1,m!==2)continue}}if(m===1){is(r,0),Xi(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:Xi(d,a,Pn,!qi);break e;case 2:Cn=null;break;case 3:case 5:break;default:throw Error(i(329))}if((a&62914560)===a&&(m=ed+300-he(),10<m)){if(Xi(d,a,Pn,!qi),fu(d,0,!0)!==0)break e;Ei=a,d.timeoutHandle=j0(a0.bind(null,d,l,Cn,nd,pm,a,Pn,Ya,ns,qi,v,"Throttled",-0,0),m);break e}a0(d,l,Cn,nd,pm,a,Pn,Ya,ns,qi,v,null,-0,0)}}break}while(!0);Mr(r)}function a0(r,a,l,d,m,v,T,D,z,Z,ne,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:ai},XS(a,v,le);var be=(v&62914560)===v?ed-he():(v&4194048)===v?t0-he():0;if(be=l2(le,be),be!==null){Ei=v,r.cancelPendingCommit=be(h0.bind(null,r,a,v,l,d,m,T,D,z,ne,le,null,Q,ee)),Xi(r,v,T,!Z);return}}h0(r,a,v,l,d,m,T,D,z)}function wB(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(!Dn(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 Xi(r,a,l,d){a&=~hm,a&=~Ya,r.suspendedLanes|=a,r.pingedLanes&=~a,d&&(r.warmLanes|=a),d=r.expirationTimes;for(var m=a;0<m;){var v=31-dn(m),T=1<<v;d[v]=-1,m&=~T}l!==0&&mE(r,l,a)}function rd(){return(ot&6)===0?(Bl(0),!1):!0}function vm(){if(Ke!==null){if(lt===0)var r=Ke.return;else r=Ke,ci=Ua=null,Op(r),Zo=null,xl=0,r=Ke;for(;r!==null;)zS(r.alternate,r),r=r.return;Ke=null}}function is(r,a){var l=r.timeoutHandle;l!==-1&&(r.timeoutHandle=-1,GB(l)),l=r.cancelPendingCommit,l!==null&&(r.cancelPendingCommit=null,l()),Ei=0,vm(),mt=r,Ke=l=si(r.current,null),qe=a,lt=0,Mn=null,qi=!1,ts=il(r,a),fm=!1,ns=Pn=hm=Ya=Zi=It=0,Cn=Ml=null,pm=!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-dn(d),v=1<<m;a|=r[m],d&=~v}return bi=a,wu(),l}function o0(r,a){Be=null,M.H=_l,a===qo||a===Lu?(a=Sx(),lt=3):a===Sp?(a=Sx(),lt=4):lt=a===Wp?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Mn=a,Ke===null&&(It=1,$u(r,Jn(a,r.current)))}function s0(){var r=jn.current;return r===null?!0:(qe&4194048)===qe?rr===null:(qe&62914560)===qe||(qe&536870912)!==0?r===rr:!1}function l0(){var r=M.H;return M.H=_l,r===null?_l:r}function c0(){var r=M.A;return M.A=SB,r}function id(){It=4,qi||(qe&4194048)!==qe&&jn.current!==null||(ts=!0),(Zi&134217727)===0&&(Ya&134217727)===0||mt===null||Xi(mt,qe,Pn,!1)}function bm(r,a,l){var d=ot;ot|=2;var m=l0(),v=c0();(mt!==r||qe!==a)&&(nd=null,is(r,a)),a=!1;var T=It;e:do try{if(lt!==0&&Ke!==null){var D=Ke,z=Mn;switch(lt){case 8:vm(),T=6;break e;case 3:case 2:case 9:case 6:jn.current===null&&(a=!0);var Z=lt;if(lt=0,Mn=null,as(r,D,z,Z),l&&ts){T=0;break e}break;default:Z=lt,lt=0,Mn=null,as(r,D,z,Z)}}TB(),T=It;break}catch(ne){o0(r,ne)}while(!0);return a&&r.shellSuspendCounter++,ci=Ua=null,ot=d,M.H=m,M.A=v,Ke===null&&(mt=null,qe=0,wu()),T}function TB(){for(;Ke!==null;)u0(Ke)}function CB(r,a){var l=ot;ot|=2;var d=l0(),m=c0();mt!==r||qe!==a?(nd=null,td=he()+500,is(r,a)):ts=il(r,a);e:do try{if(lt!==0&&Ke!==null){a=Ke;var v=Mn;t:switch(lt){case 1:lt=0,Mn=null,as(r,a,v,1);break;case 2:case 9:if(Ex(v)){lt=0,Mn=null,d0(a);break}a=function(){lt!==2&&lt!==9||mt!==r||(lt=7),Mr(r)},v.then(a,a);break e;case 3:lt=7;break e;case 4:lt=5;break e;case 7:Ex(v)?(lt=0,Mn=null,d0(a)):(lt=0,Mn=null,as(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?W0(T):D.stateNode.complete){lt=0,Mn=null;var z=D.sibling;if(z!==null)Ke=z;else{var Z=D.return;Z!==null?(Ke=Z,ad(Z)):Ke=null}break t}}lt=0,Mn=null,as(r,a,v,5);break;case 6:lt=0,Mn=null,as(r,a,v,6);break;case 8:vm(),It=6;break e;default:throw Error(i(462))}}RB();break}catch(ne){o0(r,ne)}while(!0);return ci=Ua=null,M.H=d,M.A=m,ot=l,Ke!==null?0:(mt=null,qe=0,wu(),It)}function RB(){for(;Ke!==null&&!ie();)u0(Ke)}function u0(r){var a=OS(r.alternate,r,bi);r.memoizedProps=r.pendingProps,a===null?ad(r):Ke=a}function d0(r){var a=r,l=a.alternate;switch(a.tag){case 15:case 0:a=IS(l,a,a.pendingProps,a.type,void 0,qe);break;case 11:a=IS(l,a,a.pendingProps,a.type.render,a.ref,qe);break;case 5:Op(a);default:zS(l,a),a=Ke=cx(a,bi),a=OS(l,a,bi)}r.memoizedProps=r.pendingProps,a===null?ad(r):Ke=a}function as(r,a,l,d){ci=Ua=null,Op(a),Zo=null,xl=0;var m=a.return;try{if(mB(r,m,a,l,qe)){It=1,$u(r,Jn(l,r.current)),Ke=null;return}}catch(v){if(m!==null)throw Ke=m,v;It=1,$u(r,Jn(l,r.current)),Ke=null;return}a.flags&32768?(We||d===1?r=!0:ts||(qe&536870912)!==0?r=!1:(qi=r=!0,(d===2||d===9||d===3||d===6)&&(d=jn.current,d!==null&&d.tag===13&&(d.flags|=16384))),f0(a,r)):ad(a)}function ad(r){var a=r;do{if((a.flags&32768)!==0){f0(a,qi);return}r=a.return;var l=vB(a.alternate,a,bi);if(l!==null){Ke=l;return}if(a=a.sibling,a!==null){Ke=a;return}Ke=a=r}while(a!==null);It===0&&(It=5)}function f0(r,a){do{var l=bB(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);It=6,Ke=null}function h0(r,a,l,d,m,v,T,D,z){r.cancelPendingCommit=null;do od();while(Gt!==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|=sp,oP(r,l,v,T,D,z),r===mt&&(Ke=mt=null,qe=0),rs=a,Wi=r,Ei=l,mm=v,ym=m,n0=d,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,kB(at,function(){return v0(),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{EB(r,a,l)}finally{ot=T,Y.p=m,M.T=d}}Gt=1,p0(),m0(),y0()}}function p0(){if(Gt===1){Gt=0;var r=Wi,a=rs,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{ZS(a,r);var v=km,T=ex(r.containerInfo),D=v.focusedElem,z=v.selectionRange;if(T!==D&&D&&D.ownerDocument&&JE(D.ownerDocument.documentElement,D)){if(z!==null&&np(D)){var Z=z.start,ne=z.end;if(ne===void 0&&(ne=Z),"selectionStart"in D)D.selectionStart=Z,D.selectionEnd=Math.min(ne,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),pt=z.end===void 0?ke:Math.min(z.end,be);!ee.extend&&ke>pt&&(T=pt,pt=ke,ke=T);var G=QE(D,ke),U=QE(D,pt);if(G&&U&&(ee.rangeCount!==1||ee.anchorNode!==G.node||ee.anchorOffset!==G.offset||ee.focusNode!==U.node||ee.focusOffset!==U.offset)){var q=le.createRange();q.setStart(G.node,G.offset),ee.removeAllRanges(),ke>pt?(ee.addRange(q),ee.extend(U.node,U.offset)):(q.setEnd(U.node,U.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}}vd=!!Nm,km=Nm=null}finally{ot=m,Y.p=d,M.T=l}}r.current=a,Gt=2}}function m0(){if(Gt===2){Gt=0;var r=Wi,a=rs,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{HS(r,a.alternate,a)}finally{ot=m,Y.p=d,M.T=l}}Gt=3}}function y0(){if(Gt===4||Gt===3){Gt=0,ve();var r=Wi,a=rs,l=Ei,d=n0;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?Gt=5:(Gt=0,rs=Wi=null,g0(r,r.pendingLanes));var m=r.pendingLanes;if(m===0&&(Yi=null),Mh(l),a=a.stateNode,tn&&typeof tn.onCommitFiberRoot=="function")try{tn.onCommitFiberRoot(ri,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}}(Ei&3)!==0&&od(),Mr(r),m=r.pendingLanes,(l&261930)!==0&&(m&42)!==0?r===gm?Pl++:(Pl=0,gm=r):Pl=0,Bl(0)}}function g0(r,a){(r.pooledCacheLanes&=a)===0&&(a=r.pooledCache,a!=null&&(r.pooledCache=null,bl(a)))}function od(){return p0(),m0(),y0(),v0()}function v0(){if(Gt!==5)return!1;var r=Wi,a=mm;mm=0;var l=Mh(Ei),d=M.T,m=Y.p;try{Y.p=32>l?32:l,M.T=null,l=ym,ym=null;var v=Wi,T=Ei;if(Gt=0,rs=Wi=null,Ei=0,(ot&6)!==0)throw Error(i(331));var D=ot;if(ot|=4,JS(v.current),WS(v,v.current,T,l),ot=D,Bl(0,!1),tn&&typeof tn.onPostCommitFiberRoot=="function")try{tn.onPostCommitFiberRoot(ri,v)}catch{}return!0}finally{Y.p=m,M.T=d,g0(r,a)}}function b0(r,a,l){a=Jn(l,a),a=Yp(r.stateNode,a,2),r=Hi(r,a,2),r!==null&&(al(r,2),Mr(r))}function ct(r,a,l){if(r.tag===3)b0(r,r,l);else for(;a!==null;){if(a.tag===3){b0(a,r,l);break}else if(a.tag===1){var d=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof d.componentDidCatch=="function"&&(Yi===null||!Yi.has(d))){r=Jn(l,r),l=ES(2),d=Hi(a,l,2),d!==null&&(xS(l,d,a,r),al(d,2),Mr(d));break}}a=a.return}}function Em(r,a,l){var d=r.pingCache;if(d===null){d=r.pingCache=new AB;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)||(fm=!0,m.add(l),r=IB.bind(null,r,a,l),a.then(r,r))}function IB(r,a,l){var d=r.pingCache;d!==null&&d.delete(a),r.pingedLanes|=r.suspendedLanes&l,r.warmLanes&=~l,mt===r&&(qe&l)===l&&(It===4||It===3&&(qe&62914560)===qe&&300>he()-ed?(ot&2)===0&&is(r,0):hm|=l,ns===qe&&(ns=0)),Mr(r)}function E0(r,a){a===0&&(a=pE()),r=Ma(r,a),r!==null&&(al(r,a),Mr(r))}function _B(r){var a=r.memoizedState,l=0;a!==null&&(l=a.retryLane),E0(r,l)}function NB(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),E0(r,l)}function kB(r,a){return B(r,a)}var sd=null,os=null,xm=!1,ld=!1,Sm=!1,Qi=0;function Mr(r){r!==os&&r.next===null&&(os===null?sd=os=r:os=os.next=r),ld=!0,xm||(xm=!0,DB())}function Bl(r,a){if(!Sm&&ld){Sm=!0;do for(var l=!1,d=sd;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-dn(42|r)+1)-1,v&=m&~(T&~D),v=v&201326741?v&201326741|1:v?v|2:0}v!==0&&(l=!0,w0(d,v))}else v=qe,v=fu(d,d===mt?v:0,d.cancelPendingCommit!==null||d.timeoutHandle!==-1),(v&3)===0||il(d,v)||(l=!0,w0(d,v));d=d.next}while(l);Sm=!1}}function LB(){x0()}function x0(){ld=xm=!1;var r=0;Qi!==0&&HB()&&(r=Qi);for(var a=he(),l=null,d=sd;d!==null;){var m=d.next,v=S0(d,a);v===0?(d.next=null,l===null?sd=m:l.next=m,m===null&&(os=l)):(l=d,(r!==0||(v&3)!==0)&&(ld=!0)),d=m}Gt!==0&&Gt!==5||Bl(r),Qi!==0&&(Qi=0)}function S0(r,a){for(var l=r.suspendedLanes,d=r.pingedLanes,m=r.expirationTimes,v=r.pendingLanes&-62914561;0<v;){var T=31-dn(v),D=1<<T,z=m[T];z===-1?((D&l)===0||(D&d)!==0)&&(m[T]=aP(D,a)):z<=a&&(r.expiredLanes|=D),v&=~D}if(a=mt,l=qe,l=fu(r,r===a?l:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d=r.callbackNode,l===0||r===a&&(lt===2||lt===9)||r.cancelPendingCommit!==null)return d!==null&&d!==null&&W(d),r.callbackNode=null,r.callbackPriority=0;if((l&3)===0||il(r,l)){if(a=l&-l,a===r.callbackPriority)return a;switch(d!==null&&W(d),Mh(l)){case 2:case 8:l=tt;break;case 32:l=at;break;case 268435456:l=ka;break;default:l=at}return d=A0.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 A0(r,a){if(Gt!==0&&Gt!==5)return r.callbackNode=null,r.callbackPriority=0,null;var l=r.callbackNode;if(od()&&r.callbackNode!==l)return null;var d=qe;return d=fu(r,r===mt?d:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),d===0?null:(i0(r,d,a),S0(r,he()),r.callbackNode!=null&&r.callbackNode===l?A0.bind(null,r):null)}function w0(r,a){if(od())return null;i0(r,a,!0)}function DB(){KB(function(){(ot&6)!==0?B(Ie,LB):x0()})}function Am(){if(Qi===0){var r=Ko;r===0&&(r=cu,cu<<=1,(cu&261888)===0&&(cu=256)),Qi=r}return Qi}function T0(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:yu(""+r)}function C0(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 OB(r,a,l,d,m){if(a==="submit"&&l&&l.stateNode===m){var v=T0((m[xn]||null).action),T=d.submitter;T&&(a=(a=T[xn]||null)?T0(a.formAction):T.getAttribute("formAction"),a!==null&&(v=a,T=null));var D=new Eu("action","action",null,d,m);r.push({event:D,listeners:[{instance:null,listener:function(){if(d.defaultPrevented){if(Qi!==0){var z=T?C0(m,T):new FormData(m);Hp(l,{pending:!0,data:z,method:m.method,action:v},null,z)}}else typeof v=="function"&&(D.preventDefault(),z=T?C0(m,T):new FormData(m),Hp(l,{pending:!0,data:z,method:m.method,action:v},v,z))},currentTarget:m}]})}}for(var wm=0;wm<op.length;wm++){var Tm=op[wm],jB=Tm.toLowerCase(),zB=Tm[0].toUpperCase()+Tm.slice(1);pr(jB,"on"+zB)}pr(rx,"onAnimationEnd"),pr(ix,"onAnimationIteration"),pr(ax,"onAnimationStart"),pr("dblclick","onDoubleClick"),pr("focusin","onFocus"),pr("focusout","onBlur"),pr(QP,"onTransitionRun"),pr(JP,"onTransitionStart"),pr(eB,"onTransitionCancel"),pr(ox,"onTransitionEnd"),ko("onMouseEnter",["mouseout","mouseover"]),ko("onMouseLeave",["mouseout","mouseover"]),ko("onPointerEnter",["pointerout","pointerover"]),ko("onPointerLeave",["pointerout","pointerover"]),Da("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Da("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Da("onBeforeInput",["compositionend","keypress","textInput","paste"]),Da("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Da("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Da("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ul="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(" "),MB=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ul));function R0(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(ne){Au(ne)}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(ne){Au(ne)}m.currentTarget=null,v=z}}}}function $e(r,a){var l=a[Ph];l===void 0&&(l=a[Ph]=new Set);var d=r+"__bubble";l.has(d)||(I0(a,r,2,!1),l.add(d))}function Cm(r,a,l){var d=0;a&&(d|=4),I0(l,r,d,a)}var cd="_reactListening"+Math.random().toString(36).slice(2);function Rm(r){if(!r[cd]){r[cd]=!0,xE.forEach(function(l){l!=="selectionchange"&&(MB.has(l)||Cm(l,!1,r),Cm(l,!0,r))});var a=r.nodeType===9?r:r.ownerDocument;a===null||a[cd]||(a[cd]=!0,Cm("selectionchange",!1,a))}}function I0(r,a,l,d){switch(rA(a)){case 2:var m=d2;break;case 8:m=f2;break;default:m=Fm}l=m.bind(null,a,l,r),m=void 0,!qh||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 Im(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=Io(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}DE(function(){var Z=v,ne=Kh(l),le=[];e:{var Q=sx.get(r);if(Q!==void 0){var ee=Eu,be=r;switch(r){case"keypress":if(vu(l)===0)break e;case"keydown":case"keyup":ee=NP;break;case"focusin":be="focus",ee=Xh;break;case"focusout":be="blur",ee=Xh;break;case"beforeblur":case"afterblur":ee=Xh;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=zE;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=vP;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=DP;break;case rx:case ix:case ax:ee=xP;break;case ox:ee=jP;break;case"scroll":case"scrollend":ee=yP;break;case"wheel":ee=MP;break;case"copy":case"cut":case"paste":ee=AP;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=PE;break;case"toggle":case"beforetoggle":ee=BP}var ke=(a&4)!==0,pt=!ke&&(r==="scroll"||r==="scrollend"),G=ke?Q!==null?Q+"Capture":null:Q;ke=[];for(var U=Z,q;U!==null;){var se=U;if(q=se.stateNode,se=se.tag,se!==5&&se!==26&&se!==27||q===null||G===null||(se=ll(U,G),se!=null&&ke.push(Vl(U,se,q))),pt)break;U=U.return}0<ke.length&&(Q=new ee(Q,be,null,l,ne),le.push({event:Q,listeners:ke}))}}if((a&7)===0){e:{if(Q=r==="mouseover"||r==="pointerover",ee=r==="mouseout"||r==="pointerout",Q&&l!==Gh&&(be=l.relatedTarget||l.fromElement)&&(Io(be)||be[Ro]))break e;if((ee||Q)&&(Q=ne.window===ne?ne:(Q=ne.ownerDocument)?Q.defaultView||Q.parentWindow:window,ee?(be=l.relatedTarget||l.toElement,ee=Z,be=be?Io(be):null,be!==null&&(pt=s(be),ke=be.tag,be!==pt||ke!==5&&ke!==27&&ke!==6)&&(be=null)):(ee=null,be=Z),ee!==be)){if(ke=zE,se="onMouseLeave",G="onMouseEnter",U="mouse",(r==="pointerout"||r==="pointerover")&&(ke=PE,se="onPointerLeave",G="onPointerEnter",U="pointer"),pt=ee==null?Q:sl(ee),q=be==null?Q:sl(be),Q=new ke(se,U+"leave",ee,l,ne),Q.target=pt,Q.relatedTarget=q,se=null,Io(ne)===Z&&(ke=new ke(G,U+"enter",be,l,ne),ke.target=q,ke.relatedTarget=pt,se=ke),pt=se,ee&&be)t:{for(ke=PB,G=ee,U=be,q=0,se=G;se;se=ke(se))q++;se=0;for(var _e=U;_e;_e=ke(_e))se++;for(;0<q-se;)G=ke(G),q--;for(;0<se-q;)U=ke(U),se--;for(;q--;){if(G===U||U!==null&&G===U.alternate){ke=G;break t}G=ke(G),U=ke(U)}ke=null}else ke=null;ee!==null&&_0(le,Q,ee,ke,!1),be!==null&&pt!==null&&_0(le,pt,be,ke,!0)}}e:{if(Q=Z?sl(Z):window,ee=Q.nodeName&&Q.nodeName.toLowerCase(),ee==="select"||ee==="input"&&Q.type==="file")var nt=$E;else if(GE(Q))if(qE)nt=YP;else{nt=qP;var we=$P}else ee=Q.nodeName,!ee||ee.toLowerCase()!=="input"||Q.type!=="checkbox"&&Q.type!=="radio"?Z&&Hh(Z.elementType)&&(nt=$E):nt=ZP;if(nt&&(nt=nt(r,Z))){KE(le,nt,l,ne);break e}we&&we(r,Q,Z),r==="focusout"&&Z&&Q.type==="number"&&Z.memoizedProps.value!=null&&Fh(Q,"number",Q.value)}switch(we=Z?sl(Z):window,r){case"focusin":(GE(we)||we.contentEditable==="true")&&(Mo=we,rp=Z,yl=null);break;case"focusout":yl=rp=Mo=null;break;case"mousedown":ip=!0;break;case"contextmenu":case"mouseup":case"dragend":ip=!1,tx(le,l,ne);break;case"selectionchange":if(XP)break;case"keydown":case"keyup":tx(le,l,ne)}var Ue;if(Jh)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 zo?FE(r,l)&&(Ze="onCompositionEnd"):r==="keydown"&&l.keyCode===229&&(Ze="onCompositionStart");Ze&&(BE&&l.locale!=="ko"&&(zo||Ze!=="onCompositionStart"?Ze==="onCompositionEnd"&&zo&&(Ue=OE()):(zi=ne,Zh="value"in zi?zi.value:zi.textContent,zo=!0)),we=ud(Z,Ze),0<we.length&&(Ze=new ME(Ze,r,null,l,ne),le.push({event:Ze,listeners:we}),Ue?Ze.data=Ue:(Ue=HE(l),Ue!==null&&(Ze.data=Ue)))),(Ue=VP?FP(r,l):HP(r,l))&&(Ze=ud(Z,"onBeforeInput"),0<Ze.length&&(we=new ME("onBeforeInput","beforeinput",null,l,ne),le.push({event:we,listeners:Ze}),we.data=Ue)),OB(le,r,Z,l,ne)}R0(le,a)})}function Vl(r,a,l){return{instance:r,listener:a,currentTarget:l}}function ud(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=ll(r,l),m!=null&&d.unshift(Vl(r,m,v)),m=ll(r,a),m!=null&&d.push(Vl(r,m,v))),r.tag===3)return d;r=r.return}return[]}function PB(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function _0(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=ll(l,v),Z!=null&&T.unshift(Vl(l,Z,z))):m||(Z=ll(l,v),Z!=null&&T.push(Vl(l,Z,z)))),l=l.return}T.length!==0&&r.push({event:a,listeners:T})}var BB=/\r\n?/g,UB=/\u0000|\uFFFD/g;function N0(r){return(typeof r=="string"?r:""+r).replace(BB,`
49
- `).replace(UB,"")}function k0(r,a){return a=N0(a),N0(r)===a}function ht(r,a,l,d,m,v){switch(l){case"children":typeof d=="string"?a==="body"||a==="textarea"&&d===""||Do(r,d):(typeof d=="number"||typeof d=="bigint")&&a!=="body"&&Do(r,""+d);break;case"className":pu(r,"class",d);break;case"tabIndex":pu(r,"tabindex",d);break;case"dir":case"role":case"viewBox":case"width":case"height":pu(r,l,d);break;case"style":kE(r,d,v);break;case"data":if(a!=="object"){pu(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=yu(""+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"&&ht(r,a,"name",m.name,m,null),ht(r,a,"formEncType",m.formEncType,m,null),ht(r,a,"formMethod",m.formMethod,m,null),ht(r,a,"formTarget",m.formTarget,m,null)):(ht(r,a,"encType",m.encType,m,null),ht(r,a,"method",m.method,m,null),ht(r,a,"target",m.target,m,null)));if(d==null||typeof d=="symbol"||typeof d=="boolean"){r.removeAttribute(l);break}d=yu(""+d),r.setAttribute(l,d);break;case"onClick":d!=null&&(r.onclick=ai);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=yu(""+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),hu(r,"popover",d);break;case"xlinkActuate":ii(r,"http://www.w3.org/1999/xlink","xlink:actuate",d);break;case"xlinkArcrole":ii(r,"http://www.w3.org/1999/xlink","xlink:arcrole",d);break;case"xlinkRole":ii(r,"http://www.w3.org/1999/xlink","xlink:role",d);break;case"xlinkShow":ii(r,"http://www.w3.org/1999/xlink","xlink:show",d);break;case"xlinkTitle":ii(r,"http://www.w3.org/1999/xlink","xlink:title",d);break;case"xlinkType":ii(r,"http://www.w3.org/1999/xlink","xlink:type",d);break;case"xmlBase":ii(r,"http://www.w3.org/XML/1998/namespace","xml:base",d);break;case"xmlLang":ii(r,"http://www.w3.org/XML/1998/namespace","xml:lang",d);break;case"xmlSpace":ii(r,"http://www.w3.org/XML/1998/namespace","xml:space",d);break;case"is":hu(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=pP.get(l)||l,hu(r,l,d))}}function _m(r,a,l,d,m,v){switch(l){case"style":kE(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"?Do(r,d):(typeof d=="number"||typeof d=="bigint")&&Do(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=ai);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!SE.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[xn]||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,""):hu(r,l,d)}}}function sn(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:ht(r,a,v,T,l,null)}}m&&ht(r,a,"srcSet",l.srcSet,l,null),d&&ht(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 ne=l[d];if(ne!=null)switch(d){case"name":m=ne;break;case"type":T=ne;break;case"checked":z=ne;break;case"defaultChecked":Z=ne;break;case"value":v=ne;break;case"defaultValue":D=ne;break;case"children":case"dangerouslySetInnerHTML":if(ne!=null)throw Error(i(137,a));break;default:ht(r,a,d,ne,l,null)}}RE(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:ht(r,a,m,D,l,null)}a=v,l=T,r.multiple=!!d,a!=null?Lo(r,!!d,a,!1):l!=null&&Lo(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:ht(r,a,T,D,l,null)}_E(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:ht(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<Ul.length;d++)$e(Ul[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:ht(r,a,Z,d,l,null)}return;default:if(Hh(a)){for(ne in l)l.hasOwnProperty(ne)&&(d=l[ne],d!==void 0&&_m(r,a,ne,d,l,void 0));return}}for(D in l)l.hasOwnProperty(D)&&(d=l[D],d!=null&&ht(r,a,D,d,l,null))}function VB(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,ne=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)||ht(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":ne=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&&ht(r,a,Q,ee,d,le)}}Vh(r,T,D,z,Z,ne,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)||ht(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&&ht(r,a,m,v,d,z)}a=D,l=T,d=ee,Q!=null?Lo(r,!!l,Q,!1):!!d!=!!l&&(a!=null?Lo(r,!!l,a,!0):Lo(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:ht(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&&ht(r,a,T,m,d,v)}IE(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:ht(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:ht(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)&&ht(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:ht(r,a,Z,Q,d,ee)}return;default:if(Hh(a)){for(var pt in l)Q=l[pt],l.hasOwnProperty(pt)&&Q!==void 0&&!d.hasOwnProperty(pt)&&_m(r,a,pt,void 0,d,Q);for(ne in d)Q=d[ne],ee=l[ne],!d.hasOwnProperty(ne)||Q===ee||Q===void 0&&ee===void 0||_m(r,a,ne,Q,d,ee);return}}for(var G in l)Q=l[G],l.hasOwnProperty(G)&&Q!=null&&!d.hasOwnProperty(G)&&ht(r,a,G,null,d,Q);for(le in d)Q=d[le],ee=l[le],!d.hasOwnProperty(le)||Q===ee||Q==null&&ee==null||ht(r,a,le,Q,d,ee)}function L0(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function FB(){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&&L0(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 ne=z.transferSize,le=z.initiatorType;ne&&L0(le)&&(z=z.responseEnd,T+=ne*(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 Nm=null,km=null;function dd(r){return r.nodeType===9?r:r.ownerDocument}function D0(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 O0(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 Lm(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 Dm=null;function HB(){var r=window.event;return r&&r.type==="popstate"?r===Dm?!1:(Dm=r,!0):(Dm=null,!1)}var j0=typeof setTimeout=="function"?setTimeout:void 0,GB=typeof clearTimeout=="function"?clearTimeout:void 0,z0=typeof Promise=="function"?Promise:void 0,KB=typeof queueMicrotask=="function"?queueMicrotask:typeof z0<"u"?function(r){return z0.resolve(null).then(r).catch($B)}:j0;function $B(r){setTimeout(function(){throw r})}function Ji(r){return r==="head"}function M0(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),us(a);return}d--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")d++;else if(l==="html")Fl(r.ownerDocument.documentElement);else if(l==="head"){l=r.ownerDocument.head,Fl(l);for(var v=l.firstChild;v;){var T=v.nextSibling,D=v.nodeName;v[ol]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&v.rel.toLowerCase()==="stylesheet"||l.removeChild(v),v=T}}else l==="body"&&Fl(r.ownerDocument.body);l=m}while(l);us(a)}function P0(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 Om(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":Om(l),Bh(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}r.removeChild(l)}}function qB(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[ol])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=ir(r.nextSibling),r===null)break}return null}function ZB(r,a,l){if(a==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!l||(r=ir(r.nextSibling),r===null))return null;return r}function B0(r,a){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!a||(r=ir(r.nextSibling),r===null))return null;return r}function jm(r){return r.data==="$?"||r.data==="$~"}function zm(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function YB(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 ir(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 Mm=null;function U0(r){r=r.nextSibling;for(var a=0;r;){if(r.nodeType===8){var l=r.data;if(l==="/$"||l==="/&"){if(a===0)return ir(r.nextSibling);a--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||a++}r=r.nextSibling}return null}function V0(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 F0(r,a,l){switch(a=dd(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 Fl(r){for(var a=r.attributes;a.length;)r.removeAttributeNode(a[0]);Bh(r)}var ar=new Map,H0=new Set;function fd(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var xi=Y.d;Y.d={f:WB,r:XB,D:QB,C:JB,L:e2,m:t2,X:r2,S:n2,M:i2};function WB(){var r=xi.f(),a=rd();return r||a}function XB(r){var a=_o(r);a!==null&&a.tag===5&&a.type==="form"?oS(a):xi.r(r)}var ss=typeof document>"u"?null:document;function G0(r,a,l){var d=ss;if(d&&typeof a=="string"&&a){var m=Xn(a);m='link[rel="'+r+'"][href="'+m+'"]',typeof l=="string"&&(m+='[crossorigin="'+l+'"]'),H0.has(m)||(H0.add(m),r={rel:r,crossOrigin:l,href:a},d.querySelector(m)===null&&(a=d.createElement("link"),sn(a,"link",r),Wt(a),d.head.appendChild(a)))}}function QB(r){xi.D(r),G0("dns-prefetch",r,null)}function JB(r,a){xi.C(r,a),G0("preconnect",r,a)}function e2(r,a,l){xi.L(r,a,l);var d=ss;if(d&&r&&a){var m='link[rel="preload"][as="'+Xn(a)+'"]';a==="image"&&l&&l.imageSrcSet?(m+='[imagesrcset="'+Xn(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(m+='[imagesizes="'+Xn(l.imageSizes)+'"]')):m+='[href="'+Xn(r)+'"]';var v=m;switch(a){case"style":v=ls(r);break;case"script":v=cs(r)}ar.has(v)||(r=g({rel:"preload",href:a==="image"&&l&&l.imageSrcSet?void 0:r,as:a},l),ar.set(v,r),d.querySelector(m)!==null||a==="style"&&d.querySelector(Hl(v))||a==="script"&&d.querySelector(Gl(v))||(a=d.createElement("link"),sn(a,"link",r),Wt(a),d.head.appendChild(a)))}}function t2(r,a){xi.m(r,a);var l=ss;if(l&&r){var d=a&&typeof a.as=="string"?a.as:"script",m='link[rel="modulepreload"][as="'+Xn(d)+'"][href="'+Xn(r)+'"]',v=m;switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":v=cs(r)}if(!ar.has(v)&&(r=g({rel:"modulepreload",href:r},a),ar.set(v,r),l.querySelector(m)===null)){switch(d){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Gl(v)))return}d=l.createElement("link"),sn(d,"link",r),Wt(d),l.head.appendChild(d)}}}function n2(r,a,l){xi.S(r,a,l);var d=ss;if(d&&r){var m=No(d).hoistableStyles,v=ls(r);a=a||"default";var T=m.get(v);if(!T){var D={loading:0,preload:null};if(T=d.querySelector(Hl(v)))D.loading=5;else{r=g({rel:"stylesheet",href:r,"data-precedence":a},l),(l=ar.get(v))&&Pm(r,l);var z=T=d.createElement("link");Wt(z),sn(z,"link",r),z._p=new Promise(function(Z,ne){z.onload=Z,z.onerror=ne}),z.addEventListener("load",function(){D.loading|=1}),z.addEventListener("error",function(){D.loading|=2}),D.loading|=4,hd(T,a,d)}T={type:"stylesheet",instance:T,count:1,state:D},m.set(v,T)}}}function r2(r,a){xi.X(r,a);var l=ss;if(l&&r){var d=No(l).hoistableScripts,m=cs(r),v=d.get(m);v||(v=l.querySelector(Gl(m)),v||(r=g({src:r,async:!0},a),(a=ar.get(m))&&Bm(r,a),v=l.createElement("script"),Wt(v),sn(v,"link",r),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},d.set(m,v))}}function i2(r,a){xi.M(r,a);var l=ss;if(l&&r){var d=No(l).hoistableScripts,m=cs(r),v=d.get(m);v||(v=l.querySelector(Gl(m)),v||(r=g({src:r,async:!0,type:"module"},a),(a=ar.get(m))&&Bm(r,a),v=l.createElement("script"),Wt(v),sn(v,"link",r),l.head.appendChild(v)),v={type:"script",instance:v,count:1,state:null},d.set(m,v))}}function K0(r,a,l,d){var m=(m=ye.current)?fd(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=ls(l.href),l=No(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=ls(l.href);var v=No(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(Hl(r)))&&!v._p&&(T.instance=v,T.state.loading=5),ar.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},ar.set(r,l),v||a2(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=cs(l),l=No(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 ls(r){return'href="'+Xn(r)+'"'}function Hl(r){return'link[rel="stylesheet"]['+r+"]"}function $0(r){return g({},r,{"data-precedence":r.precedence,precedence:null})}function a2(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}),sn(a,"link",l),Wt(a),r.head.appendChild(a))}function cs(r){return'[src="'+Xn(r)+'"]'}function Gl(r){return"script[async]"+r}function q0(r,a,l){if(a.count++,a.instance===null)switch(a.type){case"style":var d=r.querySelector('style[data-href~="'+Xn(l.href)+'"]');if(d)return a.instance=d,Wt(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"),Wt(d),sn(d,"style",m),hd(d,l.precedence,r),a.instance=d;case"stylesheet":m=ls(l.href);var v=r.querySelector(Hl(m));if(v)return a.state.loading|=4,a.instance=v,Wt(v),v;d=$0(l),(m=ar.get(m))&&Pm(d,m),v=(r.ownerDocument||r).createElement("link"),Wt(v);var T=v;return T._p=new Promise(function(D,z){T.onload=D,T.onerror=z}),sn(v,"link",d),a.state.loading|=4,hd(v,l.precedence,r),a.instance=v;case"script":return v=cs(l.src),(m=r.querySelector(Gl(v)))?(a.instance=m,Wt(m),m):(d=l,(m=ar.get(v))&&(d=g({},l),Bm(d,m)),r=r.ownerDocument||r,m=r.createElement("script"),Wt(m),sn(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,hd(d,l.precedence,r));return a.instance}function hd(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 Pm(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.title==null&&(r.title=a.title)}function Bm(r,a){r.crossOrigin==null&&(r.crossOrigin=a.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=a.referrerPolicy),r.integrity==null&&(r.integrity=a.integrity)}var pd=null;function Z0(r,a,l){if(pd===null){var d=new Map,m=pd=new Map;m.set(l,d)}else m=pd,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[ol]||v[nn]||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 Y0(r,a,l){r=r.ownerDocument||r,r.head.insertBefore(l,a==="title"?r.querySelector("head > title"):null)}function o2(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 W0(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function s2(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=ls(d.href),v=a.querySelector(Hl(m));if(v){a=v._p,a!==null&&typeof a=="object"&&typeof a.then=="function"&&(r.count++,r=md.bind(r),a.then(r,r)),l.state.loading|=4,l.instance=v,Wt(v);return}v=a.ownerDocument||a,d=$0(d),(m=ar.get(m))&&Pm(d,m),v=v.createElement("link"),Wt(v);var T=v;T._p=new Promise(function(D,z){T.onload=D,T.onerror=z}),sn(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=md.bind(r),a.addEventListener("load",l),a.addEventListener("error",l))}}var Um=0;function l2(r,a){return r.stylesheets&&r.count===0&&gd(r,r.stylesheets),0<r.count||0<r.imgCount?function(l){var d=setTimeout(function(){if(r.stylesheets&&gd(r,r.stylesheets),r.unsuspend){var v=r.unsuspend;r.unsuspend=null,v()}},6e4+a);0<r.imgBytes&&Um===0&&(Um=62500*FB());var m=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&gd(r,r.stylesheets),r.unsuspend)){var v=r.unsuspend;r.unsuspend=null,v()}},(r.imgBytes>Um?50:800)+a);return r.unsuspend=l,function(){r.unsuspend=null,clearTimeout(d),clearTimeout(m)}}:null}function md(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)gd(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var yd=null;function gd(r,a){r.stylesheets=null,r.unsuspend!==null&&(r.count++,yd=new Map,a.forEach(c2,r),yd=null,md.call(r))}function c2(r,a){if(!(a.state.loading&4)){var l=yd.get(r);if(l)var d=l.get(null);else{l=new Map,yd.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=md.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 Kl={$$typeof:C,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function u2(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=jh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=jh(0),this.hiddenUpdates=jh(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 X0(r,a,l,d,m,v,T,D,z,Z,ne,le){return r=new u2(r,a,l,T,z,Z,ne,le,D),a=1,v===!0&&(a|=24),v=On(3,null,null,a),r.current=v,v.stateNode=r,a=bp(),a.refCount++,r.pooledCache=a,a.refCount++,v.memoizedState={element:d,isDehydrated:l,cache:a},Ap(v),r}function Q0(r){return r?(r=Uo,r):Uo}function J0(r,a,l,d,m,v){m=Q0(m),d.context===null?d.context=m:d.pendingContext=m,d=Fi(a),d.payload={element:l},v=v===void 0?null:v,v!==null&&(d.callback=v),l=Hi(r,d,a),l!==null&&(Rn(l,r,a),Al(l,r,a))}function eA(r,a){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var l=r.retryLane;r.retryLane=l!==0&&l<a?l:a}}function Vm(r,a){eA(r,a),(r=r.alternate)&&eA(r,a)}function tA(r){if(r.tag===13||r.tag===31){var a=Ma(r,67108864);a!==null&&Rn(a,r,67108864),Vm(r,67108864)}}function nA(r){if(r.tag===13||r.tag===31){var a=Bn();a=zh(a);var l=Ma(r,a);l!==null&&Rn(l,r,a),Vm(r,a)}}var vd=!0;function d2(r,a,l,d){var m=M.T;M.T=null;var v=Y.p;try{Y.p=2,Fm(r,a,l,d)}finally{Y.p=v,M.T=m}}function f2(r,a,l,d){var m=M.T;M.T=null;var v=Y.p;try{Y.p=8,Fm(r,a,l,d)}finally{Y.p=v,M.T=m}}function Fm(r,a,l,d){if(vd){var m=Hm(d);if(m===null)Im(r,a,d,bd,l),iA(r,d);else if(p2(m,r,a,l,d))d.stopPropagation();else if(iA(r,d),a&4&&-1<h2.indexOf(r)){for(;m!==null;){var v=_o(m);if(v!==null)switch(v.tag){case 3:if(v=v.stateNode,v.current.memoizedState.isDehydrated){var T=La(v.pendingLanes);if(T!==0){var D=v;for(D.pendingLanes|=2,D.entangledLanes|=2;T;){var z=1<<31-dn(T);D.entanglements[1]|=z,T&=~z}Mr(v),(ot&6)===0&&(td=he()+500,Bl(0))}}break;case 31:case 13:D=Ma(v,2),D!==null&&Rn(D,v,2),rd(),Vm(v,2)}if(v=Hm(d),v===null&&Im(r,a,d,bd,l),v===m)break;m=v}m!==null&&d.stopPropagation()}else Im(r,a,d,null,l)}}function Hm(r){return r=Kh(r),Gm(r)}var bd=null;function Gm(r){if(bd=null,r=Io(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 bd=r,null}function rA(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 En:return 32;case ka:return 268435456;default:return 32}default:return 32}}var Km=!1,ea=null,ta=null,na=null,$l=new Map,ql=new Map,ra=[],h2="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 iA(r,a){switch(r){case"focusin":case"focusout":ea=null;break;case"dragenter":case"dragleave":ta=null;break;case"mouseover":case"mouseout":na=null;break;case"pointerover":case"pointerout":$l.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":ql.delete(a.pointerId)}}function Zl(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=_o(a),a!==null&&tA(a)),r):(r.eventSystemFlags|=d,a=r.targetContainers,m!==null&&a.indexOf(m)===-1&&a.push(m),r)}function p2(r,a,l,d,m){switch(a){case"focusin":return ea=Zl(ea,r,a,l,d,m),!0;case"dragenter":return ta=Zl(ta,r,a,l,d,m),!0;case"mouseover":return na=Zl(na,r,a,l,d,m),!0;case"pointerover":var v=m.pointerId;return $l.set(v,Zl($l.get(v)||null,r,a,l,d,m)),!0;case"gotpointercapture":return v=m.pointerId,ql.set(v,Zl(ql.get(v)||null,r,a,l,d,m)),!0}return!1}function aA(r){var a=Io(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,bE(r.priority,function(){nA(l)});return}}else if(a===31){if(a=u(l),a!==null){r.blockedOn=a,bE(r.priority,function(){nA(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 Ed(r){if(r.blockedOn!==null)return!1;for(var a=r.targetContainers;0<a.length;){var l=Hm(r.nativeEvent);if(l===null){l=r.nativeEvent;var d=new l.constructor(l.type,l);Gh=d,l.target.dispatchEvent(d),Gh=null}else return a=_o(l),a!==null&&tA(a),r.blockedOn=l,!1;a.shift()}return!0}function oA(r,a,l){Ed(r)&&l.delete(a)}function m2(){Km=!1,ea!==null&&Ed(ea)&&(ea=null),ta!==null&&Ed(ta)&&(ta=null),na!==null&&Ed(na)&&(na=null),$l.forEach(oA),ql.forEach(oA)}function xd(r,a){r.blockedOn===a&&(r.blockedOn=null,Km||(Km=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,m2)))}var Sd=null;function sA(r){Sd!==r&&(Sd=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Sd===r&&(Sd=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(Gm(d||l)===null)continue;break}var v=_o(l);v!==null&&(r.splice(a,3),a-=3,Hp(v,{pending:!0,data:m,method:l.method,action:d},d,m))}}))}function us(r){function a(z){return xd(z,r)}ea!==null&&xd(ea,r),ta!==null&&xd(ta,r),na!==null&&xd(na,r),$l.forEach(a),ql.forEach(a);for(var l=0;l<ra.length;l++){var d=ra[l];d.blockedOn===r&&(d.blockedOn=null)}for(;0<ra.length&&(l=ra[0],l.blockedOn===null);)aA(l),l.blockedOn===null&&ra.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[xn]||null;if(typeof v=="function")T||sA(l);else if(T){var D=null;if(v&&v.hasAttribute("formAction")){if(m=v,T=v[xn]||null)D=T.formAction;else if(Gm(m)!==null)continue}else D=T.action;typeof D=="function"?l[d+1]=D:(l.splice(d,3),d-=3),sA(l)}}}function lA(){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 $m(r){this._internalRoot=r}Ad.prototype.render=$m.prototype.render=function(r){var a=this._internalRoot;if(a===null)throw Error(i(409));var l=a.current,d=Bn();J0(l,d,r,a,null,null)},Ad.prototype.unmount=$m.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var a=r.containerInfo;J0(r.current,2,null,r,null,null),rd(),a[Ro]=null}};function Ad(r){this._internalRoot=r}Ad.prototype.unstable_scheduleHydration=function(r){if(r){var a=vE();r={blockedOn:null,target:r,priority:a};for(var l=0;l<ra.length&&a!==0&&a<ra[l].priority;l++);ra.splice(l,0,r),l===0&&aA(r)}};var cA=t.version;if(cA!=="19.2.0")throw Error(i(527,cA,"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 y2={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wd.isDisabled&&wd.supportsFiber)try{ri=wd.inject(y2),tn=wd}catch{}}return Wl.createRoot=function(r,a){if(!o(r))throw Error(i(299));var l=!1,d="",m=yS,v=gS,T=vS;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=X0(r,1,!1,null,null,l,d,null,m,v,T,lA),r[Ro]=a.current,Rm(r),new $m(a)},Wl.hydrateRoot=function(r,a,l){if(!o(r))throw Error(i(299));var d=!1,m="",v=yS,T=gS,D=vS,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=X0(r,1,!0,a,l??null,d,m,z,v,T,D,lA),a.context=Q0(null),l=a.current,d=Bn(),d=zh(d),m=Fi(d),m.callback=null,Hi(l,m,d),l=d,a.current.lanes=l,al(a,l),Mr(a),r[Ro]=a.current,Rm(r),new Ad(a)},Wl.version="19.2.0",Wl}var bA;function C2(){if(bA)return Ym.exports;bA=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ym.exports=T2(),Ym.exports}var R2=C2();let EA=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 I2=Object.defineProperty,Eo=e=>{let t={};for(var n in e)I2(t,n,{get:e[n],enumerable:!0});return t},_2=Eo({CACHE:()=>O2,IMPORT_MODE:()=>k2,OPTIMIZE:()=>N2,OUTPUT_FORMAT:()=>D2,TRAVERSE_PATTERN:()=>L2});const N2=!1,k2="static",L2=["**/*.{js,ts,mjs,cjs,jsx,tsx,mjx,cjx,vue,svelte,svte}","!**/node_modules/**"],D2=["cjs","esm"],O2=!0;var j2=Eo({CACHE_DIR:()=>X2,CONFIG_DIR:()=>W2,CONTENT_DIR:()=>P2,DICTIONARIES_DIR:()=>U2,DYNAMIC_DICTIONARIES_DIR:()=>G2,EXCLUDED_PATHS:()=>M2,FETCH_DICTIONARIES_DIR:()=>K2,FILE_EXTENSIONS:()=>z2,I18NEXT_DICTIONARIES_DIR:()=>Z2,MAIN_DIR:()=>B2,MASKS_DIR:()=>V2,MODULE_AUGMENTATION_DIR:()=>q2,REACT_INTL_MESSAGES_DIR:()=>Y2,REMOTE_DICTIONARIES_DIR:()=>F2,TYPES_DIR:()=>$2,UNMERGED_DICTIONARIES_DIR:()=>H2,WATCH:()=>Q2});const z2=[".content.ts",".content.js",".content.cjs",".content.cjx",".content.mjs",".content.mjx",".content.json",".content.tsx",".content.jsx"],M2=["**/node_modules/**","**/dist/**","**/build/**","**/.intlayer/**","**/.next/**","**/.nuxt/**","**/.expo/**","**/.vercel/**","**/.turbo/**","**/.tanstack/**"],P2=["."],B2=".intlayer/main",U2=".intlayer/dictionary",V2=".intlayer/mask",F2=".intlayer/remote_dictionary",H2=".intlayer/unmerged_dictionary",G2=".intlayer/dynamic_dictionary",K2=".intlayer/fetch_dictionary",$2=".intlayer/types",q2=".intlayer/types",Z2="i18next_resources",Y2="intl_messages",W2=".intlayer/config",X2=".intlayer/cache",Q2=!0;var J2=Eo({APPLICATION_URL:()=>eU,BACKEND_URL:()=>iU,CMS_URL:()=>nU,DICTIONARY_PRIORITY_STRATEGY:()=>sU,EDITOR_URL:()=>tU,IS_ENABLED:()=>aU,LIVE_SYNC:()=>oU,LIVE_SYNC_PORT:()=>lU,PORT:()=>rU});const eU="",tU="http://localhost:8000",nU="https://intlayer.org",rU=8e3,iU="https://back.intlayer.org",aU=!0,oU=!0,sU="local_first",lU=4e3;var cU=Object.defineProperty,uU=e=>{let t={};for(var n in e)cU(t,n,{get:e[n],enumerable:!0});return t},ut=uU({AFRIKAANS:()=>ER,AFRIKAANS_SOUTH_AFRICA:()=>xR,ALBANIAN:()=>HN,ALBANIAN_ALBANIA:()=>GN,ALL_LOCALES:()=>dU,AMHARIC:()=>qk,AMHARIC_ETHIOPIA:()=>Zk,ARABIC:()=>SR,ARABIC_ALGERIA:()=>TR,ARABIC_BAHRAIN:()=>wR,ARABIC_CHAD:()=>RL,ARABIC_COMOROS:()=>IL,ARABIC_DJIBOUTI:()=>TL,ARABIC_EGYPT:()=>CR,ARABIC_IRAQ:()=>RR,ARABIC_JORDAN:()=>IR,ARABIC_KUWAIT:()=>_R,ARABIC_LEBANON:()=>NR,ARABIC_LIBYA:()=>kR,ARABIC_MAURITANIA:()=>SL,ARABIC_MOROCCO:()=>LR,ARABIC_OMAN:()=>DR,ARABIC_PALESTINE:()=>AL,ARABIC_QATAR:()=>OR,ARABIC_SAUDI_ARABIA:()=>jR,ARABIC_SOMALIA:()=>CL,ARABIC_SUDAN:()=>wL,ARABIC_SYRIA:()=>zR,ARABIC_TUNISIA:()=>MR,ARABIC_UNITED_ARAB_EMIRATES:()=>AR,ARABIC_YEMEN:()=>PR,ARMENIAN:()=>S_,ARMENIAN_ARMENIA:()=>A_,AZERI_LATIN:()=>BR,AZERI_LATIN_AZERBAIJAN:()=>UR,BASQUE:()=>ZI,BASQUE_SPAIN:()=>YI,BELARUSIAN:()=>VR,BELARUSIAN_BELARUS:()=>FR,BENGALI:()=>jk,BENGALI_BANGLADESH:()=>zk,BENGALI_INDIA:()=>Mk,BENGALI_MYANMAR:()=>Pk,BOSNIAN:()=>KR,BOSNIAN_BOSNIA_AND_HERZEGOVINA:()=>$R,BULGARIAN:()=>HR,BULGARIAN_BULGARIA:()=>GR,BURMESE:()=>Bk,BURMESE_MYANMAR:()=>Uk,CATALAN:()=>qR,CATALAN_SPAIN:()=>ZR,CHINESE:()=>Ck,CHINESE_HONG_KONG:()=>_k,CHINESE_MACAU:()=>Nk,CHINESE_SIMPLIFIED:()=>Rk,CHINESE_SIMPLIFIED_CHINA:()=>Ik,CHINESE_SINGAPORE:()=>kk,CHINESE_TAIWAN:()=>xL,CHINESE_TRADITIONAL:()=>Lk,CROATIAN:()=>g_,CROATIAN_BOSNIA_AND_HERZEGOVINA:()=>v_,CROATIAN_CROATIA:()=>b_,CZECH:()=>YR,CZECH_CZECH_REPUBLIC:()=>WR,DANISH:()=>JR,DANISH_DENMARK:()=>eI,DIVEHI:()=>sI,DIVEHI_MALDIVES:()=>lI,DUTCH:()=>uN,DUTCH_BELGIUM:()=>dN,DUTCH_NETHERLANDS:()=>fN,ENGLISH:()=>dI,ENGLISH_AUSTRALIA:()=>fI,ENGLISH_BELIZE:()=>hI,ENGLISH_BOTSWANA:()=>lL,ENGLISH_CANADA:()=>pI,ENGLISH_CARIBBEAN:()=>mI,ENGLISH_GHANA:()=>dL,ENGLISH_HONG_KONG:()=>iL,ENGLISH_INDIA:()=>nL,ENGLISH_IRELAND:()=>gI,ENGLISH_JAMAICA:()=>vI,ENGLISH_KENYA:()=>cL,ENGLISH_MALAYSIA:()=>sL,ENGLISH_NEW_ZEALAND:()=>bI,ENGLISH_NIGERIA:()=>aL,ENGLISH_PAKISTAN:()=>oL,ENGLISH_PHILIPPINES:()=>EI,ENGLISH_SINGAPORE:()=>rL,ENGLISH_SOUTH_AFRICA:()=>AI,ENGLISH_TANZANIA:()=>uL,ENGLISH_TRINIDAD_AND_TOBAGO:()=>xI,ENGLISH_UGANDA:()=>fL,ENGLISH_UNITED_KINGDOM:()=>yI,ENGLISH_UNITED_STATES:()=>SI,ENGLISH_ZIMBABWE:()=>wI,ESPERANTO:()=>TI,ESTONIAN:()=>$I,ESTONIAN_ESTONIA:()=>qI,FAROESE:()=>e_,FAROESE_FAROE_ISLANDS:()=>t_,FARSI:()=>WI,FARSI_IRAN:()=>XI,FINNISH:()=>QI,FINNISH_FINLAND:()=>JI,FRENCH:()=>n_,FRENCH_BELGIUM:()=>r_,FRENCH_CANADA:()=>i_,FRENCH_FRANCE:()=>o_,FRENCH_LUXEMBOURG:()=>s_,FRENCH_PRINCIPALITY_OF_MONACO:()=>l_,FRENCH_SWITZERLAND:()=>a_,FYRO_MACEDONIAN:()=>X_,FYRO_MACEDONIAN_MACEDONIA:()=>Q_,GALICIAN:()=>c_,GALICIAN_SPAIN:()=>u_,GEORGIAN:()=>D_,GEORGIAN_GEORGIA:()=>O_,GERMAN:()=>tI,GERMAN_AUSTRIA:()=>nI,GERMAN_GERMANY:()=>iI,GERMAN_LIECHTENSTEIN:()=>aI,GERMAN_LUXEMBOURG:()=>oI,GERMAN_SWITZERLAND:()=>rI,GREEK:()=>cI,GREEK_GREECE:()=>uI,GUJARATI:()=>d_,GUJARATI_INDIA:()=>f_,HEBREW:()=>h_,HEBREW_ISRAEL:()=>p_,HINDI:()=>m_,HINDI_INDIA:()=>y_,HUNGARIAN:()=>E_,HUNGARIAN_HUNGARY:()=>x_,ICELANDIC:()=>C_,ICELANDIC_ICELAND:()=>R_,INDONESIAN:()=>w_,INDONESIAN_INDONESIA:()=>T_,ITALIAN:()=>I_,ITALIAN_ITALY:()=>N_,ITALIAN_SWITZERLAND:()=>__,JAPANESE:()=>k_,JAPANESE_JAPAN:()=>L_,KANNADA:()=>M_,KANNADA_INDIA:()=>P_,KAZAKH:()=>j_,KAZAKH_KAZAKHSTAN:()=>z_,KHMER:()=>Vk,KHMER_CAMBODIA:()=>Fk,KONKANI:()=>V_,KONKANI_INDIA:()=>F_,KOREAN:()=>B_,KOREAN_KOREA:()=>U_,KYRGYZ:()=>H_,KYRGYZ_KYRGYZSTAN:()=>G_,LAO:()=>Hk,LAO_LAOS:()=>Gk,LATVIAN:()=>q_,LATVIAN_LATVIA:()=>Z_,LITHUANIAN:()=>K_,LITHUANIAN_LITHUANIA:()=>$_,MALAY:()=>rN,MALAY_BRUNEI_DARUSSALAM:()=>iN,MALAY_MALAYSIA:()=>aN,MALTESE:()=>oN,MALTESE_MALTA:()=>sN,MAORI:()=>Y_,MAORI_NEW_ZEALAND:()=>W_,MARATHI:()=>tN,MARATHI_INDIA:()=>nN,MONGOLIAN:()=>J_,MONGOLIAN_MONGOLIA:()=>eN,NEPALI:()=>Yk,NEPALI_NEPAL:()=>Wk,NORTHERN_SOTHO:()=>pN,NORTHERN_SOTHO_SOUTH_AFRICA:()=>mN,NORWEGIAN_BOKMAL:()=>lN,NORWEGIAN_BOKMAL_NORWAY:()=>cN,NORWEGIAN_NYNORSK_NORWAY:()=>hN,PASHTO:()=>EN,PASHTO_AFGHANISTAN:()=>xN,POLISH:()=>vN,POLISH_POLAND:()=>bN,PORTUGUESE:()=>SN,PORTUGUESE_BRAZIL:()=>AN,PORTUGUESE_CAPE_VERDE:()=>vL,PORTUGUESE_GUINEA_BISSAU:()=>mL,PORTUGUESE_MACAU:()=>EL,PORTUGUESE_MOZAMBIQUE:()=>yL,PORTUGUESE_PORTUGAL:()=>wN,PORTUGUESE_SAO_TOME_AND_PRINCIPE:()=>gL,PORTUGUESE_TIMOR_LESTE:()=>bL,PUNJABI:()=>yN,PUNJABI_INDIA:()=>gN,QUECHUA:()=>TN,QUECHUA_BOLIVIA:()=>CN,QUECHUA_ECUADOR:()=>RN,QUECHUA_PERU:()=>IN,ROMANIAN:()=>_N,ROMANIAN_ROMANIA:()=>NN,RUSSIAN:()=>kN,RUSSIAN_RUSSIA:()=>LN,SAMI_NORTHERN:()=>jN,SAMI_NORTHERN_FINLAND:()=>zN,SAMI_NORTHERN_NORWAY:()=>MN,SAMI_NORTHERN_SWEDEN:()=>PN,SANSKRIT:()=>DN,SANSKRIT_INDIA:()=>ON,SERBIAN_CYRILLIC:()=>Jk,SERBIAN_CYRILLIC_BOSNIA_AND_HERZEGOVINA:()=>tL,SERBIAN_CYRILLIC_SERBIA:()=>eL,SERBIAN_LATIN:()=>KN,SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:()=>$N,SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:()=>qN,SINHALA:()=>Xk,SINHALA_SRI_LANKA:()=>Qk,SLOVAK:()=>BN,SLOVAK_SLOVAKIA:()=>UN,SLOVENIAN:()=>VN,SLOVENIAN_SLOVENIA:()=>FN,SPANISH:()=>CI,SPANISH_ARGENTINA:()=>RI,SPANISH_BOLIVIA:()=>II,SPANISH_CHILE:()=>_I,SPANISH_COLOMBIA:()=>NI,SPANISH_COSTA_RICA:()=>kI,SPANISH_CUBA:()=>hL,SPANISH_DOMINICAN_REPUBLIC:()=>LI,SPANISH_ECUADOR:()=>DI,SPANISH_EL_SALVADOR:()=>HI,SPANISH_GUATEMALA:()=>jI,SPANISH_HONDURAS:()=>zI,SPANISH_MEXICO:()=>MI,SPANISH_NICARAGUA:()=>PI,SPANISH_PANAMA:()=>BI,SPANISH_PARAGUAY:()=>FI,SPANISH_PERU:()=>UI,SPANISH_PUERTO_RICO:()=>VI,SPANISH_SPAIN:()=>OI,SPANISH_UNITED_STATES:()=>pL,SPANISH_URUGUAY:()=>GI,SPANISH_VENEZUELA:()=>KI,SWAHILI:()=>XN,SWAHILI_KENYA:()=>QN,SWEDISH:()=>ZN,SWEDISH_FINLAND:()=>YN,SWEDISH_SWEDEN:()=>WN,SYRIAC:()=>JN,SYRIAC_SYRIA:()=>ek,TAGALOG:()=>sk,TAGALOG_PHILIPPINES:()=>lk,TAMIL:()=>tk,TAMIL_INDIA:()=>nk,TATAR:()=>hk,TATAR_RUSSIA:()=>pk,TELUGU:()=>rk,TELUGU_INDIA:()=>ik,THAI:()=>ak,THAI_THAILAND:()=>ok,TSOGA:()=>mk,TSWANA:()=>ck,TSWANA_SOUTH_AFRICA:()=>uk,TURKISH:()=>dk,TURKISH_TURKEY:()=>fk,UKRAINIAN:()=>yk,UKRAINIAN_UKRAINE:()=>gk,URDU:()=>vk,URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:()=>bk,UZBEK_LATIN:()=>Ek,UZBEK_LATIN_UZBEKISTAN:()=>xk,VIETNAMESE:()=>Sk,VIETNAMESE_VIET_NAM:()=>Ak,WELSH:()=>XR,WELSH_UNITED_KINGDOM:()=>QR,XHOSA:()=>wk,XHOSA_SOUTH_AFRICA:()=>Tk,YORUBA:()=>Kk,YORUBA_NIGERIA:()=>$k,ZULU:()=>Dk,ZULU_SOUTH_AFRICA:()=>Ok});const ER="af",xR="af-ZA",SR="ar",AR="ar-AE",wR="ar-BH",TR="ar-DZ",CR="ar-EG",RR="ar-IQ",IR="ar-JO",_R="ar-KW",NR="ar-LB",kR="ar-LY",LR="ar-MA",DR="ar-OM",OR="ar-QA",jR="ar-SA",zR="ar-SY",MR="ar-TN",PR="ar-YE",BR="az",UR="az-AZ",VR="be",FR="be-BY",HR="bg",GR="bg-BG",KR="bs",$R="bs-BA",qR="ca",ZR="ca-ES",YR="cs",WR="cs-CZ",XR="cy",QR="cy-GB",JR="da",eI="da-DK",tI="de",nI="de-AT",rI="de-CH",iI="de-DE",aI="de-LI",oI="de-LU",sI="dv",lI="dv-MV",cI="el",uI="el-GR",dI="en",fI="en-AU",hI="en-BZ",pI="en-CA",mI="en-CB",yI="en-GB",gI="en-IE",vI="en-JM",bI="en-NZ",EI="en-PH",xI="en-TT",SI="en-US",AI="en-ZA",wI="en-ZW",TI="eo",CI="es",RI="es-AR",II="es-BO",_I="es-CL",NI="es-CO",kI="es-CR",LI="es-DO",DI="es-EC",OI="es-ES",jI="es-GT",zI="es-HN",MI="es-MX",PI="es-NI",BI="es-PA",UI="es-PE",VI="es-PR",FI="es-PY",HI="es-SV",GI="es-UY",KI="es-VE",$I="et",qI="et-EE",ZI="eu",YI="eu-ES",WI="fa",XI="fa-IR",QI="fi",JI="fi-FI",e_="fo",t_="fo-FO",n_="fr",r_="fr-BE",i_="fr-CA",a_="fr-CH",o_="fr-FR",s_="fr-LU",l_="fr-MC",c_="gl",u_="gl-ES",d_="gu",f_="gu-IN",h_="he",p_="he-IL",m_="hi",y_="hi-IN",g_="hr",v_="hr-BA",b_="hr-HR",E_="hu",x_="hu-HU",S_="hy",A_="hy-AM",w_="id",T_="id-ID",C_="is",R_="is-IS",I_="it",__="it-CH",N_="it-IT",k_="ja",L_="ja-JP",D_="ka",O_="ka-GE",j_="kk",z_="kk-KZ",M_="kn",P_="kn-IN",B_="ko",U_="ko-KR",V_="kok",F_="kok-IN",H_="ky",G_="ky-KG",K_="lt",$_="lt-LT",q_="lv",Z_="lv-LV",Y_="mi",W_="mi-NZ",X_="mk",Q_="mk-MK",J_="mn",eN="mn-MN",tN="mr",nN="mr-IN",rN="ms",iN="ms-BN",aN="ms-MY",oN="mt",sN="mt-MT",lN="nb",cN="nb-NO",uN="nl",dN="nl-BE",fN="nl-NL",hN="nn-NO",pN="ns",mN="ns-ZA",yN="pa",gN="pa-IN",vN="pl",bN="pl-PL",EN="ps",xN="ps-AR",SN="pt",AN="pt-BR",wN="pt-PT",TN="qu",CN="qu-BO",RN="qu-EC",IN="qu-PE",_N="ro",NN="ro-RO",kN="ru",LN="ru-RU",DN="sa",ON="sa-IN",jN="se",zN="se-FI",MN="se-NO",PN="se-SE",BN="sk",UN="sk-SK",VN="sl",FN="sl-SI",HN="sq",GN="sq-AL",KN="sr",$N="sr-BA",qN="sr-SP",ZN="sv",YN="sv-FI",WN="sv-SE",XN="sw",QN="sw-KE",JN="syr",ek="syr-SY",tk="ta",nk="ta-IN",rk="te",ik="te-IN",ak="th",ok="th-TH",sk="tl",lk="tl-PH",ck="tn",uk="tn-ZA",dk="tr",fk="tr-TR",hk="tt",pk="tt-RU",mk="ts",yk="uk",gk="uk-UA",vk="ur",bk="ur-PK",Ek="uz",xk="uz-UZ",Sk="vi",Ak="vi-VN",wk="xh",Tk="xh-ZA",Ck="zh",Rk="zh-Hans",Ik="zh-CN",_k="zh-HK",Nk="zh-MO",kk="zh-SG",Lk="zh-Hant",Dk="zu",Ok="zu-ZA",jk="bn",zk="bn-BD",Mk="bn-IN",Pk="bn-MM",Bk="my",Uk="my-MM",Vk="km",Fk="km-KH",Hk="lo",Gk="lo-LA",Kk="yo",$k="yo-NG",qk="am",Zk="am-ET",Yk="ne",Wk="ne-NP",Xk="si",Qk="si-LK",Jk="sr-Cyrl",eL="sr-RS",tL="sr-BA",nL="en-IN",rL="en-SG",iL="en-HK",aL="en-NG",oL="en-PK",sL="en-MY",lL="en-BW",cL="en-KE",uL="en-TZ",dL="en-GH",fL="en-UG",hL="es-CU",pL="es-US",mL="pt-GW",yL="pt-MZ",gL="pt-ST",vL="pt-CV",bL="pt-TL",EL="pt-MO",xL="zh-TW",SL="ar-MR",AL="ar-PS",wL="ar-SD",TL="ar-DJ",CL="ar-SO",RL="ar-TD",IL="ar-KM",dU={AFRIKAANS:ER,AFRIKAANS_SOUTH_AFRICA:xR,ARABIC:SR,ARABIC_UNITED_ARAB_EMIRATES:AR,ARABIC_BAHRAIN:wR,ARABIC_ALGERIA:TR,ARABIC_EGYPT:CR,ARABIC_IRAQ:RR,ARABIC_JORDAN:IR,ARABIC_KUWAIT:_R,ARABIC_LEBANON:NR,ARABIC_LIBYA:kR,ARABIC_MOROCCO:LR,ARABIC_OMAN:DR,ARABIC_QATAR:OR,ARABIC_SAUDI_ARABIA:jR,ARABIC_SYRIA:zR,ARABIC_TUNISIA:MR,ARABIC_YEMEN:PR,AZERI_LATIN:BR,AZERI_LATIN_AZERBAIJAN:UR,BELARUSIAN:VR,BELARUSIAN_BELARUS:FR,BULGARIAN:HR,BULGARIAN_BULGARIA:GR,BOSNIAN:KR,BOSNIAN_BOSNIA_AND_HERZEGOVINA:$R,CATALAN:qR,CATALAN_SPAIN:ZR,CZECH:YR,CZECH_CZECH_REPUBLIC:WR,WELSH:XR,WELSH_UNITED_KINGDOM:QR,DANISH:JR,DANISH_DENMARK:eI,GERMAN:tI,GERMAN_AUSTRIA:nI,GERMAN_SWITZERLAND:rI,GERMAN_GERMANY:iI,GERMAN_LIECHTENSTEIN:aI,GERMAN_LUXEMBOURG:oI,DIVEHI:sI,DIVEHI_MALDIVES:lI,GREEK:cI,GREEK_GREECE:uI,ENGLISH:dI,ENGLISH_AUSTRALIA:fI,ENGLISH_BELIZE:hI,ENGLISH_CANADA:pI,ENGLISH_CARIBBEAN:mI,ENGLISH_UNITED_KINGDOM:yI,ENGLISH_IRELAND:gI,ENGLISH_JAMAICA:vI,ENGLISH_NEW_ZEALAND:bI,ENGLISH_PHILIPPINES:EI,ENGLISH_TRINIDAD_AND_TOBAGO:xI,ENGLISH_UNITED_STATES:SI,ENGLISH_SOUTH_AFRICA:AI,ENGLISH_ZIMBABWE:wI,ESPERANTO:TI,SPANISH:CI,SPANISH_ARGENTINA:RI,SPANISH_BOLIVIA:II,SPANISH_CHILE:_I,SPANISH_COLOMBIA:NI,SPANISH_COSTA_RICA:kI,SPANISH_DOMINICAN_REPUBLIC:LI,SPANISH_ECUADOR:DI,SPANISH_SPAIN:OI,SPANISH_GUATEMALA:jI,SPANISH_HONDURAS:zI,SPANISH_MEXICO:MI,SPANISH_NICARAGUA:PI,SPANISH_PANAMA:BI,SPANISH_PERU:UI,SPANISH_PUERTO_RICO:VI,SPANISH_PARAGUAY:FI,SPANISH_EL_SALVADOR:HI,SPANISH_URUGUAY:GI,SPANISH_VENEZUELA:KI,ESTONIAN:$I,ESTONIAN_ESTONIA:qI,BASQUE:ZI,BASQUE_SPAIN:YI,FARSI:WI,FARSI_IRAN:XI,FINNISH:QI,FINNISH_FINLAND:JI,FAROESE:e_,FAROESE_FAROE_ISLANDS:t_,FRENCH:n_,FRENCH_BELGIUM:r_,FRENCH_CANADA:i_,FRENCH_SWITZERLAND:a_,FRENCH_FRANCE:o_,FRENCH_LUXEMBOURG:s_,FRENCH_PRINCIPALITY_OF_MONACO:l_,GALICIAN:c_,GALICIAN_SPAIN:u_,GUJARATI:d_,GUJARATI_INDIA:f_,HEBREW:h_,HEBREW_ISRAEL:p_,HINDI:m_,HINDI_INDIA:y_,CROATIAN:g_,CROATIAN_BOSNIA_AND_HERZEGOVINA:v_,CROATIAN_CROATIA:b_,HUNGARIAN:E_,HUNGARIAN_HUNGARY:x_,ARMENIAN:S_,ARMENIAN_ARMENIA:A_,INDONESIAN:w_,INDONESIAN_INDONESIA:T_,ICELANDIC:C_,ICELANDIC_ICELAND:R_,ITALIAN:I_,ITALIAN_SWITZERLAND:__,ITALIAN_ITALY:N_,JAPANESE:k_,JAPANESE_JAPAN:L_,GEORGIAN:D_,GEORGIAN_GEORGIA:O_,KAZAKH:j_,KAZAKH_KAZAKHSTAN:z_,KANNADA:M_,KANNADA_INDIA:P_,KOREAN:B_,KOREAN_KOREA:U_,KONKANI:V_,KONKANI_INDIA:F_,KYRGYZ:H_,KYRGYZ_KYRGYZSTAN:G_,LITHUANIAN:K_,LITHUANIAN_LITHUANIA:$_,LATVIAN:q_,LATVIAN_LATVIA:Z_,MAORI:Y_,MAORI_NEW_ZEALAND:W_,FYRO_MACEDONIAN:X_,FYRO_MACEDONIAN_MACEDONIA:Q_,MONGOLIAN:J_,MONGOLIAN_MONGOLIA:eN,MARATHI:tN,MARATHI_INDIA:nN,MALAY:rN,MALAY_BRUNEI_DARUSSALAM:iN,MALAY_MALAYSIA:aN,MALTESE:oN,MALTESE_MALTA:sN,NORWEGIAN_BOKMAL:lN,NORWEGIAN_BOKMAL_NORWAY:cN,DUTCH:uN,DUTCH_BELGIUM:dN,DUTCH_NETHERLANDS:fN,NORWEGIAN_NYNORSK_NORWAY:hN,NORTHERN_SOTHO:pN,NORTHERN_SOTHO_SOUTH_AFRICA:mN,PUNJABI:yN,PUNJABI_INDIA:gN,POLISH:vN,POLISH_POLAND:bN,PASHTO:EN,PASHTO_AFGHANISTAN:xN,PORTUGUESE:SN,PORTUGUESE_BRAZIL:AN,PORTUGUESE_PORTUGAL:wN,QUECHUA:TN,QUECHUA_BOLIVIA:CN,QUECHUA_ECUADOR:RN,QUECHUA_PERU:IN,ROMANIAN:_N,ROMANIAN_ROMANIA:NN,RUSSIAN:kN,RUSSIAN_RUSSIA:LN,SANSKRIT:DN,SANSKRIT_INDIA:ON,SAMI_NORTHERN:jN,SAMI_NORTHERN_FINLAND:zN,SAMI_NORTHERN_NORWAY:MN,SAMI_NORTHERN_SWEDEN:PN,SLOVAK:BN,SLOVAK_SLOVAKIA:UN,SLOVENIAN:VN,SLOVENIAN_SLOVENIA:FN,ALBANIAN:HN,ALBANIAN_ALBANIA:GN,SERBIAN_LATIN:KN,SERBIAN_LATIN_BOSNIA_AND_HERZEGOVINA:$N,SERBIAN_LATIN_SERBIA_AND_MONTENEGRO:qN,SWEDISH:ZN,SWEDISH_FINLAND:YN,SWEDISH_SWEDEN:WN,SWAHILI:XN,SWAHILI_KENYA:QN,SYRIAC:JN,SYRIAC_SYRIA:ek,TAMIL:tk,TAMIL_INDIA:nk,TELUGU:rk,TELUGU_INDIA:ik,THAI:ak,THAI_THAILAND:ok,TAGALOG:sk,TAGALOG_PHILIPPINES:lk,TSWANA:ck,TSWANA_SOUTH_AFRICA:uk,TURKISH:dk,TURKISH_TURKEY:fk,TATAR:hk,TATAR_RUSSIA:pk,TSOGA:mk,UKRAINIAN:yk,UKRAINIAN_UKRAINE:gk,URDU:vk,URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:bk,UZBEK_LATIN:Ek,UZBEK_LATIN_UZBEKISTAN:xk,VIETNAMESE:Sk,VIETNAMESE_VIET_NAM:Ak,XHOSA:wk,XHOSA_SOUTH_AFRICA:Tk,CHINESE:Ck,CHINESE_SIMPLIFIED:Rk,CHINESE_SIMPLIFIED_CHINA:Ik,CHINESE_HONG_KONG:_k,CHINESE_MACAU:Nk,CHINESE_SINGAPORE:kk,CHINESE_TRADITIONAL:Lk,ZULU:Dk,ZULU_SOUTH_AFRICA:Ok,BENGALI:jk,BENGALI_BANGLADESH:zk,BENGALI_INDIA:Mk,BENGALI_MYANMAR:Pk,BURMESE:Bk,BURMESE_MYANMAR:Uk,KHMER:Vk,KHMER_CAMBODIA:Fk,LAO:Hk,LAO_LAOS:Gk,YORUBA:Kk,YORUBA_NIGERIA:$k,AMHARIC:qk,AMHARIC_ETHIOPIA:Zk,NEPALI:Yk,NEPALI_NEPAL:Wk,SINHALA:Xk,SINHALA_SRI_LANKA:Qk,SERBIAN_CYRILLIC:Jk,SERBIAN_CYRILLIC_SERBIA:eL,SERBIAN_CYRILLIC_BOSNIA_AND_HERZEGOVINA:tL,ENGLISH_INDIA:nL,ENGLISH_SINGAPORE:rL,ENGLISH_HONG_KONG:iL,ENGLISH_NIGERIA:aL,ENGLISH_PAKISTAN:oL,ENGLISH_MALAYSIA:sL,ENGLISH_BOTSWANA:lL,ENGLISH_KENYA:cL,ENGLISH_TANZANIA:uL,ENGLISH_GHANA:dL,ENGLISH_UGANDA:fL,SPANISH_CUBA:hL,SPANISH_UNITED_STATES:pL,PORTUGUESE_GUINEA_BISSAU:mL,PORTUGUESE_MOZAMBIQUE:yL,PORTUGUESE_SAO_TOME_AND_PRINCIPE:gL,PORTUGUESE_CAPE_VERDE:vL,PORTUGUESE_TIMOR_LESTE:bL,PORTUGUESE_MACAU:EL,CHINESE_TAIWAN:xL,ARABIC_MAURITANIA:SL,ARABIC_PALESTINE:AL,ARABIC_SUDAN:wL,ARABIC_DJIBOUTI:TL,ARABIC_SOMALIA:CL,ARABIC_CHAD:RL,ARABIC_COMOROS:IL};let F=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 fU=(e,t,n)=>({...n,nodeType:e,[e]:t});var hU=Eo({DEFAULT_LOCALE:()=>yU,LOCALES:()=>pU,REQUIRED_LOCALES:()=>mU,STRICT_MODE:()=>gU});const pU=[ut.ENGLISH],mU=[],yU=ut.ENGLISH,gU="inclusive";var vU=Eo({MODE:()=>bU,PREFIX:()=>EU});const bU="default",EU=`${EA.GREY_DARK}[intlayer] ${EA.RESET}`;var xU=Eo({BASE_PATH:()=>TU,COOKIE_NAME:()=>AU,HEADER_NAME:()=>SU,LOCALE_STORAGE_NAME:()=>wU,ROUTING_MODE:()=>RU,SERVER_SET_COOKIE:()=>CU,STORAGE:()=>IU});const SU="x-intlayer-locale",AU="INTLAYER_LOCALE",wU="INTLAYER_LOCALE",TU="",CU="always",RU="prefix-no-default",IU=["cookie","header"];var Gf=Eo({Build:()=>_2,Content:()=>j2,Editor:()=>J2,Internationalization:()=>hU,Log:()=>vU,Routing:()=>xU});const xA=e=>{const{name:t,path:n,expires:i,domain:o,secure:s,sameSite:c,httpOnly:u}=e??{};return{name:t??Gf.Routing.COOKIE_NAME,attributes:{path:n,expires:i,domain:o,secure:s,sameSite:c,httpOnly:u}}},Xl=e=>{const{name:t}=e??{};return{name:t??Gf.Routing.LOCALE_STORAGE_NAME}},SA=e=>{const{name:t}=e??{};return{name:t??Gf.Routing.HEADER_NAME}},_U=e=>e.type==="cookie"||"sameSite"in e||"httpOnly"in e||"secure"in e,NU=e=>e==="cookie"||e==="localStorage"||e==="sessionStorage"||e==="header",AA=e=>{if(typeof e=="string"){if(!NU(e))return{cookies:[],localStorage:[],sessionStorage:[],headers:[]};if(e==="cookie")return{cookies:[xA()]};if(e==="localStorage")return{localStorage:[Xl()]};if(e==="sessionStorage")return{sessionStorage:[Xl()]};if(e==="header")return{headers:[SA()]}}if(typeof e=="object"&&e!==null){const t=e;if(_U(t))return{cookies:[xA(t)]};if("type"in t&&t.type==="localStorage"){const{name:o,...s}=t;return{localStorage:[Xl({name:o,...s})]}}if("type"in t&&t.type==="sessionStorage"){const{name:o,...s}=t;return{sessionStorage:[Xl({name:o,...s})]}}if("type"in t&&t.type==="header"){const{name:o,...s}=t;return{headers:[SA({name:o,...s})]}}const{name:n,...i}=t;return{localStorage:[Xl({name:n,...i})]}}return{cookies:[],localStorage:[],sessionStorage:[],headers:[]}},wA=(e,t)=>({cookies:[...e.cookies,...t.cookies??[]],localStorage:[...e.localStorage,...t.localStorage??[]],sessionStorage:[...e.sessionStorage,...t.sessionStorage??[]],headers:[...e.headers,...t.headers??[]]}),_L=e=>{const t={cookies:[],localStorage:[],sessionStorage:[],headers:[]};return e===!1||e===void 0?t:Array.isArray(e)?e.reduce((n,i)=>wA(n,AA(i)),t):wA(t,AA(e))},kU=(e,t)=>{const n=Object.keys(e),i=n[n.length-1];return e[`${t}`]??e.fallback??e[i]},hc=(e,t)=>{for(const i of t.plugins??[])if(i.canHandle(e))return i.transform(e,t,(o,s)=>hc(o,s));if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map((i,o)=>hc(i,{...t,children:i,keyPath:[...t.keyPath,{type:F.Array,key:o}]}));const n={};for(const i in e){const o={...t,children:e[i],keyPath:[...t.keyPath,{type:F.Object,key:i}]};n[i]=hc(e[i],o)}return n},LU=(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}},DU=(e,t)=>e[LU(e,t)??"fallback"],OU=(e,t)=>e.replace(/\{\{(.*?)\}\}/g,(n,i)=>(t[i]??"").toString()),jU="breadcrumb",zU={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:"Перейти на"}}},MU=["breadcrumb::local::../@intlayer/design-system/src/components/Breadcrumb/breadcrumb.content.ts"],PU={key:jU,content:zU,localIds:MU},BU="code",UU={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:"Копировать код в буфер обмена"}}},VU=["code::local::../@intlayer/design-system/src/components/IDE/code.content.ts","code::local::../@intlayer/design-system/src/components/IDE/copyCode.content.ts"],FU={key:BU,content:UU,localIds:VU},HU="copy-button",GU={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:"Копировать содержимое"}}},KU=["copy-button::local::../@intlayer/design-system/src/components/CopyButton/CopyButton.content.ts"],$U={key:HU,content:GU,localIds:KU},qU="dictionary-detail-schema",ZU={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:"Пожалуйста, введите действительный тег"}}},YU=["dictionary-detail-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.ts"],WU={key:qU,content:ZU,localIds:YU},XU="dictionary-details",QU=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":"Отслеживание"}}}}`),JU=["dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.tsx"],eV={key:XU,content:QU,localIds:JU},tV="dictionary-edition-drawer",nV={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:"Нет фокусированного словаря"}}},rV=["dictionary-edition-drawer::local::client/src/components/Editor/DictionaryEditionDrawer/dictionaryEditionDrawer.content.ts"],iV={key:tV,content:nV,localIds:rV},aV="dictionary-field-editor",oV={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:"Список словарей"}}}},sV=["dictionary-field-editor::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/dictionaryFieldEditor.content.ts"],lV={key:aV,content:oV,localIds:sV},cV="dictionary-form-schema",uV={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:"Пожалуйста, выберите действительный проект"}}},dV=["dictionary-form-schema::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.ts"],fV={key:cV,content:uV,localIds:dV},hV="dictionary-form",pV={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:"Нажмите, чтобы отредактировать"}}}},mV=["dictionary-form::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.ts"],yV={key:hV,content:pV,localIds:mV},gV="dictionary-list-drawer",vV={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}}"}}}}},bV=["dictionary-list-drawer::local::client/src/components/Editor/DictionaryListDrawer/dictionaryListDrawer.content.ts"],EV={key:gV,content:vV,localIds:bV},xV="expand-collapse",SV={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:"Показать меньше"}}}}},AV=["expand-collapse::local::../@intlayer/design-system/src/components/ExpandCollapse/expandCollapse.content.ts"],wV={key:xV,content:SV,localIds:AV},TV="loader",CV={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:"Анимационный значок, что означает, что сайт обрабатывается"}}},RV=["loader::local::../@intlayer/design-system/src/components/Loader/index.content.ts"],IV={key:TV,content:CV,localIds:RV},_V="locale-switcher-content",NV={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:"Показать только выбранные языки"}}}},kV=["locale-switcher-content::local::../@intlayer/design-system/src/components/LocaleSwitcherContentDropDown/localeSwitcher.content.ts"],LV={key:_V,content:NV,localIds:kV},DV="locale-switcher",OV={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:"Поиск языка"}}}},jV=["locale-switcher::local::../@intlayer/design-system/src/components/LocaleSwitcherDropDown/localeSwitcher.content.ts"],zV={key:DV,content:OV,localIds:jV},MV="long-press-message",PV={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}}"'}}}},BV=["long-press-message::local::client/src/components/Editor/LongPressMessage/index.content.ts"],UV={key:MV,content:PV,localIds:BV},VV="navigation-view",FV={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:"Добавить новое условие"}}}},HV=["navigation-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.ts"],GV={key:VV,content:FV,localIds:HV},KV="no-application-url-view",$V={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:"Смотрите, как настроить редактор"}}}},qV=["no-application-url-view::local::client/src/components/Editor/NoApplicationURLView/noApplicationURLView.content.ts"],ZV={key:KV,content:$V,localIds:qV},YV="node-type-selector",WV={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:"Реакт узел"}}},XV=["node-type-selector::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/nodeTypeSelector.content.ts"],QV={key:YV,content:WV,localIds:XV},JV="pagination",eF={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:"Перейти к предыдущей странице"}}},tF=["pagination::local::../@intlayer/design-system/src/components/Pagination/pagination.content.ts"],nF={key:JV,content:eF,localIds:tF},rF="save-dictionary-details",iF={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:"Нажмите, чтобы отменить"}}}}},aF=["save-dictionary-details::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/SaveForm/saveForm.content.tsx"],oF={key:rF,content:iF,localIds:aF},sF="structure-view",lF={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:"Добавить новый узел"}}}},cF=["structure-view::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/StructureView/structureView.content.ts"],uF={key:sF,content:lF,localIds:cF},dF="table",fF={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:"Показать все данные таблицы"}}},hF=["table::local::../@intlayer/design-system/src/components/Table/table.content.ts"],pF={key:dF,content:fF,localIds:hF},mF="version-switcher",yF={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:"Переключиться на"}}},gF=["version-switcher::local::../@intlayer/design-system/src/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.ts"],vF={key:mF,content:yF,localIds:gF},bF={breadcrumb:PU,code:FU,"copy-button":$U,"dictionary-detail-schema":WU,"dictionary-details":eV,"dictionary-edition-drawer":iV,"dictionary-field-editor":lV,"dictionary-form-schema":fV,"dictionary-form":yV,"dictionary-list-drawer":EV,"expand-collapse":wV,loader:IV,"locale-switcher-content":LV,"locale-switcher":zV,"long-press-message":UV,"navigation-view":GV,"no-application-url-view":ZV,"node-type-selector":QV,pagination:nF,"save-dictionary-details":oF,"structure-view":uF,table:pF,"version-switcher":vF},EF=()=>bF,Ev=(e,t,n)=>{const i=EF(),o=i[e];if(!o)throw new Error(`Dictionary ${e} not found`,i);return zF(o,t,n)},xF=(e,t,n)=>{const i=Ev(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},SF=(e,t,n)=>{let i=e[t];return n&&!i&&(i=e[n]),i},NL=(e,t)=>({id:"translation-plugin",canHandle:n=>typeof n=="object"&&n?.nodeType===F.Translation,transform:(n,i,o)=>{const s=structuredClone(n[F.Translation]);for(const c in s){const u={...i,children:s[c],keyPath:[...i.keyPath,{type:F.Translation,key:c}]};s[c]=o(s[c],u)}return SF(s,e,t)}}),AF={id:"enumeration-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===F.Enumeration,transform:(e,t,n)=>{const i=structuredClone(e[F.Enumeration]);for(const o in i){const s=i[o];i[o]=n(s,{...t,children:s,keyPath:[...t.keyPath,{type:F.Enumeration,key:o}]})}return o=>DU(i,o)}},wF={id:"condition-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===F.Condition,transform:(e,t,n)=>{const i=structuredClone(e[F.Condition]);for(const o in i){const s=i[o];i[o]=n(s,{...t,children:s,keyPath:[...t.keyPath,{type:F.Condition,key:o}]})}return o=>kU(i,o)}},TF={id:"insertion-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===F.Insertion,transform:(e,t,n)=>{const i=[...t.keyPath,{type:F.Insertion}],o=e[F.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=OU(h,p);return f(g,{...u,plugins:t.plugins,children:g})}}},...t.plugins??[]]})}},CF={id:"nested-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===F.Nested,transform:(e,t)=>xF(e.nested.dictionaryKey,e.nested.path,t)},RF={id:"file-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===F.File,transform:(e,t,n)=>n(e.content,{...t,children:e.content})},IF={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"},_F={mode:"prefix-no-default",storage:["cookie","header"],basePath:""},NF={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"},kF={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"},LF={mode:"default",prefix:"\x1B[38;5;239m[intlayer] \x1B[0m"},DF={},OF={optimize:!1,importMode:"static",traversePattern:["**/*.{js,ts,mjs,cjs,jsx,tsx,mjx,cjx,vue,svelte,svte}","!**/node_modules/**"],outputFormat:["cjs","esm"],cache:!0},jF={fill:!0},Qe={internationalization:IF,routing:_F,content:NF,editor:kF,log:LF,ai:DF,build:OF,dictionary:jF},xv=(e,t,n)=>{const i=Qe?.internationalization?.defaultLocale,o=[TF,NL(n??i,i),AF,wF,CF,RF,...t.plugins??[]];return hc(e,{...t,plugins:o})},zF=(e,t,n)=>{const i={dictionaryKey:e.key,dictionaryPath:e.filePath,keyPath:[],plugins:n};return xv(e.content,i,t)},MF=e=>{const t=e.trim();if(!t)return null;let n=0;const i=x=>x===" "||x===`
50
- `||x===" "||x==="\r",o=()=>t[n],s=()=>t[n++],c=()=>n>=t.length,u=()=>{for(;!c()&&i(o());)n++},f=x=>{s();let C="";for(;!c();){const I=s();if(I===x)return C;if(I==="\\"&&!c()){const _=s();C+=_}else C+=I}throw new SyntaxError("Unterminated string")},h=(x,C)=>!!x&&C.includes(x),p=x=>{let C="";for(;!c()&&!h(o(),x);)C+=s();return C.trim()},g=x=>x==="true"||x==="false"||x==="null"||x==="undefined"||x==="yes"||x==="no"||x==="on"||x==="off"||x==="NaN"||x==="Infinity"||x==="-Infinity"||/^0x[0-9a-fA-F]+$/.test(x)||/^#/.test(x)?x:/^-?\d+(?:\.\d+)?(?:e[+-]?\d+)?$/i.test(x)?x==="3.14159265359"?Math.PI:Number(x):x,b=x=>{if(u(),c())throw new SyntaxError("Unexpected end of input");const C=o();if(C==="[")return S();if(C==="{")return A();if(C==='"'||C==="'")return f(C);const I=p(x);if(I==="")throw new SyntaxError("Empty token");return g(I)},S=()=>{s();const x=[];if(u(),o()==="]")return s(),x;for(;;){u(),x.push(b([",","]"])),u();const C=s();if(C==="]")break;if(C!==",")throw new SyntaxError("Expected ',' or ']' after array element");if(u(),o()==="]")throw new SyntaxError("Trailing comma in array")}return x},w=x=>{const C={};for(u();;){u();let I="";const _=o();if(_==='"'||_==="'")I=f(_);else{for(;!c();){const L=o();if(L===":")break;if(h(L,x))throw new SyntaxError("Expected ':' in object entry");I+=s()}I=I.trim()}if(c()||s()!==":")throw new SyntaxError("Expected ':' after key");u(),C[I]=b([",",...x]),u();const k=o();if(k===","){s();continue}if(h(k,x))return C;if(!c())throw new SyntaxError("Expected ',' or end of object");return C}},A=()=>{if(s(),u(),o()==="}")return s(),{};const x=w(["}"]);if(o()!=="}")throw new SyntaxError("Expected '}' at end of object");return s(),x},R=x=>{let C=0,I=0,_=null;for(;C<x.length;){const k=x[C];if(_){if(k==="\\"&&C+1<x.length){C+=2;continue}if(k===_){_=null,C++;continue}C++;continue}if(k==='"'||k==="'"){_=k,C++;continue}if(k==="["||k==="{"){I++,C++;continue}if(k==="]"||k==="}"){I=Math.max(0,I-1),C++;continue}if(I===0&&k===":"&&x[C+1]===" ")return!0;C++}return!1};if(t.startsWith("]")||t.startsWith("}"))throw new SyntaxError("Unexpected closing bracket");if(t.startsWith("[")){const x=S();if(u(),!c())throw new SyntaxError("Unexpected trailing characters");return x}if(t.startsWith("{")){const x=A();if(u(),!c())throw new SyntaxError("Unexpected trailing characters");return x}if(R(t)){const x=w([]);if(u(),!c())throw new SyntaxError("Unexpected trailing characters");return x}const N=b([]);if(u(),!c())throw new SyntaxError("Unexpected trailing characters");return N},kL=e=>{try{const t=e.split(/\r?\n/),n=t.find(u=>u.trim()!=="");if(!n||n.trim()!=="---")return{};const i={};let o=!1,s=null,c=[];for(let u=0;u<t.length;u++){const f=t[u];if(f.trim()==="---")if(o){s&&c.length>0&&(i[s]=c);break}else{o=!0;continue}if(o){const h=f.match(/^\s*-\s+(.+)$/);if(h&&s){c.push(h[1].trim());continue}s&&c.length>0&&(i[s]=c,s=null,c=[]);const p=f.match(/^([^:]+)\s*:\s*(.*)$/);if(p){const g=p[1].trim(),b=p[2].trim();if(b==="")s=g,c=[];else try{i[g]=MF(b)}catch{i[g]=b}}}}return i}catch{return{}}},TA=e=>fU(F.Translation,e),PF=(e,t,n,i)=>{const o=[NL(t,i),...n.plugins??[]];return hc(e,{...n,plugins:o})},CA=(e,t,n)=>({...e,locale:t,content:PF(e.content,t,{dictionaryKey:e.key,keyPath:[],plugins:[]},n)}),RA=(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===F.Object||u.type===F.Array)&&(s=[u.key],(!i[u.key]||typeof i[u.key]!="object")&&(i[u.key]={}),i=i[u.key]),(u.type===F.Translation||u.type===F.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===F.Enumeration||u.type===F.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===F.Markdown||u.type===F.Insertion)&&(s=[u.type],(!i[u.type]||typeof i[u.type]!="object")&&(i[u.type]=""),i=i[u.type]),u.type===F.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}},qn=(e,t)=>{let n=structuredClone(e);for(const i of t)i.type===F.Object||i.type===F.Array?n=n?.[i.key]:i.type===F.Translation||i.type===F.Condition||i.type===F.Enumeration?n=n?.[i.type]?.[i.key]:(i.type===F.Markdown||i.type===F.Insertion||i.type===F.File)&&(n=n?.[i.type]);return n},Ql=(e,t,n)=>{const i=structuredClone(n);switch(e){case F.Translation:return{nodeType:F.Translation,[F.Translation]:Object.assign({},...t.map(o=>({[o]:structuredClone(i)??""})))};case F.Enumeration:return{nodeType:F.Enumeration,[F.Enumeration]:{1:i??""}};case F.Condition:return{nodeType:F.Condition,[F.Condition]:{true:i??"",false:i??""}};case F.Insertion:return{nodeType:F.Insertion,[F.Insertion]:{insertion:i??""}};case F.Nested:return{nodeType:F.Nested,[F.Nested]:{dictionaryKey:""}};case F.Markdown:return{nodeType:F.Markdown,[F.Markdown]:i??""};case F.File:return{nodeType:F.File,[F.File]:i??""};case F.Object:return{newKey:i??""};case F.Array:return[i??""];case F.Text:return i??"";case F.Number:return i??0;case F.Boolean:return i??!0;default:return i??""}},Zn=e=>{if(typeof e=="string")return"";if(typeof e=="number")return 0;if(typeof e=="boolean")return!0;if(typeof e?.nodeType=="string"){const n=e,i=n[n.nodeType];return n.nodeType===F.Translation||n.nodeType===F.Enumeration||n.nodeType===F.Condition||n.nodeType===F.Insertion?Zn(i):n.nodeType===F.Nested?"dictionary-key":n.nodeType===F.File?"file/path":n.nodeType===F.Markdown?Zn(n):i}if(!e||typeof e!="object")return e;if(Array.isArray(e))return e.map(Zn);const t=Object.entries(e).map(([n,i])=>[n,Zn(i)]);return Object.fromEntries(t)},LL=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===F.Translation||t.nodeType===F.Enumeration||t.nodeType===F.Condition||t.nodeType===F.Insertion||t.nodeType===F.Gender||t.nodeType===F.File||t.nodeType===F.Markdown?n[Object.keys(n)[0]]:t.nodeType===F.Nested?void 0:n}return!e||typeof e!="object"?e:Array.isArray(e)?e[0]:e},BF=e=>typeof e=="object"&&typeof e?.key<"u"&&typeof e?.props<"u",UF=e=>typeof e=="object"&&e!==null&&"nodeType"in e&&typeof e.nodeType=="string",VF=e=>Object.values(F).includes(e),Fs=e=>{if(typeof e=="string")return F.Text;if(UF(e)){const t=e.nodeType;return VF(t)?t:F.Unknown}return Array.isArray(e)?F.Array:BF(e)?F.ReactNode:typeof e=="number"?F.Number:typeof e=="boolean"?F.Boolean:e&&typeof e=="object"?F.Object:e===null?F.Null:F.Unknown},FF=(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 S=c(u.dictionary),w=c(f.dictionary);return S!==w?S-w:u.index-f.index}),o.map(({dictionary:u})=>u)},HF=(e,t)=>{const{locales:n}=t.internationalization,i=JSON.parse(JSON.stringify(e));if(e.locale)return{...e,locale:void 0,content:TA({[e.locale]:CA(e.content,e.locale)})};const o=n.reduce((s,c)=>(s[c]=CA(i,c).content,s),{});return{...e,content:TA(o)}},GF=(e,t)=>FF(e,t).map(n=>HF(n,t)),KF=[{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"}],$F=[{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"}],qF=[{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"}],ZF=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"}]`),YF=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"}]`),WF=[{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"}],XF=[{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"}],QF=[{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"}],JF=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"}]`),eH=[{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"}],tH=[{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"}],nH=[{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"}],rH=[{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"}],iH=[{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"}],aH=[{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"}],oH=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"}]`),sH=[{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"}],lH=[{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"}],cH=[{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"}],uH=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"}]'),dH=[{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"}],fH=[{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"}],hH=[{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"}],pH={breadcrumb:KF,code:$F,"copy-button":qF,"dictionary-detail-schema":ZF,"dictionary-details":YF,"dictionary-edition-drawer":WF,"dictionary-field-editor":XF,"dictionary-form-schema":QF,"dictionary-form":JF,"dictionary-list-drawer":eH,"expand-collapse":tH,loader:nH,"locale-switcher-content":rH,"locale-switcher":iH,"long-press-message":aH,"navigation-view":oH,"no-application-url-view":sH,"node-type-selector":lH,pagination:cH,"save-dictionary-details":uH,"structure-view":dH,table:fH,"version-switcher":hH},mH=()=>pH,yH=(e,t,n,i=Qe)=>{const o=(n??mH())?.[e];if(!o)return null;const s=GF(o,i);for(const c of s)if(qn(c.content,t))return c;for(const c of o)if(qn(c.content,t))return c},gH=(e,t,n)=>{let i=e,o=null,s=null;for(const c of n)o=i,(c.type===F.Object||c.type===F.Array)&&(s=c.key,i=i[c.key]),(c.type===F.Translation||c.type===F.Enumeration||c.type===F.Condition)&&(s=c.type,i=i[c.type][c.key]),(c.type===F.Markdown||c.type===F.ReactNode||c.type===F.Insertion||c.type===F.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},vH=(e,t)=>JSON.stringify([e,t]),bH=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(`
51
- `)),i;const s=vH(i??ut.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},EH=()=>new Proxy(Intl,{get:(e,t,n)=>{const i=Reflect.get(e,t,n);return typeof i=="function"&&/^[A-Z]/.test(String(t))?bH(i):i}}),xH=EH(),SH=(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("; ")},AH=e=>{const{routing:t,internationalization:n}=Qe,{locales:i}=n,{storage:o}=t;if(o===!1||e?.isCookieEnabled===!1)return;const s=_L(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 S=b.indexOf("=");if((S>=0?b.substring(0,S):b)===f){const w=S>=0?b.substring(S+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{}}},wH=(e,t)=>{if(Qe.routing.storage===!1||t?.isCookieEnabled===!1)return;const n=_L(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=SH(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{}}},TH=(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},DL={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)},CH=e=>{switch(e){case ut.ARABIC:case ut.FARSI:case ut.URDU:case ut.PASHTO:case ut.SYRIAC:case ut.ARABIC_UNITED_ARAB_EMIRATES:case ut.ARABIC_BAHRAIN:case ut.ARABIC_ALGERIA:case ut.ARABIC_EGYPT:case ut.ARABIC_IRAQ:case ut.ARABIC_JORDAN:case ut.ARABIC_KUWAIT:case ut.ARABIC_LEBANON:case ut.ARABIC_LIBYA:case ut.ARABIC_MOROCCO:case ut.ARABIC_OMAN:case ut.ARABIC_QATAR:case ut.ARABIC_SAUDI_ARABIA:case ut.ARABIC_SYRIA:case ut.ARABIC_TUNISIA:case ut.ARABIC_YEMEN:case ut.FARSI_IRAN:case ut.URDU_ISLAMIC_REPUBLIC_OF_PAKISTAN:case ut.PASHTO_AFGHANISTAN:case ut.SYRIAC_SYRIA:return"rtl";default:return"ltr"}},OL=e=>/^[a-zA-Z][a-zA-Z\d+\-.]*:/.test(e),Jd=(e,t=e)=>new xH.DisplayNames(t,{type:"language"}).of(e)??"Unknown locale",RH=(e,t=Qe?.internationalization?.locales)=>{const n=OL(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","")},IH=(e,t=Qe?.internationalization?.locales,n=Qe?.internationalization?.defaultLocale,i=Qe?.routing?.mode)=>{const o=RH(e,t),s=OL(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??Gf.Routing.ROUTING_MODE;return(t??[]).reduce((p,g)=>{const b=g?.toString()===n?.toString();let S;if(h==="search-params"){const w=new URLSearchParams(c.search);w.set("locale",g.toString());const A=w.toString(),R=A?`${u}?${A}`:u;S=s?`${f}${R}${c.hash}`:`${R}${c.hash}`}else if(h==="no-prefix")S=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)),S=s?`${f}${w}${c.search}${c.hash}`:`${w}${c.search}${c.hash}`}return p[g]=S,p},{})},_H=(e,t,n=Qe?.internationalization?.locales,i=Qe?.internationalization?.defaultLocale,o=Qe?.routing?.mode)=>IH(e,n,i,o)[t]??e,Vc=(e,t)=>e.every((n,i)=>t[i]&&t[i].key===n.key&&t[i].type===n.type),NH=AH(DL),jL=NH,zL=(e,t)=>wH(e,{...DL,isCookieEnabled:t}),ln=[];for(let e=0;e<256;++e)ln.push((e+256).toString(16).slice(1));function kH(e,t=0){return(ln[e[t+0]]+ln[e[t+1]]+ln[e[t+2]]+ln[e[t+3]]+"-"+ln[e[t+4]]+ln[e[t+5]]+"-"+ln[e[t+6]]+ln[e[t+7]]+"-"+ln[e[t+8]]+ln[e[t+9]]+"-"+ln[e[t+10]]+ln[e[t+11]]+ln[e[t+12]]+ln[e[t+13]]+ln[e[t+14]]+ln[e[t+15]]).toLowerCase()}let Jm;const LH=new Uint8Array(16);function DH(){if(!Jm){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Jm=crypto.getRandomValues.bind(crypto)}return Jm(LH)}const OH=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),IA={randomUUID:OH};function jH(e,t,n){e=e||{};const i=e.random??e.rng?.()??DH();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,kH(i)}function zH(e,t,n){return IA.randomUUID&&!e?IA.randomUUID():jH(e)}const{editor:ey}=Qe??{},ML=E.createContext({postMessage:()=>null,allowedOrigins:[ey?.applicationURL,ey?.editorURL,ey?.cmsURL],senderId:""}),_A=({children:e,allowedOrigins:t,postMessage:n})=>{const i=E.useRef(zH()),o=E.useMemo(()=>({postMessage:n,allowedOrigins:t,senderId:i.current}),[n,t,i.current]);return y.jsx(ML.Provider,{value:o,children:e})},Sv=()=>E.useContext(ML),MH=(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}},PH=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 Ln=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 js=(e,t,n)=>{const{allowedOrigins:i,postMessage:o,senderId:s}=Sv();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=>MH(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})}},BH=(e,t)=>typeof e=="function"?e(t):e,fa=(e,t,n)=>{const{postMessage:i,senderId:o}=Sv(),{emit:s,receive:c}=n??{emit:!0,receive:!0},u=(S,w)=>{const A=BH(S,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=S=>p(w=>u(S,w));js(`${e}/post`,c?S=>{p(S)}:void 0);const b=(S,w)=>{s&&typeof i=="function"&&w!==o&&(typeof h>"u"||i({type:`${e}/post`,data:h,senderId:o}))};return js(`${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]},PL=E.createContext(void 0),UH=({children:e,configuration:t})=>y.jsx(PL.Provider,{value:t,children:e}),Qr=()=>E.useContext(PL),BL=E.createContext(void 0),UL=E.createContext(void 0),VH=({children:e})=>{const[t,n]=fa(Ln.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(BL.Provider,{value:i,children:y.jsx(UL.Provider,{value:o,children:e})})},Kf=()=>E.useContext(UL),VL=()=>{const e=Kf(),t=E.useContext(BL);if(!t)throw new Error("useDictionariesRecordStates must be used within a DictionariesRecordProvider");return{...t,...e}},FL=E.createContext(void 0),FH=e=>js(`${Ln.INTLAYER_EDITED_CONTENT_CHANGED}/get`,e),HL=E.createContext(void 0),NA=(e,t)=>typeof e=="function"?e(t):e,HH=({children:e})=>{const{localeDictionaries:t}=VL(),[n,i]=fa(Ln.INTLAYER_EDITED_CONTENT_CHANGED),o=S=>{let w=NA(S);return i(A=>w.localId?(w=NA(S,A?.[w.localId]),{...A,[w.localId]:w}):(console.error("no localId",w),A)),w},s=(S,w)=>{i(A=>({...A,[S]:{...A?.[S],content:w}}))},c=(S,w,A=[],R=!0)=>{i(N=>{const x=t[S]?.content,C=structuredClone(N?.[S]?.content??x);let I=A;if(!R){let k=0;const L=A.slice(0,-1),O=A[A.length-1];let V=O.key;for(;typeof qn(C,I)<"u";)k++,V=k===0?O.key:`${O.key} (${k})`,I=[...L,{...O,key:V}]}const _=RA(C,I,w);return{...N,[S]:{...N?.[S],content:_}}})},u=(S,w,A=[])=>{i(R=>{const N=t[S]?.content,x=gH(structuredClone(R?.[S]?.content??N),w,A);return{...R,[S]:{...R?.[S],content:x}}})},f=(S,w)=>{i(A=>{const R=t[S]?.content,N=RA(structuredClone(A?.[S]?.content??R),w,qn(R,w));return{...A,[S]:{...A?.[S],content:N}}})},h=S=>{i(w=>{const A={...w};return delete A[S],A})},p=S=>{i(w=>Object.entries(w).reduce((A,[R,N])=>R===S?A:{...A,[R]:N},{}))},g=()=>{i({})},b=(S,w)=>{if(!n)return;if(S.includes(":local:")||S.includes(":remote:"))return qn(n?.[S]?.content??{},w);const A=Object.keys(n).filter(R=>R.startsWith(`${S}:`));for(const R of A){const N=qn(n?.[R]?.content??{},w);if(N)return N}};return y.jsx(FL.Provider,{value:{editedContent:n},children:y.jsx(HL.Provider,{value:{setEditedContentState:i,setEditedDictionary:o,setEditedContent:s,addEditedContent:c,renameEditedContent:u,removeEditedContent:f,restoreEditedContent:h,clearEditedDictionaryContent:p,clearEditedContent:g,getEditedContentValue:b},children:e})})},Hs=()=>E.useContext(HL),bn=()=>{const e=E.useContext(FL),t=Hs();return{...e,...t}},GL=E.createContext({enabled:!1}),GH=e=>fa(Ln.INTLAYER_EDITOR_ENABLED,!1,e),KH=e=>js(`${Ln.INTLAYER_EDITOR_ENABLED}/post`,e),KL=e=>js(`${Ln.INTLAYER_EDITOR_ENABLED}/get`,e),$H=({children:e})=>{const[t]=GH({emit:!1,receive:!0});return y.jsx(GL.Provider,{value:{enabled:t},children:e})},$L=()=>E.useContext(GL),qL=E.createContext(void 0),ZL=E.createContext(void 0),qH=({children:e})=>{const[t,n]=fa(Ln.INTLAYER_FOCUSED_CONTENT_CHANGED,null),i=o=>{n(s=>s&&{...s,keyPath:o})};return y.jsx(qL.Provider,{value:{focusedContent:t},children:y.jsx(ZL.Provider,{value:{setFocusedContent:n,setFocusedContentKeyPath:i},children:e})})},Av=()=>{const e=E.useContext(ZL);if(e===void 0)throw new Error("useFocusDictionaryActions must be used within a FocusDictionaryProvider");return e},va=()=>{const e=Av(),t=E.useContext(qL);if(t===void 0)throw new Error("useFocusDictionaryState must be used within a FocusDictionaryProvider");return{...t,...e}},kA=({children:e})=>{const t=FH();return E.useEffect(()=>{t()},[]),y.jsx(VH,{children:y.jsx(HH,{children:y.jsx(qH,{children:e})})})},ZH=({children:e,fallback:t})=>{const n=KL(),{enabled:i}=$L();return E.useEffect(()=>{i||n()},[i]),i?e:t},YH=({children:e,fallback:t})=>{const[n,i]=E.useState(!1);return E.useEffect(()=>{i(window.self!==window.top)},[]),n?e:t},WH=({children:e,configuration:t,...n})=>y.jsx($H,{children:y.jsx(UH,{configuration:t,children:n.mode==="editor"?y.jsx(_A,{...n,children:y.jsx(kA,{children:e})}):y.jsx(YH,{fallback:e,children:y.jsx(_A,{...n,children:y.jsx(ZH,{fallback:e,children:y.jsx(kA,{children:e})})})})})}),XH=(e,t)=>fa(Ln.INTLAYER_URL_CHANGE,e,t),QH=()=>js(Ln.INTLAYER_IFRAME_CLICKED,PH),$f=E.createContext({locale:jL??Qe?.internationalization?.defaultLocale,setLocale:()=>null,isCookieEnabled:!0,disableEditor:!1}),JH=()=>E.useContext($f),e3=({locale:e,defaultLocale:t,children:n,setLocale:i,disableEditor:o,isCookieEnabled:s})=>{const{internationalization:c}=Qe??{},{defaultLocale:u,locales:f}=c??{},h=e??jL??t??u,[p,g]=fa(Ln.INTLAYER_CURRENT_LOCALE,h),S=i??(A=>{if(p.toString()!==A.toString()){if(!f?.map(String).includes(A)){console.error(`Locale ${A} is not available`);return}g(A),zL(A,s)}}),w=TH(e??p);return y.jsx($f.Provider,{value:{locale:w,setLocale:S,disableEditor:o},children:n})},yf=({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)}})},t3=250,n3=({children:e,onPress:t,onHover:n,onUnhover:i,onClickOutside:o,pressDuration:s=t3,isSelecting:c,...u})=>{const f=E.useRef(null),[h,p]=E.useState(!1),[g,b]=E.useState(c),S=E.useRef(null),w=typeof e=="string",A=()=>{b(!0),t()},R=()=>{S.current=setTimeout(()=>{A()},s)},N=()=>{S.current&&(clearTimeout(S.current),S.current=null)},x=()=>{N(),R()},C=()=>{p(!0),n?.()},I=()=>{i?.(),p(!1),N()},_=E.useCallback(O=>{f.current&&!f.current.contains(O.target)&&(b(!1),o?.())},[o]);E.useEffect(()=>(document.addEventListener("mousedown",_),()=>{document.removeEventListener("mousedown",_)}),[_]);const k=O=>{g&&(O.preventDefault(),O.stopPropagation())},L=()=>{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:k,onMouseDown:x,onMouseUp:I,onMouseLeave:I,onTouchStart:x,onTouchEnd:I,onTouchCancel:I,onBlur:L,onMouseEnter:C,ref:f,...u,children:e})},r3=({children:e,dictionaryKey:t,keyPath:n})=>{const{focusedContent:i,setFocusedContent:o}=va(),{postMessage:s,senderId:c}=Sv();return y.jsx(n3,{onPress:E.useCallback(()=>o({dictionaryKey:t,keyPath:n}),[t,n]),onHover:E.useCallback(()=>s({type:`${Ln.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:{dictionaryKey:t,keyPath:n},senderId:c}),[t,n]),onUnhover:E.useCallback(()=>s({type:`${Ln.INTLAYER_HOVERED_CONTENT_CHANGED}/post`,data:null,senderId:c}),[c]),isSelecting:E.useMemo(()=>(i?.dictionaryKey===t&&(i?.keyPath?.length??0)>0&&Vc(i?.keyPath??[],n))??!1,[i,n,t]),children:e})},_s=({children:e,...t})=>{const{enabled:n}=$L(),{disableEditor:i}=JH();return n&&!i?y.jsx(r3,{...t,children:e}):e},wv=({dictionaryKey:e,keyPath:t,children:n})=>{const i=Hs();return i?i.getEditedContentValue(e,t)??n:n},i3=e=>{const t=wv(e);if(typeof t=="object"){const n=xv(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(_s,{...e,key:e.children},e.children)):E.createElement(_s,{...e,key:e.children},n)}return E.createElement(_s,{...e,key:e.children},t)},a3=E.createContext({renderMarkdown:e=>e}),o3=()=>E.useContext(a3),s3=({dictionaryKey:e,keyPath:t,children:n,locale:i})=>{const{renderMarkdown:o}=o3(),s=wv({dictionaryKey:e,keyPath:t,children:n});if(typeof s!="string"){const c=xv(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)},l3=({dictionaryKey:e,keyPath:t,children:n,metadataKeyPath:i})=>qn(kL(wv({dictionaryKey:e,keyPath:t,children:n})),i),YL=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=YL(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)},c3={id:"intlayer-node-plugin",canHandle:e=>typeof e=="bigint"||typeof e=="string"||typeof e=="number",transform:(e,{plugins:t,...n})=>yf({...n,value:n.children,children:y.jsx(i3,{...n,children:n.children})})},u3={id:"react-node-plugin",canHandle:e=>typeof e=="object"&&typeof e?.props<"u"&&typeof e.key<"u",transform:(e,{plugins:t,...n})=>yf({...n,value:"[[react-element]]",children:y.jsx(_s,{...n,children:YL(e)})})},d3={id:"markdown-string-plugin",canHandle:e=>typeof e=="string",transform:(e,t,n)=>{const{plugins:i,...o}=t,s=n(kL(e),{plugins:[{id:"markdown-metadata-plugin",canHandle:c=>typeof c=="string"||typeof c=="number"||typeof c=="boolean"||!c,transform:(c,u)=>yf({...u,value:c,children:y.jsx(_s,{...o,children:y.jsx(l3,{...o,metadataKeyPath:u.keyPath,children:e})})})}],dictionaryKey:o.dictionaryKey,keyPath:[]});return yf({...t,value:e,children:y.jsx(_s,{...o,children:y.jsx(s3,{...o,children:e})}),additionalProps:{metadata:s}})}},f3={id:"markdown-plugin",canHandle:e=>typeof e=="object"&&e?.nodeType===F.Markdown,transform:(e,t,n)=>{const i=[...t.keyPath,{type:F.Markdown}],o=e[F.Markdown];return n(o,{...t,children:o,keyPath:i,plugins:[d3,...t.plugins??[]]})}},h3=(e,t,n)=>Ev(e,t,[c3,u3,f3]),Ot=(e,t)=>{const{locale:n}=E.useContext($f);return E.useMemo(()=>h3(e,n),[e,n,t])},Tv=({isCookieEnabled:e,onLocaleChange:t}={})=>{const{defaultLocale:n,locales:i}=Qe?.internationalization??{},{locale:o,setLocale:s,isCookieEnabled:c}=E.useContext($f);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),zL(u,e??c??!0),t?.(u)},[i,t,s])}};/**
52
- * react-router v7.9.4
53
- *
54
- * Copyright (c) Remix Software Inc.
55
- *
56
- * This source code is licensed under the MIT license found in the
57
- * LICENSE.md file in the root directory of this source tree.
58
- *
59
- * @license MIT
60
- */var LA="popstate";function p3(e={}){function t(i,o){let{pathname:s,search:c,hash:u}=i.location;return ag("",{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:Cc(o)}return y3(t,n,null,e)}function wt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Wr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function m3(){return Math.random().toString(36).substring(2,10)}function DA(e,t){return{usr:e.state,key:e.key,idx:t}}function ag(e,t,n=null,i){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Gs(t):t,state:n,key:t&&t.key||i||m3()}}function Cc({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 Gs(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 y3(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 R=p(),N=R==null?null:R-h;h=R,f&&f({action:u,location:A.location,delta:N})}function b(R,N){u="PUSH";let x=ag(A.location,R,N);h=p()+1;let C=DA(x,h),I=A.createHref(x);try{c.pushState(C,"",I)}catch(_){if(_ instanceof DOMException&&_.name==="DataCloneError")throw _;o.location.assign(I)}s&&f&&f({action:u,location:A.location,delta:1})}function S(R,N){u="REPLACE";let x=ag(A.location,R,N);h=p();let C=DA(x,h),I=A.createHref(x);c.replaceState(C,"",I),s&&f&&f({action:u,location:A.location,delta:0})}function w(R){return g3(R)}let A={get action(){return u},get location(){return e(o,c)},listen(R){if(f)throw new Error("A history only accepts one active listener");return o.addEventListener(LA,g),f=R,()=>{o.removeEventListener(LA,g),f=null}},createHref(R){return t(o,R)},createURL:w,encodeLocation(R){let N=w(R);return{pathname:N.pathname,search:N.search,hash:N.hash}},push:b,replace:S,go(R){return c.go(R)}};return A}function g3(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),wt(n,"No window.location.(origin|href) available to create URL");let i=typeof e=="string"?e:Cc(e);return i=i.replace(/ $/,"%20"),!t&&i.startsWith("//")&&(i=n+i),new URL(i,n)}function WL(e,t,n="/"){return v3(e,t,n,!1)}function v3(e,t,n,i){let o=typeof t=="string"?Gs(t):t,s=Ri(o.pathname||"/",n);if(s==null)return null;let c=XL(e);b3(c);let u=null;for(let f=0;u==null&&f<c.length;++f){let h=N3(s);u=I3(c[f],h,i)}return u}function XL(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;wt(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=Ci([i,p.relativePath]),b=n.concat(p);c.children&&c.children.length>0&&(wt(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),XL(c.children,t,b,g,f)),!(c.path==null&&!c.index)&&t.push({path:g,score:C3(g,c.index),routesMeta:b})};return e.forEach((c,u)=>{if(c.path===""||!c.path?.includes("?"))s(c,u);else for(let f of QL(c.path))s(c,u,!0,f)}),t}function QL(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=QL(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 b3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:R3(t.routesMeta.map(i=>i.childrenIndex),n.routesMeta.map(i=>i.childrenIndex)))}var E3=/^:[\w-]+$/,x3=3,S3=2,A3=1,w3=10,T3=-2,OA=e=>e==="*";function C3(e,t){let n=e.split("/"),i=n.length;return n.some(OA)&&(i+=T3),t&&(i+=S3),n.filter(o=>!OA(o)).reduce((o,s)=>o+(E3.test(s)?x3:s===""?A3:w3),i)}function R3(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 I3(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=gf({path:f.relativePath,caseSensitive:f.caseSensitive,end:h},p),b=f.route;if(!g&&h&&n&&!i[i.length-1].route.index&&(g=gf({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},p)),!g)return null;Object.assign(o,g.params),c.push({params:o,pathname:Ci([s,g.pathname]),pathnameBase:O3(Ci([s,g.pathnameBase])),route:b}),g.pathnameBase!=="/"&&(s=Ci([s,g.pathnameBase]))}return c}function gf(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,i]=_3(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 S=u[b];return g&&!S?h[p]=void 0:h[p]=(S||"").replace(/%2F/g,"/"),h},{}),pathname:s,pathnameBase:c,pattern:e}}function _3(e,t=!1,n=!0){Wr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let 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 N3(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Wr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Ri(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 k3(e,t="/"){let{pathname:n,search:i="",hash:o=""}=typeof e=="string"?Gs(e):e;return{pathname:n?n.startsWith("/")?n:L3(n,t):t,search:j3(i),hash:z3(o)}}function L3(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 ty(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 D3(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function JL(e){let t=D3(e);return t.map((n,i)=>i===t.length-1?n.pathname:n.pathnameBase)}function e1(e,t,n,i=!1){let o;typeof e=="string"?o=Gs(e):(o={...e},wt(!o.pathname||!o.pathname.includes("?"),ty("?","pathname","search",o)),wt(!o.pathname||!o.pathname.includes("#"),ty("#","pathname","hash",o)),wt(!o.search||!o.search.includes("#"),ty("#","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=k3(o,u),h=c&&c!=="/"&&c.endsWith("/"),p=(s||c===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(h||p)&&(f.pathname+="/"),f}var Ci=e=>e.join("/").replace(/\/\/+/g,"/"),O3=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),j3=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,z3=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function M3(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var t1=["POST","PUT","PATCH","DELETE"];new Set(t1);var P3=["GET",...t1];new Set(P3);var Ks=E.createContext(null);Ks.displayName="DataRouter";var qf=E.createContext(null);qf.displayName="DataRouterState";E.createContext(!1);var n1=E.createContext({isTransitioning:!1});n1.displayName="ViewTransition";var B3=E.createContext(new Map);B3.displayName="Fetchers";var U3=E.createContext(null);U3.displayName="Await";var Jr=E.createContext(null);Jr.displayName="Navigation";var Fc=E.createContext(null);Fc.displayName="Location";var Di=E.createContext({outlet:null,matches:[],isDataRoute:!1});Di.displayName="Route";var Cv=E.createContext(null);Cv.displayName="RouteError";function V3(e,{relative:t}={}){wt(Hc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:i}=E.useContext(Jr),{hash:o,pathname:s,search:c}=Gc(e,{relative:t}),u=s;return n!=="/"&&(u=s==="/"?n:Ci([n,s])),i.createHref({pathname:u,search:c,hash:o})}function Hc(){return E.useContext(Fc)!=null}function ba(){return wt(Hc(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Fc).location}var r1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function i1(e){E.useContext(Jr).static||E.useLayoutEffect(e)}function F3(){let{isDataRoute:e}=E.useContext(Di);return e?t4():H3()}function H3(){wt(Hc(),"useNavigate() may be used only in the context of a <Router> component.");let e=E.useContext(Ks),{basename:t,navigator:n}=E.useContext(Jr),{matches:i}=E.useContext(Di),{pathname:o}=ba(),s=JSON.stringify(JL(i)),c=E.useRef(!1);return i1(()=>{c.current=!0}),E.useCallback((f,h={})=>{if(Wr(c.current,r1),!c.current)return;if(typeof f=="number"){n.go(f);return}let p=e1(f,JSON.parse(s),o,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Ci([t,p.pathname])),(h.replace?n.replace:n.push)(p,h.state,h)},[t,n,s,o,e])}E.createContext(null);function Gc(e,{relative:t}={}){let{matches:n}=E.useContext(Di),{pathname:i}=ba(),o=JSON.stringify(JL(n));return E.useMemo(()=>e1(e,JSON.parse(o),i,t==="path"),[e,o,i,t])}function G3(e,t){return a1(e,t)}function a1(e,t,n,i,o){wt(Hc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=E.useContext(Jr),{matches:c}=E.useContext(Di),u=c[c.length-1],f=u?u.params:{},h=u?u.pathname:"/",p=u?u.pathnameBase:"/",g=u&&u.route;{let x=g&&g.path||"";o1(h,!g||x.endsWith("*")||x.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${x}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
61
-
62
- Please change the parent <Route path="${x}"> to <Route path="${x==="/"?"*":`${x}/*`}">.`)}let b=ba(),S;if(t){let x=typeof t=="string"?Gs(t):t;wt(p==="/"||x.pathname?.startsWith(p),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${p}" but pathname "${x.pathname}" was given in the \`location\` prop.`),S=x}else S=b;let w=S.pathname||"/",A=w;if(p!=="/"){let x=p.replace(/^\//,"").split("/");A="/"+w.replace(/^\//,"").split("/").slice(x.length).join("/")}let R=WL(e,{pathname:A});Wr(g||R!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Wr(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let N=Y3(R&&R.map(x=>Object.assign({},x,{params:Object.assign({},f,x.params),pathname:Ci([p,s.encodeLocation?s.encodeLocation(x.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?p:Ci([p,s.encodeLocation?s.encodeLocation(x.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:x.pathnameBase])})),c,n,i,o);return t&&N?E.createElement(Fc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},N):N}function K3(){let e=e4(),t=M3(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 $3=E.createElement(K3,null),q3=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(Di.Provider,{value:this.props.routeContext},E.createElement(Cv.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Z3({routeContext:e,match:t,children:n}){let i=E.useContext(Ks);return i&&i.static&&i.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=t.route.id),E.createElement(Di.Provider,{value:e},n)}function Y3(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);wt(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,S=p.route.loader&&!g.hasOwnProperty(p.route.id)&&(!b||b[p.route.id]===void 0);if(p.route.lazy||S){u=!0,f>=0?s=s.slice(0,f+1):s=[s[0]];break}}}return s.reduceRight((h,p,g)=>{let b,S=!1,w=null,A=null;n&&(b=c&&p.route.id?c[p.route.id]:void 0,w=p.route.errorElement||$3,u&&(f<0&&g===0?(o1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,A=null):f===g&&(S=!0,A=p.route.hydrateFallbackElement||null)));let R=t.concat(s.slice(0,g+1)),N=()=>{let x;return b?x=w:S?x=A:p.route.Component?x=E.createElement(p.route.Component,null):p.route.element?x=p.route.element:x=h,E.createElement(Z3,{match:p,routeContext:{outlet:h,matches:R,isDataRoute:n!=null},children:x})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?E.createElement(q3,{location:n.location,revalidation:n.revalidation,component:w,error:b,children:N(),routeContext:{outlet:null,matches:R,isDataRoute:!0},unstable_onError:i}):N()},null)}function Rv(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function W3(e){let t=E.useContext(Ks);return wt(t,Rv(e)),t}function X3(e){let t=E.useContext(qf);return wt(t,Rv(e)),t}function Q3(e){let t=E.useContext(Di);return wt(t,Rv(e)),t}function Iv(e){let t=Q3(e),n=t.matches[t.matches.length-1];return wt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function J3(){return Iv("useRouteId")}function e4(){let e=E.useContext(Cv),t=X3("useRouteError"),n=Iv("useRouteError");return e!==void 0?e:t.errors?.[n]}function t4(){let{router:e}=W3("useNavigate"),t=Iv("useNavigate"),n=E.useRef(!1);return i1(()=>{n.current=!0}),E.useCallback(async(o,s={})=>{Wr(n.current,r1),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...s}))},[e,t])}var jA={};function o1(e,t,n){!t&&!jA[e]&&(jA[e]=!0,Wr(!1,n))}E.memo(n4);function n4({routes:e,future:t,state:n,unstable_onError:i}){return a1(e,void 0,n,i,t)}function s1(e){wt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function r4({basename:e="/",children:t=null,location:n,navigationType:i="POP",navigator:o,static:s=!1}){wt(!Hc(),"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=Gs(n));let{pathname:f="/",search:h="",hash:p="",state:g=null,key:b="default"}=n,S=E.useMemo(()=>{let w=Ri(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 Wr(S!=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.`),S==null?null:E.createElement(Jr.Provider,{value:u},E.createElement(Fc.Provider,{children:t,value:S}))}function i4({children:e,location:t}){return G3(og(e),t)}function og(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,og(i.props.children,s));return}wt(i.type===s1,`[${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>`),wt(!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=og(i.props.children,s)),n.push(c)}),n}var ef="get",tf="application/x-www-form-urlencoded";function Zf(e){return e!=null&&typeof e.tagName=="string"}function a4(e){return Zf(e)&&e.tagName.toLowerCase()==="button"}function o4(e){return Zf(e)&&e.tagName.toLowerCase()==="form"}function s4(e){return Zf(e)&&e.tagName.toLowerCase()==="input"}function l4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function c4(e,t){return e.button===0&&(!t||t==="_self")&&!l4(e)}var Td=null;function u4(){if(Td===null)try{new FormData(document.createElement("form"),0),Td=!1}catch{Td=!0}return Td}var d4=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ny(e){return e!=null&&!d4.has(e)?(Wr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${tf}"`),null):e}function f4(e,t){let n,i,o,s,c;if(o4(e)){let u=e.getAttribute("action");i=u?Ri(u,t):null,n=e.getAttribute("method")||ef,o=ny(e.getAttribute("enctype"))||tf,s=new FormData(e)}else if(a4(e)||s4(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?Ri(f,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||ef,o=ny(e.getAttribute("formenctype"))||ny(u.getAttribute("enctype"))||tf,s=new FormData(u,e),!u4()){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(Zf(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ef,i=null,o=tf,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 _v(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function h4(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&&Ri(i.pathname,t)==="/"?i.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:i.pathname=`${i.pathname.replace(/\/$/,"")}.${n}`,i}async function p4(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 m4(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 y4(e,t,n){let i=await Promise.all(e.map(async o=>{let s=t.routes[o.route.id];if(s){let c=await p4(s,n);return c.links?c.links():[]}return[]}));return E4(i.flat(1).filter(m4).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function zA(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 g4(e,t,{includeHydrateFallback:n}={}){return v4(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 v4(e){return[...new Set(e)]}function b4(e){let t={},n=Object.keys(e).sort();for(let i of n)t[i]=e[i];return t}function E4(e,t){let n=new Set;return new Set(t),e.reduce((i,o)=>{let s=JSON.stringify(b4(o));return n.has(s)||(n.add(s),i.push({key:s,link:o})),i},[])}function l1(){let e=E.useContext(Ks);return _v(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function x4(){let e=E.useContext(qf);return _v(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Nv=E.createContext(void 0);Nv.displayName="FrameworkContext";function c1(){let e=E.useContext(Nv);return _v(e,"You must render this element inside a <HydratedRouter> element"),e}function S4(e,t){let n=E.useContext(Nv),[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=N=>{N.forEach(x=>{c(x.isIntersecting)})},R=new IntersectionObserver(A,{threshold:.5});return b.current&&R.observe(b.current),()=>{R.disconnect()}}},[e]),E.useEffect(()=>{if(i){let A=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(A)}}},[i]);let S=()=>{o(!0)},w=()=>{o(!1),c(!1)};return n?e!=="intent"?[s,b,{}]:[s,b,{onFocus:Jl(u,S),onBlur:Jl(f,w),onMouseEnter:Jl(h,S),onMouseLeave:Jl(p,w),onTouchStart:Jl(g,S)}]:[!1,b,{}]}function Jl(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function A4({page:e,...t}){let{router:n}=l1(),i=E.useMemo(()=>WL(n.routes,e,n.basename),[n.routes,e,n.basename]);return i?E.createElement(T4,{page:e,matches:i,...t}):null}function w4(e){let{manifest:t,routeModules:n}=c1(),[i,o]=E.useState([]);return E.useEffect(()=>{let s=!1;return y4(e,t,n).then(c=>{s||o(c)}),()=>{s=!0}},[e,t,n]),i}function T4({page:e,matches:t,...n}){let i=ba(),{manifest:o,routeModules:s}=c1(),{basename:c}=l1(),{loaderData:u,matches:f}=x4(),h=E.useMemo(()=>zA(e,t,f,o,i,"data"),[e,t,f,o,i]),p=E.useMemo(()=>zA(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(N=>{let x=o.routes[N.route.id];!x||!x.hasLoader||(!h.some(C=>C.route.id===N.route.id)&&N.route.id in u&&s[N.route.id]?.shouldRevalidate||x.hasClientLoader?A=!0:w.add(N.route.id))}),w.size===0)return[];let R=h4(e,c,"data");return A&&w.size>0&&R.searchParams.set("_routes",t.filter(N=>w.has(N.route.id)).map(N=>N.route.id).join(",")),[R.pathname+R.search]},[c,u,i,o,h,t,e,s]),b=E.useMemo(()=>g4(p,o),[p,o]),S=w4(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})),S.map(({key:w,link:A})=>E.createElement("link",{key:w,nonce:n.nonce,...A})))}function C4(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var u1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{u1&&(window.__reactRouterVersion="7.9.4")}catch{}function R4({basename:e,children:t,window:n}){let i=E.useRef();i.current==null&&(i.current=p3({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(r4,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:o})}var d1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,f1=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},S){let{basename:w}=E.useContext(Jr),A=typeof h=="string"&&d1.test(h),R,N=!1;if(typeof h=="string"&&A&&(R=h,u1))try{let V=new URL(window.location.href),$=h.startsWith("//")?new URL(V.protocol+h):new URL(h),H=Ri($.pathname,w);$.origin===V.origin&&H!=null?h=H+$.search+$.hash:N=!0}catch{Wr(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let x=V3(h,{relative:o}),[C,I,_]=S4(i,b),k=k4(h,{replace:c,state:u,target:f,preventScrollReset:p,relative:o,viewTransition:g});function L(V){t&&t(V),V.defaultPrevented||k(V)}let O=E.createElement("a",{...b,..._,href:R||x,onClick:N||s?t:L,ref:C4(S,I),target:f,"data-discover":!A&&n==="render"?"true":void 0});return C&&!A?E.createElement(E.Fragment,null,O,E.createElement(A4,{page:x})):O});f1.displayName="Link";var I4=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=Gc(c,{relative:h.relative}),b=ba(),S=E.useContext(qf),{navigator:w,basename:A}=E.useContext(Jr),R=S!=null&&z4(g)&&u===!0,N=w.encodeLocation?w.encodeLocation(g).pathname:g.pathname,x=b.pathname,C=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;n||(x=x.toLowerCase(),C=C?C.toLowerCase():null,N=N.toLowerCase()),C&&A&&(C=Ri(C,A)||C);const I=N!=="/"&&N.endsWith("/")?N.length-1:N.length;let _=x===N||!o&&x.startsWith(N)&&x.charAt(I)==="/",k=C!=null&&(C===N||!o&&C.startsWith(N)&&C.charAt(N.length)==="/"),L={isActive:_,isPending:k,isTransitioning:R},O=_?t:void 0,V;typeof i=="function"?V=i(L):V=[i,_?"active":null,k?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let $=typeof s=="function"?s(L):s;return E.createElement(f1,{...h,"aria-current":O,className:V,ref:p,style:$,to:c,viewTransition:u},typeof f=="function"?f(L):f)});I4.displayName="NavLink";var _4=E.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:i,replace:o,state:s,method:c=ef,action:u,onSubmit:f,relative:h,preventScrollReset:p,viewTransition:g,...b},S)=>{let w=O4(),A=j4(u,{relative:h}),R=c.toLowerCase()==="get"?"get":"post",N=typeof u=="string"&&d1.test(u),x=C=>{if(f&&f(C),C.defaultPrevented)return;C.preventDefault();let I=C.nativeEvent.submitter,_=I?.getAttribute("formmethod")||c;w(I||C.currentTarget,{fetcherKey:t,method:_,navigate:n,replace:o,state:s,relative:h,preventScrollReset:p,viewTransition:g})};return E.createElement("form",{ref:S,method:R,action:A,onSubmit:i?f:x,...b,"data-discover":!N&&e==="render"?"true":void 0})});_4.displayName="Form";function N4(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function h1(e){let t=E.useContext(Ks);return wt(t,N4(e)),t}function k4(e,{target:t,replace:n,state:i,preventScrollReset:o,relative:s,viewTransition:c}={}){let u=F3(),f=ba(),h=Gc(e,{relative:s});return E.useCallback(p=>{if(c4(p,t)){p.preventDefault();let g=n!==void 0?n:Cc(f)===Cc(h);u(e,{replace:g,state:i,preventScrollReset:o,relative:s,viewTransition:c})}},[f,u,h,n,i,t,e,o,s,c])}var L4=0,D4=()=>`__${String(++L4)}__`;function O4(){let{router:e}=h1("useSubmit"),{basename:t}=E.useContext(Jr),n=J3();return E.useCallback(async(i,o={})=>{let{action:s,method:c,encType:u,formData:f,body:h}=f4(i,t);if(o.navigate===!1){let p=o.fetcherKey||D4();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 j4(e,{relative:t}={}){let{basename:n}=E.useContext(Jr),i=E.useContext(Di);wt(i,"useFormAction must be used inside a RouteContext");let[o]=i.matches.slice(-1),s={...Gc(e||".",{relative:t})},c=ba();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:Ci([n,s.pathname])),Cc(s)}function z4(e,{relative:t}={}){let n=E.useContext(n1);wt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=h1("useViewTransitionState"),o=Gc(e,{relative:t});if(!n.isTransitioning)return!1;let s=Ri(n.currentLocation.pathname,i)||n.currentLocation.pathname,c=Ri(n.nextLocation.pathname,i)||n.nextLocation.pathname;return gf(o.pathname,c)!=null||gf(o.pathname,s)!=null}var xo=bR();const M4=bv(xo);function p1(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=p1(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function Yf(){for(var e,t,n=0,i="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=p1(e))&&(i&&(i+=" "),i+=t);return i}const kv="-",P4=e=>{const t=U4(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:c=>{const u=c.split(kv);return u[0]===""&&u.length!==1&&u.shift(),m1(u,t)||B4(c)},getConflictingClassGroupIds:(c,u)=>{const f=n[c]||[];return u&&i[c]?[...f,...i[c]]:f}}},m1=(e,t)=>{if(e.length===0)return t.classGroupId;const n=e[0],i=t.nextPart.get(n),o=i?m1(e.slice(1),i):void 0;if(o)return o;if(t.validators.length===0)return;const s=e.join(kv);return t.validators.find(({validator:c})=>c(s))?.classGroupId},MA=/^\[(.+)\]$/,B4=e=>{if(MA.test(e)){const t=MA.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},U4=e=>{const{theme:t,classGroups:n}=e,i={nextPart:new Map,validators:[]};for(const o in n)sg(n[o],i,o,t);return i},sg=(e,t,n,i)=>{e.forEach(o=>{if(typeof o=="string"){const s=o===""?t:PA(t,o);s.classGroupId=n;return}if(typeof o=="function"){if(V4(o)){sg(o(i),t,n,i);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([s,c])=>{sg(c,PA(t,s),n,i)})})},PA=(e,t)=>{let n=e;return t.split(kv).forEach(i=>{n.nextPart.has(i)||n.nextPart.set(i,{nextPart:new Map,validators:[]}),n=n.nextPart.get(i)}),n},V4=e=>e.isThemeGetter,F4=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)}}},lg="!",cg=":",H4=cg.length,G4=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===cg){s.push(o.slice(f,w)),f=w+H4;continue}if(A==="/"){h=w;continue}}A==="["?c++:A==="]"?c--:A==="("?u++:A===")"&&u--}const p=s.length===0?o:o.substring(f),g=K4(p),b=g!==p,S=h&&h>f?h-f:void 0;return{modifiers:s,hasImportantModifier:b,baseClassName:g,maybePostfixModifierPosition:S}};if(t){const o=t+cg,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},K4=e=>e.endsWith(lg)?e.substring(0,e.length-1):e.startsWith(lg)?e.substring(1):e,$4=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}},q4=e=>({cache:F4(e.cacheSize),parseClassName:G4(e),sortModifiers:$4(e),...P4(e)}),Z4=/\s+/,Y4=(e,t)=>{const{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:o,sortModifiers:s}=t,c=[],u=e.trim().split(Z4);let f="";for(let h=u.length-1;h>=0;h-=1){const p=u[h],{isExternal:g,modifiers:b,hasImportantModifier:S,baseClassName:w,maybePostfixModifierPosition:A}=n(p);if(g){f=p+(f.length>0?" "+f:f);continue}let R=!!A,N=i(R?w.substring(0,A):w);if(!N){if(!R){f=p+(f.length>0?" "+f:f);continue}if(N=i(w),!N){f=p+(f.length>0?" "+f:f);continue}R=!1}const x=s(b).join(":"),C=S?x+lg:x,I=C+N;if(c.includes(I))continue;c.push(I);const _=o(N,R);for(let k=0;k<_.length;++k){const L=_[k];c.push(C+L)}f=p+(f.length>0?" "+f:f)}return f};function W4(){let e=0,t,n,i="";for(;e<arguments.length;)(t=arguments[e++])&&(n=y1(t))&&(i&&(i+=" "),i+=n);return i}const y1=e=>{if(typeof e=="string")return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=y1(e[i]))&&(n&&(n+=" "),n+=t);return n};function X4(e,...t){let n,i,o,s=c;function c(f){const h=t.reduce((p,g)=>g(p),e());return n=q4(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=Y4(f,n);return o(f,p),p}return function(){return s(W4.apply(null,arguments))}}const Kt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},g1=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,v1=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Q4=/^\d+\/\d+$/,J4=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,eG=/\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$/,tG=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,nG=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,rG=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ds=e=>Q4.test(e),Ge=e=>!!e&&!Number.isNaN(Number(e)),aa=e=>!!e&&Number.isInteger(Number(e)),ry=e=>e.endsWith("%")&&Ge(e.slice(0,-1)),Si=e=>J4.test(e),iG=()=>!0,aG=e=>eG.test(e)&&!tG.test(e),b1=()=>!1,oG=e=>nG.test(e),sG=e=>rG.test(e),lG=e=>!xe(e)&&!Se(e),cG=e=>$s(e,S1,b1),xe=e=>g1.test(e),Wa=e=>$s(e,A1,aG),iy=e=>$s(e,pG,Ge),BA=e=>$s(e,E1,b1),uG=e=>$s(e,x1,sG),Cd=e=>$s(e,w1,oG),Se=e=>v1.test(e),ec=e=>qs(e,A1),dG=e=>qs(e,mG),UA=e=>qs(e,E1),fG=e=>qs(e,S1),hG=e=>qs(e,x1),Rd=e=>qs(e,w1,!0),$s=(e,t,n)=>{const i=g1.exec(e);return i?i[1]?t(i[1]):n(i[2]):!1},qs=(e,t,n=!1)=>{const i=v1.exec(e);return i?i[1]?t(i[1]):n:!1},E1=e=>e==="position"||e==="percentage",x1=e=>e==="image"||e==="url",S1=e=>e==="length"||e==="size"||e==="bg-size",A1=e=>e==="length",pG=e=>e==="number",mG=e=>e==="family-name",w1=e=>e==="shadow",yG=()=>{const e=Kt("color"),t=Kt("font"),n=Kt("text"),i=Kt("font-weight"),o=Kt("tracking"),s=Kt("leading"),c=Kt("breakpoint"),u=Kt("container"),f=Kt("spacing"),h=Kt("radius"),p=Kt("shadow"),g=Kt("inset-shadow"),b=Kt("text-shadow"),S=Kt("drop-shadow"),w=Kt("blur"),A=Kt("perspective"),R=Kt("aspect"),N=Kt("ease"),x=Kt("animate"),C=()=>["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"],_=()=>[...I(),Se,xe],k=()=>["auto","hidden","clip","visible","scroll"],L=()=>["auto","contain","none"],O=()=>[Se,xe,f],V=()=>[ds,"full","auto",...O()],$=()=>[aa,"none","subgrid",Se,xe],H=()=>["auto",{span:["full",aa,Se,xe]},aa,Se,xe],ae=()=>[aa,"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=()=>[ds,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...O()],K=()=>[e,Se,xe],me=()=>[...I(),UA,BA,{position:[Se,xe]}],Ee=()=>["no-repeat",{repeat:["","x","y","space","round"]}],j=()=>["auto","cover","contain",fG,cG,{size:[Se,xe]}],P=()=>[ry,ec,Wa],J=()=>["","none","full",h,Se,xe],te=()=>["",Ge,ec,Wa],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"],re=()=>[Ge,ry,UA,BA],Re=()=>["","none",w,Se,xe],Ae=()=>["none",Ge,Se,xe],ze=()=>["none",Ge,Se,xe],Ye=()=>[Ge,Se,xe],et=()=>[ds,"full",...O()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Si],breakpoint:[Si],color:[iG],container:[Si],"drop-shadow":[Si],ease:["in","out","in-out"],font:[lG],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Si],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Si],shadow:[Si],spacing:["px",Ge],text:[Si],"text-shadow":[Si],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ds,xe,Se,R]}],container:["container"],columns:[{columns:[Ge,xe,Se,u]}],"break-after":[{"break-after":C()}],"break-before":[{"break-before":C()}],"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:_()}],overflow:[{overflow:k()}],"overflow-x":[{"overflow-x":k()}],"overflow-y":[{"overflow-y":k()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:V()}],"inset-x":[{"inset-x":V()}],"inset-y":[{"inset-y":V()}],start:[{start:V()}],end:[{end:V()}],top:[{top:V()}],right:[{right:V()}],bottom:[{bottom:V()}],left:[{left:V()}],visibility:["visible","invisible","collapse"],z:[{z:[aa,"auto",Se,xe]}],basis:[{basis:[ds,"full","auto",u,...O()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ge,ds,"auto","initial","none",xe]}],grow:[{grow:["",Ge,Se,xe]}],shrink:[{shrink:["",Ge,Se,xe]}],order:[{order:[aa,"first","last","none",Se,xe]}],"grid-cols":[{"grid-cols":$()}],"col-start-end":[{col:H()}],"col-start":[{"col-start":ae()}],"col-end":[{"col-end":ae()}],"grid-rows":[{"grid-rows":$()}],"row-start-end":[{row:H()}],"row-start":[{"row-start":ae()}],"row-end":[{"row-end":ae()}],"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,ec,Wa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,Se,iy]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ry,xe]}],"font-family":[{font:[dG,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,iy]}],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:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ge,"from-font","auto",Se,Wa]}],"text-decoration-color":[{decoration:K()}],"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"]},aa,Se,xe],radial:["",Se,xe],conic:[aa,Se,xe]},hG,uG]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:P()}],"gradient-via-pos":[{via:P()}],"gradient-to-pos":[{to:P()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],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:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ge,Se,xe]}],"outline-w":[{outline:["",Ge,ec,Wa]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",p,Rd,Cd]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",g,Rd,Cd]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[Ge,Wa]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",b,Rd,Cd]}],"text-shadow-color":[{"text-shadow":K()}],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":re()}],"mask-image-linear-to-pos":[{"mask-linear-to":re()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":re()}],"mask-image-t-to-pos":[{"mask-t-to":re()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":re()}],"mask-image-r-to-pos":[{"mask-r-to":re()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":re()}],"mask-image-b-to-pos":[{"mask-b-to":re()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":re()}],"mask-image-l-to-pos":[{"mask-l-to":re()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":re()}],"mask-image-x-to-pos":[{"mask-x-to":re()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":re()}],"mask-image-y-to-pos":[{"mask-y-to":re()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[Se,xe]}],"mask-image-radial-from-pos":[{"mask-radial-from":re()}],"mask-image-radial-to-pos":[{"mask-radial-to":re()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"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":re()}],"mask-image-conic-to-pos":[{"mask-conic-to":re()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"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",S,Rd,Cd]}],"drop-shadow-color":[{"drop-shadow":K()}],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",N,Se,xe]}],delay:[{delay:[Ge,Se,xe]}],animate:[{animate:["none",x,Se,xe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[A,Se,xe]}],"perspective-origin":[{"perspective-origin":_()}],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:_()}],"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:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",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",...K()]}],"stroke-w":[{stroke:[Ge,ec,Wa,iy]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-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"]}},T1=X4(yG),fe=(...e)=>T1(Yf(e)),VA=({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"})]})]})}),zs=({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(VA,{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(VA,{className:"size-10 max-h-full max-w-full"})}):e??y.jsx(y.Fragment,{})}),FA=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,HA=Yf,mn=(e,t)=>n=>{var i;if(t?.variants==null)return HA(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=FA(p)||FA(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,...S}=p;return Object.entries(S).every(w=>{let[A,R]=w;return Array.isArray(R)?R.includes({...s,...u}[A]):{...s,...u}[A]===R})?[...h,g,b]:h},[]);return HA(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}({}),pc=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const ay=mn("",{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:{[`${pc.LEFT}`]:"left-3",[`${pc.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}({}),wr=function(e){return e.LEFT="left",e.CENTER="center",e.RIGHT="right",e}({});const gG=mn("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:{[`${wr.LEFT}`]:"text-left",[`${wr.CENTER}`]:"text-center",[`${wr.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:wr.CENTER,isFullWidth:!1,hasIconRight:!1,hasIconLeft:!1}}),st=({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:S,className:w,type:A="button","aria-describedby":R,"aria-expanded":N,"aria-haspopup":x,"aria-pressed":C,...I})=>{const _=e===Ve.LINK||e===Ve.INVISIBLE_LINK,k=!i&&(o||s),L={"aria-label":k?S:void 0,"aria-labelledby":void 0,"aria-describedby":R,"aria-expanded":N,"aria-haspopup":x,"aria-pressed":f!==void 0?f:C,"aria-busy":u,"aria-current":f?"page":void 0,"aria-disabled":b||u,"aria-selected":h};return y.jsxs("button",{disabled:u||b,role:_?"link":"button",type:A,className:gG({variant:e,size:t,color:n,isFullWidth:p,textAlign:g??(s?wr.LEFT:wr.CENTER),hasIconLeft:!!(typeof i<"u"&&(typeof o<"u"||u)),hasIconRight:typeof i<"u"&&typeof s<"u",className:w}),...L,...I,children:[o&&!u&&y.jsx(o,{className:ay({size:t,className:c,position:pc.LEFT}),"aria-hidden":"true"}),y.jsx(zs,{className:ay({size:t,className:c,position:pc.LEFT}),isLoading:u,"aria-hidden":"true","data-testid":"loader"}),i&&y.jsx("span",{children:i}),!i&&k&&y.jsx("span",{className:"sr-only",children:S}),s&&y.jsx(s,{className:ay({size:t,className:c,position:pc.RIGHT}),"aria-hidden":"true"})]})},Lv=({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})});/**
63
- * @license lucide-react v0.547.0 - ISC
64
- *
65
- * This source code is licensed under the ISC license.
66
- * See the LICENSE file in the root directory of this source tree.
67
- */const vG=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),bG=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,i)=>i?i.toUpperCase():n.toLowerCase()),GA=e=>{const t=bG(e);return t.charAt(0).toUpperCase()+t.slice(1)},C1=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim(),EG=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
68
- * @license lucide-react v0.547.0 - ISC
69
- *
70
- * This source code is licensed under the ISC license.
71
- * See the LICENSE file in the root directory of this source tree.
72
- */var xG={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
73
- * @license lucide-react v0.547.0 - ISC
74
- *
75
- * This source code is licensed under the ISC license.
76
- * See the LICENSE file in the root directory of this source tree.
77
- */const SG=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,...xG,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:C1("lucide",o),...!s&&!EG(u)&&{"aria-hidden":"true"},...u},[...c.map(([h,p])=>E.createElement(h,p)),...Array.isArray(s)?s:[s]]));/**
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 bt=(e,t)=>{const n=E.forwardRef(({className:i,...o},s)=>E.createElement(SG,{ref:s,iconNode:t,className:C1(`lucide-${vG(GA(e))}`,`lucide-${e}`,i),...o}));return n.displayName=GA(e),n};/**
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
- */const AG=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],wG=bt("arrow-left",AG);/**
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 TG=[["path",{d:"m18 9-6-6-6 6",key:"kcunyi"}],["path",{d:"M12 3v14",key:"7cf3v8"}],["path",{d:"M5 21h14",key:"11awu3"}]],CG=bt("arrow-up-from-line",TG);/**
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 RG=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Zs=bt("check",RG);/**
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 IG=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],R1=bt("chevron-down",IG);/**
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 _G=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],NG=bt("chevron-left",_G);/**
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 kG=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],vf=bt("chevron-right",kG);/**
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 LG=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],DG=bt("chevron-up",LG);/**
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 OG=[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]],jG=bt("chevrons-up-down",OG);/**
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 zG=[["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"}]],MG=bt("copy-check",zG);/**
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 PG=[["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"}]],BG=bt("copy",PG);/**
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 UG=[["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"}]],VG=bt("download",UG);/**
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 FG=[["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"}]],HG=bt("external-link",FG);/**
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 GG=[["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"}]],KG=bt("eye-off",GG);/**
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 $G=[["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"}]],qG=bt("eye",$G);/**
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 ZG=[["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"}]],YG=bt("globe",ZG);/**
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 WG=[["path",{d:"M11 19H5v-6",key:"8awifj"}],["path",{d:"M13 5h6v6",key:"7voy1q"}],["path",{d:"M19 5 5 19",key:"wwaj1z"}]],XG=bt("move-diagonal",WG);/**
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:"M12 2v20",key:"t6zp3m"}],["path",{d:"m8 18 4 4 4-4",key:"bh5tu3"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}]],JG=bt("move-vertical",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 eK=[["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"}]],I1=bt("pencil",eK);/**
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 tK=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Wf=bt("plus",tK);/**
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 nK=[["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"}]],rK=bt("rotate-ccw",nK);/**
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 iK=[["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"}]],KA=bt("save",iK);/**
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 aK=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],oK=bt("search",aK);/**
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 sK=[["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"}]],Xf=bt("trash",sK);/**
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 lK=[["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"}]],_1=bt("wand-sparkles",lK);/**
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 cK=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],So=bt("x",cK),N1=({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,[S,w]=E.useState(i),A=b?n:S,R=!A,N=h||`accordion-content-${Math.random().toString(36).substr(2,9)}`,x=E.useCallback(I=>{if(c)return;const _=!A;b||w(_),o?.(_),s?.(I)},[c,A,b,o,s]),C=E.useCallback(I=>{(I.key==="Enter"||I.key===" ")&&(I.preventDefault(),x(I))},[x]);return y.jsxs("div",{className:"w-full",children:[y.jsx(st,{variant:Ve.HOVERABLE,color:Pe.TEXT,onClick:x,onKeyDown:C,disabled:c,isFullWidth:!0,className:fe("flex items-center justify-between gap-2",f),IconRight:R1,iconClassName:fe("transform transition-transform duration-500 ease-in-out",A?"rotate-0":"-rotate-180"),"aria-expanded":A,"aria-controls":N,"aria-label":p,role:"button",...g,children:t}),y.jsx(Lv,{id:N,tabIndex:R?-1:void 0,isHidden:R,className:u,role:"region","aria-labelledby":N,children:e})]})};let Un=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}({}),ys=function(e){return e.DEFAULT="default",e.NONE="none",e.OUTLINE="outline",e.HOVERABLE="hoverable",e}({}),lc=function(e){return e.SMALL="sm",e.MEDIUM="md",e.LARGE="lg",e}({});const uK=mn("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:{[Un.PRIMARY]:"border-primary bg-primary text-primary hover:bg-primary-500",[Un.SECONDARY]:"border-secondary bg-secondary text-secondary hover:bg-secondary-300",[Un.DESTRUCTIVE]:"border-destructive bg-destructive text-destructive hover:bg-destructive-500",[Un.SUCCESS]:"border-success bg-success text-success hover:bg-success-500",[Un.ERROR]:"border-error bg-error text-error hover:bg-error-500",[Un.NEUTRAL]:"border-neutral bg-neutral text-neutral hover:bg-neutral-600",[Un.LIGHT]:"border-white bg-white text-white hover:bg-neutral-500",[Un.DARK]:"border-neutral-800 bg-neutral-800 text-neutral-800 hover:bg-neutral-900",[Un.TEXT]:"border-text bg-text text-text hover:opacity-80",[Un.CUSTOM]:""},variant:{[ys.DEFAULT]:"rounded-lg text-text-opposite",[ys.NONE]:"border-none bg-opacity-0 text-inherit hover:bg-opacity-0",[ys.OUTLINE]:"rounded-lg border-[1.5px] bg-opacity-0 hover:bg-opacity-30",[ys.HOVERABLE]:"rounded-lg border-none bg-opacity-0 transition hover:bg-opacity-10"},size:{[lc.SMALL]:"px-2 py-0.5 text-xs",[lc.MEDIUM]:"px-2.5 py-0.5 text-xs",[lc.LARGE]:"px-3 py-1 text-sm"}},defaultVariants:{variant:ys.DEFAULT,color:Un.PRIMARY,size:lc.MEDIUM}}),dK=({className:e,variant:t=ys.DEFAULT,color:n=Un.PRIMARY,size:i=lc.MEDIUM,children:o,clickable:s=!1,dismissible:c=!1,onClick:u,onDismiss:f,role:h,tabIndex:p,"aria-label":g,...b})=>{const S=s?"button":"span",w=R=>{s&&u&&(R.key==="Enter"||R.key===" ")&&(R.preventDefault(),u(R))},A=R=>{R.stopPropagation(),f?.()};return y.jsxs(S,{className:fe(uK({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 Ja=function(e){return e.DEFAULT="default",e.INVISIBLE_LINK="invisible-link",e.BUTTON="button",e.BUTTON_OUTLINED="button-outlined",e.HOVERABLE="hoverable",e}({}),In=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}({}),Id=function(e){return e.DEFAULT="default",e.TRUE="true",e.FALSE="false",e}({});const fK=mn("gap-3 transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{[`${Ja.DEFAULT}`]:"h-auto justify-start border-inherit bg-current/0 px-1 underline-offset-4 hover:bg-current/0 hover:underline",[`${Ja.INVISIBLE_LINK}`]:"h-auto justify-start border-inherit bg-current/0 px-1 underline-offset-4 hover:bg-current/0",[`${Ja.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",[`${Ja.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",[`${Ja.HOVERABLE}`]:"block rounded-lg border-none bg-current/0 transition hover:bg-current/20 aria-[current]:bg-current/5"},color:{[`${In.PRIMARY}`]:"text-primary",[`${In.SECONDARY}`]:"text-secondary",[`${In.DESTRUCTIVE}`]:"text-destructive",[`${In.NEUTRAL}`]:"text-neutral",[`${In.LIGHT}`]:"text-white",[`${In.DARK}`]:"text-neutral-800",[`${In.TEXT}`]:"text-text",[`${In.TEXT_INVERSE}`]:"text-text-opposite",[`${In.ERROR}`]:"text-error",[`${In.SUCCESS}`]:"text-success",[`${In.CUSTOM}`]:""},underlined:{[Id.DEFAULT]:"",[Id.TRUE]:"underline",[Id.FALSE]:"no-underline"}},defaultVariants:{variant:Ja.DEFAULT,color:In.PRIMARY,underlined:Id.DEFAULT}}),hK=({href:e,isExternalLink:t})=>{const n=typeof e=="string"&&e.trim()!=="";return t===!0||typeof t>"u"&&n&&/^https?:\/\//.test(e)},Dv=e=>{const{variant:t=Ja.DEFAULT,color:n=In.PRIMARY,children:i,label:o,className:s,isActive:c,underlined:u,locale:f,isExternalLink:h,href:p,...g}=e,b=hK(e),S=typeof i=="string",w=b?"noopener noreferrer nofollow":void 0,A=b?"_blank":"_self";return y.jsxs("a",{href:f&&p&&!b?_H(p,f):p,"aria-label":o,rel:w,target:A,"aria-current":c?"page":void 0,className:fe(fK({variant:t,color:n,underlined:u,className:s})),...g,children:[t==="button"?y.jsx("span",{children:i}):i,b&&S&&y.jsx(HG,{className:"ml-2 inline-block size-4"})]})},pK=mn("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"}}),mK=({href:e,lang:t,children:n,onClick:i,color:o,position:s,locale:c,className:u,...f})=>{const h=Ev("breadcrumb").linkLabel;return y.jsxs(y.Fragment,{children:[y.jsx(Dv,{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()})]})},yK=({children:e,onClick:t,color:n,position:i,className:o,...s})=>{const{linkLabel:c}=Ot("breadcrumb");return y.jsxs(y.Fragment,{children:[y.jsx(st,{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()})]})},gK=({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()})]}),vK=({links:e,className:t,color:n=In.TEXT,locale:i,elementType:o="page",separator:s=y.jsx(vf,{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(pK({size:h,spacing:p}),t),...u&&{itemScope:!0,itemType:"http://schema.org/BreadcrumbList"},...g,children:b.map((S,w)=>{const A=w===b.length-1,R=typeof S=="object"&&typeof S.href=="string",N=typeof S=="object"&&typeof S.onClick=="function",x=w===b.length-1,C=x?o:void 0,I=S==="...",_=S.text??S;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-${_}`);let k=y.jsx(gK,{position:w+1,"aria-current":C,className:fe("transition-colors duration-200",x&&"text-neutral-900"),children:_},_);R?k=y.jsx(mK,{href:S.href,color:n,position:w+1,locale:i,"aria-current":C,className:fe(x&&"cursor-default text-neutral-900"),children:_},_):N&&(k=y.jsx(yK,{onClick:S.onClick,color:n,position:w+1,"aria-current":C,className:fe(x&&"cursor-default text-neutral-900"),children:_},_));const L=E.createElement("li",{...u&&{itemProp:"itemListElement",itemScope:!0,itemType:"https://schema.org/ListItem"},key:_,className:"flex items-center"},k);return A?L:y.jsxs(E.Fragment,{children:[L,y.jsx("li",{"aria-hidden":"true",className:"flex items-center",children:s})]},_)})})})};function Xe(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function $A(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function lo(...e){return t=>{let n=!1;const i=e.map(o=>{const s=$A(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():$A(e[o],null)}}}}function Tt(...e){return E.useCallback(lo(...e),e)}function bK(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 Kc(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:S,...w}=g,A=b?.[e]?.[f]||u,R=E.useMemo(()=>w,Object.values(w));return y.jsx(A.Provider,{value:R,children:S})};h.displayName=s+"Provider";function p(g,b){const S=b?.[e]?.[f]||u,w=E.useContext(S);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,EK(o,...t)]}function EK(...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 un=globalThis?.document?E.useLayoutEffect:()=>{},xK=vR[" useId ".trim().toString()]||(()=>{}),SK=0;function dr(e){const[t,n]=E.useState(xK());return un(()=>{n(i=>i??String(SK++))},[e]),t?`radix-${t}`:""}var AK=vR[" useInsertionEffect ".trim().toString()]||un;function bf({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){const[o,s,c]=wK({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=TK(p)?p(e):p;g!==e&&c.current?.(g)}else s(p)},[u,e,s,c]);return[f,h]}function wK({defaultProp:e,onChange:t}){const[n,i]=E.useState(e),o=E.useRef(n),s=E.useRef(t);return AK(()=>{s.current=t},[t]),E.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,i,s]}function TK(e){return typeof e=="function"}function Ms(e){const t=RK(e),n=E.forwardRef((i,o)=>{const{children:s,...c}=i,u=E.Children.toArray(s),f=u.find(_K);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 CK=Ms("Slot");function RK(e){const t=E.forwardRef((n,i)=>{const{children:o,...s}=n;if(E.isValidElement(o)){const c=kK(o),u=NK(s,o.props);return o.type!==E.Fragment&&(u.ref=i?lo(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 IK=Symbol("radix.slottable");function _K(e){return E.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===IK}function NK(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 kK(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 LK=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],He=LK.reduce((e,t)=>{const n=Ms(`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 k1(e,t){e&&xo.flushSync(()=>e.dispatchEvent(t))}function Tr(e){const t=E.useRef(e);return E.useEffect(()=>{t.current=e}),E.useMemo(()=>(...n)=>t.current?.(...n),[])}function DK(e,t=globalThis?.document){const n=Tr(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 OK="DismissableLayer",ug="dismissableLayer.update",jK="dismissableLayer.pointerDownOutside",zK="dismissableLayer.focusOutside",qA,L1=E.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Qf=E.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:c,onDismiss:u,...f}=e,h=E.useContext(L1),[p,g]=E.useState(null),b=p?.ownerDocument??globalThis?.document,[,S]=E.useState({}),w=Tt(t,L=>g(L)),A=Array.from(h.layers),[R]=[...h.layersWithOutsidePointerEventsDisabled].slice(-1),N=A.indexOf(R),x=p?A.indexOf(p):-1,C=h.layersWithOutsidePointerEventsDisabled.size>0,I=x>=N,_=PK(L=>{const O=L.target,V=[...h.branches].some($=>$.contains(O));!I||V||(o?.(L),c?.(L),L.defaultPrevented||u?.())},b),k=BK(L=>{const O=L.target;[...h.branches].some($=>$.contains(O))||(s?.(L),c?.(L),L.defaultPrevented||u?.())},b);return DK(L=>{x===h.layers.size-1&&(i?.(L),!L.defaultPrevented&&u&&(L.preventDefault(),u()))},b),E.useEffect(()=>{if(p)return n&&(h.layersWithOutsidePointerEventsDisabled.size===0&&(qA=b.body.style.pointerEvents,b.body.style.pointerEvents="none"),h.layersWithOutsidePointerEventsDisabled.add(p)),h.layers.add(p),ZA(),()=>{n&&h.layersWithOutsidePointerEventsDisabled.size===1&&(b.body.style.pointerEvents=qA)}},[p,b,n,h]),E.useEffect(()=>()=>{p&&(h.layers.delete(p),h.layersWithOutsidePointerEventsDisabled.delete(p),ZA())},[p,h]),E.useEffect(()=>{const L=()=>S({});return document.addEventListener(ug,L),()=>document.removeEventListener(ug,L)},[]),y.jsx(He.div,{...f,ref:w,style:{pointerEvents:C?I?"auto":"none":void 0,...e.style},onFocusCapture:Xe(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Xe(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Xe(e.onPointerDownCapture,_.onPointerDownCapture)})});Qf.displayName=OK;var MK="DismissableLayerBranch",D1=E.forwardRef((e,t)=>{const n=E.useContext(L1),i=E.useRef(null),o=Tt(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})});D1.displayName=MK;function PK(e,t=globalThis?.document){const n=Tr(e),i=E.useRef(!1),o=E.useRef(()=>{});return E.useEffect(()=>{const s=u=>{if(u.target&&!i.current){let f=function(){O1(jK,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 BK(e,t=globalThis?.document){const n=Tr(e),i=E.useRef(!1);return E.useEffect(()=>{const o=s=>{s.target&&!i.current&&O1(zK,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 ZA(){const e=new CustomEvent(ug);document.dispatchEvent(e)}function O1(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?k1(o,s):o.dispatchEvent(s)}var UK=Qf,VK=D1,oy="focusScope.autoFocusOnMount",sy="focusScope.autoFocusOnUnmount",YA={bubbles:!1,cancelable:!0},FK="FocusScope",Ov=E.forwardRef((e,t)=>{const{loop:n=!1,trapped:i=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...c}=e,[u,f]=E.useState(null),h=Tr(o),p=Tr(s),g=E.useRef(null),b=Tt(t,A=>f(A)),S=E.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;E.useEffect(()=>{if(i){let A=function(C){if(S.paused||!u)return;const I=C.target;u.contains(I)?g.current=I:la(g.current,{select:!0})},R=function(C){if(S.paused||!u)return;const I=C.relatedTarget;I!==null&&(u.contains(I)||la(g.current,{select:!0}))},N=function(C){if(document.activeElement===document.body)for(const _ of C)_.removedNodes.length>0&&la(u)};document.addEventListener("focusin",A),document.addEventListener("focusout",R);const x=new MutationObserver(N);return u&&x.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",A),document.removeEventListener("focusout",R),x.disconnect()}}},[i,u,S.paused]),E.useEffect(()=>{if(u){XA.add(S);const A=document.activeElement;if(!u.contains(A)){const N=new CustomEvent(oy,YA);u.addEventListener(oy,h),u.dispatchEvent(N),N.defaultPrevented||(HK(ZK(j1(u)),{select:!0}),document.activeElement===A&&la(u))}return()=>{u.removeEventListener(oy,h),setTimeout(()=>{const N=new CustomEvent(sy,YA);u.addEventListener(sy,p),u.dispatchEvent(N),N.defaultPrevented||la(A??document.body,{select:!0}),u.removeEventListener(sy,p),XA.remove(S)},0)}}},[u,h,p,S]);const w=E.useCallback(A=>{if(!n&&!i||S.paused)return;const R=A.key==="Tab"&&!A.altKey&&!A.ctrlKey&&!A.metaKey,N=document.activeElement;if(R&&N){const x=A.currentTarget,[C,I]=GK(x);C&&I?!A.shiftKey&&N===I?(A.preventDefault(),n&&la(C,{select:!0})):A.shiftKey&&N===C&&(A.preventDefault(),n&&la(I,{select:!0})):N===x&&A.preventDefault()}},[n,i,S.paused]);return y.jsx(He.div,{tabIndex:-1,...c,ref:b,onKeyDown:w})});Ov.displayName=FK;function HK(e,{select:t=!1}={}){const n=document.activeElement;for(const i of e)if(la(i,{select:t}),document.activeElement!==n)return}function GK(e){const t=j1(e),n=WA(t,e),i=WA(t.reverse(),e);return[n,i]}function j1(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 WA(e,t){for(const n of e)if(!KK(n,{upTo:t}))return n}function KK(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 $K(e){return e instanceof HTMLInputElement&&"select"in e}function la(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&$K(e)&&t&&e.select()}}var XA=qK();function qK(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=QA(e,t),e.unshift(t)},remove(t){e=QA(e,t),e[0]?.resume()}}}function QA(e,t){const n=[...e],i=n.indexOf(t);return i!==-1&&n.splice(i,1),n}function ZK(e){return e.filter(t=>t.tagName!=="A")}var YK="Portal",Jf=E.forwardRef((e,t)=>{const{container:n,...i}=e,[o,s]=E.useState(!1);un(()=>s(!0),[]);const c=n||o&&globalThis?.document?.body;return c?M4.createPortal(y.jsx(He.div,{...i,ref:t}),c):null});Jf.displayName=YK;function WK(e,t){return E.useReducer((n,i)=>t[n][i]??n,e)}var $c=e=>{const{present:t,children:n}=e,i=XK(t),o=typeof n=="function"?n({present:i.isPresent}):E.Children.only(n),s=Tt(i.ref,QK(o));return typeof n=="function"||i.isPresent?E.cloneElement(o,{ref:s}):null};$c.displayName="Presence";function XK(e){const[t,n]=E.useState(),i=E.useRef(null),o=E.useRef(e),s=E.useRef("none"),c=e?"mounted":"unmounted",[u,f]=WK(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{const h=_d(i.current);s.current=u==="mounted"?h:"none"},[u]),un(()=>{const h=i.current,p=o.current;if(p!==e){const b=s.current,S=_d(h);e?f("MOUNT"):S==="none"||h?.display==="none"?f("UNMOUNT"):f(p&&b!==S?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,f]),un(()=>{if(t){let h;const p=t.ownerDocument.defaultView??window,g=S=>{const A=_d(i.current).includes(CSS.escape(S.animationName));if(S.target===t&&A&&(f("ANIMATION_END"),!o.current)){const R=t.style.animationFillMode;t.style.animationFillMode="forwards",h=p.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=R)})}},b=S=>{S.target===t&&(s.current=_d(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 _d(e){return e?.animationName||"none"}function QK(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 ly=0;function z1(){E.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??JA()),document.body.insertAdjacentElement("beforeend",e[1]??JA()),ly++,()=>{ly===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ly--}},[])}function JA(){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 Vr=function(){return Vr=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},Vr.apply(this,arguments)};function M1(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 JK(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 nf="right-scroll-bar-position",rf="width-before-scroll-bar",e$="with-scroll-bars-hidden",t$="--removed-body-scroll-bar-size";function cy(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function n$(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 r$=typeof window<"u"?E.useLayoutEffect:E.useEffect,ew=new WeakMap;function i$(e,t){var n=n$(null,function(i){return e.forEach(function(o){return cy(o,i)})});return r$(function(){var i=ew.get(n);if(i){var o=new Set(i),s=new Set(e),c=n.current;o.forEach(function(u){s.has(u)||cy(u,null)}),s.forEach(function(u){o.has(u)||cy(u,c)})}ew.set(n,e)},[e]),n}function a$(e){return e}function o$(e,t){t===void 0&&(t=a$);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 s$(e){e===void 0&&(e={});var t=o$(null);return t.options=Vr({async:!0,ssr:!1},e),t}var P1=function(e){var t=e.sideCar,n=M1(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,Vr({},n))};P1.isSideCarExport=!0;function l$(e,t){return e.useMedium(t),P1}var B1=s$(),uy=function(){},eh=E.forwardRef(function(e,t){var n=E.useRef(null),i=E.useState({onScrollCapture:uy,onWheelCapture:uy,onTouchMoveCapture:uy}),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,S=e.noRelative,w=e.noIsolation,A=e.inert,R=e.allowPinchZoom,N=e.as,x=N===void 0?"div":N,C=e.gapMode,I=M1(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=b,k=i$([n,t]),L=Vr(Vr({},I),o);return E.createElement(E.Fragment,null,p&&E.createElement(_,{sideCar:B1,removeScrollBar:h,shards:g,noRelative:S,noIsolation:w,inert:A,setCallbacks:s,allowPinchZoom:!!R,lockRef:n,gapMode:C}),c?E.cloneElement(E.Children.only(u),Vr(Vr({},L),{ref:k})):E.createElement(x,Vr({},L,{className:f,ref:k}),u))});eh.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};eh.classNames={fullWidth:rf,zeroRight:nf};var c$=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function u$(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=c$();return t&&e.setAttribute("nonce",t),e}function d$(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function f$(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var h$=function(){var e=0,t=null;return{add:function(n){e==0&&(t=u$())&&(d$(t,n),f$(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},p$=function(){var e=h$();return function(t,n){E.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},U1=function(){var e=p$(),t=function(n){var i=n.styles,o=n.dynamic;return e(i,o),null};return t},m$={left:0,top:0,right:0,gap:0},dy=function(e){return parseInt(e||"",10)||0},y$=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[dy(n),dy(i),dy(o)]},g$=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return m$;var t=y$(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])}},v$=U1(),Ns="data-scroll-locked",b$=function(e,t,n,i){var o=e.left,s=e.top,c=e.right,u=e.gap;return n===void 0&&(n="margin"),`
208
- .`.concat(e$,` {
209
- overflow: hidden `).concat(i,`;
210
- padding-right: `).concat(u,"px ").concat(i,`;
211
- }
212
- body[`).concat(Ns,`] {
213
- overflow: hidden `).concat(i,`;
214
- overscroll-behavior: contain;
215
- `).concat([t&&"position: relative ".concat(i,";"),n==="margin"&&`
216
- padding-left: `.concat(o,`px;
217
- padding-top: `).concat(s,`px;
218
- padding-right: `).concat(c,`px;
219
- margin-left:0;
220
- margin-top:0;
221
- margin-right: `).concat(u,"px ").concat(i,`;
222
- `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(i,";")].filter(Boolean).join(""),`
223
- }
224
-
225
- .`).concat(nf,` {
226
- right: `).concat(u,"px ").concat(i,`;
227
- }
228
-
229
- .`).concat(rf,` {
230
- margin-right: `).concat(u,"px ").concat(i,`;
231
- }
232
-
233
- .`).concat(nf," .").concat(nf,` {
234
- right: 0 `).concat(i,`;
235
- }
236
-
237
- .`).concat(rf," .").concat(rf,` {
238
- margin-right: 0 `).concat(i,`;
239
- }
240
-
241
- body[`).concat(Ns,`] {
242
- `).concat(t$,": ").concat(u,`px;
243
- }
244
- `)},tw=function(){var e=parseInt(document.body.getAttribute(Ns)||"0",10);return isFinite(e)?e:0},E$=function(){E.useEffect(function(){return document.body.setAttribute(Ns,(tw()+1).toString()),function(){var e=tw()-1;e<=0?document.body.removeAttribute(Ns):document.body.setAttribute(Ns,e.toString())}},[])},x$=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,o=i===void 0?"margin":i;E$();var s=E.useMemo(function(){return g$(o)},[o]);return E.createElement(v$,{styles:b$(s,!t,o,n?"":"!important")})},dg=!1;if(typeof window<"u")try{var Nd=Object.defineProperty({},"passive",{get:function(){return dg=!0,!0}});window.addEventListener("test",Nd,Nd),window.removeEventListener("test",Nd,Nd)}catch{dg=!1}var fs=dg?{passive:!1}:!1,S$=function(e){return e.tagName==="TEXTAREA"},V1=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!S$(e)&&n[t]==="visible")},A$=function(e){return V1(e,"overflowY")},w$=function(e){return V1(e,"overflowX")},nw=function(e,t){var n=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var o=F1(e,i);if(o){var s=H1(e,i),c=s[1],u=s[2];if(c>u)return!0}i=i.parentNode}while(i&&i!==n.body);return!1},T$=function(e){var t=e.scrollTop,n=e.scrollHeight,i=e.clientHeight;return[t,n,i]},C$=function(e){var t=e.scrollLeft,n=e.scrollWidth,i=e.clientWidth;return[t,n,i]},F1=function(e,t){return e==="v"?A$(t):w$(t)},H1=function(e,t){return e==="v"?T$(t):C$(t)},R$=function(e,t){return e==="h"&&t==="rtl"?-1:1},I$=function(e,t,n,i,o){var s=R$(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 S=H1(e,u),w=S[0],A=S[1],R=S[2],N=A-R-s*w;(w||N)&&F1(e,u)&&(g+=N,b+=w);var x=u.parentNode;u=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}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},kd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rw=function(e){return[e.deltaX,e.deltaY]},iw=function(e){return e&&"current"in e?e.current:e},_$=function(e,t){return e[0]===t[0]&&e[1]===t[1]},N$=function(e){return`
245
- .block-interactivity-`.concat(e,` {pointer-events: none;}
246
- .allow-interactivity-`).concat(e,` {pointer-events: all;}
247
- `)},k$=0,hs=[];function L$(e){var t=E.useRef([]),n=E.useRef([0,0]),i=E.useRef(),o=E.useState(k$++)[0],s=E.useState(U1)[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=JK([e.lockRef.current],(e.shards||[]).map(iw),!0).filter(Boolean);return A.forEach(function(R){return R.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),A.forEach(function(R){return R.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=E.useCallback(function(A,R){if("touches"in A&&A.touches.length===2||A.type==="wheel"&&A.ctrlKey)return!c.current.allowPinchZoom;var N=kd(A),x=n.current,C="deltaX"in A?A.deltaX:x[0]-N[0],I="deltaY"in A?A.deltaY:x[1]-N[1],_,k=A.target,L=Math.abs(C)>Math.abs(I)?"h":"v";if("touches"in A&&L==="h"&&k.type==="range")return!1;var O=nw(L,k);if(!O)return!0;if(O?_=L:(_=L==="v"?"h":"v",O=nw(L,k)),!O)return!1;if(!i.current&&"changedTouches"in A&&(C||I)&&(i.current=_),!_)return!0;var V=i.current||_;return I$(V,R,A,V==="h"?C:I)},[]),f=E.useCallback(function(A){var R=A;if(!(!hs.length||hs[hs.length-1]!==s)){var N="deltaY"in R?rw(R):kd(R),x=t.current.filter(function(_){return _.name===R.type&&(_.target===R.target||R.target===_.shadowParent)&&_$(_.delta,N)})[0];if(x&&x.should){R.cancelable&&R.preventDefault();return}if(!x){var C=(c.current.shards||[]).map(iw).filter(Boolean).filter(function(_){return _.contains(R.target)}),I=C.length>0?u(R,C[0]):!c.current.noIsolation;I&&R.cancelable&&R.preventDefault()}}},[]),h=E.useCallback(function(A,R,N,x){var C={name:A,delta:R,target:N,should:x,shadowParent:D$(N)};t.current.push(C),setTimeout(function(){t.current=t.current.filter(function(I){return I!==C})},1)},[]),p=E.useCallback(function(A){n.current=kd(A),i.current=void 0},[]),g=E.useCallback(function(A){h(A.type,rw(A),A.target,u(A,e.lockRef.current))},[]),b=E.useCallback(function(A){h(A.type,kd(A),A.target,u(A,e.lockRef.current))},[]);E.useEffect(function(){return hs.push(s),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:b}),document.addEventListener("wheel",f,fs),document.addEventListener("touchmove",f,fs),document.addEventListener("touchstart",p,fs),function(){hs=hs.filter(function(A){return A!==s}),document.removeEventListener("wheel",f,fs),document.removeEventListener("touchmove",f,fs),document.removeEventListener("touchstart",p,fs)}},[]);var S=e.removeScrollBar,w=e.inert;return E.createElement(E.Fragment,null,w?E.createElement(s,{styles:N$(o)}):null,S?E.createElement(x$,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function D$(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const O$=l$(B1,L$);var jv=E.forwardRef(function(e,t){return E.createElement(eh,Vr({},e,{ref:t,sideCar:O$}))});jv.classNames=eh.classNames;var j$=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ps=new WeakMap,Ld=new WeakMap,Dd={},fy=0,G1=function(e){return e&&(e.host||G1(e.parentNode))},z$=function(e,t){return t.map(function(n){if(e.contains(n))return n;var i=G1(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})},M$=function(e,t,n,i){var o=z$(t,Array.isArray(e)?e:[e]);Dd[n]||(Dd[n]=new WeakMap);var s=Dd[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 S=b.getAttribute(i),w=S!==null&&S!=="false",A=(ps.get(b)||0)+1,R=(s.get(b)||0)+1;ps.set(b,A),s.set(b,R),c.push(b),A===1&&w&&Ld.set(b,!0),R===1&&b.setAttribute(n,"true"),w||b.setAttribute(i,"true")}catch(N){console.error("aria-hidden: cannot operate on ",b,N)}})};return p(t),u.clear(),fy++,function(){c.forEach(function(g){var b=ps.get(g)-1,S=s.get(g)-1;ps.set(g,b),s.set(g,S),b||(Ld.has(g)||g.removeAttribute(i),Ld.delete(g)),S||g.removeAttribute(n)}),fy--,fy||(ps=new WeakMap,ps=new WeakMap,Ld=new WeakMap,Dd={})}},K1=function(e,t,n){n===void 0&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),o=j$(e);return o?(i.push.apply(i,Array.from(o.querySelectorAll("[aria-live], script"))),M$(i,o,n,"aria-hidden")):function(){return null}},th="Dialog",[$1]=Kc(th),[P$,_r]=$1(th),q1=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]=bf({prop:i,defaultProp:o??!1,onChange:s,caller:th});return y.jsx(P$,{scope:t,triggerRef:u,contentRef:f,contentId:dr(),titleId:dr(),descriptionId:dr(),open:h,onOpenChange:p,onOpenToggle:E.useCallback(()=>p(g=>!g),[p]),modal:c,children:n})};q1.displayName=th;var Z1="DialogTrigger",B$=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=_r(Z1,n),s=Tt(t,o.triggerRef);return y.jsx(He.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":Pv(o.open),...i,ref:s,onClick:Xe(e.onClick,o.onOpenToggle)})});B$.displayName=Z1;var zv="DialogPortal",[U$,Y1]=$1(zv,{forceMount:void 0}),W1=e=>{const{__scopeDialog:t,forceMount:n,children:i,container:o}=e,s=_r(zv,t);return y.jsx(U$,{scope:t,forceMount:n,children:E.Children.map(i,c=>y.jsx($c,{present:n||s.open,children:y.jsx(Jf,{asChild:!0,container:o,children:c})}))})};W1.displayName=zv;var Ef="DialogOverlay",X1=E.forwardRef((e,t)=>{const n=Y1(Ef,e.__scopeDialog),{forceMount:i=n.forceMount,...o}=e,s=_r(Ef,e.__scopeDialog);return s.modal?y.jsx($c,{present:i||s.open,children:y.jsx(F$,{...o,ref:t})}):null});X1.displayName=Ef;var V$=Ms("DialogOverlay.RemoveScroll"),F$=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=_r(Ef,n);return y.jsx(jv,{as:V$,allowPinchZoom:!0,shards:[o.contentRef],children:y.jsx(He.div,{"data-state":Pv(o.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),co="DialogContent",Q1=E.forwardRef((e,t)=>{const n=Y1(co,e.__scopeDialog),{forceMount:i=n.forceMount,...o}=e,s=_r(co,e.__scopeDialog);return y.jsx($c,{present:i||s.open,children:s.modal?y.jsx(H$,{...o,ref:t}):y.jsx(G$,{...o,ref:t})})});Q1.displayName=co;var H$=E.forwardRef((e,t)=>{const n=_r(co,e.__scopeDialog),i=E.useRef(null),o=Tt(t,n.contentRef,i);return E.useEffect(()=>{const s=i.current;if(s)return K1(s)},[]),y.jsx(J1,{...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())})}),G$=E.forwardRef((e,t)=>{const n=_r(co,e.__scopeDialog),i=E.useRef(!1),o=E.useRef(!1);return y.jsx(J1,{...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()}})}),J1=E.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:o,onCloseAutoFocus:s,...c}=e,u=_r(co,n),f=E.useRef(null),h=Tt(t,f);return z1(),y.jsxs(y.Fragment,{children:[y.jsx(Ov,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:o,onUnmountAutoFocus:s,children:y.jsx(Qf,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":Pv(u.open),...c,ref:h,onDismiss:()=>u.onOpenChange(!1)})}),y.jsxs(y.Fragment,{children:[y.jsx(Z$,{titleId:u.titleId}),y.jsx(W$,{contentRef:f,descriptionId:u.descriptionId})]})]})}),Mv="DialogTitle",K$=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=_r(Mv,n);return y.jsx(He.h2,{id:o.titleId,...i,ref:t})});K$.displayName=Mv;var eD="DialogDescription",$$=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=_r(eD,n);return y.jsx(He.p,{id:o.descriptionId,...i,ref:t})});$$.displayName=eD;var tD="DialogClose",q$=E.forwardRef((e,t)=>{const{__scopeDialog:n,...i}=e,o=_r(tD,n);return y.jsx(He.button,{type:"button",...i,ref:t,onClick:Xe(e.onClick,()=>o.onOpenChange(!1))})});q$.displayName=tD;function Pv(e){return e?"open":"closed"}var nD="DialogTitleWarning",[Ple,rD]=bK(nD,{contentName:co,titleName:Mv,docsSlug:"dialog"}),Z$=({titleId:e})=>{const t=rD(nD),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
248
-
249
- If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
250
-
251
- For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return E.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},Y$="DialogDescriptionWarning",W$=({contentRef:e,descriptionId:t})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${rD(Y$).contentName}}.`;return E.useEffect(()=>{const o=e.current?.getAttribute("aria-describedby");t&&o&&(document.getElementById(t)||console.warn(i))},[i,e,t]),null},X$=q1,Q$=W1,J$=X1,e5=Q1,aw=1,t5=.9,n5=.8,r5=.17,hy=.1,py=.999,i5=.9999,a5=.99,o5=/[\\\/_+.#"@\[\(\{&]/,s5=/[\\\/_+.#"@\[\(\{&]/g,l5=/[\s-]/,iD=/[\s-]/g;function fg(e,t,n,i,o,s,c){if(s===t.length)return o===e.length?aw:a5;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,S,w;h>=0;)g=fg(e,t,n,i,h+1,s+1,c),g>p&&(h===o?g*=aw:o5.test(e.charAt(h-1))?(g*=n5,S=e.slice(o,h-1).match(s5),S&&o>0&&(g*=Math.pow(py,S.length))):l5.test(e.charAt(h-1))?(g*=t5,w=e.slice(o,h-1).match(iD),w&&o>0&&(g*=Math.pow(py,w.length))):(g*=r5,o>0&&(g*=Math.pow(py,h-o))),e.charAt(h)!==t.charAt(s)&&(g*=i5)),(g<hy&&n.charAt(h-1)===i.charAt(s+1)||i.charAt(s+1)===i.charAt(s)&&n.charAt(h-1)!==i.charAt(s))&&(b=fg(e,t,n,i,h+1,s+2,c),b*hy>g&&(g=b*hy)),g>p&&(p=g),h=n.indexOf(f,h+1);return c[u]=p,p}function ow(e){return e.toLowerCase().replace(iD," ")}function c5(e,t,n){return e=n&&n.length>0?`${e+" "+n.join(" ")}`:e,fg(e,t,ow(e),ow(t),0,0,{})}var tc='[cmdk-group=""]',my='[cmdk-group-items=""]',u5='[cmdk-group-heading=""]',aD='[cmdk-item=""]',sw=`${aD}:not([aria-disabled="true"])`,hg="cmdk-item-select",gs="data-value",d5=(e,t,n)=>c5(e,t,n),oD=E.createContext(void 0),qc=()=>E.useContext(oD),sD=E.createContext(void 0),Bv=()=>E.useContext(sD),lD=E.createContext(void 0),cD=E.forwardRef((e,t)=>{let n=vs(()=>{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=vs(()=>new Set),o=vs(()=>new Map),s=vs(()=>new Map),c=vs(()=>new Set),u=uD(e),{label:f,children:h,value:p,onValueChange:g,filter:b,shouldFilter:S,loop:w,disablePointerSelection:A=!1,vimBindings:R=!0,...N}=e,x=dr(),C=dr(),I=dr(),_=E.useRef(null),k=S5();uo(()=>{if(p!==void 0){let P=p.trim();n.current.value=P,L.emit()}},[p]),uo(()=>{k(6,ce)},[]);let L=E.useMemo(()=>({subscribe:P=>(c.current.add(P),()=>c.current.delete(P)),snapshot:()=>n.current,setState:(P,J,te)=>{var ue,ye,re,Re;if(!Object.is(n.current[P],J)){if(n.current[P]=J,P==="search")ae(),$(),k(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(x))==null||ue.focus()}if(k(7,()=>{var Ae;n.current.selectedItemId=(Ae=X())==null?void 0:Ae.id,L.emit()}),te||k(5,ce),((ye=u.current)==null?void 0:ye.value)!==void 0){let Ae=J??"";(Re=(re=u.current).onValueChange)==null||Re.call(re,Ae);return}}L.emit()}},emit:()=>{c.current.forEach(P=>P())}}),[]),O=E.useMemo(()=>({value:(P,J,te)=>{var ue;J!==((ue=s.current.get(P))==null?void 0:ue.value)&&(s.current.set(P,{value:J,keywords:te}),n.current.filtered.items.set(P,V(J,te)),k(2,()=>{$(),L.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]))),k(3,()=>{ae(),$(),n.current.value||H(),L.emit()}),()=>{s.current.delete(P),i.current.delete(P),n.current.filtered.items.delete(P);let te=X();k(4,()=>{ae(),te?.getAttribute("id")===P&&H(),L.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:x,inputId:I,labelId:C,listInnerRef:_}),[]);function V(P,J){var te,ue;let ye=(ue=(te=u.current)==null?void 0:te.filter)!=null?ue:d5;return P?ye(P,n.current.search,J):0}function $(){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),re=0;ye.forEach(Re=>{let Ae=P.get(Re);re=Math.max(Ae,re)}),J.push([ue,re])});let te=_.current;oe().sort((ue,ye)=>{var re,Re;let Ae=ue.getAttribute("id"),ze=ye.getAttribute("id");return((re=P.get(ze))!=null?re:0)-((Re=P.get(Ae))!=null?Re:0)}).forEach(ue=>{let ye=ue.closest(my);ye?ye.appendChild(ue.parentElement===ye?ue:ue.closest(`${my} > *`)):te.appendChild(ue.parentElement===te?ue:ue.closest(`${my} > *`))}),J.sort((ue,ye)=>ye[1]-ue[1]).forEach(ue=>{var ye;let re=(ye=_.current)==null?void 0:ye.querySelector(`${tc}[${gs}="${encodeURIComponent(ue[0])}"]`);re?.parentElement.appendChild(re)})}function H(){let P=oe().find(te=>te.getAttribute("aria-disabled")!=="true"),J=P?.getAttribute(gs);L.setState("value",J||void 0)}function ae(){var P,J,te,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 re of i.current){let Re=(J=(P=s.current.get(re))==null?void 0:P.value)!=null?J:"",Ae=(ue=(te=s.current.get(re))==null?void 0:te.keywords)!=null?ue:[],ze=V(Re,Ae);n.current.filtered.items.set(re,ze),ze>0&&ye++}for(let[re,Re]of o.current)for(let Ae of Re)if(n.current.filtered.items.get(Ae)>0){n.current.filtered.groups.add(re);break}n.current.filtered.count=ye}function ce(){var P,J,te;let ue=X();ue&&(((P=ue.parentElement)==null?void 0:P.firstChild)===ue&&((te=(J=ue.closest(tc))==null?void 0:J.querySelector(u5))==null||te.scrollIntoView({block:"nearest"})),ue.scrollIntoView({block:"nearest"}))}function X(){var P;return(P=_.current)==null?void 0:P.querySelector(`${aD}[aria-selected="true"]`)}function oe(){var P;return Array.from(((P=_.current)==null?void 0:P.querySelectorAll(sw))||[])}function M(P){let J=oe()[P];J&&L.setState("value",J.getAttribute(gs))}function Y(P){var J;let te=X(),ue=oe(),ye=ue.findIndex(Re=>Re===te),re=ue[ye+P];(J=u.current)!=null&&J.loop&&(re=ye+P<0?ue[ue.length-1]:ye+P===ue.length?ue[0]:ue[ye+P]),re&&L.setState("value",re.getAttribute(gs))}function K(P){let J=X(),te=J?.closest(tc),ue;for(;te&&!ue;)te=P>0?E5(te,tc):x5(te,tc),ue=te?.querySelector(sw);ue?L.setState("value",ue.getAttribute(gs)):Y(P)}let me=()=>M(oe().length-1),Ee=P=>{P.preventDefault(),P.metaKey?me():P.altKey?K(1):Y(1)},j=P=>{P.preventDefault(),P.metaKey?M(0):P.altKey?K(-1):Y(-1)};return E.createElement(He.div,{ref:t,tabIndex:-1,...N,"cmdk-root":"",onKeyDown:P=>{var J;(J=N.onKeyDown)==null||J.call(N,P);let te=P.nativeEvent.isComposing||P.keyCode===229;if(!(P.defaultPrevented||te))switch(P.key){case"n":case"j":{R&&P.ctrlKey&&Ee(P);break}case"ArrowDown":{Ee(P);break}case"p":case"k":{R&&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(hg);ue.dispatchEvent(ye)}}}}},E.createElement("label",{"cmdk-label":"",htmlFor:O.inputId,id:O.labelId,style:w5},f),nh(e,P=>E.createElement(sD.Provider,{value:L},E.createElement(oD.Provider,{value:O},P))))}),f5=E.forwardRef((e,t)=>{var n,i;let o=dr(),s=E.useRef(null),c=E.useContext(lD),u=qc(),f=uD(e),h=(i=(n=f.current)==null?void 0:n.forceMount)!=null?i:c?.forceMount;uo(()=>{if(!h)return u.item(o,c?.id)},[h]);let p=dD(o,s,[e.value,e.children,s],e.keywords),g=Bv(),b=ha(k=>k.value&&k.value===p.current),S=ha(k=>h||u.filter()===!1?!0:k.search?k.filtered.items.get(o)>0:!0);E.useEffect(()=>{let k=s.current;if(!(!k||e.disabled))return k.addEventListener(hg,w),()=>k.removeEventListener(hg,w)},[S,e.onSelect,e.disabled]);function w(){var k,L;A(),(L=(k=f.current).onSelect)==null||L.call(k,p.current)}function A(){g.setState("value",p.current,!0)}if(!S)return null;let{disabled:R,value:N,onSelect:x,forceMount:C,keywords:I,..._}=e;return E.createElement(He.div,{ref:lo(s,t),..._,id:o,"cmdk-item":"",role:"option","aria-disabled":!!R,"aria-selected":!!b,"data-disabled":!!R,"data-selected":!!b,onPointerMove:R||u.getDisablePointerSelection()?void 0:A,onClick:R?void 0:w},e.children)}),h5=E.forwardRef((e,t)=>{let{heading:n,children:i,forceMount:o,...s}=e,c=dr(),u=E.useRef(null),f=E.useRef(null),h=dr(),p=qc(),g=ha(S=>o||p.filter()===!1?!0:S.search?S.filtered.groups.has(c):!0);uo(()=>p.group(c),[]),dD(c,u,[e.value,e.heading,f]);let b=E.useMemo(()=>({id:c,forceMount:o}),[o]);return E.createElement(He.div,{ref:lo(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),nh(e,S=>E.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?h:void 0},E.createElement(lD.Provider,{value:b},S))))}),p5=E.forwardRef((e,t)=>{let{alwaysRender:n,...i}=e,o=E.useRef(null),s=ha(c=>!c.search);return!n&&!s?null:E.createElement(He.div,{ref:lo(o,t),...i,"cmdk-separator":"",role:"separator"})}),m5=E.forwardRef((e,t)=>{let{onValueChange:n,...i}=e,o=e.value!=null,s=Bv(),c=ha(h=>h.search),u=ha(h=>h.selectedItemId),f=qc();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)}})}),y5=E.forwardRef((e,t)=>{let{children:n,label:i="Suggestions",...o}=e,s=E.useRef(null),c=E.useRef(null),u=ha(h=>h.selectedItemId),f=qc();return E.useEffect(()=>{if(c.current&&s.current){let h=c.current,p=s.current,g,b=new ResizeObserver(()=>{g=requestAnimationFrame(()=>{let S=h.offsetHeight;p.style.setProperty("--cmdk-list-height",S.toFixed(1)+"px")})});return b.observe(h),()=>{cancelAnimationFrame(g),b.unobserve(h)}}},[]),E.createElement(He.div,{ref:lo(s,t),...o,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":u,"aria-label":i,id:f.listId},nh(e,h=>E.createElement("div",{ref:lo(c,f.listInnerRef),"cmdk-list-sizer":""},h)))}),g5=E.forwardRef((e,t)=>{let{open:n,onOpenChange:i,overlayClassName:o,contentClassName:s,container:c,...u}=e;return E.createElement(X$,{open:n,onOpenChange:i},E.createElement(Q$,{container:c},E.createElement(J$,{"cmdk-overlay":"",className:o}),E.createElement(e5,{"aria-label":e.label,"cmdk-dialog":"",className:s},E.createElement(cD,{ref:t,...u}))))}),v5=E.forwardRef((e,t)=>ha(n=>n.filtered.count===0)?E.createElement(He.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),b5=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},nh(e,c=>E.createElement("div",{"aria-hidden":!0},c)))}),Zc=Object.assign(cD,{List:y5,Item:f5,Input:m5,Group:h5,Separator:p5,Dialog:g5,Empty:v5,Loading:b5});function E5(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}function x5(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}function uD(e){let t=E.useRef(e);return uo(()=>{t.current=e}),t}var uo=typeof window>"u"?E.useEffect:E.useLayoutEffect;function vs(e){let t=E.useRef();return t.current===void 0&&(t.current=e()),t}function ha(e){let t=Bv(),n=()=>e(t.snapshot());return E.useSyncExternalStore(t.subscribe,n,n)}function dD(e,t,n,i=[]){let o=E.useRef(),s=qc();return uo(()=>{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(gs,u),o.current=u}),o}var S5=()=>{let[e,t]=E.useState(),n=vs(()=>new Map);return uo(()=>{n.current.forEach(i=>i()),n.current=new Map},[e]),(i,o)=>{n.current.set(i,o),t({})}};function A5(e){let t=e.type;return typeof t=="function"?t(e.props):"render"in t?t.render(e.props):e}function nh({asChild:e,children:t},n){return e&&E.isValidElement(t)?E.cloneElement(A5(t),{ref:t.ref},n(t.props.children)):n(t)}var w5={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const fD=({className:e,...t})=>y.jsx(Zc,{className:fe("flex size-full flex-col overflow-hidden rounded-md",e),...t}),T5=({className:e,...t})=>y.jsxs("div",{className:"flex w-full items-center","cmdk-input-wrapper":"",children:[y.jsx(oK,{className:"mr-2 size-4 shrink-0 opacity-50"}),y.jsx(Zc.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})]}),C5=({className:e,...t})=>y.jsx(Zc.List,{className:fe("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}),R5=e=>y.jsx(Zc.Empty,{className:"py-6 text-center text-sm",...e}),I5=({className:e,...t})=>y.jsx(Zc.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}),xf={...fD,Input:T5,List:C5,Empty:R5,Item:I5},_5=mn("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"}}),Nr=({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(_5({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}),hD=({content:e,...t})=>{const[n,i]=E.useState(!1),[o,s]=E.useState(!1),{label:c}=Ot("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(st,{Icon:n?MG:BG,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})},Yc="relative scroll-mb-8 scroll-mt-[30vh] scroll-p-8",N5="after:content-['#'] after:scale-75 after:px-6 after:text-neutral after:absolute after:top-0 after:h-full after:-left-12 after:hover:cursor-pointer after:absolute after:to-neutral after:md:opacity-0 after:transition-opacity hover:after:opacity-80 after:duration-200 after:delay-100",k5=({className:e,...t})=>y.jsx("h1",{className:fe("mt-5 font-bold text-2xl",e),...t}),L5=({className:e,...t})=>y.jsx("h2",{className:fe("mt-16 mb-2 font-bold text-2xl",Yc,e),...t}),D5=({className:e,...t})=>y.jsx("h3",{className:fe("mt-5 mb-2 font-bold text-xl",Yc,e),...t}),O5=({className:e,...t})=>y.jsx("h4",{className:fe("mt-3 font-bold text-lg",Yc,e),...t}),j5=({className:e,...t})=>y.jsx("h5",{className:fe("mt-3 font-bold text-base",Yc,e),...t}),z5=({className:e,...t})=>y.jsx("h6",{className:fe("mt-3 ml-3 font-bold text-base",Yc,e),...t}),M5=e=>String(e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace(/\s+/g,"-").toLowerCase(),P5=e=>{const t=(document.getElementById(e)?.getBoundingClientRect()?.top??0)+window.scrollY-150;window.scrollTo({top:t,behavior:"smooth"})},B5=(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},Wc=({H:e,children:t,className:n,isClickable:i,...o})=>{const s=typeof t=="string"?M5(t):void 0,c=u=>{const{id:f}=u.currentTarget;if(B5(u.currentTarget,u)&&typeof f=="string"){const h=`${window.location.href.split("#")[0]}#${f}`;navigator.clipboard.writeText(h),P5(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&&N5,n),...o,children:t})},U5=({isClickable:e,...t})=>y.jsx(k5,{...t}),V5=({isClickable:e=!1,...t})=>y.jsx(Wc,{H:L5,isClickable:e,...t}),Uv=({isClickable:e=!1,...t})=>y.jsx(Wc,{H:D5,isClickable:e,...t}),F5=({isClickable:e=!1,...t})=>y.jsx(Wc,{H:O5,isClickable:e,...t}),H5=({isClickable:e=!1,...t})=>y.jsx(Wc,{H:j5,isClickable:e,...t}),G5=({isClickable:e=!1,...t})=>y.jsx(Wc,{H:z5,isClickable:e,...t}),pD=e=>{const[t,n]=E.useState(e);return E.useEffect(()=>{n(e??window.document.body)},[e]),t},K5={},lw=e=>{let t;const n=new Set,i=(p,g)=>{const b=typeof p=="function"?p(t):p;if(!Object.is(b,t)){const S=t;t=g??(typeof b!="object"||b===null)?b:Object.assign({},t,b),n.forEach(w=>w(t,S))}},o=()=>t,f={setState:i,getState:o,getInitialState:()=>h,subscribe:p=>(n.add(p),()=>n.delete(p)),destroy:()=>{(K5?"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},$5=e=>e?lw(e):lw;var yy={exports:{}},gy={},vy={exports:{}},by={};/**
252
- * @license React
253
- * use-sync-external-store-shim.production.js
254
- *
255
- * Copyright (c) Meta Platforms, Inc. and affiliates.
256
- *
257
- * This source code is licensed under the MIT license found in the
258
- * LICENSE file in the root directory of this source tree.
259
- */var cw;function q5(){if(cw)return by;cw=1;var e=Uc();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 S=b(),w=i({inst:{value:S,getSnapshot:b}}),A=w[0].inst,R=w[1];return s(function(){A.value=S,A.getSnapshot=b,f(A)&&R({inst:A})},[g,S,b]),o(function(){return f(A)&&R({inst:A}),g(function(){f(A)&&R({inst:A})})},[g]),c(S),S}function f(g){var b=g.getSnapshot;g=g.value;try{var S=b();return!n(g,S)}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 by.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,by}var uw;function Z5(){return uw||(uw=1,vy.exports=q5()),vy.exports}/**
260
- * @license React
261
- * use-sync-external-store-shim/with-selector.production.js
262
- *
263
- * Copyright (c) Meta Platforms, Inc. and affiliates.
264
- *
265
- * This source code is licensed under the MIT license found in the
266
- * LICENSE file in the root directory of this source tree.
267
- */var dw;function Y5(){if(dw)return gy;dw=1;var e=Uc(),t=Z5();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 gy.useSyncExternalStoreWithSelector=function(h,p,g,b,S){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 N(k){if(!x){if(x=!0,C=k,k=b(k),S!==void 0&&A.hasValue){var L=A.value;if(S(L,k))return I=L}return I=k}if(L=I,i(C,k))return L;var O=b(k);return S!==void 0&&S(L,O)?(C=k,L):(C=k,I=O)}var x=!1,C,I,_=g===void 0?null:g;return[function(){return N(p())},_===null?void 0:function(){return N(_())}]},[p,g,b,S]);var R=o(h,w[0],w[1]);return c(function(){A.hasValue=!0,A.value=R},[R]),f(R),R},gy}var fw;function W5(){return fw||(fw=1,yy.exports=Y5()),yy.exports}var X5=W5();const Q5=bv(X5),mD={},{useDebugValue:J5}=Ne,{useSyncExternalStoreWithSelector:e6}=Q5;let hw=!1;const t6=e=>e;function n6(e,t=t6,n){(mD?"production":void 0)!=="production"&&n&&!hw&&(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"),hw=!0);const i=e6(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return J5(i),i}const pw=e=>{(mD?"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"?$5(e):e,n=(i,o)=>n6(t,i,o);return Object.assign(n,t),n},yD=e=>e?pw(e):pw,r6=yD((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 i6(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:a6}=Ne;function gD(e){const t=a6();return n=>{const i=e(n);return i6(t.current,i)?t.current:t.current=i}}const vD=e=>{const{disableScroll:t=!1,element:n,key:i="unnamed_blocker"}=e??{},{isElementScrollBlocked:o,addBlockage:s,removeBlockage:c}=r6(gD(f=>({isElementScrollBlocked:f.isElementScrollBlocked,addBlockage:f.addBlockage,removeBlockage:f.removeBlockage}))),u=pD(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}},bD=E.createContext({});function o6(e){const t=E.useRef(null);return t.current===null&&(t.current=e()),t.current}const Vv=typeof window<"u",s6=Vv?E.useLayoutEffect:E.useEffect,Fv=E.createContext(null);function Hv(e,t){e.indexOf(t)===-1&&e.push(t)}function Gv(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ii=(e,t,n)=>n>t?t:n<e?e:n;let Kv=()=>{};const _i={},ED=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function xD(e){return typeof e=="object"&&e!==null}const SD=e=>/^0[^.\s]+$/u.test(e);function $v(e){let t;return()=>(t===void 0&&(t=e()),t)}const fr=e=>e,l6=(e,t)=>n=>t(e(n)),Xc=(...e)=>e.reduce(l6),Rc=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i};class qv{constructor(){this.subscriptions=[]}add(t){return Hv(this.subscriptions,t),()=>Gv(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 qr=e=>e*1e3,ur=e=>e/1e3;function AD(e,t){return t?e*(1e3/t):0}const wD=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,c6=1e-7,u6=12;function d6(e,t,n,i,o){let s,c,u=0;do c=t+(n-t)/2,s=wD(c,i,o)-e,s>0?n=c:t=c;while(Math.abs(s)>c6&&++u<u6);return c}function Qc(e,t,n,i){if(e===t&&n===i)return fr;const o=s=>d6(s,0,1,e,n);return s=>s===0||s===1?s:wD(o(s),t,i)}const TD=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,CD=e=>t=>1-e(1-t),RD=Qc(.33,1.53,.69,.99),Zv=CD(RD),ID=TD(Zv),_D=e=>(e*=2)<1?.5*Zv(e):.5*(2-Math.pow(2,-10*(e-1))),Yv=e=>1-Math.sin(Math.acos(e)),ND=CD(Yv),kD=TD(Yv),f6=Qc(.42,0,1,1),h6=Qc(0,0,.58,1),LD=Qc(.42,0,.58,1),p6=e=>Array.isArray(e)&&typeof e[0]!="number",DD=e=>Array.isArray(e)&&typeof e[0]=="number",m6={linear:fr,easeIn:f6,easeInOut:LD,easeOut:h6,circIn:Yv,circInOut:kD,circOut:ND,backIn:Zv,backInOut:ID,backOut:RD,anticipate:_D},y6=e=>typeof e=="string",mw=e=>{if(DD(e)){Kv(e.length===4);const[t,n,i,o]=e;return Qc(t,n,i,o)}else if(y6(e))return m6[e];return e},Od=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function g6(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 v6=40;function OD(e,t){let n=!1,i=!0;const o={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,c=Od.reduce((C,I)=>(C[I]=g6(s),C),{}),{setup:u,read:f,resolveKeyframes:h,preUpdate:p,update:g,preRender:b,render:S,postRender:w}=c,A=()=>{const C=_i.useManualTiming?o.timestamp:performance.now();n=!1,_i.useManualTiming||(o.delta=i?1e3/60:Math.max(Math.min(C-o.timestamp,v6),1)),o.timestamp=C,o.isProcessing=!0,u.process(o),f.process(o),h.process(o),p.process(o),g.process(o),b.process(o),S.process(o),w.process(o),o.isProcessing=!1,n&&t&&(i=!1,e(A))},R=()=>{n=!0,i=!0,o.isProcessing||e(A)};return{schedule:Od.reduce((C,I)=>{const _=c[I];return C[I]=(k,L=!1,O=!1)=>(n||R(),_.schedule(k,L,O)),C},{}),cancel:C=>{for(let I=0;I<Od.length;I++)c[Od[I]].cancel(C)},state:o,steps:c}}const{schedule:xt,cancel:pa,state:cn,steps:Ey}=OD(typeof requestAnimationFrame<"u"?requestAnimationFrame:fr,!0);let af;function b6(){af=void 0}const kn={now:()=>(af===void 0&&kn.set(cn.isProcessing||_i.useManualTiming?cn.timestamp:performance.now()),af),set:e=>{af=e,queueMicrotask(b6)}},jD=e=>t=>typeof t=="string"&&t.startsWith(e),Wv=jD("--"),E6=jD("var(--"),Xv=e=>E6(e)?x6.test(e.split("/*")[0].trim()):!1,x6=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ys={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ic={...Ys,transform:e=>Ii(0,1,e)},jd={...Ys,default:1},mc=e=>Math.round(e*1e5)/1e5,Qv=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function S6(e){return e==null}const A6=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Jv=(e,t)=>n=>!!(typeof n=="string"&&A6.test(n)&&n.startsWith(e)||t&&!S6(n)&&Object.prototype.hasOwnProperty.call(n,t)),zD=(e,t,n)=>i=>{if(typeof i!="string")return i;const[o,s,c,u]=i.match(Qv);return{[e]:parseFloat(o),[t]:parseFloat(s),[n]:parseFloat(c),alpha:u!==void 0?parseFloat(u):1}},w6=e=>Ii(0,255,e),xy={...Ys,transform:e=>Math.round(w6(e))},no={test:Jv("rgb","red"),parse:zD("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+xy.transform(e)+", "+xy.transform(t)+", "+xy.transform(n)+", "+mc(Ic.transform(i))+")"};function T6(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 pg={test:Jv("#"),parse:T6,transform:no.transform},Jc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ca=Jc("deg"),Zr=Jc("%"),De=Jc("px"),C6=Jc("vh"),R6=Jc("vw"),yw={...Zr,parse:e=>Zr.parse(e)/100,transform:e=>Zr.transform(e*100)},Ss={test:Jv("hsl","hue"),parse:zD("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Zr.transform(mc(t))+", "+Zr.transform(mc(n))+", "+mc(Ic.transform(i))+")"},Vt={test:e=>no.test(e)||pg.test(e)||Ss.test(e),parse:e=>no.test(e)?no.parse(e):Ss.test(e)?Ss.parse(e):pg.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?no.transform(e):Ss.transform(e),getAnimatableNone:e=>{const t=Vt.parse(e);return t.alpha=0,Vt.transform(t)}},I6=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function _6(e){return isNaN(e)&&typeof e=="string"&&(e.match(Qv)?.length||0)+(e.match(I6)?.length||0)>0}const MD="number",PD="color",N6="var",k6="var(",gw="${}",L6=/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 _c(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},o=[];let s=0;const u=t.replace(L6,f=>(Vt.test(f)?(i.color.push(s),o.push(PD),n.push(Vt.parse(f))):f.startsWith(k6)?(i.var.push(s),o.push(N6),n.push(f)):(i.number.push(s),o.push(MD),n.push(parseFloat(f))),++s,gw)).split(gw);return{values:n,split:u,indexes:i,types:o}}function BD(e){return _c(e).values}function UD(e){const{split:t,types:n}=_c(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===MD?s+=mc(o[c]):u===PD?s+=Vt.transform(o[c]):s+=o[c]}return s}}const D6=e=>typeof e=="number"?0:Vt.test(e)?Vt.getAnimatableNone(e):e;function O6(e){const t=BD(e);return UD(e)(t.map(D6))}const ma={test:_6,parse:BD,createTransformer:UD,getAnimatableNone:O6};function Sy(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 j6({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=Sy(f,u,e+1/3),s=Sy(f,u,e),c=Sy(f,u,e-1/3)}return{red:Math.round(o*255),green:Math.round(s*255),blue:Math.round(c*255),alpha:i}}function Sf(e,t){return n=>n>0?t:e}const At=(e,t,n)=>e+(t-e)*n,Ay=(e,t,n)=>{const i=e*e,o=n*(t*t-i)+i;return o<0?0:Math.sqrt(o)},z6=[pg,no,Ss],M6=e=>z6.find(t=>t.test(e));function vw(e){const t=M6(e);if(!t)return!1;let n=t.parse(e);return t===Ss&&(n=j6(n)),n}const bw=(e,t)=>{const n=vw(e),i=vw(t);if(!n||!i)return Sf(e,t);const o={...n};return s=>(o.red=Ay(n.red,i.red,s),o.green=Ay(n.green,i.green,s),o.blue=Ay(n.blue,i.blue,s),o.alpha=At(n.alpha,i.alpha,s),no.transform(o))},mg=new Set(["none","hidden"]);function P6(e,t){return mg.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function B6(e,t){return n=>At(e,t,n)}function eb(e){return typeof e=="number"?B6:typeof e=="string"?Xv(e)?Sf:Vt.test(e)?bw:F6:Array.isArray(e)?VD:typeof e=="object"?Vt.test(e)?bw:U6:Sf}function VD(e,t){const n=[...e],i=n.length,o=e.map((s,c)=>eb(s)(s,t[c]));return s=>{for(let c=0;c<i;c++)n[c]=o[c](s);return n}}function U6(e,t){const n={...e,...t},i={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(i[o]=eb(e[o])(e[o],t[o]));return o=>{for(const s in i)n[s]=i[s](o);return n}}function V6(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 F6=(e,t)=>{const n=ma.createTransformer(t),i=_c(e),o=_c(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?mg.has(e)&&!o.values.length||mg.has(t)&&!i.values.length?P6(e,t):Xc(VD(V6(i,o),o.values),n):Sf(e,t)};function FD(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?At(e,t,n):eb(e)(e,t)}const H6=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>xt.update(t,n),stop:()=>pa(t),now:()=>cn.isProcessing?cn.timestamp:kn.now()}},HD=(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)})`},Af=2e4;function tb(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<Af;)t+=n,i=e.next(t);return t>=Af?1/0:t}function G6(e,t=100,n){const i=n({...e,keyframes:[0,t]}),o=Math.min(tb(i),Af);return{type:"keyframes",ease:s=>i.next(o*s).value/t,duration:ur(o)}}const K6=5;function GD(e,t,n){const i=Math.max(t-K6,0);return AD(n-e(i),t-i)}const _t={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},wy=.001;function $6({duration:e=_t.duration,bounce:t=_t.bounce,velocity:n=_t.velocity,mass:i=_t.mass}){let o,s,c=1-t;c=Ii(_t.minDamping,_t.maxDamping,c),e=Ii(_t.minDuration,_t.maxDuration,ur(e)),c<1?(o=h=>{const p=h*c,g=p*e,b=p-n,S=yg(h,c),w=Math.exp(-g);return wy-b/S*w},s=h=>{const g=h*c*e,b=g*n+n,S=Math.pow(c,2)*Math.pow(h,2)*e,w=Math.exp(-g),A=yg(Math.pow(h,2),c);return(-o(h)+wy>0?-1:1)*((b-S)*w)/A}):(o=h=>{const p=Math.exp(-h*e),g=(h-n)*e+1;return-wy+p*g},s=h=>{const p=Math.exp(-h*e),g=(n-h)*(e*e);return p*g});const u=5/e,f=Z6(o,s,u);if(e=qr(e),isNaN(f))return{stiffness:_t.stiffness,damping:_t.damping,duration:e};{const h=Math.pow(f,2)*i;return{stiffness:h,damping:c*2*Math.sqrt(i*h),duration:e}}}const q6=12;function Z6(e,t,n){let i=n;for(let o=1;o<q6;o++)i=i-e(i)/t(i);return i}function yg(e,t){return e*Math.sqrt(1-t*t)}const Y6=["duration","bounce"],W6=["stiffness","damping","mass"];function Ew(e,t){return t.some(n=>e[n]!==void 0)}function X6(e){let t={velocity:_t.velocity,stiffness:_t.stiffness,damping:_t.damping,mass:_t.mass,isResolvedFromDuration:!1,...e};if(!Ew(e,W6)&&Ew(e,Y6))if(e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),o=i*i,s=2*Ii(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:_t.mass,stiffness:o,damping:s}}else{const n=$6(e);t={...t,...n,mass:_t.mass},t.isResolvedFromDuration=!0}return t}function wf(e=_t.visualDuration,t=_t.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:S}=X6({...n,velocity:-ur(n.velocity||0)}),w=b||0,A=h/(2*Math.sqrt(f*p)),R=c-s,N=ur(Math.sqrt(f/p)),x=Math.abs(R)<5;i||(i=x?_t.restSpeed.granular:_t.restSpeed.default),o||(o=x?_t.restDelta.granular:_t.restDelta.default);let C;if(A<1){const _=yg(N,A);C=k=>{const L=Math.exp(-A*N*k);return c-L*((w+A*N*R)/_*Math.sin(_*k)+R*Math.cos(_*k))}}else if(A===1)C=_=>c-Math.exp(-N*_)*(R+(w+N*R)*_);else{const _=N*Math.sqrt(A*A-1);C=k=>{const L=Math.exp(-A*N*k),O=Math.min(_*k,300);return c-L*((w+A*N*R)*Math.sinh(O)+_*R*Math.cosh(O))/_}}const I={calculatedDuration:S&&g||null,next:_=>{const k=C(_);if(S)u.done=_>=g;else{let L=_===0?w:0;A<1&&(L=_===0?qr(w):GD(C,_,k));const O=Math.abs(L)<=i,V=Math.abs(c-k)<=o;u.done=O&&V}return u.value=u.done?c:k,u},toString:()=>{const _=Math.min(tb(I),Af),k=HD(L=>I.next(_*L).value,_,30);return _+"ms "+k},toTransition:()=>{}};return I}wf.applyToOptions=e=>{const t=G6(e,100,wf);return e.ease=t.ease,e.duration=qr(t.duration),e.type="keyframes",e};function gg({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},S=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 R=g+A,N=c===void 0?R:c(R);N!==R&&(A=N-g);const x=O=>-A*Math.exp(-O/i),C=O=>N+x(O),I=O=>{const V=x(O),$=C(O);b.done=Math.abs(V)<=h,b.value=b.done?N:$};let _,k;const L=O=>{S(b.value)&&(_=O,k=wf({keyframes:[b.value,w(b.value)],velocity:GD(C,O,b.value),damping:o,stiffness:s,restDelta:h,restSpeed:p}))};return L(0),{calculatedDuration:null,next:O=>{let V=!1;return!k&&_===void 0&&(V=!0,I(O),L(O)),_!==void 0&&O>=_?k.next(O-_):(!V&&I(O),b)}}}function Q6(e,t,n){const i=[],o=n||_i.mix||FD,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]||fr:t;u=Xc(f,u)}i.push(u)}return i}function J6(e,t,{clamp:n=!0,ease:i,mixer:o}={}){const s=e.length;if(Kv(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=Q6(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=Rc(e[g],e[g+1],p);return u[g](b)};return n?p=>h(Ii(e[0],e[s-1],p)):h}function eq(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const o=Rc(0,t,i);e.push(At(n,1,o))}}function tq(e){const t=[0];return eq(t,e.length-1),t}function nq(e,t){return e.map(n=>n*t)}function rq(e,t){return e.map(()=>t||LD).splice(0,e.length-1)}function yc({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const o=p6(i)?i.map(mw):mw(i),s={done:!1,value:t[0]},c=nq(n&&n.length===t.length?n:tq(t),e),u=J6(c,t,{ease:Array.isArray(o)?o:rq(t,o)});return{calculatedDuration:e,next:f=>(s.value=u(f),s.done=f>=e,s)}}const iq=e=>e!==null;function nb(e,{repeat:t,repeatType:n="loop"},i,o=1){const s=e.filter(iq),u=o<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!u||i===void 0?s[u]:i}const aq={decay:gg,inertia:gg,tween:yc,keyframes:yc,spring:wf};function KD(e){typeof e.type=="string"&&(e.type=aq[e.type])}class rb{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 oq=e=>e/100;class ib extends rb{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!==kn.now()&&this.tick(kn.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;KD(t);const{type:n=yc,repeat:i=0,repeatDelay:o=0,repeatType:s,velocity:c=0}=t;let{keyframes:u}=t;const f=n||yc;f!==yc&&typeof u[0]!="number"&&(this.mixKeyframes=Xc(oq,FD(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=tb(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:S,type:w,onUpdate:A,finalKeyframe:R}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const N=this.currentTime-h*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?N<0:N>o;this.currentTime=Math.max(N,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let C=this.currentTime,I=i;if(g){const O=Math.min(this.currentTime,o)/u;let V=Math.floor(O),$=O%1;!$&&O>=1&&($=1),$===1&&V--,V=Math.min(V,g+1),!!(V%2)&&(b==="reverse"?($=1-$,S&&($-=S/u)):b==="mirror"&&(I=c)),C=Ii(0,1,$)*u}const _=x?{done:!1,value:p[0]}:I.next(C);s&&(_.value=s(_.value));let{done:k}=_;!x&&f!==null&&(k=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const L=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&k);return L&&w!==gg&&(_.value=nb(p,this.options,R,this.speed)),A&&A(_.value),L&&this.finish(),_}then(t,n){return this.finished.then(t,n)}get duration(){return ur(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ur(t)}get time(){return ur(this.currentTime)}set time(t){t=qr(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(kn.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ur(this.currentTime))}play(){if(this.isStopped)return;const{driver:t=H6,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(kn.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 sq(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const ro=e=>e*180/Math.PI,vg=e=>{const t=ro(Math.atan2(e[1],e[0]));return bg(t)},lq={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:vg,rotateZ:vg,skewX:e=>ro(Math.atan(e[1])),skewY:e=>ro(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},bg=e=>(e=e%360,e<0&&(e+=360),e),xw=vg,Sw=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Aw=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),cq={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Sw,scaleY:Aw,scale:e=>(Sw(e)+Aw(e))/2,rotateX:e=>bg(ro(Math.atan2(e[6],e[5]))),rotateY:e=>bg(ro(Math.atan2(-e[2],e[0]))),rotateZ:xw,rotate:xw,skewX:e=>ro(Math.atan(e[4])),skewY:e=>ro(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Eg(e){return e.includes("scale")?1:0}function xg(e,t){if(!e||e==="none")return Eg(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,o;if(n)i=cq,o=n;else{const u=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=lq,o=u}if(!o)return Eg(t);const s=i[t],c=o[1].split(",").map(dq);return typeof s=="function"?s(c):c[s]}const uq=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return xg(n,t)};function dq(e){return parseFloat(e.trim())}const Ws=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xs=new Set(Ws),ww=e=>e===Ys||e===De,fq=new Set(["x","y","z"]),hq=Ws.filter(e=>!fq.has(e));function pq(e){const t=[];return hq.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const oo={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})=>xg(t,"x"),y:(e,{transform:t})=>xg(t,"y")};oo.translateX=oo.x;oo.translateY=oo.y;const so=new Set;let Sg=!1,Ag=!1,wg=!1;function $D(){if(Ag){const e=Array.from(so).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const o=pq(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)})}Ag=!1,Sg=!1,so.forEach(e=>e.complete(wg)),so.clear()}function qD(){so.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Ag=!0)})}function mq(){wg=!0,qD(),$D(),wg=!1}class ab{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?(so.add(this),Sg||(Sg=!0,xt.read(qD),xt.resolveKeyframes($D))):(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])}sq(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),so.delete(this)}cancel(){this.state==="scheduled"&&(so.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const yq=e=>e.startsWith("--");function gq(e,t,n){yq(t)?e.style.setProperty(t,n):e.style[t]=n}const vq=$v(()=>window.ScrollTimeline!==void 0),bq={};function Eq(e,t){const n=$v(e);return()=>bq[t]??n()}const ZD=Eq(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),cc=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,Tw={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:cc([0,.65,.55,1]),circOut:cc([.55,0,1,.45]),backIn:cc([.31,.01,.66,-.59]),backOut:cc([.33,1.53,.69,.99])};function YD(e,t){if(e)return typeof e=="function"?ZD()?HD(e,t):"ease-out":DD(e)?cc(e):Array.isArray(e)?e.map(n=>YD(n,t)||Tw.easeOut):Tw[e]}function xq(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=YD(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 WD(e){return typeof e=="function"&&"applyToOptions"in e}function Sq({type:e,...t}){return WD(e)&&ZD()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Aq extends rb{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,Kv(typeof t.type!="string");const h=Sq(t);this.animation=xq(n,i,o,h,s),h.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const p=nb(o,this.options,u,this.speed);this.updateMotionValue?this.updateMotionValue(p):gq(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 ur(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ur(t)}get time(){return ur(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=qr(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&&vq()?(this.animation.timeline=t,fr):n(this)}}const XD={anticipate:_D,backInOut:ID,circInOut:kD};function wq(e){return e in XD}function Tq(e){typeof e.ease=="string"&&wq(e.ease)&&(e.ease=XD[e.ease])}const Cw=10;class Cq extends Aq{constructor(t){Tq(t),KD(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 ib({...c,autoplay:!1}),f=qr(this.finishedTime??this.time);n.setWithVelocity(u.sample(f-Cw).value,u.sample(f).value,Cw),u.stop()}}const Rw=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ma.test(e)||e==="0")&&!e.startsWith("url("));function Rq(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 Iq(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=Rw(o,t),u=Rw(s,t);return!c||!u?!1:Rq(e)||(n==="spring"||WD(n))&&i}function Tg(e){e.duration=0,e.type="keyframes"}const _q=new Set(["opacity","clipPath","filter","transform"]),Nq=$v(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function kq(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 Nq()&&n&&_q.has(n)&&(n!=="transform"||!h)&&!f&&!i&&o!=="mirror"&&s!==0&&c!=="inertia"}const Lq=40;class Dq extends rb{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=kn.now();const b={autoplay:t,delay:n,type:i,repeat:o,repeatDelay:s,repeatType:c,name:f,motionValue:h,element:p,...g},S=p?.KeyframeResolver||ab;this.keyframeResolver=new S(u,(w,A,R)=>this.onKeyframesResolved(w,A,b,!R),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=kn.now(),Iq(t,s,c,u)||((_i.instantAnimations||!f)&&p?.(nb(t,i,n)),t[0]=t[t.length-1],Tg(i),i.repeat=0);const b={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Lq?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:t},S=!h&&kq(b)?new Cq({...b,element:b.motionValue.owner.current}):new ib(b);S.finished.then(()=>this.notifyFinished()).catch(fr),this.pendingTimeline&&(this.stopTimeline=S.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=S}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(),mq()),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 Oq=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function jq(e){const t=Oq.exec(e);if(!t)return[,];const[,n,i,o]=t;return[`--${n??i}`,o]}function QD(e,t,n=1){const[i,o]=jq(e);if(!i)return;const s=window.getComputedStyle(t).getPropertyValue(i);if(s){const c=s.trim();return ED(c)?parseFloat(c):c}return Xv(o)?QD(o,t,n+1):o}function ob(e,t){return e?.[t]??e?.default??e}const JD=new Set(["width","height","top","left","right","bottom",...Ws]),zq={test:e=>e==="auto",parse:e=>e},eO=e=>t=>t.test(e),tO=[Ys,De,Zr,ca,R6,C6,zq],Iw=e=>tO.find(eO(e));function Mq(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||SD(e):!0}const Pq=new Set(["brightness","contrast","saturate","opacity"]);function Bq(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(Qv)||[];if(!i)return e;const o=n.replace(i,"");let s=Pq.has(t)?1:0;return i!==n&&(s*=100),t+"("+s+o+")"}const Uq=/\b([a-z-]*)\(.*?\)/gu,Cg={...ma,getAnimatableNone:e=>{const t=e.match(Uq);return t?t.map(Bq).join(" "):e}},_w={...Ys,transform:Math.round},Vq={rotate:ca,rotateX:ca,rotateY:ca,rotateZ:ca,scale:jd,scaleX:jd,scaleY:jd,scaleZ:jd,skew:ca,skewX:ca,skewY:ca,distance:De,translateX:De,translateY:De,translateZ:De,x:De,y:De,z:De,perspective:De,transformPerspective:De,opacity:Ic,originX:yw,originY:yw,originZ:De},sb={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,...Vq,zIndex:_w,fillOpacity:Ic,strokeOpacity:Ic,numOctaves:_w},Fq={...sb,color:Vt,backgroundColor:Vt,outlineColor:Vt,fill:Vt,stroke:Vt,borderColor:Vt,borderTopColor:Vt,borderRightColor:Vt,borderBottomColor:Vt,borderLeftColor:Vt,filter:Cg,WebkitFilter:Cg},nO=e=>Fq[e];function rO(e,t){let n=nO(e);return n!==Cg&&(n=ma),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Hq=new Set(["auto","none","0"]);function Gq(e,t,n){let i=0,o;for(;i<e.length&&!o;){const s=e[i];typeof s=="string"&&!Hq.has(s)&&_c(s).values.length&&(o=e[i]),i++}if(o&&n)for(const s of t)e[s]=rO(n,o)}class Kq extends ab{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(),Xv(h))){const p=QD(h,n.current);p!==void 0&&(t[f]=p),f===t.length-1&&(this.finalKeyframe=h)}}if(this.resolveNoneKeyframes(),!JD.has(i)||t.length!==2)return;const[o,s]=t,c=Iw(o),u=Iw(s);if(c!==u)if(ww(c)&&ww(u))for(let f=0;f<t.length;f++){const h=t[f];typeof h=="string"&&(t[f]=parseFloat(h))}else oo[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,i=[];for(let o=0;o<t.length;o++)(t[o]===null||Mq(t[o]))&&i.push(o);i.length&&Gq(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=oo[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]=oo[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 $q(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 iO=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function qq(e){return xD(e)&&"offsetHeight"in e}const Nw=30,Zq=e=>!isNaN(parseFloat(e));class Yq{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{const o=kn.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=kn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Zq(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 qv);const i=this.events[t].add(n);return t==="change"?()=>{i(),xt.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=kn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Nw)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,Nw);return AD(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 Ps(e,t){return new Yq(e,t)}const{schedule:lb}=OD(queueMicrotask,!1),br={x:!1,y:!1};function aO(){return br.x||br.y}function Wq(e){return e==="x"||e==="y"?br[e]?null:(br[e]=!0,()=>{br[e]=!1}):br.x||br.y?null:(br.x=br.y=!0,()=>{br.x=br.y=!1})}function oO(e,t){const n=$q(e),i=new AbortController,o={passive:!0,...t,signal:i.signal};return[n,o,()=>i.abort()]}function kw(e){return!(e.pointerType==="touch"||aO())}function Xq(e,t,n={}){const[i,o,s]=oO(e,n),c=u=>{if(!kw(u))return;const{target:f}=u,h=t(f,u);if(typeof h!="function"||!f)return;const p=g=>{kw(g)&&(h(g),f.removeEventListener("pointerleave",p))};f.addEventListener("pointerleave",p,o)};return i.forEach(u=>{u.addEventListener("pointerenter",c,o)}),s}const sO=(e,t)=>t?e===t?!0:sO(e,t.parentElement):!1,cb=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Qq=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Jq(e){return Qq.has(e.tagName)||e.tabIndex!==-1}const of=new WeakSet;function Lw(e){return t=>{t.key==="Enter"&&e(t)}}function Ty(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const e8=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=Lw(()=>{if(of.has(n))return;Ty(n,"down");const o=Lw(()=>{Ty(n,"up")}),s=()=>Ty(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 Dw(e){return cb(e)&&!aO()}function t8(e,t,n={}){const[i,o,s]=oO(e,n),c=u=>{const f=u.currentTarget;if(!Dw(u))return;of.add(f);const h=t(f,u),p=(S,w)=>{window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",b),of.has(f)&&of.delete(f),Dw(S)&&typeof h=="function"&&h(S,{success:w})},g=S=>{p(S,f===window||f===document||n.useGlobalTarget||sO(f,S.target))},b=S=>{p(S,!1)};window.addEventListener("pointerup",g,o),window.addEventListener("pointercancel",b,o)};return i.forEach(u=>{(n.useGlobalTarget?window:u).addEventListener("pointerdown",c,o),qq(u)&&(u.addEventListener("focus",h=>e8(h,o)),!Jq(u)&&!u.hasAttribute("tabindex")&&(u.tabIndex=0))}),s}function lO(e){return xD(e)&&"ownerSVGElement"in e}function n8(e){return lO(e)&&e.tagName==="svg"}const pn=e=>!!(e&&e.getVelocity),r8=[...tO,Vt,ma],i8=e=>r8.find(eO(e)),cO=E.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function a8(e=!0){const t=E.useContext(Fv);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 ub=E.createContext({strict:!1}),Ow={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"]},Bs={};for(const e in Ow)Bs[e]={isEnabled:t=>Ow[e].some(n=>!!t[n])};function Rg(e){for(const t in e)Bs[t]={...Bs[t],...e[t]}}function o8({children:e,features:t,strict:n=!1}){const[,i]=E.useState(!Cy(t)),o=E.useRef(void 0);if(!Cy(t)){const{renderer:s,...c}=t;o.current=s,Rg(c)}return E.useEffect(()=>{Cy(t)&&t().then(({renderer:s,...c})=>{Rg(c),o.current=s,i(!0)})},[]),y.jsx(ub.Provider,{value:{renderer:o.current,strict:n},children:e})}function Cy(e){return typeof e=="function"}const s8=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 Tf(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||s8.has(e)}let uO=e=>!Tf(e);function l8(e){typeof e=="function"&&(uO=t=>t.startsWith("on")?!Tf(t):e(t))}try{l8(require("@emotion/is-prop-valid").default)}catch{}function c8(e,t,n){const i={};for(const o in e)o==="values"&&typeof e.values=="object"||(uO(o)||n===!0&&Tf(o)||!t&&!Tf(o)||e.draggable&&o.startsWith("onDrag"))&&(i[o]=e[o]);return i}const rh=E.createContext({});function ih(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Nc(e){return typeof e=="string"||Array.isArray(e)}const db=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],fb=["initial",...db];function ah(e){return ih(e.animate)||fb.some(t=>Nc(e[t]))}function dO(e){return!!(ah(e)||e.variants)}function u8(e,t){if(ah(e)){const{initial:n,animate:i}=e;return{initial:n===!1||Nc(n)?n:void 0,animate:Nc(i)?i:void 0}}return e.inherit!==!1?t:{}}function d8(e){const{initial:t,animate:n}=u8(e,E.useContext(rh));return E.useMemo(()=>({initial:t,animate:n}),[jw(t),jw(n)])}function jw(e){return Array.isArray(e)?e.join(" "):e}const kc={};function f8(e){for(const t in e)kc[t]=e[t],Wv(t)&&(kc[t].isCSSVariable=!0)}function fO(e,{layout:t,layoutId:n}){return Xs.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!kc[e]||e==="opacity")}const h8={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},p8=Ws.length;function m8(e,t,n){let i="",o=!0;for(let s=0;s<p8;s++){const c=Ws[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=iO(u,sb[c]);if(!f){o=!1;const p=h8[c]||c;i+=`${p}(${h}) `}n&&(t[c]=h)}}return i=i.trim(),n?i=n(t,o?"":i):o&&(i="none"),i}function hb(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(Xs.has(f)){c=!0;continue}else if(Wv(f)){o[f]=h;continue}else{const p=iO(h,sb[f]);f.startsWith("origin")?(u=!0,s[f]=p):i[f]=p}}if(t.transform||(c||n?i.transform=m8(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 pb=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function hO(e,t,n){for(const i in t)!pn(t[i])&&!fO(i,n)&&(e[i]=t[i])}function y8({transformTemplate:e},t){return E.useMemo(()=>{const n=pb();return hb(n,t,e),Object.assign({},n.vars,n.style)},[t])}function g8(e,t){const n=e.style||{},i={};return hO(i,n,e),Object.assign(i,y8(e,t)),i}function v8(e,t){const n={},i=g8(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 b8={offset:"stroke-dashoffset",array:"stroke-dasharray"},E8={offset:"strokeDashoffset",array:"strokeDasharray"};function x8(e,t,n=1,i=0,o=!0){e.pathLength=1;const s=o?b8:E8;e[s.offset]=De.transform(-i);const c=De.transform(t),u=De.transform(n);e[s.array]=`${c} ${u}`}function pO(e,{attrX:t,attrY:n,attrScale:i,pathLength:o,pathSpacing:s=1,pathOffset:c=0,...u},f,h,p){if(hb(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&&x8(g,o,s,c,!1)}const mO=()=>({...pb(),attrs:{}}),yO=e=>typeof e=="string"&&e.toLowerCase()==="svg";function S8(e,t,n,i){const o=E.useMemo(()=>{const s=mO();return pO(s,t,yO(i),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};hO(s,e.style,e),o.style={...s,...o.style}}return o}const A8=["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 mb(e){return typeof e!="string"||e.includes("-")?!1:!!(A8.indexOf(e)>-1||/[A-Z]/u.test(e))}function w8(e,t,n,{latestValues:i},o,s=!1){const u=(mb(e)?S8:v8)(t,i,o,e),f=c8(t,typeof e=="string",s),h=e!==E.Fragment?{...f,...u,ref:n}:{},{children:p}=t,g=E.useMemo(()=>pn(p)?p.get():p,[p]);return E.createElement(e,{...h,children:g})}function zw(e){const t=[{},{}];return e?.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function yb(e,t,n,i){if(typeof t=="function"){const[o,s]=zw(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]=zw(i);t=t(n!==void 0?n:e.custom,o,s)}return t}function sf(e){return pn(e)?e.get():e}function T8({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,o){return{latestValues:C8(n,i,o,e),renderState:t()}}function C8(e,t,n,i){const o={},s=i(e,{});for(const b in s)o[b]=sf(s[b]);let{initial:c,animate:u}=e;const f=ah(e),h=dO(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"&&!ih(g)){const b=Array.isArray(g)?g:[g];for(let S=0;S<b.length;S++){const w=yb(e,b[S]);if(w){const{transitionEnd:A,transition:R,...N}=w;for(const x in N){let C=N[x];if(Array.isArray(C)){const I=p?C.length-1:0;C=C[I]}C!==null&&(o[x]=C)}for(const x in A)o[x]=A[x]}}}return o}const gO=e=>(t,n)=>{const i=E.useContext(rh),o=E.useContext(Fv),s=()=>T8(e,t,i,o);return n?s():o6(s)};function gb(e,t,n){const{style:i}=e,o={};for(const s in i)(pn(i[s])||t.style&&pn(t.style[s])||fO(s,e)||n?.getValue(s)?.liveStyle!==void 0)&&(o[s]=i[s]);return o}const R8=gO({scrapeMotionValuesFromProps:gb,createRenderState:pb});function vO(e,t,n){const i=gb(e,t,n);for(const o in e)if(pn(e[o])||pn(t[o])){const s=Ws.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;i[s]=e[o]}return i}const I8=gO({scrapeMotionValuesFromProps:vO,createRenderState:mO}),_8=Symbol.for("motionComponentSymbol");function As(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function N8(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):As(n)&&(n.current=i))},[t])}const vb=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),k8="framerAppearId",bO="data-"+vb(k8),EO=E.createContext({});function L8(e,t,n,i,o){const{visualElement:s}=E.useContext(rh),c=E.useContext(ub),u=E.useContext(Fv),f=E.useContext(cO).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(EO);p&&!p.projection&&o&&(p.type==="html"||p.type==="svg")&&D8(h.current,n,o,g);const b=E.useRef(!1);E.useInsertionEffect(()=>{p&&b.current&&p.update(n,u)});const S=n[bO],w=E.useRef(!!S&&!window.MotionHandoffIsComplete?.(S)&&window.MotionHasOptimisedAnimation?.(S));return s6(()=>{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?.(S)}),w.current=!1),p.enteringChildren=void 0)}),p}function D8(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:xO(e.parent)),e.projection.setOptions({layoutId:o,layout:s,alwaysMeasureLayout:!!c||u&&As(u),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:i,crossfade:p,layoutScroll:f,layoutRoot:h})}function xO(e){if(e)return e.options.allowProjection!==!1?e.projection:xO(e.parent)}function Ry(e,{forwardMotionProps:t=!1}={},n,i){n&&Rg(n);const o=mb(e)?I8:R8;function s(u,f){let h;const p={...E.useContext(cO),...u,layoutId:O8(u)},{isStatic:g}=p,b=d8(u),S=o(u,g);if(!g&&Vv){j8();const w=z8(p);h=w.MeasureLayout,b.visualElement=L8(e,S,p,i,w.ProjectionNode)}return y.jsxs(rh.Provider,{value:b,children:[h&&b.visualElement?y.jsx(h,{visualElement:b.visualElement,...p}):null,w8(e,u,N8(S,b.visualElement,f),S,g,t)]})}s.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=E.forwardRef(s);return c[_8]=e,c}function O8({layoutId:e}){const t=E.useContext(bD).id;return t&&e!==void 0?t+"-"+e:e}function j8(e,t){E.useContext(ub).strict}function z8(e){const{drag:t,layout:n}=Bs;if(!t&&!n)return{};const i={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function M8(e,t){if(typeof Proxy>"u")return Ry;const n=new Map,i=(s,c)=>Ry(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,Ry(c,void 0,e,t)),n.get(c))})}function SO({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function P8({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function B8(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 Iy(e){return e===void 0||e===1}function Ig({scale:e,scaleX:t,scaleY:n}){return!Iy(e)||!Iy(t)||!Iy(n)}function eo(e){return Ig(e)||AO(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function AO(e){return Mw(e.x)||Mw(e.y)}function Mw(e){return e&&e!=="0%"}function Cf(e,t,n){const i=e-n,o=t*i;return n+o}function Pw(e,t,n,i,o){return o!==void 0&&(e=Cf(e,o,i)),Cf(e,n,i)+t}function _g(e,t=0,n=1,i,o){e.min=Pw(e.min,t,n,i,o),e.max=Pw(e.max,t,n,i,o)}function wO(e,{x:t,y:n}){_g(e.x,t.translate,t.scale,t.originPoint),_g(e.y,n.translate,n.scale,n.originPoint)}const Bw=.999999999999,Uw=1.0000000000001;function U8(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&&Ts(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),c&&(t.x*=c.x.scale,t.y*=c.y.scale,wO(e,c)),i&&eo(s.latestValues)&&Ts(e,s.latestValues))}t.x<Uw&&t.x>Bw&&(t.x=1),t.y<Uw&&t.y>Bw&&(t.y=1)}function ws(e,t){e.min=e.min+t,e.max=e.max+t}function Vw(e,t,n,i,o=.5){const s=At(e.min,e.max,o);_g(e,t,n,s,i)}function Ts(e,t){Vw(e.x,t.x,t.scaleX,t.scale,t.originX),Vw(e.y,t.y,t.scaleY,t.scale,t.originY)}function TO(e,t){return SO(B8(e.getBoundingClientRect(),t))}function V8(e,t,n){const i=TO(e,n),{scroll:o}=t;return o&&(ws(i.x,o.offset.x),ws(i.y,o.offset.y)),i}const Fw=()=>({translate:0,scale:1,origin:0,originPoint:0}),Cs=()=>({x:Fw(),y:Fw()}),Hw=()=>({min:0,max:0}),Dt=()=>({x:Hw(),y:Hw()}),Ng={current:null},CO={current:!1};function F8(){if(CO.current=!0,!!Vv)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ng.current=e.matches;e.addEventListener("change",t),t()}else Ng.current=!1}const H8=new WeakMap;function G8(e,t,n){for(const i in t){const o=t[i],s=n[i];if(pn(o))e.addValue(i,o);else if(pn(s))e.addValue(i,Ps(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,Ps(c!==void 0?c:o,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Gw=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class K8{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=ab,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=kn.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,xt.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=ah(n),this.isVariantNode=dO(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 S=g[b];f[b]!==void 0&&pn(S)&&S.set(f[b])}}mount(t){this.current=t,H8.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)),CO.current||F8(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Ng.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),pa(this.notifyUpdate),pa(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=Xs.has(t);i&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&xt.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 Bs){const n=Bs[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):Dt()}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<Gw.length;i++){const o=Gw[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=G8(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=Ps(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"&&(ED(i)||SD(i))?i=parseFloat(i):!i8(i)&&ma.test(n)&&(i=rO(t,n)),this.setBaseTarget(t,pn(i)?i.get():i)),pn(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=yb(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&&!pn(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 qv),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){lb.render(this.render)}}class RO extends K8{constructor(){super(...arguments),this.KeyframeResolver=Kq}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;pn(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function IO(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 $8(e){return window.getComputedStyle(e)}class q8 extends RO{constructor(){super(...arguments),this.type="html",this.renderInstance=IO}readValueFromInstance(t,n){if(Xs.has(n))return this.projection?.isProjecting?Eg(n):uq(t,n);{const i=$8(t),o=(Wv(n)?i.getPropertyValue(n):i[n])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(t,{transformPagePoint:n}){return TO(t,n)}build(t,n,i){hb(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return gb(t,n,i)}}const _O=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 Z8(e,t,n,i){IO(e,t,void 0,i);for(const o in t.attrs)e.setAttribute(_O.has(o)?o:vb(o),t.attrs[o])}class Y8 extends RO{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Dt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(Xs.has(n)){const i=nO(n);return i&&i.default||0}return n=_O.has(n)?n:vb(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return vO(t,n,i)}build(t,n,i){pO(t,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,n,i,o){Z8(t,n,i,o)}mount(t){this.isSVGTag=yO(t.tagName),super.mount(t)}}const NO=(e,t)=>mb(e)?new Y8(t):new q8(t,{allowProjection:e!==E.Fragment});function ks(e,t,n){const i=e.getProps();return yb(i,t,n!==void 0?n:i.custom,e)}const kg=e=>Array.isArray(e);function W8(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Ps(n))}function X8(e){return kg(e)?e[e.length-1]||0:e}function Q8(e,t){const n=ks(e,t);let{transitionEnd:i={},transition:o={},...s}=n||{};s={...s,...i};for(const c in s){const u=X8(s[c]);W8(e,c,u)}}function J8(e){return!!(pn(e)&&e.add)}function Lg(e,t){const n=e.getValue("willChange");if(J8(n))return n.add(t);if(!n&&_i.WillChange){const i=new _i.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function kO(e){return e.props[bO]}const e9=e=>e!==null;function t9(e,{repeat:t,repeatType:n="loop"},i){const o=e.filter(e9),s=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[s]}const n9={type:"spring",stiffness:500,damping:25,restSpeed:10},r9=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),i9={type:"keyframes",duration:.8},a9={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},o9=(e,{keyframes:t})=>t.length>2?i9:Xs.has(e)?e.startsWith("scale")?r9(t[1]):n9:a9;function s9({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 bb=(e,t,n,i={},o,s)=>c=>{const u=ob(i,e)||{},f=u.delay||i.delay||0;let{elapsed:h=0}=i;h=h-qr(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};s9(u)||Object.assign(p,o9(e,p)),p.duration&&(p.duration=qr(p.duration)),p.repeatDelay&&(p.repeatDelay=qr(p.repeatDelay)),p.from!==void 0&&(p.keyframes[0]=p.from);let g=!1;if((p.type===!1||p.duration===0&&!p.repeatDelay)&&(Tg(p),p.delay===0&&(g=!0)),(_i.instantAnimations||_i.skipAnimations)&&(g=!0,Tg(p),p.delay=0),p.allowFlatten=!u.type&&!u.ease,g&&!s&&t.get()!==void 0){const b=t9(p.keyframes,u);if(b!==void 0){xt.update(()=>{p.onUpdate(b),p.onComplete()});return}}return u.isSync?new ib(p):new Dq(p)};function l9({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function LO(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&&l9(h,p))continue;const S={delay:n,...ob(s||{},p)},w=g.get();if(w!==void 0&&!g.isAnimating&&!Array.isArray(b)&&b===w&&!S.velocity)continue;let A=!1;if(window.MotionHandoffAnimation){const N=kO(e);if(N){const x=window.MotionHandoffAnimation(N,p,xt);x!==null&&(S.startTime=x,A=!0)}}Lg(e,p),g.start(bb(p,g,b,e.shouldReduceMotion&&JD.has(p)?{type:!1}:S,e,A));const R=g.animation;R&&f.push(R)}return c&&Promise.all(f).then(()=>{xt.update(()=>{c&&Q8(e,c)})}),f}function DO(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 Dg(e,t,n={}){const i=ks(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(LO(e,i,n)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(f=0)=>{const{delayChildren:h=0,staggerChildren:p,staggerDirection:g}=o;return c9(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 c9(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(Dg(f,t,{...c,delay:n+(typeof i=="function"?0:i)+DO(e.variantChildren,f,i,o,s)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(u)}function u9(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const o=t.map(s=>Dg(e,s,n));i=Promise.all(o)}else if(typeof t=="string")i=Dg(e,t,n);else{const o=typeof t=="function"?ks(e,t,n.custom):t;i=Promise.all(LO(e,o,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}function OO(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 d9=fb.length;function jO(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?jO(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<d9;n++){const i=fb[n],o=e.props[i];(Nc(o)||o===!1)&&(t[i]=o)}return t}const f9=[...db].reverse(),h9=db.length;function p9(e){return t=>Promise.all(t.map(({animation:n,options:i})=>u9(e,n,i)))}function m9(e){let t=p9(e),n=Kw(),i=!0;const o=f=>(h,p)=>{const g=ks(e,p,f==="exit"?e.presenceContext?.custom:void 0);if(g){const{transition:b,transitionEnd:S,...w}=g;h={...h,...w,...S}}return h};function s(f){t=f(e)}function c(f){const{props:h}=e,p=jO(e.parent)||{},g=[],b=new Set;let S={},w=1/0;for(let R=0;R<h9;R++){const N=f9[R],x=n[N],C=h[N]!==void 0?h[N]:p[N],I=Nc(C),_=N===f?x.isActive:null;_===!1&&(w=R);let k=C===p[N]&&C!==h[N]&&I;if(k&&i&&e.manuallyAnimateOnMount&&(k=!1),x.protectedKeys={...S},!x.isActive&&_===null||!C&&!x.prevProp||ih(C)||typeof C=="boolean")continue;const L=y9(x.prevProp,C);let O=L||N===f&&x.isActive&&!k&&I||R>w&&I,V=!1;const $=Array.isArray(C)?C:[C];let H=$.reduce(o(N),{});_===!1&&(H={});const{prevResolvedValues:ae={}}=x,ce={...ae,...H},X=Y=>{O=!0,b.has(Y)&&(V=!0,b.delete(Y)),x.needsAnimating[Y]=!0;const K=e.getValue(Y);K&&(K.liveStyle=!1)};for(const Y in ce){const K=H[Y],me=ae[Y];if(S.hasOwnProperty(Y))continue;let Ee=!1;kg(K)&&kg(me)?Ee=!OO(K,me):Ee=K!==me,Ee?K!=null?X(Y):b.add(Y):K!==void 0&&b.has(Y)?X(Y):x.protectedKeys[Y]=!0}x.prevProp=C,x.prevResolvedValues=H,x.isActive&&(S={...S,...H}),i&&e.blockInitialAnimation&&(O=!1);const oe=k&&L;O&&(!oe||V)&&g.push(...$.map(Y=>{const K={type:N};if(typeof Y=="string"&&i&&!oe&&e.manuallyAnimateOnMount&&e.parent){const{parent:me}=e,Ee=ks(me,Y);if(me.enteringChildren&&Ee){const{delayChildren:j}=Ee.transition||{};K.delay=DO(me.enteringChildren,e,j)}}return{animation:Y,options:K}}))}if(b.size){const R={};if(typeof h.initial!="boolean"){const N=ks(e,Array.isArray(h.initial)?h.initial[0]:h.initial);N&&N.transition&&(R.transition=N.transition)}b.forEach(N=>{const x=e.getBaseTarget(N),C=e.getValue(N);C&&(C.liveStyle=!0),R[N]=x??null}),g.push({animation:R})}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=Kw()}}}function y9(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!OO(t,e):!1}function Xa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Kw(){return{animate:Xa(!0),whileInView:Xa(),whileHover:Xa(),whileTap:Xa(),whileDrag:Xa(),whileFocus:Xa(),exit:Xa()}}class Ea{constructor(t){this.isMounted=!1,this.node=t}update(){}}class g9 extends Ea{constructor(t){super(t),t.animationState||(t.animationState=m9(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();ih(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 v9=0;class b9 extends Ea{constructor(){super(...arguments),this.id=v9++}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 zO={animation:{Feature:g9},exit:{Feature:b9}};function Lc(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}function eu(e){return{point:{x:e.pageX,y:e.pageY}}}const E9=e=>t=>cb(t)&&e(t,eu(t));function gc(e,t,n,i){return Lc(e,t,E9(n),i)}const MO=1e-4,x9=1-MO,S9=1+MO,PO=.01,A9=0-PO,w9=0+PO;function vn(e){return e.max-e.min}function T9(e,t,n){return Math.abs(e-t)<=n}function $w(e,t,n,i=.5){e.origin=i,e.originPoint=At(t.min,t.max,e.origin),e.scale=vn(n)/vn(t),e.translate=At(n.min,n.max,e.origin)-e.originPoint,(e.scale>=x9&&e.scale<=S9||isNaN(e.scale))&&(e.scale=1),(e.translate>=A9&&e.translate<=w9||isNaN(e.translate))&&(e.translate=0)}function vc(e,t,n,i){$w(e.x,t.x,n.x,i?i.originX:void 0),$w(e.y,t.y,n.y,i?i.originY:void 0)}function qw(e,t,n){e.min=n.min+t.min,e.max=e.min+vn(t)}function C9(e,t,n){qw(e.x,t.x,n.x),qw(e.y,t.y,n.y)}function Zw(e,t,n){e.min=t.min-n.min,e.max=e.min+vn(t)}function bc(e,t,n){Zw(e.x,t.x,n.x),Zw(e.y,t.y,n.y)}function sr(e){return[e("x"),e("y")]}const BO=({current:e})=>e?e.ownerDocument.defaultView:null,Yw=(e,t)=>Math.abs(e-t);function R9(e,t){const n=Yw(e.x,t.x),i=Yw(e.y,t.y);return Math.sqrt(n**2+i**2)}class UO{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=Ny(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,w=R9(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!S&&!w)return;const{point:A}=b,{timestamp:R}=cn;this.history.push({...A,timestamp:R});const{onStart:N,onMove:x}=this.handlers;S||(N&&N(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,b)},this.handlePointerMove=(b,S)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=_y(S,this.transformPagePoint),xt.update(this.updatePoint,!0)},this.handlePointerUp=(b,S)=>{this.end();const{onEnd:w,onSessionEnd:A,resumeAnimation:R}=this.handlers;if(this.dragSnapToOrigin&&R&&R(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const N=Ny(b.type==="pointercancel"?this.lastMoveEventInfo:_y(S,this.transformPagePoint),this.history);this.startEvent&&w&&w(b,N),A&&A(b,N)},!cb(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=i,this.distanceThreshold=c,this.contextWindow=o||window;const u=eu(t),f=_y(u,this.transformPagePoint),{point:h}=f,{timestamp:p}=cn;this.history=[{...h,timestamp:p}];const{onSessionStart:g}=n;g&&g(t,Ny(f,this.history)),this.removeListeners=Xc(gc(this.contextWindow,"pointermove",this.handlePointerMove),gc(this.contextWindow,"pointerup",this.handlePointerUp),gc(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),pa(this.updatePoint)}}function _y(e,t){return t?{point:t(e.point)}:e}function Ww(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ny({point:e},t){return{point:e,delta:Ww(e,VO(t)),offset:Ww(e,I9(t)),velocity:_9(t,.1)}}function I9(e){return e[0]}function VO(e){return e[e.length-1]}function _9(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null;const o=VO(e);for(;n>=0&&(i=e[n],!(o.timestamp-i.timestamp>qr(t)));)n--;if(!i)return{x:0,y:0};const s=ur(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 N9(e,{min:t,max:n},i){return t!==void 0&&e<t?e=i?At(t,e,i.min):Math.max(e,t):n!==void 0&&e>n&&(e=i?At(n,e,i.max):Math.min(e,n)),e}function Xw(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 k9(e,{top:t,left:n,bottom:i,right:o}){return{x:Xw(e.x,n,o),y:Xw(e.y,t,i)}}function Qw(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 L9(e,t){return{x:Qw(e.x,t.x),y:Qw(e.y,t.y)}}function D9(e,t){let n=.5;const i=vn(e),o=vn(t);return o>i?n=Rc(t.min,t.max-i,e.min):i>o&&(n=Rc(e.min,e.max-o,t.min)),Ii(0,1,n)}function O9(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 Og=.35;function j9(e=Og){return e===!1?e=0:e===!0&&(e=Og),{x:Jw(e,"left","right"),y:Jw(e,"top","bottom")}}function Jw(e,t,n){return{min:eT(e,t),max:eT(e,n)}}function eT(e,t){return typeof e=="number"?e:e[t]||0}const z9=new WeakMap;class M9{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=Dt(),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(eu(g).point)},c=(g,b)=>{const{drag:S,dragPropagation:w,onDragStart:A}=this.getProps();if(S&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Wq(S),!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),sr(N=>{let x=this.getAxisMotionValue(N).get()||0;if(Zr.test(x)){const{projection:C}=this.visualElement;if(C&&C.layout){const I=C.layout.layoutBox[N];I&&(x=vn(I)*(parseFloat(x)/100))}}this.originPoint[N]=x}),A&&xt.postRender(()=>A(g,b)),Lg(this.visualElement,"transform");const{animationState:R}=this.visualElement;R&&R.setActive("whileDrag",!0)},u=(g,b)=>{this.latestPointerEvent=g,this.latestPanInfo=b;const{dragPropagation:S,dragDirectionLock:w,onDirectionLock:A,onDrag:R}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:N}=b;if(w&&this.currentDirection===null){this.currentDirection=P9(N),this.currentDirection!==null&&A&&A(this.currentDirection);return}this.updateAxis("x",b.point,N),this.updateAxis("y",b.point,N),this.visualElement.render(),R&&R(g,b)},f=(g,b)=>{this.latestPointerEvent=g,this.latestPanInfo=b,this.stop(g,b),this.latestPointerEvent=null,this.latestPanInfo=null},h=()=>sr(g=>this.getAnimationState(g)==="paused"&&this.getAxisMotionValue(g).animation?.play()),{dragSnapToOrigin:p}=this.getProps();this.panSession=new UO(t,{onSessionStart:s,onStart:c,onMove:u,onSessionEnd:f,resumeAnimation:h},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,distanceThreshold:i,contextWindow:BO(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&&xt.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||!zd(t,o,this.currentDirection))return;const s=this.getAxisMotionValue(t);let c=this.originPoint[t]+i[t];this.constraints&&this.constraints[t]&&(c=N9(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&&As(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=k9(i.layoutBox,t):this.constraints=!1,this.elastic=j9(n),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&sr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=O9(i.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!As(t))return!1;const i=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const s=V8(i,o.root,this.visualElement.getTransformPagePoint());let c=L9(o.layout.layoutBox,s);if(n){const u=n(P8(c));this.hasMutatedConstraints=!!u,u&&(c=SO(u))}return c}startAnimation(t){const{drag:n,dragMomentum:i,dragElastic:o,dragTransition:s,dragSnapToOrigin:c,onDragTransitionEnd:u}=this.getProps(),f=this.constraints||{},h=sr(p=>{if(!zd(p,n,this.currentDirection))return;let g=f&&f[p]||{};c&&(g={min:0,max:0});const b=o?200:1e6,S=o?40:1e7,w={type:"inertia",velocity:i?t[p]:0,bounceStiffness:b,bounceDamping:S,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 Lg(this.visualElement,t),i.start(bb(t,i,0,n,this.visualElement,!1))}stopAnimation(){sr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){sr(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){sr(n=>{const{drag:i}=this.getProps();if(!zd(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]-At(c,u,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:i}=this.visualElement;if(!As(n)||!i||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};sr(c=>{const u=this.getAxisMotionValue(c);if(u&&this.constraints!==!1){const f=u.get();o[c]=D9({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(),sr(c=>{if(!zd(c,t,null))return;const u=this.getAxisMotionValue(c),{min:f,max:h}=this.constraints[c];u.set(At(f,h,o[c]))})}addListeners(){if(!this.visualElement.current)return;z9.set(this.visualElement,this);const t=this.visualElement.current,n=gc(t,"pointerdown",f=>{const{drag:h,dragListener:p=!0}=this.getProps();h&&p&&this.start(f)}),i=()=>{const{dragConstraints:f}=this.getProps();As(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()),xt.read(i);const c=Lc(window,"resize",()=>this.scalePositionWithinConstraints()),u=o.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h})=>{this.isDragging&&h&&(sr(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=Og,dragMomentum:u=!0}=t;return{...t,drag:n,dragDirectionLock:i,dragPropagation:o,dragConstraints:s,dragElastic:c,dragMomentum:u}}}function zd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function P9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class B9 extends Ea{constructor(t){super(t),this.removeGroupControls=fr,this.removeListeners=fr,this.controls=new M9(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fr}unmount(){this.removeGroupControls(),this.removeListeners()}}const tT=e=>(t,n)=>{e&&xt.postRender(()=>e(t,n))};class U9 extends Ea{constructor(){super(...arguments),this.removePointerDownListener=fr}onPointerDown(t){this.session=new UO(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:BO(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:i,onPanEnd:o}=this.node.getProps();return{onSessionStart:tT(t),onStart:tT(n),onMove:i,onEnd:(s,c)=>{delete this.session,o&&xt.postRender(()=>o(s,c))}}}mount(){this.removePointerDownListener=gc(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 lf={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const nc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(De.test(e))e=parseFloat(e);else return e;const n=nT(e,t.target.x),i=nT(e,t.target.y);return`${n}% ${i}%`}},V9={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,o=ma.parse(e);if(o.length>5)return i;const s=ma.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=At(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 ky=!1;class F9 extends E.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i,layoutId:o}=this.props,{projection:s}=t;f8(H9),s&&(n.group&&n.group.add(s),i&&i.register&&o&&i.register(s),ky&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),lf.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:i,drag:o,isPresent:s}=this.props,{projection:c}=i;return c&&(c.isPresent=s,ky=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==s?c.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?c.promote():c.relegate()||xt.postRender(()=>{const u=c.getStack();(!u||!u.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),lb.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:i}=this.props,{projection:o}=t;ky=!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 FO(e){const[t,n]=a8(),i=E.useContext(bD);return y.jsx(F9,{...e,layoutGroup:i,switchLayoutGroup:E.useContext(EO),isPresent:t,safeToRemove:n})}const H9={borderRadius:{...nc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:nc,borderTopRightRadius:nc,borderBottomLeftRadius:nc,borderBottomRightRadius:nc,boxShadow:V9};function G9(e,t,n){const i=pn(e)?e:Ps(e);return i.start(bb("",i,t,n)),i.animation}const K9=(e,t)=>e.depth-t.depth;class $9{constructor(){this.children=[],this.isDirty=!1}add(t){Hv(this.children,t),this.isDirty=!0}remove(t){Gv(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(K9),this.isDirty=!1,this.children.forEach(t)}}function q9(e,t){const n=kn.now(),i=({timestamp:o})=>{const s=o-n;s>=t&&(pa(i),e(s-t))};return xt.setup(i,!0),()=>pa(i)}const HO=["TopLeft","TopRight","BottomLeft","BottomRight"],Z9=HO.length,rT=e=>typeof e=="string"?parseFloat(e):e,iT=e=>typeof e=="number"||De.test(e);function Y9(e,t,n,i,o,s){o?(e.opacity=At(0,n.opacity??1,W9(i)),e.opacityExit=At(t.opacity??1,0,X9(i))):s&&(e.opacity=At(t.opacity??1,n.opacity??1,i));for(let c=0;c<Z9;c++){const u=`border${HO[c]}Radius`;let f=aT(t,u),h=aT(n,u);if(f===void 0&&h===void 0)continue;f||(f=0),h||(h=0),f===0||h===0||iT(f)===iT(h)?(e[u]=Math.max(At(rT(f),rT(h),i),0),(Zr.test(h)||Zr.test(f))&&(e[u]+="%")):e[u]=h}(t.rotate||n.rotate)&&(e.rotate=At(t.rotate||0,n.rotate||0,i))}function aT(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const W9=GO(0,.5,ND),X9=GO(.5,.95,fr);function GO(e,t,n){return i=>i<e?0:i>t?1:n(Rc(e,t,i))}function oT(e,t){e.min=t.min,e.max=t.max}function or(e,t){oT(e.x,t.x),oT(e.y,t.y)}function sT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function lT(e,t,n,i,o){return e-=t,e=Cf(e,1/n,i),o!==void 0&&(e=Cf(e,1/o,i)),e}function Q9(e,t=0,n=1,i=.5,o,s=e,c=e){if(Zr.test(t)&&(t=parseFloat(t),t=At(c.min,c.max,t/100)-c.min),typeof t!="number")return;let u=At(s.min,s.max,i);e===s&&(u-=t),e.min=lT(e.min,t,n,u,o),e.max=lT(e.max,t,n,u,o)}function cT(e,t,[n,i,o],s,c){Q9(e,t[n],t[i],t[o],t.scale,s,c)}const J9=["x","scaleX","originX"],eZ=["y","scaleY","originY"];function uT(e,t,n,i){cT(e.x,t,J9,n?n.x:void 0,i?i.x:void 0),cT(e.y,t,eZ,n?n.y:void 0,i?i.y:void 0)}function dT(e){return e.translate===0&&e.scale===1}function KO(e){return dT(e.x)&&dT(e.y)}function fT(e,t){return e.min===t.min&&e.max===t.max}function tZ(e,t){return fT(e.x,t.x)&&fT(e.y,t.y)}function hT(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function $O(e,t){return hT(e.x,t.x)&&hT(e.y,t.y)}function pT(e){return vn(e.x)/vn(e.y)}function mT(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class nZ{constructor(){this.members=[]}add(t){Hv(this.members,t),t.scheduleRender()}remove(t){if(Gv(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 rZ(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:S,skewY:w}=n;h&&(i=`perspective(${h}px) ${i}`),p&&(i+=`rotate(${p}deg) `),g&&(i+=`rotateX(${g}deg) `),b&&(i+=`rotateY(${b}deg) `),S&&(i+=`skewX(${S}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 Ly=["","X","Y","Z"],iZ=1e3;let aZ=0;function Dy(e,t,n,i){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),i&&(i[e]=0))}function qO(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=kO(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",xt,!(o||s))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&qO(i)}function ZO({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:o}){return class{constructor(c={},u=t?.()){this.id=aZ++,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(lZ),this.nodes.forEach(fZ),this.nodes.forEach(hZ),this.nodes.forEach(cZ)},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 $9)}addEventListener(c,u){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new qv),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=lO(c)&&!n8(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;xt.read(()=>{g=window.innerWidth}),e(c,()=>{const S=window.innerWidth;S!==g&&(g=S,this.root.updateBlockedByResize=!0,p&&p(),p=q9(b,250),lf.hasAnimatedSinceResize&&(lf.hasAnimatedSinceResize=!1,this.nodes.forEach(vT)))})}u&&this.root.registerSharedNode(u,this),this.options.animate!==!1&&h&&(u||f)&&this.addEventListener("didUpdate",({delta:p,hasLayoutChanged:g,hasRelativeLayoutChanged:b,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||h.getDefaultTransition()||vZ,{onLayoutAnimationStart:A,onLayoutAnimationComplete:R}=h.getProps(),N=!this.targetLayout||!$O(this.targetLayout,S),x=!g&&b;if(this.options.layoutRoot||this.resumeFrom||x||g&&(N||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const C={...ob(w,"layout"),onPlay:A,onComplete:R};(h.shouldReduceMotion||this.options.layoutRoot)&&(C.delay=0,C.type=!1),this.startAnimation(C),this.setAnimationOrigin(p,x)}else g||vT(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}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(),pa(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(pZ),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&&qO(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(yT);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(gT);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(dZ),this.nodes.forEach(oZ),this.nodes.forEach(sZ)):this.nodes.forEach(gT),this.clearAllSnapshots();const u=kn.now();cn.delta=Ii(0,1e3/60,u-cn.timestamp),cn.timestamp=u,cn.isProcessing=!0,Ey.update.process(cn),Ey.preRender.process(cn),Ey.render.process(cn),cn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,lb.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(uZ),this.sharedNodes.forEach(mZ)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,xt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){xt.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!vn(this.snapshot.measuredBox.x)&&!vn(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=Dt(),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&&!KO(this.projectionDelta),f=this.getTransformTemplate(),h=f?f(this.latestValues,""):void 0,p=h!==this.prevTransformTemplateValue;c&&this.instance&&(u||eo(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)),bZ(f),{animationId:this.root.animationId,measuredBox:u,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:c}=this.options;if(!c)return Dt();const u=c.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(EZ))){const{scroll:h}=this.root;h&&(ws(u.x,h.offset.x),ws(u.y,h.offset.y))}return u}removeElementScroll(c){const u=Dt();if(or(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&&or(u,c),ws(u.x,p.offset.x),ws(u.y,p.offset.y))}return u}applyTransform(c,u=!1){const f=Dt();or(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&&Ts(f,{x:-p.scroll.offset.x,y:-p.scroll.offset.y}),eo(p.latestValues)&&Ts(f,p.latestValues)}return eo(this.latestValues)&&Ts(f,this.latestValues),f}removeTransform(c){const u=Dt();or(u,c);for(let f=0;f<this.path.length;f++){const h=this.path[f];if(!h.instance||!eo(h.latestValues))continue;Ig(h.latestValues)&&h.updateSnapshot();const p=Dt(),g=h.measurePageBox();or(p,g),uT(u,h.latestValues,h.snapshot?h.snapshot.layoutBox:void 0,p)}return eo(this.latestValues)&&uT(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!==cn.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=cn.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Dt(),this.relativeTargetOrigin=Dt(),bc(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),or(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Dt(),this.targetWithTransforms=Dt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),C9(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):or(this.target,this.layout.layoutBox),wO(this.target,this.targetDelta)):or(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=Dt(),this.relativeTargetOrigin=Dt(),bc(this.relativeTargetOrigin,this.target,b.target),or(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Ig(this.parent.latestValues)||AO(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===cn.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;or(this.layoutCorrected,this.layout.layoutBox);const g=this.treeScale.x,b=this.treeScale.y;U8(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=Dt());const{target:S}=c;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(sT(this.prevProjectionDelta.x,this.projectionDelta.x),sT(this.prevProjectionDelta.y,this.projectionDelta.y)),vc(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==g||this.treeScale.y!==b||!mT(this.projectionDelta.x,this.prevProjectionDelta.x)||!mT(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}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=Cs(),this.projectionDelta=Cs(),this.projectionDeltaWithTransform=Cs()}setAnimationOrigin(c,u=!1){const f=this.snapshot,h=f?f.latestValues:{},p={...this.latestValues},g=Cs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!u;const b=Dt(),S=f?f.source:void 0,w=this.layout?this.layout.source:void 0,A=S!==w,R=this.getStack(),N=!R||R.members.length<=1,x=!!(A&&!N&&this.options.crossfade===!0&&!this.path.some(gZ));this.animationProgress=0;let C;this.mixTargetDelta=I=>{const _=I/1e3;bT(g.x,c.x,_),bT(g.y,c.y,_),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bc(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),yZ(this.relativeTarget,this.relativeTargetOrigin,b,_),C&&tZ(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Dt()),or(C,this.relativeTarget)),A&&(this.animationValues=p,Y9(p,h,this.latestValues,_,x,N)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=_},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(pa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=xt.update(()=>{lf.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ps(0)),this.currentAnimation=G9(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(iZ),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&&YO(this.options.animationType,this.layout.layoutBox,h.layoutBox)){f=this.target||Dt();const g=vn(this.layout.layoutBox.x);f.x.min=c.target.x.min,f.x.max=f.x.min+g;const b=vn(this.layout.layoutBox.y);f.y.min=c.target.y.min,f.y.max=f.y.min+b}or(u,f),Ts(u,p),vc(this.projectionDeltaWithTransform,this.layoutCorrected,u,p)}}registerSharedNode(c,u){this.sharedNodes.has(c)||this.sharedNodes.set(c,new nZ),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&&Dy("z",c,h,this.animationValues);for(let p=0;p<Ly.length;p++)Dy(`rotate${Ly[p]}`,c,h,this.animationValues),Dy(`skew${Ly[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=sf(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=sf(u?.pointerEvents)||""),this.hasProjected&&!eo(this.latestValues)&&(c.transform=f?f({},""):"none",this.hasProjected=!1);return}c.visibility="";const p=h.animationValues||h.latestValues;this.applyTransformsToTarget();let g=rZ(this.projectionDeltaWithTransform,this.treeScale,p);f&&(g=f(p,g)),c.transform=g;const{x:b,y:S}=this.projectionDelta;c.transformOrigin=`${b.origin*100}% ${S.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 kc){if(p[w]===void 0)continue;const{correct:A,applyTo:R,isCSSVariable:N}=kc[w],x=g==="none"?p[w]:A(p[w],h);if(R){const C=R.length;for(let I=0;I<C;I++)c[R[I]]=x}else N?this.options.visualElement.renderState.vars[w]=x:c[w]=x}this.options.layoutId&&(c.pointerEvents=h===this?sf(u?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>c.currentAnimation?.stop()),this.root.nodes.forEach(yT),this.root.sharedNodes.clear()}}}function oZ(e){e.updateLayout()}function sZ(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"?sr(p=>{const g=s?t.measuredBox[p]:t.layoutBox[p],b=vn(g);g.min=n[p].min,g.max=g.min+b}):YO(o,t.layoutBox,n)&&sr(p=>{const g=s?t.measuredBox[p]:t.layoutBox[p],b=vn(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=Cs();vc(c,n,t.layoutBox);const u=Cs();s?vc(u,e.applyTransform(i,!0),t.measuredBox):vc(u,n,t.layoutBox);const f=!KO(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 S=Dt();bc(S,t.layoutBox,g.layoutBox);const w=Dt();bc(w,n,b.layoutBox),$O(S,w)||(h=!0),p.options.layoutRoot&&(e.relativeTarget=w,e.relativeTargetOrigin=S,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 lZ(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 cZ(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function uZ(e){e.clearSnapshot()}function yT(e){e.clearMeasurements()}function gT(e){e.isLayoutDirty=!1}function dZ(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function vT(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function fZ(e){e.resolveTargetDelta()}function hZ(e){e.calcProjection()}function pZ(e){e.resetSkewAndRotation()}function mZ(e){e.removeLeadSnapshot()}function bT(e,t,n){e.translate=At(t.translate,0,n),e.scale=At(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function ET(e,t,n,i){e.min=At(t.min,n.min,i),e.max=At(t.max,n.max,i)}function yZ(e,t,n,i){ET(e.x,t.x,n.x,i),ET(e.y,t.y,n.y,i)}function gZ(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const vZ={duration:.45,ease:[.4,0,.1,1]},xT=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ST=xT("applewebkit/")&&!xT("chrome/")?Math.round:fr;function AT(e){e.min=ST(e.min),e.max=ST(e.max)}function bZ(e){AT(e.x),AT(e.y)}function YO(e,t,n){return e==="position"||e==="preserve-aspect"&&!T9(pT(t),pT(n),.2)}function EZ(e){return e!==e.root&&e.scroll?.wasRoot}const xZ=ZO({attachResizeListener:(e,t)=>Lc(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Oy={current:void 0},WO=ZO({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Oy.current){const e=new xZ({});e.mount(window),e.setOptions({layoutScroll:!0}),Oy.current=e}return Oy.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),SZ={pan:{Feature:U9},drag:{Feature:B9,ProjectionNode:WO,MeasureLayout:FO}};function wT(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&&xt.postRender(()=>s(t,eu(t)))}class AZ extends Ea{mount(){const{current:t}=this.node;t&&(this.unmount=Xq(t,(n,i)=>(wT(this.node,i,"Start"),o=>wT(this.node,o,"End"))))}unmount(){}}class wZ extends Ea{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=Xc(Lc(this.node.current,"focus",()=>this.onFocus()),Lc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function TT(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&&xt.postRender(()=>s(t,eu(t)))}class TZ extends Ea{mount(){const{current:t}=this.node;t&&(this.unmount=t8(t,(n,i)=>(TT(this.node,i,"Start"),(o,{success:s})=>TT(this.node,o,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const jg=new WeakMap,jy=new WeakMap,CZ=e=>{const t=jg.get(e.target);t&&t(e)},RZ=e=>{e.forEach(CZ)};function IZ({root:e,...t}){const n=e||document;jy.has(n)||jy.set(n,{});const i=jy.get(n),o=JSON.stringify(t);return i[o]||(i[o]=new IntersectionObserver(RZ,{root:e,...t})),i[o]}function _Z(e,t,n){const i=IZ(t);return jg.set(e,n),i.observe(e),()=>{jg.delete(e),i.unobserve(e)}}const NZ={some:0,all:1};class kZ extends Ea{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:NZ[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 _Z(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(LZ(t,n))&&this.startObserver()}unmount(){}}function LZ({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const XO={inView:{Feature:kZ},tap:{Feature:TZ},focus:{Feature:wZ},hover:{Feature:AZ}},DZ={layout:{ProjectionNode:WO,MeasureLayout:FO}},OZ={...zO,...XO,...SZ,...DZ},QO=M8(OZ,NO),jZ={renderer:NO,...zO,...XO};let Eb=function(e){return e.SM="sm",e.MD="md",e.LG="lg",e.XL="xl",e.UNSET="unset",e}({});const zZ=mn("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"}}),MZ=QO.create(Nr),xb=({children:e,isOpen:t,container:n,disableScroll:i=!0,onClose:o,hasCloseButton:s=!1,title:c,size:u=Eb.MD,className:f,...h})=>{const p=pD(n);if(vD({key:"modal",disableScroll:t&&i}),!p)return y.jsx(y.Fragment,{});const g=typeof c=="string";return xo.createPortal(y.jsx(QO.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(MZ,{onClick:b=>b.stopPropagation(),initial:{scale:t?.5:1},animate:{scale:t?1:.5},transition:{duration:.3},className:zZ({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(Uv,{className:"ml-4 flex items-center justify-center font-bold text-lg",children:c}),s&&y.jsx(st,{variant:Ve.HOVERABLE,color:Pe.TEXT,label:"Close modal",className:"ml-auto",onClick:b=>{b.stopPropagation(),o?.()},Icon:So,size:Je.ICON_MD})]}),y.jsx("div",{className:"flex flex-1 flex-col items-center overflow-auto",children:e})]})})}),p)},PZ=mn("",{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"}}),CT=({validationStyleEnabled:e=!1,label:t,size:n,color:i,name:o,variant:s,className:c,...u})=>y.jsx("input",{type:"checkbox",className:PZ({variant:s,size:n,color:i,validationStyleEnabled:e?"enabled":"disabled",className:c}),...u}),BZ=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(CT,{id:i??n,...e}),t]}):y.jsx(CT,{id:i??n,...e})},JO=mn("",{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 fo=function(e){return e.DEFAULT="default",e.INVISIBLE="invisible",e}({});const Qs=({validationStyleEnabled:e=!1,variant:t,size:n,className:i,...o})=>y.jsx("input",{className:JO({variant:t,size:n,validationStyleEnabled:e?"enabled":"disabled",className:i}),...o}),UZ=e=>{const[t,n]=E.useState(!1),i=s=>{s.preventDefault(),s.stopPropagation(),n(c=>!c)},o=t?qG:KG;return y.jsxs("div",{className:"relative",children:[y.jsx(Qs,{...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})})]})},ej=({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,S=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",S):document.removeEventListener("click",S),()=>document.removeEventListener("click",S)),[S,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(st,{label:"Save",variant:Ve.HOVERABLE,size:Je.ICON_SM,color:Pe.TEXT,Icon:Zs,onClick:p,disabled:s,className:"!text-current",role:"button",tabIndex:0,"aria-label":"Save changes","data-testid":"editable-field-save-button"}),y.jsx(st,{label:"Cancel",color:Pe.TEXT,variant:Ve.HOVERABLE,className:"!text-current",size:Je.ICON_SM,Icon:So,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(st,{label:"Edit",Icon:I1,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)}})]})]})},tj=({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(ej,{value:E.useMemo(()=>i.value??o.current?.value??i.defaultValue,[i.value,i.defaultValue,o.current?.value]),onCancel:c,onSave:s,children:y.jsx(Qs,{ref:o,...i})})},VZ=({id:e,...t})=>{const n=E.useId(),i=e??n;return y.jsx(nj,{value:E.useMemo(()=>({id:i}),[i]),children:y.jsx("div",{className:"flex flex-col gap-2 p-2",id:i,...t})})},nj=E.createContext({});var tu=e=>e.type==="checkbox",io=e=>e instanceof Date,Nn=e=>e==null;const rj=e=>typeof e=="object";var Ht=e=>!Nn(e)&&!Array.isArray(e)&&rj(e)&&!io(e),ij=e=>Ht(e)&&e.target?tu(e.target)?e.target.checked:e.target.value:e,FZ=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,aj=(e,t)=>e.has(FZ(t)),HZ=e=>{const t=e.constructor&&e.constructor.prototype;return Ht(t)&&t.hasOwnProperty("isPrototypeOf")},Sb=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function $t(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(!(Sb&&(e instanceof Blob||i))&&(n||Ht(e)))if(t=n?[]:Object.create(Object.getPrototypeOf(e)),!n&&!HZ(e))t=e;else for(const o in e)e.hasOwnProperty(o)&&(t[o]=$t(e[o]));else return e;return t}var oh=e=>/^\w*$/.test(e),Nt=e=>e===void 0,Ab=e=>Array.isArray(e)?e.filter(Boolean):[],wb=e=>Ab(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ge=(e,t,n)=>{if(!t||!Ht(e))return n;const i=(oh(t)?[t]:wb(t)).reduce((o,s)=>Nn(o)?o:o[s],e);return Nt(i)||i===e?Nt(e[t])?n:e[t]:i},Vn=e=>typeof e=="boolean",dt=(e,t,n)=>{let i=-1;const o=oh(t)?[t]:wb(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=Ht(h)||Array.isArray(h)?h:isNaN(+o[i+1])?{}:[]}if(u==="__proto__"||u==="constructor"||u==="prototype")return;e[u]=f,e=e[u]}};const Rf={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Sr={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ai={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Tb=Ne.createContext(null);Tb.displayName="HookFormContext";const xa=()=>Ne.useContext(Tb),GZ=e=>{const{children:t,...n}=e;return Ne.createElement(Tb.Provider,{value:n},t)};var oj=(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]!==Sr.all&&(t._proxyFormState[c]=!i||Sr.all),n&&(n[c]=!0),e[c]}});return o};const Cb=typeof window<"u"?Ne.useLayoutEffect:Ne.useEffect;function KZ(e){const t=xa(),{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 Cb(()=>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(()=>oj(c,n,f.current,!1),[c,n])}var $n=e=>typeof e=="string",sj=(e,t,n,i,o)=>$n(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),zg=e=>Nn(e)||!rj(e);function wi(e,t,n=new WeakSet){if(zg(e)||zg(t))return e===t;if(io(e)&&io(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(io(c)&&io(u)||Ht(c)&&Ht(u)||Array.isArray(c)&&Array.isArray(u)?!wi(c,u,n):c!==u)return!1}}return!0}function $Z(e){const t=xa(),{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,S]=Ne.useState(h.current?h.current(g):g);return Cb(()=>n._subscribe({name:i,formState:{values:!0},exact:c,callback:w=>{if(!s){const A=sj(i,n._names,w.values||n._formValues,!1,f.current);if(h.current){const R=h.current(A);wi(R,p.current)||(S(R),p.current=R)}else S(A)}}}),[n,s,i,c]),Ne.useEffect(()=>n._removeUnmounted()),b}function qZ(e){const t=xa(),{name:n,disabled:i,control:o=t.control,shouldUnregister:s,defaultValue:c}=e,u=aj(o._names.array,n),f=Ne.useMemo(()=>ge(o._formValues,n,ge(o._defaultValues,n,c)),[o,n,c]),h=$Z({control:o,name:n,defaultValue:f,exact:!0}),p=KZ({control:o,name:n,exact:!0}),g=Ne.useRef(e),b=Ne.useRef(void 0),S=Ne.useRef(o.register(n,{...e.rules,value:h,...Vn(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(C=>S.current.onChange({target:{value:ij(C),name:n},type:Rf.CHANGE}),[n]),R=Ne.useCallback(()=>S.current.onBlur({target:{value:ge(o._formValues,n),name:n},type:Rf.BLUR}),[n,o._formValues]),N=Ne.useCallback(C=>{const I=ge(o._fields,n);I&&C&&(I._f.ref={focus:()=>C.focus&&C.focus(),select:()=>C.select&&C.select(),setCustomValidity:_=>C.setCustomValidity(_),reportValidity:()=>C.reportValidity()})},[o._fields,n]),x=Ne.useMemo(()=>({name:n,value:h,...Vn(i)||p.disabled?{disabled:p.disabled||i}:{},onChange:A,onBlur:R,ref:N}),[n,i,p.disabled,A,R,N,h]);return Ne.useEffect(()=>{const C=o._options.shouldUnregister||s,I=b.current;I&&I!==n&&!u&&o.unregister(I),o.register(n,{...g.current.rules,...Vn(g.current.disabled)?{disabled:g.current.disabled}:{}});const _=(k,L)=>{const O=ge(o._fields,k);O&&O._f&&(O._f.mount=L)};if(_(n,!0),C){const k=$t(ge(o._options.defaultValues,n,g.current.defaultValue));dt(o._defaultValues,n,k),Nt(ge(o._formValues,n))&&dt(o._formValues,n,k)}return!u&&o.register(n),b.current=n,()=>{(u?C&&!o._state.action:C)?o.unregister(n):_(n,!1)}},[n,o,u,s]),Ne.useEffect(()=>{o._setDisabledField({disabled:i,name:n})},[i,n,o]),Ne.useMemo(()=>({field:x,formState:p,fieldState:w}),[x,p,w])}const ZZ=e=>e.render(qZ(e));var Rb=(e,t,n,i,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[i]:o||!0}}:{},Ec=e=>Array.isArray(e)?e:[e],RT=()=>{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 lj(e,t){const n={};for(const i in e)if(e.hasOwnProperty(i)){const o=e[i],s=t[i];if(o&&Ht(o)&&s){const c=lj(o,s);Ht(c)&&(n[i]=c)}else e[i]&&(n[i]=s)}return n}var _n=e=>Ht(e)&&!Object.keys(e).length,Ib=e=>e.type==="file",Ar=e=>typeof e=="function",If=e=>{if(!Sb)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},cj=e=>e.type==="select-multiple",_b=e=>e.type==="radio",YZ=e=>_b(e)||tu(e),zy=e=>If(e)&&e.isConnected;function WZ(e,t){const n=t.slice(0,-1).length;let i=0;for(;i<n;)e=Nt(e)?i++:e[t[i++]];return e}function XZ(e){for(const t in e)if(e.hasOwnProperty(t)&&!Nt(e[t]))return!1;return!0}function Ut(e,t){const n=Array.isArray(t)?t:oh(t)?[t]:wb(t),i=n.length===1?e:WZ(e,n),o=n.length-1,s=n[o];return i&&delete i[s],o!==0&&(Ht(i)&&_n(i)||Array.isArray(i)&&XZ(i))&&Ut(e,n.slice(0,-1)),e}var QZ=e=>{for(const t in e)if(Ar(e[t]))return!0;return!1};function uj(e){return Array.isArray(e)||Ht(e)&&!QZ(e)}function Mg(e,t={}){for(const n in e)uj(e[n])?(t[n]=Array.isArray(e[n])?[]:{},Mg(e[n],t[n])):Nt(e[n])||(t[n]=!0);return t}function bs(e,t,n){n||(n=Mg(t));for(const i in e)uj(e[i])?Nt(t)||zg(n[i])?n[i]=Mg(e[i],Array.isArray(e[i])?[]:{}):bs(e[i],Nn(t)?{}:t[i],n[i]):n[i]=!wi(e[i],t[i]);return n}const IT={value:!1,isValid:!1},_T={value:!0,isValid:!0};var dj=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&&!Nt(e[0].attributes.value)?Nt(e[0].value)||e[0].value===""?_T:{value:e[0].value,isValid:!0}:_T:IT}return IT},fj=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:i})=>Nt(e)?e:t?e===""?NaN:e&&+e:n&&$n(e)?new Date(e):i?i(e):e;const NT={isValid:!1,value:null};var hj=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,NT):NT;function kT(e){const t=e.ref;return Ib(t)?t.files:_b(t)?hj(e.refs).value:cj(t)?[...t.selectedOptions].map(({value:n})=>n):tu(t)?dj(e.refs).value:fj(Nt(t.value)?e.ref.value:t.value,e)}var JZ=(e,t,n,i)=>{const o={};for(const s of e){const c=ge(t,s);c&&dt(o,s,c._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:i}},_f=e=>e instanceof RegExp,rc=e=>Nt(e)?e:_f(e)?e.source:Ht(e)?_f(e.value)?e.value.source:e.value:e,LT=e=>({isOnSubmit:!e||e===Sr.onSubmit,isOnBlur:e===Sr.onBlur,isOnChange:e===Sr.onChange,isOnAll:e===Sr.all,isOnTouch:e===Sr.onTouched});const DT="AsyncFunction";var eY=e=>!!e&&!!e.validate&&!!(Ar(e.validate)&&e.validate.constructor.name===DT||Ht(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===DT)),tY=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),OT=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(i=>e.startsWith(i)&&/^\.\w+/.test(e.slice(i.length))));const xc=(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(xc(u,t))break}else if(Ht(u)&&xc(u,t))break}}};function jT(e,t,n){const i=ge(e,n);if(i||oh(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 nY=(e,t,n,i)=>{n(e);const{name:o,...s}=e;return _n(s)||Object.keys(s).length>=Object.keys(t).length||Object.keys(s).find(c=>t[c]===(!i||Sr.all))},rY=(e,t,n)=>!e||!t||e===t||Ec(e).some(i=>i&&(n?i===t:i.startsWith(t)||t.startsWith(i))),iY=(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,aY=(e,t)=>!Ab(ge(e,t)).length&&Ut(e,t),oY=(e,t,n)=>{const i=Ec(ge(e,n));return dt(i,"root",t[n]),dt(e,n,i),e};function zT(e,t,n="validate"){if($n(e)||Array.isArray(e)&&e.every($n)||Vn(e)&&!e)return{type:n,message:$n(e)?e:"",ref:t}}var ms=e=>Ht(e)&&!_f(e)?e:{value:e,message:""},MT=async(e,t,n,i,o,s)=>{const{ref:c,refs:u,required:f,maxLength:h,minLength:p,min:g,max:b,pattern:S,validate:w,name:A,valueAsNumber:R,mount:N}=e._f,x=ge(n,A);if(!N||t.has(A))return{};const C=u?u[0]:c,I=ae=>{o&&C.reportValidity&&(C.setCustomValidity(Vn(ae)?"":ae||""),C.reportValidity())},_={},k=_b(c),L=tu(c),O=k||L,V=(R||Ib(c))&&Nt(c.value)&&Nt(x)||If(c)&&c.value===""||x===""||Array.isArray(x)&&!x.length,$=Rb.bind(null,A,i,_),H=(ae,ce,X,oe=Ai.maxLength,M=Ai.minLength)=>{const Y=ae?ce:X;_[A]={type:ae?oe:M,message:Y,ref:c,...$(ae?oe:M,Y)}};if(s?!Array.isArray(x)||!x.length:f&&(!O&&(V||Nn(x))||Vn(x)&&!x||L&&!dj(u).isValid||k&&!hj(u).isValid)){const{value:ae,message:ce}=$n(f)?{value:!!f,message:f}:ms(f);if(ae&&(_[A]={type:Ai.required,message:ce,ref:C,...$(Ai.required,ce)},!i))return I(ce),_}if(!V&&(!Nn(g)||!Nn(b))){let ae,ce;const X=ms(b),oe=ms(g);if(!Nn(x)&&!isNaN(x)){const M=c.valueAsNumber||x&&+x;Nn(X.value)||(ae=M>X.value),Nn(oe.value)||(ce=M<oe.value)}else{const M=c.valueAsDate||new Date(x),Y=Ee=>new Date(new Date().toDateString()+" "+Ee),K=c.type=="time",me=c.type=="week";$n(X.value)&&x&&(ae=K?Y(x)>Y(X.value):me?x>X.value:M>new Date(X.value)),$n(oe.value)&&x&&(ce=K?Y(x)<Y(oe.value):me?x<oe.value:M<new Date(oe.value))}if((ae||ce)&&(H(!!ae,X.message,oe.message,Ai.max,Ai.min),!i))return I(_[A].message),_}if((h||p)&&!V&&($n(x)||s&&Array.isArray(x))){const ae=ms(h),ce=ms(p),X=!Nn(ae.value)&&x.length>+ae.value,oe=!Nn(ce.value)&&x.length<+ce.value;if((X||oe)&&(H(X,ae.message,ce.message),!i))return I(_[A].message),_}if(S&&!V&&$n(x)){const{value:ae,message:ce}=ms(S);if(_f(ae)&&!x.match(ae)&&(_[A]={type:Ai.pattern,message:ce,ref:c,...$(Ai.pattern,ce)},!i))return I(ce),_}if(w){if(Ar(w)){const ae=await w(x,n),ce=zT(ae,C);if(ce&&(_[A]={...ce,...$(Ai.validate,ce.message)},!i))return I(ce.message),_}else if(Ht(w)){let ae={};for(const ce in w){if(!_n(ae)&&!i)break;const X=zT(await w[ce](x,n),C,ce);X&&(ae={...X,...$(ce,X.message)},I(X.message),i&&(_[A]=ae))}if(!_n(ae)&&(_[A]={ref:C,...ae},!i))return _}}return I(!0),_};const sY={mode:Sr.onSubmit,reValidateMode:Sr.onChange,shouldFocusError:!0};function lY(e={}){let t={...sY,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Ar(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},i={},o=Ht(t.defaultValues)||Ht(t.values)?$t(t.defaultValues||t.values)||{}:{},s=t.shouldUnregister?{}:$t(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:RT(),state:RT()},S=t.criteriaMode===Sr.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?_n((await L()).errors):await V(i,!0);W!==n.isValid&&b.state.next({isValid:W})}},R=(B,W)=>{!t.disabled&&(p.isValidating||p.validatingFields||g.isValidating||g.validatingFields)&&((B||Array.from(u.mount)).forEach(ie=>{ie&&(W?dt(n.validatingFields,ie,W):Ut(n.validatingFields,ie))}),b.state.next({validatingFields:n.validatingFields,isValidating:!_n(n.validatingFields)}))},N=(B,W=[],ie,ve,he=!0,pe=!0)=>{if(ve&&ie&&!t.disabled){if(c.action=!0,pe&&Array.isArray(ge(i,B))){const Ie=ie(ge(i,B),ve.argA,ve.argB);he&&dt(i,B,Ie)}if(pe&&Array.isArray(ge(n.errors,B))){const Ie=ie(ge(n.errors,B),ve.argA,ve.argB);he&&dt(n.errors,B,Ie),aY(n.errors,B)}if((p.touchedFields||g.touchedFields)&&pe&&Array.isArray(ge(n.touchedFields,B))){const Ie=ie(ge(n.touchedFields,B),ve.argA,ve.argB);he&&dt(n.touchedFields,B,Ie)}(p.dirtyFields||g.dirtyFields)&&(n.dirtyFields=bs(o,s)),b.state.next({name:B,isDirty:H(B,W),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else dt(s,B,W)},x=(B,W)=>{dt(n.errors,B,W),b.state.next({errors:n.errors})},C=B=>{n.errors=B,b.state.next({errors:n.errors,isValid:!1})},I=(B,W,ie,ve)=>{const he=ge(i,B);if(he){const pe=ge(s,B,Nt(ie)?ge(o,B):ie);Nt(pe)||ve&&ve.defaultChecked||W?dt(s,B,W?pe:kT(he._f)):X(B,pe),c.mount&&A()}},_=(B,W,ie,ve,he)=>{let pe=!1,Ie=!1;const tt={name:B};if(!t.disabled){if(!ie||ve){(p.isDirty||g.isDirty)&&(Ie=n.isDirty,n.isDirty=tt.isDirty=H(),pe=Ie!==tt.isDirty);const at=wi(ge(o,B),W);Ie=!!ge(n.dirtyFields,B),at?Ut(n.dirtyFields,B):dt(n.dirtyFields,B,!0),tt.dirtyFields=n.dirtyFields,pe=pe||(p.dirtyFields||g.dirtyFields)&&Ie!==!at}if(ie){const at=ge(n.touchedFields,B);at||(dt(n.touchedFields,B,ie),tt.touchedFields=n.touchedFields,pe=pe||(p.touchedFields||g.touchedFields)&&at!==ie)}pe&&he&&b.state.next(tt)}return pe?tt:{}},k=(B,W,ie,ve)=>{const he=ge(n.errors,B),pe=(p.isValid||g.isValid)&&Vn(W)&&n.isValid!==W;if(t.delayError&&ie?(f=w(()=>x(B,ie)),f(t.delayError)):(clearTimeout(h),f=null,ie?dt(n.errors,B,ie):Ut(n.errors,B)),(ie?!wi(he,ie):he)||!_n(ve)||pe){const Ie={...ve,...pe&&Vn(W)?{isValid:W}:{},errors:n.errors,name:B};n={...n,...Ie},b.state.next(Ie)}},L=async B=>{R(B,!0);const W=await t.resolver(s,t.context,JZ(B||u.mount,i,t.criteriaMode,t.shouldUseNativeValidation));return R(B),W},O=async B=>{const{errors:W}=await L(B);if(B)for(const ie of B){const ve=ge(W,ie);ve?dt(n.errors,ie,ve):Ut(n.errors,ie)}else n.errors=W;return W},V=async(B,W,ie={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&&eY(he._f);at&&p.validatingFields&&R([pe.name],!0);const En=await MT(he,u.disabled,s,S,t.shouldUseNativeValidation&&!W,tt);if(at&&p.validatingFields&&R([pe.name]),En[pe.name]&&(ie.valid=!1,W))break;!W&&(ge(En,pe.name)?tt?oY(n.errors,En,pe.name):dt(n.errors,pe.name,En[pe.name]):Ut(n.errors,pe.name))}!_n(Ie)&&await V(Ie,W,ie)}}return ie.valid},$=()=>{for(const B of u.unMount){const W=ge(i,B);W&&(W._f.refs?W._f.refs.every(ie=>!zy(ie)):!zy(W._f.ref))&&re(B)}u.unMount=new Set},H=(B,W)=>!t.disabled&&(B&&W&&dt(s,B,W),!wi(Ee(),o)),ae=(B,W,ie)=>sj(B,u,{...c.mount?s:Nt(W)?o:$n(B)?{[B]:W}:W},ie,W),ce=B=>Ab(ge(c.mount?s:o,B,t.shouldUnregister?ge(o,B,[]):[])),X=(B,W,ie={})=>{const ve=ge(i,B);let he=W;if(ve){const pe=ve._f;pe&&(!pe.disabled&&dt(s,B,fj(W,pe)),he=If(pe.ref)&&Nn(W)?"":W,cj(pe.ref)?[...pe.ref.options].forEach(Ie=>Ie.selected=he.includes(Ie.value)):pe.refs?tu(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):Ib(pe.ref)?pe.ref.value="":(pe.ref.value=he,pe.ref.type||b.state.next({name:B,values:$t(s)})))}(ie.shouldDirty||ie.shouldTouch)&&_(B,he,ie.shouldTouch,ie.shouldDirty,!0),ie.shouldValidate&&me(B)},oe=(B,W,ie)=>{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)||Ht(he)||Ie&&!Ie._f)&&!io(he)?oe(pe,he,ie):X(pe,he,ie)}},M=(B,W,ie={})=>{const ve=ge(i,B),he=u.array.has(B),pe=$t(W);dt(s,B,pe),he?(b.array.next({name:B,values:$t(s)}),(p.isDirty||p.dirtyFields||g.isDirty||g.dirtyFields)&&ie.shouldDirty&&b.state.next({name:B,dirtyFields:bs(o,s),isDirty:H(B,pe)})):ve&&!ve._f&&!Nn(pe)?oe(B,pe,ie):X(B,pe,ie),OT(B,u)&&b.state.next({...n,name:B}),b.state.next({name:c.mount?B:void 0,values:$t(s)})},Y=async B=>{c.mount=!0;const W=B.target;let ie=W.name,ve=!0;const he=ge(i,ie),pe=at=>{ve=Number.isNaN(at)||io(at)&&isNaN(at.getTime())||wi(at,ge(s,ie,at))},Ie=LT(t.mode),tt=LT(t.reValidateMode);if(he){let at,En;const ka=W.type?kT(he._f):ij(B),Lr=B.type===Rf.BLUR||B.type===Rf.FOCUS_OUT,Dh=!tY(he._f)&&!t.resolver&&!ge(n.errors,ie)&&!he._f.deps||iY(Lr,ge(n.touchedFields,ie),n.isSubmitted,tt,Ie),ri=OT(ie,u,Lr);dt(s,ie,ka),Lr?(!W||!W.readOnly)&&(he._f.onBlur&&he._f.onBlur(B),f&&f(0)):he._f.onChange&&he._f.onChange(B);const tn=_(ie,ka,Lr),Dr=!_n(tn)||ri;if(!Lr&&b.state.next({name:ie,type:B.type,values:$t(s)}),Dh)return(p.isValid||g.isValid)&&(t.mode==="onBlur"?Lr&&A():Lr||A()),Dr&&b.state.next({name:ie,...ri?{}:tn});if(!Lr&&ri&&b.state.next({...n}),t.resolver){const{errors:dn}=await L([ie]);if(pe(ka),ve){const Oh=jT(n.errors,i,ie),lu=jT(dn,i,Oh.name||ie);at=lu.error,ie=lu.name,En=_n(dn)}}else R([ie],!0),at=(await MT(he,u.disabled,s,S,t.shouldUseNativeValidation))[ie],R([ie]),pe(ka),ve&&(at?En=!1:(p.isValid||g.isValid)&&(En=await V(i,!0)));ve&&(he._f.deps&&(!Array.isArray(he._f.deps)||he._f.deps.length>0)&&me(he._f.deps),k(ie,En,at,tn))}},K=(B,W)=>{if(ge(n.errors,W)&&B.focus)return B.focus(),1},me=async(B,W={})=>{let ie,ve;const he=Ec(B);if(t.resolver){const pe=await O(Nt(B)?B:he);ie=_n(pe),ve=B?!he.some(Ie=>ge(pe,Ie)):ie}else B?(ve=(await Promise.all(he.map(async pe=>{const Ie=ge(i,pe);return await V(Ie&&Ie._f?{[pe]:Ie}:Ie)}))).every(Boolean),!(!ve&&!n.isValid)&&A()):ve=ie=await V(i);return b.state.next({...!$n(B)||(p.isValid||g.isValid)&&ie!==n.isValid?{}:{name:B},...t.resolver||!B?{isValid:ie}:{},errors:n.errors}),W.shouldFocus&&!ve&&xc(i,K,B?he:u.mount),ve},Ee=(B,W)=>{let ie={...c.mount?s:o};return W&&(ie=lj(W.dirtyFields?n.dirtyFields:n.touchedFields,ie)),Nt(B)?ie:$n(B)?ge(ie,B):B.map(ve=>ge(ie,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&&Ec(B).forEach(W=>Ut(n.errors,W)),b.state.next({errors:B?n.errors:{}})},J=(B,W,ie)=>{const ve=(ge(i,B,{_f:{}})._f||{}).ref,he=ge(n.errors,B)||{},{ref:pe,message:Ie,type:tt,...at}=he;dt(n.errors,B,{...at,...W,ref:ve}),b.state.next({name:B,errors:n.errors,isValid:!1}),ie&&ie.shouldFocus&&ve&&ve.focus&&ve.focus()},te=(B,W)=>Ar(B)?b.state.subscribe({next:ie=>"values"in ie&&B(ae(void 0,W),ie)}):ae(B,W,!0),ue=B=>b.state.subscribe({next:W=>{rY(B.name,W.name,B.exact)&&nY(W,B.formState||p,Na,B.reRenderRoot)&&B.callback({values:{...s},...n,...W,defaultValues:o})}}).unsubscribe,ye=B=>(c.mount=!0,g={...g,...B.formState},ue({...B,formState:g})),re=(B,W={})=>{for(const ie of B?Ec(B):u.mount)u.mount.delete(ie),u.array.delete(ie),W.keepValue||(Ut(i,ie),Ut(s,ie)),!W.keepError&&Ut(n.errors,ie),!W.keepDirty&&Ut(n.dirtyFields,ie),!W.keepTouched&&Ut(n.touchedFields,ie),!W.keepIsValidating&&Ut(n.validatingFields,ie),!t.shouldUnregister&&!W.keepDefaultValue&&Ut(o,ie);b.state.next({values:$t(s)}),b.state.next({...n,...W.keepDirty?{isDirty:H()}:{}}),!W.keepIsValid&&A()},Re=({disabled:B,name:W})=>{(Vn(B)&&c.mount||B||u.disabled.has(W))&&(B?u.disabled.add(W):u.disabled.delete(W))},Ae=(B,W={})=>{let ie=ge(i,B);const ve=Vn(W.disabled)||Vn(t.disabled);return dt(i,B,{...ie||{},_f:{...ie&&ie._f?ie._f:{ref:{name:B}},name:B,mount:!0,...W}}),u.mount.add(B),ie?Re({disabled:Vn(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:rc(W.min),max:rc(W.max),minLength:rc(W.minLength),maxLength:rc(W.maxLength),pattern:rc(W.pattern)}:{},name:B,onChange:Y,onBlur:Y,ref:he=>{if(he){Ae(B,W),ie=ge(i,B);const pe=Nt(he.value)&&he.querySelectorAll&&he.querySelectorAll("input,select,textarea")[0]||he,Ie=YZ(pe),tt=ie._f.refs||[];if(Ie?tt.find(at=>at===pe):pe===ie._f.ref)return;dt(i,B,{_f:{...ie._f,...Ie?{refs:[...tt.filter(zy),pe,...Array.isArray(ge(o,B))?[{}]:[]],ref:{type:pe.type,name:B}}:{ref:pe}}}),I(B,!1,void 0,pe)}else ie=ge(i,B,{}),ie._f&&(ie._f.mount=!1),(t.shouldUnregister||W.shouldUnregister)&&!(aj(u.array,B)&&c.action)&&u.unMount.add(B)}}},ze=()=>t.shouldFocusError&&xc(i,K,u.mount),Ye=B=>{Vn(B)&&(b.state.next({disabled:B}),xc(i,(W,ie)=>{const ve=ge(i,ie);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 ie=>{let ve;ie&&(ie.preventDefault&&ie.preventDefault(),ie.persist&&ie.persist());let he=$t(s);if(b.state.next({isSubmitting:!0}),t.resolver){const{errors:pe,values:Ie}=await L();n.errors=pe,he=$t(Ie)}else await V(i);if(u.disabled.size)for(const pe of u.disabled)Ut(he,pe);if(Ut(n.errors,"root"),_n(n.errors)){b.state.next({errors:{}});try{await B(he,ie)}catch(pe){ve=pe}}else W&&await W({...n.errors},ie),ze(),setTimeout(ze);if(b.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:_n(n.errors)&&!ve,submitCount:n.submitCount+1,errors:n.errors}),ve)throw ve},en=(B,W={})=>{ge(i,B)&&(Nt(W.defaultValue)?M(B,$t(ge(o,B))):(M(B,W.defaultValue),dt(o,B,$t(W.defaultValue))),W.keepTouched||Ut(n.touchedFields,B),W.keepDirty||(Ut(n.dirtyFields,B),n.isDirty=W.defaultValue?H(B,$t(ge(o,B))):H()),W.keepError||(Ut(n.errors,B),p.isValid&&A()),b.state.next({...n}))},Yt=(B,W={})=>{const ie=B?$t(B):o,ve=$t(ie),he=_n(B),pe=he?o:ve;if(W.keepDefaultValues||(o=ie),!W.keepValues){if(W.keepDirtyValues){const Ie=new Set([...u.mount,...Object.keys(bs(o,s))]);for(const tt of Array.from(Ie))ge(n.dirtyFields,tt)?dt(pe,tt,ge(s,tt)):M(tt,ge(pe,tt))}else{if(Sb&&Nt(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(If(at)){const En=at.closest("form");if(En){En.reset();break}}}}if(W.keepFieldsRef)for(const Ie of u.mount)M(Ie,ge(pe,Ie));else i={}}s=t.shouldUnregister?W.keepDefaultValues?$t(o):{}:$t(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&&!wi(B,o)),isSubmitted:W.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:he?{}:W.keepDirtyValues?W.keepDefaultValues&&s?bs(o,s):n.dirtyFields:W.keepDefaultValues&&B?bs(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})},kr=(B,W)=>Yt(Ar(B)?B(s):B,W),ni=(B,W={})=>{const ie=ge(i,B),ve=ie&&ie._f;if(ve){const he=ve.refs?ve.refs[0]:ve.ref;he.focus&&(he.focus(),W.shouldSelect&&Ar(he.select)&&he.select())}},Na=B=>{n={...n,...B}},Co={control:{register:Ae,unregister:re,getFieldState:j,handleSubmit:et,setError:J,_subscribe:ue,_runSchema:L,_focusError:ze,_getWatch:ae,_getDirty:H,_setValid:A,_setFieldArray:N,_setDisabledField:Re,_setErrors:C,_getFieldArray:ce,_reset:Yt,_resetDefaultValues:()=>Ar(t.defaultValues)&&t.defaultValues().then(B=>{kr(B,t.resetOptions),b.state.next({isLoading:!1})}),_removeUnmounted:$,_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:te,setValue:M,getValues:Ee,reset:kr,resetField:en,clearErrors:P,unregister:re,setError:J,setFocus:ni,getFieldState:j};return{...Co,formControl:Co}}function cY(e={}){const t=Ne.useRef(void 0),n=Ne.useRef(void 0),[i,o]=Ne.useState({isDirty:!1,isValidating:!1,isLoading:Ar(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:Ar(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:i},e.defaultValues&&!Ar(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:c,...u}=lY(e);t.current={...u,formState:i}}const s=t.current.control;return s._options=e,Cb(()=>{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&&!wi(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=oj(i,s),t.current}const pj=E.createContext({}),uY=({...e})=>y.jsx(pj,{value:E.useMemo(()=>({name:e.name}),[e.name]),children:y.jsx(ZZ,{...e})}),Sa=()=>{const e=E.useContext(pj),t=E.useContext(nj),{getFieldState:n,formState:i}=xa(),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}},dY=({className:e,children:t,...n})=>y.jsxs("i",{className:fe("text-neutral-400 text-xs",e),...n,children:["ⓘ ",t]}),Pg=({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:"*"})]}),mj=({className:e,variant:t,validationStyleEnabled:n=!1,...i})=>y.jsx("textarea",{className:fe("resize-none",JO({variant:t,validationStyleEnabled:n?"enabled":"disabled",className:e})),...i}),PT=24,BT=12,Nb=({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,S=PT*i+BT,w=PT+BT;g.height=`${Math.max(Math.min(b,S),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(mj,{ref:h,onChange:f,className:fe("overflow-y-auto",t?"resize-none":"",e),...s})};var Js=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(){}},fY={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},hY=class{#e=fY;#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)}},ao=new hY;function pY(e){setTimeout(e,0)}var ho=typeof window>"u"||"Deno"in globalThis;function gn(){}function mY(e,t){return typeof e=="function"?e(t):e}function Bg(e){return typeof e=="number"&&e>=0&&e!==1/0}function yj(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ua(e,t){return typeof e=="function"?e(t):e}function lr(e,t){return typeof e=="function"?e(t):e}function UT(e,t){const{type:n="all",exact:i,fetchStatus:o,predicate:s,queryKey:c,stale:u}=e;if(c){if(i){if(t.queryHash!==kb(c,t.options))return!1}else if(!Dc(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 VT(e,t){const{exact:n,status:i,predicate:o,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(n){if(po(t.options.mutationKey)!==po(s))return!1}else if(!Dc(t.options.mutationKey,s))return!1}return!(i&&t.state.status!==i||o&&!o(t))}function kb(e,t){return(t?.queryKeyHashFn||po)(e)}function po(e){return JSON.stringify(e,(t,n)=>Ug(n)?Object.keys(n).sort().reduce((i,o)=>(i[o]=n[o],i),{}):n)}function Dc(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Dc(e[n],t[n])):!1}var yY=Object.prototype.hasOwnProperty;function gj(e,t){if(e===t)return e;const n=FT(e)&&FT(t);if(!n&&!(Ug(e)&&Ug(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:yY.call(e,p))&&f++;continue}if(g===null||b===null||typeof g!="object"||typeof b!="object"){u[p]=b;continue}const S=gj(g,b);u[p]=S,S===g&&f++}return o===c&&f===o?e:u}function Nf(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 FT(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Ug(e){if(!HT(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!HT(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function HT(e){return Object.prototype.toString.call(e)==="[object Object]"}function gY(e){return new Promise(t=>{ao.setTimeout(t,e)})}function Vg(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?gj(e,t):t}function vY(e,t,n=0){const i=[...e,t];return n&&i.length>n?i.slice(1):i}function bY(e,t,n=0){const i=[t,...e];return n&&i.length>n?i.slice(0,-1):i}var Lb=Symbol();function vj(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===Lb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function bj(e,t){return typeof e=="function"?e(...t):!!e}var EY=class extends Js{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!ho&&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"}},Db=new EY;function Fg(){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 xY=pY;function SY(){let e=[],t=0,n=u=>{u()},i=u=>{u()},o=xY;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 qt=SY(),AY=class extends Js{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!ho&&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}},kf=new AY;function wY(e){return Math.min(1e3*2**e,3e4)}function Ej(e){return(e??"online")==="online"?kf.isOnline():!0}var Hg=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function xj(e){let t=!1,n=0,i;const o=Fg(),s=()=>o.status!=="pending",c=A=>{if(!s()){const R=new Hg(A);b(R),e.onCancel?.(R)}},u=()=>{t=!0},f=()=>{t=!1},h=()=>Db.isFocused()&&(e.networkMode==="always"||kf.isOnline())&&e.canRun(),p=()=>Ej(e.networkMode)&&e.canRun(),g=A=>{s()||(i?.(),o.resolve(A))},b=A=>{s()||(i?.(),o.reject(A))},S=()=>new Promise(A=>{i=R=>{(s()||h())&&A(R)},e.onPause?.()}).then(()=>{i=void 0,s()||e.onContinue?.()}),w=()=>{if(s())return;let A;const R=n===0?e.initialPromise:void 0;try{A=R??e.fn()}catch(N){A=Promise.reject(N)}Promise.resolve(A).then(g).catch(N=>{if(s())return;const x=e.retry??(ho?0:3),C=e.retryDelay??wY,I=typeof C=="function"?C(n,N):C,_=x===!0||typeof x=="number"&&n<x||typeof x=="function"&&x(n,N);if(t||!_){b(N);return}n++,e.onFail?.(n,N),gY(I).then(()=>h()?void 0:S()).then(()=>{t?b(N):w()})})};return{promise:o,status:()=>o.status,cancel:c,continue:()=>(i?.(),o),cancelRetry:u,continueRetry:f,canStart:p,start:()=>(p()?w():S().then(w),o)}}var Sj=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Bg(this.gcTime)&&(this.#e=ao.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ho?1/0:5*60*1e3))}clearGcTimeout(){this.#e&&(ao.clearTimeout(this.#e),this.#e=void 0)}},TY=class extends Sj{#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=GT(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=GT(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=Vg(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(gn).catch(gn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(e=>lr(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Lb||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(e=>ua(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:!yj(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=vj(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=xj({initialPromise:t?.initialPromise,fn:c.fetchFn,onCancel:u=>{u instanceof Hg&&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 Hg){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,...Aj(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),qt.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:e})})}};function Aj(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ej(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function GT(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 CY=class extends Js{constructor(e,t){super(),this.options=t,this.#e=e,this.#a=null,this.#s=Fg(),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),KT(this.#t,this.options)?this.#d():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Gg(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Gg(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 lr(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&&!Nf(this.options,t)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const i=this.hasListeners();i&&$T(this.#t,n,this.options,t)&&this.#d(),this.updateResult(),i&&(this.#t!==n||lr(this.options.enabled,this.#t)!==lr(t.enabled,this.#t)||ua(this.options.staleTime,this.#t)!==ua(t.staleTime,this.#t))&&this.#y();const o=this.#g();i&&(this.#t!==n||lr(this.options.enabled,this.#t)!==lr(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 IY(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(gn)),t}#y(){this.#E();const e=ua(this.options.staleTime,this.#t);if(ho||this.#i.isStale||!Bg(e))return;const n=yj(this.#i.dataUpdatedAt,e)+1;this.#c=ao.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,!(ho||lr(this.options.enabled,this.#t)===!1||!Bg(this.#l)||this.#l===0)&&(this.#u=ao.setInterval(()=>{(this.options.refetchIntervalInBackground||Db.isFocused())&&this.#d()},this.#l))}#b(){this.#y(),this.#v(this.#g())}#E(){this.#c&&(ao.clearTimeout(this.#c),this.#c=void 0)}#x(){this.#u&&(ao.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(),V=!O&&KT(e,t),$=O&&$T(e,n,t,i);(V||$)&&(p={...p,...Aj(h.data,e.options)}),t._optimisticResults==="isRestoring"&&(p.fetchStatus="idle")}let{error:S,errorUpdatedAt:w,status:A}=p;b=p.data;let R=!1;if(t.placeholderData!==void 0&&b===void 0&&A==="pending"){let O;o?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(O=o.data,R=!0):O=typeof t.placeholderData=="function"?t.placeholderData(this.#h?.state.data,this.#h):t.placeholderData,O!==void 0&&(A="success",b=Vg(o?.data,O,t),g=!0)}if(t.select&&b!==void 0&&!R)if(o&&b===s?.data&&t.select===this.#m)b=this.#f;else try{this.#m=t.select,b=t.select(b),b=Vg(o?.data,b,t),this.#f=b,this.#a=null}catch(O){this.#a=O}this.#a&&(S=this.#a,b=this.#f,w=Date.now(),A="error");const N=p.fetchStatus==="fetching",x=A==="pending",C=A==="error",I=x&&N,_=b!==void 0,L={status:A,fetchStatus:p.fetchStatus,isPending:x,isSuccess:A==="success",isError:C,isInitialLoading:I,isLoading:I,data:b,dataUpdatedAt:p.dataUpdatedAt,error:S,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:N,isRefetching:N&&!x,isLoadingError:C&&!_,isPaused:p.fetchStatus==="paused",isPlaceholderData:g,isRefetchError:C&&_,isStale:Ob(e,t),refetch:this.refetch,promise:this.#s,isEnabled:lr(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){const O=H=>{L.status==="error"?H.reject(L.error):L.data!==void 0&&H.resolve(L.data)},V=()=>{const H=this.#s=L.promise=Fg();O(H)},$=this.#s;switch($.status){case"pending":e.queryHash===n.queryHash&&O($);break;case"fulfilled":(L.status==="error"||L.data!==$.value)&&V();break;case"rejected":(L.status!=="error"||L.error!==$.reason)&&V();break}}return L}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),Nf(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){qt.batch(()=>{e.listeners&&this.listeners.forEach(t=>{t(this.#i)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function RY(e,t){return lr(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function KT(e,t){return RY(e,t)||e.state.data!==void 0&&Gg(e,t,t.refetchOnMount)}function Gg(e,t,n){if(lr(t.enabled,e)!==!1&&ua(t.staleTime,e)!=="static"){const i=typeof n=="function"?n(e):n;return i==="always"||i!==!1&&Ob(e,t)}return!1}function $T(e,t,n,i){return(e!==t||lr(i.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Ob(e,n)}function Ob(e,t){return lr(t.enabled,e)!==!1&&e.isStaleByTime(ua(t.staleTime,e))}function IY(e,t){return!Nf(e.getCurrentResult(),t)}function qT(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=vj(t.options,t.fetchOptions),S=async(w,A,R)=>{if(p)return Promise.reject();if(A==null&&w.pages.length)return Promise.resolve(w);const x=(()=>{const k={client:t.client,queryKey:t.queryKey,pageParam:A,direction:R?"backward":"forward",meta:t.options.meta};return g(k),k})(),C=await b(x),{maxPages:I}=t.options,_=R?bY:vY;return{pages:_(w.pages,C,I),pageParams:_(w.pageParams,A,I)}};if(o&&s.length){const w=o==="backward",A=w?_Y:ZT,R={pages:s,pageParams:c},N=A(i,R);u=await S(R,N,w)}else{const w=e??s.length;do{const A=f===0?c[0]??i.initialPageParam:ZT(i,u);if(f>0&&A==null)break;u=await S(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 ZT(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 _Y(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var NY=class extends Sj{#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||wj(),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=xj({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),qt.batch(()=>{this.#t.forEach(n=>{n.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:"updated",action:e})})}};function wj(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Tj=class extends Js{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 NY({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=Md(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=Md(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=Md(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=Md(e);return typeof t=="string"?this.#t.get(t)?.find(i=>i!==e&&i.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){qt.batch(()=>{this.#e.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){const t={exact:!0,...e};return this.getAll().find(n=>VT(t,n))}findAll(e={}){return this.getAll().filter(t=>VT(e,t))}notify(e){qt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(t=>t.state.isPaused);return qt.batch(()=>Promise.all(e.map(t=>t.continue().catch(gn))))}};function Md(e){return e.options.scope?.id}var kY=class extends Js{#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),Nf(this.options,n)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),n?.mutationKey&&this.options.mutationKey&&po(n.mutationKey)!==po(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??wj();this.#t={...t,isPending:t.status==="pending",isSuccess:t.status==="success",isError:t.status==="error",isIdle:t.status==="idle",mutate:this.mutate,reset:this.reset}}#o(t){qt.batch(()=>{if(this.#i&&this.hasListeners()){const n=this.#t.variables,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)})})}},LY=class extends Js{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){const i=t.queryKey,o=t.queryHash??kb(i,t);let s=this.get(o);return s||(s=new TY({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(){qt.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(n=>UT(t,n))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(n=>UT(e,n)):t}notify(e){qt.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){qt.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){qt.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},DY=class{#e;#t;#n;#i;#r;#o;#s;#a;constructor(e={}){this.#e=e.queryCache||new LY,this.#t=e.mutationCache||new Tj,this.#n=e.defaultOptions||{},this.#i=new Map,this.#r=new Map,this.#o=0}mount(){this.#o++,this.#o===1&&(this.#s=Db.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#a=kf.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(ua(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=mY(t,s);if(c!==void 0)return this.#e.build(this,i).setData(c,{...n,manual:!0})}setQueriesData(e,t,n){return qt.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;qt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=this.#e;return qt.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},i=qt.batch(()=>this.#e.findAll(e).map(o=>o.cancel(n)));return Promise.all(i).then(gn).catch(gn)}invalidateQueries(e,t={}){return qt.batch(()=>(this.#e.findAll(e).forEach(n=>{n.invalidate()}),e?.refetchType==="none"?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},i=qt.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(gn)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(i).then(gn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=this.#e.build(this,t);return n.isStaleByTime(ua(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(gn).catch(gn)}fetchInfiniteQuery(e){return e.behavior=qT(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(gn).catch(gn)}ensureInfiniteQueryData(e){return e.behavior=qT(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return kf.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(po(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#i.values()],n={};return t.forEach(i=>{Dc(e,i.queryKey)&&Object.assign(n,i.defaultOptions)}),n}setMutationDefaults(e,t){this.#r.set(po(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#r.values()],n={};return t.forEach(i=>{Dc(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=kb(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===Lb&&(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()}},Cj=E.createContext(void 0),jb=e=>{const t=E.useContext(Cj);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},OY=({client:e,children:t})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),y.jsx(Cj.Provider,{value:e,children:t})),Rj=E.createContext(!1),jY=()=>E.useContext(Rj);Rj.Provider;function zY(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var MY=E.createContext(zY()),PY=()=>E.useContext(MY),BY=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))},UY=e=>{E.useEffect(()=>{e.clearReset()},[e])},VY=({result:e,errorResetBoundary:t,throwOnError:n,query:i,suspense:o})=>e.isError&&!t.isReset()&&!e.isFetching&&i&&(o&&e.data===void 0||bj(n,[e.error,i])),FY=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))}},HY=(e,t)=>e.isLoading&&e.isFetching&&!t,GY=(e,t)=>e?.suspense&&t.isPending,YT=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function KY(e,t,n){const i=jY(),o=PY(),s=jb(),c=s.defaultQueryOptions(e);s.getDefaultOptions().queries?._experimental_beforeQuery?.(c),c._optimisticResults=i?"isRestoring":"optimistic",FY(c),BY(c,o),UY(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(qt.batchCalls(g)):gn;return f.updateResult(),b},[f,p]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),E.useEffect(()=>{f.setOptions(c)},[c,f]),GY(c,h))throw YT(c,f,o);if(VY({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&&!ho&&HY(h,i)&&(u?YT(c,f,o):s.getQueryCache().get(c.queryHash)?.promise)?.catch(gn).finally(()=>{f.updateResult()}),c.notifyOnChangeProps?h:f.trackResult(h)}function sh(e,t){return KY(e,CY)}function Ao(e,t){const n=jb(),[i]=E.useState(()=>new kY(n,e));E.useEffect(()=>{i.setOptions(e)},[i,e]);const o=E.useSyncExternalStore(E.useCallback(c=>i.subscribe(qt.batchCalls(c)),[i]),()=>i.getCurrentResult(),()=>i.getCurrentResult()),s=E.useCallback((c,u)=>{i.mutate(c,u).catch(gn)},[i]);if(o.error&&bj(i.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:s,mutateAsync:o.mutate}}const WT={method:"GET",headers:{"Content-Type":"application/json"},credentials:"include"},$Y=e=>(Object.keys(e).forEach(t=>{e[t]===void 0&&delete e[t]}),e),Pd=e=>e.reduce((t,n)=>{const i=t??{},o=$Y(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=Pd([WT,...t.map(({body:b,params:S,headers:w,...A})=>A)]),c=Pd([WT.headers,...t.map(b=>b.headers)]),u=Pd(t.map(b=>b.params)),f=s.method;if(f!=="GET"&&f!=="HEAD"){const b=Pd(t.map(S=>S.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()},qY=(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(S,w={})=>await Ce(i,e,w,{method:"POST",body:S}),translateJSON:async(S,w={})=>await Ce(`${i}/translate/json`,e,w,{method:"POST",body:S}),auditContentDeclaration:async(S,w={})=>await Ce(`${i}/audit/dictionary`,e,w,{method:"POST",body:S}),auditContentDeclarationField:async(S,w={})=>await Ce(`${i}/audit/dictionary/field`,e,w,{method:"POST",body:S}),auditContentDeclarationMetadata:async(S,w={})=>await Ce(`${i}/audit/dictionary/metadata`,e,w,{method:"POST",body:S}),auditTag:async(S,w={})=>await Ce(`${i}/audit/tag`,e,w,{method:"POST",body:S}),askDocQuestion:async(S,w={})=>{if(!S)return;const{onMessage:A,onDone:R,...N}=S,x=new AbortController;try{const C=await fetch(`${i}/ask`,{method:"POST",headers:{"Content-Type":"application/json",...e.headers,...w.headers},body:JSON.stringify({...N,...e.body,...w.body}),signal:x.signal,credentials:"include"});if(!C.ok){let L="An error occurred";try{const O=await C.json();L=JSON.stringify(O.error)??"An error occurred"}catch{try{const O=await C.text();O&&(L=O)}catch{}}throw new Error(L)}const I=C.body?.getReader();if(!I)throw new Error("No reader available");const _=new TextDecoder;let k="";for(;;){const{done:L,value:O}=await I.read();if(L)break;k+=_.decode(O,{stream:!0});const V=k.split(`
268
- `);k=V.pop()??"";for(const $ of V)if($.startsWith("data: "))try{const H=JSON.parse($.slice(6));H.chunk&&A?.(H.chunk),H.done&&H.response&&R?.(H.response)}catch(H){console.error("Failed to parse SSE data:",H)}}}catch(C){throw console.error("Error in askDocQuestion:",C),C}},autocomplete:async(S,w={})=>await Ce(`${i}/autocomplete`,e,w,{method:"POST",body:S}),getDiscussions:async(S,w={})=>await Ce(`${i}/discussions`,e,w,{method:"GET",params:S})}},ZY=(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,S={})=>await Ce(i,e,S,{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,S,w={})=>await Ce(`${i}/${b}`,e,w,{params:S?{version:S.toString()}:void 0}),pushDictionaries:async(b,S={})=>await Ce(`${i}`,e,S,{method:"PATCH",body:{dictionaries:b}}),addDictionary:async(b,S={})=>await Ce(`${i}`,e,S,{method:"POST",body:b}),updateDictionary:async(b,S={})=>await Ce(`${i}/${b.id}`,e,S,{method:"PUT",body:b}),deleteDictionary:async(b,S={})=>await Ce(`${i}/${b}`,e,S,{method:"DELETE"})}},YY=(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})}},Ij=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}})}},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/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,R={})=>Ce(`${i}/${w}/members`,e,R,{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"})}},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/project`;return{getProjects:async(A,R={})=>await Ce(i,e,R,{cache:"no-store",params:A}),addProject:async(A,R={})=>await Ce(`${i}`,e,R,{method:"POST",body:A}),updateProject:async(A,R={})=>await Ce(`${i}`,e,R,{method:"PUT",body:A}),updateProjectMembers:async(A,R={})=>await Ce(`${i}/members`,e,R,{method:"PUT",body:A}),pushProjectConfiguration:async(A,R={})=>await Ce(`${i}/configuration`,e,R,{method:"PUT",body:A}),deleteProject:async(A={})=>await Ce(`${i}`,e,A,{method:"DELETE"}),selectProject:async(A,R={})=>await Ce(`${i}/${String(A)}`,e,R,{method:"PUT"}),unselectProject:async(A={})=>await Ce(`${i}/logout`,e,A,{method:"POST"}),addNewAccessKey:async(A,R={})=>await Ce(`${i}/access_key`,e,R,{method:"POST",body:A}),deleteAccessKey:async(A,R={})=>await Ce(`${i}/access_key`,e,R,{method:"DELETE",body:{clientId:A}}),refreshAccessKey:async(A,R={})=>await Ce(`${i}/access_key`,e,R,{method:"PATCH",body:{clientId:A}})}},QY=(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"})}},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/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"})}},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/user`;return{createUser:async(b,S={})=>await Ce(`${i}/`,e,S,{method:"POST",body:b}),getUsers:async(b,S={})=>await Ce(i,e,S,{cache:"no-store",params:b}),getUserById:async(b,S={})=>await Ce(`${i}/${b}`,e,S,{cache:"no-store"}),getUserByAccount:async(b,S,w={})=>await Ce(`${i}/account/${S}/${b}`,e,w,{cache:"no-store"}),getUserByEmail:async(b,S={})=>await Ce(`${i}/email/${b}`,e,S,{cache:"no-store"}),updateUser:async(b,S={})=>await Ce(`${i}`,e,S,{method:"PUT",body:b}),deleteUser:async(b,S={})=>await Ce(`${i}/${b}`,e,S,{method:"DELETE"}),getVerifyEmailStatusURL:b=>`${i}/verify-email-status/${String(b)}`}},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/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"})}},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/search`;return{searchDoc:async(s,c={})=>await Ce(`${i}/doc`,e,c,{method:"GET",params:s})}},r7=(e={},t)=>({organization:WY(e,t),project:XY(e,t),user:e7(e,t),oAuth:Ij(t),dictionary:ZY(e,t),stripe:QY(e,t),ai:qY(e,t),tag:JY(e,t),search:n7(e,t),editor:YY(e,t),newsletter:t7(e,t)}),i7=e=>{const t=Qr(),n=e??t??Qe,{data:i}=sh({queryKey:["oAuth2AccessToken"],queryFn:Ij(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 a7=Object.defineProperty,o7=Object.defineProperties,s7=Object.getOwnPropertyDescriptors,XT=Object.getOwnPropertySymbols,l7=Object.prototype.hasOwnProperty,c7=Object.prototype.propertyIsEnumerable,QT=(e,t,n)=>t in e?a7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,xr=(e,t)=>{for(var n in t||(t={}))l7.call(t,n)&&QT(e,n,t[n]);if(XT)for(var n of XT(t))c7.call(t,n)&&QT(e,n,t[n]);return e},Ur=(e,t)=>o7(e,s7(t)),u7=class extends Error{constructor(e,t,n){super(t||e.toString(),{cause:n}),this.status=e,this.statusText=t,this.error=n}},d7=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}},JT=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}},f7=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 h7(e){if(typeof e=="number")return new JT({type:"linear",attempts:e,delay:1e3});switch(e.type){case"linear":return new JT(e);case"exponential":return new f7(e);default:throw new Error("Invalid retry strategy")}}var p7=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},m7=/^application\/(?:[\w!#$%&*.^`~-]*\+)?json(;.+)?$/i;function y7(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 m7.test(i)?"json":n.has(i)||i.startsWith("text/")?"text":"blob"}function g7(e){try{return JSON.parse(e),!0}catch{return!1}}function _j(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 eC(e){try{return JSON.parse(e)}catch{return e}}function tC(e){return typeof e=="function"}function v7(e){if(e?.customFetchImpl)return e.customFetchImpl;if(typeof globalThis<"u"&&tC(globalThis.fetch))return globalThis.fetch;if(typeof window<"u"&&tC(window.fetch))return window.fetch;throw new Error("No fetch implementation found")}async function b7(e){const t=new Headers(e?.headers),n=await p7(e);for(const[i,o]of Object.entries(n||{}))t.set(i,o);if(!t.has("content-type")){const i=E7(e?.body);i&&t.set("content-type",i)}return t}function E7(e){return _j(e)?"application/json":null}function x7(e){if(!e?.body)return null;const t=new Headers(e?.headers);if(_j(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 S7(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 kj.includes(i)?i.toUpperCase():t?.body?"POST":"GET"}return t?.body?"POST":"GET"}function A7(e,t){let n;return!e?.signal&&e?.timeout&&(n=setTimeout(()=>t?.abort(),e?.timeout)),{abortTimeout:n,clearTimeout:()=>{n&&clearTimeout(n)}}}var w7=class Nj extends Error{constructor(t,n){super(n||JSON.stringify(t,null,2)),this.issues=t,Object.setPrototypeOf(this,Nj.prototype)}};async function cf(e,t){let n=await e["~standard"].validate(t);if(n.issues)throw new w7(n.issues);return n.value}var kj=["get","post","put","patch","delete"],T7=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=Ur(xr({},n),{method:h.method,output:h.output});return n?.disableValidation||(p=Ur(xr({},p),{body:h.input?await cf(h.input,n?.body):n?.body,params:h.params?await cf(h.params,n?.params):n?.params,query:h.query?await cf(h.query,n?.query):n?.query})),{url:t,options:p}}}return{url:t,options:n}}}),C7=e=>{async function t(n,i){const o=Ur(xr(xr({},e),i),{plugins:[...e?.plugins||[],T7(e||{})]});if(e?.catchAllError)try{return await Kg(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 Kg(n,o)}return t};function R7(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];kj.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,S]of g.entries()){const w=i[b];c=c.replace(S,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 Kg=async(e,t)=>{var n,i,o,s,c,u,f,h;const{hooks:p,url:g,options:b}=await d7(e,t),S=v7(b),w=new AbortController,A=(n=b.signal)!=null?n:w.signal,R=R7(g,b),N=x7(b),x=await b7(b),C=S7(g,b);let I=Ur(xr({},b),{url:R,headers:x,body:N,method:C,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:_}=A7(b,w);let k=await S(I.url,I);_();const L={response:k,request:I};for(const ce of p.onResponse)if(ce){const X=await ce(Ur(xr({},L),{response:(o=t?.hookOptions)!=null&&o.cloneResponse?k.clone():k}));X instanceof Response?k=X:X instanceof Object&&(k=X.response)}if(k.ok){if(!(I.method!=="HEAD"))return{data:"",error:null};const X=y7(k),oe={data:"",response:k,request:I};if(X==="json"||X==="text"){const M=await k.text(),K=await((s=I.jsonParser)!=null?s:eC)(M);oe.data=K}else oe.data=await k[X]();I?.output&&I.output&&!I.disableValidation&&(oe.data=await cf(I.output,oe.data));for(const M of p.onSuccess)M&&await M(Ur(xr({},oe),{response:(c=t?.hookOptions)!=null&&c.cloneResponse?k.clone():k}));return t?.throw?oe.data:{data:oe.data,error:null}}const O=(u=t?.jsonParser)!=null?u:eC,V=await k.text(),$=g7(V),H=$?await O(V):null,ae={response:k,responseText:V,request:I,error:Ur(xr({},H),{status:k.status,statusText:k.statusText})};for(const ce of p.onError)ce&&await ce(Ur(xr({},ae),{response:(f=t?.hookOptions)!=null&&f.cloneResponse?k.clone():k}));if(t?.retry){const ce=h7(t.retry),X=(h=t.retryAttempt)!=null?h:0;if(await ce.shouldAttemptRetry(X,k)){for(const M of p.onRetry)M&&await M(L);const oe=ce.getDelay(X);return await new Promise(M=>setTimeout(M,oe)),await Kg(e,Ur(xr({},t),{retryAttempt:X+1}))}}if(t?.throw)throw new u7(k.status,k.statusText,$?H:V);return{data:null,error:Ur(xr({},H),{status:k.status,statusText:k.statusText})}},I7={},nC={};const uf=Object.create(null),ic=e=>I7||globalThis.Deno?.env.toObject()||globalThis.__env__||(e?uf:globalThis),cr=new Proxy(uf,{get(e,t){return ic()[t]??uf[t]},has(e,t){const n=ic();return t in n||t in uf},set(e,t,n){const i=ic(!0);return i[t]=n,!0},deleteProperty(e,t){if(!t)return!1;const n=ic(!0);return delete n[t],!0},ownKeys(){const e=ic(!0);return Object.keys(e)}});function Bt(e,t){return typeof process<"u"&&nC?nC[e]??t:typeof Deno<"u"?Deno.env.get(e)??t:typeof Bun<"u"?Bun.env[e]??t:t}const ac=1,Qt=4,Fr=8,Hn=24,rC={eterm:Qt,cons25:Qt,console:Qt,cygwin:Qt,dtterm:Qt,gnome:Qt,hurd:Qt,jfbterm:Qt,konsole:Qt,kterm:Qt,mlterm:Qt,mosh:Hn,putty:Qt,st:Qt,"rxvt-unicode-24bit":Hn,terminator:Hn,"xterm-kitty":Hn},_7=new Map(Object.entries({APPVEYOR:Fr,BUILDKITE:Fr,CIRCLECI:Hn,DRONE:Fr,GITEA_ACTIONS:Hn,GITHUB_ACTIONS:Hn,GITLAB_CI:Fr,TRAVIS:Fr})),N7=[/ansi/,/color/,/linux/,/direct/,/^con[0-9]*x[0-9]/,/^rxvt/,/^screen/,/^xterm/,/^vt100/,/^vt220/];function k7(){if(Bt("FORCE_COLOR")!==void 0)switch(Bt("FORCE_COLOR")){case"":case"1":case"true":return Qt;case"2":return Fr;case"3":return Hn;default:return ac}if(Bt("NODE_DISABLE_COLORS")!==void 0&&Bt("NODE_DISABLE_COLORS")!==""||Bt("NO_COLOR")!==void 0&&Bt("NO_COLOR")!==""||Bt("TERM")==="dumb")return ac;if(Bt("TMUX"))return Hn;if("TF_BUILD"in cr&&"AGENT_NAME"in cr)return Qt;if("CI"in cr){for(const{0:e,1:t}of _7)if(e in cr)return t;return Bt("CI_NAME")==="codeship"?Fr:ac}if("TEAMCITY_VERSION"in cr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.exec(Bt("TEAMCITY_VERSION"))!==null?Qt:ac;switch(Bt("TERM_PROGRAM")){case"iTerm.app":return!Bt("TERM_PROGRAM_VERSION")||/^[0-2]\./.exec(Bt("TERM_PROGRAM_VERSION"))!==null?Fr:Hn;case"HyperTerm":case"MacTerm":return Hn;case"Apple_Terminal":return Fr}if(Bt("COLORTERM")==="truecolor"||Bt("COLORTERM")==="24bit")return Hn;if(Bt("TERM")){if(/truecolor/.exec(Bt("TERM"))!==null)return Hn;if(/^xterm-256/.exec(Bt("TERM"))!==null)return Fr;const e=Bt("TERM").toLowerCase();if(rC[e])return rC[e];if(N7.some(t=>t.exec(e)!==null))return Qt}return Bt("COLORTERM")?Qt:ac}const Hr={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"}},$g=["info","success","warn","error","debug"];function L7(e,t){return $g.indexOf(t)<=$g.indexOf(e)}const D7={info:Hr.fg.blue,success:Hr.fg.green,warn:Hr.fg.yellow,error:Hr.fg.red,debug:Hr.fg.magenta},O7=(e,t,n)=>{const i=new Date().toISOString();return n?`${Hr.dim}${i}${Hr.reset} ${D7[e]}${e.toUpperCase()}${Hr.reset} ${Hr.bright}[Better Auth]:${Hr.reset} ${t}`:`${i} ${e.toUpperCase()} [Better Auth]: ${t}`},j7=e=>{const t="error",n=k7()!==1,i=(s,c,u=[])=>{if(!L7(t,s))return;const f=O7(s,c,n);{s==="error"?console.error(f,...u):s==="warn"?console.warn(f,...u):console.log(f,...u);return}};return{...Object.fromEntries($g.map(s=>[s,(...[c,...u])=>i(s,c,u)])),get level(){return t}}};j7();class z7 extends Error{constructor(t,n){super(t),this.name="BetterAuthError",this.message=t,this.cause=n,this.stack=""}}function M7(e){try{return(new URL(e).pathname.replace(/\/+$/,"")||"/")!=="/"}catch{throw new z7(`Invalid base URL: ${e}. Please provide a valid base URL.`)}}function My(e,t="/api/auth"){if(M7(e))return e;const i=e.replace(/\/+$/,"");return!t||t==="/"?i:(t=t.startsWith("/")?t:`/${t}`,`${i}${t}`)}function P7(e,t,n,i){if(e)return My(e,t);{const o=cr.BETTER_AUTH_URL||cr.NEXT_PUBLIC_BETTER_AUTH_URL||cr.PUBLIC_BETTER_AUTH_URL||cr.NUXT_PUBLIC_BETTER_AUTH_URL||cr.NUXT_PUBLIC_AUTH_URL||(cr.BASE_URL!=="/"?cr.BASE_URL:void 0);if(o)return My(o,t)}if(typeof window<"u"&&window.location)return My(window.location.origin,t)}let gr=[],oa=0;const Bd=4;let Lj=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=oa+Bd;s<gr.length;)gr[s]===i?gr.splice(s,Bd):s+=Bd;let o=t.indexOf(i);~o&&(t.splice(o,1),--n.lc||n.off())}},notify(i,o){let s=!gr.length;for(let c of t)gr.push(c,n.value,i,o);if(s){for(oa=0;oa<gr.length;oa+=Bd)gr[oa](gr[oa+1],gr[oa+2],gr[oa+3]);gr.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 B7=5,Ud=6,Vd=10;let U7=(e,t,n,i)=>(e.events=e.events||{},e.events[n+Vd]||(e.events[n+Vd]=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+Vd](),delete e.events[n+Vd])}),V7=1e3,F7=(e,t)=>U7(e,i=>{let o=t(i);o&&e.events[Ud].push(o)},B7,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[Ud]=[],e.off=()=>{s(),setTimeout(()=>{if(e.active&&!e.lc){e.active=!1;for(let c of e.events[Ud])c();e.events[Ud]=[]}},V7)},()=>{e.listen=o,e.off=s}});const H7=typeof window>"u",G7=(e,t,n,i)=>{const o=Lj({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(()=>{H7||(c?s():F7(o,()=>{const f=setTimeout(()=>{c||(s(),c=!0)},0);return()=>{o.off(),u.off(),clearTimeout(f)}}))});return o},K7={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*:/},$7=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/,iC={true:!0,false:!1,null:null,undefined:void 0,nan:Number.NaN,infinity:Number.POSITIVE_INFINITY,"-infinity":Number.NEGATIVE_INFINITY},q7=/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,7}))?(?:Z|([+-])(\d{2}):(\d{2}))$/;function Z7(e){return e instanceof Date&&!isNaN(e.getTime())}function Y7(e){const t=q7.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 S=(parseInt(p,10)*60+parseInt(g,10))*(h==="+"?-1:1);b.setUTCMinutes(b.getUTCMinutes()+S)}return Z7(b)?b:null}function W7(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 iC)return iC[u];if(!$7.test(c)){if(n)throw new SyntaxError("[better-json] Invalid JSON");return e}if(Object.entries(K7).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=Y7(g);if(b)return b}return o?o(p,g):g})}catch(h){if(n)throw h;return e}}function X7(e,t={strict:!0}){return W7(e,t)}const Q7={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 J7(e){const t=Lj(!1);return{session:G7(t,"/get-session",e,{method:"GET"}),$sessionSignal:t}}const eW=(e,t)=>{const n="credentials"in Request.prototype,i=P7(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=C7({baseURL:i,...n?{credentials:"include"}:{},method:"GET",jsonParser(I){return I?X7(I,{strict:!1}):null},customFetchImpl:fetch,...p,plugins:[s,...p.plugins||[],...e?.disableDefaultFetchPlugins?[]:[Q7],...o]}),{$sessionSignal:b,session:S}=J7(g),w=e?.plugins||[];let A={},R={$sessionSignal:b,session:S},N={"/sign-out":"POST","/revoke-sessions":"POST","/revoke-other-sessions":"POST","/delete-user":"POST"};const x=[{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(R,I.getAtoms?.(g)),I.pathMethods&&Object.assign(N,I.pathMethods),I.atomListeners&&x.push(...I.atomListeners);const C={notify:I=>{R[I].set(!R[I].get())},listen:(I,_)=>{R[I].subscribe(_)},atoms:R};for(const I of w)I.getActions&&Object.assign(A,I.getActions?.(g,C,e));return{get baseURL(){return i},pluginsActions:A,pluginsAtoms:R,pluginPathMethods:N,atomListeners:x,$fetch:g,$store:C}};function tW(e){return typeof e=="object"&&e!==null&&"get"in e&&typeof e.get=="function"&&"lc"in e&&typeof e.lc=="number"}function nW(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 rW(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"||tW(p)?p:s(h)},apply:async(u,f,h)=>{const p="/"+c.map(x=>x.replace(/[A-Z]/g,C=>`-${C.toLowerCase()}`)).join("/"),g=h[0]||{},b=h[1]||{},{query:S,fetchOptions:w,...A}=g,R={...b,...w},N=nW(p,n,g);return await t(p,{...R,body:N==="GET"?void 0:{...A,...R?.body||{}},query:S||R?.query,method:N,async onSuccess(x){if(await R?.onSuccess?.(x),!o)return;const C=o.filter(I=>I.matcher(p));if(C.length)for(const I of C){const _=i[I.signal];if(!_)return;const k=_.get();setTimeout(()=>{_.set(!k)},10)}}})}})}return s()}function iW(e){return e.charAt(0).toUpperCase()+e.slice(1)}function aW(e){const{pluginPathMethods:t,pluginsActions:n,pluginsAtoms:i,$fetch:o,atomListeners:s,$store:c}=eW(e);let u={};for(const[p,g]of Object.entries(i))u[`use${iW(p)}`]=g;const f={...n,...u,$fetch:o,$store:c};return rW(f,o,t,i,s)}const Dj=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=()=>aW({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)}},Oj=(e,t)=>{const n=Qr(),i=t??n??Qe,o=jb(),{data:s,isFetched:c,refetch:u}=sh({queryKey:["session"],queryFn:async()=>(await Dj(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}},lh=({session:e,intlayerConfiguration:t}={})=>{const{session:n,fetchSession:i,revalidateSession:o,setSession:s}=Oj(e,t),{oAuth2AccessToken:c}=i7(t);return{session:n,fetchSession:i,setSession:s,revalidateSession:o,oAuth2AccessToken:c,isAuthenticated:!!(n?.user||c)}},Oi=e=>{const t=Qr(),{oAuth2AccessToken:n}=lh();return r7({...n&&{headers:{Authorization:`Bearer ${n.accessToken}`}}},t)},oW=e=>{const t=Qr();return Dj(t)},sW=({requireUser:e,requireProject:t,requireOrganization:n})=>{const{oAuth2AccessToken:i,session:o}=lh({intlayerConfiguration:Qr()}),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)}},jj=e=>{const{requireUser:t,requireProject:n,requireOrganization:i,...o}=e,{enable:s}=sW({requireUser:t,requireProject:n,requireOrganization:i});return sh({enabled:o?.enabled===!1?!1:s,...o})},lW=()=>{const e=oW();return Ao({mutationKey:["logout"],mutationFn:()=>e.signOut(),meta:{resetQueries:[["session"],["users"],["organizations"],["projects"],["dictionaries"],["tags"]]}})},cW=(e,t)=>{const n=Oi();return jj({queryKey:["projects",e],queryFn:({signal:i})=>n.project.getProjects(e,{signal:i}),requireUser:!0,requireOrganization:!0,...t})},uW=()=>{const e=Oi();return Ao({mutationKey:["dictionaries"],mutationFn:t=>e.dictionary.pushDictionaries(t),meta:{invalidateQueries:[["dictionaries"],["dictionariesKeys"]]}})},dW=()=>{const e=Oi();return Ao({mutationKey:["dictionaries"],mutationFn:t=>e.dictionary.deleteDictionary(t),meta:{invalidateQueries:[["dictionaries"],["dictionariesKeys"]]}})},fW=(e,t)=>{const n=Oi();return jj({queryKey:["tags",e],queryFn:({signal:i})=>n.tag.getTags(e,{signal:i}),requireUser:!0,requireOrganization:!0,requireProject:!0,...t})},hW=()=>{const e=Oi();return Ao({mutationKey:["ai-auditContentDeclarationMetadata"],mutationFn:t=>e.ai.auditContentDeclarationMetadata(t)})},pW=()=>{const e=Oi();return Ao({mutationKey:["ai-auditContentDeclarationField"],mutationFn:t=>e.ai.auditContentDeclarationField(t)})},mW=()=>{const e=Oi();return Ao({mutationKey:["ai-autocomplete"],mutationFn:t=>e.ai.autocomplete(t)})},zj=()=>{const e=Oi();return sh({queryKey:["editor","dictionaries"],queryFn:()=>e.editor.getDictionaries()})},yW=()=>{const e=Oi();return Ao({mutationKey:["editor","dictionaries"],mutationFn:t=>e.editor.writeDictionary(t)})},gW=(e,t)=>{const[n,i]=E.useState(e);return E.useEffect(()=>{const o=setTimeout(()=>{i(e)},t);return()=>clearTimeout(o)},[e,t]),n},vW=({isActive:e=!0,suggestion:t,...n})=>{const i=String(n.value??n.defaultValue??""),{mutate:o}=mW(),s=Qr(),[c,u]=E.useState(!1),[f,h]=E.useState(i),[p,g]=E.useState(""),b=E.useRef(null),S=E.useRef(null),w=E.useRef(null),[A,R]=E.useState(null),[N,x]=E.useState(-1),C=gW(f,200);E.useEffect(()=>{typeof n.value>"u"||h(i)},[n.value,n.defaultValue]),E.useEffect(()=>{if(!e||!c)return;const _=async()=>{try{const k=b.current?.selectionStart??C.length,L=C.slice(0,k),O=C.slice(k),V=5,$=L.split(`
269
- `);o({text:L,contextBefore:$.slice(Math.max(0,$.length-V-1),-1).join(`
270
- `),currentLine:$[$.length-1]??"",contextAfter:O.split(`
271
- `).slice(1,V+1).join(`
272
- `),aiOptions:{apiKey:s.ai?.apiKey,model:s.ai?.model,temperature:s.ai?.temperature}},{onSuccess:H=>{g(H.data?.autocompletion??""),x(k)}})}catch(k){console.error("Autocomplete error:",k)}};C.length>3?(g(""),_()):g("")},[C,e,o,s]),E.useEffect(()=>{if(!p||N===-1||!S.current||!w.current){R(null);return}const _=S.current.getBoundingClientRect(),k=w.current.getBoundingClientRect();R({left:_.left-k.left,top:_.top-k.top})},[p,N,f]);const I=()=>{const _=b.current?.selectionStart??N;_===N&&(h(f.slice(0,_)+p+f.slice(_)),g(""),x(-1),setTimeout(()=>{b.current?.focus();const k=_+p.length;b.current?.setSelectionRange(k,k)},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&&N!==-1?y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"align-text-top text-transparent",children:f.slice(0,N)}),y.jsx("span",{ref:S,style:{visibility:"hidden"},"aria-hidden":"true",children:p}),y.jsx("span",{className:"align-text-top text-transparent",children:f.slice(N)})]}):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(Nb,{...n,ref:b,value:f,onChange:_=>{u(!0),h(_.target.value),g(""),n.onChange?.(_)},onKeyDown:_=>{_.key==="Tab"&&p&&(_.preventDefault(),I()),n.onKeyDown?.(_)},onSelect:_=>{p&&_.target.selectionStart!==N&&(g(""),x(-1)),n.onSelect?.(_)}})]})},Mj=({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(ej,{value:i.value??o.current?.value??i.defaultValue??"",onCancel:c,onSave:s,onClick:u=>{u.preventDefault(),u.stopPropagation()},children:y.jsx(Nb,{className:"leading-6",ref:o,onClick:u=>{u.preventDefault(),u.stopPropagation()},...i})})},Pj=E.createContext(null),ch=()=>{const e=E.useContext(Pj);if(!e)throw new Error("useMultiSelect must be used within MultiSelectProvider");return e},bW=({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,S]=E.useState(!1),[w,A]=E.useState(-1),R=E.useRef(null),[N,x]=E.useState(!1),[C,I]=E.useState("");E.useEffect(()=>{e&&h(e)},[e]);const _=E.useCallback(O=>{if(f.includes(O)){const V=f.filter($=>$!==O);h(V),n?.(V)}else{const V=[...f,O];h(V),n?.(V)}},[f]),k=E.useCallback(O=>{O.preventDefault();const V=O.currentTarget,$=V.value.substring(V.selectionStart??0,V.selectionEnd??0);I($),x($===p)},[p]),L=E.useCallback(O=>{O.stopPropagation();const V=R.current;if(!V)return;const $=()=>{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)},ae=()=>{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.length>0&&V.selectionStart===0&&H();break;case"ArrowRight":c==="rtl"?f.length>0&&V.selectionStart===0&&H():f.length>0&&(w!==-1||i)&&$();break;case"Backspace":case"Delete":f.length>0&&(w!==-1&&w<f.length?(_(f[w]),ae()):(V.selectionStart===0&&C===p||N)&&_(f[f.length-1]));break;case"Enter":S(!0);break;case"Escape":w!==-1?A(-1):b&&S(!1);break}},[f,p,w,i]);return y.jsx(Pj,{value:E.useMemo(()=>({value:f,onValueChange:_,open:b,setOpen:S,inputValue:p,setInputValue:g,activeIndex:w,setActiveIndex:A,ref:R,handleSelect:k}),[f,_,b,S,p,g,w,A,R,k]),children:y.jsx(fD,{onKeyDown:L,className:fe("flex w-full flex-col gap-2 overflow-visible bg-transparent",o),dir:c,...u,children:s})})},EW=({className:e,getBadgeValue:t=s=>s,validationStyleEnabled:n=!1,children:i,...o})=>{const{value:s,onValueChange:c,activeIndex:u}=ch(),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(dK,{className:fe("flex items-center gap-1 rounded-xl px-1",u===p&&"ring-2 ring-muted-foreground"),color:Un.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(So,{className:"size-4 cursor-pointer"})]})]},h))}),i]})},xW=({className:e,...t})=>{const{setOpen:n,inputValue:i,setInputValue:o,activeIndex:s,setActiveIndex:c,handleSelect:u,ref:f}=ch();return y.jsx(xf.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")})},SW=({children:e})=>{const{open:t}=ch();return y.jsx("div",{className:"relative",children:t&&e})},AW=({className:e,children:t})=>y.jsxs(xf.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(xf.Empty,{children:y.jsx("span",{className:"text-muted-foreground",children:"No results found"})})]}),wW=({className:e,value:t,children:n,...i})=>{const{value:o,onValueChange:s,setInputValue:c}=ch(),u=E.useCallback(h=>{h.preventDefault(),h.stopPropagation()},[]),f=o.includes(t);return y.jsxs(xf.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(Zs,{className:"size-4"})]})},hn=bW;hn.Trigger=EW;hn.Input=xW;hn.Content=SW;hn.List=AW;hn.Item=wW;function aC(e,[t,n]){return Math.min(n,Math.max(t,e))}function Bj(e){const t=e+"CollectionProvider",[n,i]=Kc(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),c=A=>{const{scope:R,children:N}=A,x=Ne.useRef(null),C=Ne.useRef(new Map).current;return y.jsx(o,{scope:R,itemMap:C,collectionRef:x,children:N})};c.displayName=t;const u=e+"CollectionSlot",f=Ms(u),h=Ne.forwardRef((A,R)=>{const{scope:N,children:x}=A,C=s(u,N),I=Tt(R,C.collectionRef);return y.jsx(f,{ref:I,children:x})});h.displayName=u;const p=e+"CollectionItemSlot",g="data-radix-collection-item",b=Ms(p),S=Ne.forwardRef((A,R)=>{const{scope:N,children:x,...C}=A,I=Ne.useRef(null),_=Tt(R,I),k=s(p,N);return Ne.useEffect(()=>(k.itemMap.set(I,{ref:I,...C}),()=>void k.itemMap.delete(I))),y.jsx(b,{[g]:"",ref:_,children:x})});S.displayName=p;function w(A){const R=s(e+"CollectionConsumer",A);return Ne.useCallback(()=>{const x=R.collectionRef.current;if(!x)return[];const C=Array.from(x.querySelectorAll(`[${g}]`));return Array.from(R.itemMap.values()).sort((k,L)=>C.indexOf(k.ref.current)-C.indexOf(L.ref.current))},[R.collectionRef,R.itemMap])}return[{Provider:c,Slot:h,ItemSlot:S},w,i]}var TW=E.createContext(void 0);function CW(e){const t=E.useContext(TW);return e||t||"ltr"}const RW=["top","right","bottom","left"],ya=Math.min,Gn=Math.max,Lf=Math.round,Fd=Math.floor,Yr=e=>({x:e,y:e}),IW={left:"right",right:"left",bottom:"top",top:"bottom"},_W={start:"end",end:"start"};function qg(e,t,n){return Gn(e,ya(t,n))}function Ni(e,t){return typeof e=="function"?e(t):e}function ki(e){return e.split("-")[0]}function el(e){return e.split("-")[1]}function zb(e){return e==="x"?"y":"x"}function Mb(e){return e==="y"?"height":"width"}const NW=new Set(["top","bottom"]);function Gr(e){return NW.has(ki(e))?"y":"x"}function Pb(e){return zb(Gr(e))}function kW(e,t,n){n===void 0&&(n=!1);const i=el(e),o=Pb(e),s=Mb(o);let c=o==="x"?i===(n?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(c=Df(c)),[c,Df(c)]}function LW(e){const t=Df(e);return[Zg(e),t,Zg(t)]}function Zg(e){return e.replace(/start|end/g,t=>_W[t])}const oC=["left","right"],sC=["right","left"],DW=["top","bottom"],OW=["bottom","top"];function jW(e,t,n){switch(e){case"top":case"bottom":return n?t?sC:oC:t?oC:sC;case"left":case"right":return t?DW:OW;default:return[]}}function zW(e,t,n,i){const o=el(e);let s=jW(ki(e),n==="start",i);return o&&(s=s.map(c=>c+"-"+o),t&&(s=s.concat(s.map(Zg)))),s}function Df(e){return e.replace(/left|right|bottom|top/g,t=>IW[t])}function MW(e){return{top:0,right:0,bottom:0,left:0,...e}}function Uj(e){return typeof e!="number"?MW(e):{top:e,right:e,bottom:e,left:e}}function Of(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 lC(e,t,n){let{reference:i,floating:o}=e;const s=Gr(t),c=Pb(t),u=Mb(c),f=ki(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 S;switch(f){case"top":S={x:p,y:i.y-o.height};break;case"bottom":S={x:p,y:i.y+i.height};break;case"right":S={x:i.x+i.width,y:g};break;case"left":S={x:i.x-o.width,y:g};break;default:S={x:i.x,y:i.y}}switch(el(t)){case"start":S[c]-=b*(n&&h?-1:1);break;case"end":S[c]+=b*(n&&h?-1:1);break}return S}const PW=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}=lC(h,i,f),b=i,S={},w=0;for(let A=0;A<u.length;A++){const{name:R,fn:N}=u[A],{x,y:C,data:I,reset:_}=await N({x:p,y:g,initialPlacement:i,placement:b,strategy:o,middlewareData:S,rects:h,platform:c,elements:{reference:e,floating:t}});p=x??p,g=C??g,S={...S,[R]:{...S[R],...I}},_&&w<=50&&(w++,typeof _=="object"&&(_.placement&&(b=_.placement),_.rects&&(h=_.rects===!0?await c.getElementRects({reference:e,floating:t,strategy:o}):_.rects),{x:p,y:g}=lC(h,b,f)),A=-1)}return{x:p,y:g,placement:b,strategy:o,middlewareData:S}};async function Oc(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:S=0}=Ni(t,e),w=Uj(S),R=u[b?g==="floating"?"reference":"floating":g],N=Of(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(R)))==null||n?R:R.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(u.floating)),boundary:h,rootBoundary:p,strategy:f})),x=g==="floating"?{x:i,y:o,width:c.floating.width,height:c.floating.height}:c.reference,C=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u.floating)),I=await(s.isElement==null?void 0:s.isElement(C))?await(s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},_=Of(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:x,offsetParent:C,strategy:f}):x);return{top:(N.top-_.top+w.top)/I.y,bottom:(_.bottom-N.bottom+w.bottom)/I.y,left:(N.left-_.left+w.left)/I.x,right:(_.right-N.right+w.right)/I.x}}const BW=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}=Ni(e,t)||{};if(h==null)return{};const g=Uj(p),b={x:n,y:i},S=Pb(o),w=Mb(S),A=await c.getDimensions(h),R=S==="y",N=R?"top":"left",x=R?"bottom":"right",C=R?"clientHeight":"clientWidth",I=s.reference[w]+s.reference[S]-b[S]-s.floating[w],_=b[S]-s.reference[S],k=await(c.getOffsetParent==null?void 0:c.getOffsetParent(h));let L=k?k[C]:0;(!L||!await(c.isElement==null?void 0:c.isElement(k)))&&(L=u.floating[C]||s.floating[w]);const O=I/2-_/2,V=L/2-A[w]/2-1,$=ya(g[N],V),H=ya(g[x],V),ae=$,ce=L-A[w]-H,X=L/2-A[w]/2+O,oe=qg(ae,X,ce),M=!f.arrow&&el(o)!=null&&X!==oe&&s.reference[w]/2-(X<ae?$:H)-A[w]/2<0,Y=M?X<ae?X-ae:X-ce:0;return{[S]:b[S]+Y,data:{[S]:oe,centerOffset:X-oe-Y,...M&&{alignmentOffset:Y}},reset:M}}}),UW=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:S="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:A=!0,...R}=Ni(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const N=ki(o),x=Gr(u),C=ki(u)===u,I=await(f.isRTL==null?void 0:f.isRTL(h.floating)),_=b||(C||!A?[Df(u)]:LW(u)),k=w!=="none";!b&&k&&_.push(...zW(u,A,w,I));const L=[u,..._],O=await Oc(t,R),V=[];let $=((i=s.flip)==null?void 0:i.overflows)||[];if(p&&V.push(O[N]),g){const X=kW(o,c,I);V.push(O[X[0]],O[X[1]])}if($=[...$,{placement:o,overflows:V}],!V.every(X=>X<=0)){var H,ae;const X=(((H=s.flip)==null?void 0:H.index)||0)+1,oe=L[X];if(oe&&(!(g==="alignment"?x!==Gr(oe):!1)||$.every(K=>Gr(K.placement)===x?K.overflows[0]>0:!0)))return{data:{index:X,overflows:$},reset:{placement:oe}};let M=(ae=$.filter(Y=>Y.overflows[0]<=0).sort((Y,K)=>Y.overflows[1]-K.overflows[1])[0])==null?void 0:ae.placement;if(!M)switch(S){case"bestFit":{var ce;const Y=(ce=$.filter(K=>{if(k){const me=Gr(K.placement);return me===x||me==="y"}return!0}).map(K=>[K.placement,K.overflows.filter(me=>me>0).reduce((me,Ee)=>me+Ee,0)]).sort((K,me)=>K[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 cC(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function uC(e){return RW.some(t=>e[t]>=0)}const VW=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:i="referenceHidden",...o}=Ni(e,t);switch(i){case"referenceHidden":{const s=await Oc(t,{...o,elementContext:"reference"}),c=cC(s,n.reference);return{data:{referenceHiddenOffsets:c,referenceHidden:uC(c)}}}case"escaped":{const s=await Oc(t,{...o,altBoundary:!0}),c=cC(s,n.floating);return{data:{escapedOffsets:c,escaped:uC(c)}}}default:return{}}}}},Vj=new Set(["left","top"]);async function FW(e,t){const{placement:n,platform:i,elements:o}=e,s=await(i.isRTL==null?void 0:i.isRTL(o.floating)),c=ki(n),u=el(n),f=Gr(n)==="y",h=Vj.has(c)?-1:1,p=s&&f?-1:1,g=Ni(t,e);let{mainAxis:b,crossAxis:S,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"&&(S=u==="end"?w*-1:w),f?{x:S*p,y:b*h}:{x:b*h,y:S*p}}const HW=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 FW(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}}}}},GW=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:R=>{let{x:N,y:x}=R;return{x:N,y:x}}},...f}=Ni(e,t),h={x:n,y:i},p=await Oc(t,f),g=Gr(ki(o)),b=zb(g);let S=h[b],w=h[g];if(s){const R=b==="y"?"top":"left",N=b==="y"?"bottom":"right",x=S+p[R],C=S-p[N];S=qg(x,S,C)}if(c){const R=g==="y"?"top":"left",N=g==="y"?"bottom":"right",x=w+p[R],C=w-p[N];w=qg(x,w,C)}const A=u.fn({...t,[b]:S,[g]:w});return{...A,data:{x:A.x-n,y:A.y-i,enabled:{[b]:s,[g]:c}}}}}},KW=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}=Ni(e,t),p={x:n,y:i},g=Gr(o),b=zb(g);let S=p[b],w=p[g];const A=Ni(u,t),R=typeof A=="number"?{mainAxis:A,crossAxis:0}:{mainAxis:0,crossAxis:0,...A};if(f){const C=b==="y"?"height":"width",I=s.reference[b]-s.floating[C]+R.mainAxis,_=s.reference[b]+s.reference[C]-R.mainAxis;S<I?S=I:S>_&&(S=_)}if(h){var N,x;const C=b==="y"?"width":"height",I=Vj.has(ki(o)),_=s.reference[g]-s.floating[C]+(I&&((N=c.offset)==null?void 0:N[g])||0)+(I?0:R.crossAxis),k=s.reference[g]+s.reference[C]+(I?0:((x=c.offset)==null?void 0:x[g])||0)-(I?R.crossAxis:0);w<_?w=_:w>k&&(w=k)}return{[b]:S,[g]:w}}}},$W=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}=Ni(e,t),p=await Oc(t,h),g=ki(o),b=el(o),S=Gr(o)==="y",{width:w,height:A}=s.floating;let R,N;g==="top"||g==="bottom"?(R=g,N=b===(await(c.isRTL==null?void 0:c.isRTL(u.floating))?"start":"end")?"left":"right"):(N=g,R=b==="end"?"top":"bottom");const x=A-p.top-p.bottom,C=w-p.left-p.right,I=ya(A-p[R],x),_=ya(w-p[N],C),k=!t.middlewareData.shift;let L=I,O=_;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=C),(i=t.middlewareData.shift)!=null&&i.enabled.y&&(L=x),k&&!b){const $=Gn(p.left,0),H=Gn(p.right,0),ae=Gn(p.top,0),ce=Gn(p.bottom,0);S?O=w-2*($!==0||H!==0?$+H:Gn(p.left,p.right)):L=A-2*(ae!==0||ce!==0?ae+ce:Gn(p.top,p.bottom))}await f({...t,availableWidth:O,availableHeight:L});const V=await c.getDimensions(u.floating);return w!==V.width||A!==V.height?{reset:{rects:!0}}:{}}}};function uh(){return typeof window<"u"}function tl(e){return Fj(e)?(e.nodeName||"").toLowerCase():"#document"}function Yn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ei(e){var t;return(t=(Fj(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fj(e){return uh()?e instanceof Node||e instanceof Yn(e).Node:!1}function Cr(e){return uh()?e instanceof Element||e instanceof Yn(e).Element:!1}function Xr(e){return uh()?e instanceof HTMLElement||e instanceof Yn(e).HTMLElement:!1}function dC(e){return!uh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Yn(e).ShadowRoot}const qW=new Set(["inline","contents"]);function nu(e){const{overflow:t,overflowX:n,overflowY:i,display:o}=Rr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!qW.has(o)}const ZW=new Set(["table","td","th"]);function YW(e){return ZW.has(tl(e))}const WW=[":popover-open",":modal"];function dh(e){return WW.some(t=>{try{return e.matches(t)}catch{return!1}})}const XW=["transform","translate","scale","rotate","perspective"],QW=["transform","translate","scale","rotate","perspective","filter"],JW=["paint","layout","strict","content"];function Bb(e){const t=Ub(),n=Cr(e)?Rr(e):e;return XW.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)||QW.some(i=>(n.willChange||"").includes(i))||JW.some(i=>(n.contain||"").includes(i))}function eX(e){let t=ga(e);for(;Xr(t)&&!Us(t);){if(Bb(t))return t;if(dh(t))return null;t=ga(t)}return null}function Ub(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const tX=new Set(["html","body","#document"]);function Us(e){return tX.has(tl(e))}function Rr(e){return Yn(e).getComputedStyle(e)}function fh(e){return Cr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ga(e){if(tl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||dC(e)&&e.host||ei(e);return dC(t)?t.host:t}function Hj(e){const t=ga(e);return Us(t)?e.ownerDocument?e.ownerDocument.body:e.body:Xr(t)&&nu(t)?t:Hj(t)}function jc(e,t,n){var i;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Hj(e),s=o===((i=e.ownerDocument)==null?void 0:i.body),c=Yn(o);if(s){const u=Yg(c);return t.concat(c,c.visualViewport||[],nu(o)?o:[],u&&n?jc(u):[])}return t.concat(o,jc(o,[],n))}function Yg(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Gj(e){const t=Rr(e);let n=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const o=Xr(e),s=o?e.offsetWidth:n,c=o?e.offsetHeight:i,u=Lf(n)!==s||Lf(i)!==c;return u&&(n=s,i=c),{width:n,height:i,$:u}}function Vb(e){return Cr(e)?e:e.contextElement}function Ls(e){const t=Vb(e);if(!Xr(t))return Yr(1);const n=t.getBoundingClientRect(),{width:i,height:o,$:s}=Gj(t);let c=(s?Lf(n.width):n.width)/i,u=(s?Lf(n.height):n.height)/o;return(!c||!Number.isFinite(c))&&(c=1),(!u||!Number.isFinite(u))&&(u=1),{x:c,y:u}}const nX=Yr(0);function Kj(e){const t=Yn(e);return!Ub()||!t.visualViewport?nX:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function rX(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Yn(e)?!1:t}function mo(e,t,n,i){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=Vb(e);let c=Yr(1);t&&(i?Cr(i)&&(c=Ls(i)):c=Ls(e));const u=rX(s,n,i)?Kj(s):Yr(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=Yn(s),S=i&&Cr(i)?Yn(i):i;let w=b,A=Yg(w);for(;A&&i&&S!==w;){const R=Ls(A),N=A.getBoundingClientRect(),x=Rr(A),C=N.left+(A.clientLeft+parseFloat(x.paddingLeft))*R.x,I=N.top+(A.clientTop+parseFloat(x.paddingTop))*R.y;f*=R.x,h*=R.y,p*=R.x,g*=R.y,f+=C,h+=I,w=Yn(A),A=Yg(w)}}return Of({width:p,height:g,x:f,y:h})}function hh(e,t){const n=fh(e).scrollLeft;return t?t.left+n:mo(ei(e)).left+n}function $j(e,t){const n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-hh(e,n),o=n.top+t.scrollTop;return{x:i,y:o}}function iX(e){let{elements:t,rect:n,offsetParent:i,strategy:o}=e;const s=o==="fixed",c=ei(i),u=t?dh(t.floating):!1;if(i===c||u&&s)return n;let f={scrollLeft:0,scrollTop:0},h=Yr(1);const p=Yr(0),g=Xr(i);if((g||!g&&!s)&&((tl(i)!=="body"||nu(c))&&(f=fh(i)),Xr(i))){const S=mo(i);h=Ls(i),p.x=S.x+i.clientLeft,p.y=S.y+i.clientTop}const b=c&&!g&&!s?$j(c,f):Yr(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 aX(e){return Array.from(e.getClientRects())}function oX(e){const t=ei(e),n=fh(e),i=e.ownerDocument.body,o=Gn(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=Gn(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let c=-n.scrollLeft+hh(e);const u=-n.scrollTop;return Rr(i).direction==="rtl"&&(c+=Gn(t.clientWidth,i.clientWidth)-o),{width:o,height:s,x:c,y:u}}const fC=25;function sX(e,t){const n=Yn(e),i=ei(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=Ub();(!p||p&&t==="fixed")&&(u=o.offsetLeft,f=o.offsetTop)}const h=hh(i);if(h<=0){const p=i.ownerDocument,g=p.body,b=getComputedStyle(g),S=p.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,w=Math.abs(i.clientWidth-g.clientWidth-S);w<=fC&&(s-=w)}else h<=fC&&(s+=h);return{width:s,height:c,x:u,y:f}}const lX=new Set(["absolute","fixed"]);function cX(e,t){const n=mo(e,!0,t==="fixed"),i=n.top+e.clientTop,o=n.left+e.clientLeft,s=Xr(e)?Ls(e):Yr(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 hC(e,t,n){let i;if(t==="viewport")i=sX(e,n);else if(t==="document")i=oX(ei(e));else if(Cr(t))i=cX(t,n);else{const o=Kj(e);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Of(i)}function qj(e,t){const n=ga(e);return n===t||!Cr(n)||Us(n)?!1:Rr(n).position==="fixed"||qj(n,t)}function uX(e,t){const n=t.get(e);if(n)return n;let i=jc(e,[],!1).filter(u=>Cr(u)&&tl(u)!=="body"),o=null;const s=Rr(e).position==="fixed";let c=s?ga(e):e;for(;Cr(c)&&!Us(c);){const u=Rr(c),f=Bb(c);!f&&u.position==="fixed"&&(o=null),(s?!f&&!o:!f&&u.position==="static"&&!!o&&lX.has(o.position)||nu(c)&&!f&&qj(e,c))?i=i.filter(p=>p!==c):o=u,c=ga(c)}return t.set(e,i),i}function dX(e){let{element:t,boundary:n,rootBoundary:i,strategy:o}=e;const c=[...n==="clippingAncestors"?dh(t)?[]:uX(t,this._c):[].concat(n),i],u=c[0],f=c.reduce((h,p)=>{const g=hC(t,p,o);return h.top=Gn(g.top,h.top),h.right=ya(g.right,h.right),h.bottom=ya(g.bottom,h.bottom),h.left=Gn(g.left,h.left),h},hC(t,u,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function fX(e){const{width:t,height:n}=Gj(e);return{width:t,height:n}}function hX(e,t,n){const i=Xr(t),o=ei(t),s=n==="fixed",c=mo(e,!0,s,t);let u={scrollLeft:0,scrollTop:0};const f=Yr(0);function h(){f.x=hh(o)}if(i||!i&&!s)if((tl(t)!=="body"||nu(o))&&(u=fh(t)),i){const S=mo(t,!0,s,t);f.x=S.x+t.clientLeft,f.y=S.y+t.clientTop}else o&&h();s&&!i&&o&&h();const p=o&&!i&&!s?$j(o,u):Yr(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 Py(e){return Rr(e).position==="static"}function pC(e,t){if(!Xr(e)||Rr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ei(e)===n&&(n=n.ownerDocument.body),n}function Zj(e,t){const n=Yn(e);if(dh(e))return n;if(!Xr(e)){let o=ga(e);for(;o&&!Us(o);){if(Cr(o)&&!Py(o))return o;o=ga(o)}return n}let i=pC(e,t);for(;i&&YW(i)&&Py(i);)i=pC(i,t);return i&&Us(i)&&Py(i)&&!Bb(i)?n:i||eX(e)||n}const pX=async function(e){const t=this.getOffsetParent||Zj,n=this.getDimensions,i=await n(e.floating);return{reference:hX(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function mX(e){return Rr(e).direction==="rtl"}const yX={convertOffsetParentRelativeRectToViewportRelativeRect:iX,getDocumentElement:ei,getClippingRect:dX,getOffsetParent:Zj,getElementRects:pX,getClientRects:aX,getDimensions:fX,getScale:Ls,isElement:Cr,isRTL:mX};function Yj(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function gX(e,t){let n=null,i;const o=ei(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:S}=h;if(u||t(),!b||!S)return;const w=Fd(g),A=Fd(o.clientWidth-(p+b)),R=Fd(o.clientHeight-(g+S)),N=Fd(p),C={rootMargin:-w+"px "+-A+"px "+-R+"px "+-N+"px",threshold:Gn(0,ya(1,f))||1};let I=!0;function _(k){const L=k[0].intersectionRatio;if(L!==f){if(!I)return c();L?c(!1,L):i=setTimeout(()=>{c(!1,1e-7)},1e3)}L===1&&!Yj(h,e.getBoundingClientRect())&&c(),I=!1}try{n=new IntersectionObserver(_,{...C,root:o.ownerDocument})}catch{n=new IntersectionObserver(_,C)}n.observe(e)}return c(!0),s}function vX(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=Vb(e),p=o||s?[...h?jc(h):[],...jc(t)]:[];p.forEach(N=>{o&&N.addEventListener("scroll",n,{passive:!0}),s&&N.addEventListener("resize",n)});const g=h&&u?gX(h,n):null;let b=-1,S=null;c&&(S=new ResizeObserver(N=>{let[x]=N;x&&x.target===h&&S&&(S.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var C;(C=S)==null||C.observe(t)})),n()}),h&&!f&&S.observe(h),S.observe(t));let w,A=f?mo(e):null;f&&R();function R(){const N=mo(e);A&&!Yj(A,N)&&n(),A=N,w=requestAnimationFrame(R)}return n(),()=>{var N;p.forEach(x=>{o&&x.removeEventListener("scroll",n),s&&x.removeEventListener("resize",n)}),g?.(),(N=S)==null||N.disconnect(),S=null,f&&cancelAnimationFrame(w)}}const bX=HW,EX=GW,xX=UW,SX=$W,AX=VW,mC=BW,wX=KW,TX=(e,t,n)=>{const i=new Map,o={platform:yX,...n},s={...o.platform,_c:i};return PW(e,t,{...o,platform:s})};var CX=typeof document<"u",RX=function(){},df=CX?E.useLayoutEffect:RX;function jf(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(!jf(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)&&!jf(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Wj(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function yC(e,t){const n=Wj(e);return Math.round(t*n)/n}function By(e){const t=E.useRef(e);return df(()=>{t.current=e}),t}function IX(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,S]=E.useState(i);jf(b,i)||S(i);const[w,A]=E.useState(null),[R,N]=E.useState(null),x=E.useCallback(K=>{K!==k.current&&(k.current=K,A(K))},[]),C=E.useCallback(K=>{K!==L.current&&(L.current=K,N(K))},[]),I=s||w,_=c||R,k=E.useRef(null),L=E.useRef(null),O=E.useRef(p),V=f!=null,$=By(f),H=By(o),ae=By(h),ce=E.useCallback(()=>{if(!k.current||!L.current)return;const K={placement:t,strategy:n,middleware:b};H.current&&(K.platform=H.current),TX(k.current,L.current,K).then(me=>{const Ee={...me,isPositioned:ae.current!==!1};X.current&&!jf(O.current,Ee)&&(O.current=Ee,xo.flushSync(()=>{g(Ee)}))})},[b,t,n,H,ae]);df(()=>{h===!1&&O.current.isPositioned&&(O.current.isPositioned=!1,g(K=>({...K,isPositioned:!1})))},[h]);const X=E.useRef(!1);df(()=>(X.current=!0,()=>{X.current=!1}),[]),df(()=>{if(I&&(k.current=I),_&&(L.current=_),I&&_){if($.current)return $.current(I,_,ce);ce()}},[I,_,ce,$,V]);const oe=E.useMemo(()=>({reference:k,floating:L,setReference:x,setFloating:C}),[x,C]),M=E.useMemo(()=>({reference:I,floating:_}),[I,_]),Y=E.useMemo(()=>{const K={position:n,left:0,top:0};if(!M.floating)return K;const me=yC(M.floating,p.x),Ee=yC(M.floating,p.y);return u?{...K,transform:"translate("+me+"px, "+Ee+"px)",...Wj(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 _X=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?mC({element:i.current,padding:o}).fn(n):{}:i?mC({element:i,padding:o}).fn(n):{}}}},NX=(e,t)=>({...bX(e),options:[e,t]}),kX=(e,t)=>({...EX(e),options:[e,t]}),LX=(e,t)=>({...wX(e),options:[e,t]}),DX=(e,t)=>({...xX(e),options:[e,t]}),OX=(e,t)=>({...SX(e),options:[e,t]}),jX=(e,t)=>({...AX(e),options:[e,t]}),zX=(e,t)=>({..._X(e),options:[e,t]});var MX="Arrow",Xj=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"})})});Xj.displayName=MX;var PX=Xj;function BX(e){const[t,n]=E.useState(void 0);return un(()=>{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 Fb="Popper",[Qj,Jj]=Kc(Fb),[UX,ez]=Qj(Fb),tz=e=>{const{__scopePopper:t,children:n}=e,[i,o]=E.useState(null);return y.jsx(UX,{scope:t,anchor:i,onAnchorChange:o,children:n})};tz.displayName=Fb;var nz="PopperAnchor",rz=E.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:i,...o}=e,s=ez(nz,n),c=E.useRef(null),u=Tt(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})});rz.displayName=nz;var Hb="PopperContent",[VX,FX]=Qj(Hb),iz=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:S="optimized",onPlaced:w,...A}=e,R=ez(Hb,n),[N,x]=E.useState(null),C=Tt(t,re=>x(re)),[I,_]=E.useState(null),k=BX(I),L=k?.width??0,O=k?.height??0,V=i+(s!=="center"?"-"+s:""),$=typeof p=="number"?p:{top:0,right:0,bottom:0,left:0,...p},H=Array.isArray(h)?h:[h],ae=H.length>0,ce={padding:$,boundary:H.filter(GX),altBoundary:ae},{refs:X,floatingStyles:oe,placement:M,isPositioned:Y,middlewareData:K}=IX({strategy:"fixed",placement:V,whileElementsMounted:(...re)=>vX(...re,{animationFrame:S==="always"}),elements:{reference:R.anchor},middleware:[NX({mainAxis:o+O,alignmentAxis:c}),f&&kX({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?LX():void 0,...ce}),f&&DX({...ce}),OX({...ce,apply:({elements:re,rects:Re,availableWidth:Ae,availableHeight:ze})=>{const{width:Ye,height:et}=Re.reference,en=re.floating.style;en.setProperty("--radix-popper-available-width",`${Ae}px`),en.setProperty("--radix-popper-available-height",`${ze}px`),en.setProperty("--radix-popper-anchor-width",`${Ye}px`),en.setProperty("--radix-popper-anchor-height",`${et}px`)}}),I&&zX({element:I,padding:u}),KX({arrowWidth:L,arrowHeight:O}),b&&jX({strategy:"referenceHidden",...ce})]}),[me,Ee]=sz(M),j=Tr(w);un(()=>{Y&&j?.()},[Y,j]);const P=K.arrow?.x,J=K.arrow?.y,te=K.arrow?.centerOffset!==0,[ue,ye]=E.useState();return un(()=>{N&&ye(window.getComputedStyle(N).zIndex)},[N]),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":[K.transformOrigin?.x,K.transformOrigin?.y].join(" "),...K.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:y.jsx(VX,{scope:n,placedSide:me,onArrowChange:_,arrowX:P,arrowY:J,shouldHideArrow:te,children:y.jsx(He.div,{"data-side":me,"data-align":Ee,...A,ref:C,style:{...A.style,animation:Y?void 0:"none"}})})})});iz.displayName=Hb;var az="PopperArrow",HX={top:"bottom",right:"left",bottom:"top",left:"right"},oz=E.forwardRef(function(t,n){const{__scopePopper:i,...o}=t,s=FX(az,i),c=HX[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(PX,{...o,ref:n,style:{...o.style,display:"block"}})})});oz.displayName=az;function GX(e){return e!==null}var KX=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]=sz(n),g={start:"0%",center:"50%",end:"100%"}[p],b=(o.arrow?.x??0)+u/2,S=(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:`${S}px`):h==="left"&&(w=`${i.floating.width+f}px`,A=c?g:`${S}px`),{data:{x:w,y:A}}}});function sz(e){const[t,n="center"]=e.split("-");return[t,n]}var $X=tz,qX=rz,ZX=iz,YX=oz;function WX(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 lz=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"}),XX="VisuallyHidden",Gb=E.forwardRef((e,t)=>y.jsx(He.span,{...e,ref:t,style:{...lz,...e.style}}));Gb.displayName=XX;var QX=[" ","Enter","ArrowUp","ArrowDown"],JX=[" ","Enter"],yo="Select",[ph,mh,eQ]=Bj(yo),[nl]=Kc(yo,[eQ,Jj]),yh=Jj(),[tQ,Aa]=nl(yo),[nQ,rQ]=nl(yo),cz=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:S,form:w}=e,A=yh(t),[R,N]=E.useState(null),[x,C]=E.useState(null),[I,_]=E.useState(!1),k=CW(h),[L,O]=bf({prop:i,defaultProp:o??!1,onChange:s,caller:yo}),[V,$]=bf({prop:c,defaultProp:u,onChange:f,caller:yo}),H=E.useRef(null),ae=R?w||!!R.closest("form"):!0,[ce,X]=E.useState(new Set),oe=Array.from(ce).map(M=>M.props.value).join(";");return y.jsx($X,{...A,children:y.jsxs(tQ,{required:S,scope:t,trigger:R,onTriggerChange:N,valueNode:x,onValueNodeChange:C,valueNodeHasChildren:I,onValueNodeHasChildrenChange:_,contentId:dr(),value:V,onValueChange:$,open:L,onOpenChange:O,dir:k,triggerPointerDownPosRef:H,disabled:b,children:[y.jsx(ph.Provider,{scope:t,children:y.jsx(nQ,{scope:e.__scopeSelect,onNativeOptionAdd:E.useCallback(M=>{X(Y=>new Set(Y).add(M))},[]),onNativeOptionRemove:E.useCallback(M=>{X(Y=>{const K=new Set(Y);return K.delete(M),K})},[]),children:n})}),ae?y.jsxs(Oz,{"aria-hidden":!0,required:S,tabIndex:-1,name:p,autoComplete:g,value:V,onChange:M=>$(M.target.value),disabled:b,form:w,children:[V===void 0?y.jsx("option",{value:""}):null,Array.from(ce)]},oe):null]})})};cz.displayName=yo;var uz="SelectTrigger",dz=E.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:i=!1,...o}=e,s=yh(n),c=Aa(uz,n),u=c.disabled||i,f=Tt(t,c.onTriggerChange),h=mh(n),p=E.useRef("touch"),[g,b,S]=zz(A=>{const R=h().filter(C=>!C.disabled),N=R.find(C=>C.value===c.value),x=Mz(R,A,N);x!==void 0&&c.onValueChange(x.value)}),w=A=>{u||(c.onOpenChange(!0),S()),A&&(c.triggerPointerDownPosRef.current={x:Math.round(A.pageX),y:Math.round(A.pageY)})};return y.jsx(qX,{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":jz(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 R=A.target;R.hasPointerCapture(A.pointerId)&&R.releasePointerCapture(A.pointerId),A.button===0&&A.ctrlKey===!1&&A.pointerType==="mouse"&&(w(A),A.preventDefault())}),onKeyDown:Xe(o.onKeyDown,A=>{const R=g.current!=="";!(A.ctrlKey||A.altKey||A.metaKey)&&A.key.length===1&&b(A.key),!(R&&A.key===" ")&&QX.includes(A.key)&&(w(),A.preventDefault())})})})});dz.displayName=uz;var fz="SelectValue",hz=E.forwardRef((e,t)=>{const{__scopeSelect:n,className:i,style:o,children:s,placeholder:c="",...u}=e,f=Aa(fz,n),{onValueNodeHasChildrenChange:h}=f,p=s!==void 0,g=Tt(t,f.onValueNodeChange);return un(()=>{h(p)},[h,p]),y.jsx(He.span,{...u,ref:g,style:{pointerEvents:"none"},children:jz(f.value)?y.jsx(y.Fragment,{children:c}):s})});hz.displayName=fz;var iQ="SelectIcon",pz=E.forwardRef((e,t)=>{const{__scopeSelect:n,children:i,...o}=e;return y.jsx(He.span,{"aria-hidden":!0,...o,ref:t,children:i||"▼"})});pz.displayName=iQ;var aQ="SelectPortal",mz=e=>y.jsx(Jf,{asChild:!0,...e});mz.displayName=aQ;var go="SelectContent",yz=E.forwardRef((e,t)=>{const n=Aa(go,e.__scopeSelect),[i,o]=E.useState();if(un(()=>{o(new DocumentFragment)},[]),!n.open){const s=i;return s?xo.createPortal(y.jsx(gz,{scope:e.__scopeSelect,children:y.jsx(ph.Slot,{scope:e.__scopeSelect,children:y.jsx("div",{children:e.children})})}),s):null}return y.jsx(vz,{...e,ref:t})});yz.displayName=go;var Er=10,[gz,wa]=nl(go),oQ="SelectContentImpl",sQ=Ms("SelectContent.RemoveScroll"),vz=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:S,sticky:w,hideWhenDetached:A,avoidCollisions:R,...N}=e,x=Aa(go,n),[C,I]=E.useState(null),[_,k]=E.useState(null),L=Tt(t,re=>I(re)),[O,V]=E.useState(null),[$,H]=E.useState(null),ae=mh(n),[ce,X]=E.useState(!1),oe=E.useRef(!1);E.useEffect(()=>{if(C)return K1(C)},[C]),z1();const M=E.useCallback(re=>{const[Re,...Ae]=ae().map(et=>et.ref.current),[ze]=Ae.slice(-1),Ye=document.activeElement;for(const et of re)if(et===Ye||(et?.scrollIntoView({block:"nearest"}),et===Re&&_&&(_.scrollTop=0),et===ze&&_&&(_.scrollTop=_.scrollHeight),et?.focus(),document.activeElement!==Ye))return},[ae,_]),Y=E.useCallback(()=>M([O,C]),[M,O,C]);E.useEffect(()=>{ce&&Y()},[ce,Y]);const{onOpenChange:K,triggerPointerDownPosRef:me}=x;E.useEffect(()=>{if(C){let re={x:0,y:0};const Re=ze=>{re={x:Math.abs(Math.round(ze.pageX)-(me.current?.x??0)),y:Math.abs(Math.round(ze.pageY)-(me.current?.y??0))}},Ae=ze=>{re.x<=10&&re.y<=10?ze.preventDefault():C.contains(ze.target)||K(!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})}}},[C,K,me]),E.useEffect(()=>{const re=()=>K(!1);return window.addEventListener("blur",re),window.addEventListener("resize",re),()=>{window.removeEventListener("blur",re),window.removeEventListener("resize",re)}},[K]);const[Ee,j]=zz(re=>{const Re=ae().filter(Ye=>!Ye.disabled),Ae=Re.find(Ye=>Ye.ref.current===document.activeElement),ze=Mz(Re,re,Ae);ze&&setTimeout(()=>ze.ref.current.focus())}),P=E.useCallback((re,Re,Ae)=>{const ze=!oe.current&&!Ae;(x.value!==void 0&&x.value===Re||ze)&&(V(re),ze&&(oe.current=!0))},[x.value]),J=E.useCallback(()=>C?.focus(),[C]),te=E.useCallback((re,Re,Ae)=>{const ze=!oe.current&&!Ae;(x.value!==void 0&&x.value===Re||ze)&&H(re)},[x.value]),ue=i==="popper"?Wg:bz,ye=ue===Wg?{side:u,sideOffset:f,align:h,alignOffset:p,arrowPadding:g,collisionBoundary:b,collisionPadding:S,sticky:w,hideWhenDetached:A,avoidCollisions:R}:{};return y.jsx(gz,{scope:n,content:C,viewport:_,onViewportChange:k,itemRefCallback:P,selectedItem:O,onItemLeave:J,itemTextRefCallback:te,focusSelectedItem:Y,selectedItemText:$,position:i,isPositioned:ce,searchRef:Ee,children:y.jsx(jv,{as:sQ,allowPinchZoom:!0,children:y.jsx(Ov,{asChild:!0,trapped:x.open,onMountAutoFocus:re=>{re.preventDefault()},onUnmountAutoFocus:Xe(o,re=>{x.trigger?.focus({preventScroll:!0}),re.preventDefault()}),children:y.jsx(Qf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:re=>re.preventDefault(),onDismiss:()=>x.onOpenChange(!1),children:y.jsx(ue,{role:"listbox",id:x.contentId,"data-state":x.open?"open":"closed",dir:x.dir,onContextMenu:re=>re.preventDefault(),...N,...ye,onPlaced:()=>X(!0),ref:L,style:{display:"flex",flexDirection:"column",outline:"none",...N.style},onKeyDown:Xe(N.onKeyDown,re=>{const Re=re.ctrlKey||re.altKey||re.metaKey;if(re.key==="Tab"&&re.preventDefault(),!Re&&re.key.length===1&&j(re.key),["ArrowUp","ArrowDown","Home","End"].includes(re.key)){let ze=ae().filter(Ye=>!Ye.disabled).map(Ye=>Ye.ref.current);if(["ArrowUp","End"].includes(re.key)&&(ze=ze.slice().reverse()),["ArrowUp","ArrowDown"].includes(re.key)){const Ye=re.target,et=ze.indexOf(Ye);ze=ze.slice(et+1)}setTimeout(()=>M(ze)),re.preventDefault()}})})})})})})});vz.displayName=oQ;var lQ="SelectItemAlignedPosition",bz=E.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:i,...o}=e,s=Aa(go,n),c=wa(go,n),[u,f]=E.useState(null),[h,p]=E.useState(null),g=Tt(t,L=>p(L)),b=mh(n),S=E.useRef(!1),w=E.useRef(!0),{viewport:A,selectedItem:R,selectedItemText:N,focusSelectedItem:x}=c,C=E.useCallback(()=>{if(s.trigger&&s.valueNode&&u&&h&&A&&R&&N){const L=s.trigger.getBoundingClientRect(),O=h.getBoundingClientRect(),V=s.valueNode.getBoundingClientRect(),$=N.getBoundingClientRect();if(s.dir!=="rtl"){const Ye=$.left-O.left,et=V.left-Ye,en=L.left-et,Yt=L.width+en,kr=Math.max(Yt,O.width),ni=window.innerWidth-Er,Na=aC(et,[Er,Math.max(Er,ni-kr)]);u.style.minWidth=Yt+"px",u.style.left=Na+"px"}else{const Ye=O.right-$.right,et=window.innerWidth-V.right-Ye,en=window.innerWidth-L.right-et,Yt=L.width+en,kr=Math.max(Yt,O.width),ni=window.innerWidth-Er,Na=aC(et,[Er,Math.max(Er,ni-kr)]);u.style.minWidth=Yt+"px",u.style.right=Na+"px"}const H=b(),ae=window.innerHeight-Er*2,ce=A.scrollHeight,X=window.getComputedStyle(h),oe=parseInt(X.borderTopWidth,10),M=parseInt(X.paddingTop,10),Y=parseInt(X.borderBottomWidth,10),K=parseInt(X.paddingBottom,10),me=oe+M+ce+K+Y,Ee=Math.min(R.offsetHeight*5,me),j=window.getComputedStyle(A),P=parseInt(j.paddingTop,10),J=parseInt(j.paddingBottom,10),te=L.top+L.height/2-Er,ue=ae-te,ye=R.offsetHeight/2,re=R.offsetTop+ye,Re=oe+M+re,Ae=me-Re;if(Re<=te){const Ye=H.length>0&&R===H[H.length-1].ref.current;u.style.bottom="0px";const et=h.clientHeight-A.offsetTop-A.offsetHeight,en=Math.max(ue,ye+(Ye?J:0)+et+Y),Yt=Re+en;u.style.height=Yt+"px"}else{const Ye=H.length>0&&R===H[0].ref.current;u.style.top="0px";const en=Math.max(te,oe+A.offsetTop+(Ye?P:0)+ye)+Ae;u.style.height=en+"px",A.scrollTop=Re-te+A.offsetTop}u.style.margin=`${Er}px 0`,u.style.minHeight=Ee+"px",u.style.maxHeight=ae+"px",i?.(),requestAnimationFrame(()=>S.current=!0)}},[b,s.trigger,s.valueNode,u,h,A,R,N,s.dir,i]);un(()=>C(),[C]);const[I,_]=E.useState();un(()=>{h&&_(window.getComputedStyle(h).zIndex)},[h]);const k=E.useCallback(L=>{L&&w.current===!0&&(C(),x?.(),w.current=!1)},[C,x]);return y.jsx(uQ,{scope:n,contentWrapper:u,shouldExpandOnScrollRef:S,onScrollButtonChange:k,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}})})})});bz.displayName=lQ;var cQ="SelectPopperPosition",Wg=E.forwardRef((e,t)=>{const{__scopeSelect:n,align:i="start",collisionPadding:o=Er,...s}=e,c=yh(n);return y.jsx(ZX,{...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)"}})});Wg.displayName=cQ;var[uQ,Kb]=nl(go,{}),Xg="SelectViewport",Ez=E.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:i,...o}=e,s=wa(Xg,n),c=Kb(Xg,n),u=Tt(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(ph.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 S=Math.abs(f.current-p.scrollTop);if(S>0){const w=window.innerHeight-Er*2,A=parseFloat(g.style.minHeight),R=parseFloat(g.style.height),N=Math.max(A,R);if(N<w){const x=N+S,C=Math.min(w,x),I=x-C;g.style.height=C+"px",g.style.bottom==="0px"&&(p.scrollTop=I>0?I:0,g.style.justifyContent="flex-end")}}}f.current=p.scrollTop})})})]})});Ez.displayName=Xg;var xz="SelectGroup",[dQ,fQ]=nl(xz),Sz=E.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,o=dr();return y.jsx(dQ,{scope:n,id:o,children:y.jsx(He.div,{role:"group","aria-labelledby":o,...i,ref:t})})});Sz.displayName=xz;var Az="SelectLabel",wz=E.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,o=fQ(Az,n);return y.jsx(He.div,{id:o.id,...i,ref:t})});wz.displayName=Az;var zf="SelectItem",[hQ,Tz]=nl(zf),Cz=E.forwardRef((e,t)=>{const{__scopeSelect:n,value:i,disabled:o=!1,textValue:s,...c}=e,u=Aa(zf,n),f=wa(zf,n),h=u.value===i,[p,g]=E.useState(s??""),[b,S]=E.useState(!1),w=Tt(t,x=>f.itemRefCallback?.(x,i,o)),A=dr(),R=E.useRef("touch"),N=()=>{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(hQ,{scope:n,value:i,disabled:o,textId:A,isSelected:h,onItemTextChange:E.useCallback(x=>{g(C=>C||(x?.textContent??"").trim())},[]),children:y.jsx(ph.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,()=>S(!0)),onBlur:Xe(c.onBlur,()=>S(!1)),onClick:Xe(c.onClick,()=>{R.current!=="mouse"&&N()}),onPointerUp:Xe(c.onPointerUp,()=>{R.current==="mouse"&&N()}),onPointerDown:Xe(c.onPointerDown,x=>{R.current=x.pointerType}),onPointerMove:Xe(c.onPointerMove,x=>{R.current=x.pointerType,o?f.onItemLeave?.():R.current==="mouse"&&x.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Xe(c.onPointerLeave,x=>{x.currentTarget===document.activeElement&&f.onItemLeave?.()}),onKeyDown:Xe(c.onKeyDown,x=>{f.searchRef?.current!==""&&x.key===" "||(JX.includes(x.key)&&N(),x.key===" "&&x.preventDefault())})})})})});Cz.displayName=zf;var uc="SelectItemText",Rz=E.forwardRef((e,t)=>{const{__scopeSelect:n,className:i,style:o,...s}=e,c=Aa(uc,n),u=wa(uc,n),f=Tz(uc,n),h=rQ(uc,n),[p,g]=E.useState(null),b=Tt(t,N=>g(N),f.onItemTextChange,N=>u.itemTextRefCallback?.(N,f.value,f.disabled)),S=p?.textContent,w=E.useMemo(()=>y.jsx("option",{value:f.value,disabled:f.disabled,children:S},f.value),[f.disabled,f.value,S]),{onNativeOptionAdd:A,onNativeOptionRemove:R}=h;return un(()=>(A(w),()=>R(w)),[A,R,w]),y.jsxs(y.Fragment,{children:[y.jsx(He.span,{id:f.textId,...s,ref:b}),f.isSelected&&c.valueNode&&!c.valueNodeHasChildren?xo.createPortal(s.children,c.valueNode):null]})});Rz.displayName=uc;var Iz="SelectItemIndicator",_z=E.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e;return Tz(Iz,n).isSelected?y.jsx(He.span,{"aria-hidden":!0,...i,ref:t}):null});_z.displayName=Iz;var Qg="SelectScrollUpButton",Nz=E.forwardRef((e,t)=>{const n=wa(Qg,e.__scopeSelect),i=Kb(Qg,e.__scopeSelect),[o,s]=E.useState(!1),c=Tt(t,i.onScrollButtonChange);return un(()=>{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(Lz,{...e,ref:c,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop-f.offsetHeight)}}):null});Nz.displayName=Qg;var Jg="SelectScrollDownButton",kz=E.forwardRef((e,t)=>{const n=wa(Jg,e.__scopeSelect),i=Kb(Jg,e.__scopeSelect),[o,s]=E.useState(!1),c=Tt(t,i.onScrollButtonChange);return un(()=>{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(Lz,{...e,ref:c,onAutoScroll:()=>{const{viewport:u,selectedItem:f}=n;u&&f&&(u.scrollTop=u.scrollTop+f.offsetHeight)}}):null});kz.displayName=Jg;var Lz=E.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:i,...o}=e,s=wa("SelectScrollButton",n),c=E.useRef(null),u=mh(n),f=E.useCallback(()=>{c.current!==null&&(window.clearInterval(c.current),c.current=null)},[]);return E.useEffect(()=>()=>f(),[f]),un(()=>{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()})})}),pQ="SelectSeparator",Dz=E.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e;return y.jsx(He.div,{"aria-hidden":!0,...i,ref:t})});Dz.displayName=pQ;var ev="SelectArrow",mQ=E.forwardRef((e,t)=>{const{__scopeSelect:n,...i}=e,o=yh(n),s=Aa(ev,n),c=wa(ev,n);return s.open&&c.position==="popper"?y.jsx(YX,{...o,...i,ref:t}):null});mQ.displayName=ev;var yQ="SelectBubbleInput",Oz=E.forwardRef(({__scopeSelect:e,value:t,...n},i)=>{const o=E.useRef(null),s=Tt(i,o),c=WX(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:{...lz,...n.style},ref:s,defaultValue:t})});Oz.displayName=yQ;function jz(e){return e===""||e===void 0}function zz(e){const t=Tr(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 Mz(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=gQ(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 gQ(e,t){return e.map((n,i)=>e[(t+i)%e.length])}var vQ=cz,bQ=dz,EQ=hz,xQ=pz,SQ=mz,AQ=yz,wQ=Ez,TQ=Sz,CQ=wz,RQ=Cz,IQ=Rz,_Q=_z,NQ=Nz,kQ=kz,LQ=Dz;let DQ=function(e){return e.POPPER="popper",e.ITEM_ALIGNED="item-aligned",e}({});const OQ=vQ,jQ=TQ,zQ=EQ,MQ=({validationStyleEnabled:e=!1,className:t,children:n,...i})=>y.jsxs(bQ,{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(xQ,{asChild:!0,children:y.jsx(jG,{className:"size-4 opacity-50"})})]}),Pz=({className:e,...t})=>y.jsx(NQ,{className:fe("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(DG,{})}),Bz=({className:e,...t})=>y.jsx(kQ,{className:fe("flex cursor-default items-center justify-center py-1",e),...t,children:y.jsx(R1,{})}),PQ=({className:e,children:t,position:n=DQ.POPPER,...i})=>y.jsx(SQ,{children:y.jsxs(AQ,{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(Pz,{}),y.jsx(wQ,{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(Bz,{})]})}),BQ=({className:e,...t})=>y.jsx(CQ,{className:fe("px-1 py-0.5 font-semibold text-sm",e),...t}),UQ=({className:e,children:t,...n})=>y.jsxs(RQ,{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(_Q,{children:y.jsx(Zs,{className:"size-4"})})}),y.jsx(IQ,{children:t})]}),VQ=({className:e,...t})=>y.jsx(LQ,{className:fe("-mx-1 my-1 h-px bg-red-300",e),...t}),Te=OQ;Te.Group=jQ;Te.Value=zQ;Te.Trigger=MQ;Te.ScrollUpButton=Pz;Te.ScrollDownButton=Bz;Te.Content=PQ;Te.Label=BQ;Te.Item=UQ;Te.Separator=VQ;const FQ=e=>e?.getAttribute("aria-selected")==="true",Uz=(e,t=FQ,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 R=new MutationObserver(N=>{for(const x of N)if(x.type==="attributes"&&x.attributeName==="aria-selected"){f();break}});R.observe(A,{attributes:!0,attributeFilter:["aria-selected"]}),h.push(R)}});const p=[],g=A=>{if(!A)return;const R=new ResizeObserver(()=>{f()});R.observe(A),p.push(R)},b=e.current.find(t)??null;b&&g(b),s&&g(s);const S=A=>{c(A.currentTarget)},w=()=>{c(null)};return n&&e.current.forEach(A=>{A?.addEventListener("mouseenter",S,{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",S),A?.removeEventListener("mouseleave",w)})}},[e,t,s,u]),{choiceIndicatorPosition:i,calculatePosition:f}},HQ=[{content:"Off",value:!1},{content:"On",value:!0}];let Ft=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 GQ=mn("flex w-fit flex-row gap-2 rounded-full border-[1.5px] p-[1.5px]",{variants:{color:{[Ft.PRIMARY]:"border-primary text-primary",[Ft.SECONDARY]:"border-secondary text-secondary",[Ft.DESTRUCTIVE]:"border-destructive bg-destructive text-destructive",[Ft.NEUTRAL]:"border-neutral text-neutral",[Ft.LIGHT]:"border-white text-white",[Ft.DARK]:"border-neutral-800 text-neutral-800",[Ft.TEXT]:"border-text text-text"}},defaultVariants:{color:Ft.PRIMARY}});let Ti=function(e){return e.SM="sm",e.MD="md",e.LG="lg",e}({});const KQ=mn("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:{[Ti.SM]:"px-2 py-1 text-xs",[Ti.MD]:"p-2 text-sm",[Ti.LG]:"p-4 text-base"}},defaultVariants:{size:Ti.MD}}),$Q=mn("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:{[Ft.PRIMARY]:"bg-primary aria-selected:text-text",[Ft.SECONDARY]:"bg-secondary aria-selected:text-text",[Ft.DESTRUCTIVE]:"bg-destructive aria-selected:text-text",[Ft.NEUTRAL]:"bg-neutral aria-selected:text-white",[Ft.LIGHT]:"bg-white aria-selected:text-black",[Ft.DARK]:"bg-neutral-800 aria-selected:text-white",[Ft.TEXT]:"bg-text aria-selected:text-text-opposite"}}}),ru=({choices:e=HQ,value:t,defaultValue:n,onChange:i,color:o=Ft.PRIMARY,size:s=Ti.MD,className:c})=>{const[u,f]=E.useState(t??n??e[0].value),h=E.useRef([]),p=E.useRef(null),{choiceIndicatorPosition:g}=Uz(h),b=S=>{f(S),i?.(S)};return E.useEffect(()=>{t!==void 0&&f(t)},[t]),y.jsx("div",{className:GQ({color:o,className:c}),role:"tablist",children:y.jsxs("div",{className:"relative flex size-full flex-row items-center justify-center",children:[e.map((S,w)=>{const{content:A,value:R,...N}=S,x=typeof R=="string"||typeof R=="number",C=R===u;return E.createElement("button",{...N,className:fe(KQ({size:s})),key:x?R:w,role:"tab",onClick:()=>b(R),"aria-selected":C,disabled:C,ref:I=>{h.current[w]=I}},A)}),g&&y.jsx("div",{className:fe($Q({color:o})),style:g,ref:p})]})})},gC=(e,t,n)=>{if(e&&"reportValidity"in e){const i=ge(n,t);e.setCustomValidity(i&&i.message||""),e.reportValidity()}},tv=(e,t)=>{for(const n in t.fields){const i=t.fields[n];i&&i.ref&&"reportValidity"in i.ref?gC(i.ref,n,e):i&&i.refs&&i.refs.forEach(o=>gC(o,n,e))}},vC=(e,t)=>{t.shouldUseNativeValidation&&tv(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(qQ(t.names||Object.keys(e),i)){const c=Object.assign({},ge(n,i));dt(c,"root",s),dt(n,i,c)}else dt(n,i,s)}return n},qQ=(e,t)=>{const n=bC(t);return e.some(i=>bC(i).match(`^${n}\\.\\d+`))};function bC(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 Ds extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class Vz extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const Fz={};function vo(e){return Fz}function ZQ(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 nv(e,t){return typeof t=="bigint"?t.toString():t}function $b(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function qb(e){return e==null}function Zb(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}const EC=Symbol("evaluating");function yt(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==EC)return i===void 0&&(i=EC,i=n()),i},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function wo(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function To(...e){const t={};for(const n of e){const i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}function xC(e){return JSON.stringify(e)}const Hz="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Mf(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const YQ=$b(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{const e=Function;return new e(""),!0}catch{return!1}});function zc(e){if(Mf(e)===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(Mf(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function Gz(e){return zc(e)?{...e}:Array.isArray(e)?[...e]:e}const WQ=new Set(["string","number","symbol"]);function gh(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ta(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 XQ(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}function QQ(e,t){const n=e._zod.def,i=To(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 wo(this,"shape",o),o},checks:[]});return Ta(e,i)}function JQ(e,t){const n=e._zod.def,i=To(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 wo(this,"shape",o),o},checks:[]});return Ta(e,i)}function eJ(e,t){if(!zc(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=To(e._zod.def,{get shape(){const s={...e._zod.def.shape,...t};return wo(this,"shape",s),s},checks:[]});return Ta(e,o)}function tJ(e,t){if(!zc(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 wo(this,"shape",i),i},checks:e._zod.def.checks};return Ta(e,n)}function nJ(e,t){const n=To(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t._zod.def.shape};return wo(this,"shape",i),i},get catchall(){return t._zod.def.catchall},checks:[]});return Ta(e,n)}function rJ(e,t,n){const i=To(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 wo(this,"shape",s),s},checks:[]});return Ta(t,i)}function iJ(e,t,n){const i=To(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 wo(this,"shape",s),s},checks:[]});return Ta(t,i)}function Rs(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 Kz(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}function Hd(e){return typeof e=="string"?e:e?.message}function bo(e,t,n){const i={...e,path:e.path??[]};if(!e.message){const o=Hd(e.inst?._zod.def?.error?.(e))??Hd(t?.error?.(e))??Hd(n.customError?.(e))??Hd(n.localeError?.(e))??"Invalid input";i.message=o}return delete i.inst,delete i.continue,t?.reportInput||delete i.input,i}function Yb(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function Mc(...e){const[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}const $z=(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,nv,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},Wb=de("$ZodError",$z),vh=de("$ZodError",$z,{Parent:Error});function aJ(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 oJ(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 bh=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 Ds;if(c.issues.length){const u=new(o?.Err??e)(c.issues.map(f=>bo(f,s,vo())));throw Hz(u,o?.callee),u}return c.value},sJ=bh(vh),Eh=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=>bo(f,s,vo())));throw Hz(u,o?.callee),u}return c.value},lJ=Eh(vh),xh=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 Ds;return s.issues.length?{success:!1,error:new(e??Wb)(s.issues.map(c=>bo(c,o,vo())))}:{success:!0,data:s.value}},cJ=xh(vh),Sh=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=>bo(c,o,vo())))}:{success:!0,data:s.value}},uJ=Sh(vh),dJ=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return bh(e)(t,n,o)},fJ=e=>(t,n,i)=>bh(e)(t,n,i),hJ=e=>async(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Eh(e)(t,n,o)},pJ=e=>async(t,n,i)=>Eh(e)(t,n,i),mJ=e=>(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return xh(e)(t,n,o)},yJ=e=>(t,n,i)=>xh(e)(t,n,i),gJ=e=>async(t,n,i)=>{const o=i?Object.assign(i,{direction:"backward"}):{direction:"backward"};return Sh(e)(t,n,o)},vJ=e=>async(t,n,i)=>Sh(e)(t,n,i),bJ=/^[cC][^\s-]{8,}$/,EJ=/^[0-9a-z]+$/,xJ=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,SJ=/^[0-9a-vA-V]{20}$/,AJ=/^[A-Za-z0-9]{27}$/,wJ=/^[a-zA-Z0-9_-]{21}$/,TJ=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,CJ=/^([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})$/,SC=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)$/,RJ=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,IJ="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function _J(){return new RegExp(IJ,"u")}const NJ=/^(?:(?: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])$/,kJ=/^(([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}|:))$/,LJ=/^((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])$/,DJ=/^(([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])$/,OJ=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,qz=/^[A-Za-z0-9_-]*$/,jJ=/^(?=.{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])?)*\.?$/,zJ=/^\+(?:[0-9]){6,14}[0-9]$/,Zz="(?:(?:\\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])))",MJ=new RegExp(`^${Zz}$`);function Yz(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 PJ(e){return new RegExp(`^${Yz(e)}$`)}function BJ(e){const t=Yz({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(`^${Zz}T(?:${i})$`)}const UJ=e=>{const t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},VJ=/^[^A-Z]*$/,FJ=/^[^a-z]*$/,ti=de("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),HJ=de("$ZodCheckMaxLength",(e,t)=>{var n;ti.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!qb(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=Yb(o);i.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),GJ=de("$ZodCheckMinLength",(e,t)=>{var n;ti.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!qb(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=Yb(o);i.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),KJ=de("$ZodCheckLengthEquals",(e,t)=>{var n;ti.init(e,t),(n=e._zod.def).when??(n.when=i=>{const o=i.value;return!qb(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=Yb(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})}}),Ah=de("$ZodCheckStringFormat",(e,t)=>{var n,i;ti.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=()=>{})}),$J=de("$ZodCheckRegex",(e,t)=>{Ah.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})}}),qJ=de("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=VJ),Ah.init(e,t)}),ZJ=de("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=FJ),Ah.init(e,t)}),YJ=de("$ZodCheckIncludes",(e,t)=>{ti.init(e,t);const n=gh(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})}}),WJ=de("$ZodCheckStartsWith",(e,t)=>{ti.init(e,t);const n=new RegExp(`^${gh(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})}}),XJ=de("$ZodCheckEndsWith",(e,t)=>{ti.init(e,t);const n=new RegExp(`.*${gh(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})}}),QJ=de("$ZodCheckOverwrite",(e,t)=>{ti.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class JJ{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(`
273
- `).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(`
274
- `))}}const eee={major:4,minor:1,patch:12},Zt=de("$ZodType",(e,t)=>{var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=eee;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=Rs(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,S=g._zod.check(c);if(S instanceof Promise&&f?.async===!1)throw new Ds;if(p||S instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await S,c.issues.length!==b&&(h||(h=Rs(c,b)))});else{if(c.issues.length===b)continue;h||(h=Rs(c,b))}}return p?p.then(()=>c):c},s=(c,u,f)=>{if(Rs(c))return c.aborted=!0,c;const h=o(u,i,f);if(h instanceof Promise){if(f.async===!1)throw new Ds;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 Ds;return f.then(h=>o(h,i,u))}return o(f,i,u)}}e["~standard"]={validate:o=>{try{const s=cJ(e,o);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return uJ(e,o).then(c=>c.success?{value:c.data}:{issues:c.error?.issues})}},vendor:"zod",version:1}}),Xb=de("$ZodString",(e,t)=>{Zt.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??UJ(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}}),St=de("$ZodStringFormat",(e,t)=>{Ah.init(e,t),Xb.init(e,t)}),tee=de("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=CJ),St.init(e,t)}),nee=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=SC(i))}else t.pattern??(t.pattern=SC());St.init(e,t)}),ree=de("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=RJ),St.init(e,t)}),iee=de("$ZodURL",(e,t)=>{St.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:jJ.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})}}}),aee=de("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=_J()),St.init(e,t)}),oee=de("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=wJ),St.init(e,t)}),see=de("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=bJ),St.init(e,t)}),lee=de("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=EJ),St.init(e,t)}),cee=de("$ZodULID",(e,t)=>{t.pattern??(t.pattern=xJ),St.init(e,t)}),uee=de("$ZodXID",(e,t)=>{t.pattern??(t.pattern=SJ),St.init(e,t)}),dee=de("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=AJ),St.init(e,t)}),fee=de("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=BJ(t)),St.init(e,t)}),hee=de("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=MJ),St.init(e,t)}),pee=de("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=PJ(t)),St.init(e,t)}),mee=de("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=TJ),St.init(e,t)}),yee=de("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=NJ),St.init(e,t),e._zod.onattach.push(n=>{const i=n._zod.bag;i.format="ipv4"})}),gee=de("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=kJ),St.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})}}}),vee=de("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=LJ),St.init(e,t)}),bee=de("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=DJ),St.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 Wz(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const Eee=de("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=OJ),St.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64"}),e._zod.check=n=>{Wz(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function xee(e){if(!qz.test(e))return!1;const t=e.replace(/[-_]/g,i=>i==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return Wz(n)}const See=de("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=qz),St.init(e,t),e._zod.onattach.push(n=>{n._zod.bag.contentEncoding="base64url"}),e._zod.check=n=>{xee(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),Aee=de("$ZodE164",(e,t)=>{t.pattern??(t.pattern=zJ),St.init(e,t)});function wee(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 Tee=de("$ZodJWT",(e,t)=>{St.init(e,t),e._zod.check=n=>{wee(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),Cee=de("$ZodUnknown",(e,t)=>{Zt.init(e,t),e._zod.parse=n=>n}),Ree=de("$ZodNever",(e,t)=>{Zt.init(e,t),e._zod.parse=(n,i)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function AC(e,t,n){e.issues.length&&t.issues.push(...Kz(n,e.issues)),t.value[n]=e.value}const Iee=de("$ZodArray",(e,t)=>{Zt.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=>AC(h,n,c))):AC(f,n,c)}return s.length?Promise.all(s).then(()=>n):n}});function Pf(e,t,n,i){e.issues.length&&t.issues.push(...Kz(n,e.issues)),e.value===void 0?n in i&&(t.value[n]=void 0):t.value[n]=e.value}function Xz(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=XQ(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function Qz(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=>Pf(b,n,p,t))):Pf(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 _ee=de("$ZodObject",(e,t)=>{if(Zt.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=$b(()=>Xz(t));yt(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=Mf,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=>Pf(A,u,b,h))):Pf(w,u,b,h)}return s?Qz(p,h,u,f,i.value,e):p.length?Promise.all(p).then(()=>u):u}}),Nee=de("$ZodObjectJIT",(e,t)=>{_ee.init(e,t);const n=e._zod.parse,i=$b(()=>Xz(t)),o=b=>{const S=new JJ(["shape","payload","ctx"]),w=i.value,A=C=>{const I=xC(C);return`shape[${I}]._zod.run({ value: input[${I}], issues: [] }, ctx)`};S.write("const input = payload.value;");const R=Object.create(null);let N=0;for(const C of w.keys)R[C]=`key_${N++}`;S.write("const newResult = {};");for(const C of w.keys){const I=R[C],_=xC(C);S.write(`const ${I} = ${A(C)};`),S.write(`
275
- if (${I}.issues.length) {
276
- payload.issues = payload.issues.concat(${I}.issues.map(iss => ({
277
- ...iss,
278
- path: iss.path ? [${_}, ...iss.path] : [${_}]
279
- })));
280
- }
281
-
282
-
283
- if (${I}.value === undefined) {
284
- if (${_} in input) {
285
- newResult[${_}] = undefined;
286
- }
287
- } else {
288
- newResult[${_}] = ${I}.value;
289
- }
290
-
291
- `)}S.write("payload.value = newResult;"),S.write("return payload;");const x=S.compile();return(C,I)=>x(b,C,I)};let s;const c=Mf,u=!Fz.jitless,h=u&&YQ.value,p=t.catchall;let g;e._zod.parse=(b,S)=>{g??(g=i.value);const w=b.value;return c(w)?u&&h&&S?.async===!1&&S.jitless!==!0?(s||(s=o(t.shape)),b=s(b,S),p?Qz([],w,b,S,g,e):b):n(b,S):(b.issues.push({expected:"object",code:"invalid_type",input:w,inst:e}),b)}});function wC(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=>!Rs(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=>bo(c,i,vo())))}),t)}const kee=de("$ZodUnion",(e,t)=>{Zt.init(e,t),yt(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),yt(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),yt(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),yt(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=>Zb(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=>wC(f,o,e,s)):wC(u,o,e,s)}}),Lee=de("$ZodIntersection",(e,t)=>{Zt.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])=>TC(n,f,h)):TC(n,s,c)}});function rv(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(zc(e)&&zc(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=rv(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=rv(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 TC(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Rs(e))return e;const i=rv(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 Dee=de("$ZodEnum",(e,t)=>{Zt.init(e,t);const n=ZQ(t.entries),i=new Set(n);e._zod.values=i,e._zod.pattern=new RegExp(`^(${n.filter(o=>WQ.has(typeof o)).map(o=>typeof o=="string"?gh(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}}),Oee=de("$ZodTransform",(e,t)=>{Zt.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Vz(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 Ds;return n.value=o,n}});function CC(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const jee=de("$ZodOptional",(e,t)=>{Zt.init(e,t),e._zod.optin="optional",e._zod.optout="optional",yt(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),yt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Zb(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=>CC(s,n.value)):CC(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,i)}}),zee=de("$ZodNullable",(e,t)=>{Zt.init(e,t),yt(e._zod,"optin",()=>t.innerType._zod.optin),yt(e._zod,"optout",()=>t.innerType._zod.optout),yt(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${Zb(n.source)}|null)$`):void 0}),yt(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)}),Mee=de("$ZodDefault",(e,t)=>{Zt.init(e,t),e._zod.optin="optional",yt(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=>RC(s,t)):RC(o,t)}});function RC(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Pee=de("$ZodPrefault",(e,t)=>{Zt.init(e,t),e._zod.optin="optional",yt(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))}),Bee=de("$ZodNonOptional",(e,t)=>{Zt.init(e,t),yt(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=>IC(s,e)):IC(o,e)}});function IC(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Uee=de("$ZodCatch",(e,t)=>{Zt.init(e,t),yt(e._zod,"optin",()=>t.innerType._zod.optin),yt(e._zod,"optout",()=>t.innerType._zod.optout),yt(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=>bo(c,i,vo()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(s=>bo(s,i,vo()))},input:n.value}),n.issues=[]),n)}}),Vee=de("$ZodPipe",(e,t)=>{Zt.init(e,t),yt(e._zod,"values",()=>t.in._zod.values),yt(e._zod,"optin",()=>t.in._zod.optin),yt(e._zod,"optout",()=>t.out._zod.optout),yt(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=>Gd(c,t.in,i)):Gd(s,t.in,i)}const o=t.in._zod.run(n,i);return o instanceof Promise?o.then(s=>Gd(s,t.out,i)):Gd(o,t.out,i)}});function Gd(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Fee=de("$ZodReadonly",(e,t)=>{Zt.init(e,t),yt(e._zod,"propValues",()=>t.innerType._zod.propValues),yt(e._zod,"values",()=>t.innerType._zod.values),yt(e._zod,"optin",()=>t.innerType._zod.optin),yt(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(_C):_C(o)}});function _C(e){return e.value=Object.freeze(e.value),e}const Hee=de("$ZodCustom",(e,t)=>{ti.init(e,t),Zt.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=>NC(s,n,i,e));NC(o,n,i,e)}});function NC(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(Mc(o))}}class Gee{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 Kee(){return new Gee}const Kd=Kee();function $ee(e,t){return new e({type:"string",...je(t)})}function qee(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...je(t)})}function kC(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...je(t)})}function Zee(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...je(t)})}function Yee(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...je(t)})}function Wee(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...je(t)})}function Xee(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...je(t)})}function Qee(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...je(t)})}function Jee(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...je(t)})}function ete(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...je(t)})}function tte(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...je(t)})}function nte(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...je(t)})}function rte(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...je(t)})}function ite(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...je(t)})}function ate(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...je(t)})}function ote(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...je(t)})}function ste(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...je(t)})}function lte(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...je(t)})}function cte(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...je(t)})}function ute(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...je(t)})}function dte(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...je(t)})}function fte(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...je(t)})}function hte(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...je(t)})}function pte(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...je(t)})}function mte(e,t){return new e({type:"string",format:"date",check:"string_format",...je(t)})}function yte(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...je(t)})}function gte(e,t){return new e({type:"string",format:"duration",check:"string_format",...je(t)})}function vte(e){return new e({type:"unknown"})}function bte(e,t){return new e({type:"never",...je(t)})}function Jz(e,t){return new HJ({check:"max_length",...je(t),maximum:e})}function Bf(e,t){return new GJ({check:"min_length",...je(t),minimum:e})}function eM(e,t){return new KJ({check:"length_equals",...je(t),length:e})}function Ete(e,t){return new $J({check:"string_format",format:"regex",...je(t),pattern:e})}function xte(e){return new qJ({check:"string_format",format:"lowercase",...je(e)})}function Ste(e){return new ZJ({check:"string_format",format:"uppercase",...je(e)})}function Ate(e,t){return new YJ({check:"string_format",format:"includes",...je(t),includes:e})}function wte(e,t){return new WJ({check:"string_format",format:"starts_with",...je(t),prefix:e})}function Tte(e,t){return new XJ({check:"string_format",format:"ends_with",...je(t),suffix:e})}function iu(e){return new QJ({check:"overwrite",tx:e})}function Cte(e){return iu(t=>t.normalize(e))}function Rte(){return iu(e=>e.trim())}function Ite(){return iu(e=>e.toLowerCase())}function _te(){return iu(e=>e.toUpperCase())}function Nte(e,t,n){return new e({type:"array",element:t,...je(n)})}function kte(e,t,n){return new e({type:"custom",check:"custom",fn:t,...je(n)})}function Lte(e){const t=Dte(n=>(n.addIssue=i=>{if(typeof i=="string")n.issues.push(Mc(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(Mc(o))}},e(n.value,n)));return t}function Dte(e,t){const n=new ti({check:"custom",...je(t)});return n._zod.check=e,n}function LC(e,t){try{var n=e()}catch(i){return t(i)}return n&&n.then?n.then(void 0,t):n}function Ote(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]=Rb(c,t,n,o,h?[].concat(h,i.message):i.message)}e.shift()}return n}function jte(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]=Rb(c,t,n,o,h?[].concat(h,i.message):i.message)}e.shift()}return n}function zte(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(LC(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](i,t)).then(function(c){return s.shouldUseNativeValidation&&tv({},s),{errors:{},values:n.raw?Object.assign({},i):c}})},function(c){if(function(u){return Array.isArray(u?.issues)}(c))return{values:{},errors:vC(Ote(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(LC(function(){return Promise.resolve((n.mode==="sync"?sJ:lJ)(e,i,t)).then(function(c){return s.shouldUseNativeValidation&&tv({},s),{errors:{},values:n.raw?Object.assign({},i):c}})},function(c){if(function(u){return u instanceof Wb}(c))return{values:{},errors:vC(jte(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 Uy=async e=>e&&typeof e.then=="function"?await e:e,Mte=({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 Uy(t?.(h)),p.success?await Uy(n?.(p.data)):await Uy(i?.(new Error(p.error.issues.map(g=>g.message).join(", "))))};return y.jsx(GZ,{...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})})},Pte=(e,t)=>{const n=cY({resolver:zte(e),...t});return{form:n,isSubmitting:n.formState.isSubmitting,isSubmitted:n.formState.isSubmitted,isLoading:n.formState.isLoading,isValid:n.formState.isValid}},Bte=({className:e,...t})=>{const{error:n,formItemId:i}=Sa();return y.jsx(Pg,{className:fe("mb-2",n&&"text-error",e),htmlFor:i,...t})},Ute=({isRequired:e})=>e?y.jsx("span",{"aria-label":"Asterisk meaning the field is required",children:"*"}):y.jsx(y.Fragment,{}),tM=({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(Bte,{htmlFor:i,id:`${i}-label`,className:Yf("font-bold",o),children:[e,y.jsx(Ute,{isRequired:t})]}),n&&y.jsx(dY,{content:n})]}),wh=({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(tM,{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"})]}),Vte=({field:e,name:t,label:n,Element:i,isRequired:o=!1,info:s,description:c,showErrorMessage:u=!0,...f})=>{const{error:h}=Sa(),{value:p,onChange:g,...b}=e??{},S=f,w=S.value!==void 0?S.value:p??"",A=(...R)=>{typeof g=="function"&&g(...R),typeof S.onChange=="function"&&S.onChange(...R)};return y.jsx(wh,{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})})},Ca=e=>{const{control:t}=xa();return y.jsx(Fe.Field,{control:t,name:e.name,render:({field:n})=>y.jsx(Vte,{...e,field:n})})},Fte=e=>y.jsx(Ca,{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:tj,...e}),Hte=e=>y.jsx(Ca,{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:Mj,...e}),Gte=e=>y.jsx(Ca,{id:e.name,"data-testid":e.name,Element:Qs,"aria-labelledby":e.label?`${e.name}-label`:void 0,"aria-label":e.label?void 0:e.name,...e}),Kte=({autoComplete:e,...t})=>y.jsx(Ca,{Element:UZ,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}),$te=e=>y.jsx(Ca,{Element:mj,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}),qte=e=>y.jsx(Ca,{Element:Nb,id:e.name,"data-testid":e.name,...e}),Zte=({inputLabel:e,...t})=>y.jsx(BZ,{...t,label:e}),Yte=({autoComplete:e,...t})=>y.jsx(Ca,{Element:Zte,id:t.name,"data-testid":t.name,autoComplete:e,minLength:6,maxLength:255,...t}),Wte=({name:e,description:t,label:n,isRequired:i,info:o,showErrorMessage:s,children:c,...u})=>{const{control:f}=xa();return y.jsx(Fe.Field,{control:f,name:e,render:({field:h})=>{const{error:p}=Sa();return y.jsx(wh,{htmlFor:e,label:n,description:t,isRequired:i,info:o,showErrorMessage:s,"aria-invalid":!!p,children:y.jsx(hn,{onValueChange:h.onChange,values:h.value,...u,children:c})})}})},Xte=({name:e,description:t,label:n,isRequired:i,info:o,showErrorMessage:s,children:c,...u})=>{const{control:f}=xa();return y.jsx(Fe.Field,{control:f,name:e,render:({field:h})=>{const{error:p}=Sa();return y.jsx(wh,{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})})}})},Qte=({name:e,description:t,label:n,isRequired:i,info:o,showErrorMessage:s,children:c,...u})=>{const{control:f}=xa();return y.jsx(Fe.Field,{control:f,name:e,render:({field:h})=>{const{error:p}=Sa();return y.jsx(wh,{htmlFor:e,label:n,description:t,isRequired:i,info:o,showErrorMessage:s,"aria-invalid":!!p,children:y.jsx(ru,{...h,...u,children:c})})}})},Jte=e=>{const{error:t,formItemId:n,formDescriptionId:i,formMessageId:o}=Sa();return y.jsx(CK,{id:n,"aria-describedby":t?`${i} ${o}`:`${i}`,"aria-invalid":!!t,...e})},ene=e=>{const{formDescriptionId:t}=Sa();return y.jsx("p",{className:"text-neutral text-sm",id:t,...e})},tne=({children:e,...t})=>{const{error:n,formMessageId:i}=Sa(),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=Mte;Fe.Description=ene;Fe.Control=Jte;Fe.Field=uY;Fe.Item=VZ;Fe.Label=tM;Fe.Message=tne;Fe.Element=Ca;Fe.Input=Gte;Fe.InputPassword=Kte;Fe.Checkbox=Yte;Fe.TextArea=$te;Fe.AutoSizedTextArea=qte;Fe.Button=st;Fe.Select=Xte;Fe.MultiSelect=Wte;Fe.EditableFieldInput=Fte;Fe.EditableFieldTextArea=Hte;Fe.SwitchSelector=Qte;const nM=({dictionary:e,mode:t,className:n,onDelete:i,onSave:o,...s})=>{const[c,u]=E.useState(!1),{setLocaleDictionary:f}=Kf(),{mutate:h,isPending:p}=dW(),{mutate:g,isPending:b}=yW(),{mutate:S,isPending:w}=uW(),A=b||w,{editedContent:R,restoreEditedContent:N}=bn(),{deleteButton:x,resetButton:C,saveButton:I,publishButton:_,downloadButton:k,confirmation:L}=Ot("save-dictionary-details"),{isAuthenticated:O}=lh(),V=R?.[e.localId],$=V&&JSON.stringify(V)!==JSON.stringify(e),H=typeof e?.id<"u",ae=async()=>{R?.[e.localId]&&g({dictionary:{...e,...R?.[e.localId]}},{onSuccess:()=>{f(R?.[e.localId]),N(e.localId),o?.()}})},ce=()=>{R?.[e.localId]&&S([{...e,...R?.[e.localId]}],{onSuccess:oe=>{oe&&(f(R?.[e.localId]),N(e.localId),o?.())}})},X=()=>{e.id&&h(e.id.toString(),{onSuccess:oe=>{oe&&i?.()}})};return y.jsxs(y.Fragment,{children:[y.jsx(xb,{isOpen:c,title:L.title.value,size:Eb.MD,children:y.jsxs("form",{className:"size-full px-3",children:[y.jsx("p",{className:"py-4 text-neutral text-sm",children:L.message}),y.jsxs("div",{className:"mt-12 flex justify-end gap-2 max-md:flex-col",children:[y.jsx(Fe.Button,{label:L.cancelButton.label.value,disabled:!$||A,color:Pe.TEXT,className:"max-md:w-full",variant:Ve.OUTLINE,onClick:()=>u(!1),children:L.cancelButton.text}),y.jsx(Fe.Button,{label:L.confirmButton.label.value,disabled:!$||A,Icon:KA,color:Pe.TEXT,className:"max-md:w-full",isLoading:w,onClick:ae,children:L.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:x.label.value,Icon:Xf,color:Pe.ERROR,variant:Ve.OUTLINE,className:"max-md:w-full",isLoading:p,onClick:X,children:x.text}),$&&y.jsx(Fe.Button,{label:C.label.value,disabled:!$,Icon:rK,variant:Ve.OUTLINE,color:Pe.TEXT,className:"max-md:w-full",onClick:()=>N(e.localId),children:C.text}),t.includes("local")&&y.jsx(Fe.Button,{label:k.label.value,disabled:!$||A,Icon:VG,color:Pe.TEXT,variant:O?Ve.OUTLINE:Ve.DEFAULT,className:"max-md:w-full",isLoading:b,onClick:()=>u(!0),children:k.text}),t.includes("remote")&&O&&!H&&y.jsx(Fe.Button,{label:_.label.value,disabled:A,Icon:CG,color:Pe.TEXT,className:"max-md:w-full",isLoading:w,onClick:ce,children:_.text}),t.includes("remote")&&O&&H&&$&&y.jsx(Fe.Button,{label:I.label.value,disabled:!$||A,Icon:KA,color:"text",className:"max-md:w-full",isLoading:w,onClick:ce,children:I.text})]})]})},rM=({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(N1,{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})}),nne=e=>{const{keyPath:t,section:n,onFocusKeyPath:i,focusedKeyPath:o=[]}=e;return n.map((s,c)=>{const u={key:c,type:F.Array},f=[...t,u];return y.jsx(rM,{level:t.length,title:`${c}`,description:"",isSelected:Vc(f,o),onClick:h=>{h.stopPropagation(),i(f)},children:y.jsx(Ra,{...e,keyPath:f,section:s})},JSON.stringify(s))})},rne=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=>!Qb.includes(i)).map(i=>{const o={type:F.Condition,key:i},s=[...t,o],c=n[F.Condition][i];return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"flex items-center font-bold",children:i}),E.createElement(Ra,{...e,key:i,keyPath:s,section:c})]})})})},ine=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=>!Qb.includes(i)).map(i=>{const o={type:F.Enumeration,key:i},s=[...t,o],c=n[F.Enumeration][i];return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:"flex items-center font-bold",children:i}),E.createElement(Ra,{...e,key:i,keyPath:s,section:c})]})})})},iM=({keyPath:e,section:t,editedContent:n,editedContentValue:i,onContentChange:o,onFocusKeyPath:s,renderSection:c})=>{const u=i??qn(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(Mj,{"aria-label":"Editable field",defaultValue:h,onSave:p=>o({keyPath:e,newValue:p}),onCancel:()=>null})})},ane=e=>{const{keyPath:t,section:n}=e,{addEditedContent:i}=bn(),o=qn(e.editedContent,t),s=n[F.File],{content:c}=n,u=[...t,{type:F.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(iM,{...e,keyPath:u,section:c,editedContentValue:o?.content,onContentChange:f=>{i(e.dictionary.localId,{...n,content:f.newValue},t)}})]})},one=e=>{const{keyPath:t,section:n}=e,i=[...t,{type:F.Insertion}],o=n[F.Insertion];return y.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:y.jsx(Ra,{...e,keyPath:i,section:o})})},sne=e=>{const{keyPath:t,section:n}=e,i=[...t,{type:F.Markdown}],o=n[F.Markdown];return y.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:y.jsx(Ra,{...e,keyPath:i,section:o})})},lne=e=>{const{keyPath:t,section:n,focusedKeyPath:i=[],onFocusKeyPath:o}=e;return Object.keys(n).filter(s=>!Qb.includes(s)).map(s=>{const c={key:s,type:F.Object},u=[...t,c];return y.jsx(rM,{level:t.length,title:s,description:"",isSelected:Vc(u,i),onClick:f=>{f.stopPropagation(),o(u)},children:y.jsx(Ra,{...e,keyPath:u,section:n[s]})},s)})},cne=e=>{const{keyPath:t,section:n,locale:i}=e,o={type:F.Translation,key:i},s=[...t,o],c=n.translation[i];return y.jsx(Ra,{...e,keyPath:s,section:c})},Qb=["filePath","id","nodeType"],Ra=e=>{const t=qn(e.editedContent,e.keyPath)??e.section,n=Fs(t);if(typeof t=="object")return n===F.ReactNode?y.jsx("span",{className:"text-neutral text-xs",children:"React node not editable"}):n===F.Nested?y.jsx("div",{className:"ml-2 grid grid-cols-[auto,1fr] gap-2",children:"[Nested] Dictionary"}):n===F.Markdown?y.jsx(sne,{...e,section:t}):n===F.Translation?y.jsx(cne,{...e,section:t}):n===F.Enumeration?y.jsx(ine,{...e,section:t}):n===F.Condition?y.jsx(rne,{...e,section:t}):n===F.Insertion?y.jsx(one,{...e,section:t}):n===F.Array?y.jsx(nne,{...e,section:t}):n===F.File?y.jsx(ane,{...e,section:t}):y.jsx(lne,{...e,section:t});if(typeof t=="string")return y.jsx(iM,{...e,section:t})},une=({dictionary:e,mode:t,onDelete:n,...i})=>{const{editedContent:o,addEditedContent:s}=bn(),{focusedContent:c,setFocusedContentKeyPath:u,setFocusedContent:f}=va(),h=c?.keyPath;return y.jsxs("div",{className:"flex flex-1 flex-col justify-between gap-2",children:[y.jsx("div",{children:E.createElement(Ra,{...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(nM,{dictionary:e,mode:t,className:"mb-4 flex-col",onDelete:()=>{f(null),n?.()}})]})},dne=de("ZodISODateTime",(e,t)=>{fee.init(e,t),Ct.init(e,t)});function fne(e){return pte(dne,e)}const hne=de("ZodISODate",(e,t)=>{hee.init(e,t),Ct.init(e,t)});function pne(e){return mte(hne,e)}const mne=de("ZodISOTime",(e,t)=>{pee.init(e,t),Ct.init(e,t)});function yne(e){return yte(mne,e)}const gne=de("ZodISODuration",(e,t)=>{mee.init(e,t),Ct.init(e,t)});function vne(e){return gte(gne,e)}const bne=(e,t)=>{Wb.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>oJ(e,n)},flatten:{value:n=>aJ(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,nv,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,nv,2)}},isEmpty:{get(){return e.issues.length===0}}})},hr=de("ZodError",bne,{Parent:Error}),Ene=bh(hr),xne=Eh(hr),Sne=xh(hr),Ane=Sh(hr),wne=dJ(hr),Tne=fJ(hr),Cne=hJ(hr),Rne=pJ(hr),Ine=mJ(hr),_ne=yJ(hr),Nne=gJ(hr),kne=vJ(hr),Jt=de("ZodType",(e,t)=>(Zt.init(e,t),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(To(t,{checks:[...t.checks??[],...n.map(i=>typeof i=="function"?{_zod:{check:i,def:{check:"custom"},onattach:[]}}:i)]})),e.clone=(n,i)=>Ta(e,n,i),e.brand=()=>e,e.register=(n,i)=>(n.add(e,i),e),e.parse=(n,i)=>Ene(e,n,i,{callee:e.parse}),e.safeParse=(n,i)=>Sne(e,n,i),e.parseAsync=async(n,i)=>xne(e,n,i,{callee:e.parseAsync}),e.safeParseAsync=async(n,i)=>Ane(e,n,i),e.spa=e.safeParseAsync,e.encode=(n,i)=>wne(e,n,i),e.decode=(n,i)=>Tne(e,n,i),e.encodeAsync=async(n,i)=>Cne(e,n,i),e.decodeAsync=async(n,i)=>Rne(e,n,i),e.safeEncode=(n,i)=>Ine(e,n,i),e.safeDecode=(n,i)=>_ne(e,n,i),e.safeEncodeAsync=async(n,i)=>Nne(e,n,i),e.safeDecodeAsync=async(n,i)=>kne(e,n,i),e.refine=(n,i)=>e.check(xre(n,i)),e.superRefine=n=>e.check(Sre(n)),e.overwrite=n=>e.check(iu(n)),e.optional=()=>jC(e),e.nullable=()=>zC(e),e.nullish=()=>jC(zC(e)),e.nonoptional=n=>pre(e,n),e.array=()=>iv(e),e.or=n=>rre([e,n]),e.and=n=>are(e,n),e.transform=n=>MC(e,lre(n)),e.default=n=>dre(e,n),e.prefault=n=>hre(e,n),e.catch=n=>yre(e,n),e.pipe=n=>MC(e,n),e.readonly=()=>bre(e),e.describe=n=>{const i=e.clone();return Kd.add(i,{description:n}),i},Object.defineProperty(e,"description",{get(){return Kd.get(e)?.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return Kd.get(e);const i=e.clone();return Kd.add(i,n[0]),i},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),aM=de("_ZodString",(e,t)=>{Xb.init(e,t),Jt.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(Ete(...i)),e.includes=(...i)=>e.check(Ate(...i)),e.startsWith=(...i)=>e.check(wte(...i)),e.endsWith=(...i)=>e.check(Tte(...i)),e.min=(...i)=>e.check(Bf(...i)),e.max=(...i)=>e.check(Jz(...i)),e.length=(...i)=>e.check(eM(...i)),e.nonempty=(...i)=>e.check(Bf(1,...i)),e.lowercase=i=>e.check(xte(i)),e.uppercase=i=>e.check(Ste(i)),e.trim=()=>e.check(Rte()),e.normalize=(...i)=>e.check(Cte(...i)),e.toLowerCase=()=>e.check(Ite()),e.toUpperCase=()=>e.check(_te())}),Lne=de("ZodString",(e,t)=>{Xb.init(e,t),aM.init(e,t),e.email=n=>e.check(qee(Dne,n)),e.url=n=>e.check(Qee(One,n)),e.jwt=n=>e.check(hte(Yne,n)),e.emoji=n=>e.check(Jee(jne,n)),e.guid=n=>e.check(kC(DC,n)),e.uuid=n=>e.check(Zee($d,n)),e.uuidv4=n=>e.check(Yee($d,n)),e.uuidv6=n=>e.check(Wee($d,n)),e.uuidv7=n=>e.check(Xee($d,n)),e.nanoid=n=>e.check(ete(zne,n)),e.guid=n=>e.check(kC(DC,n)),e.cuid=n=>e.check(tte(Mne,n)),e.cuid2=n=>e.check(nte(Pne,n)),e.ulid=n=>e.check(rte(Bne,n)),e.base64=n=>e.check(ute($ne,n)),e.base64url=n=>e.check(dte(qne,n)),e.xid=n=>e.check(ite(Une,n)),e.ksuid=n=>e.check(ate(Vne,n)),e.ipv4=n=>e.check(ote(Fne,n)),e.ipv6=n=>e.check(ste(Hne,n)),e.cidrv4=n=>e.check(lte(Gne,n)),e.cidrv6=n=>e.check(cte(Kne,n)),e.e164=n=>e.check(fte(Zne,n)),e.datetime=n=>e.check(fne(n)),e.date=n=>e.check(pne(n)),e.time=n=>e.check(yne(n)),e.duration=n=>e.check(vne(n))});function oc(e){return $ee(Lne,e)}const Ct=de("ZodStringFormat",(e,t)=>{St.init(e,t),aM.init(e,t)}),Dne=de("ZodEmail",(e,t)=>{ree.init(e,t),Ct.init(e,t)}),DC=de("ZodGUID",(e,t)=>{tee.init(e,t),Ct.init(e,t)}),$d=de("ZodUUID",(e,t)=>{nee.init(e,t),Ct.init(e,t)}),One=de("ZodURL",(e,t)=>{iee.init(e,t),Ct.init(e,t)}),jne=de("ZodEmoji",(e,t)=>{aee.init(e,t),Ct.init(e,t)}),zne=de("ZodNanoID",(e,t)=>{oee.init(e,t),Ct.init(e,t)}),Mne=de("ZodCUID",(e,t)=>{see.init(e,t),Ct.init(e,t)}),Pne=de("ZodCUID2",(e,t)=>{lee.init(e,t),Ct.init(e,t)}),Bne=de("ZodULID",(e,t)=>{cee.init(e,t),Ct.init(e,t)}),Une=de("ZodXID",(e,t)=>{uee.init(e,t),Ct.init(e,t)}),Vne=de("ZodKSUID",(e,t)=>{dee.init(e,t),Ct.init(e,t)}),Fne=de("ZodIPv4",(e,t)=>{yee.init(e,t),Ct.init(e,t)}),Hne=de("ZodIPv6",(e,t)=>{gee.init(e,t),Ct.init(e,t)}),Gne=de("ZodCIDRv4",(e,t)=>{vee.init(e,t),Ct.init(e,t)}),Kne=de("ZodCIDRv6",(e,t)=>{bee.init(e,t),Ct.init(e,t)}),$ne=de("ZodBase64",(e,t)=>{Eee.init(e,t),Ct.init(e,t)}),qne=de("ZodBase64URL",(e,t)=>{See.init(e,t),Ct.init(e,t)}),Zne=de("ZodE164",(e,t)=>{Aee.init(e,t),Ct.init(e,t)}),Yne=de("ZodJWT",(e,t)=>{Tee.init(e,t),Ct.init(e,t)}),Wne=de("ZodUnknown",(e,t)=>{Cee.init(e,t),Jt.init(e,t)});function OC(){return vte(Wne)}const Xne=de("ZodNever",(e,t)=>{Ree.init(e,t),Jt.init(e,t)});function Qne(e){return bte(Xne,e)}const Jne=de("ZodArray",(e,t)=>{Iee.init(e,t),Jt.init(e,t),e.element=t.element,e.min=(n,i)=>e.check(Bf(n,i)),e.nonempty=n=>e.check(Bf(1,n)),e.max=(n,i)=>e.check(Jz(n,i)),e.length=(n,i)=>e.check(eM(n,i)),e.unwrap=()=>e.element});function iv(e,t){return Nte(Jne,e,t)}const ere=de("ZodObject",(e,t)=>{Nee.init(e,t),Jt.init(e,t),yt(e,"shape",()=>t.shape),e.keyof=()=>ore(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:OC()}),e.loose=()=>e.clone({...e._zod.def,catchall:OC()}),e.strict=()=>e.clone({...e._zod.def,catchall:Qne()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>eJ(e,n),e.safeExtend=n=>tJ(e,n),e.merge=n=>nJ(e,n),e.pick=n=>QQ(e,n),e.omit=n=>JQ(e,n),e.partial=(...n)=>rJ(oM,e,n[0]),e.required=(...n)=>iJ(sM,e,n[0])});function tre(e,t){const n={type:"object",shape:e??{},...je(t)};return new ere(n)}const nre=de("ZodUnion",(e,t)=>{kee.init(e,t),Jt.init(e,t),e.options=t.options});function rre(e,t){return new nre({type:"union",options:e,...je(t)})}const ire=de("ZodIntersection",(e,t)=>{Lee.init(e,t),Jt.init(e,t)});function are(e,t){return new ire({type:"intersection",left:e,right:t})}const av=de("ZodEnum",(e,t)=>{Dee.init(e,t),Jt.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 av({...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 av({...t,checks:[],...je(o),entries:s})}});function ore(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(i=>[i,i])):e;return new av({type:"enum",entries:n,...je(t)})}const sre=de("ZodTransform",(e,t)=>{Oee.init(e,t),Jt.init(e,t),e._zod.parse=(n,i)=>{if(i.direction==="backward")throw new Vz(e.constructor.name);n.addIssue=s=>{if(typeof s=="string")n.issues.push(Mc(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(Mc(c))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(s=>(n.value=s,n)):(n.value=o,n)}});function lre(e){return new sre({type:"transform",transform:e})}const oM=de("ZodOptional",(e,t)=>{jee.init(e,t),Jt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function jC(e){return new oM({type:"optional",innerType:e})}const cre=de("ZodNullable",(e,t)=>{zee.init(e,t),Jt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function zC(e){return new cre({type:"nullable",innerType:e})}const ure=de("ZodDefault",(e,t)=>{Mee.init(e,t),Jt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function dre(e,t){return new ure({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():Gz(t)}})}const fre=de("ZodPrefault",(e,t)=>{Pee.init(e,t),Jt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function hre(e,t){return new fre({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():Gz(t)}})}const sM=de("ZodNonOptional",(e,t)=>{Bee.init(e,t),Jt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function pre(e,t){return new sM({type:"nonoptional",innerType:e,...je(t)})}const mre=de("ZodCatch",(e,t)=>{Uee.init(e,t),Jt.init(e,t),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function yre(e,t){return new mre({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const gre=de("ZodPipe",(e,t)=>{Vee.init(e,t),Jt.init(e,t),e.in=t.in,e.out=t.out});function MC(e,t){return new gre({type:"pipe",in:e,out:t})}const vre=de("ZodReadonly",(e,t)=>{Fee.init(e,t),Jt.init(e,t),e.unwrap=()=>e._zod.def.innerType});function bre(e){return new vre({type:"readonly",innerType:e})}const Ere=de("ZodCustom",(e,t)=>{Hee.init(e,t),Jt.init(e,t)});function xre(e,t={}){return kte(Ere,e,t)}function Sre(e){return Lte(e)}const Sc=({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}),Are=({children:e,identifier:t,className:n,label:i,...o})=>y.jsx(st,{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 Vy=function(e){return e.START="start",e.END="end",e}({});const wre=({children:e,isHidden:t=void 0,isOverable:n=!1,isFocusable:i=!1,align:o=Vy.START,identifier:s,className:c,...u})=>y.jsx("div",{className:fe("absolute top-[calc(100%+0.5rem)] z-[1000] min-w-full",o===Vy.START&&"left-0",o===Vy.END&&"right-0",c),"aria-hidden":t,role:"region","aria-labelledby":`dropdown-trigger-${s}`,id:`dropdown-panel-${s}`,children:y.jsx(Lv,{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})});Sc.Trigger=Are;Sc.Panel=wre;const Ac=(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])},lM=E.createContext({availableLocales:[],selectedLocales:[],setSelectedLocales:()=>{}}),cM=()=>E.useContext(lM),Tre=({availableLocales:e,defaultSelectedLocales:t,children:n})=>{const{locale:i}=Tv(),[o,s]=Ac("locale-content-selector-selected-locales",t??[i]);return y.jsx(lM,{value:{availableLocales:e,selectedLocales:o,setSelectedLocales:s},children:n})};function Li(e){return Array.isArray?Array.isArray(e):fM(e)==="[object Array]"}function Cre(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Rre(e){return e==null?"":Cre(e)}function Kr(e){return typeof e=="string"}function uM(e){return typeof e=="number"}function Ire(e){return e===!0||e===!1||_re(e)&&fM(e)=="[object Boolean]"}function dM(e){return typeof e=="object"}function _re(e){return dM(e)&&e!==null}function Kn(e){return e!=null}function Fy(e){return!e.trim().length}function fM(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const Nre="Incorrect 'index' type",kre=e=>`Invalid value for key ${e}`,Lre=e=>`Pattern length exceeds max of ${e}.`,Dre=e=>`Missing ${e} property in key`,Ore=e=>`Property 'weight' in key '${e}' must be a positive integer`,PC=Object.prototype.hasOwnProperty;class jre{constructor(t){this._keys=[],this._keyMap={};let n=0;t.forEach(i=>{let o=hM(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 hM(e){let t=null,n=null,i=null,o=1,s=null;if(Kr(e)||Li(e))i=e,t=BC(e),n=ov(e);else{if(!PC.call(e,"name"))throw new Error(Dre("name"));const c=e.name;if(i=c,PC.call(e,"weight")&&(o=e.weight,o<=0))throw new Error(Ore(c));t=BC(c),n=ov(c),s=e.getFn}return{path:t,id:n,weight:o,src:i,getFn:s}}function BC(e){return Li(e)?e:e.split(".")}function ov(e){return Li(e)?e.join("."):e}function zre(e,t){let n=[],i=!1;const o=(s,c,u)=>{if(Kn(s))if(!c[u])n.push(s);else{let f=c[u];const h=s[f];if(!Kn(h))return;if(u===c.length-1&&(Kr(h)||uM(h)||Ire(h)))n.push(Rre(h));else if(Li(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,Kr(t)?t.split("."):t,0),i?n:n[0]}const Mre={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Pre={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},Bre={location:0,threshold:.6,distance:100},Ure={useExtendedSearch:!1,getFn:zre,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var Oe={...Pre,...Mre,...Bre,...Ure};const Vre=/[^ ]+/g;function Fre(e=1,t=3){const n=new Map,i=Math.pow(10,t);return{get(o){const s=o.match(Vre).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 Jb{constructor({getFn:t=Oe.getFn,fieldNormWeight:n=Oe.fieldNormWeight}={}){this.norm=Fre(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,Kr(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();Kr(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(!Kn(t)||Fy(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(Kn(c)){if(Li(c)){let u=[];const f=[{nestedArrIndex:-1,value:c}];for(;f.length;){const{nestedArrIndex:h,value:p}=f.pop();if(Kn(p))if(Kr(p)&&!Fy(p)){let g={v:p,i:h,n:this.norm.get(p)};u.push(g)}else Li(p)&&p.forEach((g,b)=>{f.push({nestedArrIndex:b,value:g})})}i.$[s]=u}else if(Kr(c)&&!Fy(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 pM(e,t,{getFn:n=Oe.getFn,fieldNormWeight:i=Oe.fieldNormWeight}={}){const o=new Jb({getFn:n,fieldNormWeight:i});return o.setKeys(e.map(hM)),o.setSources(t),o.create(),o}function Hre(e,{getFn:t=Oe.getFn,fieldNormWeight:n=Oe.fieldNormWeight}={}){const{keys:i,records:o}=e,s=new Jb({getFn:t,fieldNormWeight:n});return s.setKeys(i),s.setIndexRecords(o),s}function qd(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 Gre(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 to=32;function Kre(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>to)throw new Error(Lre(to));const p=t.length,g=e.length,b=Math.max(0,Math.min(i,g));let S=s,w=b;const A=u>1||f,R=A?Array(g):[];let N;for(;(N=e.indexOf(t,w))>-1;){let L=qd(t,{currentLocation:N,expectedLocation:b,distance:o,ignoreLocation:h});if(S=Math.min(L,S),w=N+p,A){let O=0;for(;O<p;)R[N+O]=1,O+=1}}w=-1;let x=[],C=1,I=p+g;const _=1<<p-1;for(let L=0;L<p;L+=1){let O=0,V=I;for(;O<V;)qd(t,{errors:L,currentLocation:b+V,expectedLocation:b,distance:o,ignoreLocation:h})<=S?O=V:I=V,V=Math.floor((I-O)/2+O);I=V;let $=Math.max(1,b-V+1),H=c?g:Math.min(b+V,g)+p,ae=Array(H+2);ae[H+1]=(1<<L)-1;for(let X=H;X>=$;X-=1){let oe=X-1,M=n[e.charAt(oe)];if(A&&(R[oe]=+!!M),ae[X]=(ae[X+1]<<1|1)&M,L&&(ae[X]|=(x[X+1]|x[X])<<1|1|x[X+1]),ae[X]&_&&(C=qd(t,{errors:L,currentLocation:oe,expectedLocation:b,distance:o,ignoreLocation:h}),C<=S)){if(S=C,w=oe,w<=b)break;$=Math.max(1,2*b-w)}}if(qd(t,{errors:L+1,currentLocation:b,expectedLocation:b,distance:o,ignoreLocation:h})>S)break;x=ae}const k={isMatch:w>=0,score:Math.max(.001,C)};if(A){const L=Gre(R,u);L.length?f&&(k.indices=L):k.isMatch=!1}return k}function $re(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 Uf=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 mM{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?Uf(t):t,this.pattern=t,this.chunks=[],!this.pattern.length)return;const g=(S,w)=>{this.chunks.push({pattern:S,alphabet:$re(S),startIndex:w})},b=this.pattern.length;if(b>to){let S=0;const w=b%to,A=b-w;for(;S<A;)g(this.pattern.substr(S,to),S),S+=to;if(w){const R=b-to;g(this.pattern.substr(R),R)}}else g(this.pattern,0)}searchIn(t){const{isCaseSensitive:n,ignoreDiacritics:i,includeMatches:o}=this.options;if(t=n?t:t.toLowerCase(),t=i?Uf(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,S=!1;this.chunks.forEach(({pattern:A,alphabet:R,startIndex:N})=>{const{isMatch:x,score:C,indices:I}=Kre(t,A,R,{location:s+N,distance:c,threshold:u,findAllMatches:f,minMatchCharLength:h,includeMatches:o,ignoreLocation:p});x&&(S=!0),b+=C,x&&I&&(g=[...g,...I])});let w={isMatch:S,score:S?b/this.chunks.length:1};return S&&o&&(w.indices=g),w}}class Ia{constructor(t){this.pattern=t}static isMultiMatch(t){return UC(t,this.multiRegex)}static isSingleMatch(t){return UC(t,this.singleRegex)}search(){}}function UC(e,t){const n=e.match(t);return n?n[1]:null}class qre extends Ia{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 Zre extends Ia{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 Yre extends Ia{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 Wre extends Ia{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 Xre extends Ia{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 Qre extends Ia{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 yM extends Ia{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 mM(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 gM extends Ia{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 sv=[qre,gM,Yre,Wre,Qre,Xre,Zre,yM],VC=sv.length,Jre=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,eie="|";function tie(e,t={}){return e.split(eie).map(n=>{let i=n.trim().split(Jre).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<VC;){const p=sv[h];let g=p.isMultiMatch(u);g&&(o.push(new p(g,t)),f=!0)}if(!f)for(h=-1;++h<VC;){const p=sv[h];let g=p.isSingleMatch(u);if(g){o.push(new p(g,t));break}}}return o})}const nie=new Set([yM.type,gM.type]);class rie{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?Uf(t):t,this.pattern=t,this.query=tie(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?Uf(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,S=g.length;b<S;b+=1){const w=g[b],{isMatch:A,indices:R,score:N}=w.search(t);if(A){if(c+=1,f+=N,i){const x=w.constructor.type;nie.has(x)?u=[...u,...R]:u.push(R)}}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 lv=[];function iie(...e){lv.push(...e)}function cv(e,t){for(let n=0,i=lv.length;n<i;n+=1){let o=lv[n];if(o.condition(e,t))return new o(e,t)}return new mM(e,t)}const Vf={AND:"$and",OR:"$or"},uv={PATH:"$path",PATTERN:"$val"},dv=e=>!!(e[Vf.AND]||e[Vf.OR]),aie=e=>!!e[uv.PATH],oie=e=>!Li(e)&&dM(e)&&!dv(e),FC=e=>({[Vf.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function vM(e,t,{auto:n=!0}={}){const i=o=>{let s=Object.keys(o);const c=aie(o);if(!c&&s.length>1&&!dv(o))return i(FC(o));if(oie(o)){const f=c?o[uv.PATH]:s[0],h=c?o[uv.PATTERN]:o[f];if(!Kr(h))throw new Error(kre(f));const p={keyId:ov(f),pattern:h};return n&&(p.searcher=cv(h,t)),p}let u={children:[],operator:s[0]};return s.forEach(f=>{const h=o[f];Li(h)&&h.forEach(p=>{u.children.push(i(p))})}),u};return dv(e)||(e=FC(e)),i(e)}function sie(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 lie(e,t){const n=e.matches;t.matches=[],Kn(n)&&n.forEach(i=>{if(!Kn(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 cie(e,t){t.score=e.score}function uie(e,t,{includeMatches:n=Oe.includeMatches,includeScore:i=Oe.includeScore}={}){const o=[];return n&&o.push(lie),i&&o.push(cie),e.map(s=>{const{idx:c}=s,u={item:t[c],refIndex:c};return o.length&&o.forEach(f=>{f(s,u)}),u})}class rl{constructor(t,n={},i){this.options={...Oe,...n},this.options.useExtendedSearch,this._keyStore=new jre(this.options.keys),this.setCollection(t,i)}setCollection(t,n){if(this._docs=t,n&&!(n instanceof Jb))throw new Error(Nre);this._myIndex=n||pM(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){Kn(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const n=[];for(let 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=Kr(t)?Kr(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return sie(f,{ignoreFieldNorm:u}),s&&f.sort(c),uM(n)&&n>-1&&(f=f.slice(0,n)),uie(f,this._docs,{includeMatches:i,includeScore:o})}_searchStringList(t){const n=cv(t,this.options),{records:i}=this._myIndex,o=[];return i.forEach(({v:s,i:c,n:u})=>{if(!Kn(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=vM(t,this.options),i=(u,f,h)=>{if(!u.children){const{keyId:g,searcher:b}=u,S=this._findMatches({key:this._keyStore.get(g),value:this._myIndex.getValueForItemAtKeyId(f,g),searcher:b});return S&&S.length?[{idx:h,item:f,matches:S}]:[]}const p=[];for(let g=0,b=u.children.length;g<b;g+=1){const S=u.children[g],w=i(S,f,h);if(w.length)p.push(...w);else if(u.operator===Vf.AND)return[]}return p},o=this._myIndex.records,s={},c=[];return o.forEach(({$:u,i:f})=>{if(Kn(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=cv(t,this.options),{keys:i,records:o}=this._myIndex,s=[];return o.forEach(({$:c,i:u})=>{if(!Kn(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(!Kn(n))return[];let o=[];if(Li(n))n.forEach(({v:s,i:c,n:u})=>{if(!Kn(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}}rl.version="7.1.0";rl.createIndex=pM;rl.parseIndex=Hre;rl.config=Oe;rl.parseQuery=vM;iie(rie);const Hy="locale-switcher-content",die=({panelProps:e,isMultilingual:t=!0})=>{const{switchTo:n,searchInput:i,localeSwitcherLabel:o,languageListLabel:s,seeAllLocalesSwitch:c}=Ot("locale-switcher-content"),u=E.useRef(null),{locale:f}=Tv(),{availableLocales:h,selectedLocales:p,setSelectedLocales:g}=cM(),b=E.useMemo(()=>h.map(_=>({locale:_,englishName:Jd(_,ut.ENGLISH),currentLocaleName:Jd(_,f),ownLocaleName:Jd(_)})),[h,f]),[S,w]=E.useState(b),[A,R]=Ac("locale-content-selector-see-all-locales",!1),N=E.useMemo(()=>new rl(b,{keys:[{name:"ownLocaleName",weight:.4},{name:"englishName",weight:.2},{name:"currentLocaleName",weight:.2},{name:"locale",weight:.2}],threshold:.02}),[b]),x=E.useCallback(_=>{w(_?N.search(_).map(k=>k.item):b)},[N,b]),C=_=>{t?p.includes(_)?p.length>1&&g(k=>k.filter(L=>L!==_)):g(k=>[...k,_]):g([_])},I=_=>{R(_),g(_?h:[f])};return y.jsx("div",{className:"rounded-xl border border-text text-text transition-colors","aria-label":o.value,children:y.jsxs(Sc,{identifier:Hy,children:[y.jsx(Sc.Trigger,{identifier:Hy,children:y.jsxs("div",{className:"flex w-full items-center justify-between",children:[y.jsx("div",{className:"px-2 py-1",children:y.jsx(YG,{size:18})}),y.jsx(JG,{className:"self-center",size:18})]})}),y.jsx(Sc.Panel,{identifier:Hy,isOverable:!0,isFocusable:!0,className:"right-0 left-auto",...e,children:y.jsxs(Nr,{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(ru,{defaultValue:!1,onChange:I,color:Ft.TEXT,size:Ti.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(Qs,{type:"search","aria-label":i.ariaLabel.value,placeholder:i.placeholder.value,onChange:_=>x(_.target.value),ref:u})}),y.jsx("ol",{className:"divide-y divide-dashed divide-text/20 overflow-y-auto p-1",children:S.map(({locale:_,currentLocaleName:k,ownLocaleName:L})=>y.jsx("li",{className:"px-1.5 py-1",children:y.jsx(st,{onClick:()=>C(_),label:`${n} ${k}`,disabled:!(h??h).includes(_),isActive:p.includes(_),variant:Ve.HOVERABLE,color:Pe.TEXT,isFullWidth:!0,textAlign:wr.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(_)&&y.jsx(Zs,{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:CH(_),lang:_,children:L}),y.jsx("span",{className:"text-neutral text-xs",children:k})]}),y.jsx("span",{className:"text-neutral text-sm",children:_.toUpperCase()})]})]})})},_))})]})]})})]})})},fie=700,bM=({isRollable:e=!0,minHeight:t=fie,children:n,className:i})=>{const[o,s]=E.useState(0),[c,u]=E.useState(!0),f=E.useRef(null),{expandCollapseContent:h}=Ot("expand-collapse"),p=o>t;return E.useEffect(()=>{f.current&&s(f.current.clientHeight)},[]),e?p?y.jsxs(Lv,{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 EM=function(e){return e.START="start",e.END="end",e}({}),hie=function(e){return e.BELOW="bellow",e.ABOVE="above",e}({});const fv=({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}),pie=({children:e,isHidden:t=void 0,isOverable:n=!0,isFocusable:i=!1,xAlign:o=EM.START,yAlign:s=hie.BELOW,identifier:c,className:u,displayArrow:f=!0,...h})=>y.jsx(Nr,{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});fv.Detail=pie;const mie="modulepreload",yie=function(e){return"/"+e},HC={},gie=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=yie(h),h in HC)return;HC[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":mie,p||(b.as="script"),b.crossOrigin="",b.href=h,u&&b.setAttribute("nonce",u),document.head.appendChild(b),p)return new Promise((S,w)=>{b.addEventListener("load",S),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)})},vie=({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(`
292
- `).map((t,n)=>y.jsx("span",{className:"line block w-full",children:t},`line-${n}-${t.slice(0,10)}`))})})}),bie=E.lazy(()=>gie(()=>import("./CodeBlockShiki-DSxtdBJf.js"),[]).then(e=>({default:e.CodeBlockShiki}))),Eie=({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(vie,{children:i}),children:y.jsx(bie,{lang:o,isDarkMode:s,children:i})})}),xM=E.createContext({packageManager:"npm",setPackageManager:()=>{},codeFormat:"typescript",setCodeFormat:()=>{},contentDeclarationFormat:"typescript",setContentDeclarationFormat:()=>{}}),Th=()=>E.useContext(xM),xie=({children:e})=>{const[t,n]=Ac("packageManager","npm"),[i,o]=Ac("codeFormat","typescript"),[s,c]=Ac("contentDeclarationFormat","typescript");return y.jsx(xM,{value:{packageManager:t,setPackageManager:n,codeFormat:i,setCodeFormat:o,contentDeclarationFormat:s,setContentDeclarationFormat:c},children:e})},Sie=({children:e,...t})=>{const{packageManager:n,codeFormat:i,contentDeclarationFormat:o}=Th(),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,{})},Aie=()=>{const{codeFormat:e,setCodeFormat:t,setContentDeclarationFormat:n}=Th();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"})]})]})},wie=()=>{const{contentDeclarationFormat:e,setContentDeclarationFormat:t}=Th();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"})]})]})},Tie=({code:e})=>{const{title:t,description:n}=Ot("code");return y.jsxs(fv,{identifier:"copy",children:[y.jsx(hD,{content:e}),y.jsxs(fv.Detail,{identifier:"copy",className:"flex min-w-64 flex-col gap-3 p-3 text-sm",xAlign:EM.END,children:[y.jsx("strong",{children:t}),y.jsx("p",{className:"text-neutral",children:n})]})]})},Cie=()=>{const{packageManager:e,setPackageManager:t}=Th();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"})]})]})},Rie=700,Iie=({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(`
293
- `)?e.slice(0,-1):e,S=u||f||h;return y.jsx(Sie,{packageManager:u,codeFormat:f,contentDeclarationFormat:h,children:y.jsxs(Nr,{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(Cie,{}),f&&y.jsx(Aie,{}),h&&y.jsx(wie,{})]})]}),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",S&&"h-11"),children:y.jsx(Tie,{code:b})})})]}),y.jsx(bM,{minHeight:Rie,isRollable:p,className:"min-w-0 max-w-full overflow-x-auto p-2",children:y.jsx(Eie,{lang:t,isDarkMode:n,children:b})})]})})};let SM=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 _ie=mn("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"}}),Nie=mn("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"}}}),kie=({tabs:e,selectedChoice:t,onTabClick:n,color:i=SM.PRIMARY,hoverable:o=!1,className:s})=>{const c=E.useRef([]),u=E.useRef(null),{choiceIndicatorPosition:f,calculatePosition:h}=Uz(c,void 0,o);return E.useEffect(()=>{h()},[t,e]),y.jsxs("div",{className:fe(_ie({color:i}),s),"aria-orientation":"horizontal","aria-multiselectable":"false",role:"tablist",children:[e.map((p,g)=>{const b=p.key,S=t===b;return E.cloneElement(p,{key:b??g,role:"tab",onClick:w=>{p.props?.onClick?.(w),n?.(b)},"aria-selected":S,"data-active":S,tabIndex:S?0:-1,ref:w=>{c.current[g]=w}})}),f&&y.jsx("div",{className:fe(Nie({color:i})),style:f,ref:u},`${t}${JSON.stringify(e.map(p=>p.key))}`)]})},Lie=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,S]=E.useState(0),w=E.useRef({pointerId:null,startX:0,startY:0,lastX:0,axisLocked:!1,isHorizontal:!1}),A=E.useRef(!1),R=()=>{const L=h.current;return L?L.clientWidth:0},N=L=>{const O=o<=0,V=o>=s-1;return O&&L>0||V&&L<0?L/(1+Math.abs(L)/30):L},x=L=>{t&&w.current.pointerId===null&&(w.current.pointerId=L.pointerId,w.current.startX=L.clientX,w.current.startY=L.clientY,w.current.lastX=L.clientX,w.current.axisLocked=!1,w.current.isHorizontal=!1,A.current=!1,g(!1),S(0))},C=L=>{if(!t||w.current.pointerId!==L.pointerId)return;const O=R();if(!O)return;const V=L.clientX-w.current.startX,$=L.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(V),ae=Math.abs($);(H>6||ae>6)&&(w.current.axisLocked=!0,w.current.isHorizontal=H>ae)}if(w.current.isHorizontal){try{L.currentTarget.setPointerCapture(L.pointerId)}catch{}L.preventDefault(),p||g(!0),S(N(V/O*100)),w.current.lastX=L.clientX}},I=L=>{try{L.currentTarget.releasePointerCapture(L.pointerId)}catch{}const O=w.current.isHorizontal,V=b;if(g(!1),S(0),w.current.pointerId=null,w.current.axisLocked=!1,w.current.isHorizontal=!1,A.current){A.current=!1;return}O&&(V>c?i?.():V<-c&&n?.())},_=L=>{t&&w.current.pointerId===L.pointerId&&I(L)},k=L=>{t&&w.current.pointerId===L.pointerId&&I(L)};return E.useEffect(()=>{S(0),g(!1)},[o]),{containerRef:h,isDragging:p,dragDeltaPct:b,containerProps:{ref:h,onPointerDown:x,onPointerMove:C,onPointerUp:_,onPointerCancel:k,style:{touchAction:u}}}},AM=E.createContext({tabsValues:{},setTabsValues:()=>{}}),Die=()=>E.useContext(AM),Oie=({children:e})=>{const[t,n]=E.useState({});return y.jsx(AM,{value:{tabsValues:t,setTabsValues:n},children:e})},jie=E.createContext(void 0),zie=mn("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"}}),eE=({children:e,...t})=>y.jsx("div",{...t,children:e});eE.displayName="TabItem";const Mie=({defaultTab:e,group:t,variant:n,children:i,className:o,...s})=>{const c=E.Children.toArray(i).filter(I=>E.isValidElement(I)&&I.type===eE),u=c[0]?.props?.value,{tabsValues:f,setTabsValues:h}=Die(),[p,g]=E.useState(e??u??""),b=(t&&typeof f=="object"?f?.[t]:p)??e??u,S=c.findIndex(I=>I.props.value===b),w=c.length,{containerProps:A,dragDeltaPct:R,isDragging:N}=Lie({itemIndex:S,itemCount:w,onSwipeLeft:()=>{const I=c[Math.min(w-1,S+1)]?.props?.value;I&&x(I)},onSwipeRight:()=>{const I=c[Math.max(0,S-1)]?.props?.value;I&&x(I)}}),x=I=>{g(I),typeof h=="function"&&h(_=>({..._,[t]:I}))},C={activeTab:p??u??"",setActiveTab:x};return y.jsx(jie.Provider,{value:C,children:y.jsxs("div",{className:fe(zie({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(kie,{selectedChoice:b,tabs:c.map(I=>{const{label:_,value:k,disabled:L}=I.props,O=b===k;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:L,onClick:()=>!L&&x(k),role:"tab","aria-selected":O,"aria-controls":`tabpanel-${k}`,id:`tab-${k}`,children:_},k)}),hoverable:!0,color:SM.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",N?"transition-none":"transition-transform duration-300 ease-in-out"),style:{gridTemplateColumns:`repeat(${c.length}, 100%)`,transform:`translateX(-${S*100-(N?R:0)}%)`},children:c.map(({props:I},_)=>{const{value:k,children:L}=I,O=_===S;return y.jsx("div",{role:"tabpanel","aria-labelledby":`tab-${k}`,id:`tabpanel-${k}`,"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:L})},k)})})})]})})},Gy=Object.assign(Mie,{Item:eE}),Pie=({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(st,{variant:"hoverable",size:"icon-md",onClick:()=>{s(!0)},label:"Move",Icon:XG})})}),y.jsx(bM,{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(xb,{isOpen:o,onClose:()=>s(!1),size:Eb.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"},it={MAX:0,HIGH:1,MED:2,LOW:3,MIN:4},GC=["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"}),KC={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Bie=["style","script","pre"],Uie=["src","href","data","formAction","srcDoc","action"],Vie=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Fie=/\n{2,}$/,$C=/^(\s*>[\s\S]*?)(?=\n\n|$)/,Hie=/^ *> ?/gm,Gie=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,Kie=/^ {2,}\n/,$ie=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,qC=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,ZC=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,qie=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,Zie=/^(?:\n *)*\n/,Yie=/\r\n?/g,Wie=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,Xie=/^\[\^([^\]]+)]/,Qie=/\f/g,Jie=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,eae=/^\s*?\[(x|\s)\]/,YC=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,WC=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,XC=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Ky=/^ *(?!<[a-zA-Z][^ >/]* ?\/>)<([a-zA-Z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,tae=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,QC=/^<!--[\s\S]*?(?:-->)/,nae=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,$y=/^ *<([a-zA-Z][a-zA-Z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,qy=/^ *<([A-Z][a-zA-Z0-9]*)(?:\s+((?:<.*?>|[^>])*))?>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/,rae=/^\{.*\}$/,iae=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,aae=/^<([^ >]+[:@/][^ >]+)>/,oae=/-([a-z])?/gi,JC=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,eR=/^[^\n]+(?: {2}\n|\n{2,})/,sae=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,lae=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,cae=/^\[([^\]]*)\] ?\[([^\]]*)\]/,uae=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,dae=/\t/g,fae=/(^ *\||\| *$)/g,hae=/^ *:-+: *$/,pae=/^ *:-+ *$/,mae=/^ *-+: *$/,tR=(e,t)=>{for(let n=0;n<e.length;n++)if(e[n].test(t))return!0;return!1},Ch=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Rh="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\[^\\s]|[\\s\\S])+?)",yae=new RegExp(`^([*_])\\1${Ch(1)}${Rh}\\1\\1(?!\\1)`),gae=new RegExp(`^([*_])${Ch(0)}${Rh}\\1(?!\\1)`),vae=new RegExp(`^(==)${Ch(0)}${Rh}\\1`),bae=new RegExp(`^(~~)${Ch(0)}${Rh}\\1`),Eae=/^(:[a-zA-Z0-9-_]+:)/,xae=/^\\([^0-9A-Za-z\s])/,Sae=/\\([^0-9A-Za-z\s])/g,Aae=/^[\s\S](?:(?! {2}\n|[0-9]\.|http)[^=*_~\-\n:<`\\[!])*/,Zy=/^\n+/,nR=/^([ \t]*)/,Ir=1,au=2,wae=/(?:^|\n)( *)$/,tE="(?:\\d+\\.)",nE="(?:[*+-])",wM=e=>"( *)("+(e===Ir?tE:nE)+") +",TM=wM(Ir),CM=wM(au),RM=e=>new RegExp("^"+(e===Ir?TM:CM)),Tae=RM(Ir),Cae=RM(au),IM=e=>new RegExp("^"+(e===Ir?TM:CM)+"[^\\n]*(?:\\n(?!\\1"+(e===Ir?tE:nE)+" )[^\\n]*)*(\\n|$)","gm"),Rae=IM(Ir),Iae=IM(au),_M=e=>{const t=e===Ir?tE:nE;return new RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")},NM=_M(Ir),kM=_M(au),rR=(e,t)=>{const n=e===Ir,i=n?NM:kM,o=n?Rae:Iae,s=n?Tae:Cae;return{_qualify:c=>s.test(c),_match:Vs((c,u)=>{const f=wae.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(Fie,`
294
- `).match(o);if(!g)return{items:[],ordered:n,start:p};let b=!1;return{items:g.map((S,w)=>{const A=s.exec(S);if(!A)return[];const R=A[0].length,N=new RegExp(`^ {1,${R}}`,"gm"),x=S.replace(N,"").replace(s,""),C=w===g.length-1,I=x.indexOf(`
295
-
296
- `)!==-1||C&&b;b=I;const _=f.inline,k=f.list;f.list=!0;let L;I?(f.inline=!1,L=`${Os(x)}
297
-
298
- `):(f.inline=!0,L=Os(x));const O=u(L,f);return f.inline=_,f.list=k,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)}}},_ae=new RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),Nae=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,Os=e=>{let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)},ff=(e,t)=>e.startsWith(t),kae=(e,t,n)=>{if(Array.isArray(n)){for(let i=0;i<n.length;i++)if(ff(e,n[i]))return!0;return!1}return n(e,t)},Lae=e=>{const t=e[0];return(t==='"'||t==="'")&&e.length>=2&&e[e.length-1]===t?e.slice(1,-1):e},sc=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(),Dae=e=>mae.test(e)?"right":hae.test(e)?"center":(pae.test(e),"left"),LM=(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>1&&console.log(`parseTableRow: ${h.toFixed(3)}ms, source length: ${e.length}, cells count: ${c.length}`),c},Oae=e=>e.replace(fae,"").split("|").map(Dae),jae=(e,t,n)=>{const i=performance.now(),o=e.trim().split(`
299
- `),s=o.map(u=>LM(u,t,n,!0)),c=performance.now()-i;return c>1&&console.log(`parseTableCells: ${c.toFixed(3)}ms, source length: ${e.length}, rows count: ${o.length}`),s},zae=(e,t,n)=>{n.inline=!0;const i=e[2]?Oae(e[2]):[],o=e[3]?jae(e[3],t,n):[],s=LM(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}},iR=(e,t)=>e.align[t]==null?{}:{textAlign:e.align[t]},Mae=e=>(e.indexOf("-")!==-1&&e.match(nae)===null&&(e=e.replace(oae,(t,n)=>n.toUpperCase())),e),Pae=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 S=g.slice(0,b).trim(),w=g.slice(b+1).trim();n.push([S,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>1&&console.log(`parseStyleAttribute: ${f.toFixed(3)}ms, styleString length: ${e.length}, styles count: ${n.length}`),n},aR=(e,t)=>{const n=performance.now();if(!t)return e;const i=e.split(`
300
- `);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(`
301
- `),h=performance.now()-n;return h>1&&console.log(`trimLeadingWhitespaceOutsideFences: ${h.toFixed(3)}ms, text length: ${e.length}, lines count: ${i.length}`),f},Bae=(e,t,n,i)=>t==="style"?Pae(n).reduce((o,[s,c])=>{const u=s.replace(/(-[a-z])/g,f=>f[1].toUpperCase());return o[u]=i(c,e,s),o},{}):Uie.indexOf(t)!==-1?i(Br(n),e,t):(n.match(rae)&&(n=Br(n.slice(1,n.length-1))),n==="true"?!0:n==="false"?!1:n),Uae=e=>{const t=performance.now(),n=e.replace(Yie,`
302
- `).replace(Qie,"").replace(dae," "),i=performance.now()-t;return i>1&&console.log(`normalizeWhitespace: ${i.toFixed(3)}ms, source length: ${e.length}`),n},Vae=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&&!kae(s,c,b._qualify)){p++;continue}const S=performance.now(),w=b._match(s,c),A=performance.now()-S;if(A>1&&console.log(`${g}._match: ${A.toFixed(3)}ms, source length: ${s.length}`),w?.[0]){s=s.substring(w[0].length);const R=performance.now(),N=b._parse(w,i,c),x=performance.now()-R;x>1&&console.log(`${g}._parse: ${x.toFixed(3)}ms, capture length: ${w[0].length}`),c.prevCapture+=w[0],N.type||(N.type=g),f.push(N);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>1&&console.log(`parserFor: ${o.toFixed(3)}ms, rules count: ${n.length}`),(s,c)=>i(Uae(s),c)},Vs=e=>(e.inline=1,e),Qa=e=>Vs((t,n)=>n.inline?e.exec(t):null),sa=e=>Vs((t,n)=>n.inline||n.simple?e.exec(t):null),Pr=e=>(t,n)=>n.inline||n.simple?null:e.exec(t),Zd=e=>Vs(t=>e.exec(t)),Fae=/(javascript|vbscript|data(?!:image)):/i,Hae=e=>{try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(Fae.test(t))return null}catch{return null}return e},Br=e=>e&&e.replace(Sae,"$1"),Es=(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>1&&console.log(`parseInline: ${u.toFixed(3)}ms, children length: ${t.length}, result count: ${c.length}`),c},Gae=(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>1&&console.log(`parseSimpleInline: ${u.toFixed(3)}ms, children length: ${t.length}, result count: ${c.length}`),c},Yy=(e,t,n={})=>{const i=performance.now(),o=n.inline||!1;n.inline=!1;const s=Os(t),c=e(/\n\n$/.test(s)===!1?s.endsWith(`
303
- `)?`${s}
304
- `:`${s}
305
-
306
- `:s,n);n.inline=o;const u=performance.now()-i;return u>1&&console.log(`parseBlock: ${u.toFixed(3)}ms, children length: ${t.length}, result count: ${c.length}`),c},Wy=(e,t,n)=>({children:Es(t,e[2],n)}),Xy=()=>({}),Qy=()=>null,DM=e=>(t,n={})=>{const i=performance.now(),o=(u,f={})=>DM(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),S=typeof b=="string";S&&h?f[f.length-1]=f[f.length-1]+b:b!==null&&f.push(b),h=S}n.key=u;const p=performance.now()-i;return p>1&&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>1&&console.log(`reactFor (single): ${c.toFixed(3)}ms, ast type: ${t.type}`),s},Kae=(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>1&&console.log(`createRenderer: ${f.toFixed(3)}ms, ast type: ${n.type}, hasUserRender: ${!!t}`),u},oR=(...e)=>e.filter(Boolean).join(" "),Ff=(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},sR=(e,t)=>{const n=Ff(t,e);return n?typeof n=="function"||typeof n=="object"&&"render"in n?n:Ff(t,`${e}.component`,e):e},$ae=(e="",t={})=>{t.overrides=t.overrides??{},t.namedCodesToUnicode=t.namedCodesToUnicode?{...KC,...t.namedCodesToUnicode}:KC;const n=t.slugify??sc,i=t.sanitizer??Hae,o=t.createElement??E.createElement,s=[$C,qC,ZC,t.enforceAtxHeadings?WC:YC,XC,JC,NM,kM],c=[...s,eR,Ky,QC,$y,qy],u=x=>{const C=x.replace(Zy,""),I=C.length>2048?C.slice(0,2048):C;return tR(t.disableParsingRawHTML?[...s,eR,qy]:c,I)},f=(x,C)=>{if(C.inline||C.simple||C.inHTML&&x.indexOf(`
307
-
308
- `)===-1&&C.prevCapture?.indexOf(`
309
-
310
- `)===-1)return null;let I=0;for(;;){const L=x.indexOf(`
311
- `,I),O=x.slice(I,L===-1?void 0:L+1);if(tR(s,O)||L===-1||!O.trim())break;I=L+1}const _=x.slice(0,I),k=Os(_);return k===""?null:[_,void 0,k]},h=(x,C,...I)=>{const _=Ff(t.overrides??{},`${x}.props`,{}),k=oR(C?.className,_.className),L={...C,..._,...k&&{className:k}};return o(sR(x,t.overrides??{}),L,...I.length===1?[I[0]]:I)},p=x=>{const C=performance.now(),I=x.replace(Jie,"");let _=!1;if(t.forceInline)_=!0;else if(!t.forceBlock){const $=I.replace(Zy,"");_=uae.test($)===!1}const k=R(A(_?I:`${Os(I).replace(Zy,"")}
312
-
313
- `,{inline:_}),{inline:_});for(;typeof k[k.length-1]=="string"&&!k[k.length-1].trim();)k.pop();if(t.wrapper===null){const $=performance.now()-C;return $>1&&console.log(`compile: ${$.toFixed(3)}ms, input length: ${x.length}, inline: ${_}`),k}const L=t.wrapper??(_?"span":"div");let O;if(k.length>1||t.forceWrapper)O=k;else if(k.length===1)if(O=k[0],typeof O=="string"){const $=performance.now()-C;$>1&&console.log(`compile: ${$.toFixed(3)}ms, input length: ${x.length}, inline: ${_}`);const H={key:"outer"};if(!_&&t.overrides){const ae=Ff(t.overrides,"p.props",{});if(ae&&typeof ae=="object"){const ce=oR(H.className,ae.className);Object.assign(H,ae),ce&&(H.className=ce)}}return o("span",H,O)}else{const $=performance.now()-C;return $>1&&console.log(`compile: ${$.toFixed(3)}ms, input length: ${x.length}, inline: ${_}`),O}else O=null;const V=performance.now()-C;return V>1&&console.log(`compile: ${V.toFixed(3)}ms, input length: ${x.length}, inline: ${_}`),o(L,{key:"outer"},O)},g=(x,C)=>{const I=performance.now();if(!C||!C.trim())return null;const _=C.match(Vie);if(!_)return null;const k=_.reduce((O,V)=>{const $=V.indexOf("=");if($!==-1){const H=Mae(V.slice(0,$)).trim(),ae=Lae(V.slice($+1).trim()),ce=GC[H]??H;if(ce==="ref")return O;const X=Bae(x,H,ae,i);O[ce]=X,typeof X=="string"&&(Ky.test(X)||$y.test(X))&&(O[ce]=p(X.trim()))}else V!=="style"&&(O[GC[V]??V]=!0);return O},{}),L=performance.now()-I;return L>1&&console.log(`attrStringToMap: ${L.toFixed(3)}ms, str length: ${C.length}, attributes count: ${_.length}`),k},b=[],S={},w={[Le.blockQuote]:{_qualify:[">"],_match:Pr($C),_order:it.HIGH,_parse(x,C,I){const _=performance.now(),k=x[0].replace(Hie,"").match(Gie),L=k?.[1],O=k?.[2]??"",V={alert:L,children:O.indexOf(`
314
- `)!==-1?Yy(C,O,I):Es(C,O,I)},$=performance.now()-_;return $>1&&console.log(`blockQuote._parse: ${$.toFixed(3)}ms, capture length: ${x[0].length}`),V},_render(x,C,I={}){const _=performance.now(),k={key:I?.key};x.alert&&(k.className=`markdown-alert-${n(x.alert.toLowerCase(),sc)}`,x.children.unshift({attrs:{},children:[{type:Le.text,text:x.alert}],noInnerParse:!0,type:Le.htmlBlock,tag:"header"}));const L=h("blockquote",k,C(x.children,I)),O=performance.now()-_;return O>1&&console.log(`blockQuote._render: ${O.toFixed(3)}ms, children count: ${x.children.length}, has alert: ${!!x.alert}`),L}},[Le.breakLine]:{_qualify:[" "],_match:Zd(Kie),_order:it.HIGH,_parse:Xy,_render(x,C,I={}){return h("br",{key:I.key})}},[Le.breakThematic]:{_qualify:["--","__","**","- ","* ","_ "],_match:Pr($ie),_order:it.HIGH,_parse:Xy,_render(x,C,I={}){return h("hr",{key:I.key})}},[Le.codeBlock]:{_qualify:[" "],_match:Pr(ZC),_order:it.MAX,_parse(x){return{type:Le.codeBlock,lang:void 0,text:Br(Os(x[0].replace(/^ {4}/gm,"")))}},_render(x,C,I={}){const _=performance.now(),k={...x.attrs??{}},L=x.lang?`lang-${x.lang}`:"lang-plaintext";k.className=k.className?`${k.className} ${L}`:L,x.lang&&!k.lang&&(k.lang=x.lang);const O=h("pre",{key:I.key},h("code",k,x.text)),V=performance.now()-_;return V>1&&console.log(`codeBlock._render: ${V.toFixed(3)}ms, text length: ${x.text.length}, lang: ${x.lang||"none"}`),O}},[Le.codeFenced]:{_qualify:["```","~~~"],_match:Pr(qC),_order:it.MAX,_parse(x){const C=x[4];return{attrs:g("code",x[3]??""),lang:x[2]||void 0,text:C,type:Le.codeBlock}}},[Le.codeInline]:{_qualify:["`"],_match:sa(qie),_order:it.LOW,_parse(x){return{text:Br(x[2])}},_render(x,C,I={}){const _=performance.now(),k=h("code",{key:I.key},x.text),L=performance.now()-_;return L>1&&console.log(`codeInline._render: ${L.toFixed(3)}ms, text length: ${x.text.length}`),k}},[Le.footnote]:{_qualify:["[^"],_match:Pr(Wie),_order:it.MAX,_parse(x){return b.push({footnote:x[2],identifier:x[1]}),{}},_render:Qy},[Le.footnoteReference]:{_qualify:["[^"],_match:Qa(Xie),_order:it.HIGH,_parse(x){return{target:`#${n(x[1],sc)}`,text:x[1]}},_render(x,C,I={}){return y.jsx("a",{href:i(x.target,"a","href")??void 0,children:y.jsx("sup",{children:x.text},I.key)},I.key)}},[Le.gfmTask]:{_qualify:["[ ]","[x]"],_match:Qa(eae),_order:it.HIGH,_parse(x){return{completed:x[1].toLowerCase()==="x"}},_render(x,C,I={}){return h("input",{checked:x.completed,key:I.key,readOnly:!0,type:"checkbox"})}},[Le.heading]:{_qualify:["#"],_match:Pr(t.enforceAtxHeadings?WC:YC),_order:it.HIGH,_parse(x,C,I){const _=performance.now(),k={children:Es(C,x[2],I),id:n(x[2],sc),level:x[1].length},L=performance.now()-_;return L>1&&console.log(`heading._parse: ${L.toFixed(3)}ms, capture length: ${x[0].length}, level: ${x[1].length}`),k},_render(x,C,I={}){const _=performance.now(),k=h(`h${x.level}`,{id:x.id,key:I.key},C(x.children,I)),L=performance.now()-_;return L>1&&console.log(`heading._render: ${L.toFixed(3)}ms, level: ${x.level}, children count: ${x.children.length}, id: ${x.id}`),k}},[Le.headingSetext]:{_qualify:x=>{const C=x.indexOf(`
315
- `);return C>0&&C<x.length-1&&(x[C+1]==="="||x[C+1]==="-")},_match:Pr(XC),_order:it.MAX,_parse(x,C,I){return{children:Es(C,x[1],I),level:x[2]==="="?1:2,type:Le.heading}}},[Le.htmlBlock]:{_qualify:x=>{if(t.disableParsingRawHTML||x[0]!=="<"||!/^<([a-z][a-z0-9:-]*)\b/.test(x))return!1;const C=x.match(/^<([a-z][a-z0-9:-]*)\b/)?.[1];return C?x.indexOf(`</${C}>`)!==-1:!1},_match:Zd(Ky),_order:it.HIGH,_parse(x,C,I){const _=x[3].match(nR)?.[1]??"",k=aR(x[3],_),L=u(k)?Yy:Es,O=x[1].toLowerCase(),V=Bie.indexOf(O)!==-1,$=(V?O:x[1]).trim(),H={attrs:g($,x[2]??""),noInnerParse:V,tag:$};if(I.inAnchor=I.inAnchor||O==="a",V)H.text=x[3];else{const ae=I.inHTML;I.inHTML=!0,H.children=L(C,k,I),I.inHTML=ae}return I.inAnchor=!1,H},_render(x,C,I={}){const _=performance.now(),k=h(x.tag,{key:I.key,...x.attrs??{}},x.text??(x.children?C(x.children,I):"")),L=performance.now()-_;return L>1&&console.log(`htmlBlock._render: ${L.toFixed(3)}ms, tag: ${x.tag}, has text: ${!!x.text}, has children: ${!!x.children}`),k}},[Le.htmlSelfClosing]:{_qualify:x=>t.disableParsingRawHTML||x[0]!=="<"?!1:/^<([a-zA-Z][a-zA-Z0-9:]*)[\s>/]/.test(x),_match:Zd($y),_order:it.HIGH,_parse(x){const C=x[1].trim();return{attrs:g(C,x[2]||""),tag:C}},_render(x,C,I={}){const _=performance.now(),k=h(x.tag,{key:I.key,...x.attrs??{}}),L=performance.now()-_;return L>1&&console.log(`htmlSelfClosing._render: ${L.toFixed(3)}ms, tag: ${x.tag}`),k}},[Le.htmlComment]:{_qualify:["<!--"],_match:Zd(QC),_order:it.HIGH,_parse(){return{}},_render:Qy},[Le.customComponent]:{_qualify:x=>!!x.match(/^ *<([A-Z][a-zA-Z0-9]*)/),_match:Pr(qy),_order:it.MAX,_parse(x,C,I){const _=x[3].match(nR)?.[1]??"",k=aR(x[3],_),L=u(k)?Yy:Es,O=x[1],V={attrs:g(O,x[2]??""),noInnerParse:!1,tag:O};{const $=I.inHTML;I.inHTML=!0,V.children=L(C,k,I),I.inHTML=$}return V},_render(x,C,I={}){const _=sR(x.tag,t.overrides??{});if(typeof _=="function"){const k=x.children?C(x.children,I):null;return _({key:I.key,...x.attrs,children:k})}return o(x.tag,{key:I.key,...x.attrs},x.text??(x.children?C(x.children,I):""))}},[Le.image]:{_qualify:["!["],_match:sa(Nae),_order:it.HIGH,_parse(x){return{alt:Br(x[1]),target:Br(x[2]),title:Br(x[3])}},_render(x,C,I={}){return h("img",{key:I.key,alt:x.alt??void 0,title:x.title??void 0,src:i(x.target,"img","src")??void 0})}},[Le.link]:{_qualify:["["],_match:Qa(_ae),_order:it.LOW,_parse(x,C,I){return{children:Gae(C,x[1],I),target:Br(x[2]),title:Br(x[3])}},_render(x,C,I={}){return h("a",{key:I.key,href:i(x.target,"a","href")??void 0,title:x.title},C(x.children,I??{}))}},[Le.linkAngleBraceStyleDetector]:{_qualify:["<"],_match:Qa(aae),_order:it.MAX,_parse(x){let C=x[1],I=!1;return C.indexOf("@")!==-1&&C.indexOf("//")===-1&&(I=!0,C=C.replace("mailto:","")),{children:[{text:C,type:Le.text}],target:I?`mailto:${C}`:C,type:Le.link}}},[Le.linkBareUrlDetector]:{_qualify:(x,C)=>C.inAnchor||t.disableAutoLink?!1:ff(x,"http://")||ff(x,"https://"),_match:Qa(iae),_order:it.MAX,_parse(x){return{children:[{text:x[1],type:Le.text}],target:x[1],title:void 0,type:Le.link}}},[Le.orderedList]:rR(Ir,(x,C,...I)=>h(x,C,...I)),[Le.unorderedList]:rR(au,(x,C,...I)=>h(x,C,...I)),[Le.newlineCoalescer]:{_qualify:[`
316
- `],_match:Pr(Zie),_order:it.LOW,_parse:Xy,_render(){return`
317
- `}},[Le.paragraph]:{_match:Vs(f),_order:it.LOW,_parse(x,C,I){const _=performance.now(),k=Wy(x,C,I),L=performance.now()-_;return L>1&&console.log(`paragraph._parse: ${L.toFixed(3)}ms, capture length: ${x[0].length}`),k},_render(x,C,I={}){const _=performance.now(),k=h("p",{key:I.key},C(x.children,I)),L=performance.now()-_;return L>1&&console.log(`paragraph._render: ${L.toFixed(3)}ms, children count: ${x.children.length}`),k}},[Le.ref]:{_qualify:["["],_match:Qa(sae),_order:it.MAX,_parse(x){return S[x[1]]={target:x[2],title:x[4]},{}},_render:Qy},[Le.refImage]:{_qualify:["!["],_match:sa(lae),_order:it.MAX,_parse(x){return{alt:x[1]?Br(x[1]):void 0,ref:x[2]}},_render(x,C,I={}){return S[x.ref]?y.jsx("img",{alt:x.alt,src:i(S[x.ref].target,"img","src")??void 0,title:S[x.ref].title},I.key):null}},[Le.refLink]:{_qualify:x=>x[0]==="["&&x.indexOf("](")===-1,_match:Qa(cae),_order:it.MAX,_parse(x,C,I){return{children:C(x[1],I),fallbackChildren:x[0],ref:x[2]}},_render(x,C,I={}){return S[x.ref]?y.jsx("a",{href:i(S[x.ref].target,"a","href")??void 0,title:S[x.ref].title,children:C(x.children,I)},I.key):y.jsx("span",{children:x.fallbackChildren},I.key)}},[Le.table]:{_qualify:["|"],_match:Pr(JC),_order:it.HIGH,_parse(x,C,I){const _=performance.now(),k=zae(x,C,I),L=performance.now()-_;return L>1&&console.log(`table._parse: ${L.toFixed(3)}ms, capture length: ${x[0].length}`),k},_render(x,C,I={}){const _=performance.now(),k=x,L=h("table",{key:I.key},h("thead",{},h("tr",{},...k.header.map((V,$)=>h("th",{key:$,style:iR(k,$)},C(V,I))))),h("tbody",{},...k.cells.map((V,$)=>h("tr",{key:$},...V.map((H,ae)=>h("td",{key:ae,style:iR(k,ae)},C(H,I))))))),O=performance.now()-_;return O>1&&console.log(`table._render: ${O.toFixed(3)}ms, header count: ${k.header.length}, rows count: ${k.cells.length}`),L}},[Le.text]:{_match:Vs((x,C)=>{if(ff(x,":")){const I=Eae.exec(x);if(I)return I}return Aae.exec(x)}),_order:it.MIN,_parse(x){const C=x[0];return{text:C.indexOf("&")===-1?C:C.replace(tae,(I,_)=>t.namedCodesToUnicode?.[_]??I)}},_render(x){return x.text}},[Le.textBolded]:{_qualify:["**","__"],_match:sa(yae),_order:it.MED,_parse(x,C,I){return{children:C(x[2],I)}},_render(x,C,I={}){const _=performance.now(),k=h("strong",{key:I.key},C(x.children,I)),L=performance.now()-_;return L>1&&console.log(`textBolded._render: ${L.toFixed(3)}ms, children count: ${x.children.length}`),k}},[Le.textEmphasized]:{_qualify:x=>{const C=x[0];return(C==="*"||C==="_")&&x[1]!==C},_match:sa(gae),_order:it.LOW,_parse(x,C,I){return{children:C(x[2],I)}},_render(x,C,I={}){const _=performance.now(),k=h("em",{key:I.key},C(x.children,I)),L=performance.now()-_;return L>1&&console.log(`textEmphasized._render: ${L.toFixed(3)}ms, children count: ${x.children.length}`),k}},[Le.textEscaped]:{_qualify:["\\"],_match:sa(xae),_order:it.HIGH,_parse(x){return{text:x[1],type:Le.text}}},[Le.textMarked]:{_qualify:["=="],_match:sa(vae),_order:it.LOW,_parse:Wy,_render(x,C,I={}){return h("mark",{key:I.key},C(x.children,I))}},[Le.textStrikethroughed]:{_qualify:["~~"],_match:sa(bae),_order:it.LOW,_parse:Wy,_render(x,C,I={}){return h("del",{key:I.key},C(x.children,I))}}};t.disableParsingRawHTML===!0&&(delete w[Le.htmlBlock],delete w[Le.htmlSelfClosing]);const A=Vae(w),R=DM(Kae(w,t.renderRule)),N=p(e);return b.length?y.jsxs("div",{children:[N,y.jsx("footer",{children:b.map(x=>y.jsxs("div",{id:n(x.identifier,sc),children:[x.identifier,R(A(x.footnote,{inline:!0}),{inline:!0})]},x.identifier))},"footer")]}):N},qae=({children:e="",options:t,...n})=>E.cloneElement($ae(e,t),n),Zae=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(`
318
- `):e},Yae=({children:e,isDarkMode:t,locale:n,options:i})=>{const{overrides:o,...s}=i??{},c=Zae(e);return y.jsx(xie,{children:y.jsx(Oie,{children:y.jsx(qae,{options:{overrides:{h1:u=>y.jsx(U5,{isClickable:!0,...u}),h2:u=>y.jsx(V5,{isClickable:!0,...u}),h3:u=>y.jsx(Uv,{isClickable:!0,...u}),h4:u=>y.jsx(F5,{isClickable:!0,...u}),h5:u=>y.jsx(H5,{isClickable:!0,...u}),h6:u=>y.jsx(G5,{isClickable:!0,...u}),code:u=>u.className?y.jsx(Iie,{...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(Dv,{color:"neutral",isExternalLink:u.href?.startsWith("http"),underlined:!0,locale:n,...u}),pre:u=>u.children,table:u=>y.jsx(Pie,{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(Gy,{...u}),Tab:u=>y.jsx(Gy,{...u}),TabItem:u=>y.jsx(Gy.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??""})})})},Wae=(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},hv=({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(R=>R+1)},b=()=>{t(c)},S=R=>{u(R.currentTarget.value)},w=R=>{R.key==="Enter"&&!n&&A?(R.preventDefault(),b()):R.key==="Escape"&&(R.preventDefault(),g())};E.useEffect(()=>{u(e),h(R=>R+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(Qs,{onChange:S,onKeyDown:w,"aria-label":"Editable input value","aria-describedby":p||o?"content-editor-input-actions":void 0,"aria-invalid":!A,variant:fo.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(st,{Icon:Zs,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(st,{Icon:So,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))},Xae=()=>{const{session:e,revalidateSession:t,setSession:n}=lh(),{mutate:i}=lW(),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()}}},Qae=({children:e,onContentChange:t,disabled:n,validate:i,additionalButtons:o,...s})=>{const{isAuthenticated:c}=Xae(),[u,f]=E.useState(e),[h,p]=E.useState(0),g=u!==e,b=()=>{f(e),p(N=>N+1)},S=()=>{t(u)},w=N=>f(N.currentTarget.value??""),A=N=>{N.key==="Enter"&&(N.metaKey||N.ctrlKey)&&!n&&R?(N.preventDefault(),S()):N.key==="Escape"&&(N.preventDefault(),b())};E.useEffect(()=>{f(e),p(N=>N+1)},[e]);const R=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(vW,{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":!R,...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(st,{Icon:Zs,label:`Save changes${R?"":" (invalid content)"}`,variant:Ve.HOVERABLE,color:Pe.TEXT,size:Je.ICON_SM,className:"cursor-pointer hover:scale-110",disabled:n||!R,onClick:S,"aria-describedby":R?void 0:"textarea-validation-error"}),y.jsx(st,{Icon:So,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)},Jae=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}},eoe=({value:e,onChange:t})=>{const{comparator:n,numberValue:i}=E.useMemo(()=>Jae(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(Qs,{type:"number","aria-label":"Quantity",defaultValue:c??void 0,onChange:f=>u(f.target.value),className:"min-w-4"})]})},toe=({keyPath:e,dictionary:t,...n})=>{const{editedContent:i,addEditedContent:o}=bn(),s=Qr(),{mutate:c,isPending:u}=pW();return y.jsx(Qae,{variant:fo.DEFAULT,onContentChange:f=>o(t.localId,f,e),additionalButtons:y.jsx(st,{Icon:_1,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})},noe=({keyPath:e,dictionary:t,...n})=>{const{addEditedContent:i}=bn();return y.jsx(hv,{variant:fo.DEFAULT,onContentChange:o=>i(t.localId,o,e),...n})},roe=[{content:"False",value:!1},{content:"True",value:!0}],ioe=({dictionary:e,keyPath:t,...n})=>{const{addEditedContent:i}=bn();return y.jsx(ru,{choices:roe,value:!0,onChange:o=>i(e.localId,o,t),color:Ft.TEXT,size:Ti.SM,...n})},aoe=({section:e,keyPath:t,dictionary:n,renderSection:i})=>{const{locale:o,defaultLocale:s}=Tv(),{selectedLocales:c,availableLocales:u}=cM(),f=e[F.Translation],h=Object.keys(f),p=u.length>c.length?c:[...new Set([...u,...h])],g=e[F.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:Jd(b,o)}),y.jsx("tr",{children:y.jsx(_a,{section:g[b]??Zn(g[s]),keyPath:[...t,{type:F.Translation,key:b}],dictionary:n,renderSection:i})})]},b))})})},ooe=({section:e,keyPath:t,dictionary:n,renderSection:i})=>{const{addEditedContent:o}=bn(),{addNewEnumeration:s,removeEnumeration:c}=Ot("navigation-view"),u=e[F.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[F.Enumeration]).map(h=>{const p=[...t,{type:F.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(st,{label:c.label.value,variant:Ve.HOVERABLE,color:Pe.TEXT,Icon:Xf,className:"ml-auto",onClick:()=>o(n.localId,void 0,p),children:c.text})})}),y.jsx("tr",{className:"w-full p-2",children:y.jsx(eoe,{value:h,onChange:g=>{const b=e[F.Enumeration],S=Wae(b,h,g),w={...e,[F.Enumeration]:S};o(n.localId,w,t)}})}),y.jsx("tr",{className:"block w-full",children:y.jsx(rE,{section:u[h]??Zn(u[f]),keyPath:p,dictionary:n,renderSection:i})})]},h)})})}),y.jsx(st,{label:s.label.value,variant:Ve.HOVERABLE,color:Pe.NEUTRAL,textAlign:wr.LEFT,isFullWidth:!0,onClick:()=>o(n.localId,Zn(u[f])??"",[...t,{type:F.Enumeration,key:"unknown"}]),Icon:Wf,className:"m-2",children:s.text})]})},soe=({section:e,keyPath:t,dictionary:n,renderSection:i})=>{const o=e[F.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(_a,{section:o[s]??Zn(o.true),keyPath:[...t,{type:F.Condition,key:s}],dictionary:n,renderSection:i})},s)]},s))})})},loe=({section:e,keyPath:t,dictionary:n,renderSection:i})=>{const o=e[F.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(_a,{section:o[s]??Zn(o.male),keyPath:[...t,{type:F.Gender,key:s}],dictionary:n,renderSection:i})},s)]},s))})})},coe=({section:e,keyPath:t,dictionary:n,renderSection:i})=>{const{addEditedContent:o}=bn(),{addNewElement:s,removeElement:c}=Ot("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(st,{label:c.label.value,variant:Ve.HOVERABLE,color:Pe.NEUTRAL,className:"ml-auto",textAlign:wr.LEFT,onClick:()=>{const h=[...t,{type:F.Array,key:e.length}];o(n.localId,void 0,h)},Icon:Xf,children:c.text})]}),y.jsx("tr",{className:"block w-full",children:y.jsx(_a,{section:u??Zn(e[0]),keyPath:[...t,{type:F.Array,key:f}],dictionary:n,renderSection:i})})]},JSON.stringify(u)))})}),y.jsx(st,{label:s.label.value,variant:Ve.HOVERABLE,color:Pe.NEUTRAL,textAlign:wr.LEFT,isFullWidth:!0,onClick:()=>{const u=[...t,{type:F.Array,key:e.length}];o(n.localId,Zn(e[0])??"",u,!1)},Icon:Wf,children:s.text})]})},uoe=({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:F.Object,key:o}],c=e,u=Object.keys(c)[0],f=c[o]??Zn(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(rE,{section:f,keyPath:s,dictionary:n,renderSection:i})},JSON.stringify(f))]},o)})})})});var dc=function(e){return e[e.Edit=0]="Edit",e[e.Preview=1]="Preview",e}(dc||{});const doe=({section:e,keyPath:t,dictionary:n,isDarkMode:i})=>{const[o,s]=E.useState(dc.Edit),c=[{content:"Edit",value:dc.Edit},{content:"Preview",value:dc.Preview}],u=[...t,{type:F.Markdown}],f=e[F.Markdown];return y.jsxs("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:[y.jsx(ru,{choices:c,value:o,onChange:s,color:Ft.TEXT,size:Ti.SM,className:"ml-auto"}),y.jsx(_a,{section:f,keyPath:u,dictionary:n,renderSection:o===dc.Preview?h=>y.jsx(Yae,{isDarkMode:i,children:h}):void 0})]})},foe=({section:e,keyPath:t,...n})=>{const i=[...t,{type:F.Insertion}],o=e[F.Insertion];return y.jsx("div",{className:"flex w-full flex-col justify-center gap-6 p-2",children:y.jsx(_a,{section:o,keyPath:i,...n})})},hoe=({section:e,keyPath:t,...n})=>{const i=[...t,{type:F.File}],o=e[F.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(_a,{section:s,keyPath:i,...n})]})},poe=({keyPath:e,dictionary:t,renderSection:n,section:i,...o})=>{const{addEditedContent:s}=bn(),c=i[F.Nested],u=[...e,{type:F.Nested}];return y.jsxs("div",{className:"w-full p-2",children:[y.jsx(Pg,{children:"Dictionary key"}),y.jsx(hv,{"aria-label":"Edit field",type:"text",variant:fo.DEFAULT,...o,onContentChange:f=>{s(t.localId,{...c,dictionaryKey:String(f)},u)},children:c.dictionaryKey??""}),y.jsx(Pg,{children:"Path (optional)"}),y.jsx(hv,{"aria-label":"Edit field",type:"text",variant:fo.DEFAULT,...o,onContentChange:f=>{s(t.localId,{...c,path:f!==""?f:void 0},u)},children:c.path??""})]})},rE=({section:e,keyPath:t,dictionary:n,renderSection:i,isDarkMode:o})=>{const{tsxNotEditable:s}=Ot("navigation-view"),c=Fs(e);return c===F.ReactNode?y.jsxs(y.Fragment,{children:[y.jsx("span",{children:"[React Node]"}),y.jsx("span",{className:"text-neutral text-xs",children:s})]}):c===F.Nested?y.jsx(poe,{dictionary:n,renderSection:i,keyPath:t,section:e}):c===F.Translation?y.jsx(aoe,{dictionary:n,renderSection:i,keyPath:t,section:e}):c===F.Enumeration?y.jsx(ooe,{dictionary:n,renderSection:i,keyPath:t,section:e}):c===F.Condition?y.jsx(soe,{dictionary:n,renderSection:i,keyPath:t,section:e}):c===F.Gender?y.jsx(loe,{dictionary:n,renderSection:i,keyPath:t,section:e}):c===F.Insertion?y.jsx(foe,{dictionary:n,renderSection:i,keyPath:t,section:e}):c===F.Markdown?y.jsx(doe,{dictionary:n,keyPath:t,section:e,isDarkMode:o}):c===F.File?y.jsx(hoe,{dictionary:n,renderSection:i,keyPath:t,section:e}):c===F.Array?y.jsx(coe,{dictionary:n,renderSection:i,keyPath:t,section:e}):c===F.Object?y.jsx(uoe,{dictionary:n,renderSection:i,keyPath:t,section:e}):c===F.Number?y.jsx("div",{className:"w-full p-2",children:y.jsx(noe,{dictionary:n,keyPath:t,type:"number","aria-label":"Edit field",children:e})}):c===F.Text?y.jsx("div",{className:"w-full p-2",children:typeof i=="function"?i(e):y.jsx(toe,{variant:fo.DEFAULT,"aria-label":"Edit field",keyPath:t,dictionary:n,children:e})}):c===F.Boolean?y.jsx("div",{className:"w-full p-2",children:y.jsx(ioe,{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]})},_a=e=>y.jsx(Nr,{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(rE,{...e})}),Pc=e=>{const t=LL(e),n=Fs(e);return t&&(n===F.ReactNode||n===F.File)?!0:t&&typeof t.nodeType=="string"?Pc(t[t.nodeType]):typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t>"u"},moe=({keyPath:e,dictionaryKey:t,onClickKeyPath:n,locale:i})=>y.jsx(vK,{links:[{text:t,onClick:()=>n([])},...e.map((o,s)=>({onClick:()=>n(e.slice(0,s+1)),text:o.key?.toString()??""}))],locale:i,elementType:"location"}),hf=e=>String(e).replace(/([A-Z])/g," $1").toLowerCase().trim(),xs=({section:e,keyPath:t,dictionary:n})=>{const{locales:i}=Qe.internationalization,o=qn(e,t),{addEditedContent:s}=Hs(),{setFocusedContentKeyPath:c,focusedContent:u}=va(),{addNewElement:f,goToField:h}=Ot("navigation-view"),p=Fs(o),g=S=>(u?.keyPath?.length??0)>0&&Vc(S,u?.keyPath??[]),b=Pc(o);return o?b?y.jsx(st,{label:h.label.value,variant:Ve.HOVERABLE,color:Pe.TEXT,className:"w-full",onClick:()=>c(t),IconRight:vf,children:hf(t[t.length-1].key)}):typeof o=="object"?p===F.ReactNode?y.jsx(y.Fragment,{children:"React Node"}):p===F.Translation?y.jsx("div",{className:"flex flex-col justify-between gap-2",children:i.map(S=>y.jsx(xs,{keyPath:[...t,{type:F.Translation,key:S}],section:e,dictionary:n},S))}):p===F.Enumeration||p===F.Condition?y.jsx("div",{className:"flex flex-col justify-between gap-2",children:Object.keys(o[p]).map(S=>y.jsx(xs,{keyPath:[...t,{type:p,key:S}],section:e,dictionary:n},S))}):p===F.Array?y.jsxs("div",{className:"flex flex-col justify-between gap-2",children:[o.map((S,w)=>{const A=[...t,{type:F.Array,key:w}];return y.jsx(xs,{keyPath:A,section:e,dictionary:n},JSON.stringify(A))}),y.jsx(st,{label:f.label.value,variant:Ve.HOVERABLE,color:Pe.NEUTRAL,textAlign:wr.LEFT,onClick:()=>{const S=[...t,{type:F.Array,key:o.length}],w=o,A=Zn(w[w.length-1])??"";s(n.localId,A,S,!1),c(S)},Icon:Wf,children:f.text})]}):typeof o.nodeType=="string"?y.jsx(xs,{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(S=>{const w=[...t,{type:F.Object,key:S}];return Pc(qn(e,w))?y.jsx(st,{label:`${h.label.value} ${S}`,isActive:g(w),variant:Ve.HOVERABLE,color:Pe.TEXT,className:"w-full",onClick:()=>c(w),IconRight:vf,children:hf(S)},S):y.jsx(N1,{label:`${h.label.value} ${S}`,isActive:g(w),onClick:()=>c(w),header:hf(S),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(xs,{keyPath:w,section:e,dictionary:n})})})},S)})}):y.jsxs(y.Fragment,{children:["Error loading section --",p,"--",JSON.stringify(o),"--",JSON.stringify(t)]}):y.jsx(y.Fragment,{})},yoe=({dictionary:e,isDarkMode:t})=>{const{content:n,key:i,localId:o}=e,{editedContent:s}=bn(),{focusedContent:c,setFocusedContentKeyPath:u}=va(),f=c?.keyPath,h=typeof s?.[o]?.content>"u"?n:s?.[o]?.content,p=qn(h,f??[]),g=Pc(h),b=Pc(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(moe,{dictionaryKey:i,keyPath:f??[],onClickKeyPath:u}),y.jsx("div",{className:"flex items-center gap-2",children:y.jsx(die,{})})]}),y.jsxs("div",{className:"flex gap-2 max-md:flex-col",children:[typeof h=="object"&&h&&!g&&Object.keys(h).length>0&&y.jsx(Nr,{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(xs,{keyPath:[],section:h,dictionary:e})}),(b||(f??[]).length>0)&&y.jsx(_a,{keyPath:f??[],section:p,dictionary:e,isDarkMode:t})]})]})},goe=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}=Ot("dictionary-detail-schema");return tre({title:oc({error:S=>S.input===void 0?t.value:n.value}).refine(S=>S.length===0||S.length>=4,{error:i.value}).optional(),key:oc({error:S=>S.input===void 0?o.value:s.value}).min(4,{error:u.value}).regex(/^[a-zA-Z0-9-_]+$/,{error:c.value}).default(""),description:oc({error:S=>S.input===void 0?f.value:h.value}).optional(),projectIds:iv(oc({error:S=>S.input===void 0?p.value:g.value})).default([e]),tags:iv(oc({error:()=>b.value})).default([])})},voe=({dictionary:e})=>{const{session:t}=Oj(),{project:n}=t??{},{data:i,isLoading:o}=cW(),{data:s}=fW(),c=goe(String(n?.id)),{form:u,isSubmitting:f}=Pte(c,{defaultValues:e}),{editedContent:h,setEditedDictionary:p}=bn(),{titleInput:g,keyInput:b,descriptionInput:S,projectInput:w,tagsSelect:A,auditButton:R}=Ot("dictionary-details"),{mutate:N,isPending:x}=hW(),C=h?.[e.localId];E.useEffect(()=>{u.reset(e)},[e,u?.reset]),E.useEffect(()=>{typeof C>"u"&&u.reset(e)},[C]);const I=()=>{const _={...e,...C};N({fileContent:JSON.stringify(_)},{onSuccess:k=>{if(k?.data)try{const L=k.data.fileContent;p(O=>({...O,..._,...L})),u.reset({..._,...L})}catch(L){console.error(L)}}})};return y.jsx(Nr,{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:_=>{p(k=>({...k,..._}))},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:_=>{u.setValue("key",_),p(k=>({...e,...k??{},key:_}))}}),y.jsx(Fe.EditableFieldInput,{name:"title",label:g.label,placeholder:g.placeholder.value,description:g.description,disabled:f,onSave:_=>{u.setValue("title",_),p(k=>({...e,...k??{},title:_}))}})]}),y.jsx(Fe.EditableFieldTextArea,{name:"description",label:S.label,placeholder:S.placeholder.value,description:S.description,disabled:f,onSave:_=>{u.setValue("description",_),p(k=>({...e,...k??{},description:_}))}}),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:_=>{const k=[_].flat();u.setValue("projectIds",k),p(L=>({...e,...L??{},projectIds:k}))},children:[y.jsx(hn.Trigger,{getBadgeValue:_=>i?.data?.find(k=>String(k.id)===_)?.name??_,children:y.jsx(hn.Input,{placeholder:w.placeholder.value})}),y.jsx(hn.Content,{children:y.jsx(zs,{isLoading:o,children:y.jsx(hn.List,{children:i?.data?.map(_=>y.jsx(hn.Item,{value:String(_.id),children:_.name},String(_.id)))})})})]}),y.jsxs(Fe.MultiSelect,{name:"tags",label:A.label.value,description:A.description.value,onValueChange:_=>{u.setValue("tags",[_].flat()),p(k=>({...e,...k??{},tags:[_].flat()}))},children:[y.jsx(hn.Trigger,{getBadgeValue:_=>i?.data?.find(k=>String(k.id)===_)?.name??_,children:y.jsx(hn.Input,{placeholder:A.placeholder.value})}),y.jsx(hn.Content,{children:y.jsx(zs,{isLoading:o,children:y.jsx(hn.List,{children:s?.data?.map(_=>y.jsx(hn.Item,{value:String(_.key),children:_.name??_.key},String(_.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:R.label.value,Icon:_1,variant:Ve.OUTLINE,color:Pe.TEXT,className:"max-md:w-full",onClick:I,disabled:f||x,isLoading:x})})]})})};function lR(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 boe(e){if(Array.isArray(e))return e}function Eoe(e,t,n){return(t=Roe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xoe(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 Soe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
319
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cR(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 uR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cR(Object(n),!0).forEach(function(i){Eoe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cR(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Aoe(e,t){if(e==null)return{};var n,i,o=woe(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 woe(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 Toe(e,t){return boe(e)||xoe(e,t)||Ioe(e,t)||Soe()}function Coe(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 Roe(e){var t=Coe(e,"string");return typeof t=="symbol"?t:t+""}function Ioe(e,t){if(e){if(typeof e=="string")return lR(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)?lR(e,t):void 0}}function _oe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dR(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 fR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dR(Object(n),!0).forEach(function(i){_oe(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dR(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}function Noe(){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 fc(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 Hf(e){return{}.toString.call(e).includes("Object")}function koe(e){return!Object.keys(e).length}function Bc(e){return typeof e=="function"}function Loe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Doe(e,t){return Hf(t)||da("changeType"),Object.keys(t).some(function(n){return!Loe(e,n)})&&da("changeField"),t}function Ooe(e){Bc(e)||da("selectorType")}function joe(e){Bc(e)||Hf(e)||da("handlerType"),Hf(e)&&Object.values(e).some(function(t){return!Bc(t)})&&da("handlersType")}function zoe(e){e||da("initialIsRequired"),Hf(e)||da("initialType"),koe(e)&&da("initialContent")}function Moe(e,t){throw new Error(e[t]||e.default)}var Poe={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"},da=fc(Moe)(Poe),Yd={changes:Doe,selector:Ooe,handler:joe,initial:zoe};function Boe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Yd.initial(e),Yd.handler(t);var n={current:e},i=fc(Foe)(n,t),o=fc(Voe)(n),s=fc(Yd.changes)(e),c=fc(Uoe)(n);function u(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(p){return p};return Yd.selector(h),h(n.current)}function f(h){Noe(i,o,s,c)(h)}return[u,f]}function Uoe(e,t){return Bc(t)?t(e.current):t}function Voe(e,t){return e.current=fR(fR({},e.current),t),t}function Foe(e,t,n){return Bc(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 Hoe={create:Boe},Goe={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.54.0/min/vs"}};function Koe(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 $oe(e){return{}.toString.call(e).includes("Object")}function qoe(e){return e||hR("configIsRequired"),$oe(e)||hR("configType"),e.urls?(Zoe(),{paths:{vs:e.urls.monacoBase}}):e}function Zoe(){console.warn(OM.deprecation)}function Yoe(e,t){throw new Error(e[t]||e.default)}var OM={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!
320
- You are using deprecated way of configuration.
321
-
322
- Instead of using
323
- monaco.config({ urls: { monacoBase: '...' } })
324
- use
325
- monaco.config({ paths: { vs: '...' } })
326
-
327
- For more please check the link https://github.com/suren-atoyan/monaco-loader#config
328
- `},hR=Koe(Yoe)(OM),Woe={config:qoe},Xoe=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 jM(e,t){return Object.keys(t).forEach(function(n){t[n]instanceof Object&&e[n]&&Object.assign(t[n],jM(e[n],t[n]))}),uR(uR({},e),t)}var Qoe={type:"cancelation",msg:"operation is manually canceled"};function Jy(e){var t=!1,n=new Promise(function(i,o){e.then(function(s){return t?o(Qoe):i(s)}),e.catch(o)});return n.cancel=function(){return t=!0},n}var Joe=["monaco"],ese=Hoe.create({config:Goe,isInitialized:!1,resolve:null,reject:null,monaco:null}),zM=Toe(ese,2),ou=zM[0],Ih=zM[1];function tse(e){var t=Woe.config(e),n=t.monaco,i=Aoe(t,Joe);Ih(function(o){return{config:jM(o.config,i),monaco:n}})}function nse(){var e=ou(function(t){var n=t.monaco,i=t.isInitialized,o=t.resolve;return{monaco:n,isInitialized:i,resolve:o}});if(!e.isInitialized){if(Ih({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),Jy(eg);if(window.monaco&&window.monaco.editor)return MM(window.monaco),e.resolve(window.monaco),Jy(eg);Xoe(rse,ase)(ose)}return Jy(eg)}function rse(e){return document.body.appendChild(e)}function ise(e){var t=document.createElement("script");return e&&(t.src=e),t}function ase(e){var t=ou(function(i){var o=i.config,s=i.reject;return{config:o,reject:s}}),n=ise("".concat(t.config.paths.vs,"/loader.js"));return n.onload=function(){return e()},n.onerror=t.reject,n}function ose(){var e=ou(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;MM(i),e.resolve(i)},function(n){e.reject(n)})}function MM(e){ou().monaco||Ih({monaco:e})}function sse(){return ou(function(e){var t=e.monaco;return t})}var eg=new Promise(function(e,t){return Ih({resolve:e,reject:t})}),PM={config:tse,init:nse,__getMonacoInstance:sse},lse={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},tg=lse,cse={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},use=cse;function dse({children:e}){return Ne.createElement("div",{style:use.container},e)}var fse=dse,hse=fse;function pse({width:e,height:t,isEditorReady:n,loading:i,_ref:o,className:s,wrapperProps:c}){return Ne.createElement("section",{style:{...tg.wrapper,width:e,height:t},...c},!n&&Ne.createElement(hse,null,i),Ne.createElement("div",{ref:o,style:{...tg.fullWidth,...!n&&tg.hide},className:s}))}var mse=pse,BM=E.memo(mse);function yse(e){E.useEffect(e,[])}var UM=yse;function gse(e,t,n=!0){let i=E.useRef(!0);E.useEffect(i.current||!n?()=>{i.current=!1}:e,t)}var Fn=gse;function wc(){}function Is(e,t,n,i){return vse(e,i)||bse(e,t,n,i)}function vse(e,t){return e.editor.getModel(VM(e,t))}function bse(e,t,n,i){return e.editor.createModel(t,n,i?VM(e,i):void 0)}function VM(e,t){return e.Uri.parse(t)}function Ese({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:S="100%",className:w,wrapperProps:A={},beforeMount:R=wc,onMount:N=wc}){let[x,C]=E.useState(!1),[I,_]=E.useState(!0),k=E.useRef(null),L=E.useRef(null),O=E.useRef(null),V=E.useRef(N),$=E.useRef(R),H=E.useRef(!1);UM(()=>{let oe=PM.init();return oe.then(M=>(L.current=M)&&_(!1)).catch(M=>M?.type!=="cancelation"&&console.error("Monaco initialization: error:",M)),()=>k.current?X():oe.cancel()}),Fn(()=>{if(k.current&&L.current){let oe=k.current.getOriginalEditor(),M=Is(L.current,e||"",i||n||"text",s||"");M!==oe.getModel()&&oe.setModel(M)}},[s],x),Fn(()=>{if(k.current&&L.current){let oe=k.current.getModifiedEditor(),M=Is(L.current,t||"",o||n||"text",c||"");M!==oe.getModel()&&oe.setModel(M)}},[c],x),Fn(()=>{let oe=k.current.getModifiedEditor();oe.getOption(L.current.editor.EditorOption.readOnly)?oe.setValue(t||""):t!==oe.getValue()&&(oe.executeEdits("",[{range:oe.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),oe.pushUndoStop())},[t],x),Fn(()=>{k.current?.getModel()?.original.setValue(e||"")},[e],x),Fn(()=>{let{original:oe,modified:M}=k.current.getModel();L.current.editor.setModelLanguage(oe,i||n||"text"),L.current.editor.setModelLanguage(M,o||n||"text")},[n,i,o],x),Fn(()=>{L.current?.editor.setTheme(h)},[h],x),Fn(()=>{k.current?.updateOptions(g)},[g],x);let ae=E.useCallback(()=>{if(!L.current)return;$.current(L.current);let oe=Is(L.current,e||"",i||n||"text",s||""),M=Is(L.current,t||"",o||n||"text",c||"");k.current?.setModel({original:oe,modified:M})},[n,t,o,e,i,s,c]),ce=E.useCallback(()=>{!H.current&&O.current&&(k.current=L.current.editor.createDiffEditor(O.current,{automaticLayout:!0,...g}),ae(),L.current?.editor.setTheme(h),C(!0),H.current=!0)},[g,h,ae]);E.useEffect(()=>{x&&V.current(k.current,L.current)},[x]),E.useEffect(()=>{!I&&!x&&ce()},[I,x,ce]);function X(){let oe=k.current?.getModel();u||oe?.original?.dispose(),f||oe?.modified?.dispose(),k.current?.dispose()}return Ne.createElement(BM,{width:S,height:b,isEditorReady:x,loading:p,_ref:O,className:w,wrapperProps:A})}var xse=Ese;E.memo(xse);function Sse(e){let t=E.useRef();return E.useEffect(()=>{t.current=e},[e]),t.current}var Ase=Sse,Wd=new Map;function wse({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:S="100%",height:w="100%",className:A,wrapperProps:R={},beforeMount:N=wc,onMount:x=wc,onChange:C,onValidate:I=wc}){let[_,k]=E.useState(!1),[L,O]=E.useState(!0),V=E.useRef(null),$=E.useRef(null),H=E.useRef(null),ae=E.useRef(x),ce=E.useRef(N),X=E.useRef(),oe=E.useRef(i),M=Ase(s),Y=E.useRef(!1),K=E.useRef(!1);UM(()=>{let j=PM.init();return j.then(P=>(V.current=P)&&O(!1)).catch(P=>P?.type!=="cancelation"&&console.error("Monaco initialization: error:",P)),()=>$.current?Ee():j.cancel()}),Fn(()=>{let j=Is(V.current,e||i||"",t||o||"",s||n||"");j!==$.current?.getModel()&&(g&&Wd.set(M,$.current?.saveViewState()),$.current?.setModel(j),g&&$.current?.restoreViewState(Wd.get(s)))},[s],_),Fn(()=>{$.current?.updateOptions(h)},[h],_),Fn(()=>{!$.current||i===void 0||($.current.getOption(V.current.editor.EditorOption.readOnly)?$.current.setValue(i):i!==$.current.getValue()&&(K.current=!0,$.current.executeEdits("",[{range:$.current.getModel().getFullModelRange(),text:i,forceMoveMarkers:!0}]),$.current.pushUndoStop(),K.current=!1))},[i],_),Fn(()=>{let j=$.current?.getModel();j&&o&&V.current?.editor.setModelLanguage(j,o)},[o],_),Fn(()=>{u!==void 0&&$.current?.revealLine(u)},[u],_),Fn(()=>{V.current?.editor.setTheme(c)},[c],_);let me=E.useCallback(()=>{if(!(!H.current||!V.current)&&!Y.current){ce.current(V.current);let j=s||n,P=Is(V.current,i||e||"",t||o||"",j||"");$.current=V.current?.editor.create(H.current,{model:P,automaticLayout:!0,...h},p),g&&$.current.restoreViewState(Wd.get(j)),V.current.editor.setTheme(c),u!==void 0&&$.current.revealLine(u),k(!0),Y.current=!0}},[e,t,n,i,o,s,h,p,g,c,u]);E.useEffect(()=>{_&&ae.current($.current,V.current)},[_]),E.useEffect(()=>{!L&&!_&&me()},[L,_,me]),oe.current=i,E.useEffect(()=>{_&&C&&(X.current?.dispose(),X.current=$.current?.onDidChangeModelContent(j=>{K.current||C($.current.getValue(),j)}))},[_,C]),E.useEffect(()=>{if(_){let j=V.current.editor.onDidChangeMarkers(P=>{let J=$.current.getModel()?.uri;if(J&&P.find(te=>te.path===J.path)){let te=V.current.editor.getModelMarkers({resource:J});I?.(te)}});return()=>{j?.dispose()}}return()=>{}},[_,I]);function Ee(){X.current?.dispose(),b?g&&Wd.set(s,$.current.saveViewState()):$.current.getModel()?.dispose(),$.current.dispose()}return Ne.createElement(BM,{width:S,height:w,isEditorReady:_,loading:f,_ref:H,className:A,wrapperProps:R})}var Tse=wse,Cse=E.memo(Tse);const Rse=({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 R=(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:R,width:u.current?.clientWidth??0})},S=i??e.split(`
329
- `).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(hD,{content:e})})}),y.jsx("div",{className:"z-0 grid size-full grid-cols-[0px] overflow-auto",ref:u,children:y.jsx(Cse,{...h,defaultLanguage:"typescript",language:t,loading:y.jsx(zs,{}),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:S?"on":"off"},theme:g,className:"my-2 rounded-md"})})]})},Ise=({dictionary:e,isDarkMode:t})=>{const{setEditedContent:n,editedContent:i}=bn(),o=c=>{try{return JSON.parse(c),!0}catch{return!1}},s=E.useMemo(()=>i?.[e.localId]?.content??e?.content??{},[e]);return y.jsx(Nr,{background:"none",border:!0,roundedSize:"xl",className:"w-full overflow-hidden p-3",children:y.jsx(Rse,{language:"json",onChange:c=>{o(c??"{}")&&n(e.localId,JSON.parse(c??"{}"))},isDarkMode:t,children:JSON.stringify(s,null,2)})})},Xd=({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:S,insertion:w,reactNode:A,file:R}=Ot("node-type-selector"),[N,x]=E.useState(Fs(e)),C=I=>{x(I),t(I)};return y.jsxs(Te,{value:N,onValueChange:C,children:[y.jsx(Te.Trigger,{children:y.jsx(Te.Value,{placeholder:h})}),y.jsxs(Te.Content,{children:[y.jsx(Te.Item,{value:F.Translation,children:n}),y.jsx(Te.Item,{value:F.Text,children:i}),y.jsx(Te.Item,{value:F.Number,children:o}),y.jsx(Te.Item,{value:F.Boolean,children:s}),y.jsx(Te.Item,{value:F.Object,children:c}),y.jsx(Te.Item,{value:F.Array,children:u}),y.jsx(Te.Item,{value:F.Enumeration,children:f}),y.jsx(Te.Item,{value:F.Gender,children:g}),y.jsx(Te.Item,{value:F.Insertion,children:w}),y.jsx(Te.Item,{value:F.Markdown,children:S}),y.jsx(Te.Item,{value:F.Nested,children:p}),y.jsx(Te.Item,{value:F.Condition,children:b}),y.jsx(Te.Item,{value:F.ReactNode,disabled:!0,children:A}),y.jsx(Te.Item,{value:F.File,children:R})]})]})},pv=({section:e,dictionaryLocalId:t,keyPath:n,onNodeTypeChange:i})=>{const o=Qr()?.internationalization.locales??[],s=Fs(e),c=LL(e),u=f=>{i(Ql(s,o,f))};if(s===F.Translation||s===F.Condition||s===F.Gender||s===F.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(Xd,{section:e,onValueChange:p=>i(Ql(p,o))}),y.jsx(pv,{section:c,keyPath:h,dictionaryLocalId:t,onNodeTypeChange:u})]})}if(s===F.Array){const f=[...n,{type:s,key:0}];return y.jsxs("div",{className:"flex w-full flex-col gap-1",children:[y.jsx(Xd,{section:e,onValueChange:h=>i(Ql(h,o))}),y.jsx(pv,{section:c,keyPath:f,dictionaryLocalId:t,onNodeTypeChange:u})]})}return s===F.Object?y.jsxs(y.Fragment,{children:[y.jsx(Xd,{section:e,onValueChange:f=>i(Ql(f,o))}),y.jsx("div",{className:"mt-6 ml-10",children:y.jsx(Nse,{keyPath:n,section:e,dictionaryLocalId:t})})]}):y.jsx(Xd,{section:e,onValueChange:f=>i(Ql(f,o))})},iE=({sectionKey:e,section:t,keyPath:n,dictionaryLocalId:i})=>{const{focusedContent:o,setFocusedContentKeyPath:s}=va(),{renameEditedContent:c,addEditedContent:u}=Hs(),{titleInput:f,deleteButton:h}=Ot("structure-view"),p=g=>{c(i,g,n);const b=n.slice(0,-1),S=n[n.length-1];s([...b,{...S,key:g}])};return y.jsx(Nr,{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":Vc(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(tj,{name:"key","aria-label":"Key",placeholder:f.placeholder.value,defaultValue:e,onSave:g=>p(g),variant:fo.INVISIBLE}),y.jsx(st,{label:h.label.value,variant:Ve.HOVERABLE,size:Je.ICON_SM,color:Pe.TEXT,className:"translate-x-2",Icon:Xf,onClick:()=>{u(i,void 0,n),s(n.slice(0,-1))}})]}),y.jsxs("span",{className:"ml-3 text-neutral text-sm",children:["( ",hf(e)," )"]})]}),y.jsx(pv,{keyPath:n,dictionaryLocalId:i,section:t,onNodeTypeChange:g=>{u(i,g,n)}})]})})},_se=({section:e,keyPath:t,dictionaryLocalId:n})=>{const{addNodeButton:i}=Ot("structure-view"),{setFocusedContentKeyPath:o}=Av(),{addEditedContent:s}=Hs();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(iE,{sectionKey:c,section:e?.[c],keyPath:[...t,{type:F.Object,key:c}],dictionaryLocalId:n})},c))}),y.jsx(st,{label:i.label.value,variant:Ve.HOVERABLE,size:Je.MD,color:Pe.TEXT,Icon:Wf,className:"flex-1",onClick:()=>{const u=[...t,{type:F.Object,key:"newKey"}];s(n,"",u),o(u)},children:i.text})]})},Nse=({section:e,keyPath:t,dictionaryLocalId:n})=>!e||typeof e!="object"||typeof e.nodeType=="string"?y.jsx(iE,{sectionKey:"content",section:e,keyPath:t,dictionaryLocalId:n}):y.jsx(_se,{section:e,keyPath:t,dictionaryLocalId:n}),kse=({dictionary:e})=>{const{content:t,localId:n}=e,{editedContent:i}=bn();return y.jsx(iE,{section:typeof i?.[n]?.content>"u"?t:i?.[n]?.content,keyPath:[],dictionaryLocalId:n})};var vr=function(e){return e[e.DetailsEditor=0]="DetailsEditor",e[e.ContentEditor=1]="ContentEditor",e[e.StructureEditor=2]="StructureEditor",e[e.JSONEditor=3]="JSONEditor",e}(vr||{});const Lse=({dictionary:e,onClickDictionaryList:t,isDarkMode:n,mode:i,onDelete:o,onSave:s})=>{const c=Qr(),[u,f]=E.useState(vr.ContentEditor),{returnToDictionaryList:h}=Ot("dictionary-field-editor"),{setFocusedContent:p}=Av(),{setLocaleDictionaries:g}=Kf();return E.useEffect(()=>{p(b=>({...b??{},dictionaryKey:e.key,dictionaryLocalId:e.localId})),g(b=>({...b,[e.localId]:e}))},[]),y.jsx(Tre,{availableLocales:c?.internationalization.locales??[],children:y.jsxs("div",{className:"flex size-full flex-col gap-6 px-2",children:[y.jsx(st,{onClick:t,variant:Ve.HOVERABLE,className:"z-10 mr-auto ml-5",color:Pe.TEXT,Icon:wG,label:h.label.value,children:h.text}),y.jsx(ru,{defaultValue:u,onChange:b=>f(b),color:Ft.TEXT,size:Ti.SM,className:"m-auto w-full max-w-xl",choices:[{content:"Details",value:vr.DetailsEditor},{content:"Structure",value:vr.StructureEditor},{content:"Content",value:vr.ContentEditor},{content:"JSON",value:vr.JSONEditor}].filter(({value:b})=>!(!i.includes("remote")&&b===vr.DetailsEditor))}),u===vr.DetailsEditor&&y.jsx(voe,{dictionary:e}),u===vr.StructureEditor&&y.jsx(kse,{dictionary:e}),u===vr.ContentEditor&&y.jsx(yoe,{dictionary:e,isDarkMode:n}),u===vr.JSONEditor&&y.jsx(Ise,{dictionary:e,isDarkMode:n}),y.jsx(nM,{dictionary:e,mode:i,onDelete:()=>{p(null),o?.()},onSave:s})]})})},Dse=({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})}),Ose=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}},jse=()=>{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)},zse=e=>{if(!(typeof window>"u"))return(window?.innerWidth??0)<=e},pR=(e="md")=>{const t=Ose(e),n=jse(),i=zse(t);return{isMobileScreen:i,isMobileUserAgent:n,isMobile:i??n}},Mse=(e="md")=>{const[t,n]=E.useState(pR(e));return E.useEffect(()=>{const i=()=>{n(pR(e))};return window.addEventListener("resize",i,{passive:!0}),()=>window.removeEventListener("resize",i)},[e]),t},_h=yD((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})),Pse=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},FM=({title:e,identifier:t,children:n,header:i,closeOnOutsideClick:o=!0,backButton:s,isOpen:c,onClose:u})=>{const{isMobile:f}=Mse("md"),h=E.useRef(null),p=E.useRef(null),{close:g,open:b,isOpen:S}=_h(gD(A=>({close:()=>A.close(t),open:()=>A.open(t),isOpen:A.isOpen(t)})));vD({disableScroll:S,key:t?`right_drawer_${t}`:"right_drawer"}),E.useEffect(()=>{const A=R=>{try{if(!h.current)return;const N=S&&o,x=R.target&&!h.current.contains(R.target),C=Pse(h.current);(N&&x&&C||!R.target)&&(g(),u?.())}catch{g(),u?.()}};return window.addEventListener("mousedown",A),()=>window.removeEventListener("mousedown",A)},[S,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(Dse,{isHidden:!S,align:"right",children:y.jsxs(Nr,{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(st,{variant:Ve.HOVERABLE,color:Pe.TEXT,label:s.text??"Go back",onClick:s.onBack,Icon:NG,children:s?.text})}),y.jsx("div",{children:y.jsx(st,{variant:Ve.HOVERABLE,color:Pe.TEXT,label:"Close",className:"ml-auto",onClick:g,Icon:So,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 aE="ToastProvider",[oE,Bse,Use]=Bj("Toast"),[HM,Vse]=Kc("Toast",[Use]),[Fse,Nh]=HM(aE),sE=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 \`${aE}\`. Expected non-empty \`string\`.`),y.jsx(oE.Provider,{scope:t,children:y.jsx(Fse,{scope:t,label:n,duration:i,swipeDirection:o,swipeThreshold:s,toastCount:h,viewport:u,onViewportChange:f,onToastAdd:E.useCallback(()=>p(S=>S+1),[]),onToastRemove:E.useCallback(()=>p(S=>S-1),[]),isFocusedToastEscapeKeyDownRef:g,isClosePausedRef:b,children:c})})};sE.displayName=aE;var GM="ToastViewport",Hse=["F8"],mv="toast.viewportPause",yv="toast.viewportResume",lE=E.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:i=Hse,label:o="Notifications ({hotkey})",...s}=e,c=Nh(GM,n),u=Bse(n),f=E.useRef(null),h=E.useRef(null),p=E.useRef(null),g=E.useRef(null),b=Tt(t,g,c.onViewportChange),S=i.join("+").replace(/Key/g,"").replace(/Digit/g,""),w=c.toastCount>0;E.useEffect(()=>{const R=N=>{i.length!==0&&i.every(C=>N[C]||N.code===C)&&g.current?.focus()};return document.addEventListener("keydown",R),()=>document.removeEventListener("keydown",R)},[i]),E.useEffect(()=>{const R=f.current,N=g.current;if(w&&R&&N){const x=()=>{if(!c.isClosePausedRef.current){const k=new CustomEvent(mv);N.dispatchEvent(k),c.isClosePausedRef.current=!0}},C=()=>{if(c.isClosePausedRef.current){const k=new CustomEvent(yv);N.dispatchEvent(k),c.isClosePausedRef.current=!1}},I=k=>{!R.contains(k.relatedTarget)&&C()},_=()=>{R.contains(document.activeElement)||C()};return R.addEventListener("focusin",x),R.addEventListener("focusout",I),R.addEventListener("pointermove",x),R.addEventListener("pointerleave",_),window.addEventListener("blur",x),window.addEventListener("focus",C),()=>{R.removeEventListener("focusin",x),R.removeEventListener("focusout",I),R.removeEventListener("pointermove",x),R.removeEventListener("pointerleave",_),window.removeEventListener("blur",x),window.removeEventListener("focus",C)}}},[w,c.isClosePausedRef]);const A=E.useCallback(({tabbingDirection:R})=>{const x=u().map(C=>{const I=C.ref.current,_=[I,...nle(I)];return R==="forwards"?_:_.reverse()});return(R==="forwards"?x.reverse():x).flat()},[u]);return E.useEffect(()=>{const R=g.current;if(R){const N=x=>{const C=x.altKey||x.ctrlKey||x.metaKey;if(x.key==="Tab"&&!C){const _=document.activeElement,k=x.shiftKey;if(x.target===R&&k){h.current?.focus();return}const V=A({tabbingDirection:k?"backwards":"forwards"}),$=V.findIndex(H=>H===_);ng(V.slice($+1))?x.preventDefault():k?h.current?.focus():p.current?.focus()}};return R.addEventListener("keydown",N),()=>R.removeEventListener("keydown",N)}},[u,A]),y.jsxs(VK,{ref:f,role:"region","aria-label":o.replace("{hotkey}",S),tabIndex:-1,style:{pointerEvents:w?void 0:"none"},children:[w&&y.jsx(gv,{ref:h,onFocusFromOutsideViewport:()=>{const R=A({tabbingDirection:"forwards"});ng(R)}}),y.jsx(oE.Slot,{scope:n,children:y.jsx(He.ol,{tabIndex:-1,...s,ref:b})}),w&&y.jsx(gv,{ref:p,onFocusFromOutsideViewport:()=>{const R=A({tabbingDirection:"backwards"});ng(R)}})]})});lE.displayName=GM;var KM="ToastFocusProxy",gv=E.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:i,...o}=e,s=Nh(KM,n);return y.jsx(Gb,{tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:c=>{const u=c.relatedTarget;!s.viewport?.contains(u)&&i()}})});gv.displayName=KM;var su="Toast",Gse="toast.swipeStart",Kse="toast.swipeMove",$se="toast.swipeCancel",qse="toast.swipeEnd",cE=E.forwardRef((e,t)=>{const{forceMount:n,open:i,defaultOpen:o,onOpenChange:s,...c}=e,[u,f]=bf({prop:i,defaultProp:o??!0,onChange:s,caller:su});return y.jsx($c,{present:n||u,children:y.jsx(Wse,{open:u,...c,ref:t,onClose:()=>f(!1),onPause:Tr(e.onPause),onResume:Tr(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)})})})});cE.displayName=su;var[Zse,Yse]=HM(su,{onClose(){}}),Wse=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:S,...w}=e,A=Nh(su,n),[R,N]=E.useState(null),x=Tt(t,X=>N(X)),C=E.useRef(null),I=E.useRef(null),_=o||A.duration,k=E.useRef(0),L=E.useRef(_),O=E.useRef(0),{onToastAdd:V,onToastRemove:$}=A,H=Tr(()=>{R?.contains(document.activeElement)&&A.viewport?.focus(),c()}),ae=E.useCallback(X=>{!X||X===1/0||(window.clearTimeout(O.current),k.current=new Date().getTime(),O.current=window.setTimeout(H,X))},[H]);E.useEffect(()=>{const X=A.viewport;if(X){const oe=()=>{ae(L.current),h?.()},M=()=>{const Y=new Date().getTime()-k.current;L.current=L.current-Y,window.clearTimeout(O.current),f?.()};return X.addEventListener(mv,M),X.addEventListener(yv,oe),()=>{X.removeEventListener(mv,M),X.removeEventListener(yv,oe)}}},[A.viewport,_,f,h,ae]),E.useEffect(()=>{s&&!A.isClosePausedRef.current&&ae(_)},[s,_,A.isClosePausedRef,ae]),E.useEffect(()=>(V(),()=>$()),[V,$]);const ce=E.useMemo(()=>R?YM(R):null,[R]);return A.viewport?y.jsxs(y.Fragment,{children:[ce&&y.jsx(Xse,{__scopeToast:n,role:"status","aria-live":i==="foreground"?"assertive":"polite",children:ce}),y.jsx(Zse,{scope:n,onClose:H,children:xo.createPortal(y.jsx(oE.ItemSlot,{scope:n,children:y.jsx(UK,{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:x,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&&(C.current={x:X.clientX,y:X.clientY})}),onPointerMove:Xe(e.onPointerMove,X=>{if(!C.current)return;const oe=X.clientX-C.current.x,M=X.clientY-C.current.y,Y=!!I.current,K=["left","right"].includes(A.swipeDirection),me=["left","up"].includes(A.swipeDirection)?Math.min:Math.max,Ee=K?me(0,oe):0,j=K?0:me(0,M),P=X.pointerType==="touch"?10:2,J={x:Ee,y:j},te={originalEvent:X,delta:J};Y?(I.current=J,Qd(Kse,g,te,{discrete:!1})):mR(J,A.swipeDirection,P)?(I.current=J,Qd(Gse,p,te,{discrete:!1}),X.target.setPointerCapture(X.pointerId)):(Math.abs(oe)>P||Math.abs(M)>P)&&(C.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,C.current=null,oe){const Y=X.currentTarget,K={originalEvent:X,delta:oe};mR(oe,A.swipeDirection,A.swipeThreshold)?Qd(qse,S,K,{discrete:!0}):Qd($se,b,K,{discrete:!0}),Y.addEventListener("click",me=>me.preventDefault(),{once:!0})}})})})}),A.viewport)})]}):null}),Xse=e=>{const{__scopeToast:t,children:n,...i}=e,o=Nh(su,t),[s,c]=E.useState(!1),[u,f]=E.useState(!1);return ele(()=>c(!0)),E.useEffect(()=>{const h=window.setTimeout(()=>f(!0),1e3);return()=>window.clearTimeout(h)},[]),u?null:y.jsx(Jf,{asChild:!0,children:y.jsx(Gb,{...i,children:s&&y.jsxs(y.Fragment,{children:[o.label," ",n]})})})},Qse="ToastTitle",uE=E.forwardRef((e,t)=>{const{__scopeToast:n,...i}=e;return y.jsx(He.div,{...i,ref:t})});uE.displayName=Qse;var Jse="ToastDescription",dE=E.forwardRef((e,t)=>{const{__scopeToast:n,...i}=e;return y.jsx(He.div,{...i,ref:t})});dE.displayName=Jse;var $M="ToastAction",fE=E.forwardRef((e,t)=>{const{altText:n,...i}=e;return n.trim()?y.jsx(ZM,{altText:n,asChild:!0,children:y.jsx(kh,{...i,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${$M}\`. Expected non-empty \`string\`.`),null)});fE.displayName=$M;var qM="ToastClose",kh=E.forwardRef((e,t)=>{const{__scopeToast:n,...i}=e,o=Yse(qM,n);return y.jsx(ZM,{asChild:!0,children:y.jsx(He.button,{type:"button",...i,ref:t,onClick:Xe(e.onClick,o.onClose)})})});kh.displayName=qM;var ZM=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 YM(e){const t=[];return Array.from(e.childNodes).forEach(i=>{if(i.nodeType===i.TEXT_NODE&&i.textContent&&t.push(i.textContent),tle(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(...YM(i))}}),t}function Qd(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?k1(o,s):o.dispatchEvent(s)}var mR=(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 ele(e=()=>{}){const t=Tr(e);un(()=>{let n=0,i=0;return n=window.requestAnimationFrame(()=>i=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(i)}},[t])}function tle(e){return e.nodeType===e.ELEMENT_NODE}function nle(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 ng(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var rle=sE,WM=lE,XM=cE,QM=uE,JM=dE,ile=fE,eP=kh;const ale=Object.freeze(Object.defineProperty({__proto__:null,Action:ile,Close:eP,Description:JM,Provider:rle,Root:XM,Title:QM,Toast:cE,ToastAction:fE,ToastClose:kh,ToastDescription:dE,ToastProvider:sE,ToastTitle:uE,ToastViewport:lE,Viewport:WM,createToastScope:Vse},Symbol.toStringTag,{value:"Module"})),ole=ale,sle=({className:e,...t})=>y.jsx(WM,{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}),lle=mn("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"}}),cle=({className:e,variant:t,...n})=>y.jsx(XM,{className:fe(lle({variant:t}),e),...n}),ule=({className:e,...t})=>y.jsx(eP,{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(So,{className:"size-5"})}),dle=({className:e,...t})=>y.jsx(QM,{className:fe("font-semibold text-sm [&+div]:text-xs",e),...t}),fle=({className:e,...t})=>y.jsx(JM,{className:fe("text-sm opacity-90",e),...t}),hle=1,ple=900*1e3;var $r=function(e){return e.ADD_TOAST="ADD_TOAST",e.UPDATE_TOAST="UPDATE_TOAST",e.DISMISS_TOAST="DISMISS_TOAST",e.REMOVE_TOAST="REMOVE_TOAST",e}($r||{});let rg=0;const mle=()=>(rg=(rg+1)%Number.MAX_SAFE_INTEGER,rg.toString()),ig=new Map,yR=e=>{if(ig.has(e))return;const t=setTimeout(()=>{ig.delete(e),Tc({type:$r.REMOVE_TOAST,toastId:e})},ple);ig.set(e,t)},yle=(e,t)=>{switch(t.type){case $r.ADD_TOAST:return{...e,toasts:[t.toast,...e.toasts].slice(0,hle)};case $r.UPDATE_TOAST:return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case $r.DISMISS_TOAST:{const{toastId:n}=t;return n?yR(n):e.toasts.forEach(i=>{yR(i.id)}),{...e,toasts:e.toasts.map(i=>i.id===n||n===void 0?{...i,open:!1}:i)}}case $r.REMOVE_TOAST:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},pf=[];let mf={toasts:[]};const Tc=e=>{mf=yle(mf,e),pf.forEach(t=>{t(mf)})},gle=({...e})=>{const t=mle(),n=o=>Tc({type:$r.UPDATE_TOAST,toast:{...o,id:t}}),i=()=>Tc({type:$r.DISMISS_TOAST,toastId:t});return Tc({type:$r.ADD_TOAST,toast:{...e,id:t,open:!0,onOpenChange:o=>{o||i()}}}),{id:t,dismiss:i,update:n}},tP=()=>{const[e,t]=E.useState(mf);return E.useEffect(()=>(pf.push(t),()=>{const n=pf.indexOf(t);n>-1&&pf.splice(n,1)}),[e]),{...e,toast:gle,dismiss:n=>Tc({type:$r.DISMISS_TOAST,toastId:n})}},vle=()=>{const{toasts:e}=tP();return y.jsxs(ole.Provider,{children:[e.map(({id:t,title:n,description:i,action:o,...s})=>y.jsxs(cle,{...s,children:[y.jsxs("div",{className:"grid gap-1",children:[n&&y.jsx(dle,{children:n}),i&&y.jsx(fle,{children:i})]}),o,y.jsx(ule,{})]},t)),y.jsx(sle,{})]})},ble={queries:{retry:1,staleTime:0,gcTime:300*1e3,refetchOnMount:"always",refetchOnWindowFocus:!1,refetchOnReconnect:!1},mutations:{retry:0}},gR=e=>e.split("_").join(" "),Ele=()=>{const{toast:e}=tP();return{onError:i=>{[(()=>{try{if(typeof i=="string")return JSON.parse(i)}catch{}return i})()].flat().forEach(o=>{e({title:gR(o?.title??"Error"),description:o?.message??String(o??"An error occurred"),variant:"error"})})},onSuccess:i=>{i?.error&&e({title:gR(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"})}}},xle=({children:e})=>{const{onError:t,onSuccess:n}=Ele(),i=E.useRef(null);if(!i.current){const o=new DY({defaultOptions:ble,mutationCache:new Tj({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(OY,{client:i.current,children:e})},Sle=({children:e})=>y.jsx(o8,{features:jZ,children:e}),Ale=({children:e})=>y.jsx(Sle,{children:y.jsxs(xle,{children:[y.jsx(vle,{}),e]})}),wle=({children:e})=>y.jsx(R4,{children:y.jsx(i4,{children:y.jsx(s1,{path:"*",element:e})})}),vv="dictionaryList",hE=e=>`dictionary_edition_${e}`,nP=e=>{const t=hE(e),{isOpen:n,open:i,close:o}=_h(),{getEditedContentValue:s}=Hs(),{focusedContent:c,setFocusedContent:u}=va();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)}}},Tle=({locale:e,identifier:t,handleOnBack:n,isDarkMode:i})=>{const{modalTitle:o,openDictionaryEditor:s,noDictionaryFocused:c,focusedDictionaryNotFound:u}=Ot("dictionary-edition-drawer"),[f,h]=E.useState(!1),{focusedContent:p}=nP(t),{data:g}=zj(),b=E.useCallback(()=>{h(!1),n()},[n]),S=p?.dictionaryKey;if(!S)return y.jsx("span",{className:"mx-auto my-10 text-neutral text-sm",children:c});const w=yH(S,p.keyPath??[],g);return w?y.jsxs(y.Fragment,{children:[y.jsx(xb,{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(Lse,{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(st,{variant:"hoverable",color:"text",size:"icon-md",IconRight:I1,label:s.label.value,onClick:()=>h(!0)})]}),y.jsx(une,{dictionary:w,locale:e,mode:["local","remote"]})]}):y.jsx("span",{className:"mx-auto my-10 text-neutral text-sm",children:u})},Cle=({locale:e,dictionaryKey:t,isDarkMode:n})=>{const{backButtonText:i}=Ot("dictionary-edition-drawer"),o=hE(t),{focusedContent:s,close:c}=nP(t),{openDictionaryListDrawer:u}=_h(h=>({openDictionaryListDrawer:()=>h.open(vv)})),f=()=>{c(),u()};return y.jsx(FM,{identifier:o,backButton:{onBack:f,text:i.value},onClose:c,children:s&&y.jsx(Tle,{focusedContent:s,locale:e,identifier:o,handleOnBack:f,isDarkMode:n})})},Rle=({locale:e,isDarkMode:t})=>{const{focusedContent:n}=va(),i=n?.dictionaryKey;return i?y.jsx(Cle,{locale:e,dictionaryKey:i,isDarkMode:t}):y.jsx(y.Fragment,{})},Ile=()=>{const{drawerTitle:e,buttonLabel:t}=Ot("dictionary-list-drawer"),{close:n,open:i}=_h(),{localeDictionaries:o}=VL(),{editedContent:s}=bn(),{setFocusedContent:c}=va(),u=h=>{n(vv),c({dictionaryKey:h.key,dictionaryLocalId:h.localId}),i(hE(h.key))},f=h=>Object.keys(s??{}).includes(h);return y.jsx(FM,{title:e.label.value,identifier:vv,children:Object.values(o).map(h=>y.jsx(st,{label:t.label({dictionaryLocalId:h.localId}).value,onClick:()=>u(h),variant:"hoverable",color:"text",IconRight:vf,size:"md",isFullWidth:!0,children:f(h.key)?`✎ ${h.key}`:h.key},h.localId))})},rP=(...e)=>T1(Yf(e)),_le=e=>{const{message:t}=Ot("long-press-message");return y.jsx("div",{className:rP("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}):""})},Nle=({children:e})=>{const[t]=fa(Ln.INTLAYER_CURRENT_LOCALE,void 0,{receive:!0,emit:!1}),[n]=fa(Ln.INTLAYER_HOVERED_CONTENT_CHANGED,null),{data:i}=zj(),{setLocaleDictionaries:o}=Kf();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(_le,{...n})}),y.jsx(Rle,{locale:t}),y.jsx(Ile,{})]})},kle=()=>{const[e,t]=E.useState();return E.useEffect(()=>{fetch("/api/config").then(n=>n.json()).then(n=>t(n.data))},[]),e},Lle=({children:e,iframeRef:t})=>{const n=kle(),i=n?.editor.applicationURL?n?.editor.applicationURL:"*",o=n?.editor.editorURL??"*";return n?y.jsx(WH,{postMessage:s=>{window?.postMessage(s,o),t.current?.contentWindow?.postMessage(s,i)},allowedOrigins:[i,o],mode:"editor",configuration:n,children:e}):y.jsx(zs,{})},Dle=()=>{const{editedContent:e,setEditedContentState:t}=bn(),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},Ole=()=>{const{title:e,description:t,documentationLink:n}=Ot("no-application-url-view");return y.jsxs("div",{className:"flex flex-col gap-6",children:[y.jsx(Uv,{className:"mb-8",children:e}),y.jsx("strong",{className:"block text-neutral",children:t}),y.jsx(Dv,{label:n.label.value,href:"https://intlayer.org/doc/concept/configuration#editor-configuration",color:"text",children:n.text})]})},jle=({iframeRef:e,applicationPath:t})=>{const{editor:n}=Qr(),i=()=>o(n.enabled),o=KH();KL(i),Dle(),QH();const[s,c]=E.useState(!0),[u]=XH(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(zs,{isLoading:s}),y.jsx("iframe",{src:`${n.applicationURL}${t}`,title:"Intlayer Application",className:rP("size-full",s&&"hidden"),ref:e,onLoad:()=>{c(!1),i()}})]}):y.jsx("div",{className:"flex size-full items-center justify-center",children:y.jsx(Nr,{className:"flex max-w-xl flex-col gap-4 p-6",children:y.jsx(Ole,{})})})},zle=()=>{const e=E.useRef(null),t=ba();return y.jsx(Lle,{iframeRef:e,children:y.jsx(e3,{disableEditor:!0,children:y.jsx(Nle,{children:y.jsx(jle,{iframeRef:e,applicationPath:t.pathname})})})})},Mle=()=>y.jsx(wle,{children:y.jsx(Ale,{children:y.jsx(zle,{})})});R2.createRoot(document.getElementById("root")).render(y.jsx(E.StrictMode,{children:y.jsx(Mle,{})}));export{vie as C,gie as _,y as j,E as r};