meshy-node 0.9.4 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dashboard/assets/DashboardPage-D21dWlmw.js +164 -0
- package/dashboard/assets/{DashboardShared-clSb73vU.js → DashboardShared-CtD601bB.js} +1 -1
- package/dashboard/assets/{DiffTab-QOs1BAhv.js → DiffTab-D1I57xJM.js} +2 -2
- package/dashboard/assets/{FilesTab-amewzDu1.js → FilesTab-B_30Lp2l.js} +2 -2
- package/dashboard/assets/{MarkdownPreviewFrame-DTqC8qsr.js → MarkdownPreviewFrame-hB6tBCB8.js} +1 -1
- package/dashboard/assets/PreviewTab-BBaAgEyn.js +21 -0
- package/dashboard/assets/{SharedConversationPage-BlehYOnU.js → SharedConversationPage-DpJKqW_3.js} +2 -2
- package/dashboard/assets/{file-61zsRyWG.js → file-B8vnmnf2.js} +1 -1
- package/dashboard/assets/index-9hU42hur.js +316 -0
- package/dashboard/assets/{index-DGEkwKT1.css → index-DQIXvvgG.css} +1 -1
- package/dashboard/index.html +2 -2
- package/main.cjs +143611 -50645
- package/package.json +1 -1
- package/runtime-metadata.json +4 -4
- package/dashboard/assets/DashboardPage-D2jQAhdO.js +0 -164
- package/dashboard/assets/PreviewTab-CDVQQTEo.js +0 -21
- package/dashboard/assets/index-BubHGNBS.js +0 -316
|
@@ -1,316 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-D2jQAhdO.js","assets/DashboardShared-clSb73vU.js","assets/MarkdownPreviewFrame-DTqC8qsr.js","assets/PreviewTab-CDVQQTEo.js","assets/DashboardPage-i714dDoR.css","assets/SharedConversationPage-BlehYOnU.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var Bw=Object.defineProperty;var Hw=(n,r,l)=>r in n?Bw(n,r,{enumerable:!0,configurable:!0,writable:!0,value:l}):n[r]=l;var st=(n,r,l)=>Hw(n,typeof r!="symbol"?r+"":r,l);function $w(n,r){for(var l=0;l<r.length;l++){const i=r[l];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 r=document.createElement("link").relList;if(r&&r.supports&&r.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 l(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=l(c);fetch(c.href,d)}})();function Ny(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Md={exports:{}},Ho={};/**
|
|
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 ov;function qw(){if(ov)return Ho;ov=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function l(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 Ho.Fragment=r,Ho.jsx=l,Ho.jsxs=l,Ho}var iv;function Vw(){return iv||(iv=1,Md.exports=qw()),Md.exports}var f=Vw(),Od={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 sv;function Yw(){if(sv)return Ce;sv=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),l=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(A){return A===null||typeof A!="object"?null:(A=w&&A[w]||A["@@iterator"],typeof A=="function"?A:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,C={};function R(A,G,X){this.props=A,this.context=G,this.refs=C,this.updater=X||T}R.prototype.isReactComponent={},R.prototype.setState=function(A,G){if(typeof A!="object"&&typeof A!="function"&&A!=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,A,G,"setState")},R.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function _(){}_.prototype=R.prototype;function O(A,G,X){this.props=A,this.context=G,this.refs=C,this.updater=X||T}var z=O.prototype=new _;z.constructor=O,E(z,R.prototype),z.isPureReactComponent=!0;var B=Array.isArray;function P(){}var q={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function ne(A,G,X){var W=X.ref;return{$$typeof:n,type:A,key:G,ref:W!==void 0?W:null,props:X}}function re(A,G){return ne(A.type,G,A.props)}function fe(A){return typeof A=="object"&&A!==null&&A.$$typeof===n}function me(A){var G={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(X){return G[X]})}var ie=/\/+/g;function ue(A,G){return typeof A=="object"&&A!==null&&A.key!=null?me(""+A.key):G.toString(36)}function oe(A){switch(A.status){case"fulfilled":return A.value;case"rejected":throw A.reason;default:switch(typeof A.status=="string"?A.then(P,P):(A.status="pending",A.then(function(G){A.status==="pending"&&(A.status="fulfilled",A.value=G)},function(G){A.status==="pending"&&(A.status="rejected",A.reason=G)})),A.status){case"fulfilled":return A.value;case"rejected":throw A.reason}}throw A}function M(A,G,X,W,te){var se=typeof A;(se==="undefined"||se==="boolean")&&(A=null);var ee=!1;if(A===null)ee=!0;else switch(se){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(A.$$typeof){case n:case r:ee=!0;break;case x:return ee=A._init,M(ee(A._payload),G,X,W,te)}}if(ee)return te=te(A),ee=W===""?"."+ue(A,0):W,B(te)?(X="",ee!=null&&(X=ee.replace(ie,"$&/")+"/"),M(te,G,X,"",function(ve){return ve})):te!=null&&(fe(te)&&(te=re(te,X+(te.key==null||A&&A.key===te.key?"":(""+te.key).replace(ie,"$&/")+"/")+ee)),G.push(te)),1;ee=0;var ce=W===""?".":W+":";if(B(A))for(var J=0;J<A.length;J++)W=A[J],se=ce+ue(W,J),ee+=M(W,G,X,se,te);else if(J=N(A),typeof J=="function")for(A=J.call(A),J=0;!(W=A.next()).done;)W=W.value,se=ce+ue(W,J++),ee+=M(W,G,X,se,te);else if(se==="object"){if(typeof A.then=="function")return M(oe(A),G,X,W,te);throw G=String(A),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return ee}function V(A,G,X){if(A==null)return A;var W=[],te=0;return M(A,W,"","",function(se){return G.call(X,se,te++)}),W}function Z(A){if(A._status===-1){var G=A._result;G=G(),G.then(function(X){(A._status===0||A._status===-1)&&(A._status=1,A._result=X)},function(X){(A._status===0||A._status===-1)&&(A._status=2,A._result=X)}),A._status===-1&&(A._status=0,A._result=G)}if(A._status===1)return A._result.default;throw A._result}var de=typeof reportError=="function"?reportError:function(A){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof A=="object"&&A!==null&&typeof A.message=="string"?String(A.message):String(A),error:A});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",A);return}console.error(A)},F={map:V,forEach:function(A,G,X){V(A,function(){G.apply(this,arguments)},X)},count:function(A){var G=0;return V(A,function(){G++}),G},toArray:function(A){return V(A,function(G){return G})||[]},only:function(A){if(!fe(A))throw Error("React.Children.only expected to receive a single React element child.");return A}};return Ce.Activity=g,Ce.Children=F,Ce.Component=R,Ce.Fragment=l,Ce.Profiler=c,Ce.PureComponent=O,Ce.StrictMode=i,Ce.Suspense=y,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(A){return q.H.useMemoCache(A)}},Ce.cache=function(A){return function(){return A.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(A,G,X){if(A==null)throw Error("The argument must be a React element, but you passed "+A+".");var W=E({},A.props),te=A.key;if(G!=null)for(se in G.key!==void 0&&(te=""+G.key),G)!$.call(G,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&G.ref===void 0||(W[se]=G[se]);var se=arguments.length-2;if(se===1)W.children=X;else if(1<se){for(var ee=Array(se),ce=0;ce<se;ce++)ee[ce]=arguments[ce+2];W.children=ee}return ne(A.type,te,W)},Ce.createContext=function(A){return A={$$typeof:m,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null},A.Provider=A,A.Consumer={$$typeof:d,_context:A},A},Ce.createElement=function(A,G,X){var W,te={},se=null;if(G!=null)for(W in G.key!==void 0&&(se=""+G.key),G)$.call(G,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(te[W]=G[W]);var ee=arguments.length-2;if(ee===1)te.children=X;else if(1<ee){for(var ce=Array(ee),J=0;J<ee;J++)ce[J]=arguments[J+2];te.children=ce}if(A&&A.defaultProps)for(W in ee=A.defaultProps,ee)te[W]===void 0&&(te[W]=ee[W]);return ne(A,se,te)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(A){return{$$typeof:h,render:A}},Ce.isValidElement=fe,Ce.lazy=function(A){return{$$typeof:x,_payload:{_status:-1,_result:A},_init:Z}},Ce.memo=function(A,G){return{$$typeof:p,type:A,compare:G===void 0?null:G}},Ce.startTransition=function(A){var G=q.T,X={};q.T=X;try{var W=A(),te=q.S;te!==null&&te(X,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(P,de)}catch(se){de(se)}finally{G!==null&&X.types!==null&&(G.types=X.types),q.T=G}},Ce.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},Ce.use=function(A){return q.H.use(A)},Ce.useActionState=function(A,G,X){return q.H.useActionState(A,G,X)},Ce.useCallback=function(A,G){return q.H.useCallback(A,G)},Ce.useContext=function(A){return q.H.useContext(A)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(A,G){return q.H.useDeferredValue(A,G)},Ce.useEffect=function(A,G){return q.H.useEffect(A,G)},Ce.useEffectEvent=function(A){return q.H.useEffectEvent(A)},Ce.useId=function(){return q.H.useId()},Ce.useImperativeHandle=function(A,G,X){return q.H.useImperativeHandle(A,G,X)},Ce.useInsertionEffect=function(A,G){return q.H.useInsertionEffect(A,G)},Ce.useLayoutEffect=function(A,G){return q.H.useLayoutEffect(A,G)},Ce.useMemo=function(A,G){return q.H.useMemo(A,G)},Ce.useOptimistic=function(A,G){return q.H.useOptimistic(A,G)},Ce.useReducer=function(A,G,X){return q.H.useReducer(A,G,X)},Ce.useRef=function(A){return q.H.useRef(A)},Ce.useState=function(A){return q.H.useState(A)},Ce.useSyncExternalStore=function(A,G,X){return q.H.useSyncExternalStore(A,G,X)},Ce.useTransition=function(){return q.H.useTransition()},Ce.version="19.2.4",Ce}var cv;function Af(){return cv||(cv=1,Od.exports=Yw()),Od.exports}var v=Af();const ae=Ny(v),jf=$w({__proto__:null,default:ae},[v]);var kd={exports:{}},$o={},Dd={exports:{}},zd={};/**
|
|
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 uv;function Pw(){return uv||(uv=1,(function(n){function r(M,V){var Z=M.length;M.push(V);e:for(;0<Z;){var de=Z-1>>>1,F=M[de];if(0<c(F,V))M[de]=V,M[Z]=F,Z=de;else break e}}function l(M){return M.length===0?null:M[0]}function i(M){if(M.length===0)return null;var V=M[0],Z=M.pop();if(Z!==V){M[0]=Z;e:for(var de=0,F=M.length,A=F>>>1;de<A;){var G=2*(de+1)-1,X=M[G],W=G+1,te=M[W];if(0>c(X,Z))W<F&&0>c(te,X)?(M[de]=te,M[W]=Z,de=W):(M[de]=X,M[G]=Z,de=G);else if(W<F&&0>c(te,Z))M[de]=te,M[W]=Z,de=W;else break e}}return V}function c(M,V){var Z=M.sortIndex-V.sortIndex;return Z!==0?Z:M.id-V.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,R=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function z(M){for(var V=l(p);V!==null;){if(V.callback===null)i(p);else if(V.startTime<=M)i(p),V.sortIndex=V.expirationTime,r(y,V);else break;V=l(p)}}function B(M){if(E=!1,z(M),!T)if(l(y)!==null)T=!0,P||(P=!0,me());else{var V=l(p);V!==null&&oe(B,V.startTime-M)}}var P=!1,q=-1,$=5,ne=-1;function re(){return C?!0:!(n.unstable_now()-ne<$)}function fe(){if(C=!1,P){var M=n.unstable_now();ne=M;var V=!0;try{e:{T=!1,E&&(E=!1,_(q),q=-1),N=!0;var Z=w;try{t:{for(z(M),g=l(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),V=!0;break t}g===l(y)&&i(y),z(M)}else i(y);g=l(y)}if(g!==null)V=!0;else{var A=l(p);A!==null&&oe(B,A.startTime-M),V=!1}}break e}finally{g=null,w=Z,N=!1}V=void 0}}finally{V?me():P=!1}}}var me;if(typeof O=="function")me=function(){O(fe)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,ue=ie.port2;ie.port1.onmessage=fe,me=function(){ue.postMessage(null)}}else me=function(){R(fe,0)};function oe(M,V){q=R(function(){M(n.unstable_now())},V)}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 V=3;break;default:V=w}var Z=w;w=V;try{return M()}finally{w=Z}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(M,V){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var Z=w;w=M;try{return V()}finally{w=Z}},n.unstable_scheduleCallback=function(M,V,Z){var de=n.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?de+Z:de):Z=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=Z+F,M={id:x++,callback:V,priorityLevel:M,startTime:Z,expirationTime:F,sortIndex:-1},Z>de?(M.sortIndex=Z,r(p,M),l(y)===null&&M===l(p)&&(E?(_(q),q=-1):E=!0,oe(B,Z-de))):(M.sortIndex=F,r(y,M),T||N||(T=!0,P||(P=!0,me()))),M},n.unstable_shouldYield=re,n.unstable_wrapCallback=function(M){var V=w;return function(){var Z=w;w=V;try{return M.apply(this,arguments)}finally{w=Z}}}})(zd)),zd}var dv;function Gw(){return dv||(dv=1,Dd.exports=Pw()),Dd.exports}var Ld={exports:{}},zt={};/**
|
|
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 fv;function Iw(){if(fv)return zt;fv=1;var n=Af();function r(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 l(){}var i={d:{f:l,r:function(){throw Error(r(522))},D:l,C:l,L:l,m:l,X:l,S:l,M:l},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 zt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,zt.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(r(299));return d(y,p,null,x)},zt.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()}},zt.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))},zt.prefetchDNS=function(y){typeof y=="string"&&i.d.D(y)},zt.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})}},zt.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)},zt.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})}},zt.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)},zt.requestFormReset=function(y){i.d.r(y)},zt.unstable_batchedUpdates=function(y,p){return y(p)},zt.useFormState=function(y,p,x){return m.H.useFormState(y,p,x)},zt.useFormStatus=function(){return m.H.useHostTransitionStatus()},zt.version="19.2.4",zt}var mv;function Ty(){if(mv)return Ld.exports;mv=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(r){console.error(r)}}return n(),Ld.exports=Iw(),Ld.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 hv;function Xw(){if(hv)return $o;hv=1;var n=Gw(),r=Af(),l=Ty();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,o=t;;){var s=a.return;if(s===null)break;var u=s.alternate;if(u===null){if(o=s.return,o!==null){a=o;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===a)return y(s),e;if(u===o)return y(s),t;u=u.sibling}throw Error(i(188))}if(a.return!==o.return)a=s,o=u;else{for(var b=!1,S=s.child;S;){if(S===a){b=!0,a=s,o=u;break}if(S===o){b=!0,o=s,a=u;break}S=S.sibling}if(!b){for(S=u.child;S;){if(S===a){b=!0,a=u,o=s;break}if(S===o){b=!0,o=u,a=s;break}S=S.sibling}if(!b)throw Error(i(189))}}if(a.alternate!==o)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"),R=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),O=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),B=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),re=Symbol.for("react.memo_cache_sentinel"),fe=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=fe&&e[fe]||e["@@iterator"],typeof e=="function"?e:null)}var ie=Symbol.for("react.client.reference");function ue(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ie?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case R:return"Profiler";case C:return"StrictMode";case B:return"Suspense";case P:return"SuspenseList";case ne:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case O:return e.displayName||"Context";case _: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 q: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=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=l.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},de=[],F=-1;function A(e){return{current:e}}function G(e){0>F||(e.current=de[F],de[F]=null,F--)}function X(e,t){F++,de[F]=e.current,e.current=t}var W=A(null),te=A(null),se=A(null),ee=A(null);function ce(e,t){switch(X(se,t),X(te,e),X(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?jg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=jg(t),e=_g(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}G(W),X(W,e)}function J(){G(W),G(te),G(se)}function ve(e){e.memoizedState!==null&&X(ee,e);var t=W.current,a=_g(t,e.type);t!==a&&(X(te,e),X(W,a))}function be(e){te.current===e&&(G(W),G(te)),ee.current===e&&(G(ee),zo._currentValue=Z)}var Se,He;function _e(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 $e=!1;function ft(e,t){if(!e||$e)return"";$e=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(Y){var H=Y}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(Y){H=Y}e.call(Q.prototype)}}else{try{throw Error()}catch(Y){H=Y}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(Y){if(Y&&H&&typeof Y.stack=="string")return[Y.stack,H.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=o.DetermineComponentFrameRoot(),b=u[0],S=u[1];if(b&&S){var j=b.split(`
|
|
45
|
-
`),U=S.split(`
|
|
46
|
-
`);for(s=o=0;o<j.length&&!j[o].includes("DetermineComponentFrameRoot");)o++;for(;s<U.length&&!U[s].includes("DetermineComponentFrameRoot");)s++;if(o===j.length||s===U.length)for(o=j.length-1,s=U.length-1;1<=o&&0<=s&&j[o]!==U[s];)s--;for(;1<=o&&0<=s;o--,s--)if(j[o]!==U[s]){if(o!==1||s!==1)do if(o--,s--,0>s||j[o]!==U[s]){var I=`
|
|
47
|
-
`+j[o].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=o&&0<=s);break}}}finally{$e=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?_e(a):""}function Ge(e,t){switch(e.tag){case 26:case 27:case 5:return _e(e.type);case 16:return _e("Lazy");case 13:return e.child!==t&&t!==null?_e("Suspense Fallback"):_e("Suspense");case 19:return _e("SuspenseList");case 0:case 15:return ft(e.type,!1);case 11:return ft(e.type.render,!1);case 1:return ft(e.type,!0);case 31:return _e("Activity");default:return""}}function Ut(e){try{var t="",a=null;do t+=Ge(e,a),a=e,e=e.return;while(e);return t}catch(o){return`
|
|
48
|
-
Error generating stack: `+o.message+`
|
|
49
|
-
`+o.stack}}var pt=Object.prototype.hasOwnProperty,sr=n.unstable_scheduleCallback,cr=n.unstable_cancelCallback,Ct=n.unstable_shouldYield,On=n.unstable_requestPaint,Rt=n.unstable_now,Hr=n.unstable_getCurrentPriorityLevel,kn=n.unstable_ImmediatePriority,Ne=n.unstable_UserBlockingPriority,Ie=n.unstable_NormalPriority,We=n.unstable_LowPriority,ct=n.unstable_IdlePriority,Dn=n.log,zn=n.unstable_setDisableYieldValue,Ln=null,Bt=null;function wn(e){if(typeof Dn=="function"&&zn(e),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(Ln,e)}catch{}}var kt=Math.clz32?Math.clz32:Un,xc=Math.log,Kl=Math.LN2;function Un(e){return e>>>=0,e===0?32:31-(xc(e)/Kl|0)|0}var $r=256,qr=262144,ur=4194304;function Bn(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 o=e.pendingLanes;if(o===0)return 0;var s=0,u=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var S=o&134217727;return S!==0?(o=S&~u,o!==0?s=Bn(o):(b&=S,b!==0?s=Bn(b):a||(a=S&~e,a!==0&&(s=Bn(a))))):(S=o&~u,S!==0?s=Bn(S):b!==0?s=Bn(b):a||(a=o&~e,a!==0&&(s=Bn(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 rt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Et(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=ur;return ur<<=1,(ur&62914560)===0&&(ur=4194304),e}function Ta(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 $t(e,t,a,o,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,j=e.expirationTimes,U=e.hiddenUpdates;for(a=b&~a;0<a;){var I=31-kt(a),Q=1<<I;S[I]=0,j[I]=-1;var H=U[I];if(H!==null)for(U[I]=null,I=0;I<H.length;I++){var Y=H[I];Y!==null&&(Y.lane&=-536870913)}a&=~Q}o!==0&&dr(e,o,0),u!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=u&~(b&~t))}function dr(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-kt(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function qt(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-kt(a),s=1<<o;s&t|e[o]&t&&(e[o]|=t),a&=~s}}function Vt(e,t){var a=t&-t;return a=(a&42)!==0?1:Vr(a),(a&(e.suspendedLanes|t))!==0?0:a}function Vr(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 En(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Sc(){var e=V.p;return e!==0?e:(e=window.event,e===void 0?32:Wg(e.type))}function pm(e,t){var a=V.p;try{return V.p=e,t()}finally{V.p=a}}var Ca=Math.random().toString(36).slice(2),At="__reactFiber$"+Ca,Yt="__reactProps$"+Ca,Yr="__reactContainer$"+Ca,wc="__reactEvents$"+Ca,R1="__reactListeners$"+Ca,A1="__reactHandles$"+Ca,gm="__reactResources$"+Ca,Ql="__reactMarker$"+Ca;function Ec(e){delete e[At],delete e[Yt],delete e[wc],delete e[R1],delete e[A1]}function Pr(e){var t=e[At];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Yr]||a[At]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Ug(e);e!==null;){if(a=e[At])return a;e=Ug(e)}return t}e=a,a=e.parentNode}return null}function Gr(e){if(e=e[At]||e[Yr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Zl(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ir(e){var t=e[gm];return t||(t=e[gm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Nt(e){e[Ql]=!0}var vm=new Set,ym={};function fr(e,t){Xr(e,t),Xr(e+"Capture",t)}function Xr(e,t){for(ym[e]=t,e=0;e<t.length;e++)vm.add(t[e])}var j1=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]*$"),bm={},xm={};function _1(e){return pt.call(xm,e)?!0:pt.call(bm,e)?!1:j1.test(e)?xm[e]=!0:(bm[e]=!0,!1)}function oi(e,t,a){if(_1(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function ii(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 ta(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+o)}}function un(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Sm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function M1(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var s=o.get,u=o.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:o.enumerable}),{getValue:function(){return a},setValue:function(b){a=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Nc(e){if(!e._valueTracker){var t=Sm(e)?"checked":"value";e._valueTracker=M1(e,t,""+e[t])}}function wm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=Sm(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function si(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 O1=/[\n"\\]/g;function dn(e){return e.replace(O1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Tc(e,t,a,o,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=""+un(t)):e.value!==""+un(t)&&(e.value=""+un(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?Cc(e,b,un(t)):a!=null?Cc(e,b,un(a)):o!=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=""+un(S):e.removeAttribute("name")}function Em(e,t,a,o,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)){Nc(e);return}a=a!=null?""+un(a):"",t=t!=null?""+un(t):a,S||t===e.value||(e.value=t),e.defaultValue=t}o=o??s,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=S?e.checked:!!o,e.defaultChecked=!!o,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),Nc(e)}function Cc(e,t,a){t==="number"&&si(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Kr(e,t,a,o){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&&o&&(e[a].defaultSelected=!0)}else{for(a=""+un(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,o&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function Nm(e,t,a){if(t!=null&&(t=""+un(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+un(a):""}function Tm(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error(i(92));if(oe(o)){if(1<o.length)throw Error(i(93));o=o[0]}a=o}a==null&&(a=""),t=a}a=un(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),Nc(e)}function Qr(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var k1=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 Cm(e,t,a){var o=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!="number"||a===0||k1.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Rm(e,t,a){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,a!=null){for(var o in a)!a.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var s in t)o=t[s],t.hasOwnProperty(s)&&a[s]!==o&&Cm(e,s,o)}else for(var u in t)t.hasOwnProperty(u)&&Cm(e,u,t[u])}function Rc(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 D1=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"]]),z1=/^[\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 ci(e){return z1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function na(){}var Ac=null;function jc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Zr=null,Fr=null;function Am(e){var t=Gr(e);if(t&&(e=t.stateNode)){var a=e[Yt]||null;e:switch(e=t.stateNode,t.type){case"input":if(Tc(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="'+dn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var s=o[Yt]||null;if(!s)throw Error(i(90));Tc(o,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&wm(o)}break e;case"textarea":Nm(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Kr(e,!!a.multiple,t,!1)}}}var _c=!1;function jm(e,t,a){if(_c)return e(t,a);_c=!0;try{var o=e(t);return o}finally{if(_c=!1,(Zr!==null||Fr!==null)&&(Zi(),Zr&&(t=Zr,e=Fr,Fr=Zr=null,Am(t),e)))for(t=0;t<e.length;t++)Am(e[t])}}function Fl(e,t){var a=e.stateNode;if(a===null)return null;var o=a[Yt]||null;if(o===null)return null;a=o[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":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(i(231,t,typeof a));return a}var aa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Mc=!1;if(aa)try{var Jl={};Object.defineProperty(Jl,"passive",{get:function(){Mc=!0}}),window.addEventListener("test",Jl,Jl),window.removeEventListener("test",Jl,Jl)}catch{Mc=!1}var Ra=null,Oc=null,ui=null;function _m(){if(ui)return ui;var e,t=Oc,a=t.length,o,s="value"in Ra?Ra.value:Ra.textContent,u=s.length;for(e=0;e<a&&t[e]===s[e];e++);var b=a-e;for(o=1;o<=b&&t[a-o]===s[u-o];o++);return ui=s.slice(e,1<o?1-o:void 0)}function di(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 fi(){return!0}function Mm(){return!1}function Pt(e){function t(a,o,s,u,b){this._reactName=a,this._targetInst=s,this.type=o,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)?fi:Mm,this.isPropagationStopped=Mm,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=fi)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=fi)},persist:function(){},isPersistent:fi}),t}var mr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mi=Pt(mr),Wl=g({},mr,{view:0,detail:0}),L1=Pt(Wl),kc,Dc,eo,hi=g({},Wl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Lc,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!==eo&&(eo&&e.type==="mousemove"?(kc=e.screenX-eo.screenX,Dc=e.screenY-eo.screenY):Dc=kc=0,eo=e),kc)},movementY:function(e){return"movementY"in e?e.movementY:Dc}}),Om=Pt(hi),U1=g({},hi,{dataTransfer:0}),B1=Pt(U1),H1=g({},Wl,{relatedTarget:0}),zc=Pt(H1),$1=g({},mr,{animationName:0,elapsedTime:0,pseudoElement:0}),q1=Pt($1),V1=g({},mr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Y1=Pt(V1),P1=g({},mr,{data:0}),km=Pt(P1),G1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},I1={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"},X1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function K1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=X1[e])?!!t[e]:!1}function Lc(){return K1}var Q1=g({},Wl,{key:function(e){if(e.key){var t=G1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=di(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?I1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Lc,charCode:function(e){return e.type==="keypress"?di(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?di(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Z1=Pt(Q1),F1=g({},hi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dm=Pt(F1),J1=g({},Wl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lc}),W1=Pt(J1),eS=g({},mr,{propertyName:0,elapsedTime:0,pseudoElement:0}),tS=Pt(eS),nS=g({},hi,{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}),aS=Pt(nS),rS=g({},mr,{newState:0,oldState:0}),lS=Pt(rS),oS=[9,13,27,32],Uc=aa&&"CompositionEvent"in window,to=null;aa&&"documentMode"in document&&(to=document.documentMode);var iS=aa&&"TextEvent"in window&&!to,zm=aa&&(!Uc||to&&8<to&&11>=to),Lm=" ",Um=!1;function Bm(e,t){switch(e){case"keyup":return oS.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jr=!1;function sS(e,t){switch(e){case"compositionend":return Hm(t);case"keypress":return t.which!==32?null:(Um=!0,Lm);case"textInput":return e=t.data,e===Lm&&Um?null:e;default:return null}}function cS(e,t){if(Jr)return e==="compositionend"||!Uc&&Bm(e,t)?(e=_m(),ui=Oc=Ra=null,Jr=!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 zm&&t.locale!=="ko"?null:t.data;default:return null}}var uS={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 $m(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!uS[e.type]:t==="textarea"}function qm(e,t,a,o){Zr?Fr?Fr.push(o):Fr=[o]:Zr=o,t=as(t,"onChange"),0<t.length&&(a=new mi("onChange","change",null,a,o),e.push({event:a,listeners:t}))}var no=null,ao=null;function dS(e){Eg(e,0)}function pi(e){var t=Zl(e);if(wm(t))return e}function Vm(e,t){if(e==="change")return t}var Ym=!1;if(aa){var Bc;if(aa){var Hc="oninput"in document;if(!Hc){var Pm=document.createElement("div");Pm.setAttribute("oninput","return;"),Hc=typeof Pm.oninput=="function"}Bc=Hc}else Bc=!1;Ym=Bc&&(!document.documentMode||9<document.documentMode)}function Gm(){no&&(no.detachEvent("onpropertychange",Im),ao=no=null)}function Im(e){if(e.propertyName==="value"&&pi(ao)){var t=[];qm(t,ao,e,jc(e)),jm(dS,t)}}function fS(e,t,a){e==="focusin"?(Gm(),no=t,ao=a,no.attachEvent("onpropertychange",Im)):e==="focusout"&&Gm()}function mS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pi(ao)}function hS(e,t){if(e==="click")return pi(t)}function pS(e,t){if(e==="input"||e==="change")return pi(t)}function gS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jt=typeof Object.is=="function"?Object.is:gS;function ro(e,t){if(Jt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var s=a[o];if(!pt.call(t,s)||!Jt(e[s],t[s]))return!1}return!0}function Xm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Km(e,t){var a=Xm(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Xm(a)}}function Qm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Qm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=si(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=si(e.document)}return t}function $c(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 vS=aa&&"documentMode"in document&&11>=document.documentMode,Wr=null,qc=null,lo=null,Vc=!1;function Fm(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Vc||Wr==null||Wr!==si(o)||(o=Wr,"selectionStart"in o&&$c(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),lo&&ro(lo,o)||(lo=o,o=as(qc,"onSelect"),0<o.length&&(t=new mi("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=Wr)))}function hr(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var el={animationend:hr("Animation","AnimationEnd"),animationiteration:hr("Animation","AnimationIteration"),animationstart:hr("Animation","AnimationStart"),transitionrun:hr("Transition","TransitionRun"),transitionstart:hr("Transition","TransitionStart"),transitioncancel:hr("Transition","TransitionCancel"),transitionend:hr("Transition","TransitionEnd")},Yc={},Jm={};aa&&(Jm=document.createElement("div").style,"AnimationEvent"in window||(delete el.animationend.animation,delete el.animationiteration.animation,delete el.animationstart.animation),"TransitionEvent"in window||delete el.transitionend.transition);function pr(e){if(Yc[e])return Yc[e];if(!el[e])return e;var t=el[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Jm)return Yc[e]=t[a];return e}var Wm=pr("animationend"),eh=pr("animationiteration"),th=pr("animationstart"),yS=pr("transitionrun"),bS=pr("transitionstart"),xS=pr("transitioncancel"),nh=pr("transitionend"),ah=new Map,Pc="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(" ");Pc.push("scrollEnd");function Nn(e,t){ah.set(e,t),fr(t,[e])}var gi=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)},fn=[],tl=0,Gc=0;function vi(){for(var e=tl,t=Gc=tl=0;t<e;){var a=fn[t];fn[t++]=null;var o=fn[t];fn[t++]=null;var s=fn[t];fn[t++]=null;var u=fn[t];if(fn[t++]=null,o!==null&&s!==null){var b=o.pending;b===null?s.next=s:(s.next=b.next,b.next=s),o.pending=s}u!==0&&rh(a,s,u)}}function yi(e,t,a,o){fn[tl++]=e,fn[tl++]=t,fn[tl++]=a,fn[tl++]=o,Gc|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Ic(e,t,a,o){return yi(e,t,a,o),bi(e)}function gr(e,t){return yi(e,null,null,t),bi(e)}function rh(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var s=!1,u=e.return;u!==null;)u.childLanes|=a,o=u.alternate,o!==null&&(o.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-kt(a),e=u.hiddenUpdates,o=e[s],o===null?e[s]=[t]:o.push(t),t.lane=a|536870912),u):null}function bi(e){if(50<Ao)throw Ao=0,td=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var nl={};function SS(e,t,a,o){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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(e,t,a,o){return new SS(e,t,a,o)}function Xc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ra(e,t){var a=e.alternate;return a===null?(a=Wt(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 lh(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 xi(e,t,a,o,s,u){var b=0;if(o=e,typeof e=="function")Xc(e)&&(b=1);else if(typeof e=="string")b=Cw(e,a,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ne:return e=Wt(31,a,t,s),e.elementType=ne,e.lanes=u,e;case E:return vr(a.children,s,u,t);case C:b=8,s|=24;break;case R:return e=Wt(12,a,t,s|2),e.elementType=R,e.lanes=u,e;case B:return e=Wt(13,a,t,s),e.elementType=B,e.lanes=u,e;case P:return e=Wt(19,a,t,s),e.elementType=P,e.lanes=u,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:b=10;break e;case _:b=9;break e;case z:b=11;break e;case q:b=14;break e;case $:b=16,o=null;break e}b=29,a=Error(i(130,e===null?"null":typeof e,"")),o=null}return t=Wt(b,a,t,s),t.elementType=e,t.type=o,t.lanes=u,t}function vr(e,t,a,o){return e=Wt(7,e,o,t),e.lanes=a,e}function Kc(e,t,a){return e=Wt(6,e,null,t),e.lanes=a,e}function oh(e){var t=Wt(18,null,null,0);return t.stateNode=e,t}function Qc(e,t,a){return t=Wt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ih=new WeakMap;function mn(e,t){if(typeof e=="object"&&e!==null){var a=ih.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Ut(t)},ih.set(e,t),t)}return{value:e,source:t,stack:Ut(t)}}var al=[],rl=0,Si=null,oo=0,hn=[],pn=0,Aa=null,Hn=1,$n="";function la(e,t){al[rl++]=oo,al[rl++]=Si,Si=e,oo=t}function sh(e,t,a){hn[pn++]=Hn,hn[pn++]=$n,hn[pn++]=Aa,Aa=e;var o=Hn;e=$n;var s=32-kt(o)-1;o&=~(1<<s),a+=1;var u=32-kt(t)+s;if(30<u){var b=s-s%5;u=(o&(1<<b)-1).toString(32),o>>=b,s-=b,Hn=1<<32-kt(t)+s|a<<s|o,$n=u+e}else Hn=1<<u|a<<s|o,$n=e}function Zc(e){e.return!==null&&(la(e,1),sh(e,1,0))}function Fc(e){for(;e===Si;)Si=al[--rl],al[rl]=null,oo=al[--rl],al[rl]=null;for(;e===Aa;)Aa=hn[--pn],hn[pn]=null,$n=hn[--pn],hn[pn]=null,Hn=hn[--pn],hn[pn]=null}function ch(e,t){hn[pn++]=Hn,hn[pn++]=$n,hn[pn++]=Aa,Hn=t.id,$n=t.overflow,Aa=e}var jt=null,nt=null,Le=!1,ja=null,gn=!1,Jc=Error(i(519));function _a(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw io(mn(t,e)),Jc}function uh(e){var t=e.stateNode,a=e.type,o=e.memoizedProps;switch(t[At]=e,t[Yt]=o,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<_o.length;a++)Oe(_o[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),Em(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"select":Oe("invalid",t);break;case"textarea":Oe("invalid",t),Tm(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||Rg(t.textContent,a)?(o.popover!=null&&(Oe("beforetoggle",t),Oe("toggle",t)),o.onScroll!=null&&Oe("scroll",t),o.onScrollEnd!=null&&Oe("scrollend",t),o.onClick!=null&&(t.onclick=na),t=!0):t=!1,t||_a(e,!0)}function dh(e){for(jt=e.return;jt;)switch(jt.tag){case 5:case 31:case 13:gn=!1;return;case 27:case 3:gn=!0;return;default:jt=jt.return}}function ll(e){if(e!==jt)return!1;if(!Le)return dh(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")||gd(e.type,e.memoizedProps)),a=!a),a&&nt&&_a(e),dh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));nt=Lg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));nt=Lg(e)}else t===27?(t=nt,Pa(e.type)?(e=Sd,Sd=null,nt=e):nt=t):nt=jt?yn(e.stateNode.nextSibling):null;return!0}function yr(){nt=jt=null,Le=!1}function Wc(){var e=ja;return e!==null&&(Kt===null?Kt=e:Kt.push.apply(Kt,e),ja=null),e}function io(e){ja===null?ja=[e]:ja.push(e)}var eu=A(null),br=null,oa=null;function Ma(e,t,a){X(eu,t._currentValue),t._currentValue=a}function ia(e){e._currentValue=eu.current,G(eu)}function tu(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}}function nu(e,t,a,o){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 j=0;j<t.length;j++)if(S.context===t[j]){u.lanes|=a,S=u.alternate,S!==null&&(S.lanes|=a),tu(u.return,a,e),o||(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),tu(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 ol(e,t,a,o){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;Jt(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(zo):e=[zo])}s=s.return}e!==null&&nu(t,e,a,o),t.flags|=262144}function wi(e){for(e=e.firstContext;e!==null;){if(!Jt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function xr(e){br=e,oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function _t(e){return fh(br,e)}function Ei(e,t){return br===null&&xr(e),fh(e,t)}function fh(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},oa===null){if(e===null)throw Error(i(308));oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else oa=oa.next=t;return a}var wS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},ES=n.unstable_scheduleCallback,NS=n.unstable_NormalPriority,gt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function au(){return{controller:new wS,data:new Map,refCount:0}}function so(e){e.refCount--,e.refCount===0&&ES(NS,function(){e.controller.abort()})}var co=null,ru=0,il=0,sl=null;function TS(e,t){if(co===null){var a=co=[];ru=0,il=id(),sl={status:"pending",value:void 0,then:function(o){a.push(o)}}}return ru++,t.then(mh,mh),t}function mh(){if(--ru===0&&co!==null){sl!==null&&(sl.status="fulfilled");var e=co;co=null,il=0,sl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function CS(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(o.status="rejected",o.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),o}var hh=M.S;M.S=function(e,t){Fp=Rt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&TS(e,t),hh!==null&&hh(e,t)};var Sr=A(null);function lu(){var e=Sr.current;return e!==null?e:Je.pooledCache}function Ni(e,t){t===null?X(Sr,Sr.current):X(Sr,t.pool)}function ph(){var e=lu();return e===null?null:{parent:gt._currentValue,pool:e}}var cl=Error(i(460)),ou=Error(i(474)),Ti=Error(i(542)),Ci={then:function(){}};function gh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function vh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(na,na),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bh(e),e;default:if(typeof t.status=="string")t.then(na,na);else{if(e=Je,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=o}},function(o){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,bh(e),e}throw Er=t,cl}}function wr(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Er=a,cl):a}}var Er=null;function yh(){if(Er===null)throw Error(i(459));var e=Er;return Er=null,e}function bh(e){if(e===cl||e===Ti)throw Error(i(483))}var ul=null,uo=0;function Ri(e){var t=uo;return uo+=1,ul===null&&(ul=[]),vh(ul,e,t)}function fo(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Ai(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 xh(e){function t(D,k){if(e){var L=D.deletions;L===null?(D.deletions=[k],D.flags|=16):L.push(k)}}function a(D,k){if(!e)return null;for(;k!==null;)t(D,k),k=k.sibling;return null}function o(D){for(var k=new Map;D!==null;)D.key!==null?k.set(D.key,D):k.set(D.index,D),D=D.sibling;return k}function s(D,k){return D=ra(D,k),D.index=0,D.sibling=null,D}function u(D,k,L){return D.index=L,e?(L=D.alternate,L!==null?(L=L.index,L<k?(D.flags|=67108866,k):L):(D.flags|=67108866,k)):(D.flags|=1048576,k)}function b(D){return e&&D.alternate===null&&(D.flags|=67108866),D}function S(D,k,L,K){return k===null||k.tag!==6?(k=Kc(L,D.mode,K),k.return=D,k):(k=s(k,L),k.return=D,k)}function j(D,k,L,K){var xe=L.type;return xe===E?I(D,k,L.props.children,K,L.key):k!==null&&(k.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===$&&wr(xe)===k.type)?(k=s(k,L.props),fo(k,L),k.return=D,k):(k=xi(L.type,L.key,L.props,null,D.mode,K),fo(k,L),k.return=D,k)}function U(D,k,L,K){return k===null||k.tag!==4||k.stateNode.containerInfo!==L.containerInfo||k.stateNode.implementation!==L.implementation?(k=Qc(L,D.mode,K),k.return=D,k):(k=s(k,L.children||[]),k.return=D,k)}function I(D,k,L,K,xe){return k===null||k.tag!==7?(k=vr(L,D.mode,K,xe),k.return=D,k):(k=s(k,L),k.return=D,k)}function Q(D,k,L){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return k=Kc(""+k,D.mode,L),k.return=D,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case N:return L=xi(k.type,k.key,k.props,null,D.mode,L),fo(L,k),L.return=D,L;case T:return k=Qc(k,D.mode,L),k.return=D,k;case $:return k=wr(k),Q(D,k,L)}if(oe(k)||me(k))return k=vr(k,D.mode,L,null),k.return=D,k;if(typeof k.then=="function")return Q(D,Ri(k),L);if(k.$$typeof===O)return Q(D,Ei(D,k),L);Ai(D,k)}return null}function H(D,k,L,K){var xe=k!==null?k.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return xe!==null?null:S(D,k,""+L,K);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case N:return L.key===xe?j(D,k,L,K):null;case T:return L.key===xe?U(D,k,L,K):null;case $:return L=wr(L),H(D,k,L,K)}if(oe(L)||me(L))return xe!==null?null:I(D,k,L,K,null);if(typeof L.then=="function")return H(D,k,Ri(L),K);if(L.$$typeof===O)return H(D,k,Ei(D,L),K);Ai(D,L)}return null}function Y(D,k,L,K,xe){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return D=D.get(L)||null,S(k,D,""+K,xe);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case N:return D=D.get(K.key===null?L:K.key)||null,j(k,D,K,xe);case T:return D=D.get(K.key===null?L:K.key)||null,U(k,D,K,xe);case $:return K=wr(K),Y(D,k,L,K,xe)}if(oe(K)||me(K))return D=D.get(L)||null,I(k,D,K,xe,null);if(typeof K.then=="function")return Y(D,k,L,Ri(K),xe);if(K.$$typeof===O)return Y(D,k,L,Ei(k,K),xe);Ai(k,K)}return null}function he(D,k,L,K){for(var xe=null,qe=null,ye=k,Ae=k=0,ze=null;ye!==null&&Ae<L.length;Ae++){ye.index>Ae?(ze=ye,ye=null):ze=ye.sibling;var Ve=H(D,ye,L[Ae],K);if(Ve===null){ye===null&&(ye=ze);break}e&&ye&&Ve.alternate===null&&t(D,ye),k=u(Ve,k,Ae),qe===null?xe=Ve:qe.sibling=Ve,qe=Ve,ye=ze}if(Ae===L.length)return a(D,ye),Le&&la(D,Ae),xe;if(ye===null){for(;Ae<L.length;Ae++)ye=Q(D,L[Ae],K),ye!==null&&(k=u(ye,k,Ae),qe===null?xe=ye:qe.sibling=ye,qe=ye);return Le&&la(D,Ae),xe}for(ye=o(ye);Ae<L.length;Ae++)ze=Y(ye,D,Ae,L[Ae],K),ze!==null&&(e&&ze.alternate!==null&&ye.delete(ze.key===null?Ae:ze.key),k=u(ze,k,Ae),qe===null?xe=ze:qe.sibling=ze,qe=ze);return e&&ye.forEach(function(Qa){return t(D,Qa)}),Le&&la(D,Ae),xe}function we(D,k,L,K){if(L==null)throw Error(i(151));for(var xe=null,qe=null,ye=k,Ae=k=0,ze=null,Ve=L.next();ye!==null&&!Ve.done;Ae++,Ve=L.next()){ye.index>Ae?(ze=ye,ye=null):ze=ye.sibling;var Qa=H(D,ye,Ve.value,K);if(Qa===null){ye===null&&(ye=ze);break}e&&ye&&Qa.alternate===null&&t(D,ye),k=u(Qa,k,Ae),qe===null?xe=Qa:qe.sibling=Qa,qe=Qa,ye=ze}if(Ve.done)return a(D,ye),Le&&la(D,Ae),xe;if(ye===null){for(;!Ve.done;Ae++,Ve=L.next())Ve=Q(D,Ve.value,K),Ve!==null&&(k=u(Ve,k,Ae),qe===null?xe=Ve:qe.sibling=Ve,qe=Ve);return Le&&la(D,Ae),xe}for(ye=o(ye);!Ve.done;Ae++,Ve=L.next())Ve=Y(ye,D,Ae,Ve.value,K),Ve!==null&&(e&&Ve.alternate!==null&&ye.delete(Ve.key===null?Ae:Ve.key),k=u(Ve,k,Ae),qe===null?xe=Ve:qe.sibling=Ve,qe=Ve);return e&&ye.forEach(function(Uw){return t(D,Uw)}),Le&&la(D,Ae),xe}function Fe(D,k,L,K){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;k!==null;){if(k.key===xe){if(xe=L.type,xe===E){if(k.tag===7){a(D,k.sibling),K=s(k,L.props.children),K.return=D,D=K;break e}}else if(k.elementType===xe||typeof xe=="object"&&xe!==null&&xe.$$typeof===$&&wr(xe)===k.type){a(D,k.sibling),K=s(k,L.props),fo(K,L),K.return=D,D=K;break e}a(D,k);break}else t(D,k);k=k.sibling}L.type===E?(K=vr(L.props.children,D.mode,K,L.key),K.return=D,D=K):(K=xi(L.type,L.key,L.props,null,D.mode,K),fo(K,L),K.return=D,D=K)}return b(D);case T:e:{for(xe=L.key;k!==null;){if(k.key===xe)if(k.tag===4&&k.stateNode.containerInfo===L.containerInfo&&k.stateNode.implementation===L.implementation){a(D,k.sibling),K=s(k,L.children||[]),K.return=D,D=K;break e}else{a(D,k);break}else t(D,k);k=k.sibling}K=Qc(L,D.mode,K),K.return=D,D=K}return b(D);case $:return L=wr(L),Fe(D,k,L,K)}if(oe(L))return he(D,k,L,K);if(me(L)){if(xe=me(L),typeof xe!="function")throw Error(i(150));return L=xe.call(L),we(D,k,L,K)}if(typeof L.then=="function")return Fe(D,k,Ri(L),K);if(L.$$typeof===O)return Fe(D,k,Ei(D,L),K);Ai(D,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,k!==null&&k.tag===6?(a(D,k.sibling),K=s(k,L),K.return=D,D=K):(a(D,k),K=Kc(L,D.mode,K),K.return=D,D=K),b(D)):a(D,k)}return function(D,k,L,K){try{uo=0;var xe=Fe(D,k,L,K);return ul=null,xe}catch(ye){if(ye===cl||ye===Ti)throw ye;var qe=Wt(29,ye,null,D.mode);return qe.lanes=K,qe.return=D,qe}finally{}}}var Nr=xh(!0),Sh=xh(!1),Oa=!1;function iu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function su(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 ka(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Da(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Ye&2)!==0){var s=o.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),o.pending=t,t=bi(e),rh(e,null,a),t}return yi(e,o,t,a),bi(e)}function mo(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,qt(e,a)}}function cu(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){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:o.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var uu=!1;function ho(){if(uu){var e=sl;if(e!==null)throw e}}function po(e,t,a,o){uu=!1;var s=e.updateQueue;Oa=!1;var u=s.firstBaseUpdate,b=s.lastBaseUpdate,S=s.shared.pending;if(S!==null){s.shared.pending=null;var j=S,U=j.next;j.next=null,b===null?u=U:b.next=U,b=j;var I=e.alternate;I!==null&&(I=I.updateQueue,S=I.lastBaseUpdate,S!==b&&(S===null?I.firstBaseUpdate=U:S.next=U,I.lastBaseUpdate=j))}if(u!==null){var Q=s.baseState;b=0,I=U=j=null,S=u;do{var H=S.lane&-536870913,Y=H!==S.lane;if(Y?(De&H)===H:(o&H)===H){H!==0&&H===il&&(uu=!0),I!==null&&(I=I.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"){Q=he.call(Fe,Q,H);break e}Q=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=we.payload,H=typeof he=="function"?he.call(Fe,Q,H):he,H==null)break e;Q=g({},Q,H);break e;case 2:Oa=!0}}H=S.callback,H!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=s.callbacks,Y===null?s.callbacks=[H]:Y.push(H))}else Y={lane:H,tag:S.tag,payload:S.payload,callback:S.callback,next:null},I===null?(U=I=Y,j=Q):I=I.next=Y,b|=H;if(S=S.next,S===null){if(S=s.shared.pending,S===null)break;Y=S,S=Y.next,Y.next=null,s.lastBaseUpdate=Y,s.shared.pending=null}}while(!0);I===null&&(j=Q),s.baseState=j,s.firstBaseUpdate=U,s.lastBaseUpdate=I,u===null&&(s.shared.lanes=0),Ha|=b,e.lanes=b,e.memoizedState=Q}}function wh(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Eh(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)wh(a[e],t)}var dl=A(null),ji=A(0);function Nh(e,t){e=ga,X(ji,e),X(dl,t),ga=e|t.baseLanes}function du(){X(ji,ga),X(dl,dl.current)}function fu(){ga=ji.current,G(dl),G(ji)}var en=A(null),vn=null;function za(e){var t=e.alternate;X(mt,mt.current&1),X(en,e),vn===null&&(t===null||dl.current!==null||t.memoizedState!==null)&&(vn=e)}function mu(e){X(mt,mt.current),X(en,e),vn===null&&(vn=e)}function Th(e){e.tag===22?(X(mt,mt.current),X(en,e),vn===null&&(vn=e)):La()}function La(){X(mt,mt.current),X(en,en.current)}function tn(e){G(en),vn===e&&(vn=null),G(mt)}var mt=A(0);function _i(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||bd(a)||xd(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 sa=0,Re=null,Qe=null,vt=null,Mi=!1,fl=!1,Tr=!1,Oi=0,go=0,ml=null,RS=0;function ut(){throw Error(i(321))}function hu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Jt(e[a],t[a]))return!1;return!0}function pu(e,t,a,o,s,u){return sa=u,Re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,M.H=e===null||e.memoizedState===null?sp:_u,Tr=!1,u=a(o,s),Tr=!1,fl&&(u=Rh(t,a,o,s)),Ch(e),u}function Ch(e){M.H=bo;var t=Qe!==null&&Qe.next!==null;if(sa=0,vt=Qe=Re=null,Mi=!1,go=0,ml=null,t)throw Error(i(300));e===null||yt||(e=e.dependencies,e!==null&&wi(e)&&(yt=!0))}function Rh(e,t,a,o){Re=e;var s=0;do{if(fl&&(ml=null),go=0,fl=!1,25<=s)throw Error(i(301));if(s+=1,vt=Qe=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=cp,u=t(a,o)}while(fl);return u}function AS(){var e=M.H,t=e.useState()[0];return t=typeof t.then=="function"?vo(t):t,e=e.useState()[0],(Qe!==null?Qe.memoizedState:null)!==e&&(Re.flags|=1024),t}function gu(){var e=Oi!==0;return Oi=0,e}function vu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function yu(e){if(Mi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Mi=!1}sa=0,vt=Qe=Re=null,fl=!1,go=Oi=0,ml=null}function Ht(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vt===null?Re.memoizedState=vt=e:vt=vt.next=e,vt}function ht(){if(Qe===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var t=vt===null?Re.memoizedState:vt.next;if(t!==null)vt=t,Qe=e;else{if(e===null)throw Re.alternate===null?Error(i(467)):Error(i(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},vt===null?Re.memoizedState=vt=e:vt=vt.next=e}return vt}function ki(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vo(e){var t=go;return go+=1,ml===null&&(ml=[]),e=vh(ml,e,t),t=Re,(vt===null?t.memoizedState:vt.next)===null&&(t=t.alternate,M.H=t===null||t.memoizedState===null?sp:_u),e}function Di(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return vo(e);if(e.$$typeof===O)return _t(e)}throw Error(i(438,String(e)))}function bu(e){var t=null,a=Re.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Re.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=ki(),Re.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=re;return t.index++,a}function ca(e,t){return typeof t=="function"?t(e):t}function zi(e){var t=ht();return xu(t,Qe,e)}function xu(e,t,a){var o=e.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=a;var s=e.baseQueue,u=o.pending;if(u!==null){if(s!==null){var b=s.next;s.next=u.next,u.next=b}t.baseQueue=s=u,o.pending=null}if(u=e.baseState,s===null)e.memoizedState=u;else{t=s.next;var S=b=null,j=null,U=t,I=!1;do{var Q=U.lane&-536870913;if(Q!==U.lane?(De&Q)===Q:(sa&Q)===Q){var H=U.revertLane;if(H===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),Q===il&&(I=!0);else if((sa&H)===H){U=U.next,H===il&&(I=!0);continue}else Q={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},j===null?(S=j=Q,b=u):j=j.next=Q,Re.lanes|=H,Ha|=H;Q=U.action,Tr&&a(u,Q),u=U.hasEagerState?U.eagerState:a(u,Q)}else H={lane:Q,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},j===null?(S=j=H,b=u):j=j.next=H,Re.lanes|=Q,Ha|=Q;U=U.next}while(U!==null&&U!==t);if(j===null?b=u:j.next=S,!Jt(u,e.memoizedState)&&(yt=!0,I&&(a=sl,a!==null)))throw a;e.memoizedState=u,e.baseState=b,e.baseQueue=j,o.lastRenderedState=u}return s===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Su(e){var t=ht(),a=t.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var o=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);Jt(u,t.memoizedState)||(yt=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),a.lastRenderedState=u}return[u,o]}function Ah(e,t,a){var o=Re,s=ht(),u=Le;if(u){if(a===void 0)throw Error(i(407));a=a()}else a=t();var b=!Jt((Qe||s).memoizedState,a);if(b&&(s.memoizedState=a,yt=!0),s=s.queue,Nu(Mh.bind(null,o,s,e),[e]),s.getSnapshot!==t||b||vt!==null&&vt.memoizedState.tag&1){if(o.flags|=2048,hl(9,{destroy:void 0},_h.bind(null,o,s,a,t),null),Je===null)throw Error(i(349));u||(sa&127)!==0||jh(o,t,a)}return a}function jh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Re.updateQueue,t===null?(t=ki(),Re.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function _h(e,t,a,o){t.value=a,t.getSnapshot=o,Oh(t)&&kh(e)}function Mh(e,t,a){return a(function(){Oh(t)&&kh(e)})}function Oh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Jt(e,a)}catch{return!0}}function kh(e){var t=gr(e,2);t!==null&&Qt(t,e,2)}function wu(e){var t=Ht();if(typeof e=="function"){var a=e;if(e=a(),Tr){wn(!0);try{a()}finally{wn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:e},t}function Dh(e,t,a,o){return e.baseState=a,xu(e,Qe,typeof o=="function"?o:ca)}function jS(e,t,a,o,s){if(Bi(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,o(u),a=t.pending,a===null?(u.next=t.pending=u,zh(t,u)):(u.next=a.next,t.pending=a.next=u)}}function zh(e,t){var a=t.action,o=t.payload,s=e.state;if(t.isTransition){var u=M.T,b={};M.T=b;try{var S=a(s,o),j=M.S;j!==null&&j(b,S),Lh(e,t,S)}catch(U){Eu(e,t,U)}finally{u!==null&&b.types!==null&&(u.types=b.types),M.T=u}}else try{u=a(s,o),Lh(e,t,u)}catch(U){Eu(e,t,U)}}function Lh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(o){Uh(e,t,o)},function(o){return Eu(e,t,o)}):Uh(e,t,a)}function Uh(e,t,a){t.status="fulfilled",t.value=a,Bh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,zh(e,a)))}function Eu(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,Bh(t),t=t.next;while(t!==o)}e.action=null}function Bh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Hh(e,t){return t}function $h(e,t){if(Le){var a=Je.formState;if(a!==null){e:{var o=Re;if(Le){if(nt){t:{for(var s=nt,u=gn;s.nodeType!==8;){if(!u){s=null;break t}if(s=yn(s.nextSibling),s===null){s=null;break t}}u=s.data,s=u==="F!"||u==="F"?s:null}if(s){nt=yn(s.nextSibling),o=s.data==="F!";break e}}_a(o)}o=!1}o&&(t=a[0])}}return a=Ht(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hh,lastRenderedState:t},a.queue=o,a=lp.bind(null,Re,o),o.dispatch=a,o=wu(!1),u=ju.bind(null,Re,!1,o.queue),o=Ht(),s={state:t,dispatch:null,action:e,pending:null},o.queue=s,a=jS.bind(null,Re,s,u,a),s.dispatch=a,o.memoizedState=e,[t,a,!1]}function qh(e){var t=ht();return Vh(t,Qe,e)}function Vh(e,t,a){if(t=xu(e,t,Hh)[0],e=zi(ca)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=vo(t)}catch(b){throw b===cl?Ti:b}else o=t;t=ht();var s=t.queue,u=s.dispatch;return a!==t.memoizedState&&(Re.flags|=2048,hl(9,{destroy:void 0},_S.bind(null,s,a),null)),[o,u,e]}function _S(e,t){e.action=t}function Yh(e){var t=ht(),a=Qe;if(a!==null)return Vh(t,a,e);ht(),t=t.memoizedState,a=ht();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function hl(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Re.updateQueue,t===null&&(t=ki(),Re.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function Ph(){return ht().memoizedState}function Li(e,t,a,o){var s=Ht();Re.flags|=e,s.memoizedState=hl(1|t,{destroy:void 0},a,o===void 0?null:o)}function Ui(e,t,a,o){var s=ht();o=o===void 0?null:o;var u=s.memoizedState.inst;Qe!==null&&o!==null&&hu(o,Qe.memoizedState.deps)?s.memoizedState=hl(t,u,a,o):(Re.flags|=e,s.memoizedState=hl(1|t,u,a,o))}function Gh(e,t){Li(8390656,8,e,t)}function Nu(e,t){Ui(2048,8,e,t)}function MS(e){Re.flags|=4;var t=Re.updateQueue;if(t===null)t=ki(),Re.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ih(e){var t=ht().memoizedState;return MS({ref:t,nextImpl:e}),function(){if((Ye&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Xh(e,t){return Ui(4,2,e,t)}function Kh(e,t){return Ui(4,4,e,t)}function Qh(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 Zh(e,t,a){a=a!=null?a.concat([e]):null,Ui(4,4,Qh.bind(null,t,e),a)}function Tu(){}function Fh(e,t){var a=ht();t=t===void 0?null:t;var o=a.memoizedState;return t!==null&&hu(t,o[1])?o[0]:(a.memoizedState=[e,t],e)}function Jh(e,t){var a=ht();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&hu(t,o[1]))return o[0];if(o=e(),Tr){wn(!0);try{e()}finally{wn(!1)}}return a.memoizedState=[o,t],o}function Cu(e,t,a){return a===void 0||(sa&1073741824)!==0&&(De&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Wp(),Re.lanes|=e,Ha|=e,a)}function Wh(e,t,a,o){return Jt(a,t)?a:dl.current!==null?(e=Cu(e,a,o),Jt(e,t)||(yt=!0),e):(sa&42)===0||(sa&1073741824)!==0&&(De&261930)===0?(yt=!0,e.memoizedState=a):(e=Wp(),Re.lanes|=e,Ha|=e,t)}function ep(e,t,a,o,s){var u=V.p;V.p=u!==0&&8>u?u:8;var b=M.T,S={};M.T=S,ju(e,!1,t,a);try{var j=s(),U=M.S;if(U!==null&&U(S,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var I=CS(j,o);yo(e,t,I,rn(e))}else yo(e,t,o,rn(e))}catch(Q){yo(e,t,{then:function(){},status:"rejected",reason:Q},rn())}finally{V.p=u,b!==null&&S.types!==null&&(b.types=S.types),M.T=b}}function OS(){}function Ru(e,t,a,o){if(e.tag!==5)throw Error(i(476));var s=tp(e).queue;ep(e,s,t,Z,a===null?OS:function(){return np(e),a(o)})}function tp(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:Z},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ca,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function np(e){var t=tp(e);t.next===null&&(t=e.alternate.memoizedState),yo(e,t.next.queue,{},rn())}function Au(){return _t(zo)}function ap(){return ht().memoizedState}function rp(){return ht().memoizedState}function kS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=rn();e=ka(a);var o=Da(t,e,a);o!==null&&(Qt(o,t,a),mo(o,t,a)),t={cache:au()},e.payload=t;return}t=t.return}}function DS(e,t,a){var o=rn();a={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Bi(e)?op(t,a):(a=Ic(e,t,a,o),a!==null&&(Qt(a,e,o),ip(a,t,o)))}function lp(e,t,a){var o=rn();yo(e,t,a,o)}function yo(e,t,a,o){var s={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Bi(e))op(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,Jt(S,b))return yi(e,t,s,0),Je===null&&vi(),!1}catch{}finally{}if(a=Ic(e,t,s,o),a!==null)return Qt(a,e,o),ip(a,t,o),!0}return!1}function ju(e,t,a,o){if(o={lane:2,revertLane:id(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Bi(e)){if(t)throw Error(i(479))}else t=Ic(e,a,o,2),t!==null&&Qt(t,e,2)}function Bi(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function op(e,t){fl=Mi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function ip(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,qt(e,a)}}var bo={readContext:_t,use:Di,useCallback:ut,useContext:ut,useEffect:ut,useImperativeHandle:ut,useLayoutEffect:ut,useInsertionEffect:ut,useMemo:ut,useReducer:ut,useRef:ut,useState:ut,useDebugValue:ut,useDeferredValue:ut,useTransition:ut,useSyncExternalStore:ut,useId:ut,useHostTransitionStatus:ut,useFormState:ut,useActionState:ut,useOptimistic:ut,useMemoCache:ut,useCacheRefresh:ut};bo.useEffectEvent=ut;var sp={readContext:_t,use:Di,useCallback:function(e,t){return Ht().memoizedState=[e,t===void 0?null:t],e},useContext:_t,useEffect:Gh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Li(4194308,4,Qh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Li(4194308,4,e,t)},useInsertionEffect:function(e,t){Li(4,2,e,t)},useMemo:function(e,t){var a=Ht();t=t===void 0?null:t;var o=e();if(Tr){wn(!0);try{e()}finally{wn(!1)}}return a.memoizedState=[o,t],o},useReducer:function(e,t,a){var o=Ht();if(a!==void 0){var s=a(t);if(Tr){wn(!0);try{a(t)}finally{wn(!1)}}}else s=t;return o.memoizedState=o.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},o.queue=e,e=e.dispatch=DS.bind(null,Re,e),[o.memoizedState,e]},useRef:function(e){var t=Ht();return e={current:e},t.memoizedState=e},useState:function(e){e=wu(e);var t=e.queue,a=lp.bind(null,Re,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Tu,useDeferredValue:function(e,t){var a=Ht();return Cu(a,e,t)},useTransition:function(){var e=wu(!1);return e=ep.bind(null,Re,e.queue,!0,!1),Ht().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var o=Re,s=Ht();if(Le){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),Je===null)throw Error(i(349));(De&127)!==0||jh(o,t,a)}s.memoizedState=a;var u={value:a,getSnapshot:t};return s.queue=u,Gh(Mh.bind(null,o,u,e),[e]),o.flags|=2048,hl(9,{destroy:void 0},_h.bind(null,o,u,a,t),null),a},useId:function(){var e=Ht(),t=Je.identifierPrefix;if(Le){var a=$n,o=Hn;a=(o&~(1<<32-kt(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Oi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=RS++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Au,useFormState:$h,useActionState:$h,useOptimistic:function(e){var t=Ht();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ju.bind(null,Re,!0,a),a.dispatch=t,[e,t]},useMemoCache:bu,useCacheRefresh:function(){return Ht().memoizedState=kS.bind(null,Re)},useEffectEvent:function(e){var t=Ht(),a={impl:e};return t.memoizedState=a,function(){if((Ye&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},_u={readContext:_t,use:Di,useCallback:Fh,useContext:_t,useEffect:Nu,useImperativeHandle:Zh,useInsertionEffect:Xh,useLayoutEffect:Kh,useMemo:Jh,useReducer:zi,useRef:Ph,useState:function(){return zi(ca)},useDebugValue:Tu,useDeferredValue:function(e,t){var a=ht();return Wh(a,Qe.memoizedState,e,t)},useTransition:function(){var e=zi(ca)[0],t=ht().memoizedState;return[typeof e=="boolean"?e:vo(e),t]},useSyncExternalStore:Ah,useId:ap,useHostTransitionStatus:Au,useFormState:qh,useActionState:qh,useOptimistic:function(e,t){var a=ht();return Dh(a,Qe,e,t)},useMemoCache:bu,useCacheRefresh:rp};_u.useEffectEvent=Ih;var cp={readContext:_t,use:Di,useCallback:Fh,useContext:_t,useEffect:Nu,useImperativeHandle:Zh,useInsertionEffect:Xh,useLayoutEffect:Kh,useMemo:Jh,useReducer:Su,useRef:Ph,useState:function(){return Su(ca)},useDebugValue:Tu,useDeferredValue:function(e,t){var a=ht();return Qe===null?Cu(a,e,t):Wh(a,Qe.memoizedState,e,t)},useTransition:function(){var e=Su(ca)[0],t=ht().memoizedState;return[typeof e=="boolean"?e:vo(e),t]},useSyncExternalStore:Ah,useId:ap,useHostTransitionStatus:Au,useFormState:Yh,useActionState:Yh,useOptimistic:function(e,t){var a=ht();return Qe!==null?Dh(a,Qe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:bu,useCacheRefresh:rp};cp.useEffectEvent=Ih;function Mu(e,t,a,o){t=e.memoizedState,a=a(o,t),a=a==null?t:g({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Ou={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=rn(),s=ka(o);s.payload=t,a!=null&&(s.callback=a),t=Da(e,s,o),t!==null&&(Qt(t,e,o),mo(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=rn(),s=ka(o);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=Da(e,s,o),t!==null&&(Qt(t,e,o),mo(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=rn(),o=ka(a);o.tag=2,t!=null&&(o.callback=t),t=Da(e,o,a),t!==null&&(Qt(t,e,a),mo(t,e,a))}};function up(e,t,a,o,s,u,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,u,b):t.prototype&&t.prototype.isPureReactComponent?!ro(a,o)||!ro(s,u):!0}function dp(e,t,a,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==e&&Ou.enqueueReplaceState(t,t.state,null)}function Cr(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}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 fp(e){gi(e)}function mp(e){console.error(e)}function hp(e){gi(e)}function Hi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function pp(e,t,a){try{var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function ku(e,t,a){return a=ka(a),a.tag=3,a.payload={element:null},a.callback=function(){Hi(e,t)},a}function gp(e){return e=ka(e),e.tag=3,e}function vp(e,t,a,o){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var u=o.value;e.payload=function(){return s(u)},e.callback=function(){pp(t,a,o)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){pp(t,a,o),typeof s!="function"&&($a===null?$a=new Set([this]):$a.add(this));var S=o.stack;this.componentDidCatch(o.value,{componentStack:S!==null?S:""})})}function zS(e,t,a,o,s){if(a.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=a.alternate,t!==null&&ol(t,a,s,!0),a=en.current,a!==null){switch(a.tag){case 31:case 13:return vn===null?Fi():a.alternate===null&&dt===0&&(dt=3),a.flags&=-257,a.flags|=65536,a.lanes=s,o===Ci?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),rd(e,o,s)),!1;case 22:return a.flags|=65536,o===Ci?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),rd(e,o,s)),!1}throw Error(i(435,a.tag))}return rd(e,o,s),Fi(),!1}if(Le)return t=en.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,o!==Jc&&(e=Error(i(422),{cause:o}),io(mn(e,a)))):(o!==Jc&&(t=Error(i(423),{cause:o}),io(mn(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,o=mn(o,a),s=ku(e.stateNode,o,s),cu(e,s),dt!==4&&(dt=2)),!1;var u=Error(i(520),{cause:o});if(u=mn(u,a),Ro===null?Ro=[u]:Ro.push(u),dt!==4&&(dt=2),t===null)return!0;o=mn(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=ku(a.stateNode,o,e),cu(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"&&($a===null||!$a.has(u))))return a.flags|=65536,s&=-s,a.lanes|=s,s=gp(s),vp(s,e,a,o),cu(a,s),!1}a=a.return}while(a!==null);return!1}var Du=Error(i(461)),yt=!1;function Mt(e,t,a,o){t.child=e===null?Sh(t,null,a,o):Nr(t,e.child,a,o)}function yp(e,t,a,o,s){a=a.render;var u=t.ref;if("ref"in o){var b={};for(var S in o)S!=="ref"&&(b[S]=o[S])}else b=o;return xr(t),o=pu(e,t,a,b,u,s),S=gu(),e!==null&&!yt?(vu(e,t,s),ua(e,t,s)):(Le&&S&&Zc(t),t.flags|=1,Mt(e,t,o,s),t.child)}function bp(e,t,a,o,s){if(e===null){var u=a.type;return typeof u=="function"&&!Xc(u)&&u.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=u,xp(e,t,u,o,s)):(e=xi(a.type,null,o,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!Vu(e,s)){var b=u.memoizedProps;if(a=a.compare,a=a!==null?a:ro,a(b,o)&&e.ref===t.ref)return ua(e,t,s)}return t.flags|=1,e=ra(u,o),e.ref=t.ref,e.return=t,t.child=e}function xp(e,t,a,o,s){if(e!==null){var u=e.memoizedProps;if(ro(u,o)&&e.ref===t.ref)if(yt=!1,t.pendingProps=o=u,Vu(e,s))(e.flags&131072)!==0&&(yt=!0);else return t.lanes=e.lanes,ua(e,t,s)}return zu(e,t,a,o,s)}function Sp(e,t,a,o){var s=o.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(o=t.child=e.child,s=0;o!==null;)s=s|o.lanes|o.childLanes,o=o.sibling;o=s&~u}else o=0,t.child=null;return wp(e,t,u,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ni(t,u!==null?u.cachePool:null),u!==null?Nh(t,u):du(),Th(t);else return o=t.lanes=536870912,wp(e,t,u!==null?u.baseLanes|a:a,a,o)}else u!==null?(Ni(t,u.cachePool),Nh(t,u),La(),t.memoizedState=null):(e!==null&&Ni(t,null),du(),La());return Mt(e,t,s,a),t.child}function xo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function wp(e,t,a,o,s){var u=lu();return u=u===null?null:{parent:gt._currentValue,pool:u},t.memoizedState={baseLanes:a,cachePool:u},e!==null&&Ni(t,null),du(),Th(t),e!==null&&ol(e,t,o,!0),t.childLanes=s,null}function $i(e,t){return t=Vi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ep(e,t,a){return Nr(t,e.child,null,a),e=$i(t,t.pendingProps),e.flags|=2,tn(t),t.memoizedState=null,e}function LS(e,t,a){var o=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Le){if(o.mode==="hidden")return e=$i(t,o),t.lanes=536870912,xo(null,e);if(mu(t),(e=nt)?(e=zg(e,gn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Aa!==null?{id:Hn,overflow:$n}:null,retryLane:536870912,hydrationErrors:null},a=oh(e),a.return=t,t.child=a,jt=t,nt=null)):e=null,e===null)throw _a(t);return t.lanes=536870912,null}return $i(t,o)}var u=e.memoizedState;if(u!==null){var b=u.dehydrated;if(mu(t),s)if(t.flags&256)t.flags&=-257,t=Ep(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(yt||ol(e,t,a,!1),s=(a&e.childLanes)!==0,yt||s){if(o=Je,o!==null&&(b=Vt(o,a),b!==0&&b!==u.retryLane))throw u.retryLane=b,gr(e,b),Qt(o,e,b),Du;Fi(),t=Ep(e,t,a)}else e=u.treeContext,nt=yn(b.nextSibling),jt=t,Le=!0,ja=null,gn=!1,e!==null&&ch(t,e),t=$i(t,o),t.flags|=4096;return t}return e=ra(e.child,{mode:o.mode,children:o.children}),e.ref=t.ref,t.child=e,e.return=t,e}function qi(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 zu(e,t,a,o,s){return xr(t),a=pu(e,t,a,o,void 0,s),o=gu(),e!==null&&!yt?(vu(e,t,s),ua(e,t,s)):(Le&&o&&Zc(t),t.flags|=1,Mt(e,t,a,s),t.child)}function Np(e,t,a,o,s,u){return xr(t),t.updateQueue=null,a=Rh(t,o,a,s),Ch(e),o=gu(),e!==null&&!yt?(vu(e,t,u),ua(e,t,u)):(Le&&o&&Zc(t),t.flags|=1,Mt(e,t,a,u),t.child)}function Tp(e,t,a,o,s){if(xr(t),t.stateNode===null){var u=nl,b=a.contextType;typeof b=="object"&&b!==null&&(u=_t(b)),u=new a(o,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Ou,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=o,u.state=t.memoizedState,u.refs={},iu(t),b=a.contextType,u.context=typeof b=="object"&&b!==null?_t(b):nl,u.state=t.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(Mu(t,a,b,o),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&&Ou.enqueueReplaceState(u,u.state,null),po(t,o,u,s),ho(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){u=t.stateNode;var S=t.memoizedProps,j=Cr(a,S);u.props=j;var U=u.context,I=a.contextType;b=nl,typeof I=="object"&&I!==null&&(b=_t(I));var Q=a.getDerivedStateFromProps;I=typeof Q=="function"||typeof u.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,I||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(S||U!==b)&&dp(t,u,o,b),Oa=!1;var H=t.memoizedState;u.state=H,po(t,o,u,s),ho(),U=t.memoizedState,S||H!==U||Oa?(typeof Q=="function"&&(Mu(t,a,Q,o),U=t.memoizedState),(j=Oa||up(t,a,j,o,H,U,b))?(I||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=o,t.memoizedState=U),u.props=o,u.state=U,u.context=b,o=j):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{u=t.stateNode,su(e,t),b=t.memoizedProps,I=Cr(a,b),u.props=I,Q=t.pendingProps,H=u.context,U=a.contextType,j=nl,typeof U=="object"&&U!==null&&(j=_t(U)),S=a.getDerivedStateFromProps,(U=typeof S=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(b!==Q||H!==j)&&dp(t,u,o,j),Oa=!1,H=t.memoizedState,u.state=H,po(t,o,u,s),ho();var Y=t.memoizedState;b!==Q||H!==Y||Oa||e!==null&&e.dependencies!==null&&wi(e.dependencies)?(typeof S=="function"&&(Mu(t,a,S,o),Y=t.memoizedState),(I=Oa||up(t,a,I,o,H,Y,j)||e!==null&&e.dependencies!==null&&wi(e.dependencies))?(U||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(o,Y,j),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(o,Y,j)),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=o,t.memoizedState=Y),u.props=o,u.state=Y,u.context=j,o=I):(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),o=!1)}return u=o,qi(e,t),o=(t.flags&128)!==0,u||o?(u=t.stateNode,a=o&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&o?(t.child=Nr(t,e.child,null,s),t.child=Nr(t,null,a,s)):Mt(e,t,a,s),t.memoizedState=u.state,e=t.child):e=ua(e,t,s),e}function Cp(e,t,a,o){return yr(),t.flags|=256,Mt(e,t,a,o),t.child}var Lu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Uu(e){return{baseLanes:e,cachePool:ph()}}function Bu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=an),e}function Rp(e,t,a){var o=t.pendingProps,s=!1,u=(t.flags&128)!==0,b;if((b=u)||(b=e!==null&&e.memoizedState===null?!1:(mt.current&2)!==0),b&&(s=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(Le){if(s?za(t):La(),(e=nt)?(e=zg(e,gn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Aa!==null?{id:Hn,overflow:$n}:null,retryLane:536870912,hydrationErrors:null},a=oh(e),a.return=t,t.child=a,jt=t,nt=null)):e=null,e===null)throw _a(t);return xd(e)?t.lanes=32:t.lanes=536870912,null}var S=o.children;return o=o.fallback,s?(La(),s=t.mode,S=Vi({mode:"hidden",children:S},s),o=vr(o,s,a,null),S.return=t,o.return=t,S.sibling=o,t.child=S,o=t.child,o.memoizedState=Uu(a),o.childLanes=Bu(e,b,a),t.memoizedState=Lu,xo(null,o)):(za(t),Hu(t,S))}var j=e.memoizedState;if(j!==null&&(S=j.dehydrated,S!==null)){if(u)t.flags&256?(za(t),t.flags&=-257,t=$u(e,t,a)):t.memoizedState!==null?(La(),t.child=e.child,t.flags|=128,t=null):(La(),S=o.fallback,s=t.mode,o=Vi({mode:"visible",children:o.children},s),S=vr(S,s,a,null),S.flags|=2,o.return=t,S.return=t,o.sibling=S,t.child=o,Nr(t,e.child,null,a),o=t.child,o.memoizedState=Uu(a),o.childLanes=Bu(e,b,a),t.memoizedState=Lu,t=xo(null,o));else if(za(t),xd(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var U=b.dgst;b=U,o=Error(i(419)),o.stack="",o.digest=b,io({value:o,source:null,stack:null}),t=$u(e,t,a)}else if(yt||ol(e,t,a,!1),b=(a&e.childLanes)!==0,yt||b){if(b=Je,b!==null&&(o=Vt(b,a),o!==0&&o!==j.retryLane))throw j.retryLane=o,gr(e,o),Qt(b,e,o),Du;bd(S)||Fi(),t=$u(e,t,a)}else bd(S)?(t.flags|=192,t.child=e.child,t=null):(e=j.treeContext,nt=yn(S.nextSibling),jt=t,Le=!0,ja=null,gn=!1,e!==null&&ch(t,e),t=Hu(t,o.children),t.flags|=4096);return t}return s?(La(),S=o.fallback,s=t.mode,j=e.child,U=j.sibling,o=ra(j,{mode:"hidden",children:o.children}),o.subtreeFlags=j.subtreeFlags&65011712,U!==null?S=ra(U,S):(S=vr(S,s,a,null),S.flags|=2),S.return=t,o.return=t,o.sibling=S,t.child=o,xo(null,o),o=t.child,S=e.child.memoizedState,S===null?S=Uu(a):(s=S.cachePool,s!==null?(j=gt._currentValue,s=s.parent!==j?{parent:j,pool:j}:s):s=ph(),S={baseLanes:S.baseLanes|a,cachePool:s}),o.memoizedState=S,o.childLanes=Bu(e,b,a),t.memoizedState=Lu,xo(e.child,o)):(za(t),a=e.child,e=a.sibling,a=ra(a,{mode:"visible",children:o.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 Hu(e,t){return t=Vi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Vi(e,t){return e=Wt(22,e,null,t),e.lanes=0,e}function $u(e,t,a){return Nr(t,e.child,null,a),e=Hu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ap(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),tu(e.return,t,a)}function qu(e,t,a,o,s,u){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:s,treeForkCount:u}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=o,b.tail=a,b.tailMode=s,b.treeForkCount=u)}function jp(e,t,a){var o=t.pendingProps,s=o.revealOrder,u=o.tail;o=o.children;var b=mt.current,S=(b&2)!==0;if(S?(b=b&1|2,t.flags|=128):b&=1,X(mt,b),Mt(e,t,o,a),o=Le?oo:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ap(e,a,t);else if(e.tag===19)Ap(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&&_i(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),qu(t,!1,s,a,u,o);break;case"backwards":case"unstable_legacy-backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&_i(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}qu(t,!0,a,null,u,o);break;case"together":qu(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function ua(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ha|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(ol(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=ra(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ra(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Vu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&wi(e)))}function US(e,t,a){switch(t.tag){case 3:ce(t,t.stateNode.containerInfo),Ma(t,gt,e.memoizedState.cache),yr();break;case 27:case 5:ve(t);break;case 4:ce(t,t.stateNode.containerInfo);break;case 10:Ma(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,mu(t),null;break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(za(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Rp(e,t,a):(za(t),e=ua(e,t,a),e!==null?e.sibling:null);za(t);break;case 19:var s=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(ol(e,t,a,!1),o=(a&t.childLanes)!==0),s){if(o)return jp(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),X(mt,mt.current),o)break;return null;case 22:return t.lanes=0,Sp(e,t,a,t.pendingProps);case 24:Ma(t,gt,e.memoizedState.cache)}return ua(e,t,a)}function _p(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)yt=!0;else{if(!Vu(e,a)&&(t.flags&128)===0)return yt=!1,US(e,t,a);yt=(e.flags&131072)!==0}else yt=!1,Le&&(t.flags&1048576)!==0&&sh(t,oo,t.index);switch(t.lanes=0,t.tag){case 16:e:{var o=t.pendingProps;if(e=wr(t.elementType),t.type=e,typeof e=="function")Xc(e)?(o=Cr(e,o),t.tag=1,t=Tp(null,t,e,o,a)):(t.tag=0,t=zu(null,t,e,o,a));else{if(e!=null){var s=e.$$typeof;if(s===z){t.tag=11,t=yp(null,t,e,o,a);break e}else if(s===q){t.tag=14,t=bp(null,t,e,o,a);break e}}throw t=ue(e)||e,Error(i(306,t,""))}}return t;case 0:return zu(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,s=Cr(o,t.pendingProps),Tp(e,t,o,s,a);case 3:e:{if(ce(t,t.stateNode.containerInfo),e===null)throw Error(i(387));o=t.pendingProps;var u=t.memoizedState;s=u.element,su(e,t),po(t,o,null,a);var b=t.memoizedState;if(o=b.cache,Ma(t,gt,o),o!==u.cache&&nu(t,[gt],a,!0),ho(),o=b.element,u.isDehydrated)if(u={element:o,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Cp(e,t,o,a);break e}else if(o!==s){s=mn(Error(i(424)),t),io(s),t=Cp(e,t,o,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=yn(e.firstChild),jt=t,Le=!0,ja=null,gn=!0,a=Sh(t,null,o,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(yr(),o===s){t=ua(e,t,a);break e}Mt(e,t,o,a)}t=t.child}return t;case 26:return qi(e,t),e===null?(a=qg(t.type,null,t.pendingProps,null))?t.memoizedState=a:Le||(a=t.type,e=t.pendingProps,o=rs(se.current).createElement(a),o[At]=t,o[Yt]=e,Ot(o,a,e),Nt(o),t.stateNode=o):t.memoizedState=qg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ve(t),e===null&&Le&&(o=t.stateNode=Bg(t.type,t.pendingProps,se.current),jt=t,gn=!0,s=nt,Pa(t.type)?(Sd=s,nt=yn(o.firstChild)):nt=s),Mt(e,t,t.pendingProps.children,a),qi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Le&&((s=o=nt)&&(o=mw(o,t.type,t.pendingProps,gn),o!==null?(t.stateNode=o,jt=t,nt=yn(o.firstChild),gn=!1,s=!0):s=!1),s||_a(t)),ve(t),s=t.type,u=t.pendingProps,b=e!==null?e.memoizedProps:null,o=u.children,gd(s,u)?o=null:b!==null&&gd(s,b)&&(t.flags|=32),t.memoizedState!==null&&(s=pu(e,t,AS,null,null,a),zo._currentValue=s),qi(e,t),Mt(e,t,o,a),t.child;case 6:return e===null&&Le&&((e=a=nt)&&(a=hw(a,t.pendingProps,gn),a!==null?(t.stateNode=a,jt=t,nt=null,e=!0):e=!1),e||_a(t)),null;case 13:return Rp(e,t,a);case 4:return ce(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Nr(t,null,o,a):Mt(e,t,o,a),t.child;case 11:return yp(e,t,t.type,t.pendingProps,a);case 7:return Mt(e,t,t.pendingProps,a),t.child;case 8:return Mt(e,t,t.pendingProps.children,a),t.child;case 12:return Mt(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.pendingProps,Ma(t,t.type,o.value),Mt(e,t,o.children,a),t.child;case 9:return s=t.type._context,o=t.pendingProps.children,xr(t),s=_t(s),o=o(s),t.flags|=1,Mt(e,t,o,a),t.child;case 14:return bp(e,t,t.type,t.pendingProps,a);case 15:return xp(e,t,t.type,t.pendingProps,a);case 19:return jp(e,t,a);case 31:return LS(e,t,a);case 22:return Sp(e,t,a,t.pendingProps);case 24:return xr(t),o=_t(gt),e===null?(s=lu(),s===null&&(s=Je,u=au(),s.pooledCache=u,u.refCount++,u!==null&&(s.pooledCacheLanes|=a),s=u),t.memoizedState={parent:o,cache:s},iu(t),Ma(t,gt,s)):((e.lanes&a)!==0&&(su(e,t),po(t,null,null,a),ho()),s=e.memoizedState,u=t.memoizedState,s.parent!==o?(s={parent:o,cache:o},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Ma(t,gt,o)):(o=u.cache,Ma(t,gt,o),o!==s.cache&&nu(t,[gt],a,!0))),Mt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function da(e){e.flags|=4}function Yu(e,t,a,o,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(ag())e.flags|=8192;else throw Er=Ci,ou}else e.flags&=-16777217}function Mp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Ig(t))if(ag())e.flags|=8192;else throw Er=Ci,ou}function Yi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Dt():536870912,e.lanes|=t,yl|=t)}function So(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 o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function at(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags&65011712,o|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags,o|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function BS(e,t,a){var o=t.pendingProps;switch(Fc(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,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),ia(gt),J(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(ll(t)?da(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Wc())),at(t),null;case 26:var s=t.type,u=t.memoizedState;return e===null?(da(t),u!==null?(at(t),Mp(t,u)):(at(t),Yu(t,s,null,o,a))):u?u!==e.memoizedState?(da(t),at(t),Mp(t,u)):(at(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&da(t),at(t),Yu(t,s,e,o,a)),null;case 27:if(be(t),a=se.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&da(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return at(t),null}e=W.current,ll(t)?uh(t):(e=Bg(s,o,a),t.stateNode=e,da(t))}return at(t),null;case 5:if(be(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&da(t);else{if(!o){if(t.stateNode===null)throw Error(i(166));return at(t),null}if(u=W.current,ll(t))uh(t);else{var b=rs(se.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 o.is=="string"?b.createElement("select",{is:o.is}):b.createElement("select"),o.multiple?u.multiple=!0:o.size&&(u.size=o.size);break;default:u=typeof o.is=="string"?b.createElement(s,{is:o.is}):b.createElement(s)}}u[At]=t,u[Yt]=o;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(Ot(u,s,o),s){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&da(t)}}return at(t),Yu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&da(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(i(166));if(e=se.current,ll(t)){if(e=t.stateNode,a=t.memoizedProps,o=null,s=jt,s!==null)switch(s.tag){case 27:case 5:o=s.memoizedProps}e[At]=t,e=!!(e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||Rg(e.nodeValue,a)),e||_a(t,!0)}else e=rs(e).createTextNode(o),e[At]=t,t.stateNode=e}return at(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=ll(t),a!==null){if(e===null){if(!o)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[At]=t}else yr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),e=!1}else a=Wc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(tn(t),t):(tn(t),null);if((t.flags&128)!==0)throw Error(i(558))}return at(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=ll(t),o!==null&&o.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 yr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;at(t),s=!1}else s=Wc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(tn(t),t):(tn(t),null)}return tn(t),(t.flags&128)!==0?(t.lanes=a,t):(a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,s=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(s=o.alternate.memoizedState.cachePool.pool),u=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(u=o.memoizedState.cachePool.pool),u!==s&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Yi(t,t.updateQueue),at(t),null);case 4:return J(),e===null&&dd(t.stateNode.containerInfo),at(t),null;case 10:return ia(t.type),at(t),null;case 19:if(G(mt),o=t.memoizedState,o===null)return at(t),null;if(s=(t.flags&128)!==0,u=o.rendering,u===null)if(s)So(o,!1);else{if(dt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=_i(e),u!==null){for(t.flags|=128,So(o,!1),e=u.updateQueue,t.updateQueue=e,Yi(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)lh(a,e),a=a.sibling;return X(mt,mt.current&1|2),Le&&la(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Rt()>Ki&&(t.flags|=128,s=!0,So(o,!1),t.lanes=4194304)}else{if(!s)if(e=_i(u),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Yi(t,e),So(o,!0),o.tail===null&&o.tailMode==="hidden"&&!u.alternate&&!Le)return at(t),null}else 2*Rt()-o.renderingStartTime>Ki&&a!==536870912&&(t.flags|=128,s=!0,So(o,!1),t.lanes=4194304);o.isBackwards?(u.sibling=t.child,t.child=u):(e=o.last,e!==null?e.sibling=u:t.child=u,o.last=u)}return o.tail!==null?(e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Rt(),e.sibling=null,a=mt.current,X(mt,s?a&1|2:a&1),Le&&la(t,o.treeForkCount),e):(at(t),null);case 22:case 23:return tn(t),fu(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(at(t),t.subtreeFlags&6&&(t.flags|=8192)):at(t),a=t.updateQueue,a!==null&&Yi(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&G(Sr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ia(gt),at(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function HS(e,t){switch(Fc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ia(gt),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(tn(t),t.alternate===null)throw Error(i(340));yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(tn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));yr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(mt),null;case 4:return J(),null;case 10:return ia(t.type),null;case 22:case 23:return tn(t),fu(),e!==null&&G(Sr),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ia(gt),null;case 25:return null;default:return null}}function Op(e,t){switch(Fc(t),t.tag){case 3:ia(gt),J();break;case 26:case 27:case 5:be(t);break;case 4:J();break;case 31:t.memoizedState!==null&&tn(t);break;case 13:tn(t);break;case 19:G(mt);break;case 10:ia(t.type);break;case 22:case 23:tn(t),fu(),e!==null&&G(Sr);break;case 24:ia(gt)}}function wo(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var s=o.next;a=s;do{if((a.tag&e)===e){o=void 0;var u=a.create,b=a.inst;o=u(),b.destroy=o}a=a.next}while(a!==s)}}catch(S){Ke(t,t.return,S)}}function Ua(e,t,a){try{var o=t.updateQueue,s=o!==null?o.lastEffect:null;if(s!==null){var u=s.next;o=u;do{if((o.tag&e)===e){var b=o.inst,S=b.destroy;if(S!==void 0){b.destroy=void 0,s=t;var j=a,U=S;try{U()}catch(I){Ke(s,j,I)}}}o=o.next}while(o!==u)}}catch(I){Ke(t,t.return,I)}}function kp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Eh(t,a)}catch(o){Ke(e,e.return,o)}}}function Dp(e,t,a){a.props=Cr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(o){Ke(e,t,o)}}function Eo(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof a=="function"?e.refCleanup=a(o):a.current=o}}catch(s){Ke(e,t,s)}}function qn(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o=="function")try{o()}catch(s){Ke(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){Ke(e,t,s)}else a.current=null}function zp(e){var t=e.type,a=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&o.focus();break e;case"img":a.src?o.src=a.src:a.srcSet&&(o.srcset=a.srcSet)}}catch(s){Ke(e,e.return,s)}}function Pu(e,t,a){try{var o=e.stateNode;iw(o,e.type,a,t),o[Yt]=t}catch(s){Ke(e,e.return,s)}}function Lp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Pa(e.type)||e.tag===4}function Gu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Lp(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&&Pa(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 Iu(e,t,a){var o=e.tag;if(o===5||o===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=na));else if(o!==4&&(o===27&&Pa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Iu(e,t,a),e=e.sibling;e!==null;)Iu(e,t,a),e=e.sibling}function Pi(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(o===27&&Pa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Pi(e,t,a),e=e.sibling;e!==null;)Pi(e,t,a),e=e.sibling}function Up(e){var t=e.stateNode,a=e.memoizedProps;try{for(var o=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Ot(t,o,a),t[At]=e,t[Yt]=a}catch(u){Ke(e,e.return,u)}}var fa=!1,bt=!1,Xu=!1,Bp=typeof WeakSet=="function"?WeakSet:Set,Tt=null;function $S(e,t){if(e=e.containerInfo,hd=ds,e=Zm(e),$c(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var s=o.anchorOffset,u=o.focusNode;o=o.focusOffset;try{a.nodeType,u.nodeType}catch{a=null;break e}var b=0,S=-1,j=-1,U=0,I=0,Q=e,H=null;t:for(;;){for(var Y;Q!==a||s!==0&&Q.nodeType!==3||(S=b+s),Q!==u||o!==0&&Q.nodeType!==3||(j=b+o),Q.nodeType===3&&(b+=Q.nodeValue.length),(Y=Q.firstChild)!==null;)H=Q,Q=Y;for(;;){if(Q===e)break t;if(H===a&&++U===s&&(S=b),H===u&&++I===o&&(j=b),(Y=Q.nextSibling)!==null)break;Q=H,H=Q.parentNode}Q=Y}a=S===-1||j===-1?null:{start:S,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(pd={focusedElem:e,selectionRange:a},ds=!1,Tt=t;Tt!==null;)if(t=Tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Tt=e;else for(;Tt!==null;){switch(t=Tt,u=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(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,o=a.stateNode;try{var he=Cr(a.type,s);e=o.getSnapshotBeforeUpdate(he,u),o.__reactInternalSnapshotBeforeUpdate=e}catch(we){Ke(a,a.return,we)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)yd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":yd(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,Tt=e;break}Tt=t.return}}function Hp(e,t,a){var o=a.flags;switch(a.tag){case 0:case 11:case 15:ha(e,a),o&4&&wo(5,a);break;case 1:if(ha(e,a),o&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(b){Ke(a,a.return,b)}else{var s=Cr(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Ke(a,a.return,b)}}o&64&&kp(a),o&512&&Eo(a,a.return);break;case 3:if(ha(e,a),o&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{Eh(e,t)}catch(b){Ke(a,a.return,b)}}break;case 27:t===null&&o&4&&Up(a);case 26:case 5:ha(e,a),t===null&&o&4&&zp(a),o&512&&Eo(a,a.return);break;case 12:ha(e,a);break;case 31:ha(e,a),o&4&&Vp(e,a);break;case 13:ha(e,a),o&4&&Yp(e,a),o&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=QS.bind(null,a),pw(e,a))));break;case 22:if(o=a.memoizedState!==null||fa,!o){t=t!==null&&t.memoizedState!==null||bt,s=fa;var u=bt;fa=o,(bt=t)&&!u?pa(e,a,(a.subtreeFlags&8772)!==0):ha(e,a),fa=s,bt=u}break;case 30:break;default:ha(e,a)}}function $p(e){var t=e.alternate;t!==null&&(e.alternate=null,$p(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ec(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 lt=null,Gt=!1;function ma(e,t,a){for(a=a.child;a!==null;)qp(e,t,a),a=a.sibling}function qp(e,t,a){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(Ln,a)}catch{}switch(a.tag){case 26:bt||qn(a,t),ma(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:bt||qn(a,t);var o=lt,s=Gt;Pa(a.type)&&(lt=a.stateNode,Gt=!1),ma(e,t,a),Oo(a.stateNode),lt=o,Gt=s;break;case 5:bt||qn(a,t);case 6:if(o=lt,s=Gt,lt=null,ma(e,t,a),lt=o,Gt=s,lt!==null)if(Gt)try{(lt.nodeType===9?lt.body:lt.nodeName==="HTML"?lt.ownerDocument.body:lt).removeChild(a.stateNode)}catch(u){Ke(a,t,u)}else try{lt.removeChild(a.stateNode)}catch(u){Ke(a,t,u)}break;case 18:lt!==null&&(Gt?(e=lt,kg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),Cl(e)):kg(lt,a.stateNode));break;case 4:o=lt,s=Gt,lt=a.stateNode.containerInfo,Gt=!0,ma(e,t,a),lt=o,Gt=s;break;case 0:case 11:case 14:case 15:Ua(2,a,t),bt||Ua(4,a,t),ma(e,t,a);break;case 1:bt||(qn(a,t),o=a.stateNode,typeof o.componentWillUnmount=="function"&&Dp(a,t,o)),ma(e,t,a);break;case 21:ma(e,t,a);break;case 22:bt=(o=bt)||a.memoizedState!==null,ma(e,t,a),bt=o;break;default:ma(e,t,a)}}function Vp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Cl(e)}catch(a){Ke(t,t.return,a)}}}function Yp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Cl(e)}catch(a){Ke(t,t.return,a)}}function qS(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Bp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Bp),t;default:throw Error(i(435,e.tag))}}function Gi(e,t){var a=qS(e);t.forEach(function(o){if(!a.has(o)){a.add(o);var s=ZS.bind(null,e,o);o.then(s,s)}})}function It(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var s=a[o],u=e,b=t,S=b;e:for(;S!==null;){switch(S.tag){case 27:if(Pa(S.type)){lt=S.stateNode,Gt=!1;break e}break;case 5:lt=S.stateNode,Gt=!1;break e;case 3:case 4:lt=S.stateNode.containerInfo,Gt=!0;break e}S=S.return}if(lt===null)throw Error(i(160));qp(u,b,s),lt=null,Gt=!1,u=s.alternate,u!==null&&(u.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Pp(t,e),t=t.sibling}var Tn=null;function Pp(e,t){var a=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:It(t,e),Xt(e),o&4&&(Ua(3,e,e.return),wo(3,e),Ua(5,e,e.return));break;case 1:It(t,e),Xt(e),o&512&&(bt||a===null||qn(a,a.return)),o&64&&fa&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?o:a.concat(o))));break;case 26:var s=Tn;if(It(t,e),Xt(e),o&512&&(bt||a===null||qn(a,a.return)),o&4){var u=a!==null?a.memoizedState:null;if(o=e.memoizedState,a===null)if(o===null)if(e.stateNode===null){e:{o=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(o){case"title":u=s.getElementsByTagName("title")[0],(!u||u[Ql]||u[At]||u.namespaceURI==="http://www.w3.org/2000/svg"||u.hasAttribute("itemprop"))&&(u=s.createElement(o),s.head.insertBefore(u,s.querySelector("head > title"))),Ot(u,o,a),u[At]=e,Nt(u),o=u;break e;case"link":var b=Pg("link","href",s).get(o+(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(o),Ot(u,o,a),s.head.appendChild(u);break;case"meta":if(b=Pg("meta","content",s).get(o+(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(o),Ot(u,o,a),s.head.appendChild(u);break;default:throw Error(i(468,o))}u[At]=e,Nt(u),o=u}e.stateNode=o}else Gg(s,e.type,e.stateNode);else e.stateNode=Yg(s,o,e.memoizedProps);else u!==o?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,o===null?Gg(s,e.type,e.stateNode):Yg(s,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Pu(e,e.memoizedProps,a.memoizedProps)}break;case 27:It(t,e),Xt(e),o&512&&(bt||a===null||qn(a,a.return)),a!==null&&o&4&&Pu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(It(t,e),Xt(e),o&512&&(bt||a===null||qn(a,a.return)),e.flags&32){s=e.stateNode;try{Qr(s,"")}catch(he){Ke(e,e.return,he)}}o&4&&e.stateNode!=null&&(s=e.memoizedProps,Pu(e,s,a!==null?a.memoizedProps:s)),o&1024&&(Xu=!0);break;case 6:if(It(t,e),Xt(e),o&4){if(e.stateNode===null)throw Error(i(162));o=e.memoizedProps,a=e.stateNode;try{a.nodeValue=o}catch(he){Ke(e,e.return,he)}}break;case 3:if(is=null,s=Tn,Tn=ls(t.containerInfo),It(t,e),Tn=s,Xt(e),o&4&&a!==null&&a.memoizedState.isDehydrated)try{Cl(t.containerInfo)}catch(he){Ke(e,e.return,he)}Xu&&(Xu=!1,Gp(e));break;case 4:o=Tn,Tn=ls(e.stateNode.containerInfo),It(t,e),Xt(e),Tn=o;break;case 12:It(t,e),Xt(e);break;case 31:It(t,e),Xt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Gi(e,o)));break;case 13:It(t,e),Xt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Xi=Rt()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Gi(e,o)));break;case 22:s=e.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,U=fa,I=bt;if(fa=U||s,bt=I||j,It(t,e),bt=I,fa=U,Xt(e),o&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||j||fa||bt||Rr(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){j=a=t;try{if(u=j.stateNode,s)b=u.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{S=j.stateNode;var Q=j.memoizedProps.style,H=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;S.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(he){Ke(j,j.return,he)}}}else if(t.tag===6){if(a===null){j=t;try{j.stateNode.nodeValue=s?"":j.memoizedProps}catch(he){Ke(j,j.return,he)}}}else if(t.tag===18){if(a===null){j=t;try{var Y=j.stateNode;s?Dg(Y,!0):Dg(j.stateNode,!1)}catch(he){Ke(j,j.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}o&4&&(o=e.updateQueue,o!==null&&(a=o.retryQueue,a!==null&&(o.retryQueue=null,Gi(e,a))));break;case 19:It(t,e),Xt(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Gi(e,o)));break;case 30:break;case 21:break;default:It(t,e),Xt(e)}}function Xt(e){var t=e.flags;if(t&2){try{for(var a,o=e.return;o!==null;){if(Lp(o)){a=o;break}o=o.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var s=a.stateNode,u=Gu(e);Pi(e,u,s);break;case 5:var b=a.stateNode;a.flags&32&&(Qr(b,""),a.flags&=-33);var S=Gu(e);Pi(e,S,b);break;case 3:case 4:var j=a.stateNode.containerInfo,U=Gu(e);Iu(e,U,j);break;default:throw Error(i(161))}}catch(I){Ke(e,e.return,I)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Gp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ha(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Hp(e,t.alternate,t),t=t.sibling}function Rr(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ua(4,t,t.return),Rr(t);break;case 1:qn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Dp(t,t.return,a),Rr(t);break;case 27:Oo(t.stateNode);case 26:case 5:qn(t,t.return),Rr(t);break;case 22:t.memoizedState===null&&Rr(t);break;case 30:Rr(t);break;default:Rr(t)}e=e.sibling}}function pa(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,s=e,u=t,b=u.flags;switch(u.tag){case 0:case 11:case 15:pa(s,u,a),wo(4,u);break;case 1:if(pa(s,u,a),o=u,s=o.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(U){Ke(o,o.return,U)}if(o=u,s=o.updateQueue,s!==null){var S=o.stateNode;try{var j=s.shared.hiddenCallbacks;if(j!==null)for(s.shared.hiddenCallbacks=null,s=0;s<j.length;s++)wh(j[s],S)}catch(U){Ke(o,o.return,U)}}a&&b&64&&kp(u),Eo(u,u.return);break;case 27:Up(u);case 26:case 5:pa(s,u,a),a&&o===null&&b&4&&zp(u),Eo(u,u.return);break;case 12:pa(s,u,a);break;case 31:pa(s,u,a),a&&b&4&&Vp(s,u);break;case 13:pa(s,u,a),a&&b&4&&Yp(s,u);break;case 22:u.memoizedState===null&&pa(s,u,a),Eo(u,u.return);break;case 30:break;default:pa(s,u,a)}t=t.sibling}}function Ku(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&&so(a))}function Qu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&so(e))}function Cn(e,t,a,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ip(e,t,a,o),t=t.sibling}function Ip(e,t,a,o){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Cn(e,t,a,o),s&2048&&wo(9,t);break;case 1:Cn(e,t,a,o);break;case 3:Cn(e,t,a,o),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&so(e)));break;case 12:if(s&2048){Cn(e,t,a,o),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(j){Ke(t,t.return,j)}}else Cn(e,t,a,o);break;case 31:Cn(e,t,a,o);break;case 13:Cn(e,t,a,o);break;case 23:break;case 22:u=t.stateNode,b=t.alternate,t.memoizedState!==null?u._visibility&2?Cn(e,t,a,o):No(e,t):u._visibility&2?Cn(e,t,a,o):(u._visibility|=2,pl(e,t,a,o,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Ku(b,t);break;case 24:Cn(e,t,a,o),s&2048&&Qu(t.alternate,t);break;default:Cn(e,t,a,o)}}function pl(e,t,a,o,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,b=t,S=a,j=o,U=b.flags;switch(b.tag){case 0:case 11:case 15:pl(u,b,S,j,s),wo(8,b);break;case 23:break;case 22:var I=b.stateNode;b.memoizedState!==null?I._visibility&2?pl(u,b,S,j,s):No(u,b):(I._visibility|=2,pl(u,b,S,j,s)),s&&U&2048&&Ku(b.alternate,b);break;case 24:pl(u,b,S,j,s),s&&U&2048&&Qu(b.alternate,b);break;default:pl(u,b,S,j,s)}t=t.sibling}}function No(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,o=t,s=o.flags;switch(o.tag){case 22:No(a,o),s&2048&&Ku(o.alternate,o);break;case 24:No(a,o),s&2048&&Qu(o.alternate,o);break;default:No(a,o)}t=t.sibling}}var To=8192;function gl(e,t,a){if(e.subtreeFlags&To)for(e=e.child;e!==null;)Xp(e,t,a),e=e.sibling}function Xp(e,t,a){switch(e.tag){case 26:gl(e,t,a),e.flags&To&&e.memoizedState!==null&&Rw(a,Tn,e.memoizedState,e.memoizedProps);break;case 5:gl(e,t,a);break;case 3:case 4:var o=Tn;Tn=ls(e.stateNode.containerInfo),gl(e,t,a),Tn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=To,To=16777216,gl(e,t,a),To=o):gl(e,t,a));break;default:gl(e,t,a)}}function Kp(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 Co(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];Tt=o,Zp(o,e)}Kp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Qp(e),e=e.sibling}function Qp(e){switch(e.tag){case 0:case 11:case 15:Co(e),e.flags&2048&&Ua(9,e,e.return);break;case 3:Co(e);break;case 12:Co(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ii(e)):Co(e);break;default:Co(e)}}function Ii(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a];Tt=o,Zp(o,e)}Kp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ua(8,t,t.return),Ii(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ii(t));break;default:Ii(t)}e=e.sibling}}function Zp(e,t){for(;Tt!==null;){var a=Tt;switch(a.tag){case 0:case 11:case 15:Ua(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var o=a.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:so(a.memoizedState.cache)}if(o=a.child,o!==null)o.return=a,Tt=o;else e:for(a=e;Tt!==null;){o=Tt;var s=o.sibling,u=o.return;if($p(o),o===a){Tt=null;break e}if(s!==null){s.return=u,Tt=s;break e}Tt=u}}}var VS={getCacheForType:function(e){var t=_t(gt),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return _t(gt).controller.signal}},YS=typeof WeakMap=="function"?WeakMap:Map,Ye=0,Je=null,Me=null,De=0,Xe=0,nn=null,Ba=!1,vl=!1,Zu=!1,ga=0,dt=0,Ha=0,Ar=0,Fu=0,an=0,yl=0,Ro=null,Kt=null,Ju=!1,Xi=0,Fp=0,Ki=1/0,Qi=null,$a=null,xt=0,qa=null,bl=null,va=0,Wu=0,ed=null,Jp=null,Ao=0,td=null;function rn(){return(Ye&2)!==0&&De!==0?De&-De:M.T!==null?id():Sc()}function Wp(){if(an===0)if((De&536870912)===0||Le){var e=qr;qr<<=1,(qr&3932160)===0&&(qr=262144),an=e}else an=536870912;return e=en.current,e!==null&&(e.flags|=32),an}function Qt(e,t,a){(e===Je&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)&&(xl(e,0),Va(e,De,an,!1)),it(e,a),((Ye&2)===0||e!==Je)&&(e===Je&&((Ye&2)===0&&(Ar|=a),dt===4&&Va(e,De,an,!1)),Vn(e))}function eg(e,t,a){if((Ye&6)!==0)throw Error(i(327));var o=!a&&(t&127)===0&&(t&e.expiredLanes)===0||rt(e,t),s=o?IS(e,t):ad(e,t,!0),u=o;do{if(s===0){vl&&!o&&Va(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!PS(a)){s=ad(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=Ro;var j=S.current.memoizedState.isDehydrated;if(j&&(xl(S,b).flags|=256),b=ad(S,b,!1),b!==2){if(Zu&&!j){S.errorRecoveryDisabledLanes|=u,Ar|=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){xl(e,0),Va(e,t,0,!0);break}e:{switch(o=e,u=s,u){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Va(o,t,an,!Ba);break e;case 2:Kt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(s=Xi+300-Rt(),10<s)){if(Va(o,t,an,!Ba),Te(o,0,!0)!==0)break e;va=t,o.timeoutHandle=Mg(tg.bind(null,o,a,Kt,Qi,Ju,t,an,Ar,yl,Ba,u,"Throttled",-0,0),s);break e}tg(o,a,Kt,Qi,Ju,t,an,Ar,yl,Ba,u,null,-0,0)}}break}while(!0);Vn(e)}function tg(e,t,a,o,s,u,b,S,j,U,I,Q,H,Y){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:na},Xp(t,u,Q);var he=(u&62914560)===u?Xi-Rt():(u&4194048)===u?Fp-Rt():0;if(he=Aw(Q,he),he!==null){va=u,e.cancelPendingCommit=he(cg.bind(null,e,t,u,a,o,s,b,S,j,I,Q,null,H,Y)),Va(e,u,b,!U);return}}cg(e,t,u,a,o,s,b,S,j)}function PS(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 o=0;o<a.length;o++){var s=a[o],u=s.getSnapshot;s=s.value;try{if(!Jt(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,o){t&=~Fu,t&=~Ar,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var s=t;0<s;){var u=31-kt(s),b=1<<u;o[u]=-1,s&=~b}a!==0&&dr(e,a,t)}function Zi(){return(Ye&6)===0?(jo(0),!1):!0}function nd(){if(Me!==null){if(Xe===0)var e=Me.return;else e=Me,oa=br=null,yu(e),ul=null,uo=0,e=Me;for(;e!==null;)Op(e.alternate,e),e=e.return;Me=null}}function xl(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,uw(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),va=0,nd(),Je=e,Me=a=ra(e.current,null),De=t,Xe=0,nn=null,Ba=!1,vl=rt(e,t),Zu=!1,yl=an=Fu=Ar=Ha=dt=0,Kt=Ro=null,Ju=!1,(t&8)!==0&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var s=31-kt(o),u=1<<s;t|=e[s],o&=~u}return ga=t,vi(),a}function ng(e,t){Re=null,M.H=bo,t===cl||t===Ti?(t=yh(),Xe=3):t===ou?(t=yh(),Xe=4):Xe=t===Du?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,nn=t,Me===null&&(dt=1,Hi(e,mn(t,e.current)))}function ag(){var e=en.current;return e===null?!0:(De&4194048)===De?vn===null:(De&62914560)===De||(De&536870912)!==0?e===vn:!1}function rg(){var e=M.H;return M.H=bo,e===null?bo:e}function lg(){var e=M.A;return M.A=VS,e}function Fi(){dt=4,Ba||(De&4194048)!==De&&en.current!==null||(vl=!0),(Ha&134217727)===0&&(Ar&134217727)===0||Je===null||Va(Je,De,an,!1)}function ad(e,t,a){var o=Ye;Ye|=2;var s=rg(),u=lg();(Je!==e||De!==t)&&(Qi=null,xl(e,t)),t=!1;var b=dt;e:do try{if(Xe!==0&&Me!==null){var S=Me,j=nn;switch(Xe){case 8:nd(),b=6;break e;case 3:case 2:case 9:case 6:en.current===null&&(t=!0);var U=Xe;if(Xe=0,nn=null,Sl(e,S,j,U),a&&vl){b=0;break e}break;default:U=Xe,Xe=0,nn=null,Sl(e,S,j,U)}}GS(),b=dt;break}catch(I){ng(e,I)}while(!0);return t&&e.shellSuspendCounter++,oa=br=null,Ye=o,M.H=s,M.A=u,Me===null&&(Je=null,De=0,vi()),b}function GS(){for(;Me!==null;)og(Me)}function IS(e,t){var a=Ye;Ye|=2;var o=rg(),s=lg();Je!==e||De!==t?(Qi=null,Ki=Rt()+500,xl(e,t)):vl=rt(e,t);e:do try{if(Xe!==0&&Me!==null){t=Me;var u=nn;t:switch(Xe){case 1:Xe=0,nn=null,Sl(e,t,u,1);break;case 2:case 9:if(gh(u)){Xe=0,nn=null,ig(t);break}t=function(){Xe!==2&&Xe!==9||Je!==e||(Xe=7),Vn(e)},u.then(t,t);break e;case 3:Xe=7;break e;case 4:Xe=5;break e;case 7:gh(u)?(Xe=0,nn=null,ig(t)):(Xe=0,nn=null,Sl(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?Ig(b):S.stateNode.complete){Xe=0,nn=null;var j=S.sibling;if(j!==null)Me=j;else{var U=S.return;U!==null?(Me=U,Ji(U)):Me=null}break t}}Xe=0,nn=null,Sl(e,t,u,5);break;case 6:Xe=0,nn=null,Sl(e,t,u,6);break;case 8:nd(),dt=6;break e;default:throw Error(i(462))}}XS();break}catch(I){ng(e,I)}while(!0);return oa=br=null,M.H=o,M.A=s,Ye=a,Me!==null?0:(Je=null,De=0,vi(),dt)}function XS(){for(;Me!==null&&!Ct();)og(Me)}function og(e){var t=_p(e.alternate,e,ga);e.memoizedProps=e.pendingProps,t===null?Ji(e):Me=t}function ig(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Np(a,t,t.pendingProps,t.type,void 0,De);break;case 11:t=Np(a,t,t.pendingProps,t.type.render,t.ref,De);break;case 5:yu(t);default:Op(a,t),t=Me=lh(t,ga),t=_p(a,t,ga)}e.memoizedProps=e.pendingProps,t===null?Ji(e):Me=t}function Sl(e,t,a,o){oa=br=null,yu(t),ul=null,uo=0;var s=t.return;try{if(zS(e,s,t,a,De)){dt=1,Hi(e,mn(a,e.current)),Me=null;return}}catch(u){if(s!==null)throw Me=s,u;dt=1,Hi(e,mn(a,e.current)),Me=null;return}t.flags&32768?(Le||o===1?e=!0:vl||(De&536870912)!==0?e=!1:(Ba=e=!0,(o===2||o===9||o===3||o===6)&&(o=en.current,o!==null&&o.tag===13&&(o.flags|=16384))),sg(t,e)):Ji(t)}function Ji(e){var t=e;do{if((t.flags&32768)!==0){sg(t,Ba);return}e=t.return;var a=BS(t.alternate,t,ga);if(a!==null){Me=a;return}if(t=t.sibling,t!==null){Me=t;return}Me=t=e}while(t!==null);dt===0&&(dt=5)}function sg(e,t){do{var a=HS(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);dt=6,Me=null}function cg(e,t,a,o,s,u,b,S,j){e.cancelPendingCommit=null;do Wi();while(xt!==0);if((Ye&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(u=t.lanes|t.childLanes,u|=Gc,$t(e,a,u,b,S,j),e===Je&&(Me=Je=null,De=0),bl=t,qa=e,va=a,Wu=u,ed=s,Jp=o,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,FS(Ie,function(){return hg(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=M.T,M.T=null,s=V.p,V.p=2,b=Ye,Ye|=4;try{$S(e,t,a)}finally{Ye=b,V.p=s,M.T=o}}xt=1,ug(),dg(),fg()}}function ug(){if(xt===1){xt=0;var e=qa,t=bl,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=M.T,M.T=null;var o=V.p;V.p=2;var s=Ye;Ye|=4;try{Pp(t,e);var u=pd,b=Zm(e.containerInfo),S=u.focusedElem,j=u.selectionRange;if(b!==S&&S&&S.ownerDocument&&Qm(S.ownerDocument.documentElement,S)){if(j!==null&&$c(S)){var U=j.start,I=j.end;if(I===void 0&&(I=U),"selectionStart"in S)S.selectionStart=U,S.selectionEnd=Math.min(I,S.value.length);else{var Q=S.ownerDocument||document,H=Q&&Q.defaultView||window;if(H.getSelection){var Y=H.getSelection(),he=S.textContent.length,we=Math.min(j.start,he),Fe=j.end===void 0?we:Math.min(j.end,he);!Y.extend&&we>Fe&&(b=Fe,Fe=we,we=b);var D=Km(S,we),k=Km(S,Fe);if(D&&k&&(Y.rangeCount!==1||Y.anchorNode!==D.node||Y.anchorOffset!==D.offset||Y.focusNode!==k.node||Y.focusOffset!==k.offset)){var L=Q.createRange();L.setStart(D.node,D.offset),Y.removeAllRanges(),we>Fe?(Y.addRange(L),Y.extend(k.node,k.offset)):(L.setEnd(k.node,k.offset),Y.addRange(L))}}}}for(Q=[],Y=S;Y=Y.parentNode;)Y.nodeType===1&&Q.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<Q.length;S++){var K=Q[S];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}ds=!!hd,pd=hd=null}finally{Ye=s,V.p=o,M.T=a}}e.current=t,xt=2}}function dg(){if(xt===2){xt=0;var e=qa,t=bl,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=M.T,M.T=null;var o=V.p;V.p=2;var s=Ye;Ye|=4;try{Hp(e,t.alternate,t)}finally{Ye=s,V.p=o,M.T=a}}xt=3}}function fg(){if(xt===4||xt===3){xt=0,On();var e=qa,t=bl,a=va,o=Jp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?xt=5:(xt=0,bl=qa=null,mg(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&($a=null),En(a),t=t.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(Ln,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=M.T,s=V.p,V.p=2,M.T=null;try{for(var u=e.onRecoverableError,b=0;b<o.length;b++){var S=o[b];u(S.value,{componentStack:S.stack})}}finally{M.T=t,V.p=s}}(va&3)!==0&&Wi(),Vn(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===td?Ao++:(Ao=0,td=e):Ao=0,jo(0)}}function mg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,so(t)))}function Wi(){return ug(),dg(),fg(),hg()}function hg(){if(xt!==5)return!1;var e=qa,t=Wu;Wu=0;var a=En(va),o=M.T,s=V.p;try{V.p=32>a?32:a,M.T=null,a=ed,ed=null;var u=qa,b=va;if(xt=0,bl=qa=null,va=0,(Ye&6)!==0)throw Error(i(331));var S=Ye;if(Ye|=4,Qp(u.current),Ip(u,u.current,b,a),Ye=S,jo(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(Ln,u)}catch{}return!0}finally{V.p=s,M.T=o,mg(e,t)}}function pg(e,t,a){t=mn(a,t),t=ku(e.stateNode,t,2),e=Da(e,t,2),e!==null&&(it(e,2),Vn(e))}function Ke(e,t,a){if(e.tag===3)pg(e,e,a);else for(;t!==null;){if(t.tag===3){pg(t,e,a);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&($a===null||!$a.has(o))){e=mn(a,e),a=gp(2),o=Da(t,a,2),o!==null&&(vp(a,o,t,e),it(o,2),Vn(o));break}}t=t.return}}function rd(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new YS;var s=new Set;o.set(t,s)}else s=o.get(t),s===void 0&&(s=new Set,o.set(t,s));s.has(a)||(Zu=!0,s.add(a),e=KS.bind(null,e,t,a),t.then(e,e))}function KS(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Je===e&&(De&a)===a&&(dt===4||dt===3&&(De&62914560)===De&&300>Rt()-Xi?(Ye&2)===0&&xl(e,0):Fu|=a,yl===De&&(yl=0)),Vn(e)}function gg(e,t){t===0&&(t=Dt()),e=gr(e,t),e!==null&&(it(e,t),Vn(e))}function QS(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),gg(e,a)}function ZS(e,t){var a=0;switch(e.tag){case 31:case 13:var o=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(i(314))}o!==null&&o.delete(t),gg(e,a)}function FS(e,t){return sr(e,t)}var es=null,wl=null,ld=!1,ts=!1,od=!1,Ya=0;function Vn(e){e!==wl&&e.next===null&&(wl===null?es=wl=e:wl=wl.next=e),ts=!0,ld||(ld=!0,WS())}function jo(e,t){if(!od&&ts){od=!0;do for(var a=!1,o=es;o!==null;){if(e!==0){var s=o.pendingLanes;if(s===0)var u=0;else{var b=o.suspendedLanes,S=o.pingedLanes;u=(1<<31-kt(42|e)+1)-1,u&=s&~(b&~S),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(a=!0,xg(o,u))}else u=De,u=Te(o,o===Je?u:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(u&3)===0||rt(o,u)||(a=!0,xg(o,u));o=o.next}while(a);od=!1}}function JS(){vg()}function vg(){ts=ld=!1;var e=0;Ya!==0&&cw()&&(e=Ya);for(var t=Rt(),a=null,o=es;o!==null;){var s=o.next,u=yg(o,t);u===0?(o.next=null,a===null?es=s:a.next=s,s===null&&(wl=a)):(a=o,(e!==0||(u&3)!==0)&&(ts=!0)),o=s}xt!==0&&xt!==5||jo(e),Ya!==0&&(Ya=0)}function yg(e,t){for(var a=e.suspendedLanes,o=e.pingedLanes,s=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var b=31-kt(u),S=1<<b,j=s[b];j===-1?((S&a)===0||(S&o)!==0)&&(s[b]=Et(S,t)):j<=t&&(e.expiredLanes|=S),u&=~S}if(t=Je,a=De,a=Te(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,a===0||e===t&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&cr(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||rt(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(o!==null&&cr(o),En(a)){case 2:case 8:a=Ne;break;case 32:a=Ie;break;case 268435456:a=ct;break;default:a=Ie}return o=bg.bind(null,e),a=sr(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&o!==null&&cr(o),e.callbackPriority=2,e.callbackNode=null,2}function bg(e,t){if(xt!==0&&xt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Wi()&&e.callbackNode!==a)return null;var o=De;return o=Te(e,e===Je?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(eg(e,o,t),yg(e,Rt()),e.callbackNode!=null&&e.callbackNode===a?bg.bind(null,e):null)}function xg(e,t){if(Wi())return null;eg(e,t,!0)}function WS(){dw(function(){(Ye&6)!==0?sr(kn,JS):vg()})}function id(){if(Ya===0){var e=il;e===0&&(e=$r,$r<<=1,($r&261888)===0&&($r=256)),Ya=e}return Ya}function Sg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ci(""+e)}function wg(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 ew(e,t,a,o,s){if(t==="submit"&&a&&a.stateNode===s){var u=Sg((s[Yt]||null).action),b=o.submitter;b&&(t=(t=b[Yt]||null)?Sg(t.formAction):b.getAttribute("formAction"),t!==null&&(u=t,b=null));var S=new mi("action","action",null,o,s);e.push({event:S,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Ya!==0){var j=b?wg(s,b):new FormData(s);Ru(a,{pending:!0,data:j,method:s.method,action:u},null,j)}}else typeof u=="function"&&(S.preventDefault(),j=b?wg(s,b):new FormData(s),Ru(a,{pending:!0,data:j,method:s.method,action:u},u,j))},currentTarget:s}]})}}for(var sd=0;sd<Pc.length;sd++){var cd=Pc[sd],tw=cd.toLowerCase(),nw=cd[0].toUpperCase()+cd.slice(1);Nn(tw,"on"+nw)}Nn(Wm,"onAnimationEnd"),Nn(eh,"onAnimationIteration"),Nn(th,"onAnimationStart"),Nn("dblclick","onDoubleClick"),Nn("focusin","onFocus"),Nn("focusout","onBlur"),Nn(yS,"onTransitionRun"),Nn(bS,"onTransitionStart"),Nn(xS,"onTransitionCancel"),Nn(nh,"onTransitionEnd"),Xr("onMouseEnter",["mouseout","mouseover"]),Xr("onMouseLeave",["mouseout","mouseover"]),Xr("onPointerEnter",["pointerout","pointerover"]),Xr("onPointerLeave",["pointerout","pointerover"]),fr("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),fr("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),fr("onBeforeInput",["compositionend","keypress","textInput","paste"]),fr("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),fr("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),fr("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _o="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(" "),aw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_o));function Eg(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a],s=o.event;o=o.listeners;e:{var u=void 0;if(t)for(var b=o.length-1;0<=b;b--){var S=o[b],j=S.instance,U=S.currentTarget;if(S=S.listener,j!==u&&s.isPropagationStopped())break e;u=S,s.currentTarget=U;try{u(s)}catch(I){gi(I)}s.currentTarget=null,u=j}else for(b=0;b<o.length;b++){if(S=o[b],j=S.instance,U=S.currentTarget,S=S.listener,j!==u&&s.isPropagationStopped())break e;u=S,s.currentTarget=U;try{u(s)}catch(I){gi(I)}s.currentTarget=null,u=j}}}}function Oe(e,t){var a=t[wc];a===void 0&&(a=t[wc]=new Set);var o=e+"__bubble";a.has(o)||(Ng(t,e,2,!1),a.add(o))}function ud(e,t,a){var o=0;t&&(o|=4),Ng(a,e,o,t)}var ns="_reactListening"+Math.random().toString(36).slice(2);function dd(e){if(!e[ns]){e[ns]=!0,vm.forEach(function(a){a!=="selectionchange"&&(aw.has(a)||ud(a,!1,e),ud(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ns]||(t[ns]=!0,ud("selectionchange",!1,t))}}function Ng(e,t,a,o){switch(Wg(t)){case 2:var s=Mw;break;case 8:s=Ow;break;default:s=Cd}a=s.bind(null,t,a,e),s=void 0,!Mc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),o?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 fd(e,t,a,o,s){var u=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var b=o.tag;if(b===3||b===4){var S=o.stateNode.containerInfo;if(S===s)break;if(b===4)for(b=o.return;b!==null;){var j=b.tag;if((j===3||j===4)&&b.stateNode.containerInfo===s)return;b=b.return}for(;S!==null;){if(b=Pr(S),b===null)return;if(j=b.tag,j===5||j===6||j===26||j===27){o=u=b;continue e}S=S.parentNode}}o=o.return}jm(function(){var U=u,I=jc(a),Q=[];e:{var H=ah.get(e);if(H!==void 0){var Y=mi,he=e;switch(e){case"keypress":if(di(a)===0)break e;case"keydown":case"keyup":Y=Z1;break;case"focusin":he="focus",Y=zc;break;case"focusout":he="blur",Y=zc;break;case"beforeblur":case"afterblur":Y=zc;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":Y=Om;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=B1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=W1;break;case Wm:case eh:case th:Y=q1;break;case nh:Y=tS;break;case"scroll":case"scrollend":Y=L1;break;case"wheel":Y=aS;break;case"copy":case"cut":case"paste":Y=Y1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=Dm;break;case"toggle":case"beforetoggle":Y=lS}var we=(t&4)!==0,Fe=!we&&(e==="scroll"||e==="scrollend"),D=we?H!==null?H+"Capture":null:H;we=[];for(var k=U,L;k!==null;){var K=k;if(L=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||L===null||D===null||(K=Fl(k,D),K!=null&&we.push(Mo(k,K,L))),Fe)break;k=k.return}0<we.length&&(H=new Y(H,he,null,a,I),Q.push({event:H,listeners:we}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",H&&a!==Ac&&(he=a.relatedTarget||a.fromElement)&&(Pr(he)||he[Yr]))break e;if((Y||H)&&(H=I.window===I?I:(H=I.ownerDocument)?H.defaultView||H.parentWindow:window,Y?(he=a.relatedTarget||a.toElement,Y=U,he=he?Pr(he):null,he!==null&&(Fe=d(he),we=he.tag,he!==Fe||we!==5&&we!==27&&we!==6)&&(he=null)):(Y=null,he=U),Y!==he)){if(we=Om,K="onMouseLeave",D="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(we=Dm,K="onPointerLeave",D="onPointerEnter",k="pointer"),Fe=Y==null?H:Zl(Y),L=he==null?H:Zl(he),H=new we(K,k+"leave",Y,a,I),H.target=Fe,H.relatedTarget=L,K=null,Pr(I)===U&&(we=new we(D,k+"enter",he,a,I),we.target=L,we.relatedTarget=Fe,K=we),Fe=K,Y&&he)t:{for(we=rw,D=Y,k=he,L=0,K=D;K;K=we(K))L++;K=0;for(var xe=k;xe;xe=we(xe))K++;for(;0<L-K;)D=we(D),L--;for(;0<K-L;)k=we(k),K--;for(;L--;){if(D===k||k!==null&&D===k.alternate){we=D;break t}D=we(D),k=we(k)}we=null}else we=null;Y!==null&&Tg(Q,H,Y,we,!1),he!==null&&Fe!==null&&Tg(Q,Fe,he,we,!0)}}e:{if(H=U?Zl(U):window,Y=H.nodeName&&H.nodeName.toLowerCase(),Y==="select"||Y==="input"&&H.type==="file")var qe=Vm;else if($m(H))if(Ym)qe=pS;else{qe=mS;var ye=fS}else Y=H.nodeName,!Y||Y.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?U&&Rc(U.elementType)&&(qe=Vm):qe=hS;if(qe&&(qe=qe(e,U))){qm(Q,qe,a,I);break e}ye&&ye(e,H,U),e==="focusout"&&U&&H.type==="number"&&U.memoizedProps.value!=null&&Cc(H,"number",H.value)}switch(ye=U?Zl(U):window,e){case"focusin":($m(ye)||ye.contentEditable==="true")&&(Wr=ye,qc=U,lo=null);break;case"focusout":lo=qc=Wr=null;break;case"mousedown":Vc=!0;break;case"contextmenu":case"mouseup":case"dragend":Vc=!1,Fm(Q,a,I);break;case"selectionchange":if(vS)break;case"keydown":case"keyup":Fm(Q,a,I)}var Ae;if(Uc)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 Jr?Bm(e,a)&&(ze="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ze="onCompositionStart");ze&&(zm&&a.locale!=="ko"&&(Jr||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&Jr&&(Ae=_m()):(Ra=I,Oc="value"in Ra?Ra.value:Ra.textContent,Jr=!0)),ye=as(U,ze),0<ye.length&&(ze=new km(ze,e,null,a,I),Q.push({event:ze,listeners:ye}),Ae?ze.data=Ae:(Ae=Hm(a),Ae!==null&&(ze.data=Ae)))),(Ae=iS?sS(e,a):cS(e,a))&&(ze=as(U,"onBeforeInput"),0<ze.length&&(ye=new km("onBeforeInput","beforeinput",null,a,I),Q.push({event:ye,listeners:ze}),ye.data=Ae)),ew(Q,e,U,a,I)}Eg(Q,t)})}function Mo(e,t,a){return{instance:e,listener:t,currentTarget:a}}function as(e,t){for(var a=t+"Capture",o=[];e!==null;){var s=e,u=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||u===null||(s=Fl(e,a),s!=null&&o.unshift(Mo(e,s,u)),s=Fl(e,t),s!=null&&o.push(Mo(e,s,u))),e.tag===3)return o;e=e.return}return[]}function rw(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Tg(e,t,a,o,s){for(var u=t._reactName,b=[];a!==null&&a!==o;){var S=a,j=S.alternate,U=S.stateNode;if(S=S.tag,j!==null&&j===o)break;S!==5&&S!==26&&S!==27||U===null||(j=U,s?(U=Fl(a,u),U!=null&&b.unshift(Mo(a,U,j))):s||(U=Fl(a,u),U!=null&&b.push(Mo(a,U,j)))),a=a.return}b.length!==0&&e.push({event:t,listeners:b})}var lw=/\r\n?/g,ow=/\u0000|\uFFFD/g;function Cg(e){return(typeof e=="string"?e:""+e).replace(lw,`
|
|
50
|
-
`).replace(ow,"")}function Rg(e,t){return t=Cg(t),Cg(e)===t}function Ze(e,t,a,o,s,u){switch(a){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||Qr(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&Qr(e,""+o);break;case"className":ii(e,"class",o);break;case"tabIndex":ii(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":ii(e,a,o);break;case"style":Rm(e,o,u);break;case"data":if(t!=="object"){ii(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=ci(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(typeof o=="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"&&Ze(e,t,"name",s.name,s,null),Ze(e,t,"formEncType",s.formEncType,s,null),Ze(e,t,"formMethod",s.formMethod,s,null),Ze(e,t,"formTarget",s.formTarget,s,null)):(Ze(e,t,"encType",s.encType,s,null),Ze(e,t,"method",s.method,s,null),Ze(e,t,"target",s.target,s,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(a);break}o=ci(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(e.onclick=na);break;case"onScroll":o!=null&&Oe("scroll",e);break;case"onScrollEnd":o!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(a=o.__html,a!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}a=ci(""+o),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":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""+o):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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(a,o):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(a,o):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(a):e.setAttribute(a,o);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),oi(e,"popover",o);break;case"xlinkActuate":ta(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":ta(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":ta(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":ta(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":ta(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":ta(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":ta(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":ta(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":ta(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":oi(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=D1.get(a)||a,oi(e,a,o))}}function md(e,t,a,o,s,u){switch(a){case"style":Rm(e,o,u);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(i(61));if(a=o.__html,a!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"children":typeof o=="string"?Qr(e,o):(typeof o=="number"||typeof o=="bigint")&&Qr(e,""+o);break;case"onScroll":o!=null&&Oe("scroll",e);break;case"onScrollEnd":o!=null&&Oe("scrollend",e);break;case"onClick":o!=null&&(e.onclick=na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ym.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 o=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,s);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):oi(e,a,o)}}}function Ot(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 o=!1,s=!1,u;for(u in a)if(a.hasOwnProperty(u)){var b=a[u];if(b!=null)switch(u){case"src":o=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ze(e,t,u,b,a,null)}}s&&Ze(e,t,"srcSet",a.srcSet,a,null),o&&Ze(e,t,"src",a.src,a,null);return;case"input":Oe("invalid",e);var S=u=b=s=null,j=null,U=null;for(o in a)if(a.hasOwnProperty(o)){var I=a[o];if(I!=null)switch(o){case"name":s=I;break;case"type":b=I;break;case"checked":j=I;break;case"defaultChecked":U=I;break;case"value":u=I;break;case"defaultValue":S=I;break;case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(i(137,t));break;default:Ze(e,t,o,I,a,null)}}Em(e,u,S,j,U,b,s,!1);return;case"select":Oe("invalid",e),o=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":o=S;default:Ze(e,t,s,S,a,null)}t=u,a=b,e.multiple=!!o,t!=null?Kr(e,!!o,t,!1):a!=null&&Kr(e,!!o,a,!0);return;case"textarea":Oe("invalid",e),u=s=o=null;for(b in a)if(a.hasOwnProperty(b)&&(S=a[b],S!=null))switch(b){case"value":o=S;break;case"defaultValue":s=S;break;case"children":u=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(i(91));break;default:Ze(e,t,b,S,a,null)}Tm(e,o,s,u);return;case"option":for(j in a)if(a.hasOwnProperty(j)&&(o=a[j],o!=null))switch(j){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:Ze(e,t,j,o,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(o=0;o<_o.length;o++)Oe(_o[o],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)&&(o=a[U],o!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ze(e,t,U,o,a,null)}return;default:if(Rc(t)){for(I in a)a.hasOwnProperty(I)&&(o=a[I],o!==void 0&&md(e,t,I,o,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(o=a[S],o!=null&&Ze(e,t,S,o,a,null))}function iw(e,t,a,o){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,j=null,U=null,I=null;for(Y in a){var Q=a[Y];if(a.hasOwnProperty(Y)&&Q!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":j=Q;default:o.hasOwnProperty(Y)||Ze(e,t,Y,null,o,Q)}}for(var H in o){var Y=o[H];if(Q=a[H],o.hasOwnProperty(H)&&(Y!=null||Q!=null))switch(H){case"type":u=Y;break;case"name":s=Y;break;case"checked":U=Y;break;case"defaultChecked":I=Y;break;case"value":b=Y;break;case"defaultValue":S=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,t));break;default:Y!==Q&&Ze(e,t,H,Y,o,Q)}}Tc(e,b,S,j,U,I,u,s);return;case"select":Y=b=S=H=null;for(u in a)if(j=a[u],a.hasOwnProperty(u)&&j!=null)switch(u){case"value":break;case"multiple":Y=j;default:o.hasOwnProperty(u)||Ze(e,t,u,null,o,j)}for(s in o)if(u=o[s],j=a[s],o.hasOwnProperty(s)&&(u!=null||j!=null))switch(s){case"value":H=u;break;case"defaultValue":S=u;break;case"multiple":b=u;default:u!==j&&Ze(e,t,s,u,o,j)}t=S,a=b,o=Y,H!=null?Kr(e,!!a,H,!1):!!o!=!!a&&(t!=null?Kr(e,!!a,t,!0):Kr(e,!!a,a?[]:"",!1));return;case"textarea":Y=H=null;for(S in a)if(s=a[S],a.hasOwnProperty(S)&&s!=null&&!o.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ze(e,t,S,null,o,s)}for(b in o)if(s=o[b],u=a[b],o.hasOwnProperty(b)&&(s!=null||u!=null))switch(b){case"value":H=s;break;case"defaultValue":Y=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(i(91));break;default:s!==u&&Ze(e,t,b,s,o,u)}Nm(e,H,Y);return;case"option":for(var he in a)if(H=a[he],a.hasOwnProperty(he)&&H!=null&&!o.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Ze(e,t,he,null,o,H)}for(j in o)if(H=o[j],Y=a[j],o.hasOwnProperty(j)&&H!==Y&&(H!=null||Y!=null))switch(j){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Ze(e,t,j,H,o,Y)}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&&!o.hasOwnProperty(we)&&Ze(e,t,we,null,o,H);for(U in o)if(H=o[U],Y=a[U],o.hasOwnProperty(U)&&H!==Y&&(H!=null||Y!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(i(137,t));break;default:Ze(e,t,U,H,o,Y)}return;default:if(Rc(t)){for(var Fe in a)H=a[Fe],a.hasOwnProperty(Fe)&&H!==void 0&&!o.hasOwnProperty(Fe)&&md(e,t,Fe,void 0,o,H);for(I in o)H=o[I],Y=a[I],!o.hasOwnProperty(I)||H===Y||H===void 0&&Y===void 0||md(e,t,I,H,o,Y);return}}for(var D in a)H=a[D],a.hasOwnProperty(D)&&H!=null&&!o.hasOwnProperty(D)&&Ze(e,t,D,null,o,H);for(Q in o)H=o[Q],Y=a[Q],!o.hasOwnProperty(Q)||H===Y||H==null&&Y==null||Ze(e,t,Q,H,o,Y)}function Ag(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sw(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var s=a[o],u=s.transferSize,b=s.initiatorType,S=s.duration;if(u&&S&&Ag(b)){for(b=0,S=s.responseEnd,o+=1;o<a.length;o++){var j=a[o],U=j.startTime;if(U>S)break;var I=j.transferSize,Q=j.initiatorType;I&&Ag(Q)&&(j=j.responseEnd,b+=I*(j<S?1:(S-U)/(j-U)))}if(--o,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 hd=null,pd=null;function rs(e){return e.nodeType===9?e:e.ownerDocument}function jg(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 _g(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 gd(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 vd=null;function cw(){var e=window.event;return e&&e.type==="popstate"?e===vd?!1:(vd=e,!0):(vd=null,!1)}var Mg=typeof setTimeout=="function"?setTimeout:void 0,uw=typeof clearTimeout=="function"?clearTimeout:void 0,Og=typeof Promise=="function"?Promise:void 0,dw=typeof queueMicrotask=="function"?queueMicrotask:typeof Og<"u"?function(e){return Og.resolve(null).then(e).catch(fw)}:Mg;function fw(e){setTimeout(function(){throw e})}function Pa(e){return e==="head"}function kg(e,t){var a=t,o=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(o===0){e.removeChild(s),Cl(t);return}o--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")o++;else if(a==="html")Oo(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Oo(a);for(var u=a.firstChild;u;){var b=u.nextSibling,S=u.nodeName;u[Ql]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&u.rel.toLowerCase()==="stylesheet"||a.removeChild(u),u=b}}else a==="body"&&Oo(e.ownerDocument.body);a=s}while(a);Cl(t)}function Dg(e,t){var a=e;e=0;do{var o=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||""),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=o}while(a)}function yd(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":yd(a),Ec(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function mw(e,t,a,o){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Ql])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=yn(e.nextSibling),e===null)break}return null}function hw(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=yn(e.nextSibling),e===null))return null;return e}function zg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=yn(e.nextSibling),e===null))return null;return e}function bd(e){return e.data==="$?"||e.data==="$~"}function xd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function pw(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function yn(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 Sd=null;function Lg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return yn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function Ug(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 Bg(e,t,a){switch(t=rs(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 Oo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ec(e)}var bn=new Map,Hg=new Set;function ls(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ya=V.d;V.d={f:gw,r:vw,D:yw,C:bw,L:xw,m:Sw,X:Ew,S:ww,M:Nw};function gw(){var e=ya.f(),t=Zi();return e||t}function vw(e){var t=Gr(e);t!==null&&t.tag===5&&t.type==="form"?np(t):ya.r(e)}var El=typeof document>"u"?null:document;function $g(e,t,a){var o=El;if(o&&typeof t=="string"&&t){var s=dn(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),Hg.has(s)||(Hg.add(s),e={rel:e,crossOrigin:a,href:t},o.querySelector(s)===null&&(t=o.createElement("link"),Ot(t,"link",e),Nt(t),o.head.appendChild(t)))}}function yw(e){ya.D(e),$g("dns-prefetch",e,null)}function bw(e,t){ya.C(e,t),$g("preconnect",e,t)}function xw(e,t,a){ya.L(e,t,a);var o=El;if(o&&e&&t){var s='link[rel="preload"][as="'+dn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+dn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+dn(a.imageSizes)+'"]')):s+='[href="'+dn(e)+'"]';var u=s;switch(t){case"style":u=Nl(e);break;case"script":u=Tl(e)}bn.has(u)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),bn.set(u,e),o.querySelector(s)!==null||t==="style"&&o.querySelector(ko(u))||t==="script"&&o.querySelector(Do(u))||(t=o.createElement("link"),Ot(t,"link",e),Nt(t),o.head.appendChild(t)))}}function Sw(e,t){ya.m(e,t);var a=El;if(a&&e){var o=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+dn(o)+'"][href="'+dn(e)+'"]',u=s;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=Tl(e)}if(!bn.has(u)&&(e=g({rel:"modulepreload",href:e},t),bn.set(u,e),a.querySelector(s)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Do(u)))return}o=a.createElement("link"),Ot(o,"link",e),Nt(o),a.head.appendChild(o)}}}function ww(e,t,a){ya.S(e,t,a);var o=El;if(o&&e){var s=Ir(o).hoistableStyles,u=Nl(e);t=t||"default";var b=s.get(u);if(!b){var S={loading:0,preload:null};if(b=o.querySelector(ko(u)))S.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=bn.get(u))&&wd(e,a);var j=b=o.createElement("link");Nt(j),Ot(j,"link",e),j._p=new Promise(function(U,I){j.onload=U,j.onerror=I}),j.addEventListener("load",function(){S.loading|=1}),j.addEventListener("error",function(){S.loading|=2}),S.loading|=4,os(b,t,o)}b={type:"stylesheet",instance:b,count:1,state:S},s.set(u,b)}}}function Ew(e,t){ya.X(e,t);var a=El;if(a&&e){var o=Ir(a).hoistableScripts,s=Tl(e),u=o.get(s);u||(u=a.querySelector(Do(s)),u||(e=g({src:e,async:!0},t),(t=bn.get(s))&&Ed(e,t),u=a.createElement("script"),Nt(u),Ot(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},o.set(s,u))}}function Nw(e,t){ya.M(e,t);var a=El;if(a&&e){var o=Ir(a).hoistableScripts,s=Tl(e),u=o.get(s);u||(u=a.querySelector(Do(s)),u||(e=g({src:e,async:!0,type:"module"},t),(t=bn.get(s))&&Ed(e,t),u=a.createElement("script"),Nt(u),Ot(u,"link",e),a.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},o.set(s,u))}}function qg(e,t,a,o){var s=(s=se.current)?ls(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=Nl(a.href),a=Ir(s).hoistableStyles,o=a.get(t),o||(o={type:"style",instance:null,count:0,state:null},a.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Nl(a.href);var u=Ir(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(ko(e)))&&!u._p&&(b.instance=u,b.state.loading=5),bn.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},bn.set(e,a),u||Tw(s,e,a,b.state))),t&&o===null)throw Error(i(528,""));return b}if(t&&o!==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=Tl(a),a=Ir(s).hoistableScripts,o=a.get(t),o||(o={type:"script",instance:null,count:0,state:null},a.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Nl(e){return'href="'+dn(e)+'"'}function ko(e){return'link[rel="stylesheet"]['+e+"]"}function Vg(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function Tw(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),Ot(t,"link",a),Nt(t),e.head.appendChild(t))}function Tl(e){return'[src="'+dn(e)+'"]'}function Do(e){return"script[async]"+e}function Yg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+dn(a.href)+'"]');if(o)return t.instance=o,Nt(o),o;var s=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Nt(o),Ot(o,"style",s),os(o,a.precedence,e),t.instance=o;case"stylesheet":s=Nl(a.href);var u=e.querySelector(ko(s));if(u)return t.state.loading|=4,t.instance=u,Nt(u),u;o=Vg(a),(s=bn.get(s))&&wd(o,s),u=(e.ownerDocument||e).createElement("link"),Nt(u);var b=u;return b._p=new Promise(function(S,j){b.onload=S,b.onerror=j}),Ot(u,"link",o),t.state.loading|=4,os(u,a.precedence,e),t.instance=u;case"script":return u=Tl(a.src),(s=e.querySelector(Do(u)))?(t.instance=s,Nt(s),s):(o=a,(s=bn.get(u))&&(o=g({},a),Ed(o,s)),e=e.ownerDocument||e,s=e.createElement("script"),Nt(s),Ot(s,"link",o),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&&(o=t.instance,t.state.loading|=4,os(o,a.precedence,e));return t.instance}function os(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=o.length?o[o.length-1]:null,u=s,b=0;b<o.length;b++){var S=o[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 wd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ed(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var is=null;function Pg(e,t,a){if(is===null){var o=new Map,s=is=new Map;s.set(a,o)}else s=is,o=s.get(a),o||(o=new Map,s.set(a,o));if(o.has(e))return o;for(o.set(e,null),a=a.getElementsByTagName(e),s=0;s<a.length;s++){var u=a[s];if(!(u[Ql]||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=o.get(b);S?S.push(u):o.set(b,[u])}}return o}function Gg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Cw(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 Ig(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Rw(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=Nl(o.href),u=t.querySelector(ko(s));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ss.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=u,Nt(u);return}u=t.ownerDocument||t,o=Vg(o),(s=bn.get(s))&&wd(o,s),u=u.createElement("link"),Nt(u);var b=u;b._p=new Promise(function(S,j){b.onload=S,b.onerror=j}),Ot(u,"link",o),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=ss.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var Nd=0;function Aw(e,t){return e.stylesheets&&e.count===0&&us(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&us(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Nd===0&&(Nd=62500*sw());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&us(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Nd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(s)}}:null}function ss(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)us(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var cs=null;function us(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,cs=new Map,t.forEach(jw,e),cs=null,ss.call(e))}function jw(e,t){if(!(t.state.loading&4)){var a=cs.get(e);if(a)var o=a.get(null);else{a=new Map,cs.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),o=b)}o&&a.set(null,o)}s=t.instance,b=s.getAttribute("data-precedence"),u=a.get(b)||o,u===o&&a.set(null,s),a.set(b,s),this.count++,o=ss.bind(this),s.addEventListener("load",o),s.addEventListener("error",o),u?u.parentNode.insertBefore(s,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var zo={$$typeof:O,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function _w(e,t,a,o,s,u,b,S,j){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=Ta(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ta(0),this.hiddenUpdates=Ta(null),this.identifierPrefix=o,this.onUncaughtError=s,this.onCaughtError=u,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function Xg(e,t,a,o,s,u,b,S,j,U,I,Q){return e=new _w(e,t,a,b,j,U,I,Q,S),t=1,u===!0&&(t|=24),u=Wt(3,null,null,t),e.current=u,u.stateNode=e,t=au(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:o,isDehydrated:a,cache:t},iu(u),e}function Kg(e){return e?(e=nl,e):nl}function Qg(e,t,a,o,s,u){s=Kg(s),o.context===null?o.context=s:o.pendingContext=s,o=ka(t),o.payload={element:a},u=u===void 0?null:u,u!==null&&(o.callback=u),a=Da(e,o,t),a!==null&&(Qt(a,e,t),mo(a,e,t))}function Zg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Td(e,t){Zg(e,t),(e=e.alternate)&&Zg(e,t)}function Fg(e){if(e.tag===13||e.tag===31){var t=gr(e,67108864);t!==null&&Qt(t,e,67108864),Td(e,67108864)}}function Jg(e){if(e.tag===13||e.tag===31){var t=rn();t=Vr(t);var a=gr(e,t);a!==null&&Qt(a,e,t),Td(e,t)}}var ds=!0;function Mw(e,t,a,o){var s=M.T;M.T=null;var u=V.p;try{V.p=2,Cd(e,t,a,o)}finally{V.p=u,M.T=s}}function Ow(e,t,a,o){var s=M.T;M.T=null;var u=V.p;try{V.p=8,Cd(e,t,a,o)}finally{V.p=u,M.T=s}}function Cd(e,t,a,o){if(ds){var s=Rd(o);if(s===null)fd(e,t,o,fs,a),ev(e,o);else if(Dw(s,e,t,a,o))o.stopPropagation();else if(ev(e,o),t&4&&-1<kw.indexOf(e)){for(;s!==null;){var u=Gr(s);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var b=Bn(u.pendingLanes);if(b!==0){var S=u;for(S.pendingLanes|=2,S.entangledLanes|=2;b;){var j=1<<31-kt(b);S.entanglements[1]|=j,b&=~j}Vn(u),(Ye&6)===0&&(Ki=Rt()+500,jo(0))}}break;case 31:case 13:S=gr(u,2),S!==null&&Qt(S,u,2),Zi(),Td(u,2)}if(u=Rd(o),u===null&&fd(e,t,o,fs,a),u===s)break;s=u}s!==null&&o.stopPropagation()}else fd(e,t,o,null,a)}}function Rd(e){return e=jc(e),Ad(e)}var fs=null;function Ad(e){if(fs=null,e=Pr(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 fs=e,null}function Wg(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(Hr()){case kn:return 2;case Ne:return 8;case Ie:case We:return 32;case ct:return 268435456;default:return 32}default:return 32}}var jd=!1,Ga=null,Ia=null,Xa=null,Lo=new Map,Uo=new Map,Ka=[],kw="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 ev(e,t){switch(e){case"focusin":case"focusout":Ga=null;break;case"dragenter":case"dragleave":Ia=null;break;case"mouseover":case"mouseout":Xa=null;break;case"pointerover":case"pointerout":Lo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uo.delete(t.pointerId)}}function Bo(e,t,a,o,s,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:u,targetContainers:[s]},t!==null&&(t=Gr(t),t!==null&&Fg(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function Dw(e,t,a,o,s){switch(t){case"focusin":return Ga=Bo(Ga,e,t,a,o,s),!0;case"dragenter":return Ia=Bo(Ia,e,t,a,o,s),!0;case"mouseover":return Xa=Bo(Xa,e,t,a,o,s),!0;case"pointerover":var u=s.pointerId;return Lo.set(u,Bo(Lo.get(u)||null,e,t,a,o,s)),!0;case"gotpointercapture":return u=s.pointerId,Uo.set(u,Bo(Uo.get(u)||null,e,t,a,o,s)),!0}return!1}function tv(e){var t=Pr(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,pm(e.priority,function(){Jg(a)});return}}else if(t===31){if(t=h(a),t!==null){e.blockedOn=t,pm(e.priority,function(){Jg(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 ms(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Rd(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a);Ac=o,a.target.dispatchEvent(o),Ac=null}else return t=Gr(a),t!==null&&Fg(t),e.blockedOn=a,!1;t.shift()}return!0}function nv(e,t,a){ms(e)&&a.delete(t)}function zw(){jd=!1,Ga!==null&&ms(Ga)&&(Ga=null),Ia!==null&&ms(Ia)&&(Ia=null),Xa!==null&&ms(Xa)&&(Xa=null),Lo.forEach(nv),Uo.forEach(nv)}function hs(e,t){e.blockedOn===t&&(e.blockedOn=null,jd||(jd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,zw)))}var ps=null;function av(e){ps!==e&&(ps=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ps===e&&(ps=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],s=e[t+2];if(typeof o!="function"){if(Ad(o||a)===null)continue;break}var u=Gr(a);u!==null&&(e.splice(t,3),t-=3,Ru(u,{pending:!0,data:s,method:a.method,action:o},o,s))}}))}function Cl(e){function t(j){return hs(j,e)}Ga!==null&&hs(Ga,e),Ia!==null&&hs(Ia,e),Xa!==null&&hs(Xa,e),Lo.forEach(t),Uo.forEach(t);for(var a=0;a<Ka.length;a++){var o=Ka[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Ka.length&&(a=Ka[0],a.blockedOn===null);)tv(a),a.blockedOn===null&&Ka.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var s=a[o],u=a[o+1],b=s[Yt]||null;if(typeof u=="function")b||av(a);else if(b){var S=null;if(u&&u.hasAttribute("formAction")){if(s=u,b=u[Yt]||null)S=b.formAction;else if(Ad(s)!==null)continue}else S=b.action;typeof S=="function"?a[o+1]=S:(a.splice(o,3),o-=3),av(a)}}}function rv(){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),o||setTimeout(a,20)}function a(){if(!o&&!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 o=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function _d(e){this._internalRoot=e}gs.prototype.render=_d.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,o=rn();Qg(a,o,e,t,null,null)},gs.prototype.unmount=_d.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Qg(e.current,2,null,e,null,null),Zi(),t[Yr]=null}};function gs(e){this._internalRoot=e}gs.prototype.unstable_scheduleHydration=function(e){if(e){var t=Sc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ka.length&&t!==0&&t<Ka[a].priority;a++);Ka.splice(a,0,e),a===0&&tv(e)}};var lv=r.version;if(lv!=="19.2.4")throw Error(i(527,lv,"19.2.4"));V.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 Lw={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:M,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var vs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vs.isDisabled&&vs.supportsFiber)try{Ln=vs.inject(Lw),Bt=vs}catch{}}return $o.createRoot=function(e,t){if(!c(e))throw Error(i(299));var a=!1,o="",s=fp,u=mp,b=hp;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=Xg(e,1,!1,null,null,a,o,null,s,u,b,rv),e[Yr]=t.current,dd(e),new _d(t)},$o.hydrateRoot=function(e,t,a){if(!c(e))throw Error(i(299));var o=!1,s="",u=fp,b=mp,S=hp,j=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!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&&(j=a.formState)),t=Xg(e,1,!0,t,a??null,o,s,j,u,b,S,rv),t.context=Kg(null),a=t.current,o=rn(),o=Vr(o),s=ka(o),s.callback=null,Da(a,s,o),a=o,t.current.lanes=a,it(t,a),Vn(t),e[Yr]=t.current,dd(e),new gs(t)},$o.version="19.2.4",$o}var pv;function Kw(){if(pv)return kd.exports;pv=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(r){console.error(r)}}return n(),kd.exports=Xw(),kd.exports}var Qw=Kw();const Zw="modulepreload",Fw=function(n){return"/"+n},gv={},Cy=function(r,l,i){let c=Promise.resolve();if(l&&l.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(l.map(p=>{if(p=Fw(p),p in gv)return;gv[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":Zw,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 r().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 vv="popstate";function yv(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function Jw(n={}){function r(i,c){var p;let d=(p=c.state)==null?void 0:p.masked,{pathname:m,search:h,hash:y}=d||i.location;return of("",{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 l(i,c){return typeof c=="string"?c:Fo(c)}return e2(r,l,null,n)}function ot(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function An(n,r){if(!n){typeof console<"u"&&console.warn(r);try{throw new Error(r)}catch{}}}function Ww(){return Math.random().toString(36).substring(2,10)}function bv(n,r){return{usr:n.state,key:n.key,idx:r,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function of(n,r,l=null,i,c){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?$l(r):r,state:l,key:r&&r.key||i||Ww(),unstable_mask:c}}function Fo({pathname:n="/",search:r="",hash:l=""}){return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),l&&l!=="#"&&(n+=l.charAt(0)==="#"?l:"#"+l),n}function $l(n){let r={};if(n){let l=n.indexOf("#");l>=0&&(r.hash=n.substring(l),n=n.substring(0,l));let i=n.indexOf("?");i>=0&&(r.search=n.substring(i),n=n.substring(0,i)),n&&(r.pathname=n)}return r}function e2(n,r,l,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(),R=C==null?null:C-p;p=C,y&&y({action:h,location:E.location,delta:R})}function w(C,R){h="PUSH";let _=yv(C)?C:of(E.location,C,R);p=x()+1;let O=bv(_,p),z=E.createHref(_.unstable_mask||_);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,R){h="REPLACE";let _=yv(C)?C:of(E.location,C,R);p=x();let O=bv(_,p),z=E.createHref(_.unstable_mask||_);m.replaceState(O,"",z),d&&y&&y({action:h,location:E.location,delta:0})}function T(C){return t2(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(vv,g),y=C,()=>{c.removeEventListener(vv,g),y=null}},createHref(C){return r(c,C)},createURL:T,encodeLocation(C){let R=T(C);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:w,replace:N,go(C){return m.go(C)}};return E}function t2(n,r=!1){let l="http://localhost";typeof window<"u"&&(l=window.location.origin!=="null"?window.location.origin:window.location.href),ot(l,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:Fo(n);return i=i.replace(/ $/,"%20"),!r&&i.startsWith("//")&&(i=l+i),new URL(i,l)}function Ry(n,r,l="/"){return n2(n,r,l,!1)}function n2(n,r,l,i){let c=typeof r=="string"?$l(r):r,d=xa(c.pathname||"/",l);if(d==null)return null;let m=Ay(n);a2(m);let h=null;for(let y=0;h==null&&y<m.length;++y){let p=h2(d);h=f2(m[y],p,i)}return h}function Ay(n,r=[],l=[],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=Fn([i,x.relativePath]),w=l.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}".`),Ay(m.children,r,w,g,y)),!(m.path==null&&!m.index)&&r.push({path:g,score:u2(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 jy(m.path))d(m,h,!0,p)}),r}function jy(n){let r=n.split("/");if(r.length===0)return[];let[l,...i]=r,c=l.endsWith("?"),d=l.replace(/\?$/,"");if(i.length===0)return c?[d,""]:[d];let m=jy(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 a2(n){n.sort((r,l)=>r.score!==l.score?l.score-r.score:d2(r.routesMeta.map(i=>i.childrenIndex),l.routesMeta.map(i=>i.childrenIndex)))}var r2=/^:[\w-]+$/,l2=3,o2=2,i2=1,s2=10,c2=-2,xv=n=>n==="*";function u2(n,r){let l=n.split("/"),i=l.length;return l.some(xv)&&(i+=c2),r&&(i+=o2),l.filter(c=>!xv(c)).reduce((c,d)=>c+(r2.test(d)?l2:d===""?i2:s2),i)}function d2(n,r){return n.length===r.length&&n.slice(0,-1).every((i,c)=>i===r[c])?n[n.length-1]-r[r.length-1]:0}function f2(n,r,l=!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==="/"?r:r.slice(d.length)||"/",g=Us({path:y.relativePath,caseSensitive:y.caseSensitive,end:p},x),w=y.route;if(!g&&p&&l&&!i[i.length-1].route.index&&(g=Us({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},x)),!g)return null;Object.assign(c,g.params),m.push({params:c,pathname:Fn([d,g.pathname]),pathnameBase:y2(Fn([d,g.pathnameBase])),route:w}),g.pathnameBase!=="/"&&(d=Fn([d,g.pathnameBase]))}return m}function Us(n,r){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[l,i]=m2(n.path,n.caseSensitive,n.end),c=r.match(l);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 m2(n,r=!1,l=!0){An(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==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):l?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,r?void 0:"i"),i]}function h2(n){try{return n.split("/").map(r=>decodeURIComponent(r).replace(/\//g,"%2F")).join("/")}catch(r){return An(!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 (${r}).`),n}}function xa(n,r){if(r==="/")return n;if(!n.toLowerCase().startsWith(r.toLowerCase()))return null;let l=r.endsWith("/")?r.length-1:r.length,i=n.charAt(l);return i&&i!=="/"?null:n.slice(l)||"/"}var p2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function g2(n,r="/"){let{pathname:l,search:i="",hash:c=""}=typeof n=="string"?$l(n):n,d;return l?(l=l.replace(/\/\/+/g,"/"),l.startsWith("/")?d=Sv(l.substring(1),"/"):d=Sv(l,r)):d=r,{pathname:d,search:b2(i),hash:x2(c)}}function Sv(n,r){let l=r.replace(/\/+$/,"").split("/");return n.split("/").forEach(c=>{c===".."?l.length>1&&l.pop():c!=="."&&l.push(c)}),l.length>1?l.join("/"):"/"}function Ud(n,r,l,i){return`Cannot include a '${n}' character in a manually specified \`to.${r}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${l}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function v2(n){return n.filter((r,l)=>l===0||r.route.path&&r.route.path.length>0)}function _f(n){let r=v2(n);return r.map((l,i)=>i===r.length-1?l.pathname:l.pathnameBase)}function rc(n,r,l,i=!1){let c;typeof n=="string"?c=$l(n):(c={...n},ot(!c.pathname||!c.pathname.includes("?"),Ud("?","pathname","search",c)),ot(!c.pathname||!c.pathname.includes("#"),Ud("#","pathname","hash",c)),ot(!c.search||!c.search.includes("#"),Ud("#","search","hash",c)));let d=n===""||c.pathname==="",m=d?"/":c.pathname,h;if(m==null)h=l;else{let g=r.length-1;if(!i&&m.startsWith("..")){let w=m.split("/");for(;w[0]==="..";)w.shift(),g-=1;c.pathname=w.join("/")}h=g>=0?r[g]:"/"}let y=g2(c,h),p=m&&m!=="/"&&m.endsWith("/"),x=(d||m===".")&&l.endsWith("/");return!y.pathname.endsWith("/")&&(p||x)&&(y.pathname+="/"),y}var Fn=n=>n.join("/").replace(/\/\/+/g,"/"),y2=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),b2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,x2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,S2=class{constructor(n,r,l,i=!1){this.status=n,this.statusText=r||"",this.internal=i,l instanceof Error?(this.data=l.toString(),this.error=l):this.data=l}};function w2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function E2(n){return n.map(r=>r.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var _y=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function My(n,r){let l=n;if(typeof l!="string"||!p2.test(l))return{absoluteURL:void 0,isExternal:!1,to:l};let i=l,c=!1;if(_y)try{let d=new URL(window.location.href),m=l.startsWith("//")?new URL(d.protocol+l):new URL(l),h=xa(m.pathname,r);m.origin===d.origin&&h!=null?l=h+m.search+m.hash:c=!0}catch{An(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:c,to:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Oy=["POST","PUT","PATCH","DELETE"];new Set(Oy);var N2=["GET",...Oy];new Set(N2);var ql=v.createContext(null);ql.displayName="DataRouter";var lc=v.createContext(null);lc.displayName="DataRouterState";var T2=v.createContext(!1),ky=v.createContext({isTransitioning:!1});ky.displayName="ViewTransition";var C2=v.createContext(new Map);C2.displayName="Fetchers";var R2=v.createContext(null);R2.displayName="Await";var cn=v.createContext(null);cn.displayName="Navigation";var ti=v.createContext(null);ti.displayName="Location";var Sn=v.createContext({outlet:null,matches:[],isDataRoute:!1});Sn.displayName="Route";var Mf=v.createContext(null);Mf.displayName="RouteError";var Dy="REACT_ROUTER_ERROR",A2="REDIRECT",j2="ROUTE_ERROR_RESPONSE";function _2(n){if(n.startsWith(`${Dy}:${A2}:{`))try{let r=JSON.parse(n.slice(28));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.location=="string"&&typeof r.reloadDocument=="boolean"&&typeof r.replace=="boolean")return r}catch{}}function M2(n){if(n.startsWith(`${Dy}:${j2}:{`))try{let r=JSON.parse(n.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new S2(r.status,r.statusText,r.data)}catch{}}function O2(n,{relative:r}={}){ot(Vl(),"useHref() may be used only in the context of a <Router> component.");let{basename:l,navigator:i}=v.useContext(cn),{hash:c,pathname:d,search:m}=ni(n,{relative:r}),h=d;return l!=="/"&&(h=d==="/"?l:Fn([l,d])),i.createHref({pathname:h,search:m,hash:c})}function Vl(){return v.useContext(ti)!=null}function Wn(){return ot(Vl(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(ti).location}var zy="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ly(n){v.useContext(cn).static||v.useLayoutEffect(n)}function Uy(){let{isDataRoute:n}=v.useContext(Sn);return n?I2():k2()}function k2(){ot(Vl(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(ql),{basename:r,navigator:l}=v.useContext(cn),{matches:i}=v.useContext(Sn),{pathname:c}=Wn(),d=JSON.stringify(_f(i)),m=v.useRef(!1);return Ly(()=>{m.current=!0}),v.useCallback((y,p={})=>{if(An(m.current,zy),!m.current)return;if(typeof y=="number"){l.go(y);return}let x=rc(y,JSON.parse(d),c,p.relative==="path");n==null&&r!=="/"&&(x.pathname=x.pathname==="/"?r:Fn([r,x.pathname])),(p.replace?l.replace:l.push)(x,p.state,p)},[r,l,d,c,n])}var By=v.createContext(null);function P_(){return v.useContext(By)}function D2(n){let r=v.useContext(Sn).outlet;return v.useMemo(()=>r&&v.createElement(By.Provider,{value:n},r),[r,n])}function G_(){let{matches:n}=v.useContext(Sn),r=n[n.length-1];return r?r.params:{}}function ni(n,{relative:r}={}){let{matches:l}=v.useContext(Sn),{pathname:i}=Wn(),c=JSON.stringify(_f(l));return v.useMemo(()=>rc(n,JSON.parse(c),i,r==="path"),[n,c,i,r])}function z2(n,r){return Hy(n,r)}function Hy(n,r,l){var C;ot(Vl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=v.useContext(cn),{matches:c}=v.useContext(Sn),d=c[c.length-1],m=d?d.params:{},h=d?d.pathname:"/",y=d?d.pathnameBase:"/",p=d&&d.route;{let R=p&&p.path||"";qy(h,!p||R.endsWith("*")||R.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${R}">) 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="${R}"> to <Route path="${R==="/"?"*":`${R}/*`}">.`)}let x=Wn(),g;if(r){let R=typeof r=="string"?$l(r):r;ot(y==="/"||((C=R.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 "${R.pathname}" was given in the \`location\` prop.`),g=R}else g=x;let w=g.pathname||"/",N=w;if(y!=="/"){let R=y.replace(/^\//,"").split("/");N="/"+w.replace(/^\//,"").split("/").slice(R.length).join("/")}let T=Ry(n,{pathname:N});An(p||T!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),An(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=$2(T&&T.map(R=>Object.assign({},R,{params:Object.assign({},m,R.params),pathname:Fn([y,i.encodeLocation?i.encodeLocation(R.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?y:Fn([y,i.encodeLocation?i.encodeLocation(R.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),c,l);return r&&E?v.createElement(ti.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},E):E}function L2(){let n=G2(),r=w2(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),l=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"}},r),l?v.createElement("pre",{style:c},l):null,m)}var U2=v.createElement(L2,null),$y=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,r){return r.location!==n.location||r.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:r.error,location:r.location,revalidation:n.revalidation||r.revalidation}}componentDidCatch(n,r){this.props.onError?this.props.onError(n,r):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 l=M2(n.digest);l&&(n=l)}let r=n!==void 0?v.createElement(Sn.Provider,{value:this.props.routeContext},v.createElement(Mf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?v.createElement(B2,{error:n},r):r}};$y.contextType=T2;var Bd=new WeakMap;function B2({children:n,error:r}){let{basename:l}=v.useContext(cn);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let i=_2(r.digest);if(i){let c=Bd.get(r);if(c)throw c;let d=My(i.location,l);if(_y&&!Bd.get(r))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 Bd.set(r,m),m}return v.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return n}function H2({routeContext:n,match:r,children:l}){let i=v.useContext(ql);return i&&i.static&&i.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=r.route.id),v.createElement(Sn.Provider,{value:n},l)}function $2(n,r=[],l){let i=l==null?void 0:l.state;if(n==null){if(!i)return null;if(i.errors)n=i.matches;else if(r.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(l&&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){l.isStatic&&(m=!0),h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}}let y=l==null?void 0:l.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:E2(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||U2,m&&(h<0&&w===0?(qy("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 R=r.concat(c.slice(0,w+1)),_=()=>{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(H2,{match:g,routeContext:{outlet:x,matches:R,isDataRoute:i!=null},children:O})};return i&&(g.route.ErrorBoundary||g.route.errorElement||w===0)?v.createElement($y,{location:i.location,revalidation:i.revalidation,component:E,error:N,children:_(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:p}):_()},null)}function Of(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function q2(n){let r=v.useContext(ql);return ot(r,Of(n)),r}function V2(n){let r=v.useContext(lc);return ot(r,Of(n)),r}function Y2(n){let r=v.useContext(Sn);return ot(r,Of(n)),r}function kf(n){let r=Y2(n),l=r.matches[r.matches.length-1];return ot(l.route.id,`${n} can only be used on routes that contain a unique "id"`),l.route.id}function P2(){return kf("useRouteId")}function G2(){var i;let n=v.useContext(Mf),r=V2("useRouteError"),l=kf("useRouteError");return n!==void 0?n:(i=r.errors)==null?void 0:i[l]}function I2(){let{router:n}=q2("useNavigate"),r=kf("useNavigate"),l=v.useRef(!1);return Ly(()=>{l.current=!0}),v.useCallback(async(c,d={})=>{An(l.current,zy),l.current&&(typeof c=="number"?await n.navigate(c):await n.navigate(c,{fromRouteId:r,...d}))},[n,r])}var wv={};function qy(n,r,l){!r&&!wv[n]&&(wv[n]=!0,An(!1,l))}v.memo(X2);function X2({routes:n,future:r,state:l,isStatic:i,onError:c}){return Hy(n,void 0,{state:l,isStatic:i,onError:c})}function Ev({to:n,replace:r,state:l,relative:i}){ot(Vl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:c}=v.useContext(cn);An(!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(Sn),{pathname:m}=Wn(),h=Uy(),y=rc(n,_f(d),m,i==="path"),p=JSON.stringify(y);return v.useEffect(()=>{h(JSON.parse(p),{replace:r,state:l,relative:i})},[h,p,i,r,l]),null}function K2(n){return D2(n.context)}function Or(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 Q2({basename:n="/",children:r=null,location:l,navigationType:i="POP",navigator:c,static:d=!1,unstable_useTransitions:m}){ot(!Vl(),"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 l=="string"&&(l=$l(l));let{pathname:p="/",search:x="",hash:g="",state:w=null,key:N="default",unstable_mask:T}=l,E=v.useMemo(()=>{let C=xa(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 An(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(cn.Provider,{value:y},v.createElement(ti.Provider,{children:r,value:E}))}function Z2({children:n,location:r}){return z2(sf(n),r)}function sf(n,r=[]){let l=[];return v.Children.forEach(n,(i,c)=>{if(!v.isValidElement(i))return;let d=[...r,c];if(i.type===v.Fragment){l.push.apply(l,sf(i.props.children,d));return}ot(i.type===Or,`[${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=sf(i.props.children,d)),l.push(m)}),l}var _s="get",Ms="application/x-www-form-urlencoded";function oc(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function F2(n){return oc(n)&&n.tagName.toLowerCase()==="button"}function J2(n){return oc(n)&&n.tagName.toLowerCase()==="form"}function W2(n){return oc(n)&&n.tagName.toLowerCase()==="input"}function eE(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function tE(n,r){return n.button===0&&(!r||r==="_self")&&!eE(n)}var ys=null;function nE(){if(ys===null)try{new FormData(document.createElement("form"),0),ys=!1}catch{ys=!0}return ys}var aE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Hd(n){return n!=null&&!aE.has(n)?(An(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ms}"`),null):n}function rE(n,r){let l,i,c,d,m;if(J2(n)){let h=n.getAttribute("action");i=h?xa(h,r):null,l=n.getAttribute("method")||_s,c=Hd(n.getAttribute("enctype"))||Ms,d=new FormData(n)}else if(F2(n)||W2(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?xa(y,r):null,l=n.getAttribute("formmethod")||h.getAttribute("method")||_s,c=Hd(n.getAttribute("formenctype"))||Hd(h.getAttribute("enctype"))||Ms,d=new FormData(h,n),!nE()){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(oc(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');l=_s,i=null,c=Ms,m=n}return d&&c==="text/plain"&&(m=d,d=void 0),{action:i,method:l.toLowerCase(),encType:c,formData:d,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Df(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function lE(n,r,l,i){let c=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return l?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${i}`:c.pathname=`${c.pathname}.${i}`:c.pathname==="/"?c.pathname=`_root.${i}`:r&&xa(c.pathname,r)==="/"?c.pathname=`${r.replace(/\/$/,"")}/_root.${i}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${i}`,c}async function oE(n,r){if(n.id in r)return r[n.id];try{let l=await import(n.module);return r[n.id]=l,l}catch(l){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(l),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function iE(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 sE(n,r,l){let i=await Promise.all(n.map(async c=>{let d=r.routes[c.route.id];if(d){let m=await oE(d,l);return m.links?m.links():[]}return[]}));return fE(i.flat(1).filter(iE).filter(c=>c.rel==="stylesheet"||c.rel==="preload").map(c=>c.rel==="stylesheet"?{...c,rel:"prefetch",as:"style"}:{...c,rel:"prefetch"}))}function Nv(n,r,l,i,c,d){let m=(y,p)=>l[p]?y.route.id!==l[p].route.id:!0,h=(y,p)=>{var x;return l[p].pathname!==y.pathname||((x=l[p].route.path)==null?void 0:x.endsWith("*"))&&l[p].params["*"]!==y.params["*"]};return d==="assets"?r.filter((y,p)=>m(y,p)||h(y,p)):d==="data"?r.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=l[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 cE(n,r,{includeHydrateFallback:l}={}){return uE(n.map(i=>{let c=r.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)),l&&c.hydrateFallbackModule&&(d=d.concat(c.hydrateFallbackModule)),c.imports&&(d=d.concat(c.imports)),d}).flat(1))}function uE(n){return[...new Set(n)]}function dE(n){let r={},l=Object.keys(n).sort();for(let i of l)r[i]=n[i];return r}function fE(n,r){let l=new Set;return new Set(r),n.reduce((i,c)=>{let d=JSON.stringify(dE(c));return l.has(d)||(l.add(d),i.push({key:d,link:c})),i},[])}function Vy(){let n=v.useContext(ql);return Df(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function mE(){let n=v.useContext(lc);return Df(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var zf=v.createContext(void 0);zf.displayName="FrameworkContext";function Yy(){let n=v.useContext(zf);return Df(n,"You must render this element inside a <HydratedRouter> element"),n}function hE(n,r){let l=v.useContext(zf),[i,c]=v.useState(!1),[d,m]=v.useState(!1),{onFocus:h,onBlur:y,onMouseEnter:p,onMouseLeave:x,onTouchStart:g}=r,w=v.useRef(null);v.useEffect(()=>{if(n==="render"&&m(!0),n==="viewport"){let E=R=>{R.forEach(_=>{m(_.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 l?n!=="intent"?[d,w,{}]:[d,w,{onFocus:qo(h,N),onBlur:qo(y,T),onMouseEnter:qo(p,N),onMouseLeave:qo(x,T),onTouchStart:qo(g,N)}]:[!1,w,{}]}function qo(n,r){return l=>{n&&n(l),l.defaultPrevented||r(l)}}function pE({page:n,...r}){let{router:l}=Vy(),i=v.useMemo(()=>Ry(l.routes,n,l.basename),[l.routes,n,l.basename]);return i?v.createElement(vE,{page:n,matches:i,...r}):null}function gE(n){let{manifest:r,routeModules:l}=Yy(),[i,c]=v.useState([]);return v.useEffect(()=>{let d=!1;return sE(n,r,l).then(m=>{d||c(m)}),()=>{d=!0}},[n,r,l]),i}function vE({page:n,matches:r,...l}){let i=Wn(),{future:c,manifest:d,routeModules:m}=Yy(),{basename:h}=Vy(),{loaderData:y,matches:p}=mE(),x=v.useMemo(()=>Nv(n,r,p,d,i,"data"),[n,r,p,d,i]),g=v.useMemo(()=>Nv(n,r,p,d,i,"assets"),[n,r,p,d,i]),w=v.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,C=!1;if(r.forEach(_=>{var z;let O=d.routes[_.route.id];!O||!O.hasLoader||(!x.some(B=>B.route.id===_.route.id)&&_.route.id in y&&((z=m[_.route.id])!=null&&z.shouldRevalidate)||O.hasClientLoader?C=!0:E.add(_.route.id))}),E.size===0)return[];let R=lE(n,h,c.unstable_trailingSlashAwareDataRequests,"data");return C&&E.size>0&&R.searchParams.set("_routes",r.filter(_=>E.has(_.route.id)).map(_=>_.route.id).join(",")),[R.pathname+R.search]},[h,c.unstable_trailingSlashAwareDataRequests,y,i,d,x,r,n,m]),N=v.useMemo(()=>cE(g,d),[g,d]),T=gE(g);return v.createElement(v.Fragment,null,w.map(E=>v.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...l})),N.map(E=>v.createElement("link",{key:E,rel:"modulepreload",href:E,...l})),T.map(({key:E,link:C})=>v.createElement("link",{key:E,nonce:l.nonce,...C,crossOrigin:C.crossOrigin??l.crossOrigin})))}function yE(...n){return r=>{n.forEach(l=>{typeof l=="function"?l(r):l!=null&&(l.current=r)})}}var bE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{bE&&(window.__reactRouterVersion="7.13.2")}catch{}function xE({basename:n,children:r,unstable_useTransitions:l,window:i}){let c=v.useRef();c.current==null&&(c.current=Jw({window:i,v5Compat:!0}));let d=c.current,[m,h]=v.useState({action:d.action,location:d.location}),y=v.useCallback(p=>{l===!1?h(p):v.startTransition(()=>h(p))},[l]);return v.useLayoutEffect(()=>d.listen(y),[d,y]),v.createElement(Q2,{basename:n,children:r,location:m.location,navigationType:m.action,navigator:d,unstable_useTransitions:l})}var Py=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gy=v.forwardRef(function({onClick:r,discover:l="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:R,unstable_useTransitions:_}=v.useContext(cn),O=typeof x=="string"&&Py.test(x),z=My(x,C);x=z.to;let B=O2(x,{relative:c}),P=Wn(),q=null;if(h){let oe=rc(h,[],P.unstable_mask?P.unstable_mask.pathname:"/",!0);C!=="/"&&(oe.pathname=oe.pathname==="/"?C:Fn([C,oe.pathname])),q=R.createHref(oe)}let[$,ne,re]=hE(i,T),fe=EE(x,{replace:m,unstable_mask:h,state:y,target:p,preventScrollReset:g,relative:c,viewTransition:w,unstable_defaultShouldRevalidate:N,unstable_useTransitions:_});function me(oe){r&&r(oe),oe.defaultPrevented||fe(oe)}let ie=!(z.isExternal||d),ue=v.createElement("a",{...T,...re,href:(ie?q:void 0)||z.absoluteURL||B,onClick:ie?me:r,ref:yE(E,ne),target:p,"data-discover":!O&&l==="render"?"true":void 0});return $&&!O?v.createElement(v.Fragment,null,ue,v.createElement(pE,{page:B})):ue});Gy.displayName="Link";var cf=v.forwardRef(function({"aria-current":r="page",caseSensitive:l=!1,className:i="",end:c=!1,style:d,to:m,viewTransition:h,children:y,...p},x){let g=ni(m,{relative:p.relative}),w=Wn(),N=v.useContext(lc),{navigator:T,basename:E}=v.useContext(cn),C=N!=null&&AE(g)&&h===!0,R=T.encodeLocation?T.encodeLocation(g).pathname:g.pathname,_=w.pathname,O=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;l||(_=_.toLowerCase(),O=O?O.toLowerCase():null,R=R.toLowerCase()),O&&E&&(O=xa(O,E)||O);const z=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let B=_===R||!c&&_.startsWith(R)&&_.charAt(z)==="/",P=O!=null&&(O===R||!c&&O.startsWith(R)&&O.charAt(R.length)==="/"),q={isActive:B,isPending:P,isTransitioning:C},$=B?r:void 0,ne;typeof i=="function"?ne=i(q):ne=[i,B?"active":null,P?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let re=typeof d=="function"?d(q):d;return v.createElement(Gy,{...p,"aria-current":$,className:ne,ref:x,style:re,to:m,viewTransition:h},typeof y=="function"?y(q):y)});cf.displayName="NavLink";var SE=v.forwardRef(({discover:n="render",fetcherKey:r,navigate:l,reloadDocument:i,replace:c,state:d,method:m=_s,action:h,onSubmit:y,relative:p,preventScrollReset:x,viewTransition:g,unstable_defaultShouldRevalidate:w,...N},T)=>{let{unstable_useTransitions:E}=v.useContext(cn),C=CE(),R=RE(h,{relative:p}),_=m.toLowerCase()==="get"?"get":"post",O=typeof h=="string"&&Py.test(h),z=B=>{if(y&&y(B),B.defaultPrevented)return;B.preventDefault();let P=B.nativeEvent.submitter,q=(P==null?void 0:P.getAttribute("formmethod"))||m,$=()=>C(P||B.currentTarget,{fetcherKey:r,method:q,navigate:l,replace:c,state:d,relative:p,preventScrollReset:x,viewTransition:g,unstable_defaultShouldRevalidate:w});E&&l!==!1?v.startTransition(()=>$()):$()};return v.createElement("form",{ref:T,method:_,action:R,onSubmit:i?y:z,...N,"data-discover":!O&&n==="render"?"true":void 0})});SE.displayName="Form";function wE(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Iy(n){let r=v.useContext(ql);return ot(r,wE(n)),r}function EE(n,{target:r,replace:l,unstable_mask:i,state:c,preventScrollReset:d,relative:m,viewTransition:h,unstable_defaultShouldRevalidate:y,unstable_useTransitions:p}={}){let x=Uy(),g=Wn(),w=ni(n,{relative:m});return v.useCallback(N=>{if(tE(N,r)){N.preventDefault();let T=l!==void 0?l:Fo(g)===Fo(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,l,i,c,r,n,d,m,h,y,p])}var NE=0,TE=()=>`__${String(++NE)}__`;function CE(){let{router:n}=Iy("useSubmit"),{basename:r}=v.useContext(cn),l=P2(),i=n.fetch,c=n.navigate;return v.useCallback(async(d,m={})=>{let{action:h,method:y,encType:p,formData:x,body:g}=rE(d,r);if(m.navigate===!1){let w=m.fetcherKey||TE();await i(w,l,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:l,flushSync:m.flushSync,viewTransition:m.viewTransition})},[i,c,r,l])}function RE(n,{relative:r}={}){let{basename:l}=v.useContext(cn),i=v.useContext(Sn);ot(i,"useFormAction must be used inside a RouteContext");let[c]=i.matches.slice(-1),d={...ni(n||".",{relative:r})},m=Wn();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"),l!=="/"&&(d.pathname=d.pathname==="/"?l:Fn([l,d.pathname])),Fo(d)}function AE(n,{relative:r}={}){let l=v.useContext(ky);ot(l!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=Iy("useViewTransitionState"),c=ni(n,{relative:r});if(!l.isTransitioning)return!1;let d=xa(l.currentLocation.pathname,i)||l.currentLocation.pathname,m=xa(l.nextLocation.pathname,i)||l.nextLocation.pathname;return Us(c.pathname,m)!=null||Us(c.pathname,d)!=null}var ai=Ty();const Xy=Ny(ai),jE="/api",Tv="X-Tunnel-Authorization";function _E(n){const r=n.toLowerCase().replace(/\.$/,"");return r==="devtunnels.ms"||r.endsWith(".devtunnels.ms")}function ME(){var r,l;return typeof window>"u"||!_E(window.location.hostname)?void 0:((l=(r=window.__MESHY_RUNTIME_CONFIG__)==null?void 0:r.dashboardTunnelAuthorization)==null?void 0:l.trim())||void 0}function OE(n){const r=new Headers(n==null?void 0:n.headers);(n==null?void 0:n.body)!==void 0&&n.body!==null&&!r.has("Content-Type")&&r.set("Content-Type","application/json");const i=ME();return i&&!r.has(Tv)&&r.set(Tv,i),r}function kE(n,r){if(typeof n=="string"&&n)return n;if(n&&typeof n=="object"){const l=n,i=typeof l.error=="object"&&l.error!==null?l.error:void 0;if(typeof l.error=="string"&&l.error)return l.error;if(typeof(i==null?void 0:i.message)=="string"&&i.message)return i.message;if(typeof l.message=="string"&&l.message)return l.message}return r}async function Ee(n,r){const l=await fetch(`${jE}${n}`,{...r,headers:OE(r)});if(!l.ok){const i=await l.json().catch(()=>l.statusText);throw new Error(kE(i,`HTTP ${l.status}`))}return l.json()}function Yl(n,r){return Ee(n,{...r,cache:"no-store"})}function DE(){return Ee("/system/info")}function I_(n){return Ee("/system/transport",{method:"POST",body:JSON.stringify({type:n})})}function Ky(n){return Ee("/system/runtime/restart",{method:"POST",body:JSON.stringify(n)})}function zE(){return Ee("/system/runtime/stop",{method:"POST"})}function LE(){return Ee("/cluster/state")}function X_(){return Ee("/cluster/promote",{method:"POST"})}function K_(n){return Ee("/cluster/connect",{method:"POST",body:JSON.stringify(n)})}function Q_(){return Ee("/cluster/disconnect",{method:"POST"})}function UE(n){return Ee(`/node-operations/${n}`)}async function BE(n={}){const r=new URLSearchParams;n.nodeId&&r.set("nodeId",n.nodeId),n.status&&r.set("status",n.status),n.kind&&r.set("kind",n.kind);const l=r.toString();return(await Ee(`/node-operations${l?`?${l}`:""}`)).operations}function HE(n,r){return Ee(`/nodes/${n}/agents/${r}/upgrade`,{method:"POST"})}function $E(n,r){return Ee(`/nodes/${n}/runtime/restart`,{method:"POST",body:JSON.stringify(r)})}async function Z_(){return(await Ee("/devboxes")).devboxes}function F_(n,r){return Ee(`/nodes/${n}/devbox/configure`,{method:"POST",body:JSON.stringify({devbox:r})})}function J_(n){return Ee(`/nodes/${n}/devbox/status`)}function W_(n){return Ee(`/nodes/${n}/devbox/start`,{method:"POST"})}function eM(n,r){return Ee(`/nodes/${n}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:r})})}function tM(n,r={}){const l=new URLSearchParams;r.path&&l.set("path",r.path),r.limit!==void 0&&l.set("limit",String(Math.min(Math.max(1,r.limit),100))),r.offset!==void 0&&l.set("offset",String(Math.max(0,r.offset))),r.directoriesOnly!==void 0&&l.set("directoriesOnly",String(r.directoriesOnly)),r.allowAbsolute!==void 0&&l.set("allowAbsolute",String(r.allowAbsolute));const i=l.toString();return Ee(`/nodes/${n}/workdir/tree${i?`?${i}`:""}`)}function nM(n,r={}){const l=new URLSearchParams;r.path&&l.set("path",r.path),r.limit!==void 0&&l.set("limit",String(Math.min(Math.max(1,r.limit),20))),r.offset!==void 0&&l.set("offset",String(Math.max(0,r.offset))),r.allowAbsolute!==void 0&&l.set("allowAbsolute",String(r.allowAbsolute));const i=l.toString();return Ee(`/nodes/${n}/workdir/branch${i?`?${i}`:""}`)}function aM(n,r){const l=new URLSearchParams;return l.set("agent",r.agent),l.set("limit",String(Math.min(Math.max(1,r.limit),100))),Ee(`/nodes/${n}/native-sessions?${l.toString()}`)}function rM(n,r){return Ee(`/nodes/${n}/workdir/branch`,{method:"POST",body:JSON.stringify({path:r.path,branchName:r.branchName,startPoint:r.startPoint,limit:r.limit,offset:r.offset,allowAbsolute:r.allowAbsolute})})}function lM(n,r){return Ee(`/nodes/${n}/terminal/sessions`,{method:"POST",body:JSON.stringify(r)})}function oM(n){return Ee(`/nodes/${n}/terminal/sessions`)}function iM(n,r){return Ee(`/nodes/${n}/terminal/sessions/${r}`)}function sM(n,r){return Ee(`/nodes/${n}/terminal/sessions/${r}/stop`,{method:"POST"})}function Lf(n,r){n.set("scope",r.kind),r.kind==="project"&&n.set("projectPath",r.projectPath)}function cM(n,r){var i;const l=new URLSearchParams;return Lf(l,r.scope),(i=r.agents)!=null&&i.length&&l.set("agents",r.agents.join(",")),Ee(`/nodes/${encodeURIComponent(n)}/capabilities?${l.toString()}`)}function uM(n,r,l){const i=new URLSearchParams;l&&Lf(i,l);const c=i.toString();return Ee(`/nodes/${encodeURIComponent(n)}/capabilities/${encodeURIComponent(r)}${c?`?${c}`:""}`)}function dM(n,r,l){const i=new URLSearchParams;l&&Lf(i,l);const c=i.toString();return Ee(`/nodes/${encodeURIComponent(n)}/capabilities/${encodeURIComponent(r)}${c?`?${c}`:""}`,{method:"DELETE"})}function fM(n){return Ee("/capabilities/conflict-check",{method:"POST",body:JSON.stringify(n)})}function mM(n){return Ee("/capabilities/share",{method:"POST",body:JSON.stringify(n)})}async function hM(n){const r=new URLSearchParams;if(n!=null&&n.status&&r.set("status",n.status),n!=null&&n.assignedTo&&r.set("assignedTo",n.assignedTo),n!=null&&n.priority&&r.set("priority",n.priority),n!=null&&n.limit){const i=Math.min(Math.max(1,n.limit),100);r.set("limit",String(i))}if(n!=null&&n.offset&&r.set("offset",String(n.offset)),n!=null&&n.projectPath&&r.set("projectPath",n.projectPath),n!=null&&n.cursor&&r.set("cursor",n.cursor),(n==null?void 0:n.completedLimitPerProject)!==void 0){const i=Math.min(Math.max(1,n.completedLimitPerProject),100);r.set("completedLimitPerProject",String(i))}const l=r.toString();return Ee(`/tasks${l?`?${l}`:""}`)}function pM(n){return Ee(`/tasks/${n}`)}function gM(n){return Ee("/tasks",{method:"POST",body:JSON.stringify(n)})}function vM(n){return Ee("/tasks/import-session",{method:"POST",body:JSON.stringify(n)})}function yM(n){return Ee("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:n})})}function bM(n){return Ee("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:n})})}function xM(n){return Ee(`/tasks/${n}/cancel`,{method:"POST"})}function SM(n){return Ee(`/tasks/${n}/retry`,{method:"POST"})}function wM(n,r){return Ee(`/tasks/${n}/logs`)}function EM(n,r){return Ee(`/tasks/${n}/message`,{method:"POST",body:JSON.stringify({content:r})})}function NM(n,r){return Ee(`/tasks/${n}/queued-messages/${encodeURIComponent(r)}`,{method:"DELETE"})}function TM(n,r){return Ee(`/tasks/${n}/share`,{method:"POST",body:JSON.stringify(r)})}function CM(n){return Ee(`/tasks/${n}/share`,{method:"DELETE"})}function RM(n){return Yl(`/shared/conversations/${encodeURIComponent(n)}`)}function AM(n,r){return Yl(`/shared/conversations/${encodeURIComponent(n)}/logs`)}function jM(n){return Yl(`/shared/conversations/${encodeURIComponent(n)}/output`)}function _M(n,r="."){return Yl(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(r)}`)}function MM(n,r){return Yl(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(r)}`)}function OM(n,r){return Yl(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(r?{path:r}:{})})}function Qy(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}function kM(n){return Ee(`/tasks/${n}/output`)}function DM(n,r="."){return Ee(`/tasks/${n}/output/tree?path=${encodeURIComponent(r)}`)}function zM(n,r){return Ee(`/tasks/${n}/output/content?path=${encodeURIComponent(r)}`)}function LM(n,r){return Ee(`/tasks/${n}/output/preview-sessions`,{method:"POST",body:JSON.stringify(Qy(r))})}function UM(n,r){return Ee(`/nodes/${n}/preview-sessions`,{method:"POST",body:JSON.stringify(Qy(r))})}function BM(n){return Ee(`/tasks/${n}/output/diff`)}function qE({hasStarted:n,enabled:r}){return r&&!n}function VE(n,r,l=!0){const i=v.useRef(n),c=v.useRef(!1);v.useEffect(()=>{i.current=n},[n]),v.useEffect(()=>{if(!l)return;const d=()=>i.current();qE({hasStarted:c.current,enabled:l})&&(c.current=!0,d());const m=setInterval(d,r);return()=>clearInterval(m)},[r,l])}function YE(n){return n?n.replace(/\/+$/,""):""}function PE(n){const r=n??"/api";return r?r.startsWith("/")?r.replace(/\/+$/,""):`/${r.replace(/\/+$/,"")}`:""}function Cv(...n){const r=new Headers;for(const l of n){if(!l)continue;new Headers(l).forEach((c,d)=>r.set(d,c))}return r}var GE=class extends Error{constructor(r,l){super(r);st(this,"status");st(this,"statusText");st(this,"code");st(this,"details");st(this,"body");this.name="MeshyApiError",this.status=l.status,this.statusText=l.statusText,this.code=l.code,this.details=l.details,this.body=l.body}};function IE(n,r){if(typeof n=="string"&&n)return{message:n};if(n&&typeof n=="object"){const l=n,i=typeof l.error=="object"&&l.error!==null?l.error:void 0;if(typeof l.error=="string"&&l.error)return{message:l.error};if(typeof(i==null?void 0:i.message)=="string"&&i.message)return{message:i.message,code:i.code,details:i.details};if(typeof l.message=="string"&&l.message)return{message:l.message}}return{message:r}}function Vo(n,r){const l=r.toString();return l?`${n}?${l}`:n}function ln(n,r,l){l!==void 0&&n.set(r,String(l))}function Rv(n){return n===null||Array.isArray(n)||typeof n=="object"&&n!==null&&!(n instanceof ArrayBuffer)}function XE(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}var KE=class{constructor(n={}){st(this,"baseUrl");st(this,"apiPrefix");st(this,"defaultHeaders");st(this,"credentials");st(this,"fetchImpl");st(this,"config");const r=n.fetchImpl??((l,i)=>globalThis.fetch(l,i));if(!r)throw new Error("MeshyClient requires a fetch implementation");this.fetchImpl=r,this.baseUrl=YE(n.baseUrl),this.apiPrefix=PE(n.apiPrefix),this.defaultHeaders=Cv(n.defaultHeaders),this.credentials=n.credentials,this.config=n}buildApiUrl(n){const r=n.startsWith("/")?n:`/${n}`;return`${this.baseUrl}${this.apiPrefix}${r}`}buildApiurl(n){return this.buildApiUrl(n)}async request(n,r={}){var x,g,w,N;const l=r.timeoutMs??this.config.timeoutMs,i=l?new AbortController:null;let c=null;i&&(c=setTimeout(()=>i.abort(),l));const d=await((g=(x=this.config).tokenProvider)==null?void 0:g.call(x)),m=await((N=(w=this.config).headersProvider)==null?void 0:N.call(w)),h=r.credentials??this.config.credentials,y=Cv({Accept:"application/json"},Rv(r.body)?{"Content-Type":"application/json"}:void 0,this.config.defaultHeaders,m,d?{Authorization:`Bearer ${d}`}:void 0,r.headers),p=Rv(r.body)?JSON.stringify(r.body):r.body;try{const T=await this.fetchImpl(this.buildApiUrl(n),{...r,headers:y,body:p,credentials:h,signal:r.signal??(i==null?void 0:i.signal)});if(!T.ok){const E=await T.json().catch(()=>T.statusText),C=IE(E,`HTTP ${T.status}`);throw new GE(C.message,{status:T.status,statusText:T.statusText,code:C.code,details:C.details,body:E})}return T.status===204?void 0:await T.json()}finally{c&&clearTimeout(c)}}getSystemInfo(){return this.request("/system/info")}getSystemMetrics(){return this.request("/system/metrics")}switchTransport(n){return this.request("/system/transport",{method:"POST",body:{type:n}})}restartRuntime(n){return this.request("/system/runtime/restart",{method:"POST",body:n})}stopRuntime(){return this.request("/system/runtime/stop",{method:"POST"})}getClusterState(){return this.request("/cluster/state")}promoteToLeader(){return this.request("/cluster/promote",{method:"POST"})}joinCluster(n){return this.request("/cluster/join",{method:"POST",body:n})}connectToCluster(n){return this.request("/cluster/connect",{method:"POST",body:n})}disconnectFromCluster(){return this.request("/cluster/disconnect",{method:"POST"})}async getNodes(n={}){const r=new URLSearchParams;return ln(r,"status",n.status),ln(r,"capability",n.capability),(await this.request(Vo("/nodes",r))).nodes}getNode(n){return this.request(`/nodes/${encodeURIComponent(n)}`)}getNodeStatus(n){return this.request(`/nodes/${encodeURIComponent(n)}/status`)}removeNode(n){return this.request(`/nodes/${encodeURIComponent(n)}`,{method:"DELETE"})}leaveCluster(n){return this.request("/cluster/leave",{method:"POST",body:{nodeId:n}})}updateNode(n,r){return this.request(`/nodes/${encodeURIComponent(n)}`,{method:"PATCH",body:r})}toggleNodeDevTunnel(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/devtunnel`,{method:"POST",body:{enabled:r}})}getNodeOperation(n){return this.request(`/node-operations/${encodeURIComponent(n)}`)}async listNodeOperations(n={}){const r=new URLSearchParams;return ln(r,"nodeId",n.nodeId),ln(r,"status",n.status),ln(r,"kind",n.kind),(await this.request(Vo("/node-operations",r))).operations}upgradeNodeAgent(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/agents/${r}/upgrade`,{method:"POST"})}restartNodeRuntime(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/runtime/restart`,{method:"POST",body:r})}getNodeWorkDirTree(n,r={}){const l=new URLSearchParams;return ln(l,"path",r.path),r.limit!==void 0&&l.set("limit",String(Math.min(Math.max(1,r.limit),100))),r.offset!==void 0&&l.set("offset",String(Math.max(0,r.offset))),ln(l,"directoriesOnly",r.directoriesOnly),ln(l,"allowAbsolute",r.allowAbsolute),this.request(Vo(`/nodes/${encodeURIComponent(n)}/workdir/tree`,l))}getNodeWorkDirBranchInfo(n,r={}){const l=new URLSearchParams;return ln(l,"path",r.path),r.limit!==void 0&&l.set("limit",String(Math.min(Math.max(1,r.limit),20))),r.offset!==void 0&&l.set("offset",String(Math.max(0,r.offset))),ln(l,"allowAbsolute",r.allowAbsolute),this.request(Vo(`/nodes/${encodeURIComponent(n)}/workdir/branch`,l))}createNodeWorkDirBranch(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/workdir/branch`,{method:"POST",body:r})}getNodeNativeSessions(n,r){const l=new URLSearchParams;return l.set("agent",r.agent),r.limit!==void 0&&l.set("limit",String(Math.min(Math.max(1,r.limit),100))),this.request(`/nodes/${encodeURIComponent(n)}/native-sessions?${l.toString()}`)}startNodeTerminalSession(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/terminal/sessions`,{method:"POST",body:r})}listNodeTerminalSessions(n){return this.request(`/nodes/${encodeURIComponent(n)}/terminal/sessions`)}getNodeTerminalSession(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/terminal/sessions/${encodeURIComponent(r)}`)}stopNodeTerminalSession(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/terminal/sessions/${encodeURIComponent(r)}/stop`,{method:"POST"})}async getTasks(n={}){const r=new URLSearchParams;return ln(r,"status",n.status),ln(r,"assignedTo",n.assignedTo),ln(r,"priority",n.priority),n.limit&&r.set("limit",String(Math.min(Math.max(1,n.limit),100))),n.offset&&r.set("offset",String(n.offset)),(await this.request(Vo("/tasks",r))).tasks}getTask(n){return this.request(`/tasks/${encodeURIComponent(n)}`)}createTask(n){return this.request("/tasks",{method:"POST",body:n})}attachNativeSession(n){return this.request("/tasks/import-session",{method:"POST",body:n})}deleteTask(n){return this.request(`/tasks/${encodeURIComponent(n)}`,{method:"DELETE"})}batchDeleteTasks(n){return this.request("/tasks/batch/delete",{method:"POST",body:{ids:n}})}batchArchiveTasks(n){return this.request("/tasks/batch/archive",{method:"POST",body:{ids:n}})}archiveTask(n){return this.request(`/tasks/${encodeURIComponent(n)}`,{method:"PATCH",body:{status:"archived"}})}cancelTask(n){return this.request(`/tasks/${encodeURIComponent(n)}/cancel`,{method:"POST"})}retryTask(n){return this.request(`/tasks/${encodeURIComponent(n)}/retry`,{method:"POST"})}assignTask(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/assign`,{method:"POST",body:{nodeId:r}})}getTaskLogs(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/logs${r!==void 0?`?after=${r}`:""}`)}sendTaskMessage(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/message`,{method:"POST",body:{content:r}})}createTaskShare(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/share`,{method:"POST",body:r})}deleteTaskShare(n){return this.request(`/tasks/${encodeURIComponent(n)}/share`,{method:"DELETE"})}getSharedConversation(n){return this.request(`/shared/conversations/${encodeURIComponent(n)}`)}getSharedConversationLogs(n,r){return this.request(`/shared/conversations/${encodeURIComponent(n)}/logs${r!==void 0?`?after=${r}`:""}`)}getSharedTaskOutput(n){return this.request(`/shared/conversations/${encodeURIComponent(n)}/output`)}getSharedTaskOutputTree(n,r="."){return this.request(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(r)}`)}getSharedTaskOutputContent(n,r){return this.request(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(r)}`)}createSharedTaskPreviewSession(n,r){return this.request(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:r?{path:r}:{}})}getTaskOutput(n){return this.request(`/tasks/${encodeURIComponent(n)}/output`)}getTaskOutputTree(n,r="."){return this.request(`/tasks/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(r)}`)}getTaskOutputContent(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(r)}`)}createTaskPreviewSession(n,r){return this.request(`/tasks/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:XE(r)})}getTaskOutputDiff(n){return this.request(`/tasks/${encodeURIComponent(n)}/output/diff`)}},QE=new KE,ZE=["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"],FE=0,JE=class{constructor(n){st(this,"client");st(this,"eventTypes");st(this,"eventSourceFactory");st(this,"pollIntervalMs");st(this,"poll");st(this,"eventSource",null);st(this,"pollTimer",null);st(this,"listeners",new Map);st(this,"connectionListeners",new Map);st(this,"listenerId",0);st(this,"connected",!1);this.client=n.client,this.eventTypes=n.eventTypes??ZE,this.eventSourceFactory=n.eventSourceFactory??(WE(n.client)?void 0:tN()),this.pollIntervalMs=n.pollIntervalMs??1e4,this.poll=n.poll}start(){if(!(this.eventSource||this.pollTimer)){if(this.eventSourceFactory){const n=new this.eventSourceFactory(eN(this.client,"/events"),this.client.credentials==="include"?{withCredentials:!0}:void 0);this.eventSource=n,n.onopen=()=>this.setConnected(!0),n.onerror=()=>{this.setConnected(!1),this.startPolling()};for(const r of this.eventTypes)n.addEventListener(r,l=>this.emit({id:String(++FE),type:r,data:JSON.parse(l.data),timestamp:Date.now()}));return}this.startPolling()}}stop(){var n;(n=this.eventSource)==null||n.close(),this.eventSource=null,this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null),this.setConnected(!1)}subscribe(n,r){const l=++this.listenerId;return this.listeners.set(l,{pattern:n,callback:r}),()=>this.listeners.delete(l)}onConnectionChange(n){const r=++this.listenerId;return this.connectionListeners.set(r,n),n(this.connected),()=>this.connectionListeners.delete(r)}isConnected(){return this.connected}emit(n){for(const{pattern:r,callback:l}of this.listeners.values())n.type.startsWith(r)&&l(n)}setConnected(n){if(this.connected!==n){this.connected=n;for(const r of this.connectionListeners.values())r(n)}}startPolling(){!this.poll||this.pollTimer||(this.pollTimer=setInterval(()=>{var n;(n=this.poll)==null||n.call(this).then(()=>this.setConnected(!0)).catch(()=>{this.setConnected(!1)})},this.pollIntervalMs))}};function WE(n){return n.defaultHeaders.has("x-tunnel-authorization")}function eN(n,r){const l=n.buildApiUrl??n.buildApiurl;if(!l)throw new Error("MeshyClient is missing buildApiUrl");return l.call(n,r)}function tN(){return globalThis.EventSource}function nN(n=50){const[r,l]=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 JE({client:QE});d.current=x;const g=x.subscribe("",N=>{const T=N;l(E=>[T,...E].slice(0,n));for(const[,{pattern:E,callback:C}]of h.current)T.type.startsWith(E)&&C(T)}),w=x.onConnectionChange(c);return x.start(),()=>{g(),w(),x.stop(),d.current=null}},[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(()=>l([]),[]);return{events:r,connected:i,subscribe:y,clearEvents:p}}const aN=1e4,rN=6e4,lN=aN,oN=250,iN=new Set(["node.joined","node.left","task.created","task.assigned","task.deleted"]),sN=new Set(["task.created","task.assigned","task.status","task.deleted"]);function cN(n){return n?rN:lN}function HM(n){return iN.has(n)}function uN(n){return sN.has(n)}function dN(n,r){if(!r)return!0;const l=n.leaderId,i=n.term,c=n.nodeCount;return typeof l!="string"&&l!==null||typeof i!="number"||typeof c!="number"?!0:r.leaderId!==l||r.term!==i||r.nodeCount!==c}function fN(n,r,l){if(n==="node.joined"||n==="node.left"||n!=="node.status")return!0;const i=r.nodeId,c=r.status;return typeof i!="string"||typeof c!="string"?!0:l.get(i)!==c}function $M(n,r){const l=r.taskId,i=r.status;if(typeof l!="string"||typeof i!="string")return n;let c=!1;const d=n.map(m=>{if(m.id!==l)return m;c=!0;const h="result"in r?r.result:i==="completed"?null:m.result,y="error"in r?r.error:i==="completed"?null:m.error;return{...m,status:i,result:h,error:y}});return c?d:n}function qM(n,r){const l=r.taskId;if(typeof l!="string")return n;const i=n.filter(c=>c.id!==l);return i.length===n.length?n:i}const Zy=v.createContext(null);function mN({children:n}){const[r,l]=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}=nN(),E=v.useCallback(async()=>{var R;try{const[_,O]=await Promise.all([LE(),DE()]),z=_,B=O.nodeId??O.id,P=z.nodes??[],q=P.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?P.find(re=>re.id===z.leaderId)??null:null,ne={leader:$?{id:$.id,name:$.name,endpoint:$.endpoint,...$.dashboardOrigin?{dashboardOrigin:$.dashboardOrigin}:{}}:null,term:z.term??0,nodes:P,self:q,taskSummary:z.taskSummary??{total:0,pending:0,running:0,completed:0,failed:0}};x.current={leaderId:((R=ne.leader)==null?void 0:R.id)??null,term:ne.term,nodeCount:ne.nodes.length},g.current=new Map(ne.nodes.map(re=>[re.id,re.status])),g.current.set(ne.self.id,ne.self.status),l(ne),c(O),y(null)}catch(_){y(_ instanceof Error?_.message:"Failed to fetch cluster state")}finally{m(!1)}},[]),C=v.useCallback(()=>{p.current===null&&(p.current=window.setTimeout(()=>{p.current=null,E()},oN))},[E]);return VE(E,cN(N)),v.useEffect(()=>()=>{p.current!==null&&(window.clearTimeout(p.current),p.current=null)},[]),v.useEffect(()=>{const R=[T("cluster",_=>{dN(_.data,x.current)&&C()}),T("election",C),T("node",_=>{fN(_.type,_.data,g.current)&&C()}),T("transport",C),T("task",_=>{uN(_.type)&&C()})];return()=>R.forEach(_=>_())},[T,C]),f.jsx(Zy.Provider,{value:{cluster:r,systemInfo:i,events:w,sseConnected:N,subscribe:T,refresh:E,loading:d,error:h},children:n})}function Fy(){const n=v.useContext(Zy);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 Jy=(...n)=>n.filter((r,l,i)=>!!r&&r.trim()!==""&&i.indexOf(r)===l).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 hN=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 pN=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,l,i)=>i?i.toUpperCase():l.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 Av=n=>{const r=pN(n);return r.charAt(0).toUpperCase()+r.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 $d={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 gN=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},vN=v.createContext({}),yN=()=>v.useContext(vN),bN=v.forwardRef(({color:n,size:r,strokeWidth:l,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=""}=yN()??{},T=i??g?Number(l??x)*24/Number(r??p):l??x;return v.createElement("svg",{ref:y,...$d,width:r??p??$d.width,height:r??p??$d.height,stroke:n??w,strokeWidth:T,className:Jy("lucide",N,c),...!d&&!gN(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,r)=>{const l=v.forwardRef(({className:i,...c},d)=>v.createElement(bN,{ref:d,iconNode:r,className:Jy(`lucide-${hN(Av(n))}`,`lucide-${n}`,i),...c}));return l.displayName=Av(n),l};/**
|
|
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 xN=[["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"}]],Bs=Be("activity",xN);/**
|
|
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 SN=[["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"}]],wN=Be("book-open",SN);/**
|
|
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 EN=[["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"}]],Wy=Be("bot",EN);/**
|
|
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 NN=[["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"}]],TN=Be("cable",NN);/**
|
|
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 CN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Hs=Be("check",CN);/**
|
|
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 RN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Jo=Be("chevron-down",RN);/**
|
|
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 AN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],uf=Be("chevron-right",AN);/**
|
|
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 jN=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],_N=Be("chevron-up",jN);/**
|
|
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 MN=[["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"}]],bs=Be("circle-alert",MN);/**
|
|
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 ON=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Xo=Be("circle-check",ON);/**
|
|
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 kN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],jv=Be("circle-dot",kN);/**
|
|
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 DN=[["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"}]],zN=Be("circle-x",DN);/**
|
|
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 LN=[["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"}]],UN=Be("copy",LN);/**
|
|
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 BN=[["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"}]],HN=Be("cpu",BN);/**
|
|
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 $N=[["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"}]],qN=Be("external-link",$N);/**
|
|
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 VN=[["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"}]],YN=Be("folder-tree",VN);/**
|
|
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 PN=[["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"}]],GN=Be("folder",PN);/**
|
|
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 IN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],XN=Be("info",IN);/**
|
|
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 KN=[["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"}]],QN=Be("monitor-cog",KN);/**
|
|
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 ZN=[["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"}]],e0=Be("monitor",ZN);/**
|
|
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 FN=[["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"}]],t0=Be("moon",FN);/**
|
|
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 JN=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],WN=Be("power",JN);/**
|
|
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 eT=[["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"}]],tT=Be("radio",eT);/**
|
|
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 nT=[["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"}]],df=Be("refresh-cw",nT);/**
|
|
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 aT=[["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"}]],_v=Be("rocket",aT);/**
|
|
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 rT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],lT=Be("search",rT);/**
|
|
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 oT=[["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"}]],n0=Be("server",oT);/**
|
|
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 iT=[["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"}]],sT=Be("settings",iT);/**
|
|
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 cT=[["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"}]],uT=Be("shield",cT);/**
|
|
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 dT=[["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"}]],fT=Be("sparkles",dT);/**
|
|
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 mT=[["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"}]],a0=Be("sun",mT);/**
|
|
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 hT=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],r0=Be("terminal",hT);/**
|
|
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 pT=[["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"}]],gT=Be("wifi-off",pT);/**
|
|
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 vT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],l0=Be("x",vT);function o0(n){var r,l,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(r=0;r<c;r++)n[r]&&(l=o0(n[r]))&&(i&&(i+=" "),i+=l)}else for(l in n)n[l]&&(i&&(i+=" "),i+=l);return i}function i0(){for(var n,r,l=0,i="",c=arguments.length;l<c;l++)(n=arguments[l])&&(r=o0(n))&&(i&&(i+=" "),i+=r);return i}const yT=(n,r)=>{const l=new Array(n.length+r.length);for(let i=0;i<n.length;i++)l[i]=n[i];for(let i=0;i<r.length;i++)l[n.length+i]=r[i];return l},bT=(n,r)=>({classGroupId:n,validator:r}),s0=(n=new Map,r=null,l)=>({nextPart:n,validators:r,classGroupId:l}),$s="-",Mv=[],xT="arbitrary..",ST=n=>{const r=ET(n),{conflictingClassGroups:l,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return wT(m);const h=m.split($s),y=h[0]===""&&h.length>1?1:0;return c0(h,y,r)},getConflictingClassGroupIds:(m,h)=>{if(h){const y=i[m],p=l[m];return y?p?yT(p,y):y:p||Mv}return l[m]||Mv}}},c0=(n,r,l)=>{if(n.length-r===0)return l.classGroupId;const c=n[r],d=l.nextPart.get(c);if(d){const p=c0(n,r+1,d);if(p)return p}const m=l.validators;if(m===null)return;const h=r===0?n.join($s):n.slice(r).join($s),y=m.length;for(let p=0;p<y;p++){const x=m[p];if(x.validator(h))return x.classGroupId}},wT=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=n.slice(1,-1),l=r.indexOf(":"),i=r.slice(0,l);return i?xT+i:void 0})(),ET=n=>{const{theme:r,classGroups:l}=n;return NT(l,r)},NT=(n,r)=>{const l=s0();for(const i in n){const c=n[i];Uf(c,l,i,r)}return l},Uf=(n,r,l,i)=>{const c=n.length;for(let d=0;d<c;d++){const m=n[d];TT(m,r,l,i)}},TT=(n,r,l,i)=>{if(typeof n=="string"){CT(n,r,l);return}if(typeof n=="function"){RT(n,r,l,i);return}AT(n,r,l,i)},CT=(n,r,l)=>{const i=n===""?r:u0(r,n);i.classGroupId=l},RT=(n,r,l,i)=>{if(jT(n)){Uf(n(i),r,l,i);return}r.validators===null&&(r.validators=[]),r.validators.push(bT(l,n))},AT=(n,r,l,i)=>{const c=Object.entries(n),d=c.length;for(let m=0;m<d;m++){const[h,y]=c[m];Uf(y,u0(r,h),l,i)}},u0=(n,r)=>{let l=n;const i=r.split($s),c=i.length;for(let d=0;d<c;d++){const m=i[d];let h=l.nextPart.get(m);h||(h=s0(),l.nextPart.set(m,h)),l=h}return l},jT=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,_T=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,l=Object.create(null),i=Object.create(null);const c=(d,m)=>{l[d]=m,r++,r>n&&(r=0,i=l,l=Object.create(null))};return{get(d){let m=l[d];if(m!==void 0)return m;if((m=i[d])!==void 0)return c(d,m),m},set(d,m){d in l?l[d]=m:c(d,m)}}},ff="!",Ov=":",MT=[],kv=(n,r,l,i,c)=>({modifiers:n,hasImportantModifier:r,baseClassName:l,maybePostfixModifierPosition:i,isExternal:c}),OT=n=>{const{prefix:r,experimentalParseClassName:l}=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===Ov){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(ff)?(w=g.slice(0,-1),N=!0):g.startsWith(ff)&&(w=g.slice(1),N=!0);const T=p&&p>y?p-y:void 0;return kv(d,N,w,T)};if(r){const c=r+Ov,d=i;i=m=>m.startsWith(c)?d(m.slice(c.length)):kv(MT,!1,m,void 0,!0)}if(l){const c=i;i=d=>l({className:d,parseClassName:c})}return i},kT=n=>{const r=new Map;return n.orderSensitiveModifiers.forEach((l,i)=>{r.set(l,1e6+i)}),l=>{const i=[];let c=[];for(let d=0;d<l.length;d++){const m=l[d],h=m[0]==="[",y=r.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}},DT=n=>({cache:_T(n.cacheSize),parseClassName:OT(n),sortModifiers:kT(n),...ST(n)}),zT=/\s+/,LT=(n,r)=>{const{parseClassName:l,getClassGroupId:i,getConflictingClassGroupIds:c,sortModifiers:d}=r,m=[],h=n.trim().split(zT);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}=l(x);if(g){y=x+(y.length>0?" "+y:y);continue}let C=!!E,R=i(C?T.substring(0,E):T);if(!R){if(!C){y=x+(y.length>0?" "+y:y);continue}if(R=i(T),!R){y=x+(y.length>0?" "+y:y);continue}C=!1}const _=w.length===0?"":w.length===1?w[0]:d(w).join(":"),O=N?_+ff:_,z=O+R;if(m.indexOf(z)>-1)continue;m.push(z);const B=c(R,C);for(let P=0;P<B.length;++P){const q=B[P];m.push(O+q)}y=x+(y.length>0?" "+y:y)}return y},UT=(...n)=>{let r=0,l,i,c="";for(;r<n.length;)(l=n[r++])&&(i=d0(l))&&(c&&(c+=" "),c+=i);return c},d0=n=>{if(typeof n=="string")return n;let r,l="";for(let i=0;i<n.length;i++)n[i]&&(r=d0(n[i]))&&(l&&(l+=" "),l+=r);return l},BT=(n,...r)=>{let l,i,c,d;const m=y=>{const p=r.reduce((x,g)=>g(x),n());return l=DT(p),i=l.cache.get,c=l.cache.set,d=h,h(y)},h=y=>{const p=i(y);if(p)return p;const x=LT(y,l);return c(y,x),x};return d=m,(...y)=>d(UT(...y))},HT=[],St=n=>{const r=l=>l[n]||HT;return r.isThemeGetter=!0,r},f0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,m0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$T=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,qT=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,VT=/\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$/,YT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,PT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,GT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Za=n=>$T.test(n),je=n=>!!n&&!Number.isNaN(Number(n)),Fa=n=>!!n&&Number.isInteger(Number(n)),qd=n=>n.endsWith("%")&&je(n.slice(0,-1)),ba=n=>qT.test(n),h0=()=>!0,IT=n=>VT.test(n)&&!YT.test(n),Bf=()=>!1,XT=n=>PT.test(n),KT=n=>GT.test(n),QT=n=>!pe(n)&&!ge(n),ZT=n=>rr(n,v0,Bf),pe=n=>f0.test(n),jr=n=>rr(n,y0,IT),Dv=n=>rr(n,rC,je),FT=n=>rr(n,x0,h0),JT=n=>rr(n,b0,Bf),zv=n=>rr(n,p0,Bf),WT=n=>rr(n,g0,KT),xs=n=>rr(n,S0,XT),ge=n=>m0.test(n),Yo=n=>Br(n,y0),eC=n=>Br(n,b0),Lv=n=>Br(n,p0),tC=n=>Br(n,v0),nC=n=>Br(n,g0),Ss=n=>Br(n,S0,!0),aC=n=>Br(n,x0,!0),rr=(n,r,l)=>{const i=f0.exec(n);return i?i[1]?r(i[1]):l(i[2]):!1},Br=(n,r,l=!1)=>{const i=m0.exec(n);return i?i[1]?r(i[1]):l:!1},p0=n=>n==="position"||n==="percentage",g0=n=>n==="image"||n==="url",v0=n=>n==="length"||n==="size"||n==="bg-size",y0=n=>n==="length",rC=n=>n==="number",b0=n=>n==="family-name",x0=n=>n==="number"||n==="weight",S0=n=>n==="shadow",lC=()=>{const n=St("color"),r=St("font"),l=St("text"),i=St("font-weight"),c=St("tracking"),d=St("leading"),m=St("breakpoint"),h=St("container"),y=St("spacing"),p=St("radius"),x=St("shadow"),g=St("inset-shadow"),w=St("text-shadow"),N=St("drop-shadow"),T=St("blur"),E=St("perspective"),C=St("aspect"),R=St("ease"),_=St("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],P=()=>["auto","hidden","clip","visible","scroll"],q=()=>["auto","contain","none"],$=()=>[ge,pe,y],ne=()=>[Za,"full","auto",...$()],re=()=>[Fa,"none","subgrid",ge,pe],fe=()=>["auto",{span:["full",Fa,ge,pe]},Fa,ge,pe],me=()=>[Fa,"auto",ge,pe],ie=()=>["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",...$()],V=()=>[Za,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...$()],Z=()=>[Za,"screen","full","dvw","lvw","svw","min","max","fit",...$()],de=()=>[Za,"screen","full","lh","dvh","lvh","svh","min","max","fit",...$()],F=()=>[n,ge,pe],A=()=>[...z(),Lv,zv,{position:[ge,pe]}],G=()=>["no-repeat",{repeat:["","x","y","space","round"]}],X=()=>["auto","cover","contain",tC,ZT,{size:[ge,pe]}],W=()=>[qd,Yo,jr],te=()=>["","none","full",p,ge,pe],se=()=>["",je,Yo,jr],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=()=>[je,qd,Lv,zv],ve=()=>["","none",T,ge,pe],be=()=>["none",je,ge,pe],Se=()=>["none",je,ge,pe],He=()=>[je,ge,pe],_e=()=>[Za,"full",...$()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ba],breakpoint:[ba],color:[h0],container:[ba],"drop-shadow":[ba],ease:["in","out","in-out"],font:[QT],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ba],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ba],shadow:[ba],spacing:["px",je],text:[ba],"text-shadow":[ba],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Za,pe,ge,C]}],container:["container"],columns:[{columns:[je,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:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:q()}],"overscroll-x":[{"overscroll-x":q()}],"overscroll-y":[{"overscroll-y":q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ne()}],"inset-x":[{"inset-x":ne()}],"inset-y":[{"inset-y":ne()}],start:[{"inset-s":ne(),start:ne()}],end:[{"inset-e":ne(),end:ne()}],"inset-bs":[{"inset-bs":ne()}],"inset-be":[{"inset-be":ne()}],top:[{top:ne()}],right:[{right:ne()}],bottom:[{bottom:ne()}],left:[{left:ne()}],visibility:["visible","invisible","collapse"],z:[{z:[Fa,"auto",ge,pe]}],basis:[{basis:[Za,"full","auto",h,...$()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[je,Za,"auto","initial","none",pe]}],grow:[{grow:["",je,ge,pe]}],shrink:[{shrink:["",je,ge,pe]}],order:[{order:[Fa,"first","last","none",ge,pe]}],"grid-cols":[{"grid-cols":re()}],"col-start-end":[{col:fe()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":re()}],"row-start-end":[{row:fe()}],"row-start":[{"row-start":me()}],"row-end":[{"row-end":me()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],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:V()}],"inline-size":[{inline:["auto",...Z()]}],"min-inline-size":[{"min-inline":["auto",...Z()]}],"max-inline-size":[{"max-inline":["none",...Z()]}],"block-size":[{block:["auto",...de()]}],"min-block-size":[{"min-block":["auto",...de()]}],"max-block-size":[{"max-block":["none",...de()]}],w:[{w:[h,"screen",...V()]}],"min-w":[{"min-w":[h,"screen","none",...V()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[m]},...V()]}],h:[{h:["screen","lh",...V()]}],"min-h":[{"min-h":["screen","lh","none",...V()]}],"max-h":[{"max-h":["screen","lh",...V()]}],"font-size":[{text:["base",l,Yo,jr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,aC,FT]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",qd,pe]}],"font-family":[{font:[eC,JT,r]}],"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":[je,"none",ge,Dv]}],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:[je,"from-font","auto",ge,jr]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[je,"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:A()}],"bg-repeat":[{bg:G()}],"bg-size":[{bg:X()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Fa,ge,pe],radial:["",ge,pe],conic:[Fa,ge,pe]},nC,WT]}],"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:se()}],"border-w-x":[{"border-x":se()}],"border-w-y":[{"border-y":se()}],"border-w-s":[{"border-s":se()}],"border-w-e":[{"border-e":se()}],"border-w-bs":[{"border-bs":se()}],"border-w-be":[{"border-be":se()}],"border-w-t":[{"border-t":se()}],"border-w-r":[{"border-r":se()}],"border-w-b":[{"border-b":se()}],"border-w-l":[{"border-l":se()}],"divide-x":[{"divide-x":se()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":se()}],"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":[je,ge,pe]}],"outline-w":[{outline:["",je,Yo,jr]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",x,Ss,xs]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",g,Ss,xs]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:se()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[je,jr]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":se()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",w,Ss,xs]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[je,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":[je]}],"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":[je]}],"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:A()}],"mask-repeat":[{mask:G()}],"mask-size":[{mask:X()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,pe]}],filter:[{filter:["","none",ge,pe]}],blur:[{blur:ve()}],brightness:[{brightness:[je,ge,pe]}],contrast:[{contrast:[je,ge,pe]}],"drop-shadow":[{"drop-shadow":["","none",N,Ss,xs]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",je,ge,pe]}],"hue-rotate":[{"hue-rotate":[je,ge,pe]}],invert:[{invert:["",je,ge,pe]}],saturate:[{saturate:[je,ge,pe]}],sepia:[{sepia:["",je,ge,pe]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,pe]}],"backdrop-blur":[{"backdrop-blur":ve()}],"backdrop-brightness":[{"backdrop-brightness":[je,ge,pe]}],"backdrop-contrast":[{"backdrop-contrast":[je,ge,pe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",je,ge,pe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[je,ge,pe]}],"backdrop-invert":[{"backdrop-invert":["",je,ge,pe]}],"backdrop-opacity":[{"backdrop-opacity":[je,ge,pe]}],"backdrop-saturate":[{"backdrop-saturate":[je,ge,pe]}],"backdrop-sepia":[{"backdrop-sepia":["",je,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:[je,"initial",ge,pe]}],ease:[{ease:["linear","initial",R,ge,pe]}],delay:[{delay:[je,ge,pe]}],animate:[{animate:["none",_,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:_e()}],"translate-x":[{"translate-x":_e()}],"translate-y":[{"translate-y":_e()}],"translate-z":[{"translate-z":_e()}],"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:[je,Yo,jr,Dv]}],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"]}},oC=BT(lC);function le(...n){return oC(i0(n))}function iC(n){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css",r.appendChild(l),l.styleSheet?l.styleSheet.cssText=n:l.appendChild(document.createTextNode(n))}const sC=n=>{switch(n){case"success":return dC;case"info":return mC;case"warning":return fC;case"error":return hC;default:return null}},cC=Array(12).fill(0),uC=({visible:n,className:r})=>ae.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":n},ae.createElement("div",{className:"sonner-spinner"},cC.map((l,i)=>ae.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),dC=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.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"})),fC=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ae.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"})),mC=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.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"})),hC=ae.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ae.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"})),pC=ae.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"},ae.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ae.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),gC=()=>{const[n,r]=ae.useState(document.hidden);return ae.useEffect(()=>{const l=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",l),()=>window.removeEventListener("visibilitychange",l)},[]),n};let mf=1;class vC{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{const l=this.subscribers.indexOf(r);this.subscribers.splice(l,1)}),this.publish=r=>{this.subscribers.forEach(l=>l(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var l;const{message:i,...c}=r,d=typeof(r==null?void 0:r.id)=="number"||((l=r.id)==null?void 0:l.length)>0?r.id:mf++,m=this.toasts.find(y=>y.id===d),h=r.dismissible===void 0?!0:r.dismissible;return this.dismissedToasts.has(d)&&this.dismissedToasts.delete(d),m?this.toasts=this.toasts.map(y=>y.id===d?(this.publish({...y,...r,id:d,title:i}),{...y,...r,id:d,dismissible:h,title:i}):y):this.addToast({title:i,...c,dismissible:h,id:d}),d},this.dismiss=r=>(r?(this.dismissedToasts.add(r),requestAnimationFrame(()=>this.subscribers.forEach(l=>l({id:r,dismiss:!0})))):this.toasts.forEach(l=>{this.subscribers.forEach(i=>i({id:l.id,dismiss:!0}))}),r),this.message=(r,l)=>this.create({...l,message:r}),this.error=(r,l)=>this.create({...l,message:r,type:"error"}),this.success=(r,l)=>this.create({...l,type:"success",message:r}),this.info=(r,l)=>this.create({...l,type:"info",message:r}),this.warning=(r,l)=>this.create({...l,type:"warning",message:r}),this.loading=(r,l)=>this.create({...l,type:"loading",message:r}),this.promise=(r,l)=>{if(!l)return;let i;l.loading!==void 0&&(i=this.create({...l,promise:r,type:"loading",message:l.loading,description:typeof l.description!="function"?l.description:void 0}));const c=Promise.resolve(r instanceof Function?r():r);let d=i!==void 0,m;const h=c.then(async p=>{if(m=["resolve",p],ae.isValidElement(p))d=!1,this.create({id:i,type:"default",message:p});else if(bC(p)&&!p.ok){d=!1;const g=typeof l.error=="function"?await l.error(`HTTP error! status: ${p.status}`):l.error,w=typeof l.description=="function"?await l.description(`HTTP error! status: ${p.status}`):l.description,T=typeof g=="object"&&!ae.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:w,...T})}else if(p instanceof Error){d=!1;const g=typeof l.error=="function"?await l.error(p):l.error,w=typeof l.description=="function"?await l.description(p):l.description,T=typeof g=="object"&&!ae.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:w,...T})}else if(l.success!==void 0){d=!1;const g=typeof l.success=="function"?await l.success(p):l.success,w=typeof l.description=="function"?await l.description(p):l.description,T=typeof g=="object"&&!ae.isValidElement(g)?g:{message:g};this.create({id:i,type:"success",description:w,...T})}}).catch(async p=>{if(m=["reject",p],l.error!==void 0){d=!1;const x=typeof l.error=="function"?await l.error(p):l.error,g=typeof l.description=="function"?await l.description(p):l.description,N=typeof x=="object"&&!ae.isValidElement(x)?x:{message:x};this.create({id:i,type:"error",description:g,...N})}}).finally(()=>{d&&(this.dismiss(i),i=void 0),l.finally==null||l.finally.call(l)}),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=(r,l)=>{const i=(l==null?void 0:l.id)||mf++;return this.create({jsx:r(i),id:i,...l}),i},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ft=new vC,yC=(n,r)=>{const l=(r==null?void 0:r.id)||mf++;return Ft.addToast({title:n,...r,id:l}),l},bC=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",xC=yC,SC=()=>Ft.toasts,wC=()=>Ft.getActiveToasts(),Pe=Object.assign(xC,{success:Ft.success,info:Ft.info,warning:Ft.warning,error:Ft.error,custom:Ft.custom,message:Ft.message,promise:Ft.promise,dismiss:Ft.dismiss,loading:Ft.loading},{getHistory:SC,getToasts:wC});iC("[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 ws(n){return n.label!==void 0}const EC=3,NC="24px",TC="16px",Uv=4e3,CC=356,RC=14,AC=45,jC=200;function Yn(...n){return n.filter(Boolean).join(" ")}function _C(n){const[r,l]=n.split("-"),i=[];return r&&i.push(r),l&&i.push(l),i}const MC=n=>{var r,l,i,c,d,m,h,y,p;const{invert:x,toast:g,unstyled:w,interacting:N,setHeights:T,visibleToasts:E,heights:C,index:R,toasts:_,expanded:O,removeToast:z,defaultRichColors:B,closeButton:P,style:q,cancelButtonStyle:$,actionButtonStyle:ne,className:re="",descriptionClassName:fe="",duration:me,position:ie,gap:ue,expandByDefault:oe,classNames:M,icons:V,closeButtonAriaLabel:Z="Close toast"}=n,[de,F]=ae.useState(null),[A,G]=ae.useState(null),[X,W]=ae.useState(!1),[te,se]=ae.useState(!1),[ee,ce]=ae.useState(!1),[J,ve]=ae.useState(!1),[be,Se]=ae.useState(!1),[He,_e]=ae.useState(0),[$e,ft]=ae.useState(0),Ge=ae.useRef(g.duration||me||Uv),Ut=ae.useRef(null),pt=ae.useRef(null),sr=R===0,cr=R+1<=E,Ct=g.type,On=g.dismissible!==!1,Rt=g.className||"",Hr=g.descriptionClassName||"",kn=ae.useMemo(()=>C.findIndex(Te=>Te.toastId===g.id)||0,[C,g.id]),Ne=ae.useMemo(()=>{var Te;return(Te=g.closeButton)!=null?Te:P},[g.closeButton,P]),Ie=ae.useMemo(()=>g.duration||me||Uv,[g.duration,me]),We=ae.useRef(0),ct=ae.useRef(0),Dn=ae.useRef(0),zn=ae.useRef(null),[Ln,Bt]=ie.split("-"),wn=ae.useMemo(()=>C.reduce((Te,rt,Et)=>Et>=kn?Te:Te+rt.height,0),[C,kn]),kt=gC(),xc=g.invert||x,Kl=Ct==="loading";ct.current=ae.useMemo(()=>kn*ue+wn,[kn,wn]),ae.useEffect(()=>{Ge.current=Ie},[Ie]),ae.useEffect(()=>{W(!0)},[]),ae.useEffect(()=>{const Te=pt.current;if(Te){const rt=Te.getBoundingClientRect().height;return ft(rt),T(Et=>[{toastId:g.id,height:rt,position:g.position},...Et]),()=>T(Et=>Et.filter(Dt=>Dt.toastId!==g.id))}},[T,g.id]),ae.useLayoutEffect(()=>{if(!X)return;const Te=pt.current,rt=Te.style.height;Te.style.height="auto";const Et=Te.getBoundingClientRect().height;Te.style.height=rt,ft(Et),T(Dt=>Dt.find(it=>it.toastId===g.id)?Dt.map(it=>it.toastId===g.id?{...it,height:Et}:it):[{toastId:g.id,height:Et,position:g.position},...Dt])},[X,g.title,g.description,T,g.id,g.jsx,g.action,g.cancel]);const Un=ae.useCallback(()=>{se(!0),_e(ct.current),T(Te=>Te.filter(rt=>rt.toastId!==g.id)),setTimeout(()=>{z(g)},jC)},[g,z,T,ct]);ae.useEffect(()=>{if(g.promise&&Ct==="loading"||g.duration===1/0||g.type==="loading")return;let Te;return O||N||kt?(()=>{if(Dn.current<We.current){const Dt=new Date().getTime()-We.current;Ge.current=Ge.current-Dt}Dn.current=new Date().getTime()})():(()=>{Ge.current!==1/0&&(We.current=new Date().getTime(),Te=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),Un()},Ge.current))})(),()=>clearTimeout(Te)},[O,N,g,Ct,kt,Un]),ae.useEffect(()=>{g.delete&&(Un(),g.onDismiss==null||g.onDismiss.call(g,g))},[Un,g.delete]);function $r(){var Te;if(V!=null&&V.loading){var rt;return ae.createElement("div",{className:Yn(M==null?void 0:M.loader,g==null||(rt=g.classNames)==null?void 0:rt.loader,"sonner-loader"),"data-visible":Ct==="loading"},V.loading)}return ae.createElement(uC,{className:Yn(M==null?void 0:M.loader,g==null||(Te=g.classNames)==null?void 0:Te.loader),visible:Ct==="loading"})}const qr=g.icon||(V==null?void 0:V[Ct])||sC(Ct);var ur,Bn;return ae.createElement("li",{tabIndex:0,ref:pt,className:Yn(re,Rt,M==null?void 0:M.toast,g==null||(r=g.classNames)==null?void 0:r.toast,M==null?void 0:M.default,M==null?void 0:M[Ct],g==null||(l=g.classNames)==null?void 0:l[Ct]),"data-sonner-toast":"","data-rich-colors":(ur=g.richColors)!=null?ur:B,"data-styled":!(g.jsx||g.unstyled||w),"data-mounted":X,"data-promise":!!g.promise,"data-swiped":be,"data-removed":te,"data-visible":cr,"data-y-position":Ln,"data-x-position":Bt,"data-index":R,"data-front":sr,"data-swiping":ee,"data-dismissible":On,"data-type":Ct,"data-invert":xc,"data-swipe-out":J,"data-swipe-direction":A,"data-expanded":!!(O||oe&&X),"data-testid":g.testId,style:{"--index":R,"--toasts-before":R,"--z-index":_.length-R,"--offset":`${te?He:ct.current}px`,"--initial-height":oe?"auto":`${$e}px`,...q,...g.style},onDragEnd:()=>{ce(!1),F(null),zn.current=null},onPointerDown:Te=>{Te.button!==2&&(Kl||!On||(Ut.current=new Date,_e(ct.current),Te.target.setPointerCapture(Te.pointerId),Te.target.tagName!=="BUTTON"&&(ce(!0),zn.current={x:Te.clientX,y:Te.clientY})))},onPointerUp:()=>{var Te,rt,Et;if(J||!On)return;zn.current=null;const Dt=Number(((Te=pt.current)==null?void 0:Te.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Ta=Number(((rt=pt.current)==null?void 0:rt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),it=new Date().getTime()-((Et=Ut.current)==null?void 0:Et.getTime()),$t=de==="x"?Dt:Ta,dr=Math.abs($t)/it;if(Math.abs($t)>=AC||dr>.11){_e(ct.current),g.onDismiss==null||g.onDismiss.call(g,g),G(de==="x"?Dt>0?"right":"left":Ta>0?"down":"up"),Un(),ve(!0);return}else{var qt,Vt;(qt=pt.current)==null||qt.style.setProperty("--swipe-amount-x","0px"),(Vt=pt.current)==null||Vt.style.setProperty("--swipe-amount-y","0px")}Se(!1),ce(!1),F(null)},onPointerMove:Te=>{var rt,Et,Dt;if(!zn.current||!On||((rt=window.getSelection())==null?void 0:rt.toString().length)>0)return;const it=Te.clientY-zn.current.y,$t=Te.clientX-zn.current.x;var dr;const qt=(dr=n.swipeDirections)!=null?dr:_C(ie);!de&&(Math.abs($t)>1||Math.abs(it)>1)&&F(Math.abs($t)>Math.abs(it)?"x":"y");let Vt={x:0,y:0};const Vr=En=>1/(1.5+Math.abs(En)/20);if(de==="y"){if(qt.includes("top")||qt.includes("bottom"))if(qt.includes("top")&&it<0||qt.includes("bottom")&&it>0)Vt.y=it;else{const En=it*Vr(it);Vt.y=Math.abs(En)<Math.abs(it)?En:it}}else if(de==="x"&&(qt.includes("left")||qt.includes("right")))if(qt.includes("left")&&$t<0||qt.includes("right")&&$t>0)Vt.x=$t;else{const En=$t*Vr($t);Vt.x=Math.abs(En)<Math.abs($t)?En:$t}(Math.abs(Vt.x)>0||Math.abs(Vt.y)>0)&&Se(!0),(Et=pt.current)==null||Et.style.setProperty("--swipe-amount-x",`${Vt.x}px`),(Dt=pt.current)==null||Dt.style.setProperty("--swipe-amount-y",`${Vt.y}px`)}},Ne&&!g.jsx&&Ct!=="loading"?ae.createElement("button",{"aria-label":Z,"data-disabled":Kl,"data-close-button":!0,onClick:Kl||!On?()=>{}:()=>{Un(),g.onDismiss==null||g.onDismiss.call(g,g)},className:Yn(M==null?void 0:M.closeButton,g==null||(i=g.classNames)==null?void 0:i.closeButton)},(Bn=V==null?void 0:V.close)!=null?Bn:pC):null,(Ct||g.icon||g.promise)&&g.icon!==null&&((V==null?void 0:V[Ct])!==null||g.icon)?ae.createElement("div",{"data-icon":"",className:Yn(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||$r():null,g.type!=="loading"?qr:null):null,ae.createElement("div",{"data-content":"",className:Yn(M==null?void 0:M.content,g==null||(d=g.classNames)==null?void 0:d.content)},ae.createElement("div",{"data-title":"",className:Yn(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?ae.createElement("div",{"data-description":"",className:Yn(fe,Hr,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),ae.isValidElement(g.cancel)?g.cancel:g.cancel&&ws(g.cancel)?ae.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||$,onClick:Te=>{ws(g.cancel)&&On&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,Te),Un())},className:Yn(M==null?void 0:M.cancelButton,g==null||(y=g.classNames)==null?void 0:y.cancelButton)},g.cancel.label):null,ae.isValidElement(g.action)?g.action:g.action&&ws(g.action)?ae.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||ne,onClick:Te=>{ws(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,Te),!Te.defaultPrevented&&Un())},className:Yn(M==null?void 0:M.actionButton,g==null||(p=g.classNames)==null?void 0:p.actionButton)},g.action.label):null)};function Bv(){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 OC(n,r){const l={};return[n,r].forEach((i,c)=>{const d=c===1,m=d?"--mobile-offset":"--offset",h=d?TC:NC;function y(p){["top","right","bottom","left"].forEach(x=>{l[`${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?l[`${m}-${p}`]=h:l[`${m}-${p}`]=typeof i[p]=="number"?`${i[p]}px`:i[p]}):y(h)}),l}const kC=ae.forwardRef(function(r,l){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=EC,toastOptions:R,dir:_=Bv(),gap:O=RC,icons:z,containerAriaLabel:B="Notifications"}=r,[P,q]=ae.useState([]),$=ae.useMemo(()=>i?P.filter(X=>X.toasterId===i):P.filter(X=>!X.toasterId),[P,i]),ne=ae.useMemo(()=>Array.from(new Set([d].concat($.filter(X=>X.position).map(X=>X.position)))),[$,d]),[re,fe]=ae.useState([]),[me,ie]=ae.useState(!1),[ue,oe]=ae.useState(!1),[M,V]=ae.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),Z=ae.useRef(null),de=m.join("+").replace(/Key/g,"").replace(/Digit/g,""),F=ae.useRef(null),A=ae.useRef(!1),G=ae.useCallback(X=>{q(W=>{var te;return(te=W.find(se=>se.id===X.id))!=null&&te.delete||Ft.dismiss(X.id),W.filter(({id:se})=>se!==X.id)})},[]);return ae.useEffect(()=>Ft.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{q(W=>W.map(te=>te.id===X.id?{...te,delete:!0}:te))});return}setTimeout(()=>{Xy.flushSync(()=>{q(W=>{const te=W.findIndex(se=>se.id===X.id);return te!==-1?[...W.slice(0,te),{...W[te],...X},...W.slice(te+1)]:[X,...W]})})})}),[P]),ae.useEffect(()=>{if(w!=="system"){V(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?V("dark"):V("light")),typeof window>"u")return;const X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:W})=>{V(W?"dark":"light")})}catch{X.addListener(({matches:te})=>{try{V(te?"dark":"light")}catch(se){console.error(se)}})}},[w]),ae.useEffect(()=>{P.length<=1&&ie(!1)},[P]),ae.useEffect(()=>{const X=W=>{var te;if(m.every(ce=>W[ce]||W.code===ce)){var ee;ie(!0),(ee=Z.current)==null||ee.focus()}W.code==="Escape"&&(document.activeElement===Z.current||(te=Z.current)!=null&&te.contains(document.activeElement))&&ie(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[m]),ae.useEffect(()=>{if(Z.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,A.current=!1)}},[Z.current]),ae.createElement("section",{ref:l,"aria-label":`${B} ${de}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ne.map((X,W)=>{var te;const[se,ee]=X.split("-");return $.length?ae.createElement("ol",{key:X,dir:_==="auto"?Bv():_,tabIndex:-1,ref:Z,className:p,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":se,"data-x-position":ee,style:{"--front-toast-height":`${((te=re[0])==null?void 0:te.height)||0}px`,"--width":`${CC}px`,"--gap":`${O}px`,...E,...OC(x,g)},onBlur:ce=>{A.current&&!ce.currentTarget.contains(ce.relatedTarget)&&(A.current=!1,F.current&&(F.current.focus({preventScroll:!0}),F.current=null))},onFocus:ce=>{ce.target instanceof HTMLElement&&ce.target.dataset.dismissible==="false"||A.current||(A.current=!0,F.current=ce.relatedTarget)},onMouseEnter:()=>ie(!0),onMouseMove:()=>ie(!0),onMouseLeave:()=>{ue||ie(!1)},onDragEnd:()=>ie(!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===X).map((ce,J)=>{var ve,be;return ae.createElement(MC,{key:ce.id,icons:z,index:J,toast:ce,defaultRichColors:N,duration:(ve=R==null?void 0:R.duration)!=null?ve:T,className:R==null?void 0:R.className,descriptionClassName:R==null?void 0:R.descriptionClassName,invert:c,visibleToasts:C,closeButton:(be=R==null?void 0:R.closeButton)!=null?be:y,interacting:ue,position:X,style:R==null?void 0:R.style,unstyled:R==null?void 0:R.unstyled,classNames:R==null?void 0:R.classNames,cancelButtonStyle:R==null?void 0:R.cancelButtonStyle,actionButtonStyle:R==null?void 0:R.actionButtonStyle,closeButtonAriaLabel:R==null?void 0:R.closeButtonAriaLabel,removeToast:G,toasts:$.filter(Se=>Se.position==ce.position),heights:re.filter(Se=>Se.position==ce.position),setHeights:fe,expandByDefault:h,gap:O,expanded:me,swipeDirections:r.swipeDirections})})):null}))}),Hv=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,$v=i0,w0=(n,r)=>l=>{var i;if((r==null?void 0:r.variants)==null)return $v(n,l==null?void 0:l.class,l==null?void 0:l.className);const{variants:c,defaultVariants:d}=r,m=Object.keys(c).map(p=>{const x=l==null?void 0:l[p],g=d==null?void 0:d[p];if(x===null)return null;const w=Hv(x)||Hv(g);return c[p][w]}),h=l&&Object.entries(l).reduce((p,x)=>{let[g,w]=x;return w===void 0||(p[g]=w),p},{}),y=r==null||(i=r.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 $v(n,m,y,l==null?void 0:l.class,l==null?void 0:l.className)},DC=w0("inline-flex items-center rounded-sm border px-1.5 py-0 text-[10px] font-semibold leading-4 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 wt({className:n,variant:r,...l}){return f.jsx("div",{className:le(DC({variant:r}),n),...l})}const Pn=v.forwardRef(({className:n,...r},l)=>f.jsx("div",{ref:l,className:le("rounded-sm border border-border/70 bg-card/80 text-card-foreground shadow-none",n),...r}));Pn.displayName="Card";const Gn=v.forwardRef(({className:n,...r},l)=>f.jsx("div",{ref:l,className:le("flex flex-col space-y-1 p-3",n),...r}));Gn.displayName="CardHeader";const In=v.forwardRef(({className:n,...r},l)=>f.jsx("div",{ref:l,className:le("text-[12px] font-semibold leading-none tracking-tight",n),...r}));In.displayName="CardTitle";const Xn=v.forwardRef(({className:n,...r},l)=>f.jsx("div",{ref:l,className:le("text-[10px] text-muted-foreground",n),...r}));Xn.displayName="CardDescription";const Kn=v.forwardRef(({className:n,...r},l)=>f.jsx("div",{ref:l,className:le("p-3 pt-0",n),...r}));Kn.displayName="CardContent";const zC=v.forwardRef(({className:n,...r},l)=>f.jsx("div",{ref:l,className:le("flex items-center p-3 pt-0",n),...r}));zC.displayName="CardFooter";function qv(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function Hf(...n){return r=>{let l=!1;const i=n.map(c=>{const d=qv(c,r);return!l&&typeof d=="function"&&(l=!0),d});if(l)return()=>{for(let c=0;c<i.length;c++){const d=i[c];typeof d=="function"?d():qv(n[c],null)}}}}function tt(...n){return v.useCallback(Hf(...n),n)}var LC=Symbol.for("react.lazy"),qs=jf[" use ".trim().toString()];function UC(n){return typeof n=="object"&&n!==null&&"then"in n}function E0(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===LC&&"_payload"in n&&UC(n._payload)}function BC(n){const r=$C(n),l=v.forwardRef((i,c)=>{let{children:d,...m}=i;E0(d)&&typeof qs=="function"&&(d=qs(d._payload));const h=v.Children.toArray(d),y=h.find(VC);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(r,{...m,ref:c,children:v.isValidElement(p)?v.cloneElement(p,void 0,x):null})}return f.jsx(r,{...m,ref:c,children:d})});return l.displayName=`${n}.Slot`,l}var HC=BC("Slot");function $C(n){const r=v.forwardRef((l,i)=>{let{children:c,...d}=l;if(E0(c)&&typeof qs=="function"&&(c=qs(c._payload)),v.isValidElement(c)){const m=PC(c),h=YC(d,c.props);return c.type!==v.Fragment&&(h.ref=i?Hf(i,m):m),v.cloneElement(c,h)}return v.Children.count(c)>1?v.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var qC=Symbol("radix.slottable");function VC(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===qC}function YC(n,r){const l={...r};for(const i in r){const c=n[i],d=r[i];/^on[A-Z]/.test(i)?c&&d?l[i]=(...h)=>{const y=d(...h);return c(...h),y}:c&&(l[i]=c):i==="style"?l[i]={...c,...d}:i==="className"&&(l[i]=[c,d].filter(Boolean).join(" "))}return{...n,...l}}function PC(n){var i,c;let r=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?n.ref:(r=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,l=r&&"isReactWarning"in r&&r.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}const $f=w0("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-sm text-[11px] 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-8 px-3 py-1.5",sm:"h-7 rounded-sm px-2 text-[10px]",lg:"h-10 rounded-md px-5 text-xs",icon:"h-8 w-8 rounded-sm"}},defaultVariants:{variant:"default",size:"default"}}),xn=v.forwardRef(({className:n,variant:r,size:l,asChild:i=!1,...c},d)=>{const m=i?HC:"button";return f.jsx(m,{className:le($f({variant:r,size:l,className:n})),ref:d,...c})});xn.displayName="Button";function ke(n,r,{checkForDefaultPrevented:l=!0}={}){return function(c){if(n==null||n(c),l===!1||!c.defaultPrevented)return r==null?void 0:r(c)}}function GC(n,r){const l=v.createContext(r),i=d=>{const{children:m,...h}=d,y=v.useMemo(()=>h,Object.values(h));return f.jsx(l.Provider,{value:y,children:m})};i.displayName=n+"Provider";function c(d){const m=v.useContext(l);if(m)return m;if(r!==void 0)return r;throw new Error(`\`${d}\` must be used within \`${n}\``)}return[i,c]}function lr(n,r=[]){let l=[];function i(d,m){const h=v.createContext(m),y=l.length;l=[...l,m];const p=g=>{var R;const{scope:w,children:N,...T}=g,E=((R=w==null?void 0:w[n])==null?void 0:R[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=l.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,IC(c,...r)]}function IC(...n){const r=n[0];if(n.length===1)return r;const l=()=>{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${r.scopeName}`]:m}),[m])}};return l.scopeName=r.scopeName,l}var Lt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},XC=jf[" useId ".trim().toString()]||(()=>{}),KC=0;function Wa(n){const[r,l]=v.useState(XC());return Lt(()=>{l(i=>i??String(KC++))},[n]),r?`radix-${r}`:""}var QC=jf[" useInsertionEffect ".trim().toString()]||Lt;function Bl({prop:n,defaultProp:r,onChange:l=()=>{},caller:i}){const[c,d,m]=ZC({defaultProp:r,onChange:l}),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=FC(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 ZC({defaultProp:n,onChange:r}){const[l,i]=v.useState(n),c=v.useRef(l),d=v.useRef(r);return QC(()=>{d.current=r},[r]),v.useEffect(()=>{var m;c.current!==l&&((m=d.current)==null||m.call(d,l),c.current=l)},[l,c]),[l,i,d]}function FC(n){return typeof n=="function"}function Wo(n){const r=JC(n),l=v.forwardRef((i,c)=>{const{children:d,...m}=i,h=v.Children.toArray(d),y=h.find(eR);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(r,{...m,ref:c,children:v.isValidElement(p)?v.cloneElement(p,void 0,x):null})}return f.jsx(r,{...m,ref:c,children:d})});return l.displayName=`${n}.Slot`,l}function JC(n){const r=v.forwardRef((l,i)=>{const{children:c,...d}=l;if(v.isValidElement(c)){const m=nR(c),h=tR(d,c.props);return c.type!==v.Fragment&&(h.ref=i?Hf(i,m):m),v.cloneElement(c,h)}return v.Children.count(c)>1?v.Children.only(null):null});return r.displayName=`${n}.SlotClone`,r}var N0=Symbol("radix.slottable");function WC(n){const r=({children:l})=>f.jsx(f.Fragment,{children:l});return r.displayName=`${n}.Slottable`,r.__radixId=N0,r}function eR(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===N0}function tR(n,r){const l={...r};for(const i in r){const c=n[i],d=r[i];/^on[A-Z]/.test(i)?c&&d?l[i]=(...h)=>{const y=d(...h);return c(...h),y}:c&&(l[i]=c):i==="style"?l[i]={...c,...d}:i==="className"&&(l[i]=[c,d].filter(Boolean).join(" "))}return{...n,...l}}function nR(n){var i,c;let r=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?n.ref:(r=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,l=r&&"isReactWarning"in r&&r.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var aR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=aR.reduce((n,r)=>{const l=Wo(`Primitive.${r}`),i=v.forwardRef((c,d)=>{const{asChild:m,...h}=c,y=m?l:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(y,{...h,ref:d})});return i.displayName=`Primitive.${r}`,{...n,[r]:i}},{});function rR(n,r){n&&ai.flushSync(()=>n.dispatchEvent(r))}function tr(n){const r=v.useRef(n);return v.useEffect(()=>{r.current=n}),v.useMemo(()=>(...l)=>{var i;return(i=r.current)==null?void 0:i.call(r,...l)},[])}function lR(n,r=globalThis==null?void 0:globalThis.document){const l=tr(n);v.useEffect(()=>{const i=c=>{c.key==="Escape"&&l(c)};return r.addEventListener("keydown",i,{capture:!0}),()=>r.removeEventListener("keydown",i,{capture:!0})},[l,r])}var oR="DismissableLayer",hf="dismissableLayer.update",iR="dismissableLayer.pointerDownOutside",sR="dismissableLayer.focusOutside",Vv,T0=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qf=v.forwardRef((n,r)=>{const{disableOutsidePointerEvents:l=!1,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:m,onDismiss:h,...y}=n,p=v.useContext(T0),[x,g]=v.useState(null),w=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=v.useState({}),T=tt(r,q=>g(q)),E=Array.from(p.layers),[C]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),R=E.indexOf(C),_=x?E.indexOf(x):-1,O=p.layersWithOutsidePointerEventsDisabled.size>0,z=_>=R,B=dR(q=>{const $=q.target,ne=[...p.branches].some(re=>re.contains($));!z||ne||(c==null||c(q),m==null||m(q),q.defaultPrevented||h==null||h())},w),P=fR(q=>{const $=q.target;[...p.branches].some(re=>re.contains($))||(d==null||d(q),m==null||m(q),q.defaultPrevented||h==null||h())},w);return lR(q=>{_===p.layers.size-1&&(i==null||i(q),!q.defaultPrevented&&h&&(q.preventDefault(),h()))},w),v.useEffect(()=>{if(x)return l&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Vv=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(x)),p.layers.add(x),Yv(),()=>{l&&p.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=Vv)}},[x,w,l,p]),v.useEffect(()=>()=>{x&&(p.layers.delete(x),p.layersWithOutsidePointerEventsDisabled.delete(x),Yv())},[x,p]),v.useEffect(()=>{const q=()=>N({});return document.addEventListener(hf,q),()=>document.removeEventListener(hf,q)},[]),f.jsx(Ue.div,{...y,ref:T,style:{pointerEvents:O?z?"auto":"none":void 0,...n.style},onFocusCapture:ke(n.onFocusCapture,P.onFocusCapture),onBlurCapture:ke(n.onBlurCapture,P.onBlurCapture),onPointerDownCapture:ke(n.onPointerDownCapture,B.onPointerDownCapture)})});qf.displayName=oR;var cR="DismissableLayerBranch",uR=v.forwardRef((n,r)=>{const l=v.useContext(T0),i=v.useRef(null),c=tt(r,i);return v.useEffect(()=>{const d=i.current;if(d)return l.branches.add(d),()=>{l.branches.delete(d)}},[l.branches]),f.jsx(Ue.div,{...n,ref:c})});uR.displayName=cR;function dR(n,r=globalThis==null?void 0:globalThis.document){const l=tr(n),i=v.useRef(!1),c=v.useRef(()=>{});return v.useEffect(()=>{const d=h=>{if(h.target&&!i.current){let y=function(){C0(iR,l,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(r.removeEventListener("click",c.current),c.current=y,r.addEventListener("click",c.current,{once:!0})):y()}else r.removeEventListener("click",c.current);i.current=!1},m=window.setTimeout(()=>{r.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(m),r.removeEventListener("pointerdown",d),r.removeEventListener("click",c.current)}},[r,l]),{onPointerDownCapture:()=>i.current=!0}}function fR(n,r=globalThis==null?void 0:globalThis.document){const l=tr(n),i=v.useRef(!1);return v.useEffect(()=>{const c=d=>{d.target&&!i.current&&C0(sR,l,{originalEvent:d},{discrete:!1})};return r.addEventListener("focusin",c),()=>r.removeEventListener("focusin",c)},[r,l]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Yv(){const n=new CustomEvent(hf);document.dispatchEvent(n)}function C0(n,r,l,{discrete:i}){const c=l.originalEvent.target,d=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:l});r&&c.addEventListener(n,r,{once:!0}),i?rR(c,d):c.dispatchEvent(d)}var Vd="focusScope.autoFocusOnMount",Yd="focusScope.autoFocusOnUnmount",Pv={bubbles:!1,cancelable:!0},mR="FocusScope",Vf=v.forwardRef((n,r)=>{const{loop:l=!1,trapped:i=!1,onMountAutoFocus:c,onUnmountAutoFocus:d,...m}=n,[h,y]=v.useState(null),p=tr(c),x=tr(d),g=v.useRef(null),w=tt(r,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:Ja(g.current,{select:!0})},C=function(O){if(N.paused||!h)return;const z=O.relatedTarget;z!==null&&(h.contains(z)||Ja(g.current,{select:!0}))},R=function(O){if(document.activeElement===document.body)for(const B of O)B.removedNodes.length>0&&Ja(h)};document.addEventListener("focusin",E),document.addEventListener("focusout",C);const _=new MutationObserver(R);return h&&_.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",C),_.disconnect()}}},[i,h,N.paused]),v.useEffect(()=>{if(h){Iv.add(N);const E=document.activeElement;if(!h.contains(E)){const R=new CustomEvent(Vd,Pv);h.addEventListener(Vd,p),h.dispatchEvent(R),R.defaultPrevented||(hR(bR(R0(h)),{select:!0}),document.activeElement===E&&Ja(h))}return()=>{h.removeEventListener(Vd,p),setTimeout(()=>{const R=new CustomEvent(Yd,Pv);h.addEventListener(Yd,x),h.dispatchEvent(R),R.defaultPrevented||Ja(E??document.body,{select:!0}),h.removeEventListener(Yd,x),Iv.remove(N)},0)}}},[h,p,x,N]);const T=v.useCallback(E=>{if(!l&&!i||N.paused)return;const C=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,R=document.activeElement;if(C&&R){const _=E.currentTarget,[O,z]=pR(_);O&&z?!E.shiftKey&&R===z?(E.preventDefault(),l&&Ja(O,{select:!0})):E.shiftKey&&R===O&&(E.preventDefault(),l&&Ja(z,{select:!0})):R===_&&E.preventDefault()}},[l,i,N.paused]);return f.jsx(Ue.div,{tabIndex:-1,...m,ref:w,onKeyDown:T})});Vf.displayName=mR;function hR(n,{select:r=!1}={}){const l=document.activeElement;for(const i of n)if(Ja(i,{select:r}),document.activeElement!==l)return}function pR(n){const r=R0(n),l=Gv(r,n),i=Gv(r.reverse(),n);return[l,i]}function R0(n){const r=[],l=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(;l.nextNode();)r.push(l.currentNode);return r}function Gv(n,r){for(const l of n)if(!gR(l,{upTo:r}))return l}function gR(n,{upTo:r}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(r!==void 0&&n===r)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function vR(n){return n instanceof HTMLInputElement&&"select"in n}function Ja(n,{select:r=!1}={}){if(n&&n.focus){const l=document.activeElement;n.focus({preventScroll:!0}),n!==l&&vR(n)&&r&&n.select()}}var Iv=yR();function yR(){let n=[];return{add(r){const l=n[0];r!==l&&(l==null||l.pause()),n=Xv(n,r),n.unshift(r)},remove(r){var l;n=Xv(n,r),(l=n[0])==null||l.resume()}}}function Xv(n,r){const l=[...n],i=l.indexOf(r);return i!==-1&&l.splice(i,1),l}function bR(n){return n.filter(r=>r.tagName!=="A")}var xR="Portal",Yf=v.forwardRef((n,r)=>{var h;const{container:l,...i}=n,[c,d]=v.useState(!1);Lt(()=>d(!0),[]);const m=l||c&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return m?Xy.createPortal(f.jsx(Ue.div,{...i,ref:r}),m):null});Yf.displayName=xR;function SR(n,r){return v.useReducer((l,i)=>r[l][i]??l,n)}var Pl=n=>{const{present:r,children:l}=n,i=wR(r),c=typeof l=="function"?l({present:i.isPresent}):v.Children.only(l),d=tt(i.ref,ER(c));return typeof l=="function"||i.isPresent?v.cloneElement(c,{ref:d}):null};Pl.displayName="Presence";function wR(n){const[r,l]=v.useState(),i=v.useRef(null),c=v.useRef(n),d=v.useRef("none"),m=n?"mounted":"unmounted",[h,y]=SR(m,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const p=Es(i.current);d.current=h==="mounted"?p:"none"},[h]),Lt(()=>{const p=i.current,x=c.current;if(x!==n){const w=d.current,N=Es(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]),Lt(()=>{if(r){let p;const x=r.ownerDocument.defaultView??window,g=N=>{const E=Es(i.current).includes(CSS.escape(N.animationName));if(N.target===r&&E&&(y("ANIMATION_END"),!c.current)){const C=r.style.animationFillMode;r.style.animationFillMode="forwards",p=x.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=C)})}},w=N=>{N.target===r&&(d.current=Es(i.current))};return r.addEventListener("animationstart",w),r.addEventListener("animationcancel",g),r.addEventListener("animationend",g),()=>{x.clearTimeout(p),r.removeEventListener("animationstart",w),r.removeEventListener("animationcancel",g),r.removeEventListener("animationend",g)}}else y("ANIMATION_END")},[r,y]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:v.useCallback(p=>{i.current=p?getComputedStyle(p):null,l(p)},[])}}function Es(n){return(n==null?void 0:n.animationName)||"none"}function ER(n){var i,c;let r=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,l=r&&"isReactWarning"in r&&r.isReactWarning;return l?n.ref:(r=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,l=r&&"isReactWarning"in r&&r.isReactWarning,l?n.props.ref:n.props.ref||n.ref)}var Pd=0;function A0(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Kv()),document.body.insertAdjacentElement("beforeend",n[1]??Kv()),Pd++,()=>{Pd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(r=>r.remove()),Pd--}},[])}function Kv(){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 Qn=function(){return Qn=Object.assign||function(r){for(var l,i=1,c=arguments.length;i<c;i++){l=arguments[i];for(var d in l)Object.prototype.hasOwnProperty.call(l,d)&&(r[d]=l[d])}return r},Qn.apply(this,arguments)};function j0(n,r){var l={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&r.indexOf(i)<0&&(l[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,i=Object.getOwnPropertySymbols(n);c<i.length;c++)r.indexOf(i[c])<0&&Object.prototype.propertyIsEnumerable.call(n,i[c])&&(l[i[c]]=n[i[c]]);return l}function NR(n,r,l){if(l||arguments.length===2)for(var i=0,c=r.length,d;i<c;i++)(d||!(i in r))&&(d||(d=Array.prototype.slice.call(r,0,i)),d[i]=r[i]);return n.concat(d||Array.prototype.slice.call(r))}var Os="right-scroll-bar-position",ks="width-before-scroll-bar",TR="with-scroll-bars-hidden",CR="--removed-body-scroll-bar-size";function Gd(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function RR(n,r){var l=v.useState(function(){return{value:n,callback:r,facade:{get current(){return l.value},set current(i){var c=l.value;c!==i&&(l.value=i,l.callback(i,c))}}}})[0];return l.callback=r,l.facade}var AR=typeof window<"u"?v.useLayoutEffect:v.useEffect,Qv=new WeakMap;function jR(n,r){var l=RR(null,function(i){return n.forEach(function(c){return Gd(c,i)})});return AR(function(){var i=Qv.get(l);if(i){var c=new Set(i),d=new Set(n),m=l.current;c.forEach(function(h){d.has(h)||Gd(h,null)}),d.forEach(function(h){c.has(h)||Gd(h,m)})}Qv.set(l,n)},[n]),l}function _R(n){return n}function MR(n,r){r===void 0&&(r=_R);var l=[],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 l.length?l[l.length-1]:n},useMedium:function(d){var m=r(d,i);return l.push(m),function(){l=l.filter(function(h){return h!==m})}},assignSyncMedium:function(d){for(i=!0;l.length;){var m=l;l=[],m.forEach(d)}l={push:function(h){return d(h)},filter:function(){return l}}},assignMedium:function(d){i=!0;var m=[];if(l.length){var h=l;l=[],h.forEach(d),m=l}var y=function(){var x=m;m=[],x.forEach(d)},p=function(){return Promise.resolve().then(y)};p(),l={push:function(x){m.push(x),p()},filter:function(x){return m=m.filter(x),l}}}};return c}function OR(n){n===void 0&&(n={});var r=MR(null);return r.options=Qn({async:!0,ssr:!1},n),r}var _0=function(n){var r=n.sideCar,l=j0(n,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=r.read();if(!i)throw new Error("Sidecar medium not found");return v.createElement(i,Qn({},l))};_0.isSideCarExport=!0;function kR(n,r){return n.useMedium(r),_0}var M0=OR(),Id=function(){},ic=v.forwardRef(function(n,r){var l=v.useRef(null),i=v.useState({onScrollCapture:Id,onWheelCapture:Id,onTouchMoveCapture:Id}),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,R=n.as,_=R===void 0?"div":R,O=n.gapMode,z=j0(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),B=w,P=jR([l,r]),q=Qn(Qn({},z),c);return v.createElement(v.Fragment,null,x&&v.createElement(B,{sideCar:M0,removeScrollBar:p,shards:g,noRelative:N,noIsolation:T,inert:E,setCallbacks:d,allowPinchZoom:!!C,lockRef:l,gapMode:O}),m?v.cloneElement(v.Children.only(h),Qn(Qn({},q),{ref:P})):v.createElement(_,Qn({},q,{className:y,ref:P}),h))});ic.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ic.classNames={fullWidth:ks,zeroRight:Os};var DR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zR(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=DR();return r&&n.setAttribute("nonce",r),n}function LR(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function UR(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var BR=function(){var n=0,r=null;return{add:function(l){n==0&&(r=zR())&&(LR(r,l),UR(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},HR=function(){var n=BR();return function(r,l){v.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&l])}},O0=function(){var n=HR(),r=function(l){var i=l.styles,c=l.dynamic;return n(i,c),null};return r},$R={left:0,top:0,right:0,gap:0},Xd=function(n){return parseInt(n||"",10)||0},qR=function(n){var r=window.getComputedStyle(document.body),l=r[n==="padding"?"paddingLeft":"marginLeft"],i=r[n==="padding"?"paddingTop":"marginTop"],c=r[n==="padding"?"paddingRight":"marginRight"];return[Xd(l),Xd(i),Xd(c)]},VR=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return $R;var r=qR(n),l=document.documentElement.clientWidth,i=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,i-l+r[2]-r[0])}},YR=O0(),zl="data-scroll-locked",PR=function(n,r,l,i){var c=n.left,d=n.top,m=n.right,h=n.gap;return l===void 0&&(l="margin"),`
|
|
267
|
-
.`.concat(TR,` {
|
|
268
|
-
overflow: hidden `).concat(i,`;
|
|
269
|
-
padding-right: `).concat(h,"px ").concat(i,`;
|
|
270
|
-
}
|
|
271
|
-
body[`).concat(zl,`] {
|
|
272
|
-
overflow: hidden `).concat(i,`;
|
|
273
|
-
overscroll-behavior: contain;
|
|
274
|
-
`).concat([r&&"position: relative ".concat(i,";"),l==="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
|
-
`),l==="padding"&&"padding-right: ".concat(h,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
.`).concat(Os,` {
|
|
285
|
-
right: `).concat(h,"px ").concat(i,`;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
.`).concat(ks,` {
|
|
289
|
-
margin-right: `).concat(h,"px ").concat(i,`;
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
.`).concat(Os," .").concat(Os,` {
|
|
293
|
-
right: 0 `).concat(i,`;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.`).concat(ks," .").concat(ks,` {
|
|
297
|
-
margin-right: 0 `).concat(i,`;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
body[`).concat(zl,`] {
|
|
301
|
-
`).concat(CR,": ").concat(h,`px;
|
|
302
|
-
}
|
|
303
|
-
`)},Zv=function(){var n=parseInt(document.body.getAttribute(zl)||"0",10);return isFinite(n)?n:0},GR=function(){v.useEffect(function(){return document.body.setAttribute(zl,(Zv()+1).toString()),function(){var n=Zv()-1;n<=0?document.body.removeAttribute(zl):document.body.setAttribute(zl,n.toString())}},[])},IR=function(n){var r=n.noRelative,l=n.noImportant,i=n.gapMode,c=i===void 0?"margin":i;GR();var d=v.useMemo(function(){return VR(c)},[c]);return v.createElement(YR,{styles:PR(d,!r,c,l?"":"!important")})},pf=!1;if(typeof window<"u")try{var Ns=Object.defineProperty({},"passive",{get:function(){return pf=!0,!0}});window.addEventListener("test",Ns,Ns),window.removeEventListener("test",Ns,Ns)}catch{pf=!1}var Rl=pf?{passive:!1}:!1,XR=function(n){return n.tagName==="TEXTAREA"},k0=function(n,r){if(!(n instanceof Element))return!1;var l=window.getComputedStyle(n);return l[r]!=="hidden"&&!(l.overflowY===l.overflowX&&!XR(n)&&l[r]==="visible")},KR=function(n){return k0(n,"overflowY")},QR=function(n){return k0(n,"overflowX")},Fv=function(n,r){var l=r.ownerDocument,i=r;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var c=D0(n,i);if(c){var d=z0(n,i),m=d[1],h=d[2];if(m>h)return!0}i=i.parentNode}while(i&&i!==l.body);return!1},ZR=function(n){var r=n.scrollTop,l=n.scrollHeight,i=n.clientHeight;return[r,l,i]},FR=function(n){var r=n.scrollLeft,l=n.scrollWidth,i=n.clientWidth;return[r,l,i]},D0=function(n,r){return n==="v"?KR(r):QR(r)},z0=function(n,r){return n==="v"?ZR(r):FR(r)},JR=function(n,r){return n==="h"&&r==="rtl"?-1:1},WR=function(n,r,l,i,c){var d=JR(n,window.getComputedStyle(r).direction),m=d*i,h=l.target,y=r.contains(h),p=!1,x=m>0,g=0,w=0;do{if(!h)break;var N=z0(n,h),T=N[0],E=N[1],C=N[2],R=E-C-d*T;(T||R)&&D0(n,h)&&(g+=R,w+=T);var _=h.parentNode;h=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}while(!y&&h!==document.body||y&&(r.contains(h)||r===h));return(x&&Math.abs(g)<1||!x&&Math.abs(w)<1)&&(p=!0),p},Ts=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Jv=function(n){return[n.deltaX,n.deltaY]},Wv=function(n){return n&&"current"in n?n.current:n},e5=function(n,r){return n[0]===r[0]&&n[1]===r[1]},t5=function(n){return`
|
|
304
|
-
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
305
|
-
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
306
|
-
`)},n5=0,Al=[];function a5(n){var r=v.useRef([]),l=v.useRef([0,0]),i=v.useRef(),c=v.useState(n5++)[0],d=v.useState(O0)[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=NR([n.lockRef.current],(n.shards||[]).map(Wv),!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 R=Ts(E),_=l.current,O="deltaX"in E?E.deltaX:_[0]-R[0],z="deltaY"in E?E.deltaY:_[1]-R[1],B,P=E.target,q=Math.abs(O)>Math.abs(z)?"h":"v";if("touches"in E&&q==="h"&&P.type==="range")return!1;var $=window.getSelection(),ne=$&&$.anchorNode,re=ne?ne===P||ne.contains(P):!1;if(re)return!1;var fe=Fv(q,P);if(!fe)return!0;if(fe?B=q:(B=q==="v"?"h":"v",fe=Fv(q,P)),!fe)return!1;if(!i.current&&"changedTouches"in E&&(O||z)&&(i.current=B),!B)return!0;var me=i.current||B;return WR(me,C,E,me==="h"?O:z)},[]),y=v.useCallback(function(E){var C=E;if(!(!Al.length||Al[Al.length-1]!==d)){var R="deltaY"in C?Jv(C):Ts(C),_=r.current.filter(function(B){return B.name===C.type&&(B.target===C.target||C.target===B.shadowParent)&&e5(B.delta,R)})[0];if(_&&_.should){C.cancelable&&C.preventDefault();return}if(!_){var O=(m.current.shards||[]).map(Wv).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,R,_){var O={name:E,delta:C,target:R,should:_,shadowParent:r5(R)};r.current.push(O),setTimeout(function(){r.current=r.current.filter(function(z){return z!==O})},1)},[]),x=v.useCallback(function(E){l.current=Ts(E),i.current=void 0},[]),g=v.useCallback(function(E){p(E.type,Jv(E),E.target,h(E,n.lockRef.current))},[]),w=v.useCallback(function(E){p(E.type,Ts(E),E.target,h(E,n.lockRef.current))},[]);v.useEffect(function(){return Al.push(d),n.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:w}),document.addEventListener("wheel",y,Rl),document.addEventListener("touchmove",y,Rl),document.addEventListener("touchstart",x,Rl),function(){Al=Al.filter(function(E){return E!==d}),document.removeEventListener("wheel",y,Rl),document.removeEventListener("touchmove",y,Rl),document.removeEventListener("touchstart",x,Rl)}},[]);var N=n.removeScrollBar,T=n.inert;return v.createElement(v.Fragment,null,T?v.createElement(d,{styles:t5(c)}):null,N?v.createElement(IR,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function r5(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const l5=kR(M0,a5);var Pf=v.forwardRef(function(n,r){return v.createElement(ic,Qn({},n,{ref:r,sideCar:l5}))});Pf.classNames=ic.classNames;var o5=function(n){if(typeof document>"u")return null;var r=Array.isArray(n)?n[0]:n;return r.ownerDocument.body},jl=new WeakMap,Cs=new WeakMap,Rs={},Kd=0,L0=function(n){return n&&(n.host||L0(n.parentNode))},i5=function(n,r){return r.map(function(l){if(n.contains(l))return l;var i=L0(l);return i&&n.contains(i)?i:(console.error("aria-hidden",l,"in not contained inside",n,". Doing nothing"),null)}).filter(function(l){return!!l})},s5=function(n,r,l,i){var c=i5(r,Array.isArray(n)?n:[n]);Rs[l]||(Rs[l]=new WeakMap);var d=Rs[l],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=(jl.get(w)||0)+1,C=(d.get(w)||0)+1;jl.set(w,E),d.set(w,C),m.push(w),E===1&&T&&Cs.set(w,!0),C===1&&w.setAttribute(l,"true"),T||w.setAttribute(i,"true")}catch(R){console.error("aria-hidden: cannot operate on ",w,R)}})};return x(r),h.clear(),Kd++,function(){m.forEach(function(g){var w=jl.get(g)-1,N=d.get(g)-1;jl.set(g,w),d.set(g,N),w||(Cs.has(g)||g.removeAttribute(i),Cs.delete(g)),N||g.removeAttribute(l)}),Kd--,Kd||(jl=new WeakMap,jl=new WeakMap,Cs=new WeakMap,Rs={})}},U0=function(n,r,l){l===void 0&&(l="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),c=o5(n);return c?(i.push.apply(i,Array.from(c.querySelectorAll("[aria-live], script"))),s5(i,c,l,"aria-hidden")):function(){return null}},sc="Dialog",[B0,H0]=lr(sc),[c5,Mn]=B0(sc),$0=n=>{const{__scopeDialog:r,children:l,open:i,defaultOpen:c,onOpenChange:d,modal:m=!0}=n,h=v.useRef(null),y=v.useRef(null),[p,x]=Bl({prop:i,defaultProp:c??!1,onChange:d,caller:sc});return f.jsx(c5,{scope:r,triggerRef:h,contentRef:y,contentId:Wa(),titleId:Wa(),descriptionId:Wa(),open:p,onOpenChange:x,onOpenToggle:v.useCallback(()=>x(g=>!g),[x]),modal:m,children:l})};$0.displayName=sc;var q0="DialogTrigger",V0=v.forwardRef((n,r)=>{const{__scopeDialog:l,...i}=n,c=Mn(q0,l),d=tt(r,c.triggerRef);return f.jsx(Ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":c.open,"aria-controls":c.contentId,"data-state":Xf(c.open),...i,ref:d,onClick:ke(n.onClick,c.onOpenToggle)})});V0.displayName=q0;var Gf="DialogPortal",[u5,Y0]=B0(Gf,{forceMount:void 0}),P0=n=>{const{__scopeDialog:r,forceMount:l,children:i,container:c}=n,d=Mn(Gf,r);return f.jsx(u5,{scope:r,forceMount:l,children:v.Children.map(i,m=>f.jsx(Pl,{present:l||d.open,children:f.jsx(Yf,{asChild:!0,container:c,children:m})}))})};P0.displayName=Gf;var Vs="DialogOverlay",G0=v.forwardRef((n,r)=>{const l=Y0(Vs,n.__scopeDialog),{forceMount:i=l.forceMount,...c}=n,d=Mn(Vs,n.__scopeDialog);return d.modal?f.jsx(Pl,{present:i||d.open,children:f.jsx(f5,{...c,ref:r})}):null});G0.displayName=Vs;var d5=Wo("DialogOverlay.RemoveScroll"),f5=v.forwardRef((n,r)=>{const{__scopeDialog:l,...i}=n,c=Mn(Vs,l);return f.jsx(Pf,{as:d5,allowPinchZoom:!0,shards:[c.contentRef],children:f.jsx(Ue.div,{"data-state":Xf(c.open),...i,ref:r,style:{pointerEvents:"auto",...i.style}})})}),kr="DialogContent",I0=v.forwardRef((n,r)=>{const l=Y0(kr,n.__scopeDialog),{forceMount:i=l.forceMount,...c}=n,d=Mn(kr,n.__scopeDialog);return f.jsx(Pl,{present:i||d.open,children:d.modal?f.jsx(m5,{...c,ref:r}):f.jsx(h5,{...c,ref:r})})});I0.displayName=kr;var m5=v.forwardRef((n,r)=>{const l=Mn(kr,n.__scopeDialog),i=v.useRef(null),c=tt(r,l.contentRef,i);return v.useEffect(()=>{const d=i.current;if(d)return U0(d)},[]),f.jsx(X0,{...n,ref:c,trapFocus:l.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ke(n.onCloseAutoFocus,d=>{var m;d.preventDefault(),(m=l.triggerRef.current)==null||m.focus()}),onPointerDownOutside:ke(n.onPointerDownOutside,d=>{const m=d.detail.originalEvent,h=m.button===0&&m.ctrlKey===!0;(m.button===2||h)&&d.preventDefault()}),onFocusOutside:ke(n.onFocusOutside,d=>d.preventDefault())})}),h5=v.forwardRef((n,r)=>{const l=Mn(kr,n.__scopeDialog),i=v.useRef(!1),c=v.useRef(!1);return f.jsx(X0,{...n,ref:r,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var m,h;(m=n.onCloseAutoFocus)==null||m.call(n,d),d.defaultPrevented||(i.current||(h=l.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=l.triggerRef.current)==null?void 0:p.contains(m))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&c.current&&d.preventDefault()}})}),X0=v.forwardRef((n,r)=>{const{__scopeDialog:l,trapFocus:i,onOpenAutoFocus:c,onCloseAutoFocus:d,...m}=n,h=Mn(kr,l),y=v.useRef(null),p=tt(r,y);return A0(),f.jsxs(f.Fragment,{children:[f.jsx(Vf,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:c,onUnmountAutoFocus:d,children:f.jsx(qf,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Xf(h.open),...m,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),f.jsxs(f.Fragment,{children:[f.jsx(g5,{titleId:h.titleId}),f.jsx(y5,{contentRef:y,descriptionId:h.descriptionId})]})]})}),If="DialogTitle",K0=v.forwardRef((n,r)=>{const{__scopeDialog:l,...i}=n,c=Mn(If,l);return f.jsx(Ue.h2,{id:c.titleId,...i,ref:r})});K0.displayName=If;var Q0="DialogDescription",Z0=v.forwardRef((n,r)=>{const{__scopeDialog:l,...i}=n,c=Mn(Q0,l);return f.jsx(Ue.p,{id:c.descriptionId,...i,ref:r})});Z0.displayName=Q0;var F0="DialogClose",J0=v.forwardRef((n,r)=>{const{__scopeDialog:l,...i}=n,c=Mn(F0,l);return f.jsx(Ue.button,{type:"button",...i,ref:r,onClick:ke(n.onClick,()=>c.onOpenChange(!1))})});J0.displayName=F0;function Xf(n){return n?"open":"closed"}var W0="DialogTitleWarning",[p5,eb]=GC(W0,{contentName:kr,titleName:If,docsSlug:"dialog"}),g5=({titleId:n})=>{const r=eb(W0),l=`\`${r.contentName}\` requires a \`${r.titleName}\` for the component to be accessible for screen reader users.
|
|
307
|
-
|
|
308
|
-
If you want to hide the \`${r.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
309
|
-
|
|
310
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${r.docsSlug}`;return v.useEffect(()=>{n&&(document.getElementById(n)||console.error(l))},[l,n]),null},v5="DialogDescriptionWarning",y5=({contentRef:n,descriptionId:r})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${eb(v5).contentName}}.`;return v.useEffect(()=>{var d;const c=(d=n.current)==null?void 0:d.getAttribute("aria-describedby");r&&c&&(document.getElementById(r)||console.warn(i))},[i,n,r]),null},tb=$0,nb=V0,ab=P0,Kf=G0,Qf=I0,Zf=K0,Ff=Z0,cc=J0;const b5=tb,x5=nb,S5=ab,VM=cc,rb=v.forwardRef(({className:n,...r},l)=>f.jsx(Kf,{ref:l,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),...r}));rb.displayName=Kf.displayName;const lb=v.forwardRef(({className:n,children:r,...l},i)=>f.jsxs(S5,{children:[f.jsx(rb,{}),f.jsxs(Qf,{ref:i,className:le("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-3 rounded-sm border bg-background p-4 shadow-[0_24px_84px_-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,children:[r,f.jsxs(cc,{className:"absolute right-2.5 top-2.5 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(l0,{className:"h-3.5 w-3.5"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));lb.displayName=Qf.displayName;const ob=({className:n,...r})=>f.jsx("div",{className:le("flex flex-col space-y-1.5 text-center sm:text-left",n),...r});ob.displayName="DialogHeader";const w5=({className:n,...r})=>f.jsx("div",{className:le("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});w5.displayName="DialogFooter";const ib=v.forwardRef(({className:n,...r},l)=>f.jsx(Zf,{ref:l,className:le("text-sm font-semibold leading-none tracking-tight",n),...r}));ib.displayName=Zf.displayName;const sb=v.forwardRef(({className:n,...r},l)=>f.jsx(Ff,{ref:l,className:le("text-[11px] text-muted-foreground",n),...r}));sb.displayName=Ff.displayName;function E5({children:n,open:r,onOpenChange:l,showTrigger:i=!0}){const[c,d]=v.useState(!1),m=r??c,h=v.useCallback(y=>{r===void 0&&d(y),l==null||l(y)},[r,l]);return f.jsxs(b5,{open:m,onOpenChange:h,children:[i&&f.jsx(x5,{asChild:!0,children:f.jsx(xn,{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(sT,{className:"h-4 w-4"})})}),f.jsxs(lb,{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-sm border-border/70 bg-background/96 p-0 shadow-[0_28px_90px_-58px_rgba(15,23,42,0.75)] backdrop-blur-xl",children:[f.jsxs(ob,{className:"shrink-0 border-b border-border/60 px-3 py-1.5 sm:px-3.5",children:[f.jsxs(ib,{className:"flex items-center gap-1.5 text-[11px]",children:[f.jsx(QN,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),f.jsx(sb,{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 ey(n,[r,l]){return Math.min(l,Math.max(r,n))}function cb(n){const r=n+"CollectionProvider",[l,i]=lr(r),[c,d]=l(r,{collectionRef:{current:null},itemMap:new Map}),m=E=>{const{scope:C,children:R}=E,_=ae.useRef(null),O=ae.useRef(new Map).current;return f.jsx(c,{scope:C,itemMap:O,collectionRef:_,children:R})};m.displayName=r;const h=n+"CollectionSlot",y=Wo(h),p=ae.forwardRef((E,C)=>{const{scope:R,children:_}=E,O=d(h,R),z=tt(C,O.collectionRef);return f.jsx(y,{ref:z,children:_})});p.displayName=h;const x=n+"CollectionItemSlot",g="data-radix-collection-item",w=Wo(x),N=ae.forwardRef((E,C)=>{const{scope:R,children:_,...O}=E,z=ae.useRef(null),B=tt(C,z),P=d(x,R);return ae.useEffect(()=>(P.itemMap.set(z,{ref:z,...O}),()=>void P.itemMap.delete(z))),f.jsx(w,{[g]:"",ref:B,children:_})});N.displayName=x;function T(E){const C=d(n+"CollectionConsumer",E);return ae.useCallback(()=>{const _=C.collectionRef.current;if(!_)return[];const O=Array.from(_.querySelectorAll(`[${g}]`));return Array.from(C.itemMap.values()).sort((P,q)=>O.indexOf(P.ref.current)-O.indexOf(q.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:m,Slot:p,ItemSlot:N},T,i]}var N5=v.createContext(void 0);function Jf(n){const r=v.useContext(N5);return n||r||"ltr"}const T5=["top","right","bottom","left"],nr=Math.min,on=Math.max,Ys=Math.round,As=Math.floor,Jn=n=>({x:n,y:n}),C5={left:"right",right:"left",bottom:"top",top:"bottom"};function gf(n,r,l){return on(n,nr(r,l))}function Sa(n,r){return typeof n=="function"?n(r):n}function wa(n){return n.split("-")[0]}function Gl(n){return n.split("-")[1]}function Wf(n){return n==="x"?"y":"x"}function em(n){return n==="y"?"height":"width"}function Zn(n){const r=n[0];return r==="t"||r==="b"?"y":"x"}function tm(n){return Wf(Zn(n))}function R5(n,r,l){l===void 0&&(l=!1);const i=Gl(n),c=tm(n),d=em(c);let m=c==="x"?i===(l?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[d]>r.floating[d]&&(m=Ps(m)),[m,Ps(m)]}function A5(n){const r=Ps(n);return[vf(n),r,vf(r)]}function vf(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const ty=["left","right"],ny=["right","left"],j5=["top","bottom"],_5=["bottom","top"];function M5(n,r,l){switch(n){case"top":case"bottom":return l?r?ny:ty:r?ty:ny;case"left":case"right":return r?j5:_5;default:return[]}}function O5(n,r,l,i){const c=Gl(n);let d=M5(wa(n),l==="start",i);return c&&(d=d.map(m=>m+"-"+c),r&&(d=d.concat(d.map(vf)))),d}function Ps(n){const r=wa(n);return C5[r]+n.slice(r.length)}function k5(n){return{top:0,right:0,bottom:0,left:0,...n}}function ub(n){return typeof n!="number"?k5(n):{top:n,right:n,bottom:n,left:n}}function Gs(n){const{x:r,y:l,width:i,height:c}=n;return{width:i,height:c,top:l,left:r,right:r+i,bottom:l+c,x:r,y:l}}function ay(n,r,l){let{reference:i,floating:c}=n;const d=Zn(r),m=tm(r),h=em(m),y=wa(r),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(Gl(r)){case"start":N[m]-=w*(l&&p?-1:1);break;case"end":N[m]+=w*(l&&p?-1:1);break}return N}async function D5(n,r){var l;r===void 0&&(r={});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}=Sa(r,n),T=ub(N),C=h[w?g==="floating"?"reference":"floating":g],R=Gs(await d.getClippingRect({element:(l=await(d.isElement==null?void 0:d.isElement(C)))==null||l?C:C.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(h.floating)),boundary:p,rootBoundary:x,strategy:y})),_=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=Gs(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:_,offsetParent:O,strategy:y}):_);return{top:(R.top-B.top+T.top)/z.y,bottom:(B.bottom-R.bottom+T.bottom)/z.y,left:(R.left-B.left+T.left)/z.x,right:(B.right-R.right+T.right)/z.x}}const z5=50,L5=async(n,r,l)=>{const{placement:i="bottom",strategy:c="absolute",middleware:d=[],platform:m}=l,h=m.detectOverflow?m:{...m,detectOverflow:D5},y=await(m.isRTL==null?void 0:m.isRTL(r));let p=await m.getElementRects({reference:n,floating:r,strategy:c}),{x,y:g}=ay(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:R,fn:_}=C,{x:O,y:z,data:B,reset:P}=await _({x,y:g,initialPlacement:i,placement:w,strategy:c,middlewareData:T,rects:p,platform:h,elements:{reference:n,floating:r}});x=O??x,g=z??g,T[R]={...T[R],...B},P&&N<z5&&(N++,typeof P=="object"&&(P.placement&&(w=P.placement),P.rects&&(p=P.rects===!0?await m.getElementRects({reference:n,floating:r,strategy:c}):P.rects),{x,y:g}=ay(p,w,y)),E=-1)}return{x,y:g,placement:w,strategy:c,middlewareData:T}},U5=n=>({name:"arrow",options:n,async fn(r){const{x:l,y:i,placement:c,rects:d,platform:m,elements:h,middlewareData:y}=r,{element:p,padding:x=0}=Sa(n,r)||{};if(p==null)return{};const g=ub(x),w={x:l,y:i},N=tm(c),T=em(N),E=await m.getDimensions(p),C=N==="y",R=C?"top":"left",_=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],P=await(m.getOffsetParent==null?void 0:m.getOffsetParent(p));let q=P?P[O]:0;(!q||!await(m.isElement==null?void 0:m.isElement(P)))&&(q=h.floating[O]||d.floating[T]);const $=z/2-B/2,ne=q/2-E[T]/2-1,re=nr(g[R],ne),fe=nr(g[_],ne),me=re,ie=q-E[T]-fe,ue=q/2-E[T]/2+$,oe=gf(me,ue,ie),M=!y.arrow&&Gl(c)!=null&&ue!==oe&&d.reference[T]/2-(ue<me?re:fe)-E[T]/2<0,V=M?ue<me?ue-me:ue-ie:0;return{[N]:w[N]+V,data:{[N]:oe,centerOffset:ue-oe-V,...M&&{alignmentOffset:V}},reset:M}}}),B5=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var l,i;const{placement:c,middlewareData:d,rects:m,initialPlacement:h,platform:y,elements:p}=r,{mainAxis:x=!0,crossAxis:g=!0,fallbackPlacements:w,fallbackStrategy:N="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:E=!0,...C}=Sa(n,r);if((l=d.arrow)!=null&&l.alignmentOffset)return{};const R=wa(c),_=Zn(h),O=wa(h)===h,z=await(y.isRTL==null?void 0:y.isRTL(p.floating)),B=w||(O||!E?[Ps(h)]:A5(h)),P=T!=="none";!w&&P&&B.push(...O5(h,E,T,z));const q=[h,...B],$=await y.detectOverflow(r,C),ne=[];let re=((i=d.flip)==null?void 0:i.overflows)||[];if(x&&ne.push($[R]),g){const ue=R5(c,m,z);ne.push($[ue[0]],$[ue[1]])}if(re=[...re,{placement:c,overflows:ne}],!ne.every(ue=>ue<=0)){var fe,me;const ue=(((fe=d.flip)==null?void 0:fe.index)||0)+1,oe=q[ue];if(oe&&(!(g==="alignment"?_!==Zn(oe):!1)||re.every(Z=>Zn(Z.placement)===_?Z.overflows[0]>0:!0)))return{data:{index:ue,overflows:re},reset:{placement:oe}};let M=(me=re.filter(V=>V.overflows[0]<=0).sort((V,Z)=>V.overflows[1]-Z.overflows[1])[0])==null?void 0:me.placement;if(!M)switch(N){case"bestFit":{var ie;const V=(ie=re.filter(Z=>{if(P){const de=Zn(Z.placement);return de===_||de==="y"}return!0}).map(Z=>[Z.placement,Z.overflows.filter(de=>de>0).reduce((de,F)=>de+F,0)]).sort((Z,de)=>Z[1]-de[1])[0])==null?void 0:ie[0];V&&(M=V);break}case"initialPlacement":M=h;break}if(c!==M)return{reset:{placement:M}}}return{}}}};function ry(n,r){return{top:n.top-r.height,right:n.right-r.width,bottom:n.bottom-r.height,left:n.left-r.width}}function ly(n){return T5.some(r=>n[r]>=0)}const H5=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(r){const{rects:l,platform:i}=r,{strategy:c="referenceHidden",...d}=Sa(n,r);switch(c){case"referenceHidden":{const m=await i.detectOverflow(r,{...d,elementContext:"reference"}),h=ry(m,l.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:ly(h)}}}case"escaped":{const m=await i.detectOverflow(r,{...d,altBoundary:!0}),h=ry(m,l.floating);return{data:{escapedOffsets:h,escaped:ly(h)}}}default:return{}}}}},db=new Set(["left","top"]);async function $5(n,r){const{placement:l,platform:i,elements:c}=n,d=await(i.isRTL==null?void 0:i.isRTL(c.floating)),m=wa(l),h=Gl(l),y=Zn(l)==="y",p=db.has(m)?-1:1,x=d&&y?-1:1,g=Sa(r,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 q5=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var l,i;const{x:c,y:d,placement:m,middlewareData:h}=r,y=await $5(r,n);return m===((l=h.offset)==null?void 0:l.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:c+y.x,y:d+y.y,data:{...y,placement:m}}}}},V5=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:l,y:i,placement:c,platform:d}=r,{mainAxis:m=!0,crossAxis:h=!1,limiter:y={fn:R=>{let{x:_,y:O}=R;return{x:_,y:O}}},...p}=Sa(n,r),x={x:l,y:i},g=await d.detectOverflow(r,p),w=Zn(wa(c)),N=Wf(w);let T=x[N],E=x[w];if(m){const R=N==="y"?"top":"left",_=N==="y"?"bottom":"right",O=T+g[R],z=T-g[_];T=gf(O,T,z)}if(h){const R=w==="y"?"top":"left",_=w==="y"?"bottom":"right",O=E+g[R],z=E-g[_];E=gf(O,E,z)}const C=y.fn({...r,[N]:T,[w]:E});return{...C,data:{x:C.x-l,y:C.y-i,enabled:{[N]:m,[w]:h}}}}}},Y5=function(n){return n===void 0&&(n={}),{options:n,fn(r){const{x:l,y:i,placement:c,rects:d,middlewareData:m}=r,{offset:h=0,mainAxis:y=!0,crossAxis:p=!0}=Sa(n,r),x={x:l,y:i},g=Zn(c),w=Wf(g);let N=x[w],T=x[g];const E=Sa(h,r),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 R,_;const O=w==="y"?"width":"height",z=db.has(wa(c)),B=d.reference[g]-d.floating[O]+(z&&((R=m.offset)==null?void 0:R[g])||0)+(z?0:C.crossAxis),P=d.reference[g]+d.reference[O]+(z?0:((_=m.offset)==null?void 0:_[g])||0)-(z?C.crossAxis:0);T<B?T=B:T>P&&(T=P)}return{[w]:N,[g]:T}}}},P5=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){var l,i;const{placement:c,rects:d,platform:m,elements:h}=r,{apply:y=()=>{},...p}=Sa(n,r),x=await m.detectOverflow(r,p),g=wa(c),w=Gl(c),N=Zn(c)==="y",{width:T,height:E}=d.floating;let C,R;g==="top"||g==="bottom"?(C=g,R=w===(await(m.isRTL==null?void 0:m.isRTL(h.floating))?"start":"end")?"left":"right"):(R=g,C=w==="end"?"top":"bottom");const _=E-x.top-x.bottom,O=T-x.left-x.right,z=nr(E-x[C],_),B=nr(T-x[R],O),P=!r.middlewareData.shift;let q=z,$=B;if((l=r.middlewareData.shift)!=null&&l.enabled.x&&($=O),(i=r.middlewareData.shift)!=null&&i.enabled.y&&(q=_),P&&!w){const re=on(x.left,0),fe=on(x.right,0),me=on(x.top,0),ie=on(x.bottom,0);N?$=T-2*(re!==0||fe!==0?re+fe:on(x.left,x.right)):q=E-2*(me!==0||ie!==0?me+ie:on(x.top,x.bottom))}await y({...r,availableWidth:$,availableHeight:q});const ne=await m.getDimensions(h.floating);return T!==ne.width||E!==ne.height?{reset:{rects:!0}}:{}}}};function uc(){return typeof window<"u"}function Il(n){return fb(n)?(n.nodeName||"").toLowerCase():"#document"}function sn(n){var r;return(n==null||(r=n.ownerDocument)==null?void 0:r.defaultView)||window}function ea(n){var r;return(r=(fb(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function fb(n){return uc()?n instanceof Node||n instanceof sn(n).Node:!1}function jn(n){return uc()?n instanceof Element||n instanceof sn(n).Element:!1}function Ea(n){return uc()?n instanceof HTMLElement||n instanceof sn(n).HTMLElement:!1}function oy(n){return!uc()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof sn(n).ShadowRoot}function ri(n){const{overflow:r,overflowX:l,overflowY:i,display:c}=_n(n);return/auto|scroll|overlay|hidden|clip/.test(r+i+l)&&c!=="inline"&&c!=="contents"}function G5(n){return/^(table|td|th)$/.test(Il(n))}function dc(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const I5=/transform|translate|scale|rotate|perspective|filter/,X5=/paint|layout|strict|content/,_r=n=>!!n&&n!=="none";let Qd;function nm(n){const r=jn(n)?_n(n):n;return _r(r.transform)||_r(r.translate)||_r(r.scale)||_r(r.rotate)||_r(r.perspective)||!am()&&(_r(r.backdropFilter)||_r(r.filter))||I5.test(r.willChange||"")||X5.test(r.contain||"")}function K5(n){let r=ar(n);for(;Ea(r)&&!Hl(r);){if(nm(r))return r;if(dc(r))return null;r=ar(r)}return null}function am(){return Qd==null&&(Qd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Qd}function Hl(n){return/^(html|body|#document)$/.test(Il(n))}function _n(n){return sn(n).getComputedStyle(n)}function fc(n){return jn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function ar(n){if(Il(n)==="html")return n;const r=n.assignedSlot||n.parentNode||oy(n)&&n.host||ea(n);return oy(r)?r.host:r}function mb(n){const r=ar(n);return Hl(r)?n.ownerDocument?n.ownerDocument.body:n.body:Ea(r)&&ri(r)?r:mb(r)}function ei(n,r,l){var i;r===void 0&&(r=[]),l===void 0&&(l=!0);const c=mb(n),d=c===((i=n.ownerDocument)==null?void 0:i.body),m=sn(c);if(d){const h=yf(m);return r.concat(m,m.visualViewport||[],ri(c)?c:[],h&&l?ei(h):[])}else return r.concat(c,ei(c,[],l))}function yf(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function hb(n){const r=_n(n);let l=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const c=Ea(n),d=c?n.offsetWidth:l,m=c?n.offsetHeight:i,h=Ys(l)!==d||Ys(i)!==m;return h&&(l=d,i=m),{width:l,height:i,$:h}}function rm(n){return jn(n)?n:n.contextElement}function Ll(n){const r=rm(n);if(!Ea(r))return Jn(1);const l=r.getBoundingClientRect(),{width:i,height:c,$:d}=hb(r);let m=(d?Ys(l.width):l.width)/i,h=(d?Ys(l.height):l.height)/c;return(!m||!Number.isFinite(m))&&(m=1),(!h||!Number.isFinite(h))&&(h=1),{x:m,y:h}}const Q5=Jn(0);function pb(n){const r=sn(n);return!am()||!r.visualViewport?Q5:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Z5(n,r,l){return r===void 0&&(r=!1),!l||r&&l!==sn(n)?!1:r}function Dr(n,r,l,i){r===void 0&&(r=!1),l===void 0&&(l=!1);const c=n.getBoundingClientRect(),d=rm(n);let m=Jn(1);r&&(i?jn(i)&&(m=Ll(i)):m=Ll(n));const h=Z5(d,l,i)?pb(d):Jn(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=sn(d),N=i&&jn(i)?sn(i):i;let T=w,E=yf(T);for(;E&&i&&N!==T;){const C=Ll(E),R=E.getBoundingClientRect(),_=_n(E),O=R.left+(E.clientLeft+parseFloat(_.paddingLeft))*C.x,z=R.top+(E.clientTop+parseFloat(_.paddingTop))*C.y;y*=C.x,p*=C.y,x*=C.x,g*=C.y,y+=O,p+=z,T=sn(E),E=yf(T)}}return Gs({width:x,height:g,x:y,y:p})}function mc(n,r){const l=fc(n).scrollLeft;return r?r.left+l:Dr(ea(n)).left+l}function gb(n,r){const l=n.getBoundingClientRect(),i=l.left+r.scrollLeft-mc(n,l),c=l.top+r.scrollTop;return{x:i,y:c}}function F5(n){let{elements:r,rect:l,offsetParent:i,strategy:c}=n;const d=c==="fixed",m=ea(i),h=r?dc(r.floating):!1;if(i===m||h&&d)return l;let y={scrollLeft:0,scrollTop:0},p=Jn(1);const x=Jn(0),g=Ea(i);if((g||!g&&!d)&&((Il(i)!=="body"||ri(m))&&(y=fc(i)),g)){const N=Dr(i);p=Ll(i),x.x=N.x+i.clientLeft,x.y=N.y+i.clientTop}const w=m&&!g&&!d?gb(m,y):Jn(0);return{width:l.width*p.x,height:l.height*p.y,x:l.x*p.x-y.scrollLeft*p.x+x.x+w.x,y:l.y*p.y-y.scrollTop*p.y+x.y+w.y}}function J5(n){return Array.from(n.getClientRects())}function W5(n){const r=ea(n),l=fc(n),i=n.ownerDocument.body,c=on(r.scrollWidth,r.clientWidth,i.scrollWidth,i.clientWidth),d=on(r.scrollHeight,r.clientHeight,i.scrollHeight,i.clientHeight);let m=-l.scrollLeft+mc(n);const h=-l.scrollTop;return _n(i).direction==="rtl"&&(m+=on(r.clientWidth,i.clientWidth)-c),{width:c,height:d,x:m,y:h}}const iy=25;function eA(n,r){const l=sn(n),i=ea(n),c=l.visualViewport;let d=i.clientWidth,m=i.clientHeight,h=0,y=0;if(c){d=c.width,m=c.height;const x=am();(!x||x&&r==="fixed")&&(h=c.offsetLeft,y=c.offsetTop)}const p=mc(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<=iy&&(d-=T)}else p<=iy&&(d+=p);return{width:d,height:m,x:h,y}}function tA(n,r){const l=Dr(n,!0,r==="fixed"),i=l.top+n.clientTop,c=l.left+n.clientLeft,d=Ea(n)?Ll(n):Jn(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 sy(n,r,l){let i;if(r==="viewport")i=eA(n,l);else if(r==="document")i=W5(ea(n));else if(jn(r))i=tA(r,l);else{const c=pb(n);i={x:r.x-c.x,y:r.y-c.y,width:r.width,height:r.height}}return Gs(i)}function vb(n,r){const l=ar(n);return l===r||!jn(l)||Hl(l)?!1:_n(l).position==="fixed"||vb(l,r)}function nA(n,r){const l=r.get(n);if(l)return l;let i=ei(n,[],!1).filter(h=>jn(h)&&Il(h)!=="body"),c=null;const d=_n(n).position==="fixed";let m=d?ar(n):n;for(;jn(m)&&!Hl(m);){const h=_n(m),y=nm(m);!y&&h.position==="fixed"&&(c=null),(d?!y&&!c:!y&&h.position==="static"&&!!c&&(c.position==="absolute"||c.position==="fixed")||ri(m)&&!y&&vb(n,m))?i=i.filter(x=>x!==m):c=h,m=ar(m)}return r.set(n,i),i}function aA(n){let{element:r,boundary:l,rootBoundary:i,strategy:c}=n;const m=[...l==="clippingAncestors"?dc(r)?[]:nA(r,this._c):[].concat(l),i],h=sy(r,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=sy(r,m[w],c);y=on(N.top,y),p=nr(N.right,p),x=nr(N.bottom,x),g=on(N.left,g)}return{width:p-g,height:x-y,x:g,y}}function rA(n){const{width:r,height:l}=hb(n);return{width:r,height:l}}function lA(n,r,l){const i=Ea(r),c=ea(r),d=l==="fixed",m=Dr(n,!0,d,r);let h={scrollLeft:0,scrollTop:0};const y=Jn(0);function p(){y.x=mc(c)}if(i||!i&&!d)if((Il(r)!=="body"||ri(c))&&(h=fc(r)),i){const N=Dr(r,!0,d,r);y.x=N.x+r.clientLeft,y.y=N.y+r.clientTop}else c&&p();d&&!i&&c&&p();const x=c&&!i&&!d?gb(c,h):Jn(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 Zd(n){return _n(n).position==="static"}function cy(n,r){if(!Ea(n)||_n(n).position==="fixed")return null;if(r)return r(n);let l=n.offsetParent;return ea(n)===l&&(l=l.ownerDocument.body),l}function yb(n,r){const l=sn(n);if(dc(n))return l;if(!Ea(n)){let c=ar(n);for(;c&&!Hl(c);){if(jn(c)&&!Zd(c))return c;c=ar(c)}return l}let i=cy(n,r);for(;i&&G5(i)&&Zd(i);)i=cy(i,r);return i&&Hl(i)&&Zd(i)&&!nm(i)?l:i||K5(n)||l}const oA=async function(n){const r=this.getOffsetParent||yb,l=this.getDimensions,i=await l(n.floating);return{reference:lA(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function iA(n){return _n(n).direction==="rtl"}const sA={convertOffsetParentRelativeRectToViewportRelativeRect:F5,getDocumentElement:ea,getClippingRect:aA,getOffsetParent:yb,getElementRects:oA,getClientRects:J5,getDimensions:rA,getScale:Ll,isElement:jn,isRTL:iA};function bb(n,r){return n.x===r.x&&n.y===r.y&&n.width===r.width&&n.height===r.height}function cA(n,r){let l=null,i;const c=ea(n);function d(){var h;clearTimeout(i),(h=l)==null||h.disconnect(),l=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||r(),!w||!N)return;const T=As(g),E=As(c.clientWidth-(x+w)),C=As(c.clientHeight-(g+N)),R=As(x),O={rootMargin:-T+"px "+-E+"px "+-C+"px "+-R+"px",threshold:on(0,nr(1,y))||1};let z=!0;function B(P){const q=P[0].intersectionRatio;if(q!==y){if(!z)return m();q?m(!1,q):i=setTimeout(()=>{m(!1,1e-7)},1e3)}q===1&&!bb(p,n.getBoundingClientRect())&&m(),z=!1}try{l=new IntersectionObserver(B,{...O,root:c.ownerDocument})}catch{l=new IntersectionObserver(B,O)}l.observe(n)}return m(!0),d}function uA(n,r,l,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=rm(n),x=c||d?[...p?ei(p):[],...r?ei(r):[]]:[];x.forEach(R=>{c&&R.addEventListener("scroll",l,{passive:!0}),d&&R.addEventListener("resize",l)});const g=p&&h?cA(p,l):null;let w=-1,N=null;m&&(N=new ResizeObserver(R=>{let[_]=R;_&&_.target===p&&N&&r&&(N.unobserve(r),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var O;(O=N)==null||O.observe(r)})),l()}),p&&!y&&N.observe(p),r&&N.observe(r));let T,E=y?Dr(n):null;y&&C();function C(){const R=Dr(n);E&&!bb(E,R)&&l(),E=R,T=requestAnimationFrame(C)}return l(),()=>{var R;x.forEach(_=>{c&&_.removeEventListener("scroll",l),d&&_.removeEventListener("resize",l)}),g==null||g(),(R=N)==null||R.disconnect(),N=null,y&&cancelAnimationFrame(T)}}const dA=q5,fA=V5,mA=B5,hA=P5,pA=H5,uy=U5,gA=Y5,vA=(n,r,l)=>{const i=new Map,c={platform:sA,...l},d={...c.platform,_c:i};return L5(n,r,{...c,platform:d})};var yA=typeof document<"u",bA=function(){},Ds=yA?v.useLayoutEffect:bA;function Is(n,r){if(n===r)return!0;if(typeof n!=typeof r)return!1;if(typeof n=="function"&&n.toString()===r.toString())return!0;let l,i,c;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(l=n.length,l!==r.length)return!1;for(i=l;i--!==0;)if(!Is(n[i],r[i]))return!1;return!0}if(c=Object.keys(n),l=c.length,l!==Object.keys(r).length)return!1;for(i=l;i--!==0;)if(!{}.hasOwnProperty.call(r,c[i]))return!1;for(i=l;i--!==0;){const d=c[i];if(!(d==="_owner"&&n.$$typeof)&&!Is(n[d],r[d]))return!1}return!0}return n!==n&&r!==r}function xb(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function dy(n,r){const l=xb(n);return Math.round(r*l)/l}function Fd(n){const r=v.useRef(n);return Ds(()=>{r.current=n}),r}function xA(n){n===void 0&&(n={});const{placement:r="bottom",strategy:l="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:l,placement:r,middlewareData:{},isPositioned:!1}),[w,N]=v.useState(i);Is(w,i)||N(i);const[T,E]=v.useState(null),[C,R]=v.useState(null),_=v.useCallback(Z=>{Z!==P.current&&(P.current=Z,E(Z))},[]),O=v.useCallback(Z=>{Z!==q.current&&(q.current=Z,R(Z))},[]),z=d||T,B=m||C,P=v.useRef(null),q=v.useRef(null),$=v.useRef(x),ne=y!=null,re=Fd(y),fe=Fd(c),me=Fd(p),ie=v.useCallback(()=>{if(!P.current||!q.current)return;const Z={placement:r,strategy:l,middleware:w};fe.current&&(Z.platform=fe.current),vA(P.current,q.current,Z).then(de=>{const F={...de,isPositioned:me.current!==!1};ue.current&&!Is($.current,F)&&($.current=F,ai.flushSync(()=>{g(F)}))})},[w,r,l,fe,me]);Ds(()=>{p===!1&&$.current.isPositioned&&($.current.isPositioned=!1,g(Z=>({...Z,isPositioned:!1})))},[p]);const ue=v.useRef(!1);Ds(()=>(ue.current=!0,()=>{ue.current=!1}),[]),Ds(()=>{if(z&&(P.current=z),B&&(q.current=B),z&&B){if(re.current)return re.current(z,B,ie);ie()}},[z,B,ie,re,ne]);const oe=v.useMemo(()=>({reference:P,floating:q,setReference:_,setFloating:O}),[_,O]),M=v.useMemo(()=>({reference:z,floating:B}),[z,B]),V=v.useMemo(()=>{const Z={position:l,left:0,top:0};if(!M.floating)return Z;const de=dy(M.floating,x.x),F=dy(M.floating,x.y);return h?{...Z,transform:"translate("+de+"px, "+F+"px)",...xb(M.floating)>=1.5&&{willChange:"transform"}}:{position:l,left:de,top:F}},[l,h,M.floating,x.x,x.y]);return v.useMemo(()=>({...x,update:ie,refs:oe,elements:M,floatingStyles:V}),[x,ie,oe,M,V])}const SA=n=>{function r(l){return{}.hasOwnProperty.call(l,"current")}return{name:"arrow",options:n,fn(l){const{element:i,padding:c}=typeof n=="function"?n(l):n;return i&&r(i)?i.current!=null?uy({element:i.current,padding:c}).fn(l):{}:i?uy({element:i,padding:c}).fn(l):{}}}},wA=(n,r)=>{const l=dA(n);return{name:l.name,fn:l.fn,options:[n,r]}},EA=(n,r)=>{const l=fA(n);return{name:l.name,fn:l.fn,options:[n,r]}},NA=(n,r)=>({fn:gA(n).fn,options:[n,r]}),TA=(n,r)=>{const l=mA(n);return{name:l.name,fn:l.fn,options:[n,r]}},CA=(n,r)=>{const l=hA(n);return{name:l.name,fn:l.fn,options:[n,r]}},RA=(n,r)=>{const l=pA(n);return{name:l.name,fn:l.fn,options:[n,r]}},AA=(n,r)=>{const l=SA(n);return{name:l.name,fn:l.fn,options:[n,r]}};var jA="Arrow",Sb=v.forwardRef((n,r)=>{const{children:l,width:i=10,height:c=5,...d}=n;return f.jsx(Ue.svg,{...d,ref:r,width:i,height:c,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?l:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Sb.displayName=jA;var _A=Sb;function wb(n){const[r,l]=v.useState(void 0);return Lt(()=>{if(n){l({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;l({width:m,height:h})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else l(void 0)},[n]),r}var lm="Popper",[Eb,Nb]=lr(lm),[MA,Tb]=Eb(lm),Cb=n=>{const{__scopePopper:r,children:l}=n,[i,c]=v.useState(null);return f.jsx(MA,{scope:r,anchor:i,onAnchorChange:c,children:l})};Cb.displayName=lm;var Rb="PopperAnchor",Ab=v.forwardRef((n,r)=>{const{__scopePopper:l,virtualRef:i,...c}=n,d=Tb(Rb,l),m=v.useRef(null),h=tt(r,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})});Ab.displayName=Rb;var om="PopperContent",[OA,kA]=Eb(om),jb=v.forwardRef((n,r)=>{var ee,ce,J,ve,be,Se;const{__scopePopper:l,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=Tb(om,l),[R,_]=v.useState(null),O=tt(r,He=>_(He)),[z,B]=v.useState(null),P=wb(z),q=(P==null?void 0:P.width)??0,$=(P==null?void 0:P.height)??0,ne=i+(d!=="center"?"-"+d:""),re=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},fe=Array.isArray(p)?p:[p],me=fe.length>0,ie={padding:re,boundary:fe.filter(zA),altBoundary:me},{refs:ue,floatingStyles:oe,placement:M,isPositioned:V,middlewareData:Z}=xA({strategy:"fixed",placement:ne,whileElementsMounted:(...He)=>uA(...He,{animationFrame:N==="always"}),elements:{reference:C.anchor},middleware:[wA({mainAxis:c+$,alignmentAxis:m}),y&&EA({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?NA():void 0,...ie}),y&&TA({...ie}),CA({...ie,apply:({elements:He,rects:_e,availableWidth:$e,availableHeight:ft})=>{const{width:Ge,height:Ut}=_e.reference,pt=He.floating.style;pt.setProperty("--radix-popper-available-width",`${$e}px`),pt.setProperty("--radix-popper-available-height",`${ft}px`),pt.setProperty("--radix-popper-anchor-width",`${Ge}px`),pt.setProperty("--radix-popper-anchor-height",`${Ut}px`)}}),z&&AA({element:z,padding:h}),LA({arrowWidth:q,arrowHeight:$}),w&&RA({strategy:"referenceHidden",...ie})]}),[de,F]=Ob(M),A=tr(T);Lt(()=>{V&&(A==null||A())},[V,A]);const G=(ee=Z.arrow)==null?void 0:ee.x,X=(ce=Z.arrow)==null?void 0:ce.y,W=((J=Z.arrow)==null?void 0:J.centerOffset)!==0,[te,se]=v.useState();return Lt(()=>{R&&se(window.getComputedStyle(R).zIndex)},[R]),f.jsx("div",{ref:ue.setFloating,"data-radix-popper-content-wrapper":"",style:{...oe,transform:V?oe.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(ve=Z.transformOrigin)==null?void 0:ve.x,(be=Z.transformOrigin)==null?void 0:be.y].join(" "),...((Se=Z.hide)==null?void 0:Se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:f.jsx(OA,{scope:l,placedSide:de,onArrowChange:B,arrowX:G,arrowY:X,shouldHideArrow:W,children:f.jsx(Ue.div,{"data-side":de,"data-align":F,...E,ref:O,style:{...E.style,animation:V?void 0:"none"}})})})});jb.displayName=om;var _b="PopperArrow",DA={top:"bottom",right:"left",bottom:"top",left:"right"},Mb=v.forwardRef(function(r,l){const{__scopePopper:i,...c}=r,d=kA(_b,i),m=DA[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(_A,{...c,ref:l,style:{...c.style,display:"block"}})})});Mb.displayName=_b;function zA(n){return n!==null}var LA=n=>({name:"transformOrigin",options:n,fn(r){var C,R,_;const{placement:l,rects:i,middlewareData:c}=r,m=((C=c.arrow)==null?void 0:C.centerOffset)!==0,h=m?0:n.arrowWidth,y=m?0:n.arrowHeight,[p,x]=Ob(l),g={start:"0%",center:"50%",end:"100%"}[x],w=(((R=c.arrow)==null?void 0:R.x)??0)+h/2,N=(((_=c.arrow)==null?void 0:_.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 Ob(n){const[r,l="center"]=n.split("-");return[r,l]}var UA=Cb,BA=Ab,HA=jb,$A=Mb;function kb(n){const r=v.useRef({value:n,previous:n});return v.useMemo(()=>(r.current.value!==n&&(r.current.previous=r.current.value,r.current.value=n),r.current.previous),[n])}var Db=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"}),qA="VisuallyHidden",VA=v.forwardRef((n,r)=>f.jsx(Ue.span,{...n,ref:r,style:{...Db,...n.style}}));VA.displayName=qA;var YA=[" ","Enter","ArrowUp","ArrowDown"],PA=[" ","Enter"],zr="Select",[hc,pc,GA]=cb(zr),[Xl]=lr(zr,[GA,Nb]),gc=Nb(),[IA,or]=Xl(zr),[XA,KA]=Xl(zr),zb=n=>{const{__scopeSelect:r,children:l,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=gc(r),[C,R]=v.useState(null),[_,O]=v.useState(null),[z,B]=v.useState(!1),P=Jf(p),[q,$]=Bl({prop:i,defaultProp:c??!1,onChange:d,caller:zr}),[ne,re]=Bl({prop:m,defaultProp:h,onChange:y,caller:zr}),fe=v.useRef(null),me=C?T||!!C.closest("form"):!0,[ie,ue]=v.useState(new Set),oe=Array.from(ie).map(M=>M.props.value).join(";");return f.jsx(UA,{...E,children:f.jsxs(IA,{required:N,scope:r,trigger:C,onTriggerChange:R,valueNode:_,onValueNodeChange:O,valueNodeHasChildren:z,onValueNodeHasChildrenChange:B,contentId:Wa(),value:ne,onValueChange:re,open:q,onOpenChange:$,dir:P,triggerPointerDownPosRef:fe,disabled:w,children:[f.jsx(hc.Provider,{scope:r,children:f.jsx(XA,{scope:n.__scopeSelect,onNativeOptionAdd:v.useCallback(M=>{ue(V=>new Set(V).add(M))},[]),onNativeOptionRemove:v.useCallback(M=>{ue(V=>{const Z=new Set(V);return Z.delete(M),Z})},[]),children:l})}),me?f.jsxs(lx,{"aria-hidden":!0,required:N,tabIndex:-1,name:x,autoComplete:g,value:ne,onChange:M=>re(M.target.value),disabled:w,form:T,children:[ne===void 0?f.jsx("option",{value:""}):null,Array.from(ie)]},oe):null]})})};zb.displayName=zr;var Lb="SelectTrigger",Ub=v.forwardRef((n,r)=>{const{__scopeSelect:l,disabled:i=!1,...c}=n,d=gc(l),m=or(Lb,l),h=m.disabled||i,y=tt(r,m.onTriggerChange),p=pc(l),x=v.useRef("touch"),[g,w,N]=ix(E=>{const C=p().filter(O=>!O.disabled),R=C.find(O=>O.value===m.value),_=sx(C,E,R);_!==void 0&&m.onValueChange(_.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(BA,{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":ox(m.value)?"":void 0,...c,ref:y,onClick:ke(c.onClick,E=>{E.currentTarget.focus(),x.current!=="mouse"&&T(E)}),onPointerDown:ke(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:ke(c.onKeyDown,E=>{const C=g.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&w(E.key),!(C&&E.key===" ")&&YA.includes(E.key)&&(T(),E.preventDefault())})})})});Ub.displayName=Lb;var Bb="SelectValue",Hb=v.forwardRef((n,r)=>{const{__scopeSelect:l,className:i,style:c,children:d,placeholder:m="",...h}=n,y=or(Bb,l),{onValueNodeHasChildrenChange:p}=y,x=d!==void 0,g=tt(r,y.onValueNodeChange);return Lt(()=>{p(x)},[p,x]),f.jsx(Ue.span,{...h,ref:g,style:{pointerEvents:"none"},children:ox(y.value)?f.jsx(f.Fragment,{children:m}):d})});Hb.displayName=Bb;var QA="SelectIcon",$b=v.forwardRef((n,r)=>{const{__scopeSelect:l,children:i,...c}=n;return f.jsx(Ue.span,{"aria-hidden":!0,...c,ref:r,children:i||"▼"})});$b.displayName=QA;var ZA="SelectPortal",qb=n=>f.jsx(Yf,{asChild:!0,...n});qb.displayName=ZA;var Lr="SelectContent",Vb=v.forwardRef((n,r)=>{const l=or(Lr,n.__scopeSelect),[i,c]=v.useState();if(Lt(()=>{c(new DocumentFragment)},[]),!l.open){const d=i;return d?ai.createPortal(f.jsx(Yb,{scope:n.__scopeSelect,children:f.jsx(hc.Slot,{scope:n.__scopeSelect,children:f.jsx("div",{children:n.children})})}),d):null}return f.jsx(Pb,{...n,ref:r})});Vb.displayName=Lr;var Rn=10,[Yb,ir]=Xl(Lr),FA="SelectContentImpl",JA=Wo("SelectContent.RemoveScroll"),Pb=v.forwardRef((n,r)=>{const{__scopeSelect:l,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,...R}=n,_=or(Lr,l),[O,z]=v.useState(null),[B,P]=v.useState(null),q=tt(r,ee=>z(ee)),[$,ne]=v.useState(null),[re,fe]=v.useState(null),me=pc(l),[ie,ue]=v.useState(!1),oe=v.useRef(!1);v.useEffect(()=>{if(O)return U0(O)},[O]),A0();const M=v.useCallback(ee=>{const[ce,...J]=me().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},[me,B]),V=v.useCallback(()=>M([$,O]),[M,$,O]);v.useEffect(()=>{ie&&V()},[ie,V]);const{onOpenChange:Z,triggerPointerDownPosRef:de}=_;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)||Z(!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,Z,de]),v.useEffect(()=>{const ee=()=>Z(!1);return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[Z]);const[F,A]=ix(ee=>{const ce=me().filter(be=>!be.disabled),J=ce.find(be=>be.ref.current===document.activeElement),ve=sx(ce,ee,J);ve&&setTimeout(()=>ve.ref.current.focus())}),G=v.useCallback((ee,ce,J)=>{const ve=!oe.current&&!J;(_.value!==void 0&&_.value===ce||ve)&&(ne(ee),ve&&(oe.current=!0))},[_.value]),X=v.useCallback(()=>O==null?void 0:O.focus(),[O]),W=v.useCallback((ee,ce,J)=>{const ve=!oe.current&&!J;(_.value!==void 0&&_.value===ce||ve)&&fe(ee)},[_.value]),te=i==="popper"?bf:Gb,se=te===bf?{side:h,sideOffset:y,align:p,alignOffset:x,arrowPadding:g,collisionBoundary:w,collisionPadding:N,sticky:T,hideWhenDetached:E,avoidCollisions:C}:{};return f.jsx(Yb,{scope:l,content:O,viewport:B,onViewportChange:P,itemRefCallback:G,selectedItem:$,onItemLeave:X,itemTextRefCallback:W,focusSelectedItem:V,selectedItemText:re,position:i,isPositioned:ie,searchRef:F,children:f.jsx(Pf,{as:JA,allowPinchZoom:!0,children:f.jsx(Vf,{asChild:!0,trapped:_.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:ke(c,ee=>{var ce;(ce=_.trigger)==null||ce.focus({preventScroll:!0}),ee.preventDefault()}),children:f.jsx(qf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:f.jsx(te,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:ee=>ee.preventDefault(),...R,...se,onPlaced:()=>ue(!0),ref:q,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:ke(R.onKeyDown,ee=>{const ce=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!ce&&ee.key.length===1&&A(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let ve=me().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()}})})})})})})});Pb.displayName=FA;var WA="SelectItemAlignedPosition",Gb=v.forwardRef((n,r)=>{const{__scopeSelect:l,onPlaced:i,...c}=n,d=or(Lr,l),m=ir(Lr,l),[h,y]=v.useState(null),[p,x]=v.useState(null),g=tt(r,q=>x(q)),w=pc(l),N=v.useRef(!1),T=v.useRef(!0),{viewport:E,selectedItem:C,selectedItemText:R,focusSelectedItem:_}=m,O=v.useCallback(()=>{if(d.trigger&&d.valueNode&&h&&p&&E&&C&&R){const q=d.trigger.getBoundingClientRect(),$=p.getBoundingClientRect(),ne=d.valueNode.getBoundingClientRect(),re=R.getBoundingClientRect();if(d.dir!=="rtl"){const be=re.left-$.left,Se=ne.left-be,He=q.left-Se,_e=q.width+He,$e=Math.max(_e,$.width),ft=window.innerWidth-Rn,Ge=ey(Se,[Rn,Math.max(Rn,ft-$e)]);h.style.minWidth=_e+"px",h.style.left=Ge+"px"}else{const be=$.right-re.right,Se=window.innerWidth-ne.right-be,He=window.innerWidth-q.right-Se,_e=q.width+He,$e=Math.max(_e,$.width),ft=window.innerWidth-Rn,Ge=ey(Se,[Rn,Math.max(Rn,ft-$e)]);h.style.minWidth=_e+"px",h.style.right=Ge+"px"}const fe=w(),me=window.innerHeight-Rn*2,ie=E.scrollHeight,ue=window.getComputedStyle(p),oe=parseInt(ue.borderTopWidth,10),M=parseInt(ue.paddingTop,10),V=parseInt(ue.borderBottomWidth,10),Z=parseInt(ue.paddingBottom,10),de=oe+M+ie+Z+V,F=Math.min(C.offsetHeight*5,de),A=window.getComputedStyle(E),G=parseInt(A.paddingTop,10),X=parseInt(A.paddingBottom,10),W=q.top+q.height/2-Rn,te=me-W,se=C.offsetHeight/2,ee=C.offsetTop+se,ce=oe+M+ee,J=de-ce;if(ce<=W){const be=fe.length>0&&C===fe[fe.length-1].ref.current;h.style.bottom="0px";const Se=p.clientHeight-E.offsetTop-E.offsetHeight,He=Math.max(te,se+(be?X:0)+Se+V),_e=ce+He;h.style.height=_e+"px"}else{const be=fe.length>0&&C===fe[0].ref.current;h.style.top="0px";const He=Math.max(W,oe+E.offsetTop+(be?G:0)+se)+J;h.style.height=He+"px",E.scrollTop=ce-W+E.offsetTop}h.style.margin=`${Rn}px 0`,h.style.minHeight=F+"px",h.style.maxHeight=me+"px",i==null||i(),requestAnimationFrame(()=>N.current=!0)}},[w,d.trigger,d.valueNode,h,p,E,C,R,d.dir,i]);Lt(()=>O(),[O]);const[z,B]=v.useState();Lt(()=>{p&&B(window.getComputedStyle(p).zIndex)},[p]);const P=v.useCallback(q=>{q&&T.current===!0&&(O(),_==null||_(),T.current=!1)},[O,_]);return f.jsx(tj,{scope:l,contentWrapper:h,shouldExpandOnScrollRef:N,onScrollButtonChange:P,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}})})})});Gb.displayName=WA;var ej="SelectPopperPosition",bf=v.forwardRef((n,r)=>{const{__scopeSelect:l,align:i="start",collisionPadding:c=Rn,...d}=n,m=gc(l);return f.jsx(HA,{...m,...d,ref:r,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)"}})});bf.displayName=ej;var[tj,im]=Xl(Lr,{}),xf="SelectViewport",Ib=v.forwardRef((n,r)=>{const{__scopeSelect:l,nonce:i,...c}=n,d=ir(xf,l),m=im(xf,l),h=tt(r,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(hc.Slot,{scope:l,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:ke(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-Rn*2,E=parseFloat(g.style.minHeight),C=parseFloat(g.style.height),R=Math.max(E,C);if(R<T){const _=R+N,O=Math.min(T,_),z=_-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})})})]})});Ib.displayName=xf;var Xb="SelectGroup",[nj,aj]=Xl(Xb),rj=v.forwardRef((n,r)=>{const{__scopeSelect:l,...i}=n,c=Wa();return f.jsx(nj,{scope:l,id:c,children:f.jsx(Ue.div,{role:"group","aria-labelledby":c,...i,ref:r})})});rj.displayName=Xb;var Kb="SelectLabel",Qb=v.forwardRef((n,r)=>{const{__scopeSelect:l,...i}=n,c=aj(Kb,l);return f.jsx(Ue.div,{id:c.id,...i,ref:r})});Qb.displayName=Kb;var Xs="SelectItem",[lj,Zb]=Xl(Xs),Fb=v.forwardRef((n,r)=>{const{__scopeSelect:l,value:i,disabled:c=!1,textValue:d,...m}=n,h=or(Xs,l),y=ir(Xs,l),p=h.value===i,[x,g]=v.useState(d??""),[w,N]=v.useState(!1),T=tt(r,_=>{var O;return(O=y.itemRefCallback)==null?void 0:O.call(y,_,i,c)}),E=Wa(),C=v.useRef("touch"),R=()=>{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(lj,{scope:l,value:i,disabled:c,textId:E,isSelected:p,onItemTextChange:v.useCallback(_=>{g(O=>O||((_==null?void 0:_.textContent)??"").trim())},[]),children:f.jsx(hc.ItemSlot,{scope:l,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:ke(m.onFocus,()=>N(!0)),onBlur:ke(m.onBlur,()=>N(!1)),onClick:ke(m.onClick,()=>{C.current!=="mouse"&&R()}),onPointerUp:ke(m.onPointerUp,()=>{C.current==="mouse"&&R()}),onPointerDown:ke(m.onPointerDown,_=>{C.current=_.pointerType}),onPointerMove:ke(m.onPointerMove,_=>{var O;C.current=_.pointerType,c?(O=y.onItemLeave)==null||O.call(y):C.current==="mouse"&&_.currentTarget.focus({preventScroll:!0})}),onPointerLeave:ke(m.onPointerLeave,_=>{var O;_.currentTarget===document.activeElement&&((O=y.onItemLeave)==null||O.call(y))}),onKeyDown:ke(m.onKeyDown,_=>{var z;((z=y.searchRef)==null?void 0:z.current)!==""&&_.key===" "||(PA.includes(_.key)&&R(),_.key===" "&&_.preventDefault())})})})})});Fb.displayName=Xs;var Ko="SelectItemText",Jb=v.forwardRef((n,r)=>{const{__scopeSelect:l,className:i,style:c,...d}=n,m=or(Ko,l),h=ir(Ko,l),y=Zb(Ko,l),p=KA(Ko,l),[x,g]=v.useState(null),w=tt(r,R=>g(R),y.onItemTextChange,R=>{var _;return(_=h.itemTextRefCallback)==null?void 0:_.call(h,R,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 Lt(()=>(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?ai.createPortal(d.children,m.valueNode):null]})});Jb.displayName=Ko;var Wb="SelectItemIndicator",ex=v.forwardRef((n,r)=>{const{__scopeSelect:l,...i}=n;return Zb(Wb,l).isSelected?f.jsx(Ue.span,{"aria-hidden":!0,...i,ref:r}):null});ex.displayName=Wb;var Sf="SelectScrollUpButton",tx=v.forwardRef((n,r)=>{const l=ir(Sf,n.__scopeSelect),i=im(Sf,n.__scopeSelect),[c,d]=v.useState(!1),m=tt(r,i.onScrollButtonChange);return Lt(()=>{if(l.viewport&&l.isPositioned){let h=function(){const p=y.scrollTop>0;d(p)};const y=l.viewport;return h(),y.addEventListener("scroll",h),()=>y.removeEventListener("scroll",h)}},[l.viewport,l.isPositioned]),c?f.jsx(ax,{...n,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:y}=l;h&&y&&(h.scrollTop=h.scrollTop-y.offsetHeight)}}):null});tx.displayName=Sf;var wf="SelectScrollDownButton",nx=v.forwardRef((n,r)=>{const l=ir(wf,n.__scopeSelect),i=im(wf,n.__scopeSelect),[c,d]=v.useState(!1),m=tt(r,i.onScrollButtonChange);return Lt(()=>{if(l.viewport&&l.isPositioned){let h=function(){const p=y.scrollHeight-y.clientHeight,x=Math.ceil(y.scrollTop)<p;d(x)};const y=l.viewport;return h(),y.addEventListener("scroll",h),()=>y.removeEventListener("scroll",h)}},[l.viewport,l.isPositioned]),c?f.jsx(ax,{...n,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:y}=l;h&&y&&(h.scrollTop=h.scrollTop+y.offsetHeight)}}):null});nx.displayName=wf;var ax=v.forwardRef((n,r)=>{const{__scopeSelect:l,onAutoScroll:i,...c}=n,d=ir("SelectScrollButton",l),m=v.useRef(null),h=pc(l),y=v.useCallback(()=>{m.current!==null&&(window.clearInterval(m.current),m.current=null)},[]);return v.useEffect(()=>()=>y(),[y]),Lt(()=>{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:r,style:{flexShrink:0,...c.style},onPointerDown:ke(c.onPointerDown,()=>{m.current===null&&(m.current=window.setInterval(i,50))}),onPointerMove:ke(c.onPointerMove,()=>{var p;(p=d.onItemLeave)==null||p.call(d),m.current===null&&(m.current=window.setInterval(i,50))}),onPointerLeave:ke(c.onPointerLeave,()=>{y()})})}),oj="SelectSeparator",rx=v.forwardRef((n,r)=>{const{__scopeSelect:l,...i}=n;return f.jsx(Ue.div,{"aria-hidden":!0,...i,ref:r})});rx.displayName=oj;var Ef="SelectArrow",ij=v.forwardRef((n,r)=>{const{__scopeSelect:l,...i}=n,c=gc(l),d=or(Ef,l),m=ir(Ef,l);return d.open&&m.position==="popper"?f.jsx($A,{...c,...i,ref:r}):null});ij.displayName=Ef;var sj="SelectBubbleInput",lx=v.forwardRef(({__scopeSelect:n,value:r,...l},i)=>{const c=v.useRef(null),d=tt(i,c),m=kb(r);return v.useEffect(()=>{const h=c.current;if(!h)return;const y=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(y,"value").set;if(m!==r&&x){const g=new Event("change",{bubbles:!0});x.call(h,r),h.dispatchEvent(g)}},[m,r]),f.jsx(Ue.select,{...l,style:{...Db,...l.style},ref:d,defaultValue:r})});lx.displayName=sj;function ox(n){return n===""||n===void 0}function ix(n){const r=tr(n),l=v.useRef(""),i=v.useRef(0),c=v.useCallback(m=>{const h=l.current+m;r(h),(function y(p){l.current=p,window.clearTimeout(i.current),p!==""&&(i.current=window.setTimeout(()=>y(""),1e3))})(h)},[r]),d=v.useCallback(()=>{l.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[l,c,d]}function sx(n,r,l){const c=r.length>1&&Array.from(r).every(p=>p===r[0])?r[0]:r,d=l?n.indexOf(l):-1;let m=cj(n,Math.max(d,0));c.length===1&&(m=m.filter(p=>p!==l));const y=m.find(p=>p.textValue.toLowerCase().startsWith(c.toLowerCase()));return y!==l?y:void 0}function cj(n,r){return n.map((l,i)=>n[(r+i)%n.length])}var uj=zb,cx=Ub,dj=Hb,fj=$b,mj=qb,ux=Vb,hj=Ib,dx=Qb,fx=Fb,pj=Jb,gj=ex,mx=tx,hx=nx,px=rx;const gx=uj,vx=dj,sm=v.forwardRef(({className:n,children:r,...l},i)=>f.jsxs(cx,{ref:i,className:le("flex h-8 w-full items-center justify-between rounded-sm border border-input/85 bg-background/72 px-2.5 py-1.5 text-[11px] 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),...l,children:[r,f.jsx(fj,{asChild:!0,children:f.jsx(Jo,{className:"h-4 w-4 opacity-50"})})]}));sm.displayName=cx.displayName;const yx=v.forwardRef(({className:n,...r},l)=>f.jsx(mx,{ref:l,className:le("flex cursor-default items-center justify-center py-1",n),...r,children:f.jsx(_N,{className:"h-4 w-4"})}));yx.displayName=mx.displayName;const bx=v.forwardRef(({className:n,...r},l)=>f.jsx(hx,{ref:l,className:le("flex cursor-default items-center justify-center py-1",n),...r,children:f.jsx(Jo,{className:"h-4 w-4"})}));bx.displayName=hx.displayName;const cm=v.forwardRef(({className:n,children:r,position:l="popper",...i},c)=>f.jsx(mj,{children:f.jsxs(ux,{ref:c,className:le("relative z-50 max-h-80 min-w-[8rem] overflow-hidden rounded-sm border border-border/70 bg-popover/96 text-popover-foreground shadow-[0_16px_48px_-34px_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",l==="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:l,...i,children:[f.jsx(yx,{}),f.jsx(hj,{className:le("p-1",l==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),f.jsx(bx,{})]})}));cm.displayName=ux.displayName;const vj=v.forwardRef(({className:n,...r},l)=>f.jsx(dx,{ref:l,className:le("py-1 pl-6 pr-2 text-[10px] font-semibold",n),...r}));vj.displayName=dx.displayName;const Dl=v.forwardRef(({className:n,children:r,...l},i)=>f.jsxs(fx,{ref:i,className:le("relative flex w-full cursor-default select-none items-center rounded-sm py-1 pl-6 pr-2 text-[11px] outline-none transition-colors focus:bg-accent/80 focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...l,children:[f.jsx("span",{className:"absolute left-1.5 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(gj,{children:f.jsx(Hs,{className:"h-3.5 w-3.5"})})}),f.jsx(pj,{children:r})]}));Dl.displayName=fx.displayName;const yj=v.forwardRef(({className:n,...r},l)=>f.jsx(px,{ref:l,className:le("-mx-1 my-1 h-px bg-muted",n),...r}));yj.displayName=px.displayName;var Jd="rovingFocusGroup.onEntryFocus",bj={bubbles:!1,cancelable:!0},li="RovingFocusGroup",[Nf,xx,xj]=cb(li),[Sj,Sx]=lr(li,[xj]),[wj,Ej]=Sj(li),wx=v.forwardRef((n,r)=>f.jsx(Nf.Provider,{scope:n.__scopeRovingFocusGroup,children:f.jsx(Nf.Slot,{scope:n.__scopeRovingFocusGroup,children:f.jsx(Nj,{...n,ref:r})})}));wx.displayName=li;var Nj=v.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:l,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(r,w),T=Jf(d),[E,C]=Bl({prop:m,defaultProp:h??null,onChange:y,caller:li}),[R,_]=v.useState(!1),O=tr(p),z=xx(l),B=v.useRef(!1),[P,q]=v.useState(0);return v.useEffect(()=>{const $=w.current;if($)return $.addEventListener(Jd,O),()=>$.removeEventListener(Jd,O)},[O]),f.jsx(wj,{scope:l,orientation:i,dir:T,loop:c,currentTabStopId:E,onItemFocus:v.useCallback($=>C($),[C]),onItemShiftTab:v.useCallback(()=>_(!0),[]),onFocusableItemAdd:v.useCallback(()=>q($=>$+1),[]),onFocusableItemRemove:v.useCallback(()=>q($=>$-1),[]),children:f.jsx(Ue.div,{tabIndex:R||P===0?-1:0,"data-orientation":i,...g,ref:N,style:{outline:"none",...n.style},onMouseDown:ke(n.onMouseDown,()=>{B.current=!0}),onFocus:ke(n.onFocus,$=>{const ne=!B.current;if($.target===$.currentTarget&&ne&&!R){const re=new CustomEvent(Jd,bj);if($.currentTarget.dispatchEvent(re),!re.defaultPrevented){const fe=z().filter(M=>M.focusable),me=fe.find(M=>M.active),ie=fe.find(M=>M.id===E),oe=[me,ie,...fe].filter(Boolean).map(M=>M.ref.current);Tx(oe,x)}}B.current=!1}),onBlur:ke(n.onBlur,()=>_(!1))})})}),Ex="RovingFocusGroupItem",Nx=v.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:l,focusable:i=!0,active:c=!1,tabStopId:d,children:m,...h}=n,y=Wa(),p=d||y,x=Ej(Ex,l),g=x.currentTabStopId===p,w=xx(l),{onFocusableItemAdd:N,onFocusableItemRemove:T,currentTabStopId:E}=x;return v.useEffect(()=>{if(i)return N(),()=>T()},[i,N,T]),f.jsx(Nf.ItemSlot,{scope:l,id:p,focusable:i,active:c,children:f.jsx(Ue.span,{tabIndex:g?0:-1,"data-orientation":x.orientation,...h,ref:r,onMouseDown:ke(n.onMouseDown,C=>{i?x.onItemFocus(p):C.preventDefault()}),onFocus:ke(n.onFocus,()=>x.onItemFocus(p)),onKeyDown:ke(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){x.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const R=Rj(C,x.orientation,x.dir);if(R!==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(R==="last")O.reverse();else if(R==="prev"||R==="next"){R==="prev"&&O.reverse();const z=O.indexOf(C.currentTarget);O=x.loop?Aj(O,z+1):O.slice(z+1)}setTimeout(()=>Tx(O))}}),children:typeof m=="function"?m({isCurrentTabStop:g,hasTabStop:E!=null}):m})})});Nx.displayName=Ex;var Tj={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Cj(n,r){return r!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function Rj(n,r,l){const i=Cj(n.key,l);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return Tj[i]}function Tx(n,r=!1){const l=document.activeElement;for(const i of n)if(i===l||(i.focus({preventScroll:r}),document.activeElement!==l))return}function Aj(n,r){return n.map((l,i)=>n[(r+i)%n.length])}var jj=wx,_j=Nx,vc="Tabs",[Mj]=lr(vc,[Sx]),Cx=Sx(),[Oj,um]=Mj(vc),Rx=v.forwardRef((n,r)=>{const{__scopeTabs:l,value:i,onValueChange:c,defaultValue:d,orientation:m="horizontal",dir:h,activationMode:y="automatic",...p}=n,x=Jf(h),[g,w]=Bl({prop:i,onChange:c,defaultProp:d??"",caller:vc});return f.jsx(Oj,{scope:l,baseId:Wa(),value:g,onValueChange:w,orientation:m,dir:x,activationMode:y,children:f.jsx(Ue.div,{dir:x,"data-orientation":m,...p,ref:r})})});Rx.displayName=vc;var Ax="TabsList",jx=v.forwardRef((n,r)=>{const{__scopeTabs:l,loop:i=!0,...c}=n,d=um(Ax,l),m=Cx(l);return f.jsx(jj,{asChild:!0,...m,orientation:d.orientation,dir:d.dir,loop:i,children:f.jsx(Ue.div,{role:"tablist","aria-orientation":d.orientation,...c,ref:r})})});jx.displayName=Ax;var _x="TabsTrigger",Mx=v.forwardRef((n,r)=>{const{__scopeTabs:l,value:i,disabled:c=!1,...d}=n,m=um(_x,l),h=Cx(l),y=Dx(m.baseId,i),p=zx(m.baseId,i),x=i===m.value;return f.jsx(_j,{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:r,onMouseDown:ke(n.onMouseDown,g=>{!c&&g.button===0&&g.ctrlKey===!1?m.onValueChange(i):g.preventDefault()}),onKeyDown:ke(n.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&m.onValueChange(i)}),onFocus:ke(n.onFocus,()=>{const g=m.activationMode!=="manual";!x&&!c&&g&&m.onValueChange(i)})})})});Mx.displayName=_x;var Ox="TabsContent",kx=v.forwardRef((n,r)=>{const{__scopeTabs:l,value:i,forceMount:c,children:d,...m}=n,h=um(Ox,l),y=Dx(h.baseId,i),p=zx(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(Pl,{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:r,style:{...n.style,animationDuration:g.current?"0s":void 0},children:w&&d})})});kx.displayName=Ox;function Dx(n,r){return`${n}-trigger-${r}`}function zx(n,r){return`${n}-content-${r}`}var kj=Rx,Lx=jx,Ux=Mx,Bx=kx;const Dj=kj,Hx=v.forwardRef(({className:n,...r},l)=>f.jsx(Lx,{ref:l,className:le("inline-flex h-8 items-center justify-center rounded-sm bg-muted/72 p-0.5 text-muted-foreground shadow-inner shadow-background/40",n),...r}));Hx.displayName=Lx.displayName;const zs=v.forwardRef(({className:n,...r},l)=>f.jsx(Ux,{ref:l,className:le("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-2 py-0.5 text-[11px] 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),...r}));zs.displayName=Ux.displayName;const Ks=v.forwardRef(({className:n,...r},l)=>f.jsx(Bx,{ref:l,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),...r}));Ks.displayName=Bx.displayName;var $x="AlertDialog",[zj]=lr($x,[H0]),Na=H0(),qx=n=>{const{__scopeAlertDialog:r,...l}=n,i=Na(r);return f.jsx(tb,{...i,...l,modal:!0})};qx.displayName=$x;var Lj="AlertDialogTrigger",Vx=v.forwardRef((n,r)=>{const{__scopeAlertDialog:l,...i}=n,c=Na(l);return f.jsx(nb,{...c,...i,ref:r})});Vx.displayName=Lj;var Uj="AlertDialogPortal",Yx=n=>{const{__scopeAlertDialog:r,...l}=n,i=Na(r);return f.jsx(ab,{...i,...l})};Yx.displayName=Uj;var Bj="AlertDialogOverlay",Px=v.forwardRef((n,r)=>{const{__scopeAlertDialog:l,...i}=n,c=Na(l);return f.jsx(Kf,{...c,...i,ref:r})});Px.displayName=Bj;var Ul="AlertDialogContent",[Hj,$j]=zj(Ul),qj=WC("AlertDialogContent"),Gx=v.forwardRef((n,r)=>{const{__scopeAlertDialog:l,children:i,...c}=n,d=Na(l),m=v.useRef(null),h=tt(r,m),y=v.useRef(null);return f.jsx(p5,{contentName:Ul,titleName:Ix,docsSlug:"alert-dialog",children:f.jsx(Hj,{scope:l,cancelRef:y,children:f.jsxs(Qf,{role:"alertdialog",...d,...c,ref:h,onOpenAutoFocus:ke(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(qj,{children:i}),f.jsx(Yj,{contentRef:m})]})})})});Gx.displayName=Ul;var Ix="AlertDialogTitle",Xx=v.forwardRef((n,r)=>{const{__scopeAlertDialog:l,...i}=n,c=Na(l);return f.jsx(Zf,{...c,...i,ref:r})});Xx.displayName=Ix;var Kx="AlertDialogDescription",Qx=v.forwardRef((n,r)=>{const{__scopeAlertDialog:l,...i}=n,c=Na(l);return f.jsx(Ff,{...c,...i,ref:r})});Qx.displayName=Kx;var Vj="AlertDialogAction",Zx=v.forwardRef((n,r)=>{const{__scopeAlertDialog:l,...i}=n,c=Na(l);return f.jsx(cc,{...c,...i,ref:r})});Zx.displayName=Vj;var Fx="AlertDialogCancel",Jx=v.forwardRef((n,r)=>{const{__scopeAlertDialog:l,...i}=n,{cancelRef:c}=$j(Fx,l),d=Na(l),m=tt(r,c);return f.jsx(cc,{...d,...i,ref:m})});Jx.displayName=Fx;var Yj=({contentRef:n})=>{const r=`\`${Ul}\` requires a description for the component to be accessible for screen reader users.
|
|
311
|
-
|
|
312
|
-
You can add a description to the \`${Ul}\` by passing a \`${Kx}\` 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 \`${Ul}\`. 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(r)},[r,n]),null},Pj=qx,Gj=Vx,Ij=Yx,Wx=Px,e1=Gx,t1=Zx,n1=Jx,a1=Xx,r1=Qx;const Tf=Pj,Cf=Gj,Xj=Ij,l1=v.forwardRef(({className:n,...r},l)=>f.jsx(Wx,{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),...r,ref:l}));l1.displayName=Wx.displayName;const Qs=v.forwardRef(({className:n,...r},l)=>f.jsxs(Xj,{children:[f.jsx(l1,{}),f.jsx(e1,{ref:l,className:le("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-3 rounded-sm border bg-background p-4 shadow-[0_24px_84px_-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),...r})]}));Qs.displayName=e1.displayName;const Zs=({className:n,...r})=>f.jsx("div",{className:le("flex flex-col space-y-1.5 text-center sm:text-left",n),...r});Zs.displayName="AlertDialogHeader";const Fs=({className:n,...r})=>f.jsx("div",{className:le("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});Fs.displayName="AlertDialogFooter";const Js=v.forwardRef(({className:n,...r},l)=>f.jsx(a1,{ref:l,className:le("text-sm font-semibold",n),...r}));Js.displayName=a1.displayName;const Ws=v.forwardRef(({className:n,...r},l)=>f.jsx(r1,{ref:l,className:le("text-[11px] text-muted-foreground",n),...r}));Ws.displayName=r1.displayName;const ec=v.forwardRef(({className:n,...r},l)=>f.jsx(t1,{ref:l,className:le($f(),n),...r}));ec.displayName=t1.displayName;const tc=v.forwardRef(({className:n,...r},l)=>f.jsx(n1,{ref:l,className:le($f({variant:"outline"}),"mt-2 sm:mt-0",n),...r}));tc.displayName=n1.displayName;const Kj={online:"bg-emerald-500",busy:"bg-amber-500",offline:"bg-destructive"};function Qj({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-emerald-500 opacity-30"}),f.jsx("span",{className:le("relative inline-flex h-2.5 w-2.5 rounded-full",Kj[n])})]})}function Zj({role:n,size:r="default"}){return f.jsx(wt,{variant:n==="leader"?"default":"secondary",className:le(r==="compact"?"px-1.5 py-0 text-[9px] leading-4":"text-[11px]"),children:n})}const o1={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-destructive-foreground",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 YM({status:n,size:r="default"}){const l=o1[n],i=r==="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(wt,{variant:l.variant,className:le("rounded-sm font-medium shadow-none",i,l.className),children:[f.jsx("span",{className:le("rounded-full",l.dotClass)}),n]})}function PM({status:n,isNative:r=!1,size:l="default",className:i}){const c=o1[n],d=[n,r?"native":null].filter(Boolean).join(", "),m=l==="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}),r&&f.jsx("span",{className:le("rounded-full bg-sky-500",m),title:"native"})]})}const Fj={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function GM({priority:n}){const r=Fj[n];return f.jsx(wt,{variant:r.variant,className:"rounded-sm px-1.5 py-0 text-[10px] leading-4 shadow-none",children:r.label})}function Jj(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(l=>l.value)}function _l({label:n,value:r,mono:l=!1}){return f.jsxs("div",{className:"min-w-0 rounded-sm 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:l?"mt-0.5 break-all font-mono text-[11px] text-foreground":"mt-0.5 break-all text-[11px] text-foreground",children:r})]})}function Wj({formatDateTime:n,viewInfo:r}){var i,c,d,m,h,y,p,x;const l=Jj(r.packages);return f.jsxs(Ks,{value:"about","data-about-layout":"compact",className:"mt-0 space-y-2",children:[f.jsxs(Pn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Gn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(In,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(wN,{className:"h-3.5 w-3.5 text-primary"}),"Repository & runtime"]}),f.jsx(Xn,{className:"text-[10px]",children:"Build source and runtime identity for this node."})]}),f.jsxs(Kn,{className:"space-y-2 px-3 pb-2.5",children:[(i=r.repository)!=null&&i.url?f.jsxs("a",{href:r.repository.url,target:"_blank",rel:"noreferrer",className:"group flex min-w-0 items-center justify-between gap-2 rounded-sm 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:r.repository.url}),f.jsx(qN,{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-sm 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(_l,{label:"Branch",value:((c=r.repository)==null?void 0:c.branch)??"Unavailable",mono:!!((d=r.repository)!=null&&d.branch)}),f.jsx(_l,{label:"Commit",value:((m=r.repository)==null?void 0:m.commit)??"Unavailable",mono:!!((h=r.repository)!=null&&h.commit)}),f.jsx(_l,{label:"Runtime",value:`${r.packageName??"meshy"} ${r.version}`,mono:!0}),f.jsx(_l,{label:"Node.js",value:((y=r.runtime)==null?void 0:y.nodeVersion)??"Unavailable",mono:!!((p=r.runtime)!=null&&p.nodeVersion)}),f.jsx(_l,{label:"PID",value:r.runtime?String(r.runtime.pid):"Unavailable",mono:!!r.runtime}),f.jsx(_l,{label:"Started",value:n((x=r.runtime)==null?void 0:x.startedAt)})]})]})]}),f.jsxs(Pn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Gn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(In,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(XN,{className:"h-3.5 w-3.5 text-primary"}),"Package versions"]}),f.jsx(Xn,{className:"text-[10px]",children:"Version snapshot for the packages most relevant to this dashboard session."})]}),f.jsx(Kn,{"data-package-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:l.map(g=>{var w,N;return f.jsxs("div",{className:"grid gap-1.5 rounded-sm 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(wt,{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 yc="Checkbox",[e3]=lr(yc),[t3,dm]=e3(yc);function n3(n){const{__scopeCheckbox:r,checked:l,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]=Bl({prop:l,defaultProp:c??!1,onChange:y,caller:yc}),[T,E]=v.useState(null),[C,R]=v.useState(null),_=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:_,required:p,defaultChecked:er(c)?!1:c,isFormControl:O,bubbleInput:C,setBubbleInput:R};return f.jsx(t3,{scope:r,...z,children:a3(g)?g(z):i})}var i1="CheckboxTrigger",s1=v.forwardRef(({__scopeCheckbox:n,onKeyDown:r,onClick:l,...i},c)=>{const{control:d,value:m,disabled:h,checked:y,required:p,setControl:x,setChecked:g,hasConsumerStoppedPropagationRef:w,isFormControl:N,bubbleInput:T}=dm(i1,n),E=tt(c,x),C=v.useRef(y);return v.useEffect(()=>{const R=d==null?void 0:d.form;if(R){const _=()=>g(C.current);return R.addEventListener("reset",_),()=>R.removeEventListener("reset",_)}},[d,g]),f.jsx(Ue.button,{type:"button",role:"checkbox","aria-checked":er(y)?"mixed":y,"aria-required":p,"data-state":m1(y),"data-disabled":h?"":void 0,disabled:h,value:m,...i,ref:E,onKeyDown:ke(r,R=>{R.key==="Enter"&&R.preventDefault()}),onClick:ke(l,R=>{g(_=>er(_)?!0:!_),T&&N&&(w.current=R.isPropagationStopped(),w.current||R.stopPropagation())})})});s1.displayName=i1;var fm=v.forwardRef((n,r)=>{const{__scopeCheckbox:l,name:i,checked:c,defaultChecked:d,required:m,disabled:h,value:y,onCheckedChange:p,form:x,...g}=n;return f.jsx(n3,{__scopeCheckbox:l,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(s1,{...g,ref:r,__scopeCheckbox:l}),w&&f.jsx(f1,{__scopeCheckbox:l})]})})});fm.displayName=yc;var c1="CheckboxIndicator",u1=v.forwardRef((n,r)=>{const{__scopeCheckbox:l,forceMount:i,...c}=n,d=dm(c1,l);return f.jsx(Pl,{present:i||er(d.checked)||d.checked===!0,children:f.jsx(Ue.span,{"data-state":m1(d.checked),"data-disabled":d.disabled?"":void 0,...c,ref:r,style:{pointerEvents:"none",...n.style}})})});u1.displayName=c1;var d1="CheckboxBubbleInput",f1=v.forwardRef(({__scopeCheckbox:n,...r},l)=>{const{control:i,hasConsumerStoppedPropagationRef:c,checked:d,defaultChecked:m,required:h,disabled:y,name:p,value:x,form:g,bubbleInput:w,setBubbleInput:N}=dm(d1,n),T=tt(l,N),E=kb(d),C=wb(i);v.useEffect(()=>{const _=w;if(!_)return;const O=window.HTMLInputElement.prototype,B=Object.getOwnPropertyDescriptor(O,"checked").set,P=!c.current;if(E!==d&&B){const q=new Event("click",{bubbles:P});_.indeterminate=er(d),B.call(_,er(d)?!1:d),_.dispatchEvent(q)}},[w,E,d,c]);const R=v.useRef(er(d)?!1:d);return f.jsx(Ue.input,{type:"checkbox","aria-hidden":!0,defaultChecked:m??R.current,required:h,disabled:y,name:p,value:x,form:g,...r,tabIndex:-1,ref:T,style:{...r.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});f1.displayName=d1;function a3(n){return typeof n=="function"}function er(n){return n==="indeterminate"}function m1(n){return er(n)?"indeterminate":n?"checked":"unchecked"}const h1=v.forwardRef(({className:n,...r},l)=>f.jsx(fm,{ref:l,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),...r,children:f.jsx(u1,{className:le("flex items-center justify-center text-current"),children:f.jsx(Hs,{className:"h-3.5 w-3.5"})})}));h1.displayName=fm.displayName;const mm=v.forwardRef(({className:n,type:r,...l},i)=>f.jsx("input",{type:r,className:le("flex h-8 w-full rounded-sm border border-input/85 bg-background/72 px-2.5 py-1.5 text-[11px] shadow-sm ring-offset-background transition-all duration-200 file:border-0 file:bg-transparent file:text-[11px] 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,...l}));mm.displayName="Input";const fy=["queued","running"];function r3(n){return n.map(r=>`${r.id}:${r.name}`).join("\0")}function l3(n){return n==="claude"||n==="codex"||n==="copilot"}function p1(n){var l;if(n.kind!=="agent.upgrade")return null;const r=(l=n.payload)==null?void 0:l.agent;return l3(r)?`${n.nodeId}:${r}`:null}function o3(n){return n.status==="succeeded"||n.status==="failed"}async function g1(n,r={}){const l=r.getOperation??UE,i=r.pollIntervalMs??2e3,c=r.timeoutMs??24e4,d=Date.now()+c;let m=n;for(;!o3(m)&&Date.now()<d;)await s3(i),m=await l(n.id);return m}async function i3(n,r=BE){const l=new Set(n),i=await Promise.all(fy.map(d=>r({kind:"agent.upgrade",status:d}))),c=new Map;for(const d of i.flat()){if(!fy.includes(d.status)||l.size>0&&!l.has(d.nodeId))continue;const m=p1(d);if(!m)continue;const h=c.get(m);(!h||d.updatedAt>h.updatedAt)&&c.set(m,d)}return c}function s3(n){return new Promise(r=>setTimeout(r,n))}const c3=1500,u3=1e3,d3=9e4;async function v1(n={}){const r=n.fetchHealth??f3,l=n.initialDelayMs??c3,i=n.pollIntervalMs??u3,c=n.previousPid,d=n.reload??(()=>window.location.reload()),m=n.sleep??h3,h=n.timeoutMs??d3,y=Date.now()+h;let p=!1;for(l>0&&await m(l);Date.now()<=y;){const x=m3(await r());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 f3(){try{const n=await fetch("/api/system/health",{cache:"no-store"}),r=await n.json().catch(()=>null),l=r&&typeof r=="object"&&typeof r.pid=="number"?r.pid:void 0;return{ok:n.ok,pid:l}}catch{return!1}}function m3(n){return typeof n=="boolean"?{ok:n}:n}function h3(n){return new Promise(r=>window.setTimeout(r,n))}function p3(n,r=!0){return r?(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 g3({checkedLabel:n,disableAuthDefault:r,endpoint:l,isLiveLocalNode:i,nodeId:c,nodeName:d,onRefresh:m,pid:h,transportType:y,update:p,workDir:x}){const g=p3(p,i),[w,N]=v.useState(null),[T,E]=v.useState(()=>my({disableAuthDefault:r,endpoint:l,nodeName:d,transportType:y,workDir:x})),[C,R]=v.useState(!1),[_,O]=v.useState(!1),[z,B]=v.useState(!1);v.useEffect(()=>{E(my({disableAuthDefault:r,endpoint:l,nodeName:d,transportType:y,workDir:x}))},[r,l,d,y,x]);async function P(){if(!c||C||_)return;const re=p.updateAvailable?"update":"restart",fe=b3(T);if(T.port.trim()&&(fe==null?void 0:fe.port)===void 0){Pe.error("Runtime restart port must be a positive integer");return}const me=fe?{reason:re,startArgs:fe}:{reason:re};R(!0);try{if(i){const M=await Ky(me);N({...M,pid:M.pid??h,status:"accepted"}),Pe.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.`),v1({previousPid:M.pid??h}).then(V=>{V||(R(!1),Pe.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout. Refresh the page after the node finishes starting."))}).catch(V=>{R(!1),Pe.error(V instanceof Error?V.message:"Runtime restart recovery failed")});return}const ie=await $E(c,me);N({operationId:ie.id,pid:h,status:ie.status}),Pe.info(`Restart requested on ${d}. Operation ${Wd(ie.id)} will hand off to a detached process, so the new runtime will not stay attached to the original terminal window.`);const ue=await g1(ie,{timeoutMs:6e4}),oe=y3(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()),Pe.success(`Restart handoff accepted on ${d}. Follow ${(oe==null?void 0:oe.logPath)??"the node restart log"} for launch output.`)):ue.status==="failed"?Pe.error(ue.error??`Restart failed on ${d}`):Pe.info(`Restart operation ${Wd(ue.id)} is still ${ue.status}. More details will update after the node reports back.`),R(!1)}catch(ie){R(!1),Pe.error(ie instanceof Error?ie.message:"Runtime restart failed")}}async function q(){if(!(!i||C||_)){O(!0);try{const re=await zE();Pe.info(`Stopping Meshy process ${re.pid}`)}catch(re){O(!1),Pe.error(re instanceof Error?re.message:"Runtime stop failed")}}}const $=C?"restarting":_?"stopping":(w==null?void 0:w.status)??"idle",ne=p.restartMode==="development";return f.jsxs("div",{className:"overflow-hidden rounded-sm border border-border/70 bg-background/70",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(Bs,{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:ne?"Development launcher":`Latest ${p.latestVersion??"—"}`})]})]}),f.jsx("div",{className:"flex items-center gap-1.5",children:f.jsx(wt,{variant:p.updateAvailable?"default":"outline",className:"rounded-sm border-border/70 bg-background/60 px-1.5 py-0 font-mono text-[10px]",children:ne?"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(Tf,{children:[f.jsx(Cf,{asChild:!0,children:f.jsxs(xn,{type:"button",size:"sm",variant:"ghost",disabled:C||_,className:"h-7 rounded-sm px-2 text-[11px] text-muted-foreground hover:bg-destructive/10 hover:text-destructive",children:[f.jsx(WN,{className:le("mr-1 h-3.5 w-3.5",_&&"animate-pulse")}),_?"Stopping":"Stop"]})}),f.jsxs(Qs,{className:"max-w-[22rem] gap-2 rounded-sm p-4",children:[f.jsxs(Zs,{className:"space-y-1",children:[f.jsx(Js,{className:"text-sm",children:"Stop runtime?"}),f.jsx(Ws,{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(Fs,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(tc,{className:"h-7 rounded-sm px-2 text-[11px]",children:"Cancel"}),f.jsx(ec,{className:"h-7 rounded-sm bg-destructive px-2 text-[11px] text-destructive-foreground hover:bg-destructive/90",onClick:()=>void q(),children:"Stop runtime"})]})]})]}),f.jsxs(Tf,{children:[f.jsx(Cf,{asChild:!0,children:f.jsxs(xn,{type:"button",size:"sm",variant:p.updateAvailable?"default":"outline",disabled:!c||C||_,className:"h-7 rounded-sm px-2 text-[11px]",children:[f.jsx(df,{className:le("mr-1 h-3.5 w-3.5",C&&"animate-spin")}),C?"Restarting…":g]})}),f.jsxs(Qs,{className:"max-w-[28rem] gap-3 rounded-sm p-4",children:[f.jsxs(Zs,{className:"space-y-1",children:[f.jsxs(Js,{className:"text-sm",children:[g,"?"]}),f.jsxs(Ws,{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(v3,{value:T,onChange:E}),f.jsxs(Fs,{className:"gap-1 pt-0 sm:space-x-1",children:[f.jsx(tc,{className:"h-7 rounded-sm px-2 text-[11px]",children:"Cancel"}),f.jsx(ec,{className:"h-7 rounded-sm px-2 text-[11px]",onClick:()=>void P(),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(r0,{className:"h-3 w-3"}),"Restart details"]}),f.jsx(Jo,{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(Mr,{label:"Current PID",value:h===void 0?"—":String(h),mono:h!==void 0}),f.jsx(Mr,{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(Mr,{label:"Operation",value:w!=null&&w.operationId?Wd(w.operationId):"Local direct request",mono:!!(w!=null&&w.operationId)}),f.jsx(Mr,{label:"Status",value:(w==null?void 0:w.status)??(C?"requested":"idle")}),f.jsx(Mr,{label:"Launcher",value:(w==null?void 0:w.command)??"Available after restart",mono:!!(w!=null&&w.command)}),f.jsx(Mr,{label:"Log",value:(w==null?void 0:w.logPath)??"Available after restart",mono:!!(w!=null&&w.logPath)}),f.jsx(Mr,{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 v3({onChange:n,value:r}){const l=(i,c)=>{n({...r,[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(Po,{label:"HTTP port",value:r.port,onChange:i=>l("port",i),inputMode:"numeric"}),f.jsx(Po,{label:"Node name",value:r.name,onChange:i=>l("name",i)}),f.jsx(Po,{label:"Join endpoint",value:r.join,onChange:i=>l("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(gx,{value:r.transport,onValueChange:i=>l("transport",y1(i)),children:[f.jsx(sm,{className:"h-7 rounded-md border-border/70 bg-background/70 px-2 text-[10px]",children:f.jsx(vx,{placeholder:"Transport"})}),f.jsxs(cm,{children:[f.jsx(Dl,{className:"py-1 text-[11px]",value:"inherit",children:"current / default"}),f.jsx(Dl,{className:"py-1 text-[11px]",value:"direct",children:"direct"}),f.jsx(Dl,{className:"py-1 text-[11px]",value:"devtunnel",children:"devtunnel"}),f.jsx(Dl,{className:"py-1 text-[11px]",value:"tailscale",children:"tailscale"})]})]})]}),f.jsx(Po,{label:"Working directory",value:r.workDir,onChange:i=>l("workDir",i)}),f.jsx(Po,{label:"Config path",value:r.config,onChange:i=>l("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(h1,{className:"h-3.5 w-3.5",checked:r.disableAuth,onCheckedChange:i=>n({...r,disableAuth:i===!0,disableAuthKnown:!0})}),"Disable auth"]})]})]})}function Po({className:n,inputMode:r,label:l,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:l}),f.jsx(mm,{className:"h-7 rounded-md px-2 text-[10px]",inputMode:r,value:c,onChange:d=>i(d.target.value)})]})}function Mr({label:n,value:r,mono:l=!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",l&&"font-mono"),children:r})]})}function y3(n){const r=n.result;if(!r||typeof r!="object")return null;const l=r;return l.ok!==!0||typeof l.command!="string"||typeof l.logPath!="string"?null:{ok:!0,mode:l.mode==="package"?"package":"development",command:l.command,logPath:l.logPath,pid:typeof l.pid=="number"?l.pid:void 0}}function my(n){return{port:x3(n.endpoint),name:n.nodeName,join:"",transport:y1(n.transportType),workDir:n.workDir??"",config:"",disableAuth:n.disableAuthDefault===!0,disableAuthKnown:n.disableAuthDefault!==void 0}}function b3(n){const r={},l=Number(n.port.trim());return n.port.trim()&&Number.isInteger(l)&&l>0&&(r.port=l),n.name.trim()&&(r.name=n.name.trim()),n.join.trim()&&(r.join=n.join.trim()),n.transport!=="inherit"&&(r.transport=n.transport),n.workDir.trim()&&(r.workDir=n.workDir.trim()),n.config.trim()&&(r.config=n.config.trim()),n.disableAuthKnown&&(r.disableAuth=n.disableAuth),Object.keys(r).length>0?r:void 0}function y1(n){return n==="direct"||n==="devtunnel"||n==="tailscale"?n:"inherit"}function x3(n){if(!n)return"";try{return new URL(n).port||""}catch{return""}}function Wd(n){return n.length<=8?n:n.slice(0,8)}function Go({formatDateTime:n,name:r,status:l,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:r}),f.jsx("div",{className:"text-[10px] text-muted-foreground",children:n(l==null?void 0:l.checkedAt)})]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[typeof(l==null?void 0:l.authenticated)=="boolean"&&f.jsx(wt,{variant:l.authenticated?"default":"outline",className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:l.authenticated?"auth ok":"auth required"}),f.jsx(wt,{variant:i(l==null?void 0:l.status),className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:(l==null?void 0:l.status)??"unknown"})]})]})}function Zt(n){if(n==null||n==="")return"Unavailable";const r=new Date(n);return Number.isNaN(r.getTime())?"Unavailable":new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(r)}function S3(n){const r=Math.max(0,Math.floor(n)),l=Math.floor(r/86400),i=Math.floor(r%86400/3600),c=Math.floor(r%3600/60);return l>0?`${l}d ${i}h`:i>0?`${i}h ${c}m`:`${c}m`}function hy(n){if(n==null||Number.isNaN(n))return"Unavailable";const r=["B","KB","MB","GB","TB"];let l=n,i=0;for(;l>=1024&&i<r.length-1;)l/=1024,i+=1;return`${l.toFixed(l>=10||i===0?0:1)} ${r[i]}`}function kl(n){return n==="ok"?"default":n==="missing"||n==="install-failed"||n==="login-failed"?"destructive":n==="not-authenticated"||n==="unsupported-platform"?"outline":"secondary"}function w3(n){return n.available?f.jsxs(wt,{className:"gap-1 rounded-sm px-1.5 py-0 text-[10px]",children:[f.jsx(Xo,{className:"h-3 w-3"}),"Available"]}):f.jsxs(wt,{variant:"destructive",className:"gap-1 rounded-sm px-1.5 py-0 text-[10px]",children:[f.jsx(zN,{className:"h-3 w-3"}),"Unavailable"]})}function E3(n){return n.update?n.update.updateAvailable?f.jsxs(wt,{variant:"outline",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.14em]",children:["Update ",n.update.latestVersion]}):f.jsx(wt,{variant:"secondary",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.14em]",children:"Up to date"}):null}function N3(n){return n.available?null:n.metadataStatus??null}function T3(n){var l;const r=`npm install -g ${(l=n.update)==null?void 0:l.packageName}@latest`;return n.id==="claude"?`${r} --include=optional --ignore-scripts=false`:r}function C3(n){if(n.error)return n.error;const r=n.result;return(r==null?void 0:r.detail)??null}function et({label:n,value:r,mono:l=!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",l&&"font-mono text-[11px]"),children:r})]})}function Io({label:n,value:r,mono:l=!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",l&&"font-mono",n==="Path"&&"break-all whitespace-normal"),children:r})]})}function R3({agent:n,nodeName:r,activeOperation:l,onUpgrade:i}){var y,p;const c=((y=n.update)==null?void 0:y.updateAvailable)===!0,d=E3(n),m=!!l,h=N3(n);return f.jsxs("div",{className:"rounded-sm 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(Wy,{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:[w3(n),h&&f.jsx(wt,{variant:kl(h),className:"rounded-sm px-1.5 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(Io,{label:"Version",value:n.version??"Unavailable",mono:!!n.version}),n.update&&f.jsx(Io,{label:"Latest",value:n.update.latestVersion??"Unavailable",mono:!!n.update.latestVersion}),f.jsx(Io,{label:"Checked",value:Zt(n.checkedAt)}),n.update&&f.jsx(Io,{label:"Update check",value:Zt(n.update.checkedAt)}),f.jsx(Io,{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:l?f.jsxs(wt,{variant:"outline",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.14em]",children:["Upgrade ",l.status]}):c?f.jsxs(Tf,{children:[f.jsx(Cf,{asChild:!0,children:f.jsx("button",{type:"button",disabled:m,className:"rounded-sm transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/45 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-60",children:d})}),f.jsxs(Qs,{children:[f.jsxs(Zs,{children:[f.jsxs(Js,{children:["Upgrade ",n.label,"?"]}),f.jsxs(Ws,{children:["This runs ",T3(n)," on ",r,". Remote nodes execute the command on the remote machine."]})]}),f.jsxs(Fs,{children:[f.jsx(tc,{children:"Cancel"}),f.jsx(ec,{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 A3(n,r){var l;return(l=n==null?void 0:n.nodes)!=null&&l.length?n.nodes:r?[r]:[]}function j3(n,r){var i;if(r&&n.id===r.nodeId)return r;const l=n.settingsSnapshot;return{...n,nodeId:n.id,version:(l==null?void 0:l.version)??"Unavailable",packageName:l==null?void 0:l.packageName,uptime:(l==null?void 0:l.uptime)??0,localDashboardOrigin:((i=l==null?void 0:l.runtime)==null?void 0:i.localDashboardOrigin)??void 0,auth:l==null?void 0:l.auth,os:l==null?void 0:l.os,runtime:l==null?void 0:l.runtime,runtimeUpdate:l==null?void 0:l.runtimeUpdate,agents:l==null?void 0:l.agents,startupRequirements:l==null?void 0:l.startupRequirements,components:l==null?void 0:l.components,repository:l==null?void 0:l.repository,packages:l==null?void 0:l.packages}}function _3(n,r){return n.id===r?`${n.name} (this node)`:`${n.name} (${n.role})`}function M3(n){return n==="claude"?"Claude Code":n==="copilot"?"Copilot CLI":"Codex"}function O3(n){var l;const r=(l=n.payload)==null?void 0:l.agent;return r==="claude"||r==="codex"||r==="copilot"?r:null}function k3({cluster:n,systemInfo:r,sseConnected:l,initialSelectedNodeId:i,onRefresh:c}){var ne,re,fe,me,ie,ue,oe,M,V,Z,de,F,A,G,X,W,te,se,ee,ce;const d=v.useMemo(()=>A3(n,r),[n,r]),[m,h]=v.useState(()=>{var J;return i??(r==null?void 0:r.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)??r??d[0]??null,N=d.find(J=>J.id===m)??w,T=N?j3(N,r):null,E=!!(r&&N&&N.id===r.nodeId),C=E||!!(N!=null&&N.settingsSnapshot),R=T==null?void 0:T.runtimeUpdate,_=((ne=T==null?void 0:T.startupRequirements)==null?void 0:ne.components)??(T==null?void 0:T.components)??{},O=v.useMemo(()=>d.map(J=>J.id),[d]),z=O.join("\0"),B=r3(d),P=v.useMemo(()=>new Map(d.map(J=>[J.id,J.name])),[B]);v.useEffect(()=>{i&&O.includes(i)&&h(i)},[i,z]);const q=v.useCallback(async(J,ve)=>{const be=p1(J);if(!be||x.current.has(J.id))return;const Se=O3(J),He=(ve==null?void 0:ve.agentLabel)??(Se?M3(Se):"Agent"),_e=(ve==null?void 0:ve.nodeName)??P.get(J.nodeId)??J.nodeId;x.current.add(J.id),p($e=>new Map($e).set(be,J));try{const $e=await g1(J);if($e.status==="succeeded")await(c==null?void 0:c()),g.current.has($e.id)||(Pe.success(`${He} upgrade finished on ${_e}`),g.current.add($e.id));else if($e.status==="failed")g.current.has($e.id)||(Pe.error(C3($e)??`${He} upgrade failed`),g.current.add($e.id));else{p(ft=>new Map(ft).set(be,$e)),Pe.info(`${He} upgrade is still ${$e.status} on ${_e}`);return}p(ft=>{const Ge=new Map(ft),Ut=Ge.get(be);return(!Ut||Ut.id===$e.id)&&Ge.delete(be),Ge})}catch($e){p(ft=>{const Ge=new Map(ft),Ut=Ge.get(be);return(!Ut||Ut.id===J.id)&&Ge.delete(be),Ge}),Pe.error($e instanceof Error?$e.message:`${He} upgrade failed`)}finally{x.current.delete(J.id)}},[c,P]);v.useEffect(()=>{if(O.length===0)return;let J=!1;async function ve(){let be;try{be=await i3(O)}catch{return}if(!J){p(Se=>{const He=new Map(Se);for(const[_e,$e]of be)He.set(_e,$e);return He});for(const Se of be.values())q(Se)}}return ve(),()=>{J=!0}},[q,z]);async function $(J){if(N)try{const ve=await HE(N.id,J.id);Pe.info(`${J.label} upgrade started on ${N.name}`),await q(ve,{agentLabel:J.label,nodeName:N.name})}catch(ve){Pe.error(ve instanceof Error?ve.message:`${J.label} upgrade failed`)}}return!N||!T?f.jsx("div",{className:"rounded-sm border border-dashed border-border/70 bg-muted/20 px-3 py-5 text-center text-[11px] text-muted-foreground",children:"Loading session metadata..."}):f.jsxs("div",{className:"space-y-3",children:[f.jsxs("section",{className:"relative mt-1 rounded-sm border border-border/70 bg-background/75 p-3 shadow-none",children:[!E&&f.jsxs(wt,{variant:"outline",className:"absolute right-3 top-2.5 rounded-sm border-border/70 bg-background/60 px-1.5 py-0 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-sm border border-border/70 bg-background/75 px-1.5 py-0 text-[10px] text-muted-foreground",children:[f.jsx(Qj,{status:N.status}),f.jsx("span",{className:"font-medium text-foreground",children:N.name})]}),f.jsx(Zj,{role:N.role}),f.jsx(wt,{variant:"outline",className:"rounded-sm border-border/70 bg-background/60 px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:N.transportType??T.transportType??"direct"}),f.jsx(wt,{variant:E?"default":"outline",className:"rounded-sm px-1.5 py-0 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(gx,{value:N.id,onValueChange:h,children:[f.jsx(sm,{className:"h-7 rounded-sm border-border/70 bg-background/70 text-[11px]",children:f.jsx(vx,{placeholder:"Choose a node"})}),f.jsx(cm,{className:"settings-node-select-content rounded-sm text-[10px] leading-4",children:d.map(J=>f.jsx(Dl,{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:_3(J,r==null?void 0:r.nodeId)},J.id))})]})]})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsxs(wt,{variant:l?"default":"outline",className:"gap-1 rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:[f.jsx(tT,{className:"h-3 w-3"}),l?"Live link":"Reconnecting"]}),f.jsxs(wt,{variant:"outline",className:"rounded-sm border-border/70 bg-background/60 px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:["Uptime ",S3(T.uptime)]})]})]})]}),!C&&f.jsx("div",{className:"rounded-sm 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(Dj,{defaultValue:"session",className:"space-y-2",children:[f.jsxs(Hx,{className:"h-auto flex-wrap rounded-sm border border-border/60 bg-muted/40 p-0.5",children:[f.jsx(zs,{value:"session",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Session"}),f.jsx(zs,{value:"access",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Access"}),f.jsx(zs,{value:"about",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"About"})]}),f.jsxs(Ks,{value:"session",className:"mt-0 grid gap-2 xl:grid-cols-[1.15fr_0.85fr]",children:[f.jsxs(Pn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Gn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(In,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(n0,{className:"h-3.5 w-3.5 text-primary"}),"Selected node"]}),f.jsx(Xn,{className:"text-[10px]",children:"Cluster role, identity, and node-scoped runtime state."})]}),f.jsxs(Kn,{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(Pn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Gn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(In,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(HN,{className:"h-3.5 w-3.5 text-primary"}),"OS info"]}),f.jsx(Xn,{className:"text-[10px]",children:"Host and resource details reported by the current process."})]}),f.jsxs(Kn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(et,{label:"Host",value:((fe=T.os)==null?void 0:fe.hostname)??"Unavailable"}),f.jsx(et,{label:"Platform",value:T.os?`${T.os.platform} ${T.os.release}`:"Unavailable"}),f.jsx(et,{label:"Arch",value:((me=T.os)==null?void 0:me.arch)??"Unavailable"}),f.jsx(et,{label:"CPU",value:((ie=T.os)==null?void 0:ie.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?`${hy(T.os.freeMemoryBytes)} free / ${hy(T.os.totalMemoryBytes)} total`:"Unavailable"})]})]}),R&&f.jsx("div",{className:"xl:col-span-2",children:f.jsx(g3,{checkedLabel:Zt(R.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:R,workDir:((V=T.runtime)==null?void 0:V.workDir)??N.workDir})}),f.jsxs(Pn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none xl:col-span-2",children:[f.jsxs(Gn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(In,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(Wy,{className:"h-3.5 w-3.5 text-primary"}),"Available agents"]}),f.jsx(Xn,{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(Kn,{"data-agent-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:(T.agents??[]).map(J=>f.jsx(R3,{agent:J,nodeName:N.name,activeOperation:y.get(`${N.id}:${J.id}`),onUpgrade:$},J.id))})]})]}),f.jsxs(Ks,{value:"access",className:"mt-0 grid gap-2 xl:grid-cols-2",children:[f.jsxs(Pn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Gn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(In,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(TN,{className:"h-3.5 w-3.5 text-primary"}),"Access surface"]}),f.jsx(Xn,{className:"text-[10px]",children:"How this node is exposed to the dashboard and other peers."})]}),f.jsxs(Kn,{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(Pn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Gn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(In,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(uT,{className:"h-3.5 w-3.5 text-primary"}),"Auth"]}),f.jsx(Xn,{className:"text-[10px]",children:"Current bearer-auth and trusted access posture."})]}),f.jsxs(Kn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(et,{label:"Enabled",value:(Z=T.auth)!=null&&Z.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(Pn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Gn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(In,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(YN,{className:"h-3.5 w-3.5 text-primary"}),"Paths"]}),f.jsx(Xn,{className:"text-[10px]",children:"Workspace and runtime paths currently used by this node."})]}),f.jsxs(Kn,{className:"space-y-0 px-3 pb-2.5",children:[f.jsx(et,{label:"Work dir",value:((A=T.runtime)==null?void 0:A.workDir)??T.workDir??"Unavailable",mono:!!(((G=T.runtime)==null?void 0:G.workDir)??T.workDir)}),f.jsx(et,{label:"Storage",value:((X=T.runtime)==null?void 0:X.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:!!((se=T.runtime)!=null&&se.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(Pn,{className:"rounded-sm border-border/70 bg-background/75 shadow-none",children:[f.jsxs(Gn,{className:"pb-1.5 pt-2.5 px-3",children:[f.jsxs(In,{className:"flex items-center gap-1.5 text-[12px]",children:[f.jsx(Bs,{className:"h-3.5 w-3.5 text-primary"}),"Startup checks"]}),f.jsx(Xn,{className:"text-[10px]",children:"Dependency preflight snapshot persisted during node startup."})]}),f.jsxs(Kn,{className:"space-y-3 px-3 pb-2.5",children:[f.jsxs("div",{className:"rounded-sm 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(Go,{formatDateTime:Zt,name:"Azure CLI",status:_.az,statusVariant:kl}),f.jsx(Go,{formatDateTime:Zt,name:"DevTunnel",status:_.devtunnel,statusVariant:kl}),f.jsx(Go,{formatDateTime:Zt,name:"Claude Code",status:_.claude,statusVariant:kl}),f.jsx(Go,{formatDateTime:Zt,name:"Codex",status:_.codex,statusVariant:kl}),f.jsx(Go,{formatDateTime:Zt,name:"Copilot CLI",status:_.copilot,statusVariant:kl})]})]})]})]}),f.jsx(Wj,{formatDateTime:Zt,viewInfo:T})]})]})}function D3({initialSelectedNodeId:n,open:r,onOpenChange:l,showTrigger:i=!0}={}){const{cluster:c,systemInfo:d,sseConnected:m,refresh:h}=Fy();return f.jsx(E5,{open:r,onOpenChange:l,showTrigger:i,children:f.jsx(k3,{cluster:c,systemInfo:d,sseConnected:m,initialSelectedNodeId:n,onRefresh:h})})}const IM="codex",XM="bypass",z3=[{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"}],KM=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],QM=new Set(z3.filter(n=>n.supportsFollowUp).map(n=>n.value)),ZM=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],FM=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],L3=new Set(["pending","assigned"]),U3=new Set(["running"]),B3=new Set(["completed","failed","cancelled"]),JM=10;function WM(n,r){switch(r){case"running":return U3.has(n.status);case"waiting":return L3.has(n.status);case"closed":return B3.has(n.status);case"shared":return!!n.activeShare;case"archived":return n.status==="archived";case"active":default:return n.status!=="archived"}}function eO(n,r){if(r==="all")return!0;const l=n.conversationKind==="nativeSession";return r==="native"?l:!l}function tO(n,r){const l=r.trim().toLowerCase();return l?[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(l)):!0}function H3(n,r,l){if(!n)return"unassigned";const i=r==null?void 0:r.find(c=>c.id===n);return(i==null?void 0:i.name)??l??n.slice(0,8)}function nO(n,r,l){return H3(n,r,l).toLowerCase()}function aO(n,r,l){return!n.assignedTo||(l==null?void 0:l.id)===n.assignedTo?!0:(r==null?void 0:r.some(i=>i.id===n.assignedTo))??!1}function rO(n,r){return[...n].sort((l,i)=>l.id===r?-1:i.id===r?1:l.name.localeCompare(i.name))}function lO(n){if(!n||typeof n!="object")return null;const r=n,l=r.createMode,i=l==="chat"||l==="native"?l:void 0,c=r.createDefaults,d=c&&typeof c=="object"&&!Array.isArray(c)?c:null,m=d?{assignTo:typeof d.assignTo=="string"||d.assignTo===null?d.assignTo:void 0,project:typeof d.project=="string"||d.project===null?d.project:void 0}:void 0;return{draftNewTask:r.draftNewTask===!0,returnRoute:typeof r.returnRoute=="string"?r.returnRoute:void 0,returnTaskId:typeof r.returnTaskId=="string"||r.returnTaskId===null?r.returnTaskId:void 0,createMode:i,createDefaults:m}}function oO(n){return n==="default workspace"?n:n.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??n}function iO(n){const r=Date.now()-n;return r<6e4?"just now":r<36e5?`${Math.floor(r/6e4)}m`:r<864e5?`${Math.floor(r/36e5)}h`:`${Math.floor(r/864e5)}d`}function sO(n){return new Date(n).toLocaleString()}function cO(n){const r=Math.floor(n/1e3),l=Math.floor(r/3600),i=Math.floor(r%3600/60),c=r%60;return`${String(l).padStart(2,"0")}:${String(i).padStart(2,"0")}:${String(c).padStart(2,"0")}`}async function $3(n,r="Copied to clipboard"){var l,i,c;try{if((i=(l=globalThis.navigator)==null?void 0:l.clipboard)!=null&&i.writeText)return await globalThis.navigator.clipboard.writeText(n),Pe.success(r),!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 Pe.success(r),!0}catch(d){return Pe.error(d instanceof Error?d.message:"Failed to copy"),!1}}const q3="default workspace";function Ls(n){const r=n.replace(/\\/g,"/");return r==="/"||/^[A-Za-z]:\/$/.test(r)?r:r.replace(/\/+$/g,"")||r}function V3(n){const r=n.replace(/\\/g,"/");return r.startsWith("/")||r.startsWith("//")||/^[A-Za-z]:\//.test(r)}function Y3(n,r){const l=Ls(n),i=r.replace(/\\/g,"/").replace(/^\/+|\/+$/g,"");return!i||i==="."?l:l==="/"||/^[A-Za-z]:\/$/.test(l)?`${l}${i}`:`${l}/${i}`}function P3(n,r){var d,m,h;const l=(d=n.effectiveProjectPath)==null?void 0:d.trim();if(l)return Ls(l);const i=(m=n.project)==null?void 0:m.trim();if(!i)return q3;if(V3(i)||!n.assignedTo)return Ls(i);const c=(h=r==null?void 0:r.get(n.assignedTo))==null?void 0:h.trim();return c?Y3(c,i):Ls(i)}function uO(n,r,l,i){const c=new Map;for(const m of n){const h=m.assignedTo??null,y=h??"__unassigned__",p=h?r.get(h)??m.assignedNodeName??h.slice(0,8):"Unassigned",x=P3(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(l){if(m.nodeId===l)return-1;if(h.nodeId===l)return 1}return m.nodeId===null?1:h.nodeId===null?-1:m.nodeName.localeCompare(h.nodeName)}),d}const G3={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"},I3={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 X3(n){return n.split(".")[0]??"unknown"}function K3(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function Ml(n,r){return(r==null?void 0:r.get(n))??n}function b1(n,r){const l=n.data,i=l.operation;switch(n.type){case"node.joined":return`${l.name} joined the cluster`;case"node.left":return`${Ml(l.nodeId,r)} left (${l.reason})`;case"node.status":return`${Ml(l.nodeId,r)} is now ${l.status}`;case"node.operation.created":return`${i==null?void 0:i.kind} ${i==null?void 0:i.status} on ${Ml(i==null?void 0:i.nodeId,r)}`;case"node.operation.updated":return`${i==null?void 0:i.kind} ${i==null?void 0:i.status} on ${Ml(i==null?void 0:i.nodeId,r)}`;case"transport.changed":return`${Ml(l.nodeId,r)} transport switched to ${l.transportType}`;case"task.created":return`"${l.title}" created`;case"task.assigned":return`task assigned to ${Ml(l.nodeId,r)}`;case"task.status":return`task ${l.taskId.slice(0,8)} -> ${l.status}`;case"election.started":return`candidate ${l.candidateId.slice(0,8)} term ${l.term}`;case"election.complete":return`leader elected, term ${l.term}`;case"cluster.state":return`${l.nodeCount} nodes, term ${l.term}`;default:return JSON.stringify(l)}}function Q3(n){return JSON.stringify(n,null,2)}function Z3({events:n,maxHeight:r="400px",nodeNameById:l,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:r},children:f.jsx("div",{className:"space-y-1.5",children:n.map(m=>{const h=X3(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:K3(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",I3[h]),children:m.type}):f.jsx(wt,{variant:"outline",className:le("w-fit text-[9px] font-medium uppercase tracking-[0.14em] px-1.5 py-0",G3[h]),children:m.type})]}),f.jsxs("div",{className:le("flex shrink-0 items-center",d?"gap-px":"gap-0.5"),children:[f.jsx(xn,{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 $3(Q3(m),"Event copied"),"aria-label":`Copy ${m.type} event`,title:"Copy event",children:f.jsx(UN,{className:d?"h-2.5 w-2.5":"h-3 w-3"})}),i&&f.jsx(xn,{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(l0,{className:d?"h-2.5 w-2.5":"h-3 w-3"})})]})]}),f.jsx("div",{className:"text-[9px] leading-snug text-foreground/85",children:b1(m,l)})]})},m.id)})})})}const F3=["node.","election.","transport."],J3="cluster.state";function W3(n){return n.type==="node.status"?!1:F3.some(r=>n.type.startsWith(r))}function e_(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function t_(n,r){return n?{time:e_(n.timestamp),text:b1(n,r)}:null}function n_(n){return n.transportType==="devtunnel"||!!n.devtunnelEndpoint}function a_(n){if(n.length===0)return"No node tunnel";const r=n.filter(c=>c.status==="offline").length;if(r>0)return`${r} offline`;const l=n.filter(c=>{var d;return((d=c.devtunnelHealth)==null?void 0:d.status)==="failed"}).length;if(l>0)return`${l} 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 r_(n,r){var c;const l=(r==null?void 0:r.get(n.id))??n.name??n.id;if(n.status==="offline")return{label:l,status:"offline"};const i=((c=n.devtunnelHealth)==null?void 0:c.status)??"checking";return{label:l,status:i}}function l_(n){if(n.length===0)return"No nodes";const r=n.filter(i=>i.status==="offline").length;if(r>0)return`${r} offline`;const l=n.filter(i=>i.status==="busy").length;return l>0?`${l} busy`:"Healthy"}function o_(n,r){return{label:(r==null?void 0:r.get(n.id))??n.name??n.id,status:n.status}}function i_({connected:n,events:r,nodes:l=[],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,R]=v.useState(!0),[_,O]=v.useState(new Set),[z,B]=v.useState(!1),[P,q]=v.useState(!1),$=v.useRef(null),ne=v.useRef(null),re=v.useMemo(()=>r.filter(Ne=>W3(Ne)&&!_.has(Ne.id)),[r,_]),fe=v.useMemo(()=>r.find(Ne=>Ne.type===J3)??re[0],[r,re]),me=v.useMemo(()=>t_(fe,c),[fe,c]),ie=v.useMemo(()=>{const Ne=new Map(l.map(Ie=>[Ie.id,Ie]));return i&&Ne.set(i.id,i),Array.from(Ne.values())},[i,l]),ue=v.useMemo(()=>ie.filter(n_),[ie]),oe=ue.some(Ne=>{var Ie;return Ne.status==="offline"||((Ie=Ne.devtunnelHealth)==null?void 0:Ie.status)==="failed"}),M=ie.some(Ne=>Ne.status==="offline"),V=ie.some(Ne=>Ne.status==="busy"),Z=ie.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",A=d!==null,G=!!(A&&(d!=null&&d.updateAvailable)&&d.latestVersion),X=(d==null?void 0:d.latestVersion)??null,W=!!(A&&!G&&!X&&(d!=null&&d.detail)),te=z?"Relaunching runtime...":"Relaunch to apply update",se=P?"Downloading and installing desktop update...":G&&X?`Available version ${X}`:W?(d==null?void 0:d.detail)??"Desktop update unavailable":"Desktop is current",ee=!!x,ce=!!(A&&p),J=ee||ce,ve=A||!!g,be=A||!!g||ee,Se=ve?A?"Update":"Relaunch":"Reload",He=ve?A?se:te:"Reload dashboard page",_e=ve?A?P:z:!1,$e=ve?A?_e||!G||!y:_e:!1,ft=A?G&&X?`Install desktop update ${X}`:W?"Desktop update unavailable":"Desktop is current":ve?z?"Relaunching runtime":"Relaunch runtime":"Reload dashboard page";function Ge(){ne.current&&(clearTimeout(ne.current),ne.current=null)}function Ut(){Ge(),N(!0)}function pt(){Ge(),ne.current=setTimeout(()=>{N(!1),ne.current=null},180)}function sr(){Ge()}function cr(){Ge(),E(!1),N(!1)}async function Ct(){if(!(!g||z)){B(!0);try{await g()}finally{B(!1)}}}async function On(){if(!(!G||!y||P)){q(!0);try{await y()}finally{q(!1)}}}async function Rt(){if(!(!p||z)){E(!1),B(!0);try{await p()}finally{B(!1)}}}async function Hr(){if(!ve){await kn();return}if(A){await On();return}await Ct()}async function kn(){x&&(E(!1),await x())}return v.useEffect(()=>()=>{Ge()},[]),v.useEffect(()=>{O(Ne=>{if(Ne.size===0)return Ne;const Ie=new Set(r.map(ct=>ct.id)),We=new Set(Array.from(Ne).filter(ct=>Ie.has(ct)));return We.size===Ne.size?Ne:We})},[r]),v.useEffect(()=>{w||E(!1)},[w]),v.useEffect(()=>{if(!w)return;const Ne=We=>{var ct;(ct=$.current)!=null&&ct.contains(We.target)||(Ge(),E(!1),N(!1))},Ie=We=>{We.key==="Escape"&&(Ge(),E(!1),N(!1))};return document.addEventListener("pointerdown",Ne),document.addEventListener("keydown",Ie),()=>{document.removeEventListener("pointerdown",Ne),document.removeEventListener("keydown",Ie)}},[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:Ut,onMouseLeave:pt,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:sr,onMouseLeave:cr,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(Bs,{className:"h-3 w-3 text-emerald-500"}):f.jsx(gT,{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"}),me?f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"mt-0.5 truncate text-[9px] leading-snug text-foreground/80",children:me.text}),f.jsx("div",{className:"font-mono text-[8px] text-muted-foreground/60",children:me.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(bs,{className:"h-3 w-3 shrink-0 text-destructive"}):V?f.jsx(Bs,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(Xo,{className:le("h-3 w-3 shrink-0",Z?"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":V?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":Z?"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:l_(ie)})]}),ie.length>0&&f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:ie.map(Ne=>{const{label:Ie,status:We}=o_(Ne,c),ct=We==="offline",Dn=We==="busy";return f.jsxs("div",{"aria-label":`${Ie} ${We}`,className:le("flex items-center justify-between gap-2 rounded-sm px-2 py-0.5",ct?"bg-destructive/6":Dn?"bg-amber-500/6":"bg-emerald-500/5"),title:`${Ie} ${We}`,children:[f.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:Ie}),ct?f.jsx(bs,{className:"h-3 w-3 shrink-0 text-destructive"}):Dn?f.jsx(jv,{className:"h-3 w-3 shrink-0 text-amber-500"}):f.jsx(Xo,{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(bs,{className:"h-3 w-3 shrink-0 text-destructive"}):f.jsx(Xo,{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:a_(ue)})]}),f.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:ue.map(Ne=>{var Ln;const{label:Ie,status:We}=r_(Ne,c),ct=We==="failed"||We==="offline",Dn=We!=="healthy"&&We!=="failed"&&We!=="offline",zn=(Ln=Ne.devtunnelHealth)!=null&&Ln.reason?`${Ie} ${We}: ${Ne.devtunnelHealth.reason}`:`${Ie} ${We}`;return f.jsxs("div",{"aria-label":`${Ie} ${We}`,className:le("flex items-center justify-between gap-2 rounded-sm px-2 py-0.5",ct?"bg-destructive/6":Dn?"bg-muted/30":"bg-emerald-500/5"),title:zn,children:[f.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:Ie}),ct?f.jsx(bs,{className:"h-3 w-3 shrink-0 text-destructive"}):Dn?f.jsx(jv,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):f.jsx(Xo,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},Ne.id)})})]}),f.jsxs("div",{children:[f.jsxs("button",{type:"button",onClick:()=>R(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(Jo,{className:"h-3 w-3 text-muted-foreground"}):f.jsx(uf,{className:"h-3 w-3 text-muted-foreground"})]}),C&&f.jsx("div",{className:"px-2 pb-2",children:f.jsx(Z3,{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(Ie=>new Set(Ie).add(Ne))})})]}),A&&(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(xn,{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",G?"bg-primary/12 text-primary hover:bg-primary/18":"bg-background/45 text-muted-foreground hover:bg-emerald-500/10"),onClick:()=>void Hr(),disabled:$e,"aria-label":ft,"aria-describedby":"live-link-restart-hint",title:He,children:[f.jsx(_v,{className:le("h-2.5 w-2.5",_e&&"animate-pulse")}),f.jsx("span",{children:Se})]}),J&&f.jsx(xn,{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",G?"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(Jo,{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 Hr(),disabled:$e,"aria-label":ft,children:[f.jsx(_v,{className:le("h-2.5 w-2.5",_e&&"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 Rt(),disabled:z,"aria-label":"Restart Meshy Desktop",children:[f.jsx(df,{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 kn(),"aria-label":"Reload dashboard page",children:[f.jsx(df,{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(xn,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:()=>O(new Set(r.map(Ne=>Ne.id))),disabled:re.length===0,title:"Dismiss all notifications",children:"Dismiss all"}),f.jsx(xn,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:()=>N(!1),children:"Close"})]})]})]})]})}const py="dark",Ur="fluent",s_="clean",ef="meshy-layout-default-migrated-to-compact",Rf="true",c_="compact",u_=new Set(["airy","clean","fluent"]);function d_(n){return n!==null&&u_.has(n)}function bc(n){return n===c_?"fluent":d_(n)?n:null}function f_(n,r){const l=bc(n);return l===s_&&r!==Rf?Ur:l??Ur}const nc="symphony",x1="default",m_=new Set(["light","dark","system"]),h_=new Set(["porcelain","warm","finsight","edge","symphony","launcher"]),S1=v.createContext(null);function p_(n){const r=new URLSearchParams(n).get("theme");return w1(r)?r:null}function g_(n){const r=new URLSearchParams(n).get("palette");return hm(r)}function v_(n){const r=new URLSearchParams(n).get("layout");return bc(r)}function y_(){if(typeof document>"u")return null;const n=document.documentElement;return{theme:n.classList.contains("dark")?"dark":"light",palette:hm(n.getAttribute("data-palette"))??nc,layout:bc(n.getAttribute("data-layout"))??Ur}}function dO(n,r=y_()){if(!r)return n;try{const l=/^[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",r.theme),c.searchParams.set("palette",r.palette),c.searchParams.set("layout",r.layout),l?c.toString():`${c.pathname}${c.search}${c.hash}`}catch{return n}}const tf=.9;function gy(n){const r=n.trim().match(/^(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)%\s+(-?\d+(?:\.\d+)?)%$/);if(!r)return null;const l=(Number(r[1])%360+360)%360/60,i=ac(Number(r[2])/100,0,1),c=ac(Number(r[3])/100,0,1),d=(1-Math.abs(2*c-1))*i,m=d*(1-Math.abs(l%2-1)),h=c-d/2,[y,p,x]=l<1?[d,m,0]:l<2?[m,d,0]:l<3?[0,d,m]:l<4?[0,m,d]:l<5?[m,0,d]:[d,0,m];return[Math.round((y+h)*255),Math.round((p+h)*255),Math.round((x+h)*255),255]}function b_(n){const r=n.trim();if(!r||r==="transparent")return null;const l=r.match(/^rgba?\(\s*([+-]?\d+(?:\.\d+)?)\s*,\s*([+-]?\d+(?:\.\d+)?)\s*,\s*([+-]?\d+(?:\.\d+)?)(?:\s*,\s*([+-]?\d+(?:\.\d+)?))?\s*\)$/i);if(l)return[Ol(Number(l[1])),Ol(Number(l[2])),Ol(Number(l[3])),by(l[4])];const i=r.match(/^rgba?\(\s*([+-]?\d+(?:\.\d+)?)\s+([+-]?\d+(?:\.\d+)?)\s+([+-]?\d+(?:\.\d+)?)(?:\s*\/\s*([+-]?\d+(?:\.\d+)?%?))?\s*\)$/i);return i?[Ol(Number(i[1])),Ol(Number(i[2])),Ol(Number(i[3])),by(i[4])]:null}function x_(n,r,l){const i=gy(n);if(!i)return null;if(l==="clean"||l==="fluent")return i;const c=gy(r);return c?[nf(i[0],c[0],tf),nf(i[1],c[1],tf),nf(i[2],c[2],tf),255]:null}function S_(){const n=document.querySelector(".dashboard-shell-header-panel");if(!n)return null;const r=b_(getComputedStyle(n).backgroundColor);return!r||r[3]===0?null:r}function vy(){var m,h;if(typeof window>"u"||typeof document>"u")return;const n=((h=(m=window.__TAURI__)==null?void 0:m.core)==null?void 0:h.invoke)??null;if(!n)return;const r=document.documentElement,l=r.classList.contains("dark")?"dark":"light",i=getComputedStyle(r),c=bc(r.getAttribute("data-layout"))??Ur,d=S_()??x_(i.getPropertyValue("--card"),i.getPropertyValue("--background"),c);n("sync_desktop_theme",{theme:l,backgroundColor:d}).catch(()=>{})}function yy(){if(typeof window>"u")return()=>{};if(vy(),typeof window.requestAnimationFrame!="function")return()=>{};const n=window.requestAnimationFrame(()=>vy());return()=>window.cancelAnimationFrame(n)}function nf(n,r,l){return Math.round(n*l+r*(1-l))}function ac(n,r,l){return Math.min(Math.max(n,r),l)}function Ol(n){return Math.round(ac(n,0,255))}function by(n){if(n==null||n==="")return 255;const r=n.endsWith("%")?Number(n.slice(0,-1))/100:Number(n);return Math.round(ac(r,0,1)*255)}function w_({children:n}){const[r,l]=v.useState(()=>typeof window<"u"?p_(window.location.search)??T_(localStorage.getItem("meshy-theme"))??py:py),[i,c]=v.useState(()=>typeof window<"u"?g_(window.location.search)??C_(localStorage.getItem("meshy-palette"))??nc:nc),[d,m]=v.useState(()=>{if(typeof window<"u"){const h=v_(window.location.search);if(h)return localStorage.setItem(ef,Rf),h;const y=f_(localStorage.getItem("meshy-layout"),localStorage.getItem(ef));return localStorage.setItem(ef,Rf),y}return Ur});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(r),localStorage.setItem("meshy-theme",r),r==="system"){const p=window.matchMedia("(prefers-color-scheme: dark)"),x=()=>{y("system"),yy()};return p.addEventListener("change",x),()=>p.removeEventListener("change",x)}},[r]),v.useEffect(()=>{document.documentElement.setAttribute("data-palette",i),localStorage.setItem("meshy-palette",i)},[i]),v.useEffect(()=>{const h=document.documentElement;d===Ur?h.removeAttribute("data-layout"):h.setAttribute("data-layout",d),localStorage.setItem("meshy-layout",d)},[d]),v.useEffect(()=>yy(),[r,i,d]),f.jsx(S1.Provider,{value:{theme:r,setTheme:l,palette:i,setPalette:c,layout:d,setLayout:m},children:n})}function E_(){const n=v.useContext(S1);if(!n)throw new Error("useTheme must be used within ThemeProvider");return n}function w1(n){return n!==null&&m_.has(n)}function N_(n){return n!==null&&h_.has(n)}function T_(n){return w1(n)?n:null}function hm(n){return n===x1?"porcelain":N_(n)?n:null}function C_(n){return n===x1?null:hm(n)}const R_=[{value:"light",label:"Light",icon:a0},{value:"dark",label:"Dark",icon:t0},{value:"system",label:"System",icon:e0}],E1=[{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"}],N1=[{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 A_(){const{theme:n,setTheme:r,palette:l,setPalette:i,layout:c,setLayout:d}=E_(),[m,h]=v.useState(!1),y=v.useRef(null),p=v.useRef(null),x=n==="dark"?t0:n==="light"?a0:e0,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(xn,{variant:"ghost",size:"icon",onClick:()=>h(N=>!N),className:le("h-8 w-8 rounded-sm",l!==nc||c!==Ur?"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:[j_(c)," / ",__(l)]})]}),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:R_.map(({value:N,label:T,icon:E})=>{const C=n===N;return f.jsxs("button",{type:"button",onClick:()=>r(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:N1.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(Hs,{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(fT,{className:"h-2.5 w-2.5"}),"Palette"]}),f.jsx("div",{className:"space-y-1",children:E1.map(({value:N,label:T,hint:E})=>{const C=l===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(M_,{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(Hs,{className:"h-3 w-3 text-primary"})]},N)})})]})]})]})]})}function j_(n){var r;return((r=N1.find(l=>l.value===n))==null?void 0:r.label)??n}function __(n){var r;return((r=E1.find(l=>l.value===n))==null?void 0:r.label)??n}function M_({value:n}){const r={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%)"]},[l,i,c]=r[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:l}}),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 Qo={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}},T1="meshy-dashboard-panel-state-v2",C1="meshy-dashboard-terminal-open-v1";function fO({operationsOpen:n}){return{layout:{desktopTasksOpen:!0,operationsOpen:n},sizes:{tasks:Qo.tasks.defaultSize,operations:Qo.operations.defaultSize,terminal:Qo.terminal.defaultSize}}}function af(n){return typeof n=="object"&&n!==null}function xy(n,r){return typeof n=="boolean"?n:r}function rf(n,r,l){return typeof r=="number"&&Number.isFinite(r)?Zo(n,r):l}function Zo(n,r){const l=Qo[n];return Math.min(l.max,Math.max(l.min,r))}function mO(n,r){if(!n)return r;try{const l=n.getItem(T1);if(!l)return r;const i=JSON.parse(l);if(!af(i))return r;const c=af(i.layout)?i.layout:{},d=af(i.sizes)?i.sizes:{};return{layout:{desktopTasksOpen:xy(c.desktopTasksOpen,r.layout.desktopTasksOpen),operationsOpen:xy(c.operationsOpen,r.layout.operationsOpen)},sizes:{tasks:rf("tasks",d.tasks,r.sizes.tasks),operations:rf("operations",d.operations,r.sizes.operations),terminal:rf("terminal",d.terminal,r.sizes.terminal)}}}catch{return r}}function hO(n,r){if(n)try{n.setItem(T1,JSON.stringify(r))}catch{}}function O_(n,r){if(!n)return r;try{const l=n.getItem(C1);return l==="true"?!0:l==="false"?!1:r}catch{return r}}function k_(n,r){if(n)try{n.setItem(C1,String(r))}catch{}}function Sy(){var n;try{return((n=globalThis.window)==null?void 0:n.localStorage)??globalThis.localStorage??null}catch{return null}}function pO(n){return`${Number(n.toFixed(2))}rem`}function gO(n,r,l,i,c,d,m){const h=Number.isFinite(m)&&m>0?m:16;return n==="tasks"?Zo(n,r+(c-l)/h):n==="operations"?Zo(n,r+(l-c)/h):Zo(n,r+(i-d)/h)}function vO(n,r,l){const i=l===0?0:l>0?-1:1;return Zo(n,r+i*Qo[n].wheelStep)}const D_=7200*1e3;function z_(){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 js(){var n,r;return typeof window>"u"?null:((r=(n=window.__TAURI__)==null?void 0:n.core)==null?void 0:r.invoke)??null}function wy(n){return{currentVersion:null,latestVersion:null,updateAvailable:!1,checkedAt:new Date().toISOString(),releaseUrl:null,assetName:null,installable:!1,detail:n}}function lf(n,r){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 l=n.message;if(typeof l=="string"&&l.trim())return l}return r}function L_(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 U_(){const{cluster:n,events:r,sseConnected:l,systemInfo:i}=Fy(),c=Wn(),[d,m]=v.useState(()=>O_(Sy(),!1)),[h,y]=v.useState(""),[p,x]=v.useState(null),[g,w]=v.useState(null),N=!!js(),T=N?"max-w-none":"max-w-[1760px]",E=c.pathname==="/"||/^\/tasks\/[^/]+$/.test(c.pathname),C=v.useMemo(()=>{const B=new Map;for(const P of(n==null?void 0:n.nodes)??[])B.set(P.id,P.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]),R=v.useCallback(B=>{m(P=>typeof B=="function"?B(P):B)},[]);v.useEffect(()=>{k_(Sy(),d)},[d]),v.useEffect(()=>{const B=js();if(!B){w(null);return}let P=!1,q=!1;const $=re=>{q||(q=!0,re&&w(wy("Checking desktop update...")),B("check_desktop_update").then(fe=>{P||w(fe)}).catch(fe=>{if(!P){const me=lf(fe,"Desktop update check failed");w(ie=>ie!=null&&ie.updateAvailable?ie:wy(me))}}).finally(()=>{q=!1}))};$(!0);const ne=window.setInterval(()=>$(!1),D_);return()=>{P=!0,window.clearInterval(ne)}},[i==null?void 0:i.version]);async function _(){try{const B=await Ky({reason:"restart"});Pe.info(`Restarting runtime. Follow ${B.logPath} for launch output.`),await v1({previousPid:B.pid})||Pe.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout.")}catch(B){Pe.error(B instanceof Error?B.message:"Runtime restart failed")}}async function O(){const B=js();if(!B){Pe.error("Desktop updater is not available in this window");return}try{Pe.info("Downloading desktop update...");const P=await B("install_desktop_update");Pe.info(L_(P))}catch(P){Pe.error(lf(P,"Desktop update failed"))}}async function z(){const B=js();if(!B){Pe.error("Desktop restart is not available in this window");return}try{Pe.info("Restarting Meshy Desktop..."),await B("restart_desktop_app")}catch(P){Pe.error(lf(P,"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:"dashboard-shell-header relative z-50 shrink-0 px-2 py-2",children:f.jsxs("div",{className:le("dashboard-shell-header-panel 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(cf,{to:"/","aria-label":"Meshy home",className:"flex items-center gap-2",children:[f.jsx(z_,{}),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(n0,{className:"h-3 w-3 shrink-0 text-primary/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.nodeName})]}),f.jsx(uf,{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(GN,{className:"h-3 w-3 shrink-0 text-muted-foreground/70"}),f.jsx("span",{className:"max-w-[9rem] truncate",children:p.projectLabel})]}),f.jsx(uf,{className:"h-3 w-3 shrink-0 text-border/80"}),f.jsx(cf,{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(lT,{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(mm,{"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(xn,{variant:"ghost",size:"icon",onClick:()=>R(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(r0,{className:"h-4 w-4"})}),f.jsx(D3,{}),f.jsx(A_,{}),f.jsx("div",{className:"mx-0 h-4 w-px shrink-0 bg-border/50"}),f.jsx(i_,{connected:l,events:r,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:_})]})]})}),f.jsx("main",{className:le("dashboard-shell-main min-h-0 flex-1 px-2 pb-2",E?"overflow-hidden":"overflow-y-auto"),children:f.jsx("div",{className:le("dashboard-shell-content mx-auto h-full min-h-0",T),children:f.jsx(K2,{context:{terminalOpen:d,setTerminalOpen:R,headerSearchQuery:h,setHeaderSearchQuery:y,setHeaderTaskContext:x}})})})]})]})}const Ey=v.lazy(async()=>({default:(await Cy(()=>import("./DashboardPage-D2jQAhdO.js").then(r=>r.D),__vite__mapDeps([0,1,2,3,4]))).DashboardPage})),B_=v.lazy(async()=>({default:(await Cy(()=>import("./SharedConversationPage-BlehYOnU.js"),__vite__mapDeps([5,1]))).SharedConversationPage}));function H_(){return f.jsx(xE,{children:f.jsx(v.Suspense,{fallback:f.jsx($_,{}),children:f.jsxs(Z2,{children:[f.jsx(Or,{path:"/shared/tasks/:shareId",element:f.jsx(B_,{})}),f.jsxs(Or,{element:f.jsx(mN,{children:f.jsx(U_,{})}),children:[f.jsx(Or,{path:"/",element:f.jsx(Ey,{})}),f.jsx(Or,{path:"/nodes",element:f.jsx(Ev,{to:"/",replace:!0})}),f.jsx(Or,{path:"/tasks",element:f.jsx(Ev,{to:"/",replace:!0})}),f.jsx(Or,{path:"/tasks/:id",element:f.jsx(Ey,{})})]})]})})})}function $_(){return f.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function q_(n){const r=n??(typeof window>"u"?void 0:window);r!=null&&r.__TAURI__&&r.addEventListener("contextmenu",l=>{l.preventDefault()})}function V_(n){return f.jsx(kC,{className:"toaster group",style:{"--normal-bg":"hsl(var(--popover))","--normal-text":"hsl(var(--popover-foreground))","--normal-border":"hsl(var(--border))"},...n})}q_();Qw.createRoot(document.getElementById("root")).render(f.jsx(v.StrictMode,{children:f.jsxs(w_,{children:[f.jsx(H_,{}),f.jsx(V_,{})]})}));export{Ws as $,lb as A,xn as B,Hs as C,XM as D,ib as E,YN as F,dO as G,UN as H,mm as I,$3 as J,Hx as K,zs as L,H3 as M,Wy as N,Dj as O,PM as P,GM as Q,wt as R,n0 as S,KM as T,sO as U,Ks as V,Tf as W,l0 as X,Qs as Y,Zs as Z,Js as _,BC as a,fM as a$,Fs as a0,tc as a1,ec as a2,Cy as a3,K_ as a4,ob as a5,w5 as a6,iM as a7,r0 as a8,Xo as a9,iO as aA,Cf as aB,TM as aC,CM as aD,mO as aE,fO as aF,Sy as aG,hO as aH,vO as aI,pO as aJ,gO as aK,hM as aL,oN as aM,VE as aN,$M as aO,HM as aP,qM as aQ,cN as aR,wM as aS,J_ as aT,Z_ as aU,F_ as aV,W_ as aW,BE as aX,D3 as aY,EM as aZ,NM as a_,zN as aa,oM as ab,sM as ac,lM as ad,gT as ae,sT as af,wN as ag,QN as ah,ai,rO as aj,tT as ak,Z3 as al,Qj as am,qN as an,Zj as ao,cO as ap,L3 as aq,UM as ar,sb as as,df as at,JM as au,uO as av,ZM as aw,FM as ax,oO as ay,h1 as az,le as b,cM as b0,uM as b1,dM as b2,mM as b3,G_ as b4,Wn as b5,Uy as b6,P_ as b7,Fy as b8,lO as b9,_N as bA,zM as bB,DM as bC,kM as bD,LM as bE,VM as bF,BM as bG,aO as ba,WM as bb,eO as bc,nO as bd,tO as be,pM as bf,QM as bg,U3 as bh,xM as bi,SM as bj,bM as bk,yM as bl,X_ as bm,Q_ as bn,I_ as bo,eM as bp,YM as bq,MM as br,_M as bs,jM as bt,RM as bu,AM as bv,OM as bw,x5 as bx,z3 as by,Ny as bz,Be as c,w0 as d,rM as e,UE as f,nM as g,tM as h,GN as i,f as j,uf as k,Dl as l,aM as m,vM as n,gx as o,sm as p,vx as q,v as r,cm as s,Pe as t,lT as u,Jo as v,fT as w,IM as x,gM as y,b5 as z};
|