meshy-node 0.8.1 → 0.8.3

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,316 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-BRkkJm1H.js","assets/DashboardShared-CbTbz63G.js","assets/play-DD1AQndq.js","assets/DashboardPage-i714dDoR.css","assets/SharedConversationPage-Ds17olbg.js"])))=>i.map(i=>d[i]);
2
+ function S2(n,l){for(var o=0;o<l.length;o++){const i=l[o];if(typeof i!="string"&&!Array.isArray(i)){for(const c in i)if(c!=="default"&&!(c in n)){const d=Object.getOwnPropertyDescriptor(i,c);d&&Object.defineProperty(n,c,d.get?d:{enumerable:!0,get:()=>i[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))i(c);new MutationObserver(c=>{for(const d of c)if(d.type==="childList")for(const m of d.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&i(m)}).observe(document,{childList:!0,subtree:!0});function o(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function i(c){if(c.ep)return;c.ep=!0;const d=o(c);fetch(c.href,d)}})();function s0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Nd={exports:{}},zo={};/**
3
+ * @license React
4
+ * react-jsx-runtime.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var Fg;function w2(){if(Fg)return zo;Fg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function o(i,c,d){var m=null;if(d!==void 0&&(m=""+d),c.key!==void 0&&(m=""+c.key),"key"in c){d={};for(var h in c)h!=="key"&&(d[h]=c[h])}else d=c;return c=d.ref,{$$typeof:n,type:i,key:m,ref:c!==void 0?c:null,props:d}}return zo.Fragment=l,zo.jsx=o,zo.jsxs=o,zo}var Jg;function E2(){return Jg||(Jg=1,Nd.exports=w2()),Nd.exports}var f=E2(),Td={exports:{}},Ce={};/**
11
+ * @license React
12
+ * react.production.js
13
+ *
14
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var Wg;function N2(){if(Wg)return Ce;Wg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),w=Symbol.iterator;function N(R){return R===null||typeof R!="object"?null:(R=w&&R[w]||R["@@iterator"],typeof R=="function"?R:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,C={};function A(R,P,K){this.props=R,this.context=P,this.refs=C,this.updater=K||T}A.prototype.isReactComponent={},A.prototype.setState=function(R,P){if(typeof R!="object"&&typeof R!="function"&&R!=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,R,P,"setState")},A.prototype.forceUpdate=function(R){this.updater.enqueueForceUpdate(this,R,"forceUpdate")};function j(){}j.prototype=A.prototype;function O(R,P,K){this.props=R,this.context=P,this.refs=C,this.updater=K||T}var z=O.prototype=new j;z.constructor=O,E(z,A.prototype),z.isPureReactComponent=!0;var B=Array.isArray;function G(){}var V={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function ae(R,P,K){var W=K.ref;return{$$typeof:n,type:R,key:P,ref:W!==void 0?W:null,props:K}}function re(R,P){return ae(R.type,P,R.props)}function me(R){return typeof R=="object"&&R!==null&&R.$$typeof===n}function fe(R){var P={"=":"=0",":":"=2"};return"$"+R.replace(/[=:]/g,function(K){return P[K]})}var se=/\/+/g;function ue(R,P){return typeof R=="object"&&R!==null&&R.key!=null?fe(""+R.key):P.toString(36)}function oe(R){switch(R.status){case"fulfilled":return R.value;case"rejected":throw R.reason;default:switch(typeof R.status=="string"?R.then(G,G):(R.status="pending",R.then(function(P){R.status==="pending"&&(R.status="fulfilled",R.value=P)},function(P){R.status==="pending"&&(R.status="rejected",R.reason=P)})),R.status){case"fulfilled":return R.value;case"rejected":throw R.reason}}throw R}function M(R,P,K,W,te){var ie=typeof R;(ie==="undefined"||ie==="boolean")&&(R=null);var ee=!1;if(R===null)ee=!0;else switch(ie){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(R.$$typeof){case n:case l:ee=!0;break;case x:return ee=R._init,M(ee(R._payload),P,K,W,te)}}if(ee)return te=te(R),ee=W===""?"."+ue(R,0):W,B(te)?(K="",ee!=null&&(K=ee.replace(se,"$&/")+"/"),M(te,P,K,"",function(ve){return ve})):te!=null&&(me(te)&&(te=re(te,K+(te.key==null||R&&R.key===te.key?"":(""+te.key).replace(se,"$&/")+"/")+ee)),P.push(te)),1;ee=0;var ce=W===""?".":W+":";if(B(R))for(var J=0;J<R.length;J++)W=R[J],ie=ce+ue(W,J),ee+=M(W,P,K,ie,te);else if(J=N(R),typeof J=="function")for(R=J.call(R),J=0;!(W=R.next()).done;)W=W.value,ie=ce+ue(W,J++),ee+=M(W,P,K,ie,te);else if(ie==="object"){if(typeof R.then=="function")return M(oe(R),P,K,W,te);throw P=String(R),Error("Objects are not valid as a React child (found: "+(P==="[object Object]"?"object with keys {"+Object.keys(R).join(", ")+"}":P)+"). If you meant to render a collection of children, use an array instead.")}return ee}function Y(R,P,K){if(R==null)return R;var W=[],te=0;return M(R,W,"","",function(ie){return P.call(K,ie,te++)}),W}function I(R){if(R._status===-1){var P=R._result;P=P(),P.then(function(K){(R._status===0||R._status===-1)&&(R._status=1,R._result=K)},function(K){(R._status===0||R._status===-1)&&(R._status=2,R._result=K)}),R._status===-1&&(R._status=0,R._result=P)}if(R._status===1)return R._result.default;throw R._result}var de=typeof reportError=="function"?reportError:function(R){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var P=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof R=="object"&&R!==null&&typeof R.message=="string"?String(R.message):String(R),error:R});if(!window.dispatchEvent(P))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",R);return}console.error(R)},F={map:Y,forEach:function(R,P,K){Y(R,function(){P.apply(this,arguments)},K)},count:function(R){var P=0;return Y(R,function(){P++}),P},toArray:function(R){return Y(R,function(P){return P})||[]},only:function(R){if(!me(R))throw Error("React.Children.only expected to receive a single React element child.");return R}};return Ce.Activity=g,Ce.Children=F,Ce.Component=A,Ce.Fragment=o,Ce.Profiler=c,Ce.PureComponent=O,Ce.StrictMode=i,Ce.Suspense=y,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(R){return V.H.useMemoCache(R)}},Ce.cache=function(R){return function(){return R.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(R,P,K){if(R==null)throw Error("The argument must be a React element, but you passed "+R+".");var W=E({},R.props),te=R.key;if(P!=null)for(ie in P.key!==void 0&&(te=""+P.key),P)!$.call(P,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&P.ref===void 0||(W[ie]=P[ie]);var ie=arguments.length-2;if(ie===1)W.children=K;else if(1<ie){for(var ee=Array(ie),ce=0;ce<ie;ce++)ee[ce]=arguments[ce+2];W.children=ee}return ae(R.type,te,W)},Ce.createContext=function(R){return R={$$typeof:m,_currentValue:R,_currentValue2:R,_threadCount:0,Provider:null,Consumer:null},R.Provider=R,R.Consumer={$$typeof:d,_context:R},R},Ce.createElement=function(R,P,K){var W,te={},ie=null;if(P!=null)for(W in P.key!==void 0&&(ie=""+P.key),P)$.call(P,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(te[W]=P[W]);var ee=arguments.length-2;if(ee===1)te.children=K;else if(1<ee){for(var ce=Array(ee),J=0;J<ee;J++)ce[J]=arguments[J+2];te.children=ce}if(R&&R.defaultProps)for(W in ee=R.defaultProps,ee)te[W]===void 0&&(te[W]=ee[W]);return ae(R,ie,te)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(R){return{$$typeof:h,render:R}},Ce.isValidElement=me,Ce.lazy=function(R){return{$$typeof:x,_payload:{_status:-1,_result:R},_init:I}},Ce.memo=function(R,P){return{$$typeof:p,type:R,compare:P===void 0?null:P}},Ce.startTransition=function(R){var P=V.T,K={};V.T=K;try{var W=R(),te=V.S;te!==null&&te(K,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(G,de)}catch(ie){de(ie)}finally{P!==null&&K.types!==null&&(P.types=K.types),V.T=P}},Ce.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},Ce.use=function(R){return V.H.use(R)},Ce.useActionState=function(R,P,K){return V.H.useActionState(R,P,K)},Ce.useCallback=function(R,P){return V.H.useCallback(R,P)},Ce.useContext=function(R){return V.H.useContext(R)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(R,P){return V.H.useDeferredValue(R,P)},Ce.useEffect=function(R,P){return V.H.useEffect(R,P)},Ce.useEffectEvent=function(R){return V.H.useEffectEvent(R)},Ce.useId=function(){return V.H.useId()},Ce.useImperativeHandle=function(R,P,K){return V.H.useImperativeHandle(R,P,K)},Ce.useInsertionEffect=function(R,P){return V.H.useInsertionEffect(R,P)},Ce.useLayoutEffect=function(R,P){return V.H.useLayoutEffect(R,P)},Ce.useMemo=function(R,P){return V.H.useMemo(R,P)},Ce.useOptimistic=function(R,P){return V.H.useOptimistic(R,P)},Ce.useReducer=function(R,P,K){return V.H.useReducer(R,P,K)},Ce.useRef=function(R){return V.H.useRef(R)},Ce.useState=function(R){return V.H.useState(R)},Ce.useSyncExternalStore=function(R,P,K){return V.H.useSyncExternalStore(R,P,K)},Ce.useTransition=function(){return V.H.useTransition()},Ce.version="19.2.4",Ce}var ev;function bf(){return ev||(ev=1,Td.exports=N2()),Td.exports}var v=bf();const ne=s0(v),xf=S2({__proto__:null,default:ne},[v]);var Cd={exports:{}},Lo={},Ad={exports:{}},Rd={};/**
19
+ * @license React
20
+ * scheduler.production.js
21
+ *
22
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var tv;function T2(){return tv||(tv=1,(function(n){function l(M,Y){var I=M.length;M.push(Y);e:for(;0<I;){var de=I-1>>>1,F=M[de];if(0<c(F,Y))M[de]=Y,M[I]=F,I=de;else break e}}function o(M){return M.length===0?null:M[0]}function i(M){if(M.length===0)return null;var Y=M[0],I=M.pop();if(I!==Y){M[0]=I;e:for(var de=0,F=M.length,R=F>>>1;de<R;){var P=2*(de+1)-1,K=M[P],W=P+1,te=M[W];if(0>c(K,I))W<F&&0>c(te,K)?(M[de]=te,M[W]=I,de=W):(M[de]=K,M[P]=I,de=P);else if(W<F&&0>c(te,I))M[de]=te,M[W]=I,de=W;else break e}}return Y}function c(M,Y){var I=M.sortIndex-Y.sortIndex;return I!==0?I:M.id-Y.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var m=Date,h=m.now();n.unstable_now=function(){return m.now()-h}}var y=[],p=[],x=1,g=null,w=3,N=!1,T=!1,E=!1,C=!1,A=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function z(M){for(var Y=o(p);Y!==null;){if(Y.callback===null)i(p);else if(Y.startTime<=M)i(p),Y.sortIndex=Y.expirationTime,l(y,Y);else break;Y=o(p)}}function B(M){if(E=!1,z(M),!T)if(o(y)!==null)T=!0,G||(G=!0,fe());else{var Y=o(p);Y!==null&&oe(B,Y.startTime-M)}}var G=!1,V=-1,$=5,ae=-1;function re(){return C?!0:!(n.unstable_now()-ae<$)}function me(){if(C=!1,G){var M=n.unstable_now();ae=M;var Y=!0;try{e:{T=!1,E&&(E=!1,j(V),V=-1),N=!0;var I=w;try{t:{for(z(M),g=o(y);g!==null&&!(g.expirationTime>M&&re());){var de=g.callback;if(typeof de=="function"){g.callback=null,w=g.priorityLevel;var F=de(g.expirationTime<=M);if(M=n.unstable_now(),typeof F=="function"){g.callback=F,z(M),Y=!0;break t}g===o(y)&&i(y),z(M)}else i(y);g=o(y)}if(g!==null)Y=!0;else{var R=o(p);R!==null&&oe(B,R.startTime-M),Y=!1}}break e}finally{g=null,w=I,N=!1}Y=void 0}}finally{Y?fe():G=!1}}}var fe;if(typeof O=="function")fe=function(){O(me)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,ue=se.port2;se.port1.onmessage=me,fe=function(){ue.postMessage(null)}}else fe=function(){A(me,0)};function oe(M,Y){V=A(function(){M(n.unstable_now())},Y)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(M){M.callback=null},n.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<M?Math.floor(1e3/M):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(M){switch(w){case 1:case 2:case 3:var Y=3;break;default:Y=w}var I=w;w=Y;try{return M()}finally{w=I}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(M,Y){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var I=w;w=M;try{return Y()}finally{w=I}},n.unstable_scheduleCallback=function(M,Y,I){var de=n.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?de+I:de):I=de,M){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=I+F,M={id:x++,callback:Y,priorityLevel:M,startTime:I,expirationTime:F,sortIndex:-1},I>de?(M.sortIndex=I,l(p,M),o(y)===null&&M===o(p)&&(E?(j(V),V=-1):E=!0,oe(B,I-de))):(M.sortIndex=F,l(y,M),T||N||(T=!0,G||(G=!0,fe()))),M},n.unstable_shouldYield=re,n.unstable_wrapCallback=function(M){var Y=w;return function(){var I=w;w=Y;try{return M.apply(this,arguments)}finally{w=I}}}})(Rd)),Rd}var nv;function C2(){return nv||(nv=1,Ad.exports=T2()),Ad.exports}var _d={exports:{}},kt={};/**
27
+ * @license React
28
+ * react-dom.production.js
29
+ *
30
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var av;function A2(){if(av)return kt;av=1;var n=bf();function l(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var i={d:{f:o,r:function(){throw Error(l(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(y,p,x){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:g==null?null:""+g,children:y,containerInfo:p,implementation:x}}var m=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return kt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,kt.createPortal=function(y,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return d(y,p,null,x)},kt.flushSync=function(y){var p=m.T,x=i.p;try{if(m.T=null,i.p=2,y)return y()}finally{m.T=p,i.p=x,i.d.f()}},kt.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,i.d.C(y,p))},kt.prefetchDNS=function(y){typeof y=="string"&&i.d.D(y)},kt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var x=p.as,g=h(x,p.crossOrigin),w=typeof p.integrity=="string"?p.integrity:void 0,N=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?i.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:w,fetchPriority:N}):x==="script"&&i.d.X(y,{crossOrigin:g,integrity:w,fetchPriority:N,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},kt.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var x=h(p.as,p.crossOrigin);i.d.M(y,{crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&i.d.M(y)},kt.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var x=p.as,g=h(x,p.crossOrigin);i.d.L(y,x,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},kt.preloadModule=function(y,p){if(typeof y=="string")if(p){var x=h(p.as,p.crossOrigin);i.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:x,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else i.d.m(y)},kt.requestFormReset=function(y){i.d.r(y)},kt.unstable_batchedUpdates=function(y,p){return y(p)},kt.useFormState=function(y,p,x){return m.H.useFormState(y,p,x)},kt.useFormStatus=function(){return m.H.useHostTransitionStatus()},kt.version="19.2.4",kt}var lv;function c0(){if(lv)return _d.exports;lv=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),_d.exports=A2(),_d.exports}/**
35
+ * @license React
36
+ * react-dom-client.production.js
37
+ *
38
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */var rv;function R2(){if(rv)return Lo;rv=1;var n=C2(),l=bf(),o=c0();function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}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 d(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function m(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 h(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 y(e){if(d(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(i(188));return t!==e?null:e}for(var a=e,r=t;;){var s=a.return;if(s===null)break;var u=s.alternate;if(u===null){if(r=s.return,r!==null){a=r;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===a)return y(s),e;if(u===r)return y(s),t;u=u.sibling}throw Error(i(188))}if(a.return!==r.return)a=s,r=u;else{for(var b=!1,S=s.child;S;){if(S===a){b=!0,a=s,r=u;break}if(S===r){b=!0,r=s,a=u;break}S=S.sibling}if(!b){for(S=u.child;S;){if(S===a){b=!0,a=u,r=s;break}if(S===r){b=!0,r=u,a=s;break}S=S.sibling}if(!b)throw Error(i(189))}}if(a.alternate!==r)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,w=Symbol.for("react.element"),N=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),O=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),re=Symbol.for("react.memo_cache_sentinel"),me=Symbol.iterator;function fe(e){return e===null||typeof e!="object"?null:(e=me&&e[me]||e["@@iterator"],typeof e=="function"?e:null)}var se=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case A:return"Profiler";case C:return"StrictMode";case B:return"Suspense";case G:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case O:return e.displayName||"Context";case j:return(e._context.displayName||"Context")+".Consumer";case z:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return t=e.displayName||null,t!==null?t:ue(e.type)||"Memo";case $:t=e._payload,e=e._init;try{return ue(e(t))}catch{}}return null}var oe=Array.isArray,M=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},de=[],F=-1;function R(e){return{current:e}}function P(e){0>F||(e.current=de[F],de[F]=null,F--)}function K(e,t){F++,de[F]=e.current,e.current=t}var W=R(null),te=R(null),ie=R(null),ee=R(null);function ce(e,t){switch(K(ie,t),K(te,e),K(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?xg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=xg(t),e=Sg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}P(W),K(W,e)}function J(){P(W),P(te),P(ie)}function ve(e){e.memoizedState!==null&&K(ee,e);var t=W.current,a=Sg(t,e.type);t!==a&&(K(te,e),K(W,a))}function be(e){te.current===e&&(P(W),P(te)),ee.current===e&&(P(ee),Mo._currentValue=I)}var Se,He;function je(e){if(Se===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||"",He=-1<a.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+Se+e+He}var Ve=!1;function dt(e,t){if(!e||Ve)return"";Ve=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(q){var H=q}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(q){H=q}e.call(Z.prototype)}}else{try{throw Error()}catch(q){H=q}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(q){if(q&&H&&typeof q.stack=="string")return[q.stack,H.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=r.DetermineComponentFrameRoot(),b=u[0],S=u[1];if(b&&S){var _=b.split(`
45
+ `),U=S.split(`
46
+ `);for(s=r=0;r<_.length&&!_[r].includes("DetermineComponentFrameRoot");)r++;for(;s<U.length&&!U[s].includes("DetermineComponentFrameRoot");)s++;if(r===_.length||s===U.length)for(r=_.length-1,s=U.length-1;1<=r&&0<=s&&_[r]!==U[s];)s--;for(;1<=r&&0<=s;r--,s--)if(_[r]!==U[s]){if(r!==1||s!==1)do if(r--,s--,0>s||_[r]!==U[s]){var X=`
47
+ `+_[r].replace(" at new "," at ");return e.displayName&&X.includes("<anonymous>")&&(X=X.replace("<anonymous>",e.displayName)),X}while(1<=r&&0<=s);break}}}finally{Ve=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?je(a):""}function Pe(e,t){switch(e.tag){case 26:case 27:case 5:return je(e.type);case 16:return je("Lazy");case 13:return e.child!==t&&t!==null?je("Suspense Fallback"):je("Suspense");case 19:return je("SuspenseList");case 0:case 15:return dt(e.type,!1);case 11:return dt(e.type.render,!1);case 1:return dt(e.type,!0);case 31:return je("Activity");default:return""}}function Lt(e){try{var t="",a=null;do t+=Pe(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
48
+ Error generating stack: `+r.message+`
49
+ `+r.stack}}var ht=Object.prototype.hasOwnProperty,ol=n.unstable_scheduleCallback,il=n.unstable_cancelCallback,Tt=n.unstable_shouldYield,jn=n.unstable_requestPaint,Ct=n.unstable_now,Ll=n.unstable_getCurrentPriorityLevel,Mn=n.unstable_ImmediatePriority,Ne=n.unstable_UserBlockingPriority,Xe=n.unstable_NormalPriority,We=n.unstable_LowPriority,st=n.unstable_IdlePriority,On=n.log,Dn=n.unstable_setDisableYieldValue,kn=null,Ut=null;function xn(e){if(typeof On=="function"&&Dn(e),Ut&&typeof Ut.setStrictMode=="function")try{Ut.setStrictMode(kn,e)}catch{}}var Ot=Math.clz32?Math.clz32:zn,mc=Math.log,Gr=Math.LN2;function zn(e){return e>>>=0,e===0?32:31-(mc(e)/Gr|0)|0}var Ul=256,Bl=262144,sl=4194304;function Ln(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 Te(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var s=0,u=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var S=r&134217727;return S!==0?(r=S&~u,r!==0?s=Ln(r):(b&=S,b!==0?s=Ln(b):a||(a=S&~e,a!==0&&(s=Ln(a))))):(S=r&~u,S!==0?s=Ln(S):b!==0?s=Ln(b):a||(a=r&~e,a!==0&&(s=Ln(a)))),s===0?0:t!==0&&t!==s&&(t&u)===0&&(u=s&-s,a=t&-t,u>=a||u===32&&(a&4194048)!==0)?t:s}function lt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function wt(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 Dt(){var e=sl;return sl<<=1,(sl&62914560)===0&&(sl=4194304),e}function Ea(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function it(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ht(e,t,a,r,s,u){var b=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var S=e.entanglements,_=e.expirationTimes,U=e.hiddenUpdates;for(a=b&~a;0<a;){var X=31-Ot(a),Z=1<<X;S[X]=0,_[X]=-1;var H=U[X];if(H!==null)for(U[X]=null,X=0;X<H.length;X++){var q=H[X];q!==null&&(q.lane&=-536870913)}a&=~Z}r!==0&&cl(e,r,0),u!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=u&~(b&~t))}function cl(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ot(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function Vt(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-Ot(a),s=1<<r;s&t|e[r]&t&&(e[r]|=t),a&=~s}}function $t(e,t){var a=t&-t;return a=(a&42)!==0?1:Hl(a),(a&(e.suspendedLanes|t))!==0?0:a}function Hl(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 Sn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function hc(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:Gg(e.type))}function om(e,t){var a=Y.p;try{return Y.p=e,t()}finally{Y.p=a}}var Na=Math.random().toString(36).slice(2),At="__reactFiber$"+Na,Yt="__reactProps$"+Na,Vl="__reactContainer$"+Na,pc="__reactEvents$"+Na,u1="__reactListeners$"+Na,d1="__reactHandles$"+Na,im="__reactResources$"+Na,Pr="__reactMarker$"+Na;function gc(e){delete e[At],delete e[Yt],delete e[pc],delete e[u1],delete e[d1]}function $l(e){var t=e[At];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Vl]||a[At]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Rg(e);e!==null;){if(a=e[At])return a;e=Rg(e)}return t}e=a,a=e.parentNode}return null}function Yl(e){if(e=e[At]||e[Vl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function ql(e){var t=e[im];return t||(t=e[im]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Et(e){e[Pr]=!0}var sm=new Set,cm={};function ul(e,t){Gl(e,t),Gl(e+"Capture",t)}function Gl(e,t){for(cm[e]=t,e=0;e<t.length;e++)sm.add(t[e])}var f1=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]*$"),um={},dm={};function m1(e){return ht.call(dm,e)?!0:ht.call(um,e)?!1:f1.test(e)?dm[e]=!0:(um[e]=!0,!1)}function ti(e,t,a){if(m1(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ni(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Wn(e,t,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function sn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function h1(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,u=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(b){a=""+b,u.call(this,b)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(b){a=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function vc(e){if(!e._valueTracker){var t=fm(e)?"checked":"value";e._valueTracker=h1(e,t,""+e[t])}}function mm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=fm(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function ai(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 p1=/[\n"\\]/g;function cn(e){return e.replace(p1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function yc(e,t,a,r,s,u,b,S){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),t!=null?b==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+sn(t)):e.value!==""+sn(t)&&(e.value=""+sn(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?bc(e,b,sn(t)):a!=null?bc(e,b,sn(a)):r!=null&&e.removeAttribute("value"),s==null&&u!=null&&(e.defaultChecked=!!u),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+sn(S):e.removeAttribute("name")}function hm(e,t,a,r,s,u,b,S){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||a!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){vc(e);return}a=a!=null?""+sn(a):"",t=t!=null?""+sn(t):a,S||t===e.value||(e.value=t),e.defaultValue=t}r=r??s,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=S?e.checked:!!r,e.defaultChecked=!!r,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),vc(e)}function bc(e,t,a){t==="number"&&ai(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Pl(e,t,a,r){if(e=e.options,t){t={};for(var s=0;s<a.length;s++)t["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=t.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&r&&(e[a].defaultSelected=!0)}else{for(a=""+sn(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function pm(e,t,a){if(t!=null&&(t=""+sn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+sn(a):""}function gm(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(i(92));if(oe(r)){if(1<r.length)throw Error(i(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=sn(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),vc(e)}function Xl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var g1=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 vm(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||g1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function ym(e,t,a){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var s in t)r=t[s],t.hasOwnProperty(s)&&a[s]!==r&&vm(e,s,r)}else for(var u in t)t.hasOwnProperty(u)&&vm(e,u,t[u])}function xc(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 v1=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"]]),y1=/^[\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 li(e){return y1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ea(){}var Sc=null;function wc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Kl=null,Ql=null;function bm(e){var t=Yl(e);if(t&&(e=t.stateNode)){var a=e[Yt]||null;e:switch(e=t.stateNode,t.type){case"input":if(yc(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+cn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var s=r[Yt]||null;if(!s)throw Error(i(90));yc(r,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&mm(r)}break e;case"textarea":pm(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Pl(e,!!a.multiple,t,!1)}}}var Ec=!1;function xm(e,t,a){if(Ec)return e(t,a);Ec=!0;try{var r=e(t);return r}finally{if(Ec=!1,(Kl!==null||Ql!==null)&&(Pi(),Kl&&(t=Kl,e=Ql,Ql=Kl=null,bm(t),e)))for(t=0;t<e.length;t++)bm(e[t])}}function Kr(e,t){var a=e.stateNode;if(a===null)return null;var r=a[Yt]||null;if(r===null)return null;a=r[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":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(i(231,t,typeof a));return a}var ta=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nc=!1;if(ta)try{var Qr={};Object.defineProperty(Qr,"passive",{get:function(){Nc=!0}}),window.addEventListener("test",Qr,Qr),window.removeEventListener("test",Qr,Qr)}catch{Nc=!1}var Ta=null,Tc=null,ri=null;function Sm(){if(ri)return ri;var e,t=Tc,a=t.length,r,s="value"in Ta?Ta.value:Ta.textContent,u=s.length;for(e=0;e<a&&t[e]===s[e];e++);var b=a-e;for(r=1;r<=b&&t[a-r]===s[u-r];r++);return ri=s.slice(e,1<r?1-r:void 0)}function oi(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 ii(){return!0}function wm(){return!1}function qt(e){function t(a,r,s,u,b){this._reactName=a,this._targetInst=s,this.type=r,this.nativeEvent=u,this.target=b,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(a=e[S],this[S]=a?a(u):u[S]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?ii:wm,this.isPropagationStopped=wm,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ii)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ii)},persist:function(){},isPersistent:ii}),t}var dl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},si=qt(dl),Zr=g({},dl,{view:0,detail:0}),b1=qt(Zr),Cc,Ac,Ir,ci=g({},Zr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_c,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!==Ir&&(Ir&&e.type==="mousemove"?(Cc=e.screenX-Ir.screenX,Ac=e.screenY-Ir.screenY):Ac=Cc=0,Ir=e),Cc)},movementY:function(e){return"movementY"in e?e.movementY:Ac}}),Em=qt(ci),x1=g({},ci,{dataTransfer:0}),S1=qt(x1),w1=g({},Zr,{relatedTarget:0}),Rc=qt(w1),E1=g({},dl,{animationName:0,elapsedTime:0,pseudoElement:0}),N1=qt(E1),T1=g({},dl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),C1=qt(T1),A1=g({},dl,{data:0}),Nm=qt(A1),R1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_1={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"},j1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function M1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=j1[e])?!!t[e]:!1}function _c(){return M1}var O1=g({},Zr,{key:function(e){if(e.key){var t=R1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=oi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_c,charCode:function(e){return e.type==="keypress"?oi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?oi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),D1=qt(O1),k1=g({},ci,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tm=qt(k1),z1=g({},Zr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_c}),L1=qt(z1),U1=g({},dl,{propertyName:0,elapsedTime:0,pseudoElement:0}),B1=qt(U1),H1=g({},ci,{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}),V1=qt(H1),$1=g({},dl,{newState:0,oldState:0}),Y1=qt($1),q1=[9,13,27,32],jc=ta&&"CompositionEvent"in window,Fr=null;ta&&"documentMode"in document&&(Fr=document.documentMode);var G1=ta&&"TextEvent"in window&&!Fr,Cm=ta&&(!jc||Fr&&8<Fr&&11>=Fr),Am=" ",Rm=!1;function _m(e,t){switch(e){case"keyup":return q1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Zl=!1;function P1(e,t){switch(e){case"compositionend":return jm(t);case"keypress":return t.which!==32?null:(Rm=!0,Am);case"textInput":return e=t.data,e===Am&&Rm?null:e;default:return null}}function X1(e,t){if(Zl)return e==="compositionend"||!jc&&_m(e,t)?(e=Sm(),ri=Tc=Ta=null,Zl=!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 Cm&&t.locale!=="ko"?null:t.data;default:return null}}var K1={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 Mm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!K1[e.type]:t==="textarea"}function Om(e,t,a,r){Kl?Ql?Ql.push(r):Ql=[r]:Kl=r,t=Ji(t,"onChange"),0<t.length&&(a=new si("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Jr=null,Wr=null;function Q1(e){hg(e,0)}function ui(e){var t=Xr(e);if(mm(t))return e}function Dm(e,t){if(e==="change")return t}var km=!1;if(ta){var Mc;if(ta){var Oc="oninput"in document;if(!Oc){var zm=document.createElement("div");zm.setAttribute("oninput","return;"),Oc=typeof zm.oninput=="function"}Mc=Oc}else Mc=!1;km=Mc&&(!document.documentMode||9<document.documentMode)}function Lm(){Jr&&(Jr.detachEvent("onpropertychange",Um),Wr=Jr=null)}function Um(e){if(e.propertyName==="value"&&ui(Wr)){var t=[];Om(t,Wr,e,wc(e)),xm(Q1,t)}}function Z1(e,t,a){e==="focusin"?(Lm(),Jr=t,Wr=a,Jr.attachEvent("onpropertychange",Um)):e==="focusout"&&Lm()}function I1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ui(Wr)}function F1(e,t){if(e==="click")return ui(t)}function J1(e,t){if(e==="input"||e==="change")return ui(t)}function W1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ft=typeof Object.is=="function"?Object.is:W1;function eo(e,t){if(Ft(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var s=a[r];if(!ht.call(t,s)||!Ft(e[s],t[s]))return!1}return!0}function Bm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hm(e,t){var a=Bm(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Bm(a)}}function Vm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function $m(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ai(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=ai(e.document)}return t}function Dc(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 eS=ta&&"documentMode"in document&&11>=document.documentMode,Il=null,kc=null,to=null,zc=!1;function Ym(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;zc||Il==null||Il!==ai(r)||(r=Il,"selectionStart"in r&&Dc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),to&&eo(to,r)||(to=r,r=Ji(kc,"onSelect"),0<r.length&&(t=new si("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=Il)))}function fl(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Fl={animationend:fl("Animation","AnimationEnd"),animationiteration:fl("Animation","AnimationIteration"),animationstart:fl("Animation","AnimationStart"),transitionrun:fl("Transition","TransitionRun"),transitionstart:fl("Transition","TransitionStart"),transitioncancel:fl("Transition","TransitionCancel"),transitionend:fl("Transition","TransitionEnd")},Lc={},qm={};ta&&(qm=document.createElement("div").style,"AnimationEvent"in window||(delete Fl.animationend.animation,delete Fl.animationiteration.animation,delete Fl.animationstart.animation),"TransitionEvent"in window||delete Fl.transitionend.transition);function ml(e){if(Lc[e])return Lc[e];if(!Fl[e])return e;var t=Fl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in qm)return Lc[e]=t[a];return e}var Gm=ml("animationend"),Pm=ml("animationiteration"),Xm=ml("animationstart"),tS=ml("transitionrun"),nS=ml("transitionstart"),aS=ml("transitioncancel"),Km=ml("transitionend"),Qm=new Map,Uc="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(" ");Uc.push("scrollEnd");function wn(e,t){Qm.set(e,t),ul(t,[e])}var di=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)},un=[],Jl=0,Bc=0;function fi(){for(var e=Jl,t=Bc=Jl=0;t<e;){var a=un[t];un[t++]=null;var r=un[t];un[t++]=null;var s=un[t];un[t++]=null;var u=un[t];if(un[t++]=null,r!==null&&s!==null){var b=r.pending;b===null?s.next=s:(s.next=b.next,b.next=s),r.pending=s}u!==0&&Zm(a,s,u)}}function mi(e,t,a,r){un[Jl++]=e,un[Jl++]=t,un[Jl++]=a,un[Jl++]=r,Bc|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Hc(e,t,a,r){return mi(e,t,a,r),hi(e)}function hl(e,t){return mi(e,null,null,t),hi(e)}function Zm(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var s=!1,u=e.return;u!==null;)u.childLanes|=a,r=u.alternate,r!==null&&(r.childLanes|=a),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(s=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,s&&t!==null&&(s=31-Ot(a),e=u.hiddenUpdates,r=e[s],r===null?e[s]=[t]:r.push(t),t.lane=a|536870912),u):null}function hi(e){if(50<No)throw No=0,Qu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Wl={};function lS(e,t,a,r){this.tag=e,this.key=a,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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jt(e,t,a,r){return new lS(e,t,a,r)}function Vc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function na(e,t){var a=e.alternate;return a===null?(a=Jt(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Im(e,t){e.flags&=65011714;var a=e.alternate;return a===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=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function pi(e,t,a,r,s,u){var b=0;if(r=e,typeof e=="function")Vc(e)&&(b=1);else if(typeof e=="string")b=c2(e,a,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=Jt(31,a,t,s),e.elementType=ae,e.lanes=u,e;case E:return pl(a.children,s,u,t);case C:b=8,s|=24;break;case A:return e=Jt(12,a,t,s|2),e.elementType=A,e.lanes=u,e;case B:return e=Jt(13,a,t,s),e.elementType=B,e.lanes=u,e;case G:return e=Jt(19,a,t,s),e.elementType=G,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:b=10;break e;case j:b=9;break e;case z:b=11;break e;case V:b=14;break e;case $:b=16,r=null;break e}b=29,a=Error(i(130,e===null?"null":typeof e,"")),r=null}return t=Jt(b,a,t,s),t.elementType=e,t.type=r,t.lanes=u,t}function pl(e,t,a,r){return e=Jt(7,e,r,t),e.lanes=a,e}function $c(e,t,a){return e=Jt(6,e,null,t),e.lanes=a,e}function Fm(e){var t=Jt(18,null,null,0);return t.stateNode=e,t}function Yc(e,t,a){return t=Jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Jm=new WeakMap;function dn(e,t){if(typeof e=="object"&&e!==null){var a=Jm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Lt(t)},Jm.set(e,t),t)}return{value:e,source:t,stack:Lt(t)}}var er=[],tr=0,gi=null,no=0,fn=[],mn=0,Ca=null,Un=1,Bn="";function aa(e,t){er[tr++]=no,er[tr++]=gi,gi=e,no=t}function Wm(e,t,a){fn[mn++]=Un,fn[mn++]=Bn,fn[mn++]=Ca,Ca=e;var r=Un;e=Bn;var s=32-Ot(r)-1;r&=~(1<<s),a+=1;var u=32-Ot(t)+s;if(30<u){var b=s-s%5;u=(r&(1<<b)-1).toString(32),r>>=b,s-=b,Un=1<<32-Ot(t)+s|a<<s|r,Bn=u+e}else Un=1<<u|a<<s|r,Bn=e}function qc(e){e.return!==null&&(aa(e,1),Wm(e,1,0))}function Gc(e){for(;e===gi;)gi=er[--tr],er[tr]=null,no=er[--tr],er[tr]=null;for(;e===Ca;)Ca=fn[--mn],fn[mn]=null,Bn=fn[--mn],fn[mn]=null,Un=fn[--mn],fn[mn]=null}function eh(e,t){fn[mn++]=Un,fn[mn++]=Bn,fn[mn++]=Ca,Un=t.id,Bn=t.overflow,Ca=e}var Rt=null,nt=null,Le=!1,Aa=null,hn=!1,Pc=Error(i(519));function Ra(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ao(dn(t,e)),Pc}function th(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[At]=e,t[Yt]=r,a){case"dialog":Oe("cancel",t),Oe("close",t);break;case"iframe":case"object":case"embed":Oe("load",t);break;case"video":case"audio":for(a=0;a<Co.length;a++)Oe(Co[a],t);break;case"source":Oe("error",t);break;case"img":case"image":case"link":Oe("error",t),Oe("load",t);break;case"details":Oe("toggle",t);break;case"input":Oe("invalid",t),hm(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Oe("invalid",t);break;case"textarea":Oe("invalid",t),gm(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||yg(t.textContent,a)?(r.popover!=null&&(Oe("beforetoggle",t),Oe("toggle",t)),r.onScroll!=null&&Oe("scroll",t),r.onScrollEnd!=null&&Oe("scrollend",t),r.onClick!=null&&(t.onclick=ea),t=!0):t=!1,t||Ra(e,!0)}function nh(e){for(Rt=e.return;Rt;)switch(Rt.tag){case 5:case 31:case 13:hn=!1;return;case 27:case 3:hn=!0;return;default:Rt=Rt.return}}function nr(e){if(e!==Rt)return!1;if(!Le)return nh(e),Le=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||cd(e.type,e.memoizedProps)),a=!a),a&&nt&&Ra(e),nh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));nt=Ag(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));nt=Ag(e)}else t===27?(t=nt,Ya(e.type)?(e=hd,hd=null,nt=e):nt=t):nt=Rt?gn(e.stateNode.nextSibling):null;return!0}function gl(){nt=Rt=null,Le=!1}function Xc(){var e=Aa;return e!==null&&(Kt===null?Kt=e:Kt.push.apply(Kt,e),Aa=null),e}function ao(e){Aa===null?Aa=[e]:Aa.push(e)}var Kc=R(null),vl=null,la=null;function _a(e,t,a){K(Kc,t._currentValue),t._currentValue=a}function ra(e){e._currentValue=Kc.current,P(Kc)}function Qc(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function Zc(e,t,a,r){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var u=s.dependencies;if(u!==null){var b=s.child;u=u.firstContext;e:for(;u!==null;){var S=u;u=s;for(var _=0;_<t.length;_++)if(S.context===t[_]){u.lanes|=a,S=u.alternate,S!==null&&(S.lanes|=a),Qc(u.return,a,e),r||(b=null);break e}u=S.next}}else if(s.tag===18){if(b=s.return,b===null)throw Error(i(341));b.lanes|=a,u=b.alternate,u!==null&&(u.lanes|=a),Qc(b,a,e),b=null}else b=s.child;if(b!==null)b.return=s;else for(b=s;b!==null;){if(b===e){b=null;break}if(s=b.sibling,s!==null){s.return=b.return,b=s;break}b=b.return}s=b}}function ar(e,t,a,r){e=null;for(var s=t,u=!1;s!==null;){if(!u){if((s.flags&524288)!==0)u=!0;else if((s.flags&262144)!==0)break}if(s.tag===10){var b=s.alternate;if(b===null)throw Error(i(387));if(b=b.memoizedProps,b!==null){var S=s.type;Ft(s.pendingProps.value,b.value)||(e!==null?e.push(S):e=[S])}}else if(s===ee.current){if(b=s.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Mo):e=[Mo])}s=s.return}e!==null&&Zc(t,e,a,r),t.flags|=262144}function vi(e){for(e=e.firstContext;e!==null;){if(!Ft(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function yl(e){vl=e,la=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function _t(e){return ah(vl,e)}function yi(e,t){return vl===null&&yl(e),ah(e,t)}function ah(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},la===null){if(e===null)throw Error(i(308));la=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else la=la.next=t;return a}var rS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},oS=n.unstable_scheduleCallback,iS=n.unstable_NormalPriority,pt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ic(){return{controller:new rS,data:new Map,refCount:0}}function lo(e){e.refCount--,e.refCount===0&&oS(iS,function(){e.controller.abort()})}var ro=null,Fc=0,lr=0,rr=null;function sS(e,t){if(ro===null){var a=ro=[];Fc=0,lr=ed(),rr={status:"pending",value:void 0,then:function(r){a.push(r)}}}return Fc++,t.then(lh,lh),t}function lh(){if(--Fc===0&&ro!==null){rr!==null&&(rr.status="fulfilled");var e=ro;ro=null,lr=0,rr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function cS(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(r.status="rejected",r.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),r}var rh=M.S;M.S=function(e,t){Yp=Ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&sS(e,t),rh!==null&&rh(e,t)};var bl=R(null);function Jc(){var e=bl.current;return e!==null?e:Je.pooledCache}function bi(e,t){t===null?K(bl,bl.current):K(bl,t.pool)}function oh(){var e=Jc();return e===null?null:{parent:pt._currentValue,pool:e}}var or=Error(i(460)),Wc=Error(i(474)),xi=Error(i(542)),Si={then:function(){}};function ih(e){return e=e.status,e==="fulfilled"||e==="rejected"}function sh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ea,ea),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,uh(e),e;default:if(typeof t.status=="string")t.then(ea,ea);else{if(e=Je,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=r}},function(r){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,uh(e),e}throw Sl=t,or}}function xl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Sl=a,or):a}}var Sl=null;function ch(){if(Sl===null)throw Error(i(459));var e=Sl;return Sl=null,e}function uh(e){if(e===or||e===xi)throw Error(i(483))}var ir=null,oo=0;function wi(e){var t=oo;return oo+=1,ir===null&&(ir=[]),sh(ir,e,t)}function io(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ei(e,t){throw t.$$typeof===w?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function dh(e){function t(k,D){if(e){var L=k.deletions;L===null?(k.deletions=[D],k.flags|=16):L.push(D)}}function a(k,D){if(!e)return null;for(;D!==null;)t(k,D),D=D.sibling;return null}function r(k){for(var D=new Map;k!==null;)k.key!==null?D.set(k.key,k):D.set(k.index,k),k=k.sibling;return D}function s(k,D){return k=na(k,D),k.index=0,k.sibling=null,k}function u(k,D,L){return k.index=L,e?(L=k.alternate,L!==null?(L=L.index,L<D?(k.flags|=67108866,D):L):(k.flags|=67108866,D)):(k.flags|=1048576,D)}function b(k){return e&&k.alternate===null&&(k.flags|=67108866),k}function S(k,D,L,Q){return D===null||D.tag!==6?(D=$c(L,k.mode,Q),D.return=k,D):(D=s(D,L),D.return=k,D)}function _(k,D,L,Q){var xe=L.type;return xe===E?X(k,D,L.props.children,Q,L.key):D!==null&&(D.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===$&&xl(xe)===D.type)?(D=s(D,L.props),io(D,L),D.return=k,D):(D=pi(L.type,L.key,L.props,null,k.mode,Q),io(D,L),D.return=k,D)}function U(k,D,L,Q){return D===null||D.tag!==4||D.stateNode.containerInfo!==L.containerInfo||D.stateNode.implementation!==L.implementation?(D=Yc(L,k.mode,Q),D.return=k,D):(D=s(D,L.children||[]),D.return=k,D)}function X(k,D,L,Q,xe){return D===null||D.tag!==7?(D=pl(L,k.mode,Q,xe),D.return=k,D):(D=s(D,L),D.return=k,D)}function Z(k,D,L){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=$c(""+D,k.mode,L),D.return=k,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case N:return L=pi(D.type,D.key,D.props,null,k.mode,L),io(L,D),L.return=k,L;case T:return D=Yc(D,k.mode,L),D.return=k,D;case $:return D=xl(D),Z(k,D,L)}if(oe(D)||fe(D))return D=pl(D,k.mode,L,null),D.return=k,D;if(typeof D.then=="function")return Z(k,wi(D),L);if(D.$$typeof===O)return Z(k,yi(k,D),L);Ei(k,D)}return null}function H(k,D,L,Q){var xe=D!==null?D.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return xe!==null?null:S(k,D,""+L,Q);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case N:return L.key===xe?_(k,D,L,Q):null;case T:return L.key===xe?U(k,D,L,Q):null;case $:return L=xl(L),H(k,D,L,Q)}if(oe(L)||fe(L))return xe!==null?null:X(k,D,L,Q,null);if(typeof L.then=="function")return H(k,D,wi(L),Q);if(L.$$typeof===O)return H(k,D,yi(k,L),Q);Ei(k,L)}return null}function q(k,D,L,Q,xe){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return k=k.get(L)||null,S(D,k,""+Q,xe);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case N:return k=k.get(Q.key===null?L:Q.key)||null,_(D,k,Q,xe);case T:return k=k.get(Q.key===null?L:Q.key)||null,U(D,k,Q,xe);case $:return Q=xl(Q),q(k,D,L,Q,xe)}if(oe(Q)||fe(Q))return k=k.get(L)||null,X(D,k,Q,xe,null);if(typeof Q.then=="function")return q(k,D,L,wi(Q),xe);if(Q.$$typeof===O)return q(k,D,L,yi(D,Q),xe);Ei(D,Q)}return null}function he(k,D,L,Q){for(var xe=null,$e=null,ye=D,Re=D=0,ze=null;ye!==null&&Re<L.length;Re++){ye.index>Re?(ze=ye,ye=null):ze=ye.sibling;var Ye=H(k,ye,L[Re],Q);if(Ye===null){ye===null&&(ye=ze);break}e&&ye&&Ye.alternate===null&&t(k,ye),D=u(Ye,D,Re),$e===null?xe=Ye:$e.sibling=Ye,$e=Ye,ye=ze}if(Re===L.length)return a(k,ye),Le&&aa(k,Re),xe;if(ye===null){for(;Re<L.length;Re++)ye=Z(k,L[Re],Q),ye!==null&&(D=u(ye,D,Re),$e===null?xe=ye:$e.sibling=ye,$e=ye);return Le&&aa(k,Re),xe}for(ye=r(ye);Re<L.length;Re++)ze=q(ye,k,Re,L[Re],Q),ze!==null&&(e&&ze.alternate!==null&&ye.delete(ze.key===null?Re:ze.key),D=u(ze,D,Re),$e===null?xe=ze:$e.sibling=ze,$e=ze);return e&&ye.forEach(function(Ka){return t(k,Ka)}),Le&&aa(k,Re),xe}function we(k,D,L,Q){if(L==null)throw Error(i(151));for(var xe=null,$e=null,ye=D,Re=D=0,ze=null,Ye=L.next();ye!==null&&!Ye.done;Re++,Ye=L.next()){ye.index>Re?(ze=ye,ye=null):ze=ye.sibling;var Ka=H(k,ye,Ye.value,Q);if(Ka===null){ye===null&&(ye=ze);break}e&&ye&&Ka.alternate===null&&t(k,ye),D=u(Ka,D,Re),$e===null?xe=Ka:$e.sibling=Ka,$e=Ka,ye=ze}if(Ye.done)return a(k,ye),Le&&aa(k,Re),xe;if(ye===null){for(;!Ye.done;Re++,Ye=L.next())Ye=Z(k,Ye.value,Q),Ye!==null&&(D=u(Ye,D,Re),$e===null?xe=Ye:$e.sibling=Ye,$e=Ye);return Le&&aa(k,Re),xe}for(ye=r(ye);!Ye.done;Re++,Ye=L.next())Ye=q(ye,k,Re,Ye.value,Q),Ye!==null&&(e&&Ye.alternate!==null&&ye.delete(Ye.key===null?Re:Ye.key),D=u(Ye,D,Re),$e===null?xe=Ye:$e.sibling=Ye,$e=Ye);return e&&ye.forEach(function(x2){return t(k,x2)}),Le&&aa(k,Re),xe}function Fe(k,D,L,Q){if(typeof L=="object"&&L!==null&&L.type===E&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case N:e:{for(var xe=L.key;D!==null;){if(D.key===xe){if(xe=L.type,xe===E){if(D.tag===7){a(k,D.sibling),Q=s(D,L.props.children),Q.return=k,k=Q;break e}}else if(D.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===$&&xl(xe)===D.type){a(k,D.sibling),Q=s(D,L.props),io(Q,L),Q.return=k,k=Q;break e}a(k,D);break}else t(k,D);D=D.sibling}L.type===E?(Q=pl(L.props.children,k.mode,Q,L.key),Q.return=k,k=Q):(Q=pi(L.type,L.key,L.props,null,k.mode,Q),io(Q,L),Q.return=k,k=Q)}return b(k);case T:e:{for(xe=L.key;D!==null;){if(D.key===xe)if(D.tag===4&&D.stateNode.containerInfo===L.containerInfo&&D.stateNode.implementation===L.implementation){a(k,D.sibling),Q=s(D,L.children||[]),Q.return=k,k=Q;break e}else{a(k,D);break}else t(k,D);D=D.sibling}Q=Yc(L,k.mode,Q),Q.return=k,k=Q}return b(k);case $:return L=xl(L),Fe(k,D,L,Q)}if(oe(L))return he(k,D,L,Q);if(fe(L)){if(xe=fe(L),typeof xe!="function")throw Error(i(150));return L=xe.call(L),we(k,D,L,Q)}if(typeof L.then=="function")return Fe(k,D,wi(L),Q);if(L.$$typeof===O)return Fe(k,D,yi(k,L),Q);Ei(k,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,D!==null&&D.tag===6?(a(k,D.sibling),Q=s(D,L),Q.return=k,k=Q):(a(k,D),Q=$c(L,k.mode,Q),Q.return=k,k=Q),b(k)):a(k,D)}return function(k,D,L,Q){try{oo=0;var xe=Fe(k,D,L,Q);return ir=null,xe}catch(ye){if(ye===or||ye===xi)throw ye;var $e=Jt(29,ye,null,k.mode);return $e.lanes=Q,$e.return=k,$e}finally{}}}var wl=dh(!0),fh=dh(!1),ja=!1;function eu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tu(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 Ma(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Oa(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(qe&2)!==0){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,t=hi(e),Zm(e,null,a),t}return mi(e,r,t,a),hi(e)}function so(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Vt(e,a)}}function nu(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var s=null,u=null;if(a=a.firstBaseUpdate,a!==null){do{var b={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};u===null?s=u=b:u=u.next=b,a=a.next}while(a!==null);u===null?s=u=t:u=u.next=t}else s=u=t;a={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var au=!1;function co(){if(au){var e=rr;if(e!==null)throw e}}function uo(e,t,a,r){au=!1;var s=e.updateQueue;ja=!1;var u=s.firstBaseUpdate,b=s.lastBaseUpdate,S=s.shared.pending;if(S!==null){s.shared.pending=null;var _=S,U=_.next;_.next=null,b===null?u=U:b.next=U,b=_;var X=e.alternate;X!==null&&(X=X.updateQueue,S=X.lastBaseUpdate,S!==b&&(S===null?X.firstBaseUpdate=U:S.next=U,X.lastBaseUpdate=_))}if(u!==null){var Z=s.baseState;b=0,X=U=_=null,S=u;do{var H=S.lane&-536870913,q=H!==S.lane;if(q?(ke&H)===H:(r&H)===H){H!==0&&H===lr&&(au=!0),X!==null&&(X=X.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var he=e,we=S;H=t;var Fe=a;switch(we.tag){case 1:if(he=we.payload,typeof he=="function"){Z=he.call(Fe,Z,H);break e}Z=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=we.payload,H=typeof he=="function"?he.call(Fe,Z,H):he,H==null)break e;Z=g({},Z,H);break e;case 2:ja=!0}}H=S.callback,H!==null&&(e.flags|=64,q&&(e.flags|=8192),q=s.callbacks,q===null?s.callbacks=[H]:q.push(H))}else q={lane:H,tag:S.tag,payload:S.payload,callback:S.callback,next:null},X===null?(U=X=q,_=Z):X=X.next=q,b|=H;if(S=S.next,S===null){if(S=s.shared.pending,S===null)break;q=S,S=q.next,q.next=null,s.lastBaseUpdate=q,s.shared.pending=null}}while(!0);X===null&&(_=Z),s.baseState=_,s.firstBaseUpdate=U,s.lastBaseUpdate=X,u===null&&(s.shared.lanes=0),Ua|=b,e.lanes=b,e.memoizedState=Z}}function mh(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function hh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)mh(a[e],t)}var sr=R(null),Ni=R(0);function ph(e,t){e=ha,K(Ni,e),K(sr,t),ha=e|t.baseLanes}function lu(){K(Ni,ha),K(sr,sr.current)}function ru(){ha=Ni.current,P(sr),P(Ni)}var Wt=R(null),pn=null;function Da(e){var t=e.alternate;K(ft,ft.current&1),K(Wt,e),pn===null&&(t===null||sr.current!==null||t.memoizedState!==null)&&(pn=e)}function ou(e){K(ft,ft.current),K(Wt,e),pn===null&&(pn=e)}function gh(e){e.tag===22?(K(ft,ft.current),K(Wt,e),pn===null&&(pn=e)):ka()}function ka(){K(ft,ft.current),K(Wt,Wt.current)}function en(e){P(Wt),pn===e&&(pn=null),P(ft)}var ft=R(0);function Ti(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||fd(a)||md(a)))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 oa=0,Ae=null,Ze=null,gt=null,Ci=!1,cr=!1,El=!1,Ai=0,fo=0,ur=null,uS=0;function ct(){throw Error(i(321))}function iu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ft(e[a],t[a]))return!1;return!0}function su(e,t,a,r,s,u){return oa=u,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?Wh:Eu,El=!1,u=a(r,s),El=!1,cr&&(u=yh(t,a,r,s)),vh(e),u}function vh(e){M.H=po;var t=Ze!==null&&Ze.next!==null;if(oa=0,gt=Ze=Ae=null,Ci=!1,fo=0,ur=null,t)throw Error(i(300));e===null||vt||(e=e.dependencies,e!==null&&vi(e)&&(vt=!0))}function yh(e,t,a,r){Ae=e;var s=0;do{if(cr&&(ur=null),fo=0,cr=!1,25<=s)throw Error(i(301));if(s+=1,gt=Ze=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}M.H=ep,u=t(a,r)}while(cr);return u}function dS(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?mo(t):t,e=e.useState()[0],(Ze!==null?Ze.memoizedState:null)!==e&&(Ae.flags|=1024),t}function cu(){var e=Ai!==0;return Ai=0,e}function uu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function du(e){if(Ci){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ci=!1}oa=0,gt=Ze=Ae=null,cr=!1,fo=Ai=0,ur=null}function Bt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return gt===null?Ae.memoizedState=gt=e:gt=gt.next=e,gt}function mt(){if(Ze===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=Ze.next;var t=gt===null?Ae.memoizedState:gt.next;if(t!==null)gt=t,Ze=e;else{if(e===null)throw Ae.alternate===null?Error(i(467)):Error(i(310));Ze=e,e={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},gt===null?Ae.memoizedState=gt=e:gt=gt.next=e}return gt}function Ri(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function mo(e){var t=fo;return fo+=1,ur===null&&(ur=[]),e=sh(ur,e,t),t=Ae,(gt===null?t.memoizedState:gt.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?Wh:Eu),e}function _i(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return mo(e);if(e.$$typeof===O)return _t(e)}throw Error(i(438,String(e)))}function fu(e){var t=null,a=Ae.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=Ae.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ri(),Ae.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=re;return t.index++,a}function ia(e,t){return typeof t=="function"?t(e):t}function ji(e){var t=mt();return mu(t,Ze,e)}function mu(e,t,a){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=a;var s=e.baseQueue,u=r.pending;if(u!==null){if(s!==null){var b=s.next;s.next=u.next,u.next=b}t.baseQueue=s=u,r.pending=null}if(u=e.baseState,s===null)e.memoizedState=u;else{t=s.next;var S=b=null,_=null,U=t,X=!1;do{var Z=U.lane&-536870913;if(Z!==U.lane?(ke&Z)===Z:(oa&Z)===Z){var H=U.revertLane;if(H===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),Z===lr&&(X=!0);else if((oa&H)===H){U=U.next,H===lr&&(X=!0);continue}else Z={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},_===null?(S=_=Z,b=u):_=_.next=Z,Ae.lanes|=H,Ua|=H;Z=U.action,El&&a(u,Z),u=U.hasEagerState?U.eagerState:a(u,Z)}else H={lane:Z,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},_===null?(S=_=H,b=u):_=_.next=H,Ae.lanes|=Z,Ua|=Z;U=U.next}while(U!==null&&U!==t);if(_===null?b=u:_.next=S,!Ft(u,e.memoizedState)&&(vt=!0,X&&(a=rr,a!==null)))throw a;e.memoizedState=u,e.baseState=b,e.baseQueue=_,r.lastRenderedState=u}return s===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function hu(e){var t=mt(),a=t.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var r=a.dispatch,s=a.pending,u=t.memoizedState;if(s!==null){a.pending=null;var b=s=s.next;do u=e(u,b.action),b=b.next;while(b!==s);Ft(u,t.memoizedState)||(vt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,r]}function bh(e,t,a){var r=Ae,s=mt(),u=Le;if(u){if(a===void 0)throw Error(i(407));a=a()}else a=t();var b=!Ft((Ze||s).memoizedState,a);if(b&&(s.memoizedState=a,vt=!0),s=s.queue,vu(wh.bind(null,r,s,e),[e]),s.getSnapshot!==t||b||gt!==null&&gt.memoizedState.tag&1){if(r.flags|=2048,dr(9,{destroy:void 0},Sh.bind(null,r,s,a,t),null),Je===null)throw Error(i(349));u||(oa&127)!==0||xh(r,t,a)}return a}function xh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ae.updateQueue,t===null?(t=Ri(),Ae.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Sh(e,t,a,r){t.value=a,t.getSnapshot=r,Eh(t)&&Nh(e)}function wh(e,t,a){return a(function(){Eh(t)&&Nh(e)})}function Eh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ft(e,a)}catch{return!0}}function Nh(e){var t=hl(e,2);t!==null&&Qt(t,e,2)}function pu(e){var t=Bt();if(typeof e=="function"){var a=e;if(e=a(),El){xn(!0);try{a()}finally{xn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:e},t}function Th(e,t,a,r){return e.baseState=a,mu(e,Ze,typeof r=="function"?r:ia)}function fS(e,t,a,r,s){if(Di(e))throw Error(i(485));if(e=t.action,e!==null){var u={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){u.listeners.push(b)}};M.T!==null?a(!0):u.isTransition=!1,r(u),a=t.pending,a===null?(u.next=t.pending=u,Ch(t,u)):(u.next=a.next,t.pending=a.next=u)}}function Ch(e,t){var a=t.action,r=t.payload,s=e.state;if(t.isTransition){var u=M.T,b={};M.T=b;try{var S=a(s,r),_=M.S;_!==null&&_(b,S),Ah(e,t,S)}catch(U){gu(e,t,U)}finally{u!==null&&b.types!==null&&(u.types=b.types),M.T=u}}else try{u=a(s,r),Ah(e,t,u)}catch(U){gu(e,t,U)}}function Ah(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){Rh(e,t,r)},function(r){return gu(e,t,r)}):Rh(e,t,a)}function Rh(e,t,a){t.status="fulfilled",t.value=a,_h(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Ch(e,a)))}function gu(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,_h(t),t=t.next;while(t!==r)}e.action=null}function _h(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function jh(e,t){return t}function Mh(e,t){if(Le){var a=Je.formState;if(a!==null){e:{var r=Ae;if(Le){if(nt){t:{for(var s=nt,u=hn;s.nodeType!==8;){if(!u){s=null;break t}if(s=gn(s.nextSibling),s===null){s=null;break t}}u=s.data,s=u==="F!"||u==="F"?s:null}if(s){nt=gn(s.nextSibling),r=s.data==="F!";break e}}Ra(r)}r=!1}r&&(t=a[0])}}return a=Bt(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jh,lastRenderedState:t},a.queue=r,a=Ih.bind(null,Ae,r),r.dispatch=a,r=pu(!1),u=wu.bind(null,Ae,!1,r.queue),r=Bt(),s={state:t,dispatch:null,action:e,pending:null},r.queue=s,a=fS.bind(null,Ae,s,u,a),s.dispatch=a,r.memoizedState=e,[t,a,!1]}function Oh(e){var t=mt();return Dh(t,Ze,e)}function Dh(e,t,a){if(t=mu(e,t,jh)[0],e=ji(ia)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=mo(t)}catch(b){throw b===or?xi:b}else r=t;t=mt();var s=t.queue,u=s.dispatch;return a!==t.memoizedState&&(Ae.flags|=2048,dr(9,{destroy:void 0},mS.bind(null,s,a),null)),[r,u,e]}function mS(e,t){e.action=t}function kh(e){var t=mt(),a=Ze;if(a!==null)return Dh(t,a,e);mt(),t=t.memoizedState,a=mt();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function dr(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=Ae.updateQueue,t===null&&(t=Ri(),Ae.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function zh(){return mt().memoizedState}function Mi(e,t,a,r){var s=Bt();Ae.flags|=e,s.memoizedState=dr(1|t,{destroy:void 0},a,r===void 0?null:r)}function Oi(e,t,a,r){var s=mt();r=r===void 0?null:r;var u=s.memoizedState.inst;Ze!==null&&r!==null&&iu(r,Ze.memoizedState.deps)?s.memoizedState=dr(t,u,a,r):(Ae.flags|=e,s.memoizedState=dr(1|t,u,a,r))}function Lh(e,t){Mi(8390656,8,e,t)}function vu(e,t){Oi(2048,8,e,t)}function hS(e){Ae.flags|=4;var t=Ae.updateQueue;if(t===null)t=Ri(),Ae.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Uh(e){var t=mt().memoizedState;return hS({ref:t,nextImpl:e}),function(){if((qe&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Bh(e,t){return Oi(4,2,e,t)}function Hh(e,t){return Oi(4,4,e,t)}function Vh(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function $h(e,t,a){a=a!=null?a.concat([e]):null,Oi(4,4,Vh.bind(null,t,e),a)}function yu(){}function Yh(e,t){var a=mt();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&iu(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function qh(e,t){var a=mt();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&iu(t,r[1]))return r[0];if(r=e(),El){xn(!0);try{e()}finally{xn(!1)}}return a.memoizedState=[r,t],r}function bu(e,t,a){return a===void 0||(oa&1073741824)!==0&&(ke&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Gp(),Ae.lanes|=e,Ua|=e,a)}function Gh(e,t,a,r){return Ft(a,t)?a:sr.current!==null?(e=bu(e,a,r),Ft(e,t)||(vt=!0),e):(oa&42)===0||(oa&1073741824)!==0&&(ke&261930)===0?(vt=!0,e.memoizedState=a):(e=Gp(),Ae.lanes|=e,Ua|=e,t)}function Ph(e,t,a,r,s){var u=Y.p;Y.p=u!==0&&8>u?u:8;var b=M.T,S={};M.T=S,wu(e,!1,t,a);try{var _=s(),U=M.S;if(U!==null&&U(S,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var X=cS(_,r);ho(e,t,X,an(e))}else ho(e,t,r,an(e))}catch(Z){ho(e,t,{then:function(){},status:"rejected",reason:Z},an())}finally{Y.p=u,b!==null&&S.types!==null&&(b.types=S.types),M.T=b}}function pS(){}function xu(e,t,a,r){if(e.tag!==5)throw Error(i(476));var s=Xh(e).queue;Ph(e,s,t,I,a===null?pS:function(){return Kh(e),a(r)})}function Xh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:I},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ia,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Kh(e){var t=Xh(e);t.next===null&&(t=e.alternate.memoizedState),ho(e,t.next.queue,{},an())}function Su(){return _t(Mo)}function Qh(){return mt().memoizedState}function Zh(){return mt().memoizedState}function gS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=an();e=Ma(a);var r=Oa(t,e,a);r!==null&&(Qt(r,t,a),so(r,t,a)),t={cache:Ic()},e.payload=t;return}t=t.return}}function vS(e,t,a){var r=an();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Di(e)?Fh(t,a):(a=Hc(e,t,a,r),a!==null&&(Qt(a,e,r),Jh(a,t,r)))}function Ih(e,t,a){var r=an();ho(e,t,a,r)}function ho(e,t,a,r){var s={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Di(e))Fh(t,s);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var b=t.lastRenderedState,S=u(b,a);if(s.hasEagerState=!0,s.eagerState=S,Ft(S,b))return mi(e,t,s,0),Je===null&&fi(),!1}catch{}finally{}if(a=Hc(e,t,s,r),a!==null)return Qt(a,e,r),Jh(a,t,r),!0}return!1}function wu(e,t,a,r){if(r={lane:2,revertLane:ed(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Di(e)){if(t)throw Error(i(479))}else t=Hc(e,a,r,2),t!==null&&Qt(t,e,2)}function Di(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function Fh(e,t){cr=Ci=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Jh(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Vt(e,a)}}var po={readContext:_t,use:_i,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useLayoutEffect:ct,useInsertionEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useSyncExternalStore:ct,useId:ct,useHostTransitionStatus:ct,useFormState:ct,useActionState:ct,useOptimistic:ct,useMemoCache:ct,useCacheRefresh:ct};po.useEffectEvent=ct;var Wh={readContext:_t,use:_i,useCallback:function(e,t){return Bt().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:Lh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Mi(4194308,4,Vh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Mi(4194308,4,e,t)},useInsertionEffect:function(e,t){Mi(4,2,e,t)},useMemo:function(e,t){var a=Bt();t=t===void 0?null:t;var r=e();if(El){xn(!0);try{e()}finally{xn(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=Bt();if(a!==void 0){var s=a(t);if(El){xn(!0);try{a(t)}finally{xn(!1)}}}else s=t;return r.memoizedState=r.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},r.queue=e,e=e.dispatch=vS.bind(null,Ae,e),[r.memoizedState,e]},useRef:function(e){var t=Bt();return e={current:e},t.memoizedState=e},useState:function(e){e=pu(e);var t=e.queue,a=Ih.bind(null,Ae,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:yu,useDeferredValue:function(e,t){var a=Bt();return bu(a,e,t)},useTransition:function(){var e=pu(!1);return e=Ph.bind(null,Ae,e.queue,!0,!1),Bt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=Ae,s=Bt();if(Le){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),Je===null)throw Error(i(349));(ke&127)!==0||xh(r,t,a)}s.memoizedState=a;var u={value:a,getSnapshot:t};return s.queue=u,Lh(wh.bind(null,r,u,e),[e]),r.flags|=2048,dr(9,{destroy:void 0},Sh.bind(null,r,u,a,t),null),a},useId:function(){var e=Bt(),t=Je.identifierPrefix;if(Le){var a=Bn,r=Un;a=(r&~(1<<32-Ot(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ai++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=uS++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Su,useFormState:Mh,useActionState:Mh,useOptimistic:function(e){var t=Bt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=wu.bind(null,Ae,!0,a),a.dispatch=t,[e,t]},useMemoCache:fu,useCacheRefresh:function(){return Bt().memoizedState=gS.bind(null,Ae)},useEffectEvent:function(e){var t=Bt(),a={impl:e};return t.memoizedState=a,function(){if((qe&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},Eu={readContext:_t,use:_i,useCallback:Yh,useContext:_t,useEffect:vu,useImperativeHandle:$h,useInsertionEffect:Bh,useLayoutEffect:Hh,useMemo:qh,useReducer:ji,useRef:zh,useState:function(){return ji(ia)},useDebugValue:yu,useDeferredValue:function(e,t){var a=mt();return Gh(a,Ze.memoizedState,e,t)},useTransition:function(){var e=ji(ia)[0],t=mt().memoizedState;return[typeof e=="boolean"?e:mo(e),t]},useSyncExternalStore:bh,useId:Qh,useHostTransitionStatus:Su,useFormState:Oh,useActionState:Oh,useOptimistic:function(e,t){var a=mt();return Th(a,Ze,e,t)},useMemoCache:fu,useCacheRefresh:Zh};Eu.useEffectEvent=Uh;var ep={readContext:_t,use:_i,useCallback:Yh,useContext:_t,useEffect:vu,useImperativeHandle:$h,useInsertionEffect:Bh,useLayoutEffect:Hh,useMemo:qh,useReducer:hu,useRef:zh,useState:function(){return hu(ia)},useDebugValue:yu,useDeferredValue:function(e,t){var a=mt();return Ze===null?bu(a,e,t):Gh(a,Ze.memoizedState,e,t)},useTransition:function(){var e=hu(ia)[0],t=mt().memoizedState;return[typeof e=="boolean"?e:mo(e),t]},useSyncExternalStore:bh,useId:Qh,useHostTransitionStatus:Su,useFormState:kh,useActionState:kh,useOptimistic:function(e,t){var a=mt();return Ze!==null?Th(a,Ze,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:fu,useCacheRefresh:Zh};ep.useEffectEvent=Uh;function Nu(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:g({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Tu={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=an(),s=Ma(r);s.payload=t,a!=null&&(s.callback=a),t=Oa(e,s,r),t!==null&&(Qt(t,e,r),so(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=an(),s=Ma(r);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=Oa(e,s,r),t!==null&&(Qt(t,e,r),so(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=an(),r=Ma(a);r.tag=2,t!=null&&(r.callback=t),t=Oa(e,r,a),t!==null&&(Qt(t,e,a),so(t,e,a))}};function tp(e,t,a,r,s,u,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,u,b):t.prototype&&t.prototype.isPureReactComponent?!eo(a,r)||!eo(s,u):!0}function np(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&Tu.enqueueReplaceState(t,t.state,null)}function Nl(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}if(e=e.defaultProps){a===t&&(a=g({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function ap(e){di(e)}function lp(e){console.error(e)}function rp(e){di(e)}function ki(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function op(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function Cu(e,t,a){return a=Ma(a),a.tag=3,a.payload={element:null},a.callback=function(){ki(e,t)},a}function ip(e){return e=Ma(e),e.tag=3,e}function sp(e,t,a,r){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var u=r.value;e.payload=function(){return s(u)},e.callback=function(){op(t,a,r)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){op(t,a,r),typeof s!="function"&&(Ba===null?Ba=new Set([this]):Ba.add(this));var S=r.stack;this.componentDidCatch(r.value,{componentStack:S!==null?S:""})})}function yS(e,t,a,r,s){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&ar(t,a,s,!0),a=Wt.current,a!==null){switch(a.tag){case 31:case 13:return pn===null?Xi():a.alternate===null&&ut===0&&(ut=3),a.flags&=-257,a.flags|=65536,a.lanes=s,r===Si?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),Fu(e,r,s)),!1;case 22:return a.flags|=65536,r===Si?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),Fu(e,r,s)),!1}throw Error(i(435,a.tag))}return Fu(e,r,s),Xi(),!1}if(Le)return t=Wt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,r!==Pc&&(e=Error(i(422),{cause:r}),ao(dn(e,a)))):(r!==Pc&&(t=Error(i(423),{cause:r}),ao(dn(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,r=dn(r,a),s=Cu(e.stateNode,r,s),nu(e,s),ut!==4&&(ut=2)),!1;var u=Error(i(520),{cause:r});if(u=dn(u,a),Eo===null?Eo=[u]:Eo.push(u),ut!==4&&(ut=2),t===null)return!0;r=dn(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=Cu(a.stateNode,r,e),nu(a,e),!1;case 1:if(t=a.type,u=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(Ba===null||!Ba.has(u))))return a.flags|=65536,s&=-s,a.lanes|=s,s=ip(s),sp(s,e,a,r),nu(a,s),!1}a=a.return}while(a!==null);return!1}var Au=Error(i(461)),vt=!1;function jt(e,t,a,r){t.child=e===null?fh(t,null,a,r):wl(t,e.child,a,r)}function cp(e,t,a,r,s){a=a.render;var u=t.ref;if("ref"in r){var b={};for(var S in r)S!=="ref"&&(b[S]=r[S])}else b=r;return yl(t),r=su(e,t,a,b,u,s),S=cu(),e!==null&&!vt?(uu(e,t,s),sa(e,t,s)):(Le&&S&&qc(t),t.flags|=1,jt(e,t,r,s),t.child)}function up(e,t,a,r,s){if(e===null){var u=a.type;return typeof u=="function"&&!Vc(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,dp(e,t,u,r,s)):(e=pi(a.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!zu(e,s)){var b=u.memoizedProps;if(a=a.compare,a=a!==null?a:eo,a(b,r)&&e.ref===t.ref)return sa(e,t,s)}return t.flags|=1,e=na(u,r),e.ref=t.ref,e.return=t,t.child=e}function dp(e,t,a,r,s){if(e!==null){var u=e.memoizedProps;if(eo(u,r)&&e.ref===t.ref)if(vt=!1,t.pendingProps=r=u,zu(e,s))(e.flags&131072)!==0&&(vt=!0);else return t.lanes=e.lanes,sa(e,t,s)}return Ru(e,t,a,r,s)}function fp(e,t,a,r){var s=r.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(r=t.child=e.child,s=0;r!==null;)s=s|r.lanes|r.childLanes,r=r.sibling;r=s&~u}else r=0,t.child=null;return mp(e,t,u,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&bi(t,u!==null?u.cachePool:null),u!==null?ph(t,u):lu(),gh(t);else return r=t.lanes=536870912,mp(e,t,u!==null?u.baseLanes|a:a,a,r)}else u!==null?(bi(t,u.cachePool),ph(t,u),ka(),t.memoizedState=null):(e!==null&&bi(t,null),lu(),ka());return jt(e,t,s,a),t.child}function go(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function mp(e,t,a,r,s){var u=Jc();return u=u===null?null:{parent:pt._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&bi(t,null),lu(),gh(t),e!==null&&ar(e,t,r,!0),t.childLanes=s,null}function zi(e,t){return t=Ui({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function hp(e,t,a){return wl(t,e.child,null,a),e=zi(t,t.pendingProps),e.flags|=2,en(t),t.memoizedState=null,e}function bS(e,t,a){var r=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Le){if(r.mode==="hidden")return e=zi(t,r),t.lanes=536870912,go(null,e);if(ou(t),(e=nt)?(e=Cg(e,hn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ca!==null?{id:Un,overflow:Bn}:null,retryLane:536870912,hydrationErrors:null},a=Fm(e),a.return=t,t.child=a,Rt=t,nt=null)):e=null,e===null)throw Ra(t);return t.lanes=536870912,null}return zi(t,r)}var u=e.memoizedState;if(u!==null){var b=u.dehydrated;if(ou(t),s)if(t.flags&256)t.flags&=-257,t=hp(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(vt||ar(e,t,a,!1),s=(a&e.childLanes)!==0,vt||s){if(r=Je,r!==null&&(b=$t(r,a),b!==0&&b!==u.retryLane))throw u.retryLane=b,hl(e,b),Qt(r,e,b),Au;Xi(),t=hp(e,t,a)}else e=u.treeContext,nt=gn(b.nextSibling),Rt=t,Le=!0,Aa=null,hn=!1,e!==null&&eh(t,e),t=zi(t,r),t.flags|=4096;return t}return e=na(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Li(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(i(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Ru(e,t,a,r,s){return yl(t),a=su(e,t,a,r,void 0,s),r=cu(),e!==null&&!vt?(uu(e,t,s),sa(e,t,s)):(Le&&r&&qc(t),t.flags|=1,jt(e,t,a,s),t.child)}function pp(e,t,a,r,s,u){return yl(t),t.updateQueue=null,a=yh(t,r,a,s),vh(e),r=cu(),e!==null&&!vt?(uu(e,t,u),sa(e,t,u)):(Le&&r&&qc(t),t.flags|=1,jt(e,t,a,u),t.child)}function gp(e,t,a,r,s){if(yl(t),t.stateNode===null){var u=Wl,b=a.contextType;typeof b=="object"&&b!==null&&(u=_t(b)),u=new a(r,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Tu,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=r,u.state=t.memoizedState,u.refs={},eu(t),b=a.contextType,u.context=typeof b=="object"&&b!==null?_t(b):Wl,u.state=t.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(Nu(t,a,b,r),u.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(b=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),b!==u.state&&Tu.enqueueReplaceState(u,u.state,null),uo(t,r,u,s),co(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){u=t.stateNode;var S=t.memoizedProps,_=Nl(a,S);u.props=_;var U=u.context,X=a.contextType;b=Wl,typeof X=="object"&&X!==null&&(b=_t(X));var Z=a.getDerivedStateFromProps;X=typeof Z=="function"||typeof u.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,X||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(S||U!==b)&&np(t,u,r,b),ja=!1;var H=t.memoizedState;u.state=H,uo(t,r,u,s),co(),U=t.memoizedState,S||H!==U||ja?(typeof Z=="function"&&(Nu(t,a,Z,r),U=t.memoizedState),(_=ja||tp(t,a,_,r,H,U,b))?(X||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=r,t.memoizedState=U),u.props=r,u.state=U,u.context=b,r=_):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{u=t.stateNode,tu(e,t),b=t.memoizedProps,X=Nl(a,b),u.props=X,Z=t.pendingProps,H=u.context,U=a.contextType,_=Wl,typeof U=="object"&&U!==null&&(_=_t(U)),S=a.getDerivedStateFromProps,(U=typeof S=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b!==Z||H!==_)&&np(t,u,r,_),ja=!1,H=t.memoizedState,u.state=H,uo(t,r,u,s),co();var q=t.memoizedState;b!==Z||H!==q||ja||e!==null&&e.dependencies!==null&&vi(e.dependencies)?(typeof S=="function"&&(Nu(t,a,S,r),q=t.memoizedState),(X=ja||tp(t,a,X,r,H,q,_)||e!==null&&e.dependencies!==null&&vi(e.dependencies))?(U||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(r,q,_),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(r,q,_)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=q),u.props=r,u.state=q,u.context=_,r=X):(typeof u.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),r=!1)}return u=r,Li(e,t),r=(t.flags&128)!==0,u||r?(u=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&r?(t.child=wl(t,e.child,null,s),t.child=wl(t,null,a,s)):jt(e,t,a,s),t.memoizedState=u.state,e=t.child):e=sa(e,t,s),e}function vp(e,t,a,r){return gl(),t.flags|=256,jt(e,t,a,r),t.child}var _u={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ju(e){return{baseLanes:e,cachePool:oh()}}function Mu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=nn),e}function yp(e,t,a){var r=t.pendingProps,s=!1,u=(t.flags&128)!==0,b;if((b=u)||(b=e!==null&&e.memoizedState===null?!1:(ft.current&2)!==0),b&&(s=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(Le){if(s?Da(t):ka(),(e=nt)?(e=Cg(e,hn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ca!==null?{id:Un,overflow:Bn}:null,retryLane:536870912,hydrationErrors:null},a=Fm(e),a.return=t,t.child=a,Rt=t,nt=null)):e=null,e===null)throw Ra(t);return md(e)?t.lanes=32:t.lanes=536870912,null}var S=r.children;return r=r.fallback,s?(ka(),s=t.mode,S=Ui({mode:"hidden",children:S},s),r=pl(r,s,a,null),S.return=t,r.return=t,S.sibling=r,t.child=S,r=t.child,r.memoizedState=ju(a),r.childLanes=Mu(e,b,a),t.memoizedState=_u,go(null,r)):(Da(t),Ou(t,S))}var _=e.memoizedState;if(_!==null&&(S=_.dehydrated,S!==null)){if(u)t.flags&256?(Da(t),t.flags&=-257,t=Du(e,t,a)):t.memoizedState!==null?(ka(),t.child=e.child,t.flags|=128,t=null):(ka(),S=r.fallback,s=t.mode,r=Ui({mode:"visible",children:r.children},s),S=pl(S,s,a,null),S.flags|=2,r.return=t,S.return=t,r.sibling=S,t.child=r,wl(t,e.child,null,a),r=t.child,r.memoizedState=ju(a),r.childLanes=Mu(e,b,a),t.memoizedState=_u,t=go(null,r));else if(Da(t),md(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var U=b.dgst;b=U,r=Error(i(419)),r.stack="",r.digest=b,ao({value:r,source:null,stack:null}),t=Du(e,t,a)}else if(vt||ar(e,t,a,!1),b=(a&e.childLanes)!==0,vt||b){if(b=Je,b!==null&&(r=$t(b,a),r!==0&&r!==_.retryLane))throw _.retryLane=r,hl(e,r),Qt(b,e,r),Au;fd(S)||Xi(),t=Du(e,t,a)}else fd(S)?(t.flags|=192,t.child=e.child,t=null):(e=_.treeContext,nt=gn(S.nextSibling),Rt=t,Le=!0,Aa=null,hn=!1,e!==null&&eh(t,e),t=Ou(t,r.children),t.flags|=4096);return t}return s?(ka(),S=r.fallback,s=t.mode,_=e.child,U=_.sibling,r=na(_,{mode:"hidden",children:r.children}),r.subtreeFlags=_.subtreeFlags&65011712,U!==null?S=na(U,S):(S=pl(S,s,a,null),S.flags|=2),S.return=t,r.return=t,r.sibling=S,t.child=r,go(null,r),r=t.child,S=e.child.memoizedState,S===null?S=ju(a):(s=S.cachePool,s!==null?(_=pt._currentValue,s=s.parent!==_?{parent:_,pool:_}:s):s=oh(),S={baseLanes:S.baseLanes|a,cachePool:s}),r.memoizedState=S,r.childLanes=Mu(e,b,a),t.memoizedState=_u,go(e.child,r)):(Da(t),a=e.child,e=a.sibling,a=na(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(b=t.deletions,b===null?(t.deletions=[e],t.flags|=16):b.push(e)),t.child=a,t.memoizedState=null,a)}function Ou(e,t){return t=Ui({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ui(e,t){return e=Jt(22,e,null,t),e.lanes=0,e}function Du(e,t,a){return wl(t,e.child,null,a),e=Ou(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function bp(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Qc(e.return,t,a)}function ku(e,t,a,r,s,u){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:s,treeForkCount:u}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=r,b.tail=a,b.tailMode=s,b.treeForkCount=u)}function xp(e,t,a){var r=t.pendingProps,s=r.revealOrder,u=r.tail;r=r.children;var b=ft.current,S=(b&2)!==0;if(S?(b=b&1|2,t.flags|=128):b&=1,K(ft,b),jt(e,t,r,a),r=Le?no:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&bp(e,a,t);else if(e.tag===19)bp(e,a,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(s){case"forwards":for(a=t.child,s=null;a!==null;)e=a.alternate,e!==null&&Ti(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),ku(t,!1,s,a,u,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Ti(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}ku(t,!0,a,null,u,r);break;case"together":ku(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function sa(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ua|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ar(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,a=na(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=na(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function zu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&vi(e)))}function xS(e,t,a){switch(t.tag){case 3:ce(t,t.stateNode.containerInfo),_a(t,pt,e.memoizedState.cache),gl();break;case 27:case 5:ve(t);break;case 4:ce(t,t.stateNode.containerInfo);break;case 10:_a(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ou(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Da(t),t.flags|=128,null):(a&t.child.childLanes)!==0?yp(e,t,a):(Da(t),e=sa(e,t,a),e!==null?e.sibling:null);Da(t);break;case 19:var s=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(ar(e,t,a,!1),r=(a&t.childLanes)!==0),s){if(r)return xp(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),K(ft,ft.current),r)break;return null;case 22:return t.lanes=0,fp(e,t,a,t.pendingProps);case 24:_a(t,pt,e.memoizedState.cache)}return sa(e,t,a)}function Sp(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)vt=!0;else{if(!zu(e,a)&&(t.flags&128)===0)return vt=!1,xS(e,t,a);vt=(e.flags&131072)!==0}else vt=!1,Le&&(t.flags&1048576)!==0&&Wm(t,no,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=xl(t.elementType),t.type=e,typeof e=="function")Vc(e)?(r=Nl(e,r),t.tag=1,t=gp(null,t,e,r,a)):(t.tag=0,t=Ru(null,t,e,r,a));else{if(e!=null){var s=e.$$typeof;if(s===z){t.tag=11,t=cp(null,t,e,r,a);break e}else if(s===V){t.tag=14,t=up(null,t,e,r,a);break e}}throw t=ue(e)||e,Error(i(306,t,""))}}return t;case 0:return Ru(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,s=Nl(r,t.pendingProps),gp(e,t,r,s,a);case 3:e:{if(ce(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var u=t.memoizedState;s=u.element,tu(e,t),uo(t,r,null,a);var b=t.memoizedState;if(r=b.cache,_a(t,pt,r),r!==u.cache&&Zc(t,[pt],a,!0),co(),r=b.element,u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=vp(e,t,r,a);break e}else if(r!==s){s=dn(Error(i(424)),t),ao(s),t=vp(e,t,r,a);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(nt=gn(e.firstChild),Rt=t,Le=!0,Aa=null,hn=!0,a=fh(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(gl(),r===s){t=sa(e,t,a);break e}jt(e,t,r,a)}t=t.child}return t;case 26:return Li(e,t),e===null?(a=Og(t.type,null,t.pendingProps,null))?t.memoizedState=a:Le||(a=t.type,e=t.pendingProps,r=Wi(ie.current).createElement(a),r[At]=t,r[Yt]=e,Mt(r,a,e),Et(r),t.stateNode=r):t.memoizedState=Og(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ve(t),e===null&&Le&&(r=t.stateNode=_g(t.type,t.pendingProps,ie.current),Rt=t,hn=!0,s=nt,Ya(t.type)?(hd=s,nt=gn(r.firstChild)):nt=s),jt(e,t,t.pendingProps.children,a),Li(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Le&&((s=r=nt)&&(r=IS(r,t.type,t.pendingProps,hn),r!==null?(t.stateNode=r,Rt=t,nt=gn(r.firstChild),hn=!1,s=!0):s=!1),s||Ra(t)),ve(t),s=t.type,u=t.pendingProps,b=e!==null?e.memoizedProps:null,r=u.children,cd(s,u)?r=null:b!==null&&cd(s,b)&&(t.flags|=32),t.memoizedState!==null&&(s=su(e,t,dS,null,null,a),Mo._currentValue=s),Li(e,t),jt(e,t,r,a),t.child;case 6:return e===null&&Le&&((e=a=nt)&&(a=FS(a,t.pendingProps,hn),a!==null?(t.stateNode=a,Rt=t,nt=null,e=!0):e=!1),e||Ra(t)),null;case 13:return yp(e,t,a);case 4:return ce(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=wl(t,null,r,a):jt(e,t,r,a),t.child;case 11:return cp(e,t,t.type,t.pendingProps,a);case 7:return jt(e,t,t.pendingProps,a),t.child;case 8:return jt(e,t,t.pendingProps.children,a),t.child;case 12:return jt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,_a(t,t.type,r.value),jt(e,t,r.children,a),t.child;case 9:return s=t.type._context,r=t.pendingProps.children,yl(t),s=_t(s),r=r(s),t.flags|=1,jt(e,t,r,a),t.child;case 14:return up(e,t,t.type,t.pendingProps,a);case 15:return dp(e,t,t.type,t.pendingProps,a);case 19:return xp(e,t,a);case 31:return bS(e,t,a);case 22:return fp(e,t,a,t.pendingProps);case 24:return yl(t),r=_t(pt),e===null?(s=Jc(),s===null&&(s=Je,u=Ic(),s.pooledCache=u,u.refCount++,u!==null&&(s.pooledCacheLanes|=a),s=u),t.memoizedState={parent:r,cache:s},eu(t),_a(t,pt,s)):((e.lanes&a)!==0&&(tu(e,t),uo(t,null,null,a),co()),s=e.memoizedState,u=t.memoizedState,s.parent!==r?(s={parent:r,cache:r},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),_a(t,pt,r)):(r=u.cache,_a(t,pt,r),r!==s.cache&&Zc(t,[pt],a,!0))),jt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ca(e){e.flags|=4}function Lu(e,t,a,r,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Qp())e.flags|=8192;else throw Sl=Si,Wc}else e.flags&=-16777217}function wp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ug(t))if(Qp())e.flags|=8192;else throw Sl=Si,Wc}function Bi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Dt():536870912,e.lanes|=t,pr|=t)}function vo(e,t){if(!Le)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function at(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,r|=s.subtreeFlags&65011712,r|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function SS(e,t,a){var r=t.pendingProps;switch(Gc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(t),null;case 1:return at(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ra(pt),J(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(nr(t)?ca(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Xc())),at(t),null;case 26:var s=t.type,u=t.memoizedState;return e===null?(ca(t),u!==null?(at(t),wp(t,u)):(at(t),Lu(t,s,null,r,a))):u?u!==e.memoizedState?(ca(t),at(t),wp(t,u)):(at(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&ca(t),at(t),Lu(t,s,e,r,a)),null;case 27:if(be(t),a=ie.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ca(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return at(t),null}e=W.current,nr(t)?th(t):(e=_g(s,r,a),t.stateNode=e,ca(t))}return at(t),null;case 5:if(be(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ca(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return at(t),null}if(u=W.current,nr(t))th(t);else{var b=Wi(ie.current);switch(u){case 1:u=b.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:u=b.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":u=b.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":u=b.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":u=b.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof r.is=="string"?b.createElement("select",{is:r.is}):b.createElement("select"),r.multiple?u.multiple=!0:r.size&&(u.size=r.size);break;default:u=typeof r.is=="string"?b.createElement(s,{is:r.is}):b.createElement(s)}}u[At]=t,u[Yt]=r;e:for(b=t.child;b!==null;){if(b.tag===5||b.tag===6)u.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===t)break e;for(;b.sibling===null;){if(b.return===null||b.return===t)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}t.stateNode=u;e:switch(Mt(u,s,r),s){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&ca(t)}}return at(t),Lu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ca(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(i(166));if(e=ie.current,nr(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,s=Rt,s!==null)switch(s.tag){case 27:case 5:r=s.memoizedProps}e[At]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||yg(e.nodeValue,a)),e||Ra(t,!0)}else e=Wi(e).createTextNode(r),e[At]=t,t.stateNode=e}return at(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=nr(t),a!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[At]=t}else gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),e=!1}else a=Xc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(en(t),t):(en(t),null);if((t.flags&128)!==0)throw Error(i(558))}return at(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=nr(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(i(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(i(317));s[At]=t}else gl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),s=!1}else s=Xc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(en(t),t):(en(t),null)}return en(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,s=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(s=r.alternate.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==s&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Bi(t,t.updateQueue),at(t),null);case 4:return J(),e===null&&ld(t.stateNode.containerInfo),at(t),null;case 10:return ra(t.type),at(t),null;case 19:if(P(ft),r=t.memoizedState,r===null)return at(t),null;if(s=(t.flags&128)!==0,u=r.rendering,u===null)if(s)vo(r,!1);else{if(ut!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=Ti(e),u!==null){for(t.flags|=128,vo(r,!1),e=u.updateQueue,t.updateQueue=e,Bi(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Im(a,e),a=a.sibling;return K(ft,ft.current&1|2),Le&&aa(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ct()>qi&&(t.flags|=128,s=!0,vo(r,!1),t.lanes=4194304)}else{if(!s)if(e=Ti(u),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Bi(t,e),vo(r,!0),r.tail===null&&r.tailMode==="hidden"&&!u.alternate&&!Le)return at(t),null}else 2*Ct()-r.renderingStartTime>qi&&a!==536870912&&(t.flags|=128,s=!0,vo(r,!1),t.lanes=4194304);r.isBackwards?(u.sibling=t.child,t.child=u):(e=r.last,e!==null?e.sibling=u:t.child=u,r.last=u)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Ct(),e.sibling=null,a=ft.current,K(ft,s?a&1|2:a&1),Le&&aa(t,r.treeForkCount),e):(at(t),null);case 22:case 23:return en(t),ru(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),a=t.updateQueue,a!==null&&Bi(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&P(bl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ra(pt),at(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function wS(e,t){switch(Gc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ra(pt),J(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return be(t),null;case 31:if(t.memoizedState!==null){if(en(t),t.alternate===null)throw Error(i(340));gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(en(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));gl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return P(ft),null;case 4:return J(),null;case 10:return ra(t.type),null;case 22:case 23:return en(t),ru(),e!==null&&P(bl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ra(pt),null;case 25:return null;default:return null}}function Ep(e,t){switch(Gc(t),t.tag){case 3:ra(pt),J();break;case 26:case 27:case 5:be(t);break;case 4:J();break;case 31:t.memoizedState!==null&&en(t);break;case 13:en(t);break;case 19:P(ft);break;case 10:ra(t.type);break;case 22:case 23:en(t),ru(),e!==null&&P(bl);break;case 24:ra(pt)}}function yo(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var s=r.next;a=s;do{if((a.tag&e)===e){r=void 0;var u=a.create,b=a.inst;r=u(),b.destroy=r}a=a.next}while(a!==s)}}catch(S){Qe(t,t.return,S)}}function za(e,t,a){try{var r=t.updateQueue,s=r!==null?r.lastEffect:null;if(s!==null){var u=s.next;r=u;do{if((r.tag&e)===e){var b=r.inst,S=b.destroy;if(S!==void 0){b.destroy=void 0,s=t;var _=a,U=S;try{U()}catch(X){Qe(s,_,X)}}}r=r.next}while(r!==u)}}catch(X){Qe(t,t.return,X)}}function Np(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{hh(t,a)}catch(r){Qe(e,e.return,r)}}}function Tp(e,t,a){a.props=Nl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){Qe(e,t,r)}}function bo(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(s){Qe(e,t,s)}}function Hn(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(s){Qe(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){Qe(e,t,s)}else a.current=null}function Cp(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(s){Qe(e,e.return,s)}}function Uu(e,t,a){try{var r=e.stateNode;GS(r,e.type,a,t),r[Yt]=t}catch(s){Qe(e,e.return,s)}}function Ap(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ya(e.type)||e.tag===4}function Bu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ap(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&&Ya(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 Hu(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ea));else if(r!==4&&(r===27&&Ya(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Hu(e,t,a),e=e.sibling;e!==null;)Hu(e,t,a),e=e.sibling}function Hi(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&Ya(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Hi(e,t,a),e=e.sibling;e!==null;)Hi(e,t,a),e=e.sibling}function Rp(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Mt(t,r,a),t[At]=e,t[Yt]=a}catch(u){Qe(e,e.return,u)}}var ua=!1,yt=!1,Vu=!1,_p=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function ES(e,t){if(e=e.containerInfo,id=os,e=$m(e),Dc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var s=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var b=0,S=-1,_=-1,U=0,X=0,Z=e,H=null;t:for(;;){for(var q;Z!==a||s!==0&&Z.nodeType!==3||(S=b+s),Z!==u||r!==0&&Z.nodeType!==3||(_=b+r),Z.nodeType===3&&(b+=Z.nodeValue.length),(q=Z.firstChild)!==null;)H=Z,Z=q;for(;;){if(Z===e)break t;if(H===a&&++U===s&&(S=b),H===u&&++X===r&&(_=b),(q=Z.nextSibling)!==null)break;Z=H,H=Z.parentNode}Z=q}a=S===-1||_===-1?null:{start:S,end:_}}else a=null}a=a||{start:0,end:0}}else a=null;for(sd={focusedElem:e,selectionRange:a},os=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){switch(t=Nt,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(a=0;a<e.length;a++)s=e[a],s.ref.impl=s.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&u!==null){e=void 0,a=t,s=u.memoizedProps,u=u.memoizedState,r=a.stateNode;try{var he=Nl(a.type,s);e=r.getSnapshotBeforeUpdate(he,u),r.__reactInternalSnapshotBeforeUpdate=e}catch(we){Qe(a,a.return,we)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)dd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":dd(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(i(163))}if(e=t.sibling,e!==null){e.return=t.return,Nt=e;break}Nt=t.return}}function jp(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:fa(e,a),r&4&&yo(5,a);break;case 1:if(fa(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(b){Qe(a,a.return,b)}else{var s=Nl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Qe(a,a.return,b)}}r&64&&Np(a),r&512&&bo(a,a.return);break;case 3:if(fa(e,a),r&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{hh(e,t)}catch(b){Qe(a,a.return,b)}}break;case 27:t===null&&r&4&&Rp(a);case 26:case 5:fa(e,a),t===null&&r&4&&Cp(a),r&512&&bo(a,a.return);break;case 12:fa(e,a);break;case 31:fa(e,a),r&4&&Dp(e,a);break;case 13:fa(e,a),r&4&&kp(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=OS.bind(null,a),JS(e,a))));break;case 22:if(r=a.memoizedState!==null||ua,!r){t=t!==null&&t.memoizedState!==null||yt,s=ua;var u=yt;ua=r,(yt=t)&&!u?ma(e,a,(a.subtreeFlags&8772)!==0):fa(e,a),ua=s,yt=u}break;case 30:break;default:fa(e,a)}}function Mp(e){var t=e.alternate;t!==null&&(e.alternate=null,Mp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&gc(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 rt=null,Gt=!1;function da(e,t,a){for(a=a.child;a!==null;)Op(e,t,a),a=a.sibling}function Op(e,t,a){if(Ut&&typeof Ut.onCommitFiberUnmount=="function")try{Ut.onCommitFiberUnmount(kn,a)}catch{}switch(a.tag){case 26:yt||Hn(a,t),da(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:yt||Hn(a,t);var r=rt,s=Gt;Ya(a.type)&&(rt=a.stateNode,Gt=!1),da(e,t,a),Ro(a.stateNode),rt=r,Gt=s;break;case 5:yt||Hn(a,t);case 6:if(r=rt,s=Gt,rt=null,da(e,t,a),rt=r,Gt=s,rt!==null)if(Gt)try{(rt.nodeType===9?rt.body:rt.nodeName==="HTML"?rt.ownerDocument.body:rt).removeChild(a.stateNode)}catch(u){Qe(a,t,u)}else try{rt.removeChild(a.stateNode)}catch(u){Qe(a,t,u)}break;case 18:rt!==null&&(Gt?(e=rt,Ng(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Er(e)):Ng(rt,a.stateNode));break;case 4:r=rt,s=Gt,rt=a.stateNode.containerInfo,Gt=!0,da(e,t,a),rt=r,Gt=s;break;case 0:case 11:case 14:case 15:za(2,a,t),yt||za(4,a,t),da(e,t,a);break;case 1:yt||(Hn(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&Tp(a,t,r)),da(e,t,a);break;case 21:da(e,t,a);break;case 22:yt=(r=yt)||a.memoizedState!==null,da(e,t,a),yt=r;break;default:da(e,t,a)}}function Dp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Er(e)}catch(a){Qe(t,t.return,a)}}}function kp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Er(e)}catch(a){Qe(t,t.return,a)}}function NS(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new _p),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new _p),t;default:throw Error(i(435,e.tag))}}function Vi(e,t){var a=NS(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var s=DS.bind(null,e,r);r.then(s,s)}})}function Pt(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var s=a[r],u=e,b=t,S=b;e:for(;S!==null;){switch(S.tag){case 27:if(Ya(S.type)){rt=S.stateNode,Gt=!1;break e}break;case 5:rt=S.stateNode,Gt=!1;break e;case 3:case 4:rt=S.stateNode.containerInfo,Gt=!0;break e}S=S.return}if(rt===null)throw Error(i(160));Op(u,b,s),rt=null,Gt=!1,u=s.alternate,u!==null&&(u.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)zp(t,e),t=t.sibling}var En=null;function zp(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Pt(t,e),Xt(e),r&4&&(za(3,e,e.return),yo(3,e),za(5,e,e.return));break;case 1:Pt(t,e),Xt(e),r&512&&(yt||a===null||Hn(a,a.return)),r&64&&ua&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var s=En;if(Pt(t,e),Xt(e),r&512&&(yt||a===null||Hn(a,a.return)),r&4){var u=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(r){case"title":u=s.getElementsByTagName("title")[0],(!u||u[Pr]||u[At]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=s.createElement(r),s.head.insertBefore(u,s.querySelector("head > title"))),Mt(u,r,a),u[At]=e,Et(u),r=u;break e;case"link":var b=zg("link","href",s).get(r+(a.href||""));if(b){for(var S=0;S<b.length;S++)if(u=b[S],u.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&u.getAttribute("rel")===(a.rel==null?null:a.rel)&&u.getAttribute("title")===(a.title==null?null:a.title)&&u.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){b.splice(S,1);break t}}u=s.createElement(r),Mt(u,r,a),s.head.appendChild(u);break;case"meta":if(b=zg("meta","content",s).get(r+(a.content||""))){for(S=0;S<b.length;S++)if(u=b[S],u.getAttribute("content")===(a.content==null?null:""+a.content)&&u.getAttribute("name")===(a.name==null?null:a.name)&&u.getAttribute("property")===(a.property==null?null:a.property)&&u.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&u.getAttribute("charset")===(a.charSet==null?null:a.charSet)){b.splice(S,1);break t}}u=s.createElement(r),Mt(u,r,a),s.head.appendChild(u);break;default:throw Error(i(468,r))}u[At]=e,Et(u),r=u}e.stateNode=r}else Lg(s,e.type,e.stateNode);else e.stateNode=kg(s,r,e.memoizedProps);else u!==r?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,r===null?Lg(s,e.type,e.stateNode):kg(s,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Uu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Pt(t,e),Xt(e),r&512&&(yt||a===null||Hn(a,a.return)),a!==null&&r&4&&Uu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Pt(t,e),Xt(e),r&512&&(yt||a===null||Hn(a,a.return)),e.flags&32){s=e.stateNode;try{Xl(s,"")}catch(he){Qe(e,e.return,he)}}r&4&&e.stateNode!=null&&(s=e.memoizedProps,Uu(e,s,a!==null?a.memoizedProps:s)),r&1024&&(Vu=!0);break;case 6:if(Pt(t,e),Xt(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(he){Qe(e,e.return,he)}}break;case 3:if(ns=null,s=En,En=es(t.containerInfo),Pt(t,e),En=s,Xt(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{Er(t.containerInfo)}catch(he){Qe(e,e.return,he)}Vu&&(Vu=!1,Lp(e));break;case 4:r=En,En=es(e.stateNode.containerInfo),Pt(t,e),Xt(e),En=r;break;case 12:Pt(t,e),Xt(e);break;case 31:Pt(t,e),Xt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Vi(e,r)));break;case 13:Pt(t,e),Xt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Yi=Ct()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Vi(e,r)));break;case 22:s=e.memoizedState!==null;var _=a!==null&&a.memoizedState!==null,U=ua,X=yt;if(ua=U||s,yt=X||_,Pt(t,e),yt=X,ua=U,Xt(e),r&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||_||ua||yt||Tl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){_=a=t;try{if(u=_.stateNode,s)b=u.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{S=_.stateNode;var Z=_.memoizedProps.style,H=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;S.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(he){Qe(_,_.return,he)}}}else if(t.tag===6){if(a===null){_=t;try{_.stateNode.nodeValue=s?"":_.memoizedProps}catch(he){Qe(_,_.return,he)}}}else if(t.tag===18){if(a===null){_=t;try{var q=_.stateNode;s?Tg(q,!0):Tg(_.stateNode,!1)}catch(he){Qe(_,_.return,he)}}}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;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,Vi(e,a))));break;case 19:Pt(t,e),Xt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Vi(e,r)));break;case 30:break;case 21:break;default:Pt(t,e),Xt(e)}}function Xt(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(Ap(r)){a=r;break}r=r.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var s=a.stateNode,u=Bu(e);Hi(e,u,s);break;case 5:var b=a.stateNode;a.flags&32&&(Xl(b,""),a.flags&=-33);var S=Bu(e);Hi(e,S,b);break;case 3:case 4:var _=a.stateNode.containerInfo,U=Bu(e);Hu(e,U,_);break;default:throw Error(i(161))}}catch(X){Qe(e,e.return,X)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Lp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Lp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function fa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)jp(e,t.alternate,t),t=t.sibling}function Tl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:za(4,t,t.return),Tl(t);break;case 1:Hn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Tp(t,t.return,a),Tl(t);break;case 27:Ro(t.stateNode);case 26:case 5:Hn(t,t.return),Tl(t);break;case 22:t.memoizedState===null&&Tl(t);break;case 30:Tl(t);break;default:Tl(t)}e=e.sibling}}function ma(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,s=e,u=t,b=u.flags;switch(u.tag){case 0:case 11:case 15:ma(s,u,a),yo(4,u);break;case 1:if(ma(s,u,a),r=u,s=r.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(U){Qe(r,r.return,U)}if(r=u,s=r.updateQueue,s!==null){var S=r.stateNode;try{var _=s.shared.hiddenCallbacks;if(_!==null)for(s.shared.hiddenCallbacks=null,s=0;s<_.length;s++)mh(_[s],S)}catch(U){Qe(r,r.return,U)}}a&&b&64&&Np(u),bo(u,u.return);break;case 27:Rp(u);case 26:case 5:ma(s,u,a),a&&r===null&&b&4&&Cp(u),bo(u,u.return);break;case 12:ma(s,u,a);break;case 31:ma(s,u,a),a&&b&4&&Dp(s,u);break;case 13:ma(s,u,a),a&&b&4&&kp(s,u);break;case 22:u.memoizedState===null&&ma(s,u,a),bo(u,u.return);break;case 30:break;default:ma(s,u,a)}t=t.sibling}}function $u(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&lo(a))}function Yu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&lo(e))}function Nn(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Up(e,t,a,r),t=t.sibling}function Up(e,t,a,r){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Nn(e,t,a,r),s&2048&&yo(9,t);break;case 1:Nn(e,t,a,r);break;case 3:Nn(e,t,a,r),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&lo(e)));break;case 12:if(s&2048){Nn(e,t,a,r),e=t.stateNode;try{var u=t.memoizedProps,b=u.id,S=u.onPostCommit;typeof S=="function"&&S(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(_){Qe(t,t.return,_)}}else Nn(e,t,a,r);break;case 31:Nn(e,t,a,r);break;case 13:Nn(e,t,a,r);break;case 23:break;case 22:u=t.stateNode,b=t.alternate,t.memoizedState!==null?u._visibility&2?Nn(e,t,a,r):xo(e,t):u._visibility&2?Nn(e,t,a,r):(u._visibility|=2,fr(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),s&2048&&$u(b,t);break;case 24:Nn(e,t,a,r),s&2048&&Yu(t.alternate,t);break;default:Nn(e,t,a,r)}}function fr(e,t,a,r,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,b=t,S=a,_=r,U=b.flags;switch(b.tag){case 0:case 11:case 15:fr(u,b,S,_,s),yo(8,b);break;case 23:break;case 22:var X=b.stateNode;b.memoizedState!==null?X._visibility&2?fr(u,b,S,_,s):xo(u,b):(X._visibility|=2,fr(u,b,S,_,s)),s&&U&2048&&$u(b.alternate,b);break;case 24:fr(u,b,S,_,s),s&&U&2048&&Yu(b.alternate,b);break;default:fr(u,b,S,_,s)}t=t.sibling}}function xo(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,s=r.flags;switch(r.tag){case 22:xo(a,r),s&2048&&$u(r.alternate,r);break;case 24:xo(a,r),s&2048&&Yu(r.alternate,r);break;default:xo(a,r)}t=t.sibling}}var So=8192;function mr(e,t,a){if(e.subtreeFlags&So)for(e=e.child;e!==null;)Bp(e,t,a),e=e.sibling}function Bp(e,t,a){switch(e.tag){case 26:mr(e,t,a),e.flags&So&&e.memoizedState!==null&&u2(a,En,e.memoizedState,e.memoizedProps);break;case 5:mr(e,t,a);break;case 3:case 4:var r=En;En=es(e.stateNode.containerInfo),mr(e,t,a),En=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=So,So=16777216,mr(e,t,a),So=r):mr(e,t,a));break;default:mr(e,t,a)}}function Hp(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 wo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];Nt=r,$p(r,e)}Hp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Vp(e),e=e.sibling}function Vp(e){switch(e.tag){case 0:case 11:case 15:wo(e),e.flags&2048&&za(9,e,e.return);break;case 3:wo(e);break;case 12:wo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,$i(e)):wo(e);break;default:wo(e)}}function $i(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];Nt=r,$p(r,e)}Hp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:za(8,t,t.return),$i(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,$i(t));break;default:$i(t)}e=e.sibling}}function $p(e,t){for(;Nt!==null;){var a=Nt;switch(a.tag){case 0:case 11:case 15:za(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:lo(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,Nt=r;else e:for(a=e;Nt!==null;){r=Nt;var s=r.sibling,u=r.return;if(Mp(r),r===a){Nt=null;break e}if(s!==null){s.return=u,Nt=s;break e}Nt=u}}}var TS={getCacheForType:function(e){var t=_t(pt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return _t(pt).controller.signal}},CS=typeof WeakMap=="function"?WeakMap:Map,qe=0,Je=null,Me=null,ke=0,Ke=0,tn=null,La=!1,hr=!1,qu=!1,ha=0,ut=0,Ua=0,Cl=0,Gu=0,nn=0,pr=0,Eo=null,Kt=null,Pu=!1,Yi=0,Yp=0,qi=1/0,Gi=null,Ba=null,bt=0,Ha=null,gr=null,pa=0,Xu=0,Ku=null,qp=null,No=0,Qu=null;function an(){return(qe&2)!==0&&ke!==0?ke&-ke:M.T!==null?ed():hc()}function Gp(){if(nn===0)if((ke&536870912)===0||Le){var e=Bl;Bl<<=1,(Bl&3932160)===0&&(Bl=262144),nn=e}else nn=536870912;return e=Wt.current,e!==null&&(e.flags|=32),nn}function Qt(e,t,a){(e===Je&&(Ke===2||Ke===9)||e.cancelPendingCommit!==null)&&(vr(e,0),Va(e,ke,nn,!1)),it(e,a),((qe&2)===0||e!==Je)&&(e===Je&&((qe&2)===0&&(Cl|=a),ut===4&&Va(e,ke,nn,!1)),Vn(e))}function Pp(e,t,a){if((qe&6)!==0)throw Error(i(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||lt(e,t),s=r?_S(e,t):Iu(e,t,!0),u=r;do{if(s===0){hr&&!r&&Va(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!AS(a)){s=Iu(e,t,!1),u=!1;continue}if(s===2){if(u=t,e.errorRecoveryDisabledLanes&u)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){t=b;e:{var S=e;s=Eo;var _=S.current.memoizedState.isDehydrated;if(_&&(vr(S,b).flags|=256),b=Iu(S,b,!1),b!==2){if(qu&&!_){S.errorRecoveryDisabledLanes|=u,Cl|=u,s=4;break e}u=Kt,Kt=s,u!==null&&(Kt===null?Kt=u:Kt.push.apply(Kt,u))}s=b}if(u=!1,s!==2)continue}}if(s===1){vr(e,0),Va(e,t,0,!0);break}e:{switch(r=e,u=s,u){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Va(r,t,nn,!La);break e;case 2:Kt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(s=Yi+300-Ct(),10<s)){if(Va(r,t,nn,!La),Te(r,0,!0)!==0)break e;pa=t,r.timeoutHandle=wg(Xp.bind(null,r,a,Kt,Gi,Pu,t,nn,Cl,pr,La,u,"Throttled",-0,0),s);break e}Xp(r,a,Kt,Gi,Pu,t,nn,Cl,pr,La,u,null,-0,0)}}break}while(!0);Vn(e)}function Xp(e,t,a,r,s,u,b,S,_,U,X,Z,H,q){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ea},Bp(t,u,Z);var he=(u&62914560)===u?Yi-Ct():(u&4194048)===u?Yp-Ct():0;if(he=d2(Z,he),he!==null){pa=u,e.cancelPendingCommit=he(eg.bind(null,e,t,u,a,r,s,b,S,_,X,Z,null,H,q)),Va(e,u,b,!U);return}}eg(e,t,u,a,r,s,b,S,_)}function AS(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var r=0;r<a.length;r++){var s=a[r],u=s.getSnapshot;s=s.value;try{if(!Ft(u(),s))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;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 Va(e,t,a,r){t&=~Gu,t&=~Cl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var s=t;0<s;){var u=31-Ot(s),b=1<<u;r[u]=-1,s&=~b}a!==0&&cl(e,a,t)}function Pi(){return(qe&6)===0?(To(0),!1):!0}function Zu(){if(Me!==null){if(Ke===0)var e=Me.return;else e=Me,la=vl=null,du(e),ir=null,oo=0,e=Me;for(;e!==null;)Ep(e.alternate,e),e=e.return;Me=null}}function vr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,KS(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),pa=0,Zu(),Je=e,Me=a=na(e.current,null),ke=t,Ke=0,tn=null,La=!1,hr=lt(e,t),qu=!1,pr=nn=Gu=Cl=Ua=ut=0,Kt=Eo=null,Pu=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var s=31-Ot(r),u=1<<s;t|=e[s],r&=~u}return ha=t,fi(),a}function Kp(e,t){Ae=null,M.H=po,t===or||t===xi?(t=ch(),Ke=3):t===Wc?(t=ch(),Ke=4):Ke=t===Au?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,tn=t,Me===null&&(ut=1,ki(e,dn(t,e.current)))}function Qp(){var e=Wt.current;return e===null?!0:(ke&4194048)===ke?pn===null:(ke&62914560)===ke||(ke&536870912)!==0?e===pn:!1}function Zp(){var e=M.H;return M.H=po,e===null?po:e}function Ip(){var e=M.A;return M.A=TS,e}function Xi(){ut=4,La||(ke&4194048)!==ke&&Wt.current!==null||(hr=!0),(Ua&134217727)===0&&(Cl&134217727)===0||Je===null||Va(Je,ke,nn,!1)}function Iu(e,t,a){var r=qe;qe|=2;var s=Zp(),u=Ip();(Je!==e||ke!==t)&&(Gi=null,vr(e,t)),t=!1;var b=ut;e:do try{if(Ke!==0&&Me!==null){var S=Me,_=tn;switch(Ke){case 8:Zu(),b=6;break e;case 3:case 2:case 9:case 6:Wt.current===null&&(t=!0);var U=Ke;if(Ke=0,tn=null,yr(e,S,_,U),a&&hr){b=0;break e}break;default:U=Ke,Ke=0,tn=null,yr(e,S,_,U)}}RS(),b=ut;break}catch(X){Kp(e,X)}while(!0);return t&&e.shellSuspendCounter++,la=vl=null,qe=r,M.H=s,M.A=u,Me===null&&(Je=null,ke=0,fi()),b}function RS(){for(;Me!==null;)Fp(Me)}function _S(e,t){var a=qe;qe|=2;var r=Zp(),s=Ip();Je!==e||ke!==t?(Gi=null,qi=Ct()+500,vr(e,t)):hr=lt(e,t);e:do try{if(Ke!==0&&Me!==null){t=Me;var u=tn;t:switch(Ke){case 1:Ke=0,tn=null,yr(e,t,u,1);break;case 2:case 9:if(ih(u)){Ke=0,tn=null,Jp(t);break}t=function(){Ke!==2&&Ke!==9||Je!==e||(Ke=7),Vn(e)},u.then(t,t);break e;case 3:Ke=7;break e;case 4:Ke=5;break e;case 7:ih(u)?(Ke=0,tn=null,Jp(t)):(Ke=0,tn=null,yr(e,t,u,7));break;case 5:var b=null;switch(Me.tag){case 26:b=Me.memoizedState;case 5:case 27:var S=Me;if(b?Ug(b):S.stateNode.complete){Ke=0,tn=null;var _=S.sibling;if(_!==null)Me=_;else{var U=S.return;U!==null?(Me=U,Ki(U)):Me=null}break t}}Ke=0,tn=null,yr(e,t,u,5);break;case 6:Ke=0,tn=null,yr(e,t,u,6);break;case 8:Zu(),ut=6;break e;default:throw Error(i(462))}}jS();break}catch(X){Kp(e,X)}while(!0);return la=vl=null,M.H=r,M.A=s,qe=a,Me!==null?0:(Je=null,ke=0,fi(),ut)}function jS(){for(;Me!==null&&!Tt();)Fp(Me)}function Fp(e){var t=Sp(e.alternate,e,ha);e.memoizedProps=e.pendingProps,t===null?Ki(e):Me=t}function Jp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=pp(a,t,t.pendingProps,t.type,void 0,ke);break;case 11:t=pp(a,t,t.pendingProps,t.type.render,t.ref,ke);break;case 5:du(t);default:Ep(a,t),t=Me=Im(t,ha),t=Sp(a,t,ha)}e.memoizedProps=e.pendingProps,t===null?Ki(e):Me=t}function yr(e,t,a,r){la=vl=null,du(t),ir=null,oo=0;var s=t.return;try{if(yS(e,s,t,a,ke)){ut=1,ki(e,dn(a,e.current)),Me=null;return}}catch(u){if(s!==null)throw Me=s,u;ut=1,ki(e,dn(a,e.current)),Me=null;return}t.flags&32768?(Le||r===1?e=!0:hr||(ke&536870912)!==0?e=!1:(La=e=!0,(r===2||r===9||r===3||r===6)&&(r=Wt.current,r!==null&&r.tag===13&&(r.flags|=16384))),Wp(t,e)):Ki(t)}function Ki(e){var t=e;do{if((t.flags&32768)!==0){Wp(t,La);return}e=t.return;var a=SS(t.alternate,t,ha);if(a!==null){Me=a;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);ut===0&&(ut=5)}function Wp(e,t){do{var a=wS(e.alternate,e);if(a!==null){a.flags&=32767,Me=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){Me=e;return}Me=e=a}while(e!==null);ut=6,Me=null}function eg(e,t,a,r,s,u,b,S,_){e.cancelPendingCommit=null;do Qi();while(bt!==0);if((qe&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(u=t.lanes|t.childLanes,u|=Bc,Ht(e,a,u,b,S,_),e===Je&&(Me=Je=null,ke=0),gr=t,Ha=e,pa=a,Xu=u,Ku=s,qp=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,kS(Xe,function(){return rg(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=M.T,M.T=null,s=Y.p,Y.p=2,b=qe,qe|=4;try{ES(e,t,a)}finally{qe=b,Y.p=s,M.T=r}}bt=1,tg(),ng(),ag()}}function tg(){if(bt===1){bt=0;var e=Ha,t=gr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null;var r=Y.p;Y.p=2;var s=qe;qe|=4;try{zp(t,e);var u=sd,b=$m(e.containerInfo),S=u.focusedElem,_=u.selectionRange;if(b!==S&&S&&S.ownerDocument&&Vm(S.ownerDocument.documentElement,S)){if(_!==null&&Dc(S)){var U=_.start,X=_.end;if(X===void 0&&(X=U),"selectionStart"in S)S.selectionStart=U,S.selectionEnd=Math.min(X,S.value.length);else{var Z=S.ownerDocument||document,H=Z&&Z.defaultView||window;if(H.getSelection){var q=H.getSelection(),he=S.textContent.length,we=Math.min(_.start,he),Fe=_.end===void 0?we:Math.min(_.end,he);!q.extend&&we>Fe&&(b=Fe,Fe=we,we=b);var k=Hm(S,we),D=Hm(S,Fe);if(k&&D&&(q.rangeCount!==1||q.anchorNode!==k.node||q.anchorOffset!==k.offset||q.focusNode!==D.node||q.focusOffset!==D.offset)){var L=Z.createRange();L.setStart(k.node,k.offset),q.removeAllRanges(),we>Fe?(q.addRange(L),q.extend(D.node,D.offset)):(L.setEnd(D.node,D.offset),q.addRange(L))}}}}for(Z=[],q=S;q=q.parentNode;)q.nodeType===1&&Z.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<Z.length;S++){var Q=Z[S];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}os=!!id,sd=id=null}finally{qe=s,Y.p=r,M.T=a}}e.current=t,bt=2}}function ng(){if(bt===2){bt=0;var e=Ha,t=gr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=M.T,M.T=null;var r=Y.p;Y.p=2;var s=qe;qe|=4;try{jp(e,t.alternate,t)}finally{qe=s,Y.p=r,M.T=a}}bt=3}}function ag(){if(bt===4||bt===3){bt=0,jn();var e=Ha,t=gr,a=pa,r=qp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?bt=5:(bt=0,gr=Ha=null,lg(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Ba=null),Sn(a),t=t.stateNode,Ut&&typeof Ut.onCommitFiberRoot=="function")try{Ut.onCommitFiberRoot(kn,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=M.T,s=Y.p,Y.p=2,M.T=null;try{for(var u=e.onRecoverableError,b=0;b<r.length;b++){var S=r[b];u(S.value,{componentStack:S.stack})}}finally{M.T=t,Y.p=s}}(pa&3)!==0&&Qi(),Vn(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===Qu?No++:(No=0,Qu=e):No=0,To(0)}}function lg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,lo(t)))}function Qi(){return tg(),ng(),ag(),rg()}function rg(){if(bt!==5)return!1;var e=Ha,t=Xu;Xu=0;var a=Sn(pa),r=M.T,s=Y.p;try{Y.p=32>a?32:a,M.T=null,a=Ku,Ku=null;var u=Ha,b=pa;if(bt=0,gr=Ha=null,pa=0,(qe&6)!==0)throw Error(i(331));var S=qe;if(qe|=4,Vp(u.current),Up(u,u.current,b,a),qe=S,To(0,!1),Ut&&typeof Ut.onPostCommitFiberRoot=="function")try{Ut.onPostCommitFiberRoot(kn,u)}catch{}return!0}finally{Y.p=s,M.T=r,lg(e,t)}}function og(e,t,a){t=dn(a,t),t=Cu(e.stateNode,t,2),e=Oa(e,t,2),e!==null&&(it(e,2),Vn(e))}function Qe(e,t,a){if(e.tag===3)og(e,e,a);else for(;t!==null;){if(t.tag===3){og(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ba===null||!Ba.has(r))){e=dn(a,e),a=ip(2),r=Oa(t,a,2),r!==null&&(sp(a,r,t,e),it(r,2),Vn(r));break}}t=t.return}}function Fu(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new CS;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(a)||(qu=!0,s.add(a),e=MS.bind(null,e,t,a),t.then(e,e))}function MS(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Je===e&&(ke&a)===a&&(ut===4||ut===3&&(ke&62914560)===ke&&300>Ct()-Yi?(qe&2)===0&&vr(e,0):Gu|=a,pr===ke&&(pr=0)),Vn(e)}function ig(e,t){t===0&&(t=Dt()),e=hl(e,t),e!==null&&(it(e,t),Vn(e))}function OS(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),ig(e,a)}function DS(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),ig(e,a)}function kS(e,t){return ol(e,t)}var Zi=null,br=null,Ju=!1,Ii=!1,Wu=!1,$a=0;function Vn(e){e!==br&&e.next===null&&(br===null?Zi=br=e:br=br.next=e),Ii=!0,Ju||(Ju=!0,LS())}function To(e,t){if(!Wu&&Ii){Wu=!0;do for(var a=!1,r=Zi;r!==null;){if(e!==0){var s=r.pendingLanes;if(s===0)var u=0;else{var b=r.suspendedLanes,S=r.pingedLanes;u=(1<<31-Ot(42|e)+1)-1,u&=s&~(b&~S),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,dg(r,u))}else u=ke,u=Te(r,r===Je?u:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(u&3)===0||lt(r,u)||(a=!0,dg(r,u));r=r.next}while(a);Wu=!1}}function zS(){sg()}function sg(){Ii=Ju=!1;var e=0;$a!==0&&XS()&&(e=$a);for(var t=Ct(),a=null,r=Zi;r!==null;){var s=r.next,u=cg(r,t);u===0?(r.next=null,a===null?Zi=s:a.next=s,s===null&&(br=a)):(a=r,(e!==0||(u&3)!==0)&&(Ii=!0)),r=s}bt!==0&&bt!==5||To(e),$a!==0&&($a=0)}function cg(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var b=31-Ot(u),S=1<<b,_=s[b];_===-1?((S&a)===0||(S&r)!==0)&&(s[b]=wt(S,t)):_<=t&&(e.expiredLanes|=S),u&=~S}if(t=Je,a=ke,a=Te(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(Ke===2||Ke===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&il(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||lt(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&il(r),Sn(a)){case 2:case 8:a=Ne;break;case 32:a=Xe;break;case 268435456:a=st;break;default:a=Xe}return r=ug.bind(null,e),a=ol(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&il(r),e.callbackPriority=2,e.callbackNode=null,2}function ug(e,t){if(bt!==0&&bt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Qi()&&e.callbackNode!==a)return null;var r=ke;return r=Te(e,e===Je?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Pp(e,r,t),cg(e,Ct()),e.callbackNode!=null&&e.callbackNode===a?ug.bind(null,e):null)}function dg(e,t){if(Qi())return null;Pp(e,t,!0)}function LS(){QS(function(){(qe&6)!==0?ol(Mn,zS):sg()})}function ed(){if($a===0){var e=lr;e===0&&(e=Ul,Ul<<=1,(Ul&261888)===0&&(Ul=256)),$a=e}return $a}function fg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:li(""+e)}function mg(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function US(e,t,a,r,s){if(t==="submit"&&a&&a.stateNode===s){var u=fg((s[Yt]||null).action),b=r.submitter;b&&(t=(t=b[Yt]||null)?fg(t.formAction):b.getAttribute("formAction"),t!==null&&(u=t,b=null));var S=new si("action","action",null,r,s);e.push({event:S,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if($a!==0){var _=b?mg(s,b):new FormData(s);xu(a,{pending:!0,data:_,method:s.method,action:u},null,_)}}else typeof u=="function"&&(S.preventDefault(),_=b?mg(s,b):new FormData(s),xu(a,{pending:!0,data:_,method:s.method,action:u},u,_))},currentTarget:s}]})}}for(var td=0;td<Uc.length;td++){var nd=Uc[td],BS=nd.toLowerCase(),HS=nd[0].toUpperCase()+nd.slice(1);wn(BS,"on"+HS)}wn(Gm,"onAnimationEnd"),wn(Pm,"onAnimationIteration"),wn(Xm,"onAnimationStart"),wn("dblclick","onDoubleClick"),wn("focusin","onFocus"),wn("focusout","onBlur"),wn(tS,"onTransitionRun"),wn(nS,"onTransitionStart"),wn(aS,"onTransitionCancel"),wn(Km,"onTransitionEnd"),Gl("onMouseEnter",["mouseout","mouseover"]),Gl("onMouseLeave",["mouseout","mouseover"]),Gl("onPointerEnter",["pointerout","pointerover"]),Gl("onPointerLeave",["pointerout","pointerover"]),ul("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ul("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ul("onBeforeInput",["compositionend","keypress","textInput","paste"]),ul("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ul("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ul("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Co="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(" "),VS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Co));function hg(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],s=r.event;r=r.listeners;e:{var u=void 0;if(t)for(var b=r.length-1;0<=b;b--){var S=r[b],_=S.instance,U=S.currentTarget;if(S=S.listener,_!==u&&s.isPropagationStopped())break e;u=S,s.currentTarget=U;try{u(s)}catch(X){di(X)}s.currentTarget=null,u=_}else for(b=0;b<r.length;b++){if(S=r[b],_=S.instance,U=S.currentTarget,S=S.listener,_!==u&&s.isPropagationStopped())break e;u=S,s.currentTarget=U;try{u(s)}catch(X){di(X)}s.currentTarget=null,u=_}}}}function Oe(e,t){var a=t[pc];a===void 0&&(a=t[pc]=new Set);var r=e+"__bubble";a.has(r)||(pg(t,e,2,!1),a.add(r))}function ad(e,t,a){var r=0;t&&(r|=4),pg(a,e,r,t)}var Fi="_reactListening"+Math.random().toString(36).slice(2);function ld(e){if(!e[Fi]){e[Fi]=!0,sm.forEach(function(a){a!=="selectionchange"&&(VS.has(a)||ad(a,!1,e),ad(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Fi]||(t[Fi]=!0,ad("selectionchange",!1,t))}}function pg(e,t,a,r){switch(Gg(t)){case 2:var s=h2;break;case 8:s=p2;break;default:s=bd}a=s.bind(null,t,a,e),s=void 0,!Nc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,a,{capture:!0,passive:s}):e.addEventListener(t,a,!0):s!==void 0?e.addEventListener(t,a,{passive:s}):e.addEventListener(t,a,!1)}function rd(e,t,a,r,s){var u=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var b=r.tag;if(b===3||b===4){var S=r.stateNode.containerInfo;if(S===s)break;if(b===4)for(b=r.return;b!==null;){var _=b.tag;if((_===3||_===4)&&b.stateNode.containerInfo===s)return;b=b.return}for(;S!==null;){if(b=$l(S),b===null)return;if(_=b.tag,_===5||_===6||_===26||_===27){r=u=b;continue e}S=S.parentNode}}r=r.return}xm(function(){var U=u,X=wc(a),Z=[];e:{var H=Qm.get(e);if(H!==void 0){var q=si,he=e;switch(e){case"keypress":if(oi(a)===0)break e;case"keydown":case"keyup":q=D1;break;case"focusin":he="focus",q=Rc;break;case"focusout":he="blur",q=Rc;break;case"beforeblur":case"afterblur":q=Rc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=Em;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=S1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=L1;break;case Gm:case Pm:case Xm:q=N1;break;case Km:q=B1;break;case"scroll":case"scrollend":q=b1;break;case"wheel":q=V1;break;case"copy":case"cut":case"paste":q=C1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=Tm;break;case"toggle":case"beforetoggle":q=Y1}var we=(t&4)!==0,Fe=!we&&(e==="scroll"||e==="scrollend"),k=we?H!==null?H+"Capture":null:H;we=[];for(var D=U,L;D!==null;){var Q=D;if(L=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||L===null||k===null||(Q=Kr(D,k),Q!=null&&we.push(Ao(D,Q,L))),Fe)break;D=D.return}0<we.length&&(H=new q(H,he,null,a,X),Z.push({event:H,listeners:we}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",H&&a!==Sc&&(he=a.relatedTarget||a.fromElement)&&($l(he)||he[Vl]))break e;if((q||H)&&(H=X.window===X?X:(H=X.ownerDocument)?H.defaultView||H.parentWindow:window,q?(he=a.relatedTarget||a.toElement,q=U,he=he?$l(he):null,he!==null&&(Fe=d(he),we=he.tag,he!==Fe||we!==5&&we!==27&&we!==6)&&(he=null)):(q=null,he=U),q!==he)){if(we=Em,Q="onMouseLeave",k="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(we=Tm,Q="onPointerLeave",k="onPointerEnter",D="pointer"),Fe=q==null?H:Xr(q),L=he==null?H:Xr(he),H=new we(Q,D+"leave",q,a,X),H.target=Fe,H.relatedTarget=L,Q=null,$l(X)===U&&(we=new we(k,D+"enter",he,a,X),we.target=L,we.relatedTarget=Fe,Q=we),Fe=Q,q&&he)t:{for(we=$S,k=q,D=he,L=0,Q=k;Q;Q=we(Q))L++;Q=0;for(var xe=D;xe;xe=we(xe))Q++;for(;0<L-Q;)k=we(k),L--;for(;0<Q-L;)D=we(D),Q--;for(;L--;){if(k===D||D!==null&&k===D.alternate){we=k;break t}k=we(k),D=we(D)}we=null}else we=null;q!==null&&gg(Z,H,q,we,!1),he!==null&&Fe!==null&&gg(Z,Fe,he,we,!0)}}e:{if(H=U?Xr(U):window,q=H.nodeName&&H.nodeName.toLowerCase(),q==="select"||q==="input"&&H.type==="file")var $e=Dm;else if(Mm(H))if(km)$e=J1;else{$e=I1;var ye=Z1}else q=H.nodeName,!q||q.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?U&&xc(U.elementType)&&($e=Dm):$e=F1;if($e&&($e=$e(e,U))){Om(Z,$e,a,X);break e}ye&&ye(e,H,U),e==="focusout"&&U&&H.type==="number"&&U.memoizedProps.value!=null&&bc(H,"number",H.value)}switch(ye=U?Xr(U):window,e){case"focusin":(Mm(ye)||ye.contentEditable==="true")&&(Il=ye,kc=U,to=null);break;case"focusout":to=kc=Il=null;break;case"mousedown":zc=!0;break;case"contextmenu":case"mouseup":case"dragend":zc=!1,Ym(Z,a,X);break;case"selectionchange":if(eS)break;case"keydown":case"keyup":Ym(Z,a,X)}var Re;if(jc)e:{switch(e){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else Zl?_m(e,a)&&(ze="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ze="onCompositionStart");ze&&(Cm&&a.locale!=="ko"&&(Zl||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&Zl&&(Re=Sm()):(Ta=X,Tc="value"in Ta?Ta.value:Ta.textContent,Zl=!0)),ye=Ji(U,ze),0<ye.length&&(ze=new Nm(ze,e,null,a,X),Z.push({event:ze,listeners:ye}),Re?ze.data=Re:(Re=jm(a),Re!==null&&(ze.data=Re)))),(Re=G1?P1(e,a):X1(e,a))&&(ze=Ji(U,"onBeforeInput"),0<ze.length&&(ye=new Nm("onBeforeInput","beforeinput",null,a,X),Z.push({event:ye,listeners:ze}),ye.data=Re)),US(Z,e,U,a,X)}hg(Z,t)})}function Ao(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ji(e,t){for(var a=t+"Capture",r=[];e!==null;){var s=e,u=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||u===null||(s=Kr(e,a),s!=null&&r.unshift(Ao(e,s,u)),s=Kr(e,t),s!=null&&r.push(Ao(e,s,u))),e.tag===3)return r;e=e.return}return[]}function $S(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function gg(e,t,a,r,s){for(var u=t._reactName,b=[];a!==null&&a!==r;){var S=a,_=S.alternate,U=S.stateNode;if(S=S.tag,_!==null&&_===r)break;S!==5&&S!==26&&S!==27||U===null||(_=U,s?(U=Kr(a,u),U!=null&&b.unshift(Ao(a,U,_))):s||(U=Kr(a,u),U!=null&&b.push(Ao(a,U,_)))),a=a.return}b.length!==0&&e.push({event:t,listeners:b})}var YS=/\r\n?/g,qS=/\u0000|\uFFFD/g;function vg(e){return(typeof e=="string"?e:""+e).replace(YS,`
50
+ `).replace(qS,"")}function yg(e,t){return t=vg(t),vg(e)===t}function Ie(e,t,a,r,s,u){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Xl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Xl(e,""+r);break;case"className":ni(e,"class",r);break;case"tabIndex":ni(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ni(e,a,r);break;case"style":ym(e,r,u);break;case"data":if(t!=="object"){ni(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=li(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(a,"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"&&(a==="formAction"?(t!=="input"&&Ie(e,t,"name",s.name,s,null),Ie(e,t,"formEncType",s.formEncType,s,null),Ie(e,t,"formMethod",s.formMethod,s,null),Ie(e,t,"formTarget",s.formTarget,s,null)):(Ie(e,t,"encType",s.encType,s,null),Ie(e,t,"method",s.method,s,null),Ie(e,t,"target",s.target,s,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=li(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=ea);break;case"onScroll":r!=null&&Oe("scroll",e);break;case"onScrollEnd":r!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(i(61));if(a=r.__html,a!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=li(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):e.removeAttribute(a);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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),ti(e,"popover",r);break;case"xlinkActuate":Wn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Wn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Wn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Wn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Wn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Wn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Wn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Wn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Wn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":ti(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=v1.get(a)||a,ti(e,a,r))}}function od(e,t,a,r,s,u){switch(a){case"style":ym(e,r,u);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(i(61));if(a=r.__html,a!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"children":typeof r=="string"?Xl(e,r):(typeof r=="number"||typeof r=="bigint")&&Xl(e,""+r);break;case"onScroll":r!=null&&Oe("scroll",e);break;case"onScrollEnd":r!=null&&Oe("scrollend",e);break;case"onClick":r!=null&&(e.onclick=ea);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!cm.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),t=a.slice(2,s?a.length-7:void 0),u=e[Yt]||null,u=u!=null?u[a]:null,typeof u=="function"&&e.removeEventListener(t,u,s),typeof r=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,s);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):ti(e,a,r)}}}function Mt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var r=!1,s=!1,u;for(u in a)if(a.hasOwnProperty(u)){var b=a[u];if(b!=null)switch(u){case"src":r=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ie(e,t,u,b,a,null)}}s&&Ie(e,t,"srcSet",a.srcSet,a,null),r&&Ie(e,t,"src",a.src,a,null);return;case"input":Oe("invalid",e);var S=u=b=s=null,_=null,U=null;for(r in a)if(a.hasOwnProperty(r)){var X=a[r];if(X!=null)switch(r){case"name":s=X;break;case"type":b=X;break;case"checked":_=X;break;case"defaultChecked":U=X;break;case"value":u=X;break;case"defaultValue":S=X;break;case"children":case"dangerouslySetInnerHTML":if(X!=null)throw Error(i(137,t));break;default:Ie(e,t,r,X,a,null)}}hm(e,u,S,_,U,b,s,!1);return;case"select":Oe("invalid",e),r=b=u=null;for(s in a)if(a.hasOwnProperty(s)&&(S=a[s],S!=null))switch(s){case"value":u=S;break;case"defaultValue":b=S;break;case"multiple":r=S;default:Ie(e,t,s,S,a,null)}t=u,a=b,e.multiple=!!r,t!=null?Pl(e,!!r,t,!1):a!=null&&Pl(e,!!r,a,!0);return;case"textarea":Oe("invalid",e),u=s=r=null;for(b in a)if(a.hasOwnProperty(b)&&(S=a[b],S!=null))switch(b){case"value":r=S;break;case"defaultValue":s=S;break;case"children":u=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(i(91));break;default:Ie(e,t,b,S,a,null)}gm(e,r,s,u);return;case"option":for(_ in a)if(a.hasOwnProperty(_)&&(r=a[_],r!=null))switch(_){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Ie(e,t,_,r,a,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(r=0;r<Co.length;r++)Oe(Co[r],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("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(U in a)if(a.hasOwnProperty(U)&&(r=a[U],r!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ie(e,t,U,r,a,null)}return;default:if(xc(t)){for(X in a)a.hasOwnProperty(X)&&(r=a[X],r!==void 0&&od(e,t,X,r,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(r=a[S],r!=null&&Ie(e,t,S,r,a,null))}function GS(e,t,a,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,u=null,b=null,S=null,_=null,U=null,X=null;for(q in a){var Z=a[q];if(a.hasOwnProperty(q)&&Z!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":_=Z;default:r.hasOwnProperty(q)||Ie(e,t,q,null,r,Z)}}for(var H in r){var q=r[H];if(Z=a[H],r.hasOwnProperty(H)&&(q!=null||Z!=null))switch(H){case"type":u=q;break;case"name":s=q;break;case"checked":U=q;break;case"defaultChecked":X=q;break;case"value":b=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(i(137,t));break;default:q!==Z&&Ie(e,t,H,q,r,Z)}}yc(e,b,S,_,U,X,u,s);return;case"select":q=b=S=H=null;for(u in a)if(_=a[u],a.hasOwnProperty(u)&&_!=null)switch(u){case"value":break;case"multiple":q=_;default:r.hasOwnProperty(u)||Ie(e,t,u,null,r,_)}for(s in r)if(u=r[s],_=a[s],r.hasOwnProperty(s)&&(u!=null||_!=null))switch(s){case"value":H=u;break;case"defaultValue":S=u;break;case"multiple":b=u;default:u!==_&&Ie(e,t,s,u,r,_)}t=S,a=b,r=q,H!=null?Pl(e,!!a,H,!1):!!r!=!!a&&(t!=null?Pl(e,!!a,t,!0):Pl(e,!!a,a?[]:"",!1));return;case"textarea":q=H=null;for(S in a)if(s=a[S],a.hasOwnProperty(S)&&s!=null&&!r.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ie(e,t,S,null,r,s)}for(b in r)if(s=r[b],u=a[b],r.hasOwnProperty(b)&&(s!=null||u!=null))switch(b){case"value":H=s;break;case"defaultValue":q=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(i(91));break;default:s!==u&&Ie(e,t,b,s,r,u)}pm(e,H,q);return;case"option":for(var he in a)if(H=a[he],a.hasOwnProperty(he)&&H!=null&&!r.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Ie(e,t,he,null,r,H)}for(_ in r)if(H=r[_],q=a[_],r.hasOwnProperty(_)&&H!==q&&(H!=null||q!=null))switch(_){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Ie(e,t,_,H,r,q)}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 we in a)H=a[we],a.hasOwnProperty(we)&&H!=null&&!r.hasOwnProperty(we)&&Ie(e,t,we,null,r,H);for(U in r)if(H=r[U],q=a[U],r.hasOwnProperty(U)&&H!==q&&(H!=null||q!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(i(137,t));break;default:Ie(e,t,U,H,r,q)}return;default:if(xc(t)){for(var Fe in a)H=a[Fe],a.hasOwnProperty(Fe)&&H!==void 0&&!r.hasOwnProperty(Fe)&&od(e,t,Fe,void 0,r,H);for(X in r)H=r[X],q=a[X],!r.hasOwnProperty(X)||H===q||H===void 0&&q===void 0||od(e,t,X,H,r,q);return}}for(var k in a)H=a[k],a.hasOwnProperty(k)&&H!=null&&!r.hasOwnProperty(k)&&Ie(e,t,k,null,r,H);for(Z in r)H=r[Z],q=a[Z],!r.hasOwnProperty(Z)||H===q||H==null&&q==null||Ie(e,t,Z,H,r,q)}function bg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function PS(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var s=a[r],u=s.transferSize,b=s.initiatorType,S=s.duration;if(u&&S&&bg(b)){for(b=0,S=s.responseEnd,r+=1;r<a.length;r++){var _=a[r],U=_.startTime;if(U>S)break;var X=_.transferSize,Z=_.initiatorType;X&&bg(Z)&&(_=_.responseEnd,b+=X*(_<S?1:(S-U)/(_-U)))}if(--r,t+=8*(u+b)/(s.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 id=null,sd=null;function Wi(e){return e.nodeType===9?e:e.ownerDocument}function xg(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 Sg(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 cd(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 ud=null;function XS(){var e=window.event;return e&&e.type==="popstate"?e===ud?!1:(ud=e,!0):(ud=null,!1)}var wg=typeof setTimeout=="function"?setTimeout:void 0,KS=typeof clearTimeout=="function"?clearTimeout:void 0,Eg=typeof Promise=="function"?Promise:void 0,QS=typeof queueMicrotask=="function"?queueMicrotask:typeof Eg<"u"?function(e){return Eg.resolve(null).then(e).catch(ZS)}:wg;function ZS(e){setTimeout(function(){throw e})}function Ya(e){return e==="head"}function Ng(e,t){var a=t,r=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(s),Er(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")Ro(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Ro(a);for(var u=a.firstChild;u;){var b=u.nextSibling,S=u.nodeName;u[Pr]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=b}}else a==="body"&&Ro(e.ownerDocument.body);a=s}while(a);Er(t)}function Tg(e,t){var a=e;e=0;do{var r=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function dd(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":dd(a),gc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function IS(e,t,a,r){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Pr])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!==s.rel||e.getAttribute("href")!==(s.href==null||s.href===""?null:s.href)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin)||e.getAttribute("title")!==(s.title==null?null:s.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=gn(e.nextSibling),e===null)break}return null}function FS(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=gn(e.nextSibling),e===null))return null;return e}function Cg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=gn(e.nextSibling),e===null))return null;return e}function fd(e){return e.data==="$?"||e.data==="$~"}function md(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function JS(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function gn(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 hd=null;function Ag(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return gn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Rg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function _g(e,t,a){switch(t=Wi(a),e){case"html":if(e=t.documentElement,!e)throw Error(i(452));return e;case"head":if(e=t.head,!e)throw Error(i(453));return e;case"body":if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Ro(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);gc(e)}var vn=new Map,jg=new Set;function es(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ga=Y.d;Y.d={f:WS,r:e2,D:t2,C:n2,L:a2,m:l2,X:o2,S:r2,M:i2};function WS(){var e=ga.f(),t=Pi();return e||t}function e2(e){var t=Yl(e);t!==null&&t.tag===5&&t.type==="form"?Kh(t):ga.r(e)}var xr=typeof document>"u"?null:document;function Mg(e,t,a){var r=xr;if(r&&typeof t=="string"&&t){var s=cn(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),jg.has(s)||(jg.add(s),e={rel:e,crossOrigin:a,href:t},r.querySelector(s)===null&&(t=r.createElement("link"),Mt(t,"link",e),Et(t),r.head.appendChild(t)))}}function t2(e){ga.D(e),Mg("dns-prefetch",e,null)}function n2(e,t){ga.C(e,t),Mg("preconnect",e,t)}function a2(e,t,a){ga.L(e,t,a);var r=xr;if(r&&e&&t){var s='link[rel="preload"][as="'+cn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+cn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+cn(a.imageSizes)+'"]')):s+='[href="'+cn(e)+'"]';var u=s;switch(t){case"style":u=Sr(e);break;case"script":u=wr(e)}vn.has(u)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),vn.set(u,e),r.querySelector(s)!==null||t==="style"&&r.querySelector(_o(u))||t==="script"&&r.querySelector(jo(u))||(t=r.createElement("link"),Mt(t,"link",e),Et(t),r.head.appendChild(t)))}}function l2(e,t){ga.m(e,t);var a=xr;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+cn(r)+'"][href="'+cn(e)+'"]',u=s;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=wr(e)}if(!vn.has(u)&&(e=g({rel:"modulepreload",href:e},t),vn.set(u,e),a.querySelector(s)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(jo(u)))return}r=a.createElement("link"),Mt(r,"link",e),Et(r),a.head.appendChild(r)}}}function r2(e,t,a){ga.S(e,t,a);var r=xr;if(r&&e){var s=ql(r).hoistableStyles,u=Sr(e);t=t||"default";var b=s.get(u);if(!b){var S={loading:0,preload:null};if(b=r.querySelector(_o(u)))S.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=vn.get(u))&&pd(e,a);var _=b=r.createElement("link");Et(_),Mt(_,"link",e),_._p=new Promise(function(U,X){_.onload=U,_.onerror=X}),_.addEventListener("load",function(){S.loading|=1}),_.addEventListener("error",function(){S.loading|=2}),S.loading|=4,ts(b,t,r)}b={type:"stylesheet",instance:b,count:1,state:S},s.set(u,b)}}}function o2(e,t){ga.X(e,t);var a=xr;if(a&&e){var r=ql(a).hoistableScripts,s=wr(e),u=r.get(s);u||(u=a.querySelector(jo(s)),u||(e=g({src:e,async:!0},t),(t=vn.get(s))&&gd(e,t),u=a.createElement("script"),Et(u),Mt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(s,u))}}function i2(e,t){ga.M(e,t);var a=xr;if(a&&e){var r=ql(a).hoistableScripts,s=wr(e),u=r.get(s);u||(u=a.querySelector(jo(s)),u||(e=g({src:e,async:!0,type:"module"},t),(t=vn.get(s))&&gd(e,t),u=a.createElement("script"),Et(u),Mt(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},r.set(s,u))}}function Og(e,t,a,r){var s=(s=ie.current)?es(s):null;if(!s)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=Sr(a.href),a=ql(s).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Sr(a.href);var u=ql(s).hoistableStyles,b=u.get(e);if(b||(s=s.ownerDocument||s,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,b),(u=s.querySelector(_o(e)))&&!u._p&&(b.instance=u,b.state.loading=5),vn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},vn.set(e,a),u||s2(s,e,a,b.state))),t&&r===null)throw Error(i(528,""));return b}if(t&&r!==null)throw Error(i(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wr(a),a=ql(s).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Sr(e){return'href="'+cn(e)+'"'}function _o(e){return'link[rel="stylesheet"]['+e+"]"}function Dg(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function s2(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Mt(t,"link",a),Et(t),e.head.appendChild(t))}function wr(e){return'[src="'+cn(e)+'"]'}function jo(e){return"script[async]"+e}function kg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+cn(a.href)+'"]');if(r)return t.instance=r,Et(r),r;var s=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Et(r),Mt(r,"style",s),ts(r,a.precedence,e),t.instance=r;case"stylesheet":s=Sr(a.href);var u=e.querySelector(_o(s));if(u)return t.state.loading|=4,t.instance=u,Et(u),u;r=Dg(a),(s=vn.get(s))&&pd(r,s),u=(e.ownerDocument||e).createElement("link"),Et(u);var b=u;return b._p=new Promise(function(S,_){b.onload=S,b.onerror=_}),Mt(u,"link",r),t.state.loading|=4,ts(u,a.precedence,e),t.instance=u;case"script":return u=wr(a.src),(s=e.querySelector(jo(u)))?(t.instance=s,Et(s),s):(r=a,(s=vn.get(u))&&(r=g({},a),gd(r,s)),e=e.ownerDocument||e,s=e.createElement("script"),Et(s),Mt(s,"link",r),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,ts(r,a.precedence,e));return t.instance}function ts(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=r.length?r[r.length-1]:null,u=s,b=0;b<r.length;b++){var S=r[b];if(S.dataset.precedence===t)u=S;else if(u!==s)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function pd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function gd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ns=null;function zg(e,t,a){if(ns===null){var r=new Map,s=ns=new Map;s.set(a,r)}else s=ns,r=s.get(a),r||(r=new Map,s.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),s=0;s<a.length;s++){var u=a[s];if(!(u[Pr]||u[At]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var b=u.getAttribute(t)||"";b=e+b;var S=r.get(b);S?S.push(u):r.set(b,[u])}}return r}function Lg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function c2(e,t,a){if(a===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 Ug(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function u2(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=Sr(r.href),u=t.querySelector(_o(s));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=as.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,Et(u);return}u=t.ownerDocument||t,r=Dg(r),(s=vn.get(s))&&pd(r,s),u=u.createElement("link"),Et(u);var b=u;b._p=new Promise(function(S,_){b.onload=S,b.onerror=_}),Mt(u,"link",r),a.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=as.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var vd=0;function d2(e,t){return e.stylesheets&&e.count===0&&rs(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&rs(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&vd===0&&(vd=62500*PS());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&rs(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>vd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(s)}}:null}function as(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)rs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ls=null;function rs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ls=new Map,t.forEach(f2,e),ls=null,as.call(e))}function f2(e,t){if(!(t.state.loading&4)){var a=ls.get(e);if(a)var r=a.get(null);else{a=new Map,ls.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<s.length;u++){var b=s[u];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(a.set(b.dataset.precedence,b),r=b)}r&&a.set(null,r)}s=t.instance,b=s.getAttribute("data-precedence"),u=a.get(b)||r,u===r&&a.set(null,s),a.set(b,s),this.count++,r=as.bind(this),s.addEventListener("load",r),s.addEventListener("error",r),u?u.parentNode.insertBefore(s,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Mo={$$typeof:O,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function m2(e,t,a,r,s,u,b,S,_){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=Ea(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ea(0),this.hiddenUpdates=Ea(null),this.identifierPrefix=r,this.onUncaughtError=s,this.onCaughtError=u,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function Bg(e,t,a,r,s,u,b,S,_,U,X,Z){return e=new m2(e,t,a,b,_,U,X,Z,S),t=1,u===!0&&(t|=24),u=Jt(3,null,null,t),e.current=u,u.stateNode=e,t=Ic(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:r,isDehydrated:a,cache:t},eu(u),e}function Hg(e){return e?(e=Wl,e):Wl}function Vg(e,t,a,r,s,u){s=Hg(s),r.context===null?r.context=s:r.pendingContext=s,r=Ma(t),r.payload={element:a},u=u===void 0?null:u,u!==null&&(r.callback=u),a=Oa(e,r,t),a!==null&&(Qt(a,e,t),so(a,e,t))}function $g(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function yd(e,t){$g(e,t),(e=e.alternate)&&$g(e,t)}function Yg(e){if(e.tag===13||e.tag===31){var t=hl(e,67108864);t!==null&&Qt(t,e,67108864),yd(e,67108864)}}function qg(e){if(e.tag===13||e.tag===31){var t=an();t=Hl(t);var a=hl(e,t);a!==null&&Qt(a,e,t),yd(e,t)}}var os=!0;function h2(e,t,a,r){var s=M.T;M.T=null;var u=Y.p;try{Y.p=2,bd(e,t,a,r)}finally{Y.p=u,M.T=s}}function p2(e,t,a,r){var s=M.T;M.T=null;var u=Y.p;try{Y.p=8,bd(e,t,a,r)}finally{Y.p=u,M.T=s}}function bd(e,t,a,r){if(os){var s=xd(r);if(s===null)rd(e,t,r,is,a),Pg(e,r);else if(v2(s,e,t,a,r))r.stopPropagation();else if(Pg(e,r),t&4&&-1<g2.indexOf(e)){for(;s!==null;){var u=Yl(s);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var b=Ln(u.pendingLanes);if(b!==0){var S=u;for(S.pendingLanes|=2,S.entangledLanes|=2;b;){var _=1<<31-Ot(b);S.entanglements[1]|=_,b&=~_}Vn(u),(qe&6)===0&&(qi=Ct()+500,To(0))}}break;case 31:case 13:S=hl(u,2),S!==null&&Qt(S,u,2),Pi(),yd(u,2)}if(u=xd(r),u===null&&rd(e,t,r,is,a),u===s)break;s=u}s!==null&&r.stopPropagation()}else rd(e,t,r,null,a)}}function xd(e){return e=wc(e),Sd(e)}var is=null;function Sd(e){if(is=null,e=$l(e),e!==null){var t=d(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=m(t),e!==null)return e;e=null}else if(a===31){if(e=h(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return is=e,null}function Gg(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(Ll()){case Mn:return 2;case Ne:return 8;case Xe:case We:return 32;case st:return 268435456;default:return 32}default:return 32}}var wd=!1,qa=null,Ga=null,Pa=null,Oo=new Map,Do=new Map,Xa=[],g2="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 Pg(e,t){switch(e){case"focusin":case"focusout":qa=null;break;case"dragenter":case"dragleave":Ga=null;break;case"mouseover":case"mouseout":Pa=null;break;case"pointerover":case"pointerout":Oo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Do.delete(t.pointerId)}}function ko(e,t,a,r,s,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:u,targetContainers:[s]},t!==null&&(t=Yl(t),t!==null&&Yg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function v2(e,t,a,r,s){switch(t){case"focusin":return qa=ko(qa,e,t,a,r,s),!0;case"dragenter":return Ga=ko(Ga,e,t,a,r,s),!0;case"mouseover":return Pa=ko(Pa,e,t,a,r,s),!0;case"pointerover":var u=s.pointerId;return Oo.set(u,ko(Oo.get(u)||null,e,t,a,r,s)),!0;case"gotpointercapture":return u=s.pointerId,Do.set(u,ko(Do.get(u)||null,e,t,a,r,s)),!0}return!1}function Xg(e){var t=$l(e.target);if(t!==null){var a=d(t);if(a!==null){if(t=a.tag,t===13){if(t=m(a),t!==null){e.blockedOn=t,om(e.priority,function(){qg(a)});return}}else if(t===31){if(t=h(a),t!==null){e.blockedOn=t,om(e.priority,function(){qg(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ss(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=xd(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);Sc=r,a.target.dispatchEvent(r),Sc=null}else return t=Yl(a),t!==null&&Yg(t),e.blockedOn=a,!1;t.shift()}return!0}function Kg(e,t,a){ss(e)&&a.delete(t)}function y2(){wd=!1,qa!==null&&ss(qa)&&(qa=null),Ga!==null&&ss(Ga)&&(Ga=null),Pa!==null&&ss(Pa)&&(Pa=null),Oo.forEach(Kg),Do.forEach(Kg)}function cs(e,t){e.blockedOn===t&&(e.blockedOn=null,wd||(wd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,y2)))}var us=null;function Qg(e){us!==e&&(us=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){us===e&&(us=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],s=e[t+2];if(typeof r!="function"){if(Sd(r||a)===null)continue;break}var u=Yl(a);u!==null&&(e.splice(t,3),t-=3,xu(u,{pending:!0,data:s,method:a.method,action:r},r,s))}}))}function Er(e){function t(_){return cs(_,e)}qa!==null&&cs(qa,e),Ga!==null&&cs(Ga,e),Pa!==null&&cs(Pa,e),Oo.forEach(t),Do.forEach(t);for(var a=0;a<Xa.length;a++){var r=Xa[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Xa.length&&(a=Xa[0],a.blockedOn===null);)Xg(a),a.blockedOn===null&&Xa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var s=a[r],u=a[r+1],b=s[Yt]||null;if(typeof u=="function")b||Qg(a);else if(b){var S=null;if(u&&u.hasAttribute("formAction")){if(s=u,b=u[Yt]||null)S=b.formAction;else if(Sd(s)!==null)continue}else S=b.action;typeof S=="function"?a[r+1]=S:(a.splice(r,3),r-=3),Qg(a)}}}function Zg(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(b){return s=b})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),r||setTimeout(a,20)}function a(){if(!r&&!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 r=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function Ed(e){this._internalRoot=e}ds.prototype.render=Ed.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,r=an();Vg(a,r,e,t,null,null)},ds.prototype.unmount=Ed.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vg(e.current,2,null,e,null,null),Pi(),t[Vl]=null}};function ds(e){this._internalRoot=e}ds.prototype.unstable_scheduleHydration=function(e){if(e){var t=hc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Xa.length&&t!==0&&t<Xa[a].priority;a++);Xa.splice(a,0,e),a===0&&Xg(e)}};var Ig=l.version;if(Ig!=="19.2.4")throw Error(i(527,Ig,"19.2.4"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var b2={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var fs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!fs.isDisabled&&fs.supportsFiber)try{kn=fs.inject(b2),Ut=fs}catch{}}return Lo.createRoot=function(e,t){if(!c(e))throw Error(i(299));var a=!1,r="",s=ap,u=lp,b=rp;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=Bg(e,1,!1,null,null,a,r,null,s,u,b,Zg),e[Vl]=t.current,ld(e),new Ed(t)},Lo.hydrateRoot=function(e,t,a){if(!c(e))throw Error(i(299));var r=!1,s="",u=ap,b=lp,S=rp,_=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(u=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(_=a.formState)),t=Bg(e,1,!0,t,a??null,r,s,_,u,b,S,Zg),t.context=Hg(null),a=t.current,r=an(),r=Hl(r),s=Ma(r),s.callback=null,Oa(a,s,r),a=r,t.current.lanes=a,it(t,a),Vn(t),e[Vl]=t.current,ld(e),new ds(t)},Lo.version="19.2.4",Lo}var ov;function _2(){if(ov)return Cd.exports;ov=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Cd.exports=R2(),Cd.exports}var j2=_2();const M2="modulepreload",O2=function(n){return"/"+n},iv={},u0=function(l,o,i){let c=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(x=>Promise.resolve(x).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),y=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));c=m(o.map(p=>{if(p=O2(p),p in iv)return;iv[p]=!0;const x=p.endsWith(".css"),g=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${g}`))return;const w=document.createElement("link");if(w.rel=x?"stylesheet":M2,x||(w.as="script"),w.crossOrigin="",w.href=p,y&&w.setAttribute("nonce",y),document.head.appendChild(w),x)return new Promise((N,T)=>{w.addEventListener("load",N),w.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(m){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=m,window.dispatchEvent(h),!h.defaultPrevented)throw m}return c.then(m=>{for(const h of m||[])h.status==="rejected"&&d(h.reason);return l().catch(d)})};/**
51
+ * react-router v7.13.2
52
+ *
53
+ * Copyright (c) Remix Software Inc.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE.md file in the root directory of this source tree.
57
+ *
58
+ * @license MIT
59
+ */var sv="popstate";function cv(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function D2(n={}){function l(i,c){var p;let d=(p=c.state)==null?void 0:p.masked,{pathname:m,search:h,hash:y}=d||i.location;return Fd("",{pathname:m,search:h,hash:y},c.state&&c.state.usr||null,c.state&&c.state.key||"default",d?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function o(i,c){return typeof c=="string"?c:Xo(c)}return z2(l,o,null,n)}function ot(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function Cn(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function k2(){return Math.random().toString(36).substring(2,10)}function uv(n,l){return{usr:n.state,key:n.key,idx:l,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function Fd(n,l,o=null,i,c){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?Ur(l):l,state:o,key:l&&l.key||i||k2(),unstable_mask:c}}function Xo({pathname:n="/",search:l="",hash:o=""}){return l&&l!=="?"&&(n+=l.charAt(0)==="?"?l:"?"+l),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function Ur(n){let l={};if(n){let o=n.indexOf("#");o>=0&&(l.hash=n.substring(o),n=n.substring(0,o));let i=n.indexOf("?");i>=0&&(l.search=n.substring(i),n=n.substring(0,i)),n&&(l.pathname=n)}return l}function z2(n,l,o,i={}){let{window:c=document.defaultView,v5Compat:d=!1}=i,m=c.history,h="POP",y=null,p=x();p==null&&(p=0,m.replaceState({...m.state,idx:p},""));function x(){return(m.state||{idx:null}).idx}function g(){h="POP";let C=x(),A=C==null?null:C-p;p=C,y&&y({action:h,location:E.location,delta:A})}function w(C,A){h="PUSH";let j=cv(C)?C:Fd(E.location,C,A);p=x()+1;let O=uv(j,p),z=E.createHref(j.unstable_mask||j);try{m.pushState(O,"",z)}catch(B){if(B instanceof DOMException&&B.name==="DataCloneError")throw B;c.location.assign(z)}d&&y&&y({action:h,location:E.location,delta:1})}function N(C,A){h="REPLACE";let j=cv(C)?C:Fd(E.location,C,A);p=x();let O=uv(j,p),z=E.createHref(j.unstable_mask||j);m.replaceState(O,"",z),d&&y&&y({action:h,location:E.location,delta:0})}function T(C){return L2(C)}let E={get action(){return h},get location(){return n(c,m)},listen(C){if(y)throw new Error("A history only accepts one active listener");return c.addEventListener(sv,g),y=C,()=>{c.removeEventListener(sv,g),y=null}},createHref(C){return l(c,C)},createURL:T,encodeLocation(C){let A=T(C);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:w,replace:N,go(C){return m.go(C)}};return E}function L2(n,l=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),ot(o,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:Xo(n);return i=i.replace(/ $/,"%20"),!l&&i.startsWith("//")&&(i=o+i),new URL(i,o)}function d0(n,l,o="/"){return U2(n,l,o,!1)}function U2(n,l,o,i){let c=typeof l=="string"?Ur(l):l,d=ya(c.pathname||"/",o);if(d==null)return null;let m=f0(n);B2(m);let h=null;for(let y=0;h==null&&y<m.length;++y){let p=Z2(d);h=K2(m[y],p,i)}return h}function f0(n,l=[],o=[],i="",c=!1){let d=(m,h,y=c,p)=>{let x={relativePath:p===void 0?m.path||"":p,caseSensitive:m.caseSensitive===!0,childrenIndex:h,route:m};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(i)&&y)return;ot(x.relativePath.startsWith(i),`Absolute route path "${x.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(i.length)}let g=Zn([i,x.relativePath]),w=o.concat(x);m.children&&m.children.length>0&&(ot(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),f0(m.children,l,w,g,y)),!(m.path==null&&!m.index)&&l.push({path:g,score:P2(g,m.index),routesMeta:w})};return n.forEach((m,h)=>{var y;if(m.path===""||!((y=m.path)!=null&&y.includes("?")))d(m,h);else for(let p of m0(m.path))d(m,h,!0,p)}),l}function m0(n){let l=n.split("/");if(l.length===0)return[];let[o,...i]=l,c=o.endsWith("?"),d=o.replace(/\?$/,"");if(i.length===0)return c?[d,""]:[d];let m=m0(i.join("/")),h=[];return h.push(...m.map(y=>y===""?d:[d,y].join("/"))),c&&h.push(...m),h.map(y=>n.startsWith("/")&&y===""?"/":y)}function B2(n){n.sort((l,o)=>l.score!==o.score?o.score-l.score:X2(l.routesMeta.map(i=>i.childrenIndex),o.routesMeta.map(i=>i.childrenIndex)))}var H2=/^:[\w-]+$/,V2=3,$2=2,Y2=1,q2=10,G2=-2,dv=n=>n==="*";function P2(n,l){let o=n.split("/"),i=o.length;return o.some(dv)&&(i+=G2),l&&(i+=$2),o.filter(c=>!dv(c)).reduce((c,d)=>c+(H2.test(d)?V2:d===""?Y2:q2),i)}function X2(n,l){return n.length===l.length&&n.slice(0,-1).every((i,c)=>i===l[c])?n[n.length-1]-l[l.length-1]:0}function K2(n,l,o=!1){let{routesMeta:i}=n,c={},d="/",m=[];for(let h=0;h<i.length;++h){let y=i[h],p=h===i.length-1,x=d==="/"?l:l.slice(d.length)||"/",g=Os({path:y.relativePath,caseSensitive:y.caseSensitive,end:p},x),w=y.route;if(!g&&p&&o&&!i[i.length-1].route.index&&(g=Os({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},x)),!g)return null;Object.assign(c,g.params),m.push({params:c,pathname:Zn([d,g.pathname]),pathnameBase:W2(Zn([d,g.pathnameBase])),route:w}),g.pathnameBase!=="/"&&(d=Zn([d,g.pathnameBase]))}return m}function Os(n,l){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[o,i]=Q2(n.path,n.caseSensitive,n.end),c=l.match(o);if(!c)return null;let d=c[0],m=d.replace(/(.)\/+$/,"$1"),h=c.slice(1);return{params:i.reduce((p,{paramName:x,isOptional:g},w)=>{if(x==="*"){let T=h[w]||"";m=d.slice(0,d.length-T.length).replace(/(.)\/+$/,"$1")}const N=h[w];return g&&!N?p[x]=void 0:p[x]=(N||"").replace(/%2F/g,"/"),p},{}),pathname:d,pathnameBase:m,pattern:n}}function Q2(n,l=!1,o=!0){Cn(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let i=[],c="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(m,h,y,p,x)=>{if(i.push({paramName:h,isOptional:y!=null}),y){let g=x.charAt(p+m.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(i.push({paramName:"*"}),c+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,l?void 0:"i"),i]}function Z2(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Cn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),n}}function ya(n,l){if(l==="/")return n;if(!n.toLowerCase().startsWith(l.toLowerCase()))return null;let o=l.endsWith("/")?l.length-1:l.length,i=n.charAt(o);return i&&i!=="/"?null:n.slice(o)||"/"}var I2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function F2(n,l="/"){let{pathname:o,search:i="",hash:c=""}=typeof n=="string"?Ur(n):n,d;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?d=fv(o.substring(1),"/"):d=fv(o,l)):d=l,{pathname:d,search:ew(i),hash:tw(c)}}function fv(n,l){let o=l.replace(/\/+$/,"").split("/");return n.split("/").forEach(c=>{c===".."?o.length>1&&o.pop():c!=="."&&o.push(c)}),o.length>1?o.join("/"):"/"}function jd(n,l,o,i){return`Cannot include a '${n}' character in a manually specified \`to.${l}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function J2(n){return n.filter((l,o)=>o===0||l.route.path&&l.route.path.length>0)}function Sf(n){let l=J2(n);return l.map((o,i)=>i===l.length-1?o.pathname:o.pathnameBase)}function Js(n,l,o,i=!1){let c;typeof n=="string"?c=Ur(n):(c={...n},ot(!c.pathname||!c.pathname.includes("?"),jd("?","pathname","search",c)),ot(!c.pathname||!c.pathname.includes("#"),jd("#","pathname","hash",c)),ot(!c.search||!c.search.includes("#"),jd("#","search","hash",c)));let d=n===""||c.pathname==="",m=d?"/":c.pathname,h;if(m==null)h=o;else{let g=l.length-1;if(!i&&m.startsWith("..")){let w=m.split("/");for(;w[0]==="..";)w.shift(),g-=1;c.pathname=w.join("/")}h=g>=0?l[g]:"/"}let y=F2(c,h),p=m&&m!=="/"&&m.endsWith("/"),x=(d||m===".")&&o.endsWith("/");return!y.pathname.endsWith("/")&&(p||x)&&(y.pathname+="/"),y}var Zn=n=>n.join("/").replace(/\/\/+/g,"/"),W2=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),ew=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,tw=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,nw=class{constructor(n,l,o,i=!1){this.status=n,this.statusText=l||"",this.internal=i,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function aw(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function lw(n){return n.map(l=>l.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var h0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function p0(n,l){let o=n;if(typeof o!="string"||!I2.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let i=o,c=!1;if(h0)try{let d=new URL(window.location.href),m=o.startsWith("//")?new URL(d.protocol+o):new URL(o),h=ya(m.pathname,l);m.origin===d.origin&&h!=null?o=h+m.search+m.hash:c=!0}catch{Cn(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:c,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var g0=["POST","PUT","PATCH","DELETE"];new Set(g0);var rw=["GET",...g0];new Set(rw);var Br=v.createContext(null);Br.displayName="DataRouter";var Ws=v.createContext(null);Ws.displayName="DataRouterState";var ow=v.createContext(!1),v0=v.createContext({isTransitioning:!1});v0.displayName="ViewTransition";var iw=v.createContext(new Map);iw.displayName="Fetchers";var sw=v.createContext(null);sw.displayName="Await";var on=v.createContext(null);on.displayName="Navigation";var Io=v.createContext(null);Io.displayName="Location";var bn=v.createContext({outlet:null,matches:[],isDataRoute:!1});bn.displayName="Route";var wf=v.createContext(null);wf.displayName="RouteError";var y0="REACT_ROUTER_ERROR",cw="REDIRECT",uw="ROUTE_ERROR_RESPONSE";function dw(n){if(n.startsWith(`${y0}:${cw}:{`))try{let l=JSON.parse(n.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function fw(n){if(n.startsWith(`${y0}:${uw}:{`))try{let l=JSON.parse(n.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new nw(l.status,l.statusText,l.data)}catch{}}function mw(n,{relative:l}={}){ot(Hr(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:i}=v.useContext(on),{hash:c,pathname:d,search:m}=Fo(n,{relative:l}),h=d;return o!=="/"&&(h=d==="/"?o:Zn([o,d])),i.createHref({pathname:h,search:m,hash:c})}function Hr(){return v.useContext(Io)!=null}function Fn(){return ot(Hr(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(Io).location}var b0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function x0(n){v.useContext(on).static||v.useLayoutEffect(n)}function S0(){let{isDataRoute:n}=v.useContext(bn);return n?Aw():hw()}function hw(){ot(Hr(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(Br),{basename:l,navigator:o}=v.useContext(on),{matches:i}=v.useContext(bn),{pathname:c}=Fn(),d=JSON.stringify(Sf(i)),m=v.useRef(!1);return x0(()=>{m.current=!0}),v.useCallback((y,p={})=>{if(Cn(m.current,b0),!m.current)return;if(typeof y=="number"){o.go(y);return}let x=Js(y,JSON.parse(d),c,p.relative==="path");n==null&&l!=="/"&&(x.pathname=x.pathname==="/"?l:Zn([l,x.pathname])),(p.replace?o.replace:o.push)(x,p.state,p)},[l,o,d,c,n])}var w0=v.createContext(null);function oj(){return v.useContext(w0)}function pw(n){let l=v.useContext(bn).outlet;return v.useMemo(()=>l&&v.createElement(w0.Provider,{value:n},l),[l,n])}function ij(){let{matches:n}=v.useContext(bn),l=n[n.length-1];return l?l.params:{}}function Fo(n,{relative:l}={}){let{matches:o}=v.useContext(bn),{pathname:i}=Fn(),c=JSON.stringify(Sf(o));return v.useMemo(()=>Js(n,JSON.parse(c),i,l==="path"),[n,c,i,l])}function gw(n,l){return E0(n,l)}function E0(n,l,o){var C;ot(Hr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=v.useContext(on),{matches:c}=v.useContext(bn),d=c[c.length-1],m=d?d.params:{},h=d?d.pathname:"/",y=d?d.pathnameBase:"/",p=d&&d.route;{let A=p&&p.path||"";T0(h,!p||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${A}">) 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.
60
+
61
+ Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let x=Fn(),g;if(l){let A=typeof l=="string"?Ur(l):l;ot(y==="/"||((C=A.pathname)==null?void 0:C.startsWith(y)),`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 "${y}" but pathname "${A.pathname}" was given in the \`location\` prop.`),g=A}else g=x;let w=g.pathname||"/",N=w;if(y!=="/"){let A=y.replace(/^\//,"").split("/");N="/"+w.replace(/^\//,"").split("/").slice(A.length).join("/")}let T=d0(n,{pathname:N});Cn(p||T!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),Cn(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.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 E=Sw(T&&T.map(A=>Object.assign({},A,{params:Object.assign({},m,A.params),pathname:Zn([y,i.encodeLocation?i.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?y:Zn([y,i.encodeLocation?i.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),c,o);return l&&E?v.createElement(Io.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},E):E}function vw(){let n=Cw(),l=aw(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),o=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:i},d={padding:"2px 4px",backgroundColor:i},m=null;return console.error("Error handled by React Router default ErrorBoundary:",n),m=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:d},"ErrorBoundary")," or"," ",v.createElement("code",{style:d},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},l),o?v.createElement("pre",{style:c},o):null,m)}var yw=v.createElement(vw,null),N0=class extends v.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,l){return l.location!==n.location||l.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:l.error,location:l.location,revalidation:n.revalidation||l.revalidation}}componentDidCatch(n,l){this.props.onError?this.props.onError(n,l):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const o=fw(n.digest);o&&(n=o)}let l=n!==void 0?v.createElement(bn.Provider,{value:this.props.routeContext},v.createElement(wf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?v.createElement(bw,{error:n},l):l}};N0.contextType=ow;var Md=new WeakMap;function bw({children:n,error:l}){let{basename:o}=v.useContext(on);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let i=dw(l.digest);if(i){let c=Md.get(l);if(c)throw c;let d=p0(i.location,o);if(h0&&!Md.get(l))if(d.isExternal||i.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const m=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:i.replace}));throw Md.set(l,m),m}return v.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return n}function xw({routeContext:n,match:l,children:o}){let i=v.useContext(Br);return i&&i.static&&i.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=l.route.id),v.createElement(bn.Provider,{value:n},o)}function Sw(n,l=[],o){let i=o==null?void 0:o.state;if(n==null){if(!i)return null;if(i.errors)n=i.matches;else if(l.length===0&&!i.initialized&&i.matches.length>0)n=i.matches;else return null}let c=n,d=i==null?void 0:i.errors;if(d!=null){let x=c.findIndex(g=>g.route.id&&(d==null?void 0:d[g.route.id])!==void 0);ot(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),c=c.slice(0,Math.min(c.length,x+1))}let m=!1,h=-1;if(o&&i){m=i.renderFallback;for(let x=0;x<c.length;x++){let g=c[x];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=x),g.route.id){let{loaderData:w,errors:N}=i,T=g.route.loader&&!w.hasOwnProperty(g.route.id)&&(!N||N[g.route.id]===void 0);if(g.route.lazy||T){o.isStatic&&(m=!0),h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}}let y=o==null?void 0:o.onError,p=i&&y?(x,g)=>{var w,N;y(x,{location:i.location,params:((N=(w=i.matches)==null?void 0:w[0])==null?void 0:N.params)??{},unstable_pattern:lw(i.matches),errorInfo:g})}:void 0;return c.reduceRight((x,g,w)=>{let N,T=!1,E=null,C=null;i&&(N=d&&g.route.id?d[g.route.id]:void 0,E=g.route.errorElement||yw,m&&(h<0&&w===0?(T0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,C=null):h===w&&(T=!0,C=g.route.hydrateFallbackElement||null)));let A=l.concat(c.slice(0,w+1)),j=()=>{let O;return N?O=E:T?O=C:g.route.Component?O=v.createElement(g.route.Component,null):g.route.element?O=g.route.element:O=x,v.createElement(xw,{match:g,routeContext:{outlet:x,matches:A,isDataRoute:i!=null},children:O})};return i&&(g.route.ErrorBoundary||g.route.errorElement||w===0)?v.createElement(N0,{location:i.location,revalidation:i.revalidation,component:E,error:N,children:j(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:p}):j()},null)}function Ef(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function ww(n){let l=v.useContext(Br);return ot(l,Ef(n)),l}function Ew(n){let l=v.useContext(Ws);return ot(l,Ef(n)),l}function Nw(n){let l=v.useContext(bn);return ot(l,Ef(n)),l}function Nf(n){let l=Nw(n),o=l.matches[l.matches.length-1];return ot(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function Tw(){return Nf("useRouteId")}function Cw(){var i;let n=v.useContext(wf),l=Ew("useRouteError"),o=Nf("useRouteError");return n!==void 0?n:(i=l.errors)==null?void 0:i[o]}function Aw(){let{router:n}=ww("useNavigate"),l=Nf("useNavigate"),o=v.useRef(!1);return x0(()=>{o.current=!0}),v.useCallback(async(c,d={})=>{Cn(o.current,b0),o.current&&(typeof c=="number"?await n.navigate(c):await n.navigate(c,{fromRouteId:l,...d}))},[n,l])}var mv={};function T0(n,l,o){!l&&!mv[n]&&(mv[n]=!0,Cn(!1,o))}v.memo(Rw);function Rw({routes:n,future:l,state:o,isStatic:i,onError:c}){return E0(n,void 0,{state:o,isStatic:i,onError:c})}function hv({to:n,replace:l,state:o,relative:i}){ot(Hr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=v.useContext(on);Cn(!c,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:d}=v.useContext(bn),{pathname:m}=Fn(),h=S0(),y=Js(n,Sf(d),m,i==="path"),p=JSON.stringify(y);return v.useEffect(()=>{h(JSON.parse(p),{replace:l,state:o,relative:i})},[h,p,i,l,o]),null}function _w(n){return pw(n.context)}function jl(n){ot(!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 jw({basename:n="/",children:l=null,location:o,navigationType:i="POP",navigator:c,static:d=!1,unstable_useTransitions:m}){ot(!Hr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),y=v.useMemo(()=>({basename:h,navigator:c,static:d,unstable_useTransitions:m,future:{}}),[h,c,d,m]);typeof o=="string"&&(o=Ur(o));let{pathname:p="/",search:x="",hash:g="",state:w=null,key:N="default",unstable_mask:T}=o,E=v.useMemo(()=>{let C=ya(p,h);return C==null?null:{location:{pathname:C,search:x,hash:g,state:w,key:N,unstable_mask:T},navigationType:i}},[h,p,x,g,w,N,i,T]);return Cn(E!=null,`<Router basename="${h}"> is not able to match the URL "${p}${x}${g}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:v.createElement(on.Provider,{value:y},v.createElement(Io.Provider,{children:l,value:E}))}function Mw({children:n,location:l}){return gw(Jd(n),l)}function Jd(n,l=[]){let o=[];return v.Children.forEach(n,(i,c)=>{if(!v.isValidElement(i))return;let d=[...l,c];if(i.type===v.Fragment){o.push.apply(o,Jd(i.props.children,d));return}ot(i.type===jl,`[${typeof i.type=="string"?i.type:i.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ot(!i.props.index||!i.props.children,"An index route cannot have child routes.");let m={id:i.props.id||d.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,middleware:i.props.middleware,loader:i.props.loader,action:i.props.action,hydrateFallbackElement:i.props.hydrateFallbackElement,HydrateFallback:i.props.HydrateFallback,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.hasErrorBoundary===!0||i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(m.children=Jd(i.props.children,d)),o.push(m)}),o}var Ts="get",Cs="application/x-www-form-urlencoded";function ec(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function Ow(n){return ec(n)&&n.tagName.toLowerCase()==="button"}function Dw(n){return ec(n)&&n.tagName.toLowerCase()==="form"}function kw(n){return ec(n)&&n.tagName.toLowerCase()==="input"}function zw(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function Lw(n,l){return n.button===0&&(!l||l==="_self")&&!zw(n)}var ms=null;function Uw(){if(ms===null)try{new FormData(document.createElement("form"),0),ms=!1}catch{ms=!0}return ms}var Bw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Od(n){return n!=null&&!Bw.has(n)?(Cn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Cs}"`),null):n}function Hw(n,l){let o,i,c,d,m;if(Dw(n)){let h=n.getAttribute("action");i=h?ya(h,l):null,o=n.getAttribute("method")||Ts,c=Od(n.getAttribute("enctype"))||Cs,d=new FormData(n)}else if(Ow(n)||kw(n)&&(n.type==="submit"||n.type==="image")){let h=n.form;if(h==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let y=n.getAttribute("formaction")||h.getAttribute("action");if(i=y?ya(y,l):null,o=n.getAttribute("formmethod")||h.getAttribute("method")||Ts,c=Od(n.getAttribute("formenctype"))||Od(h.getAttribute("enctype"))||Cs,d=new FormData(h,n),!Uw()){let{name:p,type:x,value:g}=n;if(x==="image"){let w=p?`${p}.`:"";d.append(`${w}x`,"0"),d.append(`${w}y`,"0")}else p&&d.append(p,g)}}else{if(ec(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=Ts,i=null,c=Cs,m=n}return d&&c==="text/plain"&&(m=d,d=void 0),{action:i,method:o.toLowerCase(),encType:c,formData:d,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Tf(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function Vw(n,l,o,i){let c=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return o?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${i}`:c.pathname=`${c.pathname}.${i}`:c.pathname==="/"?c.pathname=`_root.${i}`:l&&ya(c.pathname,l)==="/"?c.pathname=`${l.replace(/\/$/,"")}/_root.${i}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${i}`,c}async function $w(n,l){if(n.id in l)return l[n.id];try{let o=await import(n.module);return l[n.id]=o,o}catch(o){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Yw(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function qw(n,l,o){let i=await Promise.all(n.map(async c=>{let d=l.routes[c.route.id];if(d){let m=await $w(d,o);return m.links?m.links():[]}return[]}));return Kw(i.flat(1).filter(Yw).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function pv(n,l,o,i,c,d){let m=(y,p)=>o[p]?y.route.id!==o[p].route.id:!0,h=(y,p)=>{var x;return o[p].pathname!==y.pathname||((x=o[p].route.path)==null?void 0:x.endsWith("*"))&&o[p].params["*"]!==y.params["*"]};return d==="assets"?l.filter((y,p)=>m(y,p)||h(y,p)):d==="data"?l.filter((y,p)=>{var g;let x=i.routes[y.route.id];if(!x||!x.hasLoader)return!1;if(m(y,p)||h(y,p))return!0;if(y.route.shouldRevalidate){let w=y.route.shouldRevalidate({currentUrl:new URL(c.pathname+c.search+c.hash,window.origin),currentParams:((g=o[0])==null?void 0:g.params)||{},nextUrl:new URL(n,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function Gw(n,l,{includeHydrateFallback:o}={}){return Pw(n.map(i=>{let c=l.routes[i.route.id];if(!c)return[];let d=[c.module];return c.clientActionModule&&(d=d.concat(c.clientActionModule)),c.clientLoaderModule&&(d=d.concat(c.clientLoaderModule)),o&&c.hydrateFallbackModule&&(d=d.concat(c.hydrateFallbackModule)),c.imports&&(d=d.concat(c.imports)),d}).flat(1))}function Pw(n){return[...new Set(n)]}function Xw(n){let l={},o=Object.keys(n).sort();for(let i of o)l[i]=n[i];return l}function Kw(n,l){let o=new Set;return new Set(l),n.reduce((i,c)=>{let d=JSON.stringify(Xw(c));return o.has(d)||(o.add(d),i.push({key:d,link:c})),i},[])}function C0(){let n=v.useContext(Br);return Tf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function Qw(){let n=v.useContext(Ws);return Tf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Cf=v.createContext(void 0);Cf.displayName="FrameworkContext";function A0(){let n=v.useContext(Cf);return Tf(n,"You must render this element inside a <HydratedRouter> element"),n}function Zw(n,l){let o=v.useContext(Cf),[i,c]=v.useState(!1),[d,m]=v.useState(!1),{onFocus:h,onBlur:y,onMouseEnter:p,onMouseLeave:x,onTouchStart:g}=l,w=v.useRef(null);v.useEffect(()=>{if(n==="render"&&m(!0),n==="viewport"){let E=A=>{A.forEach(j=>{m(j.isIntersecting)})},C=new IntersectionObserver(E,{threshold:.5});return w.current&&C.observe(w.current),()=>{C.disconnect()}}},[n]),v.useEffect(()=>{if(i){let E=setTimeout(()=>{m(!0)},100);return()=>{clearTimeout(E)}}},[i]);let N=()=>{c(!0)},T=()=>{c(!1),m(!1)};return o?n!=="intent"?[d,w,{}]:[d,w,{onFocus:Uo(h,N),onBlur:Uo(y,T),onMouseEnter:Uo(p,N),onMouseLeave:Uo(x,T),onTouchStart:Uo(g,N)}]:[!1,w,{}]}function Uo(n,l){return o=>{n&&n(o),o.defaultPrevented||l(o)}}function Iw({page:n,...l}){let{router:o}=C0(),i=v.useMemo(()=>d0(o.routes,n,o.basename),[o.routes,n,o.basename]);return i?v.createElement(Jw,{page:n,matches:i,...l}):null}function Fw(n){let{manifest:l,routeModules:o}=A0(),[i,c]=v.useState([]);return v.useEffect(()=>{let d=!1;return qw(n,l,o).then(m=>{d||c(m)}),()=>{d=!0}},[n,l,o]),i}function Jw({page:n,matches:l,...o}){let i=Fn(),{future:c,manifest:d,routeModules:m}=A0(),{basename:h}=C0(),{loaderData:y,matches:p}=Qw(),x=v.useMemo(()=>pv(n,l,p,d,i,"data"),[n,l,p,d,i]),g=v.useMemo(()=>pv(n,l,p,d,i,"assets"),[n,l,p,d,i]),w=v.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,C=!1;if(l.forEach(j=>{var z;let O=d.routes[j.route.id];!O||!O.hasLoader||(!x.some(B=>B.route.id===j.route.id)&&j.route.id in y&&((z=m[j.route.id])!=null&&z.shouldRevalidate)||O.hasClientLoader?C=!0:E.add(j.route.id))}),E.size===0)return[];let A=Vw(n,h,c.unstable_trailingSlashAwareDataRequests,"data");return C&&E.size>0&&A.searchParams.set("_routes",l.filter(j=>E.has(j.route.id)).map(j=>j.route.id).join(",")),[A.pathname+A.search]},[h,c.unstable_trailingSlashAwareDataRequests,y,i,d,x,l,n,m]),N=v.useMemo(()=>Gw(g,d),[g,d]),T=Fw(g);return v.createElement(v.Fragment,null,w.map(E=>v.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...o})),N.map(E=>v.createElement("link",{key:E,rel:"modulepreload",href:E,...o})),T.map(({key:E,link:C})=>v.createElement("link",{key:E,nonce:o.nonce,...C,crossOrigin:C.crossOrigin??o.crossOrigin})))}function Ww(...n){return l=>{n.forEach(o=>{typeof o=="function"?o(l):o!=null&&(o.current=l)})}}var eE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{eE&&(window.__reactRouterVersion="7.13.2")}catch{}function tE({basename:n,children:l,unstable_useTransitions:o,window:i}){let c=v.useRef();c.current==null&&(c.current=D2({window:i,v5Compat:!0}));let d=c.current,[m,h]=v.useState({action:d.action,location:d.location}),y=v.useCallback(p=>{o===!1?h(p):v.startTransition(()=>h(p))},[o]);return v.useLayoutEffect(()=>d.listen(y),[d,y]),v.createElement(jw,{basename:n,children:l,location:m.location,navigationType:m.action,navigator:d,unstable_useTransitions:o})}var R0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_0=v.forwardRef(function({onClick:l,discover:o="render",prefetch:i="none",relative:c,reloadDocument:d,replace:m,unstable_mask:h,state:y,target:p,to:x,preventScrollReset:g,viewTransition:w,unstable_defaultShouldRevalidate:N,...T},E){let{basename:C,navigator:A,unstable_useTransitions:j}=v.useContext(on),O=typeof x=="string"&&R0.test(x),z=p0(x,C);x=z.to;let B=mw(x,{relative:c}),G=Fn(),V=null;if(h){let oe=Js(h,[],G.unstable_mask?G.unstable_mask.pathname:"/",!0);C!=="/"&&(oe.pathname=oe.pathname==="/"?C:Zn([C,oe.pathname])),V=A.createHref(oe)}let[$,ae,re]=Zw(i,T),me=lE(x,{replace:m,unstable_mask:h,state:y,target:p,preventScrollReset:g,relative:c,viewTransition:w,unstable_defaultShouldRevalidate:N,unstable_useTransitions:j});function fe(oe){l&&l(oe),oe.defaultPrevented||me(oe)}let se=!(z.isExternal||d),ue=v.createElement("a",{...T,...re,href:(se?V:void 0)||z.absoluteURL||B,onClick:se?fe:l,ref:Ww(E,ae),target:p,"data-discover":!O&&o==="render"?"true":void 0});return $&&!O?v.createElement(v.Fragment,null,ue,v.createElement(Iw,{page:B})):ue});_0.displayName="Link";var Wd=v.forwardRef(function({"aria-current":l="page",caseSensitive:o=!1,className:i="",end:c=!1,style:d,to:m,viewTransition:h,children:y,...p},x){let g=Fo(m,{relative:p.relative}),w=Fn(),N=v.useContext(Ws),{navigator:T,basename:E}=v.useContext(on),C=N!=null&&cE(g)&&h===!0,A=T.encodeLocation?T.encodeLocation(g).pathname:g.pathname,j=w.pathname,O=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;o||(j=j.toLowerCase(),O=O?O.toLowerCase():null,A=A.toLowerCase()),O&&E&&(O=ya(O,E)||O);const z=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let B=j===A||!c&&j.startsWith(A)&&j.charAt(z)==="/",G=O!=null&&(O===A||!c&&O.startsWith(A)&&O.charAt(A.length)==="/"),V={isActive:B,isPending:G,isTransitioning:C},$=B?l:void 0,ae;typeof i=="function"?ae=i(V):ae=[i,B?"active":null,G?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let re=typeof d=="function"?d(V):d;return v.createElement(_0,{...p,"aria-current":$,className:ae,ref:x,style:re,to:m,viewTransition:h},typeof y=="function"?y(V):y)});Wd.displayName="NavLink";var nE=v.forwardRef(({discover:n="render",fetcherKey:l,navigate:o,reloadDocument:i,replace:c,state:d,method:m=Ts,action:h,onSubmit:y,relative:p,preventScrollReset:x,viewTransition:g,unstable_defaultShouldRevalidate:w,...N},T)=>{let{unstable_useTransitions:E}=v.useContext(on),C=iE(),A=sE(h,{relative:p}),j=m.toLowerCase()==="get"?"get":"post",O=typeof h=="string"&&R0.test(h),z=B=>{if(y&&y(B),B.defaultPrevented)return;B.preventDefault();let G=B.nativeEvent.submitter,V=(G==null?void 0:G.getAttribute("formmethod"))||m,$=()=>C(G||B.currentTarget,{fetcherKey:l,method:V,navigate:o,replace:c,state:d,relative:p,preventScrollReset:x,viewTransition:g,unstable_defaultShouldRevalidate:w});E&&o!==!1?v.startTransition(()=>$()):$()};return v.createElement("form",{ref:T,method:j,action:A,onSubmit:i?y:z,...N,"data-discover":!O&&n==="render"?"true":void 0})});nE.displayName="Form";function aE(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function j0(n){let l=v.useContext(Br);return ot(l,aE(n)),l}function lE(n,{target:l,replace:o,unstable_mask:i,state:c,preventScrollReset:d,relative:m,viewTransition:h,unstable_defaultShouldRevalidate:y,unstable_useTransitions:p}={}){let x=S0(),g=Fn(),w=Fo(n,{relative:m});return v.useCallback(N=>{if(Lw(N,l)){N.preventDefault();let T=o!==void 0?o:Xo(g)===Xo(w),E=()=>x(n,{replace:T,unstable_mask:i,state:c,preventScrollReset:d,relative:m,viewTransition:h,unstable_defaultShouldRevalidate:y});p?v.startTransition(()=>E()):E()}},[g,x,w,o,i,c,l,n,d,m,h,y,p])}var rE=0,oE=()=>`__${String(++rE)}__`;function iE(){let{router:n}=j0("useSubmit"),{basename:l}=v.useContext(on),o=Tw(),i=n.fetch,c=n.navigate;return v.useCallback(async(d,m={})=>{let{action:h,method:y,encType:p,formData:x,body:g}=Hw(d,l);if(m.navigate===!1){let w=m.fetcherKey||oE();await i(w,o,m.action||h,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:x,body:g,formMethod:m.method||y,formEncType:m.encType||p,flushSync:m.flushSync})}else await c(m.action||h,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:x,body:g,formMethod:m.method||y,formEncType:m.encType||p,replace:m.replace,state:m.state,fromRouteId:o,flushSync:m.flushSync,viewTransition:m.viewTransition})},[i,c,l,o])}function sE(n,{relative:l}={}){let{basename:o}=v.useContext(on),i=v.useContext(bn);ot(i,"useFormAction must be used inside a RouteContext");let[c]=i.matches.slice(-1),d={...Fo(n||".",{relative:l})},m=Fn();if(n==null){d.search=m.search;let h=new URLSearchParams(d.search),y=h.getAll("index");if(y.some(x=>x==="")){h.delete("index"),y.filter(g=>g).forEach(g=>h.append("index",g));let x=h.toString();d.search=x?`?${x}`:""}}return(!n||n===".")&&c.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(d.pathname=d.pathname==="/"?o:Zn([o,d.pathname])),Xo(d)}function cE(n,{relative:l}={}){let o=v.useContext(v0);ot(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=j0("useViewTransitionState"),c=Fo(n,{relative:l});if(!o.isTransitioning)return!1;let d=ya(o.currentLocation.pathname,i)||o.currentLocation.pathname,m=ya(o.nextLocation.pathname,i)||o.nextLocation.pathname;return Os(c.pathname,m)!=null||Os(c.pathname,d)!=null}var Jo=c0();const M0=s0(Jo),uE="/api";function dE(n,l){if(typeof n=="string"&&n)return n;if(n&&typeof n=="object"){const o=n,i=typeof o.error=="object"&&o.error!==null?o.error:void 0;if(typeof o.error=="string"&&o.error)return o.error;if(typeof(i==null?void 0:i.message)=="string"&&i.message)return i.message;if(typeof o.message=="string"&&o.message)return o.message}return l}async function Ee(n,l){const o=await fetch(`${uE}${n}`,{...l,headers:{"Content-Type":"application/json",...l==null?void 0:l.headers}});if(!o.ok){const i=await o.json().catch(()=>o.statusText);throw new Error(dE(i,`HTTP ${o.status}`))}return o.json()}function fE(){return Ee("/system/info")}function sj(n){return Ee("/system/transport",{method:"POST",body:JSON.stringify({type:n})})}function O0(n){return Ee("/system/runtime/restart",{method:"POST",body:JSON.stringify(n)})}function mE(){return Ee("/system/runtime/stop",{method:"POST"})}function hE(){return Ee("/cluster/state")}function cj(){return Ee("/cluster/promote",{method:"POST"})}function uj(n){return Ee("/cluster/connect",{method:"POST",body:JSON.stringify(n)})}function dj(){return Ee("/cluster/disconnect",{method:"POST"})}function pE(n){return Ee(`/node-operations/${n}`)}async function gE(n={}){const l=new URLSearchParams;n.nodeId&&l.set("nodeId",n.nodeId),n.status&&l.set("status",n.status),n.kind&&l.set("kind",n.kind);const o=l.toString();return(await Ee(`/node-operations${o?`?${o}`:""}`)).operations}function vE(n,l){return Ee(`/nodes/${n}/agents/${l}/upgrade`,{method:"POST"})}function yE(n,l){return Ee(`/nodes/${n}/runtime/restart`,{method:"POST",body:JSON.stringify(l)})}async function fj(){return(await Ee("/devboxes")).devboxes}function mj(n,l){return Ee(`/nodes/${n}/devbox/configure`,{method:"POST",body:JSON.stringify({devbox:l})})}function hj(n){return Ee(`/nodes/${n}/devbox/status`)}function pj(n){return Ee(`/nodes/${n}/devbox/start`,{method:"POST"})}function gj(n,l){return Ee(`/nodes/${n}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:l})})}function vj(n,l={}){const o=new URLSearchParams;l.path&&o.set("path",l.path),l.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,l.limit),100))),l.offset!==void 0&&o.set("offset",String(Math.max(0,l.offset))),l.directoriesOnly!==void 0&&o.set("directoriesOnly",String(l.directoriesOnly)),l.allowAbsolute!==void 0&&o.set("allowAbsolute",String(l.allowAbsolute));const i=o.toString();return Ee(`/nodes/${n}/workdir/tree${i?`?${i}`:""}`)}function yj(n,l={}){const o=new URLSearchParams;l.path&&o.set("path",l.path),l.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,l.limit),20))),l.offset!==void 0&&o.set("offset",String(Math.max(0,l.offset))),l.allowAbsolute!==void 0&&o.set("allowAbsolute",String(l.allowAbsolute));const i=o.toString();return Ee(`/nodes/${n}/workdir/branch${i?`?${i}`:""}`)}function bj(n,l){const o=new URLSearchParams;return o.set("agent",l.agent),o.set("limit",String(Math.min(Math.max(1,l.limit),100))),Ee(`/nodes/${n}/native-sessions?${o.toString()}`)}function xj(n,l){return Ee(`/nodes/${n}/workdir/branch`,{method:"POST",body:JSON.stringify({path:l.path,branchName:l.branchName,startPoint:l.startPoint,limit:l.limit,offset:l.offset,allowAbsolute:l.allowAbsolute})})}function Sj(n,l){return Ee(`/nodes/${n}/terminal/sessions`,{method:"POST",body:JSON.stringify(l)})}function wj(n){return Ee(`/nodes/${n}/terminal/sessions`)}function Ej(n,l){return Ee(`/nodes/${n}/terminal/sessions/${l}`)}function Nj(n,l){return Ee(`/nodes/${n}/terminal/sessions/${l}/stop`,{method:"POST"})}async function Tj(n){const l=new URLSearchParams;if(n!=null&&n.status&&l.set("status",n.status),n!=null&&n.assignedTo&&l.set("assignedTo",n.assignedTo),n!=null&&n.priority&&l.set("priority",n.priority),n!=null&&n.limit){const i=Math.min(Math.max(1,n.limit),100);l.set("limit",String(i))}if(n!=null&&n.offset&&l.set("offset",String(n.offset)),n!=null&&n.projectPath&&l.set("projectPath",n.projectPath),n!=null&&n.cursor&&l.set("cursor",n.cursor),(n==null?void 0:n.completedLimitPerProject)!==void 0){const i=Math.min(Math.max(1,n.completedLimitPerProject),100);l.set("completedLimitPerProject",String(i))}const o=l.toString();return Ee(`/tasks${o?`?${o}`:""}`)}function Cj(n){return Ee(`/tasks/${n}`)}function Aj(n){return Ee("/tasks",{method:"POST",body:JSON.stringify(n)})}function Rj(n){return Ee("/tasks/import-session",{method:"POST",body:JSON.stringify(n)})}function _j(n){return Ee("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:n})})}function jj(n){return Ee("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:n})})}function Mj(n){return Ee(`/tasks/${n}/cancel`,{method:"POST"})}function Oj(n){return Ee(`/tasks/${n}/retry`,{method:"POST"})}function Dj(n,l){return Ee(`/tasks/${n}/logs`)}function kj(n,l){return Ee(`/tasks/${n}/message`,{method:"POST",body:JSON.stringify({content:l})})}function zj(n,l){return Ee(`/tasks/${n}/queued-messages/${encodeURIComponent(l)}`,{method:"DELETE"})}function Lj(n,l){return Ee(`/tasks/${n}/share`,{method:"POST",body:JSON.stringify(l)})}function Uj(n){return Ee(`/tasks/${n}/share`,{method:"DELETE"})}function Bj(n){return Ee(`/shared/conversations/${encodeURIComponent(n)}`)}function Hj(n,l){return Ee(`/shared/conversations/${encodeURIComponent(n)}/logs`)}function Vj(n){return Ee(`/shared/conversations/${encodeURIComponent(n)}/output`)}function $j(n,l="."){return Ee(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(l)}`)}function Yj(n,l){return Ee(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(l)}`)}function qj(n,l){return Ee(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(l?{path:l}:{})})}function bE(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}function Gj(n){return Ee(`/tasks/${n}/output`)}function Pj(n,l="."){return Ee(`/tasks/${n}/output/tree?path=${encodeURIComponent(l)}`)}function Xj(n,l){return Ee(`/tasks/${n}/output/content?path=${encodeURIComponent(l)}`)}function Kj(n,l){return Ee(`/tasks/${n}/output/preview-sessions`,{method:"POST",body:JSON.stringify(bE(l))})}function Qj(n){return Ee(`/tasks/${n}/output/diff`)}function xE({hasStarted:n,enabled:l}){return l&&!n}function SE(n,l,o=!0){const i=v.useRef(n),c=v.useRef(!1);v.useEffect(()=>{i.current=n},[n]),v.useEffect(()=>{if(!o)return;const d=()=>i.current();xE({hasStarted:c.current,enabled:o})&&(c.current=!0,d());const m=setInterval(d,l);return()=>clearInterval(m)},[l,o])}let wE=0;function EE(n=50){const[l,o]=v.useState([]),[i,c]=v.useState(!1),d=v.useRef(null),m=v.useRef(0),h=v.useRef(new Map);v.useEffect(()=>{const x=new EventSource("/api/events");d.current=x,x.onopen=()=>c(!0),x.onerror=()=>c(!1);const g=["node.joined","node.left","node.status","node.operation.created","node.operation.updated","task.created","task.assigned","task.status","task.updated","task.deleted","task.output","election.started","election.complete","cluster.state","transport.changed"];for(const w of g)x.addEventListener(w,N=>{const T={id:String(++wE),type:w,data:JSON.parse(N.data),timestamp:Date.now()};o(E=>[T,...E].slice(0,n));for(const[,{pattern:E,callback:C}]of h.current)w.startsWith(E)&&C(T)});return()=>{x.close(),d.current=null,c(!1)}},[n]);const y=v.useCallback((x,g)=>{const w=++m.current;return h.current.set(w,{pattern:x,callback:g}),()=>{h.current.delete(w)}},[]),p=v.useCallback(()=>o([]),[]);return{events:l,connected:i,subscribe:y,clearEvents:p}}const NE=1e4,TE=6e4,CE=NE,AE=250,RE=new Set(["node.joined","node.left","task.created","task.assigned","task.deleted"]),_E=new Set(["task.created","task.assigned","task.status","task.deleted"]);function jE(n){return n?TE:CE}function Zj(n){return RE.has(n)}function ME(n){return _E.has(n)}function OE(n,l){if(!l)return!0;const o=n.leaderId,i=n.term,c=n.nodeCount;return typeof o!="string"&&o!==null||typeof i!="number"||typeof c!="number"?!0:l.leaderId!==o||l.term!==i||l.nodeCount!==c}function DE(n,l,o){if(n==="node.joined"||n==="node.left"||n!=="node.status")return!0;const i=l.nodeId,c=l.status;return typeof i!="string"||typeof c!="string"?!0:o.get(i)!==c}function Ij(n,l){const o=l.taskId,i=l.status;if(typeof o!="string"||typeof i!="string")return n;let c=!1;const d=n.map(m=>{if(m.id!==o)return m;c=!0;const h="result"in l?l.result:i==="completed"?null:m.result,y="error"in l?l.error:i==="completed"?null:m.error;return{...m,status:i,result:h,error:y}});return c?d:n}const D0=v.createContext(null);function kE({children:n}){const[l,o]=v.useState(null),[i,c]=v.useState(null),[d,m]=v.useState(!0),[h,y]=v.useState(null),p=v.useRef(null),x=v.useRef(null),g=v.useRef(new Map),{events:w,connected:N,subscribe:T}=EE(),E=v.useCallback(async()=>{var A;try{const[j,O]=await Promise.all([hE(),fE()]),z=j,B=O.nodeId??O.id,G=z.nodes??[],V=G.find(re=>re.id===B)??{id:B,name:O.name,endpoint:O.endpoint,role:O.role,status:O.status,capabilities:O.capabilities,joinedAt:O.joinedAt,lastHeartbeat:O.lastHeartbeat},$=z.leaderId?G.find(re=>re.id===z.leaderId)??null:null,ae={leader:$?{id:$.id,name:$.name,endpoint:$.endpoint,...$.dashboardOrigin?{dashboardOrigin:$.dashboardOrigin}:{}}:null,term:z.term??0,nodes:G,self:V,taskSummary:z.taskSummary??{total:0,pending:0,running:0,completed:0,failed:0}};x.current={leaderId:((A=ae.leader)==null?void 0:A.id)??null,term:ae.term,nodeCount:ae.nodes.length},g.current=new Map(ae.nodes.map(re=>[re.id,re.status])),g.current.set(ae.self.id,ae.self.status),o(ae),c(O),y(null)}catch(j){y(j instanceof Error?j.message:"Failed to fetch cluster state")}finally{m(!1)}},[]),C=v.useCallback(()=>{p.current===null&&(p.current=window.setTimeout(()=>{p.current=null,E()},AE))},[E]);return SE(E,jE(N)),v.useEffect(()=>()=>{p.current!==null&&(window.clearTimeout(p.current),p.current=null)},[]),v.useEffect(()=>{const A=[T("cluster",j=>{OE(j.data,x.current)&&C()}),T("election",C),T("node",j=>{DE(j.type,j.data,g.current)&&C()}),T("transport",C),T("task",j=>{ME(j.type)&&C()})];return()=>A.forEach(j=>j())},[T,C]),f.jsx(D0.Provider,{value:{cluster:l,systemInfo:i,events:w,sseConnected:N,subscribe:T,refresh:E,loading:d,error:h},children:n})}function k0(){const n=v.useContext(D0);if(!n)throw new Error("useCluster must be used within ClusterProvider");return n}/**
62
+ * @license lucide-react v1.7.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const z0=(...n)=>n.filter((l,o,i)=>!!l&&l.trim()!==""&&i.indexOf(l)===o).join(" ").trim();/**
67
+ * @license lucide-react v1.7.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */const zE=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
72
+ * @license lucide-react v1.7.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */const LE=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,o,i)=>i?i.toUpperCase():o.toLowerCase());/**
77
+ * @license lucide-react v1.7.0 - ISC
78
+ *
79
+ * This source code is licensed under the ISC license.
80
+ * See the LICENSE file in the root directory of this source tree.
81
+ */const gv=n=>{const l=LE(n);return l.charAt(0).toUpperCase()+l.slice(1)};/**
82
+ * @license lucide-react v1.7.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */var Dd={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"};/**
87
+ * @license lucide-react v1.7.0 - ISC
88
+ *
89
+ * This source code is licensed under the ISC license.
90
+ * See the LICENSE file in the root directory of this source tree.
91
+ */const UE=n=>{for(const l in n)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1},BE=v.createContext({}),HE=()=>v.useContext(BE),VE=v.forwardRef(({color:n,size:l,strokeWidth:o,absoluteStrokeWidth:i,className:c="",children:d,iconNode:m,...h},y)=>{const{size:p=24,strokeWidth:x=2,absoluteStrokeWidth:g=!1,color:w="currentColor",className:N=""}=HE()??{},T=i??g?Number(o??x)*24/Number(l??p):o??x;return v.createElement("svg",{ref:y,...Dd,width:l??p??Dd.width,height:l??p??Dd.height,stroke:n??w,strokeWidth:T,className:z0("lucide",N,c),...!d&&!UE(h)&&{"aria-hidden":"true"},...h},[...m.map(([E,C])=>v.createElement(E,C)),...Array.isArray(d)?d:[d]])});/**
92
+ * @license lucide-react v1.7.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const Be=(n,l)=>{const o=v.forwardRef(({className:i,...c},d)=>v.createElement(VE,{ref:d,iconNode:l,className:z0(`lucide-${zE(gv(n))}`,`lucide-${n}`,i),...c}));return o.displayName=gv(n),o};/**
97
+ * @license lucide-react v1.7.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const $E=[["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"}]],Ds=Be("activity",$E);/**
102
+ * @license lucide-react v1.7.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const YE=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],qE=Be("book-open",YE);/**
107
+ * @license lucide-react v1.7.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const GE=[["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"}]],L0=Be("bot",GE);/**
112
+ * @license lucide-react v1.7.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const PE=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],XE=Be("cable",PE);/**
117
+ * @license lucide-react v1.7.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const KE=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],ks=Be("check",KE);/**
122
+ * @license lucide-react v1.7.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const QE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Ko=Be("chevron-down",QE);/**
127
+ * @license lucide-react v1.7.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const ZE=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],ef=Be("chevron-right",ZE);/**
132
+ * @license lucide-react v1.7.0 - ISC
133
+ *
134
+ * This source code is licensed under the ISC license.
135
+ * See the LICENSE file in the root directory of this source tree.
136
+ */const IE=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],FE=Be("chevron-up",IE);/**
137
+ * @license lucide-react v1.7.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */const JE=[["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"}]],hs=Be("circle-alert",JE);/**
142
+ * @license lucide-react v1.7.0 - ISC
143
+ *
144
+ * This source code is licensed under the ISC license.
145
+ * See the LICENSE file in the root directory of this source tree.
146
+ */const WE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Yo=Be("circle-check",WE);/**
147
+ * @license lucide-react v1.7.0 - ISC
148
+ *
149
+ * This source code is licensed under the ISC license.
150
+ * See the LICENSE file in the root directory of this source tree.
151
+ */const eN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],vv=Be("circle-dot",eN);/**
152
+ * @license lucide-react v1.7.0 - ISC
153
+ *
154
+ * This source code is licensed under the ISC license.
155
+ * See the LICENSE file in the root directory of this source tree.
156
+ */const tN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],nN=Be("circle-x",tN);/**
157
+ * @license lucide-react v1.7.0 - ISC
158
+ *
159
+ * This source code is licensed under the ISC license.
160
+ * See the LICENSE file in the root directory of this source tree.
161
+ */const aN=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],lN=Be("copy",aN);/**
162
+ * @license lucide-react v1.7.0 - ISC
163
+ *
164
+ * This source code is licensed under the ISC license.
165
+ * See the LICENSE file in the root directory of this source tree.
166
+ */const rN=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],oN=Be("cpu",rN);/**
167
+ * @license lucide-react v1.7.0 - ISC
168
+ *
169
+ * This source code is licensed under the ISC license.
170
+ * See the LICENSE file in the root directory of this source tree.
171
+ */const iN=[["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"}]],sN=Be("external-link",iN);/**
172
+ * @license lucide-react v1.7.0 - ISC
173
+ *
174
+ * This source code is licensed under the ISC license.
175
+ * See the LICENSE file in the root directory of this source tree.
176
+ */const cN=[["path",{d:"M20 10a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1h-2.5a1 1 0 0 1-.8-.4l-.9-1.2A1 1 0 0 0 15 3h-2a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"hod4my"}],["path",{d:"M20 21a1 1 0 0 0 1-1v-3a1 1 0 0 0-1-1h-2.9a1 1 0 0 1-.88-.55l-.42-.85a1 1 0 0 0-.92-.6H13a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1Z",key:"w4yl2u"}],["path",{d:"M3 5a2 2 0 0 0 2 2h3",key:"f2jnh7"}],["path",{d:"M3 3v13a2 2 0 0 0 2 2h3",key:"k8epm1"}]],uN=Be("folder-tree",cN);/**
177
+ * @license lucide-react v1.7.0 - ISC
178
+ *
179
+ * This source code is licensed under the ISC license.
180
+ * See the LICENSE file in the root directory of this source tree.
181
+ */const dN=[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]],fN=Be("folder",dN);/**
182
+ * @license lucide-react v1.7.0 - ISC
183
+ *
184
+ * This source code is licensed under the ISC license.
185
+ * See the LICENSE file in the root directory of this source tree.
186
+ */const mN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],hN=Be("info",mN);/**
187
+ * @license lucide-react v1.7.0 - ISC
188
+ *
189
+ * This source code is licensed under the ISC license.
190
+ * See the LICENSE file in the root directory of this source tree.
191
+ */const pN=[["path",{d:"M12 17v4",key:"1riwvh"}],["path",{d:"m14.305 7.53.923-.382",key:"1mlnsw"}],["path",{d:"m15.228 4.852-.923-.383",key:"82mpwg"}],["path",{d:"m16.852 3.228-.383-.924",key:"ln4sir"}],["path",{d:"m16.852 8.772-.383.923",key:"1dejw0"}],["path",{d:"m19.148 3.228.383-.924",key:"192kgf"}],["path",{d:"m19.53 9.696-.382-.924",key:"fiavlr"}],["path",{d:"m20.772 4.852.924-.383",key:"1j8mgp"}],["path",{d:"m20.772 7.148.924.383",key:"zix9be"}],["path",{d:"M22 13v2a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7",key:"1tnzv8"}],["path",{d:"M8 21h8",key:"1ev6f3"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}]],gN=Be("monitor-cog",pN);/**
192
+ * @license lucide-react v1.7.0 - ISC
193
+ *
194
+ * This source code is licensed under the ISC license.
195
+ * See the LICENSE file in the root directory of this source tree.
196
+ */const vN=[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]],U0=Be("monitor",vN);/**
197
+ * @license lucide-react v1.7.0 - ISC
198
+ *
199
+ * This source code is licensed under the ISC license.
200
+ * See the LICENSE file in the root directory of this source tree.
201
+ */const yN=[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]],B0=Be("moon",yN);/**
202
+ * @license lucide-react v1.7.0 - ISC
203
+ *
204
+ * This source code is licensed under the ISC license.
205
+ * See the LICENSE file in the root directory of this source tree.
206
+ */const bN=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],xN=Be("power",bN);/**
207
+ * @license lucide-react v1.7.0 - ISC
208
+ *
209
+ * This source code is licensed under the ISC license.
210
+ * See the LICENSE file in the root directory of this source tree.
211
+ */const SN=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],wN=Be("radio",SN);/**
212
+ * @license lucide-react v1.7.0 - ISC
213
+ *
214
+ * This source code is licensed under the ISC license.
215
+ * See the LICENSE file in the root directory of this source tree.
216
+ */const EN=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],tf=Be("refresh-cw",EN);/**
217
+ * @license lucide-react v1.7.0 - ISC
218
+ *
219
+ * This source code is licensed under the ISC license.
220
+ * See the LICENSE file in the root directory of this source tree.
221
+ */const NN=[["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}],["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09",key:"u4xsad"}],["path",{d:"M9 12a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.4 22.4 0 0 1-4 2z",key:"676m9"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 .05 5 .05",key:"92ym6u"}]],yv=Be("rocket",NN);/**
222
+ * @license lucide-react v1.7.0 - ISC
223
+ *
224
+ * This source code is licensed under the ISC license.
225
+ * See the LICENSE file in the root directory of this source tree.
226
+ */const TN=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],CN=Be("search",TN);/**
227
+ * @license lucide-react v1.7.0 - ISC
228
+ *
229
+ * This source code is licensed under the ISC license.
230
+ * See the LICENSE file in the root directory of this source tree.
231
+ */const AN=[["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"}]],H0=Be("server",AN);/**
232
+ * @license lucide-react v1.7.0 - ISC
233
+ *
234
+ * This source code is licensed under the ISC license.
235
+ * See the LICENSE file in the root directory of this source tree.
236
+ */const RN=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],_N=Be("settings",RN);/**
237
+ * @license lucide-react v1.7.0 - ISC
238
+ *
239
+ * This source code is licensed under the ISC license.
240
+ * See the LICENSE file in the root directory of this source tree.
241
+ */const jN=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],MN=Be("shield",jN);/**
242
+ * @license lucide-react v1.7.0 - ISC
243
+ *
244
+ * This source code is licensed under the ISC license.
245
+ * See the LICENSE file in the root directory of this source tree.
246
+ */const ON=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],DN=Be("sparkles",ON);/**
247
+ * @license lucide-react v1.7.0 - ISC
248
+ *
249
+ * This source code is licensed under the ISC license.
250
+ * See the LICENSE file in the root directory of this source tree.
251
+ */const kN=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],V0=Be("sun",kN);/**
252
+ * @license lucide-react v1.7.0 - ISC
253
+ *
254
+ * This source code is licensed under the ISC license.
255
+ * See the LICENSE file in the root directory of this source tree.
256
+ */const zN=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],$0=Be("terminal",zN);/**
257
+ * @license lucide-react v1.7.0 - ISC
258
+ *
259
+ * This source code is licensed under the ISC license.
260
+ * See the LICENSE file in the root directory of this source tree.
261
+ */const LN=[["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"}]],UN=Be("wifi-off",LN);/**
262
+ * @license lucide-react v1.7.0 - ISC
263
+ *
264
+ * This source code is licensed under the ISC license.
265
+ * See the LICENSE file in the root directory of this source tree.
266
+ */const BN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Y0=Be("x",BN);function q0(n){var l,o,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(l=0;l<c;l++)n[l]&&(o=q0(n[l]))&&(i&&(i+=" "),i+=o)}else for(o in n)n[o]&&(i&&(i+=" "),i+=o);return i}function G0(){for(var n,l,o=0,i="",c=arguments.length;o<c;o++)(n=arguments[o])&&(l=q0(n))&&(i&&(i+=" "),i+=l);return i}const HN=(n,l)=>{const o=new Array(n.length+l.length);for(let i=0;i<n.length;i++)o[i]=n[i];for(let i=0;i<l.length;i++)o[n.length+i]=l[i];return o},VN=(n,l)=>({classGroupId:n,validator:l}),P0=(n=new Map,l=null,o)=>({nextPart:n,validators:l,classGroupId:o}),zs="-",bv=[],$N="arbitrary..",YN=n=>{const l=GN(n),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return qN(m);const h=m.split(zs),y=h[0]===""&&h.length>1?1:0;return X0(h,y,l)},getConflictingClassGroupIds:(m,h)=>{if(h){const y=i[m],p=o[m];return y?p?HN(p,y):y:p||bv}return o[m]||bv}}},X0=(n,l,o)=>{if(n.length-l===0)return o.classGroupId;const c=n[l],d=o.nextPart.get(c);if(d){const p=X0(n,l+1,d);if(p)return p}const m=o.validators;if(m===null)return;const h=l===0?n.join(zs):n.slice(l).join(zs),y=m.length;for(let p=0;p<y;p++){const x=m[p];if(x.validator(h))return x.classGroupId}},qN=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const l=n.slice(1,-1),o=l.indexOf(":"),i=l.slice(0,o);return i?$N+i:void 0})(),GN=n=>{const{theme:l,classGroups:o}=n;return PN(o,l)},PN=(n,l)=>{const o=P0();for(const i in n){const c=n[i];Af(c,o,i,l)}return o},Af=(n,l,o,i)=>{const c=n.length;for(let d=0;d<c;d++){const m=n[d];XN(m,l,o,i)}},XN=(n,l,o,i)=>{if(typeof n=="string"){KN(n,l,o);return}if(typeof n=="function"){QN(n,l,o,i);return}ZN(n,l,o,i)},KN=(n,l,o)=>{const i=n===""?l:K0(l,n);i.classGroupId=o},QN=(n,l,o,i)=>{if(IN(n)){Af(n(i),l,o,i);return}l.validators===null&&(l.validators=[]),l.validators.push(VN(o,n))},ZN=(n,l,o,i)=>{const c=Object.entries(n),d=c.length;for(let m=0;m<d;m++){const[h,y]=c[m];Af(y,K0(l,h),o,i)}},K0=(n,l)=>{let o=n;const i=l.split(zs),c=i.length;for(let d=0;d<c;d++){const m=i[d];let h=o.nextPart.get(m);h||(h=P0(),o.nextPart.set(m,h)),o=h}return o},IN=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,FN=n=>{if(n<1)return{get:()=>{},set:()=>{}};let l=0,o=Object.create(null),i=Object.create(null);const c=(d,m)=>{o[d]=m,l++,l>n&&(l=0,i=o,o=Object.create(null))};return{get(d){let m=o[d];if(m!==void 0)return m;if((m=i[d])!==void 0)return c(d,m),m},set(d,m){d in o?o[d]=m:c(d,m)}}},nf="!",xv=":",JN=[],Sv=(n,l,o,i,c)=>({modifiers:n,hasImportantModifier:l,baseClassName:o,maybePostfixModifierPosition:i,isExternal:c}),WN=n=>{const{prefix:l,experimentalParseClassName:o}=n;let i=c=>{const d=[];let m=0,h=0,y=0,p;const x=c.length;for(let E=0;E<x;E++){const C=c[E];if(m===0&&h===0){if(C===xv){d.push(c.slice(y,E)),y=E+1;continue}if(C==="/"){p=E;continue}}C==="["?m++:C==="]"?m--:C==="("?h++:C===")"&&h--}const g=d.length===0?c:c.slice(y);let w=g,N=!1;g.endsWith(nf)?(w=g.slice(0,-1),N=!0):g.startsWith(nf)&&(w=g.slice(1),N=!0);const T=p&&p>y?p-y:void 0;return Sv(d,N,w,T)};if(l){const c=l+xv,d=i;i=m=>m.startsWith(c)?d(m.slice(c.length)):Sv(JN,!1,m,void 0,!0)}if(o){const c=i;i=d=>o({className:d,parseClassName:c})}return i},eT=n=>{const l=new Map;return n.orderSensitiveModifiers.forEach((o,i)=>{l.set(o,1e6+i)}),o=>{const i=[];let c=[];for(let d=0;d<o.length;d++){const m=o[d],h=m[0]==="[",y=l.has(m);h||y?(c.length>0&&(c.sort(),i.push(...c),c=[]),i.push(m)):c.push(m)}return c.length>0&&(c.sort(),i.push(...c)),i}},tT=n=>({cache:FN(n.cacheSize),parseClassName:WN(n),sortModifiers:eT(n),...YN(n)}),nT=/\s+/,aT=(n,l)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:c,sortModifiers:d}=l,m=[],h=n.trim().split(nT);let y="";for(let p=h.length-1;p>=0;p-=1){const x=h[p],{isExternal:g,modifiers:w,hasImportantModifier:N,baseClassName:T,maybePostfixModifierPosition:E}=o(x);if(g){y=x+(y.length>0?" "+y:y);continue}let C=!!E,A=i(C?T.substring(0,E):T);if(!A){if(!C){y=x+(y.length>0?" "+y:y);continue}if(A=i(T),!A){y=x+(y.length>0?" "+y:y);continue}C=!1}const j=w.length===0?"":w.length===1?w[0]:d(w).join(":"),O=N?j+nf:j,z=O+A;if(m.indexOf(z)>-1)continue;m.push(z);const B=c(A,C);for(let G=0;G<B.length;++G){const V=B[G];m.push(O+V)}y=x+(y.length>0?" "+y:y)}return y},lT=(...n)=>{let l=0,o,i,c="";for(;l<n.length;)(o=n[l++])&&(i=Q0(o))&&(c&&(c+=" "),c+=i);return c},Q0=n=>{if(typeof n=="string")return n;let l,o="";for(let i=0;i<n.length;i++)n[i]&&(l=Q0(n[i]))&&(o&&(o+=" "),o+=l);return o},rT=(n,...l)=>{let o,i,c,d;const m=y=>{const p=l.reduce((x,g)=>g(x),n());return o=tT(p),i=o.cache.get,c=o.cache.set,d=h,h(y)},h=y=>{const p=i(y);if(p)return p;const x=aT(y,o);return c(y,x),x};return d=m,(...y)=>d(lT(...y))},oT=[],xt=n=>{const l=o=>o[n]||oT;return l.isThemeGetter=!0,l},Z0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,I0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,iT=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,sT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,cT=/\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$/,uT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,dT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Qa=n=>iT.test(n),_e=n=>!!n&&!Number.isNaN(Number(n)),Za=n=>!!n&&Number.isInteger(Number(n)),kd=n=>n.endsWith("%")&&_e(n.slice(0,-1)),va=n=>sT.test(n),F0=()=>!0,mT=n=>cT.test(n)&&!uT.test(n),Rf=()=>!1,hT=n=>dT.test(n),pT=n=>fT.test(n),gT=n=>!pe(n)&&!ge(n),vT=n=>nl(n,ey,Rf),pe=n=>Z0.test(n),Al=n=>nl(n,ty,mT),wv=n=>nl(n,TT,_e),yT=n=>nl(n,ay,F0),bT=n=>nl(n,ny,Rf),Ev=n=>nl(n,J0,Rf),xT=n=>nl(n,W0,pT),ps=n=>nl(n,ly,hT),ge=n=>I0.test(n),Bo=n=>zl(n,ty),ST=n=>zl(n,ny),Nv=n=>zl(n,J0),wT=n=>zl(n,ey),ET=n=>zl(n,W0),gs=n=>zl(n,ly,!0),NT=n=>zl(n,ay,!0),nl=(n,l,o)=>{const i=Z0.exec(n);return i?i[1]?l(i[1]):o(i[2]):!1},zl=(n,l,o=!1)=>{const i=I0.exec(n);return i?i[1]?l(i[1]):o:!1},J0=n=>n==="position"||n==="percentage",W0=n=>n==="image"||n==="url",ey=n=>n==="length"||n==="size"||n==="bg-size",ty=n=>n==="length",TT=n=>n==="number",ny=n=>n==="family-name",ay=n=>n==="number"||n==="weight",ly=n=>n==="shadow",CT=()=>{const n=xt("color"),l=xt("font"),o=xt("text"),i=xt("font-weight"),c=xt("tracking"),d=xt("leading"),m=xt("breakpoint"),h=xt("container"),y=xt("spacing"),p=xt("radius"),x=xt("shadow"),g=xt("inset-shadow"),w=xt("text-shadow"),N=xt("drop-shadow"),T=xt("blur"),E=xt("perspective"),C=xt("aspect"),A=xt("ease"),j=xt("animate"),O=()=>["auto","avoid","all","avoid-page","page","left","right","column"],z=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[...z(),ge,pe],G=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],$=()=>[ge,pe,y],ae=()=>[Qa,"full","auto",...$()],re=()=>[Za,"none","subgrid",ge,pe],me=()=>["auto",{span:["full",Za,ge,pe]},Za,ge,pe],fe=()=>[Za,"auto",ge,pe],se=()=>["auto","min","max","fr",ge,pe],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],oe=()=>["start","end","center","stretch","center-safe","end-safe"],M=()=>["auto",...$()],Y=()=>[Qa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],I=()=>[Qa,"screen","full","dvw","lvw","svw","min","max","fit",...$()],de=()=>[Qa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...$()],F=()=>[n,ge,pe],R=()=>[...z(),Nv,Ev,{position:[ge,pe]}],P=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",wT,vT,{size:[ge,pe]}],W=()=>[kd,Bo,Al],te=()=>["","none","full",p,ge,pe],ie=()=>["",_e,Bo,Al],ee=()=>["solid","dashed","dotted","double"],ce=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[_e,kd,Nv,Ev],ve=()=>["","none",T,ge,pe],be=()=>["none",_e,ge,pe],Se=()=>["none",_e,ge,pe],He=()=>[_e,ge,pe],je=()=>[Qa,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[va],breakpoint:[va],color:[F0],container:[va],"drop-shadow":[va],ease:["in","out","in-out"],font:[gT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[va],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[va],shadow:[va],spacing:["px",_e],text:[va],"text-shadow":[va],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Qa,pe,ge,C]}],container:["container"],columns:[{columns:[_e,pe,ge,h]}],"break-after":[{"break-after":O()}],"break-before":[{"break-before":O()}],"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:B()}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{"inset-s":ae(),start:ae()}],end:[{"inset-e":ae(),end:ae()}],"inset-bs":[{"inset-bs":ae()}],"inset-be":[{"inset-be":ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[Za,"auto",ge,pe]}],basis:[{basis:[Qa,"full","auto",h,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,Qa,"auto","initial","none",pe]}],grow:[{grow:["",_e,ge,pe]}],shrink:[{shrink:["",_e,ge,pe]}],order:[{order:[Za,"first","last","none",ge,pe]}],"grid-cols":[{"grid-cols":re()}],"col-start-end":[{col:me()}],"col-start":[{"col-start":fe()}],"col-end":[{"col-end":fe()}],"grid-rows":[{"grid-rows":re()}],"row-start-end":[{row:me()}],"row-start":[{"row-start":fe()}],"row-end":[{"row-end":fe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:$()}],"gap-x":[{"gap-x":$()}],"gap-y":[{"gap-y":$()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...oe(),"normal"]}],"justify-self":[{"justify-self":["auto",...oe()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...oe(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...oe(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...oe(),"baseline"]}],"place-self":[{"place-self":["auto",...oe()]}],p:[{p:$()}],px:[{px:$()}],py:[{py:$()}],ps:[{ps:$()}],pe:[{pe:$()}],pbs:[{pbs:$()}],pbe:[{pbe:$()}],pt:[{pt:$()}],pr:[{pr:$()}],pb:[{pb:$()}],pl:[{pl:$()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":$()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":$()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...I()]}],"min-inline-size":[{"min-inline":["auto",...I()]}],"max-inline-size":[{"max-inline":["none",...I()]}],"block-size":[{block:["auto",...de()]}],"min-block-size":[{"min-block":["auto",...de()]}],"max-block-size":[{"max-block":["none",...de()]}],w:[{w:[h,"screen",...Y()]}],"min-w":[{"min-w":[h,"screen","none",...Y()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[m]},...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",o,Bo,Al]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,NT,yT]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",kd,pe]}],"font-family":[{font:[ST,bT,l]}],"font-features":[{"font-features":[pe]}],"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,ge,pe]}],"line-clamp":[{"line-clamp":[_e,"none",ge,wv]}],leading:[{leading:[d,...$()]}],"list-image":[{"list-image":["none",ge,pe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,pe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",ge,Al]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[_e,"auto",ge,pe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:$()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,pe]}],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",ge,pe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:R()}],"bg-repeat":[{bg:P()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Za,ge,pe],radial:["",ge,pe],conic:[Za,ge,pe]},ET,xT]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:ie()}],"border-w-x":[{"border-x":ie()}],"border-w-y":[{"border-y":ie()}],"border-w-s":[{"border-s":ie()}],"border-w-e":[{"border-e":ie()}],"border-w-bs":[{"border-bs":ie()}],"border-w-be":[{"border-be":ie()}],"border-w-t":[{"border-t":ie()}],"border-w-r":[{"border-r":ie()}],"border-w-b":[{"border-b":ie()}],"border-w-l":[{"border-l":ie()}],"divide-x":[{"divide-x":ie()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ie()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,ge,pe]}],"outline-w":[{outline:["",_e,Bo,Al]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",x,gs,ps]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",g,gs,ps]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:ie()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[_e,Al]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":ie()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",w,gs,ps]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[_e,ge,pe]}],"mix-blend":[{"mix-blend":[...ce(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ce()}],"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":[_e]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[ge,pe]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"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":z()}],"mask-image-conic-pos":[{"mask-conic":[_e]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:R()}],"mask-repeat":[{mask:P()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,pe]}],filter:[{filter:["","none",ge,pe]}],blur:[{blur:ve()}],brightness:[{brightness:[_e,ge,pe]}],contrast:[{contrast:[_e,ge,pe]}],"drop-shadow":[{"drop-shadow":["","none",N,gs,ps]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",_e,ge,pe]}],"hue-rotate":[{"hue-rotate":[_e,ge,pe]}],invert:[{invert:["",_e,ge,pe]}],saturate:[{saturate:[_e,ge,pe]}],sepia:[{sepia:["",_e,ge,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,pe]}],"backdrop-blur":[{"backdrop-blur":ve()}],"backdrop-brightness":[{"backdrop-brightness":[_e,ge,pe]}],"backdrop-contrast":[{"backdrop-contrast":[_e,ge,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,ge,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,ge,pe]}],"backdrop-invert":[{"backdrop-invert":["",_e,ge,pe]}],"backdrop-opacity":[{"backdrop-opacity":[_e,ge,pe]}],"backdrop-saturate":[{"backdrop-saturate":[_e,ge,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,ge,pe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":$()}],"border-spacing-x":[{"border-spacing-x":$()}],"border-spacing-y":[{"border-spacing-y":$()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,pe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",ge,pe]}],ease:[{ease:["linear","initial",A,ge,pe]}],delay:[{delay:[_e,ge,pe]}],animate:[{animate:["none",j,ge,pe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ge,pe]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:be()}],"rotate-x":[{"rotate-x":be()}],"rotate-y":[{"rotate-y":be()}],"rotate-z":[{"rotate-z":be()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":["scale-3d"],skew:[{skew:He()}],"skew-x":[{"skew-x":He()}],"skew-y":[{"skew-y":He()}],transform:[{transform:[ge,pe,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:je()}],"translate-x":[{"translate-x":je()}],"translate-y":[{"translate-y":je()}],"translate-z":[{"translate-z":je()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"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",ge,pe]}],"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":$()}],"scroll-mx":[{"scroll-mx":$()}],"scroll-my":[{"scroll-my":$()}],"scroll-ms":[{"scroll-ms":$()}],"scroll-me":[{"scroll-me":$()}],"scroll-mbs":[{"scroll-mbs":$()}],"scroll-mbe":[{"scroll-mbe":$()}],"scroll-mt":[{"scroll-mt":$()}],"scroll-mr":[{"scroll-mr":$()}],"scroll-mb":[{"scroll-mb":$()}],"scroll-ml":[{"scroll-ml":$()}],"scroll-p":[{"scroll-p":$()}],"scroll-px":[{"scroll-px":$()}],"scroll-py":[{"scroll-py":$()}],"scroll-ps":[{"scroll-ps":$()}],"scroll-pe":[{"scroll-pe":$()}],"scroll-pbs":[{"scroll-pbs":$()}],"scroll-pbe":[{"scroll-pbe":$()}],"scroll-pt":[{"scroll-pt":$()}],"scroll-pr":[{"scroll-pr":$()}],"scroll-pb":[{"scroll-pb":$()}],"scroll-pl":[{"scroll-pl":$()}],"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",ge,pe]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[_e,Bo,Al,wv]}],stroke:[{stroke:["none",...F()]}],"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"]}},AT=rT(CT);function le(...n){return AT(G0(n))}function RT(n){if(typeof document>"u")return;let l=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",l.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}const _T=n=>{switch(n){case"success":return OT;case"info":return kT;case"warning":return DT;case"error":return zT;default:return null}},jT=Array(12).fill(0),MT=({visible:n,className:l})=>ne.createElement("div",{className:["sonner-loading-wrapper",l].filter(Boolean).join(" "),"data-visible":n},ne.createElement("div",{className:"sonner-spinner"},jT.map((o,i)=>ne.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),OT=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),DT=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ne.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),kT=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),zT=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),LT=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ne.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ne.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),UT=()=>{const[n,l]=ne.useState(document.hidden);return ne.useEffect(()=>{const o=()=>{l(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),n};let af=1;class BT{constructor(){this.subscribe=l=>(this.subscribers.push(l),()=>{const o=this.subscribers.indexOf(l);this.subscribers.splice(o,1)}),this.publish=l=>{this.subscribers.forEach(o=>o(l))},this.addToast=l=>{this.publish(l),this.toasts=[...this.toasts,l]},this.create=l=>{var o;const{message:i,...c}=l,d=typeof(l==null?void 0:l.id)=="number"||((o=l.id)==null?void 0:o.length)>0?l.id:af++,m=this.toasts.find(y=>y.id===d),h=l.dismissible===void 0?!0:l.dismissible;return this.dismissedToasts.has(d)&&this.dismissedToasts.delete(d),m?this.toasts=this.toasts.map(y=>y.id===d?(this.publish({...y,...l,id:d,title:i}),{...y,...l,id:d,dismissible:h,title:i}):y):this.addToast({title:i,...c,dismissible:h,id:d}),d},this.dismiss=l=>(l?(this.dismissedToasts.add(l),requestAnimationFrame(()=>this.subscribers.forEach(o=>o({id:l,dismiss:!0})))):this.toasts.forEach(o=>{this.subscribers.forEach(i=>i({id:o.id,dismiss:!0}))}),l),this.message=(l,o)=>this.create({...o,message:l}),this.error=(l,o)=>this.create({...o,message:l,type:"error"}),this.success=(l,o)=>this.create({...o,type:"success",message:l}),this.info=(l,o)=>this.create({...o,type:"info",message:l}),this.warning=(l,o)=>this.create({...o,type:"warning",message:l}),this.loading=(l,o)=>this.create({...o,type:"loading",message:l}),this.promise=(l,o)=>{if(!o)return;let i;o.loading!==void 0&&(i=this.create({...o,promise:l,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));const c=Promise.resolve(l instanceof Function?l():l);let d=i!==void 0,m;const h=c.then(async p=>{if(m=["resolve",p],ne.isValidElement(p))d=!1,this.create({id:i,type:"default",message:p});else if(VT(p)&&!p.ok){d=!1;const g=typeof o.error=="function"?await o.error(`HTTP error! status: ${p.status}`):o.error,w=typeof o.description=="function"?await o.description(`HTTP error! status: ${p.status}`):o.description,T=typeof g=="object"&&!ne.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:w,...T})}else if(p instanceof Error){d=!1;const g=typeof o.error=="function"?await o.error(p):o.error,w=typeof o.description=="function"?await o.description(p):o.description,T=typeof g=="object"&&!ne.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:w,...T})}else if(o.success!==void 0){d=!1;const g=typeof o.success=="function"?await o.success(p):o.success,w=typeof o.description=="function"?await o.description(p):o.description,T=typeof g=="object"&&!ne.isValidElement(g)?g:{message:g};this.create({id:i,type:"success",description:w,...T})}}).catch(async p=>{if(m=["reject",p],o.error!==void 0){d=!1;const x=typeof o.error=="function"?await o.error(p):o.error,g=typeof o.description=="function"?await o.description(p):o.description,N=typeof x=="object"&&!ne.isValidElement(x)?x:{message:x};this.create({id:i,type:"error",description:g,...N})}}).finally(()=>{d&&(this.dismiss(i),i=void 0),o.finally==null||o.finally.call(o)}),y=()=>new Promise((p,x)=>h.then(()=>m[0]==="reject"?x(m[1]):p(m[1])).catch(x));return typeof i!="string"&&typeof i!="number"?{unwrap:y}:Object.assign(i,{unwrap:y})},this.custom=(l,o)=>{const i=(o==null?void 0:o.id)||af++;return this.create({jsx:l(i),id:i,...o}),i},this.getActiveToasts=()=>this.toasts.filter(l=>!this.dismissedToasts.has(l.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const It=new BT,HT=(n,l)=>{const o=(l==null?void 0:l.id)||af++;return It.addToast({title:n,...l,id:o}),o},VT=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",$T=HT,YT=()=>It.toasts,qT=()=>It.getActiveToasts(),Ge=Object.assign($T,{success:It.success,info:It.info,warning:It.warning,error:It.error,custom:It.custom,message:It.message,promise:It.promise,dismiss:It.dismiss,loading:It.loading},{getHistory:YT,getToasts:qT});RT("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function vs(n){return n.label!==void 0}const GT=3,PT="24px",XT="16px",Tv=4e3,KT=356,QT=14,ZT=45,IT=200;function $n(...n){return n.filter(Boolean).join(" ")}function FT(n){const[l,o]=n.split("-"),i=[];return l&&i.push(l),o&&i.push(o),i}const JT=n=>{var l,o,i,c,d,m,h,y,p;const{invert:x,toast:g,unstyled:w,interacting:N,setHeights:T,visibleToasts:E,heights:C,index:A,toasts:j,expanded:O,removeToast:z,defaultRichColors:B,closeButton:G,style:V,cancelButtonStyle:$,actionButtonStyle:ae,className:re="",descriptionClassName:me="",duration:fe,position:se,gap:ue,expandByDefault:oe,classNames:M,icons:Y,closeButtonAriaLabel:I="Close toast"}=n,[de,F]=ne.useState(null),[R,P]=ne.useState(null),[K,W]=ne.useState(!1),[te,ie]=ne.useState(!1),[ee,ce]=ne.useState(!1),[J,ve]=ne.useState(!1),[be,Se]=ne.useState(!1),[He,je]=ne.useState(0),[Ve,dt]=ne.useState(0),Pe=ne.useRef(g.duration||fe||Tv),Lt=ne.useRef(null),ht=ne.useRef(null),ol=A===0,il=A+1<=E,Tt=g.type,jn=g.dismissible!==!1,Ct=g.className||"",Ll=g.descriptionClassName||"",Mn=ne.useMemo(()=>C.findIndex(Te=>Te.toastId===g.id)||0,[C,g.id]),Ne=ne.useMemo(()=>{var Te;return(Te=g.closeButton)!=null?Te:G},[g.closeButton,G]),Xe=ne.useMemo(()=>g.duration||fe||Tv,[g.duration,fe]),We=ne.useRef(0),st=ne.useRef(0),On=ne.useRef(0),Dn=ne.useRef(null),[kn,Ut]=se.split("-"),xn=ne.useMemo(()=>C.reduce((Te,lt,wt)=>wt>=Mn?Te:Te+lt.height,0),[C,Mn]),Ot=UT(),mc=g.invert||x,Gr=Tt==="loading";st.current=ne.useMemo(()=>Mn*ue+xn,[Mn,xn]),ne.useEffect(()=>{Pe.current=Xe},[Xe]),ne.useEffect(()=>{W(!0)},[]),ne.useEffect(()=>{const Te=ht.current;if(Te){const lt=Te.getBoundingClientRect().height;return dt(lt),T(wt=>[{toastId:g.id,height:lt,position:g.position},...wt]),()=>T(wt=>wt.filter(Dt=>Dt.toastId!==g.id))}},[T,g.id]),ne.useLayoutEffect(()=>{if(!K)return;const Te=ht.current,lt=Te.style.height;Te.style.height="auto";const wt=Te.getBoundingClientRect().height;Te.style.height=lt,dt(wt),T(Dt=>Dt.find(it=>it.toastId===g.id)?Dt.map(it=>it.toastId===g.id?{...it,height:wt}:it):[{toastId:g.id,height:wt,position:g.position},...Dt])},[K,g.title,g.description,T,g.id,g.jsx,g.action,g.cancel]);const zn=ne.useCallback(()=>{ie(!0),je(st.current),T(Te=>Te.filter(lt=>lt.toastId!==g.id)),setTimeout(()=>{z(g)},IT)},[g,z,T,st]);ne.useEffect(()=>{if(g.promise&&Tt==="loading"||g.duration===1/0||g.type==="loading")return;let Te;return O||N||Ot?(()=>{if(On.current<We.current){const Dt=new Date().getTime()-We.current;Pe.current=Pe.current-Dt}On.current=new Date().getTime()})():(()=>{Pe.current!==1/0&&(We.current=new Date().getTime(),Te=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),zn()},Pe.current))})(),()=>clearTimeout(Te)},[O,N,g,Tt,Ot,zn]),ne.useEffect(()=>{g.delete&&(zn(),g.onDismiss==null||g.onDismiss.call(g,g))},[zn,g.delete]);function Ul(){var Te;if(Y!=null&&Y.loading){var lt;return ne.createElement("div",{className:$n(M==null?void 0:M.loader,g==null||(lt=g.classNames)==null?void 0:lt.loader,"sonner-loader"),"data-visible":Tt==="loading"},Y.loading)}return ne.createElement(MT,{className:$n(M==null?void 0:M.loader,g==null||(Te=g.classNames)==null?void 0:Te.loader),visible:Tt==="loading"})}const Bl=g.icon||(Y==null?void 0:Y[Tt])||_T(Tt);var sl,Ln;return ne.createElement("li",{tabIndex:0,ref:ht,className:$n(re,Ct,M==null?void 0:M.toast,g==null||(l=g.classNames)==null?void 0:l.toast,M==null?void 0:M.default,M==null?void 0:M[Tt],g==null||(o=g.classNames)==null?void 0:o[Tt]),"data-sonner-toast":"","data-rich-colors":(sl=g.richColors)!=null?sl:B,"data-styled":!(g.jsx||g.unstyled||w),"data-mounted":K,"data-promise":!!g.promise,"data-swiped":be,"data-removed":te,"data-visible":il,"data-y-position":kn,"data-x-position":Ut,"data-index":A,"data-front":ol,"data-swiping":ee,"data-dismissible":jn,"data-type":Tt,"data-invert":mc,"data-swipe-out":J,"data-swipe-direction":R,"data-expanded":!!(O||oe&&K),"data-testid":g.testId,style:{"--index":A,"--toasts-before":A,"--z-index":j.length-A,"--offset":`${te?He:st.current}px`,"--initial-height":oe?"auto":`${Ve}px`,...V,...g.style},onDragEnd:()=>{ce(!1),F(null),Dn.current=null},onPointerDown:Te=>{Te.button!==2&&(Gr||!jn||(Lt.current=new Date,je(st.current),Te.target.setPointerCapture(Te.pointerId),Te.target.tagName!=="BUTTON"&&(ce(!0),Dn.current={x:Te.clientX,y:Te.clientY})))},onPointerUp:()=>{var Te,lt,wt;if(J||!jn)return;Dn.current=null;const Dt=Number(((Te=ht.current)==null?void 0:Te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ea=Number(((lt=ht.current)==null?void 0:lt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),it=new Date().getTime()-((wt=Lt.current)==null?void 0:wt.getTime()),Ht=de==="x"?Dt:Ea,cl=Math.abs(Ht)/it;if(Math.abs(Ht)>=ZT||cl>.11){je(st.current),g.onDismiss==null||g.onDismiss.call(g,g),P(de==="x"?Dt>0?"right":"left":Ea>0?"down":"up"),zn(),ve(!0);return}else{var Vt,$t;(Vt=ht.current)==null||Vt.style.setProperty("--swipe-amount-x","0px"),($t=ht.current)==null||$t.style.setProperty("--swipe-amount-y","0px")}Se(!1),ce(!1),F(null)},onPointerMove:Te=>{var lt,wt,Dt;if(!Dn.current||!jn||((lt=window.getSelection())==null?void 0:lt.toString().length)>0)return;const it=Te.clientY-Dn.current.y,Ht=Te.clientX-Dn.current.x;var cl;const Vt=(cl=n.swipeDirections)!=null?cl:FT(se);!de&&(Math.abs(Ht)>1||Math.abs(it)>1)&&F(Math.abs(Ht)>Math.abs(it)?"x":"y");let $t={x:0,y:0};const Hl=Sn=>1/(1.5+Math.abs(Sn)/20);if(de==="y"){if(Vt.includes("top")||Vt.includes("bottom"))if(Vt.includes("top")&&it<0||Vt.includes("bottom")&&it>0)$t.y=it;else{const Sn=it*Hl(it);$t.y=Math.abs(Sn)<Math.abs(it)?Sn:it}}else if(de==="x"&&(Vt.includes("left")||Vt.includes("right")))if(Vt.includes("left")&&Ht<0||Vt.includes("right")&&Ht>0)$t.x=Ht;else{const Sn=Ht*Hl(Ht);$t.x=Math.abs(Sn)<Math.abs(Ht)?Sn:Ht}(Math.abs($t.x)>0||Math.abs($t.y)>0)&&Se(!0),(wt=ht.current)==null||wt.style.setProperty("--swipe-amount-x",`${$t.x}px`),(Dt=ht.current)==null||Dt.style.setProperty("--swipe-amount-y",`${$t.y}px`)}},Ne&&!g.jsx&&Tt!=="loading"?ne.createElement("button",{"aria-label":I,"data-disabled":Gr,"data-close-button":!0,onClick:Gr||!jn?()=>{}:()=>{zn(),g.onDismiss==null||g.onDismiss.call(g,g)},className:$n(M==null?void 0:M.closeButton,g==null||(i=g.classNames)==null?void 0:i.closeButton)},(Ln=Y==null?void 0:Y.close)!=null?Ln:LT):null,(Tt||g.icon||g.promise)&&g.icon!==null&&((Y==null?void 0:Y[Tt])!==null||g.icon)?ne.createElement("div",{"data-icon":"",className:$n(M==null?void 0:M.icon,g==null||(c=g.classNames)==null?void 0:c.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||Ul():null,g.type!=="loading"?Bl:null):null,ne.createElement("div",{"data-content":"",className:$n(M==null?void 0:M.content,g==null||(d=g.classNames)==null?void 0:d.content)},ne.createElement("div",{"data-title":"",className:$n(M==null?void 0:M.title,g==null||(m=g.classNames)==null?void 0:m.title)},g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title),g.description?ne.createElement("div",{"data-description":"",className:$n(me,Ll,M==null?void 0:M.description,g==null||(h=g.classNames)==null?void 0:h.description)},typeof g.description=="function"?g.description():g.description):null),ne.isValidElement(g.cancel)?g.cancel:g.cancel&&vs(g.cancel)?ne.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||$,onClick:Te=>{vs(g.cancel)&&jn&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,Te),zn())},className:$n(M==null?void 0:M.cancelButton,g==null||(y=g.classNames)==null?void 0:y.cancelButton)},g.cancel.label):null,ne.isValidElement(g.action)?g.action:g.action&&vs(g.action)?ne.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||ae,onClick:Te=>{vs(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,Te),!Te.defaultPrevented&&zn())},className:$n(M==null?void 0:M.actionButton,g==null||(p=g.classNames)==null?void 0:p.actionButton)},g.action.label):null)};function Cv(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function WT(n,l){const o={};return[n,l].forEach((i,c)=>{const d=c===1,m=d?"--mobile-offset":"--offset",h=d?XT:PT;function y(p){["top","right","bottom","left"].forEach(x=>{o[`${m}-${x}`]=typeof p=="number"?`${p}px`:p})}typeof i=="number"||typeof i=="string"?y(i):typeof i=="object"?["top","right","bottom","left"].forEach(p=>{i[p]===void 0?o[`${m}-${p}`]=h:o[`${m}-${p}`]=typeof i[p]=="number"?`${i[p]}px`:i[p]}):y(h)}),o}const eC=ne.forwardRef(function(l,o){const{id:i,invert:c,position:d="bottom-right",hotkey:m=["altKey","KeyT"],expand:h,closeButton:y,className:p,offset:x,mobileOffset:g,theme:w="light",richColors:N,duration:T,style:E,visibleToasts:C=GT,toastOptions:A,dir:j=Cv(),gap:O=QT,icons:z,containerAriaLabel:B="Notifications"}=l,[G,V]=ne.useState([]),$=ne.useMemo(()=>i?G.filter(K=>K.toasterId===i):G.filter(K=>!K.toasterId),[G,i]),ae=ne.useMemo(()=>Array.from(new Set([d].concat($.filter(K=>K.position).map(K=>K.position)))),[$,d]),[re,me]=ne.useState([]),[fe,se]=ne.useState(!1),[ue,oe]=ne.useState(!1),[M,Y]=ne.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),I=ne.useRef(null),de=m.join("+").replace(/Key/g,"").replace(/Digit/g,""),F=ne.useRef(null),R=ne.useRef(!1),P=ne.useCallback(K=>{V(W=>{var te;return(te=W.find(ie=>ie.id===K.id))!=null&&te.delete||It.dismiss(K.id),W.filter(({id:ie})=>ie!==K.id)})},[]);return ne.useEffect(()=>It.subscribe(K=>{if(K.dismiss){requestAnimationFrame(()=>{V(W=>W.map(te=>te.id===K.id?{...te,delete:!0}:te))});return}setTimeout(()=>{M0.flushSync(()=>{V(W=>{const te=W.findIndex(ie=>ie.id===K.id);return te!==-1?[...W.slice(0,te),{...W[te],...K},...W.slice(te+1)]:[K,...W]})})})}),[G]),ne.useEffect(()=>{if(w!=="system"){Y(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Y("dark"):Y("light")),typeof window>"u")return;const K=window.matchMedia("(prefers-color-scheme: dark)");try{K.addEventListener("change",({matches:W})=>{Y(W?"dark":"light")})}catch{K.addListener(({matches:te})=>{try{Y(te?"dark":"light")}catch(ie){console.error(ie)}})}},[w]),ne.useEffect(()=>{G.length<=1&&se(!1)},[G]),ne.useEffect(()=>{const K=W=>{var te;if(m.every(ce=>W[ce]||W.code===ce)){var ee;se(!0),(ee=I.current)==null||ee.focus()}W.code==="Escape"&&(document.activeElement===I.current||(te=I.current)!=null&&te.contains(document.activeElement))&&se(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[m]),ne.useEffect(()=>{if(I.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,R.current=!1)}},[I.current]),ne.createElement("section",{ref:o,"aria-label":`${B} ${de}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ae.map((K,W)=>{var te;const[ie,ee]=K.split("-");return $.length?ne.createElement("ol",{key:K,dir:j==="auto"?Cv():j,tabIndex:-1,ref:I,className:p,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":ie,"data-x-position":ee,style:{"--front-toast-height":`${((te=re[0])==null?void 0:te.height)||0}px`,"--width":`${KT}px`,"--gap":`${O}px`,...E,...WT(x,g)},onBlur:ce=>{R.current&&!ce.currentTarget.contains(ce.relatedTarget)&&(R.current=!1,F.current&&(F.current.focus({preventScroll:!0}),F.current=null))},onFocus:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||R.current||(R.current=!0,F.current=ce.relatedTarget)},onMouseEnter:()=>se(!0),onMouseMove:()=>se(!0),onMouseLeave:()=>{ue||se(!1)},onDragEnd:()=>se(!1),onPointerDown:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||oe(!0)},onPointerUp:()=>oe(!1)},$.filter(ce=>!ce.position&&W===0||ce.position===K).map((ce,J)=>{var ve,be;return ne.createElement(JT,{key:ce.id,icons:z,index:J,toast:ce,defaultRichColors:N,duration:(ve=A==null?void 0:A.duration)!=null?ve:T,className:A==null?void 0:A.className,descriptionClassName:A==null?void 0:A.descriptionClassName,invert:c,visibleToasts:C,closeButton:(be=A==null?void 0:A.closeButton)!=null?be:y,interacting:ue,position:K,style:A==null?void 0:A.style,unstyled:A==null?void 0:A.unstyled,classNames:A==null?void 0:A.classNames,cancelButtonStyle:A==null?void 0:A.cancelButtonStyle,actionButtonStyle:A==null?void 0:A.actionButtonStyle,closeButtonAriaLabel:A==null?void 0:A.closeButtonAriaLabel,removeToast:P,toasts:$.filter(Se=>Se.position==ce.position),heights:re.filter(Se=>Se.position==ce.position),setHeights:me,expandByDefault:h,gap:O,expanded:fe,swipeDirections:l.swipeDirections})})):null}))}),Av=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,Rv=G0,ry=(n,l)=>o=>{var i;if((l==null?void 0:l.variants)==null)return Rv(n,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:c,defaultVariants:d}=l,m=Object.keys(c).map(p=>{const x=o==null?void 0:o[p],g=d==null?void 0:d[p];if(x===null)return null;const w=Av(x)||Av(g);return c[p][w]}),h=o&&Object.entries(o).reduce((p,x)=>{let[g,w]=x;return w===void 0||(p[g]=w),p},{}),y=l==null||(i=l.compoundVariants)===null||i===void 0?void 0:i.reduce((p,x)=>{let{class:g,className:w,...N}=x;return Object.entries(N).every(T=>{let[E,C]=T;return Array.isArray(C)?C.includes({...d,...h}[E]):{...d,...h}[E]===C})?[...p,g,w]:p},[]);return Rv(n,m,y,o==null?void 0:o.class,o==null?void 0:o.className)},tC=ry("inline-flex items-center rounded-sm 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 hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function St({className:n,variant:l,...o}){return f.jsx("div",{className:le(tC({variant:l}),n),...o})}const Yn=v.forwardRef(({className:n,...l},o)=>f.jsx("div",{ref:o,className:le("rounded-lg border bg-card text-card-foreground shadow-sm",n),...l}));Yn.displayName="Card";const qn=v.forwardRef(({className:n,...l},o)=>f.jsx("div",{ref:o,className:le("flex flex-col space-y-1.5 p-6",n),...l}));qn.displayName="CardHeader";const Gn=v.forwardRef(({className:n,...l},o)=>f.jsx("div",{ref:o,className:le("text-2xl font-semibold leading-none tracking-tight",n),...l}));Gn.displayName="CardTitle";const Pn=v.forwardRef(({className:n,...l},o)=>f.jsx("div",{ref:o,className:le("text-sm text-muted-foreground",n),...l}));Pn.displayName="CardDescription";const Xn=v.forwardRef(({className:n,...l},o)=>f.jsx("div",{ref:o,className:le("p-6 pt-0",n),...l}));Xn.displayName="CardContent";const nC=v.forwardRef(({className:n,...l},o)=>f.jsx("div",{ref:o,className:le("flex items-center p-6 pt-0",n),...l}));nC.displayName="CardFooter";function _v(n,l){if(typeof n=="function")return n(l);n!=null&&(n.current=l)}function _f(...n){return l=>{let o=!1;const i=n.map(c=>{const d=_v(c,l);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let c=0;c<i.length;c++){const d=i[c];typeof d=="function"?d():_v(n[c],null)}}}}function tt(...n){return v.useCallback(_f(...n),n)}var aC=Symbol.for("react.lazy"),Ls=xf[" use ".trim().toString()];function lC(n){return typeof n=="object"&&n!==null&&"then"in n}function oy(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===aC&&"_payload"in n&&lC(n._payload)}function rC(n){const l=iC(n),o=v.forwardRef((i,c)=>{let{children:d,...m}=i;oy(d)&&typeof Ls=="function"&&(d=Ls(d._payload));const h=v.Children.toArray(d),y=h.find(cC);if(y){const p=y.props.children,x=h.map(g=>g===y?v.Children.count(p)>1?v.Children.only(null):v.isValidElement(p)?p.props.children:null:g);return f.jsx(l,{...m,ref:c,children:v.isValidElement(p)?v.cloneElement(p,void 0,x):null})}return f.jsx(l,{...m,ref:c,children:d})});return o.displayName=`${n}.Slot`,o}var oC=rC("Slot");function iC(n){const l=v.forwardRef((o,i)=>{let{children:c,...d}=o;if(oy(c)&&typeof Ls=="function"&&(c=Ls(c._payload)),v.isValidElement(c)){const m=dC(c),h=uC(d,c.props);return c.type!==v.Fragment&&(h.ref=i?_f(i,m):m),v.cloneElement(c,h)}return v.Children.count(c)>1?v.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var sC=Symbol("radix.slottable");function cC(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===sC}function uC(n,l){const o={...l};for(const i in l){const c=n[i],d=l[i];/^on[A-Z]/.test(i)?c&&d?o[i]=(...h)=>{const y=d(...h);return c(...h),y}:c&&(o[i]=c):i==="style"?o[i]={...c,...d}:i==="className"&&(o[i]=[c,d].filter(Boolean).join(" "))}return{...n,...o}}function dC(n){var i,c;let l=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?n.ref:(l=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}const jf=ry("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-sm text-sm font-semibold transition-all duration-200 ease-out hover:-translate-y-px focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 active:translate-y-0 active:scale-[0.985] disabled:pointer-events-none disabled:translate-y-0 disabled:scale-100 disabled:opacity-50 disabled:shadow-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"border border-primary/15 bg-primary text-primary-foreground shadow-[0_14px_34px_-20px_hsl(var(--primary)/0.9)] hover:bg-primary/90 hover:shadow-[0_18px_42px_-22px_hsl(var(--primary)/0.95)]",destructive:"border border-destructive/15 bg-destructive text-destructive-foreground shadow-[0_14px_34px_-20px_hsl(var(--destructive)/0.8)] hover:bg-destructive/90",outline:"border border-input/80 bg-background/72 shadow-sm backdrop-blur hover:border-primary/35 hover:bg-accent/70 hover:text-accent-foreground",secondary:"border border-transparent bg-secondary/88 text-secondary-foreground shadow-sm hover:bg-secondary",ghost:"hover:bg-accent/72 hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-sm px-3",lg:"h-11 rounded-lg px-8",icon:"h-10 w-10 rounded-sm"}},defaultVariants:{variant:"default",size:"default"}}),yn=v.forwardRef(({className:n,variant:l,size:o,asChild:i=!1,...c},d)=>{const m=i?oC:"button";return f.jsx(m,{className:le(jf({variant:l,size:o,className:n})),ref:d,...c})});yn.displayName="Button";function De(n,l,{checkForDefaultPrevented:o=!0}={}){return function(c){if(n==null||n(c),o===!1||!c.defaultPrevented)return l==null?void 0:l(c)}}function fC(n,l){const o=v.createContext(l),i=d=>{const{children:m,...h}=d,y=v.useMemo(()=>h,Object.values(h));return f.jsx(o.Provider,{value:y,children:m})};i.displayName=n+"Provider";function c(d){const m=v.useContext(o);if(m)return m;if(l!==void 0)return l;throw new Error(`\`${d}\` must be used within \`${n}\``)}return[i,c]}function al(n,l=[]){let o=[];function i(d,m){const h=v.createContext(m),y=o.length;o=[...o,m];const p=g=>{var A;const{scope:w,children:N,...T}=g,E=((A=w==null?void 0:w[n])==null?void 0:A[y])||h,C=v.useMemo(()=>T,Object.values(T));return f.jsx(E.Provider,{value:C,children:N})};p.displayName=d+"Provider";function x(g,w){var E;const N=((E=w==null?void 0:w[n])==null?void 0:E[y])||h,T=v.useContext(N);if(T)return T;if(m!==void 0)return m;throw new Error(`\`${g}\` must be used within \`${d}\``)}return[p,x]}const c=()=>{const d=o.map(m=>v.createContext(m));return function(h){const y=(h==null?void 0:h[n])||d;return v.useMemo(()=>({[`__scope${n}`]:{...h,[n]:y}}),[h,y])}};return c.scopeName=n,[i,mC(c,...l)]}function mC(...n){const l=n[0];if(n.length===1)return l;const o=()=>{const i=n.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(d){const m=i.reduce((h,{useScope:y,scopeName:p})=>{const g=y(d)[`__scope${p}`];return{...h,...g}},{});return v.useMemo(()=>({[`__scope${l.scopeName}`]:m}),[m])}};return o.scopeName=l.scopeName,o}var zt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},hC=xf[" useId ".trim().toString()]||(()=>{}),pC=0;function Fa(n){const[l,o]=v.useState(hC());return zt(()=>{o(i=>i??String(pC++))},[n]),l?`radix-${l}`:""}var gC=xf[" useInsertionEffect ".trim().toString()]||zt;function kr({prop:n,defaultProp:l,onChange:o=()=>{},caller:i}){const[c,d,m]=vC({defaultProp:l,onChange:o}),h=n!==void 0,y=h?n:c;{const x=v.useRef(n!==void 0);v.useEffect(()=>{const g=x.current;g!==h&&console.warn(`${i} is changing from ${g?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=h},[h,i])}const p=v.useCallback(x=>{var g;if(h){const w=yC(x)?x(n):x;w!==n&&((g=m.current)==null||g.call(m,w))}else d(x)},[h,n,d,m]);return[y,p]}function vC({defaultProp:n,onChange:l}){const[o,i]=v.useState(n),c=v.useRef(o),d=v.useRef(l);return gC(()=>{d.current=l},[l]),v.useEffect(()=>{var m;c.current!==o&&((m=d.current)==null||m.call(d,o),c.current=o)},[o,c]),[o,i,d]}function yC(n){return typeof n=="function"}function Qo(n){const l=bC(n),o=v.forwardRef((i,c)=>{const{children:d,...m}=i,h=v.Children.toArray(d),y=h.find(SC);if(y){const p=y.props.children,x=h.map(g=>g===y?v.Children.count(p)>1?v.Children.only(null):v.isValidElement(p)?p.props.children:null:g);return f.jsx(l,{...m,ref:c,children:v.isValidElement(p)?v.cloneElement(p,void 0,x):null})}return f.jsx(l,{...m,ref:c,children:d})});return o.displayName=`${n}.Slot`,o}function bC(n){const l=v.forwardRef((o,i)=>{const{children:c,...d}=o;if(v.isValidElement(c)){const m=EC(c),h=wC(d,c.props);return c.type!==v.Fragment&&(h.ref=i?_f(i,m):m),v.cloneElement(c,h)}return v.Children.count(c)>1?v.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var iy=Symbol("radix.slottable");function xC(n){const l=({children:o})=>f.jsx(f.Fragment,{children:o});return l.displayName=`${n}.Slottable`,l.__radixId=iy,l}function SC(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===iy}function wC(n,l){const o={...l};for(const i in l){const c=n[i],d=l[i];/^on[A-Z]/.test(i)?c&&d?o[i]=(...h)=>{const y=d(...h);return c(...h),y}:c&&(o[i]=c):i==="style"?o[i]={...c,...d}:i==="className"&&(o[i]=[c,d].filter(Boolean).join(" "))}return{...n,...o}}function EC(n){var i,c;let l=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?n.ref:(l=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var NC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=NC.reduce((n,l)=>{const o=Qo(`Primitive.${l}`),i=v.forwardRef((c,d)=>{const{asChild:m,...h}=c,y=m?o:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(y,{...h,ref:d})});return i.displayName=`Primitive.${l}`,{...n,[l]:i}},{});function TC(n,l){n&&Jo.flushSync(()=>n.dispatchEvent(l))}function Wa(n){const l=v.useRef(n);return v.useEffect(()=>{l.current=n}),v.useMemo(()=>(...o)=>{var i;return(i=l.current)==null?void 0:i.call(l,...o)},[])}function CC(n,l=globalThis==null?void 0:globalThis.document){const o=Wa(n);v.useEffect(()=>{const i=c=>{c.key==="Escape"&&o(c)};return l.addEventListener("keydown",i,{capture:!0}),()=>l.removeEventListener("keydown",i,{capture:!0})},[o,l])}var AC="DismissableLayer",lf="dismissableLayer.update",RC="dismissableLayer.pointerDownOutside",_C="dismissableLayer.focusOutside",jv,sy=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Mf=v.forwardRef((n,l)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:m,onDismiss:h,...y}=n,p=v.useContext(sy),[x,g]=v.useState(null),w=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=v.useState({}),T=tt(l,V=>g(V)),E=Array.from(p.layers),[C]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),A=E.indexOf(C),j=x?E.indexOf(x):-1,O=p.layersWithOutsidePointerEventsDisabled.size>0,z=j>=A,B=OC(V=>{const $=V.target,ae=[...p.branches].some(re=>re.contains($));!z||ae||(c==null||c(V),m==null||m(V),V.defaultPrevented||h==null||h())},w),G=DC(V=>{const $=V.target;[...p.branches].some(re=>re.contains($))||(d==null||d(V),m==null||m(V),V.defaultPrevented||h==null||h())},w);return CC(V=>{j===p.layers.size-1&&(i==null||i(V),!V.defaultPrevented&&h&&(V.preventDefault(),h()))},w),v.useEffect(()=>{if(x)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(jv=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(x)),p.layers.add(x),Mv(),()=>{o&&p.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=jv)}},[x,w,o,p]),v.useEffect(()=>()=>{x&&(p.layers.delete(x),p.layersWithOutsidePointerEventsDisabled.delete(x),Mv())},[x,p]),v.useEffect(()=>{const V=()=>N({});return document.addEventListener(lf,V),()=>document.removeEventListener(lf,V)},[]),f.jsx(Ue.div,{...y,ref:T,style:{pointerEvents:O?z?"auto":"none":void 0,...n.style},onFocusCapture:De(n.onFocusCapture,G.onFocusCapture),onBlurCapture:De(n.onBlurCapture,G.onBlurCapture),onPointerDownCapture:De(n.onPointerDownCapture,B.onPointerDownCapture)})});Mf.displayName=AC;var jC="DismissableLayerBranch",MC=v.forwardRef((n,l)=>{const o=v.useContext(sy),i=v.useRef(null),c=tt(l,i);return v.useEffect(()=>{const d=i.current;if(d)return o.branches.add(d),()=>{o.branches.delete(d)}},[o.branches]),f.jsx(Ue.div,{...n,ref:c})});MC.displayName=jC;function OC(n,l=globalThis==null?void 0:globalThis.document){const o=Wa(n),i=v.useRef(!1),c=v.useRef(()=>{});return v.useEffect(()=>{const d=h=>{if(h.target&&!i.current){let y=function(){cy(RC,o,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(l.removeEventListener("click",c.current),c.current=y,l.addEventListener("click",c.current,{once:!0})):y()}else l.removeEventListener("click",c.current);i.current=!1},m=window.setTimeout(()=>{l.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(m),l.removeEventListener("pointerdown",d),l.removeEventListener("click",c.current)}},[l,o]),{onPointerDownCapture:()=>i.current=!0}}function DC(n,l=globalThis==null?void 0:globalThis.document){const o=Wa(n),i=v.useRef(!1);return v.useEffect(()=>{const c=d=>{d.target&&!i.current&&cy(_C,o,{originalEvent:d},{discrete:!1})};return l.addEventListener("focusin",c),()=>l.removeEventListener("focusin",c)},[l,o]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Mv(){const n=new CustomEvent(lf);document.dispatchEvent(n)}function cy(n,l,o,{discrete:i}){const c=o.originalEvent.target,d=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:o});l&&c.addEventListener(n,l,{once:!0}),i?TC(c,d):c.dispatchEvent(d)}var zd="focusScope.autoFocusOnMount",Ld="focusScope.autoFocusOnUnmount",Ov={bubbles:!1,cancelable:!0},kC="FocusScope",Of=v.forwardRef((n,l)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:c,onUnmountAutoFocus:d,...m}=n,[h,y]=v.useState(null),p=Wa(c),x=Wa(d),g=v.useRef(null),w=tt(l,E=>y(E)),N=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let E=function(O){if(N.paused||!h)return;const z=O.target;h.contains(z)?g.current=z:Ia(g.current,{select:!0})},C=function(O){if(N.paused||!h)return;const z=O.relatedTarget;z!==null&&(h.contains(z)||Ia(g.current,{select:!0}))},A=function(O){if(document.activeElement===document.body)for(const B of O)B.removedNodes.length>0&&Ia(h)};document.addEventListener("focusin",E),document.addEventListener("focusout",C);const j=new MutationObserver(A);return h&&j.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",C),j.disconnect()}}},[i,h,N.paused]),v.useEffect(()=>{if(h){kv.add(N);const E=document.activeElement;if(!h.contains(E)){const A=new CustomEvent(zd,Ov);h.addEventListener(zd,p),h.dispatchEvent(A),A.defaultPrevented||(zC(VC(uy(h)),{select:!0}),document.activeElement===E&&Ia(h))}return()=>{h.removeEventListener(zd,p),setTimeout(()=>{const A=new CustomEvent(Ld,Ov);h.addEventListener(Ld,x),h.dispatchEvent(A),A.defaultPrevented||Ia(E??document.body,{select:!0}),h.removeEventListener(Ld,x),kv.remove(N)},0)}}},[h,p,x,N]);const T=v.useCallback(E=>{if(!o&&!i||N.paused)return;const C=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,A=document.activeElement;if(C&&A){const j=E.currentTarget,[O,z]=LC(j);O&&z?!E.shiftKey&&A===z?(E.preventDefault(),o&&Ia(O,{select:!0})):E.shiftKey&&A===O&&(E.preventDefault(),o&&Ia(z,{select:!0})):A===j&&E.preventDefault()}},[o,i,N.paused]);return f.jsx(Ue.div,{tabIndex:-1,...m,ref:w,onKeyDown:T})});Of.displayName=kC;function zC(n,{select:l=!1}={}){const o=document.activeElement;for(const i of n)if(Ia(i,{select:l}),document.activeElement!==o)return}function LC(n){const l=uy(n),o=Dv(l,n),i=Dv(l.reverse(),n);return[o,i]}function uy(n){const l=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const c=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||c?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)l.push(o.currentNode);return l}function Dv(n,l){for(const o of n)if(!UC(o,{upTo:l}))return o}function UC(n,{upTo:l}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(l!==void 0&&n===l)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function BC(n){return n instanceof HTMLInputElement&&"select"in n}function Ia(n,{select:l=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&BC(n)&&l&&n.select()}}var kv=HC();function HC(){let n=[];return{add(l){const o=n[0];l!==o&&(o==null||o.pause()),n=zv(n,l),n.unshift(l)},remove(l){var o;n=zv(n,l),(o=n[0])==null||o.resume()}}}function zv(n,l){const o=[...n],i=o.indexOf(l);return i!==-1&&o.splice(i,1),o}function VC(n){return n.filter(l=>l.tagName!=="A")}var $C="Portal",Df=v.forwardRef((n,l)=>{var h;const{container:o,...i}=n,[c,d]=v.useState(!1);zt(()=>d(!0),[]);const m=o||c&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return m?M0.createPortal(f.jsx(Ue.div,{...i,ref:l}),m):null});Df.displayName=$C;function YC(n,l){return v.useReducer((o,i)=>l[o][i]??o,n)}var Vr=n=>{const{present:l,children:o}=n,i=qC(l),c=typeof o=="function"?o({present:i.isPresent}):v.Children.only(o),d=tt(i.ref,GC(c));return typeof o=="function"||i.isPresent?v.cloneElement(c,{ref:d}):null};Vr.displayName="Presence";function qC(n){const[l,o]=v.useState(),i=v.useRef(null),c=v.useRef(n),d=v.useRef("none"),m=n?"mounted":"unmounted",[h,y]=YC(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const p=ys(i.current);d.current=h==="mounted"?p:"none"},[h]),zt(()=>{const p=i.current,x=c.current;if(x!==n){const w=d.current,N=ys(p);n?y("MOUNT"):N==="none"||(p==null?void 0:p.display)==="none"?y("UNMOUNT"):y(x&&w!==N?"ANIMATION_OUT":"UNMOUNT"),c.current=n}},[n,y]),zt(()=>{if(l){let p;const x=l.ownerDocument.defaultView??window,g=N=>{const E=ys(i.current).includes(CSS.escape(N.animationName));if(N.target===l&&E&&(y("ANIMATION_END"),!c.current)){const C=l.style.animationFillMode;l.style.animationFillMode="forwards",p=x.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=C)})}},w=N=>{N.target===l&&(d.current=ys(i.current))};return l.addEventListener("animationstart",w),l.addEventListener("animationcancel",g),l.addEventListener("animationend",g),()=>{x.clearTimeout(p),l.removeEventListener("animationstart",w),l.removeEventListener("animationcancel",g),l.removeEventListener("animationend",g)}}else y("ANIMATION_END")},[l,y]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:v.useCallback(p=>{i.current=p?getComputedStyle(p):null,o(p)},[])}}function ys(n){return(n==null?void 0:n.animationName)||"none"}function GC(n){var i,c;let l=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?n.ref:(l=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var Ud=0;function dy(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Lv()),document.body.insertAdjacentElement("beforeend",n[1]??Lv()),Ud++,()=>{Ud===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),Ud--}},[])}function Lv(){const n=document.createElement("span");return n.setAttribute("data-radix-focus-guard",""),n.tabIndex=0,n.style.outline="none",n.style.opacity="0",n.style.position="fixed",n.style.pointerEvents="none",n}var Kn=function(){return Kn=Object.assign||function(l){for(var o,i=1,c=arguments.length;i<c;i++){o=arguments[i];for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(l[d]=o[d])}return l},Kn.apply(this,arguments)};function fy(n,l){var o={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&l.indexOf(i)<0&&(o[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,i=Object.getOwnPropertySymbols(n);c<i.length;c++)l.indexOf(i[c])<0&&Object.prototype.propertyIsEnumerable.call(n,i[c])&&(o[i[c]]=n[i[c]]);return o}function PC(n,l,o){if(o||arguments.length===2)for(var i=0,c=l.length,d;i<c;i++)(d||!(i in l))&&(d||(d=Array.prototype.slice.call(l,0,i)),d[i]=l[i]);return n.concat(d||Array.prototype.slice.call(l))}var As="right-scroll-bar-position",Rs="width-before-scroll-bar",XC="with-scroll-bars-hidden",KC="--removed-body-scroll-bar-size";function Bd(n,l){return typeof n=="function"?n(l):n&&(n.current=l),n}function QC(n,l){var o=v.useState(function(){return{value:n,callback:l,facade:{get current(){return o.value},set current(i){var c=o.value;c!==i&&(o.value=i,o.callback(i,c))}}}})[0];return o.callback=l,o.facade}var ZC=typeof window<"u"?v.useLayoutEffect:v.useEffect,Uv=new WeakMap;function IC(n,l){var o=QC(null,function(i){return n.forEach(function(c){return Bd(c,i)})});return ZC(function(){var i=Uv.get(o);if(i){var c=new Set(i),d=new Set(n),m=o.current;c.forEach(function(h){d.has(h)||Bd(h,null)}),d.forEach(function(h){c.has(h)||Bd(h,m)})}Uv.set(o,n)},[n]),o}function FC(n){return n}function JC(n,l){l===void 0&&(l=FC);var o=[],i=!1,c={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:n},useMedium:function(d){var m=l(d,i);return o.push(m),function(){o=o.filter(function(h){return h!==m})}},assignSyncMedium:function(d){for(i=!0;o.length;){var m=o;o=[],m.forEach(d)}o={push:function(h){return d(h)},filter:function(){return o}}},assignMedium:function(d){i=!0;var m=[];if(o.length){var h=o;o=[],h.forEach(d),m=o}var y=function(){var x=m;m=[],x.forEach(d)},p=function(){return Promise.resolve().then(y)};p(),o={push:function(x){m.push(x),p()},filter:function(x){return m=m.filter(x),o}}}};return c}function WC(n){n===void 0&&(n={});var l=JC(null);return l.options=Kn({async:!0,ssr:!1},n),l}var my=function(n){var l=n.sideCar,o=fy(n,["sideCar"]);if(!l)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=l.read();if(!i)throw new Error("Sidecar medium not found");return v.createElement(i,Kn({},o))};my.isSideCarExport=!0;function e5(n,l){return n.useMedium(l),my}var hy=WC(),Hd=function(){},tc=v.forwardRef(function(n,l){var o=v.useRef(null),i=v.useState({onScrollCapture:Hd,onWheelCapture:Hd,onTouchMoveCapture:Hd}),c=i[0],d=i[1],m=n.forwardProps,h=n.children,y=n.className,p=n.removeScrollBar,x=n.enabled,g=n.shards,w=n.sideCar,N=n.noRelative,T=n.noIsolation,E=n.inert,C=n.allowPinchZoom,A=n.as,j=A===void 0?"div":A,O=n.gapMode,z=fy(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),B=w,G=IC([o,l]),V=Kn(Kn({},z),c);return v.createElement(v.Fragment,null,x&&v.createElement(B,{sideCar:hy,removeScrollBar:p,shards:g,noRelative:N,noIsolation:T,inert:E,setCallbacks:d,allowPinchZoom:!!C,lockRef:o,gapMode:O}),m?v.cloneElement(v.Children.only(h),Kn(Kn({},V),{ref:G})):v.createElement(j,Kn({},V,{className:y,ref:G}),h))});tc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};tc.classNames={fullWidth:Rs,zeroRight:As};var t5=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function n5(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var l=t5();return l&&n.setAttribute("nonce",l),n}function a5(n,l){n.styleSheet?n.styleSheet.cssText=l:n.appendChild(document.createTextNode(l))}function l5(n){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(n)}var r5=function(){var n=0,l=null;return{add:function(o){n==0&&(l=n5())&&(a5(l,o),l5(l)),n++},remove:function(){n--,!n&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},o5=function(){var n=r5();return function(l,o){v.useEffect(function(){return n.add(l),function(){n.remove()}},[l&&o])}},py=function(){var n=o5(),l=function(o){var i=o.styles,c=o.dynamic;return n(i,c),null};return l},i5={left:0,top:0,right:0,gap:0},Vd=function(n){return parseInt(n||"",10)||0},s5=function(n){var l=window.getComputedStyle(document.body),o=l[n==="padding"?"paddingLeft":"marginLeft"],i=l[n==="padding"?"paddingTop":"marginTop"],c=l[n==="padding"?"paddingRight":"marginRight"];return[Vd(o),Vd(i),Vd(c)]},c5=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return i5;var l=s5(n),o=document.documentElement.clientWidth,i=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,i-o+l[2]-l[0])}},u5=py(),Mr="data-scroll-locked",d5=function(n,l,o,i){var c=n.left,d=n.top,m=n.right,h=n.gap;return o===void 0&&(o="margin"),`
267
+ .`.concat(XC,` {
268
+ overflow: hidden `).concat(i,`;
269
+ padding-right: `).concat(h,"px ").concat(i,`;
270
+ }
271
+ body[`).concat(Mr,`] {
272
+ overflow: hidden `).concat(i,`;
273
+ overscroll-behavior: contain;
274
+ `).concat([l&&"position: relative ".concat(i,";"),o==="margin"&&`
275
+ padding-left: `.concat(c,`px;
276
+ padding-top: `).concat(d,`px;
277
+ padding-right: `).concat(m,`px;
278
+ margin-left:0;
279
+ margin-top:0;
280
+ margin-right: `).concat(h,"px ").concat(i,`;
281
+ `),o==="padding"&&"padding-right: ".concat(h,"px ").concat(i,";")].filter(Boolean).join(""),`
282
+ }
283
+
284
+ .`).concat(As,` {
285
+ right: `).concat(h,"px ").concat(i,`;
286
+ }
287
+
288
+ .`).concat(Rs,` {
289
+ margin-right: `).concat(h,"px ").concat(i,`;
290
+ }
291
+
292
+ .`).concat(As," .").concat(As,` {
293
+ right: 0 `).concat(i,`;
294
+ }
295
+
296
+ .`).concat(Rs," .").concat(Rs,` {
297
+ margin-right: 0 `).concat(i,`;
298
+ }
299
+
300
+ body[`).concat(Mr,`] {
301
+ `).concat(KC,": ").concat(h,`px;
302
+ }
303
+ `)},Bv=function(){var n=parseInt(document.body.getAttribute(Mr)||"0",10);return isFinite(n)?n:0},f5=function(){v.useEffect(function(){return document.body.setAttribute(Mr,(Bv()+1).toString()),function(){var n=Bv()-1;n<=0?document.body.removeAttribute(Mr):document.body.setAttribute(Mr,n.toString())}},[])},m5=function(n){var l=n.noRelative,o=n.noImportant,i=n.gapMode,c=i===void 0?"margin":i;f5();var d=v.useMemo(function(){return c5(c)},[c]);return v.createElement(u5,{styles:d5(d,!l,c,o?"":"!important")})},rf=!1;if(typeof window<"u")try{var bs=Object.defineProperty({},"passive",{get:function(){return rf=!0,!0}});window.addEventListener("test",bs,bs),window.removeEventListener("test",bs,bs)}catch{rf=!1}var Nr=rf?{passive:!1}:!1,h5=function(n){return n.tagName==="TEXTAREA"},gy=function(n,l){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[l]!=="hidden"&&!(o.overflowY===o.overflowX&&!h5(n)&&o[l]==="visible")},p5=function(n){return gy(n,"overflowY")},g5=function(n){return gy(n,"overflowX")},Hv=function(n,l){var o=l.ownerDocument,i=l;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var c=vy(n,i);if(c){var d=yy(n,i),m=d[1],h=d[2];if(m>h)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},v5=function(n){var l=n.scrollTop,o=n.scrollHeight,i=n.clientHeight;return[l,o,i]},y5=function(n){var l=n.scrollLeft,o=n.scrollWidth,i=n.clientWidth;return[l,o,i]},vy=function(n,l){return n==="v"?p5(l):g5(l)},yy=function(n,l){return n==="v"?v5(l):y5(l)},b5=function(n,l){return n==="h"&&l==="rtl"?-1:1},x5=function(n,l,o,i,c){var d=b5(n,window.getComputedStyle(l).direction),m=d*i,h=o.target,y=l.contains(h),p=!1,x=m>0,g=0,w=0;do{if(!h)break;var N=yy(n,h),T=N[0],E=N[1],C=N[2],A=E-C-d*T;(T||A)&&vy(n,h)&&(g+=A,w+=T);var j=h.parentNode;h=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!y&&h!==document.body||y&&(l.contains(h)||l===h));return(x&&Math.abs(g)<1||!x&&Math.abs(w)<1)&&(p=!0),p},xs=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Vv=function(n){return[n.deltaX,n.deltaY]},$v=function(n){return n&&"current"in n?n.current:n},S5=function(n,l){return n[0]===l[0]&&n[1]===l[1]},w5=function(n){return`
304
+ .block-interactivity-`.concat(n,` {pointer-events: none;}
305
+ .allow-interactivity-`).concat(n,` {pointer-events: all;}
306
+ `)},E5=0,Tr=[];function N5(n){var l=v.useRef([]),o=v.useRef([0,0]),i=v.useRef(),c=v.useState(E5++)[0],d=v.useState(py)[0],m=v.useRef(n);v.useEffect(function(){m.current=n},[n]),v.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(c));var E=PC([n.lockRef.current],(n.shards||[]).map($v),!0).filter(Boolean);return E.forEach(function(C){return C.classList.add("allow-interactivity-".concat(c))}),function(){document.body.classList.remove("block-interactivity-".concat(c)),E.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(c))})}}},[n.inert,n.lockRef.current,n.shards]);var h=v.useCallback(function(E,C){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!m.current.allowPinchZoom;var A=xs(E),j=o.current,O="deltaX"in E?E.deltaX:j[0]-A[0],z="deltaY"in E?E.deltaY:j[1]-A[1],B,G=E.target,V=Math.abs(O)>Math.abs(z)?"h":"v";if("touches"in E&&V==="h"&&G.type==="range")return!1;var $=window.getSelection(),ae=$&&$.anchorNode,re=ae?ae===G||ae.contains(G):!1;if(re)return!1;var me=Hv(V,G);if(!me)return!0;if(me?B=V:(B=V==="v"?"h":"v",me=Hv(V,G)),!me)return!1;if(!i.current&&"changedTouches"in E&&(O||z)&&(i.current=B),!B)return!0;var fe=i.current||B;return x5(fe,C,E,fe==="h"?O:z)},[]),y=v.useCallback(function(E){var C=E;if(!(!Tr.length||Tr[Tr.length-1]!==d)){var A="deltaY"in C?Vv(C):xs(C),j=l.current.filter(function(B){return B.name===C.type&&(B.target===C.target||C.target===B.shadowParent)&&S5(B.delta,A)})[0];if(j&&j.should){C.cancelable&&C.preventDefault();return}if(!j){var O=(m.current.shards||[]).map($v).filter(Boolean).filter(function(B){return B.contains(C.target)}),z=O.length>0?h(C,O[0]):!m.current.noIsolation;z&&C.cancelable&&C.preventDefault()}}},[]),p=v.useCallback(function(E,C,A,j){var O={name:E,delta:C,target:A,should:j,shadowParent:T5(A)};l.current.push(O),setTimeout(function(){l.current=l.current.filter(function(z){return z!==O})},1)},[]),x=v.useCallback(function(E){o.current=xs(E),i.current=void 0},[]),g=v.useCallback(function(E){p(E.type,Vv(E),E.target,h(E,n.lockRef.current))},[]),w=v.useCallback(function(E){p(E.type,xs(E),E.target,h(E,n.lockRef.current))},[]);v.useEffect(function(){return Tr.push(d),n.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:w}),document.addEventListener("wheel",y,Nr),document.addEventListener("touchmove",y,Nr),document.addEventListener("touchstart",x,Nr),function(){Tr=Tr.filter(function(E){return E!==d}),document.removeEventListener("wheel",y,Nr),document.removeEventListener("touchmove",y,Nr),document.removeEventListener("touchstart",x,Nr)}},[]);var N=n.removeScrollBar,T=n.inert;return v.createElement(v.Fragment,null,T?v.createElement(d,{styles:w5(c)}):null,N?v.createElement(m5,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function T5(n){for(var l=null;n!==null;)n instanceof ShadowRoot&&(l=n.host,n=n.host),n=n.parentNode;return l}const C5=e5(hy,N5);var kf=v.forwardRef(function(n,l){return v.createElement(tc,Kn({},n,{ref:l,sideCar:C5}))});kf.classNames=tc.classNames;var A5=function(n){if(typeof document>"u")return null;var l=Array.isArray(n)?n[0]:n;return l.ownerDocument.body},Cr=new WeakMap,Ss=new WeakMap,ws={},$d=0,by=function(n){return n&&(n.host||by(n.parentNode))},R5=function(n,l){return l.map(function(o){if(n.contains(o))return o;var i=by(o);return i&&n.contains(i)?i:(console.error("aria-hidden",o,"in not contained inside",n,". Doing nothing"),null)}).filter(function(o){return!!o})},_5=function(n,l,o,i){var c=R5(l,Array.isArray(n)?n:[n]);ws[o]||(ws[o]=new WeakMap);var d=ws[o],m=[],h=new Set,y=new Set(c),p=function(g){!g||h.has(g)||(h.add(g),p(g.parentNode))};c.forEach(p);var x=function(g){!g||y.has(g)||Array.prototype.forEach.call(g.children,function(w){if(h.has(w))x(w);else try{var N=w.getAttribute(i),T=N!==null&&N!=="false",E=(Cr.get(w)||0)+1,C=(d.get(w)||0)+1;Cr.set(w,E),d.set(w,C),m.push(w),E===1&&T&&Ss.set(w,!0),C===1&&w.setAttribute(o,"true"),T||w.setAttribute(i,"true")}catch(A){console.error("aria-hidden: cannot operate on ",w,A)}})};return x(l),h.clear(),$d++,function(){m.forEach(function(g){var w=Cr.get(g)-1,N=d.get(g)-1;Cr.set(g,w),d.set(g,N),w||(Ss.has(g)||g.removeAttribute(i),Ss.delete(g)),N||g.removeAttribute(o)}),$d--,$d||(Cr=new WeakMap,Cr=new WeakMap,Ss=new WeakMap,ws={})}},xy=function(n,l,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),c=A5(n);return c?(i.push.apply(i,Array.from(c.querySelectorAll("[aria-live], script"))),_5(i,c,o,"aria-hidden")):function(){return null}},nc="Dialog",[Sy,wy]=al(nc),[j5,_n]=Sy(nc),Ey=n=>{const{__scopeDialog:l,children:o,open:i,defaultOpen:c,onOpenChange:d,modal:m=!0}=n,h=v.useRef(null),y=v.useRef(null),[p,x]=kr({prop:i,defaultProp:c??!1,onChange:d,caller:nc});return f.jsx(j5,{scope:l,triggerRef:h,contentRef:y,contentId:Fa(),titleId:Fa(),descriptionId:Fa(),open:p,onOpenChange:x,onOpenToggle:v.useCallback(()=>x(g=>!g),[x]),modal:m,children:o})};Ey.displayName=nc;var Ny="DialogTrigger",Ty=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,c=_n(Ny,o),d=tt(l,c.triggerRef);return f.jsx(Ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":Uf(c.open),...i,ref:d,onClick:De(n.onClick,c.onOpenToggle)})});Ty.displayName=Ny;var zf="DialogPortal",[M5,Cy]=Sy(zf,{forceMount:void 0}),Ay=n=>{const{__scopeDialog:l,forceMount:o,children:i,container:c}=n,d=_n(zf,l);return f.jsx(M5,{scope:l,forceMount:o,children:v.Children.map(i,m=>f.jsx(Vr,{present:o||d.open,children:f.jsx(Df,{asChild:!0,container:c,children:m})}))})};Ay.displayName=zf;var Us="DialogOverlay",Ry=v.forwardRef((n,l)=>{const o=Cy(Us,n.__scopeDialog),{forceMount:i=o.forceMount,...c}=n,d=_n(Us,n.__scopeDialog);return d.modal?f.jsx(Vr,{present:i||d.open,children:f.jsx(D5,{...c,ref:l})}):null});Ry.displayName=Us;var O5=Qo("DialogOverlay.RemoveScroll"),D5=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,c=_n(Us,o);return f.jsx(kf,{as:O5,allowPinchZoom:!0,shards:[c.contentRef],children:f.jsx(Ue.div,{"data-state":Uf(c.open),...i,ref:l,style:{pointerEvents:"auto",...i.style}})})}),Ml="DialogContent",_y=v.forwardRef((n,l)=>{const o=Cy(Ml,n.__scopeDialog),{forceMount:i=o.forceMount,...c}=n,d=_n(Ml,n.__scopeDialog);return f.jsx(Vr,{present:i||d.open,children:d.modal?f.jsx(k5,{...c,ref:l}):f.jsx(z5,{...c,ref:l})})});_y.displayName=Ml;var k5=v.forwardRef((n,l)=>{const o=_n(Ml,n.__scopeDialog),i=v.useRef(null),c=tt(l,o.contentRef,i);return v.useEffect(()=>{const d=i.current;if(d)return xy(d)},[]),f.jsx(jy,{...n,ref:c,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:De(n.onCloseAutoFocus,d=>{var m;d.preventDefault(),(m=o.triggerRef.current)==null||m.focus()}),onPointerDownOutside:De(n.onPointerDownOutside,d=>{const m=d.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0;(m.button===2||h)&&d.preventDefault()}),onFocusOutside:De(n.onFocusOutside,d=>d.preventDefault())})}),z5=v.forwardRef((n,l)=>{const o=_n(Ml,n.__scopeDialog),i=v.useRef(!1),c=v.useRef(!1);return f.jsx(jy,{...n,ref:l,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var m,h;(m=n.onCloseAutoFocus)==null||m.call(n,d),d.defaultPrevented||(i.current||(h=o.triggerRef.current)==null||h.focus(),d.preventDefault()),i.current=!1,c.current=!1},onInteractOutside:d=>{var y,p;(y=n.onInteractOutside)==null||y.call(n,d),d.defaultPrevented||(i.current=!0,d.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=d.target;((p=o.triggerRef.current)==null?void 0:p.contains(m))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&c.current&&d.preventDefault()}})}),jy=v.forwardRef((n,l)=>{const{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:c,onCloseAutoFocus:d,...m}=n,h=_n(Ml,o),y=v.useRef(null),p=tt(l,y);return dy(),f.jsxs(f.Fragment,{children:[f.jsx(Of,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:c,onUnmountAutoFocus:d,children:f.jsx(Mf,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Uf(h.open),...m,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(U5,{titleId:h.titleId}),f.jsx(H5,{contentRef:y,descriptionId:h.descriptionId})]})]})}),Lf="DialogTitle",My=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,c=_n(Lf,o);return f.jsx(Ue.h2,{id:c.titleId,...i,ref:l})});My.displayName=Lf;var Oy="DialogDescription",Dy=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,c=_n(Oy,o);return f.jsx(Ue.p,{id:c.descriptionId,...i,ref:l})});Dy.displayName=Oy;var ky="DialogClose",zy=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,c=_n(ky,o);return f.jsx(Ue.button,{type:"button",...i,ref:l,onClick:De(n.onClick,()=>c.onOpenChange(!1))})});zy.displayName=ky;function Uf(n){return n?"open":"closed"}var Ly="DialogTitleWarning",[L5,Uy]=fC(Ly,{contentName:Ml,titleName:Lf,docsSlug:"dialog"}),U5=({titleId:n})=>{const l=Uy(Ly),o=`\`${l.contentName}\` requires a \`${l.titleName}\` for the component to be accessible for screen reader users.
307
+
308
+ If you want to hide the \`${l.titleName}\`, you can wrap it with our VisuallyHidden component.
309
+
310
+ For more information, see https://radix-ui.com/primitives/docs/components/${l.docsSlug}`;return v.useEffect(()=>{n&&(document.getElementById(n)||console.error(o))},[o,n]),null},B5="DialogDescriptionWarning",H5=({contentRef:n,descriptionId:l})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Uy(B5).contentName}}.`;return v.useEffect(()=>{var d;const c=(d=n.current)==null?void 0:d.getAttribute("aria-describedby");l&&c&&(document.getElementById(l)||console.warn(i))},[i,n,l]),null},By=Ey,Hy=Ty,Vy=Ay,Bf=Ry,Hf=_y,Vf=My,$f=Dy,ac=zy;const V5=By,$5=Hy,Y5=Vy,Fj=ac,$y=v.forwardRef(({className:n,...l},o)=>f.jsx(Bf,{ref:o,className:le("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...l}));$y.displayName=Bf.displayName;const Yy=v.forwardRef(({className:n,children:l,...o},i)=>f.jsxs(Y5,{children:[f.jsx($y,{}),f.jsxs(Hf,{ref:i,className:le("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-xl border bg-background p-6 shadow-[0_34px_110px_-54px_rgba(0,0,0,0.55)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n),...o,children:[l,f.jsxs(ac,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[f.jsx(Y0,{className:"h-4 w-4"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Yy.displayName=Hf.displayName;const qy=({className:n,...l})=>f.jsx("div",{className:le("flex flex-col space-y-1.5 text-center sm:text-left",n),...l});qy.displayName="DialogHeader";const q5=({className:n,...l})=>f.jsx("div",{className:le("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...l});q5.displayName="DialogFooter";const Gy=v.forwardRef(({className:n,...l},o)=>f.jsx(Vf,{ref:o,className:le("text-lg font-semibold leading-none tracking-tight",n),...l}));Gy.displayName=Vf.displayName;const Py=v.forwardRef(({className:n,...l},o)=>f.jsx($f,{ref:o,className:le("text-sm text-muted-foreground",n),...l}));Py.displayName=$f.displayName;function G5({children:n,open:l,onOpenChange:o,showTrigger:i=!0}){const[c,d]=v.useState(!1),m=l??c,h=v.useCallback(y=>{l===void 0&&d(y),o==null||o(y)},[l,o]);return f.jsxs(V5,{open:m,onOpenChange:h,children:[i&&f.jsx($5,{asChild:!0,children:f.jsx(yn,{variant:"ghost",size:"icon","aria-label":"Settings",title:"Settings",className:"h-8 w-8 rounded-sm text-muted-foreground hover:bg-muted/50 hover:text-foreground",children:f.jsx(_N,{className:"h-4 w-4"})})}),f.jsxs(Yy,{className:"settings-dialog-content grid h-[min(78vh,38rem)] max-h-[78vh] max-w-[min(86vw,50rem)] grid-rows-[auto_minmax(0,1fr)] gap-0 overflow-hidden rounded-xl border-border/70 bg-background/96 p-0 shadow-[0_40px_120px_-56px_rgba(15,23,42,0.75)] backdrop-blur-xl",children:[f.jsxs(qy,{className:"shrink-0 border-b border-border/60 px-3 py-1.5 sm:px-3.5",children:[f.jsxs(Gy,{className:"flex items-center gap-1.5 text-[11px]",children:[f.jsx(gN,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),f.jsx(Py,{className:"text-[10px]",children:"Session diagnostics, access configuration, and build metadata for the current Meshy node."})]}),f.jsx("div",{className:"min-h-0 overflow-y-auto px-2.5 pb-2 pt-0 sm:px-3 sm:pb-2.5",children:n})]})]})}function Yv(n,[l,o]){return Math.min(o,Math.max(l,n))}function Xy(n){const l=n+"CollectionProvider",[o,i]=al(l),[c,d]=o(l,{collectionRef:{current:null},itemMap:new Map}),m=E=>{const{scope:C,children:A}=E,j=ne.useRef(null),O=ne.useRef(new Map).current;return f.jsx(c,{scope:C,itemMap:O,collectionRef:j,children:A})};m.displayName=l;const h=n+"CollectionSlot",y=Qo(h),p=ne.forwardRef((E,C)=>{const{scope:A,children:j}=E,O=d(h,A),z=tt(C,O.collectionRef);return f.jsx(y,{ref:z,children:j})});p.displayName=h;const x=n+"CollectionItemSlot",g="data-radix-collection-item",w=Qo(x),N=ne.forwardRef((E,C)=>{const{scope:A,children:j,...O}=E,z=ne.useRef(null),B=tt(C,z),G=d(x,A);return ne.useEffect(()=>(G.itemMap.set(z,{ref:z,...O}),()=>void G.itemMap.delete(z))),f.jsx(w,{[g]:"",ref:B,children:j})});N.displayName=x;function T(E){const C=d(n+"CollectionConsumer",E);return ne.useCallback(()=>{const j=C.collectionRef.current;if(!j)return[];const O=Array.from(j.querySelectorAll(`[${g}]`));return Array.from(C.itemMap.values()).sort((G,V)=>O.indexOf(G.ref.current)-O.indexOf(V.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:m,Slot:p,ItemSlot:N},T,i]}var P5=v.createContext(void 0);function Yf(n){const l=v.useContext(P5);return n||l||"ltr"}const X5=["top","right","bottom","left"],el=Math.min,ln=Math.max,Bs=Math.round,Es=Math.floor,In=n=>({x:n,y:n}),K5={left:"right",right:"left",bottom:"top",top:"bottom"};function of(n,l,o){return ln(n,el(l,o))}function ba(n,l){return typeof n=="function"?n(l):n}function xa(n){return n.split("-")[0]}function $r(n){return n.split("-")[1]}function qf(n){return n==="x"?"y":"x"}function Gf(n){return n==="y"?"height":"width"}function Qn(n){const l=n[0];return l==="t"||l==="b"?"y":"x"}function Pf(n){return qf(Qn(n))}function Q5(n,l,o){o===void 0&&(o=!1);const i=$r(n),c=Pf(n),d=Gf(c);let m=c==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return l.reference[d]>l.floating[d]&&(m=Hs(m)),[m,Hs(m)]}function Z5(n){const l=Hs(n);return[sf(n),l,sf(l)]}function sf(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const qv=["left","right"],Gv=["right","left"],I5=["top","bottom"],F5=["bottom","top"];function J5(n,l,o){switch(n){case"top":case"bottom":return o?l?Gv:qv:l?qv:Gv;case"left":case"right":return l?I5:F5;default:return[]}}function W5(n,l,o,i){const c=$r(n);let d=J5(xa(n),o==="start",i);return c&&(d=d.map(m=>m+"-"+c),l&&(d=d.concat(d.map(sf)))),d}function Hs(n){const l=xa(n);return K5[l]+n.slice(l.length)}function eA(n){return{top:0,right:0,bottom:0,left:0,...n}}function Ky(n){return typeof n!="number"?eA(n):{top:n,right:n,bottom:n,left:n}}function Vs(n){const{x:l,y:o,width:i,height:c}=n;return{width:i,height:c,top:o,left:l,right:l+i,bottom:o+c,x:l,y:o}}function Pv(n,l,o){let{reference:i,floating:c}=n;const d=Qn(l),m=Pf(l),h=Gf(m),y=xa(l),p=d==="y",x=i.x+i.width/2-c.width/2,g=i.y+i.height/2-c.height/2,w=i[h]/2-c[h]/2;let N;switch(y){case"top":N={x,y:i.y-c.height};break;case"bottom":N={x,y:i.y+i.height};break;case"right":N={x:i.x+i.width,y:g};break;case"left":N={x:i.x-c.width,y:g};break;default:N={x:i.x,y:i.y}}switch($r(l)){case"start":N[m]-=w*(o&&p?-1:1);break;case"end":N[m]+=w*(o&&p?-1:1);break}return N}async function tA(n,l){var o;l===void 0&&(l={});const{x:i,y:c,platform:d,rects:m,elements:h,strategy:y}=n,{boundary:p="clippingAncestors",rootBoundary:x="viewport",elementContext:g="floating",altBoundary:w=!1,padding:N=0}=ba(l,n),T=Ky(N),C=h[w?g==="floating"?"reference":"floating":g],A=Vs(await d.getClippingRect({element:(o=await(d.isElement==null?void 0:d.isElement(C)))==null||o?C:C.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(h.floating)),boundary:p,rootBoundary:x,strategy:y})),j=g==="floating"?{x:i,y:c,width:m.floating.width,height:m.floating.height}:m.reference,O=await(d.getOffsetParent==null?void 0:d.getOffsetParent(h.floating)),z=await(d.isElement==null?void 0:d.isElement(O))?await(d.getScale==null?void 0:d.getScale(O))||{x:1,y:1}:{x:1,y:1},B=Vs(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:j,offsetParent:O,strategy:y}):j);return{top:(A.top-B.top+T.top)/z.y,bottom:(B.bottom-A.bottom+T.bottom)/z.y,left:(A.left-B.left+T.left)/z.x,right:(B.right-A.right+T.right)/z.x}}const nA=50,aA=async(n,l,o)=>{const{placement:i="bottom",strategy:c="absolute",middleware:d=[],platform:m}=o,h=m.detectOverflow?m:{...m,detectOverflow:tA},y=await(m.isRTL==null?void 0:m.isRTL(l));let p=await m.getElementRects({reference:n,floating:l,strategy:c}),{x,y:g}=Pv(p,i,y),w=i,N=0;const T={};for(let E=0;E<d.length;E++){const C=d[E];if(!C)continue;const{name:A,fn:j}=C,{x:O,y:z,data:B,reset:G}=await j({x,y:g,initialPlacement:i,placement:w,strategy:c,middlewareData:T,rects:p,platform:h,elements:{reference:n,floating:l}});x=O??x,g=z??g,T[A]={...T[A],...B},G&&N<nA&&(N++,typeof G=="object"&&(G.placement&&(w=G.placement),G.rects&&(p=G.rects===!0?await m.getElementRects({reference:n,floating:l,strategy:c}):G.rects),{x,y:g}=Pv(p,w,y)),E=-1)}return{x,y:g,placement:w,strategy:c,middlewareData:T}},lA=n=>({name:"arrow",options:n,async fn(l){const{x:o,y:i,placement:c,rects:d,platform:m,elements:h,middlewareData:y}=l,{element:p,padding:x=0}=ba(n,l)||{};if(p==null)return{};const g=Ky(x),w={x:o,y:i},N=Pf(c),T=Gf(N),E=await m.getDimensions(p),C=N==="y",A=C?"top":"left",j=C?"bottom":"right",O=C?"clientHeight":"clientWidth",z=d.reference[T]+d.reference[N]-w[N]-d.floating[T],B=w[N]-d.reference[N],G=await(m.getOffsetParent==null?void 0:m.getOffsetParent(p));let V=G?G[O]:0;(!V||!await(m.isElement==null?void 0:m.isElement(G)))&&(V=h.floating[O]||d.floating[T]);const $=z/2-B/2,ae=V/2-E[T]/2-1,re=el(g[A],ae),me=el(g[j],ae),fe=re,se=V-E[T]-me,ue=V/2-E[T]/2+$,oe=of(fe,ue,se),M=!y.arrow&&$r(c)!=null&&ue!==oe&&d.reference[T]/2-(ue<fe?re:me)-E[T]/2<0,Y=M?ue<fe?ue-fe:ue-se:0;return{[N]:w[N]+Y,data:{[N]:oe,centerOffset:ue-oe-Y,...M&&{alignmentOffset:Y}},reset:M}}}),rA=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(l){var o,i;const{placement:c,middlewareData:d,rects:m,initialPlacement:h,platform:y,elements:p}=l,{mainAxis:x=!0,crossAxis:g=!0,fallbackPlacements:w,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:E=!0,...C}=ba(n,l);if((o=d.arrow)!=null&&o.alignmentOffset)return{};const A=xa(c),j=Qn(h),O=xa(h)===h,z=await(y.isRTL==null?void 0:y.isRTL(p.floating)),B=w||(O||!E?[Hs(h)]:Z5(h)),G=T!=="none";!w&&G&&B.push(...W5(h,E,T,z));const V=[h,...B],$=await y.detectOverflow(l,C),ae=[];let re=((i=d.flip)==null?void 0:i.overflows)||[];if(x&&ae.push($[A]),g){const ue=Q5(c,m,z);ae.push($[ue[0]],$[ue[1]])}if(re=[...re,{placement:c,overflows:ae}],!ae.every(ue=>ue<=0)){var me,fe;const ue=(((me=d.flip)==null?void 0:me.index)||0)+1,oe=V[ue];if(oe&&(!(g==="alignment"?j!==Qn(oe):!1)||re.every(I=>Qn(I.placement)===j?I.overflows[0]>0:!0)))return{data:{index:ue,overflows:re},reset:{placement:oe}};let M=(fe=re.filter(Y=>Y.overflows[0]<=0).sort((Y,I)=>Y.overflows[1]-I.overflows[1])[0])==null?void 0:fe.placement;if(!M)switch(N){case"bestFit":{var se;const Y=(se=re.filter(I=>{if(G){const de=Qn(I.placement);return de===j||de==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(de=>de>0).reduce((de,F)=>de+F,0)]).sort((I,de)=>I[1]-de[1])[0])==null?void 0:se[0];Y&&(M=Y);break}case"initialPlacement":M=h;break}if(c!==M)return{reset:{placement:M}}}return{}}}};function Xv(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function Kv(n){return X5.some(l=>n[l]>=0)}const oA=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(l){const{rects:o,platform:i}=l,{strategy:c="referenceHidden",...d}=ba(n,l);switch(c){case"referenceHidden":{const m=await i.detectOverflow(l,{...d,elementContext:"reference"}),h=Xv(m,o.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Kv(h)}}}case"escaped":{const m=await i.detectOverflow(l,{...d,altBoundary:!0}),h=Xv(m,o.floating);return{data:{escapedOffsets:h,escaped:Kv(h)}}}default:return{}}}}},Qy=new Set(["left","top"]);async function iA(n,l){const{placement:o,platform:i,elements:c}=n,d=await(i.isRTL==null?void 0:i.isRTL(c.floating)),m=xa(o),h=$r(o),y=Qn(o)==="y",p=Qy.has(m)?-1:1,x=d&&y?-1:1,g=ba(l,n);let{mainAxis:w,crossAxis:N,alignmentAxis:T}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return h&&typeof T=="number"&&(N=h==="end"?T*-1:T),y?{x:N*x,y:w*p}:{x:w*p,y:N*x}}const sA=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(l){var o,i;const{x:c,y:d,placement:m,middlewareData:h}=l,y=await iA(l,n);return m===((o=h.offset)==null?void 0:o.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:c+y.x,y:d+y.y,data:{...y,placement:m}}}}},cA=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(l){const{x:o,y:i,placement:c,platform:d}=l,{mainAxis:m=!0,crossAxis:h=!1,limiter:y={fn:A=>{let{x:j,y:O}=A;return{x:j,y:O}}},...p}=ba(n,l),x={x:o,y:i},g=await d.detectOverflow(l,p),w=Qn(xa(c)),N=qf(w);let T=x[N],E=x[w];if(m){const A=N==="y"?"top":"left",j=N==="y"?"bottom":"right",O=T+g[A],z=T-g[j];T=of(O,T,z)}if(h){const A=w==="y"?"top":"left",j=w==="y"?"bottom":"right",O=E+g[A],z=E-g[j];E=of(O,E,z)}const C=y.fn({...l,[N]:T,[w]:E});return{...C,data:{x:C.x-o,y:C.y-i,enabled:{[N]:m,[w]:h}}}}}},uA=function(n){return n===void 0&&(n={}),{options:n,fn(l){const{x:o,y:i,placement:c,rects:d,middlewareData:m}=l,{offset:h=0,mainAxis:y=!0,crossAxis:p=!0}=ba(n,l),x={x:o,y:i},g=Qn(c),w=qf(g);let N=x[w],T=x[g];const E=ba(h,l),C=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(y){const O=w==="y"?"height":"width",z=d.reference[w]-d.floating[O]+C.mainAxis,B=d.reference[w]+d.reference[O]-C.mainAxis;N<z?N=z:N>B&&(N=B)}if(p){var A,j;const O=w==="y"?"width":"height",z=Qy.has(xa(c)),B=d.reference[g]-d.floating[O]+(z&&((A=m.offset)==null?void 0:A[g])||0)+(z?0:C.crossAxis),G=d.reference[g]+d.reference[O]+(z?0:((j=m.offset)==null?void 0:j[g])||0)-(z?C.crossAxis:0);T<B?T=B:T>G&&(T=G)}return{[w]:N,[g]:T}}}},dA=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(l){var o,i;const{placement:c,rects:d,platform:m,elements:h}=l,{apply:y=()=>{},...p}=ba(n,l),x=await m.detectOverflow(l,p),g=xa(c),w=$r(c),N=Qn(c)==="y",{width:T,height:E}=d.floating;let C,A;g==="top"||g==="bottom"?(C=g,A=w===(await(m.isRTL==null?void 0:m.isRTL(h.floating))?"start":"end")?"left":"right"):(A=g,C=w==="end"?"top":"bottom");const j=E-x.top-x.bottom,O=T-x.left-x.right,z=el(E-x[C],j),B=el(T-x[A],O),G=!l.middlewareData.shift;let V=z,$=B;if((o=l.middlewareData.shift)!=null&&o.enabled.x&&($=O),(i=l.middlewareData.shift)!=null&&i.enabled.y&&(V=j),G&&!w){const re=ln(x.left,0),me=ln(x.right,0),fe=ln(x.top,0),se=ln(x.bottom,0);N?$=T-2*(re!==0||me!==0?re+me:ln(x.left,x.right)):V=E-2*(fe!==0||se!==0?fe+se:ln(x.top,x.bottom))}await y({...l,availableWidth:$,availableHeight:V});const ae=await m.getDimensions(h.floating);return T!==ae.width||E!==ae.height?{reset:{rects:!0}}:{}}}};function lc(){return typeof window<"u"}function Yr(n){return Zy(n)?(n.nodeName||"").toLowerCase():"#document"}function rn(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function Jn(n){var l;return(l=(Zy(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function Zy(n){return lc()?n instanceof Node||n instanceof rn(n).Node:!1}function An(n){return lc()?n instanceof Element||n instanceof rn(n).Element:!1}function Sa(n){return lc()?n instanceof HTMLElement||n instanceof rn(n).HTMLElement:!1}function Qv(n){return!lc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof rn(n).ShadowRoot}function Wo(n){const{overflow:l,overflowX:o,overflowY:i,display:c}=Rn(n);return/auto|scroll|overlay|hidden|clip/.test(l+i+o)&&c!=="inline"&&c!=="contents"}function fA(n){return/^(table|td|th)$/.test(Yr(n))}function rc(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const mA=/transform|translate|scale|rotate|perspective|filter/,hA=/paint|layout|strict|content/,Rl=n=>!!n&&n!=="none";let Yd;function Xf(n){const l=An(n)?Rn(n):n;return Rl(l.transform)||Rl(l.translate)||Rl(l.scale)||Rl(l.rotate)||Rl(l.perspective)||!Kf()&&(Rl(l.backdropFilter)||Rl(l.filter))||mA.test(l.willChange||"")||hA.test(l.contain||"")}function pA(n){let l=tl(n);for(;Sa(l)&&!zr(l);){if(Xf(l))return l;if(rc(l))return null;l=tl(l)}return null}function Kf(){return Yd==null&&(Yd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Yd}function zr(n){return/^(html|body|#document)$/.test(Yr(n))}function Rn(n){return rn(n).getComputedStyle(n)}function oc(n){return An(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function tl(n){if(Yr(n)==="html")return n;const l=n.assignedSlot||n.parentNode||Qv(n)&&n.host||Jn(n);return Qv(l)?l.host:l}function Iy(n){const l=tl(n);return zr(l)?n.ownerDocument?n.ownerDocument.body:n.body:Sa(l)&&Wo(l)?l:Iy(l)}function Zo(n,l,o){var i;l===void 0&&(l=[]),o===void 0&&(o=!0);const c=Iy(n),d=c===((i=n.ownerDocument)==null?void 0:i.body),m=rn(c);if(d){const h=cf(m);return l.concat(m,m.visualViewport||[],Wo(c)?c:[],h&&o?Zo(h):[])}else return l.concat(c,Zo(c,[],o))}function cf(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Fy(n){const l=Rn(n);let o=parseFloat(l.width)||0,i=parseFloat(l.height)||0;const c=Sa(n),d=c?n.offsetWidth:o,m=c?n.offsetHeight:i,h=Bs(o)!==d||Bs(i)!==m;return h&&(o=d,i=m),{width:o,height:i,$:h}}function Qf(n){return An(n)?n:n.contextElement}function Or(n){const l=Qf(n);if(!Sa(l))return In(1);const o=l.getBoundingClientRect(),{width:i,height:c,$:d}=Fy(l);let m=(d?Bs(o.width):o.width)/i,h=(d?Bs(o.height):o.height)/c;return(!m||!Number.isFinite(m))&&(m=1),(!h||!Number.isFinite(h))&&(h=1),{x:m,y:h}}const gA=In(0);function Jy(n){const l=rn(n);return!Kf()||!l.visualViewport?gA:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function vA(n,l,o){return l===void 0&&(l=!1),!o||l&&o!==rn(n)?!1:l}function Ol(n,l,o,i){l===void 0&&(l=!1),o===void 0&&(o=!1);const c=n.getBoundingClientRect(),d=Qf(n);let m=In(1);l&&(i?An(i)&&(m=Or(i)):m=Or(n));const h=vA(d,o,i)?Jy(d):In(0);let y=(c.left+h.x)/m.x,p=(c.top+h.y)/m.y,x=c.width/m.x,g=c.height/m.y;if(d){const w=rn(d),N=i&&An(i)?rn(i):i;let T=w,E=cf(T);for(;E&&i&&N!==T;){const C=Or(E),A=E.getBoundingClientRect(),j=Rn(E),O=A.left+(E.clientLeft+parseFloat(j.paddingLeft))*C.x,z=A.top+(E.clientTop+parseFloat(j.paddingTop))*C.y;y*=C.x,p*=C.y,x*=C.x,g*=C.y,y+=O,p+=z,T=rn(E),E=cf(T)}}return Vs({width:x,height:g,x:y,y:p})}function ic(n,l){const o=oc(n).scrollLeft;return l?l.left+o:Ol(Jn(n)).left+o}function Wy(n,l){const o=n.getBoundingClientRect(),i=o.left+l.scrollLeft-ic(n,o),c=o.top+l.scrollTop;return{x:i,y:c}}function yA(n){let{elements:l,rect:o,offsetParent:i,strategy:c}=n;const d=c==="fixed",m=Jn(i),h=l?rc(l.floating):!1;if(i===m||h&&d)return o;let y={scrollLeft:0,scrollTop:0},p=In(1);const x=In(0),g=Sa(i);if((g||!g&&!d)&&((Yr(i)!=="body"||Wo(m))&&(y=oc(i)),g)){const N=Ol(i);p=Or(i),x.x=N.x+i.clientLeft,x.y=N.y+i.clientTop}const w=m&&!g&&!d?Wy(m,y):In(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-y.scrollLeft*p.x+x.x+w.x,y:o.y*p.y-y.scrollTop*p.y+x.y+w.y}}function bA(n){return Array.from(n.getClientRects())}function xA(n){const l=Jn(n),o=oc(n),i=n.ownerDocument.body,c=ln(l.scrollWidth,l.clientWidth,i.scrollWidth,i.clientWidth),d=ln(l.scrollHeight,l.clientHeight,i.scrollHeight,i.clientHeight);let m=-o.scrollLeft+ic(n);const h=-o.scrollTop;return Rn(i).direction==="rtl"&&(m+=ln(l.clientWidth,i.clientWidth)-c),{width:c,height:d,x:m,y:h}}const Zv=25;function SA(n,l){const o=rn(n),i=Jn(n),c=o.visualViewport;let d=i.clientWidth,m=i.clientHeight,h=0,y=0;if(c){d=c.width,m=c.height;const x=Kf();(!x||x&&l==="fixed")&&(h=c.offsetLeft,y=c.offsetTop)}const p=ic(i);if(p<=0){const x=i.ownerDocument,g=x.body,w=getComputedStyle(g),N=x.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,T=Math.abs(i.clientWidth-g.clientWidth-N);T<=Zv&&(d-=T)}else p<=Zv&&(d+=p);return{width:d,height:m,x:h,y}}function wA(n,l){const o=Ol(n,!0,l==="fixed"),i=o.top+n.clientTop,c=o.left+n.clientLeft,d=Sa(n)?Or(n):In(1),m=n.clientWidth*d.x,h=n.clientHeight*d.y,y=c*d.x,p=i*d.y;return{width:m,height:h,x:y,y:p}}function Iv(n,l,o){let i;if(l==="viewport")i=SA(n,o);else if(l==="document")i=xA(Jn(n));else if(An(l))i=wA(l,o);else{const c=Jy(n);i={x:l.x-c.x,y:l.y-c.y,width:l.width,height:l.height}}return Vs(i)}function eb(n,l){const o=tl(n);return o===l||!An(o)||zr(o)?!1:Rn(o).position==="fixed"||eb(o,l)}function EA(n,l){const o=l.get(n);if(o)return o;let i=Zo(n,[],!1).filter(h=>An(h)&&Yr(h)!=="body"),c=null;const d=Rn(n).position==="fixed";let m=d?tl(n):n;for(;An(m)&&!zr(m);){const h=Rn(m),y=Xf(m);!y&&h.position==="fixed"&&(c=null),(d?!y&&!c:!y&&h.position==="static"&&!!c&&(c.position==="absolute"||c.position==="fixed")||Wo(m)&&!y&&eb(n,m))?i=i.filter(x=>x!==m):c=h,m=tl(m)}return l.set(n,i),i}function NA(n){let{element:l,boundary:o,rootBoundary:i,strategy:c}=n;const m=[...o==="clippingAncestors"?rc(l)?[]:EA(l,this._c):[].concat(o),i],h=Iv(l,m[0],c);let y=h.top,p=h.right,x=h.bottom,g=h.left;for(let w=1;w<m.length;w++){const N=Iv(l,m[w],c);y=ln(N.top,y),p=el(N.right,p),x=el(N.bottom,x),g=ln(N.left,g)}return{width:p-g,height:x-y,x:g,y}}function TA(n){const{width:l,height:o}=Fy(n);return{width:l,height:o}}function CA(n,l,o){const i=Sa(l),c=Jn(l),d=o==="fixed",m=Ol(n,!0,d,l);let h={scrollLeft:0,scrollTop:0};const y=In(0);function p(){y.x=ic(c)}if(i||!i&&!d)if((Yr(l)!=="body"||Wo(c))&&(h=oc(l)),i){const N=Ol(l,!0,d,l);y.x=N.x+l.clientLeft,y.y=N.y+l.clientTop}else c&&p();d&&!i&&c&&p();const x=c&&!i&&!d?Wy(c,h):In(0),g=m.left+h.scrollLeft-y.x-x.x,w=m.top+h.scrollTop-y.y-x.y;return{x:g,y:w,width:m.width,height:m.height}}function qd(n){return Rn(n).position==="static"}function Fv(n,l){if(!Sa(n)||Rn(n).position==="fixed")return null;if(l)return l(n);let o=n.offsetParent;return Jn(n)===o&&(o=o.ownerDocument.body),o}function tb(n,l){const o=rn(n);if(rc(n))return o;if(!Sa(n)){let c=tl(n);for(;c&&!zr(c);){if(An(c)&&!qd(c))return c;c=tl(c)}return o}let i=Fv(n,l);for(;i&&fA(i)&&qd(i);)i=Fv(i,l);return i&&zr(i)&&qd(i)&&!Xf(i)?o:i||pA(n)||o}const AA=async function(n){const l=this.getOffsetParent||tb,o=this.getDimensions,i=await o(n.floating);return{reference:CA(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function RA(n){return Rn(n).direction==="rtl"}const _A={convertOffsetParentRelativeRectToViewportRelativeRect:yA,getDocumentElement:Jn,getClippingRect:NA,getOffsetParent:tb,getElementRects:AA,getClientRects:bA,getDimensions:TA,getScale:Or,isElement:An,isRTL:RA};function nb(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function jA(n,l){let o=null,i;const c=Jn(n);function d(){var h;clearTimeout(i),(h=o)==null||h.disconnect(),o=null}function m(h,y){h===void 0&&(h=!1),y===void 0&&(y=1),d();const p=n.getBoundingClientRect(),{left:x,top:g,width:w,height:N}=p;if(h||l(),!w||!N)return;const T=Es(g),E=Es(c.clientWidth-(x+w)),C=Es(c.clientHeight-(g+N)),A=Es(x),O={rootMargin:-T+"px "+-E+"px "+-C+"px "+-A+"px",threshold:ln(0,el(1,y))||1};let z=!0;function B(G){const V=G[0].intersectionRatio;if(V!==y){if(!z)return m();V?m(!1,V):i=setTimeout(()=>{m(!1,1e-7)},1e3)}V===1&&!nb(p,n.getBoundingClientRect())&&m(),z=!1}try{o=new IntersectionObserver(B,{...O,root:c.ownerDocument})}catch{o=new IntersectionObserver(B,O)}o.observe(n)}return m(!0),d}function MA(n,l,o,i){i===void 0&&(i={});const{ancestorScroll:c=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:y=!1}=i,p=Qf(n),x=c||d?[...p?Zo(p):[],...l?Zo(l):[]]:[];x.forEach(A=>{c&&A.addEventListener("scroll",o,{passive:!0}),d&&A.addEventListener("resize",o)});const g=p&&h?jA(p,o):null;let w=-1,N=null;m&&(N=new ResizeObserver(A=>{let[j]=A;j&&j.target===p&&N&&l&&(N.unobserve(l),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var O;(O=N)==null||O.observe(l)})),o()}),p&&!y&&N.observe(p),l&&N.observe(l));let T,E=y?Ol(n):null;y&&C();function C(){const A=Ol(n);E&&!nb(E,A)&&o(),E=A,T=requestAnimationFrame(C)}return o(),()=>{var A;x.forEach(j=>{c&&j.removeEventListener("scroll",o),d&&j.removeEventListener("resize",o)}),g==null||g(),(A=N)==null||A.disconnect(),N=null,y&&cancelAnimationFrame(T)}}const OA=sA,DA=cA,kA=rA,zA=dA,LA=oA,Jv=lA,UA=uA,BA=(n,l,o)=>{const i=new Map,c={platform:_A,...o},d={...c.platform,_c:i};return aA(n,l,{...c,platform:d})};var HA=typeof document<"u",VA=function(){},_s=HA?v.useLayoutEffect:VA;function $s(n,l){if(n===l)return!0;if(typeof n!=typeof l)return!1;if(typeof n=="function"&&n.toString()===l.toString())return!0;let o,i,c;if(n&&l&&typeof n=="object"){if(Array.isArray(n)){if(o=n.length,o!==l.length)return!1;for(i=o;i--!==0;)if(!$s(n[i],l[i]))return!1;return!0}if(c=Object.keys(n),o=c.length,o!==Object.keys(l).length)return!1;for(i=o;i--!==0;)if(!{}.hasOwnProperty.call(l,c[i]))return!1;for(i=o;i--!==0;){const d=c[i];if(!(d==="_owner"&&n.$$typeof)&&!$s(n[d],l[d]))return!1}return!0}return n!==n&&l!==l}function ab(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Wv(n,l){const o=ab(n);return Math.round(l*o)/o}function Gd(n){const l=v.useRef(n);return _s(()=>{l.current=n}),l}function $A(n){n===void 0&&(n={});const{placement:l="bottom",strategy:o="absolute",middleware:i=[],platform:c,elements:{reference:d,floating:m}={},transform:h=!0,whileElementsMounted:y,open:p}=n,[x,g]=v.useState({x:0,y:0,strategy:o,placement:l,middlewareData:{},isPositioned:!1}),[w,N]=v.useState(i);$s(w,i)||N(i);const[T,E]=v.useState(null),[C,A]=v.useState(null),j=v.useCallback(I=>{I!==G.current&&(G.current=I,E(I))},[]),O=v.useCallback(I=>{I!==V.current&&(V.current=I,A(I))},[]),z=d||T,B=m||C,G=v.useRef(null),V=v.useRef(null),$=v.useRef(x),ae=y!=null,re=Gd(y),me=Gd(c),fe=Gd(p),se=v.useCallback(()=>{if(!G.current||!V.current)return;const I={placement:l,strategy:o,middleware:w};me.current&&(I.platform=me.current),BA(G.current,V.current,I).then(de=>{const F={...de,isPositioned:fe.current!==!1};ue.current&&!$s($.current,F)&&($.current=F,Jo.flushSync(()=>{g(F)}))})},[w,l,o,me,fe]);_s(()=>{p===!1&&$.current.isPositioned&&($.current.isPositioned=!1,g(I=>({...I,isPositioned:!1})))},[p]);const ue=v.useRef(!1);_s(()=>(ue.current=!0,()=>{ue.current=!1}),[]),_s(()=>{if(z&&(G.current=z),B&&(V.current=B),z&&B){if(re.current)return re.current(z,B,se);se()}},[z,B,se,re,ae]);const oe=v.useMemo(()=>({reference:G,floating:V,setReference:j,setFloating:O}),[j,O]),M=v.useMemo(()=>({reference:z,floating:B}),[z,B]),Y=v.useMemo(()=>{const I={position:o,left:0,top:0};if(!M.floating)return I;const de=Wv(M.floating,x.x),F=Wv(M.floating,x.y);return h?{...I,transform:"translate("+de+"px, "+F+"px)",...ab(M.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:de,top:F}},[o,h,M.floating,x.x,x.y]);return v.useMemo(()=>({...x,update:se,refs:oe,elements:M,floatingStyles:Y}),[x,se,oe,M,Y])}const YA=n=>{function l(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:n,fn(o){const{element:i,padding:c}=typeof n=="function"?n(o):n;return i&&l(i)?i.current!=null?Jv({element:i.current,padding:c}).fn(o):{}:i?Jv({element:i,padding:c}).fn(o):{}}}},qA=(n,l)=>{const o=OA(n);return{name:o.name,fn:o.fn,options:[n,l]}},GA=(n,l)=>{const o=DA(n);return{name:o.name,fn:o.fn,options:[n,l]}},PA=(n,l)=>({fn:UA(n).fn,options:[n,l]}),XA=(n,l)=>{const o=kA(n);return{name:o.name,fn:o.fn,options:[n,l]}},KA=(n,l)=>{const o=zA(n);return{name:o.name,fn:o.fn,options:[n,l]}},QA=(n,l)=>{const o=LA(n);return{name:o.name,fn:o.fn,options:[n,l]}},ZA=(n,l)=>{const o=YA(n);return{name:o.name,fn:o.fn,options:[n,l]}};var IA="Arrow",lb=v.forwardRef((n,l)=>{const{children:o,width:i=10,height:c=5,...d}=n;return f.jsx(Ue.svg,{...d,ref:l,width:i,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?o:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});lb.displayName=IA;var FA=lb;function rb(n){const[l,o]=v.useState(void 0);return zt(()=>{if(n){o({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const d=c[0];let m,h;if("borderBoxSize"in d){const y=d.borderBoxSize,p=Array.isArray(y)?y[0]:y;m=p.inlineSize,h=p.blockSize}else m=n.offsetWidth,h=n.offsetHeight;o({width:m,height:h})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else o(void 0)},[n]),l}var Zf="Popper",[ob,ib]=al(Zf),[JA,sb]=ob(Zf),cb=n=>{const{__scopePopper:l,children:o}=n,[i,c]=v.useState(null);return f.jsx(JA,{scope:l,anchor:i,onAnchorChange:c,children:o})};cb.displayName=Zf;var ub="PopperAnchor",db=v.forwardRef((n,l)=>{const{__scopePopper:o,virtualRef:i,...c}=n,d=sb(ub,o),m=v.useRef(null),h=tt(l,m),y=v.useRef(null);return v.useEffect(()=>{const p=y.current;y.current=(i==null?void 0:i.current)||m.current,p!==y.current&&d.onAnchorChange(y.current)}),i?null:f.jsx(Ue.div,{...c,ref:h})});db.displayName=ub;var If="PopperContent",[WA,eR]=ob(If),fb=v.forwardRef((n,l)=>{var ee,ce,J,ve,be,Se;const{__scopePopper:o,side:i="bottom",sideOffset:c=0,align:d="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:y=!0,collisionBoundary:p=[],collisionPadding:x=0,sticky:g="partial",hideWhenDetached:w=!1,updatePositionStrategy:N="optimized",onPlaced:T,...E}=n,C=sb(If,o),[A,j]=v.useState(null),O=tt(l,He=>j(He)),[z,B]=v.useState(null),G=rb(z),V=(G==null?void 0:G.width)??0,$=(G==null?void 0:G.height)??0,ae=i+(d!=="center"?"-"+d:""),re=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},me=Array.isArray(p)?p:[p],fe=me.length>0,se={padding:re,boundary:me.filter(nR),altBoundary:fe},{refs:ue,floatingStyles:oe,placement:M,isPositioned:Y,middlewareData:I}=$A({strategy:"fixed",placement:ae,whileElementsMounted:(...He)=>MA(...He,{animationFrame:N==="always"}),elements:{reference:C.anchor},middleware:[qA({mainAxis:c+$,alignmentAxis:m}),y&&GA({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?PA():void 0,...se}),y&&XA({...se}),KA({...se,apply:({elements:He,rects:je,availableWidth:Ve,availableHeight:dt})=>{const{width:Pe,height:Lt}=je.reference,ht=He.floating.style;ht.setProperty("--radix-popper-available-width",`${Ve}px`),ht.setProperty("--radix-popper-available-height",`${dt}px`),ht.setProperty("--radix-popper-anchor-width",`${Pe}px`),ht.setProperty("--radix-popper-anchor-height",`${Lt}px`)}}),z&&ZA({element:z,padding:h}),aR({arrowWidth:V,arrowHeight:$}),w&&QA({strategy:"referenceHidden",...se})]}),[de,F]=pb(M),R=Wa(T);zt(()=>{Y&&(R==null||R())},[Y,R]);const P=(ee=I.arrow)==null?void 0:ee.x,K=(ce=I.arrow)==null?void 0:ce.y,W=((J=I.arrow)==null?void 0:J.centerOffset)!==0,[te,ie]=v.useState();return zt(()=>{A&&ie(window.getComputedStyle(A).zIndex)},[A]),f.jsx("div",{ref:ue.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:Y?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(ve=I.transformOrigin)==null?void 0:ve.x,(be=I.transformOrigin)==null?void 0:be.y].join(" "),...((Se=I.hide)==null?void 0:Se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:f.jsx(WA,{scope:o,placedSide:de,onArrowChange:B,arrowX:P,arrowY:K,shouldHideArrow:W,children:f.jsx(Ue.div,{"data-side":de,"data-align":F,...E,ref:O,style:{...E.style,animation:Y?void 0:"none"}})})})});fb.displayName=If;var mb="PopperArrow",tR={top:"bottom",right:"left",bottom:"top",left:"right"},hb=v.forwardRef(function(l,o){const{__scopePopper:i,...c}=l,d=eR(mb,i),m=tR[d.placedSide];return f.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[m]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[d.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[d.placedSide],visibility:d.shouldHideArrow?"hidden":void 0},children:f.jsx(FA,{...c,ref:o,style:{...c.style,display:"block"}})})});hb.displayName=mb;function nR(n){return n!==null}var aR=n=>({name:"transformOrigin",options:n,fn(l){var C,A,j;const{placement:o,rects:i,middlewareData:c}=l,m=((C=c.arrow)==null?void 0:C.centerOffset)!==0,h=m?0:n.arrowWidth,y=m?0:n.arrowHeight,[p,x]=pb(o),g={start:"0%",center:"50%",end:"100%"}[x],w=(((A=c.arrow)==null?void 0:A.x)??0)+h/2,N=(((j=c.arrow)==null?void 0:j.y)??0)+y/2;let T="",E="";return p==="bottom"?(T=m?g:`${w}px`,E=`${-y}px`):p==="top"?(T=m?g:`${w}px`,E=`${i.floating.height+y}px`):p==="right"?(T=`${-y}px`,E=m?g:`${N}px`):p==="left"&&(T=`${i.floating.width+y}px`,E=m?g:`${N}px`),{data:{x:T,y:E}}}});function pb(n){const[l,o="center"]=n.split("-");return[l,o]}var lR=cb,rR=db,oR=fb,iR=hb;function gb(n){const l=v.useRef({value:n,previous:n});return v.useMemo(()=>(l.current.value!==n&&(l.current.previous=l.current.value,l.current.value=n),l.current.previous),[n])}var vb=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),sR="VisuallyHidden",cR=v.forwardRef((n,l)=>f.jsx(Ue.span,{...n,ref:l,style:{...vb,...n.style}}));cR.displayName=sR;var uR=[" ","Enter","ArrowUp","ArrowDown"],dR=[" ","Enter"],Dl="Select",[sc,cc,fR]=Xy(Dl),[qr]=al(Dl,[fR,ib]),uc=ib(),[mR,ll]=qr(Dl),[hR,pR]=qr(Dl),yb=n=>{const{__scopeSelect:l,children:o,open:i,defaultOpen:c,onOpenChange:d,value:m,defaultValue:h,onValueChange:y,dir:p,name:x,autoComplete:g,disabled:w,required:N,form:T}=n,E=uc(l),[C,A]=v.useState(null),[j,O]=v.useState(null),[z,B]=v.useState(!1),G=Yf(p),[V,$]=kr({prop:i,defaultProp:c??!1,onChange:d,caller:Dl}),[ae,re]=kr({prop:m,defaultProp:h,onChange:y,caller:Dl}),me=v.useRef(null),fe=C?T||!!C.closest("form"):!0,[se,ue]=v.useState(new Set),oe=Array.from(se).map(M=>M.props.value).join(";");return f.jsx(lR,{...E,children:f.jsxs(mR,{required:N,scope:l,trigger:C,onTriggerChange:A,valueNode:j,onValueNodeChange:O,valueNodeHasChildren:z,onValueNodeHasChildrenChange:B,contentId:Fa(),value:ae,onValueChange:re,open:V,onOpenChange:$,dir:G,triggerPointerDownPosRef:me,disabled:w,children:[f.jsx(sc.Provider,{scope:l,children:f.jsx(hR,{scope:n.__scopeSelect,onNativeOptionAdd:v.useCallback(M=>{ue(Y=>new Set(Y).add(M))},[]),onNativeOptionRemove:v.useCallback(M=>{ue(Y=>{const I=new Set(Y);return I.delete(M),I})},[]),children:o})}),fe?f.jsxs(Yb,{"aria-hidden":!0,required:N,tabIndex:-1,name:x,autoComplete:g,value:ae,onChange:M=>re(M.target.value),disabled:w,form:T,children:[ae===void 0?f.jsx("option",{value:""}):null,Array.from(se)]},oe):null]})})};yb.displayName=Dl;var bb="SelectTrigger",xb=v.forwardRef((n,l)=>{const{__scopeSelect:o,disabled:i=!1,...c}=n,d=uc(o),m=ll(bb,o),h=m.disabled||i,y=tt(l,m.onTriggerChange),p=cc(o),x=v.useRef("touch"),[g,w,N]=Gb(E=>{const C=p().filter(O=>!O.disabled),A=C.find(O=>O.value===m.value),j=Pb(C,E,A);j!==void 0&&m.onValueChange(j.value)}),T=E=>{h||(m.onOpenChange(!0),N()),E&&(m.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})};return f.jsx(rR,{asChild:!0,...d,children:f.jsx(Ue.button,{type:"button",role:"combobox","aria-controls":m.contentId,"aria-expanded":m.open,"aria-required":m.required,"aria-autocomplete":"none",dir:m.dir,"data-state":m.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":qb(m.value)?"":void 0,...c,ref:y,onClick:De(c.onClick,E=>{E.currentTarget.focus(),x.current!=="mouse"&&T(E)}),onPointerDown:De(c.onPointerDown,E=>{x.current=E.pointerType;const C=E.target;C.hasPointerCapture(E.pointerId)&&C.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(T(E),E.preventDefault())}),onKeyDown:De(c.onKeyDown,E=>{const C=g.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&w(E.key),!(C&&E.key===" ")&&uR.includes(E.key)&&(T(),E.preventDefault())})})})});xb.displayName=bb;var Sb="SelectValue",wb=v.forwardRef((n,l)=>{const{__scopeSelect:o,className:i,style:c,children:d,placeholder:m="",...h}=n,y=ll(Sb,o),{onValueNodeHasChildrenChange:p}=y,x=d!==void 0,g=tt(l,y.onValueNodeChange);return zt(()=>{p(x)},[p,x]),f.jsx(Ue.span,{...h,ref:g,style:{pointerEvents:"none"},children:qb(y.value)?f.jsx(f.Fragment,{children:m}):d})});wb.displayName=Sb;var gR="SelectIcon",Eb=v.forwardRef((n,l)=>{const{__scopeSelect:o,children:i,...c}=n;return f.jsx(Ue.span,{"aria-hidden":!0,...c,ref:l,children:i||"▼"})});Eb.displayName=gR;var vR="SelectPortal",Nb=n=>f.jsx(Df,{asChild:!0,...n});Nb.displayName=vR;var kl="SelectContent",Tb=v.forwardRef((n,l)=>{const o=ll(kl,n.__scopeSelect),[i,c]=v.useState();if(zt(()=>{c(new DocumentFragment)},[]),!o.open){const d=i;return d?Jo.createPortal(f.jsx(Cb,{scope:n.__scopeSelect,children:f.jsx(sc.Slot,{scope:n.__scopeSelect,children:f.jsx("div",{children:n.children})})}),d):null}return f.jsx(Ab,{...n,ref:l})});Tb.displayName=kl;var Tn=10,[Cb,rl]=qr(kl),yR="SelectContentImpl",bR=Qo("SelectContent.RemoveScroll"),Ab=v.forwardRef((n,l)=>{const{__scopeSelect:o,position:i="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:d,onPointerDownOutside:m,side:h,sideOffset:y,align:p,alignOffset:x,arrowPadding:g,collisionBoundary:w,collisionPadding:N,sticky:T,hideWhenDetached:E,avoidCollisions:C,...A}=n,j=ll(kl,o),[O,z]=v.useState(null),[B,G]=v.useState(null),V=tt(l,ee=>z(ee)),[$,ae]=v.useState(null),[re,me]=v.useState(null),fe=cc(o),[se,ue]=v.useState(!1),oe=v.useRef(!1);v.useEffect(()=>{if(O)return xy(O)},[O]),dy();const M=v.useCallback(ee=>{const[ce,...J]=fe().map(Se=>Se.ref.current),[ve]=J.slice(-1),be=document.activeElement;for(const Se of ee)if(Se===be||(Se==null||Se.scrollIntoView({block:"nearest"}),Se===ce&&B&&(B.scrollTop=0),Se===ve&&B&&(B.scrollTop=B.scrollHeight),Se==null||Se.focus(),document.activeElement!==be))return},[fe,B]),Y=v.useCallback(()=>M([$,O]),[M,$,O]);v.useEffect(()=>{se&&Y()},[se,Y]);const{onOpenChange:I,triggerPointerDownPosRef:de}=j;v.useEffect(()=>{if(O){let ee={x:0,y:0};const ce=ve=>{var be,Se;ee={x:Math.abs(Math.round(ve.pageX)-(((be=de.current)==null?void 0:be.x)??0)),y:Math.abs(Math.round(ve.pageY)-(((Se=de.current)==null?void 0:Se.y)??0))}},J=ve=>{ee.x<=10&&ee.y<=10?ve.preventDefault():O.contains(ve.target)||I(!1),document.removeEventListener("pointermove",ce),de.current=null};return de.current!==null&&(document.addEventListener("pointermove",ce),document.addEventListener("pointerup",J,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ce),document.removeEventListener("pointerup",J,{capture:!0})}}},[O,I,de]),v.useEffect(()=>{const ee=()=>I(!1);return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[I]);const[F,R]=Gb(ee=>{const ce=fe().filter(be=>!be.disabled),J=ce.find(be=>be.ref.current===document.activeElement),ve=Pb(ce,ee,J);ve&&setTimeout(()=>ve.ref.current.focus())}),P=v.useCallback((ee,ce,J)=>{const ve=!oe.current&&!J;(j.value!==void 0&&j.value===ce||ve)&&(ae(ee),ve&&(oe.current=!0))},[j.value]),K=v.useCallback(()=>O==null?void 0:O.focus(),[O]),W=v.useCallback((ee,ce,J)=>{const ve=!oe.current&&!J;(j.value!==void 0&&j.value===ce||ve)&&me(ee)},[j.value]),te=i==="popper"?uf:Rb,ie=te===uf?{side:h,sideOffset:y,align:p,alignOffset:x,arrowPadding:g,collisionBoundary:w,collisionPadding:N,sticky:T,hideWhenDetached:E,avoidCollisions:C}:{};return f.jsx(Cb,{scope:o,content:O,viewport:B,onViewportChange:G,itemRefCallback:P,selectedItem:$,onItemLeave:K,itemTextRefCallback:W,focusSelectedItem:Y,selectedItemText:re,position:i,isPositioned:se,searchRef:F,children:f.jsx(kf,{as:bR,allowPinchZoom:!0,children:f.jsx(Of,{asChild:!0,trapped:j.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:De(c,ee=>{var ce;(ce=j.trigger)==null||ce.focus({preventScroll:!0}),ee.preventDefault()}),children:f.jsx(Mf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:f.jsx(te,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:ee=>ee.preventDefault(),...A,...ie,onPlaced:()=>ue(!0),ref:V,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:De(A.onKeyDown,ee=>{const ce=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!ce&&ee.key.length===1&&R(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let ve=fe().filter(be=>!be.disabled).map(be=>be.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(ve=ve.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const be=ee.target,Se=ve.indexOf(be);ve=ve.slice(Se+1)}setTimeout(()=>M(ve)),ee.preventDefault()}})})})})})})});Ab.displayName=yR;var xR="SelectItemAlignedPosition",Rb=v.forwardRef((n,l)=>{const{__scopeSelect:o,onPlaced:i,...c}=n,d=ll(kl,o),m=rl(kl,o),[h,y]=v.useState(null),[p,x]=v.useState(null),g=tt(l,V=>x(V)),w=cc(o),N=v.useRef(!1),T=v.useRef(!0),{viewport:E,selectedItem:C,selectedItemText:A,focusSelectedItem:j}=m,O=v.useCallback(()=>{if(d.trigger&&d.valueNode&&h&&p&&E&&C&&A){const V=d.trigger.getBoundingClientRect(),$=p.getBoundingClientRect(),ae=d.valueNode.getBoundingClientRect(),re=A.getBoundingClientRect();if(d.dir!=="rtl"){const be=re.left-$.left,Se=ae.left-be,He=V.left-Se,je=V.width+He,Ve=Math.max(je,$.width),dt=window.innerWidth-Tn,Pe=Yv(Se,[Tn,Math.max(Tn,dt-Ve)]);h.style.minWidth=je+"px",h.style.left=Pe+"px"}else{const be=$.right-re.right,Se=window.innerWidth-ae.right-be,He=window.innerWidth-V.right-Se,je=V.width+He,Ve=Math.max(je,$.width),dt=window.innerWidth-Tn,Pe=Yv(Se,[Tn,Math.max(Tn,dt-Ve)]);h.style.minWidth=je+"px",h.style.right=Pe+"px"}const me=w(),fe=window.innerHeight-Tn*2,se=E.scrollHeight,ue=window.getComputedStyle(p),oe=parseInt(ue.borderTopWidth,10),M=parseInt(ue.paddingTop,10),Y=parseInt(ue.borderBottomWidth,10),I=parseInt(ue.paddingBottom,10),de=oe+M+se+I+Y,F=Math.min(C.offsetHeight*5,de),R=window.getComputedStyle(E),P=parseInt(R.paddingTop,10),K=parseInt(R.paddingBottom,10),W=V.top+V.height/2-Tn,te=fe-W,ie=C.offsetHeight/2,ee=C.offsetTop+ie,ce=oe+M+ee,J=de-ce;if(ce<=W){const be=me.length>0&&C===me[me.length-1].ref.current;h.style.bottom="0px";const Se=p.clientHeight-E.offsetTop-E.offsetHeight,He=Math.max(te,ie+(be?K:0)+Se+Y),je=ce+He;h.style.height=je+"px"}else{const be=me.length>0&&C===me[0].ref.current;h.style.top="0px";const He=Math.max(W,oe+E.offsetTop+(be?P:0)+ie)+J;h.style.height=He+"px",E.scrollTop=ce-W+E.offsetTop}h.style.margin=`${Tn}px 0`,h.style.minHeight=F+"px",h.style.maxHeight=fe+"px",i==null||i(),requestAnimationFrame(()=>N.current=!0)}},[w,d.trigger,d.valueNode,h,p,E,C,A,d.dir,i]);zt(()=>O(),[O]);const[z,B]=v.useState();zt(()=>{p&&B(window.getComputedStyle(p).zIndex)},[p]);const G=v.useCallback(V=>{V&&T.current===!0&&(O(),j==null||j(),T.current=!1)},[O,j]);return f.jsx(wR,{scope:o,contentWrapper:h,shouldExpandOnScrollRef:N,onScrollButtonChange:G,children:f.jsx("div",{ref:y,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:z},children:f.jsx(Ue.div,{...c,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...c.style}})})})});Rb.displayName=xR;var SR="SelectPopperPosition",uf=v.forwardRef((n,l)=>{const{__scopeSelect:o,align:i="start",collisionPadding:c=Tn,...d}=n,m=uc(o);return f.jsx(oR,{...m,...d,ref:l,align:i,collisionPadding:c,style:{boxSizing:"border-box",...d.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});uf.displayName=SR;var[wR,Ff]=qr(kl,{}),df="SelectViewport",_b=v.forwardRef((n,l)=>{const{__scopeSelect:o,nonce:i,...c}=n,d=rl(df,o),m=Ff(df,o),h=tt(l,d.onViewportChange),y=v.useRef(0);return f.jsxs(f.Fragment,{children:[f.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:i}),f.jsx(sc.Slot,{scope:o,children:f.jsx(Ue.div,{"data-radix-select-viewport":"",role:"presentation",...c,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...c.style},onScroll:De(c.onScroll,p=>{const x=p.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:w}=m;if(w!=null&&w.current&&g){const N=Math.abs(y.current-x.scrollTop);if(N>0){const T=window.innerHeight-Tn*2,E=parseFloat(g.style.minHeight),C=parseFloat(g.style.height),A=Math.max(E,C);if(A<T){const j=A+N,O=Math.min(T,j),z=j-O;g.style.height=O+"px",g.style.bottom==="0px"&&(x.scrollTop=z>0?z:0,g.style.justifyContent="flex-end")}}}y.current=x.scrollTop})})})]})});_b.displayName=df;var jb="SelectGroup",[ER,NR]=qr(jb),TR=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,c=Fa();return f.jsx(ER,{scope:o,id:c,children:f.jsx(Ue.div,{role:"group","aria-labelledby":c,...i,ref:l})})});TR.displayName=jb;var Mb="SelectLabel",Ob=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,c=NR(Mb,o);return f.jsx(Ue.div,{id:c.id,...i,ref:l})});Ob.displayName=Mb;var Ys="SelectItem",[CR,Db]=qr(Ys),kb=v.forwardRef((n,l)=>{const{__scopeSelect:o,value:i,disabled:c=!1,textValue:d,...m}=n,h=ll(Ys,o),y=rl(Ys,o),p=h.value===i,[x,g]=v.useState(d??""),[w,N]=v.useState(!1),T=tt(l,j=>{var O;return(O=y.itemRefCallback)==null?void 0:O.call(y,j,i,c)}),E=Fa(),C=v.useRef("touch"),A=()=>{c||(h.onValueChange(i),h.onOpenChange(!1))};if(i==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return f.jsx(CR,{scope:o,value:i,disabled:c,textId:E,isSelected:p,onItemTextChange:v.useCallback(j=>{g(O=>O||((j==null?void 0:j.textContent)??"").trim())},[]),children:f.jsx(sc.ItemSlot,{scope:o,value:i,disabled:c,textValue:x,children:f.jsx(Ue.div,{role:"option","aria-labelledby":E,"data-highlighted":w?"":void 0,"aria-selected":p&&w,"data-state":p?"checked":"unchecked","aria-disabled":c||void 0,"data-disabled":c?"":void 0,tabIndex:c?void 0:-1,...m,ref:T,onFocus:De(m.onFocus,()=>N(!0)),onBlur:De(m.onBlur,()=>N(!1)),onClick:De(m.onClick,()=>{C.current!=="mouse"&&A()}),onPointerUp:De(m.onPointerUp,()=>{C.current==="mouse"&&A()}),onPointerDown:De(m.onPointerDown,j=>{C.current=j.pointerType}),onPointerMove:De(m.onPointerMove,j=>{var O;C.current=j.pointerType,c?(O=y.onItemLeave)==null||O.call(y):C.current==="mouse"&&j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:De(m.onPointerLeave,j=>{var O;j.currentTarget===document.activeElement&&((O=y.onItemLeave)==null||O.call(y))}),onKeyDown:De(m.onKeyDown,j=>{var z;((z=y.searchRef)==null?void 0:z.current)!==""&&j.key===" "||(dR.includes(j.key)&&A(),j.key===" "&&j.preventDefault())})})})})});kb.displayName=Ys;var qo="SelectItemText",zb=v.forwardRef((n,l)=>{const{__scopeSelect:o,className:i,style:c,...d}=n,m=ll(qo,o),h=rl(qo,o),y=Db(qo,o),p=pR(qo,o),[x,g]=v.useState(null),w=tt(l,A=>g(A),y.onItemTextChange,A=>{var j;return(j=h.itemTextRefCallback)==null?void 0:j.call(h,A,y.value,y.disabled)}),N=x==null?void 0:x.textContent,T=v.useMemo(()=>f.jsx("option",{value:y.value,disabled:y.disabled,children:N},y.value),[y.disabled,y.value,N]),{onNativeOptionAdd:E,onNativeOptionRemove:C}=p;return zt(()=>(E(T),()=>C(T)),[E,C,T]),f.jsxs(f.Fragment,{children:[f.jsx(Ue.span,{id:y.textId,...d,ref:w}),y.isSelected&&m.valueNode&&!m.valueNodeHasChildren?Jo.createPortal(d.children,m.valueNode):null]})});zb.displayName=qo;var Lb="SelectItemIndicator",Ub=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n;return Db(Lb,o).isSelected?f.jsx(Ue.span,{"aria-hidden":!0,...i,ref:l}):null});Ub.displayName=Lb;var ff="SelectScrollUpButton",Bb=v.forwardRef((n,l)=>{const o=rl(ff,n.__scopeSelect),i=Ff(ff,n.__scopeSelect),[c,d]=v.useState(!1),m=tt(l,i.onScrollButtonChange);return zt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=y.scrollTop>0;d(p)};const y=o.viewport;return h(),y.addEventListener("scroll",h),()=>y.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?f.jsx(Vb,{...n,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:y}=o;h&&y&&(h.scrollTop=h.scrollTop-y.offsetHeight)}}):null});Bb.displayName=ff;var mf="SelectScrollDownButton",Hb=v.forwardRef((n,l)=>{const o=rl(mf,n.__scopeSelect),i=Ff(mf,n.__scopeSelect),[c,d]=v.useState(!1),m=tt(l,i.onScrollButtonChange);return zt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=y.scrollHeight-y.clientHeight,x=Math.ceil(y.scrollTop)<p;d(x)};const y=o.viewport;return h(),y.addEventListener("scroll",h),()=>y.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?f.jsx(Vb,{...n,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:y}=o;h&&y&&(h.scrollTop=h.scrollTop+y.offsetHeight)}}):null});Hb.displayName=mf;var Vb=v.forwardRef((n,l)=>{const{__scopeSelect:o,onAutoScroll:i,...c}=n,d=rl("SelectScrollButton",o),m=v.useRef(null),h=cc(o),y=v.useCallback(()=>{m.current!==null&&(window.clearInterval(m.current),m.current=null)},[]);return v.useEffect(()=>()=>y(),[y]),zt(()=>{var x;const p=h().find(g=>g.ref.current===document.activeElement);(x=p==null?void 0:p.ref.current)==null||x.scrollIntoView({block:"nearest"})},[h]),f.jsx(Ue.div,{"aria-hidden":!0,...c,ref:l,style:{flexShrink:0,...c.style},onPointerDown:De(c.onPointerDown,()=>{m.current===null&&(m.current=window.setInterval(i,50))}),onPointerMove:De(c.onPointerMove,()=>{var p;(p=d.onItemLeave)==null||p.call(d),m.current===null&&(m.current=window.setInterval(i,50))}),onPointerLeave:De(c.onPointerLeave,()=>{y()})})}),AR="SelectSeparator",$b=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n;return f.jsx(Ue.div,{"aria-hidden":!0,...i,ref:l})});$b.displayName=AR;var hf="SelectArrow",RR=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,c=uc(o),d=ll(hf,o),m=rl(hf,o);return d.open&&m.position==="popper"?f.jsx(iR,{...c,...i,ref:l}):null});RR.displayName=hf;var _R="SelectBubbleInput",Yb=v.forwardRef(({__scopeSelect:n,value:l,...o},i)=>{const c=v.useRef(null),d=tt(i,c),m=gb(l);return v.useEffect(()=>{const h=c.current;if(!h)return;const y=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(y,"value").set;if(m!==l&&x){const g=new Event("change",{bubbles:!0});x.call(h,l),h.dispatchEvent(g)}},[m,l]),f.jsx(Ue.select,{...o,style:{...vb,...o.style},ref:d,defaultValue:l})});Yb.displayName=_R;function qb(n){return n===""||n===void 0}function Gb(n){const l=Wa(n),o=v.useRef(""),i=v.useRef(0),c=v.useCallback(m=>{const h=o.current+m;l(h),(function y(p){o.current=p,window.clearTimeout(i.current),p!==""&&(i.current=window.setTimeout(()=>y(""),1e3))})(h)},[l]),d=v.useCallback(()=>{o.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[o,c,d]}function Pb(n,l,o){const c=l.length>1&&Array.from(l).every(p=>p===l[0])?l[0]:l,d=o?n.indexOf(o):-1;let m=jR(n,Math.max(d,0));c.length===1&&(m=m.filter(p=>p!==o));const y=m.find(p=>p.textValue.toLowerCase().startsWith(c.toLowerCase()));return y!==o?y:void 0}function jR(n,l){return n.map((o,i)=>n[(l+i)%n.length])}var MR=yb,Xb=xb,OR=wb,DR=Eb,kR=Nb,Kb=Tb,zR=_b,Qb=Ob,Zb=kb,LR=zb,UR=Ub,Ib=Bb,Fb=Hb,Jb=$b;const Wb=MR,ex=OR,Jf=v.forwardRef(({className:n,children:l,...o},i)=>f.jsxs(Xb,{ref:i,className:le("flex h-10 w-full items-center justify-between rounded-sm border border-input/85 bg-background/72 px-3 py-2 text-sm shadow-sm ring-offset-background transition-all duration-200 placeholder:text-muted-foreground focus:border-primary/45 focus:bg-background/90 focus:outline-none focus:ring-2 focus:ring-ring/45 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n),...o,children:[l,f.jsx(DR,{asChild:!0,children:f.jsx(Ko,{className:"h-4 w-4 opacity-50"})})]}));Jf.displayName=Xb.displayName;const tx=v.forwardRef(({className:n,...l},o)=>f.jsx(Ib,{ref:o,className:le("flex cursor-default items-center justify-center py-1",n),...l,children:f.jsx(FE,{className:"h-4 w-4"})}));tx.displayName=Ib.displayName;const nx=v.forwardRef(({className:n,...l},o)=>f.jsx(Fb,{ref:o,className:le("flex cursor-default items-center justify-center py-1",n),...l,children:f.jsx(Ko,{className:"h-4 w-4"})}));nx.displayName=Fb.displayName;const Wf=v.forwardRef(({className:n,children:l,position:o="popper",...i},c)=>f.jsx(kR,{children:f.jsxs(Kb,{ref:c,className:le("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-lg border border-border/70 bg-popover/96 text-popover-foreground shadow-[0_20px_70px_-36px_rgba(0,0,0,0.45)] backdrop-blur-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:o,...i,children:[f.jsx(tx,{}),f.jsx(zR,{className:le("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:l}),f.jsx(nx,{})]})}));Wf.displayName=Kb.displayName;const BR=v.forwardRef(({className:n,...l},o)=>f.jsx(Qb,{ref:o,className:le("py-1.5 pl-8 pr-2 text-sm font-semibold",n),...l}));BR.displayName=Qb.displayName;const jr=v.forwardRef(({className:n,children:l,...o},i)=>f.jsxs(Zb,{ref:i,className:le("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent/80 focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...o,children:[f.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(UR,{children:f.jsx(ks,{className:"h-4 w-4"})})}),f.jsx(LR,{children:l})]}));jr.displayName=Zb.displayName;const HR=v.forwardRef(({className:n,...l},o)=>f.jsx(Jb,{ref:o,className:le("-mx-1 my-1 h-px bg-muted",n),...l}));HR.displayName=Jb.displayName;var Pd="rovingFocusGroup.onEntryFocus",VR={bubbles:!1,cancelable:!0},ei="RovingFocusGroup",[pf,ax,$R]=Xy(ei),[YR,lx]=al(ei,[$R]),[qR,GR]=YR(ei),rx=v.forwardRef((n,l)=>f.jsx(pf.Provider,{scope:n.__scopeRovingFocusGroup,children:f.jsx(pf.Slot,{scope:n.__scopeRovingFocusGroup,children:f.jsx(PR,{...n,ref:l})})}));rx.displayName=ei;var PR=v.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:c=!1,dir:d,currentTabStopId:m,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:y,onEntryFocus:p,preventScrollOnEntryFocus:x=!1,...g}=n,w=v.useRef(null),N=tt(l,w),T=Yf(d),[E,C]=kr({prop:m,defaultProp:h??null,onChange:y,caller:ei}),[A,j]=v.useState(!1),O=Wa(p),z=ax(o),B=v.useRef(!1),[G,V]=v.useState(0);return v.useEffect(()=>{const $=w.current;if($)return $.addEventListener(Pd,O),()=>$.removeEventListener(Pd,O)},[O]),f.jsx(qR,{scope:o,orientation:i,dir:T,loop:c,currentTabStopId:E,onItemFocus:v.useCallback($=>C($),[C]),onItemShiftTab:v.useCallback(()=>j(!0),[]),onFocusableItemAdd:v.useCallback(()=>V($=>$+1),[]),onFocusableItemRemove:v.useCallback(()=>V($=>$-1),[]),children:f.jsx(Ue.div,{tabIndex:A||G===0?-1:0,"data-orientation":i,...g,ref:N,style:{outline:"none",...n.style},onMouseDown:De(n.onMouseDown,()=>{B.current=!0}),onFocus:De(n.onFocus,$=>{const ae=!B.current;if($.target===$.currentTarget&&ae&&!A){const re=new CustomEvent(Pd,VR);if($.currentTarget.dispatchEvent(re),!re.defaultPrevented){const me=z().filter(M=>M.focusable),fe=me.find(M=>M.active),se=me.find(M=>M.id===E),oe=[fe,se,...me].filter(Boolean).map(M=>M.ref.current);sx(oe,x)}}B.current=!1}),onBlur:De(n.onBlur,()=>j(!1))})})}),ox="RovingFocusGroupItem",ix=v.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:c=!1,tabStopId:d,children:m,...h}=n,y=Fa(),p=d||y,x=GR(ox,o),g=x.currentTabStopId===p,w=ax(o),{onFocusableItemAdd:N,onFocusableItemRemove:T,currentTabStopId:E}=x;return v.useEffect(()=>{if(i)return N(),()=>T()},[i,N,T]),f.jsx(pf.ItemSlot,{scope:o,id:p,focusable:i,active:c,children:f.jsx(Ue.span,{tabIndex:g?0:-1,"data-orientation":x.orientation,...h,ref:l,onMouseDown:De(n.onMouseDown,C=>{i?x.onItemFocus(p):C.preventDefault()}),onFocus:De(n.onFocus,()=>x.onItemFocus(p)),onKeyDown:De(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){x.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const A=QR(C,x.orientation,x.dir);if(A!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let O=w().filter(z=>z.focusable).map(z=>z.ref.current);if(A==="last")O.reverse();else if(A==="prev"||A==="next"){A==="prev"&&O.reverse();const z=O.indexOf(C.currentTarget);O=x.loop?ZR(O,z+1):O.slice(z+1)}setTimeout(()=>sx(O))}}),children:typeof m=="function"?m({isCurrentTabStop:g,hasTabStop:E!=null}):m})})});ix.displayName=ox;var XR={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function KR(n,l){return l!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function QR(n,l,o){const i=KR(n.key,o);if(!(l==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(l==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return XR[i]}function sx(n,l=!1){const o=document.activeElement;for(const i of n)if(i===o||(i.focus({preventScroll:l}),document.activeElement!==o))return}function ZR(n,l){return n.map((o,i)=>n[(l+i)%n.length])}var IR=rx,FR=ix,dc="Tabs",[JR]=al(dc,[lx]),cx=lx(),[WR,em]=JR(dc),ux=v.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,onValueChange:c,defaultValue:d,orientation:m="horizontal",dir:h,activationMode:y="automatic",...p}=n,x=Yf(h),[g,w]=kr({prop:i,onChange:c,defaultProp:d??"",caller:dc});return f.jsx(WR,{scope:o,baseId:Fa(),value:g,onValueChange:w,orientation:m,dir:x,activationMode:y,children:f.jsx(Ue.div,{dir:x,"data-orientation":m,...p,ref:l})})});ux.displayName=dc;var dx="TabsList",fx=v.forwardRef((n,l)=>{const{__scopeTabs:o,loop:i=!0,...c}=n,d=em(dx,o),m=cx(o);return f.jsx(IR,{asChild:!0,...m,orientation:d.orientation,dir:d.dir,loop:i,children:f.jsx(Ue.div,{role:"tablist","aria-orientation":d.orientation,...c,ref:l})})});fx.displayName=dx;var mx="TabsTrigger",hx=v.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,disabled:c=!1,...d}=n,m=em(mx,o),h=cx(o),y=vx(m.baseId,i),p=yx(m.baseId,i),x=i===m.value;return f.jsx(FR,{asChild:!0,...h,focusable:!c,active:x,children:f.jsx(Ue.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":p,"data-state":x?"active":"inactive","data-disabled":c?"":void 0,disabled:c,id:y,...d,ref:l,onMouseDown:De(n.onMouseDown,g=>{!c&&g.button===0&&g.ctrlKey===!1?m.onValueChange(i):g.preventDefault()}),onKeyDown:De(n.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&m.onValueChange(i)}),onFocus:De(n.onFocus,()=>{const g=m.activationMode!=="manual";!x&&!c&&g&&m.onValueChange(i)})})})});hx.displayName=mx;var px="TabsContent",gx=v.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,forceMount:c,children:d,...m}=n,h=em(px,o),y=vx(h.baseId,i),p=yx(h.baseId,i),x=i===h.value,g=v.useRef(x);return v.useEffect(()=>{const w=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(w)},[]),f.jsx(Vr,{present:c||x,children:({present:w})=>f.jsx(Ue.div,{"data-state":x?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":y,hidden:!w,id:p,tabIndex:0,...m,ref:l,style:{...n.style,animationDuration:g.current?"0s":void 0},children:w&&d})})});gx.displayName=px;function vx(n,l){return`${n}-trigger-${l}`}function yx(n,l){return`${n}-content-${l}`}var e_=ux,bx=fx,xx=hx,Sx=gx;const t_=e_,wx=v.forwardRef(({className:n,...l},o)=>f.jsx(bx,{ref:o,className:le("inline-flex h-10 items-center justify-center rounded-lg bg-muted/72 p-1 text-muted-foreground shadow-inner shadow-background/40",n),...l}));wx.displayName=bx.displayName;const js=v.forwardRef(({className:n,...l},o)=>f.jsx(xx,{ref:o,className:le("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-semibold ring-offset-background transition-all duration-200 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary/12 data-[state=active]:text-primary data-[state=active]:shadow-[0_10px_28px_-18px_hsl(var(--primary)/0.85)]",n),...l}));js.displayName=xx.displayName;const qs=v.forwardRef(({className:n,...l},o)=>f.jsx(Sx,{ref:o,className:le("mt-2 ring-offset-background data-[state=inactive]:hidden focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n),...l}));qs.displayName=Sx.displayName;var Ex="AlertDialog",[n_]=al(Ex,[wy]),wa=wy(),Nx=n=>{const{__scopeAlertDialog:l,...o}=n,i=wa(l);return f.jsx(By,{...i,...o,modal:!0})};Nx.displayName=Ex;var a_="AlertDialogTrigger",Tx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,c=wa(o);return f.jsx(Hy,{...c,...i,ref:l})});Tx.displayName=a_;var l_="AlertDialogPortal",Cx=n=>{const{__scopeAlertDialog:l,...o}=n,i=wa(l);return f.jsx(Vy,{...i,...o})};Cx.displayName=l_;var r_="AlertDialogOverlay",Ax=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,c=wa(o);return f.jsx(Bf,{...c,...i,ref:l})});Ax.displayName=r_;var Dr="AlertDialogContent",[o_,i_]=n_(Dr),s_=xC("AlertDialogContent"),Rx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,children:i,...c}=n,d=wa(o),m=v.useRef(null),h=tt(l,m),y=v.useRef(null);return f.jsx(L5,{contentName:Dr,titleName:_x,docsSlug:"alert-dialog",children:f.jsx(o_,{scope:o,cancelRef:y,children:f.jsxs(Hf,{role:"alertdialog",...d,...c,ref:h,onOpenAutoFocus:De(c.onOpenAutoFocus,p=>{var x;p.preventDefault(),(x=y.current)==null||x.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[f.jsx(s_,{children:i}),f.jsx(u_,{contentRef:m})]})})})});Rx.displayName=Dr;var _x="AlertDialogTitle",jx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,c=wa(o);return f.jsx(Vf,{...c,...i,ref:l})});jx.displayName=_x;var Mx="AlertDialogDescription",Ox=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,c=wa(o);return f.jsx($f,{...c,...i,ref:l})});Ox.displayName=Mx;var c_="AlertDialogAction",Dx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,c=wa(o);return f.jsx(ac,{...c,...i,ref:l})});Dx.displayName=c_;var kx="AlertDialogCancel",zx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,{cancelRef:c}=i_(kx,o),d=wa(o),m=tt(l,c);return f.jsx(ac,{...d,...i,ref:m})});zx.displayName=kx;var u_=({contentRef:n})=>{const l=`\`${Dr}\` requires a description for the component to be accessible for screen reader users.
311
+
312
+ You can add a description to the \`${Dr}\` by passing a \`${Mx}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
313
+
314
+ Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Dr}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
315
+
316
+ For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return v.useEffect(()=>{var i;document.getElementById((i=n.current)==null?void 0:i.getAttribute("aria-describedby"))||console.warn(l)},[l,n]),null},d_=Nx,f_=Tx,m_=Cx,Lx=Ax,Ux=Rx,Bx=Dx,Hx=zx,Vx=jx,$x=Ox;const gf=d_,vf=f_,h_=m_,Yx=v.forwardRef(({className:n,...l},o)=>f.jsx(Lx,{className:le("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...l,ref:o}));Yx.displayName=Lx.displayName;const Gs=v.forwardRef(({className:n,...l},o)=>f.jsxs(h_,{children:[f.jsx(Yx,{}),f.jsx(Ux,{ref:o,className:le("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-xl border bg-background p-6 shadow-[0_34px_110px_-54px_rgba(0,0,0,0.55)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n),...l})]}));Gs.displayName=Ux.displayName;const Ps=({className:n,...l})=>f.jsx("div",{className:le("flex flex-col space-y-2 text-center sm:text-left",n),...l});Ps.displayName="AlertDialogHeader";const Xs=({className:n,...l})=>f.jsx("div",{className:le("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...l});Xs.displayName="AlertDialogFooter";const Ks=v.forwardRef(({className:n,...l},o)=>f.jsx(Vx,{ref:o,className:le("text-lg font-semibold",n),...l}));Ks.displayName=Vx.displayName;const Qs=v.forwardRef(({className:n,...l},o)=>f.jsx($x,{ref:o,className:le("text-sm text-muted-foreground",n),...l}));Qs.displayName=$x.displayName;const Zs=v.forwardRef(({className:n,...l},o)=>f.jsx(Bx,{ref:o,className:le(jf(),n),...l}));Zs.displayName=Bx.displayName;const Is=v.forwardRef(({className:n,...l},o)=>f.jsx(Hx,{ref:o,className:le(jf({variant:"outline"}),"mt-2 sm:mt-0",n),...l}));Is.displayName=Hx.displayName;const p_={online:"bg-green-500",busy:"bg-yellow-500",offline:"bg-red-500"};function g_({status:n}){return f.jsxs("span",{className:"relative inline-flex h-2.5 w-2.5",children:[n==="online"&&f.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-green-500 opacity-30"}),f.jsx("span",{className:le("relative inline-flex h-2.5 w-2.5 rounded-full",p_[n])})]})}function v_({role:n,size:l="default"}){return f.jsx(St,{variant:n==="leader"?"default":"secondary",className:le(l==="compact"?"px-1.5 py-0 text-[9px] leading-4":"text-[11px]"),children:n})}const qx={pending:{variant:"secondary",dotClass:"bg-muted-foreground",className:"border-transparent bg-muted/55 text-muted-foreground"},assigned:{variant:"outline",dotClass:"bg-teal-500",className:"border-teal-500/20 bg-teal-500/8 text-teal-700 dark:text-teal-300"},running:{variant:"outline",dotClass:"bg-amber-500",className:"border-amber-500/22 bg-amber-500/9 text-amber-700 dark:text-amber-300"},completed:{variant:"outline",dotClass:"bg-emerald-500",className:"border-emerald-500/18 bg-emerald-500/8 text-emerald-700 dark:text-emerald-300"},failed:{variant:"destructive",dotClass:"bg-red-200",className:"border-destructive/20 bg-destructive/90 text-destructive-foreground"},cancelled:{variant:"secondary",dotClass:"bg-muted-foreground",className:"border-transparent bg-muted/55 text-muted-foreground"},archived:{variant:"secondary",dotClass:"bg-slate-400",className:"border-transparent bg-muted/50 text-muted-foreground"}};function Jj({status:n,size:l="default"}){const o=qx[n],i=l==="compact"?"gap-0.5 px-1 py-0 text-[8px] leading-3 [&>span]:h-[3px] [&>span]:w-[3px]":"gap-1 px-1.5 py-0 text-[10px] leading-4 [&>span]:h-[5px] [&>span]:w-[5px]";return f.jsxs(St,{variant:o.variant,className:le("rounded-sm font-medium shadow-none",i,o.className),children:[f.jsx("span",{className:le("rounded-full",o.dotClass)}),n]})}function Wj({status:n,isNative:l=!1,size:o="default",className:i}){const c=qx[n],d=[n,l?"native":null].filter(Boolean).join(", "),m=o==="compact"?"h-1.5 w-1.5":"h-2 w-2";return f.jsxs("span",{className:le("inline-flex shrink-0 items-center gap-1",i),title:d,"aria-label":d,children:[f.jsx("span",{className:le("rounded-full",m,c.dotClass),title:n}),l&&f.jsx("span",{className:le("rounded-full bg-sky-500",m),title:"native"})]})}const y_={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function eM({priority:n}){const l=y_[n];return f.jsx(St,{variant:l.variant,className:"rounded-sm px-1.5 py-0 text-[10px] leading-4 shadow-none",children:l.label})}function b_(n){return[{key:"workspace",label:"Workspace",value:n==null?void 0:n.workspace},{key:"node",label:"Node app",value:n==null?void 0:n.node},{key:"core",label:"Core",value:n==null?void 0:n.core},{key:"dashboard",label:"Dashboard",value:n==null?void 0:n.dashboard},{key:"api",label:"API",value:n==null?void 0:n.api}].filter(o=>o.value)}function Ar({label:n,value:l,mono:o=!1}){return f.jsxs("div",{className:"min-w-0 rounded-lg border border-border/60 bg-background/65 px-2.5 py-1.5",children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:n}),f.jsx("div",{className:o?"mt-0.5 break-all font-mono text-[11px] text-foreground":"mt-0.5 break-all text-[11px] text-foreground",children:l})]})}function x_({formatDateTime:n,viewInfo:l}){var i,c,d,m,h,y,p,x;const o=b_(l.packages);return f.jsxs(qs,{value:"about","data-about-layout":"compact",className:"mt-0 space-y-2",children:[f.jsxs(Yn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(qn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Gn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(qE,{className:"h-3.5 w-3.5 text-primary"}),"Repository & runtime"]}),f.jsx(Pn,{className:"text-[10px]",children:"Build source and runtime identity for this node."})]}),f.jsxs(Xn,{className:"space-y-2 px-3 pb-2.5",children:[(i=l.repository)!=null&&i.url?f.jsxs("a",{href:l.repository.url,target:"_blank",rel:"noreferrer",className:"group flex min-w-0 items-center justify-between gap-2 rounded-lg border border-border/70 bg-background/70 px-2.5 py-1.5 text-[11px] text-foreground transition-colors hover:border-primary/40 hover:bg-primary/5",children:[f.jsx("span",{className:"truncate font-mono text-[10px]",children:l.repository.url}),f.jsx(sN,{className:"h-3.5 w-3.5 shrink-0 text-muted-foreground transition-transform group-hover:-translate-y-0.5 group-hover:translate-x-0.5"})]}):f.jsx("div",{className:"rounded-lg border border-dashed border-border/70 bg-muted/20 px-2.5 py-1.5 text-[11px] text-muted-foreground",children:"Repository URL is unavailable in this runtime."}),f.jsxs("div",{className:"grid gap-1.5 sm:grid-cols-2 lg:grid-cols-3",children:[f.jsx(Ar,{label:"Branch",value:((c=l.repository)==null?void 0:c.branch)??"Unavailable",mono:!!((d=l.repository)!=null&&d.branch)}),f.jsx(Ar,{label:"Commit",value:((m=l.repository)==null?void 0:m.commit)??"Unavailable",mono:!!((h=l.repository)!=null&&h.commit)}),f.jsx(Ar,{label:"Runtime",value:`${l.packageName??"meshy"} ${l.version}`,mono:!0}),f.jsx(Ar,{label:"Node.js",value:((y=l.runtime)==null?void 0:y.nodeVersion)??"Unavailable",mono:!!((p=l.runtime)!=null&&p.nodeVersion)}),f.jsx(Ar,{label:"PID",value:l.runtime?String(l.runtime.pid):"Unavailable",mono:!!l.runtime}),f.jsx(Ar,{label:"Started",value:n((x=l.runtime)==null?void 0:x.startedAt)})]})]})]}),f.jsxs(Yn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(qn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Gn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(hN,{className:"h-3.5 w-3.5 text-primary"}),"Package versions"]}),f.jsx(Pn,{className:"text-[10px]",children:"Version snapshot for the packages most relevant to this dashboard session."})]}),f.jsx(Xn,{"data-package-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:o.map(g=>{var w,N;return f.jsxs("div",{className:"grid gap-1.5 rounded-lg border border-border/60 bg-background/65 px-2.5 py-1.5 sm:grid-cols-[9rem_minmax(0,1fr)_auto] sm:items-center",children:[f.jsx("div",{className:"text-[11px] font-medium text-foreground",children:g.label}),f.jsx("div",{className:"min-w-0 truncate text-[10px] text-muted-foreground",children:(w=g.value)==null?void 0:w.name}),f.jsx(St,{variant:"outline",className:"w-fit rounded-sm border-border/70 bg-background/60 font-mono text-[10px]",children:(N=g.value)==null?void 0:N.version})]},g.key)})})]})]})}var fc="Checkbox",[S_]=al(fc),[w_,tm]=S_(fc);function E_(n){const{__scopeCheckbox:l,checked:o,children:i,defaultChecked:c,disabled:d,form:m,name:h,onCheckedChange:y,required:p,value:x="on",internal_do_not_use_render:g}=n,[w,N]=kr({prop:o,defaultProp:c??!1,onChange:y,caller:fc}),[T,E]=v.useState(null),[C,A]=v.useState(null),j=v.useRef(!1),O=T?!!m||!!T.closest("form"):!0,z={checked:w,disabled:d,setChecked:N,control:T,setControl:E,name:h,form:m,value:x,hasConsumerStoppedPropagationRef:j,required:p,defaultChecked:Ja(c)?!1:c,isFormControl:O,bubbleInput:C,setBubbleInput:A};return f.jsx(w_,{scope:l,...z,children:N_(g)?g(z):i})}var Gx="CheckboxTrigger",Px=v.forwardRef(({__scopeCheckbox:n,onKeyDown:l,onClick:o,...i},c)=>{const{control:d,value:m,disabled:h,checked:y,required:p,setControl:x,setChecked:g,hasConsumerStoppedPropagationRef:w,isFormControl:N,bubbleInput:T}=tm(Gx,n),E=tt(c,x),C=v.useRef(y);return v.useEffect(()=>{const A=d==null?void 0:d.form;if(A){const j=()=>g(C.current);return A.addEventListener("reset",j),()=>A.removeEventListener("reset",j)}},[d,g]),f.jsx(Ue.button,{type:"button",role:"checkbox","aria-checked":Ja(y)?"mixed":y,"aria-required":p,"data-state":Ix(y),"data-disabled":h?"":void 0,disabled:h,value:m,...i,ref:E,onKeyDown:De(l,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:De(o,A=>{g(j=>Ja(j)?!0:!j),T&&N&&(w.current=A.isPropagationStopped(),w.current||A.stopPropagation())})})});Px.displayName=Gx;var nm=v.forwardRef((n,l)=>{const{__scopeCheckbox:o,name:i,checked:c,defaultChecked:d,required:m,disabled:h,value:y,onCheckedChange:p,form:x,...g}=n;return f.jsx(E_,{__scopeCheckbox:o,checked:c,defaultChecked:d,disabled:h,required:m,onCheckedChange:p,name:i,form:x,value:y,internal_do_not_use_render:({isFormControl:w})=>f.jsxs(f.Fragment,{children:[f.jsx(Px,{...g,ref:l,__scopeCheckbox:o}),w&&f.jsx(Zx,{__scopeCheckbox:o})]})})});nm.displayName=fc;var Xx="CheckboxIndicator",Kx=v.forwardRef((n,l)=>{const{__scopeCheckbox:o,forceMount:i,...c}=n,d=tm(Xx,o);return f.jsx(Vr,{present:i||Ja(d.checked)||d.checked===!0,children:f.jsx(Ue.span,{"data-state":Ix(d.checked),"data-disabled":d.disabled?"":void 0,...c,ref:l,style:{pointerEvents:"none",...n.style}})})});Kx.displayName=Xx;var Qx="CheckboxBubbleInput",Zx=v.forwardRef(({__scopeCheckbox:n,...l},o)=>{const{control:i,hasConsumerStoppedPropagationRef:c,checked:d,defaultChecked:m,required:h,disabled:y,name:p,value:x,form:g,bubbleInput:w,setBubbleInput:N}=tm(Qx,n),T=tt(o,N),E=gb(d),C=rb(i);v.useEffect(()=>{const j=w;if(!j)return;const O=window.HTMLInputElement.prototype,B=Object.getOwnPropertyDescriptor(O,"checked").set,G=!c.current;if(E!==d&&B){const V=new Event("click",{bubbles:G});j.indeterminate=Ja(d),B.call(j,Ja(d)?!1:d),j.dispatchEvent(V)}},[w,E,d,c]);const A=v.useRef(Ja(d)?!1:d);return f.jsx(Ue.input,{type:"checkbox","aria-hidden":!0,defaultChecked:m??A.current,required:h,disabled:y,name:p,value:x,form:g,...l,tabIndex:-1,ref:T,style:{...l.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Zx.displayName=Qx;function N_(n){return typeof n=="function"}function Ja(n){return n==="indeterminate"}function Ix(n){return Ja(n)?"indeterminate":n?"checked":"unchecked"}const Fx=v.forwardRef(({className:n,...l},o)=>f.jsx(nm,{ref:o,className:le("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",n),...l,children:f.jsx(Kx,{className:le("flex items-center justify-center text-current"),children:f.jsx(ks,{className:"h-3.5 w-3.5"})})}));Fx.displayName=nm.displayName;const am=v.forwardRef(({className:n,type:l,...o},i)=>f.jsx("input",{type:l,className:le("flex h-10 w-full rounded-sm border border-input/85 bg-background/72 px-3 py-2 text-sm shadow-sm ring-offset-background transition-all duration-200 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground/75 focus-visible:border-primary/45 focus-visible:bg-background/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/45 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n),ref:i,...o}));am.displayName="Input";const e0=["queued","running"];function T_(n){return n.map(l=>`${l.id}:${l.name}`).join("\0")}function C_(n){return n==="claude"||n==="codex"||n==="copilot"}function Jx(n){var o;if(n.kind!=="agent.upgrade")return null;const l=(o=n.payload)==null?void 0:o.agent;return C_(l)?`${n.nodeId}:${l}`:null}function A_(n){return n.status==="succeeded"||n.status==="failed"}async function Wx(n,l={}){const o=l.getOperation??pE,i=l.pollIntervalMs??2e3,c=l.timeoutMs??24e4,d=Date.now()+c;let m=n;for(;!A_(m)&&Date.now()<d;)await __(i),m=await o(n.id);return m}async function R_(n,l=gE){const o=new Set(n),i=await Promise.all(e0.map(d=>l({kind:"agent.upgrade",status:d}))),c=new Map;for(const d of i.flat()){if(!e0.includes(d.status)||o.size>0&&!o.has(d.nodeId))continue;const m=Jx(d);if(!m)continue;const h=c.get(m);(!h||d.updatedAt>h.updatedAt)&&c.set(m,d)}return c}function __(n){return new Promise(l=>setTimeout(l,n))}const j_=1500,M_=1e3,O_=9e4;async function e1(n={}){const l=n.fetchHealth??D_,o=n.initialDelayMs??j_,i=n.pollIntervalMs??M_,c=n.previousPid,d=n.reload??(()=>window.location.reload()),m=n.sleep??z_,h=n.timeoutMs??O_,y=Date.now()+h;let p=!1;for(o>0&&await m(o);Date.now()<=y;){const x=k_(await l());if(!x.ok){p=!0,await m(i);continue}if(c===void 0||x.pid!==void 0&&x.pid!==c||p)return d(),!0;await m(i)}return!1}async function D_(){try{const n=await fetch("/api/system/health",{cache:"no-store"}),l=await n.json().catch(()=>null),o=l&&typeof l=="object"&&typeof l.pid=="number"?l.pid:void 0;return{ok:n.ok,pid:o}}catch{return!1}}function k_(n){return typeof n=="boolean"?{ok:n}:n}function z_(n){return new Promise(l=>window.setTimeout(l,n))}function L_(n,l=!0){return l?(n==null?void 0:n.restartMode)==="development"?"Restart dev runtime":n!=null&&n.updateAvailable?"Restart to update":"Restart runtime":n!=null&&n.updateAvailable?"Restart follower to update":"Restart follower"}function U_({checkedLabel:n,disableAuthDefault:l,endpoint:o,isLiveLocalNode:i,nodeId:c,nodeName:d,onRefresh:m,pid:h,transportType:y,update:p,workDir:x}){const g=L_(p,i),[w,N]=v.useState(null),[T,E]=v.useState(()=>t0({disableAuthDefault:l,endpoint:o,nodeName:d,transportType:y,workDir:x})),[C,A]=v.useState(!1),[j,O]=v.useState(!1),[z,B]=v.useState(!1);v.useEffect(()=>{E(t0({disableAuthDefault:l,endpoint:o,nodeName:d,transportType:y,workDir:x}))},[l,o,d,y,x]);async function G(){if(!c||C||j)return;const re=p.updateAvailable?"update":"restart",me=V_(T);if(T.port.trim()&&(me==null?void 0:me.port)===void 0){Ge.error("Runtime restart port must be a positive integer");return}const fe=me?{reason:re,startArgs:me}:{reason:re};A(!0);try{if(i){const M=await O0(fe);N({...M,pid:M.pid??h,status:"accepted"}),Ge.info(`Restarting ${d} from a detached helper. PID ${M.pid??h??"unknown"} will not stay attached to the original terminal window; follow ${M.logPath} for launch output.`),e1({previousPid:M.pid??h}).then(Y=>{Y||(A(!1),Ge.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout. Refresh the page after the node finishes starting."))}).catch(Y=>{A(!1),Ge.error(Y instanceof Error?Y.message:"Runtime restart recovery failed")});return}const se=await yE(c,fe);N({operationId:se.id,pid:h,status:se.status}),Ge.info(`Restart requested on ${d}. Operation ${Xd(se.id)} will hand off to a detached process, so the new runtime will not stay attached to the original terminal window.`);const ue=await Wx(se,{timeoutMs:6e4}),oe=H_(ue);N({command:oe==null?void 0:oe.command,logPath:oe==null?void 0:oe.logPath,mode:oe==null?void 0:oe.mode,operationId:ue.id,pid:(oe==null?void 0:oe.pid)??h,status:ue.status}),ue.status==="succeeded"?(await(m==null?void 0:m()),Ge.success(`Restart handoff accepted on ${d}. Follow ${(oe==null?void 0:oe.logPath)??"the node restart log"} for launch output.`)):ue.status==="failed"?Ge.error(ue.error??`Restart failed on ${d}`):Ge.info(`Restart operation ${Xd(ue.id)} is still ${ue.status}. More details will update after the node reports back.`),A(!1)}catch(se){A(!1),Ge.error(se instanceof Error?se.message:"Runtime restart failed")}}async function V(){if(!(!i||C||j)){O(!0);try{const re=await mE();Ge.info(`Stopping Meshy process ${re.pid}`)}catch(re){O(!1),Ge.error(re instanceof Error?re.message:"Runtime stop failed")}}}const $=C?"restarting":j?"stopping":(w==null?void 0:w.status)??"idle",ae=p.restartMode==="development";return f.jsxs("div",{className:"rounded-xl border border-border/70 bg-background/70 overflow-hidden",children:[f.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2 border-b border-border/50",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Ds,{className:"h-3.5 w-3.5 text-primary shrink-0"}),f.jsxs("div",{children:[f.jsx("div",{className:"text-[11px] font-semibold text-foreground leading-tight",children:"Runtime"}),f.jsx("div",{className:"text-[10px] text-muted-foreground leading-tight",children:ae?"Development launcher":`Latest ${p.latestVersion??"—"}`})]})]}),f.jsx("div",{className:"flex items-center gap-1.5",children:f.jsx(St,{variant:p.updateAvailable?"default":"outline",className:"rounded-full border-border/70 bg-background/60 font-mono text-[10px] px-2 py-0.5",children:ae?"dev":p.updateAvailable?`→ ${p.latestVersion}`:"current"})})]}),f.jsxs("div",{className:"grid grid-cols-2 divide-x divide-border/50 border-b border-border/50",children:[f.jsxs("div",{className:"px-3 py-1.5",children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:"PID"}),f.jsx("div",{className:"mt-0.5 font-mono text-[11px] text-foreground",children:h??"—"})]}),f.jsxs("div",{className:"px-3 py-1.5",children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:"Status"}),f.jsx("div",{className:"mt-0.5 text-[11px] text-foreground capitalize",children:$})]})]}),f.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2",children:[f.jsxs("div",{className:"text-[10px] text-muted-foreground",children:["Checked ",n]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[i&&f.jsxs(gf,{children:[f.jsx(vf,{asChild:!0,children:f.jsxs(yn,{type:"button",size:"sm",variant:"ghost",disabled:C||j,className:"h-7 rounded-lg px-2 text-[11px] text-muted-foreground hover:text-destructive hover:bg-destructive/10",children:[f.jsx(xN,{className:le("mr-1 h-3.5 w-3.5",j&&"animate-pulse")}),j?"Stopping":"Stop"]})}),f.jsxs(Gs,{className:"max-w-[22rem] rounded-xl gap-2 p-4",children:[f.jsxs(Ps,{className:"space-y-1",children:[f.jsx(Ks,{className:"text-sm",children:"Stop runtime?"}),f.jsx(Qs,{className:"text-[11px] leading-4",children:"Gracefully stops the current Meshy process without launching a replacement. The dashboard will disconnect until the node is started again."})]}),f.jsxs(Xs,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(Is,{className:"h-7 rounded-lg px-2 text-[11px]",children:"Cancel"}),f.jsx(Zs,{className:"h-7 rounded-lg px-2 text-[11px] bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:()=>void V(),children:"Stop runtime"})]})]})]}),f.jsxs(gf,{children:[f.jsx(vf,{asChild:!0,children:f.jsxs(yn,{type:"button",size:"sm",variant:p.updateAvailable?"default":"outline",disabled:!c||C||j,className:"h-7 rounded-lg px-2 text-[11px]",children:[f.jsx(tf,{className:le("mr-1 h-3.5 w-3.5",C&&"animate-spin")}),C?"Restarting…":g]})}),f.jsxs(Gs,{className:"max-w-[28rem] gap-3 rounded-xl p-4",children:[f.jsxs(Ps,{className:"space-y-1",children:[f.jsxs(Ks,{className:"text-sm",children:[g,"?"]}),f.jsxs(Qs,{className:"text-[11px] leading-4",children:["Starts a detached restart helper, shuts down ",i?"the current node":d,", and brings it back with the configured launcher. The new process will not stay attached to the original terminal window."]})]}),f.jsx(B_,{value:T,onChange:E}),f.jsxs(Xs,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(Is,{className:"h-7 rounded-lg px-2 text-[11px]",children:"Cancel"}),f.jsx(Zs,{className:"h-7 rounded-lg px-2 text-[11px]",onClick:()=>void G(),children:g})]})]})]})]})]}),f.jsxs("div",{className:"border-t border-border/50",children:[f.jsxs("button",{type:"button",onClick:()=>B(re=>!re),className:"flex w-full items-center justify-between px-3 py-1.5 text-[10px] text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors",children:[f.jsxs("span",{className:"flex items-center gap-1.5",children:[f.jsx($0,{className:"h-3 w-3"}),"Restart details"]}),f.jsx(Ko,{className:le("h-3 w-3 transition-transform duration-150",z&&"rotate-180")})]}),z&&f.jsxs("div",{className:"border-t border-border/50 bg-muted/20 px-3 py-2 space-y-1",children:[f.jsx(_l,{label:"Current PID",value:h===void 0?"—":String(h),mono:h!==void 0}),f.jsx(_l,{label:"Restart PID",value:(w==null?void 0:w.pid)===void 0?"Pending":String(w.pid),mono:(w==null?void 0:w.pid)!==void 0}),f.jsx(_l,{label:"Operation",value:w!=null&&w.operationId?Xd(w.operationId):"Local direct request",mono:!!(w!=null&&w.operationId)}),f.jsx(_l,{label:"Status",value:(w==null?void 0:w.status)??(C?"requested":"idle")}),f.jsx(_l,{label:"Launcher",value:(w==null?void 0:w.command)??"Available after restart",mono:!!(w!=null&&w.command)}),f.jsx(_l,{label:"Log",value:(w==null?void 0:w.logPath)??"Available after restart",mono:!!(w!=null&&w.logPath)}),f.jsx(_l,{label:"Terminal",value:"New process is detached from original terminal"})]})]}),p.detail&&f.jsx("div",{className:"border-t border-border/50 px-3 py-1.5 text-[10px] text-muted-foreground bg-muted/20",children:p.detail})]})}function B_({onChange:n,value:l}){const o=(i,c)=>{n({...l,[i]:c})};return f.jsxs("div",{className:"rounded-lg border border-border/70 bg-muted/30 p-3 space-y-3",children:[f.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-[0.16em] text-muted-foreground",children:"Startup arguments"}),f.jsxs("div",{className:"grid gap-2 sm:grid-cols-2",children:[f.jsx(Ho,{label:"HTTP port",value:l.port,onChange:i=>o("port",i),inputMode:"numeric"}),f.jsx(Ho,{label:"Node name",value:l.name,onChange:i=>o("name",i)}),f.jsx(Ho,{label:"Join endpoint",value:l.join,onChange:i=>o("join",i),className:"sm:col-span-2"}),f.jsxs("div",{className:"space-y-1",children:[f.jsx("label",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:"Transport"}),f.jsxs(Wb,{value:l.transport,onValueChange:i=>o("transport",t1(i)),children:[f.jsx(Jf,{className:"h-7 rounded-md border-border/70 bg-background/70 px-2 text-[10px]",children:f.jsx(ex,{placeholder:"Transport"})}),f.jsxs(Wf,{children:[f.jsx(jr,{className:"py-1 text-[11px]",value:"inherit",children:"current / default"}),f.jsx(jr,{className:"py-1 text-[11px]",value:"direct",children:"direct"}),f.jsx(jr,{className:"py-1 text-[11px]",value:"devtunnel",children:"devtunnel"}),f.jsx(jr,{className:"py-1 text-[11px]",value:"tailscale",children:"tailscale"})]})]})]}),f.jsx(Ho,{label:"Working directory",value:l.workDir,onChange:i=>o("workDir",i)}),f.jsx(Ho,{label:"Config path",value:l.config,onChange:i=>o("config",i),className:"sm:col-span-2"}),f.jsxs("label",{className:"flex items-center gap-2 rounded-md border border-border/60 bg-background/60 px-2 py-1.5 text-[10px] text-foreground sm:col-span-2 cursor-pointer hover:bg-muted/40 transition-colors",children:[f.jsx(Fx,{className:"h-3.5 w-3.5",checked:l.disableAuth,onCheckedChange:i=>n({...l,disableAuth:i===!0,disableAuthKnown:!0})}),"Disable auth"]})]})]})}function Ho({className:n,inputMode:l,label:o,onChange:i,value:c}){return f.jsxs("label",{className:le("space-y-1",n),children:[f.jsx("span",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:o}),f.jsx(am,{className:"h-7 rounded-md px-2 text-[10px]",inputMode:l,value:c,onChange:d=>i(d.target.value)})]})}function _l({label:n,value:l,mono:o=!1}){return f.jsxs("div",{className:"flex items-start justify-between gap-3 text-[10px]",children:[f.jsx("span",{className:"shrink-0 uppercase tracking-[0.14em] text-muted-foreground",children:n}),f.jsx("span",{className:le("break-all text-right text-foreground",o&&"font-mono"),children:l})]})}function H_(n){const l=n.result;if(!l||typeof l!="object")return null;const o=l;return o.ok!==!0||typeof o.command!="string"||typeof o.logPath!="string"?null:{ok:!0,mode:o.mode==="package"?"package":"development",command:o.command,logPath:o.logPath,pid:typeof o.pid=="number"?o.pid:void 0}}function t0(n){return{port:$_(n.endpoint),name:n.nodeName,join:"",transport:t1(n.transportType),workDir:n.workDir??"",config:"",disableAuth:n.disableAuthDefault===!0,disableAuthKnown:n.disableAuthDefault!==void 0}}function V_(n){const l={},o=Number(n.port.trim());return n.port.trim()&&Number.isInteger(o)&&o>0&&(l.port=o),n.name.trim()&&(l.name=n.name.trim()),n.join.trim()&&(l.join=n.join.trim()),n.transport!=="inherit"&&(l.transport=n.transport),n.workDir.trim()&&(l.workDir=n.workDir.trim()),n.config.trim()&&(l.config=n.config.trim()),n.disableAuthKnown&&(l.disableAuth=n.disableAuth),Object.keys(l).length>0?l:void 0}function t1(n){return n==="direct"||n==="devtunnel"||n==="tailscale"?n:"inherit"}function $_(n){if(!n)return"";try{return new URL(n).port||""}catch{return""}}function Xd(n){return n.length<=8?n:n.slice(0,8)}function Vo({formatDateTime:n,name:l,status:o,statusVariant:i}){return f.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-lg border border-border/60 bg-background/70 px-2.5 py-1.5",children:[f.jsxs("div",{children:[f.jsx("div",{className:"text-[11px] font-medium text-foreground",children:l}),f.jsx("div",{className:"text-[10px] text-muted-foreground",children:n(o==null?void 0:o.checkedAt)})]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[typeof(o==null?void 0:o.authenticated)=="boolean"&&f.jsx(St,{variant:o.authenticated?"default":"outline",className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:o.authenticated?"auth ok":"auth required"}),f.jsx(St,{variant:i(o==null?void 0:o.status),className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:(o==null?void 0:o.status)??"unknown"})]})]})}function Zt(n){if(n==null||n==="")return"Unavailable";const l=new Date(n);return Number.isNaN(l.getTime())?"Unavailable":new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(l)}function Y_(n){const l=Math.max(0,Math.floor(n)),o=Math.floor(l/86400),i=Math.floor(l%86400/3600),c=Math.floor(l%3600/60);return o>0?`${o}d ${i}h`:i>0?`${i}h ${c}m`:`${c}m`}function n0(n){if(n==null||Number.isNaN(n))return"Unavailable";const l=["B","KB","MB","GB","TB"];let o=n,i=0;for(;o>=1024&&i<l.length-1;)o/=1024,i+=1;return`${o.toFixed(o>=10||i===0?0:1)} ${l[i]}`}function _r(n){return n==="ok"?"default":n==="missing"||n==="install-failed"||n==="login-failed"?"destructive":n==="not-authenticated"||n==="unsupported-platform"?"outline":"secondary"}function q_(n){return n.available?f.jsxs(St,{className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[f.jsx(Yo,{className:"h-3 w-3"}),"Available"]}):f.jsxs(St,{variant:"destructive",className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[f.jsx(nN,{className:"h-3 w-3"}),"Unavailable"]})}function G_(n){return n.update?n.update.updateAvailable?f.jsxs(St,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Update ",n.update.latestVersion]}):f.jsx(St,{variant:"secondary",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:"Up to date"}):null}function P_(n){return n.available?null:n.metadataStatus??null}function X_(n){var o;const l=`npm install -g ${(o=n.update)==null?void 0:o.packageName}@latest`;return n.id==="claude"?`${l} --include=optional --ignore-scripts=false`:l}function K_(n){if(n.error)return n.error;const l=n.result;return(l==null?void 0:l.detail)??null}function et({label:n,value:l,mono:o=!1}){return f.jsxs("div",{className:"flex items-start justify-between gap-3 border-b border-border/50 py-1 last:border-b-0 last:pb-0 first:pt-0",children:[f.jsx("span",{className:"shrink-0 text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:n}),f.jsx("span",{className:le("break-all text-right text-[11px] text-foreground",o&&"font-mono text-[11px]"),children:l})]})}function $o({label:n,value:l,mono:o=!1,className:i}){return f.jsxs("div",{className:le("min-w-0 space-y-0.5",i),children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:n}),f.jsx("div",{className:le("truncate text-[11px] text-foreground",o&&"font-mono",n==="Path"&&"break-all whitespace-normal"),children:l})]})}function Q_({agent:n,nodeName:l,activeOperation:o,onUpgrade:i}){var y,p;const c=((y=n.update)==null?void 0:y.updateAvailable)===!0,d=G_(n),m=!!o,h=P_(n);return f.jsxs("div",{className:"rounded-lg border border-border/60 bg-background/65 px-3 py-2.5 transition-colors hover:bg-background/85",children:[f.jsxs("div",{className:"grid gap-3 lg:grid-cols-[12rem_minmax(0,1fr)_auto] lg:items-start",children:[f.jsxs("div",{className:"min-w-0 space-y-1.5",children:[f.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] font-semibold text-foreground",children:[f.jsx(L0,{className:"h-3.5 w-3.5 shrink-0 text-primary"}),f.jsx("span",{className:"truncate",children:n.label})]}),f.jsxs("div",{className:"truncate text-[10px] text-muted-foreground",children:["Command: ",f.jsx("span",{className:"font-mono text-[10px]",children:n.command})]}),f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[q_(n),h&&f.jsx(St,{variant:_r(h),className:"rounded-full px-2 py-0 text-[10px] uppercase tracking-[0.14em]",children:h})]})]}),f.jsxs("div",{className:"grid min-w-0 gap-x-4 gap-y-1.5 sm:grid-cols-2",children:[f.jsx($o,{label:"Version",value:n.version??"Unavailable",mono:!!n.version}),n.update&&f.jsx($o,{label:"Latest",value:n.update.latestVersion??"Unavailable",mono:!!n.update.latestVersion}),f.jsx($o,{label:"Checked",value:Zt(n.checkedAt)}),n.update&&f.jsx($o,{label:"Update check",value:Zt(n.update.checkedAt)}),f.jsx($o,{label:"Path",value:n.path??"Not on PATH",mono:!!n.path,className:"sm:col-span-2"})]}),f.jsx("div",{className:"flex items-start justify-start lg:justify-end",children:o?f.jsxs(St,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Upgrade ",o.status]}):c?f.jsxs(gf,{children:[f.jsx(vf,{asChild:!0,children:f.jsx("button",{type:"button",disabled:m,className:"rounded-full transition duration-150 hover:-translate-y-0.5 hover:scale-[1.03] hover:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/45 focus-visible:ring-offset-2 active:translate-y-0 active:scale-95 disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:translate-y-0 disabled:hover:scale-100 disabled:hover:shadow-none",children:d})}),f.jsxs(Gs,{children:[f.jsxs(Ps,{children:[f.jsxs(Ks,{children:["Upgrade ",n.label,"?"]}),f.jsxs(Qs,{children:["This runs ",X_(n)," on ",l,". Remote nodes execute the command on the remote machine."]})]}),f.jsxs(Xs,{children:[f.jsx(Is,{children:"Cancel"}),f.jsx(Zs,{onClick:()=>i(n),children:"Upgrade"})]})]})]}):d})]}),((p=n.update)==null?void 0:p.detail)&&f.jsx("div",{className:"mt-2 rounded-md border border-border/60 bg-muted/40 px-2 py-1 text-[10px] text-muted-foreground",children:n.update.detail}),n.detail&&f.jsx("div",{className:"mt-2 rounded-md border border-border/60 bg-muted/40 px-2 py-1 text-[10px] text-muted-foreground",children:n.detail})]})}function Z_(n,l){var o;return(o=n==null?void 0:n.nodes)!=null&&o.length?n.nodes:l?[l]:[]}function I_(n,l){var i;if(l&&n.id===l.nodeId)return l;const o=n.settingsSnapshot;return{...n,nodeId:n.id,version:(o==null?void 0:o.version)??"Unavailable",packageName:o==null?void 0:o.packageName,uptime:(o==null?void 0:o.uptime)??0,localDashboardOrigin:((i=o==null?void 0:o.runtime)==null?void 0:i.localDashboardOrigin)??void 0,auth:o==null?void 0:o.auth,os:o==null?void 0:o.os,runtime:o==null?void 0:o.runtime,runtimeUpdate:o==null?void 0:o.runtimeUpdate,agents:o==null?void 0:o.agents,startupRequirements:o==null?void 0:o.startupRequirements,components:o==null?void 0:o.components,repository:o==null?void 0:o.repository,packages:o==null?void 0:o.packages}}function F_(n,l){return n.id===l?`${n.name} (this node)`:`${n.name} (${n.role})`}function J_(n){return n==="claude"?"Claude Code":n==="copilot"?"Copilot CLI":"Codex"}function W_(n){var o;const l=(o=n.payload)==null?void 0:o.agent;return l==="claude"||l==="codex"||l==="copilot"?l:null}function e3({cluster:n,systemInfo:l,sseConnected:o,initialSelectedNodeId:i,onRefresh:c}){var ae,re,me,fe,se,ue,oe,M,Y,I,de,F,R,P,K,W,te,ie,ee,ce;const d=v.useMemo(()=>Z_(n,l),[n,l]),[m,h]=v.useState(()=>{var J;return i??(l==null?void 0:l.nodeId)??((J=n==null?void 0:n.self)==null?void 0:J.id)??""}),[y,p]=v.useState(()=>new Map),x=v.useRef(new Set),g=v.useRef(new Set),w=(n==null?void 0:n.self)??l??d[0]??null,N=d.find(J=>J.id===m)??w,T=N?I_(N,l):null,E=!!(l&&N&&N.id===l.nodeId),C=E||!!(N!=null&&N.settingsSnapshot),A=T==null?void 0:T.runtimeUpdate,j=((ae=T==null?void 0:T.startupRequirements)==null?void 0:ae.components)??(T==null?void 0:T.components)??{},O=v.useMemo(()=>d.map(J=>J.id),[d]),z=O.join("\0"),B=T_(d),G=v.useMemo(()=>new Map(d.map(J=>[J.id,J.name])),[B]);v.useEffect(()=>{i&&O.includes(i)&&h(i)},[i,z]);const V=v.useCallback(async(J,ve)=>{const be=Jx(J);if(!be||x.current.has(J.id))return;const Se=W_(J),He=(ve==null?void 0:ve.agentLabel)??(Se?J_(Se):"Agent"),je=(ve==null?void 0:ve.nodeName)??G.get(J.nodeId)??J.nodeId;x.current.add(J.id),p(Ve=>new Map(Ve).set(be,J));try{const Ve=await Wx(J);if(Ve.status==="succeeded")await(c==null?void 0:c()),g.current.has(Ve.id)||(Ge.success(`${He} upgrade finished on ${je}`),g.current.add(Ve.id));else if(Ve.status==="failed")g.current.has(Ve.id)||(Ge.error(K_(Ve)??`${He} upgrade failed`),g.current.add(Ve.id));else{p(dt=>new Map(dt).set(be,Ve)),Ge.info(`${He} upgrade is still ${Ve.status} on ${je}`);return}p(dt=>{const Pe=new Map(dt),Lt=Pe.get(be);return(!Lt||Lt.id===Ve.id)&&Pe.delete(be),Pe})}catch(Ve){p(dt=>{const Pe=new Map(dt),Lt=Pe.get(be);return(!Lt||Lt.id===J.id)&&Pe.delete(be),Pe}),Ge.error(Ve instanceof Error?Ve.message:`${He} upgrade failed`)}finally{x.current.delete(J.id)}},[c,G]);v.useEffect(()=>{if(O.length===0)return;let J=!1;async function ve(){let be;try{be=await R_(O)}catch{return}if(!J){p(Se=>{const He=new Map(Se);for(const[je,Ve]of be)He.set(je,Ve);return He});for(const Se of be.values())V(Se)}}return ve(),()=>{J=!0}},[V,z]);async function $(J){if(N)try{const ve=await vE(N.id,J.id);Ge.info(`${J.label} upgrade started on ${N.name}`),await V(ve,{agentLabel:J.label,nodeName:N.name})}catch(ve){Ge.error(ve instanceof Error?ve.message:`${J.label} upgrade failed`)}}return!N||!T?f.jsx("div",{className:"rounded-2xl border border-dashed border-border/70 bg-muted/20 px-4 py-8 text-center text-[12px] text-muted-foreground",children:"Loading session metadata..."}):f.jsxs("div",{className:"space-y-3",children:[f.jsxs("section",{className:"relative mt-2 rounded-2xl border border-border/70 bg-[radial-gradient(circle_at_top_left,rgba(59,130,246,0.18),transparent_42%),radial-gradient(circle_at_bottom_right,rgba(16,185,129,0.12),transparent_32%),rgba(255,255,255,0.72)] p-3 shadow-[0_24px_90px_-54px_rgba(15,23,42,0.55)] dark:bg-[radial-gradient(circle_at_top_left,rgba(59,130,246,0.18),transparent_42%),radial-gradient(circle_at_bottom_right,rgba(16,185,129,0.12),transparent_32%),rgba(10,15,23,0.78)]",children:[!E&&f.jsxs(St,{variant:"outline",className:"absolute right-3 top-2.5 rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em] whitespace-nowrap",children:["Updated ",Zt((re=N.settingsSnapshot)==null?void 0:re.collectedAt)]}),f.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:items-end md:justify-between",children:[f.jsxs("div",{className:"space-y-2",children:[f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[f.jsxs("span",{className:"flex items-center gap-1.5 rounded-full border border-border/70 bg-background/75 px-2 py-0.5 text-[10px] text-muted-foreground backdrop-blur",children:[f.jsx(g_,{status:N.status}),f.jsx("span",{className:"font-medium text-foreground",children:N.name})]}),f.jsx(v_,{role:N.role}),f.jsx(St,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:N.transportType??T.transportType??"direct"}),f.jsx(St,{variant:E?"default":"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:E?"Live local session":"Leader-synced snapshot"})]}),f.jsxs("div",{children:[f.jsx("div",{className:"text-[10px] uppercase tracking-[0.34em] text-muted-foreground",children:"Session"}),f.jsx("h3",{className:"mt-0.5 text-sm font-semibold tracking-tight text-foreground",children:"Node runtime"}),f.jsx("p",{className:"mt-0.5 text-[11px] text-muted-foreground",children:"Runtime environment, connectivity, and build metadata."})]}),d.length>1&&f.jsxs("div",{className:"w-48 space-y-1.5",children:[f.jsx("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"Inspect node"}),f.jsxs(Wb,{value:N.id,onValueChange:h,children:[f.jsx(Jf,{className:"h-7 rounded-lg border-border/70 bg-background/70 text-[11px]",children:f.jsx(ex,{placeholder:"Choose a node"})}),f.jsx(Wf,{className:"settings-node-select-content rounded-lg text-[10px] leading-4",children:d.map(J=>f.jsx(jr,{value:J.id,className:"settings-node-select-item py-1 pl-6 pr-2 text-[10px] leading-4 [&>span]:left-1.5 [&_svg]:h-3 [&_svg]:w-3",children:F_(J,l==null?void 0:l.nodeId)},J.id))})]})]})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsxs(St,{variant:o?"default":"outline",className:"gap-1 rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:[f.jsx(wN,{className:"h-3 w-3"}),o?"Live link":"Reconnecting"]}),f.jsxs(St,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:["Uptime ",Y_(T.uptime)]})]})]})]}),!C&&f.jsx("div",{className:"rounded-xl border border-dashed border-border/70 bg-muted/20 px-3 py-2 text-[11px] text-muted-foreground",children:"This node has not synced its settings snapshot to the leader yet. Wait for the next keepalive and reopen the dialog if needed."}),f.jsxs(t_,{defaultValue:"session",className:"space-y-2",children:[f.jsxs(wx,{className:"h-auto flex-wrap rounded-xl border border-border/60 bg-muted/40 p-0.5",children:[f.jsx(js,{value:"session",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Session"}),f.jsx(js,{value:"access",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Access"}),f.jsx(js,{value:"about",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"About"})]}),f.jsxs(qs,{value:"session",className:"mt-0 grid gap-2 xl:grid-cols-[1.15fr_0.85fr]",children:[f.jsxs(Yn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(qn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Gn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(H0,{className:"h-3.5 w-3.5 text-primary"}),"Selected node"]}),f.jsx(Pn,{className:"text-[10px]",children:"Cluster role, identity, and node-scoped runtime state."})]}),f.jsxs(Xn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(et,{label:"Node ID",value:T.nodeId,mono:!0}),f.jsx(et,{label:"Status",value:N.status}),f.jsx(et,{label:"Role",value:N.role}),f.jsx(et,{label:"Endpoint",value:N.endpoint,mono:!0}),f.jsx(et,{label:"Joined",value:Zt(N.joinedAt)}),f.jsx(et,{label:"Heartbeat",value:Zt(N.lastHeartbeat)}),f.jsx(et,{label:"Capabilities",value:N.capabilities.length>0?N.capabilities.join(", "):"None"})]})]}),f.jsxs(Yn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(qn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Gn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(oN,{className:"h-3.5 w-3.5 text-primary"}),"OS info"]}),f.jsx(Pn,{className:"text-[10px]",children:"Host and resource details reported by the current process."})]}),f.jsxs(Xn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(et,{label:"Host",value:((me=T.os)==null?void 0:me.hostname)??"Unavailable"}),f.jsx(et,{label:"Platform",value:T.os?`${T.os.platform} ${T.os.release}`:"Unavailable"}),f.jsx(et,{label:"Arch",value:((fe=T.os)==null?void 0:fe.arch)??"Unavailable"}),f.jsx(et,{label:"CPU",value:((se=T.os)==null?void 0:se.cpuModel)??"Unavailable"}),f.jsx(et,{label:"Cores",value:String(((ue=T.os)==null?void 0:ue.cpuCount)??"Unavailable")}),f.jsx(et,{label:"Memory",value:T.os?`${n0(T.os.freeMemoryBytes)} free / ${n0(T.os.totalMemoryBytes)} total`:"Unavailable"})]})]}),A&&f.jsx("div",{className:"xl:col-span-2",children:f.jsx(U_,{checkedLabel:Zt(A.checkedAt),disableAuthDefault:((oe=T.auth)==null?void 0:oe.enabled)===void 0?void 0:T.auth.enabled===!1,endpoint:N.endpoint,isLiveLocalNode:E,nodeId:N.id,nodeName:N.name,onRefresh:c,pid:(M=T.runtime)==null?void 0:M.pid,transportType:N.transportType,update:A,workDir:((Y=T.runtime)==null?void 0:Y.workDir)??N.workDir})}),f.jsxs(Yn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)] xl:col-span-2",children:[f.jsxs(qn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Gn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(L0,{className:"h-3.5 w-3.5 text-primary"}),"Available agents"]}),f.jsx(Pn,{className:"text-[10px]",children:E?"Live command availability for runtime agents on this node.":"Most recent agent availability snapshot synced from this node."})]}),f.jsx(Xn,{"data-agent-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:(T.agents??[]).map(J=>f.jsx(Q_,{agent:J,nodeName:N.name,activeOperation:y.get(`${N.id}:${J.id}`),onUpgrade:$},J.id))})]})]}),f.jsxs(qs,{value:"access",className:"mt-0 grid gap-2 xl:grid-cols-2",children:[f.jsxs(Yn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(qn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Gn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(XE,{className:"h-3.5 w-3.5 text-primary"}),"Access surface"]}),f.jsx(Pn,{className:"text-[10px]",children:"How this node is exposed to the dashboard and other peers."})]}),f.jsxs(Xn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(et,{label:"Transport",value:N.transportType??T.transportType??"direct"}),f.jsx(et,{label:"Node URL",value:N.endpoint,mono:!0}),f.jsx(et,{label:"Node tunnel",value:N.devtunnelEndpoint??"Disabled",mono:!!N.devtunnelEndpoint}),f.jsx(et,{label:"Dashboard URL",value:N.dashboardOrigin??T.localDashboardOrigin??"Unavailable",mono:!!(N.dashboardOrigin||T.localDashboardOrigin)}),f.jsx(et,{label:"Local dashboard",value:T.localDashboardOrigin??"Unavailable",mono:!!T.localDashboardOrigin})]})]}),f.jsxs(Yn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(qn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Gn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(MN,{className:"h-3.5 w-3.5 text-primary"}),"Auth"]}),f.jsx(Pn,{className:"text-[10px]",children:"Current bearer-auth and trusted access posture."})]}),f.jsxs(Xn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(et,{label:"Enabled",value:(I=T.auth)!=null&&I.enabled?"Yes":"No"}),f.jsx(et,{label:"Same tenant",value:(de=T.auth)!=null&&de.allowSameTenant?"Allowed":"Off"}),f.jsx(et,{label:"Allowed users",value:(F=T.auth)!=null&&F.allowedUsers.length?T.auth.allowedUsers.join(", "):"None"})]})]}),f.jsxs(Yn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(qn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Gn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(uN,{className:"h-3.5 w-3.5 text-primary"}),"Paths"]}),f.jsx(Pn,{className:"text-[10px]",children:"Workspace and runtime paths currently used by this node."})]}),f.jsxs(Xn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(et,{label:"Work dir",value:((R=T.runtime)==null?void 0:R.workDir)??T.workDir??"Unavailable",mono:!!(((P=T.runtime)==null?void 0:P.workDir)??T.workDir)}),f.jsx(et,{label:"Storage",value:((K=T.runtime)==null?void 0:K.storagePath)??"Unavailable",mono:!!((W=T.runtime)!=null&&W.storagePath)}),f.jsx(et,{label:"Process cwd",value:((te=T.runtime)==null?void 0:te.cwd)??"Unavailable",mono:!!((ie=T.runtime)!=null&&ie.cwd)}),f.jsx(et,{label:"Started",value:Zt((ee=T.runtime)==null?void 0:ee.startedAt)}),f.jsx(et,{label:"PID",value:T.runtime?String(T.runtime.pid):"Unavailable",mono:!!T.runtime})]})]}),f.jsxs(Yn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[f.jsxs(qn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(Gn,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(Ds,{className:"h-3.5 w-3.5 text-primary"}),"Startup checks"]}),f.jsx(Pn,{className:"text-[10px]",children:"Dependency preflight snapshot persisted during node startup."})]}),f.jsxs(Xn,{className:"space-y-3 px-3 pb-2.5",children:[f.jsxs("div",{className:"rounded-xl border border-border/60 bg-background/70 px-3 py-2",children:[f.jsx("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"Last checked"}),f.jsx("div",{className:"mt-0.5 text-[11px] text-foreground",children:Zt((ce=T.startupRequirements)==null?void 0:ce.lastCheckedAt)})]}),f.jsxs("div",{className:"space-y-2",children:[f.jsx(Vo,{formatDateTime:Zt,name:"Azure CLI",status:j.az,statusVariant:_r}),f.jsx(Vo,{formatDateTime:Zt,name:"DevTunnel",status:j.devtunnel,statusVariant:_r}),f.jsx(Vo,{formatDateTime:Zt,name:"Claude Code",status:j.claude,statusVariant:_r}),f.jsx(Vo,{formatDateTime:Zt,name:"Codex",status:j.codex,statusVariant:_r}),f.jsx(Vo,{formatDateTime:Zt,name:"Copilot CLI",status:j.copilot,statusVariant:_r})]})]})]})]}),f.jsx(x_,{formatDateTime:Zt,viewInfo:T})]})]})}function t3({initialSelectedNodeId:n,open:l,onOpenChange:o,showTrigger:i=!0}={}){const{cluster:c,systemInfo:d,sseConnected:m,refresh:h}=k0();return f.jsx(G5,{open:l,onOpenChange:o,showTrigger:i,children:f.jsx(e3,{cluster:c,systemInfo:d,sseConnected:m,initialSelectedNodeId:n,onRefresh:h})})}const tM="codex",nM="bypass",n3=[{value:"codex",label:"Codex",supportsFollowUp:!0},{value:"claudecode",label:"Claude Code",supportsFollowUp:!0},{value:"copilot",label:"Copilot",supportsFollowUp:!0},{value:"mars",label:"mars",disabled:!0,description:"coming soon"},{value:"eureka",label:"eureka",disabled:!0,description:"coming soon"}],aM=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],lM=new Set(n3.filter(n=>n.supportsFollowUp).map(n=>n.value)),rM=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],oM=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],a3=new Set(["pending","assigned"]),l3=new Set(["running"]),r3=new Set(["completed","failed","cancelled"]),iM=10;function sM(n,l){switch(l){case"running":return l3.has(n.status);case"waiting":return a3.has(n.status);case"closed":return r3.has(n.status);case"shared":return!!n.activeShare;case"archived":return n.status==="archived";case"active":default:return n.status!=="archived"}}function cM(n,l){if(l==="all")return!0;const o=n.conversationKind==="nativeSession";return l==="native"?o:!o}function uM(n,l){const o=l.trim().toLowerCase();return o?[n.title,n.description,n.id,n.agent,n.assignedTo??"",n.assignedNodeName??"",n.project??"",n.effectiveProjectPath??"",n.conversationKind==="nativeSession"?"native session":"meshy chat",n.activeShare?"shared conversation":""].some(i=>i.toLowerCase().includes(o)):!0}function o3(n,l,o){if(!n)return"unassigned";const i=l==null?void 0:l.find(c=>c.id===n);return(i==null?void 0:i.name)??o??n.slice(0,8)}function dM(n,l,o){return o3(n,l,o).toLowerCase()}function fM(n,l,o){return!n.assignedTo||(o==null?void 0:o.id)===n.assignedTo?!0:(l==null?void 0:l.some(i=>i.id===n.assignedTo))??!1}function mM(n,l){return[...n].sort((o,i)=>o.id===l?-1:i.id===l?1:o.name.localeCompare(i.name))}function hM(n){if(!n||typeof n!="object")return null;const l=n,o=l.createMode,i=o==="chat"||o==="native"?o:void 0;return{draftNewTask:l.draftNewTask===!0,returnRoute:typeof l.returnRoute=="string"?l.returnRoute:void 0,returnTaskId:typeof l.returnTaskId=="string"||l.returnTaskId===null?l.returnTaskId:void 0,createMode:i}}function pM(n){return n==="default workspace"?n:n.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??n}function gM(n){const l=Date.now()-n;return l<6e4?"just now":l<36e5?`${Math.floor(l/6e4)}m`:l<864e5?`${Math.floor(l/36e5)}h`:`${Math.floor(l/864e5)}d`}function vM(n){return new Date(n).toLocaleString()}function yM(n){const l=Math.floor(n/1e3),o=Math.floor(l/3600),i=Math.floor(l%3600/60),c=l%60;return`${String(o).padStart(2,"0")}:${String(i).padStart(2,"0")}:${String(c).padStart(2,"0")}`}async function i3(n,l="Copied to clipboard"){var o,i,c;try{if((i=(o=globalThis.navigator)==null?void 0:o.clipboard)!=null&&i.writeText)return await globalThis.navigator.clipboard.writeText(n),Ge.success(l),!0;const d=globalThis.document,m=(c=d==null?void 0:d.execCommand)==null?void 0:c.bind(d);if(!(d!=null&&d.body)||typeof d.createElement!="function"||typeof m!="function")throw new Error("Clipboard access is unavailable");const h=d.createElement("textarea"),y=d.activeElement,p=y&&typeof y.focus=="function"?y:null;h.value=n,h.setAttribute("readonly","true"),h.style.position="fixed",h.style.opacity="0",h.style.pointerEvents="none",d.body.appendChild(h),h.select(),h.setSelectionRange(0,h.value.length);const x=m("copy");if(d.body.removeChild(h),p==null||p.focus(),!x)throw new Error("Clipboard access is unavailable");return Ge.success(l),!0}catch(d){return Ge.error(d instanceof Error?d.message:"Failed to copy"),!1}}const s3="default workspace";function Ms(n){const l=n.replace(/\\/g,"/");return l==="/"||/^[A-Za-z]:\/$/.test(l)?l:l.replace(/\/+$/g,"")||l}function c3(n){const l=n.replace(/\\/g,"/");return l.startsWith("/")||l.startsWith("//")||/^[A-Za-z]:\//.test(l)}function u3(n,l){const o=Ms(n),i=l.replace(/\\/g,"/").replace(/^\/+|\/+$/g,"");return!i||i==="."?o:o==="/"||/^[A-Za-z]:\/$/.test(o)?`${o}${i}`:`${o}/${i}`}function d3(n,l){var d,m,h;const o=(d=n.effectiveProjectPath)==null?void 0:d.trim();if(o)return Ms(o);const i=(m=n.project)==null?void 0:m.trim();if(!i)return s3;if(c3(i)||!n.assignedTo)return Ms(i);const c=(h=l==null?void 0:l.get(n.assignedTo))==null?void 0:h.trim();return c?u3(c,i):Ms(i)}function bM(n,l,o,i){const c=new Map;for(const m of n){const h=m.assignedTo??null,y=h??"__unassigned__",p=h?l.get(h)??m.assignedNodeName??h.slice(0,8):"Unassigned",x=d3(m,i);c.has(y)||c.set(y,{nodeId:h,nodeName:p,dirMap:new Map});const g=c.get(y);g.dirMap.has(x)||g.dirMap.set(x,[]),g.dirMap.get(x).push(m)}const d=Array.from(c.values()).map(({nodeId:m,nodeName:h,dirMap:y})=>{const p=Array.from(y.entries()).map(([x,g])=>({path:x,tasks:g})).sort((x,g)=>g.tasks.length-x.tasks.length||x.path.localeCompare(g.path));return{nodeId:m,nodeName:h,dirs:p}});return d.sort((m,h)=>{if(o){if(m.nodeId===o)return-1;if(h.nodeId===o)return 1}return m.nodeId===null?1:h.nodeId===null?-1:m.nodeName.localeCompare(h.nodeName)}),d}const f3={node:"border-teal-500/30 bg-teal-500/10 text-teal-700 dark:text-teal-300",task:"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300",election:"border-indigo-500/30 bg-indigo-500/10 text-indigo-700 dark:text-indigo-300",cluster:"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300",transport:"border-sky-500/30 bg-sky-500/10 text-sky-700 dark:text-sky-300"},m3={node:"text-teal-700/70 dark:text-teal-300/70",task:"text-amber-700/70 dark:text-amber-300/70",election:"text-indigo-700/70 dark:text-indigo-300/70",cluster:"text-emerald-700/70 dark:text-emerald-300/70",transport:"text-sky-700/70 dark:text-sky-300/70"};function h3(n){return n.split(".")[0]??"unknown"}function p3(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function Rr(n,l){return(l==null?void 0:l.get(n))??n}function n1(n,l){const o=n.data,i=o.operation;switch(n.type){case"node.joined":return`${o.name} joined the cluster`;case"node.left":return`${Rr(o.nodeId,l)} left (${o.reason})`;case"node.status":return`${Rr(o.nodeId,l)} is now ${o.status}`;case"node.operation.created":return`${i==null?void 0:i.kind} ${i==null?void 0:i.status} on ${Rr(i==null?void 0:i.nodeId,l)}`;case"node.operation.updated":return`${i==null?void 0:i.kind} ${i==null?void 0:i.status} on ${Rr(i==null?void 0:i.nodeId,l)}`;case"transport.changed":return`${Rr(o.nodeId,l)} transport switched to ${o.transportType}`;case"task.created":return`"${o.title}" created`;case"task.assigned":return`task assigned to ${Rr(o.nodeId,l)}`;case"task.status":return`task ${o.taskId.slice(0,8)} -> ${o.status}`;case"election.started":return`candidate ${o.candidateId.slice(0,8)} term ${o.term}`;case"election.complete":return`leader elected, term ${o.term}`;case"cluster.state":return`${o.nodeCount} nodes, term ${o.term}`;default:return JSON.stringify(o)}}function g3(n){return JSON.stringify(n,null,2)}function v3({events:n,maxHeight:l="400px",nodeNameById:o,onDismiss:i,density:c="default"}){if(n.length===0)return null;const d=c==="compact";return f.jsx("div",{className:"overflow-y-auto pr-1",style:{maxHeight:l},children:f.jsx("div",{className:"space-y-1.5",children:n.map(m=>{const h=h3(m.type);return f.jsx("div",{className:le("transition-colors hover:bg-muted/30",d?"rounded-sm px-1 py-0.5":"rounded-lg px-1.5 py-1"),children:f.jsxs("div",{className:"space-y-1",children:[f.jsxs("div",{className:"flex items-start justify-between gap-1.5",children:[f.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[f.jsx("div",{className:le("font-mono text-muted-foreground",d?"text-[8px]":"text-[9px]"),children:p3(m.timestamp)}),d?f.jsx("span",{className:le("max-w-[8.5rem] truncate text-[7px] font-medium uppercase tracking-[0.08em] text-muted-foreground/70",m3[h]),children:m.type}):f.jsx(St,{variant:"outline",className:le("w-fit text-[9px] font-medium uppercase tracking-[0.14em] px-1.5 py-0",f3[h]),children:m.type})]}),f.jsxs("div",{className:le("flex shrink-0 items-center",d?"gap-px":"gap-0.5"),children:[f.jsx(yn,{type:"button",variant:"ghost",size:"icon",className:le("rounded-sm text-muted-foreground hover:text-foreground",d?"h-3.5 w-3.5 p-0 opacity-65 hover:bg-muted/40 hover:opacity-100 [&_svg]:size-2.5":"h-5 w-5"),onClick:()=>void i3(g3(m),"Event copied"),"aria-label":`Copy ${m.type} event`,title:"Copy event",children:f.jsx(lN,{className:d?"h-2.5 w-2.5":"h-3 w-3"})}),i&&f.jsx(yn,{type:"button",variant:"ghost",size:"icon",className:le("rounded-sm text-muted-foreground hover:text-foreground",d?"h-3.5 w-3.5 p-0 opacity-65 hover:bg-muted/40 hover:opacity-100 [&_svg]:size-2.5":"h-5 w-5"),onClick:()=>i(m.id),"aria-label":`Dismiss ${m.type} event`,title:"Dismiss event",children:f.jsx(Y0,{className:d?"h-2.5 w-2.5":"h-3 w-3"})})]})]}),f.jsx("div",{className:"text-[9px] leading-snug text-foreground/85",children:n1(m,o)})]})},m.id)})})})}const y3=["node.","election.","transport."],b3="cluster.state";function x3(n){return n.type==="node.status"?!1:y3.some(l=>n.type.startsWith(l))}function S3(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function w3(n,l){return n?{time:S3(n.timestamp),text:n1(n,l)}:null}function E3(n){return n.transportType==="devtunnel"||!!n.devtunnelEndpoint}function N3(n){if(n.length===0)return"No node tunnel";const l=n.filter(c=>c.status==="offline").length;if(l>0)return`${l} offline`;const o=n.filter(c=>{var d;return((d=c.devtunnelHealth)==null?void 0:d.status)==="failed"}).length;if(o>0)return`${o} failed`;const i=n.filter(c=>{var d;return c.status!=="offline"&&((d=c.devtunnelHealth)==null?void 0:d.status)!=="healthy"}).length;return i>0?`${i} checking`:"Healthy"}function T3(n,l){var c;const o=(l==null?void 0:l.get(n.id))??n.name??n.id;if(n.status==="offline")return{label:o,status:"offline"};const i=((c=n.devtunnelHealth)==null?void 0:c.status)??"checking";return{label:o,status:i}}function C3(n){if(n.length===0)return"No nodes";const l=n.filter(i=>i.status==="offline").length;if(l>0)return`${l} offline`;const o=n.filter(i=>i.status==="busy").length;return o>0?`${o} busy`:"Healthy"}function A3(n,l){return{label:(l==null?void 0:l.get(n.id))??n.name??n.id,status:n.status}}function R3({connected:n,events:l,nodes:o=[],currentNode:i=null,nodeNameById:c,desktopUpdate:d=null,defaultOpen:m=!1,defaultActionMenuOpen:h=!1,onDesktopUpdate:y,onDesktopRestart:p,onReload:x,onRestart:g}){const[w,N]=v.useState(m),[T,E]=v.useState(h),[C,A]=v.useState(!0),[j,O]=v.useState(new Set),[z,B]=v.useState(!1),[G,V]=v.useState(!1),$=v.useRef(null),ae=v.useRef(null),re=v.useMemo(()=>l.filter(Ne=>x3(Ne)&&!j.has(Ne.id)),[l,j]),me=v.useMemo(()=>l.find(Ne=>Ne.type===b3)??re[0],[l,re]),fe=v.useMemo(()=>w3(me,c),[me,c]),se=v.useMemo(()=>{const Ne=new Map(o.map(Xe=>[Xe.id,Xe]));return i&&Ne.set(i.id,i),Array.from(Ne.values())},[i,o]),ue=v.useMemo(()=>se.filter(E3),[se]),oe=ue.some(Ne=>{var Xe;return Ne.status==="offline"||((Xe=Ne.devtunnelHealth)==null?void 0:Xe.status)==="failed"}),M=se.some(Ne=>Ne.status==="offline"),Y=se.some(Ne=>Ne.status==="busy"),I=se.length>0,de=(i==null?void 0:i.name)??"offline",F=(i==null?void 0:i.role)==="leader"?"Leader":(i==null?void 0:i.role)==="follower"?"Follower":"Node",R=d!==null,P=!!(R&&(d!=null&&d.updateAvailable)&&d.latestVersion),K=(d==null?void 0:d.latestVersion)??null,W=!!(R&&!P&&!K&&(d!=null&&d.detail)),te=z?"Relaunching runtime...":"Relaunch to apply update",ie=G?"Downloading and installing desktop update...":P&&K?`Available version ${K}`:W?(d==null?void 0:d.detail)??"Desktop update unavailable":"Desktop is current",ee=!!x,ce=!!(R&&p),J=ee||ce,ve=R||!!g,be=R||!!g||ee,Se=ve?R?"Update":"Relaunch":"Reload",He=ve?R?ie:te:"Reload dashboard page",je=ve?R?G:z:!1,Ve=ve?R?je||!P||!y:je:!1,dt=R?P&&K?`Install desktop update ${K}`:W?"Desktop update unavailable":"Desktop is current":ve?z?"Relaunching runtime":"Relaunch runtime":"Reload dashboard page";function Pe(){ae.current&&(clearTimeout(ae.current),ae.current=null)}function Lt(){Pe(),N(!0)}function ht(){Pe(),ae.current=setTimeout(()=>{N(!1),ae.current=null},180)}function ol(){Pe()}function il(){Pe(),E(!1),N(!1)}async function Tt(){if(!(!g||z)){B(!0);try{await g()}finally{B(!1)}}}async function jn(){if(!(!P||!y||G)){V(!0);try{await y()}finally{V(!1)}}}async function Ct(){if(!(!p||z)){E(!1),B(!0);try{await p()}finally{B(!1)}}}async function Ll(){if(!ve){await Mn();return}if(R){await jn();return}await Tt()}async function Mn(){x&&(E(!1),await x())}return v.useEffect(()=>()=>{Pe()},[]),v.useEffect(()=>{O(Ne=>{if(Ne.size===0)return Ne;const Xe=new Set(l.map(st=>st.id)),We=new Set(Array.from(Ne).filter(st=>Xe.has(st)));return We.size===Ne.size?Ne:We})},[l]),v.useEffect(()=>{w||E(!1)},[w]),v.useEffect(()=>{if(!w)return;const Ne=We=>{var st;(st=$.current)!=null&&st.contains(We.target)||(Pe(),E(!1),N(!1))},Xe=We=>{We.key==="Escape"&&(Pe(),E(!1),N(!1))};return document.addEventListener("pointerdown",Ne),document.addEventListener("keydown",Xe),()=>{document.removeEventListener("pointerdown",Ne),document.removeEventListener("keydown",Xe)}},[w]),f.jsxs("div",{ref:$,className:"relative",children:[f.jsxs("button",{type:"button","aria-label":n?"Cluster link connected":"Cluster link reconnecting","aria-expanded":w,"aria-haspopup":"dialog",onClick:()=>N(Ne=>!Ne),onMouseEnter:Lt,onMouseLeave:ht,className:le("flex h-8 max-w-[18rem] items-center gap-1.5 rounded-sm px-2 text-[10px] transition-all sm:gap-2 sm:px-2.5 sm:text-[11px]",n?"bg-muted/40 text-muted-foreground hover:bg-muted/60 hover:text-foreground":"bg-destructive/8 text-destructive hover:bg-destructive/12",w&&(n?"bg-muted/60 text-foreground":"bg-destructive/12")),title:n?"Cluster link connected":"Cluster link reconnecting",children:[f.jsxs("span",{className:le("relative flex h-2 w-2 shrink-0"),children:[n&&f.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-emerald-400 opacity-60"}),f.jsx("span",{className:le("relative inline-flex h-2 w-2 rounded-full",n?"bg-emerald-500":"bg-destructive")})]}),f.jsxs("span",{className:"hidden min-w-0 items-center gap-2 sm:flex",children:[f.jsx("span",{className:"truncate font-medium text-foreground",children:de}),f.jsx("span",{className:le("shrink-0 rounded border px-1 py-px text-[8px] font-semibold uppercase tracking-[0.1em]",n?"border-emerald-500/25 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-destructive/30 bg-destructive/10 text-destructive"),children:F})]})]}),w&&f.jsxs("div",{role:"dialog","aria-label":"Live link connection events",onMouseEnter:ol,onMouseLeave:il,className:"absolute right-0 top-[calc(100%+0.4rem)] z-50 w-[18rem] max-w-[calc(100vw-1.5rem)] overflow-hidden rounded-lg border border-border/70 bg-background/96 shadow-[0_28px_90px_-42px_rgba(0,0,0,var(--panel-shadow-alpha))] backdrop-blur-xl max-sm:fixed max-sm:right-3 max-sm:top-[3.75rem] max-sm:w-[calc(100vw-1.5rem)]",children:[f.jsx("div",{className:"border-b border-border/60 bg-muted/25 px-2.5 py-1.5",children:f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex items-center gap-1.5",children:[n?f.jsx(Ds,{className:"h-3 w-3 text-emerald-500"}):f.jsx(UN,{className:"h-3 w-3 text-destructive"}),f.jsx("span",{className:"text-[10px] font-semibold text-foreground",children:"Live link"}),f.jsx("span",{className:"text-[9px] text-muted-foreground",children:n?"· SSE connected":"· reconnecting"})]}),f.jsx("div",{className:le("rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.12em]",n?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-destructive/30 bg-destructive/10 text-destructive"),children:n?"Connected":"Retrying"})]})}),f.jsxs("div",{className:"grid grid-cols-2 border-b border-border/60",children:[f.jsxs("div",{className:"border-r border-border/60 px-2.5 py-1.5",children:[f.jsx("div",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Events"}),f.jsx("div",{className:"mt-0.5 text-base font-semibold tracking-tight text-foreground",children:re.length})]}),f.jsxs("div",{className:"min-w-0 px-2.5 py-1.5",children:[f.jsx("div",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Latest"}),fe?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"mt-0.5 truncate text-[9px] leading-snug text-foreground/80",children:fe.text}),f.jsx("div",{className:"font-mono text-[8px] text-muted-foreground/60",children:fe.time})]}):f.jsx("div",{className:"mt-0.5 text-[8px] text-muted-foreground/50",children:"—"})]})]}),f.jsxs("div",{className:"border-b border-border/60 px-2.5 py-1.5",children:[f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[M?f.jsx(hs,{className:"h-3 w-3 shrink-0 text-destructive"}):Y?f.jsx(Ds,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(Yo,{className:le("h-3 w-3 shrink-0",I?"text-emerald-500":"text-muted-foreground")}),f.jsx("span",{className:"text-[9px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Node health"})]}),f.jsx("span",{className:le("shrink-0 rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",M?"border-destructive/30 bg-destructive/10 text-destructive":Y?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":I?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-border/70 bg-background/60 text-muted-foreground"),children:C3(se)})]}),se.length>0&&f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:se.map(Ne=>{const{label:Xe,status:We}=A3(Ne,c),st=We==="offline",On=We==="busy";return f.jsxs("div",{"aria-label":`${Xe} ${We}`,className:le("flex items-center justify-between gap-2 rounded-sm px-2 py-0.5",st?"bg-destructive/6":On?"bg-amber-500/6":"bg-emerald-500/5"),title:`${Xe} ${We}`,children:[f.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:Xe}),st?f.jsx(hs,{className:"h-3 w-3 shrink-0 text-destructive"}):On?f.jsx(vv,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(Yo,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},Ne.id)})})]}),ue.length>0&&f.jsxs("div",{className:"border-b border-border/60 px-2.5 py-1.5",children:[f.jsxs("div",{className:"flex items-center justify-between gap-2",children:[f.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[oe?f.jsx(hs,{className:"h-3 w-3 shrink-0 text-destructive"}):f.jsx(Yo,{className:"h-3 w-3 shrink-0 text-emerald-500"}),f.jsx("span",{className:"text-[9px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"DevTunnel"})]}),f.jsx("span",{className:le("shrink-0 rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",oe?"border-destructive/30 bg-destructive/10 text-destructive":"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"),children:N3(ue)})]}),f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:ue.map(Ne=>{var kn;const{label:Xe,status:We}=T3(Ne,c),st=We==="failed"||We==="offline",On=We!=="healthy"&&We!=="failed"&&We!=="offline",Dn=(kn=Ne.devtunnelHealth)!=null&&kn.reason?`${Xe} ${We}: ${Ne.devtunnelHealth.reason}`:`${Xe} ${We}`;return f.jsxs("div",{"aria-label":`${Xe} ${We}`,className:le("flex items-center justify-between gap-2 rounded-sm px-2 py-0.5",st?"bg-destructive/6":On?"bg-muted/30":"bg-emerald-500/5"),title:Dn,children:[f.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:Xe}),st?f.jsx(hs,{className:"h-3 w-3 shrink-0 text-destructive"}):On?f.jsx(vv,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):f.jsx(Yo,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},Ne.id)})})]}),f.jsxs("div",{children:[f.jsxs("button",{type:"button",onClick:()=>A(Ne=>!Ne),className:"flex w-full items-center justify-between px-2.5 py-1.5 text-left hover:bg-muted/30",children:[f.jsxs("span",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:["Notifications ",re.length>0&&`(${re.length})`]}),C?f.jsx(Ko,{className:"h-3 w-3 text-muted-foreground"}):f.jsx(ef,{className:"h-3 w-3 text-muted-foreground"})]}),C&&f.jsx("div",{className:"px-2 pb-2",children:f.jsx(v3,{events:re,maxHeight:"12rem",density:"compact",emptyTitle:"No connection events yet",emptyDescription:"Node, election, and system events will appear here.",nodeNameById:c,onDismiss:Ne=>O(Xe=>new Set(Xe).add(Ne))})})]}),R&&(d==null?void 0:d.detail)&&f.jsxs("div",{className:"flex items-center gap-1.5 border-t border-border/60 px-2.5 py-1 text-[8px] text-muted-foreground",children:[f.jsx("span",{className:"shrink-0 font-medium uppercase tracking-[0.12em]",children:"Desktop update"}),f.jsx("span",{className:"truncate",title:d.detail,children:d.detail})]}),f.jsxs("div",{className:"flex items-center justify-between gap-1 border-t border-border/60 px-2.5 py-1",children:[f.jsx("div",{children:be&&f.jsxs("div",{className:"group/restart relative flex items-center",children:[f.jsxs("div",{className:"flex items-center overflow-hidden rounded-sm border border-border/50",children:[f.jsxs(yn,{type:"button",variant:"ghost",size:"sm",className:le("h-5 rounded-none border-0 px-1.5 text-[9px] font-medium hover:text-foreground [&_svg]:size-2.5",P?"bg-primary/12 text-primary hover:bg-primary/18":"bg-background/45 text-muted-foreground hover:bg-emerald-500/10"),onClick:()=>void Ll(),disabled:Ve,"aria-label":dt,"aria-describedby":"live-link-restart-hint",title:He,children:[f.jsx(yv,{className:le("h-2.5 w-2.5",je&&"animate-pulse")}),f.jsx("span",{children:Se})]}),J&&f.jsx(yn,{type:"button",variant:"ghost",size:"sm",className:le("h-5 rounded-none border-l border-border/50 px-1 text-[9px] hover:text-foreground [&_svg]:size-2.5",P?"bg-primary/12 text-primary hover:bg-primary/18":"bg-background/45 text-muted-foreground hover:bg-emerald-500/10"),onClick:()=>E(Ne=>!Ne),"aria-label":"Open live link actions","aria-expanded":T,title:"Live link actions",children:f.jsx(Ko,{className:"h-2.5 w-2.5"})})]}),J&&T&&f.jsxs("div",{className:"absolute bottom-[calc(100%+0.25rem)] left-0 z-20 min-w-28 overflow-hidden rounded-md border border-border/70 bg-background text-[9px] shadow-lg",children:[f.jsxs("button",{type:"button",className:"flex w-full items-center gap-1.5 px-2 py-1 text-left text-muted-foreground hover:bg-muted/55 hover:text-foreground disabled:opacity-45 disabled:hover:bg-transparent disabled:hover:text-muted-foreground",onClick:()=>void Ll(),disabled:Ve,"aria-label":dt,children:[f.jsx(yv,{className:le("h-2.5 w-2.5",je&&"animate-pulse")}),f.jsx("span",{children:Se})]}),ce&&f.jsxs("button",{type:"button",className:"flex w-full items-center gap-1.5 border-t border-border/50 px-2 py-1 text-left text-muted-foreground hover:bg-muted/55 hover:text-foreground disabled:opacity-45 disabled:hover:bg-transparent disabled:hover:text-muted-foreground",onClick:()=>void Ct(),disabled:z,"aria-label":"Restart Meshy Desktop",children:[f.jsx(tf,{className:le("h-2.5 w-2.5",z&&"animate-spin")}),f.jsx("span",{children:"Restart"})]}),ee&&f.jsxs("button",{type:"button",className:"flex w-full items-center gap-1.5 border-t border-border/50 px-2 py-1 text-left text-muted-foreground hover:bg-muted/55 hover:text-foreground",onClick:()=>void Mn(),"aria-label":"Reload dashboard page",children:[f.jsx(tf,{className:"h-2.5 w-2.5"}),f.jsx("span",{children:"Reload"})]})]}),f.jsx("span",{id:"live-link-restart-hint",role:"tooltip",className:"pointer-events-none absolute left-6 top-1/2 z-10 -translate-y-1/2 whitespace-nowrap rounded-sm border border-border/70 bg-background px-1.5 py-0.5 text-[8px] text-muted-foreground opacity-0 shadow-sm transition-opacity group-hover/restart:opacity-100 group-focus-within/restart:opacity-100",children:He})]})}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsx(yn,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:()=>O(new Set(l.map(Ne=>Ne.id))),disabled:re.length===0,title:"Dismiss all notifications",children:"Dismiss all"}),f.jsx(yn,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:()=>N(!1),children:"Close"})]})]})]})]})}const a0="dark",Lr="fluent",_3="clean",Kd="meshy-layout-default-migrated-to-compact",yf="true",j3="compact",M3=new Set(["airy","clean","fluent"]);function O3(n){return n!==null&&M3.has(n)}function lm(n){return n===j3?"fluent":O3(n)?n:null}function D3(n,l){const o=lm(n);return o===_3&&l!==yf?Lr:o??Lr}const Fs="symphony",a1="default",k3=new Set(["light","dark","system"]),z3=new Set(["porcelain","warm","finsight","edge","symphony","launcher"]),l1=v.createContext(null);function L3(n){const l=new URLSearchParams(n).get("theme");return r1(l)?l:null}function U3(n){const l=new URLSearchParams(n).get("palette");return rm(l)}function B3(n){const l=new URLSearchParams(n).get("layout");return lm(l)}function H3(){if(typeof document>"u")return null;const n=document.documentElement;return{theme:n.classList.contains("dark")?"dark":"light",palette:rm(n.getAttribute("data-palette"))??Fs,layout:lm(n.getAttribute("data-layout"))??Lr}}function xM(n,l=H3()){if(!l)return n;try{const o=/^[a-z][a-z\d+\-.]*:/i.test(n),i=typeof window<"u"?window.location.href:"http://localhost",c=new URL(n,i);return c.searchParams.set("theme",l.theme),c.searchParams.set("palette",l.palette),c.searchParams.set("layout",l.layout),o?c.toString():`${c.pathname}${c.search}${c.hash}`}catch{return n}}function V3({children:n}){const[l,o]=v.useState(()=>typeof window<"u"?L3(window.location.search)??q3(localStorage.getItem("meshy-theme"))??a0:a0),[i,c]=v.useState(()=>typeof window<"u"?U3(window.location.search)??G3(localStorage.getItem("meshy-palette"))??Fs:Fs),[d,m]=v.useState(()=>{if(typeof window<"u"){const h=B3(window.location.search);if(h)return localStorage.setItem(Kd,yf),h;const y=D3(localStorage.getItem("meshy-layout"),localStorage.getItem(Kd));return localStorage.setItem(Kd,yf),y}return Lr});return v.useEffect(()=>{const h=document.documentElement,y=p=>{if(p==="system"){const x=window.matchMedia("(prefers-color-scheme: dark)").matches;h.classList.toggle("dark",x)}else h.classList.toggle("dark",p==="dark")};if(y(l),localStorage.setItem("meshy-theme",l),l==="system"){const p=window.matchMedia("(prefers-color-scheme: dark)"),x=()=>y("system");return p.addEventListener("change",x),()=>p.removeEventListener("change",x)}},[l]),v.useEffect(()=>{document.documentElement.setAttribute("data-palette",i),localStorage.setItem("meshy-palette",i)},[i]),v.useEffect(()=>{const h=document.documentElement;d===Lr?h.removeAttribute("data-layout"):h.setAttribute("data-layout",d),localStorage.setItem("meshy-layout",d)},[d]),f.jsx(l1.Provider,{value:{theme:l,setTheme:o,palette:i,setPalette:c,layout:d,setLayout:m},children:n})}function $3(){const n=v.useContext(l1);if(!n)throw new Error("useTheme must be used within ThemeProvider");return n}function r1(n){return n!==null&&k3.has(n)}function Y3(n){return n!==null&&z3.has(n)}function q3(n){return r1(n)?n:null}function rm(n){return n===a1?"porcelain":Y3(n)?n:null}function G3(n){return n===a1?null:rm(n)}const P3=[{value:"light",label:"Light",icon:V0},{value:"dark",label:"Dark",icon:B0},{value:"system",label:"System",icon:U0}],o1=[{value:"finsight",label:"FinSight",hint:"Cool sage green"},{value:"porcelain",label:"Porcelain",hint:"Blue workspace"},{value:"warm",label:"Warm",hint:"Cream + amber"},{value:"edge",label:"Edge",hint:"Rounded violet panels"},{value:"symphony",label:"Symphony",hint:"Near-black rose accent"},{value:"launcher",label:"Launcher",hint:"Desktop startup blue"}],i1=[{value:"airy",label:"Airy",hint:"Gradients, blur, spacious"},{value:"clean",label:"Clean",hint:"Flat, borders, high density"},{value:"fluent",label:"Fluent",hint:"Compact neutral"}];function X3(){const{theme:n,setTheme:l,palette:o,setPalette:i,layout:c,setLayout:d}=$3(),[m,h]=v.useState(!1),y=v.useRef(null),p=v.useRef(null),x=n==="dark"?B0:n==="light"?V0:U0,g=()=>{y.current&&(clearTimeout(y.current),y.current=null)},w=()=>{g(),y.current=setTimeout(()=>h(!1),180)};return v.useEffect(()=>{if(!m)return;const N=T=>{p.current&&!p.current.contains(T.target)&&h(!1)};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[m]),v.useEffect(()=>()=>g(),[]),f.jsxs("div",{ref:p,className:"relative",onMouseEnter:()=>{g(),h(!0)},onMouseLeave:w,children:[f.jsx(yn,{variant:"ghost",size:"icon",onClick:()=>h(N=>!N),className:le("h-8 w-8 rounded-sm",o!==Fs||c!==Lr?"text-primary":"text-muted-foreground hover:bg-muted/50 hover:text-foreground"),title:"Appearance","aria-haspopup":"menu","aria-expanded":m,children:f.jsx(x,{className:"h-4 w-4"})}),m&&f.jsxs("div",{role:"menu",className:"fixed left-2 right-2 top-[4.25rem] z-50 w-auto max-w-none rounded-md border border-border/70 bg-popover/95 p-2 text-popover-foreground shadow-[0_24px_70px_-32px_rgba(0,0,0,0.45)] backdrop-blur-xl sm:absolute sm:left-auto sm:right-0 sm:top-[calc(100%+6px)] sm:w-[23rem] sm:max-w-[23rem]",children:[f.jsxs("div",{className:"mb-2 flex items-end justify-between gap-2",children:[f.jsxs("div",{children:[f.jsx("div",{className:"text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Appearance"}),f.jsxs("div",{className:"text-[10px] font-medium text-foreground",children:[K3(c)," / ",Q3(o)]})]}),f.jsx("div",{className:"rounded-sm border border-border/60 bg-background/70 px-1.5 py-0.5 text-[8px] font-medium capitalize text-muted-foreground",children:n})]}),f.jsx("div",{className:"px-0.5 pb-1 text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Theme"}),f.jsx("div",{className:"mb-2 grid grid-cols-3 gap-1 rounded-sm bg-muted/35 p-0.5",children:P3.map(({value:N,label:T,icon:E})=>{const C=n===N;return f.jsxs("button",{type:"button",onClick:()=>l(N),role:"menuitemradio","aria-checked":C,className:le("flex min-h-[2.1rem] flex-col items-center justify-center gap-0.5 rounded-sm border px-1.5 py-1 text-[9px] font-medium transition-colors",C?"border-primary/55 bg-background text-primary shadow-sm":"border-transparent text-muted-foreground hover:border-border/70 hover:bg-background/80 hover:text-foreground"),children:[f.jsx(E,{className:"h-3 w-3"}),T]},N)})}),f.jsxs("div",{className:"grid gap-2 sm:grid-cols-2",children:[f.jsxs("div",{children:[f.jsx("div",{className:"px-0.5 pb-1 text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Layout"}),f.jsx("div",{className:"space-y-1",children:i1.map(({value:N,label:T,hint:E})=>{const C=c===N;return f.jsxs("button",{type:"button",onClick:()=>d(N),role:"menuitemradio","aria-checked":C,className:le("flex min-h-[2.25rem] w-full items-center gap-1.5 rounded-sm border px-1.5 py-1 text-left transition-colors",C?"border-primary/55 bg-primary/10":"border-border/45 bg-background/45 hover:border-border hover:bg-muted/55"),children:[f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("div",{className:le("text-[10px] font-medium leading-tight",C?"text-primary":"text-foreground"),children:T}),f.jsx("div",{className:"mt-0.5 text-[8px] leading-tight text-muted-foreground",children:E})]}),C&&f.jsx(ks,{className:"h-3 w-3 text-primary"})]},N)})})]}),f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center gap-1.5 px-0.5 pb-1 text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:[f.jsx(DN,{className:"h-2.5 w-2.5"}),"Palette"]}),f.jsx("div",{className:"space-y-1",children:o1.map(({value:N,label:T,hint:E})=>{const C=o===N;return f.jsxs("button",{type:"button",onClick:()=>i(N),role:"menuitemradio","aria-checked":C,className:le("flex min-h-[2.25rem] w-full items-center gap-1.5 rounded-sm border px-1.5 py-1 text-left transition-colors",C?"border-primary/55 bg-primary/10":"border-border/45 bg-background/45 hover:border-border hover:bg-muted/55"),children:[f.jsx(Z3,{value:N}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("div",{className:le("text-[10px] font-medium leading-tight",C?"text-primary":"text-foreground"),children:T}),f.jsx("div",{className:"mt-0.5 text-[8px] leading-tight text-muted-foreground",children:E})]}),C&&f.jsx(ks,{className:"h-3 w-3 text-primary"})]},N)})})]})]})]})]})}function K3(n){var l;return((l=i1.find(o=>o.value===n))==null?void 0:l.label)??n}function Q3(n){var l;return((l=o1.find(o=>o.value===n))==null?void 0:l.label)??n}function Z3({value:n}){const l={porcelain:["hsl(212 76% 44%)","hsl(210 22% 98%)","hsl(174 42% 61%)"],warm:["hsl(35 88% 56%)","hsl(42 22% 97%)","hsl(160 60% 45%)"],finsight:["hsl(152 38% 32%)","hsl(150 14% 97%)","hsl(142 55% 58%)"],edge:["hsl(265 75% 55%)","hsl(260 12% 98%)","hsl(285 70% 65%)"],symphony:["hsl(348 100% 71%)","hsl(0 0% 6%)","hsl(240 2% 9%)"],launcher:["hsl(213 77% 49%)","hsl(60 10% 96%)","hsl(0 0% 100%)"]},[o,i,c]=l[n];return f.jsxs("div",{className:le("flex h-5 w-5 shrink-0 overflow-hidden border border-border/60 shadow-sm","rounded-sm"),children:[f.jsx("div",{className:"h-full w-1/3",style:{background:o}}),f.jsx("div",{className:"h-full w-1/3",style:{background:i}}),f.jsx("div",{className:"h-full w-1/3",style:{background:c}})]})}const Go={tasks:{defaultSize:20,min:16,max:36,wheelStep:1},operations:{defaultSize:20,min:18,max:38,wheelStep:1},terminal:{defaultSize:18,min:10,max:30,wheelStep:1}},s1="meshy-dashboard-panel-state-v2",c1="meshy-dashboard-terminal-open-v1";function SM({operationsOpen:n}){return{layout:{desktopTasksOpen:!0,operationsOpen:n},sizes:{tasks:Go.tasks.defaultSize,operations:Go.operations.defaultSize,terminal:Go.terminal.defaultSize}}}function Qd(n){return typeof n=="object"&&n!==null}function l0(n,l){return typeof n=="boolean"?n:l}function Zd(n,l,o){return typeof l=="number"&&Number.isFinite(l)?Po(n,l):o}function Po(n,l){const o=Go[n];return Math.min(o.max,Math.max(o.min,l))}function wM(n,l){if(!n)return l;try{const o=n.getItem(s1);if(!o)return l;const i=JSON.parse(o);if(!Qd(i))return l;const c=Qd(i.layout)?i.layout:{},d=Qd(i.sizes)?i.sizes:{};return{layout:{desktopTasksOpen:l0(c.desktopTasksOpen,l.layout.desktopTasksOpen),operationsOpen:l0(c.operationsOpen,l.layout.operationsOpen)},sizes:{tasks:Zd("tasks",d.tasks,l.sizes.tasks),operations:Zd("operations",d.operations,l.sizes.operations),terminal:Zd("terminal",d.terminal,l.sizes.terminal)}}}catch{return l}}function EM(n,l){if(n)try{n.setItem(s1,JSON.stringify(l))}catch{}}function I3(n,l){if(!n)return l;try{const o=n.getItem(c1);return o==="true"?!0:o==="false"?!1:l}catch{return l}}function F3(n,l){if(n)try{n.setItem(c1,String(l))}catch{}}function r0(){var n;try{return((n=globalThis.window)==null?void 0:n.localStorage)??globalThis.localStorage??null}catch{return null}}function NM(n){return`${Number(n.toFixed(2))}rem`}function TM(n,l,o,i,c,d,m){const h=Number.isFinite(m)&&m>0?m:16;return n==="tasks"?Po(n,l+(c-o)/h):n==="operations"?Po(n,l+(o-c)/h):Po(n,l+(i-d)/h)}function CM(n,l,o){const i=o===0?0:o>0?-1:1;return Po(n,l+i*Go[n].wheelStep)}function J3(){return f.jsxs("svg",{"data-meshy-app-icon":"header",viewBox:"0 0 1024 1024",className:"h-8 w-8","aria-hidden":"true",children:[f.jsxs("defs",{children:[f.jsxs("linearGradient",{id:"meshy-header-icon-bg",x1:"160",y1:"128",x2:"864",y2:"896",gradientUnits:"userSpaceOnUse",children:[f.jsx("stop",{offset:"0",stopColor:"#182033"}),f.jsx("stop",{offset:"1",stopColor:"#0a0f1f"})]}),f.jsxs("linearGradient",{id:"meshy-header-icon-edge",x1:"260",y1:"244",x2:"768",y2:"780",gradientUnits:"userSpaceOnUse",children:[f.jsx("stop",{offset:"0",stopColor:"#66e3ff"}),f.jsx("stop",{offset:"0.52",stopColor:"#8fd56b"}),f.jsx("stop",{offset:"1",stopColor:"#ffcb5b"})]})]}),f.jsx("rect",{width:"1024",height:"1024",rx:"224",fill:"url(#meshy-header-icon-bg)"}),f.jsx("path",{d:"M308 652V372l204 174 204-174v280",fill:"none",stroke:"url(#meshy-header-icon-edge)",strokeWidth:"86",strokeLinecap:"round",strokeLinejoin:"round"}),f.jsx("circle",{cx:"308",cy:"372",r:"58",fill:"#66e3ff"}),f.jsx("circle",{cx:"512",cy:"546",r:"58",fill:"#8fd56b"}),f.jsx("circle",{cx:"716",cy:"372",r:"58",fill:"#ffcb5b"}),f.jsx("circle",{cx:"308",cy:"652",r:"58",fill:"#66e3ff"}),f.jsx("circle",{cx:"716",cy:"652",r:"58",fill:"#ffcb5b"})]})}function Ns(){var n,l;return typeof window>"u"?null:((l=(n=window.__TAURI__)==null?void 0:n.core)==null?void 0:l.invoke)??null}function o0(n){return{currentVersion:null,latestVersion:null,updateAvailable:!1,checkedAt:new Date().toISOString(),releaseUrl:null,assetName:null,installable:!1,detail:n}}function Id(n,l){if(n instanceof Error&&n.message.trim())return n.message;if(typeof n=="string"&&n.trim())return n;if(n&&typeof n=="object"&&"message"in n){const o=n.message;if(typeof o=="string"&&o.trim())return o}return l}function W3(n){return n.openedRelease?"Opened the latest Meshy release page.":n.installMethod==="tauri-updater"?"Installing desktop update. Meshy will relaunch to finish updating.":(n.assetName??"desktop update").toLowerCase().endsWith(".dmg")?"Downloaded desktop update. Open the DMG and drag Meshy to Applications to finish updating.":"Downloaded desktop update. Follow the installer to finish updating."}function ej(){const{cluster:n,events:l,sseConnected:o,systemInfo:i}=k0(),c=Fn(),[d,m]=v.useState(()=>I3(r0(),!1)),[h,y]=v.useState(""),[p,x]=v.useState(null),[g,w]=v.useState(null),N=!!Ns(),T=N?"max-w-none":"max-w-[1760px]",E=c.pathname==="/"||/^\/tasks\/[^/]+$/.test(c.pathname),C=v.useMemo(()=>{const B=new Map;for(const G of(n==null?void 0:n.nodes)??[])B.set(G.id,G.name);return n!=null&&n.self&&B.set(n.self.id,n.self.name),B},[n==null?void 0:n.nodes,n==null?void 0:n.self]),A=v.useCallback(B=>{m(G=>typeof B=="function"?B(G):B)},[]);v.useEffect(()=>{F3(r0(),d)},[d]),v.useEffect(()=>{const B=Ns();if(!B){w(null);return}let G=!1;return w(o0("Checking desktop update...")),B("check_desktop_update").then(V=>{G||w(V)}).catch(V=>{G||w(o0(Id(V,"Desktop update check failed")))}),()=>{G=!0}},[i==null?void 0:i.version]);async function j(){try{const B=await O0({reason:"restart"});Ge.info(`Restarting runtime. Follow ${B.logPath} for launch output.`),await e1({previousPid:B.pid})||Ge.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout.")}catch(B){Ge.error(B instanceof Error?B.message:"Runtime restart failed")}}async function O(){const B=Ns();if(!B){Ge.error("Desktop updater is not available in this window");return}try{Ge.info("Downloading desktop update...");const G=await B("install_desktop_update");Ge.info(W3(G))}catch(G){Ge.error(Id(G,"Desktop update failed"))}}async function z(){const B=Ns();if(!B){Ge.error("Desktop restart is not available in this window");return}try{Ge.info("Restarting Meshy Desktop..."),await B("restart_desktop_app")}catch(G){Ge.error(Id(G,"Desktop restart failed"))}}return f.jsxs("div",{className:"relative h-full overflow-hidden bg-background text-foreground",children:[f.jsx("div",{className:"mesh-grid pointer-events-none absolute inset-0"}),f.jsxs("div",{className:"relative z-10 flex h-full min-h-0 flex-col",children:[f.jsx("header",{className:"relative z-50 shrink-0 px-2 py-2",children:f.jsxs("div",{className:le("dashboard-panel dashboard-panel-muted animate-panel-settle mx-auto flex items-center gap-0 rounded-lg px-3 py-2",T),children:[f.jsx("div",{className:"flex shrink-0 items-center gap-3 pr-3",children:f.jsxs(Wd,{to:"/","aria-label":"Meshy home",className:"flex items-center gap-2",children:[f.jsx(J3,{}),f.jsxs("div",{className:"hidden min-w-0 items-baseline gap-1.5 sm:flex",children:[f.jsx("span",{className:"text-[10px] font-semibold uppercase tracking-[0.24em] text-muted-foreground",children:"MESHY"}),f.jsx("span",{className:"truncate text-[13px] font-semibold tracking-tight text-foreground",children:"Workspace"})]})]})}),f.jsx("div",{className:"mx-0 hidden h-4 w-px shrink-0 bg-border/50 md:block"}),E&&f.jsxs("div",{className:"hidden min-w-0 flex-1 items-center px-3 md:flex",children:[p&&f.jsxs("nav",{"aria-label":"Current task location",className:"flex min-w-0 max-w-[38rem] items-center gap-1 rounded-sm bg-background/55 px-2 py-1 text-[10px] text-muted-foreground",children:[f.jsxs("button",{type:"button",onClick:()=>y(p.nodeName),className:"flex min-w-0 items-center gap-1 rounded-sm px-1 py-0.5 hover:bg-muted/60 hover:text-foreground",title:`Filter by ${p.nodeName}`,children:[f.jsx(H0,{className:"h-3 w-3 shrink-0 text-primary/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.nodeName})]}),f.jsx(ef,{className:"h-3 w-3 shrink-0 text-border/80"}),f.jsxs("button",{type:"button",onClick:()=>y(p.projectLabel),className:"flex min-w-0 items-center gap-1 rounded-sm px-1 py-0.5 hover:bg-muted/60 hover:text-foreground",title:p.projectPath,children:[f.jsx(fN,{className:"h-3 w-3 shrink-0 text-muted-foreground/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.projectLabel})]}),f.jsx(ef,{className:"h-3 w-3 shrink-0 text-border/80"}),f.jsx(Wd,{to:`/tasks/${p.taskId}`,className:"min-w-0 truncate px-1 font-medium text-foreground/85 hover:text-foreground",title:p.taskTitle,children:p.taskTitle})]}),f.jsxs("div",{className:"relative ml-auto w-[18rem] max-w-[28rem]",children:[f.jsx(CN,{className:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground/60"}),f.jsx(am,{"aria-label":"Search tasks",value:h,onChange:B=>y(B.target.value),placeholder:"Search tasks, nodes, workspaces",className:"h-8 rounded-sm border-0 bg-background/62 pl-8 pr-2 text-[11px] shadow-none focus-visible:ring-0 focus-visible:ring-offset-0"})]})]}),f.jsx("div",{className:"mx-0 hidden h-4 w-px shrink-0 bg-border/50 md:block"}),f.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-1.5 pl-3 sm:gap-2 md:ml-0",children:[E&&f.jsx(yn,{variant:"ghost",size:"icon",onClick:()=>A(B=>!B),"aria-label":d?"Close terminal":"Open terminal",title:d?"Close terminal":"Open terminal",className:le("h-8 w-8 rounded-sm text-muted-foreground hover:bg-muted/50 hover:text-foreground",d&&"bg-primary/8 text-primary"),children:f.jsx($0,{className:"h-4 w-4"})}),f.jsx(t3,{}),f.jsx(X3,{}),f.jsx("div",{className:"mx-0 h-4 w-px shrink-0 bg-border/50"}),f.jsx(R3,{connected:o,events:l,nodes:(n==null?void 0:n.nodes)??[],currentNode:(n==null?void 0:n.self)??null,nodeNameById:C,desktopUpdate:g,onDesktopUpdate:g!=null&&g.updateAvailable?O:void 0,onDesktopRestart:N?z:void 0,onReload:N?()=>window.location.reload():void 0,onRestart:j})]})]})}),f.jsx("main",{className:le("min-h-0 flex-1 px-2 pb-2",E?"overflow-hidden":"overflow-y-auto"),children:f.jsx("div",{className:le("mx-auto h-full min-h-0",T),children:f.jsx(_w,{context:{terminalOpen:d,setTerminalOpen:A,headerSearchQuery:h,setHeaderSearchQuery:y,setHeaderTaskContext:x}})})})]})]})}const i0=v.lazy(async()=>({default:(await u0(()=>import("./DashboardPage-BRkkJm1H.js").then(l=>l.D),__vite__mapDeps([0,1,2,3]))).DashboardPage})),tj=v.lazy(async()=>({default:(await u0(()=>import("./SharedConversationPage-Ds17olbg.js"),__vite__mapDeps([4,1]))).SharedConversationPage}));function nj(){return f.jsx(tE,{children:f.jsx(v.Suspense,{fallback:f.jsx(aj,{}),children:f.jsxs(Mw,{children:[f.jsx(jl,{path:"/shared/tasks/:shareId",element:f.jsx(tj,{})}),f.jsxs(jl,{element:f.jsx(kE,{children:f.jsx(ej,{})}),children:[f.jsx(jl,{path:"/",element:f.jsx(i0,{})}),f.jsx(jl,{path:"/nodes",element:f.jsx(hv,{to:"/",replace:!0})}),f.jsx(jl,{path:"/tasks",element:f.jsx(hv,{to:"/",replace:!0})}),f.jsx(jl,{path:"/tasks/:id",element:f.jsx(i0,{})})]})]})})})}function aj(){return f.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function lj(n){const l=n??(typeof window>"u"?void 0:window);l!=null&&l.__TAURI__&&l.addEventListener("contextmenu",o=>{o.preventDefault()})}function rj(n){return f.jsx(eC,{className:"toaster group",style:{"--normal-bg":"hsl(var(--popover))","--normal-text":"hsl(var(--popover-foreground))","--normal-border":"hsl(var(--border))"},...n})}lj();j2.createRoot(document.getElementById("root")).render(f.jsx(v.StrictMode,{children:f.jsxs(V3,{children:[f.jsx(nj,{}),f.jsx(rj,{})]})}));export{Qs as $,Yy as A,yn as B,ks as C,nM as D,Gy as E,uN as F,xM as G,lN as H,am as I,i3 as J,o3 as K,L0 as L,t_ as M,Wj as N,wx as O,eM as P,js as Q,St as R,H0 as S,aM as T,vM as U,qs as V,gf as W,Y0 as X,Gs as Y,Ps as Z,Ks as _,rC as a,fM as a$,Xs as a0,Is as a1,Zs as a2,u0 as a3,uj as a4,qy as a5,q5 as a6,Ej as a7,$0 as a8,Yo as a9,r0 as aA,EM as aB,CM as aC,NM as aD,TM as aE,Tj as aF,AE as aG,SE as aH,Ij as aI,Zj as aJ,jE as aK,Dj as aL,hj as aM,fj as aN,Py as aO,mj as aP,pj as aQ,gE as aR,t3 as aS,kj as aT,zj as aU,ij as aV,Fn as aW,S0 as aX,oj as aY,k0 as aZ,hM as a_,nN as aa,wj as ab,Nj as ac,Sj as ad,_N as ae,gN as af,mM as ag,wN as ah,v3 as ai,g_ as aj,sN as ak,v_ as al,yM as am,a3 as an,iM as ao,bM as ap,rM as aq,oM as ar,pM as as,Fx as at,gM as au,vf as av,Lj as aw,Uj as ax,wM as ay,SM as az,le as b,sM as b0,cM as b1,dM as b2,uM as b3,Cj as b4,lM as b5,l3 as b6,Mj as b7,Oj as b8,jj as b9,_j as ba,cj as bb,dj as bc,sj as bd,gj as be,Jj as bf,Yj as bg,$j as bh,Vj as bi,Bj as bj,Hj as bk,qj as bl,n3 as bm,s0 as bn,FE as bo,Xj as bp,Pj as bq,Gj as br,tf as bs,Kj as bt,Fj as bu,Qj as bv,Be as c,ry as d,xj as e,pE as f,yj as g,vj as h,fN as i,f as j,ef as k,jr as l,bj as m,Rj as n,Wb as o,Jf as p,ex as q,v as r,Wf as s,Ge as t,CN as u,Ko as v,DN as w,tM as x,Aj as y,V5 as z};