@actant/dashboard 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
var x0=Object.defineProperty;var b0=(l,i,s)=>i in l?x0(l,i,{enumerable:!0,configurable:!0,writable:!0,value:s}):l[i]=s;var km=(l,i,s)=>b0(l,typeof i!="symbol"?i+"":i,s);function S0(l,i){for(var s=0;s<i.length;s++){const r=i[s];if(typeof r!="string"&&!Array.isArray(r)){for(const c in r)if(c!=="default"&&!(c in l)){const f=Object.getOwnPropertyDescriptor(r,c);f&&Object.defineProperty(l,c,f.get?f:{enumerable:!0,get:()=>r[c]})}}}return Object.freeze(Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))r(c);new MutationObserver(c=>{for(const f of c)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function s(c){const f={};return c.integrity&&(f.integrity=c.integrity),c.referrerPolicy&&(f.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?f.credentials="include":c.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(c){if(c.ep)return;c.ep=!0;const f=s(c);fetch(c.href,f)}})();function Hp(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Yu={exports:{}},yi={};/**
|
|
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 Um;function N0(){if(Um)return yi;Um=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(r,c,f){var h=null;if(f!==void 0&&(h=""+f),c.key!==void 0&&(h=""+c.key),"key"in c){f={};for(var y in c)y!=="key"&&(f[y]=c[y])}else f=c;return c=f.ref,{$$typeof:l,type:r,key:h,ref:c!==void 0?c:null,props:f}}return yi.Fragment=i,yi.jsx=s,yi.jsxs=s,yi}var Hm;function j0(){return Hm||(Hm=1,Yu.exports=N0()),Yu.exports}var d=j0(),Gu={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 Bm;function E0(){if(Bm)return me;Bm=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),x=Symbol.for("react.activity"),T=Symbol.iterator;function C(j){return j===null||typeof j!="object"?null:(j=T&&j[T]||j["@@iterator"],typeof j=="function"?j:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},D=Object.assign,L={};function V(j,H,Z){this.props=j,this.context=H,this.refs=L,this.updater=Z||w}V.prototype.isReactComponent={},V.prototype.setState=function(j,H){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,H,"setState")},V.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function $(){}$.prototype=V.prototype;function X(j,H,Z){this.props=j,this.context=H,this.refs=L,this.updater=Z||w}var K=X.prototype=new $;K.constructor=X,D(K,V.prototype),K.isPureReactComponent=!0;var P=Array.isArray;function fe(){}var Q={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function ie(j,H,Z){var ee=Z.ref;return{$$typeof:l,type:j,key:H,ref:ee!==void 0?ee:null,props:Z}}function W(j,H){return ie(j.type,H,j.props)}function Oe(j){return typeof j=="object"&&j!==null&&j.$$typeof===l}function oe(j){var H={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(Z){return H[Z]})}var F=/\/+/g;function I(j,H){return typeof j=="object"&&j!==null&&j.key!=null?oe(""+j.key):H.toString(36)}function J(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(fe,fe):(j.status="pending",j.then(function(H){j.status==="pending"&&(j.status="fulfilled",j.value=H)},function(H){j.status==="pending"&&(j.status="rejected",j.reason=H)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function R(j,H,Z,ee,ae){var ue=typeof j;(ue==="undefined"||ue==="boolean")&&(j=null);var we=!1;if(j===null)we=!0;else switch(ue){case"bigint":case"string":case"number":we=!0;break;case"object":switch(j.$$typeof){case l:case i:we=!0;break;case b:return we=j._init,R(we(j._payload),H,Z,ee,ae)}}if(we)return ae=ae(j),we=ee===""?"."+I(j,0):ee,P(ae)?(Z="",we!=null&&(Z=we.replace(F,"$&/")+"/"),R(ae,H,Z,"",function(zn){return zn})):ae!=null&&(Oe(ae)&&(ae=W(ae,Z+(ae.key==null||j&&j.key===ae.key?"":(""+ae.key).replace(F,"$&/")+"/")+we)),H.push(ae)),1;we=0;var Pe=ee===""?".":ee+":";if(P(j))for(var ve=0;ve<j.length;ve++)ee=j[ve],ue=Pe+I(ee,ve),we+=R(ee,H,Z,ue,ae);else if(ve=C(j),typeof ve=="function")for(j=ve.call(j),ve=0;!(ee=j.next()).done;)ee=ee.value,ue=Pe+I(ee,ve++),we+=R(ee,H,Z,ue,ae);else if(ue==="object"){if(typeof j.then=="function")return R(J(j),H,Z,ee,ae);throw H=String(j),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return we}function Y(j,H,Z){if(j==null)return j;var ee=[],ae=0;return R(j,ee,"","",function(ue){return H.call(Z,ue,ae++)}),ee}function te(j){if(j._status===-1){var H=j._result;H=H(),H.then(function(Z){(j._status===0||j._status===-1)&&(j._status=1,j._result=Z)},function(Z){(j._status===0||j._status===-1)&&(j._status=2,j._result=Z)}),j._status===-1&&(j._status=0,j._result=H)}if(j._status===1)return j._result.default;throw j._result}var pe=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=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(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},G={map:Y,forEach:function(j,H,Z){Y(j,function(){H.apply(this,arguments)},Z)},count:function(j){var H=0;return Y(j,function(){H++}),H},toArray:function(j){return Y(j,function(H){return H})||[]},only:function(j){if(!Oe(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return me.Activity=x,me.Children=G,me.Component=V,me.Fragment=s,me.Profiler=c,me.PureComponent=X,me.StrictMode=r,me.Suspense=p,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Q,me.__COMPILER_RUNTIME={__proto__:null,c:function(j){return Q.H.useMemoCache(j)}},me.cache=function(j){return function(){return j.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(j,H,Z){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var ee=D({},j.props),ae=j.key;if(H!=null)for(ue in H.key!==void 0&&(ae=""+H.key),H)!k.call(H,ue)||ue==="key"||ue==="__self"||ue==="__source"||ue==="ref"&&H.ref===void 0||(ee[ue]=H[ue]);var ue=arguments.length-2;if(ue===1)ee.children=Z;else if(1<ue){for(var we=Array(ue),Pe=0;Pe<ue;Pe++)we[Pe]=arguments[Pe+2];ee.children=we}return ie(j.type,ae,ee)},me.createContext=function(j){return j={$$typeof:h,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:f,_context:j},j},me.createElement=function(j,H,Z){var ee,ae={},ue=null;if(H!=null)for(ee in H.key!==void 0&&(ue=""+H.key),H)k.call(H,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(ae[ee]=H[ee]);var we=arguments.length-2;if(we===1)ae.children=Z;else if(1<we){for(var Pe=Array(we),ve=0;ve<we;ve++)Pe[ve]=arguments[ve+2];ae.children=Pe}if(j&&j.defaultProps)for(ee in we=j.defaultProps,we)ae[ee]===void 0&&(ae[ee]=we[ee]);return ie(j,ue,ae)},me.createRef=function(){return{current:null}},me.forwardRef=function(j){return{$$typeof:y,render:j}},me.isValidElement=Oe,me.lazy=function(j){return{$$typeof:b,_payload:{_status:-1,_result:j},_init:te}},me.memo=function(j,H){return{$$typeof:g,type:j,compare:H===void 0?null:H}},me.startTransition=function(j){var H=Q.T,Z={};Q.T=Z;try{var ee=j(),ae=Q.S;ae!==null&&ae(Z,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(fe,pe)}catch(ue){pe(ue)}finally{H!==null&&Z.types!==null&&(H.types=Z.types),Q.T=H}},me.unstable_useCacheRefresh=function(){return Q.H.useCacheRefresh()},me.use=function(j){return Q.H.use(j)},me.useActionState=function(j,H,Z){return Q.H.useActionState(j,H,Z)},me.useCallback=function(j,H){return Q.H.useCallback(j,H)},me.useContext=function(j){return Q.H.useContext(j)},me.useDebugValue=function(){},me.useDeferredValue=function(j,H){return Q.H.useDeferredValue(j,H)},me.useEffect=function(j,H){return Q.H.useEffect(j,H)},me.useEffectEvent=function(j){return Q.H.useEffectEvent(j)},me.useId=function(){return Q.H.useId()},me.useImperativeHandle=function(j,H,Z){return Q.H.useImperativeHandle(j,H,Z)},me.useInsertionEffect=function(j,H){return Q.H.useInsertionEffect(j,H)},me.useLayoutEffect=function(j,H){return Q.H.useLayoutEffect(j,H)},me.useMemo=function(j,H){return Q.H.useMemo(j,H)},me.useOptimistic=function(j,H){return Q.H.useOptimistic(j,H)},me.useReducer=function(j,H,Z){return Q.H.useReducer(j,H,Z)},me.useRef=function(j){return Q.H.useRef(j)},me.useState=function(j){return Q.H.useState(j)},me.useSyncExternalStore=function(j,H,Z){return Q.H.useSyncExternalStore(j,H,Z)},me.useTransition=function(){return Q.H.useTransition()},me.version="19.2.4",me}var qm;function vr(){return qm||(qm=1,Gu.exports=E0()),Gu.exports}var S=vr();const w0=Hp(S),T0=S0({__proto__:null,default:w0},[S]);var $u={exports:{}},vi={},Xu={exports:{}},Qu={};/**
|
|
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 Vm;function C0(){return Vm||(Vm=1,(function(l){function i(R,Y){var te=R.length;R.push(Y);e:for(;0<te;){var pe=te-1>>>1,G=R[pe];if(0<c(G,Y))R[pe]=Y,R[te]=G,te=pe;else break e}}function s(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var Y=R[0],te=R.pop();if(te!==Y){R[0]=te;e:for(var pe=0,G=R.length,j=G>>>1;pe<j;){var H=2*(pe+1)-1,Z=R[H],ee=H+1,ae=R[ee];if(0>c(Z,te))ee<G&&0>c(ae,Z)?(R[pe]=ae,R[ee]=te,pe=ee):(R[pe]=Z,R[H]=te,pe=H);else if(ee<G&&0>c(ae,te))R[pe]=ae,R[ee]=te,pe=ee;else break e}}return Y}function c(R,Y){var te=R.sortIndex-Y.sortIndex;return te!==0?te:R.id-Y.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;l.unstable_now=function(){return f.now()}}else{var h=Date,y=h.now();l.unstable_now=function(){return h.now()-y}}var p=[],g=[],b=1,x=null,T=3,C=!1,w=!1,D=!1,L=!1,V=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,X=typeof setImmediate<"u"?setImmediate:null;function K(R){for(var Y=s(g);Y!==null;){if(Y.callback===null)r(g);else if(Y.startTime<=R)r(g),Y.sortIndex=Y.expirationTime,i(p,Y);else break;Y=s(g)}}function P(R){if(D=!1,K(R),!w)if(s(p)!==null)w=!0,fe||(fe=!0,oe());else{var Y=s(g);Y!==null&&J(P,Y.startTime-R)}}var fe=!1,Q=-1,k=5,ie=-1;function W(){return L?!0:!(l.unstable_now()-ie<k)}function Oe(){if(L=!1,fe){var R=l.unstable_now();ie=R;var Y=!0;try{e:{w=!1,D&&(D=!1,$(Q),Q=-1),C=!0;var te=T;try{t:{for(K(R),x=s(p);x!==null&&!(x.expirationTime>R&&W());){var pe=x.callback;if(typeof pe=="function"){x.callback=null,T=x.priorityLevel;var G=pe(x.expirationTime<=R);if(R=l.unstable_now(),typeof G=="function"){x.callback=G,K(R),Y=!0;break t}x===s(p)&&r(p),K(R)}else r(p);x=s(p)}if(x!==null)Y=!0;else{var j=s(g);j!==null&&J(P,j.startTime-R),Y=!1}}break e}finally{x=null,T=te,C=!1}Y=void 0}}finally{Y?oe():fe=!1}}}var oe;if(typeof X=="function")oe=function(){X(Oe)};else if(typeof MessageChannel<"u"){var F=new MessageChannel,I=F.port2;F.port1.onmessage=Oe,oe=function(){I.postMessage(null)}}else oe=function(){V(Oe,0)};function J(R,Y){Q=V(function(){R(l.unstable_now())},Y)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(R){R.callback=null},l.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<R?Math.floor(1e3/R):5},l.unstable_getCurrentPriorityLevel=function(){return T},l.unstable_next=function(R){switch(T){case 1:case 2:case 3:var Y=3;break;default:Y=T}var te=T;T=Y;try{return R()}finally{T=te}},l.unstable_requestPaint=function(){L=!0},l.unstable_runWithPriority=function(R,Y){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var te=T;T=R;try{return Y()}finally{T=te}},l.unstable_scheduleCallback=function(R,Y,te){var pe=l.unstable_now();switch(typeof te=="object"&&te!==null?(te=te.delay,te=typeof te=="number"&&0<te?pe+te:pe):te=pe,R){case 1:var G=-1;break;case 2:G=250;break;case 5:G=1073741823;break;case 4:G=1e4;break;default:G=5e3}return G=te+G,R={id:b++,callback:Y,priorityLevel:R,startTime:te,expirationTime:G,sortIndex:-1},te>pe?(R.sortIndex=te,i(g,R),s(p)===null&&R===s(g)&&(D?($(Q),Q=-1):D=!0,J(P,te-pe))):(R.sortIndex=G,i(p,R),w||C||(w=!0,fe||(fe=!0,oe()))),R},l.unstable_shouldYield=W,l.unstable_wrapCallback=function(R){var Y=T;return function(){var te=T;T=Y;try{return R.apply(this,arguments)}finally{T=te}}}})(Qu)),Qu}var Ym;function A0(){return Ym||(Ym=1,Xu.exports=C0()),Xu.exports}var Ku={exports:{}},ut={};/**
|
|
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 Gm;function R0(){if(Gm)return ut;Gm=1;var l=vr();function i(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},c=Symbol.for("react.portal");function f(p,g,b){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:x==null?null:""+x,children:p,containerInfo:g,implementation:b}}var h=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ut.createPortal=function(p,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(i(299));return f(p,g,null,b)},ut.flushSync=function(p){var g=h.T,b=r.p;try{if(h.T=null,r.p=2,p)return p()}finally{h.T=g,r.p=b,r.d.f()}},ut.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(p,g))},ut.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},ut.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var b=g.as,x=y(b,g.crossOrigin),T=typeof g.integrity=="string"?g.integrity:void 0,C=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?r.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:x,integrity:T,fetchPriority:C}):b==="script"&&r.d.X(p,{crossOrigin:x,integrity:T,fetchPriority:C,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ut.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=y(g.as,g.crossOrigin);r.d.M(p,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(p)},ut.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,x=y(b,g.crossOrigin);r.d.L(p,b,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},ut.preloadModule=function(p,g){if(typeof p=="string")if(g){var b=y(g.as,g.crossOrigin);r.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(p)},ut.requestFormReset=function(p){r.d.r(p)},ut.unstable_batchedUpdates=function(p,g){return p(g)},ut.useFormState=function(p,g,b){return h.H.useFormState(p,g,b)},ut.useFormStatus=function(){return h.H.useHostTransitionStatus()},ut.version="19.2.4",ut}var $m;function O0(){if($m)return Ku.exports;$m=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),Ku.exports=R0(),Ku.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 Xm;function z0(){if(Xm)return vi;Xm=1;var l=A0(),i=vr(),s=O0();function r(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(r(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,a=t;;){var o=n.return;if(o===null)break;var u=o.alternate;if(u===null){if(a=o.return,a!==null){n=a;continue}break}if(o.child===u.child){for(u=o.child;u;){if(u===n)return p(o),e;if(u===a)return p(o),t;u=u.sibling}throw Error(r(188))}if(n.return!==a.return)n=o,a=u;else{for(var m=!1,v=o.child;v;){if(v===n){m=!0,n=o,a=u;break}if(v===a){m=!0,a=o,n=u;break}v=v.sibling}if(!m){for(v=u.child;v;){if(v===n){m=!0,n=u,a=o;break}if(v===a){m=!0,a=u,n=o;break}v=v.sibling}if(!m)throw Error(r(189))}}if(n.alternate!==a)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var x=Object.assign,T=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),X=Symbol.for("react.context"),K=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),Oe=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=Oe&&e[Oe]||e["@@iterator"],typeof e=="function"?e:null)}var F=Symbol.for("react.client.reference");function I(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===F?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case V:return"Profiler";case L:return"StrictMode";case P:return"Suspense";case fe:return"SuspenseList";case ie:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case X:return e.displayName||"Context";case $:return(e._context.displayName||"Context")+".Consumer";case K:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Q:return t=e.displayName||null,t!==null?t:I(e.type)||"Memo";case k:t=e._payload,e=e._init;try{return I(e(t))}catch{}}return null}var J=Array.isArray,R=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te={pending:!1,data:null,method:null,action:null},pe=[],G=-1;function j(e){return{current:e}}function H(e){0>G||(e.current=pe[G],pe[G]=null,G--)}function Z(e,t){G++,pe[G]=e.current,e.current=t}var ee=j(null),ae=j(null),ue=j(null),we=j(null);function Pe(e,t){switch(Z(ue,t),Z(ae,e),Z(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?im(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=im(t),e=sm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}H(ee),Z(ee,e)}function ve(){H(ee),H(ae),H(ue)}function zn(e){e.memoizedState!==null&&Z(we,e);var t=ee.current,n=sm(t,e.type);t!==n&&(Z(ae,e),Z(ee,n))}function rn(e){ae.current===e&&(H(ee),H(ae)),we.current===e&&(H(we),hi._currentValue=te)}var Mn,Da;function _t(e){if(Mn===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Mn=t&&t[1]||"",Da=-1<n.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+Mn+e+Da}var Er=!1;function wr(e,t){if(!e||Er)return"";Er=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var q=function(){throw Error()};if(Object.defineProperty(q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(q,[])}catch(_){var M=_}Reflect.construct(e,[],q)}else{try{q.call()}catch(_){M=_}e.call(q.prototype)}}else{try{throw Error()}catch(_){M=_}(q=e())&&typeof q.catch=="function"&&q.catch(function(){})}}catch(_){if(_&&M&&typeof _.stack=="string")return[_.stack,M.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=a.DetermineComponentFrameRoot(),m=u[0],v=u[1];if(m&&v){var N=m.split(`
|
|
44
|
+
`),z=v.split(`
|
|
45
|
+
`);for(o=a=0;a<N.length&&!N[a].includes("DetermineComponentFrameRoot");)a++;for(;o<z.length&&!z[o].includes("DetermineComponentFrameRoot");)o++;if(a===N.length||o===z.length)for(a=N.length-1,o=z.length-1;1<=a&&0<=o&&N[a]!==z[o];)o--;for(;1<=a&&0<=o;a--,o--)if(N[a]!==z[o]){if(a!==1||o!==1)do if(a--,o--,0>o||N[a]!==z[o]){var U=`
|
|
46
|
+
`+N[a].replace(" at new "," at ");return e.displayName&&U.includes("<anonymous>")&&(U=U.replace("<anonymous>",e.displayName)),U}while(1<=a&&0<=o);break}}}finally{Er=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?_t(n):""}function Fg(e,t){switch(e.tag){case 26:case 27:case 5:return _t(e.type);case 16:return _t("Lazy");case 13:return e.child!==t&&t!==null?_t("Suspense Fallback"):_t("Suspense");case 19:return _t("SuspenseList");case 0:case 15:return wr(e.type,!1);case 11:return wr(e.type.render,!1);case 1:return wr(e.type,!0);case 31:return _t("Activity");default:return""}}function Lc(e){try{var t="",n=null;do t+=Fg(e,n),n=e,e=e.return;while(e);return t}catch(a){return`
|
|
47
|
+
Error generating stack: `+a.message+`
|
|
48
|
+
`+a.stack}}var Tr=Object.prototype.hasOwnProperty,Cr=l.unstable_scheduleCallback,Ar=l.unstable_cancelCallback,Wg=l.unstable_shouldYield,Ig=l.unstable_requestPaint,jt=l.unstable_now,Pg=l.unstable_getCurrentPriorityLevel,kc=l.unstable_ImmediatePriority,Uc=l.unstable_UserBlockingPriority,ki=l.unstable_NormalPriority,ey=l.unstable_LowPriority,Hc=l.unstable_IdlePriority,ty=l.log,ny=l.unstable_setDisableYieldValue,wl=null,Et=null;function _n(e){if(typeof ty=="function"&&ny(e),Et&&typeof Et.setStrictMode=="function")try{Et.setStrictMode(wl,e)}catch{}}var wt=Math.clz32?Math.clz32:iy,ay=Math.log,ly=Math.LN2;function iy(e){return e>>>=0,e===0?32:31-(ay(e)/ly|0)|0}var Ui=256,Hi=262144,Bi=4194304;function ua(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function qi(e,t,n){var a=e.pendingLanes;if(a===0)return 0;var o=0,u=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var v=a&134217727;return v!==0?(a=v&~u,a!==0?o=ua(a):(m&=v,m!==0?o=ua(m):n||(n=v&~e,n!==0&&(o=ua(n))))):(v=a&~u,v!==0?o=ua(v):m!==0?o=ua(m):n||(n=a&~e,n!==0&&(o=ua(n)))),o===0?0:t!==0&&t!==o&&(t&u)===0&&(u=o&-o,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:o}function Tl(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function sy(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 Bc(){var e=Bi;return Bi<<=1,(Bi&62914560)===0&&(Bi=4194304),e}function Rr(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Cl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ry(e,t,n,a,o,u){var m=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var v=e.entanglements,N=e.expirationTimes,z=e.hiddenUpdates;for(n=m&~n;0<n;){var U=31-wt(n),q=1<<U;v[U]=0,N[U]=-1;var M=z[U];if(M!==null)for(z[U]=null,U=0;U<M.length;U++){var _=M[U];_!==null&&(_.lane&=-536870913)}n&=~q}a!==0&&qc(e,a,0),u!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=u&~(m&~t))}function qc(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-wt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|n&261930}function Vc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-wt(n),o=1<<a;o&t|e[a]&t&&(e[a]|=t),n&=~o}}function Yc(e,t){var n=t&-t;return n=(n&42)!==0?1:Or(n),(n&(e.suspendedLanes|t))!==0?0:n}function Or(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function zr(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Gc(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:Rm(e.type))}function $c(e,t){var n=Y.p;try{return Y.p=e,t()}finally{Y.p=n}}var Dn=Math.random().toString(36).slice(2),lt="__reactFiber$"+Dn,mt="__reactProps$"+Dn,La="__reactContainer$"+Dn,Mr="__reactEvents$"+Dn,oy="__reactListeners$"+Dn,uy="__reactHandles$"+Dn,Xc="__reactResources$"+Dn,Al="__reactMarker$"+Dn;function _r(e){delete e[lt],delete e[mt],delete e[Mr],delete e[oy],delete e[uy]}function ka(e){var t=e[lt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[La]||n[lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=hm(e);e!==null;){if(n=e[lt])return n;e=hm(e)}return t}e=n,n=e.parentNode}return null}function Ua(e){if(e=e[lt]||e[La]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Rl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Ha(e){var t=e[Xc];return t||(t=e[Xc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Al]=!0}var Qc=new Set,Kc={};function ca(e,t){Ba(e,t),Ba(e+"Capture",t)}function Ba(e,t){for(Kc[e]=t,e=0;e<t.length;e++)Qc.add(t[e])}var cy=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]*$"),Zc={},Jc={};function fy(e){return Tr.call(Jc,e)?!0:Tr.call(Zc,e)?!1:cy.test(e)?Jc[e]=!0:(Zc[e]=!0,!1)}function Vi(e,t,n){if(fy(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Yi(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function on(e,t,n,a){if(a===null)e.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+a)}}function Dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dy(e,t,n){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,u=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(m){n=""+m,u.call(this,m)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Dr(e){if(!e._valueTracker){var t=Fc(e)?"checked":"value";e._valueTracker=dy(e,t,""+e[t])}}function Wc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=Fc(e)?e.checked?"true":"false":e.value),e=a,e!==n?(t.setValue(e),!0):!1}function Gi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var hy=/[\n"\\]/g;function Lt(e){return e.replace(hy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Lr(e,t,n,a,o,u,m,v){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Dt(t)):e.value!==""+Dt(t)&&(e.value=""+Dt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?kr(e,m,Dt(t)):n!=null?kr(e,m,Dt(n)):a!=null&&e.removeAttribute("value"),o==null&&u!=null&&(e.defaultChecked=!!u),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?e.name=""+Dt(v):e.removeAttribute("name")}function Ic(e,t,n,a,o,u,m,v){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Dr(e);return}n=n!=null?""+Dt(n):"",t=t!=null?""+Dt(t):n,v||t===e.value||(e.value=t),e.defaultValue=t}a=a??o,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=v?e.checked:!!a,e.defaultChecked=!!a,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),Dr(e)}function kr(e,t,n){t==="number"&&Gi(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function qa(e,t,n,a){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&a&&(e[n].defaultSelected=!0)}else{for(n=""+Dt(n),t=null,o=0;o<e.length;o++){if(e[o].value===n){e[o].selected=!0,a&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function Pc(e,t,n){if(t!=null&&(t=""+Dt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Dt(n):""}function ef(e,t,n,a){if(t==null){if(a!=null){if(n!=null)throw Error(r(92));if(J(a)){if(1<a.length)throw Error(r(93));a=a[0]}n=a}n==null&&(n=""),t=n}n=Dt(t),e.defaultValue=n,a=e.textContent,a===n&&a!==""&&a!==null&&(e.value=a),Dr(e)}function Va(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var my=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 tf(e,t,n){var a=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,n):typeof n!="number"||n===0||my.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function nf(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var o in t)a=t[o],t.hasOwnProperty(o)&&n[o]!==a&&tf(e,o,a)}else for(var u in t)t.hasOwnProperty(u)&&tf(e,u,t[u])}function Ur(e){if(e.indexOf("-")===-1)return!1;switch(e){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 py=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"]]),gy=/^[\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 $i(e){return gy.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function un(){}var Hr=null;function Br(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ya=null,Ga=null;function af(e){var t=Ua(e);if(t&&(e=t.stateNode)){var n=e[mt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Lr(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Lt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var a=n[t];if(a!==e&&a.form===e.form){var o=a[mt]||null;if(!o)throw Error(r(90));Lr(a,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<n.length;t++)a=n[t],a.form===e.form&&Wc(a)}break e;case"textarea":Pc(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&qa(e,!!n.multiple,t,!1)}}}var qr=!1;function lf(e,t,n){if(qr)return e(t,n);qr=!0;try{var a=e(t);return a}finally{if(qr=!1,(Ya!==null||Ga!==null)&&(zs(),Ya&&(t=Ya,e=Ga,Ga=Ya=null,af(t),e)))for(t=0;t<e.length;t++)af(e[t])}}function Ol(e,t){var n=e.stateNode;if(n===null)return null;var a=n[mt]||null;if(a===null)return null;n=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var cn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Vr=!1;if(cn)try{var zl={};Object.defineProperty(zl,"passive",{get:function(){Vr=!0}}),window.addEventListener("test",zl,zl),window.removeEventListener("test",zl,zl)}catch{Vr=!1}var Ln=null,Yr=null,Xi=null;function sf(){if(Xi)return Xi;var e,t=Yr,n=t.length,a,o="value"in Ln?Ln.value:Ln.textContent,u=o.length;for(e=0;e<n&&t[e]===o[e];e++);var m=n-e;for(a=1;a<=m&&t[n-a]===o[u-a];a++);return Xi=o.slice(e,1<a?1-a:void 0)}function Qi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Ki(){return!0}function rf(){return!1}function pt(e){function t(n,a,o,u,m){this._reactName=n,this._targetInst=o,this.type=a,this.nativeEvent=u,this.target=m,this.currentTarget=null;for(var v in e)e.hasOwnProperty(v)&&(n=e[v],this[v]=n?n(u):u[v]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Ki:rf,this.isPropagationStopped=rf,this}return x(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Ki)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Ki)},persist:function(){},isPersistent:Ki}),t}var fa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zi=pt(fa),Ml=x({},fa,{view:0,detail:0}),yy=pt(Ml),Gr,$r,_l,Ji=x({},Ml,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==_l&&(_l&&e.type==="mousemove"?(Gr=e.screenX-_l.screenX,$r=e.screenY-_l.screenY):$r=Gr=0,_l=e),Gr)},movementY:function(e){return"movementY"in e?e.movementY:$r}}),of=pt(Ji),vy=x({},Ji,{dataTransfer:0}),xy=pt(vy),by=x({},Ml,{relatedTarget:0}),Xr=pt(by),Sy=x({},fa,{animationName:0,elapsedTime:0,pseudoElement:0}),Ny=pt(Sy),jy=x({},fa,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ey=pt(jy),wy=x({},fa,{data:0}),uf=pt(wy),Ty={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Cy={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"},Ay={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Ry(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ay[e])?!!t[e]:!1}function Qr(){return Ry}var Oy=x({},Ml,{key:function(e){if(e.key){var t=Ty[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Qi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Cy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qr,charCode:function(e){return e.type==="keypress"?Qi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),zy=pt(Oy),My=x({},Ji,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),cf=pt(My),_y=x({},Ml,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qr}),Dy=pt(_y),Ly=x({},fa,{propertyName:0,elapsedTime:0,pseudoElement:0}),ky=pt(Ly),Uy=x({},Ji,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Hy=pt(Uy),By=x({},fa,{newState:0,oldState:0}),qy=pt(By),Vy=[9,13,27,32],Kr=cn&&"CompositionEvent"in window,Dl=null;cn&&"documentMode"in document&&(Dl=document.documentMode);var Yy=cn&&"TextEvent"in window&&!Dl,ff=cn&&(!Kr||Dl&&8<Dl&&11>=Dl),df=" ",hf=!1;function mf(e,t){switch(e){case"keyup":return Vy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var $a=!1;function Gy(e,t){switch(e){case"compositionend":return pf(t);case"keypress":return t.which!==32?null:(hf=!0,df);case"textInput":return e=t.data,e===df&&hf?null:e;default:return null}}function $y(e,t){if($a)return e==="compositionend"||!Kr&&mf(e,t)?(e=sf(),Xi=Yr=Ln=null,$a=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return ff&&t.locale!=="ko"?null:t.data;default:return null}}var Xy={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 gf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Xy[e.type]:t==="textarea"}function yf(e,t,n,a){Ya?Ga?Ga.push(a):Ga=[a]:Ya=a,t=Hs(t,"onChange"),0<t.length&&(n=new Zi("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Ll=null,kl=null;function Qy(e){Ph(e,0)}function Fi(e){var t=Rl(e);if(Wc(t))return e}function vf(e,t){if(e==="change")return t}var xf=!1;if(cn){var Zr;if(cn){var Jr="oninput"in document;if(!Jr){var bf=document.createElement("div");bf.setAttribute("oninput","return;"),Jr=typeof bf.oninput=="function"}Zr=Jr}else Zr=!1;xf=Zr&&(!document.documentMode||9<document.documentMode)}function Sf(){Ll&&(Ll.detachEvent("onpropertychange",Nf),kl=Ll=null)}function Nf(e){if(e.propertyName==="value"&&Fi(kl)){var t=[];yf(t,kl,e,Br(e)),lf(Qy,t)}}function Ky(e,t,n){e==="focusin"?(Sf(),Ll=t,kl=n,Ll.attachEvent("onpropertychange",Nf)):e==="focusout"&&Sf()}function Zy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Fi(kl)}function Jy(e,t){if(e==="click")return Fi(t)}function Fy(e,t){if(e==="input"||e==="change")return Fi(t)}function Wy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Tt=typeof Object.is=="function"?Object.is:Wy;function Ul(e,t){if(Tt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var o=n[a];if(!Tr.call(t,o)||!Tt(e[o],t[o]))return!1}return!0}function jf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ef(e,t){var n=jf(e);e=0;for(var a;n;){if(n.nodeType===3){if(a=e+n.textContent.length,e<=t&&a>=t)return{node:n,offset:t-e};e=a}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=jf(n)}}function wf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?wf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Gi(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gi(e.document)}return t}function Fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Iy=cn&&"documentMode"in document&&11>=document.documentMode,Xa=null,Wr=null,Hl=null,Ir=!1;function Cf(e,t,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ir||Xa==null||Xa!==Gi(a)||(a=Xa,"selectionStart"in a&&Fr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),Hl&&Ul(Hl,a)||(Hl=a,a=Hs(Wr,"onSelect"),0<a.length&&(t=new Zi("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=Xa)))}function da(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Qa={animationend:da("Animation","AnimationEnd"),animationiteration:da("Animation","AnimationIteration"),animationstart:da("Animation","AnimationStart"),transitionrun:da("Transition","TransitionRun"),transitionstart:da("Transition","TransitionStart"),transitioncancel:da("Transition","TransitionCancel"),transitionend:da("Transition","TransitionEnd")},Pr={},Af={};cn&&(Af=document.createElement("div").style,"AnimationEvent"in window||(delete Qa.animationend.animation,delete Qa.animationiteration.animation,delete Qa.animationstart.animation),"TransitionEvent"in window||delete Qa.transitionend.transition);function ha(e){if(Pr[e])return Pr[e];if(!Qa[e])return e;var t=Qa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Af)return Pr[e]=t[n];return e}var Rf=ha("animationend"),Of=ha("animationiteration"),zf=ha("animationstart"),Py=ha("transitionrun"),ev=ha("transitionstart"),tv=ha("transitioncancel"),Mf=ha("transitionend"),_f=new Map,eo="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(" ");eo.push("scrollEnd");function Xt(e,t){_f.set(e,t),ca(t,[e])}var Wi=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},kt=[],Ka=0,to=0;function Ii(){for(var e=Ka,t=to=Ka=0;t<e;){var n=kt[t];kt[t++]=null;var a=kt[t];kt[t++]=null;var o=kt[t];kt[t++]=null;var u=kt[t];if(kt[t++]=null,a!==null&&o!==null){var m=a.pending;m===null?o.next=o:(o.next=m.next,m.next=o),a.pending=o}u!==0&&Df(n,o,u)}}function Pi(e,t,n,a){kt[Ka++]=e,kt[Ka++]=t,kt[Ka++]=n,kt[Ka++]=a,to|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function no(e,t,n,a){return Pi(e,t,n,a),es(e)}function ma(e,t){return Pi(e,null,null,t),es(e)}function Df(e,t,n){e.lanes|=n;var a=e.alternate;a!==null&&(a.lanes|=n);for(var o=!1,u=e.return;u!==null;)u.childLanes|=n,a=u.alternate,a!==null&&(a.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(o=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,o&&t!==null&&(o=31-wt(n),e=u.hiddenUpdates,a=e[o],a===null?e[o]=[t]:a.push(t),t.lane=n|536870912),u):null}function es(e){if(50<si)throw si=0,du=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Za={};function nv(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ct(e,t,n,a){return new nv(e,t,n,a)}function ao(e){return e=e.prototype,!(!e||!e.isReactComponent)}function fn(e,t){var n=e.alternate;return n===null?(n=Ct(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Lf(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ts(e,t,n,a,o,u){var m=0;if(a=e,typeof e=="function")ao(e)&&(m=1);else if(typeof e=="string")m=r0(e,n,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ie:return e=Ct(31,n,t,o),e.elementType=ie,e.lanes=u,e;case D:return pa(n.children,o,u,t);case L:m=8,o|=24;break;case V:return e=Ct(12,n,t,o|2),e.elementType=V,e.lanes=u,e;case P:return e=Ct(13,n,t,o),e.elementType=P,e.lanes=u,e;case fe:return e=Ct(19,n,t,o),e.elementType=fe,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case X:m=10;break e;case $:m=9;break e;case K:m=11;break e;case Q:m=14;break e;case k:m=16,a=null;break e}m=29,n=Error(r(130,e===null?"null":typeof e,"")),a=null}return t=Ct(m,n,t,o),t.elementType=e,t.type=a,t.lanes=u,t}function pa(e,t,n,a){return e=Ct(7,e,a,t),e.lanes=n,e}function lo(e,t,n){return e=Ct(6,e,null,t),e.lanes=n,e}function kf(e){var t=Ct(18,null,null,0);return t.stateNode=e,t}function io(e,t,n){return t=Ct(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Uf=new WeakMap;function Ut(e,t){if(typeof e=="object"&&e!==null){var n=Uf.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Lc(t)},Uf.set(e,t),t)}return{value:e,source:t,stack:Lc(t)}}var Ja=[],Fa=0,ns=null,Bl=0,Ht=[],Bt=0,kn=null,Jt=1,Ft="";function dn(e,t){Ja[Fa++]=Bl,Ja[Fa++]=ns,ns=e,Bl=t}function Hf(e,t,n){Ht[Bt++]=Jt,Ht[Bt++]=Ft,Ht[Bt++]=kn,kn=e;var a=Jt;e=Ft;var o=32-wt(a)-1;a&=~(1<<o),n+=1;var u=32-wt(t)+o;if(30<u){var m=o-o%5;u=(a&(1<<m)-1).toString(32),a>>=m,o-=m,Jt=1<<32-wt(t)+o|n<<o|a,Ft=u+e}else Jt=1<<u|n<<o|a,Ft=e}function so(e){e.return!==null&&(dn(e,1),Hf(e,1,0))}function ro(e){for(;e===ns;)ns=Ja[--Fa],Ja[Fa]=null,Bl=Ja[--Fa],Ja[Fa]=null;for(;e===kn;)kn=Ht[--Bt],Ht[Bt]=null,Ft=Ht[--Bt],Ht[Bt]=null,Jt=Ht[--Bt],Ht[Bt]=null}function Bf(e,t){Ht[Bt++]=Jt,Ht[Bt++]=Ft,Ht[Bt++]=kn,Jt=t.id,Ft=t.overflow,kn=e}var it=null,He=null,Te=!1,Un=null,qt=!1,oo=Error(r(519));function Hn(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ql(Ut(t,e)),oo}function qf(e){var t=e.stateNode,n=e.type,a=e.memoizedProps;switch(t[lt]=e,t[mt]=a,n){case"dialog":Se("cancel",t),Se("close",t);break;case"iframe":case"object":case"embed":Se("load",t);break;case"video":case"audio":for(n=0;n<oi.length;n++)Se(oi[n],t);break;case"source":Se("error",t);break;case"img":case"image":case"link":Se("error",t),Se("load",t);break;case"details":Se("toggle",t);break;case"input":Se("invalid",t),Ic(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":Se("invalid",t);break;case"textarea":Se("invalid",t),ef(t,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||a.suppressHydrationWarning===!0||am(t.textContent,n)?(a.popover!=null&&(Se("beforetoggle",t),Se("toggle",t)),a.onScroll!=null&&Se("scroll",t),a.onScrollEnd!=null&&Se("scrollend",t),a.onClick!=null&&(t.onclick=un),t=!0):t=!1,t||Hn(e,!0)}function Vf(e){for(it=e.return;it;)switch(it.tag){case 5:case 31:case 13:qt=!1;return;case 27:case 3:qt=!0;return;default:it=it.return}}function Wa(e){if(e!==it)return!1;if(!Te)return Vf(e),Te=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Cu(e.type,e.memoizedProps)),n=!n),n&&He&&Hn(e),Vf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=dm(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));He=dm(e)}else t===27?(t=He,In(e.type)?(e=Mu,Mu=null,He=e):He=t):He=it?Yt(e.stateNode.nextSibling):null;return!0}function ga(){He=it=null,Te=!1}function uo(){var e=Un;return e!==null&&(xt===null?xt=e:xt.push.apply(xt,e),Un=null),e}function ql(e){Un===null?Un=[e]:Un.push(e)}var co=j(null),ya=null,hn=null;function Bn(e,t,n){Z(co,t._currentValue),t._currentValue=n}function mn(e){e._currentValue=co.current,H(co)}function fo(e,t,n){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===n)break;e=e.return}}function ho(e,t,n,a){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var u=o.dependencies;if(u!==null){var m=o.child;u=u.firstContext;e:for(;u!==null;){var v=u;u=o;for(var N=0;N<t.length;N++)if(v.context===t[N]){u.lanes|=n,v=u.alternate,v!==null&&(v.lanes|=n),fo(u.return,n,e),a||(m=null);break e}u=v.next}}else if(o.tag===18){if(m=o.return,m===null)throw Error(r(341));m.lanes|=n,u=m.alternate,u!==null&&(u.lanes|=n),fo(m,n,e),m=null}else m=o.child;if(m!==null)m.return=o;else for(m=o;m!==null;){if(m===e){m=null;break}if(o=m.sibling,o!==null){o.return=m.return,m=o;break}m=m.return}o=m}}function Ia(e,t,n,a){e=null;for(var o=t,u=!1;o!==null;){if(!u){if((o.flags&524288)!==0)u=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var m=o.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var v=o.type;Tt(o.pendingProps.value,m.value)||(e!==null?e.push(v):e=[v])}}else if(o===we.current){if(m=o.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(hi):e=[hi])}o=o.return}e!==null&&ho(t,e,n,a),t.flags|=262144}function as(e){for(e=e.firstContext;e!==null;){if(!Tt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function va(e){ya=e,hn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function st(e){return Yf(ya,e)}function ls(e,t){return ya===null&&va(e),Yf(e,t)}function Yf(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},hn===null){if(e===null)throw Error(r(308));hn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else hn=hn.next=t;return n}var av=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},lv=l.unstable_scheduleCallback,iv=l.unstable_NormalPriority,Ke={$$typeof:X,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mo(){return{controller:new av,data:new Map,refCount:0}}function Vl(e){e.refCount--,e.refCount===0&&lv(iv,function(){e.controller.abort()})}var Yl=null,po=0,Pa=0,el=null;function sv(e,t){if(Yl===null){var n=Yl=[];po=0,Pa=vu(),el={status:"pending",value:void 0,then:function(a){n.push(a)}}}return po++,t.then(Gf,Gf),t}function Gf(){if(--po===0&&Yl!==null){el!==null&&(el.status="fulfilled");var e=Yl;Yl=null,Pa=0,el=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function rv(e,t){var n=[],a={status:"pending",value:null,reason:null,then:function(o){n.push(o)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var o=0;o<n.length;o++)(0,n[o])(t)},function(o){for(a.status="rejected",a.reason=o,o=0;o<n.length;o++)(0,n[o])(void 0)}),a}var $f=R.S;R.S=function(e,t){Ch=jt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&sv(e,t),$f!==null&&$f(e,t)};var xa=j(null);function go(){var e=xa.current;return e!==null?e:ke.pooledCache}function is(e,t){t===null?Z(xa,xa.current):Z(xa,t.pool)}function Xf(){var e=go();return e===null?null:{parent:Ke._currentValue,pool:e}}var tl=Error(r(460)),yo=Error(r(474)),ss=Error(r(542)),rs={then:function(){}};function Qf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Kf(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(un,un),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jf(e),e;default:if(typeof t.status=="string")t.then(un,un);else{if(e=ke,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=a}},function(a){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jf(e),e}throw Sa=t,tl}}function ba(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Sa=n,tl):n}}var Sa=null;function Zf(){if(Sa===null)throw Error(r(459));var e=Sa;return Sa=null,e}function Jf(e){if(e===tl||e===ss)throw Error(r(483))}var nl=null,Gl=0;function os(e){var t=Gl;return Gl+=1,nl===null&&(nl=[]),Kf(nl,e,t)}function $l(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function us(e,t){throw t.$$typeof===T?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Ff(e){function t(A,E){if(e){var O=A.deletions;O===null?(A.deletions=[E],A.flags|=16):O.push(E)}}function n(A,E){if(!e)return null;for(;E!==null;)t(A,E),E=E.sibling;return null}function a(A){for(var E=new Map;A!==null;)A.key!==null?E.set(A.key,A):E.set(A.index,A),A=A.sibling;return E}function o(A,E){return A=fn(A,E),A.index=0,A.sibling=null,A}function u(A,E,O){return A.index=O,e?(O=A.alternate,O!==null?(O=O.index,O<E?(A.flags|=67108866,E):O):(A.flags|=67108866,E)):(A.flags|=1048576,E)}function m(A){return e&&A.alternate===null&&(A.flags|=67108866),A}function v(A,E,O,B){return E===null||E.tag!==6?(E=lo(O,A.mode,B),E.return=A,E):(E=o(E,O),E.return=A,E)}function N(A,E,O,B){var ce=O.type;return ce===D?U(A,E,O.props.children,B,O.key):E!==null&&(E.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===k&&ba(ce)===E.type)?(E=o(E,O.props),$l(E,O),E.return=A,E):(E=ts(O.type,O.key,O.props,null,A.mode,B),$l(E,O),E.return=A,E)}function z(A,E,O,B){return E===null||E.tag!==4||E.stateNode.containerInfo!==O.containerInfo||E.stateNode.implementation!==O.implementation?(E=io(O,A.mode,B),E.return=A,E):(E=o(E,O.children||[]),E.return=A,E)}function U(A,E,O,B,ce){return E===null||E.tag!==7?(E=pa(O,A.mode,B,ce),E.return=A,E):(E=o(E,O),E.return=A,E)}function q(A,E,O){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=lo(""+E,A.mode,O),E.return=A,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case C:return O=ts(E.type,E.key,E.props,null,A.mode,O),$l(O,E),O.return=A,O;case w:return E=io(E,A.mode,O),E.return=A,E;case k:return E=ba(E),q(A,E,O)}if(J(E)||oe(E))return E=pa(E,A.mode,O,null),E.return=A,E;if(typeof E.then=="function")return q(A,os(E),O);if(E.$$typeof===X)return q(A,ls(A,E),O);us(A,E)}return null}function M(A,E,O,B){var ce=E!==null?E.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return ce!==null?null:v(A,E,""+O,B);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case C:return O.key===ce?N(A,E,O,B):null;case w:return O.key===ce?z(A,E,O,B):null;case k:return O=ba(O),M(A,E,O,B)}if(J(O)||oe(O))return ce!==null?null:U(A,E,O,B,null);if(typeof O.then=="function")return M(A,E,os(O),B);if(O.$$typeof===X)return M(A,E,ls(A,O),B);us(A,O)}return null}function _(A,E,O,B,ce){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return A=A.get(O)||null,v(E,A,""+B,ce);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case C:return A=A.get(B.key===null?O:B.key)||null,N(E,A,B,ce);case w:return A=A.get(B.key===null?O:B.key)||null,z(E,A,B,ce);case k:return B=ba(B),_(A,E,O,B,ce)}if(J(B)||oe(B))return A=A.get(O)||null,U(E,A,B,ce,null);if(typeof B.then=="function")return _(A,E,O,os(B),ce);if(B.$$typeof===X)return _(A,E,O,ls(E,B),ce);us(E,B)}return null}function ne(A,E,O,B){for(var ce=null,Ce=null,re=E,ye=E=0,Ee=null;re!==null&&ye<O.length;ye++){re.index>ye?(Ee=re,re=null):Ee=re.sibling;var Ae=M(A,re,O[ye],B);if(Ae===null){re===null&&(re=Ee);break}e&&re&&Ae.alternate===null&&t(A,re),E=u(Ae,E,ye),Ce===null?ce=Ae:Ce.sibling=Ae,Ce=Ae,re=Ee}if(ye===O.length)return n(A,re),Te&&dn(A,ye),ce;if(re===null){for(;ye<O.length;ye++)re=q(A,O[ye],B),re!==null&&(E=u(re,E,ye),Ce===null?ce=re:Ce.sibling=re,Ce=re);return Te&&dn(A,ye),ce}for(re=a(re);ye<O.length;ye++)Ee=_(re,A,ye,O[ye],B),Ee!==null&&(e&&Ee.alternate!==null&&re.delete(Ee.key===null?ye:Ee.key),E=u(Ee,E,ye),Ce===null?ce=Ee:Ce.sibling=Ee,Ce=Ee);return e&&re.forEach(function(aa){return t(A,aa)}),Te&&dn(A,ye),ce}function de(A,E,O,B){if(O==null)throw Error(r(151));for(var ce=null,Ce=null,re=E,ye=E=0,Ee=null,Ae=O.next();re!==null&&!Ae.done;ye++,Ae=O.next()){re.index>ye?(Ee=re,re=null):Ee=re.sibling;var aa=M(A,re,Ae.value,B);if(aa===null){re===null&&(re=Ee);break}e&&re&&aa.alternate===null&&t(A,re),E=u(aa,E,ye),Ce===null?ce=aa:Ce.sibling=aa,Ce=aa,re=Ee}if(Ae.done)return n(A,re),Te&&dn(A,ye),ce;if(re===null){for(;!Ae.done;ye++,Ae=O.next())Ae=q(A,Ae.value,B),Ae!==null&&(E=u(Ae,E,ye),Ce===null?ce=Ae:Ce.sibling=Ae,Ce=Ae);return Te&&dn(A,ye),ce}for(re=a(re);!Ae.done;ye++,Ae=O.next())Ae=_(re,A,ye,Ae.value,B),Ae!==null&&(e&&Ae.alternate!==null&&re.delete(Ae.key===null?ye:Ae.key),E=u(Ae,E,ye),Ce===null?ce=Ae:Ce.sibling=Ae,Ce=Ae);return e&&re.forEach(function(v0){return t(A,v0)}),Te&&dn(A,ye),ce}function Le(A,E,O,B){if(typeof O=="object"&&O!==null&&O.type===D&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case C:e:{for(var ce=O.key;E!==null;){if(E.key===ce){if(ce=O.type,ce===D){if(E.tag===7){n(A,E.sibling),B=o(E,O.props.children),B.return=A,A=B;break e}}else if(E.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===k&&ba(ce)===E.type){n(A,E.sibling),B=o(E,O.props),$l(B,O),B.return=A,A=B;break e}n(A,E);break}else t(A,E);E=E.sibling}O.type===D?(B=pa(O.props.children,A.mode,B,O.key),B.return=A,A=B):(B=ts(O.type,O.key,O.props,null,A.mode,B),$l(B,O),B.return=A,A=B)}return m(A);case w:e:{for(ce=O.key;E!==null;){if(E.key===ce)if(E.tag===4&&E.stateNode.containerInfo===O.containerInfo&&E.stateNode.implementation===O.implementation){n(A,E.sibling),B=o(E,O.children||[]),B.return=A,A=B;break e}else{n(A,E);break}else t(A,E);E=E.sibling}B=io(O,A.mode,B),B.return=A,A=B}return m(A);case k:return O=ba(O),Le(A,E,O,B)}if(J(O))return ne(A,E,O,B);if(oe(O)){if(ce=oe(O),typeof ce!="function")throw Error(r(150));return O=ce.call(O),de(A,E,O,B)}if(typeof O.then=="function")return Le(A,E,os(O),B);if(O.$$typeof===X)return Le(A,E,ls(A,O),B);us(A,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,E!==null&&E.tag===6?(n(A,E.sibling),B=o(E,O),B.return=A,A=B):(n(A,E),B=lo(O,A.mode,B),B.return=A,A=B),m(A)):n(A,E)}return function(A,E,O,B){try{Gl=0;var ce=Le(A,E,O,B);return nl=null,ce}catch(re){if(re===tl||re===ss)throw re;var Ce=Ct(29,re,null,A.mode);return Ce.lanes=B,Ce.return=A,Ce}finally{}}}var Na=Ff(!0),Wf=Ff(!1),qn=!1;function vo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Vn(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Yn(e,t,n){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(Re&2)!==0){var o=a.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),a.pending=t,t=es(e),Df(e,null,n),t}return Pi(e,a,t,n),es(e)}function Xl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Vc(e,n)}}function bo(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var o=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?o=u=m:u=u.next=m,n=n.next}while(n!==null);u===null?o=u=t:u=u.next=t}else o=u=t;n={baseState:a.baseState,firstBaseUpdate:o,lastBaseUpdate:u,shared:a.shared,callbacks:a.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var So=!1;function Ql(){if(So){var e=el;if(e!==null)throw e}}function Kl(e,t,n,a){So=!1;var o=e.updateQueue;qn=!1;var u=o.firstBaseUpdate,m=o.lastBaseUpdate,v=o.shared.pending;if(v!==null){o.shared.pending=null;var N=v,z=N.next;N.next=null,m===null?u=z:m.next=z,m=N;var U=e.alternate;U!==null&&(U=U.updateQueue,v=U.lastBaseUpdate,v!==m&&(v===null?U.firstBaseUpdate=z:v.next=z,U.lastBaseUpdate=N))}if(u!==null){var q=o.baseState;m=0,U=z=N=null,v=u;do{var M=v.lane&-536870913,_=M!==v.lane;if(_?(je&M)===M:(a&M)===M){M!==0&&M===Pa&&(So=!0),U!==null&&(U=U.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});e:{var ne=e,de=v;M=t;var Le=n;switch(de.tag){case 1:if(ne=de.payload,typeof ne=="function"){q=ne.call(Le,q,M);break e}q=ne;break e;case 3:ne.flags=ne.flags&-65537|128;case 0:if(ne=de.payload,M=typeof ne=="function"?ne.call(Le,q,M):ne,M==null)break e;q=x({},q,M);break e;case 2:qn=!0}}M=v.callback,M!==null&&(e.flags|=64,_&&(e.flags|=8192),_=o.callbacks,_===null?o.callbacks=[M]:_.push(M))}else _={lane:M,tag:v.tag,payload:v.payload,callback:v.callback,next:null},U===null?(z=U=_,N=q):U=U.next=_,m|=M;if(v=v.next,v===null){if(v=o.shared.pending,v===null)break;_=v,v=_.next,_.next=null,o.lastBaseUpdate=_,o.shared.pending=null}}while(!0);U===null&&(N=q),o.baseState=N,o.firstBaseUpdate=z,o.lastBaseUpdate=U,u===null&&(o.shared.lanes=0),Kn|=m,e.lanes=m,e.memoizedState=q}}function If(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Pf(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)If(n[e],t)}var al=j(null),cs=j(0);function ed(e,t){e=jn,Z(cs,e),Z(al,t),jn=e|t.baseLanes}function No(){Z(cs,jn),Z(al,al.current)}function jo(){jn=cs.current,H(al),H(cs)}var At=j(null),Vt=null;function Gn(e){var t=e.alternate;Z($e,$e.current&1),Z(At,e),Vt===null&&(t===null||al.current!==null||t.memoizedState!==null)&&(Vt=e)}function Eo(e){Z($e,$e.current),Z(At,e),Vt===null&&(Vt=e)}function td(e){e.tag===22?(Z($e,$e.current),Z(At,e),Vt===null&&(Vt=e)):$n()}function $n(){Z($e,$e.current),Z(At,At.current)}function Rt(e){H(At),Vt===e&&(Vt=null),H($e)}var $e=j(0);function fs(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Ou(n)||zu(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var pn=0,ge=null,_e=null,Ze=null,ds=!1,ll=!1,ja=!1,hs=0,Zl=0,il=null,ov=0;function Ye(){throw Error(r(321))}function wo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Tt(e[n],t[n]))return!1;return!0}function To(e,t,n,a,o,u){return pn=u,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?Hd:Vo,ja=!1,u=n(a,o),ja=!1,ll&&(u=ad(t,n,a,o)),nd(e),u}function nd(e){R.H=Wl;var t=_e!==null&&_e.next!==null;if(pn=0,Ze=_e=ge=null,ds=!1,Zl=0,il=null,t)throw Error(r(300));e===null||Je||(e=e.dependencies,e!==null&&as(e)&&(Je=!0))}function ad(e,t,n,a){ge=e;var o=0;do{if(ll&&(il=null),Zl=0,ll=!1,25<=o)throw Error(r(301));if(o+=1,Ze=_e=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}R.H=Bd,u=t(n,a)}while(ll);return u}function uv(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?Jl(t):t,e=e.useState()[0],(_e!==null?_e.memoizedState:null)!==e&&(ge.flags|=1024),t}function Co(){var e=hs!==0;return hs=0,e}function Ao(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ro(e){if(ds){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ds=!1}pn=0,Ze=_e=ge=null,ll=!1,Zl=hs=0,il=null}function ft(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?ge.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Xe(){if(_e===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=_e.next;var t=Ze===null?ge.memoizedState:Ze.next;if(t!==null)Ze=t,_e=e;else{if(e===null)throw ge.alternate===null?Error(r(467)):Error(r(310));_e=e,e={memoizedState:_e.memoizedState,baseState:_e.baseState,baseQueue:_e.baseQueue,queue:_e.queue,next:null},Ze===null?ge.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function ms(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Jl(e){var t=Zl;return Zl+=1,il===null&&(il=[]),e=Kf(il,e,t),t=ge,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?Hd:Vo),e}function ps(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Jl(e);if(e.$$typeof===X)return st(e)}throw Error(r(438,String(e)))}function Oo(e){var t=null,n=ge.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var a=ge.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=ms(),ge.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),a=0;a<e;a++)n[a]=W;return t.index++,n}function gn(e,t){return typeof t=="function"?t(e):t}function gs(e){var t=Xe();return zo(t,_e,e)}function zo(e,t,n){var a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=n;var o=e.baseQueue,u=a.pending;if(u!==null){if(o!==null){var m=o.next;o.next=u.next,u.next=m}t.baseQueue=o=u,a.pending=null}if(u=e.baseState,o===null)e.memoizedState=u;else{t=o.next;var v=m=null,N=null,z=t,U=!1;do{var q=z.lane&-536870913;if(q!==z.lane?(je&q)===q:(pn&q)===q){var M=z.revertLane;if(M===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),q===Pa&&(U=!0);else if((pn&M)===M){z=z.next,M===Pa&&(U=!0);continue}else q={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},N===null?(v=N=q,m=u):N=N.next=q,ge.lanes|=M,Kn|=M;q=z.action,ja&&n(u,q),u=z.hasEagerState?z.eagerState:n(u,q)}else M={lane:q,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},N===null?(v=N=M,m=u):N=N.next=M,ge.lanes|=q,Kn|=q;z=z.next}while(z!==null&&z!==t);if(N===null?m=u:N.next=v,!Tt(u,e.memoizedState)&&(Je=!0,U&&(n=el,n!==null)))throw n;e.memoizedState=u,e.baseState=m,e.baseQueue=N,a.lastRenderedState=u}return o===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Mo(e){var t=Xe(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var a=n.dispatch,o=n.pending,u=t.memoizedState;if(o!==null){n.pending=null;var m=o=o.next;do u=e(u,m.action),m=m.next;while(m!==o);Tt(u,t.memoizedState)||(Je=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,a]}function ld(e,t,n){var a=ge,o=Xe(),u=Te;if(u){if(n===void 0)throw Error(r(407));n=n()}else n=t();var m=!Tt((_e||o).memoizedState,n);if(m&&(o.memoizedState=n,Je=!0),o=o.queue,Lo(rd.bind(null,a,o,e),[e]),o.getSnapshot!==t||m||Ze!==null&&Ze.memoizedState.tag&1){if(a.flags|=2048,sl(9,{destroy:void 0},sd.bind(null,a,o,n,t),null),ke===null)throw Error(r(349));u||(pn&127)!==0||id(a,t,n)}return n}function id(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ge.updateQueue,t===null?(t=ms(),ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function sd(e,t,n,a){t.value=n,t.getSnapshot=a,od(t)&&ud(e)}function rd(e,t,n){return n(function(){od(t)&&ud(e)})}function od(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Tt(e,n)}catch{return!0}}function ud(e){var t=ma(e,2);t!==null&&bt(t,e,2)}function _o(e){var t=ft();if(typeof e=="function"){var n=e;if(e=n(),ja){_n(!0);try{n()}finally{_n(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:e},t}function cd(e,t,n,a){return e.baseState=n,zo(e,_e,typeof a=="function"?a:gn)}function cv(e,t,n,a,o){if(xs(e))throw Error(r(485));if(e=t.action,e!==null){var u={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){u.listeners.push(m)}};R.T!==null?n(!0):u.isTransition=!1,a(u),n=t.pending,n===null?(u.next=t.pending=u,fd(t,u)):(u.next=n.next,t.pending=n.next=u)}}function fd(e,t){var n=t.action,a=t.payload,o=e.state;if(t.isTransition){var u=R.T,m={};R.T=m;try{var v=n(o,a),N=R.S;N!==null&&N(m,v),dd(e,t,v)}catch(z){Do(e,t,z)}finally{u!==null&&m.types!==null&&(u.types=m.types),R.T=u}}else try{u=n(o,a),dd(e,t,u)}catch(z){Do(e,t,z)}}function dd(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){hd(e,t,a)},function(a){return Do(e,t,a)}):hd(e,t,n)}function hd(e,t,n){t.status="fulfilled",t.value=n,md(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,fd(e,n)))}function Do(e,t,n){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=n,md(t),t=t.next;while(t!==a)}e.action=null}function md(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function pd(e,t){return t}function gd(e,t){if(Te){var n=ke.formState;if(n!==null){e:{var a=ge;if(Te){if(He){t:{for(var o=He,u=qt;o.nodeType!==8;){if(!u){o=null;break t}if(o=Yt(o.nextSibling),o===null){o=null;break t}}u=o.data,o=u==="F!"||u==="F"?o:null}if(o){He=Yt(o.nextSibling),a=o.data==="F!";break e}}Hn(a)}a=!1}a&&(t=n[0])}}return n=ft(),n.memoizedState=n.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:pd,lastRenderedState:t},n.queue=a,n=Ld.bind(null,ge,a),a.dispatch=n,a=_o(!1),u=qo.bind(null,ge,!1,a.queue),a=ft(),o={state:t,dispatch:null,action:e,pending:null},a.queue=o,n=cv.bind(null,ge,o,u,n),o.dispatch=n,a.memoizedState=e,[t,n,!1]}function yd(e){var t=Xe();return vd(t,_e,e)}function vd(e,t,n){if(t=zo(e,t,pd)[0],e=gs(gn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Jl(t)}catch(m){throw m===tl?ss:m}else a=t;t=Xe();var o=t.queue,u=o.dispatch;return n!==t.memoizedState&&(ge.flags|=2048,sl(9,{destroy:void 0},fv.bind(null,o,n),null)),[a,u,e]}function fv(e,t){e.action=t}function xd(e){var t=Xe(),n=_e;if(n!==null)return vd(t,n,e);Xe(),t=t.memoizedState,n=Xe();var a=n.queue.dispatch;return n.memoizedState=e,[t,a,!1]}function sl(e,t,n,a){return e={tag:e,create:n,deps:a,inst:t,next:null},t=ge.updateQueue,t===null&&(t=ms(),ge.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(a=n.next,n.next=e,e.next=a,t.lastEffect=e),e}function bd(){return Xe().memoizedState}function ys(e,t,n,a){var o=ft();ge.flags|=e,o.memoizedState=sl(1|t,{destroy:void 0},n,a===void 0?null:a)}function vs(e,t,n,a){var o=Xe();a=a===void 0?null:a;var u=o.memoizedState.inst;_e!==null&&a!==null&&wo(a,_e.memoizedState.deps)?o.memoizedState=sl(t,u,n,a):(ge.flags|=e,o.memoizedState=sl(1|t,u,n,a))}function Sd(e,t){ys(8390656,8,e,t)}function Lo(e,t){vs(2048,8,e,t)}function dv(e){ge.flags|=4;var t=ge.updateQueue;if(t===null)t=ms(),ge.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Nd(e){var t=Xe().memoizedState;return dv({ref:t,nextImpl:e}),function(){if((Re&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function jd(e,t){return vs(4,2,e,t)}function Ed(e,t){return vs(4,4,e,t)}function wd(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Td(e,t,n){n=n!=null?n.concat([e]):null,vs(4,4,wd.bind(null,t,e),n)}function ko(){}function Cd(e,t){var n=Xe();t=t===void 0?null:t;var a=n.memoizedState;return t!==null&&wo(t,a[1])?a[0]:(n.memoizedState=[e,t],e)}function Ad(e,t){var n=Xe();t=t===void 0?null:t;var a=n.memoizedState;if(t!==null&&wo(t,a[1]))return a[0];if(a=e(),ja){_n(!0);try{e()}finally{_n(!1)}}return n.memoizedState=[a,t],a}function Uo(e,t,n){return n===void 0||(pn&1073741824)!==0&&(je&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Rh(),ge.lanes|=e,Kn|=e,n)}function Rd(e,t,n,a){return Tt(n,t)?n:al.current!==null?(e=Uo(e,n,a),Tt(e,t)||(Je=!0),e):(pn&42)===0||(pn&1073741824)!==0&&(je&261930)===0?(Je=!0,e.memoizedState=n):(e=Rh(),ge.lanes|=e,Kn|=e,t)}function Od(e,t,n,a,o){var u=Y.p;Y.p=u!==0&&8>u?u:8;var m=R.T,v={};R.T=v,qo(e,!1,t,n);try{var N=o(),z=R.S;if(z!==null&&z(v,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){var U=rv(N,a);Fl(e,t,U,Mt(e))}else Fl(e,t,a,Mt(e))}catch(q){Fl(e,t,{then:function(){},status:"rejected",reason:q},Mt())}finally{Y.p=u,m!==null&&v.types!==null&&(m.types=v.types),R.T=m}}function hv(){}function Ho(e,t,n,a){if(e.tag!==5)throw Error(r(476));var o=zd(e).queue;Od(e,o,t,te,n===null?hv:function(){return Md(e),n(a)})}function zd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:te,baseState:te,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:te},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:gn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Md(e){var t=zd(e);t.next===null&&(t=e.alternate.memoizedState),Fl(e,t.next.queue,{},Mt())}function Bo(){return st(hi)}function _d(){return Xe().memoizedState}function Dd(){return Xe().memoizedState}function mv(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Mt();e=Vn(n);var a=Yn(t,e,n);a!==null&&(bt(a,t,n),Xl(a,t,n)),t={cache:mo()},e.payload=t;return}t=t.return}}function pv(e,t,n){var a=Mt();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},xs(e)?kd(t,n):(n=no(e,t,n,a),n!==null&&(bt(n,e,a),Ud(n,t,a)))}function Ld(e,t,n){var a=Mt();Fl(e,t,n,a)}function Fl(e,t,n,a){var o={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(xs(e))kd(t,o);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var m=t.lastRenderedState,v=u(m,n);if(o.hasEagerState=!0,o.eagerState=v,Tt(v,m))return Pi(e,t,o,0),ke===null&&Ii(),!1}catch{}finally{}if(n=no(e,t,o,a),n!==null)return bt(n,e,a),Ud(n,t,a),!0}return!1}function qo(e,t,n,a){if(a={lane:2,revertLane:vu(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},xs(e)){if(t)throw Error(r(479))}else t=no(e,n,a,2),t!==null&&bt(t,e,2)}function xs(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function kd(e,t){ll=ds=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ud(e,t,n){if((n&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,n|=a,t.lanes=n,Vc(e,n)}}var Wl={readContext:st,use:ps,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};Wl.useEffectEvent=Ye;var Hd={readContext:st,use:ps,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:Sd,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,ys(4194308,4,wd.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ys(4194308,4,e,t)},useInsertionEffect:function(e,t){ys(4,2,e,t)},useMemo:function(e,t){var n=ft();t=t===void 0?null:t;var a=e();if(ja){_n(!0);try{e()}finally{_n(!1)}}return n.memoizedState=[a,t],a},useReducer:function(e,t,n){var a=ft();if(n!==void 0){var o=n(t);if(ja){_n(!0);try{n(t)}finally{_n(!1)}}}else o=t;return a.memoizedState=a.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},a.queue=e,e=e.dispatch=pv.bind(null,ge,e),[a.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:function(e){e=_o(e);var t=e.queue,n=Ld.bind(null,ge,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ko,useDeferredValue:function(e,t){var n=ft();return Uo(n,e,t)},useTransition:function(){var e=_o(!1);return e=Od.bind(null,ge,e.queue,!0,!1),ft().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var a=ge,o=ft();if(Te){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),ke===null)throw Error(r(349));(je&127)!==0||id(a,t,n)}o.memoizedState=n;var u={value:n,getSnapshot:t};return o.queue=u,Sd(rd.bind(null,a,u,e),[e]),a.flags|=2048,sl(9,{destroy:void 0},sd.bind(null,a,u,n,t),null),n},useId:function(){var e=ft(),t=ke.identifierPrefix;if(Te){var n=Ft,a=Jt;n=(a&~(1<<32-wt(a)-1)).toString(32)+n,t="_"+t+"R_"+n,n=hs++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=ov++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Bo,useFormState:gd,useActionState:gd,useOptimistic:function(e){var t=ft();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=qo.bind(null,ge,!0,n),n.dispatch=t,[e,t]},useMemoCache:Oo,useCacheRefresh:function(){return ft().memoizedState=mv.bind(null,ge)},useEffectEvent:function(e){var t=ft(),n={impl:e};return t.memoizedState=n,function(){if((Re&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},Vo={readContext:st,use:ps,useCallback:Cd,useContext:st,useEffect:Lo,useImperativeHandle:Td,useInsertionEffect:jd,useLayoutEffect:Ed,useMemo:Ad,useReducer:gs,useRef:bd,useState:function(){return gs(gn)},useDebugValue:ko,useDeferredValue:function(e,t){var n=Xe();return Rd(n,_e.memoizedState,e,t)},useTransition:function(){var e=gs(gn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Jl(e),t]},useSyncExternalStore:ld,useId:_d,useHostTransitionStatus:Bo,useFormState:yd,useActionState:yd,useOptimistic:function(e,t){var n=Xe();return cd(n,_e,e,t)},useMemoCache:Oo,useCacheRefresh:Dd};Vo.useEffectEvent=Nd;var Bd={readContext:st,use:ps,useCallback:Cd,useContext:st,useEffect:Lo,useImperativeHandle:Td,useInsertionEffect:jd,useLayoutEffect:Ed,useMemo:Ad,useReducer:Mo,useRef:bd,useState:function(){return Mo(gn)},useDebugValue:ko,useDeferredValue:function(e,t){var n=Xe();return _e===null?Uo(n,e,t):Rd(n,_e.memoizedState,e,t)},useTransition:function(){var e=Mo(gn)[0],t=Xe().memoizedState;return[typeof e=="boolean"?e:Jl(e),t]},useSyncExternalStore:ld,useId:_d,useHostTransitionStatus:Bo,useFormState:xd,useActionState:xd,useOptimistic:function(e,t){var n=Xe();return _e!==null?cd(n,_e,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Oo,useCacheRefresh:Dd};Bd.useEffectEvent=Nd;function Yo(e,t,n,a){t=e.memoizedState,n=n(a,t),n=n==null?t:x({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Go={enqueueSetState:function(e,t,n){e=e._reactInternals;var a=Mt(),o=Vn(a);o.payload=t,n!=null&&(o.callback=n),t=Yn(e,o,a),t!==null&&(bt(t,e,a),Xl(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var a=Mt(),o=Vn(a);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Yn(e,o,a),t!==null&&(bt(t,e,a),Xl(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Mt(),a=Vn(n);a.tag=2,t!=null&&(a.callback=t),t=Yn(e,a,n),t!==null&&(bt(t,e,n),Xl(t,e,n))}};function qd(e,t,n,a,o,u,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,u,m):t.prototype&&t.prototype.isPureReactComponent?!Ul(n,a)||!Ul(o,u):!0}function Vd(e,t,n,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==e&&Go.enqueueReplaceState(t,t.state,null)}function Ea(e,t){var n=t;if("ref"in t){n={};for(var a in t)a!=="ref"&&(n[a]=t[a])}if(e=e.defaultProps){n===t&&(n=x({},n));for(var o in e)n[o]===void 0&&(n[o]=e[o])}return n}function Yd(e){Wi(e)}function Gd(e){console.error(e)}function $d(e){Wi(e)}function bs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function Xd(e,t,n){try{var a=e.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function $o(e,t,n){return n=Vn(n),n.tag=3,n.payload={element:null},n.callback=function(){bs(e,t)},n}function Qd(e){return e=Vn(e),e.tag=3,e}function Kd(e,t,n,a){var o=n.type.getDerivedStateFromError;if(typeof o=="function"){var u=a.value;e.payload=function(){return o(u)},e.callback=function(){Xd(t,n,a)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Xd(t,n,a),typeof o!="function"&&(Zn===null?Zn=new Set([this]):Zn.add(this));var v=a.stack;this.componentDidCatch(a.value,{componentStack:v!==null?v:""})})}function gv(e,t,n,a,o){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=n.alternate,t!==null&&Ia(t,n,o,!0),n=At.current,n!==null){switch(n.tag){case 31:case 13:return Vt===null?Ms():n.alternate===null&&Ge===0&&(Ge=3),n.flags&=-257,n.flags|=65536,n.lanes=o,a===rs?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([a]):t.add(a),pu(e,a,o)),!1;case 22:return n.flags|=65536,a===rs?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([a]):n.add(a)),pu(e,a,o)),!1}throw Error(r(435,n.tag))}return pu(e,a,o),Ms(),!1}if(Te)return t=At.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,a!==oo&&(e=Error(r(422),{cause:a}),ql(Ut(e,n)))):(a!==oo&&(t=Error(r(423),{cause:a}),ql(Ut(t,n))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,a=Ut(a,n),o=$o(e.stateNode,a,o),bo(e,o),Ge!==4&&(Ge=2)),!1;var u=Error(r(520),{cause:a});if(u=Ut(u,n),ii===null?ii=[u]:ii.push(u),Ge!==4&&(Ge=2),t===null)return!0;a=Ut(a,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=o&-o,n.lanes|=e,e=$o(n.stateNode,a,e),bo(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Zn===null||!Zn.has(u))))return n.flags|=65536,o&=-o,n.lanes|=o,o=Qd(o),Kd(o,e,n,a),bo(n,o),!1}n=n.return}while(n!==null);return!1}var Xo=Error(r(461)),Je=!1;function rt(e,t,n,a){t.child=e===null?Wf(t,null,n,a):Na(t,e.child,n,a)}function Zd(e,t,n,a,o){n=n.render;var u=t.ref;if("ref"in a){var m={};for(var v in a)v!=="ref"&&(m[v]=a[v])}else m=a;return va(t),a=To(e,t,n,m,u,o),v=Co(),e!==null&&!Je?(Ao(e,t,o),yn(e,t,o)):(Te&&v&&so(t),t.flags|=1,rt(e,t,a,o),t.child)}function Jd(e,t,n,a,o){if(e===null){var u=n.type;return typeof u=="function"&&!ao(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,Fd(e,t,u,a,o)):(e=ts(n.type,null,a,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Po(e,o)){var m=u.memoizedProps;if(n=n.compare,n=n!==null?n:Ul,n(m,a)&&e.ref===t.ref)return yn(e,t,o)}return t.flags|=1,e=fn(u,a),e.ref=t.ref,e.return=t,t.child=e}function Fd(e,t,n,a,o){if(e!==null){var u=e.memoizedProps;if(Ul(u,a)&&e.ref===t.ref)if(Je=!1,t.pendingProps=a=u,Po(e,o))(e.flags&131072)!==0&&(Je=!0);else return t.lanes=e.lanes,yn(e,t,o)}return Qo(e,t,n,a,o)}function Wd(e,t,n,a){var o=a.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(a=t.child=e.child,o=0;a!==null;)o=o|a.lanes|a.childLanes,a=a.sibling;a=o&~u}else a=0,t.child=null;return Id(e,t,u,n,a)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&is(t,u!==null?u.cachePool:null),u!==null?ed(t,u):No(),td(t);else return a=t.lanes=536870912,Id(e,t,u!==null?u.baseLanes|n:n,n,a)}else u!==null?(is(t,u.cachePool),ed(t,u),$n(),t.memoizedState=null):(e!==null&&is(t,null),No(),$n());return rt(e,t,o,n),t.child}function Il(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Id(e,t,n,a,o){var u=go();return u=u===null?null:{parent:Ke._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&is(t,null),No(),td(t),e!==null&&Ia(e,t,a,!0),t.childLanes=o,null}function Ss(e,t){return t=js({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Pd(e,t,n){return Na(t,e.child,null,n),e=Ss(t,t.pendingProps),e.flags|=2,Rt(t),t.memoizedState=null,e}function yv(e,t,n){var a=t.pendingProps,o=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Te){if(a.mode==="hidden")return e=Ss(t,a),t.lanes=536870912,Il(null,e);if(Eo(t),(e=He)?(e=fm(e,qt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:kn!==null?{id:Jt,overflow:Ft}:null,retryLane:536870912,hydrationErrors:null},n=kf(e),n.return=t,t.child=n,it=t,He=null)):e=null,e===null)throw Hn(t);return t.lanes=536870912,null}return Ss(t,a)}var u=e.memoizedState;if(u!==null){var m=u.dehydrated;if(Eo(t),o)if(t.flags&256)t.flags&=-257,t=Pd(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(Je||Ia(e,t,n,!1),o=(n&e.childLanes)!==0,Je||o){if(a=ke,a!==null&&(m=Yc(a,n),m!==0&&m!==u.retryLane))throw u.retryLane=m,ma(e,m),bt(a,e,m),Xo;Ms(),t=Pd(e,t,n)}else e=u.treeContext,He=Yt(m.nextSibling),it=t,Te=!0,Un=null,qt=!1,e!==null&&Bf(t,e),t=Ss(t,a),t.flags|=4096;return t}return e=fn(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ns(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Qo(e,t,n,a,o){return va(t),n=To(e,t,n,a,void 0,o),a=Co(),e!==null&&!Je?(Ao(e,t,o),yn(e,t,o)):(Te&&a&&so(t),t.flags|=1,rt(e,t,n,o),t.child)}function eh(e,t,n,a,o,u){return va(t),t.updateQueue=null,n=ad(t,a,n,o),nd(e),a=Co(),e!==null&&!Je?(Ao(e,t,u),yn(e,t,u)):(Te&&a&&so(t),t.flags|=1,rt(e,t,n,u),t.child)}function th(e,t,n,a,o){if(va(t),t.stateNode===null){var u=Za,m=n.contextType;typeof m=="object"&&m!==null&&(u=st(m)),u=new n(a,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Go,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=a,u.state=t.memoizedState,u.refs={},vo(t),m=n.contextType,u.context=typeof m=="object"&&m!==null?st(m):Za,u.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(Yo(t,n,m,a),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(m=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),m!==u.state&&Go.enqueueReplaceState(u,u.state,null),Kl(t,a,u,o),Ql(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){u=t.stateNode;var v=t.memoizedProps,N=Ea(n,v);u.props=N;var z=u.context,U=n.contextType;m=Za,typeof U=="object"&&U!==null&&(m=st(U));var q=n.getDerivedStateFromProps;U=typeof q=="function"||typeof u.getSnapshotBeforeUpdate=="function",v=t.pendingProps!==v,U||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(v||z!==m)&&Vd(t,u,a,m),qn=!1;var M=t.memoizedState;u.state=M,Kl(t,a,u,o),Ql(),z=t.memoizedState,v||M!==z||qn?(typeof q=="function"&&(Yo(t,n,q,a),z=t.memoizedState),(N=qn||qd(t,n,N,a,M,z,m))?(U||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=z),u.props=a,u.state=z,u.context=m,a=N):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{u=t.stateNode,xo(e,t),m=t.memoizedProps,U=Ea(n,m),u.props=U,q=t.pendingProps,M=u.context,z=n.contextType,N=Za,typeof z=="object"&&z!==null&&(N=st(z)),v=n.getDerivedStateFromProps,(z=typeof v=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(m!==q||M!==N)&&Vd(t,u,a,N),qn=!1,M=t.memoizedState,u.state=M,Kl(t,a,u,o),Ql();var _=t.memoizedState;m!==q||M!==_||qn||e!==null&&e.dependencies!==null&&as(e.dependencies)?(typeof v=="function"&&(Yo(t,n,v,a),_=t.memoizedState),(U=qn||qd(t,n,U,a,M,_,N)||e!==null&&e.dependencies!==null&&as(e.dependencies))?(z||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(a,_,N),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(a,_,N)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||m===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=_),u.props=a,u.state=_,u.context=N,a=U):(typeof u.componentDidUpdate!="function"||m===e.memoizedProps&&M===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&M===e.memoizedState||(t.flags|=1024),a=!1)}return u=a,Ns(e,t),a=(t.flags&128)!==0,u||a?(u=t.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&a?(t.child=Na(t,e.child,null,o),t.child=Na(t,null,n,o)):rt(e,t,n,o),t.memoizedState=u.state,e=t.child):e=yn(e,t,o),e}function nh(e,t,n,a){return ga(),t.flags|=256,rt(e,t,n,a),t.child}var Ko={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zo(e){return{baseLanes:e,cachePool:Xf()}}function Jo(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=zt),e}function ah(e,t,n){var a=t.pendingProps,o=!1,u=(t.flags&128)!==0,m;if((m=u)||(m=e!==null&&e.memoizedState===null?!1:($e.current&2)!==0),m&&(o=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Te){if(o?Gn(t):$n(),(e=He)?(e=fm(e,qt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:kn!==null?{id:Jt,overflow:Ft}:null,retryLane:536870912,hydrationErrors:null},n=kf(e),n.return=t,t.child=n,it=t,He=null)):e=null,e===null)throw Hn(t);return zu(e)?t.lanes=32:t.lanes=536870912,null}var v=a.children;return a=a.fallback,o?($n(),o=t.mode,v=js({mode:"hidden",children:v},o),a=pa(a,o,n,null),v.return=t,a.return=t,v.sibling=a,t.child=v,a=t.child,a.memoizedState=Zo(n),a.childLanes=Jo(e,m,n),t.memoizedState=Ko,Il(null,a)):(Gn(t),Fo(t,v))}var N=e.memoizedState;if(N!==null&&(v=N.dehydrated,v!==null)){if(u)t.flags&256?(Gn(t),t.flags&=-257,t=Wo(e,t,n)):t.memoizedState!==null?($n(),t.child=e.child,t.flags|=128,t=null):($n(),v=a.fallback,o=t.mode,a=js({mode:"visible",children:a.children},o),v=pa(v,o,n,null),v.flags|=2,a.return=t,v.return=t,a.sibling=v,t.child=a,Na(t,e.child,null,n),a=t.child,a.memoizedState=Zo(n),a.childLanes=Jo(e,m,n),t.memoizedState=Ko,t=Il(null,a));else if(Gn(t),zu(v)){if(m=v.nextSibling&&v.nextSibling.dataset,m)var z=m.dgst;m=z,a=Error(r(419)),a.stack="",a.digest=m,ql({value:a,source:null,stack:null}),t=Wo(e,t,n)}else if(Je||Ia(e,t,n,!1),m=(n&e.childLanes)!==0,Je||m){if(m=ke,m!==null&&(a=Yc(m,n),a!==0&&a!==N.retryLane))throw N.retryLane=a,ma(e,a),bt(m,e,a),Xo;Ou(v)||Ms(),t=Wo(e,t,n)}else Ou(v)?(t.flags|=192,t.child=e.child,t=null):(e=N.treeContext,He=Yt(v.nextSibling),it=t,Te=!0,Un=null,qt=!1,e!==null&&Bf(t,e),t=Fo(t,a.children),t.flags|=4096);return t}return o?($n(),v=a.fallback,o=t.mode,N=e.child,z=N.sibling,a=fn(N,{mode:"hidden",children:a.children}),a.subtreeFlags=N.subtreeFlags&65011712,z!==null?v=fn(z,v):(v=pa(v,o,n,null),v.flags|=2),v.return=t,a.return=t,a.sibling=v,t.child=a,Il(null,a),a=t.child,v=e.child.memoizedState,v===null?v=Zo(n):(o=v.cachePool,o!==null?(N=Ke._currentValue,o=o.parent!==N?{parent:N,pool:N}:o):o=Xf(),v={baseLanes:v.baseLanes|n,cachePool:o}),a.memoizedState=v,a.childLanes=Jo(e,m,n),t.memoizedState=Ko,Il(e.child,a)):(Gn(t),n=e.child,e=n.sibling,n=fn(n,{mode:"visible",children:a.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function Fo(e,t){return t=js({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function js(e,t){return e=Ct(22,e,null,t),e.lanes=0,e}function Wo(e,t,n){return Na(t,e.child,null,n),e=Fo(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lh(e,t,n){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),fo(e.return,t,n)}function Io(e,t,n,a,o,u){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:o,treeForkCount:u}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=a,m.tail=n,m.tailMode=o,m.treeForkCount=u)}function ih(e,t,n){var a=t.pendingProps,o=a.revealOrder,u=a.tail;a=a.children;var m=$e.current,v=(m&2)!==0;if(v?(m=m&1|2,t.flags|=128):m&=1,Z($e,m),rt(e,t,a,n),a=Te?Bl:0,!v&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lh(e,n,t);else if(e.tag===19)lh(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(o){case"forwards":for(n=t.child,o=null;n!==null;)e=n.alternate,e!==null&&fs(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Io(t,!1,o,n,u,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&fs(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Io(t,!0,n,null,u,a);break;case"together":Io(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function yn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Kn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ia(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=fn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=fn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Po(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&as(e)))}function vv(e,t,n){switch(t.tag){case 3:Pe(t,t.stateNode.containerInfo),Bn(t,Ke,e.memoizedState.cache),ga();break;case 27:case 5:zn(t);break;case 4:Pe(t,t.stateNode.containerInfo);break;case 10:Bn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Eo(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Gn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?ah(e,t,n):(Gn(t),e=yn(e,t,n),e!==null?e.sibling:null);Gn(t);break;case 19:var o=(e.flags&128)!==0;if(a=(n&t.childLanes)!==0,a||(Ia(e,t,n,!1),a=(n&t.childLanes)!==0),o){if(a)return ih(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),Z($e,$e.current),a)break;return null;case 22:return t.lanes=0,Wd(e,t,n,t.pendingProps);case 24:Bn(t,Ke,e.memoizedState.cache)}return yn(e,t,n)}function sh(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Je=!0;else{if(!Po(e,n)&&(t.flags&128)===0)return Je=!1,vv(e,t,n);Je=(e.flags&131072)!==0}else Je=!1,Te&&(t.flags&1048576)!==0&&Hf(t,Bl,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=ba(t.elementType),t.type=e,typeof e=="function")ao(e)?(a=Ea(e,a),t.tag=1,t=th(null,t,e,a,n)):(t.tag=0,t=Qo(null,t,e,a,n));else{if(e!=null){var o=e.$$typeof;if(o===K){t.tag=11,t=Zd(null,t,e,a,n);break e}else if(o===Q){t.tag=14,t=Jd(null,t,e,a,n);break e}}throw t=I(e)||e,Error(r(306,t,""))}}return t;case 0:return Qo(e,t,t.type,t.pendingProps,n);case 1:return a=t.type,o=Ea(a,t.pendingProps),th(e,t,a,o,n);case 3:e:{if(Pe(t,t.stateNode.containerInfo),e===null)throw Error(r(387));a=t.pendingProps;var u=t.memoizedState;o=u.element,xo(e,t),Kl(t,a,null,n);var m=t.memoizedState;if(a=m.cache,Bn(t,Ke,a),a!==u.cache&&ho(t,[Ke],n,!0),Ql(),a=m.element,u.isDehydrated)if(u={element:a,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=nh(e,t,a,n);break e}else if(a!==o){o=Ut(Error(r(424)),t),ql(o),t=nh(e,t,a,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(He=Yt(e.firstChild),it=t,Te=!0,Un=null,qt=!0,n=Wf(t,null,a,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(ga(),a===o){t=yn(e,t,n);break e}rt(e,t,a,n)}t=t.child}return t;case 26:return Ns(e,t),e===null?(n=ym(t.type,null,t.pendingProps,null))?t.memoizedState=n:Te||(n=t.type,e=t.pendingProps,a=Bs(ue.current).createElement(n),a[lt]=t,a[mt]=e,ot(a,n,e),et(a),t.stateNode=a):t.memoizedState=ym(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return zn(t),e===null&&Te&&(a=t.stateNode=mm(t.type,t.pendingProps,ue.current),it=t,qt=!0,o=He,In(t.type)?(Mu=o,He=Yt(a.firstChild)):He=o),rt(e,t,t.pendingProps.children,n),Ns(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Te&&((o=a=He)&&(a=Zv(a,t.type,t.pendingProps,qt),a!==null?(t.stateNode=a,it=t,He=Yt(a.firstChild),qt=!1,o=!0):o=!1),o||Hn(t)),zn(t),o=t.type,u=t.pendingProps,m=e!==null?e.memoizedProps:null,a=u.children,Cu(o,u)?a=null:m!==null&&Cu(o,m)&&(t.flags|=32),t.memoizedState!==null&&(o=To(e,t,uv,null,null,n),hi._currentValue=o),Ns(e,t),rt(e,t,a,n),t.child;case 6:return e===null&&Te&&((e=n=He)&&(n=Jv(n,t.pendingProps,qt),n!==null?(t.stateNode=n,it=t,He=null,e=!0):e=!1),e||Hn(t)),null;case 13:return ah(e,t,n);case 4:return Pe(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Na(t,null,a,n):rt(e,t,a,n),t.child;case 11:return Zd(e,t,t.type,t.pendingProps,n);case 7:return rt(e,t,t.pendingProps,n),t.child;case 8:return rt(e,t,t.pendingProps.children,n),t.child;case 12:return rt(e,t,t.pendingProps.children,n),t.child;case 10:return a=t.pendingProps,Bn(t,t.type,a.value),rt(e,t,a.children,n),t.child;case 9:return o=t.type._context,a=t.pendingProps.children,va(t),o=st(o),a=a(o),t.flags|=1,rt(e,t,a,n),t.child;case 14:return Jd(e,t,t.type,t.pendingProps,n);case 15:return Fd(e,t,t.type,t.pendingProps,n);case 19:return ih(e,t,n);case 31:return yv(e,t,n);case 22:return Wd(e,t,n,t.pendingProps);case 24:return va(t),a=st(Ke),e===null?(o=go(),o===null&&(o=ke,u=mo(),o.pooledCache=u,u.refCount++,u!==null&&(o.pooledCacheLanes|=n),o=u),t.memoizedState={parent:a,cache:o},vo(t),Bn(t,Ke,o)):((e.lanes&n)!==0&&(xo(e,t),Kl(t,null,null,n),Ql()),o=e.memoizedState,u=t.memoizedState,o.parent!==a?(o={parent:a,cache:a},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),Bn(t,Ke,a)):(a=u.cache,Bn(t,Ke,a),a!==o.cache&&ho(t,[Ke],n,!0))),rt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function vn(e){e.flags|=4}function eu(e,t,n,a,o){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(o&335544128)===o)if(e.stateNode.complete)e.flags|=8192;else if(_h())e.flags|=8192;else throw Sa=rs,yo}else e.flags&=-16777217}function rh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Nm(t))if(_h())e.flags|=8192;else throw Sa=rs,yo}function Es(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Bc():536870912,e.lanes|=t,cl|=t)}function Pl(e,t){if(!Te)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Be(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,a=0;if(t)for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags&65011712,a|=o.flags&65011712,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)n|=o.lanes|o.childLanes,a|=o.subtreeFlags,a|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function xv(e,t,n){var a=t.pendingProps;switch(ro(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Be(t),null;case 1:return Be(t),null;case 3:return n=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),mn(Ke),ve(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Wa(t)?vn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,uo())),Be(t),null;case 26:var o=t.type,u=t.memoizedState;return e===null?(vn(t),u!==null?(Be(t),rh(t,u)):(Be(t),eu(t,o,null,a,n))):u?u!==e.memoizedState?(vn(t),Be(t),rh(t,u)):(Be(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&vn(t),Be(t),eu(t,o,e,a,n)),null;case 27:if(rn(t),n=ue.current,o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&vn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Be(t),null}e=ee.current,Wa(t)?qf(t):(e=mm(o,a,n),t.stateNode=e,vn(t))}return Be(t),null;case 5:if(rn(t),o=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&vn(t);else{if(!a){if(t.stateNode===null)throw Error(r(166));return Be(t),null}if(u=ee.current,Wa(t))qf(t);else{var m=Bs(ue.current);switch(u){case 1:u=m.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:u=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":u=m.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":u=m.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":u=m.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof a.is=="string"?m.createElement("select",{is:a.is}):m.createElement("select"),a.multiple?u.multiple=!0:a.size&&(u.size=a.size);break;default:u=typeof a.is=="string"?m.createElement(o,{is:a.is}):m.createElement(o)}}u[lt]=t,u[mt]=a;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)u.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=u;e:switch(ot(u,o,a),o){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&vn(t)}}return Be(t),eu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&vn(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(r(166));if(e=ue.current,Wa(t)){if(e=t.stateNode,n=t.memoizedProps,a=null,o=it,o!==null)switch(o.tag){case 27:case 5:a=o.memoizedProps}e[lt]=t,e=!!(e.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||am(e.nodeValue,n)),e||Hn(t,!0)}else e=Bs(e).createTextNode(a),e[lt]=t,t.stateNode=e}return Be(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(a=Wa(t),n!==null){if(e===null){if(!a)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[lt]=t}else ga(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),e=!1}else n=uo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Rt(t),t):(Rt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Be(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=Wa(t),a!==null&&a.dehydrated!==null){if(e===null){if(!o)throw Error(r(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(r(317));o[lt]=t}else ga(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Be(t),o=!1}else o=uo(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=o),o=!0;if(!o)return t.flags&256?(Rt(t),t):(Rt(t),null)}return Rt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=a!==null,e=e!==null&&e.memoizedState!==null,n&&(a=t.child,o=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(o=a.alternate.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==o&&(a.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Es(t,t.updateQueue),Be(t),null);case 4:return ve(),e===null&&Nu(t.stateNode.containerInfo),Be(t),null;case 10:return mn(t.type),Be(t),null;case 19:if(H($e),a=t.memoizedState,a===null)return Be(t),null;if(o=(t.flags&128)!==0,u=a.rendering,u===null)if(o)Pl(a,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=fs(e),u!==null){for(t.flags|=128,Pl(a,!1),e=u.updateQueue,t.updateQueue=e,Es(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Lf(n,e),n=n.sibling;return Z($e,$e.current&1|2),Te&&dn(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&jt()>Rs&&(t.flags|=128,o=!0,Pl(a,!1),t.lanes=4194304)}else{if(!o)if(e=fs(u),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,Es(t,e),Pl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!u.alternate&&!Te)return Be(t),null}else 2*jt()-a.renderingStartTime>Rs&&n!==536870912&&(t.flags|=128,o=!0,Pl(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(e=a.last,e!==null?e.sibling=u:t.child=u,a.last=u)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=jt(),e.sibling=null,n=$e.current,Z($e,o?n&1|2:n&1),Te&&dn(t,a.treeForkCount),e):(Be(t),null);case 22:case 23:return Rt(t),jo(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(n&536870912)!==0&&(t.flags&128)===0&&(Be(t),t.subtreeFlags&6&&(t.flags|=8192)):Be(t),n=t.updateQueue,n!==null&&Es(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==n&&(t.flags|=2048),e!==null&&H(xa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),mn(Ke),Be(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function bv(e,t){switch(ro(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return mn(Ke),ve(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return rn(t),null;case 31:if(t.memoizedState!==null){if(Rt(t),t.alternate===null)throw Error(r(340));ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Rt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));ga()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return H($e),null;case 4:return ve(),null;case 10:return mn(t.type),null;case 22:case 23:return Rt(t),jo(),e!==null&&H(xa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return mn(Ke),null;case 25:return null;default:return null}}function oh(e,t){switch(ro(t),t.tag){case 3:mn(Ke),ve();break;case 26:case 27:case 5:rn(t);break;case 4:ve();break;case 31:t.memoizedState!==null&&Rt(t);break;case 13:Rt(t);break;case 19:H($e);break;case 10:mn(t.type);break;case 22:case 23:Rt(t),jo(),e!==null&&H(xa);break;case 24:mn(Ke)}}function ei(e,t){try{var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var o=a.next;n=o;do{if((n.tag&e)===e){a=void 0;var u=n.create,m=n.inst;a=u(),m.destroy=a}n=n.next}while(n!==o)}}catch(v){Me(t,t.return,v)}}function Xn(e,t,n){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var u=o.next;a=u;do{if((a.tag&e)===e){var m=a.inst,v=m.destroy;if(v!==void 0){m.destroy=void 0,o=t;var N=n,z=v;try{z()}catch(U){Me(o,N,U)}}}a=a.next}while(a!==u)}}catch(U){Me(t,t.return,U)}}function uh(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Pf(t,n)}catch(a){Me(e,e.return,a)}}}function ch(e,t,n){n.props=Ea(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(a){Me(e,t,a)}}function ti(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof n=="function"?e.refCleanup=n(a):n.current=a}}catch(o){Me(e,t,o)}}function Wt(e,t){var n=e.ref,a=e.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(o){Me(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(o){Me(e,t,o)}else n.current=null}function fh(e){var t=e.type,n=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break e;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(o){Me(e,e.return,o)}}function tu(e,t,n){try{var a=e.stateNode;Yv(a,e.type,n,t),a[mt]=t}catch(o){Me(e,e.return,o)}}function dh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&In(e.type)||e.tag===4}function nu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||dh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&In(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function au(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=un));else if(a!==4&&(a===27&&In(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(au(e,t,n),e=e.sibling;e!==null;)au(e,t,n),e=e.sibling}function ws(e,t,n){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(a!==4&&(a===27&&In(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(ws(e,t,n),e=e.sibling;e!==null;)ws(e,t,n),e=e.sibling}function hh(e){var t=e.stateNode,n=e.memoizedProps;try{for(var a=e.type,o=t.attributes;o.length;)t.removeAttributeNode(o[0]);ot(t,a,n),t[lt]=e,t[mt]=n}catch(u){Me(e,e.return,u)}}var xn=!1,Fe=!1,lu=!1,mh=typeof WeakSet=="function"?WeakSet:Set,tt=null;function Sv(e,t){if(e=e.containerInfo,wu=Qs,e=Tf(e),Fr(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var o=a.anchorOffset,u=a.focusNode;a=a.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var m=0,v=-1,N=-1,z=0,U=0,q=e,M=null;t:for(;;){for(var _;q!==n||o!==0&&q.nodeType!==3||(v=m+o),q!==u||a!==0&&q.nodeType!==3||(N=m+a),q.nodeType===3&&(m+=q.nodeValue.length),(_=q.firstChild)!==null;)M=q,q=_;for(;;){if(q===e)break t;if(M===n&&++z===o&&(v=m),M===u&&++U===a&&(N=m),(_=q.nextSibling)!==null)break;q=M,M=q.parentNode}q=_}n=v===-1||N===-1?null:{start:v,end:N}}else n=null}n=n||{start:0,end:0}}else n=null;for(Tu={focusedElem:e,selectionRange:n},Qs=!1,tt=t;tt!==null;)if(t=tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,tt=e;else for(;tt!==null;){switch(t=tt,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)o=e[n],o.ref.impl=o.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,n=t,o=u.memoizedProps,u=u.memoizedState,a=n.stateNode;try{var ne=Ea(n.type,o);e=a.getSnapshotBeforeUpdate(ne,u),a.__reactInternalSnapshotBeforeUpdate=e}catch(de){Me(n,n.return,de)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Ru(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ru(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,tt=e;break}tt=t.return}}function ph(e,t,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:Sn(e,n),a&4&&ei(5,n);break;case 1:if(Sn(e,n),a&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){Me(n,n.return,m)}else{var o=Ea(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){Me(n,n.return,m)}}a&64&&uh(n),a&512&&ti(n,n.return);break;case 3:if(Sn(e,n),a&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Pf(e,t)}catch(m){Me(n,n.return,m)}}break;case 27:t===null&&a&4&&hh(n);case 26:case 5:Sn(e,n),t===null&&a&4&&fh(n),a&512&&ti(n,n.return);break;case 12:Sn(e,n);break;case 31:Sn(e,n),a&4&&vh(e,n);break;case 13:Sn(e,n),a&4&&xh(e,n),a&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ov.bind(null,n),Fv(e,n))));break;case 22:if(a=n.memoizedState!==null||xn,!a){t=t!==null&&t.memoizedState!==null||Fe,o=xn;var u=Fe;xn=a,(Fe=t)&&!u?Nn(e,n,(n.subtreeFlags&8772)!==0):Sn(e,n),xn=o,Fe=u}break;case 30:break;default:Sn(e,n)}}function gh(e){var t=e.alternate;t!==null&&(e.alternate=null,gh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&_r(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var qe=null,gt=!1;function bn(e,t,n){for(n=n.child;n!==null;)yh(e,t,n),n=n.sibling}function yh(e,t,n){if(Et&&typeof Et.onCommitFiberUnmount=="function")try{Et.onCommitFiberUnmount(wl,n)}catch{}switch(n.tag){case 26:Fe||Wt(n,t),bn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Fe||Wt(n,t);var a=qe,o=gt;In(n.type)&&(qe=n.stateNode,gt=!1),bn(e,t,n),ci(n.stateNode),qe=a,gt=o;break;case 5:Fe||Wt(n,t);case 6:if(a=qe,o=gt,qe=null,bn(e,t,n),qe=a,gt=o,qe!==null)if(gt)try{(qe.nodeType===9?qe.body:qe.nodeName==="HTML"?qe.ownerDocument.body:qe).removeChild(n.stateNode)}catch(u){Me(n,t,u)}else try{qe.removeChild(n.stateNode)}catch(u){Me(n,t,u)}break;case 18:qe!==null&&(gt?(e=qe,um(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),vl(e)):um(qe,n.stateNode));break;case 4:a=qe,o=gt,qe=n.stateNode.containerInfo,gt=!0,bn(e,t,n),qe=a,gt=o;break;case 0:case 11:case 14:case 15:Xn(2,n,t),Fe||Xn(4,n,t),bn(e,t,n);break;case 1:Fe||(Wt(n,t),a=n.stateNode,typeof a.componentWillUnmount=="function"&&ch(n,t,a)),bn(e,t,n);break;case 21:bn(e,t,n);break;case 22:Fe=(a=Fe)||n.memoizedState!==null,bn(e,t,n),Fe=a;break;default:bn(e,t,n)}}function vh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{vl(e)}catch(n){Me(t,t.return,n)}}}function xh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{vl(e)}catch(n){Me(t,t.return,n)}}function Nv(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new mh),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new mh),t;default:throw Error(r(435,e.tag))}}function Ts(e,t){var n=Nv(e);t.forEach(function(a){if(!n.has(a)){n.add(a);var o=zv.bind(null,e,a);a.then(o,o)}})}function yt(e,t){var n=t.deletions;if(n!==null)for(var a=0;a<n.length;a++){var o=n[a],u=e,m=t,v=m;e:for(;v!==null;){switch(v.tag){case 27:if(In(v.type)){qe=v.stateNode,gt=!1;break e}break;case 5:qe=v.stateNode,gt=!1;break e;case 3:case 4:qe=v.stateNode.containerInfo,gt=!0;break e}v=v.return}if(qe===null)throw Error(r(160));yh(u,m,o),qe=null,gt=!1,u=o.alternate,u!==null&&(u.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bh(t,e),t=t.sibling}var Qt=null;function bh(e,t){var n=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:yt(t,e),vt(e),a&4&&(Xn(3,e,e.return),ei(3,e),Xn(5,e,e.return));break;case 1:yt(t,e),vt(e),a&512&&(Fe||n===null||Wt(n,n.return)),a&64&&xn&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var o=Qt;if(yt(t,e),vt(e),a&512&&(Fe||n===null||Wt(n,n.return)),a&4){var u=n!==null?n.memoizedState:null;if(a=e.memoizedState,n===null)if(a===null)if(e.stateNode===null){e:{a=e.type,n=e.memoizedProps,o=o.ownerDocument||o;t:switch(a){case"title":u=o.getElementsByTagName("title")[0],(!u||u[Al]||u[lt]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=o.createElement(a),o.head.insertBefore(u,o.querySelector("head > title"))),ot(u,a,n),u[lt]=e,et(u),a=u;break e;case"link":var m=bm("link","href",o).get(a+(n.href||""));if(m){for(var v=0;v<m.length;v++)if(u=m[v],u.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&u.getAttribute("rel")===(n.rel==null?null:n.rel)&&u.getAttribute("title")===(n.title==null?null:n.title)&&u.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(v,1);break t}}u=o.createElement(a),ot(u,a,n),o.head.appendChild(u);break;case"meta":if(m=bm("meta","content",o).get(a+(n.content||""))){for(v=0;v<m.length;v++)if(u=m[v],u.getAttribute("content")===(n.content==null?null:""+n.content)&&u.getAttribute("name")===(n.name==null?null:n.name)&&u.getAttribute("property")===(n.property==null?null:n.property)&&u.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&u.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(v,1);break t}}u=o.createElement(a),ot(u,a,n),o.head.appendChild(u);break;default:throw Error(r(468,a))}u[lt]=e,et(u),a=u}e.stateNode=a}else Sm(o,e.type,e.stateNode);else e.stateNode=xm(o,a,e.memoizedProps);else u!==a?(u===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):u.count--,a===null?Sm(o,e.type,e.stateNode):xm(o,a,e.memoizedProps)):a===null&&e.stateNode!==null&&tu(e,e.memoizedProps,n.memoizedProps)}break;case 27:yt(t,e),vt(e),a&512&&(Fe||n===null||Wt(n,n.return)),n!==null&&a&4&&tu(e,e.memoizedProps,n.memoizedProps);break;case 5:if(yt(t,e),vt(e),a&512&&(Fe||n===null||Wt(n,n.return)),e.flags&32){o=e.stateNode;try{Va(o,"")}catch(ne){Me(e,e.return,ne)}}a&4&&e.stateNode!=null&&(o=e.memoizedProps,tu(e,o,n!==null?n.memoizedProps:o)),a&1024&&(lu=!0);break;case 6:if(yt(t,e),vt(e),a&4){if(e.stateNode===null)throw Error(r(162));a=e.memoizedProps,n=e.stateNode;try{n.nodeValue=a}catch(ne){Me(e,e.return,ne)}}break;case 3:if(Ys=null,o=Qt,Qt=qs(t.containerInfo),yt(t,e),Qt=o,vt(e),a&4&&n!==null&&n.memoizedState.isDehydrated)try{vl(t.containerInfo)}catch(ne){Me(e,e.return,ne)}lu&&(lu=!1,Sh(e));break;case 4:a=Qt,Qt=qs(e.stateNode.containerInfo),yt(t,e),vt(e),Qt=a;break;case 12:yt(t,e),vt(e);break;case 31:yt(t,e),vt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ts(e,a)));break;case 13:yt(t,e),vt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(As=jt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ts(e,a)));break;case 22:o=e.memoizedState!==null;var N=n!==null&&n.memoizedState!==null,z=xn,U=Fe;if(xn=z||o,Fe=U||N,yt(t,e),Fe=U,xn=z,vt(e),a&8192)e:for(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,o&&(n===null||N||xn||Fe||wa(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){N=n=t;try{if(u=N.stateNode,o)m=u.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{v=N.stateNode;var q=N.memoizedProps.style,M=q!=null&&q.hasOwnProperty("display")?q.display:null;v.style.display=M==null||typeof M=="boolean"?"":(""+M).trim()}}catch(ne){Me(N,N.return,ne)}}}else if(t.tag===6){if(n===null){N=t;try{N.stateNode.nodeValue=o?"":N.memoizedProps}catch(ne){Me(N,N.return,ne)}}}else if(t.tag===18){if(n===null){N=t;try{var _=N.stateNode;o?cm(_,!0):cm(N.stateNode,!1)}catch(ne){Me(N,N.return,ne)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Ts(e,n))));break;case 19:yt(t,e),vt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Ts(e,a)));break;case 30:break;case 21:break;default:yt(t,e),vt(e)}}function vt(e){var t=e.flags;if(t&2){try{for(var n,a=e.return;a!==null;){if(dh(a)){n=a;break}a=a.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var o=n.stateNode,u=nu(e);ws(e,u,o);break;case 5:var m=n.stateNode;n.flags&32&&(Va(m,""),n.flags&=-33);var v=nu(e);ws(e,v,m);break;case 3:case 4:var N=n.stateNode.containerInfo,z=nu(e);au(e,z,N);break;default:throw Error(r(161))}}catch(U){Me(e,e.return,U)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Sn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ph(e,t.alternate,t),t=t.sibling}function wa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Xn(4,t,t.return),wa(t);break;case 1:Wt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&ch(t,t.return,n),wa(t);break;case 27:ci(t.stateNode);case 26:case 5:Wt(t,t.return),wa(t);break;case 22:t.memoizedState===null&&wa(t);break;case 30:wa(t);break;default:wa(t)}e=e.sibling}}function Nn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,o=e,u=t,m=u.flags;switch(u.tag){case 0:case 11:case 15:Nn(o,u,n),ei(4,u);break;case 1:if(Nn(o,u,n),a=u,o=a.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(z){Me(a,a.return,z)}if(a=u,o=a.updateQueue,o!==null){var v=a.stateNode;try{var N=o.shared.hiddenCallbacks;if(N!==null)for(o.shared.hiddenCallbacks=null,o=0;o<N.length;o++)If(N[o],v)}catch(z){Me(a,a.return,z)}}n&&m&64&&uh(u),ti(u,u.return);break;case 27:hh(u);case 26:case 5:Nn(o,u,n),n&&a===null&&m&4&&fh(u),ti(u,u.return);break;case 12:Nn(o,u,n);break;case 31:Nn(o,u,n),n&&m&4&&vh(o,u);break;case 13:Nn(o,u,n),n&&m&4&&xh(o,u);break;case 22:u.memoizedState===null&&Nn(o,u,n),ti(u,u.return);break;case 30:break;default:Nn(o,u,n)}t=t.sibling}}function iu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Vl(n))}function su(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Vl(e))}function Kt(e,t,n,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Nh(e,t,n,a),t=t.sibling}function Nh(e,t,n,a){var o=t.flags;switch(t.tag){case 0:case 11:case 15:Kt(e,t,n,a),o&2048&&ei(9,t);break;case 1:Kt(e,t,n,a);break;case 3:Kt(e,t,n,a),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Vl(e)));break;case 12:if(o&2048){Kt(e,t,n,a),e=t.stateNode;try{var u=t.memoizedProps,m=u.id,v=u.onPostCommit;typeof v=="function"&&v(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(N){Me(t,t.return,N)}}else Kt(e,t,n,a);break;case 31:Kt(e,t,n,a);break;case 13:Kt(e,t,n,a);break;case 23:break;case 22:u=t.stateNode,m=t.alternate,t.memoizedState!==null?u._visibility&2?Kt(e,t,n,a):ni(e,t):u._visibility&2?Kt(e,t,n,a):(u._visibility|=2,rl(e,t,n,a,(t.subtreeFlags&10256)!==0||!1)),o&2048&&iu(m,t);break;case 24:Kt(e,t,n,a),o&2048&&su(t.alternate,t);break;default:Kt(e,t,n,a)}}function rl(e,t,n,a,o){for(o=o&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,m=t,v=n,N=a,z=m.flags;switch(m.tag){case 0:case 11:case 15:rl(u,m,v,N,o),ei(8,m);break;case 23:break;case 22:var U=m.stateNode;m.memoizedState!==null?U._visibility&2?rl(u,m,v,N,o):ni(u,m):(U._visibility|=2,rl(u,m,v,N,o)),o&&z&2048&&iu(m.alternate,m);break;case 24:rl(u,m,v,N,o),o&&z&2048&&su(m.alternate,m);break;default:rl(u,m,v,N,o)}t=t.sibling}}function ni(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,a=t,o=a.flags;switch(a.tag){case 22:ni(n,a),o&2048&&iu(a.alternate,a);break;case 24:ni(n,a),o&2048&&su(a.alternate,a);break;default:ni(n,a)}t=t.sibling}}var ai=8192;function ol(e,t,n){if(e.subtreeFlags&ai)for(e=e.child;e!==null;)jh(e,t,n),e=e.sibling}function jh(e,t,n){switch(e.tag){case 26:ol(e,t,n),e.flags&ai&&e.memoizedState!==null&&o0(n,Qt,e.memoizedState,e.memoizedProps);break;case 5:ol(e,t,n);break;case 3:case 4:var a=Qt;Qt=qs(e.stateNode.containerInfo),ol(e,t,n),Qt=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=ai,ai=16777216,ol(e,t,n),ai=a):ol(e,t,n));break;default:ol(e,t,n)}}function Eh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function li(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];tt=a,Th(a,e)}Eh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wh(e),e=e.sibling}function wh(e){switch(e.tag){case 0:case 11:case 15:li(e),e.flags&2048&&Xn(9,e,e.return);break;case 3:li(e);break;case 12:li(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Cs(e)):li(e);break;default:li(e)}}function Cs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var a=t[n];tt=a,Th(a,e)}Eh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Xn(8,t,t.return),Cs(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Cs(t));break;default:Cs(t)}e=e.sibling}}function Th(e,t){for(;tt!==null;){var n=tt;switch(n.tag){case 0:case 11:case 15:Xn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Vl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,tt=a;else e:for(n=e;tt!==null;){a=tt;var o=a.sibling,u=a.return;if(gh(a),a===n){tt=null;break e}if(o!==null){o.return=u,tt=o;break e}tt=u}}}var jv={getCacheForType:function(e){var t=st(Ke),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return st(Ke).controller.signal}},Ev=typeof WeakMap=="function"?WeakMap:Map,Re=0,ke=null,be=null,je=0,ze=0,Ot=null,Qn=!1,ul=!1,ru=!1,jn=0,Ge=0,Kn=0,Ta=0,ou=0,zt=0,cl=0,ii=null,xt=null,uu=!1,As=0,Ch=0,Rs=1/0,Os=null,Zn=null,We=0,Jn=null,fl=null,En=0,cu=0,fu=null,Ah=null,si=0,du=null;function Mt(){return(Re&2)!==0&&je!==0?je&-je:R.T!==null?vu():Gc()}function Rh(){if(zt===0)if((je&536870912)===0||Te){var e=Hi;Hi<<=1,(Hi&3932160)===0&&(Hi=262144),zt=e}else zt=536870912;return e=At.current,e!==null&&(e.flags|=32),zt}function bt(e,t,n){(e===ke&&(ze===2||ze===9)||e.cancelPendingCommit!==null)&&(dl(e,0),Fn(e,je,zt,!1)),Cl(e,n),((Re&2)===0||e!==ke)&&(e===ke&&((Re&2)===0&&(Ta|=n),Ge===4&&Fn(e,je,zt,!1)),It(e))}function Oh(e,t,n){if((Re&6)!==0)throw Error(r(327));var a=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Tl(e,t),o=a?Cv(e,t):mu(e,t,!0),u=a;do{if(o===0){ul&&!a&&Fn(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!wv(n)){o=mu(e,t,!1),u=!1;continue}if(o===2){if(u=t,e.errorRecoveryDisabledLanes&u)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var v=e;o=ii;var N=v.current.memoizedState.isDehydrated;if(N&&(dl(v,m).flags|=256),m=mu(v,m,!1),m!==2){if(ru&&!N){v.errorRecoveryDisabledLanes|=u,Ta|=u,o=4;break e}u=xt,xt=o,u!==null&&(xt===null?xt=u:xt.push.apply(xt,u))}o=m}if(u=!1,o!==2)continue}}if(o===1){dl(e,0),Fn(e,t,0,!0);break}e:{switch(a=e,u=o,u){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:Fn(a,t,zt,!Qn);break e;case 2:xt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(o=As+300-jt(),10<o)){if(Fn(a,t,zt,!Qn),qi(a,0,!0)!==0)break e;En=t,a.timeoutHandle=rm(zh.bind(null,a,n,xt,Os,uu,t,zt,Ta,cl,Qn,u,"Throttled",-0,0),o);break e}zh(a,n,xt,Os,uu,t,zt,Ta,cl,Qn,u,null,-0,0)}}break}while(!0);It(e)}function zh(e,t,n,a,o,u,m,v,N,z,U,q,M,_){if(e.timeoutHandle=-1,q=t.subtreeFlags,q&8192||(q&16785408)===16785408){q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:un},jh(t,u,q);var ne=(u&62914560)===u?As-jt():(u&4194048)===u?Ch-jt():0;if(ne=u0(q,ne),ne!==null){En=u,e.cancelPendingCommit=ne(Bh.bind(null,e,t,u,n,a,o,m,v,N,U,q,null,M,_)),Fn(e,u,m,!z);return}}Bh(e,t,u,n,a,o,m,v,N)}function wv(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var a=0;a<n.length;a++){var o=n[a],u=o.getSnapshot;o=o.value;try{if(!Tt(u(),o))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Fn(e,t,n,a){t&=~ou,t&=~Ta,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var o=t;0<o;){var u=31-wt(o),m=1<<u;a[u]=-1,o&=~m}n!==0&&qc(e,n,t)}function zs(){return(Re&6)===0?(ri(0),!1):!0}function hu(){if(be!==null){if(ze===0)var e=be.return;else e=be,hn=ya=null,Ro(e),nl=null,Gl=0,e=be;for(;e!==null;)oh(e.alternate,e),e=e.return;be=null}}function dl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,Xv(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),En=0,hu(),ke=e,be=n=fn(e.current,null),je=t,ze=0,Ot=null,Qn=!1,ul=Tl(e,t),ru=!1,cl=zt=ou=Ta=Kn=Ge=0,xt=ii=null,uu=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var o=31-wt(a),u=1<<o;t|=e[o],a&=~u}return jn=t,Ii(),n}function Mh(e,t){ge=null,R.H=Wl,t===tl||t===ss?(t=Zf(),ze=3):t===yo?(t=Zf(),ze=4):ze=t===Xo?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ot=t,be===null&&(Ge=1,bs(e,Ut(t,e.current)))}function _h(){var e=At.current;return e===null?!0:(je&4194048)===je?Vt===null:(je&62914560)===je||(je&536870912)!==0?e===Vt:!1}function Dh(){var e=R.H;return R.H=Wl,e===null?Wl:e}function Lh(){var e=R.A;return R.A=jv,e}function Ms(){Ge=4,Qn||(je&4194048)!==je&&At.current!==null||(ul=!0),(Kn&134217727)===0&&(Ta&134217727)===0||ke===null||Fn(ke,je,zt,!1)}function mu(e,t,n){var a=Re;Re|=2;var o=Dh(),u=Lh();(ke!==e||je!==t)&&(Os=null,dl(e,t)),t=!1;var m=Ge;e:do try{if(ze!==0&&be!==null){var v=be,N=Ot;switch(ze){case 8:hu(),m=6;break e;case 3:case 2:case 9:case 6:At.current===null&&(t=!0);var z=ze;if(ze=0,Ot=null,hl(e,v,N,z),n&&ul){m=0;break e}break;default:z=ze,ze=0,Ot=null,hl(e,v,N,z)}}Tv(),m=Ge;break}catch(U){Mh(e,U)}while(!0);return t&&e.shellSuspendCounter++,hn=ya=null,Re=a,R.H=o,R.A=u,be===null&&(ke=null,je=0,Ii()),m}function Tv(){for(;be!==null;)kh(be)}function Cv(e,t){var n=Re;Re|=2;var a=Dh(),o=Lh();ke!==e||je!==t?(Os=null,Rs=jt()+500,dl(e,t)):ul=Tl(e,t);e:do try{if(ze!==0&&be!==null){t=be;var u=Ot;t:switch(ze){case 1:ze=0,Ot=null,hl(e,t,u,1);break;case 2:case 9:if(Qf(u)){ze=0,Ot=null,Uh(t);break}t=function(){ze!==2&&ze!==9||ke!==e||(ze=7),It(e)},u.then(t,t);break e;case 3:ze=7;break e;case 4:ze=5;break e;case 7:Qf(u)?(ze=0,Ot=null,Uh(t)):(ze=0,Ot=null,hl(e,t,u,7));break;case 5:var m=null;switch(be.tag){case 26:m=be.memoizedState;case 5:case 27:var v=be;if(m?Nm(m):v.stateNode.complete){ze=0,Ot=null;var N=v.sibling;if(N!==null)be=N;else{var z=v.return;z!==null?(be=z,_s(z)):be=null}break t}}ze=0,Ot=null,hl(e,t,u,5);break;case 6:ze=0,Ot=null,hl(e,t,u,6);break;case 8:hu(),Ge=6;break e;default:throw Error(r(462))}}Av();break}catch(U){Mh(e,U)}while(!0);return hn=ya=null,R.H=a,R.A=o,Re=n,be!==null?0:(ke=null,je=0,Ii(),Ge)}function Av(){for(;be!==null&&!Wg();)kh(be)}function kh(e){var t=sh(e.alternate,e,jn);e.memoizedProps=e.pendingProps,t===null?_s(e):be=t}function Uh(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=eh(n,t,t.pendingProps,t.type,void 0,je);break;case 11:t=eh(n,t,t.pendingProps,t.type.render,t.ref,je);break;case 5:Ro(t);default:oh(n,t),t=be=Lf(t,jn),t=sh(n,t,jn)}e.memoizedProps=e.pendingProps,t===null?_s(e):be=t}function hl(e,t,n,a){hn=ya=null,Ro(t),nl=null,Gl=0;var o=t.return;try{if(gv(e,o,t,n,je)){Ge=1,bs(e,Ut(n,e.current)),be=null;return}}catch(u){if(o!==null)throw be=o,u;Ge=1,bs(e,Ut(n,e.current)),be=null;return}t.flags&32768?(Te||a===1?e=!0:ul||(je&536870912)!==0?e=!1:(Qn=e=!0,(a===2||a===9||a===3||a===6)&&(a=At.current,a!==null&&a.tag===13&&(a.flags|=16384))),Hh(t,e)):_s(t)}function _s(e){var t=e;do{if((t.flags&32768)!==0){Hh(t,Qn);return}e=t.return;var n=xv(t.alternate,t,jn);if(n!==null){be=n;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);Ge===0&&(Ge=5)}function Hh(e,t){do{var n=bv(e.alternate,e);if(n!==null){n.flags&=32767,be=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){be=e;return}be=e=n}while(e!==null);Ge=6,be=null}function Bh(e,t,n,a,o,u,m,v,N){e.cancelPendingCommit=null;do Ds();while(We!==0);if((Re&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(u=t.lanes|t.childLanes,u|=to,ry(e,n,u,m,v,N),e===ke&&(be=ke=null,je=0),fl=t,Jn=e,En=n,cu=u,fu=o,Ah=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,Mv(ki,function(){return $h(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=R.T,R.T=null,o=Y.p,Y.p=2,m=Re,Re|=4;try{Sv(e,t,n)}finally{Re=m,Y.p=o,R.T=a}}We=1,qh(),Vh(),Yh()}}function qh(){if(We===1){We=0;var e=Jn,t=fl,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=R.T,R.T=null;var a=Y.p;Y.p=2;var o=Re;Re|=4;try{bh(t,e);var u=Tu,m=Tf(e.containerInfo),v=u.focusedElem,N=u.selectionRange;if(m!==v&&v&&v.ownerDocument&&wf(v.ownerDocument.documentElement,v)){if(N!==null&&Fr(v)){var z=N.start,U=N.end;if(U===void 0&&(U=z),"selectionStart"in v)v.selectionStart=z,v.selectionEnd=Math.min(U,v.value.length);else{var q=v.ownerDocument||document,M=q&&q.defaultView||window;if(M.getSelection){var _=M.getSelection(),ne=v.textContent.length,de=Math.min(N.start,ne),Le=N.end===void 0?de:Math.min(N.end,ne);!_.extend&&de>Le&&(m=Le,Le=de,de=m);var A=Ef(v,de),E=Ef(v,Le);if(A&&E&&(_.rangeCount!==1||_.anchorNode!==A.node||_.anchorOffset!==A.offset||_.focusNode!==E.node||_.focusOffset!==E.offset)){var O=q.createRange();O.setStart(A.node,A.offset),_.removeAllRanges(),de>Le?(_.addRange(O),_.extend(E.node,E.offset)):(O.setEnd(E.node,E.offset),_.addRange(O))}}}}for(q=[],_=v;_=_.parentNode;)_.nodeType===1&&q.push({element:_,left:_.scrollLeft,top:_.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<q.length;v++){var B=q[v];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Qs=!!wu,Tu=wu=null}finally{Re=o,Y.p=a,R.T=n}}e.current=t,We=2}}function Vh(){if(We===2){We=0;var e=Jn,t=fl,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=R.T,R.T=null;var a=Y.p;Y.p=2;var o=Re;Re|=4;try{ph(e,t.alternate,t)}finally{Re=o,Y.p=a,R.T=n}}We=3}}function Yh(){if(We===4||We===3){We=0,Ig();var e=Jn,t=fl,n=En,a=Ah;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,fl=Jn=null,Gh(e,e.pendingLanes));var o=e.pendingLanes;if(o===0&&(Zn=null),zr(n),t=t.stateNode,Et&&typeof Et.onCommitFiberRoot=="function")try{Et.onCommitFiberRoot(wl,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=R.T,o=Y.p,Y.p=2,R.T=null;try{for(var u=e.onRecoverableError,m=0;m<a.length;m++){var v=a[m];u(v.value,{componentStack:v.stack})}}finally{R.T=t,Y.p=o}}(En&3)!==0&&Ds(),It(e),o=e.pendingLanes,(n&261930)!==0&&(o&42)!==0?e===du?si++:(si=0,du=e):si=0,ri(0)}}function Gh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Vl(t)))}function Ds(){return qh(),Vh(),Yh(),$h()}function $h(){if(We!==5)return!1;var e=Jn,t=cu;cu=0;var n=zr(En),a=R.T,o=Y.p;try{Y.p=32>n?32:n,R.T=null,n=fu,fu=null;var u=Jn,m=En;if(We=0,fl=Jn=null,En=0,(Re&6)!==0)throw Error(r(331));var v=Re;if(Re|=4,wh(u.current),Nh(u,u.current,m,n),Re=v,ri(0,!1),Et&&typeof Et.onPostCommitFiberRoot=="function")try{Et.onPostCommitFiberRoot(wl,u)}catch{}return!0}finally{Y.p=o,R.T=a,Gh(e,t)}}function Xh(e,t,n){t=Ut(n,t),t=$o(e.stateNode,t,2),e=Yn(e,t,2),e!==null&&(Cl(e,2),It(e))}function Me(e,t,n){if(e.tag===3)Xh(e,e,n);else for(;t!==null;){if(t.tag===3){Xh(t,e,n);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Zn===null||!Zn.has(a))){e=Ut(n,e),n=Qd(2),a=Yn(t,n,2),a!==null&&(Kd(n,a,t,e),Cl(a,2),It(a));break}}t=t.return}}function pu(e,t,n){var a=e.pingCache;if(a===null){a=e.pingCache=new Ev;var o=new Set;a.set(t,o)}else o=a.get(t),o===void 0&&(o=new Set,a.set(t,o));o.has(n)||(ru=!0,o.add(n),e=Rv.bind(null,e,t,n),t.then(e,e))}function Rv(e,t,n){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ke===e&&(je&n)===n&&(Ge===4||Ge===3&&(je&62914560)===je&&300>jt()-As?(Re&2)===0&&dl(e,0):ou|=n,cl===je&&(cl=0)),It(e)}function Qh(e,t){t===0&&(t=Bc()),e=ma(e,t),e!==null&&(Cl(e,t),It(e))}function Ov(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Qh(e,n)}function zv(e,t){var n=0;switch(e.tag){case 31:case 13:var a=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(r(314))}a!==null&&a.delete(t),Qh(e,n)}function Mv(e,t){return Cr(e,t)}var Ls=null,ml=null,gu=!1,ks=!1,yu=!1,Wn=0;function It(e){e!==ml&&e.next===null&&(ml===null?Ls=ml=e:ml=ml.next=e),ks=!0,gu||(gu=!0,Dv())}function ri(e,t){if(!yu&&ks){yu=!0;do for(var n=!1,a=Ls;a!==null;){if(e!==0){var o=a.pendingLanes;if(o===0)var u=0;else{var m=a.suspendedLanes,v=a.pingedLanes;u=(1<<31-wt(42|e)+1)-1,u&=o&~(m&~v),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,Fh(a,u))}else u=je,u=qi(a,a===ke?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(u&3)===0||Tl(a,u)||(n=!0,Fh(a,u));a=a.next}while(n);yu=!1}}function _v(){Kh()}function Kh(){ks=gu=!1;var e=0;Wn!==0&&$v()&&(e=Wn);for(var t=jt(),n=null,a=Ls;a!==null;){var o=a.next,u=Zh(a,t);u===0?(a.next=null,n===null?Ls=o:n.next=o,o===null&&(ml=n)):(n=a,(e!==0||(u&3)!==0)&&(ks=!0)),a=o}We!==0&&We!==5||ri(e),Wn!==0&&(Wn=0)}function Zh(e,t){for(var n=e.suspendedLanes,a=e.pingedLanes,o=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var m=31-wt(u),v=1<<m,N=o[m];N===-1?((v&n)===0||(v&a)!==0)&&(o[m]=sy(v,t)):N<=t&&(e.expiredLanes|=v),u&=~v}if(t=ke,n=je,n=qi(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,n===0||e===t&&(ze===2||ze===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Ar(a),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Tl(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(a!==null&&Ar(a),zr(n)){case 2:case 8:n=Uc;break;case 32:n=ki;break;case 268435456:n=Hc;break;default:n=ki}return a=Jh.bind(null,e),n=Cr(n,a),e.callbackPriority=t,e.callbackNode=n,t}return a!==null&&a!==null&&Ar(a),e.callbackPriority=2,e.callbackNode=null,2}function Jh(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ds()&&e.callbackNode!==n)return null;var a=je;return a=qi(e,e===ke?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Oh(e,a,t),Zh(e,jt()),e.callbackNode!=null&&e.callbackNode===n?Jh.bind(null,e):null)}function Fh(e,t){if(Ds())return null;Oh(e,t,!0)}function Dv(){Qv(function(){(Re&6)!==0?Cr(kc,_v):Kh()})}function vu(){if(Wn===0){var e=Pa;e===0&&(e=Ui,Ui<<=1,(Ui&261888)===0&&(Ui=256)),Wn=e}return Wn}function Wh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:$i(""+e)}function Ih(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Lv(e,t,n,a,o){if(t==="submit"&&n&&n.stateNode===o){var u=Wh((o[mt]||null).action),m=a.submitter;m&&(t=(t=m[mt]||null)?Wh(t.formAction):m.getAttribute("formAction"),t!==null&&(u=t,m=null));var v=new Zi("action","action",null,a,o);e.push({event:v,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Wn!==0){var N=m?Ih(o,m):new FormData(o);Ho(n,{pending:!0,data:N,method:o.method,action:u},null,N)}}else typeof u=="function"&&(v.preventDefault(),N=m?Ih(o,m):new FormData(o),Ho(n,{pending:!0,data:N,method:o.method,action:u},u,N))},currentTarget:o}]})}}for(var xu=0;xu<eo.length;xu++){var bu=eo[xu],kv=bu.toLowerCase(),Uv=bu[0].toUpperCase()+bu.slice(1);Xt(kv,"on"+Uv)}Xt(Rf,"onAnimationEnd"),Xt(Of,"onAnimationIteration"),Xt(zf,"onAnimationStart"),Xt("dblclick","onDoubleClick"),Xt("focusin","onFocus"),Xt("focusout","onBlur"),Xt(Py,"onTransitionRun"),Xt(ev,"onTransitionStart"),Xt(tv,"onTransitionCancel"),Xt(Mf,"onTransitionEnd"),Ba("onMouseEnter",["mouseout","mouseover"]),Ba("onMouseLeave",["mouseout","mouseover"]),Ba("onPointerEnter",["pointerout","pointerover"]),Ba("onPointerLeave",["pointerout","pointerover"]),ca("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ca("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ca("onBeforeInput",["compositionend","keypress","textInput","paste"]),ca("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ca("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ca("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var oi="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(" "),Hv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(oi));function Ph(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var a=e[n],o=a.event;a=a.listeners;e:{var u=void 0;if(t)for(var m=a.length-1;0<=m;m--){var v=a[m],N=v.instance,z=v.currentTarget;if(v=v.listener,N!==u&&o.isPropagationStopped())break e;u=v,o.currentTarget=z;try{u(o)}catch(U){Wi(U)}o.currentTarget=null,u=N}else for(m=0;m<a.length;m++){if(v=a[m],N=v.instance,z=v.currentTarget,v=v.listener,N!==u&&o.isPropagationStopped())break e;u=v,o.currentTarget=z;try{u(o)}catch(U){Wi(U)}o.currentTarget=null,u=N}}}}function Se(e,t){var n=t[Mr];n===void 0&&(n=t[Mr]=new Set);var a=e+"__bubble";n.has(a)||(em(t,e,2,!1),n.add(a))}function Su(e,t,n){var a=0;t&&(a|=4),em(n,e,a,t)}var Us="_reactListening"+Math.random().toString(36).slice(2);function Nu(e){if(!e[Us]){e[Us]=!0,Qc.forEach(function(n){n!=="selectionchange"&&(Hv.has(n)||Su(n,!1,e),Su(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Us]||(t[Us]=!0,Su("selectionchange",!1,t))}}function em(e,t,n,a){switch(Rm(t)){case 2:var o=d0;break;case 8:o=h0;break;default:o=Uu}n=o.bind(null,t,n,e),o=void 0,!Vr||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),a?o!==void 0?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):o!==void 0?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function ju(e,t,n,a,o){var u=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var m=a.tag;if(m===3||m===4){var v=a.stateNode.containerInfo;if(v===o)break;if(m===4)for(m=a.return;m!==null;){var N=m.tag;if((N===3||N===4)&&m.stateNode.containerInfo===o)return;m=m.return}for(;v!==null;){if(m=ka(v),m===null)return;if(N=m.tag,N===5||N===6||N===26||N===27){a=u=m;continue e}v=v.parentNode}}a=a.return}lf(function(){var z=u,U=Br(n),q=[];e:{var M=_f.get(e);if(M!==void 0){var _=Zi,ne=e;switch(e){case"keypress":if(Qi(n)===0)break e;case"keydown":case"keyup":_=zy;break;case"focusin":ne="focus",_=Xr;break;case"focusout":ne="blur",_=Xr;break;case"beforeblur":case"afterblur":_=Xr;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":_=of;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":_=xy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":_=Dy;break;case Rf:case Of:case zf:_=Ny;break;case Mf:_=ky;break;case"scroll":case"scrollend":_=yy;break;case"wheel":_=Hy;break;case"copy":case"cut":case"paste":_=Ey;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":_=cf;break;case"toggle":case"beforetoggle":_=qy}var de=(t&4)!==0,Le=!de&&(e==="scroll"||e==="scrollend"),A=de?M!==null?M+"Capture":null:M;de=[];for(var E=z,O;E!==null;){var B=E;if(O=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||O===null||A===null||(B=Ol(E,A),B!=null&&de.push(ui(E,B,O))),Le)break;E=E.return}0<de.length&&(M=new _(M,ne,null,n,U),q.push({event:M,listeners:de}))}}if((t&7)===0){e:{if(M=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",M&&n!==Hr&&(ne=n.relatedTarget||n.fromElement)&&(ka(ne)||ne[La]))break e;if((_||M)&&(M=U.window===U?U:(M=U.ownerDocument)?M.defaultView||M.parentWindow:window,_?(ne=n.relatedTarget||n.toElement,_=z,ne=ne?ka(ne):null,ne!==null&&(Le=f(ne),de=ne.tag,ne!==Le||de!==5&&de!==27&&de!==6)&&(ne=null)):(_=null,ne=z),_!==ne)){if(de=of,B="onMouseLeave",A="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(de=cf,B="onPointerLeave",A="onPointerEnter",E="pointer"),Le=_==null?M:Rl(_),O=ne==null?M:Rl(ne),M=new de(B,E+"leave",_,n,U),M.target=Le,M.relatedTarget=O,B=null,ka(U)===z&&(de=new de(A,E+"enter",ne,n,U),de.target=O,de.relatedTarget=Le,B=de),Le=B,_&&ne)t:{for(de=Bv,A=_,E=ne,O=0,B=A;B;B=de(B))O++;B=0;for(var ce=E;ce;ce=de(ce))B++;for(;0<O-B;)A=de(A),O--;for(;0<B-O;)E=de(E),B--;for(;O--;){if(A===E||E!==null&&A===E.alternate){de=A;break t}A=de(A),E=de(E)}de=null}else de=null;_!==null&&tm(q,M,_,de,!1),ne!==null&&Le!==null&&tm(q,Le,ne,de,!0)}}e:{if(M=z?Rl(z):window,_=M.nodeName&&M.nodeName.toLowerCase(),_==="select"||_==="input"&&M.type==="file")var Ce=vf;else if(gf(M))if(xf)Ce=Fy;else{Ce=Zy;var re=Ky}else _=M.nodeName,!_||_.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?z&&Ur(z.elementType)&&(Ce=vf):Ce=Jy;if(Ce&&(Ce=Ce(e,z))){yf(q,Ce,n,U);break e}re&&re(e,M,z),e==="focusout"&&z&&M.type==="number"&&z.memoizedProps.value!=null&&kr(M,"number",M.value)}switch(re=z?Rl(z):window,e){case"focusin":(gf(re)||re.contentEditable==="true")&&(Xa=re,Wr=z,Hl=null);break;case"focusout":Hl=Wr=Xa=null;break;case"mousedown":Ir=!0;break;case"contextmenu":case"mouseup":case"dragend":Ir=!1,Cf(q,n,U);break;case"selectionchange":if(Iy)break;case"keydown":case"keyup":Cf(q,n,U)}var ye;if(Kr)e:{switch(e){case"compositionstart":var Ee="onCompositionStart";break e;case"compositionend":Ee="onCompositionEnd";break e;case"compositionupdate":Ee="onCompositionUpdate";break e}Ee=void 0}else $a?mf(e,n)&&(Ee="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(Ee="onCompositionStart");Ee&&(ff&&n.locale!=="ko"&&($a||Ee!=="onCompositionStart"?Ee==="onCompositionEnd"&&$a&&(ye=sf()):(Ln=U,Yr="value"in Ln?Ln.value:Ln.textContent,$a=!0)),re=Hs(z,Ee),0<re.length&&(Ee=new uf(Ee,e,null,n,U),q.push({event:Ee,listeners:re}),ye?Ee.data=ye:(ye=pf(n),ye!==null&&(Ee.data=ye)))),(ye=Yy?Gy(e,n):$y(e,n))&&(Ee=Hs(z,"onBeforeInput"),0<Ee.length&&(re=new uf("onBeforeInput","beforeinput",null,n,U),q.push({event:re,listeners:Ee}),re.data=ye)),Lv(q,e,z,n,U)}Ph(q,t)})}function ui(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hs(e,t){for(var n=t+"Capture",a=[];e!==null;){var o=e,u=o.stateNode;if(o=o.tag,o!==5&&o!==26&&o!==27||u===null||(o=Ol(e,n),o!=null&&a.unshift(ui(e,o,u)),o=Ol(e,t),o!=null&&a.push(ui(e,o,u))),e.tag===3)return a;e=e.return}return[]}function Bv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tm(e,t,n,a,o){for(var u=t._reactName,m=[];n!==null&&n!==a;){var v=n,N=v.alternate,z=v.stateNode;if(v=v.tag,N!==null&&N===a)break;v!==5&&v!==26&&v!==27||z===null||(N=z,o?(z=Ol(n,u),z!=null&&m.unshift(ui(n,z,N))):o||(z=Ol(n,u),z!=null&&m.push(ui(n,z,N)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var qv=/\r\n?/g,Vv=/\u0000|\uFFFD/g;function nm(e){return(typeof e=="string"?e:""+e).replace(qv,`
|
|
49
|
+
`).replace(Vv,"")}function am(e,t){return t=nm(t),nm(e)===t}function De(e,t,n,a,o,u){switch(n){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Va(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Va(e,""+a);break;case"className":Yi(e,"class",a);break;case"tabIndex":Yi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Yi(e,n,a);break;case"style":nf(e,a,u);break;case"data":if(t!=="object"){Yi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=$i(""+a),e.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(n,"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 u=="function"&&(n==="formAction"?(t!=="input"&&De(e,t,"name",o.name,o,null),De(e,t,"formEncType",o.formEncType,o,null),De(e,t,"formMethod",o.formMethod,o,null),De(e,t,"formTarget",o.formTarget,o,null)):(De(e,t,"encType",o.encType,o,null),De(e,t,"method",o.method,o,null),De(e,t,"target",o.target,o,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(n);break}a=$i(""+a),e.setAttribute(n,a);break;case"onClick":a!=null&&(e.onclick=un);break;case"onScroll":a!=null&&Se("scroll",e);break;case"onScrollEnd":a!=null&&Se("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}n=$i(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""+a):e.removeAttribute(n);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":a===!0?e.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(n,a):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(n,a):e.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(n):e.setAttribute(n,a);break;case"popover":Se("beforetoggle",e),Se("toggle",e),Vi(e,"popover",a);break;case"xlinkActuate":on(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":on(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":on(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":on(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":on(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":on(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":on(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":on(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":on(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Vi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=py.get(n)||n,Vi(e,n,a))}}function Eu(e,t,n,a,o,u){switch(n){case"style":nf(e,a,u);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(r(61));if(n=a.__html,n!=null){if(o.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof a=="string"?Va(e,a):(typeof a=="number"||typeof a=="bigint")&&Va(e,""+a);break;case"onScroll":a!=null&&Se("scroll",e);break;case"onScrollEnd":a!=null&&Se("scrollend",e);break;case"onClick":a!=null&&(e.onclick=un);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Kc.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(o=n.endsWith("Capture"),t=n.slice(2,o?n.length-7:void 0),u=e[mt]||null,u=u!=null?u[n]:null,typeof u=="function"&&e.removeEventListener(t,u,o),typeof a=="function")){typeof u!="function"&&u!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,a,o);break e}n in e?e[n]=a:a===!0?e.setAttribute(n,""):Vi(e,n,a)}}}function ot(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Se("error",e),Se("load",e);var a=!1,o=!1,u;for(u in n)if(n.hasOwnProperty(u)){var m=n[u];if(m!=null)switch(u){case"src":a=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:De(e,t,u,m,n,null)}}o&&De(e,t,"srcSet",n.srcSet,n,null),a&&De(e,t,"src",n.src,n,null);return;case"input":Se("invalid",e);var v=u=m=o=null,N=null,z=null;for(a in n)if(n.hasOwnProperty(a)){var U=n[a];if(U!=null)switch(a){case"name":o=U;break;case"type":m=U;break;case"checked":N=U;break;case"defaultChecked":z=U;break;case"value":u=U;break;case"defaultValue":v=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:De(e,t,a,U,n,null)}}Ic(e,u,v,N,z,m,o,!1);return;case"select":Se("invalid",e),a=m=u=null;for(o in n)if(n.hasOwnProperty(o)&&(v=n[o],v!=null))switch(o){case"value":u=v;break;case"defaultValue":m=v;break;case"multiple":a=v;default:De(e,t,o,v,n,null)}t=u,n=m,e.multiple=!!a,t!=null?qa(e,!!a,t,!1):n!=null&&qa(e,!!a,n,!0);return;case"textarea":Se("invalid",e),u=o=a=null;for(m in n)if(n.hasOwnProperty(m)&&(v=n[m],v!=null))switch(m){case"value":a=v;break;case"defaultValue":o=v;break;case"children":u=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:De(e,t,m,v,n,null)}ef(e,a,o,u);return;case"option":for(N in n)if(n.hasOwnProperty(N)&&(a=n[N],a!=null))switch(N){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:De(e,t,N,a,n,null)}return;case"dialog":Se("beforetoggle",e),Se("toggle",e),Se("cancel",e),Se("close",e);break;case"iframe":case"object":Se("load",e);break;case"video":case"audio":for(a=0;a<oi.length;a++)Se(oi[a],e);break;case"image":Se("error",e),Se("load",e);break;case"details":Se("toggle",e);break;case"embed":case"source":case"link":Se("error",e),Se("load",e);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 n)if(n.hasOwnProperty(z)&&(a=n[z],a!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:De(e,t,z,a,n,null)}return;default:if(Ur(t)){for(U in n)n.hasOwnProperty(U)&&(a=n[U],a!==void 0&&Eu(e,t,U,a,n,void 0));return}}for(v in n)n.hasOwnProperty(v)&&(a=n[v],a!=null&&De(e,t,v,a,n,null))}function Yv(e,t,n,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,u=null,m=null,v=null,N=null,z=null,U=null;for(_ in n){var q=n[_];if(n.hasOwnProperty(_)&&q!=null)switch(_){case"checked":break;case"value":break;case"defaultValue":N=q;default:a.hasOwnProperty(_)||De(e,t,_,null,a,q)}}for(var M in a){var _=a[M];if(q=n[M],a.hasOwnProperty(M)&&(_!=null||q!=null))switch(M){case"type":u=_;break;case"name":o=_;break;case"checked":z=_;break;case"defaultChecked":U=_;break;case"value":m=_;break;case"defaultValue":v=_;break;case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(137,t));break;default:_!==q&&De(e,t,M,_,a,q)}}Lr(e,m,v,N,z,U,u,o);return;case"select":_=m=v=M=null;for(u in n)if(N=n[u],n.hasOwnProperty(u)&&N!=null)switch(u){case"value":break;case"multiple":_=N;default:a.hasOwnProperty(u)||De(e,t,u,null,a,N)}for(o in a)if(u=a[o],N=n[o],a.hasOwnProperty(o)&&(u!=null||N!=null))switch(o){case"value":M=u;break;case"defaultValue":v=u;break;case"multiple":m=u;default:u!==N&&De(e,t,o,u,a,N)}t=v,n=m,a=_,M!=null?qa(e,!!n,M,!1):!!a!=!!n&&(t!=null?qa(e,!!n,t,!0):qa(e,!!n,n?[]:"",!1));return;case"textarea":_=M=null;for(v in n)if(o=n[v],n.hasOwnProperty(v)&&o!=null&&!a.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:De(e,t,v,null,a,o)}for(m in a)if(o=a[m],u=n[m],a.hasOwnProperty(m)&&(o!=null||u!=null))switch(m){case"value":M=o;break;case"defaultValue":_=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(r(91));break;default:o!==u&&De(e,t,m,o,a,u)}Pc(e,M,_);return;case"option":for(var ne in n)if(M=n[ne],n.hasOwnProperty(ne)&&M!=null&&!a.hasOwnProperty(ne))switch(ne){case"selected":e.selected=!1;break;default:De(e,t,ne,null,a,M)}for(N in a)if(M=a[N],_=n[N],a.hasOwnProperty(N)&&M!==_&&(M!=null||_!=null))switch(N){case"selected":e.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:De(e,t,N,M,a,_)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var de in n)M=n[de],n.hasOwnProperty(de)&&M!=null&&!a.hasOwnProperty(de)&&De(e,t,de,null,a,M);for(z in a)if(M=a[z],_=n[z],a.hasOwnProperty(z)&&M!==_&&(M!=null||_!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(137,t));break;default:De(e,t,z,M,a,_)}return;default:if(Ur(t)){for(var Le in n)M=n[Le],n.hasOwnProperty(Le)&&M!==void 0&&!a.hasOwnProperty(Le)&&Eu(e,t,Le,void 0,a,M);for(U in a)M=a[U],_=n[U],!a.hasOwnProperty(U)||M===_||M===void 0&&_===void 0||Eu(e,t,U,M,a,_);return}}for(var A in n)M=n[A],n.hasOwnProperty(A)&&M!=null&&!a.hasOwnProperty(A)&&De(e,t,A,null,a,M);for(q in a)M=a[q],_=n[q],!a.hasOwnProperty(q)||M===_||M==null&&_==null||De(e,t,q,M,a,_)}function lm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Gv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var o=n[a],u=o.transferSize,m=o.initiatorType,v=o.duration;if(u&&v&&lm(m)){for(m=0,v=o.responseEnd,a+=1;a<n.length;a++){var N=n[a],z=N.startTime;if(z>v)break;var U=N.transferSize,q=N.initiatorType;U&&lm(q)&&(N=N.responseEnd,m+=U*(N<v?1:(v-z)/(N-z)))}if(--a,t+=8*(u+m)/(o.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var wu=null,Tu=null;function Bs(e){return e.nodeType===9?e:e.ownerDocument}function im(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Cu(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Au=null;function $v(){var e=window.event;return e&&e.type==="popstate"?e===Au?!1:(Au=e,!0):(Au=null,!1)}var rm=typeof setTimeout=="function"?setTimeout:void 0,Xv=typeof clearTimeout=="function"?clearTimeout:void 0,om=typeof Promise=="function"?Promise:void 0,Qv=typeof queueMicrotask=="function"?queueMicrotask:typeof om<"u"?function(e){return om.resolve(null).then(e).catch(Kv)}:rm;function Kv(e){setTimeout(function(){throw e})}function In(e){return e==="head"}function um(e,t){var n=t,a=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&o.nodeType===8)if(n=o.data,n==="/$"||n==="/&"){if(a===0){e.removeChild(o),vl(t);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")ci(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,ci(n);for(var u=n.firstChild;u;){var m=u.nextSibling,v=u.nodeName;u[Al]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=m}}else n==="body"&&ci(e.ownerDocument.body);n=o}while(n);vl(t)}function cm(e,t){var n=e;e=0;do{var a=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=a}while(n)}function Ru(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Ru(n),_r(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Zv(e,t,n,a){for(;e.nodeType===1;){var o=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[Al])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==o.rel||e.getAttribute("href")!==(o.href==null||o.href===""?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=Yt(e.nextSibling),e===null)break}return null}function Jv(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Yt(e.nextSibling),e===null))return null;return e}function fm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Yt(e.nextSibling),e===null))return null;return e}function Ou(e){return e.data==="$?"||e.data==="$~"}function zu(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function Fv(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var a=function(){t(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Yt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Mu=null;function dm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Yt(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function hm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function mm(e,t,n){switch(t=Bs(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function ci(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);_r(e)}var Gt=new Map,pm=new Set;function qs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var wn=Y.d;Y.d={f:Wv,r:Iv,D:Pv,C:e0,L:t0,m:n0,X:l0,S:a0,M:i0};function Wv(){var e=wn.f(),t=zs();return e||t}function Iv(e){var t=Ua(e);t!==null&&t.tag===5&&t.type==="form"?Md(t):wn.r(e)}var pl=typeof document>"u"?null:document;function gm(e,t,n){var a=pl;if(a&&typeof t=="string"&&t){var o=Lt(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof n=="string"&&(o+='[crossorigin="'+n+'"]'),pm.has(o)||(pm.add(o),e={rel:e,crossOrigin:n,href:t},a.querySelector(o)===null&&(t=a.createElement("link"),ot(t,"link",e),et(t),a.head.appendChild(t)))}}function Pv(e){wn.D(e),gm("dns-prefetch",e,null)}function e0(e,t){wn.C(e,t),gm("preconnect",e,t)}function t0(e,t,n){wn.L(e,t,n);var a=pl;if(a&&e&&t){var o='link[rel="preload"][as="'+Lt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(o+='[imagesrcset="'+Lt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(o+='[imagesizes="'+Lt(n.imageSizes)+'"]')):o+='[href="'+Lt(e)+'"]';var u=o;switch(t){case"style":u=gl(e);break;case"script":u=yl(e)}Gt.has(u)||(e=x({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Gt.set(u,e),a.querySelector(o)!==null||t==="style"&&a.querySelector(fi(u))||t==="script"&&a.querySelector(di(u))||(t=a.createElement("link"),ot(t,"link",e),et(t),a.head.appendChild(t)))}}function n0(e,t){wn.m(e,t);var n=pl;if(n&&e){var a=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+Lt(a)+'"][href="'+Lt(e)+'"]',u=o;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=yl(e)}if(!Gt.has(u)&&(e=x({rel:"modulepreload",href:e},t),Gt.set(u,e),n.querySelector(o)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(di(u)))return}a=n.createElement("link"),ot(a,"link",e),et(a),n.head.appendChild(a)}}}function a0(e,t,n){wn.S(e,t,n);var a=pl;if(a&&e){var o=Ha(a).hoistableStyles,u=gl(e);t=t||"default";var m=o.get(u);if(!m){var v={loading:0,preload:null};if(m=a.querySelector(fi(u)))v.loading=5;else{e=x({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Gt.get(u))&&_u(e,n);var N=m=a.createElement("link");et(N),ot(N,"link",e),N._p=new Promise(function(z,U){N.onload=z,N.onerror=U}),N.addEventListener("load",function(){v.loading|=1}),N.addEventListener("error",function(){v.loading|=2}),v.loading|=4,Vs(m,t,a)}m={type:"stylesheet",instance:m,count:1,state:v},o.set(u,m)}}}function l0(e,t){wn.X(e,t);var n=pl;if(n&&e){var a=Ha(n).hoistableScripts,o=yl(e),u=a.get(o);u||(u=n.querySelector(di(o)),u||(e=x({src:e,async:!0},t),(t=Gt.get(o))&&Du(e,t),u=n.createElement("script"),et(u),ot(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(o,u))}}function i0(e,t){wn.M(e,t);var n=pl;if(n&&e){var a=Ha(n).hoistableScripts,o=yl(e),u=a.get(o);u||(u=n.querySelector(di(o)),u||(e=x({src:e,async:!0,type:"module"},t),(t=Gt.get(o))&&Du(e,t),u=n.createElement("script"),et(u),ot(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},a.set(o,u))}}function ym(e,t,n,a){var o=(o=ue.current)?qs(o):null;if(!o)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=gl(n.href),n=Ha(o).hoistableStyles,a=n.get(t),a||(a={type:"style",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=gl(n.href);var u=Ha(o).hoistableStyles,m=u.get(e);if(m||(o=o.ownerDocument||o,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,m),(u=o.querySelector(fi(e)))&&!u._p&&(m.instance=u,m.state.loading=5),Gt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Gt.set(e,n),u||s0(o,e,n,m.state))),t&&a===null)throw Error(r(528,""));return m}if(t&&a!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=yl(n),n=Ha(o).hoistableScripts,a=n.get(t),a||(a={type:"script",instance:null,count:0,state:null},n.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function gl(e){return'href="'+Lt(e)+'"'}function fi(e){return'link[rel="stylesheet"]['+e+"]"}function vm(e){return x({},e,{"data-precedence":e.precedence,precedence:null})}function s0(e,t,n,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),ot(t,"link",n),et(t),e.head.appendChild(t))}function yl(e){return'[src="'+Lt(e)+'"]'}function di(e){return"script[async]"+e}function xm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+Lt(n.href)+'"]');if(a)return t.instance=a,et(a),a;var o=x({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),et(a),ot(a,"style",o),Vs(a,n.precedence,e),t.instance=a;case"stylesheet":o=gl(n.href);var u=e.querySelector(fi(o));if(u)return t.state.loading|=4,t.instance=u,et(u),u;a=vm(n),(o=Gt.get(o))&&_u(a,o),u=(e.ownerDocument||e).createElement("link"),et(u);var m=u;return m._p=new Promise(function(v,N){m.onload=v,m.onerror=N}),ot(u,"link",a),t.state.loading|=4,Vs(u,n.precedence,e),t.instance=u;case"script":return u=yl(n.src),(o=e.querySelector(di(u)))?(t.instance=o,et(o),o):(a=n,(o=Gt.get(u))&&(a=x({},n),Du(a,o)),e=e.ownerDocument||e,o=e.createElement("script"),et(o),ot(o,"link",a),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,Vs(a,n.precedence,e));return t.instance}function Vs(e,t,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=a.length?a[a.length-1]:null,u=o,m=0;m<a.length;m++){var v=a[m];if(v.dataset.precedence===t)u=v;else if(u!==o)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function _u(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Du(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ys=null;function bm(e,t,n){if(Ys===null){var a=new Map,o=Ys=new Map;o.set(n,a)}else o=Ys,a=o.get(n),a||(a=new Map,o.set(n,a));if(a.has(e))return a;for(a.set(e,null),n=n.getElementsByTagName(e),o=0;o<n.length;o++){var u=n[o];if(!(u[Al]||u[lt]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var m=u.getAttribute(t)||"";m=e+m;var v=a.get(m);v?v.push(u):a.set(m,[u])}}return a}function Sm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function r0(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Nm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function o0(e,t,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var o=gl(a.href),u=t.querySelector(fi(o));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Gs.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,et(u);return}u=t.ownerDocument||t,a=vm(a),(o=Gt.get(o))&&_u(a,o),u=u.createElement("link"),et(u);var m=u;m._p=new Promise(function(v,N){m.onload=v,m.onerror=N}),ot(u,"link",a),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Gs.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Lu=0;function u0(e,t){return e.stylesheets&&e.count===0&&Xs(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var a=setTimeout(function(){if(e.stylesheets&&Xs(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Lu===0&&(Lu=62500*Gv());var o=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xs(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Lu?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(o)}}:null}function Gs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var $s=null;function Xs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,$s=new Map,t.forEach(c0,e),$s=null,Gs.call(e))}function c0(e,t){if(!(t.state.loading&4)){var n=$s.get(e);if(n)var a=n.get(null);else{n=new Map,$s.set(e,n);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<o.length;u++){var m=o[u];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),a=m)}a&&n.set(null,a)}o=t.instance,m=o.getAttribute("data-precedence"),u=n.get(m)||a,u===a&&n.set(null,o),n.set(m,o),this.count++,a=Gs.bind(this),o.addEventListener("load",a),o.addEventListener("error",a),u?u.parentNode.insertBefore(o,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var hi={$$typeof:X,Provider:null,Consumer:null,_currentValue:te,_currentValue2:te,_threadCount:0};function f0(e,t,n,a,o,u,m,v,N){this.tag=1,this.containerInfo=e,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=Rr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rr(0),this.hiddenUpdates=Rr(null),this.identifierPrefix=a,this.onUncaughtError=o,this.onCaughtError=u,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map}function jm(e,t,n,a,o,u,m,v,N,z,U,q){return e=new f0(e,t,n,m,N,z,U,q,v),t=1,u===!0&&(t|=24),u=Ct(3,null,null,t),e.current=u,u.stateNode=e,t=mo(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:a,isDehydrated:n,cache:t},vo(u),e}function Em(e){return e?(e=Za,e):Za}function wm(e,t,n,a,o,u){o=Em(o),a.context===null?a.context=o:a.pendingContext=o,a=Vn(t),a.payload={element:n},u=u===void 0?null:u,u!==null&&(a.callback=u),n=Yn(e,a,t),n!==null&&(bt(n,e,t),Xl(n,e,t))}function Tm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ku(e,t){Tm(e,t),(e=e.alternate)&&Tm(e,t)}function Cm(e){if(e.tag===13||e.tag===31){var t=ma(e,67108864);t!==null&&bt(t,e,67108864),ku(e,67108864)}}function Am(e){if(e.tag===13||e.tag===31){var t=Mt();t=Or(t);var n=ma(e,t);n!==null&&bt(n,e,t),ku(e,t)}}var Qs=!0;function d0(e,t,n,a){var o=R.T;R.T=null;var u=Y.p;try{Y.p=2,Uu(e,t,n,a)}finally{Y.p=u,R.T=o}}function h0(e,t,n,a){var o=R.T;R.T=null;var u=Y.p;try{Y.p=8,Uu(e,t,n,a)}finally{Y.p=u,R.T=o}}function Uu(e,t,n,a){if(Qs){var o=Hu(a);if(o===null)ju(e,t,a,Ks,n),Om(e,a);else if(p0(o,e,t,n,a))a.stopPropagation();else if(Om(e,a),t&4&&-1<m0.indexOf(e)){for(;o!==null;){var u=Ua(o);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var m=ua(u.pendingLanes);if(m!==0){var v=u;for(v.pendingLanes|=2,v.entangledLanes|=2;m;){var N=1<<31-wt(m);v.entanglements[1]|=N,m&=~N}It(u),(Re&6)===0&&(Rs=jt()+500,ri(0))}}break;case 31:case 13:v=ma(u,2),v!==null&&bt(v,u,2),zs(),ku(u,2)}if(u=Hu(a),u===null&&ju(e,t,a,Ks,n),u===o)break;o=u}o!==null&&a.stopPropagation()}else ju(e,t,a,null,n)}}function Hu(e){return e=Br(e),Bu(e)}var Ks=null;function Bu(e){if(Ks=null,e=ka(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=y(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ks=e,null}function Rm(e){switch(e){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(Pg()){case kc:return 2;case Uc:return 8;case ki:case ey:return 32;case Hc:return 268435456;default:return 32}default:return 32}}var qu=!1,Pn=null,ea=null,ta=null,mi=new Map,pi=new Map,na=[],m0="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 Om(e,t){switch(e){case"focusin":case"focusout":Pn=null;break;case"dragenter":case"dragleave":ea=null;break;case"mouseover":case"mouseout":ta=null;break;case"pointerover":case"pointerout":mi.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":pi.delete(t.pointerId)}}function gi(e,t,n,a,o,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:a,nativeEvent:u,targetContainers:[o]},t!==null&&(t=Ua(t),t!==null&&Cm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function p0(e,t,n,a,o){switch(t){case"focusin":return Pn=gi(Pn,e,t,n,a,o),!0;case"dragenter":return ea=gi(ea,e,t,n,a,o),!0;case"mouseover":return ta=gi(ta,e,t,n,a,o),!0;case"pointerover":var u=o.pointerId;return mi.set(u,gi(mi.get(u)||null,e,t,n,a,o)),!0;case"gotpointercapture":return u=o.pointerId,pi.set(u,gi(pi.get(u)||null,e,t,n,a,o)),!0}return!1}function zm(e){var t=ka(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,$c(e.priority,function(){Am(n)});return}}else if(t===31){if(t=y(n),t!==null){e.blockedOn=t,$c(e.priority,function(){Am(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Hu(e.nativeEvent);if(n===null){n=e.nativeEvent;var a=new n.constructor(n.type,n);Hr=a,n.target.dispatchEvent(a),Hr=null}else return t=Ua(n),t!==null&&Cm(t),e.blockedOn=n,!1;t.shift()}return!0}function Mm(e,t,n){Zs(e)&&n.delete(t)}function g0(){qu=!1,Pn!==null&&Zs(Pn)&&(Pn=null),ea!==null&&Zs(ea)&&(ea=null),ta!==null&&Zs(ta)&&(ta=null),mi.forEach(Mm),pi.forEach(Mm)}function Js(e,t){e.blockedOn===t&&(e.blockedOn=null,qu||(qu=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,g0)))}var Fs=null;function _m(e){Fs!==e&&(Fs=e,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Fs===e&&(Fs=null);for(var t=0;t<e.length;t+=3){var n=e[t],a=e[t+1],o=e[t+2];if(typeof a!="function"){if(Bu(a||n)===null)continue;break}var u=Ua(n);u!==null&&(e.splice(t,3),t-=3,Ho(u,{pending:!0,data:o,method:n.method,action:a},a,o))}}))}function vl(e){function t(N){return Js(N,e)}Pn!==null&&Js(Pn,e),ea!==null&&Js(ea,e),ta!==null&&Js(ta,e),mi.forEach(t),pi.forEach(t);for(var n=0;n<na.length;n++){var a=na[n];a.blockedOn===e&&(a.blockedOn=null)}for(;0<na.length&&(n=na[0],n.blockedOn===null);)zm(n),n.blockedOn===null&&na.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var o=n[a],u=n[a+1],m=o[mt]||null;if(typeof u=="function")m||_m(n);else if(m){var v=null;if(u&&u.hasAttribute("formAction")){if(o=u,m=u[mt]||null)v=m.formAction;else if(Bu(o)!==null)continue}else v=m.action;typeof v=="function"?n[a+1]=v:(n.splice(a,3),a-=3),_m(n)}}}function Dm(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(m){return o=m})},focusReset:"manual",scroll:"manual"})}function t(){o!==null&&(o(),o=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,o=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),o!==null&&(o(),o=null)}}}function Vu(e){this._internalRoot=e}Ws.prototype.render=Vu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,a=Mt();wm(n,a,e,t,null,null)},Ws.prototype.unmount=Vu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;wm(e.current,2,null,e,null,null),zs(),t[La]=null}};function Ws(e){this._internalRoot=e}Ws.prototype.unstable_scheduleHydration=function(e){if(e){var t=Gc();e={blockedOn:null,target:e,priority:t};for(var n=0;n<na.length&&t!==0&&t<na[n].priority;n++);na.splice(n,0,e),n===0&&zm(e)}};var Lm=i.version;if(Lm!=="19.2.4")throw Error(r(527,Lm,"19.2.4"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=g(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var y0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Is=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Is.isDisabled&&Is.supportsFiber)try{wl=Is.inject(y0),Et=Is}catch{}}return vi.createRoot=function(e,t){if(!c(e))throw Error(r(299));var n=!1,a="",o=Yd,u=Gd,m=$d;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=jm(e,1,!1,null,null,n,a,null,o,u,m,Dm),e[La]=t.current,Nu(e),new Vu(t)},vi.hydrateRoot=function(e,t,n){if(!c(e))throw Error(r(299));var a=!1,o="",u=Yd,m=Gd,v=$d,N=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(v=n.onRecoverableError),n.formState!==void 0&&(N=n.formState)),t=jm(e,1,!0,t,n??null,a,o,N,u,m,v,Dm),t.context=Em(null),n=t.current,a=Mt(),a=Or(a),o=Vn(a),o.callback=null,Yn(n,o,a),n=a,t.current.lanes=n,Cl(t,n),It(t),e[La]=t.current,Nu(e),new Ws(t)},vi.version="19.2.4",vi}var Qm;function M0(){if(Qm)return $u.exports;Qm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(i){console.error(i)}}return l(),$u.exports=z0(),$u.exports}var _0=M0();/**
|
|
50
|
+
* react-router v7.13.1
|
|
51
|
+
*
|
|
52
|
+
* Copyright (c) Remix Software Inc.
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
+
*
|
|
57
|
+
* @license MIT
|
|
58
|
+
*/var Km="popstate";function Zm(l){return typeof l=="object"&&l!=null&&"pathname"in l&&"search"in l&&"hash"in l&&"state"in l&&"key"in l}function D0(l={}){function i(r,c){var g;let f=(g=c.state)==null?void 0:g.masked,{pathname:h,search:y,hash:p}=f||r.location;return sc("",{pathname:h,search:y,hash:p},c.state&&c.state.usr||null,c.state&&c.state.key||"default",f?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function s(r,c){return typeof c=="string"?c:Ai(c)}return k0(i,s,null,l)}function Ve(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function ln(l,i){if(!l){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function L0(){return Math.random().toString(36).substring(2,10)}function Jm(l,i){return{usr:l.state,key:l.key,idx:i,masked:l.unstable_mask?{pathname:l.pathname,search:l.search,hash:l.hash}:void 0}}function sc(l,i,s=null,r,c){return{pathname:typeof l=="string"?l:l.pathname,search:"",hash:"",...typeof i=="string"?jl(i):i,state:s,key:i&&i.key||r||L0(),unstable_mask:c}}function Ai({pathname:l="/",search:i="",hash:s=""}){return i&&i!=="?"&&(l+=i.charAt(0)==="?"?i:"?"+i),s&&s!=="#"&&(l+=s.charAt(0)==="#"?s:"#"+s),l}function jl(l){let i={};if(l){let s=l.indexOf("#");s>=0&&(i.hash=l.substring(s),l=l.substring(0,s));let r=l.indexOf("?");r>=0&&(i.search=l.substring(r),l=l.substring(0,r)),l&&(i.pathname=l)}return i}function k0(l,i,s,r={}){let{window:c=document.defaultView,v5Compat:f=!1}=r,h=c.history,y="POP",p=null,g=b();g==null&&(g=0,h.replaceState({...h.state,idx:g},""));function b(){return(h.state||{idx:null}).idx}function x(){y="POP";let L=b(),V=L==null?null:L-g;g=L,p&&p({action:y,location:D.location,delta:V})}function T(L,V){y="PUSH";let $=Zm(L)?L:sc(D.location,L,V);g=b()+1;let X=Jm($,g),K=D.createHref($.unstable_mask||$);try{h.pushState(X,"",K)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;c.location.assign(K)}f&&p&&p({action:y,location:D.location,delta:1})}function C(L,V){y="REPLACE";let $=Zm(L)?L:sc(D.location,L,V);g=b();let X=Jm($,g),K=D.createHref($.unstable_mask||$);h.replaceState(X,"",K),f&&p&&p({action:y,location:D.location,delta:0})}function w(L){return U0(L)}let D={get action(){return y},get location(){return l(c,h)},listen(L){if(p)throw new Error("A history only accepts one active listener");return c.addEventListener(Km,x),p=L,()=>{c.removeEventListener(Km,x),p=null}},createHref(L){return i(c,L)},createURL:w,encodeLocation(L){let V=w(L);return{pathname:V.pathname,search:V.search,hash:V.hash}},push:T,replace:C,go(L){return h.go(L)}};return D}function U0(l,i=!1){let s="http://localhost";typeof window<"u"&&(s=window.location.origin!=="null"?window.location.origin:window.location.href),Ve(s,"No window.location.(origin|href) available to create URL");let r=typeof l=="string"?l:Ai(l);return r=r.replace(/ $/,"%20"),!i&&r.startsWith("//")&&(r=s+r),new URL(r,s)}function Bp(l,i,s="/"){return H0(l,i,s,!1)}function H0(l,i,s,r){let c=typeof i=="string"?jl(i):i,f=On(c.pathname||"/",s);if(f==null)return null;let h=qp(l);B0(h);let y=null;for(let p=0;y==null&&p<h.length;++p){let g=F0(f);y=Z0(h[p],g,r)}return y}function qp(l,i=[],s=[],r="",c=!1){let f=(h,y,p=c,g)=>{let b={relativePath:g===void 0?h.path||"":g,caseSensitive:h.caseSensitive===!0,childrenIndex:y,route:h};if(b.relativePath.startsWith("/")){if(!b.relativePath.startsWith(r)&&p)return;Ve(b.relativePath.startsWith(r),`Absolute route path "${b.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),b.relativePath=b.relativePath.slice(r.length)}let x=an([r,b.relativePath]),T=s.concat(b);h.children&&h.children.length>0&&(Ve(h.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${x}".`),qp(h.children,i,T,x,p)),!(h.path==null&&!h.index)&&i.push({path:x,score:Q0(x,h.index),routesMeta:T})};return l.forEach((h,y)=>{var p;if(h.path===""||!((p=h.path)!=null&&p.includes("?")))f(h,y);else for(let g of Vp(h.path))f(h,y,!0,g)}),i}function Vp(l){let i=l.split("/");if(i.length===0)return[];let[s,...r]=i,c=s.endsWith("?"),f=s.replace(/\?$/,"");if(r.length===0)return c?[f,""]:[f];let h=Vp(r.join("/")),y=[];return y.push(...h.map(p=>p===""?f:[f,p].join("/"))),c&&y.push(...h),y.map(p=>l.startsWith("/")&&p===""?"/":p)}function B0(l){l.sort((i,s)=>i.score!==s.score?s.score-i.score:K0(i.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}var q0=/^:[\w-]+$/,V0=3,Y0=2,G0=1,$0=10,X0=-2,Fm=l=>l==="*";function Q0(l,i){let s=l.split("/"),r=s.length;return s.some(Fm)&&(r+=X0),i&&(r+=Y0),s.filter(c=>!Fm(c)).reduce((c,f)=>c+(q0.test(f)?V0:f===""?G0:$0),r)}function K0(l,i){return l.length===i.length&&l.slice(0,-1).every((r,c)=>r===i[c])?l[l.length-1]-i[i.length-1]:0}function Z0(l,i,s=!1){let{routesMeta:r}=l,c={},f="/",h=[];for(let y=0;y<r.length;++y){let p=r[y],g=y===r.length-1,b=f==="/"?i:i.slice(f.length)||"/",x=cr({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},b),T=p.route;if(!x&&g&&s&&!r[r.length-1].route.index&&(x=cr({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},b)),!x)return null;Object.assign(c,x.params),h.push({params:c,pathname:an([f,x.pathname]),pathnameBase:ex(an([f,x.pathnameBase])),route:T}),x.pathnameBase!=="/"&&(f=an([f,x.pathnameBase]))}return h}function cr(l,i){typeof l=="string"&&(l={path:l,caseSensitive:!1,end:!0});let[s,r]=J0(l.path,l.caseSensitive,l.end),c=i.match(s);if(!c)return null;let f=c[0],h=f.replace(/(.)\/+$/,"$1"),y=c.slice(1);return{params:r.reduce((g,{paramName:b,isOptional:x},T)=>{if(b==="*"){let w=y[T]||"";h=f.slice(0,f.length-w.length).replace(/(.)\/+$/,"$1")}const C=y[T];return x&&!C?g[b]=void 0:g[b]=(C||"").replace(/%2F/g,"/"),g},{}),pathname:f,pathnameBase:h,pattern:l}}function J0(l,i=!1,s=!0){ln(l==="*"||!l.endsWith("*")||l.endsWith("/*"),`Route path "${l}" will be treated as if it were "${l.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${l.replace(/\*$/,"/*")}".`);let r=[],c="^"+l.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(h,y,p,g,b)=>{if(r.push({paramName:y,isOptional:p!=null}),p){let x=b.charAt(g+h.length);return x&&x!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return l.endsWith("*")?(r.push({paramName:"*"}),c+=l==="*"||l==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?c+="\\/*$":l!==""&&l!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,i?void 0:"i"),r]}function F0(l){try{return l.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return ln(!1,`The URL path "${l}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),l}}function On(l,i){if(i==="/")return l;if(!l.toLowerCase().startsWith(i.toLowerCase()))return null;let s=i.endsWith("/")?i.length-1:i.length,r=l.charAt(s);return r&&r!=="/"?null:l.slice(s)||"/"}var W0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function I0(l,i="/"){let{pathname:s,search:r="",hash:c=""}=typeof l=="string"?jl(l):l,f;return s?(s=s.replace(/\/\/+/g,"/"),s.startsWith("/")?f=Wm(s.substring(1),"/"):f=Wm(s,i)):f=i,{pathname:f,search:tx(r),hash:nx(c)}}function Wm(l,i){let s=i.replace(/\/+$/,"").split("/");return l.split("/").forEach(c=>{c===".."?s.length>1&&s.pop():c!=="."&&s.push(c)}),s.length>1?s.join("/"):"/"}function Zu(l,i,s,r){return`Cannot include a '${l}' character in a manually specified \`to.${i}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${s}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function P0(l){return l.filter((i,s)=>s===0||i.route.path&&i.route.path.length>0)}function Yp(l){let i=P0(l);return i.map((s,r)=>r===i.length-1?s.pathname:s.pathnameBase)}function mc(l,i,s,r=!1){let c;typeof l=="string"?c=jl(l):(c={...l},Ve(!c.pathname||!c.pathname.includes("?"),Zu("?","pathname","search",c)),Ve(!c.pathname||!c.pathname.includes("#"),Zu("#","pathname","hash",c)),Ve(!c.search||!c.search.includes("#"),Zu("#","search","hash",c)));let f=l===""||c.pathname==="",h=f?"/":c.pathname,y;if(h==null)y=s;else{let x=i.length-1;if(!r&&h.startsWith("..")){let T=h.split("/");for(;T[0]==="..";)T.shift(),x-=1;c.pathname=T.join("/")}y=x>=0?i[x]:"/"}let p=I0(c,y),g=h&&h!=="/"&&h.endsWith("/"),b=(f||h===".")&&s.endsWith("/");return!p.pathname.endsWith("/")&&(g||b)&&(p.pathname+="/"),p}var an=l=>l.join("/").replace(/\/\/+/g,"/"),ex=l=>l.replace(/\/+$/,"").replace(/^\/*/,"/"),tx=l=>!l||l==="?"?"":l.startsWith("?")?l:"?"+l,nx=l=>!l||l==="#"?"":l.startsWith("#")?l:"#"+l,ax=class{constructor(l,i,s,r=!1){this.status=l,this.statusText=i||"",this.internal=r,s instanceof Error?(this.data=s.toString(),this.error=s):this.data=s}};function lx(l){return l!=null&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.internal=="boolean"&&"data"in l}function ix(l){return l.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Gp=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function $p(l,i){let s=l;if(typeof s!="string"||!W0.test(s))return{absoluteURL:void 0,isExternal:!1,to:s};let r=s,c=!1;if(Gp)try{let f=new URL(window.location.href),h=s.startsWith("//")?new URL(f.protocol+s):new URL(s),y=On(h.pathname,i);h.origin===f.origin&&y!=null?s=y+h.search+h.hash:c=!0}catch{ln(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:c,to:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Xp=["POST","PUT","PATCH","DELETE"];new Set(Xp);var sx=["GET",...Xp];new Set(sx);var El=S.createContext(null);El.displayName="DataRouter";var xr=S.createContext(null);xr.displayName="DataRouterState";var rx=S.createContext(!1),Qp=S.createContext({isTransitioning:!1});Qp.displayName="ViewTransition";var ox=S.createContext(new Map);ox.displayName="Fetchers";var ux=S.createContext(null);ux.displayName="Await";var $t=S.createContext(null);$t.displayName="Navigation";var Mi=S.createContext(null);Mi.displayName="Location";var sn=S.createContext({outlet:null,matches:[],isDataRoute:!1});sn.displayName="Route";var pc=S.createContext(null);pc.displayName="RouteError";var Kp="REACT_ROUTER_ERROR",cx="REDIRECT",fx="ROUTE_ERROR_RESPONSE";function dx(l){if(l.startsWith(`${Kp}:${cx}:{`))try{let i=JSON.parse(l.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function hx(l){if(l.startsWith(`${Kp}:${fx}:{`))try{let i=JSON.parse(l.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new ax(i.status,i.statusText,i.data)}catch{}}function mx(l,{relative:i}={}){Ve(_i(),"useHref() may be used only in the context of a <Router> component.");let{basename:s,navigator:r}=S.useContext($t),{hash:c,pathname:f,search:h}=Li(l,{relative:i}),y=f;return s!=="/"&&(y=f==="/"?s:an([s,f])),r.createHref({pathname:y,search:h,hash:c})}function _i(){return S.useContext(Mi)!=null}function ra(){return Ve(_i(),"useLocation() may be used only in the context of a <Router> component."),S.useContext(Mi).location}var Zp="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Jp(l){S.useContext($t).static||S.useLayoutEffect(l)}function Di(){let{isDataRoute:l}=S.useContext(sn);return l?Cx():px()}function px(){Ve(_i(),"useNavigate() may be used only in the context of a <Router> component.");let l=S.useContext(El),{basename:i,navigator:s}=S.useContext($t),{matches:r}=S.useContext(sn),{pathname:c}=ra(),f=JSON.stringify(Yp(r)),h=S.useRef(!1);return Jp(()=>{h.current=!0}),S.useCallback((p,g={})=>{if(ln(h.current,Zp),!h.current)return;if(typeof p=="number"){s.go(p);return}let b=mc(p,JSON.parse(f),c,g.relative==="path");l==null&&i!=="/"&&(b.pathname=b.pathname==="/"?i:an([i,b.pathname])),(g.replace?s.replace:s.push)(b,g.state,g)},[i,s,f,c,l])}S.createContext(null);function Fp(){let{matches:l}=S.useContext(sn),i=l[l.length-1];return i?i.params:{}}function Li(l,{relative:i}={}){let{matches:s}=S.useContext(sn),{pathname:r}=ra(),c=JSON.stringify(Yp(s));return S.useMemo(()=>mc(l,JSON.parse(c),r,i==="path"),[l,c,r,i])}function gx(l,i){return Wp(l,i)}function Wp(l,i,s){var L;Ve(_i(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=S.useContext($t),{matches:c}=S.useContext(sn),f=c[c.length-1],h=f?f.params:{},y=f?f.pathname:"/",p=f?f.pathnameBase:"/",g=f&&f.route;{let V=g&&g.path||"";Pp(y,!g||V.endsWith("*")||V.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${y}" (under <Route path="${V}">) 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.
|
|
59
|
+
|
|
60
|
+
Please change the parent <Route path="${V}"> to <Route path="${V==="/"?"*":`${V}/*`}">.`)}let b=ra(),x;if(i){let V=typeof i=="string"?jl(i):i;Ve(p==="/"||((L=V.pathname)==null?void 0:L.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 "${V.pathname}" was given in the \`location\` prop.`),x=V}else x=b;let T=x.pathname||"/",C=T;if(p!=="/"){let V=p.replace(/^\//,"").split("/");C="/"+T.replace(/^\//,"").split("/").slice(V.length).join("/")}let w=Bp(l,{pathname:C});ln(g||w!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),ln(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let D=Sx(w&&w.map(V=>Object.assign({},V,{params:Object.assign({},h,V.params),pathname:an([p,r.encodeLocation?r.encodeLocation(V.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:V.pathname]),pathnameBase:V.pathnameBase==="/"?p:an([p,r.encodeLocation?r.encodeLocation(V.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:V.pathnameBase])})),c,s);return i&&D?S.createElement(Mi.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...x},navigationType:"POP"}},D):D}function yx(){let l=Tx(),i=lx(l)?`${l.status} ${l.statusText}`:l instanceof Error?l.message:JSON.stringify(l),s=l instanceof Error?l.stack:null,r="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:r},f={padding:"2px 4px",backgroundColor:r},h=null;return console.error("Error handled by React Router default ErrorBoundary:",l),h=S.createElement(S.Fragment,null,S.createElement("p",null,"💿 Hey developer 👋"),S.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",S.createElement("code",{style:f},"ErrorBoundary")," or"," ",S.createElement("code",{style:f},"errorElement")," prop on your route.")),S.createElement(S.Fragment,null,S.createElement("h2",null,"Unexpected Application Error!"),S.createElement("h3",{style:{fontStyle:"italic"}},i),s?S.createElement("pre",{style:c},s):null,h)}var vx=S.createElement(yx,null),Ip=class extends S.Component{constructor(l){super(l),this.state={location:l.location,revalidation:l.revalidation,error:l.error}}static getDerivedStateFromError(l){return{error:l}}static getDerivedStateFromProps(l,i){return i.location!==l.location||i.revalidation!=="idle"&&l.revalidation==="idle"?{error:l.error,location:l.location,revalidation:l.revalidation}:{error:l.error!==void 0?l.error:i.error,location:i.location,revalidation:l.revalidation||i.revalidation}}componentDidCatch(l,i){this.props.onError?this.props.onError(l,i):console.error("React Router caught the following error during render",l)}render(){let l=this.state.error;if(this.context&&typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){const s=hx(l.digest);s&&(l=s)}let i=l!==void 0?S.createElement(sn.Provider,{value:this.props.routeContext},S.createElement(pc.Provider,{value:l,children:this.props.component})):this.props.children;return this.context?S.createElement(xx,{error:l},i):i}};Ip.contextType=rx;var Ju=new WeakMap;function xx({children:l,error:i}){let{basename:s}=S.useContext($t);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let r=dx(i.digest);if(r){let c=Ju.get(i);if(c)throw c;let f=$p(r.location,s);if(Gp&&!Ju.get(i))if(f.isExternal||r.reloadDocument)window.location.href=f.absoluteURL||f.to;else{const h=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(f.to,{replace:r.replace}));throw Ju.set(i,h),h}return S.createElement("meta",{httpEquiv:"refresh",content:`0;url=${f.absoluteURL||f.to}`})}}return l}function bx({routeContext:l,match:i,children:s}){let r=S.useContext(El);return r&&r.static&&r.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=i.route.id),S.createElement(sn.Provider,{value:l},s)}function Sx(l,i=[],s){let r=s==null?void 0:s.state;if(l==null){if(!r)return null;if(r.errors)l=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)l=r.matches;else return null}let c=l,f=r==null?void 0:r.errors;if(f!=null){let b=c.findIndex(x=>x.route.id&&(f==null?void 0:f[x.route.id])!==void 0);Ve(b>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(f).join(",")}`),c=c.slice(0,Math.min(c.length,b+1))}let h=!1,y=-1;if(s&&r){h=r.renderFallback;for(let b=0;b<c.length;b++){let x=c[b];if((x.route.HydrateFallback||x.route.hydrateFallbackElement)&&(y=b),x.route.id){let{loaderData:T,errors:C}=r,w=x.route.loader&&!T.hasOwnProperty(x.route.id)&&(!C||C[x.route.id]===void 0);if(x.route.lazy||w){s.isStatic&&(h=!0),y>=0?c=c.slice(0,y+1):c=[c[0]];break}}}}let p=s==null?void 0:s.onError,g=r&&p?(b,x)=>{var T,C;p(b,{location:r.location,params:((C=(T=r.matches)==null?void 0:T[0])==null?void 0:C.params)??{},unstable_pattern:ix(r.matches),errorInfo:x})}:void 0;return c.reduceRight((b,x,T)=>{let C,w=!1,D=null,L=null;r&&(C=f&&x.route.id?f[x.route.id]:void 0,D=x.route.errorElement||vx,h&&(y<0&&T===0?(Pp("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,L=null):y===T&&(w=!0,L=x.route.hydrateFallbackElement||null)));let V=i.concat(c.slice(0,T+1)),$=()=>{let X;return C?X=D:w?X=L:x.route.Component?X=S.createElement(x.route.Component,null):x.route.element?X=x.route.element:X=b,S.createElement(bx,{match:x,routeContext:{outlet:b,matches:V,isDataRoute:r!=null},children:X})};return r&&(x.route.ErrorBoundary||x.route.errorElement||T===0)?S.createElement(Ip,{location:r.location,revalidation:r.revalidation,component:D,error:C,children:$(),routeContext:{outlet:null,matches:V,isDataRoute:!0},onError:g}):$()},null)}function gc(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Nx(l){let i=S.useContext(El);return Ve(i,gc(l)),i}function jx(l){let i=S.useContext(xr);return Ve(i,gc(l)),i}function Ex(l){let i=S.useContext(sn);return Ve(i,gc(l)),i}function yc(l){let i=Ex(l),s=i.matches[i.matches.length-1];return Ve(s.route.id,`${l} can only be used on routes that contain a unique "id"`),s.route.id}function wx(){return yc("useRouteId")}function Tx(){var r;let l=S.useContext(pc),i=jx("useRouteError"),s=yc("useRouteError");return l!==void 0?l:(r=i.errors)==null?void 0:r[s]}function Cx(){let{router:l}=Nx("useNavigate"),i=yc("useNavigate"),s=S.useRef(!1);return Jp(()=>{s.current=!0}),S.useCallback(async(c,f={})=>{ln(s.current,Zp),s.current&&(typeof c=="number"?await l.navigate(c):await l.navigate(c,{fromRouteId:i,...f}))},[l,i])}var Im={};function Pp(l,i,s){!i&&!Im[l]&&(Im[l]=!0,ln(!1,s))}S.memo(Ax);function Ax({routes:l,future:i,state:s,isStatic:r,onError:c}){return Wp(l,void 0,{state:s,isStatic:r,onError:c})}function Pt(l){Ve(!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 Rx({basename:l="/",children:i=null,location:s,navigationType:r="POP",navigator:c,static:f=!1,unstable_useTransitions:h}){Ve(!_i(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let y=l.replace(/^\/*/,"/"),p=S.useMemo(()=>({basename:y,navigator:c,static:f,unstable_useTransitions:h,future:{}}),[y,c,f,h]);typeof s=="string"&&(s=jl(s));let{pathname:g="/",search:b="",hash:x="",state:T=null,key:C="default",unstable_mask:w}=s,D=S.useMemo(()=>{let L=On(g,y);return L==null?null:{location:{pathname:L,search:b,hash:x,state:T,key:C,unstable_mask:w},navigationType:r}},[y,g,b,x,T,C,r,w]);return ln(D!=null,`<Router basename="${y}"> is not able to match the URL "${g}${b}${x}" because it does not start with the basename, so the <Router> won't render anything.`),D==null?null:S.createElement($t.Provider,{value:p},S.createElement(Mi.Provider,{children:i,value:D}))}function Ox({children:l,location:i}){return gx(rc(l),i)}function rc(l,i=[]){let s=[];return S.Children.forEach(l,(r,c)=>{if(!S.isValidElement(r))return;let f=[...i,c];if(r.type===S.Fragment){s.push.apply(s,rc(r.props.children,f));return}Ve(r.type===Pt,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Ve(!r.props.index||!r.props.children,"An index route cannot have child routes.");let h={id:r.props.id||f.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(h.children=rc(r.props.children,f)),s.push(h)}),s}var ir="get",sr="application/x-www-form-urlencoded";function br(l){return typeof HTMLElement<"u"&&l instanceof HTMLElement}function zx(l){return br(l)&&l.tagName.toLowerCase()==="button"}function Mx(l){return br(l)&&l.tagName.toLowerCase()==="form"}function _x(l){return br(l)&&l.tagName.toLowerCase()==="input"}function Dx(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}function Lx(l,i){return l.button===0&&(!i||i==="_self")&&!Dx(l)}var Ps=null;function kx(){if(Ps===null)try{new FormData(document.createElement("form"),0),Ps=!1}catch{Ps=!0}return Ps}var Ux=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Fu(l){return l!=null&&!Ux.has(l)?(ln(!1,`"${l}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${sr}"`),null):l}function Hx(l,i){let s,r,c,f,h;if(Mx(l)){let y=l.getAttribute("action");r=y?On(y,i):null,s=l.getAttribute("method")||ir,c=Fu(l.getAttribute("enctype"))||sr,f=new FormData(l)}else if(zx(l)||_x(l)&&(l.type==="submit"||l.type==="image")){let y=l.form;if(y==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=l.getAttribute("formaction")||y.getAttribute("action");if(r=p?On(p,i):null,s=l.getAttribute("formmethod")||y.getAttribute("method")||ir,c=Fu(l.getAttribute("formenctype"))||Fu(y.getAttribute("enctype"))||sr,f=new FormData(y,l),!kx()){let{name:g,type:b,value:x}=l;if(b==="image"){let T=g?`${g}.`:"";f.append(`${T}x`,"0"),f.append(`${T}y`,"0")}else g&&f.append(g,x)}}else{if(br(l))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');s=ir,r=null,c=sr,h=l}return f&&c==="text/plain"&&(h=f,f=void 0),{action:r,method:s.toLowerCase(),encType:c,formData:f,body:h}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function vc(l,i){if(l===!1||l===null||typeof l>"u")throw new Error(i)}function Bx(l,i,s,r){let c=typeof l=="string"?new URL(l,typeof window>"u"?"server://singlefetch/":window.location.origin):l;return s?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${r}`:c.pathname=`${c.pathname}.${r}`:c.pathname==="/"?c.pathname=`_root.${r}`:i&&On(c.pathname,i)==="/"?c.pathname=`${i.replace(/\/$/,"")}/_root.${r}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${r}`,c}async function qx(l,i){if(l.id in i)return i[l.id];try{let s=await import(l.module);return i[l.id]=s,s}catch(s){return console.error(`Error loading route module \`${l.module}\`, reloading page...`),console.error(s),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Vx(l){return l==null?!1:l.href==null?l.rel==="preload"&&typeof l.imageSrcSet=="string"&&typeof l.imageSizes=="string":typeof l.rel=="string"&&typeof l.href=="string"}async function Yx(l,i,s){let r=await Promise.all(l.map(async c=>{let f=i.routes[c.route.id];if(f){let h=await qx(f,s);return h.links?h.links():[]}return[]}));return Qx(r.flat(1).filter(Vx).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Pm(l,i,s,r,c,f){let h=(p,g)=>s[g]?p.route.id!==s[g].route.id:!0,y=(p,g)=>{var b;return s[g].pathname!==p.pathname||((b=s[g].route.path)==null?void 0:b.endsWith("*"))&&s[g].params["*"]!==p.params["*"]};return f==="assets"?i.filter((p,g)=>h(p,g)||y(p,g)):f==="data"?i.filter((p,g)=>{var x;let b=r.routes[p.route.id];if(!b||!b.hasLoader)return!1;if(h(p,g)||y(p,g))return!0;if(p.route.shouldRevalidate){let T=p.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((x=s[0])==null?void 0:x.params)||{},nextUrl:new URL(l,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof T=="boolean")return T}return!0}):[]}function Gx(l,i,{includeHydrateFallback:s}={}){return $x(l.map(r=>{let c=i.routes[r.route.id];if(!c)return[];let f=[c.module];return c.clientActionModule&&(f=f.concat(c.clientActionModule)),c.clientLoaderModule&&(f=f.concat(c.clientLoaderModule)),s&&c.hydrateFallbackModule&&(f=f.concat(c.hydrateFallbackModule)),c.imports&&(f=f.concat(c.imports)),f}).flat(1))}function $x(l){return[...new Set(l)]}function Xx(l){let i={},s=Object.keys(l).sort();for(let r of s)i[r]=l[r];return i}function Qx(l,i){let s=new Set;return new Set(i),l.reduce((r,c)=>{let f=JSON.stringify(Xx(c));return s.has(f)||(s.add(f),r.push({key:f,link:c})),r},[])}function eg(){let l=S.useContext(El);return vc(l,"You must render this element inside a <DataRouterContext.Provider> element"),l}function Kx(){let l=S.useContext(xr);return vc(l,"You must render this element inside a <DataRouterStateContext.Provider> element"),l}var xc=S.createContext(void 0);xc.displayName="FrameworkContext";function tg(){let l=S.useContext(xc);return vc(l,"You must render this element inside a <HydratedRouter> element"),l}function Zx(l,i){let s=S.useContext(xc),[r,c]=S.useState(!1),[f,h]=S.useState(!1),{onFocus:y,onBlur:p,onMouseEnter:g,onMouseLeave:b,onTouchStart:x}=i,T=S.useRef(null);S.useEffect(()=>{if(l==="render"&&h(!0),l==="viewport"){let D=V=>{V.forEach($=>{h($.isIntersecting)})},L=new IntersectionObserver(D,{threshold:.5});return T.current&&L.observe(T.current),()=>{L.disconnect()}}},[l]),S.useEffect(()=>{if(r){let D=setTimeout(()=>{h(!0)},100);return()=>{clearTimeout(D)}}},[r]);let C=()=>{c(!0)},w=()=>{c(!1),h(!1)};return s?l!=="intent"?[f,T,{}]:[f,T,{onFocus:xi(y,C),onBlur:xi(p,w),onMouseEnter:xi(g,C),onMouseLeave:xi(b,w),onTouchStart:xi(x,C)}]:[!1,T,{}]}function xi(l,i){return s=>{l&&l(s),s.defaultPrevented||i(s)}}function Jx({page:l,...i}){let{router:s}=eg(),r=S.useMemo(()=>Bp(s.routes,l,s.basename),[s.routes,l,s.basename]);return r?S.createElement(Wx,{page:l,matches:r,...i}):null}function Fx(l){let{manifest:i,routeModules:s}=tg(),[r,c]=S.useState([]);return S.useEffect(()=>{let f=!1;return Yx(l,i,s).then(h=>{f||c(h)}),()=>{f=!0}},[l,i,s]),r}function Wx({page:l,matches:i,...s}){let r=ra(),{future:c,manifest:f,routeModules:h}=tg(),{basename:y}=eg(),{loaderData:p,matches:g}=Kx(),b=S.useMemo(()=>Pm(l,i,g,f,r,"data"),[l,i,g,f,r]),x=S.useMemo(()=>Pm(l,i,g,f,r,"assets"),[l,i,g,f,r]),T=S.useMemo(()=>{if(l===r.pathname+r.search+r.hash)return[];let D=new Set,L=!1;if(i.forEach($=>{var K;let X=f.routes[$.route.id];!X||!X.hasLoader||(!b.some(P=>P.route.id===$.route.id)&&$.route.id in p&&((K=h[$.route.id])!=null&&K.shouldRevalidate)||X.hasClientLoader?L=!0:D.add($.route.id))}),D.size===0)return[];let V=Bx(l,y,c.unstable_trailingSlashAwareDataRequests,"data");return L&&D.size>0&&V.searchParams.set("_routes",i.filter($=>D.has($.route.id)).map($=>$.route.id).join(",")),[V.pathname+V.search]},[y,c.unstable_trailingSlashAwareDataRequests,p,r,f,b,i,l,h]),C=S.useMemo(()=>Gx(x,f),[x,f]),w=Fx(x);return S.createElement(S.Fragment,null,T.map(D=>S.createElement("link",{key:D,rel:"prefetch",as:"fetch",href:D,...s})),C.map(D=>S.createElement("link",{key:D,rel:"modulepreload",href:D,...s})),w.map(({key:D,link:L})=>S.createElement("link",{key:D,nonce:s.nonce,...L,crossOrigin:L.crossOrigin??s.crossOrigin})))}function Ix(...l){return i=>{l.forEach(s=>{typeof s=="function"?s(i):s!=null&&(s.current=i)})}}var Px=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Px&&(window.__reactRouterVersion="7.13.1")}catch{}function eb({basename:l,children:i,unstable_useTransitions:s,window:r}){let c=S.useRef();c.current==null&&(c.current=D0({window:r,v5Compat:!0}));let f=c.current,[h,y]=S.useState({action:f.action,location:f.location}),p=S.useCallback(g=>{s===!1?y(g):S.startTransition(()=>y(g))},[s]);return S.useLayoutEffect(()=>f.listen(p),[f,p]),S.createElement(Rx,{basename:l,children:i,location:h.location,navigationType:h.action,navigator:f,unstable_useTransitions:s})}var ng=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,bc=S.forwardRef(function({onClick:i,discover:s="render",prefetch:r="none",relative:c,reloadDocument:f,replace:h,unstable_mask:y,state:p,target:g,to:b,preventScrollReset:x,viewTransition:T,unstable_defaultShouldRevalidate:C,...w},D){let{basename:L,navigator:V,unstable_useTransitions:$}=S.useContext($t),X=typeof b=="string"&&ng.test(b),K=$p(b,L);b=K.to;let P=mx(b,{relative:c}),fe=ra(),Q=null;if(y){let J=mc(y,[],fe.unstable_mask?fe.unstable_mask.pathname:"/",!0);L!=="/"&&(J.pathname=J.pathname==="/"?L:an([L,J.pathname])),Q=V.createHref(J)}let[k,ie,W]=Zx(r,w),Oe=ab(b,{replace:h,unstable_mask:y,state:p,target:g,preventScrollReset:x,relative:c,viewTransition:T,unstable_defaultShouldRevalidate:C,unstable_useTransitions:$});function oe(J){i&&i(J),J.defaultPrevented||Oe(J)}let F=!(K.isExternal||f),I=S.createElement("a",{...w,...W,href:(F?Q:void 0)||K.absoluteURL||P,onClick:F?oe:i,ref:Ix(D,ie),target:g,"data-discover":!X&&s==="render"?"true":void 0});return k&&!X?S.createElement(S.Fragment,null,I,S.createElement(Jx,{page:P})):I});bc.displayName="Link";var ag=S.forwardRef(function({"aria-current":i="page",caseSensitive:s=!1,className:r="",end:c=!1,style:f,to:h,viewTransition:y,children:p,...g},b){let x=Li(h,{relative:g.relative}),T=ra(),C=S.useContext(xr),{navigator:w,basename:D}=S.useContext($t),L=C!=null&&ob(x)&&y===!0,V=w.encodeLocation?w.encodeLocation(x).pathname:x.pathname,$=T.pathname,X=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;s||($=$.toLowerCase(),X=X?X.toLowerCase():null,V=V.toLowerCase()),X&&D&&(X=On(X,D)||X);const K=V!=="/"&&V.endsWith("/")?V.length-1:V.length;let P=$===V||!c&&$.startsWith(V)&&$.charAt(K)==="/",fe=X!=null&&(X===V||!c&&X.startsWith(V)&&X.charAt(V.length)==="/"),Q={isActive:P,isPending:fe,isTransitioning:L},k=P?i:void 0,ie;typeof r=="function"?ie=r(Q):ie=[r,P?"active":null,fe?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let W=typeof f=="function"?f(Q):f;return S.createElement(bc,{...g,"aria-current":k,className:ie,ref:b,style:W,to:h,viewTransition:y},typeof p=="function"?p(Q):p)});ag.displayName="NavLink";var tb=S.forwardRef(({discover:l="render",fetcherKey:i,navigate:s,reloadDocument:r,replace:c,state:f,method:h=ir,action:y,onSubmit:p,relative:g,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:T,...C},w)=>{let{unstable_useTransitions:D}=S.useContext($t),L=sb(),V=rb(y,{relative:g}),$=h.toLowerCase()==="get"?"get":"post",X=typeof y=="string"&&ng.test(y),K=P=>{if(p&&p(P),P.defaultPrevented)return;P.preventDefault();let fe=P.nativeEvent.submitter,Q=(fe==null?void 0:fe.getAttribute("formmethod"))||h,k=()=>L(fe||P.currentTarget,{fetcherKey:i,method:Q,navigate:s,replace:c,state:f,relative:g,preventScrollReset:b,viewTransition:x,unstable_defaultShouldRevalidate:T});D&&s!==!1?S.startTransition(()=>k()):k()};return S.createElement("form",{ref:w,method:$,action:V,onSubmit:r?p:K,...C,"data-discover":!X&&l==="render"?"true":void 0})});tb.displayName="Form";function nb(l){return`${l} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function lg(l){let i=S.useContext(El);return Ve(i,nb(l)),i}function ab(l,{target:i,replace:s,unstable_mask:r,state:c,preventScrollReset:f,relative:h,viewTransition:y,unstable_defaultShouldRevalidate:p,unstable_useTransitions:g}={}){let b=Di(),x=ra(),T=Li(l,{relative:h});return S.useCallback(C=>{if(Lx(C,i)){C.preventDefault();let w=s!==void 0?s:Ai(x)===Ai(T),D=()=>b(l,{replace:w,unstable_mask:r,state:c,preventScrollReset:f,relative:h,viewTransition:y,unstable_defaultShouldRevalidate:p});g?S.startTransition(()=>D()):D()}},[x,b,T,s,r,c,i,l,f,h,y,p,g])}var lb=0,ib=()=>`__${String(++lb)}__`;function sb(){let{router:l}=lg("useSubmit"),{basename:i}=S.useContext($t),s=wx(),r=l.fetch,c=l.navigate;return S.useCallback(async(f,h={})=>{let{action:y,method:p,encType:g,formData:b,body:x}=Hx(f,i);if(h.navigate===!1){let T=h.fetcherKey||ib();await r(T,s,h.action||y,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:x,formMethod:h.method||p,formEncType:h.encType||g,flushSync:h.flushSync})}else await c(h.action||y,{unstable_defaultShouldRevalidate:h.unstable_defaultShouldRevalidate,preventScrollReset:h.preventScrollReset,formData:b,body:x,formMethod:h.method||p,formEncType:h.encType||g,replace:h.replace,state:h.state,fromRouteId:s,flushSync:h.flushSync,viewTransition:h.viewTransition})},[r,c,i,s])}function rb(l,{relative:i}={}){let{basename:s}=S.useContext($t),r=S.useContext(sn);Ve(r,"useFormAction must be used inside a RouteContext");let[c]=r.matches.slice(-1),f={...Li(l||".",{relative:i})},h=ra();if(l==null){f.search=h.search;let y=new URLSearchParams(f.search),p=y.getAll("index");if(p.some(b=>b==="")){y.delete("index"),p.filter(x=>x).forEach(x=>y.append("index",x));let b=y.toString();f.search=b?`?${b}`:""}}return(!l||l===".")&&c.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),s!=="/"&&(f.pathname=f.pathname==="/"?s:an([s,f.pathname])),Ai(f)}function ob(l,{relative:i}={}){let s=S.useContext(Qp);Ve(s!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=lg("useViewTransitionState"),c=Li(l,{relative:i});if(!s.isTransitioning)return!1;let f=On(s.currentLocation.pathname,r)||s.currentLocation.pathname,h=On(s.nextLocation.pathname,r)||s.nextLocation.pathname;return cr(c.pathname,h)!=null||cr(c.pathname,f)!=null}const he=l=>typeof l=="string",bi=()=>{let l,i;const s=new Promise((r,c)=>{l=r,i=c});return s.resolve=l,s.reject=i,s},ep=l=>l==null?"":""+l,ub=(l,i,s)=>{l.forEach(r=>{i[r]&&(s[r]=i[r])})},cb=/###/g,tp=l=>l&&l.indexOf("###")>-1?l.replace(cb,"."):l,np=l=>!l||he(l),Ei=(l,i,s)=>{const r=he(i)?i.split("."):i;let c=0;for(;c<r.length-1;){if(np(l))return{};const f=tp(r[c]);!l[f]&&s&&(l[f]=new s),Object.prototype.hasOwnProperty.call(l,f)?l=l[f]:l={},++c}return np(l)?{}:{obj:l,k:tp(r[c])}},ap=(l,i,s)=>{const{obj:r,k:c}=Ei(l,i,Object);if(r!==void 0||i.length===1){r[c]=s;return}let f=i[i.length-1],h=i.slice(0,i.length-1),y=Ei(l,h,Object);for(;y.obj===void 0&&h.length;)f=`${h[h.length-1]}.${f}`,h=h.slice(0,h.length-1),y=Ei(l,h,Object),y!=null&&y.obj&&typeof y.obj[`${y.k}.${f}`]<"u"&&(y.obj=void 0);y.obj[`${y.k}.${f}`]=s},fb=(l,i,s,r)=>{const{obj:c,k:f}=Ei(l,i,Object);c[f]=c[f]||[],c[f].push(s)},fr=(l,i)=>{const{obj:s,k:r}=Ei(l,i);if(s&&Object.prototype.hasOwnProperty.call(s,r))return s[r]},db=(l,i,s)=>{const r=fr(l,s);return r!==void 0?r:fr(i,s)},ig=(l,i,s)=>{for(const r in i)r!=="__proto__"&&r!=="constructor"&&(r in l?he(l[r])||l[r]instanceof String||he(i[r])||i[r]instanceof String?s&&(l[r]=i[r]):ig(l[r],i[r],s):l[r]=i[r]);return l},Ca=l=>l.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&");var hb={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};const mb=l=>he(l)?l.replace(/[&<>"'\/]/g,i=>hb[i]):l;class pb{constructor(i){this.capacity=i,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(i){const s=this.regExpMap.get(i);if(s!==void 0)return s;const r=new RegExp(i);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(i,r),this.regExpQueue.push(i),r}}const gb=[" ",",","?","!",";"],yb=new pb(20),vb=(l,i,s)=>{i=i||"",s=s||"";const r=gb.filter(h=>i.indexOf(h)<0&&s.indexOf(h)<0);if(r.length===0)return!0;const c=yb.getRegExp(`(${r.map(h=>h==="?"?"\\?":h).join("|")})`);let f=!c.test(l);if(!f){const h=l.indexOf(s);h>0&&!c.test(l.substring(0,h))&&(f=!0)}return f},oc=(l,i,s=".")=>{if(!l)return;if(l[i])return Object.prototype.hasOwnProperty.call(l,i)?l[i]:void 0;const r=i.split(s);let c=l;for(let f=0;f<r.length;){if(!c||typeof c!="object")return;let h,y="";for(let p=f;p<r.length;++p)if(p!==f&&(y+=s),y+=r[p],h=c[y],h!==void 0){if(["string","number","boolean"].indexOf(typeof h)>-1&&p<r.length-1)continue;f+=p-f+1;break}c=h}return c},Ri=l=>l==null?void 0:l.replace("_","-"),xb={type:"logger",log(l){this.output("log",l)},warn(l){this.output("warn",l)},error(l){this.output("error",l)},output(l,i){var s,r;(r=(s=console==null?void 0:console[l])==null?void 0:s.apply)==null||r.call(s,console,i)}};class dr{constructor(i,s={}){this.init(i,s)}init(i,s={}){this.prefix=s.prefix||"i18next:",this.logger=i||xb,this.options=s,this.debug=s.debug}log(...i){return this.forward(i,"log","",!0)}warn(...i){return this.forward(i,"warn","",!0)}error(...i){return this.forward(i,"error","")}deprecate(...i){return this.forward(i,"warn","WARNING DEPRECATED: ",!0)}forward(i,s,r,c){return c&&!this.debug?null:(he(i[0])&&(i[0]=`${r}${this.prefix} ${i[0]}`),this.logger[s](i))}create(i){return new dr(this.logger,{prefix:`${this.prefix}:${i}:`,...this.options})}clone(i){return i=i||this.options,i.prefix=i.prefix||this.prefix,new dr(this.logger,i)}}var nn=new dr;class Sr{constructor(){this.observers={}}on(i,s){return i.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const c=this.observers[r].get(s)||0;this.observers[r].set(s,c+1)}),this}off(i,s){if(this.observers[i]){if(!s){delete this.observers[i];return}this.observers[i].delete(s)}}emit(i,...s){this.observers[i]&&Array.from(this.observers[i].entries()).forEach(([c,f])=>{for(let h=0;h<f;h++)c(...s)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([c,f])=>{for(let h=0;h<f;h++)c.apply(c,[i,...s])})}}class lp extends Sr{constructor(i,s={ns:["translation"],defaultNS:"translation"}){super(),this.data=i||{},this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(i){this.options.ns.indexOf(i)<0&&this.options.ns.push(i)}removeNamespaces(i){const s=this.options.ns.indexOf(i);s>-1&&this.options.ns.splice(s,1)}getResource(i,s,r,c={}){var g,b;const f=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,h=c.ignoreJSONStructure!==void 0?c.ignoreJSONStructure:this.options.ignoreJSONStructure;let y;i.indexOf(".")>-1?y=i.split("."):(y=[i,s],r&&(Array.isArray(r)?y.push(...r):he(r)&&f?y.push(...r.split(f)):y.push(r)));const p=fr(this.data,y);return!p&&!s&&!r&&i.indexOf(".")>-1&&(i=y[0],s=y[1],r=y.slice(2).join(".")),p||!h||!he(r)?p:oc((b=(g=this.data)==null?void 0:g[i])==null?void 0:b[s],r,f)}addResource(i,s,r,c,f={silent:!1}){const h=f.keySeparator!==void 0?f.keySeparator:this.options.keySeparator;let y=[i,s];r&&(y=y.concat(h?r.split(h):r)),i.indexOf(".")>-1&&(y=i.split("."),c=s,s=y[1]),this.addNamespaces(s),ap(this.data,y,c),f.silent||this.emit("added",i,s,r,c)}addResources(i,s,r,c={silent:!1}){for(const f in r)(he(r[f])||Array.isArray(r[f]))&&this.addResource(i,s,f,r[f],{silent:!0});c.silent||this.emit("added",i,s,r)}addResourceBundle(i,s,r,c,f,h={silent:!1,skipCopy:!1}){let y=[i,s];i.indexOf(".")>-1&&(y=i.split("."),c=r,r=s,s=y[1]),this.addNamespaces(s);let p=fr(this.data,y)||{};h.skipCopy||(r=JSON.parse(JSON.stringify(r))),c?ig(p,r,f):p={...p,...r},ap(this.data,y,p),h.silent||this.emit("added",i,s,r)}removeResourceBundle(i,s){this.hasResourceBundle(i,s)&&delete this.data[i][s],this.removeNamespaces(s),this.emit("removed",i,s)}hasResourceBundle(i,s){return this.getResource(i,s)!==void 0}getResourceBundle(i,s){return s||(s=this.options.defaultNS),this.getResource(i,s)}getDataByLanguage(i){return this.data[i]}hasLanguageSomeTranslations(i){const s=this.getDataByLanguage(i);return!!(s&&Object.keys(s)||[]).find(c=>s[c]&&Object.keys(s[c]).length>0)}toJSON(){return this.data}}var sg={processors:{},addPostProcessor(l){this.processors[l.name]=l},handle(l,i,s,r,c){return l.forEach(f=>{var h;i=((h=this.processors[f])==null?void 0:h.process(i,s,r,c))??i}),i}};const rg=Symbol("i18next/PATH_KEY");function bb(){const l=[],i=Object.create(null);let s;return i.get=(r,c)=>{var f;return(f=s==null?void 0:s.revoke)==null||f.call(s),c===rg?l:(l.push(c),s=Proxy.revocable(r,i),s.proxy)},Proxy.revocable(Object.create(null),i).proxy}function hr(l,i){const{[rg]:s}=l(bb());return s.join((i==null?void 0:i.keySeparator)??".")}const ip={},Wu=l=>!he(l)&&typeof l!="boolean"&&typeof l!="number";class mr extends Sr{constructor(i,s={}){super(),ub(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,this),this.options=s,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=nn.create("translator")}changeLanguage(i){i&&(this.language=i)}exists(i,s={interpolation:{}}){const r={...s};if(i==null)return!1;const c=this.resolve(i,r);if((c==null?void 0:c.res)===void 0)return!1;const f=Wu(c.res);return!(r.returnObjects===!1&&f)}extractFromKey(i,s){let r=s.nsSeparator!==void 0?s.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const c=s.keySeparator!==void 0?s.keySeparator:this.options.keySeparator;let f=s.ns||this.options.defaultNS||[];const h=r&&i.indexOf(r)>-1,y=!this.options.userDefinedKeySeparator&&!s.keySeparator&&!this.options.userDefinedNsSeparator&&!s.nsSeparator&&!vb(i,r,c);if(h&&!y){const p=i.match(this.interpolator.nestingRegexp);if(p&&p.length>0)return{key:i,namespaces:he(f)?[f]:f};const g=i.split(r);(r!==c||r===c&&this.options.ns.indexOf(g[0])>-1)&&(f=g.shift()),i=g.join(c)}return{key:i,namespaces:he(f)?[f]:f}}translate(i,s,r){let c=typeof s=="object"?{...s}:s;if(typeof c!="object"&&this.options.overloadTranslationOptionHandler&&(c=this.options.overloadTranslationOptionHandler(arguments)),typeof c=="object"&&(c={...c}),c||(c={}),i==null)return"";typeof i=="function"&&(i=hr(i,{...this.options,...c})),Array.isArray(i)||(i=[String(i)]);const f=c.returnDetails!==void 0?c.returnDetails:this.options.returnDetails,h=c.keySeparator!==void 0?c.keySeparator:this.options.keySeparator,{key:y,namespaces:p}=this.extractFromKey(i[i.length-1],c),g=p[p.length-1];let b=c.nsSeparator!==void 0?c.nsSeparator:this.options.nsSeparator;b===void 0&&(b=":");const x=c.lng||this.language,T=c.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((x==null?void 0:x.toLowerCase())==="cimode")return T?f?{res:`${g}${b}${y}`,usedKey:y,exactUsedKey:y,usedLng:x,usedNS:g,usedParams:this.getUsedParamsDetails(c)}:`${g}${b}${y}`:f?{res:y,usedKey:y,exactUsedKey:y,usedLng:x,usedNS:g,usedParams:this.getUsedParamsDetails(c)}:y;const C=this.resolve(i,c);let w=C==null?void 0:C.res;const D=(C==null?void 0:C.usedKey)||y,L=(C==null?void 0:C.exactUsedKey)||y,V=["[object Number]","[object Function]","[object RegExp]"],$=c.joinArrays!==void 0?c.joinArrays:this.options.joinArrays,X=!this.i18nFormat||this.i18nFormat.handleAsObject,K=c.count!==void 0&&!he(c.count),P=mr.hasDefaultValue(c),fe=K?this.pluralResolver.getSuffix(x,c.count,c):"",Q=c.ordinal&&K?this.pluralResolver.getSuffix(x,c.count,{ordinal:!1}):"",k=K&&!c.ordinal&&c.count===0,ie=k&&c[`defaultValue${this.options.pluralSeparator}zero`]||c[`defaultValue${fe}`]||c[`defaultValue${Q}`]||c.defaultValue;let W=w;X&&!w&&P&&(W=ie);const Oe=Wu(W),oe=Object.prototype.toString.apply(W);if(X&&W&&Oe&&V.indexOf(oe)<0&&!(he($)&&Array.isArray(W))){if(!c.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const F=this.options.returnedObjectHandler?this.options.returnedObjectHandler(D,W,{...c,ns:p}):`key '${y} (${this.language})' returned an object instead of string.`;return f?(C.res=F,C.usedParams=this.getUsedParamsDetails(c),C):F}if(h){const F=Array.isArray(W),I=F?[]:{},J=F?L:D;for(const R in W)if(Object.prototype.hasOwnProperty.call(W,R)){const Y=`${J}${h}${R}`;P&&!w?I[R]=this.translate(Y,{...c,defaultValue:Wu(ie)?ie[R]:void 0,joinArrays:!1,ns:p}):I[R]=this.translate(Y,{...c,joinArrays:!1,ns:p}),I[R]===Y&&(I[R]=W[R])}w=I}}else if(X&&he($)&&Array.isArray(w))w=w.join($),w&&(w=this.extendTranslation(w,i,c,r));else{let F=!1,I=!1;!this.isValidLookup(w)&&P&&(F=!0,w=ie),this.isValidLookup(w)||(I=!0,w=y);const R=(c.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&I?void 0:w,Y=P&&ie!==w&&this.options.updateMissing;if(I||F||Y){if(this.logger.log(Y?"updateKey":"missingKey",x,g,y,Y?ie:w),h){const j=this.resolve(y,{...c,keySeparator:!1});j&&j.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let te=[];const pe=this.languageUtils.getFallbackCodes(this.options.fallbackLng,c.lng||this.language);if(this.options.saveMissingTo==="fallback"&&pe&&pe[0])for(let j=0;j<pe.length;j++)te.push(pe[j]);else this.options.saveMissingTo==="all"?te=this.languageUtils.toResolveHierarchy(c.lng||this.language):te.push(c.lng||this.language);const G=(j,H,Z)=>{var ae;const ee=P&&Z!==w?Z:R;this.options.missingKeyHandler?this.options.missingKeyHandler(j,g,H,ee,Y,c):(ae=this.backendConnector)!=null&&ae.saveMissing&&this.backendConnector.saveMissing(j,g,H,ee,Y,c),this.emit("missingKey",j,g,H,w)};this.options.saveMissing&&(this.options.saveMissingPlurals&&K?te.forEach(j=>{const H=this.pluralResolver.getSuffixes(j,c);k&&c[`defaultValue${this.options.pluralSeparator}zero`]&&H.indexOf(`${this.options.pluralSeparator}zero`)<0&&H.push(`${this.options.pluralSeparator}zero`),H.forEach(Z=>{G([j],y+Z,c[`defaultValue${Z}`]||ie)})}):G(te,y,ie))}w=this.extendTranslation(w,i,c,C,r),I&&w===y&&this.options.appendNamespaceToMissingKey&&(w=`${g}${b}${y}`),(I||F)&&this.options.parseMissingKeyHandler&&(w=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${g}${b}${y}`:y,F?w:void 0,c))}return f?(C.res=w,C.usedParams=this.getUsedParamsDetails(c),C):w}extendTranslation(i,s,r,c,f){var p,g;if((p=this.i18nFormat)!=null&&p.parse)i=this.i18nFormat.parse(i,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||c.usedLng,c.usedNS,c.usedKey,{resolved:c});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const b=he(i)&&(((g=r==null?void 0:r.interpolation)==null?void 0:g.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let x;if(b){const C=i.match(this.interpolator.nestingRegexp);x=C&&C.length}let T=r.replace&&!he(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(T={...this.options.interpolation.defaultVariables,...T}),i=this.interpolator.interpolate(i,T,r.lng||this.language||c.usedLng,r),b){const C=i.match(this.interpolator.nestingRegexp),w=C&&C.length;x<w&&(r.nest=!1)}!r.lng&&c&&c.res&&(r.lng=this.language||c.usedLng),r.nest!==!1&&(i=this.interpolator.nest(i,(...C)=>(f==null?void 0:f[0])===C[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${C[0]} in key: ${s[0]}`),null):this.translate(...C,s),r)),r.interpolation&&this.interpolator.reset()}const h=r.postProcess||this.options.postProcess,y=he(h)?[h]:h;return i!=null&&(y!=null&&y.length)&&r.applyPostProcessor!==!1&&(i=sg.handle(y,i,s,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...c,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),i}resolve(i,s={}){let r,c,f,h,y;return he(i)&&(i=[i]),i.forEach(p=>{if(this.isValidLookup(r))return;const g=this.extractFromKey(p,s),b=g.key;c=b;let x=g.namespaces;this.options.fallbackNS&&(x=x.concat(this.options.fallbackNS));const T=s.count!==void 0&&!he(s.count),C=T&&!s.ordinal&&s.count===0,w=s.context!==void 0&&(he(s.context)||typeof s.context=="number")&&s.context!=="",D=s.lngs?s.lngs:this.languageUtils.toResolveHierarchy(s.lng||this.language,s.fallbackLng);x.forEach(L=>{var V,$;this.isValidLookup(r)||(y=L,!ip[`${D[0]}-${L}`]&&((V=this.utils)!=null&&V.hasLoadedNamespace)&&!(($=this.utils)!=null&&$.hasLoadedNamespace(y))&&(ip[`${D[0]}-${L}`]=!0,this.logger.warn(`key "${c}" for languages "${D.join(", ")}" won't get resolved as namespace "${y}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),D.forEach(X=>{var fe;if(this.isValidLookup(r))return;h=X;const K=[b];if((fe=this.i18nFormat)!=null&&fe.addLookupKeys)this.i18nFormat.addLookupKeys(K,b,X,L,s);else{let Q;T&&(Q=this.pluralResolver.getSuffix(X,s.count,s));const k=`${this.options.pluralSeparator}zero`,ie=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(T&&(s.ordinal&&Q.indexOf(ie)===0&&K.push(b+Q.replace(ie,this.options.pluralSeparator)),K.push(b+Q),C&&K.push(b+k)),w){const W=`${b}${this.options.contextSeparator||"_"}${s.context}`;K.push(W),T&&(s.ordinal&&Q.indexOf(ie)===0&&K.push(W+Q.replace(ie,this.options.pluralSeparator)),K.push(W+Q),C&&K.push(W+k))}}let P;for(;P=K.pop();)this.isValidLookup(r)||(f=P,r=this.getResource(X,L,P,s))}))})}),{res:r,usedKey:c,exactUsedKey:f,usedLng:h,usedNS:y}}isValidLookup(i){return i!==void 0&&!(!this.options.returnNull&&i===null)&&!(!this.options.returnEmptyString&&i==="")}getResource(i,s,r,c={}){var f;return(f=this.i18nFormat)!=null&&f.getResource?this.i18nFormat.getResource(i,s,r,c):this.resourceStore.getResource(i,s,r,c)}getUsedParamsDetails(i={}){const s=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=i.replace&&!he(i.replace);let c=r?i.replace:i;if(r&&typeof i.count<"u"&&(c.count=i.count),this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),!r){c={...c};for(const f of s)delete c[f]}return c}static hasDefaultValue(i){const s="defaultValue";for(const r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&s===r.substring(0,s.length)&&i[r]!==void 0)return!0;return!1}}class sp{constructor(i){this.options=i,this.supportedLngs=this.options.supportedLngs||!1,this.logger=nn.create("languageUtils")}getScriptPartFromCode(i){if(i=Ri(i),!i||i.indexOf("-")<0)return null;const s=i.split("-");return s.length===2||(s.pop(),s[s.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(s.join("-"))}getLanguagePartFromCode(i){if(i=Ri(i),!i||i.indexOf("-")<0)return i;const s=i.split("-");return this.formatLanguageCode(s[0])}formatLanguageCode(i){if(he(i)&&i.indexOf("-")>-1){let s;try{s=Intl.getCanonicalLocales(i)[0]}catch{}return s&&this.options.lowerCaseLng&&(s=s.toLowerCase()),s||(this.options.lowerCaseLng?i.toLowerCase():i)}return this.options.cleanCode||this.options.lowerCaseLng?i.toLowerCase():i}isSupportedCode(i){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(i=this.getLanguagePartFromCode(i)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(i)>-1}getBestMatchFromCodes(i){if(!i)return null;let s;return i.forEach(r=>{if(s)return;const c=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(c))&&(s=c)}),!s&&this.options.supportedLngs&&i.forEach(r=>{if(s)return;const c=this.getScriptPartFromCode(r);if(this.isSupportedCode(c))return s=c;const f=this.getLanguagePartFromCode(r);if(this.isSupportedCode(f))return s=f;s=this.options.supportedLngs.find(h=>{if(h===f)return h;if(!(h.indexOf("-")<0&&f.indexOf("-")<0)&&(h.indexOf("-")>0&&f.indexOf("-")<0&&h.substring(0,h.indexOf("-"))===f||h.indexOf(f)===0&&f.length>1))return h})}),s||(s=this.getFallbackCodes(this.options.fallbackLng)[0]),s}getFallbackCodes(i,s){if(!i)return[];if(typeof i=="function"&&(i=i(s)),he(i)&&(i=[i]),Array.isArray(i))return i;if(!s)return i.default||[];let r=i[s];return r||(r=i[this.getScriptPartFromCode(s)]),r||(r=i[this.formatLanguageCode(s)]),r||(r=i[this.getLanguagePartFromCode(s)]),r||(r=i.default),r||[]}toResolveHierarchy(i,s){const r=this.getFallbackCodes((s===!1?[]:s)||this.options.fallbackLng||[],i),c=[],f=h=>{h&&(this.isSupportedCode(h)?c.push(h):this.logger.warn(`rejecting language code not found in supportedLngs: ${h}`))};return he(i)&&(i.indexOf("-")>-1||i.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&f(this.formatLanguageCode(i)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&f(this.getScriptPartFromCode(i)),this.options.load!=="currentOnly"&&f(this.getLanguagePartFromCode(i))):he(i)&&f(this.formatLanguageCode(i)),r.forEach(h=>{c.indexOf(h)<0&&f(this.formatLanguageCode(h))}),c}}const rp={zero:0,one:1,two:2,few:3,many:4,other:5},op={select:l=>l===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Sb{constructor(i,s={}){this.languageUtils=i,this.options=s,this.logger=nn.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(i,s={}){const r=Ri(i==="dev"?"en":i),c=s.ordinal?"ordinal":"cardinal",f=JSON.stringify({cleanedCode:r,type:c});if(f in this.pluralRulesCache)return this.pluralRulesCache[f];let h;try{h=new Intl.PluralRules(r,{type:c})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),op;if(!i.match(/-|_/))return op;const p=this.languageUtils.getLanguagePartFromCode(i);h=this.getRule(p,s)}return this.pluralRulesCache[f]=h,h}needsPlural(i,s={}){let r=this.getRule(i,s);return r||(r=this.getRule("dev",s)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(i,s,r={}){return this.getSuffixes(i,r).map(c=>`${s}${c}`)}getSuffixes(i,s={}){let r=this.getRule(i,s);return r||(r=this.getRule("dev",s)),r?r.resolvedOptions().pluralCategories.sort((c,f)=>rp[c]-rp[f]).map(c=>`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${c}`):[]}getSuffix(i,s,r={}){const c=this.getRule(i,r);return c?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${c.select(s)}`:(this.logger.warn(`no plural rule found for: ${i}`),this.getSuffix("dev",s,r))}}const up=(l,i,s,r=".",c=!0)=>{let f=db(l,i,s);return!f&&c&&he(s)&&(f=oc(l,s,r),f===void 0&&(f=oc(i,s,r))),f},Iu=l=>l.replace(/\$/g,"$$$$");class cp{constructor(i={}){var s;this.logger=nn.create("interpolator"),this.options=i,this.format=((s=i==null?void 0:i.interpolation)==null?void 0:s.format)||(r=>r),this.init(i)}init(i={}){i.interpolation||(i.interpolation={escapeValue:!0});const{escape:s,escapeValue:r,useRawValueToEscape:c,prefix:f,prefixEscaped:h,suffix:y,suffixEscaped:p,formatSeparator:g,unescapeSuffix:b,unescapePrefix:x,nestingPrefix:T,nestingPrefixEscaped:C,nestingSuffix:w,nestingSuffixEscaped:D,nestingOptionsSeparator:L,maxReplaces:V,alwaysFormat:$}=i.interpolation;this.escape=s!==void 0?s:mb,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=c!==void 0?c:!1,this.prefix=f?Ca(f):h||"{{",this.suffix=y?Ca(y):p||"}}",this.formatSeparator=g||",",this.unescapePrefix=b?"":x||"-",this.unescapeSuffix=this.unescapePrefix?"":b||"",this.nestingPrefix=T?Ca(T):C||Ca("$t("),this.nestingSuffix=w?Ca(w):D||Ca(")"),this.nestingOptionsSeparator=L||",",this.maxReplaces=V||1e3,this.alwaysFormat=$!==void 0?$:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const i=(s,r)=>(s==null?void 0:s.source)===r?(s.lastIndex=0,s):new RegExp(r,"g");this.regexp=i(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=i(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=i(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(i,s,r,c){var C;let f,h,y;const p=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},g=w=>{if(w.indexOf(this.formatSeparator)<0){const $=up(s,p,w,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format($,void 0,r,{...c,...s,interpolationkey:w}):$}const D=w.split(this.formatSeparator),L=D.shift().trim(),V=D.join(this.formatSeparator).trim();return this.format(up(s,p,L,this.options.keySeparator,this.options.ignoreJSONStructure),V,r,{...c,...s,interpolationkey:L})};this.resetRegExp();const b=(c==null?void 0:c.missingInterpolationHandler)||this.options.missingInterpolationHandler,x=((C=c==null?void 0:c.interpolation)==null?void 0:C.skipOnVariables)!==void 0?c.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:w=>Iu(w)},{regex:this.regexp,safeValue:w=>this.escapeValue?Iu(this.escape(w)):Iu(w)}].forEach(w=>{for(y=0;f=w.regex.exec(i);){const D=f[1].trim();if(h=g(D),h===void 0)if(typeof b=="function"){const V=b(i,f,c);h=he(V)?V:""}else if(c&&Object.prototype.hasOwnProperty.call(c,D))h="";else if(x){h=f[0];continue}else this.logger.warn(`missed to pass in variable ${D} for interpolating ${i}`),h="";else!he(h)&&!this.useRawValueToEscape&&(h=ep(h));const L=w.safeValue(h);if(i=i.replace(f[0],L),x?(w.regex.lastIndex+=h.length,w.regex.lastIndex-=f[0].length):w.regex.lastIndex=0,y++,y>=this.maxReplaces)break}}),i}nest(i,s,r={}){let c,f,h;const y=(p,g)=>{const b=this.nestingOptionsSeparator;if(p.indexOf(b)<0)return p;const x=p.split(new RegExp(`${Ca(b)}[ ]*{`));let T=`{${x[1]}`;p=x[0],T=this.interpolate(T,h);const C=T.match(/'/g),w=T.match(/"/g);(((C==null?void 0:C.length)??0)%2===0&&!w||((w==null?void 0:w.length)??0)%2!==0)&&(T=T.replace(/'/g,'"'));try{h=JSON.parse(T),g&&(h={...g,...h})}catch(D){return this.logger.warn(`failed parsing options string in nesting for key ${p}`,D),`${p}${b}${T}`}return h.defaultValue&&h.defaultValue.indexOf(this.prefix)>-1&&delete h.defaultValue,p};for(;c=this.nestingRegexp.exec(i);){let p=[];h={...r},h=h.replace&&!he(h.replace)?h.replace:h,h.applyPostProcessor=!1,delete h.defaultValue;const g=/{.*}/.test(c[1])?c[1].lastIndexOf("}")+1:c[1].indexOf(this.formatSeparator);if(g!==-1&&(p=c[1].slice(g).split(this.formatSeparator).map(b=>b.trim()).filter(Boolean),c[1]=c[1].slice(0,g)),f=s(y.call(this,c[1].trim(),h),h),f&&c[0]===i&&!he(f))return f;he(f)||(f=ep(f)),f||(this.logger.warn(`missed to resolve ${c[1]} for nesting ${i}`),f=""),p.length&&(f=p.reduce((b,x)=>this.format(b,x,r.lng,{...r,interpolationkey:c[1].trim()}),f.trim())),i=i.replace(c[0],f),this.regexp.lastIndex=0}return i}}const Nb=l=>{let i=l.toLowerCase().trim();const s={};if(l.indexOf("(")>-1){const r=l.split("(");i=r[0].toLowerCase().trim();const c=r[1].substring(0,r[1].length-1);i==="currency"&&c.indexOf(":")<0?s.currency||(s.currency=c.trim()):i==="relativetime"&&c.indexOf(":")<0?s.range||(s.range=c.trim()):c.split(";").forEach(h=>{if(h){const[y,...p]=h.split(":"),g=p.join(":").trim().replace(/^'+|'+$/g,""),b=y.trim();s[b]||(s[b]=g),g==="false"&&(s[b]=!1),g==="true"&&(s[b]=!0),isNaN(g)||(s[b]=parseInt(g,10))}})}return{formatName:i,formatOptions:s}},fp=l=>{const i={};return(s,r,c)=>{let f=c;c&&c.interpolationkey&&c.formatParams&&c.formatParams[c.interpolationkey]&&c[c.interpolationkey]&&(f={...f,[c.interpolationkey]:void 0});const h=r+JSON.stringify(f);let y=i[h];return y||(y=l(Ri(r),c),i[h]=y),y(s)}},jb=l=>(i,s,r)=>l(Ri(s),r)(i);class Eb{constructor(i={}){this.logger=nn.create("formatter"),this.options=i,this.init(i)}init(i,s={interpolation:{}}){this.formatSeparator=s.interpolation.formatSeparator||",";const r=s.cacheInBuiltFormats?fp:jb;this.formats={number:r((c,f)=>{const h=new Intl.NumberFormat(c,{...f});return y=>h.format(y)}),currency:r((c,f)=>{const h=new Intl.NumberFormat(c,{...f,style:"currency"});return y=>h.format(y)}),datetime:r((c,f)=>{const h=new Intl.DateTimeFormat(c,{...f});return y=>h.format(y)}),relativetime:r((c,f)=>{const h=new Intl.RelativeTimeFormat(c,{...f});return y=>h.format(y,f.range||"day")}),list:r((c,f)=>{const h=new Intl.ListFormat(c,{...f});return y=>h.format(y)})}}add(i,s){this.formats[i.toLowerCase().trim()]=s}addCached(i,s){this.formats[i.toLowerCase().trim()]=fp(s)}format(i,s,r,c={}){const f=s.split(this.formatSeparator);if(f.length>1&&f[0].indexOf("(")>1&&f[0].indexOf(")")<0&&f.find(y=>y.indexOf(")")>-1)){const y=f.findIndex(p=>p.indexOf(")")>-1);f[0]=[f[0],...f.splice(1,y)].join(this.formatSeparator)}return f.reduce((y,p)=>{var x;const{formatName:g,formatOptions:b}=Nb(p);if(this.formats[g]){let T=y;try{const C=((x=c==null?void 0:c.formatParams)==null?void 0:x[c.interpolationkey])||{},w=C.locale||C.lng||c.locale||c.lng||r;T=this.formats[g](y,w,{...b,...c,...C})}catch(C){this.logger.warn(C)}return T}else this.logger.warn(`there was no format function for ${g}`);return y},i)}}const wb=(l,i)=>{l.pending[i]!==void 0&&(delete l.pending[i],l.pendingCount--)};class Tb extends Sr{constructor(i,s,r,c={}){var f,h;super(),this.backend=i,this.store=s,this.services=r,this.languageUtils=r.languageUtils,this.options=c,this.logger=nn.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=c.maxParallelReads||10,this.readingCalls=0,this.maxRetries=c.maxRetries>=0?c.maxRetries:5,this.retryTimeout=c.retryTimeout>=1?c.retryTimeout:350,this.state={},this.queue=[],(h=(f=this.backend)==null?void 0:f.init)==null||h.call(f,r,c.backend,c)}queueLoad(i,s,r,c){const f={},h={},y={},p={};return i.forEach(g=>{let b=!0;s.forEach(x=>{const T=`${g}|${x}`;!r.reload&&this.store.hasResourceBundle(g,x)?this.state[T]=2:this.state[T]<0||(this.state[T]===1?h[T]===void 0&&(h[T]=!0):(this.state[T]=1,b=!1,h[T]===void 0&&(h[T]=!0),f[T]===void 0&&(f[T]=!0),p[x]===void 0&&(p[x]=!0)))}),b||(y[g]=!0)}),(Object.keys(f).length||Object.keys(h).length)&&this.queue.push({pending:h,pendingCount:Object.keys(h).length,loaded:{},errors:[],callback:c}),{toLoad:Object.keys(f),pending:Object.keys(h),toLoadLanguages:Object.keys(y),toLoadNamespaces:Object.keys(p)}}loaded(i,s,r){const c=i.split("|"),f=c[0],h=c[1];s&&this.emit("failedLoading",f,h,s),!s&&r&&this.store.addResourceBundle(f,h,r,void 0,void 0,{skipCopy:!0}),this.state[i]=s?-1:2,s&&r&&(this.state[i]=0);const y={};this.queue.forEach(p=>{fb(p.loaded,[f],h),wb(p,i),s&&p.errors.push(s),p.pendingCount===0&&!p.done&&(Object.keys(p.loaded).forEach(g=>{y[g]||(y[g]={});const b=p.loaded[g];b.length&&b.forEach(x=>{y[g][x]===void 0&&(y[g][x]=!0)})}),p.done=!0,p.errors.length?p.callback(p.errors):p.callback())}),this.emit("loaded",y),this.queue=this.queue.filter(p=>!p.done)}read(i,s,r,c=0,f=this.retryTimeout,h){if(!i.length)return h(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:i,ns:s,fcName:r,tried:c,wait:f,callback:h});return}this.readingCalls++;const y=(g,b)=>{if(this.readingCalls--,this.waitingReads.length>0){const x=this.waitingReads.shift();this.read(x.lng,x.ns,x.fcName,x.tried,x.wait,x.callback)}if(g&&b&&c<this.maxRetries){setTimeout(()=>{this.read.call(this,i,s,r,c+1,f*2,h)},f);return}h(g,b)},p=this.backend[r].bind(this.backend);if(p.length===2){try{const g=p(i,s);g&&typeof g.then=="function"?g.then(b=>y(null,b)).catch(y):y(null,g)}catch(g){y(g)}return}return p(i,s,y)}prepareLoading(i,s,r={},c){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),c&&c();he(i)&&(i=this.languageUtils.toResolveHierarchy(i)),he(s)&&(s=[s]);const f=this.queueLoad(i,s,r,c);if(!f.toLoad.length)return f.pending.length||c(),null;f.toLoad.forEach(h=>{this.loadOne(h)})}load(i,s,r){this.prepareLoading(i,s,{},r)}reload(i,s,r){this.prepareLoading(i,s,{reload:!0},r)}loadOne(i,s=""){const r=i.split("|"),c=r[0],f=r[1];this.read(c,f,"read",void 0,void 0,(h,y)=>{h&&this.logger.warn(`${s}loading namespace ${f} for language ${c} failed`,h),!h&&y&&this.logger.log(`${s}loaded namespace ${f} for language ${c}`,y),this.loaded(i,h,y)})}saveMissing(i,s,r,c,f,h={},y=()=>{}){var p,g,b,x,T;if((g=(p=this.services)==null?void 0:p.utils)!=null&&g.hasLoadedNamespace&&!((x=(b=this.services)==null?void 0:b.utils)!=null&&x.hasLoadedNamespace(s))){this.logger.warn(`did not save key "${r}" as the namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((T=this.backend)!=null&&T.create){const C={...h,isUpdate:f},w=this.backend.create.bind(this.backend);if(w.length<6)try{let D;w.length===5?D=w(i,s,r,c,C):D=w(i,s,r,c),D&&typeof D.then=="function"?D.then(L=>y(null,L)).catch(y):y(null,D)}catch(D){y(D)}else w(i,s,r,c,y,C)}!i||!i[0]||this.store.addResource(i[0],s,r,c)}}}const Pu=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:l=>{let i={};if(typeof l[1]=="object"&&(i=l[1]),he(l[1])&&(i.defaultValue=l[1]),he(l[2])&&(i.tDescription=l[2]),typeof l[2]=="object"||typeof l[3]=="object"){const s=l[3]||l[2];Object.keys(s).forEach(r=>{i[r]=s[r]})}return i},interpolation:{escapeValue:!0,format:l=>l,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),dp=l=>{var i,s;return he(l.ns)&&(l.ns=[l.ns]),he(l.fallbackLng)&&(l.fallbackLng=[l.fallbackLng]),he(l.fallbackNS)&&(l.fallbackNS=[l.fallbackNS]),((s=(i=l.supportedLngs)==null?void 0:i.indexOf)==null?void 0:s.call(i,"cimode"))<0&&(l.supportedLngs=l.supportedLngs.concat(["cimode"])),typeof l.initImmediate=="boolean"&&(l.initAsync=l.initImmediate),l},er=()=>{},Cb=l=>{Object.getOwnPropertyNames(Object.getPrototypeOf(l)).forEach(s=>{typeof l[s]=="function"&&(l[s]=l[s].bind(l))})},og="__i18next_supportNoticeShown",Ab=()=>typeof globalThis<"u"&&!!globalThis[og],Rb=()=>{typeof globalThis<"u"&&(globalThis[og]=!0)},Ob=l=>{var i,s,r,c,f,h,y,p,g,b,x,T,C;return!!(((r=(s=(i=l==null?void 0:l.modules)==null?void 0:i.backend)==null?void 0:s.name)==null?void 0:r.indexOf("Locize"))>0||((y=(h=(f=(c=l==null?void 0:l.modules)==null?void 0:c.backend)==null?void 0:f.constructor)==null?void 0:h.name)==null?void 0:y.indexOf("Locize"))>0||(g=(p=l==null?void 0:l.options)==null?void 0:p.backend)!=null&&g.backends&&l.options.backend.backends.some(w=>{var D,L,V;return((D=w==null?void 0:w.name)==null?void 0:D.indexOf("Locize"))>0||((V=(L=w==null?void 0:w.constructor)==null?void 0:L.name)==null?void 0:V.indexOf("Locize"))>0})||(x=(b=l==null?void 0:l.options)==null?void 0:b.backend)!=null&&x.projectId||(C=(T=l==null?void 0:l.options)==null?void 0:T.backend)!=null&&C.backendOptions&&l.options.backend.backendOptions.some(w=>w==null?void 0:w.projectId))};class wi extends Sr{constructor(i={},s){if(super(),this.options=dp(i),this.services={},this.logger=nn,this.modules={external:[]},Cb(this),s&&!this.isInitialized&&!i.isClone){if(!this.options.initAsync)return this.init(i,s),this;setTimeout(()=>{this.init(i,s)},0)}}init(i={},s){this.isInitializing=!0,typeof i=="function"&&(s=i,i={}),i.defaultNS==null&&i.ns&&(he(i.ns)?i.defaultNS=i.ns:i.ns.indexOf("translation")<0&&(i.defaultNS=i.ns[0]));const r=Pu();this.options={...r,...this.options,...dp(i)},this.options.interpolation={...r.interpolation,...this.options.interpolation},i.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=i.keySeparator),i.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=i.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler),this.options.showSupportNotice!==!1&&!Ob(this)&&!Ab()&&(typeof console<"u"&&typeof console.info<"u"&&console.info("🌐 i18next is maintained with support from Locize — consider powering your project with managed localization (AI, CDN, integrations): https://locize.com 💙"),Rb());const c=g=>g?typeof g=="function"?new g:g:null;if(!this.options.isClone){this.modules.logger?nn.init(c(this.modules.logger),this.options):nn.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:g=Eb;const b=new sp(this.options);this.store=new lp(this.options.resources,this.options);const x=this.services;x.logger=nn,x.resourceStore=this.store,x.languageUtils=b,x.pluralResolver=new Sb(b,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),g&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(x.formatter=c(g),x.formatter.init&&x.formatter.init(x,this.options),this.options.interpolation.format=x.formatter.format.bind(x.formatter)),x.interpolator=new cp(this.options),x.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},x.backendConnector=new Tb(c(this.modules.backend),x.resourceStore,x,this.options),x.backendConnector.on("*",(C,...w)=>{this.emit(C,...w)}),this.modules.languageDetector&&(x.languageDetector=c(this.modules.languageDetector),x.languageDetector.init&&x.languageDetector.init(x,this.options.detection,this.options)),this.modules.i18nFormat&&(x.i18nFormat=c(this.modules.i18nFormat),x.i18nFormat.init&&x.i18nFormat.init(this)),this.translator=new mr(this.services,this.options),this.translator.on("*",(C,...w)=>{this.emit(C,...w)}),this.modules.external.forEach(C=>{C.init&&C.init(this)})}if(this.format=this.options.interpolation.format,s||(s=er),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=(...b)=>this.store[g](...b)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=(...b)=>(this.store[g](...b),this)});const y=bi(),p=()=>{const g=(b,x)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),y.resolve(x),s(b,x)};if(this.languages&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)};return this.options.resources||!this.options.initAsync?p():setTimeout(p,0),y}loadResources(i,s=er){var f,h;let r=s;const c=he(i)?i:this.language;if(typeof i=="function"&&(r=i),!this.options.resources||this.options.partialBundledLanguages){if((c==null?void 0:c.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const y=[],p=g=>{if(!g||g==="cimode")return;this.services.languageUtils.toResolveHierarchy(g).forEach(x=>{x!=="cimode"&&y.indexOf(x)<0&&y.push(x)})};c?p(c):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(b=>p(b)),(h=(f=this.options.preload)==null?void 0:f.forEach)==null||h.call(f,g=>p(g)),this.services.backendConnector.load(y,this.options.ns,g=>{!g&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(g)})}else r(null)}reloadResources(i,s,r){const c=bi();return typeof i=="function"&&(r=i,i=void 0),typeof s=="function"&&(r=s,s=void 0),i||(i=this.languages),s||(s=this.options.ns),r||(r=er),this.services.backendConnector.reload(i,s,f=>{c.resolve(),r(f)}),c}use(i){if(!i)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!i.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return i.type==="backend"&&(this.modules.backend=i),(i.type==="logger"||i.log&&i.warn&&i.error)&&(this.modules.logger=i),i.type==="languageDetector"&&(this.modules.languageDetector=i),i.type==="i18nFormat"&&(this.modules.i18nFormat=i),i.type==="postProcessor"&&sg.addPostProcessor(i),i.type==="formatter"&&(this.modules.formatter=i),i.type==="3rdParty"&&this.modules.external.push(i),this}setResolvedLanguage(i){if(!(!i||!this.languages)&&!(["cimode","dev"].indexOf(i)>-1)){for(let s=0;s<this.languages.length;s++){const r=this.languages[s];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&this.languages.indexOf(i)<0&&this.store.hasLanguageSomeTranslations(i)&&(this.resolvedLanguage=i,this.languages.unshift(i))}}changeLanguage(i,s){this.isLanguageChangingTo=i;const r=bi();this.emit("languageChanging",i);const c=y=>{this.language=y,this.languages=this.services.languageUtils.toResolveHierarchy(y),this.resolvedLanguage=void 0,this.setResolvedLanguage(y)},f=(y,p)=>{p?this.isLanguageChangingTo===i&&(c(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,r.resolve((...g)=>this.t(...g)),s&&s(y,(...g)=>this.t(...g))},h=y=>{var b,x;!i&&!y&&this.services.languageDetector&&(y=[]);const p=he(y)?y:y&&y[0],g=this.store.hasLanguageSomeTranslations(p)?p:this.services.languageUtils.getBestMatchFromCodes(he(y)?[y]:y);g&&(this.language||c(g),this.translator.language||this.translator.changeLanguage(g),(x=(b=this.services.languageDetector)==null?void 0:b.cacheUserLanguage)==null||x.call(b,g)),this.loadResources(g,T=>{f(T,g)})};return!i&&this.services.languageDetector&&!this.services.languageDetector.async?h(this.services.languageDetector.detect()):!i&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(h):this.services.languageDetector.detect(h):h(i),r}getFixedT(i,s,r){const c=(f,h,...y)=>{let p;typeof h!="object"?p=this.options.overloadTranslationOptionHandler([f,h].concat(y)):p={...h},p.lng=p.lng||c.lng,p.lngs=p.lngs||c.lngs,p.ns=p.ns||c.ns,p.keyPrefix!==""&&(p.keyPrefix=p.keyPrefix||r||c.keyPrefix);const g=this.options.keySeparator||".";let b;return p.keyPrefix&&Array.isArray(f)?b=f.map(x=>(typeof x=="function"&&(x=hr(x,{...this.options,...h})),`${p.keyPrefix}${g}${x}`)):(typeof f=="function"&&(f=hr(f,{...this.options,...h})),b=p.keyPrefix?`${p.keyPrefix}${g}${f}`:f),this.t(b,p)};return he(i)?c.lng=i:c.lngs=i,c.ns=s,c.keyPrefix=r,c}t(...i){var s;return(s=this.translator)==null?void 0:s.translate(...i)}exists(...i){var s;return(s=this.translator)==null?void 0:s.exists(...i)}setDefaultNamespace(i){this.options.defaultNS=i}hasLoadedNamespace(i,s={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=s.lng||this.resolvedLanguage||this.languages[0],c=this.options?this.options.fallbackLng:!1,f=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const h=(y,p)=>{const g=this.services.backendConnector.state[`${y}|${p}`];return g===-1||g===0||g===2};if(s.precheck){const y=s.precheck(this,h);if(y!==void 0)return y}return!!(this.hasResourceBundle(r,i)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||h(r,i)&&(!c||h(f,i)))}loadNamespaces(i,s){const r=bi();return this.options.ns?(he(i)&&(i=[i]),i.forEach(c=>{this.options.ns.indexOf(c)<0&&this.options.ns.push(c)}),this.loadResources(c=>{r.resolve(),s&&s(c)}),r):(s&&s(),Promise.resolve())}loadLanguages(i,s){const r=bi();he(i)&&(i=[i]);const c=this.options.preload||[],f=i.filter(h=>c.indexOf(h)<0&&this.services.languageUtils.isSupportedCode(h));return f.length?(this.options.preload=c.concat(f),this.loadResources(h=>{r.resolve(),s&&s(h)}),r):(s&&s(),Promise.resolve())}dir(i){var c,f;if(i||(i=this.resolvedLanguage||(((c=this.languages)==null?void 0:c.length)>0?this.languages[0]:this.language)),!i)return"rtl";try{const h=new Intl.Locale(i);if(h&&h.getTextInfo){const y=h.getTextInfo();if(y&&y.direction)return y.direction}}catch{}const s=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((f=this.services)==null?void 0:f.languageUtils)||new sp(Pu());return i.toLowerCase().indexOf("-latn")>1?"ltr":s.indexOf(r.getLanguagePartFromCode(i))>-1||i.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(i={},s){const r=new wi(i,s);return r.createInstance=wi.createInstance,r}cloneInstance(i={},s=er){const r=i.forkResourceStore;r&&delete i.forkResourceStore;const c={...this.options,...i,isClone:!0},f=new wi(c);if((i.debug!==void 0||i.prefix!==void 0)&&(f.logger=f.logger.clone(i)),["store","services","language"].forEach(y=>{f[y]=this[y]}),f.services={...this.services},f.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},r){const y=Object.keys(this.store.data).reduce((p,g)=>(p[g]={...this.store.data[g]},p[g]=Object.keys(p[g]).reduce((b,x)=>(b[x]={...p[g][x]},b),p[g]),p),{});f.store=new lp(y,c),f.services.resourceStore=f.store}if(i.interpolation){const p={...Pu().interpolation,...this.options.interpolation,...i.interpolation},g={...c,interpolation:p};f.services.interpolator=new cp(g)}return f.translator=new mr(f.services,c),f.translator.on("*",(y,...p)=>{f.emit(y,...p)}),f.init(c,s),f.translator.options=c,f.translator.backendConnector.services.utils={hasLoadedNamespace:f.hasLoadedNamespace.bind(f)},f}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const ht=wi.createInstance();ht.createInstance;ht.dir;ht.init;ht.loadResources;ht.reloadResources;ht.use;ht.changeLanguage;ht.getFixedT;ht.t;ht.exists;ht.setDefaultNamespace;ht.hasLoadedNamespace;ht.loadNamespaces;ht.loadLanguages;var ec,hp;function zb(){return hp||(hp=1,ec={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),ec}var Mb=zb();const _b=Hp(Mb);var Db=/\s([^'"/\s><]+?)[\s/>]|([^\s=]+)=\s?(".*?"|'.*?')/g;function mp(l){var i={type:"tag",name:"",voidElement:!1,attrs:{},children:[]},s=l.match(/<\/?([^\s]+?)[/\s>]/);if(s&&(i.name=s[1],(_b[s[1]]||l.charAt(l.length-2)==="/")&&(i.voidElement=!0),i.name.startsWith("!--"))){var r=l.indexOf("-->");return{type:"comment",comment:r!==-1?l.slice(4,r):""}}for(var c=new RegExp(Db),f=null;(f=c.exec(l))!==null;)if(f[0].trim())if(f[1]){var h=f[1].trim(),y=[h,""];h.indexOf("=")>-1&&(y=h.split("=")),i.attrs[y[0]]=y[1],c.lastIndex--}else f[2]&&(i.attrs[f[2]]=f[3].trim().substring(1,f[3].length-1));return i}var Lb=/<[a-zA-Z0-9\-\!\/](?:"[^"]*"|'[^']*'|[^'">])*>/g,kb=/^\s*$/,Ub=Object.create(null);function ug(l,i){switch(i.type){case"text":return l+i.content;case"tag":return l+="<"+i.name+(i.attrs?(function(s){var r=[];for(var c in s)r.push(c+'="'+s[c]+'"');return r.length?" "+r.join(" "):""})(i.attrs):"")+(i.voidElement?"/>":">"),i.voidElement?l:l+i.children.reduce(ug,"")+"</"+i.name+">";case"comment":return l+"<!--"+i.comment+"-->"}}var Hb={parse:function(l,i){i||(i={}),i.components||(i.components=Ub);var s,r=[],c=[],f=-1,h=!1;if(l.indexOf("<")!==0){var y=l.indexOf("<");r.push({type:"text",content:y===-1?l:l.substring(0,y)})}return l.replace(Lb,function(p,g){if(h){if(p!=="</"+s.name+">")return;h=!1}var b,x=p.charAt(1)!=="/",T=p.startsWith("<!--"),C=g+p.length,w=l.charAt(C);if(T){var D=mp(p);return f<0?(r.push(D),r):((b=c[f]).children.push(D),r)}if(x&&(f++,(s=mp(p)).type==="tag"&&i.components[s.name]&&(s.type="component",h=!0),s.voidElement||h||!w||w==="<"||s.children.push({type:"text",content:l.slice(C,l.indexOf("<",C))}),f===0&&r.push(s),(b=c[f-1])&&b.children.push(s),c[f]=s),(!x||s.voidElement)&&(f>-1&&(s.voidElement||s.name===p.slice(2,-1))&&(f--,s=f===-1?r:c[f]),!h&&w!=="<"&&w)){b=f===-1?r:c[f].children;var L=l.indexOf("<",C),V=l.slice(C,L===-1?void 0:L);kb.test(V)&&(V=" "),(L>-1&&f+b.length>=0||V!==" ")&&b.push({type:"text",content:V})}}),r},stringify:function(l){return l.reduce(function(i,s){return i+ug("",s)},"")}};const rr=(l,i,s,r)=>{var f,h,y,p;const c=[s,{code:i,...r||{}}];if((h=(f=l==null?void 0:l.services)==null?void 0:f.logger)!=null&&h.forward)return l.services.logger.forward(c,"warn","react-i18next::",!0);St(c[0])&&(c[0]=`react-i18next:: ${c[0]}`),(p=(y=l==null?void 0:l.services)==null?void 0:y.logger)!=null&&p.warn?l.services.logger.warn(...c):console!=null&&console.warn&&console.warn(...c)},pp={},Nr=(l,i,s,r)=>{St(s)&&pp[s]||(St(s)&&(pp[s]=new Date),rr(l,i,s,r))},cg=(l,i)=>()=>{if(l.isInitialized)i();else{const s=()=>{setTimeout(()=>{l.off("initialized",s)},0),i()};l.on("initialized",s)}},uc=(l,i,s)=>{l.loadNamespaces(i,cg(l,s))},gp=(l,i,s,r)=>{if(St(s)&&(s=[s]),l.options.preload&&l.options.preload.indexOf(i)>-1)return uc(l,s,r);s.forEach(c=>{l.options.ns.indexOf(c)<0&&l.options.ns.push(c)}),l.loadLanguages(i,cg(l,r))},Bb=(l,i,s={})=>!i.languages||!i.languages.length?(Nr(i,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:i.languages}),!0):i.hasLoadedNamespace(l,{lng:s.lng,precheck:(r,c)=>{if(s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!c(r.isLanguageChangingTo,l))return!1}}),St=l=>typeof l=="string",An=l=>typeof l=="object"&&l!==null,qb=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,Vb={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},Yb=l=>Vb[l],fg=l=>l.replace(qb,Yb);let cc={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:fg,transDefaultProps:void 0};const Gb=(l={})=>{cc={...cc,...l}},Sc=()=>cc;let dg;const $b=l=>{dg=l},Nc=()=>dg,or=(l,i)=>{var r;if(!l)return!1;const s=((r=l.props)==null?void 0:r.children)??l.children;return i?s.length>0:!!s},ur=l=>{var s,r;if(!l)return[];const i=((s=l.props)==null?void 0:s.children)??l.children;return(r=l.props)!=null&&r.i18nIsDynamicList?Ra(i):i},Xb=l=>Array.isArray(l)&&l.every(S.isValidElement),Ra=l=>Array.isArray(l)?l:[l],Qb=(l,i)=>{const s={...i};return s.props={...i.props,...l.props},s},Kb=l=>{const i={};if(!l)return i;const s=r=>{Ra(r).forEach(f=>{St(f)||(or(f)?s(ur(f)):An(f)&&!S.isValidElement(f)&&Object.assign(i,f))})};return s(l),i},hg=(l,i,s,r)=>{if(!l)return"";let c="";const f=Ra(l),h=i!=null&&i.transSupportBasicHtmlNodes?i.transKeepBasicHtmlNodesFor??[]:[];return f.forEach((y,p)=>{if(St(y)){c+=`${y}`;return}if(S.isValidElement(y)){const{props:g,type:b}=y,x=Object.keys(g).length,T=h.indexOf(b)>-1,C=g.children;if(!C&&T&&!x){c+=`<${b}/>`;return}if(!C&&(!T||x)||g.i18nIsDynamicList){c+=`<${p}></${p}>`;return}if(T&&x===1&&St(C)){c+=`<${b}>${C}</${b}>`;return}const w=hg(C,i,s,r);c+=`<${p}>${w}</${p}>`;return}if(y===null){rr(s,"TRANS_NULL_VALUE","Passed in a null value as child",{i18nKey:r});return}if(An(y)){const{format:g,...b}=y,x=Object.keys(b);if(x.length===1){const T=g?`${x[0]}, ${g}`:x[0];c+=`{{${T}}}`;return}rr(s,"TRANS_INVALID_OBJ","Invalid child - Object should only have keys {{ value, format }} (format is optional).",{i18nKey:r,child:y});return}rr(s,"TRANS_INVALID_VAR","Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.",{i18nKey:r,child:y})}),c},Zb=(l,i=[],s={})=>{if(!l)return l;const r=Object.keys(s),c=[...i,...r];let f="",h=0;for(;h<l.length;)if(l[h]==="<"){let y=!1;const p=l.slice(h).match(/^<\/(\d+|[a-zA-Z][a-zA-Z0-9_-]*)>/);if(p){const g=p[1];(/^\d+$/.test(g)||c.includes(g))&&(y=!0,f+=p[0],h+=p[0].length)}if(!y){const g=l.slice(h).match(/^<(\d+|[a-zA-Z][a-zA-Z0-9_-]*)(\s+[\w-]+(?:=(?:"[^"]*"|'[^']*'|[^\s>]+))?)*\s*(\/)?>/);if(g){const b=g[1];(/^\d+$/.test(b)||c.includes(b))&&(y=!0,f+=g[0],h+=g[0].length)}}y||(f+="<",h+=1)}else f+=l[h],h+=1;return f},Jb=(l,i,s,r,c,f,h)=>{if(s==="")return[];const y=c.transKeepBasicHtmlNodesFor||[],p=s&&new RegExp(y.map($=>`<${$}`).join("|")).test(s);if(!l&&!i&&!p&&!h)return[s];const g=i??{},b=$=>{Ra($).forEach(K=>{St(K)||(or(K)?b(ur(K)):An(K)&&!S.isValidElement(K)&&Object.assign(g,K))})};b(l);const x=Zb(s,y,g),T=Hb.parse(`<0>${x}</0>`),C={...g,...f},w=($,X,K)=>{var Q;const P=ur($),fe=L(P,X.children,K);return Xb(P)&&fe.length===0||(Q=$.props)!=null&&Q.i18nIsDynamicList?P:fe},D=($,X,K,P,fe)=>{$.dummy?($.children=X,K.push(S.cloneElement($,{key:P},fe?void 0:X))):K.push(...S.Children.map([$],Q=>{const k="data-i18n-is-dynamic-list",ie={key:P,[k]:void 0};return Q&&Q.props&&Object.keys(Q.props).forEach(W=>{W==="ref"||W==="children"||W==="i18nIsDynamicList"||W===k||(ie[W]=Q.props[W])}),S.cloneElement(Q,ie,fe?null:X)}))},L=($,X,K)=>{const P=Ra($);return Ra(X).reduce((Q,k,ie)=>{var Oe,oe;const W=((oe=(Oe=k.children)==null?void 0:Oe[0])==null?void 0:oe.content)&&r.services.interpolator.interpolate(k.children[0].content,C,r.language);if(k.type==="tag"){let F=P[parseInt(k.name,10)];!F&&i&&(F=i[k.name]),K.length===1&&!F&&(F=K[0][k.name]),F||(F={});const I={...k.attrs};h&&Object.keys(I).forEach(G=>{const j=I[G];St(j)&&(I[G]=fg(j))});const J=Object.keys(I).length!==0?Qb({props:I},F):F,R=S.isValidElement(J),Y=R&&or(k,!0)&&!k.voidElement,te=p&&An(J)&&J.dummy&&!R,pe=An(i)&&Object.hasOwnProperty.call(i,k.name);if(St(J)){const G=r.services.interpolator.interpolate(J,C,r.language);Q.push(G)}else if(or(J)||Y){const G=w(J,k,K);D(J,G,Q,ie)}else if(te){const G=L(P,k.children,K);D(J,G,Q,ie)}else if(Number.isNaN(parseFloat(k.name)))if(pe){const G=w(J,k,K);D(J,G,Q,ie,k.voidElement)}else if(c.transSupportBasicHtmlNodes&&y.indexOf(k.name)>-1)if(k.voidElement)Q.push(S.createElement(k.name,{key:`${k.name}-${ie}`}));else{const G=L(P,k.children,K);Q.push(S.createElement(k.name,{key:`${k.name}-${ie}`},G))}else if(k.voidElement)Q.push(`<${k.name} />`);else{const G=L(P,k.children,K);Q.push(`<${k.name}>${G}</${k.name}>`)}else if(An(J)&&!R){const G=k.children[0]?W:null;G&&Q.push(G)}else D(J,W,Q,ie,k.children.length!==1||!W)}else if(k.type==="text"){const F=c.transWrapTextNodes,I=typeof c.unescape=="function"?c.unescape:Sc().unescape,J=h?I(r.services.interpolator.interpolate(k.content,C,r.language)):r.services.interpolator.interpolate(k.content,C,r.language);F?Q.push(S.createElement(F,{key:`${k.name}-${ie}`},J)):Q.push(J)}return Q},[])},V=L([{dummy:!0,children:l||[]}],T,Ra(l||[]));return ur(V[0])},mg=(l,i,s)=>{const r=l.key||i,c=S.cloneElement(l,{key:r});if(!c.props||!c.props.children||s.indexOf(`${i}/>`)<0&&s.indexOf(`${i} />`)<0)return c;function f(){return S.createElement(S.Fragment,null,c)}return S.createElement(f,{key:r})},Fb=(l,i)=>l.map((s,r)=>mg(s,r,i)),Wb=(l,i)=>{const s={};return Object.keys(l).forEach(r=>{Object.assign(s,{[r]:mg(l[r],r,i)})}),s},Ib=(l,i,s,r)=>l?Array.isArray(l)?Fb(l,i):An(l)?Wb(l,i):(Nr(s,"TRANS_INVALID_COMPONENTS",'<Trans /> "components" prop expects an object or array',{i18nKey:r}),null):null,Pb=l=>!An(l)||Array.isArray(l)?!1:Object.keys(l).reduce((i,s)=>i&&Number.isNaN(Number.parseFloat(s)),!0);function e1({children:l,count:i,parent:s,i18nKey:r,context:c,tOptions:f={},values:h,defaults:y,components:p,ns:g,i18n:b,t:x,shouldUnescape:T,...C}){var G,j,H,Z,ee,ae;const w=b||Nc();if(!w)return Nr(w,"NO_I18NEXT_INSTANCE","Trans: You need to pass in an i18next instance using i18nextReactModule",{i18nKey:r}),l;const D=x||w.t.bind(w)||(ue=>ue),L={...Sc(),...(G=w.options)==null?void 0:G.react};let V=g||D.ns||((j=w.options)==null?void 0:j.defaultNS);V=St(V)?[V]:V||["translation"];const{transDefaultProps:$}=L,X=$!=null&&$.tOptions?{...$.tOptions,...f}:f,K=T??($==null?void 0:$.shouldUnescape),P=$!=null&&$.values?{...$.values,...h}:h,fe=$!=null&&$.components?{...$.components,...p}:p,Q=hg(l,L,w,r),k=y||(X==null?void 0:X.defaultValue)||Q||L.transEmptyNodeValue||(typeof r=="function"?hr(r):r),{hashTransKey:ie}=L,W=r||(ie?ie(Q||k):Q||k);(Z=(H=w.options)==null?void 0:H.interpolation)!=null&&Z.defaultVariables?h=P&&Object.keys(P).length>0?{...P,...w.options.interpolation.defaultVariables}:{...w.options.interpolation.defaultVariables}:h=P;const Oe=Kb(l);Oe&&typeof Oe.count=="number"&&i===void 0&&(i=Oe.count);const oe=h||i!==void 0&&!((ae=(ee=w.options)==null?void 0:ee.interpolation)!=null&&ae.alwaysFormat)||!l?X.interpolation:{interpolation:{...X.interpolation,prefix:"#$?",suffix:"?$#"}},F={...X,context:c||X.context,count:i,...h,...oe,defaultValue:k,ns:V};let I=W?D(W,F):k;I===W&&k&&(I=k);const J=Ib(fe,I,w,r);let R=J||l,Y=null;Pb(J)&&(Y=J,R=l);const te=Jb(R,Y,I,w,L,F,K),pe=s??L.defaultTransParent;return pe?S.createElement(pe,C,te):te}const t1={type:"3rdParty",init(l){Gb(l.options.react),$b(l)}},pg=S.createContext();class n1{constructor(){this.usedNamespaces={}}addUsedNamespaces(i){i.forEach(s=>{this.usedNamespaces[s]||(this.usedNamespaces[s]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}function a1({children:l,count:i,parent:s,i18nKey:r,context:c,tOptions:f={},values:h,defaults:y,components:p,ns:g,i18n:b,t:x,shouldUnescape:T,...C}){var $;const{i18n:w,defaultNS:D}=S.useContext(pg)||{},L=b||w||Nc(),V=x||(L==null?void 0:L.t.bind(L));return e1({children:l,count:i,parent:s,i18nKey:r,context:c,tOptions:f,values:h,defaults:y,components:p,ns:g||(V==null?void 0:V.ns)||D||(($=L==null?void 0:L.options)==null?void 0:$.defaultNS),i18n:L,t:x,shouldUnescape:T,...C})}var tc={exports:{}},nc={};/**
|
|
61
|
+
* @license React
|
|
62
|
+
* use-sync-external-store-shim.production.js
|
|
63
|
+
*
|
|
64
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
65
|
+
*
|
|
66
|
+
* This source code is licensed under the MIT license found in the
|
|
67
|
+
* LICENSE file in the root directory of this source tree.
|
|
68
|
+
*/var yp;function l1(){if(yp)return nc;yp=1;var l=vr();function i(x,T){return x===T&&(x!==0||1/x===1/T)||x!==x&&T!==T}var s=typeof Object.is=="function"?Object.is:i,r=l.useState,c=l.useEffect,f=l.useLayoutEffect,h=l.useDebugValue;function y(x,T){var C=T(),w=r({inst:{value:C,getSnapshot:T}}),D=w[0].inst,L=w[1];return f(function(){D.value=C,D.getSnapshot=T,p(D)&&L({inst:D})},[x,C,T]),c(function(){return p(D)&&L({inst:D}),x(function(){p(D)&&L({inst:D})})},[x]),h(C),C}function p(x){var T=x.getSnapshot;x=x.value;try{var C=T();return!s(x,C)}catch{return!0}}function g(x,T){return T()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:y;return nc.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:b,nc}var vp;function i1(){return vp||(vp=1,tc.exports=l1()),tc.exports}var s1=i1();const r1=(l,i)=>St(i)?i:An(i)&&St(i.defaultValue)?i.defaultValue:Array.isArray(l)?l[l.length-1]:l,o1={t:r1,ready:!1},u1=()=>()=>{},Qe=(l,i={})=>{var ie,W,Oe;const{i18n:s}=i,{i18n:r,defaultNS:c}=S.useContext(pg)||{},f=s||r||Nc();f&&!f.reportNamespaces&&(f.reportNamespaces=new n1),f||Nr(f,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const h=S.useMemo(()=>{var oe;return{...Sc(),...(oe=f==null?void 0:f.options)==null?void 0:oe.react,...i}},[f,i]),{useSuspense:y,keyPrefix:p}=h,g=c||((ie=f==null?void 0:f.options)==null?void 0:ie.defaultNS),b=St(g)?[g]:g||["translation"],x=S.useMemo(()=>b,b);(Oe=(W=f==null?void 0:f.reportNamespaces)==null?void 0:W.addUsedNamespaces)==null||Oe.call(W,x);const T=S.useRef(0),C=S.useCallback(oe=>{if(!f)return u1;const{bindI18n:F,bindI18nStore:I}=h,J=()=>{T.current+=1,oe()};return F&&f.on(F,J),I&&f.store.on(I,J),()=>{F&&F.split(" ").forEach(R=>f.off(R,J)),I&&I.split(" ").forEach(R=>f.store.off(R,J))}},[f,h]),w=S.useRef(),D=S.useCallback(()=>{if(!f)return o1;const oe=!!(f.isInitialized||f.initializedStoreOnce)&&x.every(te=>Bb(te,f,h)),F=i.lng||f.language,I=T.current,J=w.current;if(J&&J.ready===oe&&J.lng===F&&J.keyPrefix===p&&J.revision===I)return J;const Y={t:f.getFixedT(F,h.nsMode==="fallback"?x:x[0],p),ready:oe,lng:F,keyPrefix:p,revision:I};return w.current=Y,Y},[f,x,p,h,i.lng]),[L,V]=S.useState(0),{t:$,ready:X}=s1.useSyncExternalStore(C,D,D);S.useEffect(()=>{if(f&&!X&&!y){const oe=()=>V(F=>F+1);i.lng?gp(f,i.lng,x,oe):uc(f,x,oe)}},[f,i.lng,x,X,y,L]);const K=f||{},P=S.useRef(null),fe=S.useRef(),Q=oe=>{const F=Object.getOwnPropertyDescriptors(oe);F.__original&&delete F.__original;const I=Object.create(Object.getPrototypeOf(oe),F);if(!Object.prototype.hasOwnProperty.call(I,"__original"))try{Object.defineProperty(I,"__original",{value:oe,writable:!1,enumerable:!1,configurable:!1})}catch{}return I},k=S.useMemo(()=>{const oe=K,F=oe==null?void 0:oe.language;let I=oe;oe&&(P.current&&P.current.__original===oe?fe.current!==F?(I=Q(oe),P.current=I,fe.current=F):I=P.current:(I=Q(oe),P.current=I,fe.current=F));const J=[$,I,X];return J.t=$,J.i18n=I,J.ready=X,J},[$,K,X,K.resolvedLanguage,K.language,K.languages]);if(f&&y&&!X)throw new Promise(oe=>{const F=()=>oe();i.lng?gp(f,i.lng,x,F):uc(f,x,F)});return k};/**
|
|
69
|
+
* @license lucide-react v0.474.0 - ISC
|
|
70
|
+
*
|
|
71
|
+
* This source code is licensed under the ISC license.
|
|
72
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
73
|
+
*/const c1=l=>l.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),gg=(...l)=>l.filter((i,s,r)=>!!i&&i.trim()!==""&&r.indexOf(i)===s).join(" ").trim();/**
|
|
74
|
+
* @license lucide-react v0.474.0 - ISC
|
|
75
|
+
*
|
|
76
|
+
* This source code is licensed under the ISC license.
|
|
77
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
78
|
+
*/var f1={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"};/**
|
|
79
|
+
* @license lucide-react v0.474.0 - ISC
|
|
80
|
+
*
|
|
81
|
+
* This source code is licensed under the ISC license.
|
|
82
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
83
|
+
*/const d1=S.forwardRef(({color:l="currentColor",size:i=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:c="",children:f,iconNode:h,...y},p)=>S.createElement("svg",{ref:p,...f1,width:i,height:i,stroke:l,strokeWidth:r?Number(s)*24/Number(i):s,className:gg("lucide",c),...y},[...h.map(([g,b])=>S.createElement(g,b)),...Array.isArray(f)?f:[f]]));/**
|
|
84
|
+
* @license lucide-react v0.474.0 - ISC
|
|
85
|
+
*
|
|
86
|
+
* This source code is licensed under the ISC license.
|
|
87
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
88
|
+
*/const Ne=(l,i)=>{const s=S.forwardRef(({className:r,...c},f)=>S.createElement(d1,{ref:f,iconNode:i,className:gg(`lucide-${c1(l)}`,r),...c}));return s.displayName=`${l}`,s};/**
|
|
89
|
+
* @license lucide-react v0.474.0 - ISC
|
|
90
|
+
*
|
|
91
|
+
* This source code is licensed under the ISC license.
|
|
92
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
93
|
+
*/const h1=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],Ti=Ne("Activity",h1);/**
|
|
94
|
+
* @license lucide-react v0.474.0 - ISC
|
|
95
|
+
*
|
|
96
|
+
* This source code is licensed under the ISC license.
|
|
97
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
98
|
+
*/const m1=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],pr=Ne("ArrowLeft",m1);/**
|
|
99
|
+
* @license lucide-react v0.474.0 - ISC
|
|
100
|
+
*
|
|
101
|
+
* This source code is licensed under the ISC license.
|
|
102
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
103
|
+
*/const p1=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],dt=Ne("Bot",p1);/**
|
|
104
|
+
* @license lucide-react v0.474.0 - ISC
|
|
105
|
+
*
|
|
106
|
+
* This source code is licensed under the ISC license.
|
|
107
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
108
|
+
*/const g1=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],y1=Ne("ChevronRight",g1);/**
|
|
109
|
+
* @license lucide-react v0.474.0 - ISC
|
|
110
|
+
*
|
|
111
|
+
* This source code is licensed under the ISC license.
|
|
112
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
113
|
+
*/const v1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],jr=Ne("CircleAlert",v1);/**
|
|
114
|
+
* @license lucide-react v0.474.0 - ISC
|
|
115
|
+
*
|
|
116
|
+
* This source code is licensed under the ISC license.
|
|
117
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
118
|
+
*/const x1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],b1=Ne("CircleCheck",x1);/**
|
|
119
|
+
* @license lucide-react v0.474.0 - ISC
|
|
120
|
+
*
|
|
121
|
+
* This source code is licensed under the ISC license.
|
|
122
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
123
|
+
*/const S1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]],jc=Ne("Clock",S1);/**
|
|
124
|
+
* @license lucide-react v0.474.0 - ISC
|
|
125
|
+
*
|
|
126
|
+
* This source code is licensed under the ISC license.
|
|
127
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
128
|
+
*/const N1=[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]],j1=Ne("Cpu",N1);/**
|
|
129
|
+
* @license lucide-react v0.474.0 - ISC
|
|
130
|
+
*
|
|
131
|
+
* This source code is licensed under the ISC license.
|
|
132
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
133
|
+
*/const E1=[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]],w1=Ne("EllipsisVertical",E1);/**
|
|
134
|
+
* @license lucide-react v0.474.0 - ISC
|
|
135
|
+
*
|
|
136
|
+
* This source code is licensed under the ISC license.
|
|
137
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
138
|
+
*/const T1=[["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"}]],C1=Ne("ExternalLink",T1);/**
|
|
139
|
+
* @license lucide-react v0.474.0 - ISC
|
|
140
|
+
*
|
|
141
|
+
* This source code is licensed under the ISC license.
|
|
142
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
143
|
+
*/const A1=[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]],R1=Ne("Filter",A1);/**
|
|
144
|
+
* @license lucide-react v0.474.0 - ISC
|
|
145
|
+
*
|
|
146
|
+
* This source code is licensed under the ISC license.
|
|
147
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
148
|
+
*/const O1=[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]],z1=Ne("HardDrive",O1);/**
|
|
149
|
+
* @license lucide-react v0.474.0 - ISC
|
|
150
|
+
*
|
|
151
|
+
* This source code is licensed under the ISC license.
|
|
152
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
153
|
+
*/const M1=[["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"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]],_1=Ne("History",M1);/**
|
|
154
|
+
* @license lucide-react v0.474.0 - ISC
|
|
155
|
+
*
|
|
156
|
+
* This source code is licensed under the ISC license.
|
|
157
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
158
|
+
*/const D1=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],L1=Ne("Info",D1);/**
|
|
159
|
+
* @license lucide-react v0.474.0 - ISC
|
|
160
|
+
*
|
|
161
|
+
* This source code is licensed under the ISC license.
|
|
162
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
163
|
+
*/const k1=[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]],U1=Ne("Languages",k1);/**
|
|
164
|
+
* @license lucide-react v0.474.0 - ISC
|
|
165
|
+
*
|
|
166
|
+
* This source code is licensed under the ISC license.
|
|
167
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
168
|
+
*/const H1=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],B1=Ne("LayoutDashboard",H1);/**
|
|
169
|
+
* @license lucide-react v0.474.0 - ISC
|
|
170
|
+
*
|
|
171
|
+
* This source code is licensed under the ISC license.
|
|
172
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
173
|
+
*/const q1=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Cn=Ne("LoaderCircle",q1);/**
|
|
174
|
+
* @license lucide-react v0.474.0 - ISC
|
|
175
|
+
*
|
|
176
|
+
* This source code is licensed under the ISC license.
|
|
177
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
178
|
+
*/const V1=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],Nl=Ne("MessageSquare",V1);/**
|
|
179
|
+
* @license lucide-react v0.474.0 - ISC
|
|
180
|
+
*
|
|
181
|
+
* This source code is licensed under the ISC license.
|
|
182
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
183
|
+
*/const Y1=[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],G1=Ne("OctagonX",Y1);/**
|
|
184
|
+
* @license lucide-react v0.474.0 - ISC
|
|
185
|
+
*
|
|
186
|
+
* This source code is licensed under the ISC license.
|
|
187
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
188
|
+
*/const $1=[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]],X1=Ne("Pause",$1);/**
|
|
189
|
+
* @license lucide-react v0.474.0 - ISC
|
|
190
|
+
*
|
|
191
|
+
* This source code is licensed under the ISC license.
|
|
192
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
193
|
+
*/const Q1=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],Ec=Ne("Play",Q1);/**
|
|
194
|
+
* @license lucide-react v0.474.0 - ISC
|
|
195
|
+
*
|
|
196
|
+
* This source code is licensed under the ISC license.
|
|
197
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
198
|
+
*/const K1=[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]],wc=Ne("Radio",K1);/**
|
|
199
|
+
* @license lucide-react v0.474.0 - ISC
|
|
200
|
+
*
|
|
201
|
+
* This source code is licensed under the ISC license.
|
|
202
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
203
|
+
*/const Z1=[["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"}]],Oi=Ne("RotateCcw",Z1);/**
|
|
204
|
+
* @license lucide-react v0.474.0 - ISC
|
|
205
|
+
*
|
|
206
|
+
* This source code is licensed under the ISC license.
|
|
207
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
208
|
+
*/const J1=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],yg=Ne("Search",J1);/**
|
|
209
|
+
* @license lucide-react v0.474.0 - ISC
|
|
210
|
+
*
|
|
211
|
+
* This source code is licensed under the ISC license.
|
|
212
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
213
|
+
*/const F1=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],W1=Ne("Send",F1);/**
|
|
214
|
+
* @license lucide-react v0.474.0 - ISC
|
|
215
|
+
*
|
|
216
|
+
* This source code is licensed under the ISC license.
|
|
217
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
218
|
+
*/const I1=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],P1=Ne("Server",I1);/**
|
|
219
|
+
* @license lucide-react v0.474.0 - ISC
|
|
220
|
+
*
|
|
221
|
+
* This source code is licensed under the ISC license.
|
|
222
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
223
|
+
*/const eS=[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],vg=Ne("Settings",eS);/**
|
|
224
|
+
* @license lucide-react v0.474.0 - ISC
|
|
225
|
+
*
|
|
226
|
+
* This source code is licensed under the ISC license.
|
|
227
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
228
|
+
*/const tS=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],fc=Ne("Sparkles",tS);/**
|
|
229
|
+
* @license lucide-react v0.474.0 - ISC
|
|
230
|
+
*
|
|
231
|
+
* This source code is licensed under the ISC license.
|
|
232
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
233
|
+
*/const nS=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]],xg=Ne("Square",nS);/**
|
|
234
|
+
* @license lucide-react v0.474.0 - ISC
|
|
235
|
+
*
|
|
236
|
+
* This source code is licensed under the ISC license.
|
|
237
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
238
|
+
*/const aS=[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]],Tc=Ne("Terminal",aS);/**
|
|
239
|
+
* @license lucide-react v0.474.0 - ISC
|
|
240
|
+
*
|
|
241
|
+
* This source code is licensed under the ISC license.
|
|
242
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
243
|
+
*/const lS=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],bg=Ne("Trash2",lS);/**
|
|
244
|
+
* @license lucide-react v0.474.0 - ISC
|
|
245
|
+
*
|
|
246
|
+
* This source code is licensed under the ISC license.
|
|
247
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
248
|
+
*/const iS=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],sS=Ne("TriangleAlert",iS);/**
|
|
249
|
+
* @license lucide-react v0.474.0 - ISC
|
|
250
|
+
*
|
|
251
|
+
* This source code is licensed under the ISC license.
|
|
252
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
253
|
+
*/const rS=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],oS=Ne("User",rS);/**
|
|
254
|
+
* @license lucide-react v0.474.0 - ISC
|
|
255
|
+
*
|
|
256
|
+
* This source code is licensed under the ISC license.
|
|
257
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
258
|
+
*/const uS=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],cS=Ne("WifiOff",uS);/**
|
|
259
|
+
* @license lucide-react v0.474.0 - ISC
|
|
260
|
+
*
|
|
261
|
+
* This source code is licensed under the ISC license.
|
|
262
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
263
|
+
*/const fS=[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]],dS=Ne("Wifi",fS);/**
|
|
264
|
+
* @license lucide-react v0.474.0 - ISC
|
|
265
|
+
*
|
|
266
|
+
* This source code is licensed under the ISC license.
|
|
267
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
268
|
+
*/const hS=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],mS=Ne("X",hS);/**
|
|
269
|
+
* @license lucide-react v0.474.0 - ISC
|
|
270
|
+
*
|
|
271
|
+
* This source code is licensed under the ISC license.
|
|
272
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
273
|
+
*/const pS=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],gS=Ne("Zap",pS);function Sg(l){var i,s,r="";if(typeof l=="string"||typeof l=="number")r+=l;else if(typeof l=="object")if(Array.isArray(l)){var c=l.length;for(i=0;i<c;i++)l[i]&&(s=Sg(l[i]))&&(r&&(r+=" "),r+=s)}else for(s in l)l[s]&&(r&&(r+=" "),r+=s);return r}function Ng(){for(var l,i,s=0,r="",c=arguments.length;s<c;s++)(l=arguments[s])&&(i=Sg(l))&&(r&&(r+=" "),r+=i);return r}const yS=(l,i)=>{const s=new Array(l.length+i.length);for(let r=0;r<l.length;r++)s[r]=l[r];for(let r=0;r<i.length;r++)s[l.length+r]=i[r];return s},vS=(l,i)=>({classGroupId:l,validator:i}),jg=(l=new Map,i=null,s)=>({nextPart:l,validators:i,classGroupId:s}),gr="-",xp=[],xS="arbitrary..",bS=l=>{const i=NS(l),{conflictingClassGroups:s,conflictingClassGroupModifiers:r}=l;return{getClassGroupId:h=>{if(h.startsWith("[")&&h.endsWith("]"))return SS(h);const y=h.split(gr),p=y[0]===""&&y.length>1?1:0;return Eg(y,p,i)},getConflictingClassGroupIds:(h,y)=>{if(y){const p=r[h],g=s[h];return p?g?yS(g,p):p:g||xp}return s[h]||xp}}},Eg=(l,i,s)=>{if(l.length-i===0)return s.classGroupId;const c=l[i],f=s.nextPart.get(c);if(f){const g=Eg(l,i+1,f);if(g)return g}const h=s.validators;if(h===null)return;const y=i===0?l.join(gr):l.slice(i).join(gr),p=h.length;for(let g=0;g<p;g++){const b=h[g];if(b.validator(y))return b.classGroupId}},SS=l=>l.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const i=l.slice(1,-1),s=i.indexOf(":"),r=i.slice(0,s);return r?xS+r:void 0})(),NS=l=>{const{theme:i,classGroups:s}=l;return jS(s,i)},jS=(l,i)=>{const s=jg();for(const r in l){const c=l[r];Cc(c,s,r,i)}return s},Cc=(l,i,s,r)=>{const c=l.length;for(let f=0;f<c;f++){const h=l[f];ES(h,i,s,r)}},ES=(l,i,s,r)=>{if(typeof l=="string"){wS(l,i,s);return}if(typeof l=="function"){TS(l,i,s,r);return}CS(l,i,s,r)},wS=(l,i,s)=>{const r=l===""?i:wg(i,l);r.classGroupId=s},TS=(l,i,s,r)=>{if(AS(l)){Cc(l(r),i,s,r);return}i.validators===null&&(i.validators=[]),i.validators.push(vS(s,l))},CS=(l,i,s,r)=>{const c=Object.entries(l),f=c.length;for(let h=0;h<f;h++){const[y,p]=c[h];Cc(p,wg(i,y),s,r)}},wg=(l,i)=>{let s=l;const r=i.split(gr),c=r.length;for(let f=0;f<c;f++){const h=r[f];let y=s.nextPart.get(h);y||(y=jg(),s.nextPart.set(h,y)),s=y}return s},AS=l=>"isThemeGetter"in l&&l.isThemeGetter===!0,RS=l=>{if(l<1)return{get:()=>{},set:()=>{}};let i=0,s=Object.create(null),r=Object.create(null);const c=(f,h)=>{s[f]=h,i++,i>l&&(i=0,r=s,s=Object.create(null))};return{get(f){let h=s[f];if(h!==void 0)return h;if((h=r[f])!==void 0)return c(f,h),h},set(f,h){f in s?s[f]=h:c(f,h)}}},dc="!",bp=":",OS=[],Sp=(l,i,s,r,c)=>({modifiers:l,hasImportantModifier:i,baseClassName:s,maybePostfixModifierPosition:r,isExternal:c}),zS=l=>{const{prefix:i,experimentalParseClassName:s}=l;let r=c=>{const f=[];let h=0,y=0,p=0,g;const b=c.length;for(let D=0;D<b;D++){const L=c[D];if(h===0&&y===0){if(L===bp){f.push(c.slice(p,D)),p=D+1;continue}if(L==="/"){g=D;continue}}L==="["?h++:L==="]"?h--:L==="("?y++:L===")"&&y--}const x=f.length===0?c:c.slice(p);let T=x,C=!1;x.endsWith(dc)?(T=x.slice(0,-1),C=!0):x.startsWith(dc)&&(T=x.slice(1),C=!0);const w=g&&g>p?g-p:void 0;return Sp(f,C,T,w)};if(i){const c=i+bp,f=r;r=h=>h.startsWith(c)?f(h.slice(c.length)):Sp(OS,!1,h,void 0,!0)}if(s){const c=r;r=f=>s({className:f,parseClassName:c})}return r},MS=l=>{const i=new Map;return l.orderSensitiveModifiers.forEach((s,r)=>{i.set(s,1e6+r)}),s=>{const r=[];let c=[];for(let f=0;f<s.length;f++){const h=s[f],y=h[0]==="[",p=i.has(h);y||p?(c.length>0&&(c.sort(),r.push(...c),c=[]),r.push(h)):c.push(h)}return c.length>0&&(c.sort(),r.push(...c)),r}},_S=l=>({cache:RS(l.cacheSize),parseClassName:zS(l),sortModifiers:MS(l),...bS(l)}),DS=/\s+/,LS=(l,i)=>{const{parseClassName:s,getClassGroupId:r,getConflictingClassGroupIds:c,sortModifiers:f}=i,h=[],y=l.trim().split(DS);let p="";for(let g=y.length-1;g>=0;g-=1){const b=y[g],{isExternal:x,modifiers:T,hasImportantModifier:C,baseClassName:w,maybePostfixModifierPosition:D}=s(b);if(x){p=b+(p.length>0?" "+p:p);continue}let L=!!D,V=r(L?w.substring(0,D):w);if(!V){if(!L){p=b+(p.length>0?" "+p:p);continue}if(V=r(w),!V){p=b+(p.length>0?" "+p:p);continue}L=!1}const $=T.length===0?"":T.length===1?T[0]:f(T).join(":"),X=C?$+dc:$,K=X+V;if(h.indexOf(K)>-1)continue;h.push(K);const P=c(V,L);for(let fe=0;fe<P.length;++fe){const Q=P[fe];h.push(X+Q)}p=b+(p.length>0?" "+p:p)}return p},kS=(...l)=>{let i=0,s,r,c="";for(;i<l.length;)(s=l[i++])&&(r=Tg(s))&&(c&&(c+=" "),c+=r);return c},Tg=l=>{if(typeof l=="string")return l;let i,s="";for(let r=0;r<l.length;r++)l[r]&&(i=Tg(l[r]))&&(s&&(s+=" "),s+=i);return s},US=(l,...i)=>{let s,r,c,f;const h=p=>{const g=i.reduce((b,x)=>x(b),l());return s=_S(g),r=s.cache.get,c=s.cache.set,f=y,y(p)},y=p=>{const g=r(p);if(g)return g;const b=LS(p,s);return c(p,b),b};return f=h,(...p)=>f(kS(...p))},HS=[],Ie=l=>{const i=s=>s[l]||HS;return i.isThemeGetter=!0,i},Cg=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Ag=/^\((?:(\w[\w-]*):)?(.+)\)$/i,BS=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,qS=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,VS=/\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$/,YS=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,GS=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$S=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,la=l=>BS.test(l),xe=l=>!!l&&!Number.isNaN(Number(l)),ia=l=>!!l&&Number.isInteger(Number(l)),ac=l=>l.endsWith("%")&&xe(l.slice(0,-1)),Tn=l=>qS.test(l),Rg=()=>!0,XS=l=>VS.test(l)&&!YS.test(l),Ac=()=>!1,QS=l=>GS.test(l),KS=l=>$S.test(l),ZS=l=>!le(l)&&!se(l),JS=l=>oa(l,Mg,Ac),le=l=>Cg.test(l),Aa=l=>oa(l,_g,XS),Np=l=>oa(l,a2,xe),FS=l=>oa(l,Lg,Rg),WS=l=>oa(l,Dg,Ac),jp=l=>oa(l,Og,Ac),IS=l=>oa(l,zg,KS),tr=l=>oa(l,kg,QS),se=l=>Ag.test(l),Si=l=>_a(l,_g),PS=l=>_a(l,Dg),Ep=l=>_a(l,Og),e2=l=>_a(l,Mg),t2=l=>_a(l,zg),nr=l=>_a(l,kg,!0),n2=l=>_a(l,Lg,!0),oa=(l,i,s)=>{const r=Cg.exec(l);return r?r[1]?i(r[1]):s(r[2]):!1},_a=(l,i,s=!1)=>{const r=Ag.exec(l);return r?r[1]?i(r[1]):s:!1},Og=l=>l==="position"||l==="percentage",zg=l=>l==="image"||l==="url",Mg=l=>l==="length"||l==="size"||l==="bg-size",_g=l=>l==="length",a2=l=>l==="number",Dg=l=>l==="family-name",Lg=l=>l==="number"||l==="weight",kg=l=>l==="shadow",l2=()=>{const l=Ie("color"),i=Ie("font"),s=Ie("text"),r=Ie("font-weight"),c=Ie("tracking"),f=Ie("leading"),h=Ie("breakpoint"),y=Ie("container"),p=Ie("spacing"),g=Ie("radius"),b=Ie("shadow"),x=Ie("inset-shadow"),T=Ie("text-shadow"),C=Ie("drop-shadow"),w=Ie("blur"),D=Ie("perspective"),L=Ie("aspect"),V=Ie("ease"),$=Ie("animate"),X=()=>["auto","avoid","all","avoid-page","page","left","right","column"],K=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],P=()=>[...K(),se,le],fe=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto","contain","none"],k=()=>[se,le,p],ie=()=>[la,"full","auto",...k()],W=()=>[ia,"none","subgrid",se,le],Oe=()=>["auto",{span:["full",ia,se,le]},ia,se,le],oe=()=>[ia,"auto",se,le],F=()=>["auto","min","max","fr",se,le],I=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],J=()=>["start","end","center","stretch","center-safe","end-safe"],R=()=>["auto",...k()],Y=()=>[la,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...k()],te=()=>[la,"screen","full","dvw","lvw","svw","min","max","fit",...k()],pe=()=>[la,"screen","full","lh","dvh","lvh","svh","min","max","fit",...k()],G=()=>[l,se,le],j=()=>[...K(),Ep,jp,{position:[se,le]}],H=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Z=()=>["auto","cover","contain",e2,JS,{size:[se,le]}],ee=()=>[ac,Si,Aa],ae=()=>["","none","full",g,se,le],ue=()=>["",xe,Si,Aa],we=()=>["solid","dashed","dotted","double"],Pe=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ve=()=>[xe,ac,Ep,jp],zn=()=>["","none",w,se,le],rn=()=>["none",xe,se,le],Mn=()=>["none",xe,se,le],Da=()=>[xe,se,le],_t=()=>[la,"full",...k()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Tn],breakpoint:[Tn],color:[Rg],container:[Tn],"drop-shadow":[Tn],ease:["in","out","in-out"],font:[ZS],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Tn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Tn],shadow:[Tn],spacing:["px",xe],text:[Tn],"text-shadow":[Tn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",la,le,se,L]}],container:["container"],columns:[{columns:[xe,le,se,y]}],"break-after":[{"break-after":X()}],"break-before":[{"break-before":X()}],"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:P()}],overflow:[{overflow:fe()}],"overflow-x":[{"overflow-x":fe()}],"overflow-y":[{"overflow-y":fe()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ie()}],"inset-x":[{"inset-x":ie()}],"inset-y":[{"inset-y":ie()}],start:[{"inset-s":ie(),start:ie()}],end:[{"inset-e":ie(),end:ie()}],"inset-bs":[{"inset-bs":ie()}],"inset-be":[{"inset-be":ie()}],top:[{top:ie()}],right:[{right:ie()}],bottom:[{bottom:ie()}],left:[{left:ie()}],visibility:["visible","invisible","collapse"],z:[{z:[ia,"auto",se,le]}],basis:[{basis:[la,"full","auto",y,...k()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[xe,la,"auto","initial","none",le]}],grow:[{grow:["",xe,se,le]}],shrink:[{shrink:["",xe,se,le]}],order:[{order:[ia,"first","last","none",se,le]}],"grid-cols":[{"grid-cols":W()}],"col-start-end":[{col:Oe()}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":W()}],"row-start-end":[{row:Oe()}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":F()}],"auto-rows":[{"auto-rows":F()}],gap:[{gap:k()}],"gap-x":[{"gap-x":k()}],"gap-y":[{"gap-y":k()}],"justify-content":[{justify:[...I(),"normal"]}],"justify-items":[{"justify-items":[...J(),"normal"]}],"justify-self":[{"justify-self":["auto",...J()]}],"align-content":[{content:["normal",...I()]}],"align-items":[{items:[...J(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...J(),{baseline:["","last"]}]}],"place-content":[{"place-content":I()}],"place-items":[{"place-items":[...J(),"baseline"]}],"place-self":[{"place-self":["auto",...J()]}],p:[{p:k()}],px:[{px:k()}],py:[{py:k()}],ps:[{ps:k()}],pe:[{pe:k()}],pbs:[{pbs:k()}],pbe:[{pbe:k()}],pt:[{pt:k()}],pr:[{pr:k()}],pb:[{pb:k()}],pl:[{pl:k()}],m:[{m:R()}],mx:[{mx:R()}],my:[{my:R()}],ms:[{ms:R()}],me:[{me:R()}],mbs:[{mbs:R()}],mbe:[{mbe:R()}],mt:[{mt:R()}],mr:[{mr:R()}],mb:[{mb:R()}],ml:[{ml:R()}],"space-x":[{"space-x":k()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":k()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...te()]}],"min-inline-size":[{"min-inline":["auto",...te()]}],"max-inline-size":[{"max-inline":["none",...te()]}],"block-size":[{block:["auto",...pe()]}],"min-block-size":[{"min-block":["auto",...pe()]}],"max-block-size":[{"max-block":["none",...pe()]}],w:[{w:[y,"screen",...Y()]}],"min-w":[{"min-w":[y,"screen","none",...Y()]}],"max-w":[{"max-w":[y,"screen","none","prose",{screen:[h]},...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",s,Si,Aa]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,n2,FS]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ac,le]}],"font-family":[{font:[PS,WS,i]}],"font-features":[{"font-features":[le]}],"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:[c,se,le]}],"line-clamp":[{"line-clamp":[xe,"none",se,Np]}],leading:[{leading:[f,...k()]}],"list-image":[{"list-image":["none",se,le]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,le]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:G()}],"text-color":[{text:G()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...we(),"wavy"]}],"text-decoration-thickness":[{decoration:[xe,"from-font","auto",se,Aa]}],"text-decoration-color":[{decoration:G()}],"underline-offset":[{"underline-offset":[xe,"auto",se,le]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:k()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,le]}],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,le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:H()}],"bg-size":[{bg:Z()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ia,se,le],radial:["",se,le],conic:[ia,se,le]},t2,IS]}],"bg-color":[{bg:G()}],"gradient-from-pos":[{from:ee()}],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:G()}],"gradient-via":[{via:G()}],"gradient-to":[{to:G()}],rounded:[{rounded:ae()}],"rounded-s":[{"rounded-s":ae()}],"rounded-e":[{"rounded-e":ae()}],"rounded-t":[{"rounded-t":ae()}],"rounded-r":[{"rounded-r":ae()}],"rounded-b":[{"rounded-b":ae()}],"rounded-l":[{"rounded-l":ae()}],"rounded-ss":[{"rounded-ss":ae()}],"rounded-se":[{"rounded-se":ae()}],"rounded-ee":[{"rounded-ee":ae()}],"rounded-es":[{"rounded-es":ae()}],"rounded-tl":[{"rounded-tl":ae()}],"rounded-tr":[{"rounded-tr":ae()}],"rounded-br":[{"rounded-br":ae()}],"rounded-bl":[{"rounded-bl":ae()}],"border-w":[{border:ue()}],"border-w-x":[{"border-x":ue()}],"border-w-y":[{"border-y":ue()}],"border-w-s":[{"border-s":ue()}],"border-w-e":[{"border-e":ue()}],"border-w-bs":[{"border-bs":ue()}],"border-w-be":[{"border-be":ue()}],"border-w-t":[{"border-t":ue()}],"border-w-r":[{"border-r":ue()}],"border-w-b":[{"border-b":ue()}],"border-w-l":[{"border-l":ue()}],"divide-x":[{"divide-x":ue()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ue()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...we(),"hidden","none"]}],"divide-style":[{divide:[...we(),"hidden","none"]}],"border-color":[{border:G()}],"border-color-x":[{"border-x":G()}],"border-color-y":[{"border-y":G()}],"border-color-s":[{"border-s":G()}],"border-color-e":[{"border-e":G()}],"border-color-bs":[{"border-bs":G()}],"border-color-be":[{"border-be":G()}],"border-color-t":[{"border-t":G()}],"border-color-r":[{"border-r":G()}],"border-color-b":[{"border-b":G()}],"border-color-l":[{"border-l":G()}],"divide-color":[{divide:G()}],"outline-style":[{outline:[...we(),"none","hidden"]}],"outline-offset":[{"outline-offset":[xe,se,le]}],"outline-w":[{outline:["",xe,Si,Aa]}],"outline-color":[{outline:G()}],shadow:[{shadow:["","none",b,nr,tr]}],"shadow-color":[{shadow:G()}],"inset-shadow":[{"inset-shadow":["none",x,nr,tr]}],"inset-shadow-color":[{"inset-shadow":G()}],"ring-w":[{ring:ue()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:G()}],"ring-offset-w":[{"ring-offset":[xe,Aa]}],"ring-offset-color":[{"ring-offset":G()}],"inset-ring-w":[{"inset-ring":ue()}],"inset-ring-color":[{"inset-ring":G()}],"text-shadow":[{"text-shadow":["none",T,nr,tr]}],"text-shadow-color":[{"text-shadow":G()}],opacity:[{opacity:[xe,se,le]}],"mix-blend":[{"mix-blend":[...Pe(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":Pe()}],"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":[xe]}],"mask-image-linear-from-pos":[{"mask-linear-from":ve()}],"mask-image-linear-to-pos":[{"mask-linear-to":ve()}],"mask-image-linear-from-color":[{"mask-linear-from":G()}],"mask-image-linear-to-color":[{"mask-linear-to":G()}],"mask-image-t-from-pos":[{"mask-t-from":ve()}],"mask-image-t-to-pos":[{"mask-t-to":ve()}],"mask-image-t-from-color":[{"mask-t-from":G()}],"mask-image-t-to-color":[{"mask-t-to":G()}],"mask-image-r-from-pos":[{"mask-r-from":ve()}],"mask-image-r-to-pos":[{"mask-r-to":ve()}],"mask-image-r-from-color":[{"mask-r-from":G()}],"mask-image-r-to-color":[{"mask-r-to":G()}],"mask-image-b-from-pos":[{"mask-b-from":ve()}],"mask-image-b-to-pos":[{"mask-b-to":ve()}],"mask-image-b-from-color":[{"mask-b-from":G()}],"mask-image-b-to-color":[{"mask-b-to":G()}],"mask-image-l-from-pos":[{"mask-l-from":ve()}],"mask-image-l-to-pos":[{"mask-l-to":ve()}],"mask-image-l-from-color":[{"mask-l-from":G()}],"mask-image-l-to-color":[{"mask-l-to":G()}],"mask-image-x-from-pos":[{"mask-x-from":ve()}],"mask-image-x-to-pos":[{"mask-x-to":ve()}],"mask-image-x-from-color":[{"mask-x-from":G()}],"mask-image-x-to-color":[{"mask-x-to":G()}],"mask-image-y-from-pos":[{"mask-y-from":ve()}],"mask-image-y-to-pos":[{"mask-y-to":ve()}],"mask-image-y-from-color":[{"mask-y-from":G()}],"mask-image-y-to-color":[{"mask-y-to":G()}],"mask-image-radial":[{"mask-radial":[se,le]}],"mask-image-radial-from-pos":[{"mask-radial-from":ve()}],"mask-image-radial-to-pos":[{"mask-radial-to":ve()}],"mask-image-radial-from-color":[{"mask-radial-from":G()}],"mask-image-radial-to-color":[{"mask-radial-to":G()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":K()}],"mask-image-conic-pos":[{"mask-conic":[xe]}],"mask-image-conic-from-pos":[{"mask-conic-from":ve()}],"mask-image-conic-to-pos":[{"mask-conic-to":ve()}],"mask-image-conic-from-color":[{"mask-conic-from":G()}],"mask-image-conic-to-color":[{"mask-conic-to":G()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:H()}],"mask-size":[{mask:Z()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,le]}],filter:[{filter:["","none",se,le]}],blur:[{blur:zn()}],brightness:[{brightness:[xe,se,le]}],contrast:[{contrast:[xe,se,le]}],"drop-shadow":[{"drop-shadow":["","none",C,nr,tr]}],"drop-shadow-color":[{"drop-shadow":G()}],grayscale:[{grayscale:["",xe,se,le]}],"hue-rotate":[{"hue-rotate":[xe,se,le]}],invert:[{invert:["",xe,se,le]}],saturate:[{saturate:[xe,se,le]}],sepia:[{sepia:["",xe,se,le]}],"backdrop-filter":[{"backdrop-filter":["","none",se,le]}],"backdrop-blur":[{"backdrop-blur":zn()}],"backdrop-brightness":[{"backdrop-brightness":[xe,se,le]}],"backdrop-contrast":[{"backdrop-contrast":[xe,se,le]}],"backdrop-grayscale":[{"backdrop-grayscale":["",xe,se,le]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[xe,se,le]}],"backdrop-invert":[{"backdrop-invert":["",xe,se,le]}],"backdrop-opacity":[{"backdrop-opacity":[xe,se,le]}],"backdrop-saturate":[{"backdrop-saturate":[xe,se,le]}],"backdrop-sepia":[{"backdrop-sepia":["",xe,se,le]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":k()}],"border-spacing-x":[{"border-spacing-x":k()}],"border-spacing-y":[{"border-spacing-y":k()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,le]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[xe,"initial",se,le]}],ease:[{ease:["linear","initial",V,se,le]}],delay:[{delay:[xe,se,le]}],animate:[{animate:["none",$,se,le]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[D,se,le]}],"perspective-origin":[{"perspective-origin":P()}],rotate:[{rotate:rn()}],"rotate-x":[{"rotate-x":rn()}],"rotate-y":[{"rotate-y":rn()}],"rotate-z":[{"rotate-z":rn()}],scale:[{scale:Mn()}],"scale-x":[{"scale-x":Mn()}],"scale-y":[{"scale-y":Mn()}],"scale-z":[{"scale-z":Mn()}],"scale-3d":["scale-3d"],skew:[{skew:Da()}],"skew-x":[{"skew-x":Da()}],"skew-y":[{"skew-y":Da()}],transform:[{transform:[se,le,"","none","gpu","cpu"]}],"transform-origin":[{origin:P()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:_t()}],"translate-x":[{"translate-x":_t()}],"translate-y":[{"translate-y":_t()}],"translate-z":[{"translate-z":_t()}],"translate-none":["translate-none"],accent:[{accent:G()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:G()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",se,le]}],"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":k()}],"scroll-mx":[{"scroll-mx":k()}],"scroll-my":[{"scroll-my":k()}],"scroll-ms":[{"scroll-ms":k()}],"scroll-me":[{"scroll-me":k()}],"scroll-mbs":[{"scroll-mbs":k()}],"scroll-mbe":[{"scroll-mbe":k()}],"scroll-mt":[{"scroll-mt":k()}],"scroll-mr":[{"scroll-mr":k()}],"scroll-mb":[{"scroll-mb":k()}],"scroll-ml":[{"scroll-ml":k()}],"scroll-p":[{"scroll-p":k()}],"scroll-px":[{"scroll-px":k()}],"scroll-py":[{"scroll-py":k()}],"scroll-ps":[{"scroll-ps":k()}],"scroll-pe":[{"scroll-pe":k()}],"scroll-pbs":[{"scroll-pbs":k()}],"scroll-pbe":[{"scroll-pbe":k()}],"scroll-pt":[{"scroll-pt":k()}],"scroll-pr":[{"scroll-pr":k()}],"scroll-pb":[{"scroll-pb":k()}],"scroll-pl":[{"scroll-pl":k()}],"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,le]}],fill:[{fill:["none",...G()]}],"stroke-w":[{stroke:[xe,Si,Aa,Np]}],stroke:[{stroke:["none",...G()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","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","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","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-bs","border-w-be","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-bs","border-color-be","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-mbs","scroll-mbe","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-pbs","scroll-pbe","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"]}},i2=US(l2);function Ue(...l){return i2(Ng(l))}const Ma=S.forwardRef(({className:l,orientation:i="horizontal",decorative:s=!0,...r},c)=>d.jsx("div",{ref:c,role:s?"none":"separator","aria-orientation":s?void 0:i,className:Ue("shrink-0 bg-border",i==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",l),...r}));Ma.displayName="Separator";const{slice:s2,forEach:r2}=[];function o2(l){return r2.call(s2.call(arguments,1),i=>{if(i)for(const s in i)l[s]===void 0&&(l[s]=i[s])}),l}function u2(l){return typeof l!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(s=>s.test(l))}const wp=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,c2=function(l,i){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},c=encodeURIComponent(i);let f=`${l}=${c}`;if(r.maxAge>0){const h=r.maxAge-0;if(Number.isNaN(h))throw new Error("maxAge should be a Number");f+=`; Max-Age=${Math.floor(h)}`}if(r.domain){if(!wp.test(r.domain))throw new TypeError("option domain is invalid");f+=`; Domain=${r.domain}`}if(r.path){if(!wp.test(r.path))throw new TypeError("option path is invalid");f+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");f+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(f+="; HttpOnly"),r.secure&&(f+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:f+="; SameSite=Strict";break;case"lax":f+="; SameSite=Lax";break;case"strict":f+="; SameSite=Strict";break;case"none":f+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(f+="; Partitioned"),f},Tp={create(l,i,s,r){let c=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};s&&(c.expires=new Date,c.expires.setTime(c.expires.getTime()+s*60*1e3)),r&&(c.domain=r),document.cookie=c2(l,i,c)},read(l){const i=`${l}=`,s=document.cookie.split(";");for(let r=0;r<s.length;r++){let c=s[r];for(;c.charAt(0)===" ";)c=c.substring(1,c.length);if(c.indexOf(i)===0)return c.substring(i.length,c.length)}return null},remove(l,i){this.create(l,"",-1,i)}};var f2={name:"cookie",lookup(l){let{lookupCookie:i}=l;if(i&&typeof document<"u")return Tp.read(i)||void 0},cacheUserLanguage(l,i){let{lookupCookie:s,cookieMinutes:r,cookieDomain:c,cookieOptions:f}=i;s&&typeof document<"u"&&Tp.create(s,l,r,c,f)}},d2={name:"querystring",lookup(l){var r;let{lookupQuerystring:i}=l,s;if(typeof window<"u"){let{search:c}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(c=window.location.hash.substring(window.location.hash.indexOf("?")));const h=c.substring(1).split("&");for(let y=0;y<h.length;y++){const p=h[y].indexOf("=");p>0&&h[y].substring(0,p)===i&&(s=h[y].substring(p+1))}}return s}},h2={name:"hash",lookup(l){var c;let{lookupHash:i,lookupFromHashIndex:s}=l,r;if(typeof window<"u"){const{hash:f}=window.location;if(f&&f.length>2){const h=f.substring(1);if(i){const y=h.split("&");for(let p=0;p<y.length;p++){const g=y[p].indexOf("=");g>0&&y[p].substring(0,g)===i&&(r=y[p].substring(g+1))}}if(r)return r;if(!r&&s>-1){const y=f.match(/\/([a-zA-Z-]*)/g);return Array.isArray(y)?(c=y[typeof s=="number"?s:0])==null?void 0:c.replace("/",""):void 0}}}return r}};let xl=null;const Cp=()=>{if(xl!==null)return xl;try{if(xl=typeof window<"u"&&window.localStorage!==null,!xl)return!1;const l="i18next.translate.boo";window.localStorage.setItem(l,"foo"),window.localStorage.removeItem(l)}catch{xl=!1}return xl};var m2={name:"localStorage",lookup(l){let{lookupLocalStorage:i}=l;if(i&&Cp())return window.localStorage.getItem(i)||void 0},cacheUserLanguage(l,i){let{lookupLocalStorage:s}=i;s&&Cp()&&window.localStorage.setItem(s,l)}};let bl=null;const Ap=()=>{if(bl!==null)return bl;try{if(bl=typeof window<"u"&&window.sessionStorage!==null,!bl)return!1;const l="i18next.translate.boo";window.sessionStorage.setItem(l,"foo"),window.sessionStorage.removeItem(l)}catch{bl=!1}return bl};var p2={name:"sessionStorage",lookup(l){let{lookupSessionStorage:i}=l;if(i&&Ap())return window.sessionStorage.getItem(i)||void 0},cacheUserLanguage(l,i){let{lookupSessionStorage:s}=i;s&&Ap()&&window.sessionStorage.setItem(s,l)}},g2={name:"navigator",lookup(l){const i=[];if(typeof navigator<"u"){const{languages:s,userLanguage:r,language:c}=navigator;if(s)for(let f=0;f<s.length;f++)i.push(s[f]);r&&i.push(r),c&&i.push(c)}return i.length>0?i:void 0}},y2={name:"htmlTag",lookup(l){let{htmlTag:i}=l,s;const r=i||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(s=r.getAttribute("lang")),s}},v2={name:"path",lookup(l){var c;let{lookupFromPathIndex:i}=l;if(typeof window>"u")return;const s=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(s)?(c=s[typeof i=="number"?i:0])==null?void 0:c.replace("/",""):void 0}},x2={name:"subdomain",lookup(l){var c,f;let{lookupFromSubdomainIndex:i}=l;const s=typeof i=="number"?i+1:1,r=typeof window<"u"&&((f=(c=window.location)==null?void 0:c.hostname)==null?void 0:f.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[s]}};let Ug=!1;try{document.cookie,Ug=!0}catch{}const Hg=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];Ug||Hg.splice(1,1);const b2=()=>({order:Hg,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:l=>l});class Bg{constructor(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(i,s)}init(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=i,this.options=o2(s,this.options||{},b2()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=c=>c.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(f2),this.addDetector(d2),this.addDetector(m2),this.addDetector(p2),this.addDetector(g2),this.addDetector(y2),this.addDetector(v2),this.addDetector(x2),this.addDetector(h2)}addDetector(i){return this.detectors[i.name]=i,this}detect(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,s=[];return i.forEach(r=>{if(this.detectors[r]){let c=this.detectors[r].lookup(this.options);c&&typeof c=="string"&&(c=[c]),c&&(s=s.concat(c))}}),s=s.filter(r=>r!=null&&!u2(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?s:s.length>0?s[0]:null}cacheUserLanguage(i){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;s&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(i)>-1||s.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(i,this.options)}))}}Bg.type="languageDetector";const S2={loading:"Loading...",back:"Back",search:"Search",start:"Start",stop:"Stop",destroy:"Destroy",chat:"Chat",details:"Details",cancel:"Cancel",confirm:"Confirm",retry:"Retry",noData:"—",connected:"Connected",disconnected:"Disconnected",online:"Online",offline:"Offline"},N2={running:"Running",starting:"Starting",stopping:"Stopping",stopped:"Stopped",created:"Created",error:"Error",crashed:"Crashed"},j2={dashboard:"Dashboard",canvas:"Live Canvas",agents:"Agents",activity:"Activity",events:"Events",settings:"Settings",brand:"Actant",agentCount_one:"{{count}} agent",agentCount_other:"{{count}} agents"},E2={title:"Command Center",subtitle:"Monitor and manage all your agents from a single view.",totalAgents:"Total Agents",running:"Running",stopped:"Stopped",error:"Error",agents:"Agents",recentEvents:"Recent Events"},w2={title:"Live Canvas",preview:"Preview",subtitle:"Real-time streaming workspace managed by each employee agent autonomously.",heading:"Streaming AI Canvas",description:"This page is a live, streaming workspace where each employee agent owns a section and can push rich HTML widgets — status panels, charts, progress bars, and interactive controls.",featureAgentTitle:"Agent-Owned Sections",featureAgentDesc:"Each employee manages its own area with full HTML/CSS/JS freedom.",featureSandboxTitle:"Secure Sandbox",featureSandboxDesc:"Content renders in iframe sandbox for isolation and security.",featureRealtimeTitle:"Real-Time Updates",featureRealtimeDesc:"Canvas updates arrive via SSE, no page refresh needed.",agentSlots:"Agent Slots",emptySlots:"No running employee agents. Only employee-archetype agents can push canvas content.",awaitingStream:"Awaiting stream connection...",updatedAt:"Updated {{time}}"},T2={title:"Agents",subtitle:"View and manage all registered agent instances.",searchPlaceholder:"Search agents...",noMatch:"No agents match the current filter.",noAgents:"No agents yet",createHint:"Create an agent with actant agent create",all:"All"},C2={notFound:'Agent "{{name}}" not found. It may have been destroyed.',tabOverview:"Overview",tabSessions:"Sessions",tabLogs:"Logs",fieldName:"Name",fieldStatus:"Status",fieldArchetype:"Archetype",fieldTemplate:"Template",fieldPid:"PID",fieldLaunchMode:"Launch Mode",fieldWorkspace:"Workspace",fieldUptime:"Uptime",loadingSessions:"Loading sessions...",noSessions:"No sessions found.",startConversation:"Start a conversation",selectSession:"Select a session to view its conversation.",loadingConversation:"Loading...",noConversation:"No conversation data.",msgs:"msgs",tools:"tools",empty:"(empty)",loadingLogs:"Loading logs...",noLogs:"No log output available.",crashedTitle:"Agent crashed unexpectedly",errorTitle:"Agent encountered an error"},A2={newChat:"New Chat",newConversation:"New conversation started.",historyBanner:"Showing {{count}} messages from previous session",startFresh:"Start fresh",continuingBanner:"Continuing conversation ({{count}} previous messages loaded)",loadingConversation:"Loading conversation...",startPrompt:"Start a conversation with {{name}}",readyHint:"This agent is running and ready to chat.",stoppedHint:"Agent is stopped — start it from the detail page to begin chatting.",thinking:"Thinking...",inputPlaceholder:"Message {{name}}...",inputDisabled:"Agent is not running — start it to chat",sendHint:"Enter to send · Shift+Enter for new line",notRunning:'Agent "{{name}}" is not running. Please start it first before chatting.'},R2={title:"Activity",subtitle:"Agent activity feed — prompts, sessions, and interactions.",filterAll:"All",activeAgents:"Active Agents",recentEvents:"Recent Events",prompts:"Prompts",sessions:"Sessions",timeline:"Activity Timeline",empty:"No activity recorded yet."},O2={title:"Events",subtitle:"Real-time event stream from the Actant EventBus.",searchPlaceholder:"Search events...",filterAll:"all",logTitle:"Event Log",empty:"No events match the current filter.",noRecent:"No recent events",colTime:"Time",colEvent:"Event",colAgent:"Agent",colSource:"Source",colDetails:"Details"},z2={title:"Settings",subtitle:"Daemon information and dashboard configuration.",connectionTitle:"Daemon Connection",connectionDesc:"Current connection to the Actant daemon process.",daemonInfo:"Daemon Info",version:"Version",uptime:"Uptime",managedAgents:"Managed Agents",agentOverview:"Agent Overview",agentOverviewDesc:"Summary of all registered agents by status.",noAgents:"No agents registered.",aboutTitle:"About",aboutDesc:"Actant Dashboard — real-time monitoring for AI agent orchestration.",aboutTransport:"Transport: <code>WebTransport (HTTP + SSE)</code>",aboutTauri:"Tauri-ready architecture — swap to TauriTransport for native desktop."},M2={code:"404",message:"Page not found",backHome:"Back to Dashboard"},_2={common:S2,status:N2,nav:j2,dashboard:E2,canvas:w2,agents:T2,agentDetail:C2,chat:A2,activity:R2,events:O2,settings:z2,notFound:M2},D2={loading:"加载中…",back:"返回",search:"搜索",start:"启动",stop:"停止",destroy:"销毁",chat:"对话",details:"详情",cancel:"取消",confirm:"确认",retry:"重试",noData:"—",connected:"已连接",disconnected:"已断开",online:"在线",offline:"离线"},L2={running:"运行中",starting:"启动中",stopping:"停止中",stopped:"已停止",created:"已创建",error:"异常",crashed:"已崩溃"},k2={dashboard:"控制台",canvas:"实时画布",agents:"智能体",activity:"活动",events:"事件",settings:"设置",brand:"Actant",agentCount_one:"{{count}} 个智能体",agentCount_other:"{{count}} 个智能体"},U2={title:"控制中心",subtitle:"从统一视图监控和管理所有智能体。",totalAgents:"智能体总数",running:"运行中",stopped:"已停止",error:"异常",agents:"智能体",recentEvents:"最近事件"},H2={title:"实时画布",preview:"预览",subtitle:"由每个雇员智能体自主管理的实时流式工作区。",heading:"流式 AI 画布",description:"这是一个实时流式工作区,每个雇员智能体拥有独立的区域,可以推送富 HTML 组件 — 状态面板、图表、进度条和交互控件。",featureAgentTitle:"智能体专属区域",featureAgentDesc:"每个雇员管理自己的区域,拥有完整的 HTML/CSS/JS 自由度。",featureSandboxTitle:"安全沙箱",featureSandboxDesc:"内容在 iframe 沙箱中渲染,确保隔离与安全。",featureRealtimeTitle:"实时更新",featureRealtimeDesc:"画布更新通过 SSE 推送,无需刷新页面。",agentSlots:"智能体插槽",emptySlots:"没有正在运行的雇员智能体。只有雇员类型的智能体可以推送画布内容。",awaitingStream:"等待流连接…",updatedAt:"更新于 {{time}}"},B2={title:"智能体",subtitle:"查看和管理所有已注册的智能体实例。",searchPlaceholder:"搜索智能体…",noMatch:"没有符合当前筛选条件的智能体。",noAgents:"暂无智能体",createHint:"使用 actant agent create 创建智能体",all:"全部"},q2={notFound:'未找到智能体 "{{name}}",可能已被销毁。',tabOverview:"概览",tabSessions:"会话",tabLogs:"日志",fieldName:"名称",fieldStatus:"状态",fieldArchetype:"原型",fieldTemplate:"模板",fieldPid:"PID",fieldLaunchMode:"启动模式",fieldWorkspace:"工作目录",fieldUptime:"运行时长",loadingSessions:"加载会话中…",noSessions:"暂无会话。",startConversation:"开始对话",selectSession:"选择一个会话以查看对话内容。",loadingConversation:"加载中…",noConversation:"暂无对话数据。",msgs:"条消息",tools:"次工具调用",empty:"(空)",loadingLogs:"加载日志中…",noLogs:"暂无日志输出。",crashedTitle:"智能体意外崩溃",errorTitle:"智能体遇到错误"},V2={newChat:"新对话",newConversation:"已开始新对话。",historyBanner:"显示上一会话的 {{count}} 条消息",startFresh:"重新开始",continuingBanner:"继续对话(已加载 {{count}} 条历史消息)",loadingConversation:"加载对话中…",startPrompt:"与 {{name}} 开始对话",readyHint:"智能体正在运行,可以开始对话。",stoppedHint:"智能体已停止 — 请从详情页启动后再对话。",thinking:"思考中…",inputPlaceholder:"向 {{name}} 发送消息…",inputDisabled:"智能体未运行 — 请先启动",sendHint:"Enter 发送 · Shift+Enter 换行",notRunning:'智能体 "{{name}}" 未运行,请先启动后再对话。'},Y2={title:"活动",subtitle:"智能体活动流 — 提示、会话和交互记录。",filterAll:"全部",activeAgents:"活跃智能体",recentEvents:"最近事件",prompts:"提示",sessions:"会话",timeline:"活动时间线",empty:"暂无活动记录。"},G2={title:"事件",subtitle:"来自 Actant 事件总线的实时事件流。",searchPlaceholder:"搜索事件…",filterAll:"全部",logTitle:"事件日志",empty:"没有符合当前筛选条件的事件。",noRecent:"暂无最近事件",colTime:"时间",colEvent:"事件",colAgent:"智能体",colSource:"来源",colDetails:"详情"},$2={title:"设置",subtitle:"守护进程信息和控制台配置。",connectionTitle:"守护进程连接",connectionDesc:"与 Actant 守护进程的当前连接状态。",daemonInfo:"守护进程信息",version:"版本",uptime:"运行时长",managedAgents:"托管智能体",agentOverview:"智能体概览",agentOverviewDesc:"按状态汇总所有已注册智能体。",noAgents:"暂无已注册的智能体。",aboutTitle:"关于",aboutDesc:"Actant 控制台 — Actant 智能体平台的实时监控和管理界面。",aboutTransport:"传输协议:<code>WebTransport (HTTP + SSE)</code>",aboutTauri:"Tauri 就绪架构,优雅降级至 SSE"},X2={code:"404",message:"页面未找到",backHome:"返回控制台"},Q2={common:D2,status:L2,nav:k2,dashboard:U2,canvas:H2,agents:B2,agentDetail:q2,chat:V2,activity:Y2,events:G2,settings:$2,notFound:X2},K2=[{code:"en",label:"English"},{code:"zh-CN",label:"中文"}];ht.use(Bg).use(t1).init({resources:{en:{translation:_2},"zh-CN":{translation:Q2}},fallbackLng:"en",interpolation:{escapeValue:!1},detection:{order:["localStorage","navigator"],caches:["localStorage"],lookupLocalStorage:"actant-lang"}});const Z2=[{to:"/",icon:B1,labelKey:"nav.dashboard"},{to:"/canvas",icon:fc,labelKey:"nav.canvas"},{to:"/agents",icon:dt,labelKey:"nav.agents"},{to:"/activity",icon:Ti,labelKey:"nav.activity"},{to:"/events",icon:wc,labelKey:"nav.events"}],J2=[{to:"/settings",icon:vg,labelKey:"nav.settings"}];function F2({status:l}){const{t:i}=Qe();return d.jsxs("aside",{className:"flex w-56 flex-col border-r bg-sidebar text-sidebar-foreground",children:[d.jsxs("div",{className:"flex h-14 items-center gap-2.5 border-b px-5",children:[d.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-lg bg-foreground",children:d.jsx("span",{className:"text-xs font-bold text-background",children:"A"})}),d.jsx("span",{className:"text-sm font-semibold",children:i("nav.brand")})]}),d.jsx("nav",{className:"flex-1 space-y-1 px-3 py-4",children:Z2.map(s=>d.jsx(Rp,{...s},s.to))}),d.jsx(Ma,{}),d.jsx("div",{className:"space-y-1 px-3 py-4",children:J2.map(s=>d.jsx(Rp,{...s},s.to))}),d.jsx(Ma,{}),d.jsx("div",{className:"px-3 py-2",children:d.jsx(W2,{})}),d.jsx(Ma,{}),d.jsx("div",{className:"px-5 py-3 text-xs text-muted-foreground",children:l?d.jsxs("div",{className:"space-y-0.5",children:[d.jsxs("p",{children:["v",l.version]}),d.jsx("p",{children:i("nav.agentCount",{count:l.agents})})]}):d.jsx("p",{className:"text-destructive",children:i("common.disconnected")})})]})}function Rp({to:l,icon:i,labelKey:s}){const{t:r}=Qe();return d.jsxs(ag,{to:l,end:l==="/",className:({isActive:c})=>Ue("flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-medium transition-colors",c?"bg-sidebar-accent text-sidebar-accent-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-sidebar-foreground"),children:[d.jsx(i,{className:"h-4 w-4"}),r(s)]})}function W2(){const{i18n:l}=Qe(),i=l.language??"en",s=r=>{l.changeLanguage(r)};return d.jsxs("div",{className:"flex items-center gap-1.5 rounded-lg px-2 py-1.5",children:[d.jsx(U1,{className:"h-4 w-4 text-muted-foreground"}),d.jsx("div",{className:"flex gap-0.5",children:K2.map(r=>d.jsx("button",{onClick:()=>s(r.code),className:Ue("rounded px-2 py-0.5 text-xs font-medium transition-colors",i.startsWith(r.code.split("-")[0])?"bg-sidebar-accent text-sidebar-accent-foreground":"text-muted-foreground hover:bg-sidebar-accent/50 hover:text-sidebar-foreground"),children:r.label},r.code))})]})}function I2({status:l}){const{t:i}=Qe(),s=l!==null;return d.jsxs("header",{className:"flex h-14 items-center justify-between border-b bg-background px-6",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(Ti,{className:"h-5 w-5 text-foreground"}),d.jsx("h1",{className:"text-lg font-semibold tracking-tight",children:i("nav.brand")})]}),d.jsxs("div",{className:"flex items-center gap-4 text-sm text-muted-foreground",children:[l&&d.jsxs(d.Fragment,{children:[d.jsxs("span",{children:["v",l.version]}),d.jsx("span",{className:"text-muted-foreground/60",children:"|"}),d.jsx("span",{children:P2(l.uptime)})]}),d.jsx("div",{className:"flex items-center gap-1.5",children:s?d.jsxs(d.Fragment,{children:[d.jsx(dS,{className:"h-3.5 w-3.5 text-emerald-500"}),d.jsx("span",{className:"text-emerald-600 font-medium",children:i("common.online")})]}):d.jsxs(d.Fragment,{children:[d.jsx(cS,{className:"h-3.5 w-3.5 text-destructive"}),d.jsx("span",{className:"text-destructive font-medium",children:i("common.offline")})]})})]})]})}function P2(l){const i=Math.floor(l/3600),s=Math.floor(l%3600/60);return i>0?`${i}h ${s}m`:s>0?`${s}m`:`${l}s`}class eN{constructor(i=""){km(this,"baseUrl");this.baseUrl=i}async fetch(i,s){const r=`${this.baseUrl}/v1/${i.replace(/\./g,"/")}`,c=s?"?"+new URLSearchParams(Object.entries(s).reduce((h,[y,p])=>(p!==void 0&&(h[y]=String(p)),h),{})).toString():"",f=await globalThis.fetch(r+c);if(!f.ok)throw new Error(`HTTP ${f.status}`);return f.json()}subscribe(i){let s=null,r,c=!1;const f=()=>{if(c)return;s==null||s.close(),s=new EventSource(`${this.baseUrl}/v1/sse`);const h=["status","agents","events","canvas","error"];for(const y of h)s.addEventListener(y,p=>{try{i(y,JSON.parse(p.data))}catch{}});s.onerror=()=>{s==null||s.close(),i("disconnect",null),clearTimeout(r),r=setTimeout(f,3e3)}};return f(),()=>{c=!0,s==null||s.close(),clearTimeout(r)}}}const qg=S.createContext({status:null,agents:[],events:[],canvas:[],connected:!1});function Zt(){return S.useContext(qg)}const tN=new eN;function nN({children:l,transport:i=tN}){const[s,r]=S.useState({status:null,agents:[],events:[],canvas:[],connected:!1}),c=S.useRef(i);return c.current=i,S.useEffect(()=>c.current.subscribe((h,y)=>{switch(h){case"status":r(p=>({...p,status:y,connected:!0}));break;case"agents":{const p=y;r(g=>({...g,agents:Array.isArray(p)?p:p.agents??[]}));break}case"events":{const p=y;r(g=>({...g,events:(p.events??[]).slice().reverse()}));break}case"canvas":{const p=y;r(g=>({...g,canvas:p.entries??[]}));break}case"error":r(p=>({...p,status:null,connected:!1}));break;case"disconnect":r(p=>({...p,status:null,connected:!1}));break}}),[]),d.jsx(qg.Provider,{value:s,children:l})}const Vg=S.createContext({toasts:[],addToast:()=>"",removeToast:()=>{}});function Yg(){return S.useContext(Vg)}let aN=0;function lN({children:l}){const[i,s]=S.useState([]),r=S.useRef(new Map),c=S.useCallback(h=>{const y=r.current.get(h);y&&(clearTimeout(y),r.current.delete(h)),s(p=>p.filter(g=>g.id!==h))},[]),f=S.useCallback(h=>{const y=h.id??`toast-${++aN}`,p={...h,id:y};if(s(g=>[...g.filter(x=>x.id!==y),p].slice(-5)),p.duration>0){const g=setTimeout(()=>c(y),p.duration);r.current.set(y,g)}return y},[c]);return d.jsx(Vg.Provider,{value:{toasts:i,addToast:f,removeToast:c},children:l})}const iN={default:{icon:L1,bg:"bg-background",border:"border-border",iconColor:"text-muted-foreground"},success:{icon:b1,bg:"bg-background",border:"border-emerald-500/30",iconColor:"text-emerald-500"},error:{icon:jr,bg:"bg-background",border:"border-red-500/30",iconColor:"text-red-500"},warning:{icon:sS,bg:"bg-background",border:"border-amber-500/30",iconColor:"text-amber-500"}};function sN({toast:l,onDismiss:i}){const[s,r]=S.useState(!1),c=iN[l.variant],f=c.icon;S.useEffect(()=>{requestAnimationFrame(()=>r(!0))},[]);const h=()=>{r(!1),setTimeout(i,200)};return d.jsxs("div",{className:Ue("pointer-events-auto flex w-80 items-start gap-3 rounded-lg border p-3 shadow-lg transition-all duration-200",c.bg,c.border,s?"translate-y-0 opacity-100":"translate-y-2 opacity-0"),children:[d.jsx(f,{className:Ue("mt-0.5 h-4 w-4 shrink-0",c.iconColor)}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium leading-tight",children:l.title}),l.description&&d.jsx("p",{className:"mt-0.5 text-xs text-muted-foreground line-clamp-3",children:l.description}),l.action&&d.jsx("button",{className:"mt-1.5 text-xs font-medium text-primary hover:underline",onClick:y=>{y.stopPropagation(),l.action.onClick(),h()},children:l.action.label})]}),d.jsx("button",{className:"shrink-0 rounded p-0.5 text-muted-foreground hover:text-foreground transition-colors",onClick:h,children:d.jsx(mS,{className:"h-3.5 w-3.5"})})]})}function rN(){const{toasts:l,removeToast:i}=Yg();return l.length===0?null:d.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col-reverse gap-2 pointer-events-none",children:l.map(s=>d.jsx(sN,{toast:s,onDismiss:()=>i(s.id)},s.id))})}function oN({children:l}){const{status:i}=Zt();return d.jsxs("div",{className:"flex h-screen bg-background text-foreground",children:[d.jsx(F2,{status:i}),d.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[d.jsx(I2,{status:i}),d.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:l})]}),d.jsx(rN,{})]})}function uN({children:l}){return d.jsx(nN,{children:d.jsx(lN,{children:d.jsx(oN,{children:l})})})}const nt=S.forwardRef(({className:l,...i},s)=>d.jsx("div",{ref:s,className:Ue("rounded-xl border bg-card text-card-foreground shadow-sm",l),...i}));nt.displayName="Card";const Oa=S.forwardRef(({className:l,...i},s)=>d.jsx("div",{ref:s,className:Ue("flex flex-col space-y-1.5 p-6",l),...i}));Oa.displayName="CardHeader";const za=S.forwardRef(({className:l,...i},s)=>d.jsx("div",{ref:s,className:Ue("font-semibold leading-none tracking-tight",l),...i}));za.displayName="CardTitle";const hc=S.forwardRef(({className:l,...i},s)=>d.jsx("div",{ref:s,className:Ue("text-sm text-muted-foreground",l),...i}));hc.displayName="CardDescription";const at=S.forwardRef(({className:l,...i},s)=>d.jsx("div",{ref:s,className:Ue("p-6 pt-0",l),...i}));at.displayName="CardContent";const cN=S.forwardRef(({className:l,...i},s)=>d.jsx("div",{ref:s,className:Ue("flex items-center p-6 pt-0",l),...i}));cN.displayName="CardFooter";const Op=l=>typeof l=="boolean"?`${l}`:l===0?"0":l,zp=Ng,Gg=(l,i)=>s=>{var r;if((i==null?void 0:i.variants)==null)return zp(l,s==null?void 0:s.class,s==null?void 0:s.className);const{variants:c,defaultVariants:f}=i,h=Object.keys(c).map(g=>{const b=s==null?void 0:s[g],x=f==null?void 0:f[g];if(b===null)return null;const T=Op(b)||Op(x);return c[g][T]}),y=s&&Object.entries(s).reduce((g,b)=>{let[x,T]=b;return T===void 0||(g[x]=T),g},{}),p=i==null||(r=i.compoundVariants)===null||r===void 0?void 0:r.reduce((g,b)=>{let{class:x,className:T,...C}=b;return Object.entries(C).every(w=>{let[D,L]=w;return Array.isArray(L)?L.includes({...f,...y}[D]):{...f,...y}[D]===L})?[...g,x,T]:g},[]);return zp(l,h,p,s==null?void 0:s.class,s==null?void 0:s.className)},fN=Gg("inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-white shadow",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Nt({className:l,variant:i,...s}){return d.jsx("div",{className:Ue(fN({variant:i}),l),...s})}function Mp(l,i){if(typeof l=="function")return l(i);l!=null&&(l.current=i)}function dN(...l){return i=>{let s=!1;const r=l.map(c=>{const f=Mp(c,i);return!s&&typeof f=="function"&&(s=!0),f});if(s)return()=>{for(let c=0;c<r.length;c++){const f=r[c];typeof f=="function"?f():Mp(l[c],null)}}}}var hN=Symbol.for("react.lazy"),yr=T0[" use ".trim().toString()];function mN(l){return typeof l=="object"&&l!==null&&"then"in l}function $g(l){return l!=null&&typeof l=="object"&&"$$typeof"in l&&l.$$typeof===hN&&"_payload"in l&&mN(l._payload)}function pN(l){const i=yN(l),s=S.forwardRef((r,c)=>{let{children:f,...h}=r;$g(f)&&typeof yr=="function"&&(f=yr(f._payload));const y=S.Children.toArray(f),p=y.find(xN);if(p){const g=p.props.children,b=y.map(x=>x===p?S.Children.count(g)>1?S.Children.only(null):S.isValidElement(g)?g.props.children:null:x);return d.jsx(i,{...h,ref:c,children:S.isValidElement(g)?S.cloneElement(g,void 0,b):null})}return d.jsx(i,{...h,ref:c,children:f})});return s.displayName=`${l}.Slot`,s}var gN=pN("Slot");function yN(l){const i=S.forwardRef((s,r)=>{let{children:c,...f}=s;if($g(c)&&typeof yr=="function"&&(c=yr(c._payload)),S.isValidElement(c)){const h=SN(c),y=bN(f,c.props);return c.type!==S.Fragment&&(y.ref=r?dN(r,h):h),S.cloneElement(c,y)}return S.Children.count(c)>1?S.Children.only(null):null});return i.displayName=`${l}.SlotClone`,i}var vN=Symbol("radix.slottable");function xN(l){return S.isValidElement(l)&&typeof l.type=="function"&&"__radixId"in l.type&&l.type.__radixId===vN}function bN(l,i){const s={...i};for(const r in i){const c=l[r],f=i[r];/^on[A-Z]/.test(r)?c&&f?s[r]=(...y)=>{const p=f(...y);return c(...y),p}:c&&(s[r]=c):r==="style"?s[r]={...c,...f}:r==="className"&&(s[r]=[c,f].filter(Boolean).join(" "))}return{...l,...s}}function SN(l){var r,c;let i=(r=Object.getOwnPropertyDescriptor(l.props,"ref"))==null?void 0:r.get,s=i&&"isReactWarning"in i&&i.isReactWarning;return s?l.ref:(i=(c=Object.getOwnPropertyDescriptor(l,"ref"))==null?void 0:c.get,s=i&&"isReactWarning"in i&&i.isReactWarning,s?l.props.ref:l.props.ref||l.ref)}const NN=Gg("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-white shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),ct=S.forwardRef(({className:l,variant:i,size:s,asChild:r=!1,...c},f)=>{const h=r?gN:"button";return d.jsx(h,{className:Ue(NN({variant:i,size:s,className:l})),ref:f,...c})});ct.displayName="Button";function jN({trigger:l,children:i,align:s="end"}){const[r,c]=S.useState(!1),f=S.useRef(null);S.useEffect(()=>{const y=g=>{f.current&&!f.current.contains(g.target)&&c(!1)},p=g=>{g.key==="Escape"&&c(!1)};return document.addEventListener("mousedown",y),document.addEventListener("keydown",p),()=>{document.removeEventListener("mousedown",y),document.removeEventListener("keydown",p)}},[]);const h=S.cloneElement(l,{onClick:y=>{var p,g;y.stopPropagation(),(g=(p=l.props).onClick)==null||g.call(p,y),c(b=>!b)}});return d.jsxs("div",{ref:f,className:"relative inline-block",children:[h,r&&d.jsx(Xg.Provider,{value:()=>c(!1),children:d.jsx("div",{className:Ue("absolute z-50 mt-1 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95",s==="end"&&"right-0",s==="start"&&"left-0",s==="center"&&"left-1/2 -translate-x-1/2"),children:i})})]})}const Xg=S.createContext(null);function Sl({className:l,onClick:i,...s}){const r=S.useContext(Xg);return d.jsx("div",{role:"menuitem",className:Ue("relative flex cursor-pointer select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none hover:bg-accent hover:text-accent-foreground",l),onClick:c=>{c.stopPropagation(),i==null||i(c),r==null||r()},...s})}const _p={running:{color:"bg-emerald-500",pulse:!0,labelKey:"status.running"},starting:{color:"bg-amber-500",pulse:!0,labelKey:"status.starting"},stopping:{color:"bg-amber-500",pulse:!0,labelKey:"status.stopping"},stopped:{color:"bg-neutral-400",pulse:!1,labelKey:"status.stopped"},created:{color:"bg-neutral-400",pulse:!1,labelKey:"status.created"},error:{color:"bg-red-500",pulse:!1,labelKey:"status.error"},crashed:{color:"bg-red-500",pulse:!0,labelKey:"status.crashed"}};function Rc({status:l,className:i}){const{t:s}=Qe(),r=_p[l]??_p.stopped;return d.jsxs("span",{className:Ue("inline-flex items-center gap-1.5",i),children:[d.jsxs("span",{className:"relative flex h-2 w-2",children:[r.pulse&&d.jsx("span",{className:Ue("absolute inline-flex h-full w-full animate-ping rounded-full opacity-75",r.color)}),d.jsx("span",{className:Ue("relative inline-flex h-2 w-2 rounded-full",r.color)})]}),d.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:s(r.labelKey)})]})}const Oc="";async function Ci(l,i){const s=await fetch(`${Oc}/v1/${l}`,{method:"POST",headers:{"Content-Type":"application/json"},body:i?JSON.stringify(i):void 0});if(!s.ok){const r=await s.json().catch(()=>({error:`HTTP ${s.status}`}));throw new Error(r.error??`HTTP ${s.status}`)}return s.json()}async function ji(l){const i=await fetch(`${Oc}/v1/${l}`);if(!i.ok){const s=await i.json().catch(()=>({error:`HTTP ${i.status}`}));throw new Error(s.error??`HTTP ${i.status}`)}return i.json()}async function Qg(l){const i=await fetch(`${Oc}/v1/${l}`,{method:"DELETE"});if(!i.ok){const s=await i.json().catch(()=>({error:`HTTP ${i.status}`}));throw new Error(s.error??`HTTP ${i.status}`)}return i.json()}const Rn={start:l=>Ci(`agents/${encodeURIComponent(l)}/start`),stop:l=>Ci(`agents/${encodeURIComponent(l)}/stop`),destroy:l=>Qg(`agents/${encodeURIComponent(l)}?force=true`),prompt:(l,i)=>Ci(`agents/${encodeURIComponent(l)}/prompt`,{message:i}),status:l=>ji(`agents/${encodeURIComponent(l)}`),sessions:l=>ji(`agents/${encodeURIComponent(l)}/sessions`),conversation:(l,i)=>ji(`agents/${encodeURIComponent(l)}/sessions/${encodeURIComponent(i)}`),logs:l=>ji(`agents/${encodeURIComponent(l)}/logs`)},Ni={list:l=>ji(`sessions${l?`?agentName=${encodeURIComponent(l)}`:""}`),create:(l,i)=>Ci("sessions",{agentName:l,clientId:i}),prompt:(l,i)=>Ci(`sessions/${encodeURIComponent(l)}/prompt`,{message:i}),close:l=>Qg(`sessions/${encodeURIComponent(l)}`)},EN={start:{verb:"Starting",past:"started"},stop:{verb:"Stopping",past:"stopped"},destroy:{verb:"Destroying",past:"destroyed"}};function Kg(l){const[i,s]=S.useState(null),{addToast:r}=Yg(),c=S.useCallback(async f=>{const h=EN[f];s(f);try{return f==="start"?await Rn.start(l):f==="stop"?await Rn.stop(l):f==="destroy"&&await Rn.destroy(l),r({title:`Agent ${h.past}`,description:`"${l}" has been ${h.past} successfully.`,variant:"success",duration:3e3}),!0}catch(y){const p=y instanceof Error?y.message:String(y);return r({title:`Failed to ${f} agent`,description:`${l}: ${p}`,variant:"error",duration:6e3,action:f!=="destroy"?{label:"Retry",onClick:()=>void c(f)}:void 0}),!1}finally{s(null)}},[l,r]);return{loading:i,execute:c}}const Dp={repo:"bg-purple-50 text-purple-700 border-purple-200",service:"bg-orange-50 text-orange-700 border-orange-200",employee:"bg-blue-50 text-blue-700 border-blue-200"};function wN({agent:l,error:i}){const{t:s}=Qe(),r=Di(),c=l.archetype??"repo",f=l.status==="running",h=l.status==="error"||l.status==="crashed",{loading:y,execute:p}=Kg(l.name);return d.jsx(nt,{className:"group relative transition-shadow hover:shadow-md cursor-pointer",onClick:()=>r(`/agents/${encodeURIComponent(l.name)}`),children:d.jsxs(at,{className:"p-4",children:[d.jsxs("div",{className:"flex items-start justify-between",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-lg bg-muted",children:d.jsx(dt,{className:"h-4.5 w-4.5 text-muted-foreground"})}),d.jsxs("div",{className:"min-w-0",children:[d.jsx("h3",{className:"truncate text-sm font-semibold",children:l.name}),d.jsx(Rc,{status:l.status})]})]}),d.jsxs(jN,{trigger:d.jsx(ct,{variant:"ghost",size:"icon",className:"h-7 w-7 opacity-0 group-hover:opacity-100 transition-opacity",children:y?d.jsx(Cn,{className:"h-3.5 w-3.5 animate-spin"}):d.jsx(w1,{className:"h-3.5 w-3.5"})}),children:[f?d.jsxs(Sl,{onClick:()=>void p("stop"),children:[d.jsx(xg,{className:"h-3.5 w-3.5"}),s("common.stop")]}):d.jsxs(Sl,{onClick:()=>void p("start"),children:[d.jsx(Ec,{className:"h-3.5 w-3.5"}),s("common.start")]}),h&&d.jsxs(Sl,{onClick:()=>void p("start"),children:[d.jsx(Oi,{className:"h-3.5 w-3.5"}),s("common.retry","Retry")]}),d.jsxs(Sl,{onClick:()=>r(`/agents/${encodeURIComponent(l.name)}/chat`),children:[d.jsx(Nl,{className:"h-3.5 w-3.5"}),s("common.chat")]}),d.jsxs(Sl,{onClick:()=>r(`/agents/${encodeURIComponent(l.name)}`),children:[d.jsx(C1,{className:"h-3.5 w-3.5"}),s("common.details")]}),d.jsxs(Sl,{className:"text-destructive hover:!bg-destructive/10 hover:!text-destructive",onClick:()=>void p("destroy"),children:[d.jsx(bg,{className:"h-3.5 w-3.5"}),s("common.destroy")]})]})]}),h&&i&&d.jsxs("div",{className:"mt-2 flex items-start gap-1.5 rounded-md bg-red-500/10 px-2.5 py-1.5",children:[d.jsx(jr,{className:"mt-0.5 h-3 w-3 shrink-0 text-red-500"}),d.jsxs("div",{className:"min-w-0 flex-1",children:[d.jsx("p",{className:"text-xs text-red-600 dark:text-red-400 line-clamp-2",children:i.message}),i.code&&d.jsx("span",{className:"text-[10px] text-red-500/70 font-mono",children:i.code})]}),d.jsx(ct,{variant:"ghost",size:"icon",className:"h-5 w-5 shrink-0 text-red-500 hover:text-red-600 hover:bg-red-500/10",onClick:g=>{g.stopPropagation(),p("start")},children:d.jsx(Oi,{className:"h-3 w-3"})})]}),d.jsxs("div",{className:"mt-3 flex flex-wrap items-center gap-1.5",children:[d.jsx(Nt,{variant:"outline",className:Dp[c]??Dp.repo,children:c}),l.templateName&&d.jsx(Nt,{variant:"secondary",className:"font-normal",children:l.templateName})]}),d.jsxs("div",{className:"mt-3 flex items-center gap-3 text-xs text-muted-foreground",children:[l.pid&&d.jsxs("span",{children:["PID ",l.pid]}),l.startedAt&&f&&d.jsx("span",{children:TN(l.startedAt)}),l.launchMode&&d.jsx("span",{children:l.launchMode})]})]})})}function TN(l){const i=typeof l=="string"?Date.parse(l):l;if(Number.isNaN(i))return"—";const s=Math.floor((Date.now()-i)/1e3),r=Math.floor(s/3600),c=Math.floor(s%3600/60);return r>0?`${r}h ${c}m`:c>0?`${c}m`:`${s}s`}function CN({className:l,...i}){return d.jsx("div",{className:Ue("animate-pulse rounded-md bg-primary/10",l),...i})}function Zg(l){const i=l.payload??{};return{message:i["error.message"]??i.message??l.event,code:i["error.code"]??void 0,timestamp:l.ts}}function AN(l){const{events:i}=Zt();return S.useMemo(()=>{if(!l)return null;for(const s of i)if(s.agentName===l&&s.event==="error")return Zg(s);return null},[i,l])}function RN(){const{events:l}=Zt();return S.useMemo(()=>{const i=new Map;for(const s of l)s.event==="error"&&s.agentName&&!i.has(s.agentName)&&i.set(s.agentName,Zg(s));return i},[l])}function Jg({agents:l,loading:i}){const{t:s}=Qe(),r=RN();return i?d.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:Array.from({length:4}).map((c,f)=>d.jsx(CN,{className:"h-[140px] rounded-xl"},f))}):l.length===0?d.jsxs("div",{className:"flex flex-col items-center justify-center rounded-xl border border-dashed py-12 text-center",children:[d.jsx(dt,{className:"mb-3 h-10 w-10 text-muted-foreground/50"}),d.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:s("agents.noAgents")}),d.jsx("p",{className:"mt-1 text-xs text-muted-foreground/70",children:s("agents.createHint")})]}):d.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:l.map(c=>d.jsx(wN,{agent:c,error:r.get(c.name)??null},c.name))})}const zc=S.forwardRef(({className:l,...i},s)=>d.jsx("div",{className:"relative w-full overflow-auto",children:d.jsx("table",{ref:s,className:Ue("w-full caption-bottom text-sm",l),...i})}));zc.displayName="Table";const Mc=S.forwardRef(({className:l,...i},s)=>d.jsx("thead",{ref:s,className:Ue("[&_tr]:border-b",l),...i}));Mc.displayName="TableHeader";const _c=S.forwardRef(({className:l,...i},s)=>d.jsx("tbody",{ref:s,className:Ue("[&_tr:last-child]:border-0",l),...i}));_c.displayName="TableBody";const zi=S.forwardRef(({className:l,...i},s)=>d.jsx("tr",{ref:s,className:Ue("border-b transition-colors hover:bg-muted/50",l),...i}));zi.displayName="TableRow";const en=S.forwardRef(({className:l,...i},s)=>d.jsx("th",{ref:s,className:Ue("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",l),...i}));en.displayName="TableHead";const tn=S.forwardRef(({className:l,...i},s)=>d.jsx("td",{ref:s,className:Ue("p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",l),...i}));tn.displayName="TableCell";const sa=S.forwardRef(({className:l,children:i,...s},r)=>d.jsx("div",{ref:r,className:Ue("relative overflow-auto",l),...s,children:i}));sa.displayName="ScrollArea";const ON={"agent:":"bg-blue-50 text-blue-700 border-blue-200","process:":"bg-emerald-50 text-emerald-700 border-emerald-200","session:":"bg-violet-50 text-violet-700 border-violet-200","prompt:":"bg-amber-50 text-amber-700 border-amber-200","actant:":"bg-neutral-100 text-neutral-700 border-neutral-300","plugin:":"bg-orange-50 text-orange-700 border-orange-200"};function zN(l){for(const[i,s]of Object.entries(ON))if(l.startsWith(i))return s;return"bg-neutral-50 text-neutral-600 border-neutral-200"}function MN({events:l,limit:i=20}){const{t:s}=Qe(),r=l.slice(0,i);return r.length===0?d.jsxs("div",{className:"flex flex-col items-center justify-center rounded-xl border border-dashed py-8 text-center",children:[d.jsx(wc,{className:"mb-2 h-8 w-8 text-muted-foreground/40"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:s("events.noRecent")})]}):d.jsx(sa,{className:"max-h-[320px]",children:d.jsxs(zc,{children:[d.jsx(Mc,{children:d.jsxs(zi,{children:[d.jsx(en,{className:"w-[100px]",children:s("events.colTime")}),d.jsx(en,{children:s("events.colEvent")}),d.jsx(en,{children:s("events.colAgent")}),d.jsx(en,{className:"w-[100px]",children:s("events.colSource")})]})}),d.jsx(_c,{children:r.map((c,f)=>d.jsxs(zi,{children:[d.jsx(tn,{className:"font-mono text-xs text-muted-foreground",children:new Date(c.ts).toLocaleTimeString()}),d.jsx(tn,{children:d.jsx(Nt,{variant:"outline",className:zN(c.event),children:c.event})}),d.jsx(tn,{className:"text-sm",children:c.agentName??"—"}),d.jsx(tn,{className:"text-xs text-muted-foreground",children:c.caller??""})]},`${c.ts}-${f}`))})]})})}function _N(){const{t:l}=Qe(),{agents:i,events:s,connected:r}=Zt(),c=S.useMemo(()=>{const f=i.filter(p=>p.status==="running").length,h=i.filter(p=>["stopped","created","stopping"].includes(p.status)).length,y=i.filter(p=>["error","crashed"].includes(p.status)).length;return{total:i.length,running:f,stopped:h,errored:y}},[i]);return d.jsxs("div",{className:"mx-auto max-w-7xl space-y-8",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:l("dashboard.title")}),d.jsx("p",{className:"text-sm text-muted-foreground mt-1",children:l("dashboard.subtitle")})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-4",children:[d.jsx(ar,{label:l("dashboard.totalAgents"),value:c.total,icon:d.jsx(dt,{className:"h-4 w-4 text-muted-foreground"})}),d.jsx(ar,{label:l("dashboard.running"),value:c.running,icon:d.jsx(Ec,{className:"h-4 w-4 text-emerald-500"}),accent:"text-emerald-600"}),d.jsx(ar,{label:l("dashboard.stopped"),value:c.stopped,icon:d.jsx(X1,{className:"h-4 w-4 text-neutral-400"})}),d.jsx(ar,{label:l("dashboard.error"),value:c.errored,icon:d.jsx(G1,{className:"h-4 w-4 text-red-500"}),accent:c.errored>0?"text-red-600":void 0})]}),d.jsxs("section",{children:[d.jsx("h3",{className:"mb-4 text-lg font-semibold",children:l("dashboard.agents")}),d.jsx(Jg,{agents:i,loading:!r&&i.length===0})]}),d.jsxs("section",{children:[d.jsx("h3",{className:"mb-4 text-lg font-semibold",children:l("dashboard.recentEvents")}),d.jsx(MN,{events:s})]})]})}function ar({label:l,value:i,icon:s,accent:r}){return d.jsx(nt,{children:d.jsxs(at,{className:"flex items-center gap-4 p-4",children:[d.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-muted",children:s}),d.jsxs("div",{children:[d.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:l}),d.jsx("p",{className:`text-2xl font-bold ${r??""}`,children:i})]})]})})}function DN(){const{t:l}=Qe(),{agents:i,canvas:s}=Zt(),r=i.filter(h=>h.status==="running"&&h.archetype==="employee"),c=new Set(r.map(h=>h.name)),f=new Map;for(const h of s)c.has(h.agentName)&&f.set(h.agentName,h);return d.jsxs("div",{className:"mx-auto max-w-7xl space-y-8",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:l("canvas.title")}),d.jsx(Nt,{variant:"outline",className:"bg-violet-50 text-violet-700 border-violet-200",children:l("canvas.preview")})]}),d.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:l("canvas.subtitle")})]}),d.jsx(nt,{className:"border-dashed",children:d.jsx(at,{className:"p-6",children:d.jsxs("div",{className:"flex items-start gap-4",children:[d.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-violet-100",children:d.jsx(fc,{className:"h-5 w-5 text-violet-600"})}),d.jsxs("div",{className:"space-y-3",children:[d.jsx("h3",{className:"font-semibold",children:l("canvas.heading")}),d.jsx("p",{className:"text-sm text-muted-foreground leading-relaxed",children:l("canvas.description")}),d.jsx(Ma,{}),d.jsxs("div",{className:"grid gap-3 sm:grid-cols-3",children:[d.jsx(lc,{icon:d.jsx(dt,{className:"h-4 w-4 text-blue-600"}),title:l("canvas.featureAgentTitle"),description:l("canvas.featureAgentDesc")}),d.jsx(lc,{icon:d.jsx(fc,{className:"h-4 w-4 text-violet-600"}),title:l("canvas.featureSandboxTitle"),description:l("canvas.featureSandboxDesc")}),d.jsx(lc,{icon:d.jsx(gS,{className:"h-4 w-4 text-amber-600"}),title:l("canvas.featureRealtimeTitle"),description:l("canvas.featureRealtimeDesc")})]})]})]})})}),d.jsxs("section",{children:[d.jsx("h3",{className:"mb-4 text-lg font-semibold",children:l("canvas.agentSlots")}),r.length===0&&f.size===0?d.jsxs("div",{className:"flex flex-col items-center justify-center rounded-xl border border-dashed py-12 text-center",children:[d.jsx(dt,{className:"mb-3 h-10 w-10 text-muted-foreground/40"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:l("canvas.emptySlots")})]}):d.jsx("div",{className:"grid gap-4 sm:grid-cols-2 lg:grid-cols-3",children:r.map(h=>{const y=f.get(h.name);return d.jsxs(nt,{className:"relative overflow-hidden",children:[d.jsx("div",{className:"absolute inset-x-0 top-0 h-1 bg-gradient-to-r from-violet-500 to-blue-500"}),d.jsxs(at,{className:"p-5 pt-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("div",{className:"flex h-7 w-7 items-center justify-center rounded-md bg-muted",children:d.jsx(dt,{className:"h-3.5 w-3.5 text-muted-foreground"})}),d.jsx("span",{className:"text-sm font-semibold",children:h.name})]}),d.jsx(Nt,{variant:"secondary",className:"text-[10px]",children:y?y.title??"canvas":h.archetype??"agent"})]}),y?d.jsxs("div",{className:"mt-3",children:[d.jsx("iframe",{srcDoc:y.html,sandbox:"allow-scripts",className:"w-full rounded border bg-white",style:{minHeight:200,height:"auto"},title:`Canvas: ${h.name}`}),d.jsx("p",{className:"mt-1 text-right text-[10px] text-muted-foreground/50",children:l("canvas.updatedAt",{time:new Date(y.updatedAt).toLocaleTimeString()})})]}):d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"mt-4 space-y-2",children:[d.jsx("div",{className:"h-3 w-4/5 animate-pulse rounded bg-muted"}),d.jsx("div",{className:"h-3 w-3/5 animate-pulse rounded bg-muted"}),d.jsx("div",{className:"h-3 w-2/3 animate-pulse rounded bg-muted"})]}),d.jsx("p",{className:"mt-4 text-center text-[11px] text-muted-foreground/60",children:l("canvas.awaitingStream")})]})]})]},h.name)})})]})]})}function lc({icon:l,title:i,description:s}){return d.jsxs("div",{className:"space-y-1.5",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[l,d.jsx("span",{className:"text-sm font-medium",children:i})]}),d.jsx("p",{className:"text-xs text-muted-foreground leading-relaxed",children:s})]})}const Dc=S.forwardRef(({className:l,type:i,...s},r)=>d.jsx("input",{type:i,className:Ue("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors","file:border-0 file:bg-transparent file:text-sm file:font-medium","placeholder:text-muted-foreground","focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring","disabled:cursor-not-allowed disabled:opacity-50",l),ref:r,...s}));Dc.displayName="Input";const LN=["all","running","stopped","error","crashed"];function kN(){const{t:l}=Qe(),{agents:i,connected:s}=Zt(),[r,c]=S.useState(""),[f,h]=S.useState("all"),y=S.useMemo(()=>{let g=i;if(r){const b=r.toLowerCase();g=g.filter(x=>{var T,C;return x.name.toLowerCase().includes(b)||((T=x.templateName)==null?void 0:T.toLowerCase().includes(b))||((C=x.archetype)==null?void 0:C.toLowerCase().includes(b))})}return f!=="all"&&(g=g.filter(b=>b.status===f)),g},[i,r,f]),p=S.useMemo(()=>{const g={all:i.length};for(const b of i)g[b.status]=(g[b.status]??0)+1;return g},[i]);return d.jsxs("div",{className:"mx-auto max-w-7xl space-y-6",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:l("agents.title")}),d.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:l("agents.subtitle")})]}),d.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[d.jsxs("div",{className:"relative w-full max-w-xs",children:[d.jsx(yg,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),d.jsx(Dc,{placeholder:l("agents.searchPlaceholder"),value:r,onChange:g=>c(g.target.value),className:"pl-9"})]}),d.jsxs("div",{className:"flex items-center gap-1.5",children:[d.jsx(R1,{className:"mr-1 h-4 w-4 text-muted-foreground"}),LN.map(g=>d.jsxs(Nt,{variant:f===g?"default":"outline",className:"cursor-pointer select-none capitalize",onClick:()=>h(g),children:[l(g==="all"?"agents.all":`status.${g}`),p[g]!=null&&d.jsx("span",{className:"ml-1 opacity-60",children:p[g]})]},g))]})]}),d.jsx(Jg,{agents:y,loading:!s&&i.length===0}),y.length===0&&i.length>0&&d.jsxs("div",{className:"flex flex-col items-center py-8 text-center",children:[d.jsx(dt,{className:"mb-2 h-8 w-8 text-muted-foreground/40"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:l("agents.noMatch")})]})]})}function UN(){const{t:l}=Qe(),{name:i}=Fp(),s=Di(),{agents:r}=Zt(),[c,f]=S.useState("overview"),h=S.useMemo(()=>r.find(w=>w.name===i),[r,i]),y=(h==null?void 0:h.status)==="running",p=(h==null?void 0:h.status)==="error"||(h==null?void 0:h.status)==="crashed",g=AN(i),{loading:b,execute:x}=Kg(i??""),T=async()=>{await x("destroy")&&s("/agents")};if(!h)return d.jsxs("div",{className:"mx-auto max-w-4xl space-y-4",children:[d.jsxs(ct,{variant:"ghost",size:"sm",onClick:()=>s("/agents"),children:[d.jsx(pr,{className:"h-4 w-4"})," ",l("common.back")]}),d.jsxs("div",{className:"flex flex-col items-center py-16 text-center",children:[d.jsx(dt,{className:"mb-3 h-10 w-10 text-muted-foreground/40"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:l("agentDetail.notFound",{name:i})})]})]});const C=[{key:"overview",label:l("agentDetail.tabOverview"),icon:d.jsx(dt,{className:"h-4 w-4"})},{key:"sessions",label:l("agentDetail.tabSessions"),icon:d.jsx(Nl,{className:"h-4 w-4"})},{key:"logs",label:l("agentDetail.tabLogs"),icon:d.jsx(Tc,{className:"h-4 w-4"})}];return d.jsxs("div",{className:"mx-auto max-w-4xl space-y-6",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx(ct,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>s("/agents"),children:d.jsx(pr,{className:"h-4 w-4"})}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("h2",{className:"text-2xl font-bold tracking-tight truncate",children:h.name}),d.jsx(Rc,{status:h.status})]}),d.jsxs("p",{className:"text-sm text-muted-foreground mt-0.5",children:[h.templateName&&d.jsx("span",{children:h.templateName}),h.archetype&&d.jsx("span",{className:"ml-2 capitalize",children:h.archetype}),h.pid&&d.jsxs("span",{className:"ml-2",children:["PID ",h.pid]})]})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsxs(ct,{variant:"outline",size:"sm",onClick:()=>s(`/agents/${encodeURIComponent(h.name)}/chat`),children:[d.jsx(Nl,{className:"h-4 w-4"}),l("common.chat")]}),p&&d.jsxs(ct,{variant:"outline",size:"sm",className:"border-amber-500/50 text-amber-600 hover:bg-amber-500/10",onClick:()=>void x("start"),disabled:b==="start",children:[b==="start"?d.jsx(Cn,{className:"h-4 w-4 animate-spin"}):d.jsx(Oi,{className:"h-4 w-4"}),l("common.retry","Retry")]}),y?d.jsxs(ct,{variant:"outline",size:"sm",onClick:()=>void x("stop"),disabled:b==="stop",children:[b==="stop"?d.jsx(Cn,{className:"h-4 w-4 animate-spin"}):d.jsx(xg,{className:"h-4 w-4"}),l("common.stop")]}):p?null:d.jsxs(ct,{variant:"outline",size:"sm",onClick:()=>void x("start"),disabled:b==="start",children:[b==="start"?d.jsx(Cn,{className:"h-4 w-4 animate-spin"}):d.jsx(Ec,{className:"h-4 w-4"}),l("common.start")]}),d.jsxs(ct,{variant:"destructive",size:"sm",onClick:()=>void T(),disabled:b==="destroy",children:[b==="destroy"?d.jsx(Cn,{className:"h-4 w-4 animate-spin"}):d.jsx(bg,{className:"h-4 w-4"}),l("common.destroy")]})]})]}),p&&g&&d.jsx(nt,{className:"border-red-500/30 bg-red-500/5",children:d.jsxs(at,{className:"flex items-start gap-3 p-4",children:[d.jsx(jr,{className:"mt-0.5 h-5 w-5 shrink-0 text-red-500"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm font-medium text-red-600 dark:text-red-400",children:h.status==="crashed"?l("agentDetail.crashedTitle","Agent crashed unexpectedly"):l("agentDetail.errorTitle","Agent encountered an error")}),d.jsx("p",{className:"mt-1 text-sm text-red-600/80 dark:text-red-400/80",children:g.message}),d.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[g.code&&d.jsx(Nt,{variant:"outline",className:"border-red-500/30 text-red-500 text-xs font-mono",children:g.code}),d.jsx("span",{className:"text-xs text-muted-foreground",children:new Date(g.timestamp).toLocaleString()})]})]}),d.jsxs(ct,{variant:"outline",size:"sm",className:"shrink-0 border-red-500/30 text-red-600 hover:bg-red-500/10",onClick:()=>void x("start"),disabled:b==="start",children:[b==="start"?d.jsx(Cn,{className:"h-4 w-4 animate-spin"}):d.jsx(Oi,{className:"h-4 w-4"}),l("common.retry","Retry")]})]})}),d.jsx("div",{className:"flex gap-1 border-b",children:C.map(w=>d.jsxs("button",{className:`flex items-center gap-1.5 px-4 py-2 text-sm font-medium border-b-2 transition-colors ${c===w.key?"border-primary text-primary":"border-transparent text-muted-foreground hover:text-foreground"}`,onClick:()=>f(w.key),children:[w.icon,w.label]},w.key))}),c==="overview"&&d.jsx(HN,{agent:h}),c==="sessions"&&d.jsx(BN,{agentName:h.name}),c==="logs"&&d.jsx(VN,{agentName:h.name})]})}function HN({agent:l}){const{t:i}=Qe(),s=[{label:i("agentDetail.fieldName"),value:l.name},{label:i("agentDetail.fieldStatus"),value:l.status},{label:i("agentDetail.fieldArchetype"),value:l.archetype??"—"},{label:i("agentDetail.fieldTemplate"),value:l.templateName??"—"},{label:i("agentDetail.fieldPid"),value:l.pid??"—"},{label:i("agentDetail.fieldLaunchMode"),value:l.launchMode??"—"},{label:i("agentDetail.fieldWorkspace"),value:l.workspaceDir??"—"},{label:i("agentDetail.fieldUptime"),value:l.startedAt&&l.status==="running"?YN(l.startedAt):"—"}];return d.jsx(nt,{children:d.jsx(at,{className:"p-0",children:d.jsx("div",{className:"divide-y",children:s.map(r=>d.jsxs("div",{className:"flex items-center justify-between px-4 py-3",children:[d.jsx("span",{className:"text-sm text-muted-foreground",children:r.label}),d.jsx("span",{className:"text-sm font-medium font-mono",children:String(r.value)})]},r.label))})})})}function BN({agentName:l}){const{t:i}=Qe(),s=Di(),[r,c]=S.useState([]),[f,h]=S.useState(!0),[y,p]=S.useState(null),[g,b]=S.useState([]),[x,T]=S.useState(!1);return S.useEffect(()=>{let C=!1;return h(!0),Rn.sessions(l).then(w=>{C||(c(w),h(!1))}).catch(()=>{C||h(!1)}),()=>{C=!0}},[l]),S.useEffect(()=>{if(!y){b([]);return}let C=!1;return T(!0),Rn.conversation(l,y).then(w=>{C||(b(w),T(!1))}).catch(()=>{C||T(!1)}),()=>{C=!0}},[l,y]),f?d.jsx("div",{className:"py-8 text-center text-sm text-muted-foreground",children:i("agentDetail.loadingSessions")}):r.length===0?d.jsxs("div",{className:"flex flex-col items-center py-12 text-center",children:[d.jsx(Nl,{className:"mb-3 h-8 w-8 text-muted-foreground/40"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:i("agentDetail.noSessions")}),d.jsxs(ct,{variant:"outline",size:"sm",className:"mt-4",onClick:()=>s(`/agents/${encodeURIComponent(l)}/chat`),children:[d.jsx(Nl,{className:"h-4 w-4"}),i("agentDetail.startConversation")]})]}):d.jsxs("div",{className:"grid gap-4 lg:grid-cols-[280px_1fr]",children:[d.jsx(nt,{children:d.jsx(at,{className:"p-2",children:d.jsx(sa,{className:"max-h-[500px]",children:r.map(C=>d.jsxs("button",{className:`w-full flex items-center gap-2 rounded-md px-3 py-2 text-left text-sm transition-colors ${y===C.sessionId?"bg-accent text-accent-foreground":"hover:bg-muted"}`,onClick:()=>p(C.sessionId),children:[d.jsx(jc,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground"}),d.jsxs("div",{className:"min-w-0 flex-1",children:[d.jsxs("div",{className:"truncate font-medium",children:[C.sessionId.slice(0,8),"..."]}),d.jsxs("div",{className:"text-xs text-muted-foreground",children:[new Date(C.startTs).toLocaleString()," · ",C.messageCount," ",i("agentDetail.msgs"),C.toolCallCount>0&&` · ${C.toolCallCount} ${i("agentDetail.tools")}`]})]}),d.jsx(y1,{className:"h-3.5 w-3.5 text-muted-foreground"})]},C.sessionId))})})}),d.jsx(nt,{children:d.jsx(at,{className:"p-4",children:y?x?d.jsx("div",{className:"py-8 text-center text-sm text-muted-foreground",children:i("agentDetail.loadingConversation")}):g.length===0?d.jsx("div",{className:"py-8 text-center text-sm text-muted-foreground",children:i("agentDetail.noConversation")}):d.jsx(sa,{className:"max-h-[500px]",children:d.jsx("div",{className:"space-y-4",children:g.map((C,w)=>d.jsx(qN,{turn:C},w))})}):d.jsx("div",{className:"py-8 text-center text-sm text-muted-foreground",children:i("agentDetail.selectSession")})})})]})}function qN({turn:l}){const{t:i}=Qe(),s=l.role==="user";return d.jsx("div",{className:`flex ${s?"justify-end":"justify-start"}`,children:d.jsxs("div",{className:`max-w-[80%] rounded-xl px-4 py-2.5 text-sm ${s?"bg-primary text-primary-foreground":"bg-muted"}`,children:[d.jsx("div",{className:"whitespace-pre-wrap break-words",children:l.content||i("agentDetail.empty")}),l.toolCalls.length>0&&d.jsx("div",{className:"mt-2 space-y-1",children:l.toolCalls.map(r=>d.jsxs("div",{className:"flex items-center gap-1.5 rounded bg-background/50 px-2 py-1 text-xs font-mono",children:[d.jsx(Tc,{className:"h-3 w-3 shrink-0"}),d.jsx("span",{className:"truncate",children:r.title??r.toolCallId}),r.status&&d.jsx(Nt,{variant:"secondary",className:"ml-auto text-[10px]",children:r.status})]},r.toolCallId))}),d.jsx("div",{className:"mt-1 text-[10px] opacity-60",children:new Date(l.ts).toLocaleTimeString()})]})})}function VN({agentName:l}){const{t:i}=Qe(),[s,r]=S.useState([]),[c,f]=S.useState(!0);return S.useEffect(()=>{let h=!1;return f(!0),Rn.logs(l).then(y=>{h||(r(y.lines),f(!1))}).catch(()=>{h||(r([]),f(!1))}),()=>{h=!0}},[l]),c?d.jsx("div",{className:"py-8 text-center text-sm text-muted-foreground",children:i("agentDetail.loadingLogs")}):s.length===0?d.jsxs("div",{className:"flex flex-col items-center py-12 text-center",children:[d.jsx(Tc,{className:"mb-3 h-8 w-8 text-muted-foreground/40"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:i("agentDetail.noLogs")})]}):d.jsx(nt,{children:d.jsx(at,{className:"p-0",children:d.jsx(sa,{className:"max-h-[500px]",children:d.jsx("pre",{className:"p-4 text-xs leading-relaxed font-mono text-foreground/80 whitespace-pre-wrap break-all",children:s.join(`
|
|
274
|
+
`)})})})})}function YN(l){const i=typeof l=="string"?Date.parse(l):l;if(Number.isNaN(i))return"—";const s=Math.floor((Date.now()-i)/1e3),r=Math.floor(s/3600),c=Math.floor(s%3600/60);return r>0?`${r}h ${c}m`:c>0?`${c}m`:`${s}s`}const Lp="dashboard-chat";function GN(){const{t:l}=Qe(),{name:i}=Fp(),s=Di(),{agents:r}=Zt(),[c,f]=S.useState([]),[h,y]=S.useState(""),[p,g]=S.useState(!1),[b,x]=S.useState(null),[T,C]=S.useState("loading"),[w,D]=S.useState(0),L=S.useRef(null),V=S.useRef(null),$=S.useRef(!1),X=S.useMemo(()=>r.find(W=>W.name===i),[r,i]),K=(X==null?void 0:X.status)==="running",P=S.useCallback(()=>{requestAnimationFrame(()=>{var W;(W=L.current)==null||W.scrollTo({top:L.current.scrollHeight,behavior:"smooth"})})},[]);S.useEffect(()=>{P()},[c,P]),S.useEffect(()=>{!i||$.current||($.current=!0,(async()=>{try{let W=!1;try{const I=(await Ni.list(i)).find(J=>J.state==="active"&&J.agentName===i);I&&(x(I.sessionId),W=!0)}catch{}const oe=(await Rn.sessions(i)).filter(F=>F.messageCount>0);if(oe.length>0){const F=oe.reduce((J,R)=>J.startTs>R.startTs?J:R),I=await Rn.conversation(i,F.sessionId);if(I.length>0){const J=$N(I);f(J),D(J.length),C(W?"active":"history");return}}C(W?"active":"new")}catch{C("new")}})())},[i]);async function fe(){if(b&&T==="active")return b;try{const W=await Ni.create(i,Lp);return x(W.sessionId),C("active"),W.sessionId}catch{return""}}const Q=async()=>{var oe;if(!i||!h.trim()||p)return;if(!K){f(F=>[...F,{id:crypto.randomUUID(),role:"error",content:l("chat.notRunning",{name:i}),ts:Date.now()}]);return}const W=h.trim();y("");const Oe={id:crypto.randomUUID(),role:"user",content:W,ts:Date.now()};f(F=>[...F,Oe]),g(!0);try{const F=await fe();let I,J;if(F)I=(await Ni.prompt(F,W)).text,J=F;else{const Y=await Rn.prompt(i,W);I=Y.response,J=Y.sessionId,x(J),C("active")}const R={id:crypto.randomUUID(),role:"assistant",content:I,ts:Date.now()};f(Y=>[...Y,R])}catch(F){const I={id:crypto.randomUUID(),role:"error",content:F instanceof Error?F.message:String(F),ts:Date.now()};f(J=>[...J,I])}finally{g(!1),(oe=V.current)==null||oe.focus()}},k=async()=>{if(i){if(b&&T==="active")try{await Ni.close(b)}catch{}try{const W=await Ni.create(i,Lp);x(W.sessionId),C("active"),f([{id:crypto.randomUUID(),role:"system",content:l("chat.newConversation"),ts:Date.now()}]),D(0)}catch{x(null),C("new"),f([]),D(0)}}},ie=W=>{W.key==="Enter"&&!W.shiftKey&&(W.preventDefault(),Q())};return d.jsxs("div",{className:"mx-auto flex h-[calc(100vh-4rem)] max-w-4xl flex-col",children:[d.jsxs("div",{className:"flex items-center gap-3 border-b px-2 py-3",children:[d.jsx(ct,{variant:"ghost",size:"icon",className:"h-8 w-8",onClick:()=>s(`/agents/${encodeURIComponent(i??"")}`),children:d.jsx(pr,{className:"h-4 w-4"})}),d.jsx("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-muted",children:d.jsx(dt,{className:"h-4 w-4 text-muted-foreground"})}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("h3",{className:"text-sm font-semibold truncate",children:i}),X&&d.jsx(Rc,{status:X.status})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[b&&d.jsxs("span",{className:"text-xs text-muted-foreground font-mono",children:[b.slice(0,8),"..."]}),d.jsxs(ct,{variant:"outline",size:"sm",className:"h-7 gap-1.5 text-xs",onClick:k,disabled:p||!K,children:[d.jsx(Oi,{className:"h-3 w-3"}),l("chat.newChat")]})]})]}),T==="history"&&w>0&&d.jsxs("div",{className:"flex items-center justify-center gap-2 border-b bg-muted/30 px-4 py-1.5 text-xs text-muted-foreground",children:[d.jsx(_1,{className:"h-3 w-3"}),d.jsx("span",{children:l("chat.historyBanner",{count:w})}),d.jsx("span",{className:"mx-1",children:"·"}),d.jsx("button",{className:"text-primary hover:underline",onClick:k,children:l("chat.startFresh")})]}),T==="active"&&w>0&&d.jsx("div",{className:"flex items-center justify-center gap-2 border-b bg-emerald-50 dark:bg-emerald-950/20 px-4 py-1.5 text-xs text-emerald-700 dark:text-emerald-400",children:d.jsx("span",{children:l("chat.continuingBanner",{count:w})})}),d.jsx(sa,{ref:L,className:"flex-1 px-4 py-4",children:T==="loading"?d.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-center",children:[d.jsx(Cn,{className:"mb-4 h-8 w-8 animate-spin text-muted-foreground/30"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:l("chat.loadingConversation")})]}):c.length===0?d.jsxs("div",{className:"flex flex-col items-center justify-center py-20 text-center",children:[d.jsx(dt,{className:"mb-4 h-12 w-12 text-muted-foreground/30"}),d.jsx("p",{className:"text-sm font-medium text-muted-foreground",children:l("chat.startPrompt",{name:i})}),d.jsx("p",{className:`mt-1 text-xs ${K?"text-muted-foreground/70":"text-amber-600 dark:text-amber-400"}`,children:l(K?"chat.readyHint":"chat.stoppedHint")})]}):d.jsxs("div",{className:"space-y-4",children:[c.map(W=>d.jsx(XN,{message:W},W.id)),p&&d.jsx("div",{className:"flex justify-start",children:d.jsxs("div",{className:"flex items-center gap-2 rounded-xl bg-muted px-4 py-3 text-sm text-muted-foreground",children:[d.jsx(Cn,{className:"h-4 w-4 animate-spin"}),l("chat.thinking")]})})]})}),d.jsxs("div",{className:"border-t p-4",children:[d.jsxs("div",{className:"relative flex items-end gap-2",children:[d.jsx(nt,{className:"flex-1",children:d.jsx(at,{className:"p-0",children:d.jsx("textarea",{ref:V,value:h,onChange:W=>y(W.target.value),onKeyDown:ie,placeholder:K?l("chat.inputPlaceholder",{name:i}):l("chat.inputDisabled"),rows:1,className:"w-full resize-none bg-transparent px-4 py-3 text-sm outline-none placeholder:text-muted-foreground max-h-32",style:{minHeight:"44px"},disabled:p||!K})})}),d.jsx(ct,{size:"icon",className:"h-[44px] w-[44px] shrink-0",onClick:Q,disabled:!h.trim()||p||!K,children:p?d.jsx(Cn,{className:"h-4 w-4 animate-spin"}):d.jsx(W1,{className:"h-4 w-4"})})]}),d.jsx("p",{className:"mt-2 text-center text-[11px] text-muted-foreground/60",children:l("chat.sendHint")})]})]})}function $N(l){return l.map(i=>({id:crypto.randomUUID(),role:i.role,content:i.content,ts:i.ts}))}function XN({message:l}){if(l.role==="error")return d.jsx("div",{className:"flex justify-center",children:d.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-destructive/30 bg-destructive/5 px-4 py-2 text-sm text-destructive",children:[d.jsx(jr,{className:"h-4 w-4 shrink-0"}),d.jsx("span",{children:l.content})]})});if(l.role==="system")return d.jsx("div",{className:"flex justify-center",children:d.jsx("div",{className:"rounded-lg bg-muted/50 px-4 py-1.5 text-xs text-muted-foreground",children:l.content})});const i=l.role==="user";return d.jsxs("div",{className:`flex gap-3 ${i?"justify-end":"justify-start"}`,children:[!i&&d.jsx("div",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-muted",children:d.jsx(dt,{className:"h-3.5 w-3.5 text-muted-foreground"})}),d.jsxs("div",{className:`max-w-[75%] rounded-2xl px-4 py-2.5 text-sm ${i?"bg-primary text-primary-foreground":"bg-muted"}`,children:[d.jsx("div",{className:"whitespace-pre-wrap break-words",children:l.content}),d.jsx("div",{className:"mt-1 text-[10px] opacity-50",children:new Date(l.ts).toLocaleTimeString()})]}),i&&d.jsx("div",{className:"flex h-7 w-7 shrink-0 items-center justify-center rounded-full bg-primary/10",children:d.jsx(oS,{className:"h-3.5 w-3.5 text-primary"})})]})}function QN(){const{t:l}=Qe(),{agents:i,events:s}=Zt(),[r,c]=S.useState("all"),f=S.useMemo(()=>i.filter(b=>b.status==="running"),[i]),h=S.useMemo(()=>{const b=new Set;for(const x of s)x.agentName&&b.add(x.agentName);return Array.from(b).sort()},[s]),y=S.useMemo(()=>r==="all"?s:s.filter(b=>b.agentName===r),[s,r]),p=S.useMemo(()=>y.filter(b=>b.event.startsWith("prompt:")),[y]),g=S.useMemo(()=>y.filter(b=>b.event.startsWith("session:")),[y]);return d.jsxs("div",{className:"mx-auto max-w-7xl space-y-6",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:l("activity.title")}),d.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:l("activity.subtitle")})]}),d.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[d.jsx(dt,{className:"mr-1 h-4 w-4 text-muted-foreground"}),d.jsx(Nt,{variant:r==="all"?"default":"outline",className:"cursor-pointer select-none",onClick:()=>c("all"),children:l("activity.filterAll")}),h.map(b=>d.jsx(Nt,{variant:r===b?"default":"outline",className:"cursor-pointer select-none",onClick:()=>c(b),children:b},b))]}),d.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-4",children:[d.jsx(lr,{icon:d.jsx(dt,{className:"h-4 w-4 text-blue-500"}),label:l("activity.activeAgents"),value:f.length}),d.jsx(lr,{icon:d.jsx(Ti,{className:"h-4 w-4 text-emerald-500"}),label:l("activity.recentEvents"),value:y.length}),d.jsx(lr,{icon:d.jsx(Nl,{className:"h-4 w-4 text-violet-500"}),label:l("activity.prompts"),value:p.length}),d.jsx(lr,{icon:d.jsx(jc,{className:"h-4 w-4 text-amber-500"}),label:l("activity.sessions"),value:g.length})]}),d.jsxs(nt,{children:[d.jsx(Oa,{children:d.jsx(za,{className:"text-base",children:l("activity.timeline")})}),d.jsx(at,{children:y.length===0?d.jsxs("div",{className:"flex flex-col items-center py-8 text-center",children:[d.jsx(Ti,{className:"mb-2 h-8 w-8 text-muted-foreground/40"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:l("activity.empty")})]}):d.jsx(sa,{className:"max-h-[500px]",children:d.jsx("div",{className:"space-y-3",children:y.slice(0,50).map((b,x)=>d.jsxs("div",{className:"flex items-start gap-3 rounded-lg border p-3",children:[d.jsx("div",{className:"mt-0.5 flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-muted",children:d.jsx(Ti,{className:"h-3.5 w-3.5 text-muted-foreground"})}),d.jsxs("div",{className:"min-w-0 flex-1",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(Nt,{variant:"outline",className:"text-xs",children:b.event}),b.agentName&&d.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:b.agentName})]}),d.jsxs("p",{className:"mt-1 text-xs text-muted-foreground",children:[new Date(b.ts).toLocaleString()," · ",b.caller??"system"]})]})]},`${b.ts}-${x}`))})})})]})]})}function lr({icon:l,label:i,value:s}){return d.jsx(nt,{children:d.jsxs(at,{className:"flex items-center gap-4 p-4",children:[d.jsx("div",{className:"flex h-10 w-10 items-center justify-center rounded-lg bg-muted",children:l}),d.jsxs("div",{children:[d.jsx("p",{className:"text-xs font-medium text-muted-foreground",children:i}),d.jsx("p",{className:"text-2xl font-bold",children:s})]})]})})}const kp=["all","agent:","process:","session:","prompt:","actant:","plugin:","error"],KN={"agent:":"bg-blue-50 text-blue-700 border-blue-200","process:":"bg-emerald-50 text-emerald-700 border-emerald-200","session:":"bg-violet-50 text-violet-700 border-violet-200","prompt:":"bg-amber-50 text-amber-700 border-amber-200","actant:":"bg-neutral-100 text-neutral-700 border-neutral-300","plugin:":"bg-orange-50 text-orange-700 border-orange-200",error:"bg-red-50 text-red-700 border-red-200"};function Up(l){for(const[i,s]of Object.entries(KN))if(l.startsWith(i))return s;return"bg-neutral-50 text-neutral-600 border-neutral-200"}function ZN(){const{t:l}=Qe(),{events:i}=Zt(),[s,r]=S.useState(""),[c,f]=S.useState("all"),h=S.useMemo(()=>{let p=i;if(c!=="all"&&(p=p.filter(g=>g.event.startsWith(c))),s){const g=s.toLowerCase();p=p.filter(b=>{var x,T;return b.event.toLowerCase().includes(g)||((x=b.agentName)==null?void 0:x.toLowerCase().includes(g))||((T=b.caller)==null?void 0:T.toLowerCase().includes(g))})}return p},[i,s,c]),y=S.useMemo(()=>{const p={all:i.length};for(const g of i)for(const b of kp)b!=="all"&&g.event.startsWith(b)&&(p[b]=(p[b]??0)+1);return p},[i]);return d.jsxs("div",{className:"mx-auto max-w-7xl space-y-6",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:l("events.title")}),d.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:l("events.subtitle")})]}),d.jsxs("div",{className:"flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",children:[d.jsxs("div",{className:"relative w-full max-w-xs",children:[d.jsx(yg,{className:"absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),d.jsx(Dc,{placeholder:l("events.searchPlaceholder"),value:s,onChange:p=>r(p.target.value),className:"pl-9"})]}),d.jsx("div",{className:"flex flex-wrap items-center gap-1.5",children:kp.map(p=>d.jsxs(Nt,{variant:c===p?"default":"outline",className:`cursor-pointer select-none ${c!==p?Up(p==="all"?"":p):""}`,onClick:()=>f(p),children:[p==="all"?l("events.filterAll"):p.replace(":",""),y[p]!=null&&d.jsx("span",{className:"ml-1 opacity-60",children:y[p]})]},p))})]}),d.jsxs(nt,{children:[d.jsx(Oa,{children:d.jsxs(za,{className:"text-base",children:[l("events.logTitle"),d.jsxs("span",{className:"ml-2 text-sm font-normal text-muted-foreground",children:["(",h.length," events)"]})]})}),d.jsx(at,{children:h.length===0?d.jsxs("div",{className:"flex flex-col items-center py-8 text-center",children:[d.jsx(wc,{className:"mb-2 h-8 w-8 text-muted-foreground/40"}),d.jsx("p",{className:"text-sm text-muted-foreground",children:l("events.empty")})]}):d.jsx(sa,{className:"max-h-[600px]",children:d.jsxs(zc,{children:[d.jsx(Mc,{children:d.jsxs(zi,{children:[d.jsx(en,{className:"w-[140px]",children:l("events.colTime")}),d.jsx(en,{children:l("events.colEvent")}),d.jsx(en,{children:l("events.colAgent")}),d.jsx(en,{className:"w-[120px]",children:l("events.colSource")}),d.jsx(en,{children:l("events.colDetails")})]})}),d.jsx(_c,{children:h.slice(0,100).map((p,g)=>d.jsxs(zi,{children:[d.jsx(tn,{className:"font-mono text-xs text-muted-foreground",children:new Date(p.ts).toLocaleTimeString()}),d.jsx(tn,{children:d.jsx(Nt,{variant:"outline",className:Up(p.event),children:p.event})}),d.jsx(tn,{className:"text-sm",children:p.agentName??"—"}),d.jsx(tn,{className:"text-xs text-muted-foreground",children:p.caller??""}),d.jsx(tn,{className:"max-w-[200px] truncate text-xs text-muted-foreground",children:p.payload?JN(p.payload):""})]},`${p.ts}-${g}`))})]})})})]})]})}function JN(l){return Object.entries(l).slice(0,3).map(([s,r])=>`${s}=${String(r)}`).join(", ")}function FN(){const{t:l}=Qe(),{status:i,agents:s,connected:r}=Zt();return d.jsxs("div",{className:"mx-auto max-w-3xl space-y-6",children:[d.jsxs("div",{children:[d.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:l("settings.title")}),d.jsx("p",{className:"mt-1 text-sm text-muted-foreground",children:l("settings.subtitle")})]}),d.jsxs(nt,{children:[d.jsxs(Oa,{children:[d.jsxs(za,{className:"flex items-center gap-2 text-base",children:[d.jsx(P1,{className:"h-4 w-4"}),l("settings.connectionTitle")]}),d.jsx(hc,{children:l("settings.connectionDesc")})]}),d.jsx(at,{children:d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("div",{className:`h-3 w-3 rounded-full ${r?"bg-emerald-500 shadow-sm shadow-emerald-200":"bg-red-500"}`}),d.jsx("span",{className:"text-sm font-medium",children:l(r?"common.connected":"common.disconnected")})]})})]}),i&&d.jsxs(nt,{children:[d.jsx(Oa,{children:d.jsxs(za,{className:"flex items-center gap-2 text-base",children:[d.jsx(j1,{className:"h-4 w-4"}),l("settings.daemonInfo")]})}),d.jsxs(at,{className:"space-y-4",children:[d.jsx(ic,{label:l("settings.version"),value:i.version}),d.jsx(Ma,{}),d.jsx(ic,{label:l("settings.uptime"),value:WN(i.uptime),icon:d.jsx(jc,{className:"h-3.5 w-3.5 text-muted-foreground"})}),d.jsx(Ma,{}),d.jsx(ic,{label:l("settings.managedAgents"),value:String(i.agents),icon:d.jsx(z1,{className:"h-3.5 w-3.5 text-muted-foreground"})})]})]}),d.jsxs(nt,{children:[d.jsxs(Oa,{children:[d.jsxs(za,{className:"flex items-center gap-2 text-base",children:[d.jsx(vg,{className:"h-4 w-4"}),l("settings.agentOverview")]}),d.jsx(hc,{children:l("settings.agentOverviewDesc")})]}),d.jsx(at,{children:s.length===0?d.jsx("p",{className:"text-sm text-muted-foreground",children:l("settings.noAgents")}):d.jsx("div",{className:"flex flex-wrap gap-2",children:Object.entries(s.reduce((c,f)=>(c[f.status]=(c[f.status]??0)+1,c),{})).map(([c,f])=>d.jsxs(Nt,{variant:"outline",className:"capitalize",children:[c,": ",f]},c))})})]}),d.jsxs(nt,{children:[d.jsx(Oa,{children:d.jsx(za,{className:"text-base",children:l("settings.aboutTitle")})}),d.jsxs(at,{className:"text-sm text-muted-foreground space-y-1",children:[d.jsx("p",{children:l("settings.aboutDesc")}),d.jsx("p",{children:d.jsx(a1,{i18nKey:"settings.aboutTransport",components:{code:d.jsx("code",{className:"rounded bg-muted px-1.5 py-0.5 text-xs"})}})}),d.jsx("p",{className:"text-xs",children:l("settings.aboutTauri")})]})]})]})}function ic({label:l,value:i,icon:s}){return d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[s,d.jsx("span",{className:"text-sm text-muted-foreground",children:l})]}),d.jsx("span",{className:"text-sm font-medium",children:i})]})}function WN(l){const i=Math.floor(l/86400),s=Math.floor(l%86400/3600),r=Math.floor(l%3600/60),c=[];return i>0&&c.push(`${i}d`),s>0&&c.push(`${s}h`),c.push(`${r}m`),c.join(" ")}function IN(){const{t:l}=Qe();return d.jsxs("div",{className:"flex flex-col items-center justify-center py-32 text-center",children:[d.jsx("p",{className:"text-6xl font-bold text-muted-foreground/30",children:l("notFound.code")}),d.jsx("p",{className:"mt-4 text-lg text-muted-foreground",children:l("notFound.message")}),d.jsx(ct,{asChild:!0,variant:"outline",className:"mt-6",children:d.jsxs(bc,{to:"/",children:[d.jsx(pr,{className:"mr-2 h-4 w-4"}),l("notFound.backHome")]})})]})}function PN(){return d.jsx(eb,{children:d.jsx(uN,{children:d.jsxs(Ox,{children:[d.jsx(Pt,{path:"/",element:d.jsx(_N,{})}),d.jsx(Pt,{path:"/canvas",element:d.jsx(DN,{})}),d.jsx(Pt,{path:"/agents",element:d.jsx(kN,{})}),d.jsx(Pt,{path:"/agents/:name",element:d.jsx(UN,{})}),d.jsx(Pt,{path:"/agents/:name/chat",element:d.jsx(GN,{})}),d.jsx(Pt,{path:"/activity",element:d.jsx(QN,{})}),d.jsx(Pt,{path:"/events",element:d.jsx(ZN,{})}),d.jsx(Pt,{path:"/settings",element:d.jsx(FN,{})}),d.jsx(Pt,{path:"*",element:d.jsx(IN,{})})]})})})}_0.createRoot(document.getElementById("root")).render(d.jsx(S.StrictMode,{children:d.jsx(PN,{})}));
|