meshy-node 0.9.1 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dashboard/assets/DashboardPage-DyNoe7cv.js +149 -0
- package/dashboard/assets/DashboardShared-Coi8X4Mf.js +89 -0
- package/dashboard/assets/{DiffTab-BEsNBvvh.js → DiffTab-797YuD9i.js} +1 -1
- package/dashboard/assets/{FilesTab-Cg5PBMv6.js → FilesTab-CxWQD31o.js} +1 -1
- package/dashboard/assets/{MarkdownPreviewFrame-B58EGPZX.js → MarkdownPreviewFrame-tY-M5bCG.js} +2 -2
- package/dashboard/assets/PreviewTab-Ci5d1xLj.js +16 -0
- package/dashboard/assets/SharedConversationPage-BMmvljLM.js +2 -0
- package/dashboard/assets/{file-BDYM9RQo.js → file-QtUVb5S2.js} +1 -1
- package/dashboard/assets/index-BT6taBuK.css +1 -0
- package/dashboard/assets/index-BxuLE_uo.js +316 -0
- package/dashboard/assets/{play-nM4_YhiZ.js → play-Cwrx3Fzy.js} +1 -1
- package/dashboard/index.html +2 -2
- package/main.cjs +1795 -99
- package/package.json +4 -1
- package/runtime-metadata.json +4 -4
- package/dashboard/assets/DashboardPage-CKkLv8I1.js +0 -149
- package/dashboard/assets/DashboardShared-BvjPqceV.js +0 -83
- package/dashboard/assets/PreviewTab-CoN0CJR0.js +0 -16
- package/dashboard/assets/SharedConversationPage-aj_wfoD8.js +0 -7
- package/dashboard/assets/index-AgRF0fhH.js +0 -316
- package/dashboard/assets/index-BYWN4SLt.css +0 -1
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-DyNoe7cv.js","assets/DashboardShared-Coi8X4Mf.js","assets/MarkdownPreviewFrame-tY-M5bCG.js","assets/play-Cwrx3Fzy.js","assets/DashboardPage-i714dDoR.css","assets/SharedConversationPage-BMmvljLM.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var Uw=Object.defineProperty;var Bw=(n,r,o)=>r in n?Uw(n,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[r]=o;var st=(n,r,o)=>Bw(n,typeof r!="symbol"?r+"":r,o);function Hw(n,r){for(var o=0;o<r.length;o++){const i=r[o];if(typeof i!="string"&&!Array.isArray(i)){for(const c in i)if(c!=="default"&&!(c in n)){const d=Object.getOwnPropertyDescriptor(i,c);d&&Object.defineProperty(n,c,d.get?d:{enumerable:!0,get:()=>i[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const 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 o(c){const d={};return c.integrity&&(d.integrity=c.integrity),c.referrerPolicy&&(d.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?d.credentials="include":c.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function i(c){if(c.ep)return;c.ep=!0;const d=o(c);fetch(c.href,d)}})();function 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 $w(){if(ov)return Ho;ov=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(i,c,d){var m=null;if(d!==void 0&&(m=""+d),c.key!==void 0&&(m=""+c.key),"key"in c){d={};for(var h in c)h!=="key"&&(d[h]=c[h])}else d=c;return c=d.ref,{$$typeof:n,type:i,key:m,ref:c!==void 0?c:null,props:d}}return Ho.Fragment=r,Ho.jsx=o,Ho.jsxs=o,Ho}var iv;function qw(){return iv||(iv=1,Md.exports=$w()),Md.exports}var f=qw(),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 Vw(){if(sv)return Ce;sv=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),m=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),w=Symbol.iterator;function N(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=o,Ce.Profiler=c,Ce.PureComponent=O,Ce.StrictMode=i,Ce.Suspense=y,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=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=Vw()),Od.exports}var v=Af();const ae=Ny(v),jf=Hw({__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 Yw(){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 o(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=o(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=o(p)}}function B(M){if(E=!1,z(M),!T)if(o(y)!==null)T=!0,P||(P=!0,me());else{var V=o(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=o(y);g!==null&&!(g.expirationTime>M&&re());){var de=g.callback;if(typeof de=="function"){g.callback=null,w=g.priorityLevel;var F=de(g.expirationTime<=M);if(M=n.unstable_now(),typeof F=="function"){g.callback=F,z(M),V=!0;break t}g===o(y)&&i(y),z(M)}else i(y);g=o(y)}if(g!==null)V=!0;else{var A=o(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),o(y)===null&&M===o(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 Pw(){return dv||(dv=1,Dd.exports=Yw()),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 Gw(){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 o(){}var i={d:{f:o,r:function(){throw Error(r(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},c=Symbol.for("react.portal");function d(y,p,x){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:g==null?null:""+g,children:y,containerInfo:p,implementation:x}}var m=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return 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=Gw(),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 Iw(){if(hv)return $o;hv=1;var n=Pw(),r=Af(),o=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,l=t;;){var s=a.return;if(s===null)break;var u=s.alternate;if(u===null){if(l=s.return,l!==null){a=l;continue}break}if(s.child===u.child){for(u=s.child;u;){if(u===a)return y(s),e;if(u===l)return y(s),t;u=u.sibling}throw Error(i(188))}if(a.return!==l.return)a=s,l=u;else{for(var b=!1,S=s.child;S;){if(S===a){b=!0,a=s,l=u;break}if(S===l){b=!0,l=s,a=u;break}S=S.sibling}if(!b){for(S=u.child;S;){if(S===a){b=!0,a=u,l=s;break}if(S===l){b=!0,l=u,a=s;break}S=S.sibling}if(!b)throw Error(i(189))}}if(a.alternate!==l)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=o.__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 l={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]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),b=u[0],S=u[1];if(b&&S){var j=b.split(`
|
|
45
|
+
`),U=S.split(`
|
|
46
|
+
`);for(s=l=0;l<j.length&&!j[l].includes("DetermineComponentFrameRoot");)l++;for(;s<U.length&&!U[s].includes("DetermineComponentFrameRoot");)s++;if(l===j.length||s===U.length)for(l=j.length-1,s=U.length-1;1<=l&&0<=s&&j[l]!==U[s];)s--;for(;1<=l&&0<=s;l--,s--)if(j[l]!==U[s]){if(l!==1||s!==1)do if(l--,s--,0>s||j[l]!==U[s]){var I=`
|
|
47
|
+
`+j[l].replace(" at new "," at ");return e.displayName&&I.includes("<anonymous>")&&(I=I.replace("<anonymous>",e.displayName)),I}while(1<=l&&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(l){return`
|
|
48
|
+
Error generating stack: `+l.message+`
|
|
49
|
+
`+l.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 l=e.pendingLanes;if(l===0)return 0;var s=0,u=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var S=l&134217727;return S!==0?(l=S&~u,l!==0?s=Bn(l):(b&=S,b!==0?s=Bn(b):a||(a=S&~e,a!==0&&(s=Bn(a))))):(S=l&~u,S!==0?s=Bn(S):b!==0?s=Bn(b):a||(a=l&~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,l,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}l!==0&&dr(e,l,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 l=31-kt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function qt(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-kt(a),s=1<<l;s&t|e[l]&t&&(e[l]|=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,C1="__reactListeners$"+Ca,R1="__reactHandles$"+Ca,gm="__reactResources$"+Ca,Ql="__reactMarker$"+Ca;function Ec(e){delete e[At],delete e[Yt],delete e[wc],delete e[C1],delete e[R1]}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 A1=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 j1(e){return pt.call(xm,e)?!0:pt.call(bm,e)?!1:A1.test(e)?xm[e]=!0:(bm[e]=!0,!1)}function oi(e,t,a){if(j1(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="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,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}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 _1(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var s=l.get,u=l.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:l.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=_1(e,t,""+e[t])}}function wm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=Sm(e)?e.checked?"true":"false":e.value),e=l,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 M1=/[\n"\\]/g;function dn(e){return e.replace(M1,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Tc(e,t,a,l,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)):l!=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,l,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}l=l??s,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=S?e.checked:!!l,e.defaultChecked=!!l,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,l){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&&l&&(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,l&&(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,l){if(t==null){if(l!=null){if(a!=null)throw Error(i(92));if(oe(l)){if(1<l.length)throw Error(i(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=un(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),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 O1=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 l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||O1.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 l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var s in t)l=t[s],t.hasOwnProperty(s)&&a[s]!==l&&Cm(e,s,l)}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 k1=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"]]),D1=/^[\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 D1.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 l=a[t];if(l!==e&&l.form===e.form){var s=l[Yt]||null;if(!s)throw Error(i(90));Tc(l,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&wm(l)}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 l=e(t);return l}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 l=a[Yt]||null;if(l===null)return null;a=l[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":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;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,l,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(l=1;l<=b&&t[a-l]===s[u-l];l++);return ui=s.slice(e,1<l?1-l: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,l,s,u,b){this._reactName=a,this._targetInst=s,this.type=l,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}),z1=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),L1=g({},hi,{dataTransfer:0}),U1=Pt(L1),B1=g({},Wl,{relatedTarget:0}),zc=Pt(B1),H1=g({},mr,{animationName:0,elapsedTime:0,pseudoElement:0}),$1=Pt(H1),q1=g({},mr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),V1=Pt(q1),Y1=g({},mr,{data:0}),km=Pt(Y1),P1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},G1={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"},I1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function X1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=I1[e])?!!t[e]:!1}function Lc(){return X1}var K1=g({},Wl,{key:function(e){if(e.key){var t=P1[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"?G1[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}}),Q1=Pt(K1),Z1=g({},hi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Dm=Pt(Z1),F1=g({},Wl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Lc}),J1=Pt(F1),W1=g({},mr,{propertyName:0,elapsedTime:0,pseudoElement:0}),eS=Pt(W1),tS=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}),nS=Pt(tS),aS=g({},mr,{newState:0,oldState:0}),rS=Pt(aS),lS=[9,13,27,32],Uc=aa&&"CompositionEvent"in window,to=null;aa&&"documentMode"in document&&(to=document.documentMode);var oS=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 lS.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 iS(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 sS(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 cS={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"?!!cS[e.type]:t==="textarea"}function qm(e,t,a,l){Zr?Fr?Fr.push(l):Fr=[l]:Zr=l,t=as(t,"onChange"),0<t.length&&(a=new mi("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var no=null,ao=null;function uS(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(uS,t)}}function dS(e,t,a){e==="focusin"?(Gm(),no=t,ao=a,no.attachEvent("onpropertychange",Im)):e==="focusout"&&Gm()}function fS(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return pi(ao)}function mS(e,t){if(e==="click")return pi(t)}function hS(e,t){if(e==="input"||e==="change")return pi(t)}function pS(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jt=typeof Object.is=="function"?Object.is:pS;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),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var s=a[l];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 l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}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 gS=aa&&"documentMode"in document&&11>=document.documentMode,Wr=null,qc=null,lo=null,Vc=!1;function Fm(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Vc||Wr==null||Wr!==si(l)||(l=Wr,"selectionStart"in l&&$c(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),lo&&ro(lo,l)||(lo=l,l=as(qc,"onSelect"),0<l.length&&(t=new mi("onSelect","select",null,t,a),e.push({event:t,listeners:l}),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"),vS=pr("transitionrun"),yS=pr("transitionstart"),bS=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 l=fn[t];fn[t++]=null;var s=fn[t];fn[t++]=null;var u=fn[t];if(fn[t++]=null,l!==null&&s!==null){var b=l.pending;b===null?s.next=s:(s.next=b.next,b.next=s),l.pending=s}u!==0&&rh(a,s,u)}}function yi(e,t,a,l){fn[tl++]=e,fn[tl++]=t,fn[tl++]=a,fn[tl++]=l,Gc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Ic(e,t,a,l){return yi(e,t,a,l),bi(e)}function gr(e,t){return yi(e,null,null,t),bi(e)}function rh(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var s=!1,u=e.return;u!==null;)u.childLanes|=a,l=u.alternate,l!==null&&(l.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,l=e[s],l===null?e[s]=[t]:l.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 xS(e,t,a,l){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=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Wt(e,t,a,l){return new xS(e,t,a,l)}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,l,s,u){var b=0;if(l=e,typeof e=="function")Xc(e)&&(b=1);else if(typeof e=="string")b=Tw(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,l=null;break e}b=29,a=Error(i(130,e===null?"null":typeof e,"")),l=null}return t=Wt(b,a,t,s),t.elementType=e,t.type=l,t.lanes=u,t}function vr(e,t,a,l){return e=Wt(7,e,l,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 l=Hn;e=$n;var s=32-kt(l)-1;l&=~(1<<s),a+=1;var u=32-kt(t)+s;if(30<u){var b=s-s%5;u=(l&(1<<b)-1).toString(32),l>>=b,s-=b,Hn=1<<32-kt(t)+s|a<<s|l,$n=u+e}else Hn=1<<u|a<<s|l,$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,l=e.memoizedProps;switch(t[At]=e,t[Yt]=l,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,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Oe("invalid",t);break;case"textarea":Oe("invalid",t),Tm(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Rg(t.textContent,a)?(l.popover!=null&&(Oe("beforetoggle",t),Oe("toggle",t)),l.onScroll!=null&&Oe("scroll",t),l.onScrollEnd!=null&&Oe("scrollend",t),l.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 l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function nu(e,t,a,l){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),l||(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,l){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,l),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 SS=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},wS=n.unstable_scheduleCallback,ES=n.unstable_NormalPriority,gt={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function au(){return{controller:new SS,data:new Map,refCount:0}}function so(e){e.refCount--,e.refCount===0&&wS(ES,function(){e.controller.abort()})}var co=null,ru=0,il=0,sl=null;function NS(e,t){if(co===null){var a=co=[];ru=0,il=id(),sl={status:"pending",value:void 0,then:function(l){a.push(l)}}}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 TS(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(l.status="rejected",l.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),l}var hh=M.S;M.S=function(e,t){Fp=Rt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&NS(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(l){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=l}},function(l){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=l}})}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 l(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=l(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=l(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(Lw){return t(D,Lw)}),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 l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ye&2)!==0){var s=l.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),l.pending=t,t=bi(e),rh(e,null,a),t}return yi(e,l,t,a),bi(e)}function mo(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,qt(e,a)}}function cu(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){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:l.baseState,firstBaseUpdate:s,lastBaseUpdate:u,shared:l.shared,callbacks:l.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,l){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:(l&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,CS=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,l,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(l,s),Tr=!1,fl&&(u=Rh(t,a,l,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,l){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,l)}while(fl);return u}function RS(){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 l=Re.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.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),l=0;l<e;l++)a[l]=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 l=e.queue;if(l===null)throw Error(i(311));l.lastRenderedReducer=a;var s=e.baseQueue,u=l.pending;if(u!==null){if(s!==null){var b=s.next;s.next=u.next,u.next=b}t.baseQueue=s=u,l.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,l.lastRenderedState=u}return s===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Su(e){var t=ht(),a=t.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var l=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,l]}function Ah(e,t,a){var l=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,l,s,e),[e]),s.getSnapshot!==t||b||vt!==null&&vt.memoizedState.tag&1){if(l.flags|=2048,hl(9,{destroy:void 0},_h.bind(null,l,s,a,t),null),Je===null)throw Error(i(349));u||(sa&127)!==0||jh(l,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,l){t.value=a,t.getSnapshot=l,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,l){return e.baseState=a,xu(e,Qe,typeof l=="function"?l:ca)}function AS(e,t,a,l,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,l(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,l=t.payload,s=e.state;if(t.isTransition){var u=M.T,b={};M.T=b;try{var S=a(s,l),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,l),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(l){Uh(e,t,l)},function(l){return Eu(e,t,l)}):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 l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Bh(t),t=t.next;while(t!==l)}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 l=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),l=s.data==="F!";break e}}_a(l)}l=!1}l&&(t=a[0])}}return a=Ht(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Hh,lastRenderedState:t},a.queue=l,a=lp.bind(null,Re,l),l.dispatch=a,l=wu(!1),u=ju.bind(null,Re,!1,l.queue),l=Ht(),s={state:t,dispatch:null,action:e,pending:null},l.queue=s,a=AS.bind(null,Re,s,u,a),s.dispatch=a,l.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 l=vo(t)}catch(b){throw b===cl?Ti:b}else l=t;t=ht();var s=t.queue,u=s.dispatch;return a!==t.memoizedState&&(Re.flags|=2048,hl(9,{destroy:void 0},jS.bind(null,s,a),null)),[l,u,e]}function jS(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 l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function hl(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=Re.updateQueue,t===null&&(t=ki(),Re.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Ph(){return ht().memoizedState}function Li(e,t,a,l){var s=Ht();Re.flags|=e,s.memoizedState=hl(1|t,{destroy:void 0},a,l===void 0?null:l)}function Ui(e,t,a,l){var s=ht();l=l===void 0?null:l;var u=s.memoizedState.inst;Qe!==null&&l!==null&&hu(l,Qe.memoizedState.deps)?s.memoizedState=hl(t,u,a,l):(Re.flags|=e,s.memoizedState=hl(1|t,u,a,l))}function Gh(e,t){Li(8390656,8,e,t)}function Nu(e,t){Ui(2048,8,e,t)}function _S(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 _S({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 l=a.memoizedState;return t!==null&&hu(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Jh(e,t){var a=ht();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&hu(t,l[1]))return l[0];if(l=e(),Tr){wn(!0);try{e()}finally{wn(!1)}}return a.memoizedState=[l,t],l}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,l){return Jt(a,t)?a:dl.current!==null?(e=Cu(e,a,l),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,l,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=TS(j,l);yo(e,t,I,rn(e))}else yo(e,t,l,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 MS(){}function Ru(e,t,a,l){if(e.tag!==5)throw Error(i(476));var s=tp(e).queue;ep(e,s,t,Z,a===null?MS:function(){return np(e),a(l)})}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 OS(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=rn();e=ka(a);var l=Da(t,e,a);l!==null&&(Qt(l,t,a),mo(l,t,a)),t={cache:au()},e.payload=t;return}t=t.return}}function kS(e,t,a){var l=rn();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Bi(e)?op(t,a):(a=Ic(e,t,a,l),a!==null&&(Qt(a,e,l),ip(a,t,l)))}function lp(e,t,a){var l=rn();yo(e,t,a,l)}function yo(e,t,a,l){var s={lane:l,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,l),a!==null)return Qt(a,e,l),ip(a,t,l),!0}return!1}function ju(e,t,a,l){if(l={lane:2,revertLane:id(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Bi(e)){if(t)throw Error(i(479))}else t=Ic(e,a,l,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 l=t.lanes;l&=e.pendingLanes,a|=l,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 l=e();if(Tr){wn(!0);try{e()}finally{wn(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=Ht();if(a!==void 0){var s=a(t);if(Tr){wn(!0);try{a(t)}finally{wn(!1)}}}else s=t;return l.memoizedState=l.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},l.queue=e,e=e.dispatch=kS.bind(null,Re,e),[l.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 l=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(l,t,a)}s.memoizedState=a;var u={value:a,getSnapshot:t};return s.queue=u,Gh(Mh.bind(null,l,u,e),[e]),l.flags|=2048,hl(9,{destroy:void 0},_h.bind(null,l,u,a,t),null),a},useId:function(){var e=Ht(),t=Je.identifierPrefix;if(Le){var a=$n,l=Hn;a=(l&~(1<<32-kt(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Oi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=CS++,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=OS.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,l){t=e.memoizedState,a=a(l,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 l=rn(),s=ka(l);s.payload=t,a!=null&&(s.callback=a),t=Da(e,s,l),t!==null&&(Qt(t,e,l),mo(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=rn(),s=ka(l);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=Da(e,s,l),t!==null&&(Qt(t,e,l),mo(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=rn(),l=ka(a);l.tag=2,t!=null&&(l.callback=t),t=Da(e,l,a),t!==null&&(Qt(t,e,a),mo(t,e,a))}};function up(e,t,a,l,s,u,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,b):t.prototype&&t.prototype.isPureReactComponent?!ro(a,l)||!ro(s,u):!0}function dp(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Ou.enqueueReplaceState(t,t.state,null)}function Cr(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}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(l){setTimeout(function(){throw l})}}function pp(e,t,a){try{var l=e.onCaughtError;l(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,l){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var u=l.value;e.payload=function(){return s(u)},e.callback=function(){pp(t,a,l)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){pp(t,a,l),typeof s!="function"&&($a===null?$a=new Set([this]):$a.add(this));var S=l.stack;this.componentDidCatch(l.value,{componentStack:S!==null?S:""})})}function DS(e,t,a,l,s){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.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,l===Ci?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),rd(e,l,s)),!1;case 22:return a.flags|=65536,l===Ci?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),rd(e,l,s)),!1}throw Error(i(435,a.tag))}return rd(e,l,s),Fi(),!1}if(Le)return t=en.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,l!==Jc&&(e=Error(i(422),{cause:l}),io(mn(e,a)))):(l!==Jc&&(t=Error(i(423),{cause:l}),io(mn(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,l=mn(l,a),s=ku(e.stateNode,l,s),cu(e,s),dt!==4&&(dt=2)),!1;var u=Error(i(520),{cause:l});if(u=mn(u,a),Ro===null?Ro=[u]:Ro.push(u),dt!==4&&(dt=2),t===null)return!0;l=mn(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=ku(a.stateNode,l,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,l),cu(a,s),!1}a=a.return}while(a!==null);return!1}var Du=Error(i(461)),yt=!1;function Mt(e,t,a,l){t.child=e===null?Sh(t,null,a,l):Nr(t,e.child,a,l)}function yp(e,t,a,l,s){a=a.render;var u=t.ref;if("ref"in l){var b={};for(var S in l)S!=="ref"&&(b[S]=l[S])}else b=l;return xr(t),l=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,l,s),t.child)}function bp(e,t,a,l,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,l,s)):(e=xi(a.type,null,l,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,l)&&e.ref===t.ref)return ua(e,t,s)}return t.flags|=1,e=ra(u,l),e.ref=t.ref,e.return=t,t.child=e}function xp(e,t,a,l,s){if(e!==null){var u=e.memoizedProps;if(ro(u,l)&&e.ref===t.ref)if(yt=!1,t.pendingProps=l=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,l,s)}function Sp(e,t,a,l){var s=l.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|a:a,e!==null){for(l=t.child=e.child,s=0;l!==null;)s=s|l.lanes|l.childLanes,l=l.sibling;l=s&~u}else l=0,t.child=null;return wp(e,t,u,a,l)}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 l=t.lanes=536870912,wp(e,t,u!==null?u.baseLanes|a:a,a,l)}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,l,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,l,!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 zS(e,t,a){var l=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Le){if(l.mode==="hidden")return e=$i(t,l),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,l)}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(l=Je,l!==null&&(b=Vt(l,a),b!==0&&b!==u.retryLane))throw u.retryLane=b,gr(e,b),Qt(l,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,l),t.flags|=4096;return t}return e=ra(e.child,{mode:l.mode,children:l.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,l,s){return xr(t),a=pu(e,t,a,l,void 0,s),l=gu(),e!==null&&!yt?(vu(e,t,s),ua(e,t,s)):(Le&&l&&Zc(t),t.flags|=1,Mt(e,t,a,s),t.child)}function Np(e,t,a,l,s,u){return xr(t),t.updateQueue=null,a=Rh(t,l,a,s),Ch(e),l=gu(),e!==null&&!yt?(vu(e,t,u),ua(e,t,u)):(Le&&l&&Zc(t),t.flags|=1,Mt(e,t,a,u),t.child)}function Tp(e,t,a,l,s){if(xr(t),t.stateNode===null){var u=nl,b=a.contextType;typeof b=="object"&&b!==null&&(u=_t(b)),u=new a(l,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=l,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,l),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,l,u,s),ho(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!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,l,b),Oa=!1;var H=t.memoizedState;u.state=H,po(t,l,u,s),ho(),U=t.memoizedState,S||H!==U||Oa?(typeof Q=="function"&&(Mu(t,a,Q,l),U=t.memoizedState),(j=Oa||up(t,a,j,l,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=l,t.memoizedState=U),u.props=l,u.state=U,u.context=b,l=j):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!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,l,j),Oa=!1,H=t.memoizedState,u.state=H,po(t,l,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,l),Y=t.memoizedState),(I=Oa||up(t,a,I,l,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(l,Y,j),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,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=l,t.memoizedState=Y),u.props=l,u.state=Y,u.context=j,l=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),l=!1)}return u=l,qi(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(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,l){return yr(),t.flags|=256,Mt(e,t,a,l),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 l=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=l.children;return l=l.fallback,s?(La(),s=t.mode,S=Vi({mode:"hidden",children:S},s),l=vr(l,s,a,null),S.return=t,l.return=t,S.sibling=l,t.child=S,l=t.child,l.memoizedState=Uu(a),l.childLanes=Bu(e,b,a),t.memoizedState=Lu,xo(null,l)):(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=l.fallback,s=t.mode,l=Vi({mode:"visible",children:l.children},s),S=vr(S,s,a,null),S.flags|=2,l.return=t,S.return=t,l.sibling=S,t.child=l,Nr(t,e.child,null,a),l=t.child,l.memoizedState=Uu(a),l.childLanes=Bu(e,b,a),t.memoizedState=Lu,t=xo(null,l));else if(za(t),xd(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var U=b.dgst;b=U,l=Error(i(419)),l.stack="",l.digest=b,io({value:l,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&&(l=Vt(b,a),l!==0&&l!==j.retryLane))throw j.retryLane=l,gr(e,l),Qt(b,e,l),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,l.children),t.flags|=4096);return t}return s?(La(),S=l.fallback,s=t.mode,j=e.child,U=j.sibling,l=ra(j,{mode:"hidden",children:l.children}),l.subtreeFlags=j.subtreeFlags&65011712,U!==null?S=ra(U,S):(S=vr(S,s,a,null),S.flags|=2),S.return=t,l.return=t,l.sibling=S,t.child=l,xo(null,l),l=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}),l.memoizedState=S,l.childLanes=Bu(e,b,a),t.memoizedState=Lu,xo(e.child,l)):(za(t),a=e.child,e=a.sibling,a=ra(a,{mode:"visible",children:l.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 l=e.alternate;l!==null&&(l.lanes|=t),tu(e.return,t,a)}function qu(e,t,a,l,s,u){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:s,treeForkCount:u}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=l,b.tail=a,b.tailMode=s,b.treeForkCount=u)}function jp(e,t,a){var l=t.pendingProps,s=l.revealOrder,u=l.tail;l=l.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,l,a),l=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,l);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,l);break;case"together":qu(t,!1,null,null,void 0,l);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 LS(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 l=t.memoizedState;if(l!==null)return l.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(l=(a&t.childLanes)!==0,l||(ol(e,t,a,!1),l=(a&t.childLanes)!==0),s){if(l)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),l)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,LS(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 l=t.pendingProps;if(e=wr(t.elementType),t.type=e,typeof e=="function")Xc(e)?(l=Cr(e,l),t.tag=1,t=Tp(null,t,e,l,a)):(t.tag=0,t=zu(null,t,e,l,a));else{if(e!=null){var s=e.$$typeof;if(s===z){t.tag=11,t=yp(null,t,e,l,a);break e}else if(s===q){t.tag=14,t=bp(null,t,e,l,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 l=t.type,s=Cr(l,t.pendingProps),Tp(e,t,l,s,a);case 3:e:{if(ce(t,t.stateNode.containerInfo),e===null)throw Error(i(387));l=t.pendingProps;var u=t.memoizedState;s=u.element,su(e,t),po(t,l,null,a);var b=t.memoizedState;if(l=b.cache,Ma(t,gt,l),l!==u.cache&&nu(t,[gt],a,!0),ho(),l=b.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=Cp(e,t,l,a);break e}else if(l!==s){s=mn(Error(i(424)),t),io(s),t=Cp(e,t,l,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,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(yr(),l===s){t=ua(e,t,a);break e}Mt(e,t,l,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,l=rs(se.current).createElement(a),l[At]=t,l[Yt]=e,Ot(l,a,e),Nt(l),t.stateNode=l):t.memoizedState=qg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ve(t),e===null&&Le&&(l=t.stateNode=Bg(t.type,t.pendingProps,se.current),jt=t,gn=!0,s=nt,Pa(t.type)?(Sd=s,nt=yn(l.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=l=nt)&&(l=fw(l,t.type,t.pendingProps,gn),l!==null?(t.stateNode=l,jt=t,nt=yn(l.firstChild),gn=!1,s=!0):s=!1),s||_a(t)),ve(t),s=t.type,u=t.pendingProps,b=e!==null?e.memoizedProps:null,l=u.children,gd(s,u)?l=null:b!==null&&gd(s,b)&&(t.flags|=32),t.memoizedState!==null&&(s=pu(e,t,RS,null,null,a),zo._currentValue=s),qi(e,t),Mt(e,t,l,a),t.child;case 6:return e===null&&Le&&((e=a=nt)&&(a=mw(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),l=t.pendingProps,e===null?t.child=Nr(t,null,l,a):Mt(e,t,l,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 l=t.pendingProps,Ma(t,t.type,l.value),Mt(e,t,l.children,a),t.child;case 9:return s=t.type._context,l=t.pendingProps.children,xr(t),s=_t(s),l=l(s),t.flags|=1,Mt(e,t,l,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 zS(e,t,a);case 22:return Sp(e,t,a,t.pendingProps);case 24:return xr(t),l=_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:l,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!==l?(s={parent:l,cache:l},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),Ma(t,gt,l)):(l=u.cache,Ma(t,gt,l),l!==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,l,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 l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function at(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,l|=s.subtreeFlags&65011712,l|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,l|=s.subtreeFlags,l|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function US(e,t,a){var l=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,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(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,l,a))):u?u!==e.memoizedState?(da(t),at(t),Mp(t,u)):(at(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&da(t),at(t),Yu(t,s,e,l,a)),null;case 27:if(be(t),a=se.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&da(t);else{if(!l){if(t.stateNode===null)throw Error(i(166));return at(t),null}e=W.current,ll(t)?uh(t):(e=Bg(s,l,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!==l&&da(t);else{if(!l){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 l.is=="string"?b.createElement("select",{is:l.is}):b.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?b.createElement(s,{is:l.is}):b.createElement(s)}}u[At]=t,u[Yt]=l;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,l),s){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&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!==l&&da(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(i(166));if(e=se.current,ll(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,s=jt,s!==null)switch(s.tag){case 27:case 5:l=s.memoizedProps}e[At]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Rg(e.nodeValue,a)),e||_a(t,!0)}else e=rs(e).createTextNode(l),e[At]=t,t.stateNode=e}return at(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=ll(t),a!==null){if(e===null){if(!l)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(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=ll(t),l!==null&&l.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=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,s=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(s=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==s&&(l.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),l=t.memoizedState,l===null)return at(t),null;if(s=(t.flags&128)!==0,u=l.rendering,u===null)if(s)So(l,!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(l,!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,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Rt()>Ki&&(t.flags|=128,s=!0,So(l,!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(l,!0),l.tail===null&&l.tailMode==="hidden"&&!u.alternate&&!Le)return at(t),null}else 2*Rt()-l.renderingStartTime>Ki&&a!==536870912&&(t.flags|=128,s=!0,So(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Rt(),e.sibling=null,a=mt.current,X(mt,s?a&1|2:a&1),Le&&la(t,l.treeForkCount),e):(at(t),null);case 22:case 23:return tn(t),fu(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(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),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==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 BS(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,l=a!==null?a.lastEffect:null;if(l!==null){var s=l.next;a=s;do{if((a.tag&e)===e){l=void 0;var u=a.create,b=a.inst;l=u(),b.destroy=l}a=a.next}while(a!==s)}}catch(S){Ke(t,t.return,S)}}function Ua(e,t,a){try{var l=t.updateQueue,s=l!==null?l.lastEffect:null;if(s!==null){var u=s.next;l=u;do{if((l.tag&e)===e){var b=l.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)}}}l=l.next}while(l!==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(l){Ke(e,e.return,l)}}}function Dp(e,t,a){a.props=Cr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Ke(e,t,l)}}function Eo(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(s){Ke(e,t,s)}}function qn(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}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,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(s){Ke(e,e.return,s)}}function Pu(e,t,a){try{var l=e.stateNode;ow(l,e.type,a,t),l[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 l=e.tag;if(l===5||l===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(l!==4&&(l===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 l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===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 l=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Ot(t,l,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 HS(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 l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var s=l.anchorOffset,u=l.focusNode;l=l.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||l!==0&&Q.nodeType!==3||(j=b+l),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===l&&(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,l=a.stateNode;try{var he=Cr(a.type,s);e=l.getSnapshotBeforeUpdate(he,u),l.__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 l=a.flags;switch(a.tag){case 0:case 11:case 15:ha(e,a),l&4&&wo(5,a);break;case 1:if(ha(e,a),l&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)}}l&64&&kp(a),l&512&&Eo(a,a.return);break;case 3:if(ha(e,a),l&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&&l&4&&Up(a);case 26:case 5:ha(e,a),t===null&&l&4&&zp(a),l&512&&Eo(a,a.return);break;case 12:ha(e,a);break;case 31:ha(e,a),l&4&&Vp(e,a);break;case 13:ha(e,a),l&4&&Yp(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=KS.bind(null,a),hw(e,a))));break;case 22:if(l=a.memoizedState!==null||fa,!l){t=t!==null&&t.memoizedState!==null||bt,s=fa;var u=bt;fa=l,(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 l=lt,s=Gt;Pa(a.type)&&(lt=a.stateNode,Gt=!1),ma(e,t,a),Oo(a.stateNode),lt=l,Gt=s;break;case 5:bt||qn(a,t);case 6:if(l=lt,s=Gt,lt=null,ma(e,t,a),lt=l,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:l=lt,s=Gt,lt=a.stateNode.containerInfo,Gt=!0,ma(e,t,a),lt=l,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),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Dp(a,t,l)),ma(e,t,a);break;case 21:ma(e,t,a);break;case 22:bt=(l=bt)||a.memoizedState!==null,ma(e,t,a),bt=l;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 $S(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=$S(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var s=QS.bind(null,e,l);l.then(s,s)}})}function It(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var s=a[l],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,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:It(t,e),Xt(e),l&4&&(Ua(3,e,e.return),wo(3,e),Ua(5,e,e.return));break;case 1:It(t,e),Xt(e),l&512&&(bt||a===null||qn(a,a.return)),l&64&&fa&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var s=Tn;if(It(t,e),Xt(e),l&512&&(bt||a===null||qn(a,a.return)),l&4){var u=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(l){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(l),s.head.insertBefore(u,s.querySelector("head > title"))),Ot(u,l,a),u[At]=e,Nt(u),l=u;break e;case"link":var b=Pg("link","href",s).get(l+(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(l),Ot(u,l,a),s.head.appendChild(u);break;case"meta":if(b=Pg("meta","content",s).get(l+(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(l),Ot(u,l,a),s.head.appendChild(u);break;default:throw Error(i(468,l))}u[At]=e,Nt(u),l=u}e.stateNode=l}else Gg(s,e.type,e.stateNode);else e.stateNode=Yg(s,l,e.memoizedProps);else u!==l?(u===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):u.count--,l===null?Gg(s,e.type,e.stateNode):Yg(s,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Pu(e,e.memoizedProps,a.memoizedProps)}break;case 27:It(t,e),Xt(e),l&512&&(bt||a===null||qn(a,a.return)),a!==null&&l&4&&Pu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(It(t,e),Xt(e),l&512&&(bt||a===null||qn(a,a.return)),e.flags&32){s=e.stateNode;try{Qr(s,"")}catch(he){Ke(e,e.return,he)}}l&4&&e.stateNode!=null&&(s=e.memoizedProps,Pu(e,s,a!==null?a.memoizedProps:s)),l&1024&&(Xu=!0);break;case 6:if(It(t,e),Xt(e),l&4){if(e.stateNode===null)throw Error(i(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}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),l&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:l=Tn,Tn=ls(e.stateNode.containerInfo),It(t,e),Xt(e),Tn=l;break;case 12:It(t,e),Xt(e);break;case 31:It(t,e),Xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Gi(e,l)));break;case 13:It(t,e),Xt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Xi=Rt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Gi(e,l)));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),l&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}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Gi(e,a))));break;case 19:It(t,e),Xt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,Gi(e,l)));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,l=e.return;l!==null;){if(Lp(l)){a=l;break}l=l.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 l=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),l=u,s=l.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(U){Ke(l,l.return,U)}if(l=u,s=l.updateQueue,s!==null){var S=l.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(l,l.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&&l===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,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ip(e,t,a,l),t=t.sibling}function Ip(e,t,a,l){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Cn(e,t,a,l),s&2048&&wo(9,t);break;case 1:Cn(e,t,a,l);break;case 3:Cn(e,t,a,l),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,l),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,l);break;case 31:Cn(e,t,a,l);break;case 13:Cn(e,t,a,l);break;case 23:break;case 22:u=t.stateNode,b=t.alternate,t.memoizedState!==null?u._visibility&2?Cn(e,t,a,l):No(e,t):u._visibility&2?Cn(e,t,a,l):(u._visibility|=2,pl(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Ku(b,t);break;case 24:Cn(e,t,a,l),s&2048&&Qu(t.alternate,t);break;default:Cn(e,t,a,l)}}function pl(e,t,a,l,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,b=t,S=a,j=l,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,l=t,s=l.flags;switch(l.tag){case 22:No(a,l),s&2048&&Ku(l.alternate,l);break;case 24:No(a,l),s&2048&&Qu(l.alternate,l);break;default:No(a,l)}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&&Cw(a,Tn,e.memoizedState,e.memoizedProps);break;case 5:gl(e,t,a);break;case 3:case 4:var l=Tn;Tn=ls(e.stateNode.containerInfo),gl(e,t,a),Tn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=To,To=16777216,gl(e,t,a),To=l):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 l=t[a];Tt=l,Zp(l,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 l=t[a];Tt=l,Zp(l,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 l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:so(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Tt=l;else e:for(a=e;Tt!==null;){l=Tt;var s=l.sibling,u=l.return;if($p(l),l===a){Tt=null;break e}if(s!==null){s.return=u,Tt=s;break e}Tt=u}}}var qS={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}},VS=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 l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||rt(e,t),s=l?GS(e,t):ad(e,t,!0),u=l;do{if(s===0){vl&&!l&&Va(e,t,0,!1);break}else{if(a=e.current.alternate,u&&!YS(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(l=e,u=s,u){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Va(l,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(l,t,an,!Ba),Te(l,0,!0)!==0)break e;va=t,l.timeoutHandle=Mg(tg.bind(null,l,a,Kt,Qi,Ju,t,an,Ar,yl,Ba,u,"Throttled",-0,0),s);break e}tg(l,a,Kt,Qi,Ju,t,an,Ar,yl,Ba,u,null,-0,0)}}break}while(!0);Vn(e)}function tg(e,t,a,l,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=Rw(Q,he),he!==null){va=u,e.cancelPendingCommit=he(cg.bind(null,e,t,u,a,l,s,b,S,j,I,Q,null,H,Y)),Va(e,u,b,!U);return}}cg(e,t,u,a,l,s,b,S,j)}function YS(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 l=0;l<a.length;l++){var s=a[l],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,l){t&=~Fu,t&=~Ar,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var s=t;0<s;){var u=31-kt(s),b=1<<u;l[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,cw(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 l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var s=31-kt(l),u=1<<s;t|=e[s],l&=~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=qS,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 l=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)}}PS(),b=dt;break}catch(I){ng(e,I)}while(!0);return t&&e.shellSuspendCounter++,oa=br=null,Ye=l,M.H=s,M.A=u,Me===null&&(Je=null,De=0,vi()),b}function PS(){for(;Me!==null;)og(Me)}function GS(e,t){var a=Ye;Ye|=2;var l=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))}}IS();break}catch(I){ng(e,I)}while(!0);return oa=br=null,M.H=l,M.A=s,Ye=a,Me!==null?0:(Je=null,De=0,vi(),dt)}function IS(){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,l){oa=br=null,yu(t),ul=null,uo=0;var s=t.return;try{if(DS(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||l===1?e=!0:vl||(De&536870912)!==0?e=!1:(Ba=e=!0,(l===2||l===9||l===3||l===6)&&(l=en.current,l!==null&&l.tag===13&&(l.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=US(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=BS(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,l,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=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,ZS(Ie,function(){return hg(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=M.T,M.T=null,s=V.p,V.p=2,b=Ye,Ye|=4;try{HS(e,t,a)}finally{Ye=b,V.p=s,M.T=l}}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 l=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=l,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 l=V.p;V.p=2;var s=Ye;Ye|=4;try{Hp(e,t.alternate,t)}finally{Ye=s,V.p=l,M.T=a}}xt=3}}function fg(){if(xt===4||xt===3){xt=0,On();var e=qa,t=bl,a=va,l=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(l!==null){t=M.T,s=V.p,V.p=2,M.T=null;try{for(var u=e.onRecoverableError,b=0;b<l.length;b++){var S=l[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),l=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=l,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 l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&($a===null||!$a.has(l))){e=mn(a,e),a=gp(2),l=Da(t,a,2),l!==null&&(vp(a,l,t,e),it(l,2),Vn(l));break}}t=t.return}}function rd(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new VS;var s=new Set;l.set(t,s)}else s=l.get(t),s===void 0&&(s=new Set,l.set(t,s));s.has(a)||(Zu=!0,s.add(a),e=XS.bind(null,e,t,a),t.then(e,e))}function XS(e,t,a){var l=e.pingCache;l!==null&&l.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 KS(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),gg(e,a)}function QS(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(t),gg(e,a)}function ZS(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,JS())}function jo(e,t){if(!od&&ts){od=!0;do for(var a=!1,l=es;l!==null;){if(e!==0){var s=l.pendingLanes;if(s===0)var u=0;else{var b=l.suspendedLanes,S=l.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(l,u))}else u=De,u=Te(l,l===Je?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||rt(l,u)||(a=!0,xg(l,u));l=l.next}while(a);od=!1}}function FS(){vg()}function vg(){ts=ld=!1;var e=0;Ya!==0&&sw()&&(e=Ya);for(var t=Rt(),a=null,l=es;l!==null;){var s=l.next,u=yg(l,t);u===0?(l.next=null,a===null?es=s:a.next=s,s===null&&(wl=a)):(a=l,(e!==0||(u&3)!==0)&&(ts=!0)),l=s}xt!==0&&xt!==5||jo(e),Ya!==0&&(Ya=0)}function yg(e,t){for(var a=e.suspendedLanes,l=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&l)!==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),l=e.callbackNode,a===0||e===t&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&cr(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||rt(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&cr(l),En(a)){case 2:case 8:a=Ne;break;case 32:a=Ie;break;case 268435456:a=ct;break;default:a=Ie}return l=bg.bind(null,e),a=sr(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&cr(l),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 l=De;return l=Te(e,e===Je?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(eg(e,l,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 JS(){uw(function(){(Ye&6)!==0?sr(kn,FS):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 WS(e,t,a,l,s){if(t==="submit"&&a&&a.stateNode===s){var u=Sg((s[Yt]||null).action),b=l.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,l,s);e.push({event:S,listeners:[{instance:null,listener:function(){if(l.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],ew=cd.toLowerCase(),tw=cd[0].toUpperCase()+cd.slice(1);Nn(ew,"on"+tw)}Nn(Wm,"onAnimationEnd"),Nn(eh,"onAnimationIteration"),Nn(th,"onAnimationStart"),Nn("dblclick","onDoubleClick"),Nn("focusin","onFocus"),Nn("focusout","onBlur"),Nn(vS,"onTransitionRun"),Nn(yS,"onTransitionStart"),Nn(bS,"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(" "),nw=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 l=e[a],s=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var b=l.length-1;0<=b;b--){var S=l[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<l.length;b++){if(S=l[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 l=e+"__bubble";a.has(l)||(Ng(t,e,2,!1),a.add(l))}function ud(e,t,a){var l=0;t&&(l|=4),Ng(a,e,l,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"&&(nw.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,l){switch(Wg(t)){case 2:var s=_w;break;case 8:s=Mw;break;default:s=Cd}a=s.bind(null,t,a,e),s=void 0,!Mc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),l?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,l,s){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var b=l.tag;if(b===3||b===4){var S=l.stateNode.containerInfo;if(S===s)break;if(b===4)for(b=l.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){l=u=b;continue e}S=S.parentNode}}l=l.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=Q1;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=U1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=J1;break;case Wm:case eh:case th:Y=$1;break;case nh:Y=eS;break;case"scroll":case"scrollend":Y=z1;break;case"wheel":Y=nS;break;case"copy":case"cut":case"paste":Y=V1;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=rS}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=aw,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=hS;else{qe=fS;var ye=dS}else Y=H.nodeName,!Y||Y.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?U&&Rc(U.elementType)&&(qe=Vm):qe=mS;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(gS)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=oS?iS(e,a):sS(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)),WS(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",l=[];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&&l.unshift(Mo(e,s,u)),s=Fl(e,t),s!=null&&l.push(Mo(e,s,u))),e.tag===3)return l;e=e.return}return[]}function aw(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,l,s){for(var u=t._reactName,b=[];a!==null&&a!==l;){var S=a,j=S.alternate,U=S.stateNode;if(S=S.tag,j!==null&&j===l)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 rw=/\r\n?/g,lw=/\u0000|\uFFFD/g;function Cg(e){return(typeof e=="string"?e:""+e).replace(rw,`
|
|
50
|
+
`).replace(lw,"")}function Rg(e,t){return t=Cg(t),Cg(e)===t}function Ze(e,t,a,l,s,u){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Qr(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Qr(e,""+l);break;case"className":ii(e,"class",l);break;case"tabIndex":ii(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ii(e,a,l);break;case"style":Rm(e,l,u);break;case"data":if(t!=="object"){ii(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ci(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="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(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=ci(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=na);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(a=l.__html,a!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=ci(""+l),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":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),oi(e,"popover",l);break;case"xlinkActuate":ta(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ta(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ta(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ta(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ta(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ta(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ta(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ta(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ta(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":oi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=k1.get(a)||a,oi(e,a,l))}}function md(e,t,a,l,s,u){switch(a){case"style":Rm(e,l,u);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(i(61));if(a=l.__html,a!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Qr(e,l):(typeof l=="number"||typeof l=="bigint")&&Qr(e,""+l);break;case"onScroll":l!=null&&Oe("scroll",e);break;case"onScrollEnd":l!=null&&Oe("scrollend",e);break;case"onClick":l!=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 l=="function")){typeof u!="function"&&u!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,s);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):oi(e,a,l)}}}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 l=!1,s=!1,u;for(u in a)if(a.hasOwnProperty(u)){var b=a[u];if(b!=null)switch(u){case"src":l=!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),l&&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(l in a)if(a.hasOwnProperty(l)){var I=a[l];if(I!=null)switch(l){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,l,I,a,null)}}Em(e,u,S,j,U,b,s,!1);return;case"select":Oe("invalid",e),l=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":l=S;default:Ze(e,t,s,S,a,null)}t=u,a=b,e.multiple=!!l,t!=null?Kr(e,!!l,t,!1):a!=null&&Kr(e,!!l,a,!0);return;case"textarea":Oe("invalid",e),u=s=l=null;for(b in a)if(a.hasOwnProperty(b)&&(S=a[b],S!=null))switch(b){case"value":l=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,l,s,u);return;case"option":for(j in a)if(a.hasOwnProperty(j)&&(l=a[j],l!=null))switch(j){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ze(e,t,j,l,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(l=0;l<_o.length;l++)Oe(_o[l],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)&&(l=a[U],l!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ze(e,t,U,l,a,null)}return;default:if(Rc(t)){for(I in a)a.hasOwnProperty(I)&&(l=a[I],l!==void 0&&md(e,t,I,l,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(l=a[S],l!=null&&Ze(e,t,S,l,a,null))}function ow(e,t,a,l){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:l.hasOwnProperty(Y)||Ze(e,t,Y,null,l,Q)}}for(var H in l){var Y=l[H];if(Q=a[H],l.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,l,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:l.hasOwnProperty(u)||Ze(e,t,u,null,l,j)}for(s in l)if(u=l[s],j=a[s],l.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,l,j)}t=S,a=b,l=Y,H!=null?Kr(e,!!a,H,!1):!!l!=!!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&&!l.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Ze(e,t,S,null,l,s)}for(b in l)if(s=l[b],u=a[b],l.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,l,u)}Nm(e,H,Y);return;case"option":for(var he in a)if(H=a[he],a.hasOwnProperty(he)&&H!=null&&!l.hasOwnProperty(he))switch(he){case"selected":e.selected=!1;break;default:Ze(e,t,he,null,l,H)}for(j in l)if(H=l[j],Y=a[j],l.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,l,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&&!l.hasOwnProperty(we)&&Ze(e,t,we,null,l,H);for(U in l)if(H=l[U],Y=a[U],l.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,l,Y)}return;default:if(Rc(t)){for(var Fe in a)H=a[Fe],a.hasOwnProperty(Fe)&&H!==void 0&&!l.hasOwnProperty(Fe)&&md(e,t,Fe,void 0,l,H);for(I in l)H=l[I],Y=a[I],!l.hasOwnProperty(I)||H===Y||H===void 0&&Y===void 0||md(e,t,I,H,l,Y);return}}for(var D in a)H=a[D],a.hasOwnProperty(D)&&H!=null&&!l.hasOwnProperty(D)&&Ze(e,t,D,null,l,H);for(Q in l)H=l[Q],Y=a[Q],!l.hasOwnProperty(Q)||H===Y||H==null&&Y==null||Ze(e,t,Q,H,l,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 iw(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var s=a[l],u=s.transferSize,b=s.initiatorType,S=s.duration;if(u&&S&&Ag(b)){for(b=0,S=s.responseEnd,l+=1;l<a.length;l++){var j=a[l],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(--l,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 sw(){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,cw=typeof clearTimeout=="function"?clearTimeout:void 0,Og=typeof Promise=="function"?Promise:void 0,uw=typeof queueMicrotask=="function"?queueMicrotask:typeof Og<"u"?function(e){return Og.resolve(null).then(e).catch(dw)}:Mg;function dw(e){setTimeout(function(){throw e})}function Pa(e){return e==="head"}function kg(e,t){var a=t,l=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(s),Cl(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;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 l=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||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}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 fw(e,t,a,l){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){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 mw(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 hw(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}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:pw,r:gw,D:vw,C:yw,L:bw,m:xw,X:ww,S:Sw,M:Ew};function pw(){var e=ya.f(),t=Zi();return e||t}function gw(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 l=El;if(l&&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},l.querySelector(s)===null&&(t=l.createElement("link"),Ot(t,"link",e),Nt(t),l.head.appendChild(t)))}}function vw(e){ya.D(e),$g("dns-prefetch",e,null)}function yw(e,t){ya.C(e,t),$g("preconnect",e,t)}function bw(e,t,a){ya.L(e,t,a);var l=El;if(l&&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),l.querySelector(s)!==null||t==="style"&&l.querySelector(ko(u))||t==="script"&&l.querySelector(Do(u))||(t=l.createElement("link"),Ot(t,"link",e),Nt(t),l.head.appendChild(t)))}}function xw(e,t){ya.m(e,t);var a=El;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+dn(l)+'"][href="'+dn(e)+'"]',u=s;switch(l){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(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Do(u)))return}l=a.createElement("link"),Ot(l,"link",e),Nt(l),a.head.appendChild(l)}}}function Sw(e,t,a){ya.S(e,t,a);var l=El;if(l&&e){var s=Ir(l).hoistableStyles,u=Nl(e);t=t||"default";var b=s.get(u);if(!b){var S={loading:0,preload:null};if(b=l.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=l.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,l)}b={type:"stylesheet",instance:b,count:1,state:S},s.set(u,b)}}}function ww(e,t){ya.X(e,t);var a=El;if(a&&e){var l=Ir(a).hoistableScripts,s=Tl(e),u=l.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},l.set(s,u))}}function Ew(e,t){ya.M(e,t);var a=El;if(a&&e){var l=Ir(a).hoistableScripts,s=Tl(e),u=l.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},l.set(s,u))}}function qg(e,t,a,l){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,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{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||Nw(s,e,a,b.state))),t&&l===null)throw Error(i(528,""));return b}if(t&&l!==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,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{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 Nw(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.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 l=e.querySelector('style[data-href~="'+dn(a.href)+'"]');if(l)return t.instance=l,Nt(l),l;var s=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Nt(l),Ot(l,"style",s),os(l,a.precedence,e),t.instance=l;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;l=Vg(a),(s=bn.get(s))&&wd(l,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",l),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):(l=a,(s=bn.get(u))&&(l=g({},a),Ed(l,s)),e=e.ownerDocument||e,s=e.createElement("script"),Nt(s),Ot(s,"link",l),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&&(l=t.instance,t.state.loading|=4,os(l,a.precedence,e));return t.instance}function os(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=l.length?l[l.length-1]:null,u=s,b=0;b<l.length;b++){var S=l[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 l=new Map,s=is=new Map;s.set(a,l)}else s=is,l=s.get(a),l||(l=new Map,s.set(a,l));if(l.has(e))return l;for(l.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=l.get(b);S?S.push(u):l.set(b,[u])}}return l}function Gg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Tw(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 Cw(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=Nl(l.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,l=Vg(l),(s=bn.get(s))&&wd(l,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",l),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 Rw(e,t){return e.stylesheets&&e.count===0&&us(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=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*iw());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(l),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(Aw,e),cs=null,ss.call(e))}function Aw(e,t){if(!(t.state.loading&4)){var a=cs.get(e);if(a)var l=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),l=b)}l&&a.set(null,l)}s=t.instance,b=s.getAttribute("data-precedence"),u=a.get(b)||l,u===l&&a.set(null,s),a.set(b,s),this.count++,l=ss.bind(this),s.addEventListener("load",l),s.addEventListener("error",l),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 jw(e,t,a,l,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=l,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,l,s,u,b,S,j,U,I,Q){return e=new jw(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:l,isDehydrated:a,cache:t},iu(u),e}function Kg(e){return e?(e=nl,e):nl}function Qg(e,t,a,l,s,u){s=Kg(s),l.context===null?l.context=s:l.pendingContext=s,l=ka(t),l.payload={element:a},u=u===void 0?null:u,u!==null&&(l.callback=u),a=Da(e,l,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 _w(e,t,a,l){var s=M.T;M.T=null;var u=V.p;try{V.p=2,Cd(e,t,a,l)}finally{V.p=u,M.T=s}}function Mw(e,t,a,l){var s=M.T;M.T=null;var u=V.p;try{V.p=8,Cd(e,t,a,l)}finally{V.p=u,M.T=s}}function Cd(e,t,a,l){if(ds){var s=Rd(l);if(s===null)fd(e,t,l,fs,a),ev(e,l);else if(kw(s,e,t,a,l))l.stopPropagation();else if(ev(e,l),t&4&&-1<Ow.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(l),u===null&&fd(e,t,l,fs,a),u===s)break;s=u}s!==null&&l.stopPropagation()}else fd(e,t,l,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=[],Ow="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,l,s,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:u,targetContainers:[s]},t!==null&&(t=Gr(t),t!==null&&Fg(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function kw(e,t,a,l,s){switch(t){case"focusin":return Ga=Bo(Ga,e,t,a,l,s),!0;case"dragenter":return Ia=Bo(Ia,e,t,a,l,s),!0;case"mouseover":return Xa=Bo(Xa,e,t,a,l,s),!0;case"pointerover":var u=s.pointerId;return Lo.set(u,Bo(Lo.get(u)||null,e,t,a,l,s)),!0;case"gotpointercapture":return u=s.pointerId,Uo.set(u,Bo(Uo.get(u)||null,e,t,a,l,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 l=new a.constructor(a.type,a);Ac=l,a.target.dispatchEvent(l),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 Dw(){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,Dw)))}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],l=e[t+1],s=e[t+2];if(typeof l!="function"){if(Ad(l||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:l},l,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 l=Ka[a];l.blockedOn===e&&(l.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(l=0;l<a.length;l+=3){var s=a[l],u=a[l+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[l+1]=S:(a.splice(l,3),l-=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),l||setTimeout(a,20)}function a(){if(!l&&!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 l=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!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,l=rn();Qg(a,l,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 zw={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(zw),Bt=vs}catch{}}return $o.createRoot=function(e,t){if(!c(e))throw Error(i(299));var a=!1,l="",s=fp,u=mp,b=hp;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=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,l,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 l=!1,s="",u=fp,b=mp,S=hp,j=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!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,l,s,j,u,b,S,rv),t.context=Kg(null),a=t.current,l=rn(),l=Vr(l),s=ka(l),s.callback=null,Da(a,s,l),a=l,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 Xw(){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=Iw(),kd.exports}var Kw=Xw();const Qw="modulepreload",Zw=function(n){return"/"+n},gv={},Cy=function(r,o,i){let c=Promise.resolve();if(o&&o.length>0){let m=function(p){return Promise.all(p.map(x=>Promise.resolve(x).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),y=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));c=m(o.map(p=>{if(p=Zw(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":Qw,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 Fw(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 o(i,c){return typeof c=="string"?c:Fo(c)}return Ww(r,o,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 Jw(){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,o=null,i,c){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof r=="string"?$l(r):r,state:o,key:r&&r.key||i||Jw(),unstable_mask:c}}function Fo({pathname:n="/",search:r="",hash:o=""}){return r&&r!=="?"&&(n+=r.charAt(0)==="?"?r:"?"+r),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function $l(n){let r={};if(n){let o=n.indexOf("#");o>=0&&(r.hash=n.substring(o),n=n.substring(0,o));let i=n.indexOf("?");i>=0&&(r.search=n.substring(i),n=n.substring(0,i)),n&&(r.pathname=n)}return r}function Ww(n,r,o,i={}){let{window:c=document.defaultView,v5Compat:d=!1}=i,m=c.history,h="POP",y=null,p=x();p==null&&(p=0,m.replaceState({...m.state,idx:p},""));function x(){return(m.state||{idx:null}).idx}function g(){h="POP";let C=x(),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 e2(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 e2(n,r=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),ot(o,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:Fo(n);return i=i.replace(/ $/,"%20"),!r&&i.startsWith("//")&&(i=o+i),new URL(i,o)}function Ry(n,r,o="/"){return t2(n,r,o,!1)}function t2(n,r,o,i){let c=typeof r=="string"?$l(r):r,d=xa(c.pathname||"/",o);if(d==null)return null;let m=Ay(n);n2(m);let h=null;for(let y=0;h==null&&y<m.length;++y){let p=m2(d);h=d2(m[y],p,i)}return h}function Ay(n,r=[],o=[],i="",c=!1){let d=(m,h,y=c,p)=>{let x={relativePath:p===void 0?m.path||"":p,caseSensitive:m.caseSensitive===!0,childrenIndex:h,route:m};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(i)&&y)return;ot(x.relativePath.startsWith(i),`Absolute route path "${x.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(i.length)}let g=Fn([i,x.relativePath]),w=o.concat(x);m.children&&m.children.length>0&&(ot(m.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Ay(m.children,r,w,g,y)),!(m.path==null&&!m.index)&&r.push({path:g,score:c2(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[o,...i]=r,c=o.endsWith("?"),d=o.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 n2(n){n.sort((r,o)=>r.score!==o.score?o.score-r.score:u2(r.routesMeta.map(i=>i.childrenIndex),o.routesMeta.map(i=>i.childrenIndex)))}var a2=/^:[\w-]+$/,r2=3,l2=2,o2=1,i2=10,s2=-2,xv=n=>n==="*";function c2(n,r){let o=n.split("/"),i=o.length;return o.some(xv)&&(i+=s2),r&&(i+=l2),o.filter(c=>!xv(c)).reduce((c,d)=>c+(a2.test(d)?r2:d===""?o2:i2),i)}function u2(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 d2(n,r,o=!1){let{routesMeta:i}=n,c={},d="/",m=[];for(let h=0;h<i.length;++h){let y=i[h],p=h===i.length-1,x=d==="/"?r:r.slice(d.length)||"/",g=Us({path:y.relativePath,caseSensitive:y.caseSensitive,end:p},x),w=y.route;if(!g&&p&&o&&!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:v2(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[o,i]=f2(n.path,n.caseSensitive,n.end),c=r.match(o);if(!c)return null;let d=c[0],m=d.replace(/(.)\/+$/,"$1"),h=c.slice(1);return{params:i.reduce((p,{paramName:x,isOptional:g},w)=>{if(x==="*"){let T=h[w]||"";m=d.slice(0,d.length-T.length).replace(/(.)\/+$/,"$1")}const N=h[w];return g&&!N?p[x]=void 0:p[x]=(N||"").replace(/%2F/g,"/"),p},{}),pathname:d,pathnameBase:m,pattern:n}}function f2(n,r=!1,o=!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==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?c+="\\/*$":n!==""&&n!=="/"&&(c+="(?:(?=\\/|$))"),[new RegExp(c,r?void 0:"i"),i]}function m2(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 o=r.endsWith("/")?r.length-1:r.length,i=n.charAt(o);return i&&i!=="/"?null:n.slice(o)||"/"}var h2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function p2(n,r="/"){let{pathname:o,search:i="",hash:c=""}=typeof n=="string"?$l(n):n,d;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?d=Sv(o.substring(1),"/"):d=Sv(o,r)):d=r,{pathname:d,search:y2(i),hash:b2(c)}}function Sv(n,r){let o=r.replace(/\/+$/,"").split("/");return n.split("/").forEach(c=>{c===".."?o.length>1&&o.pop():c!=="."&&o.push(c)}),o.length>1?o.join("/"):"/"}function Ud(n,r,o,i){return`Cannot include a '${n}' character in a manually specified \`to.${r}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function g2(n){return n.filter((r,o)=>o===0||r.route.path&&r.route.path.length>0)}function _f(n){let r=g2(n);return r.map((o,i)=>i===r.length-1?o.pathname:o.pathnameBase)}function rc(n,r,o,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=o;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=p2(c,h),p=m&&m!=="/"&&m.endsWith("/"),x=(d||m===".")&&o.endsWith("/");return!y.pathname.endsWith("/")&&(p||x)&&(y.pathname+="/"),y}var Fn=n=>n.join("/").replace(/\/\/+/g,"/"),v2=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),y2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,b2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,x2=class{constructor(n,r,o,i=!1){this.status=n,this.statusText=r||"",this.internal=i,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function S2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function w2(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 o=n;if(typeof o!="string"||!h2.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let i=o,c=!1;if(_y)try{let d=new URL(window.location.href),m=o.startsWith("//")?new URL(d.protocol+o):new URL(o),h=xa(m.pathname,r);m.origin===d.origin&&h!=null?o=h+m.search+m.hash:c=!0}catch{An(!1,`<Link to="${o}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:i,isExternal:c,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Oy=["POST","PUT","PATCH","DELETE"];new Set(Oy);var E2=["GET",...Oy];new Set(E2);var ql=v.createContext(null);ql.displayName="DataRouter";var lc=v.createContext(null);lc.displayName="DataRouterState";var N2=v.createContext(!1),ky=v.createContext({isTransitioning:!1});ky.displayName="ViewTransition";var T2=v.createContext(new Map);T2.displayName="Fetchers";var C2=v.createContext(null);C2.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",R2="REDIRECT",A2="ROUTE_ERROR_RESPONSE";function j2(n){if(n.startsWith(`${Dy}:${R2}:{`))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 _2(n){if(n.startsWith(`${Dy}:${A2}:{`))try{let r=JSON.parse(n.slice(40));if(typeof r=="object"&&r&&typeof r.status=="number"&&typeof r.statusText=="string")return new x2(r.status,r.statusText,r.data)}catch{}}function M2(n,{relative:r}={}){ot(Vl(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:i}=v.useContext(cn),{hash:c,pathname:d,search:m}=ni(n,{relative:r}),h=d;return o!=="/"&&(h=d==="/"?o:Fn([o,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?G2():O2()}function O2(){ot(Vl(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(ql),{basename:r,navigator:o}=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"){o.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?o.replace:o.push)(x,p.state,p)},[r,o,d,c,n])}var By=v.createContext(null);function Y_(){return v.useContext(By)}function k2(n){let r=v.useContext(Sn).outlet;return v.useMemo(()=>r&&v.createElement(By.Provider,{value:n},r),[r,n])}function P_(){let{matches:n}=v.useContext(Sn),r=n[n.length-1];return r?r.params:{}}function ni(n,{relative:r}={}){let{matches:o}=v.useContext(Sn),{pathname:i}=Wn(),c=JSON.stringify(_f(o));return v.useMemo(()=>rc(n,JSON.parse(c),i,r==="path"),[n,c,i,r])}function D2(n,r){return Hy(n,r)}function Hy(n,r,o){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=H2(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,o);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 z2(){let n=P2(),r=S2(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),o=n instanceof Error?n.stack:null,i="rgba(200,200,200, 0.5)",c={padding:"0.5rem",backgroundColor:i},d={padding:"2px 4px",backgroundColor:i},m=null;return console.error("Error handled by React Router default ErrorBoundary:",n),m=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:d},"ErrorBoundary")," or"," ",v.createElement("code",{style:d},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},r),o?v.createElement("pre",{style:c},o):null,m)}var L2=v.createElement(z2,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 o=_2(n.digest);o&&(n=o)}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(U2,{error:n},r):r}};$y.contextType=N2;var Bd=new WeakMap;function U2({children:n,error:r}){let{basename:o}=v.useContext(cn);if(typeof r=="object"&&r&&"digest"in r&&typeof r.digest=="string"){let i=j2(r.digest);if(i){let c=Bd.get(r);if(c)throw c;let d=My(i.location,o);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 B2({routeContext:n,match:r,children:o}){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},o)}function H2(n,r=[],o){let i=o==null?void 0:o.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(o&&i){m=i.renderFallback;for(let x=0;x<c.length;x++){let g=c[x];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=x),g.route.id){let{loaderData:w,errors:N}=i,T=g.route.loader&&!w.hasOwnProperty(g.route.id)&&(!N||N[g.route.id]===void 0);if(g.route.lazy||T){o.isStatic&&(m=!0),h>=0?c=c.slice(0,h+1):c=[c[0]];break}}}}let y=o==null?void 0:o.onError,p=i&&y?(x,g)=>{var w,N;y(x,{location:i.location,params:((N=(w=i.matches)==null?void 0:w[0])==null?void 0:N.params)??{},unstable_pattern:w2(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||L2,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(B2,{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 $2(n){let r=v.useContext(ql);return ot(r,Of(n)),r}function q2(n){let r=v.useContext(lc);return ot(r,Of(n)),r}function V2(n){let r=v.useContext(Sn);return ot(r,Of(n)),r}function kf(n){let r=V2(n),o=r.matches[r.matches.length-1];return ot(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function Y2(){return kf("useRouteId")}function P2(){var i;let n=v.useContext(Mf),r=q2("useRouteError"),o=kf("useRouteError");return n!==void 0?n:(i=r.errors)==null?void 0:i[o]}function G2(){let{router:n}=$2("useNavigate"),r=kf("useNavigate"),o=v.useRef(!1);return Ly(()=>{o.current=!0}),v.useCallback(async(c,d={})=>{An(o.current,zy),o.current&&(typeof c=="number"?await n.navigate(c):await n.navigate(c,{fromRouteId:r,...d}))},[n,r])}var wv={};function qy(n,r,o){!r&&!wv[n]&&(wv[n]=!0,An(!1,o))}v.memo(I2);function I2({routes:n,future:r,state:o,isStatic:i,onError:c}){return Hy(n,void 0,{state:o,isStatic:i,onError:c})}function Ev({to:n,replace:r,state:o,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:o,relative:i})},[h,p,i,r,o]),null}function X2(n){return k2(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 K2({basename:n="/",children:r=null,location:o,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 o=="string"&&(o=$l(o));let{pathname:p="/",search:x="",hash:g="",state:w=null,key:N="default",unstable_mask:T}=o,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 Q2({children:n,location:r}){return D2(sf(n),r)}function sf(n,r=[]){let o=[];return v.Children.forEach(n,(i,c)=>{if(!v.isValidElement(i))return;let d=[...r,c];if(i.type===v.Fragment){o.push.apply(o,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)),o.push(m)}),o}var _s="get",Ms="application/x-www-form-urlencoded";function oc(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function Z2(n){return oc(n)&&n.tagName.toLowerCase()==="button"}function F2(n){return oc(n)&&n.tagName.toLowerCase()==="form"}function J2(n){return oc(n)&&n.tagName.toLowerCase()==="input"}function W2(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function eE(n,r){return n.button===0&&(!r||r==="_self")&&!W2(n)}var ys=null;function tE(){if(ys===null)try{new FormData(document.createElement("form"),0),ys=!1}catch{ys=!0}return ys}var nE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Hd(n){return n!=null&&!nE.has(n)?(An(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ms}"`),null):n}function aE(n,r){let o,i,c,d,m;if(F2(n)){let h=n.getAttribute("action");i=h?xa(h,r):null,o=n.getAttribute("method")||_s,c=Hd(n.getAttribute("enctype"))||Ms,d=new FormData(n)}else if(Z2(n)||J2(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,o=n.getAttribute("formmethod")||h.getAttribute("method")||_s,c=Hd(n.getAttribute("formenctype"))||Hd(h.getAttribute("enctype"))||Ms,d=new FormData(h,n),!tE()){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">');o=_s,i=null,c=Ms,m=n}return d&&c==="text/plain"&&(m=d,d=void 0),{action:i,method:o.toLowerCase(),encType:c,formData:d,body:m}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Df(n,r){if(n===!1||n===null||typeof n>"u")throw new Error(r)}function rE(n,r,o,i){let c=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return o?c.pathname.endsWith("/")?c.pathname=`${c.pathname}_.${i}`:c.pathname=`${c.pathname}.${i}`:c.pathname==="/"?c.pathname=`_root.${i}`:r&&xa(c.pathname,r)==="/"?c.pathname=`${r.replace(/\/$/,"")}/_root.${i}`:c.pathname=`${c.pathname.replace(/\/$/,"")}.${i}`,c}async function lE(n,r){if(n.id in r)return r[n.id];try{let o=await import(n.module);return r[n.id]=o,o}catch(o){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function oE(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 iE(n,r,o){let i=await Promise.all(n.map(async c=>{let d=r.routes[c.route.id];if(d){let m=await lE(d,o);return m.links?m.links():[]}return[]}));return dE(i.flat(1).filter(oE).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,o,i,c,d){let m=(y,p)=>o[p]?y.route.id!==o[p].route.id:!0,h=(y,p)=>{var x;return o[p].pathname!==y.pathname||((x=o[p].route.path)==null?void 0:x.endsWith("*"))&&o[p].params["*"]!==y.params["*"]};return d==="assets"?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=o[0])==null?void 0:g.params)||{},nextUrl:new URL(n,window.origin),nextParams:y.params,defaultShouldRevalidate:!0});if(typeof w=="boolean")return w}return!0}):[]}function sE(n,r,{includeHydrateFallback:o}={}){return cE(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)),o&&c.hydrateFallbackModule&&(d=d.concat(c.hydrateFallbackModule)),c.imports&&(d=d.concat(c.imports)),d}).flat(1))}function cE(n){return[...new Set(n)]}function uE(n){let r={},o=Object.keys(n).sort();for(let i of o)r[i]=n[i];return r}function dE(n,r){let o=new Set;return new Set(r),n.reduce((i,c)=>{let d=JSON.stringify(uE(c));return o.has(d)||(o.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 fE(){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 mE(n,r){let o=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 o?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 o=>{n&&n(o),o.defaultPrevented||r(o)}}function hE({page:n,...r}){let{router:o}=Vy(),i=v.useMemo(()=>Ry(o.routes,n,o.basename),[o.routes,n,o.basename]);return i?v.createElement(gE,{page:n,matches:i,...r}):null}function pE(n){let{manifest:r,routeModules:o}=Yy(),[i,c]=v.useState([]);return v.useEffect(()=>{let d=!1;return iE(n,r,o).then(m=>{d||c(m)}),()=>{d=!0}},[n,r,o]),i}function gE({page:n,matches:r,...o}){let i=Wn(),{future:c,manifest:d,routeModules:m}=Yy(),{basename:h}=Vy(),{loaderData:y,matches:p}=fE(),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=rE(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(()=>sE(g,d),[g,d]),T=pE(g);return v.createElement(v.Fragment,null,w.map(E=>v.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...o})),N.map(E=>v.createElement("link",{key:E,rel:"modulepreload",href:E,...o})),T.map(({key:E,link:C})=>v.createElement("link",{key:E,nonce:o.nonce,...C,crossOrigin:C.crossOrigin??o.crossOrigin})))}function vE(...n){return r=>{n.forEach(o=>{typeof o=="function"?o(r):o!=null&&(o.current=r)})}}var yE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{yE&&(window.__reactRouterVersion="7.13.2")}catch{}function bE({basename:n,children:r,unstable_useTransitions:o,window:i}){let c=v.useRef();c.current==null&&(c.current=Fw({window:i,v5Compat:!0}));let d=c.current,[m,h]=v.useState({action:d.action,location:d.location}),y=v.useCallback(p=>{o===!1?h(p):v.startTransition(()=>h(p))},[o]);return v.useLayoutEffect(()=>d.listen(y),[d,y]),v.createElement(K2,{basename:n,children:r,location:m.location,navigationType:m.action,navigator:d,unstable_useTransitions:o})}var Py=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Gy=v.forwardRef(function({onClick:r,discover:o="render",prefetch:i="none",relative:c,reloadDocument:d,replace:m,unstable_mask:h,state:y,target:p,to:x,preventScrollReset:g,viewTransition:w,unstable_defaultShouldRevalidate:N,...T},E){let{basename:C,navigator:R,unstable_useTransitions:_}=v.useContext(cn),O=typeof x=="string"&&Py.test(x),z=My(x,C);x=z.to;let B=M2(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]=mE(i,T),fe=wE(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:vE(E,ne),target:p,"data-discover":!O&&o==="render"?"true":void 0});return $&&!O?v.createElement(v.Fragment,null,ue,v.createElement(hE,{page:B})):ue});Gy.displayName="Link";var cf=v.forwardRef(function({"aria-current":r="page",caseSensitive:o=!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&&RE(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;o||(_=_.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 xE=v.forwardRef(({discover:n="render",fetcherKey:r,navigate:o,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=TE(),R=CE(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:o,replace:c,state:d,relative:p,preventScrollReset:x,viewTransition:g,unstable_defaultShouldRevalidate:w});E&&o!==!1?v.startTransition(()=>$()):$()};return v.createElement("form",{ref:T,method:_,action:R,onSubmit:i?y:z,...N,"data-discover":!O&&n==="render"?"true":void 0})});xE.displayName="Form";function SE(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,SE(n)),r}function wE(n,{target:r,replace:o,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(eE(N,r)){N.preventDefault();let T=o!==void 0?o: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,o,i,c,r,n,d,m,h,y,p])}var EE=0,NE=()=>`__${String(++EE)}__`;function TE(){let{router:n}=Iy("useSubmit"),{basename:r}=v.useContext(cn),o=Y2(),i=n.fetch,c=n.navigate;return v.useCallback(async(d,m={})=>{let{action:h,method:y,encType:p,formData:x,body:g}=aE(d,r);if(m.navigate===!1){let w=m.fetcherKey||NE();await i(w,o,m.action||h,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:x,body:g,formMethod:m.method||y,formEncType:m.encType||p,flushSync:m.flushSync})}else await c(m.action||h,{unstable_defaultShouldRevalidate:m.unstable_defaultShouldRevalidate,preventScrollReset:m.preventScrollReset,formData:x,body:g,formMethod:m.method||y,formEncType:m.encType||p,replace:m.replace,state:m.state,fromRouteId:o,flushSync:m.flushSync,viewTransition:m.viewTransition})},[i,c,r,o])}function CE(n,{relative:r}={}){let{basename:o}=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"),o!=="/"&&(d.pathname=d.pathname==="/"?o:Fn([o,d.pathname])),Fo(d)}function RE(n,{relative:r}={}){let o=v.useContext(ky);ot(o!=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(!o.isTransitioning)return!1;let d=xa(o.currentLocation.pathname,i)||o.currentLocation.pathname,m=xa(o.nextLocation.pathname,i)||o.nextLocation.pathname;return Us(c.pathname,m)!=null||Us(c.pathname,d)!=null}var ai=Ty();const Xy=Ny(ai),AE="/api",Tv="X-Tunnel-Authorization";function jE(n){const r=n.toLowerCase().replace(/\.$/,"");return r==="devtunnels.ms"||r.endsWith(".devtunnels.ms")}function _E(){var r,o;return typeof window>"u"||!jE(window.location.hostname)?void 0:((o=(r=window.__MESHY_RUNTIME_CONFIG__)==null?void 0:r.dashboardTunnelAuthorization)==null?void 0:o.trim())||void 0}function ME(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=_E();return i&&!r.has(Tv)&&r.set(Tv,i),r}function OE(n,r){if(typeof n=="string"&&n)return n;if(n&&typeof n=="object"){const o=n,i=typeof o.error=="object"&&o.error!==null?o.error:void 0;if(typeof o.error=="string"&&o.error)return o.error;if(typeof(i==null?void 0:i.message)=="string"&&i.message)return i.message;if(typeof o.message=="string"&&o.message)return o.message}return r}async function Ee(n,r){const o=await fetch(`${AE}${n}`,{...r,headers:ME(r)});if(!o.ok){const i=await o.json().catch(()=>o.statusText);throw new Error(OE(i,`HTTP ${o.status}`))}return o.json()}function Yl(n,r){return Ee(n,{...r,cache:"no-store"})}function kE(){return Ee("/system/info")}function G_(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 DE(){return Ee("/system/runtime/stop",{method:"POST"})}function zE(){return Ee("/cluster/state")}function I_(){return Ee("/cluster/promote",{method:"POST"})}function X_(n){return Ee("/cluster/connect",{method:"POST",body:JSON.stringify(n)})}function K_(){return Ee("/cluster/disconnect",{method:"POST"})}function LE(n){return Ee(`/node-operations/${n}`)}async function UE(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 o=r.toString();return(await Ee(`/node-operations${o?`?${o}`:""}`)).operations}function BE(n,r){return Ee(`/nodes/${n}/agents/${r}/upgrade`,{method:"POST"})}function HE(n,r){return Ee(`/nodes/${n}/runtime/restart`,{method:"POST",body:JSON.stringify(r)})}async function Q_(){return(await Ee("/devboxes")).devboxes}function Z_(n,r){return Ee(`/nodes/${n}/devbox/configure`,{method:"POST",body:JSON.stringify({devbox:r})})}function F_(n){return Ee(`/nodes/${n}/devbox/status`)}function J_(n){return Ee(`/nodes/${n}/devbox/start`,{method:"POST"})}function W_(n,r){return Ee(`/nodes/${n}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:r})})}function eM(n,r={}){const o=new URLSearchParams;r.path&&o.set("path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),100))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),r.directoriesOnly!==void 0&&o.set("directoriesOnly",String(r.directoriesOnly)),r.allowAbsolute!==void 0&&o.set("allowAbsolute",String(r.allowAbsolute));const i=o.toString();return Ee(`/nodes/${n}/workdir/tree${i?`?${i}`:""}`)}function tM(n,r={}){const o=new URLSearchParams;r.path&&o.set("path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),20))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),r.allowAbsolute!==void 0&&o.set("allowAbsolute",String(r.allowAbsolute));const i=o.toString();return Ee(`/nodes/${n}/workdir/branch${i?`?${i}`:""}`)}function nM(n,r){const o=new URLSearchParams;return o.set("agent",r.agent),o.set("limit",String(Math.min(Math.max(1,r.limit),100))),Ee(`/nodes/${n}/native-sessions?${o.toString()}`)}function aM(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 rM(n,r){return Ee(`/nodes/${n}/terminal/sessions`,{method:"POST",body:JSON.stringify(r)})}function lM(n){return Ee(`/nodes/${n}/terminal/sessions`)}function oM(n,r){return Ee(`/nodes/${n}/terminal/sessions/${r}`)}function iM(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 sM(n,r){var i;const o=new URLSearchParams;return Lf(o,r.scope),(i=r.agents)!=null&&i.length&&o.set("agents",r.agents.join(",")),Ee(`/nodes/${encodeURIComponent(n)}/capabilities?${o.toString()}`)}function cM(n,r,o){const i=new URLSearchParams;o&&Lf(i,o);const c=i.toString();return Ee(`/nodes/${encodeURIComponent(n)}/capabilities/${encodeURIComponent(r)}${c?`?${c}`:""}`)}function uM(n,r,o){const i=new URLSearchParams;o&&Lf(i,o);const c=i.toString();return Ee(`/nodes/${encodeURIComponent(n)}/capabilities/${encodeURIComponent(r)}${c?`?${c}`:""}`,{method:"DELETE"})}function dM(n){return Ee("/capabilities/conflict-check",{method:"POST",body:JSON.stringify(n)})}function fM(n){return Ee("/capabilities/share",{method:"POST",body:JSON.stringify(n)})}async function mM(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 o=r.toString();return Ee(`/tasks${o?`?${o}`:""}`)}function hM(n){return Ee(`/tasks/${n}`)}function pM(n){return Ee("/tasks",{method:"POST",body:JSON.stringify(n)})}function gM(n){return Ee("/tasks/import-session",{method:"POST",body:JSON.stringify(n)})}function vM(n){return Ee("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:n})})}function yM(n){return Ee("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:n})})}function bM(n){return Ee(`/tasks/${n}/cancel`,{method:"POST"})}function xM(n){return Ee(`/tasks/${n}/retry`,{method:"POST"})}function SM(n,r){return Ee(`/tasks/${n}/logs`)}function wM(n,r){return Ee(`/tasks/${n}/message`,{method:"POST",body:JSON.stringify({content:r})})}function EM(n,r){return Ee(`/tasks/${n}/queued-messages/${encodeURIComponent(r)}`,{method:"DELETE"})}function NM(n,r){return Ee(`/tasks/${n}/share`,{method:"POST",body:JSON.stringify(r)})}function TM(n){return Ee(`/tasks/${n}/share`,{method:"DELETE"})}function CM(n){return Yl(`/shared/conversations/${encodeURIComponent(n)}`)}function RM(n,r){return Yl(`/shared/conversations/${encodeURIComponent(n)}/logs`)}function AM(n){return Yl(`/shared/conversations/${encodeURIComponent(n)}/output`)}function jM(n,r="."){return Yl(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(r)}`)}function _M(n,r){return Yl(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(r)}`)}function MM(n,r){return Yl(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(r?{path:r}:{})})}function $E(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}function OM(n){return Ee(`/tasks/${n}/output`)}function kM(n,r="."){return Ee(`/tasks/${n}/output/tree?path=${encodeURIComponent(r)}`)}function DM(n,r){return Ee(`/tasks/${n}/output/content?path=${encodeURIComponent(r)}`)}function zM(n,r){return Ee(`/tasks/${n}/output/preview-sessions`,{method:"POST",body:JSON.stringify($E(r))})}function LM(n){return Ee(`/tasks/${n}/output/diff`)}function qE({hasStarted:n,enabled:r}){return r&&!n}function VE(n,r,o=!0){const i=v.useRef(n),c=v.useRef(!1);v.useEffect(()=>{i.current=n},[n]),v.useEffect(()=>{if(!o)return;const d=()=>i.current();qE({hasStarted:c.current,enabled:o})&&(c.current=!0,d());const m=setInterval(d,r);return()=>clearInterval(m)},[r,o])}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 o of n){if(!o)continue;new Headers(o).forEach((c,d)=>r.set(d,c))}return r}var GE=class extends Error{constructor(r,o){super(r);st(this,"status");st(this,"statusText");st(this,"code");st(this,"details");st(this,"body");this.name="MeshyApiError",this.status=o.status,this.statusText=o.statusText,this.code=o.code,this.details=o.details,this.body=o.body}};function IE(n,r){if(typeof n=="string"&&n)return{message:n};if(n&&typeof n=="object"){const o=n,i=typeof o.error=="object"&&o.error!==null?o.error:void 0;if(typeof o.error=="string"&&o.error)return{message:o.error};if(typeof(i==null?void 0:i.message)=="string"&&i.message)return{message:i.message,code:i.code,details:i.details};if(typeof o.message=="string"&&o.message)return{message:o.message}}return{message:r}}function Vo(n,r){const o=r.toString();return o?`${n}?${o}`:n}function ln(n,r,o){o!==void 0&&n.set(r,String(o))}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??((o,i)=>globalThis.fetch(o,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}`}async request(n,r={}){var x,g,w,N;const o=r.timeoutMs??this.config.timeoutMs,i=o?new AbortController:null;let c=null;i&&(c=setTimeout(()=>i.abort(),o));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 o=new URLSearchParams;return ln(o,"path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),100))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),ln(o,"directoriesOnly",r.directoriesOnly),ln(o,"allowAbsolute",r.allowAbsolute),this.request(Vo(`/nodes/${encodeURIComponent(n)}/workdir/tree`,o))}getNodeWorkDirBranchInfo(n,r={}){const o=new URLSearchParams;return ln(o,"path",r.path),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),20))),r.offset!==void 0&&o.set("offset",String(Math.max(0,r.offset))),ln(o,"allowAbsolute",r.allowAbsolute),this.request(Vo(`/nodes/${encodeURIComponent(n)}/workdir/branch`,o))}createNodeWorkDirBranch(n,r){return this.request(`/nodes/${encodeURIComponent(n)}/workdir/branch`,{method:"POST",body:r})}getNodeNativeSessions(n,r){const o=new URLSearchParams;return o.set("agent",r.agent),r.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,r.limit),100))),this.request(`/nodes/${encodeURIComponent(n)}/native-sessions?${o.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:eN()),this.pollIntervalMs=n.pollIntervalMs??1e4,this.poll=n.poll}start(){if(!(this.eventSource||this.pollTimer)){if(this.eventSourceFactory){const n=new this.eventSourceFactory(this.client.buildApiUrl("/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,o=>this.emit({id:String(++FE),type:r,data:JSON.parse(o.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 o=++this.listenerId;return this.listeners.set(o,{pattern:n,callback:r}),()=>this.listeners.delete(o)}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:o}of this.listeners.values())n.type.startsWith(r)&&o(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(){return globalThis.EventSource}function tN(n=50){const[r,o]=v.useState([]),[i,c]=v.useState(!1),d=v.useRef(null),m=v.useRef(0),h=v.useRef(new Map);v.useEffect(()=>{const x=new JE({client:QE});d.current=x;const g=x.subscribe("",N=>{const T=N;o(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(()=>o([]),[]);return{events:r,connected:i,subscribe:y,clearEvents:p}}const nN=1e4,aN=6e4,rN=nN,lN=250,oN=new Set(["node.joined","node.left","task.created","task.assigned","task.deleted"]),iN=new Set(["task.created","task.assigned","task.status","task.deleted"]);function sN(n){return n?aN:rN}function UM(n){return oN.has(n)}function cN(n){return iN.has(n)}function uN(n,r){if(!r)return!0;const o=n.leaderId,i=n.term,c=n.nodeCount;return typeof o!="string"&&o!==null||typeof i!="number"||typeof c!="number"?!0:r.leaderId!==o||r.term!==i||r.nodeCount!==c}function dN(n,r,o){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:o.get(i)!==c}function BM(n,r){const o=r.taskId,i=r.status;if(typeof o!="string"||typeof i!="string")return n;let c=!1;const d=n.map(m=>{if(m.id!==o)return m;c=!0;const h="result"in 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 HM(n,r){const o=r.taskId;if(typeof o!="string")return n;const i=n.filter(c=>c.id!==o);return i.length===n.length?n:i}const Qy=v.createContext(null);function fN({children:n}){const[r,o]=v.useState(null),[i,c]=v.useState(null),[d,m]=v.useState(!0),[h,y]=v.useState(null),p=v.useRef(null),x=v.useRef(null),g=v.useRef(new Map),{events:w,connected:N,subscribe:T}=tN(),E=v.useCallback(async()=>{var R;try{const[_,O]=await Promise.all([zE(),kE()]),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),o(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()},lN))},[E]);return VE(E,sN(N)),v.useEffect(()=>()=>{p.current!==null&&(window.clearTimeout(p.current),p.current=null)},[]),v.useEffect(()=>{const R=[T("cluster",_=>{uN(_.data,x.current)&&C()}),T("election",C),T("node",_=>{dN(_.type,_.data,g.current)&&C()}),T("transport",C),T("task",_=>{cN(_.type)&&C()})];return()=>R.forEach(_=>_())},[T,C]),f.jsx(Qy.Provider,{value:{cluster:r,systemInfo:i,events:w,sseConnected:N,subscribe:T,refresh:E,loading:d,error:h},children:n})}function Zy(){const n=v.useContext(Qy);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 Fy=(...n)=>n.filter((r,o,i)=>!!r&&r.trim()!==""&&i.indexOf(r)===o).join(" ").trim();/**
|
|
67
|
+
* @license lucide-react v1.7.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const mN=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 hN=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(r,o,i)=>i?i.toUpperCase():o.toLowerCase());/**
|
|
77
|
+
* @license lucide-react v1.7.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const Av=n=>{const r=hN(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 pN=n=>{for(const r in n)if(r.startsWith("aria-")||r==="role"||r==="title")return!0;return!1},gN=v.createContext({}),vN=()=>v.useContext(gN),yN=v.forwardRef(({color:n,size:r,strokeWidth:o,absoluteStrokeWidth:i,className:c="",children:d,iconNode:m,...h},y)=>{const{size:p=24,strokeWidth:x=2,absoluteStrokeWidth:g=!1,color:w="currentColor",className:N=""}=vN()??{},T=i??g?Number(o??x)*24/Number(r??p):o??x;return v.createElement("svg",{ref:y,...$d,width:r??p??$d.width,height:r??p??$d.height,stroke:n??w,strokeWidth:T,className:Fy("lucide",N,c),...!d&&!pN(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 o=v.forwardRef(({className:i,...c},d)=>v.createElement(yN,{ref:d,iconNode:r,className:Fy(`lucide-${mN(Av(n))}`,`lucide-${n}`,i),...c}));return o.displayName=Av(n),o};/**
|
|
97
|
+
* @license lucide-react v1.7.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const bN=[["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",bN);/**
|
|
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 xN=[["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"}]],SN=Be("book-open",xN);/**
|
|
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 wN=[["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"}]],Jy=Be("bot",wN);/**
|
|
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 EN=[["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"}]],NN=Be("cable",EN);/**
|
|
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 TN=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Hs=Be("check",TN);/**
|
|
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 CN=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Jo=Be("chevron-down",CN);/**
|
|
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 RN=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],uf=Be("chevron-right",RN);/**
|
|
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 AN=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],jN=Be("chevron-up",AN);/**
|
|
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 _N=[["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",_N);/**
|
|
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 MN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Xo=Be("circle-check",MN);/**
|
|
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 ON=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],jv=Be("circle-dot",ON);/**
|
|
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 kN=[["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"}]],DN=Be("circle-x",kN);/**
|
|
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 zN=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],LN=Be("copy",zN);/**
|
|
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 UN=[["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"}]],BN=Be("cpu",UN);/**
|
|
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 HN=[["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"}]],$N=Be("external-link",HN);/**
|
|
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 qN=[["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"}]],VN=Be("folder-tree",qN);/**
|
|
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 YN=[["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"}]],PN=Be("folder",YN);/**
|
|
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 GN=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],IN=Be("info",GN);/**
|
|
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 XN=[["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"}]],KN=Be("monitor-cog",XN);/**
|
|
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 QN=[["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"}]],Wy=Be("monitor",QN);/**
|
|
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 ZN=[["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"}]],e0=Be("moon",ZN);/**
|
|
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 FN=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],JN=Be("power",FN);/**
|
|
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 WN=[["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"}]],eT=Be("radio",WN);/**
|
|
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 tT=[["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",tT);/**
|
|
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 nT=[["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",nT);/**
|
|
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 aT=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],rT=Be("search",aT);/**
|
|
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 lT=[["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"}]],t0=Be("server",lT);/**
|
|
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 oT=[["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"}]],iT=Be("settings",oT);/**
|
|
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 sT=[["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"}]],cT=Be("shield",sT);/**
|
|
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 uT=[["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"}]],dT=Be("sparkles",uT);/**
|
|
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 fT=[["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"}]],n0=Be("sun",fT);/**
|
|
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 mT=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],a0=Be("terminal",mT);/**
|
|
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 hT=[["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"}]],pT=Be("wifi-off",hT);/**
|
|
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 gT=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],r0=Be("x",gT);function l0(n){var r,o,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var c=n.length;for(r=0;r<c;r++)n[r]&&(o=l0(n[r]))&&(i&&(i+=" "),i+=o)}else for(o in n)n[o]&&(i&&(i+=" "),i+=o);return i}function o0(){for(var n,r,o=0,i="",c=arguments.length;o<c;o++)(n=arguments[o])&&(r=l0(n))&&(i&&(i+=" "),i+=r);return i}const vT=(n,r)=>{const o=new Array(n.length+r.length);for(let i=0;i<n.length;i++)o[i]=n[i];for(let i=0;i<r.length;i++)o[n.length+i]=r[i];return o},yT=(n,r)=>({classGroupId:n,validator:r}),i0=(n=new Map,r=null,o)=>({nextPart:n,validators:r,classGroupId:o}),$s="-",Mv=[],bT="arbitrary..",xT=n=>{const r=wT(n),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return ST(m);const h=m.split($s),y=h[0]===""&&h.length>1?1:0;return s0(h,y,r)},getConflictingClassGroupIds:(m,h)=>{if(h){const y=i[m],p=o[m];return y?p?vT(p,y):y:p||Mv}return o[m]||Mv}}},s0=(n,r,o)=>{if(n.length-r===0)return o.classGroupId;const c=n[r],d=o.nextPart.get(c);if(d){const p=s0(n,r+1,d);if(p)return p}const m=o.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}},ST=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=n.slice(1,-1),o=r.indexOf(":"),i=r.slice(0,o);return i?bT+i:void 0})(),wT=n=>{const{theme:r,classGroups:o}=n;return ET(o,r)},ET=(n,r)=>{const o=i0();for(const i in n){const c=n[i];Uf(c,o,i,r)}return o},Uf=(n,r,o,i)=>{const c=n.length;for(let d=0;d<c;d++){const m=n[d];NT(m,r,o,i)}},NT=(n,r,o,i)=>{if(typeof n=="string"){TT(n,r,o);return}if(typeof n=="function"){CT(n,r,o,i);return}RT(n,r,o,i)},TT=(n,r,o)=>{const i=n===""?r:c0(r,n);i.classGroupId=o},CT=(n,r,o,i)=>{if(AT(n)){Uf(n(i),r,o,i);return}r.validators===null&&(r.validators=[]),r.validators.push(yT(o,n))},RT=(n,r,o,i)=>{const c=Object.entries(n),d=c.length;for(let m=0;m<d;m++){const[h,y]=c[m];Uf(y,c0(r,h),o,i)}},c0=(n,r)=>{let o=n;const i=r.split($s),c=i.length;for(let d=0;d<c;d++){const m=i[d];let h=o.nextPart.get(m);h||(h=i0(),o.nextPart.set(m,h)),o=h}return o},AT=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,jT=n=>{if(n<1)return{get:()=>{},set:()=>{}};let r=0,o=Object.create(null),i=Object.create(null);const c=(d,m)=>{o[d]=m,r++,r>n&&(r=0,i=o,o=Object.create(null))};return{get(d){let m=o[d];if(m!==void 0)return m;if((m=i[d])!==void 0)return c(d,m),m},set(d,m){d in o?o[d]=m:c(d,m)}}},ff="!",Ov=":",_T=[],kv=(n,r,o,i,c)=>({modifiers:n,hasImportantModifier:r,baseClassName:o,maybePostfixModifierPosition:i,isExternal:c}),MT=n=>{const{prefix:r,experimentalParseClassName:o}=n;let i=c=>{const d=[];let m=0,h=0,y=0,p;const x=c.length;for(let E=0;E<x;E++){const C=c[E];if(m===0&&h===0){if(C===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(_T,!1,m,void 0,!0)}if(o){const c=i;i=d=>o({className:d,parseClassName:c})}return i},OT=n=>{const r=new Map;return n.orderSensitiveModifiers.forEach((o,i)=>{r.set(o,1e6+i)}),o=>{const i=[];let c=[];for(let d=0;d<o.length;d++){const m=o[d],h=m[0]==="[",y=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}},kT=n=>({cache:jT(n.cacheSize),parseClassName:MT(n),sortModifiers:OT(n),...xT(n)}),DT=/\s+/,zT=(n,r)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:c,sortModifiers:d}=r,m=[],h=n.trim().split(DT);let y="";for(let p=h.length-1;p>=0;p-=1){const x=h[p],{isExternal:g,modifiers:w,hasImportantModifier:N,baseClassName:T,maybePostfixModifierPosition:E}=o(x);if(g){y=x+(y.length>0?" "+y:y);continue}let C=!!E,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},LT=(...n)=>{let r=0,o,i,c="";for(;r<n.length;)(o=n[r++])&&(i=u0(o))&&(c&&(c+=" "),c+=i);return c},u0=n=>{if(typeof n=="string")return n;let r,o="";for(let i=0;i<n.length;i++)n[i]&&(r=u0(n[i]))&&(o&&(o+=" "),o+=r);return o},UT=(n,...r)=>{let o,i,c,d;const m=y=>{const p=r.reduce((x,g)=>g(x),n());return o=kT(p),i=o.cache.get,c=o.cache.set,d=h,h(y)},h=y=>{const p=i(y);if(p)return p;const x=zT(y,o);return c(y,x),x};return d=m,(...y)=>d(LT(...y))},BT=[],St=n=>{const r=o=>o[n]||BT;return r.isThemeGetter=!0,r},d0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,f0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,HT=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,$T=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qT=/\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$/,VT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,YT=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,PT=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Za=n=>HT.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=>$T.test(n),m0=()=>!0,GT=n=>qT.test(n)&&!VT.test(n),Bf=()=>!1,IT=n=>YT.test(n),XT=n=>PT.test(n),KT=n=>!pe(n)&&!ge(n),QT=n=>rr(n,g0,Bf),pe=n=>d0.test(n),jr=n=>rr(n,v0,GT),Dv=n=>rr(n,aC,je),ZT=n=>rr(n,b0,m0),FT=n=>rr(n,y0,Bf),zv=n=>rr(n,h0,Bf),JT=n=>rr(n,p0,XT),xs=n=>rr(n,x0,IT),ge=n=>f0.test(n),Yo=n=>Br(n,v0),WT=n=>Br(n,y0),Lv=n=>Br(n,h0),eC=n=>Br(n,g0),tC=n=>Br(n,p0),Ss=n=>Br(n,x0,!0),nC=n=>Br(n,b0,!0),rr=(n,r,o)=>{const i=d0.exec(n);return i?i[1]?r(i[1]):o(i[2]):!1},Br=(n,r,o=!1)=>{const i=f0.exec(n);return i?i[1]?r(i[1]):o:!1},h0=n=>n==="position"||n==="percentage",p0=n=>n==="image"||n==="url",g0=n=>n==="length"||n==="size"||n==="bg-size",v0=n=>n==="length",aC=n=>n==="number",y0=n=>n==="family-name",b0=n=>n==="number"||n==="weight",x0=n=>n==="shadow",rC=()=>{const n=St("color"),r=St("font"),o=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",eC,QT,{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:[m0],container:[ba],"drop-shadow":[ba],ease:["in","out","in-out"],font:[KT],"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",o,Yo,jr]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,nC,ZT]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",qd,pe]}],"font-family":[{font:[WT,FT,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]},tC,JT]}],"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"]}},lC=UT(rC);function le(...n){return lC(o0(n))}function oC(n){if(typeof document>"u")return;let r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",r.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}const iC=n=>{switch(n){case"success":return uC;case"info":return fC;case"warning":return dC;case"error":return mC;default:return null}},sC=Array(12).fill(0),cC=({visible:n,className:r})=>ae.createElement("div",{className:["sonner-loading-wrapper",r].filter(Boolean).join(" "),"data-visible":n},ae.createElement("div",{className:"sonner-spinner"},sC.map((o,i)=>ae.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),uC=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"})),dC=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"})),fC=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"})),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-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"})),hC=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"})),pC=()=>{const[n,r]=ae.useState(document.hidden);return ae.useEffect(()=>{const o=()=>{r(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),n};let mf=1;class gC{constructor(){this.subscribe=r=>(this.subscribers.push(r),()=>{const o=this.subscribers.indexOf(r);this.subscribers.splice(o,1)}),this.publish=r=>{this.subscribers.forEach(o=>o(r))},this.addToast=r=>{this.publish(r),this.toasts=[...this.toasts,r]},this.create=r=>{var o;const{message:i,...c}=r,d=typeof(r==null?void 0:r.id)=="number"||((o=r.id)==null?void 0:o.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(o=>o({id:r,dismiss:!0})))):this.toasts.forEach(o=>{this.subscribers.forEach(i=>i({id:o.id,dismiss:!0}))}),r),this.message=(r,o)=>this.create({...o,message:r}),this.error=(r,o)=>this.create({...o,message:r,type:"error"}),this.success=(r,o)=>this.create({...o,type:"success",message:r}),this.info=(r,o)=>this.create({...o,type:"info",message:r}),this.warning=(r,o)=>this.create({...o,type:"warning",message:r}),this.loading=(r,o)=>this.create({...o,type:"loading",message:r}),this.promise=(r,o)=>{if(!o)return;let i;o.loading!==void 0&&(i=this.create({...o,promise:r,type:"loading",message:o.loading,description:typeof o.description!="function"?o.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(yC(p)&&!p.ok){d=!1;const g=typeof o.error=="function"?await o.error(`HTTP error! status: ${p.status}`):o.error,w=typeof o.description=="function"?await o.description(`HTTP error! status: ${p.status}`):o.description,T=typeof g=="object"&&!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 o.error=="function"?await o.error(p):o.error,w=typeof o.description=="function"?await o.description(p):o.description,T=typeof g=="object"&&!ae.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:w,...T})}else if(o.success!==void 0){d=!1;const g=typeof o.success=="function"?await o.success(p):o.success,w=typeof o.description=="function"?await o.description(p):o.description,T=typeof g=="object"&&!ae.isValidElement(g)?g:{message:g};this.create({id:i,type:"success",description:w,...T})}}).catch(async p=>{if(m=["reject",p],o.error!==void 0){d=!1;const x=typeof o.error=="function"?await o.error(p):o.error,g=typeof o.description=="function"?await o.description(p):o.description,N=typeof x=="object"&&!ae.isValidElement(x)?x:{message:x};this.create({id:i,type:"error",description:g,...N})}}).finally(()=>{d&&(this.dismiss(i),i=void 0),o.finally==null||o.finally.call(o)}),y=()=>new Promise((p,x)=>h.then(()=>m[0]==="reject"?x(m[1]):p(m[1])).catch(x));return typeof i!="string"&&typeof i!="number"?{unwrap:y}:Object.assign(i,{unwrap:y})},this.custom=(r,o)=>{const i=(o==null?void 0:o.id)||mf++;return this.create({jsx:r(i),id:i,...o}),i},this.getActiveToasts=()=>this.toasts.filter(r=>!this.dismissedToasts.has(r.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Ft=new gC,vC=(n,r)=>{const o=(r==null?void 0:r.id)||mf++;return Ft.addToast({title:n,...r,id:o}),o},yC=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",bC=vC,xC=()=>Ft.toasts,SC=()=>Ft.getActiveToasts(),Pe=Object.assign(bC,{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:xC,getToasts:SC});oC("[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 wC=3,EC="24px",NC="16px",Uv=4e3,TC=356,CC=14,RC=45,AC=200;function Yn(...n){return n.filter(Boolean).join(" ")}function jC(n){const[r,o]=n.split("-"),i=[];return r&&i.push(r),o&&i.push(o),i}const _C=n=>{var r,o,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=pC(),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)},AC)},[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(cC,{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])||iC(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||(o=g.classNames)==null?void 0:o[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)>=RC||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:jC(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:hC):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 MC(n,r){const o={};return[n,r].forEach((i,c)=>{const d=c===1,m=d?"--mobile-offset":"--offset",h=d?NC:EC;function y(p){["top","right","bottom","left"].forEach(x=>{o[`${m}-${x}`]=typeof p=="number"?`${p}px`:p})}typeof i=="number"||typeof i=="string"?y(i):typeof i=="object"?["top","right","bottom","left"].forEach(p=>{i[p]===void 0?o[`${m}-${p}`]=h:o[`${m}-${p}`]=typeof i[p]=="number"?`${i[p]}px`:i[p]}):y(h)}),o}const OC=ae.forwardRef(function(r,o){const{id:i,invert:c,position:d="bottom-right",hotkey:m=["altKey","KeyT"],expand:h,closeButton:y,className:p,offset:x,mobileOffset:g,theme:w="light",richColors:N,duration:T,style:E,visibleToasts:C=wC,toastOptions:R,dir:_=Bv(),gap:O=CC,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:o,"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":`${TC}px`,"--gap":`${O}px`,...E,...MC(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(_C,{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=o0,S0=(n,r)=>o=>{var i;if((r==null?void 0:r.variants)==null)return $v(n,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:c,defaultVariants:d}=r,m=Object.keys(c).map(p=>{const x=o==null?void 0:o[p],g=d==null?void 0:d[p];if(x===null)return null;const w=Hv(x)||Hv(g);return c[p][w]}),h=o&&Object.entries(o).reduce((p,x)=>{let[g,w]=x;return w===void 0||(p[g]=w),p},{}),y=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,o==null?void 0:o.class,o==null?void 0:o.className)},kC=S0("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,...o}){return f.jsx("div",{className:le(kC({variant:r}),n),...o})}const Pn=v.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,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},o)=>f.jsx("div",{ref:o,className:le("flex flex-col space-y-1 p-3",n),...r}));Gn.displayName="CardHeader";const In=v.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:le("text-[12px] font-semibold leading-none tracking-tight",n),...r}));In.displayName="CardTitle";const Xn=v.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:le("text-[10px] text-muted-foreground",n),...r}));Xn.displayName="CardDescription";const Kn=v.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:le("p-3 pt-0",n),...r}));Kn.displayName="CardContent";const DC=v.forwardRef(({className:n,...r},o)=>f.jsx("div",{ref:o,className:le("flex items-center p-3 pt-0",n),...r}));DC.displayName="CardFooter";function qv(n,r){if(typeof n=="function")return n(r);n!=null&&(n.current=r)}function Hf(...n){return r=>{let o=!1;const i=n.map(c=>{const d=qv(c,r);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let c=0;c<i.length;c++){const d=i[c];typeof d=="function"?d():qv(n[c],null)}}}}function tt(...n){return v.useCallback(Hf(...n),n)}var zC=Symbol.for("react.lazy"),qs=jf[" use ".trim().toString()];function LC(n){return typeof n=="object"&&n!==null&&"then"in n}function w0(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===zC&&"_payload"in n&&LC(n._payload)}function UC(n){const r=HC(n),o=v.forwardRef((i,c)=>{let{children:d,...m}=i;w0(d)&&typeof qs=="function"&&(d=qs(d._payload));const h=v.Children.toArray(d),y=h.find(qC);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 o.displayName=`${n}.Slot`,o}var BC=UC("Slot");function HC(n){const r=v.forwardRef((o,i)=>{let{children:c,...d}=o;if(w0(c)&&typeof qs=="function"&&(c=qs(c._payload)),v.isValidElement(c)){const m=YC(c),h=VC(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 $C=Symbol("radix.slottable");function qC(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===$C}function VC(n,r){const o={...r};for(const i in r){const c=n[i],d=r[i];/^on[A-Z]/.test(i)?c&&d?o[i]=(...h)=>{const y=d(...h);return c(...h),y}:c&&(o[i]=c):i==="style"?o[i]={...c,...d}:i==="className"&&(o[i]=[c,d].filter(Boolean).join(" "))}return{...n,...o}}function YC(n){var i,c;let r=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}const $f=S0("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:o,asChild:i=!1,...c},d)=>{const m=i?BC:"button";return f.jsx(m,{className:le($f({variant:r,size:o,className:n})),ref:d,...c})});xn.displayName="Button";function ke(n,r,{checkForDefaultPrevented:o=!0}={}){return function(c){if(n==null||n(c),o===!1||!c.defaultPrevented)return r==null?void 0:r(c)}}function PC(n,r){const o=v.createContext(r),i=d=>{const{children:m,...h}=d,y=v.useMemo(()=>h,Object.values(h));return f.jsx(o.Provider,{value:y,children:m})};i.displayName=n+"Provider";function c(d){const m=v.useContext(o);if(m)return m;if(r!==void 0)return r;throw new Error(`\`${d}\` must be used within \`${n}\``)}return[i,c]}function lr(n,r=[]){let o=[];function i(d,m){const h=v.createContext(m),y=o.length;o=[...o,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=o.map(m=>v.createContext(m));return function(h){const y=(h==null?void 0:h[n])||d;return v.useMemo(()=>({[`__scope${n}`]:{...h,[n]:y}}),[h,y])}};return c.scopeName=n,[i,GC(c,...r)]}function GC(...n){const r=n[0];if(n.length===1)return r;const o=()=>{const i=n.map(c=>({useScope:c(),scopeName:c.scopeName}));return function(d){const m=i.reduce((h,{useScope:y,scopeName:p})=>{const g=y(d)[`__scope${p}`];return{...h,...g}},{});return v.useMemo(()=>({[`__scope${r.scopeName}`]:m}),[m])}};return o.scopeName=r.scopeName,o}var Lt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},IC=jf[" useId ".trim().toString()]||(()=>{}),XC=0;function Wa(n){const[r,o]=v.useState(IC());return Lt(()=>{o(i=>i??String(XC++))},[n]),r?`radix-${r}`:""}var KC=jf[" useInsertionEffect ".trim().toString()]||Lt;function Bl({prop:n,defaultProp:r,onChange:o=()=>{},caller:i}){const[c,d,m]=QC({defaultProp:r,onChange:o}),h=n!==void 0,y=h?n:c;{const x=v.useRef(n!==void 0);v.useEffect(()=>{const g=x.current;g!==h&&console.warn(`${i} is changing from ${g?"controlled":"uncontrolled"} to ${h?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),x.current=h},[h,i])}const p=v.useCallback(x=>{var g;if(h){const w=ZC(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 QC({defaultProp:n,onChange:r}){const[o,i]=v.useState(n),c=v.useRef(o),d=v.useRef(r);return KC(()=>{d.current=r},[r]),v.useEffect(()=>{var m;c.current!==o&&((m=d.current)==null||m.call(d,o),c.current=o)},[o,c]),[o,i,d]}function ZC(n){return typeof n=="function"}function Wo(n){const r=FC(n),o=v.forwardRef((i,c)=>{const{children:d,...m}=i,h=v.Children.toArray(d),y=h.find(WC);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 o.displayName=`${n}.Slot`,o}function FC(n){const r=v.forwardRef((o,i)=>{const{children:c,...d}=o;if(v.isValidElement(c)){const m=tR(c),h=eR(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 E0=Symbol("radix.slottable");function JC(n){const r=({children:o})=>f.jsx(f.Fragment,{children:o});return r.displayName=`${n}.Slottable`,r.__radixId=E0,r}function WC(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===E0}function eR(n,r){const o={...r};for(const i in r){const c=n[i],d=r[i];/^on[A-Z]/.test(i)?c&&d?o[i]=(...h)=>{const y=d(...h);return c(...h),y}:c&&(o[i]=c):i==="style"?o[i]={...c,...d}:i==="className"&&(o[i]=[c,d].filter(Boolean).join(" "))}return{...n,...o}}function tR(n){var i,c;let r=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var nR=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=nR.reduce((n,r)=>{const o=Wo(`Primitive.${r}`),i=v.forwardRef((c,d)=>{const{asChild:m,...h}=c,y=m?o: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 aR(n,r){n&&ai.flushSync(()=>n.dispatchEvent(r))}function tr(n){const r=v.useRef(n);return v.useEffect(()=>{r.current=n}),v.useMemo(()=>(...o)=>{var i;return(i=r.current)==null?void 0:i.call(r,...o)},[])}function rR(n,r=globalThis==null?void 0:globalThis.document){const o=tr(n);v.useEffect(()=>{const i=c=>{c.key==="Escape"&&o(c)};return r.addEventListener("keydown",i,{capture:!0}),()=>r.removeEventListener("keydown",i,{capture:!0})},[o,r])}var lR="DismissableLayer",hf="dismissableLayer.update",oR="dismissableLayer.pointerDownOutside",iR="dismissableLayer.focusOutside",Vv,N0=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),qf=v.forwardRef((n,r)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:c,onFocusOutside:d,onInteractOutside:m,onDismiss:h,...y}=n,p=v.useContext(N0),[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=uR(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=dR(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 rR(q=>{_===p.layers.size-1&&(i==null||i(q),!q.defaultPrevented&&h&&(q.preventDefault(),h()))},w),v.useEffect(()=>{if(x)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(Vv=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(x)),p.layers.add(x),Yv(),()=>{o&&p.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=Vv)}},[x,w,o,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=lR;var sR="DismissableLayerBranch",cR=v.forwardRef((n,r)=>{const o=v.useContext(N0),i=v.useRef(null),c=tt(r,i);return v.useEffect(()=>{const d=i.current;if(d)return o.branches.add(d),()=>{o.branches.delete(d)}},[o.branches]),f.jsx(Ue.div,{...n,ref:c})});cR.displayName=sR;function uR(n,r=globalThis==null?void 0:globalThis.document){const o=tr(n),i=v.useRef(!1),c=v.useRef(()=>{});return v.useEffect(()=>{const d=h=>{if(h.target&&!i.current){let y=function(){T0(oR,o,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,o]),{onPointerDownCapture:()=>i.current=!0}}function dR(n,r=globalThis==null?void 0:globalThis.document){const o=tr(n),i=v.useRef(!1);return v.useEffect(()=>{const c=d=>{d.target&&!i.current&&T0(iR,o,{originalEvent:d},{discrete:!1})};return r.addEventListener("focusin",c),()=>r.removeEventListener("focusin",c)},[r,o]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function Yv(){const n=new CustomEvent(hf);document.dispatchEvent(n)}function T0(n,r,o,{discrete:i}){const c=o.originalEvent.target,d=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:o});r&&c.addEventListener(n,r,{once:!0}),i?aR(c,d):c.dispatchEvent(d)}var Vd="focusScope.autoFocusOnMount",Yd="focusScope.autoFocusOnUnmount",Pv={bubbles:!1,cancelable:!0},fR="FocusScope",Vf=v.forwardRef((n,r)=>{const{loop:o=!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||(mR(yR(C0(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(!o&&!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]=hR(_);O&&z?!E.shiftKey&&R===z?(E.preventDefault(),o&&Ja(O,{select:!0})):E.shiftKey&&R===O&&(E.preventDefault(),o&&Ja(z,{select:!0})):R===_&&E.preventDefault()}},[o,i,N.paused]);return f.jsx(Ue.div,{tabIndex:-1,...m,ref:w,onKeyDown:T})});Vf.displayName=fR;function mR(n,{select:r=!1}={}){const o=document.activeElement;for(const i of n)if(Ja(i,{select:r}),document.activeElement!==o)return}function hR(n){const r=C0(n),o=Gv(r,n),i=Gv(r.reverse(),n);return[o,i]}function C0(n){const r=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const c=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||c?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)r.push(o.currentNode);return r}function Gv(n,r){for(const o of n)if(!pR(o,{upTo:r}))return o}function pR(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 gR(n){return n instanceof HTMLInputElement&&"select"in n}function Ja(n,{select:r=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&gR(n)&&r&&n.select()}}var Iv=vR();function vR(){let n=[];return{add(r){const o=n[0];r!==o&&(o==null||o.pause()),n=Xv(n,r),n.unshift(r)},remove(r){var o;n=Xv(n,r),(o=n[0])==null||o.resume()}}}function Xv(n,r){const o=[...n],i=o.indexOf(r);return i!==-1&&o.splice(i,1),o}function yR(n){return n.filter(r=>r.tagName!=="A")}var bR="Portal",Yf=v.forwardRef((n,r)=>{var h;const{container:o,...i}=n,[c,d]=v.useState(!1);Lt(()=>d(!0),[]);const m=o||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=bR;function xR(n,r){return v.useReducer((o,i)=>r[o][i]??o,n)}var Pl=n=>{const{present:r,children:o}=n,i=SR(r),c=typeof o=="function"?o({present:i.isPresent}):v.Children.only(o),d=tt(i.ref,wR(c));return typeof o=="function"||i.isPresent?v.cloneElement(c,{ref:d}):null};Pl.displayName="Presence";function SR(n){const[r,o]=v.useState(),i=v.useRef(null),c=v.useRef(n),d=v.useRef("none"),m=n?"mounted":"unmounted",[h,y]=xR(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,o(p)},[])}}function Es(n){return(n==null?void 0:n.animationName)||"none"}function wR(n){var i,c;let r=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=r&&"isReactWarning"in r&&r.isReactWarning;return o?n.ref:(r=(c=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:c.get,o=r&&"isReactWarning"in r&&r.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var Pd=0;function R0(){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 o,i=1,c=arguments.length;i<c;i++){o=arguments[i];for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(r[d]=o[d])}return r},Qn.apply(this,arguments)};function A0(n,r){var o={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&r.indexOf(i)<0&&(o[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,i=Object.getOwnPropertySymbols(n);c<i.length;c++)r.indexOf(i[c])<0&&Object.prototype.propertyIsEnumerable.call(n,i[c])&&(o[i[c]]=n[i[c]]);return o}function ER(n,r,o){if(o||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",NR="with-scroll-bars-hidden",TR="--removed-body-scroll-bar-size";function Gd(n,r){return typeof n=="function"?n(r):n&&(n.current=r),n}function CR(n,r){var o=v.useState(function(){return{value:n,callback:r,facade:{get current(){return o.value},set current(i){var c=o.value;c!==i&&(o.value=i,o.callback(i,c))}}}})[0];return o.callback=r,o.facade}var RR=typeof window<"u"?v.useLayoutEffect:v.useEffect,Qv=new WeakMap;function AR(n,r){var o=CR(null,function(i){return n.forEach(function(c){return Gd(c,i)})});return RR(function(){var i=Qv.get(o);if(i){var c=new Set(i),d=new Set(n),m=o.current;c.forEach(function(h){d.has(h)||Gd(h,null)}),d.forEach(function(h){c.has(h)||Gd(h,m)})}Qv.set(o,n)},[n]),o}function jR(n){return n}function _R(n,r){r===void 0&&(r=jR);var o=[],i=!1,c={read:function(){if(i)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return o.length?o[o.length-1]:n},useMedium:function(d){var m=r(d,i);return o.push(m),function(){o=o.filter(function(h){return h!==m})}},assignSyncMedium:function(d){for(i=!0;o.length;){var m=o;o=[],m.forEach(d)}o={push:function(h){return d(h)},filter:function(){return o}}},assignMedium:function(d){i=!0;var m=[];if(o.length){var h=o;o=[],h.forEach(d),m=o}var y=function(){var x=m;m=[],x.forEach(d)},p=function(){return Promise.resolve().then(y)};p(),o={push:function(x){m.push(x),p()},filter:function(x){return m=m.filter(x),o}}}};return c}function MR(n){n===void 0&&(n={});var r=_R(null);return r.options=Qn({async:!0,ssr:!1},n),r}var j0=function(n){var r=n.sideCar,o=A0(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({},o))};j0.isSideCarExport=!0;function OR(n,r){return n.useMedium(r),j0}var _0=MR(),Id=function(){},ic=v.forwardRef(function(n,r){var o=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=A0(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),B=w,P=AR([o,r]),q=Qn(Qn({},z),c);return v.createElement(v.Fragment,null,x&&v.createElement(B,{sideCar:_0,removeScrollBar:p,shards:g,noRelative:N,noIsolation:T,inert:E,setCallbacks:d,allowPinchZoom:!!C,lockRef:o,gapMode:O}),m?v.cloneElement(v.Children.only(h),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 kR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function DR(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var r=kR();return r&&n.setAttribute("nonce",r),n}function zR(n,r){n.styleSheet?n.styleSheet.cssText=r:n.appendChild(document.createTextNode(r))}function LR(n){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(n)}var UR=function(){var n=0,r=null;return{add:function(o){n==0&&(r=DR())&&(zR(r,o),LR(r)),n++},remove:function(){n--,!n&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},BR=function(){var n=UR();return function(r,o){v.useEffect(function(){return n.add(r),function(){n.remove()}},[r&&o])}},M0=function(){var n=BR(),r=function(o){var i=o.styles,c=o.dynamic;return n(i,c),null};return r},HR={left:0,top:0,right:0,gap:0},Xd=function(n){return parseInt(n||"",10)||0},$R=function(n){var r=window.getComputedStyle(document.body),o=r[n==="padding"?"paddingLeft":"marginLeft"],i=r[n==="padding"?"paddingTop":"marginTop"],c=r[n==="padding"?"paddingRight":"marginRight"];return[Xd(o),Xd(i),Xd(c)]},qR=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return HR;var r=$R(n),o=document.documentElement.clientWidth,i=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,i-o+r[2]-r[0])}},VR=M0(),zl="data-scroll-locked",YR=function(n,r,o,i){var c=n.left,d=n.top,m=n.right,h=n.gap;return o===void 0&&(o="margin"),`
|
|
267
|
+
.`.concat(NR,` {
|
|
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,";"),o==="margin"&&`
|
|
275
|
+
padding-left: `.concat(c,`px;
|
|
276
|
+
padding-top: `).concat(d,`px;
|
|
277
|
+
padding-right: `).concat(m,`px;
|
|
278
|
+
margin-left:0;
|
|
279
|
+
margin-top:0;
|
|
280
|
+
margin-right: `).concat(h,"px ").concat(i,`;
|
|
281
|
+
`),o==="padding"&&"padding-right: ".concat(h,"px ").concat(i,";")].filter(Boolean).join(""),`
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.`).concat(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(TR,": ").concat(h,`px;
|
|
302
|
+
}
|
|
303
|
+
`)},Zv=function(){var n=parseInt(document.body.getAttribute(zl)||"0",10);return isFinite(n)?n:0},PR=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())}},[])},GR=function(n){var r=n.noRelative,o=n.noImportant,i=n.gapMode,c=i===void 0?"margin":i;PR();var d=v.useMemo(function(){return qR(c)},[c]);return v.createElement(VR,{styles:YR(d,!r,c,o?"":"!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,IR=function(n){return n.tagName==="TEXTAREA"},O0=function(n,r){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[r]!=="hidden"&&!(o.overflowY===o.overflowX&&!IR(n)&&o[r]==="visible")},XR=function(n){return O0(n,"overflowY")},KR=function(n){return O0(n,"overflowX")},Fv=function(n,r){var o=r.ownerDocument,i=r;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var c=k0(n,i);if(c){var d=D0(n,i),m=d[1],h=d[2];if(m>h)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},QR=function(n){var r=n.scrollTop,o=n.scrollHeight,i=n.clientHeight;return[r,o,i]},ZR=function(n){var r=n.scrollLeft,o=n.scrollWidth,i=n.clientWidth;return[r,o,i]},k0=function(n,r){return n==="v"?XR(r):KR(r)},D0=function(n,r){return n==="v"?QR(r):ZR(r)},FR=function(n,r){return n==="h"&&r==="rtl"?-1:1},JR=function(n,r,o,i,c){var d=FR(n,window.getComputedStyle(r).direction),m=d*i,h=o.target,y=r.contains(h),p=!1,x=m>0,g=0,w=0;do{if(!h)break;var N=D0(n,h),T=N[0],E=N[1],C=N[2],R=E-C-d*T;(T||R)&&k0(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},WR=function(n,r){return n[0]===r[0]&&n[1]===r[1]},e5=function(n){return`
|
|
304
|
+
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
305
|
+
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
306
|
+
`)},t5=0,Al=[];function n5(n){var r=v.useRef([]),o=v.useRef([0,0]),i=v.useRef(),c=v.useState(t5++)[0],d=v.useState(M0)[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=ER([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),_=o.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 JR(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)&&WR(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:a5(R)};r.current.push(O),setTimeout(function(){r.current=r.current.filter(function(z){return z!==O})},1)},[]),x=v.useCallback(function(E){o.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:e5(c)}):null,N?v.createElement(GR,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function a5(n){for(var r=null;n!==null;)n instanceof ShadowRoot&&(r=n.host,n=n.host),n=n.parentNode;return r}const r5=OR(_0,n5);var Pf=v.forwardRef(function(n,r){return v.createElement(ic,Qn({},n,{ref:r,sideCar:r5}))});Pf.classNames=ic.classNames;var l5=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,z0=function(n){return n&&(n.host||z0(n.parentNode))},o5=function(n,r){return r.map(function(o){if(n.contains(o))return o;var i=z0(o);return i&&n.contains(i)?i:(console.error("aria-hidden",o,"in not contained inside",n,". Doing nothing"),null)}).filter(function(o){return!!o})},i5=function(n,r,o,i){var c=o5(r,Array.isArray(n)?n:[n]);Rs[o]||(Rs[o]=new WeakMap);var d=Rs[o],m=[],h=new Set,y=new Set(c),p=function(g){!g||h.has(g)||(h.add(g),p(g.parentNode))};c.forEach(p);var x=function(g){!g||y.has(g)||Array.prototype.forEach.call(g.children,function(w){if(h.has(w))x(w);else try{var N=w.getAttribute(i),T=N!==null&&N!=="false",E=(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(o,"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(o)}),Kd--,Kd||(jl=new WeakMap,jl=new WeakMap,Cs=new WeakMap,Rs={})}},L0=function(n,r,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),c=l5(n);return c?(i.push.apply(i,Array.from(c.querySelectorAll("[aria-live], script"))),i5(i,c,o,"aria-hidden")):function(){return null}},sc="Dialog",[U0,B0]=lr(sc),[s5,Mn]=U0(sc),H0=n=>{const{__scopeDialog:r,children:o,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(s5,{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:o})};H0.displayName=sc;var $0="DialogTrigger",q0=v.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,c=Mn($0,o),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)})});q0.displayName=$0;var Gf="DialogPortal",[c5,V0]=U0(Gf,{forceMount:void 0}),Y0=n=>{const{__scopeDialog:r,forceMount:o,children:i,container:c}=n,d=Mn(Gf,r);return f.jsx(c5,{scope:r,forceMount:o,children:v.Children.map(i,m=>f.jsx(Pl,{present:o||d.open,children:f.jsx(Yf,{asChild:!0,container:c,children:m})}))})};Y0.displayName=Gf;var Vs="DialogOverlay",P0=v.forwardRef((n,r)=>{const o=V0(Vs,n.__scopeDialog),{forceMount:i=o.forceMount,...c}=n,d=Mn(Vs,n.__scopeDialog);return d.modal?f.jsx(Pl,{present:i||d.open,children:f.jsx(d5,{...c,ref:r})}):null});P0.displayName=Vs;var u5=Wo("DialogOverlay.RemoveScroll"),d5=v.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,c=Mn(Vs,o);return f.jsx(Pf,{as:u5,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",G0=v.forwardRef((n,r)=>{const o=V0(kr,n.__scopeDialog),{forceMount:i=o.forceMount,...c}=n,d=Mn(kr,n.__scopeDialog);return f.jsx(Pl,{present:i||d.open,children:d.modal?f.jsx(f5,{...c,ref:r}):f.jsx(m5,{...c,ref:r})})});G0.displayName=kr;var f5=v.forwardRef((n,r)=>{const o=Mn(kr,n.__scopeDialog),i=v.useRef(null),c=tt(r,o.contentRef,i);return v.useEffect(()=>{const d=i.current;if(d)return L0(d)},[]),f.jsx(I0,{...n,ref:c,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:ke(n.onCloseAutoFocus,d=>{var m;d.preventDefault(),(m=o.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())})}),m5=v.forwardRef((n,r)=>{const o=Mn(kr,n.__scopeDialog),i=v.useRef(!1),c=v.useRef(!1);return f.jsx(I0,{...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=o.triggerRef.current)==null||h.focus(),d.preventDefault()),i.current=!1,c.current=!1},onInteractOutside:d=>{var y,p;(y=n.onInteractOutside)==null||y.call(n,d),d.defaultPrevented||(i.current=!0,d.detail.originalEvent.type==="pointerdown"&&(c.current=!0));const m=d.target;((p=o.triggerRef.current)==null?void 0:p.contains(m))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&c.current&&d.preventDefault()}})}),I0=v.forwardRef((n,r)=>{const{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:c,onCloseAutoFocus:d,...m}=n,h=Mn(kr,o),y=v.useRef(null),p=tt(r,y);return R0(),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(p5,{titleId:h.titleId}),f.jsx(v5,{contentRef:y,descriptionId:h.descriptionId})]})]})}),If="DialogTitle",X0=v.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,c=Mn(If,o);return f.jsx(Ue.h2,{id:c.titleId,...i,ref:r})});X0.displayName=If;var K0="DialogDescription",Q0=v.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,c=Mn(K0,o);return f.jsx(Ue.p,{id:c.descriptionId,...i,ref:r})});Q0.displayName=K0;var Z0="DialogClose",F0=v.forwardRef((n,r)=>{const{__scopeDialog:o,...i}=n,c=Mn(Z0,o);return f.jsx(Ue.button,{type:"button",...i,ref:r,onClick:ke(n.onClick,()=>c.onOpenChange(!1))})});F0.displayName=Z0;function Xf(n){return n?"open":"closed"}var J0="DialogTitleWarning",[h5,W0]=PC(J0,{contentName:kr,titleName:If,docsSlug:"dialog"}),p5=({titleId:n})=>{const r=W0(J0),o=`\`${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(o))},[o,n]),null},g5="DialogDescriptionWarning",v5=({contentRef:n,descriptionId:r})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${W0(g5).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},eb=H0,tb=q0,nb=Y0,Kf=P0,Qf=G0,Zf=X0,Ff=Q0,cc=F0;const y5=eb,b5=tb,x5=nb,$M=cc,ab=v.forwardRef(({className:n,...r},o)=>f.jsx(Kf,{ref:o,className:le("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...r}));ab.displayName=Kf.displayName;const rb=v.forwardRef(({className:n,children:r,...o},i)=>f.jsxs(x5,{children:[f.jsx(ab,{}),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),...o,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(r0,{className:"h-3.5 w-3.5"}),f.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));rb.displayName=Qf.displayName;const lb=({className:n,...r})=>f.jsx("div",{className:le("flex flex-col space-y-1.5 text-center sm:text-left",n),...r});lb.displayName="DialogHeader";const S5=({className:n,...r})=>f.jsx("div",{className:le("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...r});S5.displayName="DialogFooter";const ob=v.forwardRef(({className:n,...r},o)=>f.jsx(Zf,{ref:o,className:le("text-sm font-semibold leading-none tracking-tight",n),...r}));ob.displayName=Zf.displayName;const ib=v.forwardRef(({className:n,...r},o)=>f.jsx(Ff,{ref:o,className:le("text-[11px] text-muted-foreground",n),...r}));ib.displayName=Ff.displayName;function w5({children:n,open:r,onOpenChange:o,showTrigger:i=!0}){const[c,d]=v.useState(!1),m=r??c,h=v.useCallback(y=>{r===void 0&&d(y),o==null||o(y)},[r,o]);return f.jsxs(y5,{open:m,onOpenChange:h,children:[i&&f.jsx(b5,{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(iT,{className:"h-4 w-4"})})}),f.jsxs(rb,{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(lb,{className:"shrink-0 border-b border-border/60 px-3 py-1.5 sm:px-3.5",children:[f.jsxs(ob,{className:"flex items-center gap-1.5 text-[11px]",children:[f.jsx(KN,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),f.jsx(ib,{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,o]){return Math.min(o,Math.max(r,n))}function sb(n){const r=n+"CollectionProvider",[o,i]=lr(r),[c,d]=o(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 E5=v.createContext(void 0);function Jf(n){const r=v.useContext(E5);return n||r||"ltr"}const N5=["top","right","bottom","left"],nr=Math.min,on=Math.max,Ys=Math.round,As=Math.floor,Jn=n=>({x:n,y:n}),T5={left:"right",right:"left",bottom:"top",top:"bottom"};function gf(n,r,o){return on(n,nr(r,o))}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 C5(n,r,o){o===void 0&&(o=!1);const i=Gl(n),c=tm(n),d=em(c);let m=c==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return r.reference[d]>r.floating[d]&&(m=Ps(m)),[m,Ps(m)]}function R5(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"],A5=["top","bottom"],j5=["bottom","top"];function _5(n,r,o){switch(n){case"top":case"bottom":return o?r?ny:ty:r?ty:ny;case"left":case"right":return r?A5:j5;default:return[]}}function M5(n,r,o,i){const c=Gl(n);let d=_5(wa(n),o==="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 T5[r]+n.slice(r.length)}function O5(n){return{top:0,right:0,bottom:0,left:0,...n}}function cb(n){return typeof n!="number"?O5(n):{top:n,right:n,bottom:n,left:n}}function Gs(n){const{x:r,y:o,width:i,height:c}=n;return{width:i,height:c,top:o,left:r,right:r+i,bottom:o+c,x:r,y:o}}function ay(n,r,o){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*(o&&p?-1:1);break;case"end":N[m]+=w*(o&&p?-1:1);break}return N}async function k5(n,r){var o;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=cb(N),C=h[w?g==="floating"?"reference":"floating":g],R=Gs(await d.getClippingRect({element:(o=await(d.isElement==null?void 0:d.isElement(C)))==null||o?C:C.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(h.floating)),boundary:p,rootBoundary:x,strategy:y})),_=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 D5=50,z5=async(n,r,o)=>{const{placement:i="bottom",strategy:c="absolute",middleware:d=[],platform:m}=o,h=m.detectOverflow?m:{...m,detectOverflow:k5},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<D5&&(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}},L5=n=>({name:"arrow",options:n,async fn(r){const{x:o,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=cb(x),w={x:o,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}}}),U5=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(r){var o,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((o=d.arrow)!=null&&o.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)]:R5(h)),P=T!=="none";!w&&P&&B.push(...M5(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=C5(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 N5.some(r=>n[r]>=0)}const B5=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(r){const{rects:o,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,o.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:ly(h)}}}case"escaped":{const m=await i.detectOverflow(r,{...d,altBoundary:!0}),h=ry(m,o.floating);return{data:{escapedOffsets:h,escaped:ly(h)}}}default:return{}}}}},ub=new Set(["left","top"]);async function H5(n,r){const{placement:o,platform:i,elements:c}=n,d=await(i.isRTL==null?void 0:i.isRTL(c.floating)),m=wa(o),h=Gl(o),y=Zn(o)==="y",p=ub.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 $5=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(r){var o,i;const{x:c,y:d,placement:m,middlewareData:h}=r,y=await H5(r,n);return m===((o=h.offset)==null?void 0:o.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:c+y.x,y:d+y.y,data:{...y,placement:m}}}}},q5=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(r){const{x:o,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:o,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-o,y:C.y-i,enabled:{[N]:m,[w]:h}}}}}},V5=function(n){return n===void 0&&(n={}),{options:n,fn(r){const{x:o,y:i,placement:c,rects:d,middlewareData:m}=r,{offset:h=0,mainAxis:y=!0,crossAxis:p=!0}=Sa(n,r),x={x:o,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=ub.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}}}},Y5=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(r){var o,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((o=r.middlewareData.shift)!=null&&o.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 db(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=(db(n)?n.ownerDocument:n.document)||window.document)==null?void 0:r.documentElement}function db(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:o,overflowY:i,display:c}=_n(n);return/auto|scroll|overlay|hidden|clip/.test(r+i+o)&&c!=="inline"&&c!=="contents"}function P5(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 G5=/transform|translate|scale|rotate|perspective|filter/,I5=/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))||G5.test(r.willChange||"")||I5.test(r.contain||"")}function X5(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 fb(n){const r=ar(n);return Hl(r)?n.ownerDocument?n.ownerDocument.body:n.body:Ea(r)&&ri(r)?r:fb(r)}function ei(n,r,o){var i;r===void 0&&(r=[]),o===void 0&&(o=!0);const c=fb(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&&o?ei(h):[])}else return r.concat(c,ei(c,[],o))}function yf(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function mb(n){const r=_n(n);let o=parseFloat(r.width)||0,i=parseFloat(r.height)||0;const c=Ea(n),d=c?n.offsetWidth:o,m=c?n.offsetHeight:i,h=Ys(o)!==d||Ys(i)!==m;return h&&(o=d,i=m),{width:o,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 o=r.getBoundingClientRect(),{width:i,height:c,$:d}=mb(r);let m=(d?Ys(o.width):o.width)/i,h=(d?Ys(o.height):o.height)/c;return(!m||!Number.isFinite(m))&&(m=1),(!h||!Number.isFinite(h))&&(h=1),{x:m,y:h}}const K5=Jn(0);function hb(n){const r=sn(n);return!am()||!r.visualViewport?K5:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function Q5(n,r,o){return r===void 0&&(r=!1),!o||r&&o!==sn(n)?!1:r}function Dr(n,r,o,i){r===void 0&&(r=!1),o===void 0&&(o=!1);const c=n.getBoundingClientRect(),d=rm(n);let m=Jn(1);r&&(i?jn(i)&&(m=Ll(i)):m=Ll(n));const h=Q5(d,o,i)?hb(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 o=fc(n).scrollLeft;return r?r.left+o:Dr(ea(n)).left+o}function pb(n,r){const o=n.getBoundingClientRect(),i=o.left+r.scrollLeft-mc(n,o),c=o.top+r.scrollTop;return{x:i,y:c}}function Z5(n){let{elements:r,rect:o,offsetParent:i,strategy:c}=n;const d=c==="fixed",m=ea(i),h=r?dc(r.floating):!1;if(i===m||h&&d)return o;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?pb(m,y):Jn(0);return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-y.scrollLeft*p.x+x.x+w.x,y:o.y*p.y-y.scrollTop*p.y+x.y+w.y}}function F5(n){return Array.from(n.getClientRects())}function J5(n){const r=ea(n),o=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=-o.scrollLeft+mc(n);const h=-o.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 W5(n,r){const o=sn(n),i=ea(n),c=o.visualViewport;let d=i.clientWidth,m=i.clientHeight,h=0,y=0;if(c){d=c.width,m=c.height;const x=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 eA(n,r){const o=Dr(n,!0,r==="fixed"),i=o.top+n.clientTop,c=o.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,o){let i;if(r==="viewport")i=W5(n,o);else if(r==="document")i=J5(ea(n));else if(jn(r))i=eA(r,o);else{const c=hb(n);i={x:r.x-c.x,y:r.y-c.y,width:r.width,height:r.height}}return Gs(i)}function gb(n,r){const o=ar(n);return o===r||!jn(o)||Hl(o)?!1:_n(o).position==="fixed"||gb(o,r)}function tA(n,r){const o=r.get(n);if(o)return o;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&&gb(n,m))?i=i.filter(x=>x!==m):c=h,m=ar(m)}return r.set(n,i),i}function nA(n){let{element:r,boundary:o,rootBoundary:i,strategy:c}=n;const m=[...o==="clippingAncestors"?dc(r)?[]:tA(r,this._c):[].concat(o),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 aA(n){const{width:r,height:o}=mb(n);return{width:r,height:o}}function rA(n,r,o){const i=Ea(r),c=ea(r),d=o==="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?pb(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 o=n.offsetParent;return ea(n)===o&&(o=o.ownerDocument.body),o}function vb(n,r){const o=sn(n);if(dc(n))return o;if(!Ea(n)){let c=ar(n);for(;c&&!Hl(c);){if(jn(c)&&!Zd(c))return c;c=ar(c)}return o}let i=cy(n,r);for(;i&&P5(i)&&Zd(i);)i=cy(i,r);return i&&Hl(i)&&Zd(i)&&!nm(i)?o:i||X5(n)||o}const lA=async function(n){const r=this.getOffsetParent||vb,o=this.getDimensions,i=await o(n.floating);return{reference:rA(n.reference,await r(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function oA(n){return _n(n).direction==="rtl"}const iA={convertOffsetParentRelativeRectToViewportRelativeRect:Z5,getDocumentElement:ea,getClippingRect:nA,getOffsetParent:vb,getElementRects:lA,getClientRects:F5,getDimensions:aA,getScale:Ll,isElement:jn,isRTL:oA};function yb(n,r){return n.x===r.x&&n.y===r.y&&n.width===r.width&&n.height===r.height}function sA(n,r){let o=null,i;const c=ea(n);function d(){var h;clearTimeout(i),(h=o)==null||h.disconnect(),o=null}function m(h,y){h===void 0&&(h=!1),y===void 0&&(y=1),d();const p=n.getBoundingClientRect(),{left:x,top:g,width:w,height:N}=p;if(h||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&&!yb(p,n.getBoundingClientRect())&&m(),z=!1}try{o=new IntersectionObserver(B,{...O,root:c.ownerDocument})}catch{o=new IntersectionObserver(B,O)}o.observe(n)}return m(!0),d}function cA(n,r,o,i){i===void 0&&(i={});const{ancestorScroll:c=!0,ancestorResize:d=!0,elementResize:m=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:y=!1}=i,p=rm(n),x=c||d?[...p?ei(p):[],...r?ei(r):[]]:[];x.forEach(R=>{c&&R.addEventListener("scroll",o,{passive:!0}),d&&R.addEventListener("resize",o)});const g=p&&h?sA(p,o):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)})),o()}),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&&!yb(E,R)&&o(),E=R,T=requestAnimationFrame(C)}return o(),()=>{var R;x.forEach(_=>{c&&_.removeEventListener("scroll",o),d&&_.removeEventListener("resize",o)}),g==null||g(),(R=N)==null||R.disconnect(),N=null,y&&cancelAnimationFrame(T)}}const uA=$5,dA=q5,fA=U5,mA=Y5,hA=B5,uy=L5,pA=V5,gA=(n,r,o)=>{const i=new Map,c={platform:iA,...o},d={...c.platform,_c:i};return z5(n,r,{...c,platform:d})};var vA=typeof document<"u",yA=function(){},Ds=vA?v.useLayoutEffect:yA;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 o,i,c;if(n&&r&&typeof n=="object"){if(Array.isArray(n)){if(o=n.length,o!==r.length)return!1;for(i=o;i--!==0;)if(!Is(n[i],r[i]))return!1;return!0}if(c=Object.keys(n),o=c.length,o!==Object.keys(r).length)return!1;for(i=o;i--!==0;)if(!{}.hasOwnProperty.call(r,c[i]))return!1;for(i=o;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 bb(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function dy(n,r){const o=bb(n);return Math.round(r*o)/o}function Fd(n){const r=v.useRef(n);return Ds(()=>{r.current=n}),r}function bA(n){n===void 0&&(n={});const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:c,elements:{reference:d,floating:m}={},transform:h=!0,whileElementsMounted:y,open:p}=n,[x,g]=v.useState({x:0,y:0,strategy:o,placement: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:o,middleware:w};fe.current&&(Z.platform=fe.current),gA(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,o,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:o,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)",...bb(M.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:de,top:F}},[o,h,M.floating,x.x,x.y]);return v.useMemo(()=>({...x,update:ie,refs:oe,elements:M,floatingStyles:V}),[x,ie,oe,M,V])}const xA=n=>{function r(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:n,fn(o){const{element:i,padding:c}=typeof n=="function"?n(o):n;return i&&r(i)?i.current!=null?uy({element:i.current,padding:c}).fn(o):{}:i?uy({element:i,padding:c}).fn(o):{}}}},SA=(n,r)=>{const o=uA(n);return{name:o.name,fn:o.fn,options:[n,r]}},wA=(n,r)=>{const o=dA(n);return{name:o.name,fn:o.fn,options:[n,r]}},EA=(n,r)=>({fn:pA(n).fn,options:[n,r]}),NA=(n,r)=>{const o=fA(n);return{name:o.name,fn:o.fn,options:[n,r]}},TA=(n,r)=>{const o=mA(n);return{name:o.name,fn:o.fn,options:[n,r]}},CA=(n,r)=>{const o=hA(n);return{name:o.name,fn:o.fn,options:[n,r]}},RA=(n,r)=>{const o=xA(n);return{name:o.name,fn:o.fn,options:[n,r]}};var AA="Arrow",xb=v.forwardRef((n,r)=>{const{children:o,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?o:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});xb.displayName=AA;var jA=xb;function Sb(n){const[r,o]=v.useState(void 0);return Lt(()=>{if(n){o({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(c=>{if(!Array.isArray(c)||!c.length)return;const d=c[0];let m,h;if("borderBoxSize"in d){const y=d.borderBoxSize,p=Array.isArray(y)?y[0]:y;m=p.inlineSize,h=p.blockSize}else m=n.offsetWidth,h=n.offsetHeight;o({width:m,height:h})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else o(void 0)},[n]),r}var lm="Popper",[wb,Eb]=lr(lm),[_A,Nb]=wb(lm),Tb=n=>{const{__scopePopper:r,children:o}=n,[i,c]=v.useState(null);return f.jsx(_A,{scope:r,anchor:i,onAnchorChange:c,children:o})};Tb.displayName=lm;var Cb="PopperAnchor",Rb=v.forwardRef((n,r)=>{const{__scopePopper:o,virtualRef:i,...c}=n,d=Nb(Cb,o),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})});Rb.displayName=Cb;var om="PopperContent",[MA,OA]=wb(om),Ab=v.forwardRef((n,r)=>{var ee,ce,J,ve,be,Se;const{__scopePopper:o,side:i="bottom",sideOffset:c=0,align:d="center",alignOffset:m=0,arrowPadding:h=0,avoidCollisions:y=!0,collisionBoundary:p=[],collisionPadding:x=0,sticky:g="partial",hideWhenDetached:w=!1,updatePositionStrategy:N="optimized",onPlaced:T,...E}=n,C=Nb(om,o),[R,_]=v.useState(null),O=tt(r,He=>_(He)),[z,B]=v.useState(null),P=Sb(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(DA),altBoundary:me},{refs:ue,floatingStyles:oe,placement:M,isPositioned:V,middlewareData:Z}=bA({strategy:"fixed",placement:ne,whileElementsMounted:(...He)=>cA(...He,{animationFrame:N==="always"}),elements:{reference:C.anchor},middleware:[SA({mainAxis:c+$,alignmentAxis:m}),y&&wA({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?EA():void 0,...ie}),y&&NA({...ie}),TA({...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&&RA({element:z,padding:h}),zA({arrowWidth:q,arrowHeight:$}),w&&CA({strategy:"referenceHidden",...ie})]}),[de,F]=Mb(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(MA,{scope:o,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"}})})})});Ab.displayName=om;var jb="PopperArrow",kA={top:"bottom",right:"left",bottom:"top",left:"right"},_b=v.forwardRef(function(r,o){const{__scopePopper:i,...c}=r,d=OA(jb,i),m=kA[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(jA,{...c,ref:o,style:{...c.style,display:"block"}})})});_b.displayName=jb;function DA(n){return n!==null}var zA=n=>({name:"transformOrigin",options:n,fn(r){var C,R,_;const{placement:o,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]=Mb(o),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 Mb(n){const[r,o="center"]=n.split("-");return[r,o]}var LA=Tb,UA=Rb,BA=Ab,HA=_b;function Ob(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 kb=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"}),$A="VisuallyHidden",qA=v.forwardRef((n,r)=>f.jsx(Ue.span,{...n,ref:r,style:{...kb,...n.style}}));qA.displayName=$A;var VA=[" ","Enter","ArrowUp","ArrowDown"],YA=[" ","Enter"],zr="Select",[hc,pc,PA]=sb(zr),[Xl]=lr(zr,[PA,Eb]),gc=Eb(),[GA,or]=Xl(zr),[IA,XA]=Xl(zr),Db=n=>{const{__scopeSelect:r,children:o,open:i,defaultOpen:c,onOpenChange:d,value:m,defaultValue:h,onValueChange:y,dir:p,name:x,autoComplete:g,disabled:w,required:N,form:T}=n,E=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(LA,{...E,children:f.jsxs(GA,{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(IA,{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:o})}),me?f.jsxs(rx,{"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]})})};Db.displayName=zr;var zb="SelectTrigger",Lb=v.forwardRef((n,r)=>{const{__scopeSelect:o,disabled:i=!1,...c}=n,d=gc(o),m=or(zb,o),h=m.disabled||i,y=tt(r,m.onTriggerChange),p=pc(o),x=v.useRef("touch"),[g,w,N]=ox(E=>{const C=p().filter(O=>!O.disabled),R=C.find(O=>O.value===m.value),_=ix(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(UA,{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":lx(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===" ")&&VA.includes(E.key)&&(T(),E.preventDefault())})})})});Lb.displayName=zb;var Ub="SelectValue",Bb=v.forwardRef((n,r)=>{const{__scopeSelect:o,className:i,style:c,children:d,placeholder:m="",...h}=n,y=or(Ub,o),{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:lx(y.value)?f.jsx(f.Fragment,{children:m}):d})});Bb.displayName=Ub;var KA="SelectIcon",Hb=v.forwardRef((n,r)=>{const{__scopeSelect:o,children:i,...c}=n;return f.jsx(Ue.span,{"aria-hidden":!0,...c,ref:r,children:i||"▼"})});Hb.displayName=KA;var QA="SelectPortal",$b=n=>f.jsx(Yf,{asChild:!0,...n});$b.displayName=QA;var Lr="SelectContent",qb=v.forwardRef((n,r)=>{const o=or(Lr,n.__scopeSelect),[i,c]=v.useState();if(Lt(()=>{c(new DocumentFragment)},[]),!o.open){const d=i;return d?ai.createPortal(f.jsx(Vb,{scope:n.__scopeSelect,children:f.jsx(hc.Slot,{scope:n.__scopeSelect,children:f.jsx("div",{children:n.children})})}),d):null}return f.jsx(Yb,{...n,ref:r})});qb.displayName=Lr;var Rn=10,[Vb,ir]=Xl(Lr),ZA="SelectContentImpl",FA=Wo("SelectContent.RemoveScroll"),Yb=v.forwardRef((n,r)=>{const{__scopeSelect:o,position:i="item-aligned",onCloseAutoFocus:c,onEscapeKeyDown:d,onPointerDownOutside:m,side:h,sideOffset:y,align:p,alignOffset:x,arrowPadding:g,collisionBoundary:w,collisionPadding:N,sticky:T,hideWhenDetached:E,avoidCollisions:C,...R}=n,_=or(Lr,o),[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(o),[ie,ue]=v.useState(!1),oe=v.useRef(!1);v.useEffect(()=>{if(O)return L0(O)},[O]),R0();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]=ox(ee=>{const ce=me().filter(be=>!be.disabled),J=ce.find(be=>be.ref.current===document.activeElement),ve=ix(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:Pb,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(Vb,{scope:o,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:FA,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()}})})})})})})});Yb.displayName=ZA;var JA="SelectItemAlignedPosition",Pb=v.forwardRef((n,r)=>{const{__scopeSelect:o,onPlaced:i,...c}=n,d=or(Lr,o),m=ir(Lr,o),[h,y]=v.useState(null),[p,x]=v.useState(null),g=tt(r,q=>x(q)),w=pc(o),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(ej,{scope:o,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}})})})});Pb.displayName=JA;var WA="SelectPopperPosition",bf=v.forwardRef((n,r)=>{const{__scopeSelect:o,align:i="start",collisionPadding:c=Rn,...d}=n,m=gc(o);return f.jsx(BA,{...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=WA;var[ej,im]=Xl(Lr,{}),xf="SelectViewport",Gb=v.forwardRef((n,r)=>{const{__scopeSelect:o,nonce:i,...c}=n,d=ir(xf,o),m=im(xf,o),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:o,children:f.jsx(Ue.div,{"data-radix-select-viewport":"",role:"presentation",...c,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...c.style},onScroll: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})})})]})});Gb.displayName=xf;var Ib="SelectGroup",[tj,nj]=Xl(Ib),aj=v.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n,c=Wa();return f.jsx(tj,{scope:o,id:c,children:f.jsx(Ue.div,{role:"group","aria-labelledby":c,...i,ref:r})})});aj.displayName=Ib;var Xb="SelectLabel",Kb=v.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n,c=nj(Xb,o);return f.jsx(Ue.div,{id:c.id,...i,ref:r})});Kb.displayName=Xb;var Xs="SelectItem",[rj,Qb]=Xl(Xs),Zb=v.forwardRef((n,r)=>{const{__scopeSelect:o,value:i,disabled:c=!1,textValue:d,...m}=n,h=or(Xs,o),y=ir(Xs,o),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(rj,{scope:o,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:o,value:i,disabled:c,textValue:x,children:f.jsx(Ue.div,{role:"option","aria-labelledby":E,"data-highlighted":w?"":void 0,"aria-selected":p&&w,"data-state":p?"checked":"unchecked","aria-disabled":c||void 0,"data-disabled":c?"":void 0,tabIndex:c?void 0:-1,...m,ref:T,onFocus: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===" "||(YA.includes(_.key)&&R(),_.key===" "&&_.preventDefault())})})})})});Zb.displayName=Xs;var Ko="SelectItemText",Fb=v.forwardRef((n,r)=>{const{__scopeSelect:o,className:i,style:c,...d}=n,m=or(Ko,o),h=ir(Ko,o),y=Qb(Ko,o),p=XA(Ko,o),[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]})});Fb.displayName=Ko;var Jb="SelectItemIndicator",Wb=v.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n;return Qb(Jb,o).isSelected?f.jsx(Ue.span,{"aria-hidden":!0,...i,ref:r}):null});Wb.displayName=Jb;var Sf="SelectScrollUpButton",ex=v.forwardRef((n,r)=>{const o=ir(Sf,n.__scopeSelect),i=im(Sf,n.__scopeSelect),[c,d]=v.useState(!1),m=tt(r,i.onScrollButtonChange);return Lt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=y.scrollTop>0;d(p)};const y=o.viewport;return h(),y.addEventListener("scroll",h),()=>y.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?f.jsx(nx,{...n,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:y}=o;h&&y&&(h.scrollTop=h.scrollTop-y.offsetHeight)}}):null});ex.displayName=Sf;var wf="SelectScrollDownButton",tx=v.forwardRef((n,r)=>{const o=ir(wf,n.__scopeSelect),i=im(wf,n.__scopeSelect),[c,d]=v.useState(!1),m=tt(r,i.onScrollButtonChange);return Lt(()=>{if(o.viewport&&o.isPositioned){let h=function(){const p=y.scrollHeight-y.clientHeight,x=Math.ceil(y.scrollTop)<p;d(x)};const y=o.viewport;return h(),y.addEventListener("scroll",h),()=>y.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),c?f.jsx(nx,{...n,ref:m,onAutoScroll:()=>{const{viewport:h,selectedItem:y}=o;h&&y&&(h.scrollTop=h.scrollTop+y.offsetHeight)}}):null});tx.displayName=wf;var nx=v.forwardRef((n,r)=>{const{__scopeSelect:o,onAutoScroll:i,...c}=n,d=ir("SelectScrollButton",o),m=v.useRef(null),h=pc(o),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()})})}),lj="SelectSeparator",ax=v.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n;return f.jsx(Ue.div,{"aria-hidden":!0,...i,ref:r})});ax.displayName=lj;var Ef="SelectArrow",oj=v.forwardRef((n,r)=>{const{__scopeSelect:o,...i}=n,c=gc(o),d=or(Ef,o),m=ir(Ef,o);return d.open&&m.position==="popper"?f.jsx(HA,{...c,...i,ref:r}):null});oj.displayName=Ef;var ij="SelectBubbleInput",rx=v.forwardRef(({__scopeSelect:n,value:r,...o},i)=>{const c=v.useRef(null),d=tt(i,c),m=Ob(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,{...o,style:{...kb,...o.style},ref:d,defaultValue:r})});rx.displayName=ij;function lx(n){return n===""||n===void 0}function ox(n){const r=tr(n),o=v.useRef(""),i=v.useRef(0),c=v.useCallback(m=>{const h=o.current+m;r(h),(function y(p){o.current=p,window.clearTimeout(i.current),p!==""&&(i.current=window.setTimeout(()=>y(""),1e3))})(h)},[r]),d=v.useCallback(()=>{o.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[o,c,d]}function ix(n,r,o){const c=r.length>1&&Array.from(r).every(p=>p===r[0])?r[0]:r,d=o?n.indexOf(o):-1;let m=sj(n,Math.max(d,0));c.length===1&&(m=m.filter(p=>p!==o));const y=m.find(p=>p.textValue.toLowerCase().startsWith(c.toLowerCase()));return y!==o?y:void 0}function sj(n,r){return n.map((o,i)=>n[(r+i)%n.length])}var cj=Db,sx=Lb,uj=Bb,dj=Hb,fj=$b,cx=qb,mj=Gb,ux=Kb,dx=Zb,hj=Fb,pj=Wb,fx=ex,mx=tx,hx=ax;const px=cj,gx=uj,sm=v.forwardRef(({className:n,children:r,...o},i)=>f.jsxs(sx,{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),...o,children:[r,f.jsx(dj,{asChild:!0,children:f.jsx(Jo,{className:"h-4 w-4 opacity-50"})})]}));sm.displayName=sx.displayName;const vx=v.forwardRef(({className:n,...r},o)=>f.jsx(fx,{ref:o,className:le("flex cursor-default items-center justify-center py-1",n),...r,children:f.jsx(jN,{className:"h-4 w-4"})}));vx.displayName=fx.displayName;const yx=v.forwardRef(({className:n,...r},o)=>f.jsx(mx,{ref:o,className:le("flex cursor-default items-center justify-center py-1",n),...r,children:f.jsx(Jo,{className:"h-4 w-4"})}));yx.displayName=mx.displayName;const cm=v.forwardRef(({className:n,children:r,position:o="popper",...i},c)=>f.jsx(fj,{children:f.jsxs(cx,{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",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:o,...i,children:[f.jsx(vx,{}),f.jsx(mj,{className:le("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:r}),f.jsx(yx,{})]})}));cm.displayName=cx.displayName;const gj=v.forwardRef(({className:n,...r},o)=>f.jsx(ux,{ref:o,className:le("py-1 pl-6 pr-2 text-[10px] font-semibold",n),...r}));gj.displayName=ux.displayName;const Dl=v.forwardRef(({className:n,children:r,...o},i)=>f.jsxs(dx,{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),...o,children:[f.jsx("span",{className:"absolute left-1.5 flex h-3.5 w-3.5 items-center justify-center",children:f.jsx(pj,{children:f.jsx(Hs,{className:"h-3.5 w-3.5"})})}),f.jsx(hj,{children:r})]}));Dl.displayName=dx.displayName;const vj=v.forwardRef(({className:n,...r},o)=>f.jsx(hx,{ref:o,className:le("-mx-1 my-1 h-px bg-muted",n),...r}));vj.displayName=hx.displayName;var Jd="rovingFocusGroup.onEntryFocus",yj={bubbles:!1,cancelable:!0},li="RovingFocusGroup",[Nf,bx,bj]=sb(li),[xj,xx]=lr(li,[bj]),[Sj,wj]=xj(li),Sx=v.forwardRef((n,r)=>f.jsx(Nf.Provider,{scope:n.__scopeRovingFocusGroup,children:f.jsx(Nf.Slot,{scope:n.__scopeRovingFocusGroup,children:f.jsx(Ej,{...n,ref:r})})}));Sx.displayName=li;var Ej=v.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:c=!1,dir:d,currentTabStopId:m,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:y,onEntryFocus:p,preventScrollOnEntryFocus:x=!1,...g}=n,w=v.useRef(null),N=tt(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=bx(o),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(Sj,{scope:o,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,yj);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);Nx(oe,x)}}B.current=!1}),onBlur:ke(n.onBlur,()=>_(!1))})})}),wx="RovingFocusGroupItem",Ex=v.forwardRef((n,r)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:c=!1,tabStopId:d,children:m,...h}=n,y=Wa(),p=d||y,x=wj(wx,o),g=x.currentTabStopId===p,w=bx(o),{onFocusableItemAdd:N,onFocusableItemRemove:T,currentTabStopId:E}=x;return v.useEffect(()=>{if(i)return N(),()=>T()},[i,N,T]),f.jsx(Nf.ItemSlot,{scope:o,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=Cj(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?Rj(O,z+1):O.slice(z+1)}setTimeout(()=>Nx(O))}}),children:typeof m=="function"?m({isCurrentTabStop:g,hasTabStop:E!=null}):m})})});Ex.displayName=wx;var Nj={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Tj(n,r){return r!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function Cj(n,r,o){const i=Tj(n.key,o);if(!(r==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(r==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return Nj[i]}function Nx(n,r=!1){const o=document.activeElement;for(const i of n)if(i===o||(i.focus({preventScroll:r}),document.activeElement!==o))return}function Rj(n,r){return n.map((o,i)=>n[(r+i)%n.length])}var Aj=Sx,jj=Ex,vc="Tabs",[_j]=lr(vc,[xx]),Tx=xx(),[Mj,um]=_j(vc),Cx=v.forwardRef((n,r)=>{const{__scopeTabs:o,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(Mj,{scope:o,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})})});Cx.displayName=vc;var Rx="TabsList",Ax=v.forwardRef((n,r)=>{const{__scopeTabs:o,loop:i=!0,...c}=n,d=um(Rx,o),m=Tx(o);return f.jsx(Aj,{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})})});Ax.displayName=Rx;var jx="TabsTrigger",_x=v.forwardRef((n,r)=>{const{__scopeTabs:o,value:i,disabled:c=!1,...d}=n,m=um(jx,o),h=Tx(o),y=kx(m.baseId,i),p=Dx(m.baseId,i),x=i===m.value;return f.jsx(jj,{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)})})})});_x.displayName=jx;var Mx="TabsContent",Ox=v.forwardRef((n,r)=>{const{__scopeTabs:o,value:i,forceMount:c,children:d,...m}=n,h=um(Mx,o),y=kx(h.baseId,i),p=Dx(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})})});Ox.displayName=Mx;function kx(n,r){return`${n}-trigger-${r}`}function Dx(n,r){return`${n}-content-${r}`}var Oj=Cx,zx=Ax,Lx=_x,Ux=Ox;const kj=Oj,Bx=v.forwardRef(({className:n,...r},o)=>f.jsx(zx,{ref:o,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}));Bx.displayName=zx.displayName;const zs=v.forwardRef(({className:n,...r},o)=>f.jsx(Lx,{ref:o,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=Lx.displayName;const Ks=v.forwardRef(({className:n,...r},o)=>f.jsx(Ux,{ref:o,className:le("mt-2 ring-offset-background data-[state=inactive]:hidden focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n),...r}));Ks.displayName=Ux.displayName;var Hx="AlertDialog",[Dj]=lr(Hx,[B0]),Na=B0(),$x=n=>{const{__scopeAlertDialog:r,...o}=n,i=Na(r);return f.jsx(eb,{...i,...o,modal:!0})};$x.displayName=Hx;var zj="AlertDialogTrigger",qx=v.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,c=Na(o);return f.jsx(tb,{...c,...i,ref:r})});qx.displayName=zj;var Lj="AlertDialogPortal",Vx=n=>{const{__scopeAlertDialog:r,...o}=n,i=Na(r);return f.jsx(nb,{...i,...o})};Vx.displayName=Lj;var Uj="AlertDialogOverlay",Yx=v.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,c=Na(o);return f.jsx(Kf,{...c,...i,ref:r})});Yx.displayName=Uj;var Ul="AlertDialogContent",[Bj,Hj]=Dj(Ul),$j=JC("AlertDialogContent"),Px=v.forwardRef((n,r)=>{const{__scopeAlertDialog:o,children:i,...c}=n,d=Na(o),m=v.useRef(null),h=tt(r,m),y=v.useRef(null);return f.jsx(h5,{contentName:Ul,titleName:Gx,docsSlug:"alert-dialog",children:f.jsx(Bj,{scope:o,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($j,{children:i}),f.jsx(Vj,{contentRef:m})]})})})});Px.displayName=Ul;var Gx="AlertDialogTitle",Ix=v.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,c=Na(o);return f.jsx(Zf,{...c,...i,ref:r})});Ix.displayName=Gx;var Xx="AlertDialogDescription",Kx=v.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,c=Na(o);return f.jsx(Ff,{...c,...i,ref:r})});Kx.displayName=Xx;var qj="AlertDialogAction",Qx=v.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,c=Na(o);return f.jsx(cc,{...c,...i,ref:r})});Qx.displayName=qj;var Zx="AlertDialogCancel",Fx=v.forwardRef((n,r)=>{const{__scopeAlertDialog:o,...i}=n,{cancelRef:c}=Hj(Zx,o),d=Na(o),m=tt(r,c);return f.jsx(cc,{...d,...i,ref:m})});Fx.displayName=Zx;var Vj=({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 \`${Xx}\` 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},Yj=$x,Pj=qx,Gj=Vx,Jx=Yx,Wx=Px,e1=Qx,t1=Fx,n1=Ix,a1=Kx;const Tf=Yj,Cf=Pj,Ij=Gj,r1=v.forwardRef(({className:n,...r},o)=>f.jsx(Jx,{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:o}));r1.displayName=Jx.displayName;const Qs=v.forwardRef(({className:n,...r},o)=>f.jsxs(Ij,{children:[f.jsx(r1,{}),f.jsx(Wx,{ref:o,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=Wx.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},o)=>f.jsx(n1,{ref:o,className:le("text-sm font-semibold",n),...r}));Js.displayName=n1.displayName;const Ws=v.forwardRef(({className:n,...r},o)=>f.jsx(a1,{ref:o,className:le("text-[11px] text-muted-foreground",n),...r}));Ws.displayName=a1.displayName;const ec=v.forwardRef(({className:n,...r},o)=>f.jsx(e1,{ref:o,className:le($f(),n),...r}));ec.displayName=e1.displayName;const tc=v.forwardRef(({className:n,...r},o)=>f.jsx(t1,{ref:o,className:le($f({variant:"outline"}),"mt-2 sm:mt-0",n),...r}));tc.displayName=t1.displayName;const Xj={online:"bg-emerald-500",busy:"bg-amber-500",offline:"bg-destructive"};function Kj({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",Xj[n])})]})}function Qj({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 l1={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 qM({status:n,size:r="default"}){const o=l1[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:o.variant,className:le("rounded-sm font-medium shadow-none",i,o.className),children:[f.jsx("span",{className:le("rounded-full",o.dotClass)}),n]})}function VM({status:n,isNative:r=!1,size:o="default",className:i}){const c=l1[n],d=[n,r?"native":null].filter(Boolean).join(", "),m=o==="compact"?"h-1.5 w-1.5":"h-2 w-2";return f.jsxs("span",{className:le("inline-flex shrink-0 items-center gap-1",i),title:d,"aria-label":d,children:[f.jsx("span",{className:le("rounded-full",m,c.dotClass),title:n}),r&&f.jsx("span",{className:le("rounded-full bg-sky-500",m),title:"native"})]})}const Zj={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function YM({priority:n}){const r=Zj[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 Fj(n){return[{key:"workspace",label:"Workspace",value:n==null?void 0:n.workspace},{key:"node",label:"Node app",value:n==null?void 0:n.node},{key:"core",label:"Core",value:n==null?void 0:n.core},{key:"dashboard",label:"Dashboard",value:n==null?void 0:n.dashboard},{key:"api",label:"API",value:n==null?void 0:n.api}].filter(o=>o.value)}function _l({label:n,value:r,mono:o=!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:o?"mt-0.5 break-all font-mono text-[11px] text-foreground":"mt-0.5 break-all text-[11px] text-foreground",children:r})]})}function Jj({formatDateTime:n,viewInfo:r}){var i,c,d,m,h,y,p,x;const o=Fj(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(SN,{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($N,{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(IN,{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:o.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",[Wj]=lr(yc),[e3,dm]=Wj(yc);function t3(n){const{__scopeCheckbox:r,checked:o,children:i,defaultChecked:c,disabled:d,form:m,name:h,onCheckedChange:y,required:p,value:x="on",internal_do_not_use_render:g}=n,[w,N]=Bl({prop:o,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(e3,{scope:r,...z,children:n3(g)?g(z):i})}var o1="CheckboxTrigger",i1=v.forwardRef(({__scopeCheckbox:n,onKeyDown:r,onClick:o,...i},c)=>{const{control:d,value:m,disabled:h,checked:y,required:p,setControl:x,setChecked:g,hasConsumerStoppedPropagationRef:w,isFormControl:N,bubbleInput:T}=dm(o1,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":f1(y),"data-disabled":h?"":void 0,disabled:h,value:m,...i,ref:E,onKeyDown:ke(r,R=>{R.key==="Enter"&&R.preventDefault()}),onClick:ke(o,R=>{g(_=>er(_)?!0:!_),T&&N&&(w.current=R.isPropagationStopped(),w.current||R.stopPropagation())})})});i1.displayName=o1;var fm=v.forwardRef((n,r)=>{const{__scopeCheckbox:o,name:i,checked:c,defaultChecked:d,required:m,disabled:h,value:y,onCheckedChange:p,form:x,...g}=n;return f.jsx(t3,{__scopeCheckbox:o,checked:c,defaultChecked:d,disabled:h,required:m,onCheckedChange:p,name:i,form:x,value:y,internal_do_not_use_render:({isFormControl:w})=>f.jsxs(f.Fragment,{children:[f.jsx(i1,{...g,ref:r,__scopeCheckbox:o}),w&&f.jsx(d1,{__scopeCheckbox:o})]})})});fm.displayName=yc;var s1="CheckboxIndicator",c1=v.forwardRef((n,r)=>{const{__scopeCheckbox:o,forceMount:i,...c}=n,d=dm(s1,o);return f.jsx(Pl,{present:i||er(d.checked)||d.checked===!0,children:f.jsx(Ue.span,{"data-state":f1(d.checked),"data-disabled":d.disabled?"":void 0,...c,ref:r,style:{pointerEvents:"none",...n.style}})})});c1.displayName=s1;var u1="CheckboxBubbleInput",d1=v.forwardRef(({__scopeCheckbox:n,...r},o)=>{const{control:i,hasConsumerStoppedPropagationRef:c,checked:d,defaultChecked:m,required:h,disabled:y,name:p,value:x,form:g,bubbleInput:w,setBubbleInput:N}=dm(u1,n),T=tt(o,N),E=Ob(d),C=Sb(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%)"}})});d1.displayName=u1;function n3(n){return typeof n=="function"}function er(n){return n==="indeterminate"}function f1(n){return er(n)?"indeterminate":n?"checked":"unchecked"}const m1=v.forwardRef(({className:n,...r},o)=>f.jsx(fm,{ref:o,className:le("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",n),...r,children:f.jsx(c1,{className:le("flex items-center justify-center text-current"),children:f.jsx(Hs,{className:"h-3.5 w-3.5"})})}));m1.displayName=fm.displayName;const mm=v.forwardRef(({className:n,type:r,...o},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,...o}));mm.displayName="Input";const fy=["queued","running"];function a3(n){return n.map(r=>`${r.id}:${r.name}`).join("\0")}function r3(n){return n==="claude"||n==="codex"||n==="copilot"}function h1(n){var o;if(n.kind!=="agent.upgrade")return null;const r=(o=n.payload)==null?void 0:o.agent;return r3(r)?`${n.nodeId}:${r}`:null}function l3(n){return n.status==="succeeded"||n.status==="failed"}async function p1(n,r={}){const o=r.getOperation??LE,i=r.pollIntervalMs??2e3,c=r.timeoutMs??24e4,d=Date.now()+c;let m=n;for(;!l3(m)&&Date.now()<d;)await i3(i),m=await o(n.id);return m}async function o3(n,r=UE){const o=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)||o.size>0&&!o.has(d.nodeId))continue;const m=h1(d);if(!m)continue;const h=c.get(m);(!h||d.updatedAt>h.updatedAt)&&c.set(m,d)}return c}function i3(n){return new Promise(r=>setTimeout(r,n))}const s3=1500,c3=1e3,u3=9e4;async function g1(n={}){const r=n.fetchHealth??d3,o=n.initialDelayMs??s3,i=n.pollIntervalMs??c3,c=n.previousPid,d=n.reload??(()=>window.location.reload()),m=n.sleep??m3,h=n.timeoutMs??u3,y=Date.now()+h;let p=!1;for(o>0&&await m(o);Date.now()<=y;){const x=f3(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 d3(){try{const n=await fetch("/api/system/health",{cache:"no-store"}),r=await n.json().catch(()=>null),o=r&&typeof r=="object"&&typeof r.pid=="number"?r.pid:void 0;return{ok:n.ok,pid:o}}catch{return!1}}function f3(n){return typeof n=="boolean"?{ok:n}:n}function m3(n){return new Promise(r=>window.setTimeout(r,n))}function h3(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 p3({checkedLabel:n,disableAuthDefault:r,endpoint:o,isLiveLocalNode:i,nodeId:c,nodeName:d,onRefresh:m,pid:h,transportType:y,update:p,workDir:x}){const g=h3(p,i),[w,N]=v.useState(null),[T,E]=v.useState(()=>my({disableAuthDefault:r,endpoint:o,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:o,nodeName:d,transportType:y,workDir:x}))},[r,o,d,y,x]);async function P(){if(!c||C||_)return;const re=p.updateAvailable?"update":"restart",fe=y3(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.`),g1({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 HE(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 p1(ie,{timeoutMs:6e4}),oe=v3(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 DE();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(JN,{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(g3,{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(a0,{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 g3({onChange:n,value:r}){const o=(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=>o("port",i),inputMode:"numeric"}),f.jsx(Po,{label:"Node name",value:r.name,onChange:i=>o("name",i)}),f.jsx(Po,{label:"Join endpoint",value:r.join,onChange:i=>o("join",i),className:"sm:col-span-2"}),f.jsxs("div",{className:"space-y-1",children:[f.jsx("label",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:"Transport"}),f.jsxs(px,{value:r.transport,onValueChange:i=>o("transport",v1(i)),children:[f.jsx(sm,{className:"h-7 rounded-md border-border/70 bg-background/70 px-2 text-[10px]",children:f.jsx(gx,{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=>o("workDir",i)}),f.jsx(Po,{label:"Config path",value:r.config,onChange:i=>o("config",i),className:"sm:col-span-2"}),f.jsxs("label",{className:"flex items-center gap-2 rounded-md border border-border/60 bg-background/60 px-2 py-1.5 text-[10px] text-foreground sm:col-span-2 cursor-pointer hover:bg-muted/40 transition-colors",children:[f.jsx(m1,{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:o,onChange:i,value:c}){return f.jsxs("label",{className:le("space-y-1",n),children:[f.jsx("span",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:o}),f.jsx(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:o=!1}){return f.jsxs("div",{className:"flex items-start justify-between gap-3 text-[10px]",children:[f.jsx("span",{className:"shrink-0 uppercase tracking-[0.14em] text-muted-foreground",children:n}),f.jsx("span",{className:le("break-all text-right text-foreground",o&&"font-mono"),children:r})]})}function v3(n){const r=n.result;if(!r||typeof r!="object")return null;const o=r;return o.ok!==!0||typeof o.command!="string"||typeof o.logPath!="string"?null:{ok:!0,mode:o.mode==="package"?"package":"development",command:o.command,logPath:o.logPath,pid:typeof o.pid=="number"?o.pid:void 0}}function my(n){return{port:b3(n.endpoint),name:n.nodeName,join:"",transport:v1(n.transportType),workDir:n.workDir??"",config:"",disableAuth:n.disableAuthDefault===!0,disableAuthKnown:n.disableAuthDefault!==void 0}}function y3(n){const r={},o=Number(n.port.trim());return n.port.trim()&&Number.isInteger(o)&&o>0&&(r.port=o),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 v1(n){return n==="direct"||n==="devtunnel"||n==="tailscale"?n:"inherit"}function b3(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:o,statusVariant:i}){return f.jsxs("div",{className:"flex items-center justify-between gap-3 rounded-lg border border-border/60 bg-background/70 px-2.5 py-1.5",children:[f.jsxs("div",{children:[f.jsx("div",{className:"text-[11px] font-medium text-foreground",children:r}),f.jsx("div",{className:"text-[10px] text-muted-foreground",children:n(o==null?void 0:o.checkedAt)})]}),f.jsxs("div",{className:"flex items-center gap-1.5",children:[typeof(o==null?void 0:o.authenticated)=="boolean"&&f.jsx(wt,{variant:o.authenticated?"default":"outline",className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:o.authenticated?"auth ok":"auth required"}),f.jsx(wt,{variant:i(o==null?void 0:o.status),className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:(o==null?void 0:o.status)??"unknown"})]})]})}function Zt(n){if(n==null||n==="")return"Unavailable";const r=new Date(n);return Number.isNaN(r.getTime())?"Unavailable":new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(r)}function x3(n){const r=Math.max(0,Math.floor(n)),o=Math.floor(r/86400),i=Math.floor(r%86400/3600),c=Math.floor(r%3600/60);return o>0?`${o}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 o=n,i=0;for(;o>=1024&&i<r.length-1;)o/=1024,i+=1;return`${o.toFixed(o>=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 S3(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(DN,{className:"h-3 w-3"}),"Unavailable"]})}function w3(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 E3(n){return n.available?null:n.metadataStatus??null}function N3(n){var o;const r=`npm install -g ${(o=n.update)==null?void 0:o.packageName}@latest`;return n.id==="claude"?`${r} --include=optional --ignore-scripts=false`:r}function T3(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:o=!1}){return f.jsxs("div",{className:"flex items-start justify-between gap-3 border-b border-border/50 py-1 last:border-b-0 last:pb-0 first:pt-0",children:[f.jsx("span",{className:"shrink-0 text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:n}),f.jsx("span",{className:le("break-all text-right text-[11px] text-foreground",o&&"font-mono text-[11px]"),children:r})]})}function Io({label:n,value:r,mono:o=!1,className:i}){return f.jsxs("div",{className:le("min-w-0 space-y-0.5",i),children:[f.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:n}),f.jsx("div",{className:le("truncate text-[11px] text-foreground",o&&"font-mono",n==="Path"&&"break-all whitespace-normal"),children:r})]})}function C3({agent:n,nodeName:r,activeOperation:o,onUpgrade:i}){var y,p;const c=((y=n.update)==null?void 0:y.updateAvailable)===!0,d=w3(n),m=!!o,h=E3(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(Jy,{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:[S3(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:o?f.jsxs(wt,{variant:"outline",className:"rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.14em]",children:["Upgrade ",o.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 ",N3(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 R3(n,r){var o;return(o=n==null?void 0:n.nodes)!=null&&o.length?n.nodes:r?[r]:[]}function A3(n,r){var i;if(r&&n.id===r.nodeId)return r;const o=n.settingsSnapshot;return{...n,nodeId:n.id,version:(o==null?void 0:o.version)??"Unavailable",packageName:o==null?void 0:o.packageName,uptime:(o==null?void 0:o.uptime)??0,localDashboardOrigin:((i=o==null?void 0:o.runtime)==null?void 0:i.localDashboardOrigin)??void 0,auth:o==null?void 0:o.auth,os:o==null?void 0:o.os,runtime:o==null?void 0:o.runtime,runtimeUpdate:o==null?void 0:o.runtimeUpdate,agents:o==null?void 0:o.agents,startupRequirements:o==null?void 0:o.startupRequirements,components:o==null?void 0:o.components,repository:o==null?void 0:o.repository,packages:o==null?void 0:o.packages}}function j3(n,r){return n.id===r?`${n.name} (this node)`:`${n.name} (${n.role})`}function _3(n){return n==="claude"?"Claude Code":n==="copilot"?"Copilot CLI":"Codex"}function M3(n){var o;const r=(o=n.payload)==null?void 0:o.agent;return r==="claude"||r==="codex"||r==="copilot"?r:null}function O3({cluster:n,systemInfo:r,sseConnected:o,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(()=>R3(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?A3(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=a3(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=h1(J);if(!be||x.current.has(J.id))return;const Se=M3(J),He=(ve==null?void 0:ve.agentLabel)??(Se?_3(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 p1(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(T3($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 o3(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 BE(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(Kj,{status:N.status}),f.jsx("span",{className:"font-medium text-foreground",children:N.name})]}),f.jsx(Qj,{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(px,{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(gx,{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:j3(J,r==null?void 0:r.nodeId)},J.id))})]})]})]}),f.jsxs("div",{className:"flex items-center gap-1",children:[f.jsxs(wt,{variant:o?"default":"outline",className:"gap-1 rounded-sm px-1.5 py-0 text-[10px] uppercase tracking-[0.16em]",children:[f.jsx(eT,{className:"h-3 w-3"}),o?"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 ",x3(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(kj,{defaultValue:"session",className:"space-y-2",children:[f.jsxs(Bx,{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(t0,{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(BN,{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(p3,{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(Jy,{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(C3,{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(NN,{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(cT,{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(VN,{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(Jj,{formatDateTime:Zt,viewInfo:T})]})]})}function k3({initialSelectedNodeId:n,open:r,onOpenChange:o,showTrigger:i=!0}={}){const{cluster:c,systemInfo:d,sseConnected:m,refresh:h}=Zy();return f.jsx(w5,{open:r,onOpenChange:o,showTrigger:i,children:f.jsx(O3,{cluster:c,systemInfo:d,sseConnected:m,initialSelectedNodeId:n,onRefresh:h})})}const PM="codex",GM="bypass",D3=[{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"}],IM=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],XM=new Set(D3.filter(n=>n.supportsFollowUp).map(n=>n.value)),KM=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],QM=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],z3=new Set(["pending","assigned"]),L3=new Set(["running"]),U3=new Set(["completed","failed","cancelled"]),ZM=10;function FM(n,r){switch(r){case"running":return L3.has(n.status);case"waiting":return z3.has(n.status);case"closed":return U3.has(n.status);case"shared":return!!n.activeShare;case"archived":return n.status==="archived";case"active":default:return n.status!=="archived"}}function JM(n,r){if(r==="all")return!0;const o=n.conversationKind==="nativeSession";return r==="native"?o:!o}function WM(n,r){const o=r.trim().toLowerCase();return o?[n.title,n.description,n.id,n.agent,n.assignedTo??"",n.assignedNodeName??"",n.project??"",n.effectiveProjectPath??"",n.conversationKind==="nativeSession"?"native session":"meshy chat",n.activeShare?"shared conversation":""].some(i=>i.toLowerCase().includes(o)):!0}function B3(n,r,o){if(!n)return"unassigned";const i=r==null?void 0:r.find(c=>c.id===n);return(i==null?void 0:i.name)??o??n.slice(0,8)}function eO(n,r,o){return B3(n,r,o).toLowerCase()}function tO(n,r,o){return!n.assignedTo||(o==null?void 0:o.id)===n.assignedTo?!0:(r==null?void 0:r.some(i=>i.id===n.assignedTo))??!1}function nO(n,r){return[...n].sort((o,i)=>o.id===r?-1:i.id===r?1:o.name.localeCompare(i.name))}function aO(n){if(!n||typeof n!="object")return null;const r=n,o=r.createMode,i=o==="chat"||o==="native"?o: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 rO(n){return n==="default workspace"?n:n.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??n}function lO(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 oO(n){return new Date(n).toLocaleString()}function iO(n){const r=Math.floor(n/1e3),o=Math.floor(r/3600),i=Math.floor(r%3600/60),c=r%60;return`${String(o).padStart(2,"0")}:${String(i).padStart(2,"0")}:${String(c).padStart(2,"0")}`}async function H3(n,r="Copied to clipboard"){var o,i,c;try{if((i=(o=globalThis.navigator)==null?void 0:o.clipboard)!=null&&i.writeText)return await globalThis.navigator.clipboard.writeText(n),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 $3="default workspace";function Ls(n){const r=n.replace(/\\/g,"/");return r==="/"||/^[A-Za-z]:\/$/.test(r)?r:r.replace(/\/+$/g,"")||r}function q3(n){const r=n.replace(/\\/g,"/");return r.startsWith("/")||r.startsWith("//")||/^[A-Za-z]:\//.test(r)}function V3(n,r){const o=Ls(n),i=r.replace(/\\/g,"/").replace(/^\/+|\/+$/g,"");return!i||i==="."?o:o==="/"||/^[A-Za-z]:\/$/.test(o)?`${o}${i}`:`${o}/${i}`}function Y3(n,r){var d,m,h;const o=(d=n.effectiveProjectPath)==null?void 0:d.trim();if(o)return Ls(o);const i=(m=n.project)==null?void 0:m.trim();if(!i)return $3;if(q3(i)||!n.assignedTo)return Ls(i);const c=(h=r==null?void 0:r.get(n.assignedTo))==null?void 0:h.trim();return c?V3(c,i):Ls(i)}function sO(n,r,o,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=Y3(m,i);c.has(y)||c.set(y,{nodeId:h,nodeName:p,dirMap:new Map});const g=c.get(y);g.dirMap.has(x)||g.dirMap.set(x,[]),g.dirMap.get(x).push(m)}const d=Array.from(c.values()).map(({nodeId:m,nodeName:h,dirMap:y})=>{const p=Array.from(y.entries()).map(([x,g])=>({path:x,tasks:g})).sort((x,g)=>g.tasks.length-x.tasks.length||x.path.localeCompare(g.path));return{nodeId:m,nodeName:h,dirs:p}});return d.sort((m,h)=>{if(o){if(m.nodeId===o)return-1;if(h.nodeId===o)return 1}return m.nodeId===null?1:h.nodeId===null?-1:m.nodeName.localeCompare(h.nodeName)}),d}const P3={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"},G3={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 I3(n){return n.split(".")[0]??"unknown"}function X3(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function Ml(n,r){return(r==null?void 0:r.get(n))??n}function y1(n,r){const o=n.data,i=o.operation;switch(n.type){case"node.joined":return`${o.name} joined the cluster`;case"node.left":return`${Ml(o.nodeId,r)} left (${o.reason})`;case"node.status":return`${Ml(o.nodeId,r)} is now ${o.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(o.nodeId,r)} transport switched to ${o.transportType}`;case"task.created":return`"${o.title}" created`;case"task.assigned":return`task assigned to ${Ml(o.nodeId,r)}`;case"task.status":return`task ${o.taskId.slice(0,8)} -> ${o.status}`;case"election.started":return`candidate ${o.candidateId.slice(0,8)} term ${o.term}`;case"election.complete":return`leader elected, term ${o.term}`;case"cluster.state":return`${o.nodeCount} nodes, term ${o.term}`;default:return JSON.stringify(o)}}function K3(n){return JSON.stringify(n,null,2)}function Q3({events:n,maxHeight:r="400px",nodeNameById:o,onDismiss:i,density:c="default"}){if(n.length===0)return null;const d=c==="compact";return f.jsx("div",{className:"overflow-y-auto pr-1",style:{maxHeight:r},children:f.jsx("div",{className:"space-y-1.5",children:n.map(m=>{const h=I3(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:X3(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",G3[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",P3[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 H3(K3(m),"Event copied"),"aria-label":`Copy ${m.type} event`,title:"Copy event",children:f.jsx(LN,{className:d?"h-2.5 w-2.5":"h-3 w-3"})}),i&&f.jsx(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(r0,{className:d?"h-2.5 w-2.5":"h-3 w-3"})})]})]}),f.jsx("div",{className:"text-[9px] leading-snug text-foreground/85",children:y1(m,o)})]})},m.id)})})})}const Z3=["node.","election.","transport."],F3="cluster.state";function J3(n){return n.type==="node.status"?!1:Z3.some(r=>n.type.startsWith(r))}function W3(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function e_(n,r){return n?{time:W3(n.timestamp),text:y1(n,r)}:null}function t_(n){return n.transportType==="devtunnel"||!!n.devtunnelEndpoint}function n_(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 o=n.filter(c=>{var d;return((d=c.devtunnelHealth)==null?void 0:d.status)==="failed"}).length;if(o>0)return`${o} failed`;const i=n.filter(c=>{var d;return c.status!=="offline"&&((d=c.devtunnelHealth)==null?void 0:d.status)!=="healthy"}).length;return i>0?`${i} checking`:"Healthy"}function a_(n,r){var c;const o=(r==null?void 0:r.get(n.id))??n.name??n.id;if(n.status==="offline")return{label:o,status:"offline"};const i=((c=n.devtunnelHealth)==null?void 0:c.status)??"checking";return{label:o,status:i}}function r_(n){if(n.length===0)return"No nodes";const r=n.filter(i=>i.status==="offline").length;if(r>0)return`${r} offline`;const o=n.filter(i=>i.status==="busy").length;return o>0?`${o} busy`:"Healthy"}function l_(n,r){return{label:(r==null?void 0:r.get(n.id))??n.name??n.id,status:n.status}}function o_({connected:n,events:r,nodes:o=[],currentNode:i=null,nodeNameById:c,desktopUpdate:d=null,defaultOpen:m=!1,defaultActionMenuOpen:h=!1,onDesktopUpdate:y,onDesktopRestart:p,onReload:x,onRestart:g}){const[w,N]=v.useState(m),[T,E]=v.useState(h),[C,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=>J3(Ne)&&!_.has(Ne.id)),[r,_]),fe=v.useMemo(()=>r.find(Ne=>Ne.type===F3)??re[0],[r,re]),me=v.useMemo(()=>e_(fe,c),[fe,c]),ie=v.useMemo(()=>{const Ne=new Map(o.map(Ie=>[Ie.id,Ie]));return i&&Ne.set(i.id,i),Array.from(Ne.values())},[i,o]),ue=v.useMemo(()=>ie.filter(t_),[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(pT,{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:r_(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}=l_(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:n_(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}=a_(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(Q3,{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",i_="clean",ef="meshy-layout-default-migrated-to-compact",Rf="true",s_="compact",c_=new Set(["airy","clean","fluent"]);function u_(n){return n!==null&&c_.has(n)}function bc(n){return n===s_?"fluent":u_(n)?n:null}function d_(n,r){const o=bc(n);return o===i_&&r!==Rf?Ur:o??Ur}const nc="symphony",b1="default",f_=new Set(["light","dark","system"]),m_=new Set(["porcelain","warm","finsight","edge","symphony","launcher"]),x1=v.createContext(null);function h_(n){const r=new URLSearchParams(n).get("theme");return S1(r)?r:null}function p_(n){const r=new URLSearchParams(n).get("palette");return hm(r)}function g_(n){const r=new URLSearchParams(n).get("layout");return bc(r)}function v_(){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 cO(n,r=v_()){if(!r)return n;try{const o=/^[a-z][a-z\d+\-.]*:/i.test(n),i=typeof window<"u"?window.location.href:"http://localhost",c=new URL(n,i);return c.searchParams.set("theme",r.theme),c.searchParams.set("palette",r.palette),c.searchParams.set("layout",r.layout),o?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 o=(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(o%2-1)),h=c-d/2,[y,p,x]=o<1?[d,m,0]:o<2?[m,d,0]:o<3?[0,d,m]:o<4?[0,m,d]:o<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 y_(n){const r=n.trim();if(!r||r==="transparent")return null;const o=r.match(/^rgba?\(\s*([+-]?\d+(?:\.\d+)?)\s*,\s*([+-]?\d+(?:\.\d+)?)\s*,\s*([+-]?\d+(?:\.\d+)?)(?:\s*,\s*([+-]?\d+(?:\.\d+)?))?\s*\)$/i);if(o)return[Ol(Number(o[1])),Ol(Number(o[2])),Ol(Number(o[3])),by(o[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 b_(n,r,o){const i=gy(n);if(!i)return null;if(o==="clean"||o==="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 x_(){const n=document.querySelector(".dashboard-shell-header-panel");if(!n)return null;const r=y_(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,o=r.classList.contains("dark")?"dark":"light",i=getComputedStyle(r),c=bc(r.getAttribute("data-layout"))??Ur,d=x_()??b_(i.getPropertyValue("--card"),i.getPropertyValue("--background"),c);n("sync_desktop_theme",{theme:o,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,o){return Math.round(n*o+r*(1-o))}function ac(n,r,o){return Math.min(Math.max(n,r),o)}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 S_({children:n}){const[r,o]=v.useState(()=>typeof window<"u"?h_(window.location.search)??N_(localStorage.getItem("meshy-theme"))??py:py),[i,c]=v.useState(()=>typeof window<"u"?p_(window.location.search)??T_(localStorage.getItem("meshy-palette"))??nc:nc),[d,m]=v.useState(()=>{if(typeof window<"u"){const h=g_(window.location.search);if(h)return localStorage.setItem(ef,Rf),h;const y=d_(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(x1.Provider,{value:{theme:r,setTheme:o,palette:i,setPalette:c,layout:d,setLayout:m},children:n})}function w_(){const n=v.useContext(x1);if(!n)throw new Error("useTheme must be used within ThemeProvider");return n}function S1(n){return n!==null&&f_.has(n)}function E_(n){return n!==null&&m_.has(n)}function N_(n){return S1(n)?n:null}function hm(n){return n===b1?"porcelain":E_(n)?n:null}function T_(n){return n===b1?null:hm(n)}const C_=[{value:"light",label:"Light",icon:n0},{value:"dark",label:"Dark",icon:e0},{value:"system",label:"System",icon:Wy}],w1=[{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"}],E1=[{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 R_(){const{theme:n,setTheme:r,palette:o,setPalette:i,layout:c,setLayout:d}=w_(),[m,h]=v.useState(!1),y=v.useRef(null),p=v.useRef(null),x=n==="dark"?e0:n==="light"?n0:Wy,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",o!==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:[A_(c)," / ",j_(o)]})]}),f.jsx("div",{className:"rounded-sm border border-border/60 bg-background/70 px-1.5 py-0.5 text-[8px] font-medium capitalize text-muted-foreground",children:n})]}),f.jsx("div",{className:"px-0.5 pb-1 text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Theme"}),f.jsx("div",{className:"mb-2 grid grid-cols-3 gap-1 rounded-sm bg-muted/35 p-0.5",children:C_.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:E1.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(dT,{className:"h-2.5 w-2.5"}),"Palette"]}),f.jsx("div",{className:"space-y-1",children:w1.map(({value:N,label:T,hint:E})=>{const C=o===N;return f.jsxs("button",{type:"button",onClick:()=>i(N),role:"menuitemradio","aria-checked":C,className:le("flex min-h-[2.25rem] w-full items-center gap-1.5 rounded-sm border px-1.5 py-1 text-left transition-colors",C?"border-primary/55 bg-primary/10":"border-border/45 bg-background/45 hover:border-border hover:bg-muted/55"),children:[f.jsx(__,{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 A_(n){var r;return((r=E1.find(o=>o.value===n))==null?void 0:r.label)??n}function j_(n){var r;return((r=w1.find(o=>o.value===n))==null?void 0:r.label)??n}function __({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%)"]},[o,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:o}}),f.jsx("div",{className:"h-full w-1/3",style:{background:i}}),f.jsx("div",{className:"h-full w-1/3",style:{background:c}})]})}const 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}},N1="meshy-dashboard-panel-state-v2",T1="meshy-dashboard-terminal-open-v1";function uO({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,o){return typeof r=="number"&&Number.isFinite(r)?Zo(n,r):o}function Zo(n,r){const o=Qo[n];return Math.min(o.max,Math.max(o.min,r))}function dO(n,r){if(!n)return r;try{const o=n.getItem(N1);if(!o)return r;const i=JSON.parse(o);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 fO(n,r){if(n)try{n.setItem(N1,JSON.stringify(r))}catch{}}function M_(n,r){if(!n)return r;try{const o=n.getItem(T1);return o==="true"?!0:o==="false"?!1:r}catch{return r}}function O_(n,r){if(n)try{n.setItem(T1,String(r))}catch{}}function Sy(){var n;try{return((n=globalThis.window)==null?void 0:n.localStorage)??globalThis.localStorage??null}catch{return null}}function mO(n){return`${Number(n.toFixed(2))}rem`}function hO(n,r,o,i,c,d,m){const h=Number.isFinite(m)&&m>0?m:16;return n==="tasks"?Zo(n,r+(c-o)/h):n==="operations"?Zo(n,r+(o-c)/h):Zo(n,r+(i-d)/h)}function pO(n,r,o){const i=o===0?0:o>0?-1:1;return Zo(n,r+i*Qo[n].wheelStep)}const k_=7200*1e3;function D_(){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 o=n.message;if(typeof o=="string"&&o.trim())return o}return r}function z_(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 L_(){const{cluster:n,events:r,sseConnected:o,systemInfo:i}=Zy(),c=Wn(),[d,m]=v.useState(()=>M_(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(()=>{O_(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),k_);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 g1({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(z_(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(D_,{}),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(t0,{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(PN,{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(rT,{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(a0,{className:"h-4 w-4"})}),f.jsx(k3,{}),f.jsx(R_,{}),f.jsx("div",{className:"mx-0 h-4 w-px shrink-0 bg-border/50"}),f.jsx(o_,{connected:o,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(X2,{context:{terminalOpen:d,setTerminalOpen:R,headerSearchQuery:h,setHeaderSearchQuery:y,setHeaderTaskContext:x}})})})]})]})}const Ey=v.lazy(async()=>({default:(await Cy(()=>import("./DashboardPage-DyNoe7cv.js").then(r=>r.D),__vite__mapDeps([0,1,2,3,4]))).DashboardPage})),U_=v.lazy(async()=>({default:(await Cy(()=>import("./SharedConversationPage-BMmvljLM.js"),__vite__mapDeps([5,1]))).SharedConversationPage}));function B_(){return f.jsx(bE,{children:f.jsx(v.Suspense,{fallback:f.jsx(H_,{}),children:f.jsxs(Q2,{children:[f.jsx(Or,{path:"/shared/tasks/:shareId",element:f.jsx(U_,{})}),f.jsxs(Or,{element:f.jsx(fN,{children:f.jsx(L_,{})}),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 H_(){return f.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function $_(n){const r=n??(typeof window>"u"?void 0:window);r!=null&&r.__TAURI__&&r.addEventListener("contextmenu",o=>{o.preventDefault()})}function q_(n){return f.jsx(OC,{className:"toaster group",style:{"--normal-bg":"hsl(var(--popover))","--normal-text":"hsl(var(--popover-foreground))","--normal-border":"hsl(var(--border))"},...n})}$_();Kw.createRoot(document.getElementById("root")).render(f.jsx(v.StrictMode,{children:f.jsxs(S_,{children:[f.jsx(B_,{}),f.jsx(q_,{})]})}));export{Ws as $,rb as A,xn as B,Hs as C,GM as D,ob as E,VN as F,cO as G,LN as H,mm as I,H3 as J,Bx as K,zs as L,B3 as M,Jy as N,kj as O,VM as P,YM as Q,wt as R,t0 as S,IM as T,oO as U,Ks as V,Tf as W,r0 as X,Qs as Y,Zs as Z,Js as _,UC as a,cM as a$,Fs as a0,tc as a1,ec as a2,Cy as a3,X_ as a4,lb as a5,S5 as a6,oM as a7,a0 as a8,Xo as a9,TM as aA,dO as aB,uO as aC,Sy as aD,fO as aE,pO as aF,mO as aG,hO as aH,mM as aI,lN as aJ,VE as aK,BM as aL,UM as aM,HM as aN,sN as aO,SM as aP,F_ as aQ,Q_ as aR,ib as aS,Z_ as aT,J_ as aU,UE as aV,k3 as aW,wM as aX,EM as aY,dM as aZ,sM as a_,DN as aa,lM as ab,iM as ac,rM as ad,pT as ae,iT as af,SN as ag,KN as ah,ai,nO as aj,eT as ak,Q3 as al,Kj as am,$N as an,Qj as ao,iO as ap,z3 as aq,ZM as ar,sO as as,KM as at,QM as au,rO as av,m1 as aw,lO as ax,Cf as ay,NM as az,le as b,uM as b0,fM as b1,P_ as b2,Wn as b3,Uy as b4,Y_ as b5,Zy as b6,aO as b7,tO as b8,FM as b9,OM as bA,df as bB,zM as bC,$M as bD,LM as bE,JM as ba,eO as bb,WM as bc,hM as bd,XM as be,L3 as bf,bM as bg,xM as bh,yM as bi,vM as bj,I_ as bk,K_ as bl,G_ as bm,W_ as bn,qM as bo,_M as bp,jM as bq,AM as br,CM as bs,RM as bt,MM as bu,D3 as bv,Ny as bw,jN as bx,DM as by,kM as bz,Be as c,S0 as d,aM as e,LE as f,tM as g,eM as h,PN as i,f as j,uf as k,Dl as l,nM as m,gM as n,px as o,sm as p,gx as q,v as r,cm as s,Pe as t,rT as u,Jo as v,dT as w,PM as x,pM as y,y5 as z};
|