(function(){const p=document.createElement("link").relList;if(p&&p.supports&&p.supports("modulepreload"))return;for(const A of document.querySelectorAll('link[rel="modulepreload"]'))o(A);new MutationObserver(A=>{for(const q of A)if(q.type==="childList")for(const nl of q.addedNodes)nl.tagName==="LINK"&&nl.rel==="modulepreload"&&o(nl)}).observe(document,{childList:!0,subtree:!0});function N(A){const q={};return A.integrity&&(q.integrity=A.integrity),A.referrerPolicy&&(q.referrerPolicy=A.referrerPolicy),A.crossOrigin==="use-credentials"?q.credentials="include":A.crossOrigin==="anonymous"?q.credentials="omit":q.credentials="same-origin",q}function o(A){if(A.ep)return;A.ep=!0;const q=N(A);fetch(A.href,q)}})();function m0(b){return b&&b.__esModule&&Object.prototype.hasOwnProperty.call(b,"default")?b.default:b}var zs={exports:{}},an={};/** * @license React * react-jsx-runtime.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var l0;function ry(){if(l0)return an;l0=1;var b=Symbol.for("react.transitional.element"),p=Symbol.for("react.fragment");function N(o,A,q){var nl=null;if(q!==void 0&&(nl=""+q),A.key!==void 0&&(nl=""+A.key),"key"in A){q={};for(var ll in A)ll!=="key"&&(q[ll]=A[ll])}else q=A;return A=q.ref,{$$typeof:b,type:o,key:nl,ref:A!==void 0?A:null,props:q}}return an.Fragment=p,an.jsx=N,an.jsxs=N,an}var t0;function vy(){return t0||(t0=1,zs.exports=ry()),zs.exports}var E=vy(),_s={exports:{}},L={};/** * @license React * react.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var e0;function hy(){if(e0)return L;e0=1;var b=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),N=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),nl=Symbol.for("react.context"),ll=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),J=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),B=Symbol.for("react.view_transition"),Z=Symbol.iterator;function El(d){return d===null||typeof d!="object"?null:(d=Z&&d[Z]||d["@@iterator"],typeof d=="function"?d:null)}var wl={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vl=Object.assign,kl={};function nt(d,_,H){this.props=d,this.context=_,this.refs=kl,this.updater=H||wl}nt.prototype.isReactComponent={},nt.prototype.setState=function(d,_){if(typeof d!="object"&&typeof d!="function"&&d!=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,d,_,"setState")},nt.prototype.forceUpdate=function(d){this.updater.enqueueForceUpdate(this,d,"forceUpdate")};function Ke(){}Ke.prototype=nt.prototype;function Bt(d,_,H){this.props=d,this.context=_,this.refs=kl,this.updater=H||wl}var qt=Bt.prototype=new Ke;qt.constructor=Bt,vl(qt,nt.prototype),qt.isPureReactComponent=!0;var it=Array.isArray;function W(){}var il={H:null,A:null,T:null,S:null},Gt=Object.prototype.hasOwnProperty;function bt(d,_,H){var Y=H.ref;return{$$typeof:b,type:d,key:_,ref:Y!==void 0?Y:null,props:H}}function Tt(d,_){return bt(d.type,_,d.props)}function ct(d){return typeof d=="object"&&d!==null&&d.$$typeof===b}function ye(d){var _={"=":"=0",":":"=2"};return"$"+d.replace(/[=:]/g,function(H){return _[H]})}var Je=/\/+/g;function Cl(d,_){return typeof d=="object"&&d!==null&&d.key!=null?ye(""+d.key):_.toString(36)}function O(d){switch(d.status){case"fulfilled":return d.value;case"rejected":throw d.reason;default:switch(typeof d.status=="string"?d.then(W,W):(d.status="pending",d.then(function(_){d.status==="pending"&&(d.status="fulfilled",d.value=_)},function(_){d.status==="pending"&&(d.status="rejected",d.reason=_)})),d.status){case"fulfilled":return d.value;case"rejected":throw d.reason}}throw d}function Q(d,_,H,Y,el){var ul=typeof d;(ul==="undefined"||ul==="boolean")&&(d=null);var cl=!1;if(d===null)cl=!0;else switch(ul){case"bigint":case"string":case"number":cl=!0;break;case"object":switch(d.$$typeof){case b:case p:cl=!0;break;case C:return cl=d._init,Q(cl(d._payload),_,H,Y,el)}}if(cl)return el=el(d),cl=Y===""?"."+Cl(d,0):Y,it(el)?(H="",cl!=null&&(H=cl.replace(Je,"$&/")+"/"),Q(el,_,H,"",function(le){return le})):el!=null&&(ct(el)&&(el=Tt(el,H+(el.key==null||d&&d.key===el.key?"":(""+el.key).replace(Je,"$&/")+"/")+cl)),_.push(el)),1;cl=0;var R=Y===""?".":Y+":";if(it(d))for(var V=0;V>>1,sl=O[yl];if(0>>1;ylA($e,X))dA(_,$e)?(O[yl]=_,O[d]=X,yl=d):(O[yl]=$e,O[Pt]=X,yl=Pt);else if(dA(_,X))O[yl]=_,O[d]=X,yl=d;else break l}}return Q}function A(O,Q){var X=O.sortIndex-Q.sortIndex;return X!==0?X:O.id-Q.id}if(b.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var q=performance;b.unstable_now=function(){return q.now()}}else{var nl=Date,ll=nl.now();b.unstable_now=function(){return nl.now()-ll}}var U=[],J=[],C=1,S=null,B=3,Z=!1,El=!1,wl=!1,vl=!1,kl=typeof setTimeout=="function"?setTimeout:null,nt=typeof clearTimeout=="function"?clearTimeout:null,Ke=typeof setImmediate<"u"?setImmediate:null;function Bt(O){for(var Q=N(J);Q!==null;){if(Q.callback===null)o(J);else if(Q.startTime<=O)o(J),Q.sortIndex=Q.expirationTime,p(U,Q);else break;Q=N(J)}}function qt(O){if(wl=!1,Bt(O),!El)if(N(U)!==null)El=!0,it||(it=!0,ct());else{var Q=N(J);Q!==null&&Cl(qt,Q.startTime-O)}}var it=!1,W=-1,il=5,Gt=-1;function bt(){return vl?!0:!(b.unstable_now()-GtO&&bt());){var yl=S.callback;if(typeof yl=="function"){S.callback=null,B=S.priorityLevel;var sl=yl(S.expirationTime<=O);if(O=b.unstable_now(),typeof sl=="function"){S.callback=sl,Bt(O),Q=!0;break t}S===N(U)&&o(U),Bt(O)}else o(U);S=N(U)}if(S!==null)Q=!0;else{var Dt=N(J);Dt!==null&&Cl(qt,Dt.startTime-O),Q=!1}}break l}finally{S=null,B=X,Z=!1}Q=void 0}}finally{Q?ct():it=!1}}}var ct;if(typeof Ke=="function")ct=function(){Ke(Tt)};else if(typeof MessageChannel<"u"){var ye=new MessageChannel,Je=ye.port2;ye.port1.onmessage=Tt,ct=function(){Je.postMessage(null)}}else ct=function(){kl(Tt,0)};function Cl(O,Q){W=kl(function(){O(b.unstable_now())},Q)}b.unstable_IdlePriority=5,b.unstable_ImmediatePriority=1,b.unstable_LowPriority=4,b.unstable_NormalPriority=3,b.unstable_Profiling=null,b.unstable_UserBlockingPriority=2,b.unstable_cancelCallback=function(O){O.callback=null},b.unstable_forceFrameRate=function(O){0>O||125yl?(O.sortIndex=X,p(J,O),N(U)===null&&O===N(J)&&(wl?(nt(W),W=-1):wl=!0,Cl(qt,X-yl))):(O.sortIndex=sl,p(U,O),El||Z||(El=!0,it||(it=!0,ct()))),O},b.unstable_shouldYield=bt,b.unstable_wrapCallback=function(O){var Q=B;return function(){var X=B;B=Q;try{return O.apply(this,arguments)}finally{B=X}}}})(ps)),ps}var n0;function gy(){return n0||(n0=1,xs.exports=yy()),xs.exports}var Os={exports:{}},Ll={};/** * @license React * react-dom.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var i0;function Sy(){if(i0)return Ll;i0=1;var b=As();function p(C){var S="https://react.dev/errors/"+C;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(b)}catch(p){console.error(p)}}return b(),Os.exports=Sy(),Os.exports}/** * @license React * react-dom-client.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var f0;function Ty(){if(f0)return nn;f0=1;var b=gy(),p=As(),N=by();function o(l){var t="https://react.dev/errors/"+l;if(1bu||(l.current=Qi[bu],Qi[bu]=null,bu--)}function Sl(l,t){bu++,Qi[bu]=l.current,l.current=t}var Xt=Qt(null),oa=Qt(null),ge=Qt(null),cn=Qt(null);function fn(l,t){switch(Sl(ge,t),Sl(oa,l),Sl(Xt,null),t.nodeType){case 9:case 11:l=(l=t.documentElement)&&(l=l.namespaceURI)?sr(l):0;break;default:if(l=t.tagName,t=t.namespaceURI)t=sr(t),l=or(t,l);else switch(l){case"svg":l=1;break;case"math":l=2;break;default:l=0}}Bl(Xt),Sl(Xt,l)}function Tu(){Bl(Xt),Bl(oa),Bl(ge)}function Xi(l){var t=l.memoizedState;t!==null&&(ca._currentValue=t.memoizedState,Sl(cn,l)),t=Xt.current;var e=or(t,l.type);t!==e&&(Sl(oa,l),Sl(Xt,e))}function sn(l){oa.current===l&&(Bl(Xt),Bl(oa)),cn.current===l&&(Bl(cn),ca._currentValue=le)}var Zi,Ms;function Se(l){if(Zi===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Zi=t&&t[1]||"",Ms=-1)":-1a||f[u]!==v[a]){var g=` `+f[u].replace(" at new "," at ");return l.displayName&&g.includes("")&&(g=g.replace("",l.displayName)),g}while(1<=u&&0<=a);break}}}finally{Vi=!1,Error.prepareStackTrace=e}return(e=l?l.displayName||l.name:"")?Se(e):""}function g0(l,t){switch(l.tag){case 26:case 27:case 5:return Se(l.type);case 16:return Se("Lazy");case 13:return l.child!==t&&t!==null?Se("Suspense Fallback"):Se("Suspense");case 19:return Se("SuspenseList");case 0:case 15:return Li(l.type,!1);case 11:return Li(l.type.render,!1);case 1:return Li(l.type,!0);case 31:return Se("Activity");case 30:return Se("ViewTransition");default:return""}}function Ds(l){try{var t="",e=null;do t+=g0(l,e),e=l,l=l.return;while(l);return t}catch(u){return` Error generating stack: `+u.message+` `+u.stack}}var wi=Object.prototype.hasOwnProperty,Ki=b.unstable_scheduleCallback,Ji=b.unstable_cancelCallback,S0=b.unstable_shouldYield,b0=b.unstable_requestPaint,ft=b.unstable_now,T0=b.unstable_getCurrentPriorityLevel,Us=b.unstable_ImmediatePriority,Cs=b.unstable_UserBlockingPriority,on=b.unstable_NormalPriority,E0=b.unstable_LowPriority,Rs=b.unstable_IdlePriority,z0=b.log,_0=b.unstable_setDisableYieldValue,da=null,st=null;function be(l){if(typeof z0=="function"&&_0(l),st&&typeof st.setStrictMode=="function")try{st.setStrictMode(da,l)}catch{}}var ot=Math.clz32?Math.clz32:p0,N0=Math.log,x0=Math.LN2;function p0(l){return l>>>=0,l===0?32:31-(N0(l)/x0|0)|0}var dn=256,mn=262144,rn=4194304;function We(l){var t=l&42;if(t!==0)return t;switch(l&-l){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 l&-l;case 262144:case 524288:case 1048576:case 2097152:return l&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return l&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return l}}function vn(l,t,e){var u=l.pendingLanes;if(u===0)return 0;var a=0,n=l.suspendedLanes,i=l.pingedLanes;l=l.warmLanes;var c=u&134217727;return c!==0?(u=c&~n,u!==0?a=We(u):(i&=c,i!==0?a=We(i):e||(e=c&~l,e!==0&&(a=We(e))))):(c=u&~n,c!==0?a=We(c):i!==0?a=We(i):e||(e=u&~l,e!==0&&(a=We(e)))),a===0?0:t!==0&&t!==a&&(t&n)===0&&(n=a&-a,e=t&-t,n>=e||n===32&&(e&4194048)!==0)?t:a}function ma(l,t){return(l.pendingLanes&~(l.suspendedLanes&~l.pingedLanes)&t)===0}function js(l,t){(t&8)!==0&&(t|=t&32);var e=l.entangledLanes;if(e!==0)for(l=l.entanglements,e&=t;0e;e++)t.push(l);return t}function ra(l,t){l.pendingLanes|=t,t!==268435456&&(l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0)}function A0(l,t,e,u,a,n){var i=l.pendingLanes;l.pendingLanes=e,l.suspendedLanes=0,l.pingedLanes=0,l.warmLanes=0,l.expiredLanes&=e,l.entangledLanes&=e,l.errorRecoveryDisabledLanes&=e,l.shellSuspendCounter=0;var c=l.entanglements,f=l.expirationTimes,v=l.hiddenUpdates;for(e=i&~e;0"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ac=!1;if(ue)try{var ga={};Object.defineProperty(ga,"passive",{get:function(){ac=!0}}),window.addEventListener("test",ga,ga),window.removeEventListener("test",ga,ga)}catch{ac=!1}var Te=null,nc=null,Tn=null;function ao(){if(Tn)return Tn;var l,t=nc,e=t.length,u,a="value"in Te?Te.value:Te.textContent,n=a.length;for(l=0;l=Ta),oo=" ",mo=!1;function ro(l,t){switch(l){case"keyup":return ov.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vo(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Mu=!1;function mv(l,t){switch(l){case"compositionend":return vo(t);case"keypress":return t.which!==32?null:(mo=!0,oo);case"textInput":return l=t.data,l===oo&&mo?null:l;default:return null}}function rv(l,t){if(Mu)return l==="compositionend"||!oc&&ro(l,t)?(l=ao(),Tn=nc=Te=null,Mu=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1"u")return null;try{return l.activeElement||l.body}catch{return l.body}}function zo(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function _o(l,t){var e=zo(l);l=0;for(var u;e;){if(e.nodeType===3){if(u=l+e.textContent.length,l<=t&&u>=t)return{node:e,offset:t-l};l=u}l:{for(;e;){if(e.nextSibling){e=e.nextSibling;break l}e=e.parentNode}e=void 0}e=zo(e)}}function No(l,t){return l&&t?l===t?!0:l&&l.nodeType===3?!1:t&&t.nodeType===3?No(l,t.parentNode):"contains"in l?l.contains(t):l.compareDocumentPosition?!!(l.compareDocumentPosition(t)&16):!1:!1}function xo(l){l=l!=null&&l.ownerDocument!=null&&l.ownerDocument.defaultView!=null?l.ownerDocument.defaultView:window;for(var t=rc(l.document);t instanceof l.HTMLIFrameElement;){try{var e=typeof t.contentWindow.location.href=="string"}catch{e=!1}if(e)l=t.contentWindow;else break;t=rc(l.document)}return t}function vc(l){var t=l&&l.nodeName&&l.nodeName.toLowerCase();return t&&(t==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||t==="textarea"||l.contentEditable==="true")}var Ev=ue&&"documentMode"in document&&11>=document.documentMode,Du=null,hc=null,Na=null,yc=!1;function po(l,t,e){var u=e.window===e?e.document:e.nodeType===9?e:e.ownerDocument;yc||Du==null||Du!==rc(u)||(u=Du,"selectionStart"in u&&vc(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),Na&&_a(Na,u)||(Na=u,u=xi(hc,"onSelect"),0>=i,a-=i,Vt=1<<32-ot(t)+a|e<G?(Dl=j,j=null):Dl=j.sibling;var tl=m(r,j,h[G],T);if(tl===null){j===null&&(j=Dl);break}l&&j&&tl.alternate===null&&t(r,j),s=n(tl,s,G),P===null?M=tl:P.sibling=tl,P=tl,j=Dl}if(G===h.length)return e(r,j),$&&ce(r,G),M;if(j===null){for(;GG?(Dl=j,j=null):Dl=j.sibling;var we=m(r,j,tl.value,T);if(we===null){j===null&&(j=Dl);break}l&&j&&we.alternate===null&&t(r,j),s=n(we,s,G),P===null?M=we:P.sibling=we,P=we,j=Dl}if(tl.done)return e(r,j),$&&ce(r,G),M;if(j===null){for(;!tl.done;G++,tl=h.next())tl=z(r,tl.value,T),tl!==null&&(s=n(tl,s,G),P===null?M=tl:P.sibling=tl,P=tl);return $&&ce(r,G),M}for(j=u(j);!tl.done;G++,tl=h.next())tl=y(j,r,G,tl.value,T),tl!==null&&(l&&(Dl=tl.alternate,Dl!==null&&j.delete(Dl.key===null?G:Dl.key)),s=n(tl,s,G),P===null?M=tl:P.sibling=tl,P=tl);return l&&j.forEach(function(my){return t(r,my)}),$&&ce(r,G),M}function K(r,s,h,T){if(typeof h=="object"&&h!==null&&h.type===Tt&&h.key===null&&h.props.ref===void 0&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case Gt:l:{for(var M=h.key;s!==null;){if(s.key===M){if(M=h.type,M===Tt){if(s.tag===7){e(r,s.sibling),T=a(s,h.props.children),pe(T,h),T.return=r,r=T;break l}}else if(s.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===sl&&fu(M)===s.type){e(r,s.sibling),T=a(s,h.props),pe(T,h),T.return=r,r=T;break l}e(r,s);break}else t(r,s);s=s.sibling}h.type===Tt?(T=tu(h.props.children,r.mode,T,h.key),pe(T,h),T.return=r,r=T):(T=Dn(h.type,h.key,h.props,null,r.mode,T),pe(T,h),T.return=r,r=T)}return i(r);case bt:l:{for(M=h.key;s!==null;){if(s.key===M)if(s.tag===4&&s.stateNode.containerInfo===h.containerInfo&&s.stateNode.implementation===h.implementation){e(r,s.sibling),T=a(s,h.children||[]),T.return=r,r=T;break l}else{e(r,s);break}else t(r,s);s=s.sibling}T=_c(h,r.mode,T),T.return=r,r=T}return i(r);case sl:return h=fu(h),K(r,s,h,T)}if(cl(h))return x(r,s,h,T);if(Y(h)){if(M=Y(h),typeof M!="function")throw Error(o(150));return h=M.call(h),D(r,s,h,T)}if(typeof h.then=="function")return K(r,s,Qn(h),T);if(h.$$typeof===Cl)return K(r,s,Yn(r,h),T);Xn(r,h)}return typeof h=="string"&&h!==""||typeof h=="number"||typeof h=="bigint"?(h=""+h,s!==null&&s.tag===6?(e(r,s.sibling),T=a(s,h),T.return=r,r=T):(e(r,s),T=zc(h,r.mode,T),T.return=r,r=T),i(r)):e(r,s)}return function(r,s,h,T){try{Da=0;var M=K(r,s,h,T);return Gu=null,M}catch(j){if(j===qu||j===qn)throw j;var P=Pl(29,j,null,r.mode);return P.lanes=T,P.return=r,P}finally{}}}var ou=Fo(!0),ko=Fo(!1),Oe=!1;function Rc(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jc(l,t){l=l.updateQueue,t.updateQueue===l&&(t.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,callbacks:null})}function Ae(l){return{lane:l,tag:0,payload:null,callback:null,next:null}}function Me(l,t,e){var u=l.updateQueue;if(u===null)return null;if(u=u.shared,(fl&2)!==0){var a=u.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),u.pending=t,t=Mn(l),jo(l,null,e),t}return An(l,u,t,e),Mn(l)}function Ua(l,t,e){if(t=t.updateQueue,t!==null&&(t=t.shared,(e&4194048)!==0)){var u=t.lanes;u&=l.pendingLanes,e|=u,t.lanes=e,Bs(l,e)}}function Hc(l,t){var e=l.updateQueue,u=l.alternate;if(u!==null&&(u=u.updateQueue,e===u)){var a=null,n=null;if(e=e.firstBaseUpdate,e!==null){do{var i={lane:e.lane,tag:e.tag,payload:e.payload,callback:null,next:null};n===null?a=n=i:n=n.next=i,e=e.next}while(e!==null);n===null?a=n=t:n=n.next=t}else a=n=t;e={baseState:u.baseState,firstBaseUpdate:a,lastBaseUpdate:n,shared:u.shared,callbacks:u.callbacks},l.updateQueue=e;return}l=e.lastBaseUpdate,l===null?e.firstBaseUpdate=t:l.next=t,e.lastBaseUpdate=t}var Yc=!1;function Ca(){if(Yc){var l=Bu;if(l!==null)throw l}}function Ra(l,t,e,u){Yc=!1;var a=l.updateQueue;Oe=!1;var n=a.firstBaseUpdate,i=a.lastBaseUpdate,c=a.shared.pending;if(c!==null){a.shared.pending=null;var f=c,v=f.next;f.next=null,i===null?n=v:i.next=v,i=f;var g=l.alternate;g!==null&&(g=g.updateQueue,c=g.lastBaseUpdate,c!==i&&(c===null?g.firstBaseUpdate=v:c.next=v,g.lastBaseUpdate=f))}if(n!==null){var z=a.baseState;i=0,g=v=f=null,c=n;do{var m=c.lane&-536870913,y=m!==c.lane;if(y?(I&m)===m:(u&m)===m){m!==0&&m===iu&&(Yc=!0),g!==null&&(g=g.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});l:{var x=l,D=c;m=t;var K=e;switch(D.tag){case 1:if(x=D.payload,typeof x=="function"){z=x.call(K,z,m);break l}z=x;break l;case 3:x.flags=x.flags&-65537|128;case 0:if(x=D.payload,m=typeof x=="function"?x.call(K,z,m):x,m==null)break l;z=W({},z,m);break l;case 2:Oe=!0}}m=c.callback,m!==null&&(l.flags|=64,y&&(l.flags|=8192),y=a.callbacks,y===null?a.callbacks=[m]:y.push(m))}else y={lane:m,tag:c.tag,payload:c.payload,callback:c.callback,next:null},g===null?(v=g=y,f=z):g=g.next=y,i|=m;if(c=c.next,c===null){if(c=a.shared.pending,c===null)break;y=c,c=y.next,y.next=null,a.lastBaseUpdate=y,a.shared.pending=null}}while(!0);g===null&&(f=z),a.baseState=f,a.firstBaseUpdate=v,a.lastBaseUpdate=g,n===null&&(a.shared.lanes=0),Ye|=i,l.lanes=i,l.memoizedState=z}}function Io(l,t){if(typeof l!="function")throw Error(o(191,l));l.call(t)}function Po(l,t){var e=l.callbacks;if(e!==null)for(l.callbacks=null,l=0;ln?n:8;var i=R.T,c={};c.types=i!==null?i.types:null,R.T=c,ef(l,!1,t,e);try{var f=a(),v=R.S;if(v!==null&&v(c,f),f!==null&&typeof f=="object"&&typeof f.then=="function"){var g=Cv(f,u);Ba(l,t,g,gt(l))}else Ba(l,t,u,gt(l))}catch(z){Ba(l,t,{then:function(){},status:"rejected",reason:z},gt())}finally{V.p=n,i!==null&&c.types!==null&&(i.types=c.types),R.T=i}}function qv(){}function lf(l,t,e,u){if(l.tag!==5)throw Error(o(476));var a=Ud(l).queue;Dd(l,a,t,le,e===null?qv:function(){return Cd(l),e(u)})}function Ud(l){var t=l.memoizedState;if(t!==null)return t;t={memoizedState:le,baseState:le,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:de,lastRenderedState:le},next:null};var e={};return t.next={memoizedState:e,baseState:e,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:de,lastRenderedState:e},next:null},l.memoizedState=t,l=l.alternate,l!==null&&(l.memoizedState=t),t}function Cd(l){var t=Ud(l);t.next===null&&(t=l.alternate.memoizedState),Ba(l,t.next.queue,{},gt())}function tf(){return Gl(ca)}function Rd(){return pl().memoizedState}function jd(){return pl().memoizedState}function Gv(l){for(var t=l.return;t!==null;){switch(t.tag){case 24:case 3:var e=gt();l=Ae(e);var u=Me(t,l,e);u!==null&&(ut(u,t,e),Ua(u,t,e)),t={cache:Mc()},l.payload=t;return}t=t.return}}function Qv(l,t,e){var u=gt();e={lane:u,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null},kn(l)?Yd(t,e):(e=Tc(l,t,e,u),e!==null&&(ut(e,l,u),Bd(e,t,u)))}function Hd(l,t,e){var u=gt();Ba(l,t,e,u)}function Ba(l,t,e,u){var a={lane:u,revertLane:0,gesture:null,action:e,hasEagerState:!1,eagerState:null,next:null};if(kn(l))Yd(t,a);else{var n=l.alternate;if(l.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null))try{var i=t.lastRenderedState,c=n(i,e);if(a.hasEagerState=!0,a.eagerState=c,mt(c,i))return An(l,t,a,0),gl===null&&On(),!1}catch{}finally{}if(e=Tc(l,t,a,u),e!==null)return ut(e,l,u),Bd(e,t,u),!0}return!1}function ef(l,t,e,u){if(u={lane:2,revertLane:Jf(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},kn(l)){if(t)throw Error(o(479))}else t=Tc(l,e,u,2),t!==null&&ut(t,l,2)}function kn(l){var t=l.alternate;return l===w||t!==null&&t===w}function Yd(l,t){Qu=Ln=!0;var e=l.pending;e===null?t.next=t:(t.next=e.next,e.next=t),l.pending=t}function Bd(l,t,e){if((e&4194048)!==0){var u=t.lanes;u&=l.pendingLanes,e|=u,t.lanes=e,Bs(l,e)}}var In={readContext:Gl,use:Jn,useCallback:Nl,useContext:Nl,useEffect:Nl,useImperativeHandle:Nl,useLayoutEffect:Nl,useInsertionEffect:Nl,useMemo:Nl,useReducer:Nl,useRef:Nl,useState:Nl,useDebugValue:Nl,useDeferredValue:Nl,useTransition:Nl,useSyncExternalStore:Nl,useId:Nl,useHostTransitionStatus:Nl,useFormState:Nl,useActionState:Nl,useOptimistic:Nl,useMemoCache:Nl,useCacheRefresh:Nl,useEffectEvent:Nl},qd={readContext:Gl,use:Jn,useCallback:function(l,t){return $l().memoizedState=[l,t===void 0?null:t],l},useContext:Gl,useEffect:Ed,useImperativeHandle:function(l,t,e){e=e!=null?e.concat([l]):null,Wn(4194308,4,xd.bind(null,t,l),e)},useLayoutEffect:function(l,t){return Wn(4194308,4,l,t)},useInsertionEffect:function(l,t){Wn(4,2,l,t)},useMemo:function(l,t){var e=$l();t=t===void 0?null:t;var u=l();if(du){be(!0);try{l()}finally{be(!1)}}return e.memoizedState=[u,t],u},useReducer:function(l,t,e){var u=$l();if(e!==void 0){var a=e(t);if(du){be(!0);try{e(t)}finally{be(!1)}}}else a=t;return u.memoizedState=u.baseState=a,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:a},u.queue=l,l=l.dispatch=Qv.bind(null,w,l),[u.memoizedState,l]},useRef:function(l){var t=$l();return l={current:l},t.memoizedState=l},useState:function(l){l=Wc(l);var t=l.queue,e=Hd.bind(null,w,t);return t.dispatch=e,[l.memoizedState,e]},useDebugValue:Ic,useDeferredValue:function(l,t){var e=$l();return Pc(e,l,t)},useTransition:function(){var l=Wc(!1);return l=Dd.bind(null,w,l.queue,!0,!1),$l().memoizedState=l,[!1,l]},useSyncExternalStore:function(l,t,e){var u=w,a=$l();if($){if(e===void 0)throw Error(o(407));e=e()}else{if(e=t(),gl===null)throw Error(o(349));(I&127)!==0||nd(u,t,e)}a.memoizedState=e;var n={value:e,getSnapshot:t};return a.queue=n,Ed(cd.bind(null,u,n,l),[l]),u.flags|=2048,Zu(9,{destroy:void 0},id.bind(null,u,n,e,t),null),e},useId:function(){var l=$l(),t=gl.identifierPrefix;if($){var e=Lt,u=Vt;e=(u&~(1<<32-ot(u)-1)).toString(32)+e,t="_"+t+"R_"+e,e=wn++,0<\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof u.is=="string"?i.createElement("select",{is:u.is}):i.createElement("select"),u.multiple?n.multiple=!0:u.size&&(n.size=u.size);break;default:n=typeof u.is=="string"?i.createElement(a,{is:u.is}):i.createElement(a)}}n[ql]=t,n[Il]=u;l:for(i=t.child;i!==null;){if(i.tag===5||i.tag===6)n.appendChild(i.stateNode);else if(i.tag!==4&&i.tag!==27&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break l;for(;i.sibling===null;){if(i.return===null||i.return===t)break l;i=i.return}i.sibling.return=i.return,i=i.sibling}t.stateNode=n;l:switch(Vl(n,a,u),a){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break l;case"img":u=!0;break l;default:u=!1}u&&re(t)}}return Tl(t),t.subtreeFlags&=-33554433,yf(t,t.type,l===null?null:l.memoizedProps,t.pendingProps,e),null;case 6:if(l&&t.stateNode!=null)l.memoizedProps!==u&&re(t);else{if(typeof u!="string"&&t.stateNode===null)throw Error(o(166));if(l=ge.current,Yu(t)){if(l=t.stateNode,e=t.memoizedProps,u=null,a=jl,a!==null)switch(a.tag){case 27:case 5:u=a.memoizedProps}l[ql]=t,l=!!(l.nodeValue===e||u!==null&&u.suppressHydrationWarning===!0||cr(l.nodeValue,e)),l||Ne(t,!0)}else l=Fa(l).createTextNode(u),l[ql]=t,t.stateNode=l}return Tl(t),null;case 31:if(e=t.memoizedState,l===null||l.memoizedState!==null){if(u=Yu(t),e!==null){if(l===null){if(!u)throw Error(o(318));if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(o(557));l[ql]=t}else eu(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Tl(t),l=!1}else e=pc(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=e),l=!0;if(!l)return t.flags&256?(rt(t),t):(rt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Tl(t),null;case 13:if(u=t.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(a=Yu(t),u!==null&&u.dehydrated!==null){if(l===null){if(!a)throw Error(o(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(o(317));a[ql]=t}else eu(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Tl(t),a=!1}else a=pc(),l!==null&&l.memoizedState!==null&&(l.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(rt(t),t):(rt(t),null)}return rt(t),(t.flags&128)!==0?(t.lanes=e,t):(e=u!==null,l=l!==null&&l.memoizedState!==null,e&&(u=t.child,a=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(a=u.alternate.memoizedState.cachePool.pool),n=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(n=u.memoizedState.cachePool.pool),n!==a&&(u.flags|=2048)),e!==l&&e&&(t.child.flags|=8192),ai(t,t.updateQueue),Tl(t),null);case 4:return Tu(),l===null&&kf(t.stateNode.containerInfo),t.flags|=67108864,Tl(t),null;case 10:return se(t.type),Tl(t),null;case 19:if(Qc(t),u=t.memoizedState,u===null)return Tl(t),null;if(a=(t.flags&128)!==0,n=u.rendering,n===null)if(a)Ga(u,!1);else{if(xl!==0||l!==null&&(l.flags&128)!==0)for(l=t.child;l!==null;){if(n=Vn(l),n!==null){for(t.flags|=128,Ga(u,!1),l=n.updateQueue,t.updateQueue=l,ai(t,l),t.subtreeFlags=0,l=e,e=t.child;e!==null;)Ho(e,l),e=e.sibling;return ja(t,Xl.current&1|2),$&&ce(t,u.treeForkCount),t.child}l=l.sibling}u.tail!==null&&ft()>yi&&(t.flags|=128,a=!0,Ga(u,!1),t.lanes=4194304)}else{if(!a)if(l=Vn(n),l!==null){if(t.flags|=128,a=!0,l=l.updateQueue,t.updateQueue=l,ai(t,l),Ga(u,!0),u.tail===null&&u.tailMode!=="collapsed"&&u.tailMode!=="visible"&&!n.alternate&&!$)return Tl(t),null}else 2*ft()-u.renderingStartTime>yi&&e!==536870912&&(t.flags|=128,a=!0,Ga(u,!1),t.lanes=4194304);u.isBackwards?(n.sibling=t.child,t.child=n):(l=u.last,l!==null?l.sibling=n:t.child=n,u.last=n)}if(u.tail!==null){l=u.tail;l:{for(e=l;e!==null;){if(e.alternate!==null){e=!1;break l}e=e.sibling}e=!0}return u.rendering=l,u.tail=l.sibling,u.renderingStartTime=ft(),l.sibling=null,n=Xl.current,n=a?n&1|2:n&1,u.tailMode==="visible"||u.tailMode==="collapsed"||!e||$?ja(t,n):(e=n,Sl(Ql,t),Sl(Xl,e),Kl===null&&(Kl=t)),$&&ce(t,u.treeForkCount),l}return Tl(t),null;case 22:case 23:return rt(t),qc(),u=t.memoizedState!==null,l!==null?l.memoizedState!==null!==u&&(t.flags|=8192):u&&(t.flags|=8192),u?(e&536870912)!==0&&(t.flags&128)===0&&(Tl(t),t.subtreeFlags&6&&(t.flags|=8192)):Tl(t),e=t.updateQueue,e!==null&&ai(t,e.retryQueue),e=null,l!==null&&l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(e=l.memoizedState.cachePool.pool),u=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(u=t.memoizedState.cachePool.pool),u!==e&&(t.flags|=2048),l!==null&&Bl(cu),null;case 24:return e=null,l!==null&&(e=l.memoizedState.cache),t.memoizedState.cache!==e&&(t.flags|=2048),se(Ol),Tl(t),null;case 25:return null;case 30:return t.flags|=33554432,Tl(t),null}throw Error(o(156,t.tag))}function Jv(l,t){switch(Nc(t),t.tag){case 1:return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 3:return se(Ol),Tu(),l=t.flags,(l&65536)!==0&&(l&128)===0?(t.flags=l&-65537|128,t):null;case 26:case 27:case 5:return sn(t),null;case 31:if(t.memoizedState!==null){if(rt(t),t.alternate===null)throw Error(o(340));eu()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 13:if(rt(t),l=t.memoizedState,l!==null&&l.dehydrated!==null){if(t.alternate===null)throw Error(o(340));eu()}return l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 19:return Qc(t),l=t.flags,l&65536?(t.flags=l&-65537|128,l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null),t.flags|=4,t):null;case 4:return Tu(),null;case 10:return se(t.type),null;case 22:case 23:return rt(t),qc(),l!==null&&Bl(cu),l=t.flags,l&65536?(t.flags=l&-65537|128,t):null;case 24:return se(Ol),null;case 25:return null;default:return null}}function sm(l,t){switch(Nc(t),t.tag){case 3:se(Ol),Tu();break;case 26:case 27:case 5:sn(t);break;case 4:Tu();break;case 31:t.memoizedState!==null&&rt(t);break;case 13:rt(t);break;case 19:Qc(t);break;case 10:se(t.type);break;case 22:case 23:rt(t),qc(),l!==null&&Bl(cu);break;case 24:se(Ol)}}function Qa(l,t){try{var e=t.updateQueue,u=e!==null?e.lastEffect:null;if(u!==null){var a=u.next;e=a;do{if((e.tag&l)===l){u=void 0;var n=e.create,i=e.inst;u=n(),i.destroy=u}e=e.next}while(e!==a)}}catch(c){ml(t,t.return,c)}}function Re(l,t,e){try{var u=t.updateQueue,a=u!==null?u.lastEffect:null;if(a!==null){var n=a.next;u=n;do{if((u.tag&l)===l){var i=u.inst,c=i.destroy;if(c!==void 0){i.destroy=void 0,a=t;var f=e,v=c;try{v()}catch(g){ml(a,f,g)}}}u=u.next}while(u!==n)}}catch(g){ml(t,t.return,g)}}function om(l){var t=l.updateQueue;if(t!==null){var e=l.stateNode;try{Po(t,e)}catch(u){ml(l,l.return,u)}}}function dm(l,t,e){e.props=mu(l.type,l.memoizedProps),e.state=l.memoizedState;try{e.componentWillUnmount()}catch(u){ml(l,t,u)}}function wt(l,t){try{var e=l.ref;if(e!==null){switch(l.tag){case 26:case 27:case 5:var u=l.stateNode;break;case 30:var a=l.stateNode,n=ae(l.memoizedProps,a);(a.ref===null||a.ref.name!==n)&&(a.ref=Sr(n)),u=a.ref;break;case 7:if(l.stateNode===null){var i=new St(l);S(l.child,!1,Bh,i,void 0,void 0),l.stateNode=i}u=l.stateNode;break;default:u=l.stateNode}typeof e=="function"?l.refCleanup=e(u):e.current=u}}catch(c){ml(l,t,c)}}function Zl(l,t){var e=l.ref,u=l.refCleanup;if(e!==null)if(typeof u=="function")try{u()}catch(a){ml(l,t,a)}finally{l.refCleanup=null,l=l.alternate,l!=null&&(l.refCleanup=null)}else if(typeof e=="function")try{e(null)}catch(a){ml(l,t,a)}else e.current=null}function ni(l,t){if((l.tag===5||l.tag===27||l.tag===6)&&l.alternate===null&&t!==null)for(var e=0;e title"))),Vl(u,t,e),u[ql]=l,Rl(u),t=u;break l;case"link":if(n=Hr("link","href",a).get(t+(e.href||""))){for(i=0;iK&&(i=K,K=D,D=i);var r=_o(c,D),s=_o(c,K);if(r&&s&&(y.rangeCount!==1||y.anchorNode!==r.node||y.anchorOffset!==r.offset||y.focusNode!==s.node||y.focusOffset!==s.offset)){var h=z.createRange();h.setStart(r.node,r.offset),y.removeAllRanges(),D>K?(y.addRange(h),y.extend(s.node,s.offset)):(h.setEnd(s.node,s.offset),y.addRange(h))}}}}for(z=[],y=c;y=y.parentNode;)y.nodeType===1&&z.push({element:y,left:y.scrollLeft,top:y.scrollTop});for(typeof c.focus=="function"&&c.focus(),c=0;ce?32:e,R.T=null,e=Bf,Bf=null;var n=Ht,i=kt;if(_l=0,yu=Ht=null,kt=0,(fl&6)!==0)throw Error(o(331));var c=fl;if(fl|=4,jm(n.current),Um(n,n.current,i,e),fl=c,Ja(0,!1),st&&typeof st.onPostCommitFiberRoot=="function")try{st.onPostCommitFiberRoot(da,n)}catch{}return!0}finally{V.p=a,R.T=u,Wm(l,t)}}function Fm(l,t,e){t=_t(e,t),t=nf(l.stateNode,t,2),l=Me(l,t,2),l!==null&&(ra(l,2),It(l))}function ml(l,t,e){if(l.tag===3)Fm(l,l,e);else for(;t!==null;){if(t.tag===3){Fm(t,l,e);break}else if(t.tag===1){var u=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Be===null||!Be.has(u))){l=_t(e,l),e=Kd(2),u=Me(t,e,2),u!==null&&(Jd(e,u,t,l),ra(u,2),It(u));break}}t=t.return}}function Lf(l,t,e){var u=l.pingCache;if(u===null){u=l.pingCache=new kv;var a=new Set;u.set(t,a)}else a=u.get(t),a===void 0&&(a=new Set,u.set(t,a));a.has(e)||(jf=!0,a.add(e),l=nh.bind(null,l,t,e),t.then(l,l))}function nh(l,t,e){var u=l.pingCache;u!==null&&u.delete(t),l.pingedLanes|=l.suspendedLanes&e,l.warmLanes&=~e,gl===l&&(I&e)===e&&((xl===4||xl===3&&(I&62914560)===I&&300>ft()-hi)&&(fl&2)===0?Pu(l,0):vi|=e,$u===I&&($u=0)),It(l)}function km(l,t){t===0&&(t=Hs()),l=lu(l,t),l!==null&&(ra(l,t),It(l))}function ih(l){var t=l.memoizedState,e=0;t!==null&&(e=t.retryLane),km(l,e)}function ch(l,t){var e=0;switch(l.tag){case 31:case 13:var u=l.stateNode,a=l.memoizedState;a!==null&&(e=a.retryLane);break;case 19:u=l.stateNode;break;case 22:u=l.stateNode._retryCache;break;default:throw Error(o(314))}u!==null&&u.delete(t),km(l,e)}function fh(l,t){return Ki(l,t)}var ta=null,ea=null,wf=!1,_i=!1,Kf=!1,Ge=0;function It(l){l!==ea&&l.next===null&&(ea===null?ta=ea=l:ea=ea.next=l),_i=!0,wf||(wf=!0,oh())}function Ja(l,t){if(!Kf&&_i){Kf=!0;do for(var e=!1,u=ta;u!==null;){if(l!==0){var a=u.pendingLanes;if(a===0)var n=0;else{var i=u.suspendedLanes,c=u.pingedLanes;n=(1<<31-ot(42|l)+1)-1,n&=a&~(i&~c),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(e=!0,tr(u,n))}else n=I,n=vn(u,u===gl?n:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(n&3)===0||ma(u,n)||(e=!0,tr(u,n));u=u.next}while(e);Kf=!1}}function sh(){Im()}function Im(){_i=wf=!1;var l=0;Ge!==0&&Eh()&&(l=Ge);for(var t=ft(),e=null,u=ta;u!==null;){var a=u.next,n=Pm(u,t);n===0?(u.next=null,e===null?ta=a:e.next=a,a===null&&(ea=e)):(e=u,(l!==0||(n&3)!==0)&&(_i=!0)),u=a}_l!==0&&_l!==5||Ja(l),Ge!==0&&(Ge=0)}function Pm(l,t){for(var e=l.suspendedLanes,u=l.pingedLanes,a=l.expirationTimes,n=l.pendingLanes&-62914561;0c)break;var g=f.transferSize,z=f.initiatorType;g&&fr(z)&&(f=f.responseEnd,i+=g*(fAi){D.length=x;break}h=new Promise(Oh.bind(h)),D.push(h)}}}if(0"u"?null:document;function Ur(l,t,e){var u=aa;if(u&&typeof t=="string"&&t){var a=Et(t);a='link[rel="'+l+'"][href="'+a+'"]',typeof e=="string"&&(a+='[crossorigin="'+e+'"]'),Dr.has(a)||(Dr.add(a),l={rel:l,crossOrigin:e,href:t},u.querySelector(a)===null&&(t=u.createElement("link"),Vl(t,"link",l),Rl(t),u.head.appendChild(t)))}}function Kh(l){he.D(l),Ur("dns-prefetch",l,null)}function Jh(l,t){he.C(l,t),Ur("preconnect",l,t)}function $h(l,t,e){he.L(l,t,e);var u=aa;if(u&&l&&t){var a='link[rel="preload"][as="'+Et(t)+'"]';t==="image"&&e&&e.imageSrcSet?(a+='[imagesrcset="'+Et(e.imageSrcSet)+'"]',typeof e.imageSizes=="string"&&(a+='[imagesizes="'+Et(e.imageSizes)+'"]')):a+='[href="'+Et(l)+'"]';var n=a;switch(t){case"style":n=na(l);break;case"script":n=ia(l)}if(!(Mt.has(n)||(l=W({rel:"preload",href:t==="image"&&e&&e.imageSrcSet?void 0:l,as:t},e),Mt.set(n,l),u.querySelector(a)!==null||t==="style"&&u.querySelector(Ia(n))||t==="script"&&u.querySelector(Pa(n))))){var i=u.createElement("link");Vl(i,"link",l),t==="style"&&(i[hn]=!0,i.onload=i.onerror=function(){Vs(i)}),Rl(i),u.head.appendChild(i)}}}function Wh(l,t){he.m(l,t);var e=aa;if(e&&l){var u=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Et(u)+'"][href="'+Et(l)+'"]',n=a;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=ia(l)}if(!Mt.has(n)&&(l=W({rel:"modulepreload",href:l},t),Mt.set(n,l),e.querySelector(a)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(e.querySelector(Pa(n)))return}u=e.createElement("link"),Vl(u,"link",l),Rl(u),e.head.appendChild(u)}}}function Fh(l,t,e){he.S(l,t,e);var u=aa;if(u&&l){var a=_u(u).hoistableStyles,n=na(l);t=t||"default";var i=a.get(n);if(!i){var c={loading:0,preload:null};if(i=u.querySelector(Ia(n)))c.loading=5;else{l=W({rel:"stylesheet",href:l,"data-precedence":t},e),(e=Mt.get(n))&&rs(l,e);var f=i=u.createElement("link");Rl(f),Vl(f,"link",l),f._p=new Promise(function(v,g){f.onload=v,f.onerror=g}),f.addEventListener("load",function(){c.loading|=1}),f.addEventListener("error",function(){c.loading|=2}),c.loading|=4,pi(i,t,u)}i={type:"stylesheet",instance:i,count:1,state:c},a.set(n,i)}}}function kh(l,t){he.X(l,t);var e=aa;if(e&&l){var u=_u(e).hoistableScripts,a=ia(l),n=u.get(a);n||(n=e.querySelector(Pa(a)),n||(l=W({src:l,async:!0},t),(t=Mt.get(a))&&vs(l,t),n=e.createElement("script"),Rl(n),Vl(n,"link",l),e.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},u.set(a,n))}}function Ih(l,t){he.M(l,t);var e=aa;if(e&&l){var u=_u(e).hoistableScripts,a=ia(l),n=u.get(a);n||(n=e.querySelector(Pa(a)),n||(l=W({src:l,async:!0,type:"module"},t),(t=Mt.get(a))&&vs(l,t),n=e.createElement("script"),Rl(n),Vl(n,"link",l),e.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},u.set(a,n))}}function Cr(l,t,e,u){var a=(a=ge.current)?ka(a):null;if(!a)throw Error(o(446));switch(l){case"meta":case"title":return null;case"style":return typeof e.precedence=="string"&&typeof e.href=="string"?(e=na(e.href),t=_u(a).hoistableStyles,u=t.get(e),u||(u={type:"style",instance:null,count:0,state:null},t.set(e,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(e.rel==="stylesheet"&&typeof e.href=="string"&&typeof e.precedence=="string"){l=na(e.href);var n=_u(a).hoistableStyles,i=n.get(l);if(i||(a=a.ownerDocument||a,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},n.set(l,i),(n=a.querySelector(Ia(l)))?n._p||(i.instance=n,i.state.loading=5):(n=Mt.get(l),n||(n={rel:"preload",as:"style",href:e.href,crossOrigin:e.crossOrigin,integrity:e.integrity,media:e.media,hrefLang:e.hrefLang,referrerPolicy:e.referrerPolicy},Mt.set(l,n)),Ph(a,l,n,i.state))),t&&u===null)throw Error(o(528,""));return i}if(t&&u!==null)throw Error(o(529,""));return null;case"script":return t=e.async,e=e.src,typeof e=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(e=ia(e),t=_u(a).hoistableScripts,u=t.get(e),u||(u={type:"script",instance:null,count:0,state:null},t.set(e,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,l))}}function na(l){return'href="'+Et(l)+'"'}function Ia(l){return'link[rel="stylesheet"]['+l+"]"}function Rr(l){return W({},l,{"data-precedence":l.precedence,precedence:null})}function Ph(l,t,e,u){if(t=l.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[hn]!==!0){u.loading=1;return}}else t=l.createElement("link"),t[hn]=!0,t.onload=t.onerror=Vs.bind(null,t),Vl(t,"link",e),Rl(t),l.head.appendChild(t);u.preload=t,t.addEventListener("load",function(){return u.loading|=1}),t.addEventListener("error",function(){return u.loading|=2})}function ia(l){return'[src="'+Et(l)+'"]'}function Pa(l){return"script[async]"+l}function jr(l,t,e){if(t.count++,t.instance===null)switch(t.type){case"style":var u=l.querySelector('style[data-href~="'+Et(e.href)+'"]');if(u)return t.instance=u,Rl(u),u;var a=W({},e,{"data-href":e.href,"data-precedence":e.precedence,href:null,precedence:null});return u=(l.ownerDocument||l).createElement("style"),Rl(u),Vl(u,"style",a),pi(u,e.precedence,l),t.instance=u;case"stylesheet":a=na(e.href);var n=l.querySelector(Ia(a));if(n)return t.state.loading|=4,t.instance=n,Rl(n),n;u=Rr(e),(a=Mt.get(a))&&rs(u,a),n=(l.ownerDocument||l).createElement("link"),Rl(n);var i=n;return i._p=new Promise(function(c,f){i.onload=c,i.onerror=f}),Vl(n,"link",u),t.state.loading|=4,pi(n,e.precedence,l),t.instance=n;case"script":return n=ia(e.src),(a=l.querySelector(Pa(n)))?(t.instance=a,Rl(a),a):(u=e,(a=Mt.get(n))&&(u=W({},e),vs(u,a)),l=l.ownerDocument||l,a=l.createElement("script"),Rl(a),Vl(a,"link",u),l.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(u=t.instance,t.state.loading|=4,pi(u,e.precedence,l));return t.instance}function pi(l,t,e){for(var u=e.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=u.length?u[u.length-1]:null,n=a,i=0;i title"):null)}function ly(l,t,e){if(e===1||t.itemProp!=null)return!1;switch(l){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return l=t.disabled,typeof t.precedence=="string"&&l==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Yr(l,t){return l==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Br(l){return!(l.type==="stylesheet"&&(l.state.loading&3)===0)}function qr(l){return(l.width||100)*(l.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Gr(l,t){typeof t.decode=="function"&&(l.imgCount++,t.complete||(l.imgBytes+=qr(t),l.suspenseyImages.push(t)),l=uy.bind(l),t.decode().then(l,l))}function ty(l,t,e,u){if(e.type==="stylesheet"&&(typeof u.media!="string"||matchMedia(u.media).matches!==!1)&&(e.state.loading&4)===0){if(e.instance===null){var a=na(u.href),n=t.querySelector(Ia(a));if(n){t=n._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=ln.bind(l),t.then(l,l)),e.state.loading|=4,e.instance=n,Rl(n);return}n=t.ownerDocument||t,u=Rr(u),(a=Mt.get(a))&&rs(u,a),n=n.createElement("link"),Rl(n);var i=n;i._p=new Promise(function(c,f){i.onload=c,i.onerror=f}),Vl(n,"link",u),e.instance=n}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(e,t),(t=e.state.preload)&&(e.state.loading&3)===0&&(l.count++,e=ln.bind(l),t.addEventListener("load",e),t.addEventListener("error",e))}}var Ai=0;function ey(l,t){return l.stylesheets&&l.count===0&&Di(l,l.stylesheets),0Ai?50:800)+t);return l.unsuspend=e,function(){l.unsuspend=null,clearTimeout(u),clearTimeout(a)}}:null}function Qr(l){if(l.count===0&&(l.imgCount===0||!l.waitingForImages)){if(l.stylesheets)Di(l,l.stylesheets);else if(l.unsuspend){var t=l.unsuspend;l.unsuspend=null,t()}}}function ln(){this.count--,Qr(this)}function uy(){this.imgCount--,Qr(this)}var Mi=null;function Di(l,t){l.stylesheets=null,l.unsuspend!==null&&(l.count++,Mi=new Map,t.forEach(ay,l),Mi=null,ln.call(l))}function ay(l,t){if(!(t.state.loading&4)){var e=Mi.get(l);if(e)var u=e.get(null);else{e=new Map,Mi.set(l,e);for(var a=l.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(b)}catch(p){console.error(p)}}return b(),Ns.exports=Ty(),Ns.exports}var zy=Ey();const _y=m0(zy),o0=b=>{let p;const N=new Set,o=(J,C)=>{const S=typeof J=="function"?J(p):J;if(!Object.is(S,p)){const B=p;p=C??(typeof S!="object"||S===null)?S:Object.assign({},p,S),N.forEach(Z=>Z(p,B))}},A=()=>p,ll={setState:o,getState:A,getInitialState:()=>U,subscribe:J=>(N.add(J),()=>N.delete(J))},U=p=b(o,A,ll);return ll},Ny=(b=>b?o0(b):o0),xy=b=>b;function py(b,p=xy){const N=qi.useSyncExternalStore(b.subscribe,qi.useCallback(()=>p(b.getState()),[b,p]),()=>p(b.getInitialState()));return qi.useDebugValue(N),N}const d0=b=>{const p=Ny(b),N=o=>py(p,o);return Object.assign(N,p),N},Oy=(b=>b?d0(b):d0),Ay=()=>typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,r0=b=>{const p=b==="system"?Ay():b==="dark",N=p?"catppuccin":"zinc-light";return typeof document<"u"&&document.documentElement.setAttribute("data-theme",N),p?"dark":"light"},Bi=localStorage.getItem("hl_theme_v2"),v0=Bi==="light"||Bi==="dark"||Bi==="system"?Bi:"system",My=r0(v0),Dy=localStorage.getItem("hl_route_mode")||"auto",Su=Oy((b,p)=>({theme:v0,resolvedTheme:My,routeMode:Dy,showAgyModal:!1,showCmdPalette:!1,toast:"",actionLoading:!1,telemetry:{mini:{chip:"Apple M6 (12核)",ip:"192.168.31.164",tailscale_ip:"100.108.205.40",cpu_pct:6.5,load_1m:.85,mem_used_gb:11.8,mem_total_gb:24,mem_pct:49.2,disk_used_gb:59.9,disk_total_gb:460.4,disk_pct:13,uptime:"运行中",agy_tmux:!0},nas:{ip:"192.168.31.185",online:!0,mounted:!0,total_tb:19.94,used_tb:3.36,free_tb:16.58,pct:16.8,latest_backup:"11-06 23:17"},network:{home_wan_ip:"124.90.142.21",ai_policy:"Ai平台 → 狮城节点",sg_node:"233boy-sea",sg_egress_ip:"104.43.105.243",sg_delay_ms:68},services:{agy:!0,vaultwarden:!0,nas:!0,clash:!0,router:!0,uptime:!0}},setTheme:N=>{localStorage.setItem("hl_theme_v2",N);const o=r0(N);b({theme:N,resolvedTheme:o})},toggleTheme:()=>{const{resolvedTheme:N,setTheme:o}=p();o(N==="dark"?"light":"dark")},setRouteMode:N=>{localStorage.setItem("hl_route_mode",N),b({routeMode:N})},setShowAgyModal:N=>b({showAgyModal:N}),setShowCmdPalette:N=>b({showCmdPalette:N}),showToast:N=>{b({toast:N}),setTimeout(()=>{p().toast===N&&b({toast:""})},3e3)},fetchTelemetry:async()=>{try{const N=await fetch("/api/telemetry");if(N.ok){const o=await N.json();b({telemetry:o})}}catch{}},triggerAction:async(N,o)=>{const{showToast:A,fetchTelemetry:q}=p();b({actionLoading:!0}),A(o);try{const ll=await(await fetch(`/api/action/${N}`,{method:"POST"})).json();A(ll.message||"操作已完成"),await q()}catch{A("请求失败,请稍后重试")}finally{b({actionLoading:!1})}},copyCmd:async(N,o)=>{const{showToast:A}=p();try{await navigator.clipboard.writeText(N),A(`已复制「${o}」: ${N}`)}catch{A(N)}},getEffectiveMode:()=>{const{routeMode:N}=p();if(N!=="auto")return N;const o=window.location.hostname;return o.startsWith("192.168.")||o.startsWith("100.")||o==="localhost"?"lan":o.includes(".home.961504.xyz")||window.location.port==="10443"?"home10443":"edge443"}}));typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",()=>{const b=Su.getState();b.theme==="system"&&b.setTheme("system")});/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Uy=b=>b.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),h0=(...b)=>b.filter((p,N,o)=>!!p&&p.trim()!==""&&o.indexOf(p)===N).join(" ").trim();/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var Cy={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"};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Ry=at.forwardRef(({color:b="currentColor",size:p=24,strokeWidth:N=2,absoluteStrokeWidth:o,className:A="",children:q,iconNode:nl,...ll},U)=>at.createElement("svg",{ref:U,...Cy,width:p,height:p,stroke:b,strokeWidth:o?Number(N)*24/Number(p):N,className:h0("lucide",A),...ll},[...nl.map(([J,C])=>at.createElement(J,C)),...Array.isArray(q)?q:[q]]));/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Gi=(b,p)=>{const N=at.forwardRef(({className:o,...A},q)=>at.createElement(Ry,{ref:q,iconNode:p,className:h0(`lucide-${Uy(b)}`,o),...A}));return N.displayName=`${b}`,N};/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const jy=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],Hy=Gi("Moon",jy);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Yy=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],y0=Gi("Search",Yy);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const By=[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]],qy=Gi("Sun",By);/** * @license lucide-react v0.475.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const Gy=[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]],Qy=Gi("Terminal",Gy),Xy=[{id:"auto",label:"智能路由"},{id:"edge443",label:"443 免端口"},{id:"home10443",label:"10443 家宽"},{id:"lan",label:"LAN 局域网"}],Zy=()=>{const{theme:b,resolvedTheme:p,routeMode:N,telemetry:o,setTheme:A,toggleTheme:q,setRouteMode:nl,setShowAgyModal:ll,setShowCmdPalette:U}=Su();return E.jsx("header",{className:"border-b hl-border sticky top-0 z-30 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--bg-page) 86%, transparent)"},children:E.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-3 flex flex-wrap items-center justify-between gap-3",children:[E.jsxs("div",{className:"flex flex-wrap items-center gap-2.5 sm:gap-3",children:[E.jsxs("div",{className:"flex items-center gap-2.5 pr-1",children:[E.jsx("img",{src:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/apple.png",alt:"Mac mini",className:"w-6 h-6 rounded"}),E.jsx("span",{className:"font-semibold text-sm tracking-tight",children:"HomeLab"}),E.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:"var(--success)"},title:"全屋 4 节点在线"})]}),E.jsxs("div",{className:"hidden xl:flex items-center gap-2 text-xs font-mono-num",children:[E.jsxs("div",{className:"hl-pill px-2.5 py-1 flex items-center gap-2",title:"Apple M6 12核处理器负载",children:[E.jsx("span",{style:{color:"var(--text-muted)"},children:"M6 CPU"}),E.jsx("div",{className:"w-12 h-1.5 rounded-full hl-muted overflow-hidden",children:E.jsx("div",{className:"h-full hl-bar-fill",style:{width:`${Math.max(5,o.mini.cpu_pct)}%`}})}),E.jsxs("span",{className:"font-medium",children:[o.mini.cpu_pct,"%"]})]}),E.jsxs("div",{className:"hl-pill px-2.5 py-1 flex items-center gap-2",title:"Mac mini 24GB 统一内存",children:[E.jsx("span",{style:{color:"var(--text-muted)"},children:"RAM"}),E.jsx("div",{className:"w-12 h-1.5 rounded-full hl-muted overflow-hidden",children:E.jsx("div",{className:"h-full hl-bar-fill",style:{width:`${Math.max(5,o.mini.mem_pct)}%`}})}),E.jsxs("span",{className:"font-medium",children:[o.mini.mem_used_gb,"G"]})]}),E.jsxs("div",{className:"hl-pill px-2.5 py-1 flex items-center gap-2",title:"极空间 Z4 20TB 存储阵列",children:[E.jsx("span",{style:{color:"var(--text-muted)"},children:"NAS 余量"}),E.jsx("div",{className:"w-12 h-1.5 rounded-full hl-muted overflow-hidden",children:E.jsx("div",{className:"h-full hl-bar-fill-green",style:{width:`${Math.max(5,o.nas.pct)}%`}})}),E.jsxs("span",{className:"font-medium",style:{color:"var(--success)"},children:[o.nas.free_tb," TB"]})]}),E.jsxs("div",{className:"hl-pill px-2.5 py-1 flex items-center gap-1.5",title:"AGY 锁定新加坡 Azure 专线出口",children:[E.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{backgroundColor:"var(--success)"}}),E.jsx("span",{style:{color:"var(--text-muted)"},children:"SG 专线"}),E.jsx("span",{className:"font-medium",children:o.network.sg_delay_ms>0?`${o.network.sg_delay_ms}ms`:"直连"})]})]})]}),E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsxs("button",{onClick:()=>U(!0),className:"hl-btn-outline px-2.5 py-1 text-xs flex items-center gap-3 cursor-pointer",title:"按 Cmd+K 唤起全局命令面板",children:[E.jsxs("span",{className:"flex items-center gap-1.5",style:{color:"var(--text-muted)"},children:[E.jsx(y0,{className:"w-3.5 h-3.5"}),E.jsx("span",{className:"hidden sm:inline",children:"搜索..."})]}),E.jsx("kbd",{className:"px-1.5 py-0.5 text-[10px] font-mono-num rounded hl-muted",style:{color:"var(--text-muted)"},children:"⌘K"})]}),E.jsx("div",{className:"hidden md:flex items-center p-0.5 rounded-lg hl-muted border hl-border text-xs",children:Xy.map(J=>E.jsx("button",{onClick:()=>nl(J.id),className:"px-2 py-1 rounded-md font-medium transition-all cursor-pointer",style:N===J.id?{backgroundColor:"var(--bg-card)",color:"var(--text-main)",boxShadow:"0 1px 2px rgba(0,0,0,0.08)"}:{color:"var(--text-muted)"},children:J.label},J.id))}),E.jsxs("button",{onClick:()=>ll(!0),className:"hl-btn-primary px-3 py-1.5 text-xs flex items-center gap-1.5 cursor-pointer",children:[E.jsx(Qy,{className:"w-3.5 h-3.5"}),E.jsx("span",{children:"AGY 终端"})]}),E.jsxs("div",{className:"flex items-center p-0.5 rounded-lg hl-muted border hl-border text-xs",children:[E.jsx("button",{onClick:q,className:"px-2.5 py-1 rounded-md font-medium transition-all flex items-center gap-1.5 cursor-pointer",style:{backgroundColor:"var(--bg-card)",color:"var(--text-main)",boxShadow:"0 1px 2px rgba(0,0,0,0.08)"},title:"点击切换深色 / 浅色主题",children:p==="dark"?E.jsxs(E.Fragment,{children:[E.jsx(Hy,{className:"w-3.5 h-3.5"}),E.jsx("span",{className:"hidden sm:inline",children:"深色"})]}):E.jsxs(E.Fragment,{children:[E.jsx(qy,{className:"w-3.5 h-3.5"}),E.jsx("span",{className:"hidden sm:inline",children:"浅色"})]})}),b!=="system"&&E.jsx("button",{onClick:()=>A("system"),className:"px-2 py-1 rounded-md text-[11px] transition-all cursor-pointer",style:{color:"var(--text-muted)"},title:"恢复跟随设备系统深浅色自动切换",children:"自动"})]})]})]})})},Vy=({card:b})=>{const{getEffectiveMode:p,setShowAgyModal:N,triggerAction:o}=Su(),A=p(),q=A==="lan"?b.lanUrl:A==="home10443"?b.homeUrl:b.edgeUrl,nl=A==="lan"?"LAN 直连":A==="home10443"?"10443":"443 免端口";return E.jsxs("a",{href:q,target:"_blank",rel:"noopener noreferrer",className:"hl-card hl-card-interactive flex flex-col justify-between overflow-hidden group cursor-pointer",children:[E.jsxs("div",{className:"p-4 sm:p-5 space-y-3",children:[E.jsxs("div",{className:"flex items-start justify-between gap-3",children:[E.jsxs("div",{className:"flex items-center gap-3.5 min-w-0",children:[E.jsx("div",{className:"w-10 h-10 rounded-xl hl-muted border hl-border p-1.5 flex items-center justify-center shrink-0",children:E.jsx("img",{src:b.iconUrl,alt:b.title,className:"w-full h-full object-contain"})}),E.jsxs("div",{className:"min-w-0",children:[E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx("h3",{className:"text-sm font-semibold truncate group-hover:underline",children:b.title}),E.jsx("span",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:b.online!==!1?"var(--success)":"#ef4444"}})]}),E.jsx("p",{className:"text-[11px] font-mono-num truncate mt-0.5",style:{color:"var(--text-muted)"},children:b.subtitle})]})]}),b.actionType==="drawer"?E.jsx("button",{onClick:ll=>{ll.preventDefault(),N(!0)},className:"px-2 py-1 rounded-md text-[11px] font-medium shrink-0 transition-opacity hover:opacity-80 cursor-pointer",style:{backgroundColor:"var(--accent-soft)",color:"var(--accent)"},children:"页内终端"}):b.actionType==="backup"?E.jsx("button",{onClick:ll=>{ll.preventDefault(),o("backup_nas","正在打包备份至极空间 Z4...")},className:"px-2 py-1 rounded-md text-[11px] font-medium shrink-0 transition-opacity hover:opacity-80 cursor-pointer",style:{backgroundColor:"var(--success-soft)",color:"var(--success)"},children:"立即备份"}):E.jsx("span",{className:"text-xs font-mono-num px-2 py-0.5 rounded hl-muted shrink-0",style:{color:"var(--text-muted)"},children:nl})]}),E.jsx("p",{className:"text-xs leading-relaxed line-clamp-2",style:{color:"var(--text-muted)"},children:b.desc})]}),E.jsx("div",{className:"hl-widget-footer grid grid-cols-3 divide-x hl-border text-center",children:b.stats.map((ll,U)=>E.jsxs("div",{className:"py-2.5 px-2 flex flex-col items-center justify-center",children:[E.jsx("span",{className:"text-[10px] uppercase tracking-wider truncate max-w-full",style:{color:"var(--text-subtle)"},children:ll.label}),E.jsx("span",{className:"text-xs font-semibold font-mono-num mt-0.5 truncate max-w-full",style:{color:ll.highlight?"var(--success)":"var(--text-main)"},children:ll.value})]},U))})]})},Ly=[{label:"SSH 连接 Mac mini",cmd:"ssh mini"},{label:"终端接力 AGY 会话",cmd:'ssh mini -t "tmux attach -t agy"'},{label:"SSH 连接新加坡 Azure",cmd:"ssh azure"},{label:"SSH 连接小米主路由",cmd:"ssh root@192.168.31.1"}],wy=()=>{const{copyCmd:b,triggerAction:p}=Su();return E.jsxs("section",{className:"space-y-3 pt-1",children:[E.jsxs("div",{className:"flex items-center justify-between px-0.5",children:[E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx("h2",{className:"text-xs font-semibold uppercase tracking-wider",style:{color:"var(--text-muted)"},children:"终端快捷指令与备用直连书签"}),E.jsx("span",{className:"text-[11px] font-mono-num",style:{color:"var(--text-subtle)"},children:"· 点击指令即复制"})]}),E.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[E.jsx("button",{onClick:()=>p("refresh_ddns","正在同步 Cloudflare DDNS..."),className:"hover:underline font-medium cursor-pointer",style:{color:"var(--accent)"},children:"刷新 DDNS 解析"}),E.jsx("button",{onClick:()=>p("mount_nas","正在巡检极空间 20TB SMB 挂载..."),className:"hover:underline font-medium cursor-pointer",style:{color:"var(--accent)"},children:"巡检极空间挂载"})]})]}),E.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",children:Ly.map(N=>E.jsxs("button",{onClick:()=>b(N.cmd,N.label),className:"hl-card hl-card-interactive px-4 py-3 text-left flex items-center justify-between gap-2 cursor-pointer",children:[E.jsxs("div",{className:"min-w-0",children:[E.jsx("div",{className:"text-xs font-semibold",children:N.label}),E.jsx("div",{className:"text-[11px] font-mono-num truncate mt-0.5",style:{color:"var(--accent)"},children:N.cmd})]}),E.jsx("span",{className:"text-[10px] font-mono-num px-1.5 py-0.5 rounded hl-muted shrink-0",style:{color:"var(--text-muted)"},children:"COPY"})]},N.cmd))})]})},Ky=()=>{const{showCmdPalette:b,setShowCmdPalette:p,setShowAgyModal:N,setTheme:o,triggerAction:A,copyCmd:q,getEffectiveMode:nl}=Su(),[ll,U]=at.useState(""),J=at.useRef(null);at.useEffect(()=>{b&&(U(""),setTimeout(()=>{var Z;return(Z=J.current)==null?void 0:Z.focus()},20))},[b]);const C=at.useMemo(()=>{const Z=nl(),El=(wl,vl,kl)=>Z==="lan"?kl:Z==="home10443"?vl:wl;return[{id:"open-agy-drawer",title:"在页内唤起 AGY 云端终端",hint:"tmux attach -t agy",type:"终端",run:()=>N(!0)},{id:"open-agy",title:"新窗口打开 AGY 云端工作台",hint:"https://agy.961504.xyz",type:"跳转",run:()=>window.open(El("https://agy.961504.xyz","https://agy.home.961504.xyz:10443","http://192.168.31.164:7681"),"_blank")},{id:"open-z4",title:"打开 极空间 Z4 私有云 (20TB)",hint:"192.168.31.185:5055",type:"跳转",run:()=>window.open(El("https://z4.home.961504.xyz:10443","https://z4.home.961504.xyz:10443","http://192.168.31.185:5055"),"_blank")},{id:"open-vw",title:"打开 Vaultwarden 密码保险箱",hint:"https://vw.961504.xyz",type:"跳转",run:()=>window.open(El("https://vw.961504.xyz","https://vw.home.961504.xyz:10443","http://192.168.31.164:8222"),"_blank")},{id:"open-clash",title:"打开 Mihomo 路由分流面板",hint:"192.168.31.1:9999",type:"跳转",run:()=>window.open(El("https://clash.home.961504.xyz:10443/ui/","https://clash.home.961504.xyz:10443/ui/","http://192.168.31.1:9999/ui/"),"_blank")},{id:"act-backup",title:"立即打包备份核心数据至极空间 Z4",hint:"backup-to-nas.sh",type:"运维",run:()=>A("backup_nas","正在打包备份至极空间 Z4...")},{id:"act-ddns",title:"立即刷新 Cloudflare DDNS 解析",hint:"cloudflare-ddns.sh",type:"运维",run:()=>A("refresh_ddns","正在同步 Cloudflare DDNS...")},{id:"ssh-mini",title:"复制 SSH 连接 Mac mini 指令",hint:"ssh mini",type:"SSH",run:()=>q("ssh mini","SSH Mac mini")},{id:"ssh-agy",title:"复制 终端接力 AGY 会话指令",hint:'ssh mini -t "tmux attach -t agy"',type:"SSH",run:()=>q('ssh mini -t "tmux attach -t agy"',"接力 AGY")},{id:"theme-system",title:"主题模式: 跟随设备系统深浅色自动切换",hint:"system",type:"主题",run:()=>o("system")},{id:"theme-light",title:"切换主题: 浅色纯净 (Light)",hint:"light",type:"主题",run:()=>o("light")},{id:"theme-dark",title:"切换主题: 深色极客 (Dark)",hint:"dark",type:"主题",run:()=>o("dark")}]},[nl,N,o,A,q]),S=at.useMemo(()=>{const Z=ll.trim().toLowerCase();return Z?C.filter(El=>El.title.toLowerCase().includes(Z)||El.hint.toLowerCase().includes(Z)):C},[ll,C]);if(!b)return null;const B=Z=>{p(!1),Z.run()};return E.jsx("div",{onClick:Z=>{Z.target===Z.currentTarget&&p(!1)},className:"fixed inset-0 z-50 bg-black/60 backdrop-blur-sm flex items-start justify-center pt-20 px-4",children:E.jsxs("div",{className:"w-full max-w-xl hl-card overflow-hidden shadow-2xl",children:[E.jsxs("div",{className:"px-4 py-3 border-b hl-border flex items-center gap-3",children:[E.jsx(y0,{className:"w-4 h-4",style:{color:"var(--text-muted)"}}),E.jsx("input",{ref:J,value:ll,onChange:Z=>U(Z.target.value),type:"text",placeholder:"输入服务名称、SSH 指令、路由模式或主题...",className:"w-full bg-transparent text-sm outline-none",onKeyDown:Z=>{Z.key==="Escape"&&p(!1),Z.key==="Enter"&&S.length>0&&B(S[0])}}),E.jsx("kbd",{className:"px-1.5 py-0.5 text-[10px] font-mono-num rounded hl-muted",style:{color:"var(--text-muted)"},children:"ESC"})]}),E.jsxs("div",{className:"max-h-80 overflow-y-auto p-2 text-xs",children:[E.jsx("div",{className:"px-2.5 py-1 text-[10px] font-semibold uppercase tracking-wider",style:{color:"var(--text-subtle)"},children:"快速操作与服务直达"}),S.map(Z=>E.jsxs("button",{onClick:()=>B(Z),className:"w-full px-3 py-2 rounded-lg text-left flex items-center justify-between transition-colors cursor-pointer",onMouseEnter:El=>{El.currentTarget.style.backgroundColor="var(--bg-muted)"},onMouseLeave:El=>{El.currentTarget.style.backgroundColor="transparent"},children:[E.jsxs("div",{className:"flex items-center gap-2.5",children:[E.jsx("span",{className:"font-medium",children:Z.title}),E.jsx("span",{className:"font-mono-num text-[11px]",style:{color:"var(--text-muted)"},children:Z.hint})]}),E.jsx("span",{className:"text-[10px] font-mono-num px-1.5 py-0.5 rounded hl-muted",style:{color:"var(--text-muted)"},children:Z.type})]},Z.id))]})]})})},Jy=()=>{const{showAgyModal:b,setShowAgyModal:p,getEffectiveMode:N}=Su();if(!b)return null;const o=N(),A=o==="lan"?"http://192.168.31.164:7681":o==="home10443"?"https://agy.home.961504.xyz:10443":"https://agy.961504.xyz";return E.jsx("div",{className:"fixed inset-0 z-50 bg-black/75 backdrop-blur-sm flex items-center justify-center p-3 sm:p-6",children:E.jsxs("div",{className:"w-full h-full max-w-6xl hl-card flex flex-col overflow-hidden shadow-2xl",children:[E.jsxs("div",{className:"px-4 py-2.5 border-b hl-border flex items-center justify-between hl-muted",children:[E.jsxs("div",{className:"flex items-center gap-2.5",children:[E.jsx("img",{src:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/google-gemini.png",alt:"AGY",className:"w-4 h-4"}),E.jsx("span",{className:"text-xs font-mono-num font-medium",children:"AGY 云端工作台 · tmux 持久会话 (关窗不断连)"})]}),E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx("a",{href:A,target:"_blank",rel:"noopener noreferrer",className:"hl-btn-outline px-2.5 py-1 text-xs font-mono-num",children:"新标签页全屏 ↗"}),E.jsx("button",{onClick:()=>p(!1),className:"hl-btn-primary px-3 py-1 text-xs cursor-pointer",children:"收起终端"})]})]}),E.jsx("iframe",{src:A,title:"AGY Cloud Workbench",className:"w-full flex-1 bg-black border-0"})]})})},$y=()=>{const{telemetry:b,toast:p,fetchTelemetry:N,setShowCmdPalette:o,getEffectiveMode:A,routeMode:q}=Su();at.useEffect(()=>{N();const U=setInterval(N,3e3),J=C=>{(C.metaKey||C.ctrlKey)&&C.key.toLowerCase()==="k"&&(C.preventDefault(),o(!0))};return window.addEventListener("keydown",J),()=>{clearInterval(U),window.removeEventListener("keydown",J)}},[N,o]);const nl=at.useMemo(()=>{const U=A();return U==="lan"?"LAN 局域网极速直连 (192.168.31.x)":U==="home10443"?"10443 家宽公网 HTTPS 直连":"443 免端口 HTTPS 直达 (*.961504.xyz)"},[A,q]),ll=at.useMemo(()=>{const U=b;return[{title:"核心工作台与私有云存储",subtitle:"Core Workbench & Storage",showRouteHint:!0,items:[{id:"agy",title:"AGY 云端工作台",subtitle:"agy.961504.xyz · ttyd + tmux",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/google-gemini.png",online:U.services.agy,actionType:"drawer",desc:"M6 Mac mini 上的 24 小时常驻 AI 编程终端,已同步 Google 登录态并锁定新加坡出口,关掉网页后台继续运行。",edgeUrl:"https://agy.961504.xyz",homeUrl:"https://agy.home.961504.xyz:10443",lanUrl:"http://192.168.31.164:7681",stats:[{label:"M6 CPU 负载",value:`${U.mini.cpu_pct}%`},{label:"已用内存",value:`${U.mini.mem_used_gb} / 24 GB`},{label:"tmux 会话",value:U.mini.agy_tmux?"常驻运行中":"待机",highlight:!0}]},{id:"zspace",title:"极空间 Z4 私有云",subtitle:"192.168.31.185 · 20TB RAID 存储池",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/synology-drive.png",online:U.services.nas,desc:"家庭 20TB 大容量存储中心、极影视蓝光影院与手机相册备份,已自动 SMB 挂载至 Mac mini ~/nas。",edgeUrl:"https://z4.home.961504.xyz:10443",homeUrl:"https://z4.home.961504.xyz:10443",lanUrl:"http://192.168.31.185:5055",stats:[{label:"剩余可用",value:`${U.nas.free_tb} TB`,highlight:!0},{label:"已用容量",value:`${U.nas.used_tb} TB (${U.nas.pct}%)`},{label:"SMB 挂载",value:U.nas.mounted?"~/nas 已挂载":"重连中"}]},{id:"vaultwarden",title:"Vaultwarden 密码保险箱",subtitle:"vw.961504.xyz · Bitwarden 兼容",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/vaultwarden.png",online:U.services.vaultwarden,actionType:"backup",desc:"自托管全平台加密密码库,支持 iOS / Android / 浏览器插件自动填充,每天凌晨 03:30 自动打包灾备至极空间。",edgeUrl:"https://vw.961504.xyz",homeUrl:"https://vw.home.961504.xyz:10443",lanUrl:"http://192.168.31.164:8222",stats:[{label:"容器状态",value:"Healthy",highlight:!0},{label:"最近极空间灾备",value:U.nas.latest_backup},{label:"Mac SSD 占用",value:`${U.mini.disk_pct}%`}]}]},{title:"网络网关、AI 专线与外部哨兵",subtitle:"Network Gateway & Cloud Edge",showRouteHint:!1,items:[{id:"clash",title:"Mihomo 路由分流面板",subtitle:"192.168.31.1:9999 · ShellCrash",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/clash.png",online:U.services.clash,desc:"小米主路由器透明网关控制台,实时监控全屋设备流量、分流规则与狮城 AI 算力专线锁定状态。",edgeUrl:"https://clash.home.961504.xyz:10443/ui/",homeUrl:"https://clash.home.961504.xyz:10443/ui/",lanUrl:"http://192.168.31.1:9999/ui/",stats:[{label:"AI 锁定策略",value:"狮城节点",highlight:!0},{label:"新加坡延迟",value:U.network.sg_delay_ms>0?`${U.network.sg_delay_ms} ms`:"直连"},{label:"固定出口 IP",value:U.network.sg_egress_ip}]},{id:"router",title:"小米主路由器后台",subtitle:"192.168.31.1 · PPPoE 公网网关",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/openwrt.png",online:U.services.router,desc:"管理家庭联通公网宽带拨号、DHCP 静态 IP 绑定、10443 与 41641 端口转发及全屋内网 Split-DNS。",edgeUrl:"https://router.home.961504.xyz:10443",homeUrl:"https://router.home.961504.xyz:10443",lanUrl:"http://192.168.31.1",stats:[{label:"联通公网 IPv4",value:U.network.home_wan_ip,highlight:!0},{label:"泛域名 DDNS",value:"*.home.961504.xyz"},{label:"内网网关",value:"192.168.31.1"}]},{id:"uptime",title:"Uptime Kuma 外部哨兵",subtitle:"status.961504.xyz · SG Azure",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/uptime-kuma.png",online:U.services.uptime,desc:"独立部署在新加坡 Azure 公有云上的 24 小时外部监控哨兵,通过 Tailscale P2P 专线实时探测家庭服务。",edgeUrl:"https://status.961504.xyz",homeUrl:"https://status.961504.xyz",lanUrl:"https://status.961504.xyz",stats:[{label:"云端公网 IP",value:"104.43.105.243"},{label:"Tailscale 专线",value:"100.115.204.51"},{label:"外部探测状态",value:"100% 在线",highlight:!0}]}]}]},[b]);return E.jsxs("div",{className:"min-h-screen flex flex-col",children:[p&&E.jsxs("div",{className:"fixed bottom-5 right-5 z-50 hl-card px-4 py-3 flex items-center gap-2.5 shadow-2xl",children:[E.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:"var(--success)"}}),E.jsx("span",{className:"text-xs font-medium",children:p})]}),E.jsx(Zy,{}),E.jsxs("main",{className:"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-6 space-y-7",children:[ll.map(U=>E.jsxs("section",{className:"space-y-3",children:[E.jsxs("div",{className:"flex items-center justify-between px-0.5",children:[E.jsxs("div",{className:"flex items-center gap-2",children:[E.jsx("h2",{className:"text-xs font-semibold uppercase tracking-wider",style:{color:"var(--text-muted)"},children:U.title}),E.jsxs("span",{className:"text-[11px] font-mono-num",style:{color:"var(--text-subtle)"},children:["· ",U.subtitle]})]}),U.showRouteHint&&E.jsxs("span",{className:"text-[11px] font-mono-num hidden sm:inline",style:{color:"var(--text-subtle)"},children:["当前路由模式: ",nl]})]}),E.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:U.items.map(J=>E.jsx(Vy,{card:J},J.id))})]},U.title)),E.jsx(wy,{})]}),E.jsx(Ky,{}),E.jsx(Jy,{})]})};_y.createRoot(document.getElementById("root")).render(E.jsx(qi.StrictMode,{children:E.jsx($y,{})}));