meshy-node 0.6.2 → 0.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,301 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-CLJHILHo.js","assets/DashboardShared-h22ibsrQ.js","assets/folder-BmMN0Ktd.js","assets/play-CsdLI-WG.js","assets/SharedConversationPage-BrlYNCnU.js"])))=>i.map(i=>d[i]);
2
- function FS(n,l){for(var o=0;o<l.length;o++){const i=l[o];if(typeof i!="string"&&!Array.isArray(i)){for(const u in i)if(u!=="default"&&!(u in n)){const d=Object.getOwnPropertyDescriptor(i,u);d&&Object.defineProperty(n,u,d.get?d:{enumerable:!0,get:()=>i[u]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const u of document.querySelectorAll('link[rel="modulepreload"]'))i(u);new MutationObserver(u=>{for(const d of u)if(d.type==="childList")for(const f of d.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&i(f)}).observe(document,{childList:!0,subtree:!0});function o(u){const d={};return u.integrity&&(d.integrity=u.integrity),u.referrerPolicy&&(d.referrerPolicy=u.referrerPolicy),u.crossOrigin==="use-credentials"?d.credentials="include":u.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function i(u){if(u.ep)return;u.ep=!0;const d=o(u);fetch(u.href,d)}})();function qv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var yd={exports:{}},Mo={};/**
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 Lg;function JS(){if(Lg)return Mo;Lg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function o(i,u,d){var f=null;if(d!==void 0&&(f=""+d),u.key!==void 0&&(f=""+u.key),"key"in u){d={};for(var h in u)h!=="key"&&(d[h]=u[h])}else d=u;return u=d.ref,{$$typeof:n,type:i,key:f,ref:u!==void 0?u:null,props:d}}return Mo.Fragment=l,Mo.jsx=o,Mo.jsxs=o,Mo}var Ug;function WS(){return Ug||(Ug=1,yd.exports=JS()),yd.exports}var m=WS(),bd={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 Bg;function e2(){if(Bg)return Ce;Bg=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),f=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 C(j){return j===null||typeof j!="object"?null:(j=w&&j[w]||j["@@iterator"],typeof j=="function"?j:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,T={};function R(j,X,Q){this.props=j,this.context=X,this.refs=T,this.updater=Q||N}R.prototype.isReactComponent={},R.prototype.setState=function(j,X){if(typeof j!="object"&&typeof j!="function"&&j!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,j,X,"setState")},R.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function A(){}A.prototype=R.prototype;function M(j,X,Q){this.props=j,this.context=X,this.refs=T,this.updater=Q||N}var k=M.prototype=new A;k.constructor=M,E(k,R.prototype),k.isPureReactComponent=!0;var $=Array.isArray;function G(){}var B={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function ae(j,X,Q){var ee=Q.ref;return{$$typeof:n,type:j,key:X,ref:ee!==void 0?ee:null,props:Q}}function oe(j,X){return ae(j.type,X,j.props)}function pe(j){return typeof j=="object"&&j!==null&&j.$$typeof===n}function me(j){var X={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(Q){return X[Q]})}var ue=/\/+/g;function de(j,X){return typeof j=="object"&&j!==null&&j.key!=null?me(""+j.key):X.toString(36)}function re(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(G,G):(j.status="pending",j.then(function(X){j.status==="pending"&&(j.status="fulfilled",j.value=X)},function(X){j.status==="pending"&&(j.status="rejected",j.reason=X)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function O(j,X,Q,ee,te){var I=typeof j;(I==="undefined"||I==="boolean")&&(j=null);var W=!1;if(j===null)W=!0;else switch(I){case"bigint":case"string":case"number":W=!0;break;case"object":switch(j.$$typeof){case n:case l:W=!0;break;case x:return W=j._init,O(W(j._payload),X,Q,ee,te)}}if(W)return te=te(j),W=ee===""?"."+de(j,0):ee,$(te)?(Q="",W!=null&&(Q=W.replace(ue,"$&/")+"/"),O(te,X,Q,"",function(we){return we})):te!=null&&(pe(te)&&(te=oe(te,Q+(te.key==null||j&&j.key===te.key?"":(""+te.key).replace(ue,"$&/")+"/")+W)),X.push(te)),1;W=0;var le=ee===""?".":ee+":";if($(j))for(var ie=0;ie<j.length;ie++)ee=j[ie],I=le+de(ee,ie),W+=O(ee,X,Q,I,te);else if(ie=C(j),typeof ie=="function")for(j=ie.call(j),ie=0;!(ee=j.next()).done;)ee=ee.value,I=le+de(ee,ie++),W+=O(ee,X,Q,I,te);else if(I==="object"){if(typeof j.then=="function")return O(re(j),X,Q,ee,te);throw X=String(j),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return W}function Y(j,X,Q){if(j==null)return j;var ee=[],te=0;return O(j,ee,"","",function(I){return X.call(Q,I,te++)}),ee}function F(j){if(j._status===-1){var X=j._result;X=X(),X.then(function(Q){(j._status===0||j._status===-1)&&(j._status=1,j._result=Q)},function(Q){(j._status===0||j._status===-1)&&(j._status=2,j._result=Q)}),j._status===-1&&(j._status=0,j._result=X)}if(j._status===1)return j._result.default;throw j._result}var se=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)},J={map:Y,forEach:function(j,X,Q){Y(j,function(){X.apply(this,arguments)},Q)},count:function(j){var X=0;return Y(j,function(){X++}),X},toArray:function(j){return Y(j,function(X){return X})||[]},only:function(j){if(!pe(j))throw Error("React.Children.only expected to receive a single React element child.");return j}};return Ce.Activity=g,Ce.Children=J,Ce.Component=R,Ce.Fragment=o,Ce.Profiler=u,Ce.PureComponent=M,Ce.StrictMode=i,Ce.Suspense=y,Ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,Ce.__COMPILER_RUNTIME={__proto__:null,c:function(j){return B.H.useMemoCache(j)}},Ce.cache=function(j){return function(){return j.apply(null,arguments)}},Ce.cacheSignal=function(){return null},Ce.cloneElement=function(j,X,Q){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var ee=E({},j.props),te=j.key;if(X!=null)for(I in X.key!==void 0&&(te=""+X.key),X)!V.call(X,I)||I==="key"||I==="__self"||I==="__source"||I==="ref"&&X.ref===void 0||(ee[I]=X[I]);var I=arguments.length-2;if(I===1)ee.children=Q;else if(1<I){for(var W=Array(I),le=0;le<I;le++)W[le]=arguments[le+2];ee.children=W}return ae(j.type,te,ee)},Ce.createContext=function(j){return j={$$typeof:f,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:d,_context:j},j},Ce.createElement=function(j,X,Q){var ee,te={},I=null;if(X!=null)for(ee in X.key!==void 0&&(I=""+X.key),X)V.call(X,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(te[ee]=X[ee]);var W=arguments.length-2;if(W===1)te.children=Q;else if(1<W){for(var le=Array(W),ie=0;ie<W;ie++)le[ie]=arguments[ie+2];te.children=le}if(j&&j.defaultProps)for(ee in W=j.defaultProps,W)te[ee]===void 0&&(te[ee]=W[ee]);return ae(j,I,te)},Ce.createRef=function(){return{current:null}},Ce.forwardRef=function(j){return{$$typeof:h,render:j}},Ce.isValidElement=pe,Ce.lazy=function(j){return{$$typeof:x,_payload:{_status:-1,_result:j},_init:F}},Ce.memo=function(j,X){return{$$typeof:p,type:j,compare:X===void 0?null:X}},Ce.startTransition=function(j){var X=B.T,Q={};B.T=Q;try{var ee=j(),te=B.S;te!==null&&te(Q,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(G,se)}catch(I){se(I)}finally{X!==null&&Q.types!==null&&(X.types=Q.types),B.T=X}},Ce.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},Ce.use=function(j){return B.H.use(j)},Ce.useActionState=function(j,X,Q){return B.H.useActionState(j,X,Q)},Ce.useCallback=function(j,X){return B.H.useCallback(j,X)},Ce.useContext=function(j){return B.H.useContext(j)},Ce.useDebugValue=function(){},Ce.useDeferredValue=function(j,X){return B.H.useDeferredValue(j,X)},Ce.useEffect=function(j,X){return B.H.useEffect(j,X)},Ce.useEffectEvent=function(j){return B.H.useEffectEvent(j)},Ce.useId=function(){return B.H.useId()},Ce.useImperativeHandle=function(j,X,Q){return B.H.useImperativeHandle(j,X,Q)},Ce.useInsertionEffect=function(j,X){return B.H.useInsertionEffect(j,X)},Ce.useLayoutEffect=function(j,X){return B.H.useLayoutEffect(j,X)},Ce.useMemo=function(j,X){return B.H.useMemo(j,X)},Ce.useOptimistic=function(j,X){return B.H.useOptimistic(j,X)},Ce.useReducer=function(j,X,Q){return B.H.useReducer(j,X,Q)},Ce.useRef=function(j){return B.H.useRef(j)},Ce.useState=function(j){return B.H.useState(j)},Ce.useSyncExternalStore=function(j,X,Q){return B.H.useSyncExternalStore(j,X,Q)},Ce.useTransition=function(){return B.H.useTransition()},Ce.version="19.2.4",Ce}var Hg;function lf(){return Hg||(Hg=1,bd.exports=e2()),bd.exports}var v=lf();const ne=qv(v),rf=FS({__proto__:null,default:ne},[v]);var xd={exports:{}},Oo={},Sd={exports:{}},wd={};/**
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 Vg;function t2(){return Vg||(Vg=1,(function(n){function l(O,Y){var F=O.length;O.push(Y);e:for(;0<F;){var se=F-1>>>1,J=O[se];if(0<u(J,Y))O[se]=Y,O[F]=J,F=se;else break e}}function o(O){return O.length===0?null:O[0]}function i(O){if(O.length===0)return null;var Y=O[0],F=O.pop();if(F!==Y){O[0]=F;e:for(var se=0,J=O.length,j=J>>>1;se<j;){var X=2*(se+1)-1,Q=O[X],ee=X+1,te=O[ee];if(0>u(Q,F))ee<J&&0>u(te,Q)?(O[se]=te,O[ee]=F,se=ee):(O[se]=Q,O[X]=F,se=X);else if(ee<J&&0>u(te,F))O[se]=te,O[ee]=F,se=ee;else break e}}return Y}function u(O,Y){var F=O.sortIndex-Y.sortIndex;return F!==0?F:O.id-Y.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var f=Date,h=f.now();n.unstable_now=function(){return f.now()-h}}var y=[],p=[],x=1,g=null,w=3,C=!1,N=!1,E=!1,T=!1,R=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function k(O){for(var Y=o(p);Y!==null;){if(Y.callback===null)i(p);else if(Y.startTime<=O)i(p),Y.sortIndex=Y.expirationTime,l(y,Y);else break;Y=o(p)}}function $(O){if(E=!1,k(O),!N)if(o(y)!==null)N=!0,G||(G=!0,me());else{var Y=o(p);Y!==null&&re($,Y.startTime-O)}}var G=!1,B=-1,V=5,ae=-1;function oe(){return T?!0:!(n.unstable_now()-ae<V)}function pe(){if(T=!1,G){var O=n.unstable_now();ae=O;var Y=!0;try{e:{N=!1,E&&(E=!1,A(B),B=-1),C=!0;var F=w;try{t:{for(k(O),g=o(y);g!==null&&!(g.expirationTime>O&&oe());){var se=g.callback;if(typeof se=="function"){g.callback=null,w=g.priorityLevel;var J=se(g.expirationTime<=O);if(O=n.unstable_now(),typeof J=="function"){g.callback=J,k(O),Y=!0;break t}g===o(y)&&i(y),k(O)}else i(y);g=o(y)}if(g!==null)Y=!0;else{var j=o(p);j!==null&&re($,j.startTime-O),Y=!1}}break e}finally{g=null,w=F,C=!1}Y=void 0}}finally{Y?me():G=!1}}}var me;if(typeof M=="function")me=function(){M(pe)};else if(typeof MessageChannel<"u"){var ue=new MessageChannel,de=ue.port2;ue.port1.onmessage=pe,me=function(){de.postMessage(null)}}else me=function(){R(pe,0)};function re(O,Y){B=R(function(){O(n.unstable_now())},Y)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(O){O.callback=null},n.unstable_forceFrameRate=function(O){0>O||125<O?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<O?Math.floor(1e3/O):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_next=function(O){switch(w){case 1:case 2:case 3:var Y=3;break;default:Y=w}var F=w;w=Y;try{return O()}finally{w=F}},n.unstable_requestPaint=function(){T=!0},n.unstable_runWithPriority=function(O,Y){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var F=w;w=O;try{return Y()}finally{w=F}},n.unstable_scheduleCallback=function(O,Y,F){var se=n.unstable_now();switch(typeof F=="object"&&F!==null?(F=F.delay,F=typeof F=="number"&&0<F?se+F:se):F=se,O){case 1:var J=-1;break;case 2:J=250;break;case 5:J=1073741823;break;case 4:J=1e4;break;default:J=5e3}return J=F+J,O={id:x++,callback:Y,priorityLevel:O,startTime:F,expirationTime:J,sortIndex:-1},F>se?(O.sortIndex=F,l(p,O),o(y)===null&&O===o(p)&&(E?(A(B),B=-1):E=!0,re($,F-se))):(O.sortIndex=J,l(y,O),N||C||(N=!0,G||(G=!0,me()))),O},n.unstable_shouldYield=oe,n.unstable_wrapCallback=function(O){var Y=w;return function(){var F=w;w=Y;try{return O.apply(this,arguments)}finally{w=F}}}})(wd)),wd}var $g;function n2(){return $g||($g=1,Sd.exports=t2()),Sd.exports}var Ed={exports:{}},Tt={};/**
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 qg;function a2(){if(qg)return Tt;qg=1;var n=lf();function l(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)p+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(){}var i={d:{f:o,r:function(){throw Error(l(522))},D:o,C:o,L:o,m:o,X:o,S:o,M:o},p:0,findDOMNode:null},u=Symbol.for("react.portal");function d(y,p,x){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:g==null?null:""+g,children:y,containerInfo:p,implementation:x}}var f=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 Tt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Tt.createPortal=function(y,p){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return d(y,p,null,x)},Tt.flushSync=function(y){var p=f.T,x=i.p;try{if(f.T=null,i.p=2,y)return y()}finally{f.T=p,i.p=x,i.d.f()}},Tt.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))},Tt.prefetchDNS=function(y){typeof y=="string"&&i.d.D(y)},Tt.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,C=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:C}):x==="script"&&i.d.X(y,{crossOrigin:g,integrity:w,fetchPriority:C,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Tt.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)},Tt.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})}},Tt.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)},Tt.requestFormReset=function(y){i.d.r(y)},Tt.unstable_batchedUpdates=function(y,p){return y(p)},Tt.useFormState=function(y,p,x){return f.H.useFormState(y,p,x)},Tt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Tt.version="19.2.4",Tt}var Yg;function Yv(){if(Yg)return Ed.exports;Yg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),Ed.exports=a2(),Ed.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 Gg;function l2(){if(Gg)return Oo;Gg=1;var n=n2(),l=lf(),o=Yv();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 u(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 f(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function h(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function y(e){if(d(e)!==e)throw Error(i(188))}function p(e){var t=e.alternate;if(!t){if(t=d(e),t===null)throw Error(i(188));return t!==e?null:e}for(var a=e,r=t;;){var s=a.return;if(s===null)break;var c=s.alternate;if(c===null){if(r=s.return,r!==null){a=r;continue}break}if(s.child===c.child){for(c=s.child;c;){if(c===a)return y(s),e;if(c===r)return y(s),t;c=c.sibling}throw Error(i(188))}if(a.return!==r.return)a=s,r=c;else{for(var b=!1,S=s.child;S;){if(S===a){b=!0,a=s,r=c;break}if(S===r){b=!0,r=s,a=c;break}S=S.sibling}if(!b){for(S=c.child;S;){if(S===a){b=!0,a=c,r=s;break}if(S===r){b=!0,r=c,a=s;break}S=S.sibling}if(!b)throw Error(i(189))}}if(a.alternate!==r)throw Error(i(190))}if(a.tag!==3)throw Error(i(188));return a.stateNode.current===a?e:t}function x(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=x(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,w=Symbol.for("react.element"),C=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),M=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),oe=Symbol.for("react.memo_cache_sentinel"),pe=Symbol.iterator;function me(e){return e===null||typeof e!="object"?null:(e=pe&&e[pe]||e["@@iterator"],typeof e=="function"?e:null)}var ue=Symbol.for("react.client.reference");function de(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===ue?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case R:return"Profiler";case T:return"StrictMode";case $:return"Suspense";case G:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case N:return"Portal";case M:return e.displayName||"Context";case A:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case B:return t=e.displayName||null,t!==null?t:de(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return de(e(t))}catch{}}return null}var re=Array.isArray,O=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F={pending:!1,data:null,method:null,action:null},se=[],J=-1;function j(e){return{current:e}}function X(e){0>J||(e.current=se[J],se[J]=null,J--)}function Q(e,t){J++,se[J]=e.current,e.current=t}var ee=j(null),te=j(null),I=j(null),W=j(null);function le(e,t){switch(Q(I,t),Q(te,e),Q(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?rg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=rg(t),e=og(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(ee),Q(ee,e)}function ie(){X(ee),X(te),X(I)}function we(e){e.memoizedState!==null&&Q(W,e);var t=ee.current,a=og(t,e.type);t!==a&&(Q(te,e),Q(ee,a))}function Ee(e){te.current===e&&(X(ee),X(te)),W.current===e&&(X(W),Ro._currentValue=F)}var ve,Ye;function ke(e){if(ve===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);ve=t&&t[1]||"",Ye=-1<a.stack.indexOf(`
43
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
44
- `+ve+e+Ye}var yt=!1;function tn(e,t){if(!e||yt)return"";yt=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var Z=function(){throw Error()};if(Object.defineProperty(Z.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Z,[])}catch(q){var H=q}Reflect.construct(e,[],Z)}else{try{Z.call()}catch(q){H=q}e.call(Z.prototype)}}else{try{throw Error()}catch(q){H=q}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch(q){if(q&&H&&typeof q.stack=="string")return[q.stack,H.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var s=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");s&&s.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=r.DetermineComponentFrameRoot(),b=c[0],S=c[1];if(b&&S){var _=b.split(`
45
- `),U=S.split(`
46
- `);for(s=r=0;r<_.length&&!_[r].includes("DetermineComponentFrameRoot");)r++;for(;s<U.length&&!U[s].includes("DetermineComponentFrameRoot");)s++;if(r===_.length||s===U.length)for(r=_.length-1,s=U.length-1;1<=r&&0<=s&&_[r]!==U[s];)s--;for(;1<=r&&0<=s;r--,s--)if(_[r]!==U[s]){if(r!==1||s!==1)do if(r--,s--,0>s||_[r]!==U[s]){var P=`
47
- `+_[r].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=r&&0<=s);break}}}finally{yt=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?ke(a):""}function Yt(e,t){switch(e.tag){case 26:case 27:case 5:return ke(e.type);case 16:return ke("Lazy");case 13:return e.child!==t&&t!==null?ke("Suspense Fallback"):ke("Suspense");case 19:return ke("SuspenseList");case 0:case 15:return tn(e.type,!1);case 11:return tn(e.type.render,!1);case 1:return tn(e.type,!0);case 31:return ke("Activity");default:return""}}function Wa(e){try{var t="",a=null;do t+=Yt(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
48
- Error generating stack: `+r.message+`
49
- `+r.stack}}var ht=Object.prototype.hasOwnProperty,Ur=n.unstable_scheduleCallback,Br=n.unstable_cancelCallback,At=n.unstable_shouldYield,ha=n.unstable_requestPaint,_t=n.unstable_now,oc=n.unstable_getCurrentPriorityLevel,el=n.unstable_ImmediatePriority,Zo=n.unstable_UserBlockingPriority,tl=n.unstable_NormalPriority,Hr=n.unstable_LowPriority,Yn=n.unstable_IdlePriority,Io=n.log,pa=n.unstable_setDisableYieldValue,nl=null,jt=null;function hn(e){if(typeof Io=="function"&&pa(e),jt&&typeof jt.setStrictMode=="function")try{jt.setStrictMode(nl,e)}catch{}}var Nt=Math.clz32?Math.clz32:Nn,ic=Math.log,Vr=Math.LN2;function Nn(e){return e>>>=0,e===0?32:31-(ic(e)/Vr|0)|0}var Ml=256,Ol=262144,al=4194304;function Cn(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 Ne(e,t,a){var r=e.pendingLanes;if(r===0)return 0;var s=0,c=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var S=r&134217727;return S!==0?(r=S&~c,r!==0?s=Cn(r):(b&=S,b!==0?s=Cn(b):a||(a=S&~e,a!==0&&(s=Cn(a))))):(S=r&~c,S!==0?s=Cn(S):b!==0?s=Cn(b):a||(a=r&~e,a!==0&&(s=Cn(a)))),s===0?0:t!==0&&t!==s&&(t&c)===0&&(c=s&-s,a=t&-t,c>=a||c===32&&(a&4194048)!==0)?t:s}function Je(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function pt(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 Ct(){var e=al;return al<<=1,(al&62914560)===0&&(al=4194304),e}function ga(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function tt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ot(e,t,a,r,s,c){var b=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var S=e.entanglements,_=e.expirationTimes,U=e.hiddenUpdates;for(a=b&~a;0<a;){var P=31-Nt(a),Z=1<<P;S[P]=0,_[P]=-1;var H=U[P];if(H!==null)for(U[P]=null,P=0;P<H.length;P++){var q=H[P];q!==null&&(q.lane&=-536870913)}a&=~Z}r!==0&&ll(e,r,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(b&~t))}function ll(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Nt(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function Dt(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-Nt(a),s=1<<r;s&t|e[r]&t&&(e[r]|=t),a&=~s}}function kt(e,t){var a=t&-t;return a=(a&42)!==0?1:Dl(a),(a&(e.suspendedLanes|t))!==0?0:a}function Dl(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 pn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function sc(){var e=Y.p;return e!==0?e:(e=window.event,e===void 0?32:_g(e.type))}function Xf(e,t){var a=Y.p;try{return Y.p=e,t()}finally{Y.p=a}}var va=Math.random().toString(36).slice(2),bt="__reactFiber$"+va,zt="__reactProps$"+va,kl="__reactContainer$"+va,cc="__reactEvents$"+va,Vx="__reactListeners$"+va,$x="__reactHandles$"+va,Pf="__reactResources$"+va,$r="__reactMarker$"+va;function uc(e){delete e[bt],delete e[zt],delete e[cc],delete e[Vx],delete e[$x]}function zl(e){var t=e[bt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[kl]||a[bt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=mg(e);e!==null;){if(a=e[bt])return a;e=mg(e)}return t}e=a,a=e.parentNode}return null}function Ll(e){if(e=e[bt]||e[kl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function qr(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Ul(e){var t=e[Pf];return t||(t=e[Pf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function gt(e){e[$r]=!0}var Qf=new Set,Kf={};function rl(e,t){Bl(e,t),Bl(e+"Capture",t)}function Bl(e,t){for(Kf[e]=t,e=0;e<t.length;e++)Qf.add(t[e])}var qx=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]*$"),Zf={},If={};function Yx(e){return ht.call(If,e)?!0:ht.call(Zf,e)?!1:qx.test(e)?If[e]=!0:(Zf[e]=!0,!1)}function Fo(e,t,a){if(Yx(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Jo(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 Gn(e,t,a,r){if(r===null)e.removeAttribute(a);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+r)}}function nn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ff(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Gx(e,t,a){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var s=r.get,c=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(b){a=""+b,c.call(this,b)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return a},setValue:function(b){a=""+b},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dc(e){if(!e._valueTracker){var t=Ff(e)?"checked":"value";e._valueTracker=Gx(e,t,""+e[t])}}function Jf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=Ff(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function Wo(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 Xx=/[\n"\\]/g;function an(e){return e.replace(Xx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function fc(e,t,a,r,s,c,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=""+nn(t)):e.value!==""+nn(t)&&(e.value=""+nn(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?mc(e,b,nn(t)):a!=null?mc(e,b,nn(a)):r!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?e.name=""+nn(S):e.removeAttribute("name")}function Wf(e,t,a,r,s,c,b,S){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){dc(e);return}a=a!=null?""+nn(a):"",t=t!=null?""+nn(t):a,S||t===e.value||(e.value=t),e.defaultValue=t}r=r??s,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=S?e.checked:!!r,e.defaultChecked=!!r,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),dc(e)}function mc(e,t,a){t==="number"&&Wo(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Hl(e,t,a,r){if(e=e.options,t){t={};for(var s=0;s<a.length;s++)t["$"+a[s]]=!0;for(a=0;a<e.length;a++)s=t.hasOwnProperty("$"+e[a].value),e[a].selected!==s&&(e[a].selected=s),s&&r&&(e[a].defaultSelected=!0)}else{for(a=""+nn(a),t=null,s=0;s<e.length;s++){if(e[s].value===a){e[s].selected=!0,r&&(e[s].defaultSelected=!0);return}t!==null||e[s].disabled||(t=e[s])}t!==null&&(t.selected=!0)}}function em(e,t,a){if(t!=null&&(t=""+nn(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+nn(a):""}function tm(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(i(92));if(re(r)){if(1<r.length)throw Error(i(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=nn(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),dc(e)}function Vl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Px=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 nm(e,t,a){var r=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,a):typeof a!="number"||a===0||Px.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function am(e,t,a){if(t!=null&&typeof t!="object")throw Error(i(62));if(e=e.style,a!=null){for(var r in a)!a.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var s in t)r=t[s],t.hasOwnProperty(s)&&a[s]!==r&&nm(e,s,r)}else for(var c in t)t.hasOwnProperty(c)&&nm(e,c,t[c])}function hc(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 Qx=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"]]),Kx=/^[\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 ei(e){return Kx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Xn(){}var pc=null;function gc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var $l=null,ql=null;function lm(e){var t=Ll(e);if(t&&(e=t.stateNode)){var a=e[zt]||null;e:switch(e=t.stateNode,t.type){case"input":if(fc(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="'+an(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var s=r[zt]||null;if(!s)throw Error(i(90));fc(r,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name)}}for(t=0;t<a.length;t++)r=a[t],r.form===e.form&&Jf(r)}break e;case"textarea":em(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Hl(e,!!a.multiple,t,!1)}}}var vc=!1;function rm(e,t,a){if(vc)return e(t,a);vc=!0;try{var r=e(t);return r}finally{if(vc=!1,($l!==null||ql!==null)&&($i(),$l&&(t=$l,e=ql,ql=$l=null,lm(t),e)))for(t=0;t<e.length;t++)lm(e[t])}}function Yr(e,t){var a=e.stateNode;if(a===null)return null;var r=a[zt]||null;if(r===null)return null;a=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(i(231,t,typeof a));return a}var Pn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yc=!1;if(Pn)try{var Gr={};Object.defineProperty(Gr,"passive",{get:function(){yc=!0}}),window.addEventListener("test",Gr,Gr),window.removeEventListener("test",Gr,Gr)}catch{yc=!1}var ya=null,bc=null,ti=null;function om(){if(ti)return ti;var e,t=bc,a=t.length,r,s="value"in ya?ya.value:ya.textContent,c=s.length;for(e=0;e<a&&t[e]===s[e];e++);var b=a-e;for(r=1;r<=b&&t[a-r]===s[c-r];r++);return ti=s.slice(e,1<r?1-r:void 0)}function ni(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 ai(){return!0}function im(){return!1}function Lt(e){function t(a,r,s,c,b){this._reactName=a,this._targetInst=s,this.type=r,this.nativeEvent=c,this.target=b,this.currentTarget=null;for(var S in e)e.hasOwnProperty(S)&&(a=e[S],this[S]=a?a(c):c[S]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ai:im,this.isPropagationStopped=im,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=ai)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ai)},persist:function(){},isPersistent:ai}),t}var ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},li=Lt(ol),Xr=g({},ol,{view:0,detail:0}),Zx=Lt(Xr),xc,Sc,Pr,ri=g({},Xr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ec,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!==Pr&&(Pr&&e.type==="mousemove"?(xc=e.screenX-Pr.screenX,Sc=e.screenY-Pr.screenY):Sc=xc=0,Pr=e),xc)},movementY:function(e){return"movementY"in e?e.movementY:Sc}}),sm=Lt(ri),Ix=g({},ri,{dataTransfer:0}),Fx=Lt(Ix),Jx=g({},Xr,{relatedTarget:0}),wc=Lt(Jx),Wx=g({},ol,{animationName:0,elapsedTime:0,pseudoElement:0}),e1=Lt(Wx),t1=g({},ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),n1=Lt(t1),a1=g({},ol,{data:0}),cm=Lt(a1),l1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},r1={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"},o1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function i1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=o1[e])?!!t[e]:!1}function Ec(){return i1}var s1=g({},Xr,{key:function(e){if(e.key){var t=l1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ni(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?r1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ec,charCode:function(e){return e.type==="keypress"?ni(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ni(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),c1=Lt(s1),u1=g({},ri,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),um=Lt(u1),d1=g({},Xr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ec}),f1=Lt(d1),m1=g({},ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),h1=Lt(m1),p1=g({},ri,{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}),g1=Lt(p1),v1=g({},ol,{newState:0,oldState:0}),y1=Lt(v1),b1=[9,13,27,32],Nc=Pn&&"CompositionEvent"in window,Qr=null;Pn&&"documentMode"in document&&(Qr=document.documentMode);var x1=Pn&&"TextEvent"in window&&!Qr,dm=Pn&&(!Nc||Qr&&8<Qr&&11>=Qr),fm=" ",mm=!1;function hm(e,t){switch(e){case"keyup":return b1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function pm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Yl=!1;function S1(e,t){switch(e){case"compositionend":return pm(t);case"keypress":return t.which!==32?null:(mm=!0,fm);case"textInput":return e=t.data,e===fm&&mm?null:e;default:return null}}function w1(e,t){if(Yl)return e==="compositionend"||!Nc&&hm(e,t)?(e=om(),ti=bc=ya=null,Yl=!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 dm&&t.locale!=="ko"?null:t.data;default:return null}}var E1={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 gm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!E1[e.type]:t==="textarea"}function vm(e,t,a,r){$l?ql?ql.push(r):ql=[r]:$l=r,t=Ki(t,"onChange"),0<t.length&&(a=new li("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Kr=null,Zr=null;function N1(e){Wp(e,0)}function oi(e){var t=qr(e);if(Jf(t))return e}function ym(e,t){if(e==="change")return t}var bm=!1;if(Pn){var Cc;if(Pn){var Tc="oninput"in document;if(!Tc){var xm=document.createElement("div");xm.setAttribute("oninput","return;"),Tc=typeof xm.oninput=="function"}Cc=Tc}else Cc=!1;bm=Cc&&(!document.documentMode||9<document.documentMode)}function Sm(){Kr&&(Kr.detachEvent("onpropertychange",wm),Zr=Kr=null)}function wm(e){if(e.propertyName==="value"&&oi(Zr)){var t=[];vm(t,Zr,e,gc(e)),rm(N1,t)}}function C1(e,t,a){e==="focusin"?(Sm(),Kr=t,Zr=a,Kr.attachEvent("onpropertychange",wm)):e==="focusout"&&Sm()}function T1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return oi(Zr)}function R1(e,t){if(e==="click")return oi(t)}function A1(e,t){if(e==="input"||e==="change")return oi(t)}function _1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Gt=typeof Object.is=="function"?Object.is:_1;function Ir(e,t){if(Gt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),r=Object.keys(t);if(a.length!==r.length)return!1;for(r=0;r<a.length;r++){var s=a[r];if(!ht.call(t,s)||!Gt(e[s],t[s]))return!1}return!0}function Em(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Nm(e,t){var a=Em(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Em(a)}}function Cm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Cm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Tm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wo(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=Wo(e.document)}return t}function Rc(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 j1=Pn&&"documentMode"in document&&11>=document.documentMode,Gl=null,Ac=null,Fr=null,_c=!1;function Rm(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;_c||Gl==null||Gl!==Wo(r)||(r=Gl,"selectionStart"in r&&Rc(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Fr&&Ir(Fr,r)||(Fr=r,r=Ki(Ac,"onSelect"),0<r.length&&(t=new li("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=Gl)))}function il(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Xl={animationend:il("Animation","AnimationEnd"),animationiteration:il("Animation","AnimationIteration"),animationstart:il("Animation","AnimationStart"),transitionrun:il("Transition","TransitionRun"),transitionstart:il("Transition","TransitionStart"),transitioncancel:il("Transition","TransitionCancel"),transitionend:il("Transition","TransitionEnd")},jc={},Am={};Pn&&(Am=document.createElement("div").style,"AnimationEvent"in window||(delete Xl.animationend.animation,delete Xl.animationiteration.animation,delete Xl.animationstart.animation),"TransitionEvent"in window||delete Xl.transitionend.transition);function sl(e){if(jc[e])return jc[e];if(!Xl[e])return e;var t=Xl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Am)return jc[e]=t[a];return e}var _m=sl("animationend"),jm=sl("animationiteration"),Mm=sl("animationstart"),M1=sl("transitionrun"),O1=sl("transitionstart"),D1=sl("transitioncancel"),Om=sl("transitionend"),Dm=new Map,Mc="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(" ");Mc.push("scrollEnd");function gn(e,t){Dm.set(e,t),rl(t,[e])}var ii=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)},ln=[],Pl=0,Oc=0;function si(){for(var e=Pl,t=Oc=Pl=0;t<e;){var a=ln[t];ln[t++]=null;var r=ln[t];ln[t++]=null;var s=ln[t];ln[t++]=null;var c=ln[t];if(ln[t++]=null,r!==null&&s!==null){var b=r.pending;b===null?s.next=s:(s.next=b.next,b.next=s),r.pending=s}c!==0&&km(a,s,c)}}function ci(e,t,a,r){ln[Pl++]=e,ln[Pl++]=t,ln[Pl++]=a,ln[Pl++]=r,Oc|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Dc(e,t,a,r){return ci(e,t,a,r),ui(e)}function cl(e,t){return ci(e,null,null,t),ui(e)}function km(e,t,a){e.lanes|=a;var r=e.alternate;r!==null&&(r.lanes|=a);for(var s=!1,c=e.return;c!==null;)c.childLanes|=a,r=c.alternate,r!==null&&(r.childLanes|=a),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(s=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,s&&t!==null&&(s=31-Nt(a),e=c.hiddenUpdates,r=e[s],r===null?e[s]=[t]:r.push(t),t.lane=a|536870912),c):null}function ui(e){if(50<xo)throw xo=0,qu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ql={};function k1(e,t,a,r){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Xt(e,t,a,r){return new k1(e,t,a,r)}function kc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Qn(e,t){var a=e.alternate;return a===null?(a=Xt(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 zm(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 di(e,t,a,r,s,c){var b=0;if(r=e,typeof e=="function")kc(e)&&(b=1);else if(typeof e=="string")b=HS(e,a,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=Xt(31,a,t,s),e.elementType=ae,e.lanes=c,e;case E:return ul(a.children,s,c,t);case T:b=8,s|=24;break;case R:return e=Xt(12,a,t,s|2),e.elementType=R,e.lanes=c,e;case $:return e=Xt(13,a,t,s),e.elementType=$,e.lanes=c,e;case G:return e=Xt(19,a,t,s),e.elementType=G,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:b=10;break e;case A:b=9;break e;case k:b=11;break e;case B:b=14;break e;case V:b=16,r=null;break e}b=29,a=Error(i(130,e===null?"null":typeof e,"")),r=null}return t=Xt(b,a,t,s),t.elementType=e,t.type=r,t.lanes=c,t}function ul(e,t,a,r){return e=Xt(7,e,r,t),e.lanes=a,e}function zc(e,t,a){return e=Xt(6,e,null,t),e.lanes=a,e}function Lm(e){var t=Xt(18,null,null,0);return t.stateNode=e,t}function Lc(e,t,a){return t=Xt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Um=new WeakMap;function rn(e,t){if(typeof e=="object"&&e!==null){var a=Um.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Wa(t)},Um.set(e,t),t)}return{value:e,source:t,stack:Wa(t)}}var Kl=[],Zl=0,fi=null,Jr=0,on=[],sn=0,ba=null,Tn=1,Rn="";function Kn(e,t){Kl[Zl++]=Jr,Kl[Zl++]=fi,fi=e,Jr=t}function Bm(e,t,a){on[sn++]=Tn,on[sn++]=Rn,on[sn++]=ba,ba=e;var r=Tn;e=Rn;var s=32-Nt(r)-1;r&=~(1<<s),a+=1;var c=32-Nt(t)+s;if(30<c){var b=s-s%5;c=(r&(1<<b)-1).toString(32),r>>=b,s-=b,Tn=1<<32-Nt(t)+s|a<<s|r,Rn=c+e}else Tn=1<<c|a<<s|r,Rn=e}function Uc(e){e.return!==null&&(Kn(e,1),Bm(e,1,0))}function Bc(e){for(;e===fi;)fi=Kl[--Zl],Kl[Zl]=null,Jr=Kl[--Zl],Kl[Zl]=null;for(;e===ba;)ba=on[--sn],on[sn]=null,Rn=on[--sn],on[sn]=null,Tn=on[--sn],on[sn]=null}function Hm(e,t){on[sn++]=Tn,on[sn++]=Rn,on[sn++]=ba,Tn=t.id,Rn=t.overflow,ba=e}var xt=null,Ie=null,ze=!1,xa=null,cn=!1,Hc=Error(i(519));function Sa(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Wr(rn(t,e)),Hc}function Vm(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[bt]=e,t[zt]=r,a){case"dialog":je("cancel",t),je("close",t);break;case"iframe":case"object":case"embed":je("load",t);break;case"video":case"audio":for(a=0;a<wo.length;a++)je(wo[a],t);break;case"source":je("error",t);break;case"img":case"image":case"link":je("error",t),je("load",t);break;case"details":je("toggle",t);break;case"input":je("invalid",t),Wf(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":je("invalid",t);break;case"textarea":je("invalid",t),tm(t,r.value,r.defaultValue,r.children)}a=r.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||r.suppressHydrationWarning===!0||ag(t.textContent,a)?(r.popover!=null&&(je("beforetoggle",t),je("toggle",t)),r.onScroll!=null&&je("scroll",t),r.onScrollEnd!=null&&je("scrollend",t),r.onClick!=null&&(t.onclick=Xn),t=!0):t=!1,t||Sa(e,!0)}function $m(e){for(xt=e.return;xt;)switch(xt.tag){case 5:case 31:case 13:cn=!1;return;case 27:case 3:cn=!0;return;default:xt=xt.return}}function Il(e){if(e!==xt)return!1;if(!ze)return $m(e),ze=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ad(e.type,e.memoizedProps)),a=!a),a&&Ie&&Sa(e),$m(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Ie=fg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Ie=fg(e)}else t===27?(t=Ie,za(e.type)?(e=sd,sd=null,Ie=e):Ie=t):Ie=xt?dn(e.stateNode.nextSibling):null;return!0}function dl(){Ie=xt=null,ze=!1}function Vc(){var e=xa;return e!==null&&(Vt===null?Vt=e:Vt.push.apply(Vt,e),xa=null),e}function Wr(e){xa===null?xa=[e]:xa.push(e)}var $c=j(null),fl=null,Zn=null;function wa(e,t,a){Q($c,t._currentValue),t._currentValue=a}function In(e){e._currentValue=$c.current,X($c)}function qc(e,t,a){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===a)break;e=e.return}}function Yc(e,t,a,r){var s=e.child;for(s!==null&&(s.return=e);s!==null;){var c=s.dependencies;if(c!==null){var b=s.child;c=c.firstContext;e:for(;c!==null;){var S=c;c=s;for(var _=0;_<t.length;_++)if(S.context===t[_]){c.lanes|=a,S=c.alternate,S!==null&&(S.lanes|=a),qc(c.return,a,e),r||(b=null);break e}c=S.next}}else if(s.tag===18){if(b=s.return,b===null)throw Error(i(341));b.lanes|=a,c=b.alternate,c!==null&&(c.lanes|=a),qc(b,a,e),b=null}else b=s.child;if(b!==null)b.return=s;else for(b=s;b!==null;){if(b===e){b=null;break}if(s=b.sibling,s!==null){s.return=b.return,b=s;break}b=b.return}s=b}}function Fl(e,t,a,r){e=null;for(var s=t,c=!1;s!==null;){if(!c){if((s.flags&524288)!==0)c=!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;Gt(s.pendingProps.value,b.value)||(e!==null?e.push(S):e=[S])}}else if(s===W.current){if(b=s.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(Ro):e=[Ro])}s=s.return}e!==null&&Yc(t,e,a,r),t.flags|=262144}function mi(e){for(e=e.firstContext;e!==null;){if(!Gt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ml(e){fl=e,Zn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function St(e){return qm(fl,e)}function hi(e,t){return fl===null&&ml(e),qm(e,t)}function qm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Zn===null){if(e===null)throw Error(i(308));Zn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Zn=Zn.next=t;return a}var z1=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},L1=n.unstable_scheduleCallback,U1=n.unstable_NormalPriority,ot={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Gc(){return{controller:new z1,data:new Map,refCount:0}}function eo(e){e.refCount--,e.refCount===0&&L1(U1,function(){e.controller.abort()})}var to=null,Xc=0,Jl=0,Wl=null;function B1(e,t){if(to===null){var a=to=[];Xc=0,Jl=Ku(),Wl={status:"pending",value:void 0,then:function(r){a.push(r)}}}return Xc++,t.then(Ym,Ym),t}function Ym(){if(--Xc===0&&to!==null){Wl!==null&&(Wl.status="fulfilled");var e=to;to=null,Jl=0,Wl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function H1(e,t){var a=[],r={status:"pending",value:null,reason:null,then:function(s){a.push(s)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var s=0;s<a.length;s++)(0,a[s])(t)},function(s){for(r.status="rejected",r.reason=s,s=0;s<a.length;s++)(0,a[s])(void 0)}),r}var Gm=O.S;O.S=function(e,t){Rp=_t(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&B1(e,t),Gm!==null&&Gm(e,t)};var hl=j(null);function Pc(){var e=hl.current;return e!==null?e:Qe.pooledCache}function pi(e,t){t===null?Q(hl,hl.current):Q(hl,t.pool)}function Xm(){var e=Pc();return e===null?null:{parent:ot._currentValue,pool:e}}var er=Error(i(460)),Qc=Error(i(474)),gi=Error(i(542)),vi={then:function(){}};function Pm(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Qm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Xn,Xn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zm(e),e;default:if(typeof t.status=="string")t.then(Xn,Xn);else{if(e=Qe,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=r}},function(r){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Zm(e),e}throw gl=t,er}}function pl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(gl=a,er):a}}var gl=null;function Km(){if(gl===null)throw Error(i(459));var e=gl;return gl=null,e}function Zm(e){if(e===er||e===gi)throw Error(i(483))}var tr=null,no=0;function yi(e){var t=no;return no+=1,tr===null&&(tr=[]),Qm(tr,e,t)}function ao(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function bi(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 Im(e){function t(z,D){if(e){var L=z.deletions;L===null?(z.deletions=[D],z.flags|=16):L.push(D)}}function a(z,D){if(!e)return null;for(;D!==null;)t(z,D),D=D.sibling;return null}function r(z){for(var D=new Map;z!==null;)z.key!==null?D.set(z.key,z):D.set(z.index,z),z=z.sibling;return D}function s(z,D){return z=Qn(z,D),z.index=0,z.sibling=null,z}function c(z,D,L){return z.index=L,e?(L=z.alternate,L!==null?(L=L.index,L<D?(z.flags|=67108866,D):L):(z.flags|=67108866,D)):(z.flags|=1048576,D)}function b(z){return e&&z.alternate===null&&(z.flags|=67108866),z}function S(z,D,L,K){return D===null||D.tag!==6?(D=zc(L,z.mode,K),D.return=z,D):(D=s(D,L),D.return=z,D)}function _(z,D,L,K){var be=L.type;return be===E?P(z,D,L.props.children,K,L.key):D!==null&&(D.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===V&&pl(be)===D.type)?(D=s(D,L.props),ao(D,L),D.return=z,D):(D=di(L.type,L.key,L.props,null,z.mode,K),ao(D,L),D.return=z,D)}function U(z,D,L,K){return D===null||D.tag!==4||D.stateNode.containerInfo!==L.containerInfo||D.stateNode.implementation!==L.implementation?(D=Lc(L,z.mode,K),D.return=z,D):(D=s(D,L.children||[]),D.return=z,D)}function P(z,D,L,K,be){return D===null||D.tag!==7?(D=ul(L,z.mode,K,be),D.return=z,D):(D=s(D,L),D.return=z,D)}function Z(z,D,L){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=zc(""+D,z.mode,L),D.return=z,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case C:return L=di(D.type,D.key,D.props,null,z.mode,L),ao(L,D),L.return=z,L;case N:return D=Lc(D,z.mode,L),D.return=z,D;case V:return D=pl(D),Z(z,D,L)}if(re(D)||me(D))return D=ul(D,z.mode,L,null),D.return=z,D;if(typeof D.then=="function")return Z(z,yi(D),L);if(D.$$typeof===M)return Z(z,hi(z,D),L);bi(z,D)}return null}function H(z,D,L,K){var be=D!==null?D.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return be!==null?null:S(z,D,""+L,K);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case C:return L.key===be?_(z,D,L,K):null;case N:return L.key===be?U(z,D,L,K):null;case V:return L=pl(L),H(z,D,L,K)}if(re(L)||me(L))return be!==null?null:P(z,D,L,K,null);if(typeof L.then=="function")return H(z,D,yi(L),K);if(L.$$typeof===M)return H(z,D,hi(z,L),K);bi(z,L)}return null}function q(z,D,L,K,be){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return z=z.get(L)||null,S(D,z,""+K,be);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case C:return z=z.get(K.key===null?L:K.key)||null,_(D,z,K,be);case N:return z=z.get(K.key===null?L:K.key)||null,U(D,z,K,be);case V:return K=pl(K),q(z,D,L,K,be)}if(re(K)||me(K))return z=z.get(L)||null,P(D,z,K,be,null);if(typeof K.then=="function")return q(z,D,L,yi(K),be);if(K.$$typeof===M)return q(z,D,L,hi(D,K),be);bi(D,K)}return null}function fe(z,D,L,K){for(var be=null,Ue=null,ye=D,Re=D=0,De=null;ye!==null&&Re<L.length;Re++){ye.index>Re?(De=ye,ye=null):De=ye.sibling;var Be=H(z,ye,L[Re],K);if(Be===null){ye===null&&(ye=De);break}e&&ye&&Be.alternate===null&&t(z,ye),D=c(Be,D,Re),Ue===null?be=Be:Ue.sibling=Be,Ue=Be,ye=De}if(Re===L.length)return a(z,ye),ze&&Kn(z,Re),be;if(ye===null){for(;Re<L.length;Re++)ye=Z(z,L[Re],K),ye!==null&&(D=c(ye,D,Re),Ue===null?be=ye:Ue.sibling=ye,Ue=ye);return ze&&Kn(z,Re),be}for(ye=r(ye);Re<L.length;Re++)De=q(ye,z,Re,L[Re],K),De!==null&&(e&&De.alternate!==null&&ye.delete(De.key===null?Re:De.key),D=c(De,D,Re),Ue===null?be=De:Ue.sibling=De,Ue=De);return e&&ye.forEach(function(Va){return t(z,Va)}),ze&&Kn(z,Re),be}function xe(z,D,L,K){if(L==null)throw Error(i(151));for(var be=null,Ue=null,ye=D,Re=D=0,De=null,Be=L.next();ye!==null&&!Be.done;Re++,Be=L.next()){ye.index>Re?(De=ye,ye=null):De=ye.sibling;var Va=H(z,ye,Be.value,K);if(Va===null){ye===null&&(ye=De);break}e&&ye&&Va.alternate===null&&t(z,ye),D=c(Va,D,Re),Ue===null?be=Va:Ue.sibling=Va,Ue=Va,ye=De}if(Be.done)return a(z,ye),ze&&Kn(z,Re),be;if(ye===null){for(;!Be.done;Re++,Be=L.next())Be=Z(z,Be.value,K),Be!==null&&(D=c(Be,D,Re),Ue===null?be=Be:Ue.sibling=Be,Ue=Be);return ze&&Kn(z,Re),be}for(ye=r(ye);!Be.done;Re++,Be=L.next())Be=q(ye,z,Re,Be.value,K),Be!==null&&(e&&Be.alternate!==null&&ye.delete(Be.key===null?Re:Be.key),D=c(Be,D,Re),Ue===null?be=Be:Ue.sibling=Be,Ue=Be);return e&&ye.forEach(function(IS){return t(z,IS)}),ze&&Kn(z,Re),be}function Pe(z,D,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 C:e:{for(var be=L.key;D!==null;){if(D.key===be){if(be=L.type,be===E){if(D.tag===7){a(z,D.sibling),K=s(D,L.props.children),K.return=z,z=K;break e}}else if(D.elementType===be||typeof be=="object"&&be!==null&&be.$$typeof===V&&pl(be)===D.type){a(z,D.sibling),K=s(D,L.props),ao(K,L),K.return=z,z=K;break e}a(z,D);break}else t(z,D);D=D.sibling}L.type===E?(K=ul(L.props.children,z.mode,K,L.key),K.return=z,z=K):(K=di(L.type,L.key,L.props,null,z.mode,K),ao(K,L),K.return=z,z=K)}return b(z);case N:e:{for(be=L.key;D!==null;){if(D.key===be)if(D.tag===4&&D.stateNode.containerInfo===L.containerInfo&&D.stateNode.implementation===L.implementation){a(z,D.sibling),K=s(D,L.children||[]),K.return=z,z=K;break e}else{a(z,D);break}else t(z,D);D=D.sibling}K=Lc(L,z.mode,K),K.return=z,z=K}return b(z);case V:return L=pl(L),Pe(z,D,L,K)}if(re(L))return fe(z,D,L,K);if(me(L)){if(be=me(L),typeof be!="function")throw Error(i(150));return L=be.call(L),xe(z,D,L,K)}if(typeof L.then=="function")return Pe(z,D,yi(L),K);if(L.$$typeof===M)return Pe(z,D,hi(z,L),K);bi(z,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,D!==null&&D.tag===6?(a(z,D.sibling),K=s(D,L),K.return=z,z=K):(a(z,D),K=zc(L,z.mode,K),K.return=z,z=K),b(z)):a(z,D)}return function(z,D,L,K){try{no=0;var be=Pe(z,D,L,K);return tr=null,be}catch(ye){if(ye===er||ye===gi)throw ye;var Ue=Xt(29,ye,null,z.mode);return Ue.lanes=K,Ue.return=z,Ue}finally{}}}var vl=Im(!0),Fm=Im(!1),Ea=!1;function Kc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Zc(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 Na(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ca(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(He&2)!==0){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,t=ui(e),km(e,null,a),t}return ci(e,r,t,a),ui(e)}function lo(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Dt(e,a)}}function Ic(e,t){var a=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,a===r)){var s=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var b={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?s=c=b:c=c.next=b,a=a.next}while(a!==null);c===null?s=c=t:c=c.next=t}else s=c=t;a={baseState:r.baseState,firstBaseUpdate:s,lastBaseUpdate:c,shared:r.shared,callbacks:r.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Fc=!1;function ro(){if(Fc){var e=Wl;if(e!==null)throw e}}function oo(e,t,a,r){Fc=!1;var s=e.updateQueue;Ea=!1;var c=s.firstBaseUpdate,b=s.lastBaseUpdate,S=s.shared.pending;if(S!==null){s.shared.pending=null;var _=S,U=_.next;_.next=null,b===null?c=U:b.next=U,b=_;var P=e.alternate;P!==null&&(P=P.updateQueue,S=P.lastBaseUpdate,S!==b&&(S===null?P.firstBaseUpdate=U:S.next=U,P.lastBaseUpdate=_))}if(c!==null){var Z=s.baseState;b=0,P=U=_=null,S=c;do{var H=S.lane&-536870913,q=H!==S.lane;if(q?(Oe&H)===H:(r&H)===H){H!==0&&H===Jl&&(Fc=!0),P!==null&&(P=P.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var fe=e,xe=S;H=t;var Pe=a;switch(xe.tag){case 1:if(fe=xe.payload,typeof fe=="function"){Z=fe.call(Pe,Z,H);break e}Z=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=xe.payload,H=typeof fe=="function"?fe.call(Pe,Z,H):fe,H==null)break e;Z=g({},Z,H);break e;case 2:Ea=!0}}H=S.callback,H!==null&&(e.flags|=64,q&&(e.flags|=8192),q=s.callbacks,q===null?s.callbacks=[H]:q.push(H))}else q={lane:H,tag:S.tag,payload:S.payload,callback:S.callback,next:null},P===null?(U=P=q,_=Z):P=P.next=q,b|=H;if(S=S.next,S===null){if(S=s.shared.pending,S===null)break;q=S,S=q.next,q.next=null,s.lastBaseUpdate=q,s.shared.pending=null}}while(!0);P===null&&(_=Z),s.baseState=_,s.firstBaseUpdate=U,s.lastBaseUpdate=P,c===null&&(s.shared.lanes=0),ja|=b,e.lanes=b,e.memoizedState=Z}}function Jm(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Wm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Jm(a[e],t)}var nr=j(null),xi=j(0);function eh(e,t){e=ra,Q(xi,e),Q(nr,t),ra=e|t.baseLanes}function Jc(){Q(xi,ra),Q(nr,nr.current)}function Wc(){ra=xi.current,X(nr),X(xi)}var Pt=j(null),un=null;function Ta(e){var t=e.alternate;Q(lt,lt.current&1),Q(Pt,e),un===null&&(t===null||nr.current!==null||t.memoizedState!==null)&&(un=e)}function eu(e){Q(lt,lt.current),Q(Pt,e),un===null&&(un=e)}function th(e){e.tag===22?(Q(lt,lt.current),Q(Pt,e),un===null&&(un=e)):Ra()}function Ra(){Q(lt,lt.current),Q(Pt,Pt.current)}function Qt(e){X(Pt),un===e&&(un=null),X(lt)}var lt=j(0);function Si(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||od(a)||id(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 Fn=0,Te=null,Ge=null,it=null,wi=!1,ar=!1,yl=!1,Ei=0,io=0,lr=null,V1=0;function nt(){throw Error(i(321))}function tu(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Gt(e[a],t[a]))return!1;return!0}function nu(e,t,a,r,s,c){return Fn=c,Te=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Bh:vu,yl=!1,c=a(r,s),yl=!1,ar&&(c=ah(t,a,r,s)),nh(e),c}function nh(e){O.H=uo;var t=Ge!==null&&Ge.next!==null;if(Fn=0,it=Ge=Te=null,wi=!1,io=0,lr=null,t)throw Error(i(300));e===null||st||(e=e.dependencies,e!==null&&mi(e)&&(st=!0))}function ah(e,t,a,r){Te=e;var s=0;do{if(ar&&(lr=null),io=0,ar=!1,25<=s)throw Error(i(301));if(s+=1,it=Ge=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}O.H=Hh,c=t(a,r)}while(ar);return c}function $1(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?so(t):t,e=e.useState()[0],(Ge!==null?Ge.memoizedState:null)!==e&&(Te.flags|=1024),t}function au(){var e=Ei!==0;return Ei=0,e}function lu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function ru(e){if(wi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}wi=!1}Fn=0,it=Ge=Te=null,ar=!1,io=Ei=0,lr=null}function Mt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return it===null?Te.memoizedState=it=e:it=it.next=e,it}function rt(){if(Ge===null){var e=Te.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var t=it===null?Te.memoizedState:it.next;if(t!==null)it=t,Ge=e;else{if(e===null)throw Te.alternate===null?Error(i(467)):Error(i(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},it===null?Te.memoizedState=it=e:it=it.next=e}return it}function Ni(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function so(e){var t=io;return io+=1,lr===null&&(lr=[]),e=Qm(lr,e,t),t=Te,(it===null?t.memoizedState:it.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Bh:vu),e}function Ci(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return so(e);if(e.$$typeof===M)return St(e)}throw Error(i(438,String(e)))}function ou(e){var t=null,a=Te.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=Te.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(s){return s.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Ni(),Te.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=oe;return t.index++,a}function Jn(e,t){return typeof t=="function"?t(e):t}function Ti(e){var t=rt();return iu(t,Ge,e)}function iu(e,t,a){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=a;var s=e.baseQueue,c=r.pending;if(c!==null){if(s!==null){var b=s.next;s.next=c.next,c.next=b}t.baseQueue=s=c,r.pending=null}if(c=e.baseState,s===null)e.memoizedState=c;else{t=s.next;var S=b=null,_=null,U=t,P=!1;do{var Z=U.lane&-536870913;if(Z!==U.lane?(Oe&Z)===Z:(Fn&Z)===Z){var H=U.revertLane;if(H===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),Z===Jl&&(P=!0);else if((Fn&H)===H){U=U.next,H===Jl&&(P=!0);continue}else Z={lane:0,revertLane:U.revertLane,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},_===null?(S=_=Z,b=c):_=_.next=Z,Te.lanes|=H,ja|=H;Z=U.action,yl&&a(c,Z),c=U.hasEagerState?U.eagerState:a(c,Z)}else H={lane:Z,revertLane:U.revertLane,gesture:U.gesture,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null},_===null?(S=_=H,b=c):_=_.next=H,Te.lanes|=Z,ja|=Z;U=U.next}while(U!==null&&U!==t);if(_===null?b=c:_.next=S,!Gt(c,e.memoizedState)&&(st=!0,P&&(a=Wl,a!==null)))throw a;e.memoizedState=c,e.baseState=b,e.baseQueue=_,r.lastRenderedState=c}return s===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function su(e){var t=rt(),a=t.queue;if(a===null)throw Error(i(311));a.lastRenderedReducer=e;var r=a.dispatch,s=a.pending,c=t.memoizedState;if(s!==null){a.pending=null;var b=s=s.next;do c=e(c,b.action),b=b.next;while(b!==s);Gt(c,t.memoizedState)||(st=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,r]}function lh(e,t,a){var r=Te,s=rt(),c=ze;if(c){if(a===void 0)throw Error(i(407));a=a()}else a=t();var b=!Gt((Ge||s).memoizedState,a);if(b&&(s.memoizedState=a,st=!0),s=s.queue,du(ih.bind(null,r,s,e),[e]),s.getSnapshot!==t||b||it!==null&&it.memoizedState.tag&1){if(r.flags|=2048,rr(9,{destroy:void 0},oh.bind(null,r,s,a,t),null),Qe===null)throw Error(i(349));c||(Fn&127)!==0||rh(r,t,a)}return a}function rh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Te.updateQueue,t===null?(t=Ni(),Te.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function oh(e,t,a,r){t.value=a,t.getSnapshot=r,sh(t)&&ch(e)}function ih(e,t,a){return a(function(){sh(t)&&ch(e)})}function sh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Gt(e,a)}catch{return!0}}function ch(e){var t=cl(e,2);t!==null&&$t(t,e,2)}function cu(e){var t=Mt();if(typeof e=="function"){var a=e;if(e=a(),yl){hn(!0);try{a()}finally{hn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:e},t}function uh(e,t,a,r){return e.baseState=a,iu(e,Ge,typeof r=="function"?r:Jn)}function q1(e,t,a,r,s){if(_i(e))throw Error(i(485));if(e=t.action,e!==null){var c={payload:s,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){c.listeners.push(b)}};O.T!==null?a(!0):c.isTransition=!1,r(c),a=t.pending,a===null?(c.next=t.pending=c,dh(t,c)):(c.next=a.next,t.pending=a.next=c)}}function dh(e,t){var a=t.action,r=t.payload,s=e.state;if(t.isTransition){var c=O.T,b={};O.T=b;try{var S=a(s,r),_=O.S;_!==null&&_(b,S),fh(e,t,S)}catch(U){uu(e,t,U)}finally{c!==null&&b.types!==null&&(c.types=b.types),O.T=c}}else try{c=a(s,r),fh(e,t,c)}catch(U){uu(e,t,U)}}function fh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){mh(e,t,r)},function(r){return uu(e,t,r)}):mh(e,t,a)}function mh(e,t,a){t.status="fulfilled",t.value=a,hh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,dh(e,a)))}function uu(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,hh(t),t=t.next;while(t!==r)}e.action=null}function hh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ph(e,t){return t}function gh(e,t){if(ze){var a=Qe.formState;if(a!==null){e:{var r=Te;if(ze){if(Ie){t:{for(var s=Ie,c=cn;s.nodeType!==8;){if(!c){s=null;break t}if(s=dn(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){Ie=dn(s.nextSibling),r=s.data==="F!";break e}}Sa(r)}r=!1}r&&(t=a[0])}}return a=Mt(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ph,lastRenderedState:t},a.queue=r,a=zh.bind(null,Te,r),r.dispatch=a,r=cu(!1),c=gu.bind(null,Te,!1,r.queue),r=Mt(),s={state:t,dispatch:null,action:e,pending:null},r.queue=s,a=q1.bind(null,Te,s,c,a),s.dispatch=a,r.memoizedState=e,[t,a,!1]}function vh(e){var t=rt();return yh(t,Ge,e)}function yh(e,t,a){if(t=iu(e,t,ph)[0],e=Ti(Jn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=so(t)}catch(b){throw b===er?gi:b}else r=t;t=rt();var s=t.queue,c=s.dispatch;return a!==t.memoizedState&&(Te.flags|=2048,rr(9,{destroy:void 0},Y1.bind(null,s,a),null)),[r,c,e]}function Y1(e,t){e.action=t}function bh(e){var t=rt(),a=Ge;if(a!==null)return yh(t,a,e);rt(),t=t.memoizedState,a=rt();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function rr(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=Te.updateQueue,t===null&&(t=Ni(),Te.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(r=a.next,a.next=e,e.next=r,t.lastEffect=e),e}function xh(){return rt().memoizedState}function Ri(e,t,a,r){var s=Mt();Te.flags|=e,s.memoizedState=rr(1|t,{destroy:void 0},a,r===void 0?null:r)}function Ai(e,t,a,r){var s=rt();r=r===void 0?null:r;var c=s.memoizedState.inst;Ge!==null&&r!==null&&tu(r,Ge.memoizedState.deps)?s.memoizedState=rr(t,c,a,r):(Te.flags|=e,s.memoizedState=rr(1|t,c,a,r))}function Sh(e,t){Ri(8390656,8,e,t)}function du(e,t){Ai(2048,8,e,t)}function G1(e){Te.flags|=4;var t=Te.updateQueue;if(t===null)t=Ni(),Te.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function wh(e){var t=rt().memoizedState;return G1({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Eh(e,t){return Ai(4,2,e,t)}function Nh(e,t){return Ai(4,4,e,t)}function Ch(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 Th(e,t,a){a=a!=null?a.concat([e]):null,Ai(4,4,Ch.bind(null,t,e),a)}function fu(){}function Rh(e,t){var a=rt();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&tu(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function Ah(e,t){var a=rt();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&tu(t,r[1]))return r[0];if(r=e(),yl){hn(!0);try{e()}finally{hn(!1)}}return a.memoizedState=[r,t],r}function mu(e,t,a){return a===void 0||(Fn&1073741824)!==0&&(Oe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=_p(),Te.lanes|=e,ja|=e,a)}function _h(e,t,a,r){return Gt(a,t)?a:nr.current!==null?(e=mu(e,a,r),Gt(e,t)||(st=!0),e):(Fn&42)===0||(Fn&1073741824)!==0&&(Oe&261930)===0?(st=!0,e.memoizedState=a):(e=_p(),Te.lanes|=e,ja|=e,t)}function jh(e,t,a,r,s){var c=Y.p;Y.p=c!==0&&8>c?c:8;var b=O.T,S={};O.T=S,gu(e,!1,t,a);try{var _=s(),U=O.S;if(U!==null&&U(S,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var P=H1(_,r);co(e,t,P,It(e))}else co(e,t,r,It(e))}catch(Z){co(e,t,{then:function(){},status:"rejected",reason:Z},It())}finally{Y.p=c,b!==null&&S.types!==null&&(b.types=S.types),O.T=b}}function X1(){}function hu(e,t,a,r){if(e.tag!==5)throw Error(i(476));var s=Mh(e).queue;jh(e,s,t,F,a===null?X1:function(){return Oh(e),a(r)})}function Mh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:F,baseState:F,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:F},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Oh(e){var t=Mh(e);t.next===null&&(t=e.alternate.memoizedState),co(e,t.next.queue,{},It())}function pu(){return St(Ro)}function Dh(){return rt().memoizedState}function kh(){return rt().memoizedState}function P1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=It();e=Na(a);var r=Ca(t,e,a);r!==null&&($t(r,t,a),lo(r,t,a)),t={cache:Gc()},e.payload=t;return}t=t.return}}function Q1(e,t,a){var r=It();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},_i(e)?Lh(t,a):(a=Dc(e,t,a,r),a!==null&&($t(a,e,r),Uh(a,t,r)))}function zh(e,t,a){var r=It();co(e,t,a,r)}function co(e,t,a,r){var s={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(_i(e))Lh(t,s);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var b=t.lastRenderedState,S=c(b,a);if(s.hasEagerState=!0,s.eagerState=S,Gt(S,b))return ci(e,t,s,0),Qe===null&&si(),!1}catch{}finally{}if(a=Dc(e,t,s,r),a!==null)return $t(a,e,r),Uh(a,t,r),!0}return!1}function gu(e,t,a,r){if(r={lane:2,revertLane:Ku(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},_i(e)){if(t)throw Error(i(479))}else t=Dc(e,a,r,2),t!==null&&$t(t,e,2)}function _i(e){var t=e.alternate;return e===Te||t!==null&&t===Te}function Lh(e,t){ar=wi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Uh(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Dt(e,a)}}var uo={readContext:St,use:Ci,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};uo.useEffectEvent=nt;var Bh={readContext:St,use:Ci,useCallback:function(e,t){return Mt().memoizedState=[e,t===void 0?null:t],e},useContext:St,useEffect:Sh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ri(4194308,4,Ch.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ri(4194308,4,e,t)},useInsertionEffect:function(e,t){Ri(4,2,e,t)},useMemo:function(e,t){var a=Mt();t=t===void 0?null:t;var r=e();if(yl){hn(!0);try{e()}finally{hn(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=Mt();if(a!==void 0){var s=a(t);if(yl){hn(!0);try{a(t)}finally{hn(!1)}}}else s=t;return r.memoizedState=r.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},r.queue=e,e=e.dispatch=Q1.bind(null,Te,e),[r.memoizedState,e]},useRef:function(e){var t=Mt();return e={current:e},t.memoizedState=e},useState:function(e){e=cu(e);var t=e.queue,a=zh.bind(null,Te,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:fu,useDeferredValue:function(e,t){var a=Mt();return mu(a,e,t)},useTransition:function(){var e=cu(!1);return e=jh.bind(null,Te,e.queue,!0,!1),Mt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=Te,s=Mt();if(ze){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),Qe===null)throw Error(i(349));(Oe&127)!==0||rh(r,t,a)}s.memoizedState=a;var c={value:a,getSnapshot:t};return s.queue=c,Sh(ih.bind(null,r,c,e),[e]),r.flags|=2048,rr(9,{destroy:void 0},oh.bind(null,r,c,a,t),null),a},useId:function(){var e=Mt(),t=Qe.identifierPrefix;if(ze){var a=Rn,r=Tn;a=(r&~(1<<32-Nt(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ei++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=V1++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:pu,useFormState:gh,useActionState:gh,useOptimistic:function(e){var t=Mt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=gu.bind(null,Te,!0,a),a.dispatch=t,[e,t]},useMemoCache:ou,useCacheRefresh:function(){return Mt().memoizedState=P1.bind(null,Te)},useEffectEvent:function(e){var t=Mt(),a={impl:e};return t.memoizedState=a,function(){if((He&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},vu={readContext:St,use:Ci,useCallback:Rh,useContext:St,useEffect:du,useImperativeHandle:Th,useInsertionEffect:Eh,useLayoutEffect:Nh,useMemo:Ah,useReducer:Ti,useRef:xh,useState:function(){return Ti(Jn)},useDebugValue:fu,useDeferredValue:function(e,t){var a=rt();return _h(a,Ge.memoizedState,e,t)},useTransition:function(){var e=Ti(Jn)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:so(e),t]},useSyncExternalStore:lh,useId:Dh,useHostTransitionStatus:pu,useFormState:vh,useActionState:vh,useOptimistic:function(e,t){var a=rt();return uh(a,Ge,e,t)},useMemoCache:ou,useCacheRefresh:kh};vu.useEffectEvent=wh;var Hh={readContext:St,use:Ci,useCallback:Rh,useContext:St,useEffect:du,useImperativeHandle:Th,useInsertionEffect:Eh,useLayoutEffect:Nh,useMemo:Ah,useReducer:su,useRef:xh,useState:function(){return su(Jn)},useDebugValue:fu,useDeferredValue:function(e,t){var a=rt();return Ge===null?mu(a,e,t):_h(a,Ge.memoizedState,e,t)},useTransition:function(){var e=su(Jn)[0],t=rt().memoizedState;return[typeof e=="boolean"?e:so(e),t]},useSyncExternalStore:lh,useId:Dh,useHostTransitionStatus:pu,useFormState:bh,useActionState:bh,useOptimistic:function(e,t){var a=rt();return Ge!==null?uh(a,Ge,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:ou,useCacheRefresh:kh};Hh.useEffectEvent=wh;function yu(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:g({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var bu={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=It(),s=Na(r);s.payload=t,a!=null&&(s.callback=a),t=Ca(e,s,r),t!==null&&($t(t,e,r),lo(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=It(),s=Na(r);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=Ca(e,s,r),t!==null&&($t(t,e,r),lo(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=It(),r=Na(a);r.tag=2,t!=null&&(r.callback=t),t=Ca(e,r,a),t!==null&&($t(t,e,a),lo(t,e,a))}};function Vh(e,t,a,r,s,c,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,c,b):t.prototype&&t.prototype.isPureReactComponent?!Ir(a,r)||!Ir(s,c):!0}function $h(e,t,a,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,r),t.state!==e&&bu.enqueueReplaceState(t,t.state,null)}function bl(e,t){var a=t;if("ref"in t){a={};for(var r in t)r!=="ref"&&(a[r]=t[r])}if(e=e.defaultProps){a===t&&(a=g({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function qh(e){ii(e)}function Yh(e){console.error(e)}function Gh(e){ii(e)}function ji(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Xh(e,t,a){try{var r=e.onCaughtError;r(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(s){setTimeout(function(){throw s})}}function xu(e,t,a){return a=Na(a),a.tag=3,a.payload={element:null},a.callback=function(){ji(e,t)},a}function Ph(e){return e=Na(e),e.tag=3,e}function Qh(e,t,a,r){var s=a.type.getDerivedStateFromError;if(typeof s=="function"){var c=r.value;e.payload=function(){return s(c)},e.callback=function(){Xh(t,a,r)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){Xh(t,a,r),typeof s!="function"&&(Ma===null?Ma=new Set([this]):Ma.add(this));var S=r.stack;this.componentDidCatch(r.value,{componentStack:S!==null?S:""})})}function K1(e,t,a,r,s){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&Fl(t,a,s,!0),a=Pt.current,a!==null){switch(a.tag){case 31:case 13:return un===null?qi():a.alternate===null&&at===0&&(at=3),a.flags&=-257,a.flags|=65536,a.lanes=s,r===vi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),Xu(e,r,s)),!1;case 22:return a.flags|=65536,r===vi?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([r]):a.add(r)),Xu(e,r,s)),!1}throw Error(i(435,a.tag))}return Xu(e,r,s),qi(),!1}if(ze)return t=Pt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,r!==Hc&&(e=Error(i(422),{cause:r}),Wr(rn(e,a)))):(r!==Hc&&(t=Error(i(423),{cause:r}),Wr(rn(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,r=rn(r,a),s=xu(e.stateNode,r,s),Ic(e,s),at!==4&&(at=2)),!1;var c=Error(i(520),{cause:r});if(c=rn(c,a),bo===null?bo=[c]:bo.push(c),at!==4&&(at=2),t===null)return!0;r=rn(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=xu(a.stateNode,r,e),Ic(a,e),!1;case 1:if(t=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Ma===null||!Ma.has(c))))return a.flags|=65536,s&=-s,a.lanes|=s,s=Ph(s),Qh(s,e,a,r),Ic(a,s),!1}a=a.return}while(a!==null);return!1}var Su=Error(i(461)),st=!1;function wt(e,t,a,r){t.child=e===null?Fm(t,null,a,r):vl(t,e.child,a,r)}function Kh(e,t,a,r,s){a=a.render;var c=t.ref;if("ref"in r){var b={};for(var S in r)S!=="ref"&&(b[S]=r[S])}else b=r;return ml(t),r=nu(e,t,a,b,c,s),S=au(),e!==null&&!st?(lu(e,t,s),Wn(e,t,s)):(ze&&S&&Uc(t),t.flags|=1,wt(e,t,r,s),t.child)}function Zh(e,t,a,r,s){if(e===null){var c=a.type;return typeof c=="function"&&!kc(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Ih(e,t,c,r,s)):(e=di(a.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!_u(e,s)){var b=c.memoizedProps;if(a=a.compare,a=a!==null?a:Ir,a(b,r)&&e.ref===t.ref)return Wn(e,t,s)}return t.flags|=1,e=Qn(c,r),e.ref=t.ref,e.return=t,t.child=e}function Ih(e,t,a,r,s){if(e!==null){var c=e.memoizedProps;if(Ir(c,r)&&e.ref===t.ref)if(st=!1,t.pendingProps=r=c,_u(e,s))(e.flags&131072)!==0&&(st=!0);else return t.lanes=e.lanes,Wn(e,t,s)}return wu(e,t,a,r,s)}function Fh(e,t,a,r){var s=r.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,e!==null){for(r=t.child=e.child,s=0;r!==null;)s=s|r.lanes|r.childLanes,r=r.sibling;r=s&~c}else r=0,t.child=null;return Jh(e,t,c,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&pi(t,c!==null?c.cachePool:null),c!==null?eh(t,c):Jc(),th(t);else return r=t.lanes=536870912,Jh(e,t,c!==null?c.baseLanes|a:a,a,r)}else c!==null?(pi(t,c.cachePool),eh(t,c),Ra(),t.memoizedState=null):(e!==null&&pi(t,null),Jc(),Ra());return wt(e,t,s,a),t.child}function fo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Jh(e,t,a,r,s){var c=Pc();return c=c===null?null:{parent:ot._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&pi(t,null),Jc(),th(t),e!==null&&Fl(e,t,r,!0),t.childLanes=s,null}function Mi(e,t){return t=Di({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Wh(e,t,a){return vl(t,e.child,null,a),e=Mi(t,t.pendingProps),e.flags|=2,Qt(t),t.memoizedState=null,e}function Z1(e,t,a){var r=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ze){if(r.mode==="hidden")return e=Mi(t,r),t.lanes=536870912,fo(null,e);if(eu(t),(e=Ie)?(e=dg(e,cn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ba!==null?{id:Tn,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},a=Lm(e),a.return=t,t.child=a,xt=t,Ie=null)):e=null,e===null)throw Sa(t);return t.lanes=536870912,null}return Mi(t,r)}var c=e.memoizedState;if(c!==null){var b=c.dehydrated;if(eu(t),s)if(t.flags&256)t.flags&=-257,t=Wh(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(st||Fl(e,t,a,!1),s=(a&e.childLanes)!==0,st||s){if(r=Qe,r!==null&&(b=kt(r,a),b!==0&&b!==c.retryLane))throw c.retryLane=b,cl(e,b),$t(r,e,b),Su;qi(),t=Wh(e,t,a)}else e=c.treeContext,Ie=dn(b.nextSibling),xt=t,ze=!0,xa=null,cn=!1,e!==null&&Hm(t,e),t=Mi(t,r),t.flags|=4096;return t}return e=Qn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Oi(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 wu(e,t,a,r,s){return ml(t),a=nu(e,t,a,r,void 0,s),r=au(),e!==null&&!st?(lu(e,t,s),Wn(e,t,s)):(ze&&r&&Uc(t),t.flags|=1,wt(e,t,a,s),t.child)}function ep(e,t,a,r,s,c){return ml(t),t.updateQueue=null,a=ah(t,r,a,s),nh(e),r=au(),e!==null&&!st?(lu(e,t,c),Wn(e,t,c)):(ze&&r&&Uc(t),t.flags|=1,wt(e,t,a,c),t.child)}function tp(e,t,a,r,s){if(ml(t),t.stateNode===null){var c=Ql,b=a.contextType;typeof b=="object"&&b!==null&&(c=St(b)),c=new a(r,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=bu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=r,c.state=t.memoizedState,c.refs={},Kc(t),b=a.contextType,c.context=typeof b=="object"&&b!==null?St(b):Ql,c.state=t.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(yu(t,a,b,r),c.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(b=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),b!==c.state&&bu.enqueueReplaceState(c,c.state,null),oo(t,r,c,s),ro(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){c=t.stateNode;var S=t.memoizedProps,_=bl(a,S);c.props=_;var U=c.context,P=a.contextType;b=Ql,typeof P=="object"&&P!==null&&(b=St(P));var Z=a.getDerivedStateFromProps;P=typeof Z=="function"||typeof c.getSnapshotBeforeUpdate=="function",S=t.pendingProps!==S,P||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(S||U!==b)&&$h(t,c,r,b),Ea=!1;var H=t.memoizedState;c.state=H,oo(t,r,c,s),ro(),U=t.memoizedState,S||H!==U||Ea?(typeof Z=="function"&&(yu(t,a,Z,r),U=t.memoizedState),(_=Ea||Vh(t,a,_,r,H,U,b))?(P||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=U),c.props=r,c.state=U,c.context=b,r=_):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{c=t.stateNode,Zc(e,t),b=t.memoizedProps,P=bl(a,b),c.props=P,Z=t.pendingProps,H=c.context,U=a.contextType,_=Ql,typeof U=="object"&&U!==null&&(_=St(U)),S=a.getDerivedStateFromProps,(U=typeof S=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b!==Z||H!==_)&&$h(t,c,r,_),Ea=!1,H=t.memoizedState,c.state=H,oo(t,r,c,s),ro();var q=t.memoizedState;b!==Z||H!==q||Ea||e!==null&&e.dependencies!==null&&mi(e.dependencies)?(typeof S=="function"&&(yu(t,a,S,r),q=t.memoizedState),(P=Ea||Vh(t,a,P,r,H,q,_)||e!==null&&e.dependencies!==null&&mi(e.dependencies))?(U||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,q,_),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,q,_)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=q),c.props=r,c.state=q,c.context=_,r=P):(typeof c.componentDidUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&H===e.memoizedState||(t.flags|=1024),r=!1)}return c=r,Oi(e,t),r=(t.flags&128)!==0,c||r?(c=t.stateNode,a=r&&typeof a.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&r?(t.child=vl(t,e.child,null,s),t.child=vl(t,null,a,s)):wt(e,t,a,s),t.memoizedState=c.state,e=t.child):e=Wn(e,t,s),e}function np(e,t,a,r){return dl(),t.flags|=256,wt(e,t,a,r),t.child}var Eu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Nu(e){return{baseLanes:e,cachePool:Xm()}}function Cu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Zt),e}function ap(e,t,a){var r=t.pendingProps,s=!1,c=(t.flags&128)!==0,b;if((b=c)||(b=e!==null&&e.memoizedState===null?!1:(lt.current&2)!==0),b&&(s=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(ze){if(s?Ta(t):Ra(),(e=Ie)?(e=dg(e,cn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ba!==null?{id:Tn,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},a=Lm(e),a.return=t,t.child=a,xt=t,Ie=null)):e=null,e===null)throw Sa(t);return id(e)?t.lanes=32:t.lanes=536870912,null}var S=r.children;return r=r.fallback,s?(Ra(),s=t.mode,S=Di({mode:"hidden",children:S},s),r=ul(r,s,a,null),S.return=t,r.return=t,S.sibling=r,t.child=S,r=t.child,r.memoizedState=Nu(a),r.childLanes=Cu(e,b,a),t.memoizedState=Eu,fo(null,r)):(Ta(t),Tu(t,S))}var _=e.memoizedState;if(_!==null&&(S=_.dehydrated,S!==null)){if(c)t.flags&256?(Ta(t),t.flags&=-257,t=Ru(e,t,a)):t.memoizedState!==null?(Ra(),t.child=e.child,t.flags|=128,t=null):(Ra(),S=r.fallback,s=t.mode,r=Di({mode:"visible",children:r.children},s),S=ul(S,s,a,null),S.flags|=2,r.return=t,S.return=t,r.sibling=S,t.child=r,vl(t,e.child,null,a),r=t.child,r.memoizedState=Nu(a),r.childLanes=Cu(e,b,a),t.memoizedState=Eu,t=fo(null,r));else if(Ta(t),id(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var U=b.dgst;b=U,r=Error(i(419)),r.stack="",r.digest=b,Wr({value:r,source:null,stack:null}),t=Ru(e,t,a)}else if(st||Fl(e,t,a,!1),b=(a&e.childLanes)!==0,st||b){if(b=Qe,b!==null&&(r=kt(b,a),r!==0&&r!==_.retryLane))throw _.retryLane=r,cl(e,r),$t(b,e,r),Su;od(S)||qi(),t=Ru(e,t,a)}else od(S)?(t.flags|=192,t.child=e.child,t=null):(e=_.treeContext,Ie=dn(S.nextSibling),xt=t,ze=!0,xa=null,cn=!1,e!==null&&Hm(t,e),t=Tu(t,r.children),t.flags|=4096);return t}return s?(Ra(),S=r.fallback,s=t.mode,_=e.child,U=_.sibling,r=Qn(_,{mode:"hidden",children:r.children}),r.subtreeFlags=_.subtreeFlags&65011712,U!==null?S=Qn(U,S):(S=ul(S,s,a,null),S.flags|=2),S.return=t,r.return=t,r.sibling=S,t.child=r,fo(null,r),r=t.child,S=e.child.memoizedState,S===null?S=Nu(a):(s=S.cachePool,s!==null?(_=ot._currentValue,s=s.parent!==_?{parent:_,pool:_}:s):s=Xm(),S={baseLanes:S.baseLanes|a,cachePool:s}),r.memoizedState=S,r.childLanes=Cu(e,b,a),t.memoizedState=Eu,fo(e.child,r)):(Ta(t),a=e.child,e=a.sibling,a=Qn(a,{mode:"visible",children:r.children}),a.return=t,a.sibling=null,e!==null&&(b=t.deletions,b===null?(t.deletions=[e],t.flags|=16):b.push(e)),t.child=a,t.memoizedState=null,a)}function Tu(e,t){return t=Di({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Di(e,t){return e=Xt(22,e,null,t),e.lanes=0,e}function Ru(e,t,a){return vl(t,e.child,null,a),e=Tu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function lp(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),qc(e.return,t,a)}function Au(e,t,a,r,s,c){var b=e.memoizedState;b===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:a,tailMode:s,treeForkCount:c}:(b.isBackwards=t,b.rendering=null,b.renderingStartTime=0,b.last=r,b.tail=a,b.tailMode=s,b.treeForkCount=c)}function rp(e,t,a){var r=t.pendingProps,s=r.revealOrder,c=r.tail;r=r.children;var b=lt.current,S=(b&2)!==0;if(S?(b=b&1|2,t.flags|=128):b&=1,Q(lt,b),wt(e,t,r,a),r=ze?Jr:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&lp(e,a,t);else if(e.tag===19)lp(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&&Si(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),Au(t,!1,s,a,c,r);break;case"backwards":case"unstable_legacy-backwards":for(a=null,s=t.child,t.child=null;s!==null;){if(e=s.alternate,e!==null&&Si(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}Au(t,!0,a,null,c,r);break;case"together":Au(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Wn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ja|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Fl(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=Qn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Qn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function _u(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&mi(e)))}function I1(e,t,a){switch(t.tag){case 3:le(t,t.stateNode.containerInfo),wa(t,ot,e.memoizedState.cache),dl();break;case 27:case 5:we(t);break;case 4:le(t,t.stateNode.containerInfo);break;case 10:wa(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,eu(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Ta(t),t.flags|=128,null):(a&t.child.childLanes)!==0?ap(e,t,a):(Ta(t),e=Wn(e,t,a),e!==null?e.sibling:null);Ta(t);break;case 19:var s=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(Fl(e,t,a,!1),r=(a&t.childLanes)!==0),s){if(r)return rp(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Q(lt,lt.current),r)break;return null;case 22:return t.lanes=0,Fh(e,t,a,t.pendingProps);case 24:wa(t,ot,e.memoizedState.cache)}return Wn(e,t,a)}function op(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)st=!0;else{if(!_u(e,a)&&(t.flags&128)===0)return st=!1,I1(e,t,a);st=(e.flags&131072)!==0}else st=!1,ze&&(t.flags&1048576)!==0&&Bm(t,Jr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=pl(t.elementType),t.type=e,typeof e=="function")kc(e)?(r=bl(e,r),t.tag=1,t=tp(null,t,e,r,a)):(t.tag=0,t=wu(null,t,e,r,a));else{if(e!=null){var s=e.$$typeof;if(s===k){t.tag=11,t=Kh(null,t,e,r,a);break e}else if(s===B){t.tag=14,t=Zh(null,t,e,r,a);break e}}throw t=de(e)||e,Error(i(306,t,""))}}return t;case 0:return wu(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,s=bl(r,t.pendingProps),tp(e,t,r,s,a);case 3:e:{if(le(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var c=t.memoizedState;s=c.element,Zc(e,t),oo(t,r,null,a);var b=t.memoizedState;if(r=b.cache,wa(t,ot,r),r!==c.cache&&Yc(t,[ot],a,!0),ro(),r=b.element,c.isDehydrated)if(c={element:r,isDehydrated:!1,cache:b.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=np(e,t,r,a);break e}else if(r!==s){s=rn(Error(i(424)),t),Wr(s),t=np(e,t,r,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ie=dn(e.firstChild),xt=t,ze=!0,xa=null,cn=!0,a=Fm(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(dl(),r===s){t=Wn(e,t,a);break e}wt(e,t,r,a)}t=t.child}return t;case 26:return Oi(e,t),e===null?(a=vg(t.type,null,t.pendingProps,null))?t.memoizedState=a:ze||(a=t.type,e=t.pendingProps,r=Zi(I.current).createElement(a),r[bt]=t,r[zt]=e,Et(r,a,e),gt(r),t.stateNode=r):t.memoizedState=vg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return we(t),e===null&&ze&&(r=t.stateNode=hg(t.type,t.pendingProps,I.current),xt=t,cn=!0,s=Ie,za(t.type)?(sd=s,Ie=dn(r.firstChild)):Ie=s),wt(e,t,t.pendingProps.children,a),Oi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ze&&((s=r=Ie)&&(r=TS(r,t.type,t.pendingProps,cn),r!==null?(t.stateNode=r,xt=t,Ie=dn(r.firstChild),cn=!1,s=!0):s=!1),s||Sa(t)),we(t),s=t.type,c=t.pendingProps,b=e!==null?e.memoizedProps:null,r=c.children,ad(s,c)?r=null:b!==null&&ad(s,b)&&(t.flags|=32),t.memoizedState!==null&&(s=nu(e,t,$1,null,null,a),Ro._currentValue=s),Oi(e,t),wt(e,t,r,a),t.child;case 6:return e===null&&ze&&((e=a=Ie)&&(a=RS(a,t.pendingProps,cn),a!==null?(t.stateNode=a,xt=t,Ie=null,e=!0):e=!1),e||Sa(t)),null;case 13:return ap(e,t,a);case 4:return le(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vl(t,null,r,a):wt(e,t,r,a),t.child;case 11:return Kh(e,t,t.type,t.pendingProps,a);case 7:return wt(e,t,t.pendingProps,a),t.child;case 8:return wt(e,t,t.pendingProps.children,a),t.child;case 12:return wt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,wa(t,t.type,r.value),wt(e,t,r.children,a),t.child;case 9:return s=t.type._context,r=t.pendingProps.children,ml(t),s=St(s),r=r(s),t.flags|=1,wt(e,t,r,a),t.child;case 14:return Zh(e,t,t.type,t.pendingProps,a);case 15:return Ih(e,t,t.type,t.pendingProps,a);case 19:return rp(e,t,a);case 31:return Z1(e,t,a);case 22:return Fh(e,t,a,t.pendingProps);case 24:return ml(t),r=St(ot),e===null?(s=Pc(),s===null&&(s=Qe,c=Gc(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=a),s=c),t.memoizedState={parent:r,cache:s},Kc(t),wa(t,ot,s)):((e.lanes&a)!==0&&(Zc(e,t),oo(t,null,null,a),ro()),s=e.memoizedState,c=t.memoizedState,s.parent!==r?(s={parent:r,cache:r},t.memoizedState=s,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=s),wa(t,ot,r)):(r=c.cache,wa(t,ot,r),r!==s.cache&&Yc(t,[ot],a,!0))),wt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ea(e){e.flags|=4}function ju(e,t,a,r,s){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(s&335544128)===s)if(e.stateNode.complete)e.flags|=8192;else if(Dp())e.flags|=8192;else throw gl=vi,Qc}else e.flags&=-16777217}function ip(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!wg(t))if(Dp())e.flags|=8192;else throw gl=vi,Qc}function ki(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Ct():536870912,e.lanes|=t,cr|=t)}function mo(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Fe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,r=0;if(t)for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,r|=s.subtreeFlags&65011712,r|=s.flags&65011712,s.return=e,s=s.sibling;else for(s=e.child;s!==null;)a|=s.lanes|s.childLanes,r|=s.subtreeFlags,r|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=r,e.childLanes=a,t}function F1(e,t,a){var r=t.pendingProps;switch(Bc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Fe(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),In(ot),ie(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Il(t)?ea(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Vc())),Fe(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(ea(t),c!==null?(Fe(t),ip(t,c)):(Fe(t),ju(t,s,null,r,a))):c?c!==e.memoizedState?(ea(t),Fe(t),ip(t,c)):(Fe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&ea(t),Fe(t),ju(t,s,e,r,a)),null;case 27:if(Ee(t),a=I.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ea(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Fe(t),null}e=ee.current,Il(t)?Vm(t):(e=hg(s,r,a),t.stateNode=e,ea(t))}return Fe(t),null;case 5:if(Ee(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ea(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Fe(t),null}if(c=ee.current,Il(t))Vm(t);else{var b=Zi(I.current);switch(c){case 1:c=b.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:c=b.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":c=b.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":c=b.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":c=b.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof r.is=="string"?b.createElement("select",{is:r.is}):b.createElement("select"),r.multiple?c.multiple=!0:r.size&&(c.size=r.size);break;default:c=typeof r.is=="string"?b.createElement(s,{is:r.is}):b.createElement(s)}}c[bt]=t,c[zt]=r;e:for(b=t.child;b!==null;){if(b.tag===5||b.tag===6)c.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=c;e:switch(Et(c,s,r),s){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&ea(t)}}return Fe(t),ju(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ea(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(i(166));if(e=I.current,Il(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,s=xt,s!==null)switch(s.tag){case 27:case 5:r=s.memoizedProps}e[bt]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||ag(e.nodeValue,a)),e||Sa(t,!0)}else e=Zi(e).createTextNode(r),e[bt]=t,t.stateNode=e}return Fe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=Il(t),a!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[bt]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),e=!1}else a=Vc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Qt(t),t):(Qt(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Fe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Il(t),r!==null&&r.dehydrated!==null){if(e===null){if(!s)throw Error(i(318));if(s=t.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(i(317));s[bt]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Fe(t),s=!1}else s=Vc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Qt(t),t):(Qt(t),null)}return Qt(t),(t.flags&128)!==0?(t.lanes=a,t):(a=r!==null,e=e!==null&&e.memoizedState!==null,a&&(r=t.child,s=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(s=r.alternate.memoizedState.cachePool.pool),c=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),c!==s&&(r.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),ki(t,t.updateQueue),Fe(t),null);case 4:return ie(),e===null&&Ju(t.stateNode.containerInfo),Fe(t),null;case 10:return In(t.type),Fe(t),null;case 19:if(X(lt),r=t.memoizedState,r===null)return Fe(t),null;if(s=(t.flags&128)!==0,c=r.rendering,c===null)if(s)mo(r,!1);else{if(at!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Si(e),c!==null){for(t.flags|=128,mo(r,!1),e=c.updateQueue,t.updateQueue=e,ki(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)zm(a,e),a=a.sibling;return Q(lt,lt.current&1|2),ze&&Kn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&_t()>Hi&&(t.flags|=128,s=!0,mo(r,!1),t.lanes=4194304)}else{if(!s)if(e=Si(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,ki(t,e),mo(r,!0),r.tail===null&&r.tailMode==="hidden"&&!c.alternate&&!ze)return Fe(t),null}else 2*_t()-r.renderingStartTime>Hi&&a!==536870912&&(t.flags|=128,s=!0,mo(r,!1),t.lanes=4194304);r.isBackwards?(c.sibling=t.child,t.child=c):(e=r.last,e!==null?e.sibling=c:t.child=c,r.last=c)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=_t(),e.sibling=null,a=lt.current,Q(lt,s?a&1|2:a&1),ze&&Kn(t,r.treeForkCount),e):(Fe(t),null);case 22:case 23:return Qt(t),Wc(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?(a&536870912)!==0&&(t.flags&128)===0&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),a=t.updateQueue,a!==null&&ki(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==a&&(t.flags|=2048),e!==null&&X(hl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),In(ot),Fe(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function J1(e,t){switch(Bc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return In(ot),ie(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ee(t),null;case 31:if(t.memoizedState!==null){if(Qt(t),t.alternate===null)throw Error(i(340));dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));dl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(lt),null;case 4:return ie(),null;case 10:return In(t.type),null;case 22:case 23:return Qt(t),Wc(),e!==null&&X(hl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return In(ot),null;case 25:return null;default:return null}}function sp(e,t){switch(Bc(t),t.tag){case 3:In(ot),ie();break;case 26:case 27:case 5:Ee(t);break;case 4:ie();break;case 31:t.memoizedState!==null&&Qt(t);break;case 13:Qt(t);break;case 19:X(lt);break;case 10:In(t.type);break;case 22:case 23:Qt(t),Wc(),e!==null&&X(hl);break;case 24:In(ot)}}function ho(e,t){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var s=r.next;a=s;do{if((a.tag&e)===e){r=void 0;var c=a.create,b=a.inst;r=c(),b.destroy=r}a=a.next}while(a!==s)}}catch(S){qe(t,t.return,S)}}function Aa(e,t,a){try{var r=t.updateQueue,s=r!==null?r.lastEffect:null;if(s!==null){var c=s.next;r=c;do{if((r.tag&e)===e){var b=r.inst,S=b.destroy;if(S!==void 0){b.destroy=void 0,s=t;var _=a,U=S;try{U()}catch(P){qe(s,_,P)}}}r=r.next}while(r!==c)}}catch(P){qe(t,t.return,P)}}function cp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Wm(t,a)}catch(r){qe(e,e.return,r)}}}function up(e,t,a){a.props=bl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){qe(e,t,r)}}function po(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(s){qe(e,t,s)}}function An(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(s){qe(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){qe(e,t,s)}else a.current=null}function dp(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(s){qe(e,e.return,s)}}function Mu(e,t,a){try{var r=e.stateNode;xS(r,e.type,a,t),r[zt]=t}catch(s){qe(e,e.return,s)}}function fp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&za(e.type)||e.tag===4}function Ou(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fp(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&&za(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 Du(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Xn));else if(r!==4&&(r===27&&za(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Du(e,t,a),e=e.sibling;e!==null;)Du(e,t,a),e=e.sibling}function zi(e,t,a){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(r!==4&&(r===27&&za(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(zi(e,t,a),e=e.sibling;e!==null;)zi(e,t,a),e=e.sibling}function mp(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Et(t,r,a),t[bt]=e,t[zt]=a}catch(c){qe(e,e.return,c)}}var ta=!1,ct=!1,ku=!1,hp=typeof WeakSet=="function"?WeakSet:Set,vt=null;function W1(e,t){if(e=e.containerInfo,td=ns,e=Tm(e),Rc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var r=a.getSelection&&a.getSelection();if(r&&r.rangeCount!==0){a=r.anchorNode;var s=r.anchorOffset,c=r.focusNode;r=r.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break e}var b=0,S=-1,_=-1,U=0,P=0,Z=e,H=null;t:for(;;){for(var q;Z!==a||s!==0&&Z.nodeType!==3||(S=b+s),Z!==c||r!==0&&Z.nodeType!==3||(_=b+r),Z.nodeType===3&&(b+=Z.nodeValue.length),(q=Z.firstChild)!==null;)H=Z,Z=q;for(;;){if(Z===e)break t;if(H===a&&++U===s&&(S=b),H===c&&++P===r&&(_=b),(q=Z.nextSibling)!==null)break;Z=H,H=Z.parentNode}Z=q}a=S===-1||_===-1?null:{start:S,end:_}}else a=null}a=a||{start:0,end:0}}else a=null;for(nd={focusedElem:e,selectionRange:a},ns=!1,vt=t;vt!==null;)if(t=vt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,vt=e;else for(;vt!==null;){switch(t=vt,c=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&&c!==null){e=void 0,a=t,s=c.memoizedProps,c=c.memoizedState,r=a.stateNode;try{var fe=bl(a.type,s);e=r.getSnapshotBeforeUpdate(fe,c),r.__reactInternalSnapshotBeforeUpdate=e}catch(xe){qe(a,a.return,xe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)rd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":rd(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,vt=e;break}vt=t.return}}function pp(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:aa(e,a),r&4&&ho(5,a);break;case 1:if(aa(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(b){qe(a,a.return,b)}else{var s=bl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){qe(a,a.return,b)}}r&64&&cp(a),r&512&&po(a,a.return);break;case 3:if(aa(e,a),r&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{Wm(e,t)}catch(b){qe(a,a.return,b)}}break;case 27:t===null&&r&4&&mp(a);case 26:case 5:aa(e,a),t===null&&r&4&&dp(a),r&512&&po(a,a.return);break;case 12:aa(e,a);break;case 31:aa(e,a),r&4&&yp(e,a);break;case 13:aa(e,a),r&4&&bp(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=sS.bind(null,a),AS(e,a))));break;case 22:if(r=a.memoizedState!==null||ta,!r){t=t!==null&&t.memoizedState!==null||ct,s=ta;var c=ct;ta=r,(ct=t)&&!c?la(e,a,(a.subtreeFlags&8772)!==0):aa(e,a),ta=s,ct=c}break;case 30:break;default:aa(e,a)}}function gp(e){var t=e.alternate;t!==null&&(e.alternate=null,gp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&uc(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 We=null,Ut=!1;function na(e,t,a){for(a=a.child;a!==null;)vp(e,t,a),a=a.sibling}function vp(e,t,a){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(nl,a)}catch{}switch(a.tag){case 26:ct||An(a,t),na(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ct||An(a,t);var r=We,s=Ut;za(a.type)&&(We=a.stateNode,Ut=!1),na(e,t,a),No(a.stateNode),We=r,Ut=s;break;case 5:ct||An(a,t);case 6:if(r=We,s=Ut,We=null,na(e,t,a),We=r,Ut=s,We!==null)if(Ut)try{(We.nodeType===9?We.body:We.nodeName==="HTML"?We.ownerDocument.body:We).removeChild(a.stateNode)}catch(c){qe(a,t,c)}else try{We.removeChild(a.stateNode)}catch(c){qe(a,t,c)}break;case 18:We!==null&&(Ut?(e=We,cg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),vr(e)):cg(We,a.stateNode));break;case 4:r=We,s=Ut,We=a.stateNode.containerInfo,Ut=!0,na(e,t,a),We=r,Ut=s;break;case 0:case 11:case 14:case 15:Aa(2,a,t),ct||Aa(4,a,t),na(e,t,a);break;case 1:ct||(An(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&up(a,t,r)),na(e,t,a);break;case 21:na(e,t,a);break;case 22:ct=(r=ct)||a.memoizedState!==null,na(e,t,a),ct=r;break;default:na(e,t,a)}}function yp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{vr(e)}catch(a){qe(t,t.return,a)}}}function bp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{vr(e)}catch(a){qe(t,t.return,a)}}function eS(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new hp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new hp),t;default:throw Error(i(435,e.tag))}}function Li(e,t){var a=eS(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var s=cS.bind(null,e,r);r.then(s,s)}})}function Bt(e,t){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var s=a[r],c=e,b=t,S=b;e:for(;S!==null;){switch(S.tag){case 27:if(za(S.type)){We=S.stateNode,Ut=!1;break e}break;case 5:We=S.stateNode,Ut=!1;break e;case 3:case 4:We=S.stateNode.containerInfo,Ut=!0;break e}S=S.return}if(We===null)throw Error(i(160));vp(c,b,s),We=null,Ut=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)xp(t,e),t=t.sibling}var vn=null;function xp(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Bt(t,e),Ht(e),r&4&&(Aa(3,e,e.return),ho(3,e),Aa(5,e,e.return));break;case 1:Bt(t,e),Ht(e),r&512&&(ct||a===null||An(a,a.return)),r&64&&ta&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?r:a.concat(r))));break;case 26:var s=vn;if(Bt(t,e),Ht(e),r&512&&(ct||a===null||An(a,a.return)),r&4){var c=a!==null?a.memoizedState:null;if(r=e.memoizedState,a===null)if(r===null)if(e.stateNode===null){e:{r=e.type,a=e.memoizedProps,s=s.ownerDocument||s;t:switch(r){case"title":c=s.getElementsByTagName("title")[0],(!c||c[$r]||c[bt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(r),s.head.insertBefore(c,s.querySelector("head > title"))),Et(c,r,a),c[bt]=e,gt(c),r=c;break e;case"link":var b=xg("link","href",s).get(r+(a.href||""));if(b){for(var S=0;S<b.length;S++)if(c=b[S],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){b.splice(S,1);break t}}c=s.createElement(r),Et(c,r,a),s.head.appendChild(c);break;case"meta":if(b=xg("meta","content",s).get(r+(a.content||""))){for(S=0;S<b.length;S++)if(c=b[S],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){b.splice(S,1);break t}}c=s.createElement(r),Et(c,r,a),s.head.appendChild(c);break;default:throw Error(i(468,r))}c[bt]=e,gt(c),r=c}e.stateNode=r}else Sg(s,e.type,e.stateNode);else e.stateNode=bg(s,r,e.memoizedProps);else c!==r?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,r===null?Sg(s,e.type,e.stateNode):bg(s,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Mu(e,e.memoizedProps,a.memoizedProps)}break;case 27:Bt(t,e),Ht(e),r&512&&(ct||a===null||An(a,a.return)),a!==null&&r&4&&Mu(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Bt(t,e),Ht(e),r&512&&(ct||a===null||An(a,a.return)),e.flags&32){s=e.stateNode;try{Vl(s,"")}catch(fe){qe(e,e.return,fe)}}r&4&&e.stateNode!=null&&(s=e.memoizedProps,Mu(e,s,a!==null?a.memoizedProps:s)),r&1024&&(ku=!0);break;case 6:if(Bt(t,e),Ht(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(fe){qe(e,e.return,fe)}}break;case 3:if(Ji=null,s=vn,vn=Ii(t.containerInfo),Bt(t,e),vn=s,Ht(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{vr(t.containerInfo)}catch(fe){qe(e,e.return,fe)}ku&&(ku=!1,Sp(e));break;case 4:r=vn,vn=Ii(e.stateNode.containerInfo),Bt(t,e),Ht(e),vn=r;break;case 12:Bt(t,e),Ht(e);break;case 31:Bt(t,e),Ht(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Li(e,r)));break;case 13:Bt(t,e),Ht(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Bi=_t()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Li(e,r)));break;case 22:s=e.memoizedState!==null;var _=a!==null&&a.memoizedState!==null,U=ta,P=ct;if(ta=U||s,ct=P||_,Bt(t,e),ct=P,ta=U,Ht(e),r&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||_||ta||ct||xl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){_=a=t;try{if(c=_.stateNode,s)b=c.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{S=_.stateNode;var Z=_.memoizedProps.style,H=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;S.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(fe){qe(_,_.return,fe)}}}else if(t.tag===6){if(a===null){_=t;try{_.stateNode.nodeValue=s?"":_.memoizedProps}catch(fe){qe(_,_.return,fe)}}}else if(t.tag===18){if(a===null){_=t;try{var q=_.stateNode;s?ug(q,!0):ug(_.stateNode,!1)}catch(fe){qe(_,_.return,fe)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(a=r.retryQueue,a!==null&&(r.retryQueue=null,Li(e,a))));break;case 19:Bt(t,e),Ht(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Li(e,r)));break;case 30:break;case 21:break;default:Bt(t,e),Ht(e)}}function Ht(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(fp(r)){a=r;break}r=r.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var s=a.stateNode,c=Ou(e);zi(e,c,s);break;case 5:var b=a.stateNode;a.flags&32&&(Vl(b,""),a.flags&=-33);var S=Ou(e);zi(e,S,b);break;case 3:case 4:var _=a.stateNode.containerInfo,U=Ou(e);Du(e,U,_);break;default:throw Error(i(161))}}catch(P){qe(e,e.return,P)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Sp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Sp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function aa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)pp(e,t.alternate,t),t=t.sibling}function xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Aa(4,t,t.return),xl(t);break;case 1:An(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&up(t,t.return,a),xl(t);break;case 27:No(t.stateNode);case 26:case 5:An(t,t.return),xl(t);break;case 22:t.memoizedState===null&&xl(t);break;case 30:xl(t);break;default:xl(t)}e=e.sibling}}function la(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,s=e,c=t,b=c.flags;switch(c.tag){case 0:case 11:case 15:la(s,c,a),ho(4,c);break;case 1:if(la(s,c,a),r=c,s=r.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(U){qe(r,r.return,U)}if(r=c,s=r.updateQueue,s!==null){var S=r.stateNode;try{var _=s.shared.hiddenCallbacks;if(_!==null)for(s.shared.hiddenCallbacks=null,s=0;s<_.length;s++)Jm(_[s],S)}catch(U){qe(r,r.return,U)}}a&&b&64&&cp(c),po(c,c.return);break;case 27:mp(c);case 26:case 5:la(s,c,a),a&&r===null&&b&4&&dp(c),po(c,c.return);break;case 12:la(s,c,a);break;case 31:la(s,c,a),a&&b&4&&yp(s,c);break;case 13:la(s,c,a),a&&b&4&&bp(s,c);break;case 22:c.memoizedState===null&&la(s,c,a),po(c,c.return);break;case 30:break;default:la(s,c,a)}t=t.sibling}}function zu(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&&eo(a))}function Lu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&eo(e))}function yn(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)wp(e,t,a,r),t=t.sibling}function wp(e,t,a,r){var s=t.flags;switch(t.tag){case 0:case 11:case 15:yn(e,t,a,r),s&2048&&ho(9,t);break;case 1:yn(e,t,a,r);break;case 3:yn(e,t,a,r),s&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&eo(e)));break;case 12:if(s&2048){yn(e,t,a,r),e=t.stateNode;try{var c=t.memoizedProps,b=c.id,S=c.onPostCommit;typeof S=="function"&&S(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(_){qe(t,t.return,_)}}else yn(e,t,a,r);break;case 31:yn(e,t,a,r);break;case 13:yn(e,t,a,r);break;case 23:break;case 22:c=t.stateNode,b=t.alternate,t.memoizedState!==null?c._visibility&2?yn(e,t,a,r):go(e,t):c._visibility&2?yn(e,t,a,r):(c._visibility|=2,or(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),s&2048&&zu(b,t);break;case 24:yn(e,t,a,r),s&2048&&Lu(t.alternate,t);break;default:yn(e,t,a,r)}}function or(e,t,a,r,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,b=t,S=a,_=r,U=b.flags;switch(b.tag){case 0:case 11:case 15:or(c,b,S,_,s),ho(8,b);break;case 23:break;case 22:var P=b.stateNode;b.memoizedState!==null?P._visibility&2?or(c,b,S,_,s):go(c,b):(P._visibility|=2,or(c,b,S,_,s)),s&&U&2048&&zu(b.alternate,b);break;case 24:or(c,b,S,_,s),s&&U&2048&&Lu(b.alternate,b);break;default:or(c,b,S,_,s)}t=t.sibling}}function go(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,r=t,s=r.flags;switch(r.tag){case 22:go(a,r),s&2048&&zu(r.alternate,r);break;case 24:go(a,r),s&2048&&Lu(r.alternate,r);break;default:go(a,r)}t=t.sibling}}var vo=8192;function ir(e,t,a){if(e.subtreeFlags&vo)for(e=e.child;e!==null;)Ep(e,t,a),e=e.sibling}function Ep(e,t,a){switch(e.tag){case 26:ir(e,t,a),e.flags&vo&&e.memoizedState!==null&&VS(a,vn,e.memoizedState,e.memoizedProps);break;case 5:ir(e,t,a);break;case 3:case 4:var r=vn;vn=Ii(e.stateNode.containerInfo),ir(e,t,a),vn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=vo,vo=16777216,ir(e,t,a),vo=r):ir(e,t,a));break;default:ir(e,t,a)}}function Np(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 yo(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];vt=r,Tp(r,e)}Np(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Cp(e),e=e.sibling}function Cp(e){switch(e.tag){case 0:case 11:case 15:yo(e),e.flags&2048&&Aa(9,e,e.return);break;case 3:yo(e);break;case 12:yo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Ui(e)):yo(e);break;default:yo(e)}}function Ui(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var r=t[a];vt=r,Tp(r,e)}Np(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Aa(8,t,t.return),Ui(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Ui(t));break;default:Ui(t)}e=e.sibling}}function Tp(e,t){for(;vt!==null;){var a=vt;switch(a.tag){case 0:case 11:case 15:Aa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var r=a.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:eo(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,vt=r;else e:for(a=e;vt!==null;){r=vt;var s=r.sibling,c=r.return;if(gp(r),r===a){vt=null;break e}if(s!==null){s.return=c,vt=s;break e}vt=c}}}var tS={getCacheForType:function(e){var t=St(ot),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return St(ot).controller.signal}},nS=typeof WeakMap=="function"?WeakMap:Map,He=0,Qe=null,_e=null,Oe=0,$e=0,Kt=null,_a=!1,sr=!1,Uu=!1,ra=0,at=0,ja=0,Sl=0,Bu=0,Zt=0,cr=0,bo=null,Vt=null,Hu=!1,Bi=0,Rp=0,Hi=1/0,Vi=null,Ma=null,dt=0,Oa=null,ur=null,oa=0,Vu=0,$u=null,Ap=null,xo=0,qu=null;function It(){return(He&2)!==0&&Oe!==0?Oe&-Oe:O.T!==null?Ku():sc()}function _p(){if(Zt===0)if((Oe&536870912)===0||ze){var e=Ol;Ol<<=1,(Ol&3932160)===0&&(Ol=262144),Zt=e}else Zt=536870912;return e=Pt.current,e!==null&&(e.flags|=32),Zt}function $t(e,t,a){(e===Qe&&($e===2||$e===9)||e.cancelPendingCommit!==null)&&(dr(e,0),Da(e,Oe,Zt,!1)),tt(e,a),((He&2)===0||e!==Qe)&&(e===Qe&&((He&2)===0&&(Sl|=a),at===4&&Da(e,Oe,Zt,!1)),_n(e))}function jp(e,t,a){if((He&6)!==0)throw Error(i(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Je(e,t),s=r?rS(e,t):Gu(e,t,!0),c=r;do{if(s===0){sr&&!r&&Da(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!aS(a)){s=Gu(e,t,!1),c=!1;continue}if(s===2){if(c=t,e.errorRecoveryDisabledLanes&c)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=bo;var _=S.current.memoizedState.isDehydrated;if(_&&(dr(S,b).flags|=256),b=Gu(S,b,!1),b!==2){if(Uu&&!_){S.errorRecoveryDisabledLanes|=c,Sl|=c,s=4;break e}c=Vt,Vt=s,c!==null&&(Vt===null?Vt=c:Vt.push.apply(Vt,c))}s=b}if(c=!1,s!==2)continue}}if(s===1){dr(e,0),Da(e,t,0,!0);break}e:{switch(r=e,c=s,c){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:Da(r,t,Zt,!_a);break e;case 2:Vt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(s=Bi+300-_t(),10<s)){if(Da(r,t,Zt,!_a),Ne(r,0,!0)!==0)break e;oa=t,r.timeoutHandle=ig(Mp.bind(null,r,a,Vt,Vi,Hu,t,Zt,Sl,cr,_a,c,"Throttled",-0,0),s);break e}Mp(r,a,Vt,Vi,Hu,t,Zt,Sl,cr,_a,c,null,-0,0)}}break}while(!0);_n(e)}function Mp(e,t,a,r,s,c,b,S,_,U,P,Z,H,q){if(e.timeoutHandle=-1,Z=t.subtreeFlags,Z&8192||(Z&16785408)===16785408){Z={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xn},Ep(t,c,Z);var fe=(c&62914560)===c?Bi-_t():(c&4194048)===c?Rp-_t():0;if(fe=$S(Z,fe),fe!==null){oa=c,e.cancelPendingCommit=fe(Hp.bind(null,e,t,c,a,r,s,b,S,_,P,Z,null,H,q)),Da(e,c,b,!U);return}}Hp(e,t,c,a,r,s,b,S,_)}function aS(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var r=0;r<a.length;r++){var s=a[r],c=s.getSnapshot;s=s.value;try{if(!Gt(c(),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 Da(e,t,a,r){t&=~Bu,t&=~Sl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var s=t;0<s;){var c=31-Nt(s),b=1<<c;r[c]=-1,s&=~b}a!==0&&ll(e,a,t)}function $i(){return(He&6)===0?(So(0),!1):!0}function Yu(){if(_e!==null){if($e===0)var e=_e.return;else e=_e,Zn=fl=null,ru(e),tr=null,no=0,e=_e;for(;e!==null;)sp(e.alternate,e),e=e.return;_e=null}}function dr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,ES(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),oa=0,Yu(),Qe=e,_e=a=Qn(e.current,null),Oe=t,$e=0,Kt=null,_a=!1,sr=Je(e,t),Uu=!1,cr=Zt=Bu=Sl=ja=at=0,Vt=bo=null,Hu=!1,(t&8)!==0&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var s=31-Nt(r),c=1<<s;t|=e[s],r&=~c}return ra=t,si(),a}function Op(e,t){Te=null,O.H=uo,t===er||t===gi?(t=Km(),$e=3):t===Qc?(t=Km(),$e=4):$e=t===Su?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Kt=t,_e===null&&(at=1,ji(e,rn(t,e.current)))}function Dp(){var e=Pt.current;return e===null?!0:(Oe&4194048)===Oe?un===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?e===un:!1}function kp(){var e=O.H;return O.H=uo,e===null?uo:e}function zp(){var e=O.A;return O.A=tS,e}function qi(){at=4,_a||(Oe&4194048)!==Oe&&Pt.current!==null||(sr=!0),(ja&134217727)===0&&(Sl&134217727)===0||Qe===null||Da(Qe,Oe,Zt,!1)}function Gu(e,t,a){var r=He;He|=2;var s=kp(),c=zp();(Qe!==e||Oe!==t)&&(Vi=null,dr(e,t)),t=!1;var b=at;e:do try{if($e!==0&&_e!==null){var S=_e,_=Kt;switch($e){case 8:Yu(),b=6;break e;case 3:case 2:case 9:case 6:Pt.current===null&&(t=!0);var U=$e;if($e=0,Kt=null,fr(e,S,_,U),a&&sr){b=0;break e}break;default:U=$e,$e=0,Kt=null,fr(e,S,_,U)}}lS(),b=at;break}catch(P){Op(e,P)}while(!0);return t&&e.shellSuspendCounter++,Zn=fl=null,He=r,O.H=s,O.A=c,_e===null&&(Qe=null,Oe=0,si()),b}function lS(){for(;_e!==null;)Lp(_e)}function rS(e,t){var a=He;He|=2;var r=kp(),s=zp();Qe!==e||Oe!==t?(Vi=null,Hi=_t()+500,dr(e,t)):sr=Je(e,t);e:do try{if($e!==0&&_e!==null){t=_e;var c=Kt;t:switch($e){case 1:$e=0,Kt=null,fr(e,t,c,1);break;case 2:case 9:if(Pm(c)){$e=0,Kt=null,Up(t);break}t=function(){$e!==2&&$e!==9||Qe!==e||($e=7),_n(e)},c.then(t,t);break e;case 3:$e=7;break e;case 4:$e=5;break e;case 7:Pm(c)?($e=0,Kt=null,Up(t)):($e=0,Kt=null,fr(e,t,c,7));break;case 5:var b=null;switch(_e.tag){case 26:b=_e.memoizedState;case 5:case 27:var S=_e;if(b?wg(b):S.stateNode.complete){$e=0,Kt=null;var _=S.sibling;if(_!==null)_e=_;else{var U=S.return;U!==null?(_e=U,Yi(U)):_e=null}break t}}$e=0,Kt=null,fr(e,t,c,5);break;case 6:$e=0,Kt=null,fr(e,t,c,6);break;case 8:Yu(),at=6;break e;default:throw Error(i(462))}}oS();break}catch(P){Op(e,P)}while(!0);return Zn=fl=null,O.H=r,O.A=s,He=a,_e!==null?0:(Qe=null,Oe=0,si(),at)}function oS(){for(;_e!==null&&!At();)Lp(_e)}function Lp(e){var t=op(e.alternate,e,ra);e.memoizedProps=e.pendingProps,t===null?Yi(e):_e=t}function Up(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=ep(a,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=ep(a,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:ru(t);default:sp(a,t),t=_e=zm(t,ra),t=op(a,t,ra)}e.memoizedProps=e.pendingProps,t===null?Yi(e):_e=t}function fr(e,t,a,r){Zn=fl=null,ru(t),tr=null,no=0;var s=t.return;try{if(K1(e,s,t,a,Oe)){at=1,ji(e,rn(a,e.current)),_e=null;return}}catch(c){if(s!==null)throw _e=s,c;at=1,ji(e,rn(a,e.current)),_e=null;return}t.flags&32768?(ze||r===1?e=!0:sr||(Oe&536870912)!==0?e=!1:(_a=e=!0,(r===2||r===9||r===3||r===6)&&(r=Pt.current,r!==null&&r.tag===13&&(r.flags|=16384))),Bp(t,e)):Yi(t)}function Yi(e){var t=e;do{if((t.flags&32768)!==0){Bp(t,_a);return}e=t.return;var a=F1(t.alternate,t,ra);if(a!==null){_e=a;return}if(t=t.sibling,t!==null){_e=t;return}_e=t=e}while(t!==null);at===0&&(at=5)}function Bp(e,t){do{var a=J1(e.alternate,e);if(a!==null){a.flags&=32767,_e=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){_e=e;return}_e=e=a}while(e!==null);at=6,_e=null}function Hp(e,t,a,r,s,c,b,S,_){e.cancelPendingCommit=null;do Gi();while(dt!==0);if((He&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(c=t.lanes|t.childLanes,c|=Oc,Ot(e,a,c,b,S,_),e===Qe&&(_e=Qe=null,Oe=0),ur=t,Oa=e,oa=a,Vu=c,$u=s,Ap=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,uS(tl,function(){return Gp(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=O.T,O.T=null,s=Y.p,Y.p=2,b=He,He|=4;try{W1(e,t,a)}finally{He=b,Y.p=s,O.T=r}}dt=1,Vp(),$p(),qp()}}function Vp(){if(dt===1){dt=0;var e=Oa,t=ur,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var r=Y.p;Y.p=2;var s=He;He|=4;try{xp(t,e);var c=nd,b=Tm(e.containerInfo),S=c.focusedElem,_=c.selectionRange;if(b!==S&&S&&S.ownerDocument&&Cm(S.ownerDocument.documentElement,S)){if(_!==null&&Rc(S)){var U=_.start,P=_.end;if(P===void 0&&(P=U),"selectionStart"in S)S.selectionStart=U,S.selectionEnd=Math.min(P,S.value.length);else{var Z=S.ownerDocument||document,H=Z&&Z.defaultView||window;if(H.getSelection){var q=H.getSelection(),fe=S.textContent.length,xe=Math.min(_.start,fe),Pe=_.end===void 0?xe:Math.min(_.end,fe);!q.extend&&xe>Pe&&(b=Pe,Pe=xe,xe=b);var z=Nm(S,xe),D=Nm(S,Pe);if(z&&D&&(q.rangeCount!==1||q.anchorNode!==z.node||q.anchorOffset!==z.offset||q.focusNode!==D.node||q.focusOffset!==D.offset)){var L=Z.createRange();L.setStart(z.node,z.offset),q.removeAllRanges(),xe>Pe?(q.addRange(L),q.extend(D.node,D.offset)):(L.setEnd(D.node,D.offset),q.addRange(L))}}}}for(Z=[],q=S;q=q.parentNode;)q.nodeType===1&&Z.push({element:q,left:q.scrollLeft,top:q.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<Z.length;S++){var K=Z[S];K.element.scrollLeft=K.left,K.element.scrollTop=K.top}}ns=!!td,nd=td=null}finally{He=s,Y.p=r,O.T=a}}e.current=t,dt=2}}function $p(){if(dt===2){dt=0;var e=Oa,t=ur,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var r=Y.p;Y.p=2;var s=He;He|=4;try{pp(e,t.alternate,t)}finally{He=s,Y.p=r,O.T=a}}dt=3}}function qp(){if(dt===4||dt===3){dt=0,ha();var e=Oa,t=ur,a=oa,r=Ap;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?dt=5:(dt=0,ur=Oa=null,Yp(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Ma=null),pn(a),t=t.stateNode,jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(nl,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=O.T,s=Y.p,Y.p=2,O.T=null;try{for(var c=e.onRecoverableError,b=0;b<r.length;b++){var S=r[b];c(S.value,{componentStack:S.stack})}}finally{O.T=t,Y.p=s}}(oa&3)!==0&&Gi(),_n(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===qu?xo++:(xo=0,qu=e):xo=0,So(0)}}function Yp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,eo(t)))}function Gi(){return Vp(),$p(),qp(),Gp()}function Gp(){if(dt!==5)return!1;var e=Oa,t=Vu;Vu=0;var a=pn(oa),r=O.T,s=Y.p;try{Y.p=32>a?32:a,O.T=null,a=$u,$u=null;var c=Oa,b=oa;if(dt=0,ur=Oa=null,oa=0,(He&6)!==0)throw Error(i(331));var S=He;if(He|=4,Cp(c.current),wp(c,c.current,b,a),He=S,So(0,!1),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(nl,c)}catch{}return!0}finally{Y.p=s,O.T=r,Yp(e,t)}}function Xp(e,t,a){t=rn(a,t),t=xu(e.stateNode,t,2),e=Ca(e,t,2),e!==null&&(tt(e,2),_n(e))}function qe(e,t,a){if(e.tag===3)Xp(e,e,a);else for(;t!==null;){if(t.tag===3){Xp(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Ma===null||!Ma.has(r))){e=rn(a,e),a=Ph(2),r=Ca(t,a,2),r!==null&&(Qh(a,r,t,e),tt(r,2),_n(r));break}}t=t.return}}function Xu(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new nS;var s=new Set;r.set(t,s)}else s=r.get(t),s===void 0&&(s=new Set,r.set(t,s));s.has(a)||(Uu=!0,s.add(a),e=iS.bind(null,e,t,a),t.then(e,e))}function iS(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Qe===e&&(Oe&a)===a&&(at===4||at===3&&(Oe&62914560)===Oe&&300>_t()-Bi?(He&2)===0&&dr(e,0):Bu|=a,cr===Oe&&(cr=0)),_n(e)}function Pp(e,t){t===0&&(t=Ct()),e=cl(e,t),e!==null&&(tt(e,t),_n(e))}function sS(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Pp(e,a)}function cS(e,t){var a=0;switch(e.tag){case 31:case 13:var r=e.stateNode,s=e.memoizedState;s!==null&&(a=s.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),Pp(e,a)}function uS(e,t){return Ur(e,t)}var Xi=null,mr=null,Pu=!1,Pi=!1,Qu=!1,ka=0;function _n(e){e!==mr&&e.next===null&&(mr===null?Xi=mr=e:mr=mr.next=e),Pi=!0,Pu||(Pu=!0,fS())}function So(e,t){if(!Qu&&Pi){Qu=!0;do for(var a=!1,r=Xi;r!==null;){if(e!==0){var s=r.pendingLanes;if(s===0)var c=0;else{var b=r.suspendedLanes,S=r.pingedLanes;c=(1<<31-Nt(42|e)+1)-1,c&=s&~(b&~S),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Ip(r,c))}else c=Oe,c=Ne(r,r===Qe?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(c&3)===0||Je(r,c)||(a=!0,Ip(r,c));r=r.next}while(a);Qu=!1}}function dS(){Qp()}function Qp(){Pi=Pu=!1;var e=0;ka!==0&&wS()&&(e=ka);for(var t=_t(),a=null,r=Xi;r!==null;){var s=r.next,c=Kp(r,t);c===0?(r.next=null,a===null?Xi=s:a.next=s,s===null&&(mr=a)):(a=r,(e!==0||(c&3)!==0)&&(Pi=!0)),r=s}dt!==0&&dt!==5||So(e),ka!==0&&(ka=0)}function Kp(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var b=31-Nt(c),S=1<<b,_=s[b];_===-1?((S&a)===0||(S&r)!==0)&&(s[b]=pt(S,t)):_<=t&&(e.expiredLanes|=S),c&=~S}if(t=Qe,a=Oe,a=Ne(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&($e===2||$e===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Br(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Je(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&Br(r),pn(a)){case 2:case 8:a=Zo;break;case 32:a=tl;break;case 268435456:a=Yn;break;default:a=tl}return r=Zp.bind(null,e),a=Ur(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&Br(r),e.callbackPriority=2,e.callbackNode=null,2}function Zp(e,t){if(dt!==0&&dt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Gi()&&e.callbackNode!==a)return null;var r=Oe;return r=Ne(e,e===Qe?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(jp(e,r,t),Kp(e,_t()),e.callbackNode!=null&&e.callbackNode===a?Zp.bind(null,e):null)}function Ip(e,t){if(Gi())return null;jp(e,t,!0)}function fS(){NS(function(){(He&6)!==0?Ur(el,dS):Qp()})}function Ku(){if(ka===0){var e=Jl;e===0&&(e=Ml,Ml<<=1,(Ml&261888)===0&&(Ml=256)),ka=e}return ka}function Fp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ei(""+e)}function Jp(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 mS(e,t,a,r,s){if(t==="submit"&&a&&a.stateNode===s){var c=Fp((s[zt]||null).action),b=r.submitter;b&&(t=(t=b[zt]||null)?Fp(t.formAction):b.getAttribute("formAction"),t!==null&&(c=t,b=null));var S=new li("action","action",null,r,s);e.push({event:S,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(ka!==0){var _=b?Jp(s,b):new FormData(s);hu(a,{pending:!0,data:_,method:s.method,action:c},null,_)}}else typeof c=="function"&&(S.preventDefault(),_=b?Jp(s,b):new FormData(s),hu(a,{pending:!0,data:_,method:s.method,action:c},c,_))},currentTarget:s}]})}}for(var Zu=0;Zu<Mc.length;Zu++){var Iu=Mc[Zu],hS=Iu.toLowerCase(),pS=Iu[0].toUpperCase()+Iu.slice(1);gn(hS,"on"+pS)}gn(_m,"onAnimationEnd"),gn(jm,"onAnimationIteration"),gn(Mm,"onAnimationStart"),gn("dblclick","onDoubleClick"),gn("focusin","onFocus"),gn("focusout","onBlur"),gn(M1,"onTransitionRun"),gn(O1,"onTransitionStart"),gn(D1,"onTransitionCancel"),gn(Om,"onTransitionEnd"),Bl("onMouseEnter",["mouseout","mouseover"]),Bl("onMouseLeave",["mouseout","mouseover"]),Bl("onPointerEnter",["pointerout","pointerover"]),Bl("onPointerLeave",["pointerout","pointerover"]),rl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rl("onBeforeInput",["compositionend","keypress","textInput","paste"]),rl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wo="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(" "),gS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wo));function Wp(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var r=e[a],s=r.event;r=r.listeners;e:{var c=void 0;if(t)for(var b=r.length-1;0<=b;b--){var S=r[b],_=S.instance,U=S.currentTarget;if(S=S.listener,_!==c&&s.isPropagationStopped())break e;c=S,s.currentTarget=U;try{c(s)}catch(P){ii(P)}s.currentTarget=null,c=_}else for(b=0;b<r.length;b++){if(S=r[b],_=S.instance,U=S.currentTarget,S=S.listener,_!==c&&s.isPropagationStopped())break e;c=S,s.currentTarget=U;try{c(s)}catch(P){ii(P)}s.currentTarget=null,c=_}}}}function je(e,t){var a=t[cc];a===void 0&&(a=t[cc]=new Set);var r=e+"__bubble";a.has(r)||(eg(t,e,2,!1),a.add(r))}function Fu(e,t,a){var r=0;t&&(r|=4),eg(a,e,r,t)}var Qi="_reactListening"+Math.random().toString(36).slice(2);function Ju(e){if(!e[Qi]){e[Qi]=!0,Qf.forEach(function(a){a!=="selectionchange"&&(gS.has(a)||Fu(a,!1,e),Fu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qi]||(t[Qi]=!0,Fu("selectionchange",!1,t))}}function eg(e,t,a,r){switch(_g(t)){case 2:var s=GS;break;case 8:s=XS;break;default:s=md}a=s.bind(null,t,a,e),s=void 0,!yc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(s=!0),r?s!==void 0?e.addEventListener(t,a,{capture:!0,passive:s}):e.addEventListener(t,a,!0):s!==void 0?e.addEventListener(t,a,{passive:s}):e.addEventListener(t,a,!1)}function Wu(e,t,a,r,s){var c=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var b=r.tag;if(b===3||b===4){var S=r.stateNode.containerInfo;if(S===s)break;if(b===4)for(b=r.return;b!==null;){var _=b.tag;if((_===3||_===4)&&b.stateNode.containerInfo===s)return;b=b.return}for(;S!==null;){if(b=zl(S),b===null)return;if(_=b.tag,_===5||_===6||_===26||_===27){r=c=b;continue e}S=S.parentNode}}r=r.return}rm(function(){var U=c,P=gc(a),Z=[];e:{var H=Dm.get(e);if(H!==void 0){var q=li,fe=e;switch(e){case"keypress":if(ni(a)===0)break e;case"keydown":case"keyup":q=c1;break;case"focusin":fe="focus",q=wc;break;case"focusout":fe="blur",q=wc;break;case"beforeblur":case"afterblur":q=wc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":q=sm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":q=Fx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":q=f1;break;case _m:case jm:case Mm:q=e1;break;case Om:q=h1;break;case"scroll":case"scrollend":q=Zx;break;case"wheel":q=g1;break;case"copy":case"cut":case"paste":q=n1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":q=um;break;case"toggle":case"beforetoggle":q=y1}var xe=(t&4)!==0,Pe=!xe&&(e==="scroll"||e==="scrollend"),z=xe?H!==null?H+"Capture":null:H;xe=[];for(var D=U,L;D!==null;){var K=D;if(L=K.stateNode,K=K.tag,K!==5&&K!==26&&K!==27||L===null||z===null||(K=Yr(D,z),K!=null&&xe.push(Eo(D,K,L))),Pe)break;D=D.return}0<xe.length&&(H=new q(H,fe,null,a,P),Z.push({event:H,listeners:xe}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",q=e==="mouseout"||e==="pointerout",H&&a!==pc&&(fe=a.relatedTarget||a.fromElement)&&(zl(fe)||fe[kl]))break e;if((q||H)&&(H=P.window===P?P:(H=P.ownerDocument)?H.defaultView||H.parentWindow:window,q?(fe=a.relatedTarget||a.toElement,q=U,fe=fe?zl(fe):null,fe!==null&&(Pe=d(fe),xe=fe.tag,fe!==Pe||xe!==5&&xe!==27&&xe!==6)&&(fe=null)):(q=null,fe=U),q!==fe)){if(xe=sm,K="onMouseLeave",z="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(xe=um,K="onPointerLeave",z="onPointerEnter",D="pointer"),Pe=q==null?H:qr(q),L=fe==null?H:qr(fe),H=new xe(K,D+"leave",q,a,P),H.target=Pe,H.relatedTarget=L,K=null,zl(P)===U&&(xe=new xe(z,D+"enter",fe,a,P),xe.target=L,xe.relatedTarget=Pe,K=xe),Pe=K,q&&fe)t:{for(xe=vS,z=q,D=fe,L=0,K=z;K;K=xe(K))L++;K=0;for(var be=D;be;be=xe(be))K++;for(;0<L-K;)z=xe(z),L--;for(;0<K-L;)D=xe(D),K--;for(;L--;){if(z===D||D!==null&&z===D.alternate){xe=z;break t}z=xe(z),D=xe(D)}xe=null}else xe=null;q!==null&&tg(Z,H,q,xe,!1),fe!==null&&Pe!==null&&tg(Z,Pe,fe,xe,!0)}}e:{if(H=U?qr(U):window,q=H.nodeName&&H.nodeName.toLowerCase(),q==="select"||q==="input"&&H.type==="file")var Ue=ym;else if(gm(H))if(bm)Ue=A1;else{Ue=T1;var ye=C1}else q=H.nodeName,!q||q.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?U&&hc(U.elementType)&&(Ue=ym):Ue=R1;if(Ue&&(Ue=Ue(e,U))){vm(Z,Ue,a,P);break e}ye&&ye(e,H,U),e==="focusout"&&U&&H.type==="number"&&U.memoizedProps.value!=null&&mc(H,"number",H.value)}switch(ye=U?qr(U):window,e){case"focusin":(gm(ye)||ye.contentEditable==="true")&&(Gl=ye,Ac=U,Fr=null);break;case"focusout":Fr=Ac=Gl=null;break;case"mousedown":_c=!0;break;case"contextmenu":case"mouseup":case"dragend":_c=!1,Rm(Z,a,P);break;case"selectionchange":if(j1)break;case"keydown":case"keyup":Rm(Z,a,P)}var Re;if(Nc)e:{switch(e){case"compositionstart":var De="onCompositionStart";break e;case"compositionend":De="onCompositionEnd";break e;case"compositionupdate":De="onCompositionUpdate";break e}De=void 0}else Yl?hm(e,a)&&(De="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(De="onCompositionStart");De&&(dm&&a.locale!=="ko"&&(Yl||De!=="onCompositionStart"?De==="onCompositionEnd"&&Yl&&(Re=om()):(ya=P,bc="value"in ya?ya.value:ya.textContent,Yl=!0)),ye=Ki(U,De),0<ye.length&&(De=new cm(De,e,null,a,P),Z.push({event:De,listeners:ye}),Re?De.data=Re:(Re=pm(a),Re!==null&&(De.data=Re)))),(Re=x1?S1(e,a):w1(e,a))&&(De=Ki(U,"onBeforeInput"),0<De.length&&(ye=new cm("onBeforeInput","beforeinput",null,a,P),Z.push({event:ye,listeners:De}),ye.data=Re)),mS(Z,e,U,a,P)}Wp(Z,t)})}function Eo(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ki(e,t){for(var a=t+"Capture",r=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=Yr(e,a),s!=null&&r.unshift(Eo(e,s,c)),s=Yr(e,t),s!=null&&r.push(Eo(e,s,c))),e.tag===3)return r;e=e.return}return[]}function vS(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,r,s){for(var c=t._reactName,b=[];a!==null&&a!==r;){var S=a,_=S.alternate,U=S.stateNode;if(S=S.tag,_!==null&&_===r)break;S!==5&&S!==26&&S!==27||U===null||(_=U,s?(U=Yr(a,c),U!=null&&b.unshift(Eo(a,U,_))):s||(U=Yr(a,c),U!=null&&b.push(Eo(a,U,_)))),a=a.return}b.length!==0&&e.push({event:t,listeners:b})}var yS=/\r\n?/g,bS=/\u0000|\uFFFD/g;function ng(e){return(typeof e=="string"?e:""+e).replace(yS,`
50
- `).replace(bS,"")}function ag(e,t){return t=ng(t),ng(e)===t}function Xe(e,t,a,r,s,c){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Vl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Vl(e,""+r);break;case"className":Jo(e,"class",r);break;case"tabIndex":Jo(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Jo(e,a,r);break;case"style":am(e,r,c);break;case"data":if(t!=="object"){Jo(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=ei(""+r),e.setAttribute(a,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(t!=="input"&&Xe(e,t,"name",s.name,s,null),Xe(e,t,"formEncType",s.formEncType,s,null),Xe(e,t,"formMethod",s.formMethod,s,null),Xe(e,t,"formTarget",s.formTarget,s,null)):(Xe(e,t,"encType",s.encType,s,null),Xe(e,t,"method",s.method,s,null),Xe(e,t,"target",s.target,s,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=ei(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=Xn);break;case"onScroll":r!=null&&je("scroll",e);break;case"onScrollEnd":r!=null&&je("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(i(61));if(a=r.__html,a!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=ei(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":je("beforetoggle",e),je("toggle",e),Fo(e,"popover",r);break;case"xlinkActuate":Gn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Gn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Gn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Gn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Gn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Gn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Gn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Gn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Gn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Fo(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Qx.get(a)||a,Fo(e,a,r))}}function ed(e,t,a,r,s,c){switch(a){case"style":am(e,r,c);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(i(61));if(a=r.__html,a!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"children":typeof r=="string"?Vl(e,r):(typeof r=="number"||typeof r=="bigint")&&Vl(e,""+r);break;case"onScroll":r!=null&&je("scroll",e);break;case"onScrollEnd":r!=null&&je("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Xn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Kf.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(s=a.endsWith("Capture"),t=a.slice(2,s?a.length-7:void 0),c=e[zt]||null,c=c!=null?c[a]:null,typeof c=="function"&&e.removeEventListener(t,c,s),typeof r=="function")){typeof c!="function"&&c!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,r,s);break e}a in e?e[a]=r:r===!0?e.setAttribute(a,""):Fo(e,a,r)}}}function Et(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":je("error",e),je("load",e);var r=!1,s=!1,c;for(c in a)if(a.hasOwnProperty(c)){var b=a[c];if(b!=null)switch(c){case"src":r=!0;break;case"srcSet":s=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Xe(e,t,c,b,a,null)}}s&&Xe(e,t,"srcSet",a.srcSet,a,null),r&&Xe(e,t,"src",a.src,a,null);return;case"input":je("invalid",e);var S=c=b=s=null,_=null,U=null;for(r in a)if(a.hasOwnProperty(r)){var P=a[r];if(P!=null)switch(r){case"name":s=P;break;case"type":b=P;break;case"checked":_=P;break;case"defaultChecked":U=P;break;case"value":c=P;break;case"defaultValue":S=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(i(137,t));break;default:Xe(e,t,r,P,a,null)}}Wf(e,c,S,_,U,b,s,!1);return;case"select":je("invalid",e),r=b=c=null;for(s in a)if(a.hasOwnProperty(s)&&(S=a[s],S!=null))switch(s){case"value":c=S;break;case"defaultValue":b=S;break;case"multiple":r=S;default:Xe(e,t,s,S,a,null)}t=c,a=b,e.multiple=!!r,t!=null?Hl(e,!!r,t,!1):a!=null&&Hl(e,!!r,a,!0);return;case"textarea":je("invalid",e),c=s=r=null;for(b in a)if(a.hasOwnProperty(b)&&(S=a[b],S!=null))switch(b){case"value":r=S;break;case"defaultValue":s=S;break;case"children":c=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(i(91));break;default:Xe(e,t,b,S,a,null)}tm(e,r,s,c);return;case"option":for(_ in a)if(a.hasOwnProperty(_)&&(r=a[_],r!=null))switch(_){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Xe(e,t,_,r,a,null)}return;case"dialog":je("beforetoggle",e),je("toggle",e),je("cancel",e),je("close",e);break;case"iframe":case"object":je("load",e);break;case"video":case"audio":for(r=0;r<wo.length;r++)je(wo[r],e);break;case"image":je("error",e),je("load",e);break;case"details":je("toggle",e);break;case"embed":case"source":case"link":je("error",e),je("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(U in a)if(a.hasOwnProperty(U)&&(r=a[U],r!=null))switch(U){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Xe(e,t,U,r,a,null)}return;default:if(hc(t)){for(P in a)a.hasOwnProperty(P)&&(r=a[P],r!==void 0&&ed(e,t,P,r,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(r=a[S],r!=null&&Xe(e,t,S,r,a,null))}function xS(e,t,a,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var s=null,c=null,b=null,S=null,_=null,U=null,P=null;for(q in a){var Z=a[q];if(a.hasOwnProperty(q)&&Z!=null)switch(q){case"checked":break;case"value":break;case"defaultValue":_=Z;default:r.hasOwnProperty(q)||Xe(e,t,q,null,r,Z)}}for(var H in r){var q=r[H];if(Z=a[H],r.hasOwnProperty(H)&&(q!=null||Z!=null))switch(H){case"type":c=q;break;case"name":s=q;break;case"checked":U=q;break;case"defaultChecked":P=q;break;case"value":b=q;break;case"defaultValue":S=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(i(137,t));break;default:q!==Z&&Xe(e,t,H,q,r,Z)}}fc(e,b,S,_,U,P,c,s);return;case"select":q=b=S=H=null;for(c in a)if(_=a[c],a.hasOwnProperty(c)&&_!=null)switch(c){case"value":break;case"multiple":q=_;default:r.hasOwnProperty(c)||Xe(e,t,c,null,r,_)}for(s in r)if(c=r[s],_=a[s],r.hasOwnProperty(s)&&(c!=null||_!=null))switch(s){case"value":H=c;break;case"defaultValue":S=c;break;case"multiple":b=c;default:c!==_&&Xe(e,t,s,c,r,_)}t=S,a=b,r=q,H!=null?Hl(e,!!a,H,!1):!!r!=!!a&&(t!=null?Hl(e,!!a,t,!0):Hl(e,!!a,a?[]:"",!1));return;case"textarea":q=H=null;for(S in a)if(s=a[S],a.hasOwnProperty(S)&&s!=null&&!r.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:Xe(e,t,S,null,r,s)}for(b in r)if(s=r[b],c=a[b],r.hasOwnProperty(b)&&(s!=null||c!=null))switch(b){case"value":H=s;break;case"defaultValue":q=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(i(91));break;default:s!==c&&Xe(e,t,b,s,r,c)}em(e,H,q);return;case"option":for(var fe in a)if(H=a[fe],a.hasOwnProperty(fe)&&H!=null&&!r.hasOwnProperty(fe))switch(fe){case"selected":e.selected=!1;break;default:Xe(e,t,fe,null,r,H)}for(_ in r)if(H=r[_],q=a[_],r.hasOwnProperty(_)&&H!==q&&(H!=null||q!=null))switch(_){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Xe(e,t,_,H,r,q)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var xe in a)H=a[xe],a.hasOwnProperty(xe)&&H!=null&&!r.hasOwnProperty(xe)&&Xe(e,t,xe,null,r,H);for(U in r)if(H=r[U],q=a[U],r.hasOwnProperty(U)&&H!==q&&(H!=null||q!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(i(137,t));break;default:Xe(e,t,U,H,r,q)}return;default:if(hc(t)){for(var Pe in a)H=a[Pe],a.hasOwnProperty(Pe)&&H!==void 0&&!r.hasOwnProperty(Pe)&&ed(e,t,Pe,void 0,r,H);for(P in r)H=r[P],q=a[P],!r.hasOwnProperty(P)||H===q||H===void 0&&q===void 0||ed(e,t,P,H,r,q);return}}for(var z in a)H=a[z],a.hasOwnProperty(z)&&H!=null&&!r.hasOwnProperty(z)&&Xe(e,t,z,null,r,H);for(Z in r)H=r[Z],q=a[Z],!r.hasOwnProperty(Z)||H===q||H==null&&q==null||Xe(e,t,Z,H,r,q)}function lg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function SS(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var s=a[r],c=s.transferSize,b=s.initiatorType,S=s.duration;if(c&&S&&lg(b)){for(b=0,S=s.responseEnd,r+=1;r<a.length;r++){var _=a[r],U=_.startTime;if(U>S)break;var P=_.transferSize,Z=_.initiatorType;P&&lg(Z)&&(_=_.responseEnd,b+=P*(_<S?1:(S-U)/(_-U)))}if(--r,t+=8*(c+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 td=null,nd=null;function Zi(e){return e.nodeType===9?e:e.ownerDocument}function rg(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 og(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 ad(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 ld=null;function wS(){var e=window.event;return e&&e.type==="popstate"?e===ld?!1:(ld=e,!0):(ld=null,!1)}var ig=typeof setTimeout=="function"?setTimeout:void 0,ES=typeof clearTimeout=="function"?clearTimeout:void 0,sg=typeof Promise=="function"?Promise:void 0,NS=typeof queueMicrotask=="function"?queueMicrotask:typeof sg<"u"?function(e){return sg.resolve(null).then(e).catch(CS)}:ig;function CS(e){setTimeout(function(){throw e})}function za(e){return e==="head"}function cg(e,t){var a=t,r=0;do{var s=a.nextSibling;if(e.removeChild(a),s&&s.nodeType===8)if(a=s.data,a==="/$"||a==="/&"){if(r===0){e.removeChild(s),vr(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")No(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,No(a);for(var c=a.firstChild;c;){var b=c.nextSibling,S=c.nodeName;c[$r]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=b}}else a==="body"&&No(e.ownerDocument.body);a=s}while(a);vr(t)}function ug(e,t){var a=e;e=0;do{var r=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),r&&r.nodeType===8)if(a=r.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=r}while(a)}function rd(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":rd(a),uc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function TS(e,t,a,r){for(;e.nodeType===1;){var s=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[$r])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==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(c=e.getAttribute("src"),(c!==(s.src==null?null:s.src)||e.getAttribute("type")!==(s.type==null?null:s.type)||e.getAttribute("crossorigin")!==(s.crossOrigin==null?null:s.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=s.name==null?null:""+s.name;if(s.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=dn(e.nextSibling),e===null)break}return null}function RS(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=dn(e.nextSibling),e===null))return null;return e}function dg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=dn(e.nextSibling),e===null))return null;return e}function od(e){return e.data==="$?"||e.data==="$~"}function id(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function AS(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var r=function(){t(),a.removeEventListener("DOMContentLoaded",r)};a.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function dn(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 fg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return dn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function mg(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 hg(e,t,a){switch(t=Zi(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 No(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);uc(e)}var fn=new Map,pg=new Set;function Ii(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ia=Y.d;Y.d={f:_S,r:jS,D:MS,C:OS,L:DS,m:kS,X:LS,S:zS,M:US};function _S(){var e=ia.f(),t=$i();return e||t}function jS(e){var t=Ll(e);t!==null&&t.tag===5&&t.type==="form"?Oh(t):ia.r(e)}var hr=typeof document>"u"?null:document;function gg(e,t,a){var r=hr;if(r&&typeof t=="string"&&t){var s=an(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),pg.has(s)||(pg.add(s),e={rel:e,crossOrigin:a,href:t},r.querySelector(s)===null&&(t=r.createElement("link"),Et(t,"link",e),gt(t),r.head.appendChild(t)))}}function MS(e){ia.D(e),gg("dns-prefetch",e,null)}function OS(e,t){ia.C(e,t),gg("preconnect",e,t)}function DS(e,t,a){ia.L(e,t,a);var r=hr;if(r&&e&&t){var s='link[rel="preload"][as="'+an(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+an(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+an(a.imageSizes)+'"]')):s+='[href="'+an(e)+'"]';var c=s;switch(t){case"style":c=pr(e);break;case"script":c=gr(e)}fn.has(c)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),fn.set(c,e),r.querySelector(s)!==null||t==="style"&&r.querySelector(Co(c))||t==="script"&&r.querySelector(To(c))||(t=r.createElement("link"),Et(t,"link",e),gt(t),r.head.appendChild(t)))}}function kS(e,t){ia.m(e,t);var a=hr;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+an(r)+'"][href="'+an(e)+'"]',c=s;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=gr(e)}if(!fn.has(c)&&(e=g({rel:"modulepreload",href:e},t),fn.set(c,e),a.querySelector(s)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(To(c)))return}r=a.createElement("link"),Et(r,"link",e),gt(r),a.head.appendChild(r)}}}function zS(e,t,a){ia.S(e,t,a);var r=hr;if(r&&e){var s=Ul(r).hoistableStyles,c=pr(e);t=t||"default";var b=s.get(c);if(!b){var S={loading:0,preload:null};if(b=r.querySelector(Co(c)))S.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},a),(a=fn.get(c))&&cd(e,a);var _=b=r.createElement("link");gt(_),Et(_,"link",e),_._p=new Promise(function(U,P){_.onload=U,_.onerror=P}),_.addEventListener("load",function(){S.loading|=1}),_.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Fi(b,t,r)}b={type:"stylesheet",instance:b,count:1,state:S},s.set(c,b)}}}function LS(e,t){ia.X(e,t);var a=hr;if(a&&e){var r=Ul(a).hoistableScripts,s=gr(e),c=r.get(s);c||(c=a.querySelector(To(s)),c||(e=g({src:e,async:!0},t),(t=fn.get(s))&&ud(e,t),c=a.createElement("script"),gt(c),Et(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(s,c))}}function US(e,t){ia.M(e,t);var a=hr;if(a&&e){var r=Ul(a).hoistableScripts,s=gr(e),c=r.get(s);c||(c=a.querySelector(To(s)),c||(e=g({src:e,async:!0,type:"module"},t),(t=fn.get(s))&&ud(e,t),c=a.createElement("script"),gt(c),Et(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(s,c))}}function vg(e,t,a,r){var s=(s=I.current)?Ii(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=pr(a.href),a=Ul(s).hoistableStyles,r=a.get(t),r||(r={type:"style",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=pr(a.href);var c=Ul(s).hoistableStyles,b=c.get(e);if(b||(s=s.ownerDocument||s,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,b),(c=s.querySelector(Co(e)))&&!c._p&&(b.instance=c,b.state.loading=5),fn.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},fn.set(e,a),c||BS(s,e,a,b.state))),t&&r===null)throw Error(i(528,""));return b}if(t&&r!==null)throw Error(i(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=gr(a),a=Ul(s).hoistableScripts,r=a.get(t),r||(r={type:"script",instance:null,count:0,state:null},a.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function pr(e){return'href="'+an(e)+'"'}function Co(e){return'link[rel="stylesheet"]['+e+"]"}function yg(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function BS(e,t,a,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Et(t,"link",a),gt(t),e.head.appendChild(t))}function gr(e){return'[src="'+an(e)+'"]'}function To(e){return"script[async]"+e}function bg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+an(a.href)+'"]');if(r)return t.instance=r,gt(r),r;var s=g({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),gt(r),Et(r,"style",s),Fi(r,a.precedence,e),t.instance=r;case"stylesheet":s=pr(a.href);var c=e.querySelector(Co(s));if(c)return t.state.loading|=4,t.instance=c,gt(c),c;r=yg(a),(s=fn.get(s))&&cd(r,s),c=(e.ownerDocument||e).createElement("link"),gt(c);var b=c;return b._p=new Promise(function(S,_){b.onload=S,b.onerror=_}),Et(c,"link",r),t.state.loading|=4,Fi(c,a.precedence,e),t.instance=c;case"script":return c=gr(a.src),(s=e.querySelector(To(c)))?(t.instance=s,gt(s),s):(r=a,(s=fn.get(c))&&(r=g({},a),ud(r,s)),e=e.ownerDocument||e,s=e.createElement("script"),gt(s),Et(s,"link",r),e.head.appendChild(s),t.instance=s);case"void":return null;default:throw Error(i(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(r=t.instance,t.state.loading|=4,Fi(r,a.precedence,e));return t.instance}function Fi(e,t,a){for(var r=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),s=r.length?r[r.length-1]:null,c=s,b=0;b<r.length;b++){var S=r[b];if(S.dataset.precedence===t)c=S;else if(c!==s)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function cd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ud(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Ji=null;function xg(e,t,a){if(Ji===null){var r=new Map,s=Ji=new Map;s.set(a,r)}else s=Ji,r=s.get(a),r||(r=new Map,s.set(a,r));if(r.has(e))return r;for(r.set(e,null),a=a.getElementsByTagName(e),s=0;s<a.length;s++){var c=a[s];if(!(c[$r]||c[bt]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var b=c.getAttribute(t)||"";b=e+b;var S=r.get(b);S?S.push(c):r.set(b,[c])}}return r}function Sg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function HS(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 wg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function VS(e,t,a,r){if(a.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var s=pr(r.href),c=t.querySelector(Co(s));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Wi.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,gt(c);return}c=t.ownerDocument||t,r=yg(r),(s=fn.get(s))&&cd(r,s),c=c.createElement("link"),gt(c);var b=c;b._p=new Promise(function(S,_){b.onload=S,b.onerror=_}),Et(c,"link",r),a.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=Wi.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var dd=0;function $S(e,t){return e.stylesheets&&e.count===0&&ts(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&ts(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&dd===0&&(dd=62500*SS());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ts(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>dd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(s)}}:null}function Wi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ts(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var es=null;function ts(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,es=new Map,t.forEach(qS,e),es=null,Wi.call(e))}function qS(e,t){if(!(t.state.loading&4)){var a=es.get(e);if(a)var r=a.get(null);else{a=new Map,es.set(e,a);for(var s=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<s.length;c++){var b=s[c];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(a.set(b.dataset.precedence,b),r=b)}r&&a.set(null,r)}s=t.instance,b=s.getAttribute("data-precedence"),c=a.get(b)||r,c===r&&a.set(null,s),a.set(b,s),this.count++,r=Wi.bind(this),s.addEventListener("load",r),s.addEventListener("error",r),c?c.parentNode.insertBefore(s,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(s,e.firstChild)),t.state.loading|=4}}var Ro={$$typeof:M,Provider:null,Consumer:null,_currentValue:F,_currentValue2:F,_threadCount:0};function YS(e,t,a,r,s,c,b,S,_){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ga(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ga(0),this.hiddenUpdates=ga(null),this.identifierPrefix=r,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function Eg(e,t,a,r,s,c,b,S,_,U,P,Z){return e=new YS(e,t,a,b,_,U,P,Z,S),t=1,c===!0&&(t|=24),c=Xt(3,null,null,t),e.current=c,c.stateNode=e,t=Gc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:r,isDehydrated:a,cache:t},Kc(c),e}function Ng(e){return e?(e=Ql,e):Ql}function Cg(e,t,a,r,s,c){s=Ng(s),r.context===null?r.context=s:r.pendingContext=s,r=Na(t),r.payload={element:a},c=c===void 0?null:c,c!==null&&(r.callback=c),a=Ca(e,r,t),a!==null&&($t(a,e,t),lo(a,e,t))}function Tg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function fd(e,t){Tg(e,t),(e=e.alternate)&&Tg(e,t)}function Rg(e){if(e.tag===13||e.tag===31){var t=cl(e,67108864);t!==null&&$t(t,e,67108864),fd(e,67108864)}}function Ag(e){if(e.tag===13||e.tag===31){var t=It();t=Dl(t);var a=cl(e,t);a!==null&&$t(a,e,t),fd(e,t)}}var ns=!0;function GS(e,t,a,r){var s=O.T;O.T=null;var c=Y.p;try{Y.p=2,md(e,t,a,r)}finally{Y.p=c,O.T=s}}function XS(e,t,a,r){var s=O.T;O.T=null;var c=Y.p;try{Y.p=8,md(e,t,a,r)}finally{Y.p=c,O.T=s}}function md(e,t,a,r){if(ns){var s=hd(r);if(s===null)Wu(e,t,r,as,a),jg(e,r);else if(QS(s,e,t,a,r))r.stopPropagation();else if(jg(e,r),t&4&&-1<PS.indexOf(e)){for(;s!==null;){var c=Ll(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var b=Cn(c.pendingLanes);if(b!==0){var S=c;for(S.pendingLanes|=2,S.entangledLanes|=2;b;){var _=1<<31-Nt(b);S.entanglements[1]|=_,b&=~_}_n(c),(He&6)===0&&(Hi=_t()+500,So(0))}}break;case 31:case 13:S=cl(c,2),S!==null&&$t(S,c,2),$i(),fd(c,2)}if(c=hd(r),c===null&&Wu(e,t,r,as,a),c===s)break;s=c}s!==null&&r.stopPropagation()}else Wu(e,t,r,null,a)}}function hd(e){return e=gc(e),pd(e)}var as=null;function pd(e){if(as=null,e=zl(e),e!==null){var t=d(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=f(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 as=e,null}function _g(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(oc()){case el:return 2;case Zo:return 8;case tl:case Hr:return 32;case Yn:return 268435456;default:return 32}default:return 32}}var gd=!1,La=null,Ua=null,Ba=null,Ao=new Map,_o=new Map,Ha=[],PS="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 jg(e,t){switch(e){case"focusin":case"focusout":La=null;break;case"dragenter":case"dragleave":Ua=null;break;case"mouseover":case"mouseout":Ba=null;break;case"pointerover":case"pointerout":Ao.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":_o.delete(t.pointerId)}}function jo(e,t,a,r,s,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:a,eventSystemFlags:r,nativeEvent:c,targetContainers:[s]},t!==null&&(t=Ll(t),t!==null&&Rg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function QS(e,t,a,r,s){switch(t){case"focusin":return La=jo(La,e,t,a,r,s),!0;case"dragenter":return Ua=jo(Ua,e,t,a,r,s),!0;case"mouseover":return Ba=jo(Ba,e,t,a,r,s),!0;case"pointerover":var c=s.pointerId;return Ao.set(c,jo(Ao.get(c)||null,e,t,a,r,s)),!0;case"gotpointercapture":return c=s.pointerId,_o.set(c,jo(_o.get(c)||null,e,t,a,r,s)),!0}return!1}function Mg(e){var t=zl(e.target);if(t!==null){var a=d(t);if(a!==null){if(t=a.tag,t===13){if(t=f(a),t!==null){e.blockedOn=t,Xf(e.priority,function(){Ag(a)});return}}else if(t===31){if(t=h(a),t!==null){e.blockedOn=t,Xf(e.priority,function(){Ag(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 ls(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=hd(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);pc=r,a.target.dispatchEvent(r),pc=null}else return t=Ll(a),t!==null&&Rg(t),e.blockedOn=a,!1;t.shift()}return!0}function Og(e,t,a){ls(e)&&a.delete(t)}function KS(){gd=!1,La!==null&&ls(La)&&(La=null),Ua!==null&&ls(Ua)&&(Ua=null),Ba!==null&&ls(Ba)&&(Ba=null),Ao.forEach(Og),_o.forEach(Og)}function rs(e,t){e.blockedOn===t&&(e.blockedOn=null,gd||(gd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,KS)))}var os=null;function Dg(e){os!==e&&(os=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){os===e&&(os=null);for(var t=0;t<e.length;t+=3){var a=e[t],r=e[t+1],s=e[t+2];if(typeof r!="function"){if(pd(r||a)===null)continue;break}var c=Ll(a);c!==null&&(e.splice(t,3),t-=3,hu(c,{pending:!0,data:s,method:a.method,action:r},r,s))}}))}function vr(e){function t(_){return rs(_,e)}La!==null&&rs(La,e),Ua!==null&&rs(Ua,e),Ba!==null&&rs(Ba,e),Ao.forEach(t),_o.forEach(t);for(var a=0;a<Ha.length;a++){var r=Ha[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ha.length&&(a=Ha[0],a.blockedOn===null);)Mg(a),a.blockedOn===null&&Ha.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(r=0;r<a.length;r+=3){var s=a[r],c=a[r+1],b=s[zt]||null;if(typeof c=="function")b||Dg(a);else if(b){var S=null;if(c&&c.hasAttribute("formAction")){if(s=c,b=c[zt]||null)S=b.formAction;else if(pd(s)!==null)continue}else S=b.action;typeof S=="function"?a[r+1]=S:(a.splice(r,3),r-=3),Dg(a)}}}function kg(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(b){return s=b})},focusReset:"manual",scroll:"manual"})}function t(){s!==null&&(s(),s=null),r||setTimeout(a,20)}function a(){if(!r&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,s=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),s!==null&&(s(),s=null)}}}function vd(e){this._internalRoot=e}is.prototype.render=vd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,r=It();Cg(a,r,e,t,null,null)},is.prototype.unmount=vd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Cg(e.current,2,null,e,null,null),$i(),t[kl]=null}};function is(e){this._internalRoot=e}is.prototype.unstable_scheduleHydration=function(e){if(e){var t=sc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Ha.length&&t!==0&&t<Ha[a].priority;a++);Ha.splice(a,0,e),a===0&&Mg(e)}};var zg=l.version;if(zg!=="19.2.4")throw Error(i(527,zg,"19.2.4"));Y.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(i(188)):(e=Object.keys(e).join(","),Error(i(268,e)));return e=p(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var ZS={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ss=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ss.isDisabled&&ss.supportsFiber)try{nl=ss.inject(ZS),jt=ss}catch{}}return Oo.createRoot=function(e,t){if(!u(e))throw Error(i(299));var a=!1,r="",s=qh,c=Yh,b=Gh;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(s=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(b=t.onRecoverableError)),t=Eg(e,1,!1,null,null,a,r,null,s,c,b,kg),e[kl]=t.current,Ju(e),new vd(t)},Oo.hydrateRoot=function(e,t,a){if(!u(e))throw Error(i(299));var r=!1,s="",c=qh,b=Yh,S=Gh,_=null;return a!=null&&(a.unstable_strictMode===!0&&(r=!0),a.identifierPrefix!==void 0&&(s=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(S=a.onRecoverableError),a.formState!==void 0&&(_=a.formState)),t=Eg(e,1,!0,t,a??null,r,s,_,c,b,S,kg),t.context=Ng(null),a=t.current,r=It(),r=Dl(r),s=Na(r),s.callback=null,Ca(a,s,r),a=r,t.current.lanes=a,tt(t,a),_n(t),e[kl]=t.current,Ju(e),new is(t)},Oo.version="19.2.4",Oo}var Xg;function r2(){if(Xg)return xd.exports;Xg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),xd.exports=l2(),xd.exports}var o2=r2();const i2="modulepreload",s2=function(n){return"/"+n},Pg={},Gv=function(l,o,i){let u=Promise.resolve();if(o&&o.length>0){let f=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"));u=f(o.map(p=>{if(p=s2(p),p in Pg)return;Pg[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":i2,x||(w.as="script"),w.crossOrigin="",w.href=p,y&&w.setAttribute("nonce",y),document.head.appendChild(w),x)return new Promise((C,N)=>{w.addEventListener("load",C),w.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(f){const h=new Event("vite:preloadError",{cancelable:!0});if(h.payload=f,window.dispatchEvent(h),!h.defaultPrevented)throw f}return u.then(f=>{for(const h of f||[])h.status==="rejected"&&d(h.reason);return l().catch(d)})};/**
51
- * react-router v7.13.2
52
- *
53
- * Copyright (c) Remix Software Inc.
54
- *
55
- * This source code is licensed under the MIT license found in the
56
- * LICENSE.md file in the root directory of this source tree.
57
- *
58
- * @license MIT
59
- */var Qg="popstate";function Kg(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function c2(n={}){function l(i,u){var p;let d=(p=u.state)==null?void 0:p.masked,{pathname:f,search:h,hash:y}=d||i.location;return $d("",{pathname:f,search:h,hash:y},u.state&&u.state.usr||null,u.state&&u.state.key||"default",d?{pathname:i.location.pathname,search:i.location.search,hash:i.location.hash}:void 0)}function o(i,u){return typeof u=="string"?u:$o(u)}return d2(l,o,null,n)}function et(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function xn(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function u2(){return Math.random().toString(36).substring(2,10)}function Zg(n,l){return{usr:n.state,key:n.key,idx:l,masked:n.unstable_mask?{pathname:n.pathname,search:n.search,hash:n.hash}:void 0}}function $d(n,l,o=null,i,u){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?jr(l):l,state:o,key:l&&l.key||i||u2(),unstable_mask:u}}function $o({pathname:n="/",search:l="",hash:o=""}){return l&&l!=="?"&&(n+=l.charAt(0)==="?"?l:"?"+l),o&&o!=="#"&&(n+=o.charAt(0)==="#"?o:"#"+o),n}function jr(n){let l={};if(n){let o=n.indexOf("#");o>=0&&(l.hash=n.substring(o),n=n.substring(0,o));let i=n.indexOf("?");i>=0&&(l.search=n.substring(i),n=n.substring(0,i)),n&&(l.pathname=n)}return l}function d2(n,l,o,i={}){let{window:u=document.defaultView,v5Compat:d=!1}=i,f=u.history,h="POP",y=null,p=x();p==null&&(p=0,f.replaceState({...f.state,idx:p},""));function x(){return(f.state||{idx:null}).idx}function g(){h="POP";let T=x(),R=T==null?null:T-p;p=T,y&&y({action:h,location:E.location,delta:R})}function w(T,R){h="PUSH";let A=Kg(T)?T:$d(E.location,T,R);p=x()+1;let M=Zg(A,p),k=E.createHref(A.unstable_mask||A);try{f.pushState(M,"",k)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;u.location.assign(k)}d&&y&&y({action:h,location:E.location,delta:1})}function C(T,R){h="REPLACE";let A=Kg(T)?T:$d(E.location,T,R);p=x();let M=Zg(A,p),k=E.createHref(A.unstable_mask||A);f.replaceState(M,"",k),d&&y&&y({action:h,location:E.location,delta:0})}function N(T){return f2(T)}let E={get action(){return h},get location(){return n(u,f)},listen(T){if(y)throw new Error("A history only accepts one active listener");return u.addEventListener(Qg,g),y=T,()=>{u.removeEventListener(Qg,g),y=null}},createHref(T){return l(u,T)},createURL:N,encodeLocation(T){let R=N(T);return{pathname:R.pathname,search:R.search,hash:R.hash}},push:w,replace:C,go(T){return f.go(T)}};return E}function f2(n,l=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),et(o,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:$o(n);return i=i.replace(/ $/,"%20"),!l&&i.startsWith("//")&&(i=o+i),new URL(i,o)}function Xv(n,l,o="/"){return m2(n,l,o,!1)}function m2(n,l,o,i){let u=typeof l=="string"?jr(l):l,d=ca(u.pathname||"/",o);if(d==null)return null;let f=Pv(n);h2(f);let h=null;for(let y=0;h==null&&y<f.length;++y){let p=C2(d);h=E2(f[y],p,i)}return h}function Pv(n,l=[],o=[],i="",u=!1){let d=(f,h,y=u,p)=>{let x={relativePath:p===void 0?f.path||"":p,caseSensitive:f.caseSensitive===!0,childrenIndex:h,route:f};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(i)&&y)return;et(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=Bn([i,x.relativePath]),w=o.concat(x);f.children&&f.children.length>0&&(et(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Pv(f.children,l,w,g,y)),!(f.path==null&&!f.index)&&l.push({path:g,score:S2(g,f.index),routesMeta:w})};return n.forEach((f,h)=>{var y;if(f.path===""||!((y=f.path)!=null&&y.includes("?")))d(f,h);else for(let p of Qv(f.path))d(f,h,!0,p)}),l}function Qv(n){let l=n.split("/");if(l.length===0)return[];let[o,...i]=l,u=o.endsWith("?"),d=o.replace(/\?$/,"");if(i.length===0)return u?[d,""]:[d];let f=Qv(i.join("/")),h=[];return h.push(...f.map(y=>y===""?d:[d,y].join("/"))),u&&h.push(...f),h.map(y=>n.startsWith("/")&&y===""?"/":y)}function h2(n){n.sort((l,o)=>l.score!==o.score?o.score-l.score:w2(l.routesMeta.map(i=>i.childrenIndex),o.routesMeta.map(i=>i.childrenIndex)))}var p2=/^:[\w-]+$/,g2=3,v2=2,y2=1,b2=10,x2=-2,Ig=n=>n==="*";function S2(n,l){let o=n.split("/"),i=o.length;return o.some(Ig)&&(i+=x2),l&&(i+=v2),o.filter(u=>!Ig(u)).reduce((u,d)=>u+(p2.test(d)?g2:d===""?y2:b2),i)}function w2(n,l){return n.length===l.length&&n.slice(0,-1).every((i,u)=>i===l[u])?n[n.length-1]-l[l.length-1]:0}function E2(n,l,o=!1){let{routesMeta:i}=n,u={},d="/",f=[];for(let h=0;h<i.length;++h){let y=i[h],p=h===i.length-1,x=d==="/"?l:l.slice(d.length)||"/",g=Ts({path:y.relativePath,caseSensitive:y.caseSensitive,end:p},x),w=y.route;if(!g&&p&&o&&!i[i.length-1].route.index&&(g=Ts({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},x)),!g)return null;Object.assign(u,g.params),f.push({params:u,pathname:Bn([d,g.pathname]),pathnameBase:_2(Bn([d,g.pathnameBase])),route:w}),g.pathnameBase!=="/"&&(d=Bn([d,g.pathnameBase]))}return f}function Ts(n,l){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[o,i]=N2(n.path,n.caseSensitive,n.end),u=l.match(o);if(!u)return null;let d=u[0],f=d.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:i.reduce((p,{paramName:x,isOptional:g},w)=>{if(x==="*"){let N=h[w]||"";f=d.slice(0,d.length-N.length).replace(/(.)\/+$/,"$1")}const C=h[w];return g&&!C?p[x]=void 0:p[x]=(C||"").replace(/%2F/g,"/"),p},{}),pathname:d,pathnameBase:f,pattern:n}}function N2(n,l=!1,o=!0){xn(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=[],u="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,h,y,p,x)=>{if(i.push({paramName:h,isOptional:y!=null}),y){let g=x.charAt(p+f.length);return g&&g!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(i.push({paramName:"*"}),u+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):o?u+="\\/*$":n!==""&&n!=="/"&&(u+="(?:(?=\\/|$))"),[new RegExp(u,l?void 0:"i"),i]}function C2(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return xn(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${l}).`),n}}function ca(n,l){if(l==="/")return n;if(!n.toLowerCase().startsWith(l.toLowerCase()))return null;let o=l.endsWith("/")?l.length-1:l.length,i=n.charAt(o);return i&&i!=="/"?null:n.slice(o)||"/"}var T2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function R2(n,l="/"){let{pathname:o,search:i="",hash:u=""}=typeof n=="string"?jr(n):n,d;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?d=Fg(o.substring(1),"/"):d=Fg(o,l)):d=l,{pathname:d,search:j2(i),hash:M2(u)}}function Fg(n,l){let o=l.replace(/\/+$/,"").split("/");return n.split("/").forEach(u=>{u===".."?o.length>1&&o.pop():u!=="."&&o.push(u)}),o.length>1?o.join("/"):"/"}function Nd(n,l,o,i){return`Cannot include a '${n}' character in a manually specified \`to.${l}\` field [${JSON.stringify(i)}]. Please separate it out to the \`to.${o}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function A2(n){return n.filter((l,o)=>o===0||l.route.path&&l.route.path.length>0)}function of(n){let l=A2(n);return l.map((o,i)=>i===l.length-1?o.pathname:o.pathnameBase)}function Gs(n,l,o,i=!1){let u;typeof n=="string"?u=jr(n):(u={...n},et(!u.pathname||!u.pathname.includes("?"),Nd("?","pathname","search",u)),et(!u.pathname||!u.pathname.includes("#"),Nd("#","pathname","hash",u)),et(!u.search||!u.search.includes("#"),Nd("#","search","hash",u)));let d=n===""||u.pathname==="",f=d?"/":u.pathname,h;if(f==null)h=o;else{let g=l.length-1;if(!i&&f.startsWith("..")){let w=f.split("/");for(;w[0]==="..";)w.shift(),g-=1;u.pathname=w.join("/")}h=g>=0?l[g]:"/"}let y=R2(u,h),p=f&&f!=="/"&&f.endsWith("/"),x=(d||f===".")&&o.endsWith("/");return!y.pathname.endsWith("/")&&(p||x)&&(y.pathname+="/"),y}var Bn=n=>n.join("/").replace(/\/\/+/g,"/"),_2=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),j2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,M2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,O2=class{constructor(n,l,o,i=!1){this.status=n,this.statusText=l||"",this.internal=i,o instanceof Error?(this.data=o.toString(),this.error=o):this.data=o}};function D2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function k2(n){return n.map(l=>l.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Kv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Zv(n,l){let o=n;if(typeof o!="string"||!T2.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let i=o,u=!1;if(Kv)try{let d=new URL(window.location.href),f=o.startsWith("//")?new URL(d.protocol+o):new URL(o),h=ca(f.pathname,l);f.origin===d.origin&&h!=null?o=h+f.search+f.hash:u=!0}catch{xn(!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:u,to:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Iv=["POST","PUT","PATCH","DELETE"];new Set(Iv);var z2=["GET",...Iv];new Set(z2);var Mr=v.createContext(null);Mr.displayName="DataRouter";var Xs=v.createContext(null);Xs.displayName="DataRouterState";var L2=v.createContext(!1),Fv=v.createContext({isTransitioning:!1});Fv.displayName="ViewTransition";var U2=v.createContext(new Map);U2.displayName="Fetchers";var B2=v.createContext(null);B2.displayName="Await";var en=v.createContext(null);en.displayName="Navigation";var Go=v.createContext(null);Go.displayName="Location";var mn=v.createContext({outlet:null,matches:[],isDataRoute:!1});mn.displayName="Route";var sf=v.createContext(null);sf.displayName="RouteError";var Jv="REACT_ROUTER_ERROR",H2="REDIRECT",V2="ROUTE_ERROR_RESPONSE";function $2(n){if(n.startsWith(`${Jv}:${H2}:{`))try{let l=JSON.parse(n.slice(28));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string"&&typeof l.location=="string"&&typeof l.reloadDocument=="boolean"&&typeof l.replace=="boolean")return l}catch{}}function q2(n){if(n.startsWith(`${Jv}:${V2}:{`))try{let l=JSON.parse(n.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new O2(l.status,l.statusText,l.data)}catch{}}function Y2(n,{relative:l}={}){et(Or(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:i}=v.useContext(en),{hash:u,pathname:d,search:f}=Xo(n,{relative:l}),h=d;return o!=="/"&&(h=d==="/"?o:Bn([o,d])),i.createHref({pathname:h,search:f,hash:u})}function Or(){return v.useContext(Go)!=null}function $n(){return et(Or(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(Go).location}var Wv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function e0(n){v.useContext(en).static||v.useLayoutEffect(n)}function t0(){let{isDataRoute:n}=v.useContext(mn);return n?aw():G2()}function G2(){et(Or(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(Mr),{basename:l,navigator:o}=v.useContext(en),{matches:i}=v.useContext(mn),{pathname:u}=$n(),d=JSON.stringify(of(i)),f=v.useRef(!1);return e0(()=>{f.current=!0}),v.useCallback((y,p={})=>{if(xn(f.current,Wv),!f.current)return;if(typeof y=="number"){o.go(y);return}let x=Gs(y,JSON.parse(d),u,p.relative==="path");n==null&&l!=="/"&&(x.pathname=x.pathname==="/"?l:Bn([l,x.pathname])),(p.replace?o.replace:o.push)(x,p.state,p)},[l,o,d,u,n])}var n0=v.createContext(null);function y3(){return v.useContext(n0)}function X2(n){let l=v.useContext(mn).outlet;return v.useMemo(()=>l&&v.createElement(n0.Provider,{value:n},l),[l,n])}function b3(){let{matches:n}=v.useContext(mn),l=n[n.length-1];return l?l.params:{}}function Xo(n,{relative:l}={}){let{matches:o}=v.useContext(mn),{pathname:i}=$n(),u=JSON.stringify(of(o));return v.useMemo(()=>Gs(n,JSON.parse(u),i,l==="path"),[n,u,i,l])}function P2(n,l){return a0(n,l)}function a0(n,l,o){var T;et(Or(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=v.useContext(en),{matches:u}=v.useContext(mn),d=u[u.length-1],f=d?d.params:{},h=d?d.pathname:"/",y=d?d.pathnameBase:"/",p=d&&d.route;{let R=p&&p.path||"";r0(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=$n(),g;if(l){let R=typeof l=="string"?jr(l):l;et(y==="/"||((T=R.pathname)==null?void 0:T.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||"/",C=w;if(y!=="/"){let R=y.replace(/^\//,"").split("/");C="/"+w.replace(/^\//,"").split("/").slice(R.length).join("/")}let N=Xv(n,{pathname:C});xn(p||N!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),xn(N==null||N[N.length-1].route.element!==void 0||N[N.length-1].route.Component!==void 0||N[N.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=F2(N&&N.map(R=>Object.assign({},R,{params:Object.assign({},f,R.params),pathname:Bn([y,i.encodeLocation?i.encodeLocation(R.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathname]),pathnameBase:R.pathnameBase==="/"?y:Bn([y,i.encodeLocation?i.encodeLocation(R.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:R.pathnameBase])})),u,o);return l&&E?v.createElement(Go.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},E):E}function Q2(){let n=nw(),l=D2(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)",u={padding:"0.5rem",backgroundColor:i},d={padding:"2px 4px",backgroundColor:i},f=null;return console.error("Error handled by React Router default ErrorBoundary:",n),f=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:d},"ErrorBoundary")," or"," ",v.createElement("code",{style:d},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},l),o?v.createElement("pre",{style:u},o):null,f)}var K2=v.createElement(Q2,null),l0=class extends v.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,l){return l.location!==n.location||l.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:l.error,location:l.location,revalidation:n.revalidation||l.revalidation}}componentDidCatch(n,l){this.props.onError?this.props.onError(n,l):console.error("React Router caught the following error during render",n)}render(){let n=this.state.error;if(this.context&&typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){const o=q2(n.digest);o&&(n=o)}let l=n!==void 0?v.createElement(mn.Provider,{value:this.props.routeContext},v.createElement(sf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?v.createElement(Z2,{error:n},l):l}};l0.contextType=L2;var Cd=new WeakMap;function Z2({children:n,error:l}){let{basename:o}=v.useContext(en);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let i=$2(l.digest);if(i){let u=Cd.get(l);if(u)throw u;let d=Zv(i.location,o);if(Kv&&!Cd.get(l))if(d.isExternal||i.reloadDocument)window.location.href=d.absoluteURL||d.to;else{const f=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(d.to,{replace:i.replace}));throw Cd.set(l,f),f}return v.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return n}function I2({routeContext:n,match:l,children:o}){let i=v.useContext(Mr);return i&&i.static&&i.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=l.route.id),v.createElement(mn.Provider,{value:n},o)}function F2(n,l=[],o){let i=o==null?void 0:o.state;if(n==null){if(!i)return null;if(i.errors)n=i.matches;else if(l.length===0&&!i.initialized&&i.matches.length>0)n=i.matches;else return null}let u=n,d=i==null?void 0:i.errors;if(d!=null){let x=u.findIndex(g=>g.route.id&&(d==null?void 0:d[g.route.id])!==void 0);et(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),u=u.slice(0,Math.min(u.length,x+1))}let f=!1,h=-1;if(o&&i){f=i.renderFallback;for(let x=0;x<u.length;x++){let g=u[x];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(h=x),g.route.id){let{loaderData:w,errors:C}=i,N=g.route.loader&&!w.hasOwnProperty(g.route.id)&&(!C||C[g.route.id]===void 0);if(g.route.lazy||N){o.isStatic&&(f=!0),h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}}let y=o==null?void 0:o.onError,p=i&&y?(x,g)=>{var w,C;y(x,{location:i.location,params:((C=(w=i.matches)==null?void 0:w[0])==null?void 0:C.params)??{},unstable_pattern:k2(i.matches),errorInfo:g})}:void 0;return u.reduceRight((x,g,w)=>{let C,N=!1,E=null,T=null;i&&(C=d&&g.route.id?d[g.route.id]:void 0,E=g.route.errorElement||K2,f&&(h<0&&w===0?(r0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),N=!0,T=null):h===w&&(N=!0,T=g.route.hydrateFallbackElement||null)));let R=l.concat(u.slice(0,w+1)),A=()=>{let M;return C?M=E:N?M=T:g.route.Component?M=v.createElement(g.route.Component,null):g.route.element?M=g.route.element:M=x,v.createElement(I2,{match:g,routeContext:{outlet:x,matches:R,isDataRoute:i!=null},children:M})};return i&&(g.route.ErrorBoundary||g.route.errorElement||w===0)?v.createElement(l0,{location:i.location,revalidation:i.revalidation,component:E,error:C,children:A(),routeContext:{outlet:null,matches:R,isDataRoute:!0},onError:p}):A()},null)}function cf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function J2(n){let l=v.useContext(Mr);return et(l,cf(n)),l}function W2(n){let l=v.useContext(Xs);return et(l,cf(n)),l}function ew(n){let l=v.useContext(mn);return et(l,cf(n)),l}function uf(n){let l=ew(n),o=l.matches[l.matches.length-1];return et(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function tw(){return uf("useRouteId")}function nw(){var i;let n=v.useContext(sf),l=W2("useRouteError"),o=uf("useRouteError");return n!==void 0?n:(i=l.errors)==null?void 0:i[o]}function aw(){let{router:n}=J2("useNavigate"),l=uf("useNavigate"),o=v.useRef(!1);return e0(()=>{o.current=!0}),v.useCallback(async(u,d={})=>{xn(o.current,Wv),o.current&&(typeof u=="number"?await n.navigate(u):await n.navigate(u,{fromRouteId:l,...d}))},[n,l])}var Jg={};function r0(n,l,o){!l&&!Jg[n]&&(Jg[n]=!0,xn(!1,o))}v.memo(lw);function lw({routes:n,future:l,state:o,isStatic:i,onError:u}){return a0(n,void 0,{state:o,isStatic:i,onError:u})}function Wg({to:n,replace:l,state:o,relative:i}){et(Or(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=v.useContext(en);xn(!u,"<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(mn),{pathname:f}=$n(),h=t0(),y=Gs(n,of(d),f,i==="path"),p=JSON.stringify(y);return v.useEffect(()=>{h(JSON.parse(p),{replace:l,state:o,relative:i})},[h,p,i,l,o]),null}function rw(n){return X2(n.context)}function Cl(n){et(!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 ow({basename:n="/",children:l=null,location:o,navigationType:i="POP",navigator:u,static:d=!1,unstable_useTransitions:f}){et(!Or(),"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:u,static:d,unstable_useTransitions:f,future:{}}),[h,u,d,f]);typeof o=="string"&&(o=jr(o));let{pathname:p="/",search:x="",hash:g="",state:w=null,key:C="default",unstable_mask:N}=o,E=v.useMemo(()=>{let T=ca(p,h);return T==null?null:{location:{pathname:T,search:x,hash:g,state:w,key:C,unstable_mask:N},navigationType:i}},[h,p,x,g,w,C,i,N]);return xn(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(en.Provider,{value:y},v.createElement(Go.Provider,{children:l,value:E}))}function iw({children:n,location:l}){return P2(qd(n),l)}function qd(n,l=[]){let o=[];return v.Children.forEach(n,(i,u)=>{if(!v.isValidElement(i))return;let d=[...l,u];if(i.type===v.Fragment){o.push.apply(o,qd(i.props.children,d));return}et(i.type===Cl,`[${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>`),et(!i.props.index||!i.props.children,"An index route cannot have child routes.");let f={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&&(f.children=qd(i.props.children,d)),o.push(f)}),o}var xs="get",Ss="application/x-www-form-urlencoded";function Ps(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function sw(n){return Ps(n)&&n.tagName.toLowerCase()==="button"}function cw(n){return Ps(n)&&n.tagName.toLowerCase()==="form"}function uw(n){return Ps(n)&&n.tagName.toLowerCase()==="input"}function dw(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function fw(n,l){return n.button===0&&(!l||l==="_self")&&!dw(n)}var cs=null;function mw(){if(cs===null)try{new FormData(document.createElement("form"),0),cs=!1}catch{cs=!0}return cs}var hw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Td(n){return n!=null&&!hw.has(n)?(xn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ss}"`),null):n}function pw(n,l){let o,i,u,d,f;if(cw(n)){let h=n.getAttribute("action");i=h?ca(h,l):null,o=n.getAttribute("method")||xs,u=Td(n.getAttribute("enctype"))||Ss,d=new FormData(n)}else if(sw(n)||uw(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?ca(y,l):null,o=n.getAttribute("formmethod")||h.getAttribute("method")||xs,u=Td(n.getAttribute("formenctype"))||Td(h.getAttribute("enctype"))||Ss,d=new FormData(h,n),!mw()){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(Ps(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=xs,i=null,u=Ss,f=n}return d&&u==="text/plain"&&(f=d,d=void 0),{action:i,method:o.toLowerCase(),encType:u,formData:d,body:f}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function df(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function gw(n,l,o,i){let u=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return o?u.pathname.endsWith("/")?u.pathname=`${u.pathname}_.${i}`:u.pathname=`${u.pathname}.${i}`:u.pathname==="/"?u.pathname=`_root.${i}`:l&&ca(u.pathname,l)==="/"?u.pathname=`${l.replace(/\/$/,"")}/_root.${i}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${i}`,u}async function vw(n,l){if(n.id in l)return l[n.id];try{let o=await import(n.module);return l[n.id]=o,o}catch(o){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(o),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function yw(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function bw(n,l,o){let i=await Promise.all(n.map(async u=>{let d=l.routes[u.route.id];if(d){let f=await vw(d,o);return f.links?f.links():[]}return[]}));return Ew(i.flat(1).filter(yw).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function ev(n,l,o,i,u,d){let f=(y,p)=>o[p]?y.route.id!==o[p].route.id:!0,h=(y,p)=>{var x;return o[p].pathname!==y.pathname||((x=o[p].route.path)==null?void 0:x.endsWith("*"))&&o[p].params["*"]!==y.params["*"]};return d==="assets"?l.filter((y,p)=>f(y,p)||h(y,p)):d==="data"?l.filter((y,p)=>{var g;let x=i.routes[y.route.id];if(!x||!x.hasLoader)return!1;if(f(y,p)||h(y,p))return!0;if(y.route.shouldRevalidate){let w=y.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.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 xw(n,l,{includeHydrateFallback:o}={}){return Sw(n.map(i=>{let u=l.routes[i.route.id];if(!u)return[];let d=[u.module];return u.clientActionModule&&(d=d.concat(u.clientActionModule)),u.clientLoaderModule&&(d=d.concat(u.clientLoaderModule)),o&&u.hydrateFallbackModule&&(d=d.concat(u.hydrateFallbackModule)),u.imports&&(d=d.concat(u.imports)),d}).flat(1))}function Sw(n){return[...new Set(n)]}function ww(n){let l={},o=Object.keys(n).sort();for(let i of o)l[i]=n[i];return l}function Ew(n,l){let o=new Set;return new Set(l),n.reduce((i,u)=>{let d=JSON.stringify(ww(u));return o.has(d)||(o.add(d),i.push({key:d,link:u})),i},[])}function o0(){let n=v.useContext(Mr);return df(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function Nw(){let n=v.useContext(Xs);return df(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var ff=v.createContext(void 0);ff.displayName="FrameworkContext";function i0(){let n=v.useContext(ff);return df(n,"You must render this element inside a <HydratedRouter> element"),n}function Cw(n,l){let o=v.useContext(ff),[i,u]=v.useState(!1),[d,f]=v.useState(!1),{onFocus:h,onBlur:y,onMouseEnter:p,onMouseLeave:x,onTouchStart:g}=l,w=v.useRef(null);v.useEffect(()=>{if(n==="render"&&f(!0),n==="viewport"){let E=R=>{R.forEach(A=>{f(A.isIntersecting)})},T=new IntersectionObserver(E,{threshold:.5});return w.current&&T.observe(w.current),()=>{T.disconnect()}}},[n]),v.useEffect(()=>{if(i){let E=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(E)}}},[i]);let C=()=>{u(!0)},N=()=>{u(!1),f(!1)};return o?n!=="intent"?[d,w,{}]:[d,w,{onFocus:Do(h,C),onBlur:Do(y,N),onMouseEnter:Do(p,C),onMouseLeave:Do(x,N),onTouchStart:Do(g,C)}]:[!1,w,{}]}function Do(n,l){return o=>{n&&n(o),o.defaultPrevented||l(o)}}function Tw({page:n,...l}){let{router:o}=o0(),i=v.useMemo(()=>Xv(o.routes,n,o.basename),[o.routes,n,o.basename]);return i?v.createElement(Aw,{page:n,matches:i,...l}):null}function Rw(n){let{manifest:l,routeModules:o}=i0(),[i,u]=v.useState([]);return v.useEffect(()=>{let d=!1;return bw(n,l,o).then(f=>{d||u(f)}),()=>{d=!0}},[n,l,o]),i}function Aw({page:n,matches:l,...o}){let i=$n(),{future:u,manifest:d,routeModules:f}=i0(),{basename:h}=o0(),{loaderData:y,matches:p}=Nw(),x=v.useMemo(()=>ev(n,l,p,d,i,"data"),[n,l,p,d,i]),g=v.useMemo(()=>ev(n,l,p,d,i,"assets"),[n,l,p,d,i]),w=v.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,T=!1;if(l.forEach(A=>{var k;let M=d.routes[A.route.id];!M||!M.hasLoader||(!x.some($=>$.route.id===A.route.id)&&A.route.id in y&&((k=f[A.route.id])!=null&&k.shouldRevalidate)||M.hasClientLoader?T=!0:E.add(A.route.id))}),E.size===0)return[];let R=gw(n,h,u.unstable_trailingSlashAwareDataRequests,"data");return T&&E.size>0&&R.searchParams.set("_routes",l.filter(A=>E.has(A.route.id)).map(A=>A.route.id).join(",")),[R.pathname+R.search]},[h,u.unstable_trailingSlashAwareDataRequests,y,i,d,x,l,n,f]),C=v.useMemo(()=>xw(g,d),[g,d]),N=Rw(g);return v.createElement(v.Fragment,null,w.map(E=>v.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...o})),C.map(E=>v.createElement("link",{key:E,rel:"modulepreload",href:E,...o})),N.map(({key:E,link:T})=>v.createElement("link",{key:E,nonce:o.nonce,...T,crossOrigin:T.crossOrigin??o.crossOrigin})))}function _w(...n){return l=>{n.forEach(o=>{typeof o=="function"?o(l):o!=null&&(o.current=l)})}}var jw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{jw&&(window.__reactRouterVersion="7.13.2")}catch{}function Mw({basename:n,children:l,unstable_useTransitions:o,window:i}){let u=v.useRef();u.current==null&&(u.current=c2({window:i,v5Compat:!0}));let d=u.current,[f,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(ow,{basename:n,children:l,location:f.location,navigationType:f.action,navigator:d,unstable_useTransitions:o})}var s0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,c0=v.forwardRef(function({onClick:l,discover:o="render",prefetch:i="none",relative:u,reloadDocument:d,replace:f,unstable_mask:h,state:y,target:p,to:x,preventScrollReset:g,viewTransition:w,unstable_defaultShouldRevalidate:C,...N},E){let{basename:T,navigator:R,unstable_useTransitions:A}=v.useContext(en),M=typeof x=="string"&&s0.test(x),k=Zv(x,T);x=k.to;let $=Y2(x,{relative:u}),G=$n(),B=null;if(h){let re=Gs(h,[],G.unstable_mask?G.unstable_mask.pathname:"/",!0);T!=="/"&&(re.pathname=re.pathname==="/"?T:Bn([T,re.pathname])),B=R.createHref(re)}let[V,ae,oe]=Cw(i,N),pe=kw(x,{replace:f,unstable_mask:h,state:y,target:p,preventScrollReset:g,relative:u,viewTransition:w,unstable_defaultShouldRevalidate:C,unstable_useTransitions:A});function me(re){l&&l(re),re.defaultPrevented||pe(re)}let ue=!(k.isExternal||d),de=v.createElement("a",{...N,...oe,href:(ue?B:void 0)||k.absoluteURL||$,onClick:ue?me:l,ref:_w(E,ae),target:p,"data-discover":!M&&o==="render"?"true":void 0});return V&&!M?v.createElement(v.Fragment,null,de,v.createElement(Tw,{page:$})):de});c0.displayName="Link";var u0=v.forwardRef(function({"aria-current":l="page",caseSensitive:o=!1,className:i="",end:u=!1,style:d,to:f,viewTransition:h,children:y,...p},x){let g=Xo(f,{relative:p.relative}),w=$n(),C=v.useContext(Xs),{navigator:N,basename:E}=v.useContext(en),T=C!=null&&Hw(g)&&h===!0,R=N.encodeLocation?N.encodeLocation(g).pathname:g.pathname,A=w.pathname,M=C&&C.navigation&&C.navigation.location?C.navigation.location.pathname:null;o||(A=A.toLowerCase(),M=M?M.toLowerCase():null,R=R.toLowerCase()),M&&E&&(M=ca(M,E)||M);const k=R!=="/"&&R.endsWith("/")?R.length-1:R.length;let $=A===R||!u&&A.startsWith(R)&&A.charAt(k)==="/",G=M!=null&&(M===R||!u&&M.startsWith(R)&&M.charAt(R.length)==="/"),B={isActive:$,isPending:G,isTransitioning:T},V=$?l:void 0,ae;typeof i=="function"?ae=i(B):ae=[i,$?"active":null,G?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let oe=typeof d=="function"?d(B):d;return v.createElement(c0,{...p,"aria-current":V,className:ae,ref:x,style:oe,to:f,viewTransition:h},typeof y=="function"?y(B):y)});u0.displayName="NavLink";var Ow=v.forwardRef(({discover:n="render",fetcherKey:l,navigate:o,reloadDocument:i,replace:u,state:d,method:f=xs,action:h,onSubmit:y,relative:p,preventScrollReset:x,viewTransition:g,unstable_defaultShouldRevalidate:w,...C},N)=>{let{unstable_useTransitions:E}=v.useContext(en),T=Uw(),R=Bw(h,{relative:p}),A=f.toLowerCase()==="get"?"get":"post",M=typeof h=="string"&&s0.test(h),k=$=>{if(y&&y($),$.defaultPrevented)return;$.preventDefault();let G=$.nativeEvent.submitter,B=(G==null?void 0:G.getAttribute("formmethod"))||f,V=()=>T(G||$.currentTarget,{fetcherKey:l,method:B,navigate:o,replace:u,state:d,relative:p,preventScrollReset:x,viewTransition:g,unstable_defaultShouldRevalidate:w});E&&o!==!1?v.startTransition(()=>V()):V()};return v.createElement("form",{ref:N,method:A,action:R,onSubmit:i?y:k,...C,"data-discover":!M&&n==="render"?"true":void 0})});Ow.displayName="Form";function Dw(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function d0(n){let l=v.useContext(Mr);return et(l,Dw(n)),l}function kw(n,{target:l,replace:o,unstable_mask:i,state:u,preventScrollReset:d,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:y,unstable_useTransitions:p}={}){let x=t0(),g=$n(),w=Xo(n,{relative:f});return v.useCallback(C=>{if(fw(C,l)){C.preventDefault();let N=o!==void 0?o:$o(g)===$o(w),E=()=>x(n,{replace:N,unstable_mask:i,state:u,preventScrollReset:d,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:y});p?v.startTransition(()=>E()):E()}},[g,x,w,o,i,u,l,n,d,f,h,y,p])}var zw=0,Lw=()=>`__${String(++zw)}__`;function Uw(){let{router:n}=d0("useSubmit"),{basename:l}=v.useContext(en),o=tw(),i=n.fetch,u=n.navigate;return v.useCallback(async(d,f={})=>{let{action:h,method:y,encType:p,formData:x,body:g}=pw(d,l);if(f.navigate===!1){let w=f.fetcherKey||Lw();await i(w,o,f.action||h,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:x,body:g,formMethod:f.method||y,formEncType:f.encType||p,flushSync:f.flushSync})}else await u(f.action||h,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:x,body:g,formMethod:f.method||y,formEncType:f.encType||p,replace:f.replace,state:f.state,fromRouteId:o,flushSync:f.flushSync,viewTransition:f.viewTransition})},[i,u,l,o])}function Bw(n,{relative:l}={}){let{basename:o}=v.useContext(en),i=v.useContext(mn);et(i,"useFormAction must be used inside a RouteContext");let[u]=i.matches.slice(-1),d={...Xo(n||".",{relative:l})},f=$n();if(n==null){d.search=f.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===".")&&u.route.index&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),o!=="/"&&(d.pathname=d.pathname==="/"?o:Bn([o,d.pathname])),$o(d)}function Hw(n,{relative:l}={}){let o=v.useContext(Fv);et(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=d0("useViewTransitionState"),u=Xo(n,{relative:l});if(!o.isTransitioning)return!1;let d=ca(o.currentLocation.pathname,i)||o.currentLocation.pathname,f=ca(o.nextLocation.pathname,i)||o.nextLocation.pathname;return Ts(u.pathname,f)!=null||Ts(u.pathname,d)!=null}var Po=Yv();const f0=qv(Po),Vw="/api";function $w(n,l){if(typeof n=="string"&&n)return n;if(n&&typeof n=="object"){const o=n,i=typeof o.error=="object"&&o.error!==null?o.error:void 0;if(typeof o.error=="string"&&o.error)return o.error;if(typeof(i==null?void 0:i.message)=="string"&&i.message)return i.message;if(typeof o.message=="string"&&o.message)return o.message}return l}async function Se(n,l){const o=await fetch(`${Vw}${n}`,{...l,headers:{"Content-Type":"application/json",...l==null?void 0:l.headers}});if(!o.ok){const i=await o.json().catch(()=>o.statusText);throw new Error($w(i,`HTTP ${o.status}`))}return o.json()}function qw(){return Se("/system/info")}function x3(n){return Se("/system/transport",{method:"POST",body:JSON.stringify({type:n})})}function Yw(n){return Se("/system/runtime/restart",{method:"POST",body:JSON.stringify(n)})}function Gw(){return Se("/system/runtime/stop",{method:"POST"})}function Xw(){return Se("/cluster/state")}function S3(){return Se("/cluster/promote",{method:"POST"})}function w3(n){return Se("/cluster/connect",{method:"POST",body:JSON.stringify(n)})}function E3(){return Se("/cluster/disconnect",{method:"POST"})}function Pw(n){return Se(`/node-operations/${n}`)}async function Qw(n={}){const l=new URLSearchParams;n.nodeId&&l.set("nodeId",n.nodeId),n.status&&l.set("status",n.status),n.kind&&l.set("kind",n.kind);const o=l.toString();return(await Se(`/node-operations${o?`?${o}`:""}`)).operations}function Kw(n,l){return Se(`/nodes/${n}/agents/${l}/upgrade`,{method:"POST"})}function Zw(n,l){return Se(`/nodes/${n}/runtime/restart`,{method:"POST",body:JSON.stringify(l)})}async function N3(){return(await Se("/devboxes")).devboxes}function C3(n,l){return Se(`/nodes/${n}/devbox/configure`,{method:"POST",body:JSON.stringify({devbox:l})})}function T3(n){return Se(`/nodes/${n}/devbox/status`)}function R3(n){return Se(`/nodes/${n}/devbox/start`,{method:"POST"})}function A3(n,l){return Se(`/nodes/${n}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:l})})}function _3(n,l={}){const o=new URLSearchParams;l.path&&o.set("path",l.path),l.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,l.limit),100))),l.offset!==void 0&&o.set("offset",String(Math.max(0,l.offset))),l.directoriesOnly!==void 0&&o.set("directoriesOnly",String(l.directoriesOnly)),l.allowAbsolute!==void 0&&o.set("allowAbsolute",String(l.allowAbsolute));const i=o.toString();return Se(`/nodes/${n}/workdir/tree${i?`?${i}`:""}`)}function j3(n,l={}){const o=new URLSearchParams;l.path&&o.set("path",l.path),l.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,l.limit),20))),l.offset!==void 0&&o.set("offset",String(Math.max(0,l.offset))),l.allowAbsolute!==void 0&&o.set("allowAbsolute",String(l.allowAbsolute));const i=o.toString();return Se(`/nodes/${n}/workdir/branch${i?`?${i}`:""}`)}function M3(n,l){const o=new URLSearchParams;return o.set("agent",l.agent),o.set("limit",String(Math.min(Math.max(1,l.limit),100))),Se(`/nodes/${n}/native-sessions?${o.toString()}`)}function O3(n,l){return Se(`/nodes/${n}/workdir/branch`,{method:"POST",body:JSON.stringify({path:l.path,branchName:l.branchName,startPoint:l.startPoint,limit:l.limit,offset:l.offset,allowAbsolute:l.allowAbsolute})})}function D3(n,l){return Se(`/nodes/${n}/terminal/sessions`,{method:"POST",body:JSON.stringify(l)})}function k3(n){return Se(`/nodes/${n}/terminal/sessions`)}function z3(n,l){return Se(`/nodes/${n}/terminal/sessions/${l}`)}function L3(n,l){return Se(`/nodes/${n}/terminal/sessions/${l}/stop`,{method:"POST"})}async function U3(n){const l=new URLSearchParams;if(n!=null&&n.status&&l.set("status",n.status),n!=null&&n.assignedTo&&l.set("assignedTo",n.assignedTo),n!=null&&n.priority&&l.set("priority",n.priority),n!=null&&n.limit){const u=Math.min(Math.max(1,n.limit),100);l.set("limit",String(u))}n!=null&&n.offset&&l.set("offset",String(n.offset));const o=l.toString();return(await Se(`/tasks${o?`?${o}`:""}`)).tasks}function B3(n){return Se(`/tasks/${n}`)}function H3(n){return Se("/tasks",{method:"POST",body:JSON.stringify(n)})}function V3(n){return Se("/tasks/import-session",{method:"POST",body:JSON.stringify(n)})}function $3(n){return Se("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:n})})}function q3(n){return Se("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:n})})}function Y3(n){return Se(`/tasks/${n}/cancel`,{method:"POST"})}function G3(n){return Se(`/tasks/${n}/retry`,{method:"POST"})}function X3(n,l){return Se(`/tasks/${n}/logs`)}function P3(n,l){return Se(`/tasks/${n}/message`,{method:"POST",body:JSON.stringify({content:l})})}function Q3(n,l){return Se(`/tasks/${n}/queued-messages/${encodeURIComponent(l)}`,{method:"DELETE"})}function K3(n,l){return Se(`/tasks/${n}/share`,{method:"POST",body:JSON.stringify(l)})}function Z3(n){return Se(`/tasks/${n}/share`,{method:"DELETE"})}function I3(n){return Se(`/shared/conversations/${encodeURIComponent(n)}`)}function F3(n,l){return Se(`/shared/conversations/${encodeURIComponent(n)}/logs`)}function J3(n){return Se(`/shared/conversations/${encodeURIComponent(n)}/output`)}function W3(n,l="."){return Se(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(l)}`)}function ej(n,l){return Se(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(l)}`)}function tj(n,l){return Se(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(l?{path:l}:{})})}function Iw(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}function nj(n){return Se(`/tasks/${n}/output`)}function aj(n,l="."){return Se(`/tasks/${n}/output/tree?path=${encodeURIComponent(l)}`)}function lj(n,l){return Se(`/tasks/${n}/output/content?path=${encodeURIComponent(l)}`)}function rj(n,l){return Se(`/tasks/${n}/output/preview-sessions`,{method:"POST",body:JSON.stringify(Iw(l))})}function oj(n){return Se(`/tasks/${n}/output/diff`)}function Fw({hasStarted:n,enabled:l}){return l&&!n}function Jw(n,l,o=!0){const i=v.useRef(n),u=v.useRef(!1);v.useEffect(()=>{i.current=n},[n]),v.useEffect(()=>{if(!o)return;const d=()=>i.current();Fw({hasStarted:u.current,enabled:o})&&(u.current=!0,d());const f=setInterval(d,l);return()=>clearInterval(f)},[l,o])}let Ww=0;function eE(n=50){const[l,o]=v.useState([]),[i,u]=v.useState(!1),d=v.useRef(null),f=v.useRef(0),h=v.useRef(new Map);v.useEffect(()=>{const x=new EventSource("/api/events");d.current=x,x.onopen=()=>u(!0),x.onerror=()=>u(!1);const g=["node.joined","node.left","node.status","node.operation.created","node.operation.updated","task.created","task.assigned","task.status","task.updated","task.deleted","task.output","election.started","election.complete","cluster.state","transport.changed"];for(const w of g)x.addEventListener(w,C=>{const N={id:String(++Ww),type:w,data:JSON.parse(C.data),timestamp:Date.now()};o(E=>[N,...E].slice(0,n));for(const[,{pattern:E,callback:T}]of h.current)w.startsWith(E)&&T(N)});return()=>{x.close(),d.current=null,u(!1)}},[n]);const y=v.useCallback((x,g)=>{const w=++f.current;return h.current.set(w,{pattern:x,callback:g}),()=>{h.current.delete(w)}},[]),p=v.useCallback(()=>o([]),[]);return{events:l,connected:i,subscribe:y,clearEvents:p}}const tE=1e4,nE=6e4,aE=tE,lE=250,rE=new Set(["task.created","task.assigned","task.deleted"]),oE=new Set(["task.created","task.assigned","task.status","task.deleted"]);function iE(n){return n?nE:aE}function ij(n){return rE.has(n)}function sE(n){return oE.has(n)}function cE(n,l){if(!l)return!0;const o=n.leaderId,i=n.term,u=n.nodeCount;return typeof o!="string"&&o!==null||typeof i!="number"||typeof u!="number"?!0:l.leaderId!==o||l.term!==i||l.nodeCount!==u}function uE(n,l,o){if(n==="node.joined"||n==="node.left"||n!=="node.status")return!0;const i=l.nodeId,u=l.status;return typeof i!="string"||typeof u!="string"?!0:o.get(i)!==u}function sj(n,l){const o=l.taskId,i=l.status;if(typeof o!="string"||typeof i!="string")return n;let u=!1;const d=n.map(f=>{if(f.id!==o)return f;u=!0;const h="result"in l?l.result:i==="completed"?null:f.result,y="error"in l?l.error:i==="completed"?null:f.error;return{...f,status:i,result:h,error:y}});return u?d:n}const m0=v.createContext(null);function dE({children:n}){const[l,o]=v.useState(null),[i,u]=v.useState(null),[d,f]=v.useState(!0),[h,y]=v.useState(null),p=v.useRef(null),x=v.useRef(null),g=v.useRef(new Map),{events:w,connected:C,subscribe:N}=eE(),E=v.useCallback(async()=>{var R;try{const[A,M]=await Promise.all([Xw(),qw()]),k=A,$=M.nodeId??M.id,G=k.nodes??[],B=G.find(oe=>oe.id===$)??{id:$,name:M.name,endpoint:M.endpoint,role:M.role,status:M.status,capabilities:M.capabilities,joinedAt:M.joinedAt,lastHeartbeat:M.lastHeartbeat},V=k.leaderId?G.find(oe=>oe.id===k.leaderId)??null:null,ae={leader:V?{id:V.id,name:V.name,endpoint:V.endpoint,...V.dashboardOrigin?{dashboardOrigin:V.dashboardOrigin}:{}}:null,term:k.term??0,nodes:G,self:B,taskSummary:k.taskSummary??{total:0,pending:0,running:0,completed:0,failed:0}};x.current={leaderId:((R=ae.leader)==null?void 0:R.id)??null,term:ae.term,nodeCount:ae.nodes.length},g.current=new Map(ae.nodes.map(oe=>[oe.id,oe.status])),g.current.set(ae.self.id,ae.self.status),o(ae),u(M),y(null)}catch(A){y(A instanceof Error?A.message:"Failed to fetch cluster state")}finally{f(!1)}},[]),T=v.useCallback(()=>{p.current===null&&(p.current=window.setTimeout(()=>{p.current=null,E()},lE))},[E]);return Jw(E,iE(C)),v.useEffect(()=>()=>{p.current!==null&&(window.clearTimeout(p.current),p.current=null)},[]),v.useEffect(()=>{const R=[N("cluster",A=>{cE(A.data,x.current)&&T()}),N("election",T),N("node",A=>{uE(A.type,A.data,g.current)&&T()}),N("transport",T),N("task",A=>{sE(A.type)&&T()})];return()=>R.forEach(A=>A())},[N,T]),m.jsx(m0.Provider,{value:{cluster:l,systemInfo:i,events:w,sseConnected:C,subscribe:N,refresh:E,loading:d,error:h},children:n})}function h0(){const n=v.useContext(m0);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 p0=(...n)=>n.filter((l,o,i)=>!!l&&l.trim()!==""&&i.indexOf(l)===o).join(" ").trim();/**
67
- * @license lucide-react v1.7.0 - ISC
68
- *
69
- * This source code is licensed under the ISC license.
70
- * See the LICENSE file in the root directory of this source tree.
71
- */const fE=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 mE=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(l,o,i)=>i?i.toUpperCase():o.toLowerCase());/**
77
- * @license lucide-react v1.7.0 - ISC
78
- *
79
- * This source code is licensed under the ISC license.
80
- * See the LICENSE file in the root directory of this source tree.
81
- */const tv=n=>{const l=mE(n);return l.charAt(0).toUpperCase()+l.slice(1)};/**
82
- * @license lucide-react v1.7.0 - ISC
83
- *
84
- * This source code is licensed under the ISC license.
85
- * See the LICENSE file in the root directory of this source tree.
86
- */var Rd={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 hE=n=>{for(const l in n)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1},pE=v.createContext({}),gE=()=>v.useContext(pE),vE=v.forwardRef(({color:n,size:l,strokeWidth:o,absoluteStrokeWidth:i,className:u="",children:d,iconNode:f,...h},y)=>{const{size:p=24,strokeWidth:x=2,absoluteStrokeWidth:g=!1,color:w="currentColor",className:C=""}=gE()??{},N=i??g?Number(o??x)*24/Number(l??p):o??x;return v.createElement("svg",{ref:y,...Rd,width:l??p??Rd.width,height:l??p??Rd.height,stroke:n??w,strokeWidth:N,className:p0("lucide",C,u),...!d&&!hE(h)&&{"aria-hidden":"true"},...h},[...f.map(([E,T])=>v.createElement(E,T)),...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 Ve=(n,l)=>{const o=v.forwardRef(({className:i,...u},d)=>v.createElement(vE,{ref:d,iconNode:l,className:p0(`lucide-${fE(tv(n))}`,`lucide-${n}`,i),...u}));return o.displayName=tv(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 yE=[["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"}]],Rs=Ve("activity",yE);/**
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 bE=[["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"}]],xE=Ve("book-open",bE);/**
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 SE=[["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"}]],g0=Ve("bot",SE);/**
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 wE=[["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"}]],EE=Ve("cable",wE);/**
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 NE=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],mf=Ve("check",NE);/**
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 CE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Qs=Ve("chevron-down",CE);/**
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 TE=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],RE=Ve("chevron-right",TE);/**
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 AE=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],_E=Ve("chevron-up",AE);/**
137
- * @license lucide-react v1.7.0 - ISC
138
- *
139
- * This source code is licensed under the ISC license.
140
- * See the LICENSE file in the root directory of this source tree.
141
- */const jE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],us=Ve("circle-alert",jE);/**
142
- * @license lucide-react v1.7.0 - ISC
143
- *
144
- * This source code is licensed under the ISC license.
145
- * See the LICENSE file in the root directory of this source tree.
146
- */const ME=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Bo=Ve("circle-check",ME);/**
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 OE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],nv=Ve("circle-dot",OE);/**
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 DE=[["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"}]],kE=Ve("circle-x",DE);/**
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 zE=[["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"}]],LE=Ve("copy",zE);/**
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 UE=[["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"}]],BE=Ve("cpu",UE);/**
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 HE=[["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"}]],VE=Ve("external-link",HE);/**
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 $E=[["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"}]],qE=Ve("folder-tree",$E);/**
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 YE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],GE=Ve("info",YE);/**
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 XE=[["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"}]],PE=Ve("monitor-cog",XE);/**
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 QE=[["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"}]],v0=Ve("monitor",QE);/**
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 KE=[["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"}]],y0=Ve("moon",KE);/**
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 ZE=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],IE=Ve("power",ZE);/**
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 FE=[["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"}]],b0=Ve("radio",FE);/**
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 JE=[["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"}]],WE=Ve("refresh-cw",JE);/**
212
- * @license lucide-react v1.7.0 - ISC
213
- *
214
- * This source code is licensed under the ISC license.
215
- * See the LICENSE file in the root directory of this source tree.
216
- */const eN=[["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"}]],tN=Ve("server",eN);/**
217
- * @license lucide-react v1.7.0 - ISC
218
- *
219
- * This source code is licensed under the ISC license.
220
- * See the LICENSE file in the root directory of this source tree.
221
- */const nN=[["path",{d:"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"}]],aN=Ve("settings",nN);/**
222
- * @license lucide-react v1.7.0 - ISC
223
- *
224
- * This source code is licensed under the ISC license.
225
- * See the LICENSE file in the root directory of this source tree.
226
- */const lN=[["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"}]],rN=Ve("shield",lN);/**
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 oN=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],iN=Ve("sparkles",oN);/**
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 sN=[["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"}]],x0=Ve("sun",sN);/**
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 cN=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],S0=Ve("terminal",cN);/**
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 uN=[["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"}]],dN=Ve("wifi-off",uN);/**
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 fN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],w0=Ve("x",fN);function E0(n){var l,o,i="";if(typeof n=="string"||typeof n=="number")i+=n;else if(typeof n=="object")if(Array.isArray(n)){var u=n.length;for(l=0;l<u;l++)n[l]&&(o=E0(n[l]))&&(i&&(i+=" "),i+=o)}else for(o in n)n[o]&&(i&&(i+=" "),i+=o);return i}function N0(){for(var n,l,o=0,i="",u=arguments.length;o<u;o++)(n=arguments[o])&&(l=E0(n))&&(i&&(i+=" "),i+=l);return i}const mN=(n,l)=>{const o=new Array(n.length+l.length);for(let i=0;i<n.length;i++)o[i]=n[i];for(let i=0;i<l.length;i++)o[n.length+i]=l[i];return o},hN=(n,l)=>({classGroupId:n,validator:l}),C0=(n=new Map,l=null,o)=>({nextPart:n,validators:l,classGroupId:o}),As="-",av=[],pN="arbitrary..",gN=n=>{const l=yN(n),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return vN(f);const h=f.split(As),y=h[0]===""&&h.length>1?1:0;return T0(h,y,l)},getConflictingClassGroupIds:(f,h)=>{if(h){const y=i[f],p=o[f];return y?p?mN(p,y):y:p||av}return o[f]||av}}},T0=(n,l,o)=>{if(n.length-l===0)return o.classGroupId;const u=n[l],d=o.nextPart.get(u);if(d){const p=T0(n,l+1,d);if(p)return p}const f=o.validators;if(f===null)return;const h=l===0?n.join(As):n.slice(l).join(As),y=f.length;for(let p=0;p<y;p++){const x=f[p];if(x.validator(h))return x.classGroupId}},vN=n=>n.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const l=n.slice(1,-1),o=l.indexOf(":"),i=l.slice(0,o);return i?pN+i:void 0})(),yN=n=>{const{theme:l,classGroups:o}=n;return bN(o,l)},bN=(n,l)=>{const o=C0();for(const i in n){const u=n[i];hf(u,o,i,l)}return o},hf=(n,l,o,i)=>{const u=n.length;for(let d=0;d<u;d++){const f=n[d];xN(f,l,o,i)}},xN=(n,l,o,i)=>{if(typeof n=="string"){SN(n,l,o);return}if(typeof n=="function"){wN(n,l,o,i);return}EN(n,l,o,i)},SN=(n,l,o)=>{const i=n===""?l:R0(l,n);i.classGroupId=o},wN=(n,l,o,i)=>{if(NN(n)){hf(n(i),l,o,i);return}l.validators===null&&(l.validators=[]),l.validators.push(hN(o,n))},EN=(n,l,o,i)=>{const u=Object.entries(n),d=u.length;for(let f=0;f<d;f++){const[h,y]=u[f];hf(y,R0(l,h),o,i)}},R0=(n,l)=>{let o=n;const i=l.split(As),u=i.length;for(let d=0;d<u;d++){const f=i[d];let h=o.nextPart.get(f);h||(h=C0(),o.nextPart.set(f,h)),o=h}return o},NN=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,CN=n=>{if(n<1)return{get:()=>{},set:()=>{}};let l=0,o=Object.create(null),i=Object.create(null);const u=(d,f)=>{o[d]=f,l++,l>n&&(l=0,i=o,o=Object.create(null))};return{get(d){let f=o[d];if(f!==void 0)return f;if((f=i[d])!==void 0)return u(d,f),f},set(d,f){d in o?o[d]=f:u(d,f)}}},Yd="!",lv=":",TN=[],rv=(n,l,o,i,u)=>({modifiers:n,hasImportantModifier:l,baseClassName:o,maybePostfixModifierPosition:i,isExternal:u}),RN=n=>{const{prefix:l,experimentalParseClassName:o}=n;let i=u=>{const d=[];let f=0,h=0,y=0,p;const x=u.length;for(let E=0;E<x;E++){const T=u[E];if(f===0&&h===0){if(T===lv){d.push(u.slice(y,E)),y=E+1;continue}if(T==="/"){p=E;continue}}T==="["?f++:T==="]"?f--:T==="("?h++:T===")"&&h--}const g=d.length===0?u:u.slice(y);let w=g,C=!1;g.endsWith(Yd)?(w=g.slice(0,-1),C=!0):g.startsWith(Yd)&&(w=g.slice(1),C=!0);const N=p&&p>y?p-y:void 0;return rv(d,C,w,N)};if(l){const u=l+lv,d=i;i=f=>f.startsWith(u)?d(f.slice(u.length)):rv(TN,!1,f,void 0,!0)}if(o){const u=i;i=d=>o({className:d,parseClassName:u})}return i},AN=n=>{const l=new Map;return n.orderSensitiveModifiers.forEach((o,i)=>{l.set(o,1e6+i)}),o=>{const i=[];let u=[];for(let d=0;d<o.length;d++){const f=o[d],h=f[0]==="[",y=l.has(f);h||y?(u.length>0&&(u.sort(),i.push(...u),u=[]),i.push(f)):u.push(f)}return u.length>0&&(u.sort(),i.push(...u)),i}},_N=n=>({cache:CN(n.cacheSize),parseClassName:RN(n),sortModifiers:AN(n),...gN(n)}),jN=/\s+/,MN=(n,l)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:u,sortModifiers:d}=l,f=[],h=n.trim().split(jN);let y="";for(let p=h.length-1;p>=0;p-=1){const x=h[p],{isExternal:g,modifiers:w,hasImportantModifier:C,baseClassName:N,maybePostfixModifierPosition:E}=o(x);if(g){y=x+(y.length>0?" "+y:y);continue}let T=!!E,R=i(T?N.substring(0,E):N);if(!R){if(!T){y=x+(y.length>0?" "+y:y);continue}if(R=i(N),!R){y=x+(y.length>0?" "+y:y);continue}T=!1}const A=w.length===0?"":w.length===1?w[0]:d(w).join(":"),M=C?A+Yd:A,k=M+R;if(f.indexOf(k)>-1)continue;f.push(k);const $=u(R,T);for(let G=0;G<$.length;++G){const B=$[G];f.push(M+B)}y=x+(y.length>0?" "+y:y)}return y},ON=(...n)=>{let l=0,o,i,u="";for(;l<n.length;)(o=n[l++])&&(i=A0(o))&&(u&&(u+=" "),u+=i);return u},A0=n=>{if(typeof n=="string")return n;let l,o="";for(let i=0;i<n.length;i++)n[i]&&(l=A0(n[i]))&&(o&&(o+=" "),o+=l);return o},DN=(n,...l)=>{let o,i,u,d;const f=y=>{const p=l.reduce((x,g)=>g(x),n());return o=_N(p),i=o.cache.get,u=o.cache.set,d=h,h(y)},h=y=>{const p=i(y);if(p)return p;const x=MN(y,o);return u(y,x),x};return d=f,(...y)=>d(ON(...y))},kN=[],ft=n=>{const l=o=>o[n]||kN;return l.isThemeGetter=!0,l},_0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,j0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zN=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,LN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,UN=/\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$/,BN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,HN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,VN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$a=n=>zN.test(n),Ae=n=>!!n&&!Number.isNaN(Number(n)),qa=n=>!!n&&Number.isInteger(Number(n)),Ad=n=>n.endsWith("%")&&Ae(n.slice(0,-1)),sa=n=>LN.test(n),M0=()=>!0,$N=n=>UN.test(n)&&!BN.test(n),pf=()=>!1,qN=n=>HN.test(n),YN=n=>VN.test(n),GN=n=>!he(n)&&!ge(n),XN=n=>Za(n,k0,pf),he=n=>_0.test(n),wl=n=>Za(n,z0,$N),ov=n=>Za(n,WN,Ae),PN=n=>Za(n,U0,M0),QN=n=>Za(n,L0,pf),iv=n=>Za(n,O0,pf),KN=n=>Za(n,D0,YN),ds=n=>Za(n,B0,qN),ge=n=>j0.test(n),ko=n=>jl(n,z0),ZN=n=>jl(n,L0),sv=n=>jl(n,O0),IN=n=>jl(n,k0),FN=n=>jl(n,D0),fs=n=>jl(n,B0,!0),JN=n=>jl(n,U0,!0),Za=(n,l,o)=>{const i=_0.exec(n);return i?i[1]?l(i[1]):o(i[2]):!1},jl=(n,l,o=!1)=>{const i=j0.exec(n);return i?i[1]?l(i[1]):o:!1},O0=n=>n==="position"||n==="percentage",D0=n=>n==="image"||n==="url",k0=n=>n==="length"||n==="size"||n==="bg-size",z0=n=>n==="length",WN=n=>n==="number",L0=n=>n==="family-name",U0=n=>n==="number"||n==="weight",B0=n=>n==="shadow",eC=()=>{const n=ft("color"),l=ft("font"),o=ft("text"),i=ft("font-weight"),u=ft("tracking"),d=ft("leading"),f=ft("breakpoint"),h=ft("container"),y=ft("spacing"),p=ft("radius"),x=ft("shadow"),g=ft("inset-shadow"),w=ft("text-shadow"),C=ft("drop-shadow"),N=ft("blur"),E=ft("perspective"),T=ft("aspect"),R=ft("ease"),A=ft("animate"),M=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],$=()=>[...k(),ge,he],G=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],V=()=>[ge,he,y],ae=()=>[$a,"full","auto",...V()],oe=()=>[qa,"none","subgrid",ge,he],pe=()=>["auto",{span:["full",qa,ge,he]},qa,ge,he],me=()=>[qa,"auto",ge,he],ue=()=>["auto","min","max","fr",ge,he],de=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],re=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...V()],Y=()=>[$a,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],F=()=>[$a,"screen","full","dvw","lvw","svw","min","max","fit",...V()],se=()=>[$a,"screen","full","lh","dvh","lvh","svh","min","max","fit",...V()],J=()=>[n,ge,he],j=()=>[...k(),sv,iv,{position:[ge,he]}],X=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",IN,XN,{size:[ge,he]}],ee=()=>[Ad,ko,wl],te=()=>["","none","full",p,ge,he],I=()=>["",Ae,ko,wl],W=()=>["solid","dashed","dotted","double"],le=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[Ae,Ad,sv,iv],we=()=>["","none",N,ge,he],Ee=()=>["none",Ae,ge,he],ve=()=>["none",Ae,ge,he],Ye=()=>[Ae,ge,he],ke=()=>[$a,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[sa],breakpoint:[sa],color:[M0],container:[sa],"drop-shadow":[sa],ease:["in","out","in-out"],font:[GN],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[sa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[sa],shadow:[sa],spacing:["px",Ae],text:[sa],"text-shadow":[sa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$a,he,ge,T]}],container:["container"],columns:[{columns:[Ae,he,ge,h]}],"break-after":[{"break-after":M()}],"break-before":[{"break-before":M()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:$()}],overflow:[{overflow:G()}],"overflow-x":[{"overflow-x":G()}],"overflow-y":[{"overflow-y":G()}],overscroll:[{overscroll:B()}],"overscroll-x":[{"overscroll-x":B()}],"overscroll-y":[{"overscroll-y":B()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ae()}],"inset-x":[{"inset-x":ae()}],"inset-y":[{"inset-y":ae()}],start:[{"inset-s":ae(),start:ae()}],end:[{"inset-e":ae(),end:ae()}],"inset-bs":[{"inset-bs":ae()}],"inset-be":[{"inset-be":ae()}],top:[{top:ae()}],right:[{right:ae()}],bottom:[{bottom:ae()}],left:[{left:ae()}],visibility:["visible","invisible","collapse"],z:[{z:[qa,"auto",ge,he]}],basis:[{basis:[$a,"full","auto",h,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ae,$a,"auto","initial","none",he]}],grow:[{grow:["",Ae,ge,he]}],shrink:[{shrink:["",Ae,ge,he]}],order:[{order:[qa,"first","last","none",ge,he]}],"grid-cols":[{"grid-cols":oe()}],"col-start-end":[{col:pe()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":oe()}],"row-start-end":[{row:pe()}],"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":ue()}],"auto-rows":[{"auto-rows":ue()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...de(),"normal"]}],"justify-items":[{"justify-items":[...re(),"normal"]}],"justify-self":[{"justify-self":["auto",...re()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...re(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...re(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...re(),"baseline"]}],"place-self":[{"place-self":["auto",...re()]}],p:[{p:V()}],px:[{px:V()}],py:[{py:V()}],ps:[{ps:V()}],pe:[{pe:V()}],pbs:[{pbs:V()}],pbe:[{pbe:V()}],pt:[{pt:V()}],pr:[{pr:V()}],pb:[{pb:V()}],pl:[{pl:V()}],m:[{m:O()}],mx:[{mx:O()}],my:[{my:O()}],ms:[{ms:O()}],me:[{me:O()}],mbs:[{mbs:O()}],mbe:[{mbe:O()}],mt:[{mt:O()}],mr:[{mr:O()}],mb:[{mb:O()}],ml:[{ml:O()}],"space-x":[{"space-x":V()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":V()}],"space-y-reverse":["space-y-reverse"],size:[{size:Y()}],"inline-size":[{inline:["auto",...F()]}],"min-inline-size":[{"min-inline":["auto",...F()]}],"max-inline-size":[{"max-inline":["none",...F()]}],"block-size":[{block:["auto",...se()]}],"min-block-size":[{"min-block":["auto",...se()]}],"max-block-size":[{"max-block":["none",...se()]}],w:[{w:[h,"screen",...Y()]}],"min-w":[{"min-w":[h,"screen","none",...Y()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[f]},...Y()]}],h:[{h:["screen","lh",...Y()]}],"min-h":[{"min-h":["screen","lh","none",...Y()]}],"max-h":[{"max-h":["screen","lh",...Y()]}],"font-size":[{text:["base",o,ko,wl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,JN,PN]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ad,he]}],"font-family":[{font:[ZN,QN,l]}],"font-features":[{"font-features":[he]}],"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:[u,ge,he]}],"line-clamp":[{"line-clamp":[Ae,"none",ge,ov]}],leading:[{leading:[d,...V()]}],"list-image":[{"list-image":["none",ge,he]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",ge,he]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:J()}],"text-color":[{text:J()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ae,"from-font","auto",ge,wl]}],"text-decoration-color":[{decoration:J()}],"underline-offset":[{"underline-offset":[Ae,"auto",ge,he]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:V()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ge,he]}],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,he]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:X()}],"bg-size":[{bg:Q()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},qa,ge,he],radial:["",ge,he],conic:[qa,ge,he]},FN,KN]}],"bg-color":[{bg:J()}],"gradient-from-pos":[{from:ee()}],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:J()}],"gradient-via":[{via:J()}],"gradient-to":[{to:J()}],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:I()}],"border-w-x":[{"border-x":I()}],"border-w-y":[{"border-y":I()}],"border-w-s":[{"border-s":I()}],"border-w-e":[{"border-e":I()}],"border-w-bs":[{"border-bs":I()}],"border-w-be":[{"border-be":I()}],"border-w-t":[{"border-t":I()}],"border-w-r":[{"border-r":I()}],"border-w-b":[{"border-b":I()}],"border-w-l":[{"border-l":I()}],"divide-x":[{"divide-x":I()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":I()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:J()}],"border-color-x":[{"border-x":J()}],"border-color-y":[{"border-y":J()}],"border-color-s":[{"border-s":J()}],"border-color-e":[{"border-e":J()}],"border-color-bs":[{"border-bs":J()}],"border-color-be":[{"border-be":J()}],"border-color-t":[{"border-t":J()}],"border-color-r":[{"border-r":J()}],"border-color-b":[{"border-b":J()}],"border-color-l":[{"border-l":J()}],"divide-color":[{divide:J()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ae,ge,he]}],"outline-w":[{outline:["",Ae,ko,wl]}],"outline-color":[{outline:J()}],shadow:[{shadow:["","none",x,fs,ds]}],"shadow-color":[{shadow:J()}],"inset-shadow":[{"inset-shadow":["none",g,fs,ds]}],"inset-shadow-color":[{"inset-shadow":J()}],"ring-w":[{ring:I()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:J()}],"ring-offset-w":[{"ring-offset":[Ae,wl]}],"ring-offset-color":[{"ring-offset":J()}],"inset-ring-w":[{"inset-ring":I()}],"inset-ring-color":[{"inset-ring":J()}],"text-shadow":[{"text-shadow":["none",w,fs,ds]}],"text-shadow-color":[{"text-shadow":J()}],opacity:[{opacity:[Ae,ge,he]}],"mix-blend":[{"mix-blend":[...le(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":le()}],"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":[Ae]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":J()}],"mask-image-linear-to-color":[{"mask-linear-to":J()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":J()}],"mask-image-t-to-color":[{"mask-t-to":J()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":J()}],"mask-image-r-to-color":[{"mask-r-to":J()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":J()}],"mask-image-b-to-color":[{"mask-b-to":J()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":J()}],"mask-image-l-to-color":[{"mask-l-to":J()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":J()}],"mask-image-x-to-color":[{"mask-x-to":J()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":J()}],"mask-image-y-to-color":[{"mask-y-to":J()}],"mask-image-radial":[{"mask-radial":[ge,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":J()}],"mask-image-radial-to-color":[{"mask-radial-to":J()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[Ae]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":J()}],"mask-image-conic-to-color":[{"mask-conic-to":J()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:X()}],"mask-size":[{mask:Q()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",ge,he]}],filter:[{filter:["","none",ge,he]}],blur:[{blur:we()}],brightness:[{brightness:[Ae,ge,he]}],contrast:[{contrast:[Ae,ge,he]}],"drop-shadow":[{"drop-shadow":["","none",C,fs,ds]}],"drop-shadow-color":[{"drop-shadow":J()}],grayscale:[{grayscale:["",Ae,ge,he]}],"hue-rotate":[{"hue-rotate":[Ae,ge,he]}],invert:[{invert:["",Ae,ge,he]}],saturate:[{saturate:[Ae,ge,he]}],sepia:[{sepia:["",Ae,ge,he]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,he]}],"backdrop-blur":[{"backdrop-blur":we()}],"backdrop-brightness":[{"backdrop-brightness":[Ae,ge,he]}],"backdrop-contrast":[{"backdrop-contrast":[Ae,ge,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ae,ge,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ae,ge,he]}],"backdrop-invert":[{"backdrop-invert":["",Ae,ge,he]}],"backdrop-opacity":[{"backdrop-opacity":[Ae,ge,he]}],"backdrop-saturate":[{"backdrop-saturate":[Ae,ge,he]}],"backdrop-sepia":[{"backdrop-sepia":["",Ae,ge,he]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":V()}],"border-spacing-x":[{"border-spacing-x":V()}],"border-spacing-y":[{"border-spacing-y":V()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",ge,he]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ae,"initial",ge,he]}],ease:[{ease:["linear","initial",R,ge,he]}],delay:[{delay:[Ae,ge,he]}],animate:[{animate:["none",A,ge,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ge,he]}],"perspective-origin":[{"perspective-origin":$()}],rotate:[{rotate:Ee()}],"rotate-x":[{"rotate-x":Ee()}],"rotate-y":[{"rotate-y":Ee()}],"rotate-z":[{"rotate-z":Ee()}],scale:[{scale:ve()}],"scale-x":[{"scale-x":ve()}],"scale-y":[{"scale-y":ve()}],"scale-z":[{"scale-z":ve()}],"scale-3d":["scale-3d"],skew:[{skew:Ye()}],"skew-x":[{"skew-x":Ye()}],"skew-y":[{"skew-y":Ye()}],transform:[{transform:[ge,he,"","none","gpu","cpu"]}],"transform-origin":[{origin:$()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ke()}],"translate-x":[{"translate-x":ke()}],"translate-y":[{"translate-y":ke()}],"translate-z":[{"translate-z":ke()}],"translate-none":["translate-none"],accent:[{accent:J()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:J()}],"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,he]}],"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":V()}],"scroll-mx":[{"scroll-mx":V()}],"scroll-my":[{"scroll-my":V()}],"scroll-ms":[{"scroll-ms":V()}],"scroll-me":[{"scroll-me":V()}],"scroll-mbs":[{"scroll-mbs":V()}],"scroll-mbe":[{"scroll-mbe":V()}],"scroll-mt":[{"scroll-mt":V()}],"scroll-mr":[{"scroll-mr":V()}],"scroll-mb":[{"scroll-mb":V()}],"scroll-ml":[{"scroll-ml":V()}],"scroll-p":[{"scroll-p":V()}],"scroll-px":[{"scroll-px":V()}],"scroll-py":[{"scroll-py":V()}],"scroll-ps":[{"scroll-ps":V()}],"scroll-pe":[{"scroll-pe":V()}],"scroll-pbs":[{"scroll-pbs":V()}],"scroll-pbe":[{"scroll-pbe":V()}],"scroll-pt":[{"scroll-pt":V()}],"scroll-pr":[{"scroll-pr":V()}],"scroll-pb":[{"scroll-pb":V()}],"scroll-pl":[{"scroll-pl":V()}],"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,he]}],fill:[{fill:["none",...J()]}],"stroke-w":[{stroke:[Ae,ko,wl,ov]}],stroke:[{stroke:["none",...J()]}],"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"]}},tC=DN(eC);function ce(...n){return tC(N0(n))}const cv=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,uv=N0,H0=(n,l)=>o=>{var i;if((l==null?void 0:l.variants)==null)return uv(n,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:u,defaultVariants:d}=l,f=Object.keys(u).map(p=>{const x=o==null?void 0:o[p],g=d==null?void 0:d[p];if(x===null)return null;const w=cv(x)||cv(g);return u[p][w]}),h=o&&Object.entries(o).reduce((p,x)=>{let[g,w]=x;return w===void 0||(p[g]=w),p},{}),y=l==null||(i=l.compoundVariants)===null||i===void 0?void 0:i.reduce((p,x)=>{let{class:g,className:w,...C}=x;return Object.entries(C).every(N=>{let[E,T]=N;return Array.isArray(T)?T.includes({...d,...h}[E]):{...d,...h}[E]===T})?[...p,g,w]:p},[]);return uv(n,f,y,o==null?void 0:o.class,o==null?void 0:o.className)},nC=H0("inline-flex items-center rounded-[12px] border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function mt({className:n,variant:l,...o}){return m.jsx("div",{className:ce(nC({variant:l}),n),...o})}const aC={online:"bg-green-500",busy:"bg-yellow-500",offline:"bg-red-500"};function V0({status:n}){return m.jsxs("span",{className:"relative inline-flex h-2.5 w-2.5",children:[n==="online"&&m.jsx("span",{className:"absolute inline-flex h-full w-full animate-ping rounded-full bg-green-500 opacity-30"}),m.jsx("span",{className:ce("relative inline-flex h-2.5 w-2.5 rounded-full",aC[n])})]})}function lC({role:n}){return m.jsx(mt,{variant:n==="leader"?"default":"secondary",className:"text-[11px]",children:n})}const rC={pending:{variant:"secondary",dotClass:"bg-muted-foreground",className:"border-transparent bg-muted/55 text-muted-foreground"},assigned:{variant:"outline",dotClass:"bg-teal-500",className:"border-teal-500/20 bg-teal-500/8 text-teal-700 dark:text-teal-300"},running:{variant:"outline",dotClass:"bg-amber-500",className:"border-amber-500/22 bg-amber-500/9 text-amber-700 dark:text-amber-300"},completed:{variant:"outline",dotClass:"bg-emerald-500",className:"border-emerald-500/18 bg-emerald-500/8 text-emerald-700 dark:text-emerald-300"},failed:{variant:"destructive",dotClass:"bg-red-200",className:"border-destructive/20 bg-destructive/90 text-destructive-foreground"},cancelled:{variant:"secondary",dotClass:"bg-muted-foreground",className:"border-transparent bg-muted/55 text-muted-foreground"},archived:{variant:"secondary",dotClass:"bg-slate-400",className:"border-transparent bg-muted/50 text-muted-foreground"}};function cj({status:n}){const l=rC[n];return m.jsxs(mt,{variant:l.variant,className:ce("gap-1 rounded-[9px] px-1.5 py-0 text-[10px] font-medium leading-4 shadow-none",l.className),children:[m.jsx("span",{className:ce("h-[5px] w-[5px] rounded-full",l.dotClass)}),n]})}const oC={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function uj({priority:n}){const l=oC[n];return m.jsx(mt,{variant:l.variant,className:"rounded-[9px] px-1.5 py-0 text-[10px] leading-4 shadow-none",children:l.label})}function iC(n){if(typeof document>"u")return;let l=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css",l.appendChild(o),o.styleSheet?o.styleSheet.cssText=n:o.appendChild(document.createTextNode(n))}const sC=n=>{switch(n){case"success":return dC;case"info":return mC;case"warning":return fC;case"error":return hC;default:return null}},cC=Array(12).fill(0),uC=({visible:n,className:l})=>ne.createElement("div",{className:["sonner-loading-wrapper",l].filter(Boolean).join(" "),"data-visible":n},ne.createElement("div",{className:"sonner-spinner"},cC.map((o,i)=>ne.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),dC=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),fC=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},ne.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),mC=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),hC=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},ne.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),pC=ne.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},ne.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),ne.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),gC=()=>{const[n,l]=ne.useState(document.hidden);return ne.useEffect(()=>{const o=()=>{l(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),n};let Gd=1;class vC{constructor(){this.subscribe=l=>(this.subscribers.push(l),()=>{const o=this.subscribers.indexOf(l);this.subscribers.splice(o,1)}),this.publish=l=>{this.subscribers.forEach(o=>o(l))},this.addToast=l=>{this.publish(l),this.toasts=[...this.toasts,l]},this.create=l=>{var o;const{message:i,...u}=l,d=typeof(l==null?void 0:l.id)=="number"||((o=l.id)==null?void 0:o.length)>0?l.id:Gd++,f=this.toasts.find(y=>y.id===d),h=l.dismissible===void 0?!0:l.dismissible;return this.dismissedToasts.has(d)&&this.dismissedToasts.delete(d),f?this.toasts=this.toasts.map(y=>y.id===d?(this.publish({...y,...l,id:d,title:i}),{...y,...l,id:d,dismissible:h,title:i}):y):this.addToast({title:i,...u,dismissible:h,id:d}),d},this.dismiss=l=>(l?(this.dismissedToasts.add(l),requestAnimationFrame(()=>this.subscribers.forEach(o=>o({id:l,dismiss:!0})))):this.toasts.forEach(o=>{this.subscribers.forEach(i=>i({id:o.id,dismiss:!0}))}),l),this.message=(l,o)=>this.create({...o,message:l}),this.error=(l,o)=>this.create({...o,message:l,type:"error"}),this.success=(l,o)=>this.create({...o,type:"success",message:l}),this.info=(l,o)=>this.create({...o,type:"info",message:l}),this.warning=(l,o)=>this.create({...o,type:"warning",message:l}),this.loading=(l,o)=>this.create({...o,type:"loading",message:l}),this.promise=(l,o)=>{if(!o)return;let i;o.loading!==void 0&&(i=this.create({...o,promise:l,type:"loading",message:o.loading,description:typeof o.description!="function"?o.description:void 0}));const u=Promise.resolve(l instanceof Function?l():l);let d=i!==void 0,f;const h=u.then(async p=>{if(f=["resolve",p],ne.isValidElement(p))d=!1,this.create({id:i,type:"default",message:p});else if(bC(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,N=typeof g=="object"&&!ne.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:w,...N})}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,N=typeof g=="object"&&!ne.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:w,...N})}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,N=typeof g=="object"&&!ne.isValidElement(g)?g:{message:g};this.create({id:i,type:"success",description:w,...N})}}).catch(async p=>{if(f=["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,C=typeof x=="object"&&!ne.isValidElement(x)?x:{message:x};this.create({id:i,type:"error",description:g,...C})}}).finally(()=>{d&&(this.dismiss(i),i=void 0),o.finally==null||o.finally.call(o)}),y=()=>new Promise((p,x)=>h.then(()=>f[0]==="reject"?x(f[1]):p(f[1])).catch(x));return typeof i!="string"&&typeof i!="number"?{unwrap:y}:Object.assign(i,{unwrap:y})},this.custom=(l,o)=>{const i=(o==null?void 0:o.id)||Gd++;return this.create({jsx:l(i),id:i,...o}),i},this.getActiveToasts=()=>this.toasts.filter(l=>!this.dismissedToasts.has(l.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const qt=new vC,yC=(n,l)=>{const o=(l==null?void 0:l.id)||Gd++;return qt.addToast({title:n,...l,id:o}),o},bC=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",xC=yC,SC=()=>qt.toasts,wC=()=>qt.getActiveToasts(),ut=Object.assign(xC,{success:qt.success,info:qt.info,warning:qt.warning,error:qt.error,custom:qt.custom,message:qt.message,promise:qt.promise,dismiss:qt.dismiss,loading:qt.loading},{getHistory:SC,getToasts:wC});iC("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function ms(n){return n.label!==void 0}const EC=3,NC="24px",CC="16px",dv=4e3,TC=356,RC=14,AC=45,_C=200;function jn(...n){return n.filter(Boolean).join(" ")}function jC(n){const[l,o]=n.split("-"),i=[];return l&&i.push(l),o&&i.push(o),i}const MC=n=>{var l,o,i,u,d,f,h,y,p;const{invert:x,toast:g,unstyled:w,interacting:C,setHeights:N,visibleToasts:E,heights:T,index:R,toasts:A,expanded:M,removeToast:k,defaultRichColors:$,closeButton:G,style:B,cancelButtonStyle:V,actionButtonStyle:ae,className:oe="",descriptionClassName:pe="",duration:me,position:ue,gap:de,expandByDefault:re,classNames:O,icons:Y,closeButtonAriaLabel:F="Close toast"}=n,[se,J]=ne.useState(null),[j,X]=ne.useState(null),[Q,ee]=ne.useState(!1),[te,I]=ne.useState(!1),[W,le]=ne.useState(!1),[ie,we]=ne.useState(!1),[Ee,ve]=ne.useState(!1),[Ye,ke]=ne.useState(0),[yt,tn]=ne.useState(0),Yt=ne.useRef(g.duration||me||dv),Wa=ne.useRef(null),ht=ne.useRef(null),Ur=R===0,Br=R+1<=E,At=g.type,ha=g.dismissible!==!1,_t=g.className||"",oc=g.descriptionClassName||"",el=ne.useMemo(()=>T.findIndex(Ne=>Ne.toastId===g.id)||0,[T,g.id]),Zo=ne.useMemo(()=>{var Ne;return(Ne=g.closeButton)!=null?Ne:G},[g.closeButton,G]),tl=ne.useMemo(()=>g.duration||me||dv,[g.duration,me]),Hr=ne.useRef(0),Yn=ne.useRef(0),Io=ne.useRef(0),pa=ne.useRef(null),[nl,jt]=ue.split("-"),hn=ne.useMemo(()=>T.reduce((Ne,Je,pt)=>pt>=el?Ne:Ne+Je.height,0),[T,el]),Nt=gC(),ic=g.invert||x,Vr=At==="loading";Yn.current=ne.useMemo(()=>el*de+hn,[el,hn]),ne.useEffect(()=>{Yt.current=tl},[tl]),ne.useEffect(()=>{ee(!0)},[]),ne.useEffect(()=>{const Ne=ht.current;if(Ne){const Je=Ne.getBoundingClientRect().height;return tn(Je),N(pt=>[{toastId:g.id,height:Je,position:g.position},...pt]),()=>N(pt=>pt.filter(Ct=>Ct.toastId!==g.id))}},[N,g.id]),ne.useLayoutEffect(()=>{if(!Q)return;const Ne=ht.current,Je=Ne.style.height;Ne.style.height="auto";const pt=Ne.getBoundingClientRect().height;Ne.style.height=Je,tn(pt),N(Ct=>Ct.find(tt=>tt.toastId===g.id)?Ct.map(tt=>tt.toastId===g.id?{...tt,height:pt}:tt):[{toastId:g.id,height:pt,position:g.position},...Ct])},[Q,g.title,g.description,N,g.id,g.jsx,g.action,g.cancel]);const Nn=ne.useCallback(()=>{I(!0),ke(Yn.current),N(Ne=>Ne.filter(Je=>Je.toastId!==g.id)),setTimeout(()=>{k(g)},_C)},[g,k,N,Yn]);ne.useEffect(()=>{if(g.promise&&At==="loading"||g.duration===1/0||g.type==="loading")return;let Ne;return M||C||Nt?(()=>{if(Io.current<Hr.current){const Ct=new Date().getTime()-Hr.current;Yt.current=Yt.current-Ct}Io.current=new Date().getTime()})():(()=>{Yt.current!==1/0&&(Hr.current=new Date().getTime(),Ne=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),Nn()},Yt.current))})(),()=>clearTimeout(Ne)},[M,C,g,At,Nt,Nn]),ne.useEffect(()=>{g.delete&&(Nn(),g.onDismiss==null||g.onDismiss.call(g,g))},[Nn,g.delete]);function Ml(){var Ne;if(Y!=null&&Y.loading){var Je;return ne.createElement("div",{className:jn(O==null?void 0:O.loader,g==null||(Je=g.classNames)==null?void 0:Je.loader,"sonner-loader"),"data-visible":At==="loading"},Y.loading)}return ne.createElement(uC,{className:jn(O==null?void 0:O.loader,g==null||(Ne=g.classNames)==null?void 0:Ne.loader),visible:At==="loading"})}const Ol=g.icon||(Y==null?void 0:Y[At])||sC(At);var al,Cn;return ne.createElement("li",{tabIndex:0,ref:ht,className:jn(oe,_t,O==null?void 0:O.toast,g==null||(l=g.classNames)==null?void 0:l.toast,O==null?void 0:O.default,O==null?void 0:O[At],g==null||(o=g.classNames)==null?void 0:o[At]),"data-sonner-toast":"","data-rich-colors":(al=g.richColors)!=null?al:$,"data-styled":!(g.jsx||g.unstyled||w),"data-mounted":Q,"data-promise":!!g.promise,"data-swiped":Ee,"data-removed":te,"data-visible":Br,"data-y-position":nl,"data-x-position":jt,"data-index":R,"data-front":Ur,"data-swiping":W,"data-dismissible":ha,"data-type":At,"data-invert":ic,"data-swipe-out":ie,"data-swipe-direction":j,"data-expanded":!!(M||re&&Q),"data-testid":g.testId,style:{"--index":R,"--toasts-before":R,"--z-index":A.length-R,"--offset":`${te?Ye:Yn.current}px`,"--initial-height":re?"auto":`${yt}px`,...B,...g.style},onDragEnd:()=>{le(!1),J(null),pa.current=null},onPointerDown:Ne=>{Ne.button!==2&&(Vr||!ha||(Wa.current=new Date,ke(Yn.current),Ne.target.setPointerCapture(Ne.pointerId),Ne.target.tagName!=="BUTTON"&&(le(!0),pa.current={x:Ne.clientX,y:Ne.clientY})))},onPointerUp:()=>{var Ne,Je,pt;if(ie||!ha)return;pa.current=null;const Ct=Number(((Ne=ht.current)==null?void 0:Ne.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ga=Number(((Je=ht.current)==null?void 0:Je.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),tt=new Date().getTime()-((pt=Wa.current)==null?void 0:pt.getTime()),Ot=se==="x"?Ct:ga,ll=Math.abs(Ot)/tt;if(Math.abs(Ot)>=AC||ll>.11){ke(Yn.current),g.onDismiss==null||g.onDismiss.call(g,g),X(se==="x"?Ct>0?"right":"left":ga>0?"down":"up"),Nn(),we(!0);return}else{var Dt,kt;(Dt=ht.current)==null||Dt.style.setProperty("--swipe-amount-x","0px"),(kt=ht.current)==null||kt.style.setProperty("--swipe-amount-y","0px")}ve(!1),le(!1),J(null)},onPointerMove:Ne=>{var Je,pt,Ct;if(!pa.current||!ha||((Je=window.getSelection())==null?void 0:Je.toString().length)>0)return;const tt=Ne.clientY-pa.current.y,Ot=Ne.clientX-pa.current.x;var ll;const Dt=(ll=n.swipeDirections)!=null?ll:jC(ue);!se&&(Math.abs(Ot)>1||Math.abs(tt)>1)&&J(Math.abs(Ot)>Math.abs(tt)?"x":"y");let kt={x:0,y:0};const Dl=pn=>1/(1.5+Math.abs(pn)/20);if(se==="y"){if(Dt.includes("top")||Dt.includes("bottom"))if(Dt.includes("top")&&tt<0||Dt.includes("bottom")&&tt>0)kt.y=tt;else{const pn=tt*Dl(tt);kt.y=Math.abs(pn)<Math.abs(tt)?pn:tt}}else if(se==="x"&&(Dt.includes("left")||Dt.includes("right")))if(Dt.includes("left")&&Ot<0||Dt.includes("right")&&Ot>0)kt.x=Ot;else{const pn=Ot*Dl(Ot);kt.x=Math.abs(pn)<Math.abs(Ot)?pn:Ot}(Math.abs(kt.x)>0||Math.abs(kt.y)>0)&&ve(!0),(pt=ht.current)==null||pt.style.setProperty("--swipe-amount-x",`${kt.x}px`),(Ct=ht.current)==null||Ct.style.setProperty("--swipe-amount-y",`${kt.y}px`)}},Zo&&!g.jsx&&At!=="loading"?ne.createElement("button",{"aria-label":F,"data-disabled":Vr,"data-close-button":!0,onClick:Vr||!ha?()=>{}:()=>{Nn(),g.onDismiss==null||g.onDismiss.call(g,g)},className:jn(O==null?void 0:O.closeButton,g==null||(i=g.classNames)==null?void 0:i.closeButton)},(Cn=Y==null?void 0:Y.close)!=null?Cn:pC):null,(At||g.icon||g.promise)&&g.icon!==null&&((Y==null?void 0:Y[At])!==null||g.icon)?ne.createElement("div",{"data-icon":"",className:jn(O==null?void 0:O.icon,g==null||(u=g.classNames)==null?void 0:u.icon)},g.promise||g.type==="loading"&&!g.icon?g.icon||Ml():null,g.type!=="loading"?Ol:null):null,ne.createElement("div",{"data-content":"",className:jn(O==null?void 0:O.content,g==null||(d=g.classNames)==null?void 0:d.content)},ne.createElement("div",{"data-title":"",className:jn(O==null?void 0:O.title,g==null||(f=g.classNames)==null?void 0:f.title)},g.jsx?g.jsx:typeof g.title=="function"?g.title():g.title),g.description?ne.createElement("div",{"data-description":"",className:jn(pe,oc,O==null?void 0:O.description,g==null||(h=g.classNames)==null?void 0:h.description)},typeof g.description=="function"?g.description():g.description):null),ne.isValidElement(g.cancel)?g.cancel:g.cancel&&ms(g.cancel)?ne.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||V,onClick:Ne=>{ms(g.cancel)&&ha&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,Ne),Nn())},className:jn(O==null?void 0:O.cancelButton,g==null||(y=g.classNames)==null?void 0:y.cancelButton)},g.cancel.label):null,ne.isValidElement(g.action)?g.action:g.action&&ms(g.action)?ne.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||ae,onClick:Ne=>{ms(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,Ne),!Ne.defaultPrevented&&Nn())},className:jn(O==null?void 0:O.actionButton,g==null||(p=g.classNames)==null?void 0:p.actionButton)},g.action.label):null)};function fv(){if(typeof window>"u"||typeof document>"u")return"ltr";const n=document.documentElement.getAttribute("dir");return n==="auto"||!n?window.getComputedStyle(document.documentElement).direction:n}function OC(n,l){const o={};return[n,l].forEach((i,u)=>{const d=u===1,f=d?"--mobile-offset":"--offset",h=d?CC:NC;function y(p){["top","right","bottom","left"].forEach(x=>{o[`${f}-${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[`${f}-${p}`]=h:o[`${f}-${p}`]=typeof i[p]=="number"?`${i[p]}px`:i[p]}):y(h)}),o}const DC=ne.forwardRef(function(l,o){const{id:i,invert:u,position:d="bottom-right",hotkey:f=["altKey","KeyT"],expand:h,closeButton:y,className:p,offset:x,mobileOffset:g,theme:w="light",richColors:C,duration:N,style:E,visibleToasts:T=EC,toastOptions:R,dir:A=fv(),gap:M=RC,icons:k,containerAriaLabel:$="Notifications"}=l,[G,B]=ne.useState([]),V=ne.useMemo(()=>i?G.filter(Q=>Q.toasterId===i):G.filter(Q=>!Q.toasterId),[G,i]),ae=ne.useMemo(()=>Array.from(new Set([d].concat(V.filter(Q=>Q.position).map(Q=>Q.position)))),[V,d]),[oe,pe]=ne.useState([]),[me,ue]=ne.useState(!1),[de,re]=ne.useState(!1),[O,Y]=ne.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),F=ne.useRef(null),se=f.join("+").replace(/Key/g,"").replace(/Digit/g,""),J=ne.useRef(null),j=ne.useRef(!1),X=ne.useCallback(Q=>{B(ee=>{var te;return(te=ee.find(I=>I.id===Q.id))!=null&&te.delete||qt.dismiss(Q.id),ee.filter(({id:I})=>I!==Q.id)})},[]);return ne.useEffect(()=>qt.subscribe(Q=>{if(Q.dismiss){requestAnimationFrame(()=>{B(ee=>ee.map(te=>te.id===Q.id?{...te,delete:!0}:te))});return}setTimeout(()=>{f0.flushSync(()=>{B(ee=>{const te=ee.findIndex(I=>I.id===Q.id);return te!==-1?[...ee.slice(0,te),{...ee[te],...Q},...ee.slice(te+1)]:[Q,...ee]})})})}),[G]),ne.useEffect(()=>{if(w!=="system"){Y(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?Y("dark"):Y("light")),typeof window>"u")return;const Q=window.matchMedia("(prefers-color-scheme: dark)");try{Q.addEventListener("change",({matches:ee})=>{Y(ee?"dark":"light")})}catch{Q.addListener(({matches:te})=>{try{Y(te?"dark":"light")}catch(I){console.error(I)}})}},[w]),ne.useEffect(()=>{G.length<=1&&ue(!1)},[G]),ne.useEffect(()=>{const Q=ee=>{var te;if(f.every(le=>ee[le]||ee.code===le)){var W;ue(!0),(W=F.current)==null||W.focus()}ee.code==="Escape"&&(document.activeElement===F.current||(te=F.current)!=null&&te.contains(document.activeElement))&&ue(!1)};return document.addEventListener("keydown",Q),()=>document.removeEventListener("keydown",Q)},[f]),ne.useEffect(()=>{if(F.current)return()=>{J.current&&(J.current.focus({preventScroll:!0}),J.current=null,j.current=!1)}},[F.current]),ne.createElement("section",{ref:o,"aria-label":`${$} ${se}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ae.map((Q,ee)=>{var te;const[I,W]=Q.split("-");return V.length?ne.createElement("ol",{key:Q,dir:A==="auto"?fv():A,tabIndex:-1,ref:F,className:p,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":I,"data-x-position":W,style:{"--front-toast-height":`${((te=oe[0])==null?void 0:te.height)||0}px`,"--width":`${TC}px`,"--gap":`${M}px`,...E,...OC(x,g)},onBlur:le=>{j.current&&!le.currentTarget.contains(le.relatedTarget)&&(j.current=!1,J.current&&(J.current.focus({preventScroll:!0}),J.current=null))},onFocus:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||j.current||(j.current=!0,J.current=le.relatedTarget)},onMouseEnter:()=>ue(!0),onMouseMove:()=>ue(!0),onMouseLeave:()=>{de||ue(!1)},onDragEnd:()=>ue(!1),onPointerDown:le=>{le.target instanceof HTMLElement&&le.target.dataset.dismissible==="false"||re(!0)},onPointerUp:()=>re(!1)},V.filter(le=>!le.position&&ee===0||le.position===Q).map((le,ie)=>{var we,Ee;return ne.createElement(MC,{key:le.id,icons:k,index:ie,toast:le,defaultRichColors:C,duration:(we=R==null?void 0:R.duration)!=null?we:N,className:R==null?void 0:R.className,descriptionClassName:R==null?void 0:R.descriptionClassName,invert:u,visibleToasts:T,closeButton:(Ee=R==null?void 0:R.closeButton)!=null?Ee:y,interacting:de,position:Q,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:X,toasts:V.filter(ve=>ve.position==le.position),heights:oe.filter(ve=>ve.position==le.position),setHeights:pe,expandByDefault:h,gap:M,expanded:me,swipeDirections:l.swipeDirections})})):null}))}),Mn=v.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:ce("rounded-[18px] border bg-card text-card-foreground shadow-sm",n),...l}));Mn.displayName="Card";const On=v.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:ce("flex flex-col space-y-1.5 p-6",n),...l}));On.displayName="CardHeader";const Dn=v.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:ce("text-2xl font-semibold leading-none tracking-tight",n),...l}));Dn.displayName="CardTitle";const kn=v.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:ce("text-sm text-muted-foreground",n),...l}));kn.displayName="CardDescription";const zn=v.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:ce("p-6 pt-0",n),...l}));zn.displayName="CardContent";const kC=v.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:ce("flex items-center p-6 pt-0",n),...l}));kC.displayName="CardFooter";function mv(n,l){if(typeof n=="function")return n(l);n!=null&&(n.current=l)}function gf(...n){return l=>{let o=!1;const i=n.map(u=>{const d=mv(u,l);return!o&&typeof d=="function"&&(o=!0),d});if(o)return()=>{for(let u=0;u<i.length;u++){const d=i[u];typeof d=="function"?d():mv(n[u],null)}}}}function Ze(...n){return v.useCallback(gf(...n),n)}var zC=Symbol.for("react.lazy"),_s=rf[" use ".trim().toString()];function LC(n){return typeof n=="object"&&n!==null&&"then"in n}function $0(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===zC&&"_payload"in n&&LC(n._payload)}function UC(n){const l=HC(n),o=v.forwardRef((i,u)=>{let{children:d,...f}=i;$0(d)&&typeof _s=="function"&&(d=_s(d._payload));const h=v.Children.toArray(d),y=h.find($C);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 m.jsx(l,{...f,ref:u,children:v.isValidElement(p)?v.cloneElement(p,void 0,x):null})}return m.jsx(l,{...f,ref:u,children:d})});return o.displayName=`${n}.Slot`,o}var BC=UC("Slot");function HC(n){const l=v.forwardRef((o,i)=>{let{children:u,...d}=o;if($0(u)&&typeof _s=="function"&&(u=_s(u._payload)),v.isValidElement(u)){const f=YC(u),h=qC(d,u.props);return u.type!==v.Fragment&&(h.ref=i?gf(i,f):f),v.cloneElement(u,h)}return v.Children.count(u)>1?v.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var VC=Symbol("radix.slottable");function $C(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===VC}function qC(n,l){const o={...l};for(const i in l){const u=n[i],d=l[i];/^on[A-Z]/.test(i)?u&&d?o[i]=(...h)=>{const y=d(...h);return u(...h),y}:u&&(o[i]=u):i==="style"?o[i]={...u,...d}:i==="className"&&(o[i]=[u,d].filter(Boolean).join(" "))}return{...n,...o}}function YC(n){var i,u;let l=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?n.ref:(l=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}const vf=H0("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[16px] text-sm font-semibold transition-all duration-200 ease-out hover:-translate-y-px focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 active:translate-y-0 active:scale-[0.985] disabled:pointer-events-none disabled:translate-y-0 disabled:scale-100 disabled:opacity-50 disabled:shadow-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"border border-primary/15 bg-primary text-primary-foreground shadow-[0_14px_34px_-20px_hsl(var(--primary)/0.9)] hover:bg-primary/90 hover:shadow-[0_18px_42px_-22px_hsl(var(--primary)/0.95)]",destructive:"border border-destructive/15 bg-destructive text-destructive-foreground shadow-[0_14px_34px_-20px_hsl(var(--destructive)/0.8)] hover:bg-destructive/90",outline:"border border-input/80 bg-background/72 shadow-sm backdrop-blur hover:border-primary/35 hover:bg-accent/70 hover:text-accent-foreground",secondary:"border border-transparent bg-secondary/88 text-secondary-foreground shadow-sm hover:bg-secondary",ghost:"hover:bg-accent/72 hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-[14px] px-3",lg:"h-11 rounded-[18px] px-8",icon:"h-10 w-10 rounded-[16px]"}},defaultVariants:{variant:"default",size:"default"}}),Vn=v.forwardRef(({className:n,variant:l,size:o,asChild:i=!1,...u},d)=>{const f=i?BC:"button";return m.jsx(f,{className:ce(vf({variant:l,size:o,className:n})),ref:d,...u})});Vn.displayName="Button";function Me(n,l,{checkForDefaultPrevented:o=!0}={}){return function(u){if(n==null||n(u),o===!1||!u.defaultPrevented)return l==null?void 0:l(u)}}function GC(n,l){const o=v.createContext(l),i=d=>{const{children:f,...h}=d,y=v.useMemo(()=>h,Object.values(h));return m.jsx(o.Provider,{value:y,children:f})};i.displayName=n+"Provider";function u(d){const f=v.useContext(o);if(f)return f;if(l!==void 0)return l;throw new Error(`\`${d}\` must be used within \`${n}\``)}return[i,u]}function Ia(n,l=[]){let o=[];function i(d,f){const h=v.createContext(f),y=o.length;o=[...o,f];const p=g=>{var R;const{scope:w,children:C,...N}=g,E=((R=w==null?void 0:w[n])==null?void 0:R[y])||h,T=v.useMemo(()=>N,Object.values(N));return m.jsx(E.Provider,{value:T,children:C})};p.displayName=d+"Provider";function x(g,w){var E;const C=((E=w==null?void 0:w[n])==null?void 0:E[y])||h,N=v.useContext(C);if(N)return N;if(f!==void 0)return f;throw new Error(`\`${g}\` must be used within \`${d}\``)}return[p,x]}const u=()=>{const d=o.map(f=>v.createContext(f));return function(h){const y=(h==null?void 0:h[n])||d;return v.useMemo(()=>({[`__scope${n}`]:{...h,[n]:y}}),[h,y])}};return u.scopeName=n,[i,XC(u,...l)]}function XC(...n){const l=n[0];if(n.length===1)return l;const o=()=>{const i=n.map(u=>({useScope:u(),scopeName:u.scopeName}));return function(d){const f=i.reduce((h,{useScope:y,scopeName:p})=>{const g=y(d)[`__scope${p}`];return{...h,...g}},{});return v.useMemo(()=>({[`__scope${l.scopeName}`]:f}),[f])}};return o.scopeName=l.scopeName,o}var Rt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},PC=rf[" useId ".trim().toString()]||(()=>{}),QC=0;function Ga(n){const[l,o]=v.useState(PC());return Rt(()=>{o(i=>i??String(QC++))},[n]),l?`radix-${l}`:""}var KC=rf[" useInsertionEffect ".trim().toString()]||Rt;function Ar({prop:n,defaultProp:l,onChange:o=()=>{},caller:i}){const[u,d,f]=ZC({defaultProp:l,onChange:o}),h=n!==void 0,y=h?n:u;{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=IC(x)?x(n):x;w!==n&&((g=f.current)==null||g.call(f,w))}else d(x)},[h,n,d,f]);return[y,p]}function ZC({defaultProp:n,onChange:l}){const[o,i]=v.useState(n),u=v.useRef(o),d=v.useRef(l);return KC(()=>{d.current=l},[l]),v.useEffect(()=>{var f;u.current!==o&&((f=d.current)==null||f.call(d,o),u.current=o)},[o,u]),[o,i,d]}function IC(n){return typeof n=="function"}function qo(n){const l=FC(n),o=v.forwardRef((i,u)=>{const{children:d,...f}=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 m.jsx(l,{...f,ref:u,children:v.isValidElement(p)?v.cloneElement(p,void 0,x):null})}return m.jsx(l,{...f,ref:u,children:d})});return o.displayName=`${n}.Slot`,o}function FC(n){const l=v.forwardRef((o,i)=>{const{children:u,...d}=o;if(v.isValidElement(u)){const f=tT(u),h=eT(d,u.props);return u.type!==v.Fragment&&(h.ref=i?gf(i,f):f),v.cloneElement(u,h)}return v.Children.count(u)>1?v.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var q0=Symbol("radix.slottable");function JC(n){const l=({children:o})=>m.jsx(m.Fragment,{children:o});return l.displayName=`${n}.Slottable`,l.__radixId=q0,l}function WC(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===q0}function eT(n,l){const o={...l};for(const i in l){const u=n[i],d=l[i];/^on[A-Z]/.test(i)?u&&d?o[i]=(...h)=>{const y=d(...h);return u(...h),y}:u&&(o[i]=u):i==="style"?o[i]={...u,...d}:i==="className"&&(o[i]=[u,d].filter(Boolean).join(" "))}return{...n,...o}}function tT(n){var i,u;let l=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?n.ref:(l=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var nT=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Le=nT.reduce((n,l)=>{const o=qo(`Primitive.${l}`),i=v.forwardRef((u,d)=>{const{asChild:f,...h}=u,y=f?o:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(y,{...h,ref:d})});return i.displayName=`Primitive.${l}`,{...n,[l]:i}},{});function aT(n,l){n&&Po.flushSync(()=>n.dispatchEvent(l))}function Pa(n){const l=v.useRef(n);return v.useEffect(()=>{l.current=n}),v.useMemo(()=>(...o)=>{var i;return(i=l.current)==null?void 0:i.call(l,...o)},[])}function lT(n,l=globalThis==null?void 0:globalThis.document){const o=Pa(n);v.useEffect(()=>{const i=u=>{u.key==="Escape"&&o(u)};return l.addEventListener("keydown",i,{capture:!0}),()=>l.removeEventListener("keydown",i,{capture:!0})},[o,l])}var rT="DismissableLayer",Xd="dismissableLayer.update",oT="dismissableLayer.pointerDownOutside",iT="dismissableLayer.focusOutside",hv,Y0=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),yf=v.forwardRef((n,l)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,...y}=n,p=v.useContext(Y0),[x,g]=v.useState(null),w=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,C]=v.useState({}),N=Ze(l,B=>g(B)),E=Array.from(p.layers),[T]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),R=E.indexOf(T),A=x?E.indexOf(x):-1,M=p.layersWithOutsidePointerEventsDisabled.size>0,k=A>=R,$=uT(B=>{const V=B.target,ae=[...p.branches].some(oe=>oe.contains(V));!k||ae||(u==null||u(B),f==null||f(B),B.defaultPrevented||h==null||h())},w),G=dT(B=>{const V=B.target;[...p.branches].some(oe=>oe.contains(V))||(d==null||d(B),f==null||f(B),B.defaultPrevented||h==null||h())},w);return lT(B=>{A===p.layers.size-1&&(i==null||i(B),!B.defaultPrevented&&h&&(B.preventDefault(),h()))},w),v.useEffect(()=>{if(x)return o&&(p.layersWithOutsidePointerEventsDisabled.size===0&&(hv=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(x)),p.layers.add(x),pv(),()=>{o&&p.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=hv)}},[x,w,o,p]),v.useEffect(()=>()=>{x&&(p.layers.delete(x),p.layersWithOutsidePointerEventsDisabled.delete(x),pv())},[x,p]),v.useEffect(()=>{const B=()=>C({});return document.addEventListener(Xd,B),()=>document.removeEventListener(Xd,B)},[]),m.jsx(Le.div,{...y,ref:N,style:{pointerEvents:M?k?"auto":"none":void 0,...n.style},onFocusCapture:Me(n.onFocusCapture,G.onFocusCapture),onBlurCapture:Me(n.onBlurCapture,G.onBlurCapture),onPointerDownCapture:Me(n.onPointerDownCapture,$.onPointerDownCapture)})});yf.displayName=rT;var sT="DismissableLayerBranch",cT=v.forwardRef((n,l)=>{const o=v.useContext(Y0),i=v.useRef(null),u=Ze(l,i);return v.useEffect(()=>{const d=i.current;if(d)return o.branches.add(d),()=>{o.branches.delete(d)}},[o.branches]),m.jsx(Le.div,{...n,ref:u})});cT.displayName=sT;function uT(n,l=globalThis==null?void 0:globalThis.document){const o=Pa(n),i=v.useRef(!1),u=v.useRef(()=>{});return v.useEffect(()=>{const d=h=>{if(h.target&&!i.current){let y=function(){G0(oT,o,p,{discrete:!0})};const p={originalEvent:h};h.pointerType==="touch"?(l.removeEventListener("click",u.current),u.current=y,l.addEventListener("click",u.current,{once:!0})):y()}else l.removeEventListener("click",u.current);i.current=!1},f=window.setTimeout(()=>{l.addEventListener("pointerdown",d)},0);return()=>{window.clearTimeout(f),l.removeEventListener("pointerdown",d),l.removeEventListener("click",u.current)}},[l,o]),{onPointerDownCapture:()=>i.current=!0}}function dT(n,l=globalThis==null?void 0:globalThis.document){const o=Pa(n),i=v.useRef(!1);return v.useEffect(()=>{const u=d=>{d.target&&!i.current&&G0(iT,o,{originalEvent:d},{discrete:!1})};return l.addEventListener("focusin",u),()=>l.removeEventListener("focusin",u)},[l,o]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}function pv(){const n=new CustomEvent(Xd);document.dispatchEvent(n)}function G0(n,l,o,{discrete:i}){const u=o.originalEvent.target,d=new CustomEvent(n,{bubbles:!1,cancelable:!0,detail:o});l&&u.addEventListener(n,l,{once:!0}),i?aT(u,d):u.dispatchEvent(d)}var _d="focusScope.autoFocusOnMount",jd="focusScope.autoFocusOnUnmount",gv={bubbles:!1,cancelable:!0},fT="FocusScope",bf=v.forwardRef((n,l)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:u,onUnmountAutoFocus:d,...f}=n,[h,y]=v.useState(null),p=Pa(u),x=Pa(d),g=v.useRef(null),w=Ze(l,E=>y(E)),C=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let E=function(M){if(C.paused||!h)return;const k=M.target;h.contains(k)?g.current=k:Ya(g.current,{select:!0})},T=function(M){if(C.paused||!h)return;const k=M.relatedTarget;k!==null&&(h.contains(k)||Ya(g.current,{select:!0}))},R=function(M){if(document.activeElement===document.body)for(const $ of M)$.removedNodes.length>0&&Ya(h)};document.addEventListener("focusin",E),document.addEventListener("focusout",T);const A=new MutationObserver(R);return h&&A.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",T),A.disconnect()}}},[i,h,C.paused]),v.useEffect(()=>{if(h){yv.add(C);const E=document.activeElement;if(!h.contains(E)){const R=new CustomEvent(_d,gv);h.addEventListener(_d,p),h.dispatchEvent(R),R.defaultPrevented||(mT(yT(X0(h)),{select:!0}),document.activeElement===E&&Ya(h))}return()=>{h.removeEventListener(_d,p),setTimeout(()=>{const R=new CustomEvent(jd,gv);h.addEventListener(jd,x),h.dispatchEvent(R),R.defaultPrevented||Ya(E??document.body,{select:!0}),h.removeEventListener(jd,x),yv.remove(C)},0)}}},[h,p,x,C]);const N=v.useCallback(E=>{if(!o&&!i||C.paused)return;const T=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,R=document.activeElement;if(T&&R){const A=E.currentTarget,[M,k]=hT(A);M&&k?!E.shiftKey&&R===k?(E.preventDefault(),o&&Ya(M,{select:!0})):E.shiftKey&&R===M&&(E.preventDefault(),o&&Ya(k,{select:!0})):R===A&&E.preventDefault()}},[o,i,C.paused]);return m.jsx(Le.div,{tabIndex:-1,...f,ref:w,onKeyDown:N})});bf.displayName=fT;function mT(n,{select:l=!1}={}){const o=document.activeElement;for(const i of n)if(Ya(i,{select:l}),document.activeElement!==o)return}function hT(n){const l=X0(n),o=vv(l,n),i=vv(l.reverse(),n);return[o,i]}function X0(n){const l=[],o=document.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const u=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||u?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;o.nextNode();)l.push(o.currentNode);return l}function vv(n,l){for(const o of n)if(!pT(o,{upTo:l}))return o}function pT(n,{upTo:l}){if(getComputedStyle(n).visibility==="hidden")return!0;for(;n;){if(l!==void 0&&n===l)return!1;if(getComputedStyle(n).display==="none")return!0;n=n.parentElement}return!1}function gT(n){return n instanceof HTMLInputElement&&"select"in n}function Ya(n,{select:l=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&gT(n)&&l&&n.select()}}var yv=vT();function vT(){let n=[];return{add(l){const o=n[0];l!==o&&(o==null||o.pause()),n=bv(n,l),n.unshift(l)},remove(l){var o;n=bv(n,l),(o=n[0])==null||o.resume()}}}function bv(n,l){const o=[...n],i=o.indexOf(l);return i!==-1&&o.splice(i,1),o}function yT(n){return n.filter(l=>l.tagName!=="A")}var bT="Portal",xf=v.forwardRef((n,l)=>{var h;const{container:o,...i}=n,[u,d]=v.useState(!1);Rt(()=>d(!0),[]);const f=o||u&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return f?f0.createPortal(m.jsx(Le.div,{...i,ref:l}),f):null});xf.displayName=bT;function xT(n,l){return v.useReducer((o,i)=>l[o][i]??o,n)}var Dr=n=>{const{present:l,children:o}=n,i=ST(l),u=typeof o=="function"?o({present:i.isPresent}):v.Children.only(o),d=Ze(i.ref,wT(u));return typeof o=="function"||i.isPresent?v.cloneElement(u,{ref:d}):null};Dr.displayName="Presence";function ST(n){const[l,o]=v.useState(),i=v.useRef(null),u=v.useRef(n),d=v.useRef("none"),f=n?"mounted":"unmounted",[h,y]=xT(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const p=hs(i.current);d.current=h==="mounted"?p:"none"},[h]),Rt(()=>{const p=i.current,x=u.current;if(x!==n){const w=d.current,C=hs(p);n?y("MOUNT"):C==="none"||(p==null?void 0:p.display)==="none"?y("UNMOUNT"):y(x&&w!==C?"ANIMATION_OUT":"UNMOUNT"),u.current=n}},[n,y]),Rt(()=>{if(l){let p;const x=l.ownerDocument.defaultView??window,g=C=>{const E=hs(i.current).includes(CSS.escape(C.animationName));if(C.target===l&&E&&(y("ANIMATION_END"),!u.current)){const T=l.style.animationFillMode;l.style.animationFillMode="forwards",p=x.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=T)})}},w=C=>{C.target===l&&(d.current=hs(i.current))};return l.addEventListener("animationstart",w),l.addEventListener("animationcancel",g),l.addEventListener("animationend",g),()=>{x.clearTimeout(p),l.removeEventListener("animationstart",w),l.removeEventListener("animationcancel",g),l.removeEventListener("animationend",g)}}else y("ANIMATION_END")},[l,y]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:v.useCallback(p=>{i.current=p?getComputedStyle(p):null,o(p)},[])}}function hs(n){return(n==null?void 0:n.animationName)||"none"}function wT(n){var i,u;let l=(i=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:i.get,o=l&&"isReactWarning"in l&&l.isReactWarning;return o?n.ref:(l=(u=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:u.get,o=l&&"isReactWarning"in l&&l.isReactWarning,o?n.props.ref:n.props.ref||n.ref)}var Md=0;function P0(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??xv()),document.body.insertAdjacentElement("beforeend",n[1]??xv()),Md++,()=>{Md===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),Md--}},[])}function xv(){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 Ln=function(){return Ln=Object.assign||function(l){for(var o,i=1,u=arguments.length;i<u;i++){o=arguments[i];for(var d in o)Object.prototype.hasOwnProperty.call(o,d)&&(l[d]=o[d])}return l},Ln.apply(this,arguments)};function Q0(n,l){var o={};for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&l.indexOf(i)<0&&(o[i]=n[i]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,i=Object.getOwnPropertySymbols(n);u<i.length;u++)l.indexOf(i[u])<0&&Object.prototype.propertyIsEnumerable.call(n,i[u])&&(o[i[u]]=n[i[u]]);return o}function ET(n,l,o){if(o||arguments.length===2)for(var i=0,u=l.length,d;i<u;i++)(d||!(i in l))&&(d||(d=Array.prototype.slice.call(l,0,i)),d[i]=l[i]);return n.concat(d||Array.prototype.slice.call(l))}var ws="right-scroll-bar-position",Es="width-before-scroll-bar",NT="with-scroll-bars-hidden",CT="--removed-body-scroll-bar-size";function Od(n,l){return typeof n=="function"?n(l):n&&(n.current=l),n}function TT(n,l){var o=v.useState(function(){return{value:n,callback:l,facade:{get current(){return o.value},set current(i){var u=o.value;u!==i&&(o.value=i,o.callback(i,u))}}}})[0];return o.callback=l,o.facade}var RT=typeof window<"u"?v.useLayoutEffect:v.useEffect,Sv=new WeakMap;function AT(n,l){var o=TT(null,function(i){return n.forEach(function(u){return Od(u,i)})});return RT(function(){var i=Sv.get(o);if(i){var u=new Set(i),d=new Set(n),f=o.current;u.forEach(function(h){d.has(h)||Od(h,null)}),d.forEach(function(h){u.has(h)||Od(h,f)})}Sv.set(o,n)},[n]),o}function _T(n){return n}function jT(n,l){l===void 0&&(l=_T);var o=[],i=!1,u={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 f=l(d,i);return o.push(f),function(){o=o.filter(function(h){return h!==f})}},assignSyncMedium:function(d){for(i=!0;o.length;){var f=o;o=[],f.forEach(d)}o={push:function(h){return d(h)},filter:function(){return o}}},assignMedium:function(d){i=!0;var f=[];if(o.length){var h=o;o=[],h.forEach(d),f=o}var y=function(){var x=f;f=[],x.forEach(d)},p=function(){return Promise.resolve().then(y)};p(),o={push:function(x){f.push(x),p()},filter:function(x){return f=f.filter(x),o}}}};return u}function MT(n){n===void 0&&(n={});var l=jT(null);return l.options=Ln({async:!0,ssr:!1},n),l}var K0=function(n){var l=n.sideCar,o=Q0(n,["sideCar"]);if(!l)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=l.read();if(!i)throw new Error("Sidecar medium not found");return v.createElement(i,Ln({},o))};K0.isSideCarExport=!0;function OT(n,l){return n.useMedium(l),K0}var Z0=MT(),Dd=function(){},Ks=v.forwardRef(function(n,l){var o=v.useRef(null),i=v.useState({onScrollCapture:Dd,onWheelCapture:Dd,onTouchMoveCapture:Dd}),u=i[0],d=i[1],f=n.forwardProps,h=n.children,y=n.className,p=n.removeScrollBar,x=n.enabled,g=n.shards,w=n.sideCar,C=n.noRelative,N=n.noIsolation,E=n.inert,T=n.allowPinchZoom,R=n.as,A=R===void 0?"div":R,M=n.gapMode,k=Q0(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),$=w,G=AT([o,l]),B=Ln(Ln({},k),u);return v.createElement(v.Fragment,null,x&&v.createElement($,{sideCar:Z0,removeScrollBar:p,shards:g,noRelative:C,noIsolation:N,inert:E,setCallbacks:d,allowPinchZoom:!!T,lockRef:o,gapMode:M}),f?v.cloneElement(v.Children.only(h),Ln(Ln({},B),{ref:G})):v.createElement(A,Ln({},B,{className:y,ref:G}),h))});Ks.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ks.classNames={fullWidth:Es,zeroRight:ws};var DT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function kT(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var l=DT();return l&&n.setAttribute("nonce",l),n}function zT(n,l){n.styleSheet?n.styleSheet.cssText=l:n.appendChild(document.createTextNode(l))}function LT(n){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(n)}var UT=function(){var n=0,l=null;return{add:function(o){n==0&&(l=kT())&&(zT(l,o),LT(l)),n++},remove:function(){n--,!n&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},BT=function(){var n=UT();return function(l,o){v.useEffect(function(){return n.add(l),function(){n.remove()}},[l&&o])}},I0=function(){var n=BT(),l=function(o){var i=o.styles,u=o.dynamic;return n(i,u),null};return l},HT={left:0,top:0,right:0,gap:0},kd=function(n){return parseInt(n||"",10)||0},VT=function(n){var l=window.getComputedStyle(document.body),o=l[n==="padding"?"paddingLeft":"marginLeft"],i=l[n==="padding"?"paddingTop":"marginTop"],u=l[n==="padding"?"paddingRight":"marginRight"];return[kd(o),kd(i),kd(u)]},$T=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return HT;var l=VT(n),o=document.documentElement.clientWidth,i=window.innerWidth;return{left:l[0],top:l[1],right:l[2],gap:Math.max(0,i-o+l[2]-l[0])}},qT=I0(),Cr="data-scroll-locked",YT=function(n,l,o,i){var u=n.left,d=n.top,f=n.right,h=n.gap;return o===void 0&&(o="margin"),`
252
- .`.concat(NT,` {
253
- overflow: hidden `).concat(i,`;
254
- padding-right: `).concat(h,"px ").concat(i,`;
255
- }
256
- body[`).concat(Cr,`] {
257
- overflow: hidden `).concat(i,`;
258
- overscroll-behavior: contain;
259
- `).concat([l&&"position: relative ".concat(i,";"),o==="margin"&&`
260
- padding-left: `.concat(u,`px;
261
- padding-top: `).concat(d,`px;
262
- padding-right: `).concat(f,`px;
263
- margin-left:0;
264
- margin-top:0;
265
- margin-right: `).concat(h,"px ").concat(i,`;
266
- `),o==="padding"&&"padding-right: ".concat(h,"px ").concat(i,";")].filter(Boolean).join(""),`
267
- }
268
-
269
- .`).concat(ws,` {
270
- right: `).concat(h,"px ").concat(i,`;
271
- }
272
-
273
- .`).concat(Es,` {
274
- margin-right: `).concat(h,"px ").concat(i,`;
275
- }
276
-
277
- .`).concat(ws," .").concat(ws,` {
278
- right: 0 `).concat(i,`;
279
- }
280
-
281
- .`).concat(Es," .").concat(Es,` {
282
- margin-right: 0 `).concat(i,`;
283
- }
284
-
285
- body[`).concat(Cr,`] {
286
- `).concat(CT,": ").concat(h,`px;
287
- }
288
- `)},wv=function(){var n=parseInt(document.body.getAttribute(Cr)||"0",10);return isFinite(n)?n:0},GT=function(){v.useEffect(function(){return document.body.setAttribute(Cr,(wv()+1).toString()),function(){var n=wv()-1;n<=0?document.body.removeAttribute(Cr):document.body.setAttribute(Cr,n.toString())}},[])},XT=function(n){var l=n.noRelative,o=n.noImportant,i=n.gapMode,u=i===void 0?"margin":i;GT();var d=v.useMemo(function(){return $T(u)},[u]);return v.createElement(qT,{styles:YT(d,!l,u,o?"":"!important")})},Pd=!1;if(typeof window<"u")try{var ps=Object.defineProperty({},"passive",{get:function(){return Pd=!0,!0}});window.addEventListener("test",ps,ps),window.removeEventListener("test",ps,ps)}catch{Pd=!1}var yr=Pd?{passive:!1}:!1,PT=function(n){return n.tagName==="TEXTAREA"},F0=function(n,l){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[l]!=="hidden"&&!(o.overflowY===o.overflowX&&!PT(n)&&o[l]==="visible")},QT=function(n){return F0(n,"overflowY")},KT=function(n){return F0(n,"overflowX")},Ev=function(n,l){var o=l.ownerDocument,i=l;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var u=J0(n,i);if(u){var d=W0(n,i),f=d[1],h=d[2];if(f>h)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},ZT=function(n){var l=n.scrollTop,o=n.scrollHeight,i=n.clientHeight;return[l,o,i]},IT=function(n){var l=n.scrollLeft,o=n.scrollWidth,i=n.clientWidth;return[l,o,i]},J0=function(n,l){return n==="v"?QT(l):KT(l)},W0=function(n,l){return n==="v"?ZT(l):IT(l)},FT=function(n,l){return n==="h"&&l==="rtl"?-1:1},JT=function(n,l,o,i,u){var d=FT(n,window.getComputedStyle(l).direction),f=d*i,h=o.target,y=l.contains(h),p=!1,x=f>0,g=0,w=0;do{if(!h)break;var C=W0(n,h),N=C[0],E=C[1],T=C[2],R=E-T-d*N;(N||R)&&J0(n,h)&&(g+=R,w+=N);var A=h.parentNode;h=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!y&&h!==document.body||y&&(l.contains(h)||l===h));return(x&&Math.abs(g)<1||!x&&Math.abs(w)<1)&&(p=!0),p},gs=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Nv=function(n){return[n.deltaX,n.deltaY]},Cv=function(n){return n&&"current"in n?n.current:n},WT=function(n,l){return n[0]===l[0]&&n[1]===l[1]},e5=function(n){return`
289
- .block-interactivity-`.concat(n,` {pointer-events: none;}
290
- .allow-interactivity-`).concat(n,` {pointer-events: all;}
291
- `)},t5=0,br=[];function n5(n){var l=v.useRef([]),o=v.useRef([0,0]),i=v.useRef(),u=v.useState(t5++)[0],d=v.useState(I0)[0],f=v.useRef(n);v.useEffect(function(){f.current=n},[n]),v.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(u));var E=ET([n.lockRef.current],(n.shards||[]).map(Cv),!0).filter(Boolean);return E.forEach(function(T){return T.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),E.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(u))})}}},[n.inert,n.lockRef.current,n.shards]);var h=v.useCallback(function(E,T){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!f.current.allowPinchZoom;var R=gs(E),A=o.current,M="deltaX"in E?E.deltaX:A[0]-R[0],k="deltaY"in E?E.deltaY:A[1]-R[1],$,G=E.target,B=Math.abs(M)>Math.abs(k)?"h":"v";if("touches"in E&&B==="h"&&G.type==="range")return!1;var V=window.getSelection(),ae=V&&V.anchorNode,oe=ae?ae===G||ae.contains(G):!1;if(oe)return!1;var pe=Ev(B,G);if(!pe)return!0;if(pe?$=B:($=B==="v"?"h":"v",pe=Ev(B,G)),!pe)return!1;if(!i.current&&"changedTouches"in E&&(M||k)&&(i.current=$),!$)return!0;var me=i.current||$;return JT(me,T,E,me==="h"?M:k)},[]),y=v.useCallback(function(E){var T=E;if(!(!br.length||br[br.length-1]!==d)){var R="deltaY"in T?Nv(T):gs(T),A=l.current.filter(function($){return $.name===T.type&&($.target===T.target||T.target===$.shadowParent)&&WT($.delta,R)})[0];if(A&&A.should){T.cancelable&&T.preventDefault();return}if(!A){var M=(f.current.shards||[]).map(Cv).filter(Boolean).filter(function($){return $.contains(T.target)}),k=M.length>0?h(T,M[0]):!f.current.noIsolation;k&&T.cancelable&&T.preventDefault()}}},[]),p=v.useCallback(function(E,T,R,A){var M={name:E,delta:T,target:R,should:A,shadowParent:a5(R)};l.current.push(M),setTimeout(function(){l.current=l.current.filter(function(k){return k!==M})},1)},[]),x=v.useCallback(function(E){o.current=gs(E),i.current=void 0},[]),g=v.useCallback(function(E){p(E.type,Nv(E),E.target,h(E,n.lockRef.current))},[]),w=v.useCallback(function(E){p(E.type,gs(E),E.target,h(E,n.lockRef.current))},[]);v.useEffect(function(){return br.push(d),n.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:w}),document.addEventListener("wheel",y,yr),document.addEventListener("touchmove",y,yr),document.addEventListener("touchstart",x,yr),function(){br=br.filter(function(E){return E!==d}),document.removeEventListener("wheel",y,yr),document.removeEventListener("touchmove",y,yr),document.removeEventListener("touchstart",x,yr)}},[]);var C=n.removeScrollBar,N=n.inert;return v.createElement(v.Fragment,null,N?v.createElement(d,{styles:e5(u)}):null,C?v.createElement(XT,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function a5(n){for(var l=null;n!==null;)n instanceof ShadowRoot&&(l=n.host,n=n.host),n=n.parentNode;return l}const l5=OT(Z0,n5);var Sf=v.forwardRef(function(n,l){return v.createElement(Ks,Ln({},n,{ref:l,sideCar:l5}))});Sf.classNames=Ks.classNames;var r5=function(n){if(typeof document>"u")return null;var l=Array.isArray(n)?n[0]:n;return l.ownerDocument.body},xr=new WeakMap,vs=new WeakMap,ys={},zd=0,ey=function(n){return n&&(n.host||ey(n.parentNode))},o5=function(n,l){return l.map(function(o){if(n.contains(o))return o;var i=ey(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,l,o,i){var u=o5(l,Array.isArray(n)?n:[n]);ys[o]||(ys[o]=new WeakMap);var d=ys[o],f=[],h=new Set,y=new Set(u),p=function(g){!g||h.has(g)||(h.add(g),p(g.parentNode))};u.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 C=w.getAttribute(i),N=C!==null&&C!=="false",E=(xr.get(w)||0)+1,T=(d.get(w)||0)+1;xr.set(w,E),d.set(w,T),f.push(w),E===1&&N&&vs.set(w,!0),T===1&&w.setAttribute(o,"true"),N||w.setAttribute(i,"true")}catch(R){console.error("aria-hidden: cannot operate on ",w,R)}})};return x(l),h.clear(),zd++,function(){f.forEach(function(g){var w=xr.get(g)-1,C=d.get(g)-1;xr.set(g,w),d.set(g,C),w||(vs.has(g)||g.removeAttribute(i),vs.delete(g)),C||g.removeAttribute(o)}),zd--,zd||(xr=new WeakMap,xr=new WeakMap,vs=new WeakMap,ys={})}},ty=function(n,l,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),u=r5(n);return u?(i.push.apply(i,Array.from(u.querySelectorAll("[aria-live], script"))),i5(i,u,o,"aria-hidden")):function(){return null}},Zs="Dialog",[ny,ay]=Ia(Zs),[s5,En]=ny(Zs),ly=n=>{const{__scopeDialog:l,children:o,open:i,defaultOpen:u,onOpenChange:d,modal:f=!0}=n,h=v.useRef(null),y=v.useRef(null),[p,x]=Ar({prop:i,defaultProp:u??!1,onChange:d,caller:Zs});return m.jsx(s5,{scope:l,triggerRef:h,contentRef:y,contentId:Ga(),titleId:Ga(),descriptionId:Ga(),open:p,onOpenChange:x,onOpenToggle:v.useCallback(()=>x(g=>!g),[x]),modal:f,children:o})};ly.displayName=Zs;var ry="DialogTrigger",oy=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=En(ry,o),d=Ze(l,u.triggerRef);return m.jsx(Le.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":Nf(u.open),...i,ref:d,onClick:Me(n.onClick,u.onOpenToggle)})});oy.displayName=ry;var wf="DialogPortal",[c5,iy]=ny(wf,{forceMount:void 0}),sy=n=>{const{__scopeDialog:l,forceMount:o,children:i,container:u}=n,d=En(wf,l);return m.jsx(c5,{scope:l,forceMount:o,children:v.Children.map(i,f=>m.jsx(Dr,{present:o||d.open,children:m.jsx(xf,{asChild:!0,container:u,children:f})}))})};sy.displayName=wf;var js="DialogOverlay",cy=v.forwardRef((n,l)=>{const o=iy(js,n.__scopeDialog),{forceMount:i=o.forceMount,...u}=n,d=En(js,n.__scopeDialog);return d.modal?m.jsx(Dr,{present:i||d.open,children:m.jsx(d5,{...u,ref:l})}):null});cy.displayName=js;var u5=qo("DialogOverlay.RemoveScroll"),d5=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=En(js,o);return m.jsx(Sf,{as:u5,allowPinchZoom:!0,shards:[u.contentRef],children:m.jsx(Le.div,{"data-state":Nf(u.open),...i,ref:l,style:{pointerEvents:"auto",...i.style}})})}),Tl="DialogContent",uy=v.forwardRef((n,l)=>{const o=iy(Tl,n.__scopeDialog),{forceMount:i=o.forceMount,...u}=n,d=En(Tl,n.__scopeDialog);return m.jsx(Dr,{present:i||d.open,children:d.modal?m.jsx(f5,{...u,ref:l}):m.jsx(m5,{...u,ref:l})})});uy.displayName=Tl;var f5=v.forwardRef((n,l)=>{const o=En(Tl,n.__scopeDialog),i=v.useRef(null),u=Ze(l,o.contentRef,i);return v.useEffect(()=>{const d=i.current;if(d)return ty(d)},[]),m.jsx(dy,{...n,ref:u,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Me(n.onCloseAutoFocus,d=>{var f;d.preventDefault(),(f=o.triggerRef.current)==null||f.focus()}),onPointerDownOutside:Me(n.onPointerDownOutside,d=>{const f=d.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0;(f.button===2||h)&&d.preventDefault()}),onFocusOutside:Me(n.onFocusOutside,d=>d.preventDefault())})}),m5=v.forwardRef((n,l)=>{const o=En(Tl,n.__scopeDialog),i=v.useRef(!1),u=v.useRef(!1);return m.jsx(dy,{...n,ref:l,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:d=>{var f,h;(f=n.onCloseAutoFocus)==null||f.call(n,d),d.defaultPrevented||(i.current||(h=o.triggerRef.current)==null||h.focus(),d.preventDefault()),i.current=!1,u.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"&&(u.current=!0));const f=d.target;((p=o.triggerRef.current)==null?void 0:p.contains(f))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&u.current&&d.preventDefault()}})}),dy=v.forwardRef((n,l)=>{const{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:u,onCloseAutoFocus:d,...f}=n,h=En(Tl,o),y=v.useRef(null),p=Ze(l,y);return P0(),m.jsxs(m.Fragment,{children:[m.jsx(bf,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:u,onUnmountAutoFocus:d,children:m.jsx(yf,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Nf(h.open),...f,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(p5,{titleId:h.titleId}),m.jsx(v5,{contentRef:y,descriptionId:h.descriptionId})]})]})}),Ef="DialogTitle",fy=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=En(Ef,o);return m.jsx(Le.h2,{id:u.titleId,...i,ref:l})});fy.displayName=Ef;var my="DialogDescription",hy=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=En(my,o);return m.jsx(Le.p,{id:u.descriptionId,...i,ref:l})});hy.displayName=my;var py="DialogClose",gy=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=En(py,o);return m.jsx(Le.button,{type:"button",...i,ref:l,onClick:Me(n.onClick,()=>u.onOpenChange(!1))})});gy.displayName=py;function Nf(n){return n?"open":"closed"}var vy="DialogTitleWarning",[h5,yy]=GC(vy,{contentName:Tl,titleName:Ef,docsSlug:"dialog"}),p5=({titleId:n})=>{const l=yy(vy),o=`\`${l.contentName}\` requires a \`${l.titleName}\` for the component to be accessible for screen reader users.
292
-
293
- If you want to hide the \`${l.titleName}\`, you can wrap it with our VisuallyHidden component.
294
-
295
- For more information, see https://radix-ui.com/primitives/docs/components/${l.docsSlug}`;return v.useEffect(()=>{n&&(document.getElementById(n)||console.error(o))},[o,n]),null},g5="DialogDescriptionWarning",v5=({contentRef:n,descriptionId:l})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${yy(g5).contentName}}.`;return v.useEffect(()=>{var d;const u=(d=n.current)==null?void 0:d.getAttribute("aria-describedby");l&&u&&(document.getElementById(l)||console.warn(i))},[i,n,l]),null},by=ly,xy=oy,Sy=sy,Cf=cy,Tf=uy,Rf=fy,Af=hy,Is=gy;const y5=by,b5=xy,x5=Sy,dj=Is,wy=v.forwardRef(({className:n,...l},o)=>m.jsx(Cf,{ref:o,className:ce("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...l}));wy.displayName=Cf.displayName;const Ey=v.forwardRef(({className:n,children:l,...o},i)=>m.jsxs(x5,{children:[m.jsx(wy,{}),m.jsxs(Tf,{ref:i,className:ce("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-[22px] border bg-background p-6 shadow-[0_34px_110px_-54px_rgba(0,0,0,0.55)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n),...o,children:[l,m.jsxs(Is,{className:"absolute right-4 top-4 rounded-[10px] 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:[m.jsx(w0,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ey.displayName=Tf.displayName;const Ny=({className:n,...l})=>m.jsx("div",{className:ce("flex flex-col space-y-1.5 text-center sm:text-left",n),...l});Ny.displayName="DialogHeader";const S5=({className:n,...l})=>m.jsx("div",{className:ce("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...l});S5.displayName="DialogFooter";const Cy=v.forwardRef(({className:n,...l},o)=>m.jsx(Rf,{ref:o,className:ce("text-lg font-semibold leading-none tracking-tight",n),...l}));Cy.displayName=Rf.displayName;const Ty=v.forwardRef(({className:n,...l},o)=>m.jsx(Af,{ref:o,className:ce("text-sm text-muted-foreground",n),...l}));Ty.displayName=Af.displayName;function w5({children:n,open:l,onOpenChange:o,showTrigger:i=!0}){const[u,d]=v.useState(!1),f=l??u,h=v.useCallback(y=>{l===void 0&&d(y),o==null||o(y)},[l,o]);return m.jsxs(y5,{open:f,onOpenChange:h,children:[i&&m.jsx(b5,{asChild:!0,children:m.jsx(Vn,{variant:"ghost",size:"icon","aria-label":"Settings",title:"Settings",className:"rounded-[16px] border border-border/70 bg-background/70 shadow-sm",children:m.jsx(aN,{className:"h-4 w-4"})})}),m.jsxs(Ey,{className:"grid h-[min(82vh,42rem)] max-h-[82vh] max-w-[min(90vw,56rem)] grid-rows-[auto_minmax(0,1fr)] gap-0 overflow-hidden rounded-[22px] border-border/70 bg-background/96 p-0 shadow-[0_40px_120px_-56px_rgba(15,23,42,0.75)] backdrop-blur-xl",children:[m.jsxs(Ny,{className:"shrink-0 border-b border-border/60 px-3 py-2 sm:px-4",children:[m.jsxs(Cy,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(PE,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),m.jsx(Ty,{className:"text-[11px]",children:"Session diagnostics, access configuration, and build metadata for the current Meshy node."})]}),m.jsx("div",{className:"min-h-0 overflow-y-auto px-3 pb-2.5 pt-0 sm:px-4 sm:pb-3",children:n})]})]})}function Tv(n,[l,o]){return Math.min(o,Math.max(l,n))}function Ry(n){const l=n+"CollectionProvider",[o,i]=Ia(l),[u,d]=o(l,{collectionRef:{current:null},itemMap:new Map}),f=E=>{const{scope:T,children:R}=E,A=ne.useRef(null),M=ne.useRef(new Map).current;return m.jsx(u,{scope:T,itemMap:M,collectionRef:A,children:R})};f.displayName=l;const h=n+"CollectionSlot",y=qo(h),p=ne.forwardRef((E,T)=>{const{scope:R,children:A}=E,M=d(h,R),k=Ze(T,M.collectionRef);return m.jsx(y,{ref:k,children:A})});p.displayName=h;const x=n+"CollectionItemSlot",g="data-radix-collection-item",w=qo(x),C=ne.forwardRef((E,T)=>{const{scope:R,children:A,...M}=E,k=ne.useRef(null),$=Ze(T,k),G=d(x,R);return ne.useEffect(()=>(G.itemMap.set(k,{ref:k,...M}),()=>void G.itemMap.delete(k))),m.jsx(w,{[g]:"",ref:$,children:A})});C.displayName=x;function N(E){const T=d(n+"CollectionConsumer",E);return ne.useCallback(()=>{const A=T.collectionRef.current;if(!A)return[];const M=Array.from(A.querySelectorAll(`[${g}]`));return Array.from(T.itemMap.values()).sort((G,B)=>M.indexOf(G.ref.current)-M.indexOf(B.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:f,Slot:p,ItemSlot:C},N,i]}var E5=v.createContext(void 0);function _f(n){const l=v.useContext(E5);return n||l||"ltr"}const N5=["top","right","bottom","left"],Qa=Math.min,Jt=Math.max,Ms=Math.round,bs=Math.floor,Hn=n=>({x:n,y:n}),C5={left:"right",right:"left",bottom:"top",top:"bottom"};function Qd(n,l,o){return Jt(n,Qa(l,o))}function ua(n,l){return typeof n=="function"?n(l):n}function da(n){return n.split("-")[0]}function kr(n){return n.split("-")[1]}function jf(n){return n==="x"?"y":"x"}function Mf(n){return n==="y"?"height":"width"}function Un(n){const l=n[0];return l==="t"||l==="b"?"y":"x"}function Of(n){return jf(Un(n))}function T5(n,l,o){o===void 0&&(o=!1);const i=kr(n),u=Of(n),d=Mf(u);let f=u==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return l.reference[d]>l.floating[d]&&(f=Os(f)),[f,Os(f)]}function R5(n){const l=Os(n);return[Kd(n),l,Kd(l)]}function Kd(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Rv=["left","right"],Av=["right","left"],A5=["top","bottom"],_5=["bottom","top"];function j5(n,l,o){switch(n){case"top":case"bottom":return o?l?Av:Rv:l?Rv:Av;case"left":case"right":return l?A5:_5;default:return[]}}function M5(n,l,o,i){const u=kr(n);let d=j5(da(n),o==="start",i);return u&&(d=d.map(f=>f+"-"+u),l&&(d=d.concat(d.map(Kd)))),d}function Os(n){const l=da(n);return C5[l]+n.slice(l.length)}function O5(n){return{top:0,right:0,bottom:0,left:0,...n}}function Ay(n){return typeof n!="number"?O5(n):{top:n,right:n,bottom:n,left:n}}function Ds(n){const{x:l,y:o,width:i,height:u}=n;return{width:i,height:u,top:o,left:l,right:l+i,bottom:o+u,x:l,y:o}}function _v(n,l,o){let{reference:i,floating:u}=n;const d=Un(l),f=Of(l),h=Mf(f),y=da(l),p=d==="y",x=i.x+i.width/2-u.width/2,g=i.y+i.height/2-u.height/2,w=i[h]/2-u[h]/2;let C;switch(y){case"top":C={x,y:i.y-u.height};break;case"bottom":C={x,y:i.y+i.height};break;case"right":C={x:i.x+i.width,y:g};break;case"left":C={x:i.x-u.width,y:g};break;default:C={x:i.x,y:i.y}}switch(kr(l)){case"start":C[f]-=w*(o&&p?-1:1);break;case"end":C[f]+=w*(o&&p?-1:1);break}return C}async function D5(n,l){var o;l===void 0&&(l={});const{x:i,y:u,platform:d,rects:f,elements:h,strategy:y}=n,{boundary:p="clippingAncestors",rootBoundary:x="viewport",elementContext:g="floating",altBoundary:w=!1,padding:C=0}=ua(l,n),N=Ay(C),T=h[w?g==="floating"?"reference":"floating":g],R=Ds(await d.getClippingRect({element:(o=await(d.isElement==null?void 0:d.isElement(T)))==null||o?T:T.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(h.floating)),boundary:p,rootBoundary:x,strategy:y})),A=g==="floating"?{x:i,y:u,width:f.floating.width,height:f.floating.height}:f.reference,M=await(d.getOffsetParent==null?void 0:d.getOffsetParent(h.floating)),k=await(d.isElement==null?void 0:d.isElement(M))?await(d.getScale==null?void 0:d.getScale(M))||{x:1,y:1}:{x:1,y:1},$=Ds(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:A,offsetParent:M,strategy:y}):A);return{top:(R.top-$.top+N.top)/k.y,bottom:($.bottom-R.bottom+N.bottom)/k.y,left:(R.left-$.left+N.left)/k.x,right:($.right-R.right+N.right)/k.x}}const k5=50,z5=async(n,l,o)=>{const{placement:i="bottom",strategy:u="absolute",middleware:d=[],platform:f}=o,h=f.detectOverflow?f:{...f,detectOverflow:D5},y=await(f.isRTL==null?void 0:f.isRTL(l));let p=await f.getElementRects({reference:n,floating:l,strategy:u}),{x,y:g}=_v(p,i,y),w=i,C=0;const N={};for(let E=0;E<d.length;E++){const T=d[E];if(!T)continue;const{name:R,fn:A}=T,{x:M,y:k,data:$,reset:G}=await A({x,y:g,initialPlacement:i,placement:w,strategy:u,middlewareData:N,rects:p,platform:h,elements:{reference:n,floating:l}});x=M??x,g=k??g,N[R]={...N[R],...$},G&&C<k5&&(C++,typeof G=="object"&&(G.placement&&(w=G.placement),G.rects&&(p=G.rects===!0?await f.getElementRects({reference:n,floating:l,strategy:u}):G.rects),{x,y:g}=_v(p,w,y)),E=-1)}return{x,y:g,placement:w,strategy:u,middlewareData:N}},L5=n=>({name:"arrow",options:n,async fn(l){const{x:o,y:i,placement:u,rects:d,platform:f,elements:h,middlewareData:y}=l,{element:p,padding:x=0}=ua(n,l)||{};if(p==null)return{};const g=Ay(x),w={x:o,y:i},C=Of(u),N=Mf(C),E=await f.getDimensions(p),T=C==="y",R=T?"top":"left",A=T?"bottom":"right",M=T?"clientHeight":"clientWidth",k=d.reference[N]+d.reference[C]-w[C]-d.floating[N],$=w[C]-d.reference[C],G=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let B=G?G[M]:0;(!B||!await(f.isElement==null?void 0:f.isElement(G)))&&(B=h.floating[M]||d.floating[N]);const V=k/2-$/2,ae=B/2-E[N]/2-1,oe=Qa(g[R],ae),pe=Qa(g[A],ae),me=oe,ue=B-E[N]-pe,de=B/2-E[N]/2+V,re=Qd(me,de,ue),O=!y.arrow&&kr(u)!=null&&de!==re&&d.reference[N]/2-(de<me?oe:pe)-E[N]/2<0,Y=O?de<me?de-me:de-ue:0;return{[C]:w[C]+Y,data:{[C]:re,centerOffset:de-re-Y,...O&&{alignmentOffset:Y}},reset:O}}}),U5=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(l){var o,i;const{placement:u,middlewareData:d,rects:f,initialPlacement:h,platform:y,elements:p}=l,{mainAxis:x=!0,crossAxis:g=!0,fallbackPlacements:w,fallbackStrategy:C="bestFit",fallbackAxisSideDirection:N="none",flipAlignment:E=!0,...T}=ua(n,l);if((o=d.arrow)!=null&&o.alignmentOffset)return{};const R=da(u),A=Un(h),M=da(h)===h,k=await(y.isRTL==null?void 0:y.isRTL(p.floating)),$=w||(M||!E?[Os(h)]:R5(h)),G=N!=="none";!w&&G&&$.push(...M5(h,E,N,k));const B=[h,...$],V=await y.detectOverflow(l,T),ae=[];let oe=((i=d.flip)==null?void 0:i.overflows)||[];if(x&&ae.push(V[R]),g){const de=T5(u,f,k);ae.push(V[de[0]],V[de[1]])}if(oe=[...oe,{placement:u,overflows:ae}],!ae.every(de=>de<=0)){var pe,me;const de=(((pe=d.flip)==null?void 0:pe.index)||0)+1,re=B[de];if(re&&(!(g==="alignment"?A!==Un(re):!1)||oe.every(F=>Un(F.placement)===A?F.overflows[0]>0:!0)))return{data:{index:de,overflows:oe},reset:{placement:re}};let O=(me=oe.filter(Y=>Y.overflows[0]<=0).sort((Y,F)=>Y.overflows[1]-F.overflows[1])[0])==null?void 0:me.placement;if(!O)switch(C){case"bestFit":{var ue;const Y=(ue=oe.filter(F=>{if(G){const se=Un(F.placement);return se===A||se==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(se=>se>0).reduce((se,J)=>se+J,0)]).sort((F,se)=>F[1]-se[1])[0])==null?void 0:ue[0];Y&&(O=Y);break}case"initialPlacement":O=h;break}if(u!==O)return{reset:{placement:O}}}return{}}}};function jv(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function Mv(n){return N5.some(l=>n[l]>=0)}const B5=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(l){const{rects:o,platform:i}=l,{strategy:u="referenceHidden",...d}=ua(n,l);switch(u){case"referenceHidden":{const f=await i.detectOverflow(l,{...d,elementContext:"reference"}),h=jv(f,o.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Mv(h)}}}case"escaped":{const f=await i.detectOverflow(l,{...d,altBoundary:!0}),h=jv(f,o.floating);return{data:{escapedOffsets:h,escaped:Mv(h)}}}default:return{}}}}},_y=new Set(["left","top"]);async function H5(n,l){const{placement:o,platform:i,elements:u}=n,d=await(i.isRTL==null?void 0:i.isRTL(u.floating)),f=da(o),h=kr(o),y=Un(o)==="y",p=_y.has(f)?-1:1,x=d&&y?-1:1,g=ua(l,n);let{mainAxis:w,crossAxis:C,alignmentAxis:N}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return h&&typeof N=="number"&&(C=h==="end"?N*-1:N),y?{x:C*x,y:w*p}:{x:w*p,y:C*x}}const V5=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(l){var o,i;const{x:u,y:d,placement:f,middlewareData:h}=l,y=await H5(l,n);return f===((o=h.offset)==null?void 0:o.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:u+y.x,y:d+y.y,data:{...y,placement:f}}}}},$5=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(l){const{x:o,y:i,placement:u,platform:d}=l,{mainAxis:f=!0,crossAxis:h=!1,limiter:y={fn:R=>{let{x:A,y:M}=R;return{x:A,y:M}}},...p}=ua(n,l),x={x:o,y:i},g=await d.detectOverflow(l,p),w=Un(da(u)),C=jf(w);let N=x[C],E=x[w];if(f){const R=C==="y"?"top":"left",A=C==="y"?"bottom":"right",M=N+g[R],k=N-g[A];N=Qd(M,N,k)}if(h){const R=w==="y"?"top":"left",A=w==="y"?"bottom":"right",M=E+g[R],k=E-g[A];E=Qd(M,E,k)}const T=y.fn({...l,[C]:N,[w]:E});return{...T,data:{x:T.x-o,y:T.y-i,enabled:{[C]:f,[w]:h}}}}}},q5=function(n){return n===void 0&&(n={}),{options:n,fn(l){const{x:o,y:i,placement:u,rects:d,middlewareData:f}=l,{offset:h=0,mainAxis:y=!0,crossAxis:p=!0}=ua(n,l),x={x:o,y:i},g=Un(u),w=jf(g);let C=x[w],N=x[g];const E=ua(h,l),T=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(y){const M=w==="y"?"height":"width",k=d.reference[w]-d.floating[M]+T.mainAxis,$=d.reference[w]+d.reference[M]-T.mainAxis;C<k?C=k:C>$&&(C=$)}if(p){var R,A;const M=w==="y"?"width":"height",k=_y.has(da(u)),$=d.reference[g]-d.floating[M]+(k&&((R=f.offset)==null?void 0:R[g])||0)+(k?0:T.crossAxis),G=d.reference[g]+d.reference[M]+(k?0:((A=f.offset)==null?void 0:A[g])||0)-(k?T.crossAxis:0);N<$?N=$:N>G&&(N=G)}return{[w]:C,[g]:N}}}},Y5=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(l){var o,i;const{placement:u,rects:d,platform:f,elements:h}=l,{apply:y=()=>{},...p}=ua(n,l),x=await f.detectOverflow(l,p),g=da(u),w=kr(u),C=Un(u)==="y",{width:N,height:E}=d.floating;let T,R;g==="top"||g==="bottom"?(T=g,R=w===(await(f.isRTL==null?void 0:f.isRTL(h.floating))?"start":"end")?"left":"right"):(R=g,T=w==="end"?"top":"bottom");const A=E-x.top-x.bottom,M=N-x.left-x.right,k=Qa(E-x[T],A),$=Qa(N-x[R],M),G=!l.middlewareData.shift;let B=k,V=$;if((o=l.middlewareData.shift)!=null&&o.enabled.x&&(V=M),(i=l.middlewareData.shift)!=null&&i.enabled.y&&(B=A),G&&!w){const oe=Jt(x.left,0),pe=Jt(x.right,0),me=Jt(x.top,0),ue=Jt(x.bottom,0);C?V=N-2*(oe!==0||pe!==0?oe+pe:Jt(x.left,x.right)):B=E-2*(me!==0||ue!==0?me+ue:Jt(x.top,x.bottom))}await y({...l,availableWidth:V,availableHeight:B});const ae=await f.getDimensions(h.floating);return N!==ae.width||E!==ae.height?{reset:{rects:!0}}:{}}}};function Fs(){return typeof window<"u"}function zr(n){return jy(n)?(n.nodeName||"").toLowerCase():"#document"}function Wt(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function qn(n){var l;return(l=(jy(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function jy(n){return Fs()?n instanceof Node||n instanceof Wt(n).Node:!1}function Sn(n){return Fs()?n instanceof Element||n instanceof Wt(n).Element:!1}function fa(n){return Fs()?n instanceof HTMLElement||n instanceof Wt(n).HTMLElement:!1}function Ov(n){return!Fs()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Wt(n).ShadowRoot}function Qo(n){const{overflow:l,overflowX:o,overflowY:i,display:u}=wn(n);return/auto|scroll|overlay|hidden|clip/.test(l+i+o)&&u!=="inline"&&u!=="contents"}function G5(n){return/^(table|td|th)$/.test(zr(n))}function Js(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const X5=/transform|translate|scale|rotate|perspective|filter/,P5=/paint|layout|strict|content/,El=n=>!!n&&n!=="none";let Ld;function Df(n){const l=Sn(n)?wn(n):n;return El(l.transform)||El(l.translate)||El(l.scale)||El(l.rotate)||El(l.perspective)||!kf()&&(El(l.backdropFilter)||El(l.filter))||X5.test(l.willChange||"")||P5.test(l.contain||"")}function Q5(n){let l=Ka(n);for(;fa(l)&&!_r(l);){if(Df(l))return l;if(Js(l))return null;l=Ka(l)}return null}function kf(){return Ld==null&&(Ld=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ld}function _r(n){return/^(html|body|#document)$/.test(zr(n))}function wn(n){return Wt(n).getComputedStyle(n)}function Ws(n){return Sn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ka(n){if(zr(n)==="html")return n;const l=n.assignedSlot||n.parentNode||Ov(n)&&n.host||qn(n);return Ov(l)?l.host:l}function My(n){const l=Ka(n);return _r(l)?n.ownerDocument?n.ownerDocument.body:n.body:fa(l)&&Qo(l)?l:My(l)}function Yo(n,l,o){var i;l===void 0&&(l=[]),o===void 0&&(o=!0);const u=My(n),d=u===((i=n.ownerDocument)==null?void 0:i.body),f=Wt(u);if(d){const h=Zd(f);return l.concat(f,f.visualViewport||[],Qo(u)?u:[],h&&o?Yo(h):[])}else return l.concat(u,Yo(u,[],o))}function Zd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Oy(n){const l=wn(n);let o=parseFloat(l.width)||0,i=parseFloat(l.height)||0;const u=fa(n),d=u?n.offsetWidth:o,f=u?n.offsetHeight:i,h=Ms(o)!==d||Ms(i)!==f;return h&&(o=d,i=f),{width:o,height:i,$:h}}function zf(n){return Sn(n)?n:n.contextElement}function Tr(n){const l=zf(n);if(!fa(l))return Hn(1);const o=l.getBoundingClientRect(),{width:i,height:u,$:d}=Oy(l);let f=(d?Ms(o.width):o.width)/i,h=(d?Ms(o.height):o.height)/u;return(!f||!Number.isFinite(f))&&(f=1),(!h||!Number.isFinite(h))&&(h=1),{x:f,y:h}}const K5=Hn(0);function Dy(n){const l=Wt(n);return!kf()||!l.visualViewport?K5:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function Z5(n,l,o){return l===void 0&&(l=!1),!o||l&&o!==Wt(n)?!1:l}function Rl(n,l,o,i){l===void 0&&(l=!1),o===void 0&&(o=!1);const u=n.getBoundingClientRect(),d=zf(n);let f=Hn(1);l&&(i?Sn(i)&&(f=Tr(i)):f=Tr(n));const h=Z5(d,o,i)?Dy(d):Hn(0);let y=(u.left+h.x)/f.x,p=(u.top+h.y)/f.y,x=u.width/f.x,g=u.height/f.y;if(d){const w=Wt(d),C=i&&Sn(i)?Wt(i):i;let N=w,E=Zd(N);for(;E&&i&&C!==N;){const T=Tr(E),R=E.getBoundingClientRect(),A=wn(E),M=R.left+(E.clientLeft+parseFloat(A.paddingLeft))*T.x,k=R.top+(E.clientTop+parseFloat(A.paddingTop))*T.y;y*=T.x,p*=T.y,x*=T.x,g*=T.y,y+=M,p+=k,N=Wt(E),E=Zd(N)}}return Ds({width:x,height:g,x:y,y:p})}function ec(n,l){const o=Ws(n).scrollLeft;return l?l.left+o:Rl(qn(n)).left+o}function ky(n,l){const o=n.getBoundingClientRect(),i=o.left+l.scrollLeft-ec(n,o),u=o.top+l.scrollTop;return{x:i,y:u}}function I5(n){let{elements:l,rect:o,offsetParent:i,strategy:u}=n;const d=u==="fixed",f=qn(i),h=l?Js(l.floating):!1;if(i===f||h&&d)return o;let y={scrollLeft:0,scrollTop:0},p=Hn(1);const x=Hn(0),g=fa(i);if((g||!g&&!d)&&((zr(i)!=="body"||Qo(f))&&(y=Ws(i)),g)){const C=Rl(i);p=Tr(i),x.x=C.x+i.clientLeft,x.y=C.y+i.clientTop}const w=f&&!g&&!d?ky(f,y):Hn(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 l=qn(n),o=Ws(n),i=n.ownerDocument.body,u=Jt(l.scrollWidth,l.clientWidth,i.scrollWidth,i.clientWidth),d=Jt(l.scrollHeight,l.clientHeight,i.scrollHeight,i.clientHeight);let f=-o.scrollLeft+ec(n);const h=-o.scrollTop;return wn(i).direction==="rtl"&&(f+=Jt(l.clientWidth,i.clientWidth)-u),{width:u,height:d,x:f,y:h}}const Dv=25;function W5(n,l){const o=Wt(n),i=qn(n),u=o.visualViewport;let d=i.clientWidth,f=i.clientHeight,h=0,y=0;if(u){d=u.width,f=u.height;const x=kf();(!x||x&&l==="fixed")&&(h=u.offsetLeft,y=u.offsetTop)}const p=ec(i);if(p<=0){const x=i.ownerDocument,g=x.body,w=getComputedStyle(g),C=x.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,N=Math.abs(i.clientWidth-g.clientWidth-C);N<=Dv&&(d-=N)}else p<=Dv&&(d+=p);return{width:d,height:f,x:h,y}}function eR(n,l){const o=Rl(n,!0,l==="fixed"),i=o.top+n.clientTop,u=o.left+n.clientLeft,d=fa(n)?Tr(n):Hn(1),f=n.clientWidth*d.x,h=n.clientHeight*d.y,y=u*d.x,p=i*d.y;return{width:f,height:h,x:y,y:p}}function kv(n,l,o){let i;if(l==="viewport")i=W5(n,o);else if(l==="document")i=J5(qn(n));else if(Sn(l))i=eR(l,o);else{const u=Dy(n);i={x:l.x-u.x,y:l.y-u.y,width:l.width,height:l.height}}return Ds(i)}function zy(n,l){const o=Ka(n);return o===l||!Sn(o)||_r(o)?!1:wn(o).position==="fixed"||zy(o,l)}function tR(n,l){const o=l.get(n);if(o)return o;let i=Yo(n,[],!1).filter(h=>Sn(h)&&zr(h)!=="body"),u=null;const d=wn(n).position==="fixed";let f=d?Ka(n):n;for(;Sn(f)&&!_r(f);){const h=wn(f),y=Df(f);!y&&h.position==="fixed"&&(u=null),(d?!y&&!u:!y&&h.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||Qo(f)&&!y&&zy(n,f))?i=i.filter(x=>x!==f):u=h,f=Ka(f)}return l.set(n,i),i}function nR(n){let{element:l,boundary:o,rootBoundary:i,strategy:u}=n;const f=[...o==="clippingAncestors"?Js(l)?[]:tR(l,this._c):[].concat(o),i],h=kv(l,f[0],u);let y=h.top,p=h.right,x=h.bottom,g=h.left;for(let w=1;w<f.length;w++){const C=kv(l,f[w],u);y=Jt(C.top,y),p=Qa(C.right,p),x=Qa(C.bottom,x),g=Jt(C.left,g)}return{width:p-g,height:x-y,x:g,y}}function aR(n){const{width:l,height:o}=Oy(n);return{width:l,height:o}}function lR(n,l,o){const i=fa(l),u=qn(l),d=o==="fixed",f=Rl(n,!0,d,l);let h={scrollLeft:0,scrollTop:0};const y=Hn(0);function p(){y.x=ec(u)}if(i||!i&&!d)if((zr(l)!=="body"||Qo(u))&&(h=Ws(l)),i){const C=Rl(l,!0,d,l);y.x=C.x+l.clientLeft,y.y=C.y+l.clientTop}else u&&p();d&&!i&&u&&p();const x=u&&!i&&!d?ky(u,h):Hn(0),g=f.left+h.scrollLeft-y.x-x.x,w=f.top+h.scrollTop-y.y-x.y;return{x:g,y:w,width:f.width,height:f.height}}function Ud(n){return wn(n).position==="static"}function zv(n,l){if(!fa(n)||wn(n).position==="fixed")return null;if(l)return l(n);let o=n.offsetParent;return qn(n)===o&&(o=o.ownerDocument.body),o}function Ly(n,l){const o=Wt(n);if(Js(n))return o;if(!fa(n)){let u=Ka(n);for(;u&&!_r(u);){if(Sn(u)&&!Ud(u))return u;u=Ka(u)}return o}let i=zv(n,l);for(;i&&G5(i)&&Ud(i);)i=zv(i,l);return i&&_r(i)&&Ud(i)&&!Df(i)?o:i||Q5(n)||o}const rR=async function(n){const l=this.getOffsetParent||Ly,o=this.getDimensions,i=await o(n.floating);return{reference:lR(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function oR(n){return wn(n).direction==="rtl"}const iR={convertOffsetParentRelativeRectToViewportRelativeRect:I5,getDocumentElement:qn,getClippingRect:nR,getOffsetParent:Ly,getElementRects:rR,getClientRects:F5,getDimensions:aR,getScale:Tr,isElement:Sn,isRTL:oR};function Uy(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function sR(n,l){let o=null,i;const u=qn(n);function d(){var h;clearTimeout(i),(h=o)==null||h.disconnect(),o=null}function f(h,y){h===void 0&&(h=!1),y===void 0&&(y=1),d();const p=n.getBoundingClientRect(),{left:x,top:g,width:w,height:C}=p;if(h||l(),!w||!C)return;const N=bs(g),E=bs(u.clientWidth-(x+w)),T=bs(u.clientHeight-(g+C)),R=bs(x),M={rootMargin:-N+"px "+-E+"px "+-T+"px "+-R+"px",threshold:Jt(0,Qa(1,y))||1};let k=!0;function $(G){const B=G[0].intersectionRatio;if(B!==y){if(!k)return f();B?f(!1,B):i=setTimeout(()=>{f(!1,1e-7)},1e3)}B===1&&!Uy(p,n.getBoundingClientRect())&&f(),k=!1}try{o=new IntersectionObserver($,{...M,root:u.ownerDocument})}catch{o=new IntersectionObserver($,M)}o.observe(n)}return f(!0),d}function cR(n,l,o,i){i===void 0&&(i={});const{ancestorScroll:u=!0,ancestorResize:d=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:h=typeof IntersectionObserver=="function",animationFrame:y=!1}=i,p=zf(n),x=u||d?[...p?Yo(p):[],...l?Yo(l):[]]:[];x.forEach(R=>{u&&R.addEventListener("scroll",o,{passive:!0}),d&&R.addEventListener("resize",o)});const g=p&&h?sR(p,o):null;let w=-1,C=null;f&&(C=new ResizeObserver(R=>{let[A]=R;A&&A.target===p&&C&&l&&(C.unobserve(l),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var M;(M=C)==null||M.observe(l)})),o()}),p&&!y&&C.observe(p),l&&C.observe(l));let N,E=y?Rl(n):null;y&&T();function T(){const R=Rl(n);E&&!Uy(E,R)&&o(),E=R,N=requestAnimationFrame(T)}return o(),()=>{var R;x.forEach(A=>{u&&A.removeEventListener("scroll",o),d&&A.removeEventListener("resize",o)}),g==null||g(),(R=C)==null||R.disconnect(),C=null,y&&cancelAnimationFrame(N)}}const uR=V5,dR=$5,fR=U5,mR=Y5,hR=B5,Lv=L5,pR=q5,gR=(n,l,o)=>{const i=new Map,u={platform:iR,...o},d={...u.platform,_c:i};return z5(n,l,{...u,platform:d})};var vR=typeof document<"u",yR=function(){},Ns=vR?v.useLayoutEffect:yR;function ks(n,l){if(n===l)return!0;if(typeof n!=typeof l)return!1;if(typeof n=="function"&&n.toString()===l.toString())return!0;let o,i,u;if(n&&l&&typeof n=="object"){if(Array.isArray(n)){if(o=n.length,o!==l.length)return!1;for(i=o;i--!==0;)if(!ks(n[i],l[i]))return!1;return!0}if(u=Object.keys(n),o=u.length,o!==Object.keys(l).length)return!1;for(i=o;i--!==0;)if(!{}.hasOwnProperty.call(l,u[i]))return!1;for(i=o;i--!==0;){const d=u[i];if(!(d==="_owner"&&n.$$typeof)&&!ks(n[d],l[d]))return!1}return!0}return n!==n&&l!==l}function By(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Uv(n,l){const o=By(n);return Math.round(l*o)/o}function Bd(n){const l=v.useRef(n);return Ns(()=>{l.current=n}),l}function bR(n){n===void 0&&(n={});const{placement:l="bottom",strategy:o="absolute",middleware:i=[],platform:u,elements:{reference:d,floating:f}={},transform:h=!0,whileElementsMounted:y,open:p}=n,[x,g]=v.useState({x:0,y:0,strategy:o,placement:l,middlewareData:{},isPositioned:!1}),[w,C]=v.useState(i);ks(w,i)||C(i);const[N,E]=v.useState(null),[T,R]=v.useState(null),A=v.useCallback(F=>{F!==G.current&&(G.current=F,E(F))},[]),M=v.useCallback(F=>{F!==B.current&&(B.current=F,R(F))},[]),k=d||N,$=f||T,G=v.useRef(null),B=v.useRef(null),V=v.useRef(x),ae=y!=null,oe=Bd(y),pe=Bd(u),me=Bd(p),ue=v.useCallback(()=>{if(!G.current||!B.current)return;const F={placement:l,strategy:o,middleware:w};pe.current&&(F.platform=pe.current),gR(G.current,B.current,F).then(se=>{const J={...se,isPositioned:me.current!==!1};de.current&&!ks(V.current,J)&&(V.current=J,Po.flushSync(()=>{g(J)}))})},[w,l,o,pe,me]);Ns(()=>{p===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,g(F=>({...F,isPositioned:!1})))},[p]);const de=v.useRef(!1);Ns(()=>(de.current=!0,()=>{de.current=!1}),[]),Ns(()=>{if(k&&(G.current=k),$&&(B.current=$),k&&$){if(oe.current)return oe.current(k,$,ue);ue()}},[k,$,ue,oe,ae]);const re=v.useMemo(()=>({reference:G,floating:B,setReference:A,setFloating:M}),[A,M]),O=v.useMemo(()=>({reference:k,floating:$}),[k,$]),Y=v.useMemo(()=>{const F={position:o,left:0,top:0};if(!O.floating)return F;const se=Uv(O.floating,x.x),J=Uv(O.floating,x.y);return h?{...F,transform:"translate("+se+"px, "+J+"px)",...By(O.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:se,top:J}},[o,h,O.floating,x.x,x.y]);return v.useMemo(()=>({...x,update:ue,refs:re,elements:O,floatingStyles:Y}),[x,ue,re,O,Y])}const xR=n=>{function l(o){return{}.hasOwnProperty.call(o,"current")}return{name:"arrow",options:n,fn(o){const{element:i,padding:u}=typeof n=="function"?n(o):n;return i&&l(i)?i.current!=null?Lv({element:i.current,padding:u}).fn(o):{}:i?Lv({element:i,padding:u}).fn(o):{}}}},SR=(n,l)=>{const o=uR(n);return{name:o.name,fn:o.fn,options:[n,l]}},wR=(n,l)=>{const o=dR(n);return{name:o.name,fn:o.fn,options:[n,l]}},ER=(n,l)=>({fn:pR(n).fn,options:[n,l]}),NR=(n,l)=>{const o=fR(n);return{name:o.name,fn:o.fn,options:[n,l]}},CR=(n,l)=>{const o=mR(n);return{name:o.name,fn:o.fn,options:[n,l]}},TR=(n,l)=>{const o=hR(n);return{name:o.name,fn:o.fn,options:[n,l]}},RR=(n,l)=>{const o=xR(n);return{name:o.name,fn:o.fn,options:[n,l]}};var AR="Arrow",Hy=v.forwardRef((n,l)=>{const{children:o,width:i=10,height:u=5,...d}=n;return m.jsx(Le.svg,{...d,ref:l,width:i,height:u,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:n.asChild?o:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});Hy.displayName=AR;var _R=Hy;function Vy(n){const[l,o]=v.useState(void 0);return Rt(()=>{if(n){o({width:n.offsetWidth,height:n.offsetHeight});const i=new ResizeObserver(u=>{if(!Array.isArray(u)||!u.length)return;const d=u[0];let f,h;if("borderBoxSize"in d){const y=d.borderBoxSize,p=Array.isArray(y)?y[0]:y;f=p.inlineSize,h=p.blockSize}else f=n.offsetWidth,h=n.offsetHeight;o({width:f,height:h})});return i.observe(n,{box:"border-box"}),()=>i.unobserve(n)}else o(void 0)},[n]),l}var Lf="Popper",[$y,qy]=Ia(Lf),[jR,Yy]=$y(Lf),Gy=n=>{const{__scopePopper:l,children:o}=n,[i,u]=v.useState(null);return m.jsx(jR,{scope:l,anchor:i,onAnchorChange:u,children:o})};Gy.displayName=Lf;var Xy="PopperAnchor",Py=v.forwardRef((n,l)=>{const{__scopePopper:o,virtualRef:i,...u}=n,d=Yy(Xy,o),f=v.useRef(null),h=Ze(l,f),y=v.useRef(null);return v.useEffect(()=>{const p=y.current;y.current=(i==null?void 0:i.current)||f.current,p!==y.current&&d.onAnchorChange(y.current)}),i?null:m.jsx(Le.div,{...u,ref:h})});Py.displayName=Xy;var Uf="PopperContent",[MR,OR]=$y(Uf),Qy=v.forwardRef((n,l)=>{var W,le,ie,we,Ee,ve;const{__scopePopper:o,side:i="bottom",sideOffset:u=0,align:d="center",alignOffset:f=0,arrowPadding:h=0,avoidCollisions:y=!0,collisionBoundary:p=[],collisionPadding:x=0,sticky:g="partial",hideWhenDetached:w=!1,updatePositionStrategy:C="optimized",onPlaced:N,...E}=n,T=Yy(Uf,o),[R,A]=v.useState(null),M=Ze(l,Ye=>A(Ye)),[k,$]=v.useState(null),G=Vy(k),B=(G==null?void 0:G.width)??0,V=(G==null?void 0:G.height)??0,ae=i+(d!=="center"?"-"+d:""),oe=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},pe=Array.isArray(p)?p:[p],me=pe.length>0,ue={padding:oe,boundary:pe.filter(kR),altBoundary:me},{refs:de,floatingStyles:re,placement:O,isPositioned:Y,middlewareData:F}=bR({strategy:"fixed",placement:ae,whileElementsMounted:(...Ye)=>cR(...Ye,{animationFrame:C==="always"}),elements:{reference:T.anchor},middleware:[SR({mainAxis:u+V,alignmentAxis:f}),y&&wR({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?ER():void 0,...ue}),y&&NR({...ue}),CR({...ue,apply:({elements:Ye,rects:ke,availableWidth:yt,availableHeight:tn})=>{const{width:Yt,height:Wa}=ke.reference,ht=Ye.floating.style;ht.setProperty("--radix-popper-available-width",`${yt}px`),ht.setProperty("--radix-popper-available-height",`${tn}px`),ht.setProperty("--radix-popper-anchor-width",`${Yt}px`),ht.setProperty("--radix-popper-anchor-height",`${Wa}px`)}}),k&&RR({element:k,padding:h}),zR({arrowWidth:B,arrowHeight:V}),w&&TR({strategy:"referenceHidden",...ue})]}),[se,J]=Iy(O),j=Pa(N);Rt(()=>{Y&&(j==null||j())},[Y,j]);const X=(W=F.arrow)==null?void 0:W.x,Q=(le=F.arrow)==null?void 0:le.y,ee=((ie=F.arrow)==null?void 0:ie.centerOffset)!==0,[te,I]=v.useState();return Rt(()=>{R&&I(window.getComputedStyle(R).zIndex)},[R]),m.jsx("div",{ref:de.setFloating,"data-radix-popper-content-wrapper":"",style:{...re,transform:Y?re.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[(we=F.transformOrigin)==null?void 0:we.x,(Ee=F.transformOrigin)==null?void 0:Ee.y].join(" "),...((ve=F.hide)==null?void 0:ve.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:m.jsx(MR,{scope:o,placedSide:se,onArrowChange:$,arrowX:X,arrowY:Q,shouldHideArrow:ee,children:m.jsx(Le.div,{"data-side":se,"data-align":J,...E,ref:M,style:{...E.style,animation:Y?void 0:"none"}})})})});Qy.displayName=Uf;var Ky="PopperArrow",DR={top:"bottom",right:"left",bottom:"top",left:"right"},Zy=v.forwardRef(function(l,o){const{__scopePopper:i,...u}=l,d=OR(Ky,i),f=DR[d.placedSide];return m.jsx("span",{ref:d.onArrowChange,style:{position:"absolute",left:d.arrowX,top:d.arrowY,[f]: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:m.jsx(_R,{...u,ref:o,style:{...u.style,display:"block"}})})});Zy.displayName=Ky;function kR(n){return n!==null}var zR=n=>({name:"transformOrigin",options:n,fn(l){var T,R,A;const{placement:o,rects:i,middlewareData:u}=l,f=((T=u.arrow)==null?void 0:T.centerOffset)!==0,h=f?0:n.arrowWidth,y=f?0:n.arrowHeight,[p,x]=Iy(o),g={start:"0%",center:"50%",end:"100%"}[x],w=(((R=u.arrow)==null?void 0:R.x)??0)+h/2,C=(((A=u.arrow)==null?void 0:A.y)??0)+y/2;let N="",E="";return p==="bottom"?(N=f?g:`${w}px`,E=`${-y}px`):p==="top"?(N=f?g:`${w}px`,E=`${i.floating.height+y}px`):p==="right"?(N=`${-y}px`,E=f?g:`${C}px`):p==="left"&&(N=`${i.floating.width+y}px`,E=f?g:`${C}px`),{data:{x:N,y:E}}}});function Iy(n){const[l,o="center"]=n.split("-");return[l,o]}var LR=Gy,UR=Py,BR=Qy,HR=Zy;function Fy(n){const l=v.useRef({value:n,previous:n});return v.useMemo(()=>(l.current.value!==n&&(l.current.previous=l.current.value,l.current.value=n),l.current.previous),[n])}var Jy=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"}),VR="VisuallyHidden",$R=v.forwardRef((n,l)=>m.jsx(Le.span,{...n,ref:l,style:{...Jy,...n.style}}));$R.displayName=VR;var qR=[" ","Enter","ArrowUp","ArrowDown"],YR=[" ","Enter"],Al="Select",[tc,nc,GR]=Ry(Al),[Lr]=Ia(Al,[GR,qy]),ac=qy(),[XR,Fa]=Lr(Al),[PR,QR]=Lr(Al),Wy=n=>{const{__scopeSelect:l,children:o,open:i,defaultOpen:u,onOpenChange:d,value:f,defaultValue:h,onValueChange:y,dir:p,name:x,autoComplete:g,disabled:w,required:C,form:N}=n,E=ac(l),[T,R]=v.useState(null),[A,M]=v.useState(null),[k,$]=v.useState(!1),G=_f(p),[B,V]=Ar({prop:i,defaultProp:u??!1,onChange:d,caller:Al}),[ae,oe]=Ar({prop:f,defaultProp:h,onChange:y,caller:Al}),pe=v.useRef(null),me=T?N||!!T.closest("form"):!0,[ue,de]=v.useState(new Set),re=Array.from(ue).map(O=>O.props.value).join(";");return m.jsx(LR,{...E,children:m.jsxs(XR,{required:C,scope:l,trigger:T,onTriggerChange:R,valueNode:A,onValueNodeChange:M,valueNodeHasChildren:k,onValueNodeHasChildrenChange:$,contentId:Ga(),value:ae,onValueChange:oe,open:B,onOpenChange:V,dir:G,triggerPointerDownPosRef:pe,disabled:w,children:[m.jsx(tc.Provider,{scope:l,children:m.jsx(PR,{scope:n.__scopeSelect,onNativeOptionAdd:v.useCallback(O=>{de(Y=>new Set(Y).add(O))},[]),onNativeOptionRemove:v.useCallback(O=>{de(Y=>{const F=new Set(Y);return F.delete(O),F})},[]),children:o})}),me?m.jsxs(Eb,{"aria-hidden":!0,required:C,tabIndex:-1,name:x,autoComplete:g,value:ae,onChange:O=>oe(O.target.value),disabled:w,form:N,children:[ae===void 0?m.jsx("option",{value:""}):null,Array.from(ue)]},re):null]})})};Wy.displayName=Al;var eb="SelectTrigger",tb=v.forwardRef((n,l)=>{const{__scopeSelect:o,disabled:i=!1,...u}=n,d=ac(o),f=Fa(eb,o),h=f.disabled||i,y=Ze(l,f.onTriggerChange),p=nc(o),x=v.useRef("touch"),[g,w,C]=Cb(E=>{const T=p().filter(M=>!M.disabled),R=T.find(M=>M.value===f.value),A=Tb(T,E,R);A!==void 0&&f.onValueChange(A.value)}),N=E=>{h||(f.onOpenChange(!0),C()),E&&(f.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})};return m.jsx(UR,{asChild:!0,...d,children:m.jsx(Le.button,{type:"button",role:"combobox","aria-controls":f.contentId,"aria-expanded":f.open,"aria-required":f.required,"aria-autocomplete":"none",dir:f.dir,"data-state":f.open?"open":"closed",disabled:h,"data-disabled":h?"":void 0,"data-placeholder":Nb(f.value)?"":void 0,...u,ref:y,onClick:Me(u.onClick,E=>{E.currentTarget.focus(),x.current!=="mouse"&&N(E)}),onPointerDown:Me(u.onPointerDown,E=>{x.current=E.pointerType;const T=E.target;T.hasPointerCapture(E.pointerId)&&T.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(N(E),E.preventDefault())}),onKeyDown:Me(u.onKeyDown,E=>{const T=g.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&w(E.key),!(T&&E.key===" ")&&qR.includes(E.key)&&(N(),E.preventDefault())})})})});tb.displayName=eb;var nb="SelectValue",ab=v.forwardRef((n,l)=>{const{__scopeSelect:o,className:i,style:u,children:d,placeholder:f="",...h}=n,y=Fa(nb,o),{onValueNodeHasChildrenChange:p}=y,x=d!==void 0,g=Ze(l,y.onValueNodeChange);return Rt(()=>{p(x)},[p,x]),m.jsx(Le.span,{...h,ref:g,style:{pointerEvents:"none"},children:Nb(y.value)?m.jsx(m.Fragment,{children:f}):d})});ab.displayName=nb;var KR="SelectIcon",lb=v.forwardRef((n,l)=>{const{__scopeSelect:o,children:i,...u}=n;return m.jsx(Le.span,{"aria-hidden":!0,...u,ref:l,children:i||"▼"})});lb.displayName=KR;var ZR="SelectPortal",rb=n=>m.jsx(xf,{asChild:!0,...n});rb.displayName=ZR;var _l="SelectContent",ob=v.forwardRef((n,l)=>{const o=Fa(_l,n.__scopeSelect),[i,u]=v.useState();if(Rt(()=>{u(new DocumentFragment)},[]),!o.open){const d=i;return d?Po.createPortal(m.jsx(ib,{scope:n.__scopeSelect,children:m.jsx(tc.Slot,{scope:n.__scopeSelect,children:m.jsx("div",{children:n.children})})}),d):null}return m.jsx(sb,{...n,ref:l})});ob.displayName=_l;var bn=10,[ib,Ja]=Lr(_l),IR="SelectContentImpl",FR=qo("SelectContent.RemoveScroll"),sb=v.forwardRef((n,l)=>{const{__scopeSelect:o,position:i="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:d,onPointerDownOutside:f,side:h,sideOffset:y,align:p,alignOffset:x,arrowPadding:g,collisionBoundary:w,collisionPadding:C,sticky:N,hideWhenDetached:E,avoidCollisions:T,...R}=n,A=Fa(_l,o),[M,k]=v.useState(null),[$,G]=v.useState(null),B=Ze(l,W=>k(W)),[V,ae]=v.useState(null),[oe,pe]=v.useState(null),me=nc(o),[ue,de]=v.useState(!1),re=v.useRef(!1);v.useEffect(()=>{if(M)return ty(M)},[M]),P0();const O=v.useCallback(W=>{const[le,...ie]=me().map(ve=>ve.ref.current),[we]=ie.slice(-1),Ee=document.activeElement;for(const ve of W)if(ve===Ee||(ve==null||ve.scrollIntoView({block:"nearest"}),ve===le&&$&&($.scrollTop=0),ve===we&&$&&($.scrollTop=$.scrollHeight),ve==null||ve.focus(),document.activeElement!==Ee))return},[me,$]),Y=v.useCallback(()=>O([V,M]),[O,V,M]);v.useEffect(()=>{ue&&Y()},[ue,Y]);const{onOpenChange:F,triggerPointerDownPosRef:se}=A;v.useEffect(()=>{if(M){let W={x:0,y:0};const le=we=>{var Ee,ve;W={x:Math.abs(Math.round(we.pageX)-(((Ee=se.current)==null?void 0:Ee.x)??0)),y:Math.abs(Math.round(we.pageY)-(((ve=se.current)==null?void 0:ve.y)??0))}},ie=we=>{W.x<=10&&W.y<=10?we.preventDefault():M.contains(we.target)||F(!1),document.removeEventListener("pointermove",le),se.current=null};return se.current!==null&&(document.addEventListener("pointermove",le),document.addEventListener("pointerup",ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",le),document.removeEventListener("pointerup",ie,{capture:!0})}}},[M,F,se]),v.useEffect(()=>{const W=()=>F(!1);return window.addEventListener("blur",W),window.addEventListener("resize",W),()=>{window.removeEventListener("blur",W),window.removeEventListener("resize",W)}},[F]);const[J,j]=Cb(W=>{const le=me().filter(Ee=>!Ee.disabled),ie=le.find(Ee=>Ee.ref.current===document.activeElement),we=Tb(le,W,ie);we&&setTimeout(()=>we.ref.current.focus())}),X=v.useCallback((W,le,ie)=>{const we=!re.current&&!ie;(A.value!==void 0&&A.value===le||we)&&(ae(W),we&&(re.current=!0))},[A.value]),Q=v.useCallback(()=>M==null?void 0:M.focus(),[M]),ee=v.useCallback((W,le,ie)=>{const we=!re.current&&!ie;(A.value!==void 0&&A.value===le||we)&&pe(W)},[A.value]),te=i==="popper"?Id:cb,I=te===Id?{side:h,sideOffset:y,align:p,alignOffset:x,arrowPadding:g,collisionBoundary:w,collisionPadding:C,sticky:N,hideWhenDetached:E,avoidCollisions:T}:{};return m.jsx(ib,{scope:o,content:M,viewport:$,onViewportChange:G,itemRefCallback:X,selectedItem:V,onItemLeave:Q,itemTextRefCallback:ee,focusSelectedItem:Y,selectedItemText:oe,position:i,isPositioned:ue,searchRef:J,children:m.jsx(Sf,{as:FR,allowPinchZoom:!0,children:m.jsx(bf,{asChild:!0,trapped:A.open,onMountAutoFocus:W=>{W.preventDefault()},onUnmountAutoFocus:Me(u,W=>{var le;(le=A.trigger)==null||le.focus({preventScroll:!0}),W.preventDefault()}),children:m.jsx(yf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:W=>W.preventDefault(),onDismiss:()=>A.onOpenChange(!1),children:m.jsx(te,{role:"listbox",id:A.contentId,"data-state":A.open?"open":"closed",dir:A.dir,onContextMenu:W=>W.preventDefault(),...R,...I,onPlaced:()=>de(!0),ref:B,style:{display:"flex",flexDirection:"column",outline:"none",...R.style},onKeyDown:Me(R.onKeyDown,W=>{const le=W.ctrlKey||W.altKey||W.metaKey;if(W.key==="Tab"&&W.preventDefault(),!le&&W.key.length===1&&j(W.key),["ArrowUp","ArrowDown","Home","End"].includes(W.key)){let we=me().filter(Ee=>!Ee.disabled).map(Ee=>Ee.ref.current);if(["ArrowUp","End"].includes(W.key)&&(we=we.slice().reverse()),["ArrowUp","ArrowDown"].includes(W.key)){const Ee=W.target,ve=we.indexOf(Ee);we=we.slice(ve+1)}setTimeout(()=>O(we)),W.preventDefault()}})})})})})})});sb.displayName=IR;var JR="SelectItemAlignedPosition",cb=v.forwardRef((n,l)=>{const{__scopeSelect:o,onPlaced:i,...u}=n,d=Fa(_l,o),f=Ja(_l,o),[h,y]=v.useState(null),[p,x]=v.useState(null),g=Ze(l,B=>x(B)),w=nc(o),C=v.useRef(!1),N=v.useRef(!0),{viewport:E,selectedItem:T,selectedItemText:R,focusSelectedItem:A}=f,M=v.useCallback(()=>{if(d.trigger&&d.valueNode&&h&&p&&E&&T&&R){const B=d.trigger.getBoundingClientRect(),V=p.getBoundingClientRect(),ae=d.valueNode.getBoundingClientRect(),oe=R.getBoundingClientRect();if(d.dir!=="rtl"){const Ee=oe.left-V.left,ve=ae.left-Ee,Ye=B.left-ve,ke=B.width+Ye,yt=Math.max(ke,V.width),tn=window.innerWidth-bn,Yt=Tv(ve,[bn,Math.max(bn,tn-yt)]);h.style.minWidth=ke+"px",h.style.left=Yt+"px"}else{const Ee=V.right-oe.right,ve=window.innerWidth-ae.right-Ee,Ye=window.innerWidth-B.right-ve,ke=B.width+Ye,yt=Math.max(ke,V.width),tn=window.innerWidth-bn,Yt=Tv(ve,[bn,Math.max(bn,tn-yt)]);h.style.minWidth=ke+"px",h.style.right=Yt+"px"}const pe=w(),me=window.innerHeight-bn*2,ue=E.scrollHeight,de=window.getComputedStyle(p),re=parseInt(de.borderTopWidth,10),O=parseInt(de.paddingTop,10),Y=parseInt(de.borderBottomWidth,10),F=parseInt(de.paddingBottom,10),se=re+O+ue+F+Y,J=Math.min(T.offsetHeight*5,se),j=window.getComputedStyle(E),X=parseInt(j.paddingTop,10),Q=parseInt(j.paddingBottom,10),ee=B.top+B.height/2-bn,te=me-ee,I=T.offsetHeight/2,W=T.offsetTop+I,le=re+O+W,ie=se-le;if(le<=ee){const Ee=pe.length>0&&T===pe[pe.length-1].ref.current;h.style.bottom="0px";const ve=p.clientHeight-E.offsetTop-E.offsetHeight,Ye=Math.max(te,I+(Ee?Q:0)+ve+Y),ke=le+Ye;h.style.height=ke+"px"}else{const Ee=pe.length>0&&T===pe[0].ref.current;h.style.top="0px";const Ye=Math.max(ee,re+E.offsetTop+(Ee?X:0)+I)+ie;h.style.height=Ye+"px",E.scrollTop=le-ee+E.offsetTop}h.style.margin=`${bn}px 0`,h.style.minHeight=J+"px",h.style.maxHeight=me+"px",i==null||i(),requestAnimationFrame(()=>C.current=!0)}},[w,d.trigger,d.valueNode,h,p,E,T,R,d.dir,i]);Rt(()=>M(),[M]);const[k,$]=v.useState();Rt(()=>{p&&$(window.getComputedStyle(p).zIndex)},[p]);const G=v.useCallback(B=>{B&&N.current===!0&&(M(),A==null||A(),N.current=!1)},[M,A]);return m.jsx(eA,{scope:o,contentWrapper:h,shouldExpandOnScrollRef:C,onScrollButtonChange:G,children:m.jsx("div",{ref:y,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:m.jsx(Le.div,{...u,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});cb.displayName=JR;var WR="SelectPopperPosition",Id=v.forwardRef((n,l)=>{const{__scopeSelect:o,align:i="start",collisionPadding:u=bn,...d}=n,f=ac(o);return m.jsx(BR,{...f,...d,ref:l,align:i,collisionPadding:u,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)"}})});Id.displayName=WR;var[eA,Bf]=Lr(_l,{}),Fd="SelectViewport",ub=v.forwardRef((n,l)=>{const{__scopeSelect:o,nonce:i,...u}=n,d=Ja(Fd,o),f=Bf(Fd,o),h=Ze(l,d.onViewportChange),y=v.useRef(0);return m.jsxs(m.Fragment,{children:[m.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}),m.jsx(tc.Slot,{scope:o,children:m.jsx(Le.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:Me(u.onScroll,p=>{const x=p.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:w}=f;if(w!=null&&w.current&&g){const C=Math.abs(y.current-x.scrollTop);if(C>0){const N=window.innerHeight-bn*2,E=parseFloat(g.style.minHeight),T=parseFloat(g.style.height),R=Math.max(E,T);if(R<N){const A=R+C,M=Math.min(N,A),k=A-M;g.style.height=M+"px",g.style.bottom==="0px"&&(x.scrollTop=k>0?k:0,g.style.justifyContent="flex-end")}}}y.current=x.scrollTop})})})]})});ub.displayName=Fd;var db="SelectGroup",[tA,nA]=Lr(db),aA=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,u=Ga();return m.jsx(tA,{scope:o,id:u,children:m.jsx(Le.div,{role:"group","aria-labelledby":u,...i,ref:l})})});aA.displayName=db;var fb="SelectLabel",mb=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,u=nA(fb,o);return m.jsx(Le.div,{id:u.id,...i,ref:l})});mb.displayName=fb;var zs="SelectItem",[lA,hb]=Lr(zs),pb=v.forwardRef((n,l)=>{const{__scopeSelect:o,value:i,disabled:u=!1,textValue:d,...f}=n,h=Fa(zs,o),y=Ja(zs,o),p=h.value===i,[x,g]=v.useState(d??""),[w,C]=v.useState(!1),N=Ze(l,A=>{var M;return(M=y.itemRefCallback)==null?void 0:M.call(y,A,i,u)}),E=Ga(),T=v.useRef("touch"),R=()=>{u||(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 m.jsx(lA,{scope:o,value:i,disabled:u,textId:E,isSelected:p,onItemTextChange:v.useCallback(A=>{g(M=>M||((A==null?void 0:A.textContent)??"").trim())},[]),children:m.jsx(tc.ItemSlot,{scope:o,value:i,disabled:u,textValue:x,children:m.jsx(Le.div,{role:"option","aria-labelledby":E,"data-highlighted":w?"":void 0,"aria-selected":p&&w,"data-state":p?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...f,ref:N,onFocus:Me(f.onFocus,()=>C(!0)),onBlur:Me(f.onBlur,()=>C(!1)),onClick:Me(f.onClick,()=>{T.current!=="mouse"&&R()}),onPointerUp:Me(f.onPointerUp,()=>{T.current==="mouse"&&R()}),onPointerDown:Me(f.onPointerDown,A=>{T.current=A.pointerType}),onPointerMove:Me(f.onPointerMove,A=>{var M;T.current=A.pointerType,u?(M=y.onItemLeave)==null||M.call(y):T.current==="mouse"&&A.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Me(f.onPointerLeave,A=>{var M;A.currentTarget===document.activeElement&&((M=y.onItemLeave)==null||M.call(y))}),onKeyDown:Me(f.onKeyDown,A=>{var k;((k=y.searchRef)==null?void 0:k.current)!==""&&A.key===" "||(YR.includes(A.key)&&R(),A.key===" "&&A.preventDefault())})})})})});pb.displayName=zs;var Ho="SelectItemText",gb=v.forwardRef((n,l)=>{const{__scopeSelect:o,className:i,style:u,...d}=n,f=Fa(Ho,o),h=Ja(Ho,o),y=hb(Ho,o),p=QR(Ho,o),[x,g]=v.useState(null),w=Ze(l,R=>g(R),y.onItemTextChange,R=>{var A;return(A=h.itemTextRefCallback)==null?void 0:A.call(h,R,y.value,y.disabled)}),C=x==null?void 0:x.textContent,N=v.useMemo(()=>m.jsx("option",{value:y.value,disabled:y.disabled,children:C},y.value),[y.disabled,y.value,C]),{onNativeOptionAdd:E,onNativeOptionRemove:T}=p;return Rt(()=>(E(N),()=>T(N)),[E,T,N]),m.jsxs(m.Fragment,{children:[m.jsx(Le.span,{id:y.textId,...d,ref:w}),y.isSelected&&f.valueNode&&!f.valueNodeHasChildren?Po.createPortal(d.children,f.valueNode):null]})});gb.displayName=Ho;var vb="SelectItemIndicator",yb=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n;return hb(vb,o).isSelected?m.jsx(Le.span,{"aria-hidden":!0,...i,ref:l}):null});yb.displayName=vb;var Jd="SelectScrollUpButton",bb=v.forwardRef((n,l)=>{const o=Ja(Jd,n.__scopeSelect),i=Bf(Jd,n.__scopeSelect),[u,d]=v.useState(!1),f=Ze(l,i.onScrollButtonChange);return Rt(()=>{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]),u?m.jsx(Sb,{...n,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:y}=o;h&&y&&(h.scrollTop=h.scrollTop-y.offsetHeight)}}):null});bb.displayName=Jd;var Wd="SelectScrollDownButton",xb=v.forwardRef((n,l)=>{const o=Ja(Wd,n.__scopeSelect),i=Bf(Wd,n.__scopeSelect),[u,d]=v.useState(!1),f=Ze(l,i.onScrollButtonChange);return Rt(()=>{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]),u?m.jsx(Sb,{...n,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:y}=o;h&&y&&(h.scrollTop=h.scrollTop+y.offsetHeight)}}):null});xb.displayName=Wd;var Sb=v.forwardRef((n,l)=>{const{__scopeSelect:o,onAutoScroll:i,...u}=n,d=Ja("SelectScrollButton",o),f=v.useRef(null),h=nc(o),y=v.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return v.useEffect(()=>()=>y(),[y]),Rt(()=>{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]),m.jsx(Le.div,{"aria-hidden":!0,...u,ref:l,style:{flexShrink:0,...u.style},onPointerDown:Me(u.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(i,50))}),onPointerMove:Me(u.onPointerMove,()=>{var p;(p=d.onItemLeave)==null||p.call(d),f.current===null&&(f.current=window.setInterval(i,50))}),onPointerLeave:Me(u.onPointerLeave,()=>{y()})})}),rA="SelectSeparator",wb=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n;return m.jsx(Le.div,{"aria-hidden":!0,...i,ref:l})});wb.displayName=rA;var ef="SelectArrow",oA=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,u=ac(o),d=Fa(ef,o),f=Ja(ef,o);return d.open&&f.position==="popper"?m.jsx(HR,{...u,...i,ref:l}):null});oA.displayName=ef;var iA="SelectBubbleInput",Eb=v.forwardRef(({__scopeSelect:n,value:l,...o},i)=>{const u=v.useRef(null),d=Ze(i,u),f=Fy(l);return v.useEffect(()=>{const h=u.current;if(!h)return;const y=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(y,"value").set;if(f!==l&&x){const g=new Event("change",{bubbles:!0});x.call(h,l),h.dispatchEvent(g)}},[f,l]),m.jsx(Le.select,{...o,style:{...Jy,...o.style},ref:d,defaultValue:l})});Eb.displayName=iA;function Nb(n){return n===""||n===void 0}function Cb(n){const l=Pa(n),o=v.useRef(""),i=v.useRef(0),u=v.useCallback(f=>{const h=o.current+f;l(h),(function y(p){o.current=p,window.clearTimeout(i.current),p!==""&&(i.current=window.setTimeout(()=>y(""),1e3))})(h)},[l]),d=v.useCallback(()=>{o.current="",window.clearTimeout(i.current)},[]);return v.useEffect(()=>()=>window.clearTimeout(i.current),[]),[o,u,d]}function Tb(n,l,o){const u=l.length>1&&Array.from(l).every(p=>p===l[0])?l[0]:l,d=o?n.indexOf(o):-1;let f=sA(n,Math.max(d,0));u.length===1&&(f=f.filter(p=>p!==o));const y=f.find(p=>p.textValue.toLowerCase().startsWith(u.toLowerCase()));return y!==o?y:void 0}function sA(n,l){return n.map((o,i)=>n[(l+i)%n.length])}var cA=Wy,Rb=tb,uA=ab,dA=lb,fA=rb,Ab=ob,mA=ub,_b=mb,jb=pb,hA=gb,pA=yb,Mb=bb,Ob=xb,Db=wb;const kb=cA,zb=uA,Hf=v.forwardRef(({className:n,children:l,...o},i)=>m.jsxs(Rb,{ref:i,className:ce("flex h-10 w-full items-center justify-between rounded-[16px] border border-input/85 bg-background/72 px-3 py-2 text-sm shadow-sm ring-offset-background transition-all duration-200 placeholder:text-muted-foreground focus:border-primary/45 focus:bg-background/90 focus:outline-none focus:ring-2 focus:ring-ring/45 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n),...o,children:[l,m.jsx(dA,{asChild:!0,children:m.jsx(Qs,{className:"h-4 w-4 opacity-50"})})]}));Hf.displayName=Rb.displayName;const Lb=v.forwardRef(({className:n,...l},o)=>m.jsx(Mb,{ref:o,className:ce("flex cursor-default items-center justify-center py-1",n),...l,children:m.jsx(_E,{className:"h-4 w-4"})}));Lb.displayName=Mb.displayName;const Ub=v.forwardRef(({className:n,...l},o)=>m.jsx(Ob,{ref:o,className:ce("flex cursor-default items-center justify-center py-1",n),...l,children:m.jsx(Qs,{className:"h-4 w-4"})}));Ub.displayName=Ob.displayName;const Vf=v.forwardRef(({className:n,children:l,position:o="popper",...i},u)=>m.jsx(fA,{children:m.jsxs(Ab,{ref:u,className:ce("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-[18px] border border-border/70 bg-popover/96 text-popover-foreground shadow-[0_20px_70px_-36px_rgba(0,0,0,0.45)] backdrop-blur-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:o,...i,children:[m.jsx(Lb,{}),m.jsx(mA,{className:ce("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:l}),m.jsx(Ub,{})]})}));Vf.displayName=Ab.displayName;const gA=v.forwardRef(({className:n,...l},o)=>m.jsx(_b,{ref:o,className:ce("py-1.5 pl-8 pr-2 text-sm font-semibold",n),...l}));gA.displayName=_b.displayName;const Nr=v.forwardRef(({className:n,children:l,...o},i)=>m.jsxs(jb,{ref:i,className:ce("relative flex w-full cursor-default select-none items-center rounded-[12px] py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent/80 focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...o,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(pA,{children:m.jsx(mf,{className:"h-4 w-4"})})}),m.jsx(hA,{children:l})]}));Nr.displayName=jb.displayName;const vA=v.forwardRef(({className:n,...l},o)=>m.jsx(Db,{ref:o,className:ce("-mx-1 my-1 h-px bg-muted",n),...l}));vA.displayName=Db.displayName;var Hd="rovingFocusGroup.onEntryFocus",yA={bubbles:!1,cancelable:!0},Ko="RovingFocusGroup",[tf,Bb,bA]=Ry(Ko),[xA,Hb]=Ia(Ko,[bA]),[SA,wA]=xA(Ko),Vb=v.forwardRef((n,l)=>m.jsx(tf.Provider,{scope:n.__scopeRovingFocusGroup,children:m.jsx(tf.Slot,{scope:n.__scopeRovingFocusGroup,children:m.jsx(EA,{...n,ref:l})})}));Vb.displayName=Ko;var EA=v.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:u=!1,dir:d,currentTabStopId:f,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:y,onEntryFocus:p,preventScrollOnEntryFocus:x=!1,...g}=n,w=v.useRef(null),C=Ze(l,w),N=_f(d),[E,T]=Ar({prop:f,defaultProp:h??null,onChange:y,caller:Ko}),[R,A]=v.useState(!1),M=Pa(p),k=Bb(o),$=v.useRef(!1),[G,B]=v.useState(0);return v.useEffect(()=>{const V=w.current;if(V)return V.addEventListener(Hd,M),()=>V.removeEventListener(Hd,M)},[M]),m.jsx(SA,{scope:o,orientation:i,dir:N,loop:u,currentTabStopId:E,onItemFocus:v.useCallback(V=>T(V),[T]),onItemShiftTab:v.useCallback(()=>A(!0),[]),onFocusableItemAdd:v.useCallback(()=>B(V=>V+1),[]),onFocusableItemRemove:v.useCallback(()=>B(V=>V-1),[]),children:m.jsx(Le.div,{tabIndex:R||G===0?-1:0,"data-orientation":i,...g,ref:C,style:{outline:"none",...n.style},onMouseDown:Me(n.onMouseDown,()=>{$.current=!0}),onFocus:Me(n.onFocus,V=>{const ae=!$.current;if(V.target===V.currentTarget&&ae&&!R){const oe=new CustomEvent(Hd,yA);if(V.currentTarget.dispatchEvent(oe),!oe.defaultPrevented){const pe=k().filter(O=>O.focusable),me=pe.find(O=>O.active),ue=pe.find(O=>O.id===E),re=[me,ue,...pe].filter(Boolean).map(O=>O.ref.current);Yb(re,x)}}$.current=!1}),onBlur:Me(n.onBlur,()=>A(!1))})})}),$b="RovingFocusGroupItem",qb=v.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:u=!1,tabStopId:d,children:f,...h}=n,y=Ga(),p=d||y,x=wA($b,o),g=x.currentTabStopId===p,w=Bb(o),{onFocusableItemAdd:C,onFocusableItemRemove:N,currentTabStopId:E}=x;return v.useEffect(()=>{if(i)return C(),()=>N()},[i,C,N]),m.jsx(tf.ItemSlot,{scope:o,id:p,focusable:i,active:u,children:m.jsx(Le.span,{tabIndex:g?0:-1,"data-orientation":x.orientation,...h,ref:l,onMouseDown:Me(n.onMouseDown,T=>{i?x.onItemFocus(p):T.preventDefault()}),onFocus:Me(n.onFocus,()=>x.onItemFocus(p)),onKeyDown:Me(n.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){x.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const R=TA(T,x.orientation,x.dir);if(R!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let M=w().filter(k=>k.focusable).map(k=>k.ref.current);if(R==="last")M.reverse();else if(R==="prev"||R==="next"){R==="prev"&&M.reverse();const k=M.indexOf(T.currentTarget);M=x.loop?RA(M,k+1):M.slice(k+1)}setTimeout(()=>Yb(M))}}),children:typeof f=="function"?f({isCurrentTabStop:g,hasTabStop:E!=null}):f})})});qb.displayName=$b;var NA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function CA(n,l){return l!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function TA(n,l,o){const i=CA(n.key,o);if(!(l==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(l==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return NA[i]}function Yb(n,l=!1){const o=document.activeElement;for(const i of n)if(i===o||(i.focus({preventScroll:l}),document.activeElement!==o))return}function RA(n,l){return n.map((o,i)=>n[(l+i)%n.length])}var AA=Vb,_A=qb,lc="Tabs",[jA]=Ia(lc,[Hb]),Gb=Hb(),[MA,$f]=jA(lc),Xb=v.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,onValueChange:u,defaultValue:d,orientation:f="horizontal",dir:h,activationMode:y="automatic",...p}=n,x=_f(h),[g,w]=Ar({prop:i,onChange:u,defaultProp:d??"",caller:lc});return m.jsx(MA,{scope:o,baseId:Ga(),value:g,onValueChange:w,orientation:f,dir:x,activationMode:y,children:m.jsx(Le.div,{dir:x,"data-orientation":f,...p,ref:l})})});Xb.displayName=lc;var Pb="TabsList",Qb=v.forwardRef((n,l)=>{const{__scopeTabs:o,loop:i=!0,...u}=n,d=$f(Pb,o),f=Gb(o);return m.jsx(AA,{asChild:!0,...f,orientation:d.orientation,dir:d.dir,loop:i,children:m.jsx(Le.div,{role:"tablist","aria-orientation":d.orientation,...u,ref:l})})});Qb.displayName=Pb;var Kb="TabsTrigger",Zb=v.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,disabled:u=!1,...d}=n,f=$f(Kb,o),h=Gb(o),y=Jb(f.baseId,i),p=Wb(f.baseId,i),x=i===f.value;return m.jsx(_A,{asChild:!0,...h,focusable:!u,active:x,children:m.jsx(Le.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":p,"data-state":x?"active":"inactive","data-disabled":u?"":void 0,disabled:u,id:y,...d,ref:l,onMouseDown:Me(n.onMouseDown,g=>{!u&&g.button===0&&g.ctrlKey===!1?f.onValueChange(i):g.preventDefault()}),onKeyDown:Me(n.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&f.onValueChange(i)}),onFocus:Me(n.onFocus,()=>{const g=f.activationMode!=="manual";!x&&!u&&g&&f.onValueChange(i)})})})});Zb.displayName=Kb;var Ib="TabsContent",Fb=v.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,forceMount:u,children:d,...f}=n,h=$f(Ib,o),y=Jb(h.baseId,i),p=Wb(h.baseId,i),x=i===h.value,g=v.useRef(x);return v.useEffect(()=>{const w=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(w)},[]),m.jsx(Dr,{present:u||x,children:({present:w})=>m.jsx(Le.div,{"data-state":x?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":y,hidden:!w,id:p,tabIndex:0,...f,ref:l,style:{...n.style,animationDuration:g.current?"0s":void 0},children:w&&d})})});Fb.displayName=Ib;function Jb(n,l){return`${n}-trigger-${l}`}function Wb(n,l){return`${n}-content-${l}`}var OA=Xb,ex=Qb,tx=Zb,nx=Fb;const DA=OA,ax=v.forwardRef(({className:n,...l},o)=>m.jsx(ex,{ref:o,className:ce("inline-flex h-10 items-center justify-center rounded-[18px] bg-muted/72 p-1 text-muted-foreground shadow-inner shadow-background/40",n),...l}));ax.displayName=ex.displayName;const Cs=v.forwardRef(({className:n,...l},o)=>m.jsx(tx,{ref:o,className:ce("inline-flex items-center justify-center whitespace-nowrap rounded-[14px] px-3 py-1.5 text-sm font-semibold ring-offset-background transition-all duration-200 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary/12 data-[state=active]:text-primary data-[state=active]:shadow-[0_10px_28px_-18px_hsl(var(--primary)/0.85)] data-[state=active]:ring-1 data-[state=active]:ring-primary/22",n),...l}));Cs.displayName=tx.displayName;const Ls=v.forwardRef(({className:n,...l},o)=>m.jsx(nx,{ref:o,className:ce("mt-2 ring-offset-background data-[state=inactive]:hidden focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",n),...l}));Ls.displayName=nx.displayName;var lx="AlertDialog",[kA]=Ia(lx,[ay]),ma=ay(),rx=n=>{const{__scopeAlertDialog:l,...o}=n,i=ma(l);return m.jsx(by,{...i,...o,modal:!0})};rx.displayName=lx;var zA="AlertDialogTrigger",ox=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ma(o);return m.jsx(xy,{...u,...i,ref:l})});ox.displayName=zA;var LA="AlertDialogPortal",ix=n=>{const{__scopeAlertDialog:l,...o}=n,i=ma(l);return m.jsx(Sy,{...i,...o})};ix.displayName=LA;var UA="AlertDialogOverlay",sx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ma(o);return m.jsx(Cf,{...u,...i,ref:l})});sx.displayName=UA;var Rr="AlertDialogContent",[BA,HA]=kA(Rr),VA=JC("AlertDialogContent"),cx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,children:i,...u}=n,d=ma(o),f=v.useRef(null),h=Ze(l,f),y=v.useRef(null);return m.jsx(h5,{contentName:Rr,titleName:ux,docsSlug:"alert-dialog",children:m.jsx(BA,{scope:o,cancelRef:y,children:m.jsxs(Tf,{role:"alertdialog",...d,...u,ref:h,onOpenAutoFocus:Me(u.onOpenAutoFocus,p=>{var x;p.preventDefault(),(x=y.current)==null||x.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[m.jsx(VA,{children:i}),m.jsx(qA,{contentRef:f})]})})})});cx.displayName=Rr;var ux="AlertDialogTitle",dx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ma(o);return m.jsx(Rf,{...u,...i,ref:l})});dx.displayName=ux;var fx="AlertDialogDescription",mx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ma(o);return m.jsx(Af,{...u,...i,ref:l})});mx.displayName=fx;var $A="AlertDialogAction",hx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ma(o);return m.jsx(Is,{...u,...i,ref:l})});hx.displayName=$A;var px="AlertDialogCancel",gx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,{cancelRef:u}=HA(px,o),d=ma(o),f=Ze(l,u);return m.jsx(Is,{...d,...i,ref:f})});gx.displayName=px;var qA=({contentRef:n})=>{const l=`\`${Rr}\` requires a description for the component to be accessible for screen reader users.
296
-
297
- You can add a description to the \`${Rr}\` by passing a \`${fx}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
298
-
299
- 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 \`${Rr}\`. 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.
300
-
301
- For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return v.useEffect(()=>{var i;document.getElementById((i=n.current)==null?void 0:i.getAttribute("aria-describedby"))||console.warn(l)},[l,n]),null},YA=rx,GA=ox,XA=ix,vx=sx,yx=cx,bx=hx,xx=gx,Sx=dx,wx=mx;const nf=YA,af=GA,PA=XA,Ex=v.forwardRef(({className:n,...l},o)=>m.jsx(vx,{className:ce("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n),...l,ref:o}));Ex.displayName=vx.displayName;const Us=v.forwardRef(({className:n,...l},o)=>m.jsxs(PA,{children:[m.jsx(Ex,{}),m.jsx(yx,{ref:o,className:ce("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-[22px] border bg-background p-6 shadow-[0_34px_110px_-54px_rgba(0,0,0,0.55)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n),...l})]}));Us.displayName=yx.displayName;const Bs=({className:n,...l})=>m.jsx("div",{className:ce("flex flex-col space-y-2 text-center sm:text-left",n),...l});Bs.displayName="AlertDialogHeader";const Hs=({className:n,...l})=>m.jsx("div",{className:ce("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...l});Hs.displayName="AlertDialogFooter";const Vs=v.forwardRef(({className:n,...l},o)=>m.jsx(Sx,{ref:o,className:ce("text-lg font-semibold",n),...l}));Vs.displayName=Sx.displayName;const $s=v.forwardRef(({className:n,...l},o)=>m.jsx(wx,{ref:o,className:ce("text-sm text-muted-foreground",n),...l}));$s.displayName=wx.displayName;const qs=v.forwardRef(({className:n,...l},o)=>m.jsx(bx,{ref:o,className:ce(vf(),n),...l}));qs.displayName=bx.displayName;const Ys=v.forwardRef(({className:n,...l},o)=>m.jsx(xx,{ref:o,className:ce(vf({variant:"outline"}),"mt-2 sm:mt-0",n),...l}));Ys.displayName=xx.displayName;var rc="Checkbox",[QA]=Ia(rc),[KA,qf]=QA(rc);function ZA(n){const{__scopeCheckbox:l,checked:o,children:i,defaultChecked:u,disabled:d,form:f,name:h,onCheckedChange:y,required:p,value:x="on",internal_do_not_use_render:g}=n,[w,C]=Ar({prop:o,defaultProp:u??!1,onChange:y,caller:rc}),[N,E]=v.useState(null),[T,R]=v.useState(null),A=v.useRef(!1),M=N?!!f||!!N.closest("form"):!0,k={checked:w,disabled:d,setChecked:C,control:N,setControl:E,name:h,form:f,value:x,hasConsumerStoppedPropagationRef:A,required:p,defaultChecked:Xa(u)?!1:u,isFormControl:M,bubbleInput:T,setBubbleInput:R};return m.jsx(KA,{scope:l,...k,children:IA(g)?g(k):i})}var Nx="CheckboxTrigger",Cx=v.forwardRef(({__scopeCheckbox:n,onKeyDown:l,onClick:o,...i},u)=>{const{control:d,value:f,disabled:h,checked:y,required:p,setControl:x,setChecked:g,hasConsumerStoppedPropagationRef:w,isFormControl:C,bubbleInput:N}=qf(Nx,n),E=Ze(u,x),T=v.useRef(y);return v.useEffect(()=>{const R=d==null?void 0:d.form;if(R){const A=()=>g(T.current);return R.addEventListener("reset",A),()=>R.removeEventListener("reset",A)}},[d,g]),m.jsx(Le.button,{type:"button",role:"checkbox","aria-checked":Xa(y)?"mixed":y,"aria-required":p,"data-state":jx(y),"data-disabled":h?"":void 0,disabled:h,value:f,...i,ref:E,onKeyDown:Me(l,R=>{R.key==="Enter"&&R.preventDefault()}),onClick:Me(o,R=>{g(A=>Xa(A)?!0:!A),N&&C&&(w.current=R.isPropagationStopped(),w.current||R.stopPropagation())})})});Cx.displayName=Nx;var Yf=v.forwardRef((n,l)=>{const{__scopeCheckbox:o,name:i,checked:u,defaultChecked:d,required:f,disabled:h,value:y,onCheckedChange:p,form:x,...g}=n;return m.jsx(ZA,{__scopeCheckbox:o,checked:u,defaultChecked:d,disabled:h,required:f,onCheckedChange:p,name:i,form:x,value:y,internal_do_not_use_render:({isFormControl:w})=>m.jsxs(m.Fragment,{children:[m.jsx(Cx,{...g,ref:l,__scopeCheckbox:o}),w&&m.jsx(_x,{__scopeCheckbox:o})]})})});Yf.displayName=rc;var Tx="CheckboxIndicator",Rx=v.forwardRef((n,l)=>{const{__scopeCheckbox:o,forceMount:i,...u}=n,d=qf(Tx,o);return m.jsx(Dr,{present:i||Xa(d.checked)||d.checked===!0,children:m.jsx(Le.span,{"data-state":jx(d.checked),"data-disabled":d.disabled?"":void 0,...u,ref:l,style:{pointerEvents:"none",...n.style}})})});Rx.displayName=Tx;var Ax="CheckboxBubbleInput",_x=v.forwardRef(({__scopeCheckbox:n,...l},o)=>{const{control:i,hasConsumerStoppedPropagationRef:u,checked:d,defaultChecked:f,required:h,disabled:y,name:p,value:x,form:g,bubbleInput:w,setBubbleInput:C}=qf(Ax,n),N=Ze(o,C),E=Fy(d),T=Vy(i);v.useEffect(()=>{const A=w;if(!A)return;const M=window.HTMLInputElement.prototype,$=Object.getOwnPropertyDescriptor(M,"checked").set,G=!u.current;if(E!==d&&$){const B=new Event("click",{bubbles:G});A.indeterminate=Xa(d),$.call(A,Xa(d)?!1:d),A.dispatchEvent(B)}},[w,E,d,u]);const R=v.useRef(Xa(d)?!1:d);return m.jsx(Le.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??R.current,required:h,disabled:y,name:p,value:x,form:g,...l,tabIndex:-1,ref:N,style:{...l.style,...T,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});_x.displayName=Ax;function IA(n){return typeof n=="function"}function Xa(n){return n==="indeterminate"}function jx(n){return Xa(n)?"indeterminate":n?"checked":"unchecked"}const Mx=v.forwardRef(({className:n,...l},o)=>m.jsx(Yf,{ref:o,className:ce("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",n),...l,children:m.jsx(Rx,{className:ce("flex items-center justify-center text-current"),children:m.jsx(mf,{className:"h-3.5 w-3.5"})})}));Mx.displayName=Yf.displayName;const Ox=v.forwardRef(({className:n,type:l,...o},i)=>m.jsx("input",{type:l,className:ce("flex h-10 w-full rounded-[16px] border border-input/85 bg-background/72 px-3 py-2 text-sm shadow-sm ring-offset-background transition-all duration-200 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground/75 focus-visible:border-primary/45 focus-visible:bg-background/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/45 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n),ref:i,...o}));Ox.displayName="Input";const Bv=["queued","running"];function FA(n){return n.map(l=>`${l.id}:${l.name}`).join("\0")}function JA(n){return n==="claude"||n==="codex"||n==="copilot"}function Dx(n){var o;if(n.kind!=="agent.upgrade")return null;const l=(o=n.payload)==null?void 0:o.agent;return JA(l)?`${n.nodeId}:${l}`:null}function WA(n){return n.status==="succeeded"||n.status==="failed"}async function kx(n,l={}){const o=l.getOperation??Pw,i=l.pollIntervalMs??2e3,u=l.timeoutMs??24e4,d=Date.now()+u;let f=n;for(;!WA(f)&&Date.now()<d;)await t_(i),f=await o(n.id);return f}async function e_(n,l=Qw){const o=new Set(n),i=await Promise.all(Bv.map(d=>l({kind:"agent.upgrade",status:d}))),u=new Map;for(const d of i.flat()){if(!Bv.includes(d.status)||o.size>0&&!o.has(d.nodeId))continue;const f=Dx(d);if(!f)continue;const h=u.get(f);(!h||d.updatedAt>h.updatedAt)&&u.set(f,d)}return u}function t_(n){return new Promise(l=>setTimeout(l,n))}const n_=1500,a_=1e3,l_=9e4;async function r_(n={}){const l=n.fetchHealth??o_,o=n.initialDelayMs??n_,i=n.pollIntervalMs??a_,u=n.previousPid,d=n.reload??(()=>window.location.reload()),f=n.sleep??s_,h=n.timeoutMs??l_,y=Date.now()+h;let p=!1;for(o>0&&await f(o);Date.now()<=y;){const x=i_(await l());if(!x.ok){p=!0,await f(i);continue}if(u===void 0||x.pid!==void 0&&x.pid!==u||p)return d(),!0;await f(i)}return!1}async function o_(){try{const n=await fetch("/api/system/health",{cache:"no-store"}),l=await n.json().catch(()=>null),o=l&&typeof l=="object"&&typeof l.pid=="number"?l.pid:void 0;return{ok:n.ok,pid:o}}catch{return!1}}function i_(n){return typeof n=="boolean"?{ok:n}:n}function s_(n){return new Promise(l=>window.setTimeout(l,n))}function c_(n,l=!0){return l?(n==null?void 0:n.restartMode)==="development"?"Restart dev runtime":n!=null&&n.updateAvailable?"Restart to update":"Restart runtime":n!=null&&n.updateAvailable?"Restart follower to update":"Restart follower"}function u_({checkedLabel:n,disableAuthDefault:l,endpoint:o,isLiveLocalNode:i,nodeId:u,nodeName:d,onRefresh:f,pid:h,transportType:y,update:p,workDir:x}){const g=c_(p,i),[w,C]=v.useState(null),[N,E]=v.useState(()=>Hv({disableAuthDefault:l,endpoint:o,nodeName:d,transportType:y,workDir:x})),[T,R]=v.useState(!1),[A,M]=v.useState(!1),[k,$]=v.useState(!1);v.useEffect(()=>{E(Hv({disableAuthDefault:l,endpoint:o,nodeName:d,transportType:y,workDir:x}))},[l,o,d,y,x]);async function G(){if(!u||T||A)return;const oe=p.updateAvailable?"update":"restart",pe=m_(N);if(N.port.trim()&&(pe==null?void 0:pe.port)===void 0){ut.error("Runtime restart port must be a positive integer");return}const me=pe?{reason:oe,startArgs:pe}:{reason:oe};R(!0);try{if(i){const O=await Yw(me);C({...O,pid:O.pid??h,status:"accepted"}),ut.info(`Restarting ${d} from a detached helper. PID ${O.pid??h??"unknown"} will not stay attached to the original terminal window; follow ${O.logPath} for launch output.`),r_({previousPid:O.pid??h}).then(Y=>{Y||(R(!1),ut.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout. Refresh the page after the node finishes starting."))}).catch(Y=>{R(!1),ut.error(Y instanceof Error?Y.message:"Runtime restart recovery failed")});return}const ue=await Zw(u,me);C({operationId:ue.id,pid:h,status:ue.status}),ut.info(`Restart requested on ${d}. Operation ${Vd(ue.id)} will hand off to a detached process, so the new runtime will not stay attached to the original terminal window.`);const de=await kx(ue,{timeoutMs:6e4}),re=f_(de);C({command:re==null?void 0:re.command,logPath:re==null?void 0:re.logPath,mode:re==null?void 0:re.mode,operationId:de.id,pid:(re==null?void 0:re.pid)??h,status:de.status}),de.status==="succeeded"?(await(f==null?void 0:f()),ut.success(`Restart handoff accepted on ${d}. Follow ${(re==null?void 0:re.logPath)??"the node restart log"} for launch output.`)):de.status==="failed"?ut.error(de.error??`Restart failed on ${d}`):ut.info(`Restart operation ${Vd(de.id)} is still ${de.status}. More details will update after the node reports back.`),R(!1)}catch(ue){R(!1),ut.error(ue instanceof Error?ue.message:"Runtime restart failed")}}async function B(){if(!(!i||T||A)){M(!0);try{const oe=await Gw();ut.info(`Stopping Meshy process ${oe.pid}`)}catch(oe){M(!1),ut.error(oe instanceof Error?oe.message:"Runtime stop failed")}}}const V=T?"restarting":A?"stopping":(w==null?void 0:w.status)??"idle",ae=p.restartMode==="development";return m.jsxs("div",{className:"rounded-xl border border-border/70 bg-background/70 overflow-hidden",children:[m.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2 border-b border-border/50",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Rs,{className:"h-3.5 w-3.5 text-primary shrink-0"}),m.jsxs("div",{children:[m.jsx("div",{className:"text-[11px] font-semibold text-foreground leading-tight",children:"Runtime"}),m.jsx("div",{className:"text-[10px] text-muted-foreground leading-tight",children:ae?"Development launcher":`Latest ${p.latestVersion??"—"}`})]})]}),m.jsx("div",{className:"flex items-center gap-1.5",children:m.jsx(mt,{variant:p.updateAvailable?"default":"outline",className:"rounded-full border-border/70 bg-background/60 font-mono text-[10px] px-2 py-0.5",children:ae?"dev":p.updateAvailable?`→ ${p.latestVersion}`:"current"})})]}),m.jsxs("div",{className:"grid grid-cols-2 divide-x divide-border/50 border-b border-border/50",children:[m.jsxs("div",{className:"px-3 py-1.5",children:[m.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:"PID"}),m.jsx("div",{className:"mt-0.5 font-mono text-[11px] text-foreground",children:h??"—"})]}),m.jsxs("div",{className:"px-3 py-1.5",children:[m.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:"Status"}),m.jsx("div",{className:"mt-0.5 text-[11px] text-foreground capitalize",children:V})]})]}),m.jsxs("div",{className:"flex items-center justify-between gap-2 px-3 py-2",children:[m.jsxs("div",{className:"text-[10px] text-muted-foreground",children:["Checked ",n]}),m.jsxs("div",{className:"flex items-center gap-1.5",children:[i&&m.jsxs(nf,{children:[m.jsx(af,{asChild:!0,children:m.jsxs(Vn,{type:"button",size:"sm",variant:"ghost",disabled:T||A,className:"h-7 rounded-lg px-2 text-[11px] text-muted-foreground hover:text-destructive hover:bg-destructive/10",children:[m.jsx(IE,{className:ce("mr-1 h-3.5 w-3.5",A&&"animate-pulse")}),A?"Stopping":"Stop"]})}),m.jsxs(Us,{className:"max-w-[22rem] rounded-xl gap-2 p-4",children:[m.jsxs(Bs,{className:"space-y-1",children:[m.jsx(Vs,{className:"text-sm",children:"Stop runtime?"}),m.jsx($s,{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."})]}),m.jsxs(Hs,{className:"gap-1 pt-0 sm:space-x-1",children:[m.jsx(Ys,{className:"h-7 rounded-lg px-2 text-[11px]",children:"Cancel"}),m.jsx(qs,{className:"h-7 rounded-lg px-2 text-[11px] bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:()=>void B(),children:"Stop runtime"})]})]})]}),m.jsxs(nf,{children:[m.jsx(af,{asChild:!0,children:m.jsxs(Vn,{type:"button",size:"sm",variant:p.updateAvailable?"default":"outline",disabled:!u||T||A,className:"h-7 rounded-lg px-2 text-[11px]",children:[m.jsx(WE,{className:ce("mr-1 h-3.5 w-3.5",T&&"animate-spin")}),T?"Restarting…":g]})}),m.jsxs(Us,{className:"max-w-[28rem] gap-3 rounded-xl p-4",children:[m.jsxs(Bs,{className:"space-y-1",children:[m.jsxs(Vs,{className:"text-sm",children:[g,"?"]}),m.jsxs($s,{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."]})]}),m.jsx(d_,{value:N,onChange:E}),m.jsxs(Hs,{className:"gap-1 pt-0 sm:space-x-1",children:[m.jsx(Ys,{className:"h-7 rounded-lg px-2 text-[11px]",children:"Cancel"}),m.jsx(qs,{className:"h-7 rounded-lg px-2 text-[11px]",onClick:()=>void G(),children:g})]})]})]})]})]}),m.jsxs("div",{className:"border-t border-border/50",children:[m.jsxs("button",{type:"button",onClick:()=>$(oe=>!oe),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:[m.jsxs("span",{className:"flex items-center gap-1.5",children:[m.jsx(S0,{className:"h-3 w-3"}),"Restart details"]}),m.jsx(Qs,{className:ce("h-3 w-3 transition-transform duration-150",k&&"rotate-180")})]}),k&&m.jsxs("div",{className:"border-t border-border/50 bg-muted/20 px-3 py-2 space-y-1",children:[m.jsx(Nl,{label:"Current PID",value:h===void 0?"—":String(h),mono:h!==void 0}),m.jsx(Nl,{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}),m.jsx(Nl,{label:"Operation",value:w!=null&&w.operationId?Vd(w.operationId):"Local direct request",mono:!!(w!=null&&w.operationId)}),m.jsx(Nl,{label:"Status",value:(w==null?void 0:w.status)??(T?"requested":"idle")}),m.jsx(Nl,{label:"Launcher",value:(w==null?void 0:w.command)??"Available after restart",mono:!!(w!=null&&w.command)}),m.jsx(Nl,{label:"Log",value:(w==null?void 0:w.logPath)??"Available after restart",mono:!!(w!=null&&w.logPath)}),m.jsx(Nl,{label:"Terminal",value:"New process is detached from original terminal"})]})]}),p.detail&&m.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 d_({onChange:n,value:l}){const o=(i,u)=>{n({...l,[i]:u})};return m.jsxs("div",{className:"rounded-lg border border-border/70 bg-muted/30 p-3 space-y-3",children:[m.jsx("div",{className:"text-[10px] font-semibold uppercase tracking-[0.16em] text-muted-foreground",children:"Startup arguments"}),m.jsxs("div",{className:"grid gap-2 sm:grid-cols-2",children:[m.jsx(zo,{label:"HTTP port",value:l.port,onChange:i=>o("port",i),inputMode:"numeric"}),m.jsx(zo,{label:"Node name",value:l.name,onChange:i=>o("name",i)}),m.jsx(zo,{label:"Join endpoint",value:l.join,onChange:i=>o("join",i),className:"sm:col-span-2"}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("label",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:"Transport"}),m.jsxs(kb,{value:l.transport,onValueChange:i=>o("transport",zx(i)),children:[m.jsx(Hf,{className:"h-7 rounded-md border-border/70 bg-background/70 px-2 text-[10px]",children:m.jsx(zb,{placeholder:"Transport"})}),m.jsxs(Vf,{children:[m.jsx(Nr,{className:"py-1 text-[11px]",value:"inherit",children:"current / default"}),m.jsx(Nr,{className:"py-1 text-[11px]",value:"direct",children:"direct"}),m.jsx(Nr,{className:"py-1 text-[11px]",value:"devtunnel",children:"devtunnel"}),m.jsx(Nr,{className:"py-1 text-[11px]",value:"tailscale",children:"tailscale"})]})]})]}),m.jsx(zo,{label:"Working directory",value:l.workDir,onChange:i=>o("workDir",i)}),m.jsx(zo,{label:"Config path",value:l.config,onChange:i=>o("config",i),className:"sm:col-span-2"}),m.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:[m.jsx(Mx,{className:"h-3.5 w-3.5",checked:l.disableAuth,onCheckedChange:i=>n({...l,disableAuth:i===!0,disableAuthKnown:!0})}),"Disable auth"]})]})]})}function zo({className:n,inputMode:l,label:o,onChange:i,value:u}){return m.jsxs("label",{className:ce("space-y-1",n),children:[m.jsx("span",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:o}),m.jsx(Ox,{className:"h-7 rounded-md px-2 text-[10px]",inputMode:l,value:u,onChange:d=>i(d.target.value)})]})}function Nl({label:n,value:l,mono:o=!1}){return m.jsxs("div",{className:"flex items-start justify-between gap-3 text-[10px]",children:[m.jsx("span",{className:"shrink-0 uppercase tracking-[0.14em] text-muted-foreground",children:n}),m.jsx("span",{className:ce("break-all text-right text-foreground",o&&"font-mono"),children:l})]})}function f_(n){const l=n.result;if(!l||typeof l!="object")return null;const o=l;return o.ok!==!0||typeof o.command!="string"||typeof o.logPath!="string"?null:{ok:!0,mode:o.mode==="package"?"package":"development",command:o.command,logPath:o.logPath,pid:typeof o.pid=="number"?o.pid:void 0}}function Hv(n){return{port:h_(n.endpoint),name:n.nodeName,join:"",transport:zx(n.transportType),workDir:n.workDir??"",config:"",disableAuth:n.disableAuthDefault===!0,disableAuthKnown:n.disableAuthDefault!==void 0}}function m_(n){const l={},o=Number(n.port.trim());return n.port.trim()&&Number.isInteger(o)&&o>0&&(l.port=o),n.name.trim()&&(l.name=n.name.trim()),n.join.trim()&&(l.join=n.join.trim()),n.transport!=="inherit"&&(l.transport=n.transport),n.workDir.trim()&&(l.workDir=n.workDir.trim()),n.config.trim()&&(l.config=n.config.trim()),n.disableAuthKnown&&(l.disableAuth=n.disableAuth),Object.keys(l).length>0?l:void 0}function zx(n){return n==="direct"||n==="devtunnel"||n==="tailscale"?n:"inherit"}function h_(n){if(!n)return"";try{return new URL(n).port||""}catch{return""}}function Vd(n){return n.length<=8?n:n.slice(0,8)}function p_(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 Sr({label:n,value:l,mono:o=!1}){return m.jsxs("div",{className:"min-w-0 rounded-lg border border-border/60 bg-background/65 px-2.5 py-1.5",children:[m.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:n}),m.jsx("div",{className:o?"mt-0.5 break-all font-mono text-[11px] text-foreground":"mt-0.5 break-all text-[11px] text-foreground",children:l})]})}function g_({formatDateTime:n,isLiveLocalNode:l,onRefresh:o,runtimeUpdate:i,selectedNode:u,viewInfo:d}){var h,y,p,x,g,w,C,N,E,T,R;const f=p_(d.packages);return m.jsxs(Ls,{value:"about","data-about-layout":"compact",className:"mt-0 space-y-2",children:[m.jsxs(Mn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Dn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(xE,{className:"h-3.5 w-3.5 text-primary"}),"Repository & runtime"]}),m.jsx(kn,{className:"text-[10px]",children:"Build source and runtime identity for this node."})]}),m.jsxs(zn,{className:"space-y-2 px-3 pb-2.5",children:[(h=d.repository)!=null&&h.url?m.jsxs("a",{href:d.repository.url,target:"_blank",rel:"noreferrer",className:"group flex min-w-0 items-center justify-between gap-2 rounded-lg border border-border/70 bg-background/70 px-2.5 py-1.5 text-[11px] text-foreground transition-colors hover:border-primary/40 hover:bg-primary/5",children:[m.jsx("span",{className:"truncate font-mono text-[10px]",children:d.repository.url}),m.jsx(VE,{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"})]}):m.jsx("div",{className:"rounded-lg border border-dashed border-border/70 bg-muted/20 px-2.5 py-1.5 text-[11px] text-muted-foreground",children:"Repository URL is unavailable in this runtime."}),m.jsxs("div",{className:"grid gap-1.5 sm:grid-cols-2 lg:grid-cols-3",children:[m.jsx(Sr,{label:"Branch",value:((y=d.repository)==null?void 0:y.branch)??"Unavailable",mono:!!((p=d.repository)!=null&&p.branch)}),m.jsx(Sr,{label:"Commit",value:((x=d.repository)==null?void 0:x.commit)??"Unavailable",mono:!!((g=d.repository)!=null&&g.commit)}),m.jsx(Sr,{label:"Runtime",value:`${d.packageName??"meshy"} ${d.version}`,mono:!0}),m.jsx(Sr,{label:"Node.js",value:((w=d.runtime)==null?void 0:w.nodeVersion)??"Unavailable",mono:!!((C=d.runtime)!=null&&C.nodeVersion)}),m.jsx(Sr,{label:"PID",value:d.runtime?String(d.runtime.pid):"Unavailable",mono:!!d.runtime}),m.jsx(Sr,{label:"Started",value:n((N=d.runtime)==null?void 0:N.startedAt)})]})]})]}),i&&m.jsx(u_,{checkedLabel:n(i.checkedAt),disableAuthDefault:((E=d.auth)==null?void 0:E.enabled)===void 0?void 0:d.auth.enabled===!1,endpoint:u.endpoint,isLiveLocalNode:l,nodeId:u.id,nodeName:u.name,onRefresh:o,pid:(T=d.runtime)==null?void 0:T.pid,transportType:u.transportType,update:i,workDir:((R=d.runtime)==null?void 0:R.workDir)??u.workDir}),m.jsxs(Mn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Dn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(GE,{className:"h-3.5 w-3.5 text-primary"}),"Package versions"]}),m.jsx(kn,{className:"text-[10px]",children:"Version snapshot for the packages most relevant to this dashboard session."})]}),m.jsx(zn,{"data-package-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:f.map(A=>{var M,k;return m.jsxs("div",{className:"grid gap-1.5 rounded-lg border border-border/60 bg-background/65 px-2.5 py-1.5 sm:grid-cols-[9rem_minmax(0,1fr)_auto] sm:items-center",children:[m.jsx("div",{className:"text-[11px] font-medium text-foreground",children:A.label}),m.jsx("div",{className:"min-w-0 truncate text-[10px] text-muted-foreground",children:(M=A.value)==null?void 0:M.name}),m.jsx(mt,{variant:"outline",className:"w-fit rounded-[11px] border-border/70 bg-background/60 font-mono text-[10px]",children:(k=A.value)==null?void 0:k.version})]},A.key)})})]})]})}function Lo({formatDateTime:n,name:l,status:o,statusVariant:i}){return m.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:[m.jsxs("div",{children:[m.jsx("div",{className:"text-[11px] font-medium text-foreground",children:l}),m.jsx("div",{className:"text-[10px] text-muted-foreground",children:n(o==null?void 0:o.checkedAt)})]}),m.jsxs("div",{className:"flex items-center gap-1.5",children:[typeof(o==null?void 0:o.authenticated)=="boolean"&&m.jsx(mt,{variant:o.authenticated?"default":"outline",className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:o.authenticated?"auth ok":"auth required"}),m.jsx(mt,{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 Ft(n){if(n==null||n==="")return"Unavailable";const l=new Date(n);return Number.isNaN(l.getTime())?"Unavailable":new Intl.DateTimeFormat(void 0,{dateStyle:"medium",timeStyle:"short"}).format(l)}function v_(n){const l=Math.max(0,Math.floor(n)),o=Math.floor(l/86400),i=Math.floor(l%86400/3600),u=Math.floor(l%3600/60);return o>0?`${o}d ${i}h`:i>0?`${i}h ${u}m`:`${u}m`}function Vv(n){if(n==null||Number.isNaN(n))return"Unavailable";const l=["B","KB","MB","GB","TB"];let o=n,i=0;for(;o>=1024&&i<l.length-1;)o/=1024,i+=1;return`${o.toFixed(o>=10||i===0?0:1)} ${l[i]}`}function Er(n){return n==="ok"?"default":n==="missing"||n==="install-failed"||n==="login-failed"?"destructive":n==="not-authenticated"||n==="unsupported-platform"?"outline":"secondary"}function y_(n){return n.available?m.jsxs(mt,{className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[m.jsx(Bo,{className:"h-3 w-3"}),"Available"]}):m.jsxs(mt,{variant:"destructive",className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[m.jsx(kE,{className:"h-3 w-3"}),"Unavailable"]})}function b_(n){return n.update?n.update.updateAvailable?m.jsxs(mt,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Update ",n.update.latestVersion]}):m.jsx(mt,{variant:"secondary",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:"Up to date"}):null}function x_(n){var o;const l=`npm install -g ${(o=n.update)==null?void 0:o.packageName}@latest`;return n.id==="claude"?`${l} --include=optional --ignore-scripts=false`:l}function S_(n){if(n.error)return n.error;const l=n.result;return(l==null?void 0:l.detail)??null}function Ke({label:n,value:l,mono:o=!1}){return m.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:[m.jsx("span",{className:"shrink-0 text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:n}),m.jsx("span",{className:ce("break-all text-right text-[11px] text-foreground",o&&"font-mono text-[11px]"),children:l})]})}function Uo({label:n,value:l,mono:o=!1,className:i}){return m.jsxs("div",{className:ce("min-w-0 space-y-0.5",i),children:[m.jsx("div",{className:"text-[9px] uppercase tracking-[0.16em] text-muted-foreground",children:n}),m.jsx("div",{className:ce("truncate text-[11px] text-foreground",o&&"font-mono",n==="Path"&&"break-all whitespace-normal"),children:l})]})}function w_({agent:n,nodeName:l,activeOperation:o,onUpgrade:i}){var h,y;const u=((h=n.update)==null?void 0:h.updateAvailable)===!0,d=b_(n),f=!!o;return m.jsxs("div",{className:"rounded-lg border border-border/60 bg-background/65 px-3 py-2.5 transition-colors hover:bg-background/85",children:[m.jsxs("div",{className:"grid gap-3 lg:grid-cols-[12rem_minmax(0,1fr)_auto] lg:items-start",children:[m.jsxs("div",{className:"min-w-0 space-y-1.5",children:[m.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] font-semibold text-foreground",children:[m.jsx(g0,{className:"h-3.5 w-3.5 shrink-0 text-primary"}),m.jsx("span",{className:"truncate",children:n.label})]}),m.jsxs("div",{className:"truncate text-[10px] text-muted-foreground",children:["Command: ",m.jsx("span",{className:"font-mono text-[10px]",children:n.command})]}),m.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[y_(n),n.metadataStatus&&m.jsx(mt,{variant:Er(n.metadataStatus),className:"rounded-full px-2 py-0 text-[10px] uppercase tracking-[0.14em]",children:n.metadataStatus})]})]}),m.jsxs("div",{className:"grid min-w-0 gap-x-4 gap-y-1.5 sm:grid-cols-2",children:[m.jsx(Uo,{label:"Version",value:n.version??"Unavailable",mono:!!n.version}),n.update&&m.jsx(Uo,{label:"Latest",value:n.update.latestVersion??"Unavailable",mono:!!n.update.latestVersion}),m.jsx(Uo,{label:"Checked",value:Ft(n.checkedAt)}),n.update&&m.jsx(Uo,{label:"Update check",value:Ft(n.update.checkedAt)}),m.jsx(Uo,{label:"Path",value:n.path??"Not on PATH",mono:!!n.path,className:"sm:col-span-2"})]}),m.jsx("div",{className:"flex items-start justify-start lg:justify-end",children:o?m.jsxs(mt,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Upgrade ",o.status]}):u?m.jsxs(nf,{children:[m.jsx(af,{asChild:!0,children:m.jsx("button",{type:"button",disabled:f,className:"rounded-full transition duration-150 hover:-translate-y-0.5 hover:scale-[1.03] hover:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/45 focus-visible:ring-offset-2 active:translate-y-0 active:scale-95 disabled:cursor-not-allowed disabled:opacity-60 disabled:hover:translate-y-0 disabled:hover:scale-100 disabled:hover:shadow-none",children:d})}),m.jsxs(Us,{children:[m.jsxs(Bs,{children:[m.jsxs(Vs,{children:["Upgrade ",n.label,"?"]}),m.jsxs($s,{children:["This runs ",x_(n)," on ",l,". Remote nodes execute the command on the remote machine."]})]}),m.jsxs(Hs,{children:[m.jsx(Ys,{children:"Cancel"}),m.jsx(qs,{onClick:()=>i(n),children:"Upgrade"})]})]})]}):d})]}),((y=n.update)==null?void 0:y.detail)&&m.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&&m.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 E_(n,l){var o;return(o=n==null?void 0:n.nodes)!=null&&o.length?n.nodes:l?[l]:[]}function N_(n,l){var i;if(l&&n.id===l.nodeId)return l;const o=n.settingsSnapshot;return{...n,nodeId:n.id,version:(o==null?void 0:o.version)??"Unavailable",packageName:o==null?void 0:o.packageName,uptime:(o==null?void 0:o.uptime)??0,localDashboardOrigin:((i=o==null?void 0:o.runtime)==null?void 0:i.localDashboardOrigin)??void 0,auth:o==null?void 0:o.auth,os:o==null?void 0:o.os,runtime:o==null?void 0:o.runtime,runtimeUpdate:o==null?void 0:o.runtimeUpdate,agents:o==null?void 0:o.agents,startupRequirements:o==null?void 0:o.startupRequirements,components:o==null?void 0:o.components,repository:o==null?void 0:o.repository,packages:o==null?void 0:o.packages}}function C_(n,l){return n.id===l?`${n.name} (this node)`:`${n.name} (${n.role})`}function T_(n){return n==="claude"?"Claude Code":n==="copilot"?"Copilot CLI":"Codex"}function R_(n){var o;const l=(o=n.payload)==null?void 0:o.agent;return l==="claude"||l==="codex"||l==="copilot"?l:null}function A_({cluster:n,systemInfo:l,sseConnected:o,initialSelectedNodeId:i,onRefresh:u}){var ae,oe,pe,me,ue,de,re,O,Y,F,se,J,j,X,Q,ee,te;const d=v.useMemo(()=>E_(n,l),[n,l]),[f,h]=v.useState(()=>{var I;return i??(l==null?void 0:l.nodeId)??((I=n==null?void 0:n.self)==null?void 0:I.id)??""}),[y,p]=v.useState(()=>new Map),x=v.useRef(new Set),g=v.useRef(new Set),w=(n==null?void 0:n.self)??l??d[0]??null,C=d.find(I=>I.id===f)??w,N=C?N_(C,l):null,E=!!(l&&C&&C.id===l.nodeId),T=E||!!(C!=null&&C.settingsSnapshot),R=N==null?void 0:N.runtimeUpdate,A=((ae=N==null?void 0:N.startupRequirements)==null?void 0:ae.components)??(N==null?void 0:N.components)??{},M=v.useMemo(()=>d.map(I=>I.id),[d]),k=M.join("\0"),$=FA(d),G=v.useMemo(()=>new Map(d.map(I=>[I.id,I.name])),[$]);v.useEffect(()=>{i&&M.includes(i)&&h(i)},[i,k]);const B=v.useCallback(async(I,W)=>{const le=Dx(I);if(!le||x.current.has(I.id))return;const ie=R_(I),we=(W==null?void 0:W.agentLabel)??(ie?T_(ie):"Agent"),Ee=(W==null?void 0:W.nodeName)??G.get(I.nodeId)??I.nodeId;x.current.add(I.id),p(ve=>new Map(ve).set(le,I));try{const ve=await kx(I);if(ve.status==="succeeded")await(u==null?void 0:u()),g.current.has(ve.id)||(ut.success(`${we} upgrade finished on ${Ee}`),g.current.add(ve.id));else if(ve.status==="failed")g.current.has(ve.id)||(ut.error(S_(ve)??`${we} upgrade failed`),g.current.add(ve.id));else{p(Ye=>new Map(Ye).set(le,ve)),ut.info(`${we} upgrade is still ${ve.status} on ${Ee}`);return}p(Ye=>{const ke=new Map(Ye),yt=ke.get(le);return(!yt||yt.id===ve.id)&&ke.delete(le),ke})}catch(ve){p(Ye=>{const ke=new Map(Ye),yt=ke.get(le);return(!yt||yt.id===I.id)&&ke.delete(le),ke}),ut.error(ve instanceof Error?ve.message:`${we} upgrade failed`)}finally{x.current.delete(I.id)}},[u,G]);v.useEffect(()=>{if(M.length===0)return;let I=!1;async function W(){let le;try{le=await e_(M)}catch{return}if(!I){p(ie=>{const we=new Map(ie);for(const[Ee,ve]of le)we.set(Ee,ve);return we});for(const ie of le.values())B(ie)}}return W(),()=>{I=!0}},[B,k]);async function V(I){if(C)try{const W=await Kw(C.id,I.id);ut.info(`${I.label} upgrade started on ${C.name}`),await B(W,{agentLabel:I.label,nodeName:C.name})}catch(W){ut.error(W instanceof Error?W.message:`${I.label} upgrade failed`)}}return!C||!N?m.jsx("div",{className:"rounded-2xl border border-dashed border-border/70 bg-muted/20 px-4 py-8 text-center text-[12px] text-muted-foreground",children:"Loading session metadata..."}):m.jsxs("div",{className:"space-y-3",children:[m.jsxs("section",{className:"relative mt-2 rounded-2xl border border-border/70 bg-[radial-gradient(circle_at_top_left,rgba(59,130,246,0.18),transparent_42%),radial-gradient(circle_at_bottom_right,rgba(16,185,129,0.12),transparent_32%),rgba(255,255,255,0.72)] p-3 shadow-[0_24px_90px_-54px_rgba(15,23,42,0.55)] dark:bg-[radial-gradient(circle_at_top_left,rgba(59,130,246,0.18),transparent_42%),radial-gradient(circle_at_bottom_right,rgba(16,185,129,0.12),transparent_32%),rgba(10,15,23,0.78)]",children:[!E&&m.jsxs(mt,{variant:"outline",className:"absolute right-3 top-2.5 rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em] whitespace-nowrap",children:["Updated ",Ft((oe=C.settingsSnapshot)==null?void 0:oe.collectedAt)]}),m.jsxs("div",{className:"flex flex-col gap-2 md:flex-row md:items-end md:justify-between",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[m.jsxs("span",{className:"flex items-center gap-1.5 rounded-full border border-border/70 bg-background/75 px-2 py-0.5 text-[10px] text-muted-foreground backdrop-blur",children:[m.jsx(V0,{status:C.status}),m.jsx("span",{className:"font-medium text-foreground",children:C.name})]}),m.jsx(lC,{role:C.role}),m.jsx(mt,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:C.transportType??N.transportType??"direct"}),m.jsx(mt,{variant:E?"default":"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:E?"Live local session":"Leader-synced snapshot"})]}),m.jsxs("div",{children:[m.jsx("div",{className:"text-[10px] uppercase tracking-[0.34em] text-muted-foreground",children:"Session"}),m.jsx("h3",{className:"mt-0.5 text-sm font-semibold tracking-tight text-foreground",children:"Node runtime"}),m.jsx("p",{className:"mt-0.5 text-[11px] text-muted-foreground",children:"Runtime environment, connectivity, and build metadata."})]}),d.length>1&&m.jsxs("div",{className:"w-48 space-y-1.5",children:[m.jsx("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"Inspect node"}),m.jsxs(kb,{value:C.id,onValueChange:h,children:[m.jsx(Hf,{className:"h-7 rounded-lg border-border/70 bg-background/70 text-[11px]",children:m.jsx(zb,{placeholder:"Choose a node"})}),m.jsx(Vf,{children:d.map(I=>m.jsx(Nr,{value:I.id,children:C_(I,l==null?void 0:l.nodeId)},I.id))})]})]})]}),m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsxs(mt,{variant:o?"default":"outline",className:"gap-1 rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:[m.jsx(b0,{className:"h-3 w-3"}),o?"Live link":"Reconnecting"]}),m.jsxs(mt,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:["Uptime ",v_(N.uptime)]})]})]})]}),!T&&m.jsx("div",{className:"rounded-xl border border-dashed border-border/70 bg-muted/20 px-3 py-2 text-[11px] text-muted-foreground",children:"This node has not synced its settings snapshot to the leader yet. Wait for the next keepalive and reopen the dialog if needed."}),m.jsxs(DA,{defaultValue:"session",className:"space-y-2",children:[m.jsxs(ax,{className:"h-auto flex-wrap rounded-xl border border-border/60 bg-muted/40 p-0.5",children:[m.jsx(Cs,{value:"session",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Session"}),m.jsx(Cs,{value:"access",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Access"}),m.jsx(Cs,{value:"about",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"About"})]}),m.jsxs(Ls,{value:"session",className:"mt-0 grid gap-2 xl:grid-cols-[1.15fr_0.85fr]",children:[m.jsxs(Mn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Dn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(tN,{className:"h-3.5 w-3.5 text-primary"}),"Selected node"]}),m.jsx(kn,{className:"text-[10px]",children:"Cluster role, identity, and node-scoped runtime state."})]}),m.jsxs(zn,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Ke,{label:"Node ID",value:N.nodeId,mono:!0}),m.jsx(Ke,{label:"Status",value:C.status}),m.jsx(Ke,{label:"Role",value:C.role}),m.jsx(Ke,{label:"Endpoint",value:C.endpoint,mono:!0}),m.jsx(Ke,{label:"Joined",value:Ft(C.joinedAt)}),m.jsx(Ke,{label:"Heartbeat",value:Ft(C.lastHeartbeat)}),m.jsx(Ke,{label:"Capabilities",value:C.capabilities.length>0?C.capabilities.join(", "):"None"})]})]}),m.jsxs(Mn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Dn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(BE,{className:"h-3.5 w-3.5 text-primary"}),"OS info"]}),m.jsx(kn,{className:"text-[10px]",children:"Host and resource details reported by the current process."})]}),m.jsxs(zn,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Ke,{label:"Host",value:((pe=N.os)==null?void 0:pe.hostname)??"Unavailable"}),m.jsx(Ke,{label:"Platform",value:N.os?`${N.os.platform} ${N.os.release}`:"Unavailable"}),m.jsx(Ke,{label:"Arch",value:((me=N.os)==null?void 0:me.arch)??"Unavailable"}),m.jsx(Ke,{label:"CPU",value:((ue=N.os)==null?void 0:ue.cpuModel)??"Unavailable"}),m.jsx(Ke,{label:"Cores",value:String(((de=N.os)==null?void 0:de.cpuCount)??"Unavailable")}),m.jsx(Ke,{label:"Memory",value:N.os?`${Vv(N.os.freeMemoryBytes)} free / ${Vv(N.os.totalMemoryBytes)} total`:"Unavailable"})]})]}),m.jsxs(Mn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)] xl:col-span-2",children:[m.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Dn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(g0,{className:"h-3.5 w-3.5 text-primary"}),"Available agents"]}),m.jsx(kn,{className:"text-[10px]",children:E?"Live command availability for runtime agents on this node.":"Most recent agent availability snapshot synced from this node."})]}),m.jsx(zn,{"data-agent-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:(N.agents??[]).map(I=>m.jsx(w_,{agent:I,nodeName:C.name,activeOperation:y.get(`${C.id}:${I.id}`),onUpgrade:V},I.id))})]})]}),m.jsxs(Ls,{value:"access",className:"mt-0 grid gap-2 xl:grid-cols-2",children:[m.jsxs(Mn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Dn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(EE,{className:"h-3.5 w-3.5 text-primary"}),"Access surface"]}),m.jsx(kn,{className:"text-[10px]",children:"How this node is exposed to the dashboard and other peers."})]}),m.jsxs(zn,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Ke,{label:"Transport",value:C.transportType??N.transportType??"direct"}),m.jsx(Ke,{label:"Node URL",value:C.endpoint,mono:!0}),m.jsx(Ke,{label:"Node tunnel",value:C.devtunnelEndpoint??"Disabled",mono:!!C.devtunnelEndpoint}),m.jsx(Ke,{label:"Dashboard URL",value:C.dashboardOrigin??N.localDashboardOrigin??"Unavailable",mono:!!(C.dashboardOrigin||N.localDashboardOrigin)}),m.jsx(Ke,{label:"Local dashboard",value:N.localDashboardOrigin??"Unavailable",mono:!!N.localDashboardOrigin})]})]}),m.jsxs(Mn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Dn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(rN,{className:"h-3.5 w-3.5 text-primary"}),"Auth"]}),m.jsx(kn,{className:"text-[10px]",children:"Current bearer-auth and trusted access posture."})]}),m.jsxs(zn,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Ke,{label:"Enabled",value:(re=N.auth)!=null&&re.enabled?"Yes":"No"}),m.jsx(Ke,{label:"Same tenant",value:(O=N.auth)!=null&&O.allowSameTenant?"Allowed":"Off"}),m.jsx(Ke,{label:"Allowed users",value:(Y=N.auth)!=null&&Y.allowedUsers.length?N.auth.allowedUsers.join(", "):"None"})]})]}),m.jsxs(Mn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Dn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(qE,{className:"h-3.5 w-3.5 text-primary"}),"Paths"]}),m.jsx(kn,{className:"text-[10px]",children:"Workspace and runtime paths currently used by this node."})]}),m.jsxs(zn,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Ke,{label:"Work dir",value:((F=N.runtime)==null?void 0:F.workDir)??N.workDir??"Unavailable",mono:!!(((se=N.runtime)==null?void 0:se.workDir)??N.workDir)}),m.jsx(Ke,{label:"Storage",value:((J=N.runtime)==null?void 0:J.storagePath)??"Unavailable",mono:!!((j=N.runtime)!=null&&j.storagePath)}),m.jsx(Ke,{label:"Process cwd",value:((X=N.runtime)==null?void 0:X.cwd)??"Unavailable",mono:!!((Q=N.runtime)!=null&&Q.cwd)}),m.jsx(Ke,{label:"Started",value:Ft((ee=N.runtime)==null?void 0:ee.startedAt)}),m.jsx(Ke,{label:"PID",value:N.runtime?String(N.runtime.pid):"Unavailable",mono:!!N.runtime})]})]}),m.jsxs(Mn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(On,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Dn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(Rs,{className:"h-3.5 w-3.5 text-primary"}),"Startup checks"]}),m.jsx(kn,{className:"text-[10px]",children:"Dependency preflight snapshot persisted during node startup."})]}),m.jsxs(zn,{className:"space-y-3 px-3 pb-2.5",children:[m.jsxs("div",{className:"rounded-xl border border-border/60 bg-background/70 px-3 py-2",children:[m.jsx("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"Last checked"}),m.jsx("div",{className:"mt-0.5 text-[11px] text-foreground",children:Ft((te=N.startupRequirements)==null?void 0:te.lastCheckedAt)})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(Lo,{formatDateTime:Ft,name:"Azure CLI",status:A.az,statusVariant:Er}),m.jsx(Lo,{formatDateTime:Ft,name:"DevTunnel",status:A.devtunnel,statusVariant:Er}),m.jsx(Lo,{formatDateTime:Ft,name:"Claude Code",status:A.claude,statusVariant:Er}),m.jsx(Lo,{formatDateTime:Ft,name:"Codex",status:A.codex,statusVariant:Er}),m.jsx(Lo,{formatDateTime:Ft,name:"Copilot CLI",status:A.copilot,statusVariant:Er})]})]})]})]}),m.jsx(g_,{formatDateTime:Ft,isLiveLocalNode:E,onRefresh:u,runtimeUpdate:R,selectedNode:C,viewInfo:N})]})]})}function __({initialSelectedNodeId:n,open:l,onOpenChange:o,showTrigger:i=!0}={}){const{cluster:u,systemInfo:d,sseConnected:f,refresh:h}=h0();return m.jsx(w5,{open:l,onOpenChange:o,showTrigger:i,children:m.jsx(A_,{cluster:u,systemInfo:d,sseConnected:f,initialSelectedNodeId:n,onRefresh:h})})}const fj="bypass",j_=[{value:"claudecode",label:"claudecode",supportsFollowUp:!0},{value:"codex",label:"codex",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"}],mj=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],hj=new Set(j_.filter(n=>n.supportsFollowUp).map(n=>n.value)),pj=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],gj=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],M_=new Set(["pending","assigned"]),O_=new Set(["running"]),D_=new Set(["completed","failed","cancelled"]);function vj(n,l){switch(l){case"running":return O_.has(n.status);case"waiting":return M_.has(n.status);case"closed":return D_.has(n.status);case"shared":return!!n.activeShare;case"archived":return n.status==="archived";case"active":default:return n.status!=="archived"}}function yj(n,l){if(l==="all")return!0;const o=n.conversationKind==="nativeSession";return l==="native"?o:!o}function bj(n,l){const o=l.trim().toLowerCase();return o?[n.title,n.description,n.id,n.agent,n.assignedTo??"",n.assignedNodeName??"",n.project??"",n.effectiveProjectPath??"",n.conversationKind==="nativeSession"?"native session":"meshy chat",n.activeShare?"shared conversation":""].some(i=>i.toLowerCase().includes(o)):!0}function k_(n,l,o){if(!n)return"unassigned";const i=l==null?void 0:l.find(u=>u.id===n);return(i==null?void 0:i.name)??o??n.slice(0,8)}function xj(n,l,o){return k_(n,l,o).toLowerCase()}function Sj(n,l,o){return!n.assignedTo||(o==null?void 0:o.id)===n.assignedTo?!0:(l==null?void 0:l.some(i=>i.id===n.assignedTo))??!1}function wj(n,l){return[...n].sort((o,i)=>o.id===l?-1:i.id===l?1:o.name.localeCompare(i.name))}function Ej(n){if(!n||typeof n!="object")return null;const l=n,o=l.createMode,i=o==="chat"||o==="native"?o:void 0;return{draftNewTask:l.draftNewTask===!0,returnRoute:typeof l.returnRoute=="string"?l.returnRoute:void 0,returnTaskId:typeof l.returnTaskId=="string"||l.returnTaskId===null?l.returnTaskId:void 0,createMode:i}}function Nj(n){switch(n){case"running":return"bg-amber-500";case"completed":return"bg-emerald-500";case"failed":return"bg-destructive";case"cancelled":case"archived":return"bg-slate-400";case"assigned":return"bg-teal-500";case"pending":default:return"bg-muted-foreground"}}function Cj(n){return n==="default workspace"?n:n.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??n}function Tj(n){const l=Date.now()-n;return l<6e4?"just now":l<36e5?`${Math.floor(l/6e4)}m`:l<864e5?`${Math.floor(l/36e5)}h`:`${Math.floor(l/864e5)}d`}function Rj(n){return new Date(n).toLocaleString()}function Aj(n){const l=Math.floor(n/1e3),o=Math.floor(l/3600),i=Math.floor(l%3600/60),u=l%60;return`${String(o).padStart(2,"0")}:${String(i).padStart(2,"0")}:${String(u).padStart(2,"0")}`}async function z_(n,l="Copied to clipboard"){var o,i,u;try{if((i=(o=globalThis.navigator)==null?void 0:o.clipboard)!=null&&i.writeText)return await globalThis.navigator.clipboard.writeText(n),ut.success(l),!0;const d=globalThis.document,f=(u=d==null?void 0:d.execCommand)==null?void 0:u.bind(d);if(!(d!=null&&d.body)||typeof d.createElement!="function"||typeof f!="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=f("copy");if(d.body.removeChild(h),p==null||p.focus(),!x)throw new Error("Clipboard access is unavailable");return ut.success(l),!0}catch(d){return ut.error(d instanceof Error?d.message:"Failed to copy"),!1}}function _j(n,l,o){const i=new Map;for(const d of n){const f=d.assignedTo??null,h=f??"__unassigned__",y=f?l.get(f)??d.assignedNodeName??f.slice(0,8):"Unassigned",p=d.effectiveProjectPath??d.project??"default workspace";i.has(h)||i.set(h,{nodeId:f,nodeName:y,dirMap:new Map});const x=i.get(h);x.dirMap.has(p)||x.dirMap.set(p,[]),x.dirMap.get(p).push(d)}const u=Array.from(i.values()).map(({nodeId:d,nodeName:f,dirMap:h})=>{const y=Array.from(h.entries()).map(([p,x])=>({path:p,tasks:x})).sort((p,x)=>x.tasks.length-p.tasks.length||p.path.localeCompare(x.path));return{nodeId:d,nodeName:f,dirs:y}});return u.sort((d,f)=>{if(o){if(d.nodeId===o)return-1;if(f.nodeId===o)return 1}return d.nodeId===null?1:f.nodeId===null?-1:d.nodeName.localeCompare(f.nodeName)}),u}const L_={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"},U_={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 B_(n){return n.split(".")[0]??"unknown"}function H_(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function wr(n,l){return(l==null?void 0:l.get(n))??n}function Lx(n,l){const o=n.data,i=o.operation;switch(n.type){case"node.joined":return`${o.name} joined the cluster`;case"node.left":return`${wr(o.nodeId,l)} left (${o.reason})`;case"node.status":return`${wr(o.nodeId,l)} is now ${o.status}`;case"node.operation.created":return`${i==null?void 0:i.kind} ${i==null?void 0:i.status} on ${wr(i==null?void 0:i.nodeId,l)}`;case"node.operation.updated":return`${i==null?void 0:i.kind} ${i==null?void 0:i.status} on ${wr(i==null?void 0:i.nodeId,l)}`;case"transport.changed":return`${wr(o.nodeId,l)} transport switched to ${o.transportType}`;case"task.created":return`"${o.title}" created`;case"task.assigned":return`task assigned to ${wr(o.nodeId,l)}`;case"task.status":return`task ${o.taskId.slice(0,8)} -> ${o.status}`;case"election.started":return`candidate ${o.candidateId.slice(0,8)} term ${o.term}`;case"election.complete":return`leader elected, term ${o.term}`;case"cluster.state":return`${o.nodeCount} nodes, term ${o.term}`;default:return JSON.stringify(o)}}function V_(n){return JSON.stringify(n,null,2)}function $_({events:n,maxHeight:l="400px",nodeNameById:o,onDismiss:i,density:u="default"}){if(n.length===0)return null;const d=u==="compact";return m.jsx("div",{className:"overflow-y-auto pr-1",style:{maxHeight:l},children:m.jsx("div",{className:"space-y-1.5",children:n.map(f=>{const h=B_(f.type);return m.jsx("div",{className:ce("transition-colors hover:bg-muted/30",d?"rounded-[7px] px-1 py-0.5":"rounded-lg px-1.5 py-1"),children:m.jsxs("div",{className:"space-y-1",children:[m.jsxs("div",{className:"flex items-start justify-between gap-1.5",children:[m.jsxs("div",{className:"flex flex-wrap items-center gap-1.5",children:[m.jsx("div",{className:ce("font-mono text-muted-foreground",d?"text-[8px]":"text-[9px]"),children:H_(f.timestamp)}),d?m.jsx("span",{className:ce("max-w-[8.5rem] truncate text-[7px] font-medium uppercase tracking-[0.08em] text-muted-foreground/70",U_[h]),children:f.type}):m.jsx(mt,{variant:"outline",className:ce("w-fit text-[9px] font-medium uppercase tracking-[0.14em] px-1.5 py-0",L_[h]),children:f.type})]}),m.jsxs("div",{className:"flex shrink-0 items-center gap-0.5",children:[m.jsx(Vn,{type:"button",variant:"ghost",size:"icon",className:ce("rounded-[8px] text-muted-foreground",d?"h-4 w-4":"h-5 w-5"),onClick:()=>void z_(V_(f),"Event copied"),"aria-label":`Copy ${f.type} event`,title:"Copy event",children:m.jsx(LE,{className:d?"h-2.5 w-2.5":"h-3 w-3"})}),i&&m.jsx(Vn,{type:"button",variant:"ghost",size:"icon",className:ce("rounded-[8px] text-muted-foreground hover:text-foreground",d?"h-4 w-4":"h-5 w-5"),onClick:()=>i(f.id),"aria-label":`Dismiss ${f.type} event`,title:"Dismiss event",children:m.jsx(w0,{className:d?"h-2.5 w-2.5":"h-3 w-3"})})]})]}),m.jsx("div",{className:"text-[9px] leading-snug text-foreground/85",children:Lx(f,o)})]})},f.id)})})})}const q_=["node.","election.","transport."],Y_="cluster.state";function G_(n){return n.type==="node.status"?!1:q_.some(l=>n.type.startsWith(l))}function X_(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function P_(n,l){return n?{time:X_(n.timestamp),text:Lx(n,l)}:null}function Q_(n){return n.transportType==="devtunnel"||!!n.devtunnelEndpoint}function K_(n){if(n.length===0)return"No node tunnel";const l=n.filter(u=>u.status==="offline").length;if(l>0)return`${l} offline`;const o=n.filter(u=>{var d;return((d=u.devtunnelHealth)==null?void 0:d.status)==="failed"}).length;if(o>0)return`${o} failed`;const i=n.filter(u=>{var d;return u.status!=="offline"&&((d=u.devtunnelHealth)==null?void 0:d.status)!=="healthy"}).length;return i>0?`${i} checking`:"Healthy"}function Z_(n,l){var u;const o=(l==null?void 0:l.get(n.id))??n.name??n.id;if(n.status==="offline")return{label:o,status:"offline"};const i=((u=n.devtunnelHealth)==null?void 0:u.status)??"checking";return{label:o,status:i}}function I_(n){if(n.length===0)return"No nodes";const l=n.filter(i=>i.status==="offline").length;if(l>0)return`${l} offline`;const o=n.filter(i=>i.status==="busy").length;return o>0?`${o} busy`:"Healthy"}function F_(n,l){return{label:(l==null?void 0:l.get(n.id))??n.name??n.id,status:n.status}}function J_({connected:n,events:l,nodes:o=[],nodeNameById:i,defaultOpen:u=!1}){const[d,f]=v.useState(u),[h,y]=v.useState(!0),[p,x]=v.useState(new Set),g=v.useRef(null),w=v.useMemo(()=>l.filter(k=>G_(k)&&!p.has(k.id)),[l,p]),C=v.useMemo(()=>l.find(k=>k.type===Y_)??w[0],[l,w]),N=v.useMemo(()=>P_(C,i),[C,i]),E=v.useMemo(()=>o.filter(Q_),[o]),T=E.some(k=>{var $;return k.status==="offline"||(($=k.devtunnelHealth)==null?void 0:$.status)==="failed"}),R=o.some(k=>k.status==="offline"),A=o.some(k=>k.status==="busy"),M=o.length>0;return v.useEffect(()=>{x(k=>{if(k.size===0)return k;const $=new Set(l.map(B=>B.id)),G=new Set(Array.from(k).filter(B=>$.has(B)));return G.size===k.size?k:G})},[l]),v.useEffect(()=>{if(!d)return;const k=G=>{var B;(B=g.current)!=null&&B.contains(G.target)||f(!1)},$=G=>{G.key==="Escape"&&f(!1)};return document.addEventListener("pointerdown",k),document.addEventListener("keydown",$),()=>{document.removeEventListener("pointerdown",k),document.removeEventListener("keydown",$)}},[d]),m.jsxs("div",{ref:g,className:"relative",children:[m.jsxs("button",{type:"button","aria-expanded":d,"aria-haspopup":"dialog",onClick:()=>f(k=>!k),className:ce("flex items-center gap-1.5 rounded-[16px] border px-2 py-1.5 text-[11px] shadow-sm transition-all sm:gap-2 sm:px-3 sm:py-2 sm:text-xs",n?"border-emerald-500/25 bg-emerald-500/8 text-muted-foreground hover:border-emerald-500/40 hover:bg-emerald-500/12":"border-destructive/25 bg-destructive/8 text-muted-foreground hover:border-destructive/40 hover:bg-destructive/12",d&&"shadow-[0_14px_40px_-26px_rgba(16,185,129,0.95)]"),title:n?"Live link connected":"Live link reconnecting",children:[m.jsx(b0,{className:ce("h-3.5 w-3.5",n?"text-emerald-500":"text-destructive")}),n?"Live link":"Reconnecting"]}),d&&m.jsxs("div",{role:"dialog","aria-label":"Live link connection events",className:"absolute right-0 top-[calc(100%+0.4rem)] z-50 w-[18rem] max-w-[calc(100vw-1.5rem)] overflow-hidden rounded-[18px] 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:[m.jsx("div",{className:"border-b border-border/60 bg-muted/25 px-2.5 py-1.5",children:m.jsxs("div",{className:"flex items-center justify-between gap-2",children:[m.jsxs("div",{className:"flex items-center gap-1.5",children:[n?m.jsx(Rs,{className:"h-3 w-3 text-emerald-500"}):m.jsx(dN,{className:"h-3 w-3 text-destructive"}),m.jsx("span",{className:"text-[10px] font-semibold text-foreground",children:"Live link"}),m.jsx("span",{className:"text-[9px] text-muted-foreground",children:n?"· SSE connected":"· reconnecting"})]}),m.jsx("div",{className:ce("rounded-[9px] 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"})]})}),m.jsxs("div",{className:"grid grid-cols-2 border-b border-border/60",children:[m.jsxs("div",{className:"border-r border-border/60 px-2.5 py-1.5",children:[m.jsx("div",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Events"}),m.jsx("div",{className:"mt-0.5 text-base font-semibold tracking-tight text-foreground",children:w.length})]}),m.jsxs("div",{className:"min-w-0 px-2.5 py-1.5",children:[m.jsx("div",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Latest"}),N?m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"mt-0.5 truncate text-[9px] leading-snug text-foreground/80",children:N.text}),m.jsx("div",{className:"font-mono text-[8px] text-muted-foreground/60",children:N.time})]}):m.jsx("div",{className:"mt-0.5 text-[8px] text-muted-foreground/50",children:"—"})]})]}),m.jsxs("div",{className:"border-b border-border/60 px-2.5 py-1.5",children:[m.jsxs("div",{className:"flex items-center justify-between gap-2",children:[m.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[R?m.jsx(us,{className:"h-3 w-3 shrink-0 text-destructive"}):A?m.jsx(Rs,{className:"h-3 w-3 shrink-0 text-amber-500"}):m.jsx(Bo,{className:ce("h-3 w-3 shrink-0",M?"text-emerald-500":"text-muted-foreground")}),m.jsx("span",{className:"text-[9px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Node health"})]}),m.jsx("span",{className:ce("shrink-0 rounded-[8px] border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",R?"border-destructive/30 bg-destructive/10 text-destructive":A?"border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300":M?"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:I_(o)})]}),o.length>0&&m.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:o.map(k=>{const{label:$,status:G}=F_(k,i),B=G==="offline",V=G==="busy";return m.jsxs("div",{"aria-label":`${$} ${G}`,className:ce("flex items-center justify-between gap-2 rounded-[7px] px-2 py-0.5",B?"bg-destructive/6":V?"bg-amber-500/6":"bg-emerald-500/5"),title:`${$} ${G}`,children:[m.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:$}),B?m.jsx(us,{className:"h-3 w-3 shrink-0 text-destructive"}):V?m.jsx(nv,{className:"h-3 w-3 shrink-0 text-amber-500"}):m.jsx(Bo,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},k.id)})})]}),E.length>0&&m.jsxs("div",{className:"border-b border-border/60 px-2.5 py-1.5",children:[m.jsxs("div",{className:"flex items-center justify-between gap-2",children:[m.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[T?m.jsx(us,{className:"h-3 w-3 shrink-0 text-destructive"}):m.jsx(Bo,{className:"h-3 w-3 shrink-0 text-emerald-500"}),m.jsx("span",{className:"text-[9px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"DevTunnel"})]}),m.jsx("span",{className:ce("shrink-0 rounded-[8px] border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",T?"border-destructive/30 bg-destructive/10 text-destructive":"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"),children:K_(E)})]}),m.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:E.map(k=>{var oe;const{label:$,status:G}=Z_(k,i),B=G==="failed"||G==="offline",V=G!=="healthy"&&G!=="failed"&&G!=="offline",ae=(oe=k.devtunnelHealth)!=null&&oe.reason?`${$} ${G}: ${k.devtunnelHealth.reason}`:`${$} ${G}`;return m.jsxs("div",{"aria-label":`${$} ${G}`,className:ce("flex items-center justify-between gap-2 rounded-[7px] px-2 py-0.5",B?"bg-destructive/6":V?"bg-muted/30":"bg-emerald-500/5"),title:ae,children:[m.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:$}),B?m.jsx(us,{className:"h-3 w-3 shrink-0 text-destructive"}):V?m.jsx(nv,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):m.jsx(Bo,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},k.id)})})]}),m.jsxs("div",{children:[m.jsxs("button",{type:"button",onClick:()=>y(k=>!k),className:"flex w-full items-center justify-between px-2.5 py-1.5 text-left hover:bg-muted/30",children:[m.jsxs("span",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:["Notifications ",w.length>0&&`(${w.length})`]}),h?m.jsx(Qs,{className:"h-3 w-3 text-muted-foreground"}):m.jsx(RE,{className:"h-3 w-3 text-muted-foreground"})]}),h&&m.jsx("div",{className:"px-2 pb-2",children:m.jsx($_,{events:w,maxHeight:"12rem",density:"compact",emptyTitle:"No connection events yet",emptyDescription:"Node, election, and system events will appear here.",nodeNameById:i,onDismiss:k=>x($=>new Set($).add(k))})})]}),m.jsxs("div",{className:"flex items-center justify-end gap-1 border-t border-border/60 px-2.5 py-1",children:[m.jsx(Vn,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-[9px] px-1.5 text-[9px]",onClick:()=>x(new Set(l.map(k=>k.id))),disabled:w.length===0,title:"Dismiss all notifications",children:"Dismiss all"}),m.jsx(Vn,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-[9px] px-1.5 text-[9px]",onClick:()=>f(!1),children:"Close"})]})]})]})}const Vo="finsight",Ux="default",W_=new Set(["light","dark","system"]),e3=new Set(["porcelain","warm","finsight","inshield","edge"]),Bx=v.createContext(null);function t3(n){const l=new URLSearchParams(n).get("theme");return Hx(l)?l:null}function n3(n){const l=new URLSearchParams(n).get("palette");return Gf(l)}function a3(){if(typeof document>"u")return null;const n=document.documentElement;return{theme:n.classList.contains("dark")?"dark":"light",palette:Gf(n.getAttribute("data-palette"))??Vo}}function jj(n,l=a3()){if(!l)return n;try{const o=/^[a-z][a-z\d+\-.]*:/i.test(n),i=typeof window<"u"?window.location.href:"http://localhost",u=new URL(n,i);return u.searchParams.set("theme",l.theme),u.searchParams.set("palette",l.palette),o?u.toString():`${u.pathname}${u.search}${u.hash}`}catch{return n}}function l3({children:n}){const[l,o]=v.useState(()=>typeof window<"u"?t3(window.location.search)??i3(localStorage.getItem("meshy-theme"))??"system":"system"),[i,u]=v.useState(()=>typeof window<"u"?n3(window.location.search)??s3(localStorage.getItem("meshy-palette"))??Vo:Vo);return v.useEffect(()=>{const d=document.documentElement,f=h=>{if(h==="system"){const y=window.matchMedia("(prefers-color-scheme: dark)").matches;d.classList.toggle("dark",y)}else d.classList.toggle("dark",h==="dark")};if(f(l),localStorage.setItem("meshy-theme",l),l==="system"){const h=window.matchMedia("(prefers-color-scheme: dark)"),y=()=>f("system");return h.addEventListener("change",y),()=>h.removeEventListener("change",y)}},[l]),v.useEffect(()=>{const d=document.documentElement;i===Vo?d.removeAttribute("data-palette"):d.setAttribute("data-palette",i),localStorage.setItem("meshy-palette",i)},[i]),m.jsx(Bx.Provider,{value:{theme:l,setTheme:o,palette:i,setPalette:u},children:n})}function r3(){const n=v.useContext(Bx);if(!n)throw new Error("useTheme must be used within ThemeProvider");return n}function Hx(n){return n!==null&&W_.has(n)}function o3(n){return n!==null&&e3.has(n)}function i3(n){return Hx(n)?n:null}function Gf(n){return n===Ux?"porcelain":o3(n)?n:null}function s3(n){return n===Ux?null:Gf(n)}const c3=[{value:"light",label:"Light",icon:x0},{value:"dark",label:"Dark",icon:y0},{value:"system",label:"System",icon:v0}],u3=[{value:"finsight",label:"FinSight",hint:"Cool sage green"},{value:"porcelain",label:"Porcelain",hint:"Blue workspace"},{value:"warm",label:"Warm",hint:"Cream + amber"},{value:"inshield",label:"inShield",hint:"Pure white + navy"},{value:"edge",label:"Edge",hint:"Rounded violet panels"}];function d3(){const{theme:n,setTheme:l,palette:o,setPalette:i}=r3(),[u,d]=v.useState(!1),f=v.useRef(null),h=v.useRef(null),y=n==="dark"?y0:n==="light"?x0:v0,p=()=>{f.current&&(clearTimeout(f.current),f.current=null)},x=()=>{p(),f.current=setTimeout(()=>d(!1),180)};return v.useEffect(()=>{if(!u)return;const g=w=>{h.current&&!h.current.contains(w.target)&&d(!1)};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[u]),v.useEffect(()=>()=>p(),[]),m.jsxs("div",{ref:h,className:"relative",onMouseEnter:()=>{p(),d(!0)},onMouseLeave:x,children:[m.jsx(Vn,{variant:"ghost",size:"icon",onClick:()=>d(g=>!g),className:ce("rounded-[16px] border bg-background/70",o===Vo?"border-border/60":"border-primary/60 text-primary"),title:"Appearance","aria-haspopup":"menu","aria-expanded":u,children:m.jsx(y,{className:"h-4 w-4"})}),u&&m.jsxs("div",{role:"menu",className:"absolute right-0 top-[calc(100%+8px)] z-50 w-64 rounded-[20px] border border-border/70 bg-popover/95 p-3 text-popover-foreground shadow-[0_24px_80px_-32px_rgba(0,0,0,0.35)] backdrop-blur-xl",children:[m.jsx("div",{className:"px-1 pb-1 text-[10px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Theme"}),m.jsx("div",{className:"mb-2 grid grid-cols-3 gap-1",children:c3.map(({value:g,label:w,icon:C})=>{const N=n===g;return m.jsxs("button",{type:"button",onClick:()=>l(g),className:ce("flex flex-col items-center gap-1 rounded-[14px] border px-2 py-2 text-[11px] font-medium transition-colors",N?"border-primary/50 bg-primary/10 text-primary":"border-border/60 text-muted-foreground hover:border-border hover:bg-muted/60 hover:text-foreground"),children:[m.jsx(C,{className:"h-4 w-4"}),w]},g)})}),m.jsxs("div",{className:"mt-2 flex items-center gap-1.5 px-1 pb-1 text-[10px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:[m.jsx(iN,{className:"h-3 w-3"}),"Palette"]}),m.jsx("div",{className:"space-y-1",children:u3.map(({value:g,label:w,hint:C})=>{const N=o===g;return m.jsxs("button",{type:"button",onClick:()=>i(g),className:ce("flex w-full items-center gap-2 rounded-[14px] border px-2.5 py-1.5 text-left transition-colors",N?"border-primary/50 bg-primary/10":"border-transparent hover:bg-muted/60"),children:[m.jsx(f3,{value:g}),m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsx("div",{className:ce("text-[12px] font-medium",N?"text-primary":"text-foreground"),children:w}),m.jsx("div",{className:"text-[10px] text-muted-foreground",children:C})]}),N&&m.jsx(mf,{className:"h-3.5 w-3.5 text-primary"})]},g)})})]})]})}function f3({value:n}){const l={porcelain:["hsl(212 76% 44%)","hsl(210 22% 98%)","hsl(174 42% 61%)"],warm:["hsl(35 88% 56%)","hsl(42 22% 97%)","hsl(160 60% 45%)"],finsight:["hsl(152 38% 32%)","hsl(150 14% 97%)","hsl(142 55% 58%)"],inshield:["hsl(220 25% 12%)","hsl(0 0% 100%)","hsl(195 80% 55%)"],edge:["hsl(265 75% 55%)","hsl(260 12% 98%)","hsl(285 70% 65%)"]},[o,i,u]=l[n];return m.jsxs("div",{className:ce("flex h-6 w-6 shrink-0 overflow-hidden border border-border/60",n==="edge"?"rounded-[10px]":"rounded-[12px]"),children:[m.jsx("div",{className:"h-full w-1/3",style:{background:o}}),m.jsx("div",{className:"h-full w-1/3",style:{background:i}}),m.jsx("div",{className:"h-full w-1/3",style:{background:u}})]})}function m3(){var y,p;const{cluster:n,events:l,sseConnected:o}=h0(),i=$n(),[u,d]=v.useState(!1),f=i.pathname==="/"||/^\/tasks\/[^/]+$/.test(i.pathname),h=v.useMemo(()=>{const x=new Map;for(const g of(n==null?void 0:n.nodes)??[])x.set(g.id,g.name);return x},[n==null?void 0:n.nodes]);return m.jsxs("div",{className:"relative h-full overflow-hidden bg-background text-foreground",children:[m.jsx("div",{className:"mesh-grid pointer-events-none absolute inset-0"}),m.jsxs("div",{className:"relative z-10 flex h-full min-h-0 flex-col",children:[m.jsx("header",{className:"relative z-50 shrink-0 px-2 pb-2 pt-3 sm:px-5 sm:pb-3 sm:pt-4 lg:px-6",children:m.jsxs("div",{className:"dashboard-panel dashboard-panel-muted animate-panel-settle mx-auto flex max-w-[1760px] flex-wrap items-center justify-between gap-2 rounded-[22px] px-3 py-2 sm:gap-3 sm:rounded-[24px] sm:px-4 sm:py-3",children:[m.jsx("div",{className:"flex min-w-0 items-center gap-4",children:m.jsxs(u0,{to:"/",className:"flex items-center gap-3",children:[m.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-[15px] border border-border/70 bg-foreground text-xs font-semibold tracking-[0.24em] text-background shadow-sm sm:h-11 sm:w-11 sm:rounded-[17px] sm:text-sm",children:"M"}),m.jsxs("div",{className:"hidden min-w-0 sm:block",children:[m.jsx("div",{className:"text-[11px] font-medium uppercase tracking-[0.34em] text-muted-foreground",children:"MESHY"}),m.jsx("div",{className:"truncate text-base font-semibold tracking-tight text-foreground",children:"Workspace"})]})]})}),m.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[m.jsxs("div",{className:"hidden items-center gap-2 rounded-[16px] border border-border/70 bg-background/70 px-3 py-2 text-xs text-muted-foreground shadow-sm sm:flex",children:[m.jsxs("span",{className:"flex items-center gap-2",children:[(n==null?void 0:n.self)&&m.jsx(V0,{status:n.self.status}),m.jsx("span",{className:"font-medium text-foreground",children:((y=n==null?void 0:n.self)==null?void 0:y.name)??"offline"})]}),m.jsx("span",{className:"text-border",children:"/"}),m.jsx("span",{className:"capitalize",children:((p=n==null?void 0:n.self)==null?void 0:p.role)??"node"})]}),m.jsx(J_,{connected:o,events:l,nodes:(n==null?void 0:n.nodes)??[],nodeNameById:h}),f&&m.jsx(Vn,{variant:"ghost",size:"icon",onClick:()=>d(x=>!x),"aria-label":u?"Close terminal":"Open terminal",title:u?"Close terminal":"Open terminal",className:ce("rounded-[16px] border bg-background/70 shadow-sm",u?"border-primary/50 bg-primary/10 text-primary":"border-border/70"),children:m.jsx(S0,{className:"h-4 w-4"})}),m.jsx(__,{}),m.jsx(d3,{})]})]})}),m.jsx("main",{className:ce("min-h-0 flex-1 px-3 pb-3 sm:px-5 lg:px-6",f?"overflow-hidden":"overflow-y-auto"),children:m.jsx("div",{className:"mx-auto h-full min-h-0 max-w-[1760px]",children:m.jsx(rw,{context:{terminalOpen:u,setTerminalOpen:d}})})})]})]})}const $v=v.lazy(async()=>({default:(await Gv(()=>import("./DashboardPage-CLJHILHo.js").then(l=>l.D),__vite__mapDeps([0,1,2,3]))).DashboardPage})),h3=v.lazy(async()=>({default:(await Gv(()=>import("./SharedConversationPage-BrlYNCnU.js"),__vite__mapDeps([4,1]))).SharedConversationPage}));function p3(){return m.jsx(Mw,{children:m.jsx(v.Suspense,{fallback:m.jsx(g3,{}),children:m.jsxs(iw,{children:[m.jsx(Cl,{path:"/shared/tasks/:shareId",element:m.jsx(h3,{})}),m.jsxs(Cl,{element:m.jsx(dE,{children:m.jsx(m3,{})}),children:[m.jsx(Cl,{path:"/",element:m.jsx($v,{})}),m.jsx(Cl,{path:"/nodes",element:m.jsx(Wg,{to:"/",replace:!0})}),m.jsx(Cl,{path:"/tasks",element:m.jsx(Wg,{to:"/",replace:!0})}),m.jsx(Cl,{path:"/tasks/:id",element:m.jsx($v,{})})]})]})})})}function g3(){return m.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function v3(n){return m.jsx(DC,{className:"toaster group",style:{"--normal-bg":"hsl(var(--popover))","--normal-text":"hsl(var(--popover-foreground))","--normal-border":"hsl(var(--border))"},...n})}o2.createRoot(document.getElementById("root")).render(m.jsx(v.StrictMode,{children:m.jsxs(l3,{children:[m.jsx(p3,{}),m.jsx(v3,{})]})}));export{qs as $,jj as A,Vn as B,mf as C,fj as D,LE as E,qE as F,z_ as G,k_ as H,Ox as I,DA as J,mt as K,cj as L,ax as M,Cs as N,Rj as O,uj as P,Ls as Q,nf as R,Nr as S,j_ as T,Us as U,Bs as V,Vs as W,w0 as X,$s as Y,Hs as Z,Ys as _,UC as a,q3 as a$,Gv as a0,w3 as a1,Ny as a2,S5 as a3,z3 as a4,S0 as a5,Bo as a6,kE as a7,k3 as a8,L3 as a9,iE as aA,X3 as aB,T3 as aC,N3 as aD,Ty as aE,C3 as aF,R3 as aG,Qw as aH,__ as aI,P3 as aJ,Q3 as aK,b3 as aL,$n as aM,t0 as aN,y3 as aO,h0 as aP,Ej as aQ,Sj as aR,vj as aS,yj as aT,xj as aU,bj as aV,B3 as aW,hj as aX,O_ as aY,Y3 as aZ,G3 as a_,D3 as aa,aN as ab,PE as ac,wj as ad,b0 as ae,$_ as af,V0 as ag,VE as ah,lC as ai,Aj as aj,M_ as ak,_j as al,pj as am,gj as an,Mx as ao,Cj as ap,Nj as aq,Tj as ar,af as as,K3 as at,Z3 as au,U3 as av,lE as aw,Jw as ax,sj as ay,ij as az,ce as b,$3 as b0,S3 as b1,E3 as b2,x3 as b3,A3 as b4,ej as b5,W3 as b6,J3 as b7,I3 as b8,F3 as b9,tj as ba,qv as bb,_E as bc,lj as bd,aj as be,nj as bf,WE as bg,rj as bh,dj as bi,oj as bj,Ve as c,H0 as d,O3 as e,Pw as f,j3 as g,_3 as h,RE as i,m as j,mj as k,g0 as l,M3 as m,V3 as n,kb as o,Hf as p,zb as q,v as r,Vf as s,ut as t,Qs as u,iN as v,H3 as w,y5 as x,Ey as y,Cy as z};