meshy-node 0.4.7 → 0.4.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.
- package/README.md +1 -1
- package/dashboard/assets/{DashboardPage-D9Y-YlT8.js → DashboardPage-B95cJcig.js} +28 -28
- package/dashboard/assets/{DashboardShared-C7i9cRdE.js → DashboardShared-Dzi6RLOR.js} +2 -2
- package/dashboard/assets/{DiffTab-CNxzfPY1.js → DiffTab-D_4yya6_.js} +2 -2
- package/dashboard/assets/{FilesTab-Dvib04o-.js → FilesTab-zEzcYLxH.js} +1 -1
- package/dashboard/assets/{PreviewTab-D35bIOEK.js → PreviewTab-Bvyz2avl.js} +1 -1
- package/dashboard/assets/{SharedConversationPage-DaFHobVu.js → SharedConversationPage-DSxtiljC.js} +3 -3
- package/dashboard/assets/{file-BxG0OwCA.js → file-D35pKX6H.js} +1 -1
- package/dashboard/assets/{folder-6mjPM2Gc.js → folder-D9Gz877I.js} +1 -1
- package/dashboard/assets/index-CD86rVLc.js +301 -0
- package/dashboard/assets/{play-CSZ3EHkb.js → play-DK-ljFJ6.js} +1 -1
- package/dashboard/index.html +1 -1
- package/package.json +1 -1
- package/runtime-metadata.json +5 -5
- package/dashboard/assets/index-BTOpELYB.js +0 -301
|
@@ -0,0 +1,301 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/DashboardPage-B95cJcig.js","assets/DashboardShared-Dzi6RLOR.js","assets/folder-D9Gz877I.js","assets/play-DK-ljFJ6.js","assets/SharedConversationPage-DSxtiljC.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
function XS(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 Bv(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var pd={exports:{}},jo={};/**
|
|
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 Mg;function QS(){if(Mg)return jo;Mg=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 jo.Fragment=l,jo.jsx=o,jo.jsxs=o,jo}var Dg;function KS(){return Dg||(Dg=1,pd.exports=QS()),pd.exports}var m=KS(),gd={exports:{}},Ne={};/**
|
|
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 kg;function ZS(){if(kg)return Ne;kg=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"),v=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),S=Symbol.iterator;function E(_){return _===null||typeof _!="object"?null:(_=S&&_[S]||_["@@iterator"],typeof _=="function"?_:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N=Object.assign,T={};function C(_,X,K){this.props=_,this.context=X,this.refs=T,this.updater=K||R}C.prototype.isReactComponent={},C.prototype.setState=function(_,X){if(typeof _!="object"&&typeof _!="function"&&_!=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,_,X,"setState")},C.prototype.forceUpdate=function(_){this.updater.enqueueForceUpdate(this,_,"forceUpdate")};function j(){}j.prototype=C.prototype;function M(_,X,K){this.props=_,this.context=X,this.refs=T,this.updater=K||R}var k=M.prototype=new j;k.constructor=M,N(k,C.prototype),k.isPureReactComponent=!0;var q=Array.isArray;function $(){}var U={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function ne(_,X,K){var J=K.ref;return{$$typeof:n,type:_,key:X,ref:J!==void 0?J:null,props:K}}function de(_,X){return ne(_.type,X,_.props)}function ve(_){return typeof _=="object"&&_!==null&&_.$$typeof===n}function oe(_){var X={"=":"=0",":":"=2"};return"$"+_.replace(/[=:]/g,function(K){return X[K]})}var se=/\/+/g;function le(_,X){return typeof _=="object"&&_!==null&&_.key!=null?oe(""+_.key):X.toString(36)}function ce(_){switch(_.status){case"fulfilled":return _.value;case"rejected":throw _.reason;default:switch(typeof _.status=="string"?_.then($,$):(_.status="pending",_.then(function(X){_.status==="pending"&&(_.status="fulfilled",_.value=X)},function(X){_.status==="pending"&&(_.status="rejected",_.reason=X)})),_.status){case"fulfilled":return _.value;case"rejected":throw _.reason}}throw _}function O(_,X,K,J,W){var ae=typeof _;(ae==="undefined"||ae==="boolean")&&(_=null);var ee=!1;if(_===null)ee=!0;else switch(ae){case"bigint":case"string":case"number":ee=!0;break;case"object":switch(_.$$typeof){case n:case l:ee=!0;break;case x:return ee=_._init,O(ee(_._payload),X,K,J,W)}}if(ee)return W=W(_),ee=J===""?"."+le(_,0):J,q(W)?(K="",ee!=null&&(K=ee.replace(se,"$&/")+"/"),O(W,X,K,"",function(Te){return Te})):W!=null&&(ve(W)&&(W=de(W,K+(W.key==null||_&&_.key===W.key?"":(""+W.key).replace(se,"$&/")+"/")+ee)),X.push(W)),1;ee=0;var re=J===""?".":J+":";if(q(_))for(var ue=0;ue<_.length;ue++)J=_[ue],ae=re+le(J,ue),ee+=O(J,X,K,ae,W);else if(ue=E(_),typeof ue=="function")for(_=ue.call(_),ue=0;!(J=_.next()).done;)J=J.value,ae=re+le(J,ue++),ee+=O(J,X,K,ae,W);else if(ae==="object"){if(typeof _.then=="function")return O(ce(_),X,K,J,W);throw X=String(_),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(_).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return ee}function G(_,X,K){if(_==null)return _;var J=[],W=0;return O(_,J,"","",function(ae){return X.call(K,ae,W++)}),J}function I(_){if(_._status===-1){var X=_._result;X=X(),X.then(function(K){(_._status===0||_._status===-1)&&(_._status=1,_._result=K)},function(K){(_._status===0||_._status===-1)&&(_._status=2,_._result=K)}),_._status===-1&&(_._status=0,_._result=X)}if(_._status===1)return _._result.default;throw _._result}var ie=typeof reportError=="function"?reportError:function(_){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_),error:_});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",_);return}console.error(_)},F={map:G,forEach:function(_,X,K){G(_,function(){X.apply(this,arguments)},K)},count:function(_){var X=0;return G(_,function(){X++}),X},toArray:function(_){return G(_,function(X){return X})||[]},only:function(_){if(!ve(_))throw Error("React.Children.only expected to receive a single React element child.");return _}};return Ne.Activity=p,Ne.Children=F,Ne.Component=C,Ne.Fragment=o,Ne.Profiler=u,Ne.PureComponent=M,Ne.StrictMode=i,Ne.Suspense=v,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=U,Ne.__COMPILER_RUNTIME={__proto__:null,c:function(_){return U.H.useMemoCache(_)}},Ne.cache=function(_){return function(){return _.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function(_,X,K){if(_==null)throw Error("The argument must be a React element, but you passed "+_+".");var J=N({},_.props),W=_.key;if(X!=null)for(ae in X.key!==void 0&&(W=""+X.key),X)!V.call(X,ae)||ae==="key"||ae==="__self"||ae==="__source"||ae==="ref"&&X.ref===void 0||(J[ae]=X[ae]);var ae=arguments.length-2;if(ae===1)J.children=K;else if(1<ae){for(var ee=Array(ae),re=0;re<ae;re++)ee[re]=arguments[re+2];J.children=ee}return ne(_.type,W,J)},Ne.createContext=function(_){return _={$$typeof:f,_currentValue:_,_currentValue2:_,_threadCount:0,Provider:null,Consumer:null},_.Provider=_,_.Consumer={$$typeof:d,_context:_},_},Ne.createElement=function(_,X,K){var J,W={},ae=null;if(X!=null)for(J in X.key!==void 0&&(ae=""+X.key),X)V.call(X,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(W[J]=X[J]);var ee=arguments.length-2;if(ee===1)W.children=K;else if(1<ee){for(var re=Array(ee),ue=0;ue<ee;ue++)re[ue]=arguments[ue+2];W.children=re}if(_&&_.defaultProps)for(J in ee=_.defaultProps,ee)W[J]===void 0&&(W[J]=ee[J]);return ne(_,ae,W)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function(_){return{$$typeof:h,render:_}},Ne.isValidElement=ve,Ne.lazy=function(_){return{$$typeof:x,_payload:{_status:-1,_result:_},_init:I}},Ne.memo=function(_,X){return{$$typeof:g,type:_,compare:X===void 0?null:X}},Ne.startTransition=function(_){var X=U.T,K={};U.T=K;try{var J=_(),W=U.S;W!==null&&W(K,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then($,ie)}catch(ae){ie(ae)}finally{X!==null&&K.types!==null&&(X.types=K.types),U.T=X}},Ne.unstable_useCacheRefresh=function(){return U.H.useCacheRefresh()},Ne.use=function(_){return U.H.use(_)},Ne.useActionState=function(_,X,K){return U.H.useActionState(_,X,K)},Ne.useCallback=function(_,X){return U.H.useCallback(_,X)},Ne.useContext=function(_){return U.H.useContext(_)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function(_,X){return U.H.useDeferredValue(_,X)},Ne.useEffect=function(_,X){return U.H.useEffect(_,X)},Ne.useEffectEvent=function(_){return U.H.useEffectEvent(_)},Ne.useId=function(){return U.H.useId()},Ne.useImperativeHandle=function(_,X,K){return U.H.useImperativeHandle(_,X,K)},Ne.useInsertionEffect=function(_,X){return U.H.useInsertionEffect(_,X)},Ne.useLayoutEffect=function(_,X){return U.H.useLayoutEffect(_,X)},Ne.useMemo=function(_,X){return U.H.useMemo(_,X)},Ne.useOptimistic=function(_,X){return U.H.useOptimistic(_,X)},Ne.useReducer=function(_,X,K){return U.H.useReducer(_,X,K)},Ne.useRef=function(_){return U.H.useRef(_)},Ne.useState=function(_){return U.H.useState(_)},Ne.useSyncExternalStore=function(_,X,K){return U.H.useSyncExternalStore(_,X,K)},Ne.useTransition=function(){return U.H.useTransition()},Ne.version="19.2.4",Ne}var zg;function tf(){return zg||(zg=1,gd.exports=ZS()),gd.exports}var y=tf();const te=Bv(y),nf=XS({__proto__:null,default:te},[y]);var vd={exports:{}},Oo={},yd={exports:{}},bd={};/**
|
|
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 Lg;function PS(){return Lg||(Lg=1,(function(n){function l(O,G){var I=O.length;O.push(G);e:for(;0<I;){var ie=I-1>>>1,F=O[ie];if(0<u(F,G))O[ie]=G,O[I]=F,I=ie;else break e}}function o(O){return O.length===0?null:O[0]}function i(O){if(O.length===0)return null;var G=O[0],I=O.pop();if(I!==G){O[0]=I;e:for(var ie=0,F=O.length,_=F>>>1;ie<_;){var X=2*(ie+1)-1,K=O[X],J=X+1,W=O[J];if(0>u(K,I))J<F&&0>u(W,K)?(O[ie]=W,O[J]=I,ie=J):(O[ie]=K,O[X]=I,ie=X);else if(J<F&&0>u(W,I))O[ie]=W,O[J]=I,ie=J;else break e}}return G}function u(O,G){var I=O.sortIndex-G.sortIndex;return I!==0?I:O.id-G.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 v=[],g=[],x=1,p=null,S=3,E=!1,R=!1,N=!1,T=!1,C=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;function k(O){for(var G=o(g);G!==null;){if(G.callback===null)i(g);else if(G.startTime<=O)i(g),G.sortIndex=G.expirationTime,l(v,G);else break;G=o(g)}}function q(O){if(N=!1,k(O),!R)if(o(v)!==null)R=!0,$||($=!0,oe());else{var G=o(g);G!==null&&ce(q,G.startTime-O)}}var $=!1,U=-1,V=5,ne=-1;function de(){return T?!0:!(n.unstable_now()-ne<V)}function ve(){if(T=!1,$){var O=n.unstable_now();ne=O;var G=!0;try{e:{R=!1,N&&(N=!1,j(U),U=-1),E=!0;var I=S;try{t:{for(k(O),p=o(v);p!==null&&!(p.expirationTime>O&&de());){var ie=p.callback;if(typeof ie=="function"){p.callback=null,S=p.priorityLevel;var F=ie(p.expirationTime<=O);if(O=n.unstable_now(),typeof F=="function"){p.callback=F,k(O),G=!0;break t}p===o(v)&&i(v),k(O)}else i(v);p=o(v)}if(p!==null)G=!0;else{var _=o(g);_!==null&&ce(q,_.startTime-O),G=!1}}break e}finally{p=null,S=I,E=!1}G=void 0}}finally{G?oe():$=!1}}}var oe;if(typeof M=="function")oe=function(){M(ve)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,le=se.port2;se.port1.onmessage=ve,oe=function(){le.postMessage(null)}}else oe=function(){C(ve,0)};function ce(O,G){U=C(function(){O(n.unstable_now())},G)}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 S},n.unstable_next=function(O){switch(S){case 1:case 2:case 3:var G=3;break;default:G=S}var I=S;S=G;try{return O()}finally{S=I}},n.unstable_requestPaint=function(){T=!0},n.unstable_runWithPriority=function(O,G){switch(O){case 1:case 2:case 3:case 4:case 5:break;default:O=3}var I=S;S=O;try{return G()}finally{S=I}},n.unstable_scheduleCallback=function(O,G,I){var ie=n.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?ie+I:ie):I=ie,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:G,priorityLevel:O,startTime:I,expirationTime:F,sortIndex:-1},I>ie?(O.sortIndex=I,l(g,O),o(v)===null&&O===o(g)&&(N?(j(U),U=-1):N=!0,ce(q,I-ie))):(O.sortIndex=F,l(v,O),R||E||(R=!0,$||($=!0,oe()))),O},n.unstable_shouldYield=de,n.unstable_wrapCallback=function(O){var G=S;return function(){var I=S;S=G;try{return O.apply(this,arguments)}finally{S=I}}}})(bd)),bd}var Ug;function IS(){return Ug||(Ug=1,yd.exports=PS()),yd.exports}var xd={exports:{}},jt={};/**
|
|
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 Bg;function FS(){if(Bg)return jt;Bg=1;var n=tf();function l(v){var g="https://react.dev/errors/"+v;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)g+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+v+"; visit "+g+" 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(v,g,x){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:u,key:p==null?null:""+p,children:v,containerInfo:g,implementation:x}}var f=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(v,g){if(v==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return jt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,jt.createPortal=function(v,g){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(l(299));return d(v,g,null,x)},jt.flushSync=function(v){var g=f.T,x=i.p;try{if(f.T=null,i.p=2,v)return v()}finally{f.T=g,i.p=x,i.d.f()}},jt.preconnect=function(v,g){typeof v=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,i.d.C(v,g))},jt.prefetchDNS=function(v){typeof v=="string"&&i.d.D(v)},jt.preinit=function(v,g){if(typeof v=="string"&&g&&typeof g.as=="string"){var x=g.as,p=h(x,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,E=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;x==="style"?i.d.S(v,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:p,integrity:S,fetchPriority:E}):x==="script"&&i.d.X(v,{crossOrigin:p,integrity:S,fetchPriority:E,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},jt.preinitModule=function(v,g){if(typeof v=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var x=h(g.as,g.crossOrigin);i.d.M(v,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&i.d.M(v)},jt.preload=function(v,g){if(typeof v=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var x=g.as,p=h(x,g.crossOrigin);i.d.L(v,x,{crossOrigin:p,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},jt.preloadModule=function(v,g){if(typeof v=="string")if(g){var x=h(g.as,g.crossOrigin);i.d.m(v,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else i.d.m(v)},jt.requestFormReset=function(v){i.d.r(v)},jt.unstable_batchedUpdates=function(v,g){return v(g)},jt.useFormState=function(v,g,x){return f.H.useFormState(v,g,x)},jt.useFormStatus=function(){return f.H.useHostTransitionStatus()},jt.version="19.2.4",jt}var Hg;function Hv(){if(Hg)return xd.exports;Hg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(l){console.error(l)}}return n(),xd.exports=FS(),xd.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 Vg;function JS(){if(Vg)return Oo;Vg=1;var n=IS(),l=tf(),o=Hv();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 v(e){if(d(e)!==e)throw Error(i(188))}function g(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 v(s),e;if(c===r)return v(s),t;c=c.sibling}throw Error(i(188))}if(a.return!==r.return)a=s,r=c;else{for(var b=!1,w=s.child;w;){if(w===a){b=!0,a=s,r=c;break}if(w===r){b=!0,r=s,a=c;break}w=w.sibling}if(!b){for(w=c.child;w;){if(w===a){b=!0,a=c,r=s;break}if(w===r){b=!0,r=c,a=s;break}w=w.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 p=Object.assign,S=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),M=Symbol.for("react.context"),k=Symbol.for("react.forward_ref"),q=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),ne=Symbol.for("react.activity"),de=Symbol.for("react.memo_cache_sentinel"),ve=Symbol.iterator;function oe(e){return e===null||typeof e!="object"?null:(e=ve&&e[ve]||e["@@iterator"],typeof e=="function"?e:null)}var se=Symbol.for("react.client.reference");function le(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case N:return"Fragment";case C:return"Profiler";case T:return"StrictMode";case q:return"Suspense";case $:return"SuspenseList";case ne:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case R:return"Portal";case M:return e.displayName||"Context";case j: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 U:return t=e.displayName||null,t!==null?t:le(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return le(e(t))}catch{}}return null}var ce=Array.isArray,O=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=o.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I={pending:!1,data:null,method:null,action:null},ie=[],F=-1;function _(e){return{current:e}}function X(e){0>F||(e.current=ie[F],ie[F]=null,F--)}function K(e,t){F++,ie[F]=e.current,e.current=t}var J=_(null),W=_(null),ae=_(null),ee=_(null);function re(e,t){switch(K(ae,t),K(W,e),K(J,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?tg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=tg(t),e=ng(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(J),K(J,e)}function ue(){X(J),X(W),X(ae)}function Te(e){e.memoizedState!==null&&K(ee,e);var t=J.current,a=ng(t,e.type);t!==a&&(K(W,e),K(J,a))}function we(e){W.current===e&&(X(J),X(W)),ee.current===e&&(X(ee),To._currentValue=I)}var Se,Je;function $e(e){if(Se===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Se=t&&t[1]||"",Je=-1<a.stack.indexOf(`
|
|
43
|
+
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
44
|
+
`+Se+e+Je}var kt=!1;function be(e,t){if(!e||kt)return"";kt=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var P=function(){throw Error()};if(Object.defineProperty(P.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(P,[])}catch(Y){var H=Y}Reflect.construct(e,[],P)}else{try{P.call()}catch(Y){H=Y}e.call(P.prototype)}}else{try{throw Error()}catch(Y){H=Y}(P=e())&&typeof P.catch=="function"&&P.catch(function(){})}}catch(Y){if(Y&&H&&typeof Y.stack=="string")return[Y.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],w=c[1];if(b&&w){var A=b.split(`
|
|
45
|
+
`),B=w.split(`
|
|
46
|
+
`);for(s=r=0;r<A.length&&!A[r].includes("DetermineComponentFrameRoot");)r++;for(;s<B.length&&!B[s].includes("DetermineComponentFrameRoot");)s++;if(r===A.length||s===B.length)for(r=A.length-1,s=B.length-1;1<=r&&0<=s&&A[r]!==B[s];)s--;for(;1<=r&&0<=s;r--,s--)if(A[r]!==B[s]){if(r!==1||s!==1)do if(r--,s--,0>s||A[r]!==B[s]){var Q=`
|
|
47
|
+
`+A[r].replace(" at new "," at ");return e.displayName&&Q.includes("<anonymous>")&&(Q=Q.replace("<anonymous>",e.displayName)),Q}while(1<=r&&0<=s);break}}}finally{kt=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?$e(a):""}function Ge(e,t){switch(e.tag){case 26:case 27:case 5:return $e(e.type);case 16:return $e("Lazy");case 13:return e.child!==t&&t!==null?$e("Suspense Fallback"):$e("Suspense");case 19:return $e("SuspenseList");case 0:case 15:return be(e.type,!1);case 11:return be(e.type.render,!1);case 1:return be(e.type,!0);case 31:return $e("Activity");default:return""}}function it(e){try{var t="",a=null;do t+=Ge(e,a),a=e,e=e.return;while(e);return t}catch(r){return`
|
|
48
|
+
Error generating stack: `+r.message+`
|
|
49
|
+
`+r.stack}}var We=Object.prototype.hasOwnProperty,Kt=n.unstable_scheduleCallback,Rn=n.unstable_cancelCallback,Be=n.unstable_shouldYield,zt=n.unstable_requestPaint,rt=n.unstable_now,Kn=n.unstable_getCurrentPriorityLevel,al=n.unstable_ImmediatePriority,Qo=n.unstable_UserBlockingPriority,ll=n.unstable_NormalPriority,Br=n.unstable_LowPriority,Zn=n.unstable_IdlePriority,Ko=n.log,ba=n.unstable_setDisableYieldValue,rl=null,Mt=null;function vn(e){if(typeof Ko=="function"&&ba(e),Mt&&typeof Mt.setStrictMode=="function")try{Mt.setStrictMode(rl,e)}catch{}}var At=Math.clz32?Math.clz32:An,lc=Math.log,Hr=Math.LN2;function An(e){return e>>>=0,e===0?32:31-(lc(e)/Hr|0)|0}var kl=256,zl=262144,ol=4194304;function _n(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 Ee(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 w=r&134217727;return w!==0?(r=w&~c,r!==0?s=_n(r):(b&=w,b!==0?s=_n(b):a||(a=w&~e,a!==0&&(s=_n(a))))):(w=r&~c,w!==0?s=_n(w):b!==0?s=_n(b):a||(a=r&~e,a!==0&&(s=_n(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 nt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function bt(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 _t(){var e=ol;return ol<<=1,(ol&62914560)===0&&(ol=4194304),e}function xa(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function ot(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Lt(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 w=e.entanglements,A=e.expirationTimes,B=e.hiddenUpdates;for(a=b&~a;0<a;){var Q=31-At(a),P=1<<Q;w[Q]=0,A[Q]=-1;var H=B[Q];if(H!==null)for(B[Q]=null,Q=0;Q<H.length;Q++){var Y=H[Q];Y!==null&&(Y.lane&=-536870913)}a&=~P}r!==0&&il(e,r,0),c!==0&&s===0&&e.tag!==0&&(e.suspendedLanes|=c&~(b&~t))}function il(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-At(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|a&261930}function Ut(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var r=31-At(a),s=1<<r;s&t|e[r]&t&&(e[r]|=t),a&=~s}}function Bt(e,t){var a=t&-t;return a=(a&42)!==0?1:Ll(a),(a&(e.suspendedLanes|t))!==0?0:a}function Ll(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 yn(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function rc(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:Cg(e.type))}function qf(e,t){var a=G.p;try{return G.p=e,t()}finally{G.p=a}}var Sa=Math.random().toString(36).slice(2),Et="__reactFiber$"+Sa,Ht="__reactProps$"+Sa,Ul="__reactContainer$"+Sa,oc="__reactEvents$"+Sa,kx="__reactListeners$"+Sa,zx="__reactHandles$"+Sa,Yf="__reactResources$"+Sa,Vr="__reactMarker$"+Sa;function ic(e){delete e[Et],delete e[Ht],delete e[oc],delete e[kx],delete e[zx]}function Bl(e){var t=e[Et];if(t)return t;for(var a=e.parentNode;a;){if(t=a[Ul]||a[Et]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=cg(e);e!==null;){if(a=e[Et])return a;e=cg(e)}return t}e=a,a=e.parentNode}return null}function Hl(e){if(e=e[Et]||e[Ul]){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 Vl(e){var t=e[Yf];return t||(t=e[Yf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function xt(e){e[Vr]=!0}var $f=new Set,Gf={};function sl(e,t){ql(e,t),ql(e+"Capture",t)}function ql(e,t){for(Gf[e]=t,e=0;e<t.length;e++)$f.add(t[e])}var Lx=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]*$"),Xf={},Qf={};function Ux(e){return We.call(Qf,e)?!0:We.call(Xf,e)?!1:Lx.test(e)?Qf[e]=!0:(Xf[e]=!0,!1)}function Zo(e,t,a){if(Ux(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 Po(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 Pn(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 ln(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Bx(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 sc(e){if(!e._valueTracker){var t=Kf(e)?"checked":"value";e._valueTracker=Bx(e,t,""+e[t])}}function Zf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),r="";return e&&(r=Kf(e)?e.checked?"true":"false":e.value),e=r,e!==a?(t.setValue(e),!0):!1}function Io(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 Hx=/[\n"\\]/g;function rn(e){return e.replace(Hx,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function cc(e,t,a,r,s,c,b,w){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=""+ln(t)):e.value!==""+ln(t)&&(e.value=""+ln(t)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),t!=null?uc(e,b,ln(t)):a!=null?uc(e,b,ln(a)):r!=null&&e.removeAttribute("value"),s==null&&c!=null&&(e.defaultChecked=!!c),s!=null&&(e.checked=s&&typeof s!="function"&&typeof s!="symbol"),w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?e.name=""+ln(w):e.removeAttribute("name")}function Pf(e,t,a,r,s,c,b,w){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)){sc(e);return}a=a!=null?""+ln(a):"",t=t!=null?""+ln(t):a,w||t===e.value||(e.value=t),e.defaultValue=t}r=r??s,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=w?e.checked:!!r,e.defaultChecked=!!r,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b),sc(e)}function uc(e,t,a){t==="number"&&Io(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Yl(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=""+ln(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 If(e,t,a){if(t!=null&&(t=""+ln(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+ln(a):""}function Ff(e,t,a,r){if(t==null){if(r!=null){if(a!=null)throw Error(i(92));if(ce(r)){if(1<r.length)throw Error(i(93));r=r[0]}a=r}a==null&&(a=""),t=a}a=ln(t),e.defaultValue=a,r=e.textContent,r===a&&r!==""&&r!==null&&(e.value=r),sc(e)}function $l(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var Vx=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 Jf(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||Vx.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function Wf(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&&Jf(e,s,r)}else for(var c in t)t.hasOwnProperty(c)&&Jf(e,c,t[c])}function dc(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var qx=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Yx=/^[\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 Fo(e){return Yx.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function In(){}var fc=null;function mc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Gl=null,Xl=null;function em(e){var t=Hl(e);if(t&&(e=t.stateNode)){var a=e[Ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(cc(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="'+rn(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var r=a[t];if(r!==e&&r.form===e.form){var s=r[Ht]||null;if(!s)throw Error(i(90));cc(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&&Zf(r)}break e;case"textarea":If(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Yl(e,!!a.multiple,t,!1)}}}var hc=!1;function tm(e,t,a){if(hc)return e(t,a);hc=!0;try{var r=e(t);return r}finally{if(hc=!1,(Gl!==null||Xl!==null)&&(Bi(),Gl&&(t=Gl,e=Xl,Xl=Gl=null,em(t),e)))for(t=0;t<e.length;t++)em(e[t])}}function Yr(e,t){var a=e.stateNode;if(a===null)return null;var r=a[Ht]||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 Fn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),pc=!1;if(Fn)try{var $r={};Object.defineProperty($r,"passive",{get:function(){pc=!0}}),window.addEventListener("test",$r,$r),window.removeEventListener("test",$r,$r)}catch{pc=!1}var wa=null,gc=null,Jo=null;function nm(){if(Jo)return Jo;var e,t=gc,a=t.length,r,s="value"in wa?wa.value:wa.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 Jo=s.slice(e,1<r?1-r:void 0)}function Wo(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 ei(){return!0}function am(){return!1}function Vt(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 w in e)e.hasOwnProperty(w)&&(a=e[w],this[w]=a?a(c):c[w]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ei:am,this.isPropagationStopped=am,this}return p(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=ei)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ei)},persist:function(){},isPersistent:ei}),t}var cl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ti=Vt(cl),Gr=p({},cl,{view:0,detail:0}),$x=Vt(Gr),vc,yc,Xr,ni=p({},Gr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:xc,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!==Xr&&(Xr&&e.type==="mousemove"?(vc=e.screenX-Xr.screenX,yc=e.screenY-Xr.screenY):yc=vc=0,Xr=e),vc)},movementY:function(e){return"movementY"in e?e.movementY:yc}}),lm=Vt(ni),Gx=p({},ni,{dataTransfer:0}),Xx=Vt(Gx),Qx=p({},Gr,{relatedTarget:0}),bc=Vt(Qx),Kx=p({},cl,{animationName:0,elapsedTime:0,pseudoElement:0}),Zx=Vt(Kx),Px=p({},cl,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Ix=Vt(Px),Fx=p({},cl,{data:0}),rm=Vt(Fx),Jx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wx={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"},e1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t1(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=e1[e])?!!t[e]:!1}function xc(){return t1}var n1=p({},Gr,{key:function(e){if(e.key){var t=Jx[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Wx[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:xc,charCode:function(e){return e.type==="keypress"?Wo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),a1=Vt(n1),l1=p({},ni,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),om=Vt(l1),r1=p({},Gr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:xc}),o1=Vt(r1),i1=p({},cl,{propertyName:0,elapsedTime:0,pseudoElement:0}),s1=Vt(i1),c1=p({},ni,{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}),u1=Vt(c1),d1=p({},cl,{newState:0,oldState:0}),f1=Vt(d1),m1=[9,13,27,32],Sc=Fn&&"CompositionEvent"in window,Qr=null;Fn&&"documentMode"in document&&(Qr=document.documentMode);var h1=Fn&&"TextEvent"in window&&!Qr,im=Fn&&(!Sc||Qr&&8<Qr&&11>=Qr),sm=" ",cm=!1;function um(e,t){switch(e){case"keyup":return m1.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function dm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ql=!1;function p1(e,t){switch(e){case"compositionend":return dm(t);case"keypress":return t.which!==32?null:(cm=!0,sm);case"textInput":return e=t.data,e===sm&&cm?null:e;default:return null}}function g1(e,t){if(Ql)return e==="compositionend"||!Sc&&um(e,t)?(e=nm(),Jo=gc=wa=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 im&&t.locale!=="ko"?null:t.data;default:return null}}var v1={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 fm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!v1[e.type]:t==="textarea"}function mm(e,t,a,r){Gl?Xl?Xl.push(r):Xl=[r]:Gl=r,t=Xi(t,"onChange"),0<t.length&&(a=new ti("onChange","change",null,a,r),e.push({event:a,listeners:t}))}var Kr=null,Zr=null;function y1(e){Pp(e,0)}function ai(e){var t=qr(e);if(Zf(t))return e}function hm(e,t){if(e==="change")return t}var pm=!1;if(Fn){var wc;if(Fn){var Ec="oninput"in document;if(!Ec){var gm=document.createElement("div");gm.setAttribute("oninput","return;"),Ec=typeof gm.oninput=="function"}wc=Ec}else wc=!1;pm=wc&&(!document.documentMode||9<document.documentMode)}function vm(){Kr&&(Kr.detachEvent("onpropertychange",ym),Zr=Kr=null)}function ym(e){if(e.propertyName==="value"&&ai(Zr)){var t=[];mm(t,Zr,e,mc(e)),tm(y1,t)}}function b1(e,t,a){e==="focusin"?(vm(),Kr=t,Zr=a,Kr.attachEvent("onpropertychange",ym)):e==="focusout"&&vm()}function x1(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ai(Zr)}function S1(e,t){if(e==="click")return ai(t)}function w1(e,t){if(e==="input"||e==="change")return ai(t)}function E1(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Zt=typeof Object.is=="function"?Object.is:E1;function Pr(e,t){if(Zt(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(!We.call(t,s)||!Zt(e[s],t[s]))return!1}return!0}function bm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xm(e,t){var a=bm(e);e=0;for(var r;a;){if(a.nodeType===3){if(r=e+a.textContent.length,e<=t&&r>=t)return{node:a,offset:t-e};e=r}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=bm(a)}}function Sm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function wm(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Io(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=Io(e.document)}return t}function Nc(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 N1=Fn&&"documentMode"in document&&11>=document.documentMode,Kl=null,Cc=null,Ir=null,Tc=!1;function Em(e,t,a){var r=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Tc||Kl==null||Kl!==Io(r)||(r=Kl,"selectionStart"in r&&Nc(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}),Ir&&Pr(Ir,r)||(Ir=r,r=Xi(Cc,"onSelect"),0<r.length&&(t=new ti("onSelect","select",null,t,a),e.push({event:t,listeners:r}),t.target=Kl)))}function ul(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var Zl={animationend:ul("Animation","AnimationEnd"),animationiteration:ul("Animation","AnimationIteration"),animationstart:ul("Animation","AnimationStart"),transitionrun:ul("Transition","TransitionRun"),transitionstart:ul("Transition","TransitionStart"),transitioncancel:ul("Transition","TransitionCancel"),transitionend:ul("Transition","TransitionEnd")},Rc={},Nm={};Fn&&(Nm=document.createElement("div").style,"AnimationEvent"in window||(delete Zl.animationend.animation,delete Zl.animationiteration.animation,delete Zl.animationstart.animation),"TransitionEvent"in window||delete Zl.transitionend.transition);function dl(e){if(Rc[e])return Rc[e];if(!Zl[e])return e;var t=Zl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Nm)return Rc[e]=t[a];return e}var Cm=dl("animationend"),Tm=dl("animationiteration"),Rm=dl("animationstart"),C1=dl("transitionrun"),T1=dl("transitionstart"),R1=dl("transitioncancel"),Am=dl("transitionend"),_m=new Map,Ac="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(" ");Ac.push("scrollEnd");function bn(e,t){_m.set(e,t),sl(t,[e])}var li=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)},on=[],Pl=0,_c=0;function ri(){for(var e=Pl,t=_c=Pl=0;t<e;){var a=on[t];on[t++]=null;var r=on[t];on[t++]=null;var s=on[t];on[t++]=null;var c=on[t];if(on[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&&jm(a,s,c)}}function oi(e,t,a,r){on[Pl++]=e,on[Pl++]=t,on[Pl++]=a,on[Pl++]=r,_c|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function jc(e,t,a,r){return oi(e,t,a,r),ii(e)}function fl(e,t){return oi(e,null,null,t),ii(e)}function jm(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-At(a),e=c.hiddenUpdates,r=e[s],r===null?e[s]=[t]:r.push(t),t.lane=a|536870912),c):null}function ii(e){if(50<bo)throw bo=0,Hu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Il={};function A1(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 Pt(e,t,a,r){return new A1(e,t,a,r)}function Oc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Jn(e,t){var a=e.alternate;return a===null?(a=Pt(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 Om(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 si(e,t,a,r,s,c){var b=0;if(r=e,typeof e=="function")Oc(e)&&(b=1);else if(typeof e=="string")b=DS(e,a,J.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case ne:return e=Pt(31,a,t,s),e.elementType=ne,e.lanes=c,e;case N:return ml(a.children,s,c,t);case T:b=8,s|=24;break;case C:return e=Pt(12,a,t,s|2),e.elementType=C,e.lanes=c,e;case q:return e=Pt(13,a,t,s),e.elementType=q,e.lanes=c,e;case $:return e=Pt(19,a,t,s),e.elementType=$,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case M:b=10;break e;case j:b=9;break e;case k:b=11;break e;case U: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=Pt(b,a,t,s),t.elementType=e,t.type=r,t.lanes=c,t}function ml(e,t,a,r){return e=Pt(7,e,r,t),e.lanes=a,e}function Mc(e,t,a){return e=Pt(6,e,null,t),e.lanes=a,e}function Mm(e){var t=Pt(18,null,null,0);return t.stateNode=e,t}function Dc(e,t,a){return t=Pt(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Dm=new WeakMap;function sn(e,t){if(typeof e=="object"&&e!==null){var a=Dm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:it(t)},Dm.set(e,t),t)}return{value:e,source:t,stack:it(t)}}var Fl=[],Jl=0,ci=null,Fr=0,cn=[],un=0,Ea=null,jn=1,On="";function Wn(e,t){Fl[Jl++]=Fr,Fl[Jl++]=ci,ci=e,Fr=t}function km(e,t,a){cn[un++]=jn,cn[un++]=On,cn[un++]=Ea,Ea=e;var r=jn;e=On;var s=32-At(r)-1;r&=~(1<<s),a+=1;var c=32-At(t)+s;if(30<c){var b=s-s%5;c=(r&(1<<b)-1).toString(32),r>>=b,s-=b,jn=1<<32-At(t)+s|a<<s|r,On=c+e}else jn=1<<c|a<<s|r,On=e}function kc(e){e.return!==null&&(Wn(e,1),km(e,1,0))}function zc(e){for(;e===ci;)ci=Fl[--Jl],Fl[Jl]=null,Fr=Fl[--Jl],Fl[Jl]=null;for(;e===Ea;)Ea=cn[--un],cn[un]=null,On=cn[--un],cn[un]=null,jn=cn[--un],cn[un]=null}function zm(e,t){cn[un++]=jn,cn[un++]=On,cn[un++]=Ea,jn=t.id,On=t.overflow,Ea=e}var Nt=null,et=null,ze=!1,Na=null,dn=!1,Lc=Error(i(519));function Ca(e){var t=Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Jr(sn(t,e)),Lc}function Lm(e){var t=e.stateNode,a=e.type,r=e.memoizedProps;switch(t[Et]=e,t[Ht]=r,a){case"dialog":Oe("cancel",t),Oe("close",t);break;case"iframe":case"object":case"embed":Oe("load",t);break;case"video":case"audio":for(a=0;a<So.length;a++)Oe(So[a],t);break;case"source":Oe("error",t);break;case"img":case"image":case"link":Oe("error",t),Oe("load",t);break;case"details":Oe("toggle",t);break;case"input":Oe("invalid",t),Pf(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Oe("invalid",t);break;case"textarea":Oe("invalid",t),Ff(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||Wp(t.textContent,a)?(r.popover!=null&&(Oe("beforetoggle",t),Oe("toggle",t)),r.onScroll!=null&&Oe("scroll",t),r.onScrollEnd!=null&&Oe("scrollend",t),r.onClick!=null&&(t.onclick=In),t=!0):t=!1,t||Ca(e,!0)}function Um(e){for(Nt=e.return;Nt;)switch(Nt.tag){case 5:case 31:case 13:dn=!1;return;case 27:case 3:dn=!0;return;default:Nt=Nt.return}}function Wl(e){if(e!==Nt)return!1;if(!ze)return Um(e),ze=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||ed(e.type,e.memoizedProps)),a=!a),a&&et&&Ca(e),Um(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));et=sg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));et=sg(e)}else t===27?(t=et,Ha(e.type)?(e=rd,rd=null,et=e):et=t):et=Nt?mn(e.stateNode.nextSibling):null;return!0}function hl(){et=Nt=null,ze=!1}function Uc(){var e=Na;return e!==null&&(Gt===null?Gt=e:Gt.push.apply(Gt,e),Na=null),e}function Jr(e){Na===null?Na=[e]:Na.push(e)}var Bc=_(null),pl=null,ea=null;function Ta(e,t,a){K(Bc,t._currentValue),t._currentValue=a}function ta(e){e._currentValue=Bc.current,X(Bc)}function Hc(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 Vc(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 w=c;c=s;for(var A=0;A<t.length;A++)if(w.context===t[A]){c.lanes|=a,w=c.alternate,w!==null&&(w.lanes|=a),Hc(c.return,a,e),r||(b=null);break e}c=w.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),Hc(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 er(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 w=s.type;Zt(s.pendingProps.value,b.value)||(e!==null?e.push(w):e=[w])}}else if(s===ee.current){if(b=s.alternate,b===null)throw Error(i(387));b.memoizedState.memoizedState!==s.memoizedState.memoizedState&&(e!==null?e.push(To):e=[To])}s=s.return}e!==null&&Vc(t,e,a,r),t.flags|=262144}function ui(e){for(e=e.firstContext;e!==null;){if(!Zt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function gl(e){pl=e,ea=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ct(e){return Bm(pl,e)}function di(e,t){return pl===null&&gl(e),Bm(e,t)}function Bm(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},ea===null){if(e===null)throw Error(i(308));ea=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ea=ea.next=t;return a}var _1=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()})}},j1=n.unstable_scheduleCallback,O1=n.unstable_NormalPriority,ft={$$typeof:M,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qc(){return{controller:new _1,data:new Map,refCount:0}}function Wr(e){e.refCount--,e.refCount===0&&j1(O1,function(){e.controller.abort()})}var eo=null,Yc=0,tr=0,nr=null;function M1(e,t){if(eo===null){var a=eo=[];Yc=0,tr=Xu(),nr={status:"pending",value:void 0,then:function(r){a.push(r)}}}return Yc++,t.then(Hm,Hm),t}function Hm(){if(--Yc===0&&eo!==null){nr!==null&&(nr.status="fulfilled");var e=eo;eo=null,tr=0,nr=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function D1(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 Vm=O.S;O.S=function(e,t){Ep=rt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&M1(e,t),Vm!==null&&Vm(e,t)};var vl=_(null);function $c(){var e=vl.current;return e!==null?e:Ie.pooledCache}function fi(e,t){t===null?K(vl,vl.current):K(vl,t.pool)}function qm(){var e=$c();return e===null?null:{parent:ft._currentValue,pool:e}}var ar=Error(i(460)),Gc=Error(i(474)),mi=Error(i(542)),hi={then:function(){}};function Ym(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $m(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(In,In),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Xm(e),e;default:if(typeof t.status=="string")t.then(In,In);else{if(e=Ie,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,Xm(e),e}throw bl=t,ar}}function yl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(bl=a,ar):a}}var bl=null;function Gm(){if(bl===null)throw Error(i(459));var e=bl;return bl=null,e}function Xm(e){if(e===ar||e===mi)throw Error(i(483))}var lr=null,to=0;function pi(e){var t=to;return to+=1,lr===null&&(lr=[]),$m(lr,e,t)}function no(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function gi(e,t){throw t.$$typeof===S?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Qm(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=Jn(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 w(z,D,L,Z){return D===null||D.tag!==6?(D=Mc(L,z.mode,Z),D.return=z,D):(D=s(D,L),D.return=z,D)}function A(z,D,L,Z){var ye=L.type;return ye===N?Q(z,D,L.props.children,Z,L.key):D!==null&&(D.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===V&&yl(ye)===D.type)?(D=s(D,L.props),no(D,L),D.return=z,D):(D=si(L.type,L.key,L.props,null,z.mode,Z),no(D,L),D.return=z,D)}function B(z,D,L,Z){return D===null||D.tag!==4||D.stateNode.containerInfo!==L.containerInfo||D.stateNode.implementation!==L.implementation?(D=Dc(L,z.mode,Z),D.return=z,D):(D=s(D,L.children||[]),D.return=z,D)}function Q(z,D,L,Z,ye){return D===null||D.tag!==7?(D=ml(L,z.mode,Z,ye),D.return=z,D):(D=s(D,L),D.return=z,D)}function P(z,D,L){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return D=Mc(""+D,z.mode,L),D.return=z,D;if(typeof D=="object"&&D!==null){switch(D.$$typeof){case E:return L=si(D.type,D.key,D.props,null,z.mode,L),no(L,D),L.return=z,L;case R:return D=Dc(D,z.mode,L),D.return=z,D;case V:return D=yl(D),P(z,D,L)}if(ce(D)||oe(D))return D=ml(D,z.mode,L,null),D.return=z,D;if(typeof D.then=="function")return P(z,pi(D),L);if(D.$$typeof===M)return P(z,di(z,D),L);gi(z,D)}return null}function H(z,D,L,Z){var ye=D!==null?D.key:null;if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return ye!==null?null:w(z,D,""+L,Z);if(typeof L=="object"&&L!==null){switch(L.$$typeof){case E:return L.key===ye?A(z,D,L,Z):null;case R:return L.key===ye?B(z,D,L,Z):null;case V:return L=yl(L),H(z,D,L,Z)}if(ce(L)||oe(L))return ye!==null?null:Q(z,D,L,Z,null);if(typeof L.then=="function")return H(z,D,pi(L),Z);if(L.$$typeof===M)return H(z,D,di(z,L),Z);gi(z,L)}return null}function Y(z,D,L,Z,ye){if(typeof Z=="string"&&Z!==""||typeof Z=="number"||typeof Z=="bigint")return z=z.get(L)||null,w(D,z,""+Z,ye);if(typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case E:return z=z.get(Z.key===null?L:Z.key)||null,A(D,z,Z,ye);case R:return z=z.get(Z.key===null?L:Z.key)||null,B(D,z,Z,ye);case V:return Z=yl(Z),Y(z,D,L,Z,ye)}if(ce(Z)||oe(Z))return z=z.get(L)||null,Q(D,z,Z,ye,null);if(typeof Z.then=="function")return Y(z,D,L,pi(Z),ye);if(Z.$$typeof===M)return Y(z,D,L,di(D,Z),ye);gi(D,Z)}return null}function fe(z,D,L,Z){for(var ye=null,He=null,pe=D,Ae=D=0,ke=null;pe!==null&&Ae<L.length;Ae++){pe.index>Ae?(ke=pe,pe=null):ke=pe.sibling;var Ve=H(z,pe,L[Ae],Z);if(Ve===null){pe===null&&(pe=ke);break}e&&pe&&Ve.alternate===null&&t(z,pe),D=c(Ve,D,Ae),He===null?ye=Ve:He.sibling=Ve,He=Ve,pe=ke}if(Ae===L.length)return a(z,pe),ze&&Wn(z,Ae),ye;if(pe===null){for(;Ae<L.length;Ae++)pe=P(z,L[Ae],Z),pe!==null&&(D=c(pe,D,Ae),He===null?ye=pe:He.sibling=pe,He=pe);return ze&&Wn(z,Ae),ye}for(pe=r(pe);Ae<L.length;Ae++)ke=Y(pe,z,Ae,L[Ae],Z),ke!==null&&(e&&ke.alternate!==null&&pe.delete(ke.key===null?Ae:ke.key),D=c(ke,D,Ae),He===null?ye=ke:He.sibling=ke,He=ke);return e&&pe.forEach(function(Ga){return t(z,Ga)}),ze&&Wn(z,Ae),ye}function xe(z,D,L,Z){if(L==null)throw Error(i(151));for(var ye=null,He=null,pe=D,Ae=D=0,ke=null,Ve=L.next();pe!==null&&!Ve.done;Ae++,Ve=L.next()){pe.index>Ae?(ke=pe,pe=null):ke=pe.sibling;var Ga=H(z,pe,Ve.value,Z);if(Ga===null){pe===null&&(pe=ke);break}e&&pe&&Ga.alternate===null&&t(z,pe),D=c(Ga,D,Ae),He===null?ye=Ga:He.sibling=Ga,He=Ga,pe=ke}if(Ve.done)return a(z,pe),ze&&Wn(z,Ae),ye;if(pe===null){for(;!Ve.done;Ae++,Ve=L.next())Ve=P(z,Ve.value,Z),Ve!==null&&(D=c(Ve,D,Ae),He===null?ye=Ve:He.sibling=Ve,He=Ve);return ze&&Wn(z,Ae),ye}for(pe=r(pe);!Ve.done;Ae++,Ve=L.next())Ve=Y(pe,z,Ae,Ve.value,Z),Ve!==null&&(e&&Ve.alternate!==null&&pe.delete(Ve.key===null?Ae:Ve.key),D=c(Ve,D,Ae),He===null?ye=Ve:He.sibling=Ve,He=Ve);return e&&pe.forEach(function(GS){return t(z,GS)}),ze&&Wn(z,Ae),ye}function Pe(z,D,L,Z){if(typeof L=="object"&&L!==null&&L.type===N&&L.key===null&&(L=L.props.children),typeof L=="object"&&L!==null){switch(L.$$typeof){case E:e:{for(var ye=L.key;D!==null;){if(D.key===ye){if(ye=L.type,ye===N){if(D.tag===7){a(z,D.sibling),Z=s(D,L.props.children),Z.return=z,z=Z;break e}}else if(D.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===V&&yl(ye)===D.type){a(z,D.sibling),Z=s(D,L.props),no(Z,L),Z.return=z,z=Z;break e}a(z,D);break}else t(z,D);D=D.sibling}L.type===N?(Z=ml(L.props.children,z.mode,Z,L.key),Z.return=z,z=Z):(Z=si(L.type,L.key,L.props,null,z.mode,Z),no(Z,L),Z.return=z,z=Z)}return b(z);case R:e:{for(ye=L.key;D!==null;){if(D.key===ye)if(D.tag===4&&D.stateNode.containerInfo===L.containerInfo&&D.stateNode.implementation===L.implementation){a(z,D.sibling),Z=s(D,L.children||[]),Z.return=z,z=Z;break e}else{a(z,D);break}else t(z,D);D=D.sibling}Z=Dc(L,z.mode,Z),Z.return=z,z=Z}return b(z);case V:return L=yl(L),Pe(z,D,L,Z)}if(ce(L))return fe(z,D,L,Z);if(oe(L)){if(ye=oe(L),typeof ye!="function")throw Error(i(150));return L=ye.call(L),xe(z,D,L,Z)}if(typeof L.then=="function")return Pe(z,D,pi(L),Z);if(L.$$typeof===M)return Pe(z,D,di(z,L),Z);gi(z,L)}return typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint"?(L=""+L,D!==null&&D.tag===6?(a(z,D.sibling),Z=s(D,L),Z.return=z,z=Z):(a(z,D),Z=Mc(L,z.mode,Z),Z.return=z,z=Z),b(z)):a(z,D)}return function(z,D,L,Z){try{to=0;var ye=Pe(z,D,L,Z);return lr=null,ye}catch(pe){if(pe===ar||pe===mi)throw pe;var He=Pt(29,pe,null,z.mode);return He.lanes=Z,He.return=z,He}finally{}}}var xl=Qm(!0),Km=Qm(!1),Ra=!1;function Xc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Qc(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 Aa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function _a(e,t,a){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(qe&2)!==0){var s=r.pending;return s===null?t.next=t:(t.next=s.next,s.next=t),r.pending=t,t=ii(e),jm(e,null,a),t}return oi(e,r,t,a),ii(e)}function ao(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,Ut(e,a)}}function Kc(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 Zc=!1;function lo(){if(Zc){var e=nr;if(e!==null)throw e}}function ro(e,t,a,r){Zc=!1;var s=e.updateQueue;Ra=!1;var c=s.firstBaseUpdate,b=s.lastBaseUpdate,w=s.shared.pending;if(w!==null){s.shared.pending=null;var A=w,B=A.next;A.next=null,b===null?c=B:b.next=B,b=A;var Q=e.alternate;Q!==null&&(Q=Q.updateQueue,w=Q.lastBaseUpdate,w!==b&&(w===null?Q.firstBaseUpdate=B:w.next=B,Q.lastBaseUpdate=A))}if(c!==null){var P=s.baseState;b=0,Q=B=A=null,w=c;do{var H=w.lane&-536870913,Y=H!==w.lane;if(Y?(De&H)===H:(r&H)===H){H!==0&&H===tr&&(Zc=!0),Q!==null&&(Q=Q.next={lane:0,tag:w.tag,payload:w.payload,callback:null,next:null});e:{var fe=e,xe=w;H=t;var Pe=a;switch(xe.tag){case 1:if(fe=xe.payload,typeof fe=="function"){P=fe.call(Pe,P,H);break e}P=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=xe.payload,H=typeof fe=="function"?fe.call(Pe,P,H):fe,H==null)break e;P=p({},P,H);break e;case 2:Ra=!0}}H=w.callback,H!==null&&(e.flags|=64,Y&&(e.flags|=8192),Y=s.callbacks,Y===null?s.callbacks=[H]:Y.push(H))}else Y={lane:H,tag:w.tag,payload:w.payload,callback:w.callback,next:null},Q===null?(B=Q=Y,A=P):Q=Q.next=Y,b|=H;if(w=w.next,w===null){if(w=s.shared.pending,w===null)break;Y=w,w=Y.next,Y.next=null,s.lastBaseUpdate=Y,s.shared.pending=null}}while(!0);Q===null&&(A=P),s.baseState=A,s.firstBaseUpdate=B,s.lastBaseUpdate=Q,c===null&&(s.shared.lanes=0),ka|=b,e.lanes=b,e.memoizedState=P}}function Zm(e,t){if(typeof e!="function")throw Error(i(191,e));e.call(t)}function Pm(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)Zm(a[e],t)}var rr=_(null),vi=_(0);function Im(e,t){e=ua,K(vi,e),K(rr,t),ua=e|t.baseLanes}function Pc(){K(vi,ua),K(rr,rr.current)}function Ic(){ua=vi.current,X(rr),X(vi)}var It=_(null),fn=null;function ja(e){var t=e.alternate;K(ut,ut.current&1),K(It,e),fn===null&&(t===null||rr.current!==null||t.memoizedState!==null)&&(fn=e)}function Fc(e){K(ut,ut.current),K(It,e),fn===null&&(fn=e)}function Fm(e){e.tag===22?(K(ut,ut.current),K(It,e),fn===null&&(fn=e)):Oa()}function Oa(){K(ut,ut.current),K(It,It.current)}function Ft(e){X(It),fn===e&&(fn=null),X(ut)}var ut=_(0);function yi(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||ad(a)||ld(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 na=0,Re=null,Ke=null,mt=null,bi=!1,or=!1,Sl=!1,xi=0,oo=0,ir=null,k1=0;function st(){throw Error(i(321))}function Jc(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Zt(e[a],t[a]))return!1;return!0}function Wc(e,t,a,r,s,c){return na=c,Re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?kh:hu,Sl=!1,c=a(r,s),Sl=!1,or&&(c=Wm(t,a,r,s)),Jm(e),c}function Jm(e){O.H=co;var t=Ke!==null&&Ke.next!==null;if(na=0,mt=Ke=Re=null,bi=!1,oo=0,ir=null,t)throw Error(i(300));e===null||ht||(e=e.dependencies,e!==null&&ui(e)&&(ht=!0))}function Wm(e,t,a,r){Re=e;var s=0;do{if(or&&(ir=null),oo=0,or=!1,25<=s)throw Error(i(301));if(s+=1,mt=Ke=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=zh,c=t(a,r)}while(or);return c}function z1(){var e=O.H,t=e.useState()[0];return t=typeof t.then=="function"?io(t):t,e=e.useState()[0],(Ke!==null?Ke.memoizedState:null)!==e&&(Re.flags|=1024),t}function eu(){var e=xi!==0;return xi=0,e}function tu(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function nu(e){if(bi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}bi=!1}na=0,mt=Ke=Re=null,or=!1,oo=xi=0,ir=null}function Dt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mt===null?Re.memoizedState=mt=e:mt=mt.next=e,mt}function dt(){if(Ke===null){var e=Re.alternate;e=e!==null?e.memoizedState:null}else e=Ke.next;var t=mt===null?Re.memoizedState:mt.next;if(t!==null)mt=t,Ke=e;else{if(e===null)throw Re.alternate===null?Error(i(467)):Error(i(310));Ke=e,e={memoizedState:Ke.memoizedState,baseState:Ke.baseState,baseQueue:Ke.baseQueue,queue:Ke.queue,next:null},mt===null?Re.memoizedState=mt=e:mt=mt.next=e}return mt}function Si(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function io(e){var t=oo;return oo+=1,ir===null&&(ir=[]),e=$m(ir,e,t),t=Re,(mt===null?t.memoizedState:mt.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?kh:hu),e}function wi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return io(e);if(e.$$typeof===M)return Ct(e)}throw Error(i(438,String(e)))}function au(e){var t=null,a=Re.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var r=Re.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=Si(),Re.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]=de;return t.index++,a}function aa(e,t){return typeof t=="function"?t(e):t}function Ei(e){var t=dt();return lu(t,Ke,e)}function lu(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 w=b=null,A=null,B=t,Q=!1;do{var P=B.lane&-536870913;if(P!==B.lane?(De&P)===P:(na&P)===P){var H=B.revertLane;if(H===0)A!==null&&(A=A.next={lane:0,revertLane:0,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),P===tr&&(Q=!0);else if((na&H)===H){B=B.next,H===tr&&(Q=!0);continue}else P={lane:0,revertLane:B.revertLane,gesture:null,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},A===null?(w=A=P,b=c):A=A.next=P,Re.lanes|=H,ka|=H;P=B.action,Sl&&a(c,P),c=B.hasEagerState?B.eagerState:a(c,P)}else H={lane:P,revertLane:B.revertLane,gesture:B.gesture,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},A===null?(w=A=H,b=c):A=A.next=H,Re.lanes|=P,ka|=P;B=B.next}while(B!==null&&B!==t);if(A===null?b=c:A.next=w,!Zt(c,e.memoizedState)&&(ht=!0,Q&&(a=nr,a!==null)))throw a;e.memoizedState=c,e.baseState=b,e.baseQueue=A,r.lastRenderedState=c}return s===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ru(e){var t=dt(),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);Zt(c,t.memoizedState)||(ht=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),a.lastRenderedState=c}return[c,r]}function eh(e,t,a){var r=Re,s=dt(),c=ze;if(c){if(a===void 0)throw Error(i(407));a=a()}else a=t();var b=!Zt((Ke||s).memoizedState,a);if(b&&(s.memoizedState=a,ht=!0),s=s.queue,su(ah.bind(null,r,s,e),[e]),s.getSnapshot!==t||b||mt!==null&&mt.memoizedState.tag&1){if(r.flags|=2048,sr(9,{destroy:void 0},nh.bind(null,r,s,a,t),null),Ie===null)throw Error(i(349));c||(na&127)!==0||th(r,t,a)}return a}function th(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Re.updateQueue,t===null?(t=Si(),Re.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function nh(e,t,a,r){t.value=a,t.getSnapshot=r,lh(t)&&rh(e)}function ah(e,t,a){return a(function(){lh(t)&&rh(e)})}function lh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Zt(e,a)}catch{return!0}}function rh(e){var t=fl(e,2);t!==null&&Xt(t,e,2)}function ou(e){var t=Dt();if(typeof e=="function"){var a=e;if(e=a(),Sl){vn(!0);try{a()}finally{vn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:e},t}function oh(e,t,a,r){return e.baseState=a,lu(e,Ke,typeof r=="function"?r:aa)}function L1(e,t,a,r,s){if(Ti(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,ih(t,c)):(c.next=a.next,t.pending=a.next=c)}}function ih(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 w=a(s,r),A=O.S;A!==null&&A(b,w),sh(e,t,w)}catch(B){iu(e,t,B)}finally{c!==null&&b.types!==null&&(c.types=b.types),O.T=c}}else try{c=a(s,r),sh(e,t,c)}catch(B){iu(e,t,B)}}function sh(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(r){ch(e,t,r)},function(r){return iu(e,t,r)}):ch(e,t,a)}function ch(e,t,a){t.status="fulfilled",t.value=a,uh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,ih(e,a)))}function iu(e,t,a){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=a,uh(t),t=t.next;while(t!==r)}e.action=null}function uh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function dh(e,t){return t}function fh(e,t){if(ze){var a=Ie.formState;if(a!==null){e:{var r=Re;if(ze){if(et){t:{for(var s=et,c=dn;s.nodeType!==8;){if(!c){s=null;break t}if(s=mn(s.nextSibling),s===null){s=null;break t}}c=s.data,s=c==="F!"||c==="F"?s:null}if(s){et=mn(s.nextSibling),r=s.data==="F!";break e}}Ca(r)}r=!1}r&&(t=a[0])}}return a=Dt(),a.memoizedState=a.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dh,lastRenderedState:t},a.queue=r,a=Oh.bind(null,Re,r),r.dispatch=a,r=ou(!1),c=mu.bind(null,Re,!1,r.queue),r=Dt(),s={state:t,dispatch:null,action:e,pending:null},r.queue=s,a=L1.bind(null,Re,s,c,a),s.dispatch=a,r.memoizedState=e,[t,a,!1]}function mh(e){var t=dt();return hh(t,Ke,e)}function hh(e,t,a){if(t=lu(e,t,dh)[0],e=Ei(aa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=io(t)}catch(b){throw b===ar?mi:b}else r=t;t=dt();var s=t.queue,c=s.dispatch;return a!==t.memoizedState&&(Re.flags|=2048,sr(9,{destroy:void 0},U1.bind(null,s,a),null)),[r,c,e]}function U1(e,t){e.action=t}function ph(e){var t=dt(),a=Ke;if(a!==null)return hh(t,a,e);dt(),t=t.memoizedState,a=dt();var r=a.queue.dispatch;return a.memoizedState=e,[t,r,!1]}function sr(e,t,a,r){return e={tag:e,create:a,deps:r,inst:t,next:null},t=Re.updateQueue,t===null&&(t=Si(),Re.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 gh(){return dt().memoizedState}function Ni(e,t,a,r){var s=Dt();Re.flags|=e,s.memoizedState=sr(1|t,{destroy:void 0},a,r===void 0?null:r)}function Ci(e,t,a,r){var s=dt();r=r===void 0?null:r;var c=s.memoizedState.inst;Ke!==null&&r!==null&&Jc(r,Ke.memoizedState.deps)?s.memoizedState=sr(t,c,a,r):(Re.flags|=e,s.memoizedState=sr(1|t,c,a,r))}function vh(e,t){Ni(8390656,8,e,t)}function su(e,t){Ci(2048,8,e,t)}function B1(e){Re.flags|=4;var t=Re.updateQueue;if(t===null)t=Si(),Re.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function yh(e){var t=dt().memoizedState;return B1({ref:t,nextImpl:e}),function(){if((qe&2)!==0)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function bh(e,t){return Ci(4,2,e,t)}function xh(e,t){return Ci(4,4,e,t)}function Sh(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 wh(e,t,a){a=a!=null?a.concat([e]):null,Ci(4,4,Sh.bind(null,t,e),a)}function cu(){}function Eh(e,t){var a=dt();t=t===void 0?null:t;var r=a.memoizedState;return t!==null&&Jc(t,r[1])?r[0]:(a.memoizedState=[e,t],e)}function Nh(e,t){var a=dt();t=t===void 0?null:t;var r=a.memoizedState;if(t!==null&&Jc(t,r[1]))return r[0];if(r=e(),Sl){vn(!0);try{e()}finally{vn(!1)}}return a.memoizedState=[r,t],r}function uu(e,t,a){return a===void 0||(na&1073741824)!==0&&(De&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Cp(),Re.lanes|=e,ka|=e,a)}function Ch(e,t,a,r){return Zt(a,t)?a:rr.current!==null?(e=uu(e,a,r),Zt(e,t)||(ht=!0),e):(na&42)===0||(na&1073741824)!==0&&(De&261930)===0?(ht=!0,e.memoizedState=a):(e=Cp(),Re.lanes|=e,ka|=e,t)}function Th(e,t,a,r,s){var c=G.p;G.p=c!==0&&8>c?c:8;var b=O.T,w={};O.T=w,mu(e,!1,t,a);try{var A=s(),B=O.S;if(B!==null&&B(w,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var Q=D1(A,r);so(e,t,Q,en(e))}else so(e,t,r,en(e))}catch(P){so(e,t,{then:function(){},status:"rejected",reason:P},en())}finally{G.p=c,b!==null&&w.types!==null&&(b.types=w.types),O.T=b}}function H1(){}function du(e,t,a,r){if(e.tag!==5)throw Error(i(476));var s=Rh(e).queue;Th(e,s,t,I,a===null?H1:function(){return Ah(e),a(r)})}function Rh(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:aa,lastRenderedState:I},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:aa,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ah(e){var t=Rh(e);t.next===null&&(t=e.alternate.memoizedState),so(e,t.next.queue,{},en())}function fu(){return Ct(To)}function _h(){return dt().memoizedState}function jh(){return dt().memoizedState}function V1(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=en();e=Aa(a);var r=_a(t,e,a);r!==null&&(Xt(r,t,a),ao(r,t,a)),t={cache:qc()},e.payload=t;return}t=t.return}}function q1(e,t,a){var r=en();a={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ti(e)?Mh(t,a):(a=jc(e,t,a,r),a!==null&&(Xt(a,e,r),Dh(a,t,r)))}function Oh(e,t,a){var r=en();so(e,t,a,r)}function so(e,t,a,r){var s={lane:r,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ti(e))Mh(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,w=c(b,a);if(s.hasEagerState=!0,s.eagerState=w,Zt(w,b))return oi(e,t,s,0),Ie===null&&ri(),!1}catch{}finally{}if(a=jc(e,t,s,r),a!==null)return Xt(a,e,r),Dh(a,t,r),!0}return!1}function mu(e,t,a,r){if(r={lane:2,revertLane:Xu(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ti(e)){if(t)throw Error(i(479))}else t=jc(e,a,r,2),t!==null&&Xt(t,e,2)}function Ti(e){var t=e.alternate;return e===Re||t!==null&&t===Re}function Mh(e,t){or=bi=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Dh(e,t,a){if((a&4194048)!==0){var r=t.lanes;r&=e.pendingLanes,a|=r,t.lanes=a,Ut(e,a)}}var co={readContext:Ct,use:wi,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useLayoutEffect:st,useInsertionEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useSyncExternalStore:st,useId:st,useHostTransitionStatus:st,useFormState:st,useActionState:st,useOptimistic:st,useMemoCache:st,useCacheRefresh:st};co.useEffectEvent=st;var kh={readContext:Ct,use:wi,useCallback:function(e,t){return Dt().memoizedState=[e,t===void 0?null:t],e},useContext:Ct,useEffect:vh,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ni(4194308,4,Sh.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ni(4194308,4,e,t)},useInsertionEffect:function(e,t){Ni(4,2,e,t)},useMemo:function(e,t){var a=Dt();t=t===void 0?null:t;var r=e();if(Sl){vn(!0);try{e()}finally{vn(!1)}}return a.memoizedState=[r,t],r},useReducer:function(e,t,a){var r=Dt();if(a!==void 0){var s=a(t);if(Sl){vn(!0);try{a(t)}finally{vn(!1)}}}else s=t;return r.memoizedState=r.baseState=s,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:s},r.queue=e,e=e.dispatch=q1.bind(null,Re,e),[r.memoizedState,e]},useRef:function(e){var t=Dt();return e={current:e},t.memoizedState=e},useState:function(e){e=ou(e);var t=e.queue,a=Oh.bind(null,Re,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:cu,useDeferredValue:function(e,t){var a=Dt();return uu(a,e,t)},useTransition:function(){var e=ou(!1);return e=Th.bind(null,Re,e.queue,!0,!1),Dt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var r=Re,s=Dt();if(ze){if(a===void 0)throw Error(i(407));a=a()}else{if(a=t(),Ie===null)throw Error(i(349));(De&127)!==0||th(r,t,a)}s.memoizedState=a;var c={value:a,getSnapshot:t};return s.queue=c,vh(ah.bind(null,r,c,e),[e]),r.flags|=2048,sr(9,{destroy:void 0},nh.bind(null,r,c,a,t),null),a},useId:function(){var e=Dt(),t=Ie.identifierPrefix;if(ze){var a=On,r=jn;a=(r&~(1<<32-At(r)-1)).toString(32)+a,t="_"+t+"R_"+a,a=xi++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=k1++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:fu,useFormState:fh,useActionState:fh,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=mu.bind(null,Re,!0,a),a.dispatch=t,[e,t]},useMemoCache:au,useCacheRefresh:function(){return Dt().memoizedState=V1.bind(null,Re)},useEffectEvent:function(e){var t=Dt(),a={impl:e};return t.memoizedState=a,function(){if((qe&2)!==0)throw Error(i(440));return a.impl.apply(void 0,arguments)}}},hu={readContext:Ct,use:wi,useCallback:Eh,useContext:Ct,useEffect:su,useImperativeHandle:wh,useInsertionEffect:bh,useLayoutEffect:xh,useMemo:Nh,useReducer:Ei,useRef:gh,useState:function(){return Ei(aa)},useDebugValue:cu,useDeferredValue:function(e,t){var a=dt();return Ch(a,Ke.memoizedState,e,t)},useTransition:function(){var e=Ei(aa)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:io(e),t]},useSyncExternalStore:eh,useId:_h,useHostTransitionStatus:fu,useFormState:mh,useActionState:mh,useOptimistic:function(e,t){var a=dt();return oh(a,Ke,e,t)},useMemoCache:au,useCacheRefresh:jh};hu.useEffectEvent=yh;var zh={readContext:Ct,use:wi,useCallback:Eh,useContext:Ct,useEffect:su,useImperativeHandle:wh,useInsertionEffect:bh,useLayoutEffect:xh,useMemo:Nh,useReducer:ru,useRef:gh,useState:function(){return ru(aa)},useDebugValue:cu,useDeferredValue:function(e,t){var a=dt();return Ke===null?uu(a,e,t):Ch(a,Ke.memoizedState,e,t)},useTransition:function(){var e=ru(aa)[0],t=dt().memoizedState;return[typeof e=="boolean"?e:io(e),t]},useSyncExternalStore:eh,useId:_h,useHostTransitionStatus:fu,useFormState:ph,useActionState:ph,useOptimistic:function(e,t){var a=dt();return Ke!==null?oh(a,Ke,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:au,useCacheRefresh:jh};zh.useEffectEvent=yh;function pu(e,t,a,r){t=e.memoizedState,a=a(r,t),a=a==null?t:p({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var gu={enqueueSetState:function(e,t,a){e=e._reactInternals;var r=en(),s=Aa(r);s.payload=t,a!=null&&(s.callback=a),t=_a(e,s,r),t!==null&&(Xt(t,e,r),ao(t,e,r))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var r=en(),s=Aa(r);s.tag=1,s.payload=t,a!=null&&(s.callback=a),t=_a(e,s,r),t!==null&&(Xt(t,e,r),ao(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=en(),r=Aa(a);r.tag=2,t!=null&&(r.callback=t),t=_a(e,r,a),t!==null&&(Xt(t,e,a),ao(t,e,a))}};function Lh(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?!Pr(a,r)||!Pr(s,c):!0}function Uh(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&&gu.enqueueReplaceState(t,t.state,null)}function wl(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=p({},a));for(var s in e)a[s]===void 0&&(a[s]=e[s])}return a}function Bh(e){li(e)}function Hh(e){console.error(e)}function Vh(e){li(e)}function Ri(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function qh(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 vu(e,t,a){return a=Aa(a),a.tag=3,a.payload={element:null},a.callback=function(){Ri(e,t)},a}function Yh(e){return e=Aa(e),e.tag=3,e}function $h(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(){qh(t,a,r)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){qh(t,a,r),typeof s!="function"&&(za===null?za=new Set([this]):za.add(this));var w=r.stack;this.componentDidCatch(r.value,{componentStack:w!==null?w:""})})}function Y1(e,t,a,r,s){if(a.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=a.alternate,t!==null&&er(t,a,s,!0),a=It.current,a!==null){switch(a.tag){case 31:case 13:return fn===null?Hi():a.alternate===null&&ct===0&&(ct=3),a.flags&=-257,a.flags|=65536,a.lanes=s,r===hi?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([r]):t.add(r),Yu(e,r,s)),!1;case 22:return a.flags|=65536,r===hi?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)),Yu(e,r,s)),!1}throw Error(i(435,a.tag))}return Yu(e,r,s),Hi(),!1}if(ze)return t=It.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=s,r!==Lc&&(e=Error(i(422),{cause:r}),Jr(sn(e,a)))):(r!==Lc&&(t=Error(i(423),{cause:r}),Jr(sn(t,a))),e=e.current.alternate,e.flags|=65536,s&=-s,e.lanes|=s,r=sn(r,a),s=vu(e.stateNode,r,s),Kc(e,s),ct!==4&&(ct=2)),!1;var c=Error(i(520),{cause:r});if(c=sn(c,a),yo===null?yo=[c]:yo.push(c),ct!==4&&(ct=2),t===null)return!0;r=sn(r,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=s&-s,a.lanes|=e,e=vu(a.stateNode,r,e),Kc(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"&&(za===null||!za.has(c))))return a.flags|=65536,s&=-s,a.lanes|=s,s=Yh(s),$h(s,e,a,r),Kc(a,s),!1}a=a.return}while(a!==null);return!1}var yu=Error(i(461)),ht=!1;function Tt(e,t,a,r){t.child=e===null?Km(t,null,a,r):xl(t,e.child,a,r)}function Gh(e,t,a,r,s){a=a.render;var c=t.ref;if("ref"in r){var b={};for(var w in r)w!=="ref"&&(b[w]=r[w])}else b=r;return gl(t),r=Wc(e,t,a,b,c,s),w=eu(),e!==null&&!ht?(tu(e,t,s),la(e,t,s)):(ze&&w&&kc(t),t.flags|=1,Tt(e,t,r,s),t.child)}function Xh(e,t,a,r,s){if(e===null){var c=a.type;return typeof c=="function"&&!Oc(c)&&c.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=c,Qh(e,t,c,r,s)):(e=si(a.type,null,r,t,t.mode,s),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Tu(e,s)){var b=c.memoizedProps;if(a=a.compare,a=a!==null?a:Pr,a(b,r)&&e.ref===t.ref)return la(e,t,s)}return t.flags|=1,e=Jn(c,r),e.ref=t.ref,e.return=t,t.child=e}function Qh(e,t,a,r,s){if(e!==null){var c=e.memoizedProps;if(Pr(c,r)&&e.ref===t.ref)if(ht=!1,t.pendingProps=r=c,Tu(e,s))(e.flags&131072)!==0&&(ht=!0);else return t.lanes=e.lanes,la(e,t,s)}return bu(e,t,a,r,s)}function Kh(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 Zh(e,t,c,a,r)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&fi(t,c!==null?c.cachePool:null),c!==null?Im(t,c):Pc(),Fm(t);else return r=t.lanes=536870912,Zh(e,t,c!==null?c.baseLanes|a:a,a,r)}else c!==null?(fi(t,c.cachePool),Im(t,c),Oa(),t.memoizedState=null):(e!==null&&fi(t,null),Pc(),Oa());return Tt(e,t,s,a),t.child}function uo(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Zh(e,t,a,r,s){var c=$c();return c=c===null?null:{parent:ft._currentValue,pool:c},t.memoizedState={baseLanes:a,cachePool:c},e!==null&&fi(t,null),Pc(),Fm(t),e!==null&&er(e,t,r,!0),t.childLanes=s,null}function Ai(e,t){return t=ji({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Ph(e,t,a){return xl(t,e.child,null,a),e=Ai(t,t.pendingProps),e.flags|=2,Ft(t),t.memoizedState=null,e}function $1(e,t,a){var r=t.pendingProps,s=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ze){if(r.mode==="hidden")return e=Ai(t,r),t.lanes=536870912,uo(null,e);if(Fc(t),(e=et)?(e=ig(e,dn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ea!==null?{id:jn,overflow:On}:null,retryLane:536870912,hydrationErrors:null},a=Mm(e),a.return=t,t.child=a,Nt=t,et=null)):e=null,e===null)throw Ca(t);return t.lanes=536870912,null}return Ai(t,r)}var c=e.memoizedState;if(c!==null){var b=c.dehydrated;if(Fc(t),s)if(t.flags&256)t.flags&=-257,t=Ph(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558));else if(ht||er(e,t,a,!1),s=(a&e.childLanes)!==0,ht||s){if(r=Ie,r!==null&&(b=Bt(r,a),b!==0&&b!==c.retryLane))throw c.retryLane=b,fl(e,b),Xt(r,e,b),yu;Hi(),t=Ph(e,t,a)}else e=c.treeContext,et=mn(b.nextSibling),Nt=t,ze=!0,Na=null,dn=!1,e!==null&&zm(t,e),t=Ai(t,r),t.flags|=4096;return t}return e=Jn(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function _i(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 bu(e,t,a,r,s){return gl(t),a=Wc(e,t,a,r,void 0,s),r=eu(),e!==null&&!ht?(tu(e,t,s),la(e,t,s)):(ze&&r&&kc(t),t.flags|=1,Tt(e,t,a,s),t.child)}function Ih(e,t,a,r,s,c){return gl(t),t.updateQueue=null,a=Wm(t,r,a,s),Jm(e),r=eu(),e!==null&&!ht?(tu(e,t,c),la(e,t,c)):(ze&&r&&kc(t),t.flags|=1,Tt(e,t,a,c),t.child)}function Fh(e,t,a,r,s){if(gl(t),t.stateNode===null){var c=Il,b=a.contextType;typeof b=="object"&&b!==null&&(c=Ct(b)),c=new a(r,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=gu,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=r,c.state=t.memoizedState,c.refs={},Xc(t),b=a.contextType,c.context=typeof b=="object"&&b!==null?Ct(b):Il,c.state=t.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(pu(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&&gu.enqueueReplaceState(c,c.state,null),ro(t,r,c,s),lo(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){c=t.stateNode;var w=t.memoizedProps,A=wl(a,w);c.props=A;var B=c.context,Q=a.contextType;b=Il,typeof Q=="object"&&Q!==null&&(b=Ct(Q));var P=a.getDerivedStateFromProps;Q=typeof P=="function"||typeof c.getSnapshotBeforeUpdate=="function",w=t.pendingProps!==w,Q||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(w||B!==b)&&Uh(t,c,r,b),Ra=!1;var H=t.memoizedState;c.state=H,ro(t,r,c,s),lo(),B=t.memoizedState,w||H!==B||Ra?(typeof P=="function"&&(pu(t,a,P,r),B=t.memoizedState),(A=Ra||Lh(t,a,A,r,H,B,b))?(Q||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=B),c.props=r,c.state=B,c.context=b,r=A):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{c=t.stateNode,Qc(e,t),b=t.memoizedProps,Q=wl(a,b),c.props=Q,P=t.pendingProps,H=c.context,B=a.contextType,A=Il,typeof B=="object"&&B!==null&&(A=Ct(B)),w=a.getDerivedStateFromProps,(B=typeof w=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(b!==P||H!==A)&&Uh(t,c,r,A),Ra=!1,H=t.memoizedState,c.state=H,ro(t,r,c,s),lo();var Y=t.memoizedState;b!==P||H!==Y||Ra||e!==null&&e.dependencies!==null&&ui(e.dependencies)?(typeof w=="function"&&(pu(t,a,w,r),Y=t.memoizedState),(Q=Ra||Lh(t,a,Q,r,H,Y,A)||e!==null&&e.dependencies!==null&&ui(e.dependencies))?(B||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(r,Y,A),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(r,Y,A)),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=Y),c.props=r,c.state=Y,c.context=A,r=Q):(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,_i(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=xl(t,e.child,null,s),t.child=xl(t,null,a,s)):Tt(e,t,a,s),t.memoizedState=c.state,e=t.child):e=la(e,t,s),e}function Jh(e,t,a,r){return hl(),t.flags|=256,Tt(e,t,a,r),t.child}var xu={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Su(e){return{baseLanes:e,cachePool:qm()}}function wu(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Wt),e}function Wh(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:(ut.current&2)!==0),b&&(s=!0,t.flags&=-129),b=(t.flags&32)!==0,t.flags&=-33,e===null){if(ze){if(s?ja(t):Oa(),(e=et)?(e=ig(e,dn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ea!==null?{id:jn,overflow:On}:null,retryLane:536870912,hydrationErrors:null},a=Mm(e),a.return=t,t.child=a,Nt=t,et=null)):e=null,e===null)throw Ca(t);return ld(e)?t.lanes=32:t.lanes=536870912,null}var w=r.children;return r=r.fallback,s?(Oa(),s=t.mode,w=ji({mode:"hidden",children:w},s),r=ml(r,s,a,null),w.return=t,r.return=t,w.sibling=r,t.child=w,r=t.child,r.memoizedState=Su(a),r.childLanes=wu(e,b,a),t.memoizedState=xu,uo(null,r)):(ja(t),Eu(t,w))}var A=e.memoizedState;if(A!==null&&(w=A.dehydrated,w!==null)){if(c)t.flags&256?(ja(t),t.flags&=-257,t=Nu(e,t,a)):t.memoizedState!==null?(Oa(),t.child=e.child,t.flags|=128,t=null):(Oa(),w=r.fallback,s=t.mode,r=ji({mode:"visible",children:r.children},s),w=ml(w,s,a,null),w.flags|=2,r.return=t,w.return=t,r.sibling=w,t.child=r,xl(t,e.child,null,a),r=t.child,r.memoizedState=Su(a),r.childLanes=wu(e,b,a),t.memoizedState=xu,t=uo(null,r));else if(ja(t),ld(w)){if(b=w.nextSibling&&w.nextSibling.dataset,b)var B=b.dgst;b=B,r=Error(i(419)),r.stack="",r.digest=b,Jr({value:r,source:null,stack:null}),t=Nu(e,t,a)}else if(ht||er(e,t,a,!1),b=(a&e.childLanes)!==0,ht||b){if(b=Ie,b!==null&&(r=Bt(b,a),r!==0&&r!==A.retryLane))throw A.retryLane=r,fl(e,r),Xt(b,e,r),yu;ad(w)||Hi(),t=Nu(e,t,a)}else ad(w)?(t.flags|=192,t.child=e.child,t=null):(e=A.treeContext,et=mn(w.nextSibling),Nt=t,ze=!0,Na=null,dn=!1,e!==null&&zm(t,e),t=Eu(t,r.children),t.flags|=4096);return t}return s?(Oa(),w=r.fallback,s=t.mode,A=e.child,B=A.sibling,r=Jn(A,{mode:"hidden",children:r.children}),r.subtreeFlags=A.subtreeFlags&65011712,B!==null?w=Jn(B,w):(w=ml(w,s,a,null),w.flags|=2),w.return=t,r.return=t,r.sibling=w,t.child=r,uo(null,r),r=t.child,w=e.child.memoizedState,w===null?w=Su(a):(s=w.cachePool,s!==null?(A=ft._currentValue,s=s.parent!==A?{parent:A,pool:A}:s):s=qm(),w={baseLanes:w.baseLanes|a,cachePool:s}),r.memoizedState=w,r.childLanes=wu(e,b,a),t.memoizedState=xu,uo(e.child,r)):(ja(t),a=e.child,e=a.sibling,a=Jn(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 Eu(e,t){return t=ji({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function ji(e,t){return e=Pt(22,e,null,t),e.lanes=0,e}function Nu(e,t,a){return xl(t,e.child,null,a),e=Eu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ep(e,t,a){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Hc(e.return,t,a)}function Cu(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 tp(e,t,a){var r=t.pendingProps,s=r.revealOrder,c=r.tail;r=r.children;var b=ut.current,w=(b&2)!==0;if(w?(b=b&1|2,t.flags|=128):b&=1,K(ut,b),Tt(e,t,r,a),r=ze?Fr:0,!w&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ep(e,a,t);else if(e.tag===19)ep(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&&yi(e)===null&&(s=a),a=a.sibling;a=s,a===null?(s=t.child,t.child=null):(s=a.sibling,a.sibling=null),Cu(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&&yi(e)===null){t.child=s;break}e=s.sibling,s.sibling=a,a=s,s=e}Cu(t,!0,a,null,c,r);break;case"together":Cu(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function la(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ka|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(er(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=Jn(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Jn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Tu(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ui(e)))}function G1(e,t,a){switch(t.tag){case 3:re(t,t.stateNode.containerInfo),Ta(t,ft,e.memoizedState.cache),hl();break;case 27:case 5:Te(t);break;case 4:re(t,t.stateNode.containerInfo);break;case 10:Ta(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Fc(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(ja(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Wh(e,t,a):(ja(t),e=la(e,t,a),e!==null?e.sibling:null);ja(t);break;case 19:var s=(e.flags&128)!==0;if(r=(a&t.childLanes)!==0,r||(er(e,t,a,!1),r=(a&t.childLanes)!==0),s){if(r)return tp(e,t,a);t.flags|=128}if(s=t.memoizedState,s!==null&&(s.rendering=null,s.tail=null,s.lastEffect=null),K(ut,ut.current),r)break;return null;case 22:return t.lanes=0,Kh(e,t,a,t.pendingProps);case 24:Ta(t,ft,e.memoizedState.cache)}return la(e,t,a)}function np(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)ht=!0;else{if(!Tu(e,a)&&(t.flags&128)===0)return ht=!1,G1(e,t,a);ht=(e.flags&131072)!==0}else ht=!1,ze&&(t.flags&1048576)!==0&&km(t,Fr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=yl(t.elementType),t.type=e,typeof e=="function")Oc(e)?(r=wl(e,r),t.tag=1,t=Fh(null,t,e,r,a)):(t.tag=0,t=bu(null,t,e,r,a));else{if(e!=null){var s=e.$$typeof;if(s===k){t.tag=11,t=Gh(null,t,e,r,a);break e}else if(s===U){t.tag=14,t=Xh(null,t,e,r,a);break e}}throw t=le(e)||e,Error(i(306,t,""))}}return t;case 0:return bu(e,t,t.type,t.pendingProps,a);case 1:return r=t.type,s=wl(r,t.pendingProps),Fh(e,t,r,s,a);case 3:e:{if(re(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var c=t.memoizedState;s=c.element,Qc(e,t),ro(t,r,null,a);var b=t.memoizedState;if(r=b.cache,Ta(t,ft,r),r!==c.cache&&Vc(t,[ft],a,!0),lo(),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=Jh(e,t,r,a);break e}else if(r!==s){s=sn(Error(i(424)),t),Jr(s),t=Jh(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(et=mn(e.firstChild),Nt=t,ze=!0,Na=null,dn=!0,a=Km(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(hl(),r===s){t=la(e,t,a);break e}Tt(e,t,r,a)}t=t.child}return t;case 26:return _i(e,t),e===null?(a=mg(t.type,null,t.pendingProps,null))?t.memoizedState=a:ze||(a=t.type,e=t.pendingProps,r=Qi(ae.current).createElement(a),r[Et]=t,r[Ht]=e,Rt(r,a,e),xt(r),t.stateNode=r):t.memoizedState=mg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Te(t),e===null&&ze&&(r=t.stateNode=ug(t.type,t.pendingProps,ae.current),Nt=t,dn=!0,s=et,Ha(t.type)?(rd=s,et=mn(r.firstChild)):et=s),Tt(e,t,t.pendingProps.children,a),_i(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ze&&((s=r=et)&&(r=xS(r,t.type,t.pendingProps,dn),r!==null?(t.stateNode=r,Nt=t,et=mn(r.firstChild),dn=!1,s=!0):s=!1),s||Ca(t)),Te(t),s=t.type,c=t.pendingProps,b=e!==null?e.memoizedProps:null,r=c.children,ed(s,c)?r=null:b!==null&&ed(s,b)&&(t.flags|=32),t.memoizedState!==null&&(s=Wc(e,t,z1,null,null,a),To._currentValue=s),_i(e,t),Tt(e,t,r,a),t.child;case 6:return e===null&&ze&&((e=a=et)&&(a=SS(a,t.pendingProps,dn),a!==null?(t.stateNode=a,Nt=t,et=null,e=!0):e=!1),e||Ca(t)),null;case 13:return Wh(e,t,a);case 4:return re(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=xl(t,null,r,a):Tt(e,t,r,a),t.child;case 11:return Gh(e,t,t.type,t.pendingProps,a);case 7:return Tt(e,t,t.pendingProps,a),t.child;case 8:return Tt(e,t,t.pendingProps.children,a),t.child;case 12:return Tt(e,t,t.pendingProps.children,a),t.child;case 10:return r=t.pendingProps,Ta(t,t.type,r.value),Tt(e,t,r.children,a),t.child;case 9:return s=t.type._context,r=t.pendingProps.children,gl(t),s=Ct(s),r=r(s),t.flags|=1,Tt(e,t,r,a),t.child;case 14:return Xh(e,t,t.type,t.pendingProps,a);case 15:return Qh(e,t,t.type,t.pendingProps,a);case 19:return tp(e,t,a);case 31:return $1(e,t,a);case 22:return Kh(e,t,a,t.pendingProps);case 24:return gl(t),r=Ct(ft),e===null?(s=$c(),s===null&&(s=Ie,c=qc(),s.pooledCache=c,c.refCount++,c!==null&&(s.pooledCacheLanes|=a),s=c),t.memoizedState={parent:r,cache:s},Xc(t),Ta(t,ft,s)):((e.lanes&a)!==0&&(Qc(e,t),ro(t,null,null,a),lo()),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),Ta(t,ft,r)):(r=c.cache,Ta(t,ft,r),r!==s.cache&&Vc(t,[ft],a,!0))),Tt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ra(e){e.flags|=4}function Ru(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(_p())e.flags|=8192;else throw bl=hi,Gc}else e.flags&=-16777217}function ap(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!yg(t))if(_p())e.flags|=8192;else throw bl=hi,Gc}function Oi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?_t():536870912,e.lanes|=t,fr|=t)}function fo(e,t){if(!ze)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var r=null;a!==null;)a.alternate!==null&&(r=a),a=a.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function tt(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 X1(e,t,a){var r=t.pendingProps;switch(zc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tt(t),null;case 1:return tt(t),null;case 3:return a=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ta(ft),ue(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Wl(t)?ra(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Uc())),tt(t),null;case 26:var s=t.type,c=t.memoizedState;return e===null?(ra(t),c!==null?(tt(t),ap(t,c)):(tt(t),Ru(t,s,null,r,a))):c?c!==e.memoizedState?(ra(t),tt(t),ap(t,c)):(tt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&ra(t),tt(t),Ru(t,s,e,r,a)),null;case 27:if(we(t),a=ae.current,s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ra(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return tt(t),null}e=J.current,Wl(t)?Lm(t):(e=ug(s,r,a),t.stateNode=e,ra(t))}return tt(t),null;case 5:if(we(t),s=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ra(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return tt(t),null}if(c=J.current,Wl(t))Lm(t);else{var b=Qi(ae.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[Et]=t,c[Ht]=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(Rt(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&&ra(t)}}return tt(t),Ru(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ra(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(i(166));if(e=ae.current,Wl(t)){if(e=t.stateNode,a=t.memoizedProps,r=null,s=Nt,s!==null)switch(s.tag){case 27:case 5:r=s.memoizedProps}e[Et]=t,e=!!(e.nodeValue===a||r!==null&&r.suppressHydrationWarning===!0||Wp(e.nodeValue,a)),e||Ca(t,!0)}else e=Qi(e).createTextNode(r),e[Et]=t,t.stateNode=e}return tt(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(r=Wl(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[Et]=t}else hl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;tt(t),e=!1}else a=Uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(Ft(t),t):(Ft(t),null);if((t.flags&128)!==0)throw Error(i(558))}return tt(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(s=Wl(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[Et]=t}else hl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;tt(t),s=!1}else s=Uc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=s),s=!0;if(!s)return t.flags&256?(Ft(t),t):(Ft(t),null)}return Ft(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),Oi(t,t.updateQueue),tt(t),null);case 4:return ue(),e===null&&Pu(t.stateNode.containerInfo),tt(t),null;case 10:return ta(t.type),tt(t),null;case 19:if(X(ut),r=t.memoizedState,r===null)return tt(t),null;if(s=(t.flags&128)!==0,c=r.rendering,c===null)if(s)fo(r,!1);else{if(ct!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=yi(e),c!==null){for(t.flags|=128,fo(r,!1),e=c.updateQueue,t.updateQueue=e,Oi(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Om(a,e),a=a.sibling;return K(ut,ut.current&1|2),ze&&Wn(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&rt()>Li&&(t.flags|=128,s=!0,fo(r,!1),t.lanes=4194304)}else{if(!s)if(e=yi(c),e!==null){if(t.flags|=128,s=!0,e=e.updateQueue,t.updateQueue=e,Oi(t,e),fo(r,!0),r.tail===null&&r.tailMode==="hidden"&&!c.alternate&&!ze)return tt(t),null}else 2*rt()-r.renderingStartTime>Li&&a!==536870912&&(t.flags|=128,s=!0,fo(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=rt(),e.sibling=null,a=ut.current,K(ut,s?a&1|2:a&1),ze&&Wn(t,r.treeForkCount),e):(tt(t),null);case 22:case 23:return Ft(t),Ic(),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&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),a=t.updateQueue,a!==null&&Oi(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(vl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ta(ft),tt(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Q1(e,t){switch(zc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ta(ft),ue(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return we(t),null;case 31:if(t.memoizedState!==null){if(Ft(t),t.alternate===null)throw Error(i(340));hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Ft(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));hl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(ut),null;case 4:return ue(),null;case 10:return ta(t.type),null;case 22:case 23:return Ft(t),Ic(),e!==null&&X(vl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ta(ft),null;case 25:return null;default:return null}}function lp(e,t){switch(zc(t),t.tag){case 3:ta(ft),ue();break;case 26:case 27:case 5:we(t);break;case 4:ue();break;case 31:t.memoizedState!==null&&Ft(t);break;case 13:Ft(t);break;case 19:X(ut);break;case 10:ta(t.type);break;case 22:case 23:Ft(t),Ic(),e!==null&&X(vl);break;case 24:ta(ft)}}function mo(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(w){Qe(t,t.return,w)}}function Ma(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,w=b.destroy;if(w!==void 0){b.destroy=void 0,s=t;var A=a,B=w;try{B()}catch(Q){Qe(s,A,Q)}}}r=r.next}while(r!==c)}}catch(Q){Qe(t,t.return,Q)}}function rp(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Pm(t,a)}catch(r){Qe(e,e.return,r)}}}function op(e,t,a){a.props=wl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(r){Qe(e,t,r)}}function ho(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof a=="function"?e.refCleanup=a(r):a.current=r}}catch(s){Qe(e,t,s)}}function Mn(e,t){var a=e.ref,r=e.refCleanup;if(a!==null)if(typeof r=="function")try{r()}catch(s){Qe(e,t,s)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(s){Qe(e,t,s)}else a.current=null}function ip(e){var t=e.type,a=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&r.focus();break e;case"img":a.src?r.src=a.src:a.srcSet&&(r.srcset=a.srcSet)}}catch(s){Qe(e,e.return,s)}}function Au(e,t,a){try{var r=e.stateNode;hS(r,e.type,a,t),r[Ht]=t}catch(s){Qe(e,e.return,s)}}function sp(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Ha(e.type)||e.tag===4}function _u(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||sp(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&&Ha(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 ju(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=In));else if(r!==4&&(r===27&&Ha(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ju(e,t,a),e=e.sibling;e!==null;)ju(e,t,a),e=e.sibling}function Mi(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&&Ha(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Mi(e,t,a),e=e.sibling;e!==null;)Mi(e,t,a),e=e.sibling}function cp(e){var t=e.stateNode,a=e.memoizedProps;try{for(var r=e.type,s=t.attributes;s.length;)t.removeAttributeNode(s[0]);Rt(t,r,a),t[Et]=e,t[Ht]=a}catch(c){Qe(e,e.return,c)}}var oa=!1,pt=!1,Ou=!1,up=typeof WeakSet=="function"?WeakSet:Set,St=null;function K1(e,t){if(e=e.containerInfo,Ju=Wi,e=wm(e),Nc(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,w=-1,A=-1,B=0,Q=0,P=e,H=null;t:for(;;){for(var Y;P!==a||s!==0&&P.nodeType!==3||(w=b+s),P!==c||r!==0&&P.nodeType!==3||(A=b+r),P.nodeType===3&&(b+=P.nodeValue.length),(Y=P.firstChild)!==null;)H=P,P=Y;for(;;){if(P===e)break t;if(H===a&&++B===s&&(w=b),H===c&&++Q===r&&(A=b),(Y=P.nextSibling)!==null)break;P=H,H=P.parentNode}P=Y}a=w===-1||A===-1?null:{start:w,end:A}}else a=null}a=a||{start:0,end:0}}else a=null;for(Wu={focusedElem:e,selectionRange:a},Wi=!1,St=t;St!==null;)if(t=St,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,St=e;else for(;St!==null;){switch(t=St,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=wl(a.type,s);e=r.getSnapshotBeforeUpdate(fe,c),r.__reactInternalSnapshotBeforeUpdate=e}catch(xe){Qe(a,a.return,xe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)nd(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":nd(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,St=e;break}St=t.return}}function dp(e,t,a){var r=a.flags;switch(a.tag){case 0:case 11:case 15:sa(e,a),r&4&&mo(5,a);break;case 1:if(sa(e,a),r&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(b){Qe(a,a.return,b)}else{var s=wl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(s,t,e.__reactInternalSnapshotBeforeUpdate)}catch(b){Qe(a,a.return,b)}}r&64&&rp(a),r&512&&ho(a,a.return);break;case 3:if(sa(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{Pm(e,t)}catch(b){Qe(a,a.return,b)}}break;case 27:t===null&&r&4&&cp(a);case 26:case 5:sa(e,a),t===null&&r&4&&ip(a),r&512&&ho(a,a.return);break;case 12:sa(e,a);break;case 31:sa(e,a),r&4&&hp(e,a);break;case 13:sa(e,a),r&4&&pp(e,a),r&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=nS.bind(null,a),wS(e,a))));break;case 22:if(r=a.memoizedState!==null||oa,!r){t=t!==null&&t.memoizedState!==null||pt,s=oa;var c=pt;oa=r,(pt=t)&&!c?ca(e,a,(a.subtreeFlags&8772)!==0):sa(e,a),oa=s,pt=c}break;case 30:break;default:sa(e,a)}}function fp(e){var t=e.alternate;t!==null&&(e.alternate=null,fp(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ic(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 at=null,qt=!1;function ia(e,t,a){for(a=a.child;a!==null;)mp(e,t,a),a=a.sibling}function mp(e,t,a){if(Mt&&typeof Mt.onCommitFiberUnmount=="function")try{Mt.onCommitFiberUnmount(rl,a)}catch{}switch(a.tag){case 26:pt||Mn(a,t),ia(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:pt||Mn(a,t);var r=at,s=qt;Ha(a.type)&&(at=a.stateNode,qt=!1),ia(e,t,a),Eo(a.stateNode),at=r,qt=s;break;case 5:pt||Mn(a,t);case 6:if(r=at,s=qt,at=null,ia(e,t,a),at=r,qt=s,at!==null)if(qt)try{(at.nodeType===9?at.body:at.nodeName==="HTML"?at.ownerDocument.body:at).removeChild(a.stateNode)}catch(c){Qe(a,t,c)}else try{at.removeChild(a.stateNode)}catch(c){Qe(a,t,c)}break;case 18:at!==null&&(qt?(e=at,rg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),xr(e)):rg(at,a.stateNode));break;case 4:r=at,s=qt,at=a.stateNode.containerInfo,qt=!0,ia(e,t,a),at=r,qt=s;break;case 0:case 11:case 14:case 15:Ma(2,a,t),pt||Ma(4,a,t),ia(e,t,a);break;case 1:pt||(Mn(a,t),r=a.stateNode,typeof r.componentWillUnmount=="function"&&op(a,t,r)),ia(e,t,a);break;case 21:ia(e,t,a);break;case 22:pt=(r=pt)||a.memoizedState!==null,ia(e,t,a),pt=r;break;default:ia(e,t,a)}}function hp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{xr(e)}catch(a){Qe(t,t.return,a)}}}function pp(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{xr(e)}catch(a){Qe(t,t.return,a)}}function Z1(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new up),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new up),t;default:throw Error(i(435,e.tag))}}function Di(e,t){var a=Z1(e);t.forEach(function(r){if(!a.has(r)){a.add(r);var s=aS.bind(null,e,r);r.then(s,s)}})}function Yt(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,w=b;e:for(;w!==null;){switch(w.tag){case 27:if(Ha(w.type)){at=w.stateNode,qt=!1;break e}break;case 5:at=w.stateNode,qt=!1;break e;case 3:case 4:at=w.stateNode.containerInfo,qt=!0;break e}w=w.return}if(at===null)throw Error(i(160));mp(c,b,s),at=null,qt=!1,c=s.alternate,c!==null&&(c.return=null),s.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)gp(t,e),t=t.sibling}var xn=null;function gp(e,t){var a=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Yt(t,e),$t(e),r&4&&(Ma(3,e,e.return),mo(3,e),Ma(5,e,e.return));break;case 1:Yt(t,e),$t(e),r&512&&(pt||a===null||Mn(a,a.return)),r&64&&oa&&(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=xn;if(Yt(t,e),$t(e),r&512&&(pt||a===null||Mn(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[Vr]||c[Et]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=s.createElement(r),s.head.insertBefore(c,s.querySelector("head > title"))),Rt(c,r,a),c[Et]=e,xt(c),r=c;break e;case"link":var b=gg("link","href",s).get(r+(a.href||""));if(b){for(var w=0;w<b.length;w++)if(c=b[w],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(w,1);break t}}c=s.createElement(r),Rt(c,r,a),s.head.appendChild(c);break;case"meta":if(b=gg("meta","content",s).get(r+(a.content||""))){for(w=0;w<b.length;w++)if(c=b[w],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(w,1);break t}}c=s.createElement(r),Rt(c,r,a),s.head.appendChild(c);break;default:throw Error(i(468,r))}c[Et]=e,xt(c),r=c}e.stateNode=r}else vg(s,e.type,e.stateNode);else e.stateNode=pg(s,r,e.memoizedProps);else c!==r?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,r===null?vg(s,e.type,e.stateNode):pg(s,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Au(e,e.memoizedProps,a.memoizedProps)}break;case 27:Yt(t,e),$t(e),r&512&&(pt||a===null||Mn(a,a.return)),a!==null&&r&4&&Au(e,e.memoizedProps,a.memoizedProps);break;case 5:if(Yt(t,e),$t(e),r&512&&(pt||a===null||Mn(a,a.return)),e.flags&32){s=e.stateNode;try{$l(s,"")}catch(fe){Qe(e,e.return,fe)}}r&4&&e.stateNode!=null&&(s=e.memoizedProps,Au(e,s,a!==null?a.memoizedProps:s)),r&1024&&(Ou=!0);break;case 6:if(Yt(t,e),$t(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,a=e.stateNode;try{a.nodeValue=r}catch(fe){Qe(e,e.return,fe)}}break;case 3:if(Pi=null,s=xn,xn=Ki(t.containerInfo),Yt(t,e),xn=s,$t(e),r&4&&a!==null&&a.memoizedState.isDehydrated)try{xr(t.containerInfo)}catch(fe){Qe(e,e.return,fe)}Ou&&(Ou=!1,vp(e));break;case 4:r=xn,xn=Ki(e.stateNode.containerInfo),Yt(t,e),$t(e),xn=r;break;case 12:Yt(t,e),$t(e);break;case 31:Yt(t,e),$t(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Di(e,r)));break;case 13:Yt(t,e),$t(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(zi=rt()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Di(e,r)));break;case 22:s=e.memoizedState!==null;var A=a!==null&&a.memoizedState!==null,B=oa,Q=pt;if(oa=B||s,pt=Q||A,Yt(t,e),pt=Q,oa=B,$t(e),r&8192)e:for(t=e.stateNode,t._visibility=s?t._visibility&-2:t._visibility|1,s&&(a===null||A||oa||pt||El(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){A=a=t;try{if(c=A.stateNode,s)b=c.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{w=A.stateNode;var P=A.memoizedProps.style,H=P!=null&&P.hasOwnProperty("display")?P.display:null;w.style.display=H==null||typeof H=="boolean"?"":(""+H).trim()}}catch(fe){Qe(A,A.return,fe)}}}else if(t.tag===6){if(a===null){A=t;try{A.stateNode.nodeValue=s?"":A.memoizedProps}catch(fe){Qe(A,A.return,fe)}}}else if(t.tag===18){if(a===null){A=t;try{var Y=A.stateNode;s?og(Y,!0):og(A.stateNode,!1)}catch(fe){Qe(A,A.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,Di(e,a))));break;case 19:Yt(t,e),$t(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,Di(e,r)));break;case 30:break;case 21:break;default:Yt(t,e),$t(e)}}function $t(e){var t=e.flags;if(t&2){try{for(var a,r=e.return;r!==null;){if(sp(r)){a=r;break}r=r.return}if(a==null)throw Error(i(160));switch(a.tag){case 27:var s=a.stateNode,c=_u(e);Mi(e,c,s);break;case 5:var b=a.stateNode;a.flags&32&&($l(b,""),a.flags&=-33);var w=_u(e);Mi(e,w,b);break;case 3:case 4:var A=a.stateNode.containerInfo,B=_u(e);ju(e,B,A);break;default:throw Error(i(161))}}catch(Q){Qe(e,e.return,Q)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vp(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vp(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function sa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)dp(e,t.alternate,t),t=t.sibling}function El(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Ma(4,t,t.return),El(t);break;case 1:Mn(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&op(t,t.return,a),El(t);break;case 27:Eo(t.stateNode);case 26:case 5:Mn(t,t.return),El(t);break;case 22:t.memoizedState===null&&El(t);break;case 30:El(t);break;default:El(t)}e=e.sibling}}function ca(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:ca(s,c,a),mo(4,c);break;case 1:if(ca(s,c,a),r=c,s=r.stateNode,typeof s.componentDidMount=="function")try{s.componentDidMount()}catch(B){Qe(r,r.return,B)}if(r=c,s=r.updateQueue,s!==null){var w=r.stateNode;try{var A=s.shared.hiddenCallbacks;if(A!==null)for(s.shared.hiddenCallbacks=null,s=0;s<A.length;s++)Zm(A[s],w)}catch(B){Qe(r,r.return,B)}}a&&b&64&&rp(c),ho(c,c.return);break;case 27:cp(c);case 26:case 5:ca(s,c,a),a&&r===null&&b&4&&ip(c),ho(c,c.return);break;case 12:ca(s,c,a);break;case 31:ca(s,c,a),a&&b&4&&hp(s,c);break;case 13:ca(s,c,a),a&&b&4&&pp(s,c);break;case 22:c.memoizedState===null&&ca(s,c,a),ho(c,c.return);break;case 30:break;default:ca(s,c,a)}t=t.sibling}}function Mu(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&&Wr(a))}function Du(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Wr(e))}function Sn(e,t,a,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)yp(e,t,a,r),t=t.sibling}function yp(e,t,a,r){var s=t.flags;switch(t.tag){case 0:case 11:case 15:Sn(e,t,a,r),s&2048&&mo(9,t);break;case 1:Sn(e,t,a,r);break;case 3:Sn(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&&Wr(e)));break;case 12:if(s&2048){Sn(e,t,a,r),e=t.stateNode;try{var c=t.memoizedProps,b=c.id,w=c.onPostCommit;typeof w=="function"&&w(b,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(A){Qe(t,t.return,A)}}else Sn(e,t,a,r);break;case 31:Sn(e,t,a,r);break;case 13:Sn(e,t,a,r);break;case 23:break;case 22:c=t.stateNode,b=t.alternate,t.memoizedState!==null?c._visibility&2?Sn(e,t,a,r):po(e,t):c._visibility&2?Sn(e,t,a,r):(c._visibility|=2,cr(e,t,a,r,(t.subtreeFlags&10256)!==0||!1)),s&2048&&Mu(b,t);break;case 24:Sn(e,t,a,r),s&2048&&Du(t.alternate,t);break;default:Sn(e,t,a,r)}}function cr(e,t,a,r,s){for(s=s&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,b=t,w=a,A=r,B=b.flags;switch(b.tag){case 0:case 11:case 15:cr(c,b,w,A,s),mo(8,b);break;case 23:break;case 22:var Q=b.stateNode;b.memoizedState!==null?Q._visibility&2?cr(c,b,w,A,s):po(c,b):(Q._visibility|=2,cr(c,b,w,A,s)),s&&B&2048&&Mu(b.alternate,b);break;case 24:cr(c,b,w,A,s),s&&B&2048&&Du(b.alternate,b);break;default:cr(c,b,w,A,s)}t=t.sibling}}function po(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:po(a,r),s&2048&&Mu(r.alternate,r);break;case 24:po(a,r),s&2048&&Du(r.alternate,r);break;default:po(a,r)}t=t.sibling}}var go=8192;function ur(e,t,a){if(e.subtreeFlags&go)for(e=e.child;e!==null;)bp(e,t,a),e=e.sibling}function bp(e,t,a){switch(e.tag){case 26:ur(e,t,a),e.flags&go&&e.memoizedState!==null&&kS(a,xn,e.memoizedState,e.memoizedProps);break;case 5:ur(e,t,a);break;case 3:case 4:var r=xn;xn=Ki(e.stateNode.containerInfo),ur(e,t,a),xn=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=go,go=16777216,ur(e,t,a),go=r):ur(e,t,a));break;default:ur(e,t,a)}}function xp(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 vo(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];St=r,wp(r,e)}xp(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Sp(e),e=e.sibling}function Sp(e){switch(e.tag){case 0:case 11:case 15:vo(e),e.flags&2048&&Ma(9,e,e.return);break;case 3:vo(e);break;case 12:vo(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,ki(e)):vo(e);break;default:vo(e)}}function ki(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];St=r,wp(r,e)}xp(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Ma(8,t,t.return),ki(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,ki(t));break;default:ki(t)}e=e.sibling}}function wp(e,t){for(;St!==null;){var a=St;switch(a.tag){case 0:case 11:case 15:Ma(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:Wr(a.memoizedState.cache)}if(r=a.child,r!==null)r.return=a,St=r;else e:for(a=e;St!==null;){r=St;var s=r.sibling,c=r.return;if(fp(r),r===a){St=null;break e}if(s!==null){s.return=c,St=s;break e}St=c}}}var P1={getCacheForType:function(e){var t=Ct(ft),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Ct(ft).controller.signal}},I1=typeof WeakMap=="function"?WeakMap:Map,qe=0,Ie=null,je=null,De=0,Xe=0,Jt=null,Da=!1,dr=!1,ku=!1,ua=0,ct=0,ka=0,Nl=0,zu=0,Wt=0,fr=0,yo=null,Gt=null,Lu=!1,zi=0,Ep=0,Li=1/0,Ui=null,za=null,gt=0,La=null,mr=null,da=0,Uu=0,Bu=null,Np=null,bo=0,Hu=null;function en(){return(qe&2)!==0&&De!==0?De&-De:O.T!==null?Xu():rc()}function Cp(){if(Wt===0)if((De&536870912)===0||ze){var e=zl;zl<<=1,(zl&3932160)===0&&(zl=262144),Wt=e}else Wt=536870912;return e=It.current,e!==null&&(e.flags|=32),Wt}function Xt(e,t,a){(e===Ie&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)&&(hr(e,0),Ua(e,De,Wt,!1)),ot(e,a),((qe&2)===0||e!==Ie)&&(e===Ie&&((qe&2)===0&&(Nl|=a),ct===4&&Ua(e,De,Wt,!1)),Dn(e))}function Tp(e,t,a){if((qe&6)!==0)throw Error(i(327));var r=!a&&(t&127)===0&&(t&e.expiredLanes)===0||nt(e,t),s=r?W1(e,t):qu(e,t,!0),c=r;do{if(s===0){dr&&!r&&Ua(e,t,0,!1);break}else{if(a=e.current.alternate,c&&!F1(a)){s=qu(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 w=e;s=yo;var A=w.current.memoizedState.isDehydrated;if(A&&(hr(w,b).flags|=256),b=qu(w,b,!1),b!==2){if(ku&&!A){w.errorRecoveryDisabledLanes|=c,Nl|=c,s=4;break e}c=Gt,Gt=s,c!==null&&(Gt===null?Gt=c:Gt.push.apply(Gt,c))}s=b}if(c=!1,s!==2)continue}}if(s===1){hr(e,0),Ua(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:Ua(r,t,Wt,!Da);break e;case 2:Gt=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(s=zi+300-rt(),10<s)){if(Ua(r,t,Wt,!Da),Ee(r,0,!0)!==0)break e;da=t,r.timeoutHandle=ag(Rp.bind(null,r,a,Gt,Ui,Lu,t,Wt,Nl,fr,Da,c,"Throttled",-0,0),s);break e}Rp(r,a,Gt,Ui,Lu,t,Wt,Nl,fr,Da,c,null,-0,0)}}break}while(!0);Dn(e)}function Rp(e,t,a,r,s,c,b,w,A,B,Q,P,H,Y){if(e.timeoutHandle=-1,P=t.subtreeFlags,P&8192||(P&16785408)===16785408){P={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:In},bp(t,c,P);var fe=(c&62914560)===c?zi-rt():(c&4194048)===c?Ep-rt():0;if(fe=zS(P,fe),fe!==null){da=c,e.cancelPendingCommit=fe(zp.bind(null,e,t,c,a,r,s,b,w,A,Q,P,null,H,Y)),Ua(e,c,b,!B);return}}zp(e,t,c,a,r,s,b,w,A)}function F1(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(!Zt(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 Ua(e,t,a,r){t&=~zu,t&=~Nl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var s=t;0<s;){var c=31-At(s),b=1<<c;r[c]=-1,s&=~b}a!==0&&il(e,a,t)}function Bi(){return(qe&6)===0?(xo(0),!1):!0}function Vu(){if(je!==null){if(Xe===0)var e=je.return;else e=je,ea=pl=null,nu(e),lr=null,to=0,e=je;for(;e!==null;)lp(e.alternate,e),e=e.return;je=null}}function hr(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,vS(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),da=0,Vu(),Ie=e,je=a=Jn(e.current,null),De=t,Xe=0,Jt=null,Da=!1,dr=nt(e,t),ku=!1,fr=Wt=zu=Nl=ka=ct=0,Gt=yo=null,Lu=!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-At(r),c=1<<s;t|=e[s],r&=~c}return ua=t,ri(),a}function Ap(e,t){Re=null,O.H=co,t===ar||t===mi?(t=Gm(),Xe=3):t===Gc?(t=Gm(),Xe=4):Xe=t===yu?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Jt=t,je===null&&(ct=1,Ri(e,sn(t,e.current)))}function _p(){var e=It.current;return e===null?!0:(De&4194048)===De?fn===null:(De&62914560)===De||(De&536870912)!==0?e===fn:!1}function jp(){var e=O.H;return O.H=co,e===null?co:e}function Op(){var e=O.A;return O.A=P1,e}function Hi(){ct=4,Da||(De&4194048)!==De&&It.current!==null||(dr=!0),(ka&134217727)===0&&(Nl&134217727)===0||Ie===null||Ua(Ie,De,Wt,!1)}function qu(e,t,a){var r=qe;qe|=2;var s=jp(),c=Op();(Ie!==e||De!==t)&&(Ui=null,hr(e,t)),t=!1;var b=ct;e:do try{if(Xe!==0&&je!==null){var w=je,A=Jt;switch(Xe){case 8:Vu(),b=6;break e;case 3:case 2:case 9:case 6:It.current===null&&(t=!0);var B=Xe;if(Xe=0,Jt=null,pr(e,w,A,B),a&&dr){b=0;break e}break;default:B=Xe,Xe=0,Jt=null,pr(e,w,A,B)}}J1(),b=ct;break}catch(Q){Ap(e,Q)}while(!0);return t&&e.shellSuspendCounter++,ea=pl=null,qe=r,O.H=s,O.A=c,je===null&&(Ie=null,De=0,ri()),b}function J1(){for(;je!==null;)Mp(je)}function W1(e,t){var a=qe;qe|=2;var r=jp(),s=Op();Ie!==e||De!==t?(Ui=null,Li=rt()+500,hr(e,t)):dr=nt(e,t);e:do try{if(Xe!==0&&je!==null){t=je;var c=Jt;t:switch(Xe){case 1:Xe=0,Jt=null,pr(e,t,c,1);break;case 2:case 9:if(Ym(c)){Xe=0,Jt=null,Dp(t);break}t=function(){Xe!==2&&Xe!==9||Ie!==e||(Xe=7),Dn(e)},c.then(t,t);break e;case 3:Xe=7;break e;case 4:Xe=5;break e;case 7:Ym(c)?(Xe=0,Jt=null,Dp(t)):(Xe=0,Jt=null,pr(e,t,c,7));break;case 5:var b=null;switch(je.tag){case 26:b=je.memoizedState;case 5:case 27:var w=je;if(b?yg(b):w.stateNode.complete){Xe=0,Jt=null;var A=w.sibling;if(A!==null)je=A;else{var B=w.return;B!==null?(je=B,Vi(B)):je=null}break t}}Xe=0,Jt=null,pr(e,t,c,5);break;case 6:Xe=0,Jt=null,pr(e,t,c,6);break;case 8:Vu(),ct=6;break e;default:throw Error(i(462))}}eS();break}catch(Q){Ap(e,Q)}while(!0);return ea=pl=null,O.H=r,O.A=s,qe=a,je!==null?0:(Ie=null,De=0,ri(),ct)}function eS(){for(;je!==null&&!Be();)Mp(je)}function Mp(e){var t=np(e.alternate,e,ua);e.memoizedProps=e.pendingProps,t===null?Vi(e):je=t}function Dp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=Ih(a,t,t.pendingProps,t.type,void 0,De);break;case 11:t=Ih(a,t,t.pendingProps,t.type.render,t.ref,De);break;case 5:nu(t);default:lp(a,t),t=je=Om(t,ua),t=np(a,t,ua)}e.memoizedProps=e.pendingProps,t===null?Vi(e):je=t}function pr(e,t,a,r){ea=pl=null,nu(t),lr=null,to=0;var s=t.return;try{if(Y1(e,s,t,a,De)){ct=1,Ri(e,sn(a,e.current)),je=null;return}}catch(c){if(s!==null)throw je=s,c;ct=1,Ri(e,sn(a,e.current)),je=null;return}t.flags&32768?(ze||r===1?e=!0:dr||(De&536870912)!==0?e=!1:(Da=e=!0,(r===2||r===9||r===3||r===6)&&(r=It.current,r!==null&&r.tag===13&&(r.flags|=16384))),kp(t,e)):Vi(t)}function Vi(e){var t=e;do{if((t.flags&32768)!==0){kp(t,Da);return}e=t.return;var a=X1(t.alternate,t,ua);if(a!==null){je=a;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);ct===0&&(ct=5)}function kp(e,t){do{var a=Q1(e.alternate,e);if(a!==null){a.flags&=32767,je=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=a}while(e!==null);ct=6,je=null}function zp(e,t,a,r,s,c,b,w,A){e.cancelPendingCommit=null;do qi();while(gt!==0);if((qe&6)!==0)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(c=t.lanes|t.childLanes,c|=_c,Lt(e,a,c,b,w,A),e===Ie&&(je=Ie=null,De=0),mr=t,La=e,da=a,Uu=c,Bu=s,Np=r,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,lS(ll,function(){return Vp(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||r){r=O.T,O.T=null,s=G.p,G.p=2,b=qe,qe|=4;try{K1(e,t,a)}finally{qe=b,G.p=s,O.T=r}}gt=1,Lp(),Up(),Bp()}}function Lp(){if(gt===1){gt=0;var e=La,t=mr,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=O.T,O.T=null;var r=G.p;G.p=2;var s=qe;qe|=4;try{gp(t,e);var c=Wu,b=wm(e.containerInfo),w=c.focusedElem,A=c.selectionRange;if(b!==w&&w&&w.ownerDocument&&Sm(w.ownerDocument.documentElement,w)){if(A!==null&&Nc(w)){var B=A.start,Q=A.end;if(Q===void 0&&(Q=B),"selectionStart"in w)w.selectionStart=B,w.selectionEnd=Math.min(Q,w.value.length);else{var P=w.ownerDocument||document,H=P&&P.defaultView||window;if(H.getSelection){var Y=H.getSelection(),fe=w.textContent.length,xe=Math.min(A.start,fe),Pe=A.end===void 0?xe:Math.min(A.end,fe);!Y.extend&&xe>Pe&&(b=Pe,Pe=xe,xe=b);var z=xm(w,xe),D=xm(w,Pe);if(z&&D&&(Y.rangeCount!==1||Y.anchorNode!==z.node||Y.anchorOffset!==z.offset||Y.focusNode!==D.node||Y.focusOffset!==D.offset)){var L=P.createRange();L.setStart(z.node,z.offset),Y.removeAllRanges(),xe>Pe?(Y.addRange(L),Y.extend(D.node,D.offset)):(L.setEnd(D.node,D.offset),Y.addRange(L))}}}}for(P=[],Y=w;Y=Y.parentNode;)Y.nodeType===1&&P.push({element:Y,left:Y.scrollLeft,top:Y.scrollTop});for(typeof w.focus=="function"&&w.focus(),w=0;w<P.length;w++){var Z=P[w];Z.element.scrollLeft=Z.left,Z.element.scrollTop=Z.top}}Wi=!!Ju,Wu=Ju=null}finally{qe=s,G.p=r,O.T=a}}e.current=t,gt=2}}function Up(){if(gt===2){gt=0;var e=La,t=mr,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=O.T,O.T=null;var r=G.p;G.p=2;var s=qe;qe|=4;try{dp(e,t.alternate,t)}finally{qe=s,G.p=r,O.T=a}}gt=3}}function Bp(){if(gt===4||gt===3){gt=0,zt();var e=La,t=mr,a=da,r=Np;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?gt=5:(gt=0,mr=La=null,Hp(e,e.pendingLanes));var s=e.pendingLanes;if(s===0&&(za=null),yn(a),t=t.stateNode,Mt&&typeof Mt.onCommitFiberRoot=="function")try{Mt.onCommitFiberRoot(rl,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=O.T,s=G.p,G.p=2,O.T=null;try{for(var c=e.onRecoverableError,b=0;b<r.length;b++){var w=r[b];c(w.value,{componentStack:w.stack})}}finally{O.T=t,G.p=s}}(da&3)!==0&&qi(),Dn(e),s=e.pendingLanes,(a&261930)!==0&&(s&42)!==0?e===Hu?bo++:(bo=0,Hu=e):bo=0,xo(0)}}function Hp(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Wr(t)))}function qi(){return Lp(),Up(),Bp(),Vp()}function Vp(){if(gt!==5)return!1;var e=La,t=Uu;Uu=0;var a=yn(da),r=O.T,s=G.p;try{G.p=32>a?32:a,O.T=null,a=Bu,Bu=null;var c=La,b=da;if(gt=0,mr=La=null,da=0,(qe&6)!==0)throw Error(i(331));var w=qe;if(qe|=4,Sp(c.current),yp(c,c.current,b,a),qe=w,xo(0,!1),Mt&&typeof Mt.onPostCommitFiberRoot=="function")try{Mt.onPostCommitFiberRoot(rl,c)}catch{}return!0}finally{G.p=s,O.T=r,Hp(e,t)}}function qp(e,t,a){t=sn(a,t),t=vu(e.stateNode,t,2),e=_a(e,t,2),e!==null&&(ot(e,2),Dn(e))}function Qe(e,t,a){if(e.tag===3)qp(e,e,a);else for(;t!==null;){if(t.tag===3){qp(t,e,a);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(za===null||!za.has(r))){e=sn(a,e),a=Yh(2),r=_a(t,a,2),r!==null&&($h(a,r,t,e),ot(r,2),Dn(r));break}}t=t.return}}function Yu(e,t,a){var r=e.pingCache;if(r===null){r=e.pingCache=new I1;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)||(ku=!0,s.add(a),e=tS.bind(null,e,t,a),t.then(e,e))}function tS(e,t,a){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ie===e&&(De&a)===a&&(ct===4||ct===3&&(De&62914560)===De&&300>rt()-zi?(qe&2)===0&&hr(e,0):zu|=a,fr===De&&(fr=0)),Dn(e)}function Yp(e,t){t===0&&(t=_t()),e=fl(e,t),e!==null&&(ot(e,t),Dn(e))}function nS(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),Yp(e,a)}function aS(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),Yp(e,a)}function lS(e,t){return Kt(e,t)}var Yi=null,gr=null,$u=!1,$i=!1,Gu=!1,Ba=0;function Dn(e){e!==gr&&e.next===null&&(gr===null?Yi=gr=e:gr=gr.next=e),$i=!0,$u||($u=!0,oS())}function xo(e,t){if(!Gu&&$i){Gu=!0;do for(var a=!1,r=Yi;r!==null;){if(e!==0){var s=r.pendingLanes;if(s===0)var c=0;else{var b=r.suspendedLanes,w=r.pingedLanes;c=(1<<31-At(42|e)+1)-1,c&=s&~(b&~w),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Qp(r,c))}else c=De,c=Ee(r,r===Ie?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),(c&3)===0||nt(r,c)||(a=!0,Qp(r,c));r=r.next}while(a);Gu=!1}}function rS(){$p()}function $p(){$i=$u=!1;var e=0;Ba!==0&&gS()&&(e=Ba);for(var t=rt(),a=null,r=Yi;r!==null;){var s=r.next,c=Gp(r,t);c===0?(r.next=null,a===null?Yi=s:a.next=s,s===null&&(gr=a)):(a=r,(e!==0||(c&3)!==0)&&($i=!0)),r=s}gt!==0&>!==5||xo(e),Ba!==0&&(Ba=0)}function Gp(e,t){for(var a=e.suspendedLanes,r=e.pingedLanes,s=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var b=31-At(c),w=1<<b,A=s[b];A===-1?((w&a)===0||(w&r)!==0)&&(s[b]=bt(w,t)):A<=t&&(e.expiredLanes|=w),c&=~w}if(t=Ie,a=De,a=Ee(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,a===0||e===t&&(Xe===2||Xe===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Rn(r),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||nt(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(r!==null&&Rn(r),yn(a)){case 2:case 8:a=Qo;break;case 32:a=ll;break;case 268435456:a=Zn;break;default:a=ll}return r=Xp.bind(null,e),a=Kt(a,r),e.callbackPriority=t,e.callbackNode=a,t}return r!==null&&r!==null&&Rn(r),e.callbackPriority=2,e.callbackNode=null,2}function Xp(e,t){if(gt!==0&>!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(qi()&&e.callbackNode!==a)return null;var r=De;return r=Ee(e,e===Ie?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Tp(e,r,t),Gp(e,rt()),e.callbackNode!=null&&e.callbackNode===a?Xp.bind(null,e):null)}function Qp(e,t){if(qi())return null;Tp(e,t,!0)}function oS(){yS(function(){(qe&6)!==0?Kt(al,rS):$p()})}function Xu(){if(Ba===0){var e=tr;e===0&&(e=kl,kl<<=1,(kl&261888)===0&&(kl=256)),Ba=e}return Ba}function Kp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Fo(""+e)}function Zp(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 iS(e,t,a,r,s){if(t==="submit"&&a&&a.stateNode===s){var c=Kp((s[Ht]||null).action),b=r.submitter;b&&(t=(t=b[Ht]||null)?Kp(t.formAction):b.getAttribute("formAction"),t!==null&&(c=t,b=null));var w=new ti("action","action",null,r,s);e.push({event:w,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ba!==0){var A=b?Zp(s,b):new FormData(s);du(a,{pending:!0,data:A,method:s.method,action:c},null,A)}}else typeof c=="function"&&(w.preventDefault(),A=b?Zp(s,b):new FormData(s),du(a,{pending:!0,data:A,method:s.method,action:c},c,A))},currentTarget:s}]})}}for(var Qu=0;Qu<Ac.length;Qu++){var Ku=Ac[Qu],sS=Ku.toLowerCase(),cS=Ku[0].toUpperCase()+Ku.slice(1);bn(sS,"on"+cS)}bn(Cm,"onAnimationEnd"),bn(Tm,"onAnimationIteration"),bn(Rm,"onAnimationStart"),bn("dblclick","onDoubleClick"),bn("focusin","onFocus"),bn("focusout","onBlur"),bn(C1,"onTransitionRun"),bn(T1,"onTransitionStart"),bn(R1,"onTransitionCancel"),bn(Am,"onTransitionEnd"),ql("onMouseEnter",["mouseout","mouseover"]),ql("onMouseLeave",["mouseout","mouseover"]),ql("onPointerEnter",["pointerout","pointerover"]),ql("onPointerLeave",["pointerout","pointerover"]),sl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),sl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),sl("onBeforeInput",["compositionend","keypress","textInput","paste"]),sl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),sl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),sl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var So="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(" "),uS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(So));function Pp(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 w=r[b],A=w.instance,B=w.currentTarget;if(w=w.listener,A!==c&&s.isPropagationStopped())break e;c=w,s.currentTarget=B;try{c(s)}catch(Q){li(Q)}s.currentTarget=null,c=A}else for(b=0;b<r.length;b++){if(w=r[b],A=w.instance,B=w.currentTarget,w=w.listener,A!==c&&s.isPropagationStopped())break e;c=w,s.currentTarget=B;try{c(s)}catch(Q){li(Q)}s.currentTarget=null,c=A}}}}function Oe(e,t){var a=t[oc];a===void 0&&(a=t[oc]=new Set);var r=e+"__bubble";a.has(r)||(Ip(t,e,2,!1),a.add(r))}function Zu(e,t,a){var r=0;t&&(r|=4),Ip(a,e,r,t)}var Gi="_reactListening"+Math.random().toString(36).slice(2);function Pu(e){if(!e[Gi]){e[Gi]=!0,$f.forEach(function(a){a!=="selectionchange"&&(uS.has(a)||Zu(a,!1,e),Zu(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Gi]||(t[Gi]=!0,Zu("selectionchange",!1,t))}}function Ip(e,t,a,r){switch(Cg(t)){case 2:var s=BS;break;case 8:s=HS;break;default:s=ud}a=s.bind(null,t,a,e),s=void 0,!pc||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 Iu(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 w=r.stateNode.containerInfo;if(w===s)break;if(b===4)for(b=r.return;b!==null;){var A=b.tag;if((A===3||A===4)&&b.stateNode.containerInfo===s)return;b=b.return}for(;w!==null;){if(b=Bl(w),b===null)return;if(A=b.tag,A===5||A===6||A===26||A===27){r=c=b;continue e}w=w.parentNode}}r=r.return}tm(function(){var B=c,Q=mc(a),P=[];e:{var H=_m.get(e);if(H!==void 0){var Y=ti,fe=e;switch(e){case"keypress":if(Wo(a)===0)break e;case"keydown":case"keyup":Y=a1;break;case"focusin":fe="focus",Y=bc;break;case"focusout":fe="blur",Y=bc;break;case"beforeblur":case"afterblur":Y=bc;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=lm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=Xx;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=o1;break;case Cm:case Tm:case Rm:Y=Zx;break;case Am:Y=s1;break;case"scroll":case"scrollend":Y=$x;break;case"wheel":Y=u1;break;case"copy":case"cut":case"paste":Y=Ix;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=om;break;case"toggle":case"beforetoggle":Y=f1}var xe=(t&4)!==0,Pe=!xe&&(e==="scroll"||e==="scrollend"),z=xe?H!==null?H+"Capture":null:H;xe=[];for(var D=B,L;D!==null;){var Z=D;if(L=Z.stateNode,Z=Z.tag,Z!==5&&Z!==26&&Z!==27||L===null||z===null||(Z=Yr(D,z),Z!=null&&xe.push(wo(D,Z,L))),Pe)break;D=D.return}0<xe.length&&(H=new Y(H,fe,null,a,Q),P.push({event:H,listeners:xe}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",Y=e==="mouseout"||e==="pointerout",H&&a!==fc&&(fe=a.relatedTarget||a.fromElement)&&(Bl(fe)||fe[Ul]))break e;if((Y||H)&&(H=Q.window===Q?Q:(H=Q.ownerDocument)?H.defaultView||H.parentWindow:window,Y?(fe=a.relatedTarget||a.toElement,Y=B,fe=fe?Bl(fe):null,fe!==null&&(Pe=d(fe),xe=fe.tag,fe!==Pe||xe!==5&&xe!==27&&xe!==6)&&(fe=null)):(Y=null,fe=B),Y!==fe)){if(xe=lm,Z="onMouseLeave",z="onMouseEnter",D="mouse",(e==="pointerout"||e==="pointerover")&&(xe=om,Z="onPointerLeave",z="onPointerEnter",D="pointer"),Pe=Y==null?H:qr(Y),L=fe==null?H:qr(fe),H=new xe(Z,D+"leave",Y,a,Q),H.target=Pe,H.relatedTarget=L,Z=null,Bl(Q)===B&&(xe=new xe(z,D+"enter",fe,a,Q),xe.target=L,xe.relatedTarget=Pe,Z=xe),Pe=Z,Y&&fe)t:{for(xe=dS,z=Y,D=fe,L=0,Z=z;Z;Z=xe(Z))L++;Z=0;for(var ye=D;ye;ye=xe(ye))Z++;for(;0<L-Z;)z=xe(z),L--;for(;0<Z-L;)D=xe(D),Z--;for(;L--;){if(z===D||D!==null&&z===D.alternate){xe=z;break t}z=xe(z),D=xe(D)}xe=null}else xe=null;Y!==null&&Fp(P,H,Y,xe,!1),fe!==null&&Pe!==null&&Fp(P,Pe,fe,xe,!0)}}e:{if(H=B?qr(B):window,Y=H.nodeName&&H.nodeName.toLowerCase(),Y==="select"||Y==="input"&&H.type==="file")var He=hm;else if(fm(H))if(pm)He=w1;else{He=x1;var pe=b1}else Y=H.nodeName,!Y||Y.toLowerCase()!=="input"||H.type!=="checkbox"&&H.type!=="radio"?B&&dc(B.elementType)&&(He=hm):He=S1;if(He&&(He=He(e,B))){mm(P,He,a,Q);break e}pe&&pe(e,H,B),e==="focusout"&&B&&H.type==="number"&&B.memoizedProps.value!=null&&uc(H,"number",H.value)}switch(pe=B?qr(B):window,e){case"focusin":(fm(pe)||pe.contentEditable==="true")&&(Kl=pe,Cc=B,Ir=null);break;case"focusout":Ir=Cc=Kl=null;break;case"mousedown":Tc=!0;break;case"contextmenu":case"mouseup":case"dragend":Tc=!1,Em(P,a,Q);break;case"selectionchange":if(N1)break;case"keydown":case"keyup":Em(P,a,Q)}var Ae;if(Sc)e:{switch(e){case"compositionstart":var ke="onCompositionStart";break e;case"compositionend":ke="onCompositionEnd";break e;case"compositionupdate":ke="onCompositionUpdate";break e}ke=void 0}else Ql?um(e,a)&&(ke="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(ke="onCompositionStart");ke&&(im&&a.locale!=="ko"&&(Ql||ke!=="onCompositionStart"?ke==="onCompositionEnd"&&Ql&&(Ae=nm()):(wa=Q,gc="value"in wa?wa.value:wa.textContent,Ql=!0)),pe=Xi(B,ke),0<pe.length&&(ke=new rm(ke,e,null,a,Q),P.push({event:ke,listeners:pe}),Ae?ke.data=Ae:(Ae=dm(a),Ae!==null&&(ke.data=Ae)))),(Ae=h1?p1(e,a):g1(e,a))&&(ke=Xi(B,"onBeforeInput"),0<ke.length&&(pe=new rm("onBeforeInput","beforeinput",null,a,Q),P.push({event:pe,listeners:ke}),pe.data=Ae)),iS(P,e,B,a,Q)}Pp(P,t)})}function wo(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Xi(e,t){for(var a=t+"Capture",r=[];e!==null;){var s=e,c=s.stateNode;if(s=s.tag,s!==5&&s!==26&&s!==27||c===null||(s=Yr(e,a),s!=null&&r.unshift(wo(e,s,c)),s=Yr(e,t),s!=null&&r.push(wo(e,s,c))),e.tag===3)return r;e=e.return}return[]}function dS(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Fp(e,t,a,r,s){for(var c=t._reactName,b=[];a!==null&&a!==r;){var w=a,A=w.alternate,B=w.stateNode;if(w=w.tag,A!==null&&A===r)break;w!==5&&w!==26&&w!==27||B===null||(A=B,s?(B=Yr(a,c),B!=null&&b.unshift(wo(a,B,A))):s||(B=Yr(a,c),B!=null&&b.push(wo(a,B,A)))),a=a.return}b.length!==0&&e.push({event:t,listeners:b})}var fS=/\r\n?/g,mS=/\u0000|\uFFFD/g;function Jp(e){return(typeof e=="string"?e:""+e).replace(fS,`
|
|
50
|
+
`).replace(mS,"")}function Wp(e,t){return t=Jp(t),Jp(e)===t}function Ze(e,t,a,r,s,c){switch(a){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||$l(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&$l(e,""+r);break;case"className":Po(e,"class",r);break;case"tabIndex":Po(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Po(e,a,r);break;case"style":Wf(e,r,c);break;case"data":if(t!=="object"){Po(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=Fo(""+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"&&Ze(e,t,"name",s.name,s,null),Ze(e,t,"formEncType",s.formEncType,s,null),Ze(e,t,"formMethod",s.formMethod,s,null),Ze(e,t,"formTarget",s.formTarget,s,null)):(Ze(e,t,"encType",s.encType,s,null),Ze(e,t,"method",s.method,s,null),Ze(e,t,"target",s.target,s,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(a);break}r=Fo(""+r),e.setAttribute(a,r);break;case"onClick":r!=null&&(e.onclick=In);break;case"onScroll":r!=null&&Oe("scroll",e);break;case"onScrollEnd":r!=null&&Oe("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(i(61));if(a=r.__html,a!=null){if(s.children!=null)throw Error(i(60));e.innerHTML=a}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}a=Fo(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""+r):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":r===!0?e.setAttribute(a,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(a,r):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(a,r):e.removeAttribute(a);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(a):e.setAttribute(a,r);break;case"popover":Oe("beforetoggle",e),Oe("toggle",e),Zo(e,"popover",r);break;case"xlinkActuate":Pn(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Pn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Pn(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Pn(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Pn(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Pn(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Pn(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Pn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Pn(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Zo(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=qx.get(a)||a,Zo(e,a,r))}}function Fu(e,t,a,r,s,c){switch(a){case"style":Wf(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"?$l(e,r):(typeof r=="number"||typeof r=="bigint")&&$l(e,""+r);break;case"onScroll":r!=null&&Oe("scroll",e);break;case"onScrollEnd":r!=null&&Oe("scrollend",e);break;case"onClick":r!=null&&(e.onclick=In);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Gf.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[Ht]||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,""):Zo(e,a,r)}}}function Rt(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Oe("error",e),Oe("load",e);var r=!1,s=!1,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:Ze(e,t,c,b,a,null)}}s&&Ze(e,t,"srcSet",a.srcSet,a,null),r&&Ze(e,t,"src",a.src,a,null);return;case"input":Oe("invalid",e);var w=c=b=s=null,A=null,B=null;for(r in a)if(a.hasOwnProperty(r)){var Q=a[r];if(Q!=null)switch(r){case"name":s=Q;break;case"type":b=Q;break;case"checked":A=Q;break;case"defaultChecked":B=Q;break;case"value":c=Q;break;case"defaultValue":w=Q;break;case"children":case"dangerouslySetInnerHTML":if(Q!=null)throw Error(i(137,t));break;default:Ze(e,t,r,Q,a,null)}}Pf(e,c,w,A,B,b,s,!1);return;case"select":Oe("invalid",e),r=b=c=null;for(s in a)if(a.hasOwnProperty(s)&&(w=a[s],w!=null))switch(s){case"value":c=w;break;case"defaultValue":b=w;break;case"multiple":r=w;default:Ze(e,t,s,w,a,null)}t=c,a=b,e.multiple=!!r,t!=null?Yl(e,!!r,t,!1):a!=null&&Yl(e,!!r,a,!0);return;case"textarea":Oe("invalid",e),c=s=r=null;for(b in a)if(a.hasOwnProperty(b)&&(w=a[b],w!=null))switch(b){case"value":r=w;break;case"defaultValue":s=w;break;case"children":c=w;break;case"dangerouslySetInnerHTML":if(w!=null)throw Error(i(91));break;default:Ze(e,t,b,w,a,null)}Ff(e,r,s,c);return;case"option":for(A in a)if(a.hasOwnProperty(A)&&(r=a[A],r!=null))switch(A){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Ze(e,t,A,r,a,null)}return;case"dialog":Oe("beforetoggle",e),Oe("toggle",e),Oe("cancel",e),Oe("close",e);break;case"iframe":case"object":Oe("load",e);break;case"video":case"audio":for(r=0;r<So.length;r++)Oe(So[r],e);break;case"image":Oe("error",e),Oe("load",e);break;case"details":Oe("toggle",e);break;case"embed":case"source":case"link":Oe("error",e),Oe("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in a)if(a.hasOwnProperty(B)&&(r=a[B],r!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(i(137,t));default:Ze(e,t,B,r,a,null)}return;default:if(dc(t)){for(Q in a)a.hasOwnProperty(Q)&&(r=a[Q],r!==void 0&&Fu(e,t,Q,r,a,void 0));return}}for(w in a)a.hasOwnProperty(w)&&(r=a[w],r!=null&&Ze(e,t,w,r,a,null))}function hS(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,w=null,A=null,B=null,Q=null;for(Y in a){var P=a[Y];if(a.hasOwnProperty(Y)&&P!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":A=P;default:r.hasOwnProperty(Y)||Ze(e,t,Y,null,r,P)}}for(var H in r){var Y=r[H];if(P=a[H],r.hasOwnProperty(H)&&(Y!=null||P!=null))switch(H){case"type":c=Y;break;case"name":s=Y;break;case"checked":B=Y;break;case"defaultChecked":Q=Y;break;case"value":b=Y;break;case"defaultValue":w=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(i(137,t));break;default:Y!==P&&Ze(e,t,H,Y,r,P)}}cc(e,b,w,A,B,Q,c,s);return;case"select":Y=b=w=H=null;for(c in a)if(A=a[c],a.hasOwnProperty(c)&&A!=null)switch(c){case"value":break;case"multiple":Y=A;default:r.hasOwnProperty(c)||Ze(e,t,c,null,r,A)}for(s in r)if(c=r[s],A=a[s],r.hasOwnProperty(s)&&(c!=null||A!=null))switch(s){case"value":H=c;break;case"defaultValue":w=c;break;case"multiple":b=c;default:c!==A&&Ze(e,t,s,c,r,A)}t=w,a=b,r=Y,H!=null?Yl(e,!!a,H,!1):!!r!=!!a&&(t!=null?Yl(e,!!a,t,!0):Yl(e,!!a,a?[]:"",!1));return;case"textarea":Y=H=null;for(w in a)if(s=a[w],a.hasOwnProperty(w)&&s!=null&&!r.hasOwnProperty(w))switch(w){case"value":break;case"children":break;default:Ze(e,t,w,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":Y=s;break;case"children":break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(i(91));break;default:s!==c&&Ze(e,t,b,s,r,c)}If(e,H,Y);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:Ze(e,t,fe,null,r,H)}for(A in r)if(H=r[A],Y=a[A],r.hasOwnProperty(A)&&H!==Y&&(H!=null||Y!=null))switch(A){case"selected":e.selected=H&&typeof H!="function"&&typeof H!="symbol";break;default:Ze(e,t,A,H,r,Y)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var xe in a)H=a[xe],a.hasOwnProperty(xe)&&H!=null&&!r.hasOwnProperty(xe)&&Ze(e,t,xe,null,r,H);for(B in r)if(H=r[B],Y=a[B],r.hasOwnProperty(B)&&H!==Y&&(H!=null||Y!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(i(137,t));break;default:Ze(e,t,B,H,r,Y)}return;default:if(dc(t)){for(var Pe in a)H=a[Pe],a.hasOwnProperty(Pe)&&H!==void 0&&!r.hasOwnProperty(Pe)&&Fu(e,t,Pe,void 0,r,H);for(Q in r)H=r[Q],Y=a[Q],!r.hasOwnProperty(Q)||H===Y||H===void 0&&Y===void 0||Fu(e,t,Q,H,r,Y);return}}for(var z in a)H=a[z],a.hasOwnProperty(z)&&H!=null&&!r.hasOwnProperty(z)&&Ze(e,t,z,null,r,H);for(P in r)H=r[P],Y=a[P],!r.hasOwnProperty(P)||H===Y||H==null&&Y==null||Ze(e,t,P,H,r,Y)}function eg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function pS(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),r=0;r<a.length;r++){var s=a[r],c=s.transferSize,b=s.initiatorType,w=s.duration;if(c&&w&&eg(b)){for(b=0,w=s.responseEnd,r+=1;r<a.length;r++){var A=a[r],B=A.startTime;if(B>w)break;var Q=A.transferSize,P=A.initiatorType;Q&&eg(P)&&(A=A.responseEnd,b+=Q*(A<w?1:(w-B)/(A-B)))}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 Ju=null,Wu=null;function Qi(e){return e.nodeType===9?e:e.ownerDocument}function tg(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 ng(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 ed(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 td=null;function gS(){var e=window.event;return e&&e.type==="popstate"?e===td?!1:(td=e,!0):(td=null,!1)}var ag=typeof setTimeout=="function"?setTimeout:void 0,vS=typeof clearTimeout=="function"?clearTimeout:void 0,lg=typeof Promise=="function"?Promise:void 0,yS=typeof queueMicrotask=="function"?queueMicrotask:typeof lg<"u"?function(e){return lg.resolve(null).then(e).catch(bS)}:ag;function bS(e){setTimeout(function(){throw e})}function Ha(e){return e==="head"}function rg(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),xr(t);return}r--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")r++;else if(a==="html")Eo(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,Eo(a);for(var c=a.firstChild;c;){var b=c.nextSibling,w=c.nodeName;c[Vr]||w==="SCRIPT"||w==="STYLE"||w==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=b}}else a==="body"&&Eo(e.ownerDocument.body);a=s}while(a);xr(t)}function og(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 nd(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":nd(a),ic(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function xS(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[Vr])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=mn(e.nextSibling),e===null)break}return null}function SS(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=mn(e.nextSibling),e===null))return null;return e}function ig(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=mn(e.nextSibling),e===null))return null;return e}function ad(e){return e.data==="$?"||e.data==="$~"}function ld(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function wS(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 mn(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 rd=null;function sg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return mn(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function cg(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 ug(e,t,a){switch(t=Qi(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 Eo(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ic(e)}var hn=new Map,dg=new Set;function Ki(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var fa=G.d;G.d={f:ES,r:NS,D:CS,C:TS,L:RS,m:AS,X:jS,S:_S,M:OS};function ES(){var e=fa.f(),t=Bi();return e||t}function NS(e){var t=Hl(e);t!==null&&t.tag===5&&t.type==="form"?Ah(t):fa.r(e)}var vr=typeof document>"u"?null:document;function fg(e,t,a){var r=vr;if(r&&typeof t=="string"&&t){var s=rn(t);s='link[rel="'+e+'"][href="'+s+'"]',typeof a=="string"&&(s+='[crossorigin="'+a+'"]'),dg.has(s)||(dg.add(s),e={rel:e,crossOrigin:a,href:t},r.querySelector(s)===null&&(t=r.createElement("link"),Rt(t,"link",e),xt(t),r.head.appendChild(t)))}}function CS(e){fa.D(e),fg("dns-prefetch",e,null)}function TS(e,t){fa.C(e,t),fg("preconnect",e,t)}function RS(e,t,a){fa.L(e,t,a);var r=vr;if(r&&e&&t){var s='link[rel="preload"][as="'+rn(t)+'"]';t==="image"&&a&&a.imageSrcSet?(s+='[imagesrcset="'+rn(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(s+='[imagesizes="'+rn(a.imageSizes)+'"]')):s+='[href="'+rn(e)+'"]';var c=s;switch(t){case"style":c=yr(e);break;case"script":c=br(e)}hn.has(c)||(e=p({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),hn.set(c,e),r.querySelector(s)!==null||t==="style"&&r.querySelector(No(c))||t==="script"&&r.querySelector(Co(c))||(t=r.createElement("link"),Rt(t,"link",e),xt(t),r.head.appendChild(t)))}}function AS(e,t){fa.m(e,t);var a=vr;if(a&&e){var r=t&&typeof t.as=="string"?t.as:"script",s='link[rel="modulepreload"][as="'+rn(r)+'"][href="'+rn(e)+'"]',c=s;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=br(e)}if(!hn.has(c)&&(e=p({rel:"modulepreload",href:e},t),hn.set(c,e),a.querySelector(s)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Co(c)))return}r=a.createElement("link"),Rt(r,"link",e),xt(r),a.head.appendChild(r)}}}function _S(e,t,a){fa.S(e,t,a);var r=vr;if(r&&e){var s=Vl(r).hoistableStyles,c=yr(e);t=t||"default";var b=s.get(c);if(!b){var w={loading:0,preload:null};if(b=r.querySelector(No(c)))w.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},a),(a=hn.get(c))&&od(e,a);var A=b=r.createElement("link");xt(A),Rt(A,"link",e),A._p=new Promise(function(B,Q){A.onload=B,A.onerror=Q}),A.addEventListener("load",function(){w.loading|=1}),A.addEventListener("error",function(){w.loading|=2}),w.loading|=4,Zi(b,t,r)}b={type:"stylesheet",instance:b,count:1,state:w},s.set(c,b)}}}function jS(e,t){fa.X(e,t);var a=vr;if(a&&e){var r=Vl(a).hoistableScripts,s=br(e),c=r.get(s);c||(c=a.querySelector(Co(s)),c||(e=p({src:e,async:!0},t),(t=hn.get(s))&&id(e,t),c=a.createElement("script"),xt(c),Rt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(s,c))}}function OS(e,t){fa.M(e,t);var a=vr;if(a&&e){var r=Vl(a).hoistableScripts,s=br(e),c=r.get(s);c||(c=a.querySelector(Co(s)),c||(e=p({src:e,async:!0,type:"module"},t),(t=hn.get(s))&&id(e,t),c=a.createElement("script"),xt(c),Rt(c,"link",e),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},r.set(s,c))}}function mg(e,t,a,r){var s=(s=ae.current)?Ki(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=yr(a.href),a=Vl(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=yr(a.href);var c=Vl(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(No(e)))&&!c._p&&(b.instance=c,b.state.loading=5),hn.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},hn.set(e,a),c||MS(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=br(a),a=Vl(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 yr(e){return'href="'+rn(e)+'"'}function No(e){return'link[rel="stylesheet"]['+e+"]"}function hg(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function MS(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}),Rt(t,"link",a),xt(t),e.head.appendChild(t))}function br(e){return'[src="'+rn(e)+'"]'}function Co(e){return"script[async]"+e}function pg(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+rn(a.href)+'"]');if(r)return t.instance=r,xt(r),r;var s=p({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),xt(r),Rt(r,"style",s),Zi(r,a.precedence,e),t.instance=r;case"stylesheet":s=yr(a.href);var c=e.querySelector(No(s));if(c)return t.state.loading|=4,t.instance=c,xt(c),c;r=hg(a),(s=hn.get(s))&&od(r,s),c=(e.ownerDocument||e).createElement("link"),xt(c);var b=c;return b._p=new Promise(function(w,A){b.onload=w,b.onerror=A}),Rt(c,"link",r),t.state.loading|=4,Zi(c,a.precedence,e),t.instance=c;case"script":return c=br(a.src),(s=e.querySelector(Co(c)))?(t.instance=s,xt(s),s):(r=a,(s=hn.get(c))&&(r=p({},a),id(r,s)),e=e.ownerDocument||e,s=e.createElement("script"),xt(s),Rt(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,Zi(r,a.precedence,e));return t.instance}function Zi(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 w=r[b];if(w.dataset.precedence===t)c=w;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 od(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function id(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Pi=null;function gg(e,t,a){if(Pi===null){var r=new Map,s=Pi=new Map;s.set(a,r)}else s=Pi,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[Vr]||c[Et]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var b=c.getAttribute(t)||"";b=e+b;var w=r.get(b);w?w.push(c):r.set(b,[c])}}return r}function vg(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function DS(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 yg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function kS(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=yr(r.href),c=t.querySelector(No(s));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Ii.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=c,xt(c);return}c=t.ownerDocument||t,r=hg(r),(s=hn.get(s))&&od(r,s),c=c.createElement("link"),xt(c);var b=c;b._p=new Promise(function(w,A){b.onload=w,b.onerror=A}),Rt(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=Ii.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var sd=0;function zS(e,t){return e.stylesheets&&e.count===0&&Ji(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var r=setTimeout(function(){if(e.stylesheets&&Ji(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&sd===0&&(sd=62500*pS());var s=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ji(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>sd?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(s)}}:null}function Ii(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ji(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Fi=null;function Ji(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Fi=new Map,t.forEach(LS,e),Fi=null,Ii.call(e))}function LS(e,t){if(!(t.state.loading&4)){var a=Fi.get(e);if(a)var r=a.get(null);else{a=new Map,Fi.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=Ii.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 To={$$typeof:M,Provider:null,Consumer:null,_currentValue:I,_currentValue2:I,_threadCount:0};function US(e,t,a,r,s,c,b,w,A){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=xa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xa(0),this.hiddenUpdates=xa(null),this.identifierPrefix=r,this.onUncaughtError=s,this.onCaughtError=c,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function bg(e,t,a,r,s,c,b,w,A,B,Q,P){return e=new US(e,t,a,b,A,B,Q,P,w),t=1,c===!0&&(t|=24),c=Pt(3,null,null,t),e.current=c,c.stateNode=e,t=qc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:r,isDehydrated:a,cache:t},Xc(c),e}function xg(e){return e?(e=Il,e):Il}function Sg(e,t,a,r,s,c){s=xg(s),r.context===null?r.context=s:r.pendingContext=s,r=Aa(t),r.payload={element:a},c=c===void 0?null:c,c!==null&&(r.callback=c),a=_a(e,r,t),a!==null&&(Xt(a,e,t),ao(a,e,t))}function wg(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function cd(e,t){wg(e,t),(e=e.alternate)&&wg(e,t)}function Eg(e){if(e.tag===13||e.tag===31){var t=fl(e,67108864);t!==null&&Xt(t,e,67108864),cd(e,67108864)}}function Ng(e){if(e.tag===13||e.tag===31){var t=en();t=Ll(t);var a=fl(e,t);a!==null&&Xt(a,e,t),cd(e,t)}}var Wi=!0;function BS(e,t,a,r){var s=O.T;O.T=null;var c=G.p;try{G.p=2,ud(e,t,a,r)}finally{G.p=c,O.T=s}}function HS(e,t,a,r){var s=O.T;O.T=null;var c=G.p;try{G.p=8,ud(e,t,a,r)}finally{G.p=c,O.T=s}}function ud(e,t,a,r){if(Wi){var s=dd(r);if(s===null)Iu(e,t,r,es,a),Tg(e,r);else if(qS(s,e,t,a,r))r.stopPropagation();else if(Tg(e,r),t&4&&-1<VS.indexOf(e)){for(;s!==null;){var c=Hl(s);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var b=_n(c.pendingLanes);if(b!==0){var w=c;for(w.pendingLanes|=2,w.entangledLanes|=2;b;){var A=1<<31-At(b);w.entanglements[1]|=A,b&=~A}Dn(c),(qe&6)===0&&(Li=rt()+500,xo(0))}}break;case 31:case 13:w=fl(c,2),w!==null&&Xt(w,c,2),Bi(),cd(c,2)}if(c=dd(r),c===null&&Iu(e,t,r,es,a),c===s)break;s=c}s!==null&&r.stopPropagation()}else Iu(e,t,r,null,a)}}function dd(e){return e=mc(e),fd(e)}var es=null;function fd(e){if(es=null,e=Bl(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 es=e,null}function Cg(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(Kn()){case al:return 2;case Qo:return 8;case ll:case Br:return 32;case Zn:return 268435456;default:return 32}default:return 32}}var md=!1,Va=null,qa=null,Ya=null,Ro=new Map,Ao=new Map,$a=[],VS="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 Tg(e,t){switch(e){case"focusin":case"focusout":Va=null;break;case"dragenter":case"dragleave":qa=null;break;case"mouseover":case"mouseout":Ya=null;break;case"pointerover":case"pointerout":Ro.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ao.delete(t.pointerId)}}function _o(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=Hl(t),t!==null&&Eg(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,s!==null&&t.indexOf(s)===-1&&t.push(s),e)}function qS(e,t,a,r,s){switch(t){case"focusin":return Va=_o(Va,e,t,a,r,s),!0;case"dragenter":return qa=_o(qa,e,t,a,r,s),!0;case"mouseover":return Ya=_o(Ya,e,t,a,r,s),!0;case"pointerover":var c=s.pointerId;return Ro.set(c,_o(Ro.get(c)||null,e,t,a,r,s)),!0;case"gotpointercapture":return c=s.pointerId,Ao.set(c,_o(Ao.get(c)||null,e,t,a,r,s)),!0}return!1}function Rg(e){var t=Bl(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,qf(e.priority,function(){Ng(a)});return}}else if(t===31){if(t=h(a),t!==null){e.blockedOn=t,qf(e.priority,function(){Ng(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 ts(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=dd(e.nativeEvent);if(a===null){a=e.nativeEvent;var r=new a.constructor(a.type,a);fc=r,a.target.dispatchEvent(r),fc=null}else return t=Hl(a),t!==null&&Eg(t),e.blockedOn=a,!1;t.shift()}return!0}function Ag(e,t,a){ts(e)&&a.delete(t)}function YS(){md=!1,Va!==null&&ts(Va)&&(Va=null),qa!==null&&ts(qa)&&(qa=null),Ya!==null&&ts(Ya)&&(Ya=null),Ro.forEach(Ag),Ao.forEach(Ag)}function ns(e,t){e.blockedOn===t&&(e.blockedOn=null,md||(md=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,YS)))}var as=null;function _g(e){as!==e&&(as=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){as===e&&(as=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(fd(r||a)===null)continue;break}var c=Hl(a);c!==null&&(e.splice(t,3),t-=3,du(c,{pending:!0,data:s,method:a.method,action:r},r,s))}}))}function xr(e){function t(A){return ns(A,e)}Va!==null&&ns(Va,e),qa!==null&&ns(qa,e),Ya!==null&&ns(Ya,e),Ro.forEach(t),Ao.forEach(t);for(var a=0;a<$a.length;a++){var r=$a[a];r.blockedOn===e&&(r.blockedOn=null)}for(;0<$a.length&&(a=$a[0],a.blockedOn===null);)Rg(a),a.blockedOn===null&&$a.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[Ht]||null;if(typeof c=="function")b||_g(a);else if(b){var w=null;if(c&&c.hasAttribute("formAction")){if(s=c,b=c[Ht]||null)w=b.formAction;else if(fd(s)!==null)continue}else w=b.action;typeof w=="function"?a[r+1]=w:(a.splice(r,3),r-=3),_g(a)}}}function jg(){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 hd(e){this._internalRoot=e}ls.prototype.render=hd.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var a=t.current,r=en();Sg(a,r,e,t,null,null)},ls.prototype.unmount=hd.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Sg(e.current,2,null,e,null,null),Bi(),t[Ul]=null}};function ls(e){this._internalRoot=e}ls.prototype.unstable_scheduleHydration=function(e){if(e){var t=rc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<$a.length&&t!==0&&t<$a[a].priority;a++);$a.splice(a,0,e),a===0&&Rg(e)}};var Og=l.version;if(Og!=="19.2.4")throw Error(i(527,Og,"19.2.4"));G.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=g(t),e=e!==null?x(e):null,e=e===null?null:e.stateNode,e};var $S={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:O,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var rs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rs.isDisabled&&rs.supportsFiber)try{rl=rs.inject($S),Mt=rs}catch{}}return Oo.createRoot=function(e,t){if(!u(e))throw Error(i(299));var a=!1,r="",s=Bh,c=Hh,b=Vh;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=bg(e,1,!1,null,null,a,r,null,s,c,b,jg),e[Ul]=t.current,Pu(e),new hd(t)},Oo.hydrateRoot=function(e,t,a){if(!u(e))throw Error(i(299));var r=!1,s="",c=Bh,b=Hh,w=Vh,A=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&&(w=a.onRecoverableError),a.formState!==void 0&&(A=a.formState)),t=bg(e,1,!0,t,a??null,r,s,A,c,b,w,jg),t.context=xg(null),a=t.current,r=en(),r=Ll(r),s=Aa(r),s.callback=null,_a(a,s,r),a=r,t.current.lanes=a,ot(t,a),Dn(t),e[Ul]=t.current,Pu(e),new ls(t)},Oo.version="19.2.4",Oo}var qg;function WS(){if(qg)return vd.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(),vd.exports=JS(),vd.exports}var e2=WS();const t2="modulepreload",n2=function(n){return"/"+n},Yg={},Vv=function(l,o,i){let u=Promise.resolve();if(o&&o.length>0){let f=function(g){return Promise.all(g.map(x=>Promise.resolve(x).then(p=>({status:"fulfilled",value:p}),p=>({status:"rejected",reason:p}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),v=(h==null?void 0:h.nonce)||(h==null?void 0:h.getAttribute("nonce"));u=f(o.map(g=>{if(g=n2(g),g in Yg)return;Yg[g]=!0;const x=g.endsWith(".css"),p=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${p}`))return;const S=document.createElement("link");if(S.rel=x?"stylesheet":t2,x||(S.as="script"),S.crossOrigin="",S.href=g,v&&S.setAttribute("nonce",v),document.head.appendChild(S),x)return new Promise((E,R)=>{S.addEventListener("load",E),S.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${g}`)))})}))}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 $g="popstate";function Gg(n){return typeof n=="object"&&n!=null&&"pathname"in n&&"search"in n&&"hash"in n&&"state"in n&&"key"in n}function a2(n={}){function l(i,u){var g;let d=(g=u.state)==null?void 0:g.masked,{pathname:f,search:h,hash:v}=d||i.location;return Bd("",{pathname:f,search:h,hash:v},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:Bo(u)}return r2(l,o,null,n)}function lt(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function En(n,l){if(!n){typeof console<"u"&&console.warn(l);try{throw new Error(l)}catch{}}}function l2(){return Math.random().toString(36).substring(2,10)}function Xg(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 Bd(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||l2(),unstable_mask:u}}function Bo({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 r2(n,l,o,i={}){let{window:u=document.defaultView,v5Compat:d=!1}=i,f=u.history,h="POP",v=null,g=x();g==null&&(g=0,f.replaceState({...f.state,idx:g},""));function x(){return(f.state||{idx:null}).idx}function p(){h="POP";let T=x(),C=T==null?null:T-g;g=T,v&&v({action:h,location:N.location,delta:C})}function S(T,C){h="PUSH";let j=Gg(T)?T:Bd(N.location,T,C);g=x()+1;let M=Xg(j,g),k=N.createHref(j.unstable_mask||j);try{f.pushState(M,"",k)}catch(q){if(q instanceof DOMException&&q.name==="DataCloneError")throw q;u.location.assign(k)}d&&v&&v({action:h,location:N.location,delta:1})}function E(T,C){h="REPLACE";let j=Gg(T)?T:Bd(N.location,T,C);g=x();let M=Xg(j,g),k=N.createHref(j.unstable_mask||j);f.replaceState(M,"",k),d&&v&&v({action:h,location:N.location,delta:0})}function R(T){return o2(T)}let N={get action(){return h},get location(){return n(u,f)},listen(T){if(v)throw new Error("A history only accepts one active listener");return u.addEventListener($g,p),v=T,()=>{u.removeEventListener($g,p),v=null}},createHref(T){return l(u,T)},createURL:R,encodeLocation(T){let C=R(T);return{pathname:C.pathname,search:C.search,hash:C.hash}},push:S,replace:E,go(T){return f.go(T)}};return N}function o2(n,l=!1){let o="http://localhost";typeof window<"u"&&(o=window.location.origin!=="null"?window.location.origin:window.location.href),lt(o,"No window.location.(origin|href) available to create URL");let i=typeof n=="string"?n:Bo(n);return i=i.replace(/ $/,"%20"),!l&&i.startsWith("//")&&(i=o+i),new URL(i,o)}function qv(n,l,o="/"){return i2(n,l,o,!1)}function i2(n,l,o,i){let u=typeof l=="string"?Or(l):l,d=ha(u.pathname||"/",o);if(d==null)return null;let f=Yv(n);s2(f);let h=null;for(let v=0;h==null&&v<f.length;++v){let g=b2(d);h=v2(f[v],g,i)}return h}function Yv(n,l=[],o=[],i="",u=!1){let d=(f,h,v=u,g)=>{let x={relativePath:g===void 0?f.path||"":g,caseSensitive:f.caseSensitive===!0,childrenIndex:h,route:f};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(i)&&v)return;lt(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 p=Yn([i,x.relativePath]),S=o.concat(x);f.children&&f.children.length>0&&(lt(f.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Yv(f.children,l,S,p,v)),!(f.path==null&&!f.index)&&l.push({path:p,score:p2(p,f.index),routesMeta:S})};return n.forEach((f,h)=>{var v;if(f.path===""||!((v=f.path)!=null&&v.includes("?")))d(f,h);else for(let g of $v(f.path))d(f,h,!0,g)}),l}function $v(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=$v(i.join("/")),h=[];return h.push(...f.map(v=>v===""?d:[d,v].join("/"))),u&&h.push(...f),h.map(v=>n.startsWith("/")&&v===""?"/":v)}function s2(n){n.sort((l,o)=>l.score!==o.score?o.score-l.score:g2(l.routesMeta.map(i=>i.childrenIndex),o.routesMeta.map(i=>i.childrenIndex)))}var c2=/^:[\w-]+$/,u2=3,d2=2,f2=1,m2=10,h2=-2,Qg=n=>n==="*";function p2(n,l){let o=n.split("/"),i=o.length;return o.some(Qg)&&(i+=h2),l&&(i+=d2),o.filter(u=>!Qg(u)).reduce((u,d)=>u+(c2.test(d)?u2:d===""?f2:m2),i)}function g2(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 v2(n,l,o=!1){let{routesMeta:i}=n,u={},d="/",f=[];for(let h=0;h<i.length;++h){let v=i[h],g=h===i.length-1,x=d==="/"?l:l.slice(d.length)||"/",p=Cs({path:v.relativePath,caseSensitive:v.caseSensitive,end:g},x),S=v.route;if(!p&&g&&o&&!i[i.length-1].route.index&&(p=Cs({path:v.relativePath,caseSensitive:v.caseSensitive,end:!1},x)),!p)return null;Object.assign(u,p.params),f.push({params:u,pathname:Yn([d,p.pathname]),pathnameBase:E2(Yn([d,p.pathnameBase])),route:S}),p.pathnameBase!=="/"&&(d=Yn([d,p.pathnameBase]))}return f}function Cs(n,l){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[o,i]=y2(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((g,{paramName:x,isOptional:p},S)=>{if(x==="*"){let R=h[S]||"";f=d.slice(0,d.length-R.length).replace(/(.)\/+$/,"$1")}const E=h[S];return p&&!E?g[x]=void 0:g[x]=(E||"").replace(/%2F/g,"/"),g},{}),pathname:d,pathnameBase:f,pattern:n}}function y2(n,l=!1,o=!0){En(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,v,g,x)=>{if(i.push({paramName:h,isOptional:v!=null}),v){let p=x.charAt(g+f.length);return p&&p!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}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 b2(n){try{return n.split("/").map(l=>decodeURIComponent(l).replace(/\//g,"%2F")).join("/")}catch(l){return En(!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 ha(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 x2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function S2(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=Kg(o.substring(1),"/"):d=Kg(o,l)):d=l,{pathname:d,search:N2(i),hash:C2(u)}}function Kg(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 Sd(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 w2(n){return n.filter((l,o)=>o===0||l.route.path&&l.route.path.length>0)}function af(n){let l=w2(n);return l.map((o,i)=>i===l.length-1?o.pathname:o.pathnameBase)}function Ys(n,l,o,i=!1){let u;typeof n=="string"?u=Or(n):(u={...n},lt(!u.pathname||!u.pathname.includes("?"),Sd("?","pathname","search",u)),lt(!u.pathname||!u.pathname.includes("#"),Sd("#","pathname","hash",u)),lt(!u.search||!u.search.includes("#"),Sd("#","search","hash",u)));let d=n===""||u.pathname==="",f=d?"/":u.pathname,h;if(f==null)h=o;else{let p=l.length-1;if(!i&&f.startsWith("..")){let S=f.split("/");for(;S[0]==="..";)S.shift(),p-=1;u.pathname=S.join("/")}h=p>=0?l[p]:"/"}let v=S2(u,h),g=f&&f!=="/"&&f.endsWith("/"),x=(d||f===".")&&o.endsWith("/");return!v.pathname.endsWith("/")&&(g||x)&&(v.pathname+="/"),v}var Yn=n=>n.join("/").replace(/\/\/+/g,"/"),E2=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),N2=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,C2=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n,T2=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 R2(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}function A2(n){return n.map(l=>l.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Gv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Xv(n,l){let o=n;if(typeof o!="string"||!x2.test(o))return{absoluteURL:void 0,isExternal:!1,to:o};let i=o,u=!1;if(Gv)try{let d=new URL(window.location.href),f=o.startsWith("//")?new URL(d.protocol+o):new URL(o),h=ha(f.pathname,l);f.origin===d.origin&&h!=null?o=h+f.search+f.hash:u=!0}catch{En(!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 Qv=["POST","PUT","PATCH","DELETE"];new Set(Qv);var _2=["GET",...Qv];new Set(_2);var Mr=y.createContext(null);Mr.displayName="DataRouter";var $s=y.createContext(null);$s.displayName="DataRouterState";var j2=y.createContext(!1),Kv=y.createContext({isTransitioning:!1});Kv.displayName="ViewTransition";var O2=y.createContext(new Map);O2.displayName="Fetchers";var M2=y.createContext(null);M2.displayName="Await";var an=y.createContext(null);an.displayName="Navigation";var qo=y.createContext(null);qo.displayName="Location";var gn=y.createContext({outlet:null,matches:[],isDataRoute:!1});gn.displayName="Route";var lf=y.createContext(null);lf.displayName="RouteError";var Zv="REACT_ROUTER_ERROR",D2="REDIRECT",k2="ROUTE_ERROR_RESPONSE";function z2(n){if(n.startsWith(`${Zv}:${D2}:{`))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 L2(n){if(n.startsWith(`${Zv}:${k2}:{`))try{let l=JSON.parse(n.slice(40));if(typeof l=="object"&&l&&typeof l.status=="number"&&typeof l.statusText=="string")return new T2(l.status,l.statusText,l.data)}catch{}}function U2(n,{relative:l}={}){lt(Dr(),"useHref() may be used only in the context of a <Router> component.");let{basename:o,navigator:i}=y.useContext(an),{hash:u,pathname:d,search:f}=Yo(n,{relative:l}),h=d;return o!=="/"&&(h=d==="/"?o:Yn([o,d])),i.createHref({pathname:h,search:f,hash:u})}function Dr(){return y.useContext(qo)!=null}function Xn(){return lt(Dr(),"useLocation() may be used only in the context of a <Router> component."),y.useContext(qo).location}var Pv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Iv(n){y.useContext(an).static||y.useLayoutEffect(n)}function Fv(){let{isDataRoute:n}=y.useContext(gn);return n?F2():B2()}function B2(){lt(Dr(),"useNavigate() may be used only in the context of a <Router> component.");let n=y.useContext(Mr),{basename:l,navigator:o}=y.useContext(an),{matches:i}=y.useContext(gn),{pathname:u}=Xn(),d=JSON.stringify(af(i)),f=y.useRef(!1);return Iv(()=>{f.current=!0}),y.useCallback((v,g={})=>{if(En(f.current,Pv),!f.current)return;if(typeof v=="number"){o.go(v);return}let x=Ys(v,JSON.parse(d),u,g.relative==="path");n==null&&l!=="/"&&(x.pathname=x.pathname==="/"?l:Yn([l,x.pathname])),(g.replace?o.replace:o.push)(x,g.state,g)},[l,o,d,u,n])}var Jv=y.createContext(null);function K_(){return y.useContext(Jv)}function H2(n){let l=y.useContext(gn).outlet;return y.useMemo(()=>l&&y.createElement(Jv.Provider,{value:n},l),[l,n])}function Z_(){let{matches:n}=y.useContext(gn),l=n[n.length-1];return l?l.params:{}}function Yo(n,{relative:l}={}){let{matches:o}=y.useContext(gn),{pathname:i}=Xn(),u=JSON.stringify(af(o));return y.useMemo(()=>Ys(n,JSON.parse(u),i,l==="path"),[n,u,i,l])}function V2(n,l){return Wv(n,l)}function Wv(n,l,o){var T;lt(Dr(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=y.useContext(an),{matches:u}=y.useContext(gn),d=u[u.length-1],f=d?d.params:{},h=d?d.pathname:"/",v=d?d.pathnameBase:"/",g=d&&d.route;{let C=g&&g.path||"";t0(h,!g||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${C}">) 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="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let x=Xn(),p;if(l){let C=typeof l=="string"?Or(l):l;lt(v==="/"||((T=C.pathname)==null?void 0:T.startsWith(v)),`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 "${v}" but pathname "${C.pathname}" was given in the \`location\` prop.`),p=C}else p=x;let S=p.pathname||"/",E=S;if(v!=="/"){let C=v.replace(/^\//,"").split("/");E="/"+S.replace(/^\//,"").split("/").slice(C.length).join("/")}let R=qv(n,{pathname:E});En(g||R!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),En(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.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 N=X2(R&&R.map(C=>Object.assign({},C,{params:Object.assign({},f,C.params),pathname:Yn([v,i.encodeLocation?i.encodeLocation(C.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?v:Yn([v,i.encodeLocation?i.encodeLocation(C.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),u,o);return l&&N?y.createElement(qo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",unstable_mask:void 0,...p},navigationType:"POP"}},N):N}function q2(){let n=I2(),l=R2(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=y.createElement(y.Fragment,null,y.createElement("p",null,"💿 Hey developer 👋"),y.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",y.createElement("code",{style:d},"ErrorBoundary")," or"," ",y.createElement("code",{style:d},"errorElement")," prop on your route.")),y.createElement(y.Fragment,null,y.createElement("h2",null,"Unexpected Application Error!"),y.createElement("h3",{style:{fontStyle:"italic"}},l),o?y.createElement("pre",{style:u},o):null,f)}var Y2=y.createElement(q2,null),e0=class extends y.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=L2(n.digest);o&&(n=o)}let l=n!==void 0?y.createElement(gn.Provider,{value:this.props.routeContext},y.createElement(lf.Provider,{value:n,children:this.props.component})):this.props.children;return this.context?y.createElement($2,{error:n},l):l}};e0.contextType=j2;var wd=new WeakMap;function $2({children:n,error:l}){let{basename:o}=y.useContext(an);if(typeof l=="object"&&l&&"digest"in l&&typeof l.digest=="string"){let i=z2(l.digest);if(i){let u=wd.get(l);if(u)throw u;let d=Xv(i.location,o);if(Gv&&!wd.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 wd.set(l,f),f}return y.createElement("meta",{httpEquiv:"refresh",content:`0;url=${d.absoluteURL||d.to}`})}}return n}function G2({routeContext:n,match:l,children:o}){let i=y.useContext(Mr);return i&&i.static&&i.staticContext&&(l.route.errorElement||l.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=l.route.id),y.createElement(gn.Provider,{value:n},o)}function X2(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(p=>p.route.id&&(d==null?void 0:d[p.route.id])!==void 0);lt(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 p=u[x];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(h=x),p.route.id){let{loaderData:S,errors:E}=i,R=p.route.loader&&!S.hasOwnProperty(p.route.id)&&(!E||E[p.route.id]===void 0);if(p.route.lazy||R){o.isStatic&&(f=!0),h>=0?u=u.slice(0,h+1):u=[u[0]];break}}}}let v=o==null?void 0:o.onError,g=i&&v?(x,p)=>{var S,E;v(x,{location:i.location,params:((E=(S=i.matches)==null?void 0:S[0])==null?void 0:E.params)??{},unstable_pattern:A2(i.matches),errorInfo:p})}:void 0;return u.reduceRight((x,p,S)=>{let E,R=!1,N=null,T=null;i&&(E=d&&p.route.id?d[p.route.id]:void 0,N=p.route.errorElement||Y2,f&&(h<0&&S===0?(t0("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),R=!0,T=null):h===S&&(R=!0,T=p.route.hydrateFallbackElement||null)));let C=l.concat(u.slice(0,S+1)),j=()=>{let M;return E?M=N:R?M=T:p.route.Component?M=y.createElement(p.route.Component,null):p.route.element?M=p.route.element:M=x,y.createElement(G2,{match:p,routeContext:{outlet:x,matches:C,isDataRoute:i!=null},children:M})};return i&&(p.route.ErrorBoundary||p.route.errorElement||S===0)?y.createElement(e0,{location:i.location,revalidation:i.revalidation,component:N,error:E,children:j(),routeContext:{outlet:null,matches:C,isDataRoute:!0},onError:g}):j()},null)}function rf(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Q2(n){let l=y.useContext(Mr);return lt(l,rf(n)),l}function K2(n){let l=y.useContext($s);return lt(l,rf(n)),l}function Z2(n){let l=y.useContext(gn);return lt(l,rf(n)),l}function of(n){let l=Z2(n),o=l.matches[l.matches.length-1];return lt(o.route.id,`${n} can only be used on routes that contain a unique "id"`),o.route.id}function P2(){return of("useRouteId")}function I2(){var i;let n=y.useContext(lf),l=K2("useRouteError"),o=of("useRouteError");return n!==void 0?n:(i=l.errors)==null?void 0:i[o]}function F2(){let{router:n}=Q2("useNavigate"),l=of("useNavigate"),o=y.useRef(!1);return Iv(()=>{o.current=!0}),y.useCallback(async(u,d={})=>{En(o.current,Pv),o.current&&(typeof u=="number"?await n.navigate(u):await n.navigate(u,{fromRouteId:l,...d}))},[n,l])}var Zg={};function t0(n,l,o){!l&&!Zg[n]&&(Zg[n]=!0,En(!1,o))}y.memo(J2);function J2({routes:n,future:l,state:o,isStatic:i,onError:u}){return Wv(n,void 0,{state:o,isStatic:i,onError:u})}function Pg({to:n,replace:l,state:o,relative:i}){lt(Dr(),"<Navigate> may be used only in the context of a <Router> component.");let{static:u}=y.useContext(an);En(!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}=y.useContext(gn),{pathname:f}=Xn(),h=Fv(),v=Ys(n,af(d),f,i==="path"),g=JSON.stringify(v);return y.useEffect(()=>{h(JSON.parse(g),{replace:l,state:o,relative:i})},[h,g,i,l,o]),null}function W2(n){return H2(n.context)}function Al(n){lt(!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 ew({basename:n="/",children:l=null,location:o,navigationType:i="POP",navigator:u,static:d=!1,unstable_useTransitions:f}){lt(!Dr(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let h=n.replace(/^\/*/,"/"),v=y.useMemo(()=>({basename:h,navigator:u,static:d,unstable_useTransitions:f,future:{}}),[h,u,d,f]);typeof o=="string"&&(o=Or(o));let{pathname:g="/",search:x="",hash:p="",state:S=null,key:E="default",unstable_mask:R}=o,N=y.useMemo(()=>{let T=ha(g,h);return T==null?null:{location:{pathname:T,search:x,hash:p,state:S,key:E,unstable_mask:R},navigationType:i}},[h,g,x,p,S,E,i,R]);return En(N!=null,`<Router basename="${h}"> is not able to match the URL "${g}${x}${p}" because it does not start with the basename, so the <Router> won't render anything.`),N==null?null:y.createElement(an.Provider,{value:v},y.createElement(qo.Provider,{children:l,value:N}))}function tw({children:n,location:l}){return V2(Hd(n),l)}function Hd(n,l=[]){let o=[];return y.Children.forEach(n,(i,u)=>{if(!y.isValidElement(i))return;let d=[...l,u];if(i.type===y.Fragment){o.push.apply(o,Hd(i.props.children,d));return}lt(i.type===Al,`[${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>`),lt(!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=Hd(i.props.children,d)),o.push(f)}),o}var ys="get",bs="application/x-www-form-urlencoded";function Gs(n){return typeof HTMLElement<"u"&&n instanceof HTMLElement}function nw(n){return Gs(n)&&n.tagName.toLowerCase()==="button"}function aw(n){return Gs(n)&&n.tagName.toLowerCase()==="form"}function lw(n){return Gs(n)&&n.tagName.toLowerCase()==="input"}function rw(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function ow(n,l){return n.button===0&&(!l||l==="_self")&&!rw(n)}var os=null;function iw(){if(os===null)try{new FormData(document.createElement("form"),0),os=!1}catch{os=!0}return os}var sw=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ed(n){return n!=null&&!sw.has(n)?(En(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${bs}"`),null):n}function cw(n,l){let o,i,u,d,f;if(aw(n)){let h=n.getAttribute("action");i=h?ha(h,l):null,o=n.getAttribute("method")||ys,u=Ed(n.getAttribute("enctype"))||bs,d=new FormData(n)}else if(nw(n)||lw(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 v=n.getAttribute("formaction")||h.getAttribute("action");if(i=v?ha(v,l):null,o=n.getAttribute("formmethod")||h.getAttribute("method")||ys,u=Ed(n.getAttribute("formenctype"))||Ed(h.getAttribute("enctype"))||bs,d=new FormData(h,n),!iw()){let{name:g,type:x,value:p}=n;if(x==="image"){let S=g?`${g}.`:"";d.append(`${S}x`,"0"),d.append(`${S}y`,"0")}else g&&d.append(g,p)}}else{if(Gs(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');o=ys,i=null,u=bs,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 sf(n,l){if(n===!1||n===null||typeof n>"u")throw new Error(l)}function uw(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&&ha(u.pathname,l)==="/"?u.pathname=`${l.replace(/\/$/,"")}/_root.${i}`:u.pathname=`${u.pathname.replace(/\/$/,"")}.${i}`,u}async function dw(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 fw(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 mw(n,l,o){let i=await Promise.all(n.map(async u=>{let d=l.routes[u.route.id];if(d){let f=await dw(d,o);return f.links?f.links():[]}return[]}));return vw(i.flat(1).filter(fw).filter(u=>u.rel==="stylesheet"||u.rel==="preload").map(u=>u.rel==="stylesheet"?{...u,rel:"prefetch",as:"style"}:{...u,rel:"prefetch"}))}function Ig(n,l,o,i,u,d){let f=(v,g)=>o[g]?v.route.id!==o[g].route.id:!0,h=(v,g)=>{var x;return o[g].pathname!==v.pathname||((x=o[g].route.path)==null?void 0:x.endsWith("*"))&&o[g].params["*"]!==v.params["*"]};return d==="assets"?l.filter((v,g)=>f(v,g)||h(v,g)):d==="data"?l.filter((v,g)=>{var p;let x=i.routes[v.route.id];if(!x||!x.hasLoader)return!1;if(f(v,g)||h(v,g))return!0;if(v.route.shouldRevalidate){let S=v.route.shouldRevalidate({currentUrl:new URL(u.pathname+u.search+u.hash,window.origin),currentParams:((p=o[0])==null?void 0:p.params)||{},nextUrl:new URL(n,window.origin),nextParams:v.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function hw(n,l,{includeHydrateFallback:o}={}){return pw(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 pw(n){return[...new Set(n)]}function gw(n){let l={},o=Object.keys(n).sort();for(let i of o)l[i]=n[i];return l}function vw(n,l){let o=new Set;return new Set(l),n.reduce((i,u)=>{let d=JSON.stringify(gw(u));return o.has(d)||(o.add(d),i.push({key:d,link:u})),i},[])}function n0(){let n=y.useContext(Mr);return sf(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function yw(){let n=y.useContext($s);return sf(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var cf=y.createContext(void 0);cf.displayName="FrameworkContext";function a0(){let n=y.useContext(cf);return sf(n,"You must render this element inside a <HydratedRouter> element"),n}function bw(n,l){let o=y.useContext(cf),[i,u]=y.useState(!1),[d,f]=y.useState(!1),{onFocus:h,onBlur:v,onMouseEnter:g,onMouseLeave:x,onTouchStart:p}=l,S=y.useRef(null);y.useEffect(()=>{if(n==="render"&&f(!0),n==="viewport"){let N=C=>{C.forEach(j=>{f(j.isIntersecting)})},T=new IntersectionObserver(N,{threshold:.5});return S.current&&T.observe(S.current),()=>{T.disconnect()}}},[n]),y.useEffect(()=>{if(i){let N=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(N)}}},[i]);let E=()=>{u(!0)},R=()=>{u(!1),f(!1)};return o?n!=="intent"?[d,S,{}]:[d,S,{onFocus:Mo(h,E),onBlur:Mo(v,R),onMouseEnter:Mo(g,E),onMouseLeave:Mo(x,R),onTouchStart:Mo(p,E)}]:[!1,S,{}]}function Mo(n,l){return o=>{n&&n(o),o.defaultPrevented||l(o)}}function xw({page:n,...l}){let{router:o}=n0(),i=y.useMemo(()=>qv(o.routes,n,o.basename),[o.routes,n,o.basename]);return i?y.createElement(ww,{page:n,matches:i,...l}):null}function Sw(n){let{manifest:l,routeModules:o}=a0(),[i,u]=y.useState([]);return y.useEffect(()=>{let d=!1;return mw(n,l,o).then(f=>{d||u(f)}),()=>{d=!0}},[n,l,o]),i}function ww({page:n,matches:l,...o}){let i=Xn(),{future:u,manifest:d,routeModules:f}=a0(),{basename:h}=n0(),{loaderData:v,matches:g}=yw(),x=y.useMemo(()=>Ig(n,l,g,d,i,"data"),[n,l,g,d,i]),p=y.useMemo(()=>Ig(n,l,g,d,i,"assets"),[n,l,g,d,i]),S=y.useMemo(()=>{if(n===i.pathname+i.search+i.hash)return[];let N=new Set,T=!1;if(l.forEach(j=>{var k;let M=d.routes[j.route.id];!M||!M.hasLoader||(!x.some(q=>q.route.id===j.route.id)&&j.route.id in v&&((k=f[j.route.id])!=null&&k.shouldRevalidate)||M.hasClientLoader?T=!0:N.add(j.route.id))}),N.size===0)return[];let C=uw(n,h,u.unstable_trailingSlashAwareDataRequests,"data");return T&&N.size>0&&C.searchParams.set("_routes",l.filter(j=>N.has(j.route.id)).map(j=>j.route.id).join(",")),[C.pathname+C.search]},[h,u.unstable_trailingSlashAwareDataRequests,v,i,d,x,l,n,f]),E=y.useMemo(()=>hw(p,d),[p,d]),R=Sw(p);return y.createElement(y.Fragment,null,S.map(N=>y.createElement("link",{key:N,rel:"prefetch",as:"fetch",href:N,...o})),E.map(N=>y.createElement("link",{key:N,rel:"modulepreload",href:N,...o})),R.map(({key:N,link:T})=>y.createElement("link",{key:N,nonce:o.nonce,...T,crossOrigin:T.crossOrigin??o.crossOrigin})))}function Ew(...n){return l=>{n.forEach(o=>{typeof o=="function"?o(l):o!=null&&(o.current=l)})}}var Nw=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Nw&&(window.__reactRouterVersion="7.13.2")}catch{}function Cw({basename:n,children:l,unstable_useTransitions:o,window:i}){let u=y.useRef();u.current==null&&(u.current=a2({window:i,v5Compat:!0}));let d=u.current,[f,h]=y.useState({action:d.action,location:d.location}),v=y.useCallback(g=>{o===!1?h(g):y.startTransition(()=>h(g))},[o]);return y.useLayoutEffect(()=>d.listen(v),[d,v]),y.createElement(ew,{basename:n,children:l,location:f.location,navigationType:f.action,navigator:d,unstable_useTransitions:o})}var l0=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,r0=y.forwardRef(function({onClick:l,discover:o="render",prefetch:i="none",relative:u,reloadDocument:d,replace:f,unstable_mask:h,state:v,target:g,to:x,preventScrollReset:p,viewTransition:S,unstable_defaultShouldRevalidate:E,...R},N){let{basename:T,navigator:C,unstable_useTransitions:j}=y.useContext(an),M=typeof x=="string"&&l0.test(x),k=Xv(x,T);x=k.to;let q=U2(x,{relative:u}),$=Xn(),U=null;if(h){let ce=Ys(h,[],$.unstable_mask?$.unstable_mask.pathname:"/",!0);T!=="/"&&(ce.pathname=ce.pathname==="/"?T:Yn([T,ce.pathname])),U=C.createHref(ce)}let[V,ne,de]=bw(i,R),ve=Aw(x,{replace:f,unstable_mask:h,state:v,target:g,preventScrollReset:p,relative:u,viewTransition:S,unstable_defaultShouldRevalidate:E,unstable_useTransitions:j});function oe(ce){l&&l(ce),ce.defaultPrevented||ve(ce)}let se=!(k.isExternal||d),le=y.createElement("a",{...R,...de,href:(se?U:void 0)||k.absoluteURL||q,onClick:se?oe:l,ref:Ew(N,ne),target:g,"data-discover":!M&&o==="render"?"true":void 0});return V&&!M?y.createElement(y.Fragment,null,le,y.createElement(xw,{page:q})):le});r0.displayName="Link";var o0=y.forwardRef(function({"aria-current":l="page",caseSensitive:o=!1,className:i="",end:u=!1,style:d,to:f,viewTransition:h,children:v,...g},x){let p=Yo(f,{relative:g.relative}),S=Xn(),E=y.useContext($s),{navigator:R,basename:N}=y.useContext(an),T=E!=null&&Dw(p)&&h===!0,C=R.encodeLocation?R.encodeLocation(p).pathname:p.pathname,j=S.pathname,M=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;o||(j=j.toLowerCase(),M=M?M.toLowerCase():null,C=C.toLowerCase()),M&&N&&(M=ha(M,N)||M);const k=C!=="/"&&C.endsWith("/")?C.length-1:C.length;let q=j===C||!u&&j.startsWith(C)&&j.charAt(k)==="/",$=M!=null&&(M===C||!u&&M.startsWith(C)&&M.charAt(C.length)==="/"),U={isActive:q,isPending:$,isTransitioning:T},V=q?l:void 0,ne;typeof i=="function"?ne=i(U):ne=[i,q?"active":null,$?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let de=typeof d=="function"?d(U):d;return y.createElement(r0,{...g,"aria-current":V,className:ne,ref:x,style:de,to:f,viewTransition:h},typeof v=="function"?v(U):v)});o0.displayName="NavLink";var Tw=y.forwardRef(({discover:n="render",fetcherKey:l,navigate:o,reloadDocument:i,replace:u,state:d,method:f=ys,action:h,onSubmit:v,relative:g,preventScrollReset:x,viewTransition:p,unstable_defaultShouldRevalidate:S,...E},R)=>{let{unstable_useTransitions:N}=y.useContext(an),T=Ow(),C=Mw(h,{relative:g}),j=f.toLowerCase()==="get"?"get":"post",M=typeof h=="string"&&l0.test(h),k=q=>{if(v&&v(q),q.defaultPrevented)return;q.preventDefault();let $=q.nativeEvent.submitter,U=($==null?void 0:$.getAttribute("formmethod"))||f,V=()=>T($||q.currentTarget,{fetcherKey:l,method:U,navigate:o,replace:u,state:d,relative:g,preventScrollReset:x,viewTransition:p,unstable_defaultShouldRevalidate:S});N&&o!==!1?y.startTransition(()=>V()):V()};return y.createElement("form",{ref:R,method:j,action:C,onSubmit:i?v:k,...E,"data-discover":!M&&n==="render"?"true":void 0})});Tw.displayName="Form";function Rw(n){return`${n} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function i0(n){let l=y.useContext(Mr);return lt(l,Rw(n)),l}function Aw(n,{target:l,replace:o,unstable_mask:i,state:u,preventScrollReset:d,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:v,unstable_useTransitions:g}={}){let x=Fv(),p=Xn(),S=Yo(n,{relative:f});return y.useCallback(E=>{if(ow(E,l)){E.preventDefault();let R=o!==void 0?o:Bo(p)===Bo(S),N=()=>x(n,{replace:R,unstable_mask:i,state:u,preventScrollReset:d,relative:f,viewTransition:h,unstable_defaultShouldRevalidate:v});g?y.startTransition(()=>N()):N()}},[p,x,S,o,i,u,l,n,d,f,h,v,g])}var _w=0,jw=()=>`__${String(++_w)}__`;function Ow(){let{router:n}=i0("useSubmit"),{basename:l}=y.useContext(an),o=P2(),i=n.fetch,u=n.navigate;return y.useCallback(async(d,f={})=>{let{action:h,method:v,encType:g,formData:x,body:p}=cw(d,l);if(f.navigate===!1){let S=f.fetcherKey||jw();await i(S,o,f.action||h,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:x,body:p,formMethod:f.method||v,formEncType:f.encType||g,flushSync:f.flushSync})}else await u(f.action||h,{unstable_defaultShouldRevalidate:f.unstable_defaultShouldRevalidate,preventScrollReset:f.preventScrollReset,formData:x,body:p,formMethod:f.method||v,formEncType:f.encType||g,replace:f.replace,state:f.state,fromRouteId:o,flushSync:f.flushSync,viewTransition:f.viewTransition})},[i,u,l,o])}function Mw(n,{relative:l}={}){let{basename:o}=y.useContext(an),i=y.useContext(gn);lt(i,"useFormAction must be used inside a RouteContext");let[u]=i.matches.slice(-1),d={...Yo(n||".",{relative:l})},f=Xn();if(n==null){d.search=f.search;let h=new URLSearchParams(d.search),v=h.getAll("index");if(v.some(x=>x==="")){h.delete("index"),v.filter(p=>p).forEach(p=>h.append("index",p));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:Yn([o,d.pathname])),Bo(d)}function Dw(n,{relative:l}={}){let o=y.useContext(Kv);lt(o!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:i}=i0("useViewTransitionState"),u=Yo(n,{relative:l});if(!o.isTransitioning)return!1;let d=ha(o.currentLocation.pathname,i)||o.currentLocation.pathname,f=ha(o.nextLocation.pathname,i)||o.nextLocation.pathname;return Cs(u.pathname,f)!=null||Cs(u.pathname,d)!=null}var $o=Hv();const s0=Bv($o),kw="/api";function zw(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 Ce(n,l){const o=await fetch(`${kw}${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(zw(i,`HTTP ${o.status}`))}return o.json()}function Lw(){return Ce("/system/info")}function P_(n){return Ce("/system/transport",{method:"POST",body:JSON.stringify({type:n})})}function Uw(n){return Ce("/system/runtime/restart",{method:"POST",body:JSON.stringify(n)})}function Bw(){return Ce("/system/runtime/stop",{method:"POST"})}function Hw(){return Ce("/cluster/state")}function I_(){return Ce("/cluster/promote",{method:"POST"})}function F_(n){return Ce("/cluster/connect",{method:"POST",body:JSON.stringify(n)})}function J_(){return Ce("/cluster/disconnect",{method:"POST"})}function Vw(n){return Ce(`/node-operations/${n}`)}async function qw(n={}){const l=new URLSearchParams;n.nodeId&&l.set("nodeId",n.nodeId),n.status&&l.set("status",n.status),n.kind&&l.set("kind",n.kind);const o=l.toString();return(await Ce(`/node-operations${o?`?${o}`:""}`)).operations}function Yw(n,l){return Ce(`/nodes/${n}/agents/${l}/upgrade`,{method:"POST"})}function $w(n,l){return Ce(`/nodes/${n}/runtime/restart`,{method:"POST",body:JSON.stringify(l)})}function W_(n,l){return Ce(`/nodes/${n}/devtunnel`,{method:"POST",body:JSON.stringify({enabled:l})})}function e3(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 Ce(`/nodes/${n}/workdir/tree${i?`?${i}`:""}`)}function t3(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 Ce(`/nodes/${n}/workdir/branch${i?`?${i}`:""}`)}function n3(n,l){const o=new URLSearchParams;return o.set("agent",l.agent),o.set("limit",String(Math.min(Math.max(1,l.limit),100))),Ce(`/nodes/${n}/native-sessions?${o.toString()}`)}function a3(n,l){return Ce(`/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 l3(n,l){return Ce(`/nodes/${n}/terminal/sessions`,{method:"POST",body:JSON.stringify(l)})}function r3(n){return Ce(`/nodes/${n}/terminal/sessions`)}function o3(n,l){return Ce(`/nodes/${n}/terminal/sessions/${l}`)}function i3(n,l){return Ce(`/nodes/${n}/terminal/sessions/${l}/stop`,{method:"POST"})}async function s3(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 Ce(`/tasks${o?`?${o}`:""}`)).tasks}function c3(n){return Ce(`/tasks/${n}`)}function u3(n){return Ce("/tasks",{method:"POST",body:JSON.stringify(n)})}function d3(n){return Ce("/tasks/import-session",{method:"POST",body:JSON.stringify(n)})}function f3(n){return Ce("/tasks/batch/delete",{method:"POST",body:JSON.stringify({ids:n})})}function m3(n){return Ce("/tasks/batch/archive",{method:"POST",body:JSON.stringify({ids:n})})}function h3(n){return Ce(`/tasks/${n}/cancel`,{method:"POST"})}function p3(n){return Ce(`/tasks/${n}/retry`,{method:"POST"})}function g3(n,l){return Ce(`/tasks/${n}/logs`)}function v3(n,l){return Ce(`/tasks/${n}/message`,{method:"POST",body:JSON.stringify({content:l})})}function y3(n,l){return Ce(`/tasks/${n}/share`,{method:"POST",body:JSON.stringify(l)})}function b3(n){return Ce(`/tasks/${n}/share`,{method:"DELETE"})}function x3(n){return Ce(`/shared/conversations/${encodeURIComponent(n)}`)}function S3(n,l){return Ce(`/shared/conversations/${encodeURIComponent(n)}/logs`)}function w3(n){return Ce(`/shared/conversations/${encodeURIComponent(n)}/output`)}function E3(n,l="."){return Ce(`/shared/conversations/${encodeURIComponent(n)}/output/tree?path=${encodeURIComponent(l)}`)}function N3(n,l){return Ce(`/shared/conversations/${encodeURIComponent(n)}/output/content?path=${encodeURIComponent(l)}`)}function C3(n,l){return Ce(`/shared/conversations/${encodeURIComponent(n)}/output/preview-sessions`,{method:"POST",body:JSON.stringify(l?{path:l}:{})})}function Gw(n){return n?typeof n=="string"?{path:n}:{...n.path?{path:n.path}:{},...n.port!==void 0?{port:n.port}:{}}:{}}function T3(n){return Ce(`/tasks/${n}/output`)}function R3(n,l="."){return Ce(`/tasks/${n}/output/tree?path=${encodeURIComponent(l)}`)}function A3(n,l){return Ce(`/tasks/${n}/output/content?path=${encodeURIComponent(l)}`)}function _3(n,l){return Ce(`/tasks/${n}/output/preview-sessions`,{method:"POST",body:JSON.stringify(Gw(l))})}function j3(n){return Ce(`/tasks/${n}/output/diff`)}function Xw({hasStarted:n,enabled:l}){return l&&!n}function Qw(n,l,o=!0){const i=y.useRef(n),u=y.useRef(!1);y.useEffect(()=>{i.current=n},[n]),y.useEffect(()=>{if(!o)return;const d=()=>i.current();Xw({hasStarted:u.current,enabled:o})&&(u.current=!0,d());const f=setInterval(d,l);return()=>clearInterval(f)},[l,o])}let Kw=0;function Zw(n=50){const[l,o]=y.useState([]),[i,u]=y.useState(!1),d=y.useRef(null),f=y.useRef(0),h=y.useRef(new Map);y.useEffect(()=>{const x=new EventSource("/api/events");d.current=x,x.onopen=()=>u(!0),x.onerror=()=>u(!1);const p=["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 S of p)x.addEventListener(S,E=>{const R={id:String(++Kw),type:S,data:JSON.parse(E.data),timestamp:Date.now()};o(N=>[R,...N].slice(0,n));for(const[,{pattern:N,callback:T}]of h.current)S.startsWith(N)&&T(R)});return()=>{x.close(),d.current=null,u(!1)}},[n]);const v=y.useCallback((x,p)=>{const S=++f.current;return h.current.set(S,{pattern:x,callback:p}),()=>{h.current.delete(S)}},[]),g=y.useCallback(()=>o([]),[]);return{events:l,connected:i,subscribe:v,clearEvents:g}}const Pw=1e4,Iw=6e4,Fw=Pw,Jw=250,Ww=new Set(["task.created","task.assigned","task.deleted"]),eE=new Set(["task.created","task.assigned","task.status","task.deleted"]);function tE(n){return n?Iw:Fw}function O3(n){return Ww.has(n)}function nE(n){return eE.has(n)}function aE(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 M3(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,v="error"in l?l.error:i==="completed"?null:f.error;return{...f,status:i,result:h,error:v}});return u?d:n}const c0=y.createContext(null);function lE({children:n}){const[l,o]=y.useState(null),[i,u]=y.useState(null),[d,f]=y.useState(!0),[h,v]=y.useState(null),g=y.useRef(null),x=y.useRef(null),{events:p,connected:S,subscribe:E}=Zw(),R=y.useCallback(async()=>{var T;try{const[C,j]=await Promise.all([Hw(),Lw()]),M=C,k=j.nodeId??j.id,q=M.nodes??[],$=q.find(ne=>ne.id===k)??{id:k,name:j.name,endpoint:j.endpoint,role:j.role,status:j.status,capabilities:j.capabilities,joinedAt:j.joinedAt,lastHeartbeat:j.lastHeartbeat},U=M.leaderId?q.find(ne=>ne.id===M.leaderId)??null:null,V={leader:U?{id:U.id,name:U.name,endpoint:U.endpoint,...U.dashboardOrigin?{dashboardOrigin:U.dashboardOrigin}:{}}:null,term:M.term??0,nodes:q,self:$,taskSummary:M.taskSummary??{total:0,pending:0,running:0,completed:0,failed:0}};x.current={leaderId:((T=V.leader)==null?void 0:T.id)??null,term:V.term,nodeCount:V.nodes.length},o(V),u(j),v(null)}catch(C){v(C instanceof Error?C.message:"Failed to fetch cluster state")}finally{f(!1)}},[]),N=y.useCallback(()=>{g.current===null&&(g.current=window.setTimeout(()=>{g.current=null,R()},Jw))},[R]);return Qw(R,tE(S)),y.useEffect(()=>()=>{g.current!==null&&(window.clearTimeout(g.current),g.current=null)},[]),y.useEffect(()=>{const T=[E("cluster",C=>{aE(C.data,x.current)&&N()}),E("election",N),E("node",N),E("transport",N),E("task",C=>{nE(C.type)&&N()})];return()=>T.forEach(C=>C())},[E,N]),m.jsx(c0.Provider,{value:{cluster:l,systemInfo:i,events:p,sseConnected:S,subscribe:E,refresh:R,loading:d,error:h},children:n})}function u0(){const n=y.useContext(c0);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 d0=(...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 rE=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 oE=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 Fg=n=>{const l=oE(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 Nd={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 iE=n=>{for(const l in n)if(l.startsWith("aria-")||l==="role"||l==="title")return!0;return!1},sE=y.createContext({}),cE=()=>y.useContext(sE),uE=y.forwardRef(({color:n,size:l,strokeWidth:o,absoluteStrokeWidth:i,className:u="",children:d,iconNode:f,...h},v)=>{const{size:g=24,strokeWidth:x=2,absoluteStrokeWidth:p=!1,color:S="currentColor",className:E=""}=cE()??{},R=i??p?Number(o??x)*24/Number(l??g):o??x;return y.createElement("svg",{ref:v,...Nd,width:l??g??Nd.width,height:l??g??Nd.height,stroke:n??S,strokeWidth:R,className:d0("lucide",E,u),...!d&&!iE(h)&&{"aria-hidden":"true"},...h},[...f.map(([N,T])=>y.createElement(N,T)),...Array.isArray(d)?d:[d]])});/**
|
|
92
|
+
* @license lucide-react v1.7.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const Ye=(n,l)=>{const o=y.forwardRef(({className:i,...u},d)=>y.createElement(uE,{ref:d,iconNode:l,className:d0(`lucide-${rE(Fg(n))}`,`lucide-${n}`,i),...u}));return o.displayName=Fg(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 dE=[["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"}]],Ts=Ye("activity",dE);/**
|
|
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 fE=[["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"}]],mE=Ye("book-open",fE);/**
|
|
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 hE=[["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"}]],f0=Ye("bot",hE);/**
|
|
112
|
+
* @license lucide-react v1.7.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const pE=[["path",{d:"M17 19a1 1 0 0 1-1-1v-2a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2a1 1 0 0 1-1 1z",key:"trhst0"}],["path",{d:"M17 21v-2",key:"ds4u3f"}],["path",{d:"M19 14V6.5a1 1 0 0 0-7 0v11a1 1 0 0 1-7 0V10",key:"1mo9zo"}],["path",{d:"M21 21v-2",key:"eo0ou"}],["path",{d:"M3 5V3",key:"1k5hjh"}],["path",{d:"M4 10a2 2 0 0 1-2-2V6a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2a2 2 0 0 1-2 2z",key:"1dd30t"}],["path",{d:"M7 5V3",key:"1t1388"}]],gE=Ye("cable",pE);/**
|
|
117
|
+
* @license lucide-react v1.7.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const vE=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],uf=Ye("check",vE);/**
|
|
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 yE=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Xs=Ye("chevron-down",yE);/**
|
|
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 bE=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],xE=Ye("chevron-right",bE);/**
|
|
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 SE=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],wE=Ye("chevron-up",SE);/**
|
|
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 EE=[["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"}]],is=Ye("circle-alert",EE);/**
|
|
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 NE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],zo=Ye("circle-check",NE);/**
|
|
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 CE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}]],Jg=Ye("circle-dot",CE);/**
|
|
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 TE=[["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"}]],RE=Ye("circle-x",TE);/**
|
|
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 AE=[["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=Ye("copy",AE);/**
|
|
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 jE=[["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"}]],OE=Ye("cpu",jE);/**
|
|
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 ME=[["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"}]],DE=Ye("external-link",ME);/**
|
|
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 kE=[["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"}]],zE=Ye("folder-tree",kE);/**
|
|
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 LE=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],UE=Ye("info",LE);/**
|
|
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 BE=[["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"}]],HE=Ye("monitor-cog",BE);/**
|
|
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 VE=[["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"}]],m0=Ye("monitor",VE);/**
|
|
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 qE=[["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"}]],h0=Ye("moon",qE);/**
|
|
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 YE=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],$E=Ye("power",YE);/**
|
|
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 GE=[["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"}]],p0=Ye("radio",GE);/**
|
|
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 XE=[["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"}]],QE=Ye("refresh-cw",XE);/**
|
|
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 KE=[["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"}]],ZE=Ye("server",KE);/**
|
|
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 PE=[["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"}]],IE=Ye("settings",PE);/**
|
|
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 FE=[["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"}]],JE=Ye("shield",FE);/**
|
|
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 WE=[["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"}]],eN=Ye("sparkles",WE);/**
|
|
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 tN=[["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"}]],g0=Ye("sun",tN);/**
|
|
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 nN=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],v0=Ye("terminal",nN);/**
|
|
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 aN=[["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"}]],lN=Ye("wifi-off",aN);/**
|
|
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 rN=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],y0=Ye("x",rN);function b0(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=b0(n[l]))&&(i&&(i+=" "),i+=o)}else for(o in n)n[o]&&(i&&(i+=" "),i+=o);return i}function x0(){for(var n,l,o=0,i="",u=arguments.length;o<u;o++)(n=arguments[o])&&(l=b0(n))&&(i&&(i+=" "),i+=l);return i}const oN=(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},iN=(n,l)=>({classGroupId:n,validator:l}),S0=(n=new Map,l=null,o)=>({nextPart:n,validators:l,classGroupId:o}),Rs="-",Wg=[],sN="arbitrary..",cN=n=>{const l=dN(n),{conflictingClassGroups:o,conflictingClassGroupModifiers:i}=n;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return uN(f);const h=f.split(Rs),v=h[0]===""&&h.length>1?1:0;return w0(h,v,l)},getConflictingClassGroupIds:(f,h)=>{if(h){const v=i[f],g=o[f];return v?g?oN(g,v):v:g||Wg}return o[f]||Wg}}},w0=(n,l,o)=>{if(n.length-l===0)return o.classGroupId;const u=n[l],d=o.nextPart.get(u);if(d){const g=w0(n,l+1,d);if(g)return g}const f=o.validators;if(f===null)return;const h=l===0?n.join(Rs):n.slice(l).join(Rs),v=f.length;for(let g=0;g<v;g++){const x=f[g];if(x.validator(h))return x.classGroupId}},uN=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})(),dN=n=>{const{theme:l,classGroups:o}=n;return fN(o,l)},fN=(n,l)=>{const o=S0();for(const i in n){const u=n[i];df(u,o,i,l)}return o},df=(n,l,o,i)=>{const u=n.length;for(let d=0;d<u;d++){const f=n[d];mN(f,l,o,i)}},mN=(n,l,o,i)=>{if(typeof n=="string"){hN(n,l,o);return}if(typeof n=="function"){pN(n,l,o,i);return}gN(n,l,o,i)},hN=(n,l,o)=>{const i=n===""?l:E0(l,n);i.classGroupId=o},pN=(n,l,o,i)=>{if(vN(n)){df(n(i),l,o,i);return}l.validators===null&&(l.validators=[]),l.validators.push(iN(o,n))},gN=(n,l,o,i)=>{const u=Object.entries(n),d=u.length;for(let f=0;f<d;f++){const[h,v]=u[f];df(v,E0(l,h),o,i)}},E0=(n,l)=>{let o=n;const i=l.split(Rs),u=i.length;for(let d=0;d<u;d++){const f=i[d];let h=o.nextPart.get(f);h||(h=S0(),o.nextPart.set(f,h)),o=h}return o},vN=n=>"isThemeGetter"in n&&n.isThemeGetter===!0,yN=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)}}},Vd="!",ev=":",bN=[],tv=(n,l,o,i,u)=>({modifiers:n,hasImportantModifier:l,baseClassName:o,maybePostfixModifierPosition:i,isExternal:u}),xN=n=>{const{prefix:l,experimentalParseClassName:o}=n;let i=u=>{const d=[];let f=0,h=0,v=0,g;const x=u.length;for(let N=0;N<x;N++){const T=u[N];if(f===0&&h===0){if(T===ev){d.push(u.slice(v,N)),v=N+1;continue}if(T==="/"){g=N;continue}}T==="["?f++:T==="]"?f--:T==="("?h++:T===")"&&h--}const p=d.length===0?u:u.slice(v);let S=p,E=!1;p.endsWith(Vd)?(S=p.slice(0,-1),E=!0):p.startsWith(Vd)&&(S=p.slice(1),E=!0);const R=g&&g>v?g-v:void 0;return tv(d,E,S,R)};if(l){const u=l+ev,d=i;i=f=>f.startsWith(u)?d(f.slice(u.length)):tv(bN,!1,f,void 0,!0)}if(o){const u=i;i=d=>o({className:d,parseClassName:u})}return i},SN=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]==="[",v=l.has(f);h||v?(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}},wN=n=>({cache:yN(n.cacheSize),parseClassName:xN(n),sortModifiers:SN(n),...cN(n)}),EN=/\s+/,NN=(n,l)=>{const{parseClassName:o,getClassGroupId:i,getConflictingClassGroupIds:u,sortModifiers:d}=l,f=[],h=n.trim().split(EN);let v="";for(let g=h.length-1;g>=0;g-=1){const x=h[g],{isExternal:p,modifiers:S,hasImportantModifier:E,baseClassName:R,maybePostfixModifierPosition:N}=o(x);if(p){v=x+(v.length>0?" "+v:v);continue}let T=!!N,C=i(T?R.substring(0,N):R);if(!C){if(!T){v=x+(v.length>0?" "+v:v);continue}if(C=i(R),!C){v=x+(v.length>0?" "+v:v);continue}T=!1}const j=S.length===0?"":S.length===1?S[0]:d(S).join(":"),M=E?j+Vd:j,k=M+C;if(f.indexOf(k)>-1)continue;f.push(k);const q=u(C,T);for(let $=0;$<q.length;++$){const U=q[$];f.push(M+U)}v=x+(v.length>0?" "+v:v)}return v},CN=(...n)=>{let l=0,o,i,u="";for(;l<n.length;)(o=n[l++])&&(i=N0(o))&&(u&&(u+=" "),u+=i);return u},N0=n=>{if(typeof n=="string")return n;let l,o="";for(let i=0;i<n.length;i++)n[i]&&(l=N0(n[i]))&&(o&&(o+=" "),o+=l);return o},TN=(n,...l)=>{let o,i,u,d;const f=v=>{const g=l.reduce((x,p)=>p(x),n());return o=wN(g),i=o.cache.get,u=o.cache.set,d=h,h(v)},h=v=>{const g=i(v);if(g)return g;const x=NN(v,o);return u(v,x),x};return d=f,(...v)=>d(CN(...v))},RN=[],vt=n=>{const l=o=>o[n]||RN;return l.isThemeGetter=!0,l},C0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,T0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,AN=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,_N=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,jN=/\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$/,ON=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,MN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,DN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Xa=n=>AN.test(n),_e=n=>!!n&&!Number.isNaN(Number(n)),Qa=n=>!!n&&Number.isInteger(Number(n)),Cd=n=>n.endsWith("%")&&_e(n.slice(0,-1)),ma=n=>_N.test(n),R0=()=>!0,kN=n=>jN.test(n)&&!ON.test(n),ff=()=>!1,zN=n=>MN.test(n),LN=n=>DN.test(n),UN=n=>!me(n)&&!he(n),BN=n=>Wa(n,j0,ff),me=n=>C0.test(n),Cl=n=>Wa(n,O0,kN),nv=n=>Wa(n,QN,_e),HN=n=>Wa(n,D0,R0),VN=n=>Wa(n,M0,ff),av=n=>Wa(n,A0,ff),qN=n=>Wa(n,_0,LN),ss=n=>Wa(n,k0,zN),he=n=>T0.test(n),Do=n=>Dl(n,O0),YN=n=>Dl(n,M0),lv=n=>Dl(n,A0),$N=n=>Dl(n,j0),GN=n=>Dl(n,_0),cs=n=>Dl(n,k0,!0),XN=n=>Dl(n,D0,!0),Wa=(n,l,o)=>{const i=C0.exec(n);return i?i[1]?l(i[1]):o(i[2]):!1},Dl=(n,l,o=!1)=>{const i=T0.exec(n);return i?i[1]?l(i[1]):o:!1},A0=n=>n==="position"||n==="percentage",_0=n=>n==="image"||n==="url",j0=n=>n==="length"||n==="size"||n==="bg-size",O0=n=>n==="length",QN=n=>n==="number",M0=n=>n==="family-name",D0=n=>n==="number"||n==="weight",k0=n=>n==="shadow",KN=()=>{const n=vt("color"),l=vt("font"),o=vt("text"),i=vt("font-weight"),u=vt("tracking"),d=vt("leading"),f=vt("breakpoint"),h=vt("container"),v=vt("spacing"),g=vt("radius"),x=vt("shadow"),p=vt("inset-shadow"),S=vt("text-shadow"),E=vt("drop-shadow"),R=vt("blur"),N=vt("perspective"),T=vt("aspect"),C=vt("ease"),j=vt("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"],q=()=>[...k(),he,me],$=()=>["auto","hidden","clip","visible","scroll"],U=()=>["auto","contain","none"],V=()=>[he,me,v],ne=()=>[Xa,"full","auto",...V()],de=()=>[Qa,"none","subgrid",he,me],ve=()=>["auto",{span:["full",Qa,he,me]},Qa,he,me],oe=()=>[Qa,"auto",he,me],se=()=>["auto","min","max","fr",he,me],le=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ce=()=>["start","end","center","stretch","center-safe","end-safe"],O=()=>["auto",...V()],G=()=>[Xa,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...V()],I=()=>[Xa,"screen","full","dvw","lvw","svw","min","max","fit",...V()],ie=()=>[Xa,"screen","full","lh","dvh","lvh","svh","min","max","fit",...V()],F=()=>[n,he,me],_=()=>[...k(),lv,av,{position:[he,me]}],X=()=>["no-repeat",{repeat:["","x","y","space","round"]}],K=()=>["auto","cover","contain",$N,BN,{size:[he,me]}],J=()=>[Cd,Do,Cl],W=()=>["","none","full",g,he,me],ae=()=>["",_e,Do,Cl],ee=()=>["solid","dashed","dotted","double"],re=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ue=()=>[_e,Cd,lv,av],Te=()=>["","none",R,he,me],we=()=>["none",_e,he,me],Se=()=>["none",_e,he,me],Je=()=>[_e,he,me],$e=()=>[Xa,"full",...V()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ma],breakpoint:[ma],color:[R0],container:[ma],"drop-shadow":[ma],ease:["in","out","in-out"],font:[UN],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ma],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ma],shadow:[ma],spacing:["px",_e],text:[ma],"text-shadow":[ma],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Xa,me,he,T]}],container:["container"],columns:[{columns:[_e,me,he,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:q()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:U()}],"overscroll-x":[{"overscroll-x":U()}],"overscroll-y":[{"overscroll-y":U()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:ne()}],"inset-x":[{"inset-x":ne()}],"inset-y":[{"inset-y":ne()}],start:[{"inset-s":ne(),start:ne()}],end:[{"inset-e":ne(),end:ne()}],"inset-bs":[{"inset-bs":ne()}],"inset-be":[{"inset-be":ne()}],top:[{top:ne()}],right:[{right:ne()}],bottom:[{bottom:ne()}],left:[{left:ne()}],visibility:["visible","invisible","collapse"],z:[{z:[Qa,"auto",he,me]}],basis:[{basis:[Xa,"full","auto",h,...V()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,Xa,"auto","initial","none",me]}],grow:[{grow:["",_e,he,me]}],shrink:[{shrink:["",_e,he,me]}],order:[{order:[Qa,"first","last","none",he,me]}],"grid-cols":[{"grid-cols":de()}],"col-start-end":[{col:ve()}],"col-start":[{"col-start":oe()}],"col-end":[{"col-end":oe()}],"grid-rows":[{"grid-rows":de()}],"row-start-end":[{row:ve()}],"row-start":[{"row-start":oe()}],"row-end":[{"row-end":oe()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:V()}],"gap-x":[{"gap-x":V()}],"gap-y":[{"gap-y":V()}],"justify-content":[{justify:[...le(),"normal"]}],"justify-items":[{"justify-items":[...ce(),"normal"]}],"justify-self":[{"justify-self":["auto",...ce()]}],"align-content":[{content:["normal",...le()]}],"align-items":[{items:[...ce(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ce(),{baseline:["","last"]}]}],"place-content":[{"place-content":le()}],"place-items":[{"place-items":[...ce(),"baseline"]}],"place-self":[{"place-self":["auto",...ce()]}],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:G()}],"inline-size":[{inline:["auto",...I()]}],"min-inline-size":[{"min-inline":["auto",...I()]}],"max-inline-size":[{"max-inline":["none",...I()]}],"block-size":[{block:["auto",...ie()]}],"min-block-size":[{"min-block":["auto",...ie()]}],"max-block-size":[{"max-block":["none",...ie()]}],w:[{w:[h,"screen",...G()]}],"min-w":[{"min-w":[h,"screen","none",...G()]}],"max-w":[{"max-w":[h,"screen","none","prose",{screen:[f]},...G()]}],h:[{h:["screen","lh",...G()]}],"min-h":[{"min-h":["screen","lh","none",...G()]}],"max-h":[{"max-h":["screen","lh",...G()]}],"font-size":[{text:["base",o,Do,Cl]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,XN,HN]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Cd,me]}],"font-family":[{font:[YN,VN,l]}],"font-features":[{"font-features":[me]}],"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,he,me]}],"line-clamp":[{"line-clamp":[_e,"none",he,nv]}],leading:[{leading:[d,...V()]}],"list-image":[{"list-image":["none",he,me]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",he,me]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",he,Cl]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[_e,"auto",he,me]}],"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",he,me]}],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",he,me]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:_()}],"bg-repeat":[{bg:X()}],"bg-size":[{bg:K()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Qa,he,me],radial:["",he,me],conic:[Qa,he,me]},GN,qN]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:J()}],"gradient-via-pos":[{via:J()}],"gradient-to-pos":[{to:J()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:W()}],"rounded-s":[{"rounded-s":W()}],"rounded-e":[{"rounded-e":W()}],"rounded-t":[{"rounded-t":W()}],"rounded-r":[{"rounded-r":W()}],"rounded-b":[{"rounded-b":W()}],"rounded-l":[{"rounded-l":W()}],"rounded-ss":[{"rounded-ss":W()}],"rounded-se":[{"rounded-se":W()}],"rounded-ee":[{"rounded-ee":W()}],"rounded-es":[{"rounded-es":W()}],"rounded-tl":[{"rounded-tl":W()}],"rounded-tr":[{"rounded-tr":W()}],"rounded-br":[{"rounded-br":W()}],"rounded-bl":[{"rounded-bl":W()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-bs":[{"border-bs":ae()}],"border-w-be":[{"border-be":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-bs":[{"border-bs":F()}],"border-color-be":[{"border-be":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,he,me]}],"outline-w":[{outline:["",_e,Do,Cl]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",x,cs,ss]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",p,cs,ss]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[_e,Cl]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",S,cs,ss]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[_e,he,me]}],"mix-blend":[{"mix-blend":[...re(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":re()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[_e]}],"mask-image-linear-from-pos":[{"mask-linear-from":ue()}],"mask-image-linear-to-pos":[{"mask-linear-to":ue()}],"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":ue()}],"mask-image-t-to-pos":[{"mask-t-to":ue()}],"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":ue()}],"mask-image-r-to-pos":[{"mask-r-to":ue()}],"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":ue()}],"mask-image-b-to-pos":[{"mask-b-to":ue()}],"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":ue()}],"mask-image-l-to-pos":[{"mask-l-to":ue()}],"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":ue()}],"mask-image-x-to-pos":[{"mask-x-to":ue()}],"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":ue()}],"mask-image-y-to-pos":[{"mask-y-to":ue()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[he,me]}],"mask-image-radial-from-pos":[{"mask-radial-from":ue()}],"mask-image-radial-to-pos":[{"mask-radial-to":ue()}],"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":[_e]}],"mask-image-conic-from-pos":[{"mask-conic-from":ue()}],"mask-image-conic-to-pos":[{"mask-conic-to":ue()}],"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:_()}],"mask-repeat":[{mask:X()}],"mask-size":[{mask:K()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",he,me]}],filter:[{filter:["","none",he,me]}],blur:[{blur:Te()}],brightness:[{brightness:[_e,he,me]}],contrast:[{contrast:[_e,he,me]}],"drop-shadow":[{"drop-shadow":["","none",E,cs,ss]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",_e,he,me]}],"hue-rotate":[{"hue-rotate":[_e,he,me]}],invert:[{invert:["",_e,he,me]}],saturate:[{saturate:[_e,he,me]}],sepia:[{sepia:["",_e,he,me]}],"backdrop-filter":[{"backdrop-filter":["","none",he,me]}],"backdrop-blur":[{"backdrop-blur":Te()}],"backdrop-brightness":[{"backdrop-brightness":[_e,he,me]}],"backdrop-contrast":[{"backdrop-contrast":[_e,he,me]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,he,me]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,he,me]}],"backdrop-invert":[{"backdrop-invert":["",_e,he,me]}],"backdrop-opacity":[{"backdrop-opacity":[_e,he,me]}],"backdrop-saturate":[{"backdrop-saturate":[_e,he,me]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,he,me]}],"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",he,me]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",he,me]}],ease:[{ease:["linear","initial",C,he,me]}],delay:[{delay:[_e,he,me]}],animate:[{animate:["none",j,he,me]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[N,he,me]}],"perspective-origin":[{"perspective-origin":q()}],rotate:[{rotate:we()}],"rotate-x":[{"rotate-x":we()}],"rotate-y":[{"rotate-y":we()}],"rotate-z":[{"rotate-z":we()}],scale:[{scale:Se()}],"scale-x":[{"scale-x":Se()}],"scale-y":[{"scale-y":Se()}],"scale-z":[{"scale-z":Se()}],"scale-3d":["scale-3d"],skew:[{skew:Je()}],"skew-x":[{"skew-x":Je()}],"skew-y":[{"skew-y":Je()}],transform:[{transform:[he,me,"","none","gpu","cpu"]}],"transform-origin":[{origin:q()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:$e()}],"translate-x":[{"translate-x":$e()}],"translate-y":[{"translate-y":$e()}],"translate-z":[{"translate-z":$e()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",he,me]}],"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",he,me]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[_e,Do,Cl,nv]}],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"]}},ZN=TN(KN);function ge(...n){return ZN(x0(n))}const rv=n=>typeof n=="boolean"?`${n}`:n===0?"0":n,ov=x0,z0=(n,l)=>o=>{var i;if((l==null?void 0:l.variants)==null)return ov(n,o==null?void 0:o.class,o==null?void 0:o.className);const{variants:u,defaultVariants:d}=l,f=Object.keys(u).map(g=>{const x=o==null?void 0:o[g],p=d==null?void 0:d[g];if(x===null)return null;const S=rv(x)||rv(p);return u[g][S]}),h=o&&Object.entries(o).reduce((g,x)=>{let[p,S]=x;return S===void 0||(g[p]=S),g},{}),v=l==null||(i=l.compoundVariants)===null||i===void 0?void 0:i.reduce((g,x)=>{let{class:p,className:S,...E}=x;return Object.entries(E).every(R=>{let[N,T]=R;return Array.isArray(T)?T.includes({...d,...h}[N]):{...d,...h}[N]===T})?[...g,p,S]:g},[]);return ov(n,f,v,o==null?void 0:o.class,o==null?void 0:o.className)},PN=z0("inline-flex items-center rounded-[12px] border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function yt({className:n,variant:l,...o}){return m.jsx("div",{className:ge(PN({variant:l}),n),...o})}const IN={online:"bg-green-500",busy:"bg-yellow-500",offline:"bg-red-500"};function L0({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:ge("relative inline-flex h-2.5 w-2.5 rounded-full",IN[n])})]})}function FN({role:n}){return m.jsx(yt,{variant:n==="leader"?"default":"secondary",className:"text-[11px]",children:n})}const JN={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 D3({status:n}){const l=JN[n];return m.jsxs(yt,{variant:l.variant,className:ge("gap-1 rounded-[9px] px-1.5 py-0 text-[10px] font-medium leading-4 shadow-none",l.className),children:[m.jsx("span",{className:ge("h-[5px] w-[5px] rounded-full",l.dotClass)}),n]})}const WN={critical:{variant:"destructive",label:"Critical"},high:{variant:"outline",label:"High"},normal:{variant:"secondary",label:"Normal"},low:{variant:"secondary",label:"Low"}};function k3({priority:n}){const l=WN[n];return m.jsx(yt,{variant:l.variant,className:"rounded-[9px] px-1.5 py-0 text-[10px] leading-4 shadow-none",children:l.label})}function eC(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 tC=n=>{switch(n){case"success":return lC;case"info":return oC;case"warning":return rC;case"error":return iC;default:return null}},nC=Array(12).fill(0),aC=({visible:n,className:l})=>te.createElement("div",{className:["sonner-loading-wrapper",l].filter(Boolean).join(" "),"data-visible":n},te.createElement("div",{className:"sonner-spinner"},nC.map((o,i)=>te.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${i}`})))),lC=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},te.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"})),rC=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},te.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"})),oC=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},te.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"})),iC=te.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},te.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"})),sC=te.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"},te.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),te.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),cC=()=>{const[n,l]=te.useState(document.hidden);return te.useEffect(()=>{const o=()=>{l(document.hidden)};return document.addEventListener("visibilitychange",o),()=>window.removeEventListener("visibilitychange",o)},[]),n};let qd=1;class uC{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(v=>v.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(v=>v.id===d?(this.publish({...v,...l,id:d,title:i}),{...v,...l,id:d,dismissible:h,title:i}):v):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 g=>{if(f=["resolve",g],te.isValidElement(g))d=!1,this.create({id:i,type:"default",message:g});else if(fC(g)&&!g.ok){d=!1;const p=typeof o.error=="function"?await o.error(`HTTP error! status: ${g.status}`):o.error,S=typeof o.description=="function"?await o.description(`HTTP error! status: ${g.status}`):o.description,R=typeof p=="object"&&!te.isValidElement(p)?p:{message:p};this.create({id:i,type:"error",description:S,...R})}else if(g instanceof Error){d=!1;const p=typeof o.error=="function"?await o.error(g):o.error,S=typeof o.description=="function"?await o.description(g):o.description,R=typeof p=="object"&&!te.isValidElement(p)?p:{message:p};this.create({id:i,type:"error",description:S,...R})}else if(o.success!==void 0){d=!1;const p=typeof o.success=="function"?await o.success(g):o.success,S=typeof o.description=="function"?await o.description(g):o.description,R=typeof p=="object"&&!te.isValidElement(p)?p:{message:p};this.create({id:i,type:"success",description:S,...R})}}).catch(async g=>{if(f=["reject",g],o.error!==void 0){d=!1;const x=typeof o.error=="function"?await o.error(g):o.error,p=typeof o.description=="function"?await o.description(g):o.description,E=typeof x=="object"&&!te.isValidElement(x)?x:{message:x};this.create({id:i,type:"error",description:p,...E})}}).finally(()=>{d&&(this.dismiss(i),i=void 0),o.finally==null||o.finally.call(o)}),v=()=>new Promise((g,x)=>h.then(()=>f[0]==="reject"?x(f[1]):g(f[1])).catch(x));return typeof i!="string"&&typeof i!="number"?{unwrap:v}:Object.assign(i,{unwrap:v})},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 Qt=new uC,dC=(n,l)=>{const o=(l==null?void 0:l.id)||qd++;return Qt.addToast({title:n,...l,id:o}),o},fC=n=>n&&typeof n=="object"&&"ok"in n&&typeof n.ok=="boolean"&&"status"in n&&typeof n.status=="number",mC=dC,hC=()=>Qt.toasts,pC=()=>Qt.getActiveToasts(),wt=Object.assign(mC,{success:Qt.success,info:Qt.info,warning:Qt.warning,error:Qt.error,custom:Qt.custom,message:Qt.message,promise:Qt.promise,dismiss:Qt.dismiss,loading:Qt.loading},{getHistory:hC,getToasts:pC});eC("[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 us(n){return n.label!==void 0}const gC=3,vC="24px",yC="16px",iv=4e3,bC=356,xC=14,SC=45,wC=200;function kn(...n){return n.filter(Boolean).join(" ")}function EC(n){const[l,o]=n.split("-"),i=[];return l&&i.push(l),o&&i.push(o),i}const NC=n=>{var l,o,i,u,d,f,h,v,g;const{invert:x,toast:p,unstyled:S,interacting:E,setHeights:R,visibleToasts:N,heights:T,index:C,toasts:j,expanded:M,removeToast:k,defaultRichColors:q,closeButton:$,style:U,cancelButtonStyle:V,actionButtonStyle:ne,className:de="",descriptionClassName:ve="",duration:oe,position:se,gap:le,expandByDefault:ce,classNames:O,icons:G,closeButtonAriaLabel:I="Close toast"}=n,[ie,F]=te.useState(null),[_,X]=te.useState(null),[K,J]=te.useState(!1),[W,ae]=te.useState(!1),[ee,re]=te.useState(!1),[ue,Te]=te.useState(!1),[we,Se]=te.useState(!1),[Je,$e]=te.useState(0),[kt,be]=te.useState(0),Ge=te.useRef(p.duration||oe||iv),it=te.useRef(null),We=te.useRef(null),Kt=C===0,Rn=C+1<=N,Be=p.type,zt=p.dismissible!==!1,rt=p.className||"",Kn=p.descriptionClassName||"",al=te.useMemo(()=>T.findIndex(Ee=>Ee.toastId===p.id)||0,[T,p.id]),Qo=te.useMemo(()=>{var Ee;return(Ee=p.closeButton)!=null?Ee:$},[p.closeButton,$]),ll=te.useMemo(()=>p.duration||oe||iv,[p.duration,oe]),Br=te.useRef(0),Zn=te.useRef(0),Ko=te.useRef(0),ba=te.useRef(null),[rl,Mt]=se.split("-"),vn=te.useMemo(()=>T.reduce((Ee,nt,bt)=>bt>=al?Ee:Ee+nt.height,0),[T,al]),At=cC(),lc=p.invert||x,Hr=Be==="loading";Zn.current=te.useMemo(()=>al*le+vn,[al,vn]),te.useEffect(()=>{Ge.current=ll},[ll]),te.useEffect(()=>{J(!0)},[]),te.useEffect(()=>{const Ee=We.current;if(Ee){const nt=Ee.getBoundingClientRect().height;return be(nt),R(bt=>[{toastId:p.id,height:nt,position:p.position},...bt]),()=>R(bt=>bt.filter(_t=>_t.toastId!==p.id))}},[R,p.id]),te.useLayoutEffect(()=>{if(!K)return;const Ee=We.current,nt=Ee.style.height;Ee.style.height="auto";const bt=Ee.getBoundingClientRect().height;Ee.style.height=nt,be(bt),R(_t=>_t.find(ot=>ot.toastId===p.id)?_t.map(ot=>ot.toastId===p.id?{...ot,height:bt}:ot):[{toastId:p.id,height:bt,position:p.position},..._t])},[K,p.title,p.description,R,p.id,p.jsx,p.action,p.cancel]);const An=te.useCallback(()=>{ae(!0),$e(Zn.current),R(Ee=>Ee.filter(nt=>nt.toastId!==p.id)),setTimeout(()=>{k(p)},wC)},[p,k,R,Zn]);te.useEffect(()=>{if(p.promise&&Be==="loading"||p.duration===1/0||p.type==="loading")return;let Ee;return M||E||At?(()=>{if(Ko.current<Br.current){const _t=new Date().getTime()-Br.current;Ge.current=Ge.current-_t}Ko.current=new Date().getTime()})():(()=>{Ge.current!==1/0&&(Br.current=new Date().getTime(),Ee=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),An()},Ge.current))})(),()=>clearTimeout(Ee)},[M,E,p,Be,At,An]),te.useEffect(()=>{p.delete&&(An(),p.onDismiss==null||p.onDismiss.call(p,p))},[An,p.delete]);function kl(){var Ee;if(G!=null&&G.loading){var nt;return te.createElement("div",{className:kn(O==null?void 0:O.loader,p==null||(nt=p.classNames)==null?void 0:nt.loader,"sonner-loader"),"data-visible":Be==="loading"},G.loading)}return te.createElement(aC,{className:kn(O==null?void 0:O.loader,p==null||(Ee=p.classNames)==null?void 0:Ee.loader),visible:Be==="loading"})}const zl=p.icon||(G==null?void 0:G[Be])||tC(Be);var ol,_n;return te.createElement("li",{tabIndex:0,ref:We,className:kn(de,rt,O==null?void 0:O.toast,p==null||(l=p.classNames)==null?void 0:l.toast,O==null?void 0:O.default,O==null?void 0:O[Be],p==null||(o=p.classNames)==null?void 0:o[Be]),"data-sonner-toast":"","data-rich-colors":(ol=p.richColors)!=null?ol:q,"data-styled":!(p.jsx||p.unstyled||S),"data-mounted":K,"data-promise":!!p.promise,"data-swiped":we,"data-removed":W,"data-visible":Rn,"data-y-position":rl,"data-x-position":Mt,"data-index":C,"data-front":Kt,"data-swiping":ee,"data-dismissible":zt,"data-type":Be,"data-invert":lc,"data-swipe-out":ue,"data-swipe-direction":_,"data-expanded":!!(M||ce&&K),"data-testid":p.testId,style:{"--index":C,"--toasts-before":C,"--z-index":j.length-C,"--offset":`${W?Je:Zn.current}px`,"--initial-height":ce?"auto":`${kt}px`,...U,...p.style},onDragEnd:()=>{re(!1),F(null),ba.current=null},onPointerDown:Ee=>{Ee.button!==2&&(Hr||!zt||(it.current=new Date,$e(Zn.current),Ee.target.setPointerCapture(Ee.pointerId),Ee.target.tagName!=="BUTTON"&&(re(!0),ba.current={x:Ee.clientX,y:Ee.clientY})))},onPointerUp:()=>{var Ee,nt,bt;if(ue||!zt)return;ba.current=null;const _t=Number(((Ee=We.current)==null?void 0:Ee.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),xa=Number(((nt=We.current)==null?void 0:nt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),ot=new Date().getTime()-((bt=it.current)==null?void 0:bt.getTime()),Lt=ie==="x"?_t:xa,il=Math.abs(Lt)/ot;if(Math.abs(Lt)>=SC||il>.11){$e(Zn.current),p.onDismiss==null||p.onDismiss.call(p,p),X(ie==="x"?_t>0?"right":"left":xa>0?"down":"up"),An(),Te(!0);return}else{var Ut,Bt;(Ut=We.current)==null||Ut.style.setProperty("--swipe-amount-x","0px"),(Bt=We.current)==null||Bt.style.setProperty("--swipe-amount-y","0px")}Se(!1),re(!1),F(null)},onPointerMove:Ee=>{var nt,bt,_t;if(!ba.current||!zt||((nt=window.getSelection())==null?void 0:nt.toString().length)>0)return;const ot=Ee.clientY-ba.current.y,Lt=Ee.clientX-ba.current.x;var il;const Ut=(il=n.swipeDirections)!=null?il:EC(se);!ie&&(Math.abs(Lt)>1||Math.abs(ot)>1)&&F(Math.abs(Lt)>Math.abs(ot)?"x":"y");let Bt={x:0,y:0};const Ll=yn=>1/(1.5+Math.abs(yn)/20);if(ie==="y"){if(Ut.includes("top")||Ut.includes("bottom"))if(Ut.includes("top")&&ot<0||Ut.includes("bottom")&&ot>0)Bt.y=ot;else{const yn=ot*Ll(ot);Bt.y=Math.abs(yn)<Math.abs(ot)?yn:ot}}else if(ie==="x"&&(Ut.includes("left")||Ut.includes("right")))if(Ut.includes("left")&&Lt<0||Ut.includes("right")&&Lt>0)Bt.x=Lt;else{const yn=Lt*Ll(Lt);Bt.x=Math.abs(yn)<Math.abs(Lt)?yn:Lt}(Math.abs(Bt.x)>0||Math.abs(Bt.y)>0)&&Se(!0),(bt=We.current)==null||bt.style.setProperty("--swipe-amount-x",`${Bt.x}px`),(_t=We.current)==null||_t.style.setProperty("--swipe-amount-y",`${Bt.y}px`)}},Qo&&!p.jsx&&Be!=="loading"?te.createElement("button",{"aria-label":I,"data-disabled":Hr,"data-close-button":!0,onClick:Hr||!zt?()=>{}:()=>{An(),p.onDismiss==null||p.onDismiss.call(p,p)},className:kn(O==null?void 0:O.closeButton,p==null||(i=p.classNames)==null?void 0:i.closeButton)},(_n=G==null?void 0:G.close)!=null?_n:sC):null,(Be||p.icon||p.promise)&&p.icon!==null&&((G==null?void 0:G[Be])!==null||p.icon)?te.createElement("div",{"data-icon":"",className:kn(O==null?void 0:O.icon,p==null||(u=p.classNames)==null?void 0:u.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||kl():null,p.type!=="loading"?zl:null):null,te.createElement("div",{"data-content":"",className:kn(O==null?void 0:O.content,p==null||(d=p.classNames)==null?void 0:d.content)},te.createElement("div",{"data-title":"",className:kn(O==null?void 0:O.title,p==null||(f=p.classNames)==null?void 0:f.title)},p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title),p.description?te.createElement("div",{"data-description":"",className:kn(ve,Kn,O==null?void 0:O.description,p==null||(h=p.classNames)==null?void 0:h.description)},typeof p.description=="function"?p.description():p.description):null),te.isValidElement(p.cancel)?p.cancel:p.cancel&&us(p.cancel)?te.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||V,onClick:Ee=>{us(p.cancel)&&zt&&(p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,Ee),An())},className:kn(O==null?void 0:O.cancelButton,p==null||(v=p.classNames)==null?void 0:v.cancelButton)},p.cancel.label):null,te.isValidElement(p.action)?p.action:p.action&&us(p.action)?te.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||ne,onClick:Ee=>{us(p.action)&&(p.action.onClick==null||p.action.onClick.call(p.action,Ee),!Ee.defaultPrevented&&An())},className:kn(O==null?void 0:O.actionButton,p==null||(g=p.classNames)==null?void 0:g.actionButton)},p.action.label):null)};function sv(){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 CC(n,l){const o={};return[n,l].forEach((i,u)=>{const d=u===1,f=d?"--mobile-offset":"--offset",h=d?yC:vC;function v(g){["top","right","bottom","left"].forEach(x=>{o[`${f}-${x}`]=typeof g=="number"?`${g}px`:g})}typeof i=="number"||typeof i=="string"?v(i):typeof i=="object"?["top","right","bottom","left"].forEach(g=>{i[g]===void 0?o[`${f}-${g}`]=h:o[`${f}-${g}`]=typeof i[g]=="number"?`${i[g]}px`:i[g]}):v(h)}),o}const TC=te.forwardRef(function(l,o){const{id:i,invert:u,position:d="bottom-right",hotkey:f=["altKey","KeyT"],expand:h,closeButton:v,className:g,offset:x,mobileOffset:p,theme:S="light",richColors:E,duration:R,style:N,visibleToasts:T=gC,toastOptions:C,dir:j=sv(),gap:M=xC,icons:k,containerAriaLabel:q="Notifications"}=l,[$,U]=te.useState([]),V=te.useMemo(()=>i?$.filter(K=>K.toasterId===i):$.filter(K=>!K.toasterId),[$,i]),ne=te.useMemo(()=>Array.from(new Set([d].concat(V.filter(K=>K.position).map(K=>K.position)))),[V,d]),[de,ve]=te.useState([]),[oe,se]=te.useState(!1),[le,ce]=te.useState(!1),[O,G]=te.useState(S!=="system"?S:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),I=te.useRef(null),ie=f.join("+").replace(/Key/g,"").replace(/Digit/g,""),F=te.useRef(null),_=te.useRef(!1),X=te.useCallback(K=>{U(J=>{var W;return(W=J.find(ae=>ae.id===K.id))!=null&&W.delete||Qt.dismiss(K.id),J.filter(({id:ae})=>ae!==K.id)})},[]);return te.useEffect(()=>Qt.subscribe(K=>{if(K.dismiss){requestAnimationFrame(()=>{U(J=>J.map(W=>W.id===K.id?{...W,delete:!0}:W))});return}setTimeout(()=>{s0.flushSync(()=>{U(J=>{const W=J.findIndex(ae=>ae.id===K.id);return W!==-1?[...J.slice(0,W),{...J[W],...K},...J.slice(W+1)]:[K,...J]})})})}),[$]),te.useEffect(()=>{if(S!=="system"){G(S);return}if(S==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?G("dark"):G("light")),typeof window>"u")return;const K=window.matchMedia("(prefers-color-scheme: dark)");try{K.addEventListener("change",({matches:J})=>{G(J?"dark":"light")})}catch{K.addListener(({matches:W})=>{try{G(W?"dark":"light")}catch(ae){console.error(ae)}})}},[S]),te.useEffect(()=>{$.length<=1&&se(!1)},[$]),te.useEffect(()=>{const K=J=>{var W;if(f.every(re=>J[re]||J.code===re)){var ee;se(!0),(ee=I.current)==null||ee.focus()}J.code==="Escape"&&(document.activeElement===I.current||(W=I.current)!=null&&W.contains(document.activeElement))&&se(!1)};return document.addEventListener("keydown",K),()=>document.removeEventListener("keydown",K)},[f]),te.useEffect(()=>{if(I.current)return()=>{F.current&&(F.current.focus({preventScroll:!0}),F.current=null,_.current=!1)}},[I.current]),te.createElement("section",{ref:o,"aria-label":`${q} ${ie}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},ne.map((K,J)=>{var W;const[ae,ee]=K.split("-");return V.length?te.createElement("ol",{key:K,dir:j==="auto"?sv():j,tabIndex:-1,ref:I,className:g,"data-sonner-toaster":!0,"data-sonner-theme":O,"data-y-position":ae,"data-x-position":ee,style:{"--front-toast-height":`${((W=de[0])==null?void 0:W.height)||0}px`,"--width":`${bC}px`,"--gap":`${M}px`,...N,...CC(x,p)},onBlur:re=>{_.current&&!re.currentTarget.contains(re.relatedTarget)&&(_.current=!1,F.current&&(F.current.focus({preventScroll:!0}),F.current=null))},onFocus:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||_.current||(_.current=!0,F.current=re.relatedTarget)},onMouseEnter:()=>se(!0),onMouseMove:()=>se(!0),onMouseLeave:()=>{le||se(!1)},onDragEnd:()=>se(!1),onPointerDown:re=>{re.target instanceof HTMLElement&&re.target.dataset.dismissible==="false"||ce(!0)},onPointerUp:()=>ce(!1)},V.filter(re=>!re.position&&J===0||re.position===K).map((re,ue)=>{var Te,we;return te.createElement(NC,{key:re.id,icons:k,index:ue,toast:re,defaultRichColors:E,duration:(Te=C==null?void 0:C.duration)!=null?Te:R,className:C==null?void 0:C.className,descriptionClassName:C==null?void 0:C.descriptionClassName,invert:u,visibleToasts:T,closeButton:(we=C==null?void 0:C.closeButton)!=null?we:v,interacting:le,position:K,style:C==null?void 0:C.style,unstyled:C==null?void 0:C.unstyled,classNames:C==null?void 0:C.classNames,cancelButtonStyle:C==null?void 0:C.cancelButtonStyle,actionButtonStyle:C==null?void 0:C.actionButtonStyle,closeButtonAriaLabel:C==null?void 0:C.closeButtonAriaLabel,removeToast:X,toasts:V.filter(Se=>Se.position==re.position),heights:de.filter(Se=>Se.position==re.position),setHeights:ve,expandByDefault:h,gap:M,expanded:oe,swipeDirections:l.swipeDirections})})):null}))});function cv(n,l){if(typeof n=="function")return n(l);n!=null&&(n.current=l)}function mf(...n){return l=>{let o=!1;const i=n.map(u=>{const d=cv(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():cv(n[u],null)}}}}function Fe(...n){return y.useCallback(mf(...n),n)}var RC=Symbol.for("react.lazy"),As=nf[" use ".trim().toString()];function AC(n){return typeof n=="object"&&n!==null&&"then"in n}function U0(n){return n!=null&&typeof n=="object"&&"$$typeof"in n&&n.$$typeof===RC&&"_payload"in n&&AC(n._payload)}function _C(n){const l=OC(n),o=y.forwardRef((i,u)=>{let{children:d,...f}=i;U0(d)&&typeof As=="function"&&(d=As(d._payload));const h=y.Children.toArray(d),v=h.find(DC);if(v){const g=v.props.children,x=h.map(p=>p===v?y.Children.count(g)>1?y.Children.only(null):y.isValidElement(g)?g.props.children:null:p);return m.jsx(l,{...f,ref:u,children:y.isValidElement(g)?y.cloneElement(g,void 0,x):null})}return m.jsx(l,{...f,ref:u,children:d})});return o.displayName=`${n}.Slot`,o}var jC=_C("Slot");function OC(n){const l=y.forwardRef((o,i)=>{let{children:u,...d}=o;if(U0(u)&&typeof As=="function"&&(u=As(u._payload)),y.isValidElement(u)){const f=zC(u),h=kC(d,u.props);return u.type!==y.Fragment&&(h.ref=i?mf(i,f):f),y.cloneElement(u,h)}return y.Children.count(u)>1?y.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var MC=Symbol("radix.slottable");function DC(n){return y.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===MC}function kC(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 v=d(...h);return u(...h),v}:u&&(o[i]=u):i==="style"?o[i]={...u,...d}:i==="className"&&(o[i]=[u,d].filter(Boolean).join(" "))}return{...n,...o}}function zC(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 hf=z0("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-[16px] text-sm font-semibold transition-all duration-200 ease-out hover:-translate-y-px focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/70 focus-visible:ring-offset-2 active:translate-y-0 active:scale-[0.985] disabled:pointer-events-none disabled:translate-y-0 disabled:scale-100 disabled:opacity-50 disabled:shadow-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"border border-primary/15 bg-primary text-primary-foreground shadow-[0_14px_34px_-20px_hsl(var(--primary)/0.9)] hover:bg-primary/90 hover:shadow-[0_18px_42px_-22px_hsl(var(--primary)/0.95)]",destructive:"border border-destructive/15 bg-destructive text-destructive-foreground shadow-[0_14px_34px_-20px_hsl(var(--destructive)/0.8)] hover:bg-destructive/90",outline:"border border-input/80 bg-background/72 shadow-sm backdrop-blur hover:border-primary/35 hover:bg-accent/70 hover:text-accent-foreground",secondary:"border border-transparent bg-secondary/88 text-secondary-foreground shadow-sm hover:bg-secondary",ghost:"hover:bg-accent/72 hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-[14px] px-3",lg:"h-11 rounded-[18px] px-8",icon:"h-10 w-10 rounded-[16px]"}},defaultVariants:{variant:"default",size:"default"}}),Gn=y.forwardRef(({className:n,variant:l,size:o,asChild:i=!1,...u},d)=>{const f=i?jC:"button";return m.jsx(f,{className:ge(hf({variant:l,size:o,className:n})),ref:d,...u})});Gn.displayName="Button";const zn=y.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:ge("rounded-[18px] border bg-card text-card-foreground shadow-sm",n),...l}));zn.displayName="Card";const Ln=y.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:ge("flex flex-col space-y-1.5 p-6",n),...l}));Ln.displayName="CardHeader";const Un=y.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:ge("text-2xl font-semibold leading-none tracking-tight",n),...l}));Un.displayName="CardTitle";const Bn=y.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:ge("text-sm text-muted-foreground",n),...l}));Bn.displayName="CardDescription";const Hn=y.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:ge("p-6 pt-0",n),...l}));Hn.displayName="CardContent";const LC=y.forwardRef(({className:n,...l},o)=>m.jsx("div",{ref:o,className:ge("flex items-center p-6 pt-0",n),...l}));LC.displayName="CardFooter";function Me(n,l,{checkForDefaultPrevented:o=!0}={}){return function(u){if(n==null||n(u),o===!1||!u.defaultPrevented)return l==null?void 0:l(u)}}function UC(n,l){const o=y.createContext(l),i=d=>{const{children:f,...h}=d,v=y.useMemo(()=>h,Object.values(h));return m.jsx(o.Provider,{value:v,children:f})};i.displayName=n+"Provider";function u(d){const f=y.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 el(n,l=[]){let o=[];function i(d,f){const h=y.createContext(f),v=o.length;o=[...o,f];const g=p=>{var C;const{scope:S,children:E,...R}=p,N=((C=S==null?void 0:S[n])==null?void 0:C[v])||h,T=y.useMemo(()=>R,Object.values(R));return m.jsx(N.Provider,{value:T,children:E})};g.displayName=d+"Provider";function x(p,S){var N;const E=((N=S==null?void 0:S[n])==null?void 0:N[v])||h,R=y.useContext(E);if(R)return R;if(f!==void 0)return f;throw new Error(`\`${p}\` must be used within \`${d}\``)}return[g,x]}const u=()=>{const d=o.map(f=>y.createContext(f));return function(h){const v=(h==null?void 0:h[n])||d;return y.useMemo(()=>({[`__scope${n}`]:{...h,[n]:v}}),[h,v])}};return u.scopeName=n,[i,BC(u,...l)]}function BC(...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:v,scopeName:g})=>{const p=v(d)[`__scope${g}`];return{...h,...p}},{});return y.useMemo(()=>({[`__scope${l.scopeName}`]:f}),[f])}};return o.scopeName=l.scopeName,o}var Ot=globalThis!=null&&globalThis.document?y.useLayoutEffect:()=>{},HC=nf[" useId ".trim().toString()]||(()=>{}),VC=0;function Za(n){const[l,o]=y.useState(HC());return Ot(()=>{o(i=>i??String(VC++))},[n]),l?`radix-${l}`:""}var qC=nf[" useInsertionEffect ".trim().toString()]||Ot;function _r({prop:n,defaultProp:l,onChange:o=()=>{},caller:i}){const[u,d,f]=YC({defaultProp:l,onChange:o}),h=n!==void 0,v=h?n:u;{const x=y.useRef(n!==void 0);y.useEffect(()=>{const p=x.current;p!==h&&console.warn(`${i} is changing from ${p?"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 g=y.useCallback(x=>{var p;if(h){const S=$C(x)?x(n):x;S!==n&&((p=f.current)==null||p.call(f,S))}else d(x)},[h,n,d,f]);return[v,g]}function YC({defaultProp:n,onChange:l}){const[o,i]=y.useState(n),u=y.useRef(o),d=y.useRef(l);return qC(()=>{d.current=l},[l]),y.useEffect(()=>{var f;u.current!==o&&((f=d.current)==null||f.call(d,o),u.current=o)},[o,u]),[o,i,d]}function $C(n){return typeof n=="function"}function Ho(n){const l=GC(n),o=y.forwardRef((i,u)=>{const{children:d,...f}=i,h=y.Children.toArray(d),v=h.find(QC);if(v){const g=v.props.children,x=h.map(p=>p===v?y.Children.count(g)>1?y.Children.only(null):y.isValidElement(g)?g.props.children:null:p);return m.jsx(l,{...f,ref:u,children:y.isValidElement(g)?y.cloneElement(g,void 0,x):null})}return m.jsx(l,{...f,ref:u,children:d})});return o.displayName=`${n}.Slot`,o}function GC(n){const l=y.forwardRef((o,i)=>{const{children:u,...d}=o;if(y.isValidElement(u)){const f=ZC(u),h=KC(d,u.props);return u.type!==y.Fragment&&(h.ref=i?mf(i,f):f),y.cloneElement(u,h)}return y.Children.count(u)>1?y.Children.only(null):null});return l.displayName=`${n}.SlotClone`,l}var B0=Symbol("radix.slottable");function XC(n){const l=({children:o})=>m.jsx(m.Fragment,{children:o});return l.displayName=`${n}.Slottable`,l.__radixId=B0,l}function QC(n){return y.isValidElement(n)&&typeof n.type=="function"&&"__radixId"in n.type&&n.type.__radixId===B0}function KC(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 v=d(...h);return u(...h),v}:u&&(o[i]=u):i==="style"?o[i]={...u,...d}:i==="className"&&(o[i]=[u,d].filter(Boolean).join(" "))}return{...n,...o}}function ZC(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 PC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ue=PC.reduce((n,l)=>{const o=Ho(`Primitive.${l}`),i=y.forwardRef((u,d)=>{const{asChild:f,...h}=u,v=f?o:l;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(v,{...h,ref:d})});return i.displayName=`Primitive.${l}`,{...n,[l]:i}},{});function IC(n,l){n&&$o.flushSync(()=>n.dispatchEvent(l))}function Ia(n){const l=y.useRef(n);return y.useEffect(()=>{l.current=n}),y.useMemo(()=>(...o)=>{var i;return(i=l.current)==null?void 0:i.call(l,...o)},[])}function FC(n,l=globalThis==null?void 0:globalThis.document){const o=Ia(n);y.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 JC="DismissableLayer",Yd="dismissableLayer.update",WC="dismissableLayer.pointerDownOutside",eT="dismissableLayer.focusOutside",uv,H0=y.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),pf=y.forwardRef((n,l)=>{const{disableOutsidePointerEvents:o=!1,onEscapeKeyDown:i,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,...v}=n,g=y.useContext(H0),[x,p]=y.useState(null),S=(x==null?void 0:x.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,E]=y.useState({}),R=Fe(l,U=>p(U)),N=Array.from(g.layers),[T]=[...g.layersWithOutsidePointerEventsDisabled].slice(-1),C=N.indexOf(T),j=x?N.indexOf(x):-1,M=g.layersWithOutsidePointerEventsDisabled.size>0,k=j>=C,q=aT(U=>{const V=U.target,ne=[...g.branches].some(de=>de.contains(V));!k||ne||(u==null||u(U),f==null||f(U),U.defaultPrevented||h==null||h())},S),$=lT(U=>{const V=U.target;[...g.branches].some(de=>de.contains(V))||(d==null||d(U),f==null||f(U),U.defaultPrevented||h==null||h())},S);return FC(U=>{j===g.layers.size-1&&(i==null||i(U),!U.defaultPrevented&&h&&(U.preventDefault(),h()))},S),y.useEffect(()=>{if(x)return o&&(g.layersWithOutsidePointerEventsDisabled.size===0&&(uv=S.body.style.pointerEvents,S.body.style.pointerEvents="none"),g.layersWithOutsidePointerEventsDisabled.add(x)),g.layers.add(x),dv(),()=>{o&&g.layersWithOutsidePointerEventsDisabled.size===1&&(S.body.style.pointerEvents=uv)}},[x,S,o,g]),y.useEffect(()=>()=>{x&&(g.layers.delete(x),g.layersWithOutsidePointerEventsDisabled.delete(x),dv())},[x,g]),y.useEffect(()=>{const U=()=>E({});return document.addEventListener(Yd,U),()=>document.removeEventListener(Yd,U)},[]),m.jsx(Ue.div,{...v,ref:R,style:{pointerEvents:M?k?"auto":"none":void 0,...n.style},onFocusCapture:Me(n.onFocusCapture,$.onFocusCapture),onBlurCapture:Me(n.onBlurCapture,$.onBlurCapture),onPointerDownCapture:Me(n.onPointerDownCapture,q.onPointerDownCapture)})});pf.displayName=JC;var tT="DismissableLayerBranch",nT=y.forwardRef((n,l)=>{const o=y.useContext(H0),i=y.useRef(null),u=Fe(l,i);return y.useEffect(()=>{const d=i.current;if(d)return o.branches.add(d),()=>{o.branches.delete(d)}},[o.branches]),m.jsx(Ue.div,{...n,ref:u})});nT.displayName=tT;function aT(n,l=globalThis==null?void 0:globalThis.document){const o=Ia(n),i=y.useRef(!1),u=y.useRef(()=>{});return y.useEffect(()=>{const d=h=>{if(h.target&&!i.current){let v=function(){V0(WC,o,g,{discrete:!0})};const g={originalEvent:h};h.pointerType==="touch"?(l.removeEventListener("click",u.current),u.current=v,l.addEventListener("click",u.current,{once:!0})):v()}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 lT(n,l=globalThis==null?void 0:globalThis.document){const o=Ia(n),i=y.useRef(!1);return y.useEffect(()=>{const u=d=>{d.target&&!i.current&&V0(eT,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 dv(){const n=new CustomEvent(Yd);document.dispatchEvent(n)}function V0(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?IC(u,d):u.dispatchEvent(d)}var Td="focusScope.autoFocusOnMount",Rd="focusScope.autoFocusOnUnmount",fv={bubbles:!1,cancelable:!0},rT="FocusScope",gf=y.forwardRef((n,l)=>{const{loop:o=!1,trapped:i=!1,onMountAutoFocus:u,onUnmountAutoFocus:d,...f}=n,[h,v]=y.useState(null),g=Ia(u),x=Ia(d),p=y.useRef(null),S=Fe(l,N=>v(N)),E=y.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;y.useEffect(()=>{if(i){let N=function(M){if(E.paused||!h)return;const k=M.target;h.contains(k)?p.current=k:Ka(p.current,{select:!0})},T=function(M){if(E.paused||!h)return;const k=M.relatedTarget;k!==null&&(h.contains(k)||Ka(p.current,{select:!0}))},C=function(M){if(document.activeElement===document.body)for(const q of M)q.removedNodes.length>0&&Ka(h)};document.addEventListener("focusin",N),document.addEventListener("focusout",T);const j=new MutationObserver(C);return h&&j.observe(h,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",N),document.removeEventListener("focusout",T),j.disconnect()}}},[i,h,E.paused]),y.useEffect(()=>{if(h){hv.add(E);const N=document.activeElement;if(!h.contains(N)){const C=new CustomEvent(Td,fv);h.addEventListener(Td,g),h.dispatchEvent(C),C.defaultPrevented||(oT(dT(q0(h)),{select:!0}),document.activeElement===N&&Ka(h))}return()=>{h.removeEventListener(Td,g),setTimeout(()=>{const C=new CustomEvent(Rd,fv);h.addEventListener(Rd,x),h.dispatchEvent(C),C.defaultPrevented||Ka(N??document.body,{select:!0}),h.removeEventListener(Rd,x),hv.remove(E)},0)}}},[h,g,x,E]);const R=y.useCallback(N=>{if(!o&&!i||E.paused)return;const T=N.key==="Tab"&&!N.altKey&&!N.ctrlKey&&!N.metaKey,C=document.activeElement;if(T&&C){const j=N.currentTarget,[M,k]=iT(j);M&&k?!N.shiftKey&&C===k?(N.preventDefault(),o&&Ka(M,{select:!0})):N.shiftKey&&C===M&&(N.preventDefault(),o&&Ka(k,{select:!0})):C===j&&N.preventDefault()}},[o,i,E.paused]);return m.jsx(Ue.div,{tabIndex:-1,...f,ref:S,onKeyDown:R})});gf.displayName=rT;function oT(n,{select:l=!1}={}){const o=document.activeElement;for(const i of n)if(Ka(i,{select:l}),document.activeElement!==o)return}function iT(n){const l=q0(n),o=mv(l,n),i=mv(l.reverse(),n);return[o,i]}function q0(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 mv(n,l){for(const o of n)if(!sT(o,{upTo:l}))return o}function sT(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 cT(n){return n instanceof HTMLInputElement&&"select"in n}function Ka(n,{select:l=!1}={}){if(n&&n.focus){const o=document.activeElement;n.focus({preventScroll:!0}),n!==o&&cT(n)&&l&&n.select()}}var hv=uT();function uT(){let n=[];return{add(l){const o=n[0];l!==o&&(o==null||o.pause()),n=pv(n,l),n.unshift(l)},remove(l){var o;n=pv(n,l),(o=n[0])==null||o.resume()}}}function pv(n,l){const o=[...n],i=o.indexOf(l);return i!==-1&&o.splice(i,1),o}function dT(n){return n.filter(l=>l.tagName!=="A")}var fT="Portal",vf=y.forwardRef((n,l)=>{var h;const{container:o,...i}=n,[u,d]=y.useState(!1);Ot(()=>d(!0),[]);const f=o||u&&((h=globalThis==null?void 0:globalThis.document)==null?void 0:h.body);return f?s0.createPortal(m.jsx(Ue.div,{...i,ref:l}),f):null});vf.displayName=fT;function mT(n,l){return y.useReducer((o,i)=>l[o][i]??o,n)}var kr=n=>{const{present:l,children:o}=n,i=hT(l),u=typeof o=="function"?o({present:i.isPresent}):y.Children.only(o),d=Fe(i.ref,pT(u));return typeof o=="function"||i.isPresent?y.cloneElement(u,{ref:d}):null};kr.displayName="Presence";function hT(n){const[l,o]=y.useState(),i=y.useRef(null),u=y.useRef(n),d=y.useRef("none"),f=n?"mounted":"unmounted",[h,v]=mT(f,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return y.useEffect(()=>{const g=ds(i.current);d.current=h==="mounted"?g:"none"},[h]),Ot(()=>{const g=i.current,x=u.current;if(x!==n){const S=d.current,E=ds(g);n?v("MOUNT"):E==="none"||(g==null?void 0:g.display)==="none"?v("UNMOUNT"):v(x&&S!==E?"ANIMATION_OUT":"UNMOUNT"),u.current=n}},[n,v]),Ot(()=>{if(l){let g;const x=l.ownerDocument.defaultView??window,p=E=>{const N=ds(i.current).includes(CSS.escape(E.animationName));if(E.target===l&&N&&(v("ANIMATION_END"),!u.current)){const T=l.style.animationFillMode;l.style.animationFillMode="forwards",g=x.setTimeout(()=>{l.style.animationFillMode==="forwards"&&(l.style.animationFillMode=T)})}},S=E=>{E.target===l&&(d.current=ds(i.current))};return l.addEventListener("animationstart",S),l.addEventListener("animationcancel",p),l.addEventListener("animationend",p),()=>{x.clearTimeout(g),l.removeEventListener("animationstart",S),l.removeEventListener("animationcancel",p),l.removeEventListener("animationend",p)}}else v("ANIMATION_END")},[l,v]),{isPresent:["mounted","unmountSuspended"].includes(h),ref:y.useCallback(g=>{i.current=g?getComputedStyle(g):null,o(g)},[])}}function ds(n){return(n==null?void 0:n.animationName)||"none"}function pT(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 Ad=0;function Y0(){y.useEffect(()=>{const n=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",n[0]??gv()),document.body.insertAdjacentElement("beforeend",n[1]??gv()),Ad++,()=>{Ad===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(l=>l.remove()),Ad--}},[])}function gv(){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 Vn=function(){return Vn=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},Vn.apply(this,arguments)};function $0(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 gT(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 xs="right-scroll-bar-position",Ss="width-before-scroll-bar",vT="with-scroll-bars-hidden",yT="--removed-body-scroll-bar-size";function _d(n,l){return typeof n=="function"?n(l):n&&(n.current=l),n}function bT(n,l){var o=y.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 xT=typeof window<"u"?y.useLayoutEffect:y.useEffect,vv=new WeakMap;function ST(n,l){var o=bT(null,function(i){return n.forEach(function(u){return _d(u,i)})});return xT(function(){var i=vv.get(o);if(i){var u=new Set(i),d=new Set(n),f=o.current;u.forEach(function(h){d.has(h)||_d(h,null)}),d.forEach(function(h){u.has(h)||_d(h,f)})}vv.set(o,n)},[n]),o}function wT(n){return n}function ET(n,l){l===void 0&&(l=wT);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 v=function(){var x=f;f=[],x.forEach(d)},g=function(){return Promise.resolve().then(v)};g(),o={push:function(x){f.push(x),g()},filter:function(x){return f=f.filter(x),o}}}};return u}function NT(n){n===void 0&&(n={});var l=ET(null);return l.options=Vn({async:!0,ssr:!1},n),l}var G0=function(n){var l=n.sideCar,o=$0(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 y.createElement(i,Vn({},o))};G0.isSideCarExport=!0;function CT(n,l){return n.useMedium(l),G0}var X0=NT(),jd=function(){},Qs=y.forwardRef(function(n,l){var o=y.useRef(null),i=y.useState({onScrollCapture:jd,onWheelCapture:jd,onTouchMoveCapture:jd}),u=i[0],d=i[1],f=n.forwardProps,h=n.children,v=n.className,g=n.removeScrollBar,x=n.enabled,p=n.shards,S=n.sideCar,E=n.noRelative,R=n.noIsolation,N=n.inert,T=n.allowPinchZoom,C=n.as,j=C===void 0?"div":C,M=n.gapMode,k=$0(n,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),q=S,$=ST([o,l]),U=Vn(Vn({},k),u);return y.createElement(y.Fragment,null,x&&y.createElement(q,{sideCar:X0,removeScrollBar:g,shards:p,noRelative:E,noIsolation:R,inert:N,setCallbacks:d,allowPinchZoom:!!T,lockRef:o,gapMode:M}),f?y.cloneElement(y.Children.only(h),Vn(Vn({},U),{ref:$})):y.createElement(j,Vn({},U,{className:v,ref:$}),h))});Qs.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qs.classNames={fullWidth:Ss,zeroRight:xs};var TT=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function RT(){if(!document)return null;var n=document.createElement("style");n.type="text/css";var l=TT();return l&&n.setAttribute("nonce",l),n}function AT(n,l){n.styleSheet?n.styleSheet.cssText=l:n.appendChild(document.createTextNode(l))}function _T(n){var l=document.head||document.getElementsByTagName("head")[0];l.appendChild(n)}var jT=function(){var n=0,l=null;return{add:function(o){n==0&&(l=RT())&&(AT(l,o),_T(l)),n++},remove:function(){n--,!n&&l&&(l.parentNode&&l.parentNode.removeChild(l),l=null)}}},OT=function(){var n=jT();return function(l,o){y.useEffect(function(){return n.add(l),function(){n.remove()}},[l&&o])}},Q0=function(){var n=OT(),l=function(o){var i=o.styles,u=o.dynamic;return n(i,u),null};return l},MT={left:0,top:0,right:0,gap:0},Od=function(n){return parseInt(n||"",10)||0},DT=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[Od(o),Od(i),Od(u)]},kT=function(n){if(n===void 0&&(n="margin"),typeof window>"u")return MT;var l=DT(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])}},zT=Q0(),Tr="data-scroll-locked",LT=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(vT,` {
|
|
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(xs,` {
|
|
270
|
+
right: `).concat(h,"px ").concat(i,`;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.`).concat(Ss,` {
|
|
274
|
+
margin-right: `).concat(h,"px ").concat(i,`;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.`).concat(xs," .").concat(xs,` {
|
|
278
|
+
right: 0 `).concat(i,`;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.`).concat(Ss," .").concat(Ss,` {
|
|
282
|
+
margin-right: 0 `).concat(i,`;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
body[`).concat(Tr,`] {
|
|
286
|
+
`).concat(yT,": ").concat(h,`px;
|
|
287
|
+
}
|
|
288
|
+
`)},yv=function(){var n=parseInt(document.body.getAttribute(Tr)||"0",10);return isFinite(n)?n:0},UT=function(){y.useEffect(function(){return document.body.setAttribute(Tr,(yv()+1).toString()),function(){var n=yv()-1;n<=0?document.body.removeAttribute(Tr):document.body.setAttribute(Tr,n.toString())}},[])},BT=function(n){var l=n.noRelative,o=n.noImportant,i=n.gapMode,u=i===void 0?"margin":i;UT();var d=y.useMemo(function(){return kT(u)},[u]);return y.createElement(zT,{styles:LT(d,!l,u,o?"":"!important")})},$d=!1;if(typeof window<"u")try{var fs=Object.defineProperty({},"passive",{get:function(){return $d=!0,!0}});window.addEventListener("test",fs,fs),window.removeEventListener("test",fs,fs)}catch{$d=!1}var Sr=$d?{passive:!1}:!1,HT=function(n){return n.tagName==="TEXTAREA"},K0=function(n,l){if(!(n instanceof Element))return!1;var o=window.getComputedStyle(n);return o[l]!=="hidden"&&!(o.overflowY===o.overflowX&&!HT(n)&&o[l]==="visible")},VT=function(n){return K0(n,"overflowY")},qT=function(n){return K0(n,"overflowX")},bv=function(n,l){var o=l.ownerDocument,i=l;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var u=Z0(n,i);if(u){var d=P0(n,i),f=d[1],h=d[2];if(f>h)return!0}i=i.parentNode}while(i&&i!==o.body);return!1},YT=function(n){var l=n.scrollTop,o=n.scrollHeight,i=n.clientHeight;return[l,o,i]},$T=function(n){var l=n.scrollLeft,o=n.scrollWidth,i=n.clientWidth;return[l,o,i]},Z0=function(n,l){return n==="v"?VT(l):qT(l)},P0=function(n,l){return n==="v"?YT(l):$T(l)},GT=function(n,l){return n==="h"&&l==="rtl"?-1:1},XT=function(n,l,o,i,u){var d=GT(n,window.getComputedStyle(l).direction),f=d*i,h=o.target,v=l.contains(h),g=!1,x=f>0,p=0,S=0;do{if(!h)break;var E=P0(n,h),R=E[0],N=E[1],T=E[2],C=N-T-d*R;(R||C)&&Z0(n,h)&&(p+=C,S+=R);var j=h.parentNode;h=j&&j.nodeType===Node.DOCUMENT_FRAGMENT_NODE?j.host:j}while(!v&&h!==document.body||v&&(l.contains(h)||l===h));return(x&&Math.abs(p)<1||!x&&Math.abs(S)<1)&&(g=!0),g},ms=function(n){return"changedTouches"in n?[n.changedTouches[0].clientX,n.changedTouches[0].clientY]:[0,0]},xv=function(n){return[n.deltaX,n.deltaY]},Sv=function(n){return n&&"current"in n?n.current:n},QT=function(n,l){return n[0]===l[0]&&n[1]===l[1]},KT=function(n){return`
|
|
289
|
+
.block-interactivity-`.concat(n,` {pointer-events: none;}
|
|
290
|
+
.allow-interactivity-`).concat(n,` {pointer-events: all;}
|
|
291
|
+
`)},ZT=0,wr=[];function PT(n){var l=y.useRef([]),o=y.useRef([0,0]),i=y.useRef(),u=y.useState(ZT++)[0],d=y.useState(Q0)[0],f=y.useRef(n);y.useEffect(function(){f.current=n},[n]),y.useEffect(function(){if(n.inert){document.body.classList.add("block-interactivity-".concat(u));var N=gT([n.lockRef.current],(n.shards||[]).map(Sv),!0).filter(Boolean);return N.forEach(function(T){return T.classList.add("allow-interactivity-".concat(u))}),function(){document.body.classList.remove("block-interactivity-".concat(u)),N.forEach(function(T){return T.classList.remove("allow-interactivity-".concat(u))})}}},[n.inert,n.lockRef.current,n.shards]);var h=y.useCallback(function(N,T){if("touches"in N&&N.touches.length===2||N.type==="wheel"&&N.ctrlKey)return!f.current.allowPinchZoom;var C=ms(N),j=o.current,M="deltaX"in N?N.deltaX:j[0]-C[0],k="deltaY"in N?N.deltaY:j[1]-C[1],q,$=N.target,U=Math.abs(M)>Math.abs(k)?"h":"v";if("touches"in N&&U==="h"&&$.type==="range")return!1;var V=window.getSelection(),ne=V&&V.anchorNode,de=ne?ne===$||ne.contains($):!1;if(de)return!1;var ve=bv(U,$);if(!ve)return!0;if(ve?q=U:(q=U==="v"?"h":"v",ve=bv(U,$)),!ve)return!1;if(!i.current&&"changedTouches"in N&&(M||k)&&(i.current=q),!q)return!0;var oe=i.current||q;return XT(oe,T,N,oe==="h"?M:k)},[]),v=y.useCallback(function(N){var T=N;if(!(!wr.length||wr[wr.length-1]!==d)){var C="deltaY"in T?xv(T):ms(T),j=l.current.filter(function(q){return q.name===T.type&&(q.target===T.target||T.target===q.shadowParent)&&QT(q.delta,C)})[0];if(j&&j.should){T.cancelable&&T.preventDefault();return}if(!j){var M=(f.current.shards||[]).map(Sv).filter(Boolean).filter(function(q){return q.contains(T.target)}),k=M.length>0?h(T,M[0]):!f.current.noIsolation;k&&T.cancelable&&T.preventDefault()}}},[]),g=y.useCallback(function(N,T,C,j){var M={name:N,delta:T,target:C,should:j,shadowParent:IT(C)};l.current.push(M),setTimeout(function(){l.current=l.current.filter(function(k){return k!==M})},1)},[]),x=y.useCallback(function(N){o.current=ms(N),i.current=void 0},[]),p=y.useCallback(function(N){g(N.type,xv(N),N.target,h(N,n.lockRef.current))},[]),S=y.useCallback(function(N){g(N.type,ms(N),N.target,h(N,n.lockRef.current))},[]);y.useEffect(function(){return wr.push(d),n.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:S}),document.addEventListener("wheel",v,Sr),document.addEventListener("touchmove",v,Sr),document.addEventListener("touchstart",x,Sr),function(){wr=wr.filter(function(N){return N!==d}),document.removeEventListener("wheel",v,Sr),document.removeEventListener("touchmove",v,Sr),document.removeEventListener("touchstart",x,Sr)}},[]);var E=n.removeScrollBar,R=n.inert;return y.createElement(y.Fragment,null,R?y.createElement(d,{styles:KT(u)}):null,E?y.createElement(BT,{noRelative:n.noRelative,gapMode:n.gapMode}):null)}function IT(n){for(var l=null;n!==null;)n instanceof ShadowRoot&&(l=n.host,n=n.host),n=n.parentNode;return l}const FT=CT(X0,PT);var yf=y.forwardRef(function(n,l){return y.createElement(Qs,Vn({},n,{ref:l,sideCar:FT}))});yf.classNames=Qs.classNames;var JT=function(n){if(typeof document>"u")return null;var l=Array.isArray(n)?n[0]:n;return l.ownerDocument.body},Er=new WeakMap,hs=new WeakMap,ps={},Md=0,I0=function(n){return n&&(n.host||I0(n.parentNode))},WT=function(n,l){return l.map(function(o){if(n.contains(o))return o;var i=I0(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})},e5=function(n,l,o,i){var u=WT(l,Array.isArray(n)?n:[n]);ps[o]||(ps[o]=new WeakMap);var d=ps[o],f=[],h=new Set,v=new Set(u),g=function(p){!p||h.has(p)||(h.add(p),g(p.parentNode))};u.forEach(g);var x=function(p){!p||v.has(p)||Array.prototype.forEach.call(p.children,function(S){if(h.has(S))x(S);else try{var E=S.getAttribute(i),R=E!==null&&E!=="false",N=(Er.get(S)||0)+1,T=(d.get(S)||0)+1;Er.set(S,N),d.set(S,T),f.push(S),N===1&&R&&hs.set(S,!0),T===1&&S.setAttribute(o,"true"),R||S.setAttribute(i,"true")}catch(C){console.error("aria-hidden: cannot operate on ",S,C)}})};return x(l),h.clear(),Md++,function(){f.forEach(function(p){var S=Er.get(p)-1,E=d.get(p)-1;Er.set(p,S),d.set(p,E),S||(hs.has(p)||p.removeAttribute(i),hs.delete(p)),E||p.removeAttribute(o)}),Md--,Md||(Er=new WeakMap,Er=new WeakMap,hs=new WeakMap,ps={})}},F0=function(n,l,o){o===void 0&&(o="data-aria-hidden");var i=Array.from(Array.isArray(n)?n:[n]),u=JT(n);return u?(i.push.apply(i,Array.from(u.querySelectorAll("[aria-live], script"))),e5(i,u,o,"aria-hidden")):function(){return null}},Ks="Dialog",[J0,W0]=el(Ks),[t5,Tn]=J0(Ks),ey=n=>{const{__scopeDialog:l,children:o,open:i,defaultOpen:u,onOpenChange:d,modal:f=!0}=n,h=y.useRef(null),v=y.useRef(null),[g,x]=_r({prop:i,defaultProp:u??!1,onChange:d,caller:Ks});return m.jsx(t5,{scope:l,triggerRef:h,contentRef:v,contentId:Za(),titleId:Za(),descriptionId:Za(),open:g,onOpenChange:x,onOpenToggle:y.useCallback(()=>x(p=>!p),[x]),modal:f,children:o})};ey.displayName=Ks;var ty="DialogTrigger",ny=y.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=Tn(ty,o),d=Fe(l,u.triggerRef);return m.jsx(Ue.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":Sf(u.open),...i,ref:d,onClick:Me(n.onClick,u.onOpenToggle)})});ny.displayName=ty;var bf="DialogPortal",[n5,ay]=J0(bf,{forceMount:void 0}),ly=n=>{const{__scopeDialog:l,forceMount:o,children:i,container:u}=n,d=Tn(bf,l);return m.jsx(n5,{scope:l,forceMount:o,children:y.Children.map(i,f=>m.jsx(kr,{present:o||d.open,children:m.jsx(vf,{asChild:!0,container:u,children:f})}))})};ly.displayName=bf;var _s="DialogOverlay",ry=y.forwardRef((n,l)=>{const o=ay(_s,n.__scopeDialog),{forceMount:i=o.forceMount,...u}=n,d=Tn(_s,n.__scopeDialog);return d.modal?m.jsx(kr,{present:i||d.open,children:m.jsx(l5,{...u,ref:l})}):null});ry.displayName=_s;var a5=Ho("DialogOverlay.RemoveScroll"),l5=y.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=Tn(_s,o);return m.jsx(yf,{as:a5,allowPinchZoom:!0,shards:[u.contentRef],children:m.jsx(Ue.div,{"data-state":Sf(u.open),...i,ref:l,style:{pointerEvents:"auto",...i.style}})})}),_l="DialogContent",oy=y.forwardRef((n,l)=>{const o=ay(_l,n.__scopeDialog),{forceMount:i=o.forceMount,...u}=n,d=Tn(_l,n.__scopeDialog);return m.jsx(kr,{present:i||d.open,children:d.modal?m.jsx(r5,{...u,ref:l}):m.jsx(o5,{...u,ref:l})})});oy.displayName=_l;var r5=y.forwardRef((n,l)=>{const o=Tn(_l,n.__scopeDialog),i=y.useRef(null),u=Fe(l,o.contentRef,i);return y.useEffect(()=>{const d=i.current;if(d)return F0(d)},[]),m.jsx(iy,{...n,ref:u,trapFocus:o.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Me(n.onCloseAutoFocus,d=>{var f;d.preventDefault(),(f=o.triggerRef.current)==null||f.focus()}),onPointerDownOutside:Me(n.onPointerDownOutside,d=>{const f=d.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0;(f.button===2||h)&&d.preventDefault()}),onFocusOutside:Me(n.onFocusOutside,d=>d.preventDefault())})}),o5=y.forwardRef((n,l)=>{const o=Tn(_l,n.__scopeDialog),i=y.useRef(!1),u=y.useRef(!1);return m.jsx(iy,{...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 v,g;(v=n.onInteractOutside)==null||v.call(n,d),d.defaultPrevented||(i.current=!0,d.detail.originalEvent.type==="pointerdown"&&(u.current=!0));const f=d.target;((g=o.triggerRef.current)==null?void 0:g.contains(f))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&u.current&&d.preventDefault()}})}),iy=y.forwardRef((n,l)=>{const{__scopeDialog:o,trapFocus:i,onOpenAutoFocus:u,onCloseAutoFocus:d,...f}=n,h=Tn(_l,o),v=y.useRef(null),g=Fe(l,v);return Y0(),m.jsxs(m.Fragment,{children:[m.jsx(gf,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:u,onUnmountAutoFocus:d,children:m.jsx(pf,{role:"dialog",id:h.contentId,"aria-describedby":h.descriptionId,"aria-labelledby":h.titleId,"data-state":Sf(h.open),...f,ref:g,onDismiss:()=>h.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(s5,{titleId:h.titleId}),m.jsx(u5,{contentRef:v,descriptionId:h.descriptionId})]})]})}),xf="DialogTitle",sy=y.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=Tn(xf,o);return m.jsx(Ue.h2,{id:u.titleId,...i,ref:l})});sy.displayName=xf;var cy="DialogDescription",uy=y.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=Tn(cy,o);return m.jsx(Ue.p,{id:u.descriptionId,...i,ref:l})});uy.displayName=cy;var dy="DialogClose",fy=y.forwardRef((n,l)=>{const{__scopeDialog:o,...i}=n,u=Tn(dy,o);return m.jsx(Ue.button,{type:"button",...i,ref:l,onClick:Me(n.onClick,()=>u.onOpenChange(!1))})});fy.displayName=dy;function Sf(n){return n?"open":"closed"}var my="DialogTitleWarning",[i5,hy]=UC(my,{contentName:_l,titleName:xf,docsSlug:"dialog"}),s5=({titleId:n})=>{const l=hy(my),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 y.useEffect(()=>{n&&(document.getElementById(n)||console.error(o))},[o,n]),null},c5="DialogDescriptionWarning",u5=({contentRef:n,descriptionId:l})=>{const i=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${hy(c5).contentName}}.`;return y.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},py=ey,gy=ny,vy=ly,wf=ry,Ef=oy,Nf=sy,Cf=uy,Zs=fy;const d5=py,f5=gy,m5=vy,z3=Zs,yy=y.forwardRef(({className:n,...l},o)=>m.jsx(wf,{ref:o,className:ge("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}));yy.displayName=wf.displayName;const by=y.forwardRef(({className:n,children:l,...o},i)=>m.jsxs(m5,{children:[m.jsx(yy,{}),m.jsxs(Ef,{ref:i,className:ge("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-[22px] border bg-background p-6 shadow-[0_34px_110px_-54px_rgba(0,0,0,0.55)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n),...o,children:[l,m.jsxs(Zs,{className:"absolute right-4 top-4 rounded-[10px] opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[m.jsx(y0,{className:"h-4 w-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));by.displayName=Ef.displayName;const xy=({className:n,...l})=>m.jsx("div",{className:ge("flex flex-col space-y-1.5 text-center sm:text-left",n),...l});xy.displayName="DialogHeader";const h5=({className:n,...l})=>m.jsx("div",{className:ge("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...l});h5.displayName="DialogFooter";const Sy=y.forwardRef(({className:n,...l},o)=>m.jsx(Nf,{ref:o,className:ge("text-lg font-semibold leading-none tracking-tight",n),...l}));Sy.displayName=Nf.displayName;const wy=y.forwardRef(({className:n,...l},o)=>m.jsx(Cf,{ref:o,className:ge("text-sm text-muted-foreground",n),...l}));wy.displayName=Cf.displayName;function wv(n,[l,o]){return Math.min(o,Math.max(l,n))}function Ey(n){const l=n+"CollectionProvider",[o,i]=el(l),[u,d]=o(l,{collectionRef:{current:null},itemMap:new Map}),f=N=>{const{scope:T,children:C}=N,j=te.useRef(null),M=te.useRef(new Map).current;return m.jsx(u,{scope:T,itemMap:M,collectionRef:j,children:C})};f.displayName=l;const h=n+"CollectionSlot",v=Ho(h),g=te.forwardRef((N,T)=>{const{scope:C,children:j}=N,M=d(h,C),k=Fe(T,M.collectionRef);return m.jsx(v,{ref:k,children:j})});g.displayName=h;const x=n+"CollectionItemSlot",p="data-radix-collection-item",S=Ho(x),E=te.forwardRef((N,T)=>{const{scope:C,children:j,...M}=N,k=te.useRef(null),q=Fe(T,k),$=d(x,C);return te.useEffect(()=>($.itemMap.set(k,{ref:k,...M}),()=>void $.itemMap.delete(k))),m.jsx(S,{[p]:"",ref:q,children:j})});E.displayName=x;function R(N){const T=d(n+"CollectionConsumer",N);return te.useCallback(()=>{const j=T.collectionRef.current;if(!j)return[];const M=Array.from(j.querySelectorAll(`[${p}]`));return Array.from(T.itemMap.values()).sort(($,U)=>M.indexOf($.ref.current)-M.indexOf(U.ref.current))},[T.collectionRef,T.itemMap])}return[{Provider:f,Slot:g,ItemSlot:E},R,i]}var p5=y.createContext(void 0);function Tf(n){const l=y.useContext(p5);return n||l||"ltr"}const g5=["top","right","bottom","left"],Fa=Math.min,tn=Math.max,js=Math.round,gs=Math.floor,$n=n=>({x:n,y:n}),v5={left:"right",right:"left",bottom:"top",top:"bottom"};function Gd(n,l,o){return tn(n,Fa(l,o))}function pa(n,l){return typeof n=="function"?n(l):n}function ga(n){return n.split("-")[0]}function zr(n){return n.split("-")[1]}function Rf(n){return n==="x"?"y":"x"}function Af(n){return n==="y"?"height":"width"}function qn(n){const l=n[0];return l==="t"||l==="b"?"y":"x"}function _f(n){return Rf(qn(n))}function y5(n,l,o){o===void 0&&(o=!1);const i=zr(n),u=_f(n),d=Af(u);let f=u==="x"?i===(o?"end":"start")?"right":"left":i==="start"?"bottom":"top";return l.reference[d]>l.floating[d]&&(f=Os(f)),[f,Os(f)]}function b5(n){const l=Os(n);return[Xd(n),l,Xd(l)]}function Xd(n){return n.includes("start")?n.replace("start","end"):n.replace("end","start")}const Ev=["left","right"],Nv=["right","left"],x5=["top","bottom"],S5=["bottom","top"];function w5(n,l,o){switch(n){case"top":case"bottom":return o?l?Nv:Ev:l?Ev:Nv;case"left":case"right":return l?x5:S5;default:return[]}}function E5(n,l,o,i){const u=zr(n);let d=w5(ga(n),o==="start",i);return u&&(d=d.map(f=>f+"-"+u),l&&(d=d.concat(d.map(Xd)))),d}function Os(n){const l=ga(n);return v5[l]+n.slice(l.length)}function N5(n){return{top:0,right:0,bottom:0,left:0,...n}}function Ny(n){return typeof n!="number"?N5(n):{top:n,right:n,bottom:n,left:n}}function Ms(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 Cv(n,l,o){let{reference:i,floating:u}=n;const d=qn(l),f=_f(l),h=Af(f),v=ga(l),g=d==="y",x=i.x+i.width/2-u.width/2,p=i.y+i.height/2-u.height/2,S=i[h]/2-u[h]/2;let E;switch(v){case"top":E={x,y:i.y-u.height};break;case"bottom":E={x,y:i.y+i.height};break;case"right":E={x:i.x+i.width,y:p};break;case"left":E={x:i.x-u.width,y:p};break;default:E={x:i.x,y:i.y}}switch(zr(l)){case"start":E[f]-=S*(o&&g?-1:1);break;case"end":E[f]+=S*(o&&g?-1:1);break}return E}async function C5(n,l){var o;l===void 0&&(l={});const{x:i,y:u,platform:d,rects:f,elements:h,strategy:v}=n,{boundary:g="clippingAncestors",rootBoundary:x="viewport",elementContext:p="floating",altBoundary:S=!1,padding:E=0}=pa(l,n),R=Ny(E),T=h[S?p==="floating"?"reference":"floating":p],C=Ms(await d.getClippingRect({element:(o=await(d.isElement==null?void 0:d.isElement(T)))==null||o?T:T.contextElement||await(d.getDocumentElement==null?void 0:d.getDocumentElement(h.floating)),boundary:g,rootBoundary:x,strategy:v})),j=p==="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},q=Ms(d.convertOffsetParentRelativeRectToViewportRelativeRect?await d.convertOffsetParentRelativeRectToViewportRelativeRect({elements:h,rect:j,offsetParent:M,strategy:v}):j);return{top:(C.top-q.top+R.top)/k.y,bottom:(q.bottom-C.bottom+R.bottom)/k.y,left:(C.left-q.left+R.left)/k.x,right:(q.right-C.right+R.right)/k.x}}const T5=50,R5=async(n,l,o)=>{const{placement:i="bottom",strategy:u="absolute",middleware:d=[],platform:f}=o,h=f.detectOverflow?f:{...f,detectOverflow:C5},v=await(f.isRTL==null?void 0:f.isRTL(l));let g=await f.getElementRects({reference:n,floating:l,strategy:u}),{x,y:p}=Cv(g,i,v),S=i,E=0;const R={};for(let N=0;N<d.length;N++){const T=d[N];if(!T)continue;const{name:C,fn:j}=T,{x:M,y:k,data:q,reset:$}=await j({x,y:p,initialPlacement:i,placement:S,strategy:u,middlewareData:R,rects:g,platform:h,elements:{reference:n,floating:l}});x=M??x,p=k??p,R[C]={...R[C],...q},$&&E<T5&&(E++,typeof $=="object"&&($.placement&&(S=$.placement),$.rects&&(g=$.rects===!0?await f.getElementRects({reference:n,floating:l,strategy:u}):$.rects),{x,y:p}=Cv(g,S,v)),N=-1)}return{x,y:p,placement:S,strategy:u,middlewareData:R}},A5=n=>({name:"arrow",options:n,async fn(l){const{x:o,y:i,placement:u,rects:d,platform:f,elements:h,middlewareData:v}=l,{element:g,padding:x=0}=pa(n,l)||{};if(g==null)return{};const p=Ny(x),S={x:o,y:i},E=_f(u),R=Af(E),N=await f.getDimensions(g),T=E==="y",C=T?"top":"left",j=T?"bottom":"right",M=T?"clientHeight":"clientWidth",k=d.reference[R]+d.reference[E]-S[E]-d.floating[R],q=S[E]-d.reference[E],$=await(f.getOffsetParent==null?void 0:f.getOffsetParent(g));let U=$?$[M]:0;(!U||!await(f.isElement==null?void 0:f.isElement($)))&&(U=h.floating[M]||d.floating[R]);const V=k/2-q/2,ne=U/2-N[R]/2-1,de=Fa(p[C],ne),ve=Fa(p[j],ne),oe=de,se=U-N[R]-ve,le=U/2-N[R]/2+V,ce=Gd(oe,le,se),O=!v.arrow&&zr(u)!=null&&le!==ce&&d.reference[R]/2-(le<oe?de:ve)-N[R]/2<0,G=O?le<oe?le-oe:le-se:0;return{[E]:S[E]+G,data:{[E]:ce,centerOffset:le-ce-G,...O&&{alignmentOffset:G}},reset:O}}}),_5=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:v,elements:g}=l,{mainAxis:x=!0,crossAxis:p=!0,fallbackPlacements:S,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:R="none",flipAlignment:N=!0,...T}=pa(n,l);if((o=d.arrow)!=null&&o.alignmentOffset)return{};const C=ga(u),j=qn(h),M=ga(h)===h,k=await(v.isRTL==null?void 0:v.isRTL(g.floating)),q=S||(M||!N?[Os(h)]:b5(h)),$=R!=="none";!S&&$&&q.push(...E5(h,N,R,k));const U=[h,...q],V=await v.detectOverflow(l,T),ne=[];let de=((i=d.flip)==null?void 0:i.overflows)||[];if(x&&ne.push(V[C]),p){const le=y5(u,f,k);ne.push(V[le[0]],V[le[1]])}if(de=[...de,{placement:u,overflows:ne}],!ne.every(le=>le<=0)){var ve,oe;const le=(((ve=d.flip)==null?void 0:ve.index)||0)+1,ce=U[le];if(ce&&(!(p==="alignment"?j!==qn(ce):!1)||de.every(I=>qn(I.placement)===j?I.overflows[0]>0:!0)))return{data:{index:le,overflows:de},reset:{placement:ce}};let O=(oe=de.filter(G=>G.overflows[0]<=0).sort((G,I)=>G.overflows[1]-I.overflows[1])[0])==null?void 0:oe.placement;if(!O)switch(E){case"bestFit":{var se;const G=(se=de.filter(I=>{if($){const ie=qn(I.placement);return ie===j||ie==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(ie=>ie>0).reduce((ie,F)=>ie+F,0)]).sort((I,ie)=>I[1]-ie[1])[0])==null?void 0:se[0];G&&(O=G);break}case"initialPlacement":O=h;break}if(u!==O)return{reset:{placement:O}}}return{}}}};function Tv(n,l){return{top:n.top-l.height,right:n.right-l.width,bottom:n.bottom-l.height,left:n.left-l.width}}function Rv(n){return g5.some(l=>n[l]>=0)}const j5=function(n){return n===void 0&&(n={}),{name:"hide",options:n,async fn(l){const{rects:o,platform:i}=l,{strategy:u="referenceHidden",...d}=pa(n,l);switch(u){case"referenceHidden":{const f=await i.detectOverflow(l,{...d,elementContext:"reference"}),h=Tv(f,o.reference);return{data:{referenceHiddenOffsets:h,referenceHidden:Rv(h)}}}case"escaped":{const f=await i.detectOverflow(l,{...d,altBoundary:!0}),h=Tv(f,o.floating);return{data:{escapedOffsets:h,escaped:Rv(h)}}}default:return{}}}}},Cy=new Set(["left","top"]);async function O5(n,l){const{placement:o,platform:i,elements:u}=n,d=await(i.isRTL==null?void 0:i.isRTL(u.floating)),f=ga(o),h=zr(o),v=qn(o)==="y",g=Cy.has(f)?-1:1,x=d&&v?-1:1,p=pa(l,n);let{mainAxis:S,crossAxis:E,alignmentAxis:R}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return h&&typeof R=="number"&&(E=h==="end"?R*-1:R),v?{x:E*x,y:S*g}:{x:S*g,y:E*x}}const M5=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,v=await O5(l,n);return f===((o=h.offset)==null?void 0:o.placement)&&(i=h.arrow)!=null&&i.alignmentOffset?{}:{x:u+v.x,y:d+v.y,data:{...v,placement:f}}}}},D5=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:v={fn:C=>{let{x:j,y:M}=C;return{x:j,y:M}}},...g}=pa(n,l),x={x:o,y:i},p=await d.detectOverflow(l,g),S=qn(ga(u)),E=Rf(S);let R=x[E],N=x[S];if(f){const C=E==="y"?"top":"left",j=E==="y"?"bottom":"right",M=R+p[C],k=R-p[j];R=Gd(M,R,k)}if(h){const C=S==="y"?"top":"left",j=S==="y"?"bottom":"right",M=N+p[C],k=N-p[j];N=Gd(M,N,k)}const T=v.fn({...l,[E]:R,[S]:N});return{...T,data:{x:T.x-o,y:T.y-i,enabled:{[E]:f,[S]: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:v=!0,crossAxis:g=!0}=pa(n,l),x={x:o,y:i},p=qn(u),S=Rf(p);let E=x[S],R=x[p];const N=pa(h,l),T=typeof N=="number"?{mainAxis:N,crossAxis:0}:{mainAxis:0,crossAxis:0,...N};if(v){const M=S==="y"?"height":"width",k=d.reference[S]-d.floating[M]+T.mainAxis,q=d.reference[S]+d.reference[M]-T.mainAxis;E<k?E=k:E>q&&(E=q)}if(g){var C,j;const M=S==="y"?"width":"height",k=Cy.has(ga(u)),q=d.reference[p]-d.floating[M]+(k&&((C=f.offset)==null?void 0:C[p])||0)+(k?0:T.crossAxis),$=d.reference[p]+d.reference[M]+(k?0:((j=f.offset)==null?void 0:j[p])||0)-(k?T.crossAxis:0);R<q?R=q:R>$&&(R=$)}return{[S]:E,[p]:R}}}},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:v=()=>{},...g}=pa(n,l),x=await f.detectOverflow(l,g),p=ga(u),S=zr(u),E=qn(u)==="y",{width:R,height:N}=d.floating;let T,C;p==="top"||p==="bottom"?(T=p,C=S===(await(f.isRTL==null?void 0:f.isRTL(h.floating))?"start":"end")?"left":"right"):(C=p,T=S==="end"?"top":"bottom");const j=N-x.top-x.bottom,M=R-x.left-x.right,k=Fa(N-x[T],j),q=Fa(R-x[C],M),$=!l.middlewareData.shift;let U=k,V=q;if((o=l.middlewareData.shift)!=null&&o.enabled.x&&(V=M),(i=l.middlewareData.shift)!=null&&i.enabled.y&&(U=j),$&&!S){const de=tn(x.left,0),ve=tn(x.right,0),oe=tn(x.top,0),se=tn(x.bottom,0);E?V=R-2*(de!==0||ve!==0?de+ve:tn(x.left,x.right)):U=N-2*(oe!==0||se!==0?oe+se:tn(x.top,x.bottom))}await v({...l,availableWidth:V,availableHeight:U});const ne=await f.getDimensions(h.floating);return R!==ne.width||N!==ne.height?{reset:{rects:!0}}:{}}}};function Ps(){return typeof window<"u"}function Lr(n){return Ty(n)?(n.nodeName||"").toLowerCase():"#document"}function nn(n){var l;return(n==null||(l=n.ownerDocument)==null?void 0:l.defaultView)||window}function Qn(n){var l;return(l=(Ty(n)?n.ownerDocument:n.document)||window.document)==null?void 0:l.documentElement}function Ty(n){return Ps()?n instanceof Node||n instanceof nn(n).Node:!1}function Nn(n){return Ps()?n instanceof Element||n instanceof nn(n).Element:!1}function va(n){return Ps()?n instanceof HTMLElement||n instanceof nn(n).HTMLElement:!1}function Av(n){return!Ps()||typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof nn(n).ShadowRoot}function Go(n){const{overflow:l,overflowX:o,overflowY:i,display:u}=Cn(n);return/auto|scroll|overlay|hidden|clip/.test(l+i+o)&&u!=="inline"&&u!=="contents"}function L5(n){return/^(table|td|th)$/.test(Lr(n))}function Is(n){try{if(n.matches(":popover-open"))return!0}catch{}try{return n.matches(":modal")}catch{return!1}}const U5=/transform|translate|scale|rotate|perspective|filter/,B5=/paint|layout|strict|content/,Tl=n=>!!n&&n!=="none";let Dd;function jf(n){const l=Nn(n)?Cn(n):n;return Tl(l.transform)||Tl(l.translate)||Tl(l.scale)||Tl(l.rotate)||Tl(l.perspective)||!Of()&&(Tl(l.backdropFilter)||Tl(l.filter))||U5.test(l.willChange||"")||B5.test(l.contain||"")}function H5(n){let l=Ja(n);for(;va(l)&&!jr(l);){if(jf(l))return l;if(Is(l))return null;l=Ja(l)}return null}function Of(){return Dd==null&&(Dd=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Dd}function jr(n){return/^(html|body|#document)$/.test(Lr(n))}function Cn(n){return nn(n).getComputedStyle(n)}function Fs(n){return Nn(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.scrollX,scrollTop:n.scrollY}}function Ja(n){if(Lr(n)==="html")return n;const l=n.assignedSlot||n.parentNode||Av(n)&&n.host||Qn(n);return Av(l)?l.host:l}function Ry(n){const l=Ja(n);return jr(l)?n.ownerDocument?n.ownerDocument.body:n.body:va(l)&&Go(l)?l:Ry(l)}function Vo(n,l,o){var i;l===void 0&&(l=[]),o===void 0&&(o=!0);const u=Ry(n),d=u===((i=n.ownerDocument)==null?void 0:i.body),f=nn(u);if(d){const h=Qd(f);return l.concat(f,f.visualViewport||[],Go(u)?u:[],h&&o?Vo(h):[])}else return l.concat(u,Vo(u,[],o))}function Qd(n){return n.parent&&Object.getPrototypeOf(n.parent)?n.frameElement:null}function Ay(n){const l=Cn(n);let o=parseFloat(l.width)||0,i=parseFloat(l.height)||0;const u=va(n),d=u?n.offsetWidth:o,f=u?n.offsetHeight:i,h=js(o)!==d||js(i)!==f;return h&&(o=d,i=f),{width:o,height:i,$:h}}function Mf(n){return Nn(n)?n:n.contextElement}function Rr(n){const l=Mf(n);if(!va(l))return $n(1);const o=l.getBoundingClientRect(),{width:i,height:u,$:d}=Ay(l);let f=(d?js(o.width):o.width)/i,h=(d?js(o.height):o.height)/u;return(!f||!Number.isFinite(f))&&(f=1),(!h||!Number.isFinite(h))&&(h=1),{x:f,y:h}}const V5=$n(0);function _y(n){const l=nn(n);return!Of()||!l.visualViewport?V5:{x:l.visualViewport.offsetLeft,y:l.visualViewport.offsetTop}}function q5(n,l,o){return l===void 0&&(l=!1),!o||l&&o!==nn(n)?!1:l}function jl(n,l,o,i){l===void 0&&(l=!1),o===void 0&&(o=!1);const u=n.getBoundingClientRect(),d=Mf(n);let f=$n(1);l&&(i?Nn(i)&&(f=Rr(i)):f=Rr(n));const h=q5(d,o,i)?_y(d):$n(0);let v=(u.left+h.x)/f.x,g=(u.top+h.y)/f.y,x=u.width/f.x,p=u.height/f.y;if(d){const S=nn(d),E=i&&Nn(i)?nn(i):i;let R=S,N=Qd(R);for(;N&&i&&E!==R;){const T=Rr(N),C=N.getBoundingClientRect(),j=Cn(N),M=C.left+(N.clientLeft+parseFloat(j.paddingLeft))*T.x,k=C.top+(N.clientTop+parseFloat(j.paddingTop))*T.y;v*=T.x,g*=T.y,x*=T.x,p*=T.y,v+=M,g+=k,R=nn(N),N=Qd(R)}}return Ms({width:x,height:p,x:v,y:g})}function Js(n,l){const o=Fs(n).scrollLeft;return l?l.left+o:jl(Qn(n)).left+o}function jy(n,l){const o=n.getBoundingClientRect(),i=o.left+l.scrollLeft-Js(n,o),u=o.top+l.scrollTop;return{x:i,y:u}}function Y5(n){let{elements:l,rect:o,offsetParent:i,strategy:u}=n;const d=u==="fixed",f=Qn(i),h=l?Is(l.floating):!1;if(i===f||h&&d)return o;let v={scrollLeft:0,scrollTop:0},g=$n(1);const x=$n(0),p=va(i);if((p||!p&&!d)&&((Lr(i)!=="body"||Go(f))&&(v=Fs(i)),p)){const E=jl(i);g=Rr(i),x.x=E.x+i.clientLeft,x.y=E.y+i.clientTop}const S=f&&!p&&!d?jy(f,v):$n(0);return{width:o.width*g.x,height:o.height*g.y,x:o.x*g.x-v.scrollLeft*g.x+x.x+S.x,y:o.y*g.y-v.scrollTop*g.y+x.y+S.y}}function $5(n){return Array.from(n.getClientRects())}function G5(n){const l=Qn(n),o=Fs(n),i=n.ownerDocument.body,u=tn(l.scrollWidth,l.clientWidth,i.scrollWidth,i.clientWidth),d=tn(l.scrollHeight,l.clientHeight,i.scrollHeight,i.clientHeight);let f=-o.scrollLeft+Js(n);const h=-o.scrollTop;return Cn(i).direction==="rtl"&&(f+=tn(l.clientWidth,i.clientWidth)-u),{width:u,height:d,x:f,y:h}}const _v=25;function X5(n,l){const o=nn(n),i=Qn(n),u=o.visualViewport;let d=i.clientWidth,f=i.clientHeight,h=0,v=0;if(u){d=u.width,f=u.height;const x=Of();(!x||x&&l==="fixed")&&(h=u.offsetLeft,v=u.offsetTop)}const g=Js(i);if(g<=0){const x=i.ownerDocument,p=x.body,S=getComputedStyle(p),E=x.compatMode==="CSS1Compat"&&parseFloat(S.marginLeft)+parseFloat(S.marginRight)||0,R=Math.abs(i.clientWidth-p.clientWidth-E);R<=_v&&(d-=R)}else g<=_v&&(d+=g);return{width:d,height:f,x:h,y:v}}function Q5(n,l){const o=jl(n,!0,l==="fixed"),i=o.top+n.clientTop,u=o.left+n.clientLeft,d=va(n)?Rr(n):$n(1),f=n.clientWidth*d.x,h=n.clientHeight*d.y,v=u*d.x,g=i*d.y;return{width:f,height:h,x:v,y:g}}function jv(n,l,o){let i;if(l==="viewport")i=X5(n,o);else if(l==="document")i=G5(Qn(n));else if(Nn(l))i=Q5(l,o);else{const u=_y(n);i={x:l.x-u.x,y:l.y-u.y,width:l.width,height:l.height}}return Ms(i)}function Oy(n,l){const o=Ja(n);return o===l||!Nn(o)||jr(o)?!1:Cn(o).position==="fixed"||Oy(o,l)}function K5(n,l){const o=l.get(n);if(o)return o;let i=Vo(n,[],!1).filter(h=>Nn(h)&&Lr(h)!=="body"),u=null;const d=Cn(n).position==="fixed";let f=d?Ja(n):n;for(;Nn(f)&&!jr(f);){const h=Cn(f),v=jf(f);!v&&h.position==="fixed"&&(u=null),(d?!v&&!u:!v&&h.position==="static"&&!!u&&(u.position==="absolute"||u.position==="fixed")||Go(f)&&!v&&Oy(n,f))?i=i.filter(x=>x!==f):u=h,f=Ja(f)}return l.set(n,i),i}function Z5(n){let{element:l,boundary:o,rootBoundary:i,strategy:u}=n;const f=[...o==="clippingAncestors"?Is(l)?[]:K5(l,this._c):[].concat(o),i],h=jv(l,f[0],u);let v=h.top,g=h.right,x=h.bottom,p=h.left;for(let S=1;S<f.length;S++){const E=jv(l,f[S],u);v=tn(E.top,v),g=Fa(E.right,g),x=Fa(E.bottom,x),p=tn(E.left,p)}return{width:g-p,height:x-v,x:p,y:v}}function P5(n){const{width:l,height:o}=Ay(n);return{width:l,height:o}}function I5(n,l,o){const i=va(l),u=Qn(l),d=o==="fixed",f=jl(n,!0,d,l);let h={scrollLeft:0,scrollTop:0};const v=$n(0);function g(){v.x=Js(u)}if(i||!i&&!d)if((Lr(l)!=="body"||Go(u))&&(h=Fs(l)),i){const E=jl(l,!0,d,l);v.x=E.x+l.clientLeft,v.y=E.y+l.clientTop}else u&&g();d&&!i&&u&&g();const x=u&&!i&&!d?jy(u,h):$n(0),p=f.left+h.scrollLeft-v.x-x.x,S=f.top+h.scrollTop-v.y-x.y;return{x:p,y:S,width:f.width,height:f.height}}function kd(n){return Cn(n).position==="static"}function Ov(n,l){if(!va(n)||Cn(n).position==="fixed")return null;if(l)return l(n);let o=n.offsetParent;return Qn(n)===o&&(o=o.ownerDocument.body),o}function My(n,l){const o=nn(n);if(Is(n))return o;if(!va(n)){let u=Ja(n);for(;u&&!jr(u);){if(Nn(u)&&!kd(u))return u;u=Ja(u)}return o}let i=Ov(n,l);for(;i&&L5(i)&&kd(i);)i=Ov(i,l);return i&&jr(i)&&kd(i)&&!jf(i)?o:i||H5(n)||o}const F5=async function(n){const l=this.getOffsetParent||My,o=this.getDimensions,i=await o(n.floating);return{reference:I5(n.reference,await l(n.floating),n.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function J5(n){return Cn(n).direction==="rtl"}const W5={convertOffsetParentRelativeRectToViewportRelativeRect:Y5,getDocumentElement:Qn,getClippingRect:Z5,getOffsetParent:My,getElementRects:F5,getClientRects:$5,getDimensions:P5,getScale:Rr,isElement:Nn,isRTL:J5};function Dy(n,l){return n.x===l.x&&n.y===l.y&&n.width===l.width&&n.height===l.height}function eR(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,v){h===void 0&&(h=!1),v===void 0&&(v=1),d();const g=n.getBoundingClientRect(),{left:x,top:p,width:S,height:E}=g;if(h||l(),!S||!E)return;const R=gs(p),N=gs(u.clientWidth-(x+S)),T=gs(u.clientHeight-(p+E)),C=gs(x),M={rootMargin:-R+"px "+-N+"px "+-T+"px "+-C+"px",threshold:tn(0,Fa(1,v))||1};let k=!0;function q($){const U=$[0].intersectionRatio;if(U!==v){if(!k)return f();U?f(!1,U):i=setTimeout(()=>{f(!1,1e-7)},1e3)}U===1&&!Dy(g,n.getBoundingClientRect())&&f(),k=!1}try{o=new IntersectionObserver(q,{...M,root:u.ownerDocument})}catch{o=new IntersectionObserver(q,M)}o.observe(n)}return f(!0),d}function tR(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:v=!1}=i,g=Mf(n),x=u||d?[...g?Vo(g):[],...l?Vo(l):[]]:[];x.forEach(C=>{u&&C.addEventListener("scroll",o,{passive:!0}),d&&C.addEventListener("resize",o)});const p=g&&h?eR(g,o):null;let S=-1,E=null;f&&(E=new ResizeObserver(C=>{let[j]=C;j&&j.target===g&&E&&l&&(E.unobserve(l),cancelAnimationFrame(S),S=requestAnimationFrame(()=>{var M;(M=E)==null||M.observe(l)})),o()}),g&&!v&&E.observe(g),l&&E.observe(l));let R,N=v?jl(n):null;v&&T();function T(){const C=jl(n);N&&!Dy(N,C)&&o(),N=C,R=requestAnimationFrame(T)}return o(),()=>{var C;x.forEach(j=>{u&&j.removeEventListener("scroll",o),d&&j.removeEventListener("resize",o)}),p==null||p(),(C=E)==null||C.disconnect(),E=null,v&&cancelAnimationFrame(R)}}const nR=M5,aR=D5,lR=_5,rR=z5,oR=j5,Mv=A5,iR=k5,sR=(n,l,o)=>{const i=new Map,u={platform:W5,...o},d={...u.platform,_c:i};return R5(n,l,{...u,platform:d})};var cR=typeof document<"u",uR=function(){},ws=cR?y.useLayoutEffect:uR;function Ds(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(!Ds(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)&&!Ds(n[d],l[d]))return!1}return!0}return n!==n&&l!==l}function ky(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function Dv(n,l){const o=ky(n);return Math.round(l*o)/o}function zd(n){const l=y.useRef(n);return ws(()=>{l.current=n}),l}function dR(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:v,open:g}=n,[x,p]=y.useState({x:0,y:0,strategy:o,placement:l,middlewareData:{},isPositioned:!1}),[S,E]=y.useState(i);Ds(S,i)||E(i);const[R,N]=y.useState(null),[T,C]=y.useState(null),j=y.useCallback(I=>{I!==$.current&&($.current=I,N(I))},[]),M=y.useCallback(I=>{I!==U.current&&(U.current=I,C(I))},[]),k=d||R,q=f||T,$=y.useRef(null),U=y.useRef(null),V=y.useRef(x),ne=v!=null,de=zd(v),ve=zd(u),oe=zd(g),se=y.useCallback(()=>{if(!$.current||!U.current)return;const I={placement:l,strategy:o,middleware:S};ve.current&&(I.platform=ve.current),sR($.current,U.current,I).then(ie=>{const F={...ie,isPositioned:oe.current!==!1};le.current&&!Ds(V.current,F)&&(V.current=F,$o.flushSync(()=>{p(F)}))})},[S,l,o,ve,oe]);ws(()=>{g===!1&&V.current.isPositioned&&(V.current.isPositioned=!1,p(I=>({...I,isPositioned:!1})))},[g]);const le=y.useRef(!1);ws(()=>(le.current=!0,()=>{le.current=!1}),[]),ws(()=>{if(k&&($.current=k),q&&(U.current=q),k&&q){if(de.current)return de.current(k,q,se);se()}},[k,q,se,de,ne]);const ce=y.useMemo(()=>({reference:$,floating:U,setReference:j,setFloating:M}),[j,M]),O=y.useMemo(()=>({reference:k,floating:q}),[k,q]),G=y.useMemo(()=>{const I={position:o,left:0,top:0};if(!O.floating)return I;const ie=Dv(O.floating,x.x),F=Dv(O.floating,x.y);return h?{...I,transform:"translate("+ie+"px, "+F+"px)",...ky(O.floating)>=1.5&&{willChange:"transform"}}:{position:o,left:ie,top:F}},[o,h,O.floating,x.x,x.y]);return y.useMemo(()=>({...x,update:se,refs:ce,elements:O,floatingStyles:G}),[x,se,ce,O,G])}const fR=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?Mv({element:i.current,padding:u}).fn(o):{}:i?Mv({element:i,padding:u}).fn(o):{}}}},mR=(n,l)=>{const o=nR(n);return{name:o.name,fn:o.fn,options:[n,l]}},hR=(n,l)=>{const o=aR(n);return{name:o.name,fn:o.fn,options:[n,l]}},pR=(n,l)=>({fn:iR(n).fn,options:[n,l]}),gR=(n,l)=>{const o=lR(n);return{name:o.name,fn:o.fn,options:[n,l]}},vR=(n,l)=>{const o=rR(n);return{name:o.name,fn:o.fn,options:[n,l]}},yR=(n,l)=>{const o=oR(n);return{name:o.name,fn:o.fn,options:[n,l]}},bR=(n,l)=>{const o=fR(n);return{name:o.name,fn:o.fn,options:[n,l]}};var xR="Arrow",zy=y.forwardRef((n,l)=>{const{children:o,width:i=10,height:u=5,...d}=n;return m.jsx(Ue.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"})})});zy.displayName=xR;var SR=zy;function Ly(n){const[l,o]=y.useState(void 0);return Ot(()=>{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 v=d.borderBoxSize,g=Array.isArray(v)?v[0]:v;f=g.inlineSize,h=g.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 Df="Popper",[Uy,By]=el(Df),[wR,Hy]=Uy(Df),Vy=n=>{const{__scopePopper:l,children:o}=n,[i,u]=y.useState(null);return m.jsx(wR,{scope:l,anchor:i,onAnchorChange:u,children:o})};Vy.displayName=Df;var qy="PopperAnchor",Yy=y.forwardRef((n,l)=>{const{__scopePopper:o,virtualRef:i,...u}=n,d=Hy(qy,o),f=y.useRef(null),h=Fe(l,f),v=y.useRef(null);return y.useEffect(()=>{const g=v.current;v.current=(i==null?void 0:i.current)||f.current,g!==v.current&&d.onAnchorChange(v.current)}),i?null:m.jsx(Ue.div,{...u,ref:h})});Yy.displayName=qy;var kf="PopperContent",[ER,NR]=Uy(kf),$y=y.forwardRef((n,l)=>{var ee,re,ue,Te,we,Se;const{__scopePopper:o,side:i="bottom",sideOffset:u=0,align:d="center",alignOffset:f=0,arrowPadding:h=0,avoidCollisions:v=!0,collisionBoundary:g=[],collisionPadding:x=0,sticky:p="partial",hideWhenDetached:S=!1,updatePositionStrategy:E="optimized",onPlaced:R,...N}=n,T=Hy(kf,o),[C,j]=y.useState(null),M=Fe(l,Je=>j(Je)),[k,q]=y.useState(null),$=Ly(k),U=($==null?void 0:$.width)??0,V=($==null?void 0:$.height)??0,ne=i+(d!=="center"?"-"+d:""),de=typeof x=="number"?x:{top:0,right:0,bottom:0,left:0,...x},ve=Array.isArray(g)?g:[g],oe=ve.length>0,se={padding:de,boundary:ve.filter(TR),altBoundary:oe},{refs:le,floatingStyles:ce,placement:O,isPositioned:G,middlewareData:I}=dR({strategy:"fixed",placement:ne,whileElementsMounted:(...Je)=>tR(...Je,{animationFrame:E==="always"}),elements:{reference:T.anchor},middleware:[mR({mainAxis:u+V,alignmentAxis:f}),v&&hR({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?pR():void 0,...se}),v&&gR({...se}),vR({...se,apply:({elements:Je,rects:$e,availableWidth:kt,availableHeight:be})=>{const{width:Ge,height:it}=$e.reference,We=Je.floating.style;We.setProperty("--radix-popper-available-width",`${kt}px`),We.setProperty("--radix-popper-available-height",`${be}px`),We.setProperty("--radix-popper-anchor-width",`${Ge}px`),We.setProperty("--radix-popper-anchor-height",`${it}px`)}}),k&&bR({element:k,padding:h}),RR({arrowWidth:U,arrowHeight:V}),S&&yR({strategy:"referenceHidden",...se})]}),[ie,F]=Qy(O),_=Ia(R);Ot(()=>{G&&(_==null||_())},[G,_]);const X=(ee=I.arrow)==null?void 0:ee.x,K=(re=I.arrow)==null?void 0:re.y,J=((ue=I.arrow)==null?void 0:ue.centerOffset)!==0,[W,ae]=y.useState();return Ot(()=>{C&&ae(window.getComputedStyle(C).zIndex)},[C]),m.jsx("div",{ref:le.setFloating,"data-radix-popper-content-wrapper":"",style:{...ce,transform:G?ce.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[(Te=I.transformOrigin)==null?void 0:Te.x,(we=I.transformOrigin)==null?void 0:we.y].join(" "),...((Se=I.hide)==null?void 0:Se.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:n.dir,children:m.jsx(ER,{scope:o,placedSide:ie,onArrowChange:q,arrowX:X,arrowY:K,shouldHideArrow:J,children:m.jsx(Ue.div,{"data-side":ie,"data-align":F,...N,ref:M,style:{...N.style,animation:G?void 0:"none"}})})})});$y.displayName=kf;var Gy="PopperArrow",CR={top:"bottom",right:"left",bottom:"top",left:"right"},Xy=y.forwardRef(function(l,o){const{__scopePopper:i,...u}=l,d=NR(Gy,i),f=CR[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(SR,{...u,ref:o,style:{...u.style,display:"block"}})})});Xy.displayName=Gy;function TR(n){return n!==null}var RR=n=>({name:"transformOrigin",options:n,fn(l){var T,C,j;const{placement:o,rects:i,middlewareData:u}=l,f=((T=u.arrow)==null?void 0:T.centerOffset)!==0,h=f?0:n.arrowWidth,v=f?0:n.arrowHeight,[g,x]=Qy(o),p={start:"0%",center:"50%",end:"100%"}[x],S=(((C=u.arrow)==null?void 0:C.x)??0)+h/2,E=(((j=u.arrow)==null?void 0:j.y)??0)+v/2;let R="",N="";return g==="bottom"?(R=f?p:`${S}px`,N=`${-v}px`):g==="top"?(R=f?p:`${S}px`,N=`${i.floating.height+v}px`):g==="right"?(R=`${-v}px`,N=f?p:`${E}px`):g==="left"&&(R=`${i.floating.width+v}px`,N=f?p:`${E}px`),{data:{x:R,y:N}}}});function Qy(n){const[l,o="center"]=n.split("-");return[l,o]}var AR=Vy,_R=Yy,jR=$y,OR=Xy;function Ky(n){const l=y.useRef({value:n,previous:n});return y.useMemo(()=>(l.current.value!==n&&(l.current.previous=l.current.value,l.current.value=n),l.current.previous),[n])}var Zy=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"}),MR="VisuallyHidden",DR=y.forwardRef((n,l)=>m.jsx(Ue.span,{...n,ref:l,style:{...Zy,...n.style}}));DR.displayName=MR;var kR=[" ","Enter","ArrowUp","ArrowDown"],zR=[" ","Enter"],Ol="Select",[Ws,ec,LR]=Ey(Ol),[Ur]=el(Ol,[LR,By]),tc=By(),[UR,tl]=Ur(Ol),[BR,HR]=Ur(Ol),Py=n=>{const{__scopeSelect:l,children:o,open:i,defaultOpen:u,onOpenChange:d,value:f,defaultValue:h,onValueChange:v,dir:g,name:x,autoComplete:p,disabled:S,required:E,form:R}=n,N=tc(l),[T,C]=y.useState(null),[j,M]=y.useState(null),[k,q]=y.useState(!1),$=Tf(g),[U,V]=_r({prop:i,defaultProp:u??!1,onChange:d,caller:Ol}),[ne,de]=_r({prop:f,defaultProp:h,onChange:v,caller:Ol}),ve=y.useRef(null),oe=T?R||!!T.closest("form"):!0,[se,le]=y.useState(new Set),ce=Array.from(se).map(O=>O.props.value).join(";");return m.jsx(AR,{...N,children:m.jsxs(UR,{required:E,scope:l,trigger:T,onTriggerChange:C,valueNode:j,onValueNodeChange:M,valueNodeHasChildren:k,onValueNodeHasChildrenChange:q,contentId:Za(),value:ne,onValueChange:de,open:U,onOpenChange:V,dir:$,triggerPointerDownPosRef:ve,disabled:S,children:[m.jsx(Ws.Provider,{scope:l,children:m.jsx(BR,{scope:n.__scopeSelect,onNativeOptionAdd:y.useCallback(O=>{le(G=>new Set(G).add(O))},[]),onNativeOptionRemove:y.useCallback(O=>{le(G=>{const I=new Set(G);return I.delete(O),I})},[]),children:o})}),oe?m.jsxs(bb,{"aria-hidden":!0,required:E,tabIndex:-1,name:x,autoComplete:p,value:ne,onChange:O=>de(O.target.value),disabled:S,form:R,children:[ne===void 0?m.jsx("option",{value:""}):null,Array.from(se)]},ce):null]})})};Py.displayName=Ol;var Iy="SelectTrigger",Fy=y.forwardRef((n,l)=>{const{__scopeSelect:o,disabled:i=!1,...u}=n,d=tc(o),f=tl(Iy,o),h=f.disabled||i,v=Fe(l,f.onTriggerChange),g=ec(o),x=y.useRef("touch"),[p,S,E]=Sb(N=>{const T=g().filter(M=>!M.disabled),C=T.find(M=>M.value===f.value),j=wb(T,N,C);j!==void 0&&f.onValueChange(j.value)}),R=N=>{h||(f.onOpenChange(!0),E()),N&&(f.triggerPointerDownPosRef.current={x:Math.round(N.pageX),y:Math.round(N.pageY)})};return m.jsx(_R,{asChild:!0,...d,children:m.jsx(Ue.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":xb(f.value)?"":void 0,...u,ref:v,onClick:Me(u.onClick,N=>{N.currentTarget.focus(),x.current!=="mouse"&&R(N)}),onPointerDown:Me(u.onPointerDown,N=>{x.current=N.pointerType;const T=N.target;T.hasPointerCapture(N.pointerId)&&T.releasePointerCapture(N.pointerId),N.button===0&&N.ctrlKey===!1&&N.pointerType==="mouse"&&(R(N),N.preventDefault())}),onKeyDown:Me(u.onKeyDown,N=>{const T=p.current!=="";!(N.ctrlKey||N.altKey||N.metaKey)&&N.key.length===1&&S(N.key),!(T&&N.key===" ")&&kR.includes(N.key)&&(R(),N.preventDefault())})})})});Fy.displayName=Iy;var Jy="SelectValue",Wy=y.forwardRef((n,l)=>{const{__scopeSelect:o,className:i,style:u,children:d,placeholder:f="",...h}=n,v=tl(Jy,o),{onValueNodeHasChildrenChange:g}=v,x=d!==void 0,p=Fe(l,v.onValueNodeChange);return Ot(()=>{g(x)},[g,x]),m.jsx(Ue.span,{...h,ref:p,style:{pointerEvents:"none"},children:xb(v.value)?m.jsx(m.Fragment,{children:f}):d})});Wy.displayName=Jy;var VR="SelectIcon",eb=y.forwardRef((n,l)=>{const{__scopeSelect:o,children:i,...u}=n;return m.jsx(Ue.span,{"aria-hidden":!0,...u,ref:l,children:i||"▼"})});eb.displayName=VR;var qR="SelectPortal",tb=n=>m.jsx(vf,{asChild:!0,...n});tb.displayName=qR;var Ml="SelectContent",nb=y.forwardRef((n,l)=>{const o=tl(Ml,n.__scopeSelect),[i,u]=y.useState();if(Ot(()=>{u(new DocumentFragment)},[]),!o.open){const d=i;return d?$o.createPortal(m.jsx(ab,{scope:n.__scopeSelect,children:m.jsx(Ws.Slot,{scope:n.__scopeSelect,children:m.jsx("div",{children:n.children})})}),d):null}return m.jsx(lb,{...n,ref:l})});nb.displayName=Ml;var wn=10,[ab,nl]=Ur(Ml),YR="SelectContentImpl",$R=Ho("SelectContent.RemoveScroll"),lb=y.forwardRef((n,l)=>{const{__scopeSelect:o,position:i="item-aligned",onCloseAutoFocus:u,onEscapeKeyDown:d,onPointerDownOutside:f,side:h,sideOffset:v,align:g,alignOffset:x,arrowPadding:p,collisionBoundary:S,collisionPadding:E,sticky:R,hideWhenDetached:N,avoidCollisions:T,...C}=n,j=tl(Ml,o),[M,k]=y.useState(null),[q,$]=y.useState(null),U=Fe(l,ee=>k(ee)),[V,ne]=y.useState(null),[de,ve]=y.useState(null),oe=ec(o),[se,le]=y.useState(!1),ce=y.useRef(!1);y.useEffect(()=>{if(M)return F0(M)},[M]),Y0();const O=y.useCallback(ee=>{const[re,...ue]=oe().map(Se=>Se.ref.current),[Te]=ue.slice(-1),we=document.activeElement;for(const Se of ee)if(Se===we||(Se==null||Se.scrollIntoView({block:"nearest"}),Se===re&&q&&(q.scrollTop=0),Se===Te&&q&&(q.scrollTop=q.scrollHeight),Se==null||Se.focus(),document.activeElement!==we))return},[oe,q]),G=y.useCallback(()=>O([V,M]),[O,V,M]);y.useEffect(()=>{se&&G()},[se,G]);const{onOpenChange:I,triggerPointerDownPosRef:ie}=j;y.useEffect(()=>{if(M){let ee={x:0,y:0};const re=Te=>{var we,Se;ee={x:Math.abs(Math.round(Te.pageX)-(((we=ie.current)==null?void 0:we.x)??0)),y:Math.abs(Math.round(Te.pageY)-(((Se=ie.current)==null?void 0:Se.y)??0))}},ue=Te=>{ee.x<=10&&ee.y<=10?Te.preventDefault():M.contains(Te.target)||I(!1),document.removeEventListener("pointermove",re),ie.current=null};return ie.current!==null&&(document.addEventListener("pointermove",re),document.addEventListener("pointerup",ue,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",re),document.removeEventListener("pointerup",ue,{capture:!0})}}},[M,I,ie]),y.useEffect(()=>{const ee=()=>I(!1);return window.addEventListener("blur",ee),window.addEventListener("resize",ee),()=>{window.removeEventListener("blur",ee),window.removeEventListener("resize",ee)}},[I]);const[F,_]=Sb(ee=>{const re=oe().filter(we=>!we.disabled),ue=re.find(we=>we.ref.current===document.activeElement),Te=wb(re,ee,ue);Te&&setTimeout(()=>Te.ref.current.focus())}),X=y.useCallback((ee,re,ue)=>{const Te=!ce.current&&!ue;(j.value!==void 0&&j.value===re||Te)&&(ne(ee),Te&&(ce.current=!0))},[j.value]),K=y.useCallback(()=>M==null?void 0:M.focus(),[M]),J=y.useCallback((ee,re,ue)=>{const Te=!ce.current&&!ue;(j.value!==void 0&&j.value===re||Te)&&ve(ee)},[j.value]),W=i==="popper"?Kd:rb,ae=W===Kd?{side:h,sideOffset:v,align:g,alignOffset:x,arrowPadding:p,collisionBoundary:S,collisionPadding:E,sticky:R,hideWhenDetached:N,avoidCollisions:T}:{};return m.jsx(ab,{scope:o,content:M,viewport:q,onViewportChange:$,itemRefCallback:X,selectedItem:V,onItemLeave:K,itemTextRefCallback:J,focusSelectedItem:G,selectedItemText:de,position:i,isPositioned:se,searchRef:F,children:m.jsx(yf,{as:$R,allowPinchZoom:!0,children:m.jsx(gf,{asChild:!0,trapped:j.open,onMountAutoFocus:ee=>{ee.preventDefault()},onUnmountAutoFocus:Me(u,ee=>{var re;(re=j.trigger)==null||re.focus({preventScroll:!0}),ee.preventDefault()}),children:m.jsx(pf,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:ee=>ee.preventDefault(),onDismiss:()=>j.onOpenChange(!1),children:m.jsx(W,{role:"listbox",id:j.contentId,"data-state":j.open?"open":"closed",dir:j.dir,onContextMenu:ee=>ee.preventDefault(),...C,...ae,onPlaced:()=>le(!0),ref:U,style:{display:"flex",flexDirection:"column",outline:"none",...C.style},onKeyDown:Me(C.onKeyDown,ee=>{const re=ee.ctrlKey||ee.altKey||ee.metaKey;if(ee.key==="Tab"&&ee.preventDefault(),!re&&ee.key.length===1&&_(ee.key),["ArrowUp","ArrowDown","Home","End"].includes(ee.key)){let Te=oe().filter(we=>!we.disabled).map(we=>we.ref.current);if(["ArrowUp","End"].includes(ee.key)&&(Te=Te.slice().reverse()),["ArrowUp","ArrowDown"].includes(ee.key)){const we=ee.target,Se=Te.indexOf(we);Te=Te.slice(Se+1)}setTimeout(()=>O(Te)),ee.preventDefault()}})})})})})})});lb.displayName=YR;var GR="SelectItemAlignedPosition",rb=y.forwardRef((n,l)=>{const{__scopeSelect:o,onPlaced:i,...u}=n,d=tl(Ml,o),f=nl(Ml,o),[h,v]=y.useState(null),[g,x]=y.useState(null),p=Fe(l,U=>x(U)),S=ec(o),E=y.useRef(!1),R=y.useRef(!0),{viewport:N,selectedItem:T,selectedItemText:C,focusSelectedItem:j}=f,M=y.useCallback(()=>{if(d.trigger&&d.valueNode&&h&&g&&N&&T&&C){const U=d.trigger.getBoundingClientRect(),V=g.getBoundingClientRect(),ne=d.valueNode.getBoundingClientRect(),de=C.getBoundingClientRect();if(d.dir!=="rtl"){const we=de.left-V.left,Se=ne.left-we,Je=U.left-Se,$e=U.width+Je,kt=Math.max($e,V.width),be=window.innerWidth-wn,Ge=wv(Se,[wn,Math.max(wn,be-kt)]);h.style.minWidth=$e+"px",h.style.left=Ge+"px"}else{const we=V.right-de.right,Se=window.innerWidth-ne.right-we,Je=window.innerWidth-U.right-Se,$e=U.width+Je,kt=Math.max($e,V.width),be=window.innerWidth-wn,Ge=wv(Se,[wn,Math.max(wn,be-kt)]);h.style.minWidth=$e+"px",h.style.right=Ge+"px"}const ve=S(),oe=window.innerHeight-wn*2,se=N.scrollHeight,le=window.getComputedStyle(g),ce=parseInt(le.borderTopWidth,10),O=parseInt(le.paddingTop,10),G=parseInt(le.borderBottomWidth,10),I=parseInt(le.paddingBottom,10),ie=ce+O+se+I+G,F=Math.min(T.offsetHeight*5,ie),_=window.getComputedStyle(N),X=parseInt(_.paddingTop,10),K=parseInt(_.paddingBottom,10),J=U.top+U.height/2-wn,W=oe-J,ae=T.offsetHeight/2,ee=T.offsetTop+ae,re=ce+O+ee,ue=ie-re;if(re<=J){const we=ve.length>0&&T===ve[ve.length-1].ref.current;h.style.bottom="0px";const Se=g.clientHeight-N.offsetTop-N.offsetHeight,Je=Math.max(W,ae+(we?K:0)+Se+G),$e=re+Je;h.style.height=$e+"px"}else{const we=ve.length>0&&T===ve[0].ref.current;h.style.top="0px";const Je=Math.max(J,ce+N.offsetTop+(we?X:0)+ae)+ue;h.style.height=Je+"px",N.scrollTop=re-J+N.offsetTop}h.style.margin=`${wn}px 0`,h.style.minHeight=F+"px",h.style.maxHeight=oe+"px",i==null||i(),requestAnimationFrame(()=>E.current=!0)}},[S,d.trigger,d.valueNode,h,g,N,T,C,d.dir,i]);Ot(()=>M(),[M]);const[k,q]=y.useState();Ot(()=>{g&&q(window.getComputedStyle(g).zIndex)},[g]);const $=y.useCallback(U=>{U&&R.current===!0&&(M(),j==null||j(),R.current=!1)},[M,j]);return m.jsx(QR,{scope:o,contentWrapper:h,shouldExpandOnScrollRef:E,onScrollButtonChange:$,children:m.jsx("div",{ref:v,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:m.jsx(Ue.div,{...u,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...u.style}})})})});rb.displayName=GR;var XR="SelectPopperPosition",Kd=y.forwardRef((n,l)=>{const{__scopeSelect:o,align:i="start",collisionPadding:u=wn,...d}=n,f=tc(o);return m.jsx(jR,{...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)"}})});Kd.displayName=XR;var[QR,zf]=Ur(Ml,{}),Zd="SelectViewport",ob=y.forwardRef((n,l)=>{const{__scopeSelect:o,nonce:i,...u}=n,d=nl(Zd,o),f=zf(Zd,o),h=Fe(l,d.onViewportChange),v=y.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(Ws.Slot,{scope:o,children:m.jsx(Ue.div,{"data-radix-select-viewport":"",role:"presentation",...u,ref:h,style:{position:"relative",flex:1,overflow:"hidden auto",...u.style},onScroll:Me(u.onScroll,g=>{const x=g.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:S}=f;if(S!=null&&S.current&&p){const E=Math.abs(v.current-x.scrollTop);if(E>0){const R=window.innerHeight-wn*2,N=parseFloat(p.style.minHeight),T=parseFloat(p.style.height),C=Math.max(N,T);if(C<R){const j=C+E,M=Math.min(R,j),k=j-M;p.style.height=M+"px",p.style.bottom==="0px"&&(x.scrollTop=k>0?k:0,p.style.justifyContent="flex-end")}}}v.current=x.scrollTop})})})]})});ob.displayName=Zd;var ib="SelectGroup",[KR,ZR]=Ur(ib),PR=y.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,u=Za();return m.jsx(KR,{scope:o,id:u,children:m.jsx(Ue.div,{role:"group","aria-labelledby":u,...i,ref:l})})});PR.displayName=ib;var sb="SelectLabel",cb=y.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,u=ZR(sb,o);return m.jsx(Ue.div,{id:u.id,...i,ref:l})});cb.displayName=sb;var ks="SelectItem",[IR,ub]=Ur(ks),db=y.forwardRef((n,l)=>{const{__scopeSelect:o,value:i,disabled:u=!1,textValue:d,...f}=n,h=tl(ks,o),v=nl(ks,o),g=h.value===i,[x,p]=y.useState(d??""),[S,E]=y.useState(!1),R=Fe(l,j=>{var M;return(M=v.itemRefCallback)==null?void 0:M.call(v,j,i,u)}),N=Za(),T=y.useRef("touch"),C=()=>{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(IR,{scope:o,value:i,disabled:u,textId:N,isSelected:g,onItemTextChange:y.useCallback(j=>{p(M=>M||((j==null?void 0:j.textContent)??"").trim())},[]),children:m.jsx(Ws.ItemSlot,{scope:o,value:i,disabled:u,textValue:x,children:m.jsx(Ue.div,{role:"option","aria-labelledby":N,"data-highlighted":S?"":void 0,"aria-selected":g&&S,"data-state":g?"checked":"unchecked","aria-disabled":u||void 0,"data-disabled":u?"":void 0,tabIndex:u?void 0:-1,...f,ref:R,onFocus:Me(f.onFocus,()=>E(!0)),onBlur:Me(f.onBlur,()=>E(!1)),onClick:Me(f.onClick,()=>{T.current!=="mouse"&&C()}),onPointerUp:Me(f.onPointerUp,()=>{T.current==="mouse"&&C()}),onPointerDown:Me(f.onPointerDown,j=>{T.current=j.pointerType}),onPointerMove:Me(f.onPointerMove,j=>{var M;T.current=j.pointerType,u?(M=v.onItemLeave)==null||M.call(v):T.current==="mouse"&&j.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Me(f.onPointerLeave,j=>{var M;j.currentTarget===document.activeElement&&((M=v.onItemLeave)==null||M.call(v))}),onKeyDown:Me(f.onKeyDown,j=>{var k;((k=v.searchRef)==null?void 0:k.current)!==""&&j.key===" "||(zR.includes(j.key)&&C(),j.key===" "&&j.preventDefault())})})})})});db.displayName=ks;var Lo="SelectItemText",fb=y.forwardRef((n,l)=>{const{__scopeSelect:o,className:i,style:u,...d}=n,f=tl(Lo,o),h=nl(Lo,o),v=ub(Lo,o),g=HR(Lo,o),[x,p]=y.useState(null),S=Fe(l,C=>p(C),v.onItemTextChange,C=>{var j;return(j=h.itemTextRefCallback)==null?void 0:j.call(h,C,v.value,v.disabled)}),E=x==null?void 0:x.textContent,R=y.useMemo(()=>m.jsx("option",{value:v.value,disabled:v.disabled,children:E},v.value),[v.disabled,v.value,E]),{onNativeOptionAdd:N,onNativeOptionRemove:T}=g;return Ot(()=>(N(R),()=>T(R)),[N,T,R]),m.jsxs(m.Fragment,{children:[m.jsx(Ue.span,{id:v.textId,...d,ref:S}),v.isSelected&&f.valueNode&&!f.valueNodeHasChildren?$o.createPortal(d.children,f.valueNode):null]})});fb.displayName=Lo;var mb="SelectItemIndicator",hb=y.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n;return ub(mb,o).isSelected?m.jsx(Ue.span,{"aria-hidden":!0,...i,ref:l}):null});hb.displayName=mb;var Pd="SelectScrollUpButton",pb=y.forwardRef((n,l)=>{const o=nl(Pd,n.__scopeSelect),i=zf(Pd,n.__scopeSelect),[u,d]=y.useState(!1),f=Fe(l,i.onScrollButtonChange);return Ot(()=>{if(o.viewport&&o.isPositioned){let h=function(){const g=v.scrollTop>0;d(g)};const v=o.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),u?m.jsx(vb,{...n,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=o;h&&v&&(h.scrollTop=h.scrollTop-v.offsetHeight)}}):null});pb.displayName=Pd;var Id="SelectScrollDownButton",gb=y.forwardRef((n,l)=>{const o=nl(Id,n.__scopeSelect),i=zf(Id,n.__scopeSelect),[u,d]=y.useState(!1),f=Fe(l,i.onScrollButtonChange);return Ot(()=>{if(o.viewport&&o.isPositioned){let h=function(){const g=v.scrollHeight-v.clientHeight,x=Math.ceil(v.scrollTop)<g;d(x)};const v=o.viewport;return h(),v.addEventListener("scroll",h),()=>v.removeEventListener("scroll",h)}},[o.viewport,o.isPositioned]),u?m.jsx(vb,{...n,ref:f,onAutoScroll:()=>{const{viewport:h,selectedItem:v}=o;h&&v&&(h.scrollTop=h.scrollTop+v.offsetHeight)}}):null});gb.displayName=Id;var vb=y.forwardRef((n,l)=>{const{__scopeSelect:o,onAutoScroll:i,...u}=n,d=nl("SelectScrollButton",o),f=y.useRef(null),h=ec(o),v=y.useCallback(()=>{f.current!==null&&(window.clearInterval(f.current),f.current=null)},[]);return y.useEffect(()=>()=>v(),[v]),Ot(()=>{var x;const g=h().find(p=>p.ref.current===document.activeElement);(x=g==null?void 0:g.ref.current)==null||x.scrollIntoView({block:"nearest"})},[h]),m.jsx(Ue.div,{"aria-hidden":!0,...u,ref:l,style:{flexShrink:0,...u.style},onPointerDown:Me(u.onPointerDown,()=>{f.current===null&&(f.current=window.setInterval(i,50))}),onPointerMove:Me(u.onPointerMove,()=>{var g;(g=d.onItemLeave)==null||g.call(d),f.current===null&&(f.current=window.setInterval(i,50))}),onPointerLeave:Me(u.onPointerLeave,()=>{v()})})}),FR="SelectSeparator",yb=y.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n;return m.jsx(Ue.div,{"aria-hidden":!0,...i,ref:l})});yb.displayName=FR;var Fd="SelectArrow",JR=y.forwardRef((n,l)=>{const{__scopeSelect:o,...i}=n,u=tc(o),d=tl(Fd,o),f=nl(Fd,o);return d.open&&f.position==="popper"?m.jsx(OR,{...u,...i,ref:l}):null});JR.displayName=Fd;var WR="SelectBubbleInput",bb=y.forwardRef(({__scopeSelect:n,value:l,...o},i)=>{const u=y.useRef(null),d=Fe(i,u),f=Ky(l);return y.useEffect(()=>{const h=u.current;if(!h)return;const v=window.HTMLSelectElement.prototype,x=Object.getOwnPropertyDescriptor(v,"value").set;if(f!==l&&x){const p=new Event("change",{bubbles:!0});x.call(h,l),h.dispatchEvent(p)}},[f,l]),m.jsx(Ue.select,{...o,style:{...Zy,...o.style},ref:d,defaultValue:l})});bb.displayName=WR;function xb(n){return n===""||n===void 0}function Sb(n){const l=Ia(n),o=y.useRef(""),i=y.useRef(0),u=y.useCallback(f=>{const h=o.current+f;l(h),(function v(g){o.current=g,window.clearTimeout(i.current),g!==""&&(i.current=window.setTimeout(()=>v(""),1e3))})(h)},[l]),d=y.useCallback(()=>{o.current="",window.clearTimeout(i.current)},[]);return y.useEffect(()=>()=>window.clearTimeout(i.current),[]),[o,u,d]}function wb(n,l,o){const u=l.length>1&&Array.from(l).every(g=>g===l[0])?l[0]:l,d=o?n.indexOf(o):-1;let f=eA(n,Math.max(d,0));u.length===1&&(f=f.filter(g=>g!==o));const v=f.find(g=>g.textValue.toLowerCase().startsWith(u.toLowerCase()));return v!==o?v:void 0}function eA(n,l){return n.map((o,i)=>n[(l+i)%n.length])}var tA=Py,Eb=Fy,nA=Wy,aA=eb,lA=tb,Nb=nb,rA=ob,Cb=cb,Tb=db,oA=fb,iA=hb,Rb=pb,Ab=gb,_b=yb;const jb=tA,Ob=nA,Lf=y.forwardRef(({className:n,children:l,...o},i)=>m.jsxs(Eb,{ref:i,className:ge("flex h-10 w-full items-center justify-between rounded-[16px] border border-input/85 bg-background/72 px-3 py-2 text-sm shadow-sm ring-offset-background transition-all duration-200 placeholder:text-muted-foreground focus:border-primary/45 focus:bg-background/90 focus:outline-none focus:ring-2 focus:ring-ring/45 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",n),...o,children:[l,m.jsx(aA,{asChild:!0,children:m.jsx(Xs,{className:"h-4 w-4 opacity-50"})})]}));Lf.displayName=Eb.displayName;const Mb=y.forwardRef(({className:n,...l},o)=>m.jsx(Rb,{ref:o,className:ge("flex cursor-default items-center justify-center py-1",n),...l,children:m.jsx(wE,{className:"h-4 w-4"})}));Mb.displayName=Rb.displayName;const Db=y.forwardRef(({className:n,...l},o)=>m.jsx(Ab,{ref:o,className:ge("flex cursor-default items-center justify-center py-1",n),...l,children:m.jsx(Xs,{className:"h-4 w-4"})}));Db.displayName=Ab.displayName;const Uf=y.forwardRef(({className:n,children:l,position:o="popper",...i},u)=>m.jsx(lA,{children:m.jsxs(Nb,{ref:u,className:ge("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-[18px] border border-border/70 bg-popover/96 text-popover-foreground shadow-[0_20px_70px_-36px_rgba(0,0,0,0.45)] backdrop-blur-xl data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",o==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:o,...i,children:[m.jsx(Mb,{}),m.jsx(rA,{className:ge("p-1",o==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:l}),m.jsx(Db,{})]})}));Uf.displayName=Nb.displayName;const sA=y.forwardRef(({className:n,...l},o)=>m.jsx(Cb,{ref:o,className:ge("py-1.5 pl-8 pr-2 text-sm font-semibold",n),...l}));sA.displayName=Cb.displayName;const Cr=y.forwardRef(({className:n,children:l,...o},i)=>m.jsxs(Tb,{ref:i,className:ge("relative flex w-full cursor-default select-none items-center rounded-[12px] py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent/80 focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),...o,children:[m.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:m.jsx(iA,{children:m.jsx(uf,{className:"h-4 w-4"})})}),m.jsx(oA,{children:l})]}));Cr.displayName=Tb.displayName;const cA=y.forwardRef(({className:n,...l},o)=>m.jsx(_b,{ref:o,className:ge("-mx-1 my-1 h-px bg-muted",n),...l}));cA.displayName=_b.displayName;var Ld="rovingFocusGroup.onEntryFocus",uA={bubbles:!1,cancelable:!0},Xo="RovingFocusGroup",[Jd,kb,dA]=Ey(Xo),[fA,zb]=el(Xo,[dA]),[mA,hA]=fA(Xo),Lb=y.forwardRef((n,l)=>m.jsx(Jd.Provider,{scope:n.__scopeRovingFocusGroup,children:m.jsx(Jd.Slot,{scope:n.__scopeRovingFocusGroup,children:m.jsx(pA,{...n,ref:l})})}));Lb.displayName=Xo;var pA=y.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:o,orientation:i,loop:u=!1,dir:d,currentTabStopId:f,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:v,onEntryFocus:g,preventScrollOnEntryFocus:x=!1,...p}=n,S=y.useRef(null),E=Fe(l,S),R=Tf(d),[N,T]=_r({prop:f,defaultProp:h??null,onChange:v,caller:Xo}),[C,j]=y.useState(!1),M=Ia(g),k=kb(o),q=y.useRef(!1),[$,U]=y.useState(0);return y.useEffect(()=>{const V=S.current;if(V)return V.addEventListener(Ld,M),()=>V.removeEventListener(Ld,M)},[M]),m.jsx(mA,{scope:o,orientation:i,dir:R,loop:u,currentTabStopId:N,onItemFocus:y.useCallback(V=>T(V),[T]),onItemShiftTab:y.useCallback(()=>j(!0),[]),onFocusableItemAdd:y.useCallback(()=>U(V=>V+1),[]),onFocusableItemRemove:y.useCallback(()=>U(V=>V-1),[]),children:m.jsx(Ue.div,{tabIndex:C||$===0?-1:0,"data-orientation":i,...p,ref:E,style:{outline:"none",...n.style},onMouseDown:Me(n.onMouseDown,()=>{q.current=!0}),onFocus:Me(n.onFocus,V=>{const ne=!q.current;if(V.target===V.currentTarget&&ne&&!C){const de=new CustomEvent(Ld,uA);if(V.currentTarget.dispatchEvent(de),!de.defaultPrevented){const ve=k().filter(O=>O.focusable),oe=ve.find(O=>O.active),se=ve.find(O=>O.id===N),ce=[oe,se,...ve].filter(Boolean).map(O=>O.ref.current);Hb(ce,x)}}q.current=!1}),onBlur:Me(n.onBlur,()=>j(!1))})})}),Ub="RovingFocusGroupItem",Bb=y.forwardRef((n,l)=>{const{__scopeRovingFocusGroup:o,focusable:i=!0,active:u=!1,tabStopId:d,children:f,...h}=n,v=Za(),g=d||v,x=hA(Ub,o),p=x.currentTabStopId===g,S=kb(o),{onFocusableItemAdd:E,onFocusableItemRemove:R,currentTabStopId:N}=x;return y.useEffect(()=>{if(i)return E(),()=>R()},[i,E,R]),m.jsx(Jd.ItemSlot,{scope:o,id:g,focusable:i,active:u,children:m.jsx(Ue.span,{tabIndex:p?0:-1,"data-orientation":x.orientation,...h,ref:l,onMouseDown:Me(n.onMouseDown,T=>{i?x.onItemFocus(g):T.preventDefault()}),onFocus:Me(n.onFocus,()=>x.onItemFocus(g)),onKeyDown:Me(n.onKeyDown,T=>{if(T.key==="Tab"&&T.shiftKey){x.onItemShiftTab();return}if(T.target!==T.currentTarget)return;const C=yA(T,x.orientation,x.dir);if(C!==void 0){if(T.metaKey||T.ctrlKey||T.altKey||T.shiftKey)return;T.preventDefault();let M=S().filter(k=>k.focusable).map(k=>k.ref.current);if(C==="last")M.reverse();else if(C==="prev"||C==="next"){C==="prev"&&M.reverse();const k=M.indexOf(T.currentTarget);M=x.loop?bA(M,k+1):M.slice(k+1)}setTimeout(()=>Hb(M))}}),children:typeof f=="function"?f({isCurrentTabStop:p,hasTabStop:N!=null}):f})})});Bb.displayName=Ub;var gA={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function vA(n,l){return l!=="rtl"?n:n==="ArrowLeft"?"ArrowRight":n==="ArrowRight"?"ArrowLeft":n}function yA(n,l,o){const i=vA(n.key,o);if(!(l==="vertical"&&["ArrowLeft","ArrowRight"].includes(i))&&!(l==="horizontal"&&["ArrowUp","ArrowDown"].includes(i)))return gA[i]}function Hb(n,l=!1){const o=document.activeElement;for(const i of n)if(i===o||(i.focus({preventScroll:l}),document.activeElement!==o))return}function bA(n,l){return n.map((o,i)=>n[(l+i)%n.length])}var xA=Lb,SA=Bb,nc="Tabs",[wA]=el(nc,[zb]),Vb=zb(),[EA,Bf]=wA(nc),qb=y.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,onValueChange:u,defaultValue:d,orientation:f="horizontal",dir:h,activationMode:v="automatic",...g}=n,x=Tf(h),[p,S]=_r({prop:i,onChange:u,defaultProp:d??"",caller:nc});return m.jsx(EA,{scope:o,baseId:Za(),value:p,onValueChange:S,orientation:f,dir:x,activationMode:v,children:m.jsx(Ue.div,{dir:x,"data-orientation":f,...g,ref:l})})});qb.displayName=nc;var Yb="TabsList",$b=y.forwardRef((n,l)=>{const{__scopeTabs:o,loop:i=!0,...u}=n,d=Bf(Yb,o),f=Vb(o);return m.jsx(xA,{asChild:!0,...f,orientation:d.orientation,dir:d.dir,loop:i,children:m.jsx(Ue.div,{role:"tablist","aria-orientation":d.orientation,...u,ref:l})})});$b.displayName=Yb;var Gb="TabsTrigger",Xb=y.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,disabled:u=!1,...d}=n,f=Bf(Gb,o),h=Vb(o),v=Zb(f.baseId,i),g=Pb(f.baseId,i),x=i===f.value;return m.jsx(SA,{asChild:!0,...h,focusable:!u,active:x,children:m.jsx(Ue.button,{type:"button",role:"tab","aria-selected":x,"aria-controls":g,"data-state":x?"active":"inactive","data-disabled":u?"":void 0,disabled:u,id:v,...d,ref:l,onMouseDown:Me(n.onMouseDown,p=>{!u&&p.button===0&&p.ctrlKey===!1?f.onValueChange(i):p.preventDefault()}),onKeyDown:Me(n.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&f.onValueChange(i)}),onFocus:Me(n.onFocus,()=>{const p=f.activationMode!=="manual";!x&&!u&&p&&f.onValueChange(i)})})})});Xb.displayName=Gb;var Qb="TabsContent",Kb=y.forwardRef((n,l)=>{const{__scopeTabs:o,value:i,forceMount:u,children:d,...f}=n,h=Bf(Qb,o),v=Zb(h.baseId,i),g=Pb(h.baseId,i),x=i===h.value,p=y.useRef(x);return y.useEffect(()=>{const S=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(S)},[]),m.jsx(kr,{present:u||x,children:({present:S})=>m.jsx(Ue.div,{"data-state":x?"active":"inactive","data-orientation":h.orientation,role:"tabpanel","aria-labelledby":v,hidden:!S,id:g,tabIndex:0,...f,ref:l,style:{...n.style,animationDuration:p.current?"0s":void 0},children:S&&d})})});Kb.displayName=Qb;function Zb(n,l){return`${n}-trigger-${l}`}function Pb(n,l){return`${n}-content-${l}`}var NA=qb,Ib=$b,Fb=Xb,Jb=Kb;const CA=NA,Wb=y.forwardRef(({className:n,...l},o)=>m.jsx(Ib,{ref:o,className:ge("inline-flex h-10 items-center justify-center rounded-[18px] bg-muted/72 p-1 text-muted-foreground shadow-inner shadow-background/40",n),...l}));Wb.displayName=Ib.displayName;const Es=y.forwardRef(({className:n,...l},o)=>m.jsx(Fb,{ref:o,className:ge("inline-flex items-center justify-center whitespace-nowrap rounded-[14px] px-3 py-1.5 text-sm font-semibold ring-offset-background transition-all duration-200 hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/60 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-primary/12 data-[state=active]:text-primary data-[state=active]:shadow-[0_10px_28px_-18px_hsl(var(--primary)/0.85)] data-[state=active]:ring-1 data-[state=active]:ring-primary/22",n),...l}));Es.displayName=Fb.displayName;const Ns=y.forwardRef(({className:n,...l},o)=>m.jsx(Jb,{ref:o,className:ge("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}));Ns.displayName=Jb.displayName;var ex="AlertDialog",[TA]=el(ex,[W0]),ya=W0(),tx=n=>{const{__scopeAlertDialog:l,...o}=n,i=ya(l);return m.jsx(py,{...i,...o,modal:!0})};tx.displayName=ex;var RA="AlertDialogTrigger",nx=y.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ya(o);return m.jsx(gy,{...u,...i,ref:l})});nx.displayName=RA;var AA="AlertDialogPortal",ax=n=>{const{__scopeAlertDialog:l,...o}=n,i=ya(l);return m.jsx(vy,{...i,...o})};ax.displayName=AA;var _A="AlertDialogOverlay",lx=y.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ya(o);return m.jsx(wf,{...u,...i,ref:l})});lx.displayName=_A;var Ar="AlertDialogContent",[jA,OA]=TA(Ar),MA=XC("AlertDialogContent"),rx=y.forwardRef((n,l)=>{const{__scopeAlertDialog:o,children:i,...u}=n,d=ya(o),f=y.useRef(null),h=Fe(l,f),v=y.useRef(null);return m.jsx(i5,{contentName:Ar,titleName:ox,docsSlug:"alert-dialog",children:m.jsx(jA,{scope:o,cancelRef:v,children:m.jsxs(Ef,{role:"alertdialog",...d,...u,ref:h,onOpenAutoFocus:Me(u.onOpenAutoFocus,g=>{var x;g.preventDefault(),(x=v.current)==null||x.focus({preventScroll:!0})}),onPointerDownOutside:g=>g.preventDefault(),onInteractOutside:g=>g.preventDefault(),children:[m.jsx(MA,{children:i}),m.jsx(kA,{contentRef:f})]})})})});rx.displayName=Ar;var ox="AlertDialogTitle",ix=y.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ya(o);return m.jsx(Nf,{...u,...i,ref:l})});ix.displayName=ox;var sx="AlertDialogDescription",cx=y.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ya(o);return m.jsx(Cf,{...u,...i,ref:l})});cx.displayName=sx;var DA="AlertDialogAction",ux=y.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,u=ya(o);return m.jsx(Zs,{...u,...i,ref:l})});ux.displayName=DA;var dx="AlertDialogCancel",fx=y.forwardRef((n,l)=>{const{__scopeAlertDialog:o,...i}=n,{cancelRef:u}=OA(dx,o),d=ya(o),f=Fe(l,u);return m.jsx(Zs,{...d,...i,ref:f})});fx.displayName=dx;var kA=({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 \`${sx}\` 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 y.useEffect(()=>{var i;document.getElementById((i=n.current)==null?void 0:i.getAttribute("aria-describedby"))||console.warn(l)},[l,n]),null},zA=tx,LA=nx,UA=ax,mx=lx,hx=rx,px=ux,gx=fx,vx=ix,yx=cx;const Wd=zA,ef=LA,BA=UA,bx=y.forwardRef(({className:n,...l},o)=>m.jsx(mx,{className:ge("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}));bx.displayName=mx.displayName;const zs=y.forwardRef(({className:n,...l},o)=>m.jsxs(BA,{children:[m.jsx(bx,{}),m.jsx(hx,{ref:o,className:ge("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 rounded-[22px] border bg-background p-6 shadow-[0_34px_110px_-54px_rgba(0,0,0,0.55)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%]",n),...l})]}));zs.displayName=hx.displayName;const Ls=({className:n,...l})=>m.jsx("div",{className:ge("flex flex-col space-y-2 text-center sm:text-left",n),...l});Ls.displayName="AlertDialogHeader";const Us=({className:n,...l})=>m.jsx("div",{className:ge("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",n),...l});Us.displayName="AlertDialogFooter";const Bs=y.forwardRef(({className:n,...l},o)=>m.jsx(vx,{ref:o,className:ge("text-lg font-semibold",n),...l}));Bs.displayName=vx.displayName;const Hs=y.forwardRef(({className:n,...l},o)=>m.jsx(yx,{ref:o,className:ge("text-sm text-muted-foreground",n),...l}));Hs.displayName=yx.displayName;const Vs=y.forwardRef(({className:n,...l},o)=>m.jsx(px,{ref:o,className:ge(hf(),n),...l}));Vs.displayName=px.displayName;const qs=y.forwardRef(({className:n,...l},o)=>m.jsx(gx,{ref:o,className:ge(hf({variant:"outline"}),"mt-2 sm:mt-0",n),...l}));qs.displayName=gx.displayName;var ac="Checkbox",[HA]=el(ac),[VA,Hf]=HA(ac);function qA(n){const{__scopeCheckbox:l,checked:o,children:i,defaultChecked:u,disabled:d,form:f,name:h,onCheckedChange:v,required:g,value:x="on",internal_do_not_use_render:p}=n,[S,E]=_r({prop:o,defaultProp:u??!1,onChange:v,caller:ac}),[R,N]=y.useState(null),[T,C]=y.useState(null),j=y.useRef(!1),M=R?!!f||!!R.closest("form"):!0,k={checked:S,disabled:d,setChecked:E,control:R,setControl:N,name:h,form:f,value:x,hasConsumerStoppedPropagationRef:j,required:g,defaultChecked:Pa(u)?!1:u,isFormControl:M,bubbleInput:T,setBubbleInput:C};return m.jsx(VA,{scope:l,...k,children:YA(p)?p(k):i})}var xx="CheckboxTrigger",Sx=y.forwardRef(({__scopeCheckbox:n,onKeyDown:l,onClick:o,...i},u)=>{const{control:d,value:f,disabled:h,checked:v,required:g,setControl:x,setChecked:p,hasConsumerStoppedPropagationRef:S,isFormControl:E,bubbleInput:R}=Hf(xx,n),N=Fe(u,x),T=y.useRef(v);return y.useEffect(()=>{const C=d==null?void 0:d.form;if(C){const j=()=>p(T.current);return C.addEventListener("reset",j),()=>C.removeEventListener("reset",j)}},[d,p]),m.jsx(Ue.button,{type:"button",role:"checkbox","aria-checked":Pa(v)?"mixed":v,"aria-required":g,"data-state":Tx(v),"data-disabled":h?"":void 0,disabled:h,value:f,...i,ref:N,onKeyDown:Me(l,C=>{C.key==="Enter"&&C.preventDefault()}),onClick:Me(o,C=>{p(j=>Pa(j)?!0:!j),R&&E&&(S.current=C.isPropagationStopped(),S.current||C.stopPropagation())})})});Sx.displayName=xx;var Vf=y.forwardRef((n,l)=>{const{__scopeCheckbox:o,name:i,checked:u,defaultChecked:d,required:f,disabled:h,value:v,onCheckedChange:g,form:x,...p}=n;return m.jsx(qA,{__scopeCheckbox:o,checked:u,defaultChecked:d,disabled:h,required:f,onCheckedChange:g,name:i,form:x,value:v,internal_do_not_use_render:({isFormControl:S})=>m.jsxs(m.Fragment,{children:[m.jsx(Sx,{...p,ref:l,__scopeCheckbox:o}),S&&m.jsx(Cx,{__scopeCheckbox:o})]})})});Vf.displayName=ac;var wx="CheckboxIndicator",Ex=y.forwardRef((n,l)=>{const{__scopeCheckbox:o,forceMount:i,...u}=n,d=Hf(wx,o);return m.jsx(kr,{present:i||Pa(d.checked)||d.checked===!0,children:m.jsx(Ue.span,{"data-state":Tx(d.checked),"data-disabled":d.disabled?"":void 0,...u,ref:l,style:{pointerEvents:"none",...n.style}})})});Ex.displayName=wx;var Nx="CheckboxBubbleInput",Cx=y.forwardRef(({__scopeCheckbox:n,...l},o)=>{const{control:i,hasConsumerStoppedPropagationRef:u,checked:d,defaultChecked:f,required:h,disabled:v,name:g,value:x,form:p,bubbleInput:S,setBubbleInput:E}=Hf(Nx,n),R=Fe(o,E),N=Ky(d),T=Ly(i);y.useEffect(()=>{const j=S;if(!j)return;const M=window.HTMLInputElement.prototype,q=Object.getOwnPropertyDescriptor(M,"checked").set,$=!u.current;if(N!==d&&q){const U=new Event("click",{bubbles:$});j.indeterminate=Pa(d),q.call(j,Pa(d)?!1:d),j.dispatchEvent(U)}},[S,N,d,u]);const C=y.useRef(Pa(d)?!1:d);return m.jsx(Ue.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??C.current,required:h,disabled:v,name:g,value:x,form:p,...l,tabIndex:-1,ref:R,style:{...l.style,...T,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Cx.displayName=Nx;function YA(n){return typeof n=="function"}function Pa(n){return n==="indeterminate"}function Tx(n){return Pa(n)?"indeterminate":n?"checked":"unchecked"}const Rx=y.forwardRef(({className:n,...l},o)=>m.jsx(Vf,{ref:o,className:ge("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(Ex,{className:ge("flex items-center justify-center text-current"),children:m.jsx(uf,{className:"h-3.5 w-3.5"})})}));Rx.displayName=Vf.displayName;const Ax=y.forwardRef(({className:n,type:l,...o},i)=>m.jsx("input",{type:l,className:ge("flex h-10 w-full rounded-[16px] border border-input/85 bg-background/72 px-3 py-2 text-sm shadow-sm ring-offset-background transition-all duration-200 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground/75 focus-visible:border-primary/45 focus-visible:bg-background/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring/45 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",n),ref:i,...o}));Ax.displayName="Input";const kv=["queued","running"];function $A(n){return n.map(l=>`${l.id}:${l.name}`).join("\0")}function GA(n){return n==="claude"||n==="codex"}function _x(n){var o;if(n.kind!=="agent.upgrade")return null;const l=(o=n.payload)==null?void 0:o.agent;return GA(l)?`${n.nodeId}:${l}`:null}function XA(n){return n.status==="succeeded"||n.status==="failed"}async function jx(n,l={}){const o=l.getOperation??Vw,i=l.pollIntervalMs??2e3,u=l.timeoutMs??24e4,d=Date.now()+u;let f=n;for(;!XA(f)&&Date.now()<d;)await KA(i),f=await o(n.id);return f}async function QA(n,l=qw){const o=new Set(n),i=await Promise.all(kv.map(d=>l({kind:"agent.upgrade",status:d}))),u=new Map;for(const d of i.flat()){if(!kv.includes(d.status)||o.size>0&&!o.has(d.nodeId))continue;const f=_x(d);if(!f)continue;const h=u.get(f);(!h||d.updatedAt>h.updatedAt)&&u.set(f,d)}return u}function KA(n){return new Promise(l=>setTimeout(l,n))}function ZA(n,l=!0){return l?(n==null?void 0:n.restartMode)==="development"?"Restart dev runtime":n!=null&&n.updateAvailable?"Update & restart":"Restart runtime":n!=null&&n.updateAvailable?"Update & restart follower":"Restart follower"}function PA({checkedLabel:n,disableAuthDefault:l,endpoint:o,isLiveLocalNode:i,nodeId:u,nodeName:d,pid:f,transportType:h,update:v,workDir:g}){const x=ZA(v,i),[p,S]=y.useState(null),[E,R]=y.useState(()=>zv({disableAuthDefault:l,endpoint:o,nodeName:d,transportType:h,workDir:g})),[N,T]=y.useState(!1),[C,j]=y.useState(!1),[M,k]=y.useState(!1);y.useEffect(()=>{R(zv({disableAuthDefault:l,endpoint:o,nodeName:d,transportType:h,workDir:g}))},[l,o,d,h,g]);async function q(){if(!u||N||C)return;const ne=v.updateAvailable?"update":"restart",de=JA(E);if(E.port.trim()&&(de==null?void 0:de.port)===void 0){wt.error("Runtime restart port must be a positive integer");return}const ve=de?{reason:ne,startArgs:de}:{reason:ne};T(!0);try{if(i){const ce=await Uw(ve);S({...ce,pid:ce.pid??f,status:"accepted"}),wt.info(`Restarting ${d} from a detached helper. PID ${ce.pid??f??"unknown"} will not stay attached to the original terminal window; follow ${ce.logPath} for launch output.`);return}const oe=await $w(u,ve);S({operationId:oe.id,pid:f,status:oe.status}),wt.info(`Restart requested on ${d}. Operation ${Ud(oe.id)} will hand off to a detached process, so the new runtime will not stay attached to the original terminal window.`);const se=await jx(oe,{timeoutMs:6e4}),le=FA(se);S({command:le==null?void 0:le.command,logPath:le==null?void 0:le.logPath,mode:le==null?void 0:le.mode,operationId:se.id,pid:(le==null?void 0:le.pid)??f,status:se.status}),se.status==="succeeded"?wt.success(`Restart handoff accepted on ${d}. Follow ${(le==null?void 0:le.logPath)??"the node restart log"} for launch output.`):se.status==="failed"?wt.error(se.error??`Restart failed on ${d}`):wt.info(`Restart operation ${Ud(se.id)} is still ${se.status}. More details will update after the node reports back.`),T(!1)}catch(oe){T(!1),wt.error(oe instanceof Error?oe.message:"Runtime restart failed")}}async function $(){if(!(!i||N||C)){j(!0);try{const ne=await Bw();wt.info(`Stopping Meshy process ${ne.pid}`)}catch(ne){j(!1),wt.error(ne instanceof Error?ne.message:"Runtime stop failed")}}}const U=N?"restarting":C?"stopping":(p==null?void 0:p.status)??"idle",V=v.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(Ts,{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:V?"Development launcher":`Latest ${v.latestVersion??"—"}`})]})]}),m.jsx("div",{className:"flex items-center gap-1.5",children:m.jsx(yt,{variant:v.updateAvailable?"default":"outline",className:"rounded-full border-border/70 bg-background/60 font-mono text-[10px] px-2 py-0.5",children:V?"dev":v.updateAvailable?`→ ${v.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:f??"—"})]}),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:U})]})]}),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(Wd,{children:[m.jsx(ef,{asChild:!0,children:m.jsxs(Gn,{type:"button",size:"sm",variant:"ghost",disabled:N||C,className:"h-7 rounded-lg px-2 text-[11px] text-muted-foreground hover:text-destructive hover:bg-destructive/10",children:[m.jsx($E,{className:ge("mr-1 h-3.5 w-3.5",C&&"animate-pulse")}),C?"Stopping":"Stop"]})}),m.jsxs(zs,{className:"max-w-[22rem] rounded-xl gap-2 p-4",children:[m.jsxs(Ls,{className:"space-y-1",children:[m.jsx(Bs,{className:"text-sm",children:"Stop runtime?"}),m.jsx(Hs,{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(Us,{className:"gap-1 pt-0 sm:space-x-1",children:[m.jsx(qs,{className:"h-7 rounded-lg px-2 text-[11px]",children:"Cancel"}),m.jsx(Vs,{className:"h-7 rounded-lg px-2 text-[11px] bg-destructive text-destructive-foreground hover:bg-destructive/90",onClick:()=>void $(),children:"Stop runtime"})]})]})]}),m.jsxs(Wd,{children:[m.jsx(ef,{asChild:!0,children:m.jsxs(Gn,{type:"button",size:"sm",variant:v.updateAvailable?"default":"outline",disabled:!u||N||C,className:"h-7 rounded-lg px-2 text-[11px]",children:[m.jsx(QE,{className:ge("mr-1 h-3.5 w-3.5",N&&"animate-spin")}),N?"Restarting…":x]})}),m.jsxs(zs,{className:"max-w-[28rem] gap-3 rounded-xl p-4",children:[m.jsxs(Ls,{className:"space-y-1",children:[m.jsxs(Bs,{className:"text-sm",children:[x,"?"]}),m.jsxs(Hs,{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(IA,{value:E,onChange:R}),m.jsxs(Us,{className:"gap-1 pt-0 sm:space-x-1",children:[m.jsx(qs,{className:"h-7 rounded-lg px-2 text-[11px]",children:"Cancel"}),m.jsx(Vs,{className:"h-7 rounded-lg px-2 text-[11px]",onClick:()=>void q(),children:x})]})]})]})]})]}),m.jsxs("div",{className:"border-t border-border/50",children:[m.jsxs("button",{type:"button",onClick:()=>k(ne=>!ne),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(v0,{className:"h-3 w-3"}),"Restart details"]}),m.jsx(Xs,{className:ge("h-3 w-3 transition-transform duration-150",M&&"rotate-180")})]}),M&&m.jsxs("div",{className:"border-t border-border/50 bg-muted/20 px-3 py-2 space-y-1",children:[m.jsx(Rl,{label:"Current PID",value:f===void 0?"—":String(f),mono:f!==void 0}),m.jsx(Rl,{label:"Restart PID",value:(p==null?void 0:p.pid)===void 0?"Pending":String(p.pid),mono:(p==null?void 0:p.pid)!==void 0}),m.jsx(Rl,{label:"Operation",value:p!=null&&p.operationId?Ud(p.operationId):"Local direct request",mono:!!(p!=null&&p.operationId)}),m.jsx(Rl,{label:"Status",value:(p==null?void 0:p.status)??(N?"requested":"idle")}),m.jsx(Rl,{label:"Launcher",value:(p==null?void 0:p.command)??"Available after restart",mono:!!(p!=null&&p.command)}),m.jsx(Rl,{label:"Log",value:(p==null?void 0:p.logPath)??"Available after restart",mono:!!(p!=null&&p.logPath)}),m.jsx(Rl,{label:"Terminal",value:"New process is detached from original terminal"})]})]}),v.detail&&m.jsx("div",{className:"border-t border-border/50 px-3 py-1.5 text-[10px] text-muted-foreground bg-muted/20",children:v.detail})]})}function IA({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(ko,{label:"HTTP port",value:l.port,onChange:i=>o("port",i),inputMode:"numeric"}),m.jsx(ko,{label:"Node name",value:l.name,onChange:i=>o("name",i)}),m.jsx(ko,{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(jb,{value:l.transport,onValueChange:i=>o("transport",Ox(i)),children:[m.jsx(Lf,{className:"h-7 rounded-md border-border/70 bg-background/70 px-2 text-[10px]",children:m.jsx(Ob,{placeholder:"Transport"})}),m.jsxs(Uf,{children:[m.jsx(Cr,{className:"py-1 text-[11px]",value:"inherit",children:"current / default"}),m.jsx(Cr,{className:"py-1 text-[11px]",value:"direct",children:"direct"}),m.jsx(Cr,{className:"py-1 text-[11px]",value:"devtunnel",children:"devtunnel"}),m.jsx(Cr,{className:"py-1 text-[11px]",value:"tailscale",children:"tailscale"})]})]})]}),m.jsx(ko,{label:"Working directory",value:l.workDir,onChange:i=>o("workDir",i)}),m.jsx(ko,{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(Rx,{className:"h-3.5 w-3.5",checked:l.disableAuth,onCheckedChange:i=>n({...l,disableAuth:i===!0,disableAuthKnown:!0})}),"Disable auth"]})]})]})}function ko({className:n,inputMode:l,label:o,onChange:i,value:u}){return m.jsxs("label",{className:ge("space-y-1",n),children:[m.jsx("span",{className:"text-[9px] uppercase tracking-[0.14em] text-muted-foreground",children:o}),m.jsx(Ax,{className:"h-7 rounded-md px-2 text-[10px]",inputMode:l,value:u,onChange:d=>i(d.target.value)})]})}function Rl({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:ge("break-all text-right text-foreground",o&&"font-mono"),children:l})]})}function FA(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 zv(n){return{port:WA(n.endpoint),name:n.nodeName,join:"",transport:Ox(n.transportType),workDir:n.workDir??"",config:"",disableAuth:n.disableAuthDefault===!0,disableAuthKnown:n.disableAuthDefault!==void 0}}function JA(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 Ox(n){return n==="direct"||n==="devtunnel"||n==="tailscale"?n:"inherit"}function WA(n){if(!n)return"";try{return new URL(n).port||""}catch{return""}}function Ud(n){return n.length<=8?n:n.slice(0,8)}function vs({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(yt,{variant:o.authenticated?"default":"outline",className:"rounded-full text-[10px] uppercase tracking-[0.14em]",children:o.authenticated?"auth ok":"auth required"}),m.jsx(yt,{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 pn(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 Lv(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 Uo(n){return n==="ok"?"default":n==="missing"||n==="install-failed"||n==="login-failed"?"destructive":n==="not-authenticated"||n==="unsupported-platform"?"outline":"secondary"}function t_(n){return n.available?m.jsxs(yt,{className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[m.jsx(zo,{className:"h-3 w-3"}),"Available"]}):m.jsxs(yt,{variant:"destructive",className:"gap-1 rounded-full px-2 py-0.5 text-[10px]",children:[m.jsx(RE,{className:"h-3 w-3"}),"Unavailable"]})}function n_(n){return n.update?n.update.updateAvailable?m.jsxs(yt,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Update ",n.update.latestVersion]}):m.jsx(yt,{variant:"secondary",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:"Up to date"}):null}function a_(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 l_(n){if(n.error)return n.error;const l=n.result;return(l==null?void 0:l.detail)??null}function Le({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:ge("break-all text-right text-[11px] text-foreground",o&&"font-mono text-[11px]"),children:l})]})}function r_({agent:n,nodeName:l,activeOperation:o,onUpgrade:i}){var h,v;const u=((h=n.update)==null?void 0:h.updateAvailable)===!0,d=n_(n),f=!!o;return m.jsxs("div",{className:"rounded-lg border border-border/60 bg-background/70 p-2.5 shadow-sm",children:[m.jsxs("div",{className:"flex items-start justify-between gap-2",children:[m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-1.5 text-[12px] font-semibold text-foreground",children:[m.jsx(f0,{className:"h-3.5 w-3.5 text-primary"}),n.label]}),m.jsxs("div",{className:"mt-0.5 text-[10px] text-muted-foreground",children:["Command: ",m.jsx("span",{className:"font-mono text-[10px]",children:n.command})]})]}),m.jsxs("div",{className:"flex flex-col items-end gap-1",children:[t_(n),o?m.jsxs(yt,{variant:"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.14em]",children:["Upgrade ",o.status]}):u?m.jsxs(Wd,{children:[m.jsx(ef,{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(zs,{children:[m.jsxs(Ls,{children:[m.jsxs(Bs,{children:["Upgrade ",n.label,"?"]}),m.jsxs(Hs,{children:["This runs ",a_(n)," on ",l,". Remote nodes execute the command on the remote machine."]})]}),m.jsxs(Us,{children:[m.jsx(qs,{children:"Cancel"}),m.jsx(Vs,{onClick:()=>i(n),children:"Upgrade"})]})]})]}):d]})]}),m.jsxs("div",{className:"mt-2 space-y-1 text-[11px]",children:[m.jsx(Le,{label:"Version",value:n.version??"Unavailable",mono:!!n.version}),n.update&&m.jsx(Le,{label:"Latest",value:n.update.latestVersion??"Unavailable",mono:!!n.update.latestVersion}),m.jsx(Le,{label:"Path",value:n.path??"Not on PATH",mono:!!n.path}),m.jsx(Le,{label:"Checked",value:pn(n.checkedAt)}),n.update&&m.jsx(Le,{label:"Update check",value:pn(n.update.checkedAt)})]}),((v=n.update)==null?void 0:v.detail)&&m.jsx("div",{className:"mt-1.5 rounded-md border border-border/60 bg-muted/40 px-2 py-1 text-[10px] text-muted-foreground",children:n.update.detail}),n.metadataStatus&&m.jsxs("div",{className:"mt-1.5 flex items-center gap-1.5 text-[11px] text-muted-foreground",children:[m.jsx(yt,{variant:Uo(n.metadataStatus),className:"rounded-full px-2 py-0 text-[10px] uppercase tracking-[0.14em]",children:n.metadataStatus}),m.jsx("span",{children:"Startup preflight"})]}),n.detail&&m.jsx("div",{className:"mt-1.5 rounded-md border border-border/60 bg-muted/40 px-2 py-1 text-[10px] text-muted-foreground",children:n.detail})]})}function o_(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 i_(n,l){var o;return(o=n==null?void 0:n.nodes)!=null&&o.length?n.nodes:l?[l]:[]}function s_(n,l){var i;if(l&&n.id===l.nodeId)return l;const o=n.settingsSnapshot;return{...n,nodeId:n.id,version:(o==null?void 0:o.version)??"Unavailable",packageName:o==null?void 0:o.packageName,uptime:(o==null?void 0:o.uptime)??0,localDashboardOrigin:((i=o==null?void 0:o.runtime)==null?void 0:i.localDashboardOrigin)??void 0,auth:o==null?void 0:o.auth,os:o==null?void 0:o.os,runtime:o==null?void 0:o.runtime,runtimeUpdate:o==null?void 0:o.runtimeUpdate,agents:o==null?void 0:o.agents,startupRequirements:o==null?void 0:o.startupRequirements,components:o==null?void 0:o.components,repository:o==null?void 0:o.repository,packages:o==null?void 0:o.packages}}function c_(n,l){return n.id===l?`${n.name} (this node)`:`${n.name} (${n.role})`}function u_(n){return n==="claude"?"Claude Code":"Codex"}function d_(n){var o;const l=(o=n.payload)==null?void 0:o.agent;return l==="claude"||l==="codex"?l:null}function f_({cluster:n,systemInfo:l,sseConnected:o,onRefresh:i}){var ne,de,ve,oe,se,le,ce,O,G,I,ie,F,_,X,K,J,W,ae,ee,re,ue,Te,we,Se,Je,$e,kt;const u=y.useMemo(()=>i_(n,l),[n,l]),[d,f]=y.useState(()=>{var be;return(l==null?void 0:l.nodeId)??((be=n==null?void 0:n.self)==null?void 0:be.id)??""}),[h,v]=y.useState(()=>new Map),g=y.useRef(new Set),x=y.useRef(new Set),p=(n==null?void 0:n.self)??l??u[0]??null,S=u.find(be=>be.id===d)??p,E=S?s_(S,l):null,R=!!(l&&S&&S.id===l.nodeId),N=R||!!(S!=null&&S.settingsSnapshot),T=y.useMemo(()=>o_(E==null?void 0:E.packages),[E==null?void 0:E.packages]),C=E==null?void 0:E.runtimeUpdate,j=((ne=E==null?void 0:E.startupRequirements)==null?void 0:ne.components)??(E==null?void 0:E.components)??{},M=y.useMemo(()=>u.map(be=>be.id),[u]),k=M.join("\0"),q=$A(u),$=y.useMemo(()=>new Map(u.map(be=>[be.id,be.name])),[q]),U=y.useCallback(async(be,Ge)=>{const it=_x(be);if(!it||g.current.has(be.id))return;const We=d_(be),Kt=(Ge==null?void 0:Ge.agentLabel)??(We?u_(We):"Agent"),Rn=(Ge==null?void 0:Ge.nodeName)??$.get(be.nodeId)??be.nodeId;g.current.add(be.id),v(Be=>new Map(Be).set(it,be));try{const Be=await jx(be);if(Be.status==="succeeded")await(i==null?void 0:i()),x.current.has(Be.id)||(wt.success(`${Kt} upgrade finished on ${Rn}`),x.current.add(Be.id));else if(Be.status==="failed")x.current.has(Be.id)||(wt.error(l_(Be)??`${Kt} upgrade failed`),x.current.add(Be.id));else{v(zt=>new Map(zt).set(it,Be)),wt.info(`${Kt} upgrade is still ${Be.status} on ${Rn}`);return}v(zt=>{const rt=new Map(zt),Kn=rt.get(it);return(!Kn||Kn.id===Be.id)&&rt.delete(it),rt})}catch(Be){v(zt=>{const rt=new Map(zt),Kn=rt.get(it);return(!Kn||Kn.id===be.id)&&rt.delete(it),rt}),wt.error(Be instanceof Error?Be.message:`${Kt} upgrade failed`)}finally{g.current.delete(be.id)}},[i,$]);y.useEffect(()=>{if(M.length===0)return;let be=!1;async function Ge(){let it;try{it=await QA(M)}catch{return}if(!be){v(We=>{const Kt=new Map(We);for(const[Rn,Be]of it)Kt.set(Rn,Be);return Kt});for(const We of it.values())U(We)}}return Ge(),()=>{be=!0}},[U,k]);async function V(be){if(S)try{const Ge=await Yw(S.id,be.id);wt.info(`${be.label} upgrade started on ${S.name}`),await U(Ge,{agentLabel:be.label,nodeName:S.name})}catch(Ge){wt.error(Ge instanceof Error?Ge.message:`${be.label} upgrade failed`)}}return!S||!E?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-4",children:[m.jsx("section",{className:"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: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(L0,{status:S.status}),m.jsx("span",{className:"font-medium text-foreground",children:S.name})]}),m.jsx(FN,{role:S.role}),m.jsx(yt,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:S.transportType??E.transportType??"direct"}),m.jsx(yt,{variant:R?"default":"outline",className:"rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:R?"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-1 max-w-2xl text-[11px] text-muted-foreground",children:"Inspect the selected node's runtime environment, connectivity surface, and packaged build metadata from one place."})]}),u.length>1&&m.jsxs("div",{className:"max-w-md space-y-1.5",children:[m.jsx("div",{className:"text-[10px] uppercase tracking-[0.18em] text-muted-foreground",children:"Inspect node"}),m.jsxs(jb,{value:S.id,onValueChange:f,children:[m.jsx(Lf,{className:"h-7 rounded-lg border-border/70 bg-background/70 text-[11px]",children:m.jsx(Ob,{placeholder:"Choose a node"})}),m.jsx(Uf,{children:u.map(be=>m.jsx(Cr,{value:be.id,children:c_(be,l==null?void 0:l.nodeId)},be.id))})]})]})]}),m.jsxs("div",{className:"flex flex-wrap items-center gap-1",children:[m.jsxs(yt,{variant:o?"default":"outline",className:"gap-1 rounded-full px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:[m.jsx(p0,{className:"h-3 w-3"}),o?"Live link connected":"Live link reconnecting"]}),m.jsxs(yt,{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_(E.uptime)]}),!R&&m.jsxs(yt,{variant:"outline",className:"rounded-full border-border/70 bg-background/60 px-2 py-0.5 text-[10px] uppercase tracking-[0.16em]",children:["Updated ",pn((de=S.settingsSnapshot)==null?void 0:de.collectedAt)]})]})]})}),!N&&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(CA,{defaultValue:"session",className:"space-y-2",children:[m.jsxs(Wb,{className:"h-auto flex-wrap rounded-xl border border-border/60 bg-muted/40 p-0.5",children:[m.jsx(Es,{value:"session",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Session"}),m.jsx(Es,{value:"access",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"Access"}),m.jsx(Es,{value:"about",className:"rounded-md px-2.5 py-0.5 text-[11px]",children:"About"})]}),m.jsxs(Ns,{value:"session",className:"mt-0 grid gap-2 xl:grid-cols-[1.15fr_0.85fr]",children:[m.jsxs(zn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(Ln,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Un,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(ZE,{className:"h-3.5 w-3.5 text-primary"}),"Selected node"]}),m.jsx(Bn,{className:"text-[10px]",children:"Cluster role, identity, and node-scoped runtime state."})]}),m.jsxs(Hn,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Le,{label:"Node ID",value:E.nodeId,mono:!0}),m.jsx(Le,{label:"Status",value:S.status}),m.jsx(Le,{label:"Role",value:S.role}),m.jsx(Le,{label:"Endpoint",value:S.endpoint,mono:!0}),m.jsx(Le,{label:"Joined",value:pn(S.joinedAt)}),m.jsx(Le,{label:"Heartbeat",value:pn(S.lastHeartbeat)}),m.jsx(Le,{label:"Capabilities",value:S.capabilities.length>0?S.capabilities.join(", "):"None"})]})]}),m.jsxs(zn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(Ln,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Un,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(OE,{className:"h-3.5 w-3.5 text-primary"}),"OS info"]}),m.jsx(Bn,{className:"text-[10px]",children:"Host and resource details reported by the current process."})]}),m.jsxs(Hn,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Le,{label:"Host",value:((ve=E.os)==null?void 0:ve.hostname)??"Unavailable"}),m.jsx(Le,{label:"Platform",value:E.os?`${E.os.platform} ${E.os.release}`:"Unavailable"}),m.jsx(Le,{label:"Arch",value:((oe=E.os)==null?void 0:oe.arch)??"Unavailable"}),m.jsx(Le,{label:"CPU",value:((se=E.os)==null?void 0:se.cpuModel)??"Unavailable"}),m.jsx(Le,{label:"Cores",value:String(((le=E.os)==null?void 0:le.cpuCount)??"Unavailable")}),m.jsx(Le,{label:"Memory",value:E.os?`${Lv(E.os.freeMemoryBytes)} free / ${Lv(E.os.totalMemoryBytes)} total`:"Unavailable"})]})]}),m.jsxs(zn,{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(Ln,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Un,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(f0,{className:"h-3.5 w-3.5 text-primary"}),"Available agents"]}),m.jsx(Bn,{className:"text-[10px]",children:R?"Live command availability for Codex and Claude Code on this node.":"Most recent agent availability snapshot synced from this node."})]}),m.jsx(Hn,{className:"grid gap-2 px-3 pb-2.5 md:grid-cols-2",children:(E.agents??[]).map(be=>m.jsx(r_,{agent:be,nodeName:S.name,activeOperation:h.get(`${S.id}:${be.id}`),onUpgrade:V},be.id))})]})]}),m.jsxs(Ns,{value:"access",className:"mt-0 grid gap-2 xl:grid-cols-2",children:[m.jsxs(zn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(Ln,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Un,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(gE,{className:"h-3.5 w-3.5 text-primary"}),"Access surface"]}),m.jsx(Bn,{className:"text-[10px]",children:"How this node is exposed to the dashboard and other peers."})]}),m.jsxs(Hn,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Le,{label:"Transport",value:S.transportType??E.transportType??"direct"}),m.jsx(Le,{label:"Node URL",value:S.endpoint,mono:!0}),m.jsx(Le,{label:"Node tunnel",value:S.devtunnelEndpoint??"Disabled",mono:!!S.devtunnelEndpoint}),m.jsx(Le,{label:"Dashboard URL",value:S.dashboardOrigin??E.localDashboardOrigin??"Unavailable",mono:!!(S.dashboardOrigin||E.localDashboardOrigin)}),m.jsx(Le,{label:"Local dashboard",value:E.localDashboardOrigin??"Unavailable",mono:!!E.localDashboardOrigin})]})]}),m.jsxs(zn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(Ln,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Un,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(JE,{className:"h-3.5 w-3.5 text-primary"}),"Auth"]}),m.jsx(Bn,{className:"text-[10px]",children:"Current bearer-auth and trusted access posture."})]}),m.jsxs(Hn,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Le,{label:"Enabled",value:(ce=E.auth)!=null&&ce.enabled?"Yes":"No"}),m.jsx(Le,{label:"Same tenant",value:(O=E.auth)!=null&&O.allowSameTenant?"Allowed":"Off"}),m.jsx(Le,{label:"Allowed users",value:(G=E.auth)!=null&&G.allowedUsers.length?E.auth.allowedUsers.join(", "):"None"})]})]}),m.jsxs(zn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(Ln,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Un,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(zE,{className:"h-3.5 w-3.5 text-primary"}),"Paths"]}),m.jsx(Bn,{className:"text-[10px]",children:"Workspace and runtime paths currently used by this node."})]}),m.jsxs(Hn,{className:"space-y-0 px-3 pb-2.5",children:[m.jsx(Le,{label:"Work dir",value:((I=E.runtime)==null?void 0:I.workDir)??E.workDir??"Unavailable",mono:!!(((ie=E.runtime)==null?void 0:ie.workDir)??E.workDir)}),m.jsx(Le,{label:"Storage",value:((F=E.runtime)==null?void 0:F.storagePath)??"Unavailable",mono:!!((_=E.runtime)!=null&&_.storagePath)}),m.jsx(Le,{label:"Process cwd",value:((X=E.runtime)==null?void 0:X.cwd)??"Unavailable",mono:!!((K=E.runtime)!=null&&K.cwd)}),m.jsx(Le,{label:"Started",value:pn((J=E.runtime)==null?void 0:J.startedAt)}),m.jsx(Le,{label:"PID",value:E.runtime?String(E.runtime.pid):"Unavailable",mono:!!E.runtime})]})]}),m.jsxs(zn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(Ln,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Un,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(Ts,{className:"h-3.5 w-3.5 text-primary"}),"Startup checks"]}),m.jsx(Bn,{className:"text-[10px]",children:"Dependency preflight snapshot persisted during node startup."})]}),m.jsxs(Hn,{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:pn((W=E.startupRequirements)==null?void 0:W.lastCheckedAt)})]}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(vs,{formatDateTime:pn,name:"Azure CLI",status:j.az,statusVariant:Uo}),m.jsx(vs,{formatDateTime:pn,name:"DevTunnel",status:j.devtunnel,statusVariant:Uo}),m.jsx(vs,{formatDateTime:pn,name:"Claude Code",status:j.claude,statusVariant:Uo}),m.jsx(vs,{formatDateTime:pn,name:"Codex",status:j.codex,statusVariant:Uo})]})]})]})]}),m.jsxs(Ns,{value:"about",className:"mt-0 grid gap-2 xl:grid-cols-[0.92fr_1.08fr]",children:[m.jsxs(zn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(Ln,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Un,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(mE,{className:"h-3.5 w-3.5 text-primary"}),"Repository"]}),m.jsx(Bn,{className:"text-[10px]",children:"Source-of-truth repository metadata for this running node."})]}),m.jsxs(Hn,{className:"space-y-3 px-3 pb-2.5",children:[(ae=E.repository)!=null&&ae.url?m.jsxs("a",{href:E.repository.url,target:"_blank",rel:"noreferrer",className:"group flex items-center justify-between 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:"font-mono text-[10px]",children:E.repository.url}),m.jsx(DE,{className:"h-3.5 w-3.5 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:"space-y-0",children:[m.jsx(Le,{label:"Branch",value:((ee=E.repository)==null?void 0:ee.branch)??"Unavailable",mono:!!((re=E.repository)!=null&&re.branch)}),m.jsx(Le,{label:"Commit",value:((ue=E.repository)==null?void 0:ue.commit)??"Unavailable",mono:!!((Te=E.repository)!=null&&Te.commit)}),m.jsx(Le,{label:"Runtime",value:`${E.packageName??"meshy"} ${E.version}`,mono:!0}),m.jsx(Le,{label:"Node.js",value:((we=E.runtime)==null?void 0:we.nodeVersion)??"Unavailable",mono:!!((Se=E.runtime)!=null&&Se.nodeVersion)})]})]})]}),m.jsxs("div",{className:"space-y-2",children:[C&&m.jsx(PA,{checkedLabel:pn(C.checkedAt),disableAuthDefault:((Je=E.auth)==null?void 0:Je.enabled)===void 0?void 0:E.auth.enabled===!1,endpoint:S.endpoint,isLiveLocalNode:R,nodeId:S.id,nodeName:S.name,pid:($e=E.runtime)==null?void 0:$e.pid,transportType:S.transportType,update:C,workDir:((kt=E.runtime)==null?void 0:kt.workDir)??S.workDir}),m.jsxs(zn,{className:"rounded-xl border-border/70 bg-background/75 shadow-[0_24px_80px_-58px_rgba(15,23,42,0.45)]",children:[m.jsxs(Ln,{className:"pb-1.5 pt-2.5 px-3",children:[m.jsxs(Un,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(UE,{className:"h-3.5 w-3.5 text-primary"}),"Package versions"]}),m.jsx(Bn,{className:"text-[10px]",children:"Version snapshot for the packages most relevant to this dashboard session."})]}),m.jsx(Hn,{className:"space-y-1.5 px-3 pb-2.5",children:T.map(be=>{var Ge,it;return m.jsxs("div",{className:"flex items-center justify-between gap-2 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:be.label}),m.jsx("div",{className:"text-[10px] text-muted-foreground",children:(Ge=be.value)==null?void 0:Ge.name})]}),m.jsx(yt,{variant:"outline",className:"rounded-[11px] border-border/70 bg-background/60 font-mono text-[10px]",children:(it=be.value)==null?void 0:it.version})]},be.key)})})]})]})]})]})]})}function m_(){const{cluster:n,systemInfo:l,sseConnected:o,refresh:i}=u0(),[u,d]=y.useState(!1);return m.jsxs(d5,{open:u,onOpenChange:d,children:[m.jsx(f5,{asChild:!0,children:m.jsx(Gn,{variant:"ghost",size:"icon","aria-label":"Settings",title:"Settings",className:"rounded-[16px] border border-border/70 bg-background/70 shadow-sm",children:m.jsx(IE,{className:"h-4 w-4"})})}),m.jsxs(by,{className:"grid h-[min(82vh,42rem)] max-h-[82vh] max-w-[min(90vw,56rem)] grid-rows-[auto_minmax(0,1fr)] overflow-hidden rounded-[22px] border-border/70 bg-background/96 p-0 shadow-[0_40px_120px_-56px_rgba(15,23,42,0.75)] backdrop-blur-xl",children:[m.jsxs(xy,{className:"shrink-0 border-b border-border/60 px-3 py-2 sm:px-4",children:[m.jsxs(Sy,{className:"flex items-center gap-1.5 text-[12px]",children:[m.jsx(HE,{className:"h-3.5 w-3.5 text-primary"}),"Settings"]}),m.jsx(wy,{className:"text-[11px]",children:"Session diagnostics, access configuration, and build metadata for the current Meshy node."})]}),m.jsx("div",{className:"min-h-0 overflow-y-auto px-3 py-2.5 sm:px-4 sm:py-3",children:m.jsx(f_,{cluster:n,systemInfo:l,sseConnected:o,onRefresh:i})})]})]})}const L3="bypass",h_=[{value:"claudecode",label:"claudecode",supportsFollowUp:!0},{value:"codex",label:"codex",supportsFollowUp:!0},{value:"mars",label:"mars",disabled:!0,description:"coming soon"},{value:"eureka",label:"eureka",disabled:!0,description:"coming soon"}],U3=[{value:"bypass",label:"Bypass"},{value:"plan",label:"Plan"},{value:"edit",label:"Edit"},{value:"dangerous",label:"Dangerous"}],B3=new Set(h_.filter(n=>n.supportsFollowUp).map(n=>n.value)),H3=[{value:"active",label:"Active"},{value:"running",label:"Running"},{value:"waiting",label:"Waiting"},{value:"closed",label:"Closed"},{value:"shared",label:"Shared"},{value:"archived",label:"Archived"}],V3=[{value:"all",label:"All task types"},{value:"native",label:"Native sessions"},{value:"meshy",label:"Meshy chats"}],p_=new Set(["pending","assigned"]),g_=new Set(["running"]),v_=new Set(["completed","failed","cancelled"]);function q3(n,l){switch(l){case"running":return g_.has(n.status);case"waiting":return p_.has(n.status);case"closed":return v_.has(n.status);case"shared":return!!n.activeShare;case"archived":return n.status==="archived";case"active":default:return n.status!=="archived"}}function Y3(n,l){if(l==="all")return!0;const o=n.conversationKind==="nativeSession";return l==="native"?o:!o}function $3(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 y_(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 G3(n,l,o){return y_(n,l,o).toLowerCase()}function X3(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 Q3(n,l){return[...n].sort((o,i)=>o.id===l?-1:i.id===l?1:o.name.localeCompare(i.name))}function K3(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 Z3(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 P3(n){return n==="default workspace"?n:n.replace(/\\/g,"/").split("/").filter(Boolean).at(-1)??n}function I3(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 F3(n){return new Date(n).toLocaleString()}function J3(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 b_(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),wt.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"),v=d.activeElement,g=v&&typeof v.focus=="function"?v: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),g==null||g.focus(),!x)throw new Error("Clipboard access is unavailable");return wt.success(l),!0}catch(d){return wt.error(d instanceof Error?d.message:"Failed to copy"),!1}}function W3(n,l,o){const i=new Map;for(const d of n){const f=d.assignedTo??null,h=f??"__unassigned__",v=f?l.get(f)??d.assignedNodeName??f.slice(0,8):"Unassigned",g=d.effectiveProjectPath??d.project??"default workspace";i.has(h)||i.set(h,{nodeId:f,nodeName:v,dirMap:new Map});const x=i.get(h);x.dirMap.has(g)||x.dirMap.set(g,[]),x.dirMap.get(g).push(d)}const u=Array.from(i.values()).map(({nodeId:d,nodeName:f,dirMap:h})=>{const v=Array.from(h.entries()).map(([g,x])=>({path:g,tasks:x})).sort((g,x)=>x.tasks.length-g.tasks.length||g.path.localeCompare(x.path));return{nodeId:d,nodeName:f,dirs:v}});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 x_={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"};function S_(n){return n.split(".")[0]??"unknown"}function w_(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function Nr(n,l){return(l==null?void 0:l.get(n))??n}function Mx(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`${Nr(o.nodeId,l)} left (${o.reason})`;case"node.status":return`${Nr(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 ${Nr(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 ${Nr(i==null?void 0:i.nodeId,l)}`;case"transport.changed":return`${Nr(o.nodeId,l)} transport switched to ${o.transportType}`;case"task.created":return`"${o.title}" created`;case"task.assigned":return`task assigned to ${Nr(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 E_(n){return JSON.stringify(n,null,2)}function N_({events:n,maxHeight:l="400px",nodeNameById:o,onDismiss:i}){return n.length===0?null:m.jsx("div",{className:"overflow-y-auto pr-1",style:{maxHeight:l},children:m.jsx("div",{className:"space-y-1.5",children:n.map(u=>{const d=S_(u.type);return m.jsx("div",{className:"rounded-lg px-1.5 py-1 transition-colors hover:bg-muted/30",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:"font-mono text-[9px] text-muted-foreground",children:w_(u.timestamp)}),m.jsx(yt,{variant:"outline",className:ge("w-fit text-[9px] font-medium uppercase tracking-[0.14em] px-1.5 py-0",x_[d]),children:u.type})]}),m.jsxs("div",{className:"flex shrink-0 items-center gap-0.5",children:[m.jsx(Gn,{type:"button",variant:"ghost",size:"icon",className:"h-5 w-5 rounded-[8px] text-muted-foreground",onClick:()=>void b_(E_(u),"Event copied"),"aria-label":`Copy ${u.type} event`,title:"Copy event",children:m.jsx(_E,{className:"h-3 w-3"})}),i&&m.jsx(Gn,{type:"button",variant:"ghost",size:"icon",className:"h-5 w-5 rounded-[8px] text-muted-foreground hover:text-foreground",onClick:()=>i(u.id),"aria-label":`Dismiss ${u.type} event`,title:"Dismiss event",children:m.jsx(y0,{className:"h-3 w-3"})})]})]}),m.jsx("div",{className:"text-[9px] leading-snug text-foreground/85",children:Mx(u,o)})]})},u.id)})})})}const C_=["node.","election.","transport."],T_="cluster.state";function R_(n){return n.type==="node.status"?!1:C_.some(l=>n.type.startsWith(l))}function A_(n){return new Date(n).toLocaleTimeString("en-US",{hour12:!1})}function __(n,l){return n?{time:A_(n.timestamp),text:Mx(n,l)}:null}function j_(n){return n.transportType==="devtunnel"||!!n.devtunnelEndpoint}function O_(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 M_(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 D_(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 k_(n,l){return{label:(l==null?void 0:l.get(n.id))??n.name??n.id,status:n.status}}function z_({connected:n,events:l,nodes:o=[],nodeNameById:i,defaultOpen:u=!1}){const[d,f]=y.useState(u),[h,v]=y.useState(!0),[g,x]=y.useState(new Set),p=y.useRef(null),S=y.useMemo(()=>l.filter(k=>R_(k)&&!g.has(k.id)),[l,g]),E=y.useMemo(()=>l.find(k=>k.type===T_)??S[0],[l,S]),R=y.useMemo(()=>__(E,i),[E,i]),N=y.useMemo(()=>o.filter(j_),[o]),T=N.some(k=>{var q;return k.status==="offline"||((q=k.devtunnelHealth)==null?void 0:q.status)==="failed"}),C=o.some(k=>k.status==="offline"),j=o.some(k=>k.status==="busy"),M=o.length>0;return y.useEffect(()=>{x(k=>{if(k.size===0)return k;const q=new Set(l.map(U=>U.id)),$=new Set(Array.from(k).filter(U=>q.has(U)));return $.size===k.size?k:$})},[l]),y.useEffect(()=>{if(!d)return;const k=$=>{var U;(U=p.current)!=null&&U.contains($.target)||f(!1)},q=$=>{$.key==="Escape"&&f(!1)};return document.addEventListener("pointerdown",k),document.addEventListener("keydown",q),()=>{document.removeEventListener("pointerdown",k),document.removeEventListener("keydown",q)}},[d]),m.jsxs("div",{ref:p,className:"relative",children:[m.jsxs("button",{type:"button","aria-expanded":d,"aria-haspopup":"dialog",onClick:()=>f(k=>!k),className:ge("flex items-center gap-1.5 rounded-[16px] border px-2 py-1.5 text-[11px] shadow-sm transition-all sm:gap-2 sm:px-3 sm:py-2 sm:text-xs",n?"border-emerald-500/25 bg-emerald-500/8 text-muted-foreground hover:border-emerald-500/40 hover:bg-emerald-500/12":"border-destructive/25 bg-destructive/8 text-muted-foreground hover:border-destructive/40 hover:bg-destructive/12",d&&"shadow-[0_14px_40px_-26px_rgba(16,185,129,0.95)]"),title:n?"Live link connected":"Live link reconnecting",children:[m.jsx(p0,{className:ge("h-3.5 w-3.5",n?"text-emerald-500":"text-destructive")}),n?"Live link":"Reconnecting"]}),d&&m.jsxs("div",{role:"dialog","aria-label":"Live link connection events",className:"absolute right-0 top-[calc(100%+0.4rem)] z-50 w-[18rem] max-w-[calc(100vw-1.5rem)] overflow-hidden rounded-[18px] border border-border/70 bg-background/96 shadow-[0_28px_90px_-42px_rgba(0,0,0,var(--panel-shadow-alpha))] backdrop-blur-xl max-sm:fixed max-sm:right-3 max-sm:top-[3.75rem] max-sm:w-[calc(100vw-1.5rem)]",children:[m.jsx("div",{className:"border-b border-border/60 bg-muted/25 px-2.5 py-1.5",children:m.jsxs("div",{className:"flex items-center justify-between gap-2",children:[m.jsxs("div",{className:"flex items-center gap-1.5",children:[n?m.jsx(Ts,{className:"h-3 w-3 text-emerald-500"}):m.jsx(lN,{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:ge("rounded-[9px] border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.12em]",n?"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300":"border-destructive/30 bg-destructive/10 text-destructive"),children:n?"Connected":"Retrying"})]})}),m.jsxs("div",{className:"grid grid-cols-2 border-b border-border/60",children:[m.jsxs("div",{className:"border-r border-border/60 px-2.5 py-1.5",children:[m.jsx("div",{className:"text-[8px] font-medium uppercase tracking-[0.14em] text-muted-foreground",children:"Events"}),m.jsx("div",{className:"mt-0.5 text-base font-semibold tracking-tight text-foreground",children:S.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"}),R?m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"mt-0.5 truncate text-[9px] leading-snug text-foreground/80",children:R.text}),m.jsx("div",{className:"font-mono text-[8px] text-muted-foreground/60",children:R.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:[C?m.jsx(is,{className:"h-3 w-3 shrink-0 text-destructive"}):j?m.jsx(Ts,{className:"h-3 w-3 shrink-0 text-amber-500"}):m.jsx(zo,{className:ge("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:ge("shrink-0 rounded-[8px] border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",C?"border-destructive/30 bg-destructive/10 text-destructive":j?"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:D_(o)})]}),o.length>0&&m.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:o.map(k=>{const{label:q,status:$}=k_(k,i),U=$==="offline",V=$==="busy";return m.jsxs("div",{"aria-label":`${q} ${$}`,className:ge("flex items-center justify-between gap-2 rounded-[7px] px-2 py-0.5",U?"bg-destructive/6":V?"bg-amber-500/6":"bg-emerald-500/5"),title:`${q} ${$}`,children:[m.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:q}),U?m.jsx(is,{className:"h-3 w-3 shrink-0 text-destructive"}):V?m.jsx(Jg,{className:"h-3 w-3 shrink-0 text-amber-500"}):m.jsx(zo,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},k.id)})})]}),N.length>0&&m.jsxs("div",{className:"border-b border-border/60 px-2.5 py-1.5",children:[m.jsxs("div",{className:"flex items-center justify-between gap-2",children:[m.jsxs("div",{className:"flex min-w-0 items-center gap-1",children:[T?m.jsx(is,{className:"h-3 w-3 shrink-0 text-destructive"}):m.jsx(zo,{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:ge("shrink-0 rounded-[8px] border px-1.5 py-0.5 text-[8px] font-medium uppercase tracking-[0.1em]",T?"border-destructive/30 bg-destructive/10 text-destructive":"border-emerald-500/30 bg-emerald-500/10 text-emerald-700 dark:text-emerald-300"),children:O_(N)})]}),m.jsx("div",{className:"mt-1.5 flex flex-col gap-0.5",children:N.map(k=>{var de;const{label:q,status:$}=M_(k,i),U=$==="failed"||$==="offline",V=$!=="healthy"&&$!=="failed"&&$!=="offline",ne=(de=k.devtunnelHealth)!=null&&de.reason?`${q} ${$}: ${k.devtunnelHealth.reason}`:`${q} ${$}`;return m.jsxs("div",{"aria-label":`${q} ${$}`,className:ge("flex items-center justify-between gap-2 rounded-[7px] px-2 py-0.5",U?"bg-destructive/6":V?"bg-muted/30":"bg-emerald-500/5"),title:ne,children:[m.jsx("span",{className:"truncate text-[9px] text-foreground/70",children:q}),U?m.jsx(is,{className:"h-3 w-3 shrink-0 text-destructive"}):V?m.jsx(Jg,{className:"h-3 w-3 shrink-0 text-muted-foreground"}):m.jsx(zo,{className:"h-3 w-3 shrink-0 text-emerald-500"})]},k.id)})})]}),m.jsxs("div",{children:[m.jsxs("button",{type:"button",onClick:()=>v(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 ",S.length>0&&`(${S.length})`]}),h?m.jsx(Xs,{className:"h-3 w-3 text-muted-foreground"}):m.jsx(xE,{className:"h-3 w-3 text-muted-foreground"})]}),h&&m.jsx("div",{className:"px-2 pb-2",children:m.jsx(N_,{events:S,maxHeight:"12rem",emptyTitle:"No connection events yet",emptyDescription:"Node, election, and system events will appear here.",nodeNameById:i,onDismiss:k=>x(q=>new Set(q).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(Gn,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-[9px] px-1.5 text-[9px]",onClick:()=>x(new Set(l.map(k=>k.id))),disabled:S.length===0,title:"Dismiss all notifications",children:"Dismiss all"}),m.jsx(Gn,{type:"button",variant:"ghost",size:"sm",className:"h-5 rounded-[9px] px-1.5 text-[9px]",onClick:()=>f(!1),children:"Close"})]})]})]})}const Dx=y.createContext(null);function L_({children:n}){const[l,o]=y.useState(()=>typeof window<"u"?localStorage.getItem("meshy-theme")??"system":"system"),[i,u]=y.useState(()=>typeof window<"u"?localStorage.getItem("meshy-palette")??"default":"default");return y.useEffect(()=>{const d=document.documentElement,f=h=>{if(h==="system"){const v=window.matchMedia("(prefers-color-scheme: dark)").matches;d.classList.toggle("dark",v)}else d.classList.toggle("dark",h==="dark")};if(f(l),localStorage.setItem("meshy-theme",l),l==="system"){const h=window.matchMedia("(prefers-color-scheme: dark)"),v=()=>f("system");return h.addEventListener("change",v),()=>h.removeEventListener("change",v)}},[l]),y.useEffect(()=>{const d=document.documentElement;i==="default"?d.removeAttribute("data-palette"):d.setAttribute("data-palette",i),localStorage.setItem("meshy-palette",i)},[i]),m.jsx(Dx.Provider,{value:{theme:l,setTheme:o,palette:i,setPalette:u},children:n})}function U_(){const n=y.useContext(Dx);if(!n)throw new Error("useTheme must be used within ThemeProvider");return n}const B_=[{value:"light",label:"Light",icon:g0},{value:"dark",label:"Dark",icon:h0},{value:"system",label:"System",icon:m0}],H_=[{value:"default",label:"Default",hint:"Porcelain + blue"},{value:"warm",label:"Warm",hint:"Cream + amber"},{value:"finsight",label:"FinSight",hint:"Cool sage green"},{value:"inshield",label:"inShield",hint:"Pure white + navy"},{value:"edge",label:"Edge",hint:"Rounded violet panels"}];function V_(){const{theme:n,setTheme:l,palette:o,setPalette:i}=U_(),[u,d]=y.useState(!1),f=y.useRef(null),h=y.useRef(null),v=n==="dark"?h0:n==="light"?g0:m0,g=()=>{f.current&&(clearTimeout(f.current),f.current=null)},x=()=>{g(),f.current=setTimeout(()=>d(!1),180)};return y.useEffect(()=>{if(!u)return;const p=S=>{h.current&&!h.current.contains(S.target)&&d(!1)};return document.addEventListener("mousedown",p),()=>document.removeEventListener("mousedown",p)},[u]),y.useEffect(()=>()=>g(),[]),m.jsxs("div",{ref:h,className:"relative",onMouseEnter:()=>{g(),d(!0)},onMouseLeave:x,children:[m.jsx(Gn,{variant:"ghost",size:"icon",onClick:()=>d(p=>!p),className:ge("rounded-[16px] border bg-background/70",o==="default"?"border-border/60":"border-primary/60 text-primary"),title:"Appearance","aria-haspopup":"menu","aria-expanded":u,children:m.jsx(v,{className:"h-4 w-4"})}),u&&m.jsxs("div",{role:"menu",className:"absolute right-0 top-[calc(100%+8px)] z-50 w-64 rounded-[20px] border border-border/70 bg-popover/95 p-3 text-popover-foreground shadow-[0_24px_80px_-32px_rgba(0,0,0,0.35)] backdrop-blur-xl",children:[m.jsx("div",{className:"px-1 pb-1 text-[10px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:"Theme"}),m.jsx("div",{className:"mb-2 grid grid-cols-3 gap-1",children:B_.map(({value:p,label:S,icon:E})=>{const R=n===p;return m.jsxs("button",{type:"button",onClick:()=>l(p),className:ge("flex flex-col items-center gap-1 rounded-[14px] border px-2 py-2 text-[11px] font-medium transition-colors",R?"border-primary/50 bg-primary/10 text-primary":"border-border/60 text-muted-foreground hover:border-border hover:bg-muted/60 hover:text-foreground"),children:[m.jsx(E,{className:"h-4 w-4"}),S]},p)})}),m.jsxs("div",{className:"mt-2 flex items-center gap-1.5 px-1 pb-1 text-[10px] font-semibold uppercase tracking-[0.18em] text-muted-foreground",children:[m.jsx(eN,{className:"h-3 w-3"}),"Palette"]}),m.jsx("div",{className:"space-y-1",children:H_.map(({value:p,label:S,hint:E})=>{const R=o===p;return m.jsxs("button",{type:"button",onClick:()=>i(p),className:ge("flex w-full items-center gap-2 rounded-[14px] border px-2.5 py-1.5 text-left transition-colors",R?"border-primary/50 bg-primary/10":"border-transparent hover:bg-muted/60"),children:[m.jsx(q_,{value:p}),m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsx("div",{className:ge("text-[12px] font-medium",R?"text-primary":"text-foreground"),children:S}),m.jsx("div",{className:"text-[10px] text-muted-foreground",children:E})]}),R&&m.jsx(uf,{className:"h-3.5 w-3.5 text-primary"})]},p)})})]})]})}function q_({value:n}){const l={default:["hsl(212 76% 44%)","hsl(210 22% 98%)","hsl(174 42% 61%)"],warm:["hsl(35 88% 56%)","hsl(42 22% 97%)","hsl(160 60% 45%)"],finsight:["hsl(152 38% 32%)","hsl(150 14% 97%)","hsl(142 55% 58%)"],inshield:["hsl(220 25% 12%)","hsl(0 0% 100%)","hsl(195 80% 55%)"],edge:["hsl(265 75% 55%)","hsl(260 12% 98%)","hsl(285 70% 65%)"]},[o,i,u]=l[n];return m.jsxs("div",{className:ge("flex h-6 w-6 shrink-0 overflow-hidden border border-border/60",n==="edge"?"rounded-[10px]":"rounded-[12px]"),children:[m.jsx("div",{className:"h-full w-1/3",style:{background:o}}),m.jsx("div",{className:"h-full w-1/3",style:{background:i}}),m.jsx("div",{className:"h-full w-1/3",style:{background:u}})]})}function Y_(){var v,g;const{cluster:n,events:l,sseConnected:o}=u0(),i=Xn(),[u,d]=y.useState(!1),f=i.pathname==="/"||/^\/tasks\/[^/]+$/.test(i.pathname),h=y.useMemo(()=>{const x=new Map;for(const p of(n==null?void 0:n.nodes)??[])x.set(p.id,p.name);return x},[n==null?void 0:n.nodes]);return m.jsxs("div",{className:"relative h-full overflow-hidden bg-background text-foreground",children:[m.jsx("div",{className:"mesh-grid pointer-events-none absolute inset-0"}),m.jsxs("div",{className:"relative z-10 flex h-full min-h-0 flex-col",children:[m.jsx("header",{className:"relative z-50 shrink-0 px-2 pb-2 pt-3 sm:px-5 sm:pb-3 sm:pt-4 lg:px-6",children:m.jsxs("div",{className:"dashboard-panel dashboard-panel-muted animate-panel-settle mx-auto flex max-w-[1760px] flex-wrap items-center justify-between gap-2 rounded-[22px] px-3 py-2 sm:gap-3 sm:rounded-[24px] sm:px-4 sm:py-3",children:[m.jsx("div",{className:"flex min-w-0 items-center gap-4",children:m.jsxs(o0,{to:"/",className:"flex items-center gap-3",children:[m.jsx("div",{className:"flex h-9 w-9 items-center justify-center rounded-[15px] border border-border/70 bg-foreground text-xs font-semibold tracking-[0.24em] text-background shadow-sm sm:h-11 sm:w-11 sm:rounded-[17px] sm:text-sm",children:"M"}),m.jsxs("div",{className:"hidden min-w-0 sm:block",children:[m.jsx("div",{className:"text-[11px] font-medium uppercase tracking-[0.34em] text-muted-foreground",children:"MESHY"}),m.jsx("div",{className:"truncate text-base font-semibold tracking-tight text-foreground",children:"Workspace"})]})]})}),m.jsxs("div",{className:"flex flex-wrap items-center justify-end gap-2",children:[m.jsxs("div",{className:"hidden items-center gap-2 rounded-[16px] border border-border/70 bg-background/70 px-3 py-2 text-xs text-muted-foreground shadow-sm sm:flex",children:[m.jsxs("span",{className:"flex items-center gap-2",children:[(n==null?void 0:n.self)&&m.jsx(L0,{status:n.self.status}),m.jsx("span",{className:"font-medium text-foreground",children:((v=n==null?void 0:n.self)==null?void 0:v.name)??"offline"})]}),m.jsx("span",{className:"text-border",children:"/"}),m.jsx("span",{className:"capitalize",children:((g=n==null?void 0:n.self)==null?void 0:g.role)??"node"})]}),m.jsx(z_,{connected:o,events:l,nodes:(n==null?void 0:n.nodes)??[],nodeNameById:h}),f&&m.jsx(Gn,{variant:"ghost",size:"icon",onClick:()=>d(x=>!x),"aria-label":u?"Close terminal":"Open terminal",title:u?"Close terminal":"Open terminal",className:ge("rounded-[16px] border bg-background/70 shadow-sm",u?"border-primary/50 bg-primary/10 text-primary":"border-border/70"),children:m.jsx(v0,{className:"h-4 w-4"})}),m.jsx(m_,{}),m.jsx(V_,{})]})]})}),m.jsx("main",{className:ge("min-h-0 flex-1 px-3 pb-3 sm:px-5 lg:px-6",f?"overflow-hidden":"overflow-y-auto"),children:m.jsx("div",{className:"mx-auto h-full min-h-0 max-w-[1760px]",children:m.jsx(W2,{context:{terminalOpen:u,setTerminalOpen:d}})})})]})]})}const Uv=y.lazy(async()=>({default:(await Vv(()=>import("./DashboardPage-B95cJcig.js").then(l=>l.D),__vite__mapDeps([0,1,2,3]))).DashboardPage})),$_=y.lazy(async()=>({default:(await Vv(()=>import("./SharedConversationPage-DSxtiljC.js"),__vite__mapDeps([4,1]))).SharedConversationPage}));function G_(){return m.jsx(Cw,{children:m.jsx(y.Suspense,{fallback:m.jsx(X_,{}),children:m.jsxs(tw,{children:[m.jsx(Al,{path:"/shared/tasks/:shareId",element:m.jsx($_,{})}),m.jsxs(Al,{element:m.jsx(lE,{children:m.jsx(Y_,{})}),children:[m.jsx(Al,{path:"/",element:m.jsx(Uv,{})}),m.jsx(Al,{path:"/nodes",element:m.jsx(Pg,{to:"/",replace:!0})}),m.jsx(Al,{path:"/tasks",element:m.jsx(Pg,{to:"/",replace:!0})}),m.jsx(Al,{path:"/tasks/:id",element:m.jsx(Uv,{})})]})]})})})}function X_(){return m.jsx("div",{className:"flex min-h-screen items-center justify-center bg-background text-sm text-muted-foreground",children:"Loading workspace..."})}function Q_(n){return m.jsx(TC,{className:"toaster group",style:{"--normal-bg":"hsl(var(--popover))","--normal-text":"hsl(var(--popover-foreground))","--normal-border":"hsl(var(--border))"},...n})}e2.createRoot(document.getElementById("root")).render(m.jsx(y.StrictMode,{children:m.jsxs(L_,{children:[m.jsx(G_,{}),m.jsx(Q_,{})]})}));export{Us as $,h_ as A,yt as B,uf as C,by as D,eN as E,zE as F,u3 as G,d5 as H,Ax as I,_E as J,b_ as K,y_ as L,CA as M,D3 as N,Wb as O,k3 as P,Es as Q,F3 as R,Cr as S,U3 as T,Ns as U,Wd as V,zs as W,y0 as X,Ls as Y,Bs as Z,Hs as _,_C as a,C3 as a$,qs as a0,Vs as a1,Vv as a2,o3 as a3,v0 as a4,zo as a5,RE as a6,r3 as a7,i3 as a8,l3 as a9,Xn as aA,Fv as aB,K_ as aC,u0 as aD,K3 as aE,X3 as aF,q3 as aG,Y3 as aH,G3 as aI,$3 as aJ,c3 as aK,B3 as aL,g_ as aM,v3 as aN,h3 as aO,p3 as aP,m3 as aQ,f3 as aR,I_ as aS,J_ as aT,P_ as aU,W_ as aV,N3 as aW,E3 as aX,w3 as aY,x3 as aZ,S3 as a_,Q3 as aa,p0 as ab,N_ as ac,L0 as ad,DE as ae,FN as af,J3 as ag,p_ as ah,W3 as ai,H3 as aj,V3 as ak,Rx as al,P3 as am,Z3 as an,I3 as ao,ef as ap,y3 as aq,b3 as ar,s3 as as,Jw as at,Qw as au,M3 as av,O3 as aw,tE as ax,g3 as ay,Z_ as az,ge as b,wE as b0,Bv as b1,A3 as b2,R3 as b3,T3 as b4,QE as b5,_3 as b6,z3 as b7,j3 as b8,Ye as c,z0 as d,F_ as e,xy as f,Sy as g,h5 as h,Gn as i,m as j,t3 as k,a3 as l,Vw as m,e3 as n,xE as o,L3 as p,n3 as q,y as r,d3 as s,wt as t,jb as u,Lf as v,Ob as w,Uf as x,f0 as y,Xs as z};
|