meshy-node 0.6.8 → 0.6.9

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-CdCiYD4R.js","assets/DashboardShared-HvdlVE0E.js","assets/folder-DzQ8M7ZQ.js","assets/play-BN9wGxuQ.js","assets/DashboardPage-i714dDoR.css","assets/SharedConversationPage-FgVTiQ2B.js"])))=>i.map(i=>d[i]);
2
- function aw(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 Pv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var xd={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 Vg;function lw(){if(Vg)return Mo;Vg=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 Yg;function rw(){return Yg||(Yg=1,xd.exports=lw()),xd.exports}var m=rw(),Sd={exports:{}},Te={};/**
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 $g;function ow(){if($g)return Te;$g=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 N(j){return j===null||typeof j!="object"?null:(j=w&&j[w]||j["@@iterator"],typeof j=="function"?j:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,C={};function A(j,X,Q){this.props=j,this.context=X,this.refs=C,this.updater=Q||T}A.prototype.isReactComponent={},A.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")},A.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function _(){}_.prototype=A.prototype;function M(j,X,Q){this.props=j,this.context=X,this.refs=C,this.updater=Q||T}var k=M.prototype=new _;k.constructor=M,E(k,A.prototype),k.isPureReactComponent=!0;var Y=Array.isArray;function G(){}var B={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function ae(j,X,Q){var W=Q.ref;return{$$typeof:n,type:j,key:X,ref:W!==void 0?W:null,props:Q}}function re(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 le(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,W,ee){var oe=typeof j;(oe==="undefined"||oe==="boolean")&&(j=null);var te=!1;if(j===null)te=!0;else switch(oe){case"bigint":case"string":case"number":te=!0;break;case"object":switch(j.$$typeof){case n:case l:te=!0;break;case x:return te=j._init,O(te(j._payload),X,Q,W,ee)}}if(te)return ee=ee(j),te=W===""?"."+de(j,0):W,Y(ee)?(Q="",te!=null&&(Q=te.replace(ue,"$&/")+"/"),O(ee,X,Q,"",function(xe){return xe})):ee!=null&&(pe(ee)&&(ee=re(ee,Q+(ee.key==null||j&&j.key===ee.key?"":(""+ee.key).replace(ue,"$&/")+"/")+te)),X.push(ee)),1;te=0;var ie=W===""?".":W+":";if(Y(j))for(var J=0;J<j.length;J++)W=j[J],oe=ie+de(W,J),te+=O(W,X,Q,oe,ee);else if(J=N(j),typeof J=="function")for(j=J.call(j),J=0;!(W=j.next()).done;)W=W.value,oe=ie+de(W,J++),te+=O(W,X,Q,oe,ee);else if(oe==="object"){if(typeof j.then=="function")return O(le(j),X,Q,W,ee);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 te}function q(j,X,Q){if(j==null)return j;var W=[],ee=0;return O(j,W,"","",function(oe){return X.call(Q,oe,ee++)}),W}function I(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 ce=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)},F={map:q,forEach:function(j,X,Q){q(j,function(){X.apply(this,arguments)},Q)},count:function(j){var X=0;return q(j,function(){X++}),X},toArray:function(j){return q(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 Te.Activity=g,Te.Children=F,Te.Component=A,Te.Fragment=o,Te.Profiler=u,Te.PureComponent=M,Te.StrictMode=i,Te.Suspense=y,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=B,Te.__COMPILER_RUNTIME={__proto__:null,c:function(j){return B.H.useMemoCache(j)}},Te.cache=function(j){return function(){return j.apply(null,arguments)}},Te.cacheSignal=function(){return null},Te.cloneElement=function(j,X,Q){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var W=E({},j.props),ee=j.key;if(X!=null)for(oe in X.key!==void 0&&(ee=""+X.key),X)!V.call(X,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&X.ref===void 0||(W[oe]=X[oe]);var oe=arguments.length-2;if(oe===1)W.children=Q;else if(1<oe){for(var te=Array(oe),ie=0;ie<oe;ie++)te[ie]=arguments[ie+2];W.children=te}return ae(j.type,ee,W)},Te.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},Te.createElement=function(j,X,Q){var W,ee={},oe=null;if(X!=null)for(W in X.key!==void 0&&(oe=""+X.key),X)V.call(X,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ee[W]=X[W]);var te=arguments.length-2;if(te===1)ee.children=Q;else if(1<te){for(var ie=Array(te),J=0;J<te;J++)ie[J]=arguments[J+2];ee.children=ie}if(j&&j.defaultProps)for(W in te=j.defaultProps,te)ee[W]===void 0&&(ee[W]=te[W]);return ae(j,oe,ee)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(j){return{$$typeof:h,render:j}},Te.isValidElement=pe,Te.lazy=function(j){return{$$typeof:x,_payload:{_status:-1,_result:j},_init:I}},Te.memo=function(j,X){return{$$typeof:p,type:j,compare:X===void 0?null:X}},Te.startTransition=function(j){var X=B.T,Q={};B.T=Q;try{var W=j(),ee=B.S;ee!==null&&ee(Q,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then(G,ce)}catch(oe){ce(oe)}finally{X!==null&&Q.types!==null&&(X.types=Q.types),B.T=X}},Te.unstable_useCacheRefresh=function(){return B.H.useCacheRefresh()},Te.use=function(j){return B.H.use(j)},Te.useActionState=function(j,X,Q){return B.H.useActionState(j,X,Q)},Te.useCallback=function(j,X){return B.H.useCallback(j,X)},Te.useContext=function(j){return B.H.useContext(j)},Te.useDebugValue=function(){},Te.useDeferredValue=function(j,X){return B.H.useDeferredValue(j,X)},Te.useEffect=function(j,X){return B.H.useEffect(j,X)},Te.useEffectEvent=function(j){return B.H.useEffectEvent(j)},Te.useId=function(){return B.H.useId()},Te.useImperativeHandle=function(j,X,Q){return B.H.useImperativeHandle(j,X,Q)},Te.useInsertionEffect=function(j,X){return B.H.useInsertionEffect(j,X)},Te.useLayoutEffect=function(j,X){return B.H.useLayoutEffect(j,X)},Te.useMemo=function(j,X){return B.H.useMemo(j,X)},Te.useOptimistic=function(j,X){return B.H.useOptimistic(j,X)},Te.useReducer=function(j,X,Q){return B.H.useReducer(j,X,Q)},Te.useRef=function(j){return B.H.useRef(j)},Te.useState=function(j){return B.H.useState(j)},Te.useSyncExternalStore=function(j,X,Q){return B.H.useSyncExternalStore(j,X,Q)},Te.useTransition=function(){return B.H.useTransition()},Te.version="19.2.4",Te}var qg;function cf(){return qg||(qg=1,Sd.exports=ow()),Sd.exports}var v=cf();const ne=Pv(v),uf=aw({__proto__:null,default:ne},[v]);var wd={exports:{}},Do={},Ed={exports:{}},Nd={};/**
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 Gg;function iw(){return Gg||(Gg=1,(function(n){function l(O,q){var I=O.length;O.push(q);e:for(;0<I;){var ce=I-1>>>1,F=O[ce];if(0<u(F,q))O[ce]=q,O[I]=F,I=ce;else break e}}function o(O){return O.length===0?null:O[0]}function i(O){if(O.length===0)return null;var q=O[0],I=O.pop();if(I!==q){O[0]=I;e:for(var ce=0,F=O.length,j=F>>>1;ce<j;){var X=2*(ce+1)-1,Q=O[X],W=X+1,ee=O[W];if(0>u(Q,I))W<F&&0>u(ee,Q)?(O[ce]=ee,O[W]=I,ce=W):(O[ce]=Q,O[X]=I,ce=X);else if(W<F&&0>u(ee,I))O[ce]=ee,O[W]=I,ce=W;else break e}}return q}function u(O,q){var I=O.sortIndex-q.sortIndex;return I!==0?I:O.id-q.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,N=!1,T=!1,E=!1,C=!1,A=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function k(O){for(var q=o(p);q!==null;){if(q.callback===null)i(p);else if(q.startTime<=O)i(p),q.sortIndex=q.expirationTime,l(y,q);else break;q=o(p)}}function Y(O){if(E=!1,k(O),!T)if(o(y)!==null)T=!0,G||(G=!0,me());else{var q=o(p);q!==null&&le(Y,q.startTime-O)}}var G=!1,B=-1,V=5,ae=-1;function re(){return C?!0:!(n.unstable_now()-ae<V)}function pe(){if(C=!1,G){var O=n.unstable_now();ae=O;var q=!0;try{e:{T=!1,E&&(E=!1,_(B),B=-1),N=!0;var I=w;try{t:{for(k(O),g=o(y);g!==null&&!(g.expirationTime>O&&re());){var ce=g.callback;if(typeof ce=="function"){g.callback=null,w=g.priorityLevel;var F=ce(g.expirationTime<=O);if(O=n.unstable_now(),typeof F=="function"){g.callback=F,k(O),q=!0;break t}g===o(y)&&i(y),k(O)}else i(y);g=o(y)}if(g!==null)q=!0;else{var j=o(p);j!==null&&le(Y,j.startTime-O),q=!1}}break e}finally{g=null,w=I,N=!1}q=void 0}}finally{q?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(){A(pe,0)};function le(O,q){B=A(function(){O(n.unstable_now())},q)}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 q=3;break;default:q=w}var I=w;w=q;try{return O()}finally{w=I}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(O,q){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var I=w;w=O;try{return q()}finally{w=I}},n.unstable_scheduleCallback=function(O,q,I){var ce=n.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?ce+I:ce):I=ce,O){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=I+F,O={id:x++,callback:q,priorityLevel:O,startTime:I,expirationTime:F,sortIndex:-1},I>ce?(O.sortIndex=I,l(p,O),o(y)===null&&O===o(p)&&(E?(_(B),B=-1):E=!0,le(Y,I-ce))):(O.sortIndex=F,l(y,O),T||N||(T=!0,G||(G=!0,me()))),O},n.unstable_shouldYield=re,n.unstable_wrapCallback=function(O){var q=w;return function(){var I=w;w=q;try{return O.apply(this,arguments)}finally{w=I}}}})(Nd)),Nd}var Xg;function sw(){return Xg||(Xg=1,Ed.exports=iw()),Ed.exports}var Td={exports:{}},Rt={};/**
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 Pg;function cw(){if(Pg)return Rt;Pg=1;var n=cf();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 Rt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,Rt.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)},Rt.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()}},Rt.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))},Rt.prefetchDNS=function(y){typeof y=="string"&&i.d.D(y)},Rt.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var x=p.as,g=h(x,p.crossOrigin),w=typeof p.integrity=="string"?p.integrity:void 0,N=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;x==="style"?i.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:g,integrity:w,fetchPriority:N}):x==="script"&&i.d.X(y,{crossOrigin:g,integrity:w,fetchPriority:N,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Rt.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)},Rt.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})}},Rt.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)},Rt.requestFormReset=function(y){i.d.r(y)},Rt.unstable_batchedUpdates=function(y,p){return y(p)},Rt.useFormState=function(y,p,x){return f.H.useFormState(y,p,x)},Rt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Rt.version="19.2.4",Rt}var Qg;function Qv(){if(Qg)return Td.exports;Qg=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(),Td.exports=cw(),Td.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 Kg;function uw(){if(Kg)return Do;Kg=1;var n=sw(),l=cf(),o=Qv();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"),N=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),M=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),Y=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"),re=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 A:return"Profiler";case C:return"StrictMode";case Y:return"Suspense";case G:return"SuspenseList";case ae:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case T:return"Portal";case M:return e.displayName||"Context";case _:return(e._context.displayName||"Context")+".Consumer";case k:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case 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 le=Array.isArray,O=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},ce=[],F=-1;function j(e){return{current:e}}function X(e){0>F||(e.current=ce[F],ce[F]=null,F--)}function Q(e,t){F++,ce[F]=e.current,e.current=t}var W=j(null),ee=j(null),oe=j(null),te=j(null);function ie(e,t){switch(Q(oe,t),Q(ee,e),Q(W,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?cg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=cg(t),e=ug(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(W),Q(W,e)}function J(){X(W),X(ee),X(oe)}function xe(e){e.memoizedState!==null&&Q(te,e);var t=W.current,a=ug(t,e.type);t!==a&&(Q(ee,e),Q(W,a))}function ye(e){ee.current===e&&(X(W),X(ee)),te.current===e&&(X(te),Ro._currentValue=I)}var Se,Ye;function Le(e){if(Se===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||"",Ye=-1<a.stack.indexOf(`
43
- at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
44
- `+Se+e+Ye}var $e=!1;function gt(e,t){if(!e||$e)return"";$e=!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($){var H=$}Reflect.construct(e,[],Z)}else{try{Z.call()}catch($){H=$}e.call(Z.prototype)}}else{try{throw Error()}catch($){H=$}(Z=e())&&typeof Z.catch=="function"&&Z.catch(function(){})}}catch($){if($&&H&&typeof $.stack=="string")return[$.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 R=b.split(`
45
- `),U=S.split(`
46
- `);for(s=r=0;r<R.length&&!R[r].includes("DetermineComponentFrameRoot");)r++;for(;s<U.length&&!U[s].includes("DetermineComponentFrameRoot");)s++;if(r===R.length||s===U.length)for(r=R.length-1,s=U.length-1;1<=r&&0<=s&&R[r]!==U[s];)s--;for(;1<=r&&0<=s;r--,s--)if(R[r]!==U[s]){if(r!==1||s!==1)do if(r--,s--,0>s||R[r]!==U[s]){var P=`
47
- `+R[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{$e=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Le(a):""}function rt(e,t){switch(e.tag){case 26:case 27:case 5:return Le(e.type);case 16:return Le("Lazy");case 13:return e.child!==t&&t!==null?Le("Suspense Fallback"):Le("Suspense");case 19:return Le("SuspenseList");case 0:case 15:return gt(e.type,!1);case 11:return gt(e.type.render,!1);case 1:return gt(e.type,!0);case 31:return Le("Activity");default:return""}}function Pt(e){try{var t="",a=null;do t+=rt(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
48
- Error generating stack: `+r.message+`
49
- `+r.stack}}var vt=Object.prototype.hasOwnProperty,Br=n.unstable_scheduleCallback,Hr=n.unstable_cancelCallback,jt=n.unstable_shouldYield,pa=n.unstable_requestPaint,Ot=n.unstable_now,sc=n.unstable_getCurrentPriorityLevel,el=n.unstable_ImmediatePriority,Io=n.unstable_UserBlockingPriority,tl=n.unstable_NormalPriority,Vr=n.unstable_LowPriority,Gn=n.unstable_IdlePriority,Fo=n.log,ga=n.unstable_setDisableYieldValue,nl=null,Mt=null;function pn(e){if(typeof Fo=="function"&&ga(e),Mt&&typeof Mt.setStrictMode=="function")try{Mt.setStrictMode(nl,e)}catch{}}var Ct=Math.clz32?Math.clz32:Tn,cc=Math.log,Yr=Math.LN2;function Tn(e){return e>>>=0,e===0?32:31-(cc(e)/Yr|0)|0}var Ol=256,Ml=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 We(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function yt(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 At(){var e=al;return al<<=1,(al&62914560)===0&&(al=4194304),e}function va(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function nt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function kt(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,R=e.expirationTimes,U=e.hiddenUpdates;for(a=b&~a;0<a;){var P=31-Ct(a),Z=1<<P;S[P]=0,R[P]=-1;var H=U[P];if(H!==null)for(U[P]=null,P=0;P<H.length;P++){var $=H[P];$!==null&&($.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-Ct(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function zt(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-Ct(a),s=1<<r;s&t|e[r]&t&&(e[r]|=t),a&=~s}}function Lt(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 gn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function uc(){var e=q.p;return e!==0?e:(e=window.event,e===void 0?32:Dg(e.type))}function Zf(e,t){var a=q.p;try{return q.p=e,t()}finally{q.p=a}}var ya=Math.random().toString(36).slice(2),St="__reactFiber$"+ya,Ut="__reactProps$"+ya,kl="__reactContainer$"+ya,dc="__reactEvents$"+ya,Px="__reactListeners$"+ya,Qx="__reactHandles$"+ya,If="__reactResources$"+ya,$r="__reactMarker$"+ya;function fc(e){delete e[St],delete e[Ut],delete e[dc],delete e[Px],delete e[Qx]}function zl(e){var t=e[St];if(t)return t;for(var a=e.parentNode;a;){if(t=a[kl]||a[St]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=vg(e);e!==null;){if(a=e[St])return a;e=vg(e)}return t}e=a,a=e.parentNode}return null}function Ll(e){if(e=e[St]||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[If];return t||(t=e[If]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function bt(e){e[$r]=!0}var Ff=new Set,Jf={};function rl(e,t){Bl(e,t),Bl(e+"Capture",t)}function Bl(e,t){for(Jf[e]=t,e=0;e<t.length;e++)Ff.add(t[e])}var Kx=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]*$"),Wf={},em={};function Zx(e){return vt.call(em,e)?!0:vt.call(Wf,e)?!1:Kx.test(e)?em[e]=!0:(Wf[e]=!0,!1)}function Jo(e,t,a){if(Zx(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 Wo(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 Xn(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 an(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function tm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Ix(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 mc(e){if(!e._valueTracker){var t=tm(e)?"checked":"value";e._valueTracker=Ix(e,t,""+e[t])}}function nm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=tm(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function ei(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 Fx=/[\n"\\]/g;function ln(e){return e.replace(Fx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function hc(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=""+an(t)):e.value!==""+an(t)&&(e.value=""+an(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?pc(e,b,an(t)):a!=null?pc(e,b,an(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=""+an(S):e.removeAttribute("name")}function am(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)){mc(e);return}a=a!=null?""+an(a):"",t=t!=null?""+an(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),mc(e)}function pc(e,t,a){t==="number"&&ei(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=""+an(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 lm(e,t,a){if(t!=null&&(t=""+an(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+an(a):""}function rm(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(i(92));if(le(r)){if(1<r.length)throw Error(i(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=an(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),mc(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 Jx=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 om(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||Jx.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function im(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&&om(e,s,r)}else for(var c in t)t.hasOwnProperty(c)&&om(e,c,t[c])}function gc(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 Wx=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"]]),e1=/^[\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 ti(e){return e1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Pn(){}var vc=null;function yc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Yl=null,$l=null;function sm(e){var t=Ll(e);if(t&&(e=t.stateNode)){var a=e[Ut]||null;e:switch(e=t.stateNode,t.type){case"input":if(hc(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="'+ln(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var s=r[Ut]||null;if(!s)throw Error(i(90));hc(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&&nm(r)}break e;case"textarea":lm(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Hl(e,!!a.multiple,t,!1)}}}var bc=!1;function cm(e,t,a){if(bc)return e(t,a);bc=!0;try{var r=e(t);return r}finally{if(bc=!1,(Yl!==null||$l!==null)&&($i(),Yl&&(t=Yl,e=$l,$l=Yl=null,sm(t),e)))for(t=0;t<e.length;t++)sm(e[t])}}function Gr(e,t){var a=e.stateNode;if(a===null)return null;var r=a[Ut]||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 Qn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xc=!1;if(Qn)try{var Xr={};Object.defineProperty(Xr,"passive",{get:function(){xc=!0}}),window.addEventListener("test",Xr,Xr),window.removeEventListener("test",Xr,Xr)}catch{xc=!1}var ba=null,Sc=null,ni=null;function um(){if(ni)return ni;var e,t=Sc,a=t.length,r,s="value"in ba?ba.value:ba.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 ni=s.slice(e,1<r?1-r:void 0)}function ai(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 li(){return!0}function dm(){return!1}function Bt(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)?li:dm,this.isPropagationStopped=dm,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=li)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=li)},persist:function(){},isPersistent:li}),t}var ol={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ri=Bt(ol),Pr=g({},ol,{view:0,detail:0}),t1=Bt(Pr),wc,Ec,Qr,oi=g({},Pr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tc,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!==Qr&&(Qr&&e.type==="mousemove"?(wc=e.screenX-Qr.screenX,Ec=e.screenY-Qr.screenY):Ec=wc=0,Qr=e),wc)},movementY:function(e){return"movementY"in e?e.movementY:Ec}}),fm=Bt(oi),n1=g({},oi,{dataTransfer:0}),a1=Bt(n1),l1=g({},Pr,{relatedTarget:0}),Nc=Bt(l1),r1=g({},ol,{animationName:0,elapsedTime:0,pseudoElement:0}),o1=Bt(r1),i1=g({},ol,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),s1=Bt(i1),c1=g({},ol,{data:0}),mm=Bt(c1),u1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},d1={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"},f1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function m1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=f1[e])?!!t[e]:!1}function Tc(){return m1}var h1=g({},Pr,{key:function(e){if(e.key){var t=u1[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ai(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?d1[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tc,charCode:function(e){return e.type==="keypress"?ai(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ai(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),p1=Bt(h1),g1=g({},oi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hm=Bt(g1),v1=g({},Pr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tc}),y1=Bt(v1),b1=g({},ol,{propertyName:0,elapsedTime:0,pseudoElement:0}),x1=Bt(b1),S1=g({},oi,{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}),w1=Bt(S1),E1=g({},ol,{newState:0,oldState:0}),N1=Bt(E1),T1=[9,13,27,32],Cc=Qn&&"CompositionEvent"in window,Kr=null;Qn&&"documentMode"in document&&(Kr=document.documentMode);var C1=Qn&&"TextEvent"in window&&!Kr,pm=Qn&&(!Cc||Kr&&8<Kr&&11>=Kr),gm=" ",vm=!1;function ym(e,t){switch(e){case"keyup":return T1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ql=!1;function A1(e,t){switch(e){case"compositionend":return bm(t);case"keypress":return t.which!==32?null:(vm=!0,gm);case"textInput":return e=t.data,e===gm&&vm?null:e;default:return null}}function R1(e,t){if(ql)return e==="compositionend"||!Cc&&ym(e,t)?(e=um(),ni=Sc=ba=null,ql=!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 pm&&t.locale!=="ko"?null:t.data;default:return null}}var _1={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 xm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!_1[e.type]:t==="textarea"}function Sm(e,t,a,r){Yl?$l?$l.push(r):$l=[r]:Yl=r,t=Zi(t,"onChange"),0<t.length&&(a=new ri("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Zr=null,Ir=null;function j1(e){ag(e,0)}function ii(e){var t=qr(e);if(nm(t))return e}function wm(e,t){if(e==="change")return t}var Em=!1;if(Qn){var Ac;if(Qn){var Rc="oninput"in document;if(!Rc){var Nm=document.createElement("div");Nm.setAttribute("oninput","return;"),Rc=typeof Nm.oninput=="function"}Ac=Rc}else Ac=!1;Em=Ac&&(!document.documentMode||9<document.documentMode)}function Tm(){Zr&&(Zr.detachEvent("onpropertychange",Cm),Ir=Zr=null)}function Cm(e){if(e.propertyName==="value"&&ii(Ir)){var t=[];Sm(t,Ir,e,yc(e)),cm(j1,t)}}function O1(e,t,a){e==="focusin"?(Tm(),Zr=t,Ir=a,Zr.attachEvent("onpropertychange",Cm)):e==="focusout"&&Tm()}function M1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ii(Ir)}function D1(e,t){if(e==="click")return ii(t)}function k1(e,t){if(e==="input"||e==="change")return ii(t)}function z1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Qt=typeof Object.is=="function"?Object.is:z1;function Fr(e,t){if(Qt(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(!vt.call(t,s)||!Qt(e[s],t[s]))return!1}return!0}function Am(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Rm(e,t){var a=Am(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=Am(a)}}function _m(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_m(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ei(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=ei(e.document)}return t}function _c(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var L1=Qn&&"documentMode"in document&&11>=document.documentMode,Gl=null,jc=null,Jr=null,Oc=!1;function Om(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Oc||Gl==null||Gl!==ei(r)||(r=Gl,"selectionStart"in r&&_c(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}),Jr&&Fr(Jr,r)||(Jr=r,r=Zi(jc,"onSelect"),0<r.length&&(t=new ri("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")},Mc={},Mm={};Qn&&(Mm=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(Mc[e])return Mc[e];if(!Xl[e])return e;var t=Xl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Mm)return Mc[e]=t[a];return e}var Dm=sl("animationend"),km=sl("animationiteration"),zm=sl("animationstart"),U1=sl("transitionrun"),B1=sl("transitionstart"),H1=sl("transitioncancel"),Lm=sl("transitionend"),Um=new Map,Dc="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(" ");Dc.push("scrollEnd");function vn(e,t){Um.set(e,t),rl(t,[e])}var si=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)},rn=[],Pl=0,kc=0;function ci(){for(var e=Pl,t=kc=Pl=0;t<e;){var a=rn[t];rn[t++]=null;var r=rn[t];rn[t++]=null;var s=rn[t];rn[t++]=null;var c=rn[t];if(rn[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&&Bm(a,s,c)}}function ui(e,t,a,r){rn[Pl++]=e,rn[Pl++]=t,rn[Pl++]=a,rn[Pl++]=r,kc|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function zc(e,t,a,r){return ui(e,t,a,r),di(e)}function cl(e,t){return ui(e,null,null,t),di(e)}function Bm(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-Ct(a),e=c.hiddenUpdates,r=e[s],r===null?e[s]=[t]:r.push(t),t.lane=a|536870912),c):null}function di(e){if(50<So)throw So=0,Gu=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 V1(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 Kt(e,t,a,r){return new V1(e,t,a,r)}function Lc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Kn(e,t){var a=e.alternate;return a===null?(a=Kt(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 Hm(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 fi(e,t,a,r,s,c){var b=0;if(r=e,typeof e=="function")Lc(e)&&(b=1);else if(typeof e=="string")b=XS(e,a,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ae:return e=Kt(31,a,t,s),e.elementType=ae,e.lanes=c,e;case E:return ul(a.children,s,c,t);case C:b=8,s|=24;break;case A:return e=Kt(12,a,t,s|2),e.elementType=A,e.lanes=c,e;case Y:return e=Kt(13,a,t,s),e.elementType=Y,e.lanes=c,e;case G:return e=Kt(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 _: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=Kt(b,a,t,s),t.elementType=e,t.type=r,t.lanes=c,t}function ul(e,t,a,r){return e=Kt(7,e,r,t),e.lanes=a,e}function Uc(e,t,a){return e=Kt(6,e,null,t),e.lanes=a,e}function Vm(e){var t=Kt(18,null,null,0);return t.stateNode=e,t}function Bc(e,t,a){return t=Kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ym=new WeakMap;function on(e,t){if(typeof e=="object"&&e!==null){var a=Ym.get(e);return a!==void 0?a:(t={value:e,source:t,stack:Pt(t)},Ym.set(e,t),t)}return{value:e,source:t,stack:Pt(t)}}var Kl=[],Zl=0,mi=null,Wr=0,sn=[],cn=0,xa=null,An=1,Rn="";function Zn(e,t){Kl[Zl++]=Wr,Kl[Zl++]=mi,mi=e,Wr=t}function $m(e,t,a){sn[cn++]=An,sn[cn++]=Rn,sn[cn++]=xa,xa=e;var r=An;e=Rn;var s=32-Ct(r)-1;r&=~(1<<s),a+=1;var c=32-Ct(t)+s;if(30<c){var b=s-s%5;c=(r&(1<<b)-1).toString(32),r>>=b,s-=b,An=1<<32-Ct(t)+s|a<<s|r,Rn=c+e}else An=1<<c|a<<s|r,Rn=e}function Hc(e){e.return!==null&&(Zn(e,1),$m(e,1,0))}function Vc(e){for(;e===mi;)mi=Kl[--Zl],Kl[Zl]=null,Wr=Kl[--Zl],Kl[Zl]=null;for(;e===xa;)xa=sn[--cn],sn[cn]=null,Rn=sn[--cn],sn[cn]=null,An=sn[--cn],sn[cn]=null}function qm(e,t){sn[cn++]=An,sn[cn++]=Rn,sn[cn++]=xa,An=t.id,Rn=t.overflow,xa=e}var wt=null,Fe=null,ke=!1,Sa=null,un=!1,Yc=Error(i(519));function wa(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw eo(on(t,e)),Yc}function Gm(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[St]=e,t[Ut]=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<Eo.length;a++)je(Eo[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),am(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),rm(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||ig(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=Pn),t=!0):t=!1,t||wa(e,!0)}function Xm(e){for(wt=e.return;wt;)switch(wt.tag){case 5:case 31:case 13:un=!1;return;case 27:case 3:un=!0;return;default:wt=wt.return}}function Il(e){if(e!==wt)return!1;if(!ke)return Xm(e),ke=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||rd(e.type,e.memoizedProps)),a=!a),a&&Fe&&wa(e),Xm(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Fe=gg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));Fe=gg(e)}else t===27?(t=Fe,La(e.type)?(e=ud,ud=null,Fe=e):Fe=t):Fe=wt?fn(e.stateNode.nextSibling):null;return!0}function dl(){Fe=wt=null,ke=!1}function $c(){var e=Sa;return e!==null&&($t===null?$t=e:$t.push.apply($t,e),Sa=null),e}function eo(e){Sa===null?Sa=[e]:Sa.push(e)}var qc=j(null),fl=null,In=null;function Ea(e,t,a){Q(qc,t._currentValue),t._currentValue=a}function Fn(e){e._currentValue=qc.current,X(qc)}function Gc(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 Xc(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 R=0;R<t.length;R++)if(S.context===t[R]){c.lanes|=a,S=c.alternate,S!==null&&(S.lanes|=a),Gc(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),Gc(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;Qt(s.pendingProps.value,b.value)||(e!==null?e.push(S):e=[S])}}else if(s===te.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&&Xc(t,e,a,r),t.flags|=262144}function hi(e){for(e=e.firstContext;e!==null;){if(!Qt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ml(e){fl=e,In=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Et(e){return Pm(fl,e)}function pi(e,t){return fl===null&&ml(e),Pm(e,t)}function Pm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},In===null){if(e===null)throw Error(i(308));In=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else In=In.next=t;return a}var Y1=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()})}},$1=n.unstable_scheduleCallback,q1=n.unstable_NormalPriority,st={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pc(){return{controller:new Y1,data:new Map,refCount:0}}function to(e){e.refCount--,e.refCount===0&&$1(q1,function(){e.controller.abort()})}var no=null,Qc=0,Jl=0,Wl=null;function G1(e,t){if(no===null){var a=no=[];Qc=0,Jl=Iu(),Wl={status:"pending",value:void 0,then:function(r){a.push(r)}}}return Qc++,t.then(Qm,Qm),t}function Qm(){if(--Qc===0&&no!==null){Wl!==null&&(Wl.status="fulfilled");var e=no;no=null,Jl=0,Wl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function X1(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 Km=O.S;O.S=function(e,t){Op=Ot(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&G1(e,t),Km!==null&&Km(e,t)};var hl=j(null);function Kc(){var e=hl.current;return e!==null?e:Ke.pooledCache}function gi(e,t){t===null?Q(hl,hl.current):Q(hl,t.pool)}function Zm(){var e=Kc();return e===null?null:{parent:st._currentValue,pool:e}}var er=Error(i(460)),Zc=Error(i(474)),vi=Error(i(542)),yi={then:function(){}};function Im(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Fm(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Pn,Pn),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Wm(e),e;default:if(typeof t.status=="string")t.then(Pn,Pn);else{if(e=Ke,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,Wm(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 Jm(){if(gl===null)throw Error(i(459));var e=gl;return gl=null,e}function Wm(e){if(e===er||e===vi)throw Error(i(483))}var tr=null,ao=0;function bi(e){var t=ao;return ao+=1,tr===null&&(tr=[]),Fm(tr,e,t)}function lo(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function xi(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 eh(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=Kn(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=Uc(L,z.mode,K),D.return=z,D):(D=s(D,L),D.return=z,D)}function R(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),lo(D,L),D.return=z,D):(D=fi(L.type,L.key,L.props,null,z.mode,K),lo(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=Bc(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=Uc(""+D,z.mode,L),D.return=z,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case N:return L=fi(D.type,D.key,D.props,null,z.mode,L),lo(L,D),L.return=z,L;case T:return D=Bc(D,z.mode,L),D.return=z,D;case V:return D=pl(D),Z(z,D,L)}if(le(D)||me(D))return D=ul(D,z.mode,L,null),D.return=z,D;if(typeof D.then=="function")return Z(z,bi(D),L);if(D.$$typeof===M)return Z(z,pi(z,D),L);xi(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 N:return L.key===be?R(z,D,L,K):null;case T:return L.key===be?U(z,D,L,K):null;case V:return L=pl(L),H(z,D,L,K)}if(le(L)||me(L))return be!==null?null:P(z,D,L,K,null);if(typeof L.then=="function")return H(z,D,bi(L),K);if(L.$$typeof===M)return H(z,D,pi(z,L),K);xi(z,L)}return null}function $(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 N:return z=z.get(K.key===null?L:K.key)||null,R(D,z,K,be);case T:return z=z.get(K.key===null?L:K.key)||null,U(D,z,K,be);case V:return K=pl(K),$(z,D,L,K,be)}if(le(K)||me(K))return z=z.get(L)||null,P(D,z,K,be,null);if(typeof K.then=="function")return $(z,D,L,bi(K),be);if(K.$$typeof===M)return $(z,D,L,pi(D,K),be);xi(D,K)}return null}function fe(z,D,L,K){for(var be=null,Ue=null,ve=D,Ae=D=0,De=null;ve!==null&&Ae<L.length;Ae++){ve.index>Ae?(De=ve,ve=null):De=ve.sibling;var Be=H(z,ve,L[Ae],K);if(Be===null){ve===null&&(ve=De);break}e&&ve&&Be.alternate===null&&t(z,ve),D=c(Be,D,Ae),Ue===null?be=Be:Ue.sibling=Be,Ue=Be,ve=De}if(Ae===L.length)return a(z,ve),ke&&Zn(z,Ae),be;if(ve===null){for(;Ae<L.length;Ae++)ve=Z(z,L[Ae],K),ve!==null&&(D=c(ve,D,Ae),Ue===null?be=ve:Ue.sibling=ve,Ue=ve);return ke&&Zn(z,Ae),be}for(ve=r(ve);Ae<L.length;Ae++)De=$(ve,z,Ae,L[Ae],K),De!==null&&(e&&De.alternate!==null&&ve.delete(De.key===null?Ae:De.key),D=c(De,D,Ae),Ue===null?be=De:Ue.sibling=De,Ue=De);return e&&ve.forEach(function(Ya){return t(z,Ya)}),ke&&Zn(z,Ae),be}function we(z,D,L,K){if(L==null)throw Error(i(151));for(var be=null,Ue=null,ve=D,Ae=D=0,De=null,Be=L.next();ve!==null&&!Be.done;Ae++,Be=L.next()){ve.index>Ae?(De=ve,ve=null):De=ve.sibling;var Ya=H(z,ve,Be.value,K);if(Ya===null){ve===null&&(ve=De);break}e&&ve&&Ya.alternate===null&&t(z,ve),D=c(Ya,D,Ae),Ue===null?be=Ya:Ue.sibling=Ya,Ue=Ya,ve=De}if(Be.done)return a(z,ve),ke&&Zn(z,Ae),be;if(ve===null){for(;!Be.done;Ae++,Be=L.next())Be=Z(z,Be.value,K),Be!==null&&(D=c(Be,D,Ae),Ue===null?be=Be:Ue.sibling=Be,Ue=Be);return ke&&Zn(z,Ae),be}for(ve=r(ve);!Be.done;Ae++,Be=L.next())Be=$(ve,z,Ae,Be.value,K),Be!==null&&(e&&Be.alternate!==null&&ve.delete(Be.key===null?Ae:Be.key),D=c(Be,D,Ae),Ue===null?be=Be:Ue.sibling=Be,Ue=Be);return e&&ve.forEach(function(nw){return t(z,nw)}),ke&&Zn(z,Ae),be}function Qe(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 N: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),lo(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=fi(L.type,L.key,L.props,null,z.mode,K),lo(K,L),K.return=z,z=K)}return b(z);case T: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=Bc(L,z.mode,K),K.return=z,z=K}return b(z);case V:return L=pl(L),Qe(z,D,L,K)}if(le(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),we(z,D,L,K)}if(typeof L.then=="function")return Qe(z,D,bi(L),K);if(L.$$typeof===M)return Qe(z,D,pi(z,L),K);xi(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=Uc(L,z.mode,K),K.return=z,z=K),b(z)):a(z,D)}return function(z,D,L,K){try{ao=0;var be=Qe(z,D,L,K);return tr=null,be}catch(ve){if(ve===er||ve===vi)throw ve;var Ue=Kt(29,ve,null,z.mode);return Ue.lanes=K,Ue.return=z,Ue}finally{}}}var vl=eh(!0),th=eh(!1),Na=!1;function Ic(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fc(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 Ta(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=di(e),Bm(e,null,a),t}return ui(e,r,t,a),di(e)}function ro(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,zt(e,a)}}function Jc(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 Wc=!1;function oo(){if(Wc){var e=Wl;if(e!==null)throw e}}function io(e,t,a,r){Wc=!1;var s=e.updateQueue;Na=!1;var c=s.firstBaseUpdate,b=s.lastBaseUpdate,S=s.shared.pending;if(S!==null){s.shared.pending=null;var R=S,U=R.next;R.next=null,b===null?c=U:b.next=U,b=R;var P=e.alternate;P!==null&&(P=P.updateQueue,S=P.lastBaseUpdate,S!==b&&(S===null?P.firstBaseUpdate=U:S.next=U,P.lastBaseUpdate=R))}if(c!==null){var Z=s.baseState;b=0,P=U=R=null,S=c;do{var H=S.lane&-536870913,$=H!==S.lane;if($?(Me&H)===H:(r&H)===H){H!==0&&H===Jl&&(Wc=!0),P!==null&&(P=P.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var fe=e,we=S;H=t;var Qe=a;switch(we.tag){case 1:if(fe=we.payload,typeof fe=="function"){Z=fe.call(Qe,Z,H);break e}Z=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=we.payload,H=typeof fe=="function"?fe.call(Qe,Z,H):fe,H==null)break e;Z=g({},Z,H);break e;case 2:Na=!0}}H=S.callback,H!==null&&(e.flags|=64,$&&(e.flags|=8192),$=s.callbacks,$===null?s.callbacks=[H]:$.push(H))}else $={lane:H,tag:S.tag,payload:S.payload,callback:S.callback,next:null},P===null?(U=P=$,R=Z):P=P.next=$,b|=H;if(S=S.next,S===null){if(S=s.shared.pending,S===null)break;$=S,S=$.next,$.next=null,s.lastBaseUpdate=$,s.shared.pending=null}}while(!0);P===null&&(R=Z),s.baseState=R,s.firstBaseUpdate=U,s.lastBaseUpdate=P,c===null&&(s.shared.lanes=0),Oa|=b,e.lanes=b,e.memoizedState=Z}}function nh(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function ah(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)nh(a[e],t)}var nr=j(null),Si=j(0);function lh(e,t){e=oa,Q(Si,e),Q(nr,t),oa=e|t.baseLanes}function eu(){Q(Si,oa),Q(nr,nr.current)}function tu(){oa=Si.current,X(nr),X(Si)}var Zt=j(null),dn=null;function Aa(e){var t=e.alternate;Q(ot,ot.current&1),Q(Zt,e),dn===null&&(t===null||nr.current!==null||t.memoizedState!==null)&&(dn=e)}function nu(e){Q(ot,ot.current),Q(Zt,e),dn===null&&(dn=e)}function rh(e){e.tag===22?(Q(ot,ot.current),Q(Zt,e),dn===null&&(dn=e)):Ra()}function Ra(){Q(ot,ot.current),Q(Zt,Zt.current)}function It(e){X(Zt),dn===e&&(dn=null),X(ot)}var ot=j(0);function wi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||sd(a)||cd(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 Jn=0,Ce=null,Xe=null,ct=null,Ei=!1,ar=!1,yl=!1,Ni=0,so=0,lr=null,P1=0;function at(){throw Error(i(321))}function au(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Qt(e[a],t[a]))return!1;return!0}function lu(e,t,a,r,s,c){return Jn=c,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?$h:bu,yl=!1,c=a(r,s),yl=!1,ar&&(c=ih(t,a,r,s)),oh(e),c}function oh(e){O.H=fo;var t=Xe!==null&&Xe.next!==null;if(Jn=0,ct=Xe=Ce=null,Ei=!1,so=0,lr=null,t)throw Error(i(300));e===null||ut||(e=e.dependencies,e!==null&&hi(e)&&(ut=!0))}function ih(e,t,a,r){Ce=e;var s=0;do{if(ar&&(lr=null),so=0,ar=!1,25<=s)throw Error(i(301));if(s+=1,ct=Xe=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=qh,c=t(a,r)}while(ar);return c}function Q1(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?co(t):t,e=e.useState()[0],(Xe!==null?Xe.memoizedState:null)!==e&&(Ce.flags|=1024),t}function ru(){var e=Ni!==0;return Ni=0,e}function ou(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function iu(e){if(Ei){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ei=!1}Jn=0,ct=Xe=Ce=null,ar=!1,so=Ni=0,lr=null}function Dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ct===null?Ce.memoizedState=ct=e:ct=ct.next=e,ct}function it(){if(Xe===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=Xe.next;var t=ct===null?Ce.memoizedState:ct.next;if(t!==null)ct=t,Xe=e;else{if(e===null)throw Ce.alternate===null?Error(i(467)):Error(i(310));Xe=e,e={memoizedState:Xe.memoizedState,baseState:Xe.baseState,baseQueue:Xe.baseQueue,queue:Xe.queue,next:null},ct===null?Ce.memoizedState=ct=e:ct=ct.next=e}return ct}function Ti(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function co(e){var t=so;return so+=1,lr===null&&(lr=[]),e=Fm(lr,e,t),t=Ce,(ct===null?t.memoizedState:ct.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?$h:bu),e}function Ci(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return co(e);if(e.$$typeof===M)return Et(e)}throw Error(i(438,String(e)))}function su(e){var t=null,a=Ce.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=Ce.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=Ti(),Ce.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),r=0;r<e;r++)a[r]=re;return t.index++,a}function Wn(e,t){return typeof t=="function"?t(e):t}function Ai(e){var t=it();return cu(t,Xe,e)}function cu(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,R=null,U=t,P=!1;do{var Z=U.lane&-536870913;if(Z!==U.lane?(Me&Z)===Z:(Jn&Z)===Z){var H=U.revertLane;if(H===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null}),Z===Jl&&(P=!0);else if((Jn&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},R===null?(S=R=Z,b=c):R=R.next=Z,Ce.lanes|=H,Oa|=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},R===null?(S=R=H,b=c):R=R.next=H,Ce.lanes|=Z,Oa|=Z;U=U.next}while(U!==null&&U!==t);if(R===null?b=c:R.next=S,!Qt(c,e.memoizedState)&&(ut=!0,P&&(a=Wl,a!==null)))throw a;e.memoizedState=c,e.baseState=b,e.baseQueue=R,r.lastRenderedState=c}return s===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function uu(e){var t=it(),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);Qt(c,t.memoizedState)||(ut=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,r]}function sh(e,t,a){var r=Ce,s=it(),c=ke;if(c){if(a===void 0)throw Error(i(407));a=a()}else a=t();var b=!Qt((Xe||s).memoizedState,a);if(b&&(s.memoizedState=a,ut=!0),s=s.queue,mu(dh.bind(null,r,s,e),[e]),s.getSnapshot!==t||b||ct!==null&&ct.memoizedState.tag&1){if(r.flags|=2048,rr(9,{destroy:void 0},uh.bind(null,r,s,a,t),null),Ke===null)throw Error(i(349));c||(Jn&127)!==0||ch(r,t,a)}return a}function ch(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ce.updateQueue,t===null?(t=Ti(),Ce.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function uh(e,t,a,r){t.value=a,t.getSnapshot=r,fh(t)&&mh(e)}function dh(e,t,a){return a(function(){fh(t)&&mh(e)})}function fh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Qt(e,a)}catch{return!0}}function mh(e){var t=cl(e,2);t!==null&&qt(t,e,2)}function du(e){var t=Dt();if(typeof e=="function"){var a=e;if(e=a(),yl){pn(!0);try{a()}finally{pn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:e},t}function hh(e,t,a,r){return e.baseState=a,cu(e,Xe,typeof r=="function"?r:Wn)}function K1(e,t,a,r,s){if(ji(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,ph(t,c)):(c.next=a.next,t.pending=a.next=c)}}function ph(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),R=O.S;R!==null&&R(b,S),gh(e,t,S)}catch(U){fu(e,t,U)}finally{c!==null&&b.types!==null&&(c.types=b.types),O.T=c}}else try{c=a(s,r),gh(e,t,c)}catch(U){fu(e,t,U)}}function gh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){vh(e,t,r)},function(r){return fu(e,t,r)}):vh(e,t,a)}function vh(e,t,a){t.status="fulfilled",t.value=a,yh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,ph(e,a)))}function fu(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,yh(t),t=t.next;while(t!==r)}e.action=null}function yh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function bh(e,t){return t}function xh(e,t){if(ke){var a=Ke.formState;if(a!==null){e:{var r=Ce;if(ke){if(Fe){t:{for(var s=Fe,c=un;s.nodeType!==8;){if(!c){s=null;break t}if(s=fn(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){Fe=fn(s.nextSibling),r=s.data==="F!";break e}}wa(r)}r=!1}r&&(t=a[0])}}return a=Dt(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:bh,lastRenderedState:t},a.queue=r,a=Hh.bind(null,Ce,r),r.dispatch=a,r=du(!1),c=yu.bind(null,Ce,!1,r.queue),r=Dt(),s={state:t,dispatch:null,action:e,pending:null},r.queue=s,a=K1.bind(null,Ce,s,c,a),s.dispatch=a,r.memoizedState=e,[t,a,!1]}function Sh(e){var t=it();return wh(t,Xe,e)}function wh(e,t,a){if(t=cu(e,t,bh)[0],e=Ai(Wn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=co(t)}catch(b){throw b===er?vi:b}else r=t;t=it();var s=t.queue,c=s.dispatch;return a!==t.memoizedState&&(Ce.flags|=2048,rr(9,{destroy:void 0},Z1.bind(null,s,a),null)),[r,c,e]}function Z1(e,t){e.action=t}function Eh(e){var t=it(),a=Xe;if(a!==null)return wh(t,a,e);it(),t=t.memoizedState,a=it();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=Ce.updateQueue,t===null&&(t=Ti(),Ce.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 Nh(){return it().memoizedState}function Ri(e,t,a,r){var s=Dt();Ce.flags|=e,s.memoizedState=rr(1|t,{destroy:void 0},a,r===void 0?null:r)}function _i(e,t,a,r){var s=it();r=r===void 0?null:r;var c=s.memoizedState.inst;Xe!==null&&r!==null&&au(r,Xe.memoizedState.deps)?s.memoizedState=rr(t,c,a,r):(Ce.flags|=e,s.memoizedState=rr(1|t,c,a,r))}function Th(e,t){Ri(8390656,8,e,t)}function mu(e,t){_i(2048,8,e,t)}function I1(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=Ti(),Ce.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ch(e){var t=it().memoizedState;return I1({ref:t,nextImpl:e}),function(){if((He&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Ah(e,t){return _i(4,2,e,t)}function Rh(e,t){return _i(4,4,e,t)}function _h(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 jh(e,t,a){a=a!=null?a.concat([e]):null,_i(4,4,_h.bind(null,t,e),a)}function hu(){}function Oh(e,t){var a=it();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&au(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function Mh(e,t){var a=it();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&au(t,r[1]))return r[0];if(r=e(),yl){pn(!0);try{e()}finally{pn(!1)}}return a.memoizedState=[r,t],r}function pu(e,t,a){return a===void 0||(Jn&1073741824)!==0&&(Me&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Dp(),Ce.lanes|=e,Oa|=e,a)}function Dh(e,t,a,r){return Qt(a,t)?a:nr.current!==null?(e=pu(e,a,r),Qt(e,t)||(ut=!0),e):(Jn&42)===0||(Jn&1073741824)!==0&&(Me&261930)===0?(ut=!0,e.memoizedState=a):(e=Dp(),Ce.lanes|=e,Oa|=e,t)}function kh(e,t,a,r,s){var c=q.p;q.p=c!==0&&8>c?c:8;var b=O.T,S={};O.T=S,yu(e,!1,t,a);try{var R=s(),U=O.S;if(U!==null&&U(S,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var P=X1(R,r);uo(e,t,P,Wt(e))}else uo(e,t,r,Wt(e))}catch(Z){uo(e,t,{then:function(){},status:"rejected",reason:Z},Wt())}finally{q.p=c,b!==null&&S.types!==null&&(b.types=S.types),O.T=b}}function F1(){}function gu(e,t,a,r){if(e.tag!==5)throw Error(i(476));var s=zh(e).queue;kh(e,s,t,I,a===null?F1:function(){return Lh(e),a(r)})}function zh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:I,baseState:I,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:I},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Lh(e){var t=zh(e);t.next===null&&(t=e.alternate.memoizedState),uo(e,t.next.queue,{},Wt())}function vu(){return Et(Ro)}function Uh(){return it().memoizedState}function Bh(){return it().memoizedState}function J1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Wt();e=Ta(a);var r=Ca(t,e,a);r!==null&&(qt(r,t,a),ro(r,t,a)),t={cache:Pc()},e.payload=t;return}t=t.return}}function W1(e,t,a){var r=Wt();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ji(e)?Vh(t,a):(a=zc(e,t,a,r),a!==null&&(qt(a,e,r),Yh(a,t,r)))}function Hh(e,t,a){var r=Wt();uo(e,t,a,r)}function uo(e,t,a,r){var s={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ji(e))Vh(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,Qt(S,b))return ui(e,t,s,0),Ke===null&&ci(),!1}catch{}finally{}if(a=zc(e,t,s,r),a!==null)return qt(a,e,r),Yh(a,t,r),!0}return!1}function yu(e,t,a,r){if(r={lane:2,revertLane:Iu(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ji(e)){if(t)throw Error(i(479))}else t=zc(e,a,r,2),t!==null&&qt(t,e,2)}function ji(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Vh(e,t){ar=Ei=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Yh(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,zt(e,a)}}var fo={readContext:Et,use:Ci,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useLayoutEffect:at,useInsertionEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useSyncExternalStore:at,useId:at,useHostTransitionStatus:at,useFormState:at,useActionState:at,useOptimistic:at,useMemoCache:at,useCacheRefresh:at};fo.useEffectEvent=at;var $h={readContext:Et,use:Ci,useCallback:function(e,t){return Dt().memoizedState=[e,t===void 0?null:t],e},useContext:Et,useEffect:Th,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ri(4194308,4,_h.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=Dt();t=t===void 0?null:t;var r=e();if(yl){pn(!0);try{e()}finally{pn(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=Dt();if(a!==void 0){var s=a(t);if(yl){pn(!0);try{a(t)}finally{pn(!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=W1.bind(null,Ce,e),[r.memoizedState,e]},useRef:function(e){var t=Dt();return e={current:e},t.memoizedState=e},useState:function(e){e=du(e);var t=e.queue,a=Hh.bind(null,Ce,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:hu,useDeferredValue:function(e,t){var a=Dt();return pu(a,e,t)},useTransition:function(){var e=du(!1);return e=kh.bind(null,Ce,e.queue,!0,!1),Dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=Ce,s=Dt();if(ke){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),Ke===null)throw Error(i(349));(Me&127)!==0||ch(r,t,a)}s.memoizedState=a;var c={value:a,getSnapshot:t};return s.queue=c,Th(dh.bind(null,r,c,e),[e]),r.flags|=2048,rr(9,{destroy:void 0},uh.bind(null,r,c,a,t),null),a},useId:function(){var e=Dt(),t=Ke.identifierPrefix;if(ke){var a=Rn,r=An;a=(r&~(1<<32-Ct(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ni++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=P1++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:vu,useFormState:xh,useActionState:xh,useOptimistic:function(e){var t=Dt();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=yu.bind(null,Ce,!0,a),a.dispatch=t,[e,t]},useMemoCache:su,useCacheRefresh:function(){return Dt().memoizedState=J1.bind(null,Ce)},useEffectEvent:function(e){var t=Dt(),a={impl:e};return t.memoizedState=a,function(){if((He&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},bu={readContext:Et,use:Ci,useCallback:Oh,useContext:Et,useEffect:mu,useImperativeHandle:jh,useInsertionEffect:Ah,useLayoutEffect:Rh,useMemo:Mh,useReducer:Ai,useRef:Nh,useState:function(){return Ai(Wn)},useDebugValue:hu,useDeferredValue:function(e,t){var a=it();return Dh(a,Xe.memoizedState,e,t)},useTransition:function(){var e=Ai(Wn)[0],t=it().memoizedState;return[typeof e=="boolean"?e:co(e),t]},useSyncExternalStore:sh,useId:Uh,useHostTransitionStatus:vu,useFormState:Sh,useActionState:Sh,useOptimistic:function(e,t){var a=it();return hh(a,Xe,e,t)},useMemoCache:su,useCacheRefresh:Bh};bu.useEffectEvent=Ch;var qh={readContext:Et,use:Ci,useCallback:Oh,useContext:Et,useEffect:mu,useImperativeHandle:jh,useInsertionEffect:Ah,useLayoutEffect:Rh,useMemo:Mh,useReducer:uu,useRef:Nh,useState:function(){return uu(Wn)},useDebugValue:hu,useDeferredValue:function(e,t){var a=it();return Xe===null?pu(a,e,t):Dh(a,Xe.memoizedState,e,t)},useTransition:function(){var e=uu(Wn)[0],t=it().memoizedState;return[typeof e=="boolean"?e:co(e),t]},useSyncExternalStore:sh,useId:Uh,useHostTransitionStatus:vu,useFormState:Eh,useActionState:Eh,useOptimistic:function(e,t){var a=it();return Xe!==null?hh(a,Xe,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:su,useCacheRefresh:Bh};qh.useEffectEvent=Ch;function xu(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 Su={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=Wt(),s=Ta(r);s.payload=t,a!=null&&(s.callback=a),t=Ca(e,s,r),t!==null&&(qt(t,e,r),ro(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=Wt(),s=Ta(r);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=Ca(e,s,r),t!==null&&(qt(t,e,r),ro(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Wt(),r=Ta(a);r.tag=2,t!=null&&(r.callback=t),t=Ca(e,r,a),t!==null&&(qt(t,e,a),ro(t,e,a))}};function Gh(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?!Fr(a,r)||!Fr(s,c):!0}function Xh(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&&Su.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 Ph(e){si(e)}function Qh(e){console.error(e)}function Kh(e){si(e)}function Oi(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function Zh(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 wu(e,t,a){return a=Ta(a),a.tag=3,a.payload={element:null},a.callback=function(){Oi(e,t)},a}function Ih(e){return e=Ta(e),e.tag=3,e}function Fh(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(){Zh(t,a,r)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){Zh(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 eS(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=Zt.current,a!==null){switch(a.tag){case 31:case 13:return dn===null?qi():a.alternate===null&&lt===0&&(lt=3),a.flags&=-257,a.flags|=65536,a.lanes=s,r===yi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),Qu(e,r,s)),!1;case 22:return a.flags|=65536,r===yi?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)),Qu(e,r,s)),!1}throw Error(i(435,a.tag))}return Qu(e,r,s),qi(),!1}if(ke)return t=Zt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,r!==Yc&&(e=Error(i(422),{cause:r}),eo(on(e,a)))):(r!==Yc&&(t=Error(i(423),{cause:r}),eo(on(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,r=on(r,a),s=wu(e.stateNode,r,s),Jc(e,s),lt!==4&&(lt=2)),!1;var c=Error(i(520),{cause:r});if(c=on(c,a),xo===null?xo=[c]:xo.push(c),lt!==4&&(lt=2),t===null)return!0;r=on(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=wu(a.stateNode,r,e),Jc(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=Ih(s),Fh(s,e,a,r),Jc(a,s),!1}a=a.return}while(a!==null);return!1}var Eu=Error(i(461)),ut=!1;function Nt(e,t,a,r){t.child=e===null?th(t,null,a,r):vl(t,e.child,a,r)}function Jh(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=lu(e,t,a,b,c,s),S=ru(),e!==null&&!ut?(ou(e,t,s),ea(e,t,s)):(ke&&S&&Hc(t),t.flags|=1,Nt(e,t,r,s),t.child)}function Wh(e,t,a,r,s){if(e===null){var c=a.type;return typeof c=="function"&&!Lc(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,ep(e,t,c,r,s)):(e=fi(a.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Ou(e,s)){var b=c.memoizedProps;if(a=a.compare,a=a!==null?a:Fr,a(b,r)&&e.ref===t.ref)return ea(e,t,s)}return t.flags|=1,e=Kn(c,r),e.ref=t.ref,e.return=t,t.child=e}function ep(e,t,a,r,s){if(e!==null){var c=e.memoizedProps;if(Fr(c,r)&&e.ref===t.ref)if(ut=!1,t.pendingProps=r=c,Ou(e,s))(e.flags&131072)!==0&&(ut=!0);else return t.lanes=e.lanes,ea(e,t,s)}return Nu(e,t,a,r,s)}function tp(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 np(e,t,c,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&gi(t,c!==null?c.cachePool:null),c!==null?lh(t,c):eu(),rh(t);else return r=t.lanes=536870912,np(e,t,c!==null?c.baseLanes|a:a,a,r)}else c!==null?(gi(t,c.cachePool),lh(t,c),Ra(),t.memoizedState=null):(e!==null&&gi(t,null),eu(),Ra());return Nt(e,t,s,a),t.child}function mo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function np(e,t,a,r,s){var c=Kc();return c=c===null?null:{parent:st._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&gi(t,null),eu(),rh(t),e!==null&&Fl(e,t,r,!0),t.childLanes=s,null}function Mi(e,t){return t=ki({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function ap(e,t,a){return vl(t,e.child,null,a),e=Mi(t,t.pendingProps),e.flags|=2,It(t),t.memoizedState=null,e}function tS(e,t,a){var r=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ke){if(r.mode==="hidden")return e=Mi(t,r),t.lanes=536870912,mo(null,e);if(nu(t),(e=Fe)?(e=pg(e,un),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xa!==null?{id:An,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},a=Vm(e),a.return=t,t.child=a,wt=t,Fe=null)):e=null,e===null)throw wa(t);return t.lanes=536870912,null}return Mi(t,r)}var c=e.memoizedState;if(c!==null){var b=c.dehydrated;if(nu(t),s)if(t.flags&256)t.flags&=-257,t=ap(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(ut||Fl(e,t,a,!1),s=(a&e.childLanes)!==0,ut||s){if(r=Ke,r!==null&&(b=Lt(r,a),b!==0&&b!==c.retryLane))throw c.retryLane=b,cl(e,b),qt(r,e,b),Eu;qi(),t=ap(e,t,a)}else e=c.treeContext,Fe=fn(b.nextSibling),wt=t,ke=!0,Sa=null,un=!1,e!==null&&qm(t,e),t=Mi(t,r),t.flags|=4096;return t}return e=Kn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Di(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 Nu(e,t,a,r,s){return ml(t),a=lu(e,t,a,r,void 0,s),r=ru(),e!==null&&!ut?(ou(e,t,s),ea(e,t,s)):(ke&&r&&Hc(t),t.flags|=1,Nt(e,t,a,s),t.child)}function lp(e,t,a,r,s,c){return ml(t),t.updateQueue=null,a=ih(t,r,a,s),oh(e),r=ru(),e!==null&&!ut?(ou(e,t,c),ea(e,t,c)):(ke&&r&&Hc(t),t.flags|=1,Nt(e,t,a,c),t.child)}function rp(e,t,a,r,s){if(ml(t),t.stateNode===null){var c=Ql,b=a.contextType;typeof b=="object"&&b!==null&&(c=Et(b)),c=new a(r,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Su,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=r,c.state=t.memoizedState,c.refs={},Ic(t),b=a.contextType,c.context=typeof b=="object"&&b!==null?Et(b):Ql,c.state=t.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(xu(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&&Su.enqueueReplaceState(c,c.state,null),io(t,r,c,s),oo(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){c=t.stateNode;var S=t.memoizedProps,R=bl(a,S);c.props=R;var U=c.context,P=a.contextType;b=Ql,typeof P=="object"&&P!==null&&(b=Et(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)&&Xh(t,c,r,b),Na=!1;var H=t.memoizedState;c.state=H,io(t,r,c,s),oo(),U=t.memoizedState,S||H!==U||Na?(typeof Z=="function"&&(xu(t,a,Z,r),U=t.memoizedState),(R=Na||Gh(t,a,R,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=R):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{c=t.stateNode,Fc(e,t),b=t.memoizedProps,P=bl(a,b),c.props=P,Z=t.pendingProps,H=c.context,U=a.contextType,R=Ql,typeof U=="object"&&U!==null&&(R=Et(U)),S=a.getDerivedStateFromProps,(U=typeof S=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b!==Z||H!==R)&&Xh(t,c,r,R),Na=!1,H=t.memoizedState,c.state=H,io(t,r,c,s),oo();var $=t.memoizedState;b!==Z||H!==$||Na||e!==null&&e.dependencies!==null&&hi(e.dependencies)?(typeof S=="function"&&(xu(t,a,S,r),$=t.memoizedState),(P=Na||Gh(t,a,P,r,H,$,R)||e!==null&&e.dependencies!==null&&hi(e.dependencies))?(U||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,$,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,$,R)),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=$),c.props=r,c.state=$,c.context=R,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,Di(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)):Nt(e,t,a,s),t.memoizedState=c.state,e=t.child):e=ea(e,t,s),e}function op(e,t,a,r){return dl(),t.flags|=256,Nt(e,t,a,r),t.child}var Tu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Cu(e){return{baseLanes:e,cachePool:Zm()}}function Au(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Jt),e}function ip(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:(ot.current&2)!==0),b&&(s=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(ke){if(s?Aa(t):Ra(),(e=Fe)?(e=pg(e,un),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xa!==null?{id:An,overflow:Rn}:null,retryLane:536870912,hydrationErrors:null},a=Vm(e),a.return=t,t.child=a,wt=t,Fe=null)):e=null,e===null)throw wa(t);return cd(e)?t.lanes=32:t.lanes=536870912,null}var S=r.children;return r=r.fallback,s?(Ra(),s=t.mode,S=ki({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=Cu(a),r.childLanes=Au(e,b,a),t.memoizedState=Tu,mo(null,r)):(Aa(t),Ru(t,S))}var R=e.memoizedState;if(R!==null&&(S=R.dehydrated,S!==null)){if(c)t.flags&256?(Aa(t),t.flags&=-257,t=_u(e,t,a)):t.memoizedState!==null?(Ra(),t.child=e.child,t.flags|=128,t=null):(Ra(),S=r.fallback,s=t.mode,r=ki({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=Cu(a),r.childLanes=Au(e,b,a),t.memoizedState=Tu,t=mo(null,r));else if(Aa(t),cd(S)){if(b=S.nextSibling&&S.nextSibling.dataset,b)var U=b.dgst;b=U,r=Error(i(419)),r.stack="",r.digest=b,eo({value:r,source:null,stack:null}),t=_u(e,t,a)}else if(ut||Fl(e,t,a,!1),b=(a&e.childLanes)!==0,ut||b){if(b=Ke,b!==null&&(r=Lt(b,a),r!==0&&r!==R.retryLane))throw R.retryLane=r,cl(e,r),qt(b,e,r),Eu;sd(S)||qi(),t=_u(e,t,a)}else sd(S)?(t.flags|=192,t.child=e.child,t=null):(e=R.treeContext,Fe=fn(S.nextSibling),wt=t,ke=!0,Sa=null,un=!1,e!==null&&qm(t,e),t=Ru(t,r.children),t.flags|=4096);return t}return s?(Ra(),S=r.fallback,s=t.mode,R=e.child,U=R.sibling,r=Kn(R,{mode:"hidden",children:r.children}),r.subtreeFlags=R.subtreeFlags&65011712,U!==null?S=Kn(U,S):(S=ul(S,s,a,null),S.flags|=2),S.return=t,r.return=t,r.sibling=S,t.child=r,mo(null,r),r=t.child,S=e.child.memoizedState,S===null?S=Cu(a):(s=S.cachePool,s!==null?(R=st._currentValue,s=s.parent!==R?{parent:R,pool:R}:s):s=Zm(),S={baseLanes:S.baseLanes|a,cachePool:s}),r.memoizedState=S,r.childLanes=Au(e,b,a),t.memoizedState=Tu,mo(e.child,r)):(Aa(t),a=e.child,e=a.sibling,a=Kn(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 Ru(e,t){return t=ki({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ki(e,t){return e=Kt(22,e,null,t),e.lanes=0,e}function _u(e,t,a){return vl(t,e.child,null,a),e=Ru(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sp(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Gc(e.return,t,a)}function ju(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 cp(e,t,a){var r=t.pendingProps,s=r.revealOrder,c=r.tail;r=r.children;var b=ot.current,S=(b&2)!==0;if(S?(b=b&1|2,t.flags|=128):b&=1,Q(ot,b),Nt(e,t,r,a),r=ke?Wr:0,!S&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sp(e,a,t);else if(e.tag===19)sp(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&&wi(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),ju(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&&wi(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}ju(t,!0,a,null,c,r);break;case"together":ju(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function ea(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Oa|=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=Kn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Kn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ou(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&hi(e)))}function nS(e,t,a){switch(t.tag){case 3:ie(t,t.stateNode.containerInfo),Ea(t,st,e.memoizedState.cache),dl();break;case 27:case 5:xe(t);break;case 4:ie(t,t.stateNode.containerInfo);break;case 10:Ea(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,nu(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Aa(t),t.flags|=128,null):(a&t.child.childLanes)!==0?ip(e,t,a):(Aa(t),e=ea(e,t,a),e!==null?e.sibling:null);Aa(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 cp(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),Q(ot,ot.current),r)break;return null;case 22:return t.lanes=0,tp(e,t,a,t.pendingProps);case 24:Ea(t,st,e.memoizedState.cache)}return ea(e,t,a)}function up(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ut=!0;else{if(!Ou(e,a)&&(t.flags&128)===0)return ut=!1,nS(e,t,a);ut=(e.flags&131072)!==0}else ut=!1,ke&&(t.flags&1048576)!==0&&$m(t,Wr,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")Lc(e)?(r=bl(e,r),t.tag=1,t=rp(null,t,e,r,a)):(t.tag=0,t=Nu(null,t,e,r,a));else{if(e!=null){var s=e.$$typeof;if(s===k){t.tag=11,t=Jh(null,t,e,r,a);break e}else if(s===B){t.tag=14,t=Wh(null,t,e,r,a);break e}}throw t=de(e)||e,Error(i(306,t,""))}}return t;case 0:return Nu(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,s=bl(r,t.pendingProps),rp(e,t,r,s,a);case 3:e:{if(ie(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var c=t.memoizedState;s=c.element,Fc(e,t),io(t,r,null,a);var b=t.memoizedState;if(r=b.cache,Ea(t,st,r),r!==c.cache&&Xc(t,[st],a,!0),oo(),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=op(e,t,r,a);break e}else if(r!==s){s=on(Error(i(424)),t),eo(s),t=op(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(Fe=fn(e.firstChild),wt=t,ke=!0,Sa=null,un=!0,a=th(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(dl(),r===s){t=ea(e,t,a);break e}Nt(e,t,r,a)}t=t.child}return t;case 26:return Di(e,t),e===null?(a=Sg(t.type,null,t.pendingProps,null))?t.memoizedState=a:ke||(a=t.type,e=t.pendingProps,r=Ii(oe.current).createElement(a),r[St]=t,r[Ut]=e,Tt(r,a,e),bt(r),t.stateNode=r):t.memoizedState=Sg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xe(t),e===null&&ke&&(r=t.stateNode=yg(t.type,t.pendingProps,oe.current),wt=t,un=!0,s=Fe,La(t.type)?(ud=s,Fe=fn(r.firstChild)):Fe=s),Nt(e,t,t.pendingProps.children,a),Di(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ke&&((s=r=Fe)&&(r=MS(r,t.type,t.pendingProps,un),r!==null?(t.stateNode=r,wt=t,Fe=fn(r.firstChild),un=!1,s=!0):s=!1),s||wa(t)),xe(t),s=t.type,c=t.pendingProps,b=e!==null?e.memoizedProps:null,r=c.children,rd(s,c)?r=null:b!==null&&rd(s,b)&&(t.flags|=32),t.memoizedState!==null&&(s=lu(e,t,Q1,null,null,a),Ro._currentValue=s),Di(e,t),Nt(e,t,r,a),t.child;case 6:return e===null&&ke&&((e=a=Fe)&&(a=DS(a,t.pendingProps,un),a!==null?(t.stateNode=a,wt=t,Fe=null,e=!0):e=!1),e||wa(t)),null;case 13:return ip(e,t,a);case 4:return ie(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=vl(t,null,r,a):Nt(e,t,r,a),t.child;case 11:return Jh(e,t,t.type,t.pendingProps,a);case 7:return Nt(e,t,t.pendingProps,a),t.child;case 8:return Nt(e,t,t.pendingProps.children,a),t.child;case 12:return Nt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,Ea(t,t.type,r.value),Nt(e,t,r.children,a),t.child;case 9:return s=t.type._context,r=t.pendingProps.children,ml(t),s=Et(s),r=r(s),t.flags|=1,Nt(e,t,r,a),t.child;case 14:return Wh(e,t,t.type,t.pendingProps,a);case 15:return ep(e,t,t.type,t.pendingProps,a);case 19:return cp(e,t,a);case 31:return tS(e,t,a);case 22:return tp(e,t,a,t.pendingProps);case 24:return ml(t),r=Et(st),e===null?(s=Kc(),s===null&&(s=Ke,c=Pc(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=a),s=c),t.memoizedState={parent:r,cache:s},Ic(t),Ea(t,st,s)):((e.lanes&a)!==0&&(Fc(e,t),io(t,null,null,a),oo()),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),Ea(t,st,r)):(r=c.cache,Ea(t,st,r),r!==s.cache&&Xc(t,[st],a,!0))),Nt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ta(e){e.flags|=4}function Mu(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(Up())e.flags|=8192;else throw gl=yi,Zc}else e.flags&=-16777217}function dp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Cg(t))if(Up())e.flags|=8192;else throw gl=yi,Zc}function zi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?At():536870912,e.lanes|=t,cr|=t)}function ho(e,t){if(!ke)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 Je(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 aS(e,t,a){var r=t.pendingProps;switch(Vc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return Je(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Fn(st),J(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Il(t)?ta(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,$c())),Je(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(ta(t),c!==null?(Je(t),dp(t,c)):(Je(t),Mu(t,s,null,r,a))):c?c!==e.memoizedState?(ta(t),Je(t),dp(t,c)):(Je(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&ta(t),Je(t),Mu(t,s,e,r,a)),null;case 27:if(ye(t),a=oe.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ta(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Je(t),null}e=W.current,Il(t)?Gm(t):(e=yg(s,r,a),t.stateNode=e,ta(t))}return Je(t),null;case 5:if(ye(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ta(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Je(t),null}if(c=W.current,Il(t))Gm(t);else{var b=Ii(oe.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[St]=t,c[Ut]=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(Tt(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&&ta(t)}}return Je(t),Mu(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ta(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(i(166));if(e=oe.current,Il(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,s=wt,s!==null)switch(s.tag){case 27:case 5:r=s.memoizedProps}e[St]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||ig(e.nodeValue,a)),e||wa(t,!0)}else e=Ii(e).createTextNode(r),e[St]=t,t.stateNode=e}return Je(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[St]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),e=!1}else a=$c(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(It(t),t):(It(t),null);if((t.flags&128)!==0)throw Error(i(558))}return Je(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[St]=t}else dl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Je(t),s=!1}else s=$c(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(It(t),t):(It(t),null)}return It(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),zi(t,t.updateQueue),Je(t),null);case 4:return J(),e===null&&ed(t.stateNode.containerInfo),Je(t),null;case 10:return Fn(t.type),Je(t),null;case 19:if(X(ot),r=t.memoizedState,r===null)return Je(t),null;if(s=(t.flags&128)!==0,c=r.rendering,c===null)if(s)ho(r,!1);else{if(lt!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=wi(e),c!==null){for(t.flags|=128,ho(r,!1),e=c.updateQueue,t.updateQueue=e,zi(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Hm(a,e),a=a.sibling;return Q(ot,ot.current&1|2),ke&&Zn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ot()>Vi&&(t.flags|=128,s=!0,ho(r,!1),t.lanes=4194304)}else{if(!s)if(e=wi(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,zi(t,e),ho(r,!0),r.tail===null&&r.tailMode==="hidden"&&!c.alternate&&!ke)return Je(t),null}else 2*Ot()-r.renderingStartTime>Vi&&a!==536870912&&(t.flags|=128,s=!0,ho(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=Ot(),e.sibling=null,a=ot.current,Q(ot,s?a&1|2:a&1),ke&&Zn(t,r.treeForkCount),e):(Je(t),null);case 22:case 23:return It(t),tu(),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&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),a=t.updateQueue,a!==null&&zi(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),Fn(st),Je(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function lS(e,t){switch(Vc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fn(st),J(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ye(t),null;case 31:if(t.memoizedState!==null){if(It(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(It(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(ot),null;case 4:return J(),null;case 10:return Fn(t.type),null;case 22:case 23:return It(t),tu(),e!==null&&X(hl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Fn(st),null;case 25:return null;default:return null}}function fp(e,t){switch(Vc(t),t.tag){case 3:Fn(st),J();break;case 26:case 27:case 5:ye(t);break;case 4:J();break;case 31:t.memoizedState!==null&&It(t);break;case 13:It(t);break;case 19:X(ot);break;case 10:Fn(t.type);break;case 22:case 23:It(t),tu(),e!==null&&X(hl);break;case 24:Fn(st)}}function po(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){Ge(t,t.return,S)}}function _a(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 R=a,U=S;try{U()}catch(P){Ge(s,R,P)}}}r=r.next}while(r!==c)}}catch(P){Ge(t,t.return,P)}}function mp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{ah(t,a)}catch(r){Ge(e,e.return,r)}}}function hp(e,t,a){a.props=bl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){Ge(e,t,r)}}function go(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){Ge(e,t,s)}}function _n(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(s){Ge(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){Ge(e,t,s)}else a.current=null}function pp(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){Ge(e,e.return,s)}}function Du(e,t,a){try{var r=e.stateNode;CS(r,e.type,a,t),r[Ut]=t}catch(s){Ge(e,e.return,s)}}function gp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&La(e.type)||e.tag===4}function ku(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||gp(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&&La(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 zu(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=Pn));else if(r!==4&&(r===27&&La(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(zu(e,t,a),e=e.sibling;e!==null;)zu(e,t,a),e=e.sibling}function Li(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&&La(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Li(e,t,a),e=e.sibling;e!==null;)Li(e,t,a),e=e.sibling}function vp(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Tt(t,r,a),t[St]=e,t[Ut]=a}catch(c){Ge(e,e.return,c)}}var na=!1,dt=!1,Lu=!1,yp=typeof WeakSet=="function"?WeakSet:Set,xt=null;function rS(e,t){if(e=e.containerInfo,ad=as,e=jm(e),_c(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var 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,R=-1,U=0,P=0,Z=e,H=null;t:for(;;){for(var $;Z!==a||s!==0&&Z.nodeType!==3||(S=b+s),Z!==c||r!==0&&Z.nodeType!==3||(R=b+r),Z.nodeType===3&&(b+=Z.nodeValue.length),($=Z.firstChild)!==null;)H=Z,Z=$;for(;;){if(Z===e)break t;if(H===a&&++U===s&&(S=b),H===c&&++P===r&&(R=b),($=Z.nextSibling)!==null)break;Z=H,H=Z.parentNode}Z=$}a=S===-1||R===-1?null:{start:S,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(ld={focusedElem:e,selectionRange:a},as=!1,xt=t;xt!==null;)if(t=xt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,xt=e;else for(;xt!==null;){switch(t=xt,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(we){Ge(a,a.return,we)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)id(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":id(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,xt=e;break}xt=t.return}}function bp(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:la(e,a),r&4&&po(5,a);break;case 1:if(la(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(b){Ge(a,a.return,b)}else{var s=bl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Ge(a,a.return,b)}}r&64&&mp(a),r&512&&go(a,a.return);break;case 3:if(la(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{ah(e,t)}catch(b){Ge(a,a.return,b)}}break;case 27:t===null&&r&4&&vp(a);case 26:case 5:la(e,a),t===null&&r&4&&pp(a),r&512&&go(a,a.return);break;case 12:la(e,a);break;case 31:la(e,a),r&4&&wp(e,a);break;case 13:la(e,a),r&4&&Ep(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=hS.bind(null,a),kS(e,a))));break;case 22:if(r=a.memoizedState!==null||na,!r){t=t!==null&&t.memoizedState!==null||dt,s=na;var c=dt;na=r,(dt=t)&&!c?ra(e,a,(a.subtreeFlags&8772)!==0):la(e,a),na=s,dt=c}break;case 30:break;default:la(e,a)}}function xp(e){var t=e.alternate;t!==null&&(e.alternate=null,xp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&fc(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 et=null,Ht=!1;function aa(e,t,a){for(a=a.child;a!==null;)Sp(e,t,a),a=a.sibling}function Sp(e,t,a){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(nl,a)}catch{}switch(a.tag){case 26:dt||_n(a,t),aa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:dt||_n(a,t);var r=et,s=Ht;La(a.type)&&(et=a.stateNode,Ht=!1),aa(e,t,a),To(a.stateNode),et=r,Ht=s;break;case 5:dt||_n(a,t);case 6:if(r=et,s=Ht,et=null,aa(e,t,a),et=r,Ht=s,et!==null)if(Ht)try{(et.nodeType===9?et.body:et.nodeName==="HTML"?et.ownerDocument.body:et).removeChild(a.stateNode)}catch(c){Ge(a,t,c)}else try{et.removeChild(a.stateNode)}catch(c){Ge(a,t,c)}break;case 18:et!==null&&(Ht?(e=et,mg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),vr(e)):mg(et,a.stateNode));break;case 4:r=et,s=Ht,et=a.stateNode.containerInfo,Ht=!0,aa(e,t,a),et=r,Ht=s;break;case 0:case 11:case 14:case 15:_a(2,a,t),dt||_a(4,a,t),aa(e,t,a);break;case 1:dt||(_n(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&hp(a,t,r)),aa(e,t,a);break;case 21:aa(e,t,a);break;case 22:dt=(r=dt)||a.memoizedState!==null,aa(e,t,a),dt=r;break;default:aa(e,t,a)}}function wp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{vr(e)}catch(a){Ge(t,t.return,a)}}}function Ep(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){Ge(t,t.return,a)}}function oS(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new yp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new yp),t;default:throw Error(i(435,e.tag))}}function Ui(e,t){var a=oS(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var s=pS.bind(null,e,r);r.then(s,s)}})}function Vt(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(La(S.type)){et=S.stateNode,Ht=!1;break e}break;case 5:et=S.stateNode,Ht=!1;break e;case 3:case 4:et=S.stateNode.containerInfo,Ht=!0;break e}S=S.return}if(et===null)throw Error(i(160));Sp(c,b,s),et=null,Ht=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Np(t,e),t=t.sibling}var yn=null;function Np(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Vt(t,e),Yt(e),r&4&&(_a(3,e,e.return),po(3,e),_a(5,e,e.return));break;case 1:Vt(t,e),Yt(e),r&512&&(dt||a===null||_n(a,a.return)),r&64&&na&&(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=yn;if(Vt(t,e),Yt(e),r&512&&(dt||a===null||_n(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[St]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(r),s.head.insertBefore(c,s.querySelector("head > title"))),Tt(c,r,a),c[St]=e,bt(c),r=c;break e;case"link":var b=Ng("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),Tt(c,r,a),s.head.appendChild(c);break;case"meta":if(b=Ng("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),Tt(c,r,a),s.head.appendChild(c);break;default:throw Error(i(468,r))}c[St]=e,bt(c),r=c}e.stateNode=r}else Tg(s,e.type,e.stateNode);else e.stateNode=Eg(s,r,e.memoizedProps);else c!==r?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,r===null?Tg(s,e.type,e.stateNode):Eg(s,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Du(e,e.memoizedProps,a.memoizedProps)}break;case 27:Vt(t,e),Yt(e),r&512&&(dt||a===null||_n(a,a.return)),a!==null&&r&4&&Du(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Vt(t,e),Yt(e),r&512&&(dt||a===null||_n(a,a.return)),e.flags&32){s=e.stateNode;try{Vl(s,"")}catch(fe){Ge(e,e.return,fe)}}r&4&&e.stateNode!=null&&(s=e.memoizedProps,Du(e,s,a!==null?a.memoizedProps:s)),r&1024&&(Lu=!0);break;case 6:if(Vt(t,e),Yt(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(fe){Ge(e,e.return,fe)}}break;case 3:if(Wi=null,s=yn,yn=Fi(t.containerInfo),Vt(t,e),yn=s,Yt(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{vr(t.containerInfo)}catch(fe){Ge(e,e.return,fe)}Lu&&(Lu=!1,Tp(e));break;case 4:r=yn,yn=Fi(e.stateNode.containerInfo),Vt(t,e),Yt(e),yn=r;break;case 12:Vt(t,e),Yt(e);break;case 31:Vt(t,e),Yt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Ui(e,r)));break;case 13:Vt(t,e),Yt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Hi=Ot()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Ui(e,r)));break;case 22:s=e.memoizedState!==null;var R=a!==null&&a.memoizedState!==null,U=na,P=dt;if(na=U||s,dt=P||R,Vt(t,e),dt=P,na=U,Yt(e),r&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||R||na||dt||xl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){R=a=t;try{if(c=R.stateNode,s)b=c.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{S=R.stateNode;var Z=R.memoizedProps.style,H=Z!=null&&Z.hasOwnProperty("display")?Z.display:null;S.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(fe){Ge(R,R.return,fe)}}}else if(t.tag===6){if(a===null){R=t;try{R.stateNode.nodeValue=s?"":R.memoizedProps}catch(fe){Ge(R,R.return,fe)}}}else if(t.tag===18){if(a===null){R=t;try{var $=R.stateNode;s?hg($,!0):hg(R.stateNode,!1)}catch(fe){Ge(R,R.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,Ui(e,a))));break;case 19:Vt(t,e),Yt(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Ui(e,r)));break;case 30:break;case 21:break;default:Vt(t,e),Yt(e)}}function Yt(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(gp(r)){a=r;break}r=r.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var s=a.stateNode,c=ku(e);Li(e,c,s);break;case 5:var b=a.stateNode;a.flags&32&&(Vl(b,""),a.flags&=-33);var S=ku(e);Li(e,S,b);break;case 3:case 4:var R=a.stateNode.containerInfo,U=ku(e);zu(e,U,R);break;default:throw Error(i(161))}}catch(P){Ge(e,e.return,P)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Tp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Tp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function la(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)bp(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:_a(4,t,t.return),xl(t);break;case 1:_n(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&hp(t,t.return,a),xl(t);break;case 27:To(t.stateNode);case 26:case 5:_n(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 ra(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:ra(s,c,a),po(4,c);break;case 1:if(ra(s,c,a),r=c,s=r.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(U){Ge(r,r.return,U)}if(r=c,s=r.updateQueue,s!==null){var S=r.stateNode;try{var R=s.shared.hiddenCallbacks;if(R!==null)for(s.shared.hiddenCallbacks=null,s=0;s<R.length;s++)nh(R[s],S)}catch(U){Ge(r,r.return,U)}}a&&b&64&&mp(c),go(c,c.return);break;case 27:vp(c);case 26:case 5:ra(s,c,a),a&&r===null&&b&4&&pp(c),go(c,c.return);break;case 12:ra(s,c,a);break;case 31:ra(s,c,a),a&&b&4&&wp(s,c);break;case 13:ra(s,c,a),a&&b&4&&Ep(s,c);break;case 22:c.memoizedState===null&&ra(s,c,a),go(c,c.return);break;case 30:break;default:ra(s,c,a)}t=t.sibling}}function Uu(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&&to(a))}function Bu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&to(e))}function bn(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Cp(e,t,a,r),t=t.sibling}function Cp(e,t,a,r){var s=t.flags;switch(t.tag){case 0:case 11:case 15:bn(e,t,a,r),s&2048&&po(9,t);break;case 1:bn(e,t,a,r);break;case 3:bn(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&&to(e)));break;case 12:if(s&2048){bn(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(R){Ge(t,t.return,R)}}else bn(e,t,a,r);break;case 31:bn(e,t,a,r);break;case 13:bn(e,t,a,r);break;case 23:break;case 22:c=t.stateNode,b=t.alternate,t.memoizedState!==null?c._visibility&2?bn(e,t,a,r):vo(e,t):c._visibility&2?bn(e,t,a,r):(c._visibility|=2,or(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Uu(b,t);break;case 24:bn(e,t,a,r),s&2048&&Bu(t.alternate,t);break;default:bn(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=r,U=b.flags;switch(b.tag){case 0:case 11:case 15:or(c,b,S,R,s),po(8,b);break;case 23:break;case 22:var P=b.stateNode;b.memoizedState!==null?P._visibility&2?or(c,b,S,R,s):vo(c,b):(P._visibility|=2,or(c,b,S,R,s)),s&&U&2048&&Uu(b.alternate,b);break;case 24:or(c,b,S,R,s),s&&U&2048&&Bu(b.alternate,b);break;default:or(c,b,S,R,s)}t=t.sibling}}function vo(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:vo(a,r),s&2048&&Uu(r.alternate,r);break;case 24:vo(a,r),s&2048&&Bu(r.alternate,r);break;default:vo(a,r)}t=t.sibling}}var yo=8192;function ir(e,t,a){if(e.subtreeFlags&yo)for(e=e.child;e!==null;)Ap(e,t,a),e=e.sibling}function Ap(e,t,a){switch(e.tag){case 26:ir(e,t,a),e.flags&yo&&e.memoizedState!==null&&PS(a,yn,e.memoizedState,e.memoizedProps);break;case 5:ir(e,t,a);break;case 3:case 4:var r=yn;yn=Fi(e.stateNode.containerInfo),ir(e,t,a),yn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=yo,yo=16777216,ir(e,t,a),yo=r):ir(e,t,a));break;default:ir(e,t,a)}}function Rp(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 bo(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];xt=r,jp(r,e)}Rp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)_p(e),e=e.sibling}function _p(e){switch(e.tag){case 0:case 11:case 15:bo(e),e.flags&2048&&_a(9,e,e.return);break;case 3:bo(e);break;case 12:bo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Bi(e)):bo(e);break;default:bo(e)}}function Bi(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];xt=r,jp(r,e)}Rp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:_a(8,t,t.return),Bi(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,Bi(t));break;default:Bi(t)}e=e.sibling}}function jp(e,t){for(;xt!==null;){var a=xt;switch(a.tag){case 0:case 11:case 15:_a(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:to(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,xt=r;else e:for(a=e;xt!==null;){r=xt;var s=r.sibling,c=r.return;if(xp(r),r===a){xt=null;break e}if(s!==null){s.return=c,xt=s;break e}xt=c}}}var iS={getCacheForType:function(e){var t=Et(st),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Et(st).controller.signal}},sS=typeof WeakMap=="function"?WeakMap:Map,He=0,Ke=null,_e=null,Me=0,qe=0,Ft=null,ja=!1,sr=!1,Hu=!1,oa=0,lt=0,Oa=0,Sl=0,Vu=0,Jt=0,cr=0,xo=null,$t=null,Yu=!1,Hi=0,Op=0,Vi=1/0,Yi=null,Ma=null,mt=0,Da=null,ur=null,ia=0,$u=0,qu=null,Mp=null,So=0,Gu=null;function Wt(){return(He&2)!==0&&Me!==0?Me&-Me:O.T!==null?Iu():uc()}function Dp(){if(Jt===0)if((Me&536870912)===0||ke){var e=Ml;Ml<<=1,(Ml&3932160)===0&&(Ml=262144),Jt=e}else Jt=536870912;return e=Zt.current,e!==null&&(e.flags|=32),Jt}function qt(e,t,a){(e===Ke&&(qe===2||qe===9)||e.cancelPendingCommit!==null)&&(dr(e,0),ka(e,Me,Jt,!1)),nt(e,a),((He&2)===0||e!==Ke)&&(e===Ke&&((He&2)===0&&(Sl|=a),lt===4&&ka(e,Me,Jt,!1)),jn(e))}function kp(e,t,a){if((He&6)!==0)throw Error(i(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||We(e,t),s=r?dS(e,t):Pu(e,t,!0),c=r;do{if(s===0){sr&&!r&&ka(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!cS(a)){s=Pu(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=xo;var R=S.current.memoizedState.isDehydrated;if(R&&(dr(S,b).flags|=256),b=Pu(S,b,!1),b!==2){if(Hu&&!R){S.errorRecoveryDisabledLanes|=c,Sl|=c,s=4;break e}c=$t,$t=s,c!==null&&($t===null?$t=c:$t.push.apply($t,c))}s=b}if(c=!1,s!==2)continue}}if(s===1){dr(e,0),ka(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:ka(r,t,Jt,!ja);break e;case 2:$t=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(s=Hi+300-Ot(),10<s)){if(ka(r,t,Jt,!ja),Ne(r,0,!0)!==0)break e;ia=t,r.timeoutHandle=dg(zp.bind(null,r,a,$t,Yi,Yu,t,Jt,Sl,cr,ja,c,"Throttled",-0,0),s);break e}zp(r,a,$t,Yi,Yu,t,Jt,Sl,cr,ja,c,null,-0,0)}}break}while(!0);jn(e)}function zp(e,t,a,r,s,c,b,S,R,U,P,Z,H,$){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:Pn},Ap(t,c,Z);var fe=(c&62914560)===c?Hi-Ot():(c&4194048)===c?Op-Ot():0;if(fe=QS(Z,fe),fe!==null){ia=c,e.cancelPendingCommit=fe(qp.bind(null,e,t,c,a,r,s,b,S,R,P,Z,null,H,$)),ka(e,c,b,!U);return}}qp(e,t,c,a,r,s,b,S,R)}function cS(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(!Qt(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 ka(e,t,a,r){t&=~Vu,t&=~Sl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var s=t;0<s;){var c=31-Ct(s),b=1<<c;r[c]=-1,s&=~b}a!==0&&ll(e,a,t)}function $i(){return(He&6)===0?(wo(0),!1):!0}function Xu(){if(_e!==null){if(qe===0)var e=_e.return;else e=_e,In=fl=null,iu(e),tr=null,ao=0,e=_e;for(;e!==null;)fp(e.alternate,e),e=e.return;_e=null}}function dr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,_S(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),ia=0,Xu(),Ke=e,_e=a=Kn(e.current,null),Me=t,qe=0,Ft=null,ja=!1,sr=We(e,t),Hu=!1,cr=Jt=Vu=Sl=Oa=lt=0,$t=xo=null,Yu=!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-Ct(r),c=1<<s;t|=e[s],r&=~c}return oa=t,ci(),a}function Lp(e,t){Ce=null,O.H=fo,t===er||t===vi?(t=Jm(),qe=3):t===Zc?(t=Jm(),qe=4):qe=t===Eu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ft=t,_e===null&&(lt=1,Oi(e,on(t,e.current)))}function Up(){var e=Zt.current;return e===null?!0:(Me&4194048)===Me?dn===null:(Me&62914560)===Me||(Me&536870912)!==0?e===dn:!1}function Bp(){var e=O.H;return O.H=fo,e===null?fo:e}function Hp(){var e=O.A;return O.A=iS,e}function qi(){lt=4,ja||(Me&4194048)!==Me&&Zt.current!==null||(sr=!0),(Oa&134217727)===0&&(Sl&134217727)===0||Ke===null||ka(Ke,Me,Jt,!1)}function Pu(e,t,a){var r=He;He|=2;var s=Bp(),c=Hp();(Ke!==e||Me!==t)&&(Yi=null,dr(e,t)),t=!1;var b=lt;e:do try{if(qe!==0&&_e!==null){var S=_e,R=Ft;switch(qe){case 8:Xu(),b=6;break e;case 3:case 2:case 9:case 6:Zt.current===null&&(t=!0);var U=qe;if(qe=0,Ft=null,fr(e,S,R,U),a&&sr){b=0;break e}break;default:U=qe,qe=0,Ft=null,fr(e,S,R,U)}}uS(),b=lt;break}catch(P){Lp(e,P)}while(!0);return t&&e.shellSuspendCounter++,In=fl=null,He=r,O.H=s,O.A=c,_e===null&&(Ke=null,Me=0,ci()),b}function uS(){for(;_e!==null;)Vp(_e)}function dS(e,t){var a=He;He|=2;var r=Bp(),s=Hp();Ke!==e||Me!==t?(Yi=null,Vi=Ot()+500,dr(e,t)):sr=We(e,t);e:do try{if(qe!==0&&_e!==null){t=_e;var c=Ft;t:switch(qe){case 1:qe=0,Ft=null,fr(e,t,c,1);break;case 2:case 9:if(Im(c)){qe=0,Ft=null,Yp(t);break}t=function(){qe!==2&&qe!==9||Ke!==e||(qe=7),jn(e)},c.then(t,t);break e;case 3:qe=7;break e;case 4:qe=5;break e;case 7:Im(c)?(qe=0,Ft=null,Yp(t)):(qe=0,Ft=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?Cg(b):S.stateNode.complete){qe=0,Ft=null;var R=S.sibling;if(R!==null)_e=R;else{var U=S.return;U!==null?(_e=U,Gi(U)):_e=null}break t}}qe=0,Ft=null,fr(e,t,c,5);break;case 6:qe=0,Ft=null,fr(e,t,c,6);break;case 8:Xu(),lt=6;break e;default:throw Error(i(462))}}fS();break}catch(P){Lp(e,P)}while(!0);return In=fl=null,O.H=r,O.A=s,He=a,_e!==null?0:(Ke=null,Me=0,ci(),lt)}function fS(){for(;_e!==null&&!jt();)Vp(_e)}function Vp(e){var t=up(e.alternate,e,oa);e.memoizedProps=e.pendingProps,t===null?Gi(e):_e=t}function Yp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=lp(a,t,t.pendingProps,t.type,void 0,Me);break;case 11:t=lp(a,t,t.pendingProps,t.type.render,t.ref,Me);break;case 5:iu(t);default:fp(a,t),t=_e=Hm(t,oa),t=up(a,t,oa)}e.memoizedProps=e.pendingProps,t===null?Gi(e):_e=t}function fr(e,t,a,r){In=fl=null,iu(t),tr=null,ao=0;var s=t.return;try{if(eS(e,s,t,a,Me)){lt=1,Oi(e,on(a,e.current)),_e=null;return}}catch(c){if(s!==null)throw _e=s,c;lt=1,Oi(e,on(a,e.current)),_e=null;return}t.flags&32768?(ke||r===1?e=!0:sr||(Me&536870912)!==0?e=!1:(ja=e=!0,(r===2||r===9||r===3||r===6)&&(r=Zt.current,r!==null&&r.tag===13&&(r.flags|=16384))),$p(t,e)):Gi(t)}function Gi(e){var t=e;do{if((t.flags&32768)!==0){$p(t,ja);return}e=t.return;var a=aS(t.alternate,t,oa);if(a!==null){_e=a;return}if(t=t.sibling,t!==null){_e=t;return}_e=t=e}while(t!==null);lt===0&&(lt=5)}function $p(e,t){do{var a=lS(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);lt=6,_e=null}function qp(e,t,a,r,s,c,b,S,R){e.cancelPendingCommit=null;do Xi();while(mt!==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|=kc,kt(e,a,c,b,S,R),e===Ke&&(_e=Ke=null,Me=0),ur=t,Da=e,ia=a,$u=c,qu=s,Mp=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,gS(tl,function(){return Kp(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=O.T,O.T=null,s=q.p,q.p=2,b=He,He|=4;try{rS(e,t,a)}finally{He=b,q.p=s,O.T=r}}mt=1,Gp(),Xp(),Pp()}}function Gp(){if(mt===1){mt=0;var e=Da,t=ur,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var r=q.p;q.p=2;var s=He;He|=4;try{Np(t,e);var c=ld,b=jm(e.containerInfo),S=c.focusedElem,R=c.selectionRange;if(b!==S&&S&&S.ownerDocument&&_m(S.ownerDocument.documentElement,S)){if(R!==null&&_c(S)){var U=R.start,P=R.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 $=H.getSelection(),fe=S.textContent.length,we=Math.min(R.start,fe),Qe=R.end===void 0?we:Math.min(R.end,fe);!$.extend&&we>Qe&&(b=Qe,Qe=we,we=b);var z=Rm(S,we),D=Rm(S,Qe);if(z&&D&&($.rangeCount!==1||$.anchorNode!==z.node||$.anchorOffset!==z.offset||$.focusNode!==D.node||$.focusOffset!==D.offset)){var L=Z.createRange();L.setStart(z.node,z.offset),$.removeAllRanges(),we>Qe?($.addRange(L),$.extend(D.node,D.offset)):(L.setEnd(D.node,D.offset),$.addRange(L))}}}}for(Z=[],$=S;$=$.parentNode;)$.nodeType===1&&Z.push({element:$,left:$.scrollLeft,top:$.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}}as=!!ad,ld=ad=null}finally{He=s,q.p=r,O.T=a}}e.current=t,mt=2}}function Xp(){if(mt===2){mt=0;var e=Da,t=ur,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var r=q.p;q.p=2;var s=He;He|=4;try{bp(e,t.alternate,t)}finally{He=s,q.p=r,O.T=a}}mt=3}}function Pp(){if(mt===4||mt===3){mt=0,pa();var e=Da,t=ur,a=ia,r=Mp;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?mt=5:(mt=0,ur=Da=null,Qp(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(Ma=null),gn(a),t=t.stateNode,Mt&&typeof Mt.onCommitFiberRoot=="function")try{Mt.onCommitFiberRoot(nl,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=O.T,s=q.p,q.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,q.p=s}}(ia&3)!==0&&Xi(),jn(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===Gu?So++:(So=0,Gu=e):So=0,wo(0)}}function Qp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,to(t)))}function Xi(){return Gp(),Xp(),Pp(),Kp()}function Kp(){if(mt!==5)return!1;var e=Da,t=$u;$u=0;var a=gn(ia),r=O.T,s=q.p;try{q.p=32>a?32:a,O.T=null,a=qu,qu=null;var c=Da,b=ia;if(mt=0,ur=Da=null,ia=0,(He&6)!==0)throw Error(i(331));var S=He;if(He|=4,_p(c.current),Cp(c,c.current,b,a),He=S,wo(0,!1),Mt&&typeof Mt.onPostCommitFiberRoot=="function")try{Mt.onPostCommitFiberRoot(nl,c)}catch{}return!0}finally{q.p=s,O.T=r,Qp(e,t)}}function Zp(e,t,a){t=on(a,t),t=wu(e.stateNode,t,2),e=Ca(e,t,2),e!==null&&(nt(e,2),jn(e))}function Ge(e,t,a){if(e.tag===3)Zp(e,e,a);else for(;t!==null;){if(t.tag===3){Zp(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=on(a,e),a=Ih(2),r=Ca(t,a,2),r!==null&&(Fh(a,r,t,e),nt(r,2),jn(r));break}}t=t.return}}function Qu(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new sS;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)||(Hu=!0,s.add(a),e=mS.bind(null,e,t,a),t.then(e,e))}function mS(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ke===e&&(Me&a)===a&&(lt===4||lt===3&&(Me&62914560)===Me&&300>Ot()-Hi?(He&2)===0&&dr(e,0):Vu|=a,cr===Me&&(cr=0)),jn(e)}function Ip(e,t){t===0&&(t=At()),e=cl(e,t),e!==null&&(nt(e,t),jn(e))}function hS(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Ip(e,a)}function pS(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),Ip(e,a)}function gS(e,t){return Br(e,t)}var Pi=null,mr=null,Ku=!1,Qi=!1,Zu=!1,za=0;function jn(e){e!==mr&&e.next===null&&(mr===null?Pi=mr=e:mr=mr.next=e),Qi=!0,Ku||(Ku=!0,yS())}function wo(e,t){if(!Zu&&Qi){Zu=!0;do for(var a=!1,r=Pi;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-Ct(42|e)+1)-1,c&=s&~(b&~S),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,eg(r,c))}else c=Me,c=Ne(r,r===Ke?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(c&3)===0||We(r,c)||(a=!0,eg(r,c));r=r.next}while(a);Zu=!1}}function vS(){Fp()}function Fp(){Qi=Ku=!1;var e=0;za!==0&&RS()&&(e=za);for(var t=Ot(),a=null,r=Pi;r!==null;){var s=r.next,c=Jp(r,t);c===0?(r.next=null,a===null?Pi=s:a.next=s,s===null&&(mr=a)):(a=r,(e!==0||(c&3)!==0)&&(Qi=!0)),r=s}mt!==0&&mt!==5||wo(e),za!==0&&(za=0)}function Jp(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var b=31-Ct(c),S=1<<b,R=s[b];R===-1?((S&a)===0||(S&r)!==0)&&(s[b]=yt(S,t)):R<=t&&(e.expiredLanes|=S),c&=~S}if(t=Ke,a=Me,a=Ne(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(qe===2||qe===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Hr(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||We(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&Hr(r),gn(a)){case 2:case 8:a=Io;break;case 32:a=tl;break;case 268435456:a=Gn;break;default:a=tl}return r=Wp.bind(null,e),a=Br(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&Hr(r),e.callbackPriority=2,e.callbackNode=null,2}function Wp(e,t){if(mt!==0&&mt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(Xi()&&e.callbackNode!==a)return null;var r=Me;return r=Ne(e,e===Ke?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(kp(e,r,t),Jp(e,Ot()),e.callbackNode!=null&&e.callbackNode===a?Wp.bind(null,e):null)}function eg(e,t){if(Xi())return null;kp(e,t,!0)}function yS(){jS(function(){(He&6)!==0?Br(el,vS):Fp()})}function Iu(){if(za===0){var e=Jl;e===0&&(e=Ol,Ol<<=1,(Ol&261888)===0&&(Ol=256)),za=e}return za}function tg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:ti(""+e)}function ng(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 bS(e,t,a,r,s){if(t==="submit"&&a&&a.stateNode===s){var c=tg((s[Ut]||null).action),b=r.submitter;b&&(t=(t=b[Ut]||null)?tg(t.formAction):b.getAttribute("formAction"),t!==null&&(c=t,b=null));var S=new ri("action","action",null,r,s);e.push({event:S,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(za!==0){var R=b?ng(s,b):new FormData(s);gu(a,{pending:!0,data:R,method:s.method,action:c},null,R)}}else typeof c=="function"&&(S.preventDefault(),R=b?ng(s,b):new FormData(s),gu(a,{pending:!0,data:R,method:s.method,action:c},c,R))},currentTarget:s}]})}}for(var Fu=0;Fu<Dc.length;Fu++){var Ju=Dc[Fu],xS=Ju.toLowerCase(),SS=Ju[0].toUpperCase()+Ju.slice(1);vn(xS,"on"+SS)}vn(Dm,"onAnimationEnd"),vn(km,"onAnimationIteration"),vn(zm,"onAnimationStart"),vn("dblclick","onDoubleClick"),vn("focusin","onFocus"),vn("focusout","onBlur"),vn(U1,"onTransitionRun"),vn(B1,"onTransitionStart"),vn(H1,"onTransitionCancel"),vn(Lm,"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 Eo="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(" "),wS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Eo));function ag(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],R=S.instance,U=S.currentTarget;if(S=S.listener,R!==c&&s.isPropagationStopped())break e;c=S,s.currentTarget=U;try{c(s)}catch(P){si(P)}s.currentTarget=null,c=R}else for(b=0;b<r.length;b++){if(S=r[b],R=S.instance,U=S.currentTarget,S=S.listener,R!==c&&s.isPropagationStopped())break e;c=S,s.currentTarget=U;try{c(s)}catch(P){si(P)}s.currentTarget=null,c=R}}}}function je(e,t){var a=t[dc];a===void 0&&(a=t[dc]=new Set);var r=e+"__bubble";a.has(r)||(lg(t,e,2,!1),a.add(r))}function Wu(e,t,a){var r=0;t&&(r|=4),lg(a,e,r,t)}var Ki="_reactListening"+Math.random().toString(36).slice(2);function ed(e){if(!e[Ki]){e[Ki]=!0,Ff.forEach(function(a){a!=="selectionchange"&&(wS.has(a)||Wu(a,!1,e),Wu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ki]||(t[Ki]=!0,Wu("selectionchange",!1,t))}}function lg(e,t,a,r){switch(Dg(t)){case 2:var s=IS;break;case 8:s=FS;break;default:s=pd}a=s.bind(null,t,a,e),s=void 0,!xc||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 td(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 R=b.tag;if((R===3||R===4)&&b.stateNode.containerInfo===s)return;b=b.return}for(;S!==null;){if(b=zl(S),b===null)return;if(R=b.tag,R===5||R===6||R===26||R===27){r=c=b;continue e}S=S.parentNode}}r=r.return}cm(function(){var U=c,P=yc(a),Z=[];e:{var H=Um.get(e);if(H!==void 0){var $=ri,fe=e;switch(e){case"keypress":if(ai(a)===0)break e;case"keydown":case"keyup":$=p1;break;case"focusin":fe="focus",$=Nc;break;case"focusout":fe="blur",$=Nc;break;case"beforeblur":case"afterblur":$=Nc;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":$=fm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$=a1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$=y1;break;case Dm:case km:case zm:$=o1;break;case Lm:$=x1;break;case"scroll":case"scrollend":$=t1;break;case"wheel":$=w1;break;case"copy":case"cut":case"paste":$=s1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$=hm;break;case"toggle":case"beforetoggle":$=N1}var we=(t&4)!==0,Qe=!we&&(e==="scroll"||e==="scrollend"),z=we?H!==null?H+"Capture":null:H;we=[];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=Gr(D,z),K!=null&&we.push(No(D,K,L))),Qe)break;D=D.return}0<we.length&&(H=new $(H,fe,null,a,P),Z.push({event:H,listeners:we}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",$=e==="mouseout"||e==="pointerout",H&&a!==vc&&(fe=a.relatedTarget||a.fromElement)&&(zl(fe)||fe[kl]))break e;if(($||H)&&(H=P.window===P?P:(H=P.ownerDocument)?H.defaultView||H.parentWindow:window,$?(fe=a.relatedTarget||a.toElement,$=U,fe=fe?zl(fe):null,fe!==null&&(Qe=d(fe),we=fe.tag,fe!==Qe||we!==5&&we!==27&&we!==6)&&(fe=null)):($=null,fe=U),$!==fe)){if(we=fm,K="onMouseLeave",z="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(we=hm,K="onPointerLeave",z="onPointerEnter",D="pointer"),Qe=$==null?H:qr($),L=fe==null?H:qr(fe),H=new we(K,D+"leave",$,a,P),H.target=Qe,H.relatedTarget=L,K=null,zl(P)===U&&(we=new we(z,D+"enter",fe,a,P),we.target=L,we.relatedTarget=Qe,K=we),Qe=K,$&&fe)t:{for(we=ES,z=$,D=fe,L=0,K=z;K;K=we(K))L++;K=0;for(var be=D;be;be=we(be))K++;for(;0<L-K;)z=we(z),L--;for(;0<K-L;)D=we(D),K--;for(;L--;){if(z===D||D!==null&&z===D.alternate){we=z;break t}z=we(z),D=we(D)}we=null}else we=null;$!==null&&rg(Z,H,$,we,!1),fe!==null&&Qe!==null&&rg(Z,Qe,fe,we,!0)}}e:{if(H=U?qr(U):window,$=H.nodeName&&H.nodeName.toLowerCase(),$==="select"||$==="input"&&H.type==="file")var Ue=wm;else if(xm(H))if(Em)Ue=k1;else{Ue=M1;var ve=O1}else $=H.nodeName,!$||$.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?U&&gc(U.elementType)&&(Ue=wm):Ue=D1;if(Ue&&(Ue=Ue(e,U))){Sm(Z,Ue,a,P);break e}ve&&ve(e,H,U),e==="focusout"&&U&&H.type==="number"&&U.memoizedProps.value!=null&&pc(H,"number",H.value)}switch(ve=U?qr(U):window,e){case"focusin":(xm(ve)||ve.contentEditable==="true")&&(Gl=ve,jc=U,Jr=null);break;case"focusout":Jr=jc=Gl=null;break;case"mousedown":Oc=!0;break;case"contextmenu":case"mouseup":case"dragend":Oc=!1,Om(Z,a,P);break;case"selectionchange":if(L1)break;case"keydown":case"keyup":Om(Z,a,P)}var Ae;if(Cc)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 ql?ym(e,a)&&(De="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(De="onCompositionStart");De&&(pm&&a.locale!=="ko"&&(ql||De!=="onCompositionStart"?De==="onCompositionEnd"&&ql&&(Ae=um()):(ba=P,Sc="value"in ba?ba.value:ba.textContent,ql=!0)),ve=Zi(U,De),0<ve.length&&(De=new mm(De,e,null,a,P),Z.push({event:De,listeners:ve}),Ae?De.data=Ae:(Ae=bm(a),Ae!==null&&(De.data=Ae)))),(Ae=C1?A1(e,a):R1(e,a))&&(De=Zi(U,"onBeforeInput"),0<De.length&&(ve=new mm("onBeforeInput","beforeinput",null,a,P),Z.push({event:ve,listeners:De}),ve.data=Ae)),bS(Z,e,U,a,P)}ag(Z,t)})}function No(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Zi(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=Gr(e,a),s!=null&&r.unshift(No(e,s,c)),s=Gr(e,t),s!=null&&r.push(No(e,s,c))),e.tag===3)return r;e=e.return}return[]}function ES(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function rg(e,t,a,r,s){for(var c=t._reactName,b=[];a!==null&&a!==r;){var S=a,R=S.alternate,U=S.stateNode;if(S=S.tag,R!==null&&R===r)break;S!==5&&S!==26&&S!==27||U===null||(R=U,s?(U=Gr(a,c),U!=null&&b.unshift(No(a,U,R))):s||(U=Gr(a,c),U!=null&&b.push(No(a,U,R)))),a=a.return}b.length!==0&&e.push({event:t,listeners:b})}var NS=/\r\n?/g,TS=/\u0000|\uFFFD/g;function og(e){return(typeof e=="string"?e:""+e).replace(NS,`
50
- `).replace(TS,"")}function ig(e,t){return t=og(t),og(e)===t}function Pe(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":Wo(e,"class",r);break;case"tabIndex":Wo(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Wo(e,a,r);break;case"style":im(e,r,c);break;case"data":if(t!=="object"){Wo(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=ti(""+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"&&Pe(e,t,"name",s.name,s,null),Pe(e,t,"formEncType",s.formEncType,s,null),Pe(e,t,"formMethod",s.formMethod,s,null),Pe(e,t,"formTarget",s.formTarget,s,null)):(Pe(e,t,"encType",s.encType,s,null),Pe(e,t,"method",s.method,s,null),Pe(e,t,"target",s.target,s,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=ti(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=Pn);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=ti(""+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),Jo(e,"popover",r);break;case"xlinkActuate":Xn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Xn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Xn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Xn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Xn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Xn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Xn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Xn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Xn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Jo(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=Wx.get(a)||a,Jo(e,a,r))}}function nd(e,t,a,r,s,c){switch(a){case"style":im(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=Pn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Jf.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[Ut]||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,""):Jo(e,a,r)}}}function Tt(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:Pe(e,t,c,b,a,null)}}s&&Pe(e,t,"srcSet",a.srcSet,a,null),r&&Pe(e,t,"src",a.src,a,null);return;case"input":je("invalid",e);var S=c=b=s=null,R=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":R=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:Pe(e,t,r,P,a,null)}}am(e,c,S,R,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:Pe(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:Pe(e,t,b,S,a,null)}rm(e,r,s,c);return;case"option":for(R in a)if(a.hasOwnProperty(R)&&(r=a[R],r!=null))switch(R){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Pe(e,t,R,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<Eo.length;r++)je(Eo[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:Pe(e,t,U,r,a,null)}return;default:if(gc(t)){for(P in a)a.hasOwnProperty(P)&&(r=a[P],r!==void 0&&nd(e,t,P,r,a,void 0));return}}for(S in a)a.hasOwnProperty(S)&&(r=a[S],r!=null&&Pe(e,t,S,r,a,null))}function CS(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,R=null,U=null,P=null;for($ in a){var Z=a[$];if(a.hasOwnProperty($)&&Z!=null)switch($){case"checked":break;case"value":break;case"defaultValue":R=Z;default:r.hasOwnProperty($)||Pe(e,t,$,null,r,Z)}}for(var H in r){var $=r[H];if(Z=a[H],r.hasOwnProperty(H)&&($!=null||Z!=null))switch(H){case"type":c=$;break;case"name":s=$;break;case"checked":U=$;break;case"defaultChecked":P=$;break;case"value":b=$;break;case"defaultValue":S=$;break;case"children":case"dangerouslySetInnerHTML":if($!=null)throw Error(i(137,t));break;default:$!==Z&&Pe(e,t,H,$,r,Z)}}hc(e,b,S,R,U,P,c,s);return;case"select":$=b=S=H=null;for(c in a)if(R=a[c],a.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":$=R;default:r.hasOwnProperty(c)||Pe(e,t,c,null,r,R)}for(s in r)if(c=r[s],R=a[s],r.hasOwnProperty(s)&&(c!=null||R!=null))switch(s){case"value":H=c;break;case"defaultValue":S=c;break;case"multiple":b=c;default:c!==R&&Pe(e,t,s,c,r,R)}t=S,a=b,r=$,H!=null?Hl(e,!!a,H,!1):!!r!=!!a&&(t!=null?Hl(e,!!a,t,!0):Hl(e,!!a,a?[]:"",!1));return;case"textarea":$=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:Pe(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":$=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(i(91));break;default:s!==c&&Pe(e,t,b,s,r,c)}lm(e,H,$);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:Pe(e,t,fe,null,r,H)}for(R in r)if(H=r[R],$=a[R],r.hasOwnProperty(R)&&H!==$&&(H!=null||$!=null))switch(R){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Pe(e,t,R,H,r,$)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var we in a)H=a[we],a.hasOwnProperty(we)&&H!=null&&!r.hasOwnProperty(we)&&Pe(e,t,we,null,r,H);for(U in r)if(H=r[U],$=a[U],r.hasOwnProperty(U)&&H!==$&&(H!=null||$!=null))switch(U){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(i(137,t));break;default:Pe(e,t,U,H,r,$)}return;default:if(gc(t)){for(var Qe in a)H=a[Qe],a.hasOwnProperty(Qe)&&H!==void 0&&!r.hasOwnProperty(Qe)&&nd(e,t,Qe,void 0,r,H);for(P in r)H=r[P],$=a[P],!r.hasOwnProperty(P)||H===$||H===void 0&&$===void 0||nd(e,t,P,H,r,$);return}}for(var z in a)H=a[z],a.hasOwnProperty(z)&&H!=null&&!r.hasOwnProperty(z)&&Pe(e,t,z,null,r,H);for(Z in r)H=r[Z],$=a[Z],!r.hasOwnProperty(Z)||H===$||H==null&&$==null||Pe(e,t,Z,H,r,$)}function sg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function AS(){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&&sg(b)){for(b=0,S=s.responseEnd,r+=1;r<a.length;r++){var R=a[r],U=R.startTime;if(U>S)break;var P=R.transferSize,Z=R.initiatorType;P&&sg(Z)&&(R=R.responseEnd,b+=P*(R<S?1:(S-U)/(R-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 ad=null,ld=null;function Ii(e){return e.nodeType===9?e:e.ownerDocument}function cg(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 ug(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 rd(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 od=null;function RS(){var e=window.event;return e&&e.type==="popstate"?e===od?!1:(od=e,!0):(od=null,!1)}var dg=typeof setTimeout=="function"?setTimeout:void 0,_S=typeof clearTimeout=="function"?clearTimeout:void 0,fg=typeof Promise=="function"?Promise:void 0,jS=typeof queueMicrotask=="function"?queueMicrotask:typeof fg<"u"?function(e){return fg.resolve(null).then(e).catch(OS)}:dg;function OS(e){setTimeout(function(){throw e})}function La(e){return e==="head"}function mg(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")To(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,To(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"&&To(e.ownerDocument.body);a=s}while(a);vr(t)}function hg(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 id(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":id(a),fc(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function MS(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=fn(e.nextSibling),e===null)break}return null}function DS(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=fn(e.nextSibling),e===null))return null;return e}function pg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=fn(e.nextSibling),e===null))return null;return e}function sd(e){return e.data==="$?"||e.data==="$~"}function cd(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function kS(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 fn(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 ud=null;function gg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return fn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function vg(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 yg(e,t,a){switch(t=Ii(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 To(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);fc(e)}var mn=new Map,bg=new Set;function Fi(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var sa=q.d;q.d={f:zS,r:LS,D:US,C:BS,L:HS,m:VS,X:$S,S:YS,M:qS};function zS(){var e=sa.f(),t=$i();return e||t}function LS(e){var t=Ll(e);t!==null&&t.tag===5&&t.type==="form"?Lh(t):sa.r(e)}var hr=typeof document>"u"?null:document;function xg(e,t,a){var r=hr;if(r&&typeof t=="string"&&t){var s=ln(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),bg.has(s)||(bg.add(s),e={rel:e,crossOrigin:a,href:t},r.querySelector(s)===null&&(t=r.createElement("link"),Tt(t,"link",e),bt(t),r.head.appendChild(t)))}}function US(e){sa.D(e),xg("dns-prefetch",e,null)}function BS(e,t){sa.C(e,t),xg("preconnect",e,t)}function HS(e,t,a){sa.L(e,t,a);var r=hr;if(r&&e&&t){var s='link[rel="preload"][as="'+ln(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+ln(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+ln(a.imageSizes)+'"]')):s+='[href="'+ln(e)+'"]';var c=s;switch(t){case"style":c=pr(e);break;case"script":c=gr(e)}mn.has(c)||(e=g({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),mn.set(c,e),r.querySelector(s)!==null||t==="style"&&r.querySelector(Co(c))||t==="script"&&r.querySelector(Ao(c))||(t=r.createElement("link"),Tt(t,"link",e),bt(t),r.head.appendChild(t)))}}function VS(e,t){sa.m(e,t);var a=hr;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+ln(r)+'"][href="'+ln(e)+'"]',c=s;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=gr(e)}if(!mn.has(c)&&(e=g({rel:"modulepreload",href:e},t),mn.set(c,e),a.querySelector(s)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Ao(c)))return}r=a.createElement("link"),Tt(r,"link",e),bt(r),a.head.appendChild(r)}}}function YS(e,t,a){sa.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=mn.get(c))&&dd(e,a);var R=b=r.createElement("link");bt(R),Tt(R,"link",e),R._p=new Promise(function(U,P){R.onload=U,R.onerror=P}),R.addEventListener("load",function(){S.loading|=1}),R.addEventListener("error",function(){S.loading|=2}),S.loading|=4,Ji(b,t,r)}b={type:"stylesheet",instance:b,count:1,state:S},s.set(c,b)}}}function $S(e,t){sa.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(Ao(s)),c||(e=g({src:e,async:!0},t),(t=mn.get(s))&&fd(e,t),c=a.createElement("script"),bt(c),Tt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(s,c))}}function qS(e,t){sa.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(Ao(s)),c||(e=g({src:e,async:!0,type:"module"},t),(t=mn.get(s))&&fd(e,t),c=a.createElement("script"),bt(c),Tt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(s,c))}}function Sg(e,t,a,r){var s=(s=oe.current)?Fi(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),mn.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},mn.set(e,a),c||GS(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="'+ln(e)+'"'}function Co(e){return'link[rel="stylesheet"]['+e+"]"}function wg(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function GS(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}),Tt(t,"link",a),bt(t),e.head.appendChild(t))}function gr(e){return'[src="'+ln(e)+'"]'}function Ao(e){return"script[async]"+e}function Eg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+ln(a.href)+'"]');if(r)return t.instance=r,bt(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"),bt(r),Tt(r,"style",s),Ji(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,bt(c),c;r=wg(a),(s=mn.get(s))&&dd(r,s),c=(e.ownerDocument||e).createElement("link"),bt(c);var b=c;return b._p=new Promise(function(S,R){b.onload=S,b.onerror=R}),Tt(c,"link",r),t.state.loading|=4,Ji(c,a.precedence,e),t.instance=c;case"script":return c=gr(a.src),(s=e.querySelector(Ao(c)))?(t.instance=s,bt(s),s):(r=a,(s=mn.get(c))&&(r=g({},a),fd(r,s)),e=e.ownerDocument||e,s=e.createElement("script"),bt(s),Tt(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,Ji(r,a.precedence,e));return t.instance}function Ji(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 dd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function fd(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Wi=null;function Ng(e,t,a){if(Wi===null){var r=new Map,s=Wi=new Map;s.set(a,r)}else s=Wi,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[St]||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 Tg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function XS(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 Cg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function PS(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=es.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,bt(c);return}c=t.ownerDocument||t,r=wg(r),(s=mn.get(s))&&dd(r,s),c=c.createElement("link"),bt(c);var b=c;b._p=new Promise(function(S,R){b.onload=S,b.onerror=R}),Tt(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=es.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var md=0;function QS(e,t){return e.stylesheets&&e.count===0&&ns(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&ns(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&md===0&&(md=62500*AS());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ns(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>md?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(s)}}:null}function es(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ns(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ts=null;function ns(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ts=new Map,t.forEach(KS,e),ts=null,es.call(e))}function KS(e,t){if(!(t.state.loading&4)){var a=ts.get(e);if(a)var r=a.get(null);else{a=new Map,ts.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=es.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:I,_currentValue2:I,_threadCount:0};function ZS(e,t,a,r,s,c,b,S,R){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=va(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=va(0),this.hiddenUpdates=va(null),this.identifierPrefix=r,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function Ag(e,t,a,r,s,c,b,S,R,U,P,Z){return e=new ZS(e,t,a,b,R,U,P,Z,S),t=1,c===!0&&(t|=24),c=Kt(3,null,null,t),e.current=c,c.stateNode=e,t=Pc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:r,isDehydrated:a,cache:t},Ic(c),e}function Rg(e){return e?(e=Ql,e):Ql}function _g(e,t,a,r,s,c){s=Rg(s),r.context===null?r.context=s:r.pendingContext=s,r=Ta(t),r.payload={element:a},c=c===void 0?null:c,c!==null&&(r.callback=c),a=Ca(e,r,t),a!==null&&(qt(a,e,t),ro(a,e,t))}function jg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function hd(e,t){jg(e,t),(e=e.alternate)&&jg(e,t)}function Og(e){if(e.tag===13||e.tag===31){var t=cl(e,67108864);t!==null&&qt(t,e,67108864),hd(e,67108864)}}function Mg(e){if(e.tag===13||e.tag===31){var t=Wt();t=Dl(t);var a=cl(e,t);a!==null&&qt(a,e,t),hd(e,t)}}var as=!0;function IS(e,t,a,r){var s=O.T;O.T=null;var c=q.p;try{q.p=2,pd(e,t,a,r)}finally{q.p=c,O.T=s}}function FS(e,t,a,r){var s=O.T;O.T=null;var c=q.p;try{q.p=8,pd(e,t,a,r)}finally{q.p=c,O.T=s}}function pd(e,t,a,r){if(as){var s=gd(r);if(s===null)td(e,t,r,ls,a),kg(e,r);else if(WS(s,e,t,a,r))r.stopPropagation();else if(kg(e,r),t&4&&-1<JS.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 R=1<<31-Ct(b);S.entanglements[1]|=R,b&=~R}jn(c),(He&6)===0&&(Vi=Ot()+500,wo(0))}}break;case 31:case 13:S=cl(c,2),S!==null&&qt(S,c,2),$i(),hd(c,2)}if(c=gd(r),c===null&&td(e,t,r,ls,a),c===s)break;s=c}s!==null&&r.stopPropagation()}else td(e,t,r,null,a)}}function gd(e){return e=yc(e),vd(e)}var ls=null;function vd(e){if(ls=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 ls=e,null}function Dg(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(sc()){case el:return 2;case Io:return 8;case tl:case Vr:return 32;case Gn:return 268435456;default:return 32}default:return 32}}var yd=!1,Ua=null,Ba=null,Ha=null,_o=new Map,jo=new Map,Va=[],JS="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 kg(e,t){switch(e){case"focusin":case"focusout":Ua=null;break;case"dragenter":case"dragleave":Ba=null;break;case"mouseover":case"mouseout":Ha=null;break;case"pointerover":case"pointerout":_o.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jo.delete(t.pointerId)}}function Oo(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&&Og(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function WS(e,t,a,r,s){switch(t){case"focusin":return Ua=Oo(Ua,e,t,a,r,s),!0;case"dragenter":return Ba=Oo(Ba,e,t,a,r,s),!0;case"mouseover":return Ha=Oo(Ha,e,t,a,r,s),!0;case"pointerover":var c=s.pointerId;return _o.set(c,Oo(_o.get(c)||null,e,t,a,r,s)),!0;case"gotpointercapture":return c=s.pointerId,jo.set(c,Oo(jo.get(c)||null,e,t,a,r,s)),!0}return!1}function zg(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,Zf(e.priority,function(){Mg(a)});return}}else if(t===31){if(t=h(a),t!==null){e.blockedOn=t,Zf(e.priority,function(){Mg(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 rs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=gd(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);vc=r,a.target.dispatchEvent(r),vc=null}else return t=Ll(a),t!==null&&Og(t),e.blockedOn=a,!1;t.shift()}return!0}function Lg(e,t,a){rs(e)&&a.delete(t)}function ew(){yd=!1,Ua!==null&&rs(Ua)&&(Ua=null),Ba!==null&&rs(Ba)&&(Ba=null),Ha!==null&&rs(Ha)&&(Ha=null),_o.forEach(Lg),jo.forEach(Lg)}function os(e,t){e.blockedOn===t&&(e.blockedOn=null,yd||(yd=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,ew)))}var is=null;function Ug(e){is!==e&&(is=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){is===e&&(is=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(vd(r||a)===null)continue;break}var c=Ll(a);c!==null&&(e.splice(t,3),t-=3,gu(c,{pending:!0,data:s,method:a.method,action:r},r,s))}}))}function vr(e){function t(R){return os(R,e)}Ua!==null&&os(Ua,e),Ba!==null&&os(Ba,e),Ha!==null&&os(Ha,e),_o.forEach(t),jo.forEach(t);for(var a=0;a<Va.length;a++){var r=Va[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Va.length&&(a=Va[0],a.blockedOn===null);)zg(a),a.blockedOn===null&&Va.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[Ut]||null;if(typeof c=="function")b||Ug(a);else if(b){var S=null;if(c&&c.hasAttribute("formAction")){if(s=c,b=c[Ut]||null)S=b.formAction;else if(vd(s)!==null)continue}else S=b.action;typeof S=="function"?a[r+1]=S:(a.splice(r,3),r-=3),Ug(a)}}}function Bg(){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 bd(e){this._internalRoot=e}ss.prototype.render=bd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,r=Wt();_g(a,r,e,t,null,null)},ss.prototype.unmount=bd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;_g(e.current,2,null,e,null,null),$i(),t[kl]=null}};function ss(e){this._internalRoot=e}ss.prototype.unstable_scheduleHydration=function(e){if(e){var t=uc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Va.length&&t!==0&&t<Va[a].priority;a++);Va.splice(a,0,e),a===0&&zg(e)}};var Hg=l.version;if(Hg!=="19.2.4")throw Error(i(527,Hg,"19.2.4"));q.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 tw={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cs.isDisabled&&cs.supportsFiber)try{nl=cs.inject(tw),Mt=cs}catch{}}return Do.createRoot=function(e,t){if(!u(e))throw Error(i(299));var a=!1,r="",s=Ph,c=Qh,b=Kh;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=Ag(e,1,!1,null,null,a,r,null,s,c,b,Bg),e[kl]=t.current,ed(e),new bd(t)},Do.hydrateRoot=function(e,t,a){if(!u(e))throw Error(i(299));var r=!1,s="",c=Ph,b=Qh,S=Kh,R=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&&(R=a.formState)),t=Ag(e,1,!0,t,a??null,r,s,R,c,b,S,Bg),t.context=Rg(null),a=t.current,r=Wt(),r=Dl(r),s=Ta(r),s.callback=null,Ca(a,s,r),a=r,t.current.lanes=a,nt(t,a),jn(t),e[kl]=t.current,ed(e),new ss(t)},Do.version="19.2.4",Do}var Zg;function dw(){if(Zg)return wd.exports;Zg=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(),wd.exports=uw(),wd.exports}var fw=dw();const mw="modulepreload",hw=function(n){return"/"+n},Ig={},Kv=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=hw(p),p in Ig)return;Ig[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":mw,x||(w.as="script"),w.crossOrigin="",w.href=p,y&&w.setAttribute("nonce",y),document.head.appendChild(w),x)return new Promise((N,T)=>{w.addEventListener("load",N),w.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(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 Fg="popstate";function Jg(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function pw(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 Gd("",{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 vw(l,o,null,n)}function tt(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function Sn(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function gw(){return Math.random().toString(36).substring(2,10)}function Wg(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 Gd(n,l,o=null,i,u){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof l=="string"?Or(l):l,state:o,key:l&&l.key||i||gw(),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 Or(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 vw(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 C=x(),A=C==null?null:C-p;p=C,y&&y({action:h,location:E.location,delta:A})}function w(C,A){h="PUSH";let _=Jg(C)?C:Gd(E.location,C,A);p=x()+1;let M=Wg(_,p),k=E.createHref(_.unstable_mask||_);try{f.pushState(M,"",k)}catch(Y){if(Y instanceof DOMException&&Y.name==="DataCloneError")throw Y;u.location.assign(k)}d&&y&&y({action:h,location:E.location,delta:1})}function N(C,A){h="REPLACE";let _=Jg(C)?C:Gd(E.location,C,A);p=x();let M=Wg(_,p),k=E.createHref(_.unstable_mask||_);f.replaceState(M,"",k),d&&y&&y({action:h,location:E.location,delta:0})}function T(C){return yw(C)}let E={get action(){return h},get location(){return n(u,f)},listen(C){if(y)throw new Error("A history only accepts one active listener");return u.addEventListener(Fg,g),y=C,()=>{u.removeEventListener(Fg,g),y=null}},createHref(C){return l(u,C)},createURL:T,encodeLocation(C){let A=T(C);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:w,replace:N,go(C){return f.go(C)}};return E}function yw(n,l=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),tt(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 Zv(n,l,o="/"){return bw(n,l,o,!1)}function bw(n,l,o,i){let u=typeof l=="string"?Or(l):l,d=ua(u.pathname||"/",o);if(d==null)return null;let f=Iv(n);xw(f);let h=null;for(let y=0;h==null&&y<f.length;++y){let p=Ow(d);h=_w(f[y],p,i)}return h}function Iv(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;tt(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=Hn([i,x.relativePath]),w=o.concat(x);f.children&&f.children.length>0&&(tt(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Iv(f.children,l,w,g,y)),!(f.path==null&&!f.index)&&l.push({path:g,score:Aw(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 Fv(f.path))d(f,h,!0,p)}),l}function Fv(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=Fv(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 xw(n){n.sort((l,o)=>l.score!==o.score?o.score-l.score:Rw(l.routesMeta.map(i=>i.childrenIndex),o.routesMeta.map(i=>i.childrenIndex)))}var Sw=/^:[\w-]+$/,ww=3,Ew=2,Nw=1,Tw=10,Cw=-2,ev=n=>n==="*";function Aw(n,l){let o=n.split("/"),i=o.length;return o.some(ev)&&(i+=Cw),l&&(i+=Ew),o.filter(u=>!ev(u)).reduce((u,d)=>u+(Sw.test(d)?ww:d===""?Nw:Tw),i)}function Rw(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 _w(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=As({path:y.relativePath,caseSensitive:y.caseSensitive,end:p},x),w=y.route;if(!g&&p&&o&&!i[i.length-1].route.index&&(g=As({path:y.relativePath,caseSensitive:y.caseSensitive,end:!1},x)),!g)return null;Object.assign(u,g.params),f.push({params:u,pathname:Hn([d,g.pathname]),pathnameBase:zw(Hn([d,g.pathnameBase])),route:w}),g.pathnameBase!=="/"&&(d=Hn([d,g.pathnameBase]))}return f}function As(n,l){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[o,i]=jw(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 T=h[w]||"";f=d.slice(0,d.length-T.length).replace(/(.)\/+$/,"$1")}const N=h[w];return g&&!N?p[x]=void 0:p[x]=(N||"").replace(/%2F/g,"/"),p},{}),pathname:d,pathnameBase:f,pattern:n}}function jw(n,l=!1,o=!0){Sn(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 Ow(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return Sn(!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 ua(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 Mw=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function Dw(n,l="/"){let{pathname:o,search:i="",hash:u=""}=typeof n=="string"?Or(n):n,d;return o?(o=o.replace(/\/\/+/g,"/"),o.startsWith("/")?d=tv(o.substring(1),"/"):d=tv(o,l)):d=l,{pathname:d,search:Lw(i),hash:Uw(u)}}function tv(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 Cd(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 kw(n){return n.filter((l,o)=>o===0||l.route.path&&l.route.path.length>0)}function df(n){let l=kw(n);return l.map((o,i)=>i===l.length-1?o.pathname:o.pathnameBase)}function Ps(n,l,o,i=!1){let u;typeof n=="string"?u=Or(n):(u={...n},tt(!u.pathname||!u.pathname.includes("?"),Cd("?","pathname","search",u)),tt(!u.pathname||!u.pathname.includes("#"),Cd("#","pathname","hash",u)),tt(!u.search||!u.search.includes("#"),Cd("#","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=Dw(u,h),p=f&&f!=="/"&&f.endsWith("/"),x=(d||f===".")&&o.endsWith("/");return!y.pathname.endsWith("/")&&(p||x)&&(y.pathname+="/"),y}var Hn=n=>n.join("/").replace(/\/\/+/g,"/"),zw=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),Lw=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,Uw=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,Bw=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 Hw(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function Vw(n){return n.map(l=>l.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Jv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Wv(n,l){let o=n;if(typeof o!="string"||!Mw.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let i=o,u=!1;if(Jv)try{let d=new URL(window.location.href),f=o.startsWith("//")?new URL(d.protocol+o):new URL(o),h=ua(f.pathname,l);f.origin===d.origin&&h!=null?o=h+f.search+f.hash:u=!0}catch{Sn(!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 e0=["POST","PUT","PATCH","DELETE"];new Set(e0);var Yw=["GET",...e0];new Set(Yw);var Mr=v.createContext(null);Mr.displayName="DataRouter";var Qs=v.createContext(null);Qs.displayName="DataRouterState";var $w=v.createContext(!1),t0=v.createContext({isTransitioning:!1});t0.displayName="ViewTransition";var qw=v.createContext(new Map);qw.displayName="Fetchers";var Gw=v.createContext(null);Gw.displayName="Await";var nn=v.createContext(null);nn.displayName="Navigation";var Xo=v.createContext(null);Xo.displayName="Location";var hn=v.createContext({outlet:null,matches:[],isDataRoute:!1});hn.displayName="Route";var ff=v.createContext(null);ff.displayName="RouteError";var n0="REACT_ROUTER_ERROR",Xw="REDIRECT",Pw="ROUTE_ERROR_RESPONSE";function Qw(n){if(n.startsWith(`${n0}:${Xw}:{`))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 Kw(n){if(n.startsWith(`${n0}:${Pw}:{`))try{let l=JSON.parse(n.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new Bw(l.status,l.statusText,l.data)}catch{}}function Zw(n,{relative:l}={}){tt(Dr(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:i}=v.useContext(nn),{hash:u,pathname:d,search:f}=Po(n,{relative:l}),h=d;return o!=="/"&&(h=d==="/"?o:Hn([o,d])),i.createHref({pathname:h,search:f,hash:u})}function Dr(){return v.useContext(Xo)!=null}function $n(){return tt(Dr(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(Xo).location}var a0="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function l0(n){v.useContext(nn).static||v.useLayoutEffect(n)}function r0(){let{isDataRoute:n}=v.useContext(hn);return n?c2():Iw()}function Iw(){tt(Dr(),"useNavigate() may be used only in the context of a <Router> component.");let n=v.useContext(Mr),{basename:l,navigator:o}=v.useContext(nn),{matches:i}=v.useContext(hn),{pathname:u}=$n(),d=JSON.stringify(df(i)),f=v.useRef(!1);return l0(()=>{f.current=!0}),v.useCallback((y,p={})=>{if(Sn(f.current,a0),!f.current)return;if(typeof y=="number"){o.go(y);return}let x=Ps(y,JSON.parse(d),u,p.relative==="path");n==null&&l!=="/"&&(x.pathname=x.pathname==="/"?l:Hn([l,x.pathname])),(p.replace?o.replace:o.push)(x,p.state,p)},[l,o,d,u,n])}var o0=v.createContext(null);function O3(){return v.useContext(o0)}function Fw(n){let l=v.useContext(hn).outlet;return v.useMemo(()=>l&&v.createElement(o0.Provider,{value:n},l),[l,n])}function M3(){let{matches:n}=v.useContext(hn),l=n[n.length-1];return l?l.params:{}}function Po(n,{relative:l}={}){let{matches:o}=v.useContext(hn),{pathname:i}=$n(),u=JSON.stringify(df(o));return v.useMemo(()=>Ps(n,JSON.parse(u),i,l==="path"),[n,u,i,l])}function Jw(n,l){return i0(n,l)}function i0(n,l,o){var C;tt(Dr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=v.useContext(nn),{matches:u}=v.useContext(hn),d=u[u.length-1],f=d?d.params:{},h=d?d.pathname:"/",y=d?d.pathnameBase:"/",p=d&&d.route;{let A=p&&p.path||"";c0(h,!p||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${A}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
60
-
61
- Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let x=$n(),g;if(l){let A=typeof l=="string"?Or(l):l;tt(y==="/"||((C=A.pathname)==null?void 0:C.startsWith(y)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${A.pathname}" was given in the \`location\` prop.`),g=A}else g=x;let w=g.pathname||"/",N=w;if(y!=="/"){let A=y.replace(/^\//,"").split("/");N="/"+w.replace(/^\//,"").split("/").slice(A.length).join("/")}let T=Zv(n,{pathname:N});Sn(p||T!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),Sn(T==null||T[T.length-1].route.element!==void 0||T[T.length-1].route.Component!==void 0||T[T.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=a2(T&&T.map(A=>Object.assign({},A,{params:Object.assign({},f,A.params),pathname:Hn([y,i.encodeLocation?i.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?y:Hn([y,i.encodeLocation?i.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),u,o);return l&&E?v.createElement(Xo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...g},navigationType:"POP"}},E):E}function Ww(){let n=s2(),l=Hw(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 e2=v.createElement(Ww,null),s0=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=Kw(n.digest);o&&(n=o)}let l=n!==void 0?v.createElement(hn.Provider,{value:this.props.routeContext},v.createElement(ff.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?v.createElement(t2,{error:n},l):l}};s0.contextType=$w;var Ad=new WeakMap;function t2({children:n,error:l}){let{basename:o}=v.useContext(nn);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let i=Qw(l.digest);if(i){let u=Ad.get(l);if(u)throw u;let d=Wv(i.location,o);if(Jv&&!Ad.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 Ad.set(l,f),f}return v.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return n}function n2({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(hn.Provider,{value:n},o)}function a2(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);tt(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:N}=i,T=g.route.loader&&!w.hasOwnProperty(g.route.id)&&(!N||N[g.route.id]===void 0);if(g.route.lazy||T){o.isStatic&&(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,N;y(x,{location:i.location,params:((N=(w=i.matches)==null?void 0:w[0])==null?void 0:N.params)??{},unstable_pattern:Vw(i.matches),errorInfo:g})}:void 0;return u.reduceRight((x,g,w)=>{let N,T=!1,E=null,C=null;i&&(N=d&&g.route.id?d[g.route.id]:void 0,E=g.route.errorElement||e2,f&&(h<0&&w===0?(c0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),T=!0,C=null):h===w&&(T=!0,C=g.route.hydrateFallbackElement||null)));let A=l.concat(u.slice(0,w+1)),_=()=>{let M;return N?M=E:T?M=C:g.route.Component?M=v.createElement(g.route.Component,null):g.route.element?M=g.route.element:M=x,v.createElement(n2,{match:g,routeContext:{outlet:x,matches:A,isDataRoute:i!=null},children:M})};return i&&(g.route.ErrorBoundary||g.route.errorElement||w===0)?v.createElement(s0,{location:i.location,revalidation:i.revalidation,component:E,error:N,children:_(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:p}):_()},null)}function mf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function l2(n){let l=v.useContext(Mr);return tt(l,mf(n)),l}function r2(n){let l=v.useContext(Qs);return tt(l,mf(n)),l}function o2(n){let l=v.useContext(hn);return tt(l,mf(n)),l}function hf(n){let l=o2(n),o=l.matches[l.matches.length-1];return tt(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function i2(){return hf("useRouteId")}function s2(){var i;let n=v.useContext(ff),l=r2("useRouteError"),o=hf("useRouteError");return n!==void 0?n:(i=l.errors)==null?void 0:i[o]}function c2(){let{router:n}=l2("useNavigate"),l=hf("useNavigate"),o=v.useRef(!1);return l0(()=>{o.current=!0}),v.useCallback(async(u,d={})=>{Sn(o.current,a0),o.current&&(typeof u=="number"?await n.navigate(u):await n.navigate(u,{fromRouteId:l,...d}))},[n,l])}var nv={};function c0(n,l,o){!l&&!nv[n]&&(nv[n]=!0,Sn(!1,o))}v.memo(u2);function u2({routes:n,future:l,state:o,isStatic:i,onError:u}){return i0(n,void 0,{state:o,isStatic:i,onError:u})}function av({to:n,replace:l,state:o,relative:i}){tt(Dr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=v.useContext(nn);Sn(!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(hn),{pathname:f}=$n(),h=r0(),y=Ps(n,df(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 d2(n){return Fw(n.context)}function Tl(n){tt(!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 f2({basename:n="/",children:l=null,location:o,navigationType:i="POP",navigator:u,static:d=!1,unstable_useTransitions:f}){tt(!Dr(),"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=Or(o));let{pathname:p="/",search:x="",hash:g="",state:w=null,key:N="default",unstable_mask:T}=o,E=v.useMemo(()=>{let C=ua(p,h);return C==null?null:{location:{pathname:C,search:x,hash:g,state:w,key:N,unstable_mask:T},navigationType:i}},[h,p,x,g,w,N,i,T]);return Sn(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(nn.Provider,{value:y},v.createElement(Xo.Provider,{children:l,value:E}))}function m2({children:n,location:l}){return Jw(Xd(n),l)}function Xd(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,Xd(i.props.children,d));return}tt(i.type===Tl,`[${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>`),tt(!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=Xd(i.props.children,d)),o.push(f)}),o}var Ss="get",ws="application/x-www-form-urlencoded";function Ks(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function h2(n){return Ks(n)&&n.tagName.toLowerCase()==="button"}function p2(n){return Ks(n)&&n.tagName.toLowerCase()==="form"}function g2(n){return Ks(n)&&n.tagName.toLowerCase()==="input"}function v2(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function y2(n,l){return n.button===0&&(!l||l==="_self")&&!v2(n)}var us=null;function b2(){if(us===null)try{new FormData(document.createElement("form"),0),us=!1}catch{us=!0}return us}var x2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Rd(n){return n!=null&&!x2.has(n)?(Sn(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ws}"`),null):n}function S2(n,l){let o,i,u,d,f;if(p2(n)){let h=n.getAttribute("action");i=h?ua(h,l):null,o=n.getAttribute("method")||Ss,u=Rd(n.getAttribute("enctype"))||ws,d=new FormData(n)}else if(h2(n)||g2(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?ua(y,l):null,o=n.getAttribute("formmethod")||h.getAttribute("method")||Ss,u=Rd(n.getAttribute("formenctype"))||Rd(h.getAttribute("enctype"))||ws,d=new FormData(h,n),!b2()){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(Ks(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=Ss,i=null,u=ws,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 pf(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function w2(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&&ua(u.pathname,l)==="/"?u.pathname=`${l.replace(/\/$/,"")}/_root.${i}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${i}`,u}async function E2(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 N2(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 T2(n,l,o){let i=await Promise.all(n.map(async u=>{let d=l.routes[u.route.id];if(d){let f=await E2(d,o);return f.links?f.links():[]}return[]}));return _2(i.flat(1).filter(N2).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function lv(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 C2(n,l,{includeHydrateFallback:o}={}){return A2(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 A2(n){return[...new Set(n)]}function R2(n){let l={},o=Object.keys(n).sort();for(let i of o)l[i]=n[i];return l}function _2(n,l){let o=new Set;return new Set(l),n.reduce((i,u)=>{let d=JSON.stringify(R2(u));return o.has(d)||(o.add(d),i.push({key:d,link:u})),i},[])}function u0(){let n=v.useContext(Mr);return pf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function j2(){let n=v.useContext(Qs);return pf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var gf=v.createContext(void 0);gf.displayName="FrameworkContext";function d0(){let n=v.useContext(gf);return pf(n,"You must render this element inside a <HydratedRouter> element"),n}function O2(n,l){let o=v.useContext(gf),[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=A=>{A.forEach(_=>{f(_.isIntersecting)})},C=new IntersectionObserver(E,{threshold:.5});return w.current&&C.observe(w.current),()=>{C.disconnect()}}},[n]),v.useEffect(()=>{if(i){let E=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(E)}}},[i]);let N=()=>{u(!0)},T=()=>{u(!1),f(!1)};return o?n!=="intent"?[d,w,{}]:[d,w,{onFocus:ko(h,N),onBlur:ko(y,T),onMouseEnter:ko(p,N),onMouseLeave:ko(x,T),onTouchStart:ko(g,N)}]:[!1,w,{}]}function ko(n,l){return o=>{n&&n(o),o.defaultPrevented||l(o)}}function M2({page:n,...l}){let{router:o}=u0(),i=v.useMemo(()=>Zv(o.routes,n,o.basename),[o.routes,n,o.basename]);return i?v.createElement(k2,{page:n,matches:i,...l}):null}function D2(n){let{manifest:l,routeModules:o}=d0(),[i,u]=v.useState([]);return v.useEffect(()=>{let d=!1;return T2(n,l,o).then(f=>{d||u(f)}),()=>{d=!0}},[n,l,o]),i}function k2({page:n,matches:l,...o}){let i=$n(),{future:u,manifest:d,routeModules:f}=d0(),{basename:h}=u0(),{loaderData:y,matches:p}=j2(),x=v.useMemo(()=>lv(n,l,p,d,i,"data"),[n,l,p,d,i]),g=v.useMemo(()=>lv(n,l,p,d,i,"assets"),[n,l,p,d,i]),w=v.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let E=new Set,C=!1;if(l.forEach(_=>{var k;let M=d.routes[_.route.id];!M||!M.hasLoader||(!x.some(Y=>Y.route.id===_.route.id)&&_.route.id in y&&((k=f[_.route.id])!=null&&k.shouldRevalidate)||M.hasClientLoader?C=!0:E.add(_.route.id))}),E.size===0)return[];let A=w2(n,h,u.unstable_trailingSlashAwareDataRequests,"data");return C&&E.size>0&&A.searchParams.set("_routes",l.filter(_=>E.has(_.route.id)).map(_=>_.route.id).join(",")),[A.pathname+A.search]},[h,u.unstable_trailingSlashAwareDataRequests,y,i,d,x,l,n,f]),N=v.useMemo(()=>C2(g,d),[g,d]),T=D2(g);return v.createElement(v.Fragment,null,w.map(E=>v.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...o})),N.map(E=>v.createElement("link",{key:E,rel:"modulepreload",href:E,...o})),T.map(({key:E,link:C})=>v.createElement("link",{key:E,nonce:o.nonce,...C,crossOrigin:C.crossOrigin??o.crossOrigin})))}function z2(...n){return l=>{n.forEach(o=>{typeof o=="function"?o(l):o!=null&&(o.current=l)})}}var L2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{L2&&(window.__reactRouterVersion="7.13.2")}catch{}function U2({basename:n,children:l,unstable_useTransitions:o,window:i}){let u=v.useRef();u.current==null&&(u.current=pw({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(f2,{basename:n,children:l,location:f.location,navigationType:f.action,navigator:d,unstable_useTransitions:o})}var f0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,m0=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:N,...T},E){let{basename:C,navigator:A,unstable_useTransitions:_}=v.useContext(nn),M=typeof x=="string"&&f0.test(x),k=Wv(x,C);x=k.to;let Y=Zw(x,{relative:u}),G=$n(),B=null;if(h){let le=Ps(h,[],G.unstable_mask?G.unstable_mask.pathname:"/",!0);C!=="/"&&(le.pathname=le.pathname==="/"?C:Hn([C,le.pathname])),B=A.createHref(le)}let[V,ae,re]=O2(i,T),pe=V2(x,{replace:f,unstable_mask:h,state:y,target:p,preventScrollReset:g,relative:u,viewTransition:w,unstable_defaultShouldRevalidate:N,unstable_useTransitions:_});function me(le){l&&l(le),le.defaultPrevented||pe(le)}let ue=!(k.isExternal||d),de=v.createElement("a",{...T,...re,href:(ue?B:void 0)||k.absoluteURL||Y,onClick:ue?me:l,ref:z2(E,ae),target:p,"data-discover":!M&&o==="render"?"true":void 0});return V&&!M?v.createElement(v.Fragment,null,de,v.createElement(M2,{page:Y})):de});m0.displayName="Link";var h0=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=Po(f,{relative:p.relative}),w=$n(),N=v.useContext(Qs),{navigator:T,basename:E}=v.useContext(nn),C=N!=null&&X2(g)&&h===!0,A=T.encodeLocation?T.encodeLocation(g).pathname:g.pathname,_=w.pathname,M=N&&N.navigation&&N.navigation.location?N.navigation.location.pathname:null;o||(_=_.toLowerCase(),M=M?M.toLowerCase():null,A=A.toLowerCase()),M&&E&&(M=ua(M,E)||M);const k=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let Y=_===A||!u&&_.startsWith(A)&&_.charAt(k)==="/",G=M!=null&&(M===A||!u&&M.startsWith(A)&&M.charAt(A.length)==="/"),B={isActive:Y,isPending:G,isTransitioning:C},V=Y?l:void 0,ae;typeof i=="function"?ae=i(B):ae=[i,Y?"active":null,G?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let re=typeof d=="function"?d(B):d;return v.createElement(m0,{...p,"aria-current":V,className:ae,ref:x,style:re,to:f,viewTransition:h},typeof y=="function"?y(B):y)});h0.displayName="NavLink";var B2=v.forwardRef(({discover:n="render",fetcherKey:l,navigate:o,reloadDocument:i,replace:u,state:d,method:f=Ss,action:h,onSubmit:y,relative:p,preventScrollReset:x,viewTransition:g,unstable_defaultShouldRevalidate:w,...N},T)=>{let{unstable_useTransitions:E}=v.useContext(nn),C=q2(),A=G2(h,{relative:p}),_=f.toLowerCase()==="get"?"get":"post",M=typeof h=="string"&&f0.test(h),k=Y=>{if(y&&y(Y),Y.defaultPrevented)return;Y.preventDefault();let G=Y.nativeEvent.submitter,B=(G==null?void 0:G.getAttribute("formmethod"))||f,V=()=>C(G||Y.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:T,method:_,action:A,onSubmit:i?y:k,...N,"data-discover":!M&&n==="render"?"true":void 0})});B2.displayName="Form";function H2(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function p0(n){let l=v.useContext(Mr);return tt(l,H2(n)),l}function V2(n,{target:l,replace:o,unstable_mask:i,state:u,preventScrollReset:d,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:y,unstable_useTransitions:p}={}){let x=r0(),g=$n(),w=Po(n,{relative:f});return v.useCallback(N=>{if(y2(N,l)){N.preventDefault();let T=o!==void 0?o:$o(g)===$o(w),E=()=>x(n,{replace:T,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 Y2=0,$2=()=>`__${String(++Y2)}__`;function q2(){let{router:n}=p0("useSubmit"),{basename:l}=v.useContext(nn),o=i2(),i=n.fetch,u=n.navigate;return v.useCallback(async(d,f={})=>{let{action:h,method:y,encType:p,formData:x,body:g}=S2(d,l);if(f.navigate===!1){let w=f.fetcherKey||$2();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 G2(n,{relative:l}={}){let{basename:o}=v.useContext(nn),i=v.useContext(hn);tt(i,"useFormAction must be used inside a RouteContext");let[u]=i.matches.slice(-1),d={...Po(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:Hn([o,d.pathname])),$o(d)}function X2(n,{relative:l}={}){let o=v.useContext(t0);tt(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=p0("useViewTransitionState"),u=Po(n,{relative:l});if(!o.isTransitioning)return!1;let d=ua(o.currentLocation.pathname,i)||o.currentLocation.pathname,f=ua(o.nextLocation.pathname,i)||o.nextLocation.pathname;return As(u.pathname,f)!=null||As(u.pathname,d)!=null}var Qo=Qv();const g0=Pv(Qo),P2="/api";function Q2(n,l){if(typeof n=="string"&&n)return n;if(n&&typeof n=="object"){const o=n,i=typeof o.error=="object"&&o.error!==null?o.error:void 0;if(typeof o.error=="string"&&o.error)return o.error;if(typeof(i==null?void 0:i.message)=="string"&&i.message)return i.message;if(typeof o.message=="string"&&o.message)return o.message}return l}async function Ee(n,l){const o=await fetch(`${P2}${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(Q2(i,`HTTP ${o.status}`))}return o.json()}function K2(){return Ee("/system/info")}function D3(n){return Ee("/system/transport",{method:"POST",body:JSON.stringify({type:n})})}function Z2(n){return Ee("/system/runtime/restart",{method:"POST",body:JSON.stringify(n)})}function I2(){return Ee("/system/runtime/stop",{method:"POST"})}function F2(){return Ee("/cluster/state")}function k3(){return Ee("/cluster/promote",{method:"POST"})}function z3(n){return Ee("/cluster/connect",{method:"POST",body:JSON.stringify(n)})}function L3(){return Ee("/cluster/disconnect",{method:"POST"})}function J2(n){return Ee(`/node-operations/${n}`)}async function W2(n={}){const l=new URLSearchParams;n.nodeId&&l.set("nodeId",n.nodeId),n.status&&l.set("status",n.status),n.kind&&l.set("kind",n.kind);const o=l.toString();return(await Ee(`/node-operations${o?`?${o}`:""}`)).operations}function eE(n,l){return Ee(`/nodes/${n}/agents/${l}/upgrade`,{method:"POST"})}function tE(n,l){return Ee(`/nodes/${n}/runtime/restart`,{method:"POST",body:JSON.stringify(l)})}async function U3(){return(await Ee("/devboxes")).devboxes}function B3(n,l){return Ee(`/nodes/${n}/devbox/configure`,{method:"POST",body:JSON.stringify({devbox:l})})}function H3(n){return Ee(`/nodes/${n}/devbox/status`)}function V3(n){return Ee(`/nodes/${n}/devbox/start`,{method:"POST"})}function Y3(n,l){return Ee(`/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 Ee(`/nodes/${n}/workdir/tree${i?`?${i}`:""}`)}function q3(n,l={}){const o=new URLSearchParams;l.path&&o.set("path",l.path),l.limit!==void 0&&o.set("limit",String(Math.min(Math.max(1,l.limit),20))),l.offset!==void 0&&o.set("offset",String(Math.max(0,l.offset))),l.allowAbsolute!==void 0&&o.set("allowAbsolute",String(l.allowAbsolute));const i=o.toString();return Ee(`/nodes/${n}/workdir/branch${i?`?${i}`:""}`)}function G3(n,l){const o=new URLSearchParams;return o.set("agent",l.agent),o.set("limit",String(Math.min(Math.max(1,l.limit),100))),Ee(`/nodes/${n}/native-sessions?${o.toString()}`)}function X3(n,l){return Ee(`/nodes/${n}/workdir/branch`,{method:"POST",body:JSON.stringify({path:l.path,branchName:l.branchName,startPoint:l.startPoint,limit:l.limit,offset:l.offset,allowAbsolute:l.allowAbsolute})})}function P3(n,l){return Ee(`/nodes/${n}/terminal/sessions`,{method:"POST",body:JSON.stringify(l)})}function Q3(n){return Ee(`/nodes/${n}/terminal/sessions`)}function K3(n,l){return Ee(`/nodes/${n}/terminal/sessions/${l}`)}function Z3(n,l){return Ee(`/nodes/${n}/terminal/sessions/${l}/stop`,{method:"POST"})}async function I3(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 Ee(`/tasks${o?`?${o}`:""}`)).tasks}function F3(n){return Ee(`/tasks/${n}`)}function J3(n){return Ee("/tasks",{method:"POST",body:JSON.stringify(n)})}function W3(n){return Ee("/tasks/import-session",{method:"POST",body:JSON.stringify(n)})}function ej(n){return Ee("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:n})})}function tj(n){return Ee("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:n})})}function nj(n){return Ee(`/tasks/${n}/cancel`,{method:"POST"})}function aj(n){return Ee(`/tasks/${n}/retry`,{method:"POST"})}function lj(n,l){return Ee(`/tasks/${n}/logs`)}function rj(n,l){return Ee(`/tasks/${n}/message`,{method:"POST",body:JSON.stringify({content:l})})}function oj(n,l){return Ee(`/tasks/${n}/queued-messages/${encodeURIComponent(l)}`,{method:"DELETE"})}function ij(n,l){return Ee(`/tasks/${n}/share`,{method:"POST",body:JSON.stringify(l)})}function sj(n){return Ee(`/tasks/${n}/share`,{method:"DELETE"})}function cj(n){return Ee(`/shared/conversations/${encodeURIComponent(n)}`)}function uj(n,l){return Ee(`/shared/conversations/${encodeURIComponent(n)}/logs`)}function dj(n){return Ee(`/shared/conversations/${encodeURIComponent(n)}/output`)}function fj(n,l="."){return Ee(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(l)}`)}function mj(n,l){return Ee(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(l)}`)}function hj(n,l){return Ee(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(l?{path:l}:{})})}function nE(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}function pj(n){return Ee(`/tasks/${n}/output`)}function gj(n,l="."){return Ee(`/tasks/${n}/output/tree?path=${encodeURIComponent(l)}`)}function vj(n,l){return Ee(`/tasks/${n}/output/content?path=${encodeURIComponent(l)}`)}function yj(n,l){return Ee(`/tasks/${n}/output/preview-sessions`,{method:"POST",body:JSON.stringify(nE(l))})}function bj(n){return Ee(`/tasks/${n}/output/diff`)}function aE({hasStarted:n,enabled:l}){return l&&!n}function lE(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();aE({hasStarted:u.current,enabled:o})&&(u.current=!0,d());const f=setInterval(d,l);return()=>clearInterval(f)},[l,o])}let rE=0;function oE(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,N=>{const T={id:String(++rE),type:w,data:JSON.parse(N.data),timestamp:Date.now()};o(E=>[T,...E].slice(0,n));for(const[,{pattern:E,callback:C}]of h.current)w.startsWith(E)&&C(T)});return()=>{x.close(),d.current=null,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 iE=1e4,sE=6e4,cE=iE,uE=250,dE=new Set(["task.created","task.assigned","task.deleted"]),fE=new Set(["task.created","task.assigned","task.status","task.deleted"]);function mE(n){return n?sE:cE}function xj(n){return dE.has(n)}function hE(n){return fE.has(n)}function pE(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 gE(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 v0=v.createContext(null);function vE({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:N,subscribe:T}=oE(),E=v.useCallback(async()=>{var A;try{const[_,M]=await Promise.all([F2(),K2()]),k=_,Y=M.nodeId??M.id,G=k.nodes??[],B=G.find(re=>re.id===Y)??{id:Y,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(re=>re.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:((A=ae.leader)==null?void 0:A.id)??null,term:ae.term,nodeCount:ae.nodes.length},g.current=new Map(ae.nodes.map(re=>[re.id,re.status])),g.current.set(ae.self.id,ae.self.status),o(ae),u(M),y(null)}catch(_){y(_ instanceof Error?_.message:"Failed to fetch cluster state")}finally{f(!1)}},[]),C=v.useCallback(()=>{p.current===null&&(p.current=window.setTimeout(()=>{p.current=null,E()},uE))},[E]);return lE(E,mE(N)),v.useEffect(()=>()=>{p.current!==null&&(window.clearTimeout(p.current),p.current=null)},[]),v.useEffect(()=>{const A=[T("cluster",_=>{pE(_.data,x.current)&&C()}),T("election",C),T("node",_=>{gE(_.type,_.data,g.current)&&C()}),T("transport",C),T("task",_=>{hE(_.type)&&C()})];return()=>A.forEach(_=>_())},[T,C]),m.jsx(v0.Provider,{value:{cluster:l,systemInfo:i,events:w,sseConnected:N,subscribe:T,refresh:E,loading:d,error:h},children:n})}function y0(){const n=v.useContext(v0);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 b0=(...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 yE=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 bE=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 rv=n=>{const l=bE(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 _d={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
87
- * @license lucide-react v1.7.0 - ISC
88
- *
89
- * This source code is licensed under the ISC license.
90
- * See the LICENSE file in the root directory of this source tree.
91
- */const xE=n=>{for(const l in n)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1},SE=v.createContext({}),wE=()=>v.useContext(SE),EE=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:N=""}=wE()??{},T=i??g?Number(o??x)*24/Number(l??p):o??x;return v.createElement("svg",{ref:y,..._d,width:l??p??_d.width,height:l??p??_d.height,stroke:n??w,strokeWidth:T,className:b0("lucide",N,u),...!d&&!xE(h)&&{"aria-hidden":"true"},...h},[...f.map(([E,C])=>v.createElement(E,C)),...Array.isArray(d)?d:[d]])});/**
92
- * @license lucide-react v1.7.0 - ISC
93
- *
94
- * This source code is licensed under the ISC license.
95
- * See the LICENSE file in the root directory of this source tree.
96
- */const Ve=(n,l)=>{const o=v.forwardRef(({className:i,...u},d)=>v.createElement(EE,{ref:d,iconNode:l,className:b0(`lucide-${yE(rv(n))}`,`lucide-${n}`,i),...u}));return o.displayName=rv(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 NE=[["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",NE);/**
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 TE=[["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"}]],CE=Ve("book-open",TE);/**
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 AE=[["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"}]],x0=Ve("bot",AE);/**
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 RE=[["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"}]],_E=Ve("cable",RE);/**
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 jE=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],_s=Ve("check",jE);/**
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 OE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Zs=Ve("chevron-down",OE);/**
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 ME=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],DE=Ve("chevron-right",ME);/**
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 kE=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],zE=Ve("chevron-up",kE);/**
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 LE=[["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"}]],ds=Ve("circle-alert",LE);/**
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 UE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ho=Ve("circle-check",UE);/**
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 BE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],ov=Ve("circle-dot",BE);/**
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 HE=[["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"}]],VE=Ve("circle-x",HE);/**
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 YE=[["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"}]],$E=Ve("copy",YE);/**
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 qE=[["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"}]],GE=Ve("cpu",qE);/**
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 XE=[["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"}]],PE=Ve("external-link",XE);/**
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 QE=[["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"}]],KE=Ve("folder-tree",QE);/**
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 ZE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],IE=Ve("info",ZE);/**
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 FE=[["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"}]],JE=Ve("monitor-cog",FE);/**
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 WE=[["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"}]],S0=Ve("monitor",WE);/**
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 eN=[["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"}]],w0=Ve("moon",eN);/**
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 tN=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],nN=Ve("power",tN);/**
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 aN=[["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"}]],E0=Ve("radio",aN);/**
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 lN=[["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"}]],rN=Ve("refresh-cw",lN);/**
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 oN=[["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"}]],iN=Ve("server",oN);/**
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 sN=[["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"}]],cN=Ve("settings",sN);/**
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 uN=[["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"}]],dN=Ve("shield",uN);/**
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 fN=[["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"}]],mN=Ve("sparkles",fN);/**
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 hN=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],N0=Ve("sun",hN);/**
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 pN=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],T0=Ve("terminal",pN);/**
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 gN=[["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"}]],vN=Ve("wifi-off",gN);/**
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 yN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],C0=Ve("x",yN);function A0(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=A0(n[l]))&&(i&&(i+=" "),i+=o)}else for(o in n)n[o]&&(i&&(i+=" "),i+=o);return i}function R0(){for(var n,l,o=0,i="",u=arguments.length;o<u;o++)(n=arguments[o])&&(l=A0(n))&&(i&&(i+=" "),i+=l);return i}const bN=(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},xN=(n,l)=>({classGroupId:n,validator:l}),_0=(n=new Map,l=null,o)=>({nextPart:n,validators:l,classGroupId:o}),js="-",iv=[],SN="arbitrary..",wN=n=>{const l=NN(n),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return EN(f);const h=f.split(js),y=h[0]===""&&h.length>1?1:0;return j0(h,y,l)},getConflictingClassGroupIds:(f,h)=>{if(h){const y=i[f],p=o[f];return y?p?bN(p,y):y:p||iv}return o[f]||iv}}},j0=(n,l,o)=>{if(n.length-l===0)return o.classGroupId;const u=n[l],d=o.nextPart.get(u);if(d){const p=j0(n,l+1,d);if(p)return p}const f=o.validators;if(f===null)return;const h=l===0?n.join(js):n.slice(l).join(js),y=f.length;for(let p=0;p<y;p++){const x=f[p];if(x.validator(h))return x.classGroupId}},EN=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?SN+i:void 0})(),NN=n=>{const{theme:l,classGroups:o}=n;return TN(o,l)},TN=(n,l)=>{const o=_0();for(const i in n){const u=n[i];vf(u,o,i,l)}return o},vf=(n,l,o,i)=>{const u=n.length;for(let d=0;d<u;d++){const f=n[d];CN(f,l,o,i)}},CN=(n,l,o,i)=>{if(typeof n=="string"){AN(n,l,o);return}if(typeof n=="function"){RN(n,l,o,i);return}_N(n,l,o,i)},AN=(n,l,o)=>{const i=n===""?l:O0(l,n);i.classGroupId=o},RN=(n,l,o,i)=>{if(jN(n)){vf(n(i),l,o,i);return}l.validators===null&&(l.validators=[]),l.validators.push(xN(o,n))},_N=(n,l,o,i)=>{const u=Object.entries(n),d=u.length;for(let f=0;f<d;f++){const[h,y]=u[f];vf(y,O0(l,h),o,i)}},O0=(n,l)=>{let o=n;const i=l.split(js),u=i.length;for(let d=0;d<u;d++){const f=i[d];let h=o.nextPart.get(f);h||(h=_0(),o.nextPart.set(f,h)),o=h}return o},jN=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,ON=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)}}},Pd="!",sv=":",MN=[],cv=(n,l,o,i,u)=>({modifiers:n,hasImportantModifier:l,baseClassName:o,maybePostfixModifierPosition:i,isExternal:u}),DN=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 C=u[E];if(f===0&&h===0){if(C===sv){d.push(u.slice(y,E)),y=E+1;continue}if(C==="/"){p=E;continue}}C==="["?f++:C==="]"?f--:C==="("?h++:C===")"&&h--}const g=d.length===0?u:u.slice(y);let w=g,N=!1;g.endsWith(Pd)?(w=g.slice(0,-1),N=!0):g.startsWith(Pd)&&(w=g.slice(1),N=!0);const T=p&&p>y?p-y:void 0;return cv(d,N,w,T)};if(l){const u=l+sv,d=i;i=f=>f.startsWith(u)?d(f.slice(u.length)):cv(MN,!1,f,void 0,!0)}if(o){const u=i;i=d=>o({className:d,parseClassName:u})}return i},kN=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}},zN=n=>({cache:ON(n.cacheSize),parseClassName:DN(n),sortModifiers:kN(n),...wN(n)}),LN=/\s+/,UN=(n,l)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:u,sortModifiers:d}=l,f=[],h=n.trim().split(LN);let y="";for(let p=h.length-1;p>=0;p-=1){const x=h[p],{isExternal:g,modifiers:w,hasImportantModifier:N,baseClassName:T,maybePostfixModifierPosition:E}=o(x);if(g){y=x+(y.length>0?" "+y:y);continue}let C=!!E,A=i(C?T.substring(0,E):T);if(!A){if(!C){y=x+(y.length>0?" "+y:y);continue}if(A=i(T),!A){y=x+(y.length>0?" "+y:y);continue}C=!1}const _=w.length===0?"":w.length===1?w[0]:d(w).join(":"),M=N?_+Pd:_,k=M+A;if(f.indexOf(k)>-1)continue;f.push(k);const Y=u(A,C);for(let G=0;G<Y.length;++G){const B=Y[G];f.push(M+B)}y=x+(y.length>0?" "+y:y)}return y},BN=(...n)=>{let l=0,o,i,u="";for(;l<n.length;)(o=n[l++])&&(i=M0(o))&&(u&&(u+=" "),u+=i);return u},M0=n=>{if(typeof n=="string")return n;let l,o="";for(let i=0;i<n.length;i++)n[i]&&(l=M0(n[i]))&&(o&&(o+=" "),o+=l);return o},HN=(n,...l)=>{let o,i,u,d;const f=y=>{const p=l.reduce((x,g)=>g(x),n());return o=zN(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=UN(y,o);return u(y,x),x};return d=f,(...y)=>d(BN(...y))},VN=[],ht=n=>{const l=o=>o[n]||VN;return l.isThemeGetter=!0,l},D0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,k0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,YN=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,$N=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,qN=/\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$/,GN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,XN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,PN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,$a=n=>YN.test(n),Re=n=>!!n&&!Number.isNaN(Number(n)),qa=n=>!!n&&Number.isInteger(Number(n)),jd=n=>n.endsWith("%")&&Re(n.slice(0,-1)),ca=n=>$N.test(n),z0=()=>!0,QN=n=>qN.test(n)&&!GN.test(n),yf=()=>!1,KN=n=>XN.test(n),ZN=n=>PN.test(n),IN=n=>!he(n)&&!ge(n),FN=n=>Ia(n,B0,yf),he=n=>D0.test(n),wl=n=>Ia(n,H0,QN),uv=n=>Ia(n,rT,Re),JN=n=>Ia(n,Y0,z0),WN=n=>Ia(n,V0,yf),dv=n=>Ia(n,L0,yf),eT=n=>Ia(n,U0,ZN),fs=n=>Ia(n,$0,KN),ge=n=>k0.test(n),zo=n=>jl(n,H0),tT=n=>jl(n,V0),fv=n=>jl(n,L0),nT=n=>jl(n,B0),aT=n=>jl(n,U0),ms=n=>jl(n,$0,!0),lT=n=>jl(n,Y0,!0),Ia=(n,l,o)=>{const i=D0.exec(n);return i?i[1]?l(i[1]):o(i[2]):!1},jl=(n,l,o=!1)=>{const i=k0.exec(n);return i?i[1]?l(i[1]):o:!1},L0=n=>n==="position"||n==="percentage",U0=n=>n==="image"||n==="url",B0=n=>n==="length"||n==="size"||n==="bg-size",H0=n=>n==="length",rT=n=>n==="number",V0=n=>n==="family-name",Y0=n=>n==="number"||n==="weight",$0=n=>n==="shadow",oT=()=>{const n=ht("color"),l=ht("font"),o=ht("text"),i=ht("font-weight"),u=ht("tracking"),d=ht("leading"),f=ht("breakpoint"),h=ht("container"),y=ht("spacing"),p=ht("radius"),x=ht("shadow"),g=ht("inset-shadow"),w=ht("text-shadow"),N=ht("drop-shadow"),T=ht("blur"),E=ht("perspective"),C=ht("aspect"),A=ht("ease"),_=ht("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"],Y=()=>[...k(),ge,he],G=()=>["auto","hidden","clip","visible","scroll"],B=()=>["auto","contain","none"],V=()=>[ge,he,y],ae=()=>[$a,"full","auto",...V()],re=()=>[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"],le=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...V()],q=()=>[$a,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],I=()=>[$a,"screen","full","dvw","lvw","svw","min","max","fit",...V()],ce=()=>[$a,"screen","full","lh","dvh","lvh","svh","min","max","fit",...V()],F=()=>[n,ge,he],j=()=>[...k(),fv,dv,{position:[ge,he]}],X=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Q=()=>["auto","cover","contain",nT,FN,{size:[ge,he]}],W=()=>[jd,zo,wl],ee=()=>["","none","full",p,ge,he],oe=()=>["",Re,zo,wl],te=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[Re,jd,fv,dv],xe=()=>["","none",T,ge,he],ye=()=>["none",Re,ge,he],Se=()=>["none",Re,ge,he],Ye=()=>[Re,ge,he],Le=()=>[$a,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ca],breakpoint:[ca],color:[z0],container:[ca],"drop-shadow":[ca],ease:["in","out","in-out"],font:[IN],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ca],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ca],shadow:[ca],spacing:["px",Re],text:[ca],"text-shadow":[ca],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",$a,he,ge,C]}],container:["container"],columns:[{columns:[Re,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:Y()}],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:[Re,$a,"auto","initial","none",he]}],grow:[{grow:["",Re,ge,he]}],shrink:[{shrink:["",Re,ge,he]}],order:[{order:[qa,"first","last","none",ge,he]}],"grid-cols":[{"grid-cols":re()}],"col-start-end":[{col:pe()}],"col-start":[{"col-start":me()}],"col-end":[{"col-end":me()}],"grid-rows":[{"grid-rows":re()}],"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":[...le(),"normal"]}],"justify-self":[{"justify-self":["auto",...le()]}],"align-content":[{content:["normal",...de()]}],"align-items":[{items:[...le(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...le(),{baseline:["","last"]}]}],"place-content":[{"place-content":de()}],"place-items":[{"place-items":[...le(),"baseline"]}],"place-self":[{"place-self":["auto",...le()]}],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:q()}],"inline-size":[{inline:["auto",...I()]}],"min-inline-size":[{"min-inline":["auto",...I()]}],"max-inline-size":[{"max-inline":["none",...I()]}],"block-size":[{block:["auto",...ce()]}],"min-block-size":[{"min-block":["auto",...ce()]}],"max-block-size":[{"max-block":["none",...ce()]}],w:[{w:[h,"screen",...q()]}],"min-w":[{"min-w":[h,"screen","none",...q()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[f]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",o,zo,wl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,lT,JN]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",jd,he]}],"font-family":[{font:[tT,WN,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":[Re,"none",ge,uv]}],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:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...te(),"wavy"]}],"text-decoration-thickness":[{decoration:[Re,"from-font","auto",ge,wl]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[Re,"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]},aT,eT]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:W()}],"gradient-via-pos":[{via:W()}],"gradient-to-pos":[{to:W()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:oe()}],"border-w-x":[{"border-x":oe()}],"border-w-y":[{"border-y":oe()}],"border-w-s":[{"border-s":oe()}],"border-w-e":[{"border-e":oe()}],"border-w-bs":[{"border-bs":oe()}],"border-w-be":[{"border-be":oe()}],"border-w-t":[{"border-t":oe()}],"border-w-r":[{"border-r":oe()}],"border-w-b":[{"border-b":oe()}],"border-w-l":[{"border-l":oe()}],"divide-x":[{"divide-x":oe()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":oe()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...te(),"hidden","none"]}],"divide-style":[{divide:[...te(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...te(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Re,ge,he]}],"outline-w":[{outline:["",Re,zo,wl]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",x,ms,fs]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",g,ms,fs]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:oe()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[Re,wl]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":oe()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",w,ms,fs]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[Re,ge,he]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"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":[Re]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[ge,he]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[Re]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask: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:xe()}],brightness:[{brightness:[Re,ge,he]}],contrast:[{contrast:[Re,ge,he]}],"drop-shadow":[{"drop-shadow":["","none",N,ms,fs]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",Re,ge,he]}],"hue-rotate":[{"hue-rotate":[Re,ge,he]}],invert:[{invert:["",Re,ge,he]}],saturate:[{saturate:[Re,ge,he]}],sepia:[{sepia:["",Re,ge,he]}],"backdrop-filter":[{"backdrop-filter":["","none",ge,he]}],"backdrop-blur":[{"backdrop-blur":xe()}],"backdrop-brightness":[{"backdrop-brightness":[Re,ge,he]}],"backdrop-contrast":[{"backdrop-contrast":[Re,ge,he]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Re,ge,he]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Re,ge,he]}],"backdrop-invert":[{"backdrop-invert":["",Re,ge,he]}],"backdrop-opacity":[{"backdrop-opacity":[Re,ge,he]}],"backdrop-saturate":[{"backdrop-saturate":[Re,ge,he]}],"backdrop-sepia":[{"backdrop-sepia":["",Re,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:[Re,"initial",ge,he]}],ease:[{ease:["linear","initial",A,ge,he]}],delay:[{delay:[Re,ge,he]}],animate:[{animate:["none",_,ge,he]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[E,ge,he]}],"perspective-origin":[{"perspective-origin":Y()}],rotate:[{rotate:ye()}],"rotate-x":[{"rotate-x":ye()}],"rotate-y":[{"rotate-y":ye()}],"rotate-z":[{"rotate-z":ye()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"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:Y()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Le()}],"translate-x":[{"translate-x":Le()}],"translate-y":[{"translate-y":Le()}],"translate-z":[{"translate-z":Le()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",ge,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",...F()]}],"stroke-w":[{stroke:[Re,zo,wl,uv]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},iT=HN(oT);function se(...n){return iT(R0(n))}const mv=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,hv=R0,q0=(n,l)=>o=>{var i;if((l==null?void 0:l.variants)==null)return hv(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=mv(x)||mv(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,...N}=x;return Object.entries(N).every(T=>{let[E,C]=T;return Array.isArray(C)?C.includes({...d,...h}[E]):{...d,...h}[E]===C})?[...p,g,w]:p},[]);return hv(n,f,y,o==null?void 0:o.class,o==null?void 0:o.className)},sT=q0("inline-flex items-center rounded-sm border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function pt({className:n,variant:l,...o}){return m.jsx("div",{className:se(sT({variant:l}),n),...o})}const cT={online:"bg-green-500",busy:"bg-yellow-500",offline:"bg-red-500"};function G0({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:se("relative inline-flex h-2.5 w-2.5 rounded-full",cT[n])})]})}function uT({role:n,size:l="default"}){return m.jsx(pt,{variant:n==="leader"?"default":"secondary",className:se(l==="compact"?"px-1.5 py-0 text-[9px] leading-4":"text-[11px]"),children:n})}const dT={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 wj({status:n,size:l="default"}){const o=dT[n],i=l==="compact"?"gap-0.5 px-1 py-0 text-[8px] leading-3 [&>span]:h-[3px] [&>span]:w-[3px]":"gap-1 px-1.5 py-0 text-[10px] leading-4 [&>span]:h-[5px] [&>span]:w-[5px]";return m.jsxs(pt,{variant:o.variant,className:se("rounded-sm font-medium shadow-none",i,o.className),children:[m.jsx("span",{className:se("rounded-full",o.dotClass)}),n]})}const fT={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function Ej({priority:n}){const l=fT[n];return m.jsx(pt,{variant:l.variant,className:"rounded-sm px-1.5 py-0 text-[10px] leading-4 shadow-none",children:l.label})}function mT(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 hT=n=>{switch(n){case"success":return vT;case"info":return bT;case"warning":return yT;case"error":return xT;default:return null}},pT=Array(12).fill(0),gT=({visible:n,className:l})=>ne.createElement("div",{className:["sonner-loading-wrapper",l].filter(Boolean).join(" "),"data-visible":n},ne.createElement("div",{className:"sonner-spinner"},pT.map((o,i)=>ne.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),vT=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"})),yT=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"})),bT=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"})),xT=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"})),ST=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"})),wT=()=>{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 Qd=1;class ET{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:Qd++,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(TT(p)&&!p.ok){d=!1;const g=typeof o.error=="function"?await o.error(`HTTP error! status: ${p.status}`):o.error,w=typeof o.description=="function"?await o.description(`HTTP error! status: ${p.status}`):o.description,T=typeof g=="object"&&!ne.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:w,...T})}else if(p instanceof Error){d=!1;const g=typeof o.error=="function"?await o.error(p):o.error,w=typeof o.description=="function"?await o.description(p):o.description,T=typeof g=="object"&&!ne.isValidElement(g)?g:{message:g};this.create({id:i,type:"error",description:w,...T})}else if(o.success!==void 0){d=!1;const g=typeof o.success=="function"?await o.success(p):o.success,w=typeof o.description=="function"?await o.description(p):o.description,T=typeof g=="object"&&!ne.isValidElement(g)?g:{message:g};this.create({id:i,type:"success",description:w,...T})}}).catch(async p=>{if(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,N=typeof x=="object"&&!ne.isValidElement(x)?x:{message:x};this.create({id:i,type:"error",description:g,...N})}}).finally(()=>{d&&(this.dismiss(i),i=void 0),o.finally==null||o.finally.call(o)}),y=()=>new Promise((p,x)=>h.then(()=>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)||Qd++;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 Xt=new ET,NT=(n,l)=>{const o=(l==null?void 0:l.id)||Qd++;return Xt.addToast({title:n,...l,id:o}),o},TT=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",CT=NT,AT=()=>Xt.toasts,RT=()=>Xt.getActiveToasts(),ft=Object.assign(CT,{success:Xt.success,info:Xt.info,warning:Xt.warning,error:Xt.error,custom:Xt.custom,message:Xt.message,promise:Xt.promise,dismiss:Xt.dismiss,loading:Xt.loading},{getHistory:AT,getToasts:RT});mT("[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 hs(n){return n.label!==void 0}const _T=3,jT="24px",OT="16px",pv=4e3,MT=356,DT=14,kT=45,zT=200;function On(...n){return n.filter(Boolean).join(" ")}function LT(n){const[l,o]=n.split("-"),i=[];return l&&i.push(l),o&&i.push(o),i}const UT=n=>{var l,o,i,u,d,f,h,y,p;const{invert:x,toast:g,unstyled:w,interacting:N,setHeights:T,visibleToasts:E,heights:C,index:A,toasts:_,expanded:M,removeToast:k,defaultRichColors:Y,closeButton:G,style:B,cancelButtonStyle:V,actionButtonStyle:ae,className:re="",descriptionClassName:pe="",duration:me,position:ue,gap:de,expandByDefault:le,classNames:O,icons:q,closeButtonAriaLabel:I="Close toast"}=n,[ce,F]=ne.useState(null),[j,X]=ne.useState(null),[Q,W]=ne.useState(!1),[ee,oe]=ne.useState(!1),[te,ie]=ne.useState(!1),[J,xe]=ne.useState(!1),[ye,Se]=ne.useState(!1),[Ye,Le]=ne.useState(0),[$e,gt]=ne.useState(0),rt=ne.useRef(g.duration||me||pv),Pt=ne.useRef(null),vt=ne.useRef(null),Br=A===0,Hr=A+1<=E,jt=g.type,pa=g.dismissible!==!1,Ot=g.className||"",sc=g.descriptionClassName||"",el=ne.useMemo(()=>C.findIndex(Ne=>Ne.toastId===g.id)||0,[C,g.id]),Io=ne.useMemo(()=>{var Ne;return(Ne=g.closeButton)!=null?Ne:G},[g.closeButton,G]),tl=ne.useMemo(()=>g.duration||me||pv,[g.duration,me]),Vr=ne.useRef(0),Gn=ne.useRef(0),Fo=ne.useRef(0),ga=ne.useRef(null),[nl,Mt]=ue.split("-"),pn=ne.useMemo(()=>C.reduce((Ne,We,yt)=>yt>=el?Ne:Ne+We.height,0),[C,el]),Ct=wT(),cc=g.invert||x,Yr=jt==="loading";Gn.current=ne.useMemo(()=>el*de+pn,[el,pn]),ne.useEffect(()=>{rt.current=tl},[tl]),ne.useEffect(()=>{W(!0)},[]),ne.useEffect(()=>{const Ne=vt.current;if(Ne){const We=Ne.getBoundingClientRect().height;return gt(We),T(yt=>[{toastId:g.id,height:We,position:g.position},...yt]),()=>T(yt=>yt.filter(At=>At.toastId!==g.id))}},[T,g.id]),ne.useLayoutEffect(()=>{if(!Q)return;const Ne=vt.current,We=Ne.style.height;Ne.style.height="auto";const yt=Ne.getBoundingClientRect().height;Ne.style.height=We,gt(yt),T(At=>At.find(nt=>nt.toastId===g.id)?At.map(nt=>nt.toastId===g.id?{...nt,height:yt}:nt):[{toastId:g.id,height:yt,position:g.position},...At])},[Q,g.title,g.description,T,g.id,g.jsx,g.action,g.cancel]);const Tn=ne.useCallback(()=>{oe(!0),Le(Gn.current),T(Ne=>Ne.filter(We=>We.toastId!==g.id)),setTimeout(()=>{k(g)},zT)},[g,k,T,Gn]);ne.useEffect(()=>{if(g.promise&&jt==="loading"||g.duration===1/0||g.type==="loading")return;let Ne;return M||N||Ct?(()=>{if(Fo.current<Vr.current){const At=new Date().getTime()-Vr.current;rt.current=rt.current-At}Fo.current=new Date().getTime()})():(()=>{rt.current!==1/0&&(Vr.current=new Date().getTime(),Ne=setTimeout(()=>{g.onAutoClose==null||g.onAutoClose.call(g,g),Tn()},rt.current))})(),()=>clearTimeout(Ne)},[M,N,g,jt,Ct,Tn]),ne.useEffect(()=>{g.delete&&(Tn(),g.onDismiss==null||g.onDismiss.call(g,g))},[Tn,g.delete]);function Ol(){var Ne;if(q!=null&&q.loading){var We;return ne.createElement("div",{className:On(O==null?void 0:O.loader,g==null||(We=g.classNames)==null?void 0:We.loader,"sonner-loader"),"data-visible":jt==="loading"},q.loading)}return ne.createElement(gT,{className:On(O==null?void 0:O.loader,g==null||(Ne=g.classNames)==null?void 0:Ne.loader),visible:jt==="loading"})}const Ml=g.icon||(q==null?void 0:q[jt])||hT(jt);var al,Cn;return ne.createElement("li",{tabIndex:0,ref:vt,className:On(re,Ot,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[jt],g==null||(o=g.classNames)==null?void 0:o[jt]),"data-sonner-toast":"","data-rich-colors":(al=g.richColors)!=null?al:Y,"data-styled":!(g.jsx||g.unstyled||w),"data-mounted":Q,"data-promise":!!g.promise,"data-swiped":ye,"data-removed":ee,"data-visible":Hr,"data-y-position":nl,"data-x-position":Mt,"data-index":A,"data-front":Br,"data-swiping":te,"data-dismissible":pa,"data-type":jt,"data-invert":cc,"data-swipe-out":J,"data-swipe-direction":j,"data-expanded":!!(M||le&&Q),"data-testid":g.testId,style:{"--index":A,"--toasts-before":A,"--z-index":_.length-A,"--offset":`${ee?Ye:Gn.current}px`,"--initial-height":le?"auto":`${$e}px`,...B,...g.style},onDragEnd:()=>{ie(!1),F(null),ga.current=null},onPointerDown:Ne=>{Ne.button!==2&&(Yr||!pa||(Pt.current=new Date,Le(Gn.current),Ne.target.setPointerCapture(Ne.pointerId),Ne.target.tagName!=="BUTTON"&&(ie(!0),ga.current={x:Ne.clientX,y:Ne.clientY})))},onPointerUp:()=>{var Ne,We,yt;if(J||!pa)return;ga.current=null;const At=Number(((Ne=vt.current)==null?void 0:Ne.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),va=Number(((We=vt.current)==null?void 0:We.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),nt=new Date().getTime()-((yt=Pt.current)==null?void 0:yt.getTime()),kt=ce==="x"?At:va,ll=Math.abs(kt)/nt;if(Math.abs(kt)>=kT||ll>.11){Le(Gn.current),g.onDismiss==null||g.onDismiss.call(g,g),X(ce==="x"?At>0?"right":"left":va>0?"down":"up"),Tn(),xe(!0);return}else{var zt,Lt;(zt=vt.current)==null||zt.style.setProperty("--swipe-amount-x","0px"),(Lt=vt.current)==null||Lt.style.setProperty("--swipe-amount-y","0px")}Se(!1),ie(!1),F(null)},onPointerMove:Ne=>{var We,yt,At;if(!ga.current||!pa||((We=window.getSelection())==null?void 0:We.toString().length)>0)return;const nt=Ne.clientY-ga.current.y,kt=Ne.clientX-ga.current.x;var ll;const zt=(ll=n.swipeDirections)!=null?ll:LT(ue);!ce&&(Math.abs(kt)>1||Math.abs(nt)>1)&&F(Math.abs(kt)>Math.abs(nt)?"x":"y");let Lt={x:0,y:0};const Dl=gn=>1/(1.5+Math.abs(gn)/20);if(ce==="y"){if(zt.includes("top")||zt.includes("bottom"))if(zt.includes("top")&&nt<0||zt.includes("bottom")&&nt>0)Lt.y=nt;else{const gn=nt*Dl(nt);Lt.y=Math.abs(gn)<Math.abs(nt)?gn:nt}}else if(ce==="x"&&(zt.includes("left")||zt.includes("right")))if(zt.includes("left")&&kt<0||zt.includes("right")&&kt>0)Lt.x=kt;else{const gn=kt*Dl(kt);Lt.x=Math.abs(gn)<Math.abs(kt)?gn:kt}(Math.abs(Lt.x)>0||Math.abs(Lt.y)>0)&&Se(!0),(yt=vt.current)==null||yt.style.setProperty("--swipe-amount-x",`${Lt.x}px`),(At=vt.current)==null||At.style.setProperty("--swipe-amount-y",`${Lt.y}px`)}},Io&&!g.jsx&&jt!=="loading"?ne.createElement("button",{"aria-label":I,"data-disabled":Yr,"data-close-button":!0,onClick:Yr||!pa?()=>{}:()=>{Tn(),g.onDismiss==null||g.onDismiss.call(g,g)},className:On(O==null?void 0:O.closeButton,g==null||(i=g.classNames)==null?void 0:i.closeButton)},(Cn=q==null?void 0:q.close)!=null?Cn:ST):null,(jt||g.icon||g.promise)&&g.icon!==null&&((q==null?void 0:q[jt])!==null||g.icon)?ne.createElement("div",{"data-icon":"",className:On(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||Ol():null,g.type!=="loading"?Ml:null):null,ne.createElement("div",{"data-content":"",className:On(O==null?void 0:O.content,g==null||(d=g.classNames)==null?void 0:d.content)},ne.createElement("div",{"data-title":"",className:On(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:On(pe,sc,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&&hs(g.cancel)?ne.createElement("button",{"data-button":!0,"data-cancel":!0,style:g.cancelButtonStyle||V,onClick:Ne=>{hs(g.cancel)&&pa&&(g.cancel.onClick==null||g.cancel.onClick.call(g.cancel,Ne),Tn())},className:On(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&&hs(g.action)?ne.createElement("button",{"data-button":!0,"data-action":!0,style:g.actionButtonStyle||ae,onClick:Ne=>{hs(g.action)&&(g.action.onClick==null||g.action.onClick.call(g.action,Ne),!Ne.defaultPrevented&&Tn())},className:On(O==null?void 0:O.actionButton,g==null||(p=g.classNames)==null?void 0:p.actionButton)},g.action.label):null)};function gv(){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 BT(n,l){const o={};return[n,l].forEach((i,u)=>{const d=u===1,f=d?"--mobile-offset":"--offset",h=d?OT:jT;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 HT=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:N,duration:T,style:E,visibleToasts:C=_T,toastOptions:A,dir:_=gv(),gap:M=DT,icons:k,containerAriaLabel:Y="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]),[re,pe]=ne.useState([]),[me,ue]=ne.useState(!1),[de,le]=ne.useState(!1),[O,q]=ne.useState(w!=="system"?w:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),I=ne.useRef(null),ce=f.join("+").replace(/Key/g,"").replace(/Digit/g,""),F=ne.useRef(null),j=ne.useRef(!1),X=ne.useCallback(Q=>{B(W=>{var ee;return(ee=W.find(oe=>oe.id===Q.id))!=null&&ee.delete||Xt.dismiss(Q.id),W.filter(({id:oe})=>oe!==Q.id)})},[]);return ne.useEffect(()=>Xt.subscribe(Q=>{if(Q.dismiss){requestAnimationFrame(()=>{B(W=>W.map(ee=>ee.id===Q.id?{...ee,delete:!0}:ee))});return}setTimeout(()=>{g0.flushSync(()=>{B(W=>{const ee=W.findIndex(oe=>oe.id===Q.id);return ee!==-1?[...W.slice(0,ee),{...W[ee],...Q},...W.slice(ee+1)]:[Q,...W]})})})}),[G]),ne.useEffect(()=>{if(w!=="system"){q(w);return}if(w==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?q("dark"):q("light")),typeof window>"u")return;const Q=window.matchMedia("(prefers-color-scheme: dark)");try{Q.addEventListener("change",({matches:W})=>{q(W?"dark":"light")})}catch{Q.addListener(({matches:ee})=>{try{q(ee?"dark":"light")}catch(oe){console.error(oe)}})}},[w]),ne.useEffect(()=>{G.length<=1&&ue(!1)},[G]),ne.useEffect(()=>{const Q=W=>{var ee;if(f.every(ie=>W[ie]||W.code===ie)){var te;ue(!0),(te=I.current)==null||te.focus()}W.code==="Escape"&&(document.activeElement===I.current||(ee=I.current)!=null&&ee.contains(document.activeElement))&&ue(!1)};return document.addEventListener("keydown",Q),()=>document.removeEventListener("keydown",Q)},[f]),ne.useEffect(()=>{if(I.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,j.current=!1)}},[I.current]),ne.createElement("section",{ref:o,"aria-label":`${Y} ${ce}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ae.map((Q,W)=>{var ee;const[oe,te]=Q.split("-");return V.length?ne.createElement("ol",{key:Q,dir:_==="auto"?gv():_,tabIndex:-1,ref:I,className:p,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":oe,"data-x-position":te,style:{"--front-toast-height":`${((ee=re[0])==null?void 0:ee.height)||0}px`,"--width":`${MT}px`,"--gap":`${M}px`,...E,...BT(x,g)},onBlur:ie=>{j.current&&!ie.currentTarget.contains(ie.relatedTarget)&&(j.current=!1,F.current&&(F.current.focus({preventScroll:!0}),F.current=null))},onFocus:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||j.current||(j.current=!0,F.current=ie.relatedTarget)},onMouseEnter:()=>ue(!0),onMouseMove:()=>ue(!0),onMouseLeave:()=>{de||ue(!1)},onDragEnd:()=>ue(!1),onPointerDown:ie=>{ie.target instanceof HTMLElement&&ie.target.dataset.dismissible==="false"||le(!0)},onPointerUp:()=>le(!1)},V.filter(ie=>!ie.position&&W===0||ie.position===Q).map((ie,J)=>{var xe,ye;return ne.createElement(UT,{key:ie.id,icons:k,index:J,toast:ie,defaultRichColors:N,duration:(xe=A==null?void 0:A.duration)!=null?xe:T,className:A==null?void 0:A.className,descriptionClassName:A==null?void 0:A.descriptionClassName,invert:u,visibleToasts:C,closeButton:(ye=A==null?void 0:A.closeButton)!=null?ye:y,interacting:de,position:Q,style:A==null?void 0:A.style,unstyled:A==null?void 0:A.unstyled,classNames:A==null?void 0:A.classNames,cancelButtonStyle:A==null?void 0:A.cancelButtonStyle,actionButtonStyle:A==null?void 0:A.actionButtonStyle,closeButtonAriaLabel:A==null?void 0:A.closeButtonAriaLabel,removeToast:X,toasts:V.filter(Se=>Se.position==ie.position),heights:re.filter(Se=>Se.position==ie.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:se("rounded-lg border bg-card text-card-foreground shadow-sm",n),...l}));Mn.displayName="Card";const Dn=v.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:se("flex flex-col space-y-1.5 p-6",n),...l}));Dn.displayName="CardHeader";const kn=v.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:se("text-2xl font-semibold leading-none tracking-tight",n),...l}));kn.displayName="CardTitle";const zn=v.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:se("text-sm text-muted-foreground",n),...l}));zn.displayName="CardDescription";const Ln=v.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:se("p-6 pt-0",n),...l}));Ln.displayName="CardContent";const VT=v.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:se("flex items-center p-6 pt-0",n),...l}));VT.displayName="CardFooter";function vv(n,l){if(typeof n=="function")return n(l);n!=null&&(n.current=l)}function bf(...n){return l=>{let o=!1;const i=n.map(u=>{const d=vv(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():vv(n[u],null)}}}}function Ie(...n){return v.useCallback(bf(...n),n)}var YT=Symbol.for("react.lazy"),Os=uf[" use ".trim().toString()];function $T(n){return typeof n=="object"&&n!==null&&"then"in n}function X0(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===YT&&"_payload"in n&&$T(n._payload)}function qT(n){const l=XT(n),o=v.forwardRef((i,u)=>{let{children:d,...f}=i;X0(d)&&typeof Os=="function"&&(d=Os(d._payload));const h=v.Children.toArray(d),y=h.find(QT);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 GT=qT("Slot");function XT(n){const l=v.forwardRef((o,i)=>{let{children:u,...d}=o;if(X0(u)&&typeof Os=="function"&&(u=Os(u._payload)),v.isValidElement(u)){const f=ZT(u),h=KT(d,u.props);return u.type!==v.Fragment&&(h.ref=i?bf(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 PT=Symbol("radix.slottable");function QT(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===PT}function KT(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 ZT(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 xf=q0("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-sm text-sm font-semibold transition-all duration-200 ease-out hover:-translate-y-px focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 active:translate-y-0 active:scale-[0.985] disabled:pointer-events-none disabled:translate-y-0 disabled:scale-100 disabled:opacity-50 disabled:shadow-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"border border-primary/15 bg-primary text-primary-foreground shadow-[0_14px_34px_-20px_hsl(var(--primary)/0.9)] hover:bg-primary/90 hover:shadow-[0_18px_42px_-22px_hsl(var(--primary)/0.95)]",destructive:"border border-destructive/15 bg-destructive text-destructive-foreground shadow-[0_14px_34px_-20px_hsl(var(--destructive)/0.8)] hover:bg-destructive/90",outline:"border border-input/80 bg-background/72 shadow-sm backdrop-blur hover:border-primary/35 hover:bg-accent/70 hover:text-accent-foreground",secondary:"border border-transparent bg-secondary/88 text-secondary-foreground shadow-sm hover:bg-secondary",ghost:"hover:bg-accent/72 hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-sm px-3",lg:"h-11 rounded-lg px-8",icon:"h-10 w-10 rounded-sm"}},defaultVariants:{variant:"default",size:"default"}}),Yn=v.forwardRef(({className:n,variant:l,size:o,asChild:i=!1,...u},d)=>{const f=i?GT:"button";return m.jsx(f,{className:se(xf({variant:l,size:o,className:n})),ref:d,...u})});Yn.displayName="Button";function Oe(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 IT(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 Fa(n,l=[]){let o=[];function i(d,f){const h=v.createContext(f),y=o.length;o=[...o,f];const p=g=>{var A;const{scope:w,children:N,...T}=g,E=((A=w==null?void 0:w[n])==null?void 0:A[y])||h,C=v.useMemo(()=>T,Object.values(T));return m.jsx(E.Provider,{value:C,children:N})};p.displayName=d+"Provider";function x(g,w){var E;const N=((E=w==null?void 0:w[n])==null?void 0:E[y])||h,T=v.useContext(N);if(T)return T;if(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,FT(u,...l)]}function FT(...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 _t=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},JT=uf[" useId ".trim().toString()]||(()=>{}),WT=0;function Xa(n){const[l,o]=v.useState(JT());return _t(()=>{o(i=>i??String(WT++))},[n]),l?`radix-${l}`:""}var eC=uf[" useInsertionEffect ".trim().toString()]||_t;function Rr({prop:n,defaultProp:l,onChange:o=()=>{},caller:i}){const[u,d,f]=tC({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=nC(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 tC({defaultProp:n,onChange:l}){const[o,i]=v.useState(n),u=v.useRef(o),d=v.useRef(l);return eC(()=>{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 nC(n){return typeof n=="function"}function qo(n){const l=aC(n),o=v.forwardRef((i,u)=>{const{children:d,...f}=i,h=v.Children.toArray(d),y=h.find(rC);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 aC(n){const l=v.forwardRef((o,i)=>{const{children:u,...d}=o;if(v.isValidElement(u)){const f=iC(u),h=oC(d,u.props);return u.type!==v.Fragment&&(h.ref=i?bf(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 P0=Symbol("radix.slottable");function lC(n){const l=({children:o})=>m.jsx(m.Fragment,{children:o});return l.displayName=`${n}.Slottable`,l.__radixId=P0,l}function rC(n){return v.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===P0}function oC(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 iC(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 sC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ze=sC.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 cC(n,l){n&&Qo.flushSync(()=>n.dispatchEvent(l))}function Qa(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 uC(n,l=globalThis==null?void 0:globalThis.document){const o=Qa(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 dC="DismissableLayer",Kd="dismissableLayer.update",fC="dismissableLayer.pointerDownOutside",mC="dismissableLayer.focusOutside",yv,Q0=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Sf=v.forwardRef((n,l)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,...y}=n,p=v.useContext(Q0),[x,g]=v.useState(null),w=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,N]=v.useState({}),T=Ie(l,B=>g(B)),E=Array.from(p.layers),[C]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),A=E.indexOf(C),_=x?E.indexOf(x):-1,M=p.layersWithOutsidePointerEventsDisabled.size>0,k=_>=A,Y=gC(B=>{const V=B.target,ae=[...p.branches].some(re=>re.contains(V));!k||ae||(u==null||u(B),f==null||f(B),B.defaultPrevented||h==null||h())},w),G=vC(B=>{const V=B.target;[...p.branches].some(re=>re.contains(V))||(d==null||d(B),f==null||f(B),B.defaultPrevented||h==null||h())},w);return uC(B=>{_===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&&(yv=w.body.style.pointerEvents,w.body.style.pointerEvents="none"),p.layersWithOutsidePointerEventsDisabled.add(x)),p.layers.add(x),bv(),()=>{o&&p.layersWithOutsidePointerEventsDisabled.size===1&&(w.body.style.pointerEvents=yv)}},[x,w,o,p]),v.useEffect(()=>()=>{x&&(p.layers.delete(x),p.layersWithOutsidePointerEventsDisabled.delete(x),bv())},[x,p]),v.useEffect(()=>{const B=()=>N({});return document.addEventListener(Kd,B),()=>document.removeEventListener(Kd,B)},[]),m.jsx(ze.div,{...y,ref:T,style:{pointerEvents:M?k?"auto":"none":void 0,...n.style},onFocusCapture:Oe(n.onFocusCapture,G.onFocusCapture),onBlurCapture:Oe(n.onBlurCapture,G.onBlurCapture),onPointerDownCapture:Oe(n.onPointerDownCapture,Y.onPointerDownCapture)})});Sf.displayName=dC;var hC="DismissableLayerBranch",pC=v.forwardRef((n,l)=>{const o=v.useContext(Q0),i=v.useRef(null),u=Ie(l,i);return v.useEffect(()=>{const d=i.current;if(d)return o.branches.add(d),()=>{o.branches.delete(d)}},[o.branches]),m.jsx(ze.div,{...n,ref:u})});pC.displayName=hC;function gC(n,l=globalThis==null?void 0:globalThis.document){const o=Qa(n),i=v.useRef(!1),u=v.useRef(()=>{});return v.useEffect(()=>{const d=h=>{if(h.target&&!i.current){let y=function(){K0(fC,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 vC(n,l=globalThis==null?void 0:globalThis.document){const o=Qa(n),i=v.useRef(!1);return v.useEffect(()=>{const u=d=>{d.target&&!i.current&&K0(mC,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 bv(){const n=new CustomEvent(Kd);document.dispatchEvent(n)}function K0(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?cC(u,d):u.dispatchEvent(d)}var Od="focusScope.autoFocusOnMount",Md="focusScope.autoFocusOnUnmount",xv={bubbles:!1,cancelable:!0},yC="FocusScope",wf=v.forwardRef((n,l)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:u,onUnmountAutoFocus:d,...f}=n,[h,y]=v.useState(null),p=Qa(u),x=Qa(d),g=v.useRef(null),w=Ie(l,E=>y(E)),N=v.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;v.useEffect(()=>{if(i){let E=function(M){if(N.paused||!h)return;const k=M.target;h.contains(k)?g.current=k:Ga(g.current,{select:!0})},C=function(M){if(N.paused||!h)return;const k=M.relatedTarget;k!==null&&(h.contains(k)||Ga(g.current,{select:!0}))},A=function(M){if(document.activeElement===document.body)for(const Y of M)Y.removedNodes.length>0&&Ga(h)};document.addEventListener("focusin",E),document.addEventListener("focusout",C);const _=new MutationObserver(A);return h&&_.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",E),document.removeEventListener("focusout",C),_.disconnect()}}},[i,h,N.paused]),v.useEffect(()=>{if(h){wv.add(N);const E=document.activeElement;if(!h.contains(E)){const A=new CustomEvent(Od,xv);h.addEventListener(Od,p),h.dispatchEvent(A),A.defaultPrevented||(bC(NC(Z0(h)),{select:!0}),document.activeElement===E&&Ga(h))}return()=>{h.removeEventListener(Od,p),setTimeout(()=>{const A=new CustomEvent(Md,xv);h.addEventListener(Md,x),h.dispatchEvent(A),A.defaultPrevented||Ga(E??document.body,{select:!0}),h.removeEventListener(Md,x),wv.remove(N)},0)}}},[h,p,x,N]);const T=v.useCallback(E=>{if(!o&&!i||N.paused)return;const C=E.key==="Tab"&&!E.altKey&&!E.ctrlKey&&!E.metaKey,A=document.activeElement;if(C&&A){const _=E.currentTarget,[M,k]=xC(_);M&&k?!E.shiftKey&&A===k?(E.preventDefault(),o&&Ga(M,{select:!0})):E.shiftKey&&A===M&&(E.preventDefault(),o&&Ga(k,{select:!0})):A===_&&E.preventDefault()}},[o,i,N.paused]);return m.jsx(ze.div,{tabIndex:-1,...f,ref:w,onKeyDown:T})});wf.displayName=yC;function bC(n,{select:l=!1}={}){const o=document.activeElement;for(const i of n)if(Ga(i,{select:l}),document.activeElement!==o)return}function xC(n){const l=Z0(n),o=Sv(l,n),i=Sv(l.reverse(),n);return[o,i]}function Z0(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 Sv(n,l){for(const o of n)if(!SC(o,{upTo:l}))return o}function SC(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 wC(n){return n instanceof HTMLInputElement&&"select"in n}function Ga(n,{select:l=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&wC(n)&&l&&n.select()}}var wv=EC();function EC(){let n=[];return{add(l){const o=n[0];l!==o&&(o==null||o.pause()),n=Ev(n,l),n.unshift(l)},remove(l){var o;n=Ev(n,l),(o=n[0])==null||o.resume()}}}function Ev(n,l){const o=[...n],i=o.indexOf(l);return i!==-1&&o.splice(i,1),o}function NC(n){return n.filter(l=>l.tagName!=="A")}var TC="Portal",Ef=v.forwardRef((n,l)=>{var h;const{container:o,...i}=n,[u,d]=v.useState(!1);_t(()=>d(!0),[]);const f=o||u&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return f?g0.createPortal(m.jsx(ze.div,{...i,ref:l}),f):null});Ef.displayName=TC;function CC(n,l){return v.useReducer((o,i)=>l[o][i]??o,n)}var kr=n=>{const{present:l,children:o}=n,i=AC(l),u=typeof o=="function"?o({present:i.isPresent}):v.Children.only(o),d=Ie(i.ref,RC(u));return typeof o=="function"||i.isPresent?v.cloneElement(u,{ref:d}):null};kr.displayName="Presence";function AC(n){const[l,o]=v.useState(),i=v.useRef(null),u=v.useRef(n),d=v.useRef("none"),f=n?"mounted":"unmounted",[h,y]=CC(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const p=ps(i.current);d.current=h==="mounted"?p:"none"},[h]),_t(()=>{const p=i.current,x=u.current;if(x!==n){const w=d.current,N=ps(p);n?y("MOUNT"):N==="none"||(p==null?void 0:p.display)==="none"?y("UNMOUNT"):y(x&&w!==N?"ANIMATION_OUT":"UNMOUNT"),u.current=n}},[n,y]),_t(()=>{if(l){let p;const x=l.ownerDocument.defaultView??window,g=N=>{const E=ps(i.current).includes(CSS.escape(N.animationName));if(N.target===l&&E&&(y("ANIMATION_END"),!u.current)){const C=l.style.animationFillMode;l.style.animationFillMode="forwards",p=x.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=C)})}},w=N=>{N.target===l&&(d.current=ps(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 ps(n){return(n==null?void 0:n.animationName)||"none"}function RC(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 Dd=0;function I0(){v.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??Nv()),document.body.insertAdjacentElement("beforeend",n[1]??Nv()),Dd++,()=>{Dd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),Dd--}},[])}function Nv(){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 Un=function(){return Un=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},Un.apply(this,arguments)};function F0(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 _C(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 Es="right-scroll-bar-position",Ns="width-before-scroll-bar",jC="with-scroll-bars-hidden",OC="--removed-body-scroll-bar-size";function kd(n,l){return typeof n=="function"?n(l):n&&(n.current=l),n}function MC(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 DC=typeof window<"u"?v.useLayoutEffect:v.useEffect,Tv=new WeakMap;function kC(n,l){var o=MC(null,function(i){return n.forEach(function(u){return kd(u,i)})});return DC(function(){var i=Tv.get(o);if(i){var u=new Set(i),d=new Set(n),f=o.current;u.forEach(function(h){d.has(h)||kd(h,null)}),d.forEach(function(h){u.has(h)||kd(h,f)})}Tv.set(o,n)},[n]),o}function zC(n){return n}function LC(n,l){l===void 0&&(l=zC);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 UC(n){n===void 0&&(n={});var l=LC(null);return l.options=Un({async:!0,ssr:!1},n),l}var J0=function(n){var l=n.sideCar,o=F0(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,Un({},o))};J0.isSideCarExport=!0;function BC(n,l){return n.useMedium(l),J0}var W0=UC(),zd=function(){},Is=v.forwardRef(function(n,l){var o=v.useRef(null),i=v.useState({onScrollCapture:zd,onWheelCapture:zd,onTouchMoveCapture:zd}),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,N=n.noRelative,T=n.noIsolation,E=n.inert,C=n.allowPinchZoom,A=n.as,_=A===void 0?"div":A,M=n.gapMode,k=F0(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),Y=w,G=kC([o,l]),B=Un(Un({},k),u);return v.createElement(v.Fragment,null,x&&v.createElement(Y,{sideCar:W0,removeScrollBar:p,shards:g,noRelative:N,noIsolation:T,inert:E,setCallbacks:d,allowPinchZoom:!!C,lockRef:o,gapMode:M}),f?v.cloneElement(v.Children.only(h),Un(Un({},B),{ref:G})):v.createElement(_,Un({},B,{className:y,ref:G}),h))});Is.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Is.classNames={fullWidth:Ns,zeroRight:Es};var HC=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function VC(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var l=HC();return l&&n.setAttribute("nonce",l),n}function YC(n,l){n.styleSheet?n.styleSheet.cssText=l:n.appendChild(document.createTextNode(l))}function $C(n){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(n)}var qC=function(){var n=0,l=null;return{add:function(o){n==0&&(l=VC())&&(YC(l,o),$C(l)),n++},remove:function(){n--,!n&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},GC=function(){var n=qC();return function(l,o){v.useEffect(function(){return n.add(l),function(){n.remove()}},[l&&o])}},ey=function(){var n=GC(),l=function(o){var i=o.styles,u=o.dynamic;return n(i,u),null};return l},XC={left:0,top:0,right:0,gap:0},Ld=function(n){return parseInt(n||"",10)||0},PC=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[Ld(o),Ld(i),Ld(u)]},QC=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return XC;var l=PC(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])}},KC=ey(),Tr="data-scroll-locked",ZC=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(jC,` {
253
- overflow: hidden `).concat(i,`;
254
- padding-right: `).concat(h,"px ").concat(i,`;
255
- }
256
- body[`).concat(Tr,`] {
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(Es,` {
270
- right: `).concat(h,"px ").concat(i,`;
271
- }
272
-
273
- .`).concat(Ns,` {
274
- margin-right: `).concat(h,"px ").concat(i,`;
275
- }
276
-
277
- .`).concat(Es," .").concat(Es,` {
278
- right: 0 `).concat(i,`;
279
- }
280
-
281
- .`).concat(Ns," .").concat(Ns,` {
282
- margin-right: 0 `).concat(i,`;
283
- }
284
-
285
- body[`).concat(Tr,`] {
286
- `).concat(OC,": ").concat(h,`px;
287
- }
288
- `)},Cv=function(){var n=parseInt(document.body.getAttribute(Tr)||"0",10);return isFinite(n)?n:0},IC=function(){v.useEffect(function(){return document.body.setAttribute(Tr,(Cv()+1).toString()),function(){var n=Cv()-1;n<=0?document.body.removeAttribute(Tr):document.body.setAttribute(Tr,n.toString())}},[])},FC=function(n){var l=n.noRelative,o=n.noImportant,i=n.gapMode,u=i===void 0?"margin":i;IC();var d=v.useMemo(function(){return QC(u)},[u]);return v.createElement(KC,{styles:ZC(d,!l,u,o?"":"!important")})},Zd=!1;if(typeof window<"u")try{var gs=Object.defineProperty({},"passive",{get:function(){return Zd=!0,!0}});window.addEventListener("test",gs,gs),window.removeEventListener("test",gs,gs)}catch{Zd=!1}var yr=Zd?{passive:!1}:!1,JC=function(n){return n.tagName==="TEXTAREA"},ty=function(n,l){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[l]!=="hidden"&&!(o.overflowY===o.overflowX&&!JC(n)&&o[l]==="visible")},WC=function(n){return ty(n,"overflowY")},e5=function(n){return ty(n,"overflowX")},Av=function(n,l){var o=l.ownerDocument,i=l;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var u=ny(n,i);if(u){var d=ay(n,i),f=d[1],h=d[2];if(f>h)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},t5=function(n){var l=n.scrollTop,o=n.scrollHeight,i=n.clientHeight;return[l,o,i]},n5=function(n){var l=n.scrollLeft,o=n.scrollWidth,i=n.clientWidth;return[l,o,i]},ny=function(n,l){return n==="v"?WC(l):e5(l)},ay=function(n,l){return n==="v"?t5(l):n5(l)},a5=function(n,l){return n==="h"&&l==="rtl"?-1:1},l5=function(n,l,o,i,u){var d=a5(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 N=ay(n,h),T=N[0],E=N[1],C=N[2],A=E-C-d*T;(T||A)&&ny(n,h)&&(g+=A,w+=T);var _=h.parentNode;h=_&&_.nodeType===Node.DOCUMENT_FRAGMENT_NODE?_.host:_}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},vs=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},Rv=function(n){return[n.deltaX,n.deltaY]},_v=function(n){return n&&"current"in n?n.current:n},r5=function(n,l){return n[0]===l[0]&&n[1]===l[1]},o5=function(n){return`
289
- .block-interactivity-`.concat(n,` {pointer-events: none;}
290
- .allow-interactivity-`).concat(n,` {pointer-events: all;}
291
- `)},i5=0,br=[];function s5(n){var l=v.useRef([]),o=v.useRef([0,0]),i=v.useRef(),u=v.useState(i5++)[0],d=v.useState(ey)[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=_C([n.lockRef.current],(n.shards||[]).map(_v),!0).filter(Boolean);return E.forEach(function(C){return C.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),E.forEach(function(C){return C.classList.remove("allow-interactivity-".concat(u))})}}},[n.inert,n.lockRef.current,n.shards]);var h=v.useCallback(function(E,C){if("touches"in E&&E.touches.length===2||E.type==="wheel"&&E.ctrlKey)return!f.current.allowPinchZoom;var A=vs(E),_=o.current,M="deltaX"in E?E.deltaX:_[0]-A[0],k="deltaY"in E?E.deltaY:_[1]-A[1],Y,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,re=ae?ae===G||ae.contains(G):!1;if(re)return!1;var pe=Av(B,G);if(!pe)return!0;if(pe?Y=B:(Y=B==="v"?"h":"v",pe=Av(B,G)),!pe)return!1;if(!i.current&&"changedTouches"in E&&(M||k)&&(i.current=Y),!Y)return!0;var me=i.current||Y;return l5(me,C,E,me==="h"?M:k)},[]),y=v.useCallback(function(E){var C=E;if(!(!br.length||br[br.length-1]!==d)){var A="deltaY"in C?Rv(C):vs(C),_=l.current.filter(function(Y){return Y.name===C.type&&(Y.target===C.target||C.target===Y.shadowParent)&&r5(Y.delta,A)})[0];if(_&&_.should){C.cancelable&&C.preventDefault();return}if(!_){var M=(f.current.shards||[]).map(_v).filter(Boolean).filter(function(Y){return Y.contains(C.target)}),k=M.length>0?h(C,M[0]):!f.current.noIsolation;k&&C.cancelable&&C.preventDefault()}}},[]),p=v.useCallback(function(E,C,A,_){var M={name:E,delta:C,target:A,should:_,shadowParent:c5(A)};l.current.push(M),setTimeout(function(){l.current=l.current.filter(function(k){return k!==M})},1)},[]),x=v.useCallback(function(E){o.current=vs(E),i.current=void 0},[]),g=v.useCallback(function(E){p(E.type,Rv(E),E.target,h(E,n.lockRef.current))},[]),w=v.useCallback(function(E){p(E.type,vs(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 N=n.removeScrollBar,T=n.inert;return v.createElement(v.Fragment,null,T?v.createElement(d,{styles:o5(u)}):null,N?v.createElement(FC,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function c5(n){for(var l=null;n!==null;)n instanceof ShadowRoot&&(l=n.host,n=n.host),n=n.parentNode;return l}const u5=BC(W0,s5);var Nf=v.forwardRef(function(n,l){return v.createElement(Is,Un({},n,{ref:l,sideCar:u5}))});Nf.classNames=Is.classNames;var d5=function(n){if(typeof document>"u")return null;var l=Array.isArray(n)?n[0]:n;return l.ownerDocument.body},xr=new WeakMap,ys=new WeakMap,bs={},Ud=0,ly=function(n){return n&&(n.host||ly(n.parentNode))},f5=function(n,l){return l.map(function(o){if(n.contains(o))return o;var i=ly(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})},m5=function(n,l,o,i){var u=f5(l,Array.isArray(n)?n:[n]);bs[o]||(bs[o]=new WeakMap);var d=bs[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 N=w.getAttribute(i),T=N!==null&&N!=="false",E=(xr.get(w)||0)+1,C=(d.get(w)||0)+1;xr.set(w,E),d.set(w,C),f.push(w),E===1&&T&&ys.set(w,!0),C===1&&w.setAttribute(o,"true"),T||w.setAttribute(i,"true")}catch(A){console.error("aria-hidden: cannot operate on ",w,A)}})};return x(l),h.clear(),Ud++,function(){f.forEach(function(g){var w=xr.get(g)-1,N=d.get(g)-1;xr.set(g,w),d.set(g,N),w||(ys.has(g)||g.removeAttribute(i),ys.delete(g)),N||g.removeAttribute(o)}),Ud--,Ud||(xr=new WeakMap,xr=new WeakMap,ys=new WeakMap,bs={})}},ry=function(n,l,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),u=d5(n);return u?(i.push.apply(i,Array.from(u.querySelectorAll("[aria-live], script"))),m5(i,u,o,"aria-hidden")):function(){return null}},Fs="Dialog",[oy,iy]=Fa(Fs),[h5,Nn]=oy(Fs),sy=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]=Rr({prop:i,defaultProp:u??!1,onChange:d,caller:Fs});return m.jsx(h5,{scope:l,triggerRef:h,contentRef:y,contentId:Xa(),titleId:Xa(),descriptionId:Xa(),open:p,onOpenChange:x,onOpenToggle:v.useCallback(()=>x(g=>!g),[x]),modal:f,children:o})};sy.displayName=Fs;var cy="DialogTrigger",uy=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=Nn(cy,o),d=Ie(l,u.triggerRef);return m.jsx(ze.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":Af(u.open),...i,ref:d,onClick:Oe(n.onClick,u.onOpenToggle)})});uy.displayName=cy;var Tf="DialogPortal",[p5,dy]=oy(Tf,{forceMount:void 0}),fy=n=>{const{__scopeDialog:l,forceMount:o,children:i,container:u}=n,d=Nn(Tf,l);return m.jsx(p5,{scope:l,forceMount:o,children:v.Children.map(i,f=>m.jsx(kr,{present:o||d.open,children:m.jsx(Ef,{asChild:!0,container:u,children:f})}))})};fy.displayName=Tf;var Ms="DialogOverlay",my=v.forwardRef((n,l)=>{const o=dy(Ms,n.__scopeDialog),{forceMount:i=o.forceMount,...u}=n,d=Nn(Ms,n.__scopeDialog);return d.modal?m.jsx(kr,{present:i||d.open,children:m.jsx(v5,{...u,ref:l})}):null});my.displayName=Ms;var g5=qo("DialogOverlay.RemoveScroll"),v5=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=Nn(Ms,o);return m.jsx(Nf,{as:g5,allowPinchZoom:!0,shards:[u.contentRef],children:m.jsx(ze.div,{"data-state":Af(u.open),...i,ref:l,style:{pointerEvents:"auto",...i.style}})})}),Cl="DialogContent",hy=v.forwardRef((n,l)=>{const o=dy(Cl,n.__scopeDialog),{forceMount:i=o.forceMount,...u}=n,d=Nn(Cl,n.__scopeDialog);return m.jsx(kr,{present:i||d.open,children:d.modal?m.jsx(y5,{...u,ref:l}):m.jsx(b5,{...u,ref:l})})});hy.displayName=Cl;var y5=v.forwardRef((n,l)=>{const o=Nn(Cl,n.__scopeDialog),i=v.useRef(null),u=Ie(l,o.contentRef,i);return v.useEffect(()=>{const d=i.current;if(d)return ry(d)},[]),m.jsx(py,{...n,ref:u,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Oe(n.onCloseAutoFocus,d=>{var f;d.preventDefault(),(f=o.triggerRef.current)==null||f.focus()}),onPointerDownOutside:Oe(n.onPointerDownOutside,d=>{const f=d.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0;(f.button===2||h)&&d.preventDefault()}),onFocusOutside:Oe(n.onFocusOutside,d=>d.preventDefault())})}),b5=v.forwardRef((n,l)=>{const o=Nn(Cl,n.__scopeDialog),i=v.useRef(!1),u=v.useRef(!1);return m.jsx(py,{...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()}})}),py=v.forwardRef((n,l)=>{const{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:u,onCloseAutoFocus:d,...f}=n,h=Nn(Cl,o),y=v.useRef(null),p=Ie(l,y);return I0(),m.jsxs(m.Fragment,{children:[m.jsx(wf,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:u,onUnmountAutoFocus:d,children:m.jsx(Sf,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Af(h.open),...f,ref:p,onDismiss:()=>h.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(S5,{titleId:h.titleId}),m.jsx(E5,{contentRef:y,descriptionId:h.descriptionId})]})]})}),Cf="DialogTitle",gy=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=Nn(Cf,o);return m.jsx(ze.h2,{id:u.titleId,...i,ref:l})});gy.displayName=Cf;var vy="DialogDescription",yy=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=Nn(vy,o);return m.jsx(ze.p,{id:u.descriptionId,...i,ref:l})});yy.displayName=vy;var by="DialogClose",xy=v.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=Nn(by,o);return m.jsx(ze.button,{type:"button",...i,ref:l,onClick:Oe(n.onClick,()=>u.onOpenChange(!1))})});xy.displayName=by;function Af(n){return n?"open":"closed"}var Sy="DialogTitleWarning",[x5,wy]=IT(Sy,{contentName:Cl,titleName:Cf,docsSlug:"dialog"}),S5=({titleId:n})=>{const l=wy(Sy),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},w5="DialogDescriptionWarning",E5=({contentRef:n,descriptionId:l})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${wy(w5).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},Ey=sy,Ny=uy,Ty=fy,Rf=my,_f=hy,jf=gy,Of=yy,Js=xy;const N5=Ey,T5=Ny,C5=Ty,Nj=Js,Cy=v.forwardRef(({className:n,...l},o)=>m.jsx(Rf,{ref:o,className:se("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}));Cy.displayName=Rf.displayName;const Ay=v.forwardRef(({className:n,children:l,...o},i)=>m.jsxs(C5,{children:[m.jsx(Cy,{}),m.jsxs(_f,{ref:i,className:se("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-xl border bg-background p-6 shadow-[0_34px_110px_-54px_rgba(0,0,0,0.55)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n),...o,children:[l,m.jsxs(Js,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[m.jsx(C0,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ay.displayName=_f.displayName;const Ry=({className:n,...l})=>m.jsx("div",{className:se("flex flex-col space-y-1.5 text-center sm:text-left",n),...l});Ry.displayName="DialogHeader";const A5=({className:n,...l})=>m.jsx("div",{className:se("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...l});A5.displayName="DialogFooter";const _y=v.forwardRef(({className:n,...l},o)=>m.jsx(jf,{ref:o,className:se("text-lg font-semibold leading-none tracking-tight",n),...l}));_y.displayName=jf.displayName;const jy=v.forwardRef(({className:n,...l},o)=>m.jsx(Of,{ref:o,className:se("text-sm text-muted-foreground",n),...l}));jy.displayName=Of.displayName;function R5({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(N5,{open:f,onOpenChange:h,children:[i&&m.jsx(T5,{asChild:!0,children:m.jsx(Yn,{variant:"ghost",size:"icon","aria-label":"Settings",title:"Settings",className:"rounded-sm bg-background/70 text-muted-foreground shadow-sm hover:bg-accent/72 hover:text-foreground",children:m.jsx(cN,{className:"h-4 w-4"})})}),m.jsxs(Ay,{className:"settings-dialog-content grid h-[min(78vh,38rem)] max-h-[78vh] max-w-[min(86vw,50rem)] grid-rows-[auto_minmax(0,1fr)] gap-0 overflow-hidden rounded-xl border-border/70 bg-background/96 p-0 shadow-[0_40px_120px_-56px_rgba(15,23,42,0.75)] backdrop-blur-xl",children:[m.jsxs(Ry,{className:"shrink-0 border-b border-border/60 px-3 py-1.5 sm:px-3.5",children:[m.jsxs(_y,{className:"flex items-center gap-1.5 text-[11px]",children:[m.jsx(JE,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),m.jsx(jy,{className:"text-[10px]",children:"Session diagnostics, access configuration, and build metadata for the current Meshy node."})]}),m.jsx("div",{className:"min-h-0 overflow-y-auto px-2.5 pb-2 pt-0 sm:px-3 sm:pb-2.5",children:n})]})]})}function jv(n,[l,o]){return Math.min(o,Math.max(l,n))}function Oy(n){const l=n+"CollectionProvider",[o,i]=Fa(l),[u,d]=o(l,{collectionRef:{current:null},itemMap:new Map}),f=E=>{const{scope:C,children:A}=E,_=ne.useRef(null),M=ne.useRef(new Map).current;return m.jsx(u,{scope:C,itemMap:M,collectionRef:_,children:A})};f.displayName=l;const h=n+"CollectionSlot",y=qo(h),p=ne.forwardRef((E,C)=>{const{scope:A,children:_}=E,M=d(h,A),k=Ie(C,M.collectionRef);return m.jsx(y,{ref:k,children:_})});p.displayName=h;const x=n+"CollectionItemSlot",g="data-radix-collection-item",w=qo(x),N=ne.forwardRef((E,C)=>{const{scope:A,children:_,...M}=E,k=ne.useRef(null),Y=Ie(C,k),G=d(x,A);return ne.useEffect(()=>(G.itemMap.set(k,{ref:k,...M}),()=>void G.itemMap.delete(k))),m.jsx(w,{[g]:"",ref:Y,children:_})});N.displayName=x;function T(E){const C=d(n+"CollectionConsumer",E);return ne.useCallback(()=>{const _=C.collectionRef.current;if(!_)return[];const M=Array.from(_.querySelectorAll(`[${g}]`));return Array.from(C.itemMap.values()).sort((G,B)=>M.indexOf(G.ref.current)-M.indexOf(B.ref.current))},[C.collectionRef,C.itemMap])}return[{Provider:f,Slot:p,ItemSlot:N},T,i]}var _5=v.createContext(void 0);function Mf(n){const l=v.useContext(_5);return n||l||"ltr"}const j5=["top","right","bottom","left"],Ka=Math.min,en=Math.max,Ds=Math.round,xs=Math.floor,Vn=n=>({x:n,y:n}),O5={left:"right",right:"left",bottom:"top",top:"bottom"};function Id(n,l,o){return en(n,Ka(l,o))}function da(n,l){return typeof n=="function"?n(l):n}function fa(n){return n.split("-")[0]}function zr(n){return n.split("-")[1]}function Df(n){return n==="x"?"y":"x"}function kf(n){return n==="y"?"height":"width"}function Bn(n){const l=n[0];return l==="t"||l==="b"?"y":"x"}function zf(n){return Df(Bn(n))}function M5(n,l,o){o===void 0&&(o=!1);const i=zr(n),u=zf(n),d=kf(u);let f=u==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return l.reference[d]>l.floating[d]&&(f=ks(f)),[f,ks(f)]}function D5(n){const l=ks(n);return[Fd(n),l,Fd(l)]}function Fd(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Ov=["left","right"],Mv=["right","left"],k5=["top","bottom"],z5=["bottom","top"];function L5(n,l,o){switch(n){case"top":case"bottom":return o?l?Mv:Ov:l?Ov:Mv;case"left":case"right":return l?k5:z5;default:return[]}}function U5(n,l,o,i){const u=zr(n);let d=L5(fa(n),o==="start",i);return u&&(d=d.map(f=>f+"-"+u),l&&(d=d.concat(d.map(Fd)))),d}function ks(n){const l=fa(n);return O5[l]+n.slice(l.length)}function B5(n){return{top:0,right:0,bottom:0,left:0,...n}}function My(n){return typeof n!="number"?B5(n):{top:n,right:n,bottom:n,left:n}}function zs(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 Dv(n,l,o){let{reference:i,floating:u}=n;const d=Bn(l),f=zf(l),h=kf(f),y=fa(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 N;switch(y){case"top":N={x,y:i.y-u.height};break;case"bottom":N={x,y:i.y+i.height};break;case"right":N={x:i.x+i.width,y:g};break;case"left":N={x:i.x-u.width,y:g};break;default:N={x:i.x,y:i.y}}switch(zr(l)){case"start":N[f]-=w*(o&&p?-1:1);break;case"end":N[f]+=w*(o&&p?-1:1);break}return N}async function H5(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:N=0}=da(l,n),T=My(N),C=h[w?g==="floating"?"reference":"floating":g],A=zs(await d.getClippingRect({element:(o=await(d.isElement==null?void 0:d.isElement(C)))==null||o?C:C.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(h.floating)),boundary:p,rootBoundary:x,strategy:y})),_=g==="floating"?{x:i,y: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},Y=zs(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:_,offsetParent:M,strategy:y}):_);return{top:(A.top-Y.top+T.top)/k.y,bottom:(Y.bottom-A.bottom+T.bottom)/k.y,left:(A.left-Y.left+T.left)/k.x,right:(Y.right-A.right+T.right)/k.x}}const V5=50,Y5=async(n,l,o)=>{const{placement:i="bottom",strategy:u="absolute",middleware:d=[],platform:f}=o,h=f.detectOverflow?f:{...f,detectOverflow:H5},y=await(f.isRTL==null?void 0:f.isRTL(l));let p=await f.getElementRects({reference:n,floating:l,strategy:u}),{x,y:g}=Dv(p,i,y),w=i,N=0;const T={};for(let E=0;E<d.length;E++){const C=d[E];if(!C)continue;const{name:A,fn:_}=C,{x:M,y:k,data:Y,reset:G}=await _({x,y:g,initialPlacement:i,placement:w,strategy:u,middlewareData:T,rects:p,platform:h,elements:{reference:n,floating:l}});x=M??x,g=k??g,T[A]={...T[A],...Y},G&&N<V5&&(N++,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}=Dv(p,w,y)),E=-1)}return{x,y:g,placement:w,strategy:u,middlewareData:T}},$5=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}=da(n,l)||{};if(p==null)return{};const g=My(x),w={x:o,y:i},N=zf(u),T=kf(N),E=await f.getDimensions(p),C=N==="y",A=C?"top":"left",_=C?"bottom":"right",M=C?"clientHeight":"clientWidth",k=d.reference[T]+d.reference[N]-w[N]-d.floating[T],Y=w[N]-d.reference[N],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[T]);const V=k/2-Y/2,ae=B/2-E[T]/2-1,re=Ka(g[A],ae),pe=Ka(g[_],ae),me=re,ue=B-E[T]-pe,de=B/2-E[T]/2+V,le=Id(me,de,ue),O=!y.arrow&&zr(u)!=null&&de!==le&&d.reference[T]/2-(de<me?re:pe)-E[T]/2<0,q=O?de<me?de-me:de-ue:0;return{[N]:w[N]+q,data:{[N]:le,centerOffset:de-le-q,...O&&{alignmentOffset:q}},reset:O}}}),q5=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:N="bestFit",fallbackAxisSideDirection:T="none",flipAlignment:E=!0,...C}=da(n,l);if((o=d.arrow)!=null&&o.alignmentOffset)return{};const A=fa(u),_=Bn(h),M=fa(h)===h,k=await(y.isRTL==null?void 0:y.isRTL(p.floating)),Y=w||(M||!E?[ks(h)]:D5(h)),G=T!=="none";!w&&G&&Y.push(...U5(h,E,T,k));const B=[h,...Y],V=await y.detectOverflow(l,C),ae=[];let re=((i=d.flip)==null?void 0:i.overflows)||[];if(x&&ae.push(V[A]),g){const de=M5(u,f,k);ae.push(V[de[0]],V[de[1]])}if(re=[...re,{placement:u,overflows:ae}],!ae.every(de=>de<=0)){var pe,me;const de=(((pe=d.flip)==null?void 0:pe.index)||0)+1,le=B[de];if(le&&(!(g==="alignment"?_!==Bn(le):!1)||re.every(I=>Bn(I.placement)===_?I.overflows[0]>0:!0)))return{data:{index:de,overflows:re},reset:{placement:le}};let O=(me=re.filter(q=>q.overflows[0]<=0).sort((q,I)=>q.overflows[1]-I.overflows[1])[0])==null?void 0:me.placement;if(!O)switch(N){case"bestFit":{var ue;const q=(ue=re.filter(I=>{if(G){const ce=Bn(I.placement);return ce===_||ce==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(ce=>ce>0).reduce((ce,F)=>ce+F,0)]).sort((I,ce)=>I[1]-ce[1])[0])==null?void 0:ue[0];q&&(O=q);break}case"initialPlacement":O=h;break}if(u!==O)return{reset:{placement:O}}}return{}}}};function kv(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function zv(n){return j5.some(l=>n[l]>=0)}const G5=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(l){const{rects:o,platform:i}=l,{strategy:u="referenceHidden",...d}=da(n,l);switch(u){case"referenceHidden":{const f=await i.detectOverflow(l,{...d,elementContext:"reference"}),h=kv(f,o.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:zv(h)}}}case"escaped":{const f=await i.detectOverflow(l,{...d,altBoundary:!0}),h=kv(f,o.floating);return{data:{escapedOffsets:h,escaped:zv(h)}}}default:return{}}}}},Dy=new Set(["left","top"]);async function X5(n,l){const{placement:o,platform:i,elements:u}=n,d=await(i.isRTL==null?void 0:i.isRTL(u.floating)),f=fa(o),h=zr(o),y=Bn(o)==="y",p=Dy.has(f)?-1:1,x=d&&y?-1:1,g=da(l,n);let{mainAxis:w,crossAxis:N,alignmentAxis:T}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return h&&typeof T=="number"&&(N=h==="end"?T*-1:T),y?{x:N*x,y:w*p}:{x:w*p,y:N*x}}const P5=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 X5(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}}}}},Q5=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:A=>{let{x:_,y:M}=A;return{x:_,y:M}}},...p}=da(n,l),x={x:o,y:i},g=await d.detectOverflow(l,p),w=Bn(fa(u)),N=Df(w);let T=x[N],E=x[w];if(f){const A=N==="y"?"top":"left",_=N==="y"?"bottom":"right",M=T+g[A],k=T-g[_];T=Id(M,T,k)}if(h){const A=w==="y"?"top":"left",_=w==="y"?"bottom":"right",M=E+g[A],k=E-g[_];E=Id(M,E,k)}const C=y.fn({...l,[N]:T,[w]:E});return{...C,data:{x:C.x-o,y:C.y-i,enabled:{[N]:f,[w]:h}}}}}},K5=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}=da(n,l),x={x:o,y:i},g=Bn(u),w=Df(g);let N=x[w],T=x[g];const E=da(h,l),C=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]+C.mainAxis,Y=d.reference[w]+d.reference[M]-C.mainAxis;N<k?N=k:N>Y&&(N=Y)}if(p){var A,_;const M=w==="y"?"width":"height",k=Dy.has(fa(u)),Y=d.reference[g]-d.floating[M]+(k&&((A=f.offset)==null?void 0:A[g])||0)+(k?0:C.crossAxis),G=d.reference[g]+d.reference[M]+(k?0:((_=f.offset)==null?void 0:_[g])||0)-(k?C.crossAxis:0);T<Y?T=Y:T>G&&(T=G)}return{[w]:N,[g]:T}}}},Z5=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}=da(n,l),x=await f.detectOverflow(l,p),g=fa(u),w=zr(u),N=Bn(u)==="y",{width:T,height:E}=d.floating;let C,A;g==="top"||g==="bottom"?(C=g,A=w===(await(f.isRTL==null?void 0:f.isRTL(h.floating))?"start":"end")?"left":"right"):(A=g,C=w==="end"?"top":"bottom");const _=E-x.top-x.bottom,M=T-x.left-x.right,k=Ka(E-x[C],_),Y=Ka(T-x[A],M),G=!l.middlewareData.shift;let B=k,V=Y;if((o=l.middlewareData.shift)!=null&&o.enabled.x&&(V=M),(i=l.middlewareData.shift)!=null&&i.enabled.y&&(B=_),G&&!w){const re=en(x.left,0),pe=en(x.right,0),me=en(x.top,0),ue=en(x.bottom,0);N?V=T-2*(re!==0||pe!==0?re+pe:en(x.left,x.right)):B=E-2*(me!==0||ue!==0?me+ue:en(x.top,x.bottom))}await y({...l,availableWidth:V,availableHeight:B});const ae=await f.getDimensions(h.floating);return T!==ae.width||E!==ae.height?{reset:{rects:!0}}:{}}}};function Ws(){return typeof window<"u"}function Lr(n){return ky(n)?(n.nodeName||"").toLowerCase():"#document"}function tn(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function qn(n){var l;return(l=(ky(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function ky(n){return Ws()?n instanceof Node||n instanceof tn(n).Node:!1}function wn(n){return Ws()?n instanceof Element||n instanceof tn(n).Element:!1}function ma(n){return Ws()?n instanceof HTMLElement||n instanceof tn(n).HTMLElement:!1}function Lv(n){return!Ws()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof tn(n).ShadowRoot}function Ko(n){const{overflow:l,overflowX:o,overflowY:i,display:u}=En(n);return/auto|scroll|overlay|hidden|clip/.test(l+i+o)&&u!=="inline"&&u!=="contents"}function I5(n){return/^(table|td|th)$/.test(Lr(n))}function ec(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const F5=/transform|translate|scale|rotate|perspective|filter/,J5=/paint|layout|strict|content/,El=n=>!!n&&n!=="none";let Bd;function Lf(n){const l=wn(n)?En(n):n;return El(l.transform)||El(l.translate)||El(l.scale)||El(l.rotate)||El(l.perspective)||!Uf()&&(El(l.backdropFilter)||El(l.filter))||F5.test(l.willChange||"")||J5.test(l.contain||"")}function W5(n){let l=Za(n);for(;ma(l)&&!_r(l);){if(Lf(l))return l;if(ec(l))return null;l=Za(l)}return null}function Uf(){return Bd==null&&(Bd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Bd}function _r(n){return/^(html|body|#document)$/.test(Lr(n))}function En(n){return tn(n).getComputedStyle(n)}function tc(n){return wn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Za(n){if(Lr(n)==="html")return n;const l=n.assignedSlot||n.parentNode||Lv(n)&&n.host||qn(n);return Lv(l)?l.host:l}function zy(n){const l=Za(n);return _r(l)?n.ownerDocument?n.ownerDocument.body:n.body:ma(l)&&Ko(l)?l:zy(l)}function Go(n,l,o){var i;l===void 0&&(l=[]),o===void 0&&(o=!0);const u=zy(n),d=u===((i=n.ownerDocument)==null?void 0:i.body),f=tn(u);if(d){const h=Jd(f);return l.concat(f,f.visualViewport||[],Ko(u)?u:[],h&&o?Go(h):[])}else return l.concat(u,Go(u,[],o))}function Jd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Ly(n){const l=En(n);let o=parseFloat(l.width)||0,i=parseFloat(l.height)||0;const u=ma(n),d=u?n.offsetWidth:o,f=u?n.offsetHeight:i,h=Ds(o)!==d||Ds(i)!==f;return h&&(o=d,i=f),{width:o,height:i,$:h}}function Bf(n){return wn(n)?n:n.contextElement}function Cr(n){const l=Bf(n);if(!ma(l))return Vn(1);const o=l.getBoundingClientRect(),{width:i,height:u,$:d}=Ly(l);let f=(d?Ds(o.width):o.width)/i,h=(d?Ds(o.height):o.height)/u;return(!f||!Number.isFinite(f))&&(f=1),(!h||!Number.isFinite(h))&&(h=1),{x:f,y:h}}const eA=Vn(0);function Uy(n){const l=tn(n);return!Uf()||!l.visualViewport?eA:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function tA(n,l,o){return l===void 0&&(l=!1),!o||l&&o!==tn(n)?!1:l}function Al(n,l,o,i){l===void 0&&(l=!1),o===void 0&&(o=!1);const u=n.getBoundingClientRect(),d=Bf(n);let f=Vn(1);l&&(i?wn(i)&&(f=Cr(i)):f=Cr(n));const h=tA(d,o,i)?Uy(d):Vn(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=tn(d),N=i&&wn(i)?tn(i):i;let T=w,E=Jd(T);for(;E&&i&&N!==T;){const C=Cr(E),A=E.getBoundingClientRect(),_=En(E),M=A.left+(E.clientLeft+parseFloat(_.paddingLeft))*C.x,k=A.top+(E.clientTop+parseFloat(_.paddingTop))*C.y;y*=C.x,p*=C.y,x*=C.x,g*=C.y,y+=M,p+=k,T=tn(E),E=Jd(T)}}return zs({width:x,height:g,x:y,y:p})}function nc(n,l){const o=tc(n).scrollLeft;return l?l.left+o:Al(qn(n)).left+o}function By(n,l){const o=n.getBoundingClientRect(),i=o.left+l.scrollLeft-nc(n,o),u=o.top+l.scrollTop;return{x:i,y:u}}function nA(n){let{elements:l,rect:o,offsetParent:i,strategy:u}=n;const d=u==="fixed",f=qn(i),h=l?ec(l.floating):!1;if(i===f||h&&d)return o;let y={scrollLeft:0,scrollTop:0},p=Vn(1);const x=Vn(0),g=ma(i);if((g||!g&&!d)&&((Lr(i)!=="body"||Ko(f))&&(y=tc(i)),g)){const N=Al(i);p=Cr(i),x.x=N.x+i.clientLeft,x.y=N.y+i.clientTop}const w=f&&!g&&!d?By(f,y):Vn(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 aA(n){return Array.from(n.getClientRects())}function lA(n){const l=qn(n),o=tc(n),i=n.ownerDocument.body,u=en(l.scrollWidth,l.clientWidth,i.scrollWidth,i.clientWidth),d=en(l.scrollHeight,l.clientHeight,i.scrollHeight,i.clientHeight);let f=-o.scrollLeft+nc(n);const h=-o.scrollTop;return En(i).direction==="rtl"&&(f+=en(l.clientWidth,i.clientWidth)-u),{width:u,height:d,x:f,y:h}}const Uv=25;function rA(n,l){const o=tn(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=Uf();(!x||x&&l==="fixed")&&(h=u.offsetLeft,y=u.offsetTop)}const p=nc(i);if(p<=0){const x=i.ownerDocument,g=x.body,w=getComputedStyle(g),N=x.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,T=Math.abs(i.clientWidth-g.clientWidth-N);T<=Uv&&(d-=T)}else p<=Uv&&(d+=p);return{width:d,height:f,x:h,y}}function oA(n,l){const o=Al(n,!0,l==="fixed"),i=o.top+n.clientTop,u=o.left+n.clientLeft,d=ma(n)?Cr(n):Vn(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 Bv(n,l,o){let i;if(l==="viewport")i=rA(n,o);else if(l==="document")i=lA(qn(n));else if(wn(l))i=oA(l,o);else{const u=Uy(n);i={x:l.x-u.x,y:l.y-u.y,width:l.width,height:l.height}}return zs(i)}function Hy(n,l){const o=Za(n);return o===l||!wn(o)||_r(o)?!1:En(o).position==="fixed"||Hy(o,l)}function iA(n,l){const o=l.get(n);if(o)return o;let i=Go(n,[],!1).filter(h=>wn(h)&&Lr(h)!=="body"),u=null;const d=En(n).position==="fixed";let f=d?Za(n):n;for(;wn(f)&&!_r(f);){const h=En(f),y=Lf(f);!y&&h.position==="fixed"&&(u=null),(d?!y&&!u:!y&&h.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||Ko(f)&&!y&&Hy(n,f))?i=i.filter(x=>x!==f):u=h,f=Za(f)}return l.set(n,i),i}function sA(n){let{element:l,boundary:o,rootBoundary:i,strategy:u}=n;const f=[...o==="clippingAncestors"?ec(l)?[]:iA(l,this._c):[].concat(o),i],h=Bv(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 N=Bv(l,f[w],u);y=en(N.top,y),p=Ka(N.right,p),x=Ka(N.bottom,x),g=en(N.left,g)}return{width:p-g,height:x-y,x:g,y}}function cA(n){const{width:l,height:o}=Ly(n);return{width:l,height:o}}function uA(n,l,o){const i=ma(l),u=qn(l),d=o==="fixed",f=Al(n,!0,d,l);let h={scrollLeft:0,scrollTop:0};const y=Vn(0);function p(){y.x=nc(u)}if(i||!i&&!d)if((Lr(l)!=="body"||Ko(u))&&(h=tc(l)),i){const N=Al(l,!0,d,l);y.x=N.x+l.clientLeft,y.y=N.y+l.clientTop}else u&&p();d&&!i&&u&&p();const x=u&&!i&&!d?By(u,h):Vn(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 Hd(n){return En(n).position==="static"}function Hv(n,l){if(!ma(n)||En(n).position==="fixed")return null;if(l)return l(n);let o=n.offsetParent;return qn(n)===o&&(o=o.ownerDocument.body),o}function Vy(n,l){const o=tn(n);if(ec(n))return o;if(!ma(n)){let u=Za(n);for(;u&&!_r(u);){if(wn(u)&&!Hd(u))return u;u=Za(u)}return o}let i=Hv(n,l);for(;i&&I5(i)&&Hd(i);)i=Hv(i,l);return i&&_r(i)&&Hd(i)&&!Lf(i)?o:i||W5(n)||o}const dA=async function(n){const l=this.getOffsetParent||Vy,o=this.getDimensions,i=await o(n.floating);return{reference:uA(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function fA(n){return En(n).direction==="rtl"}const mA={convertOffsetParentRelativeRectToViewportRelativeRect:nA,getDocumentElement:qn,getClippingRect:sA,getOffsetParent:Vy,getElementRects:dA,getClientRects:aA,getDimensions:cA,getScale:Cr,isElement:wn,isRTL:fA};function Yy(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function hA(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:N}=p;if(h||l(),!w||!N)return;const T=xs(g),E=xs(u.clientWidth-(x+w)),C=xs(u.clientHeight-(g+N)),A=xs(x),M={rootMargin:-T+"px "+-E+"px "+-C+"px "+-A+"px",threshold:en(0,Ka(1,y))||1};let k=!0;function Y(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&&!Yy(p,n.getBoundingClientRect())&&f(),k=!1}try{o=new IntersectionObserver(Y,{...M,root:u.ownerDocument})}catch{o=new IntersectionObserver(Y,M)}o.observe(n)}return f(!0),d}function pA(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=Bf(n),x=u||d?[...p?Go(p):[],...l?Go(l):[]]:[];x.forEach(A=>{u&&A.addEventListener("scroll",o,{passive:!0}),d&&A.addEventListener("resize",o)});const g=p&&h?hA(p,o):null;let w=-1,N=null;f&&(N=new ResizeObserver(A=>{let[_]=A;_&&_.target===p&&N&&l&&(N.unobserve(l),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{var M;(M=N)==null||M.observe(l)})),o()}),p&&!y&&N.observe(p),l&&N.observe(l));let T,E=y?Al(n):null;y&&C();function C(){const A=Al(n);E&&!Yy(E,A)&&o(),E=A,T=requestAnimationFrame(C)}return o(),()=>{var A;x.forEach(_=>{u&&_.removeEventListener("scroll",o),d&&_.removeEventListener("resize",o)}),g==null||g(),(A=N)==null||A.disconnect(),N=null,y&&cancelAnimationFrame(T)}}const gA=P5,vA=Q5,yA=q5,bA=Z5,xA=G5,Vv=$5,SA=K5,wA=(n,l,o)=>{const i=new Map,u={platform:mA,...o},d={...u.platform,_c:i};return Y5(n,l,{...u,platform:d})};var EA=typeof document<"u",NA=function(){},Ts=EA?v.useLayoutEffect:NA;function Ls(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(!Ls(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)&&!Ls(n[d],l[d]))return!1}return!0}return n!==n&&l!==l}function $y(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Yv(n,l){const o=$y(n);return Math.round(l*o)/o}function Vd(n){const l=v.useRef(n);return Ts(()=>{l.current=n}),l}function TA(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,N]=v.useState(i);Ls(w,i)||N(i);const[T,E]=v.useState(null),[C,A]=v.useState(null),_=v.useCallback(I=>{I!==G.current&&(G.current=I,E(I))},[]),M=v.useCallback(I=>{I!==B.current&&(B.current=I,A(I))},[]),k=d||T,Y=f||C,G=v.useRef(null),B=v.useRef(null),V=v.useRef(x),ae=y!=null,re=Vd(y),pe=Vd(u),me=Vd(p),ue=v.useCallback(()=>{if(!G.current||!B.current)return;const I={placement:l,strategy:o,middleware:w};pe.current&&(I.platform=pe.current),wA(G.current,B.current,I).then(ce=>{const F={...ce,isPositioned:me.current!==!1};de.current&&!Ls(V.current,F)&&(V.current=F,Qo.flushSync(()=>{g(F)}))})},[w,l,o,pe,me]);Ts(()=>{p===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,g(I=>({...I,isPositioned:!1})))},[p]);const de=v.useRef(!1);Ts(()=>(de.current=!0,()=>{de.current=!1}),[]),Ts(()=>{if(k&&(G.current=k),Y&&(B.current=Y),k&&Y){if(re.current)return re.current(k,Y,ue);ue()}},[k,Y,ue,re,ae]);const le=v.useMemo(()=>({reference:G,floating:B,setReference:_,setFloating:M}),[_,M]),O=v.useMemo(()=>({reference:k,floating:Y}),[k,Y]),q=v.useMemo(()=>{const I={position:o,left:0,top:0};if(!O.floating)return I;const ce=Yv(O.floating,x.x),F=Yv(O.floating,x.y);return h?{...I,transform:"translate("+ce+"px, "+F+"px)",...$y(O.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:ce,top:F}},[o,h,O.floating,x.x,x.y]);return v.useMemo(()=>({...x,update:ue,refs:le,elements:O,floatingStyles:q}),[x,ue,le,O,q])}const CA=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?Vv({element:i.current,padding:u}).fn(o):{}:i?Vv({element:i,padding:u}).fn(o):{}}}},AA=(n,l)=>{const o=gA(n);return{name:o.name,fn:o.fn,options:[n,l]}},RA=(n,l)=>{const o=vA(n);return{name:o.name,fn:o.fn,options:[n,l]}},_A=(n,l)=>({fn:SA(n).fn,options:[n,l]}),jA=(n,l)=>{const o=yA(n);return{name:o.name,fn:o.fn,options:[n,l]}},OA=(n,l)=>{const o=bA(n);return{name:o.name,fn:o.fn,options:[n,l]}},MA=(n,l)=>{const o=xA(n);return{name:o.name,fn:o.fn,options:[n,l]}},DA=(n,l)=>{const o=CA(n);return{name:o.name,fn:o.fn,options:[n,l]}};var kA="Arrow",qy=v.forwardRef((n,l)=>{const{children:o,width:i=10,height:u=5,...d}=n;return m.jsx(ze.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"})})});qy.displayName=kA;var zA=qy;function Gy(n){const[l,o]=v.useState(void 0);return _t(()=>{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 Hf="Popper",[Xy,Py]=Fa(Hf),[LA,Qy]=Xy(Hf),Ky=n=>{const{__scopePopper:l,children:o}=n,[i,u]=v.useState(null);return m.jsx(LA,{scope:l,anchor:i,onAnchorChange:u,children:o})};Ky.displayName=Hf;var Zy="PopperAnchor",Iy=v.forwardRef((n,l)=>{const{__scopePopper:o,virtualRef:i,...u}=n,d=Qy(Zy,o),f=v.useRef(null),h=Ie(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(ze.div,{...u,ref:h})});Iy.displayName=Zy;var Vf="PopperContent",[UA,BA]=Xy(Vf),Fy=v.forwardRef((n,l)=>{var te,ie,J,xe,ye,Se;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:N="optimized",onPlaced:T,...E}=n,C=Qy(Vf,o),[A,_]=v.useState(null),M=Ie(l,Ye=>_(Ye)),[k,Y]=v.useState(null),G=Gy(k),B=(G==null?void 0:G.width)??0,V=(G==null?void 0:G.height)??0,ae=i+(d!=="center"?"-"+d:""),re=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},pe=Array.isArray(p)?p:[p],me=pe.length>0,ue={padding:re,boundary:pe.filter(VA),altBoundary:me},{refs:de,floatingStyles:le,placement:O,isPositioned:q,middlewareData:I}=TA({strategy:"fixed",placement:ae,whileElementsMounted:(...Ye)=>pA(...Ye,{animationFrame:N==="always"}),elements:{reference:C.anchor},middleware:[AA({mainAxis:u+V,alignmentAxis:f}),y&&RA({mainAxis:!0,crossAxis:!1,limiter:g==="partial"?_A():void 0,...ue}),y&&jA({...ue}),OA({...ue,apply:({elements:Ye,rects:Le,availableWidth:$e,availableHeight:gt})=>{const{width:rt,height:Pt}=Le.reference,vt=Ye.floating.style;vt.setProperty("--radix-popper-available-width",`${$e}px`),vt.setProperty("--radix-popper-available-height",`${gt}px`),vt.setProperty("--radix-popper-anchor-width",`${rt}px`),vt.setProperty("--radix-popper-anchor-height",`${Pt}px`)}}),k&&DA({element:k,padding:h}),YA({arrowWidth:B,arrowHeight:V}),w&&MA({strategy:"referenceHidden",...ue})]}),[ce,F]=eb(O),j=Qa(T);_t(()=>{q&&(j==null||j())},[q,j]);const X=(te=I.arrow)==null?void 0:te.x,Q=(ie=I.arrow)==null?void 0:ie.y,W=((J=I.arrow)==null?void 0:J.centerOffset)!==0,[ee,oe]=v.useState();return _t(()=>{A&&oe(window.getComputedStyle(A).zIndex)},[A]),m.jsx("div",{ref:de.setFloating,"data-radix-popper-content-wrapper":"",style:{...le,transform:q?le.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ee,"--radix-popper-transform-origin":[(xe=I.transformOrigin)==null?void 0:xe.x,(ye=I.transformOrigin)==null?void 0:ye.y].join(" "),...((Se=I.hide)==null?void 0:Se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:m.jsx(UA,{scope:o,placedSide:ce,onArrowChange:Y,arrowX:X,arrowY:Q,shouldHideArrow:W,children:m.jsx(ze.div,{"data-side":ce,"data-align":F,...E,ref:M,style:{...E.style,animation:q?void 0:"none"}})})})});Fy.displayName=Vf;var Jy="PopperArrow",HA={top:"bottom",right:"left",bottom:"top",left:"right"},Wy=v.forwardRef(function(l,o){const{__scopePopper:i,...u}=l,d=BA(Jy,i),f=HA[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(zA,{...u,ref:o,style:{...u.style,display:"block"}})})});Wy.displayName=Jy;function VA(n){return n!==null}var YA=n=>({name:"transformOrigin",options:n,fn(l){var C,A,_;const{placement:o,rects:i,middlewareData:u}=l,f=((C=u.arrow)==null?void 0:C.centerOffset)!==0,h=f?0:n.arrowWidth,y=f?0:n.arrowHeight,[p,x]=eb(o),g={start:"0%",center:"50%",end:"100%"}[x],w=(((A=u.arrow)==null?void 0:A.x)??0)+h/2,N=(((_=u.arrow)==null?void 0:_.y)??0)+y/2;let T="",E="";return p==="bottom"?(T=f?g:`${w}px`,E=`${-y}px`):p==="top"?(T=f?g:`${w}px`,E=`${i.floating.height+y}px`):p==="right"?(T=`${-y}px`,E=f?g:`${N}px`):p==="left"&&(T=`${i.floating.width+y}px`,E=f?g:`${N}px`),{data:{x:T,y:E}}}});function eb(n){const[l,o="center"]=n.split("-");return[l,o]}var $A=Ky,qA=Iy,GA=Fy,XA=Wy;function tb(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 nb=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"}),PA="VisuallyHidden",QA=v.forwardRef((n,l)=>m.jsx(ze.span,{...n,ref:l,style:{...nb,...n.style}}));QA.displayName=PA;var KA=[" ","Enter","ArrowUp","ArrowDown"],ZA=[" ","Enter"],Rl="Select",[ac,lc,IA]=Oy(Rl),[Ur]=Fa(Rl,[IA,Py]),rc=Py(),[FA,Ja]=Ur(Rl),[JA,WA]=Ur(Rl),ab=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:N,form:T}=n,E=rc(l),[C,A]=v.useState(null),[_,M]=v.useState(null),[k,Y]=v.useState(!1),G=Mf(p),[B,V]=Rr({prop:i,defaultProp:u??!1,onChange:d,caller:Rl}),[ae,re]=Rr({prop:f,defaultProp:h,onChange:y,caller:Rl}),pe=v.useRef(null),me=C?T||!!C.closest("form"):!0,[ue,de]=v.useState(new Set),le=Array.from(ue).map(O=>O.props.value).join(";");return m.jsx($A,{...E,children:m.jsxs(FA,{required:N,scope:l,trigger:C,onTriggerChange:A,valueNode:_,onValueNodeChange:M,valueNodeHasChildren:k,onValueNodeHasChildrenChange:Y,contentId:Xa(),value:ae,onValueChange:re,open:B,onOpenChange:V,dir:G,triggerPointerDownPosRef:pe,disabled:w,children:[m.jsx(ac.Provider,{scope:l,children:m.jsx(JA,{scope:n.__scopeSelect,onNativeOptionAdd:v.useCallback(O=>{de(q=>new Set(q).add(O))},[]),onNativeOptionRemove:v.useCallback(O=>{de(q=>{const I=new Set(q);return I.delete(O),I})},[]),children:o})}),me?m.jsxs(Ab,{"aria-hidden":!0,required:N,tabIndex:-1,name:x,autoComplete:g,value:ae,onChange:O=>re(O.target.value),disabled:w,form:T,children:[ae===void 0?m.jsx("option",{value:""}):null,Array.from(ue)]},le):null]})})};ab.displayName=Rl;var lb="SelectTrigger",rb=v.forwardRef((n,l)=>{const{__scopeSelect:o,disabled:i=!1,...u}=n,d=rc(o),f=Ja(lb,o),h=f.disabled||i,y=Ie(l,f.onTriggerChange),p=lc(o),x=v.useRef("touch"),[g,w,N]=_b(E=>{const C=p().filter(M=>!M.disabled),A=C.find(M=>M.value===f.value),_=jb(C,E,A);_!==void 0&&f.onValueChange(_.value)}),T=E=>{h||(f.onOpenChange(!0),N()),E&&(f.triggerPointerDownPosRef.current={x:Math.round(E.pageX),y:Math.round(E.pageY)})};return m.jsx(qA,{asChild:!0,...d,children:m.jsx(ze.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":Rb(f.value)?"":void 0,...u,ref:y,onClick:Oe(u.onClick,E=>{E.currentTarget.focus(),x.current!=="mouse"&&T(E)}),onPointerDown:Oe(u.onPointerDown,E=>{x.current=E.pointerType;const C=E.target;C.hasPointerCapture(E.pointerId)&&C.releasePointerCapture(E.pointerId),E.button===0&&E.ctrlKey===!1&&E.pointerType==="mouse"&&(T(E),E.preventDefault())}),onKeyDown:Oe(u.onKeyDown,E=>{const C=g.current!=="";!(E.ctrlKey||E.altKey||E.metaKey)&&E.key.length===1&&w(E.key),!(C&&E.key===" ")&&KA.includes(E.key)&&(T(),E.preventDefault())})})})});rb.displayName=lb;var ob="SelectValue",ib=v.forwardRef((n,l)=>{const{__scopeSelect:o,className:i,style:u,children:d,placeholder:f="",...h}=n,y=Ja(ob,o),{onValueNodeHasChildrenChange:p}=y,x=d!==void 0,g=Ie(l,y.onValueNodeChange);return _t(()=>{p(x)},[p,x]),m.jsx(ze.span,{...h,ref:g,style:{pointerEvents:"none"},children:Rb(y.value)?m.jsx(m.Fragment,{children:f}):d})});ib.displayName=ob;var eR="SelectIcon",sb=v.forwardRef((n,l)=>{const{__scopeSelect:o,children:i,...u}=n;return m.jsx(ze.span,{"aria-hidden":!0,...u,ref:l,children:i||"▼"})});sb.displayName=eR;var tR="SelectPortal",cb=n=>m.jsx(Ef,{asChild:!0,...n});cb.displayName=tR;var _l="SelectContent",ub=v.forwardRef((n,l)=>{const o=Ja(_l,n.__scopeSelect),[i,u]=v.useState();if(_t(()=>{u(new DocumentFragment)},[]),!o.open){const d=i;return d?Qo.createPortal(m.jsx(db,{scope:n.__scopeSelect,children:m.jsx(ac.Slot,{scope:n.__scopeSelect,children:m.jsx("div",{children:n.children})})}),d):null}return m.jsx(fb,{...n,ref:l})});ub.displayName=_l;var xn=10,[db,Wa]=Ur(_l),nR="SelectContentImpl",aR=qo("SelectContent.RemoveScroll"),fb=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:N,sticky:T,hideWhenDetached:E,avoidCollisions:C,...A}=n,_=Ja(_l,o),[M,k]=v.useState(null),[Y,G]=v.useState(null),B=Ie(l,te=>k(te)),[V,ae]=v.useState(null),[re,pe]=v.useState(null),me=lc(o),[ue,de]=v.useState(!1),le=v.useRef(!1);v.useEffect(()=>{if(M)return ry(M)},[M]),I0();const O=v.useCallback(te=>{const[ie,...J]=me().map(Se=>Se.ref.current),[xe]=J.slice(-1),ye=document.activeElement;for(const Se of te)if(Se===ye||(Se==null||Se.scrollIntoView({block:"nearest"}),Se===ie&&Y&&(Y.scrollTop=0),Se===xe&&Y&&(Y.scrollTop=Y.scrollHeight),Se==null||Se.focus(),document.activeElement!==ye))return},[me,Y]),q=v.useCallback(()=>O([V,M]),[O,V,M]);v.useEffect(()=>{ue&&q()},[ue,q]);const{onOpenChange:I,triggerPointerDownPosRef:ce}=_;v.useEffect(()=>{if(M){let te={x:0,y:0};const ie=xe=>{var ye,Se;te={x:Math.abs(Math.round(xe.pageX)-(((ye=ce.current)==null?void 0:ye.x)??0)),y:Math.abs(Math.round(xe.pageY)-(((Se=ce.current)==null?void 0:Se.y)??0))}},J=xe=>{te.x<=10&&te.y<=10?xe.preventDefault():M.contains(xe.target)||I(!1),document.removeEventListener("pointermove",ie),ce.current=null};return ce.current!==null&&(document.addEventListener("pointermove",ie),document.addEventListener("pointerup",J,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",ie),document.removeEventListener("pointerup",J,{capture:!0})}}},[M,I,ce]),v.useEffect(()=>{const te=()=>I(!1);return window.addEventListener("blur",te),window.addEventListener("resize",te),()=>{window.removeEventListener("blur",te),window.removeEventListener("resize",te)}},[I]);const[F,j]=_b(te=>{const ie=me().filter(ye=>!ye.disabled),J=ie.find(ye=>ye.ref.current===document.activeElement),xe=jb(ie,te,J);xe&&setTimeout(()=>xe.ref.current.focus())}),X=v.useCallback((te,ie,J)=>{const xe=!le.current&&!J;(_.value!==void 0&&_.value===ie||xe)&&(ae(te),xe&&(le.current=!0))},[_.value]),Q=v.useCallback(()=>M==null?void 0:M.focus(),[M]),W=v.useCallback((te,ie,J)=>{const xe=!le.current&&!J;(_.value!==void 0&&_.value===ie||xe)&&pe(te)},[_.value]),ee=i==="popper"?Wd:mb,oe=ee===Wd?{side:h,sideOffset:y,align:p,alignOffset:x,arrowPadding:g,collisionBoundary:w,collisionPadding:N,sticky:T,hideWhenDetached:E,avoidCollisions:C}:{};return m.jsx(db,{scope:o,content:M,viewport:Y,onViewportChange:G,itemRefCallback:X,selectedItem:V,onItemLeave:Q,itemTextRefCallback:W,focusSelectedItem:q,selectedItemText:re,position:i,isPositioned:ue,searchRef:F,children:m.jsx(Nf,{as:aR,allowPinchZoom:!0,children:m.jsx(wf,{asChild:!0,trapped:_.open,onMountAutoFocus:te=>{te.preventDefault()},onUnmountAutoFocus:Oe(u,te=>{var ie;(ie=_.trigger)==null||ie.focus({preventScroll:!0}),te.preventDefault()}),children:m.jsx(Sf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:te=>te.preventDefault(),onDismiss:()=>_.onOpenChange(!1),children:m.jsx(ee,{role:"listbox",id:_.contentId,"data-state":_.open?"open":"closed",dir:_.dir,onContextMenu:te=>te.preventDefault(),...A,...oe,onPlaced:()=>de(!0),ref:B,style:{display:"flex",flexDirection:"column",outline:"none",...A.style},onKeyDown:Oe(A.onKeyDown,te=>{const ie=te.ctrlKey||te.altKey||te.metaKey;if(te.key==="Tab"&&te.preventDefault(),!ie&&te.key.length===1&&j(te.key),["ArrowUp","ArrowDown","Home","End"].includes(te.key)){let xe=me().filter(ye=>!ye.disabled).map(ye=>ye.ref.current);if(["ArrowUp","End"].includes(te.key)&&(xe=xe.slice().reverse()),["ArrowUp","ArrowDown"].includes(te.key)){const ye=te.target,Se=xe.indexOf(ye);xe=xe.slice(Se+1)}setTimeout(()=>O(xe)),te.preventDefault()}})})})})})})});fb.displayName=nR;var lR="SelectItemAlignedPosition",mb=v.forwardRef((n,l)=>{const{__scopeSelect:o,onPlaced:i,...u}=n,d=Ja(_l,o),f=Wa(_l,o),[h,y]=v.useState(null),[p,x]=v.useState(null),g=Ie(l,B=>x(B)),w=lc(o),N=v.useRef(!1),T=v.useRef(!0),{viewport:E,selectedItem:C,selectedItemText:A,focusSelectedItem:_}=f,M=v.useCallback(()=>{if(d.trigger&&d.valueNode&&h&&p&&E&&C&&A){const B=d.trigger.getBoundingClientRect(),V=p.getBoundingClientRect(),ae=d.valueNode.getBoundingClientRect(),re=A.getBoundingClientRect();if(d.dir!=="rtl"){const ye=re.left-V.left,Se=ae.left-ye,Ye=B.left-Se,Le=B.width+Ye,$e=Math.max(Le,V.width),gt=window.innerWidth-xn,rt=jv(Se,[xn,Math.max(xn,gt-$e)]);h.style.minWidth=Le+"px",h.style.left=rt+"px"}else{const ye=V.right-re.right,Se=window.innerWidth-ae.right-ye,Ye=window.innerWidth-B.right-Se,Le=B.width+Ye,$e=Math.max(Le,V.width),gt=window.innerWidth-xn,rt=jv(Se,[xn,Math.max(xn,gt-$e)]);h.style.minWidth=Le+"px",h.style.right=rt+"px"}const pe=w(),me=window.innerHeight-xn*2,ue=E.scrollHeight,de=window.getComputedStyle(p),le=parseInt(de.borderTopWidth,10),O=parseInt(de.paddingTop,10),q=parseInt(de.borderBottomWidth,10),I=parseInt(de.paddingBottom,10),ce=le+O+ue+I+q,F=Math.min(C.offsetHeight*5,ce),j=window.getComputedStyle(E),X=parseInt(j.paddingTop,10),Q=parseInt(j.paddingBottom,10),W=B.top+B.height/2-xn,ee=me-W,oe=C.offsetHeight/2,te=C.offsetTop+oe,ie=le+O+te,J=ce-ie;if(ie<=W){const ye=pe.length>0&&C===pe[pe.length-1].ref.current;h.style.bottom="0px";const Se=p.clientHeight-E.offsetTop-E.offsetHeight,Ye=Math.max(ee,oe+(ye?Q:0)+Se+q),Le=ie+Ye;h.style.height=Le+"px"}else{const ye=pe.length>0&&C===pe[0].ref.current;h.style.top="0px";const Ye=Math.max(W,le+E.offsetTop+(ye?X:0)+oe)+J;h.style.height=Ye+"px",E.scrollTop=ie-W+E.offsetTop}h.style.margin=`${xn}px 0`,h.style.minHeight=F+"px",h.style.maxHeight=me+"px",i==null||i(),requestAnimationFrame(()=>N.current=!0)}},[w,d.trigger,d.valueNode,h,p,E,C,A,d.dir,i]);_t(()=>M(),[M]);const[k,Y]=v.useState();_t(()=>{p&&Y(window.getComputedStyle(p).zIndex)},[p]);const G=v.useCallback(B=>{B&&T.current===!0&&(M(),_==null||_(),T.current=!1)},[M,_]);return m.jsx(oR,{scope:o,contentWrapper:h,shouldExpandOnScrollRef:N,onScrollButtonChange:G,children:m.jsx("div",{ref:y,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:m.jsx(ze.div,{...u,ref:g,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});mb.displayName=lR;var rR="SelectPopperPosition",Wd=v.forwardRef((n,l)=>{const{__scopeSelect:o,align:i="start",collisionPadding:u=xn,...d}=n,f=rc(o);return m.jsx(GA,{...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)"}})});Wd.displayName=rR;var[oR,Yf]=Ur(_l,{}),ef="SelectViewport",hb=v.forwardRef((n,l)=>{const{__scopeSelect:o,nonce:i,...u}=n,d=Wa(ef,o),f=Yf(ef,o),h=Ie(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(ac.Slot,{scope:o,children:m.jsx(ze.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:Oe(u.onScroll,p=>{const x=p.currentTarget,{contentWrapper:g,shouldExpandOnScrollRef:w}=f;if(w!=null&&w.current&&g){const N=Math.abs(y.current-x.scrollTop);if(N>0){const T=window.innerHeight-xn*2,E=parseFloat(g.style.minHeight),C=parseFloat(g.style.height),A=Math.max(E,C);if(A<T){const _=A+N,M=Math.min(T,_),k=_-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})})})]})});hb.displayName=ef;var pb="SelectGroup",[iR,sR]=Ur(pb),cR=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,u=Xa();return m.jsx(iR,{scope:o,id:u,children:m.jsx(ze.div,{role:"group","aria-labelledby":u,...i,ref:l})})});cR.displayName=pb;var gb="SelectLabel",vb=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,u=sR(gb,o);return m.jsx(ze.div,{id:u.id,...i,ref:l})});vb.displayName=gb;var Us="SelectItem",[uR,yb]=Ur(Us),bb=v.forwardRef((n,l)=>{const{__scopeSelect:o,value:i,disabled:u=!1,textValue:d,...f}=n,h=Ja(Us,o),y=Wa(Us,o),p=h.value===i,[x,g]=v.useState(d??""),[w,N]=v.useState(!1),T=Ie(l,_=>{var M;return(M=y.itemRefCallback)==null?void 0:M.call(y,_,i,u)}),E=Xa(),C=v.useRef("touch"),A=()=>{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(uR,{scope:o,value:i,disabled:u,textId:E,isSelected:p,onItemTextChange:v.useCallback(_=>{g(M=>M||((_==null?void 0:_.textContent)??"").trim())},[]),children:m.jsx(ac.ItemSlot,{scope:o,value:i,disabled:u,textValue:x,children:m.jsx(ze.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:T,onFocus:Oe(f.onFocus,()=>N(!0)),onBlur:Oe(f.onBlur,()=>N(!1)),onClick:Oe(f.onClick,()=>{C.current!=="mouse"&&A()}),onPointerUp:Oe(f.onPointerUp,()=>{C.current==="mouse"&&A()}),onPointerDown:Oe(f.onPointerDown,_=>{C.current=_.pointerType}),onPointerMove:Oe(f.onPointerMove,_=>{var M;C.current=_.pointerType,u?(M=y.onItemLeave)==null||M.call(y):C.current==="mouse"&&_.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Oe(f.onPointerLeave,_=>{var M;_.currentTarget===document.activeElement&&((M=y.onItemLeave)==null||M.call(y))}),onKeyDown:Oe(f.onKeyDown,_=>{var k;((k=y.searchRef)==null?void 0:k.current)!==""&&_.key===" "||(ZA.includes(_.key)&&A(),_.key===" "&&_.preventDefault())})})})})});bb.displayName=Us;var Vo="SelectItemText",xb=v.forwardRef((n,l)=>{const{__scopeSelect:o,className:i,style:u,...d}=n,f=Ja(Vo,o),h=Wa(Vo,o),y=yb(Vo,o),p=WA(Vo,o),[x,g]=v.useState(null),w=Ie(l,A=>g(A),y.onItemTextChange,A=>{var _;return(_=h.itemTextRefCallback)==null?void 0:_.call(h,A,y.value,y.disabled)}),N=x==null?void 0:x.textContent,T=v.useMemo(()=>m.jsx("option",{value:y.value,disabled:y.disabled,children:N},y.value),[y.disabled,y.value,N]),{onNativeOptionAdd:E,onNativeOptionRemove:C}=p;return _t(()=>(E(T),()=>C(T)),[E,C,T]),m.jsxs(m.Fragment,{children:[m.jsx(ze.span,{id:y.textId,...d,ref:w}),y.isSelected&&f.valueNode&&!f.valueNodeHasChildren?Qo.createPortal(d.children,f.valueNode):null]})});xb.displayName=Vo;var Sb="SelectItemIndicator",wb=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n;return yb(Sb,o).isSelected?m.jsx(ze.span,{"aria-hidden":!0,...i,ref:l}):null});wb.displayName=Sb;var tf="SelectScrollUpButton",Eb=v.forwardRef((n,l)=>{const o=Wa(tf,n.__scopeSelect),i=Yf(tf,n.__scopeSelect),[u,d]=v.useState(!1),f=Ie(l,i.onScrollButtonChange);return _t(()=>{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(Tb,{...n,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:y}=o;h&&y&&(h.scrollTop=h.scrollTop-y.offsetHeight)}}):null});Eb.displayName=tf;var nf="SelectScrollDownButton",Nb=v.forwardRef((n,l)=>{const o=Wa(nf,n.__scopeSelect),i=Yf(nf,n.__scopeSelect),[u,d]=v.useState(!1),f=Ie(l,i.onScrollButtonChange);return _t(()=>{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(Tb,{...n,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:y}=o;h&&y&&(h.scrollTop=h.scrollTop+y.offsetHeight)}}):null});Nb.displayName=nf;var Tb=v.forwardRef((n,l)=>{const{__scopeSelect:o,onAutoScroll:i,...u}=n,d=Wa("SelectScrollButton",o),f=v.useRef(null),h=lc(o),y=v.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return v.useEffect(()=>()=>y(),[y]),_t(()=>{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(ze.div,{"aria-hidden":!0,...u,ref:l,style:{flexShrink:0,...u.style},onPointerDown:Oe(u.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(i,50))}),onPointerMove:Oe(u.onPointerMove,()=>{var p;(p=d.onItemLeave)==null||p.call(d),f.current===null&&(f.current=window.setInterval(i,50))}),onPointerLeave:Oe(u.onPointerLeave,()=>{y()})})}),dR="SelectSeparator",Cb=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n;return m.jsx(ze.div,{"aria-hidden":!0,...i,ref:l})});Cb.displayName=dR;var af="SelectArrow",fR=v.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,u=rc(o),d=Ja(af,o),f=Wa(af,o);return d.open&&f.position==="popper"?m.jsx(XA,{...u,...i,ref:l}):null});fR.displayName=af;var mR="SelectBubbleInput",Ab=v.forwardRef(({__scopeSelect:n,value:l,...o},i)=>{const u=v.useRef(null),d=Ie(i,u),f=tb(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(ze.select,{...o,style:{...nb,...o.style},ref:d,defaultValue:l})});Ab.displayName=mR;function Rb(n){return n===""||n===void 0}function _b(n){const l=Qa(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 jb(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=hR(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 hR(n,l){return n.map((o,i)=>n[(l+i)%n.length])}var pR=ab,Ob=rb,gR=ib,vR=sb,yR=cb,Mb=ub,bR=hb,Db=vb,kb=bb,xR=xb,SR=wb,zb=Eb,Lb=Nb,Ub=Cb;const Bb=pR,Hb=gR,$f=v.forwardRef(({className:n,children:l,...o},i)=>m.jsxs(Ob,{ref:i,className:se("flex h-10 w-full items-center justify-between rounded-sm border border-input/85 bg-background/72 px-3 py-2 text-sm shadow-sm ring-offset-background transition-all duration-200 placeholder:text-muted-foreground focus:border-primary/45 focus:bg-background/90 focus:outline-none focus:ring-2 focus:ring-ring/45 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n),...o,children:[l,m.jsx(vR,{asChild:!0,children:m.jsx(Zs,{className:"h-4 w-4 opacity-50"})})]}));$f.displayName=Ob.displayName;const Vb=v.forwardRef(({className:n,...l},o)=>m.jsx(zb,{ref:o,className:se("flex cursor-default items-center justify-center py-1",n),...l,children:m.jsx(zE,{className:"h-4 w-4"})}));Vb.displayName=zb.displayName;const Yb=v.forwardRef(({className:n,...l},o)=>m.jsx(Lb,{ref:o,className:se("flex cursor-default items-center justify-center py-1",n),...l,children:m.jsx(Zs,{className:"h-4 w-4"})}));Yb.displayName=Lb.displayName;const qf=v.forwardRef(({className:n,children:l,position:o="popper",...i},u)=>m.jsx(yR,{children:m.jsxs(Mb,{ref:u,className:se("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-lg border border-border/70 bg-popover/96 text-popover-foreground shadow-[0_20px_70px_-36px_rgba(0,0,0,0.45)] backdrop-blur-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:o,...i,children:[m.jsx(Vb,{}),m.jsx(bR,{className:se("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:l}),m.jsx(Yb,{})]})}));qf.displayName=Mb.displayName;const wR=v.forwardRef(({className:n,...l},o)=>m.jsx(Db,{ref:o,className:se("py-1.5 pl-8 pr-2 text-sm font-semibold",n),...l}));wR.displayName=Db.displayName;const Nr=v.forwardRef(({className:n,children:l,...o},i)=>m.jsxs(kb,{ref:i,className:se("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent/80 focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...o,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(SR,{children:m.jsx(_s,{className:"h-4 w-4"})})}),m.jsx(xR,{children:l})]}));Nr.displayName=kb.displayName;const ER=v.forwardRef(({className:n,...l},o)=>m.jsx(Ub,{ref:o,className:se("-mx-1 my-1 h-px bg-muted",n),...l}));ER.displayName=Ub.displayName;var Yd="rovingFocusGroup.onEntryFocus",NR={bubbles:!1,cancelable:!0},Zo="RovingFocusGroup",[lf,$b,TR]=Oy(Zo),[CR,qb]=Fa(Zo,[TR]),[AR,RR]=CR(Zo),Gb=v.forwardRef((n,l)=>m.jsx(lf.Provider,{scope:n.__scopeRovingFocusGroup,children:m.jsx(lf.Slot,{scope:n.__scopeRovingFocusGroup,children:m.jsx(_R,{...n,ref:l})})}));Gb.displayName=Zo;var _R=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),N=Ie(l,w),T=Mf(d),[E,C]=Rr({prop:f,defaultProp:h??null,onChange:y,caller:Zo}),[A,_]=v.useState(!1),M=Qa(p),k=$b(o),Y=v.useRef(!1),[G,B]=v.useState(0);return v.useEffect(()=>{const V=w.current;if(V)return V.addEventListener(Yd,M),()=>V.removeEventListener(Yd,M)},[M]),m.jsx(AR,{scope:o,orientation:i,dir:T,loop:u,currentTabStopId:E,onItemFocus:v.useCallback(V=>C(V),[C]),onItemShiftTab:v.useCallback(()=>_(!0),[]),onFocusableItemAdd:v.useCallback(()=>B(V=>V+1),[]),onFocusableItemRemove:v.useCallback(()=>B(V=>V-1),[]),children:m.jsx(ze.div,{tabIndex:A||G===0?-1:0,"data-orientation":i,...g,ref:N,style:{outline:"none",...n.style},onMouseDown:Oe(n.onMouseDown,()=>{Y.current=!0}),onFocus:Oe(n.onFocus,V=>{const ae=!Y.current;if(V.target===V.currentTarget&&ae&&!A){const re=new CustomEvent(Yd,NR);if(V.currentTarget.dispatchEvent(re),!re.defaultPrevented){const pe=k().filter(O=>O.focusable),me=pe.find(O=>O.active),ue=pe.find(O=>O.id===E),le=[me,ue,...pe].filter(Boolean).map(O=>O.ref.current);Qb(le,x)}}Y.current=!1}),onBlur:Oe(n.onBlur,()=>_(!1))})})}),Xb="RovingFocusGroupItem",Pb=v.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:u=!1,tabStopId:d,children:f,...h}=n,y=Xa(),p=d||y,x=RR(Xb,o),g=x.currentTabStopId===p,w=$b(o),{onFocusableItemAdd:N,onFocusableItemRemove:T,currentTabStopId:E}=x;return v.useEffect(()=>{if(i)return N(),()=>T()},[i,N,T]),m.jsx(lf.ItemSlot,{scope:o,id:p,focusable:i,active:u,children:m.jsx(ze.span,{tabIndex:g?0:-1,"data-orientation":x.orientation,...h,ref:l,onMouseDown:Oe(n.onMouseDown,C=>{i?x.onItemFocus(p):C.preventDefault()}),onFocus:Oe(n.onFocus,()=>x.onItemFocus(p)),onKeyDown:Oe(n.onKeyDown,C=>{if(C.key==="Tab"&&C.shiftKey){x.onItemShiftTab();return}if(C.target!==C.currentTarget)return;const A=MR(C,x.orientation,x.dir);if(A!==void 0){if(C.metaKey||C.ctrlKey||C.altKey||C.shiftKey)return;C.preventDefault();let M=w().filter(k=>k.focusable).map(k=>k.ref.current);if(A==="last")M.reverse();else if(A==="prev"||A==="next"){A==="prev"&&M.reverse();const k=M.indexOf(C.currentTarget);M=x.loop?DR(M,k+1):M.slice(k+1)}setTimeout(()=>Qb(M))}}),children:typeof f=="function"?f({isCurrentTabStop:g,hasTabStop:E!=null}):f})})});Pb.displayName=Xb;var jR={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function OR(n,l){return l!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function MR(n,l,o){const i=OR(n.key,o);if(!(l==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(l==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return jR[i]}function Qb(n,l=!1){const o=document.activeElement;for(const i of n)if(i===o||(i.focus({preventScroll:l}),document.activeElement!==o))return}function DR(n,l){return n.map((o,i)=>n[(l+i)%n.length])}var kR=Gb,zR=Pb,oc="Tabs",[LR]=Fa(oc,[qb]),Kb=qb(),[UR,Gf]=LR(oc),Zb=v.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,onValueChange:u,defaultValue:d,orientation:f="horizontal",dir:h,activationMode:y="automatic",...p}=n,x=Mf(h),[g,w]=Rr({prop:i,onChange:u,defaultProp:d??"",caller:oc});return m.jsx(UR,{scope:o,baseId:Xa(),value:g,onValueChange:w,orientation:f,dir:x,activationMode:y,children:m.jsx(ze.div,{dir:x,"data-orientation":f,...p,ref:l})})});Zb.displayName=oc;var Ib="TabsList",Fb=v.forwardRef((n,l)=>{const{__scopeTabs:o,loop:i=!0,...u}=n,d=Gf(Ib,o),f=Kb(o);return m.jsx(kR,{asChild:!0,...f,orientation:d.orientation,dir:d.dir,loop:i,children:m.jsx(ze.div,{role:"tablist","aria-orientation":d.orientation,...u,ref:l})})});Fb.displayName=Ib;var Jb="TabsTrigger",Wb=v.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,disabled:u=!1,...d}=n,f=Gf(Jb,o),h=Kb(o),y=nx(f.baseId,i),p=ax(f.baseId,i),x=i===f.value;return m.jsx(zR,{asChild:!0,...h,focusable:!u,active:x,children:m.jsx(ze.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:Oe(n.onMouseDown,g=>{!u&&g.button===0&&g.ctrlKey===!1?f.onValueChange(i):g.preventDefault()}),onKeyDown:Oe(n.onKeyDown,g=>{[" ","Enter"].includes(g.key)&&f.onValueChange(i)}),onFocus:Oe(n.onFocus,()=>{const g=f.activationMode!=="manual";!x&&!u&&g&&f.onValueChange(i)})})})});Wb.displayName=Jb;var ex="TabsContent",tx=v.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,forceMount:u,children:d,...f}=n,h=Gf(ex,o),y=nx(h.baseId,i),p=ax(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(kr,{present:u||x,children:({present:w})=>m.jsx(ze.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})})});tx.displayName=ex;function nx(n,l){return`${n}-trigger-${l}`}function ax(n,l){return`${n}-content-${l}`}var BR=Zb,lx=Fb,rx=Wb,ox=tx;const HR=BR,ix=v.forwardRef(({className:n,...l},o)=>m.jsx(lx,{ref:o,className:se("inline-flex h-10 items-center justify-center rounded-lg bg-muted/72 p-1 text-muted-foreground shadow-inner shadow-background/40",n),...l}));ix.displayName=lx.displayName;const Cs=v.forwardRef(({className:n,...l},o)=>m.jsx(rx,{ref:o,className:se("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-semibold ring-offset-background transition-all duration-200 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary/12 data-[state=active]:text-primary data-[state=active]:shadow-[0_10px_28px_-18px_hsl(var(--primary)/0.85)] data-[state=active]:ring-1 data-[state=active]:ring-primary/22",n),...l}));Cs.displayName=rx.displayName;const Bs=v.forwardRef(({className:n,...l},o)=>m.jsx(ox,{ref:o,className:se("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}));Bs.displayName=ox.displayName;var sx="AlertDialog",[VR]=Fa(sx,[iy]),ha=iy(),cx=n=>{const{__scopeAlertDialog:l,...o}=n,i=ha(l);return m.jsx(Ey,{...i,...o,modal:!0})};cx.displayName=sx;var YR="AlertDialogTrigger",ux=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ha(o);return m.jsx(Ny,{...u,...i,ref:l})});ux.displayName=YR;var $R="AlertDialogPortal",dx=n=>{const{__scopeAlertDialog:l,...o}=n,i=ha(l);return m.jsx(Ty,{...i,...o})};dx.displayName=$R;var qR="AlertDialogOverlay",fx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ha(o);return m.jsx(Rf,{...u,...i,ref:l})});fx.displayName=qR;var Ar="AlertDialogContent",[GR,XR]=VR(Ar),PR=lC("AlertDialogContent"),mx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,children:i,...u}=n,d=ha(o),f=v.useRef(null),h=Ie(l,f),y=v.useRef(null);return m.jsx(x5,{contentName:Ar,titleName:hx,docsSlug:"alert-dialog",children:m.jsx(GR,{scope:o,cancelRef:y,children:m.jsxs(_f,{role:"alertdialog",...d,...u,ref:h,onOpenAutoFocus:Oe(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(PR,{children:i}),m.jsx(KR,{contentRef:f})]})})})});mx.displayName=Ar;var hx="AlertDialogTitle",px=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ha(o);return m.jsx(jf,{...u,...i,ref:l})});px.displayName=hx;var gx="AlertDialogDescription",vx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ha(o);return m.jsx(Of,{...u,...i,ref:l})});vx.displayName=gx;var QR="AlertDialogAction",yx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ha(o);return m.jsx(Js,{...u,...i,ref:l})});yx.displayName=QR;var bx="AlertDialogCancel",xx=v.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,{cancelRef:u}=XR(bx,o),d=ha(o),f=Ie(l,u);return m.jsx(Js,{...d,...i,ref:f})});xx.displayName=bx;var KR=({contentRef:n})=>{const l=`\`${Ar}\` requires a description for the component to be accessible for screen reader users.
296
-
297
- You can add a description to the \`${Ar}\` by passing a \`${gx}\` 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 \`${Ar}\`. 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},ZR=cx,IR=ux,FR=dx,Sx=fx,wx=mx,Ex=yx,Nx=xx,Tx=px,Cx=vx;const rf=ZR,of=IR,JR=FR,Ax=v.forwardRef(({className:n,...l},o)=>m.jsx(Sx,{className:se("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}));Ax.displayName=Sx.displayName;const Hs=v.forwardRef(({className:n,...l},o)=>m.jsxs(JR,{children:[m.jsx(Ax,{}),m.jsx(wx,{ref:o,className:se("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-xl border bg-background p-6 shadow-[0_34px_110px_-54px_rgba(0,0,0,0.55)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n),...l})]}));Hs.displayName=wx.displayName;const Vs=({className:n,...l})=>m.jsx("div",{className:se("flex flex-col space-y-2 text-center sm:text-left",n),...l});Vs.displayName="AlertDialogHeader";const Ys=({className:n,...l})=>m.jsx("div",{className:se("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...l});Ys.displayName="AlertDialogFooter";const $s=v.forwardRef(({className:n,...l},o)=>m.jsx(Tx,{ref:o,className:se("text-lg font-semibold",n),...l}));$s.displayName=Tx.displayName;const qs=v.forwardRef(({className:n,...l},o)=>m.jsx(Cx,{ref:o,className:se("text-sm text-muted-foreground",n),...l}));qs.displayName=Cx.displayName;const Gs=v.forwardRef(({className:n,...l},o)=>m.jsx(Ex,{ref:o,className:se(xf(),n),...l}));Gs.displayName=Ex.displayName;const Xs=v.forwardRef(({className:n,...l},o)=>m.jsx(Nx,{ref:o,className:se(xf({variant:"outline"}),"mt-2 sm:mt-0",n),...l}));Xs.displayName=Nx.displayName;function WR(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 e_({formatDateTime:n,viewInfo:l}){var i,u,d,f,h,y,p,x;const o=WR(l.packages);return m.jsxs(Bs,{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(Dn,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(kn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(CE,{className:"h-3.5 w-3.5 text-primary"}),"Repository & runtime"]}),m.jsx(zn,{className:"text-[10px]",children:"Build source and runtime identity for this node."})]}),m.jsxs(Ln,{className:"space-y-2 px-3 pb-2.5",children:[(i=l.repository)!=null&&i.url?m.jsxs("a",{href:l.repository.url,target:"_blank",rel:"noreferrer",className:"group flex min-w-0 items-center justify-between gap-2 rounded-lg border border-border/70 bg-background/70 px-2.5 py-1.5 text-[11px] text-foreground transition-colors hover:border-primary/40 hover:bg-primary/5",children:[m.jsx("span",{className:"truncate font-mono text-[10px]",children:l.repository.url}),m.jsx(PE,{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:((u=l.repository)==null?void 0:u.branch)??"Unavailable",mono:!!((d=l.repository)!=null&&d.branch)}),m.jsx(Sr,{label:"Commit",value:((f=l.repository)==null?void 0:f.commit)??"Unavailable",mono:!!((h=l.repository)!=null&&h.commit)}),m.jsx(Sr,{label:"Runtime",value:`${l.packageName??"meshy"} ${l.version}`,mono:!0}),m.jsx(Sr,{label:"Node.js",value:((y=l.runtime)==null?void 0:y.nodeVersion)??"Unavailable",mono:!!((p=l.runtime)!=null&&p.nodeVersion)}),m.jsx(Sr,{label:"PID",value:l.runtime?String(l.runtime.pid):"Unavailable",mono:!!l.runtime}),m.jsx(Sr,{label:"Started",value:n((x=l.runtime)==null?void 0:x.startedAt)})]})]})]}),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(Dn,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(kn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(IE,{className:"h-3.5 w-3.5 text-primary"}),"Package versions"]}),m.jsx(zn,{className:"text-[10px]",children:"Version snapshot for the packages most relevant to this dashboard session."})]}),m.jsx(Ln,{"data-package-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:o.map(g=>{var w,N;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:g.label}),m.jsx("div",{className:"min-w-0 truncate text-[10px] text-muted-foreground",children:(w=g.value)==null?void 0:w.name}),m.jsx(pt,{variant:"outline",className:"w-fit rounded-sm border-border/70 bg-background/60 font-mono text-[10px]",children:(N=g.value)==null?void 0:N.version})]},g.key)})})]})]})}var ic="Checkbox",[t_]=Fa(ic),[n_,Xf]=t_(ic);function a_(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,N]=Rr({prop:o,defaultProp:u??!1,onChange:y,caller:ic}),[T,E]=v.useState(null),[C,A]=v.useState(null),_=v.useRef(!1),M=T?!!f||!!T.closest("form"):!0,k={checked:w,disabled:d,setChecked:N,control:T,setControl:E,name:h,form:f,value:x,hasConsumerStoppedPropagationRef:_,required:p,defaultChecked:Pa(u)?!1:u,isFormControl:M,bubbleInput:C,setBubbleInput:A};return m.jsx(n_,{scope:l,...k,children:l_(g)?g(k):i})}var Rx="CheckboxTrigger",_x=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:N,bubbleInput:T}=Xf(Rx,n),E=Ie(u,x),C=v.useRef(y);return v.useEffect(()=>{const A=d==null?void 0:d.form;if(A){const _=()=>g(C.current);return A.addEventListener("reset",_),()=>A.removeEventListener("reset",_)}},[d,g]),m.jsx(ze.button,{type:"button",role:"checkbox","aria-checked":Pa(y)?"mixed":y,"aria-required":p,"data-state":kx(y),"data-disabled":h?"":void 0,disabled:h,value:f,...i,ref:E,onKeyDown:Oe(l,A=>{A.key==="Enter"&&A.preventDefault()}),onClick:Oe(o,A=>{g(_=>Pa(_)?!0:!_),T&&N&&(w.current=A.isPropagationStopped(),w.current||A.stopPropagation())})})});_x.displayName=Rx;var Pf=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(a_,{__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(_x,{...g,ref:l,__scopeCheckbox:o}),w&&m.jsx(Dx,{__scopeCheckbox:o})]})})});Pf.displayName=ic;var jx="CheckboxIndicator",Ox=v.forwardRef((n,l)=>{const{__scopeCheckbox:o,forceMount:i,...u}=n,d=Xf(jx,o);return m.jsx(kr,{present:i||Pa(d.checked)||d.checked===!0,children:m.jsx(ze.span,{"data-state":kx(d.checked),"data-disabled":d.disabled?"":void 0,...u,ref:l,style:{pointerEvents:"none",...n.style}})})});Ox.displayName=jx;var Mx="CheckboxBubbleInput",Dx=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:N}=Xf(Mx,n),T=Ie(o,N),E=tb(d),C=Gy(i);v.useEffect(()=>{const _=w;if(!_)return;const M=window.HTMLInputElement.prototype,Y=Object.getOwnPropertyDescriptor(M,"checked").set,G=!u.current;if(E!==d&&Y){const B=new Event("click",{bubbles:G});_.indeterminate=Pa(d),Y.call(_,Pa(d)?!1:d),_.dispatchEvent(B)}},[w,E,d,u]);const A=v.useRef(Pa(d)?!1:d);return m.jsx(ze.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??A.current,required:h,disabled:y,name:p,value:x,form:g,...l,tabIndex:-1,ref:T,style:{...l.style,...C,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Dx.displayName=Mx;function l_(n){return typeof n=="function"}function Pa(n){return n==="indeterminate"}function kx(n){return Pa(n)?"indeterminate":n?"checked":"unchecked"}const zx=v.forwardRef(({className:n,...l},o)=>m.jsx(Pf,{ref:o,className:se("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(Ox,{className:se("flex items-center justify-center text-current"),children:m.jsx(_s,{className:"h-3.5 w-3.5"})})}));zx.displayName=Pf.displayName;const Lx=v.forwardRef(({className:n,type:l,...o},i)=>m.jsx("input",{type:l,className:se("flex h-10 w-full rounded-sm border border-input/85 bg-background/72 px-3 py-2 text-sm shadow-sm ring-offset-background transition-all duration-200 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground/75 focus-visible:border-primary/45 focus-visible:bg-background/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/45 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n),ref:i,...o}));Lx.displayName="Input";const $v=["queued","running"];function r_(n){return n.map(l=>`${l.id}:${l.name}`).join("\0")}function o_(n){return n==="claude"||n==="codex"||n==="copilot"}function Ux(n){var o;if(n.kind!=="agent.upgrade")return null;const l=(o=n.payload)==null?void 0:o.agent;return o_(l)?`${n.nodeId}:${l}`:null}function i_(n){return n.status==="succeeded"||n.status==="failed"}async function Bx(n,l={}){const o=l.getOperation??J2,i=l.pollIntervalMs??2e3,u=l.timeoutMs??24e4,d=Date.now()+u;let f=n;for(;!i_(f)&&Date.now()<d;)await c_(i),f=await o(n.id);return f}async function s_(n,l=W2){const o=new Set(n),i=await Promise.all($v.map(d=>l({kind:"agent.upgrade",status:d}))),u=new Map;for(const d of i.flat()){if(!$v.includes(d.status)||o.size>0&&!o.has(d.nodeId))continue;const f=Ux(d);if(!f)continue;const h=u.get(f);(!h||d.updatedAt>h.updatedAt)&&u.set(f,d)}return u}function c_(n){return new Promise(l=>setTimeout(l,n))}const u_=1500,d_=1e3,f_=9e4;async function m_(n={}){const l=n.fetchHealth??h_,o=n.initialDelayMs??u_,i=n.pollIntervalMs??d_,u=n.previousPid,d=n.reload??(()=>window.location.reload()),f=n.sleep??g_,h=n.timeoutMs??f_,y=Date.now()+h;let p=!1;for(o>0&&await f(o);Date.now()<=y;){const x=p_(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 h_(){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 p_(n){return typeof n=="boolean"?{ok:n}:n}function g_(n){return new Promise(l=>window.setTimeout(l,n))}function v_(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 y_({checkedLabel:n,disableAuthDefault:l,endpoint:o,isLiveLocalNode:i,nodeId:u,nodeName:d,onRefresh:f,pid:h,transportType:y,update:p,workDir:x}){const g=v_(p,i),[w,N]=v.useState(null),[T,E]=v.useState(()=>qv({disableAuthDefault:l,endpoint:o,nodeName:d,transportType:y,workDir:x})),[C,A]=v.useState(!1),[_,M]=v.useState(!1),[k,Y]=v.useState(!1);v.useEffect(()=>{E(qv({disableAuthDefault:l,endpoint:o,nodeName:d,transportType:y,workDir:x}))},[l,o,d,y,x]);async function G(){if(!u||C||_)return;const re=p.updateAvailable?"update":"restart",pe=S_(T);if(T.port.trim()&&(pe==null?void 0:pe.port)===void 0){ft.error("Runtime restart port must be a positive integer");return}const me=pe?{reason:re,startArgs:pe}:{reason:re};A(!0);try{if(i){const O=await Z2(me);N({...O,pid:O.pid??h,status:"accepted"}),ft.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.`),m_({previousPid:O.pid??h}).then(q=>{q||(A(!1),ft.error("Runtime restart was accepted, but the dashboard did not reconnect before the timeout. Refresh the page after the node finishes starting."))}).catch(q=>{A(!1),ft.error(q instanceof Error?q.message:"Runtime restart recovery failed")});return}const ue=await tE(u,me);N({operationId:ue.id,pid:h,status:ue.status}),ft.info(`Restart requested on ${d}. Operation ${$d(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 Bx(ue,{timeoutMs:6e4}),le=x_(de);N({command:le==null?void 0:le.command,logPath:le==null?void 0:le.logPath,mode:le==null?void 0:le.mode,operationId:de.id,pid:(le==null?void 0:le.pid)??h,status:de.status}),de.status==="succeeded"?(await(f==null?void 0:f()),ft.success(`Restart handoff accepted on ${d}. Follow ${(le==null?void 0:le.logPath)??"the node restart log"} for launch output.`)):de.status==="failed"?ft.error(de.error??`Restart failed on ${d}`):ft.info(`Restart operation ${$d(de.id)} is still ${de.status}. More details will update after the node reports back.`),A(!1)}catch(ue){A(!1),ft.error(ue instanceof Error?ue.message:"Runtime restart failed")}}async function B(){if(!(!i||C||_)){M(!0);try{const re=await I2();ft.info(`Stopping Meshy process ${re.pid}`)}catch(re){M(!1),ft.error(re instanceof Error?re.message:"Runtime stop failed")}}}const V=C?"restarting":_?"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(pt,{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(rf,{children:[m.jsx(of,{asChild:!0,children:m.jsxs(Yn,{type:"button",size:"sm",variant:"ghost",disabled:C||_,className:"h-7 rounded-lg px-2 text-[11px] text-muted-foreground hover:text-destructive hover:bg-destructive/10",children:[m.jsx(nN,{className:se("mr-1 h-3.5 w-3.5",_&&"animate-pulse")}),_?"Stopping":"Stop"]})}),m.jsxs(Hs,{className:"max-w-[22rem] rounded-xl gap-2 p-4",children:[m.jsxs(Vs,{className:"space-y-1",children:[m.jsx($s,{className:"text-sm",children:"Stop runtime?"}),m.jsx(qs,{className:"text-[11px] leading-4",children:"Gracefully stops the current Meshy process without launching a replacement. The dashboard will disconnect until the node is started again."})]}),m.jsxs(Ys,{className:"gap-1 pt-0 sm:space-x-1",children:[m.jsx(Xs,{className:"h-7 rounded-lg px-2 text-[11px]",children:"Cancel"}),m.jsx(Gs,{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(rf,{children:[m.jsx(of,{asChild:!0,children:m.jsxs(Yn,{type:"button",size:"sm",variant:p.updateAvailable?"default":"outline",disabled:!u||C||_,className:"h-7 rounded-lg px-2 text-[11px]",children:[m.jsx(rN,{className:se("mr-1 h-3.5 w-3.5",C&&"animate-spin")}),C?"Restarting…":g]})}),m.jsxs(Hs,{className:"max-w-[28rem] gap-3 rounded-xl p-4",children:[m.jsxs(Vs,{className:"space-y-1",children:[m.jsxs($s,{className:"text-sm",children:[g,"?"]}),m.jsxs(qs,{className:"text-[11px] leading-4",children:["Starts a detached restart helper, shuts down ",i?"the current node":d,", and brings it back with the configured launcher. The new process will not stay attached to the original terminal window."]})]}),m.jsx(b_,{value:T,onChange:E}),m.jsxs(Ys,{className:"gap-1 pt-0 sm:space-x-1",children:[m.jsx(Xs,{className:"h-7 rounded-lg px-2 text-[11px]",children:"Cancel"}),m.jsx(Gs,{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:()=>Y(re=>!re),className:"flex w-full items-center justify-between px-3 py-1.5 text-[10px] text-muted-foreground hover:text-foreground hover:bg-muted/30 transition-colors",children:[m.jsxs("span",{className:"flex items-center gap-1.5",children:[m.jsx(T0,{className:"h-3 w-3"}),"Restart details"]}),m.jsx(Zs,{className:se("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?$d(w.operationId):"Local direct request",mono:!!(w!=null&&w.operationId)}),m.jsx(Nl,{label:"Status",value:(w==null?void 0:w.status)??(C?"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 b_({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(Lo,{label:"HTTP port",value:l.port,onChange:i=>o("port",i),inputMode:"numeric"}),m.jsx(Lo,{label:"Node name",value:l.name,onChange:i=>o("name",i)}),m.jsx(Lo,{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(Bb,{value:l.transport,onValueChange:i=>o("transport",Hx(i)),children:[m.jsx($f,{className:"h-7 rounded-md border-border/70 bg-background/70 px-2 text-[10px]",children:m.jsx(Hb,{placeholder:"Transport"})}),m.jsxs(qf,{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(Lo,{label:"Working directory",value:l.workDir,onChange:i=>o("workDir",i)}),m.jsx(Lo,{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(zx,{className:"h-3.5 w-3.5",checked:l.disableAuth,onCheckedChange:i=>n({...l,disableAuth:i===!0,disableAuthKnown:!0})}),"Disable auth"]})]})]})}function Lo({className:n,inputMode:l,label:o,onChange:i,value:u}){return m.jsxs("label",{className:se("space-y-1",n),children:[m.jsx("span",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:o}),m.jsx(Lx,{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:se("break-all text-right text-foreground",o&&"font-mono"),children:l})]})}function x_(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 qv(n){return{port:w_(n.endpoint),name:n.nodeName,join:"",transport:Hx(n.transportType),workDir:n.workDir??"",config:"",disableAuth:n.disableAuthDefault===!0,disableAuthKnown:n.disableAuthDefault!==void 0}}function S_(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 Hx(n){return n==="direct"||n==="devtunnel"||n==="tailscale"?n:"inherit"}function w_(n){if(!n)return"";try{return new URL(n).port||""}catch{return""}}function $d(n){return n.length<=8?n:n.slice(0,8)}function Uo({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(pt,{variant:o.authenticated?"default":"outline",className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:o.authenticated?"auth ok":"auth required"}),m.jsx(pt,{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 Gt(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 E_(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 Gv(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 N_(n){return n.available?m.jsxs(pt,{className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[m.jsx(Ho,{className:"h-3 w-3"}),"Available"]}):m.jsxs(pt,{variant:"destructive",className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[m.jsx(VE,{className:"h-3 w-3"}),"Unavailable"]})}function T_(n){return n.update?n.update.updateAvailable?m.jsxs(pt,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Update ",n.update.latestVersion]}):m.jsx(pt,{variant:"secondary",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:"Up to date"}):null}function C_(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 A_(n){if(n.error)return n.error;const l=n.result;return(l==null?void 0:l.detail)??null}function Ze({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:se("break-all text-right text-[11px] text-foreground",o&&"font-mono text-[11px]"),children:l})]})}function Bo({label:n,value:l,mono:o=!1,className:i}){return m.jsxs("div",{className:se("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:se("truncate text-[11px] text-foreground",o&&"font-mono",n==="Path"&&"break-all whitespace-normal"),children:l})]})}function R_({agent:n,nodeName:l,activeOperation:o,onUpgrade:i}){var h,y;const u=((h=n.update)==null?void 0:h.updateAvailable)===!0,d=T_(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(x0,{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:[N_(n),n.metadataStatus&&m.jsx(pt,{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(Bo,{label:"Version",value:n.version??"Unavailable",mono:!!n.version}),n.update&&m.jsx(Bo,{label:"Latest",value:n.update.latestVersion??"Unavailable",mono:!!n.update.latestVersion}),m.jsx(Bo,{label:"Checked",value:Gt(n.checkedAt)}),n.update&&m.jsx(Bo,{label:"Update check",value:Gt(n.update.checkedAt)}),m.jsx(Bo,{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(pt,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Upgrade ",o.status]}):u?m.jsxs(rf,{children:[m.jsx(of,{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(Hs,{children:[m.jsxs(Vs,{children:[m.jsxs($s,{children:["Upgrade ",n.label,"?"]}),m.jsxs(qs,{children:["This runs ",C_(n)," on ",l,". Remote nodes execute the command on the remote machine."]})]}),m.jsxs(Ys,{children:[m.jsx(Xs,{children:"Cancel"}),m.jsx(Gs,{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 __(n,l){var o;return(o=n==null?void 0:n.nodes)!=null&&o.length?n.nodes:l?[l]:[]}function j_(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 O_(n,l){return n.id===l?`${n.name} (this node)`:`${n.name} (${n.role})`}function M_(n){return n==="claude"?"Claude Code":n==="copilot"?"Copilot CLI":"Codex"}function D_(n){var o;const l=(o=n.payload)==null?void 0:o.agent;return l==="claude"||l==="codex"||l==="copilot"?l:null}function k_({cluster:n,systemInfo:l,sseConnected:o,initialSelectedNodeId:i,onRefresh:u}){var ae,re,pe,me,ue,de,le,O,q,I,ce,F,j,X,Q,W,ee,oe,te,ie;const d=v.useMemo(()=>__(n,l),[n,l]),[f,h]=v.useState(()=>{var J;return i??(l==null?void 0:l.nodeId)??((J=n==null?void 0:n.self)==null?void 0:J.id)??""}),[y,p]=v.useState(()=>new Map),x=v.useRef(new Set),g=v.useRef(new Set),w=(n==null?void 0:n.self)??l??d[0]??null,N=d.find(J=>J.id===f)??w,T=N?j_(N,l):null,E=!!(l&&N&&N.id===l.nodeId),C=E||!!(N!=null&&N.settingsSnapshot),A=T==null?void 0:T.runtimeUpdate,_=((ae=T==null?void 0:T.startupRequirements)==null?void 0:ae.components)??(T==null?void 0:T.components)??{},M=v.useMemo(()=>d.map(J=>J.id),[d]),k=M.join("\0"),Y=r_(d),G=v.useMemo(()=>new Map(d.map(J=>[J.id,J.name])),[Y]);v.useEffect(()=>{i&&M.includes(i)&&h(i)},[i,k]);const B=v.useCallback(async(J,xe)=>{const ye=Ux(J);if(!ye||x.current.has(J.id))return;const Se=D_(J),Ye=(xe==null?void 0:xe.agentLabel)??(Se?M_(Se):"Agent"),Le=(xe==null?void 0:xe.nodeName)??G.get(J.nodeId)??J.nodeId;x.current.add(J.id),p($e=>new Map($e).set(ye,J));try{const $e=await Bx(J);if($e.status==="succeeded")await(u==null?void 0:u()),g.current.has($e.id)||(ft.success(`${Ye} upgrade finished on ${Le}`),g.current.add($e.id));else if($e.status==="failed")g.current.has($e.id)||(ft.error(A_($e)??`${Ye} upgrade failed`),g.current.add($e.id));else{p(gt=>new Map(gt).set(ye,$e)),ft.info(`${Ye} upgrade is still ${$e.status} on ${Le}`);return}p(gt=>{const rt=new Map(gt),Pt=rt.get(ye);return(!Pt||Pt.id===$e.id)&&rt.delete(ye),rt})}catch($e){p(gt=>{const rt=new Map(gt),Pt=rt.get(ye);return(!Pt||Pt.id===J.id)&&rt.delete(ye),rt}),ft.error($e instanceof Error?$e.message:`${Ye} upgrade failed`)}finally{x.current.delete(J.id)}},[u,G]);v.useEffect(()=>{if(M.length===0)return;let J=!1;async function xe(){let ye;try{ye=await s_(M)}catch{return}if(!J){p(Se=>{const Ye=new Map(Se);for(const[Le,$e]of ye)Ye.set(Le,$e);return Ye});for(const Se of ye.values())B(Se)}}return xe(),()=>{J=!0}},[B,k]);async function V(J){if(N)try{const xe=await eE(N.id,J.id);ft.info(`${J.label} upgrade started on ${N.name}`),await B(xe,{agentLabel:J.label,nodeName:N.name})}catch(xe){ft.error(xe instanceof Error?xe.message:`${J.label} upgrade failed`)}}return!N||!T?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(pt,{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 ",Gt((re=N.settingsSnapshot)==null?void 0:re.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(G0,{status:N.status}),m.jsx("span",{className:"font-medium text-foreground",children:N.name})]}),m.jsx(uT,{role:N.role}),m.jsx(pt,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:N.transportType??T.transportType??"direct"}),m.jsx(pt,{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(Bb,{value:N.id,onValueChange:h,children:[m.jsx($f,{className:"h-7 rounded-lg border-border/70 bg-background/70 text-[11px]",children:m.jsx(Hb,{placeholder:"Choose a node"})}),m.jsx(qf,{className:"settings-node-select-content rounded-lg text-[10px] leading-4",children:d.map(J=>m.jsx(Nr,{value:J.id,className:"settings-node-select-item py-1 pl-6 pr-2 text-[10px] leading-4 [&>span]:left-1.5 [&_svg]:h-3 [&_svg]:w-3",children:O_(J,l==null?void 0:l.nodeId)},J.id))})]})]})]}),m.jsxs("div",{className:"flex items-center gap-1",children:[m.jsxs(pt,{variant:o?"default":"outline",className:"gap-1 rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:[m.jsx(E0,{className:"h-3 w-3"}),o?"Live link":"Reconnecting"]}),m.jsxs(pt,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:["Uptime ",E_(T.uptime)]})]})]})]}),!C&&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(HR,{defaultValue:"session",className:"space-y-2",children:[m.jsxs(ix,{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(Bs,{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(Dn,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(kn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(iN,{className:"h-3.5 w-3.5 text-primary"}),"Selected node"]}),m.jsx(zn,{className:"text-[10px]",children:"Cluster role, identity, and node-scoped runtime state."})]}),m.jsxs(Ln,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Ze,{label:"Node ID",value:T.nodeId,mono:!0}),m.jsx(Ze,{label:"Status",value:N.status}),m.jsx(Ze,{label:"Role",value:N.role}),m.jsx(Ze,{label:"Endpoint",value:N.endpoint,mono:!0}),m.jsx(Ze,{label:"Joined",value:Gt(N.joinedAt)}),m.jsx(Ze,{label:"Heartbeat",value:Gt(N.lastHeartbeat)}),m.jsx(Ze,{label:"Capabilities",value:N.capabilities.length>0?N.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(Dn,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(kn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(GE,{className:"h-3.5 w-3.5 text-primary"}),"OS info"]}),m.jsx(zn,{className:"text-[10px]",children:"Host and resource details reported by the current process."})]}),m.jsxs(Ln,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Ze,{label:"Host",value:((pe=T.os)==null?void 0:pe.hostname)??"Unavailable"}),m.jsx(Ze,{label:"Platform",value:T.os?`${T.os.platform} ${T.os.release}`:"Unavailable"}),m.jsx(Ze,{label:"Arch",value:((me=T.os)==null?void 0:me.arch)??"Unavailable"}),m.jsx(Ze,{label:"CPU",value:((ue=T.os)==null?void 0:ue.cpuModel)??"Unavailable"}),m.jsx(Ze,{label:"Cores",value:String(((de=T.os)==null?void 0:de.cpuCount)??"Unavailable")}),m.jsx(Ze,{label:"Memory",value:T.os?`${Gv(T.os.freeMemoryBytes)} free / ${Gv(T.os.totalMemoryBytes)} total`:"Unavailable"})]})]}),A&&m.jsx("div",{className:"xl:col-span-2",children:m.jsx(y_,{checkedLabel:Gt(A.checkedAt),disableAuthDefault:((le=T.auth)==null?void 0:le.enabled)===void 0?void 0:T.auth.enabled===!1,endpoint:N.endpoint,isLiveLocalNode:E,nodeId:N.id,nodeName:N.name,onRefresh:u,pid:(O=T.runtime)==null?void 0:O.pid,transportType:N.transportType,update:A,workDir:((q=T.runtime)==null?void 0:q.workDir)??N.workDir})}),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(Dn,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(kn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(x0,{className:"h-3.5 w-3.5 text-primary"}),"Available agents"]}),m.jsx(zn,{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(Ln,{"data-agent-layout":"list",className:"space-y-1.5 px-3 pb-2.5",children:(T.agents??[]).map(J=>m.jsx(R_,{agent:J,nodeName:N.name,activeOperation:y.get(`${N.id}:${J.id}`),onUpgrade:V},J.id))})]})]}),m.jsxs(Bs,{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(Dn,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(kn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(_E,{className:"h-3.5 w-3.5 text-primary"}),"Access surface"]}),m.jsx(zn,{className:"text-[10px]",children:"How this node is exposed to the dashboard and other peers."})]}),m.jsxs(Ln,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Ze,{label:"Transport",value:N.transportType??T.transportType??"direct"}),m.jsx(Ze,{label:"Node URL",value:N.endpoint,mono:!0}),m.jsx(Ze,{label:"Node tunnel",value:N.devtunnelEndpoint??"Disabled",mono:!!N.devtunnelEndpoint}),m.jsx(Ze,{label:"Dashboard URL",value:N.dashboardOrigin??T.localDashboardOrigin??"Unavailable",mono:!!(N.dashboardOrigin||T.localDashboardOrigin)}),m.jsx(Ze,{label:"Local dashboard",value:T.localDashboardOrigin??"Unavailable",mono:!!T.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(Dn,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(kn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(dN,{className:"h-3.5 w-3.5 text-primary"}),"Auth"]}),m.jsx(zn,{className:"text-[10px]",children:"Current bearer-auth and trusted access posture."})]}),m.jsxs(Ln,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Ze,{label:"Enabled",value:(I=T.auth)!=null&&I.enabled?"Yes":"No"}),m.jsx(Ze,{label:"Same tenant",value:(ce=T.auth)!=null&&ce.allowSameTenant?"Allowed":"Off"}),m.jsx(Ze,{label:"Allowed users",value:(F=T.auth)!=null&&F.allowedUsers.length?T.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(Dn,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(kn,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(KE,{className:"h-3.5 w-3.5 text-primary"}),"Paths"]}),m.jsx(zn,{className:"text-[10px]",children:"Workspace and runtime paths currently used by this node."})]}),m.jsxs(Ln,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Ze,{label:"Work dir",value:((j=T.runtime)==null?void 0:j.workDir)??T.workDir??"Unavailable",mono:!!(((X=T.runtime)==null?void 0:X.workDir)??T.workDir)}),m.jsx(Ze,{label:"Storage",value:((Q=T.runtime)==null?void 0:Q.storagePath)??"Unavailable",mono:!!((W=T.runtime)!=null&&W.storagePath)}),m.jsx(Ze,{label:"Process cwd",value:((ee=T.runtime)==null?void 0:ee.cwd)??"Unavailable",mono:!!((oe=T.runtime)!=null&&oe.cwd)}),m.jsx(Ze,{label:"Started",value:Gt((te=T.runtime)==null?void 0:te.startedAt)}),m.jsx(Ze,{label:"PID",value:T.runtime?String(T.runtime.pid):"Unavailable",mono:!!T.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(Dn,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(kn,{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(zn,{className:"text-[10px]",children:"Dependency preflight snapshot persisted during node startup."})]}),m.jsxs(Ln,{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:Gt((ie=T.startupRequirements)==null?void 0:ie.lastCheckedAt)})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(Uo,{formatDateTime:Gt,name:"Azure CLI",status:_.az,statusVariant:Er}),m.jsx(Uo,{formatDateTime:Gt,name:"DevTunnel",status:_.devtunnel,statusVariant:Er}),m.jsx(Uo,{formatDateTime:Gt,name:"Claude Code",status:_.claude,statusVariant:Er}),m.jsx(Uo,{formatDateTime:Gt,name:"Codex",status:_.codex,statusVariant:Er}),m.jsx(Uo,{formatDateTime:Gt,name:"Copilot CLI",status:_.copilot,statusVariant:Er})]})]})]})]}),m.jsx(e_,{formatDateTime:Gt,viewInfo:T})]})]})}function z_({initialSelectedNodeId:n,open:l,onOpenChange:o,showTrigger:i=!0}={}){const{cluster:u,systemInfo:d,sseConnected:f,refresh:h}=y0();return m.jsx(R5,{open:l,onOpenChange:o,showTrigger:i,children:m.jsx(k_,{cluster:u,systemInfo:d,sseConnected:f,initialSelectedNodeId:n,onRefresh:h})})}const Tj="bypass",L_=[{value:"claudecode",label:"Claude Code",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"}],Cj=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],Aj=new Set(L_.filter(n=>n.supportsFollowUp).map(n=>n.value)),Rj=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],_j=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],U_=new Set(["pending","assigned"]),B_=new Set(["running"]),H_=new Set(["completed","failed","cancelled"]);function jj(n,l){switch(l){case"running":return B_.has(n.status);case"waiting":return U_.has(n.status);case"closed":return H_.has(n.status);case"shared":return!!n.activeShare;case"archived":return n.status==="archived";case"active":default:return n.status!=="archived"}}function Oj(n,l){if(l==="all")return!0;const o=n.conversationKind==="nativeSession";return l==="native"?o:!o}function Mj(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 V_(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 Dj(n,l,o){return V_(n,l,o).toLowerCase()}function kj(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 zj(n,l){return[...n].sort((o,i)=>o.id===l?-1:i.id===l?1:o.name.localeCompare(i.name))}function Lj(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 Uj(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 Bj(n){return n==="default workspace"?n:n.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??n}function Hj(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 Vj(n){return new Date(n).toLocaleString()}function Yj(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 Y_(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),ft.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 ft.success(l),!0}catch(d){return ft.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 $_={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"},q_={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 G_(n){return n.split(".")[0]??"unknown"}function X_(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function wr(n,l){return(l==null?void 0:l.get(n))??n}function Vx(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 P_(n){return JSON.stringify(n,null,2)}function Q_({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=G_(f.type);return m.jsx("div",{className:se("transition-colors hover:bg-muted/30",d?"rounded-sm 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:se("font-mono text-muted-foreground",d?"text-[8px]":"text-[9px]"),children:X_(f.timestamp)}),d?m.jsx("span",{className:se("max-w-[8.5rem] truncate text-[7px] font-medium uppercase tracking-[0.08em] text-muted-foreground/70",q_[h]),children:f.type}):m.jsx(pt,{variant:"outline",className:se("w-fit text-[9px] font-medium uppercase tracking-[0.14em] px-1.5 py-0",$_[h]),children:f.type})]}),m.jsxs("div",{className:"flex shrink-0 items-center gap-0.5",children:[m.jsx(Yn,{type:"button",variant:"ghost",size:"icon",className:se("rounded-sm text-muted-foreground",d?"h-4 w-4":"h-5 w-5"),onClick:()=>void Y_(P_(f),"Event copied"),"aria-label":`Copy ${f.type} event`,title:"Copy event",children:m.jsx($E,{className:d?"h-2.5 w-2.5":"h-3 w-3"})}),i&&m.jsx(Yn,{type:"button",variant:"ghost",size:"icon",className:se("rounded-sm 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(C0,{className:d?"h-2.5 w-2.5":"h-3 w-3"})})]})]}),m.jsx("div",{className:"text-[9px] leading-snug text-foreground/85",children:Vx(f,o)})]})},f.id)})})})}const K_=["node.","election.","transport."],Z_="cluster.state";function I_(n){return n.type==="node.status"?!1:K_.some(l=>n.type.startsWith(l))}function F_(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function J_(n,l){return n?{time:F_(n.timestamp),text:Vx(n,l)}:null}function W_(n){return n.transportType==="devtunnel"||!!n.devtunnelEndpoint}function e3(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 t3(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 n3(n){if(n.length===0)return"No nodes";const l=n.filter(i=>i.status==="offline").length;if(l>0)return`${l} offline`;const o=n.filter(i=>i.status==="busy").length;return o>0?`${o} busy`:"Healthy"}function a3(n,l){return{label:(l==null?void 0:l.get(n.id))??n.name??n.id,status:n.status}}function l3({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=>I_(k)&&!p.has(k.id)),[l,p]),N=v.useMemo(()=>l.find(k=>k.type===Z_)??w[0],[l,w]),T=v.useMemo(()=>J_(N,i),[N,i]),E=v.useMemo(()=>o.filter(W_),[o]),C=E.some(k=>{var Y;return k.status==="offline"||((Y=k.devtunnelHealth)==null?void 0:Y.status)==="failed"}),A=o.some(k=>k.status==="offline"),_=o.some(k=>k.status==="busy"),M=o.length>0;return v.useEffect(()=>{x(k=>{if(k.size===0)return k;const Y=new Set(l.map(B=>B.id)),G=new Set(Array.from(k).filter(B=>Y.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)},Y=G=>{G.key==="Escape"&&f(!1)};return document.addEventListener("pointerdown",k),document.addEventListener("keydown",Y),()=>{document.removeEventListener("pointerdown",k),document.removeEventListener("keydown",Y)}},[d]),m.jsxs("div",{ref:g,className:"relative",children:[m.jsxs("button",{type:"button","aria-label":n?"Live link connected":"Live link reconnecting","aria-expanded":d,"aria-haspopup":"dialog",onClick:()=>f(k=>!k),className:se("flex h-10 items-center gap-1.5 rounded-sm px-2 text-[11px] shadow-sm transition-all sm:gap-2 sm:px-3 sm:text-xs",n?"bg-emerald-500/8 text-muted-foreground hover:bg-emerald-500/12":"bg-destructive/8 text-muted-foreground hover:bg-destructive/12",d&&(n?"bg-emerald-500/12 shadow-[0_14px_40px_-26px_rgba(16,185,129,0.95)]":"bg-destructive/12 shadow-[0_14px_40px_-26px_hsl(var(--destructive)/0.9)]")),title:n?"Live link connected":"Live link reconnecting",children:[m.jsx(E0,{className:se("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-lg border border-border/70 bg-background/96 shadow-[0_28px_90px_-42px_rgba(0,0,0,var(--panel-shadow-alpha))] backdrop-blur-xl max-sm:fixed max-sm:right-3 max-sm:top-[3.75rem] max-sm:w-[calc(100vw-1.5rem)]",children:[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(vN,{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:se("rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.12em]",n?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-destructive/30 bg-destructive/10 text-destructive"),children:n?"Connected":"Retrying"})]})}),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"}),T?m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"mt-0.5 truncate text-[9px] leading-snug text-foreground/80",children:T.text}),m.jsx("div",{className:"font-mono text-[8px] text-muted-foreground/60",children:T.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:[A?m.jsx(ds,{className:"h-3 w-3 shrink-0 text-destructive"}):_?m.jsx(Rs,{className:"h-3 w-3 shrink-0 text-amber-500"}):m.jsx(Ho,{className:se("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:se("shrink-0 rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",A?"border-destructive/30 bg-destructive/10 text-destructive":_?"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:n3(o)})]}),o.length>0&&m.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:o.map(k=>{const{label:Y,status:G}=a3(k,i),B=G==="offline",V=G==="busy";return m.jsxs("div",{"aria-label":`${Y} ${G}`,className:se("flex items-center justify-between gap-2 rounded-sm px-2 py-0.5",B?"bg-destructive/6":V?"bg-amber-500/6":"bg-emerald-500/5"),title:`${Y} ${G}`,children:[m.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:Y}),B?m.jsx(ds,{className:"h-3 w-3 shrink-0 text-destructive"}):V?m.jsx(ov,{className:"h-3 w-3 shrink-0 text-amber-500"}):m.jsx(Ho,{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:[C?m.jsx(ds,{className:"h-3 w-3 shrink-0 text-destructive"}):m.jsx(Ho,{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:se("shrink-0 rounded-sm border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",C?"border-destructive/30 bg-destructive/10 text-destructive":"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"),children:e3(E)})]}),m.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:E.map(k=>{var re;const{label:Y,status:G}=t3(k,i),B=G==="failed"||G==="offline",V=G!=="healthy"&&G!=="failed"&&G!=="offline",ae=(re=k.devtunnelHealth)!=null&&re.reason?`${Y} ${G}: ${k.devtunnelHealth.reason}`:`${Y} ${G}`;return m.jsxs("div",{"aria-label":`${Y} ${G}`,className:se("flex items-center justify-between gap-2 rounded-sm 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:Y}),B?m.jsx(ds,{className:"h-3 w-3 shrink-0 text-destructive"}):V?m.jsx(ov,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):m.jsx(Ho,{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(Zs,{className:"h-3 w-3 text-muted-foreground"}):m.jsx(DE,{className:"h-3 w-3 text-muted-foreground"})]}),h&&m.jsx("div",{className:"px-2 pb-2",children:m.jsx(Q_,{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(Y=>new Set(Y).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(Yn,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm 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(Yn,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-sm px-1.5 text-[9px]",onClick:()=>f(!1),children:"Close"})]})]})]})}const jr="airy",r3="clean",qd="meshy-layout-default-migrated-to-compact",sf="true",o3="compact",i3=new Set(["airy","clean","fluent"]);function s3(n){return n!==null&&i3.has(n)}function Qf(n){return n===o3?"fluent":s3(n)?n:null}function c3(n,l){const o=Qf(n);return o===r3&&l!==sf?jr:o??jr}const Yo="finsight",Yx="default",u3=new Set(["light","dark","system"]),d3=new Set(["porcelain","warm","finsight","edge"]),$x=v.createContext(null);function f3(n){const l=new URLSearchParams(n).get("theme");return qx(l)?l:null}function m3(n){const l=new URLSearchParams(n).get("palette");return Kf(l)}function h3(n){const l=new URLSearchParams(n).get("layout");return Qf(l)}function p3(){if(typeof document>"u")return null;const n=document.documentElement;return{theme:n.classList.contains("dark")?"dark":"light",palette:Kf(n.getAttribute("data-palette"))??Yo,layout:Qf(n.getAttribute("data-layout"))??jr}}function qj(n,l=p3()){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),u.searchParams.set("layout",l.layout),o?u.toString():`${u.pathname}${u.search}${u.hash}`}catch{return n}}function g3({children:n}){const[l,o]=v.useState(()=>typeof window<"u"?f3(window.location.search)??b3(localStorage.getItem("meshy-theme"))??"system":"system"),[i,u]=v.useState(()=>typeof window<"u"?m3(window.location.search)??x3(localStorage.getItem("meshy-palette"))??Yo:Yo),[d,f]=v.useState(()=>{if(typeof window<"u"){const h=h3(window.location.search);if(h)return localStorage.setItem(qd,sf),h;const y=c3(localStorage.getItem("meshy-layout"),localStorage.getItem(qd));return localStorage.setItem(qd,sf),y}return jr});return v.useEffect(()=>{const h=document.documentElement,y=p=>{if(p==="system"){const x=window.matchMedia("(prefers-color-scheme: dark)").matches;h.classList.toggle("dark",x)}else h.classList.toggle("dark",p==="dark")};if(y(l),localStorage.setItem("meshy-theme",l),l==="system"){const p=window.matchMedia("(prefers-color-scheme: dark)"),x=()=>y("system");return p.addEventListener("change",x),()=>p.removeEventListener("change",x)}},[l]),v.useEffect(()=>{const h=document.documentElement;i===Yo?h.removeAttribute("data-palette"):h.setAttribute("data-palette",i),localStorage.setItem("meshy-palette",i)},[i]),v.useEffect(()=>{const h=document.documentElement;d===jr?h.removeAttribute("data-layout"):h.setAttribute("data-layout",d),localStorage.setItem("meshy-layout",d)},[d]),m.jsx($x.Provider,{value:{theme:l,setTheme:o,palette:i,setPalette:u,layout:d,setLayout:f},children:n})}function v3(){const n=v.useContext($x);if(!n)throw new Error("useTheme must be used within ThemeProvider");return n}function qx(n){return n!==null&&u3.has(n)}function y3(n){return n!==null&&d3.has(n)}function b3(n){return qx(n)?n:null}function Kf(n){return n===Yx?"porcelain":y3(n)?n:null}function x3(n){return n===Yx?null:Kf(n)}const S3=[{value:"light",label:"Light",icon:N0},{value:"dark",label:"Dark",icon:w0},{value:"system",label:"System",icon:S0}],Gx=[{value:"finsight",label:"FinSight",hint:"Cool sage green"},{value:"porcelain",label:"Porcelain",hint:"Blue workspace"},{value:"warm",label:"Warm",hint:"Cream + amber"},{value:"edge",label:"Edge",hint:"Rounded violet panels"}],Xx=[{value:"airy",label:"Airy",hint:"Gradients, blur, spacious"},{value:"clean",label:"Clean",hint:"Flat, borders, high density"},{value:"fluent",label:"Fluent",hint:"Compact neutral"}];function w3(){const{theme:n,setTheme:l,palette:o,setPalette:i,layout:u,setLayout:d}=v3(),[f,h]=v.useState(!1),y=v.useRef(null),p=v.useRef(null),x=n==="dark"?w0:n==="light"?N0:S0,g=()=>{y.current&&(clearTimeout(y.current),y.current=null)},w=()=>{g(),y.current=setTimeout(()=>h(!1),180)};return v.useEffect(()=>{if(!f)return;const N=T=>{p.current&&!p.current.contains(T.target)&&h(!1)};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[f]),v.useEffect(()=>()=>g(),[]),m.jsxs("div",{ref:p,className:"relative",onMouseEnter:()=>{g(),h(!0)},onMouseLeave:w,children:[m.jsx(Yn,{variant:"ghost",size:"icon",onClick:()=>h(N=>!N),className:se("rounded-sm border bg-background/70",o!==Yo||u!==jr?"border-primary/60 text-primary":"border-border/60"),title:"Appearance","aria-haspopup":"menu","aria-expanded":f,children:m.jsx(x,{className:"h-4 w-4"})}),f&&m.jsxs("div",{role:"menu",className:"absolute right-0 top-[calc(100%+6px)] z-50 w-[calc(100vw-1rem)] max-w-[28rem] rounded-lg border border-border/70 bg-popover/95 p-2.5 text-popover-foreground shadow-[0_28px_90px_-34px_rgba(0,0,0,0.45)] backdrop-blur-xl sm:w-[28rem]",children:[m.jsxs("div",{className:"mb-2.5 flex items-end justify-between gap-3",children:[m.jsxs("div",{children:[m.jsx("div",{className:"text-[9px] font-semibold uppercase tracking-[0.2em] text-muted-foreground",children:"Appearance"}),m.jsxs("div",{className:"text-[11px] font-medium text-foreground",children:[E3(u)," / ",N3(o)]})]}),m.jsx("div",{className:"rounded-sm border border-border/60 bg-background/70 px-2 py-0.5 text-[9px] font-medium capitalize text-muted-foreground",children:n})]}),m.jsx("div",{className:"px-0.5 pb-1 text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Theme"}),m.jsx("div",{className:"mb-2.5 grid grid-cols-3 gap-1 rounded-sm bg-muted/35 p-1",children:S3.map(({value:N,label:T,icon:E})=>{const C=n===N;return m.jsxs("button",{type:"button",onClick:()=>l(N),role:"menuitemradio","aria-checked":C,className:se("flex min-h-[2.5rem] flex-col items-center justify-center gap-0.5 rounded-sm border px-2 py-1.5 text-[10px] font-medium transition-colors",C?"border-primary/55 bg-background text-primary shadow-sm":"border-transparent text-muted-foreground hover:border-border/70 hover:bg-background/80 hover:text-foreground"),children:[m.jsx(E,{className:"h-3.5 w-3.5"}),T]},N)})}),m.jsxs("div",{className:"grid gap-3 sm:grid-cols-2",children:[m.jsxs("div",{children:[m.jsx("div",{className:"px-0.5 pb-1 text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Layout"}),m.jsx("div",{className:"space-y-1",children:Xx.map(({value:N,label:T,hint:E})=>{const C=u===N;return m.jsxs("button",{type:"button",onClick:()=>d(N),role:"menuitemradio","aria-checked":C,className:se("flex min-h-[2.75rem] w-full items-center gap-2 rounded-sm border px-2 py-1.5 text-left transition-colors",C?"border-primary/55 bg-primary/10 shadow-[inset_3px_0_0_hsl(var(--primary))]":"border-border/45 bg-background/45 hover:border-border hover:bg-muted/55"),children:[m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsx("div",{className:se("text-[11px] font-medium leading-tight",C?"text-primary":"text-foreground"),children:T}),m.jsx("div",{className:"mt-0.5 text-[9px] leading-tight text-muted-foreground",children:E})]}),C&&m.jsx(_s,{className:"h-3 w-3 text-primary"})]},N)})})]}),m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-1.5 px-0.5 pb-1 text-[8px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:[m.jsx(mN,{className:"h-2.5 w-2.5"}),"Palette"]}),m.jsx("div",{className:"space-y-1",children:Gx.map(({value:N,label:T,hint:E})=>{const C=o===N;return m.jsxs("button",{type:"button",onClick:()=>i(N),role:"menuitemradio","aria-checked":C,className:se("flex min-h-[2.75rem] w-full items-center gap-2 rounded-sm border px-2 py-1.5 text-left transition-colors",C?"border-primary/55 bg-primary/10 shadow-[inset_3px_0_0_hsl(var(--primary))]":"border-border/45 bg-background/45 hover:border-border hover:bg-muted/55"),children:[m.jsx(T3,{value:N}),m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsx("div",{className:se("text-[11px] font-medium leading-tight",C?"text-primary":"text-foreground"),children:T}),m.jsx("div",{className:"mt-0.5 text-[9px] leading-tight text-muted-foreground",children:E})]}),C&&m.jsx(_s,{className:"h-3 w-3 text-primary"})]},N)})})]})]})]})]})}function E3(n){var l;return((l=Xx.find(o=>o.value===n))==null?void 0:l.label)??n}function N3(n){var l;return((l=Gx.find(o=>o.value===n))==null?void 0:l.label)??n}function T3({value:n}){const l={porcelain:["hsl(212 76% 44%)","hsl(210 22% 98%)","hsl(174 42% 61%)"],warm:["hsl(35 88% 56%)","hsl(42 22% 97%)","hsl(160 60% 45%)"],finsight:["hsl(152 38% 32%)","hsl(150 14% 97%)","hsl(142 55% 58%)"],edge:["hsl(265 75% 55%)","hsl(260 12% 98%)","hsl(285 70% 65%)"]},[o,i,u]=l[n];return m.jsxs("div",{className:se("flex h-6 w-6 shrink-0 overflow-hidden border border-border/60 shadow-sm","rounded-sm"),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 C3(){var y,p;const{cluster:n,events:l,sseConnected:o}=y0(),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 py-2",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-xl px-3 py-2 sm:gap-3 sm:rounded-xl sm:px-4 sm:py-3",children:[m.jsx("div",{className:"flex min-w-0 items-center gap-4",children:m.jsxs(h0,{to:"/",className:"flex items-center gap-3",children:[m.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-sm 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-sm 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 h-10 items-center gap-2 rounded-sm border border-border/70 bg-background/70 px-3 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(G0,{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(l3,{connected:o,events:l,nodes:(n==null?void 0:n.nodes)??[],nodeNameById:h}),f&&m.jsx(Yn,{variant:"ghost",size:"icon",onClick:()=>d(x=>!x),"aria-label":u?"Close terminal":"Open terminal",title:u?"Close terminal":"Open terminal",className:se("rounded-sm bg-background/70 text-muted-foreground shadow-sm hover:bg-accent/72 hover:text-foreground",u&&"bg-primary/10 text-primary shadow-[inset_0_0_0_1px_hsl(var(--primary)/0.08)]"),children:m.jsx(T0,{className:"h-4 w-4"})}),m.jsx(z_,{}),m.jsx(w3,{})]})]})}),m.jsx("main",{className:se("min-h-0 flex-1 px-2 pb-2",f?"overflow-hidden":"overflow-y-auto"),children:m.jsx("div",{className:"mx-auto h-full min-h-0 max-w-[1760px]",children:m.jsx(d2,{context:{terminalOpen:u,setTerminalOpen:d}})})})]})]})}const Xv=v.lazy(async()=>({default:(await Kv(()=>import("./DashboardPage-CdCiYD4R.js").then(l=>l.D),__vite__mapDeps([0,1,2,3,4]))).DashboardPage})),A3=v.lazy(async()=>({default:(await Kv(()=>import("./SharedConversationPage-FgVTiQ2B.js"),__vite__mapDeps([5,1]))).SharedConversationPage}));function R3(){return m.jsx(U2,{children:m.jsx(v.Suspense,{fallback:m.jsx(_3,{}),children:m.jsxs(m2,{children:[m.jsx(Tl,{path:"/shared/tasks/:shareId",element:m.jsx(A3,{})}),m.jsxs(Tl,{element:m.jsx(vE,{children:m.jsx(C3,{})}),children:[m.jsx(Tl,{path:"/",element:m.jsx(Xv,{})}),m.jsx(Tl,{path:"/nodes",element:m.jsx(av,{to:"/",replace:!0})}),m.jsx(Tl,{path:"/tasks",element:m.jsx(av,{to:"/",replace:!0})}),m.jsx(Tl,{path:"/tasks/:id",element:m.jsx(Xv,{})})]})]})})})}function _3(){return m.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function j3(n){return m.jsx(HT,{className:"toaster group",style:{"--normal-bg":"hsl(var(--popover))","--normal-text":"hsl(var(--popover-foreground))","--normal-border":"hsl(var(--border))"},...n})}fw.createRoot(document.getElementById("root")).render(m.jsx(v.StrictMode,{children:m.jsxs(g3,{children:[m.jsx(R3,{}),m.jsx(j3,{})]})}));export{Gs as $,$E as A,Yn as B,_s as C,Tj as D,Y_ as E,KE as F,V_ as G,x0 as H,Lx as I,HR as J,pt as K,wj as L,ix as M,Cs as N,Vj as O,Ej as P,Bs as Q,rf as R,iN as S,Cj as T,Hs as U,Vs as V,$s as W,C0 as X,qs as Y,Ys as Z,Xs as _,qT as a,tj as a$,Kv as a0,z3 as a1,Ry as a2,A5 as a3,K3 as a4,T0 as a5,Ho as a6,VE as a7,Q3 as a8,Z3 as a9,mE as aA,lj as aB,H3 as aC,U3 as aD,jy as aE,B3 as aF,V3 as aG,W2 as aH,z_ as aI,rj as aJ,oj as aK,M3 as aL,$n as aM,r0 as aN,O3 as aO,y0 as aP,Lj as aQ,kj as aR,jj as aS,Oj as aT,Dj as aU,Mj as aV,F3 as aW,Aj as aX,B_ as aY,nj as aZ,aj as a_,P3 as aa,cN as ab,JE as ac,zj as ad,E0 as ae,Q_ as af,G0 as ag,PE as ah,uT as ai,Yj as aj,U_ as ak,$j as al,Rj as am,_j as an,zx as ao,Bj as ap,Uj as aq,Hj as ar,of as as,ij as at,sj as au,I3 as av,uE as aw,lE as ax,Sj as ay,xj as az,se as b,ej as b0,k3 as b1,L3 as b2,D3 as b3,Y3 as b4,mj as b5,fj as b6,dj as b7,cj as b8,uj as b9,hj as ba,L_ as bb,Pv as bc,zE as bd,vj as be,gj as bf,pj as bg,rN as bh,yj as bi,Nj as bj,bj as bk,Ve as c,q0 as d,X3 as e,J2 as f,q3 as g,$3 as h,DE as i,m as j,Nr as k,G3 as l,W3 as m,Bb as n,$f as o,Hb as p,qf as q,v as r,Zs as s,ft as t,mN as u,J3 as v,N5 as w,Ay as x,_y as y,qj as z};