237 lines
412 KiB
JavaScript
237 lines
412 KiB
JavaScript
var d0=i=>{throw TypeError(i)};var m0=(i,r,c)=>r.has(i)||d0("Cannot "+c);var xt=(i,r,c)=>(m0(i,r,"read from private field"),c?c.call(i):r.get(i)),h0=(i,r,c)=>r.has(i)?d0("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,c),uf=(i,r,c,o)=>(m0(i,r,"write to private field"),o?o.call(i,c):r.set(i,c),c);function DS(i,r){for(var c=0;c<r.length;c++){const o=r[c];if(typeof o!="string"&&!Array.isArray(o)){for(const s in o)if(s!=="default"&&!(s in i)){const f=Object.getOwnPropertyDescriptor(o,s);f&&Object.defineProperty(i,s,f.get?f:{enumerable:!0,get:()=>o[s]})}}}return Object.freeze(Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))o(s);new MutationObserver(s=>{for(const f of s)if(f.type==="childList")for(const m of f.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&o(m)}).observe(document,{childList:!0,subtree:!0});function c(s){const f={};return s.integrity&&(f.integrity=s.integrity),s.referrerPolicy&&(f.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?f.credentials="include":s.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function o(s){if(s.ep)return;s.ep=!0;const f=c(s);fetch(s.href,f)}})();function sd(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var rf={exports:{}},fu={};/**
|
||
* @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 v0;function US(){if(v0)return fu;v0=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function c(o,s,f){var m=null;if(f!==void 0&&(m=""+f),s.key!==void 0&&(m=""+s.key),"key"in s){f={};for(var v in s)v!=="key"&&(f[v]=s[v])}else f=s;return s=f.ref,{$$typeof:i,type:o,key:m,ref:s!==void 0?s:null,props:f}}return fu.Fragment=r,fu.jsx=c,fu.jsxs=c,fu}var g0;function BS(){return g0||(g0=1,rf.exports=US()),rf.exports}var h=BS(),of={exports:{}},be={};/**
|
||
* @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 y0;function kS(){if(y0)return be;y0=1;var i=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),b=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),E=Symbol.for("react.view_transition"),A=Symbol.iterator;function j(N){return N===null||typeof N!="object"?null:(N=A&&N[A]||N["@@iterator"],typeof N=="function"?N:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,Y={};function G(N,U,$){this.props=N,this.context=U,this.refs=Y,this.updater=$||D}G.prototype.isReactComponent={},G.prototype.setState=function(N,U){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,U,"setState")},G.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function k(){}k.prototype=G.prototype;function V(N,U,$){this.props=N,this.context=U,this.refs=Y,this.updater=$||D}var I=V.prototype=new k;I.constructor=V,L(I,G.prototype),I.isPureReactComponent=!0;var R=Array.isArray;function T(){}var z={H:null,A:null,T:null,S:null},Z=Object.prototype.hasOwnProperty;function te(N,U,$){var ee=$.ref;return{$$typeof:i,type:N,key:U,ref:ee!==void 0?ee:null,props:$}}function W(N,U){return te(N.type,U,N.props)}function P(N){return typeof N=="object"&&N!==null&&N.$$typeof===i}function ne(N){var U={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function($){return U[$]})}var ue=/\/+/g;function ge(N,U){return typeof N=="object"&&N!==null&&N.key!=null?ne(""+N.key):U.toString(36)}function F(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(T,T):(N.status="pending",N.then(function(U){N.status==="pending"&&(N.status="fulfilled",N.value=U)},function(U){N.status==="pending"&&(N.status="rejected",N.reason=U)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function ae(N,U,$,ee,he){var ie=typeof N;(ie==="undefined"||ie==="boolean")&&(N=null);var Ee=!1;if(N===null)Ee=!0;else switch(ie){case"bigint":case"string":case"number":Ee=!0;break;case"object":switch(N.$$typeof){case i:case r:Ee=!0;break;case S:return Ee=N._init,ae(Ee(N._payload),U,$,ee,he)}}if(Ee)return he=he(N),Ee=ee===""?"."+ge(N,0):ee,R(he)?($="",Ee!=null&&($=Ee.replace(ue,"$&/")+"/"),ae(he,U,$,"",function(Dt){return Dt})):he!=null&&(P(he)&&(he=W(he,$+(he.key==null||N&&N.key===he.key?"":(""+he.key).replace(ue,"$&/")+"/")+Ee)),U.push(he)),1;Ee=0;var fe=ee===""?".":ee+":";if(R(N))for(var ye=0;ye<N.length;ye++)ee=N[ye],ie=fe+ge(ee,ye),Ee+=ae(ee,U,$,ie,he);else if(ye=j(N),typeof ye=="function")for(N=ye.call(N),ye=0;!(ee=N.next()).done;)ee=ee.value,ie=fe+ge(ee,ye++),Ee+=ae(ee,U,$,ie,he);else if(ie==="object"){if(typeof N.then=="function")return ae(F(N),U,$,ee,he);throw U=String(N),Error("Objects are not valid as a React child (found: "+(U==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":U)+"). If you meant to render a collection of children, use an array instead.")}return Ee}function ce(N,U,$){if(N==null)return N;var ee=[],he=0;return ae(N,ee,"","",function(ie){return U.call($,ie,he++)}),ee}function xe(N){if(N._status===-1){var U=N._result,$=U();$.then(function(ee){(N._status===0||N._status===-1)&&(N._status=1,N._result=ee,$.status===void 0&&($.status="fulfilled",$.value=ee))},function(ee){(N._status===0||N._status===-1)&&(N._status=2,N._result=ee,$.status===void 0&&($.status="rejected",$.reason=ee))}),N._status===-1&&(N._status=0,N._result=$)}if(N._status===1)return N._result.default;throw N._result}var K=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var U=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(U))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function Se(N){var U=z.T,$={};$.types=U!==null?U.types:null,z.T=$;try{var ee=N(),he=z.S;he!==null&&he($,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(T,K)}catch(ie){K(ie)}finally{U!==null&&$.types!==null&&(U.types=$.types),z.T=U}}function J(N){var U=z.T;if(U!==null){var $=U.types;$===null?U.types=[N]:$.indexOf(N)===-1&&$.push(N)}else Se(J.bind(null,N))}var me={map:ce,forEach:function(N,U,$){ce(N,function(){U.apply(this,arguments)},$)},count:function(N){var U=0;return ce(N,function(){U++}),U},toArray:function(N){return ce(N,function(U){return U})||[]},only:function(N){if(!P(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return be.Activity=y,be.Children=me,be.Component=G,be.Fragment=c,be.Profiler=s,be.PureComponent=V,be.StrictMode=o,be.Suspense=p,be.ViewTransition=E,be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,be.__COMPILER_RUNTIME={__proto__:null,c:function(N){return z.H.useMemoCache(N)}},be.addTransitionType=J,be.cache=function(N){return function(){return N.apply(null,arguments)}},be.cacheSignal=function(){return null},be.cloneElement=function(N,U,$){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var ee=L({},N.props),he=N.key;if(U!=null)for(ie in U.key!==void 0&&(he=""+U.key),U)!Z.call(U,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&U.ref===void 0||(ee[ie]=U[ie]);var ie=arguments.length-2;if(ie===1)ee.children=$;else if(1<ie){for(var Ee=Array(ie),fe=0;fe<ie;fe++)Ee[fe]=arguments[fe+2];ee.children=Ee}return te(N.type,he,ee)},be.createContext=function(N){return N={$$typeof:m,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:f,_context:N},N},be.createElement=function(N,U,$){var ee,he={},ie=null;if(U!=null)for(ee in U.key!==void 0&&(ie=""+U.key),U)Z.call(U,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(he[ee]=U[ee]);var Ee=arguments.length-2;if(Ee===1)he.children=$;else if(1<Ee){for(var fe=Array(Ee),ye=0;ye<Ee;ye++)fe[ye]=arguments[ye+2];he.children=fe}if(N&&N.defaultProps)for(ee in Ee=N.defaultProps,Ee)he[ee]===void 0&&(he[ee]=Ee[ee]);return te(N,ie,he)},be.createRef=function(){return{current:null}},be.forwardRef=function(N){return{$$typeof:v,render:N}},be.isValidElement=P,be.lazy=function(N){return{$$typeof:S,_payload:{_status:-1,_result:N},_init:xe}},be.memo=function(N,U){return{$$typeof:b,type:N,compare:U===void 0?null:U}},be.startTransition=Se,be.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},be.use=function(N){return z.H.use(N)},be.useActionState=function(N,U,$){return z.H.useActionState(N,U,$)},be.useCallback=function(N,U){return z.H.useCallback(N,U)},be.useContext=function(N){return z.H.useContext(N)},be.useDebugValue=function(){},be.useDeferredValue=function(N,U){return z.H.useDeferredValue(N,U)},be.useEffect=function(N,U){return z.H.useEffect(N,U)},be.useEffectEvent=function(N){return z.H.useEffectEvent(N)},be.useId=function(){return z.H.useId()},be.useImperativeHandle=function(N,U,$){return z.H.useImperativeHandle(N,U,$)},be.useInsertionEffect=function(N,U){return z.H.useInsertionEffect(N,U)},be.useLayoutEffect=function(N,U){return z.H.useLayoutEffect(N,U)},be.useMemo=function(N,U){return z.H.useMemo(N,U)},be.useOptimistic=function(N,U){return z.H.useOptimistic(N,U)},be.useReducer=function(N,U,$){return z.H.useReducer(N,U,$)},be.useRef=function(N){return z.H.useRef(N)},be.useState=function(N){return z.H.useState(N)},be.useSyncExternalStore=function(N,U,$){return z.H.useSyncExternalStore(N,U,$)},be.useTransition=function(){return z.H.useTransition()},be.version="19.3.1",be}var p0;function fd(){return p0||(p0=1,of.exports=kS()),of.exports}var x=fd();const gu=sd(x),sa=DS({__proto__:null,default:gu},[x]);var cf={exports:{}},du={},sf={exports:{}},ff={};/**
|
||
* @license React
|
||
* scheduler.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 b0;function HS(){return b0||(b0=1,(function(i){function r(F,ae){var ce=F.length;F.push(ae);e:for(;0<ce;){var xe=ce-1>>>1,K=F[xe];if(0<s(K,ae))F[xe]=ae,F[ce]=K,ce=xe;else break e}}function c(F){return F.length===0?null:F[0]}function o(F){if(F.length===0)return null;var ae=F[0],ce=F.pop();if(ce!==ae){F[0]=ce;e:for(var xe=0,K=F.length,Se=K>>>1;xe<Se;){var J=2*(xe+1)-1,me=F[J],N=J+1,U=F[N];if(0>s(me,ce))N<K&&0>s(U,me)?(F[xe]=U,F[N]=ce,xe=N):(F[xe]=me,F[J]=ce,xe=J);else if(N<K&&0>s(U,ce))F[xe]=U,F[N]=ce,xe=N;else break e}}return ae}function s(F,ae){var ce=F.sortIndex-ae.sortIndex;return ce!==0?ce:F.id-ae.id}if(i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;i.unstable_now=function(){return f.now()}}else{var m=Date,v=m.now();i.unstable_now=function(){return m.now()-v}}var p=[],b=[],S=1,y=null,E=3,A=!1,j=!1,D=!1,L=!1,Y=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function V(F){for(var ae=c(b);ae!==null;){if(ae.callback===null)o(b);else if(ae.startTime<=F)o(b),ae.sortIndex=ae.expirationTime,r(p,ae);else break;ae=c(b)}}function I(F){if(D=!1,V(F),!j)if(c(p)!==null)j=!0,R||(R=!0,P());else{var ae=c(b);ae!==null&&ge(I,ae.startTime-F)}}var R=!1,T=-1,z=5,Z=-1;function te(){return L?!0:!(i.unstable_now()-Z<z)}function W(){if(L=!1,R){var F=i.unstable_now();Z=F;var ae=!0;try{e:{j=!1,D&&(D=!1,G(T),T=-1),A=!0;var ce=E;try{t:{for(V(F),y=c(p);y!==null&&!(y.expirationTime>F&&te());){var xe=y.callback;if(typeof xe=="function"){y.callback=null,E=y.priorityLevel;var K=xe(y.expirationTime<=F);if(F=i.unstable_now(),typeof K=="function"){y.callback=K,V(F),ae=!0;break t}y===c(p)&&o(p),V(F)}else o(p);y=c(p)}if(y!==null)ae=!0;else{var Se=c(b);Se!==null&&ge(I,Se.startTime-F),ae=!1}}break e}finally{y=null,E=ce,A=!1}ae=void 0}}finally{ae?P():R=!1}}}var P;if(typeof k=="function")P=function(){k(W)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,ue=ne.port2;ne.port1.onmessage=W,P=function(){ue.postMessage(null)}}else P=function(){Y(W,0)};function ge(F,ae){T=Y(function(){F(i.unstable_now())},ae)}i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(F){F.callback=null},i.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):z=0<F?Math.floor(1e3/F):5},i.unstable_getCurrentPriorityLevel=function(){return E},i.unstable_next=function(F){switch(E){case 1:case 2:case 3:var ae=3;break;default:ae=E}var ce=E;E=ae;try{return F()}finally{E=ce}},i.unstable_requestPaint=function(){L=!0},i.unstable_runWithPriority=function(F,ae){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var ce=E;E=F;try{return ae()}finally{E=ce}},i.unstable_scheduleCallback=function(F,ae,ce){var xe=i.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?xe+ce:xe):ce=xe,F){case 1:var K=-1;break;case 2:K=250;break;case 5:K=1073741823;break;case 4:K=1e4;break;default:K=5e3}return K=ce+K,F={id:S++,callback:ae,priorityLevel:F,startTime:ce,expirationTime:K,sortIndex:-1},ce>xe?(F.sortIndex=ce,r(b,F),c(p)===null&&F===c(b)&&(D?(G(T),T=-1):D=!0,ge(I,ce-xe))):(F.sortIndex=K,r(p,F),j||A||(j=!0,R||(R=!0,P()))),F},i.unstable_shouldYield=te,i.unstable_wrapCallback=function(F){var ae=E;return function(){var ce=E;E=ae;try{return F.apply(this,arguments)}finally{E=ce}}}})(ff)),ff}var x0;function LS(){return x0||(x0=1,sf.exports=HS()),sf.exports}var df={exports:{}},St={};/**
|
||
* @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 S0;function qS(){if(S0)return St;S0=1;var i=fd();function r(S){var y="https://react.dev/errors/"+S;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var E=2;E<arguments.length;E++)y+="&args[]="+encodeURIComponent(arguments[E])}return"Minified React error #"+S+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var o={d:{f:c,r:function(){throw Error(r(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},s=Symbol.for("react.portal"),f=Symbol.for("react.recoverable"),m=Symbol.for("react.optimistic_key");function v(S,y,E){var A=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:A==null?null:A===m?m:""+A,children:S,containerInfo:y,implementation:E}}var p=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function b(S,y){if(S==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return St.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,St.browser=function(S){return{$$typeof:f,_reason:S}},St.createPortal=function(S,y){var E=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(r(299));return v(S,y,null,E)},St.flushSync=function(S){var y=p.T,E=o.p;try{if(p.T=null,o.p=2,S)return S()}finally{p.T=y,o.p=E,o.d.f()}},St.preconnect=function(S,y){typeof S=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,o.d.C(S,y))},St.prefetchDNS=function(S){typeof S=="string"&&o.d.D(S)},St.preinit=function(S,y){if(typeof S=="string"&&y&&typeof y.as=="string"){var E=y.as,A=b(E,y.crossOrigin),j=typeof y.integrity=="string"?y.integrity:void 0,D=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;E==="style"?o.d.S(S,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:A,integrity:j,fetchPriority:D}):E==="script"&&o.d.X(S,{crossOrigin:A,integrity:j,fetchPriority:D,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},St.preinitModule=function(S,y){if(typeof S=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var E=b(y.as,y.crossOrigin);o.d.M(S,{crossOrigin:E,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0})}}else y==null&&o.d.M(S)},St.preload=function(S,y){if(typeof S=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var E=y.as,A=b(E,y.crossOrigin);o.d.L(S,E,{crossOrigin:A,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},St.preloadModule=function(S,y){if(typeof S=="string")if(y){var E=b(y.as,y.crossOrigin);o.d.m(S,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:E,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0})}else o.d.m(S)},St.requestFormReset=function(S){o.d.r(S)},St.unstable_batchedUpdates=function(S,y){return S(y)},St.useFormState=function(S,y,E){return p.H.useFormState(S,y,E)},St.useFormStatus=function(){return p.H.useHostTransitionStatus()},St.version="19.3.1",St}var E0;function _y(){if(E0)return df.exports;E0=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),df.exports=qS(),df.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 C0;function GS(){if(C0)return du;C0=1;var i=LS(),r=fd(),c=_y();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){for(var t=e,n=t;n&&!n.alternate;)t=n,(t.flags&4098)!==0&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(o(188))}function b(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(o(188));return t!==e?null:e}for(var n=e,l=t;;){var a=n.return;if(a===null)break;var u=a.alternate;if(u===null){if(l=a.return,l!==null){n=l;continue}break}if(a.child===u.child){for(u=a.child;u;){if(u===n)return p(a),e;if(u===l)return p(a),t;u=u.sibling}throw Error(o(188))}if(n.return!==l.return)n=a,l=u;else{for(var d=!1,g=a.child;g;){if(g===n){d=!0,n=a,l=u;break}if(g===l){d=!0,l=a,n=u;break}g=g.sibling}if(!d){for(g=u.child;g;){if(g===n){d=!0,n=u,l=a;break}if(g===l){d=!0,l=u,n=a;break}g=g.sibling}if(!d)throw Error(o(189))}}if(n.alternate!==l)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?e:t}function S(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=S(e),t!==null)return t;e=e.sibling}return null}function y(e,t,n,l,a,u){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,l,a,u)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&y(e.child,t,n,l,a,u))return!0;e=e.sibling}return!1}function E(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function A(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),!(e.tag===3||e.tag===5||e.tag===27));)e=e.return;return t}function j(e){var t=[null,null],n=E(e);return n===null||D(t,e,n.child,{foundSelf:!1}),t}function D(e,t,n,l){for(;n!==null;){if(n===t)l.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(l.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&D(e,t,n.child,l))return!0;n=n.sibling}return!1}function L(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(o(559))}}var Y=null,G=null;function k(e,t,n){return e===n?!0:e===t?(Y=e,!0):!1}function V(e,t,n){return e===n?(G=e,!1):e===t?(G!==null&&(Y=e),!0):!1}function I(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function R(e,t,n){for(var l=0,a=e;a;a=n(a))l++;a=0;for(var u=t;u;u=n(u))a++;for(;0<l-a;)e=n(e),l--;for(;0<a-l;)t=n(t),a--;for(;l--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var T=Object.assign,z=Symbol.for("react.element"),Z=Symbol.for("react.transitional.element"),te=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),ue=Symbol.for("react.consumer"),ge=Symbol.for("react.context"),F=Symbol.for("react.forward_ref"),ae=Symbol.for("react.suspense"),ce=Symbol.for("react.suspense_list"),xe=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),Se=Symbol.for("react.activity"),J=Symbol.for("react.legacy_hidden"),me=Symbol.for("react.memo_cache_sentinel"),N=Symbol.for("react.view_transition"),U=Symbol.for("react.recoverable"),$=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=$&&e[$]||e["@@iterator"],typeof e=="function"?e:null)}var he=Symbol.for("react.client.reference");function ie(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===he?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case W:return"Fragment";case ne:return"Profiler";case P:return"StrictMode";case ae:return"Suspense";case ce:return"SuspenseList";case Se:return"Activity";case N:return"ViewTransition"}if(typeof e=="object")switch(e.$$typeof){case te:return"Portal";case ge:return e.displayName||"Context";case ue:return(e._context.displayName||"Context")+".Consumer";case F:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case xe:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case K:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var Ee=Array.isArray,fe=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ye=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Dt={pending:!1,data:null,method:null,action:null},Wn=[],ga=-1;function vn(e){return{current:e}}function mt(e){0>ga||(e.current=Wn[ga],Wn[ga]=null,ga--)}function qe(e,t){ga++,Wn[ga]=e.current,e.current=t}var gn=vn(null),yi=vn(null),el=vn(null),Su=vn(null);function Eu(e,t){switch(qe(el,t),qe(yi,e),qe(gn,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Sg(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Sg(t),e=Eg(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}mt(gn),qe(gn,e)}function ya(){mt(gn),mt(yi),mt(el)}function wo(e){var t=e.memoizedState;t!==null&&(ai._currentValue=t.memoizedState,qe(Su,e)),t=gn.current;var n=Eg(t,e.type);t!==n&&(qe(yi,e),qe(gn,n))}function Cu(e){yi.current===e&&(mt(gn),mt(yi)),Su.current===e&&(mt(Su),ai._currentValue=Dt)}var To,Yd;function tl(e){if(To===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);To=t&&t[1]||"",Yd=-1<n.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+To+e+Yd}var _o=!1;function Ao(e,t){if(!e||_o)return"";_o=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var X=function(){throw Error()};if(Object.defineProperty(X.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(X,[])}catch(le){var _=le}Reflect.construct(e,[],X)}else{try{X.call()}catch(le){_=le}X=!1;try{var H=Object.getOwnPropertyDescriptor(e.prototype,"props");Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),X=!0,new e}finally{X&&(H!==void 0?Object.defineProperty(e.prototype,"props",H):delete e.prototype.props)}}}else{try{throw Error()}catch(le){_=le}(X=e())&&typeof X.catch=="function"&&X.catch(function(){})}}catch(le){if(le&&_&&typeof le.stack=="string")return[le.stack,_.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var u=l.DetermineComponentFrameRoot(),d=u[0],g=u[1];if(d&&g){var C=d.split(`
|
||
`),M=g.split(`
|
||
`);for(a=l=0;l<C.length&&!C[l].includes("DetermineComponentFrameRoot");)l++;for(;a<M.length&&!M[a].includes("DetermineComponentFrameRoot");)a++;if(l===C.length||a===M.length)for(l=C.length-1,a=M.length-1;1<=l&&0<=a&&C[l]!==M[a];)a--;for(;1<=l&&0<=a;l--,a--)if(C[l]!==M[a]){if(l!==1||a!==1)do if(l--,a--,0>a||C[l]!==M[a]){var q=`
|
||
`+C[l].replace(" at new "," at ");return e.displayName&&q.includes("<anonymous>")&&(q=q.replace("<anonymous>",e.displayName)),q}while(1<=l&&0<=a);break}}}finally{_o=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?tl(n):""}function Hp(e,t){switch(e.tag){case 26:case 27:case 5:return tl(e.type);case 16:return tl("Lazy");case 13:return e.child!==t&&t!==null?tl("Suspense Fallback"):tl("Suspense");case 19:return tl("SuspenseList");case 0:case 15:return Ao(e.type,!1);case 11:return Ao(e.type.render,!1);case 1:return Ao(e.type,!0);case 31:return tl("Activity");case 30:return tl("ViewTransition");default:return""}}function Vd(e){try{var t="",n=null;do t+=Hp(e,n),n=e,e=e.return;while(e);return t}catch(l){return`
|
||
Error generating stack: `+l.message+`
|
||
`+l.stack}}var Ro=Object.prototype.hasOwnProperty,jo=i.unstable_scheduleCallback,Oo=i.unstable_cancelCallback,Lp=i.unstable_shouldYield,qp=i.unstable_requestPaint,Ut=i.unstable_now,Gp=i.unstable_getCurrentPriorityLevel,Qd=i.unstable_ImmediatePriority,Xd=i.unstable_UserBlockingPriority,Nu=i.unstable_NormalPriority,Yp=i.unstable_LowPriority,Zd=i.unstable_IdlePriority,Vp=i.log,Qp=i.unstable_setDisableYieldValue,pi=null,Bt=null;function nl(e){if(typeof Vp=="function"&&Qp(e),Bt&&typeof Bt.setStrictMode=="function")try{Bt.setStrictMode(pi,e)}catch{}}var kt=Math.clz32?Math.clz32:Kp,Xp=Math.log,Zp=Math.LN2;function Kp(e){return e>>>=0,e===0?32:31-(Xp(e)/Zp|0)|0}var wu=256,Tu=262144,_u=4194304;function Bl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Au(e,t,n){var l=e.pendingLanes;if(l===0)return 0;var a=0,u=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var g=l&134217727;return g!==0?(l=g&~u,l!==0?a=Bl(l):(d&=g,d!==0?a=Bl(d):n||(n=g&~e,n!==0&&(a=Bl(n))))):(g=l&~u,g!==0?a=Bl(g):d!==0?a=Bl(d):n||(n=l&~e,n!==0&&(a=Bl(n)))),a===0?0:t!==0&&t!==a&&(t&u)===0&&(u=a&-a,n=t&-t,u>=n||u===32&&(n&4194048)!==0)?t:a}function bi(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Kd(e,t){(t&8)!==0&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var l=31-kt(n),a=1<<l;t|=e[l],n&=~a}return t}function Ip(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Id(){var e=_u;return _u<<=1,(_u&62914560)===0&&(_u=4194304),e}function Mo(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function xi(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Jp(e,t,n,l,a,u){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var g=e.entanglements,C=e.expirationTimes,M=e.hiddenUpdates;for(n=d&~n;0<n;){var q=31-kt(n),X=1<<q;g[q]=0,C[q]=-1;var _=M[q];if(_!==null)for(M[q]=null,q=0;q<_.length;q++){var H=_[q];H!==null&&(H.lane&=-536870913)}n&=~X}l!==0&&Jd(e,l,0),u!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=u&~(d&~t))}function Jd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-kt(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|n&261930}function Fd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var l=31-kt(n),a=1<<l;a&t|e[l]&t&&(e[l]|=t),n&=~a}}function Pd(e,t){var n=t&-t;return n=(n&42)!==0?1:zo(n),(n&(e.suspendedLanes|t))!==0?0:n}function zo(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Do(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function $d(){var e=ye.p;return e!==0?e:(e=window.event,e===void 0?32:i0(e.type))}function Wd(e,t){var n=ye.p;try{return ye.p=e,t()}finally{ye.p=n}}var Mn=Math.random().toString(36).slice(2),ht="__reactFiber$"+Mn,_t="__reactProps$"+Mn,pa="__reactContainer$"+Mn,em="__reactEvents$"+Mn,Fp="__reactListeners$"+Mn,Pp="__reactHandles$"+Mn,tm="__reactResources$"+Mn,Si="__reactMarker$"+Mn,Ru="__reactLoad$"+Mn;function ju(e){delete e[ht],delete e[_t],delete e[Fp],delete e[Pp]}function kl(e){var t;if(t=e[ht])return t;for(var n=e.parentNode;n;){if(t=n[pa]||n[ht]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Lg(e);e!==null;){if(n=e[ht])return n;e=Lg(e)}return t}e=n,n=e.parentNode}return null}function ba(e){if(e=e[ht]||e[pa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ei(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function xa(e){var t=e[tm];return t||(t=e[tm]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rt(e){e[Si]=!0}function nm(e){e[Ru]=void 0}var lm=new Set,am={};function Hl(e,t){Sa(e,t),Sa(e+"Capture",t)}function Sa(e,t){for(am[e]=t,e=0;e<t.length;e++)lm.add(t[e])}var $p=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]*$"),im={},um={};function Wp(e){return Ro.call(um,e)?!0:Ro.call(im,e)?!1:$p.test(e)?um[e]=!0:(im[e]=!0,!1)}var Me=!1;function rm(){var e=Me;return Me=!1,e}function Ou(e,t,n){if(Wp(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,n)}}function Mu(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,n)}}function zn(e,t,n,l){if(l===null)e.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,l)}}function Ht(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function om(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function eb(e,t,n){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var a=l.get,u=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(d){n=""+d,u.call(this,d)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Uo(e){if(!e._valueTracker){var t=om(e)?"checked":"value";e._valueTracker=eb(e,t,""+e[t])}}function cm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),l="";return e&&(l=om(e)?e.checked?"true":"false":e.value),e=l,e!==n?(t.setValue(e),!0):!1}var tb=/[\n"\\]/g;function It(e){return e.replace(tb,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Bo(e,t,n,l,a,u,d,g){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ht(t)):e.value!==""+Ht(t)&&(e.value=""+Ht(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?d==="number"&&e.value==t?ko(e,Ht(e.value)):ko(e,Ht(t)):n!=null?ko(e,Ht(n)):l!=null&&e.removeAttribute("value"),a==null&&u!=null&&(e.defaultChecked=!!u),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.name=""+Ht(g):e.removeAttribute("name")}function sm(e,t,n,l,a,u,d,g){if(u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.type=u),t!=null||n!=null){if(!(u!=="submit"&&u!=="reset"||t!=null)){Uo(e);return}n=n!=null?""+Ht(n):"",t=t!=null?""+Ht(t):n,g||t===e.value||(e.value=t),e.defaultValue=t}l=l??a,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=g?e.checked:!!l,e.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),Uo(e)}function ko(e,t){e.defaultValue!==""+t&&(e.defaultValue=""+t)}function Ea(e,t,n,l){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&l&&(e[n].defaultSelected=!0)}else{for(n=""+Ht(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,l&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function fm(e,t,n){if(t!=null&&(t=""+Ht(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Ht(n):""}function dm(e,t,n,l){if(t==null){if(l!=null){if(n!=null)throw Error(o(92));if(Ee(l)){if(1<l.length)throw Error(o(93));l=l[0]}n=l}n==null&&(n=""),t=n}n=Ht(t),e.defaultValue=n,l=e.textContent,l===n&&l!==""&&l!==null&&(e.value=l),Uo(e)}function Ca(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var nb=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 mm(e,t,n){var l=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,n):typeof n!="number"||n===0||nb.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function hm(e,t,n){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,n!=null){for(var l in n)!n.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="",Me=!0);for(var a in t)l=t[a],t.hasOwnProperty(a)&&n[a]!==l&&(mm(e,a,l),Me=!0)}else for(var u in t)t.hasOwnProperty(u)&&mm(e,u,t[u])}function Ho(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var lb=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"]]),ab=/^[\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 zu(e){return ab.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function yn(){}var Lo=null;function qo(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Na=null,wa=null;function vm(e){var t=ba(e);if(t&&(e=t.stateNode)){var n=e[_t]||null;e:switch(e=t.stateNode,t.type){case"input":if(Bo(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+It(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var l=n[t];if(l!==e&&l.form===e.form){var a=l[_t]||null;if(!a)throw Error(o(90));Bo(l,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)l=n[t],l.form===e.form&&cm(l)}break e;case"textarea":fm(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ea(e,!!n.multiple,t,!1)}}}var Go=!1;function gm(e,t,n){if(Go)return e(t,n);Go=!0;try{var l=e(t);return l}finally{if(Go=!1,(Na!==null||wa!==null)&&(zr(),Na&&(t=Na,e=wa,wa=Na=null,vm(t),e)))for(t=0;t<e.length;t++)vm(e[t])}}function Ci(e,t){var n=e.stateNode;if(n===null)return null;var l=n[_t]||null;if(l===null)return null;n=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(o(231,t,typeof n));return n}var Dn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yo=!1;if(Dn)try{var Ni={};Object.defineProperty(Ni,"passive",{get:function(){Yo=!0}}),window.addEventListener("test",Ni,Ni),window.removeEventListener("test",Ni,Ni)}catch{Yo=!1}var ll=null,Vo=null,Du=null;function ym(){if(Du)return Du;var e,t=Vo,n=t.length,l,a="value"in ll?ll.value:ll.textContent,u=a.length;for(e=0;e<n&&t[e]===a[e];e++);var d=n-e;for(l=1;l<=d&&t[n-l]===a[u-l];l++);return Du=a.slice(e,1<l?1-l:void 0)}function Uu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Bu(){return!0}function pm(){return!1}function Ct(e){function t(n,l,a,u,d){this._reactName=n,this._targetInst=a,this.type=l,this.nativeEvent=u,this.target=d,this.currentTarget=null;for(var g in e)e.hasOwnProperty(g)&&(n=e[g],this[g]=n?n(u):u[g]);return this.isDefaultPrevented=(u.defaultPrevented!=null?u.defaultPrevented:u.returnValue===!1)?Bu:pm,this.isPropagationStopped=pm,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Bu)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Bu)},persist:function(){},isPersistent:Bu}),t}var al={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ku=Ct(al),wi=T({},al,{view:0,detail:0}),ib=Ct(wi),Qo,Xo,Ti,Hu=T({},wi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ko,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ti&&(Ti&&e.type==="mousemove"?(Qo=e.screenX-Ti.screenX,Xo=e.screenY-Ti.screenY):Xo=Qo=0,Ti=e),Qo)},movementY:function(e){return"movementY"in e?e.movementY:Xo}}),bm=Ct(Hu),ub=T({},Hu,{dataTransfer:0}),rb=Ct(ub),ob=T({},wi,{relatedTarget:0}),Zo=Ct(ob),cb=T({},al,{animationName:0,elapsedTime:0,pseudoElement:0}),sb=Ct(cb),fb=T({},al,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),db=Ct(fb),mb=T({},al,{data:0}),xm=Ct(mb),hb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vb={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"},gb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function yb(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=gb[e])?!!t[e]:!1}function Ko(){return yb}var pb=T({},wi,{key:function(e){if(e.key){var t=hb[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Uu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vb[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ko,charCode:function(e){return e.type==="keypress"?Uu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Uu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),bb=Ct(pb),xb=T({},Hu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sm=Ct(xb),Sb=T({},al,{submitter:0}),Eb=Ct(Sb),Cb=T({},wi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ko}),Nb=Ct(Cb),wb=T({},al,{propertyName:0,elapsedTime:0,pseudoElement:0}),Tb=Ct(wb),_b=T({},Hu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ab=Ct(_b),Rb=T({},al,{newState:0,oldState:0,source:0}),jb=Ct(Rb),Ob=[9,13,27,32],Io=Dn&&"CompositionEvent"in window,_i=null;Dn&&"documentMode"in document&&(_i=document.documentMode);var Mb=Dn&&"TextEvent"in window&&!_i,Em=Dn&&(!Io||_i&&8<_i&&11>=_i),Cm=" ",Nm=!1;function wm(e,t){switch(e){case"keyup":return Ob.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ta=!1;function zb(e,t){switch(e){case"compositionend":return Tm(t);case"keypress":return t.which!==32?null:(Nm=!0,Cm);case"textInput":return e=t.data,e===Cm&&Nm?null:e;default:return null}}function Db(e,t){if(Ta)return e==="compositionend"||!Io&&wm(e,t)?(e=ym(),Du=Vo=ll=null,Ta=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Em&&t.locale!=="ko"?null:t.data;default:return null}}var Ub={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 _m(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Ub[e.type]:t==="textarea"}function Am(e,t,n,l){Na?wa?wa.push(l):wa=[l]:Na=l,t=Lr(t,"onChange"),0<t.length&&(n=new ku("onChange","change",null,n,l),e.push({event:n,listeners:t}))}var Ai=null,Ri=null;function Bb(e){vg(e,0)}function Lu(e){var t=Ei(e);if(cm(t))return e}function Rm(e,t){if(e==="change")return t}var jm=!1;if(Dn){var Jo;if(Dn){var Fo="oninput"in document;if(!Fo){var Om=document.createElement("div");Om.setAttribute("oninput","return;"),Fo=typeof Om.oninput=="function"}Jo=Fo}else Jo=!1;jm=Jo&&(!document.documentMode||9<document.documentMode)}function Mm(){Ai&&(Ai.detachEvent("onpropertychange",zm),Ri=Ai=null)}function zm(e){if(e.propertyName==="value"&&Lu(Ri)){var t=[];Am(t,Ri,e,qo(e)),gm(Bb,t)}}function kb(e,t,n){e==="focusin"?(Mm(),Ai=t,Ri=n,Ai.attachEvent("onpropertychange",zm)):e==="focusout"&&Mm()}function Hb(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Lu(Ri)}function Lb(e,t){if(e==="click")return Lu(t)}function qb(e,t){if(e==="input"||e==="change")return Lu(t)}function Gb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Lt=typeof Object.is=="function"?Object.is:Gb;function ji(e,t){if(Lt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),l=Object.keys(t);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var a=n[l];if(!Ro.call(t,a)||!Lt(e[a],t[a]))return!1}return!0}function Po(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Dm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Um(e,t){var n=Dm(e);e=0;for(var l;n;){if(n.nodeType===3){if(l=e+n.textContent.length,e<=t&&l>=t)return{node:n,offset:t-e};e=l}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Dm(n)}}function Bm(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Bm(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function km(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Po(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Po(e.document)}return t}function $o(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Yb=Dn&&"documentMode"in document&&11>=document.documentMode,_a=null,Wo=null,Oi=null,ec=!1;function Hm(e,t,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ec||_a==null||_a!==Po(l)||(l=_a,"selectionStart"in l&&$o(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Oi&&ji(Oi,l)||(Oi=l,l=Lr(Wo,"onSelect"),0<l.length&&(t=new ku("onSelect","select",null,t,n),e.push({event:t,listeners:l}),t.target=_a)))}function Ll(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Aa={animationend:Ll("Animation","AnimationEnd"),animationiteration:Ll("Animation","AnimationIteration"),animationstart:Ll("Animation","AnimationStart"),transitionrun:Ll("Transition","TransitionRun"),transitionstart:Ll("Transition","TransitionStart"),transitioncancel:Ll("Transition","TransitionCancel"),transitionend:Ll("Transition","TransitionEnd")},tc={},Lm={};Dn&&(Lm=document.createElement("div").style,"AnimationEvent"in window||(delete Aa.animationend.animation,delete Aa.animationiteration.animation,delete Aa.animationstart.animation),"TransitionEvent"in window||delete Aa.transitionend.transition);function ql(e){if(tc[e])return tc[e];if(!Aa[e])return e;var t=Aa[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Lm)return tc[e]=t[n];return e}var qm=ql("animationend"),Gm=ql("animationiteration"),Ym=ql("animationstart"),Vb=ql("transitionrun"),Qb=ql("transitionstart"),Xb=ql("transitioncancel"),Vm=ql("transitionend"),Qm=new Map,nc="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(" ");nc.push("scrollEnd");function cn(e,t){Qm.set(e,t),Hl(t,[e])}var Zb=0;function Un(e,t){if(e.name!=null&&e.name!=="auto")return e.name;if(t.autoName!==null)return t.autoName;e=mn.identifierPrefix;var n=Zb++;return e="_"+e+"t_"+n.toString(32)+"_",t.autoName=e}function Xm(e){if(e==null||typeof e=="string")return e;var t=null,n=Ia;if(n!==null)for(var l=0;l<n.length;l++){var a=e[n[l]];if(a!=null){if(a==="none")return"none";t=t==null?a:t+(" "+a)}}return t??e.default}function Bn(e,t){return e=Xm(e),t=Xm(t),t==null?e==="auto"?null:e:t==="auto"?null:t}var qu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Jt=[],Ra=0,lc=0;function Gu(){for(var e=Ra,t=lc=Ra=0;t<e;){var n=Jt[t];Jt[t++]=null;var l=Jt[t];Jt[t++]=null;var a=Jt[t];Jt[t++]=null;var u=Jt[t];if(Jt[t++]=null,l!==null&&a!==null){var d=l.pending;d===null?a.next=a:(a.next=d.next,d.next=a),l.pending=a}u!==0&&Zm(n,a,u)}}function Yu(e,t,n,l){Jt[Ra++]=e,Jt[Ra++]=t,Jt[Ra++]=n,Jt[Ra++]=l,lc|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function ac(e,t,n,l){return Yu(e,t,n,l),Vu(e)}function Gl(e,t){return Yu(e,null,null,t),Vu(e)}function Zm(e,t,n){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n);for(var a=!1,u=e.return;u!==null;)u.childLanes|=n,l=u.alternate,l!==null&&(l.childLanes|=n),u.tag===22&&(e=u.stateNode,e===null||e._visibility&1||(a=!0)),e=u,u=u.return;return e.tag===3?(u=e.stateNode,a&&t!==null&&(a=31-kt(n),e=u.hiddenUpdates,l=e[a],l===null?e[a]=[t]:l.push(t),t.lane=n|536870912),u):null}function Vu(e){if(50<Wi)throw Wi=0,Mr=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ja={};function Kb(e,t,n,l){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function At(e,t,n,l){return new Kb(e,t,n,l)}function ic(e){return e=e.prototype,!(!e||!e.isReactComponent)}function kn(e,t){var n=e.alternate;return n===null?(n=At(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Km(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Qu(e,t,n,l,a,u){var d=0;if(l=e,typeof l=="function")ic(l)&&(d=1);else if(typeof l=="string")d=SS(e,n,gn.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(l){case Se:return e=At(31,n,t,a),e.elementType=Se,e.lanes=u,e;case W:return Yl(n.children,a,u,t);case P:d=8,a|=24;break;case ne:return e=At(12,n,t,a|2),e.elementType=ne,e.lanes=u,e;case ae:return e=At(13,n,t,a),e.elementType=ae,e.lanes=u,e;case ce:return e=At(19,n,t,a),e.elementType=ce,e.lanes=u,e;case J:case N:return e=a|32,e=At(30,n,t,e),e.elementType=N,e.lanes=u,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case ge:d=10;break e;case ue:d=9;break e;case F:d=11;break e;case xe:d=14;break e;case K:d=16,l=null;break e}d=29,n=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=At(d,n,t,a),t.elementType=e,t.type=l,t.lanes=u,t}function Yl(e,t,n,l){return e=At(7,e,l,t),e.lanes=n,e}function uc(e,t,n){return e=At(6,e,null,t),e.lanes=n,e}function Im(e){var t=At(18,null,null,0);return t.stateNode=e,t}function rc(e,t,n){return t=At(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Jm=new WeakMap;function Ft(e,t){if(typeof e=="object"&&e!==null){var n=Jm.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Vd(t)},Jm.set(e,t),t)}return{value:e,source:t,stack:Vd(t)}}var Oa=[],Ma=0,Xu=null,Mi=0,Pt=[],$t=0,il=null,pn=1,bn="";function Hn(e,t){Oa[Ma++]=Mi,Oa[Ma++]=Xu,Xu=e,Mi=t}function Fm(e,t,n){Pt[$t++]=pn,Pt[$t++]=bn,Pt[$t++]=il,il=e;var l=pn;e=bn;var a=32-kt(l)-1;l&=~(1<<a),n+=1;var u=32-kt(t)+a;if(30<u){var d=a-a%5;u=(l&(1<<d)-1).toString(32),l>>=d,a-=d,pn=1<<32-kt(t)+a|n<<a|l,bn=u+e}else pn=1<<u|n<<a|l,bn=e}function Zu(e){e.return!==null&&(Hn(e,1),Fm(e,1,0))}function oc(e){for(;e===Xu;)Xu=Oa[--Ma],Oa[Ma]=null,Mi=Oa[--Ma],Oa[Ma]=null;for(;e===il;)il=Pt[--$t],Pt[$t]=null,bn=Pt[--$t],Pt[$t]=null,pn=Pt[--$t],Pt[$t]=null}function Pm(e,t){Pt[$t++]=pn,Pt[$t++]=bn,Pt[$t++]=il,pn=t.id,bn=t.overflow,il=e}var ot=null,Ge=null,we=!1,ul=null,Wt=!1,cc=Error(o(519));function rl(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw zi(Ft(t,e)),cc}function $m(e){var t=e.stateNode,n=e.type,l=e.memoizedProps;switch(t[ht]=e,t[_t]=l,n){case"dialog":Ae("cancel",t),Ae("close",t);break;case"iframe":case"object":case"embed":Ae("load",t);break;case"video":case"audio":for(n=0;n<tu.length;n++)Ae(tu[n],t);break;case"source":Ae("error",t);break;case"img":case"image":case"link":Ae("error",t),Ae("load",t);break;case"details":Ae("toggle",t);break;case"input":Ae("invalid",t),sm(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Ae("invalid",t);break;case"textarea":Ae("invalid",t),dm(t,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||l.suppressHydrationWarning===!0||bg(t.textContent,n)?(l.popover!=null&&(Ae("beforetoggle",t),Ae("toggle",t)),l.onScroll!=null&&Ae("scroll",t),l.onScrollEnd!=null&&Ae("scrollend",t),l.onClick!=null&&(t.onclick=yn),t=!0):t=!1,t||rl(e,!0)}function Ku(e){for(ot=e.return;ot;)switch(ot.tag){case 5:case 31:case 13:Wt=!1;return;case 27:case 3:Wt=!0;return;default:ot=ot.return}}function za(e){if(e!==ot)return!1;if(!we)return Ku(e),we=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Ls(e.type,e.memoizedProps)),n=!n),n&&Ge&&rl(e),Ku(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ge=Hg(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));Ge=Hg(e)}else t===27?(t=Ge,Cl(e.type)?(e=Is,Is=null,Ge=e):Ge=t):Ge=ot?tn(e.stateNode.nextSibling):null;return!0}function Vl(){Ge=ot=null,we=!1}function sc(){var e=ul;return e!==null&&(Ot===null?Ot=e:Ot.push.apply(Ot,e),ul=null),e}function zi(e){ul===null?ul=[e]:ul.push(e)}var fc=vn(null),Ql=null,Ln=null;function ol(e,t,n){qe(fc,t._currentValue),t._currentValue=n}function qn(e){e._currentValue=fc.current,mt(fc)}function Iu(e,t,n){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===n)break;e=e.return}}function dc(e,t,n,l){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var u=a.dependencies;if(u!==null){var d=a.child;u=u.firstContext;e:for(;u!==null;){var g=u;u=a;for(var C=0;C<t.length;C++)if(g.context===t[C]){u.lanes|=n,g=u.alternate,g!==null&&(g.lanes|=n),Iu(u.return,n,e),l||(d=null);break e}u=g.next}}else if(a.tag===18){if(d=a.return,d===null)throw Error(o(341));d.lanes|=n,u=d.alternate,u!==null&&(u.lanes|=n),Iu(d,n,e),d=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,d=a.alternate,d!==null&&(d.lanes|=n),Iu(a.return,n,e),d=a.child,d=d!==null?d.sibling:null):d=a.child;if(d!==null)d.return=a;else for(d=a;d!==null;){if(d===e){d=null;break}if(a=d.sibling,a!==null){a.return=d.return,d=a;break}d=d.return}a=d}}function Xl(e,t,n,l){e=null;for(var a=t,u=!1;a!==null;){if(!u){if((a.flags&524288)!==0)u=!0;else if((a.flags&262144)!==0)break}if(a.tag===10){var d=a.alternate;if(d===null)throw Error(o(387));if(d=d.memoizedProps,d!==null){var g=a.type;Lt(a.pendingProps.value,d.value)||(e!==null?e.push(g):e=[g])}}else if(a===Su.current){if(d=a.alternate,d===null)throw Error(o(387));d.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(ai):e=[ai])}a=a.return}return e!==null&&dc(t,e,n,l),t.flags|=262144,e!==null}function Ju(e){for(e=e.firstContext;e!==null;){if(!Lt(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Zl(e){Ql=e,Ln=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function vt(e){return Wm(Ql,e)}function Fu(e,t){return Ql===null&&Zl(e),Wm(e,t)}function Wm(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ln===null){if(e===null)throw Error(o(308));Ln=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ln=Ln.next=t;return n}var Ib=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Jb=i.unstable_scheduleCallback,Fb=i.unstable_NormalPriority,$e={$$typeof:ge,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function mc(){return{controller:new Ib,data:new Map,refCount:0}}function Di(e){e.refCount--,e.refCount===0&&Jb(Fb,function(){e.controller.abort()})}function eh(e,t){if((e.pendingLanes&4194048)!==0){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var l=t[e];n.indexOf(l)===-1&&n.push(l)}}}var Ui=null;function Pb(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Bi=null,hc=0,Kl=0,Da=null;function $b(e,t){if(Bi===null){var n=Bi=[];hc=0,Kl=js(),Da={status:"pending",value:void 0,then:function(l){n.push(l)}}}return hc++,t.then(th,th),t}function th(){if(--hc===0&&(Ui=null,Bi!==null)){Da!==null&&(Da.status="fulfilled");var e=Bi;Bi=null,Kl=0,Da=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Wb(e,t){var n=[],l={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(l.status="rejected",l.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),l}var nh=fe.S;fe.S=function(e,t){if(Iv=Ut(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&$b(e,t),Ui!==null)for(var n=$a;n!==null;)eh(n,Ui),n=n.next;if(n=e.types,n!==null){for(var l=$a;l!==null;)eh(l,n),l=l.next;if(Kl!==0){l=Ui,l===null&&(l=Ui=[]);for(var a=0;a<n.length;a++){var u=n[a];l.indexOf(u)===-1&&l.push(u)}}}nh!==null&&nh(e,t)};var Il=vn(null);function vc(){var e=Il.current;return e!==null?e:Le.pooledCache}function Pu(e,t){t===null?qe(Il,Il.current):qe(Il,t.pool)}function lh(){var e=vc();return e===null?null:{parent:$e._currentValue,pool:e}}var Ua=Error(o(460)),gc=Error(o(474)),$u=Error(o(542)),Wu={then:function(){}};function ah(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ih(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(yn,yn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,rh(e),e===void 0&&!("reason"in t)?Error(o(600)):e;default:if(typeof t.status=="string")t.then(yn,yn);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=l}},function(l){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,rh(e),e}throw Fl=t,Ua}}function Jl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Fl=n,Ua):n}}var Fl=null;function uh(){if(Fl===null)throw Error(o(459));var e=Fl;return Fl=null,e}function rh(e){if(e===Ua||e===$u)throw Error(o(483))}var Ba=null,ki=0;function er(e){var t=ki;return ki+=1,Ba===null&&(Ba=[]),ih(Ba,e,t)}function cl(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function tr(e,t){throw t.$$typeof===z?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function oh(e){function t(O,w){if(e){var B=O.deletions;B===null?(O.deletions=[w],O.flags|=16):B.push(w)}}function n(O,w){if(!e)return null;for(;w!==null;)t(O,w),w=w.sibling;return null}function l(O){for(var w=new Map;O!==null;)O.key===null?w.set(O.index,O):w.set(O.key,O),O=O.sibling;return w}function a(O,w){return O=kn(O,w),O.index=0,O.sibling=null,O}function u(O,w,B){return O.index=B,e?(B=O.alternate,B!==null?(B=B.index,B<w?(O.flags|=2,w):B):(O.flags|=134217730,w)):(O.flags|=1048576,w)}function d(O){return e&&O.alternate===null&&(O.flags|=134217730),O}function g(O,w,B,Q){return w===null||w.tag!==6?(w=uc(B,O.mode,Q),w.return=O,w):(w=a(w,B),w.return=O,w)}function C(O,w,B,Q){var re=B.type;return re===W?(O=q(O,w,B.props.children,Q,B.key),cl(O,B),O):w!==null&&(w.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===K&&Jl(re)===w.type)?(w=a(w,B.props),cl(w,B),w.return=O,w):(w=Qu(B.type,B.key,B.props,null,O.mode,Q),cl(w,B),w.return=O,w)}function M(O,w,B,Q){return w===null||w.tag!==4||w.stateNode.containerInfo!==B.containerInfo||w.stateNode.implementation!==B.implementation?(w=rc(B,O.mode,Q),w.return=O,w):(w=a(w,B.children||[]),w.return=O,w)}function q(O,w,B,Q,re){return w===null||w.tag!==7?(w=Yl(B,O.mode,Q,re),w.return=O,w):(w=a(w,B),w.return=O,w)}function X(O,w,B){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return w=uc(""+w,O.mode,B),w.return=O,w;if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Z:return B=Qu(w.type,w.key,w.props,null,O.mode,B),cl(B,w),B.return=O,B;case te:return w=rc(w,O.mode,B),w.return=O,w;case K:return w=Jl(w),X(O,w,B)}if(Ee(w)||ee(w))return w=Yl(w,O.mode,B,null),w.return=O,w;if(typeof w.then=="function")return X(O,er(w),B);if(w.$$typeof===ge)return X(O,Fu(O,w),B);tr(O,w)}return null}function _(O,w,B,Q){var re=w!==null?w.key:null;if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return re!==null?null:g(O,w,""+B,Q);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case Z:return B.key===re?C(O,w,B,Q):null;case te:return B.key===re?M(O,w,B,Q):null;case K:return B=Jl(B),_(O,w,B,Q)}if(Ee(B)||ee(B))return re!==null?null:q(O,w,B,Q,null);if(typeof B.then=="function")return _(O,w,er(B),Q);if(B.$$typeof===ge)return _(O,w,Fu(O,B),Q);tr(O,B)}return null}function H(O,w,B,Q,re){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return O=O.get(B)||null,g(w,O,""+Q,re);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case Z:return O=O.get(Q.key===null?B:Q.key)||null,C(w,O,Q,re);case te:return O=O.get(Q.key===null?B:Q.key)||null,M(w,O,Q,re);case K:return Q=Jl(Q),H(O,w,B,Q,re)}if(Ee(Q)||ee(Q))return O=O.get(B)||null,q(w,O,Q,re,null);if(typeof Q.then=="function")return H(O,w,B,er(Q),re);if(Q.$$typeof===ge)return H(O,w,B,Fu(w,Q),re);tr(w,Q)}return null}function le(O,w,B,Q){for(var re=null,je=null,ve=w,pe=w=0,tt=null;ve!==null&&pe<B.length;pe++){ve.index>pe?(tt=ve,ve=null):tt=ve.sibling;var Oe=_(O,ve,B[pe],Q);if(Oe===null){ve===null&&(ve=tt);break}e&&ve&&Oe.alternate===null&&t(O,ve),w=u(Oe,w,pe),je===null?re=Oe:je.sibling=Oe,je=Oe,ve=tt}if(pe===B.length)return n(O,ve),we&&Hn(O,pe),re;if(ve===null){for(;pe<B.length;pe++)ve=X(O,B[pe],Q),ve!==null&&(w=u(ve,w,pe),je===null?re=ve:je.sibling=ve,je=ve);return we&&Hn(O,pe),re}for(ve=l(ve);pe<B.length;pe++)tt=H(ve,O,pe,B[pe],Q),tt!==null&&(e&&(Oe=tt.alternate,Oe!==null&&ve.delete(Oe.key===null?pe:Oe.key)),w=u(tt,w,pe),je===null?re=tt:je.sibling=tt,je=tt);return e&&ve.forEach(function(Al){return t(O,Al)}),we&&Hn(O,pe),re}function de(O,w,B,Q){if(B==null)throw Error(o(151));for(var re=null,je=null,ve=w,pe=w=0,tt=null,Oe=B.next();ve!==null&&!Oe.done;pe++,Oe=B.next()){ve.index>pe?(tt=ve,ve=null):tt=ve.sibling;var Al=_(O,ve,Oe.value,Q);if(Al===null){ve===null&&(ve=tt);break}e&&ve&&Al.alternate===null&&t(O,ve),w=u(Al,w,pe),je===null?re=Al:je.sibling=Al,je=Al,ve=tt}if(Oe.done)return n(O,ve),we&&Hn(O,pe),re;if(ve===null){for(;!Oe.done;pe++,Oe=B.next())Oe=X(O,Oe.value,Q),Oe!==null&&(w=u(Oe,w,pe),je===null?re=Oe:je.sibling=Oe,je=Oe);return we&&Hn(O,pe),re}for(ve=l(ve);!Oe.done;pe++,Oe=B.next())Oe=H(ve,O,pe,Oe.value,Q),Oe!==null&&(e&&(tt=Oe.alternate,tt!==null&&ve.delete(tt.key===null?pe:tt.key)),w=u(Oe,w,pe),je===null?re=Oe:je.sibling=Oe,je=Oe);return e&&ve.forEach(function(zS){return t(O,zS)}),we&&Hn(O,pe),re}function Ne(O,w,B,Q){if(typeof B=="object"&&B!==null&&B.type===W&&B.key===null&&B.props.ref===void 0&&(B=B.props.children),typeof B=="object"&&B!==null){switch(B.$$typeof){case Z:e:{for(var re=B.key;w!==null;){if(w.key===re){if(re=B.type,re===W){if(w.tag===7){n(O,w.sibling),Q=a(w,B.props.children),cl(Q,B),Q.return=O,O=Q;break e}}else if(w.elementType===re||typeof re=="object"&&re!==null&&re.$$typeof===K&&Jl(re)===w.type){n(O,w.sibling),Q=a(w,B.props),cl(Q,B),Q.return=O,O=Q;break e}n(O,w);break}else t(O,w);w=w.sibling}B.type===W?(Q=Yl(B.props.children,O.mode,Q,B.key),cl(Q,B),Q.return=O,O=Q):(Q=Qu(B.type,B.key,B.props,null,O.mode,Q),cl(Q,B),Q.return=O,O=Q)}return d(O);case te:e:{for(re=B.key;w!==null;){if(w.key===re)if(w.tag===4&&w.stateNode.containerInfo===B.containerInfo&&w.stateNode.implementation===B.implementation){n(O,w.sibling),Q=a(w,B.children||[]),Q.return=O,O=Q;break e}else{n(O,w);break}else t(O,w);w=w.sibling}Q=rc(B,O.mode,Q),Q.return=O,O=Q}return d(O);case K:return B=Jl(B),Ne(O,w,B,Q)}if(Ee(B))return le(O,w,B,Q);if(ee(B)){if(re=ee(B),typeof re!="function")throw Error(o(150));return B=re.call(B),de(O,w,B,Q)}if(typeof B.then=="function")return Ne(O,w,er(B),Q);if(B.$$typeof===ge)return Ne(O,w,Fu(O,B),Q);tr(O,B)}return typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint"?(B=""+B,w!==null&&w.tag===6?(n(O,w.sibling),Q=a(w,B),Q.return=O,O=Q):(n(O,w),Q=uc(B,O.mode,Q),Q.return=O,O=Q),d(O)):n(O,w)}return function(O,w,B,Q){try{ki=0;var re=Ne(O,w,B,Q);return Ba=null,re}catch(ve){if(ve===Ua||ve===$u)throw ve;var je=At(29,ve,null,O.mode);return je.lanes=Q,je.return=O,je}finally{}}}var Pl=oh(!0),ch=oh(!1),sl=!1;function yc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function fl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function dl(e,t,n){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(ze&2)!==0){var a=l.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),l.pending=t,t=Vu(e),Zm(e,null,n),t}return Yu(e,l,t,n),Vu(e)}function Hi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Fd(e,n)}}function bc(e,t){var n=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var a=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};u===null?a=u=d:u=u.next=d,n=n.next}while(n!==null);u===null?a=u=t:u=u.next=t}else a=u=t;n={baseState:l.baseState,firstBaseUpdate:a,lastBaseUpdate:u,shared:l.shared,callbacks:l.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var xc=!1;function Li(){if(xc){var e=Da;if(e!==null)throw e}}function qi(e,t,n,l){xc=!1;var a=e.updateQueue;sl=!1;var u=a.firstBaseUpdate,d=a.lastBaseUpdate,g=a.shared.pending;if(g!==null){a.shared.pending=null;var C=g,M=C.next;C.next=null,d===null?u=M:d.next=M,d=C;var q=e.alternate;q!==null&&(q=q.updateQueue,g=q.lastBaseUpdate,g!==d&&(g===null?q.firstBaseUpdate=M:g.next=M,q.lastBaseUpdate=C))}if(u!==null){var X=a.baseState;d=0,q=M=C=null,g=u;do{var _=g.lane&-536870913,H=_!==g.lane;if(H?(Re&_)===_:(l&_)===_){_!==0&&_===Kl&&(xc=!0),q!==null&&(q=q.next={lane:0,tag:g.tag,payload:g.payload,callback:null,next:null});e:{var le=e,de=g;_=t;var Ne=n;switch(de.tag){case 1:if(le=de.payload,typeof le=="function"){X=le.call(Ne,X,_);break e}X=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=de.payload,_=typeof le=="function"?le.call(Ne,X,_):le,_==null)break e;X=T({},X,_);break e;case 2:sl=!0}}_=g.callback,_!==null&&(e.flags|=64,H&&(e.flags|=8192),H=a.callbacks,H===null?a.callbacks=[_]:H.push(_))}else H={lane:_,tag:g.tag,payload:g.payload,callback:g.callback,next:null},q===null?(M=q=H,C=X):q=q.next=H,d|=_;if(g=g.next,g===null){if(g=a.shared.pending,g===null)break;H=g,g=H.next,H.next=null,a.lastBaseUpdate=H,a.shared.pending=null}}while(!0);q===null&&(C=X),a.baseState=C,a.firstBaseUpdate=M,a.lastBaseUpdate=q,u===null&&(a.shared.lanes=0),bl|=d,e.lanes=d,e.memoizedState=X}}function sh(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function fh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)sh(n[e],t)}var ml=vn(null),nr=vn(0);function dh(e,t){e=Xn,qe(nr,e),qe(ml,t),Xn=e|t.baseLanes}function Sc(){qe(nr,Xn),qe(ml,ml.current)}function Ec(){Xn=nr.current,mt(ml),mt(nr)}var gt=vn(null),Et=null;function hl(e){var t=e.alternate;qe(yt,yt.current&1),qe(gt,e),Et===null&&(t===null||ml.current!==null||t.memoizedState!==null)&&(Et=e)}function Cc(e){qe(yt,yt.current),qe(gt,e),Et===null&&(Et=e)}function mh(e){e.tag===22?(qe(yt,yt.current),qe(gt,e),Et===null&&(Et=e)):vl()}function vl(){qe(yt,yt.current),qe(gt,gt.current)}function qt(e){mt(gt),Et===e&&(Et=null),mt(yt)}var yt=vn(0);function Gi(e,t){qe(gt,gt.current),qe(yt,t)}function Nc(e){mt(yt),mt(gt),Et===e&&(Et=null)}function lr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Zs(n)||Ks(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!=="independent"){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Gn=0,Ce=null,He=null,We=null,ar=!1,ka=!1,$l=!1,ir=0,Yi=0,Ha=null,ex=0;function Ie(){throw Error(o(321))}function wc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Lt(e[n],t[n]))return!1;return!0}function Tc(e,t,n,l,a,u){return Gn=u,Ce=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,fe.H=e===null||e.memoizedState===null?Fh:Ph,$l=!1,u=n(l,a),$l=!1,ka&&(u=vh(t,n,l,a)),hh(e),u}function hh(e){fe.H=dr;var t=He!==null&&He.next!==null;if(Gn=0,We=He=Ce=null,ar=!1,Yi=0,Ha=null,t)throw Error(o(300));e===null||et||(e=e.dependencies,e!==null&&Ju(e)&&(et=!0))}function vh(e,t,n,l){Ce=e;var a=0;do{if(ka&&(Ha=null),Yi=0,ka=!1,25<=a)throw Error(o(301));if(a+=1,We=He=null,e.updateQueue!=null){var u=e.updateQueue;u.lastEffect=null,u.events=null,u.stores=null,u.memoCache!=null&&(u.memoCache.index=0)}fe.H=ox,u=t(n,l)}while(ka);return u}function tx(){var e=fe.H,t=e.useState()[0];return t=typeof t.then=="function"?Vi(t):t,e=e.useState()[0],(He!==null?He.memoizedState:null)!==e&&(Ce.flags|=1024),t}function _c(){var e=ir!==0;return ir=0,e}function Ac(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Rc(e){if(ar){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ar=!1}Gn=0,We=He=Ce=null,ka=!1,Yi=ir=0,Ha=null}function Nt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return We===null?Ce.memoizedState=We=e:We=We.next=e,We}function Fe(){if(He===null){var e=Ce.alternate;e=e!==null?e.memoizedState:null}else e=He.next;var t=We===null?Ce.memoizedState:We.next;if(t!==null)We=t,He=e;else{if(e===null)throw Ce.alternate===null?Error(o(467)):Error(o(310));He=e,e={memoizedState:He.memoizedState,baseState:He.baseState,baseQueue:He.baseQueue,queue:He.queue,next:null},We===null?Ce.memoizedState=We=e:We=We.next=e}return We}function ur(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Vi(e){var t=Yi;return Yi+=1,Ha===null&&(Ha=[]),e=ih(Ha,e,t),t=Ce,(We===null?t.memoizedState:We.next)===null&&(t=t.alternate,fe.H=t===null||t.memoizedState===null?Fh:Ph),e}function rr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Vi(e);if(e.$$typeof===U)return;if(e.$$typeof===ge)return vt(e)}throw Error(o(438,String(e)))}function jc(e){var t=null,n=Ce.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var l=Ce.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=ur(),Ce.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),l=0;l<e;l++)n[l]=me;return t.index++,n}function Yn(e,t){return typeof t=="function"?t(e):t}function or(e){var t=Fe();return Oc(t,He,e)}function Oc(e,t,n){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=n;var a=e.baseQueue,u=l.pending;if(u!==null){if(a!==null){var d=a.next;a.next=u.next,u.next=d}t.baseQueue=a=u,l.pending=null}if(u=e.baseState,a===null)e.memoizedState=u;else{t=a.next;var g=d=null,C=null,M=t,q=!1;do{var X=M.lane&-536870913;if(X!==M.lane?(Re&X)===X:(Gn&X)===X){var _=M.revertLane;if(_===0)C!==null&&(C=C.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),X===Kl&&(q=!0);else if((Gn&_)===_){M=M.next,_===Kl&&(q=!0);continue}else X={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},C===null?(g=C=X,d=u):C=C.next=X,Ce.lanes|=_,bl|=_;X=M.action,$l&&n(u,X),u=M.hasEagerState?M.eagerState:n(u,X)}else _={lane:X,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},C===null?(g=C=_,d=u):C=C.next=_,Ce.lanes|=X,bl|=X;M=M.next}while(M!==null&&M!==t);if(C===null?d=u:C.next=g,!Lt(u,e.memoizedState)&&(et=!0,q&&(n=Da,n!==null)))throw n;e.memoizedState=u,e.baseState=d,e.baseQueue=C,l.lastRenderedState=u}return a===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Mc(e){var t=Fe(),n=t.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=e;var l=n.dispatch,a=n.pending,u=t.memoizedState;if(a!==null){n.pending=null;var d=a=a.next;do u=e(u,d.action),d=d.next;while(d!==a);Lt(u,t.memoizedState)||(et=!0),t.memoizedState=u,t.baseQueue===null&&(t.baseState=u),n.lastRenderedState=u}return[u,l]}function gh(e,t,n){var l=Ce,a=Fe(),u=we;if(u){if(n===void 0)throw Error(o(407));n=n()}else n=t();var d=!Lt((He||a).memoizedState,n);if(d&&(a.memoizedState=n,et=!0),a=a.queue,Uc(bh.bind(null,l,a,e),[e]),e=a.getSnapshot!==t||d||We!==null&&(We.memoizedState.tag&1)!==0,La(e?9:8,{destroy:void 0},ph.bind(null,l,a,n,t),null),e){if(l.flags|=2048,Le===null)throw Error(o(349));u||(Gn&127)!==0||yh(l,t,n)}return n}function yh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ce.updateQueue,t===null?(t=ur(),Ce.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function ph(e,t,n,l){t.value=n,t.getSnapshot=l,xh(t)&&Sh(e)}function bh(e,t,n){return n(function(){xh(t)&&Sh(e)})}function xh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Lt(e,n)}catch{return!0}}function Sh(e){var t=Gl(e,2);t!==null&&Mt(t,e,2)}function zc(e){var t=Nt();if(typeof e=="function"){var n=e;if(e=n(),$l){nl(!0);try{n()}finally{nl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:e},t}function Eh(e,t,n,l){return e.baseState=n,Oc(e,He,typeof l=="function"?l:Yn)}function nx(e,t,n,l,a){if(fr(e))throw Error(o(485));if(e=t.action,e!==null){var u={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){u.listeners.push(d)}};fe.T!==null?n(!0):u.isTransition=!1,l(u),n=t.pending,n===null?(u.next=t.pending=u,Ch(t,u)):(u.next=n.next,t.pending=n.next=u)}}function Ch(e,t){var n=t.action,l=t.payload,a=e.state;if(t.isTransition){var u=fe.T,d={};d.types=u!==null?u.types:null,fe.T=d;try{var g=n(a,l),C=fe.S;C!==null&&C(d,g),Nh(e,t,g)}catch(M){Dc(e,t,M)}finally{u!==null&&d.types!==null&&(u.types=d.types),fe.T=u}}else try{u=n(a,l),Nh(e,t,u)}catch(M){Dc(e,t,M)}}function Nh(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){wh(e,t,l)},function(l){return Dc(e,t,l)}):wh(e,t,n)}function wh(e,t,n){t.status="fulfilled",t.value=n,Th(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ch(e,n)))}function Dc(e,t,n){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=n,Th(t),t=t.next;while(t!==l)}e.action=null}function Th(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function _h(e,t){return t}function Ah(e,t){if(we){var n=Le.formState;if(n!==null){e:{var l=Ce;if(we){if(Ge){t:{for(var a=Ge,u=Wt;a.nodeType!==8;){if(!u){a=null;break t}if(a=tn(a.nextSibling),a===null){a=null;break t}}u=a.data,a=u==="F!"||u==="F"?a:null}if(a){Ge=tn(a.nextSibling),l=a.data==="F!";break e}}rl(l)}l=!1}l&&(t=n[0])}}return n=Nt(),n.memoizedState=n.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_h,lastRenderedState:t},n.queue=l,n=Kh.bind(null,Ce,l),l.dispatch=n,l=zc(!1),u=qc.bind(null,Ce,!1,l.queue),l=Nt(),a={state:t,dispatch:null,action:e,pending:null},l.queue=a,n=nx.bind(null,Ce,a,u,n),a.dispatch=n,l.memoizedState=e,[t,n,!1]}function Rh(e){var t=Fe();return jh(t,He,e)}function jh(e,t,n){if(t=Oc(e,t,_h)[0],e=or(Yn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Vi(t)}catch(d){throw d===Ua?$u:d}else l=t;t=Fe();var a=t.queue,u=a.dispatch;return n!==t.memoizedState&&(Ce.flags|=2048,La(9,{destroy:void 0},lx.bind(null,a,n),null)),[l,u,e]}function lx(e,t){e.action=t}function Oh(e){var t=Fe(),n=He;if(n!==null)return jh(t,n,e);Fe(),t=t.memoizedState,n=Fe();var l=n.queue.dispatch;return n.memoizedState=e,[t,l,!1]}function La(e,t,n,l){return e={tag:e,create:n,deps:l,inst:t,next:null},t=Ce.updateQueue,t===null&&(t=ur(),Ce.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(l=n.next,n.next=e,e.next=l,t.lastEffect=e),e}function Mh(){return Fe().memoizedState}function cr(e,t,n,l){var a=Nt();Ce.flags|=e,a.memoizedState=La(1|t,{destroy:void 0},n,l===void 0?null:l)}function sr(e,t,n,l){var a=Fe();l=l===void 0?null:l;var u=a.memoizedState.inst;He!==null&&l!==null&&wc(l,He.memoizedState.deps)?a.memoizedState=La(t,u,n,l):(Ce.flags|=e,a.memoizedState=La(1|t,u,n,l))}function zh(e,t){cr(8390656,8,e,t)}function Uc(e,t){sr(2048,8,e,t)}function ax(e){Ce.flags|=4;var t=Ce.updateQueue;if(t===null)t=ur(),Ce.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Dh(e){var t=Fe().memoizedState;return ax({ref:t,nextImpl:e}),function(){if((ze&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Uh(e,t){return sr(4,2,e,t)}function Bh(e,t){return sr(4,4,e,t)}function kh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Hh(e,t,n){n=n!=null?n.concat([e]):null,sr(4,4,kh.bind(null,t,e),n)}function Bc(){}function Lh(e,t){var n=Fe();t=t===void 0?null:t;var l=n.memoizedState;return t!==null&&wc(t,l[1])?l[0]:(n.memoizedState=[e,t],e)}function qh(e,t){var n=Fe();t=t===void 0?null:t;var l=n.memoizedState;if(t!==null&&wc(t,l[1]))return l[0];if(l=e(),$l){nl(!0);try{e()}finally{nl(!1)}}return n.memoizedState=[l,t],l}function kc(e,t,n){return n===void 0||(Gn&1073741824)!==0&&(Re&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Fv(),Ce.lanes|=e,bl|=e,n)}function Gh(e,t,n,l){return Lt(n,t)?n:ml.current!==null?(e=kc(e,n,l),Lt(e,t)||(et=!0),e):(Gn&106)===0||(Gn&1073741824)!==0&&(Re&261930)===0?(et=!0,e.memoizedState=n):(e=Fv(),Ce.lanes|=e,bl|=e,t)}function Yh(e,t,n,l,a){var u=ye.p;ye.p=u!==0&&8>u?u:8;var d=fe.T,g={};g.types=d!==null?d.types:null,fe.T=g,qc(e,!1,t,n);try{var C=a(),M=fe.S;if(M!==null&&M(g,C),C!==null&&typeof C=="object"&&typeof C.then=="function"){var q=Wb(C,l);Qi(e,t,q,Qt(e))}else Qi(e,t,l,Qt(e))}catch(X){Qi(e,t,{then:function(){},status:"rejected",reason:X},Qt())}finally{ye.p=u,d!==null&&g.types!==null&&(d.types=g.types),fe.T=d}}function ix(){}function Hc(e,t,n,l){if(e.tag!==5)throw Error(o(476));var a=Vh(e).queue;Yh(e,a,t,Dt,n===null?ix:function(){return Qh(e),n(l)})}function Vh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Dt,baseState:Dt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:Dt},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Yn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Qh(e){var t=Vh(e);t.next===null&&(t=e.alternate.memoizedState),Qi(e,t.next.queue,{},Qt())}function Lc(){return vt(ai)}function Xh(){return Fe().memoizedState}function Zh(){return Fe().memoizedState}function ux(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Qt();e=fl(n);var l=dl(t,e,n);l!==null&&(Mt(l,t,n),Hi(l,t,n)),t={cache:mc()},e.payload=t;return}t=t.return}}function rx(e,t,n){var l=Qt();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fr(e)?Ih(t,n):(n=ac(e,t,n,l),n!==null&&(Mt(n,e,l),Jh(n,t,l)))}function Kh(e,t,n){var l=Qt();Qi(e,t,n,l)}function Qi(e,t,n,l){var a={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(fr(e))Ih(t,a);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var d=t.lastRenderedState,g=u(d,n);if(a.hasEagerState=!0,a.eagerState=g,Lt(g,d))return Yu(e,t,a,0),Le===null&&Gu(),!1}catch{}finally{}if(n=ac(e,t,a,l),n!==null)return Mt(n,e,l),Jh(n,t,l),!0}return!1}function qc(e,t,n,l){if(l={lane:2,revertLane:js(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},fr(e)){if(t)throw Error(o(479))}else t=ac(e,n,l,2),t!==null&&Mt(t,e,2)}function fr(e){var t=e.alternate;return e===Ce||t!==null&&t===Ce}function Ih(e,t){ka=ar=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Jh(e,t,n){if((n&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,n|=l,t.lanes=n,Fd(e,n)}}var dr={readContext:vt,use:rr,useCallback:Ie,useContext:Ie,useEffect:Ie,useImperativeHandle:Ie,useLayoutEffect:Ie,useInsertionEffect:Ie,useMemo:Ie,useReducer:Ie,useRef:Ie,useState:Ie,useDebugValue:Ie,useDeferredValue:Ie,useTransition:Ie,useSyncExternalStore:Ie,useId:Ie,useHostTransitionStatus:Ie,useFormState:Ie,useActionState:Ie,useOptimistic:Ie,useMemoCache:Ie,useCacheRefresh:Ie,useEffectEvent:Ie},Fh={readContext:vt,use:rr,useCallback:function(e,t){return Nt().memoizedState=[e,t===void 0?null:t],e},useContext:vt,useEffect:zh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,cr(4194308,4,kh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return cr(4194308,4,e,t)},useInsertionEffect:function(e,t){cr(4,2,e,t)},useMemo:function(e,t){var n=Nt();t=t===void 0?null:t;var l=e();if($l){nl(!0);try{e()}finally{nl(!1)}}return n.memoizedState=[l,t],l},useReducer:function(e,t,n){var l=Nt();if(n!==void 0){var a=n(t);if($l){nl(!0);try{n(t)}finally{nl(!1)}}}else a=t;return l.memoizedState=l.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},l.queue=e,e=e.dispatch=rx.bind(null,Ce,e),[l.memoizedState,e]},useRef:function(e){var t=Nt();return e={current:e},t.memoizedState=e},useState:function(e){e=zc(e);var t=e.queue,n=Kh.bind(null,Ce,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Bc,useDeferredValue:function(e,t){var n=Nt();return kc(n,e,t)},useTransition:function(){var e=zc(!1);return e=Yh.bind(null,Ce,e.queue,!0,!1),Nt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var l=Ce,a=Nt();if(we){if(n===void 0)throw Error(o(407));n=n()}else{if(n=t(),Le===null)throw Error(o(349));(Re&127)!==0||yh(l,t,n)}a.memoizedState=n;var u={value:n,getSnapshot:t};return a.queue=u,zh(bh.bind(null,l,u,e),[e]),l.flags|=2048,La(9,{destroy:void 0},ph.bind(null,l,u,n,t),null),n},useId:function(){var e=Nt(),t=Le.identifierPrefix;if(we){var n=bn,l=pn;n=(l&~(1<<32-kt(l)-1)).toString(32)+n,t="_"+t+"R_"+n,n=ir++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=ex++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:Lc,useFormState:Ah,useActionState:Ah,useOptimistic:function(e){var t=Nt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=qc.bind(null,Ce,!0,n),n.dispatch=t,[e,t]},useMemoCache:jc,useCacheRefresh:function(){return Nt().memoizedState=ux.bind(null,Ce)},useEffectEvent:function(e){var t=Nt(),n={impl:e};return t.memoizedState=n,function(){if((ze&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Ph={readContext:vt,use:rr,useCallback:Lh,useContext:vt,useEffect:Uc,useImperativeHandle:Hh,useInsertionEffect:Uh,useLayoutEffect:Bh,useMemo:qh,useReducer:or,useRef:Mh,useState:function(){return or(Yn)},useDebugValue:Bc,useDeferredValue:function(e,t){var n=Fe();return Gh(n,He.memoizedState,e,t)},useTransition:function(){var e=or(Yn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Vi(e),t]},useSyncExternalStore:gh,useId:Xh,useHostTransitionStatus:Lc,useFormState:Rh,useActionState:Rh,useOptimistic:function(e,t){var n=Fe();return Eh(n,He,e,t)},useMemoCache:jc,useCacheRefresh:Zh,useEffectEvent:Dh},ox={readContext:vt,use:rr,useCallback:Lh,useContext:vt,useEffect:Uc,useImperativeHandle:Hh,useInsertionEffect:Uh,useLayoutEffect:Bh,useMemo:qh,useReducer:Mc,useRef:Mh,useState:function(){return Mc(Yn)},useDebugValue:Bc,useDeferredValue:function(e,t){var n=Fe();return He===null?kc(n,e,t):Gh(n,He.memoizedState,e,t)},useTransition:function(){var e=Mc(Yn)[0],t=Fe().memoizedState;return[typeof e=="boolean"?e:Vi(e),t]},useSyncExternalStore:gh,useId:Xh,useHostTransitionStatus:Lc,useFormState:Oh,useActionState:Oh,useOptimistic:function(e,t){var n=Fe();return He!==null?Eh(n,He,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:jc,useCacheRefresh:Zh,useEffectEvent:Dh};function Gc(e,t,n,l){t=e.memoizedState,n=n(l,t),n=n==null?t:T({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Yc={enqueueSetState:function(e,t,n){e=e._reactInternals;var l=Qt(),a=fl(l);a.payload=t,n!=null&&(a.callback=n),t=dl(e,a,l),t!==null&&(Mt(t,e,l),Hi(t,e,l))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var l=Qt(),a=fl(l);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=dl(e,a,l),t!==null&&(Mt(t,e,l),Hi(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Qt(),l=fl(n);l.tag=2,t!=null&&(l.callback=t),t=dl(e,l,n),t!==null&&(Mt(t,e,n),Hi(t,e,n))}};function $h(e,t,n,l,a,u,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,u,d):t.prototype&&t.prototype.isPureReactComponent?!ji(n,l)||!ji(a,u):!0}function Wh(e,t,n,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,l),t.state!==e&&Yc.enqueueReplaceState(t,t.state,null)}function Wl(e,t){var n=t;if("ref"in t){n={};for(var l in t)l!=="ref"&&(n[l]=t[l])}if(e=e.defaultProps){n===t&&(n=T({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function ev(e){qu(e)}function tv(e){console.error(e)}function nv(e){qu(e)}function mr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function lv(e,t,n){try{var l=e.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Vc(e,t,n){return n=fl(n),n.tag=3,n.payload={element:null},n.callback=function(){mr(e,t)},n}function av(e){return e=fl(e),e.tag=3,e}function iv(e,t,n,l){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var u=l.value;e.payload=function(){return a(u)},e.callback=function(){lv(t,n,l)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){lv(t,n,l),typeof a!="function"&&(xl===null?xl=new Set([this]):xl.add(this));var g=l.stack;this.componentDidCatch(l.value,{componentStack:g!==null?g:""})})}function cx(e,t,n,l,a){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=n.alternate,t!==null&&Xl(t,n,a,!0),n=gt.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Et===null?Dr():n.alternate===null&&Je===0&&(Je=3),n.flags&=-257,n.flags|=65536,n.lanes=a,l===Wu?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([l]):t.add(l),_s(e,l,a)),!1;case 22:return n.flags|=65536,l===Wu?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([l]):n.add(l)),_s(e,l,a)),!1}throw Error(o(435,n.tag))}return _s(e,l,a),Dr(),!1}if(we)return t=gt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=a,l!==cc&&(e=Error(o(422),{cause:l}),zi(Ft(e,n)))):(l!==cc&&(t=Error(o(423),{cause:l}),zi(Ft(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,l=Ft(l,n),a=Vc(e.stateNode,l,a),bc(e,a),Je!==4&&(Je=2)),!1;var u=Error(o(520),{cause:l});if(u=Ft(u,n),$i===null?$i=[u]:$i.push(u),Je!==4&&(Je=2),t===null)return!0;l=Ft(l,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Vc(n.stateNode,l,e),bc(n,e),!1;case 1:if(t=n.type,u=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||u!==null&&typeof u.componentDidCatch=="function"&&(xl===null||!xl.has(u))))return n.flags|=65536,a&=-a,n.lanes|=a,a=av(a),iv(a,e,n,l),bc(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Qc=Error(o(461)),et=!1;function at(e,t,n,l){t.child=e===null?ch(t,null,n,l):Pl(t,e.child,n,l)}function uv(e,t,n,l,a){n=n.render;var u=t.ref;if("ref"in l){var d={};for(var g in l)g!=="ref"&&(d[g]=l[g])}else d=l;return Zl(t),l=Tc(e,t,n,d,u,a),g=_c(),e!==null&&!et?(Ac(e,t,a),Vn(e,t,a)):(we&&g&&Zu(t),t.flags|=1,at(e,t,l,a),t.child)}function rv(e,t,n,l,a){if(e===null){var u=n.type;return typeof u=="function"&&!ic(u)&&u.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=u,ov(e,t,u,l,a)):(e=Qu(n.type,null,l,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(u=e.child,!$c(e,a)){var d=u.memoizedProps;if(n=n.compare,n=n!==null?n:ji,n(d,l)&&e.ref===t.ref)return Vn(e,t,a)}return t.flags|=1,e=kn(u,l),e.ref=t.ref,e.return=t,t.child=e}function ov(e,t,n,l,a){if(e!==null){var u=e.memoizedProps;if(ji(u,l)&&e.ref===t.ref)if(et=!1,t.pendingProps=l=u,$c(e,a))(e.flags&131072)!==0&&(et=!0);else return t.lanes=e.lanes,Vn(e,t,a)}return Xc(e,t,n,l,a)}function cv(e,t,n,l){var a=l.children,u=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(u=u!==null?u.baseLanes|n:n,e!==null){for(l=t.child=e.child,a=0;l!==null;)a=a|l.lanes|l.childLanes,l=l.sibling;l=a&~u}else l=0,t.child=null;return sv(e,t,u,n,l)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Pu(t,u!==null?u.cachePool:null),u!==null?dh(t,u):Sc(),mh(t);else return l=t.lanes=536870912,sv(e,t,u!==null?u.baseLanes|n:n,n,l)}else u!==null?(Pu(t,u.cachePool),dh(t,u),vl(),t.memoizedState=null):(e!==null&&Pu(t,null),Sc(),vl());return at(e,t,a,n),t.child}function Xi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function sv(e,t,n,l,a){var u=vc();return u=u===null?null:{parent:$e._currentValue,pool:u},t.memoizedState={baseLanes:n,cachePool:u},e!==null&&Pu(t,null),Sc(),mh(t),e!==null&&Xl(e,t,l,!0),t.childLanes=a,null}function hr(e,t){return t=vr({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function fv(e,t,n){return Pl(t,e.child,null,n),e=hr(t,t.pendingProps),e.flags|=2,qt(t),t.memoizedState=null,e}function sx(e,t,n){var l=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(we){if(l.mode==="hidden")return e=hr(t,l),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Xi(null,e);if(Cc(t),(e=Ge)?(e=kg(e,Wt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:il!==null?{id:pn,overflow:bn}:null,retryLane:536870912,hydrationErrors:null},n=Im(e),n.return=t,t.child=n,ot=t,Ge=null)):e=null,e===null)throw rl(t);return t.lanes=536870912,null}return hr(t,l)}var u=e.memoizedState;if(u!==null){var d=u.dehydrated;if(Cc(t),a)if(t.flags&256)t.flags&=-257,t=fv(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(et||Xl(e,t,n,!1),a=(n&e.childLanes)!==0,et||a){if(ml.current===null){if(l=Le,l!==null&&(d=Pd(l,n),d!==0&&d!==u.retryLane))throw u.retryLane=d,Gl(e,d),Mt(l,e,d),Qc;Dr()}t=fv(e,t,n)}else e=u.treeContext,Ge=tn(d.nextSibling),ot=t,we=!0,ul=null,Wt=!1,e!==null&&Pm(t,e),t=hr(t,l),t.flags|=134221824;return t}return e=kn(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function qa(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(o(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Xc(e,t,n,l,a){return Zl(t),n=Tc(e,t,n,l,void 0,a),l=_c(),e!==null&&!et?(Ac(e,t,a),Vn(e,t,a)):(we&&l&&Zu(t),t.flags|=1,at(e,t,n,a),t.child)}function dv(e,t,n,l,a,u){return Zl(t),t.updateQueue=null,n=vh(t,l,n,a),hh(e),l=_c(),e!==null&&!et?(Ac(e,t,u),Vn(e,t,u)):(we&&l&&Zu(t),t.flags|=1,at(e,t,n,u),t.child)}function mv(e,t,n,l,a){if(Zl(t),t.stateNode===null){var u=ja,d=n.contextType;typeof d=="object"&&d!==null&&(u=vt(d)),u=new n(l,u),t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,u.updater=Yc,t.stateNode=u,u._reactInternals=t,u=t.stateNode,u.props=l,u.state=t.memoizedState,u.refs={},yc(t),d=n.contextType,u.context=typeof d=="object"&&d!==null?vt(d):ja,u.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(Gc(t,n,d,l),u.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(d=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),d!==u.state&&Yc.enqueueReplaceState(u,u.state,null),qi(t,l,u,a),Li(),u.state=t.memoizedState),typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){u=t.stateNode;var g=t.memoizedProps,C=Wl(n,g);u.props=C;var M=u.context,q=n.contextType;d=ja,typeof q=="object"&&q!==null&&(d=vt(q));var X=n.getDerivedStateFromProps;q=typeof X=="function"||typeof u.getSnapshotBeforeUpdate=="function",g=t.pendingProps!==g,q||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(g||M!==d)&&Wh(t,u,l,d),sl=!1;var _=t.memoizedState;u.state=_,qi(t,l,u,a),Li(),M=t.memoizedState,g||_!==M||sl?(typeof X=="function"&&(Gc(t,n,X,l),M=t.memoizedState),(C=sl||$h(t,n,C,l,_,M,d))?(q||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount()),typeof u.componentDidMount=="function"&&(t.flags|=4194308)):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=M),u.props=l,u.state=M,u.context=d,l=C):(typeof u.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{u=t.stateNode,pc(e,t),d=t.memoizedProps,q=Wl(n,d),u.props=q,X=t.pendingProps,_=u.context,M=n.contextType,C=ja,typeof M=="object"&&M!==null&&(C=vt(M)),g=n.getDerivedStateFromProps,(M=typeof g=="function"||typeof u.getSnapshotBeforeUpdate=="function")||typeof u.UNSAFE_componentWillReceiveProps!="function"&&typeof u.componentWillReceiveProps!="function"||(d!==X||_!==C)&&Wh(t,u,l,C),sl=!1,_=t.memoizedState,u.state=_,qi(t,l,u,a),Li();var H=t.memoizedState;d!==X||_!==H||sl||e!==null&&e.dependencies!==null&&Ju(e.dependencies)?(typeof g=="function"&&(Gc(t,n,g,l),H=t.memoizedState),(q=sl||$h(t,n,q,l,_,H,C)||e!==null&&e.dependencies!==null&&Ju(e.dependencies))?(M||typeof u.UNSAFE_componentWillUpdate!="function"&&typeof u.componentWillUpdate!="function"||(typeof u.componentWillUpdate=="function"&&u.componentWillUpdate(l,H,C),typeof u.UNSAFE_componentWillUpdate=="function"&&u.UNSAFE_componentWillUpdate(l,H,C)),typeof u.componentDidUpdate=="function"&&(t.flags|=4),typeof u.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof u.componentDidUpdate!="function"||d===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=H),u.props=l,u.state=H,u.context=C,l=q):(typeof u.componentDidUpdate!="function"||d===e.memoizedProps&&_===e.memoizedState||(t.flags|=4),typeof u.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&_===e.memoizedState||(t.flags|=1024),l=!1)}return u=l,qa(e,t),l=(t.flags&128)!==0,u||l?(u=t.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:u.render(),t.flags|=1,e!==null&&l?(t.child=Pl(t,e.child,null,a),t.child=Pl(t,null,n,a)):at(e,t,n,a),t.memoizedState=u.state,e=t.child):e=Vn(e,t,a),e}function hv(e,t,n,l){return Vl(),t.flags|=256,at(e,t,n,l),t.child}var Zc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Kc(e){return{baseLanes:e,cachePool:lh()}}function Ic(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Vt),e}function vv(e,t,n){var l=t.pendingProps,a=!1,u=(t.flags&128)!==0,d;if((d=u)||(d=e!==null&&e.memoizedState===null?!1:(yt.current&2)!==0),d&&(a=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(we){if(a?hl(t):vl(),(e=Ge)?(e=kg(e,Wt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:il!==null?{id:pn,overflow:bn}:null,retryLane:536870912,hydrationErrors:null},n=Im(e),n.return=t,t.child=n,ot=t,Ge=null)):e=null,e===null)throw rl(t);return Ks(e)?t.lanes=32:t.lanes=536870912,null}return u=l.children,l=l.fallback,a?(vl(),a=t.mode,u=vr({mode:"hidden",children:u},a),l=Yl(l,a,n,null),u.return=t,l.return=t,u.sibling=l,t.child=u,l=t.child,l.memoizedState=Kc(n),l.childLanes=Ic(e,d,n),t.memoizedState=Zc,Xi(null,l)):(hl(t),Jc(t,u))}var g=e.memoizedState;if(g!==null){var C=g.dehydrated;if(C!==null)return fx(e,t,u,d,l,C,g,n)}return a?(vl(),a=l.fallback,u=t.mode,g=e.child,C=g.sibling,l=kn(g,{mode:"hidden",children:l.children}),l.subtreeFlags=g.subtreeFlags&1206910976,C!==null?a=kn(C,a):(a=Yl(a,u,n,null),a.flags|=2),a.return=t,l.return=t,l.sibling=a,t.child=l,Xi(null,l),l=t.child,a=e.child.memoizedState,a===null?a=Kc(n):(u=a.cachePool,u!==null?(g=$e._currentValue,u=u.parent!==g?{parent:g,pool:g}:u):u=lh(),a={baseLanes:a.baseLanes|n,cachePool:u}),l.memoizedState=a,l.childLanes=Ic(e,d,n),t.memoizedState=Zc,Xi(e.child,l)):(hl(t),n=e.child,e=n.sibling,n=kn(n,{mode:"visible",children:l.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function Jc(e,t){return t=vr({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function vr(e,t){return e=At(22,e,null,t),e.lanes=0,e}function gr(e,t,n){return Pl(t,e.child,null,n),e=Jc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function fx(e,t,n,l,a,u,d,g){if(n)return t.flags&256?(hl(t),t.flags&=-257,gr(e,t,g)):t.memoizedState!==null?(vl(),t.child=e.child,t.flags|=128,null):(vl(),u=a.fallback,d=t.mode,a=vr({mode:"visible",children:a.children},d),u=Yl(u,d,g,null),u.flags|=2,a.return=t,u.return=t,a.sibling=u,t.child=a,Pl(t,e.child,null,g),a=t.child,a.memoizedState=Kc(g),a.childLanes=Ic(e,l,g),t.memoizedState=Zc,Xi(null,a));if(hl(t),Ks(u)){if(l=u.nextSibling&&u.nextSibling.dataset,l)var C=l.dgst;return l=C,l!==""&&(a=Error(o(419)),a.stack="",a.digest=l,zi({value:a,source:null,stack:null})),gr(e,t,g)}if(et||Xl(e,t,g,!1),l=(g&e.childLanes)!==0,et||l){if(ml.current!==null)return gr(e,t,g);if(l=Le,l!==null&&(a=Pd(l,g),a!==0&&a!==d.retryLane))throw d.retryLane=a,Gl(e,a),Mt(l,e,a),Qc;return Zs(u)||Dr(),gr(e,t,g)}return Zs(u)?(t.flags|=192,t.child=e.child,null):(e=d.treeContext,Ge=tn(u.nextSibling),ot=t,we=!0,ul=null,Wt=!1,e!==null&&Pm(t,e),t=Jc(t,a.children),t.flags|=134221824,t)}function gv(e,t,n){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Iu(e.return,t,n)}function yv(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&lr(n)===null&&(t=e),e=e.sibling}return t}function yr(e,t,n,l,a,u){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:a,treeForkCount:u}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=n,d.tailMode=a,d.treeForkCount=u)}function Fc(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function Pc(e,t,n){var l=t.pendingProps,a=l.revealOrder,u=l.tail;l=l.children;var d=yt.current;if(t.flags&128)return Gi(t,d),null;var g=(d&2)!==0;if(g?(d=d&1|2,t.flags|=128):d&=1,Gi(t,d),a==="backwards"&&e!==null?(Fc(e),at(e,t,l,n),Fc(e)):at(e,t,l,n),l=we?Mi:0,!g&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&gv(e,n,t);else if(e.tag===19)gv(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"backwards":n=yv(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null,Fc(t)),yr(t,!0,a,null,u,l);break;case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&lr(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}yr(t,!0,n,null,u,l);break;case"together":yr(t,!1,null,null,void 0,l);break;case"independent":t.memoizedState=null;break;default:n=yv(t.child),n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),yr(t,!1,a,n,u,l)}return t.child}function pv(e,t,n){var l=t.pendingProps;return ol(t,t.type,l.value),at(e,t,l.children,n),t.child}function Vn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),bl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Xl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,n=kn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=kn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function $c(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ju(e)))}function dx(e,t,n){switch(t.tag){case 3:Eu(t,t.stateNode.containerInfo),ol(t,$e,e.memoizedState.cache),Vl();break;case 27:case 5:wo(t);break;case 4:Eu(t,t.stateNode.containerInfo);break;case 10:ol(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Cc(t),null;break;case 13:var l=t.memoizedState;if(l!==null){if(l.dehydrated!==null)return hl(t),t.flags|=128,null;l=Xl(e,t,n,!1);var a=t.child.childLanes;return l||(n&a)!==0?vv(e,t,n):(hl(t),e=Vn(e,t,n),e!==null?e.sibling:null)}hl(t);break;case 19:if(t.flags&128)return Pc(e,t,n);if(a=(e.flags&128)!==0,l=(n&t.childLanes)!==0,l||(Xl(e,t,n,!1),l=(n&t.childLanes)!==0),a){if(l)return Pc(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Gi(t,yt.current),l)break;return null;case 22:return t.lanes=0,cv(e,t,n,t.pendingProps);case 24:ol(t,$e,e.memoizedState.cache)}return Vn(e,t,n)}function bv(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)et=!0;else{if(!$c(e,n)&&(t.flags&128)===0)return et=!1,dx(e,t,n);et=(e.flags&131072)!==0}else et=!1,we&&(t.flags&1048576)!==0&&Fm(t,Mi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=Jl(t.elementType),t.type=e,typeof e=="function")ic(e)?(l=Wl(e,l),t.tag=1,t=mv(null,t,e,l,n)):(t.tag=0,t=Xc(null,t,e,l,n));else{if(e!=null){var a=e.$$typeof;if(a===F){t.tag=11,t=uv(null,t,e,l,n);break e}else if(a===xe){t.tag=14,t=rv(null,t,e,l,n);break e}else if(a===ge){t.tag=10,t.type=e,t=pv(null,t,n);break e}}throw t=ie(e)||e,Error(o(306,t,""))}}return t;case 0:return Xc(e,t,t.type,t.pendingProps,n);case 1:return l=t.type,a=Wl(l,t.pendingProps),mv(e,t,l,a,n);case 3:e:{if(Eu(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var u=t.memoizedState;a=u.element,pc(e,t),qi(t,l,null,n);var d=t.memoizedState;if(l=d.cache,ol(t,$e,l),l!==u.cache&&dc(t,[$e],n,!0),Li(),l=d.element,u.isDehydrated)if(u={element:l,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){t=hv(e,t,l,n);break e}else if(l!==a){a=Ft(Error(o(424)),t),zi(a),t=hv(e,t,l,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ge=tn(e.firstChild),ot=t,we=!0,ul=null,Wt=!0,n=ch(t,null,l,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(Vl(),l===a){t=Vn(e,t,n);break e}at(e,t,l,n)}t=t.child}return t;case 26:return qa(e,t),e===null?(n=Qg(t.type,null,t.pendingProps,null))?t.memoizedState=n:we||(t.stateNode=Cg(t.type,t.pendingProps,el.current,t)):t.memoizedState=Qg(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return wo(t),e===null&&we&&(l=t.stateNode=qg(t.type,t.pendingProps,el.current),ot=t,Wt=!0,a=Ge,Cl(t.type)?(Is=a,Ge=tn(l.firstChild)):Ge=a),at(e,t,t.pendingProps.children,n),qa(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&we&&((a=l=Ge)&&(l=uS(l,t.type,t.pendingProps,Wt),l!==null?(t.stateNode=l,ot=t,Ge=tn(l.firstChild),Wt=!1,a=!0):a=!1),a||rl(t)),wo(t),a=t.type,u=t.pendingProps,d=e!==null?e.memoizedProps:null,l=u.children,Ls(a,u)?l=null:d!==null&&Ls(a,d)&&(t.flags|=32),t.memoizedState!==null&&(a=Tc(e,t,tx,null,null,n),ai._currentValue=a),qa(e,t),at(e,t,l,n),t.child;case 6:return e===null&&we&&((e=n=Ge)&&(n=rS(n,t.pendingProps,Wt),n!==null?(t.stateNode=n,ot=t,Ge=null,e=!0):e=!1),e||rl(t)),null;case 13:return vv(e,t,n);case 4:return Eu(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Pl(t,null,l,n):at(e,t,l,n),t.child;case 11:return uv(e,t,t.type,t.pendingProps,n);case 7:return l=t.pendingProps,qa(e,t),at(e,t,l,n),t.child;case 8:return at(e,t,t.pendingProps.children,n),t.child;case 12:return at(e,t,t.pendingProps.children,n),t.child;case 10:return pv(e,t,n);case 9:return a=t.type._context,l=t.pendingProps.children,Zl(t),a=vt(a),l=l(a),t.flags|=1,at(e,t,l,n),t.child;case 14:return rv(e,t,t.type,t.pendingProps,n);case 15:return ov(e,t,t.type,t.pendingProps,n);case 19:return Pc(e,t,n);case 31:return sx(e,t,n);case 22:return cv(e,t,n,t.pendingProps);case 24:return Zl(t),l=vt($e),e===null?(a=vc(),a===null&&(a=Le,u=mc(),a.pooledCache=u,u.refCount++,u!==null&&(a.pooledCacheLanes|=n),a=u),t.memoizedState={parent:l,cache:a},yc(t),ol(t,$e,a)):((e.lanes&n)!==0&&(pc(e,t),qi(t,null,null,n),Li()),a=e.memoizedState,u=t.memoizedState,a.parent!==l?(a={parent:l,cache:l},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ol(t,$e,l)):(l=u.cache,ol(t,$e,l),l!==a.cache&&dc(t,[$e],n,!0))),at(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),l=t.pendingProps,l.name!=null&&l.name!=="auto"?t.flags|=e===null?18882560:18874368:we&&Zu(t),e!==null&&e.memoizedProps.name!==l.name?t.flags|=4194816:qa(e,t),at(e,t,l.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function Qn(e){e.flags|=4}function Wc(e,t,n,l,a){var u;if((u=(e.mode&32)!==0)&&(u=n===null?Ig(t,l):Ig(t,l)&&(l.src!==n.src||l.srcSet!==n.srcSet)),u){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(eg())e.flags|=8192;else throw Fl=Wu,gc}else e.flags&=-16777217}function xv(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Jg(t))if(eg())e.flags|=8192;else throw Fl=Wu,gc}function pr(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Id():536870912,e.lanes|=t,Xa|=t)}function Zi(e,t){if(!we)switch(e.tailMode){case"visible":break;case"collapsed":for(var n=e.tail,l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function Ye(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,l=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags&1206910976,l|=a.flags&1206910976,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,l|=a.subtreeFlags,l|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=l,e.childLanes=n,t}function mx(e,t,n){var l=t.pendingProps;switch(oc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ye(t),null;case 1:return Ye(t),null;case 3:return n=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),qn($e),ya(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(za(t)?Qn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sc())),Ye(t),null;case 26:var a=t.type,u=t.memoizedState;return e===null?(Qn(t),u!==null?(Ye(t),xv(t,u)):(Ye(t),Wc(t,a,null,l,n))):u?u!==e.memoizedState?(Qn(t),Ye(t),xv(t,u)):(Ye(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&Qn(t),Ye(t),Wc(t,a,e,l,n)),null;case 27:if(Cu(t),n=el.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Qn(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Ye(t),t.subtreeFlags&=-33554433,null}e=gn.current,za(t)?$m(t):(e=qg(a,l,n),t.stateNode=e,Qn(t))}return Ye(t),t.subtreeFlags&=-33554433,null;case 5:if(Cu(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Qn(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Ye(t),t.subtreeFlags&=-33554433,null}if(u=gn.current,za(t))$m(t);else{var d=lu(el.current);switch(u){case 1:u=d.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:u=d.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":u=d.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":u=d.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":u=d.createElement("div"),u.innerHTML="<script><\/script>",u=u.removeChild(u.firstChild);break;case"select":u=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?u.multiple=!0:l.size&&(u.size=l.size);break;default:u=typeof l.is=="string"?d.createElement(a,{is:l.is}):d.createElement(a)}}u[ht]=t,u[_t]=l;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)u.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=u;e:switch(bt(u,a,l),a){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Qn(t)}}return Ye(t),t.subtreeFlags&=-33554433,Wc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Qn(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=el.current,za(t)){if(e=t.stateNode,n=t.memoizedProps,l=null,a=ot,a!==null)switch(a.tag){case 27:case 5:l=a.memoizedProps}e[ht]=t,e=!!(e.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||bg(e.nodeValue,n)),e||rl(t,!0)}else e=lu(e).createTextNode(l),e[ht]=t,t.stateNode=e}return Ye(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(l=za(t),n!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[ht]=t}else Vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),e=!1}else n=sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(qt(t),t):(qt(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Ye(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=za(t),l!==null&&l.dehydrated!==null){if(e===null){if(!a)throw Error(o(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(o(317));a[ht]=t}else Vl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ye(t),a=!1}else a=sc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(qt(t),t):(qt(t),null)}return qt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=l!==null,e=e!==null&&e.memoizedState!==null,n&&(l=t.child,a=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(a=l.alternate.memoizedState.cachePool.pool),u=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(u=l.memoizedState.cachePool.pool),u!==a&&(l.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),pr(t,t.updateQueue),Ye(t),null);case 4:return ya(),e===null&&Ds(t.stateNode.containerInfo),t.flags|=67108864,Ye(t),null;case 10:return qn(t.type),Ye(t),null;case 19:if(Nc(t),l=t.memoizedState,l===null)return Ye(t),null;if(a=(t.flags&128)!==0,u=l.rendering,u===null)if(a)Zi(l,!1);else{if(Je!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(u=lr(e),u!==null){for(t.flags|=128,Zi(l,!1),e=u.updateQueue,t.updateQueue=e,pr(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Km(n,e),n=n.sibling;return Gi(t,yt.current&1|2),we&&Hn(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Ut()>jr&&(t.flags|=128,a=!0,Zi(l,!1),t.lanes=4194304)}else{if(!a)if(e=lr(u),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,pr(t,e),Zi(l,!0),l.tail===null&&l.tailMode!=="collapsed"&&l.tailMode!=="visible"&&!u.alternate&&!we)return Ye(t),null}else 2*Ut()-l.renderingStartTime>jr&&n!==536870912&&(t.flags|=128,a=!0,Zi(l,!1),t.lanes=4194304);l.isBackwards?(u.sibling=t.child,t.child=u):(e=l.last,e!==null?e.sibling=u:t.child=u,l.last=u)}if(l.tail!==null){e=l.tail;e:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break e}n=n.sibling}n=!0}return l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ut(),e.sibling=null,u=yt.current,u=a?u&1|2:u&1,l.tailMode==="visible"||l.tailMode==="collapsed"||!n||we?Gi(t,u):(n=u,qe(gt,t),qe(yt,n),Et===null&&(Et=t)),we&&Hn(t,l.treeForkCount),e}return Ye(t),null;case 22:case 23:return qt(t),Ec(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(n&536870912)!==0&&(t.flags&128)===0&&(Ye(t),t.subtreeFlags&6&&(t.flags|=8192)):Ye(t),n=t.updateQueue,n!==null&&pr(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==n&&(t.flags|=2048),e!==null&&mt(Il),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),qn($e),Ye(t),null;case 25:return null;case 30:return t.flags|=33554432,Ye(t),null}throw Error(o(156,t.tag))}function hx(e,t){switch(oc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return qn($e),ya(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Cu(t),null;case 31:if(t.memoizedState!==null){if(qt(t),t.alternate===null)throw Error(o(340));Vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(qt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));Vl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Nc(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return ya(),null;case 10:return qn(t.type),null;case 22:case 23:return qt(t),Ec(),e!==null&&mt(Il),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return qn($e),null;case 25:return null;default:return null}}function Sv(e,t){switch(oc(t),t.tag){case 3:qn($e),ya();break;case 26:case 27:case 5:Cu(t);break;case 4:ya();break;case 31:t.memoizedState!==null&&qt(t);break;case 13:qt(t);break;case 19:Nc(t);break;case 10:qn(t.type);break;case 22:case 23:qt(t),Ec(),e!==null&&mt(Il);break;case 24:qn($e)}}function Ki(e,t){try{var n=t.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var a=l.next;n=a;do{if((n.tag&e)===e){l=void 0;var u=n.create,d=n.inst;l=u(),d.destroy=l}n=n.next}while(n!==a)}}catch(g){Be(t,t.return,g)}}function gl(e,t,n){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var u=a.next;l=u;do{if((l.tag&e)===e){var d=l.inst,g=d.destroy;if(g!==void 0){d.destroy=void 0,a=t;var C=n,M=g;try{M()}catch(q){Be(a,C,q)}}}l=l.next}while(l!==u)}}catch(q){Be(t,t.return,q)}}function Ev(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{fh(t,n)}catch(l){Be(e,e.return,l)}}}function Cv(e,t,n){n.props=Wl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(l){Be(e,t,l)}}function xn(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:var a=e.stateNode,u=Un(e.memoizedProps,a);(a.ref===null||a.ref.name!==u)&&(a.ref=jg(u)),l=a.ref;break;case 7:if(e.stateNode===null){var d=new Xt(e);y(e.child,!1,aS,d,void 0,void 0),e.stateNode=d}l=e.stateNode;break;default:l=e.stateNode}typeof n=="function"?e.refCleanup=n(l):n.current=l}}catch(g){Be(e,t,g)}}function pt(e,t){var n=e.ref,l=e.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(a){Be(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Be(e,t,a)}else n.current=null}function br(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)Bg(e.stateNode,t[n])}function Nv(e){for(var t=e.return;t!==null&&(ts(t)&&Bg(e.stateNode,t.stateNode),!es(t));)t=t.return}function Ii(e){for(var t=e.return;t!==null&&(ts(t)&&iS(e.stateNode,t.stateNode),!es(t));)t=t.return}function es(e){return e.tag===5||e.tag===3||e.tag===27}function ts(e){return e&&e.tag===7&&e.stateNode!==null}function ns(e){var t=e.type,n=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break e;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(a){Be(e,e.return,a)}}function ls(e,t,n){try{var l=e.stateNode;qx(l,e.type,n,t),l[_t]=t}catch(a){Be(e,e.return,a)}}function wv(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Cl(e.type)||e.tag===4}function as(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||wv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Cl(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function is(e,t,n,l){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(a,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(a),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=yn)),br(e,l),Me=!0;else if(a!==4&&(a===27&&(br(e,l),l=null,Cl(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(is(e,t,n,l),e=e.sibling;e!==null;)is(e,t,n,l),e=e.sibling}function xr(e,t,n,l){var a=e.tag;if(a===5||a===6)a=e.stateNode,t?n.insertBefore(a,t):n.appendChild(a),br(e,l),Me=!0;else if(a!==4&&(a===27&&(br(e,l),l=null,Cl(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(xr(e,t,n,l),e=e.sibling;e!==null;)xr(e,t,n,l),e=e.sibling}function Tv(e){var t=e.stateNode,n=e.memoizedProps;try{for(var l=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);bt(t,l,n),t[ht]=e,t[_t]=n}catch(u){Be(e,e.return,u)}}var Sr=!1,Gt=null;function _v(e){(e.tag===30||(e.subtreeFlags&33554432)!==0)&&(Sr=!0)}var Sn=null;function Av(){var e=Sn;return Sn=null,e}var Rt=0;function Ga(e,t,n,l,a){return Rt=0,Rv(e.child,t,n,l,a)}function Rv(e,t,n,l,a){for(var u=!1;e!==null;){if(e.tag===5){var d=e.stateNode;if(l!==null){var g=Ys(d);l.push(g),g.view&&(u=!0)}else u||Ys(d).view&&(u=!0);Sr=!0,Ag(d,Rt===0?t:t+"_"+Rt,n),Rt++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&a||Rv(e.child,t,n,l,a)&&(u=!0));e=e.sibling}return u}function En(e,t){for(;e!==null;)e.tag===5?Rg(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||En(e.child,t)),e=e.sibling}function Er(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Er(e),e.tag===30&&(e.flags&18874368)!==0&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name==="auto")throw Error(o(544));var n=t.name;t=Bn(t.default,t.share),t!=="none"&&(Ga(e,n,t,null,!1)||En(e.child,!1))}e=e.sibling}}function us(e,t){if(e.tag===30){var n=e.stateNode,l=e.memoizedProps,a=Un(l,n),u=Bn(l.default,n.paired?l.share:l.enter);u!=="none"?Ga(e,a,u,null,!1)?(Er(e),n.paired||t||Ja(e,l.onEnter)):En(e.child,!1):Er(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)us(e,t),e=e.sibling;else Er(e)}function rs(e){if(Gt!==null&&Gt.size!==0){var t=Gt;if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var n=e.memoizedProps,l=n.name;if(l!=null&&l!=="auto"){var a=t.get(l);if(a!==void 0){var u=Bn(n.default,n.share);if(u!=="none"&&(Ga(e,l,u,null,!1)?(u=e.stateNode,a.paired=u,u.paired=a,Ja(e,n.onShare)):En(e.child,!1)),t.delete(l),t.size===0)break}}}rs(e)}e=e.sibling}}}function os(e){if(e.tag===30){var t=e.memoizedProps,n=Un(t,e.stateNode),l=Gt!==null?Gt.get(n):void 0,a=Bn(t.default,l!==void 0?t.share:t.exit);a!=="none"&&(Ga(e,n,a,null,!1)?l!==void 0?(a=e.stateNode,l.paired=a,a.paired=l,Gt.delete(n),Ja(e,t.onShare)):Ja(e,t.onExit):En(e.child,!1)),Gt!==null&&rs(e)}else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)os(e),e=e.sibling;else Gt!==null&&rs(e)}function jv(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=Un(t,e.stateNode);t=Bn(t.default,t.update),e.flags&=-5,t!=="none"&&Ga(e,n,t,e.memoizedState=[],!1)}else(e.subtreeFlags&33554432)!==0&&jv(e);e=e.sibling}}function cs(e){if((e.subtreeFlags&18874368)!==0)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&(e.flags&18874368)!==0){var t=e.stateNode;t.paired!==null&&(t.paired=null,En(e.child,!1))}cs(e)}e=e.sibling}}function Cr(e){if(e.tag===30)e.stateNode.paired=null,En(e.child,!1),cs(e);else if((e.subtreeFlags&33554432)!==0)for(e=e.child;e!==null;)Cr(e),e=e.sibling;else cs(e)}function Ov(e){for(e=e.child;e!==null;)e.tag===30?En(e.child,!1):(e.subtreeFlags&33554432)!==0&&Ov(e),e=e.sibling}function ss(e,t,n,l,a,u,d){for(var g=!1;t!==null;){if(t.tag===5){var C=t.stateNode;if(u!==null&&Rt<u.length){var M=u[Rt],q=Ys(C);(M.view||q.view)&&(g=!0);var X;if(X=(e.flags&4)===0)if(q.clip)X=!0;else{X=M.rect;var _=q.rect;X=X.y!==_.y||X.x!==_.x||X.height!==_.height||X.width!==_.width}X&&(e.flags|=4),q.abs?q=!M.abs:(M=M.rect,q=q.rect,q=M.height!==q.height||M.width!==q.width),q&&(e.flags|=32)}else e.flags|=32;(e.flags&4)!==0&&Ag(C,Rt===0?n:n+"_"+Rt,a),g&&(e.flags&4)!==0||(Sn===null&&(Sn=[]),Sn.push(C,Rt===0?l:l+"_"+Rt,t.memoizedProps)),Rt++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&d?e.flags|=t.flags&32:ss(e,t.child,n,l,a,u,d)&&(g=!0));t=t.sibling}return g}function Mv(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,l=e.stateNode,a=Un(n,l),u=Bn(n.default,n.update),d;d=e.memoizedState,e.memoizedState=null,l=e;var g=e.child;Rt=0,a=ss(l,g,a,a,u,d,!1),(e.flags&4)!==0&&a&&Ja(e,n.onUpdate)}else(e.subtreeFlags&33554432)!==0&&Mv(e);e=e.sibling}}var ct=!1,De=!1,Cn=!1,fs=!1,zv=typeof WeakSet=="function"?WeakSet:Set,st=null,Nn=!1,Ji=!1,Nr=!1,ds=!1;function vx(e,t,n){if(e=e.containerInfo,ks=ii,e=km(e),$o(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var u=a.anchorOffset,d=a.focusNode;a=a.focusOffset;try{l.nodeType,d.nodeType}catch{l=null;break e}var g=0,C=-1,M=-1,q=0,X=0,_=e,H=null;t:for(;;){for(var le;_!==l||u!==0&&_.nodeType!==3||(C=g+u),_!==d||a!==0&&_.nodeType!==3||(M=g+a),_.nodeType===3&&(g+=_.nodeValue.length),(le=_.firstChild)!==null;)H=_,_=le;for(;;){if(_===e)break t;if(H===l&&++q===u&&(C=g),H===d&&++X===a&&(M=g),(le=_.nextSibling)!==null)break;_=H,H=_.parentNode}_=le}l=C===-1||M===-1?null:{start:C,end:M}}else l=null}l=l||{start:0,end:0}}else l=null;for(Hs={focusedElem:e,selectionRange:l},ii=!1,n=(n&335544064)===n,st=t,t=n?9270:1024;st!==null;){if(e=st,n&&(l=e.deletions,l!==null))for(u=0;u<l.length;u++)n&&os(l[u]);if(e.alternate===null&&(e.flags&2)!==0)n&&_v(e),wr(n);else{if(e.tag===22){if(l=e.alternate,e.memoizedState!==null){l!==null&&l.memoizedState===null&&n&&os(l),wr(n);continue}else if(l!==null&&l.memoizedState!==null){n&&_v(e),wr(n);continue}}l=e.child,(e.subtreeFlags&t)!==0&&l!==null?(l.return=e,st=l):(n&&jv(e),wr(n))}}Gt=null}function wr(e){for(;st!==null;){var t=st,n=e,l=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if((a&1024)!==0&&l!==null){n=void 0,a=l.memoizedProps,l=l.memoizedState;var u=t.stateNode;try{var d=Wl(t.type,a);n=u.getSnapshotBeforeUpdate(d,l),u.__reactInternalSnapshotBeforeUpdate=n}catch(g){Be(t,t.return,g)}}break;case 3:if((a&1024)!==0){if(l=t.stateNode.containerInfo,n=l.nodeType,n===9)Xs(l);else if(n===1)switch(l.nodeName){case"HEAD":case"HTML":case"BODY":Xs(l);break;default:l.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&l!==null&&(n=Un(l.memoizedProps,l.stateNode),a=t.memoizedProps,a=Bn(a.default,a.update),a!=="none"&&Ga(l,n,a,l.memoizedState=[],!0));break;default:if((a&1024)!==0)throw Error(o(163))}if(l=t.sibling,l!==null){l.return=t.return,st=l;break}st=t.return}}function Dv(e,t,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:wn(e,n),l&4&&Ki(5,n);break;case 1:if(wn(e,n),l&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){Be(n,n.return,d)}else{var a=Wl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Be(n,n.return,d)}}l&64&&Ev(n),l&512&&xn(n,n.return);break;case 3:if(wn(e,n),l&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{fh(e,t)}catch(d){Be(n,n.return,d)}}break;case 27:t===null&&l&4&&Tv(n);case 26:case 5:wn(e,n),t===null&&l&4&&ns(n),l&512&&xn(n,n.return);break;case 12:wn(e,n);break;case 31:wn(e,n),l&4&&Hv(e,n);break;case 13:wn(e,n),l&4&&Lv(e,n),l&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=_x.bind(null,n),oS(e,n))));break;case 22:if(l=n.memoizedState!==null||ct,!l){var u=t!==null&&t.memoizedState!==null||De;t=ct,a=De,ct=l,(De=u)&&!a?(l=2,(n.subtreeFlags&8772)!==0&&(l|=1),dn(e,n,l)):wn(e,n),ct=t,De=a}break;case 30:wn(e,n),l&512&&xn(n,n.return);break;case 7:l&512&&xn(n,n.return);default:wn(e,n)}}function ms(e,t){for(e=e.child;e!==null;)Uv(e,t),e=e.sibling}function Uv(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var l=n.style;typeof l.setProperty=="function"?l.setProperty("display","none","important"):l.display="none"}else{var a=e.stateNode,u=e.memoizedProps.style,d=u!=null&&u.hasOwnProperty("display")?u.display:null;a.style.display=d==null||typeof d=="boolean"?"":(""+d).trim()}}catch(C){Be(e,e.return,C)}hs(e,t);break;case 6:try{e.stateNode.nodeValue=t?"":e.memoizedProps,Me=!0}catch(C){Be(e,e.return,C)}break;case 18:try{var g=e.stateNode;t?_g(g,!0):_g(e.stateNode,!1)}catch(C){Be(e,e.return,C)}break;case 22:case 23:e.memoizedState===null&&ms(e,t);break;default:ms(e,t)}}function hs(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){e:{var n=e,l=t;switch(n.tag){case 4:Uv(n,l);break e;case 22:n.memoizedState===null&&hs(n,l);break e;default:hs(n,l)}}e=e.sibling}}function Bv(e){var t=e.alternate;t!==null&&(e.alternate=null,Bv(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ju(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ve=null,jt=!1;function sn(e,t,n){for(n=n.child;n!==null;)kv(e,t,n),n=n.sibling}function kv(e,t,n){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(pi,n)}catch{}switch(n.tag){case 26:De||pt(n,t),sn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!De&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:De||pt(n,t),Ii(n);var l=Ve,a=jt;Cl(n.type)&&(Ve=n.stateNode,jt=!1),sn(e,t,n),Gg(n.stateNode,n.type,n.memoizedProps),Ve=l,jt=a;break;case 5:De||pt(n,t),Ii(n);case 6:if(n.tag===6&&Ii(n),l=Ve,a=jt,Ve=null,sn(e,t,n),Ve=l,jt=a,Ve!==null)if(jt)try{(Ve.nodeType===9?Ve.body:Ve.nodeName==="HTML"?Ve.ownerDocument.body:Ve).removeChild(n.stateNode),Me=!0}catch(u){Be(n,t,u)}else try{Ve.removeChild(n.stateNode),Me=!0}catch(u){Be(n,t,u)}break;case 18:Ve!==null&&(jt?(e=Ve,Tg(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ui(e)):Tg(Ve,n.stateNode));break;case 4:l=Ve,a=jt,Ve=n.stateNode.containerInfo,jt=!0,sn(e,t,n),Ve=l,jt=a;break;case 0:case 11:case 14:case 15:gl(2,n,t),De||gl(4,n,t),sn(e,t,n);break;case 1:De||(pt(n,t),l=n.stateNode,typeof l.componentWillUnmount=="function"&&Cv(n,t,l)),sn(e,t,n);break;case 21:sn(e,t,n);break;case 22:De=(l=De)||n.memoizedState!==null,sn(e,t,n),De=l;break;case 30:pt(n,t),sn(e,t,n);break;case 7:De||pt(n,t),sn(e,t,n);break;default:sn(e,t,n)}}function Hv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ui(e)}catch(n){Be(t,t.return,n)}}}function Lv(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{ui(e)}catch(n){Be(t,t.return,n)}}function gx(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new zv),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new zv),t;default:throw Error(o(435,e.tag))}}function Tr(e,t){var n=gx(e);t.forEach(function(l){if(!n.has(l)){n.add(l);var a=Ax.bind(null,e,l);l.then(a,a)}})}function wt(e,t,n){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var u=l[a],d=e,g=t,C=g;e:for(;C!==null;){switch(C.tag){case 27:if(Cl(C.type)){Ve=C.stateNode,jt=!1;break e}break;case 5:Ve=C.stateNode,jt=!1;break e;case 3:case 4:Ve=C.stateNode.containerInfo,jt=!0;break e}C=C.return}if(Ve===null)throw Error(o(160));kv(d,g,u),Ve=null,jt=!1,d=u.alternate,d!==null&&(d.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)qv(t,e,n),t=t.sibling}var fn=null;function qv(e,t,n){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(l=e.updateQueue,l=l!==null?l.events:null,l!==null))for(var u=0;u<l.length;u++){var d=l[u];d.ref.impl=d.nextImpl}wt(t,e,n),Tt(e),a&4&&(gl(3,e,e.return),Ki(3,e),gl(5,e,e.return));break;case 1:wt(t,e,n),Tt(e),a&512&&(De||l===null||pt(l,l.return)),a&64&&ct&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(u=fn,wt(t,e,n),Tt(e),a&512&&(De||l===null||pt(l,l.return)),a&4)if(a=l!==null?l.memoizedState:null,n=e.memoizedState,l===null)if(n===null)if(e.stateNode===null)if(ct)e.stateNode=Cg(e.type,e.memoizedProps,t.containerInfo,e);else{e:{t=e.type,n=e.memoizedProps,a=u.ownerDocument||u;t:switch(t){case"title":l=a.getElementsByTagName("title")[0],(!l||l[Si]||l[ht]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=a.createElement(t),a.head.insertBefore(l,a.querySelector("head > title"))),bt(l,t,n),l[ht]=e,rt(l),t=l;break e;case"link":if(u=Kg("link","href",a).get(t+(n.href||""))){for(d=0;d<u.length;d++)if(l=u[d],l.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&l.getAttribute("rel")===(n.rel==null?null:n.rel)&&l.getAttribute("title")===(n.title==null?null:n.title)&&l.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){u.splice(d,1);break t}}l=a.createElement(t),bt(l,t,n),a.head.appendChild(l);break;case"meta":if(u=Kg("meta","content",a).get(t+(n.content||""))){for(d=0;d<u.length;d++)if(l=u[d],l.getAttribute("content")===(n.content==null?null:""+n.content)&&l.getAttribute("name")===(n.name==null?null:n.name)&&l.getAttribute("property")===(n.property==null?null:n.property)&&l.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&l.getAttribute("charset")===(n.charSet==null?null:n.charSet)){u.splice(d,1);break t}}l=a.createElement(t),bt(l,t,n),a.head.appendChild(l);break;default:throw Error(o(468,t))}l[ht]=e,rt(l),t=l}e.stateNode=t}else ct||$s(u,e.type,e.stateNode);else e.stateNode=Zg(u,n,e.memoizedProps);else a!==n?(a===null?(t=l.stateNode,t===null||De||t.parentNode.removeChild(t)):a.count--,n===null?ct||$s(u,e.type,e.stateNode):Zg(u,n,e.memoizedProps)):n===null&&e.stateNode!==null&&ls(e,e.memoizedProps,l.memoizedProps);break;case 27:wt(t,e,n),Tt(e),a&512&&(De||l===null||pt(l,l.return)),l!==null&&a&4&&ls(e,e.memoizedProps,l.memoizedProps);break;case 5:if(u=Cn,Cn=!1,wt(t,e,n),Cn=u,Tt(e),a&512&&(De||l===null||pt(l,l.return)),e.flags&32){t=e.stateNode;try{Ca(t,""),Me=!0}catch(q){Be(e,e.return,q)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,ls(e,t,l!==null?l.memoizedProps:t)),a&1024&&(fs=!0);break;case 6:if(wt(t,e,n),Tt(e),a&4){if(e.stateNode===null)throw Error(o(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Me=!0}catch(q){Be(e,e.return,q)}}break;case 3:if(Me=!1,Gr=null,u=fn,fn=au(t.containerInfo),wt(t,e,n),fn=u,Tt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{ui(t.containerInfo)}catch(q){Be(e,e.return,q)}fs&&(fs=!1,Gv(e)),Me=!1;break;case 4:a=Cn,Cn=ct,l=rm(),u=fn,fn=au(e.stateNode.containerInfo),wt(t,e,n),Tt(e),fn=u,Me&&Ji&&(Nr=!0),Me=l,Cn=a;break;case 12:wt(t,e,n),Tt(e);break;case 31:wt(t,e,n),Tt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Tr(e,t)));break;case 13:wt(t,e,n),Tt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Rr=Ut()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Tr(e,t)));break;case 22:u=e.memoizedState!==null,d=l!==null&&l.memoizedState!==null;var g=ct,C=De,M=Cn;ct=g||u,Cn=M||u,De=C||d,wt(t,e,n),De=C,Cn=M,ct=g,Tt(e),a&8192&&(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,!u||l===null||d||ct||De||(t=d||De,n=ct,l=De,ct=u||ct,De=t,yl(e,2),ct=n,De=l),!u&&Cn||ms(e,u)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Tr(e,n))));break;case 19:wt(t,e,n),Tt(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Tr(e,t)));break;case 30:a&512&&(De||l===null||pt(l,l.return)),a=rm(),u=Ji,d=(n&335544064)===n,g=e.memoizedProps,Ji=d&&Bn(g.default,g.update)!=="none",wt(t,e,n),Tt(e),d&&l!==null&&Me&&(e.flags|=4),Ji=u,Me=a;break;case 21:break;case 7:a&512&&(De||l===null||pt(l,l.return)),l&&l.stateNode!==null&&(l.stateNode._fragmentFiber=e);default:wt(t,e,n),Tt(e)}}function Tt(e){var t=e.flags;if(t&2){try{for(var n,l=e.return;l!==null;){if(wv(l)){n=l;break}l=l.return}l=null;for(var a=e.return;a!==null;){if(ts(a)){var u=a.stateNode;l===null?l=[u]:l.push(u)}if(es(a))break;a=a.return}var d=l;if(n==null)throw Error(o(160));switch(n.tag){case 27:var g=n.stateNode,C=as(e);xr(e,C,g,d);break;case 5:var M=n.stateNode;n.flags&32&&(Ca(M,""),n.flags&=-33);var q=as(e);xr(e,q,M,d);break;case 3:case 4:var X=n.stateNode.containerInfo,_=as(e);is(e,_,X,d);break;default:throw Error(o(161))}}catch(H){Be(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Gv(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Gv(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,ii=!0,t.reset(),ii=!1),e=e.sibling}}function Ya(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Yv(t,e),t=t.sibling;else Mv(t)}function Yv(e,t){var n=e.alternate;if(n===null)us(e,!1);else switch(e.tag){case 3:if(ds=Nn=!1,Av(),Ya(t,e),!Nn&&!Nr){if(e=Sn,e!==null)for(var l=0;l<e.length;l+=3){n=e[l];var a=e[l+1];Rg(n,e[l+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group("+a+")"})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===""&&(e.style.viewTransitionName="none",e.animate({opacity:[0,0],pointerEvents:["none","none"]},{duration:0,fill:"forwards",pseudoElement:"::view-transition-group(root)"}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:"forwards",pseudoElement:"::view-transition"})),ds=!0}Sn=null;break;case 5:Ya(t,e);break;case 4:l=Nn,Nn=!1,Ya(t,e),Nn&&(Nr=!0),Nn=l;break;case 22:e.memoizedState===null&&(n.memoizedState!==null?us(e,!1):Ya(t,e));break;case 30:l=Nn,a=Av(),Nn=!1,Ya(t,e),Nn&&(e.flags|=4);var u=e.memoizedProps,d=e.stateNode;t=Un(u,d),d=Un(n.memoizedProps,d);var g=Bn(u.default,u.update);g==="none"?t=!1:(u=n.memoizedState,n.memoizedState=null,n=e.child,Rt=0,t=ss(e,n,t,d,g,u,!0),Rt!==(u===null?0:u.length)&&(e.flags|=32)),(e.flags&4)!==0&&t?(Ja(e,e.memoizedProps.onUpdate),Sn=a):a!==null&&(a.push.apply(a,Sn),Sn=a),Nn=(e.flags&32)!==0?!0:l;break;default:Ya(t,e)}}function wn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Dv(e,t.alternate,t),t=t.sibling}function yl(e,t){for(e=e.child;e!==null;){var n=e,l=t;switch(n.tag){case 0:case 11:case 14:case 15:gl(4,n,n.return),yl(n,l);break;case 1:pt(n,n.return);var a=n.stateNode;typeof a.componentWillUnmount=="function"&&Cv(n,n.return,a),yl(n,l);break;case 27:(l&2)!==0&&Gg(n.stateNode,n.type,n.memoizedProps);case 5:pt(n,n.return),n.tag!==5&&n.tag!==27||Ii(n),yl(n,l);break;case 6:Ii(n);break;case 26:pt(n,n.return),a=n.stateNode,n.memoizedState!==null||a===null||De||a.parentNode.removeChild(a),yl(n,l);break;case 22:n.memoizedState===null&&yl(n,l);break;case 30:pt(n,n.return),yl(n,l);break;case 7:pt(n,n.return);default:yl(n,l)}e=e.sibling}}function dn(e,t,n){for(n=(t.subtreeFlags&8772)!==0?n:n&-2,t=t.child;t!==null;){var l=t.alternate,a=e,u=t,d=u.flags,g=(n&1)!==0;switch(u.tag){case 0:case 11:case 15:dn(a,u,n),Ki(4,u);break;case 1:if(dn(a,u,n),l=u,a=l.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(q){Be(l,l.return,q)}if(l=u,a=l.updateQueue,a!==null){var C=l.stateNode;try{var M=a.shared.hiddenCallbacks;if(M!==null)for(a.shared.hiddenCallbacks=null,a=0;a<M.length;a++)sh(M[a],C)}catch(q){Be(l,l.return,q)}}g&&d&64&&Ev(u),xn(u,u.return);break;case 27:(n&2)!==0&&Tv(u);case 5:u.tag!==5&&u.tag!==27||Nv(u),dn(a,u,n),g&&l===null&&d&4&&ns(u),xn(u,u.return);break;case 6:Nv(u);break;case 26:C=u.stateNode,u.memoizedState!==null||C===null||ct||$s(au(C.ownerDocument),u.type,C),dn(a,u,n),g&&l===null&&d&4&&ns(u),xn(u,u.return);break;case 12:dn(a,u,n);break;case 31:dn(a,u,n),g&&d&4&&Hv(a,u);break;case 13:dn(a,u,n),g&&d&4&&Lv(a,u);break;case 22:u.memoizedState===null&&dn(a,u,n),xn(u,u.return);break;case 30:dn(a,u,n),xn(u,u.return);break;case 7:xn(u,u.return);default:dn(a,u,n)}t=t.sibling}}function vs(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Di(n))}function gs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Di(e))}function en(e,t,n,l){var a=(n&335544064)===n;if(t.subtreeFlags&(a?10262:10256))for(t=t.child;t!==null;)Vv(e,t,n,l),t=t.sibling;else a&&Ov(t)}function Vv(e,t,n,l){var a=(n&335544064)===n;a&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Cr(t);var u=t.flags;switch(t.tag){case 0:case 11:case 15:en(e,t,n,l),u&2048&&Ki(9,t);break;case 1:en(e,t,n,l);break;case 3:en(e,t,n,l),a&&ds&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,e.style.viewTransitionName==="root"&&(e.style.viewTransitionName=""),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName==="none"&&(e.style.viewTransitionName="")),u&2048&&(u=null,t.alternate!==null&&(u=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==u&&(t.refCount++,u!=null&&Di(u)));break;case 12:if(u&2048){en(e,t,n,l),u=t.stateNode;try{var d=t.memoizedProps,g=d.id,C=d.onPostCommit;typeof C=="function"&&C(g,t.alternate===null?"mount":"update",u.passiveEffectDuration,-0)}catch(M){Be(t,t.return,M)}}else en(e,t,n,l);break;case 31:en(e,t,n,l);break;case 13:en(e,t,n,l);break;case 23:break;case 22:d=t.stateNode,g=t.alternate,t.memoizedState!==null?(a&&g!==null&&g.memoizedState===null&&Cr(g),d._visibility&2?en(e,t,n,l):Fi(e,t)):(a&&g!==null&&g.memoizedState!==null&&Cr(t),d._visibility&2?en(e,t,n,l):(d._visibility|=2,Va(e,t,n,l,(t.subtreeFlags&10256)!==0||!1))),u&2048&&vs(g,t);break;case 24:en(e,t,n,l),u&2048&&gs(t.alternate,t);break;case 30:a&&(u=t.alternate,u!==null&&(En(u.child,!0),En(t.child,!0))),en(e,t,n,l);break;default:en(e,t,n,l)}}function Va(e,t,n,l,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var u=e,d=t,g=n,C=l,M=d.flags;switch(d.tag){case 0:case 11:case 15:Va(u,d,g,C,a),Ki(8,d);break;case 23:break;case 22:var q=d.stateNode;d.memoizedState!==null?q._visibility&2?Va(u,d,g,C,a):Fi(u,d):(q._visibility|=2,Va(u,d,g,C,a)),a&&M&2048&&vs(d.alternate,d);break;case 24:Va(u,d,g,C,a),a&&M&2048&&gs(d.alternate,d);break;default:Va(u,d,g,C,a)}t=t.sibling}}function Fi(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,l=t,a=l.flags;switch(l.tag){case 22:Fi(n,l),a&2048&&vs(l.alternate,l);break;case 24:Fi(n,l),a&2048&&gs(l.alternate,l);break;default:Fi(n,l)}t=t.sibling}}var ea=8192;function ta(e,t,n){if(e.subtreeFlags&ea)for(e=e.child;e!==null;)Qv(e,t,n),e=e.sibling}function Qv(e,t,n){switch(e.tag){case 26:ta(e,t,n),e.flags&ea&&(e.memoizedState!==null?ES(n,fn,e.memoizedState,e.memoizedProps):(e=e.stateNode,(t&335544128)===t&&Pg(n,e)));break;case 5:ta(e,t,n),e.flags&ea&&(e=e.stateNode,(t&335544128)===t&&Pg(n,e));break;case 3:case 4:var l=fn;fn=au(e.stateNode.containerInfo),ta(e,t,n),fn=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=ea,ea=16777216,ta(e,t,n),ea=l):ta(e,t,n));break;case 30:if((e.flags&ea)!==0&&(l=e.memoizedProps.name,l!=null&&l!=="auto")){var a=e.stateNode;a.paired=null,Gt===null&&(Gt=new Map),Gt.set(l,a)}ta(e,t,n);break;default:ta(e,t,n)}}function Xv(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Pi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];st=l,Kv(l,e)}Xv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zv(e),e=e.sibling}function Zv(e){switch(e.tag){case 0:case 11:case 15:Pi(e),e.flags&2048&&gl(9,e,e.return);break;case 3:Pi(e);break;case 12:Pi(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,_r(e)):Pi(e);break;default:Pi(e)}}function _r(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var l=t[n];st=l,Kv(l,e)}Xv(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:gl(8,t,t.return),_r(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,_r(t));break;default:_r(t)}e=e.sibling}}function Kv(e,t){for(;st!==null;){var n=st;switch(n.tag){case 0:case 11:case 15:gl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Di(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,st=l;else e:for(n=e;st!==null;){l=st;var a=l.sibling,u=l.return;if(Bv(l),l===n){st=null;break e}if(a!==null){a.return=u,st=a;break e}st=u}}}var yx={getCacheForType:function(e){var t=vt($e),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return vt($e).controller.signal}},px=typeof WeakMap=="function"?WeakMap:Map,ze=0,Le=null,_e=null,Re=0,Ue=0,Yt=null,pl=!1,Qa=!1,ys=!1,Xn=0,Je=0,bl=0,na=0,Ar=0,Vt=0,Xa=0,$i=null,Ot=null,ps=!1,Rr=0,Iv=0,jr=1/0,Or=null,xl=null,Ze=0,mn=null,la=null,Tn=0,bs=0,xs=null,Jv=null,Za=null,Ka=null,Ia=null,Wi=0,Mr=null;function Qt(){return(ze&2)!==0&&Re!==0?Re&-Re:fe.T!==null?js():$d()}function Fv(){if(Vt===0)if((Re&536870912)===0||we){var e=Tu;Tu<<=1,(Tu&3932160)===0&&(Tu=262144),Vt=e}else Vt=536870912;return e=gt.current,e!==null&&(e.flags|=32),Vt}function Ja(e,t){if(t!=null){var n=e.stateNode,l=n.ref;l===null&&(l=n.ref=jg(Un(e.memoizedProps,n))),Ka===null&&(Ka=[]),Ka.push(t.bind(null,l))}}function Mt(e,t,n){(e===Le&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)&&(Fa(e,0),Sl(e,Re,Vt,!1)),xi(e,n),((ze&2)===0||e!==Le)&&(e===Le&&((ze&2)===0&&(na|=n),Je===4&&Sl(e,Re,Vt,!1)),_n(e))}function Pv(e,t,n){if((ze&6)!==0)throw Error(o(327));var l=!n&&(t&127)===0&&(t&e.expiredLanes)===0||bi(e,t),a=l?Sx(e,t):Es(e,t,!0),u=l;do{if(a===0){Qa&&!l&&Sl(e,t,0,!1);break}else{if(n=e.current.alternate,u&&!bx(n)){a=Es(e,t,!1),u=!1;continue}if(a===2){if(u=t,e.errorRecoveryDisabledLanes&u)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var g=e;a=$i;var C=g.current.memoizedState.isDehydrated;if(C&&(Fa(g,d).flags|=256),d=Es(g,d,!1),d!==2&&d!==6){if(ys&&!C){g.errorRecoveryDisabledLanes|=u,na|=u,a=4;break e}u=Ot,Ot=a,u!==null&&(Ot===null?Ot=u:Ot.push.apply(Ot,u))}a=d}if(u=!1,a!==2)continue}}if(a===1){Fa(e,0),Sl(e,t,0,!0);break}e:{switch(l=e,u=a,u){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Sl(l,t,Vt,!pl);break e;case 2:Ot=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(a=Rr+300-Ut(),10<a)){if(Sl(l,t,Vt,!pl),Au(l,0,!0)!==0)break e;Tn=t,l.timeoutHandle=Gs($v.bind(null,l,n,Ot,Or,ps,t,Vt,na,Xa,pl,u,"Throttled",-0,0),a);break e}$v(l,n,Ot,Or,ps,t,Vt,na,Xa,pl,u,null,-0,0)}}break}while(!0);_n(e)}function $v(e,t,n,l,a,u,d,g,C,M,q,X,_,H){e.timeoutHandle=-1;var le=t.subtreeFlags,de=(u&335544064)===u;if(X=null,(de||le&8192||(le&16785408)===16785408)&&(X={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:yn},Gt=null,Qv(t,u,X),de&&(le=X,de=e.containerInfo,de=(de.nodeType===9?de:de.ownerDocument).__reactViewTransition,de!=null&&(le.count++,le.waitingForViewTransition=!0,le=ru.bind(le),de.finished.then(le,le))),le=(u&62914560)===u?Rr-Ut():(u&4194048)===u?Iv-Ut():0,le=CS(X,le),le!==null)){Tn=u,e.cancelPendingCommit=le(ug.bind(null,e,t,u,n,l,a,d,g,C,M,q,X,null,_,H)),Sl(e,u,d,!M);return}ug(e,t,u,n,l,a,d,g,C,M,q,X)}function bx(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var a=n[l],u=a.getSnapshot;a=a.value;try{if(!Lt(u(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Sl(e,t,n,l){t=Kd(e,t),t&=~Ar,t&=~na,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var a=t;0<a;){var u=31-kt(a),d=1<<u;l[u]=-1,a&=~d}n!==0&&Jd(e,n,t)}function zr(){return(ze&6)===0?(eu(0),!1):!0}function Ss(){if(_e!==null){if(Ue===0)var e=_e.return;else e=_e,Ln=Ql=null,Rc(e),Ba=null,ki=0,e=_e;for(;e!==null;)Sv(e.alternate,e),e=e.return;_e=null}}function Fa(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Vx(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Tn=0,Ss(),Le=e,_e=n=kn(e.current,null),Re=t,Ue=0,Yt=null,pl=!1,Qa=bi(e,t),ys=!1,Xa=Vt=Ar=na=bl=Je=0,Ot=$i=null,ps=!1,Xn=Kd(e,t),Gu(),n}function Wv(e,t){Ce=null,fe.H=dr,t===Ua||t===$u?(t=uh(),Ue=3):t===gc?(t=uh(),Ue=4):Ue=t===Qc?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Yt=t,_e===null&&(Je=1,mr(e,Ft(t,e.current)))}function eg(){var e=gt.current;return e===null?!0:(Re&4194048)===Re?Et===null:(Re&62914560)===Re||(Re&536870912)!==0?e===Et:!1}function tg(){var e=fe.H;return fe.H=dr,e===null?dr:e}function ng(){var e=fe.A;return fe.A=yx,e}function Dr(){Je=4,pl||(Re&4194048)!==Re&>.current!==null||(Qa=!0),(bl&134217727)===0&&(na&134217727)===0||Le===null||Sl(Le,Re,Vt,!1)}function Es(e,t,n){var l=ze;ze|=2;var a=tg(),u=ng();(Le!==e||Re!==t)&&(Or=null,Fa(e,t)),t=!1;var d=Je;e:do try{if(Ue!==0&&_e!==null){var g=_e,C=Yt;switch(Ue){case 8:Ss(),d=6;break e;case 3:case 2:case 9:case 6:gt.current===null&&(t=!0);var M=Ue;if(Ue=0,Yt=null,Pa(e,g,C,M),n&&Qa){d=0;break e}break;default:M=Ue,Ue=0,Yt=null,Pa(e,g,C,M)}}xx(),d=Je;break}catch(q){Wv(e,q)}while(!0);return t&&e.shellSuspendCounter++,Ln=Ql=null,ze=l,fe.H=a,fe.A=u,_e===null&&(Le=null,Re=0,Gu()),d}function xx(){for(;_e!==null;)lg(_e)}function Sx(e,t){var n=ze;ze|=2;var l=tg(),a=ng();Le!==e||Re!==t?(Or=null,jr=Ut()+500,Fa(e,t)):Qa=bi(e,t);e:do try{if(Ue!==0&&_e!==null){t=_e;var u=Yt;t:switch(Ue){case 1:Ue=0,Yt=null,Pa(e,t,u,1);break;case 2:case 9:if(ah(u)){Ue=0,Yt=null,ag(t);break}t=function(){Ue!==2&&Ue!==9||Le!==e||(Ue=7),_n(e)},u.then(t,t);break e;case 3:Ue=7;break e;case 4:Ue=5;break e;case 7:ah(u)?(Ue=0,Yt=null,ag(t)):(Ue=0,Yt=null,Pa(e,t,u,7));break;case 5:var d=null;switch(_e.tag){case 26:d=_e.memoizedState;case 5:case 27:var g=_e;if(d?Jg(d):g.stateNode.complete){Ue=0,Yt=null;var C=g.sibling;if(C!==null)_e=C;else{var M=g.return;M!==null?(_e=M,Ur(M)):_e=null}break t}}Ue=0,Yt=null,Pa(e,t,u,5);break;case 6:Ue=0,Yt=null,Pa(e,t,u,6);break;case 8:Ss(),Je=6;break e;default:throw Error(o(462))}}Ex();break}catch(q){Wv(e,q)}while(!0);return Ln=Ql=null,fe.H=l,fe.A=a,ze=n,_e!==null?0:(Le=null,Re=0,Gu(),Je)}function Ex(){for(;_e!==null&&!Lp();)lg(_e)}function lg(e){var t=bv(e.alternate,e,Xn);e.memoizedProps=e.pendingProps,t===null?Ur(e):_e=t}function ag(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=dv(n,t,t.pendingProps,t.type,void 0,Re);break;case 11:t=dv(n,t,t.pendingProps,t.type.render,t.ref,Re);break;case 5:Rc(t);var l=t;l===ot&&(we?(Ku(l),l.tag===5&&l.stateNode!=null&&(Ge=l.stateNode)):(Ku(l),we=!0));default:Sv(n,t),t=_e=Km(t,Xn),t=bv(n,t,Xn)}e.memoizedProps=e.pendingProps,t===null?Ur(e):_e=t}function Pa(e,t,n,l){Ln=Ql=null,Rc(t),Ba=null,ki=0;var a=t.return;try{if(cx(e,a,t,n,Re)){Je=1,mr(e,Ft(n,e.current)),_e=null;return}}catch(u){if(a!==null)throw _e=a,u;Je=1,mr(e,Ft(n,e.current)),_e=null;return}t.flags&32768?(we||l===1?e=!0:Qa||(Re&536870912)!==0?e=!1:(pl=e=!0,(l===2||l===9||l===3||l===6)&&(l=gt.current,l!==null&&l.tag===13&&(l.flags|=16384))),ig(t,e)):Ur(t)}function Ur(e){var t=e;do{if((t.flags&32768)!==0){ig(t,pl);return}e=t.return;var n=mx(t.alternate,t,Xn);if(n!==null){_e=n;return}if(t=t.sibling,t!==null){_e=t;return}_e=t=e}while(t!==null);Je===0&&(Je=5)}function ig(e,t){do{var n=hx(e.alternate,e);if(n!==null){n.flags&=32767,_e=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){_e=e;return}_e=e=n}while(e!==null);Je=6,_e=null}function ug(e,t,n,l,a,u,d,g,C,M,q,X){e.cancelPendingCommit=null;do Br();while(Ze!==0);if((ze&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));e===Le&&(_e=Le=null,Re=0),la=t,mn=e,Tn=n,xs=a,Jv=l,Cx(e,t,n,d,g,C,X)}}function Cx(e,t,n,l,a,u,d){var g=t.lanes|t.childLanes;if(bs=g,g|=lc,Jp(e,n,g,l,a,u),Ka=null,(n&335544064)===n?(Ia=Pb(e),l=10262):(Ia=null,l=10256),(t.subtreeFlags&l)!==0||(t.flags&l)!==0?(e.callbackNode=null,e.callbackPriority=0,Rx(Nu,function(){return Ts(),null})):(e.callbackNode=null,e.callbackPriority=0),Sr=!1,l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=fe.T,fe.T=null,a=ye.p,ye.p=2,u=ze,ze|=4;try{vx(e,t,n)}finally{ze=u,ye.p=a,fe.T=l}}Ze=1,Sr?Za=Jx(d,e.containerInfo,Ia,Cs,Ns,wx,ws,Ts,Nx):(Cs(),Ns(),ws())}function Nx(e){if(Ze!==0){var t=mn.onRecoverableError;t(e,{componentStack:null})}}function wx(){Ze===3&&(Ze=0,Yv(la,mn),Ze=4)}function Cs(){if(Ze===1){Ze=0;var e=mn,t=la,n=Tn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=fe.T,fe.T=null;var a=ye.p;ye.p=2;var u=ze;ze|=4;try{Ji=Nr=!1,qv(t,e,n),n=Hs;var d=km(e.containerInfo),g=n.focusedElem,C=n.selectionRange;if(d!==g&&g&&g.ownerDocument&&Bm(g.ownerDocument.documentElement,g)){if(C!==null&&$o(g)){var M=C.start,q=C.end;if(q===void 0&&(q=M),"selectionStart"in g)g.selectionStart=M,g.selectionEnd=Math.min(q,g.value.length);else{var X=g.ownerDocument||document,_=X&&X.defaultView||window;if(_.getSelection){var H=_.getSelection(),le=g.textContent.length,de=Math.min(C.start,le),Ne=C.end===void 0?de:Math.min(C.end,le);!H.extend&&de>Ne&&(d=Ne,Ne=de,de=d);var O=Um(g,de),w=Um(g,Ne);if(O&&w&&(H.rangeCount!==1||H.anchorNode!==O.node||H.anchorOffset!==O.offset||H.focusNode!==w.node||H.focusOffset!==w.offset)){var B=X.createRange();B.setStart(O.node,O.offset),H.removeAllRanges(),de>Ne?(H.addRange(B),H.extend(w.node,w.offset)):(B.setEnd(w.node,w.offset),H.addRange(B))}}}}for(X=[],H=g;H=H.parentNode;)H.nodeType===1&&X.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof g.focus=="function"&&g.focus(),g=0;g<X.length;g++){var Q=X[g];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}ii=!!ks,Hs=ks=null}finally{ze=u,ye.p=a,fe.T=l}}e.current=t,Ze=2}}function Ns(){if(Ze===2){Ze=0;var e=mn,t=la,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=fe.T,fe.T=null;var l=ye.p;ye.p=2;var a=ze;ze|=4;try{Dv(e,t.alternate,t)}finally{ze=a,ye.p=l,fe.T=n}}Ze=3}}function ws(){if(Ze===4||Ze===3){Ze=0;var e=Za;Za=null,qp();var t=mn,n=la,l=Tn,a=Jv,u=(l&335544064)===l?10262:10256;if((n.subtreeFlags&u)!==0||(n.flags&u)!==0?Ze=5:(Ze=0,la=mn=null,rg(t,t.pendingLanes)),u=t.pendingLanes,u===0&&(xl=null),Do(l),n=n.stateNode,Bt&&typeof Bt.onCommitFiberRoot=="function")try{Bt.onCommitFiberRoot(pi,n,void 0,(n.current.flags&128)===128)}catch{}if(a!==null){n=fe.T,u=ye.p,ye.p=2,fe.T=null;try{for(var d=t.onRecoverableError,g=0;g<a.length;g++){var C=a[g];d(C.value,{componentStack:C.stack})}}finally{fe.T=n,ye.p=u}}if(a=Ka,d=Ia,Ia=null,a!==null&&(Ka=null,d===null&&(d=[]),e!==null))for(C=0;C<a.length;C++)n=(0,a[C])(d),n!==void 0&&e.finished.finally(n);(Tn&3)!==0&&Br(),_n(t),u=t.pendingLanes,(l&261930)!==0&&(u&42)!==0?t===Mr?Wi++:(Wi=0,Mr=t):(Wi=0,Mr=null),eu(0)}}function rg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Di(t)))}function Br(){return Za!==null&&(Za.skipTransition(),Za=null),Cs(),Ns(),ws(),Ts()}function Ts(){if(Ze!==5)return!1;var e=mn,t=bs;bs=0;var n=Do(Tn),l=fe.T,a=ye.p;try{ye.p=32>n?32:n,fe.T=null,n=xs,xs=null;var u=mn,d=Tn;if(Ze=0,la=mn=null,Tn=0,(ze&6)!==0)throw Error(o(331));var g=ze;if(ze|=4,Zv(u.current),Vv(u,u.current,d,n),ze=g,eu(0,!1),Bt&&typeof Bt.onPostCommitFiberRoot=="function")try{Bt.onPostCommitFiberRoot(pi,u)}catch{}return!0}finally{ye.p=a,fe.T=l,rg(e,t)}}function og(e,t,n){t=Ft(n,t),t=Vc(e.stateNode,t,2),e=dl(e,t,2),e!==null&&(xi(e,2),_n(e))}function Be(e,t,n){if(e.tag===3)og(e,e,n);else for(;t!==null;){if(t.tag===3){og(t,e,n);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(xl===null||!xl.has(l))){e=Ft(n,e),n=av(2),l=dl(t,n,2),l!==null&&(iv(n,l,t,e),xi(l,2),_n(l));break}}t=t.return}}function _s(e,t,n){var l=e.pingCache;if(l===null){l=e.pingCache=new px;var a=new Set;l.set(t,a)}else a=l.get(t),a===void 0&&(a=new Set,l.set(t,a));a.has(n)||(ys=!0,a.add(n),e=Tx.bind(null,e,t,n),t.then(e,e))}function Tx(e,t,n){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Le===e&&(Re&n)===n&&((Je===4||Je===3&&(Re&62914560)===Re&&300>Ut()-Rr)&&(ze&2)===0?Fa(e,0):Ar|=n,Xa===Re&&(Xa=0)),_n(e)}function cg(e,t){t===0&&(t=Id()),e=Gl(e,t),e!==null&&(xi(e,t),_n(e))}function _x(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),cg(e,n)}function Ax(e,t){var n=0;switch(e.tag){case 31:case 13:var l=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),cg(e,n)}function Rx(e,t){return jo(e,t)}var $a=null,Wa=null,As=!1,kr=!1,Rs=!1,El=0;function _n(e){e!==Wa&&e.next===null&&(Wa===null?$a=Wa=e:Wa=Wa.next=e),kr=!0,As||(As=!0,Ox())}function eu(e,t){if(!Rs&&kr){Rs=!0;do for(var n=!1,l=$a;l!==null;){if(e!==0){var a=l.pendingLanes;if(a===0)var u=0;else{var d=l.suspendedLanes,g=l.pingedLanes;u=(1<<31-kt(42|e)+1)-1,u&=a&~(d&~g),u=u&201326741?u&201326741|1:u?u|2:0}u!==0&&(n=!0,mg(l,u))}else u=Re,u=Au(l,l===Le?u:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(u&3)===0||bi(l,u)||(n=!0,mg(l,u));l=l.next}while(n);Rs=!1}}function jx(){sg()}function sg(){kr=As=!1;var e=0;El!==0&&Yx()&&(e=El);for(var t=Ut(),n=null,l=$a;l!==null;){var a=l.next,u=fg(l,t);u===0?(l.next=null,n===null?$a=a:n.next=a,a===null&&(Wa=n)):(n=l,(e!==0||(u&3)!==0)&&(kr=!0)),l=a}Ze!==0&&Ze!==5||eu(e),El!==0&&(El=0)}function fg(e,t){for(var n=e.suspendedLanes,l=e.pingedLanes,a=e.expirationTimes,u=e.pendingLanes&-62914561;0<u;){var d=31-kt(u),g=1<<d,C=a[d];C===-1?((g&n)===0||(g&l)!==0)&&(a[d]=Ip(g,t)):C<=t&&(e.expiredLanes|=g),u&=~g}if(t=Le,n=Re,n=Au(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,n===0||e===t&&(Ue===2||Ue===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&Oo(l),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||bi(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(l!==null&&Oo(l),Do(n)){case 2:case 8:n=Xd;break;case 32:n=Nu;break;case 268435456:n=Zd;break;default:n=Nu}return l=dg.bind(null,e),n=jo(n,l),e.callbackPriority=t,e.callbackNode=n,t}return l!==null&&l!==null&&Oo(l),e.callbackPriority=2,e.callbackNode=null,2}function dg(e,t){if(Ze!==0&&Ze!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Br()&&e.callbackNode!==n)return null;var l=Re;return l=Au(e,e===Le?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Pv(e,l,t),fg(e,Ut()),e.callbackNode!=null&&e.callbackNode===n?dg.bind(null,e):null)}function mg(e,t){if(Br())return null;Pv(e,t,!0)}function Ox(){Qx(function(){(ze&6)!==0?jo(Qd,jx):sg()})}function js(){if(El===0){var e=Kl;e===0&&(e=wu,wu<<=1,(wu&261888)===0&&(wu=256)),El=e}return El}function hg(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:zu(e)}function Mx(e,t,n,l,a){if(t==="submit"&&n&&n.stateNode===a){var u=hg((a[_t]||null).action),d=l.submitter;d&&(t=(t=d[_t]||null)?hg(t.formAction):d.getAttribute("formAction"),t!==null&&(u=t,d=null));var g=new ku("action","action",null,l,a);e.push({event:g,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(El!==0){var C=new FormData(a,d);Hc(n,{pending:!0,data:C,method:a.method,action:u},null,C)}}else typeof u=="function"&&(g.preventDefault(),C=new FormData(a,d),Hc(n,{pending:!0,data:C,method:a.method,action:u},u,C))},currentTarget:a}]})}}for(var Os=0;Os<nc.length;Os++){var Ms=nc[Os],zx=Ms.toLowerCase(),Dx=Ms[0].toUpperCase()+Ms.slice(1);cn(zx,"on"+Dx)}cn(qm,"onAnimationEnd"),cn(Gm,"onAnimationIteration"),cn(Ym,"onAnimationStart"),cn("dblclick","onDoubleClick"),cn("focusin","onFocus"),cn("focusout","onBlur"),cn(Vb,"onTransitionRun"),cn(Qb,"onTransitionStart"),cn(Xb,"onTransitionCancel"),cn(Vm,"onTransitionEnd"),Sa("onMouseEnter",["mouseout","mouseover"]),Sa("onMouseLeave",["mouseout","mouseover"]),Sa("onPointerEnter",["pointerout","pointerover"]),Sa("onPointerLeave",["pointerout","pointerover"]),Hl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var tu="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(" "),Ux=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(tu));function vg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var l=e[n],a=l.event;l=l.listeners;e:{var u=void 0;if(t)for(var d=l.length-1;0<=d;d--){var g=l[d],C=g.instance,M=g.currentTarget;if(g=g.listener,C!==u&&a.isPropagationStopped())break e;u=g,a.currentTarget=M;try{u(a)}catch(q){qu(q)}a.currentTarget=null,u=C}else for(d=0;d<l.length;d++){if(g=l[d],C=g.instance,M=g.currentTarget,g=g.listener,C!==u&&a.isPropagationStopped())break e;u=g,a.currentTarget=M;try{u(a)}catch(q){qu(q)}a.currentTarget=null,u=C}}}}function Ae(e,t){var n=t[em];n===void 0&&(n=t[em]=new Set);var l=e+"__bubble";n.has(l)||(gg(t,e,2,!1),n.add(l))}function zs(e,t,n){var l=0;t&&(l|=4),gg(n,e,l,t)}var Hr="_reactListening"+Math.random().toString(36).slice(2);function Ds(e){if(!e[Hr]){e[Hr]=!0,lm.forEach(function(n){n!=="selectionchange"&&(Ux.has(n)||zs(n,!1,e),zs(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hr]||(t[Hr]=!0,zs("selectionchange",!1,t))}}function gg(e,t,n,l){switch(i0(t)){case 2:var a=_S;break;case 8:a=AS;break;default:a=ef}n=a.bind(null,t,n,e),a=void 0,!Yo||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),l?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Us(e,t,n,l,a){var u=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var g=l.stateNode.containerInfo;if(g===a)break;if(d===4)for(d=l.return;d!==null;){var C=d.tag;if((C===3||C===4)&&d.stateNode.containerInfo===a)return;d=d.return}for(;g!==null;){if(d=kl(g),d===null)return;if(C=d.tag,C===5||C===6||C===26||C===27){l=u=d;continue e}g=g.parentNode}}l=l.return}gm(function(){var M=u,q=qo(n),X=[];e:{var _=Qm.get(e);if(_!==void 0){var H=ku,le=e;switch(e){case"keypress":if(Uu(n)===0)break e;case"keydown":case"keyup":H=bb;break;case"focusin":le="focus",H=Zo;break;case"focusout":le="blur",H=Zo;break;case"beforeblur":case"afterblur":H=Zo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=bm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=rb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Nb;break;case qm:case Gm:case Ym:H=sb;break;case Vm:H=Tb;break;case"scroll":case"scrollend":H=ib;break;case"wheel":H=Ab;break;case"copy":case"cut":case"paste":H=db;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Sm;break;case"submit":H=Eb;break;case"toggle":case"beforetoggle":H=jb}var de=(t&4)!==0,Ne=!de&&(e==="scroll"||e==="scrollend"),O=de?_!==null?_+"Capture":null:_;de=[];for(var w=M,B;w!==null;){var Q=w;if(B=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||B===null||O===null||(Q=Ci(w,O),Q!=null&&de.push(nu(w,Q,B))),Ne)break;w=w.return}0<de.length&&(_=new H(_,le,null,n,q),X.push({event:_,listeners:de}))}}if((t&7)===0){e:{if(H=e==="mouseover"||e==="pointerover",_=e==="mouseout"||e==="pointerout",H&&n!==Lo&&(le=n.relatedTarget||n.fromElement)&&(kl(le)||le[pa]))break e;(_||H)&&(le=q.window===q?q:(H=q.ownerDocument)?H.defaultView||H.parentWindow:window,_?(H=n.relatedTarget||n.toElement,_=M,H=H?kl(H):null,H!==null&&(Ne=f(H),de=H.tag,H!==Ne||de!==5&&de!==27&&de!==6)&&(H=null)):(_=null,H=M),_!==H&&(de=bm,Q="onMouseLeave",O="onMouseEnter",w="mouse",(e==="pointerout"||e==="pointerover")&&(de=Sm,Q="onPointerLeave",O="onPointerEnter",w="pointer"),Ne=_==null?le:Ei(_),B=H==null?le:Ei(H),le=new de(Q,w+"leave",_,n,q),le.target=Ne,le.relatedTarget=B,Q=null,kl(q)===M&&(de=new de(O,w+"enter",H,n,q),de.target=B,de.relatedTarget=Ne,Q=de),Ne=Q,de=_&&H?R(_,H,Bx):null,_!==null&&yg(X,le,_,de,!1),H!==null&&Ne!==null&&yg(X,Ne,H,de,!0)))}e:{if(_=M?Ei(M):window,H=_.nodeName&&_.nodeName.toLowerCase(),H==="select"||H==="input"&&_.type==="file")var re=Rm;else if(_m(_))if(jm)re=qb;else{re=Hb;var je=kb}else H=_.nodeName,!H||H.toLowerCase()!=="input"||_.type!=="checkbox"&&_.type!=="radio"?M&&Ho(M.elementType)&&(re=Rm):re=Lb;if(re&&(re=re(e,M))){Am(X,re,n,q);break e}je&&je(e,_,M)}switch(je=M?Ei(M):window,e){case"focusin":(_m(je)||je.contentEditable==="true")&&(_a=je,Wo=M,Oi=null);break;case"focusout":Oi=Wo=_a=null;break;case"mousedown":ec=!0;break;case"contextmenu":case"mouseup":case"dragend":ec=!1,Hm(X,n,q);break;case"selectionchange":if(Yb)break;case"keydown":case"keyup":Hm(X,n,q)}var ve;if(Io)e:{switch(e){case"compositionstart":var pe="onCompositionStart";break e;case"compositionend":pe="onCompositionEnd";break e;case"compositionupdate":pe="onCompositionUpdate";break e}pe=void 0}else Ta?wm(e,n)&&(pe="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(pe="onCompositionStart");pe&&(Em&&n.locale!=="ko"&&(Ta||pe!=="onCompositionStart"?pe==="onCompositionEnd"&&Ta&&(ve=ym()):(ll=q,Vo="value"in ll?ll.value:ll.textContent,Ta=!0)),je=Lr(M,pe),0<je.length&&(pe=new xm(pe,e,null,n,q),X.push({event:pe,listeners:je}),ve?pe.data=ve:(ve=Tm(n),ve!==null&&(pe.data=ve)))),(ve=Mb?zb(e,n):Db(e,n))&&(pe=Lr(M,"onBeforeInput"),0<pe.length&&(je=new xm("onBeforeInput","beforeinput",null,n,q),X.push({event:je,listeners:pe}),je.data=ve)),Mx(X,e,M,n,q)}vg(X,t)})}function nu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Lr(e,t){for(var n=t+"Capture",l=[];e!==null;){var a=e,u=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||u===null||(a=Ci(e,n),a!=null&&l.unshift(nu(e,a,u)),a=Ci(e,t),a!=null&&l.push(nu(e,a,u))),e.tag===3)return l;e=e.return}return[]}function Bx(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function yg(e,t,n,l,a){for(var u=t._reactName,d=[];n!==null&&n!==l;){var g=n,C=g.alternate,M=g.stateNode;if(g=g.tag,C!==null&&C===l)break;g!==5&&g!==26&&g!==27||M===null||(C=M,a?(M=Ci(n,u),M!=null&&d.unshift(nu(n,M,C))):a||(M=Ci(n,u),M!=null&&d.push(nu(n,M,C)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var kx=/\r\n?/g,Hx=/\u0000|\uFFFD/g;function pg(e){return(typeof e=="string"?e:""+e).replace(kx,`
|
||
`).replace(Hx,"")}function bg(e,t){return t=pg(t),pg(e)===t}function ke(e,t,n,l,a,u){switch(n){case"children":if(typeof l=="string")t==="body"||t==="textarea"&&l===""||Ca(e,l);else if(typeof l=="number"||typeof l=="bigint")t!=="body"&&Ca(e,""+l);else return;break;case"className":Mu(e,"class",l);break;case"tabIndex":Mu(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Mu(e,n,l);break;case"style":hm(e,l,u);return;case"data":if(t!=="object"){Mu(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=zu(l),e.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(n,"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 u=="function"&&(n==="formAction"?(t!=="input"&&ke(e,t,"name",a.name,a,null),ke(e,t,"formEncType",a.formEncType,a,null),ke(e,t,"formMethod",a.formMethod,a,null),ke(e,t,"formTarget",a.formTarget,a,null)):(ke(e,t,"encType",a.encType,a,null),ke(e,t,"method",a.method,a,null),ke(e,t,"target",a.target,a,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(n);break}l=zu(l),e.setAttribute(n,l);break;case"onClick":l!=null&&(e.onclick=yn);return;case"onScroll":l!=null&&Ae("scroll",e);return;case"onScrollEnd":l!=null&&Ae("scrollend",e);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(o(60));(u!=null?u.__html:void 0)!==n&&(e.innerHTML=n)}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}n=zu(l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);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":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":l===!0?e.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(n,l):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(n,l):e.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(n):e.setAttribute(n,l);break;case"popover":Ae("beforetoggle",e),Ae("toggle",e),Ou(e,"popover",l);break;case"xlinkActuate":zn(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":zn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":zn(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":zn(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":zn(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":zn(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":zn(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":zn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":zn(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Ou(e,"is",l);break;case"innerText":case"textContent":return;default:if(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")n=lb.get(n)||n,Ou(e,n,l);else return}Me=!0}function Bs(e,t,n,l,a,u){switch(n){case"style":hm(e,l,u);return;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(n=l.__html,n!=null){if(a.children!=null)throw Error(o(60));(u!=null?u.__html:void 0)!==n&&(e.innerHTML=n)}}break;case"children":if(typeof l=="string")Ca(e,l);else if(typeof l=="number"||typeof l=="bigint")Ca(e,""+l);else return;break;case"onScroll":l!=null&&Ae("scroll",e);return;case"onScrollEnd":l!=null&&Ae("scrollend",e);return;case"onClick":l!=null&&(e.onclick=yn);return;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":return;case"innerText":case"textContent":return;default:if(!am.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),u=n.slice(2,a?n.length-7:void 0),t=e[_t]||null,t=t!=null?t[n]:null,typeof t=="function"&&e.removeEventListener(u,t,a),typeof l=="function")){typeof t!="function"&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(u,l,a);break e}Me=!0,n in e?e[n]=l:l===!0?e.setAttribute(n,""):Ou(e,n,l)}return}Me=!0}function bt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ae("error",e),Ae("load",e);var l=!1,a=!1,u;for(u in n)if(n.hasOwnProperty(u)){var d=n[u];if(d!=null)switch(u){case"src":l=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ke(e,t,u,d,n,null)}}a&&ke(e,t,"srcSet",n.srcSet,n,null),l&&ke(e,t,"src",n.src,n,null);return;case"input":Ae("invalid",e);var g=u=d=a=null,C=null,M=null;for(l in n)if(n.hasOwnProperty(l)){var q=n[l];if(q!=null)switch(l){case"name":a=q;break;case"type":d=q;break;case"checked":C=q;break;case"defaultChecked":M=q;break;case"value":u=q;break;case"defaultValue":g=q;break;case"children":case"dangerouslySetInnerHTML":if(q!=null)throw Error(o(137,t));break;default:ke(e,t,l,q,n,null)}}sm(e,u,g,C,M,d,a,!1);return;case"select":Ae("invalid",e),l=d=u=null;for(a in n)if(n.hasOwnProperty(a)&&(g=n[a],g!=null))switch(a){case"value":u=g;break;case"defaultValue":d=g;break;case"multiple":l=g;default:ke(e,t,a,g,n,null)}t=u,n=d,e.multiple=!!l,t!=null?Ea(e,!!l,t,!1):n!=null&&Ea(e,!!l,n,!0);return;case"textarea":Ae("invalid",e),u=a=l=null;for(d in n)if(n.hasOwnProperty(d)&&(g=n[d],g!=null))switch(d){case"value":l=g;break;case"defaultValue":a=g;break;case"children":u=g;break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(o(91));break;default:ke(e,t,d,g,n,null)}dm(e,l,a,u);return;case"option":for(C in n)if(n.hasOwnProperty(C)&&(l=n[C],l!=null))switch(C){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:ke(e,t,C,l,n,null)}return;case"dialog":Ae("beforetoggle",e),Ae("toggle",e),Ae("cancel",e),Ae("close",e);break;case"iframe":case"object":Ae("load",e);break;case"video":case"audio":for(l=0;l<tu.length;l++)Ae(tu[l],e);break;case"image":Ae("error",e),Ae("load",e);break;case"details":Ae("toggle",e);break;case"embed":case"source":case"link":Ae("error",e),Ae("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in n)if(n.hasOwnProperty(M)&&(l=n[M],l!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:ke(e,t,M,l,n,null)}return;default:if(Ho(t)){for(q in n)n.hasOwnProperty(q)&&(l=n[q],l!==void 0&&Bs(e,t,q,l,n,void 0));return}}for(g in n)n.hasOwnProperty(g)&&(l=n[g],l!=null&&ke(e,t,g,l,n,null))}var Lx={};function qx(e,t,n,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,u=null,d=null,g=null,C=null,M=null,q=null;for(H in n){var X=n[H];if(n.hasOwnProperty(H)&&X!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":C=X;default:l.hasOwnProperty(H)||ke(e,t,H,null,l,X)}}for(var _ in l){var H=l[_];if(X=n[_],l.hasOwnProperty(_)&&(H!=null||X!=null))switch(_){case"type":H!==X&&(Me=!0),u=H;break;case"name":H!==X&&(Me=!0),a=H;break;case"checked":H!==X&&(Me=!0),M=H;break;case"defaultChecked":H!==X&&(Me=!0),q=H;break;case"value":H!==X&&(Me=!0),d=H;break;case"defaultValue":H!==X&&(Me=!0),g=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(o(137,t));break;default:H!==X&&ke(e,t,_,H,l,X)}}Bo(e,d,g,C,M,q,u,a);return;case"select":H=d=g=_=null;for(u in n)if(C=n[u],n.hasOwnProperty(u)&&C!=null)switch(u){case"value":break;case"multiple":H=C;default:l.hasOwnProperty(u)||ke(e,t,u,null,l,C)}for(a in l)if(u=l[a],C=n[a],l.hasOwnProperty(a)&&(u!=null||C!=null))switch(a){case"value":u!==C&&(Me=!0),_=u;break;case"defaultValue":u!==C&&(Me=!0),g=u;break;case"multiple":u!==C&&(Me=!0),d=u;default:u!==C&&ke(e,t,a,u,l,C)}t=g,n=d,l=H,_!=null?Ea(e,!!n,_,!1):!!l!=!!n&&(t!=null?Ea(e,!!n,t,!0):Ea(e,!!n,n?[]:"",!1));return;case"textarea":H=_=null;for(g in n)if(a=n[g],n.hasOwnProperty(g)&&a!=null&&!l.hasOwnProperty(g))switch(g){case"value":break;case"children":break;default:ke(e,t,g,null,l,a)}for(d in l)if(a=l[d],u=n[d],l.hasOwnProperty(d)&&(a!=null||u!=null))switch(d){case"value":a!==u&&(Me=!0),_=a;break;case"defaultValue":a!==u&&(Me=!0),H=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(o(91));break;default:a!==u&&ke(e,t,d,a,l,u)}fm(e,_,H);return;case"option":for(var le in n)if(_=n[le],n.hasOwnProperty(le)&&_!=null&&!l.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:ke(e,t,le,null,l,_)}for(C in l)if(_=l[C],H=n[C],l.hasOwnProperty(C)&&_!==H&&(_!=null||H!=null))switch(C){case"selected":_!==H&&(Me=!0),e.selected=_&&typeof _!="function"&&typeof _!="symbol";break;default:ke(e,t,C,_,l,H)}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 de in n)_=n[de],n.hasOwnProperty(de)&&_!=null&&!l.hasOwnProperty(de)&&ke(e,t,de,null,l,_);for(M in l)if(_=l[M],H=n[M],l.hasOwnProperty(M)&&_!==H&&(_!=null||H!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(_!=null)throw Error(o(137,t));break;default:ke(e,t,M,_,l,H)}return;default:if(Ho(t)){for(var Ne in n)_=n[Ne],n.hasOwnProperty(Ne)&&_!==void 0&&!l.hasOwnProperty(Ne)&&Bs(e,t,Ne,void 0,l,_);for(q in l)_=l[q],H=n[q],!l.hasOwnProperty(q)||_===H||_===void 0&&H===void 0||Bs(e,t,q,_,l,H);return}}for(var O in n)_=n[O],n.hasOwnProperty(O)&&_!=null&&!l.hasOwnProperty(O)&&ke(e,t,O,null,l,_);for(X in l)_=l[X],H=n[X],!l.hasOwnProperty(X)||_===H||_==null&&H==null||ke(e,t,X,_,l,H)}function xg(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Gx(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var a=n[l],u=a.transferSize,d=a.initiatorType,g=a.duration;if(u&&g&&xg(d)){for(d=0,g=a.responseEnd,l+=1;l<n.length;l++){var C=n[l],M=C.startTime;if(M>g)break;var q=C.transferSize,X=C.initiatorType;q&&xg(X)&&(C=C.responseEnd,d+=q*(C<g?1:(g-M)/(C-M)))}if(--l,t+=8*(u+d)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ks=null,Hs=null;function lu(e){return e.nodeType===9?e:e.ownerDocument}function Sg(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Eg(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Cg(e,t,n,l){return n=lu(n).createElement(e),n[ht]=l,n[_t]=t,bt(n,e,t),rt(n),n}function Ls(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var qs=null;function Yx(){var e=window.event;return e&&e.type==="popstate"?e===qs?!1:(qs=e,!0):(qs=null,!1)}var Gs=typeof setTimeout=="function"?setTimeout:void 0,Vx=typeof clearTimeout=="function"?clearTimeout:void 0,Ng=typeof Promise=="function"?Promise:void 0,wg=typeof requestAnimationFrame=="function"?requestAnimationFrame:Gs,Qx=typeof queueMicrotask=="function"?queueMicrotask:typeof Ng<"u"?function(e){return Ng.resolve(null).then(e).catch(Xx)}:Gs;function Xx(e){setTimeout(function(){throw e})}function Cl(e){return e==="head"}function Tg(e,t){var n=t,l=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(l===0){e.removeChild(a),ui(t);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Js(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Js(n);for(var u=n.firstChild;u;){var d=u.nextSibling,g=u.nodeName;u[Si]||g==="SCRIPT"||g==="STYLE"||g==="LINK"&&u.rel.toLowerCase()==="stylesheet"||n.removeChild(u),u=d}}else n==="body"&&Js(e.ownerDocument.body);n=a}while(n);ui(t)}function _g(e,t){var n=e;e=0;do{var l=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=l}while(n)}function Ag(e,t,n){if(t=CSS.escape(t)!==t?"r-"+btoa(t).replace(/=/g,""):t,e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display==="inline"){if(t=e.getClientRects(),t.length===1)var l=1;else for(var a=l=0;a<t.length;a++){var u=t[a];0<u.width&&0<u.height&&l++}l===1&&(e=e.style,e.display=t.length===1?"inline-block":"block",e.marginTop="-"+n.paddingTop,e.marginBottom="-"+n.paddingBottom)}}function Rg(e,t){e=e.style,t=t.style;var n=t!=null?t.hasOwnProperty("viewTransitionName")?t.viewTransitionName:t.hasOwnProperty("view-transition-name")?t["view-transition-name"]:null:null;e.viewTransitionName=n==null||typeof n=="boolean"?"":(""+n).trim(),n=t!=null?t.hasOwnProperty("viewTransitionClass")?t.viewTransitionClass:t.hasOwnProperty("view-transition-class")?t["view-transition-class"]:null:null,e.viewTransitionClass=n==null||typeof n=="boolean"?"":(""+n).trim(),e.display==="inline-block"&&(t==null?e.display=e.margin="":(n=t.display,e.display=n==null||typeof n=="boolean"?"":n,n=t.margin,n!=null?e.margin=n:(n=t.hasOwnProperty("marginTop")?t.marginTop:t["margin-top"],e.marginTop=n==null||typeof n=="boolean"?"":n,t=t.hasOwnProperty("marginBottom")?t.marginBottom:t["margin-bottom"],e.marginBottom=t==null||typeof t=="boolean"?"":t)))}function Zx(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position==="absolute"||t.position==="fixed",clip:t.clipPath!=="none"||t.overflow!=="visible"||t.filter!=="none"||t.mask!=="none"||t.mask!=="none"||t.borderRadius!=="0px",view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function Ys(e){var t=e.getBoundingClientRect(),n=getComputedStyle(e);return Zx(t,n,e)}function Kx(e){return e.documentElement.clientHeight}function Ix(e){this.addEventListener("load",e),this.addEventListener("error",e)}function Jx(e,t,n,l,a,u,d,g,C){var M=t.nodeType===9?t:t.ownerDocument;try{var q=M.startViewTransition({update:function(){var _=M.defaultView,H=_.navigation&&_.navigation.transition,le=M.fonts.status;l();var de=[];if(le==="loaded"&&(Kx(M),M.fonts.status==="loading"&&de.push(M.fonts.ready)),le=de.length,e!==null)for(var Ne=e.suspenseyImages,O=0,w=0;w<Ne.length;w++){var B=Ne[w];if(!B.complete){var Q=B.getBoundingClientRect();if(0<Q.bottom&&0<Q.right&&Q.top<_.innerHeight&&Q.left<_.innerWidth){if(O+=Fg(B),O>Yr){de.length=le;break}B=new Promise(Ix.bind(B)),de.push(B)}}}if(0<de.length)return _=Promise.race([Promise.all(de),new Promise(function(re){return setTimeout(re,500)})]).then(a,a),(H?Promise.allSettled([H.finished,_]):_).then(u,u);if(a(),H)return H.finished.then(u,u);u()},types:n});M.__reactViewTransition=q;var X=[];return q.ready.then(function(){for(var _=M.documentElement.getAnimations({subtree:!0}),H=0;H<_.length;H++){var le=_[H],de=le.effect,Ne=de.pseudoElement;if(Ne!=null&&Ne.startsWith("::view-transition")){X.push(le),le=de.getKeyframes();for(var O=Ne=void 0,w=!0,B=0;B<le.length;B++){var Q=le[B],re=Q.width;if(Ne===void 0)Ne=re;else if(Ne!==re){w=!1;break}if(re=Q.height,O===void 0)O=re;else if(O!==re){w=!1;break}delete Q.width,delete Q.height,Q.transform==="none"&&delete Q.transform}w&&Ne!==void 0&&O!==void 0&&(de.setKeyframes(le),w=getComputedStyle(de.target,de.pseudoElement),w.width!==Ne||w.height!==O)&&(w=le[0],w.width=Ne,w.height=O,w=le[le.length-1],w.width=Ne,w.height=O,de.setKeyframes(le))}}d()},function(_){M.__reactViewTransition===q&&(M.__reactViewTransition=null);try{if(typeof _=="object"&&_!==null)switch(_.name){case"InvalidStateError":(_.message==="View transition was skipped because document visibility state is hidden."||_.message==="Skipping view transition because document visibility state has become hidden."||_.message==="Skipping view transition because viewport size changed."||_.message==="Transition was aborted because of invalid state")&&(_=null)}_!==null&&C(_)}finally{l(),a(),d()}}),q.finished.finally(function(){for(var _=0;_<X.length;_++)X[_].cancel();M.__reactViewTransition===q&&(M.__reactViewTransition=null),g()}),q}catch{return l(),a(),d(),null}}function aa(e,t){this._scope=document.documentElement,this._selector="::view-transition-"+e+"("+t+")"}aa.prototype.animate=function(e,t){return t=typeof t=="number"?{duration:t}:T({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},aa.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),l=[],a=0;a<n.length;a++){var u=n[a].effect;u!==null&&u.target===e&&u.pseudoElement===t&&l.push(n[a])}return l},aa.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function jg(e){return{name:e,group:new aa("group",e),imagePair:new aa("image-pair",e),old:new aa("old",e),new:new aa("new",e)}}function Xt(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Xt.prototype.addEventListener=function(e,t,n){var l=null,a=null;if(!(n!=null&&typeof n!="boolean"&&(l=n.signal||null,l!==null&&l.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var u=this._eventListeners;if(Mg(u,e,t,n)===-1){var d=this,g=t;n!=null&&typeof n!="boolean"&&n.once===!0&&(g=function(C){d.removeEventListener(e,t,n),typeof t=="function"?t.call(this,C):t.handleEvent(C)}),l!==null&&(a=d.removeEventListener.bind(d,e,t,n),l.addEventListener("abort",a,{once:!0}),a=l.removeEventListener.bind(l,"abort",a)),l=ei(n),u.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:g,cleanup:a}),y(this._fragmentFiber.child,!1,Fx,e,g,l)}this._eventListeners=u}};function Fx(e,t,n,l){return L(e).addEventListener(t,n,l),!1}Xt.prototype.removeEventListener=function(e,t,n){var l=this._eventListeners;if(l!==null&&(t=Mg(l,e,t,n),t!==-1)){var a=l[t];n=a.attachedListener;var u=a.cleanup;a=ei(a.optionsOrUseCapture),y(this._fragmentFiber.child,!1,Px,e,n,a),l.splice(t,1),u!==null&&u()}};function Px(e,t,n,l){return L(e).removeEventListener(t,n,l),!1}function ei(e){return e!=null&&typeof e!="boolean"&&(e.once===!0||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Og(e){return e==null?"c=0":typeof e=="boolean"?"c="+(e?"1":"0"):"c="+(e.capture?"1":"0")}function Mg(e,t,n,l){if(e.length===0)return-1;l=Og(l);for(var a=0;a<e.length;a++){var u=e[a];if(u.type===t&&u.listener===n&&Og(u.optionsOrUseCapture)===l)return a}return-1}Xt.prototype.dispatchEvent=function(e){var t=E(this._fragmentFiber);if(t===null)return!0;t=L(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var l=t.nodeType===9?t.createComment(""):document.createTextNode("");if(n)for(var a=0;a<n.length;a++){var u=n[a];l.addEventListener(u.type,u.attachedListener,ei(u.optionsOrUseCapture))}if(t.appendChild(l),e=l.dispatchEvent(e),n)for(a=0;a<n.length;a++)u=n[a],l.removeEventListener(u.type,u.attachedListener,ei(u.optionsOrUseCapture));return t.removeChild(l),e}return t.dispatchEvent(e)},Xt.prototype.focus=function(e){y(this._fragmentFiber.child,!0,zg,e,void 0,void 0)};function zg(e,t){return e.tag===6?!1:(e=L(e),cS(e,t))}Xt.prototype.focusLast=function(e){var t=[];y(this._fragmentFiber.child,!0,Vs,t,void 0,void 0);for(var n=t.length-1;0<=n&&!zg(t[n],e);n--);};function Vs(e,t){return t.push(e),!1}Xt.prototype.blur=function(){var e=E(this._fragmentFiber);e!==null&&(e=L(e),e=lu(e).activeElement,e!==null&&y(this._fragmentFiber.child,!1,$x,e,void 0,void 0))};function $x(e,t){return e.tag===6?!1:(e=L(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Xt.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),y(this._fragmentFiber.child,!1,Wx,e,void 0,void 0)};function Wx(e,t){return e.tag===6||(e=L(e),t.observe(e)),!1}Xt.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),y(this._fragmentFiber.child,!1,eS,e,void 0,void 0);for(var n=t=0;n<hn.length;n++){var l=hn[n];l.fragmentInstance===this&&l.observer===e?e.unobserve(l.instance):hn[t++]=l}hn.length=t}};function eS(e,t){return e.tag===6||(e=L(e),t.unobserve(e)),!1}var hn=[],Qs=!1;function tS(e,t,n){hn.push({fragmentInstance:e,observer:t,instance:n}),Qs||(Qs=!0,sS(function(){Qs=!1;var l=hn;hn=[];for(var a=0;a<l.length;a++){var u=l[a];u.observer.unobserve(u.instance)}}))}Xt.prototype.getClientRects=function(){var e=[];return y(this._fragmentFiber.child,!1,nS,e,void 0,void 0),e};function nS(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=L(e),t.push.apply(t,e.getClientRects());return!1}Xt.prototype.getRootNode=function(e){var t=E(this._fragmentFiber);return t===null?this:L(t).getRootNode(e)},Xt.prototype.compareDocumentPosition=function(e){var t=E(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];y(this._fragmentFiber.child,!1,Vs,n,void 0,void 0);var l=L(t);if(n.length===0){if(n=l,A(this._fragmentFiber)){e:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break e}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var a=l=n.compareDocumentPosition(e);return n===e?a=Node.DOCUMENT_POSITION_CONTAINS:l&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=j(t)[1],n===null?a=Node.DOCUMENT_POSITION_PRECEDING:(e=L(n).compareDocumentPosition(e),a=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),a|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=L(n[0]),a=L(n[n.length-1]);var u=A(this._fragmentFiber)?t.parentElement:l;if(u==null)return Node.DOCUMENT_POSITION_DISCONNECTED;l=u.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,u=u.compareDocumentPosition(a)&Node.DOCUMENT_POSITION_CONTAINED_BY;var d=t.compareDocumentPosition(e),g=a.compareDocumentPosition(e),C=d&Node.DOCUMENT_POSITION_CONTAINED_BY||g&Node.DOCUMENT_POSITION_CONTAINED_BY;return g=l&&u&&d&Node.DOCUMENT_POSITION_FOLLOWING&&g&Node.DOCUMENT_POSITION_PRECEDING,t=l&&t===e||u&&a===e||C||g?Node.DOCUMENT_POSITION_CONTAINED_BY:!l&&t===e||!u&&a===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:d,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||lS(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function lS(e,t,n,l,a){var u=kl(a);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!u)e:{for(;u!==null;){if(u.tag===7&&(u===t||u.alternate===t)){n=!0;break e}u=u.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(u===null)return u=a.ownerDocument,a===u||a===u.documentElement||a===u.body;e:{for(u=t,t=E(t);u!==null;){if(!(u.tag!==5&&u.tag!==3&&u.tag!==27||u!==t&&u.alternate!==t)){u=!0;break e}u=u.return}u=!1}return u}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!u)&&!(t=u===n)&&(t=R(n,u,I),t===null?t=!1:(y(t,!0,k,u,n),u=Y,Y=null,t=u!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!u)&&!(t=u===l)&&(t=R(l,u,I),t===null?t=!1:(y(t,!0,V,u,l),u=Y,G=Y=null,t=u!==null)),t):!1}function Dg(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Xt.prototype.scrollIntoView=function(e){if(typeof e=="object")throw Error(o(566));var t=[];y(this._fragmentFiber.child,!1,Vs,t,void 0,void 0);var n=e!==!1;if(t.length===0){var l=j(this._fragmentFiber);if(l=n?l[1]||l[0]||E(this._fragmentFiber):l[0]||l[1],l===null)return;if(l.tag===6){e=L(l),Dg(e,n);return}if(l=L(l),l.nodeType!==9){if(l.nodeType===11){n="host"in l?l.host:null,n!==null&&n.scrollIntoView(e);return}l.scrollIntoView(e)}}for(l=n?t.length-1:0;l!==(n?-1:t.length);){var a=t[l];a.tag===6?(a=L(a),Dg(a,n)):L(a).scrollIntoView(e),l+=n?-1:1}};function aS(e,t){return e=L(e),Ug(e,t),!1}function Ug(e,t){e.reactFragments==null&&(e.reactFragments=new Set),e.reactFragments.add(t)}function Bg(e,t){var n=t._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var a=n[l];e.addEventListener(a.type,a.attachedListener,ei(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(u){for(var d=0,g=0;g<hn.length;g++){var C=hn[g];(C.fragmentInstance!==t||C.observer!==u||C.instance!==e)&&(hn[d++]=C)}hn.length=d,u.observe(e)}),Ug(e,t))}function iS(e,t){var n=t._eventListeners;if(n!==null)for(var l=0;l<n.length;l++){var a=n[l];e.removeEventListener(a.type,a.attachedListener,ei(a.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(u){typeof u.rootMargin=="string"?tS(t,u,e):u.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function Xs(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Xs(n),ju(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function uS(e,t,n,l){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Si])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(u=e.getAttribute("rel"),u==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(u!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(u=e.getAttribute("src"),(u!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&u&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var u=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===u)return e}else return e;if(e=tn(e.nextSibling),e===null)break}return null}function rS(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=tn(e.nextSibling),e===null))return null;return e}function kg(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=tn(e.nextSibling),e===null))return null;return e}function Zs(e){return e.data==="$?"||e.data==="$~"}function Ks(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function oS(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var l=function(){t(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function tn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Is=null;function Hg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return tn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Lg(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function cS(e,t){function n(){l=!0}if(e.ownerDocument.activeElement===e)return!0;var l=!1;try{e.ownerDocument.addEventListener("focus",n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener("focus",n,!0)}return l}function sS(e){wg(function(){wg(function(t){return e(t)})})}function qg(e,t,n){switch(t=lu(n),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function Gg(e,t,n){for(var l in n){var a=n[l];n.hasOwnProperty(l)&&a!=null&&ke(e,t,l,null,Lx,a)}n.dangerouslySetInnerHTML!=null&&(e.textContent=""),e.onclick===yn&&(e.onclick=null),ju(e)}function Js(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ju(e)}var nn=new Map,Yg=new Set;function au(e){if(typeof e.getRootNode=="function"){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Zn=ye.d;ye.d={f:fS,r:dS,D:mS,C:hS,L:vS,m:gS,X:pS,S:yS,M:bS};function fS(){var e=Zn.f(),t=zr();return e||t}function dS(e){var t=ba(e);t!==null&&t.tag===5&&t.type==="form"?Qh(t):Zn.r(e)}var ti=typeof document>"u"?null:document;function Vg(e,t,n){var l=ti;if(l&&typeof t=="string"&&t){var a=It(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),Yg.has(a)||(Yg.add(a),e={rel:e,crossOrigin:n,href:t},l.querySelector(a)===null&&(t=l.createElement("link"),bt(t,"link",e),rt(t),l.head.appendChild(t)))}}function mS(e){Zn.D(e),Vg("dns-prefetch",e,null)}function hS(e,t){Zn.C(e,t),Vg("preconnect",e,t)}function vS(e,t,n){Zn.L(e,t,n);var l=ti;if(l&&e&&t){var a='link[rel="preload"][as="'+It(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+It(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+It(n.imageSizes)+'"]')):a+='[href="'+It(e)+'"]';var u=a;switch(t){case"style":u=ni(e);break;case"script":u=li(e)}if(!(nn.has(u)||(e=T({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),nn.set(u,e),l.querySelector(a)!==null||t==="style"&&l.querySelector(iu(u))||t==="script"&&l.querySelector(uu(u))))){var d=l.createElement("link");bt(d,"link",e),t==="style"&&(d[Ru]=!0,d.onload=d.onerror=function(){nm(d)}),rt(d),l.head.appendChild(d)}}}function gS(e,t){Zn.m(e,t);var n=ti;if(n&&e){var l=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+It(l)+'"][href="'+It(e)+'"]',u=a;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":u=li(e)}if(!nn.has(u)&&(e=T({rel:"modulepreload",href:e},t),nn.set(u,e),n.querySelector(a)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(uu(u)))return}l=n.createElement("link"),bt(l,"link",e),rt(l),n.head.appendChild(l)}}}function yS(e,t,n){Zn.S(e,t,n);var l=ti;if(l&&e){var a=xa(l).hoistableStyles,u=ni(e);t=t||"default";var d=a.get(u);if(!d){var g={loading:0,preload:null};if(d=l.querySelector(iu(u)))g.loading=5;else{e=T({rel:"stylesheet",href:e,"data-precedence":t},n),(n=nn.get(u))&&Fs(e,n);var C=d=l.createElement("link");rt(C),bt(C,"link",e),C._p=new Promise(function(M,q){C.onload=M,C.onerror=q}),C.addEventListener("load",function(){g.loading|=1}),C.addEventListener("error",function(){g.loading|=2}),g.loading|=4,qr(d,t,l)}d={type:"stylesheet",instance:d,count:1,state:g},a.set(u,d)}}}function pS(e,t){Zn.X(e,t);var n=ti;if(n&&e){var l=xa(n).hoistableScripts,a=li(e),u=l.get(a);u||(u=n.querySelector(uu(a)),u||(e=T({src:e,async:!0},t),(t=nn.get(a))&&Ps(e,t),u=n.createElement("script"),rt(u),bt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(a,u))}}function bS(e,t){Zn.M(e,t);var n=ti;if(n&&e){var l=xa(n).hoistableScripts,a=li(e),u=l.get(a);u||(u=n.querySelector(uu(a)),u||(e=T({src:e,async:!0,type:"module"},t),(t=nn.get(a))&&Ps(e,t),u=n.createElement("script"),rt(u),bt(u,"link",e),n.head.appendChild(u)),u={type:"script",instance:u,count:1,state:null},l.set(a,u))}}function Qg(e,t,n,l){var a=(a=el.current)?au(a):null;if(!a)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(n=ni(n.href),t=xa(a).hoistableStyles,l=t.get(n),l||(l={type:"style",instance:null,count:0,state:null},t.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ni(n.href);var u=xa(a).hoistableStyles,d=u.get(e);if(d||(a=a.ownerDocument||a,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},u.set(e,d),(u=a.querySelector(iu(e)))?u._p||(d.instance=u,d.state.loading=5):(u=nn.get(e),u||(u={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},nn.set(e,u)),xS(a,e,u,d.state))),t&&l===null)throw Error(o(528,""));return d}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(n=li(n),t=xa(a).hoistableScripts,l=t.get(n),l||(l={type:"script",instance:null,count:0,state:null},t.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function ni(e){return'href="'+It(e)+'"'}function iu(e){return'link[rel="stylesheet"]['+e+"]"}function Xg(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function xS(e,t,n,l){if(t=e.querySelector('link[rel="preload"][as="style"]['+t+"]")){if(t[Ru]!==!0){l.loading=1;return}}else t=e.createElement("link"),t[Ru]=!0,t.onload=t.onerror=nm.bind(null,t),bt(t,"link",n),rt(t),e.head.appendChild(t);l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2})}function li(e){return'[src="'+It(e)+'"]'}function uu(e){return"script[async]"+e}function Zg(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+It(n.href)+'"]');if(l)return t.instance=l,rt(l),l;var a=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),rt(l),bt(l,"style",a),qr(l,n.precedence,e),t.instance=l;case"stylesheet":a=ni(n.href);var u=e.querySelector(iu(a));if(u)return t.state.loading|=4,t.instance=u,rt(u),u;l=Xg(n),(a=nn.get(a))&&Fs(l,a),u=(e.ownerDocument||e).createElement("link"),rt(u);var d=u;return d._p=new Promise(function(g,C){d.onload=g,d.onerror=C}),bt(u,"link",l),t.state.loading|=4,qr(u,n.precedence,e),t.instance=u;case"script":return u=li(n.src),(a=e.querySelector(uu(u)))?(t.instance=a,rt(a),a):(l=n,(a=nn.get(u))&&(l=T({},n),Ps(l,a)),e=e.ownerDocument||e,a=e.createElement("script"),rt(a),bt(a,"link",l),e.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&&(l=t.instance,t.state.loading|=4,qr(l,n.precedence,e));return t.instance}function qr(e,t,n){for(var l=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=l.length?l[l.length-1]:null,u=a,d=0;d<l.length;d++){var g=l[d];if(g.dataset.precedence===t)u=g;else if(u!==a)break}u?u.parentNode.insertBefore(e,u.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Fs(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ps(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Gr=null;function Kg(e,t,n){if(Gr===null){var l=new Map,a=Gr=new Map;a.set(n,l)}else a=Gr,l=a.get(n),l||(l=new Map,a.set(n,l));if(l.has(e))return l;for(l.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var u=n[a];if(!(u[Si]||u[ht]||e==="link"&&u.getAttribute("rel")==="stylesheet")&&u.namespaceURI!=="http://www.w3.org/2000/svg"){var d=u.getAttribute(t)||"";d=e+d;var g=l.get(d);g?g.push(u):l.set(d,[u])}}return l}function $s(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function SS(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Ig(e,t){return e==="img"&&t.src!=null&&t.src!==""&&t.onLoad==null&&t.loading!=="lazy"}function Jg(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Fg(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio=="number"?devicePixelRatio:1)*.25}function Pg(e,t){typeof t.decode=="function"&&(e.imgCount++,t.complete||(e.imgBytes+=Fg(t),e.suspenseyImages.push(t)),e=NS.bind(e),t.decode().then(e,e))}function ES(e,t,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var a=ni(l.href),u=t.querySelector(iu(a));if(u){t=u._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=ru.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=u,rt(u);return}u=t.ownerDocument||t,l=Xg(l),(a=nn.get(a))&&Fs(l,a),u=u.createElement("link"),rt(u);var d=u;d._p=new Promise(function(g,C){d.onload=g,d.onerror=C}),bt(u,"link",l),n.instance=u}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=ru.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Yr=0;function CS(e,t){return e.stylesheets&&e.count===0&&Qr(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var l=setTimeout(function(){if(e.stylesheets&&Qr(e,e.stylesheets),e.unsuspend){var u=e.unsuspend;e.unsuspend=null,u()}},6e4+t);0<e.imgBytes&&Yr===0&&(Yr=62500*Gx());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Qr(e,e.stylesheets),e.unsuspend)){var u=e.unsuspend;e.unsuspend=null,u()}},(e.imgBytes>Yr?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(a)}}:null}function $g(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)Qr(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function ru(){this.count--,$g(this)}function NS(){this.imgCount--,$g(this)}var Vr=null;function Qr(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Vr=new Map,t.forEach(wS,e),Vr=null,ru.call(e))}function wS(e,t){if(!(t.state.loading&4)){var n=Vr.get(e);if(n)var l=n.get(null);else{n=new Map,Vr.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),u=0;u<a.length;u++){var d=a[u];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),l=d)}l&&n.set(null,l)}a=t.instance,d=a.getAttribute("data-precedence"),u=n.get(d)||l,u===l&&n.set(null,a),n.set(d,a),this.count++,l=ru.bind(this),a.addEventListener("load",l),a.addEventListener("error",l),u?u.parentNode.insertBefore(a,u.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var ai={$$typeof:ge,Provider:null,Consumer:null,_currentValue:Dt,_currentValue2:Dt,_threadCount:0};function TS(e,t,n,l,a,u,d,g,C){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Mo(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Mo(0),this.hiddenUpdates=Mo(null),this.identifierPrefix=l,this.onUncaughtError=a,this.onCaughtError=u,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=C,this.transitionTypes=null,this.incompleteTransitions=new Map}function Wg(e,t,n,l,a,u,d,g,C,M,q,X){return e=new TS(e,t,n,d,C,M,q,X,g),t=1,u===!0&&(t|=24),u=At(3,null,null,t),e.current=u,u.stateNode=e,t=mc(),t.refCount++,e.pooledCache=t,t.refCount++,u.memoizedState={element:l,isDehydrated:n,cache:t},yc(u),e}function e0(e){return e?(e=ja,e):ja}function t0(e,t,n,l,a,u){a=e0(a),l.context===null?l.context=a:l.pendingContext=a,l=fl(t),l.payload={element:n},u=u===void 0?null:u,u!==null&&(l.callback=u),n=dl(e,l,t),n!==null&&(Mt(n,e,t),Hi(n,e,t))}function n0(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ws(e,t){n0(e,t),(e=e.alternate)&&n0(e,t)}function l0(e){if(e.tag===13||e.tag===31){var t=Gl(e,67108864);t!==null&&Mt(t,e,67108864),Ws(e,67108864)}}function a0(e){if(e.tag===13||e.tag===31){var t=Qt();t=zo(t);var n=Gl(e,t);n!==null&&Mt(n,e,t),Ws(e,t)}}var ii=!0;function _S(e,t,n,l){var a=fe.T;fe.T=null;var u=ye.p;try{ye.p=2,ef(e,t,n,l)}finally{ye.p=u,fe.T=a}}function AS(e,t,n,l){var a=fe.T;fe.T=null;var u=ye.p;try{ye.p=8,ef(e,t,n,l)}finally{ye.p=u,fe.T=a}}function ef(e,t,n,l){if(ii){var a=tf(l);if(a===null)Us(e,t,l,Xr,n),u0(e,l);else if(jS(a,e,t,n,l))l.stopPropagation();else if(u0(e,l),t&4&&-1<RS.indexOf(e)){for(;a!==null;){var u=ba(a);if(u!==null)switch(u.tag){case 3:if(u=u.stateNode,u.current.memoizedState.isDehydrated){var d=Bl(u.pendingLanes);if(d!==0){var g=u;for(g.pendingLanes|=2,g.entangledLanes|=2;d;){var C=1<<31-kt(d);g.entanglements[1]|=C,d&=~C}_n(u),(ze&6)===0&&(jr=Ut()+500,eu(0))}}break;case 31:case 13:g=Gl(u,2),g!==null&&Mt(g,u,2),zr(),Ws(u,2)}if(u=tf(l),u===null&&Us(e,t,l,Xr,n),u===a)break;a=u}a!==null&&l.stopPropagation()}else Us(e,t,l,null,n)}}function tf(e){return e=qo(e),nf(e)}var Xr=null;function nf(e){if(Xr=null,e=kl(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=m(t),e!==null)return e;e=null}else if(n===31){if(e=v(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Xr=e,null}function i0(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"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(Gp()){case Qd:return 2;case Xd:return 8;case Nu:case Yp:return 32;case Zd:return 268435456;default:return 32}default:return 32}}var lf=!1,Nl=null,wl=null,Tl=null,ou=new Map,cu=new Map,_l=[],RS="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 u0(e,t){switch(e){case"focusin":case"focusout":Nl=null;break;case"dragenter":case"dragleave":wl=null;break;case"mouseover":case"mouseout":Tl=null;break;case"pointerover":case"pointerout":ou.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":cu.delete(t.pointerId)}}function su(e,t,n,l,a,u){return e===null||e.nativeEvent!==u?(e={blockedOn:t,domEventName:n,eventSystemFlags:l,nativeEvent:u,targetContainers:[a]},t!==null&&(t=ba(t),t!==null&&l0(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function jS(e,t,n,l,a){switch(t){case"focusin":return Nl=su(Nl,e,t,n,l,a),!0;case"dragenter":return wl=su(wl,e,t,n,l,a),!0;case"mouseover":return Tl=su(Tl,e,t,n,l,a),!0;case"pointerover":var u=a.pointerId;return ou.set(u,su(ou.get(u)||null,e,t,n,l,a)),!0;case"gotpointercapture":return u=a.pointerId,cu.set(u,su(cu.get(u)||null,e,t,n,l,a)),!0}return!1}function r0(e){var t=kl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=m(n),t!==null){e.blockedOn=t,Wd(e.priority,function(){a0(n)});return}}else if(t===31){if(t=v(n),t!==null){e.blockedOn=t,Wd(e.priority,function(){a0(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Zr(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=tf(e.nativeEvent);if(n===null){n=e.nativeEvent;var l=new n.constructor(n.type,n);Lo=l,n.target.dispatchEvent(l),Lo=null}else return t=ba(n),t!==null&&l0(t),e.blockedOn=n,!1;t.shift()}return!0}function o0(e,t,n){Zr(e)&&n.delete(t)}function OS(){lf=!1,Nl!==null&&Zr(Nl)&&(Nl=null),wl!==null&&Zr(wl)&&(wl=null),Tl!==null&&Zr(Tl)&&(Tl=null),ou.forEach(o0),cu.forEach(o0)}function Kr(e,t){e.blockedOn===t&&(e.blockedOn=null,lf||(lf=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,OS)))}var Ir=null;function c0(e){Ir!==e&&(Ir=e,i.unstable_scheduleCallback(i.unstable_NormalPriority,function(){Ir===e&&(Ir=null);for(var t=0;t<e.length;t+=3){var n=e[t],l=e[t+1],a=e[t+2];if(typeof l!="function"){if(nf(l||n)===null)continue;break}var u=ba(n);u!==null&&(e.splice(t,3),t-=3,Hc(u,{pending:!0,data:a,method:n.method,action:l},l,a))}}))}function ui(e){function t(C){return Kr(C,e)}Nl!==null&&Kr(Nl,e),wl!==null&&Kr(wl,e),Tl!==null&&Kr(Tl,e),ou.forEach(t),cu.forEach(t);for(var n=0;n<_l.length;n++){var l=_l[n];l.blockedOn===e&&(l.blockedOn=null)}for(;0<_l.length&&(n=_l[0],n.blockedOn===null);)r0(n),n.blockedOn===null&&_l.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var a=n[l],u=n[l+1],d=a[_t]||null;if(typeof u=="function")d||c0(n);else if(d){var g=null;if(u&&u.hasAttribute("formAction")){if(a=u,d=u[_t]||null)g=d.formAction;else if(nf(a)!==null)continue}else g=d.action;typeof g=="function"?n[l+1]=g:(n.splice(l,3),l-=3),c0(n)}}}function s0(){function e(u){u.canIntercept&&u.info==="react-transition"&&u.intercept({handler:function(){return new Promise(function(d){return a=d})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),l||setTimeout(n,20)}function n(){if(!l&&!navigation.transition){var u=navigation.currentEntry;u&&u.url!=null&&navigation.navigate(u.url,{state:u.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function af(e){this._internalRoot=e}Jr.prototype.render=af.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var n=t.current,l=Qt();t0(n,l,e,t,null,null)},Jr.prototype.unmount=af.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;t0(e.current,2,null,e,null,null),zr(),t[pa]=null}};function Jr(e){this._internalRoot=e}Jr.prototype.unstable_scheduleHydration=function(e){if(e){var t=$d();e={blockedOn:null,target:e,priority:t};for(var n=0;n<_l.length&&t!==0&&t<_l[n].priority;n++);_l.splice(n,0,e),n===0&&r0(e)}};var f0=r.version;if(f0!=="19.3.1")throw Error(o(527,f0,"19.3.1"));ye.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=b(t),e=e!==null?S(e):null,e=e===null?null:e.stateNode,e};var MS={bundleType:0,version:"19.3.1",rendererPackageName:"react-dom",currentDispatcherRef:fe,reconcilerVersion:"19.3.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fr.isDisabled&&Fr.supportsFiber)try{pi=Fr.inject(MS),Bt=Fr}catch{}}return du.createRoot=function(e,t){if(!s(e))throw Error(o(299));var n=!1,l="",a=ev,u=tv,d=nv;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Wg(e,1,!1,null,null,n,l,null,a,u,d,s0),e[pa]=t.current,Ds(e),new af(t)},du.hydrateRoot=function(e,t,n){if(!s(e))throw Error(o(299));var l=!1,a="",u=ev,d=tv,g=nv,C=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(u=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(g=n.onRecoverableError),n.formState!==void 0&&(C=n.formState)),t=Wg(e,1,!0,t,n??null,l,a,C,u,d,g,s0),t.context=e0(null),n=t.current,l=Qt(),l=zo(l),a=fl(l),a.callback=null,dl(n,a,l),n=l,t.current.lanes=n,xi(t,n),_n(t),e[pa]=t.current,Ds(e),new Jr(t)},du.version="19.3.1",du}var N0;function YS(){if(N0)return cf.exports;N0=1;function i(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(i)}catch(r){console.error(r)}}return i(),cf.exports=GS(),cf.exports}var VS=YS();const QS=sd(VS),w0=i=>{let r;const c=new Set,o=(b,S)=>{const y=typeof b=="function"?b(r):b;if(!Object.is(y,r)){const E=r;r=S??(typeof y!="object"||y===null)?y:Object.assign({},r,y),c.forEach(A=>A(r,E))}},s=()=>r,v={setState:o,getState:s,getInitialState:()=>p,subscribe:b=>(c.add(b),()=>c.delete(b))},p=r=i(o,s,v);return v},XS=(i=>i?w0(i):w0),ZS=i=>i;function KS(i,r=ZS){const c=gu.useSyncExternalStore(i.subscribe,gu.useCallback(()=>r(i.getState()),[i,r]),()=>r(i.getInitialState()));return gu.useDebugValue(c),c}const T0=i=>{const r=XS(i),c=o=>KS(r,o);return Object.assign(c,r),c},IS=(i=>i?T0(i):T0),JS=()=>typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,Ay=i=>{const c=(i==="system"?JS():i==="dark")?"dark":"light";return typeof document<"u"&&document.documentElement.setAttribute("data-theme",c),c},Pr=localStorage.getItem("hl_theme_v2"),Ry=Pr==="light"||Pr==="dark"||Pr==="system"?Pr:"system",FS=Ay(Ry),PS=localStorage.getItem("hl_route_mode")||"auto",$S=localStorage.getItem("hl_layout_preset")||"homepage-3col",WS=typeof window<"u"&&window.location.pathname.startsWith("/storybook")?"storybook":"dashboard",Pn=IS((i,r)=>({theme:Ry,resolvedTheme:FS,routeMode:PS,layoutPreset:$S,viewMode:WS,showAgyModal:!1,showWechatModal:!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,clawbot:!1}},setTheme:c=>{localStorage.setItem("hl_theme_v2",c);const o=Ay(c);i({theme:c,resolvedTheme:o})},toggleTheme:()=>{const{resolvedTheme:c,setTheme:o}=r();o(c==="dark"?"light":"dark")},setRouteMode:c=>{localStorage.setItem("hl_route_mode",c),i({routeMode:c})},setLayoutPreset:c=>{localStorage.setItem("hl_layout_preset",c),i({layoutPreset:c})},setViewMode:c=>{if(typeof window<"u"){const o=c==="storybook"?"/storybook":"/";window.history.pushState({},"",o)}i({viewMode:c})},setShowAgyModal:c=>i({showAgyModal:c}),setShowWechatModal:c=>i({showWechatModal:c}),setShowCmdPalette:c=>i({showCmdPalette:c}),showToast:c=>{i({toast:c}),setTimeout(()=>{r().toast===c&&i({toast:""})},3e3)},fetchTelemetry:async()=>{try{const c=await fetch("/api/telemetry");if(c.ok){const o=await c.json();i({telemetry:o})}}catch{}},triggerAction:async(c,o)=>{const{showToast:s,fetchTelemetry:f}=r();i({actionLoading:!0}),s(o);try{const v=await(await fetch(`/api/action/${c}`,{method:"POST"})).json();s(v.message||"操作已完成"),await f()}catch{s("请求失败,请稍后重试")}finally{i({actionLoading:!1})}},copyCmd:async(c,o)=>{const{showToast:s}=r();try{await navigator.clipboard.writeText(c),s(`已复制「${o}」: ${c}`)}catch{s(c)}},getEffectiveMode:()=>{const{routeMode:c}=r();if(c!=="auto")return c;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 i=Pn.getState();i.theme==="system"&&i.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 e2=i=>i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),jy=(...i)=>i.filter((r,c,o)=>!!r&&r.trim()!==""&&o.indexOf(r)===c).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 t2={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 n2=x.forwardRef(({color:i="currentColor",size:r=24,strokeWidth:c=2,absoluteStrokeWidth:o,className:s="",children:f,iconNode:m,...v},p)=>x.createElement("svg",{ref:p,...t2,width:r,height:r,stroke:i,strokeWidth:o?Number(c)*24/Number(r):c,className:jy("lucide",s),...v},[...m.map(([b,S])=>x.createElement(b,S)),...Array.isArray(f)?f:[f]]));/**
|
||
* @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 Xe=(i,r)=>{const c=x.forwardRef(({className:o,...s},f)=>x.createElement(n2,{ref:f,iconNode:r,className:jy(`lucide-${e2(i)}`,o),...s}));return c.displayName=`${i}`,c};/**
|
||
* @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 l2=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Oy=Xe("BookOpen",l2);/**
|
||
* @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 a2=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],i2=Xe("Check",a2);/**
|
||
* @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 u2=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],r2=Xe("CircleCheck",u2);/**
|
||
* @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 o2=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],c2=Xe("EyeOff",o2);/**
|
||
* @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 s2=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],f2=Xe("Eye",s2);/**
|
||
* @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 d2=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],_0=Xe("KeyRound",d2);/**
|
||
* @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 m2=[["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"}]],h2=Xe("Layers",m2);/**
|
||
* @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 v2=[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]],g2=Xe("LayoutGrid",v2);/**
|
||
* @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 y2=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],p2=Xe("Lock",y2);/**
|
||
* @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 b2=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],My=Xe("MessageSquare",b2);/**
|
||
* @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 x2=[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]],S2=Xe("Moon",x2);/**
|
||
* @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 E2=[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]],C2=Xe("Palette",E2);/**
|
||
* @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 N2=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M9 21V9",key:"1oto5p"}]],w2=Xe("PanelsTopLeft",N2);/**
|
||
* @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 T2=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],_2=Xe("QrCode",T2);/**
|
||
* @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 A2=[["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"}]],R2=Xe("RefreshCw",A2);/**
|
||
* @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 j2=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],dd=Xe("Search",j2);/**
|
||
* @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 O2=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],M2=Xe("Send",O2);/**
|
||
* @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 z2=[["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"}]],D2=Xe("ShieldCheck",z2);/**
|
||
* @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 U2=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],B2=Xe("Smartphone",U2);/**
|
||
* @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 k2=[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]],H2=Xe("Sparkles",k2);/**
|
||
* @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 L2=[["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"}]],q2=Xe("Sun",L2);/**
|
||
* @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 G2=[["polyline",{points:"4 17 10 11 4 5",key:"akl6gq"}],["line",{x1:"12",x2:"20",y1:"19",y2:"19",key:"q2wloq"}]],md=Xe("Terminal",G2);/**
|
||
* @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 Y2=[["path",{d:"m19 5 3-3",key:"yk6iyv"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z",key:"1snsnr"}]],V2=Xe("Unplug",Y2);/**
|
||
* @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 Q2=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],X2=Xe("User",Q2);var Z2=Object.defineProperty,hd=(i,r)=>Z2(i,"name",{value:r,configurable:!0});function Jf(i,r){if(typeof i=="function")return i(r);i!=null&&(i.current=r)}hd(Jf,"setRef");function ra(...i){return r=>{let c=!1;const o=i.map(s=>{const f=Jf(s,r);return!c&&typeof f=="function"&&(c=!0),f});if(c)return()=>{for(let s=0;s<o.length;s++){const f=o[s];typeof f=="function"?f():Jf(i[s],null)}}}}hd(ra,"composeRefs");function zt(...i){return x.useCallback(ra(...i),i)}hd(zt,"useComposedRefs");var K2=Object.defineProperty,Kt=(i,r)=>K2(i,"name",{value:r,configurable:!0});function Ml(i){const r=x.forwardRef((c,o)=>{let{children:s,...f}=c,m=null,v=!1;const p=[];s=Hy(s),x.Children.forEach(s,E=>{var A;if(By(E)){v=!0;const j=E;let D="child"in j.props?j.props.child:j.props.children;for(;vd(D)&&typeof fo=="function";)D=fo(D._payload);m=F2(j,D),p.push((A=m==null?void 0:m.props)==null?void 0:A.children)}else p.push(E)}),m?m=x.cloneElement(m,void 0,p):!v&&x.Children.count(s)===1&&x.isValidElement(s)&&(m=s);const b=m?Uy(m):void 0,S=zt(o,b);if(!m){if(s||s===0)throw new Error(v?W2(i):$2(i));return s}const y=Dy(f,m.props??{});return m.type!==x.Fragment&&(y.ref=o?S:b),x.cloneElement(m,y)});return r.displayName=`${i}.Slot`,r}Kt(Ml,"createSlot");var I2=Ml("Slot"),zy=Symbol.for("radix.slottable");function J2(i){const r=Kt(c=>"child"in c?c.children(c.child):c.children,"Slottable");return r.displayName=`${i}.Slottable`,r.__radixId=zy,r}Kt(J2,"createSlottable");var F2=Kt((i,r)=>"child"in i.props?x.isValidElement(r)?x.cloneElement(r,void 0,i.props.children(r.props.children)):null:x.isValidElement(r)?r:null,"getSlottableElementFromSlottable");function Dy(i,r){const c={...r};for(const o in r){const s=i[o],f=r[o];/^on[A-Z]/.test(o)?s&&f?c[o]=(...v)=>{const p=f(...v);return s(...v),p}:s&&(c[o]=s):o==="style"?c[o]={...s,...f}:o==="className"?c[o]=[s,f].filter(Boolean).join(" "):o==="aria-describedby"&&(c[o]=Ly(f,s))}return{...i,...c}}Kt(Dy,"mergeProps");function Uy(i){var o,s;let r=(o=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:o.get,c=r&&"isReactWarning"in r&&r.isReactWarning;return c?i.ref:(r=(s=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:s.get,c=r&&"isReactWarning"in r&&r.isReactWarning,c?i.props.ref:i.props.ref||i.ref)}Kt(Uy,"getElementRef");function By(i){return x.isValidElement(i)&&typeof i.type=="function"&&"__radixId"in i.type&&i.type.__radixId===zy}Kt(By,"isSlottable");var P2=Symbol.for("react.lazy");function vd(i){return i!=null&&typeof i=="object"&&"$$typeof"in i&&i.$$typeof===P2&&"_payload"in i&&ky(i._payload)}Kt(vd,"isLazyComponent");function ky(i){return typeof i=="object"&&i!==null&&"then"in i}Kt(ky,"isPromiseLike");function Hy(i){let r=i;for(;vd(r)&&typeof fo=="function";)r=fo(r._payload);return r}Kt(Hy,"useUnwrappedLazy");function Ly(...i){const r=new Set;for(const c of i)if(typeof c=="string")for(const o of String(c).trim().split(/\s+/))o&&r.add(o);return r.size>0?Array.from(r).join(" "):void 0}Kt(Ly,"concatAriaDescribedby");var $2=Kt(i=>`${i} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,"createSlotError"),W2=Kt(i=>`${i} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,"createSlottableError"),fo=sa[" use ".trim().toString()];function qy(i){var r,c,o="";if(typeof i=="string"||typeof i=="number")o+=i;else if(typeof i=="object")if(Array.isArray(i)){var s=i.length;for(r=0;r<s;r++)i[r]&&(c=qy(i[r]))&&(o&&(o+=" "),o+=c)}else for(c in i)i[c]&&(o&&(o+=" "),o+=c);return o}function Gy(){for(var i,r,c=0,o="",s=arguments.length;c<s;c++)(i=arguments[c])&&(r=qy(i))&&(o&&(o+=" "),o+=r);return o}const A0=i=>typeof i=="boolean"?`${i}`:i===0?"0":i,R0=Gy,Yy=(i,r)=>c=>{var o;if((r==null?void 0:r.variants)==null)return R0(i,c==null?void 0:c.class,c==null?void 0:c.className);const{variants:s,defaultVariants:f}=r,m=Object.keys(s).map(b=>{const S=c==null?void 0:c[b],y=f==null?void 0:f[b];if(S===null)return null;const E=A0(S)||A0(y);return s[b][E]}),v=c&&Object.entries(c).reduce((b,S)=>{let[y,E]=S;return E===void 0||(b[y]=E),b},{}),p=r==null||(o=r.compoundVariants)===null||o===void 0?void 0:o.reduce((b,S)=>{let{class:y,className:E,...A}=S;return Object.entries(A).every(j=>{let[D,L]=j;return Array.isArray(L)?L.includes({...f,...v}[D]):{...f,...v}[D]===L})?[...b,y,E]:b},[]);return R0(i,m,p,c==null?void 0:c.class,c==null?void 0:c.className)},eE=(i,r)=>{const c=new Array(i.length+r.length);for(let o=0;o<i.length;o++)c[o]=i[o];for(let o=0;o<r.length;o++)c[i.length+o]=r[o];return c},tE=(i,r)=>({classGroupId:i,validator:r}),Vy=(i=new Map,r=null,c)=>({nextPart:i,validators:r,classGroupId:c}),mo="-",j0=[],nE="arbitrary..",lE=i=>{const r=iE(i),{conflictingClassGroups:c,conflictingClassGroupModifiers:o}=i;return{getClassGroupId:m=>{if(m.startsWith("[")&&m.endsWith("]"))return aE(m);const v=m.split(mo),p=v[0]===""&&v.length>1?1:0;return Qy(v,p,r)},getConflictingClassGroupIds:(m,v)=>{if(v){const p=o[m],b=c[m];return p?b?eE(b,p):p:b||j0}return c[m]||j0}}},Qy=(i,r,c)=>{if(i.length-r===0)return c.classGroupId;const s=i[r],f=c.nextPart.get(s);if(f){const b=Qy(i,r+1,f);if(b)return b}const m=c.validators;if(m===null)return;const v=r===0?i.join(mo):i.slice(r).join(mo),p=m.length;for(let b=0;b<p;b++){const S=m[b];if(S.validator(v))return S.classGroupId}},aE=i=>i.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const r=i.slice(1,-1),c=r.indexOf(":"),o=r.slice(0,c);return o?nE+o:void 0})(),iE=i=>{const{theme:r,classGroups:c}=i;return uE(c,r)},uE=(i,r)=>{const c=Vy();for(const o in i){const s=i[o];gd(s,c,o,r)}return c},gd=(i,r,c,o)=>{const s=i.length;for(let f=0;f<s;f++){const m=i[f];rE(m,r,c,o)}},rE=(i,r,c,o)=>{if(typeof i=="string"){oE(i,r,c);return}if(typeof i=="function"){cE(i,r,c,o);return}sE(i,r,c,o)},oE=(i,r,c)=>{const o=i===""?r:Xy(r,i);o.classGroupId=c},cE=(i,r,c,o)=>{if(fE(i)){gd(i(o),r,c,o);return}r.validators===null&&(r.validators=[]),r.validators.push(tE(c,i))},sE=(i,r,c,o)=>{const s=Object.entries(i),f=s.length;for(let m=0;m<f;m++){const[v,p]=s[m];gd(p,Xy(r,v),c,o)}},Xy=(i,r)=>{let c=i;const o=r.split(mo),s=o.length;for(let f=0;f<s;f++){const m=o[f];let v=c.nextPart.get(m);v||(v=Vy(),c.nextPart.set(m,v)),c=v}return c},fE=i=>"isThemeGetter"in i&&i.isThemeGetter===!0,dE=i=>{if(i<1)return{get:()=>{},set:()=>{}};let r=0,c=Object.create(null),o=Object.create(null);const s=(f,m)=>{c[f]=m,r++,r>i&&(r=0,o=c,c=Object.create(null))};return{get(f){let m=c[f];if(m!==void 0)return m;if((m=o[f])!==void 0)return s(f,m),m},set(f,m){f in c?c[f]=m:s(f,m)}}},Ff="!",O0=":",mE=[],M0=(i,r,c,o,s)=>({modifiers:i,hasImportantModifier:r,baseClassName:c,maybePostfixModifierPosition:o,isExternal:s}),hE=i=>{const{prefix:r,experimentalParseClassName:c}=i;let o=s=>{const f=[];let m=0,v=0,p=0,b;const S=s.length;for(let D=0;D<S;D++){const L=s[D];if(m===0&&v===0){if(L===O0){f.push(s.slice(p,D)),p=D+1;continue}if(L==="/"){b=D;continue}}L==="["?m++:L==="]"?m--:L==="("?v++:L===")"&&v--}const y=f.length===0?s:s.slice(p);let E=y,A=!1;y.endsWith(Ff)?(E=y.slice(0,-1),A=!0):y.startsWith(Ff)&&(E=y.slice(1),A=!0);const j=b&&b>p?b-p:void 0;return M0(f,A,E,j)};if(r){const s=r+O0,f=o;o=m=>m.startsWith(s)?f(m.slice(s.length)):M0(mE,!1,m,void 0,!0)}if(c){const s=o;o=f=>c({className:f,parseClassName:s})}return o},vE=i=>{const r=new Map;return i.orderSensitiveModifiers.forEach((c,o)=>{r.set(c,1e6+o)}),c=>{const o=[];let s=[];for(let f=0;f<c.length;f++){const m=c[f],v=m[0]==="[",p=r.has(m);v||p?(s.length>0&&(s.sort(),o.push(...s),s=[]),o.push(m)):s.push(m)}return s.length>0&&(s.sort(),o.push(...s)),o}},gE=i=>({cache:dE(i.cacheSize),parseClassName:hE(i),sortModifiers:vE(i),postfixLookupClassGroupIds:yE(i),...lE(i)}),yE=i=>{const r=Object.create(null),c=i.postfixLookupClassGroups;if(c)for(let o=0;o<c.length;o++)r[c[o]]=!0;return r},pE=/\s+/,bE=(i,r)=>{const{parseClassName:c,getClassGroupId:o,getConflictingClassGroupIds:s,sortModifiers:f,postfixLookupClassGroupIds:m}=r,v=[],p=i.trim().split(pE);let b="";for(let S=p.length-1;S>=0;S-=1){const y=p[S],{isExternal:E,modifiers:A,hasImportantModifier:j,baseClassName:D,maybePostfixModifierPosition:L}=c(y);if(E){b=y+(b.length>0?" "+b:b);continue}let Y=!!L,G;if(Y){const T=D.substring(0,L);G=o(T);const z=G&&m[G]?o(D):void 0;z&&z!==G&&(G=z,Y=!1)}else G=o(D);if(!G){if(!Y){b=y+(b.length>0?" "+b:b);continue}if(G=o(D),!G){b=y+(b.length>0?" "+b:b);continue}Y=!1}const k=A.length===0?"":A.length===1?A[0]:f(A).join(":"),V=j?k+Ff:k,I=V+G;if(v.indexOf(I)>-1)continue;v.push(I);const R=s(G,Y);for(let T=0;T<R.length;++T){const z=R[T];v.push(V+z)}b=y+(b.length>0?" "+b:b)}return b},xE=(...i)=>{let r=0,c,o,s="";for(;r<i.length;)(c=i[r++])&&(o=Zy(c))&&(s&&(s+=" "),s+=o);return s},Zy=i=>{if(typeof i=="string")return i;let r,c="";for(let o=0;o<i.length;o++)i[o]&&(r=Zy(i[o]))&&(c&&(c+=" "),c+=r);return c},SE=(i,...r)=>{let c,o,s,f;const m=p=>{const b=r.reduce((S,y)=>y(S),i());return c=gE(b),o=c.cache.get,s=c.cache.set,f=v,v(p)},v=p=>{const b=o(p);if(b)return b;const S=bE(p,c);return s(p,S),S};return f=m,(...p)=>f(xE(...p))},EE=[],it=i=>{const r=c=>c[i]||EE;return r.isThemeGetter=!0,r.themeKey=i,r},Ky=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Iy=/^\((?:(\w[\w-]*):)?(.+)\)$/i,CE=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,NE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,wE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,TE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,_E=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,AE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Rl=i=>CE.test(i),Te=i=>!!i&&!Number.isNaN(Number(i)),An=i=>!!i&&Number.isInteger(Number(i)),mf=i=>i.endsWith("%")&&Te(i.slice(0,-1)),Kn=i=>NE.test(i),Jy=()=>!0,RE=i=>wE.test(i)&&!TE.test(i),yd=()=>!1,jE=i=>_E.test(i),OE=i=>AE.test(i),ME=i=>!oe(i)&&!se(i),zE=i=>i.startsWith("@container")&&(i[10]==="/"&&i[11]!==void 0||i[11]==="s"&&i[16]!==void 0&&i.startsWith("-size/",10)||i[11]==="n"&&i[18]!==void 0&&i.startsWith("-normal/",10)),DE=i=>Ul(i,$y,yd),oe=i=>Ky.test(i),ia=i=>Ul(i,Wy,RE),z0=i=>Ul(i,YE,Te),UE=i=>Ul(i,t1,Jy),BE=i=>Ul(i,e1,yd),D0=i=>Ul(i,Fy,yd),kE=i=>Ul(i,Py,OE),$r=i=>Ul(i,n1,jE),se=i=>Iy.test(i),mu=i=>fa(i,Wy),HE=i=>fa(i,e1),U0=i=>fa(i,Fy),LE=i=>fa(i,$y),qE=i=>fa(i,Py),Wr=i=>fa(i,n1,!0),GE=i=>fa(i,t1,!0),Ul=(i,r,c)=>{const o=Ky.exec(i);return o?o[1]?r(o[1]):c(o[2]):!1},fa=(i,r,c=!1)=>{const o=Iy.exec(i);return o?o[1]?r(o[1]):c:!1},Fy=i=>i==="position"||i==="percentage",Py=i=>i==="image"||i==="url",$y=i=>i==="length"||i==="size"||i==="bg-size",Wy=i=>i==="length",YE=i=>i==="number",e1=i=>i==="family-name",t1=i=>i==="number"||i==="weight",n1=i=>i==="shadow",VE=()=>{const i=it("color"),r=it("font"),c=it("text"),o=it("font-weight"),s=it("tracking"),f=it("leading"),m=it("breakpoint"),v=it("container"),p=it("spacing"),b=it("radius"),S=it("shadow"),y=it("inset-shadow"),E=it("text-shadow"),A=it("drop-shadow"),j=it("blur"),D=it("perspective"),L=it("aspect"),Y=it("ease"),G=it("animate"),k=()=>["auto","avoid","all","avoid-page","page","left","right","column"],V=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],I=()=>[...V(),se,oe],R=()=>["auto","hidden","clip","visible","scroll"],T=()=>["auto","contain","none"],z=()=>[se,oe,p],Z=()=>[Rl,"full","auto",...z()],te=()=>[An,"none","subgrid",se,oe],W=()=>["auto",{span:["full",An,se,oe]},An,se,oe],P=()=>[An,"auto",se,oe],ne=()=>["auto","min","max","fr",se,oe],ue=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],ge=()=>["start","end","center","stretch","center-safe","end-safe"],F=()=>["auto",...z()],ae=()=>[Rl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...z()],ce=()=>[v,Rl,"screen","full","dvw","lvw","svw","min","max","fit",...z()],xe=()=>[Rl,"screen","full","lh","dvh","lvh","svh","min","max","fit",...z()],K=()=>[i,se,oe],Se=()=>[...V(),U0,D0,{position:[se,oe]}],J=()=>["no-repeat",{repeat:["","x","y","space","round"]}],me=()=>["auto","cover","contain",LE,DE,{size:[se,oe]}],N=()=>[mf,mu,ia],U=()=>["","none","full",b,se,oe],$=()=>["",Te,mu,ia],ee=()=>["solid","dashed","dotted","double"],he=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ie=()=>[Te,mf,U0,D0],Ee=()=>["","none",j,se,oe],fe=()=>["none",Te,se,oe],ye=()=>["none",Te,se,oe],Dt=()=>[Te,se,oe],Wn=()=>[Rl,"full",...z()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Kn],breakpoint:[Kn],color:[Jy],container:[Kn],"drop-shadow":[Kn],ease:["in","out","in-out"],font:[ME],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Kn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Kn],shadow:[Kn],spacing:["px",Te],text:[Kn],"text-shadow":[Kn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Rl,oe,se,L]}],container:["container"],"container-type":[{"@container":["","normal","size",se,oe]}],"container-named":[zE],columns:[{columns:[Te,"auto",oe,se,v]}],"break-after":[{"break-after":k()}],"break-before":[{"break-before":k()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:I()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:T()}],"overscroll-x":[{"overscroll-x":T()}],"overscroll-y":[{"overscroll-y":T()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Z()}],"inset-x":[{"inset-x":Z()}],"inset-y":[{"inset-y":Z()}],start:[{"inset-s":Z(),start:Z()}],end:[{"inset-e":Z(),end:Z()}],"inset-bs":[{"inset-bs":Z()}],"inset-be":[{"inset-be":Z()}],top:[{top:Z()}],right:[{right:Z()}],bottom:[{bottom:Z()}],left:[{left:Z()}],visibility:["visible","invisible","collapse"],z:[{z:[An,"auto",se,oe]}],basis:[{basis:[Rl,"full","auto",v,...z()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Te,Rl,"auto","initial","none",oe]}],grow:[{grow:["",Te,se,oe]}],shrink:[{shrink:["",Te,se,oe]}],order:[{order:[An,"first","last","none",se,oe]}],"grid-cols":[{"grid-cols":te()}],"col-start-end":[{col:W()}],"col-start":[{"col-start":P()}],"col-end":[{"col-end":P()}],"grid-rows":[{"grid-rows":te()}],"row-start-end":[{row:W()}],"row-start":[{"row-start":P()}],"row-end":[{"row-end":P()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":ne()}],"auto-rows":[{"auto-rows":ne()}],gap:[{gap:z()}],"gap-x":[{"gap-x":z()}],"gap-y":[{"gap-y":z()}],"justify-content":[{justify:[...ue(),"normal"]}],"justify-items":[{"justify-items":[...ge(),"normal"]}],"justify-self":[{"justify-self":["auto",...ge()]}],"align-content":[{content:["normal",...ue()]}],"align-items":[{items:[...ge(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...ge(),{baseline:["","last"]}]}],"place-content":[{"place-content":ue()}],"place-items":[{"place-items":[...ge(),"baseline"]}],"place-self":[{"place-self":["auto",...ge()]}],p:[{p:z()}],px:[{px:z()}],py:[{py:z()}],ps:[{ps:z()}],pe:[{pe:z()}],pbs:[{pbs:z()}],pbe:[{pbe:z()}],pt:[{pt:z()}],pr:[{pr:z()}],pb:[{pb:z()}],pl:[{pl:z()}],m:[{m:F()}],mx:[{mx:F()}],my:[{my:F()}],ms:[{ms:F()}],me:[{me:F()}],mbs:[{mbs:F()}],mbe:[{mbe:F()}],mt:[{mt:F()}],mr:[{mr:F()}],mb:[{mb:F()}],ml:[{ml:F()}],"space-x":[{"space-x":z()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":z()}],"space-y-reverse":["space-y-reverse"],size:[{size:ae()}],"inline-size":[{inline:["auto",...ce()]}],"min-inline-size":[{"min-inline":["auto",...ce()]}],"max-inline-size":[{"max-inline":["none",...ce()]}],"block-size":[{block:["auto",...xe()]}],"min-block-size":[{"min-block":["auto",...xe()]}],"max-block-size":[{"max-block":["none",...xe()]}],w:[{w:[v,"screen",...ae()]}],"min-w":[{"min-w":[v,"screen","none",...ae()]}],"max-w":[{"max-w":[v,"screen","none","prose",{screen:[m]},...ae()]}],h:[{h:["screen","lh",...ae()]}],"min-h":[{"min-h":["screen","lh","none",...ae()]}],"max-h":[{"max-h":["screen","lh","none",...ae()]}],"font-size":[{text:["base",c,mu,ia]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,GE,UE]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",mf,oe]}],"font-family":[{font:[HE,BE,r]}],"font-features":[{"font-features":[oe]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[s,se,oe]}],"line-clamp":[{"line-clamp":[Te,"none",se,z0]}],leading:[{leading:["none",f,...z()]}],"list-image":[{"list-image":["none",se,oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",se,oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ee(),"wavy"]}],"text-decoration-thickness":[{decoration:[Te,"from-font","auto",se,ia]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[Te,"auto",se,oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"tab-size":[{tab:[An,se,oe]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",se,oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",se,oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:Se()}],"bg-repeat":[{bg:J()}],"bg-size":[{bg:me()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},An,se,oe],radial:["",se,oe],conic:["",An,se,oe]},qE,kE]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:N()}],"gradient-via-pos":[{via:N()}],"gradient-to-pos":[{to:N()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:$()}],"border-w-x":[{"border-x":$()}],"border-w-y":[{"border-y":$()}],"border-w-s":[{"border-s":$()}],"border-w-e":[{"border-e":$()}],"border-w-bs":[{"border-bs":$()}],"border-w-be":[{"border-be":$()}],"border-w-t":[{"border-t":$()}],"border-w-r":[{"border-r":$()}],"border-w-b":[{"border-b":$()}],"border-w-l":[{"border-l":$()}],"divide-x":[{"divide-x":$()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":$()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ee(),"hidden","none"]}],"divide-style":[{divide:[...ee(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-bs":[{"border-bs":K()}],"border-color-be":[{"border-be":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...ee(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Te,se,oe]}],"outline-w":[{outline:["",Te,mu,ia]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","inner","none",S,Wr,$r]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",y,Wr,$r]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:$()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[Te,ia]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":$()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",E,Wr,$r]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[Te,se,oe]}],"mix-blend":[{"mix-blend":[...he(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":he()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Te]}],"mask-image-linear-from-pos":[{"mask-linear-from":ie()}],"mask-image-linear-to-pos":[{"mask-linear-to":ie()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":ie()}],"mask-image-t-to-pos":[{"mask-t-to":ie()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":ie()}],"mask-image-r-to-pos":[{"mask-r-to":ie()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":ie()}],"mask-image-b-to-pos":[{"mask-b-to":ie()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":ie()}],"mask-image-l-to-pos":[{"mask-l-to":ie()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":ie()}],"mask-image-x-to-pos":[{"mask-x-to":ie()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":ie()}],"mask-image-y-to-pos":[{"mask-y-to":ie()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[se,oe]}],"mask-image-radial-from-pos":[{"mask-radial-from":ie()}],"mask-image-radial-to-pos":[{"mask-radial-to":ie()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":V()}],"mask-image-conic-pos":[{"mask-conic":[Te]}],"mask-image-conic-from-pos":[{"mask-conic-from":ie()}],"mask-image-conic-to-pos":[{"mask-conic-to":ie()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:Se()}],"mask-repeat":[{mask:J()}],"mask-size":[{mask:me()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",se,oe]}],filter:[{filter:["","none",se,oe]}],blur:[{blur:Ee()}],brightness:[{brightness:[Te,se,oe]}],contrast:[{contrast:[Te,se,oe]}],"drop-shadow":[{"drop-shadow":["","none",A,Wr,$r]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",Te,se,oe]}],"hue-rotate":[{"hue-rotate":[Te,se,oe]}],invert:[{invert:["",Te,se,oe]}],saturate:[{saturate:[Te,se,oe]}],sepia:[{sepia:["",Te,se,oe]}],"backdrop-filter":[{"backdrop-filter":["","none",se,oe]}],"backdrop-blur":[{"backdrop-blur":Ee()}],"backdrop-brightness":[{"backdrop-brightness":[Te,se,oe]}],"backdrop-contrast":[{"backdrop-contrast":[Te,se,oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Te,se,oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Te,se,oe]}],"backdrop-invert":[{"backdrop-invert":["",Te,se,oe]}],"backdrop-opacity":[{"backdrop-opacity":[Te,se,oe]}],"backdrop-saturate":[{"backdrop-saturate":[Te,se,oe]}],"backdrop-sepia":[{"backdrop-sepia":["",Te,se,oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":z()}],"border-spacing-x":[{"border-spacing-x":z()}],"border-spacing-y":[{"border-spacing-y":z()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",se,oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Te,"initial",se,oe]}],ease:[{ease:["linear","initial",Y,se,oe]}],delay:[{delay:[Te,se,oe]}],animate:[{animate:["none",G,se,oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[D,se,oe]}],"perspective-origin":[{"perspective-origin":I()}],rotate:[{rotate:fe()}],"rotate-x":[{"rotate-x":fe()}],"rotate-y":[{"rotate-y":fe()}],"rotate-z":[{"rotate-z":fe()}],scale:[{scale:ye()}],"scale-x":[{"scale-x":ye()}],"scale-y":[{"scale-y":ye()}],"scale-z":[{"scale-z":ye()}],"scale-3d":["scale-3d"],skew:[{skew:Dt()}],"skew-x":[{"skew-x":Dt()}],"skew-y":[{"skew-y":Dt()}],transform:[{transform:[se,oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:I()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Wn()}],"translate-x":[{"translate-x":Wn()}],"translate-y":[{"translate-y":Wn()}],"translate-z":[{"translate-z":Wn()}],"translate-none":["translate-none"],zoom:[{zoom:[An,se,oe]}],accent:[{accent:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",se,oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":K()}],"scrollbar-track-color":[{"scrollbar-track":K()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mbs":[{"scroll-mbs":z()}],"scroll-mbe":[{"scroll-mbe":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pbs":[{"scroll-pbs":z()}],"scroll-pbe":[{"scroll-pbe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",se,oe]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[Te,mu,ia,z0]}],stroke:[{stroke:["none",...K()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["start","end","right","left"],"inset-y":["inset-bs","inset-be","top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["ps","pe","pr","pl"],py:["pbs","pbe","pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["ms","me","mr","ml"],my:["mbs","mbe","mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-s","border-w-e","border-w-r","border-w-l"],"border-w-y":["border-w-bs","border-w-be","border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-s","border-color-e","border-color-r","border-color-l"],"border-color-y":["border-color-bs","border-color-be","border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-ms","scroll-me","scroll-mr","scroll-ml"],"scroll-my":["scroll-mbs","scroll-mbe","scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-ps","scroll-pe","scroll-pr","scroll-pl"],"scroll-py":["scroll-pbs","scroll-pbe","scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},QE=SE(VE);function Qe(...i){return QE(Gy(i))}const XE=Yy("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-lg text-xs font-medium transition-all cursor-pointer select-none disabled:pointer-events-none disabled:opacity-50 shrink-0",{variants:{variant:{default:"hl-btn-primary shadow-xs",outline:"hl-btn-outline",secondary:"hl-muted border hl-border hover:opacity-90",ghost:"hover:bg-[var(--bg-muted)]",accent:"border border-[var(--accent)] bg-[var(--accent-soft)] text-[var(--accent)] font-semibold hover:opacity-90"},size:{default:"h-8 px-3 py-1.5",sm:"h-7 px-2.5 text-[11px] rounded-md",lg:"h-9 px-4 text-xs",icon:"h-8 w-8 p-0"}},defaultVariants:{variant:"default",size:"default"}}),nt=x.forwardRef(({className:i,variant:r,size:c,asChild:o=!1,...s},f)=>{const m=o?I2:"button";return h.jsx(m,{className:Qe(XE({variant:r,size:c,className:i})),ref:f,...s})});nt.displayName="Button";var ZE=Object.defineProperty,vi=(i,r)=>ZE(i,"name",{value:r,configurable:!0}),l1=!!(typeof window<"u"&&window.document&&window.document.createElement);function dt(i,r,{checkForDefaultPrevented:c=!0}={}){return vi(function(s){if(i==null||i(s),c===!1||!s||!s.defaultPrevented)return r==null?void 0:r(s)},"handleEvent")}vi(dt,"composeEventHandlers");function KE(i){var r;if(!l1)throw new Error("Cannot access window outside of the DOM");return((r=i==null?void 0:i.ownerDocument)==null?void 0:r.defaultView)??window}vi(KE,"getOwnerWindow");function Pf(i){if(!l1)throw new Error("Cannot access document outside of the DOM");return(i==null?void 0:i.ownerDocument)??document}vi(Pf,"getOwnerDocument");function a1(i,r=!1){const{activeElement:c}=Pf(i);if(!(c!=null&&c.nodeName))return null;if(i1(c)&&c.contentDocument)return a1(c.contentDocument.body,r);if(r){const o=c.getAttribute("aria-activedescendant");if(o){const s=Pf(c).getElementById(o);if(s)return s}}return c}vi(a1,"getActiveElement");function i1(i){return i.tagName==="IFRAME"}vi(i1,"isFrame");var IE=Object.defineProperty,ln=(i,r)=>IE(i,"name",{value:r,configurable:!0});function JE(i,r){const c=x.createContext(r);c.displayName=i+"Context";const o=ln(f=>{const{children:m,...v}=f,p=x.useMemo(()=>v,Object.values(v));return h.jsx(c.Provider,{value:p,children:m})},"Provider");o.displayName=i+"Provider";function s(f,m={}){const{optional:v=!1}=m,p=x.useContext(c);if(p)return p;if(r!==void 0)return r;if(!v)throw new Error(`\`${f}\` must be used within \`${i}\``)}return ln(s,"useContext"),[o,s]}ln(JE,"createContext");function da(i,r=[]){let c=[];function o(f,m){const v=x.createContext(m);v.displayName=f+"Context";const p=c.length;c=[...c,m];const b=ln(y=>{var Y;const{scope:E,children:A,...j}=y,D=((Y=E==null?void 0:E[i])==null?void 0:Y[p])||v,L=x.useMemo(()=>j,Object.values(j));return h.jsx(D.Provider,{value:L,children:A})},"Provider");b.displayName=f+"Provider";function S(y,E,A={}){var Y;const{optional:j=!1}=A,D=((Y=E==null?void 0:E[i])==null?void 0:Y[p])||v,L=x.useContext(D);if(L)return L;if(m!==void 0)return m;if(!j)throw new Error(`\`${y}\` must be used within \`${f}\``)}return ln(S,"useContext"),[b,S]}ln(o,"createContext");const s=ln(()=>{const f=c.map(m=>x.createContext(m));return ln(function(v){const p=(v==null?void 0:v[i])||f;return x.useMemo(()=>({[`__scope${i}`]:{...v,[i]:p}}),[v,p])},"useScope")},"createScope");return s.scopeName=i,[o,u1(s,...r)]}ln(da,"createContextScope");function u1(...i){const r=i[0];if(i.length===1)return r;const c=ln(()=>{const o=i.map(s=>({useScope:s(),scopeName:s.scopeName}));return ln(function(f){const m=o.reduce((v,{useScope:p,scopeName:b})=>{const y=p(f)[`__scope${b}`];return{...v,...y}},{});return x.useMemo(()=>({[`__scope${r.scopeName}`]:m}),[m])},"useComposedScopes")},"createScope");return c.scopeName=r.scopeName,c}ln(u1,"composeContextScopes");var un=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},FE=Object.defineProperty,ut=(i,r)=>FE(i,"name",{value:r,configurable:!0});function r1(i){const r=i+"CollectionProvider",[c,o]=da(r),[s,f]=c(r,{collectionRef:{current:null},itemMap:new Map}),m=ut(D=>{const{scope:L,children:Y}=D,G=x.useRef(null),k=x.useRef(new Map).current;return h.jsx(s,{scope:L,itemMap:k,collectionRef:G,children:Y})},"CollectionProvider");m.displayName=r;const v=i+"CollectionSlot",p=Ml(v),b=x.forwardRef((D,L)=>{const{scope:Y,children:G}=D,k=f(v,Y),V=zt(L,k.collectionRef);return h.jsx(p,{ref:V,children:G})});b.displayName=v;const S=i+"CollectionItemSlot",y="data-radix-collection-item",E=Ml(S),A=x.forwardRef((D,L)=>{const{scope:Y,children:G,...k}=D,V=x.useRef(null),I=zt(L,V),R=f(S,Y);return x.useEffect(()=>(R.itemMap.set(V,{ref:V,...k}),()=>void R.itemMap.delete(V))),h.jsx(E,{[y]:"",ref:I,children:G})});A.displayName=S;function j(D){const L=f(i+"CollectionConsumer",D);return x.useCallback(()=>{const G=L.collectionRef.current;if(!G)return[];const k=Array.from(G.querySelectorAll(`[${y}]`));return Array.from(L.itemMap.values()).sort((R,T)=>k.indexOf(R.ref.current)-k.indexOf(T.ref.current))},[L.collectionRef,L.itemMap])}return ut(j,"useCollection"),[{Provider:m,Slot:b,ItemSlot:A},j,o]}ut(r1,"createCollection");var B0=new WeakMap,Pe,Zt,eo=(Zt=class extends Map{constructor(c){super(c);h0(this,Pe);uf(this,Pe,[...super.keys()]),B0.set(this,!0)}set(c,o){return B0.get(this)&&!this.has(c)&&xt(this,Pe).push(c),super.set(c,o),this}insert(c,o,s){const f=this.has(o),m=f?this.size:this.size+1,v=pd(c),p=v>=0?Math.min(v,m-1):Math.max(m+v,0);if(f?xt(this,Pe).indexOf(o)===p:p===this.size)return this.set(o,s),this;const b=xt(this,Pe).filter(y=>y!==o);b.splice(p,0,o);const S=b.map(y=>[y,y===o?s:this.get(y)]);this.clear();for(const[y,E]of S)this.set(y,E);return this}with(c,o,s){const f=new Zt(this);return f.insert(c,o,s),f}before(c){const o=xt(this,Pe).indexOf(c)-1;if(!(o<0))return this.entryAt(o)}setBefore(c,o,s){const f=xt(this,Pe).indexOf(c);if(f===-1)return this;const m=xt(this,Pe).indexOf(o),v=m!==-1&&m<f?f-1:f;return this.insert(v,o,s)}after(c){let o=xt(this,Pe).indexOf(c);if(o=o===-1||o===this.size-1?-1:o+1,o!==-1)return this.entryAt(o)}setAfter(c,o,s){const f=xt(this,Pe).indexOf(c);if(f===-1)return this;const m=xt(this,Pe).indexOf(o),v=m!==-1&&m<=f?f:f+1;return this.insert(v,o,s)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return uf(this,Pe,[]),super.clear()}delete(c){const o=super.delete(c);return o&&xt(this,Pe).splice(xt(this,Pe).indexOf(c),1),o}deleteAt(c){const o=this.keyAt(c);return o!==void 0?this.delete(o):!1}at(c){const o=ro(xt(this,Pe),c);if(o!==void 0)return this.get(o)}entryAt(c){const o=ro(xt(this,Pe),c);if(o!==void 0)return[o,this.get(o)]}indexOf(c){return xt(this,Pe).indexOf(c)}keyAt(c){return ro(xt(this,Pe),c)}from(c,o){const s=this.indexOf(c);if(s===-1)return;let f=s+o;return f<0&&(f=0),f>=this.size&&(f=this.size-1),this.at(f)}keyFrom(c,o){const s=this.indexOf(c);if(s===-1)return;let f=s+o;return f<0&&(f=0),f>=this.size&&(f=this.size-1),this.keyAt(f)}find(c,o){let s=0;for(const f of this){if(Reflect.apply(c,o,[f,s,this]))return f;s++}}findIndex(c,o){let s=0;for(const f of this){if(Reflect.apply(c,o,[f,s,this]))return s;s++}return-1}filter(c,o){const s=[];let f=0;for(const m of this)Reflect.apply(c,o,[m,f,this])&&s.push(m),f++;return new Zt(s)}map(c,o){const s=[];let f=0;for(const m of this)s.push([m[0],Reflect.apply(c,o,[m,f,this])]),f++;return new Zt(s)}reduce(...c){const[o,s]=c,f=c.length>1;if(!f&&this.size===0)throw new TypeError("Reduce of empty OrderedDict with no initial value");let m=0,v=s;for(const p of this)m===0&&!f?v=p:v=Reflect.apply(o,this,[v,p,m,this]),m++;return v}reduceRight(...c){const[o,s]=c,f=c.length>1;if(!f&&this.size===0)throw new TypeError("Reduce of empty OrderedDict with no initial value");let m=s;for(let v=this.size-1;v>=0;v--){const p=this.entryAt(v);v===this.size-1&&!f?m=p:m=Reflect.apply(o,this,[m,p,v,this])}return m}sort(c){if(typeof c!="function")throw new TypeError("OrderedDict.sort requires a compare function");const o=[...this.entries()].sort(c);this.clear();for(const[s,f]of o)this.set(s,f);return this}toSorted(c){if(typeof c!="function")throw new TypeError("OrderedDict.toSorted requires a compare function");const o=[...this.entries()].sort(c);return new Zt(o)}toReversed(){const c=new Zt;for(let o=this.size-1;o>=0;o--){const s=this.keyAt(o),f=this.get(s);c.set(s,f)}return c}toSpliced(...c){const o=[...this.entries()];return o.splice(...c),new Zt(o)}slice(c,o){const s=new Zt;for(const f of xt(this,Pe).slice(c,o))s.set(f,this.get(f));return s}every(c,o){let s=0;for(const f of this){if(!Reflect.apply(c,o,[f,s,this]))return!1;s++}return!0}some(c,o){let s=0;for(const f of this){if(Reflect.apply(c,o,[f,s,this]))return!0;s++}return!1}},Pe=new WeakMap,ut(Zt,"OrderedDict"),Zt);function ro(i,r){if("at"in Array.prototype)return Array.prototype.at.call(i,r);const c=o1(i,r);return c===-1?void 0:i[c]}ut(ro,"at");function o1(i,r){const c=i.length,o=pd(r),s=o>=0?o:c+o;return s<0||s>=c?-1:s}ut(o1,"toSafeIndex");function pd(i){return i!==i||i===0?0:Math.trunc(i)}ut(pd,"toSafeInteger");function PE(i){const r=i+"CollectionProvider",[c,o]=da(r),[s,f]=c(r);s.displayName=i+"CollectionStableContextProvider";const[m,v]=c(r);m.displayName=i+"CollectionStatefulContextProvider";const p=ut(({state:R,...T})=>R?h.jsx(S,{...T,state:R}):h.jsx(b,{...T}),"CollectionProvider");p.displayName=r;const b=ut(R=>{const T=G();return h.jsx(S,{...R,state:T})},"CollectionInit");b.displayName=i+"CollectionInit";const S=ut(R=>{const{scope:T,children:z,state:Z}=R,te=x.useRef(null),[W,P]=x.useState(null),ne=zt(te,P),[ue,ge]=Z,F=x.useRef(new eo),ae=x.useCallback(()=>{const ce=F.current;return f1(ce)||ce.sort(oo),ce},[]);return x.useEffect(()=>{if(!W)return;const ce=d1(()=>{ge(xe=>{const K=xe.toSorted(oo);return K.some(([J],me)=>xe.keyAt(me)!==J)?K:xe})});return ce.observe(W,{childList:!0,subtree:!0}),()=>{ce.disconnect()}},[W,ge]),h.jsx(s,{scope:T,collectionElementRef:ne,collectionElementRefObject:te,getCollection:ae,setCollection:ge,registryRef:F,children:h.jsx(m,{scope:T,collectionElement:W,collection:ue,children:z})})},"CollectionProviderImpl");S.displayName=i+"CollectionProviderImpl";const y=i+"CollectionSlot",E=Ml(y),A=x.forwardRef((R,T)=>{const{scope:z,children:Z}=R,te=f(y,z),W=zt(T,te.collectionElementRef);return h.jsx(E,{ref:W,children:Z})});A.displayName=y;const j=i+"CollectionItemSlot",D="data-radix-collection-item",L=Ml(j),Y=x.forwardRef((R,T)=>{const{scope:z,children:Z,...te}=R,W=x.useRef(null),P=f(j,z),{setCollection:ne,registryRef:ue}=P,ge=x.useRef(te);c1(ge.current,te)||(ge.current=te);const F=ge.current,ae=x.useCallback(K=>{const Se=ue.current;K?Se.set(K,{...ge.current,element:K}):W.current&&Se.delete(W.current)},[ue]),ce=zt(T,ae,W);un(()=>{const K=W.current,Se=ue.current;K&&Se.has(K)&&Se.set(K,{...F,element:K})},[F,ue]);const xe=x.useRef(null);return x.useEffect(()=>{const K=W.current,Se=xe.current;((Se==null?void 0:Se.element)??null)===K&&(!K||(Se==null?void 0:Se.itemData)===F)||(xe.current=K?{element:K,itemData:F}:null,ne(J=>{const me=new eo(J);return Se&&Se.element!==K&&me.delete(Se.element),K&&me.set(K,{...F,element:K}),me.sort(oo)}))}),x.useEffect(()=>()=>{const K=xe.current;xe.current=null,K&&ne(Se=>{if(!Se.has(K.element))return Se;const J=new eo(Se);return J.delete(K.element),J})},[ne]),h.jsx(L,{[D]:"",ref:ce,children:Z})});Y.displayName=j;function G(){return x.useState(new eo)}ut(G,"useInitCollection");function k(R){const{collection:T}=v(i+"CollectionConsumer",R);return T}ut(k,"useCollection");function V(R){const{getCollection:T}=f(i+"CollectionConsumer",R);return T}return ut(V,"useGetCollection"),[{Provider:p,Slot:A,ItemSlot:Y},{createCollectionScope:o,useCollection:k,useGetCollection:V,useInitCollection:G}]}ut(PE,"createCollection");function c1(i,r){if(i===r)return!0;if(typeof i!="object"||typeof r!="object"||i==null||r==null)return!1;const c=Object.keys(i),o=Object.keys(r);if(c.length!==o.length)return!1;for(const s of c)if(!Object.prototype.hasOwnProperty.call(r,s)||i[s]!==r[s])return!1;return!0}ut(c1,"shallowEqual");function s1(i,r){return!!(r.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_PRECEDING)}ut(s1,"isElementPreceding");function f1(i){let r;for(const c of i.keys()){if(r){const o=r.compareDocumentPosition(c);if(!(o&Node.DOCUMENT_POSITION_DISCONNECTED)&&o&Node.DOCUMENT_POSITION_PRECEDING)return!1}r=c}return!0}ut(f1,"isInDocumentOrder");function oo(i,r){return!i[1].element||!r[1].element?0:s1(i[1].element,r[1].element)?-1:1}ut(oo,"sortByDocumentPosition");function d1(i){return new MutationObserver(c=>{for(const o of c)if(o.type==="childList"){i();return}})}ut(d1,"getChildListObserver");var $E=Object.defineProperty,WE=(i,r)=>$E(i,"name",{value:r,configurable:!0}),eC=sa[" useId ".trim().toString()]||(()=>{}),tC=0;function an(i){const[r,c]=x.useState(eC());return un(()=>{i||c(o=>o??String(tC++))},[i]),i||(r?`radix-${r}`:"")}WE(an,"useId");var m1=_y(),nC=Object.defineProperty,lC=(i,r)=>nC(i,"name",{value:r,configurable:!0}),aC=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ke=aC.reduce((i,r)=>{const c=Ml(`Primitive.${r}`),o=x.forwardRef((s,f)=>{const{asChild:m,...v}=s,p=m?c:r;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),h.jsx(p,{...v,ref:f})});return o.displayName=`Primitive.${r}`,{...i,[r]:o}},{});function h1(i,r){i&&m1.flushSync(()=>i.dispatchEvent(r))}lC(h1,"dispatchDiscreteCustomEvent");var iC=Object.defineProperty,uC=(i,r)=>iC(i,"name",{value:r,configurable:!0}),k0=sa[" useInsertionEffect ".trim().toString()];function oa(i){const r=x.useRef(i);return typeof k0=="function"?k0(()=>{r.current=i}):un(()=>{r.current=i}),x.useMemo(()=>((...c)=>{var o;return(o=r.current)==null?void 0:o.call(r,...c)}),[])}uC(oa,"useCallbackRef");var rC=Object.defineProperty,oC=(i,r)=>rC(i,"name",{value:r,configurable:!0}),H0=sa[" useEffectEvent ".trim().toString()],L0=sa[" useInsertionEffect ".trim().toString()];function v1(i){if(typeof H0=="function")return H0(i);const r=x.useRef(()=>{throw new Error("Cannot call an event handler while rendering.")});return typeof L0=="function"?L0(()=>{r.current=i}):un(()=>{r.current=i}),x.useMemo(()=>((...c)=>{var o;return(o=r.current)==null?void 0:o.call(r,...c)}),[])}oC(v1,"useEffectEvent");var cC=Object.defineProperty,pu=(i,r)=>cC(i,"name",{value:r,configurable:!0}),sC=sa[" useInsertionEffect ".trim().toString()]||un;function bu({prop:i,defaultProp:r,onChange:c=pu(()=>{},"onChange"),caller:o}){const[s,f,m]=g1({defaultProp:r,onChange:c}),v=i!==void 0,p=v?i:s,b=x.useCallback(S=>{var y;if(v){const E=y1(S)?S(i):S;E!==i&&((y=m.current)==null||y.call(m,E))}else f(S)},[v,i,f,m]);return[p,b]}pu(bu,"useControllableState");function g1({defaultProp:i,onChange:r}){const[c,o]=x.useState(i),s=x.useRef(c),f=x.useRef(r);return sC(()=>{f.current=r},[r]),x.useEffect(()=>{var m;s.current!==c&&((m=f.current)==null||m.call(f,c),s.current=c)},[c,s]),[c,o,f]}pu(g1,"useUncontrolledState");function y1(i){return typeof i=="function"}pu(y1,"isFunction");var q0=Symbol("RADIX:SYNC_STATE");function fC(i,r,c,o){const{prop:s,defaultProp:f,onChange:m,caller:v}=r,p=s!==void 0,b=v1(m),S=[{...c,state:f}];o&&S.push(o);const[y,E]=x.useReducer((L,Y)=>{if(Y.type===q0)return{...L,state:Y.state};const G=i(L,Y);return p&&!Object.is(G.state,L.state)&&b(G.state),G},...S),A=y.state,j=x.useRef(A);x.useEffect(()=>{j.current!==A&&(j.current=A,p||b(A))},[A,j,p]);const D=x.useMemo(()=>s!==void 0?{...y,state:s}:y,[y,s]);return x.useEffect(()=>{p&&!Object.is(s,y.state)&&E({type:q0,state:s})},[s,y.state,p]),[D,E]}pu(fC,"useControllableStateReducer");var dC=Object.defineProperty,mC=(i,r)=>dC(i,"name",{value:r,configurable:!0}),hC={LTR:"ltr"},vC=x.createContext(void 0);function bd(i){const r=x.useContext(vC);return i||r||hC.LTR}mC(bd,"useDirection");var gC=Object.defineProperty,xd=(i,r)=>gC(i,"name",{value:r,configurable:!0}),hf=!1;function p1(){const[i,r]=x.useState(hf);return x.useEffect(()=>{hf||(hf=!0,r(!0))},[]),i}xd(p1,"useIsHydrated");var b1=sa[" useSyncExternalStore ".trim().toString()];function x1(){return()=>{}}xd(x1,"subscribe");function S1(){return b1(x1,()=>!0,()=>!1)}xd(S1,"useIsHydratedModern");var yC=typeof b1=="function"?S1:p1,pC=Object.defineProperty,ma=(i,r)=>pC(i,"name",{value:r,configurable:!0}),vf="rovingFocusGroup.onEntryFocus",bC={bubbles:!1,cancelable:!0},po="RovingFocusGroup",[$f,E1,xC]=r1(po),[SC,C1]=da(po,[xC]),G0={Vertical:"vertical",Horizontal:"horizontal"},EC={RTL:"rtl"},[CC,NC]=SC(po),wC=x.forwardRef(ma(function(r,c){return h.jsx($f.Provider,{scope:r.__scopeRovingFocusGroup,children:h.jsx($f.Slot,{scope:r.__scopeRovingFocusGroup,children:h.jsx(TC,{...r,ref:c})})})},"RovingFocusGroup")),TC=x.forwardRef(ma(function(r,c){const{__scopeRovingFocusGroup:o,orientation:s,loop:f=!1,dir:m,currentTabStopId:v,defaultCurrentTabStopId:p,onCurrentTabStopIdChange:b,onEntryFocus:S,preventScrollOnEntryFocus:y=!1,...E}=r,A=x.useRef(null),j=zt(c,A),D=bd(m),[L,Y]=bu({prop:v,defaultProp:p??null,onChange:b,caller:po}),[G,k]=x.useState(!1),V=oa(S),I=E1(o),R=x.useRef(!1),[T,z]=x.useState(0);return x.useEffect(()=>{const Z=A.current;if(Z)return Z.addEventListener(vf,V),()=>Z.removeEventListener(vf,V)},[V]),h.jsx(CC,{scope:o,orientation:s,dir:D,loop:f,currentTabStopId:L,onItemFocus:x.useCallback(Z=>Y(Z),[Y]),onItemShiftTab:x.useCallback(()=>k(!0),[]),onFocusableItemAdd:x.useCallback(()=>z(Z=>Z+1),[]),onFocusableItemRemove:x.useCallback(()=>z(Z=>Z-1),[]),children:h.jsx(Ke.div,{tabIndex:G||T===0?-1:0,"data-orientation":s,...E,ref:j,style:{outline:"none",...r.style},onMouseDown:dt(r.onMouseDown,()=>{R.current=!0}),onFocus:dt(r.onFocus,Z=>{const te=!R.current;if(Z.target===Z.currentTarget&&te&&!G){const W=new CustomEvent(vf,bC);if(Z.currentTarget.dispatchEvent(W),!W.defaultPrevented){const P=I().filter(ae=>ae.focusable),ne=P.find(ae=>ae.active),ue=P.find(ae=>ae.id===L),F=[ne,ue,...P].filter(Boolean).map(ae=>ae.ref.current);Sd(F,y)}}R.current=!1}),onBlur:dt(r.onBlur,()=>k(!1))})})},"RovingFocusGroupImpl")),_C="RovingFocusGroupItem",AC=x.forwardRef(ma(function(r,c){const{__scopeRovingFocusGroup:o,focusable:s=!0,active:f=!1,tabStopId:m,children:v,...p}=r,b=an(),S=m||b,y=NC(_C,o),E=y.currentTabStopId===S,A=E1(o),{onFocusableItemAdd:j,onFocusableItemRemove:D,currentTabStopId:L}=y,Y=yC();return un(()=>{if(!(!Y||!s))return j(),()=>D()},[Y,s,j,D]),x.useEffect(()=>{if(!(Y||!s))return j(),()=>D()},[Y,s,j,D]),h.jsx($f.ItemSlot,{scope:o,id:S,focusable:s,active:f,children:h.jsx(Ke.span,{tabIndex:E?0:-1,"data-orientation":y.orientation,...p,ref:c,onMouseDown:dt(r.onMouseDown,G=>{s?y.onItemFocus(S):G.preventDefault()}),onFocus:dt(r.onFocus,()=>y.onItemFocus(S)),onKeyDown:dt(r.onKeyDown,G=>{if(G.key==="Tab"&&G.shiftKey){y.onItemShiftTab();return}if(G.target!==G.currentTarget)return;const k=w1(G,y.orientation,y.dir);if(k!==void 0){if(G.metaKey||G.ctrlKey||G.altKey||G.shiftKey)return;G.preventDefault();let I=A().filter(R=>R.focusable).map(R=>R.ref.current);if(k==="last")I.reverse();else if(k==="prev"||k==="next"){k==="prev"&&I.reverse();const R=I.indexOf(G.currentTarget);I=y.loop?T1(I,R+1):I.slice(R+1)}setTimeout(()=>Sd(I))}}),children:typeof v=="function"?v({isCurrentTabStop:E,hasTabStop:L!=null}):v})})},"RovingFocusGroupItem")),RC={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function N1(i,r){return r!==EC.RTL?i:i==="ArrowLeft"?"ArrowRight":i==="ArrowRight"?"ArrowLeft":i}ma(N1,"getDirectionAwareKey");function w1(i,r,c){const o=N1(i.key,c);if(!(r===G0.Vertical&&["ArrowLeft","ArrowRight"].includes(o))&&!(r===G0.Horizontal&&["ArrowUp","ArrowDown"].includes(o)))return RC[o]}ma(w1,"getFocusIntent");function Sd(i,r=!1){const c=document.activeElement;for(const o of i)if(o===c||(o.focus({preventScroll:r}),document.activeElement!==c))return}ma(Sd,"focusFirst");function T1(i,r){return i.map((c,o)=>i[(r+o)%i.length])}ma(T1,"wrapArray");var jC=Object.defineProperty,Fn=(i,r)=>jC(i,"name",{value:r,configurable:!0});function _1(i,r){return x.useReducer((c,o)=>r[c][o]??c,i)}Fn(_1,"useStateMachine");var bo=Fn(i=>{const{present:r,children:c}=i,o=A1(r),s=typeof c=="function"?c({present:o.isPresent}):x.Children.only(c),f=R1(o.ref,j1(s));return typeof c=="function"||o.isPresent?x.cloneElement(s,{ref:f}):null},"Presence");function A1(i){const[r,c]=x.useState(),o=x.useRef(null),s=x.useRef(i),f=x.useRef("none"),m=x.useRef(void 0),v=i?"mounted":"unmounted",[p,b]=_1(v,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{p==="mounted"?(f.current=m.current??fi(o.current),m.current=void 0):f.current="none"},[p]),un(()=>{const S=o.current,y=s.current;if(y!==i){const A=f.current,j=fi(S);i?(m.current=j,b("MOUNT")):j==="none"||(S==null?void 0:S.display)==="none"?b("UNMOUNT"):b(y&&A!==j?"ANIMATION_OUT":"UNMOUNT"),s.current=i}},[i,b]),un(()=>{if(r){let S;const y=r.ownerDocument.defaultView??window,E=Fn(j=>{const L=fi(o.current).includes(CSS.escape(j.animationName));if(j.target===r&&L&&(b("ANIMATION_END"),!s.current)){const Y=r.style.animationFillMode;r.style.animationFillMode="forwards",S=y.setTimeout(()=>{r.style.animationFillMode==="forwards"&&(r.style.animationFillMode=Y)})}},"handleAnimationEnd"),A=Fn(j=>{j.target===r&&(f.current=fi(o.current))},"handleAnimationStart");return r.addEventListener("animationstart",A),r.addEventListener("animationcancel",E),r.addEventListener("animationend",E),()=>{y.clearTimeout(S),r.removeEventListener("animationstart",A),r.removeEventListener("animationcancel",E),r.removeEventListener("animationend",E)}}else b("ANIMATION_END")},[r,b]),{isPresent:["mounted","unmountSuspended"].includes(p),ref:x.useCallback(S=>{if(S){const y=getComputedStyle(S);o.current=y,m.current=fi(y)}else o.current=null;c(S)},[])}}Fn(A1,"usePresence");function Wf(i,r){if(typeof i=="function")return i(r);i!=null&&(i.current=r)}Fn(Wf,"setRef");function R1(...i){const r=x.useRef(i);return r.current=i,x.useCallback(c=>{const o=r.current;let s=!1;const f=o.map(m=>{const v=Wf(m,c);return!s&&typeof v=="function"&&(s=!0),v});if(s)return()=>{for(let m=0;m<f.length;m++){const v=f[m];typeof v=="function"?v():Wf(o[m],null)}}},[])}Fn(R1,"useStableComposedRefs");function fi(i){return(i==null?void 0:i.animationName)||"none"}Fn(fi,"getAnimationName");function j1(i){var o,s;let r=(o=Object.getOwnPropertyDescriptor(i.props,"ref"))==null?void 0:o.get,c=r&&"isReactWarning"in r&&r.isReactWarning;return c?i.ref:(r=(s=Object.getOwnPropertyDescriptor(i,"ref"))==null?void 0:s.get,c=r&&"isReactWarning"in r&&r.isReactWarning,c?i.props.ref:i.props.ref||i.ref)}Fn(j1,"getElementRef");var OC=Object.defineProperty,gi=(i,r)=>OC(i,"name",{value:r,configurable:!0}),O1={Automatic:"automatic",Manual:"manual"},Ed="Tabs",[MC,dN]=da(Ed,[C1]),M1=C1(),[zC,Cd]=MC(Ed),DC=x.forwardRef(gi(function(r,c){const{__scopeTabs:o,value:s,onValueChange:f,defaultValue:m,orientation:v="horizontal",dir:p,activationMode:b=O1.Automatic,...S}=r,y=bd(p),[E,A]=bu({prop:s,onChange:f,defaultProp:m??"",caller:Ed});return h.jsx(zC,{scope:o,baseId:an(),value:E,onValueChange:A,orientation:v,dir:y,activationMode:b,children:h.jsx(Ke.div,{dir:y,"data-orientation":v,...S,ref:c})})},"Tabs")),UC="TabsList",z1=x.forwardRef(gi(function(r,c){const{__scopeTabs:o,loop:s=!0,...f}=r,m=Cd(UC,o),v=M1(o);return h.jsx(wC,{asChild:!0,...v,orientation:m.orientation,dir:m.dir,loop:s,children:h.jsx(Ke.div,{role:"tablist","aria-orientation":m.orientation,...f,ref:c})})},"TabsList")),BC="TabsTrigger",D1=x.forwardRef(gi(function(r,c){const{__scopeTabs:o,value:s,disabled:f=!1,...m}=r,v=Cd(BC,o),p=M1(o),b=Nd(v.baseId,s),S=wd(v.baseId,s),y=s===v.value;return h.jsx(AC,{asChild:!0,...p,focusable:!f,active:y,children:h.jsx(Ke.button,{type:"button",role:"tab","aria-selected":y,"aria-controls":S,"data-state":y?"active":"inactive","data-disabled":f?"":void 0,disabled:f,id:b,...m,ref:c,onMouseDown:dt(r.onMouseDown,E=>{!f&&E.button===0&&E.ctrlKey===!1?(E.currentTarget.focus(),v.onValueChange(s)):E.preventDefault()}),onKeyDown:dt(r.onKeyDown,E=>{f||E.target!==E.currentTarget||[" ","Enter"].includes(E.key)&&v.onValueChange(s)}),onFocus:dt(r.onFocus,()=>{const E=v.activationMode!==O1.Manual;!y&&!f&&E&&v.onValueChange(s)})})})},"TabsTrigger")),kC="TabsContent",U1=x.forwardRef(gi(function(r,c){const{__scopeTabs:o,value:s,forceMount:f,children:m,...v}=r,p=Cd(kC,o),b=Nd(p.baseId,s),S=wd(p.baseId,s),y=s===p.value,E=x.useRef(y);return x.useEffect(()=>{const A=requestAnimationFrame(()=>E.current=!1);return()=>cancelAnimationFrame(A)},[]),h.jsx(bo,{present:f||y,children:({present:A})=>h.jsx(Ke.div,{"data-state":y?"active":"inactive","data-orientation":p.orientation,role:"tabpanel","aria-labelledby":b,hidden:!A,id:S,tabIndex:0,...v,ref:c,style:{...r.style,animationDuration:E.current?"0s":void 0},children:A&&m})})},"TabsContent"));function Nd(i,r){return`${i}-trigger-${r}`}gi(Nd,"makeTriggerId");function wd(i,r){return`${i}-content-${r}`}gi(wd,"makeContentId");const ed=DC,ho=x.forwardRef(({className:i,...r},c)=>h.jsx(z1,{ref:c,className:Qe("inline-flex items-center justify-center rounded-lg hl-muted p-1 border hl-border text-[var(--text-muted)]",i),...r}));ho.displayName=z1.displayName;const ua=x.forwardRef(({className:i,...r},c)=>h.jsx(D1,{ref:c,className:Qe("inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md px-2.5 py-1 text-xs font-medium transition-all cursor-pointer select-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-[var(--bg-card)] data-[state=active]:text-[var(--text-main)] data-[state=active]:shadow-xs",i),...r}));ua.displayName=D1.displayName;const HC=x.forwardRef(({className:i,...r},c)=>h.jsx(U1,{ref:c,className:Qe("mt-2 outline-none",i),...r}));HC.displayName=U1.displayName;const LC=[{id:"auto",label:"智能路由"},{id:"edge443",label:"443 免端口"},{id:"home10443",label:"10443 家宽"},{id:"lan",label:"LAN 局域网"}],qC=()=>{const{theme:i,resolvedTheme:r,routeMode:c,viewMode:o,telemetry:s,setTheme:f,toggleTheme:m,setRouteMode:v,setViewMode:p,setShowAgyModal:b,setShowWechatModal:S,setShowCmdPalette:y}=Pn();return h.jsxs(h.Fragment,{children:[h.jsx("header",{className:"border-b hl-border sticky top-0 z-30 backdrop-blur-md",style:{backgroundColor:"color-mix(in srgb, var(--bg-card) 88%, transparent)"},children:h.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 h-14 flex items-center justify-between gap-4",children:[h.jsxs("div",{className:"flex items-center gap-4 shrink-0",children:[h.jsxs("div",{onClick:()=>p("dashboard"),className:"flex items-center gap-2.5 cursor-pointer",children:[h.jsx("img",{src:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/apple.png",alt:"Mac mini",className:"w-6 h-6 rounded"}),h.jsx("span",{className:"font-semibold text-sm tracking-tight",children:"HomeLab"}),h.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:"var(--success)"},title:"全屋 4 节点在线"})]}),h.jsx("div",{className:"h-4 w-[1px] hl-muted"}),h.jsx(ed,{value:o,onValueChange:E=>p(E),children:h.jsxs(ho,{children:[h.jsxs(ua,{value:"dashboard",children:[h.jsx(g2,{className:"w-3.5 h-3.5"}),h.jsx("span",{children:"中控台"})]}),h.jsxs(ua,{value:"storybook",children:[h.jsx(Oy,{className:"w-3.5 h-3.5"}),h.jsx("span",{children:"Storybook 设计规范"})]})]})})]}),h.jsxs("div",{className:"flex items-center gap-2.5 shrink-0 ml-auto",children:[h.jsxs(nt,{variant:"outline",onClick:()=>y(!0),className:"gap-3",title:"按 Cmd+K 唤起全局命令面板",children:[h.jsxs("span",{className:"flex items-center gap-1.5",style:{color:"var(--text-muted)"},children:[h.jsx(dd,{className:"w-3.5 h-3.5"}),h.jsx("span",{className:"hidden sm:inline",children:"搜索服务或指令..."})]}),h.jsx("kbd",{className:"px-1.5 py-0.5 text-[10px] font-mono-num rounded hl-muted",style:{color:"var(--text-muted)"},children:"⌘K"})]}),h.jsxs(nt,{variant:"outline",onClick:()=>S(!0),title:"连接微信 ClawBot,在微信内直接收发消息与控制 Mac mini",children:[h.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:s.services.clawbot?"var(--success)":"var(--accent)"}}),h.jsx(My,{className:"w-3.5 h-3.5"}),h.jsx("span",{children:"微信 ClawBot"})]}),h.jsxs(nt,{onClick:()=>b(!0),children:[h.jsx(md,{className:"w-3.5 h-3.5"}),h.jsx("span",{children:"AGY 终端"})]}),h.jsxs("div",{className:"flex items-center p-0.5 rounded-lg hl-muted border hl-border text-xs",children:[h.jsx("button",{onClick:m,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:r==="dark"?h.jsxs(h.Fragment,{children:[h.jsx(S2,{className:"w-3.5 h-3.5"}),h.jsx("span",{children:"深色"})]}):h.jsxs(h.Fragment,{children:[h.jsx(q2,{className:"w-3.5 h-3.5"}),h.jsx("span",{children:"浅色"})]})}),i!=="system"&&h.jsx("button",{onClick:()=>f("system"),className:"px-2 py-1 rounded-md text-[11px] transition-all cursor-pointer",style:{color:"var(--text-muted)"},title:"恢复跟随设备系统深浅色自动切换",children:"自动"})]})]})]})}),o==="dashboard"&&h.jsx("div",{className:"border-b hl-border",style:{backgroundColor:"var(--bg-card)"},children:h.jsxs("div",{className:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-2.5 flex flex-wrap items-center justify-between gap-3",children:[h.jsxs("div",{className:"flex flex-wrap items-center gap-2 text-xs font-mono-num",children:[h.jsxs("div",{className:"hl-pill px-2.5 py-1 flex items-center gap-2",children:[h.jsx("span",{style:{color:"var(--text-muted)"},children:"M6 CPU"}),h.jsx("div",{className:"w-12 h-1.5 rounded-full hl-muted overflow-hidden",children:h.jsx("div",{className:"h-full hl-bar-fill",style:{width:`${Math.max(5,s.mini.cpu_pct)}%`}})}),h.jsxs("span",{className:"font-medium",children:[s.mini.cpu_pct,"%"]})]}),h.jsxs("div",{className:"hl-pill px-2.5 py-1 flex items-center gap-2",children:[h.jsx("span",{style:{color:"var(--text-muted)"},children:"RAM"}),h.jsx("div",{className:"w-12 h-1.5 rounded-full hl-muted overflow-hidden",children:h.jsx("div",{className:"h-full hl-bar-fill",style:{width:`${Math.max(5,s.mini.mem_pct)}%`}})}),h.jsxs("span",{className:"font-medium",children:[s.mini.mem_used_gb,"G"]})]}),h.jsxs("div",{className:"hl-pill px-2.5 py-1 flex items-center gap-2",children:[h.jsx("span",{style:{color:"var(--text-muted)"},children:"NAS 余量"}),h.jsx("div",{className:"w-12 h-1.5 rounded-full hl-muted overflow-hidden",children:h.jsx("div",{className:"h-full hl-bar-fill-green",style:{width:`${Math.max(5,s.nas.pct)}%`}})}),h.jsxs("span",{className:"font-medium",style:{color:"var(--success)"},children:[s.nas.free_tb," TB"]})]}),h.jsxs("div",{className:"hl-pill px-2.5 py-1 flex items-center gap-1.5",children:[h.jsx("span",{className:"w-1.5 h-1.5 rounded-full",style:{backgroundColor:"var(--success)"}}),h.jsx("span",{style:{color:"var(--text-muted)"},children:"SG 专线"}),h.jsx("span",{className:"font-medium",children:s.network.sg_delay_ms>0?`${s.network.sg_delay_ms}ms`:"直连"})]})]}),h.jsx(ed,{value:c,onValueChange:E=>v(E),className:"ml-auto",children:h.jsx(ho,{children:LC.map(E=>h.jsx(ua,{value:E.id,children:E.label},E.id))})})]})})]})},B1=({card:i})=>{const{getEffectiveMode:r,setShowAgyModal:c,triggerAction:o}=Pn(),s=r(),f=s==="lan"?i.lanUrl:s==="home10443"?i.homeUrl:i.edgeUrl,m=s==="lan"?"LAN 直连":s==="home10443"?"10443":"443 免端口";return h.jsxs("a",{href:f,target:"_blank",rel:"noopener noreferrer",className:"hl-card hl-card-interactive flex flex-col justify-between overflow-hidden group cursor-pointer",children:[h.jsxs("div",{className:"p-4 sm:p-5 space-y-3",children:[h.jsxs("div",{className:"flex items-start justify-between gap-3",children:[h.jsxs("div",{className:"flex items-center gap-3.5 min-w-0",children:[h.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:h.jsx("img",{src:i.iconUrl,alt:i.title,className:"w-full h-full object-contain"})}),h.jsxs("div",{className:"min-w-0",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("h3",{className:"text-sm font-semibold truncate group-hover:underline",children:i.title}),h.jsx("span",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:i.online!==!1?"var(--success)":"#ef4444"}})]}),h.jsx("p",{className:"text-[11px] font-mono-num truncate mt-0.5",style:{color:"var(--text-muted)"},children:i.subtitle})]})]}),i.actionType==="drawer"?h.jsx("button",{onClick:v=>{v.preventDefault(),c(!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:"页内终端"}):i.actionType==="backup"?h.jsx("button",{onClick:v=>{v.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:"立即备份"}):h.jsx("span",{className:"text-xs font-mono-num px-2 py-0.5 rounded hl-muted shrink-0",style:{color:"var(--text-muted)"},children:m})]}),h.jsx("p",{className:"text-xs leading-relaxed line-clamp-2",style:{color:"var(--text-muted)"},children:i.desc})]}),h.jsx("div",{className:"hl-widget-footer grid grid-cols-3 divide-x hl-border text-center",children:i.stats.map((v,p)=>h.jsxs("div",{className:"py-2.5 px-2 flex flex-col items-center justify-center",children:[h.jsx("span",{className:"text-[10px] uppercase tracking-wider truncate max-w-full",style:{color:"var(--text-subtle)"},children:v.label}),h.jsx("span",{className:"text-xs font-semibold font-mono-num mt-0.5 truncate max-w-full",style:{color:v.highlight?"var(--success)":"var(--text-main)"},children:v.value})]},p))})]})},GC=[{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"}],k1=()=>{const{copyCmd:i,triggerAction:r}=Pn();return h.jsxs("section",{className:"space-y-3 pt-1",children:[h.jsxs("div",{className:"flex items-center justify-between px-0.5",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("h2",{className:"text-xs font-semibold uppercase tracking-wider",style:{color:"var(--text-muted)"},children:"终端快捷指令与备用直连书签"}),h.jsx("span",{className:"text-[11px] font-mono-num",style:{color:"var(--text-subtle)"},children:"· 点击指令即复制"})]}),h.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[h.jsx("button",{onClick:()=>r("refresh_ddns","正在同步 Cloudflare DDNS..."),className:"hover:underline font-medium cursor-pointer",style:{color:"var(--accent)"},children:"刷新 DDNS 解析"}),h.jsx("button",{onClick:()=>r("mount_nas","正在巡检极空间 20TB SMB 挂载..."),className:"hover:underline font-medium cursor-pointer",style:{color:"var(--accent)"},children:"巡检极空间挂载"})]})]}),h.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3",children:GC.map(c=>h.jsxs("button",{onClick:()=>i(c.cmd,c.label),className:"hl-card hl-card-interactive px-4 py-3 text-left flex items-center justify-between gap-2 cursor-pointer",children:[h.jsxs("div",{className:"min-w-0",children:[h.jsx("div",{className:"text-xs font-semibold",children:c.label}),h.jsx("div",{className:"text-[11px] font-mono-num truncate mt-0.5",style:{color:"var(--accent)"},children:c.cmd})]}),h.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"})]},c.cmd))})]})},YC=Yy("inline-flex items-center gap-1 rounded-md px-2 py-0.5 text-[11px] font-mono-num font-medium transition-colors shrink-0",{variants:{variant:{default:"bg-[var(--primary)] text-[var(--primary-fg)]",secondary:"hl-muted text-[var(--text-muted)] border hl-border",outline:"border hl-border text-[var(--text-muted)] bg-[var(--bg-card)]",accent:"bg-[var(--accent-soft)] text-[var(--accent)] font-semibold",success:"bg-[var(--success-soft)] text-[var(--success)] font-semibold"}},defaultVariants:{variant:"secondary"}});function Jn({className:i,variant:r,...c}){return h.jsx("div",{className:Qe(YC({variant:r}),i),...c})}var Y0=1,VC=.9,QC=.8,XC=.17,gf=.1,yf=.999,ZC=.9999,KC=.99,IC=/[\\\/_+.#"@\[\(\{&]/,JC=/[\\\/_+.#"@\[\(\{&]/g,FC=/[\s-]/,H1=/[\s-]/g;function td(i,r,c,o,s,f,m){if(f===r.length)return s===i.length?Y0:KC;var v=`${s},${f}`;if(m[v]!==void 0)return m[v];for(var p=o.charAt(f),b=c.indexOf(p,s),S=0,y,E,A,j;b>=0;)y=td(i,r,c,o,b+1,f+1,m),y>S&&(b===s?y*=Y0:IC.test(i.charAt(b-1))?(y*=QC,A=i.slice(s,b-1).match(JC),A&&s>0&&(y*=Math.pow(yf,A.length))):FC.test(i.charAt(b-1))?(y*=VC,j=i.slice(s,b-1).match(H1),j&&s>0&&(y*=Math.pow(yf,j.length))):(y*=XC,s>0&&(y*=Math.pow(yf,b-s))),i.charAt(b)!==r.charAt(f)&&(y*=ZC)),(y<gf&&c.charAt(b-1)===o.charAt(f+1)||o.charAt(f+1)===o.charAt(f)&&c.charAt(b-1)!==o.charAt(f))&&(E=td(i,r,c,o,b+1,f+2,m),E*gf>y&&(y=E*gf)),y>S&&(S=y),b=c.indexOf(p,b+1);return m[v]=S,S}function V0(i){return i.toLowerCase().replace(H1," ")}function PC(i,r,c){return i=c&&c.length>0?`${i+" "+c.join(" ")}`:i,td(i,r,V0(i),V0(r),0,0,{})}var $C=Object.defineProperty,ft=(i,r)=>$C(i,"name",{value:r,configurable:!0}),nd="dismissableLayer.update",WC="dismissableLayer.pointerDownOutside",e4="dismissableLayer.focusOutside",Q0,L1=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),t4=x.forwardRef(ft(function(r,c){const{disableOutsidePointerEvents:o=!1,deferPointerDownOutside:s=!1,onEscapeKeyDown:f,onPointerDownOutside:m,onFocusOutside:v,onInteractOutside:p,onDismiss:b,...S}=r,y=x.useContext(L1),[E,A]=x.useState(null),j=(E==null?void 0:E.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,D]=x.useState({}),L=zt(c,A),Y=Array.from(y.layers),[G]=[...y.layersWithOutsidePointerEventsDisabled].slice(-1),k=G?Y.indexOf(G):-1,V=E?Y.indexOf(E):-1,I=y.layersWithOutsidePointerEventsDisabled.size>0,R=V>=k,T=x.useRef(!1),z=G1(P=>{m==null||m(P),p==null||p(P),P.defaultPrevented||b==null||b()},{ownerDocument:j,deferPointerDownOutside:s,isDeferredPointerDownOutsideRef:T,dismissableSurfaces:y.dismissableSurfaces,shouldHandlePointerDownOutside:x.useCallback(P=>{if(!(P instanceof Node))return!1;const ne=[...y.branches].some(ue=>ue.contains(P));return R&&!ne},[y.branches,R])}),Z=Y1(P=>{if(s&&T.current)return;const ne=P.target;[...y.branches].some(ge=>ge.contains(ne))||(v==null||v(P),p==null||p(P),P.defaultPrevented||b==null||b())},j),te=E?V===Y.length-1:!1,W=oa(P=>{P.key==="Escape"&&(f==null||f(P),!P.defaultPrevented&&b&&(P.preventDefault(),b()))});return x.useEffect(()=>{if(te)return j.addEventListener("keydown",W,{capture:!0}),()=>j.removeEventListener("keydown",W,{capture:!0})},[j,te,W]),x.useEffect(()=>{if(E)return o&&(y.layersWithOutsidePointerEventsDisabled.size===0&&(Q0=j.body.style.pointerEvents,j.body.style.pointerEvents="none"),y.layersWithOutsidePointerEventsDisabled.add(E)),y.layers.add(E),ld(),()=>{o&&(y.layersWithOutsidePointerEventsDisabled.delete(E),y.layersWithOutsidePointerEventsDisabled.size===0&&(j.body.style.pointerEvents=Q0))}},[E,j,o,y]),x.useEffect(()=>()=>{E&&(y.layers.delete(E),y.layersWithOutsidePointerEventsDisabled.delete(E),ld())},[E,y]),x.useEffect(()=>{const P=ft(()=>D({}),"handleUpdate");return document.addEventListener(nd,P),()=>document.removeEventListener(nd,P)},[]),h.jsx(Ke.div,{...S,ref:L,style:{pointerEvents:I?R?"auto":"none":void 0,...r.style},onFocusCapture:dt(r.onFocusCapture,Z.onFocusCapture),onBlurCapture:dt(r.onBlurCapture,Z.onBlurCapture),onPointerDownCapture:dt(r.onPointerDownCapture,z.onPointerDownCapture)})},"DismissableLayer"));function q1(){const i=x.useContext(L1),[r,c]=x.useState(null);return x.useEffect(()=>{if(r)return i.dismissableSurfaces.add(r),()=>{i.dismissableSurfaces.delete(r)}},[r,i.dismissableSurfaces]),c}ft(q1,"useDismissableLayerSurface");var n4=ft(()=>!0,"IS_TRUE");function G1(i,r){const{ownerDocument:c=globalThis==null?void 0:globalThis.document,deferPointerDownOutside:o=!1,isDeferredPointerDownOutsideRef:s,dismissableSurfaces:f,shouldHandlePointerDownOutside:m=n4}=r,v=oa(i),p=x.useRef(!1),b=x.useRef(!1),S=x.useRef(new Map),y=x.useRef(()=>{});return x.useEffect(()=>{function E(){b.current=!1,s.current=!1,S.current.clear()}ft(E,"resetOutsideInteraction");function A(){return Array.from(S.current.values()).some(Boolean)}ft(A,"isOutsideInteractionIntercepted");function j(k){if(!b.current)return;const V=k.target;V instanceof Node&&[...f].some(R=>R.contains(V))||S.current.set(k.type,!0),k.type==="click"&&window.setTimeout(()=>{b.current&&y.current()},0)}ft(j,"handleInteractionCapture");function D(k){b.current&&S.current.set(k.type,!1)}ft(D,"handleInteractionBubble");const L=ft(k=>{if(k.target&&!p.current){let V=function(){c.removeEventListener("click",y.current);const R=A();E(),R||Td(WC,v,I,{discrete:!0})};if(ft(V,"handleAndDispatchPointerDownOutsideEvent"),!m(k.target)){c.removeEventListener("click",y.current),E(),p.current=!1;return}const I={originalEvent:k};b.current=!0,s.current=o&&k.button===0,S.current.clear(),!o||k.button!==0?V():(c.removeEventListener("click",y.current),y.current=V,c.addEventListener("click",y.current,{once:!0}))}else c.removeEventListener("click",y.current),E();p.current=!1},"handlePointerDown"),Y=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(const k of Y)c.addEventListener(k,j,!0),c.addEventListener(k,D);const G=window.setTimeout(()=>{c.addEventListener("pointerdown",L)},0);return()=>{window.clearTimeout(G),c.removeEventListener("pointerdown",L),c.removeEventListener("click",y.current);for(const k of Y)c.removeEventListener(k,j,!0),c.removeEventListener(k,D)}},[c,v,o,s,f,m]),{onPointerDownCapture:ft(()=>p.current=!0,"onPointerDownCapture")}}ft(G1,"usePointerDownOutside");function Y1(i,r=globalThis==null?void 0:globalThis.document){const c=oa(i),o=x.useRef(!1);return x.useEffect(()=>{const s=ft(f=>{f.target&&!o.current&&Td(e4,c,{originalEvent:f},{discrete:!1})},"handleFocus");return r.addEventListener("focusin",s),()=>r.removeEventListener("focusin",s)},[r,c]),{onFocusCapture:ft(()=>o.current=!0,"onFocusCapture"),onBlurCapture:ft(()=>o.current=!1,"onBlurCapture")}}ft(Y1,"useFocusOutside");function ld(){const i=new CustomEvent(nd);document.dispatchEvent(i)}ft(ld,"dispatchUpdate");function Td(i,r,c,{discrete:o}){const s=c.originalEvent.target,f=new CustomEvent(i,{bubbles:!1,cancelable:!0,detail:c});r&&s.addEventListener(i,r,{once:!0}),o?h1(s,f):s.dispatchEvent(f)}ft(Td,"handleAndDispatchCustomEvent");var l4=Object.defineProperty,lt=(i,r)=>l4(i,"name",{value:r,configurable:!0}),pf="focusScope.autoFocusOnMount",bf="focusScope.autoFocusOnUnmount",X0={bubbles:!1,cancelable:!0},a4=x.forwardRef(lt(function(r,c){const{loop:o=!1,trapped:s=!1,branches:f,onMountAutoFocus:m,onUnmountAutoFocus:v,...p}=r,[b,S]=x.useState(null),y=oa(m),E=oa(v),A=x.useRef(null),j=zt(c,S),D=x.useRef(f);x.useEffect(()=>{D.current=f});const L=x.useCallback(k=>{var V;return k?b!=null&&b.contains(k)?!0:!!((V=D.current)!=null&&V.some(I=>I.contains(k))):!1},[b]),Y=x.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;x.useEffect(()=>{if(s){let k=function(T){if(Y.paused||!b)return;const z=T.target;L(z)?A.current=z:In(A.current,{select:!0})},V=function(T){if(Y.paused||!b)return;const z=T.relatedTarget;z!==null&&(L(z)||In(A.current,{select:!0}))},I=function(T){if(document.activeElement===document.body)for(const Z of T)Z.removedNodes.length>0&&In(b)};lt(k,"handleFocusIn"),lt(V,"handleFocusOut"),lt(I,"handleMutations"),document.addEventListener("focusin",k),document.addEventListener("focusout",V);const R=new MutationObserver(I);return b&&R.observe(b,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",V),R.disconnect()}}},[s,b,Y.paused,L]),x.useEffect(()=>{if(b){Z0.add(Y);const k=document.activeElement;if(!b.contains(k)){const I=new CustomEvent(pf,X0);b.addEventListener(pf,y),b.dispatchEvent(I),I.defaultPrevented||(Z1(P1(_d(b)),{select:!0}),document.activeElement===k&&In(b))}return()=>{b.removeEventListener(pf,y);const I=b.ownerDocument,R=CustomEvent;setTimeout(()=>{const T=new R(bf,X0);b.addEventListener(bf,E),b.dispatchEvent(T),T.defaultPrevented||In(k??I.body,{select:!0}),b.removeEventListener(bf,E),Z0.remove(Y)},0)}}},[b,y,E,Y]);const G=x.useCallback(k=>{if(!o&&!s||Y.paused)return;const V=k.key==="Tab"&&!k.altKey&&!k.ctrlKey&&!k.metaKey,I=document.activeElement;if(V&&I){const R=k.currentTarget,[T,z]=K1(R);T&&z?!k.shiftKey&&I===z?(k.preventDefault(),o&&In(T,{select:!0})):k.shiftKey&&I===T&&(k.preventDefault(),o&&In(z,{select:!0})):I===R&&k.preventDefault()}},[o,s,Y.paused]);return h.jsx(Ke.div,{tabIndex:-1,...p,ref:j,onKeyDown:G})},"FocusScope")),V1=x.createContext(null);function Q1({registry:i,children:r}){return i?h.jsx(V1.Provider,{value:i,children:r}):r}lt(Q1,"FocusScopeBranchProvider");function X1(){const[i,r]=x.useState([]),c=x.useMemo(()=>({add:lt(o=>r(s=>s.includes(o)?s:[...s,o]),"add"),remove:lt(o=>r(s=>s.filter(f=>f!==o)),"remove")}),[]);return{nodes:i,registry:c}}lt(X1,"useFocusScopeBranchRegistry");function i4(i){const r=x.useContext(V1);x.useEffect(()=>{if(!(!i||!r))return r.add(i),()=>r.remove(i)},[i,r])}lt(i4,"useFocusScopeBranch");function Z1(i,{select:r=!1}={}){const c=document.activeElement;for(const o of i)if(In(o,{select:r}),document.activeElement!==c)return}lt(Z1,"focusFirst");function K1(i){const r=_d(i),c=ad(r,i),o=ad(r.reverse(),i);return[c,o]}lt(K1,"getTabbableEdges");function _d(i){const r=[],o=i.ownerDocument.createTreeWalker(i,NodeFilter.SHOW_ELEMENT,{acceptNode:lt(s=>{const f=s.tagName==="INPUT"&&s.type==="hidden";return s.disabled||s.hidden||f?NodeFilter.FILTER_SKIP:s.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},"acceptNode")});for(;o.nextNode();)r.push(o.currentNode);return r}lt(_d,"getTabbableCandidates");function ad(i,r){const c=typeof r.checkVisibility=="function"&&r.checkVisibility({checkVisibilityCSS:!0});for(const o of i)if(!(c?!o.checkVisibility({checkVisibilityCSS:!0}):I1(o,{upTo:r})))return o}lt(ad,"findVisible");function I1(i,{upTo:r}){if(getComputedStyle(i).visibility==="hidden")return!0;for(;i;){if(r!==void 0&&i===r)return!1;if(getComputedStyle(i).display==="none")return!0;i=i.parentElement}return!1}lt(I1,"isHidden");function J1(i){return i.tagName==="INPUT"&&typeof i.select=="function"}lt(J1,"isSelectableInput");function In(i,{select:r=!1}={}){if(i&&i.focus){const o=(i.ownerDocument??document).activeElement;i.focus({preventScroll:!0}),i!==o&&J1(i)&&r&&i.select()}}lt(In,"focus");var Z0=F1();function F1(){let i=[];return{add(r){const c=i[0];r!==c&&(c==null||c.pause()),i=id(i,r),i.unshift(r)},remove(r){var c;i=id(i,r),(c=i[0])==null||c.resume()}}}lt(F1,"createFocusScopesStack");function id(i,r){const c=[...i],o=c.indexOf(r);return o!==-1&&c.splice(o,1),c}lt(id,"arrayRemove");function P1(i){return i.filter(r=>r.tagName!=="A")}lt(P1,"removeLinks");var u4=Object.defineProperty,r4=(i,r)=>u4(i,"name",{value:r,configurable:!0}),o4=x.forwardRef(r4(function(r,c){var p;const{container:o,...s}=r,[f,m]=x.useState(!1);un(()=>m(!0),[]);const v=o||f&&((p=globalThis==null?void 0:globalThis.document)==null?void 0:p.body);return v?m1.createPortal(h.jsx(Ke.div,{...s,ref:c}),v):null},"Portal")),c4=Object.defineProperty,Ad=(i,r)=>c4(i,"name",{value:r,configurable:!0}),to=0,Rn=null;function s4(i){return Rd(),i.children}Ad(s4,"FocusGuards");function Rd(){x.useEffect(()=>{Rn||(Rn={start:ud(),end:ud()});const{start:i,end:r}=Rn;return document.body.firstElementChild!==i&&document.body.insertAdjacentElement("afterbegin",i),document.body.lastElementChild!==r&&document.body.insertAdjacentElement("beforeend",r),to++,()=>{to===1&&(Rn==null||Rn.start.remove(),Rn==null||Rn.end.remove(),Rn=null),to=Math.max(0,to-1)}},[])}Ad(Rd,"useFocusGuards");function ud(){const i=document.createElement("span");return i.setAttribute("data-radix-focus-guard",""),i.tabIndex=0,i.style.outline="none",i.style.opacity="0",i.style.position="fixed",i.style.pointerEvents="none",i}Ad(ud,"createFocusGuard");var On=function(){return On=Object.assign||function(r){for(var c,o=1,s=arguments.length;o<s;o++){c=arguments[o];for(var f in c)Object.prototype.hasOwnProperty.call(c,f)&&(r[f]=c[f])}return r},On.apply(this,arguments)};function $1(i,r){var c={};for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&r.indexOf(o)<0&&(c[o]=i[o]);if(i!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,o=Object.getOwnPropertySymbols(i);s<o.length;s++)r.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(i,o[s])&&(c[o[s]]=i[o[s]]);return c}function f4(i,r,c){if(c||arguments.length===2)for(var o=0,s=r.length,f;o<s;o++)(f||!(o in r))&&(f||(f=Array.prototype.slice.call(r,0,o)),f[o]=r[o]);return i.concat(f||Array.prototype.slice.call(r))}var co="right-scroll-bar-position",so="width-before-scroll-bar",d4="with-scroll-bars-hidden",m4="--removed-body-scroll-bar-size";function xf(i,r){return typeof i=="function"?i(r):i&&(i.current=r),i}function h4(i,r){var c=x.useState(function(){return{value:i,callback:r,facade:{get current(){return c.value},set current(o){var s=c.value;s!==o&&(c.value=o,c.callback(o,s))}}}})[0];return c.callback=r,c.facade}var v4=typeof window<"u"?x.useLayoutEffect:x.useEffect,K0=new WeakMap;function g4(i,r){var c=h4(null,function(o){return i.forEach(function(s){return xf(s,o)})});return v4(function(){var o=K0.get(c);if(o){var s=new Set(o),f=new Set(i),m=c.current;s.forEach(function(v){f.has(v)||xf(v,null)}),f.forEach(function(v){s.has(v)||xf(v,m)})}K0.set(c,i)},[i]),c}function y4(i){return i}function p4(i,r){r===void 0&&(r=y4);var c=[],o=!1,s={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return c.length?c[c.length-1]:i},useMedium:function(f){var m=r(f,o);return c.push(m),function(){c=c.filter(function(v){return v!==m})}},assignSyncMedium:function(f){for(o=!0;c.length;){var m=c;c=[],m.forEach(f)}c={push:function(v){return f(v)},filter:function(){return c}}},assignMedium:function(f){o=!0;var m=[];if(c.length){var v=c;c=[],v.forEach(f),m=c}var p=function(){var S=m;m=[],S.forEach(f)},b=function(){return Promise.resolve().then(p)};b(),c={push:function(S){m.push(S),b()},filter:function(S){return m=m.filter(S),c}}}};return s}function b4(i){i===void 0&&(i={});var r=p4(null);return r.options=On({async:!0,ssr:!1},i),r}var W1=function(i){var r=i.sideCar,c=$1(i,["sideCar"]);if(!r)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=r.read();if(!o)throw new Error("Sidecar medium not found");return x.createElement(o,On({},c))};W1.isSideCarExport=!0;function x4(i,r){return i.useMedium(r),W1}var ep=b4(),Sf=function(){},xo=x.forwardRef(function(i,r){var c=x.useRef(null),o=x.useState({onScrollCapture:Sf,onWheelCapture:Sf,onTouchMoveCapture:Sf}),s=o[0],f=o[1],m=i.forwardProps,v=i.children,p=i.className,b=i.removeScrollBar,S=i.enabled,y=i.shards,E=i.sideCar,A=i.noRelative,j=i.noIsolation,D=i.inert,L=i.allowPinchZoom,Y=i.as,G=Y===void 0?"div":Y,k=i.gapMode,V=$1(i,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),I=E,R=g4([c,r]),T=On(On({},V),s);return x.createElement(x.Fragment,null,S&&x.createElement(I,{sideCar:ep,removeScrollBar:b,shards:y,noRelative:A,noIsolation:j,inert:D,setCallbacks:f,allowPinchZoom:!!L,lockRef:c,gapMode:k}),m?x.cloneElement(x.Children.only(v),On(On({},T),{ref:R})):x.createElement(G,On({},T,{className:p,ref:R}),v))});xo.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};xo.classNames={fullWidth:so,zeroRight:co};var S4=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function E4(){if(!document)return null;var i=document.createElement("style");i.type="text/css";var r=S4();return r&&i.setAttribute("nonce",r),i}function C4(i,r){i.styleSheet?i.styleSheet.cssText=r:i.appendChild(document.createTextNode(r))}function N4(i){var r=document.head||document.getElementsByTagName("head")[0];r.appendChild(i)}var w4=function(){var i=0,r=null;return{add:function(c){i==0&&(r=E4())&&(C4(r,c),N4(r)),i++},remove:function(){i--,!i&&r&&(r.parentNode&&r.parentNode.removeChild(r),r=null)}}},T4=function(){var i=w4();return function(r,c){x.useEffect(function(){return i.add(r),function(){i.remove()}},[r&&c])}},tp=function(){var i=T4(),r=function(c){var o=c.styles,s=c.dynamic;return i(o,s),null};return r},_4={left:0,top:0,right:0,gap:0},Ef=function(i){return parseInt(i||"",10)||0},A4=function(i){var r=window.getComputedStyle(document.body),c=r[i==="padding"?"paddingLeft":"marginLeft"],o=r[i==="padding"?"paddingTop":"marginTop"],s=r[i==="padding"?"paddingRight":"marginRight"];return[Ef(c),Ef(o),Ef(s)]},R4=function(i){if(i===void 0&&(i="margin"),typeof window>"u")return _4;var r=A4(i),c=document.documentElement.clientWidth,o=window.innerWidth;return{left:r[0],top:r[1],right:r[2],gap:Math.max(0,o-c+r[2]-r[0])}},j4=tp(),hi="data-scroll-locked",O4=function(i,r,c,o){var s=i.left,f=i.top,m=i.right,v=i.gap;return c===void 0&&(c="margin"),`
|
||
.`.concat(d4,` {
|
||
overflow: hidden `).concat(o,`;
|
||
padding-right: `).concat(v,"px ").concat(o,`;
|
||
}
|
||
body[`).concat(hi,`] {
|
||
overflow: hidden `).concat(o,`;
|
||
overscroll-behavior: contain;
|
||
`).concat([r&&"position: relative ".concat(o,";"),c==="margin"&&`
|
||
padding-left: `.concat(s,`px;
|
||
padding-top: `).concat(f,`px;
|
||
padding-right: `).concat(m,`px;
|
||
margin-left:0;
|
||
margin-top:0;
|
||
margin-right: `).concat(v,"px ").concat(o,`;
|
||
`),c==="padding"&&"padding-right: ".concat(v,"px ").concat(o,";")].filter(Boolean).join(""),`
|
||
}
|
||
|
||
.`).concat(co,` {
|
||
right: `).concat(v,"px ").concat(o,`;
|
||
}
|
||
|
||
.`).concat(so,` {
|
||
margin-right: `).concat(v,"px ").concat(o,`;
|
||
}
|
||
|
||
.`).concat(co," .").concat(co,` {
|
||
right: 0 `).concat(o,`;
|
||
}
|
||
|
||
.`).concat(so," .").concat(so,` {
|
||
margin-right: 0 `).concat(o,`;
|
||
}
|
||
|
||
body[`).concat(hi,`] {
|
||
`).concat(m4,": ").concat(v,`px;
|
||
}
|
||
`)},I0=function(){var i=parseInt(document.body.getAttribute(hi)||"0",10);return isFinite(i)?i:0},M4=function(){x.useEffect(function(){return document.body.setAttribute(hi,(I0()+1).toString()),function(){var i=I0()-1;i<=0?document.body.removeAttribute(hi):document.body.setAttribute(hi,i.toString())}},[])},z4=function(i){var r=i.noRelative,c=i.noImportant,o=i.gapMode,s=o===void 0?"margin":o;M4();var f=x.useMemo(function(){return R4(s)},[s]);return x.createElement(j4,{styles:O4(f,!r,s,c?"":"!important")})},rd=!1;if(typeof window<"u")try{var no=Object.defineProperty({},"passive",{get:function(){return rd=!0,!0}});window.addEventListener("test",no,no),window.removeEventListener("test",no,no)}catch{rd=!1}var ri=rd?{passive:!1}:!1,D4=function(i){return i.tagName==="TEXTAREA"},np=function(i,r){if(!(i instanceof Element))return!1;var c=window.getComputedStyle(i);return c[r]!=="hidden"&&!(c.overflowY===c.overflowX&&!D4(i)&&c[r]==="visible")},U4=function(i){return np(i,"overflowY")},B4=function(i){return np(i,"overflowX")},J0=function(i,r){var c=r.ownerDocument,o=r;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var s=lp(i,o);if(s){var f=ap(i,o),m=f[1],v=f[2];if(m>v)return!0}o=o.parentNode}while(o&&o!==c.body);return!1},k4=function(i){var r=i.scrollTop,c=i.scrollHeight,o=i.clientHeight;return[r,c,o]},H4=function(i){var r=i.scrollLeft,c=i.scrollWidth,o=i.clientWidth;return[r,c,o]},lp=function(i,r){return i==="v"?U4(r):B4(r)},ap=function(i,r){return i==="v"?k4(r):H4(r)},L4=function(i,r){return i==="h"&&r==="rtl"?-1:1},q4=function(i,r,c,o,s){var f=L4(i,window.getComputedStyle(r).direction),m=f*o,v=c.target,p=r.contains(v),b=!1,S=m>0,y=0,E=0;do{if(!v)break;var A=ap(i,v),j=A[0],D=A[1],L=A[2],Y=D-L-f*j;(j||Y)&&lp(i,v)&&(y+=Y,E+=j);var G=v.parentNode;v=G&&G.nodeType===Node.DOCUMENT_FRAGMENT_NODE?G.host:G}while(!p&&v!==document.body||p&&(r.contains(v)||r===v));return(S&&Math.abs(y)<1||!S&&Math.abs(E)<1)&&(b=!0),b},lo=function(i){return"changedTouches"in i?[i.changedTouches[0].clientX,i.changedTouches[0].clientY]:[0,0]},F0=function(i){return[i.deltaX,i.deltaY]},P0=function(i){return i&&"current"in i?i.current:i},G4=function(i,r){return i[0]===r[0]&&i[1]===r[1]},Y4=function(i){return`
|
||
.block-interactivity-`.concat(i,` {pointer-events: none;}
|
||
.allow-interactivity-`).concat(i,` {pointer-events: all;}
|
||
`)},V4=0,oi=[];function Q4(i){var r=x.useRef([]),c=x.useRef([0,0]),o=x.useRef(),s=x.useState(V4++)[0],f=x.useState(tp)[0],m=x.useRef(i);x.useEffect(function(){m.current=i},[i]),x.useEffect(function(){if(i.inert){document.body.classList.add("block-interactivity-".concat(s));var D=f4([i.lockRef.current],(i.shards||[]).map(P0),!0).filter(Boolean);return D.forEach(function(L){return L.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),D.forEach(function(L){return L.classList.remove("allow-interactivity-".concat(s))})}}},[i.inert,i.lockRef.current,i.shards]);var v=x.useCallback(function(D,L){if("touches"in D&&D.touches.length===2||D.type==="wheel"&&D.ctrlKey)return!m.current.allowPinchZoom;var Y=lo(D),G=c.current,k="deltaX"in D?D.deltaX:G[0]-Y[0],V="deltaY"in D?D.deltaY:G[1]-Y[1],I,R=D.target,T=Math.abs(k)>Math.abs(V)?"h":"v";if("touches"in D&&T==="h"&&R.type==="range")return!1;var z=window.getSelection(),Z=z&&z.anchorNode,te=Z?Z===R||Z.contains(R):!1;if(te)return!1;var W=J0(T,R);if(!W)return!0;if(W?I=T:(I=T==="v"?"h":"v",W=J0(T,R)),!W)return!1;if(!o.current&&"changedTouches"in D&&(k||V)&&(o.current=I),!I)return!0;var P=o.current||I;return q4(P,L,D,P==="h"?k:V)},[]),p=x.useCallback(function(D){var L=D;if(!(!oi.length||oi[oi.length-1]!==f)){var Y="deltaY"in L?F0(L):lo(L),G=r.current.filter(function(I){return I.name===L.type&&(I.target===L.target||L.target===I.shadowParent)&&G4(I.delta,Y)})[0];if(G&&G.should){L.cancelable&&L.preventDefault();return}if(!G){var k=(m.current.shards||[]).map(P0).filter(Boolean).filter(function(I){return I.contains(L.target)}),V=k.length>0?v(L,k[0]):!m.current.noIsolation;V&&L.cancelable&&L.preventDefault()}}},[]),b=x.useCallback(function(D,L,Y,G){var k={name:D,delta:L,target:Y,should:G,shadowParent:X4(Y)};r.current.push(k),setTimeout(function(){r.current=r.current.filter(function(V){return V!==k})},1)},[]),S=x.useCallback(function(D){c.current=lo(D),o.current=void 0},[]),y=x.useCallback(function(D){b(D.type,F0(D),D.target,v(D,i.lockRef.current))},[]),E=x.useCallback(function(D){b(D.type,lo(D),D.target,v(D,i.lockRef.current))},[]);x.useEffect(function(){return oi.push(f),i.setCallbacks({onScrollCapture:y,onWheelCapture:y,onTouchMoveCapture:E}),document.addEventListener("wheel",p,ri),document.addEventListener("touchmove",p,ri),document.addEventListener("touchstart",S,ri),function(){oi=oi.filter(function(D){return D!==f}),document.removeEventListener("wheel",p,ri),document.removeEventListener("touchmove",p,ri),document.removeEventListener("touchstart",S,ri)}},[]);var A=i.removeScrollBar,j=i.inert;return x.createElement(x.Fragment,null,j?x.createElement(f,{styles:Y4(s)}):null,A?x.createElement(z4,{noRelative:i.noRelative,gapMode:i.gapMode}):null)}function X4(i){for(var r=null;i!==null;)i instanceof ShadowRoot&&(r=i.host,i=i.host),i=i.parentNode;return r}const Z4=x4(ep,Q4);var ip=x.forwardRef(function(i,r){return x.createElement(xo,On({},i,{ref:r,sideCar:Z4}))});ip.classNames=xo.classNames;var K4=function(i){if(typeof document>"u")return null;var r=Array.isArray(i)?i[0]:i;return r.ownerDocument.body},ci=new WeakMap,ao=new WeakMap,io={},Cf=0,up=function(i){return i&&(i.host||up(i.parentNode))},I4=function(i,r){return r.map(function(c){if(i.contains(c))return c;var o=up(c);return o&&i.contains(o)?o:(console.error("aria-hidden",c,"in not contained inside",i,". Doing nothing"),null)}).filter(function(c){return!!c})},J4=function(i,r,c,o){var s=I4(r,Array.isArray(i)?i:[i]);io[c]||(io[c]=new WeakMap);var f=io[c],m=[],v=new Set,p=new Set(s),b=function(y){!y||v.has(y)||(v.add(y),b(y.parentNode))};s.forEach(b);var S=function(y){!y||p.has(y)||Array.prototype.forEach.call(y.children,function(E){if(v.has(E))S(E);else try{var A=E.getAttribute(o),j=A!==null&&A!=="false",D=(ci.get(E)||0)+1,L=(f.get(E)||0)+1;ci.set(E,D),f.set(E,L),m.push(E),D===1&&j&&ao.set(E,!0),L===1&&E.setAttribute(c,"true"),j||E.setAttribute(o,"true")}catch(Y){console.error("aria-hidden: cannot operate on ",E,Y)}})};return S(r),v.clear(),Cf++,function(){m.forEach(function(y){var E=ci.get(y)-1,A=f.get(y)-1;ci.set(y,E),f.set(y,A),E||(ao.has(y)||y.removeAttribute(o),ao.delete(y)),A||y.removeAttribute(c)}),Cf--,Cf||(ci=new WeakMap,ci=new WeakMap,ao=new WeakMap,io={})}},F4=function(i,r,c){c===void 0&&(c="data-aria-hidden");var o=Array.from(Array.isArray(i)?i:[i]),s=K4(i);return s?(o.push.apply(o,Array.from(s.querySelectorAll("[aria-live], script"))),J4(o,s,c,"aria-hidden")):function(){return null}},P4=Object.defineProperty,rn=(i,r)=>P4(i,"name",{value:r,configurable:!0}),jd="Dialog",[rp,mN]=da(jd),[$4,$n]=rp(jd),op=rn(i=>{const{__scopeDialog:r,children:c,open:o,defaultOpen:s,onOpenChange:f,modal:m=!0}=i,v=x.useRef(null),p=x.useRef(null),{nodes:b,registry:S}=X1(),[y,E]=bu({prop:o,defaultProp:s??!1,onChange:f,caller:jd}),[A,j]=x.useState(0),[D,L]=x.useState(0);return h.jsx($4,{scope:r,triggerRef:v,contentRef:p,contentId:an(),titleId:an(),descriptionId:an(),titlePresent:A>0,descriptionPresent:D>0,setTitleCount:j,setDescriptionCount:L,open:y,onOpenChange:E,onOpenToggle:x.useCallback(()=>E(Y=>!Y),[E]),modal:m,branchNodes:b,branchRegistry:S,children:c})},"Dialog"),cp="DialogPortal",[W4,sp]=rp(cp,{forceMount:void 0}),fp=rn(i=>{const{__scopeDialog:r,forceMount:c,children:o,container:s}=i,f=$n(cp,r);return h.jsx(W4,{scope:r,forceMount:c,children:x.Children.map(o,m=>h.jsx(bo,{present:c||f.open,children:h.jsx(o4,{asChild:!0,container:s,children:m})}))})},"DialogPortal"),od="DialogOverlay",Od=x.forwardRef(rn(function(r,c){const o=sp(od,r.__scopeDialog),{forceMount:s=o.forceMount,...f}=r,m=$n(od,r.__scopeDialog);return m.modal?h.jsx(bo,{present:s||m.open,children:h.jsx(t3,{...f,ref:c})}):null},"DialogOverlay")),e3=Ml("DialogOverlay.RemoveScroll"),t3=x.forwardRef(rn(function(r,c){const{__scopeDialog:o,...s}=r,f=$n(od,o),m=q1(),v=zt(c,m);return h.jsx(ip,{as:e3,allowPinchZoom:!0,shards:x.useMemo(()=>[f.contentRef,...f.branchNodes.map(p=>({current:p}))],[f.contentRef,f.branchNodes]),children:h.jsx(Ke.div,{"data-state":zd(f.open),...s,ref:v,style:{pointerEvents:"auto",...s.style}})})},"DialogOverlayImpl")),yu="DialogContent",Md=x.forwardRef(rn(function(r,c){const o=sp(yu,r.__scopeDialog),{forceMount:s=o.forceMount,...f}=r,m=$n(yu,r.__scopeDialog);return h.jsx(bo,{present:s||m.open,children:m.modal?h.jsx(n3,{...f,ref:c}):h.jsx(l3,{...f,ref:c})})},"DialogContent")),n3=x.forwardRef(rn(function(r,c){const o=$n(yu,r.__scopeDialog),s=x.useRef(null),f=zt(c,o.contentRef,s);return x.useEffect(()=>{const m=s.current;if(m)return F4(m)},[]),h.jsx(dp,{...r,ref:f,trapFocus:o.open,disableOutsidePointerEvents:o.open,onCloseAutoFocus:dt(r.onCloseAutoFocus,m=>{var v;m.preventDefault(),(v=o.triggerRef.current)==null||v.focus()}),onPointerDownOutside:dt(r.onPointerDownOutside,m=>{const v=m.detail.originalEvent,p=v.button===0&&v.ctrlKey===!0;(v.button===2||p)&&m.preventDefault()}),onFocusOutside:dt(r.onFocusOutside,m=>m.preventDefault())})},"DialogContentModal")),l3=x.forwardRef(rn(function(r,c){const o=$n(yu,r.__scopeDialog),s=x.useRef(!1),f=x.useRef(!1);return h.jsx(dp,{...r,ref:c,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:m=>{var v,p;(v=r.onCloseAutoFocus)==null||v.call(r,m),m.defaultPrevented||(s.current||(p=o.triggerRef.current)==null||p.focus(),m.preventDefault()),s.current=!1,f.current=!1},onInteractOutside:m=>{var b,S;(b=r.onInteractOutside)==null||b.call(r,m),m.defaultPrevented||(s.current=!0,m.detail.originalEvent.type==="pointerdown"&&(f.current=!0));const v=m.target;((S=o.triggerRef.current)==null?void 0:S.contains(v))&&m.preventDefault(),m.detail.originalEvent.type==="focusin"&&f.current&&m.preventDefault()}})},"DialogContentNonModal")),dp=x.forwardRef(rn(function(r,c){const{__scopeDialog:o,trapFocus:s,onOpenAutoFocus:f,onCloseAutoFocus:m,"aria-describedby":v,children:p,...b}=r,S=$n(yu,o);return Rd(),h.jsx(Q1,{registry:S.branchRegistry,children:h.jsx(a4,{asChild:!0,loop:!0,trapped:s,branches:S.branchNodes,onMountAutoFocus:f,onUnmountAutoFocus:m,children:h.jsx(t4,{role:"dialog",id:S.contentId,"aria-labelledby":S.titlePresent?S.titleId:void 0,"aria-describedby":S.descriptionPresent?vp(v,S.descriptionId):v,"data-state":zd(S.open),...b,ref:c,deferPointerDownOutside:!0,onDismiss:()=>S.onOpenChange(!1),children:p})})})},"DialogContentImpl")),mp=x.forwardRef(rn(function(r,c){const{__scopeDialog:o,...s}=r,f=$n("DialogTitle",o),{setTitleCount:m}=f;return un(()=>(m(v=>v+1),()=>m(v=>v-1)),[m]),h.jsx(Ke.h2,{id:f.titleId,...s,ref:c})},"DialogTitle")),hp=x.forwardRef(rn(function(r,c){const{__scopeDialog:o,...s}=r,f=$n("DialogDescription",o),{setDescriptionCount:m}=f;return un(()=>(m(v=>v+1),()=>m(v=>v-1)),[m]),h.jsx(Ke.p,{id:f.descriptionId,...s,ref:c})},"DialogDescription"));function vp(...i){const r=new Set;for(const c of i)if(typeof c=="string")for(const o of String(c).trim().split(/\s+/))o&&r.add(o);return r.size>0?Array.from(r).join(" "):void 0}rn(vp,"concatAriaDescribedby");function zd(i){return i?"open":"closed"}rn(zd,"getState");var hu='[cmdk-group=""]',Nf='[cmdk-group-items=""]',a3='[cmdk-group-heading=""]',gp='[cmdk-item=""]',$0=`${gp}:not([aria-disabled="true"])`,cd="cmdk-item-select",di="data-value",i3=(i,r,c)=>PC(i,r,c),yp=x.createContext(void 0),xu=()=>x.useContext(yp),pp=x.createContext(void 0),Dd=()=>x.useContext(pp),bp=x.createContext(void 0),xp=x.forwardRef((i,r)=>{let c=mi(()=>{var J,me;return{search:"",value:(me=(J=i.value)!=null?J:i.defaultValue)!=null?me:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),o=mi(()=>new Set),s=mi(()=>new Map),f=mi(()=>new Map),m=mi(()=>new Set),v=Sp(i),{label:p,children:b,value:S,onValueChange:y,filter:E,shouldFilter:A,loop:j,disablePointerSelection:D=!1,vimBindings:L=!0,...Y}=i,G=an(),k=an(),V=an(),I=x.useRef(null),R=g3();ca(()=>{if(S!==void 0){let J=S.trim();c.current.value=J,T.emit()}},[S]),ca(()=>{R(6,ne)},[]);let T=x.useMemo(()=>({subscribe:J=>(m.current.add(J),()=>m.current.delete(J)),snapshot:()=>c.current,setState:(J,me,N)=>{var U,$,ee,he;if(!Object.is(c.current[J],me)){if(c.current[J]=me,J==="search")P(),te(),R(1,W);else if(J==="value"){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let ie=document.getElementById(V);ie?ie.focus():(U=document.getElementById(G))==null||U.focus()}if(R(7,()=>{var ie;c.current.selectedItemId=(ie=ue())==null?void 0:ie.id,T.emit()}),N||R(5,ne),(($=v.current)==null?void 0:$.value)!==void 0){let ie=me??"";(he=(ee=v.current).onValueChange)==null||he.call(ee,ie);return}}T.emit()}},emit:()=>{m.current.forEach(J=>J())}}),[]),z=x.useMemo(()=>({value:(J,me,N)=>{var U;me!==((U=f.current.get(J))==null?void 0:U.value)&&(f.current.set(J,{value:me,keywords:N}),c.current.filtered.items.set(J,Z(me,N)),R(2,()=>{te(),T.emit()}))},item:(J,me)=>(o.current.add(J),me&&(s.current.has(me)?s.current.get(me).add(J):s.current.set(me,new Set([J]))),R(3,()=>{P(),te(),c.current.value||W(),T.emit()}),()=>{f.current.delete(J),o.current.delete(J),c.current.filtered.items.delete(J);let N=ue();R(4,()=>{P(),(N==null?void 0:N.getAttribute("id"))===J&&W(),T.emit()})}),group:J=>(s.current.has(J)||s.current.set(J,new Set),()=>{f.current.delete(J),s.current.delete(J)}),filter:()=>v.current.shouldFilter,label:p||i["aria-label"],getDisablePointerSelection:()=>v.current.disablePointerSelection,listId:G,inputId:V,labelId:k,listInnerRef:I}),[]);function Z(J,me){var N,U;let $=(U=(N=v.current)==null?void 0:N.filter)!=null?U:i3;return J?$(J,c.current.search,me):0}function te(){if(!c.current.search||v.current.shouldFilter===!1)return;let J=c.current.filtered.items,me=[];c.current.filtered.groups.forEach(U=>{let $=s.current.get(U),ee=0;$.forEach(he=>{let ie=J.get(he);ee=Math.max(ie,ee)}),me.push([U,ee])});let N=I.current;ge().sort((U,$)=>{var ee,he;let ie=U.getAttribute("id"),Ee=$.getAttribute("id");return((ee=J.get(Ee))!=null?ee:0)-((he=J.get(ie))!=null?he:0)}).forEach(U=>{let $=U.closest(Nf);$?$.appendChild(U.parentElement===$?U:U.closest(`${Nf} > *`)):N.appendChild(U.parentElement===N?U:U.closest(`${Nf} > *`))}),me.sort((U,$)=>$[1]-U[1]).forEach(U=>{var $;let ee=($=I.current)==null?void 0:$.querySelector(`${hu}[${di}="${encodeURIComponent(U[0])}"]`);ee==null||ee.parentElement.appendChild(ee)})}function W(){let J=ge().find(N=>N.getAttribute("aria-disabled")!=="true"),me=J==null?void 0:J.getAttribute(di);T.setState("value",me||void 0)}function P(){var J,me,N,U;if(!c.current.search||v.current.shouldFilter===!1){c.current.filtered.count=o.current.size;return}c.current.filtered.groups=new Set;let $=0;for(let ee of o.current){let he=(me=(J=f.current.get(ee))==null?void 0:J.value)!=null?me:"",ie=(U=(N=f.current.get(ee))==null?void 0:N.keywords)!=null?U:[],Ee=Z(he,ie);c.current.filtered.items.set(ee,Ee),Ee>0&&$++}for(let[ee,he]of s.current)for(let ie of he)if(c.current.filtered.items.get(ie)>0){c.current.filtered.groups.add(ee);break}c.current.filtered.count=$}function ne(){var J,me,N;let U=ue();U&&(((J=U.parentElement)==null?void 0:J.firstChild)===U&&((N=(me=U.closest(hu))==null?void 0:me.querySelector(a3))==null||N.scrollIntoView({block:"nearest"})),U.scrollIntoView({block:"nearest"}))}function ue(){var J;return(J=I.current)==null?void 0:J.querySelector(`${gp}[aria-selected="true"]`)}function ge(){var J;return Array.from(((J=I.current)==null?void 0:J.querySelectorAll($0))||[])}function F(J){let me=ge()[J];me&&T.setState("value",me.getAttribute(di))}function ae(J){var me;let N=ue(),U=ge(),$=U.findIndex(he=>he===N),ee=U[$+J];(me=v.current)!=null&&me.loop&&(ee=$+J<0?U[U.length-1]:$+J===U.length?U[0]:U[$+J]),ee&&T.setState("value",ee.getAttribute(di))}function ce(J){let me=ue(),N=me==null?void 0:me.closest(hu),U;for(;N&&!U;)N=J>0?h3(N,hu):v3(N,hu),U=N==null?void 0:N.querySelector($0);U?T.setState("value",U.getAttribute(di)):ae(J)}let xe=()=>F(ge().length-1),K=J=>{J.preventDefault(),J.metaKey?xe():J.altKey?ce(1):ae(1)},Se=J=>{J.preventDefault(),J.metaKey?F(0):J.altKey?ce(-1):ae(-1)};return x.createElement(Ke.div,{ref:r,tabIndex:-1,...Y,"cmdk-root":"",onKeyDown:J=>{var me;(me=Y.onKeyDown)==null||me.call(Y,J);let N=J.nativeEvent.isComposing||J.keyCode===229;if(!(J.defaultPrevented||N))switch(J.key){case"n":case"j":{L&&J.ctrlKey&&K(J);break}case"ArrowDown":{K(J);break}case"p":case"k":{L&&J.ctrlKey&&Se(J);break}case"ArrowUp":{Se(J);break}case"Home":{J.preventDefault(),F(0);break}case"End":{J.preventDefault(),xe();break}case"Enter":{J.preventDefault();let U=ue();if(U){let $=new Event(cd);U.dispatchEvent($)}}}}},x.createElement("label",{"cmdk-label":"",htmlFor:z.inputId,id:z.labelId,style:p3},p),So(i,J=>x.createElement(pp.Provider,{value:T},x.createElement(yp.Provider,{value:z},J))))}),u3=x.forwardRef((i,r)=>{var c,o;let s=an(),f=x.useRef(null),m=x.useContext(bp),v=xu(),p=Sp(i),b=(o=(c=p.current)==null?void 0:c.forceMount)!=null?o:m==null?void 0:m.forceMount;ca(()=>{if(!b)return v.item(s,m==null?void 0:m.id)},[b]);let S=Ep(s,f,[i.value,i.children,f],i.keywords),y=Dd(),E=zl(R=>R.value&&R.value===S.current),A=zl(R=>b||v.filter()===!1?!0:R.search?R.filtered.items.get(s)>0:!0);x.useEffect(()=>{let R=f.current;if(!(!R||i.disabled))return R.addEventListener(cd,j),()=>R.removeEventListener(cd,j)},[A,i.onSelect,i.disabled]);function j(){var R,T;D(),(T=(R=p.current).onSelect)==null||T.call(R,S.current)}function D(){y.setState("value",S.current,!0)}if(!A)return null;let{disabled:L,value:Y,onSelect:G,forceMount:k,keywords:V,...I}=i;return x.createElement(Ke.div,{ref:ra(f,r),...I,id:s,"cmdk-item":"",role:"option","aria-disabled":!!L,"aria-selected":!!E,"data-disabled":!!L,"data-selected":!!E,onPointerMove:L||v.getDisablePointerSelection()?void 0:D,onClick:L?void 0:j},i.children)}),r3=x.forwardRef((i,r)=>{let{heading:c,children:o,forceMount:s,...f}=i,m=an(),v=x.useRef(null),p=x.useRef(null),b=an(),S=xu(),y=zl(A=>s||S.filter()===!1?!0:A.search?A.filtered.groups.has(m):!0);ca(()=>S.group(m),[]),Ep(m,v,[i.value,i.heading,p]);let E=x.useMemo(()=>({id:m,forceMount:s}),[s]);return x.createElement(Ke.div,{ref:ra(v,r),...f,"cmdk-group":"",role:"presentation",hidden:y?void 0:!0},c&&x.createElement("div",{ref:p,"cmdk-group-heading":"","aria-hidden":!0,id:b},c),So(i,A=>x.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":c?b:void 0},x.createElement(bp.Provider,{value:E},A))))}),o3=x.forwardRef((i,r)=>{let{alwaysRender:c,...o}=i,s=x.useRef(null),f=zl(m=>!m.search);return!c&&!f?null:x.createElement(Ke.div,{ref:ra(s,r),...o,"cmdk-separator":"",role:"separator"})}),c3=x.forwardRef((i,r)=>{let{onValueChange:c,...o}=i,s=i.value!=null,f=Dd(),m=zl(b=>b.search),v=zl(b=>b.selectedItemId),p=xu();return x.useEffect(()=>{i.value!=null&&f.setState("search",i.value)},[i.value]),x.createElement(Ke.input,{ref:r,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":p.listId,"aria-labelledby":p.labelId,"aria-activedescendant":v,id:p.inputId,type:"text",value:s?i.value:m,onChange:b=>{s||f.setState("search",b.target.value),c==null||c(b.target.value)}})}),s3=x.forwardRef((i,r)=>{let{children:c,label:o="Suggestions",...s}=i,f=x.useRef(null),m=x.useRef(null),v=zl(b=>b.selectedItemId),p=xu();return x.useEffect(()=>{if(m.current&&f.current){let b=m.current,S=f.current,y,E=new ResizeObserver(()=>{y=requestAnimationFrame(()=>{let A=b.offsetHeight;S.style.setProperty("--cmdk-list-height",A.toFixed(1)+"px")})});return E.observe(b),()=>{cancelAnimationFrame(y),E.unobserve(b)}}},[]),x.createElement(Ke.div,{ref:ra(f,r),...s,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":v,"aria-label":o,id:p.listId},So(i,b=>x.createElement("div",{ref:ra(m,p.listInnerRef),"cmdk-list-sizer":""},b)))}),f3=x.forwardRef((i,r)=>{let{open:c,onOpenChange:o,overlayClassName:s,contentClassName:f,container:m,...v}=i;return x.createElement(op,{open:c,onOpenChange:o},x.createElement(fp,{container:m},x.createElement(Od,{"cmdk-overlay":"",className:s}),x.createElement(Md,{"aria-label":i.label,"cmdk-dialog":"",className:f},x.createElement(xp,{ref:r,...v}))))}),d3=x.forwardRef((i,r)=>zl(c=>c.filtered.count===0)?x.createElement(Ke.div,{ref:r,...i,"cmdk-empty":"",role:"presentation"}):null),m3=x.forwardRef((i,r)=>{let{progress:c,children:o,label:s="Loading...",...f}=i;return x.createElement(Ke.div,{ref:r,...f,"cmdk-loading":"",role:"progressbar","aria-valuenow":c,"aria-valuemin":0,"aria-valuemax":100,"aria-label":s},So(i,m=>x.createElement("div",{"aria-hidden":!0},m)))}),on=Object.assign(xp,{List:s3,Item:u3,Input:c3,Group:r3,Separator:o3,Dialog:f3,Empty:d3,Loading:m3});function h3(i,r){let c=i.nextElementSibling;for(;c;){if(c.matches(r))return c;c=c.nextElementSibling}}function v3(i,r){let c=i.previousElementSibling;for(;c;){if(c.matches(r))return c;c=c.previousElementSibling}}function Sp(i){let r=x.useRef(i);return ca(()=>{r.current=i}),r}var ca=typeof window>"u"?x.useEffect:x.useLayoutEffect;function mi(i){let r=x.useRef();return r.current===void 0&&(r.current=i()),r}function zl(i){let r=Dd(),c=()=>i(r.snapshot());return x.useSyncExternalStore(r.subscribe,c,c)}function Ep(i,r,c,o=[]){let s=x.useRef(),f=xu();return ca(()=>{var m;let v=(()=>{var b;for(let S of c){if(typeof S=="string")return S.trim();if(typeof S=="object"&&"current"in S)return S.current?(b=S.current.textContent)==null?void 0:b.trim():s.current}})(),p=o.map(b=>b.trim());f.value(i,v,p),(m=r.current)==null||m.setAttribute(di,v),s.current=v}),s}var g3=()=>{let[i,r]=x.useState(),c=mi(()=>new Map);return ca(()=>{c.current.forEach(o=>o()),c.current=new Map},[i]),(o,s)=>{c.current.set(o,s),r({})}};function y3(i){let r=i.type;return typeof r=="function"?r(i.props):"render"in r?r.render(i.props):i}function So({asChild:i,children:r},c){return i&&x.isValidElement(r)?x.cloneElement(y3(r),{ref:r.ref},c(r.props.children)):c(r)}var p3={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};const Ud=op,b3=fp,Cp=x.forwardRef(({className:i,...r},c)=>h.jsx(Od,{ref:c,className:Qe("fixed inset-0 z-50 bg-black/70 backdrop-blur-sm transition-opacity",i),...r}));Cp.displayName=Od.displayName;const Eo=x.forwardRef(({className:i,children:r,...c},o)=>h.jsxs(b3,{children:[h.jsx(Cp,{}),h.jsx(Md,{ref:o,className:Qe("fixed left-[50%] top-[50%] z-50 w-full max-w-lg translate-x-[-50%] translate-y-[-50%] hl-card shadow-2xl duration-200 outline-none",i),...c,children:r})]}));Eo.displayName=Md.displayName;const Co=x.forwardRef(({className:i,...r},c)=>h.jsx(mp,{ref:c,className:Qe("text-sm font-bold leading-none tracking-tight",i),...r}));Co.displayName=mp.displayName;const No=x.forwardRef(({className:i,...r},c)=>h.jsx(hp,{ref:c,className:Qe("text-xs text-[var(--text-muted)]",i),...r}));No.displayName=hp.displayName;const Np=x.forwardRef(({className:i,...r},c)=>h.jsx(on,{ref:c,className:Qe("flex h-full w-full flex-col overflow-hidden rounded-xl bg-[var(--bg-card)] text-[var(--text-main)]",i),...r}));Np.displayName=on.displayName;const x3=({children:i,...r})=>h.jsx(Ud,{...r,children:h.jsxs(Eo,{className:"max-w-xl overflow-hidden p-0 shadow-2xl top-[22%] translate-y-0",children:[h.jsx(Co,{className:"sr-only",children:"全局命令与服务搜索面板"}),h.jsx(No,{className:"sr-only",children:"使用键盘上下方向键选择服务或操作,回车立即执行"}),h.jsx(Np,{children:i})]})}),wp=x.forwardRef(({className:i,...r},c)=>h.jsxs("div",{className:"flex items-center border-b hl-border px-4 py-3 gap-3","cmdk-input-wrapper":"",children:[h.jsx(dd,{className:"h-4 w-4 shrink-0 text-[var(--text-muted)]"}),h.jsx(on.Input,{ref:c,className:Qe("flex w-full bg-transparent text-sm outline-none placeholder:text-[var(--text-subtle)] disabled:cursor-not-allowed disabled:opacity-50",i),...r}),h.jsx("kbd",{className:"px-1.5 py-0.5 text-[10px] font-mono-num rounded hl-muted text-[var(--text-muted)] shrink-0",children:"ESC"})]}));wp.displayName=on.Input.displayName;const Tp=x.forwardRef(({className:i,...r},c)=>h.jsx(on.List,{ref:c,className:Qe("max-h-80 overflow-y-auto overflow-x-hidden p-2",i),...r}));Tp.displayName=on.List.displayName;const _p=x.forwardRef((i,r)=>h.jsx(on.Empty,{ref:r,className:"py-6 text-center text-xs text-[var(--text-muted)]",...i}));_p.displayName=on.Empty.displayName;const Ap=x.forwardRef(({className:i,...r},c)=>h.jsx(on.Group,{ref:c,className:Qe("overflow-hidden p-1 text-[var(--text-main)] [&_[cmdk-group-heading]]:px-2.5 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-[10px] [&_[cmdk-group-heading]]:font-semibold [&_[cmdk-group-heading]]:uppercase [&_[cmdk-group-heading]]:tracking-wider [&_[cmdk-group-heading]]:text-[var(--text-subtle)]",i),...r}));Ap.displayName=on.Group.displayName;const Rp=x.forwardRef(({className:i,...r},c)=>h.jsx(on.Item,{ref:c,className:Qe("relative flex cursor-pointer select-none items-center justify-between rounded-lg px-3 py-2 text-xs outline-none transition-colors data-[selected=true]:bg-[var(--bg-muted)] data-[selected=true]:text-[var(--text-main)] data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50",i),...r}));Rp.displayName=on.Item.displayName;const S3=()=>{const{showCmdPalette:i,setShowCmdPalette:r,setShowAgyModal:c,setTheme:o,triggerAction:s,copyCmd:f,getEffectiveMode:m}=Pn(),v=x.useMemo(()=>{const p=m(),b=(S,y,E)=>p==="lan"?E:p==="home10443"?y:S;return[{id:"open-agy-drawer",title:"在页内唤起 AGY 云端终端",hint:"tmux attach -t agy",type:"终端",run:()=>c(!0)},{id:"open-agy",title:"新窗口打开 AGY 云端工作台",hint:"https://agy.961504.xyz",type:"跳转",run:()=>window.open(b("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(b("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(b("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(b("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:()=>s("backup_nas","正在打包备份至极空间 Z4...")},{id:"act-ddns",title:"立即刷新 Cloudflare DDNS 解析",hint:"cloudflare-ddns.sh",type:"运维",run:()=>s("refresh_ddns","正在同步 Cloudflare DDNS...")},{id:"ssh-mini",title:"复制 SSH 连接 Mac mini 指令",hint:"ssh mini",type:"SSH",run:()=>f("ssh mini","SSH Mac mini")},{id:"ssh-agy",title:"复制 终端接力 AGY 会话指令",hint:'ssh mini -t "tmux attach -t agy"',type:"SSH",run:()=>f('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")}]},[m,c,o,s,f]);return h.jsxs(x3,{open:i,onOpenChange:r,children:[h.jsx(wp,{placeholder:"输入服务名称、SSH 指令、路由模式或主题..."}),h.jsxs(Tp,{children:[h.jsx(_p,{children:"未找到匹配的指令或服务"}),h.jsx(Ap,{heading:"快速操作与服务直达 (cmdk + Radix Dialog)",children:v.map(p=>h.jsxs(Rp,{value:`${p.title} ${p.hint} ${p.type}`,onSelect:()=>{r(!1),p.run()},children:[h.jsxs("div",{className:"flex items-center gap-2.5",children:[h.jsx("span",{className:"font-medium",children:p.title}),h.jsx("span",{className:"font-mono-num text-[11px] text-[var(--text-muted)]",children:p.hint})]}),h.jsx(Jn,{variant:"secondary",children:p.type})]},p.id))})]})]})},Ol=x.forwardRef(({className:i,...r},c)=>h.jsx("div",{ref:c,className:Qe("hl-card",i),...r}));Ol.displayName="Card";const E3=x.forwardRef(({className:i,...r},c)=>h.jsx("div",{ref:c,className:Qe("flex flex-col space-y-1.5 p-5",i),...r}));E3.displayName="CardHeader";const C3=x.forwardRef(({className:i,...r},c)=>h.jsx("h3",{ref:c,className:Qe("text-sm font-bold leading-none tracking-tight",i),...r}));C3.displayName="CardTitle";const N3=x.forwardRef(({className:i,...r},c)=>h.jsx("p",{ref:c,className:Qe("text-xs text-[var(--text-muted)]",i),...r}));N3.displayName="CardDescription";const w3=x.forwardRef(({className:i,...r},c)=>h.jsx("div",{ref:c,className:Qe("p-5 pt-0",i),...r}));w3.displayName="CardContent";const T3=x.forwardRef(({className:i,...r},c)=>h.jsx("div",{ref:c,className:Qe("flex items-center p-5 pt-0",i),...r}));T3.displayName="CardFooter";const Bd=x.forwardRef(({className:i,type:r,...c},o)=>h.jsx("input",{type:r,className:Qe("hl-input",i),ref:o,...c}));Bd.displayName="Input";const vo=x.forwardRef(({className:i,...r},c)=>h.jsx("div",{ref:c,className:Qe("hl-input-group",i),...r}));vo.displayName="InputGroup";var _3=Object.defineProperty,A3=(i,r)=>_3(i,"name",{value:r,configurable:!0});function jp(i){const[r,c]=x.useState(void 0);return un(()=>{if(i){c({width:i.offsetWidth,height:i.offsetHeight});let o=0;const s=new ResizeObserver(f=>{if(!Array.isArray(f)||!f.length)return;const m=f[0];window.cancelAnimationFrame(o),o=window.requestAnimationFrame(()=>{let v,p;if("borderBoxSize"in m){const b=m.borderBoxSize,S=Array.isArray(b)?b[0]:b;v=S.inlineSize,p=S.blockSize}else v=i.offsetWidth,p=i.offsetHeight;c({width:v,height:p})})});return s.observe(i,{box:"border-box"}),()=>{window.cancelAnimationFrame(o),s.unobserve(i)}}else c(void 0)},[i]),r}A3(jp,"useSize");var R3=Object.defineProperty,Dl=(i,r)=>R3(i,"name",{value:r,configurable:!0}),kd="Switch",[j3,hN]=da(kd),[O3,Hd]=j3(kd);function Op(i){const{__scopeSwitch:r,checked:c,children:o,defaultChecked:s,disabled:f,form:m,name:v,onCheckedChange:p,required:b,value:S="on",internal_do_not_use_render:y}=i,[E,A]=bu({prop:c,defaultProp:s??!1,onChange:p,caller:kd}),[j,D]=x.useState(null),[L,Y]=x.useState(null),[G,k]=x.useState(null),V=j?!!m||!!j.closest("form"):!0,I={checked:E,setChecked:A,disabled:f,control:j,setControl:D,name:v,form:m,value:S,userClick:G,onUserClick:k,required:b,defaultChecked:s,isFormControl:V,bubbleInput:L,setBubbleInput:Y};return h.jsx(O3,{scope:r,...I,children:zp(y)?y(I):o})}Dl(Op,"SwitchProvider");var M3="SwitchTrigger",z3=x.forwardRef(Dl(function({__scopeSwitch:r,onClick:c,...o},s){const{control:f,form:m,value:v,disabled:p,checked:b,required:S,setControl:y,setChecked:E,onUserClick:A,isFormControl:j,bubbleInput:D}=Hd(M3,r),L=zt(s,y),Y=x.useRef(b);return x.useEffect(()=>{const G=m?f==null?void 0:f.ownerDocument.getElementById(m):f==null?void 0:f.form;if(G instanceof HTMLFormElement){const k=Dl(()=>E(Y.current),"reset");return G.addEventListener("reset",k),()=>G.removeEventListener("reset",k)}},[f,m,E]),h.jsx(Ke.button,{type:"button",role:"switch","aria-checked":b,"aria-required":S,"data-state":Ld(b),"data-disabled":p?"":void 0,disabled:p,value:v,...o,ref:L,onClick:dt(c,G=>{const k=G.isPropagationStopped();A({requestedChecked:!b,hasConsumerStoppedPropagation:k}),E(V=>!V),D&&j&&(k||G.stopPropagation())})})},"SwitchTrigger")),Mp=x.forwardRef(Dl(function(r,c){const{__scopeSwitch:o,name:s,checked:f,defaultChecked:m,required:v,disabled:p,value:b,onCheckedChange:S,form:y,...E}=r;return h.jsx(Op,{__scopeSwitch:o,checked:f,defaultChecked:m,disabled:p,required:v,onCheckedChange:S,name:s,form:y,value:b,internal_do_not_use_render:({isFormControl:A})=>h.jsxs(h.Fragment,{children:[h.jsx(z3,{...E,ref:c,__scopeSwitch:o}),A&&h.jsx(k3,{__scopeSwitch:o})]})})},"Switch")),D3="SwitchThumb",U3=x.forwardRef(Dl(function(r,c){const{__scopeSwitch:o,...s}=r,f=Hd(D3,o);return h.jsx(Ke.span,{"data-state":Ld(f.checked),"data-disabled":f.disabled?"":void 0,...s,ref:c})},"SwitchThumb")),B3="SwitchBubbleInput",k3=x.forwardRef(Dl(function({__scopeSwitch:r,onClick:c,...o},s){const{control:f,userClick:m,checked:v,defaultChecked:p,required:b,disabled:S,name:y,value:E,form:A,bubbleInput:j,setBubbleInput:D}=Hd(B3,r),L=zt(s,D),Y=jp(f),G=x.useRef(!1),k=x.useRef(v),V=x.useRef(m),I=x.useRef(null);x.useEffect(()=>{const T=j;if(!T)return;const z=window.HTMLInputElement.prototype,te=Object.getOwnPropertyDescriptor(z,"checked").set;if(!te)return;const W=k.current!==v;k.current=v;const P=m!==null&&m!==V.current;if(V.current=m,P)I.current=W?null:m,W&&te.call(T,v),T.dispatchEvent(new Event("click",{bubbles:!m.hasConsumerStoppedPropagation}));else if(W){const ne=I.current;I.current=null;const ue=(ne==null?void 0:ne.requestedChecked)===v;G.current=!0,te.call(T,v),T.dispatchEvent(new Event("click",{bubbles:!(ue&&ne.hasConsumerStoppedPropagation)})),G.current=!1}},[j,v,m]);const R=x.useRef(v);return h.jsx(Ke.input,{type:"checkbox","aria-hidden":!0,defaultChecked:p??R.current,required:b,disabled:S,name:y,value:E,form:A,...o,tabIndex:-1,ref:L,onClick:dt(c,T=>{G.current&&T.stopPropagation()}),style:{...o.style,...Y,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})},"SwitchBubbleInput"));function zp(i){return typeof i=="function"}Dl(zp,"isFunction");function Ld(i){return i?"checked":"unchecked"}Dl(Ld,"getState");const go=x.forwardRef(({className:i,...r},c)=>h.jsx(Mp,{className:Qe("peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border transition-colors disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-[var(--accent)] data-[state=checked]:border-[var(--accent)] data-[state=unchecked]:bg-[var(--bg-muted)] data-[state=unchecked]:border-[var(--border-color)]",i),...r,ref:c,children:h.jsx(U3,{className:Qe("pointer-events-none block h-3.5 w-3.5 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0.5")})}));go.displayName=Mp.displayName;const qd=({targetUrl:i="https://agy.961504.xyz",onSuccess:r,onCancel:c,embedded:o=!1})=>{const[s,f]=x.useState("ixvii0iv"),[m,v]=x.useState(""),[p,b]=x.useState(!1),[S,y]=x.useState(!0),[E,A]=x.useState(!1),[j,D]=x.useState(null),L=async Y=>{if(Y.preventDefault(),!s.trim()||!m){D("请输入用户名与访问密钥");return}A(!0),D(null);try{const G=await fetch("/api/auth/login",{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify({username:s.trim(),password:m,remember:S})}),k=await G.json();G.ok&&k.ok?r==null||r():D(k.message||"认证未通过,请检查密码")}catch{D("网络请求异常,请稍后重试")}finally{A(!1)}};return h.jsxs(Ol,{className:`w-full max-w-md p-6 space-y-5 ${o?"":"shadow-2xl"}`,children:[h.jsx("div",{className:"flex items-start justify-between gap-3 border-b hl-border pb-4",children:h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center border hl-border shrink-0",style:{backgroundColor:"var(--accent-soft)",color:"var(--accent)"},children:h.jsx(D2,{className:"w-5 h-5"})}),h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("h3",{className:"text-sm font-bold tracking-tight",children:"HomeLab 统一安全通行证"}),h.jsx(Jn,{variant:"success",children:"SSO 2.0"})]}),h.jsx("p",{className:"text-xs font-mono-num mt-0.5 truncate max-w-[260px]",style:{color:"var(--text-muted)"},children:i})]})]})}),h.jsxs("form",{onSubmit:L,className:"space-y-4",children:[h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("label",{className:"block text-xs font-semibold",style:{color:"var(--text-muted)"},children:"管理员账号 (Username)"}),h.jsxs(vo,{children:[h.jsx(X2,{className:"w-4 h-4 shrink-0",style:{color:"var(--text-subtle)"}}),h.jsx("input",{type:"text",autoComplete:"username",value:s,onChange:Y=>f(Y.target.value),placeholder:"输入管理员账号 (如 ixvii0iv)",className:"font-mono-num"})]})]}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("label",{className:"block text-xs font-semibold",style:{color:"var(--text-muted)"},children:"访问通行密钥 (Access Key)"}),h.jsx("span",{className:"text-[10px] font-mono-num",style:{color:"var(--text-subtle)"},children:"与 Mac mini 密码一致"})]}),h.jsxs(vo,{children:[h.jsx(p2,{className:"w-4 h-4 shrink-0",style:{color:"var(--text-subtle)"}}),h.jsx("input",{type:p?"text":"password",autoComplete:"current-password",autoFocus:!0,value:m,onChange:Y=>v(Y.target.value),placeholder:"输入访问密钥...",className:"font-mono-num"}),h.jsx("button",{type:"button",onClick:()=>b(!p),className:"p-1 rounded hover:opacity-80 cursor-pointer",style:{color:"var(--text-muted)"},title:p?"隐藏密码":"显示密码",children:p?h.jsx(c2,{className:"w-3.5 h-3.5"}):h.jsx(f2,{className:"w-3.5 h-3.5"})})]})]}),h.jsxs("div",{className:"flex items-center justify-between pt-1",children:[h.jsx("span",{className:"text-xs select-none",style:{color:"var(--text-muted)"},children:"在此设备保持 30 天免密通行 (*.961504.xyz)"}),h.jsx(go,{checked:S,onCheckedChange:y})]}),j&&h.jsx("div",{className:"px-3 py-2 rounded-lg text-xs font-medium border",style:{backgroundColor:"rgba(239, 68, 68, 0.1)",borderColor:"rgba(239, 68, 68, 0.3)",color:"#ef4444"},children:j}),h.jsxs("div",{className:"flex items-center justify-end gap-2.5 pt-2",children:[c&&h.jsx(nt,{type:"button",variant:"outline",onClick:c,children:"取消"}),h.jsxs(nt,{type:"submit",disabled:E,className:"px-4",children:[h.jsx(md,{className:"w-3.5 h-3.5"}),h.jsx("span",{children:E?"正在验证签名...":"解锁并进入工作台"})]})]})]})]})},H3=()=>{const{showAgyModal:i,setShowAgyModal:r,getEffectiveMode:c}=Pn(),[o,s]=x.useState(!1),[f,m]=x.useState(!1),v=c(),p=v==="lan"?"http://192.168.31.164:7681":v==="home10443"?"https://agy.home.961504.xyz:10443":"https://agy.961504.xyz";return x.useEffect(()=>{if(i){if(v==="lan"){m(!0),s(!0);return}s(!1),fetch("/api/auth/status",{credentials:"include"}).then(b=>b.json()).then(b=>{m(!!b.authenticated),s(!0)}).catch(()=>{m(!1),s(!0)})}},[i,v]),h.jsx(Ud,{open:i,onOpenChange:r,children:h.jsxs(Eo,{className:"w-[95vw] max-w-6xl h-[88vh] flex flex-col overflow-hidden p-0",children:[h.jsx(Co,{className:"sr-only",children:"AGY 云端工作台"}),h.jsx(No,{className:"sr-only",children:"M6 Mac mini 上的 24 小时 tmux 常驻 AI 编程终端"}),h.jsxs("div",{className:"px-4 py-2.5 border-b hl-border flex items-center justify-between hl-muted shrink-0",children:[h.jsxs("div",{className:"flex items-center gap-2.5",children:[h.jsx("img",{src:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/google-gemini.png",alt:"AGY",className:"w-4 h-4"}),h.jsx("span",{className:"text-xs font-mono-num font-medium",children:"AGY 云端工作台 · tmux 持久会话 (关窗不断连)"})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(nt,{variant:"outline",size:"sm",asChild:!0,children:h.jsx("a",{href:p,target:"_blank",rel:"noopener noreferrer",className:"font-mono-num",children:"新标签页全屏 ↗"})}),h.jsx(nt,{size:"sm",onClick:()=>r(!1),children:"收起终端"})]})]}),o?f?h.jsx("iframe",{src:p,title:"AGY Cloud Workbench",className:"w-full flex-1 bg-black border-0"}):h.jsx("div",{className:"flex-1 flex items-center justify-center p-4",style:{backgroundColor:"var(--bg-page)"},children:h.jsx(qd,{targetUrl:p,onSuccess:()=>m(!0),onCancel:()=>r(!1)})}):h.jsx("div",{className:"flex-1 flex items-center justify-center text-xs font-mono-num",style:{color:"var(--text-muted)"},children:"正在校验 HomeLab SSO 通行证..."})]})})};var si={},wf,W0;function L3(){return W0||(W0=1,wf=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then}),wf}var Tf={},jl={},ey;function ha(){if(ey)return jl;ey=1;let i;const r=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];return jl.getSymbolSize=function(o){if(!o)throw new Error('"version" cannot be null or undefined');if(o<1||o>40)throw new Error('"version" should be in range from 1 to 40');return o*4+17},jl.getSymbolTotalCodewords=function(o){return r[o]},jl.getBCHDigit=function(c){let o=0;for(;c!==0;)o++,c>>>=1;return o},jl.setToSJISFunction=function(o){if(typeof o!="function")throw new Error('"toSJISFunc" is not a valid function.');i=o},jl.isKanjiModeEnabled=function(){return typeof i<"u"},jl.toSJIS=function(o){return i(o)},jl}var _f={},ty;function Gd(){return ty||(ty=1,(function(i){i.L={bit:1},i.M={bit:0},i.Q={bit:3},i.H={bit:2};function r(c){if(typeof c!="string")throw new Error("Param is not a string");switch(c.toLowerCase()){case"l":case"low":return i.L;case"m":case"medium":return i.M;case"q":case"quartile":return i.Q;case"h":case"high":return i.H;default:throw new Error("Unknown EC Level: "+c)}}i.isValid=function(o){return o&&typeof o.bit<"u"&&o.bit>=0&&o.bit<4},i.from=function(o,s){if(i.isValid(o))return o;try{return r(o)}catch{return s}}})(_f)),_f}var Af,ny;function q3(){if(ny)return Af;ny=1;function i(){this.buffer=[],this.length=0}return i.prototype={get:function(r){const c=Math.floor(r/8);return(this.buffer[c]>>>7-r%8&1)===1},put:function(r,c){for(let o=0;o<c;o++)this.putBit((r>>>c-o-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){const c=Math.floor(this.length/8);this.buffer.length<=c&&this.buffer.push(0),r&&(this.buffer[c]|=128>>>this.length%8),this.length++}},Af=i,Af}var Rf,ly;function G3(){if(ly)return Rf;ly=1;function i(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}return i.prototype.set=function(r,c,o,s){const f=r*this.size+c;this.data[f]=o,s&&(this.reservedBit[f]=!0)},i.prototype.get=function(r,c){return this.data[r*this.size+c]},i.prototype.xor=function(r,c,o){this.data[r*this.size+c]^=o},i.prototype.isReserved=function(r,c){return this.reservedBit[r*this.size+c]},Rf=i,Rf}var jf={},ay;function Y3(){return ay||(ay=1,(function(i){const r=ha().getSymbolSize;i.getRowColCoords=function(o){if(o===1)return[];const s=Math.floor(o/7)+2,f=r(o),m=f===145?26:Math.ceil((f-13)/(2*s-2))*2,v=[f-7];for(let p=1;p<s-1;p++)v[p]=v[p-1]-m;return v.push(6),v.reverse()},i.getPositions=function(o){const s=[],f=i.getRowColCoords(o),m=f.length;for(let v=0;v<m;v++)for(let p=0;p<m;p++)v===0&&p===0||v===0&&p===m-1||v===m-1&&p===0||s.push([f[v],f[p]]);return s}})(jf)),jf}var Of={},iy;function V3(){if(iy)return Of;iy=1;const i=ha().getSymbolSize,r=7;return Of.getPositions=function(o){const s=i(o);return[[0,0],[s-r,0],[0,s-r]]},Of}var Mf={},uy;function Q3(){return uy||(uy=1,(function(i){i.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const r={N1:3,N2:3,N3:40,N4:10};i.isValid=function(s){return s!=null&&s!==""&&!isNaN(s)&&s>=0&&s<=7},i.from=function(s){return i.isValid(s)?parseInt(s,10):void 0},i.getPenaltyN1=function(s){const f=s.size;let m=0,v=0,p=0,b=null,S=null;for(let y=0;y<f;y++){v=p=0,b=S=null;for(let E=0;E<f;E++){let A=s.get(y,E);A===b?v++:(v>=5&&(m+=r.N1+(v-5)),b=A,v=1),A=s.get(E,y),A===S?p++:(p>=5&&(m+=r.N1+(p-5)),S=A,p=1)}v>=5&&(m+=r.N1+(v-5)),p>=5&&(m+=r.N1+(p-5))}return m},i.getPenaltyN2=function(s){const f=s.size;let m=0;for(let v=0;v<f-1;v++)for(let p=0;p<f-1;p++){const b=s.get(v,p)+s.get(v,p+1)+s.get(v+1,p)+s.get(v+1,p+1);(b===4||b===0)&&m++}return m*r.N2},i.getPenaltyN3=function(s){const f=s.size;let m=0,v=0,p=0;for(let b=0;b<f;b++){v=p=0;for(let S=0;S<f;S++)v=v<<1&2047|s.get(b,S),S>=10&&(v===1488||v===93)&&m++,p=p<<1&2047|s.get(S,b),S>=10&&(p===1488||p===93)&&m++}return m*r.N3},i.getPenaltyN4=function(s){let f=0;const m=s.data.length;for(let p=0;p<m;p++)f+=s.data[p];return Math.abs(Math.ceil(f*100/m/5)-10)*r.N4};function c(o,s,f){switch(o){case i.Patterns.PATTERN000:return(s+f)%2===0;case i.Patterns.PATTERN001:return s%2===0;case i.Patterns.PATTERN010:return f%3===0;case i.Patterns.PATTERN011:return(s+f)%3===0;case i.Patterns.PATTERN100:return(Math.floor(s/2)+Math.floor(f/3))%2===0;case i.Patterns.PATTERN101:return s*f%2+s*f%3===0;case i.Patterns.PATTERN110:return(s*f%2+s*f%3)%2===0;case i.Patterns.PATTERN111:return(s*f%3+(s+f)%2)%2===0;default:throw new Error("bad maskPattern:"+o)}}i.applyMask=function(s,f){const m=f.size;for(let v=0;v<m;v++)for(let p=0;p<m;p++)f.isReserved(p,v)||f.xor(p,v,c(s,p,v))},i.getBestMask=function(s,f){const m=Object.keys(i.Patterns).length;let v=0,p=1/0;for(let b=0;b<m;b++){f(b),i.applyMask(b,s);const S=i.getPenaltyN1(s)+i.getPenaltyN2(s)+i.getPenaltyN3(s)+i.getPenaltyN4(s);i.applyMask(b,s),S<p&&(p=S,v=b)}return v}})(Mf)),Mf}var uo={},ry;function Dp(){if(ry)return uo;ry=1;const i=Gd(),r=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],c=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];return uo.getBlocksCount=function(s,f){switch(f){case i.L:return r[(s-1)*4+0];case i.M:return r[(s-1)*4+1];case i.Q:return r[(s-1)*4+2];case i.H:return r[(s-1)*4+3];default:return}},uo.getTotalCodewordsCount=function(s,f){switch(f){case i.L:return c[(s-1)*4+0];case i.M:return c[(s-1)*4+1];case i.Q:return c[(s-1)*4+2];case i.H:return c[(s-1)*4+3];default:return}},uo}var zf={},vu={},oy;function X3(){if(oy)return vu;oy=1;const i=new Uint8Array(512),r=new Uint8Array(256);return(function(){let o=1;for(let s=0;s<255;s++)i[s]=o,r[o]=s,o<<=1,o&256&&(o^=285);for(let s=255;s<512;s++)i[s]=i[s-255]})(),vu.log=function(o){if(o<1)throw new Error("log("+o+")");return r[o]},vu.exp=function(o){return i[o]},vu.mul=function(o,s){return o===0||s===0?0:i[r[o]+r[s]]},vu}var cy;function Z3(){return cy||(cy=1,(function(i){const r=X3();i.mul=function(o,s){const f=new Uint8Array(o.length+s.length-1);for(let m=0;m<o.length;m++)for(let v=0;v<s.length;v++)f[m+v]^=r.mul(o[m],s[v]);return f},i.mod=function(o,s){let f=new Uint8Array(o);for(;f.length-s.length>=0;){const m=f[0];for(let p=0;p<s.length;p++)f[p]^=r.mul(s[p],m);let v=0;for(;v<f.length&&f[v]===0;)v++;f=f.slice(v)}return f},i.generateECPolynomial=function(o){let s=new Uint8Array([1]);for(let f=0;f<o;f++)s=i.mul(s,new Uint8Array([1,r.exp(f)]));return s}})(zf)),zf}var Df,sy;function K3(){if(sy)return Df;sy=1;const i=Z3();function r(c){this.genPoly=void 0,this.degree=c,this.degree&&this.initialize(this.degree)}return r.prototype.initialize=function(o){this.degree=o,this.genPoly=i.generateECPolynomial(this.degree)},r.prototype.encode=function(o){if(!this.genPoly)throw new Error("Encoder not initialized");const s=new Uint8Array(o.length+this.degree);s.set(o);const f=i.mod(s,this.genPoly),m=this.degree-f.length;if(m>0){const v=new Uint8Array(this.degree);return v.set(f,m),v}return f},Df=r,Df}var Uf={},Bf={},kf={},fy;function Up(){return fy||(fy=1,kf.isValid=function(r){return!isNaN(r)&&r>=1&&r<=40}),kf}var jn={},dy;function Bp(){if(dy)return jn;dy=1;const i="[0-9]+",r="[A-Z $%*+\\-./:]+";let c="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";c=c.replace(/u/g,"\\u");const o="(?:(?![A-Z0-9 $%*+\\-./:]|"+c+`)(?:.|[\r
|
||
]))+`;jn.KANJI=new RegExp(c,"g"),jn.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),jn.BYTE=new RegExp(o,"g"),jn.NUMERIC=new RegExp(i,"g"),jn.ALPHANUMERIC=new RegExp(r,"g");const s=new RegExp("^"+c+"$"),f=new RegExp("^"+i+"$"),m=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");return jn.testKanji=function(p){return s.test(p)},jn.testNumeric=function(p){return f.test(p)},jn.testAlphanumeric=function(p){return m.test(p)},jn}var my;function va(){return my||(my=1,(function(i){const r=Up(),c=Bp();i.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},i.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},i.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},i.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},i.MIXED={bit:-1},i.getCharCountIndicator=function(f,m){if(!f.ccBits)throw new Error("Invalid mode: "+f);if(!r.isValid(m))throw new Error("Invalid version: "+m);return m>=1&&m<10?f.ccBits[0]:m<27?f.ccBits[1]:f.ccBits[2]},i.getBestModeForData=function(f){return c.testNumeric(f)?i.NUMERIC:c.testAlphanumeric(f)?i.ALPHANUMERIC:c.testKanji(f)?i.KANJI:i.BYTE},i.toString=function(f){if(f&&f.id)return f.id;throw new Error("Invalid mode")},i.isValid=function(f){return f&&f.bit&&f.ccBits};function o(s){if(typeof s!="string")throw new Error("Param is not a string");switch(s.toLowerCase()){case"numeric":return i.NUMERIC;case"alphanumeric":return i.ALPHANUMERIC;case"kanji":return i.KANJI;case"byte":return i.BYTE;default:throw new Error("Unknown mode: "+s)}}i.from=function(f,m){if(i.isValid(f))return f;try{return o(f)}catch{return m}}})(Bf)),Bf}var hy;function I3(){return hy||(hy=1,(function(i){const r=ha(),c=Dp(),o=Gd(),s=va(),f=Up(),m=7973,v=r.getBCHDigit(m);function p(E,A,j){for(let D=1;D<=40;D++)if(A<=i.getCapacity(D,j,E))return D}function b(E,A){return s.getCharCountIndicator(E,A)+4}function S(E,A){let j=0;return E.forEach(function(D){const L=b(D.mode,A);j+=L+D.getBitsLength()}),j}function y(E,A){for(let j=1;j<=40;j++)if(S(E,j)<=i.getCapacity(j,A,s.MIXED))return j}i.from=function(A,j){return f.isValid(A)?parseInt(A,10):j},i.getCapacity=function(A,j,D){if(!f.isValid(A))throw new Error("Invalid QR Code version");typeof D>"u"&&(D=s.BYTE);const L=r.getSymbolTotalCodewords(A),Y=c.getTotalCodewordsCount(A,j),G=(L-Y)*8;if(D===s.MIXED)return G;const k=G-b(D,A);switch(D){case s.NUMERIC:return Math.floor(k/10*3);case s.ALPHANUMERIC:return Math.floor(k/11*2);case s.KANJI:return Math.floor(k/13);case s.BYTE:default:return Math.floor(k/8)}},i.getBestVersionForData=function(A,j){let D;const L=o.from(j,o.M);if(Array.isArray(A)){if(A.length>1)return y(A,L);if(A.length===0)return 1;D=A[0]}else D=A;return p(D.mode,D.getLength(),L)},i.getEncodedBits=function(A){if(!f.isValid(A)||A<7)throw new Error("Invalid QR Code version");let j=A<<12;for(;r.getBCHDigit(j)-v>=0;)j^=m<<r.getBCHDigit(j)-v;return A<<12|j}})(Uf)),Uf}var Hf={},vy;function J3(){if(vy)return Hf;vy=1;const i=ha(),r=1335,c=21522,o=i.getBCHDigit(r);return Hf.getEncodedBits=function(f,m){const v=f.bit<<3|m;let p=v<<10;for(;i.getBCHDigit(p)-o>=0;)p^=r<<i.getBCHDigit(p)-o;return(v<<10|p)^c},Hf}var Lf={},qf,gy;function F3(){if(gy)return qf;gy=1;const i=va();function r(c){this.mode=i.NUMERIC,this.data=c.toString()}return r.getBitsLength=function(o){return 10*Math.floor(o/3)+(o%3?o%3*3+1:0)},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(o){let s,f,m;for(s=0;s+3<=this.data.length;s+=3)f=this.data.substr(s,3),m=parseInt(f,10),o.put(m,10);const v=this.data.length-s;v>0&&(f=this.data.substr(s),m=parseInt(f,10),o.put(m,v*3+1))},qf=r,qf}var Gf,yy;function P3(){if(yy)return Gf;yy=1;const i=va(),r=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function c(o){this.mode=i.ALPHANUMERIC,this.data=o}return c.getBitsLength=function(s){return 11*Math.floor(s/2)+6*(s%2)},c.prototype.getLength=function(){return this.data.length},c.prototype.getBitsLength=function(){return c.getBitsLength(this.data.length)},c.prototype.write=function(s){let f;for(f=0;f+2<=this.data.length;f+=2){let m=r.indexOf(this.data[f])*45;m+=r.indexOf(this.data[f+1]),s.put(m,11)}this.data.length%2&&s.put(r.indexOf(this.data[f]),6)},Gf=c,Gf}var Yf,py;function $3(){if(py)return Yf;py=1;const i=va();function r(c){this.mode=i.BYTE,typeof c=="string"?this.data=new TextEncoder().encode(c):this.data=new Uint8Array(c)}return r.getBitsLength=function(o){return o*8},r.prototype.getLength=function(){return this.data.length},r.prototype.getBitsLength=function(){return r.getBitsLength(this.data.length)},r.prototype.write=function(c){for(let o=0,s=this.data.length;o<s;o++)c.put(this.data[o],8)},Yf=r,Yf}var Vf,by;function W3(){if(by)return Vf;by=1;const i=va(),r=ha();function c(o){this.mode=i.KANJI,this.data=o}return c.getBitsLength=function(s){return s*13},c.prototype.getLength=function(){return this.data.length},c.prototype.getBitsLength=function(){return c.getBitsLength(this.data.length)},c.prototype.write=function(o){let s;for(s=0;s<this.data.length;s++){let f=r.toSJIS(this.data[s]);if(f>=33088&&f<=40956)f-=33088;else if(f>=57408&&f<=60351)f-=49472;else throw new Error("Invalid SJIS character: "+this.data[s]+`
|
||
Make sure your charset is UTF-8`);f=(f>>>8&255)*192+(f&255),o.put(f,13)}},Vf=c,Vf}var Qf={exports:{}},xy;function eN(){return xy||(xy=1,(function(i){var r={single_source_shortest_paths:function(c,o,s){var f={},m={};m[o]=0;var v=r.PriorityQueue.make();v.push(o,0);for(var p,b,S,y,E,A,j,D,L;!v.empty();){p=v.pop(),b=p.value,y=p.cost,E=c[b]||{};for(S in E)E.hasOwnProperty(S)&&(A=E[S],j=y+A,D=m[S],L=typeof m[S]>"u",(L||D>j)&&(m[S]=j,v.push(S,j),f[S]=b))}if(typeof s<"u"&&typeof m[s]>"u"){var Y=["Could not find a path from ",o," to ",s,"."].join("");throw new Error(Y)}return f},extract_shortest_path_from_predecessor_list:function(c,o){for(var s=[],f=o;f;)s.push(f),c[f],f=c[f];return s.reverse(),s},find_path:function(c,o,s){var f=r.single_source_shortest_paths(c,o,s);return r.extract_shortest_path_from_predecessor_list(f,s)},PriorityQueue:{make:function(c){var o=r.PriorityQueue,s={},f;c=c||{};for(f in o)o.hasOwnProperty(f)&&(s[f]=o[f]);return s.queue=[],s.sorter=c.sorter||o.default_sorter,s},default_sorter:function(c,o){return c.cost-o.cost},push:function(c,o){var s={value:c,cost:o};this.queue.push(s),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};i.exports=r})(Qf)),Qf.exports}var Sy;function tN(){return Sy||(Sy=1,(function(i){const r=va(),c=F3(),o=P3(),s=$3(),f=W3(),m=Bp(),v=ha(),p=eN();function b(Y){return unescape(encodeURIComponent(Y)).length}function S(Y,G,k){const V=[];let I;for(;(I=Y.exec(k))!==null;)V.push({data:I[0],index:I.index,mode:G,length:I[0].length});return V}function y(Y){const G=S(m.NUMERIC,r.NUMERIC,Y),k=S(m.ALPHANUMERIC,r.ALPHANUMERIC,Y);let V,I;return v.isKanjiModeEnabled()?(V=S(m.BYTE,r.BYTE,Y),I=S(m.KANJI,r.KANJI,Y)):(V=S(m.BYTE_KANJI,r.BYTE,Y),I=[]),G.concat(k,V,I).sort(function(T,z){return T.index-z.index}).map(function(T){return{data:T.data,mode:T.mode,length:T.length}})}function E(Y,G){switch(G){case r.NUMERIC:return c.getBitsLength(Y);case r.ALPHANUMERIC:return o.getBitsLength(Y);case r.KANJI:return f.getBitsLength(Y);case r.BYTE:return s.getBitsLength(Y)}}function A(Y){return Y.reduce(function(G,k){const V=G.length-1>=0?G[G.length-1]:null;return V&&V.mode===k.mode?(G[G.length-1].data+=k.data,G):(G.push(k),G)},[])}function j(Y){const G=[];for(let k=0;k<Y.length;k++){const V=Y[k];switch(V.mode){case r.NUMERIC:G.push([V,{data:V.data,mode:r.ALPHANUMERIC,length:V.length},{data:V.data,mode:r.BYTE,length:V.length}]);break;case r.ALPHANUMERIC:G.push([V,{data:V.data,mode:r.BYTE,length:V.length}]);break;case r.KANJI:G.push([V,{data:V.data,mode:r.BYTE,length:b(V.data)}]);break;case r.BYTE:G.push([{data:V.data,mode:r.BYTE,length:b(V.data)}])}}return G}function D(Y,G){const k={},V={start:{}};let I=["start"];for(let R=0;R<Y.length;R++){const T=Y[R],z=[];for(let Z=0;Z<T.length;Z++){const te=T[Z],W=""+R+Z;z.push(W),k[W]={node:te,lastCount:0},V[W]={};for(let P=0;P<I.length;P++){const ne=I[P];k[ne]&&k[ne].node.mode===te.mode?(V[ne][W]=E(k[ne].lastCount+te.length,te.mode)-E(k[ne].lastCount,te.mode),k[ne].lastCount+=te.length):(k[ne]&&(k[ne].lastCount=te.length),V[ne][W]=E(te.length,te.mode)+4+r.getCharCountIndicator(te.mode,G))}}I=z}for(let R=0;R<I.length;R++)V[I[R]].end=0;return{map:V,table:k}}function L(Y,G){let k;const V=r.getBestModeForData(Y);if(k=r.from(G,V),k!==r.BYTE&&k.bit<V.bit)throw new Error('"'+Y+'" cannot be encoded with mode '+r.toString(k)+`.
|
||
Suggested mode is: `+r.toString(V));switch(k===r.KANJI&&!v.isKanjiModeEnabled()&&(k=r.BYTE),k){case r.NUMERIC:return new c(Y);case r.ALPHANUMERIC:return new o(Y);case r.KANJI:return new f(Y);case r.BYTE:return new s(Y)}}i.fromArray=function(G){return G.reduce(function(k,V){return typeof V=="string"?k.push(L(V,null)):V.data&&k.push(L(V.data,V.mode)),k},[])},i.fromString=function(G,k){const V=y(G,v.isKanjiModeEnabled()),I=j(V),R=D(I,k),T=p.find_path(R.map,"start","end"),z=[];for(let Z=1;Z<T.length-1;Z++)z.push(R.table[T[Z]].node);return i.fromArray(A(z))},i.rawSplit=function(G){return i.fromArray(y(G,v.isKanjiModeEnabled()))}})(Lf)),Lf}var Ey;function nN(){if(Ey)return Tf;Ey=1;const i=ha(),r=Gd(),c=q3(),o=G3(),s=Y3(),f=V3(),m=Q3(),v=Dp(),p=K3(),b=I3(),S=J3(),y=va(),E=tN();function A(R,T){const z=R.size,Z=f.getPositions(T);for(let te=0;te<Z.length;te++){const W=Z[te][0],P=Z[te][1];for(let ne=-1;ne<=7;ne++)if(!(W+ne<=-1||z<=W+ne))for(let ue=-1;ue<=7;ue++)P+ue<=-1||z<=P+ue||(ne>=0&&ne<=6&&(ue===0||ue===6)||ue>=0&&ue<=6&&(ne===0||ne===6)||ne>=2&&ne<=4&&ue>=2&&ue<=4?R.set(W+ne,P+ue,!0,!0):R.set(W+ne,P+ue,!1,!0))}}function j(R){const T=R.size;for(let z=8;z<T-8;z++){const Z=z%2===0;R.set(z,6,Z,!0),R.set(6,z,Z,!0)}}function D(R,T){const z=s.getPositions(T);for(let Z=0;Z<z.length;Z++){const te=z[Z][0],W=z[Z][1];for(let P=-2;P<=2;P++)for(let ne=-2;ne<=2;ne++)P===-2||P===2||ne===-2||ne===2||P===0&&ne===0?R.set(te+P,W+ne,!0,!0):R.set(te+P,W+ne,!1,!0)}}function L(R,T){const z=R.size,Z=b.getEncodedBits(T);let te,W,P;for(let ne=0;ne<18;ne++)te=Math.floor(ne/3),W=ne%3+z-8-3,P=(Z>>ne&1)===1,R.set(te,W,P,!0),R.set(W,te,P,!0)}function Y(R,T,z){const Z=R.size,te=S.getEncodedBits(T,z);let W,P;for(W=0;W<15;W++)P=(te>>W&1)===1,W<6?R.set(W,8,P,!0):W<8?R.set(W+1,8,P,!0):R.set(Z-15+W,8,P,!0),W<8?R.set(8,Z-W-1,P,!0):W<9?R.set(8,15-W-1+1,P,!0):R.set(8,15-W-1,P,!0);R.set(Z-8,8,1,!0)}function G(R,T){const z=R.size;let Z=-1,te=z-1,W=7,P=0;for(let ne=z-1;ne>0;ne-=2)for(ne===6&&ne--;;){for(let ue=0;ue<2;ue++)if(!R.isReserved(te,ne-ue)){let ge=!1;P<T.length&&(ge=(T[P]>>>W&1)===1),R.set(te,ne-ue,ge),W--,W===-1&&(P++,W=7)}if(te+=Z,te<0||z<=te){te-=Z,Z=-Z;break}}}function k(R,T,z){const Z=new c;z.forEach(function(ue){Z.put(ue.mode.bit,4),Z.put(ue.getLength(),y.getCharCountIndicator(ue.mode,R)),ue.write(Z)});const te=i.getSymbolTotalCodewords(R),W=v.getTotalCodewordsCount(R,T),P=(te-W)*8;for(Z.getLengthInBits()+4<=P&&Z.put(0,4);Z.getLengthInBits()%8!==0;)Z.putBit(0);const ne=(P-Z.getLengthInBits())/8;for(let ue=0;ue<ne;ue++)Z.put(ue%2?17:236,8);return V(Z,R,T)}function V(R,T,z){const Z=i.getSymbolTotalCodewords(T),te=v.getTotalCodewordsCount(T,z),W=Z-te,P=v.getBlocksCount(T,z),ne=Z%P,ue=P-ne,ge=Math.floor(Z/P),F=Math.floor(W/P),ae=F+1,ce=ge-F,xe=new p(ce);let K=0;const Se=new Array(P),J=new Array(P);let me=0;const N=new Uint8Array(R.buffer);for(let ie=0;ie<P;ie++){const Ee=ie<ue?F:ae;Se[ie]=N.slice(K,K+Ee),J[ie]=xe.encode(Se[ie]),K+=Ee,me=Math.max(me,Ee)}const U=new Uint8Array(Z);let $=0,ee,he;for(ee=0;ee<me;ee++)for(he=0;he<P;he++)ee<Se[he].length&&(U[$++]=Se[he][ee]);for(ee=0;ee<ce;ee++)for(he=0;he<P;he++)U[$++]=J[he][ee];return U}function I(R,T,z,Z){let te;if(Array.isArray(R))te=E.fromArray(R);else if(typeof R=="string"){let ge=T;if(!ge){const F=E.rawSplit(R);ge=b.getBestVersionForData(F,z)}te=E.fromString(R,ge||40)}else throw new Error("Invalid data");const W=b.getBestVersionForData(te,z);if(!W)throw new Error("The amount of data is too big to be stored in a QR Code");if(!T)T=W;else if(T<W)throw new Error(`
|
||
The chosen QR Code version cannot contain this amount of data.
|
||
Minimum version required to store current data is: `+W+`.
|
||
`);const P=k(T,z,te),ne=i.getSymbolSize(T),ue=new o(ne);return A(ue,T),j(ue),D(ue,T),Y(ue,z,0),T>=7&&L(ue,T),G(ue,P),isNaN(Z)&&(Z=m.getBestMask(ue,Y.bind(null,ue,z))),m.applyMask(Z,ue),Y(ue,z,Z),{modules:ue,version:T,errorCorrectionLevel:z,maskPattern:Z,segments:te}}return Tf.create=function(T,z){if(typeof T>"u"||T==="")throw new Error("No input text");let Z=r.M,te,W;return typeof z<"u"&&(Z=r.from(z.errorCorrectionLevel,r.M),te=b.from(z.version),W=m.from(z.maskPattern),z.toSJISFunc&&i.setToSJISFunction(z.toSJISFunc)),I(T,te,Z,W)},Tf}var Xf={},Zf={},Cy;function kp(){return Cy||(Cy=1,(function(i){function r(c){if(typeof c=="number"&&(c=c.toString()),typeof c!="string")throw new Error("Color should be defined as hex string");let o=c.slice().replace("#","").split("");if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+c);(o.length===3||o.length===4)&&(o=Array.prototype.concat.apply([],o.map(function(f){return[f,f]}))),o.length===6&&o.push("F","F");const s=parseInt(o.join(""),16);return{r:s>>24&255,g:s>>16&255,b:s>>8&255,a:s&255,hex:"#"+o.slice(0,6).join("")}}i.getOptions=function(o){o||(o={}),o.color||(o.color={});const s=typeof o.margin>"u"||o.margin===null||o.margin<0?4:o.margin,f=o.width&&o.width>=21?o.width:void 0,m=o.scale||4;return{width:f,scale:f?4:m,margin:s,color:{dark:r(o.color.dark||"#000000ff"),light:r(o.color.light||"#ffffffff")},type:o.type,rendererOpts:o.rendererOpts||{}}},i.getScale=function(o,s){return s.width&&s.width>=o+s.margin*2?s.width/(o+s.margin*2):s.scale},i.getImageWidth=function(o,s){const f=i.getScale(o,s);return Math.floor((o+s.margin*2)*f)},i.qrToImageData=function(o,s,f){const m=s.modules.size,v=s.modules.data,p=i.getScale(m,f),b=Math.floor((m+f.margin*2)*p),S=f.margin*p,y=[f.color.light,f.color.dark];for(let E=0;E<b;E++)for(let A=0;A<b;A++){let j=(E*b+A)*4,D=f.color.light;if(E>=S&&A>=S&&E<b-S&&A<b-S){const L=Math.floor((E-S)/p),Y=Math.floor((A-S)/p);D=y[v[L*m+Y]?1:0]}o[j++]=D.r,o[j++]=D.g,o[j++]=D.b,o[j]=D.a}}})(Zf)),Zf}var Ny;function lN(){return Ny||(Ny=1,(function(i){const r=kp();function c(s,f,m){s.clearRect(0,0,f.width,f.height),f.style||(f.style={}),f.height=m,f.width=m,f.style.height=m+"px",f.style.width=m+"px"}function o(){try{return document.createElement("canvas")}catch{throw new Error("You need to specify a canvas element")}}i.render=function(f,m,v){let p=v,b=m;typeof p>"u"&&(!m||!m.getContext)&&(p=m,m=void 0),m||(b=o()),p=r.getOptions(p);const S=r.getImageWidth(f.modules.size,p),y=b.getContext("2d"),E=y.createImageData(S,S);return r.qrToImageData(E.data,f,p),c(y,b,S),y.putImageData(E,0,0),b},i.renderToDataURL=function(f,m,v){let p=v;typeof p>"u"&&(!m||!m.getContext)&&(p=m,m=void 0),p||(p={});const b=i.render(f,m,p),S=p.type||"image/png",y=p.rendererOpts||{};return b.toDataURL(S,y.quality)}})(Xf)),Xf}var Kf={},wy;function aN(){if(wy)return Kf;wy=1;const i=kp();function r(s,f){const m=s.a/255,v=f+'="'+s.hex+'"';return m<1?v+" "+f+'-opacity="'+m.toFixed(2).slice(1)+'"':v}function c(s,f,m){let v=s+f;return typeof m<"u"&&(v+=" "+m),v}function o(s,f,m){let v="",p=0,b=!1,S=0;for(let y=0;y<s.length;y++){const E=Math.floor(y%f),A=Math.floor(y/f);!E&&!b&&(b=!0),s[y]?(S++,y>0&&E>0&&s[y-1]||(v+=b?c("M",E+m,.5+A+m):c("m",p,0),p=0,b=!1),E+1<f&&s[y+1]||(v+=c("h",S),S=0)):p++}return v}return Kf.render=function(f,m,v){const p=i.getOptions(m),b=f.modules.size,S=f.modules.data,y=b+p.margin*2,E=p.color.light.a?"<path "+r(p.color.light,"fill")+' d="M0 0h'+y+"v"+y+'H0z"/>':"",A="<path "+r(p.color.dark,"stroke")+' d="'+o(S,b,p.margin)+'"/>',j='viewBox="0 0 '+y+" "+y+'"',L='<svg xmlns="http://www.w3.org/2000/svg" '+(p.width?'width="'+p.width+'" height="'+p.width+'" ':"")+j+' shape-rendering="crispEdges">'+E+A+`</svg>
|
||
`;return typeof v=="function"&&v(null,L),L},Kf}var Ty;function iN(){if(Ty)return si;Ty=1;const i=L3(),r=nN(),c=lN(),o=aN();function s(f,m,v,p,b){const S=[].slice.call(arguments,1),y=S.length,E=typeof S[y-1]=="function";if(!E&&!i())throw new Error("Callback required as last argument");if(E){if(y<2)throw new Error("Too few arguments provided");y===2?(b=v,v=m,m=p=void 0):y===3&&(m.getContext&&typeof b>"u"?(b=p,p=void 0):(b=p,p=v,v=m,m=void 0))}else{if(y<1)throw new Error("Too few arguments provided");return y===1?(v=m,m=p=void 0):y===2&&!m.getContext&&(p=v,v=m,m=void 0),new Promise(function(A,j){try{const D=r.create(v,p);A(f(D,m,p))}catch(D){j(D)}})}try{const A=r.create(v,p);b(null,f(A,m,p))}catch(A){b(A)}}return si.create=r.create,si.toCanvas=s.bind(null,c.render),si.toDataURL=s.bind(null,c.renderToDataURL),si.toString=s.bind(null,function(f,m,v){return o.render(f,v)}),si}var uN=iN();const If=sd(uN),rN=()=>{const{showWechatModal:i,setShowWechatModal:r,showToast:c,fetchTelemetry:o}=Pn(),[s,f]=x.useState(null),[m,v]=x.useState(""),[p,b]=x.useState(!1),[S,y]=x.useState(""),[E,A]=x.useState(!1),j=async()=>{var k;b(!0);try{const I=await(await fetch("/api/clawbot/qrcode",{method:"POST"})).json();f(I);const R=(k=I==null?void 0:I.login)==null?void 0:k.qrcode_url;if(R){const T=await If.toDataURL(R,{width:240,margin:2,color:{dark:"#09090b",light:"#ffffff"}});v(T)}}catch{c("获取微信 ClawBot 二维码失败")}finally{b(!1)}};x.useEffect(()=>{if(!i)return;let k=!1;(async()=>{var R,T,z;try{const te=await(await fetch("/api/clawbot/status")).json();if(k)return;if(f(te),!te.connected&&(!((R=te.login)!=null&&R.active)||!((T=te.login)!=null&&T.qrcode_url)))await j();else if((z=te.login)!=null&&z.qrcode_url){const W=await If.toDataURL(te.login.qrcode_url,{width:240,margin:2,color:{dark:"#09090b",light:"#ffffff"}});k||v(W)}}catch{}})();const I=setInterval(async()=>{var R;try{const T=await fetch("/api/clawbot/status");if(!T.ok)return;const z=await T.json();if(k)return;if(f(z),(R=z.login)!=null&&R.qrcode_url){const Z=await If.toDataURL(z.login.qrcode_url,{width:240,margin:2,color:{dark:"#09090b",light:"#ffffff"}});k||v(Z)}}catch{}},1500);return()=>{k=!0,clearInterval(I)}},[i]);const D=async k=>{if(k.preventDefault(),!!S.trim()){A(!0);try{const I=await(await fetch("/api/clawbot/verify",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({code:S.trim()})})).json();f(I),y(""),c("配对码已提交,正在等待微信验证...")}catch{c("配对码提交失败")}finally{A(!1)}}},L=async()=>{try{const V=await(await fetch("/api/clawbot/disconnect",{method:"POST"})).json();f(V),v(""),o(),c("已断开微信 ClawBot 连接")}catch{c("断开失败")}},Y=!!(s!=null&&s.connected),G=s==null?void 0:s.login;return h.jsx(Ud,{open:i,onOpenChange:r,children:h.jsxs(Eo,{className:"max-w-lg p-6 space-y-5",children:[h.jsx("div",{className:"flex items-start justify-between gap-3 border-b hl-border pb-4",children:h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx("div",{className:"w-10 h-10 rounded-xl flex items-center justify-center border hl-border shrink-0",style:{backgroundColor:"rgba(16, 185, 129, 0.14)",color:"var(--success)"},children:h.jsx(My,{className:"w-5 h-5"})}),h.jsxs("div",{children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Co,{className:"text-sm font-bold",children:"微信 ClawBot · M6 Mac mini 直连通道"}),h.jsx(Jn,{variant:Y?"success":"accent",children:Y?"已连接在线":"扫码绑定"})]}),h.jsx(No,{className:"text-xs font-mono-num mt-0.5",children:"@tencent-weixin/openclaw-weixin · ilinkai.weixin.qq.com"})]})]})}),Y?h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"p-4 rounded-xl border flex items-center justify-between",style:{backgroundColor:"var(--success-soft)",borderColor:"rgba(16, 185, 129, 0.3)"},children:[h.jsxs("div",{className:"flex items-center gap-3",children:[h.jsx(r2,{className:"w-5 h-5 shrink-0",style:{color:"var(--success)"}}),h.jsxs("div",{children:[h.jsx("div",{className:"text-xs font-bold",children:"微信 ClawBot 长轮询守护线程运行中"}),h.jsxs("div",{className:"text-[11px] font-mono-num mt-0.5",style:{color:"var(--text-muted)"},children:["Bot ID: ",s==null?void 0:s.bot_id," · 累计收发: ",(s==null?void 0:s.msg_count)??0," 条"]})]})]}),h.jsxs(nt,{variant:"outline",size:"sm",onClick:L,children:[h.jsx(V2,{className:"w-3.5 h-3.5"}),h.jsx("span",{children:"重新绑定"})]})]}),h.jsxs("div",{className:"p-4 rounded-xl hl-muted border hl-border space-y-2.5 text-xs",children:[h.jsx("div",{className:"font-semibold",children:"📱 现在打开手机微信「微信 ClawBot」可直接发送:"}),h.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-2 font-mono-num text-[11px]",children:[h.jsxs("div",{className:"p-2 rounded hl-card",children:[h.jsx("span",{style:{color:"var(--accent)"},children:"状态"})," · 查看 M6 & 极空间遥测"]}),h.jsxs("div",{className:"p-2 rounded hl-card",children:[h.jsx("span",{style:{color:"var(--accent)"},children:"备份"})," · 立即打包备份至 20TB NAS"]}),h.jsxs("div",{className:"p-2 rounded hl-card",children:[h.jsx("span",{style:{color:"var(--accent)"},children:"屏幕"})," · 截取 AGY 终端实时画面"]}),h.jsxs("div",{className:"p-2 rounded hl-card",children:[h.jsx("span",{style:{color:"var(--accent)"},children:"$ df -h"})," · 执行任意 Mac mini 命令"]}),h.jsxs("div",{className:"p-2 rounded hl-card sm:col-span-2",children:[h.jsx("span",{style:{color:"var(--accent)"},children:"> 你好"})," 或直接发任意问题 · 注入 AGY 终端或调用 AI 回答"]})]})]})]}):h.jsxs("div",{className:"space-y-4",children:[h.jsxs("div",{className:"flex flex-col items-center justify-center p-5 rounded-xl hl-muted border hl-border space-y-3",children:[m?h.jsx("div",{className:"p-3 bg-white rounded-xl shadow-md border",children:h.jsx("img",{src:m,alt:"WeChat ClawBot QR Code",className:"w-48 h-48 block"})}):h.jsx("div",{className:"w-48 h-48 rounded-xl hl-card flex items-center justify-center text-xs font-mono-num",children:p?"正在向微信申请二维码...":"点击下方按钮生成二维码"}),h.jsxs("div",{className:"flex items-center gap-2 text-xs font-medium text-center",children:[h.jsx(B2,{className:"w-4 h-4 shrink-0",style:{color:"var(--accent)"}}),h.jsx("span",{children:(G==null?void 0:G.message)||"请使用手机微信扫描上方二维码启用 ClawBot"})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsxs(nt,{variant:"outline",size:"sm",onClick:j,disabled:p,children:[h.jsx(R2,{className:"w-3.5 h-3.5"}),h.jsx("span",{children:p?"刷新中...":"刷新二维码"})]}),(G==null?void 0:G.qrcode_url)&&h.jsx(nt,{variant:"ghost",size:"sm",asChild:!0,children:h.jsxs("a",{href:G.qrcode_url,target:"_blank",rel:"noopener noreferrer",className:"font-mono-num",children:[h.jsx(_2,{className:"w-3.5 h-3.5"}),h.jsx("span",{children:"打开备用链接 ↗"})]})})]})]}),(G==null?void 0:G.status)==="need_verifycode"&&h.jsxs("form",{onSubmit:D,className:"p-4 rounded-xl border space-y-2.5",style:{backgroundColor:"var(--accent-soft)",borderColor:"var(--accent)"},children:[h.jsx("label",{className:"block text-xs font-bold",children:"🔢 手机微信上显示了配对数字,请在下方输入:"}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Bd,{type:"text",value:S,onChange:k=>y(k.target.value),placeholder:"输入手机微信显示的 6 位数字...",className:"font-mono-num",autoFocus:!0}),h.jsxs(nt,{type:"submit",disabled:E,children:[h.jsx(M2,{className:"w-3.5 h-3.5"}),h.jsx("span",{children:"验证"})]})]})]})]}),h.jsx("div",{className:"flex items-center justify-end pt-1",children:h.jsx(nt,{variant:"outline",onClick:()=>r(!1),children:"关闭窗口"})})]})})},oN={light:{id:"light",name:"Shadcn Clean Light (浅色纯净)",description:"对标 Apple / Stripe / Linear 浅色日光模式,高对比深灰文字配纯净白卡片与冷灰微边框。",tokens:{"--bg-page":"#f8fafc","--bg-card":"#ffffff","--bg-widget":"#f8fafc","--bg-muted":"#f1f5f9","--bg-hover":"#ffffff","--text-main":"#0f172a","--text-muted":"#64748b","--text-subtle":"#94a3b8","--border-color":"#e2e8f0","--border-hover":"#cbd5e1","--primary":"#0f172a","--primary-fg":"#ffffff","--accent":"#2563eb","--accent-soft":"rgba(37, 99, 235, 0.08)","--success":"#10b981","--success-soft":"rgba(16, 185, 129, 0.10)"}},dark:{id:"dark",name:"Catppuccin / Linear Dark (深色极客)",description:"融合 Catppuccin Mocha 与 Linear 暗黑规范,柔和护眼的深邃蓝黑基底配高辨识度状态色。",tokens:{"--bg-page":"#11111b","--bg-card":"#1e1e2e","--bg-widget":"#181825","--bg-muted":"#313244","--bg-hover":"#242438","--text-main":"#cdd6f4","--text-muted":"#a6adc8","--text-subtle":"#6c7086","--border-color":"#313244","--border-hover":"#45475a","--primary":"#cba6f7","--primary-fg":"#11111b","--accent":"#89b4fa","--accent-soft":"rgba(137, 180, 250, 0.15)","--success":"#a6e3a1","--success-soft":"rgba(166, 227, 161, 0.15)"}}},yo={"homepage-3col":{id:"homepage-3col",name:"Homepage 经典三列矩阵 (3-Column Grid)",description:"gethomepage.dev 标志性对称 3 列分组卡片,底部内嵌 3 格实时遥测单元。",gridClass:"grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4"},"bento-split":{id:"bento-split",name:"Shadcn 双列宽屏卡片 (2-Column Wide Bento)",description:"适合大字号阅读的 2 列宽体卡片布局,留白更充裕。",gridClass:"grid-cols-1 lg:grid-cols-2 gap-5"},"compact-2col":{id:"compact-2col",name:"高密度四列紧凑矩阵 (4-Column Dense)",description:"适合超宽显示器的一屏高密度 4 列布局。",gridClass:"grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-3.5"}},cN=()=>{const[i,r]=x.useState("form-inputs"),{theme:c,resolvedTheme:o,layoutPreset:s,setTheme:f,setLayoutPreset:m,setViewMode:v,setShowCmdPalette:p,telemetry:b,showToast:S}=Pn(),[y,E]=x.useState(!0),[A,j]=x.useState("drawer"),[D,L]=x.useState(""),[Y,G]=x.useState("192.168.31.164"),[k,V]=x.useState(!0),I=[{id:"layout-architecture",group:"FOUNDATIONS / 架构与布局",title:"01. AppShell 双层顶栏与网格布局",icon:h.jsx(w2,{className:"w-3.5 h-3.5"})},{id:"theme-tokens",group:"FOUNDATIONS / 架构与布局",title:"02. 双主题色板与自动切换规范",icon:h.jsx(C2,{className:"w-3.5 h-3.5"})},{id:"form-inputs",group:"SHADCN / RADIX UI 组件",title:"03. shadcn/ui + Radix 原语与认证弹窗",icon:h.jsx(_0,{className:"w-3.5 h-3.5"})},{id:"service-card",group:"SHADCN / RADIX UI 组件",title:"04. ServiceCard 内联遥测卡片",icon:h.jsx(h2,{className:"w-3.5 h-3.5"})},{id:"ssh-shelf",group:"SHADCN / RADIX UI 组件",title:"05. SshShelf 快捷指令栏",icon:h.jsx(md,{className:"w-3.5 h-3.5"})}];return h.jsx("div",{className:"flex-1 max-w-7xl w-full mx-auto px-4 sm:px-6 lg:px-8 py-6",children:h.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6 items-start",children:[h.jsxs(Ol,{className:"p-4 space-y-4 lg:sticky lg:top-20",children:[h.jsxs("div",{className:"flex items-center justify-between border-b hl-border pb-3",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx(Oy,{className:"w-4 h-4",style:{color:"var(--accent)"}}),h.jsx("span",{className:"text-xs font-bold uppercase tracking-wider",children:"shadcn/ui 组件库"})]}),h.jsx(Jn,{variant:"accent",children:"Radix + cmdk"})]}),h.jsx("div",{className:"space-y-1",children:I.map(R=>h.jsxs("button",{onClick:()=>r(R.id),className:"w-full px-3 py-2 rounded-lg text-left text-xs font-medium flex items-center gap-2.5 transition-all cursor-pointer",style:i===R.id?{backgroundColor:"var(--accent-soft)",color:"var(--accent)"}:{color:"var(--text-muted)"},children:[R.icon,h.jsx("span",{className:"truncate",children:R.title})]},R.id))}),h.jsxs("div",{className:"pt-3 border-t hl-border space-y-2 text-xs",children:[h.jsx("div",{className:"text-[11px] font-semibold",style:{color:"var(--text-muted)"},children:"全局外观状态预览 (@radix-ui/react-tabs)"}),h.jsx(ed,{value:c,onValueChange:R=>f(R),children:h.jsxs(ho,{className:"w-full grid grid-cols-3",children:[h.jsx(ua,{value:"system",children:"自动"}),h.jsx(ua,{value:"light",children:"浅色"}),h.jsx(ua,{value:"dark",children:"深色"})]})}),h.jsx(nt,{onClick:()=>v("dashboard"),className:"w-full mt-2",children:"返回中控台主页"})]})]}),h.jsxs("div",{className:"lg:col-span-3 space-y-6",children:[i==="layout-architecture"&&h.jsx("div",{className:"space-y-6",children:h.jsxs(Ol,{className:"p-6 space-y-4",children:[h.jsx("div",{className:"flex items-center justify-between border-b hl-border pb-4",children:h.jsxs("div",{children:[h.jsx("span",{className:"text-[11px] font-mono-num uppercase tracking-wider",style:{color:"var(--accent)"},children:"Foundations / AppShell Layout"}),h.jsx("h2",{className:"text-lg font-bold mt-0.5",children:"标准双层顶栏架构 (Two-Tier AppShell) & 响应式网格切换"})]})}),h.jsxs("p",{className:"text-xs leading-relaxed",style:{color:"var(--text-muted)"},children:["参考 ",h.jsx("strong",{children:"Vercel Geist / shadcn/ui Dashboard-01 / GitHub AppShell"})," ","标准规范,将原本容易挤压折行的单层顶栏拆分为职责清晰的双层结构:"]}),h.jsxs("div",{className:"p-4 rounded-xl hl-muted border hl-border space-y-2.5 font-mono-num text-xs",children:[h.jsxs("div",{className:"p-3 rounded-lg hl-card flex items-center justify-between",children:[h.jsx("span",{children:"[左] 🍎 HomeLab · Radix Tabs 切换 (中控台 / Storybook)"}),h.jsx("span",{style:{color:"var(--accent)"},children:"[最右固定] 🔍 搜索 ⌘K · >_ AGY 终端 · ☀️/🌙 主题切换"})]}),h.jsxs("div",{className:"p-3 rounded-lg hl-card flex items-center justify-between",children:[h.jsx("span",{style:{color:"var(--success)"},children:"[左] 实时硬件遥测条 (M6 CPU · RAM · Z4 20TB · SG 专线)"}),h.jsx("span",{children:"[右对齐] Radix Tabs 路由切换器 (智能路由 / 443 / 10443 / LAN)"})]})]}),h.jsxs("div",{className:"pt-2 space-y-3",children:[h.jsx("div",{className:"text-xs font-semibold",children:"选择主页卡片网格布局预设(点击立即应用到主页):"}),h.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-3.5",children:Object.keys(yo).map(R=>{const T=yo[R],z=s===R;return h.jsxs("div",{onClick:()=>m(R),className:"hl-card hl-card-interactive p-4 cursor-pointer space-y-2",style:z?{borderColor:"var(--accent)"}:{},children:[h.jsxs("div",{className:"flex items-center justify-between",children:[h.jsx("span",{className:"text-xs font-bold",children:T.name}),z&&h.jsx("span",{className:"w-4 h-4 rounded-full flex items-center justify-center",style:{backgroundColor:"var(--accent)",color:"#fff"},children:h.jsx(i2,{className:"w-2.5 h-2.5"})})]}),h.jsx("p",{className:"text-[11px]",style:{color:"var(--text-muted)"},children:T.description}),h.jsx("code",{className:"text-[10px] font-mono-num block pt-1",style:{color:"var(--accent)"},children:T.gridClass})]},R)})})]})]})}),i==="theme-tokens"&&h.jsxs(Ol,{className:"p-6 space-y-6",children:[h.jsxs("div",{className:"border-b hl-border pb-4 flex items-center justify-between",children:[h.jsxs("div",{children:[h.jsx("span",{className:"text-[11px] font-mono-num uppercase tracking-wider",style:{color:"var(--accent)"},children:"Foundations / Color System"}),h.jsxs("h2",{className:"text-lg font-bold mt-0.5",children:["主流双主题色板规范(当前生效:",o==="dark"?"深色极客":"浅色纯净",")"]})]}),h.jsxs(Jn,{variant:"secondary",children:["模式: ",c==="system"?"跟随设备自动切换":"手动锁定"]})]}),h.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-5",children:["light","dark"].map(R=>{const T=oN[R];return h.jsxs("div",{className:"rounded-xl p-5 space-y-4 border",style:{backgroundColor:T.tokens["--bg-page"],color:T.tokens["--text-main"],borderColor:T.tokens["--border-color"]},children:[h.jsxs("div",{className:"flex items-center justify-between border-b pb-3",style:{borderColor:T.tokens["--border-color"]},children:[h.jsxs("div",{children:[h.jsx("div",{className:"text-sm font-bold",children:T.name}),h.jsx("div",{className:"text-xs mt-0.5",style:{color:T.tokens["--text-muted"]},children:T.description})]}),h.jsx("button",{onClick:()=>f(R),className:"px-2.5 py-1 rounded-md text-xs font-mono-num font-semibold cursor-pointer",style:{backgroundColor:T.tokens["--primary"],color:T.tokens["--primary-fg"]},children:"预览此主题"})]}),h.jsx("div",{className:"grid grid-cols-2 gap-2",children:Object.entries(T.tokens).map(([z,Z])=>h.jsxs("div",{className:"p-2 rounded-lg border flex items-center gap-2",style:{backgroundColor:T.tokens["--bg-card"],borderColor:T.tokens["--border-color"]},children:[h.jsx("span",{className:"w-5 h-5 rounded border shrink-0",style:{backgroundColor:Z,borderColor:T.tokens["--border-hover"]}}),h.jsxs("div",{className:"min-w-0",children:[h.jsx("div",{className:"text-[10px] font-mono-num font-semibold truncate",children:z}),h.jsx("div",{className:"text-[10px] font-mono-num truncate",style:{color:T.tokens["--text-muted"]},children:Z})]})]},z))})]},T.id)})})]}),i==="form-inputs"&&h.jsxs(Ol,{className:"p-6 space-y-6",children:[h.jsxs("div",{className:"border-b hl-border pb-4 flex items-center justify-between",children:[h.jsxs("div",{children:[h.jsx("span",{className:"text-[11px] font-mono-num uppercase tracking-wider",style:{color:"var(--accent)"},children:"src/components/ui/* · Official shadcn/ui + Radix Primitives + cmdk"}),h.jsx("h2",{className:"text-lg font-bold mt-0.5",children:"开源 `shadcn/ui` 组件库(`Input` / `Button` / `Switch` / `Badge` / `CommandDialog` / `AuthGateCard`)"})]}),h.jsx(_0,{className:"w-4 h-4",style:{color:"var(--accent)"}})]}),h.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 items-start",children:[h.jsxs("div",{className:"p-5 rounded-xl hl-muted border hl-border space-y-4",children:[h.jsx("div",{className:"text-xs font-bold uppercase tracking-wider",style:{color:"var(--text-muted)"},children:"1. `src/components/ui/*` 标准原语展示"}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("label",{className:"block text-xs font-medium",style:{color:"var(--text-muted)"},children:"Button 变体 (`cva` + `@radix-ui/react-slot`)"}),h.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[h.jsx(nt,{variant:"default",children:"Primary 主按钮"}),h.jsx(nt,{variant:"outline",children:"Outline 描边"}),h.jsx(nt,{variant:"secondary",children:"Secondary 次级"}),h.jsx(nt,{variant:"accent",children:"Accent 高亮"}),h.jsx(nt,{variant:"ghost",onClick:()=>p(!0),children:"唤起 cmdk 面板 ⌘K"})]})]}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("label",{className:"block text-xs font-medium",style:{color:"var(--text-muted)"},children:"Badge 标签与 `@radix-ui/react-switch` 开关"}),h.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-2 p-2.5 rounded-lg hl-card",children:[h.jsxs("div",{className:"flex items-center gap-1.5",children:[h.jsx(Jn,{variant:"default",children:"Default"}),h.jsx(Jn,{variant:"accent",children:"Radix UI"}),h.jsx(Jn,{variant:"success",children:"Online"}),h.jsx(Jn,{variant:"outline",children:"v3.2"})]}),h.jsx(go,{checked:k,onCheckedChange:V})]})]}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("label",{className:"block text-xs font-medium",style:{color:"var(--text-muted)"},children:"`InputGroup` 组合输入框"}),h.jsxs(vo,{children:[h.jsx(dd,{className:"w-4 h-4 shrink-0",style:{color:"var(--text-subtle)"}}),h.jsx("input",{type:"text",value:D,onChange:R=>L(R.target.value),placeholder:"搜索服务、SSH 指令或节点..."}),h.jsx("kbd",{className:"px-1.5 py-0.5 text-[10px] font-mono-num rounded hl-card border hl-border",style:{color:"var(--text-muted)"},children:"⌘K"})]})]}),h.jsxs("div",{className:"space-y-1.5",children:[h.jsx("label",{className:"block text-xs font-medium",style:{color:"var(--text-muted)"},children:"`Input` 等宽字体输入框"}),h.jsx(Bd,{type:"text",value:Y,onChange:R=>G(R.target.value),className:"font-mono-num",placeholder:"192.168.31.164"})]})]}),h.jsx("div",{className:"flex flex-col items-center",children:h.jsx(qd,{embedded:!0,targetUrl:"https://agy.961504.xyz",onSuccess:()=>S("SSO 认证成功!已签发 30 天全域名通行 Cookie")})})]})]}),i==="service-card"&&h.jsxs(Ol,{className:"p-6 space-y-6",children:[h.jsxs("div",{className:"border-b hl-border pb-4 flex items-center justify-between",children:[h.jsxs("div",{children:[h.jsx("span",{className:"text-[11px] font-mono-num uppercase tracking-wider",style:{color:"var(--accent)"},children:"Components / ServiceCard"}),h.jsx("h2",{className:"text-lg font-bold mt-0.5",children:"三段式内联遥测卡片 (ServiceCard Interactive Story)"})]}),h.jsx(H2,{className:"w-4 h-4",style:{color:"var(--accent)"}})]}),h.jsxs("div",{className:"p-4 rounded-xl hl-muted border hl-border flex flex-wrap items-center gap-6 text-xs",children:[h.jsxs("div",{className:"flex items-center gap-2.5",children:[h.jsx("span",{className:"font-semibold",children:"在线状态 (online):"}),h.jsx(go,{checked:y,onCheckedChange:E}),h.jsx("span",{className:"font-mono-num",children:y?"true":"false"})]}),h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("span",{className:"font-semibold",children:"右上角动作按钮 (actionType):"}),["drawer","backup",void 0].map((R,T)=>h.jsx(nt,{variant:A===R?"accent":"outline",size:"sm",onClick:()=>j(R),className:"font-mono-num",children:R||"route-badge"},T))]})]}),h.jsx("div",{className:"max-w-md mx-auto py-4",children:h.jsx(B1,{card:{id:"agy",title:"AGY 云端工作台",subtitle:"agy.961504.xyz · ttyd + tmux",iconUrl:"https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/google-gemini.png",online:y,actionType:A,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:`${b.mini.cpu_pct}%`},{label:"已用内存",value:`${b.mini.mem_used_gb} / 24 GB`},{label:"tmux 会话",value:"常驻运行中",highlight:!0}]}})})]}),i==="ssh-shelf"&&h.jsxs(Ol,{className:"p-6 space-y-6",children:[h.jsxs("div",{className:"border-b hl-border pb-4",children:[h.jsx("span",{className:"text-[11px] font-mono-num uppercase tracking-wider",style:{color:"var(--accent)"},children:"Components / SshShelf"}),h.jsx("h2",{className:"text-lg font-bold mt-0.5",children:"底部 SSH 快捷复制与运维操作栏"})]}),h.jsx(k1,{})]})]})]})})},sN=()=>{var A;const{telemetry:i,toast:r,viewMode:c,layoutPreset:o,fetchTelemetry:s,setShowCmdPalette:f,getEffectiveMode:m,routeMode:v}=Pn(),[p,b]=x.useState(()=>typeof window>"u"?null:new URLSearchParams(window.location.search).get("auth_redirect"));x.useEffect(()=>{s();const j=setInterval(s,3e3),D=L=>{(L.metaKey||L.ctrlKey)&&L.key.toLowerCase()==="k"&&(L.preventDefault(),f(!0))};return window.addEventListener("keydown",D),()=>{clearInterval(j),window.removeEventListener("keydown",D)}},[s,f]);const S=x.useMemo(()=>{const j=m();return j==="lan"?"LAN 局域网极速直连 (192.168.31.x)":j==="home10443"?"10443 家宽公网 HTTPS 直连":"443 免端口 HTTPS 直达 (*.961504.xyz)"},[m,v]),y=((A=yo[o])==null?void 0:A.gridClass)||yo["homepage-3col"].gridClass,E=x.useMemo(()=>{const j=i;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:j.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:`${j.mini.cpu_pct}%`},{label:"已用内存",value:`${j.mini.mem_used_gb} / 24 GB`},{label:"tmux 会话",value:j.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:j.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:`${j.nas.free_tb} TB`,highlight:!0},{label:"已用容量",value:`${j.nas.used_tb} TB (${j.nas.pct}%)`},{label:"SMB 挂载",value:j.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:j.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:j.nas.latest_backup},{label:"Mac SSD 占用",value:`${j.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:j.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:j.network.sg_delay_ms>0?`${j.network.sg_delay_ms} ms`:"直连"},{label:"固定出口 IP",value:j.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:j.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:j.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:j.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}]}]}]},[i]);return h.jsxs("div",{className:"min-h-screen flex flex-col",children:[r&&h.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:[h.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:"var(--success)"}}),h.jsx("span",{className:"text-xs font-medium",children:r})]}),h.jsx(qC,{}),c==="storybook"?h.jsx(cN,{}):h.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:[E.map(j=>h.jsxs("section",{className:"space-y-3",children:[h.jsxs("div",{className:"flex items-center justify-between px-0.5",children:[h.jsxs("div",{className:"flex items-center gap-2",children:[h.jsx("h2",{className:"text-xs font-semibold uppercase tracking-wider",style:{color:"var(--text-muted)"},children:j.title}),h.jsxs("span",{className:"text-[11px] font-mono-num",style:{color:"var(--text-subtle)"},children:["· ",j.subtitle]})]}),j.showRouteHint&&h.jsxs("span",{className:"text-[11px] font-mono-num hidden sm:inline",style:{color:"var(--text-subtle)"},children:["当前路由模式: ",S]})]}),h.jsx("div",{className:`grid ${y}`,children:j.items.map(D=>h.jsx(B1,{card:D},D.id))})]},j.title)),h.jsx(k1,{})]}),h.jsx(S3,{}),h.jsx(H3,{}),h.jsx(rN,{}),p&&h.jsx("div",{className:"fixed inset-0 z-50 bg-black/75 backdrop-blur-sm flex items-center justify-center p-4",children:h.jsx(qd,{targetUrl:p,onSuccess:()=>{window.location.href=p},onCancel:()=>{b(null),window.history.replaceState({},"","/")}})})]})};QS.createRoot(document.getElementById("root")).render(h.jsx(gu.StrictMode,{children:h.jsx(sN,{})}));
|