rexp-web 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,229 @@
1
+ var D1=Object.defineProperty;var R1=(c,r,h)=>r in c?D1(c,r,{enumerable:!0,configurable:!0,writable:!0,value:h}):c[r]=h;var Gi=(c,r,h)=>R1(c,typeof r!="symbol"?r+"":r,h);(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const b of document.querySelectorAll('link[rel="modulepreload"]'))o(b);new MutationObserver(b=>{for(const y of b)if(y.type==="childList")for(const T of y.addedNodes)T.tagName==="LINK"&&T.rel==="modulepreload"&&o(T)}).observe(document,{childList:!0,subtree:!0});function h(b){const y={};return b.integrity&&(y.integrity=b.integrity),b.referrerPolicy&&(y.referrerPolicy=b.referrerPolicy),b.crossOrigin==="use-credentials"?y.credentials="include":b.crossOrigin==="anonymous"?y.credentials="omit":y.credentials="same-origin",y}function o(b){if(b.ep)return;b.ep=!0;const y=h(b);fetch(b.href,y)}})();function j0(c){return c&&c.__esModule&&Object.prototype.hasOwnProperty.call(c,"default")?c.default:c}var uf={exports:{}},Li={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Km;function U1(){if(Km)return Li;Km=1;var c=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function h(o,b,y){var T=null;if(y!==void 0&&(T=""+y),b.key!==void 0&&(T=""+b.key),"key"in b){y={};for(var N in b)N!=="key"&&(y[N]=b[N])}else y=b;return b=y.ref,{$$typeof:c,type:o,key:T,ref:b!==void 0?b:null,props:y}}return Li.Fragment=r,Li.jsx=h,Li.jsxs=h,Li}var Jm;function w1(){return Jm||(Jm=1,uf.exports=U1()),uf.exports}var u=w1(),sf={exports:{}},ht={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var $m;function H1(){if($m)return ht;$m=1;var c=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),T=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),O=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),B=Symbol.for("react.view_transition"),V=Symbol.iterator;function tt(p){return p===null||typeof p!="object"?null:(p=V&&p[V]||p["@@iterator"],typeof p=="function"?p:null)}var lt={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},K=Object.assign,k={};function F(p,q,I){this.props=p,this.context=q,this.refs=k,this.updater=I||lt}F.prototype.isReactComponent={},F.prototype.setState=function(p,q){if(typeof p!="object"&&typeof p!="function"&&p!=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,p,q,"setState")},F.prototype.forceUpdate=function(p){this.updater.enqueueForceUpdate(this,p,"forceUpdate")};function G(){}G.prototype=F.prototype;function C(p,q,I){this.props=p,this.context=q,this.refs=k,this.updater=I||lt}var W=C.prototype=new G;W.constructor=C,K(W,F.prototype),W.isPureReactComponent=!0;var nt=Array.isArray;function U(){}var Y={H:null,A:null,T:null,S:null},it=Object.prototype.hasOwnProperty;function St(p,q,I){var at=I.ref;return{$$typeof:c,type:p,key:q,ref:at!==void 0?at:null,props:I}}function Tt(p,q){return St(p.type,q,p.props)}function J(p){return typeof p=="object"&&p!==null&&p.$$typeof===c}function ot(p){var q={"=":"=0",":":"=2"};return"$"+p.replace(/[=:]/g,function(I){return q[I]})}var Wt=/\/+/g;function Dt(p,q){return typeof p=="object"&&p!==null&&p.key!=null?ot(""+p.key):q.toString(36)}function x(p){switch(p.status){case"fulfilled":return p.value;case"rejected":throw p.reason;default:switch(typeof p.status=="string"?p.then(U,U):(p.status="pending",p.then(function(q){p.status==="pending"&&(p.status="fulfilled",p.value=q)},function(q){p.status==="pending"&&(p.status="rejected",p.reason=q)})),p.status){case"fulfilled":return p.value;case"rejected":throw p.reason}}throw p}function L(p,q,I,at,jt){var vt=typeof p;(vt==="undefined"||vt==="boolean")&&(p=null);var Nt=!1;if(p===null)Nt=!0;else switch(vt){case"bigint":case"string":case"number":Nt=!0;break;case"object":switch(p.$$typeof){case c:case r:Nt=!0;break;case O:return Nt=p._init,L(Nt(p._payload),q,I,at,jt)}}if(Nt)return jt=jt(p),Nt=at===""?"."+Dt(p,0):at,nt(jt)?(I="",Nt!=null&&(I=Nt.replace(Wt,"$&/")+"/"),L(jt,q,I,"",function(_e){return _e})):jt!=null&&(J(jt)&&(jt=Tt(jt,I+(jt.key==null||p&&p.key===jt.key?"":(""+jt.key).replace(Wt,"$&/")+"/")+Nt)),q.push(jt)),1;Nt=0;var P=at===""?".":at+":";if(nt(p))for(var rt=0;rt<p.length;rt++)at=p[rt],vt=P+Dt(at,rt),Nt+=L(at,q,I,vt,jt);else if(rt=tt(p),typeof rt=="function")for(p=rt.call(p),rt=0;!(at=p.next()).done;)at=at.value,vt=P+Dt(at,rt++),Nt+=L(at,q,I,vt,jt);else if(vt==="object"){if(typeof p.then=="function")return L(x(p),q,I,at,jt);throw q=String(p),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(p).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return Nt}function X(p,q,I){if(p==null)return p;var at=[],jt=0;return L(p,at,"","",function(vt){return q.call(I,vt,jt++)}),at}function ct(p){if(p._status===-1){var q=p._result,I=q();I.then(function(at){(p._status===0||p._status===-1)&&(p._status=1,p._result=at,I.status===void 0&&(I.status="fulfilled",I.value=at))},function(at){(p._status===0||p._status===-1)&&(p._status=2,p._result=at,I.status===void 0&&(I.status="rejected",I.reason=at))}),p._status===-1&&(p._status=0,p._result=I)}if(p._status===1)return p._result.default;throw p._result}var ut=typeof reportError=="function"?reportError:function(p){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof p=="object"&&p!==null&&typeof p.message=="string"?String(p.message):String(p),error:p});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",p);return}console.error(p)};function zt(p){var q=Y.T,I={};I.types=q!==null?q.types:null,Y.T=I;try{var at=p(),jt=Y.S;jt!==null&&jt(I,at),typeof at=="object"&&at!==null&&typeof at.then=="function"&&at.then(U,ut)}catch(vt){ut(vt)}finally{q!==null&&I.types!==null&&(q.types=I.types),Y.T=q}}function kt(p){var q=Y.T;if(q!==null){var I=q.types;I===null?q.types=[p]:I.indexOf(p)===-1&&I.push(p)}else zt(kt.bind(null,p))}var Pt={map:X,forEach:function(p,q,I){X(p,function(){q.apply(this,arguments)},I)},count:function(p){var q=0;return X(p,function(){q++}),q},toArray:function(p){return X(p,function(q){return q})||[]},only:function(p){if(!J(p))throw Error("React.Children.only expected to receive a single React element child.");return p}};return ht.Activity=d,ht.Children=Pt,ht.Component=F,ht.Fragment=h,ht.Profiler=b,ht.PureComponent=C,ht.StrictMode=o,ht.Suspense=w,ht.ViewTransition=B,ht.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,ht.__COMPILER_RUNTIME={__proto__:null,c:function(p){return Y.H.useMemoCache(p)}},ht.addTransitionType=kt,ht.cache=function(p){return function(){return p.apply(null,arguments)}},ht.cacheSignal=function(){return null},ht.cloneElement=function(p,q,I){if(p==null)throw Error("The argument must be a React element, but you passed "+p+".");var at=K({},p.props),jt=p.key;if(q!=null)for(vt in q.key!==void 0&&(jt=""+q.key),q)!it.call(q,vt)||vt==="key"||vt==="__self"||vt==="__source"||vt==="ref"&&q.ref===void 0||(at[vt]=q[vt]);var vt=arguments.length-2;if(vt===1)at.children=I;else if(1<vt){for(var Nt=Array(vt),P=0;P<vt;P++)Nt[P]=arguments[P+2];at.children=Nt}return St(p.type,jt,at)},ht.createContext=function(p){return p={$$typeof:T,_currentValue:p,_currentValue2:p,_threadCount:0,Provider:null,Consumer:null},p.Provider=p,p.Consumer={$$typeof:y,_context:p},p},ht.createElement=function(p,q,I){var at,jt={},vt=null;if(q!=null)for(at in q.key!==void 0&&(vt=""+q.key),q)it.call(q,at)&&at!=="key"&&at!=="__self"&&at!=="__source"&&(jt[at]=q[at]);var Nt=arguments.length-2;if(Nt===1)jt.children=I;else if(1<Nt){for(var P=Array(Nt),rt=0;rt<Nt;rt++)P[rt]=arguments[rt+2];jt.children=P}if(p&&p.defaultProps)for(at in Nt=p.defaultProps,Nt)jt[at]===void 0&&(jt[at]=Nt[at]);return St(p,vt,jt)},ht.createRef=function(){return{current:null}},ht.forwardRef=function(p){return{$$typeof:N,render:p}},ht.isValidElement=J,ht.lazy=function(p){return{$$typeof:O,_payload:{_status:-1,_result:p},_init:ct}},ht.memo=function(p,q){return{$$typeof:v,type:p,compare:q===void 0?null:q}},ht.startTransition=zt,ht.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},ht.use=function(p){return Y.H.use(p)},ht.useActionState=function(p,q,I){return Y.H.useActionState(p,q,I)},ht.useCallback=function(p,q){return Y.H.useCallback(p,q)},ht.useContext=function(p){return Y.H.useContext(p)},ht.useDebugValue=function(){},ht.useDeferredValue=function(p,q){return Y.H.useDeferredValue(p,q)},ht.useEffect=function(p,q){return Y.H.useEffect(p,q)},ht.useEffectEvent=function(p){return Y.H.useEffectEvent(p)},ht.useId=function(){return Y.H.useId()},ht.useImperativeHandle=function(p,q,I){return Y.H.useImperativeHandle(p,q,I)},ht.useInsertionEffect=function(p,q){return Y.H.useInsertionEffect(p,q)},ht.useLayoutEffect=function(p,q){return Y.H.useLayoutEffect(p,q)},ht.useMemo=function(p,q){return Y.H.useMemo(p,q)},ht.useOptimistic=function(p,q){return Y.H.useOptimistic(p,q)},ht.useReducer=function(p,q,I){return Y.H.useReducer(p,q,I)},ht.useRef=function(p){return Y.H.useRef(p)},ht.useState=function(p){return Y.H.useState(p)},ht.useSyncExternalStore=function(p,q,I){return Y.H.useSyncExternalStore(p,q,I)},ht.useTransition=function(){return Y.H.useTransition()},ht.version="19.3.0",ht}var km;function jf(){return km||(km=1,sf.exports=H1()),sf.exports}var A=jf();const B1=j0(A);var cf={exports:{}},Yi={},rf={exports:{}},ff={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var Fm;function q1(){return Fm||(Fm=1,(function(c){function r(x,L){var X=x.length;x.push(L);t:for(;0<X;){var ct=X-1>>>1,ut=x[ct];if(0<b(ut,L))x[ct]=L,x[X]=ut,X=ct;else break t}}function h(x){return x.length===0?null:x[0]}function o(x){if(x.length===0)return null;var L=x[0],X=x.pop();if(X!==L){x[0]=X;t:for(var ct=0,ut=x.length,zt=ut>>>1;ct<zt;){var kt=2*(ct+1)-1,Pt=x[kt],p=kt+1,q=x[p];if(0>b(Pt,X))p<ut&&0>b(q,Pt)?(x[ct]=q,x[p]=X,ct=p):(x[ct]=Pt,x[kt]=X,ct=kt);else if(p<ut&&0>b(q,X))x[ct]=q,x[p]=X,ct=p;else break t}}return L}function b(x,L){var X=x.sortIndex-L.sortIndex;return X!==0?X:x.id-L.id}if(c.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var y=performance;c.unstable_now=function(){return y.now()}}else{var T=Date,N=T.now();c.unstable_now=function(){return T.now()-N}}var w=[],v=[],O=1,d=null,B=3,V=!1,tt=!1,lt=!1,K=!1,k=typeof setTimeout=="function"?setTimeout:null,F=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function C(x){for(var L=h(v);L!==null;){if(L.callback===null)o(v);else if(L.startTime<=x)o(v),L.sortIndex=L.expirationTime,r(w,L);else break;L=h(v)}}function W(x){if(lt=!1,C(x),!tt)if(h(w)!==null)tt=!0,nt||(nt=!0,J());else{var L=h(v);L!==null&&Dt(W,L.startTime-x)}}var nt=!1,U=-1,Y=5,it=-1;function St(){return K?!0:!(c.unstable_now()-it<Y)}function Tt(){if(K=!1,nt){var x=c.unstable_now();it=x;var L=!0;try{t:{tt=!1,lt&&(lt=!1,F(U),U=-1),V=!0;var X=B;try{e:{for(C(x),d=h(w);d!==null&&!(d.expirationTime>x&&St());){var ct=d.callback;if(typeof ct=="function"){d.callback=null,B=d.priorityLevel;var ut=ct(d.expirationTime<=x);if(x=c.unstable_now(),typeof ut=="function"){d.callback=ut,C(x),L=!0;break e}d===h(w)&&o(w),C(x)}else o(w);d=h(w)}if(d!==null)L=!0;else{var zt=h(v);zt!==null&&Dt(W,zt.startTime-x),L=!1}}break t}finally{d=null,B=X,V=!1}L=void 0}}finally{L?J():nt=!1}}}var J;if(typeof G=="function")J=function(){G(Tt)};else if(typeof MessageChannel<"u"){var ot=new MessageChannel,Wt=ot.port2;ot.port1.onmessage=Tt,J=function(){Wt.postMessage(null)}}else J=function(){k(Tt,0)};function Dt(x,L){U=k(function(){x(c.unstable_now())},L)}c.unstable_IdlePriority=5,c.unstable_ImmediatePriority=1,c.unstable_LowPriority=4,c.unstable_NormalPriority=3,c.unstable_Profiling=null,c.unstable_UserBlockingPriority=2,c.unstable_cancelCallback=function(x){x.callback=null},c.unstable_forceFrameRate=function(x){0>x||125<x?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Y=0<x?Math.floor(1e3/x):5},c.unstable_getCurrentPriorityLevel=function(){return B},c.unstable_next=function(x){switch(B){case 1:case 2:case 3:var L=3;break;default:L=B}var X=B;B=L;try{return x()}finally{B=X}},c.unstable_requestPaint=function(){K=!0},c.unstable_runWithPriority=function(x,L){switch(x){case 1:case 2:case 3:case 4:case 5:break;default:x=3}var X=B;B=x;try{return L()}finally{B=X}},c.unstable_scheduleCallback=function(x,L,X){var ct=c.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?ct+X:ct):X=ct,x){case 1:var ut=-1;break;case 2:ut=250;break;case 5:ut=1073741823;break;case 4:ut=1e4;break;default:ut=5e3}return ut=X+ut,x={id:O++,callback:L,priorityLevel:x,startTime:X,expirationTime:ut,sortIndex:-1},X>ct?(x.sortIndex=X,r(v,x),h(w)===null&&x===h(v)&&(lt?(F(U),U=-1):lt=!0,Dt(W,X-ct))):(x.sortIndex=ut,r(w,x),tt||V||(tt=!0,nt||(nt=!0,J()))),x},c.unstable_shouldYield=St,c.unstable_wrapCallback=function(x){var L=B;return function(){var X=B;B=L;try{return x.apply(this,arguments)}finally{B=X}}}})(ff)),ff}var Wm;function G1(){return Wm||(Wm=1,rf.exports=q1()),rf.exports}var of={exports:{}},Se={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Im;function L1(){if(Im)return Se;Im=1;var c=jf();function r(O){var d="https://react.dev/errors/"+O;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var B=2;B<arguments.length;B++)d+="&args[]="+encodeURIComponent(arguments[B])}return"Minified React error #"+O+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function h(){}var o={d:{f:h,r:function(){throw Error(r(522))},D:h,C:h,L:h,m:h,X:h,S:h,M:h},p:0,findDOMNode:null},b=Symbol.for("react.portal"),y=Symbol.for("react.recoverable"),T=Symbol.for("react.optimistic_key");function N(O,d,B){var V=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:b,key:V==null?null:V===T?T:""+V,children:O,containerInfo:d,implementation:B}}var w=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(O,d){if(O==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Se.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,Se.browser=function(O){return{$$typeof:y,_reason:O}},Se.createPortal=function(O,d){var B=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(r(299));return N(O,d,null,B)},Se.flushSync=function(O){var d=w.T,B=o.p;try{if(w.T=null,o.p=2,O)return O()}finally{w.T=d,o.p=B,o.d.f()}},Se.preconnect=function(O,d){typeof O=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,o.d.C(O,d))},Se.prefetchDNS=function(O){typeof O=="string"&&o.d.D(O)},Se.preinit=function(O,d){if(typeof O=="string"&&d&&typeof d.as=="string"){var B=d.as,V=v(B,d.crossOrigin),tt=typeof d.integrity=="string"?d.integrity:void 0,lt=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;B==="style"?o.d.S(O,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:V,integrity:tt,fetchPriority:lt}):B==="script"&&o.d.X(O,{crossOrigin:V,integrity:tt,fetchPriority:lt,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Se.preinitModule=function(O,d){if(typeof O=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var B=v(d.as,d.crossOrigin);o.d.M(O,{crossOrigin:B,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0})}}else d==null&&o.d.M(O)},Se.preload=function(O,d){if(typeof O=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var B=d.as,V=v(B,d.crossOrigin);o.d.L(O,B,{crossOrigin:V,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Se.preloadModule=function(O,d){if(typeof O=="string")if(d){var B=v(d.as,d.crossOrigin);o.d.m(O,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:B,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0})}else o.d.m(O)},Se.requestFormReset=function(O){o.d.r(O)},Se.unstable_batchedUpdates=function(O,d){return O(d)},Se.useFormState=function(O,d,B){return w.H.useFormState(O,d,B)},Se.useFormStatus=function(){return w.H.useHostTransitionStatus()},Se.version="19.3.0",Se}var Pm;function S0(){if(Pm)return of.exports;Pm=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(r){console.error(r)}}return c(),of.exports=L1(),of.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var t0;function Y1(){if(t0)return Yi;t0=1;var c=G1(),r=jf(),h=S0();function o(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function b(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function y(t){for(var e=t,l=e;l&&!l.alternate;)e=l,(e.flags&4098)!==0&&(t=e.return),l=e.return;for(;e.return;)e=e.return;return e.tag===3?t:null}function T(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function N(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function w(t){if(y(t)!==t)throw Error(o(188))}function v(t){var e=t.alternate;if(!e){if(e=y(t),e===null)throw Error(o(188));return e!==t?null:t}for(var l=t,a=e;;){var n=l.return;if(n===null)break;var i=n.alternate;if(i===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===i.child){for(i=n.child;i;){if(i===l)return w(n),t;if(i===a)return w(n),e;i=i.sibling}throw Error(o(188))}if(l.return!==a.return)l=n,a=i;else{for(var s=!1,f=n.child;f;){if(f===l){s=!0,l=n,a=i;break}if(f===a){s=!0,a=n,l=i;break}f=f.sibling}if(!s){for(f=i.child;f;){if(f===l){s=!0,l=i,a=n;break}if(f===a){s=!0,a=i,l=n;break}f=f.sibling}if(!s)throw Error(o(189))}}if(l.alternate!==a)throw Error(o(190))}if(l.tag!==3)throw Error(o(188));return l.stateNode.current===l?t:e}function O(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=O(t),e!==null)return e;t=t.sibling}return null}function d(t,e,l,a,n,i){for(;t!==null;){if((t.tag===5||t.tag===27||t.tag===6)&&l(t,a,n,i)||(t.tag!==22||t.memoizedState===null)&&(e||t.tag!==5&&t.tag!==27)&&d(t.child,e,l,a,n,i))return!0;t=t.sibling}return!1}function B(t){for(t=t.return;t!==null;){if(t.tag===3||t.tag===5||t.tag===27)return t;t=t.return}return null}function V(t){var e=!1;for(t=t.return;t!==null&&(t.tag===4&&(e=!0),!(t.tag===3||t.tag===5||t.tag===27));)t=t.return;return e}function tt(t){var e=[null,null],l=B(t);return l===null||lt(e,t,l.child,{foundSelf:!1}),e}function lt(t,e,l,a){for(;l!==null;){if(l===e)a.foundSelf=!0;else if(l.tag===5||l.tag===27||l.tag===6){if(a.foundSelf)return t[1]=l,!0;t[0]=l}else if((l.tag!==22||l.memoizedState===null)&&lt(t,e,l.child,a))return!0;l=l.sibling}return!1}function K(t){switch(t.tag){case 5:case 27:case 6:return t.stateNode;case 3:return t.stateNode.containerInfo;default:throw Error(o(559))}}var k=null,F=null;function G(t,e,l){return t===l?!0:t===e?(k=t,!0):!1}function C(t,e,l){return t===l?(F=t,!1):t===e?(F!==null&&(k=t),!0):!1}function W(t){if(t===null)return null;do t=t===null?null:t.return;while(t&&t.tag!==5&&t.tag!==27&&t.tag!==3);return t||null}function nt(t,e,l){for(var a=0,n=t;n;n=l(n))a++;n=0;for(var i=e;i;i=l(i))n++;for(;0<a-n;)t=l(t),a--;for(;0<n-a;)e=l(e),n--;for(;a--;){if(t===e||e!==null&&t===e.alternate)return t;t=l(t),e=l(e)}return null}var U=Object.assign,Y=Symbol.for("react.element"),it=Symbol.for("react.transitional.element"),St=Symbol.for("react.portal"),Tt=Symbol.for("react.fragment"),J=Symbol.for("react.strict_mode"),ot=Symbol.for("react.profiler"),Wt=Symbol.for("react.consumer"),Dt=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),L=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),ct=Symbol.for("react.memo"),ut=Symbol.for("react.lazy"),zt=Symbol.for("react.activity"),kt=Symbol.for("react.legacy_hidden"),Pt=Symbol.for("react.memo_cache_sentinel"),p=Symbol.for("react.view_transition"),q=Symbol.for("react.recoverable"),I=Symbol.iterator;function at(t){return t===null||typeof t!="object"?null:(t=I&&t[I]||t["@@iterator"],typeof t=="function"?t:null)}var jt=Symbol.for("react.client.reference");function vt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===jt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Tt:return"Fragment";case ot:return"Profiler";case J:return"StrictMode";case L:return"Suspense";case X:return"SuspenseList";case zt:return"Activity";case p:return"ViewTransition"}if(typeof t=="object")switch(t.$$typeof){case St:return"Portal";case Dt:return t.displayName||"Context";case Wt:return(t._context.displayName||"Context")+".Consumer";case x:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case ct:return e=t.displayName||null,e!==null?e:vt(t.type)||"Memo";case ut:e=t._payload,t=t._init;try{return vt(t(e))}catch{}}return null}var Nt=Array.isArray,P=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,rt=h.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_e={pending:!1,data:null,method:null,action:null},Xl=[],Je=-1;function Vt(t){return{current:t}}function Zt(t){0>Je||(t.current=Xl[Je],Xl[Je]=null,Je--)}function H(t,e){Je++,Xl[Je]=t.current,t.current=e}var Ft=Vt(null),$e=Vt(null),ce=Vt(null),dt=Vt(null);function il(t,e){switch(H(ce,e),H($e,t),H(Ft,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?em(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=em(e),t=lm(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Zt(Ft),H(Ft,t)}function Ql(){Zt(Ft),Zt($e),Zt(ce)}function Va(t){var e=t.memoizedState;e!==null&&(Hn._currentValue=e.memoizedState,H(dt,t)),e=Ft.current;var l=lm(e,t.type);e!==l&&(H($e,t),H(Ft,l))}function ve(t){$e.current===t&&(Zt(Ft),Zt($e)),dt.current===t&&(Zt(dt),Hn._currentValue=_e)}var Za,Vn;function ul(t){if(Za===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);Za=e&&e[1]||"",Vn=-1<l.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+Za+t+Vn}var Ka=!1;function Ja(t,e){if(!t||Ka)return"";Ka=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var R=function(){throw Error()};if(Object.defineProperty(R.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(R,[])}catch(Z){var j=Z}Reflect.construct(t,[],R)}else{try{R.call()}catch(Z){j=Z}R=!1;try{var z=Object.getOwnPropertyDescriptor(t.prototype,"props");Object.defineProperty(t.prototype,"props",{configurable:!0,set:function(){throw Error()}}),R=!0,new t}finally{R&&(z!==void 0?Object.defineProperty(t.prototype,"props",z):delete t.prototype.props)}}}else{try{throw Error()}catch(Z){j=Z}(R=t())&&typeof R.catch=="function"&&R.catch(function(){})}}catch(Z){if(Z&&j&&typeof Z.stack=="string")return[Z.stack,j.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=a.DetermineComponentFrameRoot(),s=i[0],f=i[1];if(s&&f){var m=s.split(`
44
+ `),E=f.split(`
45
+ `);for(n=a=0;a<m.length&&!m[a].includes("DetermineComponentFrameRoot");)a++;for(;n<E.length&&!E[n].includes("DetermineComponentFrameRoot");)n++;if(a===m.length||n===E.length)for(a=m.length-1,n=E.length-1;1<=a&&0<=n&&m[a]!==E[n];)n--;for(;1<=a&&0<=n;a--,n--)if(m[a]!==E[n]){if(a!==1||n!==1)do if(a--,n--,0>n||m[a]!==E[n]){var M=`
46
+ `+m[a].replace(" at new "," at ");return t.displayName&&M.includes("<anonymous>")&&(M=M.replace("<anonymous>",t.displayName)),M}while(1<=a&&0<=n);break}}}finally{Ka=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?ul(l):""}function Vi(t,e){switch(t.tag){case 26:case 27:case 5:return ul(t.type);case 16:return ul("Lazy");case 13:return t.child!==e&&e!==null?ul("Suspense Fallback"):ul("Suspense");case 19:return ul("SuspenseList");case 0:case 15:return Ja(t.type,!1);case 11:return Ja(t.type.render,!1);case 1:return Ja(t.type,!0);case 31:return ul("Activity");case 30:return ul("ViewTransition");default:return""}}function Zn(t){try{var e="",l=null;do e+=Vi(t,l),l=t,t=t.return;while(t);return e}catch(a){return`
47
+ Error generating stack: `+a.message+`
48
+ `+a.stack}}var Q=Object.prototype.hasOwnProperty,pt=c.unstable_scheduleCallback,Lt=c.unstable_cancelCallback,mt=c.unstable_shouldYield,xt=c.unstable_requestPaint,Mt=c.unstable_now,Kt=c.unstable_getCurrentPriorityLevel,fe=c.unstable_ImmediatePriority,Zi=c.unstable_UserBlockingPriority,$a=c.unstable_NormalPriority,Ki=c.unstable_LowPriority,xa=c.unstable_IdlePriority,Y0=c.log,X0=c.unstable_setDisableYieldValue,Kn=null,He=null;function Vl(t){if(typeof Y0=="function"&&X0(t),He&&typeof He.setStrictMode=="function")try{He.setStrictMode(Kn,t)}catch{}}var Be=Math.clz32?Math.clz32:Z0,Q0=Math.log,V0=Math.LN2;function Z0(t){return t>>>=0,t===0?32:31-(Q0(t)/V0|0)|0}var Ji=256,$i=262144,ki=4194304;function pa(t){var e=t&42;if(e!==0)return e;switch(t&-t){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 t&-t;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Fi(t,e,l){var a=t.pendingLanes;if(a===0)return 0;var n=0,i=t.suspendedLanes,s=t.pingedLanes;t=t.warmLanes;var f=a&134217727;return f!==0?(a=f&~i,a!==0?n=pa(a):(s&=f,s!==0?n=pa(s):l||(l=f&~t,l!==0&&(n=pa(l))))):(f=a&~i,f!==0?n=pa(f):s!==0?n=pa(s):l||(l=a&~t,l!==0&&(n=pa(l)))),n===0?0:e!==0&&e!==n&&(e&i)===0&&(i=n&-n,l=e&-e,i>=l||i===32&&(l&4194048)!==0)?e:n}function Jn(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Tf(t,e){(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var a=31-Be(l),n=1<<a;e|=t[a],l&=~n}return e}function K0(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+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 e+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 zf(){var t=ki;return ki<<=1,(ki&62914560)===0&&(ki=4194304),t}function Ds(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function $n(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function J0(t,e,l,a,n,i){var s=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var f=t.entanglements,m=t.expirationTimes,E=t.hiddenUpdates;for(l=s&~l;0<l;){var M=31-Be(l),R=1<<M;f[M]=0,m[M]=-1;var j=E[M];if(j!==null)for(E[M]=null,M=0;M<j.length;M++){var z=j[M];z!==null&&(z.lane&=-536870913)}l&=~R}a!==0&&Mf(t,a,0),i!==0&&n===0&&t.tag!==0&&(t.suspendedLanes|=i&~(s&~e))}function Mf(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-Be(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|l&261930}function Of(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var a=31-Be(l),n=1<<a;n&e|t[a]&e&&(t[a]|=e),l&=~n}}function Af(t,e){var l=e&-e;return l=(l&42)!==0?1:Rs(l),(l&(t.suspendedLanes|e))!==0?0:l}function Rs(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Us(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Cf(){var t=rt.p;return t!==0?t:(t=window.event,t===void 0?32:Gm(t.type))}function Df(t,e){var l=rt.p;try{return rt.p=t,e()}finally{rt.p=l}}var zl=Math.random().toString(36).slice(2),ye="__reactFiber$"+zl,Ae="__reactProps$"+zl,ka="__reactContainer$"+zl,Rf="__reactEvents$"+zl,$0="__reactListeners$"+zl,k0="__reactHandles$"+zl,Uf="__reactResources$"+zl,kn="__reactMarker$"+zl,Wi="__reactLoad$"+zl;function Ii(t){delete t[ye],delete t[Ae],delete t[$0],delete t[k0]}function ba(t){var e;if(e=t[ye])return e;for(var l=t.parentNode;l;){if(e=l[ka]||l[ye]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=pm(t);t!==null;){if(l=t[ye])return l;t=pm(t)}return e}t=l,l=t.parentNode}return null}function Fa(t){if(t=t[ye]||t[ka]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Fn(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function Wa(t){var e=t[Uf];return e||(e=t[Uf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function oe(t){t[kn]=!0}function wf(t){t[Wi]=void 0}var Hf=new Set,Bf={};function ja(t,e){Ia(t,e),Ia(t+"Capture",e)}function Ia(t,e){for(Bf[t]=e,t=0;t<e.length;t++)Hf.add(e[t])}var F0=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]*$"),qf={},Gf={};function W0(t){return Q.call(Gf,t)?!0:Q.call(qf,t)?!1:F0.test(t)?Gf[t]=!0:(qf[t]=!0,!1)}var Rt=!1;function Lf(){var t=Rt;return Rt=!1,t}function Pi(t,e,l){if(W0(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,l)}}function tu(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,l)}}function Ml(t,e,l,a){if(a===null)t.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,a)}}function qe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Yf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function I0(t,e,l){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,i=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.call(this)},set:function(s){l=""+s,i.call(this,s)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(s){l=""+s},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ws(t){if(!t._valueTracker){var e=Yf(t)?"checked":"value";t._valueTracker=I0(t,e,""+t[e])}}function Xf(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),a="";return t&&(a=Yf(t)?t.checked?"true":"false":t.value),t=a,t!==l?(e.setValue(t),!0):!1}var P0=/[\n"\\]/g;function ke(t){return t.replace(P0,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Hs(t,e,l,a,n,i,s,f){t.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?t.type=s:t.removeAttribute("type"),e!=null?s==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+qe(e)):t.value!==""+qe(e)&&(t.value=""+qe(e)):s!=="submit"&&s!=="reset"||t.removeAttribute("value"),e!=null?s==="number"&&t.value==e?Bs(t,qe(t.value)):Bs(t,qe(e)):l!=null?Bs(t,qe(l)):a!=null&&t.removeAttribute("value"),n==null&&i!=null&&(t.defaultChecked=!!i),n!=null&&(t.checked=n&&typeof n!="function"&&typeof n!="symbol"),f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.name=""+qe(f):t.removeAttribute("name")}function Qf(t,e,l,a,n,i,s,f){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(t.type=i),e!=null||l!=null){if(!(i!=="submit"&&i!=="reset"||e!=null)){ws(t);return}l=l!=null?""+qe(l):"",e=e!=null?""+qe(e):l,f||e===t.value||(t.value=e),t.defaultValue=e}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=f?t.checked:!!a,t.defaultChecked=!!a,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(t.name=s),ws(t)}function Bs(t,e){t.defaultValue!==""+e&&(t.defaultValue=""+e)}function Pa(t,e,l,a){if(t=t.options,e){e={};for(var n=0;n<l.length;n++)e["$"+l[n]]=!0;for(l=0;l<t.length;l++)n=e.hasOwnProperty("$"+t[l].value),t[l].selected!==n&&(t[l].selected=n),n&&a&&(t[l].defaultSelected=!0)}else{for(l=""+qe(l),e=null,n=0;n<t.length;n++){if(t[n].value===l){t[n].selected=!0,a&&(t[n].defaultSelected=!0);return}e!==null||t[n].disabled||(e=t[n])}e!==null&&(e.selected=!0)}}function Vf(t,e,l){if(e!=null&&(e=""+qe(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+qe(l):""}function Zf(t,e,l,a){if(e==null){if(a!=null){if(l!=null)throw Error(o(92));if(Nt(a)){if(1<a.length)throw Error(o(93));a=a[0]}l=a}l==null&&(l=""),e=l}l=qe(e),t.defaultValue=l,a=t.textContent,a===l&&a!==""&&a!==null&&(t.value=a),ws(t)}function tn(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var tv=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 Kf(t,e,l){var a=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,l):typeof l!="number"||l===0||tv.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function Jf(t,e,l){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="",Rt=!0);for(var n in e)a=e[n],e.hasOwnProperty(n)&&l[n]!==a&&(Kf(t,n,a),Rt=!0)}else for(var i in e)e.hasOwnProperty(i)&&Kf(t,i,e[i])}function qs(t){if(t.indexOf("-")===-1)return!1;switch(t){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 ev=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"],["maskType","mask-type"],["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"]]),lv=/^[\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 eu(t){return lv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ml(){}var Gs=null;function Ls(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var en=null,ln=null;function $f(t){var e=Fa(t);if(e&&(t=e.stateNode)){var l=t[Ae]||null;t:switch(t=e.stateNode,e.type){case"input":if(Hs(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+ke(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var a=l[e];if(a!==t&&a.form===t.form){var n=a[Ae]||null;if(!n)throw Error(o(90));Hs(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(e=0;e<l.length;e++)a=l[e],a.form===t.form&&Xf(a)}break t;case"textarea":Vf(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&Pa(t,!!l.multiple,e,!1)}}}var Ys=!1;function kf(t,e,l){if(Ys)return t(e,l);Ys=!0;try{var a=t(e);return a}finally{if(Ys=!1,(en!==null||ln!==null)&&(es(),en&&(e=en,t=ln,ln=en=null,$f(e),t)))for(e=0;e<t.length;e++)$f(t[e])}}function Wn(t,e){var l=t.stateNode;if(l===null)return null;var a=l[Ae]||null;if(a===null)return null;l=a[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(o(231,e,typeof l));return l}var Ol=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Xs=!1;if(Ol)try{var In={};Object.defineProperty(In,"passive",{get:function(){Xs=!0}}),window.addEventListener("test",In,In),window.removeEventListener("test",In,In)}catch{Xs=!1}var Zl=null,Qs=null,lu=null;function Ff(){if(lu)return lu;var t,e=Qs,l=e.length,a,n="value"in Zl?Zl.value:Zl.textContent,i=n.length;for(t=0;t<l&&e[t]===n[t];t++);var s=l-t;for(a=1;a<=s&&e[l-a]===n[i-a];a++);return lu=n.slice(t,1<a?1-a:void 0)}function au(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function nu(){return!0}function Wf(){return!1}function Te(t){function e(l,a,n,i,s){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var f in t)t.hasOwnProperty(f)&&(l=t[f],this[f]=l?l(i):i[f]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?nu:Wf,this.isPropagationStopped=Wf,this}return U(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=nu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=nu)},persist:function(){},isPersistent:nu}),e}var Kl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},iu=Te(Kl),Pn=U({},Kl,{view:0,detail:0}),av=Te(Pn),Vs,Zs,ti,uu=U({},Pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Js,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ti&&(ti&&t.type==="mousemove"?(Vs=t.screenX-ti.screenX,Zs=t.screenY-ti.screenY):Zs=Vs=0,ti=t),Vs)},movementY:function(t){return"movementY"in t?t.movementY:Zs}}),If=Te(uu),nv=U({},uu,{dataTransfer:0}),iv=Te(nv),uv=U({},Pn,{relatedTarget:0}),Ks=Te(uv),sv=U({},Kl,{animationName:0,elapsedTime:0,pseudoElement:0}),cv=Te(sv),rv=U({},Kl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),fv=Te(rv),ov=U({},Kl,{data:0}),Pf=Te(ov),dv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hv={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"},mv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=mv[t])?!!e[t]:!1}function Js(){return vv}var yv=U({},Pn,{key:function(t){if(t.key){var e=dv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=au(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?hv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Js,charCode:function(t){return t.type==="keypress"?au(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?au(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),gv=Te(yv),xv=U({},uu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),to=Te(xv),pv=U({},Kl,{submitter:0}),bv=Te(pv),jv=U({},Pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Js}),Sv=Te(jv),Nv=U({},Kl,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ev=Te(Nv),_v=U({},uu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Tv=Te(_v),zv=U({},Kl,{newState:0,oldState:0,source:0}),Mv=Te(zv),Ov=[9,13,27,32],$s=Ol&&"CompositionEvent"in window,ei=null;Ol&&"documentMode"in document&&(ei=document.documentMode);var Av=Ol&&"TextEvent"in window&&!ei,eo=Ol&&(!$s||ei&&8<ei&&11>=ei),lo=" ",ao=!1;function no(t,e){switch(t){case"keyup":return Ov.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function io(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var an=!1;function Cv(t,e){switch(t){case"compositionend":return io(e);case"keypress":return e.which!==32?null:(ao=!0,lo);case"textInput":return t=e.data,t===lo&&ao?null:t;default:return null}}function Dv(t,e){if(an)return t==="compositionend"||!$s&&no(t,e)?(t=Ff(),lu=Qs=Zl=null,an=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return eo&&e.locale!=="ko"?null:e.data;default:return null}}var Rv={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 uo(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Rv[t.type]:e==="textarea"}function so(t,e,l,a){en?ln?ln.push(a):ln=[a]:en=a,e=ss(e,"onChange"),0<e.length&&(l=new iu("onChange","change",null,l,a),t.push({event:l,listeners:e}))}var li=null,ai=null;function Uv(t){kh(t,0)}function su(t){var e=Fn(t);if(Xf(e))return t}function co(t,e){if(t==="change")return e}var ro=!1;if(Ol){var ks;if(Ol){var Fs="oninput"in document;if(!Fs){var fo=document.createElement("div");fo.setAttribute("oninput","return;"),Fs=typeof fo.oninput=="function"}ks=Fs}else ks=!1;ro=ks&&(!document.documentMode||9<document.documentMode)}function oo(){li&&(li.detachEvent("onpropertychange",ho),ai=li=null)}function ho(t){if(t.propertyName==="value"&&su(ai)){var e=[];so(e,ai,t,Ls(t)),kf(Uv,e)}}function wv(t,e,l){t==="focusin"?(oo(),li=e,ai=l,li.attachEvent("onpropertychange",ho)):t==="focusout"&&oo()}function Hv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return su(ai)}function Bv(t,e){if(t==="click")return su(e)}function qv(t,e){if(t==="input"||t==="change")return su(e)}function Gv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ge=typeof Object.is=="function"?Object.is:Gv;function ni(t,e){if(Ge(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),a=Object.keys(e);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Q.call(e,n)||!Ge(t[n],e[n]))return!1}return!0}function Ws(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function mo(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function vo(t,e){var l=mo(t);t=0;for(var a;l;){if(l.nodeType===3){if(a=t+l.textContent.length,t<=e&&a>=e)return{node:l,offset:e-t};t=a}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=mo(l)}}function yo(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?yo(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function go(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ws(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=Ws(t.document)}return e}function Is(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Lv=Ol&&"documentMode"in document&&11>=document.documentMode,nn=null,Ps=null,ii=null,tc=!1;function xo(t,e,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;tc||nn==null||nn!==Ws(a)||(a=nn,"selectionStart"in a&&Is(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),ii&&ni(ii,a)||(ii=a,a=ss(Ps,"onSelect"),0<a.length&&(e=new iu("onSelect","select",null,e,l),t.push({event:e,listeners:a}),e.target=nn)))}function Sa(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var un={animationend:Sa("Animation","AnimationEnd"),animationiteration:Sa("Animation","AnimationIteration"),animationstart:Sa("Animation","AnimationStart"),transitionrun:Sa("Transition","TransitionRun"),transitionstart:Sa("Transition","TransitionStart"),transitioncancel:Sa("Transition","TransitionCancel"),transitionend:Sa("Transition","TransitionEnd")},ec={},po={};Ol&&(po=document.createElement("div").style,"AnimationEvent"in window||(delete un.animationend.animation,delete un.animationiteration.animation,delete un.animationstart.animation),"TransitionEvent"in window||delete un.transitionend.transition);function Na(t){if(ec[t])return ec[t];if(!un[t])return t;var e=un[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in po)return ec[t]=e[l];return t}var bo=Na("animationend"),jo=Na("animationiteration"),So=Na("animationstart"),Yv=Na("transitionrun"),Xv=Na("transitionstart"),Qv=Na("transitioncancel"),No=Na("transitionend"),Eo=new Map,lc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(" ");lc.push("scrollEnd");function sl(t,e){Eo.set(t,e),ja(e,[t])}var Vv=0;function Al(t,e){if(t.name!=null&&t.name!=="auto")return t.name;if(e.autoName!==null)return e.autoName;t=ol.identifierPrefix;var l=Vv++;return t="_"+t+"t_"+l.toString(32)+"_",e.autoName=t}function _o(t){if(t==null||typeof t=="string")return t;var e=null,l=Tn;if(l!==null)for(var a=0;a<l.length;a++){var n=t[l[a]];if(n!=null){if(n==="none")return"none";e=e==null?n:e+(" "+n)}}return e??t.default}function Cl(t,e){return t=_o(t),e=_o(e),e==null?t==="auto"?null:t:e==="auto"?null:e}var cu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Fe=[],sn=0,ac=0;function ru(){for(var t=sn,e=ac=sn=0;e<t;){var l=Fe[e];Fe[e++]=null;var a=Fe[e];Fe[e++]=null;var n=Fe[e];Fe[e++]=null;var i=Fe[e];if(Fe[e++]=null,a!==null&&n!==null){var s=a.pending;s===null?n.next=n:(n.next=s.next,s.next=n),a.pending=n}i!==0&&To(l,n,i)}}function fu(t,e,l,a){Fe[sn++]=t,Fe[sn++]=e,Fe[sn++]=l,Fe[sn++]=a,ac|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function nc(t,e,l,a){return fu(t,e,l,a),ou(t)}function Ea(t,e){return fu(t,null,null,e),ou(t)}function To(t,e,l){t.lanes|=l;var a=t.alternate;a!==null&&(a.lanes|=l);for(var n=!1,i=t.return;i!==null;)i.childLanes|=l,a=i.alternate,a!==null&&(a.childLanes|=l),i.tag===22&&(t=i.stateNode,t===null||t._visibility&1||(n=!0)),t=i,i=i.return;return t.tag===3?(i=t.stateNode,n&&e!==null&&(n=31-Be(l),t=i.hiddenUpdates,a=t[n],a===null?t[n]=[e]:a.push(e),e.lane=l|536870912),i):null}function ou(t){if(50<zi)throw zi=0,ts=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var cn={};function Zv(t,e,l,a){this.tag=t,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ce(t,e,l,a){return new Zv(t,e,l,a)}function ic(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Dl(t,e){var l=t.alternate;return l===null?(l=Ce(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&1206910976,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function zo(t,e){t.flags&=1206910978;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function du(t,e,l,a,n,i){var s=0;if(a=t,typeof a=="function")ic(a)&&(s=1);else if(typeof a=="string")s=p1(t,l,Ft.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(a){case zt:return t=Ce(31,l,e,n),t.elementType=zt,t.lanes=i,t;case Tt:return _a(l.children,n,i,e);case J:s=8,n|=24;break;case ot:return t=Ce(12,l,e,n|2),t.elementType=ot,t.lanes=i,t;case L:return t=Ce(13,l,e,n),t.elementType=L,t.lanes=i,t;case X:return t=Ce(19,l,e,n),t.elementType=X,t.lanes=i,t;case kt:case p:return t=n|32,t=Ce(30,l,e,t),t.elementType=p,t.lanes=i,t.stateNode={autoName:null,paired:null,clones:null,ref:null},t;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case Dt:s=10;break t;case Wt:s=9;break t;case x:s=11;break t;case ct:s=14;break t;case ut:s=16,a=null;break t}s=29,l=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=Ce(s,l,e,n),e.elementType=t,e.type=a,e.lanes=i,e}function _a(t,e,l,a){return t=Ce(7,t,a,e),t.lanes=l,t}function uc(t,e,l){return t=Ce(6,t,null,e),t.lanes=l,t}function Mo(t){var e=Ce(18,null,null,0);return e.stateNode=t,e}function sc(t,e,l){return e=Ce(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Oo=new WeakMap;function We(t,e){if(typeof t=="object"&&t!==null){var l=Oo.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Zn(e)},Oo.set(t,e),e)}return{value:t,source:e,stack:Zn(e)}}var rn=[],fn=0,hu=null,ui=0,Ie=[],Pe=0,Jl=null,vl=1,yl="";function Rl(t,e){rn[fn++]=ui,rn[fn++]=hu,hu=t,ui=e}function Ao(t,e,l){Ie[Pe++]=vl,Ie[Pe++]=yl,Ie[Pe++]=Jl,Jl=t;var a=vl;t=yl;var n=32-Be(a)-1;a&=~(1<<n),l+=1;var i=32-Be(e)+n;if(30<i){var s=n-n%5;i=(a&(1<<s)-1).toString(32),a>>=s,n-=s,vl=1<<32-Be(e)+n|l<<n|a,yl=i+t}else vl=1<<i|l<<n|a,yl=t}function mu(t){t.return!==null&&(Rl(t,1),Ao(t,1,0))}function cc(t){for(;t===hu;)hu=rn[--fn],rn[fn]=null,ui=rn[--fn],rn[fn]=null;for(;t===Jl;)Jl=Ie[--Pe],Ie[Pe]=null,yl=Ie[--Pe],Ie[Pe]=null,vl=Ie[--Pe],Ie[Pe]=null}function Co(t,e){Ie[Pe++]=vl,Ie[Pe++]=yl,Ie[Pe++]=Jl,vl=e.id,yl=e.overflow,Jl=t}var de=null,Jt=null,bt=!1,$l=null,tl=!1,rc=Error(o(519));function kl(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw si(We(e,t)),rc}function Do(t){var e=t.stateNode,l=t.type,a=t.memoizedProps;switch(e[ye]=t,e[Ae]=a,l){case"dialog":_t("cancel",e),_t("close",e);break;case"iframe":case"object":case"embed":_t("load",e);break;case"video":case"audio":for(l=0;l<Oi.length;l++)_t(Oi[l],e);break;case"source":_t("error",e);break;case"img":case"image":case"link":_t("error",e),_t("load",e);break;case"details":_t("toggle",e);break;case"input":_t("invalid",e),Qf(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":_t("invalid",e);break;case"textarea":_t("invalid",e),Zf(e,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||a.suppressHydrationWarning===!0||Ph(e.textContent,l)?(a.popover!=null&&(_t("beforetoggle",e),_t("toggle",e)),a.onScroll!=null&&_t("scroll",e),a.onScrollEnd!=null&&_t("scrollend",e),a.onClick!=null&&(e.onclick=ml),e=!0):e=!1,e||kl(t,!0)}function vu(t){for(de=t.return;de;)switch(de.tag){case 5:case 31:case 13:tl=!1;return;case 27:case 3:tl=!0;return;default:de=de.return}}function on(t){if(t!==de)return!1;if(!bt)return vu(t),bt=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Gr(t.type,t.memoizedProps)),l=!l),l&&Jt&&kl(t),vu(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Jt=xm(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Jt=xm(t)}else e===27?(e=Jt,oa(t.type)?(t=$r,$r=null,Jt=t):Jt=e):Jt=de?ll(t.stateNode.nextSibling):null;return!0}function Ta(){Jt=de=null,bt=!1}function fc(){var t=$l;return t!==null&&(Ue===null?Ue=t:Ue.push.apply(Ue,t),$l=null),t}function si(t){$l===null?$l=[t]:$l.push(t)}var oc=Vt(null),za=null,Ul=null;function Fl(t,e,l){H(oc,e._currentValue),e._currentValue=l}function wl(t){t._currentValue=oc.current,Zt(oc)}function yu(t,e,l){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===l)break;t=t.return}}function dc(t,e,l,a){var n=t.child;for(n!==null&&(n.return=t);n!==null;){var i=n.dependencies;if(i!==null){var s=n.child;i=i.firstContext;t:for(;i!==null;){var f=i;i=n;for(var m=0;m<e.length;m++)if(f.context===e[m]){i.lanes|=l,f=i.alternate,f!==null&&(f.lanes|=l),yu(i.return,l,t),a||(s=null);break t}i=f.next}}else if(n.tag===18){if(s=n.return,s===null)throw Error(o(341));s.lanes|=l,i=s.alternate,i!==null&&(i.lanes|=l),yu(s,l,t),s=null}else n.tag===13&&n.memoizedState!==null&&n.memoizedState.dehydrated===null?(n.lanes|=l,s=n.alternate,s!==null&&(s.lanes|=l),yu(n.return,l,t),s=n.child,s=s!==null?s.sibling:null):s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===t){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}}function Ma(t,e,l,a){t=null;for(var n=e,i=!1;n!==null;){if(!i){if((n.flags&524288)!==0)i=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var s=n.alternate;if(s===null)throw Error(o(387));if(s=s.memoizedProps,s!==null){var f=n.type;Ge(n.pendingProps.value,s.value)||(t!==null?t.push(f):t=[f])}}else if(n===dt.current){if(s=n.alternate,s===null)throw Error(o(387));s.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(t!==null?t.push(Hn):t=[Hn])}n=n.return}return t!==null&&dc(e,t,l,a),e.flags|=262144,t!==null}function gu(t){for(t=t.firstContext;t!==null;){if(!Ge(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Oa(t){za=t,Ul=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ge(t){return Ro(za,t)}function xu(t,e){return za===null&&Oa(t),Ro(t,e)}function Ro(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},Ul===null){if(t===null)throw Error(o(308));Ul=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Ul=Ul.next=e;return l}var Kv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},Jv=c.unstable_scheduleCallback,$v=c.unstable_NormalPriority,ne={$$typeof:Dt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hc(){return{controller:new Kv,data:new Map,refCount:0}}function ci(t){t.refCount--,t.refCount===0&&Jv($v,function(){t.controller.abort()})}function Uo(t,e){if((t.pendingLanes&4194048)!==0){var l=t.transitionTypes;for(l===null&&(l=t.transitionTypes=[]),t=0;t<e.length;t++){var a=e[t];l.indexOf(a)===-1&&l.push(a)}}}var ri=null;function kv(t){var e=t.transitionTypes;return t.transitionTypes=null,e}var fi=null,mc=0,Aa=0,dn=null;function Fv(t,e){if(fi===null){var l=fi=[];mc=0,Aa=Ar(),dn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return mc++,e.then(wo,wo),e}function wo(){if(--mc===0&&(ri=null,fi!==null)){dn!==null&&(dn.status="fulfilled");var t=fi;fi=null,Aa=0,dn=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Wv(t,e){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var n=0;n<l.length;n++)(0,l[n])(e)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var Ho=P.S;P.S=function(t,e){if(Mh=Mt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Fv(t,e),ri!==null)for(var l=An;l!==null;)Uo(l,ri),l=l.next;if(l=t.types,l!==null){for(var a=An;a!==null;)Uo(a,l),a=a.next;if(Aa!==0){a=ri,a===null&&(a=ri=[]);for(var n=0;n<l.length;n++){var i=l[n];a.indexOf(i)===-1&&a.push(i)}}}Ho!==null&&Ho(t,e)};var Ca=Vt(null);function vc(){var t=Ca.current;return t!==null?t:Qt.pooledCache}function pu(t,e){e===null?H(Ca,Ca.current):H(Ca,e.pool)}function Bo(){var t=vc();return t===null?null:{parent:ne._currentValue,pool:t}}var hn=Error(o(460)),yc=Error(o(474)),bu=Error(o(542)),ju={then:function(){}};function qo(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Go(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(ml,ml),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Yo(t),t===void 0&&!("reason"in e)?Error(o(600)):t;default:if(typeof e.status=="string")e.then(ml,ml);else{if(t=Qt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var n=e;n.status="fulfilled",n.value=a}},function(a){if(e.status==="pending"){var n=e;n.status="rejected",n.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Yo(t),t}throw Ra=e,hn}}function Da(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Ra=l,hn):l}}var Ra=null;function Lo(){if(Ra===null)throw Error(o(459));var t=Ra;return Ra=null,t}function Yo(t){if(t===hn||t===bu)throw Error(o(483))}var mn=null,oi=0;function Su(t){var e=oi;return oi+=1,mn===null&&(mn=[]),Go(mn,t,e)}function Wl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Nu(t,e){throw e.$$typeof===Y?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Xo(t){function e(S,g){if(t){var _=S.deletions;_===null?(S.deletions=[g],S.flags|=16):_.push(g)}}function l(S,g){if(!t)return null;for(;g!==null;)e(S,g),g=g.sibling;return null}function a(S){for(var g=new Map;S!==null;)S.key===null?g.set(S.index,S):g.set(S.key,S),S=S.sibling;return g}function n(S,g){return S=Dl(S,g),S.index=0,S.sibling=null,S}function i(S,g,_){return S.index=_,t?(_=S.alternate,_!==null?(_=_.index,_<g?(S.flags|=2,g):_):(S.flags|=134217730,g)):(S.flags|=1048576,g)}function s(S){return t&&S.alternate===null&&(S.flags|=134217730),S}function f(S,g,_,D){return g===null||g.tag!==6?(g=uc(_,S.mode,D),g.return=S,g):(g=n(g,_),g.return=S,g)}function m(S,g,_,D){var $=_.type;return $===Tt?(S=M(S,g,_.props.children,D,_.key),Wl(S,_),S):g!==null&&(g.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===ut&&Da($)===g.type)?(g=n(g,_.props),Wl(g,_),g.return=S,g):(g=du(_.type,_.key,_.props,null,S.mode,D),Wl(g,_),g.return=S,g)}function E(S,g,_,D){return g===null||g.tag!==4||g.stateNode.containerInfo!==_.containerInfo||g.stateNode.implementation!==_.implementation?(g=sc(_,S.mode,D),g.return=S,g):(g=n(g,_.children||[]),g.return=S,g)}function M(S,g,_,D,$){return g===null||g.tag!==7?(g=_a(_,S.mode,D,$),g.return=S,g):(g=n(g,_),g.return=S,g)}function R(S,g,_){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=uc(""+g,S.mode,_),g.return=S,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case it:return _=du(g.type,g.key,g.props,null,S.mode,_),Wl(_,g),_.return=S,_;case St:return g=sc(g,S.mode,_),g.return=S,g;case ut:return g=Da(g),R(S,g,_)}if(Nt(g)||at(g))return g=_a(g,S.mode,_,null),g.return=S,g;if(typeof g.then=="function")return R(S,Su(g),_);if(g.$$typeof===Dt)return R(S,xu(S,g),_);Nu(S,g)}return null}function j(S,g,_,D){var $=g!==null?g.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return $!==null?null:f(S,g,""+_,D);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case it:return _.key===$?m(S,g,_,D):null;case St:return _.key===$?E(S,g,_,D):null;case ut:return _=Da(_),j(S,g,_,D)}if(Nt(_)||at(_))return $!==null?null:M(S,g,_,D,null);if(typeof _.then=="function")return j(S,g,Su(_),D);if(_.$$typeof===Dt)return j(S,g,xu(S,_),D);Nu(S,_)}return null}function z(S,g,_,D,$){if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return S=S.get(_)||null,f(g,S,""+D,$);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case it:return S=S.get(D.key===null?_:D.key)||null,m(g,S,D,$);case St:return S=S.get(D.key===null?_:D.key)||null,E(g,S,D,$);case ut:return D=Da(D),z(S,g,_,D,$)}if(Nt(D)||at(D))return S=S.get(_)||null,M(g,S,D,$,null);if(typeof D.then=="function")return z(S,g,_,Su(D),$);if(D.$$typeof===Dt)return z(S,g,_,xu(g,D),$);Nu(g,D)}return null}function Z(S,g,_,D){for(var $=null,At=null,st=g,ft=g=0,se=null;st!==null&&ft<_.length;ft++){st.index>ft?(se=st,st=null):se=st.sibling;var Ct=j(S,st,_[ft],D);if(Ct===null){st===null&&(st=se);break}t&&st&&Ct.alternate===null&&e(S,st),g=i(Ct,g,ft),At===null?$=Ct:At.sibling=Ct,At=Ct,st=se}if(ft===_.length)return l(S,st),bt&&Rl(S,ft),$;if(st===null){for(;ft<_.length;ft++)st=R(S,_[ft],D),st!==null&&(g=i(st,g,ft),At===null?$=st:At.sibling=st,At=st);return bt&&Rl(S,ft),$}for(st=a(st);ft<_.length;ft++)se=z(st,S,ft,_[ft],D),se!==null&&(t&&(Ct=se.alternate,Ct!==null&&st.delete(Ct.key===null?ft:Ct.key)),g=i(se,g,ft),At===null?$=se:At.sibling=se,At=se);return t&&st.forEach(function(ya){return e(S,ya)}),bt&&Rl(S,ft),$}function et(S,g,_,D){if(_==null)throw Error(o(151));for(var $=null,At=null,st=g,ft=g=0,se=null,Ct=_.next();st!==null&&!Ct.done;ft++,Ct=_.next()){st.index>ft?(se=st,st=null):se=st.sibling;var ya=j(S,st,Ct.value,D);if(ya===null){st===null&&(st=se);break}t&&st&&ya.alternate===null&&e(S,st),g=i(ya,g,ft),At===null?$=ya:At.sibling=ya,At=ya,st=se}if(Ct.done)return l(S,st),bt&&Rl(S,ft),$;if(st===null){for(;!Ct.done;ft++,Ct=_.next())Ct=R(S,Ct.value,D),Ct!==null&&(g=i(Ct,g,ft),At===null?$=Ct:At.sibling=Ct,At=Ct);return bt&&Rl(S,ft),$}for(st=a(st);!Ct.done;ft++,Ct=_.next())Ct=z(st,S,ft,Ct.value,D),Ct!==null&&(t&&(se=Ct.alternate,se!==null&&st.delete(se.key===null?ft:se.key)),g=i(Ct,g,ft),At===null?$=Ct:At.sibling=Ct,At=Ct);return t&&st.forEach(function(C1){return e(S,C1)}),bt&&Rl(S,ft),$}function gt(S,g,_,D){if(typeof _=="object"&&_!==null&&_.type===Tt&&_.key===null&&_.props.ref===void 0&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case it:t:{for(var $=_.key;g!==null;){if(g.key===$){if($=_.type,$===Tt){if(g.tag===7){l(S,g.sibling),D=n(g,_.props.children),Wl(D,_),D.return=S,S=D;break t}}else if(g.elementType===$||typeof $=="object"&&$!==null&&$.$$typeof===ut&&Da($)===g.type){l(S,g.sibling),D=n(g,_.props),Wl(D,_),D.return=S,S=D;break t}l(S,g);break}else e(S,g);g=g.sibling}_.type===Tt?(D=_a(_.props.children,S.mode,D,_.key),Wl(D,_),D.return=S,S=D):(D=du(_.type,_.key,_.props,null,S.mode,D),Wl(D,_),D.return=S,S=D)}return s(S);case St:t:{for($=_.key;g!==null;){if(g.key===$)if(g.tag===4&&g.stateNode.containerInfo===_.containerInfo&&g.stateNode.implementation===_.implementation){l(S,g.sibling),D=n(g,_.children||[]),D.return=S,S=D;break t}else{l(S,g);break}else e(S,g);g=g.sibling}D=sc(_,S.mode,D),D.return=S,S=D}return s(S);case ut:return _=Da(_),gt(S,g,_,D)}if(Nt(_))return Z(S,g,_,D);if(at(_)){if($=at(_),typeof $!="function")throw Error(o(150));return _=$.call(_),et(S,g,_,D)}if(typeof _.then=="function")return gt(S,g,Su(_),D);if(_.$$typeof===Dt)return gt(S,g,xu(S,_),D);Nu(S,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,g!==null&&g.tag===6?(l(S,g.sibling),D=n(g,_),D.return=S,S=D):(l(S,g),D=uc(_,S.mode,D),D.return=S,S=D),s(S)):l(S,g)}return function(S,g,_,D){try{oi=0;var $=gt(S,g,_,D);return mn=null,$}catch(st){if(st===hn||st===bu)throw st;var At=Ce(29,st,null,S.mode);return At.lanes=D,At.return=S,At}finally{}}}var Ua=Xo(!0),Qo=Xo(!1),Il=!1;function gc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Pl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function ta(t,e,l){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(wt&2)!==0){var n=a.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),a.pending=e,e=ou(t),To(t,null,l),e}return fu(t,a,e,l),ou(t)}function di(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Of(t,l)}}function pc(t,e){var l=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,i=null;if(l=l.firstBaseUpdate,l!==null){do{var s={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};i===null?n=i=s:i=i.next=s,l=l.next}while(l!==null);i===null?n=i=e:i=i.next=e}else n=i=e;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:i,shared:a.shared,callbacks:a.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var bc=!1;function hi(){if(bc){var t=dn;if(t!==null)throw t}}function mi(t,e,l,a){bc=!1;var n=t.updateQueue;Il=!1;var i=n.firstBaseUpdate,s=n.lastBaseUpdate,f=n.shared.pending;if(f!==null){n.shared.pending=null;var m=f,E=m.next;m.next=null,s===null?i=E:s.next=E,s=m;var M=t.alternate;M!==null&&(M=M.updateQueue,f=M.lastBaseUpdate,f!==s&&(f===null?M.firstBaseUpdate=E:f.next=E,M.lastBaseUpdate=m))}if(i!==null){var R=n.baseState;s=0,M=E=m=null,f=i;do{var j=f.lane&-536870913,z=j!==f.lane;if(z?(Ot&j)===j:(a&j)===j){j!==0&&j===Aa&&(bc=!0),M!==null&&(M=M.next={lane:0,tag:f.tag,payload:f.payload,callback:null,next:null});t:{var Z=t,et=f;j=e;var gt=l;switch(et.tag){case 1:if(Z=et.payload,typeof Z=="function"){R=Z.call(gt,R,j);break t}R=Z;break t;case 3:Z.flags=Z.flags&-65537|128;case 0:if(Z=et.payload,j=typeof Z=="function"?Z.call(gt,R,j):Z,j==null)break t;R=U({},R,j);break t;case 2:Il=!0}}j=f.callback,j!==null&&(t.flags|=64,z&&(t.flags|=8192),z=n.callbacks,z===null?n.callbacks=[j]:z.push(j))}else z={lane:j,tag:f.tag,payload:f.payload,callback:f.callback,next:null},M===null?(E=M=z,m=R):M=M.next=z,s|=j;if(f=f.next,f===null){if(f=n.shared.pending,f===null)break;z=f,f=z.next,z.next=null,n.lastBaseUpdate=z,n.shared.pending=null}}while(!0);M===null&&(m=R),n.baseState=m,n.firstBaseUpdate=E,n.lastBaseUpdate=M,i===null&&(n.shared.lanes=0),sa|=s,t.lanes=s,t.memoizedState=R}}function Vo(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Zo(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)Vo(l[t],e)}var ea=Vt(null),Eu=Vt(0);function Ko(t,e){t=Ll,H(Eu,t),H(ea,e),Ll=t|e.baseLanes}function jc(){H(Eu,Ll),H(ea,ea.current)}function Sc(){Ll=Eu.current,Zt(ea),Zt(Eu)}var xe=Vt(null),Ee=null;function la(t){var e=t.alternate;H(pe,pe.current&1),H(xe,t),Ee===null&&(e===null||ea.current!==null||e.memoizedState!==null)&&(Ee=t)}function Nc(t){H(pe,pe.current),H(xe,t),Ee===null&&(Ee=t)}function Jo(t){t.tag===22?(H(pe,pe.current),H(xe,t),Ee===null&&(Ee=t)):aa()}function aa(){H(pe,pe.current),H(xe,xe.current)}function Le(t){Zt(xe),Ee===t&&(Ee=null),Zt(pe)}var pe=Vt(0);function vi(t,e){H(xe,xe.current),H(pe,e)}function Ec(t){Zt(pe),Zt(xe),Ee===t&&(Ee=null)}function _u(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Kr(l)||Jr(l)))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!=="independent"){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Hl=0,yt=null,Yt=null,ie=null,Tu=!1,vn=!1,wa=!1,zu=0,yi=0,yn=null,Iv=0;function ee(){throw Error(o(321))}function _c(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!Ge(t[l],e[l]))return!1;return!0}function Tc(t,e,l,a,n,i){return Hl=i,yt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,P.H=t===null||t.memoizedState===null?Ad:Cd,wa=!1,i=l(a,n),wa=!1,vn&&(i=ko(e,l,a,n)),$o(t),i}function $o(t){P.H=Uu;var e=Yt!==null&&Yt.next!==null;if(Hl=0,ie=Yt=yt=null,Tu=!1,yi=0,yn=null,e)throw Error(o(300));t===null||ue||(t=t.dependencies,t!==null&&gu(t)&&(ue=!0))}function ko(t,e,l,a){yt=t;var n=0;do{if(vn&&(yn=null),yi=0,vn=!1,25<=n)throw Error(o(301));if(n+=1,ie=Yt=null,t.updateQueue!=null){var i=t.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}P.H=uy,i=e(l,a)}while(vn);return i}function Pv(){var t=P.H,e=t.useState()[0];return e=typeof e.then=="function"?gi(e):e,t=t.useState()[0],(Yt!==null?Yt.memoizedState:null)!==t&&(yt.flags|=1024),e}function zc(){var t=zu!==0;return zu=0,t}function Mc(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Oc(t){if(Tu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Tu=!1}Hl=0,ie=Yt=yt=null,vn=!1,yi=zu=0,yn=null}function ze(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ie===null?yt.memoizedState=ie=t:ie=ie.next=t,ie}function ae(){if(Yt===null){var t=yt.alternate;t=t!==null?t.memoizedState:null}else t=Yt.next;var e=ie===null?yt.memoizedState:ie.next;if(e!==null)ie=e,Yt=t;else{if(t===null)throw yt.alternate===null?Error(o(467)):Error(o(310));Yt=t,t={memoizedState:Yt.memoizedState,baseState:Yt.baseState,baseQueue:Yt.baseQueue,queue:Yt.queue,next:null},ie===null?yt.memoizedState=ie=t:ie=ie.next=t}return ie}function Mu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function gi(t){var e=yi;return yi+=1,yn===null&&(yn=[]),t=Go(yn,t,e),e=yt,(ie===null?e.memoizedState:ie.next)===null&&(e=e.alternate,P.H=e===null||e.memoizedState===null?Ad:Cd),t}function Ou(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return gi(t);if(t.$$typeof===q)return;if(t.$$typeof===Dt)return ge(t)}throw Error(o(438,String(t)))}function Ac(t){var e=null,l=yt.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var a=yt.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(n){return n.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=Mu(),yt.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),a=0;a<t;a++)l[a]=Pt;return e.index++,l}function Bl(t,e){return typeof e=="function"?e(t):e}function Au(t){var e=ae();return Cc(e,Yt,t)}function Cc(t,e,l){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=l;var n=t.baseQueue,i=a.pending;if(i!==null){if(n!==null){var s=n.next;n.next=i.next,i.next=s}e.baseQueue=n=i,a.pending=null}if(i=t.baseState,n===null)t.memoizedState=i;else{e=n.next;var f=s=null,m=null,E=e,M=!1;do{var R=E.lane&-536870913;if(R!==E.lane?(Ot&R)===R:(Hl&R)===R){var j=E.revertLane;if(j===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),R===Aa&&(M=!0);else if((Hl&j)===j){E=E.next,j===Aa&&(M=!0);continue}else R={lane:0,revertLane:E.revertLane,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},m===null?(f=m=R,s=i):m=m.next=R,yt.lanes|=j,sa|=j;R=E.action,wa&&l(i,R),i=E.hasEagerState?E.eagerState:l(i,R)}else j={lane:R,revertLane:E.revertLane,gesture:E.gesture,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},m===null?(f=m=j,s=i):m=m.next=j,yt.lanes|=R,sa|=R;E=E.next}while(E!==null&&E!==e);if(m===null?s=i:m.next=f,!Ge(i,t.memoizedState)&&(ue=!0,M&&(l=dn,l!==null)))throw l;t.memoizedState=i,t.baseState=s,t.baseQueue=m,a.lastRenderedState=i}return n===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function Dc(t){var e=ae(),l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=t;var a=l.dispatch,n=l.pending,i=e.memoizedState;if(n!==null){l.pending=null;var s=n=n.next;do i=t(i,s.action),s=s.next;while(s!==n);Ge(i,e.memoizedState)||(ue=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),l.lastRenderedState=i}return[i,a]}function Fo(t,e,l){var a=yt,n=ae(),i=bt;if(i){if(l===void 0)throw Error(o(407));l=l()}else l=e();var s=!Ge((Yt||n).memoizedState,l);if(s&&(n.memoizedState=l,ue=!0),n=n.queue,wc(Po.bind(null,a,n,t),[t]),t=n.getSnapshot!==e||s||ie!==null&&(ie.memoizedState.tag&1)!==0,gn(t?9:8,{destroy:void 0},Io.bind(null,a,n,l,e),null),t){if(a.flags|=2048,Qt===null)throw Error(o(349));i||(Hl&127)!==0||Wo(a,e,l)}return l}function Wo(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=yt.updateQueue,e===null?(e=Mu(),yt.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function Io(t,e,l,a){e.value=l,e.getSnapshot=a,td(e)&&ed(t)}function Po(t,e,l){return l(function(){td(e)&&ed(t)})}function td(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!Ge(t,l)}catch{return!0}}function ed(t){var e=Ea(t,2);e!==null&&we(e,t,2)}function Rc(t){var e=ze();if(typeof t=="function"){var l=t;if(t=l(),wa){Vl(!0);try{l()}finally{Vl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bl,lastRenderedState:t},e}function ld(t,e,l,a){return t.baseState=l,Cc(t,Yt,typeof a=="function"?a:Bl)}function ty(t,e,l,a,n){if(Ru(t))throw Error(o(485));if(t=e.action,t!==null){var i={payload:n,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){i.listeners.push(s)}};P.T!==null?l(!0):i.isTransition=!1,a(i),l=e.pending,l===null?(i.next=e.pending=i,ad(e,i)):(i.next=l.next,e.pending=l.next=i)}}function ad(t,e){var l=e.action,a=e.payload,n=t.state;if(e.isTransition){var i=P.T,s={};s.types=i!==null?i.types:null,P.T=s;try{var f=l(n,a),m=P.S;m!==null&&m(s,f),nd(t,e,f)}catch(E){Uc(t,e,E)}finally{i!==null&&s.types!==null&&(i.types=s.types),P.T=i}}else try{i=l(n,a),nd(t,e,i)}catch(E){Uc(t,e,E)}}function nd(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){id(t,e,a)},function(a){return Uc(t,e,a)}):id(t,e,l)}function id(t,e,l){e.status="fulfilled",e.value=l,ud(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,ad(t,l)))}function Uc(t,e,l){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=l,ud(e),e=e.next;while(e!==a)}t.action=null}function ud(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function sd(t,e){return e}function cd(t,e){if(bt){var l=Qt.formState;if(l!==null){t:{var a=yt;if(bt){if(Jt){e:{for(var n=Jt,i=tl;n.nodeType!==8;){if(!i){n=null;break e}if(n=ll(n.nextSibling),n===null){n=null;break e}}i=n.data,n=i==="F!"||i==="F"?n:null}if(n){Jt=ll(n.nextSibling),a=n.data==="F!";break t}}kl(a)}a=!1}a&&(e=l[0])}}return l=ze(),l.memoizedState=l.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sd,lastRenderedState:e},l.queue=a,l=zd.bind(null,yt,a),a.dispatch=l,a=Rc(!1),i=Lc.bind(null,yt,!1,a.queue),a=ze(),n={state:e,dispatch:null,action:t,pending:null},a.queue=n,l=ty.bind(null,yt,n,i,l),n.dispatch=l,a.memoizedState=t,[e,l,!1]}function rd(t){var e=ae();return fd(e,Yt,t)}function fd(t,e,l){if(e=Cc(t,e,sd)[0],t=Au(Bl)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=gi(e)}catch(s){throw s===hn?bu:s}else a=e;e=ae();var n=e.queue,i=n.dispatch;return l!==e.memoizedState&&(yt.flags|=2048,gn(9,{destroy:void 0},ey.bind(null,n,l),null)),[a,i,t]}function ey(t,e){t.action=e}function od(t){var e=ae(),l=Yt;if(l!==null)return fd(e,l,t);ae(),e=e.memoizedState,l=ae();var a=l.queue.dispatch;return l.memoizedState=t,[e,a,!1]}function gn(t,e,l,a){return t={tag:t,create:l,deps:a,inst:e,next:null},e=yt.updateQueue,e===null&&(e=Mu(),yt.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(a=l.next,l.next=t,t.next=a,e.lastEffect=t),t}function dd(){return ae().memoizedState}function Cu(t,e,l,a){var n=ze();yt.flags|=t,n.memoizedState=gn(1|e,{destroy:void 0},l,a===void 0?null:a)}function Du(t,e,l,a){var n=ae();a=a===void 0?null:a;var i=n.memoizedState.inst;Yt!==null&&a!==null&&_c(a,Yt.memoizedState.deps)?n.memoizedState=gn(e,i,l,a):(yt.flags|=t,n.memoizedState=gn(1|e,i,l,a))}function hd(t,e){Cu(8390656,8,t,e)}function wc(t,e){Du(2048,8,t,e)}function ly(t){yt.flags|=4;var e=yt.updateQueue;if(e===null)e=Mu(),yt.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function md(t){var e=ae().memoizedState;return ly({ref:e,nextImpl:t}),function(){if((wt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function vd(t,e){return Du(4,2,t,e)}function yd(t,e){return Du(4,4,t,e)}function gd(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function xd(t,e,l){l=l!=null?l.concat([t]):null,Du(4,4,gd.bind(null,e,t),l)}function Hc(){}function pd(t,e){var l=ae();e=e===void 0?null:e;var a=l.memoizedState;return e!==null&&_c(e,a[1])?a[0]:(l.memoizedState=[t,e],t)}function bd(t,e){var l=ae();e=e===void 0?null:e;var a=l.memoizedState;if(e!==null&&_c(e,a[1]))return a[0];if(a=t(),wa){Vl(!0);try{t()}finally{Vl(!1)}}return l.memoizedState=[a,e],a}function Bc(t,e,l){return l===void 0||(Hl&1073741824)!==0&&(Ot&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Ah(),yt.lanes|=t,sa|=t,l)}function jd(t,e,l,a){return Ge(l,e)?l:ea.current!==null?(t=Bc(t,l,a),Ge(t,e)||(ue=!0),t):(Hl&106)===0||(Hl&1073741824)!==0&&(Ot&261930)===0?(ue=!0,t.memoizedState=l):(t=Ah(),yt.lanes|=t,sa|=t,e)}function Sd(t,e,l,a,n){var i=rt.p;rt.p=i!==0&&8>i?i:8;var s=P.T,f={};f.types=s!==null?s.types:null,P.T=f,Lc(t,!1,e,l);try{var m=n(),E=P.S;if(E!==null&&E(f,m),m!==null&&typeof m=="object"&&typeof m.then=="function"){var M=Wv(m,a);xi(t,e,M,Ve(t))}else xi(t,e,a,Ve(t))}catch(R){xi(t,e,{then:function(){},status:"rejected",reason:R},Ve())}finally{rt.p=i,s!==null&&f.types!==null&&(s.types=f.types),P.T=s}}function ay(){}function qc(t,e,l,a){if(t.tag!==5)throw Error(o(476));var n=Nd(t).queue;Sd(t,n,e,_e,l===null?ay:function(){return Ed(t),l(a)})}function Nd(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:_e,baseState:_e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bl,lastRenderedState:_e},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Bl,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Ed(t){var e=Nd(t);e.next===null&&(e=t.alternate.memoizedState),xi(t,e.next.queue,{},Ve())}function Gc(){return ge(Hn)}function _d(){return ae().memoizedState}function Td(){return ae().memoizedState}function ny(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=Ve();t=Pl(l);var a=ta(e,t,l);a!==null&&(we(a,e,l),di(a,e,l)),e={cache:hc()},t.payload=e;return}e=e.return}}function iy(t,e,l){var a=Ve();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Ru(t)?Md(e,l):(l=nc(t,e,l,a),l!==null&&(we(l,t,a),Od(l,e,a)))}function zd(t,e,l){var a=Ve();xi(t,e,l,a)}function xi(t,e,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Ru(t))Md(e,n);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var s=e.lastRenderedState,f=i(s,l);if(n.hasEagerState=!0,n.eagerState=f,Ge(f,s))return fu(t,e,n,0),Qt===null&&ru(),!1}catch{}finally{}if(l=nc(t,e,n,a),l!==null)return we(l,t,a),Od(l,e,a),!0}return!1}function Lc(t,e,l,a){if(a={lane:2,revertLane:Ar(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ru(t)){if(e)throw Error(o(479))}else e=nc(t,l,a,2),e!==null&&we(e,t,2)}function Ru(t){var e=t.alternate;return t===yt||e!==null&&e===yt}function Md(t,e){vn=Tu=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Od(t,e,l){if((l&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,l|=a,e.lanes=l,Of(t,l)}}var Uu={readContext:ge,use:Ou,useCallback:ee,useContext:ee,useEffect:ee,useImperativeHandle:ee,useLayoutEffect:ee,useInsertionEffect:ee,useMemo:ee,useReducer:ee,useRef:ee,useState:ee,useDebugValue:ee,useDeferredValue:ee,useTransition:ee,useSyncExternalStore:ee,useId:ee,useHostTransitionStatus:ee,useFormState:ee,useActionState:ee,useOptimistic:ee,useMemoCache:ee,useCacheRefresh:ee,useEffectEvent:ee},Ad={readContext:ge,use:Ou,useCallback:function(t,e){return ze().memoizedState=[t,e===void 0?null:e],t},useContext:ge,useEffect:hd,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Cu(4194308,4,gd.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Cu(4194308,4,t,e)},useInsertionEffect:function(t,e){Cu(4,2,t,e)},useMemo:function(t,e){var l=ze();e=e===void 0?null:e;var a=t();if(wa){Vl(!0);try{t()}finally{Vl(!1)}}return l.memoizedState=[a,e],a},useReducer:function(t,e,l){var a=ze();if(l!==void 0){var n=l(e);if(wa){Vl(!0);try{l(e)}finally{Vl(!1)}}}else n=e;return a.memoizedState=a.baseState=n,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:n},a.queue=t,t=t.dispatch=iy.bind(null,yt,t),[a.memoizedState,t]},useRef:function(t){var e=ze();return t={current:t},e.memoizedState=t},useState:function(t){t=Rc(t);var e=t.queue,l=zd.bind(null,yt,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:Hc,useDeferredValue:function(t,e){var l=ze();return Bc(l,t,e)},useTransition:function(){var t=Rc(!1);return t=Sd.bind(null,yt,t.queue,!0,!1),ze().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var a=yt,n=ze();if(bt){if(l===void 0)throw Error(o(407));l=l()}else{if(l=e(),Qt===null)throw Error(o(349));(Ot&127)!==0||Wo(a,e,l)}n.memoizedState=l;var i={value:l,getSnapshot:e};return n.queue=i,hd(Po.bind(null,a,i,t),[t]),a.flags|=2048,gn(9,{destroy:void 0},Io.bind(null,a,i,l,e),null),l},useId:function(){var t=ze(),e=Qt.identifierPrefix;if(bt){var l=yl,a=vl;l=(a&~(1<<32-Be(a)-1)).toString(32)+l,e="_"+e+"R_"+l,l=zu++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=Iv++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Gc,useFormState:cd,useActionState:cd,useOptimistic:function(t){var e=ze();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=Lc.bind(null,yt,!0,l),l.dispatch=e,[t,e]},useMemoCache:Ac,useCacheRefresh:function(){return ze().memoizedState=ny.bind(null,yt)},useEffectEvent:function(t){var e=ze(),l={impl:t};return e.memoizedState=l,function(){if((wt&2)!==0)throw Error(o(440));return l.impl.apply(void 0,arguments)}}},Cd={readContext:ge,use:Ou,useCallback:pd,useContext:ge,useEffect:wc,useImperativeHandle:xd,useInsertionEffect:vd,useLayoutEffect:yd,useMemo:bd,useReducer:Au,useRef:dd,useState:function(){return Au(Bl)},useDebugValue:Hc,useDeferredValue:function(t,e){var l=ae();return jd(l,Yt.memoizedState,t,e)},useTransition:function(){var t=Au(Bl)[0],e=ae().memoizedState;return[typeof t=="boolean"?t:gi(t),e]},useSyncExternalStore:Fo,useId:_d,useHostTransitionStatus:Gc,useFormState:rd,useActionState:rd,useOptimistic:function(t,e){var l=ae();return ld(l,Yt,t,e)},useMemoCache:Ac,useCacheRefresh:Td,useEffectEvent:md},uy={readContext:ge,use:Ou,useCallback:pd,useContext:ge,useEffect:wc,useImperativeHandle:xd,useInsertionEffect:vd,useLayoutEffect:yd,useMemo:bd,useReducer:Dc,useRef:dd,useState:function(){return Dc(Bl)},useDebugValue:Hc,useDeferredValue:function(t,e){var l=ae();return Yt===null?Bc(l,t,e):jd(l,Yt.memoizedState,t,e)},useTransition:function(){var t=Dc(Bl)[0],e=ae().memoizedState;return[typeof t=="boolean"?t:gi(t),e]},useSyncExternalStore:Fo,useId:_d,useHostTransitionStatus:Gc,useFormState:od,useActionState:od,useOptimistic:function(t,e){var l=ae();return Yt!==null?ld(l,Yt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Ac,useCacheRefresh:Td,useEffectEvent:md};function Yc(t,e,l,a){e=t.memoizedState,l=l(a,e),l=l==null?e:U({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var Xc={enqueueSetState:function(t,e,l){t=t._reactInternals;var a=Ve(),n=Pl(a);n.payload=e,l!=null&&(n.callback=l),e=ta(t,n,a),e!==null&&(we(e,t,a),di(e,t,a))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var a=Ve(),n=Pl(a);n.tag=1,n.payload=e,l!=null&&(n.callback=l),e=ta(t,n,a),e!==null&&(we(e,t,a),di(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=Ve(),a=Pl(l);a.tag=2,e!=null&&(a.callback=e),e=ta(t,a,l),e!==null&&(we(e,t,l),di(e,t,l))}};function Dd(t,e,l,a,n,i,s){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,i,s):e.prototype&&e.prototype.isPureReactComponent?!ni(l,a)||!ni(n,i):!0}function Rd(t,e,l,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,a),e.state!==t&&Xc.enqueueReplaceState(e,e.state,null)}function Ha(t,e){var l=e;if("ref"in e){l={};for(var a in e)a!=="ref"&&(l[a]=e[a])}if(t=t.defaultProps){l===e&&(l=U({},l));for(var n in t)l[n]===void 0&&(l[n]=t[n])}return l}function Ud(t){cu(t)}function wd(t){console.error(t)}function Hd(t){cu(t)}function wu(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Bd(t,e,l){try{var a=t.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Qc(t,e,l){return l=Pl(l),l.tag=3,l.payload={element:null},l.callback=function(){wu(t,e)},l}function qd(t){return t=Pl(t),t.tag=3,t}function Gd(t,e,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var i=a.value;t.payload=function(){return n(i)},t.callback=function(){Bd(e,l,a)}}var s=l.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(t.callback=function(){Bd(e,l,a),typeof n!="function"&&(ca===null?ca=new Set([this]):ca.add(this));var f=a.stack;this.componentDidCatch(a.value,{componentStack:f!==null?f:""})})}function sy(t,e,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=l.alternate,e!==null&&Ma(e,l,n,!0),l=xe.current,l!==null){switch(l.tag){case 31:case 13:case 19:return Ee===null?ls():l.alternate===null&&le===0&&(le=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===ju?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([a]):e.add(a),zr(t,a,n)),!1;case 22:return l.flags|=65536,a===ju?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([a]):l.add(a)),zr(t,a,n)),!1}throw Error(o(435,l.tag))}return zr(t,a,n),ls(),!1}if(bt)return e=xe.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=n,a!==rc&&(t=Error(o(422),{cause:a}),si(We(t,l)))):(a!==rc&&(e=Error(o(423),{cause:a}),si(We(e,l))),t=t.current.alternate,t.flags|=65536,n&=-n,t.lanes|=n,a=We(a,l),n=Qc(t.stateNode,a,n),pc(t,n),le!==4&&(le=2)),!1;var i=Error(o(520),{cause:a});if(i=We(i,l),Ti===null?Ti=[i]:Ti.push(i),le!==4&&(le=2),e===null)return!0;a=We(a,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=n&-n,l.lanes|=t,t=Qc(l.stateNode,a,t),pc(l,t),!1;case 1:if(e=l.type,i=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(ca===null||!ca.has(i))))return l.flags|=65536,n&=-n,l.lanes|=n,n=qd(n),Gd(n,t,l,a),pc(l,n),!1;break;case 22:if(l.memoizedState!==null)return l.flags|=65536,!1}l=l.return}while(l!==null);return!1}var Vc=Error(o(461)),ue=!1;function re(t,e,l,a){e.child=t===null?Qo(e,null,l,a):Ua(e,t.child,l,a)}function Ld(t,e,l,a,n){l=l.render;var i=e.ref;if("ref"in a){var s={};for(var f in a)f!=="ref"&&(s[f]=a[f])}else s=a;return Oa(e),a=Tc(t,e,l,s,i,n),f=zc(),t!==null&&!ue?(Mc(t,e,n),ql(t,e,n)):(bt&&f&&mu(e),e.flags|=1,re(t,e,a,n),e.child)}function Yd(t,e,l,a,n){if(t===null){var i=l.type;return typeof i=="function"&&!ic(i)&&i.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=i,Xd(t,e,i,a,n)):(t=du(l.type,null,a,e,e.mode,n),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,!Ic(t,n)){var s=i.memoizedProps;if(l=l.compare,l=l!==null?l:ni,l(s,a)&&t.ref===e.ref)return ql(t,e,n)}return e.flags|=1,t=Dl(i,a),t.ref=e.ref,t.return=e,e.child=t}function Xd(t,e,l,a,n){if(t!==null){var i=t.memoizedProps;if(ni(i,a)&&t.ref===e.ref)if(ue=!1,e.pendingProps=a=i,Ic(t,n))(t.flags&131072)!==0&&(ue=!0);else return e.lanes=t.lanes,ql(t,e,n)}return Zc(t,e,l,a,n)}function Qd(t,e,l,a){var n=a.children,i=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(i=i!==null?i.baseLanes|l:l,t!==null){for(a=e.child=t.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~i}else a=0,e.child=null;return Vd(t,e,i,l,a)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&pu(e,i!==null?i.cachePool:null),i!==null?Ko(e,i):jc(),Jo(e);else return a=e.lanes=536870912,Vd(t,e,i!==null?i.baseLanes|l:l,l,a)}else i!==null?(pu(e,i.cachePool),Ko(e,i),aa(),e.memoizedState=null):(t!==null&&pu(e,null),jc(),aa());return re(t,e,n,l),e.child}function pi(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Vd(t,e,l,a,n){var i=vc();return i=i===null?null:{parent:ne._currentValue,pool:i},e.memoizedState={baseLanes:l,cachePool:i},t!==null&&pu(e,null),jc(),Jo(e),t!==null&&Ma(t,e,a,!0),e.childLanes=n,null}function Hu(t,e){return e=Bu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Zd(t,e,l){return Ua(e,t.child,null,l),t=Hu(e,e.pendingProps),t.flags|=2,Le(e),e.memoizedState=null,t}function cy(t,e,l){var a=e.pendingProps,n=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(bt){if(a.mode==="hidden")return t=Hu(e,a),e.lanes=536870912,t.memoizedState={baseLanes:0,cachePool:null},pi(null,t);if(Nc(e),(t=Jt)?(t=gm(t,tl),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Jl!==null?{id:vl,overflow:yl}:null,retryLane:536870912,hydrationErrors:null},l=Mo(t),l.return=e,e.child=l,de=e,Jt=null)):t=null,t===null)throw kl(e);return e.lanes=536870912,null}return Hu(e,a)}var i=t.memoizedState;if(i!==null){var s=i.dehydrated;if(Nc(e),n)if(e.flags&256)e.flags&=-257,e=Zd(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(ue||Ma(t,e,l,!1),n=(l&t.childLanes)!==0,ue||n){if(ea.current===null){if(a=Qt,a!==null&&(s=Af(a,l),s!==0&&s!==i.retryLane))throw i.retryLane=s,Ea(t,s),we(a,t,s),Vc;ls()}e=Zd(t,e,l)}else t=i.treeContext,Jt=ll(s.nextSibling),de=e,bt=!0,$l=null,tl=!1,t!==null&&Co(e,t),e=Hu(e,a),e.flags|=134221824;return e}return t=Dl(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function xn(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(o(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function Zc(t,e,l,a,n){return Oa(e),l=Tc(t,e,l,a,void 0,n),a=zc(),t!==null&&!ue?(Mc(t,e,n),ql(t,e,n)):(bt&&a&&mu(e),e.flags|=1,re(t,e,l,n),e.child)}function Kd(t,e,l,a,n,i){return Oa(e),e.updateQueue=null,l=ko(e,a,l,n),$o(t),a=zc(),t!==null&&!ue?(Mc(t,e,i),ql(t,e,i)):(bt&&a&&mu(e),e.flags|=1,re(t,e,l,i),e.child)}function Jd(t,e,l,a,n){if(Oa(e),e.stateNode===null){var i=cn,s=l.contextType;typeof s=="object"&&s!==null&&(i=ge(s)),i=new l(a,i),e.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Xc,e.stateNode=i,i._reactInternals=e,i=e.stateNode,i.props=a,i.state=e.memoizedState,i.refs={},gc(e),s=l.contextType,i.context=typeof s=="object"&&s!==null?ge(s):cn,i.state=e.memoizedState,s=l.getDerivedStateFromProps,typeof s=="function"&&(Yc(e,l,s,a),i.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(s=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),s!==i.state&&Xc.enqueueReplaceState(i,i.state,null),mi(e,a,i,n),hi(),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){i=e.stateNode;var f=e.memoizedProps,m=Ha(l,f);i.props=m;var E=i.context,M=l.contextType;s=cn,typeof M=="object"&&M!==null&&(s=ge(M));var R=l.getDerivedStateFromProps;M=typeof R=="function"||typeof i.getSnapshotBeforeUpdate=="function",f=e.pendingProps!==f,M||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(f||E!==s)&&Rd(e,i,a,s),Il=!1;var j=e.memoizedState;i.state=j,mi(e,a,i,n),hi(),E=e.memoizedState,f||j!==E||Il?(typeof R=="function"&&(Yc(e,l,R,a),E=e.memoizedState),(m=Il||Dd(e,l,m,a,j,E,s))?(M||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(e.flags|=4194308)):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=E),i.props=a,i.state=E,i.context=s,a=m):(typeof i.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{i=e.stateNode,xc(t,e),s=e.memoizedProps,M=Ha(l,s),i.props=M,R=e.pendingProps,j=i.context,E=l.contextType,m=cn,typeof E=="object"&&E!==null&&(m=ge(E)),f=l.getDerivedStateFromProps,(E=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==R||j!==m)&&Rd(e,i,a,m),Il=!1,j=e.memoizedState,i.state=j,mi(e,a,i,n),hi();var z=e.memoizedState;s!==R||j!==z||Il||t!==null&&t.dependencies!==null&&gu(t.dependencies)?(typeof f=="function"&&(Yc(e,l,f,a),z=e.memoizedState),(M=Il||Dd(e,l,M,a,j,z,m)||t!==null&&t.dependencies!==null&&gu(t.dependencies))?(E||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,z,m),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,z,m)),typeof i.componentDidUpdate=="function"&&(e.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===t.memoizedProps&&j===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&j===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=z),i.props=a,i.state=z,i.context=m,a=M):(typeof i.componentDidUpdate!="function"||s===t.memoizedProps&&j===t.memoizedState||(e.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&j===t.memoizedState||(e.flags|=1024),a=!1)}return i=a,xn(t,e),a=(e.flags&128)!==0,i||a?(i=e.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:i.render(),e.flags|=1,t!==null&&a?(e.child=Ua(e,t.child,null,n),e.child=Ua(e,null,l,n)):re(t,e,l,n),e.memoizedState=i.state,t=e.child):t=ql(t,e,n),t}function $d(t,e,l,a){return Ta(),e.flags|=256,re(t,e,l,a),e.child}var Kc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jc(t){return{baseLanes:t,cachePool:Bo()}}function $c(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=Qe),t}function kd(t,e,l){var a=e.pendingProps,n=!1,i=(e.flags&128)!==0,s;if((s=i)||(s=t!==null&&t.memoizedState===null?!1:(pe.current&2)!==0),s&&(n=!0,e.flags&=-129),s=(e.flags&32)!==0,e.flags&=-33,t===null){if(bt){if(n?la(e):aa(),(t=Jt)?(t=gm(t,tl),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Jl!==null?{id:vl,overflow:yl}:null,retryLane:536870912,hydrationErrors:null},l=Mo(t),l.return=e,e.child=l,de=e,Jt=null)):t=null,t===null)throw kl(e);return Jr(t)?e.lanes=32:e.lanes=536870912,null}return i=a.children,a=a.fallback,n?(aa(),n=e.mode,i=Bu({mode:"hidden",children:i},n),a=_a(a,n,l,null),i.return=e,a.return=e,i.sibling=a,e.child=i,a=e.child,a.memoizedState=Jc(l),a.childLanes=$c(t,s,l),e.memoizedState=Kc,pi(null,a)):(la(e),kc(e,i))}var f=t.memoizedState;if(f!==null){var m=f.dehydrated;if(m!==null)return ry(t,e,i,s,a,m,f,l)}return n?(aa(),n=a.fallback,i=e.mode,f=t.child,m=f.sibling,a=Dl(f,{mode:"hidden",children:a.children}),a.subtreeFlags=f.subtreeFlags&1206910976,m!==null?n=Dl(m,n):(n=_a(n,i,l,null),n.flags|=2),n.return=e,a.return=e,a.sibling=n,e.child=a,pi(null,a),a=e.child,n=t.child.memoizedState,n===null?n=Jc(l):(i=n.cachePool,i!==null?(f=ne._currentValue,i=i.parent!==f?{parent:f,pool:f}:i):i=Bo(),n={baseLanes:n.baseLanes|l,cachePool:i}),a.memoizedState=n,a.childLanes=$c(t,s,l),e.memoizedState=Kc,pi(t.child,a)):(la(e),l=t.child,t=l.sibling,l=Dl(l,{mode:"visible",children:a.children}),l.return=e,l.sibling=null,t!==null&&(s=e.deletions,s===null?(e.deletions=[t],e.flags|=16):s.push(t)),e.child=l,e.memoizedState=null,l)}function kc(t,e){return e=Bu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Bu(t,e){return t=Ce(22,t,null,e),t.lanes=0,t}function qu(t,e,l){return Ua(e,t.child,null,l),t=kc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function ry(t,e,l,a,n,i,s,f){if(l)return e.flags&256?(la(e),e.flags&=-257,qu(t,e,f)):e.memoizedState!==null?(aa(),e.child=t.child,e.flags|=128,null):(aa(),i=n.fallback,s=e.mode,n=Bu({mode:"visible",children:n.children},s),i=_a(i,s,f,null),i.flags|=2,n.return=e,i.return=e,n.sibling=i,e.child=n,Ua(e,t.child,null,f),n=e.child,n.memoizedState=Jc(f),n.childLanes=$c(t,a,f),e.memoizedState=Kc,pi(null,n));if(la(e),Jr(i)){if(a=i.nextSibling&&i.nextSibling.dataset,a)var m=a.dgst;return a=m,a!==""&&(n=Error(o(419)),n.stack="",n.digest=a,si({value:n,source:null,stack:null})),qu(t,e,f)}if(ue||Ma(t,e,f,!1),a=(f&t.childLanes)!==0,ue||a){if(ea.current!==null)return qu(t,e,f);if(a=Qt,a!==null&&(n=Af(a,f),n!==0&&n!==s.retryLane))throw s.retryLane=n,Ea(t,n),we(a,t,n),Vc;return Kr(i)||ls(),qu(t,e,f)}return Kr(i)?(e.flags|=192,e.child=t.child,null):(t=s.treeContext,Jt=ll(i.nextSibling),de=e,bt=!0,$l=null,tl=!1,t!==null&&Co(e,t),e=kc(e,n.children),e.flags|=134221824,e)}function Fd(t,e,l){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),yu(t.return,e,l)}function Wd(t){for(var e=null;t!==null;){var l=t.alternate;l!==null&&_u(l)===null&&(e=t),t=t.sibling}return e}function Gu(t,e,l,a,n,i){var s=t.memoizedState;s===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:i}:(s.isBackwards=e,s.rendering=null,s.renderingStartTime=0,s.last=a,s.tail=l,s.tailMode=n,s.treeForkCount=i)}function Fc(t){var e=t.child;for(t.child=null;e!==null;){var l=e.sibling;e.sibling=t.child,t.child=e,e=l}}function Wc(t,e,l){var a=e.pendingProps,n=a.revealOrder,i=a.tail;a=a.children;var s=pe.current;if(e.flags&128)return vi(e,s),null;var f=(s&2)!==0;if(f?(s=s&1|2,e.flags|=128):s&=1,vi(e,s),n==="backwards"&&t!==null?(Fc(t),re(t,e,a,l),Fc(t)):re(t,e,a,l),a=bt?ui:0,!f&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Fd(t,l,e);else if(t.tag===19)Fd(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(n){case"backwards":l=Wd(e.child),l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null,Fc(e)),Gu(e,!0,n,null,i,a);break;case"unstable_legacy-backwards":for(l=null,n=e.child,e.child=null;n!==null;){if(t=n.alternate,t!==null&&_u(t)===null){e.child=n;break}t=n.sibling,n.sibling=l,l=n,n=t}Gu(e,!0,l,null,i,a);break;case"together":Gu(e,!1,null,null,void 0,a);break;case"independent":e.memoizedState=null;break;default:l=Wd(e.child),l===null?(n=e.child,e.child=null):(n=l.sibling,l.sibling=null),Gu(e,!1,n,l,i,a)}return e.child}function Id(t,e,l){var a=e.pendingProps;return Fl(e,e.type,a.value),re(t,e,a.children,l),e.child}function ql(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),sa|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(Ma(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,l=Dl(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=Dl(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function Ic(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&gu(t)))}function fy(t,e,l){switch(e.tag){case 3:il(e,e.stateNode.containerInfo),Fl(e,ne,t.memoizedState.cache),Ta();break;case 27:case 5:Va(e);break;case 4:il(e,e.stateNode.containerInfo);break;case 10:Fl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Nc(e),null;break;case 13:var a=e.memoizedState;if(a!==null){if(a.dehydrated!==null)return la(e),e.flags|=128,null;a=Ma(t,e,l,!1);var n=e.child.childLanes;return a||(l&n)!==0?kd(t,e,l):(la(e),t=ql(t,e,l),t!==null?t.sibling:null)}la(e);break;case 19:if(e.flags&128)return Wc(t,e,l);if(n=(t.flags&128)!==0,a=(l&e.childLanes)!==0,a||(Ma(t,e,l,!1),a=(l&e.childLanes)!==0),n){if(a)return Wc(t,e,l);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),vi(e,pe.current),a)break;return null;case 22:return e.lanes=0,Qd(t,e,l,e.pendingProps);case 24:Fl(e,ne,t.memoizedState.cache)}return ql(t,e,l)}function Pd(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)ue=!0;else{if(!Ic(t,l)&&(e.flags&128)===0)return ue=!1,fy(t,e,l);ue=(t.flags&131072)!==0}else ue=!1,bt&&(e.flags&1048576)!==0&&Ao(e,ui,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=Da(e.elementType),e.type=t,typeof t=="function")ic(t)?(a=Ha(t,a),e.tag=1,e=Jd(null,e,t,a,l)):(e.tag=0,e=Zc(null,e,t,a,l));else{if(t!=null){var n=t.$$typeof;if(n===x){e.tag=11,e=Ld(null,e,t,a,l);break t}else if(n===ct){e.tag=14,e=Yd(null,e,t,a,l);break t}else if(n===Dt){e.tag=10,e.type=t,e=Id(null,e,l);break t}}throw e=vt(t)||t,Error(o(306,e,""))}}return e;case 0:return Zc(t,e,e.type,e.pendingProps,l);case 1:return a=e.type,n=Ha(a,e.pendingProps),Jd(t,e,a,n,l);case 3:t:{if(il(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var i=e.memoizedState;n=i.element,xc(t,e),mi(e,a,null,l);var s=e.memoizedState;if(a=s.cache,Fl(e,ne,a),a!==i.cache&&dc(e,[ne],l,!0),hi(),a=s.element,i.isDehydrated)if(i={element:a,isDehydrated:!1,cache:s.cache},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){e=$d(t,e,a,l);break t}else if(a!==n){n=We(Error(o(424)),e),si(n),e=$d(t,e,a,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Jt=ll(t.firstChild),de=e,bt=!0,$l=null,tl=!0,l=Qo(e,null,a,l),e.child=l;l;)l.flags=l.flags&-3|134221824,l=l.sibling}else{if(Ta(),a===n){e=ql(t,e,l);break t}re(t,e,a,l)}e=e.child}return e;case 26:return xn(t,e),t===null?(l=Em(e.type,null,e.pendingProps,null))?e.memoizedState=l:bt||(e.stateNode=am(e.type,e.pendingProps,ce.current,e)):e.memoizedState=Em(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Va(e),t===null&&bt&&(a=e.stateNode=bm(e.type,e.pendingProps,ce.current),de=e,tl=!0,n=Jt,oa(e.type)?($r=n,Jt=ll(a.firstChild)):Jt=n),re(t,e,e.pendingProps.children,l),xn(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&bt&&((n=a=Jt)&&(a=n1(a,e.type,e.pendingProps,tl),a!==null?(e.stateNode=a,de=e,Jt=ll(a.firstChild),tl=!1,n=!0):n=!1),n||kl(e)),Va(e),n=e.type,i=e.pendingProps,s=t!==null?t.memoizedProps:null,a=i.children,Gr(n,i)?a=null:s!==null&&Gr(n,s)&&(e.flags|=32),e.memoizedState!==null&&(n=Tc(t,e,Pv,null,null,l),Hn._currentValue=n),xn(t,e),re(t,e,a,l),e.child;case 6:return t===null&&bt&&((t=l=Jt)&&(l=i1(l,e.pendingProps,tl),l!==null?(e.stateNode=l,de=e,Jt=null,t=!0):t=!1),t||kl(e)),null;case 13:return kd(t,e,l);case 4:return il(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=Ua(e,null,a,l):re(t,e,a,l),e.child;case 11:return Ld(t,e,e.type,e.pendingProps,l);case 7:return a=e.pendingProps,xn(t,e),re(t,e,a,l),e.child;case 8:return re(t,e,e.pendingProps.children,l),e.child;case 12:return re(t,e,e.pendingProps.children,l),e.child;case 10:return Id(t,e,l);case 9:return n=e.type._context,a=e.pendingProps.children,Oa(e),n=ge(n),a=a(n),e.flags|=1,re(t,e,a,l),e.child;case 14:return Yd(t,e,e.type,e.pendingProps,l);case 15:return Xd(t,e,e.type,e.pendingProps,l);case 19:return Wc(t,e,l);case 31:return cy(t,e,l);case 22:return Qd(t,e,l,e.pendingProps);case 24:return Oa(e),a=ge(ne),t===null?(n=vc(),n===null&&(n=Qt,i=hc(),n.pooledCache=i,i.refCount++,i!==null&&(n.pooledCacheLanes|=l),n=i),e.memoizedState={parent:a,cache:n},gc(e),Fl(e,ne,n)):((t.lanes&l)!==0&&(xc(t,e),mi(e,null,null,l),hi()),n=t.memoizedState,i=e.memoizedState,n.parent!==a?(n={parent:a,cache:a},e.memoizedState=n,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=n),Fl(e,ne,a)):(a=i.cache,Fl(e,ne,a),a!==n.cache&&dc(e,[ne],l,!0))),re(t,e,e.pendingProps.children,l),e.child;case 30:return e.stateNode===null&&(e.stateNode={autoName:null,paired:null,clones:null,ref:null}),a=e.pendingProps,a.name!=null&&a.name!=="auto"?e.flags|=t===null?18882560:18874368:bt&&mu(e),t!==null&&t.memoizedProps.name!==a.name?e.flags|=4194816:xn(t,e),re(t,e,a.children,l),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function Gl(t){t.flags|=4}function Pc(t,e,l,a,n){var i;if((i=(t.mode&32)!==0)&&(i=l===null?Mm(e,a):Mm(e,a)&&(a.src!==l.src||a.srcSet!==l.srcSet)),i){if(t.flags|=16777216,(n&335544128)===n)if(t.stateNode.complete)t.flags|=8192;else if(Uh())t.flags|=8192;else throw Ra=ju,yc}else t.flags&=-16777217}function th(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Om(e))if(Uh())t.flags|=8192;else throw Ra=ju,yc}function Lu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?zf():536870912,t.lanes|=e,Nn|=e)}function bi(t,e){if(!bt)switch(t.tailMode){case"visible":break;case"collapsed":for(var l=t.tail,a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null;break;default:for(e=t.tail,l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null}}function $t(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,a=0;if(e)for(var n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&1206910976,a|=n.flags&1206910976,n.return=t,n=n.sibling;else for(n=t.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=t,n=n.sibling;return t.subtreeFlags|=a,t.childLanes=l,e}function oy(t,e,l){var a=e.pendingProps;switch(cc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return $t(e),null;case 1:return $t(e),null;case 3:return l=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),wl(ne),Ql(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(on(e)?Gl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,fc())),$t(e),null;case 26:var n=e.type,i=e.memoizedState;return t===null?(Gl(e),i!==null?($t(e),th(e,i)):($t(e),Pc(e,n,null,a,l))):i?i!==t.memoizedState?(Gl(e),$t(e),th(e,i)):($t(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&Gl(e),$t(e),Pc(e,n,t,a,l)),null;case 27:if(ve(e),l=ce.current,n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Gl(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return $t(e),e.subtreeFlags&=-33554433,null}t=Ft.current,on(e)?Do(e):(t=bm(n,a,l),e.stateNode=t,Gl(e))}return $t(e),e.subtreeFlags&=-33554433,null;case 5:if(ve(e),n=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&Gl(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return $t(e),e.subtreeFlags&=-33554433,null}if(i=Ft.current,on(e))Do(e);else{var s=Ci(ce.current);switch(i){case 1:i=s.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:i=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":i=s.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":i=s.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":i=s.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof a.is=="string"?s.createElement("select",{is:a.is}):s.createElement("select"),a.multiple?i.multiple=!0:a.size&&(i.size=a.size);break;default:i=typeof a.is=="string"?s.createElement(n,{is:a.is}):s.createElement(n)}}i[ye]=e,i[Ae]=a;t:for(s=e.child;s!==null;){if(s.tag===5||s.tag===6)i.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===e)break t;for(;s.sibling===null;){if(s.return===null||s.return===e)break t;s=s.return}s.sibling.return=s.return,s=s.sibling}e.stateNode=i;t:switch(je(i,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&Gl(e)}}return $t(e),e.subtreeFlags&=-33554433,Pc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&Gl(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=ce.current,on(e)){if(t=e.stateNode,l=e.memoizedProps,a=null,n=de,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}t[ye]=e,t=!!(t.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||Ph(t.nodeValue,l)),t||kl(e,!0)}else t=Ci(t).createTextNode(a),t[ye]=e,e.stateNode=t}return $t(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(a=on(e),l!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[ye]=e}else Ta(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;$t(e),t=!1}else l=fc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(Le(e),e):(Le(e),null);if((e.flags&128)!==0)throw Error(o(558))}return $t(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(n=on(e),a!==null&&a.dehydrated!==null){if(t===null){if(!n)throw Error(o(318));if(n=e.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(o(317));n[ye]=e}else Ta(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;$t(e),n=!1}else n=fc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),n=!0;if(!n)return e.flags&256?(Le(e),e):(Le(e),null)}return Le(e),(e.flags&128)!==0?(e.lanes=l,e):(l=a!==null,t=t!==null&&t.memoizedState!==null,l&&(a=e.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),i=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(i=a.memoizedState.cachePool.pool),i!==n&&(a.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Lu(e,e.updateQueue),$t(e),null);case 4:return Ql(),t===null&&Ur(e.stateNode.containerInfo),e.flags|=67108864,$t(e),null;case 10:return wl(e.type),$t(e),null;case 19:if(Ec(e),a=e.memoizedState,a===null)return $t(e),null;if(n=(e.flags&128)!==0,i=a.rendering,i===null)if(n)bi(a,!1);else{if(le!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(i=_u(t),i!==null){for(e.flags|=128,bi(a,!1),t=i.updateQueue,e.updateQueue=t,Lu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)zo(l,t),l=l.sibling;return vi(e,pe.current&1|2),bt&&Rl(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&Mt()>Iu&&(e.flags|=128,n=!0,bi(a,!1),e.lanes=4194304)}else{if(!n)if(t=_u(i),t!==null){if(e.flags|=128,n=!0,t=t.updateQueue,e.updateQueue=t,Lu(e,t),bi(a,!0),a.tail===null&&a.tailMode!=="collapsed"&&a.tailMode!=="visible"&&!i.alternate&&!bt)return $t(e),null}else 2*Mt()-a.renderingStartTime>Iu&&l!==536870912&&(e.flags|=128,n=!0,bi(a,!1),e.lanes=4194304);a.isBackwards?(i.sibling=e.child,e.child=i):(t=a.last,t!==null?t.sibling=i:e.child=i,a.last=i)}if(a.tail!==null){t=a.tail;t:{for(l=t;l!==null;){if(l.alternate!==null){l=!1;break t}l=l.sibling}l=!0}return a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Mt(),t.sibling=null,i=pe.current,i=n?i&1|2:i&1,a.tailMode==="visible"||a.tailMode==="collapsed"||!l||bt?vi(e,i):(l=i,H(xe,e),H(pe,l),Ee===null&&(Ee=e)),bt&&Rl(e,a.treeForkCount),t}return $t(e),null;case 22:case 23:return Le(e),Sc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(l&536870912)!==0&&(e.flags&128)===0&&($t(e),e.subtreeFlags&6&&(e.flags|=8192)):$t(e),l=e.updateQueue,l!==null&&Lu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==l&&(e.flags|=2048),t!==null&&Zt(Ca),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),wl(ne),$t(e),null;case 25:return null;case 30:return e.flags|=33554432,$t(e),null}throw Error(o(156,e.tag))}function dy(t,e){switch(cc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return wl(ne),Ql(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ve(e),null;case 31:if(e.memoizedState!==null){if(Le(e),e.alternate===null)throw Error(o(340));Ta()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Le(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));Ta()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ec(e),t=e.flags,t&65536?(e.flags=t&-65537|128,t=e.memoizedState,t!==null&&(t.rendering=null,t.tail=null),e.flags|=4,e):null;case 4:return Ql(),null;case 10:return wl(e.type),null;case 22:case 23:return Le(e),Sc(),t!==null&&Zt(Ca),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return wl(ne),null;case 25:return null;default:return null}}function eh(t,e){switch(cc(e),e.tag){case 3:wl(ne),Ql();break;case 26:case 27:case 5:ve(e);break;case 4:Ql();break;case 31:e.memoizedState!==null&&Le(e);break;case 13:Le(e);break;case 19:Ec(e);break;case 10:wl(e.type);break;case 22:case 23:Le(e),Sc(),t!==null&&Zt(Ca);break;case 24:wl(ne)}}function ji(t,e){try{var l=e.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&t)===t){a=void 0;var i=l.create,s=l.inst;a=i(),s.destroy=a}l=l.next}while(l!==n)}}catch(f){qt(e,e.return,f)}}function na(t,e,l){try{var a=e.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var i=n.next;a=i;do{if((a.tag&t)===t){var s=a.inst,f=s.destroy;if(f!==void 0){s.destroy=void 0,n=e;var m=l,E=f;try{E()}catch(M){qt(n,m,M)}}}a=a.next}while(a!==i)}}catch(M){qt(e,e.return,M)}}function lh(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{Zo(e,l)}catch(a){qt(t,t.return,a)}}}function ah(t,e,l){l.props=Ha(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(a){qt(t,e,a)}}function gl(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:var n=t.stateNode,i=Al(t.memoizedProps,n);(n.ref===null||n.ref.name!==i)&&(n.ref=fm(i)),a=n.ref;break;case 7:if(t.stateNode===null){var s=new Ze(t);d(t.child,!1,l1,s,void 0,void 0),t.stateNode=s}a=t.stateNode;break;default:a=t.stateNode}typeof l=="function"?t.refCleanup=l(a):l.current=a}}catch(f){qt(t,e,f)}}function be(t,e){var l=t.ref,a=t.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){qt(t,e,n)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){qt(t,e,n)}else l.current=null}function Yu(t,e){if((t.tag===5||t.tag===27||t.tag===6)&&t.alternate===null&&e!==null)for(var l=0;l<e.length;l++)ym(t.stateNode,e[l])}function nh(t){for(var e=t.return;e!==null&&(er(e)&&ym(t.stateNode,e.stateNode),!tr(e));)e=e.return}function Si(t){for(var e=t.return;e!==null&&(er(e)&&a1(t.stateNode,e.stateNode),!tr(e));)e=e.return}function tr(t){return t.tag===5||t.tag===3||t.tag===27}function er(t){return t&&t.tag===7&&t.stateNode!==null}function lr(t){var e=t.type,l=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break t;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){qt(t,t.return,n)}}function ar(t,e,l){try{var a=t.stateNode;qy(a,t.type,l,e),a[Ae]=e}catch(n){qt(t,t.return,n)}}function ih(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&oa(t.type)||t.tag===4}function nr(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||ih(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&oa(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ir(t,e,l,a){var n=t.tag;if(n===5||n===6)n=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(n,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(n),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=ml)),Yu(t,a),Rt=!0;else if(n!==4&&(n===27&&(Yu(t,a),a=null,oa(t.type)&&(l=t.stateNode,e=null)),t=t.child,t!==null))for(ir(t,e,l,a),t=t.sibling;t!==null;)ir(t,e,l,a),t=t.sibling}function Xu(t,e,l,a){var n=t.tag;if(n===5||n===6)n=t.stateNode,e?l.insertBefore(n,e):l.appendChild(n),Yu(t,a),Rt=!0;else if(n!==4&&(n===27&&(Yu(t,a),a=null,oa(t.type)&&(l=t.stateNode)),t=t.child,t!==null))for(Xu(t,e,l,a),t=t.sibling;t!==null;)Xu(t,e,l,a),t=t.sibling}function uh(t){var e=t.stateNode,l=t.memoizedProps;try{for(var a=t.type,n=e.attributes;n.length;)e.removeAttributeNode(n[0]);je(e,a,l),e[ye]=t,e[Ae]=l}catch(i){qt(t,t.return,i)}}var Qu=!1,Ye=null;function sh(t){(t.tag===30||(t.subtreeFlags&33554432)!==0)&&(Qu=!0)}var xl=null;function ch(){var t=xl;return xl=null,t}var De=0;function pn(t,e,l,a,n){return De=0,rh(t.child,e,l,a,n)}function rh(t,e,l,a,n){for(var i=!1;t!==null;){if(t.tag===5){var s=t.stateNode;if(a!==null){var f=Xr(s);a.push(f),f.view&&(i=!0)}else i||Xr(s).view&&(i=!0);Qu=!0,cm(s,De===0?e:e+"_"+De,l),De++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&n||rh(t.child,e,l,a,n)&&(i=!0));t=t.sibling}return i}function pl(t,e){for(;t!==null;)t.tag===5?rm(t.stateNode,t.memoizedProps):(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&e||pl(t.child,e)),t=t.sibling}function Vu(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if((t.tag!==22||t.memoizedState===null)&&(Vu(t),t.tag===30&&(t.flags&18874368)!==0&&t.stateNode.paired)){var e=t.memoizedProps;if(e.name==null||e.name==="auto")throw Error(o(544));var l=e.name;e=Cl(e.default,e.share),e!=="none"&&(pn(t,l,e,null,!1)||pl(t.child,!1))}t=t.sibling}}function ur(t,e){if(t.tag===30){var l=t.stateNode,a=t.memoizedProps,n=Al(a,l),i=Cl(a.default,l.paired?a.share:a.enter);i!=="none"?pn(t,n,i,null,!1)?(Vu(t),l.paired||e||zn(t,a.onEnter)):pl(t.child,!1):Vu(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)ur(t,e),t=t.sibling;else Vu(t)}function sr(t){if(Ye!==null&&Ye.size!==0){var e=Ye;if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var l=t.memoizedProps,a=l.name;if(a!=null&&a!=="auto"){var n=e.get(a);if(n!==void 0){var i=Cl(l.default,l.share);if(i!=="none"&&(pn(t,a,i,null,!1)?(i=t.stateNode,n.paired=i,i.paired=n,zn(t,l.onShare)):pl(t.child,!1)),e.delete(a),e.size===0)break}}}sr(t)}t=t.sibling}}}function cr(t){if(t.tag===30){var e=t.memoizedProps,l=Al(e,t.stateNode),a=Ye!==null?Ye.get(l):void 0,n=Cl(e.default,a!==void 0?e.share:e.exit);n!=="none"&&(pn(t,l,n,null,!1)?a!==void 0?(n=t.stateNode,a.paired=n,n.paired=a,Ye.delete(l),zn(t,e.onShare)):zn(t,e.onExit):pl(t.child,!1)),Ye!==null&&sr(t)}else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)cr(t),t=t.sibling;else Ye!==null&&sr(t)}function fh(t){for(t=t.child;t!==null;){if(t.tag===30){var e=t.memoizedProps,l=Al(e,t.stateNode);e=Cl(e.default,e.update),t.flags&=-5,e!=="none"&&pn(t,l,e,t.memoizedState=[],!1)}else(t.subtreeFlags&33554432)!==0&&fh(t);t=t.sibling}}function rr(t){if((t.subtreeFlags&18874368)!==0)for(t=t.child;t!==null;){if(t.tag!==22||t.memoizedState===null){if(t.tag===30&&(t.flags&18874368)!==0){var e=t.stateNode;e.paired!==null&&(e.paired=null,pl(t.child,!1))}rr(t)}t=t.sibling}}function Zu(t){if(t.tag===30)t.stateNode.paired=null,pl(t.child,!1),rr(t);else if((t.subtreeFlags&33554432)!==0)for(t=t.child;t!==null;)Zu(t),t=t.sibling;else rr(t)}function oh(t){for(t=t.child;t!==null;)t.tag===30?pl(t.child,!1):(t.subtreeFlags&33554432)!==0&&oh(t),t=t.sibling}function fr(t,e,l,a,n,i,s){for(var f=!1;e!==null;){if(e.tag===5){var m=e.stateNode;if(i!==null&&De<i.length){var E=i[De],M=Xr(m);(E.view||M.view)&&(f=!0);var R;if(R=(t.flags&4)===0)if(M.clip)R=!0;else{R=E.rect;var j=M.rect;R=R.y!==j.y||R.x!==j.x||R.height!==j.height||R.width!==j.width}R&&(t.flags|=4),M.abs?M=!E.abs:(E=E.rect,M=M.rect,M=E.height!==M.height||E.width!==M.width),M&&(t.flags|=32)}else t.flags|=32;(t.flags&4)!==0&&cm(m,De===0?l:l+"_"+De,n),f&&(t.flags&4)!==0||(xl===null&&(xl=[]),xl.push(m,De===0?a:a+"_"+De,e.memoizedProps)),De++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&s?t.flags|=e.flags&32:fr(t,e.child,l,a,n,i,s)&&(f=!0));e=e.sibling}return f}function dh(t,e){for(t=t.child;t!==null;){if(t.tag===30){var l=t.memoizedProps,a=t.stateNode,n=Al(l,a),i=Cl(l.default,l.update),s;s=t.memoizedState,t.memoizedState=null,a=t;var f=t.child;De=0,n=fr(a,f,n,n,i,s,!1),(t.flags&4)!==0&&n&&zn(t,l.onUpdate)}else(t.subtreeFlags&33554432)!==0&&dh(t);t=t.sibling}}var he=!1,Ht=!1,bl=!1,or=!1,hh=typeof WeakSet=="function"?WeakSet:Set,me=null,jl=!1,Ni=!1,Ku=!1,dr=!1;function hy(t,e,l){if(t=t.containerInfo,Br=Bn,t=go(t),Is(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var n=a.getSelection&&a.getSelection();if(n&&n.rangeCount!==0){a=n.anchorNode;var i=n.anchorOffset,s=n.focusNode;n=n.focusOffset;try{a.nodeType,s.nodeType}catch{a=null;break t}var f=0,m=-1,E=-1,M=0,R=0,j=t,z=null;e:for(;;){for(var Z;j!==a||i!==0&&j.nodeType!==3||(m=f+i),j!==s||n!==0&&j.nodeType!==3||(E=f+n),j.nodeType===3&&(f+=j.nodeValue.length),(Z=j.firstChild)!==null;)z=j,j=Z;for(;;){if(j===t)break e;if(z===a&&++M===i&&(m=f),z===s&&++R===n&&(E=f),(Z=j.nextSibling)!==null)break;j=z,z=j.parentNode}j=Z}a=m===-1||E===-1?null:{start:m,end:E}}else a=null}a=a||{start:0,end:0}}else a=null;for(qr={focusedElem:t,selectionRange:a},Bn=!1,l=(l&335544064)===l,me=e,e=l?9270:1024;me!==null;){if(t=me,l&&(a=t.deletions,a!==null))for(i=0;i<a.length;i++)l&&cr(a[i]);if(t.alternate===null&&(t.flags&2)!==0)l&&sh(t),Ju(l);else{if(t.tag===22){if(a=t.alternate,t.memoizedState!==null){a!==null&&a.memoizedState===null&&l&&cr(a),Ju(l);continue}else if(a!==null&&a.memoizedState!==null){l&&sh(t),Ju(l);continue}}a=t.child,(t.subtreeFlags&e)!==0&&a!==null?(a.return=t,me=a):(l&&fh(t),Ju(l))}}Ye=null}function Ju(t){for(;me!==null;){var e=me,l=t,a=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 15:break;case 1:if((n&1024)!==0&&a!==null){l=void 0,n=a.memoizedProps,a=a.memoizedState;var i=e.stateNode;try{var s=Ha(e.type,n);l=i.getSnapshotBeforeUpdate(s,a),i.__reactInternalSnapshotBeforeUpdate=l}catch(f){qt(e,e.return,f)}}break;case 3:if((n&1024)!==0){if(a=e.stateNode.containerInfo,l=a.nodeType,l===9)Zr(a);else if(l===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Zr(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:l&&a!==null&&(l=Al(a.memoizedProps,a.stateNode),n=e.memoizedProps,n=Cl(n.default,n.update),n!=="none"&&pn(a,l,n,a.memoizedState=[],!0));break;default:if((n&1024)!==0)throw Error(o(163))}if(a=e.sibling,a!==null){a.return=e.return,me=a;break}me=e.return}}function mh(t,e,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Sl(t,l),a&4&&ji(5,l);break;case 1:if(Sl(t,l),a&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(s){qt(l,l.return,s)}else{var n=Ha(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(n,e,t.__reactInternalSnapshotBeforeUpdate)}catch(s){qt(l,l.return,s)}}a&64&&lh(l),a&512&&gl(l,l.return);break;case 3:if(Sl(t,l),a&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{Zo(t,e)}catch(s){qt(l,l.return,s)}}break;case 27:e===null&&a&4&&uh(l);case 26:case 5:Sl(t,l),e===null&&a&4&&lr(l),a&512&&gl(l,l.return);break;case 12:Sl(t,l);break;case 31:Sl(t,l),a&4&&xh(t,l);break;case 13:Sl(t,l),a&4&&ph(t,l),a&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=_y.bind(null,l),u1(t,l))));break;case 22:if(a=l.memoizedState!==null||he,!a){var i=e!==null&&e.memoizedState!==null||Ht;e=he,n=Ht,he=a,(Ht=i)&&!n?(a=2,(l.subtreeFlags&8772)!==0&&(a|=1),fl(t,l,a)):Sl(t,l),he=e,Ht=n}break;case 30:Sl(t,l),a&512&&gl(l,l.return);break;case 7:a&512&&gl(l,l.return);default:Sl(t,l)}}function hr(t,e){for(t=t.child;t!==null;)vh(t,e),t=t.sibling}function vh(t,e){switch(t.tag){case 5:case 26:try{var l=t.stateNode;if(e){var a=l.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}else{var n=t.stateNode,i=t.memoizedProps.style,s=i!=null&&i.hasOwnProperty("display")?i.display:null;n.style.display=s==null||typeof s=="boolean"?"":(""+s).trim()}}catch(m){qt(t,t.return,m)}mr(t,e);break;case 6:try{t.stateNode.nodeValue=e?"":t.memoizedProps,Rt=!0}catch(m){qt(t,t.return,m)}break;case 18:try{var f=t.stateNode;e?sm(f,!0):sm(t.stateNode,!1)}catch(m){qt(t,t.return,m)}break;case 22:case 23:t.memoizedState===null&&hr(t,e);break;default:hr(t,e)}}function mr(t,e){if(t.subtreeFlags&67108864)for(t=t.child;t!==null;){t:{var l=t,a=e;switch(l.tag){case 4:vh(l,a);break t;case 22:l.memoizedState===null&&mr(l,a);break t;default:mr(l,a)}}t=t.sibling}}function yh(t){var e=t.alternate;e!==null&&(t.alternate=null,yh(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Ii(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var It=null,Re=!1;function cl(t,e,l){for(l=l.child;l!==null;)gh(t,e,l),l=l.sibling}function gh(t,e,l){if(He&&typeof He.onCommitFiberUnmount=="function")try{He.onCommitFiberUnmount(Kn,l)}catch{}switch(l.tag){case 26:Ht||be(l,e),cl(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&!Ht&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ht||be(l,e),Si(l);var a=It,n=Re;oa(l.type)&&(It=l.stateNode,Re=!1),cl(t,e,l),jm(l.stateNode,l.type,l.memoizedProps),It=a,Re=n;break;case 5:Ht||be(l,e),Si(l);case 6:if(l.tag===6&&Si(l),a=It,n=Re,It=null,cl(t,e,l),It=a,Re=n,It!==null)if(Re)try{(It.nodeType===9?It.body:It.nodeName==="HTML"?It.ownerDocument.body:It).removeChild(l.stateNode),Rt=!0}catch(i){qt(l,e,i)}else try{It.removeChild(l.stateNode),Rt=!0}catch(i){qt(l,e,i)}break;case 18:It!==null&&(Re?(t=It,um(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),qn(t)):um(It,l.stateNode));break;case 4:a=It,n=Re,It=l.stateNode.containerInfo,Re=!0,cl(t,e,l),It=a,Re=n;break;case 0:case 11:case 14:case 15:na(2,l,e),Ht||na(4,l,e),cl(t,e,l);break;case 1:Ht||(be(l,e),a=l.stateNode,typeof a.componentWillUnmount=="function"&&ah(l,e,a)),cl(t,e,l);break;case 21:cl(t,e,l);break;case 22:Ht=(a=Ht)||l.memoizedState!==null,cl(t,e,l),Ht=a;break;case 30:be(l,e),cl(t,e,l);break;case 7:Ht||be(l,e),cl(t,e,l);break;default:cl(t,e,l)}}function xh(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{qn(t)}catch(l){qt(e,e.return,l)}}}function ph(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{qn(t)}catch(l){qt(e,e.return,l)}}function my(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new hh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new hh),e;default:throw Error(o(435,t.tag))}}function $u(t,e){var l=my(t);e.forEach(function(a){if(!l.has(a)){l.add(a);var n=Ty.bind(null,t,a);a.then(n,n)}})}function Me(t,e,l){var a=e.deletions;if(a!==null)for(var n=0;n<a.length;n++){var i=a[n],s=t,f=e,m=f;t:for(;m!==null;){switch(m.tag){case 27:if(oa(m.type)){It=m.stateNode,Re=!1;break t}break;case 5:It=m.stateNode,Re=!1;break t;case 3:case 4:It=m.stateNode.containerInfo,Re=!0;break t}m=m.return}if(It===null)throw Error(o(160));gh(s,f,i),It=null,Re=!1,s=i.alternate,s!==null&&(s.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)bh(e,t,l),e=e.sibling}var rl=null;function bh(t,e,l){var a=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(n&4&&(a=t.updateQueue,a=a!==null?a.events:null,a!==null))for(var i=0;i<a.length;i++){var s=a[i];s.ref.impl=s.nextImpl}Me(e,t,l),Oe(t),n&4&&(na(3,t,t.return),ji(3,t),na(5,t,t.return));break;case 1:Me(e,t,l),Oe(t),n&512&&(Ht||a===null||be(a,a.return)),n&64&&he&&(t=t.updateQueue,t!==null&&(e=t.callbacks,e!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?e:l.concat(e))));break;case 26:if(i=rl,Me(e,t,l),Oe(t),n&512&&(Ht||a===null||be(a,a.return)),n&4)if(n=a!==null?a.memoizedState:null,l=t.memoizedState,a===null)if(l===null)if(t.stateNode===null)if(he)t.stateNode=am(t.type,t.memoizedProps,e.containerInfo,t);else{t:{e=t.type,l=t.memoizedProps,n=i.ownerDocument||i;e:switch(e){case"title":a=n.getElementsByTagName("title")[0],(!a||a[kn]||a[ye]||a.namespaceURI==="http://www.w3.org/2000/svg"||a.hasAttribute("itemprop"))&&(a=n.createElement(e),n.head.insertBefore(a,n.querySelector("head > title"))),je(a,e,l),a[ye]=t,oe(a),e=a;break t;case"link":if(i=zm("link","href",n).get(e+(l.href||""))){for(s=0;s<i.length;s++)if(a=i[s],a.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&a.getAttribute("rel")===(l.rel==null?null:l.rel)&&a.getAttribute("title")===(l.title==null?null:l.title)&&a.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){i.splice(s,1);break e}}a=n.createElement(e),je(a,e,l),n.head.appendChild(a);break;case"meta":if(i=zm("meta","content",n).get(e+(l.content||""))){for(s=0;s<i.length;s++)if(a=i[s],a.getAttribute("content")===(l.content==null?null:""+l.content)&&a.getAttribute("name")===(l.name==null?null:l.name)&&a.getAttribute("property")===(l.property==null?null:l.property)&&a.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&a.getAttribute("charset")===(l.charSet==null?null:l.charSet)){i.splice(s,1);break e}}a=n.createElement(e),je(a,e,l),n.head.appendChild(a);break;default:throw Error(o(468,e))}a[ye]=t,oe(a),e=a}t.stateNode=e}else he||Ir(i,t.type,t.stateNode);else t.stateNode=Tm(i,l,t.memoizedProps);else n!==l?(n===null?(e=a.stateNode,e===null||Ht||e.parentNode.removeChild(e)):n.count--,l===null?he||Ir(i,t.type,t.stateNode):Tm(i,l,t.memoizedProps)):l===null&&t.stateNode!==null&&ar(t,t.memoizedProps,a.memoizedProps);break;case 27:Me(e,t,l),Oe(t),n&512&&(Ht||a===null||be(a,a.return)),a!==null&&n&4&&ar(t,t.memoizedProps,a.memoizedProps);break;case 5:if(i=bl,bl=!1,Me(e,t,l),bl=i,Oe(t),n&512&&(Ht||a===null||be(a,a.return)),t.flags&32){e=t.stateNode;try{tn(e,""),Rt=!0}catch(M){qt(t,t.return,M)}}n&4&&t.stateNode!=null&&(e=t.memoizedProps,ar(t,e,a!==null?a.memoizedProps:e)),n&1024&&(or=!0);break;case 6:if(Me(e,t,l),Oe(t),n&4){if(t.stateNode===null)throw Error(o(162));e=t.memoizedProps,l=t.stateNode;try{l.nodeValue=e,Rt=!0}catch(M){qt(t,t.return,M)}}break;case 3:if(Rt=!1,rs=null,i=rl,rl=Di(e.containerInfo),Me(e,t,l),rl=i,Oe(t),n&4&&a!==null&&a.memoizedState.isDehydrated)try{qn(e.containerInfo)}catch(M){qt(t,t.return,M)}or&&(or=!1,jh(t)),Rt=!1;break;case 4:n=bl,bl=he,a=Lf(),i=rl,rl=Di(t.stateNode.containerInfo),Me(e,t,l),Oe(t),rl=i,Rt&&Ni&&(Ku=!0),Rt=a,bl=n;break;case 12:Me(e,t,l),Oe(t);break;case 31:Me(e,t,l),Oe(t),n&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,$u(t,e)));break;case 13:Me(e,t,l),Oe(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Wu=Mt()),n&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,$u(t,e)));break;case 22:i=t.memoizedState!==null,s=a!==null&&a.memoizedState!==null;var f=he,m=Ht,E=bl;he=f||i,bl=E||i,Ht=m||s,Me(e,t,l),Ht=m,bl=E,he=f,Oe(t),n&8192&&(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,!i||a===null||s||he||Ht||(e=s||Ht,l=he,a=Ht,he=i||he,Ht=e,ia(t,2),he=l,Ht=a),!i&&bl||hr(t,i)),n&4&&(e=t.updateQueue,e!==null&&(l=e.retryQueue,l!==null&&(e.retryQueue=null,$u(t,l))));break;case 19:Me(e,t,l),Oe(t),n&4&&(e=t.updateQueue,e!==null&&(t.updateQueue=null,$u(t,e)));break;case 30:n&512&&(Ht||a===null||be(a,a.return)),n=Lf(),i=Ni,s=(l&335544064)===l,f=t.memoizedProps,Ni=s&&Cl(f.default,f.update)!=="none",Me(e,t,l),Oe(t),s&&a!==null&&Rt&&(t.flags|=4),Ni=i,Rt=n;break;case 21:break;case 7:n&512&&(Ht||a===null||be(a,a.return)),a&&a.stateNode!==null&&(a.stateNode._fragmentFiber=t);default:Me(e,t,l),Oe(t)}}function Oe(t){var e=t.flags;if(e&2){try{for(var l,a=t.return;a!==null;){if(ih(a)){l=a;break}a=a.return}a=null;for(var n=t.return;n!==null;){if(er(n)){var i=n.stateNode;a===null?a=[i]:a.push(i)}if(tr(n))break;n=n.return}var s=a;if(l==null)throw Error(o(160));switch(l.tag){case 27:var f=l.stateNode,m=nr(t);Xu(t,m,f,s);break;case 5:var E=l.stateNode;l.flags&32&&(tn(E,""),l.flags&=-33);var M=nr(t);Xu(t,M,E,s);break;case 3:case 4:var R=l.stateNode.containerInfo,j=nr(t);ir(t,j,R,s);break;default:throw Error(o(161))}}catch(z){qt(t,t.return,z)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function jh(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;jh(e),e.tag===5&&e.flags&1024&&(e=e.stateNode,Bn=!0,e.reset(),Bn=!1),t=t.sibling}}function bn(t,e){if(e.subtreeFlags&9270)for(e=e.child;e!==null;)Sh(e,t),e=e.sibling;else dh(e)}function Sh(t,e){var l=t.alternate;if(l===null)ur(t,!1);else switch(t.tag){case 3:if(dr=jl=!1,ch(),bn(e,t),!jl&&!Ku){if(t=xl,t!==null)for(var a=0;a<t.length;a+=3){l=t[a];var n=t[a+1];rm(l,t[a+2]),l=l.ownerDocument.documentElement,l!==null&&l.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+n+")"})}t=e.containerInfo,t=t.nodeType===9?t.documentElement:t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName===""&&(t.style.viewTransitionName="none",t.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),t.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),dr=!0}xl=null;break;case 5:bn(e,t);break;case 4:a=jl,jl=!1,bn(e,t),jl&&(Ku=!0),jl=a;break;case 22:t.memoizedState===null&&(l.memoizedState!==null?ur(t,!1):bn(e,t));break;case 30:a=jl,n=ch(),jl=!1,bn(e,t),jl&&(t.flags|=4);var i=t.memoizedProps,s=t.stateNode;e=Al(i,s),s=Al(l.memoizedProps,s);var f=Cl(i.default,i.update);f==="none"?e=!1:(i=l.memoizedState,l.memoizedState=null,l=t.child,De=0,e=fr(t,l,e,s,f,i,!0),De!==(i===null?0:i.length)&&(t.flags|=32)),(t.flags&4)!==0&&e?(zn(t,t.memoizedProps.onUpdate),xl=n):n!==null&&(n.push.apply(n,xl),xl=n),jl=(t.flags&32)!==0?!0:a;break;default:bn(e,t)}}function Sl(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)mh(t,e.alternate,e),e=e.sibling}function ia(t,e){for(t=t.child;t!==null;){var l=t,a=e;switch(l.tag){case 0:case 11:case 14:case 15:na(4,l,l.return),ia(l,a);break;case 1:be(l,l.return);var n=l.stateNode;typeof n.componentWillUnmount=="function"&&ah(l,l.return,n),ia(l,a);break;case 27:(a&2)!==0&&jm(l.stateNode,l.type,l.memoizedProps);case 5:be(l,l.return),l.tag!==5&&l.tag!==27||Si(l),ia(l,a);break;case 6:Si(l);break;case 26:be(l,l.return),n=l.stateNode,l.memoizedState!==null||n===null||Ht||n.parentNode.removeChild(n),ia(l,a);break;case 22:l.memoizedState===null&&ia(l,a);break;case 30:be(l,l.return),ia(l,a);break;case 7:be(l,l.return);default:ia(l,a)}t=t.sibling}}function fl(t,e,l){for(l=(e.subtreeFlags&8772)!==0?l:l&-2,e=e.child;e!==null;){var a=e.alternate,n=t,i=e,s=i.flags,f=(l&1)!==0;switch(i.tag){case 0:case 11:case 15:fl(n,i,l),ji(4,i);break;case 1:if(fl(n,i,l),a=i,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(M){qt(a,a.return,M)}if(a=i,n=a.updateQueue,n!==null){var m=a.stateNode;try{var E=n.shared.hiddenCallbacks;if(E!==null)for(n.shared.hiddenCallbacks=null,n=0;n<E.length;n++)Vo(E[n],m)}catch(M){qt(a,a.return,M)}}f&&s&64&&lh(i),gl(i,i.return);break;case 27:(l&2)!==0&&uh(i);case 5:i.tag!==5&&i.tag!==27||nh(i),fl(n,i,l),f&&a===null&&s&4&&lr(i),gl(i,i.return);break;case 6:nh(i);break;case 26:m=i.stateNode,i.memoizedState!==null||m===null||he||Ir(Di(m.ownerDocument),i.type,m),fl(n,i,l),f&&a===null&&s&4&&lr(i),gl(i,i.return);break;case 12:fl(n,i,l);break;case 31:fl(n,i,l),f&&s&4&&xh(n,i);break;case 13:fl(n,i,l),f&&s&4&&ph(n,i);break;case 22:i.memoizedState===null&&fl(n,i,l),gl(i,i.return);break;case 30:fl(n,i,l),gl(i,i.return);break;case 7:gl(i,i.return);default:fl(n,i,l)}e=e.sibling}}function vr(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&ci(l))}function yr(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ci(t))}function el(t,e,l,a){var n=(l&335544064)===l;if(e.subtreeFlags&(n?10262:10256))for(e=e.child;e!==null;)Nh(t,e,l,a),e=e.sibling;else n&&oh(e)}function Nh(t,e,l,a){var n=(l&335544064)===l;n&&e.alternate===null&&e.return!==null&&e.return.alternate!==null&&Zu(e);var i=e.flags;switch(e.tag){case 0:case 11:case 15:el(t,e,l,a),i&2048&&ji(9,e);break;case 1:el(t,e,l,a);break;case 3:el(t,e,l,a),n&&dr&&(t=t.containerInfo,t=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,t.style.viewTransitionName==="root"&&(t.style.viewTransitionName=""),t=t.ownerDocument.documentElement,t!==null&&t.style.viewTransitionName==="none"&&(t.style.viewTransitionName="")),i&2048&&(i=null,e.alternate!==null&&(i=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==i&&(e.refCount++,i!=null&&ci(i)));break;case 12:if(i&2048){el(t,e,l,a),i=e.stateNode;try{var s=e.memoizedProps,f=s.id,m=s.onPostCommit;typeof m=="function"&&m(f,e.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(E){qt(e,e.return,E)}}else el(t,e,l,a);break;case 31:el(t,e,l,a);break;case 13:el(t,e,l,a);break;case 23:break;case 22:s=e.stateNode,f=e.alternate,e.memoizedState!==null?(n&&f!==null&&f.memoizedState===null&&Zu(f),s._visibility&2?el(t,e,l,a):Ei(t,e)):(n&&f!==null&&f.memoizedState!==null&&Zu(e),s._visibility&2?el(t,e,l,a):(s._visibility|=2,jn(t,e,l,a,(e.subtreeFlags&10256)!==0||!1))),i&2048&&vr(f,e);break;case 24:el(t,e,l,a),i&2048&&yr(e.alternate,e);break;case 30:n&&(i=e.alternate,i!==null&&(pl(i.child,!0),pl(e.child,!0))),el(t,e,l,a);break;default:el(t,e,l,a)}}function jn(t,e,l,a,n){for(n=n&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var i=t,s=e,f=l,m=a,E=s.flags;switch(s.tag){case 0:case 11:case 15:jn(i,s,f,m,n),ji(8,s);break;case 23:break;case 22:var M=s.stateNode;s.memoizedState!==null?M._visibility&2?jn(i,s,f,m,n):Ei(i,s):(M._visibility|=2,jn(i,s,f,m,n)),n&&E&2048&&vr(s.alternate,s);break;case 24:jn(i,s,f,m,n),n&&E&2048&&yr(s.alternate,s);break;default:jn(i,s,f,m,n)}e=e.sibling}}function Ei(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,a=e,n=a.flags;switch(a.tag){case 22:Ei(l,a),n&2048&&vr(a.alternate,a);break;case 24:Ei(l,a),n&2048&&yr(a.alternate,a);break;default:Ei(l,a)}e=e.sibling}}var Ba=8192;function qa(t,e,l){if(t.subtreeFlags&Ba)for(t=t.child;t!==null;)Eh(t,e,l),t=t.sibling}function Eh(t,e,l){switch(t.tag){case 26:qa(t,e,l),t.flags&Ba&&(t.memoizedState!==null?b1(l,rl,t.memoizedState,t.memoizedProps):(t=t.stateNode,(e&335544128)===e&&Cm(l,t)));break;case 5:qa(t,e,l),t.flags&Ba&&(t=t.stateNode,(e&335544128)===e&&Cm(l,t));break;case 3:case 4:var a=rl;rl=Di(t.stateNode.containerInfo),qa(t,e,l),rl=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Ba,Ba=16777216,qa(t,e,l),Ba=a):qa(t,e,l));break;case 30:if((t.flags&Ba)!==0&&(a=t.memoizedProps.name,a!=null&&a!=="auto")){var n=t.stateNode;n.paired=null,Ye===null&&(Ye=new Map),Ye.set(a,n)}qa(t,e,l);break;default:qa(t,e,l)}}function _h(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function _i(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];me=a,zh(a,t)}_h(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Th(t),t=t.sibling}function Th(t){switch(t.tag){case 0:case 11:case 15:_i(t),t.flags&2048&&na(9,t,t.return);break;case 3:_i(t);break;case 12:_i(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,ku(t)):_i(t);break;default:_i(t)}}function ku(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var a=e[l];me=a,zh(a,t)}_h(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:na(8,e,e.return),ku(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,ku(e));break;default:ku(e)}t=t.sibling}}function zh(t,e){for(;me!==null;){var l=me;switch(l.tag){case 0:case 11:case 15:na(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:ci(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,me=a;else t:for(l=t;me!==null;){a=me;var n=a.sibling,i=a.return;if(yh(a),a===l){me=null;break t}if(n!==null){n.return=i,me=n;break t}me=i}}}var vy={getCacheForType:function(t){var e=ge(ne),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return ge(ne).controller.signal}},yy=typeof WeakMap=="function"?WeakMap:Map,wt=0,Qt=null,Et=null,Ot=0,Bt=0,Xe=null,ua=!1,Sn=!1,gr=!1,Ll=0,le=0,sa=0,Ga=0,Fu=0,Qe=0,Nn=0,Ti=null,Ue=null,xr=!1,Wu=0,Mh=0,Iu=1/0,Pu=null,ca=null,te=0,ol=null,La=null,Nl=0,pr=0,br=null,Oh=null,En=null,_n=null,Tn=null,zi=0,ts=null;function Ve(){return(wt&2)!==0&&Ot!==0?Ot&-Ot:P.T!==null?Ar():Cf()}function Ah(){if(Qe===0)if((Ot&536870912)===0||bt){var t=$i;$i<<=1,($i&3932160)===0&&($i=262144),Qe=t}else Qe=536870912;return t=xe.current,t!==null&&(t.flags|=32),Qe}function zn(t,e){if(e!=null){var l=t.stateNode,a=l.ref;a===null&&(a=l.ref=fm(Al(t.memoizedProps,l))),_n===null&&(_n=[]),_n.push(e.bind(null,a))}}function we(t,e,l){(t===Qt&&(Bt===2||Bt===9)||t.cancelPendingCommit!==null)&&(Mn(t,0),ra(t,Ot,Qe,!1)),$n(t,l),((wt&2)===0||t!==Qt)&&(t===Qt&&((wt&2)===0&&(Ga|=l),le===4&&ra(t,Ot,Qe,!1)),El(t))}function Ch(t,e,l){if((wt&6)!==0)throw Error(o(327));var a=!l&&(e&127)===0&&(e&t.expiredLanes)===0||Jn(t,e),n=a?py(t,e):Sr(t,e,!0),i=a;do{if(n===0){Sn&&!a&&ra(t,e,0,!1);break}else{if(l=t.current.alternate,i&&!gy(l)){n=Sr(t,e,!1),i=!1;continue}if(n===2){if(i=e,t.errorRecoveryDisabledLanes&i)var s=0;else s=t.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){e=s;t:{var f=t;n=Ti;var m=f.current.memoizedState.isDehydrated;if(m&&(Mn(f,s).flags|=256),s=Sr(f,s,!1),s!==2&&s!==6){if(gr&&!m){f.errorRecoveryDisabledLanes|=i,Ga|=i,n=4;break t}i=Ue,Ue=n,i!==null&&(Ue===null?Ue=i:Ue.push.apply(Ue,i))}n=s}if(i=!1,n!==2)continue}}if(n===1){Mn(t,0),ra(t,e,0,!0);break}t:{switch(a=t,i=n,i){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e&&(e&62914560)!==e)break;case 6:ra(a,e,Qe,!ua);break t;case 2:Ue=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(n=Wu+300-Mt(),10<n)){if(ra(a,e,Qe,!ua),Fi(a,0,!0)!==0)break t;Nl=e,a.timeoutHandle=Yr(Dh.bind(null,a,l,Ue,Pu,xr,e,Qe,Ga,Nn,ua,i,"Throttled",-0,0),n);break t}Dh(a,l,Ue,Pu,xr,e,Qe,Ga,Nn,ua,i,null,-0,0)}}break}while(!0);El(t)}function Dh(t,e,l,a,n,i,s,f,m,E,M,R,j,z){t.timeoutHandle=-1;var Z=e.subtreeFlags,et=(i&335544064)===i;if(R=null,(et||Z&8192||(Z&16785408)===16785408)&&(R={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ml},Ye=null,Eh(e,i,R),et&&(Z=R,et=t.containerInfo,et=(et.nodeType===9?et:et.ownerDocument).__reactViewTransition,et!=null&&(Z.count++,Z.waitingForViewTransition=!0,Z=wi.bind(Z),et.finished.then(Z,Z))),Z=(i&62914560)===i?Wu-Mt():(i&4194048)===i?Mh-Mt():0,Z=j1(R,Z),Z!==null)){Nl=i,t.cancelPendingCommit=Z(Lh.bind(null,t,e,i,l,a,n,s,f,m,E,M,R,null,j,z)),ra(t,i,s,!E);return}Lh(t,e,i,l,a,n,s,f,m,E,M,R)}function gy(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],i=n.getSnapshot;n=n.value;try{if(!Ge(i(),n))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ra(t,e,l,a){e=Tf(t,e),e&=~Fu,e&=~Ga,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var n=e;0<n;){var i=31-Be(n),s=1<<i;a[i]=-1,n&=~s}l!==0&&Mf(t,l,e)}function es(){return(wt&6)===0?(Mi(0),!1):!0}function jr(){if(Et!==null){if(Bt===0)var t=Et.return;else t=Et,Ul=za=null,Oc(t),mn=null,oi=0,t=Et;for(;t!==null;)eh(t.alternate,t),t=t.return;Et=null}}function Mn(t,e){var l=t.timeoutHandle;return l!==-1&&(t.timeoutHandle=-1,Yy(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),Nl=0,jr(),Qt=t,Et=l=Dl(t.current,null),Ot=e,Bt=0,Xe=null,ua=!1,Sn=Jn(t,e),gr=!1,Nn=Qe=Fu=Ga=sa=le=0,Ue=Ti=null,xr=!1,Ll=Tf(t,e),ru(),l}function Rh(t,e){yt=null,P.H=Uu,e===hn||e===bu?(e=Lo(),Bt=3):e===yc?(e=Lo(),Bt=4):Bt=e===Vc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Xe=e,Et===null&&(le=1,wu(t,We(e,t.current)))}function Uh(){var t=xe.current;return t===null?!0:(Ot&4194048)===Ot?Ee===null:(Ot&62914560)===Ot||(Ot&536870912)!==0?t===Ee:!1}function wh(){var t=P.H;return P.H=Uu,t===null?Uu:t}function Hh(){var t=P.A;return P.A=vy,t}function ls(){le=4,ua||(Ot&4194048)!==Ot&&xe.current!==null||(Sn=!0),(sa&134217727)===0&&(Ga&134217727)===0||Qt===null||ra(Qt,Ot,Qe,!1)}function Sr(t,e,l){var a=wt;wt|=2;var n=wh(),i=Hh();(Qt!==t||Ot!==e)&&(Pu=null,Mn(t,e)),e=!1;var s=le;t:do try{if(Bt!==0&&Et!==null){var f=Et,m=Xe;switch(Bt){case 8:jr(),s=6;break t;case 3:case 2:case 9:case 6:xe.current===null&&(e=!0);var E=Bt;if(Bt=0,Xe=null,On(t,f,m,E),l&&Sn){s=0;break t}break;default:E=Bt,Bt=0,Xe=null,On(t,f,m,E)}}xy(),s=le;break}catch(M){Rh(t,M)}while(!0);return e&&t.shellSuspendCounter++,Ul=za=null,wt=a,P.H=n,P.A=i,Et===null&&(Qt=null,Ot=0,ru()),s}function xy(){for(;Et!==null;)Bh(Et)}function py(t,e){var l=wt;wt|=2;var a=wh(),n=Hh();Qt!==t||Ot!==e?(Pu=null,Iu=Mt()+500,Mn(t,e)):Sn=Jn(t,e);t:do try{if(Bt!==0&&Et!==null){e=Et;var i=Xe;e:switch(Bt){case 1:Bt=0,Xe=null,On(t,e,i,1);break;case 2:case 9:if(qo(i)){Bt=0,Xe=null,qh(e);break}e=function(){Bt!==2&&Bt!==9||Qt!==t||(Bt=7),El(t)},i.then(e,e);break t;case 3:Bt=7;break t;case 4:Bt=5;break t;case 7:qo(i)?(Bt=0,Xe=null,qh(e)):(Bt=0,Xe=null,On(t,e,i,7));break;case 5:var s=null;switch(Et.tag){case 26:s=Et.memoizedState;case 5:case 27:var f=Et;if(s?Om(s):f.stateNode.complete){Bt=0,Xe=null;var m=f.sibling;if(m!==null)Et=m;else{var E=f.return;E!==null?(Et=E,as(E)):Et=null}break e}}Bt=0,Xe=null,On(t,e,i,5);break;case 6:Bt=0,Xe=null,On(t,e,i,6);break;case 8:jr(),le=6;break t;default:throw Error(o(462))}}by();break}catch(M){Rh(t,M)}while(!0);return Ul=za=null,P.H=a,P.A=n,wt=l,Et!==null?0:(Qt=null,Ot=0,ru(),le)}function by(){for(;Et!==null&&!mt();)Bh(Et)}function Bh(t){var e=Pd(t.alternate,t,Ll);t.memoizedProps=t.pendingProps,e===null?as(t):Et=e}function qh(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=Kd(l,e,e.pendingProps,e.type,void 0,Ot);break;case 11:e=Kd(l,e,e.pendingProps,e.type.render,e.ref,Ot);break;case 5:Oc(e);var a=e;a===de&&(bt?(vu(a),a.tag===5&&a.stateNode!=null&&(Jt=a.stateNode)):(vu(a),bt=!0));default:eh(l,e),e=Et=zo(e,Ll),e=Pd(l,e,Ll)}t.memoizedProps=t.pendingProps,e===null?as(t):Et=e}function On(t,e,l,a){Ul=za=null,Oc(e),mn=null,oi=0;var n=e.return;try{if(sy(t,n,e,l,Ot)){le=1,wu(t,We(l,t.current)),Et=null;return}}catch(i){if(n!==null)throw Et=n,i;le=1,wu(t,We(l,t.current)),Et=null;return}e.flags&32768?(bt||a===1?t=!0:Sn||(Ot&536870912)!==0?t=!1:(ua=t=!0,(a===2||a===9||a===3||a===6)&&(a=xe.current,a!==null&&a.tag===13&&(a.flags|=16384))),Gh(e,t)):as(e)}function as(t){var e=t;do{if((e.flags&32768)!==0){Gh(e,ua);return}t=e.return;var l=oy(e.alternate,e,Ll);if(l!==null){Et=l;return}if(e=e.sibling,e!==null){Et=e;return}Et=e=t}while(e!==null);le===0&&(le=5)}function Gh(t,e){do{var l=dy(t.alternate,t);if(l!==null){l.flags&=32767,Et=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){Et=t;return}Et=t=l}while(t!==null);le=6,Et=null}function Lh(t,e,l,a,n,i,s,f,m,E,M,R){t.cancelPendingCommit=null;do ns();while(te!==0);if((wt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));t===Qt&&(Et=Qt=null,Ot=0),La=e,ol=t,Nl=l,br=n,Oh=a,jy(t,e,l,s,f,m,R)}}function jy(t,e,l,a,n,i,s){var f=e.lanes|e.childLanes;if(pr=f,f|=ac,J0(t,l,f,a,n,i),_n=null,(l&335544064)===l?(Tn=kv(t),a=10262):(Tn=null,a=10256),(e.subtreeFlags&a)!==0||(e.flags&a)!==0?(t.callbackNode=null,t.callbackPriority=0,zy($a,function(){return Tr(),null})):(t.callbackNode=null,t.callbackPriority=0),Qu=!1,a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=P.T,P.T=null,n=rt.p,rt.p=2,i=wt,wt|=4;try{hy(t,e,l)}finally{wt=i,rt.p=n,P.T=a}}te=1,Qu?En=Jy(s,t.containerInfo,Tn,Nr,Er,Ny,_r,Tr,Sy):(Nr(),Er(),_r())}function Sy(t){if(te!==0){var e=ol.onRecoverableError;e(t,{componentStack:null})}}function Ny(){te===3&&(te=0,Sh(La,ol),te=4)}function Nr(){if(te===1){te=0;var t=ol,e=La,l=Nl,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=P.T,P.T=null;var n=rt.p;rt.p=2;var i=wt;wt|=4;try{Ni=Ku=!1,bh(e,t,l),l=qr;var s=go(t.containerInfo),f=l.focusedElem,m=l.selectionRange;if(s!==f&&f&&f.ownerDocument&&yo(f.ownerDocument.documentElement,f)){if(m!==null&&Is(f)){var E=m.start,M=m.end;if(M===void 0&&(M=E),"selectionStart"in f)f.selectionStart=E,f.selectionEnd=Math.min(M,f.value.length);else{var R=f.ownerDocument||document,j=R&&R.defaultView||window;if(j.getSelection){var z=j.getSelection(),Z=f.textContent.length,et=Math.min(m.start,Z),gt=m.end===void 0?et:Math.min(m.end,Z);!z.extend&&et>gt&&(s=gt,gt=et,et=s);var S=vo(f,et),g=vo(f,gt);if(S&&g&&(z.rangeCount!==1||z.anchorNode!==S.node||z.anchorOffset!==S.offset||z.focusNode!==g.node||z.focusOffset!==g.offset)){var _=R.createRange();_.setStart(S.node,S.offset),z.removeAllRanges(),et>gt?(z.addRange(_),z.extend(g.node,g.offset)):(_.setEnd(g.node,g.offset),z.addRange(_))}}}}for(R=[],z=f;z=z.parentNode;)z.nodeType===1&&R.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f<R.length;f++){var D=R[f];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}Bn=!!Br,qr=Br=null}finally{wt=i,rt.p=n,P.T=a}}t.current=e,te=2}}function Er(){if(te===2){te=0;var t=ol,e=La,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=P.T,P.T=null;var a=rt.p;rt.p=2;var n=wt;wt|=4;try{mh(t,e.alternate,e)}finally{wt=n,rt.p=a,P.T=l}}te=3}}function _r(){if(te===4||te===3){te=0;var t=En;En=null,xt();var e=ol,l=La,a=Nl,n=Oh,i=(a&335544064)===a?10262:10256;if((l.subtreeFlags&i)!==0||(l.flags&i)!==0?te=5:(te=0,La=ol=null,Yh(e,e.pendingLanes)),i=e.pendingLanes,i===0&&(ca=null),Us(a),l=l.stateNode,He&&typeof He.onCommitFiberRoot=="function")try{He.onCommitFiberRoot(Kn,l,void 0,(l.current.flags&128)===128)}catch{}if(n!==null){l=P.T,i=rt.p,rt.p=2,P.T=null;try{for(var s=e.onRecoverableError,f=0;f<n.length;f++){var m=n[f];s(m.value,{componentStack:m.stack})}}finally{P.T=l,rt.p=i}}if(n=_n,s=Tn,Tn=null,n!==null&&(_n=null,s===null&&(s=[]),t!==null))for(m=0;m<n.length;m++)l=(0,n[m])(s),l!==void 0&&t.finished.finally(l);(Nl&3)!==0&&ns(),El(e),i=e.pendingLanes,(a&261930)!==0&&(i&42)!==0?e===ts?zi++:(zi=0,ts=e):(zi=0,ts=null),Mi(0)}}function Yh(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ci(e)))}function ns(){return En!==null&&(En.skipTransition(),En=null),Nr(),Er(),_r(),Tr()}function Tr(){if(te!==5)return!1;var t=ol,e=pr;pr=0;var l=Us(Nl),a=P.T,n=rt.p;try{rt.p=32>l?32:l,P.T=null,l=br,br=null;var i=ol,s=Nl;if(te=0,La=ol=null,Nl=0,(wt&6)!==0)throw Error(o(331));var f=wt;if(wt|=4,Th(i.current),Nh(i,i.current,s,l),wt=f,Mi(0,!1),He&&typeof He.onPostCommitFiberRoot=="function")try{He.onPostCommitFiberRoot(Kn,i)}catch{}return!0}finally{rt.p=n,P.T=a,Yh(t,e)}}function Xh(t,e,l){e=We(l,e),e=Qc(t.stateNode,e,2),t=ta(t,e,2),t!==null&&($n(t,2),El(t))}function qt(t,e,l){if(t.tag===3)Xh(t,t,l);else for(;e!==null;){if(e.tag===3){Xh(e,t,l);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(ca===null||!ca.has(a))){t=We(l,t),l=qd(2),a=ta(e,l,2),a!==null&&(Gd(l,a,e,t),$n(a,2),El(a));break}}e=e.return}}function zr(t,e,l){var a=t.pingCache;if(a===null){a=t.pingCache=new yy;var n=new Set;a.set(e,n)}else n=a.get(e),n===void 0&&(n=new Set,a.set(e,n));n.has(l)||(gr=!0,n.add(l),t=Ey.bind(null,t,e,l),e.then(t,t))}function Ey(t,e,l){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Qt===t&&(Ot&l)===l&&((le===4||le===3&&(Ot&62914560)===Ot&&300>Mt()-Wu)&&(wt&2)===0?Mn(t,0):Fu|=l,Nn===Ot&&(Nn=0)),El(t)}function Qh(t,e){e===0&&(e=zf()),t=Ea(t,e),t!==null&&($n(t,e),El(t))}function _y(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),Qh(t,l)}function Ty(t,e){var l=0;switch(t.tag){case 31:case 13:var a=t.stateNode,n=t.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),Qh(t,l)}function zy(t,e){return pt(t,e)}var An=null,Cn=null,Mr=!1,is=!1,Or=!1,fa=0;function El(t){t!==Cn&&t.next===null&&(Cn===null?An=Cn=t:Cn=Cn.next=t),is=!0,Mr||(Mr=!0,Oy())}function Mi(t,e){if(!Or&&is){Or=!0;do for(var l=!1,a=An;a!==null;){if(t!==0){var n=a.pendingLanes;if(n===0)var i=0;else{var s=a.suspendedLanes,f=a.pingedLanes;i=(1<<31-Be(42|t)+1)-1,i&=n&~(s&~f),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(l=!0,Jh(a,i))}else i=Ot,i=Fi(a,a===Qt?i:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(i&3)===0||Jn(a,i)||(l=!0,Jh(a,i));a=a.next}while(l);Or=!1}}function My(){Vh()}function Vh(){is=Mr=!1;var t=0;fa!==0&&Ly()&&(t=fa);for(var e=Mt(),l=null,a=An;a!==null;){var n=a.next,i=Zh(a,e);i===0?(a.next=null,l===null?An=n:l.next=n,n===null&&(Cn=l)):(l=a,(t!==0||(i&3)!==0)&&(is=!0)),a=n}te!==0&&te!==5||Mi(t),fa!==0&&(fa=0)}function Zh(t,e){for(var l=t.suspendedLanes,a=t.pingedLanes,n=t.expirationTimes,i=t.pendingLanes&-62914561;0<i;){var s=31-Be(i),f=1<<s,m=n[s];m===-1?((f&l)===0||(f&a)!==0)&&(n[s]=K0(f,e)):m<=e&&(t.expiredLanes|=f),i&=~f}if(e=Qt,l=Ot,l=Fi(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,l===0||t===e&&(Bt===2||Bt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&Lt(a),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||Jn(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(a!==null&&Lt(a),Us(l)){case 2:case 8:l=Zi;break;case 32:l=$a;break;case 268435456:l=xa;break;default:l=$a}return a=Kh.bind(null,t),l=pt(l,a),t.callbackPriority=e,t.callbackNode=l,e}return a!==null&&a!==null&&Lt(a),t.callbackPriority=2,t.callbackNode=null,2}function Kh(t,e){if(te!==0&&te!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(ns()&&t.callbackNode!==l)return null;var a=Ot;return a=Fi(t,t===Qt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(Ch(t,a,e),Zh(t,Mt()),t.callbackNode!=null&&t.callbackNode===l?Kh.bind(null,t):null)}function Jh(t,e){if(ns())return null;Ch(t,e,!0)}function Oy(){Xy(function(){(wt&6)!==0?pt(fe,My):Vh()})}function Ar(){if(fa===0){var t=Aa;t===0&&(t=Ji,Ji<<=1,(Ji&261888)===0&&(Ji=256)),fa=t}return fa}function $h(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:eu(t)}function Ay(t,e,l,a,n){if(e==="submit"&&l&&l.stateNode===n){var i=$h((n[Ae]||null).action),s=a.submitter;s&&(e=(e=s[Ae]||null)?$h(e.formAction):s.getAttribute("formAction"),e!==null&&(i=e,s=null));var f=new iu("action","action",null,a,n);t.push({event:f,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(fa!==0){var m=new FormData(n,s);qc(l,{pending:!0,data:m,method:n.method,action:i},null,m)}}else typeof i=="function"&&(f.preventDefault(),m=new FormData(n,s),qc(l,{pending:!0,data:m,method:n.method,action:i},i,m))},currentTarget:n}]})}}for(var Cr=0;Cr<lc.length;Cr++){var Dr=lc[Cr],Cy=Dr.toLowerCase(),Dy=Dr[0].toUpperCase()+Dr.slice(1);sl(Cy,"on"+Dy)}sl(bo,"onAnimationEnd"),sl(jo,"onAnimationIteration"),sl(So,"onAnimationStart"),sl("dblclick","onDoubleClick"),sl("focusin","onFocus"),sl("focusout","onBlur"),sl(Yv,"onTransitionRun"),sl(Xv,"onTransitionStart"),sl(Qv,"onTransitionCancel"),sl(No,"onTransitionEnd"),Ia("onMouseEnter",["mouseout","mouseover"]),Ia("onMouseLeave",["mouseout","mouseover"]),Ia("onPointerEnter",["pointerout","pointerover"]),Ia("onPointerLeave",["pointerout","pointerover"]),ja("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ja("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ja("onBeforeInput",["compositionend","keypress","textInput","paste"]),ja("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ja("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ja("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Oi="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(" "),Ry=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Oi));function kh(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var a=t[l],n=a.event;a=a.listeners;t:{var i=void 0;if(e)for(var s=a.length-1;0<=s;s--){var f=a[s],m=f.instance,E=f.currentTarget;if(f=f.listener,m!==i&&n.isPropagationStopped())break t;i=f,n.currentTarget=E;try{i(n)}catch(M){cu(M)}n.currentTarget=null,i=m}else for(s=0;s<a.length;s++){if(f=a[s],m=f.instance,E=f.currentTarget,f=f.listener,m!==i&&n.isPropagationStopped())break t;i=f,n.currentTarget=E;try{i(n)}catch(M){cu(M)}n.currentTarget=null,i=m}}}}function _t(t,e){var l=e[Rf];l===void 0&&(l=e[Rf]=new Set);var a=t+"__bubble";l.has(a)||(Fh(e,t,2,!1),l.add(a))}function Rr(t,e,l){var a=0;e&&(a|=4),Fh(l,t,a,e)}var us="_reactListening"+Math.random().toString(36).slice(2);function Ur(t){if(!t[us]){t[us]=!0,Hf.forEach(function(l){l!=="selectionchange"&&(Ry.has(l)||Rr(l,!1,t),Rr(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[us]||(e[us]=!0,Rr("selectionchange",!1,e))}}function Fh(t,e,l,a){switch(Gm(e)){case 2:var n=_1;break;case 8:n=T1;break;default:n=tf}l=n.bind(null,e,l,t),n=void 0,!Xs||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),a?n!==void 0?t.addEventListener(e,l,{capture:!0,passive:n}):t.addEventListener(e,l,!0):n!==void 0?t.addEventListener(e,l,{passive:n}):t.addEventListener(e,l,!1)}function wr(t,e,l,a,n){var i=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var s=a.tag;if(s===3||s===4){var f=a.stateNode.containerInfo;if(f===n)break;if(s===4)for(s=a.return;s!==null;){var m=s.tag;if((m===3||m===4)&&s.stateNode.containerInfo===n)return;s=s.return}for(;f!==null;){if(s=ba(f),s===null)return;if(m=s.tag,m===5||m===6||m===26||m===27){a=i=s;continue t}f=f.parentNode}}a=a.return}kf(function(){var E=i,M=Ls(l),R=[];t:{var j=Eo.get(t);if(j!==void 0){var z=iu,Z=t;switch(t){case"keypress":if(au(l)===0)break t;case"keydown":case"keyup":z=gv;break;case"focusin":Z="focus",z=Ks;break;case"focusout":Z="blur",z=Ks;break;case"beforeblur":case"afterblur":z=Ks;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=If;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=iv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=Sv;break;case bo:case jo:case So:z=cv;break;case No:z=Ev;break;case"scroll":case"scrollend":z=av;break;case"wheel":z=Tv;break;case"copy":case"cut":case"paste":z=fv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=to;break;case"submit":z=bv;break;case"toggle":case"beforetoggle":z=Mv}var et=(e&4)!==0,gt=!et&&(t==="scroll"||t==="scrollend"),S=et?j!==null?j+"Capture":null:j;et=[];for(var g=E,_;g!==null;){var D=g;if(_=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||_===null||S===null||(D=Wn(g,S),D!=null&&et.push(Ai(g,D,_))),gt)break;g=g.return}0<et.length&&(j=new z(j,Z,null,l,M),R.push({event:j,listeners:et}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",j=t==="mouseout"||t==="pointerout",z&&l!==Gs&&(Z=l.relatedTarget||l.fromElement)&&(ba(Z)||Z[ka]))break t;(j||z)&&(Z=M.window===M?M:(z=M.ownerDocument)?z.defaultView||z.parentWindow:window,j?(z=l.relatedTarget||l.toElement,j=E,z=z?ba(z):null,z!==null&&(gt=y(z),et=z.tag,z!==gt||et!==5&&et!==27&&et!==6)&&(z=null)):(j=null,z=E),j!==z&&(et=If,D="onMouseLeave",S="onMouseEnter",g="mouse",(t==="pointerout"||t==="pointerover")&&(et=to,D="onPointerLeave",S="onPointerEnter",g="pointer"),gt=j==null?Z:Fn(j),_=z==null?Z:Fn(z),Z=new et(D,g+"leave",j,l,M),Z.target=gt,Z.relatedTarget=_,D=null,ba(M)===E&&(et=new et(S,g+"enter",z,l,M),et.target=_,et.relatedTarget=gt,D=et),gt=D,et=j&&z?nt(j,z,Uy):null,j!==null&&Wh(R,Z,j,et,!1),z!==null&&gt!==null&&Wh(R,gt,z,et,!0)))}t:{if(j=E?Fn(E):window,z=j.nodeName&&j.nodeName.toLowerCase(),z==="select"||z==="input"&&j.type==="file")var $=co;else if(uo(j))if(ro)$=qv;else{$=Hv;var At=wv}else z=j.nodeName,!z||z.toLowerCase()!=="input"||j.type!=="checkbox"&&j.type!=="radio"?E&&qs(E.elementType)&&($=co):$=Bv;if($&&($=$(t,E))){so(R,$,l,M);break t}At&&At(t,j,E)}switch(At=E?Fn(E):window,t){case"focusin":(uo(At)||At.contentEditable==="true")&&(nn=At,Ps=E,ii=null);break;case"focusout":ii=Ps=nn=null;break;case"mousedown":tc=!0;break;case"contextmenu":case"mouseup":case"dragend":tc=!1,xo(R,l,M);break;case"selectionchange":if(Lv)break;case"keydown":case"keyup":xo(R,l,M)}var st;if($s)t:{switch(t){case"compositionstart":var ft="onCompositionStart";break t;case"compositionend":ft="onCompositionEnd";break t;case"compositionupdate":ft="onCompositionUpdate";break t}ft=void 0}else an?no(t,l)&&(ft="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(ft="onCompositionStart");ft&&(eo&&l.locale!=="ko"&&(an||ft!=="onCompositionStart"?ft==="onCompositionEnd"&&an&&(st=Ff()):(Zl=M,Qs="value"in Zl?Zl.value:Zl.textContent,an=!0)),At=ss(E,ft),0<At.length&&(ft=new Pf(ft,t,null,l,M),R.push({event:ft,listeners:At}),st?ft.data=st:(st=io(l),st!==null&&(ft.data=st)))),(st=Av?Cv(t,l):Dv(t,l))&&(ft=ss(E,"onBeforeInput"),0<ft.length&&(At=new Pf("onBeforeInput","beforeinput",null,l,M),R.push({event:At,listeners:ft}),At.data=st)),Ay(R,t,E,l,M)}kh(R,e)})}function Ai(t,e,l){return{instance:t,listener:e,currentTarget:l}}function ss(t,e){for(var l=e+"Capture",a=[];t!==null;){var n=t,i=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||i===null||(n=Wn(t,l),n!=null&&a.unshift(Ai(t,n,i)),n=Wn(t,e),n!=null&&a.push(Ai(t,n,i))),t.tag===3)return a;t=t.return}return[]}function Uy(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Wh(t,e,l,a,n){for(var i=e._reactName,s=[];l!==null&&l!==a;){var f=l,m=f.alternate,E=f.stateNode;if(f=f.tag,m!==null&&m===a)break;f!==5&&f!==26&&f!==27||E===null||(m=E,n?(E=Wn(l,i),E!=null&&s.unshift(Ai(l,E,m))):n||(E=Wn(l,i),E!=null&&s.push(Ai(l,E,m)))),l=l.return}s.length!==0&&t.push({event:e,listeners:s})}var wy=/\r\n?/g,Hy=/\u0000|\uFFFD/g;function Ih(t){return(typeof t=="string"?t:""+t).replace(wy,`
49
+ `).replace(Hy,"")}function Ph(t,e){return e=Ih(e),Ih(t)===e}function Gt(t,e,l,a,n,i){switch(l){case"children":if(typeof a=="string")e==="body"||e==="textarea"&&a===""||tn(t,a);else if(typeof a=="number"||typeof a=="bigint")e!=="body"&&tn(t,""+a);else return;break;case"className":tu(t,"class",a);break;case"tabIndex":tu(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":tu(t,l,a);break;case"style":Jf(t,a,i);return;case"data":if(e!=="object"){tu(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=eu(a),t.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){t.setAttribute(l,"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 i=="function"&&(l==="formAction"?(e!=="input"&&Gt(t,e,"name",n.name,n,null),Gt(t,e,"formEncType",n.formEncType,n,null),Gt(t,e,"formMethod",n.formMethod,n,null),Gt(t,e,"formTarget",n.formTarget,n,null)):(Gt(t,e,"encType",n.encType,n,null),Gt(t,e,"method",n.method,n,null),Gt(t,e,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(l);break}a=eu(a),t.setAttribute(l,a);break;case"onClick":a!=null&&(t.onclick=ml);return;case"onScroll":a!=null&&_t("scroll",t);return;case"onScrollEnd":a!=null&&_t("scrollend",t);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));(i!=null?i.__html:void 0)!==l&&(t.innerHTML=l)}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}l=eu(a),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"credentialless":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":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":a===!0?t.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(l,a):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(l,a):t.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(l):t.setAttribute(l,a);break;case"popover":_t("beforetoggle",t),_t("toggle",t),Pi(t,"popover",a);break;case"xlinkActuate":Ml(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ml(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ml(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ml(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ml(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ml(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ml(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ml(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ml(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Pi(t,"is",a);break;case"innerText":case"textContent":return;default:if(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")l=ev.get(l)||l,Pi(t,l,a);else return}Rt=!0}function Hr(t,e,l,a,n,i){switch(l){case"style":Jf(t,a,i);return;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(o(60));(i!=null?i.__html:void 0)!==l&&(t.innerHTML=l)}}break;case"children":if(typeof a=="string")tn(t,a);else if(typeof a=="number"||typeof a=="bigint")tn(t,""+a);else return;break;case"onScroll":a!=null&&_t("scroll",t);return;case"onScrollEnd":a!=null&&_t("scrollend",t);return;case"onClick":a!=null&&(t.onclick=ml);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!Bf.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),i=l.slice(2,n?l.length-7:void 0),e=t[Ae]||null,e=e!=null?e[l]:null,typeof e=="function"&&t.removeEventListener(i,e,n),typeof a=="function")){typeof e!="function"&&e!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(i,a,n);break t}Rt=!0,l in t?t[l]=a:a===!0?t.setAttribute(l,""):Pi(t,l,a)}return}Rt=!0}function je(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_t("error",t),_t("load",t);var a=!1,n=!1,i;for(i in l)if(l.hasOwnProperty(i)){var s=l[i];if(s!=null)switch(i){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Gt(t,e,i,s,l,null)}}n&&Gt(t,e,"srcSet",l.srcSet,l,null),a&&Gt(t,e,"src",l.src,l,null);return;case"input":_t("invalid",t);var f=i=s=n=null,m=null,E=null;for(a in l)if(l.hasOwnProperty(a)){var M=l[a];if(M!=null)switch(a){case"name":n=M;break;case"type":s=M;break;case"checked":m=M;break;case"defaultChecked":E=M;break;case"value":i=M;break;case"defaultValue":f=M;break;case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(o(137,e));break;default:Gt(t,e,a,M,l,null)}}Qf(t,i,f,m,E,s,n,!1);return;case"select":_t("invalid",t),a=s=i=null;for(n in l)if(l.hasOwnProperty(n)&&(f=l[n],f!=null))switch(n){case"value":i=f;break;case"defaultValue":s=f;break;case"multiple":a=f;default:Gt(t,e,n,f,l,null)}e=i,l=s,t.multiple=!!a,e!=null?Pa(t,!!a,e,!1):l!=null&&Pa(t,!!a,l,!0);return;case"textarea":_t("invalid",t),i=n=a=null;for(s in l)if(l.hasOwnProperty(s)&&(f=l[s],f!=null))switch(s){case"value":a=f;break;case"defaultValue":n=f;break;case"children":i=f;break;case"dangerouslySetInnerHTML":if(f!=null)throw Error(o(91));break;default:Gt(t,e,s,f,l,null)}Zf(t,a,n,i);return;case"option":for(m in l)if(l.hasOwnProperty(m)&&(a=l[m],a!=null))switch(m){case"selected":t.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Gt(t,e,m,a,l,null)}return;case"dialog":_t("beforetoggle",t),_t("toggle",t),_t("cancel",t),_t("close",t);break;case"iframe":case"object":_t("load",t);break;case"video":case"audio":for(a=0;a<Oi.length;a++)_t(Oi[a],t);break;case"image":_t("error",t),_t("load",t);break;case"details":_t("toggle",t);break;case"embed":case"source":case"link":_t("error",t),_t("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(E in l)if(l.hasOwnProperty(E)&&(a=l[E],a!=null))switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Gt(t,e,E,a,l,null)}return;default:if(qs(e)){for(M in l)l.hasOwnProperty(M)&&(a=l[M],a!==void 0&&Hr(t,e,M,a,l,void 0));return}}for(f in l)l.hasOwnProperty(f)&&(a=l[f],a!=null&&Gt(t,e,f,a,l,null))}var By={};function qy(t,e,l,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,i=null,s=null,f=null,m=null,E=null,M=null;for(z in l){var R=l[z];if(l.hasOwnProperty(z)&&R!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":m=R;default:a.hasOwnProperty(z)||Gt(t,e,z,null,a,R)}}for(var j in a){var z=a[j];if(R=l[j],a.hasOwnProperty(j)&&(z!=null||R!=null))switch(j){case"type":z!==R&&(Rt=!0),i=z;break;case"name":z!==R&&(Rt=!0),n=z;break;case"checked":z!==R&&(Rt=!0),E=z;break;case"defaultChecked":z!==R&&(Rt=!0),M=z;break;case"value":z!==R&&(Rt=!0),s=z;break;case"defaultValue":z!==R&&(Rt=!0),f=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,e));break;default:z!==R&&Gt(t,e,j,z,a,R)}}Hs(t,s,f,m,E,M,i,n);return;case"select":z=s=f=j=null;for(i in l)if(m=l[i],l.hasOwnProperty(i)&&m!=null)switch(i){case"value":break;case"multiple":z=m;default:a.hasOwnProperty(i)||Gt(t,e,i,null,a,m)}for(n in a)if(i=a[n],m=l[n],a.hasOwnProperty(n)&&(i!=null||m!=null))switch(n){case"value":i!==m&&(Rt=!0),j=i;break;case"defaultValue":i!==m&&(Rt=!0),f=i;break;case"multiple":i!==m&&(Rt=!0),s=i;default:i!==m&&Gt(t,e,n,i,a,m)}e=f,l=s,a=z,j!=null?Pa(t,!!l,j,!1):!!a!=!!l&&(e!=null?Pa(t,!!l,e,!0):Pa(t,!!l,l?[]:"",!1));return;case"textarea":z=j=null;for(f in l)if(n=l[f],l.hasOwnProperty(f)&&n!=null&&!a.hasOwnProperty(f))switch(f){case"value":break;case"children":break;default:Gt(t,e,f,null,a,n)}for(s in a)if(n=a[s],i=l[s],a.hasOwnProperty(s)&&(n!=null||i!=null))switch(s){case"value":n!==i&&(Rt=!0),j=n;break;case"defaultValue":n!==i&&(Rt=!0),z=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(o(91));break;default:n!==i&&Gt(t,e,s,n,a,i)}Vf(t,j,z);return;case"option":for(var Z in l)if(j=l[Z],l.hasOwnProperty(Z)&&j!=null&&!a.hasOwnProperty(Z))switch(Z){case"selected":t.selected=!1;break;default:Gt(t,e,Z,null,a,j)}for(m in a)if(j=a[m],z=l[m],a.hasOwnProperty(m)&&j!==z&&(j!=null||z!=null))switch(m){case"selected":j!==z&&(Rt=!0),t.selected=j&&typeof j!="function"&&typeof j!="symbol";break;default:Gt(t,e,m,j,a,z)}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 et in l)j=l[et],l.hasOwnProperty(et)&&j!=null&&!a.hasOwnProperty(et)&&Gt(t,e,et,null,a,j);for(E in a)if(j=a[E],z=l[E],a.hasOwnProperty(E)&&j!==z&&(j!=null||z!=null))switch(E){case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(o(137,e));break;default:Gt(t,e,E,j,a,z)}return;default:if(qs(e)){for(var gt in l)j=l[gt],l.hasOwnProperty(gt)&&j!==void 0&&!a.hasOwnProperty(gt)&&Hr(t,e,gt,void 0,a,j);for(M in a)j=a[M],z=l[M],!a.hasOwnProperty(M)||j===z||j===void 0&&z===void 0||Hr(t,e,M,j,a,z);return}}for(var S in l)j=l[S],l.hasOwnProperty(S)&&j!=null&&!a.hasOwnProperty(S)&&Gt(t,e,S,null,a,j);for(R in a)j=a[R],z=l[R],!a.hasOwnProperty(R)||j===z||j==null&&z==null||Gt(t,e,R,j,a,z)}function tm(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Gy(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],i=n.transferSize,s=n.initiatorType,f=n.duration;if(i&&f&&tm(s)){for(s=0,f=n.responseEnd,a+=1;a<l.length;a++){var m=l[a],E=m.startTime;if(E>f)break;var M=m.transferSize,R=m.initiatorType;M&&tm(R)&&(m=m.responseEnd,s+=M*(m<f?1:(f-E)/(m-E)))}if(--a,e+=8*(i+s)/(n.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Br=null,qr=null;function Ci(t){return t.nodeType===9?t:t.ownerDocument}function em(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function lm(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function am(t,e,l,a){return l=Ci(l).createElement(t),l[ye]=a,l[Ae]=e,je(l,t,e),oe(l),l}function Gr(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Lr=null;function Ly(){var t=window.event;return t&&t.type==="popstate"?t===Lr?!1:(Lr=t,!0):(Lr=null,!1)}var Yr=typeof setTimeout=="function"?setTimeout:void 0,Yy=typeof clearTimeout=="function"?clearTimeout:void 0,nm=typeof Promise=="function"?Promise:void 0,im=typeof requestAnimationFrame=="function"?requestAnimationFrame:Yr,Xy=typeof queueMicrotask=="function"?queueMicrotask:typeof nm<"u"?function(t){return nm.resolve(null).then(t).catch(Qy)}:Yr;function Qy(t){setTimeout(function(){throw t})}function oa(t){return t==="head"}function um(t,e){var l=e,a=0;do{var n=l.nextSibling;if(t.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){t.removeChild(n),qn(e);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")kr(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,kr(l);for(var i=l.firstChild;i;){var s=i.nextSibling,f=i.nodeName;i[kn]||f==="SCRIPT"||f==="STYLE"||f==="LINK"&&i.rel.toLowerCase()==="stylesheet"||l.removeChild(i),i=s}}else l==="body"&&kr(t.ownerDocument.body);l=n}while(l);qn(e)}function sm(t,e){var l=t;t=0;do{var a=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=a}while(l)}function cm(t,e,l){if(e=CSS.escape(e)!==e?"r-"+btoa(e).replace(/=/g,""):e,t.style.viewTransitionName=e,l!=null&&(t.style.viewTransitionClass=l),l=getComputedStyle(t),l.display==="inline"){if(e=t.getClientRects(),e.length===1)var a=1;else for(var n=a=0;n<e.length;n++){var i=e[n];0<i.width&&0<i.height&&a++}a===1&&(t=t.style,t.display=e.length===1?"inline-block":"block",t.marginTop="-"+l.paddingTop,t.marginBottom="-"+l.paddingBottom)}}function rm(t,e){t=t.style,e=e.style;var l=e!=null?e.hasOwnProperty("viewTransitionName")?e.viewTransitionName:e.hasOwnProperty("view-transition-name")?e["view-transition-name"]:null:null;t.viewTransitionName=l==null||typeof l=="boolean"?"":(""+l).trim(),l=e!=null?e.hasOwnProperty("viewTransitionClass")?e.viewTransitionClass:e.hasOwnProperty("view-transition-class")?e["view-transition-class"]:null:null,t.viewTransitionClass=l==null||typeof l=="boolean"?"":(""+l).trim(),t.display==="inline-block"&&(e==null?t.display=t.margin="":(l=e.display,t.display=l==null||typeof l=="boolean"?"":l,l=e.margin,l!=null?t.margin=l:(l=e.hasOwnProperty("marginTop")?e.marginTop:e["margin-top"],t.marginTop=l==null||typeof l=="boolean"?"":l,e=e.hasOwnProperty("marginBottom")?e.marginBottom:e["margin-bottom"],t.marginBottom=e==null||typeof e=="boolean"?"":e)))}function Vy(t,e,l){return l=l.ownerDocument.defaultView,{rect:t,abs:e.position==="absolute"||e.position==="fixed",clip:e.clipPath!=="none"||e.overflow!=="visible"||e.filter!=="none"||e.mask!=="none"||e.mask!=="none"||e.borderRadius!=="0px",view:0<=t.bottom&&0<=t.right&&t.top<=l.innerHeight&&t.left<=l.innerWidth}}function Xr(t){var e=t.getBoundingClientRect(),l=getComputedStyle(t);return Vy(e,l,t)}function Zy(t){return t.documentElement.clientHeight}function Ky(t){this.addEventListener("load",t),this.addEventListener("error",t)}function Jy(t,e,l,a,n,i,s,f,m){var E=e.nodeType===9?e:e.ownerDocument;try{var M=E.startViewTransition({update:function(){var j=E.defaultView,z=j.navigation&&j.navigation.transition,Z=E.fonts.status;a();var et=[];if(Z==="loaded"&&(Zy(E),E.fonts.status==="loading"&&et.push(E.fonts.ready)),Z=et.length,t!==null)for(var gt=t.suspenseyImages,S=0,g=0;g<gt.length;g++){var _=gt[g];if(!_.complete){var D=_.getBoundingClientRect();if(0<D.bottom&&0<D.right&&D.top<j.innerHeight&&D.left<j.innerWidth){if(S+=Am(_),S>fs){et.length=Z;break}_=new Promise(Ky.bind(_)),et.push(_)}}}if(0<et.length)return j=Promise.race([Promise.all(et),new Promise(function($){return setTimeout($,500)})]).then(n,n),(z?Promise.allSettled([z.finished,j]):j).then(i,i);if(n(),z)return z.finished.then(i,i);i()},types:l});E.__reactViewTransition=M;var R=[];return M.ready.then(function(){for(var j=E.documentElement.getAnimations({subtree:!0}),z=0;z<j.length;z++){var Z=j[z],et=Z.effect,gt=et.pseudoElement;if(gt!=null&&gt.startsWith("::view-transition")){R.push(Z),Z=et.getKeyframes();for(var S=gt=void 0,g=!0,_=0;_<Z.length;_++){var D=Z[_],$=D.width;if(gt===void 0)gt=$;else if(gt!==$){g=!1;break}if($=D.height,S===void 0)S=$;else if(S!==$){g=!1;break}delete D.width,delete D.height,D.transform==="none"&&delete D.transform}g&&gt!==void 0&&S!==void 0&&(et.setKeyframes(Z),g=getComputedStyle(et.target,et.pseudoElement),g.width!==gt||g.height!==S)&&(g=Z[0],g.width=gt,g.height=S,g=Z[Z.length-1],g.width=gt,g.height=S,et.setKeyframes(Z))}}s()},function(j){E.__reactViewTransition===M&&(E.__reactViewTransition=null);try{if(typeof j=="object"&&j!==null)switch(j.name){case"InvalidStateError":(j.message==="View transition was skipped because document visibility state is hidden."||j.message==="Skipping view transition because document visibility state has become hidden."||j.message==="Skipping view transition because viewport size changed."||j.message==="Transition was aborted because of invalid state")&&(j=null)}j!==null&&m(j)}finally{a(),n(),s()}}),M.finished.finally(function(){for(var j=0;j<R.length;j++)R[j].cancel();E.__reactViewTransition===M&&(E.__reactViewTransition=null),f()}),M}catch{return a(),n(),s(),null}}function Ya(t,e){this._scope=document.documentElement,this._selector="::view-transition-"+t+"("+e+")"}Ya.prototype.animate=function(t,e){return e=typeof e=="number"?{duration:e}:U({},e),e.pseudoElement=this._selector,this._scope.animate(t,e)},Ya.prototype.getAnimations=function(){for(var t=this._scope,e=this._selector,l=t.getAnimations({subtree:!0}),a=[],n=0;n<l.length;n++){var i=l[n].effect;i!==null&&i.target===t&&i.pseudoElement===e&&a.push(l[n])}return a},Ya.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function fm(t){return{name:t,group:new Ya("group",t),imagePair:new Ya("image-pair",t),old:new Ya("old",t),new:new Ya("new",t)}}function Ze(t){this._fragmentFiber=t,this._observers=this._eventListeners=null}Ze.prototype.addEventListener=function(t,e,l){var a=null,n=null;if(!(l!=null&&typeof l!="boolean"&&(a=l.signal||null,a!==null&&a.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var i=this._eventListeners;if(dm(i,t,e,l)===-1){var s=this,f=e;l!=null&&typeof l!="boolean"&&l.once===!0&&(f=function(m){s.removeEventListener(t,e,l),typeof e=="function"?e.call(this,m):e.handleEvent(m)}),a!==null&&(n=s.removeEventListener.bind(s,t,e,l),a.addEventListener("abort",n,{once:!0}),n=a.removeEventListener.bind(a,"abort",n)),a=Dn(l),i.push({type:t,listener:e,optionsOrUseCapture:l,attachedListener:f,cleanup:n}),d(this._fragmentFiber.child,!1,$y,t,f,a)}this._eventListeners=i}};function $y(t,e,l,a){return K(t).addEventListener(e,l,a),!1}Ze.prototype.removeEventListener=function(t,e,l){var a=this._eventListeners;if(a!==null&&(e=dm(a,t,e,l),e!==-1)){var n=a[e];l=n.attachedListener;var i=n.cleanup;n=Dn(n.optionsOrUseCapture),d(this._fragmentFiber.child,!1,ky,t,l,n),a.splice(e,1),i!==null&&i()}};function ky(t,e,l,a){return K(t).removeEventListener(e,l,a),!1}function Dn(t){return t!=null&&typeof t!="boolean"&&(t.once===!0||t.signal instanceof AbortSignal)?{capture:t.capture,passive:t.passive}:t}function om(t){return t==null?"c=0":typeof t=="boolean"?"c="+(t?"1":"0"):"c="+(t.capture?"1":"0")}function dm(t,e,l,a){if(t.length===0)return-1;a=om(a);for(var n=0;n<t.length;n++){var i=t[n];if(i.type===e&&i.listener===l&&om(i.optionsOrUseCapture)===a)return n}return-1}Ze.prototype.dispatchEvent=function(t){var e=B(this._fragmentFiber);if(e===null)return!0;e=K(e);var l=this._eventListeners;if(l!==null&&0<l.length||!t.bubbles){var a=e.nodeType===9?e.createComment(""):document.createTextNode("");if(l)for(var n=0;n<l.length;n++){var i=l[n];a.addEventListener(i.type,i.attachedListener,Dn(i.optionsOrUseCapture))}if(e.appendChild(a),t=a.dispatchEvent(t),l)for(n=0;n<l.length;n++)i=l[n],a.removeEventListener(i.type,i.attachedListener,Dn(i.optionsOrUseCapture));return e.removeChild(a),t}return e.dispatchEvent(t)},Ze.prototype.focus=function(t){d(this._fragmentFiber.child,!0,hm,t,void 0,void 0)};function hm(t,e){return t.tag===6?!1:(t=K(t),s1(t,e))}Ze.prototype.focusLast=function(t){var e=[];d(this._fragmentFiber.child,!0,Qr,e,void 0,void 0);for(var l=e.length-1;0<=l&&!hm(e[l],t);l--);};function Qr(t,e){return e.push(t),!1}Ze.prototype.blur=function(){var t=B(this._fragmentFiber);t!==null&&(t=K(t),t=Ci(t).activeElement,t!==null&&d(this._fragmentFiber.child,!1,Fy,t,void 0,void 0))};function Fy(t,e){return t.tag===6?!1:(t=K(t),t===e||t.contains(e)?(e.blur(),!0):!1)}Ze.prototype.observeUsing=function(t){this._observers===null&&(this._observers=new Set),this._observers.add(t),d(this._fragmentFiber.child,!1,Wy,t,void 0,void 0)};function Wy(t,e){return t.tag===6||(t=K(t),e.observe(t)),!1}Ze.prototype.unobserveUsing=function(t){var e=this._observers;if(e!==null&&e.has(t)){e.delete(t),d(this._fragmentFiber.child,!1,Iy,t,void 0,void 0);for(var l=e=0;l<dl.length;l++){var a=dl[l];a.fragmentInstance===this&&a.observer===t?t.unobserve(a.instance):dl[e++]=a}dl.length=e}};function Iy(t,e){return t.tag===6||(t=K(t),e.unobserve(t)),!1}var dl=[],Vr=!1;function Py(t,e,l){dl.push({fragmentInstance:t,observer:e,instance:l}),Vr||(Vr=!0,c1(function(){Vr=!1;var a=dl;dl=[];for(var n=0;n<a.length;n++){var i=a[n];i.observer.unobserve(i.instance)}}))}Ze.prototype.getClientRects=function(){var t=[];return d(this._fragmentFiber.child,!1,t1,t,void 0,void 0),t};function t1(t,e){if(t.tag===6){t=t.stateNode;var l=t.ownerDocument.createRange();l.selectNodeContents(t),e.push.apply(e,l.getClientRects())}else t=K(t),e.push.apply(e,t.getClientRects());return!1}Ze.prototype.getRootNode=function(t){var e=B(this._fragmentFiber);return e===null?this:K(e).getRootNode(t)},Ze.prototype.compareDocumentPosition=function(t){var e=B(this._fragmentFiber);if(e===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var l=[];d(this._fragmentFiber.child,!1,Qr,l,void 0,void 0);var a=K(e);if(l.length===0){if(l=a,V(this._fragmentFiber)){t:{for(e=this._fragmentFiber.return;e!==null;){if(e.tag===4){e=e.stateNode.containerInfo;break t}if(e.tag===3||e.tag===5||e.tag===27)break;e=e.return}e=null}e!=null&&(l=e)}e=this._fragmentFiber;var n=a=l.compareDocumentPosition(t);return l===t?n=Node.DOCUMENT_POSITION_CONTAINS:a&Node.DOCUMENT_POSITION_CONTAINED_BY&&(l=tt(e)[1],l===null?n=Node.DOCUMENT_POSITION_PRECEDING:(t=K(l).compareDocumentPosition(t),n=t===0||t&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),n|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}e=K(l[0]),n=K(l[l.length-1]);var i=V(this._fragmentFiber)?e.parentElement:a;if(i==null)return Node.DOCUMENT_POSITION_DISCONNECTED;a=i.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY,i=i.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY;var s=e.compareDocumentPosition(t),f=n.compareDocumentPosition(t),m=s&Node.DOCUMENT_POSITION_CONTAINED_BY||f&Node.DOCUMENT_POSITION_CONTAINED_BY;return f=a&&i&&s&Node.DOCUMENT_POSITION_FOLLOWING&&f&Node.DOCUMENT_POSITION_PRECEDING,e=a&&e===t||i&&n===t||m||f?Node.DOCUMENT_POSITION_CONTAINED_BY:!a&&e===t||!i&&n===t?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:s,e&Node.DOCUMENT_POSITION_DISCONNECTED||e&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||e1(e,this._fragmentFiber,l[0],l[l.length-1],t)?e:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function e1(t,e,l,a,n){var i=ba(n);if(t&Node.DOCUMENT_POSITION_CONTAINED_BY){if(l=!!i)t:{for(;i!==null;){if(i.tag===7&&(i===e||i.alternate===e)){l=!0;break t}i=i.return}l=!1}return l}if(t&Node.DOCUMENT_POSITION_CONTAINS){if(i===null)return i=n.ownerDocument,n===i||n===i.documentElement||n===i.body;t:{for(i=e,e=B(e);i!==null;){if(!(i.tag!==5&&i.tag!==3&&i.tag!==27||i!==e&&i.alternate!==e)){i=!0;break t}i=i.return}i=!1}return i}return t&Node.DOCUMENT_POSITION_PRECEDING?((e=!!i)&&!(e=i===l)&&(e=nt(l,i,W),e===null?e=!1:(d(e,!0,G,i,l),i=k,k=null,e=i!==null)),e):t&Node.DOCUMENT_POSITION_FOLLOWING?((e=!!i)&&!(e=i===a)&&(e=nt(a,i,W),e===null?e=!1:(d(e,!0,C,i,a),i=k,F=k=null,e=i!==null)),e):!1}function mm(t,e){var l=t.ownerDocument.createRange();l.selectNodeContents(t),t=l.getBoundingClientRect(),window.scrollTo(window.scrollX+t.left,e?window.scrollY+t.top:window.scrollY+t.bottom-window.innerHeight)}Ze.prototype.scrollIntoView=function(t){if(typeof t=="object")throw Error(o(566));var e=[];d(this._fragmentFiber.child,!1,Qr,e,void 0,void 0);var l=t!==!1;if(e.length===0){var a=tt(this._fragmentFiber);if(a=l?a[1]||a[0]||B(this._fragmentFiber):a[0]||a[1],a===null)return;if(a.tag===6){t=K(a),mm(t,l);return}if(a=K(a),a.nodeType!==9){if(a.nodeType===11){l="host"in a?a.host:null,l!==null&&l.scrollIntoView(t);return}a.scrollIntoView(t)}}for(a=l?e.length-1:0;a!==(l?-1:e.length);){var n=e[a];n.tag===6?(n=K(n),mm(n,l)):K(n).scrollIntoView(t),a+=l?-1:1}};function l1(t,e){return t=K(t),vm(t,e),!1}function vm(t,e){t.reactFragments==null&&(t.reactFragments=new Set),t.reactFragments.add(e)}function ym(t,e){var l=e._eventListeners;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a];t.addEventListener(n.type,n.attachedListener,Dn(n.optionsOrUseCapture))}t.nodeType!==3&&(l=e._observers,l!==null&&l.forEach(function(i){for(var s=0,f=0;f<dl.length;f++){var m=dl[f];(m.fragmentInstance!==e||m.observer!==i||m.instance!==t)&&(dl[s++]=m)}dl.length=s,i.observe(t)}),vm(t,e))}function a1(t,e){var l=e._eventListeners;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a];t.removeEventListener(n.type,n.attachedListener,Dn(n.optionsOrUseCapture))}t.nodeType!==3&&(l=e._observers,l!==null&&l.forEach(function(i){typeof i.rootMargin=="string"?Py(e,i,t):i.unobserve(t)}),t.reactFragments!=null&&t.reactFragments.delete(e))}function Zr(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Zr(l),Ii(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function n1(t,e,l,a){for(;t.nodeType===1;){var n=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[kn])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(i=t.getAttribute("rel"),i==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(i!==n.rel||t.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||t.getAttribute("title")!==(n.title==null?null:n.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(i=t.getAttribute("src"),(i!==(n.src==null?null:n.src)||t.getAttribute("type")!==(n.type==null?null:n.type)||t.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&i&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var i=n.name==null?null:""+n.name;if(n.type==="hidden"&&t.getAttribute("name")===i)return t}else return t;if(t=ll(t.nextSibling),t===null)break}return null}function i1(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=ll(t.nextSibling),t===null))return null;return t}function gm(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=ll(t.nextSibling),t===null))return null;return t}function Kr(t){return t.data==="$?"||t.data==="$~"}function Jr(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function u1(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var a=function(){e(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}function ll(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var $r=null;function xm(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return ll(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function pm(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function s1(t,e){function l(){a=!0}if(t.ownerDocument.activeElement===t)return!0;var a=!1;try{t.ownerDocument.addEventListener("focus",l,!0),(t.focus||HTMLElement.prototype.focus).call(t,e)}finally{t.ownerDocument.removeEventListener("focus",l,!0)}return a}function c1(t){im(function(){im(function(e){return t(e)})})}function bm(t,e,l){switch(e=Ci(l),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function jm(t,e,l){for(var a in l){var n=l[a];l.hasOwnProperty(a)&&n!=null&&Gt(t,e,a,null,By,n)}l.dangerouslySetInnerHTML!=null&&(t.textContent=""),t.onclick===ml&&(t.onclick=null),Ii(t)}function kr(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Ii(t)}var al=new Map,Sm=new Set;function Di(t){if(typeof t.getRootNode=="function"){var e=t.getRootNode();if(e.nodeType===9||e.nodeType===11)return e}return t.nodeType===9?t:t.ownerDocument}var Yl=rt.d;rt.d={f:r1,r:f1,D:o1,C:d1,L:h1,m:m1,X:y1,S:v1,M:g1};function r1(){var t=Yl.f(),e=es();return t||e}function f1(t){var e=Fa(t);e!==null&&e.tag===5&&e.type==="form"?Ed(e):Yl.r(t)}var Rn=typeof document>"u"?null:document;function Nm(t,e,l){var a=Rn;if(a&&typeof e=="string"&&e){var n=ke(e);n='link[rel="'+t+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Sm.has(n)||(Sm.add(n),t={rel:t,crossOrigin:l,href:e},a.querySelector(n)===null&&(e=a.createElement("link"),je(e,"link",t),oe(e),a.head.appendChild(e)))}}function o1(t){Yl.D(t),Nm("dns-prefetch",t,null)}function d1(t,e){Yl.C(t,e),Nm("preconnect",t,e)}function h1(t,e,l){Yl.L(t,e,l);var a=Rn;if(a&&t&&e){var n='link[rel="preload"][as="'+ke(e)+'"]';e==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+ke(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+ke(l.imageSizes)+'"]')):n+='[href="'+ke(t)+'"]';var i=n;switch(e){case"style":i=Un(t);break;case"script":i=wn(t)}if(!(al.has(i)||(t=U({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),al.set(i,t),a.querySelector(n)!==null||e==="style"&&a.querySelector(Ri(i))||e==="script"&&a.querySelector(Ui(i))))){var s=a.createElement("link");je(s,"link",t),e==="style"&&(s[Wi]=!0,s.onload=s.onerror=function(){wf(s)}),oe(s),a.head.appendChild(s)}}}function m1(t,e){Yl.m(t,e);var l=Rn;if(l&&t){var a=e&&typeof e.as=="string"?e.as:"script",n='link[rel="modulepreload"][as="'+ke(a)+'"][href="'+ke(t)+'"]',i=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=wn(t)}if(!al.has(i)&&(t=U({rel:"modulepreload",href:t},e),al.set(i,t),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Ui(i)))return}a=l.createElement("link"),je(a,"link",t),oe(a),l.head.appendChild(a)}}}function v1(t,e,l){Yl.S(t,e,l);var a=Rn;if(a&&t){var n=Wa(a).hoistableStyles,i=Un(t);e=e||"default";var s=n.get(i);if(!s){var f={loading:0,preload:null};if(s=a.querySelector(Ri(i)))f.loading=5;else{t=U({rel:"stylesheet",href:t,"data-precedence":e},l),(l=al.get(i))&&Fr(t,l);var m=s=a.createElement("link");oe(m),je(m,"link",t),m._p=new Promise(function(E,M){m.onload=E,m.onerror=M}),m.addEventListener("load",function(){f.loading|=1}),m.addEventListener("error",function(){f.loading|=2}),f.loading|=4,cs(s,e,a)}s={type:"stylesheet",instance:s,count:1,state:f},n.set(i,s)}}}function y1(t,e){Yl.X(t,e);var l=Rn;if(l&&t){var a=Wa(l).hoistableScripts,n=wn(t),i=a.get(n);i||(i=l.querySelector(Ui(n)),i||(t=U({src:t,async:!0},e),(e=al.get(n))&&Wr(t,e),i=l.createElement("script"),oe(i),je(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function g1(t,e){Yl.M(t,e);var l=Rn;if(l&&t){var a=Wa(l).hoistableScripts,n=wn(t),i=a.get(n);i||(i=l.querySelector(Ui(n)),i||(t=U({src:t,async:!0,type:"module"},e),(e=al.get(n))&&Wr(t,e),i=l.createElement("script"),oe(i),je(i,"link",t),l.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},a.set(n,i))}}function Em(t,e,l,a){var n=(n=ce.current)?Di(n):null;if(!n)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(l=Un(l.href),e=Wa(n).hoistableStyles,a=e.get(l),a||(a={type:"style",instance:null,count:0,state:null},e.set(l,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Un(l.href);var i=Wa(n).hoistableStyles,s=i.get(t);if(s||(n=n.ownerDocument||n,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(t,s),(i=n.querySelector(Ri(t)))?i._p||(s.instance=i,s.state.loading=5):(i=al.get(t),i||(i={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},al.set(t,i)),x1(n,t,i,s.state))),e&&a===null)throw Error(o(528,""));return s}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(l=wn(l),e=Wa(n).hoistableScripts,a=e.get(l),a||(a={type:"script",instance:null,count:0,state:null},e.set(l,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function Un(t){return'href="'+ke(t)+'"'}function Ri(t){return'link[rel="stylesheet"]['+t+"]"}function _m(t){return U({},t,{"data-precedence":t.precedence,precedence:null})}function x1(t,e,l,a){if(e=t.querySelector('link[rel="preload"][as="style"]['+e+"]")){if(e[Wi]!==!0){a.loading=1;return}}else e=t.createElement("link"),e[Wi]=!0,e.onload=e.onerror=wf.bind(null,e),je(e,"link",l),oe(e),t.head.appendChild(e);a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2})}function wn(t){return'[src="'+ke(t)+'"]'}function Ui(t){return"script[async]"+t}function Tm(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+ke(l.href)+'"]');if(a)return e.instance=a,oe(a),a;var n=U({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),oe(a),je(a,"style",n),cs(a,l.precedence,t),e.instance=a;case"stylesheet":n=Un(l.href);var i=t.querySelector(Ri(n));if(i)return e.state.loading|=4,e.instance=i,oe(i),i;a=_m(l),(n=al.get(n))&&Fr(a,n),i=(t.ownerDocument||t).createElement("link"),oe(i);var s=i;return s._p=new Promise(function(f,m){s.onload=f,s.onerror=m}),je(i,"link",a),e.state.loading|=4,cs(i,l.precedence,t),e.instance=i;case"script":return i=wn(l.src),(n=t.querySelector(Ui(i)))?(e.instance=n,oe(n),n):(a=l,(n=al.get(i))&&(a=U({},l),Wr(a,n)),t=t.ownerDocument||t,n=t.createElement("script"),oe(n),je(n,"link",a),t.head.appendChild(n),e.instance=n);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,cs(a,l.precedence,t));return e.instance}function cs(t,e,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,i=n,s=0;s<a.length;s++){var f=a[s];if(f.dataset.precedence===e)i=f;else if(i!==n)break}i?i.parentNode.insertBefore(t,i.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function Fr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Wr(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var rs=null;function zm(t,e,l){if(rs===null){var a=new Map,n=rs=new Map;n.set(l,a)}else n=rs,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(t))return a;for(a.set(t,null),l=l.getElementsByTagName(t),n=0;n<l.length;n++){var i=l[n];if(!(i[kn]||i[ye]||t==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var s=i.getAttribute(e)||"";s=t+s;var f=a.get(s);f?f.push(i):a.set(s,[i])}}return a}function Ir(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function p1(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Mm(t,e){return t==="img"&&e.src!=null&&e.src!==""&&e.onLoad==null&&e.loading!=="lazy"}function Om(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Am(t){return(t.width||100)*(t.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Cm(t,e){typeof e.decode=="function"&&(t.imgCount++,e.complete||(t.imgBytes+=Am(e),t.suspenseyImages.push(e)),t=S1.bind(t),e.decode().then(t,t))}function b1(t,e,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=Un(a.href),i=e.querySelector(Ri(n));if(i){e=i._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=wi.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=i,oe(i);return}i=e.ownerDocument||e,a=_m(a),(n=al.get(n))&&Fr(a,n),i=i.createElement("link"),oe(i);var s=i;s._p=new Promise(function(f,m){s.onload=f,s.onerror=m}),je(i,"link",a),l.instance=i}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=wi.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var fs=0;function j1(t,e){return t.stylesheets&&t.count===0&&ds(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var a=setTimeout(function(){if(t.stylesheets&&ds(t,t.stylesheets),t.unsuspend){var i=t.unsuspend;t.unsuspend=null,i()}},6e4+e);0<t.imgBytes&&fs===0&&(fs=62500*Gy());var n=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ds(t,t.stylesheets),t.unsuspend)){var i=t.unsuspend;t.unsuspend=null,i()}},(t.imgBytes>fs?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function Dm(t){if(t.count===0&&(t.imgCount===0||!t.waitingForImages)){if(t.stylesheets)ds(t,t.stylesheets);else if(t.unsuspend){var e=t.unsuspend;t.unsuspend=null,e()}}}function wi(){this.count--,Dm(this)}function S1(){this.imgCount--,Dm(this)}var os=null;function ds(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,os=new Map,e.forEach(N1,t),os=null,wi.call(t))}function N1(t,e){if(!(e.state.loading&4)){var l=os.get(t);if(l)var a=l.get(null);else{l=new Map,os.set(t,l);for(var n=t.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<n.length;i++){var s=n[i];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(l.set(s.dataset.precedence,s),a=s)}a&&l.set(null,a)}n=e.instance,s=n.getAttribute("data-precedence"),i=l.get(s)||a,i===a&&l.set(null,n),l.set(s,n),this.count++,a=wi.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),i?i.parentNode.insertBefore(n,i.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(n,t.firstChild)),e.state.loading|=4}}var Hn={$$typeof:Dt,Provider:null,Consumer:null,_currentValue:_e,_currentValue2:_e,_threadCount:0};function E1(t,e,l,a,n,i,s,f,m){this.tag=1,this.containerInfo=t,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=Ds(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ds(0),this.hiddenUpdates=Ds(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=i,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.transitionTypes=null,this.incompleteTransitions=new Map}function Rm(t,e,l,a,n,i,s,f,m,E,M,R){return t=new E1(t,e,l,s,m,E,M,R,f),e=1,i===!0&&(e|=24),i=Ce(3,null,null,e),t.current=i,i.stateNode=t,e=hc(),e.refCount++,t.pooledCache=e,e.refCount++,i.memoizedState={element:a,isDehydrated:l,cache:e},gc(i),t}function Um(t){return t?(t=cn,t):cn}function wm(t,e,l,a,n,i){n=Um(n),a.context===null?a.context=n:a.pendingContext=n,a=Pl(e),a.payload={element:l},i=i===void 0?null:i,i!==null&&(a.callback=i),l=ta(t,a,e),l!==null&&(we(l,t,e),di(l,t,e))}function Hm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function Pr(t,e){Hm(t,e),(t=t.alternate)&&Hm(t,e)}function Bm(t){if(t.tag===13||t.tag===31){var e=Ea(t,67108864);e!==null&&we(e,t,67108864),Pr(t,67108864)}}function qm(t){if(t.tag===13||t.tag===31){var e=Ve();e=Rs(e);var l=Ea(t,e);l!==null&&we(l,t,e),Pr(t,e)}}var Bn=!0;function _1(t,e,l,a){var n=P.T;P.T=null;var i=rt.p;try{rt.p=2,tf(t,e,l,a)}finally{rt.p=i,P.T=n}}function T1(t,e,l,a){var n=P.T;P.T=null;var i=rt.p;try{rt.p=8,tf(t,e,l,a)}finally{rt.p=i,P.T=n}}function tf(t,e,l,a){if(Bn){var n=ef(a);if(n===null)wr(t,e,a,hs,l),Lm(t,a);else if(M1(n,t,e,l,a))a.stopPropagation();else if(Lm(t,a),e&4&&-1<z1.indexOf(t)){for(;n!==null;){var i=Fa(n);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var s=pa(i.pendingLanes);if(s!==0){var f=i;for(f.pendingLanes|=2,f.entangledLanes|=2;s;){var m=1<<31-Be(s);f.entanglements[1]|=m,s&=~m}El(i),(wt&6)===0&&(Iu=Mt()+500,Mi(0))}}break;case 31:case 13:f=Ea(i,2),f!==null&&we(f,i,2),es(),Pr(i,2)}if(i=ef(a),i===null&&wr(t,e,a,hs,l),i===n)break;n=i}n!==null&&a.stopPropagation()}else wr(t,e,a,null,l)}}function ef(t){return t=Ls(t),lf(t)}var hs=null;function lf(t){if(hs=null,t=ba(t),t!==null){var e=y(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=T(e),t!==null)return t;t=null}else if(l===31){if(t=N(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return hs=t,null}function Gm(t){switch(t){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"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"fullscreenerror":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"resize":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Kt()){case fe:return 2;case Zi:return 8;case $a:case Ki:return 32;case xa:return 268435456;default:return 32}default:return 32}}var af=!1,da=null,ha=null,ma=null,Hi=new Map,Bi=new Map,va=[],z1="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 Lm(t,e){switch(t){case"focusin":case"focusout":da=null;break;case"dragenter":case"dragleave":ha=null;break;case"mouseover":case"mouseout":ma=null;break;case"pointerover":case"pointerout":Hi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bi.delete(e.pointerId)}}function qi(t,e,l,a,n,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:l,eventSystemFlags:a,nativeEvent:i,targetContainers:[n]},e!==null&&(e=Fa(e),e!==null&&Bm(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),t)}function M1(t,e,l,a,n){switch(e){case"focusin":return da=qi(da,t,e,l,a,n),!0;case"dragenter":return ha=qi(ha,t,e,l,a,n),!0;case"mouseover":return ma=qi(ma,t,e,l,a,n),!0;case"pointerover":var i=n.pointerId;return Hi.set(i,qi(Hi.get(i)||null,t,e,l,a,n)),!0;case"gotpointercapture":return i=n.pointerId,Bi.set(i,qi(Bi.get(i)||null,t,e,l,a,n)),!0}return!1}function Ym(t){var e=ba(t.target);if(e!==null){var l=y(e);if(l!==null){if(e=l.tag,e===13){if(e=T(l),e!==null){t.blockedOn=e,Df(t.priority,function(){qm(l)});return}}else if(e===31){if(e=N(l),e!==null){t.blockedOn=e,Df(t.priority,function(){qm(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function ms(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=ef(t.nativeEvent);if(l===null){l=t.nativeEvent;var a=new l.constructor(l.type,l);Gs=a,l.target.dispatchEvent(a),Gs=null}else return e=Fa(l),e!==null&&Bm(e),t.blockedOn=l,!1;e.shift()}return!0}function Xm(t,e,l){ms(t)&&l.delete(e)}function O1(){af=!1,da!==null&&ms(da)&&(da=null),ha!==null&&ms(ha)&&(ha=null),ma!==null&&ms(ma)&&(ma=null),Hi.forEach(Xm),Bi.forEach(Xm)}function vs(t,e){t.blockedOn===e&&(t.blockedOn=null,af||(af=!0,c.unstable_scheduleCallback(c.unstable_NormalPriority,O1)))}var ys=null;function Qm(t){ys!==t&&(ys=t,c.unstable_scheduleCallback(c.unstable_NormalPriority,function(){ys===t&&(ys=null);for(var e=0;e<t.length;e+=3){var l=t[e],a=t[e+1],n=t[e+2];if(typeof a!="function"){if(lf(a||l)===null)continue;break}var i=Fa(l);i!==null&&(t.splice(e,3),e-=3,qc(i,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function qn(t){function e(m){return vs(m,t)}da!==null&&vs(da,t),ha!==null&&vs(ha,t),ma!==null&&vs(ma,t),Hi.forEach(e),Bi.forEach(e);for(var l=0;l<va.length;l++){var a=va[l];a.blockedOn===t&&(a.blockedOn=null)}for(;0<va.length&&(l=va[0],l.blockedOn===null);)Ym(l),l.blockedOn===null&&va.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],i=l[a+1],s=n[Ae]||null;if(typeof i=="function")s||Qm(l);else if(s){var f=null;if(i&&i.hasAttribute("formAction")){if(n=i,s=i[Ae]||null)f=s.formAction;else if(lf(n)!==null)continue}else f=s.action;typeof f=="function"?l[a+1]=f:(l.splice(a,3),a-=3),Qm(l)}}}function Vm(){function t(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(s){return n=s})},focusReset:"manual",scroll:"manual"})}function e(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),n!==null&&(n(),n=null)}}}function nf(t){this._internalRoot=t}gs.prototype.render=nf.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var l=e.current,a=Ve();wm(l,a,t,e,null,null)},gs.prototype.unmount=nf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;wm(t.current,2,null,t,null,null),es(),e[ka]=null}};function gs(t){this._internalRoot=t}gs.prototype.unstable_scheduleHydration=function(t){if(t){var e=Cf();t={blockedOn:null,target:t,priority:e};for(var l=0;l<va.length&&e!==0&&e<va[l].priority;l++);va.splice(l,0,t),l===0&&Ym(t)}};var Zm=r.version;if(Zm!=="19.3.0")throw Error(o(527,Zm,"19.3.0"));rt.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=v(e),t=t!==null?O(t):null,t=t===null?null:t.stateNode,t};var A1={bundleType:0,version:"19.3.0",rendererPackageName:"react-dom",currentDispatcherRef:P,reconcilerVersion:"19.3.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var xs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!xs.isDisabled&&xs.supportsFiber)try{Kn=xs.inject(A1),He=xs}catch{}}return Yi.createRoot=function(t,e){if(!b(t))throw Error(o(299));var l=!1,a="",n=Ud,i=wd,s=Hd;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(n=e.onUncaughtError),e.onCaughtError!==void 0&&(i=e.onCaughtError),e.onRecoverableError!==void 0&&(s=e.onRecoverableError)),e=Rm(t,1,!1,null,null,l,a,null,n,i,s,Vm),t[ka]=e.current,Ur(t),new nf(e)},Yi.hydrateRoot=function(t,e,l){if(!b(t))throw Error(o(299));var a=!1,n="",i=Ud,s=wd,f=Hd,m=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(i=l.onUncaughtError),l.onCaughtError!==void 0&&(s=l.onCaughtError),l.onRecoverableError!==void 0&&(f=l.onRecoverableError),l.formState!==void 0&&(m=l.formState)),e=Rm(t,1,!0,e,l??null,a,n,m,i,s,f,Vm),e.context=Um(null),l=e.current,a=Ve(),a=Rs(a),n=Pl(a),n.callback=null,ta(l,n,a),l=a,e.current.lanes=l,$n(e,l),El(e),t[ka]=e.current,Ur(t),new gs(e)},Yi.version="19.3.0",Yi}var e0;function X1(){if(e0)return cf.exports;e0=1;function c(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(c)}catch(r){console.error(r)}}return c(),cf.exports=Y1(),cf.exports}var Q1=X1();const V1=j0(Q1);function zs(c,r){if(!c)return"—";if(!Number.isFinite(Date.parse(c)))return c;const h=new Intl.DateTimeFormat("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hourCycle:"h23",...r?{timeZone:r}:{}}).formatToParts(new Date(c)),o=b=>{var y;return(y=h.find(T=>T.type===b))==null?void 0:y.value};return`${o("year")}-${o("month")}-${o("day")} ${o("hour")}:${o("minute")}:${o("second")}`}const N0=c=>c.endsWith("_at")||c==="at"||c==="timestamp";function vf(c,r){return Array.isArray(c)?c.map(h=>vf(h,r)):c&&typeof c=="object"?Object.fromEntries(Object.entries(c).map(([h,o])=>[h,N0(h)&&typeof o=="string"?zs(o,r):vf(o,r)])):c}function Z1(c,r,h){if(N0(c))return zs(r,h);if(/^\s*[\[{]/.test(r))try{return JSON.stringify(vf(JSON.parse(r),h))}catch{}return r}/**
50
+ * @license lucide-react v0.468.0 - ISC
51
+ *
52
+ * This source code is licensed under the ISC license.
53
+ * See the LICENSE file in the root directory of this source tree.
54
+ */const K1=c=>c.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),E0=(...c)=>c.filter((r,h,o)=>!!r&&r.trim()!==""&&o.indexOf(r)===h).join(" ").trim();/**
55
+ * @license lucide-react v0.468.0 - ISC
56
+ *
57
+ * This source code is licensed under the ISC license.
58
+ * See the LICENSE file in the root directory of this source tree.
59
+ */var J1={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"};/**
60
+ * @license lucide-react v0.468.0 - ISC
61
+ *
62
+ * This source code is licensed under the ISC license.
63
+ * See the LICENSE file in the root directory of this source tree.
64
+ */const $1=A.forwardRef(({color:c="currentColor",size:r=24,strokeWidth:h=2,absoluteStrokeWidth:o,className:b="",children:y,iconNode:T,...N},w)=>A.createElement("svg",{ref:w,...J1,width:r,height:r,stroke:c,strokeWidth:o?Number(h)*24/Number(r):h,className:E0("lucide",b),...N},[...T.map(([v,O])=>A.createElement(v,O)),...Array.isArray(y)?y:[y]]));/**
65
+ * @license lucide-react v0.468.0 - ISC
66
+ *
67
+ * This source code is licensed under the ISC license.
68
+ * See the LICENSE file in the root directory of this source tree.
69
+ */const Ut=(c,r)=>{const h=A.forwardRef(({className:o,...b},y)=>A.createElement($1,{ref:y,iconNode:r,className:E0(`lucide-${K1(c)}`,o),...b}));return h.displayName=`${c}`,h};/**
70
+ * @license lucide-react v0.468.0 - ISC
71
+ *
72
+ * This source code is licensed under the ISC license.
73
+ * See the LICENSE file in the root directory of this source tree.
74
+ */const Qi=Ut("Activity",[["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"}]]);/**
75
+ * @license lucide-react v0.468.0 - ISC
76
+ *
77
+ * This source code is licensed under the ISC license.
78
+ * See the LICENSE file in the root directory of this source tree.
79
+ */const k1=Ut("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
80
+ * @license lucide-react v0.468.0 - ISC
81
+ *
82
+ * This source code is licensed under the ISC license.
83
+ * See the LICENSE file in the root directory of this source tree.
84
+ */const Ms=Ut("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
85
+ * @license lucide-react v0.468.0 - ISC
86
+ *
87
+ * This source code is licensed under the ISC license.
88
+ * See the LICENSE file in the root directory of this source tree.
89
+ */const F1=Ut("BellOff",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M17 17H4a1 1 0 0 1-.74-1.673C4.59 13.956 6 12.499 6 8a6 6 0 0 1 .258-1.742",key:"178tsu"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M8.668 3.01A6 6 0 0 1 18 8c0 2.687.77 4.653 1.707 6.05",key:"1hqiys"}]]);/**
90
+ * @license lucide-react v0.468.0 - ISC
91
+ *
92
+ * This source code is licensed under the ISC license.
93
+ * See the LICENSE file in the root directory of this source tree.
94
+ */const W1=Ut("Bell",[["path",{d:"M10.268 21a2 2 0 0 0 3.464 0",key:"vwvbt9"}],["path",{d:"M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",key:"11g9vi"}]]);/**
95
+ * @license lucide-react v0.468.0 - ISC
96
+ *
97
+ * This source code is licensed under the ISC license.
98
+ * See the LICENSE file in the root directory of this source tree.
99
+ */const I1=Ut("Bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]);/**
100
+ * @license lucide-react v0.468.0 - ISC
101
+ *
102
+ * This source code is licensed under the ISC license.
103
+ * See the LICENSE file in the root directory of this source tree.
104
+ */const P1=Ut("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/**
105
+ * @license lucide-react v0.468.0 - ISC
106
+ *
107
+ * This source code is licensed under the ISC license.
108
+ * See the LICENSE file in the root directory of this source tree.
109
+ */const tg=Ut("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
110
+ * @license lucide-react v0.468.0 - ISC
111
+ *
112
+ * This source code is licensed under the ISC license.
113
+ * See the LICENSE file in the root directory of this source tree.
114
+ */const eg=Ut("CircleAlert",[["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"}]]);/**
115
+ * @license lucide-react v0.468.0 - ISC
116
+ *
117
+ * This source code is licensed under the ISC license.
118
+ * See the LICENSE file in the root directory of this source tree.
119
+ */const lg=Ut("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
120
+ * @license lucide-react v0.468.0 - ISC
121
+ *
122
+ * This source code is licensed under the ISC license.
123
+ * See the LICENSE file in the root directory of this source tree.
124
+ */const yf=Ut("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
125
+ * @license lucide-react v0.468.0 - ISC
126
+ *
127
+ * This source code is licensed under the ISC license.
128
+ * See the LICENSE file in the root directory of this source tree.
129
+ */const Es=Ut("FlaskConical",[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]]);/**
130
+ * @license lucide-react v0.468.0 - ISC
131
+ *
132
+ * This source code is licensed under the ISC license.
133
+ * See the LICENSE file in the root directory of this source tree.
134
+ */const ag=Ut("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
135
+ * @license lucide-react v0.468.0 - ISC
136
+ *
137
+ * This source code is licensed under the ISC license.
138
+ * See the LICENSE file in the root directory of this source tree.
139
+ */const l0=Ut("Layers",[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]]);/**
140
+ * @license lucide-react v0.468.0 - ISC
141
+ *
142
+ * This source code is licensed under the ISC license.
143
+ * See the LICENSE file in the root directory of this source tree.
144
+ */const ng=Ut("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
145
+ * @license lucide-react v0.468.0 - ISC
146
+ *
147
+ * This source code is licensed under the ISC license.
148
+ * See the LICENSE file in the root directory of this source tree.
149
+ */const ig=Ut("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
150
+ * @license lucide-react v0.468.0 - ISC
151
+ *
152
+ * This source code is licensed under the ISC license.
153
+ * See the LICENSE file in the root directory of this source tree.
154
+ */const a0=Ut("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
155
+ * @license lucide-react v0.468.0 - ISC
156
+ *
157
+ * This source code is licensed under the ISC license.
158
+ * See the LICENSE file in the root directory of this source tree.
159
+ */const ug=Ut("PanelLeftClose",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m16 15-3-3 3-3",key:"14y99z"}]]);/**
160
+ * @license lucide-react v0.468.0 - ISC
161
+ *
162
+ * This source code is licensed under the ISC license.
163
+ * See the LICENSE file in the root directory of this source tree.
164
+ */const sg=Ut("PanelLeftOpen",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"m14 9 3 3-3 3",key:"8010ee"}]]);/**
165
+ * @license lucide-react v0.468.0 - ISC
166
+ *
167
+ * This source code is licensed under the ISC license.
168
+ * See the LICENSE file in the root directory of this source tree.
169
+ */const cg=Ut("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
170
+ * @license lucide-react v0.468.0 - ISC
171
+ *
172
+ * This source code is licensed under the ISC license.
173
+ * See the LICENSE file in the root directory of this source tree.
174
+ */const rg=Ut("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
175
+ * @license lucide-react v0.468.0 - ISC
176
+ *
177
+ * This source code is licensed under the ISC license.
178
+ * See the LICENSE file in the root directory of this source tree.
179
+ */const fg=Ut("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
180
+ * @license lucide-react v0.468.0 - ISC
181
+ *
182
+ * This source code is licensed under the ISC license.
183
+ * See the LICENSE file in the root directory of this source tree.
184
+ */const Os=Ut("RefreshCw",[["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"}]]);/**
185
+ * @license lucide-react v0.468.0 - ISC
186
+ *
187
+ * This source code is licensed under the ISC license.
188
+ * See the LICENSE file in the root directory of this source tree.
189
+ */const n0=Ut("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
190
+ * @license lucide-react v0.468.0 - ISC
191
+ *
192
+ * This source code is licensed under the ISC license.
193
+ * See the LICENSE file in the root directory of this source tree.
194
+ */const og=Ut("Server",[["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"}]]);/**
195
+ * @license lucide-react v0.468.0 - ISC
196
+ *
197
+ * This source code is licensed under the ISC license.
198
+ * See the LICENSE file in the root directory of this source tree.
199
+ */const dg=Ut("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
200
+ * @license lucide-react v0.468.0 - ISC
201
+ *
202
+ * This source code is licensed under the ISC license.
203
+ * See the LICENSE file in the root directory of this source tree.
204
+ */const _0=Ut("ShieldCheck",[["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"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
205
+ * @license lucide-react v0.468.0 - ISC
206
+ *
207
+ * This source code is licensed under the ISC license.
208
+ * See the LICENSE file in the root directory of this source tree.
209
+ */const T0=Ut("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
210
+ * @license lucide-react v0.468.0 - ISC
211
+ *
212
+ * This source code is licensed under the ISC license.
213
+ * See the LICENSE file in the root directory of this source tree.
214
+ */const z0=Ut("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
215
+ * @license lucide-react v0.468.0 - ISC
216
+ *
217
+ * This source code is licensed under the ISC license.
218
+ * See the LICENSE file in the root directory of this source tree.
219
+ */const hg=Ut("Thermometer",[["path",{d:"M14 4v10.54a4 4 0 1 1-4 0V4a2 2 0 0 1 4 0Z",key:"17jzev"}]]);/**
220
+ * @license lucide-react v0.468.0 - ISC
221
+ *
222
+ * This source code is licensed under the ISC license.
223
+ * See the LICENSE file in the root directory of this source tree.
224
+ */const M0=Ut("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
225
+ * @license lucide-react v0.468.0 - ISC
226
+ *
227
+ * This source code is licensed under the ISC license.
228
+ * See the LICENSE file in the root directory of this source tree.
229
+ */const As=Ut("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);class mg{constructor(r=100,h=()=>Date.now()){Gi(this,"rows",new Map);Gi(this,"pending",new Map);Gi(this,"limit");Gi(this,"now");this.limit=r,this.now=h}peek(r){var h;return(h=this.rows.get(r))==null?void 0:h.value}async get(r,h,o){const b=this.rows.get(r);if(b&&b.expires>this.now())return this.rows.delete(r),this.rows.set(r,b),b.value;const y=this.pending.get(r);if(y)return y;const T=o().then(N=>{if(this.pending.get(r)===T)for(this.rows.delete(r),this.rows.set(r,{value:N,expires:this.now()+h});this.rows.size>this.limit;)this.rows.delete(this.rows.keys().next().value);return N}).finally(()=>{this.pending.get(r)===T&&this.pending.delete(r)});return this.pending.set(r,T),T}invalidate(r){for(const h of this.rows.keys())h.startsWith(r)&&this.rows.delete(h);for(const h of this.pending.keys())h.startsWith(r)&&this.pending.delete(h)}}const Qa=new mg,Sf=c=>(c==null?void 0:c.acceleratorBackend)==="npu"?"NPU":(c==null?void 0:c.acceleratorBackend)==="cuda"?"GPU":"算力卡",js=(c,r)=>`/api/servers/${encodeURIComponent(c)}/tune/${encodeURIComponent(r)}`;class Xt extends Error{constructor(r,h){super(r),this.details=h}}async function ga(c,r){const h=await fetch(c,{signal:r,cache:"no-store"}),o=await h.json();if(!h.ok)throw new Xt(o.error||`读取失败(${h.status})`,o.details);return o}const Ne={servers:c=>ga("/api/servers",c),gpu:(c,r,h)=>ga(`/api/servers/${encodeURIComponent(c)}/gpu${r?"?detail=1":""}`,h),gpuStreamUrl:c=>`/api/servers/${encodeURIComponent(c)}/gpu/stream`,runs:(c,r)=>ga(`/api/servers/${encodeURIComponent(c)}/runs`,r),runDetails:(c,r,h)=>ga(`/api/servers/${encodeURIComponent(c)}/runs/${encodeURIComponent(r)}`,h),runStorage:(c,r,h)=>ga(`/api/servers/${encodeURIComponent(c)}/runs/${encodeURIComponent(r)}/storage`,h),runAction:async(c,r,h)=>{const o=await fetch(`/api/servers/${encodeURIComponent(c)}/runs/${encodeURIComponent(r)}/actions/${h}`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(["cancel","clean"].includes(h)?{confirmRunId:r}:{})}),b=await o.json();if(!o.ok)throw new Xt(b.error||"实验操作失败",b.details);return b},tuneList:(c,r)=>ga(`/api/servers/${encodeURIComponent(c)}/tune`,r),tuneDetails:async(c,r,h)=>{const o=await ga(js(c,r),h);if(o.available===!1||o.query_version!==1)throw new Xt(o.message||"此节点的平台需要更新以支持按需读取",o.diagnostic);return o},invalidateTune:(c,r)=>Qa.invalidate(js(c,r)),tunePolicy:async(c,r,h)=>{const o=await fetch(`/api/servers/${encodeURIComponent(c)}/tune/${encodeURIComponent(r)}/policy`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({yield_to_normal:h})}),b=await o.json();if(!o.ok)throw new Xt(b.error||"调度策略更新失败",b.details);return Qa.invalidate(js(c,r)),b},notificationState:()=>ga("/api/notifications/state"),notificationEventsUrl:c=>`/api/notifications/events?after=${c}`,claimNotification:async c=>{const r=await fetch(`/api/notifications/${c}/claim`,{method:"POST"});if(!r.ok)throw new Error("通知领取失败");return(await r.json()).claimed}};function vg(c){const r=c.hardware||(c.hardwareError?"算力卡信息暂不可用":"算力卡检测中"),h=c.runsReady?c.platformAvailable?`实验运行中 ${c.running} 项`:c.platformMessage||"实验平台未配置":c.runError?"实验状态暂不可用":"实验平台检测中";return`节点概况 · ${r} · ${h}`}function Gn(c,r,h=0){const[o,b]=A.useState({});return A.useEffect(()=>{if(!c)return;let y=!0,T=!1;const N=Qa.peek(c);b({url:c,data:N});const w=async()=>{if(!(T||document.hidden)){T=!0;try{const O=await Qa.get(c,r,async()=>{const d=await fetch(c,{cache:"no-store",signal:AbortSignal.timeout(45e3)}),B=await d.json();if(!d.ok)throw new Xt(B.error||"数据暂时无法读取",B.details);return B});y&&b({url:c,data:O})}catch(O){y&&b(d=>({...d,url:c,error:O instanceof Xt?O:new Xt("数据暂时无法读取",String(O))}))}finally{T=!1}}};w();const v=window.setInterval(w,r);return document.addEventListener("visibilitychange",w),()=>{y=!1,clearInterval(v),document.removeEventListener("visibilitychange",w)}},[c,r,h]),o.url===c?o:{url:c,data:Qa.peek(c||""),error:void 0}}function yg({alias:c}){var G;const r=`/api/servers/${encodeURIComponent(c)}/device-policy`,[h,o]=A.useState(0),b=Gn(r,3e4,h),[y,T]=A.useState("selected"),[N,w]=A.useState([]),[v,O]=A.useState(!1),[d,B]=A.useState(!1),[V,tt]=A.useState(""),[lt,K]=A.useState("");A.useEffect(()=>{var C;(C=b.data)!=null&&C.available&&!v&&(T(b.data.mode),w(b.data.allowed_device_uuids||[]))},[b.data,v]);const k=b.data;if(!k)return u.jsxs("section",{className:"device-policy",children:[u.jsx("strong",{children:"可用算力卡范围"}),u.jsx("p",{children:((G=b.error)==null?void 0:G.message)||"正在读取节点的设备授权范围…"})]});if(!k.available)return u.jsxs("section",{className:"device-policy",children:[u.jsx("strong",{children:"可用算力卡范围"}),u.jsx("p",{children:k.message})]});const F=async()=>{B(!0),tt(""),K("");try{const C=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({mode:y,allowed_device_uuids:y==="all"?[]:N})}),W=await C.json();if(!C.ok)throw new Xt(W.error,W.details);Qa.invalidate(r),O(!1),o(nt=>nt+1),tt("已保存。后续普通实验和参数搜索将按此范围分配;正在运行的任务不受影响。")}catch(C){tt(C instanceof Xt?C.message:"保存失败,请重试"),K(C instanceof Xt&&C.details||"")}finally{B(!1)}};return u.jsxs("section",{className:"device-policy","aria-label":"可用算力卡范围",children:[u.jsxs("div",{className:"device-policy-heading",children:[u.jsx(_0,{size:18}),u.jsx("strong",{children:"可用算力卡范围"}),u.jsx("span",{children:"当前节点 · 平台调度授权"})]}),u.jsx("p",{children:"共享服务器请选择约定归你使用的卡。按 UUID 记住设备,编号变化仍使用原卡,掉卡后不补位。不限制其他用户或平台之外的程序。"}),u.jsxs("fieldset",{disabled:d,children:[u.jsxs("div",{className:"device-policy-modes",children:[u.jsxs("label",{children:[u.jsx("input",{type:"radio",name:`devices-${c}`,checked:y==="selected",onChange:()=>{T("selected"),O(!0),tt("")}}),"仅使用勾选设备"]}),u.jsxs("label",{children:[u.jsx("input",{type:"radio",name:`devices-${c}`,checked:y==="all",onChange:()=>{T("all"),O(!0),tt("")}}),"全部可见设备(包括后来新增的卡)"]})]}),u.jsx("div",{className:"device-policy-list",children:k.devices.map(C=>u.jsxs("label",{className:"device-policy-choice",title:C.stable_id||"探针未提供可靠的稳定标识,无法安全绑定",children:[u.jsx("input",{type:"checkbox",disabled:y==="all"||!C.stable_id,checked:y==="all"||!!C.stable_id&&N.includes(C.stable_id),onChange:W=>{const nt=C.stable_id;w(U=>W.target.checked?[...U,nt]:U.filter(Y=>Y!==nt)),O(!0),tt("")}}),u.jsxs("span",{children:[u.jsxs("strong",{children:["设备 ",C.index," · ",C.name]}),u.jsx("small",{children:C.stable_id||"缺少稳定 UUID,暂不支持绑定"})]})]},C.stable_id||C.index))}),!!k.missing_device_uuids.length&&u.jsx("div",{className:"device-policy-missing",children:k.missing_device_uuids.map(C=>u.jsxs("label",{children:[u.jsx("input",{type:"checkbox",disabled:y==="all",checked:N.includes(C),onChange:W=>{w(nt=>W.target.checked?[...nt,C]:nt.filter(U=>U!==C)),O(!0)}}),u.jsxs("span",{children:["已授权但当前不可见:",C,"(保留授权,等待原卡恢复)"]})]},C))}),y==="selected"&&!N.length&&u.jsx("p",{children:"未勾选任何设备:暂停新的算力卡分配,CPU 实验仍可运行。"}),u.jsx("button",{className:"tune-refresh",type:"button",disabled:!v||d,onClick:()=>void F(),children:d?"正在保存…":"保存范围"})]}),lt&&u.jsxs("details",{className:"diagnostic",children:[u.jsx("summary",{children:"技术详情"}),u.jsx("pre",{children:lt})]}),u.jsx("div",{role:"status",children:V||(b.error?"最近一次读取失败,当前显示上次的授权设置。":"")})]})}function gg({alias:c}){var V;const r=`/api/servers/${encodeURIComponent(c)}/scheduler-autostart`,[h,o]=A.useState(0),b=Gn(r,3e4,h),[y,T]=A.useState(!1),[N,w]=A.useState(""),[v,O]=A.useState(""),d=b.data,B=async()=>{if(d){T(!0),w(""),O("");try{const tt=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:!d.enabled})}),lt=await tt.json();if(!tt.ok)throw new Xt(lt.error,lt.details);Qa.invalidate(r),o(K=>K+1),w(lt.enabled?"已开启:节点开机后自动启动调度器。":"已关闭开机自启动,当前实验继续运行。")}catch(tt){w(tt instanceof Xt?tt.message:"设置失败,请重试"),O(tt instanceof Xt&&tt.details||"")}finally{T(!1)}}};return u.jsxs("section",{className:"device-policy","aria-label":"调度器开机自启动",children:[u.jsxs("div",{className:"device-policy-heading",children:[u.jsx(fg,{size:18}),u.jsx("strong",{children:"调度器开机自启动"}),u.jsxs("span",{children:["当前节点 · ",c]})]}),u.jsx("p",{children:"开机后自动处理队列,并从有效断点恢复被关机或调度器中断的实验。主动暂停的实验保持暂停;关闭此开关不停止当前实验。"}),d?d.available?d.supported?u.jsxs(u.Fragment,{children:[u.jsx("button",{type:"button",role:"switch","aria-checked":!!d.enabled,disabled:y||!!b.error,className:"tune-refresh",onClick:()=>void B(),children:y?"正在保存…":d.enabled?"已开启 · 点击关闭":"已关闭 · 点击开启"}),u.jsxs("p",{children:[d.enabled?d.boot_ready?"已配置为开机启动,无需先登录 SSH。":"开机启动条件尚未就绪,请检查系统用户服务权限。":"当前未配置开机自启动。",d.active?" 调度器托管服务正在运行。":""]}),d.message&&u.jsxs("details",{className:"diagnostic",children:[u.jsx("summary",{children:"服务诊断"}),u.jsx("pre",{children:d.message})]})]}):u.jsx("p",{children:"此节点暂不支持开机自启动,目前需要 Linux systemd。仍可通过 rexp start / stop 手动启停。"}):u.jsx("p",{children:d.message}):u.jsx("p",{role:"status",children:((V=b.error)==null?void 0:V.message)||"正在读取自启动设置…"}),u.jsx("div",{role:"status",children:N||(d&&b.error?"最近一次读取失败,显示上次设置。":"")}),v&&u.jsxs("details",{className:"diagnostic",children:[u.jsx("summary",{children:"技术详情"}),u.jsx("pre",{children:v})]})]})}const i0={pause:"暂停",resume:"继续",cancel:"取消实验",clean:"清理空间"},xg={RUNNING:"运行中",PAUSING:"正在暂停",PAUSED:"已暂停",RECOVERABLE:"可恢复",PENDING:"等待调度",WAITING_FOR_RESOURCE:"等待资源",WAITING_FOR_NODE:"等待节点",WAITING_FOR_SCHEDULE:"等待允许时段",COMPLETED:"已完成",FAILED:"失败",CANCELLED:"已取消"},pg={pause:cg,resume:rg,cancel:z0,clean:M0};function u0(c){if(!Number.isFinite(c))return"—";const r=c>0?Math.min(4,Math.floor(Math.log(c)/Math.log(1024))):0;return`${(c/1024**r).toLocaleString("zh-CN",{maximumFractionDigits:r?1:0})} ${["B","KiB","MiB","GiB","TiB"][r]}`}function df(c){return c?/checkpoint/i.test(c)?"没有有效检查点,无法从断点继续":/alive|exit/i.test(c)?"等待实验进程完全退出":/Only RUNNING/i.test(c)?"只有运行中的实验可以暂停":/PAUSED\/RECOVERABLE/i.test(c)?"只有已暂停或可恢复的实验可以继续":/terminal|ended/i.test(c)?"只允许清理已结束的实验":c:""}function O0({alias:c,runId:r,onUpdated:h}){const[o,b]=A.useState(),[y,T]=A.useState(),[N,w]=A.useState(),[v,O]=A.useState(""),[d,B]=A.useState(),[V,tt]=A.useState(),[lt,K]=A.useState(!1),k=A.useRef(h);k.current=h;const F=A.useRef(!0),G=A.useRef(!1),C=A.useRef(null),W=A.useRef(null),[nt,U]=A.useState(0);A.useEffect(()=>{F.current=!0;const x=new AbortController;let L=!1;const X=async()=>{var ut;if(!(L||G.current||document.hidden)){L=!0;try{const zt=await Ne.runDetails(c,r,x.signal);!x.signal.aborted&&!G.current&&(b(zt),(ut=k.current)==null||ut.call(k,zt))}catch(zt){x.signal.aborted||w(zt instanceof Xt?zt:new Xt("管理状态读取失败"))}finally{L=!1}}};X();const ct=window.setInterval(X,1e4);return()=>{F.current=!1,x.abort(),clearInterval(ct)}},[c,r,nt]),A.useEffect(()=>{var L;if(!d)return;const x=document.activeElement instanceof HTMLElement?document.activeElement:null;return(L=W.current)==null||L.focus(),()=>{x!=null&&x.isConnected&&x.focus()}},[d]),A.useEffect(()=>{if(d!=="clean")return;const x=new AbortController;return tt(void 0),K(!0),w(void 0),Ne.runStorage(c,r,x.signal).then(L=>{x.signal.aborted||tt(L)}).catch(L=>{x.signal.aborted||w(L instanceof Xt?L:new Xt("占用预览读取失败"))}).finally(()=>{x.signal.aborted||K(!1)}),()=>x.abort()},[d,c,r]);async function Y(x){var L;if(!G.current){G.current=!0,T(x),w(void 0),O("");try{const X=await Ne.runAction(c,r,x);if(!F.current)return;X.details&&(b(X.details),(L=k.current)==null||L.call(k,X.details,!0)),B(void 0),O(X.message)}catch(X){F.current&&w(X instanceof Xt?X:new Xt("请求结果暂时无法确认,请刷新状态后检查"))}finally{G.current=!1,F.current&&(T(void 0),U(X=>X+1))}}}const it=o==null?void 0:o.fields.status,St=it==="PAUSED"||it==="RECOVERABLE",Tt=it==="PAUSING",J=["COMPLETED","FAILED","CANCELLED"].includes(it||""),ot=St?"resume":"pause",Wt=J?["clean"]:[ot,"cancel"],Dt=u.jsx(u.Fragment,{children:N&&u.jsxs("div",{className:"management-feedback is-error",role:"alert",children:[u.jsx(eg,{size:16}),u.jsxs("div",{children:[N.message,N.details&&u.jsxs("details",{children:[u.jsx("summary",{children:"技术详情"}),u.jsx("pre",{children:N.details})]}),u.jsx("button",{type:"button",className:"inline-retry",disabled:!!y,onClick:()=>{w(void 0),U(x=>x+1)},children:"刷新状态"})]})]})});return u.jsxs("section",{className:"run-controls","aria-label":"实验管理",children:[u.jsxs("div",{className:"management-heading",children:[u.jsxs("div",{children:[u.jsx("span",{className:"section-kicker",children:"实验管理"}),u.jsx("strong",{children:r}),u.jsx("span",{className:`run-status run-${(it==null?void 0:it.toLowerCase())||"unknown"}`,children:it?xg[it]||it:"读取状态…"})]}),u.jsx("button",{type:"button",className:"management-refresh","aria-label":"刷新管理状态",disabled:!!y,onClick:()=>{w(void 0),U(x=>x+1)},children:u.jsx(Os,{size:14})})]}),u.jsx("div",{className:"management-buttons",children:Wt.map(x=>{var zt,kt;const L=pg[x],X=(zt=o==null?void 0:o.management)==null?void 0:zt.actions[x],ct=!!y||!(X!=null&&X.enabled),ut=x==="pause"&&((kt=o==null?void 0:o.management)==null?void 0:kt.schema_version)===0;return u.jsxs("button",{type:"button",className:`management-button action-${x} ${x===ot&&!J?"primary":""} ${x==="cancel"?"danger-quiet":""}`,disabled:ct,title:ct?df(X==null?void 0:X.reason):i0[x],onClick:()=>x==="cancel"||x==="clean"?B(x):void Y(x),children:[y===x?u.jsx(a0,{size:16,className:"spin"}):u.jsx(L,{size:16}),Tt&&x==="pause"?"等待安全暂停":y===x?"正在处理…":ut?"暂停 · 需升级":i0[x]]},x)})}),u.jsx("p",{className:"management-hint",children:J?"清理采集数据和检查点,保留实验记录与分析。":St?"从有效检查点重新入队,按可用资源继续。":Tt?"暂停请求已发送;脚本在安全边界保存检查点后才会停下。":"暂停需要脚本响应检查点;不会关闭整个节点调度器。"}),!J&&!Tt&&(o==null?void 0:o.management)&&!o.management.actions[ot].enabled&&u.jsx("p",{className:"management-blocked",children:df(o.management.actions[ot].reason)}),(o==null?void 0:o.scheduler)&&!o.scheduler.accepting_work&&!J&&u.jsx("p",{className:"management-blocked",children:"节点调度器未启动,入队后需先启动调度器。"}),v&&u.jsxs("div",{className:"management-feedback",role:"status",children:[u.jsx(lg,{size:16}),u.jsx("span",{children:v})]}),!d&&Dt,d&&u.jsxs("div",{ref:C,className:"management-confirm",role:"alertdialog","aria-modal":"false","aria-label":d==="clean"?"确认清理实验空间":"确认取消实验",onKeyDown:x=>{var L,X,ct;if(x.key==="Escape"&&(x.stopPropagation(),y||B(void 0)),x.key==="Tab"){x.stopPropagation();const ut=[...((L=C.current)==null?void 0:L.querySelectorAll("button:not(:disabled), summary"))||[]];x.shiftKey&&document.activeElement===ut[0]?(x.preventDefault(),(X=ut.at(-1))==null||X.focus()):!x.shiftKey&&document.activeElement===ut.at(-1)&&(x.preventDefault(),(ct=ut[0])==null||ct.focus())}},children:[u.jsxs("div",{className:"confirm-heading",children:[u.jsx("h3",{children:d==="clean"?"清理实验存储":"取消这个实验?"}),u.jsx("button",{ref:W,type:"button","aria-label":"关闭操作确认",disabled:!!y,onClick:()=>B(void 0),children:u.jsx(As,{size:17})})]}),u.jsxs("p",{className:"confirm-target",children:[c," / ",r]}),u.jsx("p",{className:"confirm-description",children:(o==null?void 0:o.fields.description)==="—"?"未提供实验说明":o==null?void 0:o.fields.description}),d==="clean"?u.jsxs(u.Fragment,{children:[lt?u.jsxs("div",{className:"storage-loading",role:"status",children:[u.jsx("span",{className:"skeleton"}),u.jsx("span",{className:"skeleton"}),u.jsx("p",{children:"正在统计两个目录的实际占用…"})]}):V&&u.jsxs(u.Fragment,{children:[u.jsx("dl",{className:"storage-breakdown",children:V.entries.map(x=>u.jsxs("div",{children:[u.jsxs("dt",{children:[x.path,"/ ",u.jsxs("small",{children:[x.files.toLocaleString()," 个文件"]})]}),u.jsx("dd",{children:u0(x.bytes)})]},x.path))}),u.jsxs("div",{className:"storage-total",children:[u.jsx("span",{children:"预计释放磁盘空间"}),u.jsx("strong",{children:u0(V.disk_bytes_estimate)})]}),u.jsx("p",{className:"management-hint",children:"实际释放空间可能因文件系统共享或进程仍持有文件而不同。"}),!V.eligible&&u.jsxs("p",{className:"management-blocked",children:["当前无法清理:",df(V.blocked_reason)]})]}),u.jsxs("div",{className:"cleanup-scope",children:[u.jsxs("p",{children:[u.jsx("strong",{children:"保留"}),"记录、脚本、配置、日志、评测、analysis 分析结果。"]}),u.jsxs("p",{children:[u.jsx("strong",{children:"永久删除"}),"artifacts 和 checkpoints 的全部内容,包括其中的汇总和 Ray Tune 恢复数据。清理后无法从旧断点继续,依赖这些数据的分析也无法重跑。"]})]})]}):u.jsx("p",{className:"cleanup-scope",children:"停止后续调度,并请求正在运行的实验退出。退出需要脚本配合;这个操作不是暂停,需要从断点继续时请返回使用“暂停”。"}),Dt,u.jsxs("div",{className:"confirm-buttons",children:[u.jsx("button",{type:"button",className:"management-button",disabled:!!y,onClick:()=>B(void 0),children:"返回"}),u.jsxs("button",{type:"button",className:"management-button destructive",disabled:!!y||d==="clean"&&(!(V!=null&&V.eligible)||lt),onClick:()=>void Y(d),children:[y?u.jsx(a0,{size:16,className:"spin"}):d==="clean"?u.jsx(M0,{size:16}):u.jsx(z0,{size:16})," ",y?"正在处理…":d==="clean"?"确认清理":"确认取消"]})]})]})]})}var A0=S0();function bg({title:c,subtitle:r,onClose:h,children:o}){const b=A.useRef(null),y=A.useRef(null);return A.useEffect(()=>{var w;const T=document.activeElement instanceof HTMLElement?document.activeElement:null;(w=y.current)==null||w.focus();const N=v=>{var V;if(v.key==="Escape"&&(v.preventDefault(),h()),v.key!=="Tab")return;const O=[...((V=b.current)==null?void 0:V.querySelectorAll('button:not(:disabled), select:not(:disabled), a[href], summary, [tabindex="0"]'))??[]],d=O[0],B=O.at(-1);v.shiftKey&&document.activeElement===d?(v.preventDefault(),B==null||B.focus()):!v.shiftKey&&document.activeElement===B&&(v.preventDefault(),d==null||d.focus())};return document.addEventListener("keydown",N),()=>{document.removeEventListener("keydown",N),T!=null&&T.isConnected&&T.focus()}},[h]),A0.createPortal(u.jsx("div",{className:"run-detail-overlay",onMouseDown:T=>{T.target===T.currentTarget&&h()},children:u.jsxs("aside",{ref:b,className:"run-detail-drawer tune-detail-drawer",role:"dialog","aria-modal":"true","aria-label":c,children:[u.jsxs("div",{className:"run-detail-head",children:[u.jsxs("div",{children:[u.jsx("span",{className:"eyebrow",children:r}),u.jsx("h2",{children:c})]}),u.jsx("div",{className:"run-detail-actions",children:u.jsx("button",{ref:y,type:"button","aria-label":"关闭 trial 详情",onClick:h,children:u.jsx(As,{size:19})})})]}),u.jsx("div",{className:"run-detail-body",children:o})]})}),document.body)}function C0({total:c,page:r,pageSize:h,onPage:o,onPageSize:b}){const y=Math.max(1,Math.ceil(c/h)),T=A.useRef(null),N=()=>{var v;return(v=T.current)==null?void 0:v.scrollIntoView({block:"start"})},w=v=>{o(v),N()};return u.jsxs(u.Fragment,{children:[u.jsx("span",{ref:T,className:"pagination-anchor","aria-hidden":"true"}),u.jsxs("nav",{className:"list-pagination","aria-label":"列表分页",children:[u.jsxs("span",{children:["共 ",c," 条 · ",c?r*h+1:0,"–",Math.min((r+1)*h,c)," 条"]}),u.jsxs("div",{className:"pagination-controls",children:[u.jsxs("label",{children:["每页 ",u.jsx("select",{"aria-label":"每页条数",value:h,onChange:v=>{b(Number(v.target.value)),N()},children:[10,30,50,100].map(v=>u.jsxs("option",{value:v,children:[v," 条"]},v))})]}),u.jsx("button",{type:"button",disabled:r===0,onClick:()=>w(r-1),children:"上一页"}),u.jsx("label",{children:u.jsx("select",{"aria-label":"跳转页码",value:r,onChange:v=>w(Number(v.target.value)),children:Array.from({length:y},(v,O)=>u.jsxs("option",{value:O,children:["第 ",O+1," / ",y," 页"]},O))})}),u.jsx("button",{type:"button",disabled:r+1>=y,onClick:()=>w(r+1),children:"下一页"})]})]})]})}function Nf({text:c,label:r="查看图表说明"}){const h=A.useId(),o=A.useRef(null),b=A.useRef(null),[y,T]=A.useState(!1),[N,w]=A.useState({left:8,top:8});return A.useLayoutEffect(()=>{if(!y)return;const v=()=>{var B,V;const O=(B=o.current)==null?void 0:B.getBoundingClientRect(),d=(V=b.current)==null?void 0:V.getBoundingClientRect();!O||!d||w({left:Math.max(8,Math.min(O.left-d.width/2+O.width/2,window.innerWidth-d.width-8)),top:O.bottom+d.height+12>window.innerHeight?Math.max(8,O.top-d.height-8):O.bottom+8})};return v(),window.addEventListener("resize",v),window.addEventListener("scroll",v,!0),()=>{window.removeEventListener("resize",v),window.removeEventListener("scroll",v,!0)}},[y]),u.jsxs(u.Fragment,{children:[u.jsx("button",{ref:o,className:"help-tip",type:"button","aria-label":r,"aria-describedby":y?h:void 0,onMouseEnter:()=>T(!0),onMouseLeave:()=>T(!1),onFocus:()=>T(!0),onBlur:()=>T(!1),onClick:()=>T(v=>!v),onKeyDown:v=>{v.key==="Escape"&&(v.stopPropagation(),T(!1))},children:"?"}),y&&A0.createPortal(u.jsx("div",{ref:b,id:h,role:"tooltip",className:"help-tooltip",style:N,children:c}),document.body)]})}const hl=c=>typeof c=="number"&&Number.isFinite(c),nl=c=>hl(c)?new Intl.NumberFormat("zh-CN",{maximumSignificantDigits:5}).format(c):"—",s0={accuracy:"准确率",strict_accuracy:"严格准确率",mean_generation_seconds:"平均生成耗时(秒)",flexible_accuracy:"宽松准确率",flexible_correct:"宽松正确数",strict_correct:"严格正确数",samples_completed:"已完成样本数",speedup:"加速比",global_number:"全局序号",mechanism_family_number:"机制族编号",pid:"进程号",timestamp:"时间戳",iterations_since_restore:"恢复后轮次",time_since_restore:"恢复后耗时(秒)",seconds:"耗时(秒)",loss:"损失",score:"评分",reward:"奖励",latency:"延迟",latency_ms:"延迟(毫秒)",throughput:"吞吐量",training_iteration:"上报轮次",time_total_s:"累计耗时(秒)",time_this_iter_s:"本轮耗时(秒)",mean_accuracy:"平均准确率",mean_loss:"平均损失",eval_loss:"评测损失",train_loss:"训练损失",precision:"精确率",recall:"召回率",f1:"F1 分数",perplexity:"困惑度"};function Ke(c,r,h=[]){var T,N,w,v;const o=(w=(N=(T=r.search)==null?void 0:T.metric_labels)==null?void 0:N[c])==null?void 0:w.trim();if(o)return o;if(s0[c])return s0[c];if(/[\u3400-\u9fff]/.test(c))return c;const b=[...new Set([...Object.keys(((v=r.search)==null?void 0:v.metrics)||{}),...h])],y=b.indexOf(c);return`指标 ${y<0?b.length+1:y+1}`}function Ln(c){return hl(c)?nl(c):c===void 0?"—":typeof c=="string"?c:JSON.stringify(c)}function Xn(c,r){var o,b;if((o=c.description)!=null&&o.trim())return c.description;const h=((b=r.search)==null?void 0:b.parameter_labels)??{};return Object.entries(c.parameters).filter(([y])=>y!=="_rexp").map(([y,T])=>`${h[y]||y}=${Ln(T)}`).join(" · ")||"未记录参数"}function D0(c){return[...c].sort((r,h)=>{var o,b;return(hl(r.number)&&hl(h.number)?r.number-h.number:0)||(r.started_at||((o=r.history[0])==null?void 0:o.at)||"").localeCompare(h.started_at||((b=h.history[0])==null?void 0:b.at)||"")||r.trial_id.localeCompare(h.trial_id)})}function R0(c,r){return D0(c).filter(h=>h.status==="TERMINATED"&&hl(h.metrics[r]))}function jg(c,r,h="max"){let o;return D0(c).flatMap((b,y)=>{if(b.status!=="TERMINATED"||!hl(b.metrics[r]))return[];const T=b.metrics[r];return o=o===void 0?T:h==="min"?Math.min(o,T):Math.max(o,T),[{x:y+1,y:T,best:o,trial:b}]})}function Sg(c,r=12){if(!c.length)return[];const h=Math.min(...c),o=Math.max(...c);if(h===o)return[{low:h,high:o,count:c.length}];const b=Array.from({length:r},(y,T)=>({low:h+(o-h)*T/r,high:h+(o-h)*(T+1)/r,count:0}));for(const y of c)b[Math.min(r-1,Math.floor((y-h)/(o-h)*r))].count++;return b}function gf(c,r=300){return c.length<=r?c:Array.from({length:r},(h,o)=>c[Math.round(o*(c.length-1)/(r-1))])}function U0(c,r,h=!1){const o=c.map(T=>T.parameters[r]).filter(T=>T!==void 0),b=o.length>0&&o.every(hl),y=[...new Set(o.map(Ln))];if(b){const T=o,N=h&&T.every(d=>d>0),w=d=>N?Math.log10(d):d,v=Math.min(...T.map(w)),O=Math.max(...T.map(w));return{numeric:b,logarithmic:N,labels:[Ln(Math.min(...T)),Ln(Math.max(...T))],position:d=>hl(d)?O===v?.5:(w(d)-v)/(O-v):void 0}}return{numeric:b,logarithmic:!1,labels:y,position:T=>T===void 0?void 0:y.length<=1?.5:y.indexOf(Ln(T))/(y.length-1)}}function w0(c){const r=c.submitted_at||c.started_at;return r&&Number.isFinite(Date.parse(r))?r:void 0}function Ss(c){return!c||!Number.isFinite(Date.parse(c))?"—":zs(c)}function H0(c){const r=y=>hl(y)&&y>=0,h=c.metrics||{},o=r(c.progress)?c.progress:r(h.samples_completed)?h.samples_completed:r(h.samples)?h.samples:void 0,b=r(c.total_samples)&&c.total_samples>0?c.total_samples:r(h.total_samples)&&h.total_samples>0?h.total_samples:void 0;return{completed:o,total:b,text:`${nl(o)} / ${nl(b)}`,percent:o!==void 0&&b!==void 0?Math.min(100,o/b*100):void 0}}function B0(c){return c.status!=="RUNNING"?"":c.counts.RUNNING>0?"正在执行尝试":c.waiting_trials?"搜索中 · 等待资源":c.counts.PENDING>0?"搜索中 · 等待调度":"搜索中 · 准备尝试"}function xf(c){if(!c)return"";const r=/^need (\d+) free (GPU|NPU)\(s\); reserved by (.+)$/u.exec(c);if(!r)return c;const h=r[3].replace(/(GPU|NPU) (\d+): (run_\d+)\/[^,]+/gu,"$1 $2:$3").replaceAll(", ",",");return`等待 ${r[1]} 张空闲 ${r[2]};占用中:${h}`}const hf=c=>Math.abs(c)>=1e5||c!==0&&Math.abs(c)<.001?c.toExponential(2):nl(c);function _s({title:c,help:r,children:h,wide:o=!1,rawTitle:b}){return u.jsxs("section",{className:`tune-chart${o?" chart-wide":""}`,children:[u.jsxs("div",{className:"chart-heading",children:[u.jsx("h4",{title:b||c,children:c}),u.jsx(Nf,{text:r,label:`${c}说明`})]}),h]})}function Ef({children:c="有效数据还不足,尝试上报结果后自动更新。"}){return u.jsx("div",{className:"chart-empty",children:c})}function Ns({points:c,xLabel:r,yLabel:h,scatter:o=!1,line:b,help:y,onSelect:T,xTicks:N,rawXLabel:w,rawYLabel:v}){if(!c.length)return u.jsx(_s,{title:h,rawTitle:v,help:y||"显示尝试上报的真实指标。没有有效数据时不绘制示例曲线。",children:u.jsx(Ef,{})});let O=Math.min(...c.map(G=>G.x)),d=Math.max(...c.map(G=>G.x)),B=Math.min(...c.map(G=>G.y)),V=Math.max(...c.map(G=>G.y));O===d&&(O-=.5,d+=.5),B===V&&(B-=Math.max(Math.abs(B)*.05,.001),V+=Math.max(Math.abs(V)*.05,.001));const tt=G=>85+(G-O)/(d-O)*445,lt=G=>175-(G-B)/(V-B)*145,K=N??[...new Set([O,(O+d)/2,d].map(G=>o?G:Math.round(G)))].filter(G=>G>=O&&G<=d).map(G=>({value:G,label:hf(G)})),k=gf(c,350),F=gf(b||c,500);return u.jsxs(_s,{title:h,rawTitle:v,help:y||`横轴为${r},纵轴为实际指标;点上悬停可看数值。${T?"点击数据点查看对应尝试。":""}`,children:[c.length>k.length&&u.jsxs("div",{className:"chart-note",children:["散点等距抽样 ",k.length," / ",c.length,";表格保留全部记录"]}),u.jsxs("svg",{viewBox:"0 0 560 225",role:"img","aria-label":`${h},横轴${r}`,children:[[0,.5,1].map(G=>u.jsxs("g",{children:[u.jsx("line",{x1:"85",x2:"530",y1:30+G*145,y2:30+G*145,className:"tune-chart-grid"}),u.jsx("text",{x:"77",y:34+G*145,textAnchor:"end",children:hf(V-G*(V-B))})]},G)),K.map((G,C)=>u.jsxs("text",{x:tt(G.value),y:"197",textAnchor:"middle",children:[u.jsx("title",{children:G.label}),G.label.length>13?`${G.label.slice(0,11)}…`:G.label]},C)),(!o||b)&&u.jsx("polyline",{className:"tune-chart-line",points:F.map(G=>`${tt(G.x)},${lt(G.y)}`).join(" ")}),k.map((G,C)=>u.jsx("circle",{cx:tt(G.x),cy:lt(G.y),r:G.highlight?5:3.5,className:G.highlight?"tune-point pareto":"tune-point",style:{cursor:T?"pointer":void 0},role:G.id&&T?"button":void 0,tabIndex:G.id&&T?0:void 0,"aria-label":G.id&&T?`查看 ${G.label}`:void 0,onClick:()=>{G.id&&(T==null||T(G.id))},onKeyDown:W=>{G.id&&(W.key==="Enter"||W.key===" ")&&(W.preventDefault(),T==null||T(G.id))},children:u.jsxs("title",{children:[G.label," · ",r,": ",hf(G.x)," · ",h,": ",nl(G.y)]})},C)),u.jsxs("text",{x:"310",y:"220",textAnchor:"middle",children:[u.jsx("title",{children:w||r}),r.length>24?`${r.slice(0,22)}…`:r]})]})]})}function Ng({detail:c,metric:r,onSelect:h}){var W,nt,U,Y,it,St,Tt,J,ot,Wt,Dt;const o=Object.keys(((W=c.search)==null?void 0:W.metrics)||{}),b=Ke(r,c),y=[...new Set([...Object.keys(((nt=c.search)==null?void 0:nt.space)||{}),...c.trials.flatMap(x=>Object.keys(x.parameters))])].filter(x=>x!=="_rexp"),[T,N]=A.useState(""),[w,v]=A.useState(""),O=y.includes(T)?T:y[0],d=o.includes(w)&&w!==r?w:o.find(x=>x!==r),B=R0(c.trials,r),V=((U=c.search)==null?void 0:U.metrics[r])||"max",tt=((Y=c.analytics)==null?void 0:Y.optimization.map(x=>({...x,trial:{trial_id:x.id,display_name:x.label,parameters:{}}})))||jg(c.trials,r,V),lt=x=>`${x.display_name||x.trial_id} · ${Xn(x,c)}`,K=((it=c.analytics)==null?void 0:it.histogram)||Sg(B.map(x=>x.metrics[r])),k=U0(B,O,((J=(Tt=(St=c.search)==null?void 0:St.space)==null?void 0:Tt[O])==null?void 0:J.type)==="loguniform"),F=((Wt=(ot=c.search)==null?void 0:ot.parameter_labels)==null?void 0:Wt[O])||O||"参数",G=B.flatMap(x=>{const L=k.position(x.parameters[O]);return L===void 0?[]:[{x:L,y:x.metrics[r],label:lt(x),id:x.trial_id,highlight:c.pareto_trial_ids.includes(x.trial_id)}]}),C=k.numeric?k.labels.map((x,L)=>({value:k.labels[0]===k.labels[1]?.5:L,label:x})).slice(0,k.labels[0]===k.labels[1]?1:2):k.labels.map((x,L)=>({value:k.labels.length<=1?.5:L/(k.labels.length-1),label:x})).filter((x,L)=>k.labels.length<=6||L%Math.ceil(k.labels.length/5)===0||L===k.labels.length-1);return u.jsxs("div",{className:"tune-analytics",children:[c.analytics&&u.jsxs("div",{className:"chart-note",children:["统计覆盖全部 ",c.analytics.successful," 次成功尝试;搜索曲线保留至多 350 个点,参数图抽样 ",c.analytics.sampled," 组。点击数据点按需读取完整详情。"]}),u.jsxs("div",{className:"tune-charts",children:[u.jsx(Ns,{scatter:!0,points:tt.map(x=>({x:x.x,y:x.y,label:lt(x.trial),id:x.trial.trial_id})),line:tt.map(x=>({x:x.x,y:x.best,label:lt(x.trial)})),xTicks:[...new Set(tt.length?[tt[0].x,Math.round((tt[0].x+tt[tt.length-1].x)/2),tt[tt.length-1].x]:[])].map(x=>({value:x,label:String(x)})),xLabel:"尝试序号(按创建时间)",rawYLabel:r,yLabel:`${b} · 搜索进展`,help:"散点是每次成功尝试的最终指标,连线是截至该尝试的累计最优值。按平台创建序号排序;大规模搜索在服务器等距抽样绘图,累计最优值先用全部成功结果计算;失败和未完成尝试不参与最优值计算。曲线长期不变说明近期没有刷新最优,不代表已经找到全局最优。悬停看数值,点击点可查看参数。",onSelect:h}),u.jsx(_s,{rawTitle:r,title:`${b} · 结果分布`,help:"横轴是最终指标值区间,纵轴是该区间成功尝试的数量。用来观察多数参数组合表现如何、好结果是否少见。只统计已结束且有有效指标的尝试,不包含失败和运行中的结果。区间内的高频不代表该参数最优。",children:K.length?u.jsxs("svg",{viewBox:"0 0 560 225",role:"img","aria-label":"结果分布直方图",children:[[0,.5,1].map(x=>u.jsxs("g",{children:[u.jsx("line",{x1:"65",x2:"535",y1:175-x*140,y2:175-x*140,className:"tune-chart-grid"}),u.jsx("text",{x:"55",y:180-x*140,textAnchor:"end",children:Math.round(Math.max(...K.map(L=>L.count))*x)})]},x)),K.map((x,L)=>u.jsx("rect",{x:70+L*460/K.length,y:175-x.count/Math.max(...K.map(X=>X.count))*140,width:460/K.length-3,height:x.count/Math.max(...K.map(X=>X.count))*140,rx:"3",fill:"#3b969b",children:u.jsxs("title",{children:[nl(x.low),"–",nl(x.high),":",x.count," 次尝试"]})},L)),u.jsx("text",{x:"70",y:"199",children:nl(K[0].low)}),u.jsx("text",{x:"530",y:"199",textAnchor:"end",children:nl((Dt=K.at(-1))==null?void 0:Dt.high)}),u.jsxs("text",{x:"300",y:"221",textAnchor:"middle",children:[b," · 最终指标"]})]}):u.jsx(Ef,{})})]}),u.jsxs("div",{className:"tune-toolbar",children:[u.jsxs("label",{children:["观察参数 ",u.jsx("select",{"aria-label":"观察参数",value:O||"",onChange:x=>N(x.target.value),children:y.map(x=>{var L,X;return u.jsx("option",{value:x,children:((X=(L=c.search)==null?void 0:L.parameter_labels)==null?void 0:X[x])||x},x)})})]}),u.jsx("span",{children:"点击散点查看对应尝试 · 仅使用成功结果"})]}),u.jsxs("div",{className:"tune-charts",children:[u.jsx(Ns,{scatter:!0,points:G,xTicks:C,xLabel:`${F}${k.logarithmic?"(对数刻度)":""}`,rawYLabel:r,yLabel:`${b} · 参数效果`,onSelect:h,help:"每个点是一组参数的成功尝试,横轴是选定参数,纵轴是目标指标。观察哪些取值附近结果更好。其他参数也可能同时变化,因此这是关联图,不能仅凭它证明因果或参数重要性。loguniform 参数使用对数刻度;类别参数等距排列。点击点查看完整组合。"}),d?u.jsxs("div",{children:[u.jsx("div",{className:"chart-secondary-select",children:u.jsxs("label",{children:["对比指标 ",u.jsx("select",{"aria-label":"对比指标",value:d,onChange:x=>v(x.target.value),children:o.filter(x=>x!==r).map(x=>u.jsx("option",{value:x,title:x,children:Ke(x,c)},x))})]})}),u.jsx(Ns,{scatter:!0,points:c.trials.filter(x=>x.status==="TERMINATED"&&hl(x.metrics[r])&&hl(x.metrics[d])).map(x=>({x:x.metrics[r],y:x.metrics[d],label:lt(x),id:x.trial_id,highlight:c.pareto_trial_ids.includes(x.trial_id)})),xLabel:b,rawXLabel:r,rawYLabel:d,yLabel:`${Ke(d,c)} · 目标权衡`,onSelect:h,help:`横轴是 ${b},纵轴是 ${Ke(d,c)}。金色点为按全部配置目标计算的 Pareto 候选:没有其他成功尝试在所有目标上都不差、且至少一项更好。这里只展示两个目标的投影;多目标通常没有唯一的最优结果。`})]}):u.jsx(c0,{detail:c,metric:r,onSelect:h})]}),d&&u.jsx(c0,{detail:c,metric:r,onSelect:h})]})}function c0({detail:c,metric:r,onSelect:h}){var G;const o=R0(c.trials,r),b=[...new Set([...Object.keys(((G=c.search)==null?void 0:G.space)||{}),...c.trials.flatMap(C=>Object.keys(C.parameters))])].filter(C=>C!=="_rexp"),[y,T]=A.useState([]),N=(y.length?y:b.slice(0,4)).filter(C=>b.includes(C)),w=N.map(C=>{var W,nt,U,Y,it;return{key:C,title:((nt=(W=c.search)==null?void 0:W.parameter_labels)==null?void 0:nt[C])||C,...U0(o,C,((it=(Y=(U=c.search)==null?void 0:U.space)==null?void 0:Y[C])==null?void 0:it.type)==="loguniform")}}),v=o.map(C=>C.metrics[r]),O=v.length?Math.min(...v):0,d=v.length?Math.max(...v):1,B=C=>O===d?.5:(C-O)/(d-O),V=o.filter(C=>w.every(W=>W.position(C.parameters[W.key])!==void 0)),tt=gf(V,160),lt=[...V].sort((C,W)=>{var nt;return(((nt=c.search)==null?void 0:nt.metrics[r])==="min"?1:-1)*(C.metrics[r]-W.metrics[r])}).slice(0,Math.max(1,Math.ceil(V.length*.1))),K=new Set(lt.map(C=>C.trial_id)),k=[...new Map([...tt,...lt.slice(0,20)].map(C=>[C.trial_id,C])).values()],F=C=>65+C*590/Math.max(1,w.length);return u.jsxs(_s,{wide:!0,title:"参数组合对比",help:"每条折线代表一次成功尝试,依次穿过各参数取值和最终目标指标;每根轴独立缩放,类别参数等距排列。金色表示图表样本中当前指标排名前 10% 的尝试,便于观察好结果常见的组合。它不是模型算出的参数重要性,也不表示因果。默认前四个参数,可切换轴;大量尝试抽样展示,并额外保留最多 20 个领先结果。点击线条查看详情。",children:[u.jsx("div",{className:"parallel-controls","aria-label":"选择对比参数",children:b.map(C=>{var W,nt;return u.jsx("button",{type:"button","aria-pressed":N.includes(C),onClick:()=>T(U=>{const Y=U.length?U:b.slice(0,4);return Y.includes(C)?Y.length>1?Y.filter(it=>it!==C):Y:[...Y.slice(-4),C]}),children:((nt=(W=c.search)==null?void 0:W.parameter_labels)==null?void 0:nt[C])||C},C)})}),!o.length||!w.length?u.jsx(Ef,{}):u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"chart-note",children:["展示 ",k.length," / ",V.length," 次参数完整的成功尝试 · 金色为图表样本前 10% 中的已展示结果"]}),u.jsx("div",{className:"parallel-scroll",children:u.jsxs("svg",{viewBox:"0 0 720 280",role:"img","aria-label":"参数组合平行坐标图",children:[[...k.filter(C=>!K.has(C.trial_id)),...k.filter(C=>K.has(C.trial_id))].map(C=>{const W=w.map(U=>U.position(C.parameters[U.key]));if(W.some(U=>U===void 0))return null;const nt=[...W,B(C.metrics[r])].map((U,Y)=>`${F(Y)},${210-(U??.5)*160}`).join(" ");return u.jsx("polyline",{points:nt,fill:"none",className:K.has(C.trial_id)?"parallel-line top":"parallel-line",role:"button",tabIndex:0,"aria-label":`查看参数组合 ${C.display_name||C.trial_id}`,onClick:()=>h(C.trial_id),onKeyDown:U=>{(U.key==="Enter"||U.key===" ")&&(U.preventDefault(),h(C.trial_id))},children:u.jsxs("title",{children:[Xn(C,c)," · ",Ke(r,c)," (",r,")=",nl(C.metrics[r])]})},C.trial_id)}),[...w.map(C=>({title:C.title,raw:C.key,labels:C.labels})),{title:Ke(r,c),raw:r,labels:[nl(O),nl(d)]}].map((C,W)=>{var nt,U;return u.jsxs("g",{children:[u.jsx("line",{x1:F(W),x2:F(W),y1:"50",y2:"210",className:"parallel-axis"}),u.jsxs("text",{x:F(W),y:"28",textAnchor:"middle",children:[u.jsx("title",{children:C.raw}),C.title.length>12?`${C.title.slice(0,10)}…`:C.title]}),u.jsx("text",{x:F(W),y:"235",textAnchor:"middle",children:(nt=C.labels[0])==null?void 0:nt.slice(0,13)}),u.jsx("text",{x:F(W),y:"47",textAnchor:"middle",children:(U=C.labels.at(-1))==null?void 0:U.slice(0,13)})]},W)})]})})]})]})}const Cs={RUNNING:"运行中",PENDING:"等待中",WAITING_FOR_RESOURCE:"等待资源",PAUSED:"已暂停",PAUSING:"暂停中",RECOVERABLE:"可恢复",COMPLETED:"已完成",TERMINATED:"已结束",ERROR:"失败",FAILED:"失败",CANCELLED:"已取消"},Qn=c=>c===void 0||!Number.isFinite(c)?"—":new Intl.NumberFormat("zh-CN",{maximumSignificantDigits:5}).format(c),pf=c=>(c.counts.TERMINATED||0)+(c.counts.ERROR||0),q0=c=>new Date(c).toLocaleTimeString("zh-CN",{hour12:!1});function _l({title:c,message:r,diagnostic:h}){return u.jsxs("div",{className:"empty-state",children:[u.jsx(T0,{size:25}),u.jsx("strong",{children:c}),r&&u.jsx("span",{children:r}),h&&u.jsxs("details",{className:"diagnostic",children:[u.jsx("summary",{children:"技术详情"}),u.jsx("pre",{children:h})]})]})}function Yn(){return u.jsxs("div",{className:"tune-skeleton",role:"status","aria-label":"正在读取参数搜索",children:[u.jsx("span",{className:"skeleton"}),u.jsx("span",{className:"skeleton"}),u.jsx("span",{className:"skeleton"})]})}function Eg({search:c}){var h,o,b,y;const r=c.total_trials===null?0:Math.min(100,pf(c)/Math.max(1,c.total_trials||1)*100);return u.jsxs("div",{className:"tune-search-summary",children:[u.jsxs("div",{className:"tune-summary-line",children:[u.jsx("strong",{children:c.run_id}),u.jsx("span",{className:`run-status run-${c.status.toLowerCase()}`,children:B0(c)||Cs[c.status]||c.status})]}),u.jsx("p",{title:c.description,children:c.description||"—"}),u.jsxs("div",{className:"tune-summary-line",children:[u.jsxs("span",{children:["已结束 ",pf(c)," / ",c.total_trials??"无限"," 次尝试"]}),u.jsxs("span",{children:[c.counts.RUNNING||0," 运行中"]}),c.waiting_trials!==void 0&&c.waiting_trials>0&&u.jsxs("span",{children:[c.waiting_trials," 等待资源"]}),!!c.counts.CANCELLED&&u.jsxs("span",{children:[c.counts.CANCELLED," 已取消"]})]}),u.jsx("div",{className:"table-progress",children:u.jsx("span",{style:{width:`${r}%`}})}),u.jsxs("small",{title:Object.keys(((h=c.search)==null?void 0:h.metrics)||{}).join(" / "),children:[((o=c.search)==null?void 0:o.search_algorithm)==="optuna"?"Optuna TPE":"Random / Grid"," · ",((b=c.search)==null?void 0:b.scheduler.toUpperCase())||"—"," · ",Object.entries(((y=c.search)==null?void 0:y.metrics)||{}).map(([T,N])=>`${Ke(T,c)} ${N==="max"?"↑":"↓"}`).join(" / ")]})]})}function _g({deviceLabel:c,detail:r,alias:h,onPolicyChanged:o,onStatusChanged:b}){var jt,vt,Nt,P,rt,_e,Xl,Je,Vt,Zt,H,Ft,$e,ce;const y=Object.keys(((jt=r.search)==null?void 0:jt.metrics)||{}),[T,N]=A.useState(y[0]||""),w=y.includes(T)?T:y[0],[v,O]=A.useState(!1),[d,B]=A.useState(),[V,tt]=A.useState("default"),lt=(vt=r.search)==null?void 0:vt.yield_to_normal,K=["COMPLETED","FAILED","CANCELLED"].includes(r.status);async function k(){if(!(v||lt===void 0)){O(!0),B(void 0);try{const dt=await Ne.tunePolicy(h,r.run_id,!lt);o(dt.yield_to_normal),at()}catch(dt){B(dt instanceof Xt?dt:new Xt("调度策略更新失败"))}finally{O(!1)}}}const[F,G]=A.useState("all"),[C,W]=A.useState(""),[nt,U]=A.useState(0),[Y,it]=A.useState(50),[St,Tt]=A.useState(""),J=A.useCallback(()=>Tt(""),[]),[ot,Wt]=A.useState(C),[Dt,x]=A.useState(0);A.useEffect(()=>{const dt=setTimeout(()=>Wt(C),300);return()=>clearTimeout(dt)},[C]);const L=js(h,r.run_id),X=new URLSearchParams({page:String(nt+1),pageSize:String(Y),sort:V,status:F,query:ot}),ct=Gn(`${L}/trials?${X}`,6e4,Dt),ut=Gn(`${L}/trials?active=1&pageSize=100`,15e3,Dt),zt=Gn(w?`${L}/charts?${new URLSearchParams({metric:w})}`:void 0,6e4,Dt),kt=Gn(St?`${L}/trial/${encodeURIComponent(St)}`:void 0,(Nt=ut.data)!=null&&Nt.trials.some(dt=>dt.trial_id===St)?15e3:3e5,Dt),Pt=((P=ut.data)==null?void 0:P.total)??r.counts.RUNNING??0,p=ct.data?ct.data.page-1:nt,q=(rt=r.search)==null?void 0:rt.metrics[w],I=(Xl=(_e=zt.data)==null?void 0:_e.analytics)==null?void 0:Xl.best,at=()=>{Ne.invalidateTune(h,r.run_id),x(dt=>dt+1)};return u.jsxs("div",{className:"tune-results",children:[u.jsx("div",{className:"tune-description",children:r.description||"未提供实验说明"}),u.jsx(O0,{alias:h,runId:r.run_id,onUpdated:(dt,il)=>{b(dt.fields.status),il&&at()}}),u.jsxs("div",{className:"tune-stats",children:[u.jsxs("div",{children:[u.jsx("span",{children:"已结束 / 计划上限"}),u.jsxs("strong",{children:[pf(r)," ",u.jsxs("small",{children:["/ ",r.total_trials??"无限"]})]})]}),u.jsxs("div",{children:[u.jsx("span",{children:"运行中 / 失败"}),u.jsxs("strong",{children:[Pt," ",u.jsxs("small",{children:["/ ",r.counts.ERROR||0]})]})]}),u.jsxs("div",{children:[u.jsx("span",{children:y.length>1?"Pareto 候选":"当前最优"}),u.jsx("strong",{children:y.length>1?r.pareto_trial_ids.length:Qn(I==null?void 0:I.metrics[w])})]}),u.jsxs("div",{children:[u.jsx("span",{children:"每次尝试资源"}),u.jsxs("strong",{children:[((Je=r.search)==null?void 0:Je.gpus_per_trial)??"—"," ",u.jsxs("small",{children:[c," · ",((Vt=r.search)==null?void 0:Vt.cpus_per_trial)??"—"," CPU"]})]})]})]}),u.jsxs("div",{className:"tune-config-line",children:[u.jsxs("span",{children:[((Zt=r.search)==null?void 0:Zt.search_algorithm)==="optuna"?"Optuna TPE":"Random / Grid"," · ",(H=r.search)==null?void 0:H.scheduler.toUpperCase()]}),u.jsxs("span",{children:["最大并发 ",(Ft=r.search)==null?void 0:Ft.max_concurrent_trials]}),u.jsxs("span",{children:["使用中 ",c," [",(($e=r.allocated_gpu_ids)==null?void 0:$e.join(", "))||"—","]"]}),u.jsxs("span",{children:["环境 ",r.environment||"default"]}),u.jsx("span",{className:`run-status run-${r.status.toLowerCase()}`,children:B0({...r,counts:{...r.counts,RUNNING:Pt}})||Cs[r.status]||r.status})]}),u.jsxs("div",{className:"tune-policy-row",children:[u.jsxs("div",{children:[u.jsx("strong",{children:"让位普通实验"}),u.jsx("p",{children:lt===void 0?"当前节点需更新平台以支持动态调度策略":lt?"已开启 · 后续 trial 优先级 1,普通实验优先执行":"已关闭 · 后续 trial 优先级 0,同级按入队顺序"}),u.jsx("small",{children:"正在运行的 trial 会继续完成;有空闲资源时自动继续搜索。"})]}),u.jsxs("button",{type:"button",role:"switch","aria-checked":lt??!1,"aria-label":"让位普通实验",className:"tune-policy-switch",disabled:v||K||lt===void 0,onClick:()=>void k(),children:[u.jsx("span",{}),v?"保存中…":lt===void 0?"需更新平台":lt?"已开启":"已关闭"]})]}),d&&u.jsx("div",{className:"tune-inline-note",role:"alert",children:u.jsxs("details",{children:[u.jsx("summary",{children:d.message}),u.jsx("pre",{children:d.details})]})}),(r.error_message||r.wait_reason)&&u.jsxs("div",{className:"tune-inline-note",children:[u.jsx(Qi,{size:16}),u.jsxs("details",{children:[u.jsx("summary",{children:r.wait_reason?"等待调度,请查看原因":"搜索出现异常,请查看详情"}),u.jsx("pre",{children:r.error_message||r.wait_reason})]})]}),u.jsxs("div",{className:"tune-toolbar",children:[u.jsxs("label",{children:["目标指标 ",u.jsx("select",{"aria-label":"目标指标",title:w,value:w,onChange:dt=>N(dt.target.value),children:y.map(dt=>u.jsx("option",{value:dt,title:dt,children:Ke(dt,r)},dt))})]}),u.jsxs("span",{children:[q==="min"?"越小越好":"越大越好",I?u.jsxs(u.Fragment,{children:[" · ",u.jsxs("button",{className:"best-trial-link",type:"button",title:Xn(I,r),onClick:()=>Tt(I.trial_id),children:[I.display_name||"查看最优参数",": ",Qn(I.metrics[w])]})]}):" · 等待结果"]})]}),u.jsxs("section",{className:"active-trials","aria-label":"正在运行的尝试",children:[u.jsxs("div",{className:"active-trials-heading",children:[u.jsxs("h3",{children:[u.jsx(Qi,{size:17}),"正在运行 ",u.jsx("span",{children:Pt})]}),u.jsx("small",{children:"单独刷新 · 不受下方搜索与筛选影响"})]}),ut.error&&u.jsx(_l,{title:"运行状态暂时无法读取",message:ut.error.message,diagnostic:ut.error.details}),ut.data?ut.data.trials.length?u.jsxs(u.Fragment,{children:[u.jsx(r0,{deviceLabel:c,trials:ut.data.trials,detail:r,metric:w,selected:St,onSelect:Tt}),ut.data.total>ut.data.trials.length&&u.jsxs("p",{children:["当前显示 ",ut.data.trials.length," / ",ut.data.total," 条运行尝试"]})]}):u.jsx("p",{className:"active-trials-empty",children:r.status==="RUNNING"&&r.counts.PENDING>0?"本搜索的尝试正在排队。显卡可能由此节点的其他搜索或普通实验占用,可在下方等待记录中查看原因。":"当前没有正在运行的尝试"}):!ut.error&&u.jsx(Yn,{})]}),zt.error&&u.jsx(_l,{title:"图表暂时无法读取",message:zt.error.message,diagnostic:zt.error.details}),zt.data?u.jsx(Ng,{detail:zt.data,metric:w,onSelect:Tt}):!zt.error&&u.jsx(Yn,{}),u.jsxs("div",{className:"tune-toolbar",children:[u.jsxs("h3",{children:["参数尝试 ",u.jsx(Nf,{text:"运行中的尝试已单独列在上方,此处展示其余尝试。提交时间是平台首次记录尝试的时间;实际开跑时间在详情中查看。进度使用样本计数,未上报显示 —,上报轮次不等于样本数。编号用于准确定位,说明由本次实际参数生成。支持按说明、参数名、参数值或原始 ID 搜索;完整精度和全部参数在右侧详情。旧版节点没有中文标签时直接使用原参数名,不猜测含义。",label:"参数尝试列表说明"})]}),u.jsx("input",{className:"trial-search","aria-label":"搜索参数尝试",placeholder:"搜索说明、参数值或 ID",value:C,onChange:dt=>{W(dt.target.value),U(0)}}),u.jsxs("label",{children:["排序 ",u.jsxs("select",{"aria-label":"尝试排序",value:V,onChange:dt=>{tt(dt.target.value),dt.target.value.startsWith("metric:")&&N(dt.target.value.slice(7)),U(0)},children:[u.jsxs("option",{value:"default",children:["预设效果",y.length>1?" · Pareto 优先":""]}),u.jsx("option",{value:"time:newest",children:"提交时间 · 从新到旧"}),u.jsx("option",{value:"time:oldest",children:"提交时间 · 从旧到新"}),y.map(dt=>{var il;return u.jsxs("option",{value:`metric:${dt}`,title:dt,children:[Ke(dt,r)," ",((il=r.search)==null?void 0:il.metrics[dt])==="min"?"从低到高":"从高到低"]},dt)})]})]}),u.jsxs("label",{children:["筛选 ",u.jsxs("select",{value:F,onChange:dt=>{G(dt.target.value),U(0)},children:[u.jsx("option",{value:"all",children:"全部"}),u.jsx("option",{value:"PENDING",children:"等待中"}),u.jsx("option",{value:"TERMINATED",children:"已结束"}),u.jsx("option",{value:"ERROR",children:"失败"}),u.jsx("option",{value:"PAUSED",children:"已暂停"}),u.jsx("option",{value:"pareto",children:"Pareto 候选"})]})]})]}),u.jsxs("button",{className:"tune-refresh",onClick:at,type:"button",children:[u.jsx(Os,{size:15}),"刷新列表与图表"]}),ct.error&&u.jsx(_l,{title:"尝试列表暂时无法读取",message:ct.error.message,diagnostic:ct.error.details}),ct.data?u.jsxs(u.Fragment,{children:[u.jsx(C0,{total:ct.data.total,page:p,pageSize:Y,onPage:U,onPageSize:dt=>{it(dt),U(0)}}),ct.data.trials.length?u.jsx(r0,{deviceLabel:c,trials:ct.data.trials,detail:r,metric:w,selected:St,onSelect:Tt}):u.jsx(_l,{title:"暂无符合条件的其他尝试",message:"可调整关键词或状态筛选;运行中的尝试在上方单独展示"})]}):!ct.error&&u.jsx(Yn,{}),St&&u.jsxs(bg,{title:((ce=kt.data)==null?void 0:ce.trial.display_name)||"参数尝试",subtitle:`${h} · ${r.run_id} · ${St}`,onClose:J,children:[kt.error&&u.jsx(_l,{title:"尝试详情暂时无法读取",message:kt.error.message,diagnostic:kt.error.details}),kt.data?u.jsx(Tg,{deviceLabel:c,trial:kt.data.trial,detail:r,metric:w}):!kt.error&&u.jsx(Yn,{})]}),u.jsxs("div",{className:"detail-note",children:["更新于 ",q0(r.updated_at)," · 仅刷新当前节点,页面隐藏时暂停。计划上限包含网格组合;达到时间预算或取消时可能提前结束。"]})]})}function r0({deviceLabel:c,trials:r,detail:h,metric:o,selected:b,onSelect:y}){var T;return u.jsx("div",{className:"table-wrap",children:u.jsxs("table",{className:"tune-table readable-trials timed-trials",children:[u.jsxs("colgroup",{children:[u.jsx("col",{style:{width:"32%"}}),u.jsx("col",{style:{width:"11%"}}),u.jsx("col",{style:{width:"7%"}}),u.jsx("col",{style:{width:"15%"}}),u.jsx("col",{style:{width:"14%"}}),u.jsx("col",{style:{width:"21%"}})]}),u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"尝试 / 参数说明"}),u.jsx("th",{children:"状态"}),u.jsx("th",{children:c}),u.jsx("th",{children:"样本进度"}),u.jsxs("th",{title:o,children:[Ke(o,h)," ",((T=h.search)==null?void 0:T.metrics[o])==="min"?"↓":"↑"]}),u.jsx("th",{children:"提交时间"})]})}),u.jsx("tbody",{children:r.map(N=>{var d,B;const w=H0(N),v=w0(N),O=Ss(v);return u.jsxs("tr",{"data-trial-id":N.trial_id,className:b===N.trial_id?"selected":"",onClick:()=>y(N.trial_id),children:[u.jsx("td",{"data-label":"尝试",children:u.jsxs("button",{type:"button",className:"trial-readable-trigger","aria-label":`查看 trial ${N.trial_id}`,"aria-haspopup":"dialog",children:[u.jsxs("span",{children:[N.display_name||"参数尝试",h.pareto_trial_ids.includes(N.trial_id)&&u.jsx("span",{className:"tune-pareto-badge",children:Object.keys(((d=h.search)==null?void 0:d.metrics)||{}).length>1?"Pareto":"最优"})]}),u.jsx("span",{className:"trial-description",title:Xn(N,h),children:Xn(N,h)}),u.jsx("small",{title:N.trial_id,children:N.trial_id})]})}),u.jsxs("td",{"data-label":"状态",children:[u.jsx("span",{className:`run-status run-${N.status.toLowerCase()}`,children:N.status==="PENDING"&&N.wait_reason?"等待资源":Cs[N.status]||N.status}),N.wait_reason&&u.jsx("small",{className:"trial-wait-reason",title:xf(N.wait_reason),children:xf(N.wait_reason)})]}),u.jsx("td",{"data-label":c,children:u.jsx("span",{className:"tune-cell-text",title:N.visible_devices||"未分配",children:(B=N.allocated_gpu_ids)!=null&&B.length?`[${N.allocated_gpu_ids.join(",")}]`:N.visible_devices||"—"})}),u.jsx("td",{"data-label":"样本进度",children:u.jsxs("div",{className:"trial-progress",title:`已处理 / 预计样本:${w.text}${w.completed===void 0?";尚未上报样本计数":""}`,children:[u.jsx("span",{children:w.text}),w.percent!==void 0&&u.jsx("div",{className:"table-progress",role:"progressbar","aria-label":"样本进度","aria-valuenow":w.percent,"aria-valuemin":0,"aria-valuemax":100,children:u.jsx("span",{style:{width:`${w.percent}%`}})})]})}),u.jsx("td",{"data-label":Ke(o,h),className:"trial-metric-value",title:Qn(N.metrics[o]),children:Qn(N.metrics[o])}),u.jsx("td",{"data-label":"提交时间",children:u.jsx("time",{className:"trial-submitted",dateTime:v,title:O==="—"?"未记录提交时间":`${O} · 平台首次记录时间`,children:O.split(" ").map((V,tt)=>u.jsx("span",{children:V},tt))})})]},N.trial_id)})})]})})}function Tg({deviceLabel:c,trial:r,detail:h,metric:o}){var b;return u.jsxs("section",{className:"tune-trial-detail",children:[u.jsx("p",{className:"tune-description",children:Xn(r,h)}),u.jsxs("div",{className:"trial-detail-meta",children:[u.jsx("span",{className:`run-status run-${r.status.toLowerCase()}`,children:Cs[r.status]||r.status}),u.jsxs("span",{children:[c," ",(b=r.allocated_gpu_ids)!=null&&b.length?`[${r.allocated_gpu_ids.join(",")}]`:r.visible_devices||"—"]}),r.duration_seconds!==void 0&&u.jsxs("span",{title:"Ray 上报的耗时,可能包含排队等待,并非纯算力卡计算时间。",children:["耗时 ",Qn(r.duration_seconds)," 秒"]})]}),u.jsxs("dl",{className:"trial-time-details",children:[u.jsxs("div",{children:[u.jsx("dt",{children:"提交时间"}),u.jsx("dd",{children:Ss(w0(r))})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"实际开跑"}),u.jsx("dd",{children:Ss(r.execution_started_at)})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"结束时间"}),u.jsx("dd",{children:Ss(r.finished_at)})]}),u.jsxs("div",{children:[u.jsx("dt",{children:"样本进度"}),u.jsx("dd",{children:H0(r).text})]})]}),r.wait_reason&&u.jsx("p",{className:"tune-inline-note",children:xf(r.wait_reason)}),u.jsxs("div",{className:"tune-code-grid",children:[u.jsxs("div",{children:[u.jsx("h4",{children:"本次参数"}),u.jsx("dl",{className:"trial-parameter-list",children:Object.entries(r.parameters).filter(([y])=>y!=="_rexp").map(([y,T])=>{var N,w;return u.jsxs("div",{children:[u.jsx("dt",{title:y,children:((w=(N=h.search)==null?void 0:N.parameter_labels)==null?void 0:w[y])||y}),u.jsx("dd",{children:Ln(T)})]},y)})}),u.jsxs("details",{className:"diagnostic",children:[u.jsx("summary",{children:"原始参数(完整精度)"}),u.jsx("pre",{children:JSON.stringify(r.parameters,null,2)})]})]}),u.jsxs("div",{children:[u.jsx("h4",{children:"最新指标"}),u.jsx("dl",{className:"trial-parameter-list trial-metric-list",children:Object.entries(r.metrics).map(([y,T])=>u.jsxs("div",{children:[u.jsx("dt",{title:y,children:Ke(y,h,Object.keys(r.metrics))}),u.jsx("dd",{children:Qn(T)})]},y))}),!Object.keys(r.metrics).length&&u.jsx("p",{children:"暂无上报指标"}),u.jsxs("details",{className:"diagnostic",children:[u.jsx("summary",{children:"原始指标(完整精度)"}),u.jsx("pre",{children:JSON.stringify(r.metrics,null,2)})]})]})]}),r.error&&u.jsxs("details",{className:"diagnostic",children:[u.jsx("summary",{children:"失败详情"}),u.jsx("pre",{children:r.error})]}),u.jsx(Ns,{points:r.history.filter(y=>Number.isFinite(y.metrics[o])).map(y=>({x:y.iteration,y:y.metrics[o],label:q0(y.at)})),xLabel:"尝试上报轮次",yLabel:Ke(o,h),rawYLabel:o,help:"这是选中尝试内部的指标变化,横轴是上报轮次,不一定等于样本数或训练 epoch。平台仅保留有上限的历史点,断点前后可能不连续;它与整个搜索的累计最优曲线含义不同。"})]})}function f0({deviceLabel:c="算力卡",alias:r,expanded:h=!1,onExpand:o,initialRunId:b=""}){var W,nt;const y=A.useRef(r);y.current=r;const T=A.useRef(0),[N,w]=A.useState(),[v,O]=A.useState(),[d,B]=A.useState(b);A.useEffect(()=>{b&&B(b)},[b]);const[V,tt]=A.useState(),[lt,K]=A.useState(),[k,F]=A.useState(0);A.useEffect(()=>{const U=new AbortController;let Y=!1;const it=async()=>{if(!(Y||document.hidden)){Y=!0;try{const Tt=await Ne.tuneList(r,U.signal);U.signal.aborted||(w(Tt),O(void 0))}catch(Tt){U.signal.aborted||O(Tt instanceof Xt?Tt:new Xt("参数搜索暂时无法读取"))}finally{Y=!1}}};it();const St=window.setInterval(it,3e4);return document.addEventListener("visibilitychange",it),()=>{U.abort(),clearInterval(St),document.removeEventListener("visibilitychange",it)}},[r,k]);const G=d||((W=N==null?void 0:N.searches[0])==null?void 0:W.run_id);A.useEffect(()=>{if(tt(void 0),K(void 0),!h||!G||!(N!=null&&N.supported))return;const U=new AbortController;let Y=!1;const it=async()=>{if(Y||document.hidden)return;Y=!0;const Tt=T.current;try{const J=await Ne.tuneDetails(r,G,U.signal);!U.signal.aborted&&Tt===T.current&&(tt(J),K(void 0))}catch(J){U.signal.aborted||K(J instanceof Xt?J:new Xt("搜索详情暂时无法读取"))}finally{Y=!1}};it();const St=window.setInterval(it,15e3);return document.addEventListener("visibilitychange",it),()=>{U.abort(),clearInterval(St),document.removeEventListener("visibilitychange",it)}},[r,G,h,N==null?void 0:N.supported,k]);const C=c==="NPU"&&(N!=null&&N.available)&&!((nt=N.accelerator_backends)!=null&&nt.includes("npu"))?u.jsx(_l,{title:"此节点尚不支持 NPU 参数搜索",message:"请将此节点的 rexprun 更新到支持 NPU Ray Tune 的版本;网页会读取平台返回的能力信息。"}):N?!N.available||!N.supported?u.jsx(_l,{title:"参数搜索尚未就绪",message:N.message,diagnostic:N.platformState?void 0:N.diagnostic}):!N.searches.length&&!d?u.jsx(_l,{title:"暂无参数搜索",message:"提交带 tune 配置的实验后,在这里查看进度与结果"}):h?u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"tune-toolbar",children:[u.jsxs("label",{children:["搜索任务 ",u.jsxs("select",{"aria-label":"搜索任务",value:G,onChange:U=>B(U.target.value),children:[d&&!N.searches.some(U=>U.run_id===d)&&u.jsx("option",{value:d,children:d}),N.searches.map(U=>u.jsxs("option",{value:U.run_id,children:[U.run_id," · ",U.description||"无说明"]},U.run_id))]})]}),u.jsxs("button",{className:"tune-refresh",type:"button",onClick:()=>{G&&Ne.invalidateTune(r,G),F(U=>U+1)},children:[u.jsx(Os,{size:15}),"刷新"]})]}),lt&&u.jsx(_l,{title:"搜索详情暂时无法读取",message:lt.message,diagnostic:lt.details}),V?u.jsx(_g,{deviceLabel:c,alias:r,detail:V,onStatusChanged:U=>tt(Y=>Y&&{...Y,status:U}),onPolicyChanged:U=>{y.current===r&&(T.current+=1,tt(Y=>Y&&Y.run_id===V.run_id?{...Y,trial_priority:Number(U),search:Y.search&&{...Y.search,yield_to_normal:U}}:Y),w(Y=>Y&&{...Y,searches:Y.searches.map(it=>it.run_id===V.run_id?{...it,trial_priority:Number(U),search:it.search&&{...it.search,yield_to_normal:U}}:it)}))}},`${r}/${V.run_id}`):!lt&&u.jsx(Yn,{})]}):u.jsx("div",{className:"tune-preview",children:N.searches.slice(0,2).map(U=>u.jsx(Eg,{search:U},U.run_id))}):v?u.jsx(_l,{title:"参数搜索暂时无法读取",message:v.message,diagnostic:v.details}):u.jsx(Yn,{});return h?u.jsxs("div",{className:"tune-panel",children:[v&&N&&u.jsx("p",{className:"detail-note",children:"更新暂时失败,正在展示上次结果。"}),C]}):u.jsxs("section",{className:"glass-panel tune-card clickable-panel",role:"button",tabIndex:0,"aria-label":"查看 Ray Tune 参数搜索","aria-busy":!N&&!v,onClick:o,onKeyDown:U=>{(U.key==="Enter"||U.key===" ")&&(U.preventDefault(),o==null||o())},children:[u.jsxs("div",{className:"panel-heading",children:[u.jsxs("div",{className:"panel-heading-title",children:[u.jsx("span",{className:"panel-icon",children:u.jsx(T0,{size:18})}),u.jsxs("div",{children:[u.jsx("h2",{children:"参数搜索"}),u.jsxs("span",{className:"panel-subtitle",children:["Ray Tune · ",N!=null&&N.supported?`${N.searches.length} 项搜索`:"搜索进度与最优参数"]})]})]}),u.jsx("span",{className:"panel-expand-mark",children:u.jsx(Ms,{size:17})})]}),C]})}const ps=new Set(["RUNNING","PENDING","WAITING_FOR_RESOURCE","WAITING_FOR_SCHEDULE","PAUSING","PAUSED","RECOVERABLE"]),zg={smoke:"短测",small:"小规模",full:"正式实验",analysis:"分析",search:"参数搜索"};function Mg({runs:c,renderRow:r,deviceLabel:h="算力卡"}){const[o,b]=A.useState("workbench"),[y,T]=A.useState(""),[N,w]=A.useState("all"),[v,O]=A.useState("all"),[d,B]=A.useState("all"),[V,tt]=A.useState(""),[lt,K]=A.useState(0),[k,F]=A.useState(30),G=c.filter(J=>ps.has(J.status)),C=c.filter(J=>!ps.has(J.status)).slice(0,12),W=new Set([...G,...C].map(J=>J.id)),nt=!!y.trim()||N!=="all"||v!=="all"||d!=="all"||!!V,U=A.useMemo(()=>{const J=y.toLowerCase().trim().split(/\s+/).filter(Boolean);return c.filter(ot=>(!V||(ot.researchTopic||"未分类")===V)&&(N==="all"||(N==="active"?ps.has(ot.status):ot.status===N))&&(v==="all"||(ot.kind==="tune"?"tune":"experiment")===v)&&(d==="all"||ot.stage===d)&&J.every(Wt=>`${ot.id} ${ot.description||""} ${ot.project} ${ot.version} ${ot.experiment} ${ot.researchTopic||""} ${ot.study||""} ${ot.environment||""}`.toLowerCase().includes(Wt)))},[c,y,V,N,v,d]),Y=o==="workbench"&&!nt?U.filter(J=>W.has(J.id)):U,it=new Map;for(const J of U){const ot=J.researchTopic||"未分类";it.has(ot)||it.set(ot,[]),it.get(ot).push(J)}const St=Math.min(lt,Math.max(0,Math.ceil(Y.length/k)-1));function Tt(){T(""),w("all"),O("all"),B("all"),tt(""),K(0)}return u.jsxs("div",{className:"run-explorer",children:[u.jsxs("div",{className:"explorer-stats",children:[u.jsxs("div",{children:[u.jsx("span",{children:"当前任务"}),u.jsx("strong",{children:G.length}),u.jsx("small",{children:"运行、等待、暂停及可恢复"})]}),u.jsxs("div",{children:[u.jsx("span",{children:"全部记录"}),u.jsx("strong",{children:c.length}),u.jsxs("small",{children:[new Set(c.map(J=>J.project)).size," 个代码项目"]})]}),u.jsxs("div",{children:[u.jsx("span",{children:"研究方向"}),u.jsx("strong",{children:new Set(c.flatMap(J=>J.researchTopic?[J.researchTopic]:[])).size||"—"}),u.jsx("small",{children:"可跨项目汇总同类问题"})]})]}),u.jsxs("div",{className:"explorer-viewbar",children:[u.jsx("div",{className:"segmented-control",role:"group","aria-label":"记录浏览方式",children:[{value:"workbench",label:"工作台",Icon:ng},{value:"all",label:"全部记录",Icon:ig},{value:"topics",label:"研究方向",Icon:l0}].map(({value:J,label:ot,Icon:Wt})=>u.jsxs("button",{type:"button","aria-pressed":o===J,onClick:()=>{b(J),K(0)},children:[u.jsx(Wt,{size:15}),ot]},J))}),u.jsx(Nf,{text:"工作台默认只列当前任务和最近 12 条结束记录,减少历史干扰。搜索始终覆盖该节点全部历史;研究方向可以合并不同项目,未分类记录暂时放在一组。这里不会删除或自动判定旧实验是否有效。",label:"实验记录整理说明"})]}),u.jsxs("div",{className:"explorer-filters",children:[u.jsxs("label",{className:"explorer-search",children:[u.jsx(n0,{size:17}),u.jsx("input",{"aria-label":"搜索全部实验",value:y,placeholder:"搜索全部历史:实验说明、项目、研究问题、运行编号…",onChange:J=>{T(J.target.value),K(0)}})]}),u.jsxs("select",{"aria-label":"实验状态",value:N,onChange:J=>{w(J.target.value),K(0)},children:[u.jsx("option",{value:"all",children:"全部状态"}),u.jsx("option",{value:"active",children:"当前任务"}),u.jsx("option",{value:"COMPLETED",children:"已完成"}),u.jsx("option",{value:"FAILED",children:"失败"}),u.jsx("option",{value:"CANCELLED",children:"已取消"}),u.jsx("option",{value:"PAUSED",children:"已暂停"})]}),u.jsxs("select",{"aria-label":"实验类型",value:v,onChange:J=>{O(J.target.value),K(0)},children:[u.jsx("option",{value:"all",children:"全部类型"}),u.jsx("option",{value:"experiment",children:"普通实验"}),u.jsx("option",{value:"tune",children:"Ray Tune"})]}),u.jsxs("select",{"aria-label":"实验阶段",value:d,onChange:J=>{B(J.target.value),K(0)},children:[u.jsx("option",{value:"all",children:"全部阶段"}),Object.entries(zg).map(([J,ot])=>u.jsx("option",{value:J,children:ot},J))]})]}),u.jsxs("div",{className:"explorer-context",children:[u.jsxs("span",{children:[nt?`从全部 ${c.length} 条历史中筛选出 ${U.length} 条`:o==="workbench"?`显示 ${G.length} 条当前任务和最近 ${C.length} 条结束记录`:`共 ${U.length} 条记录`,V&&` · ${V}`]}),nt&&u.jsx("button",{type:"button",onClick:Tt,children:"清除筛选"})]}),o==="topics"?u.jsx("div",{className:"research-topic-grid",children:[...it].map(([J,ot])=>u.jsxs("button",{className:"research-topic-card",type:"button",onClick:()=>{tt(J),b("all"),K(0)},children:[u.jsxs("div",{children:[u.jsx("span",{className:"topic-icon",children:u.jsx(l0,{size:19})}),u.jsx(Ms,{size:17})]}),u.jsx("h3",{children:J}),u.jsx("p",{children:ot[0].description||"暂无实验说明"}),u.jsxs("footer",{children:[u.jsxs("span",{children:[ot.length," 条记录 · ",new Set(ot.map(Wt=>Wt.project)).size," 个项目"]}),u.jsxs("strong",{children:[ot.filter(Wt=>ps.has(Wt.status)).length," 当前任务"]})]}),J==="未分类"&&u.jsx("small",{children:"旧记录未登记方向;仍可通过关键词检索"})]},J))}):u.jsxs(u.Fragment,{children:[u.jsx(C0,{total:Y.length,page:St,pageSize:k,onPage:K,onPageSize:J=>{F(J),K(0)}}),Y.length?u.jsx("div",{className:"table-wrap",children:u.jsxs("table",{className:"runs-table",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:"运行编号"}),u.jsx("th",{children:"实验说明"}),u.jsx("th",{children:h}),u.jsx("th",{children:"状态"}),u.jsx("th",{children:"已处理 / 总数"}),u.jsx("th",{children:"提交时间"})]})}),u.jsx("tbody",{children:Y.slice(St*k,(St+1)*k).map(r)})]})}):u.jsxs("div",{className:"empty-state",children:[u.jsx(n0,{size:24}),u.jsx("strong",{children:"没有匹配的实验"}),u.jsx("span",{children:"可调整关键词或清除筛选,搜索覆盖全部历史。"})]})]})]})}async function o0(){if(!("serviceWorker"in navigator))return null;await navigator.serviceWorker.register("/sw.js");const c=await navigator.serviceWorker.ready;if(!c.active)throw new Error("通知服务尚未就绪,请稍后重试");return c}function Og(c){var o;const r=c.status==="COMPLETED"?"实验已完成":c.status==="RECOVERABLE"?"实验中断,可恢复":"实验失败",h=((o=c.description)==null?void 0:o.replace(/\s+/gu," ").trim())||`${c.runId}(尚无实验说明)`;return{title:r,body:h}}function Ag(){const[c,r]=A.useState(!1),[h,o]=A.useState(),[b,y]=A.useState(!1),[T,N]=A.useState("");A.useEffect(()=>{if(!c)return;const v=new AbortController;return o(void 0),N(""),fetch("/api/web/autostart",{cache:"no-store",signal:v.signal}).then(async O=>{const d=await O.json();if(!O.ok)throw new Error(d.error);return d}).then(o).catch(O=>{v.signal.aborted||N(O.message)}),()=>v.abort()},[c]),A.useEffect(()=>{if(!c)return;const v=O=>{O.key==="Escape"&&r(!1)};return window.addEventListener("keydown",v),()=>window.removeEventListener("keydown",v)},[c]);const w=async()=>{if(!(!h||b)){y(!0),N("");try{const v=await fetch("/api/web/autostart",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:!h.enabled})}),O=await v.json();if(!v.ok)throw new Error(O.error+(O.details?`:${O.details}`:""));o(O)}catch(v){N(v instanceof Error?v.message:"设置未能保存")}finally{y(!1)}}};return u.jsxs("div",{className:"web-settings",children:[u.jsx("button",{className:"web-settings-trigger",type:"button",onClick:()=>r(!c),"aria-label":"Web 设置","aria-expanded":c,children:u.jsx(dg,{size:17})}),c&&u.jsxs("section",{className:"web-settings-popover",role:"dialog","aria-label":"Web 设置",children:[u.jsxs("div",{className:"web-settings-heading",children:[u.jsx("strong",{children:"控制台设置"}),u.jsx("button",{type:"button",onClick:()=>r(!1),"aria-label":"关闭设置",children:u.jsx(As,{size:17})})]}),!h&&!T?u.jsx("div",{className:"skeleton",style:{height:"4rem"},"aria-label":"正在读取设置"}):h&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{className:"web-settings-row",children:[u.jsxs("div",{children:[u.jsx("strong",{children:"开机自启动"}),u.jsx("p",{children:"登录电脑后,自动启动 Web 服务"})]}),u.jsx("button",{className:"web-autostart-switch",role:"switch","aria-checked":h.enabled,"aria-label":"开机自启动",disabled:!h.supported||b,onClick:()=>void w(),children:u.jsx("span",{})})]}),u.jsx("p",{className:"web-settings-note",children:b?"正在保存…":h.supported?h.enabled?"已开启,下次登录后可直接打开书签。":"已关闭。当前页面继续可用,下次可让 Agent 启动并打开。":h.manager})]}),T&&u.jsx("p",{role:"alert",className:"web-settings-error",children:T}),u.jsxs("div",{className:"web-bookmark",children:[u.jsx(I1,{size:17}),u.jsxs("div",{children:[u.jsx("strong",{children:"记得添加书签"}),u.jsx("p",{children:"将当前页面加入书签,下次直接打开即可。"})]})]})]})]})}const Cg={busy:"忙碌",online:"在线",offline:"离线",checking:"检测中"},_f={RUNNING:"运行中",PENDING:"等待中",WAITING_FOR_RESOURCE:"等待资源",COMPLETED:"已完成",FAILED:"失败",CANCELLED:"已取消",PAUSED:"已暂停",RECOVERABLE:"可恢复"},G0=zs;function d0(c,r,h,o){var T;const b=Date.parse(o);if(!Number.isFinite(b))return c;const y={...c[r]??{}};for(const N of h){if(N.utilization===void 0||N.usedMemory===void 0||!N.totalMemory)continue;const w=y[N.index]??[];((T=w.at(-1))==null?void 0:T.at)!==b&&(y[N.index]=[...w,{at:b,utilization:N.utilization,memory:N.usedMemory/N.totalMemory*100,usedMemory:N.usedMemory,totalMemory:N.totalMemory}].slice(-60))}return{...c,[r]:y}}function Xi(c){return new Date(c).toLocaleTimeString("zh-CN",{hour12:!1,hour:"2-digit",minute:"2-digit",second:"2-digit"})}function Ts({text:c}){return c?u.jsxs("details",{className:"diagnostic",onClick:r=>r.stopPropagation(),onKeyDown:r=>r.stopPropagation(),children:[u.jsx("summary",{children:"技术详情"}),u.jsx("pre",{children:c})]}):null}function Xa({title:c,message:r,details:h}){return u.jsxs("div",{className:"empty-state",role:"alert",children:[u.jsx(Qi,{size:23}),u.jsx("strong",{children:c}),u.jsx("span",{children:typeof r=="string"?r:r.message}),u.jsx(Ts,{text:h||(r instanceof Xt?r.details:void 0)})]})}function L0({state:c}){return u.jsxs("span",{className:`status status-${c}`,children:[u.jsx("span",{className:"status-dot"}),Cg[c]]})}function Tl({className:c=""}){return u.jsx("span",{className:`skeleton ${c}`,"aria-hidden":"true"})}function mf({detailed:c=!1}){return u.jsx("div",{className:c?"server-list detailed":"server-list",role:"status","aria-label":"正在读取服务器列表",children:[0,1,2].map(r=>u.jsxs("div",{className:"server-item skeleton-server",children:[u.jsx(Tl,{className:"skeleton-server-name"}),u.jsx(Tl,{className:"skeleton-server-line"})]},r))})}function h0({expanded:c=!1,count:r=2}){const h=c?r:Math.min(r,3);return u.jsx("div",{className:c?"gpu-skeleton-detail":"gpu-list",role:"status","aria-label":"正在读取算力卡资源",children:Array.from({length:Math.max(h,1)},(o,b)=>u.jsxs("div",{className:c?"gpu-detail-row skeleton-detail-row":"gpu-item skeleton-gpu",children:[u.jsx(Tl,{className:"skeleton-gpu-title"}),u.jsx(Tl,{className:"skeleton-gpu-bar"}),u.jsx(Tl,{className:"skeleton-gpu-meta"})]},b))})}function m0({expanded:c=!1}){return u.jsx("div",{className:"runs-skeleton",role:"status","aria-label":"正在读取实验运行信息",children:Array.from({length:c?5:3},(r,h)=>u.jsxs("div",{className:"skeleton-run-row",children:[u.jsx(Tl,{className:"skeleton-run-name"}),u.jsx(Tl,{className:"skeleton-run-status"}),u.jsx(Tl,{className:"skeleton-run-progress"})]},h))})}function v0({icon:c,title:r,subtitle:h}){return u.jsxs("div",{className:"panel-heading",children:[u.jsxs("div",{className:"panel-heading-title",children:[u.jsx("span",{className:"panel-icon",children:c}),u.jsxs("div",{children:[u.jsx("h2",{children:r}),h&&u.jsx("span",{className:"panel-subtitle",children:h})]})]}),u.jsx("span",{className:"panel-expand-mark","aria-hidden":"true",children:u.jsx(Ms,{size:17})})]})}function y0({servers:c,selectedAlias:r,onSelect:h,detailed:o=!1}){return u.jsx("div",{className:o?"server-list detailed":"server-list",children:c.map(b=>u.jsxs("button",{className:`server-item ${r===b.alias?"selected":""}`,type:"button",onClick:()=>h(b.alias),"aria-pressed":r===b.alias,children:[u.jsxs("span",{className:"server-item-top",children:[u.jsx("span",{className:"server-icon",children:u.jsx(og,{size:16})}),u.jsxs("span",{className:"server-item-names",children:[u.jsx("strong",{children:b.alias}),u.jsx("small",{children:b.label})]})]}),u.jsxs("span",{className:"server-item-bottom",children:[u.jsx(L0,{state:b.state}),u.jsx("span",{className:"server-secondary",children:b.state==="offline"?"连接不可用":b.platform==="available"?`实验 ${b.running??0} 运行 / ${b.queued??0} 排队`:{not_installed:"Platform 未安装完成",not_initialized:"Platform 未初始化",unconfigured:"Platform 未配置"}[b.platformState||""]||"Platform 待检测"})]})]},b.alias))})}function Dg({samples:c,index:r,label:h}){const o=h==="NPU"?"HBM 内存":"显存";if(c.length<2)return u.jsx("span",{className:"gpu-trend-pending",children:"正在积累真实采样数据…"});const b=c.at(-1),y=T=>c.map((N,w)=>`${w/(c.length-1)*480},${65-N[T]*.58}`).join(" ");return u.jsxs("div",{className:"gpu-trend-visual",children:[u.jsxs("div",{className:"gpu-trend-values",children:[u.jsxs("span",{className:"trend-gpu",children:[h," 使用率 ",u.jsxs("strong",{children:[Math.round(b.utilization),"%"]})]}),u.jsxs("span",{className:"trend-memory",children:[o," ",u.jsxs("strong",{children:[b.usedMemory.toFixed(1)," / ",b.totalMemory.toFixed(1)," GiB · ",Math.round(b.memory),"%"]})]})]}),u.jsxs("div",{className:"gpu-trend-plot",children:[u.jsxs("div",{className:"gpu-trend-y",children:[u.jsx("span",{children:"100%"}),u.jsx("span",{children:"50%"}),u.jsx("span",{children:"0%"})]}),u.jsxs("svg",{className:"sparkline",viewBox:"0 0 480 72",preserveAspectRatio:"none",role:"img","aria-label":`${h} ${r} 从 ${Xi(c[0].at)} 到 ${Xi(b.at)} 的实际利用率与显存占用趋势`,children:[u.jsx("path",{d:"M0 7 H480 M0 36 H480 M0 65 H480",className:"spark-grid"}),u.jsx("polyline",{points:y("utilization"),className:"spark-path"}),u.jsx("polyline",{points:y("memory"),className:"spark-path secondary"}),c.map((T,N)=>u.jsx("circle",{cx:N/(c.length-1)*480,cy:65-T.utilization*.58,r:"5",className:"spark-hit",children:u.jsxs("title",{children:[Xi(T.at)," · ",h," ",Math.round(T.utilization),"% · ",o," ",T.usedMemory.toFixed(2)," / ",T.totalMemory.toFixed(2)," GiB"]})},T.at))]})]}),u.jsxs("div",{className:"gpu-trend-times",children:[u.jsx("span",{children:Xi(c[0].at)}),u.jsx("span",{children:Xi(b.at)})]})]})}function g0(c,r){const[h,o]=c.name.split(" · ");return new RegExp(`^(GPU|NPU) ${r}$`).test(h)&&o?o:c.name}function bs({label:c,value:r,detail:h}){return u.jsxs("div",{className:"gpu-meter",children:[u.jsxs("div",{className:"gpu-meter-label",children:[u.jsx("span",{children:c}),u.jsx("strong",{children:h})]}),u.jsx("div",{className:"usage-track",role:"progressbar","aria-label":c,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round(r),children:u.jsx("span",{style:{width:`${Math.min(100,r)}%`}})})]})}function bf(c){const r=c.gpu??[];if(c.acceleratorBackend==="npu"){const h=new Set(r.map(o=>o.cardId).filter(o=>o!==void 0));return h.size?`${h.size} 张物理卡 · ${r.length} 个逻辑设备`:`${r.length} 个逻辑 NPU 设备`}return`${r.length} 张 GPU`}function x0({server:c,expanded:r=!1,history:h={}}){var T,N,w;const o=Sf(c),b=o==="NPU"?"HBM 内存":"显存";if(!((T=c.gpu)!=null&&T.length))return u.jsxs("div",{className:"empty-state",children:[u.jsx(yf,{size:23}),u.jsxs("strong",{children:["暂无 ",o," 数据"]}),u.jsx("span",{children:c.state==="offline"?"服务器当前不可连接":"此节点尚未获取资源信息"})]});if(r)return u.jsxs("div",{className:"gpu-detail",children:[u.jsxs("div",{className:"gpu-detail-summary",children:[u.jsx("strong",{children:bf(c)}),u.jsxs("span",{children:[c.gpu.filter(v=>(v.utilization??0)>=50).length," 个设备负载超过 50%"]}),u.jsx("span",{children:"数据由当前节点即时采样"})]}),u.jsx("div",{className:"gpu-detail-list",children:c.gpu.map(v=>u.jsxs("section",{className:"gpu-detail-row",children:[u.jsxs("div",{className:"gpu-detail-header",children:[u.jsxs("div",{children:[u.jsxs("span",{className:"gpu-index",children:[o," ",v.index,o==="NPU"&&v.cardId!==void 0?` · 物理卡 ${v.cardId} / 芯片 ${v.chipId}`:""]}),u.jsx("h3",{children:g0(v,v.index)})]}),u.jsxs("strong",{children:[v.utilization===void 0?"—":`${v.utilization}%`," ",u.jsx("small",{children:"使用率"})]})]}),u.jsxs("div",{className:"gpu-detail-body",children:[u.jsxs("div",{className:"gpu-detail-meters",children:[u.jsx(bs,{label:`${o} ${v.index} 使用率`,value:v.utilization??0,detail:v.utilization===void 0?"—":`${v.utilization}%`}),u.jsx(bs,{label:`${o} ${v.index} ${b}`,value:v.totalMemory?(v.usedMemory??0)/v.totalMemory*100:0,detail:v.usedMemory===void 0||v.totalMemory===void 0?"—":`${v.usedMemory.toFixed(3)} / ${v.totalMemory.toFixed(3)} GiB`})]}),u.jsxs("div",{className:"gpu-detail-trend",children:[u.jsxs("div",{className:"gpu-trend-label",children:["最近采样趋势",u.jsxs("span",{children:[(h[v.index]??[]).length," 个采样点"]})]}),u.jsx(Dg,{label:o,index:v.index,samples:h[v.index]??[]})]})]}),u.jsxs("div",{className:"gpu-facts",children:[u.jsxs("div",{children:[u.jsx("span",{children:"温度"}),u.jsx("strong",{children:v.temperature===void 0?"—":`${v.temperature}°C`})]}),o!=="NPU"&&u.jsxs("div",{children:[u.jsx("span",{children:"风扇"}),u.jsx("strong",{children:v.fanPercent===void 0?"—":`${v.fanPercent}%`})]}),u.jsxs("div",{children:[u.jsx("span",{children:"功耗"}),u.jsx("strong",{children:v.powerWatts===void 0?"—":`${v.powerWatts} / ${v.powerLimitWatts??"—"} W`})]}),o!=="NPU"&&u.jsxs(u.Fragment,{children:[u.jsxs("div",{children:[u.jsxs("span",{children:[o," 频率"]}),u.jsx("strong",{children:v.gpuClockMHz===void 0?"—":`${v.gpuClockMHz} MHz`})]}),u.jsxs("div",{children:[u.jsxs("span",{children:[b,"频率"]}),u.jsx("strong",{children:v.memoryClockMHz===void 0?"—":`${v.memoryClockMHz} MHz`})]}),u.jsxs("div",{children:[u.jsx("span",{children:"PCIe"}),u.jsx("strong",{children:v.pcieGeneration===void 0?"—":`Gen ${v.pcieGeneration} ×${v.pcieWidth??"—"}`})]}),u.jsxs("div",{children:[u.jsx("span",{children:"PCIe RX / TX"}),u.jsx("strong",{children:v.pcieRxMiBps===void 0?"—":`${v.pcieRxMiBps} / ${v.pcieTxMiBps??"—"} MiB/s`})]})]})]})]},v.index))}),u.jsxs("section",{className:"gpu-processes",children:[u.jsxs("div",{className:"gpu-processes-head",children:[u.jsxs("h3",{children:[o," 进程"]}),u.jsxs("span",{children:[((N=c.gpuProcesses)==null?void 0:N.length)??0," 个进程"]})]}),(w=c.gpuProcesses)!=null&&w.length?u.jsx("div",{className:"table-wrap",children:u.jsxs("table",{className:"process-table",children:[u.jsx("thead",{children:u.jsxs("tr",{children:[u.jsx("th",{children:o}),u.jsx("th",{children:"PID"}),u.jsx("th",{children:"用户"}),u.jsx("th",{children:"类型"}),u.jsx("th",{children:o}),u.jsx("th",{children:b}),u.jsx("th",{children:"CPU"}),u.jsx("th",{children:"主机内存"}),u.jsx("th",{children:"命令"})]})}),u.jsx("tbody",{children:c.gpuProcesses.map(v=>u.jsxs("tr",{children:[u.jsxs("td",{children:[o," ",v.device]}),u.jsx("td",{children:v.pid}),u.jsx("td",{children:v.user||"—"}),u.jsx("td",{children:v.type}),u.jsx("td",{children:v.gpuPercent===void 0?"—":`${v.gpuPercent}%`}),u.jsx("td",{children:v.gpuMemoryMiB===void 0?"—":`${v.gpuMemoryMiB} MiB`}),u.jsx("td",{children:v.cpuPercent===void 0?"—":`${v.cpuPercent}%`}),u.jsx("td",{children:v.hostMemoryMiB===void 0?"—":`${v.hostMemoryMiB} MiB`}),u.jsx("td",{className:"process-command",children:v.command})]},`${v.device}:${v.pid}`))})]})}):u.jsxs("p",{className:"gpu-no-process",children:["当前没有可显示的 ",o," 进程。"]})]})]});const y=c.gpu.slice(0,3);return u.jsxs("div",{className:"gpu-overview",children:[u.jsx("div",{className:"gpu-list",children:y.map((v,O)=>u.jsxs("div",{className:"gpu-item",children:[u.jsxs("div",{className:"gpu-summary-identity",children:[u.jsxs("span",{className:"gpu-index",children:[o," ",v.index,o==="NPU"&&v.cardId!==void 0?` · 物理卡 ${v.cardId} / 芯片 ${v.chipId}`:""]}),u.jsx("strong",{children:g0(v,v.index)})]}),u.jsxs("div",{className:"gpu-summary-meters",children:[u.jsx(bs,{label:`${o} ${v.index} 使用率`,value:v.utilization??0,detail:v.utilization===void 0?"—":`${v.utilization}%`}),u.jsx(bs,{label:`${o} ${v.index} ${b}`,value:v.totalMemory?(v.usedMemory??0)/v.totalMemory*100:0,detail:v.usedMemory===void 0||v.totalMemory===void 0?"—":`${v.usedMemory.toFixed(2)} / ${v.totalMemory.toFixed(2)} GiB`})]}),u.jsxs("div",{className:"gpu-summary-facts",children:[u.jsxs("span",{children:[u.jsx(hg,{size:13}),v.temperature===void 0?"—":`${v.temperature}°C`]}),u.jsx("span",{children:v.powerWatts===void 0?"功耗 —":`${v.powerWatts} / ${v.powerLimitWatts??"—"} W`}),o!=="NPU"&&u.jsx("span",{children:v.fanPercent===void 0?"风扇 —":`风扇 ${v.fanPercent}%`})]})]},v.index))}),c.gpu.length>y.length&&u.jsxs("div",{className:"gpu-more",children:["还有 ",c.gpu.length-y.length," 个 ",o,",点击卡片查看全部"]})]})}function Rg({run:c,onSelect:r,label:h}){var N,w;const o=c.progress!==void 0&&c.total?Math.round(c.progress/c.total*100):null,b=((N=c.description)==null?void 0:N.trim())||"—",y=(w=c.gpuIds)!=null&&w.length?`[${c.gpuIds.join(",")}]`:"—",T=`${c.progress===void 0?"—":c.progress.toFixed(1)} / ${c.total??"—"}`;return u.jsxs("tr",{className:r?"run-selectable":void 0,onClick:r?()=>r(c):void 0,children:[u.jsx("td",{className:"run-id","data-label":"运行编号",children:r?u.jsxs("button",{type:"button",className:"run-detail-trigger","aria-label":`查看 ${c.id}${c.kind==="tune"?" 参数搜索":" 的详情"}`,"aria-haspopup":c.kind==="tune"?void 0:"dialog",children:[c.id,c.kind==="tune"&&u.jsx("span",{className:"run-kind-badge",children:"Tune"}),u.jsx(tg,{size:15})]}):c.id}),u.jsx("td",{className:"run-description-cell","data-label":"实验说明",children:u.jsx("span",{className:`run-description${b==="—"?" missing":""}`,title:b==="—"?"该实验没有记录说明":b,children:b})}),u.jsx("td",{"data-label":h,children:u.jsx("span",{className:"run-gpu-pill",title:y==="—"?`未分配 ${h} 或没有记录`:`${h} 设备 ${y}`,children:y})}),u.jsx("td",{"data-label":"状态",children:u.jsx("span",{className:`run-status run-${c.status.toLowerCase()}`,children:_f[c.status]??c.status})}),u.jsxs("td",{className:"progress-column","data-label":"进度",children:[u.jsxs("span",{children:[T,c.progressUnit==="trials"?" trials":""]}),o!==null&&u.jsx("div",{className:"table-progress",children:u.jsx("span",{style:{width:`${Math.min(100,o)}%`}})})]}),u.jsx("td",{className:"run-submitted","data-label":"提交时间",children:G0(c.submitted)})]})}function p0({server:c,runs:r,expanded:h=!1,onSelect:o}){const b=Sf(c);return c.platform!=="available"?u.jsxs("div",{className:"empty-state",children:[u.jsx(Es,{size:23}),u.jsx("strong",{children:"实验平台尚未就绪"}),u.jsx("span",{children:c.platformMessage||"正在确认此节点的实验平台状态"}),!c.platformState&&u.jsx(Ts,{text:c.platformDiagnostic})]}):r.length?h?u.jsx(Mg,{deviceLabel:b,runs:r,renderRow:y=>u.jsx(Rg,{label:b,run:y,onSelect:o},y.id)}):u.jsx("div",{className:"runs-preview-list",children:r.slice(0,3).map(y=>{var T;return u.jsxs("button",{type:"button",className:"runs-preview-row",onClick:N=>{N.stopPropagation(),o==null||o(y)},onKeyDown:N=>N.stopPropagation(),"aria-label":`查看 ${y.id}${y.kind==="tune"?" 参数搜索":" 实验详情"}`,children:[u.jsxs("div",{className:"runs-preview-top",children:[u.jsxs("strong",{children:[y.id,y.kind==="tune"&&u.jsx("span",{className:"run-kind-badge",children:"Tune"})]}),u.jsx("span",{className:`run-status run-${y.status.toLowerCase()}`,children:_f[y.status]??y.status})]}),u.jsx("span",{className:`runs-preview-desc${y.description?"":" missing"}`,title:y.description||"该实验没有记录说明",children:y.description||"—"}),u.jsxs("div",{className:"runs-preview-meta",children:[u.jsxs("span",{children:[b," ",(T=y.gpuIds)!=null&&T.length?`[${y.gpuIds.join(",")}]`:"—"]}),u.jsxs("span",{children:[y.progressUnit==="trials"?"Trials":"样本"," ",y.progress===void 0?"—":y.progress.toFixed(1)," / ",y.total??"—"]}),u.jsxs("span",{className:"runs-preview-submitted",children:["提交 ",G0(y.submitted)]})]})]},y.id)})}):u.jsxs("div",{className:"empty-state",children:[u.jsx(Es,{size:23}),u.jsx("strong",{children:"暂无实验记录"}),u.jsx("span",{children:"此节点尚未提交实验"})]})}const b0=[{title:"实验",keys:["description","research_topic","study","stage","run_id","project","version","experiment_name","status","target_node","environment","seed","run_kind","progress_unit","progress","total_samples","remaining_samples","remaining_trials","allocated_gpu_ids"]},{title:"时间与调度",keys:["submitted_at","started_at","finished_at","wait_reason","pid","python_executable"]},{title:"结果与诊断",keys:["evaluation","analysis_scripts_configured","error_message","prev_run_id","git_commit","run_dir","log","results"]}],Ug={research_topic:"研究方向",study:"研究问题",stage:"实验阶段",run_kind:"任务类型",progress_unit:"进度单位",remaining_trials:"剩余 trials",description:"实验说明",run_id:"运行编号",project:"项目",version:"版本",experiment_name:"实验名称",status:"状态",target_node:"计算节点",environment:"实验环境",seed:"随机种子",progress:"已处理样本",total_samples:"预计总样本",remaining_samples:"预计剩余样本",allocated_gpu_ids:"分配的算力卡",submitted_at:"提交时间",started_at:"开始时间",finished_at:"结束时间",wait_reason:"等待原因",pid:"进程号",python_executable:"Python 解释器",evaluation:"评测",analysis_scripts_configured:"分析脚本",error_message:"错误原因",prev_run_id:"前一次运行",git_commit:"Git 提交",run_dir:"运行目录",log:"日志路径",results:"结果目录"};function wg({fields:c,label:r}){const h={description:"—",total_samples:"—",allocated_gpu_ids:"—",...c},o=new Set(b0.flatMap(y=>y.keys)),b=[...b0.map(y=>({title:y.title,entries:y.keys.filter(T=>h[T]).map(T=>[T,h[T]])})),{title:"其他信息",entries:Object.entries(h).filter(([y])=>!o.has(y))}];return u.jsx("div",{className:"run-detail-groups",children:b.filter(y=>y.entries.length).map(y=>u.jsxs("section",{className:"run-detail-group",children:[u.jsx("h3",{children:y.title}),u.jsx("dl",{children:y.entries.map(([T,N])=>u.jsxs("div",{className:`run-detail-field${T==="description"?" run-detail-description":""}`,children:[u.jsx("dt",{children:T==="allocated_gpu_ids"?`分配的 ${r}`:Ug[T]??T.replaceAll("_"," ")}),u.jsx("dd",{children:Z1(T,N)})]},T))})]},y.title))})}function Hg({alias:c,run:r,onClose:h,onUpdated:o,label:b}){const y=A.useRef(null),T=A.useRef(null),[N,w]=A.useState(),[v,O]=A.useState(""),[d,B]=A.useState(0),V=(N==null?void 0:N.fields.status)||r.status,tt=(N==null?void 0:N.fields.project)||r.project,lt=(N==null?void 0:N.fields.version)||r.version,K=(N==null?void 0:N.fields.experiment_name)||r.experiment||r.id,k=(N!=null&&N.fields.description&&N.fields.description!=="—"?N.fields.description:r.description)||K;return A.useEffect(()=>{var C;const F=document.activeElement instanceof HTMLElement?document.activeElement:null;(C=T.current)==null||C.focus();const G=W=>{var it;if(W.key==="Escape"&&(W.preventDefault(),h()),W.key!=="Tab")return;const nt=[...((it=y.current)==null?void 0:it.querySelectorAll("button:not([disabled]), summary, select, input, a[href]"))??[]];if(!nt.length)return;const U=nt[0],Y=nt[nt.length-1];W.shiftKey&&document.activeElement===U?(W.preventDefault(),Y.focus()):!W.shiftKey&&document.activeElement===Y&&(W.preventDefault(),U.focus())};return document.addEventListener("keydown",G),()=>{document.removeEventListener("keydown",G),F==null||F.focus()}},[h]),A.useEffect(()=>{const F=new AbortController;return w(void 0),O(""),Ne.runDetails(c,r.id,F.signal).then(w).catch(G=>{F.signal.aborted||O(G instanceof Error?G.message:"实验详情读取失败")}),()=>F.abort()},[c,r.id,d]),u.jsx("div",{className:"run-detail-overlay",onMouseDown:F=>{F.target===F.currentTarget&&h()},children:u.jsxs("aside",{ref:y,className:"run-detail-drawer",role:"dialog","aria-modal":"true","aria-label":`${r.id} 实验详情`,children:[u.jsxs("div",{className:"run-detail-head",children:[u.jsxs("div",{children:[u.jsxs("span",{className:"eyebrow",children:[c," · ",r.id,tt&&lt?` · ${tt}/${lt}`:""]}),u.jsx("h2",{title:k,children:k}),u.jsx("span",{className:`run-status run-${V.toLowerCase()}`,children:_f[V]??V})]}),u.jsxs("div",{className:"run-detail-actions",children:[u.jsx("button",{type:"button",onClick:()=>B(F=>F+1),"aria-label":"刷新实验详情",title:"刷新详情",children:u.jsx(Os,{size:17})}),u.jsx("button",{ref:T,type:"button",onClick:h,"aria-label":"关闭实验详情",title:"关闭详情",children:u.jsx(As,{size:19})})]})]}),u.jsxs("div",{className:"run-detail-body","aria-busy":!N&&!v,children:[u.jsx(O0,{alias:c,runId:r.id,onUpdated:F=>{w(F),O(""),o(c,F)}}),v?u.jsxs("div",{className:"run-detail-error",children:[u.jsx(Xa,{title:"详情读取失败",message:v}),u.jsx("button",{type:"button",className:"back-button",onClick:()=>B(F=>F+1),children:"重试"})]}):N?u.jsx(wg,{label:b,fields:N.fields}):u.jsxs("div",{className:"run-detail-loading",role:"status","aria-label":"正在读取实验详情",children:[u.jsx(Tl,{className:"run-detail-skeleton-title"}),Array.from({length:8},(F,G)=>u.jsx(Tl,{className:"run-detail-skeleton-line"},G))]})]})]})})}function Bg(){var ul,Ka,Ja,Vi,Zn;const c=A.useRef(null),r=new URLSearchParams(window.location.search).get("server")||"",h=new URLSearchParams(window.location.search).get("view"),[o,b]=A.useState(()=>window.localStorage.getItem("rexp-hub-sidebar-collapsed")==="1"),[y,T]=A.useState(()=>!document.hidden),[N,w]=A.useState([]),[v,O]=A.useState(r),[d,B]=A.useState(h==="tune"?"tune":h==="runs"?"runs":null),[V,tt]=A.useState(()=>"Notification"in window?Notification.permission:"unsupported"),[lt,K]=A.useState(()=>window.localStorage.getItem("rexp-hub-notifications-enabled")==="1"),[k,F]=A.useState(""),[G,C]=A.useState(!1),[W,nt]=A.useState(""),[U,Y]=A.useState({}),[it,St]=A.useState({}),[Tt,J]=A.useState({}),[ot,Wt]=A.useState({}),[Dt,x]=A.useState({}),[L,X]=A.useState({}),[ct,ut]=A.useState({}),[zt,kt]=A.useState({}),[Pt,p]=A.useState({}),[q,I]=A.useState({}),[at,jt]=A.useState({}),[vt,Nt]=A.useState(null),P=A.useCallback(()=>Nt(null),[]),[rt,_e]=A.useState(""),[Xl,Je]=A.useState({}),Vt=N.find(Q=>Q.alias===v)??N[0],Zt=Vt?Dt[Vt.alias]??[]:[],H=Vt&&{...Vt,acceleratorBackend:U[Vt.alias]??Vt.acceleratorBackend,gpu:it[Vt.alias],gpuProcesses:Tt[Vt.alias],platform:L[Vt.alias]??"unknown",platformMessage:(ul=q[Vt.alias])==null?void 0:ul.message,platformDiagnostic:(Ka=q[Vt.alias])==null?void 0:Ka.diagnostic,platformState:(Ja=q[Vt.alias])==null?void 0:Ja.platformState,running:Zt.filter(Q=>Q.status==="RUNNING").length,queued:Zt.filter(Q=>Q.status==="PENDING"||Q.status==="WAITING_FOR_RESOURCE").length},Ft=Sf(H),$e=N.map(Q=>{var Lt;const pt=Dt[Q.alias]??[];return{...Q,acceleratorBackend:U[Q.alias]??Q.acceleratorBackend,state:pt.some(mt=>mt.status==="RUNNING")?"busy":Q.state,platform:L[Q.alias]??"unknown",platformState:(Lt=q[Q.alias])==null?void 0:Lt.platformState,running:pt.filter(mt=>mt.status==="RUNNING").length,queued:pt.filter(mt=>mt.status==="PENDING"||mt.status==="WAITING_FOR_RESOURCE").length}}),ce=!!H&&Object.hasOwn(it,H.alias),dt=!!H&&Object.hasOwn(Dt,H.alias);A.useEffect(()=>{const Q=()=>T(!document.hidden);return document.addEventListener("visibilitychange",Q),()=>document.removeEventListener("visibilitychange",Q)},[]);const il=()=>b(Q=>(window.localStorage.setItem("rexp-hub-sidebar-collapsed",Q?"0":"1"),!Q)),Ql=async()=>{if(!("Notification"in window)){F("当前浏览器不支持系统通知");return}if(lt){window.localStorage.setItem("rexp-hub-notifications-enabled","0"),K(!1);return}let Q=Notification.permission;if(Q==="default"&&(Q=await Notification.requestPermission()),tt(Q),Q!=="granted"){F("浏览器未授权通知,可在网站设置中重新开启");return}try{await o0(),await Ne.notificationState(),window.localStorage.setItem("rexp-hub-notifications-enabled","1"),F(""),K(!0)}catch(pt){F(pt instanceof Error?pt.message:"通知连接失败")}};A.useEffect(()=>{if(!lt||V!=="granted")return;let Q,pt=!0;return(async()=>{try{const mt=await o0(),xt=(await Ne.notificationState()).cursor;if(!pt)return;Q=new EventSource(Ne.notificationEventsUrl(xt)),Q.addEventListener("transition",Mt=>{const Kt=JSON.parse(Mt.data);(async()=>{if(Notification.permission!=="granted")return;const{title:fe,body:Zi}=Og(Kt),$a=`/?server=${encodeURIComponent(Kt.alias)}&view=runs`,Ki={body:Zi,icon:"/icons/rexp-hub-192.png",tag:`rexp-${Kt.alias}-${Kt.runId}-${Kt.status}`,data:{url:$a}};if(await Ne.claimNotification(Kt.id)){if(mt!=null&&mt.active)try{await mt.showNotification(fe,Ki);return}catch(xa){if(typeof Notification!="function")throw xa}if(typeof Notification=="function"){const xa=new Notification(fe,Ki);xa.onclick=()=>{window.focus(),O(Kt.alias),B("runs"),xa.close()}}else throw new Error("当前浏览器无法显示系统通知")}})().catch(fe=>F(fe instanceof Error?fe.message:"系统通知发送失败"))}),Q.addEventListener("runs",Mt=>{try{const Kt=JSON.parse(Mt.data);x(fe=>({...fe,[Kt.alias]:Kt.runs})),X(fe=>({...fe,[Kt.alias]:Kt.available?"available":"unknown"})),I(fe=>({...fe,[Kt.alias]:{message:Kt.message,diagnostic:Kt.diagnostic,platformState:Kt.platformState}})),p(fe=>({...fe,[Kt.alias]:void 0}))}catch{}}),Q.addEventListener("monitor-status",Mt=>{try{const Kt=JSON.parse(Mt.data);jt(Kt.nodeErrors||{}),F(Kt.lastError?`实验监测暂时失败:${Kt.lastError}`:"")}catch{}}),Q.onerror=()=>F("通知连接中断,正在自动重连")}catch(mt){pt&&F(mt instanceof Error?mt.message:"通知连接失败")}})(),()=>{pt=!1,Q==null||Q.close()}},[lt,V]),A.useEffect(()=>{let Q=!0,pt=!1;const Lt=async()=>{if(!(document.hidden||pt)){pt=!0;try{const{servers:xt}=await Ne.servers();if(!Q)return;w(xt),O(Mt=>{var Kt;return xt.some(fe=>fe.alias===Mt)?Mt:((Kt=xt[0])==null?void 0:Kt.alias)??""}),nt("")}catch(xt){Q&&nt(xt instanceof Error?xt.message:"服务器列表读取失败")}finally{pt=!1,Q&&C(!0)}}};Lt();const mt=window.setInterval(Lt,3e3);return document.addEventListener("visibilitychange",Lt),window.addEventListener("focus",Lt),()=>{Q=!1,window.clearInterval(mt),document.removeEventListener("visibilitychange",Lt),window.removeEventListener("focus",Lt)}},[]),A.useEffect(()=>{if(!v||d==="servers")return;let Q=!0;const pt=async()=>{if(!document.hidden)try{const xt=await Ne.gpu(v,d==="gpu");if(!Q)return;xt.acceleratorBackend&&Y(Mt=>({...Mt,[v]:xt.acceleratorBackend})),St(Mt=>({...Mt,[v]:xt.gpus})),d==="gpu"&&(J(Mt=>({...Mt,[v]:xt.processes})),Wt(Mt=>({...Mt,[v]:xt.processError??""}))),Je(Mt=>d0(Mt,v,xt.gpus,xt.sampledAt)),ut(Mt=>({...Mt,[v]:""}))}catch(xt){Q&&ut(Mt=>({...Mt,[v]:xt instanceof Error?xt.message:"算力卡数据读取失败"}))}};pt();const Lt=zt[v]?5e3:d==="gpu"?2e4:null,mt=Lt===null?null:window.setInterval(pt,Lt);return document.addEventListener("visibilitychange",pt),()=>{Q=!1,mt!==null&&window.clearInterval(mt),document.removeEventListener("visibilitychange",pt)}},[v,d,zt[v]]),A.useEffect(()=>{if(!v||d==="servers"||!y||zt[v])return;const Q=v,pt=new EventSource(Ne.gpuStreamUrl(Q));return pt.addEventListener("sample",Lt=>{try{const mt=JSON.parse(Lt.data);mt.acceleratorBackend&&Y(xt=>({...xt,[Q]:mt.acceleratorBackend})),St(xt=>({...xt,[Q]:mt.gpus})),Je(xt=>d0(xt,Q,mt.gpus,mt.sampledAt)),ut(xt=>({...xt,[Q]:""}))}catch{}}),pt.addEventListener("stream-error",Lt=>{try{const mt=JSON.parse(Lt.data);kt(xt=>({...xt,[Q]:mt.error}))}catch{kt(mt=>({...mt,[Q]:"流式采样失败"}))}pt.close()}),pt.onerror=()=>{kt(Lt=>({...Lt,[Q]:"流式连接中断,已改用定时刷新"})),pt.close()},()=>pt.close()},[v,d,y,zt[v]]),A.useEffect(()=>{if(!v||d==="servers")return;let Q=!0;const pt=async()=>{if(!document.hidden)try{const mt=await Ne.runs(v);if(!Q)return;x(xt=>({...xt,[v]:mt.runs})),X(xt=>({...xt,[v]:mt.available?"available":"unknown"})),I(xt=>({...xt,[v]:{message:mt.message,diagnostic:mt.diagnostic,platformState:mt.platformState}})),p(xt=>({...xt,[v]:void 0}))}catch(mt){Q&&p(xt=>({...xt,[v]:mt instanceof Xt?mt:new Xt("实验数据暂时无法读取,稍后会自动重试。",String(mt))}))}};pt();const Lt=window.setInterval(pt,2e4);return document.addEventListener("visibilitychange",pt),()=>{Q=!1,window.clearInterval(Lt),document.removeEventListener("visibilitychange",pt)}},[v,d]);const Va=Q=>{P(),_e(""),O(Q),B(null),c.current&&(c.current.scrollTop=0)},ve=Q=>{Q!==d&&(P(),B(Q),c.current&&(c.current.scrollTop=0))},Za=Q=>{H&&(Q.kind==="tune"?(_e(Q.id),ve("tune")):Nt({alias:H.alias,run:Q}))},Vn=(Q,pt)=>{(Q.key==="Enter"||Q.key===" ")&&(Q.preventDefault(),ve(pt))};return u.jsxs("div",{className:`app-shell${o?" sidebar-collapsed":""}`,children:[u.jsxs("aside",{className:"sidebar",id:"node-sidebar","aria-label":"侧边栏",children:[u.jsxs("div",{className:"brand",children:[u.jsx("span",{className:"brand-symbol",children:u.jsx(P1,{size:20,strokeWidth:2.1})}),u.jsxs("div",{children:[u.jsx("strong",{children:"REXP Hub"}),u.jsx("small",{children:"实验节点工作台"})]})]}),u.jsxs("div",{className:"sidebar-node-picker",children:[u.jsxs("div",{className:"sidebar-section-head",children:[u.jsx("span",{children:"SSH 服务器"}),u.jsx("button",{type:"button",onClick:()=>ve("servers"),"aria-label":"查看 SSH 服务器详情",children:u.jsx(Ms,{size:16})})]}),G?$e.length?u.jsx(y0,{servers:$e,selectedAlias:(H==null?void 0:H.alias)||"",onSelect:Va}):u.jsx("div",{className:"sidebar-empty",children:W||"尚未配置 SSH 节点"}):u.jsx(mf,{})]}),u.jsxs("nav",{className:"node-navigation","aria-label":"当前服务器功能",children:[u.jsxs("div",{className:"sidebar-group-label",children:["当前服务器",u.jsx("strong",{title:H==null?void 0:H.alias,children:(H==null?void 0:H.alias)||"请先选择服务器"})]}),u.jsxs("button",{className:`nav-item ${d===null?"active":""}`,type:"button",onClick:()=>ve(null),children:[u.jsx(ag,{size:17}),"节点总览"]}),u.jsxs("button",{className:`nav-item ${d==="runs"?"active":""}`,type:"button",onClick:()=>ve("runs"),children:[u.jsx(Es,{size:17}),"实验记录"]}),u.jsxs("button",{className:`nav-item ${d==="tune"?"active":""}`,type:"button",onClick:()=>ve("tune"),children:[u.jsx(Qi,{size:17}),"参数搜索"]}),u.jsxs("button",{className:`nav-item ${d==="gpu"?"active":""}`,type:"button",onClick:()=>ve("gpu"),children:[u.jsx(yf,{size:17}),"资源监控"]})]}),u.jsxs("div",{className:"sidebar-foot",children:[u.jsx("span",{className:"foot-light"}),"SSH-MCP · 实时数据"]})]}),u.jsxs("main",{className:"main",children:[u.jsxs("header",{className:"topbar",children:[u.jsxs("div",{className:"topbar-path",children:[u.jsx("button",{className:"sidebar-toggle",type:"button",onClick:il,"aria-controls":"node-sidebar","aria-label":o?"展开侧边栏":"收起侧边栏","aria-expanded":!o,title:o?"展开侧边栏":"收起侧边栏",children:o?u.jsx(sg,{size:18}):u.jsx(ug,{size:18})}),u.jsx("span",{className:"topbar-node",title:H==null?void 0:H.alias,children:d==="servers"?"全部服务器":(H==null?void 0:H.alias)||"节点工作台"}),u.jsx("span",{className:"path-divider",children:"/"}),u.jsx("strong",{children:d?{gpu:`${Ft} 资源`,runs:"实验运行",servers:"SSH 服务器",tune:"参数搜索"}[d]:"总览"})]}),u.jsxs("div",{className:"topbar-actions",children:[u.jsx(Ag,{}),u.jsxs("button",{className:`notification-toggle${lt&&V==="granted"?" enabled":""}`,type:"button",onClick:()=>void Ql(),title:k||(lt?"关闭实验通知":"开启实验完成与故障通知"),"aria-pressed":lt&&V==="granted",children:[lt?u.jsx(W1,{size:16}):u.jsx(F1,{size:16}),u.jsx("span",{children:V==="unsupported"?"通知不可用":V==="denied"?"通知已阻止":lt?"通知已开启":"开启通知"})]}),u.jsxs("span",{className:"preview-pill",children:[u.jsx("span",{}),"SSH 已接入"]})]})]}),k&&u.jsx("div",{className:"notification-error",role:"status",children:k}),u.jsxs("div",{className:"content-scroll",ref:c,children:[H&&at[H.alias]&&u.jsxs("div",{className:"node-monitor-error",role:"status",children:[u.jsxs("strong",{children:[H.alias," · 实验监测暂不可用"]}),u.jsx("span",{children:at[H.alias].message}),u.jsx(Ts,{text:at[H.alias].details})]}),H?d?u.jsxs("div",{className:"detail-page",children:[u.jsxs("button",{className:"back-button",type:"button",onClick:()=>ve(null),children:[u.jsx(k1,{size:16}),"返回总览"]}),u.jsx("div",{className:"page-title",children:u.jsxs("div",{children:[u.jsx("span",{className:"eyebrow",children:H.alias}),u.jsx("h1",{children:d==="tune"?"参数搜索":d==="gpu"?`${Ft} 资源`:d==="runs"?"实验运行":"SSH 服务器"}),u.jsx("p",{children:d==="tune"?"比较参数与结果,找到值得继续的方向。":d==="gpu"?Ft==="NPU"?"通过 npu-smi 查看每个逻辑 NPU 的负载、HBM 内存与温度。":"通过 nvidia-smi 查看每张 GPU 的负载与显存。":d==="runs"?"跟进当前任务,检索历史结果,管理实验运行。":"在节点间切换,查看连接和工作状态。"})]})}),d==="gpu"&&u.jsxs(u.Fragment,{children:[u.jsx(gg,{alias:H.alias},`scheduler-${H.alias}`),u.jsx(yg,{alias:H.alias},H.alias)]}),u.jsx("section",{className:"glass-panel detail-panel","aria-busy":d==="tune"?!1:d==="servers"?!G:d==="gpu"?!ce&&!ct[H.alias]:!dt&&!Pt[H.alias],children:d==="tune"?u.jsx(f0,{deviceLabel:Ft,alias:H.alias,expanded:!0,initialRunId:rt},H.alias):d==="gpu"?ce?u.jsx(x0,{server:H,expanded:!0,history:Xl[H.alias]}):ct[H.alias]?u.jsx(Xa,{title:`${Ft} 读取失败`,message:ct[H.alias]}):u.jsx(h0,{expanded:!0,count:H.gpuCount}):d==="runs"?dt?u.jsx(p0,{server:H,runs:Zt,expanded:!0,onSelect:Za},H.alias):Pt[H.alias]?u.jsx(Xa,{title:"实验记录读取失败",message:Pt[H.alias]||"实验数据暂时无法读取"}):u.jsx(m0,{expanded:!0}):G?u.jsx(y0,{servers:$e,selectedAlias:v,onSelect:Va,detailed:!0}):u.jsx(mf,{detailed:!0})}),d==="gpu"&&ce&&u.jsxs("div",{className:"detail-note",children:[u.jsx(Qi,{size:15}),zt[H.alias]?"流式采样不可用,已改用约 5 秒刷新。":Ft==="NPU"?"NPU 采样完成后间隔 2 秒继续;实际频率取决于远端查询耗时。页面隐藏时暂停。":"GPU 约每 2 秒采样;页面隐藏时暂停。",ct[H.alias]&&` 最近一次更新失败:${ct[H.alias]}`]}),d==="gpu"&&zt[H.alias]&&u.jsxs("div",{className:"detail-note",children:[zt[H.alias]," ",u.jsx("button",{className:"retry-link",type:"button",onClick:()=>kt(Q=>({...Q,[H.alias]:""})),children:"重试流式采样"})]}),d==="gpu"&&ot[H.alias]&&u.jsxs("div",{className:"detail-note",children:["进程信息暂不可用:",ot[H.alias]]}),d==="runs"&&dt&&Pt[H.alias]&&u.jsxs("div",{className:"node-monitor-error",children:[u.jsx("span",{children:(Vi=Pt[H.alias])==null?void 0:Vi.message}),u.jsx(Ts,{text:(Zn=Pt[H.alias])==null?void 0:Zn.details})]})]}):u.jsxs("div",{className:"dashboard",children:[u.jsxs("div",{className:"page-title",children:[u.jsxs("div",{children:[u.jsx("span",{className:"eyebrow",children:"当前节点"}),u.jsx("h1",{children:H.alias}),u.jsx("p",{children:vg({hardware:ce?bf(H):void 0,hardwareError:!!ct[H.alias],runsReady:dt,platformAvailable:H.platform==="available",platformMessage:H.platformMessage,runError:!!Pt[H.alias],running:H.running??0})})]}),u.jsxs("div",{className:"node-overview-actions",children:[u.jsxs("button",{type:"button",className:"device-policy-entry",onClick:()=>ve("gpu"),children:[u.jsx(_0,{size:16}),"可用卡设置"]}),u.jsx(L0,{state:H.state})]})]}),u.jsxs("div",{className:"dashboard-grid",children:[u.jsxs("section",{className:"glass-panel gpu-card clickable-panel",role:"button",tabIndex:0,"aria-label":`查看 ${Ft} 资源详情`,"aria-busy":!ce&&!ct[H.alias],onClick:()=>ve("gpu"),onKeyDown:Q=>Vn(Q,"gpu"),children:[u.jsx(v0,{icon:u.jsx(yf,{size:18}),title:`${Ft} 资源`,subtitle:ce?`即时采样 · ${bf(H)}`:"正在读取"}),ce?u.jsx(x0,{server:H}):ct[H.alias]?u.jsx(Xa,{title:`${Ft} 读取失败`,message:ct[H.alias]}):u.jsx(h0,{count:H.gpuCount})]}),u.jsxs("section",{className:"glass-panel run-card clickable-panel",role:"button",tabIndex:0,"aria-label":"查看实验运行详情","aria-busy":!dt&&!Pt[H.alias],onClick:()=>ve("runs"),onKeyDown:Q=>Vn(Q,"runs"),children:[u.jsx(v0,{icon:u.jsx(Es,{size:18}),title:"实验运行",subtitle:dt?H.platform==="available"?`Platform · ${Zt.length} 条记录`:"Platform · 尚未就绪":Pt[H.alias]?"Platform · 暂不可用":"Platform · 正在读取"}),dt?u.jsx(p0,{server:H,runs:Zt,onSelect:Za},H.alias):Pt[H.alias]?u.jsx(Xa,{title:"实验记录读取失败",message:Pt[H.alias]||"实验数据暂时无法读取"}):u.jsx(m0,{})]}),u.jsx(f0,{deviceLabel:Ft,alias:H.alias,onExpand:()=>ve("tune")},H.alias)]})]}):u.jsx("div",{className:"glass-panel detail-panel startup-panel",children:W?u.jsx(Xa,{title:"无法读取服务器",message:W}):G?u.jsx(Xa,{title:"没有可用的服务器",message:"请在本机 SSH-MCP 配置中启用至少一个节点"}):u.jsx(mf,{detailed:!0})})]})]}),vt&&(H==null?void 0:H.alias)===vt.alias&&u.jsx(Hg,{label:Ft,alias:vt.alias,run:vt.run,onClose:P,onUpdated:(Q,pt)=>x(Lt=>({...Lt,[Q]:(Lt[Q]||[]).map(mt=>mt.id===pt.fields.run_id?{...mt,status:pt.fields.status}:mt)}))},`${vt.alias}/${vt.run.id}`)]})}V1.createRoot(document.getElementById("root")).render(u.jsx(B1.StrictMode,{children:u.jsx(Bg,{})}));