React 18.3.1 -> 19.2.8, dazu @types/react(-dom) 19.
## Nichts brach
tsc --noEmit sauber, 54/54 Tests gruen, ESLint 0 Fehler
Im Browser gegen die ECHTE Box: Cockpit mit 2 Diagrammen und 4 Flaechen,
Statusleiste live (40,8/122,7 GB, 38 °C, 532 748 115 Token), 8 Karten
NULL Konsolen-Warnungen — keine veralteten Muster im Bestand
Das eigentliche Risiko war `react-force-graph-2d` (peer: react "*", also ungeprueft,
und es umhuellt eine Nicht-React-Bibliothek). Gegen den echten Vault der Box getestet:
Canvas 500x560, 4498 gezeichnete Pixel, keine Fehlerflaeche. Es laeuft.
## Das Budget hat angeschlagen — und ich habe es trotzdem angehoben
Gemessen kostet der Sprung 14 645 B gzip (118 762 -> 133 407) und riss damit das
in P0 gesetzte Budget von 125 000. Das Gate hat also getan, was es soll.
Beim Router (P2) habe ich in derselben Lage NICHT das Budget angefasst, sondern den
Platz zurueckgeholt (Schublade und Palette hinter lazy()). Hier geht das nicht: Der
Zuwachs IST die Plattform, es gibt nichts wegzulassen.
Also angehoben — einmalig, auf 140 000, mit der Begruendung IM Ampel-Skript, damit ein
spaeterer Leser sieht, dass es ein ueberlegter Schritt war und kein Nachgeben:
MC2 ist eine LAN-Appliance; 14 kB sind ueber Gigabit-Ethernet keine messbare Wartezeit.
Das Budget existiert gegen DRIFT — einen 24-MB-Avatar, eine 95-kB-Diagramm-Bibliothek
auf der Startseite — nicht gegen einen bewussten Plattform-Schritt. Der relative
Abstand zum Deckel bleibt derselbe wie vorher (~5 %).
## Ehrlich zum Nutzen
React 19 bringt diesem Projekt HEUTE wenig Konkretes: use(), Actions und
Server-Komponenten sind hier nicht im Spiel. Der Grund ist die Zukunft — 18 altert,
und der React Compiler ist der Pfad, auf dem die 18 offenen Warnungen aus
eslint-plugin-react-hooks (setState im Effekt, Ref-Zugriff im Render) irgendwann
nicht mehr nur Warnungen sind.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
270 lines
417 KiB
JavaScript
270 lines
417 KiB
JavaScript
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SystemDrawer-BibykjdQ.js","assets/refresh-cw-c_vCbXLa.js","assets/file-text-CBWKyLdT.js","assets/search-304843k8.js","assets/shield-ZD0AzbFC.js","assets/arrow-right-BQzOIyyQ.js","assets/clock-BtwDQhLF.js","assets/external-link-CX_p2Ium.js","assets/cloud-download-iKq6uLmJ.js","assets/power-DIQA5x8I.js","assets/CommandPalette-B-Xj_Ylo.js","assets/index-C6cwCDNv.js","assets/LiveAreaChartImpl-fVbE8ADw.js","assets/string-DoZi9Vij.js","assets/ModelsView-V-6628G4.js","assets/JobsBar-CnTUCk_C.js","assets/code-xml-DazFbjTe.js","assets/zap-Dk2Mubv-.js","assets/chevron-down-BP_KoZ0O.js","assets/layers-D93tY13T.js","assets/ConnectView-Dt6Lwemi.js","assets/AgentView-D2__n-4R.js","assets/SectionLabel-DJUlupBf.js","assets/KonsoleView-BLCojfPx.js","assets/GuideView-Bvyit7_l.js","assets/AuftragsbuchView-CqEdIU-n.js","assets/hammer-Bhn7N9HF.js","assets/IdeenAnsicht-Bsg00SpL.js","assets/SkillsView-G-9KsZTQ.js","assets/ChronikView-Cl1i2WVT.js","assets/WissenView-DHOJ-3q4.js"])))=>i.map(i=>d[i]);
|
||
var L1=Object.defineProperty;var kp=a=>{throw TypeError(a)};var B1=(a,l,s)=>l in a?L1(a,l,{enumerable:!0,configurable:!0,writable:!0,value:s}):a[l]=s;var zu=(a,l,s)=>B1(a,typeof l!="symbol"?l+"":l,s),bf=(a,l,s)=>l.has(a)||kp("Cannot "+s);var C=(a,l,s)=>(bf(a,l,"read from private field"),s?s.call(a):l.get(a)),oe=(a,l,s)=>l.has(a)?kp("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(a):l.set(a,s),ae=(a,l,s,r)=>(bf(a,l,"write to private field"),r?r.call(a,s):l.set(a,s),s),Ee=(a,l,s)=>(bf(a,l,"access private method"),s);var Nu=(a,l,s,r)=>({set _(o){ae(a,l,o,s)},get _(){return C(a,l,r)}});function H1(a,l){for(var s=0;s<l.length;s++){const r=l[s];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in a)){const f=Object.getOwnPropertyDescriptor(r,o);f&&Object.defineProperty(a,o,f.get?f:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function s(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=s(o);fetch(o.href,f)}})();function Py(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var xf={exports:{}},Us={};/**
|
||
* @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 Up;function q1(){if(Up)return Us;Up=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function s(r,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var d in o)d!=="key"&&(f[d]=o[d])}else f=o;return o=f.ref,{$$typeof:a,type:r,key:h,ref:o!==void 0?o:null,props:f}}return Us.Fragment=l,Us.jsx=s,Us.jsxs=s,Us}var Lp;function G1(){return Lp||(Lp=1,xf.exports=q1()),xf.exports}var v=G1(),Sf={exports:{}},me={};/**
|
||
* @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 Bp;function Q1(){if(Bp)return me;Bp=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),S=Symbol.iterator;function _(M){return M===null||typeof M!="object"?null:(M=S&&M[S]||M["@@iterator"],typeof M=="function"?M:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E=Object.assign,j={};function R(M,Z,te){this.props=M,this.context=Z,this.refs=j,this.updater=te||w}R.prototype.isReactComponent={},R.prototype.setState=function(M,Z){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,Z,"setState")},R.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function z(){}z.prototype=R.prototype;function L(M,Z,te){this.props=M,this.context=Z,this.refs=j,this.updater=te||w}var D=L.prototype=new z;D.constructor=L,E(D,R.prototype),D.isPureReactComponent=!0;var X=Array.isArray;function q(){}var Y={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function Q(M,Z,te){var ie=te.ref;return{$$typeof:a,type:M,key:Z,ref:ie!==void 0?ie:null,props:te}}function P(M,Z){return Q(M.type,Z,M.props)}function ee(M){return typeof M=="object"&&M!==null&&M.$$typeof===a}function I(M){var Z={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(te){return Z[te]})}var de=/\/+/g;function $(M,Z){return typeof M=="object"&&M!==null&&M.key!=null?I(""+M.key):Z.toString(36)}function ne(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(q,q):(M.status="pending",M.then(function(Z){M.status==="pending"&&(M.status="fulfilled",M.value=Z)},function(Z){M.status==="pending"&&(M.status="rejected",M.reason=Z)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function B(M,Z,te,ie,he){var ge=typeof M;(ge==="undefined"||ge==="boolean")&&(M=null);var Ae=!1;if(M===null)Ae=!0;else switch(ge){case"bigint":case"string":case"number":Ae=!0;break;case"object":switch(M.$$typeof){case a:case l:Ae=!0;break;case b:return Ae=M._init,B(Ae(M._payload),Z,te,ie,he)}}if(Ae)return he=he(M),Ae=ie===""?"."+$(M,0):ie,X(he)?(te="",Ae!=null&&(te=Ae.replace(de,"$&/")+"/"),B(he,Z,te,"",function(_n){return _n})):he!=null&&(ee(he)&&(he=P(he,te+(he.key==null||M&&M.key===he.key?"":(""+he.key).replace(de,"$&/")+"/")+Ae)),Z.push(he)),1;Ae=0;var ot=ie===""?".":ie+":";if(X(M))for(var Ve=0;Ve<M.length;Ve++)ie=M[Ve],ge=ot+$(ie,Ve),Ae+=B(ie,Z,te,ge,he);else if(Ve=_(M),typeof Ve=="function")for(M=Ve.call(M),Ve=0;!(ie=M.next()).done;)ie=ie.value,ge=ot+$(ie,Ve++),Ae+=B(ie,Z,te,ge,he);else if(ge==="object"){if(typeof M.then=="function")return B(ne(M),Z,te,ie,he);throw Z=String(M),Error("Objects are not valid as a React child (found: "+(Z==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":Z)+"). If you meant to render a collection of children, use an array instead.")}return Ae}function W(M,Z,te){if(M==null)return M;var ie=[],he=0;return B(M,ie,"","",function(ge){return Z.call(te,ge,he++)}),ie}function re(M){if(M._status===-1){var Z=M._result;Z=Z(),Z.then(function(te){(M._status===0||M._status===-1)&&(M._status=1,M._result=te)},function(te){(M._status===0||M._status===-1)&&(M._status=2,M._result=te)}),M._status===-1&&(M._status=0,M._result=Z)}if(M._status===1)return M._result.default;throw M._result}var ce=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Z=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(Z))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},Se={map:W,forEach:function(M,Z,te){W(M,function(){Z.apply(this,arguments)},te)},count:function(M){var Z=0;return W(M,function(){Z++}),Z},toArray:function(M){return W(M,function(Z){return Z})||[]},only:function(M){if(!ee(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return me.Activity=y,me.Children=Se,me.Component=R,me.Fragment=s,me.Profiler=o,me.PureComponent=L,me.StrictMode=r,me.Suspense=p,me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,me.__COMPILER_RUNTIME={__proto__:null,c:function(M){return Y.H.useMemoCache(M)}},me.cache=function(M){return function(){return M.apply(null,arguments)}},me.cacheSignal=function(){return null},me.cloneElement=function(M,Z,te){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var ie=E({},M.props),he=M.key;if(Z!=null)for(ge in Z.key!==void 0&&(he=""+Z.key),Z)!J.call(Z,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&Z.ref===void 0||(ie[ge]=Z[ge]);var ge=arguments.length-2;if(ge===1)ie.children=te;else if(1<ge){for(var Ae=Array(ge),ot=0;ot<ge;ot++)Ae[ot]=arguments[ot+2];ie.children=Ae}return Q(M.type,he,ie)},me.createContext=function(M){return M={$$typeof:h,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:f,_context:M},M},me.createElement=function(M,Z,te){var ie,he={},ge=null;if(Z!=null)for(ie in Z.key!==void 0&&(ge=""+Z.key),Z)J.call(Z,ie)&&ie!=="key"&&ie!=="__self"&&ie!=="__source"&&(he[ie]=Z[ie]);var Ae=arguments.length-2;if(Ae===1)he.children=te;else if(1<Ae){for(var ot=Array(Ae),Ve=0;Ve<Ae;Ve++)ot[Ve]=arguments[Ve+2];he.children=ot}if(M&&M.defaultProps)for(ie in Ae=M.defaultProps,Ae)he[ie]===void 0&&(he[ie]=Ae[ie]);return Q(M,ge,he)},me.createRef=function(){return{current:null}},me.forwardRef=function(M){return{$$typeof:d,render:M}},me.isValidElement=ee,me.lazy=function(M){return{$$typeof:b,_payload:{_status:-1,_result:M},_init:re}},me.memo=function(M,Z){return{$$typeof:g,type:M,compare:Z===void 0?null:Z}},me.startTransition=function(M){var Z=Y.T,te={};Y.T=te;try{var ie=M(),he=Y.S;he!==null&&he(te,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&ie.then(q,ce)}catch(ge){ce(ge)}finally{Z!==null&&te.types!==null&&(Z.types=te.types),Y.T=Z}},me.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},me.use=function(M){return Y.H.use(M)},me.useActionState=function(M,Z,te){return Y.H.useActionState(M,Z,te)},me.useCallback=function(M,Z){return Y.H.useCallback(M,Z)},me.useContext=function(M){return Y.H.useContext(M)},me.useDebugValue=function(){},me.useDeferredValue=function(M,Z){return Y.H.useDeferredValue(M,Z)},me.useEffect=function(M,Z){return Y.H.useEffect(M,Z)},me.useEffectEvent=function(M){return Y.H.useEffectEvent(M)},me.useId=function(){return Y.H.useId()},me.useImperativeHandle=function(M,Z,te){return Y.H.useImperativeHandle(M,Z,te)},me.useInsertionEffect=function(M,Z){return Y.H.useInsertionEffect(M,Z)},me.useLayoutEffect=function(M,Z){return Y.H.useLayoutEffect(M,Z)},me.useMemo=function(M,Z){return Y.H.useMemo(M,Z)},me.useOptimistic=function(M,Z){return Y.H.useOptimistic(M,Z)},me.useReducer=function(M,Z,te){return Y.H.useReducer(M,Z,te)},me.useRef=function(M){return Y.H.useRef(M)},me.useState=function(M){return Y.H.useState(M)},me.useSyncExternalStore=function(M,Z,te){return Y.H.useSyncExternalStore(M,Z,te)},me.useTransition=function(){return Y.H.useTransition()},me.version="19.2.8",me}var Hp;function cr(){return Hp||(Hp=1,Sf.exports=Q1()),Sf.exports}var F=cr();const cn=Py(F),p5=H1({__proto__:null,default:cn},[F]);var _f={exports:{}},Ls={},wf={exports:{}},Ef={};/**
|
||
* @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 qp;function V1(){return qp||(qp=1,(function(a){function l(B,W){var re=B.length;B.push(W);e:for(;0<re;){var ce=re-1>>>1,Se=B[ce];if(0<o(Se,W))B[ce]=W,B[re]=Se,re=ce;else break e}}function s(B){return B.length===0?null:B[0]}function r(B){if(B.length===0)return null;var W=B[0],re=B.pop();if(re!==W){B[0]=re;e:for(var ce=0,Se=B.length,M=Se>>>1;ce<M;){var Z=2*(ce+1)-1,te=B[Z],ie=Z+1,he=B[ie];if(0>o(te,re))ie<Se&&0>o(he,te)?(B[ce]=he,B[ie]=re,ce=ie):(B[ce]=te,B[Z]=re,ce=Z);else if(ie<Se&&0>o(he,re))B[ce]=he,B[ie]=re,ce=ie;else break e}}return W}function o(B,W){var re=B.sortIndex-W.sortIndex;return re!==0?re:B.id-W.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;a.unstable_now=function(){return f.now()}}else{var h=Date,d=h.now();a.unstable_now=function(){return h.now()-d}}var p=[],g=[],b=1,y=null,S=3,_=!1,w=!1,E=!1,j=!1,R=typeof setTimeout=="function"?setTimeout:null,z=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function D(B){for(var W=s(g);W!==null;){if(W.callback===null)r(g);else if(W.startTime<=B)r(g),W.sortIndex=W.expirationTime,l(p,W);else break;W=s(g)}}function X(B){if(E=!1,D(B),!w)if(s(p)!==null)w=!0,q||(q=!0,I());else{var W=s(g);W!==null&&ne(X,W.startTime-B)}}var q=!1,Y=-1,J=5,Q=-1;function P(){return j?!0:!(a.unstable_now()-Q<J)}function ee(){if(j=!1,q){var B=a.unstable_now();Q=B;var W=!0;try{e:{w=!1,E&&(E=!1,z(Y),Y=-1),_=!0;var re=S;try{t:{for(D(B),y=s(p);y!==null&&!(y.expirationTime>B&&P());){var ce=y.callback;if(typeof ce=="function"){y.callback=null,S=y.priorityLevel;var Se=ce(y.expirationTime<=B);if(B=a.unstable_now(),typeof Se=="function"){y.callback=Se,D(B),W=!0;break t}y===s(p)&&r(p),D(B)}else r(p);y=s(p)}if(y!==null)W=!0;else{var M=s(g);M!==null&&ne(X,M.startTime-B),W=!1}}break e}finally{y=null,S=re,_=!1}W=void 0}}finally{W?I():q=!1}}}var I;if(typeof L=="function")I=function(){L(ee)};else if(typeof MessageChannel<"u"){var de=new MessageChannel,$=de.port2;de.port1.onmessage=ee,I=function(){$.postMessage(null)}}else I=function(){R(ee,0)};function ne(B,W){Y=R(function(){B(a.unstable_now())},W)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(B){B.callback=null},a.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<B?Math.floor(1e3/B):5},a.unstable_getCurrentPriorityLevel=function(){return S},a.unstable_next=function(B){switch(S){case 1:case 2:case 3:var W=3;break;default:W=S}var re=S;S=W;try{return B()}finally{S=re}},a.unstable_requestPaint=function(){j=!0},a.unstable_runWithPriority=function(B,W){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var re=S;S=B;try{return W()}finally{S=re}},a.unstable_scheduleCallback=function(B,W,re){var ce=a.unstable_now();switch(typeof re=="object"&&re!==null?(re=re.delay,re=typeof re=="number"&&0<re?ce+re:ce):re=ce,B){case 1:var Se=-1;break;case 2:Se=250;break;case 5:Se=1073741823;break;case 4:Se=1e4;break;default:Se=5e3}return Se=re+Se,B={id:b++,callback:W,priorityLevel:B,startTime:re,expirationTime:Se,sortIndex:-1},re>ce?(B.sortIndex=re,l(g,B),s(p)===null&&B===s(g)&&(E?(z(Y),Y=-1):E=!0,ne(X,re-ce))):(B.sortIndex=Se,l(p,B),w||_||(w=!0,q||(q=!0,I()))),B},a.unstable_shouldYield=P,a.unstable_wrapCallback=function(B){var W=S;return function(){var re=S;S=W;try{return B.apply(this,arguments)}finally{S=re}}}})(Ef)),Ef}var Gp;function Y1(){return Gp||(Gp=1,wf.exports=V1()),wf.exports}var jf={exports:{}},yt={};/**
|
||
* @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 Qp;function K1(){if(Qp)return yt;Qp=1;var a=cr();function l(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var r={d:{f:s,r:function(){throw Error(l(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(p,g,b){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:y==null?null:""+y,children:p,containerInfo:g,implementation:b}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return yt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,yt.createPortal=function(p,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(l(299));return f(p,g,null,b)},yt.flushSync=function(p){var g=h.T,b=r.p;try{if(h.T=null,r.p=2,p)return p()}finally{h.T=g,r.p=b,r.d.f()}},yt.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(p,g))},yt.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},yt.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var b=g.as,y=d(b,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,_=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?r.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:y,integrity:S,fetchPriority:_}):b==="script"&&r.d.X(p,{crossOrigin:y,integrity:S,fetchPriority:_,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},yt.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=d(g.as,g.crossOrigin);r.d.M(p,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(p)},yt.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,y=d(b,g.crossOrigin);r.d.L(p,b,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},yt.preloadModule=function(p,g){if(typeof p=="string")if(g){var b=d(g.as,g.crossOrigin);r.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(p)},yt.requestFormReset=function(p){r.d.r(p)},yt.unstable_batchedUpdates=function(p,g){return p(g)},yt.useFormState=function(p,g,b){return h.H.useFormState(p,g,b)},yt.useFormStatus=function(){return h.H.useHostTransitionStatus()},yt.version="19.2.8",yt}var Vp;function X1(){if(Vp)return jf.exports;Vp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),jf.exports=K1(),jf.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 Yp;function Z1(){if(Yp)return Ls;Yp=1;var a=Y1(),l=cr(),s=X1();function r(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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(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 d(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(r(188))}function g(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(r(188));return t!==e?null:e}for(var n=e,i=t;;){var u=n.return;if(u===null)break;var c=u.alternate;if(c===null){if(i=u.return,i!==null){n=i;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===n)return p(u),e;if(c===i)return p(u),t;c=c.sibling}throw Error(r(188))}if(n.return!==i.return)n=u,i=c;else{for(var m=!1,x=u.child;x;){if(x===n){m=!0,n=u,i=c;break}if(x===i){m=!0,i=u,n=c;break}x=x.sibling}if(!m){for(x=c.child;x;){if(x===n){m=!0,n=c,i=u;break}if(x===i){m=!0,i=c,n=u;break}x=x.sibling}if(!m)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function b(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=b(e),t!==null)return t;e=e.sibling}return null}var y=Object.assign,S=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),E=Symbol.for("react.fragment"),j=Symbol.for("react.strict_mode"),R=Symbol.for("react.profiler"),z=Symbol.for("react.consumer"),L=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),Q=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),ee=Symbol.iterator;function I(e){return e===null||typeof e!="object"?null:(e=ee&&e[ee]||e["@@iterator"],typeof e=="function"?e:null)}var de=Symbol.for("react.client.reference");function $(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===de?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case E:return"Fragment";case R:return"Profiler";case j:return"StrictMode";case X:return"Suspense";case q:return"SuspenseList";case Q:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case w:return"Portal";case L:return e.displayName||"Context";case z:return(e._context.displayName||"Context")+".Consumer";case D:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Y:return t=e.displayName||null,t!==null?t:$(e.type)||"Memo";case J:t=e._payload,e=e._init;try{return $(e(t))}catch{}}return null}var ne=Array.isArray,B=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,re={pending:!1,data:null,method:null,action:null},ce=[],Se=-1;function M(e){return{current:e}}function Z(e){0>Se||(e.current=ce[Se],ce[Se]=null,Se--)}function te(e,t){Se++,ce[Se]=e.current,e.current=t}var ie=M(null),he=M(null),ge=M(null),Ae=M(null);function ot(e,t){switch(te(ge,t),te(he,e),te(ie,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?lp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=lp(t),e=ip(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Z(ie),te(ie,e)}function Ve(){Z(ie),Z(he),Z(ge)}function _n(e){e.memoizedState!==null&&te(Ae,e);var t=ie.current,n=ip(t,e.type);t!==n&&(te(he,e),te(ie,n))}function wn(e){he.current===e&&(Z(ie),Z(he)),Ae.current===e&&(Z(Ae),Ns._currentValue=re)}var Pn,Hi;function fn(e){if(Pn===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Pn=t&&t[1]||"",Hi=-1<n.stack.indexOf(`
|
||
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
||
`+Pn+e+Hi}var El=!1;function an(e,t){if(!e||El)return"";El=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(H){var U=H}Reflect.construct(e,[],K)}else{try{K.call()}catch(H){U=H}e.call(K.prototype)}}else{try{throw Error()}catch(H){U=H}(K=e())&&typeof K.catch=="function"&&K.catch(function(){})}}catch(H){if(H&&U&&typeof H.stack=="string")return[H.stack,U.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=i.DetermineComponentFrameRoot(),m=c[0],x=c[1];if(m&&x){var T=m.split(`
|
||
`),k=x.split(`
|
||
`);for(u=i=0;i<T.length&&!T[i].includes("DetermineComponentFrameRoot");)i++;for(;u<k.length&&!k[u].includes("DetermineComponentFrameRoot");)u++;if(i===T.length||u===k.length)for(i=T.length-1,u=k.length-1;1<=i&&0<=u&&T[i]!==k[u];)u--;for(;1<=i&&0<=u;i--,u--)if(T[i]!==k[u]){if(i!==1||u!==1)do if(i--,u--,0>u||T[i]!==k[u]){var G=`
|
||
`+T[i].replace(" at new "," at ");return e.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",e.displayName)),G}while(1<=i&&0<=u);break}}}finally{El=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?fn(n):""}function qi(e,t){switch(e.tag){case 26:case 27:case 5:return fn(e.type);case 16:return fn("Lazy");case 13:return e.child!==t&&t!==null?fn("Suspense Fallback"):fn("Suspense");case 19:return fn("SuspenseList");case 0:case 15:return an(e.type,!1);case 11:return an(e.type.render,!1);case 1:return an(e.type,!0);case 31:return fn("Activity");default:return""}}function En(e){try{var t="",n=null;do t+=qi(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
|
||
Error generating stack: `+i.message+`
|
||
`+i.stack}}var Ga=Object.prototype.hasOwnProperty,Gi=a.unstable_scheduleCallback,Qi=a.unstable_cancelCallback,hr=a.unstable_shouldYield,it=a.unstable_requestPaint,Fe=a.unstable_now,jn=a.unstable_getCurrentPriorityLevel,Vi=a.unstable_ImmediatePriority,Ld=a.unstable_UserBlockingPriority,mr=a.unstable_NormalPriority,vv=a.unstable_LowPriority,Bd=a.unstable_IdlePriority,bv=a.log,xv=a.unstable_setDisableYieldValue,Yi=null,Nt=null;function In(e){if(typeof bv=="function"&&xv(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(Yi,e)}catch{}}var Dt=Math.clz32?Math.clz32:wv,Sv=Math.log,_v=Math.LN2;function wv(e){return e>>>=0,e===0?32:31-(Sv(e)/_v|0)|0}var gr=256,pr=262144,yr=4194304;function Qa(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function vr(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var u=0,c=e.suspendedLanes,m=e.pingedLanes;e=e.warmLanes;var x=i&134217727;return x!==0?(i=x&~c,i!==0?u=Qa(i):(m&=x,m!==0?u=Qa(m):n||(n=x&~e,n!==0&&(u=Qa(n))))):(x=i&~c,x!==0?u=Qa(x):m!==0?u=Qa(m):n||(n=i&~e,n!==0&&(u=Qa(n)))),u===0?0:t!==0&&t!==u&&(t&c)===0&&(c=u&-u,n=t&-t,c>=n||c===32&&(n&4194048)!==0)?t:u}function Ki(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ev(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 Hd(){var e=yr;return yr<<=1,(yr&62914560)===0&&(yr=4194304),e}function ic(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 jv(e,t,n,i,u,c){var m=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 x=e.entanglements,T=e.expirationTimes,k=e.hiddenUpdates;for(n=m&~n;0<n;){var G=31-Dt(n),K=1<<G;x[G]=0,T[G]=-1;var U=k[G];if(U!==null)for(k[G]=null,G=0;G<U.length;G++){var H=U[G];H!==null&&(H.lane&=-536870913)}n&=~K}i!==0&&qd(e,i,0),c!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=c&~(m&~t))}function qd(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-Dt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function Gd(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-Dt(n),u=1<<i;u&t|e[i]&t&&(e[i]|=t),n&=~u}}function Qd(e,t){var n=t&-t;return n=(n&42)!==0?1:sc(n),(n&(e.suspendedLanes|t))!==0?0:n}function sc(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 rc(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Vd(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:Ap(e.type))}function Yd(e,t){var n=W.p;try{return W.p=e,t()}finally{W.p=n}}var ea=Math.random().toString(36).slice(2),ft="__reactFiber$"+ea,_t="__reactProps$"+ea,jl="__reactContainer$"+ea,uc="__reactEvents$"+ea,Tv="__reactListeners$"+ea,Mv="__reactHandles$"+ea,Kd="__reactResources$"+ea,Zi="__reactMarker$"+ea;function cc(e){delete e[ft],delete e[_t],delete e[uc],delete e[Tv],delete e[Mv]}function Tl(e){var t=e[ft];if(t)return t;for(var n=e.parentNode;n;){if(t=n[jl]||n[ft]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=dp(e);e!==null;){if(n=e[ft])return n;e=dp(e)}return t}e=n,n=e.parentNode}return null}function Ml(e){if(e=e[ft]||e[jl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ji(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(r(33))}function Al(e){var t=e[Kd];return t||(t=e[Kd]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function rt(e){e[Zi]=!0}var Xd=new Set,Zd={};function Va(e,t){Cl(e,t),Cl(e+"Capture",t)}function Cl(e,t){for(Zd[e]=t,e=0;e<t.length;e++)Xd.add(t[e])}var Av=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]*$"),Jd={},Fd={};function Cv(e){return Ga.call(Fd,e)?!0:Ga.call(Jd,e)?!1:Av.test(e)?Fd[e]=!0:(Jd[e]=!0,!1)}function br(e,t,n){if(Cv(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function xr(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 Tn(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function Xt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function $d(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Rv(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var u=i.get,c=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(m){n=""+m,c.call(this,m)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(m){n=""+m},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function oc(e){if(!e._valueTracker){var t=$d(e)?"checked":"value";e._valueTracker=Rv(e,t,""+e[t])}}function Wd(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=$d(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Sr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var zv=/[\n"\\]/g;function Zt(e){return e.replace(zv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function fc(e,t,n,i,u,c,m,x){e.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?e.type=m:e.removeAttribute("type"),t!=null?m==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Xt(t)):e.value!==""+Xt(t)&&(e.value=""+Xt(t)):m!=="submit"&&m!=="reset"||e.removeAttribute("value"),t!=null?dc(e,m,Xt(t)):n!=null?dc(e,m,Xt(n)):i!=null&&e.removeAttribute("value"),u==null&&c!=null&&(e.defaultChecked=!!c),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+Xt(x):e.removeAttribute("name")}function Pd(e,t,n,i,u,c,m,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){oc(e);return}n=n!=null?""+Xt(n):"",t=t!=null?""+Xt(t):n,x||t===e.value||(e.value=t),e.defaultValue=t}i=i??u,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=x?e.checked:!!i,e.defaultChecked=!!i,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(e.name=m),oc(e)}function dc(e,t,n){t==="number"&&Sr(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Rl(e,t,n,i){if(e=e.options,t){t={};for(var u=0;u<n.length;u++)t["$"+n[u]]=!0;for(n=0;n<e.length;n++)u=t.hasOwnProperty("$"+e[n].value),e[n].selected!==u&&(e[n].selected=u),u&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Xt(n),t=null,u=0;u<e.length;u++){if(e[u].value===n){e[u].selected=!0,i&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function Id(e,t,n){if(t!=null&&(t=""+Xt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Xt(n):""}function eh(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(r(92));if(ne(i)){if(1<i.length)throw Error(r(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Xt(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),oc(e)}function zl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Nv=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 th(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||Nv.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function nh(e,t,n){if(t!=null&&typeof t!="object")throw Error(r(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var u in t)i=t[u],t.hasOwnProperty(u)&&n[u]!==i&&th(e,u,i)}else for(var c in t)t.hasOwnProperty(c)&&th(e,c,t[c])}function hc(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 Dv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Ov=/^[\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 _r(e){return Ov.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Mn(){}var mc=null;function gc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Nl=null,Dl=null;function ah(e){var t=Ml(e);if(t&&(e=t.stateNode)){var n=e[_t]||null;e:switch(e=t.stateNode,t.type){case"input":if(fc(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="'+Zt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var u=i[_t]||null;if(!u)throw Error(r(90));fc(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&Wd(i)}break e;case"textarea":Id(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Rl(e,!!n.multiple,t,!1)}}}var pc=!1;function lh(e,t,n){if(pc)return e(t,n);pc=!0;try{var i=e(t);return i}finally{if(pc=!1,(Nl!==null||Dl!==null)&&(cu(),Nl&&(t=Nl,e=Dl,Dl=Nl=null,ah(t),e)))for(t=0;t<e.length;t++)ah(e[t])}}function Fi(e,t){var n=e.stateNode;if(n===null)return null;var i=n[_t]||null;if(i===null)return null;n=i[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":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(r(231,t,typeof n));return n}var An=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yc=!1;if(An)try{var $i={};Object.defineProperty($i,"passive",{get:function(){yc=!0}}),window.addEventListener("test",$i,$i),window.removeEventListener("test",$i,$i)}catch{yc=!1}var ta=null,vc=null,wr=null;function ih(){if(wr)return wr;var e,t=vc,n=t.length,i,u="value"in ta?ta.value:ta.textContent,c=u.length;for(e=0;e<n&&t[e]===u[e];e++);var m=n-e;for(i=1;i<=m&&t[n-i]===u[c-i];i++);return wr=u.slice(e,1<i?1-i:void 0)}function Er(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 jr(){return!0}function sh(){return!1}function wt(e){function t(n,i,u,c,m){this._reactName=n,this._targetInst=u,this.type=i,this.nativeEvent=c,this.target=m,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(n=e[x],this[x]=n?n(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?jr:sh,this.isPropagationStopped=sh,this}return y(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=jr)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=jr)},persist:function(){},isPersistent:jr}),t}var Ya={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tr=wt(Ya),Wi=y({},Ya,{view:0,detail:0}),kv=wt(Wi),bc,xc,Pi,Mr=y({},Wi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_c,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!==Pi&&(Pi&&e.type==="mousemove"?(bc=e.screenX-Pi.screenX,xc=e.screenY-Pi.screenY):xc=bc=0,Pi=e),bc)},movementY:function(e){return"movementY"in e?e.movementY:xc}}),rh=wt(Mr),Uv=y({},Mr,{dataTransfer:0}),Lv=wt(Uv),Bv=y({},Wi,{relatedTarget:0}),Sc=wt(Bv),Hv=y({},Ya,{animationName:0,elapsedTime:0,pseudoElement:0}),qv=wt(Hv),Gv=y({},Ya,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Qv=wt(Gv),Vv=y({},Ya,{data:0}),uh=wt(Vv),Yv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Kv={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"},Xv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Xv[e])?!!t[e]:!1}function _c(){return Zv}var Jv=y({},Wi,{key:function(e){if(e.key){var t=Yv[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Er(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Kv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_c,charCode:function(e){return e.type==="keypress"?Er(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Er(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Fv=wt(Jv),$v=y({},Mr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ch=wt($v),Wv=y({},Wi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_c}),Pv=wt(Wv),Iv=y({},Ya,{propertyName:0,elapsedTime:0,pseudoElement:0}),eb=wt(Iv),tb=y({},Mr,{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}),nb=wt(tb),ab=y({},Ya,{newState:0,oldState:0}),lb=wt(ab),ib=[9,13,27,32],wc=An&&"CompositionEvent"in window,Ii=null;An&&"documentMode"in document&&(Ii=document.documentMode);var sb=An&&"TextEvent"in window&&!Ii,oh=An&&(!wc||Ii&&8<Ii&&11>=Ii),fh=" ",dh=!1;function hh(e,t){switch(e){case"keyup":return ib.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function mh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ol=!1;function rb(e,t){switch(e){case"compositionend":return mh(t);case"keypress":return t.which!==32?null:(dh=!0,fh);case"textInput":return e=t.data,e===fh&&dh?null:e;default:return null}}function ub(e,t){if(Ol)return e==="compositionend"||!wc&&hh(e,t)?(e=ih(),wr=vc=ta=null,Ol=!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 oh&&t.locale!=="ko"?null:t.data;default:return null}}var cb={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 gh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!cb[e.type]:t==="textarea"}function ph(e,t,n,i){Nl?Dl?Dl.push(i):Dl=[i]:Nl=i,t=pu(t,"onChange"),0<t.length&&(n=new Tr("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var es=null,ts=null;function ob(e){Pg(e,0)}function Ar(e){var t=Ji(e);if(Wd(t))return e}function yh(e,t){if(e==="change")return t}var vh=!1;if(An){var Ec;if(An){var jc="oninput"in document;if(!jc){var bh=document.createElement("div");bh.setAttribute("oninput","return;"),jc=typeof bh.oninput=="function"}Ec=jc}else Ec=!1;vh=Ec&&(!document.documentMode||9<document.documentMode)}function xh(){es&&(es.detachEvent("onpropertychange",Sh),ts=es=null)}function Sh(e){if(e.propertyName==="value"&&Ar(ts)){var t=[];ph(t,ts,e,gc(e)),lh(ob,t)}}function fb(e,t,n){e==="focusin"?(xh(),es=t,ts=n,es.attachEvent("onpropertychange",Sh)):e==="focusout"&&xh()}function db(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ar(ts)}function hb(e,t){if(e==="click")return Ar(t)}function mb(e,t){if(e==="input"||e==="change")return Ar(t)}function gb(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is=="function"?Object.is:gb;function ns(e,t){if(Ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var u=n[i];if(!Ga.call(t,u)||!Ot(e[u],t[u]))return!1}return!0}function _h(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function wh(e,t){var n=_h(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=_h(n)}}function Eh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Eh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function jh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Sr(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=Sr(e.document)}return t}function Tc(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 pb=An&&"documentMode"in document&&11>=document.documentMode,kl=null,Mc=null,as=null,Ac=!1;function Th(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ac||kl==null||kl!==Sr(i)||(i=kl,"selectionStart"in i&&Tc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),as&&ns(as,i)||(as=i,i=pu(Mc,"onSelect"),0<i.length&&(t=new Tr("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=kl)))}function Ka(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ul={animationend:Ka("Animation","AnimationEnd"),animationiteration:Ka("Animation","AnimationIteration"),animationstart:Ka("Animation","AnimationStart"),transitionrun:Ka("Transition","TransitionRun"),transitionstart:Ka("Transition","TransitionStart"),transitioncancel:Ka("Transition","TransitionCancel"),transitionend:Ka("Transition","TransitionEnd")},Cc={},Mh={};An&&(Mh=document.createElement("div").style,"AnimationEvent"in window||(delete Ul.animationend.animation,delete Ul.animationiteration.animation,delete Ul.animationstart.animation),"TransitionEvent"in window||delete Ul.transitionend.transition);function Xa(e){if(Cc[e])return Cc[e];if(!Ul[e])return e;var t=Ul[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Mh)return Cc[e]=t[n];return e}var Ah=Xa("animationend"),Ch=Xa("animationiteration"),Rh=Xa("animationstart"),yb=Xa("transitionrun"),vb=Xa("transitionstart"),bb=Xa("transitioncancel"),zh=Xa("transitionend"),Nh=new Map,Rc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Rc.push("scrollEnd");function ln(e,t){Nh.set(e,t),Va(t,[e])}var Cr=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=[],Ll=0,zc=0;function Rr(){for(var e=Ll,t=zc=Ll=0;t<e;){var n=Jt[t];Jt[t++]=null;var i=Jt[t];Jt[t++]=null;var u=Jt[t];Jt[t++]=null;var c=Jt[t];if(Jt[t++]=null,i!==null&&u!==null){var m=i.pending;m===null?u.next=u:(u.next=m.next,m.next=u),i.pending=u}c!==0&&Dh(n,u,c)}}function zr(e,t,n,i){Jt[Ll++]=e,Jt[Ll++]=t,Jt[Ll++]=n,Jt[Ll++]=i,zc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function Nc(e,t,n,i){return zr(e,t,n,i),Nr(e)}function Za(e,t){return zr(e,null,null,t),Nr(e)}function Dh(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var u=!1,c=e.return;c!==null;)c.childLanes|=n,i=c.alternate,i!==null&&(i.childLanes|=n),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(u=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,u&&t!==null&&(u=31-Dt(n),e=c.hiddenUpdates,i=e[u],i===null?e[u]=[t]:i.push(t),t.lane=n|536870912),c):null}function Nr(e){if(50<js)throw js=0,Qo=null,Error(r(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Bl={};function xb(e,t,n,i){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=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kt(e,t,n,i){return new xb(e,t,n,i)}function Dc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Cn(e,t){var n=e.alternate;return n===null?(n=kt(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&65011712,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 Oh(e,t){e.flags&=65011714;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 Dr(e,t,n,i,u,c){var m=0;if(i=e,typeof e=="function")Dc(e)&&(m=1);else if(typeof e=="string")m=j1(e,n,ie.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Q:return e=kt(31,n,t,u),e.elementType=Q,e.lanes=c,e;case E:return Ja(n.children,u,c,t);case j:m=8,u|=24;break;case R:return e=kt(12,n,t,u|2),e.elementType=R,e.lanes=c,e;case X:return e=kt(13,n,t,u),e.elementType=X,e.lanes=c,e;case q:return e=kt(19,n,t,u),e.elementType=q,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case L:m=10;break e;case z:m=9;break e;case D:m=11;break e;case Y:m=14;break e;case J:m=16,i=null;break e}m=29,n=Error(r(130,e===null?"null":typeof e,"")),i=null}return t=kt(m,n,t,u),t.elementType=e,t.type=i,t.lanes=c,t}function Ja(e,t,n,i){return e=kt(7,e,i,t),e.lanes=n,e}function Oc(e,t,n){return e=kt(6,e,null,t),e.lanes=n,e}function kh(e){var t=kt(18,null,null,0);return t.stateNode=e,t}function kc(e,t,n){return t=kt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Uh=new WeakMap;function Ft(e,t){if(typeof e=="object"&&e!==null){var n=Uh.get(e);return n!==void 0?n:(t={value:e,source:t,stack:En(t)},Uh.set(e,t),t)}return{value:e,source:t,stack:En(t)}}var Hl=[],ql=0,Or=null,ls=0,$t=[],Wt=0,na=null,dn=1,hn="";function Rn(e,t){Hl[ql++]=ls,Hl[ql++]=Or,Or=e,ls=t}function Lh(e,t,n){$t[Wt++]=dn,$t[Wt++]=hn,$t[Wt++]=na,na=e;var i=dn;e=hn;var u=32-Dt(i)-1;i&=~(1<<u),n+=1;var c=32-Dt(t)+u;if(30<c){var m=u-u%5;c=(i&(1<<m)-1).toString(32),i>>=m,u-=m,dn=1<<32-Dt(t)+u|n<<u|i,hn=c+e}else dn=1<<c|n<<u|i,hn=e}function Uc(e){e.return!==null&&(Rn(e,1),Lh(e,1,0))}function Lc(e){for(;e===Or;)Or=Hl[--ql],Hl[ql]=null,ls=Hl[--ql],Hl[ql]=null;for(;e===na;)na=$t[--Wt],$t[Wt]=null,hn=$t[--Wt],$t[Wt]=null,dn=$t[--Wt],$t[Wt]=null}function Bh(e,t){$t[Wt++]=dn,$t[Wt++]=hn,$t[Wt++]=na,dn=t.id,hn=t.overflow,na=e}var dt=null,Ye=null,Te=!1,aa=null,Pt=!1,Bc=Error(r(519));function la(e){var t=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw is(Ft(t,e)),Bc}function Hh(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[ft]=e,t[_t]=i,n){case"dialog":xe("cancel",t),xe("close",t);break;case"iframe":case"object":case"embed":xe("load",t);break;case"video":case"audio":for(n=0;n<Ms.length;n++)xe(Ms[n],t);break;case"source":xe("error",t);break;case"img":case"image":case"link":xe("error",t),xe("load",t);break;case"details":xe("toggle",t);break;case"input":xe("invalid",t),Pd(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":xe("invalid",t);break;case"textarea":xe("invalid",t),eh(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||np(t.textContent,n)?(i.popover!=null&&(xe("beforetoggle",t),xe("toggle",t)),i.onScroll!=null&&xe("scroll",t),i.onScrollEnd!=null&&xe("scrollend",t),i.onClick!=null&&(t.onclick=Mn),t=!0):t=!1,t||la(e,!0)}function qh(e){for(dt=e.return;dt;)switch(dt.tag){case 5:case 31:case 13:Pt=!1;return;case 27:case 3:Pt=!0;return;default:dt=dt.return}}function Gl(e){if(e!==dt)return!1;if(!Te)return qh(e),Te=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||af(e.type,e.memoizedProps)),n=!n),n&&Ye&&la(e),qh(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ye=fp(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));Ye=fp(e)}else t===27?(t=Ye,va(e.type)?(e=cf,cf=null,Ye=e):Ye=t):Ye=dt?en(e.stateNode.nextSibling):null;return!0}function Fa(){Ye=dt=null,Te=!1}function Hc(){var e=aa;return e!==null&&(Mt===null?Mt=e:Mt.push.apply(Mt,e),aa=null),e}function is(e){aa===null?aa=[e]:aa.push(e)}var qc=M(null),$a=null,zn=null;function ia(e,t,n){te(qc,t._currentValue),t._currentValue=n}function Nn(e){e._currentValue=qc.current,Z(qc)}function Gc(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Qc(e,t,n,i){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var c=u.dependencies;if(c!==null){var m=u.child;c=c.firstContext;e:for(;c!==null;){var x=c;c=u;for(var T=0;T<t.length;T++)if(x.context===t[T]){c.lanes|=n,x=c.alternate,x!==null&&(x.lanes|=n),Gc(c.return,n,e),i||(m=null);break e}c=x.next}}else if(u.tag===18){if(m=u.return,m===null)throw Error(r(341));m.lanes|=n,c=m.alternate,c!==null&&(c.lanes|=n),Gc(m,n,e),m=null}else m=u.child;if(m!==null)m.return=u;else for(m=u;m!==null;){if(m===e){m=null;break}if(u=m.sibling,u!==null){u.return=m.return,m=u;break}m=m.return}u=m}}function Ql(e,t,n,i){e=null;for(var u=t,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var m=u.alternate;if(m===null)throw Error(r(387));if(m=m.memoizedProps,m!==null){var x=u.type;Ot(u.pendingProps.value,m.value)||(e!==null?e.push(x):e=[x])}}else if(u===Ae.current){if(m=u.alternate,m===null)throw Error(r(387));m.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(Ns):e=[Ns])}u=u.return}e!==null&&Qc(t,e,n,i),t.flags|=262144}function kr(e){for(e=e.firstContext;e!==null;){if(!Ot(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Wa(e){$a=e,zn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ht(e){return Gh($a,e)}function Ur(e,t){return $a===null&&Wa(e),Gh(e,t)}function Gh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},zn===null){if(e===null)throw Error(r(308));zn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else zn=zn.next=t;return n}var Sb=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},_b=a.unstable_scheduleCallback,wb=a.unstable_NormalPriority,tt={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Vc(){return{controller:new Sb,data:new Map,refCount:0}}function ss(e){e.refCount--,e.refCount===0&&_b(wb,function(){e.controller.abort()})}var rs=null,Yc=0,Vl=0,Yl=null;function Eb(e,t){if(rs===null){var n=rs=[];Yc=0,Vl=Jo(),Yl={status:"pending",value:void 0,then:function(i){n.push(i)}}}return Yc++,t.then(Qh,Qh),t}function Qh(){if(--Yc===0&&rs!==null){Yl!==null&&(Yl.status="fulfilled");var e=rs;rs=null,Vl=0,Yl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function jb(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var u=0;u<n.length;u++)(0,n[u])(t)},function(u){for(i.status="rejected",i.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),i}var Vh=B.S;B.S=function(e,t){Tg=Fe(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Eb(e,t),Vh!==null&&Vh(e,t)};var Pa=M(null);function Kc(){var e=Pa.current;return e!==null?e:He.pooledCache}function Lr(e,t){t===null?te(Pa,Pa.current):te(Pa,t.pool)}function Yh(){var e=Kc();return e===null?null:{parent:tt._currentValue,pool:e}}var Kl=Error(r(460)),Xc=Error(r(474)),Br=Error(r(542)),Hr={then:function(){}};function Kh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Xh(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Mn,Mn),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jh(e),e;default:if(typeof t.status=="string")t.then(Mn,Mn);else{if(e=He,e!==null&&100<e.shellSuspendCounter)throw Error(r(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=i}},function(i){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,Jh(e),e}throw el=t,Kl}}function Ia(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(el=n,Kl):n}}var el=null;function Zh(){if(el===null)throw Error(r(459));var e=el;return el=null,e}function Jh(e){if(e===Kl||e===Br)throw Error(r(483))}var Xl=null,us=0;function qr(e){var t=us;return us+=1,Xl===null&&(Xl=[]),Xh(Xl,e,t)}function cs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Gr(e,t){throw t.$$typeof===S?Error(r(525)):(e=Object.prototype.toString.call(t),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function Fh(e){function t(N,A){if(e){var O=N.deletions;O===null?(N.deletions=[A],N.flags|=16):O.push(A)}}function n(N,A){if(!e)return null;for(;A!==null;)t(N,A),A=A.sibling;return null}function i(N){for(var A=new Map;N!==null;)N.key!==null?A.set(N.key,N):A.set(N.index,N),N=N.sibling;return A}function u(N,A){return N=Cn(N,A),N.index=0,N.sibling=null,N}function c(N,A,O){return N.index=O,e?(O=N.alternate,O!==null?(O=O.index,O<A?(N.flags|=67108866,A):O):(N.flags|=67108866,A)):(N.flags|=1048576,A)}function m(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function x(N,A,O,V){return A===null||A.tag!==6?(A=Oc(O,N.mode,V),A.return=N,A):(A=u(A,O),A.return=N,A)}function T(N,A,O,V){var ue=O.type;return ue===E?G(N,A,O.props.children,V,O.key):A!==null&&(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===J&&Ia(ue)===A.type)?(A=u(A,O.props),cs(A,O),A.return=N,A):(A=Dr(O.type,O.key,O.props,null,N.mode,V),cs(A,O),A.return=N,A)}function k(N,A,O,V){return A===null||A.tag!==4||A.stateNode.containerInfo!==O.containerInfo||A.stateNode.implementation!==O.implementation?(A=kc(O,N.mode,V),A.return=N,A):(A=u(A,O.children||[]),A.return=N,A)}function G(N,A,O,V,ue){return A===null||A.tag!==7?(A=Ja(O,N.mode,V,ue),A.return=N,A):(A=u(A,O),A.return=N,A)}function K(N,A,O){if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return A=Oc(""+A,N.mode,O),A.return=N,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case _:return O=Dr(A.type,A.key,A.props,null,N.mode,O),cs(O,A),O.return=N,O;case w:return A=kc(A,N.mode,O),A.return=N,A;case J:return A=Ia(A),K(N,A,O)}if(ne(A)||I(A))return A=Ja(A,N.mode,O,null),A.return=N,A;if(typeof A.then=="function")return K(N,qr(A),O);if(A.$$typeof===L)return K(N,Ur(N,A),O);Gr(N,A)}return null}function U(N,A,O,V){var ue=A!==null?A.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return ue!==null?null:x(N,A,""+O,V);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case _:return O.key===ue?T(N,A,O,V):null;case w:return O.key===ue?k(N,A,O,V):null;case J:return O=Ia(O),U(N,A,O,V)}if(ne(O)||I(O))return ue!==null?null:G(N,A,O,V,null);if(typeof O.then=="function")return U(N,A,qr(O),V);if(O.$$typeof===L)return U(N,A,Ur(N,O),V);Gr(N,O)}return null}function H(N,A,O,V,ue){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return N=N.get(O)||null,x(A,N,""+V,ue);if(typeof V=="object"&&V!==null){switch(V.$$typeof){case _:return N=N.get(V.key===null?O:V.key)||null,T(A,N,V,ue);case w:return N=N.get(V.key===null?O:V.key)||null,k(A,N,V,ue);case J:return V=Ia(V),H(N,A,O,V,ue)}if(ne(V)||I(V))return N=N.get(O)||null,G(A,N,V,ue,null);if(typeof V.then=="function")return H(N,A,O,qr(V),ue);if(V.$$typeof===L)return H(N,A,O,Ur(A,V),ue);Gr(A,V)}return null}function le(N,A,O,V){for(var ue=null,Ce=null,se=A,ye=A=0,we=null;se!==null&&ye<O.length;ye++){se.index>ye?(we=se,se=null):we=se.sibling;var Re=U(N,se,O[ye],V);if(Re===null){se===null&&(se=we);break}e&&se&&Re.alternate===null&&t(N,se),A=c(Re,A,ye),Ce===null?ue=Re:Ce.sibling=Re,Ce=Re,se=we}if(ye===O.length)return n(N,se),Te&&Rn(N,ye),ue;if(se===null){for(;ye<O.length;ye++)se=K(N,O[ye],V),se!==null&&(A=c(se,A,ye),Ce===null?ue=se:Ce.sibling=se,Ce=se);return Te&&Rn(N,ye),ue}for(se=i(se);ye<O.length;ye++)we=H(se,N,ye,O[ye],V),we!==null&&(e&&we.alternate!==null&&se.delete(we.key===null?ye:we.key),A=c(we,A,ye),Ce===null?ue=we:Ce.sibling=we,Ce=we);return e&&se.forEach(function(wa){return t(N,wa)}),Te&&Rn(N,ye),ue}function fe(N,A,O,V){if(O==null)throw Error(r(151));for(var ue=null,Ce=null,se=A,ye=A=0,we=null,Re=O.next();se!==null&&!Re.done;ye++,Re=O.next()){se.index>ye?(we=se,se=null):we=se.sibling;var wa=U(N,se,Re.value,V);if(wa===null){se===null&&(se=we);break}e&&se&&wa.alternate===null&&t(N,se),A=c(wa,A,ye),Ce===null?ue=wa:Ce.sibling=wa,Ce=wa,se=we}if(Re.done)return n(N,se),Te&&Rn(N,ye),ue;if(se===null){for(;!Re.done;ye++,Re=O.next())Re=K(N,Re.value,V),Re!==null&&(A=c(Re,A,ye),Ce===null?ue=Re:Ce.sibling=Re,Ce=Re);return Te&&Rn(N,ye),ue}for(se=i(se);!Re.done;ye++,Re=O.next())Re=H(se,N,ye,Re.value,V),Re!==null&&(e&&Re.alternate!==null&&se.delete(Re.key===null?ye:Re.key),A=c(Re,A,ye),Ce===null?ue=Re:Ce.sibling=Re,Ce=Re);return e&&se.forEach(function(U1){return t(N,U1)}),Te&&Rn(N,ye),ue}function Be(N,A,O,V){if(typeof O=="object"&&O!==null&&O.type===E&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case _:e:{for(var ue=O.key;A!==null;){if(A.key===ue){if(ue=O.type,ue===E){if(A.tag===7){n(N,A.sibling),V=u(A,O.props.children),V.return=N,N=V;break e}}else if(A.elementType===ue||typeof ue=="object"&&ue!==null&&ue.$$typeof===J&&Ia(ue)===A.type){n(N,A.sibling),V=u(A,O.props),cs(V,O),V.return=N,N=V;break e}n(N,A);break}else t(N,A);A=A.sibling}O.type===E?(V=Ja(O.props.children,N.mode,V,O.key),V.return=N,N=V):(V=Dr(O.type,O.key,O.props,null,N.mode,V),cs(V,O),V.return=N,N=V)}return m(N);case w:e:{for(ue=O.key;A!==null;){if(A.key===ue)if(A.tag===4&&A.stateNode.containerInfo===O.containerInfo&&A.stateNode.implementation===O.implementation){n(N,A.sibling),V=u(A,O.children||[]),V.return=N,N=V;break e}else{n(N,A);break}else t(N,A);A=A.sibling}V=kc(O,N.mode,V),V.return=N,N=V}return m(N);case J:return O=Ia(O),Be(N,A,O,V)}if(ne(O))return le(N,A,O,V);if(I(O)){if(ue=I(O),typeof ue!="function")throw Error(r(150));return O=ue.call(O),fe(N,A,O,V)}if(typeof O.then=="function")return Be(N,A,qr(O),V);if(O.$$typeof===L)return Be(N,A,Ur(N,O),V);Gr(N,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,A!==null&&A.tag===6?(n(N,A.sibling),V=u(A,O),V.return=N,N=V):(n(N,A),V=Oc(O,N.mode,V),V.return=N,N=V),m(N)):n(N,A)}return function(N,A,O,V){try{us=0;var ue=Be(N,A,O,V);return Xl=null,ue}catch(se){if(se===Kl||se===Br)throw se;var Ce=kt(29,se,null,N.mode);return Ce.lanes=V,Ce.return=N,Ce}finally{}}}var tl=Fh(!0),$h=Fh(!1),sa=!1;function Zc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Jc(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 ra(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ua(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(ze&2)!==0){var u=i.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),i.pending=t,t=Nr(e),Dh(e,null,n),t}return zr(e,i,t,n),Nr(e)}function os(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Gd(e,n)}}function Fc(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var u=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var m={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?u=c=m:c=c.next=m,n=n.next}while(n!==null);c===null?u=c=t:c=c.next=t}else u=c=t;n={baseState:i.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var $c=!1;function fs(){if($c){var e=Yl;if(e!==null)throw e}}function ds(e,t,n,i){$c=!1;var u=e.updateQueue;sa=!1;var c=u.firstBaseUpdate,m=u.lastBaseUpdate,x=u.shared.pending;if(x!==null){u.shared.pending=null;var T=x,k=T.next;T.next=null,m===null?c=k:m.next=k,m=T;var G=e.alternate;G!==null&&(G=G.updateQueue,x=G.lastBaseUpdate,x!==m&&(x===null?G.firstBaseUpdate=k:x.next=k,G.lastBaseUpdate=T))}if(c!==null){var K=u.baseState;m=0,G=k=T=null,x=c;do{var U=x.lane&-536870913,H=U!==x.lane;if(H?(_e&U)===U:(i&U)===U){U!==0&&U===Vl&&($c=!0),G!==null&&(G=G.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var le=e,fe=x;U=t;var Be=n;switch(fe.tag){case 1:if(le=fe.payload,typeof le=="function"){K=le.call(Be,K,U);break e}K=le;break e;case 3:le.flags=le.flags&-65537|128;case 0:if(le=fe.payload,U=typeof le=="function"?le.call(Be,K,U):le,U==null)break e;K=y({},K,U);break e;case 2:sa=!0}}U=x.callback,U!==null&&(e.flags|=64,H&&(e.flags|=8192),H=u.callbacks,H===null?u.callbacks=[U]:H.push(U))}else H={lane:U,tag:x.tag,payload:x.payload,callback:x.callback,next:null},G===null?(k=G=H,T=K):G=G.next=H,m|=U;if(x=x.next,x===null){if(x=u.shared.pending,x===null)break;H=x,x=H.next,H.next=null,u.lastBaseUpdate=H,u.shared.pending=null}}while(!0);G===null&&(T=K),u.baseState=T,u.firstBaseUpdate=k,u.lastBaseUpdate=G,c===null&&(u.shared.lanes=0),ha|=m,e.lanes=m,e.memoizedState=K}}function Wh(e,t){if(typeof e!="function")throw Error(r(191,e));e.call(t)}function Ph(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Wh(n[e],t)}var Zl=M(null),Qr=M(0);function Ih(e,t){e=Gn,te(Qr,e),te(Zl,t),Gn=e|t.baseLanes}function Wc(){te(Qr,Gn),te(Zl,Zl.current)}function Pc(){Gn=Qr.current,Z(Zl),Z(Qr)}var Ut=M(null),It=null;function ca(e){var t=e.alternate;te(Ie,Ie.current&1),te(Ut,e),It===null&&(t===null||Zl.current!==null||t.memoizedState!==null)&&(It=e)}function Ic(e){te(Ie,Ie.current),te(Ut,e),It===null&&(It=e)}function em(e){e.tag===22?(te(Ie,Ie.current),te(Ut,e),It===null&&(It=e)):oa()}function oa(){te(Ie,Ie.current),te(Ut,Ut.current)}function Lt(e){Z(Ut),It===e&&(It=null),Z(Ie)}var Ie=M(0);function Vr(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||rf(n)||uf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Dn=0,pe=null,Ue=null,nt=null,Yr=!1,Jl=!1,nl=!1,Kr=0,hs=0,Fl=null,Tb=0;function $e(){throw Error(r(321))}function eo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ot(e[n],t[n]))return!1;return!0}function to(e,t,n,i,u,c){return Dn=c,pe=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?Lm:yo,nl=!1,c=n(i,u),nl=!1,Jl&&(c=nm(t,n,i,u)),tm(e),c}function tm(e){B.H=ps;var t=Ue!==null&&Ue.next!==null;if(Dn=0,nt=Ue=pe=null,Yr=!1,hs=0,Fl=null,t)throw Error(r(300));e===null||at||(e=e.dependencies,e!==null&&kr(e)&&(at=!0))}function nm(e,t,n,i){pe=e;var u=0;do{if(Jl&&(Fl=null),hs=0,Jl=!1,25<=u)throw Error(r(301));if(u+=1,nt=Ue=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}B.H=Bm,c=t(n,i)}while(Jl);return c}function Mb(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?ms(t):t,e=e.useState()[0],(Ue!==null?Ue.memoizedState:null)!==e&&(pe.flags|=1024),t}function no(){var e=Kr!==0;return Kr=0,e}function ao(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function lo(e){if(Yr){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Yr=!1}Dn=0,nt=Ue=pe=null,Jl=!1,hs=Kr=0,Fl=null}function xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return nt===null?pe.memoizedState=nt=e:nt=nt.next=e,nt}function et(){if(Ue===null){var e=pe.alternate;e=e!==null?e.memoizedState:null}else e=Ue.next;var t=nt===null?pe.memoizedState:nt.next;if(t!==null)nt=t,Ue=e;else{if(e===null)throw pe.alternate===null?Error(r(467)):Error(r(310));Ue=e,e={memoizedState:Ue.memoizedState,baseState:Ue.baseState,baseQueue:Ue.baseQueue,queue:Ue.queue,next:null},nt===null?pe.memoizedState=nt=e:nt=nt.next=e}return nt}function Xr(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ms(e){var t=hs;return hs+=1,Fl===null&&(Fl=[]),e=Xh(Fl,e,t),t=pe,(nt===null?t.memoizedState:nt.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?Lm:yo),e}function Zr(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ms(e);if(e.$$typeof===L)return ht(e)}throw Error(r(438,String(e)))}function io(e){var t=null,n=pe.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=pe.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Xr(),pe.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=P;return t.index++,n}function On(e,t){return typeof t=="function"?t(e):t}function Jr(e){var t=et();return so(t,Ue,e)}function so(e,t,n){var i=e.queue;if(i===null)throw Error(r(311));i.lastRenderedReducer=n;var u=e.baseQueue,c=i.pending;if(c!==null){if(u!==null){var m=u.next;u.next=c.next,c.next=m}t.baseQueue=u=c,i.pending=null}if(c=e.baseState,u===null)e.memoizedState=c;else{t=u.next;var x=m=null,T=null,k=t,G=!1;do{var K=k.lane&-536870913;if(K!==k.lane?(_e&K)===K:(Dn&K)===K){var U=k.revertLane;if(U===0)T!==null&&(T=T.next={lane:0,revertLane:0,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null}),K===Vl&&(G=!0);else if((Dn&U)===U){k=k.next,U===Vl&&(G=!0);continue}else K={lane:0,revertLane:k.revertLane,gesture:null,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},T===null?(x=T=K,m=c):T=T.next=K,pe.lanes|=U,ha|=U;K=k.action,nl&&n(c,K),c=k.hasEagerState?k.eagerState:n(c,K)}else U={lane:K,revertLane:k.revertLane,gesture:k.gesture,action:k.action,hasEagerState:k.hasEagerState,eagerState:k.eagerState,next:null},T===null?(x=T=U,m=c):T=T.next=U,pe.lanes|=K,ha|=K;k=k.next}while(k!==null&&k!==t);if(T===null?m=c:T.next=x,!Ot(c,e.memoizedState)&&(at=!0,G&&(n=Yl,n!==null)))throw n;e.memoizedState=c,e.baseState=m,e.baseQueue=T,i.lastRenderedState=c}return u===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function ro(e){var t=et(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,u=n.pending,c=t.memoizedState;if(u!==null){n.pending=null;var m=u=u.next;do c=e(c,m.action),m=m.next;while(m!==u);Ot(c,t.memoizedState)||(at=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),n.lastRenderedState=c}return[c,i]}function am(e,t,n){var i=pe,u=et(),c=Te;if(c){if(n===void 0)throw Error(r(407));n=n()}else n=t();var m=!Ot((Ue||u).memoizedState,n);if(m&&(u.memoizedState=n,at=!0),u=u.queue,oo(sm.bind(null,i,u,e),[e]),u.getSnapshot!==t||m||nt!==null&&nt.memoizedState.tag&1){if(i.flags|=2048,$l(9,{destroy:void 0},im.bind(null,i,u,n,t),null),He===null)throw Error(r(349));c||(Dn&127)!==0||lm(i,t,n)}return n}function lm(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=pe.updateQueue,t===null?(t=Xr(),pe.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function im(e,t,n,i){t.value=n,t.getSnapshot=i,rm(t)&&um(e)}function sm(e,t,n){return n(function(){rm(t)&&um(e)})}function rm(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ot(e,n)}catch{return!0}}function um(e){var t=Za(e,2);t!==null&&At(t,e,2)}function uo(e){var t=xt();if(typeof e=="function"){var n=e;if(e=n(),nl){In(!0);try{n()}finally{In(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:e},t}function cm(e,t,n,i){return e.baseState=n,so(e,Ue,typeof i=="function"?i:On)}function Ab(e,t,n,i,u){if(Wr(e))throw Error(r(485));if(e=t.action,e!==null){var c={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};B.T!==null?n(!0):c.isTransition=!1,i(c),n=t.pending,n===null?(c.next=t.pending=c,om(t,c)):(c.next=n.next,t.pending=n.next=c)}}function om(e,t){var n=t.action,i=t.payload,u=e.state;if(t.isTransition){var c=B.T,m={};B.T=m;try{var x=n(u,i),T=B.S;T!==null&&T(m,x),fm(e,t,x)}catch(k){co(e,t,k)}finally{c!==null&&m.types!==null&&(c.types=m.types),B.T=c}}else try{c=n(u,i),fm(e,t,c)}catch(k){co(e,t,k)}}function fm(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){dm(e,t,i)},function(i){return co(e,t,i)}):dm(e,t,n)}function dm(e,t,n){t.status="fulfilled",t.value=n,hm(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,om(e,n)))}function co(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,hm(t),t=t.next;while(t!==i)}e.action=null}function hm(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function mm(e,t){return t}function gm(e,t){if(Te){var n=He.formState;if(n!==null){e:{var i=pe;if(Te){if(Ye){t:{for(var u=Ye,c=Pt;u.nodeType!==8;){if(!c){u=null;break t}if(u=en(u.nextSibling),u===null){u=null;break t}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Ye=en(u.nextSibling),i=u.data==="F!";break e}}la(i)}i=!1}i&&(t=n[0])}}return n=xt(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:mm,lastRenderedState:t},n.queue=i,n=Om.bind(null,pe,i),i.dispatch=n,i=uo(!1),c=po.bind(null,pe,!1,i.queue),i=xt(),u={state:t,dispatch:null,action:e,pending:null},i.queue=u,n=Ab.bind(null,pe,u,c,n),u.dispatch=n,i.memoizedState=e,[t,n,!1]}function pm(e){var t=et();return ym(t,Ue,e)}function ym(e,t,n){if(t=so(e,t,mm)[0],e=Jr(On)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=ms(t)}catch(m){throw m===Kl?Br:m}else i=t;t=et();var u=t.queue,c=u.dispatch;return n!==t.memoizedState&&(pe.flags|=2048,$l(9,{destroy:void 0},Cb.bind(null,u,n),null)),[i,c,e]}function Cb(e,t){e.action=t}function vm(e){var t=et(),n=Ue;if(n!==null)return ym(t,n,e);et(),t=t.memoizedState,n=et();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function $l(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=pe.updateQueue,t===null&&(t=Xr(),pe.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function bm(){return et().memoizedState}function Fr(e,t,n,i){var u=xt();pe.flags|=e,u.memoizedState=$l(1|t,{destroy:void 0},n,i===void 0?null:i)}function $r(e,t,n,i){var u=et();i=i===void 0?null:i;var c=u.memoizedState.inst;Ue!==null&&i!==null&&eo(i,Ue.memoizedState.deps)?u.memoizedState=$l(t,c,n,i):(pe.flags|=e,u.memoizedState=$l(1|t,c,n,i))}function xm(e,t){Fr(8390656,8,e,t)}function oo(e,t){$r(2048,8,e,t)}function Rb(e){pe.flags|=4;var t=pe.updateQueue;if(t===null)t=Xr(),pe.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Sm(e){var t=et().memoizedState;return Rb({ref:t,nextImpl:e}),function(){if((ze&2)!==0)throw Error(r(440));return t.impl.apply(void 0,arguments)}}function _m(e,t){return $r(4,2,e,t)}function wm(e,t){return $r(4,4,e,t)}function Em(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 jm(e,t,n){n=n!=null?n.concat([e]):null,$r(4,4,Em.bind(null,t,e),n)}function fo(){}function Tm(e,t){var n=et();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&eo(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function Mm(e,t){var n=et();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&eo(t,i[1]))return i[0];if(i=e(),nl){In(!0);try{e()}finally{In(!1)}}return n.memoizedState=[i,t],i}function ho(e,t,n){return n===void 0||(Dn&1073741824)!==0&&(_e&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Ag(),pe.lanes|=e,ha|=e,n)}function Am(e,t,n,i){return Ot(n,t)?n:Zl.current!==null?(e=ho(e,n,i),Ot(e,t)||(at=!0),e):(Dn&42)===0||(Dn&1073741824)!==0&&(_e&261930)===0?(at=!0,e.memoizedState=n):(e=Ag(),pe.lanes|=e,ha|=e,t)}function Cm(e,t,n,i,u){var c=W.p;W.p=c!==0&&8>c?c:8;var m=B.T,x={};B.T=x,po(e,!1,t,n);try{var T=u(),k=B.S;if(k!==null&&k(x,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var G=jb(T,i);gs(e,t,G,qt(e))}else gs(e,t,i,qt(e))}catch(K){gs(e,t,{then:function(){},status:"rejected",reason:K},qt())}finally{W.p=c,m!==null&&x.types!==null&&(m.types=x.types),B.T=m}}function zb(){}function mo(e,t,n,i){if(e.tag!==5)throw Error(r(476));var u=Rm(e).queue;Cm(e,u,t,re,n===null?zb:function(){return zm(e),n(i)})}function Rm(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:re,baseState:re,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:re},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:On,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function zm(e){var t=Rm(e);t.next===null&&(t=e.alternate.memoizedState),gs(e,t.next.queue,{},qt())}function go(){return ht(Ns)}function Nm(){return et().memoizedState}function Dm(){return et().memoizedState}function Nb(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=qt();e=ra(n);var i=ua(t,e,n);i!==null&&(At(i,t,n),os(i,t,n)),t={cache:Vc()},e.payload=t;return}t=t.return}}function Db(e,t,n){var i=qt();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Wr(e)?km(t,n):(n=Nc(e,t,n,i),n!==null&&(At(n,e,i),Um(n,t,i)))}function Om(e,t,n){var i=qt();gs(e,t,n,i)}function gs(e,t,n,i){var u={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Wr(e))km(t,u);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var m=t.lastRenderedState,x=c(m,n);if(u.hasEagerState=!0,u.eagerState=x,Ot(x,m))return zr(e,t,u,0),He===null&&Rr(),!1}catch{}finally{}if(n=Nc(e,t,u,i),n!==null)return At(n,e,i),Um(n,t,i),!0}return!1}function po(e,t,n,i){if(i={lane:2,revertLane:Jo(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Wr(e)){if(t)throw Error(r(479))}else t=Nc(e,n,i,2),t!==null&&At(t,e,2)}function Wr(e){var t=e.alternate;return e===pe||t!==null&&t===pe}function km(e,t){Jl=Yr=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Um(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,Gd(e,n)}}var ps={readContext:ht,use:Zr,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useLayoutEffect:$e,useInsertionEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useSyncExternalStore:$e,useId:$e,useHostTransitionStatus:$e,useFormState:$e,useActionState:$e,useOptimistic:$e,useMemoCache:$e,useCacheRefresh:$e};ps.useEffectEvent=$e;var Lm={readContext:ht,use:Zr,useCallback:function(e,t){return xt().memoizedState=[e,t===void 0?null:t],e},useContext:ht,useEffect:xm,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Fr(4194308,4,Em.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fr(4194308,4,e,t)},useInsertionEffect:function(e,t){Fr(4,2,e,t)},useMemo:function(e,t){var n=xt();t=t===void 0?null:t;var i=e();if(nl){In(!0);try{e()}finally{In(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=xt();if(n!==void 0){var u=n(t);if(nl){In(!0);try{n(t)}finally{In(!1)}}}else u=t;return i.memoizedState=i.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},i.queue=e,e=e.dispatch=Db.bind(null,pe,e),[i.memoizedState,e]},useRef:function(e){var t=xt();return e={current:e},t.memoizedState=e},useState:function(e){e=uo(e);var t=e.queue,n=Om.bind(null,pe,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:fo,useDeferredValue:function(e,t){var n=xt();return ho(n,e,t)},useTransition:function(){var e=uo(!1);return e=Cm.bind(null,pe,e.queue,!0,!1),xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=pe,u=xt();if(Te){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),He===null)throw Error(r(349));(_e&127)!==0||lm(i,t,n)}u.memoizedState=n;var c={value:n,getSnapshot:t};return u.queue=c,xm(sm.bind(null,i,c,e),[e]),i.flags|=2048,$l(9,{destroy:void 0},im.bind(null,i,c,n,t),null),n},useId:function(){var e=xt(),t=He.identifierPrefix;if(Te){var n=hn,i=dn;n=(i&~(1<<32-Dt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Kr++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=Tb++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:go,useFormState:gm,useActionState:gm,useOptimistic:function(e){var t=xt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=po.bind(null,pe,!0,n),n.dispatch=t,[e,t]},useMemoCache:io,useCacheRefresh:function(){return xt().memoizedState=Nb.bind(null,pe)},useEffectEvent:function(e){var t=xt(),n={impl:e};return t.memoizedState=n,function(){if((ze&2)!==0)throw Error(r(440));return n.impl.apply(void 0,arguments)}}},yo={readContext:ht,use:Zr,useCallback:Tm,useContext:ht,useEffect:oo,useImperativeHandle:jm,useInsertionEffect:_m,useLayoutEffect:wm,useMemo:Mm,useReducer:Jr,useRef:bm,useState:function(){return Jr(On)},useDebugValue:fo,useDeferredValue:function(e,t){var n=et();return Am(n,Ue.memoizedState,e,t)},useTransition:function(){var e=Jr(On)[0],t=et().memoizedState;return[typeof e=="boolean"?e:ms(e),t]},useSyncExternalStore:am,useId:Nm,useHostTransitionStatus:go,useFormState:pm,useActionState:pm,useOptimistic:function(e,t){var n=et();return cm(n,Ue,e,t)},useMemoCache:io,useCacheRefresh:Dm};yo.useEffectEvent=Sm;var Bm={readContext:ht,use:Zr,useCallback:Tm,useContext:ht,useEffect:oo,useImperativeHandle:jm,useInsertionEffect:_m,useLayoutEffect:wm,useMemo:Mm,useReducer:ro,useRef:bm,useState:function(){return ro(On)},useDebugValue:fo,useDeferredValue:function(e,t){var n=et();return Ue===null?ho(n,e,t):Am(n,Ue.memoizedState,e,t)},useTransition:function(){var e=ro(On)[0],t=et().memoizedState;return[typeof e=="boolean"?e:ms(e),t]},useSyncExternalStore:am,useId:Nm,useHostTransitionStatus:go,useFormState:vm,useActionState:vm,useOptimistic:function(e,t){var n=et();return Ue!==null?cm(n,Ue,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:io,useCacheRefresh:Dm};Bm.useEffectEvent=Sm;function vo(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:y({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var bo={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=qt(),u=ra(i);u.payload=t,n!=null&&(u.callback=n),t=ua(e,u,i),t!==null&&(At(t,e,i),os(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=qt(),u=ra(i);u.tag=1,u.payload=t,n!=null&&(u.callback=n),t=ua(e,u,i),t!==null&&(At(t,e,i),os(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=qt(),i=ra(n);i.tag=2,t!=null&&(i.callback=t),t=ua(e,i,n),t!==null&&(At(t,e,n),os(t,e,n))}};function Hm(e,t,n,i,u,c,m){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,c,m):t.prototype&&t.prototype.isPureReactComponent?!ns(n,i)||!ns(u,c):!0}function qm(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&bo.enqueueReplaceState(t,t.state,null)}function al(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=y({},n));for(var u in e)n[u]===void 0&&(n[u]=e[u])}return n}function Gm(e){Cr(e)}function Qm(e){console.error(e)}function Vm(e){Cr(e)}function Pr(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function Ym(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function xo(e,t,n){return n=ra(n),n.tag=3,n.payload={element:null},n.callback=function(){Pr(e,t)},n}function Km(e){return e=ra(e),e.tag=3,e}function Xm(e,t,n,i){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var c=i.value;e.payload=function(){return u(c)},e.callback=function(){Ym(t,n,i)}}var m=n.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(e.callback=function(){Ym(t,n,i),typeof u!="function"&&(ma===null?ma=new Set([this]):ma.add(this));var x=i.stack;this.componentDidCatch(i.value,{componentStack:x!==null?x:""})})}function Ob(e,t,n,i,u){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Ql(t,n,u,!0),n=Ut.current,n!==null){switch(n.tag){case 31:case 13:return It===null?ou():n.alternate===null&&We===0&&(We=3),n.flags&=-257,n.flags|=65536,n.lanes=u,i===Hr?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),Ko(e,i,u)),!1;case 22:return n.flags|=65536,i===Hr?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),Ko(e,i,u)),!1}throw Error(r(435,n.tag))}return Ko(e,i,u),ou(),!1}if(Te)return t=Ut.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,i!==Bc&&(e=Error(r(422),{cause:i}),is(Ft(e,n)))):(i!==Bc&&(t=Error(r(423),{cause:i}),is(Ft(t,n))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,i=Ft(i,n),u=xo(e.stateNode,i,u),Fc(e,u),We!==4&&(We=2)),!1;var c=Error(r(520),{cause:i});if(c=Ft(c,n),Es===null?Es=[c]:Es.push(c),We!==4&&(We=2),t===null)return!0;i=Ft(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=u&-u,n.lanes|=e,e=xo(n.stateNode,i,e),Fc(n,e),!1;case 1:if(t=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(ma===null||!ma.has(c))))return n.flags|=65536,u&=-u,n.lanes|=u,u=Km(u),Xm(u,e,n,i),Fc(n,u),!1}n=n.return}while(n!==null);return!1}var So=Error(r(461)),at=!1;function mt(e,t,n,i){t.child=e===null?$h(t,null,n,i):tl(t,e.child,n,i)}function Zm(e,t,n,i,u){n=n.render;var c=t.ref;if("ref"in i){var m={};for(var x in i)x!=="ref"&&(m[x]=i[x])}else m=i;return Wa(t),i=to(e,t,n,m,c,u),x=no(),e!==null&&!at?(ao(e,t,u),kn(e,t,u)):(Te&&x&&Uc(t),t.flags|=1,mt(e,t,i,u),t.child)}function Jm(e,t,n,i,u){if(e===null){var c=n.type;return typeof c=="function"&&!Dc(c)&&c.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=c,Fm(e,t,c,i,u)):(e=Dr(n.type,null,i,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!Co(e,u)){var m=c.memoizedProps;if(n=n.compare,n=n!==null?n:ns,n(m,i)&&e.ref===t.ref)return kn(e,t,u)}return t.flags|=1,e=Cn(c,i),e.ref=t.ref,e.return=t,t.child=e}function Fm(e,t,n,i,u){if(e!==null){var c=e.memoizedProps;if(ns(c,i)&&e.ref===t.ref)if(at=!1,t.pendingProps=i=c,Co(e,u))(e.flags&131072)!==0&&(at=!0);else return t.lanes=e.lanes,kn(e,t,u)}return _o(e,t,n,i,u)}function $m(e,t,n,i){var u=i.children,c=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,e!==null){for(i=t.child=e.child,u=0;i!==null;)u=u|i.lanes|i.childLanes,i=i.sibling;i=u&~c}else i=0,t.child=null;return Wm(e,t,c,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Lr(t,c!==null?c.cachePool:null),c!==null?Ih(t,c):Wc(),em(t);else return i=t.lanes=536870912,Wm(e,t,c!==null?c.baseLanes|n:n,n,i)}else c!==null?(Lr(t,c.cachePool),Ih(t,c),oa(),t.memoizedState=null):(e!==null&&Lr(t,null),Wc(),oa());return mt(e,t,u,n),t.child}function ys(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Wm(e,t,n,i,u){var c=Kc();return c=c===null?null:{parent:tt._currentValue,pool:c},t.memoizedState={baseLanes:n,cachePool:c},e!==null&&Lr(t,null),Wc(),em(t),e!==null&&Ql(e,t,i,!0),t.childLanes=u,null}function Ir(e,t){return t=tu({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Pm(e,t,n){return tl(t,e.child,null,n),e=Ir(t,t.pendingProps),e.flags|=2,Lt(t),t.memoizedState=null,e}function kb(e,t,n){var i=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Te){if(i.mode==="hidden")return e=Ir(t,i),t.lanes=536870912,ys(null,e);if(Ic(t),(e=Ye)?(e=op(e,Pt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:na!==null?{id:dn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},n=kh(e),n.return=t,t.child=n,dt=t,Ye=null)):e=null,e===null)throw la(t);return t.lanes=536870912,null}return Ir(t,i)}var c=e.memoizedState;if(c!==null){var m=c.dehydrated;if(Ic(t),u)if(t.flags&256)t.flags&=-257,t=Pm(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(r(558));else if(at||Ql(e,t,n,!1),u=(n&e.childLanes)!==0,at||u){if(i=He,i!==null&&(m=Qd(i,n),m!==0&&m!==c.retryLane))throw c.retryLane=m,Za(e,m),At(i,e,m),So;ou(),t=Pm(e,t,n)}else e=c.treeContext,Ye=en(m.nextSibling),dt=t,Te=!0,aa=null,Pt=!1,e!==null&&Bh(t,e),t=Ir(t,i),t.flags|=4096;return t}return e=Cn(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function eu(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(r(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function _o(e,t,n,i,u){return Wa(t),n=to(e,t,n,i,void 0,u),i=no(),e!==null&&!at?(ao(e,t,u),kn(e,t,u)):(Te&&i&&Uc(t),t.flags|=1,mt(e,t,n,u),t.child)}function Im(e,t,n,i,u,c){return Wa(t),t.updateQueue=null,n=nm(t,i,n,u),tm(e),i=no(),e!==null&&!at?(ao(e,t,c),kn(e,t,c)):(Te&&i&&Uc(t),t.flags|=1,mt(e,t,n,c),t.child)}function eg(e,t,n,i,u){if(Wa(t),t.stateNode===null){var c=Bl,m=n.contextType;typeof m=="object"&&m!==null&&(c=ht(m)),c=new n(i,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=bo,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=i,c.state=t.memoizedState,c.refs={},Zc(t),m=n.contextType,c.context=typeof m=="object"&&m!==null?ht(m):Bl,c.state=t.memoizedState,m=n.getDerivedStateFromProps,typeof m=="function"&&(vo(t,n,m,i),c.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&bo.enqueueReplaceState(c,c.state,null),ds(t,i,c,u),fs(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){c=t.stateNode;var x=t.memoizedProps,T=al(n,x);c.props=T;var k=c.context,G=n.contextType;m=Bl,typeof G=="object"&&G!==null&&(m=ht(G));var K=n.getDerivedStateFromProps;G=typeof K=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=t.pendingProps!==x,G||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||k!==m)&&qm(t,c,i,m),sa=!1;var U=t.memoizedState;c.state=U,ds(t,i,c,u),fs(),k=t.memoizedState,x||U!==k||sa?(typeof K=="function"&&(vo(t,n,K,i),k=t.memoizedState),(T=sa||Hm(t,n,T,i,U,k,m))?(G||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=k),c.props=i,c.state=k,c.context=m,i=T):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{c=t.stateNode,Jc(e,t),m=t.memoizedProps,G=al(n,m),c.props=G,K=t.pendingProps,U=c.context,k=n.contextType,T=Bl,typeof k=="object"&&k!==null&&(T=ht(k)),x=n.getDerivedStateFromProps,(k=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==K||U!==T)&&qm(t,c,i,T),sa=!1,U=t.memoizedState,c.state=U,ds(t,i,c,u),fs();var H=t.memoizedState;m!==K||U!==H||sa||e!==null&&e.dependencies!==null&&kr(e.dependencies)?(typeof x=="function"&&(vo(t,n,x,i),H=t.memoizedState),(G=sa||Hm(t,n,G,i,U,H,T)||e!==null&&e.dependencies!==null&&kr(e.dependencies))?(k||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(i,H,T),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(i,H,T)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=H),c.props=i,c.state=H,c.context=T,i=G):(typeof c.componentDidUpdate!="function"||m===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),i=!1)}return c=i,eu(e,t),i=(t.flags&128)!==0,c||i?(c=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&i?(t.child=tl(t,e.child,null,u),t.child=tl(t,null,n,u)):mt(e,t,n,u),t.memoizedState=c.state,e=t.child):e=kn(e,t,u),e}function tg(e,t,n,i){return Fa(),t.flags|=256,mt(e,t,n,i),t.child}var wo={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Eo(e){return{baseLanes:e,cachePool:Yh()}}function jo(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Ht),e}function ng(e,t,n){var i=t.pendingProps,u=!1,c=(t.flags&128)!==0,m;if((m=c)||(m=e!==null&&e.memoizedState===null?!1:(Ie.current&2)!==0),m&&(u=!0,t.flags&=-129),m=(t.flags&32)!==0,t.flags&=-33,e===null){if(Te){if(u?ca(t):oa(),(e=Ye)?(e=op(e,Pt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:na!==null?{id:dn,overflow:hn}:null,retryLane:536870912,hydrationErrors:null},n=kh(e),n.return=t,t.child=n,dt=t,Ye=null)):e=null,e===null)throw la(t);return uf(e)?t.lanes=32:t.lanes=536870912,null}var x=i.children;return i=i.fallback,u?(oa(),u=t.mode,x=tu({mode:"hidden",children:x},u),i=Ja(i,u,n,null),x.return=t,i.return=t,x.sibling=i,t.child=x,i=t.child,i.memoizedState=Eo(n),i.childLanes=jo(e,m,n),t.memoizedState=wo,ys(null,i)):(ca(t),To(t,x))}var T=e.memoizedState;if(T!==null&&(x=T.dehydrated,x!==null)){if(c)t.flags&256?(ca(t),t.flags&=-257,t=Mo(e,t,n)):t.memoizedState!==null?(oa(),t.child=e.child,t.flags|=128,t=null):(oa(),x=i.fallback,u=t.mode,i=tu({mode:"visible",children:i.children},u),x=Ja(x,u,n,null),x.flags|=2,i.return=t,x.return=t,i.sibling=x,t.child=i,tl(t,e.child,null,n),i=t.child,i.memoizedState=Eo(n),i.childLanes=jo(e,m,n),t.memoizedState=wo,t=ys(null,i));else if(ca(t),uf(x)){if(m=x.nextSibling&&x.nextSibling.dataset,m)var k=m.dgst;m=k,i=Error(r(419)),i.stack="",i.digest=m,is({value:i,source:null,stack:null}),t=Mo(e,t,n)}else if(at||Ql(e,t,n,!1),m=(n&e.childLanes)!==0,at||m){if(m=He,m!==null&&(i=Qd(m,n),i!==0&&i!==T.retryLane))throw T.retryLane=i,Za(e,i),At(m,e,i),So;rf(x)||ou(),t=Mo(e,t,n)}else rf(x)?(t.flags|=192,t.child=e.child,t=null):(e=T.treeContext,Ye=en(x.nextSibling),dt=t,Te=!0,aa=null,Pt=!1,e!==null&&Bh(t,e),t=To(t,i.children),t.flags|=4096);return t}return u?(oa(),x=i.fallback,u=t.mode,T=e.child,k=T.sibling,i=Cn(T,{mode:"hidden",children:i.children}),i.subtreeFlags=T.subtreeFlags&65011712,k!==null?x=Cn(k,x):(x=Ja(x,u,n,null),x.flags|=2),x.return=t,i.return=t,i.sibling=x,t.child=i,ys(null,i),i=t.child,x=e.child.memoizedState,x===null?x=Eo(n):(u=x.cachePool,u!==null?(T=tt._currentValue,u=u.parent!==T?{parent:T,pool:T}:u):u=Yh(),x={baseLanes:x.baseLanes|n,cachePool:u}),i.memoizedState=x,i.childLanes=jo(e,m,n),t.memoizedState=wo,ys(e.child,i)):(ca(t),n=e.child,e=n.sibling,n=Cn(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(m=t.deletions,m===null?(t.deletions=[e],t.flags|=16):m.push(e)),t.child=n,t.memoizedState=null,n)}function To(e,t){return t=tu({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function tu(e,t){return e=kt(22,e,null,t),e.lanes=0,e}function Mo(e,t,n){return tl(t,e.child,null,n),e=To(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function ag(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Gc(e.return,t,n)}function Ao(e,t,n,i,u,c){var m=e.memoizedState;m===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:u,treeForkCount:c}:(m.isBackwards=t,m.rendering=null,m.renderingStartTime=0,m.last=i,m.tail=n,m.tailMode=u,m.treeForkCount=c)}function lg(e,t,n){var i=t.pendingProps,u=i.revealOrder,c=i.tail;i=i.children;var m=Ie.current,x=(m&2)!==0;if(x?(m=m&1|2,t.flags|=128):m&=1,te(Ie,m),mt(e,t,i,n),i=Te?ls:0,!x&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ag(e,n,t);else if(e.tag===19)ag(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(u){case"forwards":for(n=t.child,u=null;n!==null;)e=n.alternate,e!==null&&Vr(e)===null&&(u=n),n=n.sibling;n=u,n===null?(u=t.child,t.child=null):(u=n.sibling,n.sibling=null),Ao(t,!1,u,n,c,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Vr(e)===null){t.child=u;break}e=u.sibling,u.sibling=n,n=u,u=e}Ao(t,!0,n,null,c,i);break;case"together":Ao(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function kn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ha|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ql(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=Cn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Cn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Co(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&kr(e)))}function Ub(e,t,n){switch(t.tag){case 3:ot(t,t.stateNode.containerInfo),ia(t,tt,e.memoizedState.cache),Fa();break;case 27:case 5:_n(t);break;case 4:ot(t,t.stateNode.containerInfo);break;case 10:ia(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ic(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(ca(t),t.flags|=128,null):(n&t.child.childLanes)!==0?ng(e,t,n):(ca(t),e=kn(e,t,n),e!==null?e.sibling:null);ca(t);break;case 19:var u=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(Ql(e,t,n,!1),i=(n&t.childLanes)!==0),u){if(i)return lg(e,t,n);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),te(Ie,Ie.current),i)break;return null;case 22:return t.lanes=0,$m(e,t,n,t.pendingProps);case 24:ia(t,tt,e.memoizedState.cache)}return kn(e,t,n)}function ig(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)at=!0;else{if(!Co(e,n)&&(t.flags&128)===0)return at=!1,Ub(e,t,n);at=(e.flags&131072)!==0}else at=!1,Te&&(t.flags&1048576)!==0&&Lh(t,ls,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=Ia(t.elementType),t.type=e,typeof e=="function")Dc(e)?(i=al(e,i),t.tag=1,t=eg(null,t,e,i,n)):(t.tag=0,t=_o(null,t,e,i,n));else{if(e!=null){var u=e.$$typeof;if(u===D){t.tag=11,t=Zm(null,t,e,i,n);break e}else if(u===Y){t.tag=14,t=Jm(null,t,e,i,n);break e}}throw t=$(e)||e,Error(r(306,t,""))}}return t;case 0:return _o(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,u=al(i,t.pendingProps),eg(e,t,i,u,n);case 3:e:{if(ot(t,t.stateNode.containerInfo),e===null)throw Error(r(387));i=t.pendingProps;var c=t.memoizedState;u=c.element,Jc(e,t),ds(t,i,null,n);var m=t.memoizedState;if(i=m.cache,ia(t,tt,i),i!==c.cache&&Qc(t,[tt],n,!0),fs(),i=m.element,c.isDehydrated)if(c={element:i,isDehydrated:!1,cache:m.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=tg(e,t,i,n);break e}else if(i!==u){u=Ft(Error(r(424)),t),is(u),t=tg(e,t,i,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(Ye=en(e.firstChild),dt=t,Te=!0,aa=null,Pt=!0,n=$h(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Fa(),i===u){t=kn(e,t,n);break e}mt(e,t,i,n)}t=t.child}return t;case 26:return eu(e,t),e===null?(n=pp(t.type,null,t.pendingProps,null))?t.memoizedState=n:Te||(n=t.type,e=t.pendingProps,i=yu(ge.current).createElement(n),i[ft]=t,i[_t]=e,gt(i,n,e),rt(i),t.stateNode=i):t.memoizedState=pp(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return _n(t),e===null&&Te&&(i=t.stateNode=hp(t.type,t.pendingProps,ge.current),dt=t,Pt=!0,u=Ye,va(t.type)?(cf=u,Ye=en(i.firstChild)):Ye=u),mt(e,t,t.pendingProps.children,n),eu(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Te&&((u=i=Ye)&&(i=d1(i,t.type,t.pendingProps,Pt),i!==null?(t.stateNode=i,dt=t,Ye=en(i.firstChild),Pt=!1,u=!0):u=!1),u||la(t)),_n(t),u=t.type,c=t.pendingProps,m=e!==null?e.memoizedProps:null,i=c.children,af(u,c)?i=null:m!==null&&af(u,m)&&(t.flags|=32),t.memoizedState!==null&&(u=to(e,t,Mb,null,null,n),Ns._currentValue=u),eu(e,t),mt(e,t,i,n),t.child;case 6:return e===null&&Te&&((e=n=Ye)&&(n=h1(n,t.pendingProps,Pt),n!==null?(t.stateNode=n,dt=t,Ye=null,e=!0):e=!1),e||la(t)),null;case 13:return ng(e,t,n);case 4:return ot(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=tl(t,null,i,n):mt(e,t,i,n),t.child;case 11:return Zm(e,t,t.type,t.pendingProps,n);case 7:return mt(e,t,t.pendingProps,n),t.child;case 8:return mt(e,t,t.pendingProps.children,n),t.child;case 12:return mt(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,ia(t,t.type,i.value),mt(e,t,i.children,n),t.child;case 9:return u=t.type._context,i=t.pendingProps.children,Wa(t),u=ht(u),i=i(u),t.flags|=1,mt(e,t,i,n),t.child;case 14:return Jm(e,t,t.type,t.pendingProps,n);case 15:return Fm(e,t,t.type,t.pendingProps,n);case 19:return lg(e,t,n);case 31:return kb(e,t,n);case 22:return $m(e,t,n,t.pendingProps);case 24:return Wa(t),i=ht(tt),e===null?(u=Kc(),u===null&&(u=He,c=Vc(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=n),u=c),t.memoizedState={parent:i,cache:u},Zc(t),ia(t,tt,u)):((e.lanes&n)!==0&&(Jc(e,t),ds(t,null,null,n),fs()),u=e.memoizedState,c=t.memoizedState,u.parent!==i?(u={parent:i,cache:i},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),ia(t,tt,i)):(i=c.cache,ia(t,tt,i),i!==u.cache&&Qc(t,[tt],n,!0))),mt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(r(156,t.tag))}function Un(e){e.flags|=4}function Ro(e,t,n,i,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if(Ng())e.flags|=8192;else throw el=Hr,Xc}else e.flags&=-16777217}function sg(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Sp(t))if(Ng())e.flags|=8192;else throw el=Hr,Xc}function nu(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Hd():536870912,e.lanes|=t,ei|=t)}function vs(e,t){if(!Te)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Ke(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var u=e.child;u!==null;)n|=u.lanes|u.childLanes,i|=u.subtreeFlags&65011712,i|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)n|=u.lanes|u.childLanes,i|=u.subtreeFlags,i|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function Lb(e,t,n){var i=t.pendingProps;switch(Lc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ke(t),null;case 1:return Ke(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),Nn(tt),Ve(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Gl(t)?Un(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Hc())),Ke(t),null;case 26:var u=t.type,c=t.memoizedState;return e===null?(Un(t),c!==null?(Ke(t),sg(t,c)):(Ke(t),Ro(t,u,null,i,n))):c?c!==e.memoizedState?(Un(t),Ke(t),sg(t,c)):(Ke(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&Un(t),Ke(t),Ro(t,u,e,i,n)),null;case 27:if(wn(t),n=ge.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Un(t);else{if(!i){if(t.stateNode===null)throw Error(r(166));return Ke(t),null}e=ie.current,Gl(t)?Hh(t):(e=hp(u,i,n),t.stateNode=e,Un(t))}return Ke(t),null;case 5:if(wn(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&Un(t);else{if(!i){if(t.stateNode===null)throw Error(r(166));return Ke(t),null}if(c=ie.current,Gl(t))Hh(t);else{var m=yu(ge.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof i.is=="string"?m.createElement("select",{is:i.is}):m.createElement("select"),i.multiple?c.multiple=!0:i.size&&(c.size=i.size);break;default:c=typeof i.is=="string"?m.createElement(u,{is:i.is}):m.createElement(u)}}c[ft]=t,c[_t]=i;e:for(m=t.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===t)break e;for(;m.sibling===null;){if(m.return===null||m.return===t)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}t.stateNode=c;e:switch(gt(c,u,i),u){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&Un(t)}}return Ke(t),Ro(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&Un(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(r(166));if(e=ge.current,Gl(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,u=dt,u!==null)switch(u.tag){case 27:case 5:i=u.memoizedProps}e[ft]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||np(e.nodeValue,n)),e||la(t,!0)}else e=yu(e).createTextNode(i),e[ft]=t,t.stateNode=e}return Ke(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Gl(t),n!==null){if(e===null){if(!i)throw Error(r(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(557));e[ft]=t}else Fa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),e=!1}else n=Hc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Lt(t),t):(Lt(t),null);if((t.flags&128)!==0)throw Error(r(558))}return Ke(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Gl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!u)throw Error(r(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[ft]=t}else Fa(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Ke(t),u=!1}else u=Hc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(Lt(t),t):(Lt(t),null)}return Lt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,u=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(u=i.alternate.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==u&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),nu(t,t.updateQueue),Ke(t),null);case 4:return Ve(),e===null&&Po(t.stateNode.containerInfo),Ke(t),null;case 10:return Nn(t.type),Ke(t),null;case 19:if(Z(Ie),i=t.memoizedState,i===null)return Ke(t),null;if(u=(t.flags&128)!==0,c=i.rendering,c===null)if(u)vs(i,!1);else{if(We!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Vr(e),c!==null){for(t.flags|=128,vs(i,!1),e=c.updateQueue,t.updateQueue=e,nu(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Oh(n,e),n=n.sibling;return te(Ie,Ie.current&1|2),Te&&Rn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Fe()>ru&&(t.flags|=128,u=!0,vs(i,!1),t.lanes=4194304)}else{if(!u)if(e=Vr(c),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,nu(t,e),vs(i,!0),i.tail===null&&i.tailMode==="hidden"&&!c.alternate&&!Te)return Ke(t),null}else 2*Fe()-i.renderingStartTime>ru&&n!==536870912&&(t.flags|=128,u=!0,vs(i,!1),t.lanes=4194304);i.isBackwards?(c.sibling=t.child,t.child=c):(e=i.last,e!==null?e.sibling=c:t.child=c,i.last=c)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Fe(),e.sibling=null,n=Ie.current,te(Ie,u?n&1|2:n&1),Te&&Rn(t,i.treeForkCount),e):(Ke(t),null);case 22:case 23:return Lt(t),Pc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Ke(t),t.subtreeFlags&6&&(t.flags|=8192)):Ke(t),n=t.updateQueue,n!==null&&nu(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&Z(Pa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Nn(tt),Ke(t),null;case 25:return null;case 30:return null}throw Error(r(156,t.tag))}function Bb(e,t){switch(Lc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Nn(tt),Ve(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return wn(t),null;case 31:if(t.memoizedState!==null){if(Lt(t),t.alternate===null)throw Error(r(340));Fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Lt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));Fa()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Z(Ie),null;case 4:return Ve(),null;case 10:return Nn(t.type),null;case 22:case 23:return Lt(t),Pc(),e!==null&&Z(Pa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Nn(tt),null;case 25:return null;default:return null}}function rg(e,t){switch(Lc(t),t.tag){case 3:Nn(tt),Ve();break;case 26:case 27:case 5:wn(t);break;case 4:Ve();break;case 31:t.memoizedState!==null&&Lt(t);break;case 13:Lt(t);break;case 19:Z(Ie);break;case 10:Nn(t.type);break;case 22:case 23:Lt(t),Pc(),e!==null&&Z(Pa);break;case 24:Nn(tt)}}function bs(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var u=i.next;n=u;do{if((n.tag&e)===e){i=void 0;var c=n.create,m=n.inst;i=c(),m.destroy=i}n=n.next}while(n!==u)}}catch(x){ke(t,t.return,x)}}function fa(e,t,n){try{var i=t.updateQueue,u=i!==null?i.lastEffect:null;if(u!==null){var c=u.next;i=c;do{if((i.tag&e)===e){var m=i.inst,x=m.destroy;if(x!==void 0){m.destroy=void 0,u=t;var T=n,k=x;try{k()}catch(G){ke(u,T,G)}}}i=i.next}while(i!==c)}}catch(G){ke(t,t.return,G)}}function ug(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ph(t,n)}catch(i){ke(e,e.return,i)}}}function cg(e,t,n){n.props=al(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){ke(e,t,i)}}function xs(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(u){ke(e,t,u)}}function mn(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(u){ke(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){ke(e,t,u)}else n.current=null}function og(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(u){ke(e,e.return,u)}}function zo(e,t,n){try{var i=e.stateNode;s1(i,e.type,n,t),i[_t]=t}catch(u){ke(e,e.return,u)}}function fg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&va(e.type)||e.tag===4}function No(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fg(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&&va(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 Do(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Mn));else if(i!==4&&(i===27&&va(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Do(e,t,n),e=e.sibling;e!==null;)Do(e,t,n),e=e.sibling}function au(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&va(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(au(e,t,n),e=e.sibling;e!==null;)au(e,t,n),e=e.sibling}function dg(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);gt(t,i,n),t[ft]=e,t[_t]=n}catch(c){ke(e,e.return,c)}}var Ln=!1,lt=!1,Oo=!1,hg=typeof WeakSet=="function"?WeakSet:Set,ut=null;function Hb(e,t){if(e=e.containerInfo,tf=Eu,e=jh(e),Tc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var u=i.anchorOffset,c=i.focusNode;i=i.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break e}var m=0,x=-1,T=-1,k=0,G=0,K=e,U=null;t:for(;;){for(var H;K!==n||u!==0&&K.nodeType!==3||(x=m+u),K!==c||i!==0&&K.nodeType!==3||(T=m+i),K.nodeType===3&&(m+=K.nodeValue.length),(H=K.firstChild)!==null;)U=K,K=H;for(;;){if(K===e)break t;if(U===n&&++k===u&&(x=m),U===c&&++G===i&&(T=m),(H=K.nextSibling)!==null)break;K=U,U=K.parentNode}K=H}n=x===-1||T===-1?null:{start:x,end:T}}else n=null}n=n||{start:0,end:0}}else n=null;for(nf={focusedElem:e,selectionRange:n},Eu=!1,ut=t;ut!==null;)if(t=ut,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ut=e;else for(;ut!==null;){switch(t=ut,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)u=e[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,n=t,u=c.memoizedProps,c=c.memoizedState,i=n.stateNode;try{var le=al(n.type,u);e=i.getSnapshotBeforeUpdate(le,c),i.__reactInternalSnapshotBeforeUpdate=e}catch(fe){ke(n,n.return,fe)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)sf(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":sf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(r(163))}if(e=t.sibling,e!==null){e.return=t.return,ut=e;break}ut=t.return}}function mg(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:Hn(e,n),i&4&&bs(5,n);break;case 1:if(Hn(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(m){ke(n,n.return,m)}else{var u=al(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(m){ke(n,n.return,m)}}i&64&&ug(n),i&512&&xs(n,n.return);break;case 3:if(Hn(e,n),i&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{Ph(e,t)}catch(m){ke(n,n.return,m)}}break;case 27:t===null&&i&4&&dg(n);case 26:case 5:Hn(e,n),t===null&&i&4&&og(n),i&512&&xs(n,n.return);break;case 12:Hn(e,n);break;case 31:Hn(e,n),i&4&&yg(e,n);break;case 13:Hn(e,n),i&4&&vg(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Jb.bind(null,n),m1(e,n))));break;case 22:if(i=n.memoizedState!==null||Ln,!i){t=t!==null&&t.memoizedState!==null||lt,u=Ln;var c=lt;Ln=i,(lt=t)&&!c?qn(e,n,(n.subtreeFlags&8772)!==0):Hn(e,n),Ln=u,lt=c}break;case 30:break;default:Hn(e,n)}}function gg(e){var t=e.alternate;t!==null&&(e.alternate=null,gg(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&cc(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 Ze=null,Et=!1;function Bn(e,t,n){for(n=n.child;n!==null;)pg(e,t,n),n=n.sibling}function pg(e,t,n){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(Yi,n)}catch{}switch(n.tag){case 26:lt||mn(n,t),Bn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:lt||mn(n,t);var i=Ze,u=Et;va(n.type)&&(Ze=n.stateNode,Et=!1),Bn(e,t,n),Cs(n.stateNode),Ze=i,Et=u;break;case 5:lt||mn(n,t);case 6:if(i=Ze,u=Et,Ze=null,Bn(e,t,n),Ze=i,Et=u,Ze!==null)if(Et)try{(Ze.nodeType===9?Ze.body:Ze.nodeName==="HTML"?Ze.ownerDocument.body:Ze).removeChild(n.stateNode)}catch(c){ke(n,t,c)}else try{Ze.removeChild(n.stateNode)}catch(c){ke(n,t,c)}break;case 18:Ze!==null&&(Et?(e=Ze,up(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),ui(e)):up(Ze,n.stateNode));break;case 4:i=Ze,u=Et,Ze=n.stateNode.containerInfo,Et=!0,Bn(e,t,n),Ze=i,Et=u;break;case 0:case 11:case 14:case 15:fa(2,n,t),lt||fa(4,n,t),Bn(e,t,n);break;case 1:lt||(mn(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&cg(n,t,i)),Bn(e,t,n);break;case 21:Bn(e,t,n);break;case 22:lt=(i=lt)||n.memoizedState!==null,Bn(e,t,n),lt=i;break;default:Bn(e,t,n)}}function yg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{ui(e)}catch(n){ke(t,t.return,n)}}}function vg(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){ke(t,t.return,n)}}function qb(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new hg),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new hg),t;default:throw Error(r(435,e.tag))}}function lu(e,t){var n=qb(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var u=Fb.bind(null,e,i);i.then(u,u)}})}function jt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var u=n[i],c=e,m=t,x=m;e:for(;x!==null;){switch(x.tag){case 27:if(va(x.type)){Ze=x.stateNode,Et=!1;break e}break;case 5:Ze=x.stateNode,Et=!1;break e;case 3:case 4:Ze=x.stateNode.containerInfo,Et=!0;break e}x=x.return}if(Ze===null)throw Error(r(160));pg(c,m,u),Ze=null,Et=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bg(t,e),t=t.sibling}var sn=null;function bg(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:jt(t,e),Tt(e),i&4&&(fa(3,e,e.return),bs(3,e),fa(5,e,e.return));break;case 1:jt(t,e),Tt(e),i&512&&(lt||n===null||mn(n,n.return)),i&64&&Ln&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var u=sn;if(jt(t,e),Tt(e),i&512&&(lt||n===null||mn(n,n.return)),i&4){var c=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,u=u.ownerDocument||u;t:switch(i){case"title":c=u.getElementsByTagName("title")[0],(!c||c[Zi]||c[ft]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(i),u.head.insertBefore(c,u.querySelector("head > title"))),gt(c,i,n),c[ft]=e,rt(c),i=c;break e;case"link":var m=bp("link","href",u).get(i+(n.href||""));if(m){for(var x=0;x<m.length;x++)if(c=m[x],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){m.splice(x,1);break t}}c=u.createElement(i),gt(c,i,n),u.head.appendChild(c);break;case"meta":if(m=bp("meta","content",u).get(i+(n.content||""))){for(x=0;x<m.length;x++)if(c=m[x],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){m.splice(x,1);break t}}c=u.createElement(i),gt(c,i,n),u.head.appendChild(c);break;default:throw Error(r(468,i))}c[ft]=e,rt(c),i=c}e.stateNode=i}else xp(u,e.type,e.stateNode);else e.stateNode=vp(u,i,e.memoizedProps);else c!==i?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,i===null?xp(u,e.type,e.stateNode):vp(u,i,e.memoizedProps)):i===null&&e.stateNode!==null&&zo(e,e.memoizedProps,n.memoizedProps)}break;case 27:jt(t,e),Tt(e),i&512&&(lt||n===null||mn(n,n.return)),n!==null&&i&4&&zo(e,e.memoizedProps,n.memoizedProps);break;case 5:if(jt(t,e),Tt(e),i&512&&(lt||n===null||mn(n,n.return)),e.flags&32){u=e.stateNode;try{zl(u,"")}catch(le){ke(e,e.return,le)}}i&4&&e.stateNode!=null&&(u=e.memoizedProps,zo(e,u,n!==null?n.memoizedProps:u)),i&1024&&(Oo=!0);break;case 6:if(jt(t,e),Tt(e),i&4){if(e.stateNode===null)throw Error(r(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(le){ke(e,e.return,le)}}break;case 3:if(xu=null,u=sn,sn=vu(t.containerInfo),jt(t,e),sn=u,Tt(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{ui(t.containerInfo)}catch(le){ke(e,e.return,le)}Oo&&(Oo=!1,xg(e));break;case 4:i=sn,sn=vu(e.stateNode.containerInfo),jt(t,e),Tt(e),sn=i;break;case 12:jt(t,e),Tt(e);break;case 31:jt(t,e),Tt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,lu(e,i)));break;case 13:jt(t,e),Tt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(su=Fe()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,lu(e,i)));break;case 22:u=e.memoizedState!==null;var T=n!==null&&n.memoizedState!==null,k=Ln,G=lt;if(Ln=k||u,lt=G||T,jt(t,e),lt=G,Ln=k,Tt(e),i&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(n===null||T||Ln||lt||ll(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){T=n=t;try{if(c=T.stateNode,u)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{x=T.stateNode;var K=T.memoizedProps.style,U=K!=null&&K.hasOwnProperty("display")?K.display:null;x.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(le){ke(T,T.return,le)}}}else if(t.tag===6){if(n===null){T=t;try{T.stateNode.nodeValue=u?"":T.memoizedProps}catch(le){ke(T,T.return,le)}}}else if(t.tag===18){if(n===null){T=t;try{var H=T.stateNode;u?cp(H,!0):cp(T.stateNode,!1)}catch(le){ke(T,T.return,le)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,lu(e,n))));break;case 19:jt(t,e),Tt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,lu(e,i)));break;case 30:break;case 21:break;default:jt(t,e),Tt(e)}}function Tt(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(fg(i)){n=i;break}i=i.return}if(n==null)throw Error(r(160));switch(n.tag){case 27:var u=n.stateNode,c=No(e);au(e,c,u);break;case 5:var m=n.stateNode;n.flags&32&&(zl(m,""),n.flags&=-33);var x=No(e);au(e,x,m);break;case 3:case 4:var T=n.stateNode.containerInfo,k=No(e);Do(e,k,T);break;default:throw Error(r(161))}}catch(G){ke(e,e.return,G)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function xg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;xg(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Hn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)mg(e,t.alternate,t),t=t.sibling}function ll(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:fa(4,t,t.return),ll(t);break;case 1:mn(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&cg(t,t.return,n),ll(t);break;case 27:Cs(t.stateNode);case 26:case 5:mn(t,t.return),ll(t);break;case 22:t.memoizedState===null&&ll(t);break;case 30:ll(t);break;default:ll(t)}e=e.sibling}}function qn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,u=e,c=t,m=c.flags;switch(c.tag){case 0:case 11:case 15:qn(u,c,n),bs(4,c);break;case 1:if(qn(u,c,n),i=c,u=i.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(k){ke(i,i.return,k)}if(i=c,u=i.updateQueue,u!==null){var x=i.stateNode;try{var T=u.shared.hiddenCallbacks;if(T!==null)for(u.shared.hiddenCallbacks=null,u=0;u<T.length;u++)Wh(T[u],x)}catch(k){ke(i,i.return,k)}}n&&m&64&&ug(c),xs(c,c.return);break;case 27:dg(c);case 26:case 5:qn(u,c,n),n&&i===null&&m&4&&og(c),xs(c,c.return);break;case 12:qn(u,c,n);break;case 31:qn(u,c,n),n&&m&4&&yg(u,c);break;case 13:qn(u,c,n),n&&m&4&&vg(u,c);break;case 22:c.memoizedState===null&&qn(u,c,n),xs(c,c.return);break;case 30:break;default:qn(u,c,n)}t=t.sibling}}function ko(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&&ss(n))}function Uo(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ss(e))}function rn(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Sg(e,t,n,i),t=t.sibling}function Sg(e,t,n,i){var u=t.flags;switch(t.tag){case 0:case 11:case 15:rn(e,t,n,i),u&2048&&bs(9,t);break;case 1:rn(e,t,n,i);break;case 3:rn(e,t,n,i),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ss(e)));break;case 12:if(u&2048){rn(e,t,n,i),e=t.stateNode;try{var c=t.memoizedProps,m=c.id,x=c.onPostCommit;typeof x=="function"&&x(m,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(T){ke(t,t.return,T)}}else rn(e,t,n,i);break;case 31:rn(e,t,n,i);break;case 13:rn(e,t,n,i);break;case 23:break;case 22:c=t.stateNode,m=t.alternate,t.memoizedState!==null?c._visibility&2?rn(e,t,n,i):Ss(e,t):c._visibility&2?rn(e,t,n,i):(c._visibility|=2,Wl(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),u&2048&&ko(m,t);break;case 24:rn(e,t,n,i),u&2048&&Uo(t.alternate,t);break;default:rn(e,t,n,i)}}function Wl(e,t,n,i,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,m=t,x=n,T=i,k=m.flags;switch(m.tag){case 0:case 11:case 15:Wl(c,m,x,T,u),bs(8,m);break;case 23:break;case 22:var G=m.stateNode;m.memoizedState!==null?G._visibility&2?Wl(c,m,x,T,u):Ss(c,m):(G._visibility|=2,Wl(c,m,x,T,u)),u&&k&2048&&ko(m.alternate,m);break;case 24:Wl(c,m,x,T,u),u&&k&2048&&Uo(m.alternate,m);break;default:Wl(c,m,x,T,u)}t=t.sibling}}function Ss(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,u=i.flags;switch(i.tag){case 22:Ss(n,i),u&2048&&ko(i.alternate,i);break;case 24:Ss(n,i),u&2048&&Uo(i.alternate,i);break;default:Ss(n,i)}t=t.sibling}}var _s=8192;function Pl(e,t,n){if(e.subtreeFlags&_s)for(e=e.child;e!==null;)_g(e,t,n),e=e.sibling}function _g(e,t,n){switch(e.tag){case 26:Pl(e,t,n),e.flags&_s&&e.memoizedState!==null&&T1(n,sn,e.memoizedState,e.memoizedProps);break;case 5:Pl(e,t,n);break;case 3:case 4:var i=sn;sn=vu(e.stateNode.containerInfo),Pl(e,t,n),sn=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=_s,_s=16777216,Pl(e,t,n),_s=i):Pl(e,t,n));break;default:Pl(e,t,n)}}function wg(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 ws(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];ut=i,jg(i,e)}wg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Eg(e),e=e.sibling}function Eg(e){switch(e.tag){case 0:case 11:case 15:ws(e),e.flags&2048&&fa(9,e,e.return);break;case 3:ws(e);break;case 12:ws(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,iu(e)):ws(e);break;default:ws(e)}}function iu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];ut=i,jg(i,e)}wg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:fa(8,t,t.return),iu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,iu(t));break;default:iu(t)}e=e.sibling}}function jg(e,t){for(;ut!==null;){var n=ut;switch(n.tag){case 0:case 11:case 15:fa(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:ss(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,ut=i;else e:for(n=e;ut!==null;){i=ut;var u=i.sibling,c=i.return;if(gg(i),i===n){ut=null;break e}if(u!==null){u.return=c,ut=u;break e}ut=c}}}var Gb={getCacheForType:function(e){var t=ht(tt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ht(tt).controller.signal}},Qb=typeof WeakMap=="function"?WeakMap:Map,ze=0,He=null,be=null,_e=0,Oe=0,Bt=null,da=!1,Il=!1,Lo=!1,Gn=0,We=0,ha=0,il=0,Bo=0,Ht=0,ei=0,Es=null,Mt=null,Ho=!1,su=0,Tg=0,ru=1/0,uu=null,ma=null,st=0,ga=null,ti=null,Qn=0,qo=0,Go=null,Mg=null,js=0,Qo=null;function qt(){return(ze&2)!==0&&_e!==0?_e&-_e:B.T!==null?Jo():Vd()}function Ag(){if(Ht===0)if((_e&536870912)===0||Te){var e=pr;pr<<=1,(pr&3932160)===0&&(pr=262144),Ht=e}else Ht=536870912;return e=Ut.current,e!==null&&(e.flags|=32),Ht}function At(e,t,n){(e===He&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)&&(ni(e,0),pa(e,_e,Ht,!1)),Xi(e,n),((ze&2)===0||e!==He)&&(e===He&&((ze&2)===0&&(il|=n),We===4&&pa(e,_e,Ht,!1)),gn(e))}function Cg(e,t,n){if((ze&6)!==0)throw Error(r(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ki(e,t),u=i?Kb(e,t):Yo(e,t,!0),c=i;do{if(u===0){Il&&!i&&pa(e,t,0,!1);break}else{if(n=e.current.alternate,c&&!Vb(n)){u=Yo(e,t,!1),c=!1;continue}if(u===2){if(c=t,e.errorRecoveryDisabledLanes&c)var m=0;else m=e.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){t=m;e:{var x=e;u=Es;var T=x.current.memoizedState.isDehydrated;if(T&&(ni(x,m).flags|=256),m=Yo(x,m,!1),m!==2){if(Lo&&!T){x.errorRecoveryDisabledLanes|=c,il|=c,u=4;break e}c=Mt,Mt=u,c!==null&&(Mt===null?Mt=c:Mt.push.apply(Mt,c))}u=m}if(c=!1,u!==2)continue}}if(u===1){ni(e,0),pa(e,t,0,!0);break}e:{switch(i=e,c=u,c){case 0:case 1:throw Error(r(345));case 4:if((t&4194048)!==t)break;case 6:pa(i,t,Ht,!da);break e;case 2:Mt=null;break;case 3:case 5:break;default:throw Error(r(329))}if((t&62914560)===t&&(u=su+300-Fe(),10<u)){if(pa(i,t,Ht,!da),vr(i,0,!0)!==0)break e;Qn=t,i.timeoutHandle=sp(Rg.bind(null,i,n,Mt,uu,Ho,t,Ht,il,ei,da,c,"Throttled",-0,0),u);break e}Rg(i,n,Mt,uu,Ho,t,Ht,il,ei,da,c,null,-0,0)}}break}while(!0);gn(e)}function Rg(e,t,n,i,u,c,m,x,T,k,G,K,U,H){if(e.timeoutHandle=-1,K=t.subtreeFlags,K&8192||(K&16785408)===16785408){K={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mn},_g(t,c,K);var le=(c&62914560)===c?su-Fe():(c&4194048)===c?Tg-Fe():0;if(le=M1(K,le),le!==null){Qn=c,e.cancelPendingCommit=le(Bg.bind(null,e,t,c,n,i,u,m,x,T,G,K,null,U,H)),pa(e,c,m,!k);return}}Bg(e,t,c,n,i,u,m,x,T)}function Vb(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 i=0;i<n.length;i++){var u=n[i],c=u.getSnapshot;u=u.value;try{if(!Ot(c(),u))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 pa(e,t,n,i){t&=~Bo,t&=~il,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var u=t;0<u;){var c=31-Dt(u),m=1<<c;i[c]=-1,u&=~m}n!==0&&qd(e,n,t)}function cu(){return(ze&6)===0?(Ts(0),!1):!0}function Vo(){if(be!==null){if(Oe===0)var e=be.return;else e=be,zn=$a=null,lo(e),Xl=null,us=0,e=be;for(;e!==null;)rg(e.alternate,e),e=e.return;be=null}}function ni(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,c1(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Qn=0,Vo(),He=e,be=n=Cn(e.current,null),_e=t,Oe=0,Bt=null,da=!1,Il=Ki(e,t),Lo=!1,ei=Ht=Bo=il=ha=We=0,Mt=Es=null,Ho=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var u=31-Dt(i),c=1<<u;t|=e[u],i&=~c}return Gn=t,Rr(),n}function zg(e,t){pe=null,B.H=ps,t===Kl||t===Br?(t=Zh(),Oe=3):t===Xc?(t=Zh(),Oe=4):Oe=t===So?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Bt=t,be===null&&(We=1,Pr(e,Ft(t,e.current)))}function Ng(){var e=Ut.current;return e===null?!0:(_e&4194048)===_e?It===null:(_e&62914560)===_e||(_e&536870912)!==0?e===It:!1}function Dg(){var e=B.H;return B.H=ps,e===null?ps:e}function Og(){var e=B.A;return B.A=Gb,e}function ou(){We=4,da||(_e&4194048)!==_e&&Ut.current!==null||(Il=!0),(ha&134217727)===0&&(il&134217727)===0||He===null||pa(He,_e,Ht,!1)}function Yo(e,t,n){var i=ze;ze|=2;var u=Dg(),c=Og();(He!==e||_e!==t)&&(uu=null,ni(e,t)),t=!1;var m=We;e:do try{if(Oe!==0&&be!==null){var x=be,T=Bt;switch(Oe){case 8:Vo(),m=6;break e;case 3:case 2:case 9:case 6:Ut.current===null&&(t=!0);var k=Oe;if(Oe=0,Bt=null,ai(e,x,T,k),n&&Il){m=0;break e}break;default:k=Oe,Oe=0,Bt=null,ai(e,x,T,k)}}Yb(),m=We;break}catch(G){zg(e,G)}while(!0);return t&&e.shellSuspendCounter++,zn=$a=null,ze=i,B.H=u,B.A=c,be===null&&(He=null,_e=0,Rr()),m}function Yb(){for(;be!==null;)kg(be)}function Kb(e,t){var n=ze;ze|=2;var i=Dg(),u=Og();He!==e||_e!==t?(uu=null,ru=Fe()+500,ni(e,t)):Il=Ki(e,t);e:do try{if(Oe!==0&&be!==null){t=be;var c=Bt;t:switch(Oe){case 1:Oe=0,Bt=null,ai(e,t,c,1);break;case 2:case 9:if(Kh(c)){Oe=0,Bt=null,Ug(t);break}t=function(){Oe!==2&&Oe!==9||He!==e||(Oe=7),gn(e)},c.then(t,t);break e;case 3:Oe=7;break e;case 4:Oe=5;break e;case 7:Kh(c)?(Oe=0,Bt=null,Ug(t)):(Oe=0,Bt=null,ai(e,t,c,7));break;case 5:var m=null;switch(be.tag){case 26:m=be.memoizedState;case 5:case 27:var x=be;if(m?Sp(m):x.stateNode.complete){Oe=0,Bt=null;var T=x.sibling;if(T!==null)be=T;else{var k=x.return;k!==null?(be=k,fu(k)):be=null}break t}}Oe=0,Bt=null,ai(e,t,c,5);break;case 6:Oe=0,Bt=null,ai(e,t,c,6);break;case 8:Vo(),We=6;break e;default:throw Error(r(462))}}Xb();break}catch(G){zg(e,G)}while(!0);return zn=$a=null,B.H=i,B.A=u,ze=n,be!==null?0:(He=null,_e=0,Rr(),We)}function Xb(){for(;be!==null&&!hr();)kg(be)}function kg(e){var t=ig(e.alternate,e,Gn);e.memoizedProps=e.pendingProps,t===null?fu(e):be=t}function Ug(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Im(n,t,t.pendingProps,t.type,void 0,_e);break;case 11:t=Im(n,t,t.pendingProps,t.type.render,t.ref,_e);break;case 5:lo(t);default:rg(n,t),t=be=Oh(t,Gn),t=ig(n,t,Gn)}e.memoizedProps=e.pendingProps,t===null?fu(e):be=t}function ai(e,t,n,i){zn=$a=null,lo(t),Xl=null,us=0;var u=t.return;try{if(Ob(e,u,t,n,_e)){We=1,Pr(e,Ft(n,e.current)),be=null;return}}catch(c){if(u!==null)throw be=u,c;We=1,Pr(e,Ft(n,e.current)),be=null;return}t.flags&32768?(Te||i===1?e=!0:Il||(_e&536870912)!==0?e=!1:(da=e=!0,(i===2||i===9||i===3||i===6)&&(i=Ut.current,i!==null&&i.tag===13&&(i.flags|=16384))),Lg(t,e)):fu(t)}function fu(e){var t=e;do{if((t.flags&32768)!==0){Lg(t,da);return}e=t.return;var n=Lb(t.alternate,t,Gn);if(n!==null){be=n;return}if(t=t.sibling,t!==null){be=t;return}be=t=e}while(t!==null);We===0&&(We=5)}function Lg(e,t){do{var n=Bb(e.alternate,e);if(n!==null){n.flags&=32767,be=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){be=e;return}be=e=n}while(e!==null);We=6,be=null}function Bg(e,t,n,i,u,c,m,x,T){e.cancelPendingCommit=null;do du();while(st!==0);if((ze&6)!==0)throw Error(r(327));if(t!==null){if(t===e.current)throw Error(r(177));if(c=t.lanes|t.childLanes,c|=zc,jv(e,n,c,m,x,T),e===He&&(be=He=null,_e=0),ti=t,ga=e,Qn=n,qo=c,Go=u,Mg=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,$b(mr,function(){return Vg(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=B.T,B.T=null,u=W.p,W.p=2,m=ze,ze|=4;try{Hb(e,t,n)}finally{ze=m,W.p=u,B.T=i}}st=1,Hg(),qg(),Gg()}}function Hg(){if(st===1){st=0;var e=ga,t=ti,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=B.T,B.T=null;var i=W.p;W.p=2;var u=ze;ze|=4;try{bg(t,e);var c=nf,m=jh(e.containerInfo),x=c.focusedElem,T=c.selectionRange;if(m!==x&&x&&x.ownerDocument&&Eh(x.ownerDocument.documentElement,x)){if(T!==null&&Tc(x)){var k=T.start,G=T.end;if(G===void 0&&(G=k),"selectionStart"in x)x.selectionStart=k,x.selectionEnd=Math.min(G,x.value.length);else{var K=x.ownerDocument||document,U=K&&K.defaultView||window;if(U.getSelection){var H=U.getSelection(),le=x.textContent.length,fe=Math.min(T.start,le),Be=T.end===void 0?fe:Math.min(T.end,le);!H.extend&&fe>Be&&(m=Be,Be=fe,fe=m);var N=wh(x,fe),A=wh(x,Be);if(N&&A&&(H.rangeCount!==1||H.anchorNode!==N.node||H.anchorOffset!==N.offset||H.focusNode!==A.node||H.focusOffset!==A.offset)){var O=K.createRange();O.setStart(N.node,N.offset),H.removeAllRanges(),fe>Be?(H.addRange(O),H.extend(A.node,A.offset)):(O.setEnd(A.node,A.offset),H.addRange(O))}}}}for(K=[],H=x;H=H.parentNode;)H.nodeType===1&&K.push({element:H,left:H.scrollLeft,top:H.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<K.length;x++){var V=K[x];V.element.scrollLeft=V.left,V.element.scrollTop=V.top}}Eu=!!tf,nf=tf=null}finally{ze=u,W.p=i,B.T=n}}e.current=t,st=2}}function qg(){if(st===2){st=0;var e=ga,t=ti,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=B.T,B.T=null;var i=W.p;W.p=2;var u=ze;ze|=4;try{mg(e,t.alternate,t)}finally{ze=u,W.p=i,B.T=n}}st=3}}function Gg(){if(st===4||st===3){st=0,it();var e=ga,t=ti,n=Qn,i=Mg;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?st=5:(st=0,ti=ga=null,Qg(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(ma=null),rc(n),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(Yi,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=B.T,u=W.p,W.p=2,B.T=null;try{for(var c=e.onRecoverableError,m=0;m<i.length;m++){var x=i[m];c(x.value,{componentStack:x.stack})}}finally{B.T=t,W.p=u}}(Qn&3)!==0&&du(),gn(e),u=e.pendingLanes,(n&261930)!==0&&(u&42)!==0?e===Qo?js++:(js=0,Qo=e):js=0,Ts(0)}}function Qg(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ss(t)))}function du(){return Hg(),qg(),Gg(),Vg()}function Vg(){if(st!==5)return!1;var e=ga,t=qo;qo=0;var n=rc(Qn),i=B.T,u=W.p;try{W.p=32>n?32:n,B.T=null,n=Go,Go=null;var c=ga,m=Qn;if(st=0,ti=ga=null,Qn=0,(ze&6)!==0)throw Error(r(331));var x=ze;if(ze|=4,Eg(c.current),Sg(c,c.current,m,n),ze=x,Ts(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(Yi,c)}catch{}return!0}finally{W.p=u,B.T=i,Qg(e,t)}}function Yg(e,t,n){t=Ft(n,t),t=xo(e.stateNode,t,2),e=ua(e,t,2),e!==null&&(Xi(e,2),gn(e))}function ke(e,t,n){if(e.tag===3)Yg(e,e,n);else for(;t!==null;){if(t.tag===3){Yg(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(ma===null||!ma.has(i))){e=Ft(n,e),n=Km(2),i=ua(t,n,2),i!==null&&(Xm(n,i,t,e),Xi(i,2),gn(i));break}}t=t.return}}function Ko(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new Qb;var u=new Set;i.set(t,u)}else u=i.get(t),u===void 0&&(u=new Set,i.set(t,u));u.has(n)||(Lo=!0,u.add(n),e=Zb.bind(null,e,t,n),t.then(e,e))}function Zb(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,He===e&&(_e&n)===n&&(We===4||We===3&&(_e&62914560)===_e&&300>Fe()-su?(ze&2)===0&&ni(e,0):Bo|=n,ei===_e&&(ei=0)),gn(e)}function Kg(e,t){t===0&&(t=Hd()),e=Za(e,t),e!==null&&(Xi(e,t),gn(e))}function Jb(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Kg(e,n)}function Fb(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,u=e.memoizedState;u!==null&&(n=u.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(r(314))}i!==null&&i.delete(t),Kg(e,n)}function $b(e,t){return Gi(e,t)}var hu=null,li=null,Xo=!1,mu=!1,Zo=!1,ya=0;function gn(e){e!==li&&e.next===null&&(li===null?hu=li=e:li=li.next=e),mu=!0,Xo||(Xo=!0,Pb())}function Ts(e,t){if(!Zo&&mu){Zo=!0;do for(var n=!1,i=hu;i!==null;){if(e!==0){var u=i.pendingLanes;if(u===0)var c=0;else{var m=i.suspendedLanes,x=i.pingedLanes;c=(1<<31-Dt(42|e)+1)-1,c&=u&~(m&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Fg(i,c))}else c=_e,c=vr(i,i===He?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(c&3)===0||Ki(i,c)||(n=!0,Fg(i,c));i=i.next}while(n);Zo=!1}}function Wb(){Xg()}function Xg(){mu=Xo=!1;var e=0;ya!==0&&u1()&&(e=ya);for(var t=Fe(),n=null,i=hu;i!==null;){var u=i.next,c=Zg(i,t);c===0?(i.next=null,n===null?hu=u:n.next=u,u===null&&(li=n)):(n=i,(e!==0||(c&3)!==0)&&(mu=!0)),i=u}st!==0&&st!==5||Ts(e),ya!==0&&(ya=0)}function Zg(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,u=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var m=31-Dt(c),x=1<<m,T=u[m];T===-1?((x&n)===0||(x&i)!==0)&&(u[m]=Ev(x,t)):T<=t&&(e.expiredLanes|=x),c&=~x}if(t=He,n=_e,n=vr(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(Oe===2||Oe===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Qi(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ki(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Qi(i),rc(n)){case 2:case 8:n=Ld;break;case 32:n=mr;break;case 268435456:n=Bd;break;default:n=mr}return i=Jg.bind(null,e),n=Gi(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Qi(i),e.callbackPriority=2,e.callbackNode=null,2}function Jg(e,t){if(st!==0&&st!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(du()&&e.callbackNode!==n)return null;var i=_e;return i=vr(e,e===He?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Cg(e,i,t),Zg(e,Fe()),e.callbackNode!=null&&e.callbackNode===n?Jg.bind(null,e):null)}function Fg(e,t){if(du())return null;Cg(e,t,!0)}function Pb(){o1(function(){(ze&6)!==0?Gi(Vi,Wb):Xg()})}function Jo(){if(ya===0){var e=Vl;e===0&&(e=gr,gr<<=1,(gr&261888)===0&&(gr=256)),ya=e}return ya}function $g(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:_r(""+e)}function Wg(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function Ib(e,t,n,i,u){if(t==="submit"&&n&&n.stateNode===u){var c=$g((u[_t]||null).action),m=i.submitter;m&&(t=(t=m[_t]||null)?$g(t.formAction):m.getAttribute("formAction"),t!==null&&(c=t,m=null));var x=new Tr("action","action",null,i,u);e.push({event:x,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(ya!==0){var T=m?Wg(u,m):new FormData(u);mo(n,{pending:!0,data:T,method:u.method,action:c},null,T)}}else typeof c=="function"&&(x.preventDefault(),T=m?Wg(u,m):new FormData(u),mo(n,{pending:!0,data:T,method:u.method,action:c},c,T))},currentTarget:u}]})}}for(var Fo=0;Fo<Rc.length;Fo++){var $o=Rc[Fo],e1=$o.toLowerCase(),t1=$o[0].toUpperCase()+$o.slice(1);ln(e1,"on"+t1)}ln(Ah,"onAnimationEnd"),ln(Ch,"onAnimationIteration"),ln(Rh,"onAnimationStart"),ln("dblclick","onDoubleClick"),ln("focusin","onFocus"),ln("focusout","onBlur"),ln(yb,"onTransitionRun"),ln(vb,"onTransitionStart"),ln(bb,"onTransitionCancel"),ln(zh,"onTransitionEnd"),Cl("onMouseEnter",["mouseout","mouseover"]),Cl("onMouseLeave",["mouseout","mouseover"]),Cl("onPointerEnter",["pointerout","pointerover"]),Cl("onPointerLeave",["pointerout","pointerover"]),Va("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Va("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Va("onBeforeInput",["compositionend","keypress","textInput","paste"]),Va("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Va("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Va("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ms="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(" "),n1=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ms));function Pg(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],u=i.event;i=i.listeners;e:{var c=void 0;if(t)for(var m=i.length-1;0<=m;m--){var x=i[m],T=x.instance,k=x.currentTarget;if(x=x.listener,T!==c&&u.isPropagationStopped())break e;c=x,u.currentTarget=k;try{c(u)}catch(G){Cr(G)}u.currentTarget=null,c=T}else for(m=0;m<i.length;m++){if(x=i[m],T=x.instance,k=x.currentTarget,x=x.listener,T!==c&&u.isPropagationStopped())break e;c=x,u.currentTarget=k;try{c(u)}catch(G){Cr(G)}u.currentTarget=null,c=T}}}}function xe(e,t){var n=t[uc];n===void 0&&(n=t[uc]=new Set);var i=e+"__bubble";n.has(i)||(Ig(t,e,2,!1),n.add(i))}function Wo(e,t,n){var i=0;t&&(i|=4),Ig(n,e,i,t)}var gu="_reactListening"+Math.random().toString(36).slice(2);function Po(e){if(!e[gu]){e[gu]=!0,Xd.forEach(function(n){n!=="selectionchange"&&(n1.has(n)||Wo(n,!1,e),Wo(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gu]||(t[gu]=!0,Wo("selectionchange",!1,t))}}function Ig(e,t,n,i){switch(Ap(t)){case 2:var u=R1;break;case 8:u=z1;break;default:u=mf}n=u.bind(null,t,n,e),u=void 0,!yc||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),i?u!==void 0?e.addEventListener(t,n,{capture:!0,passive:u}):e.addEventListener(t,n,!0):u!==void 0?e.addEventListener(t,n,{passive:u}):e.addEventListener(t,n,!1)}function Io(e,t,n,i,u){var c=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var m=i.tag;if(m===3||m===4){var x=i.stateNode.containerInfo;if(x===u)break;if(m===4)for(m=i.return;m!==null;){var T=m.tag;if((T===3||T===4)&&m.stateNode.containerInfo===u)return;m=m.return}for(;x!==null;){if(m=Tl(x),m===null)return;if(T=m.tag,T===5||T===6||T===26||T===27){i=c=m;continue e}x=x.parentNode}}i=i.return}lh(function(){var k=c,G=gc(n),K=[];e:{var U=Nh.get(e);if(U!==void 0){var H=Tr,le=e;switch(e){case"keypress":if(Er(n)===0)break e;case"keydown":case"keyup":H=Fv;break;case"focusin":le="focus",H=Sc;break;case"focusout":le="blur",H=Sc;break;case"beforeblur":case"afterblur":H=Sc;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=rh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=Lv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=Pv;break;case Ah:case Ch:case Rh:H=qv;break;case zh:H=eb;break;case"scroll":case"scrollend":H=kv;break;case"wheel":H=nb;break;case"copy":case"cut":case"paste":H=Qv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=ch;break;case"toggle":case"beforetoggle":H=lb}var fe=(t&4)!==0,Be=!fe&&(e==="scroll"||e==="scrollend"),N=fe?U!==null?U+"Capture":null:U;fe=[];for(var A=k,O;A!==null;){var V=A;if(O=V.stateNode,V=V.tag,V!==5&&V!==26&&V!==27||O===null||N===null||(V=Fi(A,N),V!=null&&fe.push(As(A,V,O))),Be)break;A=A.return}0<fe.length&&(U=new H(U,le,null,n,G),K.push({event:U,listeners:fe}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",U&&n!==mc&&(le=n.relatedTarget||n.fromElement)&&(Tl(le)||le[jl]))break e;if((H||U)&&(U=G.window===G?G:(U=G.ownerDocument)?U.defaultView||U.parentWindow:window,H?(le=n.relatedTarget||n.toElement,H=k,le=le?Tl(le):null,le!==null&&(Be=f(le),fe=le.tag,le!==Be||fe!==5&&fe!==27&&fe!==6)&&(le=null)):(H=null,le=k),H!==le)){if(fe=rh,V="onMouseLeave",N="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(fe=ch,V="onPointerLeave",N="onPointerEnter",A="pointer"),Be=H==null?U:Ji(H),O=le==null?U:Ji(le),U=new fe(V,A+"leave",H,n,G),U.target=Be,U.relatedTarget=O,V=null,Tl(G)===k&&(fe=new fe(N,A+"enter",le,n,G),fe.target=O,fe.relatedTarget=Be,V=fe),Be=V,H&&le)t:{for(fe=a1,N=H,A=le,O=0,V=N;V;V=fe(V))O++;V=0;for(var ue=A;ue;ue=fe(ue))V++;for(;0<O-V;)N=fe(N),O--;for(;0<V-O;)A=fe(A),V--;for(;O--;){if(N===A||A!==null&&N===A.alternate){fe=N;break t}N=fe(N),A=fe(A)}fe=null}else fe=null;H!==null&&ep(K,U,H,fe,!1),le!==null&&Be!==null&&ep(K,Be,le,fe,!0)}}e:{if(U=k?Ji(k):window,H=U.nodeName&&U.nodeName.toLowerCase(),H==="select"||H==="input"&&U.type==="file")var Ce=yh;else if(gh(U))if(vh)Ce=mb;else{Ce=db;var se=fb}else H=U.nodeName,!H||H.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?k&&hc(k.elementType)&&(Ce=yh):Ce=hb;if(Ce&&(Ce=Ce(e,k))){ph(K,Ce,n,G);break e}se&&se(e,U,k),e==="focusout"&&k&&U.type==="number"&&k.memoizedProps.value!=null&&dc(U,"number",U.value)}switch(se=k?Ji(k):window,e){case"focusin":(gh(se)||se.contentEditable==="true")&&(kl=se,Mc=k,as=null);break;case"focusout":as=Mc=kl=null;break;case"mousedown":Ac=!0;break;case"contextmenu":case"mouseup":case"dragend":Ac=!1,Th(K,n,G);break;case"selectionchange":if(pb)break;case"keydown":case"keyup":Th(K,n,G)}var ye;if(wc)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else Ol?hh(e,n)&&(we="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(we="onCompositionStart");we&&(oh&&n.locale!=="ko"&&(Ol||we!=="onCompositionStart"?we==="onCompositionEnd"&&Ol&&(ye=ih()):(ta=G,vc="value"in ta?ta.value:ta.textContent,Ol=!0)),se=pu(k,we),0<se.length&&(we=new uh(we,e,null,n,G),K.push({event:we,listeners:se}),ye?we.data=ye:(ye=mh(n),ye!==null&&(we.data=ye)))),(ye=sb?rb(e,n):ub(e,n))&&(we=pu(k,"onBeforeInput"),0<we.length&&(se=new uh("onBeforeInput","beforeinput",null,n,G),K.push({event:se,listeners:we}),se.data=ye)),Ib(K,e,k,n,G)}Pg(K,t)})}function As(e,t,n){return{instance:e,listener:t,currentTarget:n}}function pu(e,t){for(var n=t+"Capture",i=[];e!==null;){var u=e,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=Fi(e,n),u!=null&&i.unshift(As(e,u,c)),u=Fi(e,t),u!=null&&i.push(As(e,u,c))),e.tag===3)return i;e=e.return}return[]}function a1(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ep(e,t,n,i,u){for(var c=t._reactName,m=[];n!==null&&n!==i;){var x=n,T=x.alternate,k=x.stateNode;if(x=x.tag,T!==null&&T===i)break;x!==5&&x!==26&&x!==27||k===null||(T=k,u?(k=Fi(n,c),k!=null&&m.unshift(As(n,k,T))):u||(k=Fi(n,c),k!=null&&m.push(As(n,k,T)))),n=n.return}m.length!==0&&e.push({event:t,listeners:m})}var l1=/\r\n?/g,i1=/\u0000|\uFFFD/g;function tp(e){return(typeof e=="string"?e:""+e).replace(l1,`
|
||
`).replace(i1,"")}function np(e,t){return t=tp(t),tp(e)===t}function Le(e,t,n,i,u,c){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||zl(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&zl(e,""+i);break;case"className":xr(e,"class",i);break;case"tabIndex":xr(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":xr(e,n,i);break;case"style":nh(e,i,c);break;case"data":if(t!=="object"){xr(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=_r(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="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 c=="function"&&(n==="formAction"?(t!=="input"&&Le(e,t,"name",u.name,u,null),Le(e,t,"formEncType",u.formEncType,u,null),Le(e,t,"formMethod",u.formMethod,u,null),Le(e,t,"formTarget",u.formTarget,u,null)):(Le(e,t,"encType",u.encType,u,null),Le(e,t,"method",u.method,u,null),Le(e,t,"target",u.target,u,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=_r(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=Mn);break;case"onScroll":i!=null&&xe("scroll",e);break;case"onScrollEnd":i!=null&&xe("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=_r(""+i),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":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":xe("beforetoggle",e),xe("toggle",e),br(e,"popover",i);break;case"xlinkActuate":Tn(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":Tn(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":Tn(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":Tn(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":Tn(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":Tn(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":Tn(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":br(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Dv.get(n)||n,br(e,n,i))}}function ef(e,t,n,i,u,c){switch(n){case"style":nh(e,i,c);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(r(61));if(n=i.__html,n!=null){if(u.children!=null)throw Error(r(60));e.innerHTML=n}}break;case"children":typeof i=="string"?zl(e,i):(typeof i=="number"||typeof i=="bigint")&&zl(e,""+i);break;case"onScroll":i!=null&&xe("scroll",e);break;case"onScrollEnd":i!=null&&xe("scrollend",e);break;case"onClick":i!=null&&(e.onclick=Mn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zd.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),t=n.slice(2,u?n.length-7:void 0),c=e[_t]||null,c=c!=null?c[n]:null,typeof c=="function"&&e.removeEventListener(t,c,u),typeof i=="function")){typeof c!="function"&&c!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,u);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):br(e,n,i)}}}function gt(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":xe("error",e),xe("load",e);var i=!1,u=!1,c;for(c in n)if(n.hasOwnProperty(c)){var m=n[c];if(m!=null)switch(c){case"src":i=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Le(e,t,c,m,n,null)}}u&&Le(e,t,"srcSet",n.srcSet,n,null),i&&Le(e,t,"src",n.src,n,null);return;case"input":xe("invalid",e);var x=c=m=u=null,T=null,k=null;for(i in n)if(n.hasOwnProperty(i)){var G=n[i];if(G!=null)switch(i){case"name":u=G;break;case"type":m=G;break;case"checked":T=G;break;case"defaultChecked":k=G;break;case"value":c=G;break;case"defaultValue":x=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,t));break;default:Le(e,t,i,G,n,null)}}Pd(e,c,x,T,k,m,u,!1);return;case"select":xe("invalid",e),i=m=c=null;for(u in n)if(n.hasOwnProperty(u)&&(x=n[u],x!=null))switch(u){case"value":c=x;break;case"defaultValue":m=x;break;case"multiple":i=x;default:Le(e,t,u,x,n,null)}t=c,n=m,e.multiple=!!i,t!=null?Rl(e,!!i,t,!1):n!=null&&Rl(e,!!i,n,!0);return;case"textarea":xe("invalid",e),c=u=i=null;for(m in n)if(n.hasOwnProperty(m)&&(x=n[m],x!=null))switch(m){case"value":i=x;break;case"defaultValue":u=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:Le(e,t,m,x,n,null)}eh(e,i,u,c);return;case"option":for(T in n)if(n.hasOwnProperty(T)&&(i=n[T],i!=null))switch(T){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Le(e,t,T,i,n,null)}return;case"dialog":xe("beforetoggle",e),xe("toggle",e),xe("cancel",e),xe("close",e);break;case"iframe":case"object":xe("load",e);break;case"video":case"audio":for(i=0;i<Ms.length;i++)xe(Ms[i],e);break;case"image":xe("error",e),xe("load",e);break;case"details":xe("toggle",e);break;case"embed":case"source":case"link":xe("error",e),xe("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(k in n)if(n.hasOwnProperty(k)&&(i=n[k],i!=null))switch(k){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,t));default:Le(e,t,k,i,n,null)}return;default:if(hc(t)){for(G in n)n.hasOwnProperty(G)&&(i=n[G],i!==void 0&&ef(e,t,G,i,n,void 0));return}}for(x in n)n.hasOwnProperty(x)&&(i=n[x],i!=null&&Le(e,t,x,i,n,null))}function s1(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,m=null,x=null,T=null,k=null,G=null;for(H in n){var K=n[H];if(n.hasOwnProperty(H)&&K!=null)switch(H){case"checked":break;case"value":break;case"defaultValue":T=K;default:i.hasOwnProperty(H)||Le(e,t,H,null,i,K)}}for(var U in i){var H=i[U];if(K=n[U],i.hasOwnProperty(U)&&(H!=null||K!=null))switch(U){case"type":c=H;break;case"name":u=H;break;case"checked":k=H;break;case"defaultChecked":G=H;break;case"value":m=H;break;case"defaultValue":x=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,t));break;default:H!==K&&Le(e,t,U,H,i,K)}}fc(e,m,x,T,k,G,c,u);return;case"select":H=m=x=U=null;for(c in n)if(T=n[c],n.hasOwnProperty(c)&&T!=null)switch(c){case"value":break;case"multiple":H=T;default:i.hasOwnProperty(c)||Le(e,t,c,null,i,T)}for(u in i)if(c=i[u],T=n[u],i.hasOwnProperty(u)&&(c!=null||T!=null))switch(u){case"value":U=c;break;case"defaultValue":x=c;break;case"multiple":m=c;default:c!==T&&Le(e,t,u,c,i,T)}t=x,n=m,i=H,U!=null?Rl(e,!!n,U,!1):!!i!=!!n&&(t!=null?Rl(e,!!n,t,!0):Rl(e,!!n,n?[]:"",!1));return;case"textarea":H=U=null;for(x in n)if(u=n[x],n.hasOwnProperty(x)&&u!=null&&!i.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Le(e,t,x,null,i,u)}for(m in i)if(u=i[m],c=n[m],i.hasOwnProperty(m)&&(u!=null||c!=null))switch(m){case"value":U=u;break;case"defaultValue":H=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==c&&Le(e,t,m,u,i,c)}Id(e,U,H);return;case"option":for(var le in n)if(U=n[le],n.hasOwnProperty(le)&&U!=null&&!i.hasOwnProperty(le))switch(le){case"selected":e.selected=!1;break;default:Le(e,t,le,null,i,U)}for(T in i)if(U=i[T],H=n[T],i.hasOwnProperty(T)&&U!==H&&(U!=null||H!=null))switch(T){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Le(e,t,T,U,i,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 fe in n)U=n[fe],n.hasOwnProperty(fe)&&U!=null&&!i.hasOwnProperty(fe)&&Le(e,t,fe,null,i,U);for(k in i)if(U=i[k],H=n[k],i.hasOwnProperty(k)&&U!==H&&(U!=null||H!=null))switch(k){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,t));break;default:Le(e,t,k,U,i,H)}return;default:if(hc(t)){for(var Be in n)U=n[Be],n.hasOwnProperty(Be)&&U!==void 0&&!i.hasOwnProperty(Be)&&ef(e,t,Be,void 0,i,U);for(G in i)U=i[G],H=n[G],!i.hasOwnProperty(G)||U===H||U===void 0&&H===void 0||ef(e,t,G,U,i,H);return}}for(var N in n)U=n[N],n.hasOwnProperty(N)&&U!=null&&!i.hasOwnProperty(N)&&Le(e,t,N,null,i,U);for(K in i)U=i[K],H=n[K],!i.hasOwnProperty(K)||U===H||U==null&&H==null||Le(e,t,K,U,i,H)}function ap(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function r1(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var u=n[i],c=u.transferSize,m=u.initiatorType,x=u.duration;if(c&&x&&ap(m)){for(m=0,x=u.responseEnd,i+=1;i<n.length;i++){var T=n[i],k=T.startTime;if(k>x)break;var G=T.transferSize,K=T.initiatorType;G&&ap(K)&&(T=T.responseEnd,m+=G*(T<x?1:(x-k)/(T-k)))}if(--i,t+=8*(c+m)/(u.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 tf=null,nf=null;function yu(e){return e.nodeType===9?e:e.ownerDocument}function lp(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 ip(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 af(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 lf=null;function u1(){var e=window.event;return e&&e.type==="popstate"?e===lf?!1:(lf=e,!0):(lf=null,!1)}var sp=typeof setTimeout=="function"?setTimeout:void 0,c1=typeof clearTimeout=="function"?clearTimeout:void 0,rp=typeof Promise=="function"?Promise:void 0,o1=typeof queueMicrotask=="function"?queueMicrotask:typeof rp<"u"?function(e){return rp.resolve(null).then(e).catch(f1)}:sp;function f1(e){setTimeout(function(){throw e})}function va(e){return e==="head"}function up(e,t){var n=t,i=0;do{var u=n.nextSibling;if(e.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(u),ui(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")Cs(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Cs(n);for(var c=n.firstChild;c;){var m=c.nextSibling,x=c.nodeName;c[Zi]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=m}}else n==="body"&&Cs(e.ownerDocument.body);n=u}while(n);ui(t)}function cp(e,t){var n=e;e=0;do{var i=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||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function sf(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":sf(n),cc(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function d1(e,t,n,i){for(;e.nodeType===1;){var u=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Zi])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=en(e.nextSibling),e===null)break}return null}function h1(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=en(e.nextSibling),e===null))return null;return e}function op(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=en(e.nextSibling),e===null))return null;return e}function rf(e){return e.data==="$?"||e.data==="$~"}function uf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function m1(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function en(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 cf=null;function fp(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return en(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function dp(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 hp(e,t,n){switch(t=yu(n),e){case"html":if(e=t.documentElement,!e)throw Error(r(452));return e;case"head":if(e=t.head,!e)throw Error(r(453));return e;case"body":if(e=t.body,!e)throw Error(r(454));return e;default:throw Error(r(451))}}function Cs(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);cc(e)}var tn=new Map,mp=new Set;function vu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Vn=W.d;W.d={f:g1,r:p1,D:y1,C:v1,L:b1,m:x1,X:_1,S:S1,M:w1};function g1(){var e=Vn.f(),t=cu();return e||t}function p1(e){var t=Ml(e);t!==null&&t.tag===5&&t.type==="form"?zm(t):Vn.r(e)}var ii=typeof document>"u"?null:document;function gp(e,t,n){var i=ii;if(i&&typeof t=="string"&&t){var u=Zt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),mp.has(u)||(mp.add(u),e={rel:e,crossOrigin:n,href:t},i.querySelector(u)===null&&(t=i.createElement("link"),gt(t,"link",e),rt(t),i.head.appendChild(t)))}}function y1(e){Vn.D(e),gp("dns-prefetch",e,null)}function v1(e,t){Vn.C(e,t),gp("preconnect",e,t)}function b1(e,t,n){Vn.L(e,t,n);var i=ii;if(i&&e&&t){var u='link[rel="preload"][as="'+Zt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Zt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Zt(n.imageSizes)+'"]')):u+='[href="'+Zt(e)+'"]';var c=u;switch(t){case"style":c=si(e);break;case"script":c=ri(e)}tn.has(c)||(e=y({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),tn.set(c,e),i.querySelector(u)!==null||t==="style"&&i.querySelector(Rs(c))||t==="script"&&i.querySelector(zs(c))||(t=i.createElement("link"),gt(t,"link",e),rt(t),i.head.appendChild(t)))}}function x1(e,t){Vn.m(e,t);var n=ii;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Zt(i)+'"][href="'+Zt(e)+'"]',c=u;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=ri(e)}if(!tn.has(c)&&(e=y({rel:"modulepreload",href:e},t),tn.set(c,e),n.querySelector(u)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(zs(c)))return}i=n.createElement("link"),gt(i,"link",e),rt(i),n.head.appendChild(i)}}}function S1(e,t,n){Vn.S(e,t,n);var i=ii;if(i&&e){var u=Al(i).hoistableStyles,c=si(e);t=t||"default";var m=u.get(c);if(!m){var x={loading:0,preload:null};if(m=i.querySelector(Rs(c)))x.loading=5;else{e=y({rel:"stylesheet",href:e,"data-precedence":t},n),(n=tn.get(c))&&of(e,n);var T=m=i.createElement("link");rt(T),gt(T,"link",e),T._p=new Promise(function(k,G){T.onload=k,T.onerror=G}),T.addEventListener("load",function(){x.loading|=1}),T.addEventListener("error",function(){x.loading|=2}),x.loading|=4,bu(m,t,i)}m={type:"stylesheet",instance:m,count:1,state:x},u.set(c,m)}}}function _1(e,t){Vn.X(e,t);var n=ii;if(n&&e){var i=Al(n).hoistableScripts,u=ri(e),c=i.get(u);c||(c=n.querySelector(zs(u)),c||(e=y({src:e,async:!0},t),(t=tn.get(u))&&ff(e,t),c=n.createElement("script"),rt(c),gt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(u,c))}}function w1(e,t){Vn.M(e,t);var n=ii;if(n&&e){var i=Al(n).hoistableScripts,u=ri(e),c=i.get(u);c||(c=n.querySelector(zs(u)),c||(e=y({src:e,async:!0,type:"module"},t),(t=tn.get(u))&&ff(e,t),c=n.createElement("script"),rt(c),gt(c,"link",e),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},i.set(u,c))}}function pp(e,t,n,i){var u=(u=ge.current)?vu(u):null;if(!u)throw Error(r(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=si(n.href),n=Al(u).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=si(n.href);var c=Al(u).hoistableStyles,m=c.get(e);if(m||(u=u.ownerDocument||u,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,m),(c=u.querySelector(Rs(e)))&&!c._p&&(m.instance=c,m.state.loading=5),tn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},tn.set(e,n),c||E1(u,e,n,m.state))),t&&i===null)throw Error(r(528,""));return m}if(t&&i!==null)throw Error(r(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ri(n),n=Al(u).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,e))}}function si(e){return'href="'+Zt(e)+'"'}function Rs(e){return'link[rel="stylesheet"]['+e+"]"}function yp(e){return y({},e,{"data-precedence":e.precedence,precedence:null})}function E1(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),gt(t,"link",n),rt(t),e.head.appendChild(t))}function ri(e){return'[src="'+Zt(e)+'"]'}function zs(e){return"script[async]"+e}function vp(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+Zt(n.href)+'"]');if(i)return t.instance=i,rt(i),i;var u=y({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),rt(i),gt(i,"style",u),bu(i,n.precedence,e),t.instance=i;case"stylesheet":u=si(n.href);var c=e.querySelector(Rs(u));if(c)return t.state.loading|=4,t.instance=c,rt(c),c;i=yp(n),(u=tn.get(u))&&of(i,u),c=(e.ownerDocument||e).createElement("link"),rt(c);var m=c;return m._p=new Promise(function(x,T){m.onload=x,m.onerror=T}),gt(c,"link",i),t.state.loading|=4,bu(c,n.precedence,e),t.instance=c;case"script":return c=ri(n.src),(u=e.querySelector(zs(c)))?(t.instance=u,rt(u),u):(i=n,(u=tn.get(c))&&(i=y({},n),ff(i,u)),e=e.ownerDocument||e,u=e.createElement("script"),rt(u),gt(u,"link",i),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(r(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,bu(i,n.precedence,e));return t.instance}function bu(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=i.length?i[i.length-1]:null,c=u,m=0;m<i.length;m++){var x=i[m];if(x.dataset.precedence===t)c=x;else if(c!==u)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function of(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function ff(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var xu=null;function bp(e,t,n){if(xu===null){var i=new Map,u=xu=new Map;u.set(n,i)}else u=xu,i=u.get(n),i||(i=new Map,u.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),u=0;u<n.length;u++){var c=n[u];if(!(c[Zi]||c[ft]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(t)||"";m=e+m;var x=i.get(m);x?x.push(c):i.set(m,[c])}}return i}function xp(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function j1(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 Sp(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function T1(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=si(i.href),c=t.querySelector(Rs(u));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Su.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=c,rt(c);return}c=t.ownerDocument||t,i=yp(i),(u=tn.get(u))&&of(i,u),c=c.createElement("link"),rt(c);var m=c;m._p=new Promise(function(x,T){m.onload=x,m.onerror=T}),gt(c,"link",i),n.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Su.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var df=0;function M1(e,t){return e.stylesheets&&e.count===0&&wu(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&wu(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&df===0&&(df=62500*r1());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&wu(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>df?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(u)}}:null}function Su(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)wu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var _u=null;function wu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,_u=new Map,t.forEach(A1,e),_u=null,Su.call(e))}function A1(e,t){if(!(t.state.loading&4)){var n=_u.get(e);if(n)var i=n.get(null);else{n=new Map,_u.set(e,n);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var m=u[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(n.set(m.dataset.precedence,m),i=m)}i&&n.set(null,i)}u=t.instance,m=u.getAttribute("data-precedence"),c=n.get(m)||i,c===i&&n.set(null,u),n.set(m,u),this.count++,i=Su.bind(this),u.addEventListener("load",i),u.addEventListener("error",i),c?c.parentNode.insertBefore(u,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var Ns={$$typeof:L,Provider:null,Consumer:null,_currentValue:re,_currentValue2:re,_threadCount:0};function C1(e,t,n,i,u,c,m,x,T){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=ic(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ic(0),this.hiddenUpdates=ic(null),this.identifierPrefix=i,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=T,this.incompleteTransitions=new Map}function _p(e,t,n,i,u,c,m,x,T,k,G,K){return e=new C1(e,t,n,m,T,k,G,K,x),t=1,c===!0&&(t|=24),c=kt(3,null,null,t),e.current=c,c.stateNode=e,t=Vc(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:i,isDehydrated:n,cache:t},Zc(c),e}function wp(e){return e?(e=Bl,e):Bl}function Ep(e,t,n,i,u,c){u=wp(u),i.context===null?i.context=u:i.pendingContext=u,i=ra(t),i.payload={element:n},c=c===void 0?null:c,c!==null&&(i.callback=c),n=ua(e,i,t),n!==null&&(At(n,e,t),os(n,e,t))}function jp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function hf(e,t){jp(e,t),(e=e.alternate)&&jp(e,t)}function Tp(e){if(e.tag===13||e.tag===31){var t=Za(e,67108864);t!==null&&At(t,e,67108864),hf(e,67108864)}}function Mp(e){if(e.tag===13||e.tag===31){var t=qt();t=sc(t);var n=Za(e,t);n!==null&&At(n,e,t),hf(e,t)}}var Eu=!0;function R1(e,t,n,i){var u=B.T;B.T=null;var c=W.p;try{W.p=2,mf(e,t,n,i)}finally{W.p=c,B.T=u}}function z1(e,t,n,i){var u=B.T;B.T=null;var c=W.p;try{W.p=8,mf(e,t,n,i)}finally{W.p=c,B.T=u}}function mf(e,t,n,i){if(Eu){var u=gf(i);if(u===null)Io(e,t,i,ju,n),Cp(e,i);else if(D1(u,e,t,n,i))i.stopPropagation();else if(Cp(e,i),t&4&&-1<N1.indexOf(e)){for(;u!==null;){var c=Ml(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=Qa(c.pendingLanes);if(m!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;m;){var T=1<<31-Dt(m);x.entanglements[1]|=T,m&=~T}gn(c),(ze&6)===0&&(ru=Fe()+500,Ts(0))}}break;case 31:case 13:x=Za(c,2),x!==null&&At(x,c,2),cu(),hf(c,2)}if(c=gf(i),c===null&&Io(e,t,i,ju,n),c===u)break;u=c}u!==null&&i.stopPropagation()}else Io(e,t,i,null,n)}}function gf(e){return e=gc(e),pf(e)}var ju=null;function pf(e){if(ju=null,e=Tl(e),e!==null){var t=f(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=d(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 ju=e,null}function Ap(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(jn()){case Vi:return 2;case Ld:return 8;case mr:case vv:return 32;case Bd:return 268435456;default:return 32}default:return 32}}var yf=!1,ba=null,xa=null,Sa=null,Ds=new Map,Os=new Map,_a=[],N1="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 Cp(e,t){switch(e){case"focusin":case"focusout":ba=null;break;case"dragenter":case"dragleave":xa=null;break;case"mouseover":case"mouseout":Sa=null;break;case"pointerover":case"pointerout":Ds.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Os.delete(t.pointerId)}}function ks(e,t,n,i,u,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:c,targetContainers:[u]},t!==null&&(t=Ml(t),t!==null&&Tp(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function D1(e,t,n,i,u){switch(t){case"focusin":return ba=ks(ba,e,t,n,i,u),!0;case"dragenter":return xa=ks(xa,e,t,n,i,u),!0;case"mouseover":return Sa=ks(Sa,e,t,n,i,u),!0;case"pointerover":var c=u.pointerId;return Ds.set(c,ks(Ds.get(c)||null,e,t,n,i,u)),!0;case"gotpointercapture":return c=u.pointerId,Os.set(c,ks(Os.get(c)||null,e,t,n,i,u)),!0}return!1}function Rp(e){var t=Tl(e.target);if(t!==null){var n=f(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,Yd(e.priority,function(){Mp(n)});return}}else if(t===31){if(t=d(n),t!==null){e.blockedOn=t,Yd(e.priority,function(){Mp(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 Tu(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=gf(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);mc=i,n.target.dispatchEvent(i),mc=null}else return t=Ml(n),t!==null&&Tp(t),e.blockedOn=n,!1;t.shift()}return!0}function zp(e,t,n){Tu(e)&&n.delete(t)}function O1(){yf=!1,ba!==null&&Tu(ba)&&(ba=null),xa!==null&&Tu(xa)&&(xa=null),Sa!==null&&Tu(Sa)&&(Sa=null),Ds.forEach(zp),Os.forEach(zp)}function Mu(e,t){e.blockedOn===t&&(e.blockedOn=null,yf||(yf=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,O1)))}var Au=null;function Np(e){Au!==e&&(Au=e,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){Au===e&&(Au=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],u=e[t+2];if(typeof i!="function"){if(pf(i||n)===null)continue;break}var c=Ml(n);c!==null&&(e.splice(t,3),t-=3,mo(c,{pending:!0,data:u,method:n.method,action:i},i,u))}}))}function ui(e){function t(T){return Mu(T,e)}ba!==null&&Mu(ba,e),xa!==null&&Mu(xa,e),Sa!==null&&Mu(Sa,e),Ds.forEach(t),Os.forEach(t);for(var n=0;n<_a.length;n++){var i=_a[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<_a.length&&(n=_a[0],n.blockedOn===null);)Rp(n),n.blockedOn===null&&_a.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var u=n[i],c=n[i+1],m=u[_t]||null;if(typeof c=="function")m||Np(n);else if(m){var x=null;if(c&&c.hasAttribute("formAction")){if(u=c,m=c[_t]||null)x=m.formAction;else if(pf(u)!==null)continue}else x=m.action;typeof x=="function"?n[i+1]=x:(n.splice(i,3),i-=3),Np(n)}}}function Dp(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return u=m})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function vf(e){this._internalRoot=e}Cu.prototype.render=vf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));var n=t.current,i=qt();Ep(n,i,e,t,null,null)},Cu.prototype.unmount=vf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Ep(e.current,2,null,e,null,null),cu(),t[jl]=null}};function Cu(e){this._internalRoot=e}Cu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Vd();e={blockedOn:null,target:e,priority:t};for(var n=0;n<_a.length&&t!==0&&t<_a[n].priority;n++);_a.splice(n,0,e),n===0&&Rp(e)}};var Op=l.version;if(Op!=="19.2.8")throw Error(r(527,Op,"19.2.8"));W.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=g(t),e=e!==null?b(e):null,e=e===null?null:e.stateNode,e};var k1={bundleType:0,version:"19.2.8",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.8"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ru=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ru.isDisabled&&Ru.supportsFiber)try{Yi=Ru.inject(k1),Nt=Ru}catch{}}return Ls.createRoot=function(e,t){if(!o(e))throw Error(r(299));var n=!1,i="",u=Gm,c=Qm,m=Vm;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(m=t.onRecoverableError)),t=_p(e,1,!1,null,null,n,i,null,u,c,m,Dp),e[jl]=t.current,Po(e),new vf(t)},Ls.hydrateRoot=function(e,t,n){if(!o(e))throw Error(r(299));var i=!1,u="",c=Gm,m=Qm,x=Vm,T=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(m=n.onCaughtError),n.onRecoverableError!==void 0&&(x=n.onRecoverableError),n.formState!==void 0&&(T=n.formState)),t=_p(e,1,!0,t,n??null,i,u,T,c,m,x,Dp),t.context=wp(null),n=t.current,i=qt(),i=sc(i),u=ra(i),u.callback=null,ua(n,u,i),n=i,t.current.lanes=n,Xi(t,n),gn(t),e[jl]=t.current,Po(e),new Cu(t)},Ls.version="19.2.8",Ls}var Kp;function J1(){if(Kp)return _f.exports;Kp=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(l){console.error(l)}}return a(),_f.exports=Z1(),_f.exports}var F1=J1();const $1=Py(F1);var or=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},cl,Aa,bi,Qy,W1=(Qy=class extends or{constructor(){super();oe(this,cl);oe(this,Aa);oe(this,bi);ae(this,bi,l=>{if(typeof window<"u"&&window.addEventListener){const s=()=>l();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}})}onSubscribe(){C(this,Aa)||this.setEventListener(C(this,bi))}onUnsubscribe(){var l;this.hasListeners()||((l=C(this,Aa))==null||l.call(this),ae(this,Aa,void 0))}setEventListener(l){var s;ae(this,bi,l),(s=C(this,Aa))==null||s.call(this),ae(this,Aa,l(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(l){C(this,cl)!==l&&(ae(this,cl,l),this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(s=>{s(l)})}isFocused(){var l;return typeof C(this,cl)=="boolean"?C(this,cl):((l=globalThis.document)==null?void 0:l.visibilityState)!=="hidden"}},cl=new WeakMap,Aa=new WeakMap,bi=new WeakMap,Qy),hd=new W1,P1={setTimeout:(a,l)=>setTimeout(a,l),clearTimeout:a=>clearTimeout(a),setInterval:(a,l)=>setInterval(a,l),clearInterval:a=>clearInterval(a)},Ca,dd,Vy,I1=(Vy=class{constructor(){oe(this,Ca,P1);oe(this,dd,!1)}setTimeoutProvider(a){ae(this,Ca,a)}setTimeout(a,l){return C(this,Ca).setTimeout(a,l)}clearTimeout(a){C(this,Ca).clearTimeout(a)}setInterval(a,l){return C(this,Ca).setInterval(a,l)}clearInterval(a){C(this,Ca).clearInterval(a)}},Ca=new WeakMap,dd=new WeakMap,Vy),rl=new I1;function ex(a){setTimeout(a,0)}var tx=typeof window>"u"||"Deno"in globalThis;function Rt(){}function nx(a,l){return typeof a=="function"?a(l):a}function Hf(a){return typeof a=="number"&&a>=0&&a!==1/0}function Iy(a,l){return Math.max(a+(l||0)-Date.now(),0)}function La(a,l){return typeof a=="function"?a(l):a}function Qt(a,l){return typeof a=="function"?a(l):a}function Xp(a,l){const{type:s="all",exact:r,fetchStatus:o,predicate:f,queryKey:h,stale:d}=a;if(h){if(r){if(l.queryHash!==md(h,l.options))return!1}else if(!Ws(l.queryKey,h))return!1}if(s!=="all"){const p=l.isActive();if(s==="active"&&!p||s==="inactive"&&p)return!1}return!(typeof d=="boolean"&&l.isStale()!==d||o&&o!==l.state.fetchStatus||f&&!f(l))}function Zp(a,l){const{exact:s,status:r,predicate:o,mutationKey:f}=a;if(f){if(!l.options.mutationKey)return!1;if(s){if($s(l.options.mutationKey)!==$s(f))return!1}else if(!Ws(l.options.mutationKey,f))return!1}return!(r&&l.state.status!==r||o&&!o(l))}function md(a,l){return((l==null?void 0:l.queryKeyHashFn)||$s)(a)}function $s(a){return JSON.stringify(a,(l,s)=>Gf(s)?Object.keys(s).sort().reduce((r,o)=>(r[o]=s[o],r),{}):s)}function Ws(a,l){return a===l?!0:typeof a!=typeof l?!1:a&&l&&typeof a=="object"&&typeof l=="object"?Object.keys(l).every(s=>Ws(a[s],l[s])):!1}var ax=Object.prototype.hasOwnProperty;function e0(a,l,s=0){if(a===l)return a;if(s>500)return l;const r=Jp(a)&&Jp(l);if(!r&&!(Gf(a)&&Gf(l)))return l;const f=(r?a:Object.keys(a)).length,h=r?l:Object.keys(l),d=h.length,p=r?new Array(d):{};let g=0;for(let b=0;b<d;b++){const y=r?b:h[b],S=a[y],_=l[y];if(S===_){p[y]=S,(r?b<f:ax.call(a,y))&&g++;continue}if(S===null||_===null||typeof S!="object"||typeof _!="object"){p[y]=_;continue}const w=e0(S,_,s+1);p[y]=w,w===S&&g++}return f===d&&g===f?a:p}function qf(a,l){if(!l||Object.keys(a).length!==Object.keys(l).length)return!1;for(const s in a)if(a[s]!==l[s])return!1;return!0}function Jp(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Gf(a){if(!Fp(a))return!1;const l=a.constructor;if(l===void 0)return!0;const s=l.prototype;return!(!Fp(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Fp(a){return Object.prototype.toString.call(a)==="[object Object]"}function lx(a){return new Promise(l=>{rl.setTimeout(l,a)})}function Qf(a,l,s){return typeof s.structuralSharing=="function"?s.structuralSharing(a,l):s.structuralSharing!==!1?e0(a,l):l}function ix(a,l,s=0){const r=[...a,l];return s&&r.length>s?r.slice(1):r}function sx(a,l,s=0){const r=[l,...a];return s&&r.length>s?r.slice(0,-1):r}var gd=Symbol();function t0(a,l){return!a.queryFn&&(l!=null&&l.initialPromise)?()=>l.initialPromise:!a.queryFn||a.queryFn===gd?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function n0(a,l){return typeof a=="function"?a(...l):!!a}function rx(a,l,s){let r=!1,o;return Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(o??(o=l()),r||(r=!0,o.aborted?s():o.addEventListener("abort",s,{once:!0})),o)}),a}var Ps=(()=>{let a=()=>tx;return{isServer(){return a()},setIsServer(l){a=l}}})();function Vf(){let a,l;const s=new Promise((o,f)=>{a=o,l=f});s.status="pending",s.catch(()=>{});function r(o){Object.assign(s,o),delete s.resolve,delete s.reject}return s.resolve=o=>{r({status:"fulfilled",value:o}),a(o)},s.reject=o=>{r({status:"rejected",reason:o}),l(o)},s}var ux=ex;function cx(){let a=[],l=0,s=d=>{d()},r=d=>{d()},o=ux;const f=d=>{l?a.push(d):o(()=>{s(d)})},h=()=>{const d=a;a=[],d.length&&o(()=>{r(()=>{d.forEach(p=>{s(p)})})})};return{batch:d=>{let p;l++;try{p=d()}finally{l--,l||h()}return p},batchCalls:d=>(...p)=>{f(()=>{d(...p)})},schedule:f,setNotifyFunction:d=>{s=d},setBatchNotifyFunction:d=>{r=d},setScheduler:d=>{o=d}}}var pt=cx(),xi,Ra,Si,Yy,ox=(Yy=class extends or{constructor(){super();oe(this,xi,!0);oe(this,Ra);oe(this,Si);ae(this,Si,l=>{if(typeof window<"u"&&window.addEventListener){const s=()=>l(!0),r=()=>l(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,Ra)||this.setEventListener(C(this,Si))}onUnsubscribe(){var l;this.hasListeners()||((l=C(this,Ra))==null||l.call(this),ae(this,Ra,void 0))}setEventListener(l){var s;ae(this,Si,l),(s=C(this,Ra))==null||s.call(this),ae(this,Ra,l(this.setOnline.bind(this)))}setOnline(l){C(this,xi)!==l&&(ae(this,xi,l),this.listeners.forEach(r=>{r(l)}))}isOnline(){return C(this,xi)}},xi=new WeakMap,Ra=new WeakMap,Si=new WeakMap,Yy),Yu=new ox;function fx(a){return Math.min(1e3*2**a,3e4)}function a0(a){return(a??"online")==="online"?Yu.isOnline():!0}var Yf=class extends Error{constructor(a){super("CancelledError"),this.revert=a==null?void 0:a.revert,this.silent=a==null?void 0:a.silent}};function l0(a){let l=!1,s=0,r;const o=Vf(),f=()=>o.status!=="pending",h=E=>{var j;if(!f()){const R=new Yf(E);S(R),(j=a.onCancel)==null||j.call(a,R)}},d=()=>{l=!0},p=()=>{l=!1},g=()=>hd.isFocused()&&(a.networkMode==="always"||Yu.isOnline())&&a.canRun(),b=()=>a0(a.networkMode)&&a.canRun(),y=E=>{f()||(r==null||r(),o.resolve(E))},S=E=>{f()||(r==null||r(),o.reject(E))},_=()=>new Promise(E=>{var j;r=R=>{(f()||g())&&E(R)},(j=a.onPause)==null||j.call(a)}).then(()=>{var E;r=void 0,f()||(E=a.onContinue)==null||E.call(a)}),w=()=>{if(f())return;let E;const j=s===0?a.initialPromise:void 0;try{E=j??a.fn()}catch(R){E=Promise.reject(R)}Promise.resolve(E).then(y).catch(R=>{var q;if(f())return;const z=a.retry??(Ps.isServer()?0:3),L=a.retryDelay??fx,D=typeof L=="function"?L(s,R):L,X=z===!0||typeof z=="number"&&s<z||typeof z=="function"&&z(s,R);if(l||!X){S(R);return}s++,(q=a.onFail)==null||q.call(a,s,R),lx(D).then(()=>g()?void 0:_()).then(()=>{l?S(R):w()})})};return{promise:o,status:()=>o.status,cancel:h,continue:()=>(r==null||r(),o),cancelRetry:d,continueRetry:p,canStart:b,start:()=>(b()?w():_().then(w),o)}}var ol,Ky,i0=(Ky=class{constructor(){oe(this,ol)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Hf(this.gcTime)&&ae(this,ol,rl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(Ps.isServer()?1/0:300*1e3))}clearGcTimeout(){C(this,ol)!==void 0&&(rl.clearTimeout(C(this,ol)),ae(this,ol,void 0))}},ol=new WeakMap,Ky);function dx(a){return{onFetch:(l,s)=>{var b,y,S,_,w;const r=l.options,o=(S=(y=(b=l.fetchOptions)==null?void 0:b.meta)==null?void 0:y.fetchMore)==null?void 0:S.direction,f=((_=l.state.data)==null?void 0:_.pages)||[],h=((w=l.state.data)==null?void 0:w.pageParams)||[];let d={pages:[],pageParams:[]},p=0;const g=async()=>{let E=!1;const j=L=>{rx(L,()=>l.signal,()=>E=!0)},R=t0(l.options,l.fetchOptions),z=async(L,D,X)=>{if(E)return Promise.reject(l.signal.reason);if(D==null&&L.pages.length)return Promise.resolve(L);const Y=(()=>{const ee={client:l.client,queryKey:l.queryKey,pageParam:D,direction:X?"backward":"forward",meta:l.options.meta};return j(ee),ee})(),J=await R(Y),{maxPages:Q}=l.options,P=X?sx:ix;return{pages:P(L.pages,J,Q),pageParams:P(L.pageParams,D,Q)}};if(o&&f.length){const L=o==="backward",D=L?hx:$p,X={pages:f,pageParams:h},q=D(r,X);d=await z(X,q,L)}else{const L=a??f.length;do{const D=p===0?h[0]??r.initialPageParam:$p(r,d);if(p>0&&D==null)break;d=await z(d,D),p++}while(p<L)}return d};l.options.persister?l.fetchFn=()=>{var E,j;return(j=(E=l.options).persister)==null?void 0:j.call(E,g,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},s)}:l.fetchFn=g}}}function $p(a,{pages:l,pageParams:s}){const r=l.length-1;return l.length>0?a.getNextPageParam(l[r],l,s[r],s):void 0}function hx(a,{pages:l,pageParams:s}){var r;return l.length>0?(r=a.getPreviousPageParam)==null?void 0:r.call(a,l[0],l,s[0],s):void 0}var _i,fl,wi,nn,dl,ct,lr,hl,Gt,s0,Kn,Xy,mx=(Xy=class extends i0{constructor(l){super();oe(this,Gt);oe(this,_i);oe(this,fl);oe(this,wi);oe(this,nn);oe(this,dl);oe(this,ct);oe(this,lr);oe(this,hl);ae(this,hl,!1),ae(this,lr,l.defaultOptions),this.setOptions(l.options),this.observers=[],ae(this,dl,l.client),ae(this,nn,C(this,dl).getQueryCache()),this.queryKey=l.queryKey,this.queryHash=l.queryHash,ae(this,fl,Pp(this.options)),this.state=l.state??C(this,fl),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return C(this,_i)}get promise(){var l;return(l=C(this,ct))==null?void 0:l.promise}setOptions(l){if(this.options={...C(this,lr),...l},l!=null&&l._type&&ae(this,_i,l._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=Pp(this.options);s.data!==void 0&&(this.setState(Wp(s.data,s.dataUpdatedAt)),ae(this,fl,s))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,nn).remove(this)}setData(l,s){const r=Qf(this.state.data,l,this.options);return Ee(this,Gt,Kn).call(this,{data:r,type:"success",dataUpdatedAt:s==null?void 0:s.updatedAt,manual:s==null?void 0:s.manual}),r}setState(l){Ee(this,Gt,Kn).call(this,{type:"setState",state:l})}cancel(l){var r,o;const s=(r=C(this,ct))==null?void 0:r.promise;return(o=C(this,ct))==null||o.cancel(l),s?s.then(Rt).catch(Rt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return C(this,fl)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(l=>Qt(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===gd||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>La(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!Iy(this.state.dataUpdatedAt,l)}onFocus(){var s;const l=this.observers.find(r=>r.shouldFetchOnWindowFocus());l==null||l.refetch({cancelRefetch:!1}),(s=C(this,ct))==null||s.continue()}onOnline(){var s;const l=this.observers.find(r=>r.shouldFetchOnReconnect());l==null||l.refetch({cancelRefetch:!1}),(s=C(this,ct))==null||s.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),C(this,nn).notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(s=>s!==l),this.observers.length||(C(this,ct)&&(C(this,hl)||Ee(this,Gt,s0).call(this)?C(this,ct).cancel({revert:!0}):C(this,ct).cancelRetry()),this.scheduleGc()),C(this,nn).notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ee(this,Gt,Kn).call(this,{type:"invalidate"})}async fetch(l,s){var g,b,y,S,_,w,E,j,R,z,L;if(this.state.fetchStatus!=="idle"&&((g=C(this,ct))==null?void 0:g.status())!=="rejected"){if(this.state.data!==void 0&&(s!=null&&s.cancelRefetch))this.cancel({silent:!0});else if(C(this,ct))return C(this,ct).continueRetry(),C(this,ct).promise}if(l&&this.setOptions(l),!this.options.queryFn){const D=this.observers.find(X=>X.options.queryFn);D&&this.setOptions(D.options)}const r=new AbortController,o=D=>{Object.defineProperty(D,"signal",{enumerable:!0,get:()=>(ae(this,hl,!0),r.signal)})},f=()=>{const D=t0(this.options,s),q=(()=>{const Y={client:C(this,dl),queryKey:this.queryKey,meta:this.meta};return o(Y),Y})();return ae(this,hl,!1),this.options.persister?this.options.persister(D,q,this):D(q)},d=(()=>{const D={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:C(this,dl),state:this.state,fetchFn:f};return o(D),D})(),p=C(this,_i)==="infinite"?dx(this.options.pages):this.options.behavior;p==null||p.onFetch(d,this),ae(this,wi,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((b=d.fetchOptions)==null?void 0:b.meta))&&Ee(this,Gt,Kn).call(this,{type:"fetch",meta:(y=d.fetchOptions)==null?void 0:y.meta}),ae(this,ct,l0({initialPromise:s==null?void 0:s.initialPromise,fn:d.fetchFn,onCancel:D=>{D instanceof Yf&&D.revert&&this.setState({...C(this,wi),fetchStatus:"idle"}),r.abort()},onFail:(D,X)=>{Ee(this,Gt,Kn).call(this,{type:"failed",failureCount:D,error:X})},onPause:()=>{Ee(this,Gt,Kn).call(this,{type:"pause"})},onContinue:()=>{Ee(this,Gt,Kn).call(this,{type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0}));try{const D=await C(this,ct).start();if(D===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(D),(_=(S=C(this,nn).config).onSuccess)==null||_.call(S,D,this),(E=(w=C(this,nn).config).onSettled)==null||E.call(w,D,this.state.error,this),D}catch(D){if(D instanceof Yf){if(D.silent)return C(this,ct).promise;if(D.revert){if(this.state.data===void 0)throw D;return this.state.data}}throw Ee(this,Gt,Kn).call(this,{type:"error",error:D}),(R=(j=C(this,nn).config).onError)==null||R.call(j,D,this),(L=(z=C(this,nn).config).onSettled)==null||L.call(z,this.state.data,D,this),D}finally{this.scheduleGc()}}},_i=new WeakMap,fl=new WeakMap,wi=new WeakMap,nn=new WeakMap,dl=new WeakMap,ct=new WeakMap,lr=new WeakMap,hl=new WeakMap,Gt=new WeakSet,s0=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Kn=function(l){const s=r=>{switch(l.type){case"failed":return{...r,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...r0(r.data,this.options),fetchMeta:l.meta??null};case"success":const o={...r,...Wp(l.data,l.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ae(this,wi,l.manual?o:void 0),o;case"error":const f=l.error;return{...r,error:f,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...l.state}}};this.state=s(this.state),pt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,nn).notify({query:this,type:"updated",action:l})})},Xy);function r0(a,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:a0(l.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function Wp(a,l){return{data:a,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Pp(a){const l=typeof a.initialData=="function"?a.initialData():a.initialData,s=l!==void 0,r=s?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:s?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Ct,Me,ir,St,ml,Ei,Xn,za,sr,ji,Ti,gl,pl,Na,Mi,Ne,Ys,Kf,Xf,Zf,Jf,Ff,$f,Wf,u0,Zy,gx=(Zy=class extends or{constructor(l,s){super();oe(this,Ne);oe(this,Ct);oe(this,Me);oe(this,ir);oe(this,St);oe(this,ml);oe(this,Ei);oe(this,Xn);oe(this,za);oe(this,sr);oe(this,ji);oe(this,Ti);oe(this,gl);oe(this,pl);oe(this,Na);oe(this,Mi,new Set);this.options=s,ae(this,Ct,l),ae(this,za,null),ae(this,Xn,Vf()),this.bindMethods(),this.setOptions(s)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,Me).addObserver(this),Ip(C(this,Me),this.options)?Ee(this,Ne,Ys).call(this):this.updateResult(),Ee(this,Ne,Jf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Pf(C(this,Me),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Pf(C(this,Me),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ee(this,Ne,Ff).call(this),Ee(this,Ne,$f).call(this),C(this,Me).removeObserver(this)}setOptions(l){const s=this.options,r=C(this,Me);if(this.options=C(this,Ct).defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Qt(this.options.enabled,C(this,Me))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ee(this,Ne,Wf).call(this),C(this,Me).setOptions(this.options),s._defaulted&&!qf(this.options,s)&&C(this,Ct).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,Me),observer:this});const o=this.hasListeners();o&&ey(C(this,Me),r,this.options,s)&&Ee(this,Ne,Ys).call(this),this.updateResult(),o&&(C(this,Me)!==r||Qt(this.options.enabled,C(this,Me))!==Qt(s.enabled,C(this,Me))||La(this.options.staleTime,C(this,Me))!==La(s.staleTime,C(this,Me)))&&Ee(this,Ne,Kf).call(this);const f=Ee(this,Ne,Xf).call(this);o&&(C(this,Me)!==r||Qt(this.options.enabled,C(this,Me))!==Qt(s.enabled,C(this,Me))||f!==C(this,Na))&&Ee(this,Ne,Zf).call(this,f)}getOptimisticResult(l){const s=C(this,Ct).getQueryCache().build(C(this,Ct),l),r=this.createResult(s,l);return yx(this,r)&&(ae(this,St,r),ae(this,Ei,this.options),ae(this,ml,C(this,Me).state)),r}getCurrentResult(){return C(this,St)}trackResult(l,s){return new Proxy(l,{get:(r,o)=>(this.trackProp(o),s==null||s(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&C(this,Xn).status==="pending"&&C(this,Xn).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(l){C(this,Mi).add(l)}getCurrentQuery(){return C(this,Me)}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const s=C(this,Ct).defaultQueryOptions(l),r=C(this,Ct).getQueryCache().build(C(this,Ct),s);return r.fetch().then(()=>this.createResult(r,s))}fetch(l){return Ee(this,Ne,Ys).call(this,{...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,St)))}createResult(l,s){var Q;const r=C(this,Me),o=this.options,f=C(this,St),h=C(this,ml),d=C(this,Ei),g=l!==r?l.state:C(this,ir),{state:b}=l;let y={...b},S=!1,_;if(s._optimisticResults){const P=this.hasListeners(),ee=!P&&Ip(l,s),I=P&&ey(l,r,s,o);(ee||I)&&(y={...y,...r0(b.data,l.options)}),s._optimisticResults==="isRestoring"&&(y.fetchStatus="idle")}let{error:w,errorUpdatedAt:E,status:j}=y;_=y.data;let R=!1;if(s.placeholderData!==void 0&&_===void 0&&j==="pending"){let P;f!=null&&f.isPlaceholderData&&s.placeholderData===(d==null?void 0:d.placeholderData)?(P=f.data,R=!0):P=typeof s.placeholderData=="function"?s.placeholderData((Q=C(this,Ti))==null?void 0:Q.state.data,C(this,Ti)):s.placeholderData,P!==void 0&&(j="success",_=Qf(f==null?void 0:f.data,P,s),S=!0)}if(s.select&&_!==void 0&&!R)if(f&&_===(h==null?void 0:h.data)&&s.select===C(this,sr))_=C(this,ji);else try{ae(this,sr,s.select),_=s.select(_),_=Qf(f==null?void 0:f.data,_,s),ae(this,ji,_),ae(this,za,null)}catch(P){ae(this,za,P)}C(this,za)&&(w=C(this,za),_=C(this,ji),E=Date.now(),j="error");const z=y.fetchStatus==="fetching",L=j==="pending",D=j==="error",X=L&&z,q=_!==void 0,J={status:j,fetchStatus:y.fetchStatus,isPending:L,isSuccess:j==="success",isError:D,isInitialLoading:X,isLoading:X,data:_,dataUpdatedAt:y.dataUpdatedAt,error:w,errorUpdatedAt:E,failureCount:y.fetchFailureCount,failureReason:y.fetchFailureReason,errorUpdateCount:y.errorUpdateCount,isFetched:l.isFetched(),isFetchedAfterMount:y.dataUpdateCount>g.dataUpdateCount||y.errorUpdateCount>g.errorUpdateCount,isFetching:z,isRefetching:z&&!L,isLoadingError:D&&!q,isPaused:y.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:D&&q,isStale:pd(l,s),refetch:this.refetch,promise:C(this,Xn),isEnabled:Qt(s.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const P=J.data!==void 0,ee=J.status==="error"&&!P,I=ne=>{ee?ne.reject(J.error):P&&ne.resolve(J.data)},de=()=>{const ne=ae(this,Xn,J.promise=Vf());I(ne)},$=C(this,Xn);switch($.status){case"pending":l.queryHash===r.queryHash&&I($);break;case"fulfilled":(ee||J.data!==$.value)&&de();break;case"rejected":(!ee||J.error!==$.reason)&&de();break}}return J}updateResult(){const l=C(this,St),s=this.createResult(C(this,Me),this.options);if(ae(this,ml,C(this,Me).state),ae(this,Ei,this.options),C(this,ml).data!==void 0&&ae(this,Ti,C(this,Me)),qf(s,l))return;ae(this,St,s);const r=()=>{if(!l)return!0;const{notifyOnChangeProps:o}=this.options,f=typeof o=="function"?o():o;if(f==="all"||!f&&!C(this,Mi).size)return!0;const h=new Set(f??C(this,Mi));return this.options.throwOnError&&h.add("error"),Object.keys(C(this,St)).some(d=>{const p=d;return C(this,St)[p]!==l[p]&&h.has(p)})};Ee(this,Ne,u0).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ee(this,Ne,Jf).call(this)}},Ct=new WeakMap,Me=new WeakMap,ir=new WeakMap,St=new WeakMap,ml=new WeakMap,Ei=new WeakMap,Xn=new WeakMap,za=new WeakMap,sr=new WeakMap,ji=new WeakMap,Ti=new WeakMap,gl=new WeakMap,pl=new WeakMap,Na=new WeakMap,Mi=new WeakMap,Ne=new WeakSet,Ys=function(l){Ee(this,Ne,Wf).call(this);let s=C(this,Me).fetch(this.options,l);return l!=null&&l.throwOnError||(s=s.catch(Rt)),s},Kf=function(){Ee(this,Ne,Ff).call(this);const l=La(this.options.staleTime,C(this,Me));if(Ps.isServer()||C(this,St).isStale||!Hf(l))return;const r=Iy(C(this,St).dataUpdatedAt,l)+1;ae(this,gl,rl.setTimeout(()=>{C(this,St).isStale||this.updateResult()},r))},Xf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,Me)):this.options.refetchInterval)??!1},Zf=function(l){Ee(this,Ne,$f).call(this),ae(this,Na,l),!(Ps.isServer()||Qt(this.options.enabled,C(this,Me))===!1||!Hf(C(this,Na))||C(this,Na)===0)&&ae(this,pl,rl.setInterval(()=>{(this.options.refetchIntervalInBackground||hd.isFocused())&&Ee(this,Ne,Ys).call(this)},C(this,Na)))},Jf=function(){Ee(this,Ne,Kf).call(this),Ee(this,Ne,Zf).call(this,Ee(this,Ne,Xf).call(this))},Ff=function(){C(this,gl)!==void 0&&(rl.clearTimeout(C(this,gl)),ae(this,gl,void 0))},$f=function(){C(this,pl)!==void 0&&(rl.clearInterval(C(this,pl)),ae(this,pl,void 0))},Wf=function(){const l=C(this,Ct).getQueryCache().build(C(this,Ct),this.options);if(l===C(this,Me))return;const s=C(this,Me);ae(this,Me,l),ae(this,ir,l.state),this.hasListeners()&&(s==null||s.removeObserver(this),l.addObserver(this))},u0=function(l){pt.batch(()=>{l.listeners&&this.listeners.forEach(s=>{s(C(this,St))}),C(this,Ct).getQueryCache().notify({query:C(this,Me),type:"observerResultsUpdated"})})},Zy);function px(a,l){return Qt(l.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&Qt(l.retryOnMount,a)===!1)}function Ip(a,l){return px(a,l)||a.state.data!==void 0&&Pf(a,l,l.refetchOnMount)}function Pf(a,l,s){if(Qt(l.enabled,a)!==!1&&La(l.staleTime,a)!=="static"){const r=typeof s=="function"?s(a):s;return r==="always"||r!==!1&&pd(a,l)}return!1}function ey(a,l,s,r){return(a!==l||Qt(r.enabled,a)===!1)&&(!s.suspense||a.state.status!=="error")&&pd(a,s)}function pd(a,l){return Qt(l.enabled,a)!==!1&&a.isStaleByTime(La(l.staleTime,a))}function yx(a,l){return!qf(a.getCurrentResult(),l)}var rr,yn,vt,yl,vn,Ta,Jy,vx=(Jy=class extends i0{constructor(l){super();oe(this,vn);oe(this,rr);oe(this,yn);oe(this,vt);oe(this,yl);ae(this,rr,l.client),this.mutationId=l.mutationId,ae(this,vt,l.mutationCache),ae(this,yn,[]),this.state=l.state||bx(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){C(this,yn).includes(l)||(C(this,yn).push(l),this.clearGcTimeout(),C(this,vt).notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){ae(this,yn,C(this,yn).filter(s=>s!==l)),this.scheduleGc(),C(this,vt).notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){C(this,yn).length||(this.state.status==="pending"?this.scheduleGc():C(this,vt).remove(this))}continue(){var l;return((l=C(this,yl))==null?void 0:l.continue())??this.execute(this.state.variables)}async execute(l){var h,d,p,g,b,y,S,_,w,E,j,R,z,L,D,X,q,Y;const s=()=>{Ee(this,vn,Ta).call(this,{type:"continue"})},r={client:C(this,rr),meta:this.options.meta,mutationKey:this.options.mutationKey};ae(this,yl,l0({fn:()=>this.options.mutationFn?this.options.mutationFn(l,r):Promise.reject(new Error("No mutationFn found")),onFail:(J,Q)=>{Ee(this,vn,Ta).call(this,{type:"failed",failureCount:J,error:Q})},onPause:()=>{Ee(this,vn,Ta).call(this,{type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,vt).canRun(this)}));const o=this.state.status==="pending",f=!C(this,yl).canStart();try{if(o)s();else{Ee(this,vn,Ta).call(this,{type:"pending",variables:l,isPaused:f}),C(this,vt).config.onMutate&&await C(this,vt).config.onMutate(l,this,r);const Q=await((d=(h=this.options).onMutate)==null?void 0:d.call(h,l,r));Q!==this.state.context&&Ee(this,vn,Ta).call(this,{type:"pending",context:Q,variables:l,isPaused:f})}const J=await C(this,yl).start();return await((g=(p=C(this,vt).config).onSuccess)==null?void 0:g.call(p,J,l,this.state.context,this,r)),await((y=(b=this.options).onSuccess)==null?void 0:y.call(b,J,l,this.state.context,r)),await((_=(S=C(this,vt).config).onSettled)==null?void 0:_.call(S,J,null,this.state.variables,this.state.context,this,r)),await((E=(w=this.options).onSettled)==null?void 0:E.call(w,J,null,l,this.state.context,r)),Ee(this,vn,Ta).call(this,{type:"success",data:J}),J}catch(J){try{await((R=(j=C(this,vt).config).onError)==null?void 0:R.call(j,J,l,this.state.context,this,r))}catch(Q){Promise.reject(Q)}try{await((L=(z=this.options).onError)==null?void 0:L.call(z,J,l,this.state.context,r))}catch(Q){Promise.reject(Q)}try{await((X=(D=C(this,vt).config).onSettled)==null?void 0:X.call(D,void 0,J,this.state.variables,this.state.context,this,r))}catch(Q){Promise.reject(Q)}try{await((Y=(q=this.options).onSettled)==null?void 0:Y.call(q,void 0,J,l,this.state.context,r))}catch(Q){Promise.reject(Q)}throw Ee(this,vn,Ta).call(this,{type:"error",error:J}),J}finally{C(this,vt).runNext(this)}}},rr=new WeakMap,yn=new WeakMap,vt=new WeakMap,yl=new WeakMap,vn=new WeakSet,Ta=function(l){const s=r=>{switch(l.type){case"failed":return{...r,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...r,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:l.error,failureCount:r.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=s(this.state),pt.batch(()=>{C(this,yn).forEach(r=>{r.onMutationUpdate(l)}),C(this,vt).notify({mutation:this,type:"updated",action:l})})},Jy);function bx(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Zn,un,ur,Fy,xx=(Fy=class extends or{constructor(l={}){super();oe(this,Zn);oe(this,un);oe(this,ur);this.config=l,ae(this,Zn,new Set),ae(this,un,new Map),ae(this,ur,0)}build(l,s,r){const o=new vx({client:l,mutationCache:this,mutationId:++Nu(this,ur)._,options:l.defaultMutationOptions(s),state:r});return this.add(o),o}add(l){C(this,Zn).add(l);const s=Du(l);if(typeof s=="string"){const r=C(this,un).get(s);r?r.push(l):C(this,un).set(s,[l])}this.notify({type:"added",mutation:l})}remove(l){if(C(this,Zn).delete(l)){const s=Du(l);if(typeof s=="string"){const r=C(this,un).get(s);if(r)if(r.length>1){const o=r.indexOf(l);o!==-1&&r.splice(o,1)}else r[0]===l&&C(this,un).delete(s)}}this.notify({type:"removed",mutation:l})}canRun(l){const s=Du(l);if(typeof s=="string"){const r=C(this,un).get(s),o=r==null?void 0:r.find(f=>f.state.status==="pending");return!o||o===l}else return!0}runNext(l){var r;const s=Du(l);if(typeof s=="string"){const o=(r=C(this,un).get(s))==null?void 0:r.find(f=>f!==l&&f.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){pt.batch(()=>{C(this,Zn).forEach(l=>{this.notify({type:"removed",mutation:l})}),C(this,Zn).clear(),C(this,un).clear()})}getAll(){return Array.from(C(this,Zn))}find(l){const s={exact:!0,...l};return this.getAll().find(r=>Zp(s,r))}findAll(l={}){return this.getAll().filter(s=>Zp(l,s))}notify(l){pt.batch(()=>{this.listeners.forEach(s=>{s(l)})})}resumePausedMutations(){const l=this.getAll().filter(s=>s.state.isPaused);return pt.batch(()=>Promise.all(l.map(s=>s.continue().catch(Rt))))}},Zn=new WeakMap,un=new WeakMap,ur=new WeakMap,Fy);function Du(a){var l;return(l=a.options.scope)==null?void 0:l.id}var bn,$y,Sx=($y=class extends or{constructor(l={}){super();oe(this,bn);this.config=l,ae(this,bn,new Map)}build(l,s,r){const o=s.queryKey,f=s.queryHash??md(o,s);let h=this.get(f);return h||(h=new mx({client:l,queryKey:o,queryHash:f,options:l.defaultQueryOptions(s),state:r,defaultOptions:l.getQueryDefaults(o)}),this.add(h)),h}add(l){C(this,bn).has(l.queryHash)||(C(this,bn).set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const s=C(this,bn).get(l.queryHash);s&&(l.destroy(),s===l&&C(this,bn).delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){pt.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return C(this,bn).get(l)}getAll(){return[...C(this,bn).values()]}find(l){const s={exact:!0,...l};return this.getAll().find(r=>Xp(s,r))}findAll(l={}){const s=this.getAll();return Object.keys(l).length>0?s.filter(r=>Xp(l,r)):s}notify(l){pt.batch(()=>{this.listeners.forEach(s=>{s(l)})})}onFocus(){pt.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){pt.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},bn=new WeakMap,$y),Pe,Da,Oa,Ai,Ci,ka,Ri,zi,Wy,_x=(Wy=class{constructor(a={}){oe(this,Pe);oe(this,Da);oe(this,Oa);oe(this,Ai);oe(this,Ci);oe(this,ka);oe(this,Ri);oe(this,zi);ae(this,Pe,a.queryCache||new Sx),ae(this,Da,a.mutationCache||new xx),ae(this,Oa,a.defaultOptions||{}),ae(this,Ai,new Map),ae(this,Ci,new Map),ae(this,ka,0)}mount(){Nu(this,ka)._++,C(this,ka)===1&&(ae(this,Ri,hd.subscribe(async a=>{a&&(await this.resumePausedMutations(),C(this,Pe).onFocus())})),ae(this,zi,Yu.subscribe(async a=>{a&&(await this.resumePausedMutations(),C(this,Pe).onOnline())})))}unmount(){var a,l;Nu(this,ka)._--,C(this,ka)===0&&((a=C(this,Ri))==null||a.call(this),ae(this,Ri,void 0),(l=C(this,zi))==null||l.call(this),ae(this,zi,void 0))}isFetching(a){return C(this,Pe).findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return C(this,Da).findAll({...a,status:"pending"}).length}getQueryData(a){var s;const l=this.defaultQueryOptions({queryKey:a});return(s=C(this,Pe).get(l.queryHash))==null?void 0:s.state.data}ensureQueryData(a){const l=this.defaultQueryOptions(a),s=C(this,Pe).build(this,l),r=s.state.data;return r===void 0?this.fetchQuery(a):(a.revalidateIfStale&&s.isStaleByTime(La(l.staleTime,s))&&this.prefetchQuery(l),Promise.resolve(r))}getQueriesData(a){return C(this,Pe).findAll(a).map(({queryKey:l,state:s})=>{const r=s.data;return[l,r]})}setQueryData(a,l,s){const r=this.defaultQueryOptions({queryKey:a}),o=C(this,Pe).get(r.queryHash),f=o==null?void 0:o.state.data,h=nx(l,f);if(h!==void 0)return C(this,Pe).build(this,r).setData(h,{...s,manual:!0})}setQueriesData(a,l,s){return pt.batch(()=>C(this,Pe).findAll(a).map(({queryKey:r})=>[r,this.setQueryData(r,l,s)]))}getQueryState(a){var s;const l=this.defaultQueryOptions({queryKey:a});return(s=C(this,Pe).get(l.queryHash))==null?void 0:s.state}removeQueries(a){const l=C(this,Pe);pt.batch(()=>{l.findAll(a).forEach(s=>{l.remove(s)})})}resetQueries(a,l){const s=C(this,Pe);return pt.batch(()=>(s.findAll(a).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...a},l)))}cancelQueries(a,l={}){const s={revert:!0,...l},r=pt.batch(()=>C(this,Pe).findAll(a).map(o=>o.cancel(s)));return Promise.all(r).then(Rt).catch(Rt)}invalidateQueries(a,l={}){return pt.batch(()=>(C(this,Pe).findAll(a).forEach(s=>{s.invalidate()}),(a==null?void 0:a.refetchType)==="none"?Promise.resolve():this.refetchQueries({...a,type:(a==null?void 0:a.refetchType)??(a==null?void 0:a.type)??"active"},l)))}refetchQueries(a,l={}){const s={...l,cancelRefetch:l.cancelRefetch??!0},r=pt.batch(()=>C(this,Pe).findAll(a).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let f=o.fetch(void 0,s);return s.throwOnError||(f=f.catch(Rt)),o.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(Rt)}fetchQuery(a){const l=this.defaultQueryOptions(a);l.retry===void 0&&(l.retry=!1);const s=C(this,Pe).build(this,l);return s.isStaleByTime(La(l.staleTime,s))?s.fetch(l):Promise.resolve(s.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(Rt).catch(Rt)}fetchInfiniteQuery(a){return a._type="infinite",this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(Rt).catch(Rt)}ensureInfiniteQueryData(a){return a._type="infinite",this.ensureQueryData(a)}resumePausedMutations(){return Yu.isOnline()?C(this,Da).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,Pe)}getMutationCache(){return C(this,Da)}getDefaultOptions(){return C(this,Oa)}setDefaultOptions(a){ae(this,Oa,a)}setQueryDefaults(a,l){C(this,Ai).set($s(a),{queryKey:a,defaultOptions:l})}getQueryDefaults(a){const l=[...C(this,Ai).values()],s={};return l.forEach(r=>{Ws(a,r.queryKey)&&Object.assign(s,r.defaultOptions)}),s}setMutationDefaults(a,l){C(this,Ci).set($s(a),{mutationKey:a,defaultOptions:l})}getMutationDefaults(a){const l=[...C(this,Ci).values()],s={};return l.forEach(r=>{Ws(a,r.mutationKey)&&Object.assign(s,r.defaultOptions)}),s}defaultQueryOptions(a){if(a._defaulted)return a;const l={...C(this,Oa).queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return l.queryHash||(l.queryHash=md(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===gd&&(l.enabled=!1),l}defaultMutationOptions(a){return a!=null&&a._defaulted?a:{...C(this,Oa).mutations,...(a==null?void 0:a.mutationKey)&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){C(this,Pe).clear(),C(this,Da).clear()}},Pe=new WeakMap,Da=new WeakMap,Oa=new WeakMap,Ai=new WeakMap,Ci=new WeakMap,ka=new WeakMap,Ri=new WeakMap,zi=new WeakMap,Wy),c0=F.createContext(void 0),yd=a=>{const l=F.useContext(c0);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},wx=({client:a,children:l})=>(F.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),v.jsx(c0.Provider,{value:a,children:l})),o0=F.createContext(!1),Ex=()=>F.useContext(o0);o0.Provider;function jx(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var Tx=F.createContext(jx()),Mx=()=>F.useContext(Tx),Ax=(a,l,s)=>{const r=s!=null&&s.state.error&&typeof a.throwOnError=="function"?n0(a.throwOnError,[s.state.error,s]):a.throwOnError;(a.suspense||a.experimental_prefetchInRender||r)&&(l.isReset()||(a.retryOnMount=!1))},Cx=a=>{F.useEffect(()=>{a.clearReset()},[a])},Rx=({result:a,errorResetBoundary:l,throwOnError:s,query:r,suspense:o})=>a.isError&&!l.isReset()&&!a.isFetching&&r&&(o&&a.data===void 0||n0(s,[a.error,r])),zx=a=>{if(a.suspense){const s=o=>o==="static"?o:Math.max(o??1e3,1e3),r=a.staleTime;a.staleTime=typeof r=="function"?(...o)=>s(r(...o)):s(r),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},Nx=(a,l)=>a.isLoading&&a.isFetching&&!l,Dx=(a,l)=>(a==null?void 0:a.suspense)&&l.isPending,ty=(a,l,s)=>l.fetchOptimistic(a).catch(()=>{s.clearReset()});function Ox(a,l,s){var _,w,E,j;const r=Ex(),o=Mx(),f=yd(),h=f.defaultQueryOptions(a);(w=(_=f.getDefaultOptions().queries)==null?void 0:_._experimental_beforeQuery)==null||w.call(_,h);const d=f.getQueryCache().get(h.queryHash),p=a.subscribed!==!1;h._optimisticResults=r?"isRestoring":p?"optimistic":void 0,zx(h),Ax(h,o,d),Cx(o);const g=!f.getQueryCache().get(h.queryHash),[b]=F.useState(()=>new l(f,h)),y=b.getOptimisticResult(h),S=!r&&p;if(F.useSyncExternalStore(F.useCallback(R=>{const z=S?b.subscribe(pt.batchCalls(R)):Rt;return b.updateResult(),z},[b,S]),()=>b.getCurrentResult(),()=>b.getCurrentResult()),F.useEffect(()=>{b.setOptions(h)},[h,b]),Dx(h,y))throw ty(h,b,o);if(Rx({result:y,errorResetBoundary:o,throwOnError:h.throwOnError,query:d,suspense:h.suspense}))throw y.error;if((j=(E=f.getDefaultOptions().queries)==null?void 0:E._experimental_afterQuery)==null||j.call(E,h,y),h.experimental_prefetchInRender&&!Ps.isServer()&&Nx(y,r)){const R=g?ty(h,b,o):d==null?void 0:d.promise;R==null||R.catch(Rt).finally(()=>{b.updateResult()})}return h.notifyOnChangeProps?y:b.trackResult(y)}function Qe(a,l){return Ox(a,gx)}const kx=!1;var f0=F.useLayoutEffect;function Ux(a,l,s){F.useEffect(()=>{if(!a.current||s||typeof IntersectionObserver!="function")return()=>l();const r=new IntersectionObserver(o=>{l(o.pop())},{rootMargin:"100px"});return r.observe(a.current),()=>{r.disconnect(),l()}},[l,s,a])}function Lx(a){const l=F.useRef(null);return F.useImperativeHandle(a,()=>l.current,[]),l}function Is(a){return a[a.length-1]}function Ni(a,l){return typeof a=="function"?a(l):a}const d0=Object.prototype.hasOwnProperty,Bx=Object.prototype.propertyIsEnumerable;function h0(a){for(const l in a)if(d0.call(a,l))return!0;return!1}const Hx=()=>Object.create(null),sl=(a,l)=>ul(a,l,Hx);function ul(a,l,s=()=>({}),r=0){if(a===l)return a;if(r>500)return l;const o=l,f=ly(a)&&ly(o);if(!f&&!(Ku(a)&&Ku(o)))return o;const h=f?a:ny(a);if(!h)return o;const d=f?o:ny(o);if(!d)return o;const p=h.length,g=d.length,b=f?new Array(g):s();let y=0;for(let S=0;S<g;S++){const _=f?S:d[S],w=a[_],E=o[_];if(w===E){b[_]=w,(f?S<p:d0.call(a,_))&&y++;continue}if(w===null||E===null||typeof w!="object"||typeof E!="object"){b[_]=E;continue}const j=ul(w,E,s,r+1);b[_]=j,j===w&&y++}return p===g&&y===p?a:b}function ny(a){const l=Object.keys(a);if(l.length!==Object.getOwnPropertyNames(a).length)return!1;const s=Object.getOwnPropertySymbols(a);if(s.length===0)return l;for(const r of s){if(!Bx.call(a,r))return!1;l.push(r)}return l}function Ku(a){if(!ay(a))return!1;const l=a.constructor;if(typeof l>"u")return!0;const s=l.prototype;return!(!ay(s)||!s.hasOwnProperty("isPrototypeOf"))}function ay(a){return Object.prototype.toString.call(a)==="[object Object]"}function ly(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function Ba(a,l,s){if(a===l)return!0;if(typeof a!=typeof l)return!1;if(Array.isArray(a)&&Array.isArray(l)){if(a.length!==l.length)return!1;for(let r=0,o=a.length;r<o;r++)if(!Ba(a[r],l[r],s))return!1;return!0}if(Ku(a)&&Ku(l)){const r=(s==null?void 0:s.ignoreUndefined)??!0;if(s!=null&&s.partial){for(const h in l)if((!r||l[h]!==void 0)&&!Ba(a[h],l[h],s))return!1;return!0}let o=0;if(!r)o=Object.keys(a).length;else for(const h in a)a[h]!==void 0&&o++;let f=0;for(const h in l)if((!r||l[h]!==void 0)&&(f++,f>o||!Ba(a[h],l[h],s)))return!1;return o===f}return!1}const qx=/[\x00-\x1f\x7f"<>`{}]/g;function Gx(a){return a.replace(qx,l=>"%"+l.charCodeAt(0).toString(16).toUpperCase().padStart(2,"0"))}function iy(a){let l;try{l=decodeURI(a)}catch{l=a.replaceAll(/%[0-9A-F]{2}/gi,s=>{try{return decodeURI(s)}catch{return s}})}return Gx(l)}const Qx=["http:","https:","mailto:","tel:"];function Xu(a,l){if(!a)return!1;try{const s=new URL(a);return!l.has(s.protocol)}catch{return!1}}function Bs(a){if(!a)return{path:a,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(a)&&!a.startsWith("//"))return{path:a,handledProtocolRelativeURL:!1};const l=/%25|%5C/gi;let s=0,r="",o;for(;(o=l.exec(a))!==null;)r+=iy(a.slice(s,o.index))+o[0],s=l.lastIndex;r=r+iy(s?a.slice(s):a);let f=!1;return r.startsWith("//")&&(f=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:f}}function Vx(a){return/\s|[^\u0000-\u007F]/.test(a)?a.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):a}function Yx(a,l){if(a===l)return!0;if(a.length!==l.length)return!1;for(let s=0;s<a.length;s++)if(a[s]!==l[s])return!1;return!0}function vd(){throw new Error("Invariant failed")}function Zu(a){const l=new Map;let s,r;const o=f=>{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,r&&(r.next=f,f.prev=r)):(f.next.prev=void 0,s=f.next,f.next=void 0,r&&(f.prev=r,r.next=f)),r=f)};return{get(f){const h=l.get(f);if(h)return o(h),h.value},set(f,h){if(l.size>=a&&s){const p=s;l.delete(p.key),p.next&&(s=p.next,p.next.prev=void 0),p===r&&(r=void 0)}const d=l.get(f);if(d)d.value=h,o(d);else{const p={key:f,value:h,prev:r};r&&(r.next=p),r=p,s||(s=p),l.set(f,p)}},clear(){l.clear(),s=void 0,r=void 0}}}const Ua=4,m0=5;function g0(a,l,s=new Uint16Array(6)){const r=a.indexOf("/",l),o=r===-1?a.length:r,f=a.substring(l,o);if(!f||!f.includes("$"))return s[0]=0,s[1]=l,s[2]=l,s[3]=o,s[4]=o,s[5]=o,s;if(f==="$"){const p=a.length;return s[0]=2,s[1]=l,s[2]=l,s[3]=p,s[4]=p,s[5]=p,s}if(f.charCodeAt(0)===36)return s[0]=1,s[1]=l,s[2]=l+1,s[3]=o,s[4]=o,s[5]=o,s;const h=f.indexOf("{");let d;if(h!==-1&&h+1<f.length&&(d=f.indexOf("}",h))!==-1){const p=f.charCodeAt(h+1);if(p===45){if(h+2<f.length&&f.charCodeAt(h+2)===36){const g=h+3,b=d;if(g<b)return s[0]=3,s[1]=l+h,s[2]=l+g,s[3]=l+b,s[4]=l+d+1,s[5]=o,s}}else if(p===36){const g=h+1,b=h+2;return b===d?(s[0]=2,s[1]=l+h,s[2]=l+g,s[3]=l+b,s[4]=l+d+1,s[5]=a.length,s):(s[0]=1,s[1]=l+h,s[2]=l+b,s[3]=l+d,s[4]=l+d+1,s[5]=o,s)}}return s[0]=0,s[1]=l,s[2]=l,s[3]=o,s[4]=o,s[5]=o,s}function Iu(a,l,s,r,o,f,h,d){var g,b;d==null||d(s);let p=r;{const y=s.fullPath??s.from,S=s.options,_=y.length,w=(S==null?void 0:S.caseSensitive)??a,E=((g=S==null?void 0:S.params)==null?void 0:g.parse)??(S==null?void 0:S.parseParams);for(;p<_;){const R=g0(y,p,l);let z;const L=p,D=R[5];p=D+1,f++;const X=R[0];switch(X){case 0:{const q=y.substring(R[2],R[3]);let Y=q,J;w?J=o.static??(o.static=new Map):(Y=q.toLowerCase(),J=o.staticInsensitive??(o.staticInsensitive=new Map));const Q=J.get(Y);if(Q)z=Q;else{const P=di(y);P.parent=o,P.depth=f,z=P,J.set(Y,P)}break}case 1:case 3:case 2:{let q=y.substring(L,R[1]),Y=y.substring(R[4],D);const J=w&&!!(q||Y);w||(q=q.toLowerCase(),Y=Y.toLowerCase());const Q=X===1?o.dynamic:X===3?o.optional:o.wildcard,P=X!==2&&!E&&(Q==null?void 0:Q.find(ee=>!ee.parse&&ee.caseSensitive===J&&ee.prefix===q&&ee.suffix===Y));if(P)z=P;else{const ee=Kx(X,y,J,q,Y);z=ee,ee.parent=o,ee.depth=f;let I;X===1?I=o.dynamic??(o.dynamic=[]):X===3?I=o.optional??(o.optional=[]):I=o.wildcard??(o.wildcard=[]),I.push(ee),I.length===2&&(h==null||h.push(I))}break}}o=z}if(E&&s.children&&!s.isRoot&&s.id&&s.id.charCodeAt(s.id.lastIndexOf("/")+1)===95){const R=di(y);R.kind=m0,R.parent=o,f++,R.depth=f,o.pathless??(o.pathless=[]),o.pathless.push(R),o=R}const j=(s.path||!s.children)&&!s.isRoot;if(j&&y.endsWith("/")){const R=di(y);R.kind=Ua,R.parent=o,f++,R.depth=f,o.index=R,o=R}o.parse=E??null,o.priority=((b=S==null?void 0:S.params)==null?void 0:b.priority)??0,j&&!o.route&&(o.route=s,o.fullPath=y)}if(s.children)for(const y of s.children)Iu(a,l,y,p,o,f,h,d)}function p0(a,l){if(a.parse&&!l.parse)return-1;if(!a.parse&&l.parse)return 1;if(a.parse&&l.parse&&(a.priority||l.priority))return l.priority-a.priority;if(a.prefix&&l.prefix&&a.prefix!==l.prefix){if(a.prefix.startsWith(l.prefix))return-1;if(l.prefix.startsWith(a.prefix))return 1}if(a.suffix&&l.suffix&&a.suffix!==l.suffix){if(a.suffix.endsWith(l.suffix))return-1;if(l.suffix.endsWith(a.suffix))return 1}return a.prefix&&!l.prefix?-1:!a.prefix&&l.prefix?1:a.suffix&&!l.suffix?-1:!a.suffix&&l.suffix?1:a.caseSensitive&&!l.caseSensitive?-1:!a.caseSensitive&&l.caseSensitive?1:0}function di(a){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:a,parent:null,parse:null,priority:0}}function Kx(a,l,s,r,o){return{kind:a,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:l,parent:null,parse:null,priority:0,caseSensitive:s,prefix:r,suffix:o}}function Xx(a,l){const s=di("/"),r=new Uint16Array(6),o=[];for(const f of a)Iu(!1,r,f,1,s,0,o);for(const f of o)f.sort(p0);l.masksTree=s,l.flatCache=Zu(1e3)}function Zx(a,l){a||(a="/");const s=l.flatCache.get(a);if(s!==void 0)return s;const r=bd(a,l.masksTree);return l.flatCache.set(a,r),r}function Jx(a,l,s,r,o){a||(a="/"),r||(r="/");const f=l?`case\0${a}`:a;let h=o.singleCache.get(f);return h||(h=di("/"),Iu(l,new Uint16Array(6),{from:a},1,h,0),o.singleCache.set(f,h)),bd(r,h,s)}function Fx(a,l,s=!1){const r=s?a:`nofuzz\0${a}`,o=l.matchCache.get(r);if(o!==void 0)return o;a||(a="/");let f;try{f=bd(a,l.segmentTree,s)}catch(h){if(h instanceof URIError)f=null;else throw h}return f&&(f.branch=v0(f.route)),l.matchCache.set(r,f),f}function $x(a){return a==="/"?a:a.replace(/\/{1,}$/,"")}function Wx(a,l=!1,s){const r=di(a.fullPath),o=new Uint16Array(6),f=[],h={},d={};let p=0;Iu(l,o,a,1,r,0,f,g=>{if(s==null||s(g,p),g.id in h&&vd(),h[g.id]=g,p!==0&&g.path){const b=$x(g.fullPath);(!d[b]||g.fullPath.endsWith("/"))&&(d[b]=g)}p++});for(const g of f)g.sort(p0);return{processedTree:{segmentTree:r,singleCache:Zu(1e3),matchCache:Zu(1e3),flatCache:null,masksTree:null},routesById:h,routesByPath:d}}function bd(a,l,s=!1){const r=a.split("/"),o=Ix(a,r,l,s);if(!o)return null;const[f]=y0(a,r,o);return{route:o.node.route,rawParams:f}}function y0(a,l,s){var b,y,S,_;const r=Px(s.node);let o=null;const f=Object.create(null);let h=((b=s.extract)==null?void 0:b.part)??0,d=((y=s.extract)==null?void 0:y.node)??0,p=((S=s.extract)==null?void 0:S.path)??0,g=((_=s.extract)==null?void 0:_.segment)??0;for(;d<r.length;h++,d++,p++,g++){const w=r[d];if(w.kind===Ua)break;if(w.kind===m0){g--,h--,p--;continue}const E=l[h],j=p;if(E&&(p+=E.length),w.kind===1){o??(o=s.node.fullPath.split("/"));const R=o[g],z=w.prefix.length;if(R.charCodeAt(z)===123){const L=w.suffix.length,D=R.substring(z+2,R.length-L-1),X=E.substring(z,E.length-L);f[D]=decodeURIComponent(X)}else{const L=R.substring(1);f[L]=decodeURIComponent(E)}}else if(w.kind===3){if(s.skipped&1<<d){h--,p=j-1;continue}o??(o=s.node.fullPath.split("/"));const R=o[g],z=w.prefix.length,L=w.suffix.length,D=R.substring(z+3,R.length-L-1),X=w.suffix||w.prefix?E.substring(z,E.length-L):E;X&&(f[D]=decodeURIComponent(X))}else if(w.kind===2){const R=w,z=a.substring(j+R.prefix.length,a.length-R.suffix.length),L=decodeURIComponent(z);f["*"]=L,f._splat=L;break}}return s.rawParams&&Object.assign(f,s.rawParams),[f,{part:h,node:d,path:p,segment:g}]}function v0(a){const l=[a];for(;a.parentRoute;)a=a.parentRoute,l.push(a);return l.reverse(),l}function Px(a){const l=Array(a.depth+1);do l[a.depth]=a,a=a.parent;while(a);return l}function Ix(a,l,s,r){if(a==="/"&&s.index)return{node:s.index,skipped:0};const o=!Is(l),f=o&&a!=="/",h=l.length-(o?1:0),d=[{node:s,index:1,skipped:0,statics:0,dynamics:0,optionals:0}];let p=null,g=null;for(;d.length;){const b=d.pop(),{node:y,index:S,skipped:_,statics:w,dynamics:E,optionals:j}=b;let{extract:R,rawParams:z}=b;if(y.kind===2&&y.route&&!ku(g,b))continue;if(y.parse){if(!sy(a,l,b))continue;z=b.rawParams,R=b.extract}r&&y.route&&y.kind!==Ua&&ku(p,b)&&(p=b);const L=S===h;if(L&&(y.route&&(!f||y.kind===Ua||y.kind===2)&&ku(g,b)&&(g=b),!y.optional&&!y.wildcard&&!y.index&&!y.pathless))continue;const D=L?void 0:l[S];let X;if(L&&y.index){const q={node:y.index,index:S,skipped:_,statics:w,dynamics:E,optionals:j,extract:R,rawParams:z};let Y=!0;if(y.index.parse&&(sy(a,l,q)||(Y=!1)),Y){if(!E&&!j&&!_&&eS(w,h))return q;ku(g,q)&&(g=q)}}if(y.wildcard)for(let q=y.wildcard.length-1;q>=0;q--){const Y=y.wildcard[q],{prefix:J,suffix:Q}=Y;if(!(J&&(L||!(Y.caseSensitive?D:X??(X=D.toLowerCase())).startsWith(J)))){if(Q){if(L)continue;const P=l.slice(S).join("/"),ee=P.slice(-Q.length);if((Y.caseSensitive?ee:ee.toLowerCase())!==Q||P.length-Q.length<J.length)continue}d.push({node:Y,index:h,skipped:_,statics:w,dynamics:E,optionals:j,extract:R,rawParams:z})}}if(y.optional){const q=_|1<<y.depth+1;for(let Y=y.optional.length-1;Y>=0;Y--){const J=y.optional[Y];d.push({node:J,index:S,skipped:q,statics:w,dynamics:E,optionals:j,extract:R,rawParams:z})}if(!L)for(let Y=y.optional.length-1;Y>=0;Y--){const J=y.optional[Y],{prefix:Q,suffix:P}=J;if(Q||P){const ee=J.caseSensitive?D:X??(X=D.toLowerCase());if(Q&&!ee.startsWith(Q)||P&&ee.indexOf(P,ee.length-P.length)<Q.length)continue}d.push({node:J,index:S+1,skipped:_,statics:w,dynamics:E,optionals:j+Ou(h,S),extract:R,rawParams:z})}}if(!L&&y.dynamic&&D)for(let q=y.dynamic.length-1;q>=0;q--){const Y=y.dynamic[q],{prefix:J,suffix:Q}=Y;if(J||Q){const P=Y.caseSensitive?D:X??(X=D.toLowerCase());if(J&&!P.startsWith(J)||Q&&P.indexOf(Q,P.length-Q.length)<J.length)continue}d.push({node:Y,index:S+1,skipped:_,statics:w,dynamics:E+Ou(h,S),optionals:j,extract:R,rawParams:z})}if(!L&&y.staticInsensitive){const q=y.staticInsensitive.get(X??(X=D.toLowerCase()));q&&d.push({node:q,index:S+1,skipped:_,statics:w+Ou(h,S),dynamics:E,optionals:j,extract:R,rawParams:z})}if(!L&&y.static){const q=y.static.get(D);q&&d.push({node:q,index:S+1,skipped:_,statics:w+Ou(h,S),dynamics:E,optionals:j,extract:R,rawParams:z})}if(y.pathless)for(let q=y.pathless.length-1;q>=0;q--){const Y=y.pathless[q];d.push({node:Y,index:S,skipped:_,statics:w,dynamics:E,optionals:j,extract:R,rawParams:z})}}if(g)return g;if(r&&p){let b=p.index;for(let S=0;S<p.index;S++)b+=l[S].length;const y=b===a.length?"/":a.slice(b);return p.rawParams??(p.rawParams=Object.create(null)),p.rawParams["**"]=decodeURIComponent(y),p}return null}function Ou(a,l){return 2**(a-l-1)}function eS(a,l){return a===2**(l-1)-1}function sy(a,l,s){let r,o;try{[r,o]=y0(a,l,s)}catch{return null}if(s.rawParams=r,s.extract=o,!s.node.parse)return!0;try{if(s.node.parse(r)===!1)return null}catch{}return!0}function ku(a,l){return a?l.statics>a.statics||l.statics===a.statics&&(l.dynamics>a.dynamics||l.dynamics===a.dynamics&&(l.optionals>a.optionals||l.optionals===a.optionals&&((l.node.kind===Ua)>(a.node.kind===Ua)||l.node.kind===Ua==(a.node.kind===Ua)&&l.node.depth>a.node.depth))):!0}function Hu(a){return qu(a.filter(l=>l!==void 0).join("/"))}function qu(a){return a.replace(/\/{2,}/g,"/")}function b0(a){return a==="/"?a:a.replace(/^\/{1,}/,"")}function Jn(a){const l=a.length;return l>1&&a[l-1]==="/"?a.replace(/\/{1,}$/,""):a}function x0(a){return Jn(b0(a))}function Ju(a,l){return a!=null&&a.endsWith("/")&&a!=="/"&&a!==`${l}/`?a.slice(0,-1):a}function tS(a,l,s){return Ju(a,s)===Ju(l,s)}function nS({base:a,to:l,trailingSlash:s="never",cache:r}){if(l.includes("//")&&(l=qu(l)),l.startsWith("/"))return l.length===1||s==="preserve"?l:s==="always"?l.endsWith("/")?l:`${l}/`:l.endsWith("/")?l.slice(0,-1):l;const o=l===".";let f;if(r){f=o?a:a+"\0"+l;const g=r.get(f);if(g)return g}let h;if(o)h=a.split("/");else{for(a.includes("//")&&(a=qu(a)),h=a.split("/");h.length>1&&Is(h)==="";)h.pop();const g=l.split("/");for(let b=0,y=g.length;b<y;b++){const S=g[b];S===""?b?b===y-1&&h.push(S):h=[S]:S===".."?h.length>1?h.pop():h=[""]:S==="."||h.push(S)}}h.length>1&&(Is(h)===""?s==="never"&&h.pop():s==="always"&&h.push(""));const d=h.join("/"),p=(o?qu(d):d)||"/";return f&&r&&r.set(f,p),p}function aS(a){const l=new Map(a.map(o=>[encodeURIComponent(o),o])),s=Array.from(l.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(s,"g");return o=>o.replace(r,f=>l.get(f)??f)}function Tf(a,l,s){const r=l[a];return typeof r!="string"?r:a==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(o=>uy(o,s)).join("/"):uy(r,s)}function ry({path:a,params:l,decoder:s,...r}){let o=!1;const f=Object.create(null);if(!a||a==="/")return{interpolatedPath:"/",usedParams:f,isMissingParams:o};if(!a.includes("$"))return{interpolatedPath:a,usedParams:f,isMissingParams:o};const h=a.length;let d=0,p,g="";for(;d<h;){const b=d;p=g0(a,b,p);const y=p[5];if(d=y+1,b===y)continue;const S=p[0];if(S===0){g+="/"+a.substring(b,y);continue}if(S===2){const _=l._splat;f._splat=_,f["*"]=_;const w=a.substring(b,p[1]),E=a.substring(p[4],y);if(!_){o=!0,(w||E)&&(g+="/"+w+E);continue}const j=Tf("_splat",l,s);g+="/"+w+j+E;continue}if(S===1){const _=a.substring(p[2],p[3]);!o&&!(_ in l)&&(o=!0),f[_]=l[_];const w=a.substring(b,p[1]),E=a.substring(p[4],y),j=Tf(_,l,s)??"undefined";g+="/"+w+j+E;continue}if(S===3){const _=a.substring(p[2],p[3]),w=l[_];if(w==null)continue;f[_]=w;const E=a.substring(b,p[1]),j=a.substring(p[4],y),R=Tf(_,l,s)??"";g+="/"+E+R+j;continue}}return a.endsWith("/")&&(g+="/"),{usedParams:f,interpolatedPath:g||"/",isMissingParams:o}}function uy(a,l){const s=encodeURIComponent(a);return(l==null?void 0:l(s))??s}function Di(a){return(a==null?void 0:a.isNotFound)===!0}function lS(){try{return sessionStorage}catch{return}}const iS="tsr-scroll-restoration-v1_3",hi=lS();function sS(){try{return JSON.parse((hi==null?void 0:hi.getItem("tsr-scroll-restoration-v1_3"))||"{}")}catch{return{}}}function rS(){try{hi==null||hi.setItem(iS,JSON.stringify(Ma))}catch{}}const Ma=sS(),cy="data-scroll-restoration-id",uS=a=>a.state.__TSR_key||a.href;function cS(a){const l=a.getAttribute(cy);if(l)return`[${cy}="${l}"]`;let s="",r=a,o;for(;o=r.parentNode;){let f=1,h=r;for(;h=h.previousElementSibling;)f++;const d=`${r.localName}:nth-child(${f})`;s=s?`${d} > ${s}`:d,r=o}return s}let Uu=!1;const Gu="window";function If(a){try{return typeof a=="function"?a():document.querySelector(a)}catch{}}function oy(a){const l=new Set;for(const s of a){if(s===Gu)continue;const r=If(s);r&&l.add(r)}return l}function oS(a,l){const s=a.options.scrollRestoration,r=a._scroll;s&&(r.restoring=!0);const o=a.options.getScrollRestorationKey||uS,f=new Set,h=d=>{const p=Ma[d]||(Ma[d]={});for(const g of f)g===document?p[Gu]={scrollX,scrollY}:g.isConnected&&(p[cS(g)]={scrollX:g.scrollLeft,scrollY:g.scrollTop})};s&&!r.restoration&&(r.restoration=!0,Uu=!1,history.scrollRestoration="manual",document.addEventListener("scroll",d=>{Uu||f.add(d.target)},!0),a.subscribe("onBeforeLoad",d=>{d.fromLocation&&h(o(d.fromLocation)),f.clear()}),addEventListener("pagehide",()=>{h(o(a.stores.resolvedLocation.get()??a.stores.location.get())),rS()})),!r.reset&&(r.reset=!0,a.subscribe("onRendered",d=>{var E;const p=a.options.scrollRestorationBehavior,g=a.options.scrollToTopSelectors,b=r.next,y=r.hash;let S;if(f.clear(),r.next=!0,r.hash=!1,typeof a.options.scrollRestoration=="function"&&!a.options.scrollRestoration({location:a.latestLocation}))return;const _=o(d.toLocation),w=d.fromLocation&&o(d.fromLocation);if(r.restoring&&w&&w!==_){const j=Ma[w];if(j){let R=Ma[_];for(const z in j){if(z===Gu){if(b)continue}else{const L=If(z);if(!L||b&&g&&(S??(S=oy(g)),S.has(L)))continue}R||(R=Ma[_]={}),R[z]??(R[z]=j[z])}}}Uu=!0;try{const j=d.toLocation.hash,R=d.toLocation.state.__hashScrollIntoViewOptions??!0;let z=!1;if(b){!j&&g&&(S??(S=oy(g)));const L=j&&R&&y,D=r.restoring?Ma[_]:void 0;if(D)for(const X in D){const{scrollX:q,scrollY:Y}=D[X];if(X===Gu){if(L)continue;scrollTo({top:Y,left:q,behavior:p}),z=!0}else{const J=If(X);J&&(J.scrollLeft=q,J.scrollTop=Y,S==null||S.delete(J))}}if(!j){const X={top:0,left:0,behavior:p};if(z||scrollTo(X),S)for(const q of S)q.scrollTo(X)}}!z&&j&&R&&((E=document.getElementById(j))==null||E.scrollIntoView(R))}finally{Uu=!1}}))}function fS(a,l=String){const s=new URLSearchParams;for(const r in a){const o=a[r];o!==void 0&&s.set(r,l(o))}return s.toString()}function Mf(a){return a?a==="false"?!1:a==="true"?!0:+a*0===0&&+a+""===a?+a:a:""}function dS(a){const l=new URLSearchParams(a),s=Object.create(null);for(const[r,o]of l.entries()){const f=s[r];f==null?s[r]=Mf(o):Array.isArray(f)?f.push(Mf(o)):s[r]=[f,Mf(o)]}return s}const hS=/^(?:\s|["[{\d-]|fa|nu|tr)/,mS=pS(JSON.parse),gS=yS(JSON.stringify,JSON.parse);function pS(a){return l=>{l[0]==="?"&&(l=l.substring(1));const s=dS(l);for(const r in s){const o=s[r];if(typeof o=="string")try{s[r]=a(o)}catch{}}return s}}function yS(a,l){const s=l===JSON.parse;function r(o){if(o&&typeof o=="object")try{return a(o)}catch{}else if(l&&typeof o=="string"){if(s&&!hS.test(o))return o;try{return l(o),a(o)}catch{}}return o}return o=>{const f=fS(o,r);return f?`?${f}`:""}}const mi="__root__";function S0(a){if(a.statusCode=a.statusCode||a.code||307,!a.reloadDocument&&typeof a.href=="string")try{new URL(a.href),a.reloadDocument=!0}catch{}const l=new Headers(a.headers);a.href&&l.get("Location")===null&&l.set("Location",a.href);const s=new Response(null,{status:a.statusCode,headers:l});if(s.options=a,a.throw)throw s;return s}function _0(a){return a instanceof Response&&!!a.options}function vS(a){return{input:({url:l})=>{for(const s of a)l=ed(s,l);return l},output:({url:l})=>{for(let s=a.length-1;s>=0;s--)l=w0(a[s],l);return l}}}function bS(a){const l=x0(a.basepath),s=`/${l}`,r=a.caseSensitive?s:s.toLowerCase(),o=`${r}/`;return{input:({url:f})=>{const h=a.caseSensitive?f.pathname:f.pathname.toLowerCase();return h===r?f.pathname="/":h.startsWith(o)&&(f.pathname=f.pathname.slice(s.length)),f},output:({url:f})=>(f.pathname=Hu(["/",l,f.pathname]),f)}}function ed(a,l){var r;const s=(r=a==null?void 0:a.input)==null?void 0:r.call(a,{url:l});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return l}function w0(a,l){var r;const s=(r=a==null?void 0:a.output)==null?void 0:r.call(a,{url:l});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return l}function xS(a,l){const{createMutableStore:s,createReadonlyStore:r,batch:o}=l,f=new Map,h=s("idle"),d=s(a),p=s(void 0),g=s([]),b=r(()=>g.get().map(E=>f.get(E).get())),y=r(()=>({status:h.get(),isLoading:h.get()==="pending",matches:b.get(),location:d.get(),resolvedLocation:p.get()}));function S(E){let j=f.get(E);return j||(j=s(void 0),f.set(E,j)),j}const _={status:h,location:d,resolvedLocation:p,ids:g,matches:b,byRoute:f,__store:y,getMatchStore:S,setMatches:w};function w(E){const j=g.get(),R=E.map(z=>z.routeId);o(()=>{Yx(j,R)||g.set(R);for(const z of j)R.includes(z)||f.get(z).set(()=>{});for(const z of E){const L=S(z.routeId);L.get()!==z&&L.set(z)}})}return _}var Ha="__TSR_index",fy="popstate",dy="beforeunload";function SS(a){let l=a.getLocation();const s=new Set,r=h=>{l=a.getLocation(),s.forEach(d=>d({location:l,action:h}))},o=h=>{a.notifyOnIndexChange??!0?r(h):l=a.getLocation()},f=async({task:h,navigateOpts:d,...p})=>{var y,S;if((d==null?void 0:d.ignoreBlocker)??!1){h();return}const g=((y=a.getBlockers)==null?void 0:y.call(a))??[],b=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&g.length&&b)for(const _ of g){const w=Fu(p.path,p.state);if(await _.blockerFn({currentLocation:l,nextLocation:w,action:p.type})){(S=a.onBlocked)==null||S.call(a);return}}h()};return{get location(){return l},get length(){return a.getLength()},subscribers:s,subscribe:h=>(s.add(h),()=>{s.delete(h)}),push:(h,d,p)=>{const g=l.state[Ha];d=hy(g+1,d),f({task:()=>{a.pushState(h,d),r({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:h,state:d})},replace:(h,d,p)=>{const g=l.state[Ha];d=hy(g,d),f({task:()=>{a.replaceState(h,d),r({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:h,state:d})},go:(h,d)=>{f({task:()=>{a.go(h),o({type:"GO",index:h})},navigateOpts:d,type:"GO"})},back:h=>{f({task:()=>{a.back((h==null?void 0:h.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:h,type:"BACK"})},forward:h=>{f({task:()=>{a.forward((h==null?void 0:h.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:h,type:"FORWARD"})},canGoBack:()=>l.state[Ha]!==0,createHref:h=>a.createHref(h),block:h=>{var p;if(!a.setBlockers)return()=>{};const d=((p=a.getBlockers)==null?void 0:p.call(a))??[];return a.setBlockers([...d,h]),()=>{var b,y;const g=((b=a.getBlockers)==null?void 0:b.call(a))??[];(y=a.setBlockers)==null||y.call(a,g.filter(S=>S!==h))}},flush:()=>{var h;return(h=a.flush)==null?void 0:h.call(a)},destroy:()=>{var h;return(h=a.destroy)==null?void 0:h.call(a)},notify:r}}function hy(a,l){l||(l={});const s=xd();return{...l,key:s,__TSR_key:s,[Ha]:a}}function _S(a){var Y,J;const l=typeof document<"u"?window:void 0,s=l.history.pushState,r=l.history.replaceState;let o=[];const f=()=>o,h=Q=>o=Q,d=(Q=>Q),p=(()=>Fu(`${l.location.pathname}${l.location.search}${l.location.hash}`,l.history.state));if(!((Y=l.history.state)!=null&&Y.__TSR_key)&&!((J=l.history.state)!=null&&J.key)){const Q=xd();l.history.replaceState({[Ha]:0,key:Q,__TSR_key:Q},"")}let g=p(),b,y=!1,S=!1,_=!1,w=!1;const E=()=>g;let j;const R=()=>{j&&(q._ignoreSubscribers=!0,(j[2]?l.history.pushState:l.history.replaceState)(j[1],"",j[0]),q._ignoreSubscribers=!1,j=void 0,b=void 0)},z=(Q,P,ee)=>{const I=d(P),de=!!j;de||(b=g),g=Fu(P,ee),j=[I,ee,(j==null?void 0:j[2])||Q],de||queueMicrotask(()=>R())},L=Q=>{g=p(),q.notify({type:Q})},D=async()=>{if(S){S=!1;return}const Q=p(),P=Q.state[Ha]-g.state[Ha],ee=P===1,I=P===-1,de=!ee&&!I||y;y=!1;const $=de?"GO":I?"BACK":"FORWARD",ne=de?{type:"GO",index:P}:{type:I?"BACK":"FORWARD"};if(_)_=!1;else{const B=f();if(typeof document<"u"&&B.length){for(const W of B)if(await W.blockerFn({currentLocation:g,nextLocation:Q,action:$})){S=!0,l.history.go(1),q.notify(ne);return}}}g=p(),q.notify(ne)},X=Q=>{if(w){w=!1;return}let P=!1;const ee=f();if(typeof document<"u"&&ee.length)for(const I of ee){const de=I.enableBeforeUnload??!0;if(de===!0){P=!0;break}if(typeof de=="function"&&de()===!0){P=!0;break}}if(P)return Q.preventDefault(),Q.returnValue=""},q=SS({getLocation:E,getLength:()=>l.history.length,pushState:(Q,P)=>z(!0,Q,P),replaceState:(Q,P)=>z(!1,Q,P),back:Q=>(Q&&(_=!0),w=!0,l.history.back()),forward:Q=>{Q&&(_=!0),w=!0,l.history.forward()},go:Q=>{y=!0,l.history.go(Q)},createHref:Q=>d(Q),flush:R,destroy:()=>{l.history.pushState=s,l.history.replaceState=r,l.removeEventListener(dy,X,{capture:!0}),l.removeEventListener(fy,D)},onBlocked:()=>{b&&g!==b&&(g=b)},getBlockers:f,setBlockers:h,notifyOnIndexChange:!1});return l.addEventListener(dy,X,{capture:!0}),l.addEventListener(fy,D),l.history.pushState=function(...Q){const P=s.apply(l.history,Q);return q._ignoreSubscribers||L("PUSH"),P},l.history.replaceState=function(...Q){const P=r.apply(l.history,Q);return q._ignoreSubscribers||L("REPLACE"),P},q}function wS(a){let l=a.replace(/[\x00-\x1f\x7f]/g,"");return l.startsWith("//")&&(l="/"+l.replace(/^\/+/,"")),l}function Fu(a,l){const s=wS(a),r=s.indexOf("#"),o=s.indexOf("?"),f=xd();return{href:s,pathname:s.substring(0,r>0?o>0?Math.min(r,o):r:o>0?o:s.length),hash:r>-1?s.substring(r):"",search:o>-1?s.slice(o,r===-1?void 0:r):"",state:l||{[Ha]:0,key:f,__TSR_key:f}}}function xd(){return(Math.random()+1).toString(36).substring(7)}function my(a){var l,s;return a.options.loader||a.options.beforeLoad||a.lazyFn||((l=a.options.component)==null?void 0:l.preload)||((s=a.options.pendingComponent)==null?void 0:s.preload)}function ec(a,l){return{fromLocation:l,toLocation:a,pathChanged:(l==null?void 0:l.pathname)!==a.pathname,hrefChanged:(l==null?void 0:l.href)!==a.href,hashChanged:(l==null?void 0:l.hash)!==a.hash}}function gy({key:a,__TSR_key:l,__TSR_index:s,__hashScrollIntoViewOptions:r,...o}){return o}function ES(a,l,s,r){var o,f,h,d;for(const p of l){if(r&&a._tx!==r)return;s.some(g=>g.routeId===p.routeId)||(f=(o=a.routesById[p.routeId].options).onLeave)==null||f.call(o,p)}for(const p of s){if(r&&a._tx!==r)return;(d=(h=a.routesById[p.routeId].options)[l.some(g=>g.routeId===p.routeId)?"onStay":"onEnter"])==null||d.call(h,p)}}var jS=class{constructor(a,l){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.subscribers=new Set,this._cache=new Map,this._committed=[],this.routeBranchCache=new WeakMap,this.lightweightCache=new WeakMap,this.startTransition=async s=>(s(),!1),this.update=s=>{const r=this.options,o=this.basepath??(r==null?void 0:r.basepath)??"/",f=this.basepath===void 0,h=r==null?void 0:r.rewrite;if(this.options={...r,...s},this.isServer=this.options.isServer??kx??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=aS(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=_S()),this.origin=this.options.origin,this.origin||(window!=null&&window.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let g;this.resolvePathCache=Zu(1e3),g=this.buildRouteTree(),this.setRoutes(g)}if(!this.stores&&this.latestLocation){const g=this.getStoreConfig(this);this.batch=g.batch,this.stores=xS(this.latestLocation,g),oS(this)}const d=this.options.basepath??"/",p=this.options.rewrite;if(f||o!==d||h!==p){this.basepath=d;const g=[],b=x0(d);b&&b!=="/"&&g.push(bS({basepath:d})),p&&g.push(p),this.rewrite=g.length===0?void 0:g.length===1?g[0]:vS(g),this.history&&this.updateLatestLocation(),this.stores&&this.stores.location.set(this.latestLocation)}},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const s=Wx(this.routeTree,this.options.caseSensitive,(r,o)=>{r.init({originalIndex:o})});return this.options.routeMasks&&Xx(this.options.routeMasks,s.processedTree),s},this.subscribe=(s,r)=>{const o={eventType:s,fn:r};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=s=>{for(const r of this.subscribers)if(r.eventType===s.type)try{r.fn(s)}catch(o){console.error(o)}},this.parseLocation=(s,r)=>{const o=({pathname:p,search:g,hash:b,href:y,state:S})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const R=this.options.parseSearch(g),z=this.options.stringifySearch(R);return{href:p+z+b,publicHref:p+z+b,pathname:Bs(p).path,external:!1,searchStr:z,search:sl(r==null?void 0:r.search,R),hash:Bs(b.slice(1)).path,state:ul(r==null?void 0:r.state,S)}}const _=new URL(y,this.origin),w=ed(this.rewrite,_),E=this.options.parseSearch(w.search),j=this.options.stringifySearch(E);return w.search=j,{href:w.href.replace(w.origin,""),publicHref:y,pathname:Bs(w.pathname).path,external:!!this.rewrite&&w.origin!==this.origin,searchStr:j,search:sl(r==null?void 0:r.search,E),hash:Bs(w.hash.slice(1)).path,state:ul(r==null?void 0:r.state,S)}},f=o(s),{__tempLocation:h,__tempKey:d}=f.state;if(h&&(!d||d===this.tempLocationKey)){const p=o(h);return p.state.key=f.state.key,p.state.__TSR_key=f.state.__TSR_key,delete p.state.__tempLocation,{...p,maskedLocation:f}}return f},this.resolvePathWithBase=(s,r)=>nS({base:s,to:r,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(s,r,o)=>typeof s=="string"?this.matchRoutesInternal({pathname:s,search:r},o):this.matchRoutesInternal(s,r),this.getMatchedRoutes=s=>{const r=Object.create(null),o=Fx(Jn(s),this.processedTree,!0);return o&&Object.assign(r,o.rawParams),[(o==null?void 0:o.branch)||[this.routesById.__root__],r,o==null?void 0:o.route]},this.buildLocation=s=>{const r=(f={})=>{var Q,P;if(f.href){const ee=Fu(f.href,{});f={...f,to:ed(this.rewrite,new URL(ee.pathname,this.origin)).pathname,search:this.options.parseSearch(ee.search),hash:ee.hash.slice(1)}}const h=f._fromLocation||this._pendingLocation||this.latestLocation,d=this.matchRoutesLightweight(h);f.from;const p=f.unsafeRelative==="path"?h.pathname:f.from??d[1],g=d[2],b=d[3],y=this.resolvePathWithBase(p,f.to?`${f.to}`:".");let S=py(f.params,b);const _=this.routesByPath[Jn(y)];let w;if(_)w=this.getRouteBranch(_);else if(y.includes("$"))w=[];else{const[ee,I,de]=this.getMatchedRoutes(y);w=ee,this.options.notFoundRoute&&(!de||de.path!=="/"&&I["**"])&&(w=[...w,this.options.notFoundRoute])}if(w.length&&h0(S))for(const ee of w){const I=((Q=ee.options.params)==null?void 0:Q.stringify)??ee.options.stringifyParams;if(I){S===b&&(S=Object.assign(Object.create(null),S));try{Object.assign(S,I(S))}catch{}}}const E=s.leaveParams?y:Bs(ry({path:y,params:S,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let j=g;if(s._includeValidateSearch&&((P=this.options.search)!=null&&P.strict)){const ee={};w.forEach(I=>{if(I.options.validateSearch)try{Object.assign(ee,Qu(I.options.validateSearch,{...ee,...j}))}catch{}}),j=ee}j=MS(j,f,w,s._includeValidateSearch),j=sl(g,j);const R=this.options.stringifySearch(j),z=f.hash===!0?h.hash:f.hash?Ni(f.hash,h.hash):void 0,L=z?`#${z}`:"";let D=f.state===!0?h.state:f.state?Ni(f.state,h.state):{};f.state&&(D=ul(h.state,D));const X=`${E}${R}${L}`;let q,Y,J=!1;if(this.rewrite){const ee=new URL(X,this.origin),I=w0(this.rewrite,ee);q=ee.href.replace(ee.origin,""),I.origin!==this.origin?(Y=I.href,J=!0):Y=I.pathname+I.search+I.hash}else q=Vx(X),Y=q;return{publicHref:Y,href:q,pathname:E,search:j,searchStr:R,state:D,hash:z??"",external:J,unmaskOnReload:f.unmaskOnReload}},o=r(s);if(s.mask)o.maskedLocation=r({from:s.from,...s.mask});else if(this.options.routeMasks){const f=Zx(o.pathname,this.processedTree);if(f){const h=Object.assign(Object.create(null),f.rawParams),{from:d,params:p,...g}=f.route,b=py(p,h);o.maskedLocation=r({from:s.from,...g,params:b})}}return o},this.commitLocation=async({viewTransition:s,ignoreBlocker:r,...o})=>{let f;const h=Jn(this.latestLocation.href)===Jn(o.href)&&Ba(gy(o.state),gy(this.latestLocation.state)),d=this._commitPromise;let p;const g=new Promise(b=>{p=b});if(g.resolve=()=>{p(),d==null||d.resolve()},this._commitPromise=g,h)this.load();else{let{maskedLocation:b,hashScrollIntoView:y,...S}=o;b&&(S={...b,state:{...b.state,__tempKey:void 0,__tempLocation:{...S,search:S.searchStr,state:{...S.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(S.unmaskOnReload??this.options.unmaskOnReload??!1)&&(S.state.__tempKey=this.tempLocationKey)),S.state.__hashScrollIntoViewOptions=y??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,f=o.replace?"REPLACE":"PUSH",this.history[f==="REPLACE"?"replace":"push"](S.publicHref,S.state,{ignoreBlocker:r}),this.history.subscribers.size||this.load({action:{type:f}})}return this._scroll.next=o.resetScroll??!0,this._commitPromise},this.buildAndCommitLocation=({replace:s,resetScroll:r,hashScrollIntoView:o,viewTransition:f,ignoreBlocker:h,...d}={})=>{const p=this.buildLocation({...d,_includeValidateSearch:!0});this._pendingLocation=p;const g=this.commitLocation({...p,viewTransition:f,replace:s,resetScroll:r,hashScrollIntoView:o,ignoreBlocker:h});return queueMicrotask(()=>{this._pendingLocation===p&&(this._pendingLocation=void 0)}),g},this.navigate=async({to:s,reloadDocument:r,href:o,publicHref:f,...h})=>{var p,g;let d=!1;if(o)try{new URL(`${o}`),d=!0}catch{}if(d&&!r&&(r=!0),r){if(s!==void 0||!o){const y=this.buildLocation({to:s,...h});o=o??y.publicHref,f=f??y.publicHref}const b=!d&&f?f:o;if(Xu(b,this.protocolAllowlist))return;if(!h.ignoreBlocker){const y=((g=(p=this.history).getBlockers)==null?void 0:g.call(p))??[];for(const S of y)if(S!=null&&S.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return}h.replace?window.location.replace(b):window.location.href=b;return}return this.buildAndCommitLocation({...h,href:o,to:s,_isNavigate:!0})},this.load=async s=>{this.updateLatestLocation(),s!=null&&s.action&&(this._scroll.hash=s.action.type==="PUSH"||s.action.type==="REPLACE"),await US(this,s)},this.startViewTransition=s=>{var o,f;const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document.startViewTransition=="function"){let h;if(typeof r=="object"&&((f=(o=window.CSS)==null?void 0:o.supports)!=null&&f.call(o,"selector(:active-view-transition-type(a))"))){const d=this.latestLocation,p=this.stores.resolvedLocation.get(),g=typeof r.types=="function"?r.types(ec(d,p)):r.types;if(g===!1)return s();h={update:s,types:g}}else h=s;return document.startViewTransition(h).updateCallbackDone}return s()},this.invalidate=s=>{var g,b;const r=this._committed,o=s==null?void 0:s.filter,f=this._preloads,h=new Set([...r,...this._cache.values(),...[...(f==null?void 0:f.values())??[]].flat(),...((g=this._tx)==null?void 0:g[3])??[]].filter(y=>!o||o(y)).map(y=>y.id)),d=[];for(const[y,S]of f??[])S.some(_=>h.has(_.id))&&(f.delete(y),d.push(y));const p=y=>{if(h.has(y.id)){const S=this.routesById[y.routeId],_={...y,invalid:!0,...(s!=null&&s.forcePending||y.status==="error"||y.status==="notFound")&&my(S)?{status:"pending",error:void 0}:void 0};return y._flight=void 0,_}return y};this._committed=r.map(p);for(const[y,S]of this._cache)h.has(y)&&(S.invalid=!0,s!=null&&s.forcePending&&(S.status="pending"));for(const y of h)(b=this._flights)==null||b.delete(y);for(const y of d)y.abort();return this.shouldViewTransition=!1,this.load({sync:s==null?void 0:s.sync})},this.resolveRedirect=s=>{const r=s.headers.get("Location");if(s.options.href){if(r)try{const o=new URL(r);if(this.origin&&o.origin===this.origin){const f=o.pathname+o.search+o.hash;s.options.href=f,s.headers.set("Location",f)}}catch{}}else{const o=this.buildLocation(s.options).publicHref||"/";s.options.href=o,s.headers.set("Location",o)}if(s.options.href&&Xu(s.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return s.headers.get("Location")||s.headers.set("Location",s.options.href),s},this.clearCache=s=>{var g;const r=this._cache,o=this._preloads,f=s==null?void 0:s.filter,h=[],d=[];for(const[b,y]of r)(!f||f(y))&&(d.push(b),h.push(y));const p=[];for(const[b,y]of o??[])(!f||y.some(f))&&(p.push(b),h.push(...y));for(const b of d)r.delete(b);for(const b of p)o.delete(b);for(const b of h){const y=b._flight;b._flight=void 0,y&&!--y[2]&&(((g=this._flights)==null?void 0:g.get(b.id))===y&&this._flights.delete(b.id),p.push(y[1]))}for(const b of p)b.abort()},this.loadRouteChunk=gi,this.preloadRoute=s=>LS(this,s),this.matchRoute=(s,r)=>{const o={...s,to:s.to?this.resolvePathWithBase(s.from||"",s.to):void 0,params:s.params||{},leaveParams:!0},f=this.buildLocation(o),h=this.stores.status.get()==="pending";if(r!=null&&r.pending&&!h)return!1;const d=(r==null?void 0:r.pending)??!h?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),p=Jx(f.pathname,(r==null?void 0:r.caseSensitive)??!1,(r==null?void 0:r.fuzzy)??!1,d.pathname,this.processedTree);return!p||s.params&&!Ba(p.rawParams,s.params,{partial:!0})?!1:(r==null?void 0:r.includeSearch)??!0?Ba(d.search,f.search,{partial:!0})?p.rawParams:!1:p.rawParams},this.getStoreConfig=l,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...a,caseSensitive:a.caseSensitive??!1,notFoundMode:a.notFoundMode??"fuzzy",stringifySearch:a.stringifySearch??gS,parseSearch:a.parseSearch??mS,protocolAllowlist:a.protocolAllowlist??Qx}),self.__TSR_ROUTER__=this}isShell(){return!!this.options.isShell}get state(){return this.stores.__store.get()}setRoutes({routesById:a,routesByPath:l,processedTree:s}){this.routesById=a,this.routesByPath=l,this.processedTree=s;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}getRouteBranch(a){let l=this.routeBranchCache.get(a);return l||(l=v0(a),this.routeBranchCache.set(a,l)),l}matchRoutesInternal(a,l){var S,_;const[s,r,o]=this.getMatchedRoutes(a.pathname);let f=s,h=!1;(o?o.path!=="/"&&r["**"]:Jn(a.pathname))&&(this.options.notFoundRoute?f=[...f,this.options.notFoundRoute]:h=!0);const d=h?AS(this.options.notFoundMode,f):void 0,p=new Array(f.length),g=this._committed,b=(w,E)=>{const j=g[E];return(j==null?void 0:j.routeId)===w.id?j:w===this.options.notFoundRoute?g.find(R=>R.routeId===w.id):void 0};let y;for(let w=0;w<f.length;w++){const E=f[w],j=p[w-1];let R,z,L;{const ne=(j==null?void 0:j.search)??a.search,B=(j==null?void 0:j._strictSearch)??void 0;try{const W=Qu(E.options.validateSearch,{...ne})??void 0;R={...ne,...W},z={...B,...W}}catch(W){let re=W;if(W instanceof $u||(re=new $u(W.message,{cause:W})),l!=null&&l.throwOnError)throw re;R=ne,z={},L=re}}let D="",X="";try{D=((_=(S=E.options).loaderDeps)==null?void 0:_.call(S,{search:R}))??"",X=D&&JSON.stringify(D)||""}catch(ne){if(l!=null&&l.throwOnError)throw ne;L??(L=ne)}const{interpolatedPath:q,usedParams:Y}=ry({path:E.fullPath,params:r,decoder:this.pathParamsDecoder,server:this.isServer}),J=E.id+q+X,Q=b(E,w),P=this._cache.get(J)??((Q==null?void 0:Q.id)===J?Q:void 0);y=(P==null?void 0:P._strictParams)??Object.assign(Y,y);let ee;if(!P)try{yy(E,y)}catch(ne){if(Di(ne)||_0(ne)?ee=ne:ee=new TS(ne.message,{cause:ne}),l!=null&&l.throwOnError)throw ee}const I=Q?"stay":"enter";let de;if(P)de={...P,cause:I,search:sl(Q?Q.search:P.search,R),_strictSearch:z,searchError:L};else{const ne=my(E)?"pending":"success";de={id:J,ssr:E.options.ssr,index:w,routeId:E.id,params:(Q==null?void 0:Q.params)??y,_strictParams:y,pathname:q,updatedAt:Date.now(),search:Q?sl(Q.search,R):R,_strictSearch:z,searchError:L,status:ne,isFetching:!1,error:void 0,paramsError:ee,context:{},abortController:(l==null?void 0:l._controller)??new AbortController,cause:I,loaderDeps:Q?ul(Q.loaderDeps,D):D,invalid:!1,preload:!1,staticData:E.options.staticData||{},fullPath:E.fullPath}}const $=d===E.id;de._notFound&&!$&&(de.error=void 0),de._notFound=$,p[w]=de}for(let w=0;w<p.length;w++){const E=p[w];E.params=E.cause==="stay"?sl(E.params,y):y,l!=null&&l._controller&&(E.context={})}return p}matchRoutesLightweight(a){const l=Is(this.stores.ids.get()),s=l?this.stores.byRoute.get(l).get():void 0,r=s==null?void 0:s.id,o=this.lightweightCache.get(a);if(o&&o[0]===r)return o[1];const[f,h]=this.getMatchedRoutes(a.pathname),d=Is(f),p={...a.search};for(const S of f)try{Object.assign(p,Qu(S.options.validateSearch,p))}catch{}const g=s&&s.routeId===d.id&&s.pathname===a.pathname;let b;if(g)b=s.params;else{const S=Object.assign(Object.create(null),h);for(const _ of f)try{yy(_,S)}catch{}b=S}const y=[f,d.fullPath,p,b];return this.lightweightCache.set(a,[r,y]),y}},$u=class extends Error{},TS=class extends Error{};function Qu(a,l){if(a==null)return{};if("~standard"in a){const s=a["~standard"].validate(l);if(s instanceof Promise)throw new $u("Async validation not supported");if(s.issues)throw new $u(JSON.stringify(s.issues,void 0,2),{cause:s});return s.value}return"parse"in a?a.parse(l):typeof a=="function"?a(l):{}}function MS(a,l,s,r){var h;const o=[];for(const d of s){const p=d.options;if("search"in p)(h=p.search)!=null&&h.middlewares&&o.push(...p.search.middlewares);else if(p.preSearchFilters||p.postSearchFilters){const b=({search:y,next:S})=>{const _=S(p.preSearchFilters?p.preSearchFilters.reduce((w,E)=>E(w),y):y);return p.postSearchFilters?p.postSearchFilters.reduce((w,E)=>E(w),_):_};o.push(b)}const g=p.validateSearch;if(r&&g){const b=({search:y,next:S,meta:_})=>{const w=S(y);try{const E=Qu(g,w);if(_&&E)for(const j in E)j in w||(_.defaulted||(_.defaulted=new Map)).set(j,E[j]);return{...w,...E}}catch{}return w};o.push(b)}}const f=(d,p,g)=>{if(d>=o.length){if(!l.search)return{};if(l.search===!0)return p;const y=Ni(l.search,p);return g&&(g.explicit=y),y}const b=(y,S)=>{if(S){const _=g||{};return{search:f(d+1,y,_),meta:_}}return f(d+1,y,g)};return o[d]({search:p,next:b,meta:g})};return f(0,a)}function AS(a,l){if(a!=="root"){let s;for(let r=l.length-1;r>=0;r--){const o=l[r];if(o.options.notFoundComponent)return o.id;s||(s=o.children&&o.id)}if(s)return s}return mi}function py(a,l){if(a===!1||a===null)return Object.create(null);if((a??!0)===!0)return l;const s=Object.assign(Object.create(null),l);return Object.assign(s,Ni(a,s))}function yy(a,l){var r;const s=((r=a.options.params)==null?void 0:r.parse)??a.options.parseParams;s&&Object.assign(l,s(l))}function td(a,l){var s,r;return(r=(s=a.options[l])==null?void 0:s.preload)==null?void 0:r.call(s)}function CS(a,l){const s=td(a,"component");let r=td(a,"pendingComponent");return l&&(r?r=r.then(l):l()),s&&r?Promise.all([s,r]).then(()=>{}):s??r}function gi(a,l,s){const r=()=>l===!1?void 0:l?td(a,l):CS(a,s),o=a._lazy;if(o)return o===!0?r():o.then(r);if(!a.lazyFn)return r();const f=a.lazyFn().then(h=>{{const{id:d,...p}=h.options;Object.assign(a.options,p),a._lazy=!0}},h=>{throw a._lazy=void 0,h});return a._lazy=f,f.then(r)}function Sd(a){const l=a.findIndex(s=>s.status!=="success"||s._notFound)+1;return l&&l<a.length?a.slice(0,l):a}const Sn=0,$n=1,tc=2,Vt=3,qa=[4];function er(a){return typeof a[0]=="number"}function bl(a,l){return l.aborted?Promise.race([Promise.reject(l),a]):new Promise((s,r)=>{const o=()=>r(l);l.addEventListener("abort",o,{once:!0}),Promise.resolve(a).then(s,r).finally(()=>l.removeEventListener("abort",o))})}function xl(a,l){return a.routesById[l.routeId]}function tr(a,l,s){return _0(a)?[Vt,a]:Di(a)?(a.routeId||(a.routeId=s),[tc,a]):l?(typeof(a==null?void 0:a.then)=="function"&&(a=new Error("A Promise was thrown",{cause:a})),[$n,a]):[Sn,a]}function _d(a,l){var r,o;let s=tr(l,!0,a.id);if(s[0]!==$n)return s;try{(o=(r=a.options).onError)==null||o.call(r,s[1])}catch(f){s=tr(f,!0,a.id)}return s}function Xs(a,l,s,r,o){return o[0].signal.aborted?qa:jd(a,l,s,_d(s,r),o)}async function RS(a,l,s,r,o,f){var b,y;const[h,d]=l,p=s[0].signal,g=!!s[3];for(let S=s[6]??0;S<r;S++){const _=d[S],w=xl(a,_);_.abortController=s[0];const E=((b=d[S-1])==null?void 0:b.context)??a.options.context??{},j={params:_.params,location:h,navigate:D=>a.navigate({...D,_fromLocation:h}),buildLocation:a.buildLocation,cause:g?"preload":_.cause,abortController:s[0],preload:g,matches:d,routeId:w.id};try{const D=_._ctx||(_._ctx=w.options.context?w.options.context({...j,deps:_.loaderDeps,context:E})||{}:void 0);_.context={...E,...D}}catch(D){return Fn(a,_),[S,Xs(a,l,w,D,s)]}if(p.aborted)return[S,qa];const R=_.paramsError??_.searchError;if(R!==void 0)return Fn(a,_),[S,Xs(a,l,w,R,s)];const z=w.options.beforeLoad;if(!z)continue;const L=_.status;S>=f&&(_.status="pending",(y=s[7])==null||y.call(s));try{nr(a,_,"beforeLoad",s[0]);const D=await bl(z({...j,search:_.search,context:_.context,...a.options.additionalContext}),p);if(p.aborted)return[S,qa];const X=jd(a,l,w,tr(D,!1,w.id),s);if(X[0]!==Sn)return Fn(a,_),[S,X];_.context={..._.context,...D}}catch(D){return Fn(a,_),[S,Xs(a,l,w,D,s)]}finally{_.status=L,nr(a,_,!1,s[0])}}o()}function wd(a,l,s){var r;if(!(!s||--s[2])){if(((r=a._flights)==null?void 0:r.get(l.id))===s){const o=a._tx;if(o&&!o[0].signal.aborted&&!o[3].includes(l)&&o[3].some(f=>f.id===l.id)&&o[3].some(f=>f.isFetching==="beforeLoad"))return;a._flights.delete(l.id)}return s[1]}}function Fn(a,l){var r;const s=l._flight;l._flight=void 0,(r=wd(a,l,s))==null||r.abort()}function zt(a,l,s,r){var f;const o=[];for(const h of l)if(!(s!=null&&s.includes(h))){const d=h._flight;if(h._flight=void 0,r&&(d==null?void 0:d[2])===1&&((f=a._flights)==null?void 0:f.get(h.id))===d&&(s!=null&&s.some(p=>p.id===h.id)))d[2]=0;else{const p=wd(a,h,d);p&&o.push(p)}}for(const h of o)h.abort()}function Ed(a){for(const l of a){const s=l._flight;s&&s[2]++}}function nr(a,l,s,r){var h;if(l.isFetching=s,r&&((h=a._tx)==null?void 0:h[0])!==r)return;const o=a.stores.byRoute.get(l.routeId),f=o==null?void 0:o.get();(f==null?void 0:f.id)===l.id&&o.set({...f,isFetching:s})}function E0(a,l,s,r,o,f,h){const d=l[0];return{params:s.params,location:d,navigate:p=>a.navigate({...p,_fromLocation:d}),cause:h?"preload":s.cause,abortController:o,preload:h,deps:s.loaderDeps,parentMatchPromise:f,context:s.context,route:r,...a.options.additionalContext}}async function vy(a,l,s,r,o,f,h){const d=h[0],p=d.signal;if(p.aborted)return qa;if(!o)return[Sn,void 0];let g=s._flight;nr(a,s,"loader",d);try{if(!g){const b=new AbortController;g=[Promise.resolve().then(()=>o(E0(a,l,s,r,b,f,!!h[3]))).then(y=>tr(y,!1,r.id),y=>tr(y,!0,r.id)).then(y=>{var S;return y[0]!==Sn&&((S=a._flights)==null?void 0:S.get(s.id))===g&&(a._flights.delete(s.id),g[2]||b.abort()),y[0]===$n&&g[2]?_d(r,y[1]):y}),b,1],(a._flights??(a._flights=new Map)).set(s.id,g)}return s._flight=g,s.abortController=g[1],jd(a,l,r,await bl(g[0],p),h)}catch(b){if(b!==p||!p.aborted)throw b;return Fn(a,s),qa}finally{nr(a,s,!1,d)}}function by(a,l,s){l[0]!==Vt&&(a.status="success",a.error=void 0,l[0]===Sn?(a.loaderData=l[1],a.invalid=!1,a.updatedAt=Date.now(),a.preload=s):a.invalid=!0)}function zS(a,l,s){const r=a._cache.get(l.id);if(r!==s||a._committed.some(f=>f.id===l.id&&f._flight===l._flight))return;const o={...l,_notFound:void 0,context:{}};o._flight&&o._flight[2]++,a._cache.set(l.id,o),r&&Fn(a,r)}function xy(a,l){return l[0]===$n||l[0]===tc?{...a,status:l[0]===$n?"error":"notFound",error:l[1],_flight:void 0}:a}function NS(a,l,s,r,o,f,h){var I,de;const d=l[1][s],p=xl(a,d),g=!!f[3],b=a._cache.get(d.id);let y,S=!1,_;try{if(d.status==="success"&&(y=p.options.shouldReload,typeof y=="function"&&(y=y(E0(a,l,d,p,f[0],o,g))),f[0].signal.aborted&&(_=qa)),!_)if(d.status!=="success")S=!0;else{const $=g||d.preload?p.options.preloadStaleTime??a.options.defaultPreloadStaleTime??3e4:p.options.staleTime??a.options.defaultStaleTime??0;S=!!(d.invalid||y||y===void 0&&Date.now()-d.updatedAt>=$&&(f[5]||d.cause==="enter"||f[2].some(ne=>ne.routeId===d.routeId&&ne.id!==d.id)))}}catch($){d.invalid=!0,Fn(a,d),_=Xs(a,l,p,$,f)}const w=p.options.loader,E=typeof w=="function",j=E?w:w==null?void 0:w.handler,R=!g||p.options.preload!==!1;let z=R&&w?(I=a._flights)==null?void 0:I.get(d.id):void 0;z===d._flight||_?z=void 0:z&&!S&&!g&&y===void 0?S=!0:S||(z=void 0);const L=!!(w&&S&&d.status==="success"&&!g&&!f[4]&&((E?void 0:w.staleReloadMode)??a.options.defaultStaleReloadMode)!=="blocking"),D=S&&R,X=D&&!L&&(d.status!=="success"||!!w),q=s>=h?f[7]:void 0,Y=p.lazyFn&&p._lazy!==!0?q:void 0;if(D&&!w&&(d.invalid=!1,d.updatedAt=Date.now()),z&&z[2]++,X){const $=d._flight;d._flight=z,(de=wd(a,d,$))==null||de.abort(),s>=h&&(d.status="pending"),q==null||q()}D||(d.isFetching=!1);const J=(_?Promise.resolve(_):X?vy(a,l,d,p,j,o,f):Promise.resolve([Sn,d.loaderData])).then($=>(X&&(by(d,$,g),$[0]===Sn&&(w&&!f[0].signal.aborted&&zS(a,d,b),s>=h&&(d.status="pending"))),$)),Q=bl(Promise.resolve().then(()=>gi(p,void 0,Y)),f[0].signal).then(()=>{},$=>l[1].some((ne,B)=>B<=s&&(ne.status==="error"||ne.status==="notFound"||ne._notFound))?void 0:[s,Xs(a,l,p,$,f)]).then($=>J.then(ne=>(X&&!$&&ne[0]===Sn&&d.status==="pending"&&!f[0].signal.aborted&&(d.status="success",q==null||q()),$)));if(r.push([s,J,Q]),!L)return J.then($=>xy(d,$));const P={...d,status:"pending",preload:!1,_flight:z};d.invalid=!1,d.isFetching="loader";const ee=vy(a,l,P,p,j,o,f).then($=>(d.isFetching=!1,by(P,$,!1),$));return(l[2]??(l[2]=[])).push([s,ee,Q,P]),ee.then($=>xy(P,$))}async function nd(a,l,s,r,o=0){const f=s==null?void 0:s[1][1];let h=f!=null&&f.routeId?l.findIndex(d=>d.routeId===f.routeId):(s==null?void 0:s[0])??l.length-1;h<0&&(h=0);for(let d=h;d>=0;d--){const p=xl(a,l[d]);try{const g=gi(p,!1);g&&await bl(g,r)}catch(g){if(g===r&&r.aborted)throw g}if(p.options.notFoundComponent)return d}return f!=null&&f.routeId?h:o}function vl(a,l){l[2]&&(zt(a,l[2].map(s=>s[3])),l[2]=void 0)}async function Sy(a,l,s,r){let o;try{await Promise.all(a.map(f=>f[1].then(async h=>{const d=f[0];if(!(r&&d>=await r)){if(h[0]>=Vt)throw[d,h];!o&&h[0]!==Sn&&(o=[d,h],await Promise.all((s??[]).map(p=>{if(!(p[0]<=d))return p[1].then(g=>{if(g[0]===Vt)throw[p[0],g]})})))}})))}catch(f){return f}return l??o}function jd(a,l,s,r,o,f){for(;r[0]===Vt;){const h=r[1],d=h.options;if(d.reloadDocument?o[3]:o[1]>=20)return r;try{return d.href&&d.reloadDocument?(a.resolveRedirect(h),r):[Vt,h,a.buildLocation({...d,_fromLocation:l[0],_includeValidateSearch:!0})]}catch(p){r=f?[$n,p]:_d(s,p),f=!0}}return r}async function j0(a,l,s,r,o,f){const h=l[1];let d=await o,p=!1;const g=h.findIndex(_=>_._notFound),b=_=>_[1][0]===tc?nd(a,h,_,r.signal):_[0];let y=g<0?h.length:g;if(((d==null?void 0:d[1][0])??0)>=Vt)y=0;else if(d){y=d[2]??(d[2]=await b(d));for(const _ of s){if(_[0]>=y)break;const w=await _[1];if(w[0]!==Sn&&w[0]<Vt&&!("loaderData"in h[_[0]])){d=[_[0],w],y=d[2]=await b(d);break}}}for(const _ of s){if(_[0]>=y)break;const w=await _[2];if(w){d=w;break}}if(((d==null?void 0:d[1][0])??0)>=Vt){const _=d[1];if(_[0]!==Vt||_[1].options.reloadDocument||_[2])return vl(a,l),_;p=!0,d=[0,[$n,new Error("Too many redirects")]]}const S=d?d[2]??await b(d):g;if(S>=0){const _=d==null?void 0:d[1],w=_==null?void 0:_[0],E=h[S],j=_==null?void 0:_[1],R=()=>{_&&(E._notFound=void 0,w===$n?E.status="error":(j.routeId=E.routeId,E.routeId===a.routeTree.id?(E.status="success",E._notFound=!0):E.status="notFound"),E.error=j,E.isFetching=!1)};R(),_||f==null||f();const z=xl(a,E);try{await bl(_?Promise.resolve().then(()=>gi(z,w===$n?"errorComponent":"notFoundComponent")):Promise.all([gi(z),gi(z,"notFoundComponent")]),r.signal)}catch(L){if(L===r.signal&&r.signal.aborted)return vl(a,l),qa}_?p&&(r.abort(),await Promise.all([...s.map(L=>L[1]),...s.map(L=>L[2]),...(l[2]??[]).map(L=>L[1])]),vl(a,l),zt(a,h),R()):E.status="success"}return l}async function T0(a,l,s,r=0,o=l[1].length){var h,d;const f=l[1];for(let p=r;p<o;p++){const g=f[p],b=xl(a,g).options;if(b.head||b.scripts)try{const y={ssr:a.options.ssr,matches:f,match:g,params:g.params,loaderData:g.loaderData},[S,_]=await bl(Promise.all([(h=b.head)==null?void 0:h.call(b,y),(d=b.scripts)==null?void 0:d.call(b,y)]),s);g.meta=S==null?void 0:S.meta,g.links=S==null?void 0:S.links,g.headScripts=S==null?void 0:S.scripts,g.styles=S==null?void 0:S.styles,g.scripts=_}catch(y){if(y===s&&s.aborted)break;console.error(y)}if(g.status!=="success"||g._notFound)break}return l}async function M0(a,l,s,r){var d;const o=[l,s],f=r[0].signal;let h;try{const p=a.stores.matches.get();let g=s.findIndex(z=>z._notFound);if(a.options.notFoundMode!=="root"&&g>=0){const z=await nd(a,s,void 0,f,g);s[g]._notFound=void 0,s[z]._notFound=!0,g=z}let b=g<0?s.length:g+1,y=0;for(;y<b&&y!==g;){const z=s[y],L=r[2][y],D=p[y];if((L==null?void 0:L.id)!==z.id||L.status!=="success"||L._notFound||z.preload||(D==null?void 0:D.id)!==z.id||D.status!=="success"||D._notFound)break;y++}const S=[],_=r[6]??0;let w=_?Promise.resolve(s[_-1]):void 0;const E=()=>{for(let z=_;z<b&&!f.aborted;z++)w=NS(a,o,z,S,w,r,y)},j=await RS(a,o,r,b,E,y);if(j){if(r[4]=!0,b=j[0],j[1][0]===tc){const z=await nd(a,s,j,f);j[2]=z,b=Math.min(b,z+1)}else j[1][0]>=Vt&&(b=0);E()}if(!f.aborted&&!r[3]){const z=[];for(const[L,D]of a._flights??[])D[2]||(a._flights.delete(L),z.push(D[1]));for(const L of z)L.abort()}const R=j0(a,o,S,r[0],Sy(S,j,o[2]),r[7]);(d=o[2])!=null&&d.length&&(o[3]=Sy(o[2],void 0,void 0,R.then(z=>er(z)?0:Sd(s).length,()=>0))),h=await R}catch(p){if(vl(a,o),p===f&&f.aborted)return qa;throw p}return er(h)?h:T0(a,h,f,r[6]===s.length?r[6]:0)}function ad(a,l){var f,h;if(a._tx!==l)return;const s=l[3],r=a.stores.matches.get();let o=a._pending;for(let d=0;d<s.length;d++){const p=s[d],g=p.status==="success"&&!p._notFound,b=((f=r[d])==null?void 0:f.id)===p.id&&((h=r[d])==null?void 0:h.status)==="pending";if(g&&!b)continue;const y=xl(a,p),S=g||p.invalid?0:y.options.pendingMs??a.options.defaultPendingMs,_=y.options.pendingComponent??a.options.defaultPendingComponent;if(!_||typeof S!="number"||S===1/0){o&&(o[0]=l,o[2]=0,o[4]=!0);return}const w=y.options.pendingMinMs??a.options.defaultPendingMinMs??0;let E=!1;if((o==null?void 0:o[1])===p.id?(E=o[0]!==l,o[0]=l):(clearTimeout(o==null?void 0:o[3]),a._pending=o=void 0),o||(a._pending=o=[l,p.id,b?Date.now()+w:l[4]+S,void 0,b||void 0,_]),o[4]&&!E&&o[5]===_)return;if(o[5]=_,!o[4]){clearTimeout(o[3]);const z=o[2]-Date.now();if(z>0){o[3]=setTimeout(()=>ad(a,l),z);return}o[2]=0}const j=s.map(z=>({...z,_flight:void 0}));j[d].status="pending";const R=o[4]=a.startTransition(()=>a.stores.setMatches(j),j).then(z=>(z&&a._pending===o&&o[4]===R&&!o[2]&&(o[2]=Date.now()+w),z));return}}function Hs(a,l){var r;const s=a._pending;(a._tx===l||!((r=a._tx)!=null&&r[3].some(o=>o.id===(s==null?void 0:s[1]))))&&(clearTimeout(s==null?void 0:s[3]),a._pending=void 0)}async function _y(a,l){const s=a._pending;if(!s)return;clearTimeout(s[3]);const r=s[2]-Date.now();if(!s[4]||r<=0||!Sd(l[3]).some(f=>f.id===s[1]))return;let o;try{await bl(new Promise(f=>{o=setTimeout(f,r)}),l[0].signal)}catch{}clearTimeout(o)}function A0(a,l){a._committed=l,a.stores.setMatches(l)}function DS(a,l,s,r){const o=a._committed,f=a._cache;for(const p of s)p.preload=!1,r&&(p._assetEnd=void 0);const h=Sd(s).length,d=new Map;{const p=Date.now();for(const g of[...o,...f.values()]){if(g.status!=="success"||s.some((y,S)=>y.id===g.id&&(S<h||y.status==="success")))continue;const b=xl(a,g);!b.options.loader||p-g.updatedAt>=(g.preload?b.options.preloadGcTime??a.options.defaultPreloadGcTime??3e5:b.options.gcTime??a.options.defaultGcTime??3e5)||d.set(g.id,f.get(g.id)===g?g:{...g,_flight:void 0,isFetching:!1,context:{}})}}l[3]=[],a._cache=d,A0(a,s),zt(a,[...f.values(),...o],[...s,...d.values()]),ES(a,o,s,l)}async function Lu(a,l){let s=a._tx;for(;s&&s!==l;){if(await s[5],a._tx===s)return;s=a._tx}}function C0(a,l,s){const r=s[1].options,o=s[2];if(!o)return a.navigate({...r,replace:!0,ignoreBlocker:!0});if(r.reloadDocument)return a.navigate({href:o.publicHref,reloadDocument:!0,replace:!0,ignoreBlocker:!0});o._redirects=l[1]+1,a._pendingLocation=o;const f=a.commitLocation({...o,viewTransition:r.viewTransition,replace:!0,resetScroll:r.resetScroll,hashScrollIntoView:r.hashScrollIntoView,ignoreBlocker:!0});return queueMicrotask(()=>{a._pendingLocation===o&&(a._pendingLocation=void 0)}),f}async function OS(a,l,s,r,o){const f=s.map(p=>({...p}));Ed(f);for(const p of r)Fn(a,f[p[0]]),f[p[0]]=p[3];const h=[l[2],f];let d;try{d=await j0(a,h,r,l[0],o)}catch(p){throw zt(a,f),p}if(er(d)){zt(a,f),d[0]===Vt&&a._tx===l&&a._committed===s&&await C0(a,l,d);return}if(await T0(a,d,l[0].signal),a._tx!==l||a._committed!==s){zt(a,f);return}for(const p of f){const g=a._cache.get(p.id);g!=null&&g._flight&&g._flight===p._flight&&(a._cache.delete(p.id),Fn(a,g))}A0(a,f),zt(a,s,f)}async function kS(a,l,s,r,o,f){const h=await M0(a,l[2],l[3],[l[0],l[1],a._committed,void 0,o,s,f,r]);if(er(h)){const y=h[0]===Vt&&a._tx===l;if((!y||h[1].options.reloadDocument)&&Hs(a,l),zt(a,l[3]),l[3]=[],!y)return;if(a._tx!==l){Hs(a,l);return}await C0(a,l,h);return}const d=h[1];if(a._tx===l&&await _y(a,l),a._tx!==l){Hs(a,l),zt(a,d),vl(a,h);return}const p=l[2],g=ec(p,a.stores.resolvedLocation.get()),b=h[2];await a.startViewTransition(async()=>{var _;if(a._tx===l&&await _y(a,l),a._tx!==l){Hs(a,l),zt(a,d),vl(a,h);return}const y=()=>{Hs(a,l),DS(a,l,d,f),a._tx===l&&(a.emit({type:"onLoad",...g}),a._tx===l&&a.emit({type:"onBeforeRouteMount",...g}))},S=await a.startTransition(y,d);if(a._tx!==l){vl(a,h);return}b!=null&&b.length&&OS(a,l,d,b,h[3]).catch(console.error),a.batch(()=>{a.stores.resolvedLocation.set(p),a.stores.status.set("idle"),a._tx===l&&a.emit({type:"onResolved",...g}),S&&a._tx===l&&a.emit({type:"onRendered",...g})}),a._tx===l&&((_=a._commitPromise)==null||_.resolve(),a._commitPromise=void 0)})}async function US(a,l){var D;const s=a._tx,r=a.stores.resolvedLocation.get(),o=r??a.stores.location.get(),f=a.latestLocation,h=a._pendingLocation,d=(h==null?void 0:h.href)===f.href?h._redirects??0:0,p=a._handoff,g=p==null?void 0:p[0](),b=new AbortController,y=a._preflight;if(a._preflight=b,g||p==null||p[1](),y==null||y.abort(),!b.signal.aborted){const X=ec(f,r);a.emit({type:"onBeforeNavigate",...X}),b.signal.aborted||a.emit({type:"onBeforeLoad",...X})}if(b.signal.aborted){await Lu(a,s);return}const S=o.href===f.href;let _=b;const w=a.matchRoutes(f,{_controller:b});Ed(w);const E=g?p[1](w):void 0;if(E?_=g:g==null||g.abort(),b.signal.aborted){zt(a,w),await Lu(a,s);return}a._preflight=void 0;let j;const R=()=>kS(a,L,S,()=>ad(a,L),l==null?void 0:l.sync,E),z=l!=null&&l.sync?new Promise(X=>j=X):Promise.resolve().then(R).then(),L=[_,d,f,w,Date.now(),z];if(a._tx=L,s){for(const X of a.stores.matches.get()){if(a._tx!==L)break;X.isFetching&&nr(a,X,!1)}s[0].abort(),zt(a,s[3],L[3],!0)}if(a._tx!==L){zt(a,L[3]),L[3]=[],j==null||j(),await Lu(a,L);return}a.batch(()=>{a.stores.status.set("pending"),a.stores.location.set(f)}),(E||!a._committed.length&&((D=w[0])==null?void 0:D.status)!=="success"&&!w.some(X=>X._notFound))&&ad(a,L),j==null||j(R()),await z,await Lu(a,L)}async function LS(a,l){let s=a.buildLocation(l);for(let r=0;;r++){const o=a._committed,f=new AbortController;let h,d,p;try{try{h=a.matchRoutes(s,{_controller:f}),Ed(h),d=(a._preloads??(a._preloads=new Map)).set(f,h),p=await M0(a,s,h,[f,r,o,!0])}finally{d&&(d=d.delete(f),zt(a,h)),f.abort()}if(!er(p))return p[1];if(!d||p.length<3)return;s=p[2]}catch(g){Di(g)||console.error(g);return}}}const BS="Error preloading route! ☝️";var R0=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(a){if(this.init=l=>{var p,g;this.originalIndex=l.originalIndex;const s=this.options,r=!(s!=null&&s.path)&&!(s!=null&&s.id);this.parentRoute=(g=(p=this.options).getParentRoute)==null?void 0:g.call(p),r?this._path=mi:this.parentRoute||vd();let o=r?mi:s==null?void 0:s.path;o&&o!=="/"&&(o=b0(o));const f=(s==null?void 0:s.id)||o;let h=r?mi:Hu([this.parentRoute.id==="__root__"?"":this.parentRoute.id,f]);o==="__root__"&&(o="/"),h!=="__root__"&&(h=Hu(["/",h]));const d=h==="__root__"?"/":Hu([this.parentRoute.fullPath,o]);this._path=o,this._id=h,this._fullPath=d,this._to=Jn(d)},this.addChildren=l=>this._addFileChildren(l),this._addFileChildren=l=>(Array.isArray(l)&&(this.children=l),typeof l=="object"&&l!==null&&(this.children=Object.values(l)),this),this._addFileTypes=()=>this,this.updateLoader=l=>(Object.assign(this.options,l),this),this.update=l=>(Object.assign(this.options,l),this),this.lazy=l=>(this.lazyFn=l,this),this.redirect=l=>S0({from:this.fullPath,...l}),this.options=a||{},this.isRoot=!(a!=null&&a.getParentRoute),a!=null&&a.id&&(a!=null&&a.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}},HS=class extends R0{constructor(a){super(a)}},Td=class extends F.Component{constructor(...a){super(...a),this.state={error:null},this.reset=()=>{this.setState({error:null})}}static getDerivedStateFromProps(a,l){const s=a.getResetKey();return l.error&&l.resetKey!==s?{resetKey:s,error:null}:{resetKey:s}}static getDerivedStateFromError(a){return{error:a}}componentDidCatch(a,l){var s,r;(r=(s=this.props).onCatch)==null||r.call(s,a,l)}render(){const a=this.state.error;return a?F.createElement(this.props.errorComponent??qS,{error:a,reset:this.reset}):this.props.children}};function qS({error:a}){const[l,s]=F.useState(!1);return v.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[v.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[v.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),v.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>s(r=>!r),children:l?"Hide Error":"Show Error"})]}),v.jsx("div",{style:{height:".25rem"}}),l?v.jsx("div",{children:v.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:a.message?v.jsx("code",{children:a.message}):null})}):null]})}function GS({children:a,fallback:l=null}){return v.jsx(cn.Fragment,{children:z0()?a:l})}function z0(){return cn.useSyncExternalStore(QS,()=>!0,()=>!1)}function QS(){return()=>{}}var N0=F.createContext(null);function on(a){return F.useContext(N0)}var nc=F.createContext(void 0),VS=F.createContext(void 0),Je=(a=>(a[a.None=0]="None",a[a.Mutable=1]="Mutable",a[a.Watching=2]="Watching",a[a.RecursedCheck=4]="RecursedCheck",a[a.Recursed=8]="Recursed",a[a.Dirty=16]="Dirty",a[a.Pending=32]="Pending",a))(Je||{});function YS({update:a,notify:l,unwatched:s}){return{link:r,unlink:o,propagate:f,checkDirty:h,shallowPropagate:d};function r(g,b,y){const S=b.depsTail;if(S!==void 0&&S.dep===g)return;const _=S!==void 0?S.nextDep:b.deps;if(_!==void 0&&_.dep===g){_.version=y,b.depsTail=_;return}const w=g.subsTail;if(w!==void 0&&w.version===y&&w.sub===b)return;const E=b.depsTail=g.subsTail={version:y,dep:g,sub:b,prevDep:S,nextDep:_,prevSub:w,nextSub:void 0};_!==void 0&&(_.prevDep=E),S!==void 0?S.nextDep=E:b.deps=E,w!==void 0?w.nextSub=E:g.subs=E}function o(g,b=g.sub){const y=g.dep,S=g.prevDep,_=g.nextDep,w=g.nextSub,E=g.prevSub;return _!==void 0?_.prevDep=S:b.depsTail=S,S!==void 0?S.nextDep=_:b.deps=_,w!==void 0?w.prevSub=E:y.subsTail=E,E!==void 0?E.nextSub=w:(y.subs=w)===void 0&&s(y),_}function f(g){let b=g.nextSub,y;e:do{const S=g.sub;let _=S.flags;if(_&60?_&12?_&4?!(_&48)&&p(g,S)?(S.flags=_|40,_&=1):_=0:S.flags=_&-9|32:_=0:S.flags=_|32,_&2&&l(S),_&1){const w=S.subs;if(w!==void 0){const E=(g=w).nextSub;E!==void 0&&(y={value:b,prev:y},b=E);continue}}if((g=b)!==void 0){b=g.nextSub;continue}for(;y!==void 0;)if(g=y.value,y=y.prev,g!==void 0){b=g.nextSub;continue e}break}while(!0)}function h(g,b){let y,S=0,_=!1;e:do{const w=g.dep,E=w.flags;if(b.flags&16)_=!0;else if((E&17)===17){if(a(w)){const j=w.subs;j.nextSub!==void 0&&d(j),_=!0}}else if((E&33)===33){(g.nextSub!==void 0||g.prevSub!==void 0)&&(y={value:g,prev:y}),g=w.deps,b=w,++S;continue}if(!_){const j=g.nextDep;if(j!==void 0){g=j;continue}}for(;S--;){const j=b.subs,R=j.nextSub!==void 0;if(R?(g=y.value,y=y.prev):g=j,_){if(a(b)){R&&d(j),b=g.sub;continue}_=!1}else b.flags&=-33;b=g.sub;const z=g.nextDep;if(z!==void 0){g=z;continue e}}return _}while(!0)}function d(g){do{const b=g.sub,y=b.flags;(y&48)===32&&(b.flags=y|16,(y&6)===2&&l(b))}while((g=g.nextSub)!==void 0)}function p(g,b){let y=b.depsTail;for(;y!==void 0;){if(y===g)return!0;y=y.prevDep}return!1}}function KS(a,l,s){var f,h,d;const r=typeof a=="object",o=r?a:void 0;return{next:(f=r?a.next:a)==null?void 0:f.bind(o),error:(h=r?a.error:l)==null?void 0:h.bind(o),complete:(d=r?a.complete:s)==null?void 0:d.bind(o)}}const ld=[];let Vu=0;const{link:wy,unlink:XS,propagate:ZS,checkDirty:D0,shallowPropagate:Ey}=YS({update(a){return a._update()},notify(a){ld[id++]=a,a.flags&=~Je.Watching},unwatched(a){a.depsTail!==void 0&&(a.depsTail=void 0,a.flags=Je.Mutable|Je.Dirty,Wu(a))}});let Bu=0,id=0,pn,sd=0;function JS(a){try{++sd,a()}finally{--sd||O0()}}function Wu(a){const l=a.depsTail;let s=l!==void 0?l.nextDep:a.deps;for(;s!==void 0;)s=XS(s,a)}function O0(){if(!(sd>0)){for(;Bu<id;){const a=ld[Bu];ld[Bu++]=void 0,a.notify()}Bu=0,id=0}}function jy(a,l){const s=typeof a=="function",r=a,o={_snapshot:s?void 0:a,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:s?Je.None:Je.Mutable,get(){return pn!==void 0&&wy(o,pn,Vu),o._snapshot},subscribe(f){const h=KS(f),d={current:!1},p=FS(()=>{var g;o.get(),d.current?(g=h.next)==null||g.call(h,o._snapshot):d.current=!0});return{unsubscribe:()=>{p.stop()}}},_update(f){const h=pn,d=(l==null?void 0:l.compare)??Object.is;if(s)pn=o,++Vu,o.depsTail=void 0;else if(f===void 0)return!1;s&&(o.flags=Je.Mutable|Je.RecursedCheck);try{const p=o._snapshot,g=typeof f=="function"?f(p):f===void 0&&s?r(p):f;return p===void 0||!d(p,g)?(o._snapshot=g,!0):!1}finally{pn=h,s&&(o.flags&=~Je.RecursedCheck),Wu(o)}}};return s?(o.flags=Je.Mutable|Je.Dirty,o.get=function(){const f=o.flags;if(f&Je.Dirty||f&Je.Pending&&D0(o.deps,o)){if(o._update()){const h=o.subs;h!==void 0&&Ey(h)}}else f&Je.Pending&&(o.flags=f&~Je.Pending);return pn!==void 0&&wy(o,pn,Vu),o._snapshot}):o.set=function(f){if(o._update(f)){const h=o.subs;h!==void 0&&(ZS(h),Ey(h),O0())}},o}function FS(a){const l=()=>{const r=pn;pn=s,++Vu,s.depsTail=void 0,s.flags=Je.Watching|Je.RecursedCheck;try{return a()}finally{pn=r,s.flags&=~Je.RecursedCheck,Wu(s)}},s={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Je.Watching|Je.RecursedCheck,notify(){const r=this.flags;r&Je.Dirty||r&Je.Pending&&D0(this.deps,this)?l():this.flags=Je.Watching},stop(){this.flags=Je.None,this.depsTail=void 0,Wu(this)}};return l(),s}var Af={exports:{}},Cf={},Rf={exports:{}},zf={};/**
|
||
* @license React
|
||
* use-sync-external-store-shim.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 Ty;function $S(){if(Ty)return zf;Ty=1;var a=cr();function l(y,S){return y===S&&(y!==0||1/y===1/S)||y!==y&&S!==S}var s=typeof Object.is=="function"?Object.is:l,r=a.useState,o=a.useEffect,f=a.useLayoutEffect,h=a.useDebugValue;function d(y,S){var _=S(),w=r({inst:{value:_,getSnapshot:S}}),E=w[0].inst,j=w[1];return f(function(){E.value=_,E.getSnapshot=S,p(E)&&j({inst:E})},[y,_,S]),o(function(){return p(E)&&j({inst:E}),y(function(){p(E)&&j({inst:E})})},[y]),h(_),_}function p(y){var S=y.getSnapshot;y=y.value;try{var _=S();return!s(y,_)}catch{return!0}}function g(y,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:d;return zf.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:b,zf}var My;function WS(){return My||(My=1,Rf.exports=$S()),Rf.exports}/**
|
||
* @license React
|
||
* use-sync-external-store-shim/with-selector.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 Ay;function PS(){if(Ay)return Cf;Ay=1;var a=cr(),l=WS();function s(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var r=typeof Object.is=="function"?Object.is:s,o=l.useSyncExternalStore,f=a.useRef,h=a.useEffect,d=a.useMemo,p=a.useDebugValue;return Cf.useSyncExternalStoreWithSelector=function(g,b,y,S,_){var w=f(null);if(w.current===null){var E={hasValue:!1,value:null};w.current=E}else E=w.current;w=d(function(){function R(q){if(!z){if(z=!0,L=q,q=S(q),_!==void 0&&E.hasValue){var Y=E.value;if(_(Y,q))return D=Y}return D=q}if(Y=D,r(L,q))return Y;var J=S(q);return _!==void 0&&_(Y,J)?(L=q,Y):(L=q,D=J)}var z=!1,L,D,X=y===void 0?null:y;return[function(){return R(b())},X===null?void 0:function(){return R(X())}]},[b,y,S,_]);var j=o(g,w[0],w[1]);return h(function(){E.hasValue=!0,E.value=j},[j]),p(j),j},Cf}var Cy;function IS(){return Cy||(Cy=1,Af.exports=PS()),Af.exports}var e2=IS();function t2(a,l){return a===l}function Wn(a,l,s=t2){const r=F.useCallback(h=>{if(!a)return()=>{};const{unsubscribe:d}=a.subscribe(h);return d},[a]),o=F.useCallback(()=>a==null?void 0:a.get(),[a]);return e2.useSyncExternalStoreWithSelector(r,o,o,l,s)}var Ry={};function k0(a,l){const s=F.useRef();return r=>{const o=a!=null&&a.select?a.select(r):r;return(a==null?void 0:a.structuralSharing)??l.options.defaultStructuralSharing?s.current=ul(s.current,o):o}}function Sl(a){const l=on(),s=F.useContext(a.from?VS:nc),r=a.from??s,o=l.stores.getMatchStore(r),f=k0(a,l),h=Wn(o,d=>d?f(d):Ry);if(h!==Ry)return h;(a.shouldThrow??!0)&&vd()}function U0(a){return Sl({from:a.from,strict:a.strict,structuralSharing:a.structuralSharing,select:l=>a.select?a.select(l.loaderData):l.loaderData})}function L0(a){const{select:l,...s}=a;return Sl({...s,select:r=>l?l(r.loaderDeps):r.loaderDeps})}function B0(a){return Sl({from:a.from,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,strict:a.strict,select:l=>{const s=a.strict===!1?l.params:l._strictParams;return a.select?a.select(s):s}})}function H0(a){return Sl({from:a.from,strict:a.strict,shouldThrow:a.shouldThrow,structuralSharing:a.structuralSharing,select:l=>a.select?a.select(l.search):l.search})}function fr(a){const l=on();return F.useCallback(s=>l.navigate({...s,from:s.from??(a==null?void 0:a.from)}),[a==null?void 0:a.from,l])}function q0(a){return Sl({...a,select:l=>a.select?a.select(l.context):l.context})}function Nf(a){const l=F.useRef(a);return Ba(l.current,a,{ignoreUndefined:!1})||(l.current=a),l.current}function n2(a,l){return a[0]===l[0]&&a[1]===l[1]&&a[2]===l[2]}function a2(a,l,s){if(a!=null&&a.external)return Xu(a.href,s)?void 0:a.href;if(!o2(l)&&!(typeof l!="string"||l.indexOf(":")===-1))try{return new URL(l),Xu(l,s)?void 0:l}catch{}}function l2(a,l,s,r,o,f){if(f)return!1;if(s!=null&&s.exact){if(!tS(a.pathname,l.pathname,r))return!1}else{const h=Ju(a.pathname,r),d=Ju(l.pathname,r);if(!(h.startsWith(d)&&(h.length===d.length||h[d.length]==="/")))return!1}return((s==null?void 0:s.includeSearch)??!0)&&!Ba(a.search,l.search,{partial:!(s!=null&&s.exact),ignoreUndefined:!(s!=null&&s.explicitUndefined)})?!1:s!=null&&s.includeHash?o&&a.hash===l.hash:!0}function i2(a,l){const s=on(),r=Lx(l),{activeProps:o,inactiveProps:f,activeOptions:h,to:d,preload:p,preloadDelay:g,preloadIntentProximity:b,hashScrollIntoView:y,replace:S,startTransition:_,resetScroll:w,viewTransition:E,children:j,target:R,disabled:z,style:L,className:D,onClick:X,onBlur:q,onFocus:Y,onMouseEnter:J,onMouseLeave:Q,onTouchStart:P,ignoreBlocker:ee,params:I,search:de,hash:$,state:ne,mask:B,reloadDocument:W,unsafeRelative:re,from:ce,_fromLocation:Se,...M}=a,Z=z0(),te=Nf(a.search),ie=Nf(a.params),he=Nf(h),ge=F.useMemo(()=>a,[s,a.from,a._fromLocation,a.hash,a.to,te,ie,a.state,a.mask,a.unsafeRelative]),Ae=F.useCallback(it=>{const Fe=s.buildLocation({_fromLocation:it,...ge}),jn=c2(Fe.maskedLocation?Fe.maskedLocation.publicHref:Fe.publicHref,Fe.maskedLocation?Fe.maskedLocation.external:Fe.external,s.history,z),Vi=a2(jn,d,s.protocolAllowlist);return[jn==null?void 0:jn.href,Vi,l2(it,Fe,he,s.basepath,Z,Vi!==void 0)]},[he,z,Z,ge,s,d]),[ot,Ve,_n]=Wn(s.stores.location,Ae,n2),wn=_n?Ni(o,{})??s2:Df,Pn=_n?Df:Ni(f,{})??Df,Hi=[D,wn.className,Pn.className].filter(Boolean).join(" "),fn=(L||wn.style||Pn.style)&&{...L,...wn.style,...Pn.style},El=F.useRef(!1),an=a.reloadDocument||Ve||z?!1:p??s.options.defaultPreload,qi=g??s.options.defaultPreloadDelay??0,En=F.useCallback(()=>{s.preloadRoute(ge).catch(it=>{console.warn(it),console.warn(BS)})},[s,ge]),Ga=F.useCallback(it=>{if(!it){Of(r);return}if(!(it.isIntersecting??an==="intent")){it.isIntersecting===!1&&Of(r);return}if(!qi){En();return}Zs.has(r)||Zs.set(r,setTimeout(()=>{Zs.delete(r),En()},qi))},[En,r,an,qi]);Ux(r,Ga,an!=="viewport"),F.useEffect(()=>{El.current||an==="render"&&(En(),El.current=!0)},[En,an]);const Gi=it=>{const Fe=it.currentTarget.getAttribute("target"),jn=R!==void 0?R:Fe;!z&&!(it.metaKey||it.altKey||it.ctrlKey||it.shiftKey)&&!it.defaultPrevented&&(!jn||jn==="_self")&&it.button===0&&(it.preventDefault(),s.navigate({...ge,replace:S,resetScroll:w,hashScrollIntoView:y,startTransition:_,viewTransition:E,ignoreBlocker:ee}))};if(Ve)return{...M,ref:r,href:Ve,...j&&{children:j},...R&&{target:R},...z&&{disabled:z},...L&&{style:L},...D&&{className:D},...X&&{onClick:X},...q&&{onBlur:q},...Y&&{onFocus:Y},...J&&{onMouseEnter:J},...Q&&{onMouseLeave:Q},...P&&{onTouchStart:P}};const Qi=()=>{an==="intent"&&En()},hr=()=>{an==="intent"&&Of(r)};return{...M,...wn,...Pn,href:ot,ref:r,onClick:ci([X,Gi]),onBlur:ci([q,hr]),onFocus:ci([Y,Ga]),onMouseEnter:ci([J,Ga]),onMouseLeave:ci([Q,hr]),onTouchStart:ci([P,Qi]),disabled:!!z,target:R,...fn&&{style:fn},...Hi&&{className:Hi},...z&&r2,..._n&&u2}}var Df={},s2={className:"active"},r2={role:"link","aria-disabled":!0},u2={"data-status":"active","aria-current":"page"},Zs=new WeakMap,Of=a=>{clearTimeout(Zs.get(a)),Zs.delete(a)},ci=a=>l=>{for(const s of a)if(s){if(l.defaultPrevented)return;s(l)}};function c2(a,l,s,r){if(!r)return l?{href:a,external:!0}:{href:s.createHref(a)||"/",external:!1}}function o2(a){if(typeof a!="string")return!1;const l=a.charCodeAt(0);return l===47?a.charCodeAt(1)!==47:l===46}var ac=F.forwardRef((a,l)=>{const{_asChild:s,...r}=a,{type:o,...f}=i2(r,l),h=typeof r.children=="function"?r.children({isActive:f["data-status"]==="active"}):r.children;if(!s){const{disabled:d,...p}=f;return F.createElement("a",p,h)}return F.createElement(s,f,h)}),f2=class extends R0{constructor(a){super(a),this.useMatch=l=>Sl({select:l==null?void 0:l.select,from:this.id,structuralSharing:l==null?void 0:l.structuralSharing}),this.useRouteContext=l=>q0({...l,from:this.id}),this.useSearch=l=>H0({select:l==null?void 0:l.select,structuralSharing:l==null?void 0:l.structuralSharing,from:this.id}),this.useParams=l=>B0({select:l==null?void 0:l.select,structuralSharing:l==null?void 0:l.structuralSharing,from:this.id}),this.useLoaderDeps=l=>L0({...l,from:this.id}),this.useLoaderData=l=>U0({...l,from:this.id}),this.useNavigate=()=>fr({from:this.fullPath}),this.Link=cn.forwardRef((l,s)=>v.jsx(ac,{ref:s,from:this.fullPath,...l}))}};function ki(a){return new f2(a)}var d2=class extends HS{constructor(a){super(a),this.useMatch=l=>Sl({select:l==null?void 0:l.select,from:this.id,structuralSharing:l==null?void 0:l.structuralSharing}),this.useRouteContext=l=>q0({...l,from:this.id}),this.useSearch=l=>H0({select:l==null?void 0:l.select,structuralSharing:l==null?void 0:l.structuralSharing,from:this.id}),this.useParams=l=>B0({select:l==null?void 0:l.select,structuralSharing:l==null?void 0:l.structuralSharing,from:this.id}),this.useLoaderDeps=l=>L0({...l,from:this.id}),this.useLoaderData=l=>U0({...l,from:this.id}),this.useNavigate=()=>fr({from:this.fullPath}),this.Link=cn.forwardRef((l,s)=>v.jsx(ac,{ref:s,from:this.fullPath,...l}))}};function h2(a){return new d2(a)}function m2(a){const l=on(),s=`not-found-${Wn(l.stores.location,r=>r.pathname)}-${Wn(l.stores.status,r=>r)}`;return v.jsx(Td,{getResetKey:()=>s,onCatch:(r,o)=>{var f;if(Di(r))(f=a.onCatch)==null||f.call(a,r,o);else throw r},errorComponent:({error:r})=>{var o;if(Di(r))return(o=a.fallback)==null?void 0:o.call(a,r);throw r},children:a.children})}function g2(){return v.jsx("p",{children:"Not Found"})}function fi(a){return v.jsx(v.Fragment,{children:a.children})}function G0(a,l,s){return l.options.notFoundComponent?v.jsx(l.options.notFoundComponent,{...s}):a.options.defaultNotFoundComponent?v.jsx(a.options.defaultNotFoundComponent,{...s}):v.jsx(g2,{})}function lc(a,l){const s=(l==null?void 0:l.options.pendingComponent)??a.options.defaultPendingComponent;return s?v.jsx(s,{}):null}var p2=(a,l)=>a[0]===l[0]&&a[1]===l[1],Q0=(a,l,s)=>!l.isRoot||l.options.shellComponent||l.options.wrapInSuspense||s===!1||s==="data-only"||!a.ssr,V0=F.memo(function({routeId:l}){const s=on();return v.jsx(y2,{router:s,match:Wn(s.stores.getMatchStore(l),r=>r)})});function y2({router:a,match:l}){var y,S;const s=a.routesById[l.routeId],r=lc(a,s),o=s.options.errorComponent??a.options.defaultErrorComponent,f=s.options.onCatch??a.options.defaultOnCatch,h=s.isRoot?s.options.notFoundComponent??((y=a.options.notFoundRoute)==null?void 0:y.options.component):s.options.notFoundComponent,d=l.ssr===!1||l.ssr==="data-only",p=Q0(a,s,l.ssr)&&(s.options.wrapInSuspense??r??(((S=s.options.errorComponent)==null?void 0:S.preload)||d))?F.Suspense:fi,g=o?Td:fi,b=h?m2:fi;return v.jsxs(s.isRoot?s.options.shellComponent??fi:fi,{children:[v.jsx(nc.Provider,{value:l.routeId,children:v.jsx(p,{fallback:r,children:v.jsx(g,{getResetKey:()=>l,errorComponent:o,onCatch:(_,w)=>{if(Di(_))throw _.routeId??(_.routeId=l.routeId),_;f==null||f(_,w)},children:v.jsx(b,{fallback:_=>{if(_.routeId??(_.routeId=l.routeId),_.routeId!==l.routeId)throw _;return F.createElement(h,_)},children:d?v.jsx(GS,{fallback:r,children:v.jsx(zy,{match:l})}):v.jsx(zy,{match:l})})})})}),null]})}var zy=F.memo(function({match:l}){const s=on(),r=l.routeId,o=s.routesById[r],f=F.useMemo(()=>{var p;const d=(p=o.options.remountDeps??s.options.defaultRemountDeps)==null?void 0:p({routeId:r,loaderDeps:l.loaderDeps,params:l._strictParams,search:l._strictSearch});return d?JSON.stringify(d):void 0},[r,l.loaderDeps,l._strictParams,l._strictSearch,o.options.remountDeps,s.options.defaultRemountDeps]),h=F.useMemo(()=>{const d=o.options.component??s.options.defaultComponent;return d?v.jsx(d,{},f):v.jsx(Y0,{})},[f,o.options.component,s.options.defaultComponent]);if(l.status==="pending"){if(s.ssr&&!Q0(s,o,l.ssr))return h;if(s._tx)throw s._tx[5];return lc(s,o)}if(l.status==="notFound")return G0(s,o,l.error);if(l.status==="error")throw l.error;return h}),Y0=F.memo(function(){const l=on(),s=F.useContext(nc);let r,o,f;{const d=l.stores.getMatchStore(s);[r,o]=Wn(d,p=>[!!p._notFound,p.error],p2),f=Wn(l.stores.ids,p=>p[p.indexOf(s)+1])}if(r)return G0(l,l.routesById[s],o);if(!f)return null;const h=v.jsx(V0,{routeId:f});return s===mi?v.jsx(F.Suspense,{fallback:lc(l),children:h}):h});function K0(a,l){const s=a[1];a.length=0,s==null||s(l)}function v2({t:a}){const l=on(),s=l._rendered??(l._rendered=[]);return l.startTransition=(r,o)=>new Promise(f=>{K0(s,!1),s.push(o,f),a(l),F.startTransition(r)}),f0(()=>{const r=l.history.subscribe(l.load);l.updateLatestLocation();const o=l.latestLocation,f=l.buildLocation({to:o.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});if(Jn(o.publicHref)!==Jn(f.publicHref))return l.commitLocation({...f,replace:!0,ignoreBlocker:!0}),r;const h=l.stores.resolvedLocation.get();return(h==null?void 0:h.href)===o.href&&h.state.__TSR_key===o.state.__TSR_key?s.push(l.stores.matches.get(),d=>{d&&l.emit({type:"onRendered",...ec(h,h)})}):l._tx||l.load({sync:!0}).catch(console.error),r},[l,l.history]),null}function b2(){const a=on(),l=a.routesById[mi],s=lc(a,l),r=a.ssr?fi:F.Suspense,o=v.jsxs(v.Fragment,{children:[v.jsx(v2,{t:F.useState()[1]}),v.jsx(r,{fallback:s,children:v.jsx(x2,{})})]});return a.options.InnerWrap?v.jsx(a.options.InnerWrap,{children:o}):o}function x2(){const a=on(),l=a._rendered,s=Wn(a.stores.matches,h=>l[0]??h),r=s[0],o=r==null?void 0:r.routeId;f0(()=>{l[0]===s&&K0(l,!0)},[l,s]);const f=o?v.jsx(V0,{routeId:o}):null;return v.jsx(nc.Provider,{value:o,children:a.options.disableGlobalCatchBoundary?f:v.jsx(Td,{getResetKey:()=>r,onCatch:void 0,children:f})})}var S2=a=>({createMutableStore:jy,createReadonlyStore:jy,batch:JS}),_2=a=>new w2(a),w2=class extends jS{constructor(a){super(a,S2)}};function E2({router:a,children:l,...s}){h0(s)&&a.update({...a.options,...s,context:{...a.options.context,...s.context}});const r=v.jsx(N0.Provider,{value:a,children:l});return a.options.Wrap?v.jsx(a.options.Wrap,{children:r}):r}function j2({router:a,...l}){return v.jsx(E2,{router:a,...l,children:v.jsx(b2,{})})}function Ny(a){const l=on({warn:(a==null?void 0:a.router)===void 0}),s=(a==null?void 0:a.router)||l;return Wn(s.stores.__store,k0(a,s))}const T2="modulepreload",M2=function(a){return"/"+a},Dy={},Kt=function(l,s,r){let o=Promise.resolve();if(s&&s.length>0){let h=function(g){return Promise.all(g.map(b=>Promise.resolve(b).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};document.getElementsByTagName("link");const d=document.querySelector("meta[property=csp-nonce]"),p=(d==null?void 0:d.nonce)||(d==null?void 0:d.getAttribute("nonce"));o=h(s.map(g=>{if(g=M2(g),g in Dy)return;Dy[g]=!0;const b=g.endsWith(".css"),y=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${y}`))return;const S=document.createElement("link");if(S.rel=b?"stylesheet":T2,b||(S.as="script"),S.crossOrigin="",S.href=g,p&&S.setAttribute("nonce",p),document.head.appendChild(S),b)return new Promise((_,w)=>{S.addEventListener("load",_),S.addEventListener("error",()=>w(new Error(`Unable to preload CSS for ${g}`)))})}))}function f(h){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=h,window.dispatchEvent(d),!d.defaultPrevented)throw h}return o.then(h=>{for(const d of h||[])d.status==="rejected"&&f(d.reason);return l().catch(f)})};/**
|
||
* @license lucide-react v0.460.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=a=>a.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),X0=(...a)=>a.filter((l,s,r)=>!!l&&l.trim()!==""&&r.indexOf(l)===s).join(" ").trim();/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/var C2={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.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const R2=F.forwardRef(({color:a="currentColor",size:l=24,strokeWidth:s=2,absoluteStrokeWidth:r,className:o="",children:f,iconNode:h,...d},p)=>F.createElement("svg",{ref:p,...C2,width:l,height:l,stroke:a,strokeWidth:r?Number(s)*24/Number(l):s,className:X0("lucide",o),...d},[...h.map(([g,b])=>F.createElement(g,b)),...Array.isArray(f)?f:[f]]));/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const je=(a,l)=>{const s=F.forwardRef(({className:r,...o},f)=>F.createElement(R2,{ref:f,iconNode:l,className:X0(`lucide-${A2(a)}`,r),...o}));return s.displayName=`${a}`,s};/**
|
||
* @license lucide-react v0.460.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=je("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
||
* @license lucide-react v0.460.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=je("BookMarked",[["path",{d:"M10 2v8l3-3 3 3V2",key:"sqw3rj"}],["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const rd=je("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Z0=je("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/**
|
||
* @license lucide-react v0.460.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=je("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
|
||
* @license lucide-react v0.460.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=je("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
||
* @license lucide-react v0.460.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=je("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Js=je("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
||
* @license lucide-react v0.460.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=je("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const J0=je("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
||
* @license lucide-react v0.460.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=je("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
||
* @license lucide-react v0.460.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=je("Command",[["path",{d:"M15 6v12a3 3 0 1 0 3-3H6a3 3 0 1 0 3 3V6a3 3 0 1 0-3 3h12a3 3 0 1 0-3-3",key:"11bfej"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const H2=je("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
|
||
* @license lucide-react v0.460.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=je("Eye",[["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"}]]);/**
|
||
* @license lucide-react v0.460.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=je("Gauge",[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]]);/**
|
||
* @license lucide-react v0.460.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=je("HardDrive",[["line",{x1:"22",x2:"2",y1:"12",y2:"12",key:"1y58io"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}],["line",{x1:"6",x2:"6.01",y1:"16",y2:"16",key:"sgf278"}],["line",{x1:"10",x2:"10.01",y1:"16",y2:"16",key:"1l4acy"}]]);/**
|
||
* @license lucide-react v0.460.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=je("HeartPulse",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}],["path",{d:"M3.22 12H9.5l.5-1 2 4.5 2-7 1.5 3.5h5.27",key:"1uw2ng"}]]);/**
|
||
* @license lucide-react v0.460.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=je("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Md=je("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
|
||
* @license lucide-react v0.460.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=je("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
||
* @license lucide-react v0.460.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=je("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
|
||
* @license lucide-react v0.460.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=je("Library",[["path",{d:"m16 6 4 14",key:"ji33uf"}],["path",{d:"M12 6v14",key:"1n7gus"}],["path",{d:"M8 8v12",key:"1gg7y9"}],["path",{d:"M4 4v16",key:"6qkkli"}]]);/**
|
||
* @license lucide-react v0.460.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=je("Lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Ad=je("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const F2=je("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const $2=je("Mic",[["path",{d:"M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z",key:"131961"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["line",{x1:"12",x2:"12",y1:"19",y2:"22",key:"x3vr5v"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Cd=je("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const W2=je("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const F0=je("Server",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Rd=je("ShieldAlert",[["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:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const P2=je("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const I2=je("Sparkles",[["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"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const e3=je("SquareTerminal",[["path",{d:"m7 11 2-2-2-2",key:"1lz0vl"}],["path",{d:"M11 13h4",key:"1p7l4v"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const Pu=je("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const t3=je("Wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]]);/**
|
||
* @license lucide-react v0.460.0 - ISC
|
||
*
|
||
* This source code is licensed under the ISC license.
|
||
* See the LICENSE file in the root directory of this source tree.
|
||
*/const zd=je("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ar=[{id:"dashboard",pfad:"/cockpit",label:"Cockpit",hint:"Deine Box auf einen Blick",icon:X2,group:"Operativ"},{id:"ideen",pfad:"/ideen",label:"Ideen",hint:"Schreib hin, was entstehen soll",icon:J2,group:"Operativ"},{id:"auftraege",pfad:"/auftraege",label:"Auftragsbuch",hint:"Vorschläge der Box — annehmen oder ablehnen",icon:Md,group:"Operativ"},{id:"skills",pfad:"/skills",label:"Skills & Jobs",hint:"Autonome Skills manuell auslösen",icon:rd,group:"Operativ"},{id:"chronik",pfad:"/chronik",label:"Chronik",hint:"Was die Box von allein getan hat + Zeitmaschine",icon:Y2,group:"Operativ"},{id:"wissen",pfad:"/wissen",label:"Wissen",hint:"Lucys Wissens-Vault (Traum-Notizen)",icon:Z2,group:"Wissen"},{id:"connect",pfad:"/verbinden",label:"Verbinden",hint:"IDE-/Agent-Configs erzeugen",icon:Cd,group:"Werkzeuge"},{id:"konsole",pfad:"/konsole",label:"Konsole",hint:"Direkte Box-Shell (SSH-artig)",icon:e3,group:"Werkzeuge"},{id:"guide",pfad:"/anleitung",label:"Anleitung",hint:"Einrichten & Vibe-Coding",icon:J0,group:"Werkzeuge"},{id:"models",pfad:"/modelle",label:"Modelle",hint:"Speicher, laden & Rollen",icon:Z0,group:"Wartung"},{id:"agent",pfad:"/agent",label:"Hermes",hint:"Agent-Status & Verdrahtung",icon:rd,group:"Wartung"}];function $0(a){return[...ar].sort((l,s)=>s.pfad.length-l.pfad.length).find(l=>a===l.pfad||a.startsWith(l.pfad+"/"))}const Oy=a=>{let l;const s=new Set,r=(g,b)=>{const y=typeof g=="function"?g(l):g;if(!Object.is(y,l)){const S=l;l=b??(typeof y!="object"||y===null)?y:Object.assign({},l,y),s.forEach(_=>_(l,S))}},o=()=>l,d={setState:r,getState:o,getInitialState:()=>p,subscribe:g=>(s.add(g),()=>s.delete(g))},p=l=a(r,o,d);return d},n3=(a=>a?Oy(a):Oy),a3=a=>a;function l3(a,l=a3){const s=cn.useSyncExternalStore(a.subscribe,cn.useCallback(()=>l(a.getState()),[a,l]),cn.useCallback(()=>l(a.getInitialState()),[a,l]));return cn.useDebugValue(s),s}const i3=a=>{const l=n3(a),s=r=>l3(l,r);return Object.assign(s,l),s},s3=(a=>i3);function r3(a,l){let s;try{s=a()}catch{return}return{getItem:o=>{var f;const h=p=>p===null?null:JSON.parse(p,void 0),d=(f=s.getItem(o))!=null?f:null;return d instanceof Promise?d.then(h):h(d)},setItem:(o,f)=>s.setItem(o,JSON.stringify(f,void 0)),removeItem:o=>s.removeItem(o)}}const ud=a=>l=>{try{const s=a(l);return s instanceof Promise?s:{then(r){return ud(r)(s)},catch(r){return this}}}catch(s){return{then(r){return this},catch(r){return ud(r)(s)}}}},u3=(a,l)=>(s,r,o)=>{let f={storage:r3(()=>window.localStorage),partialize:j=>j,version:0,merge:(j,R)=>({...R,...j}),...l},h=!1,d=0;const p=new Set,g=new Set;let b=f.storage;if(!b)return a((...j)=>{console.warn(`[zustand persist middleware] Unable to update item '${f.name}', the given storage is currently unavailable.`),s(...j)},r,o);const y=()=>{const j=f.partialize({...r()});return b.setItem(f.name,{state:j,version:f.version})},S=o.setState;o.setState=(j,R)=>(S(j,R),y());const _=a((...j)=>(s(...j),y()),r,o);o.getInitialState=()=>_;let w;const E=()=>{var j,R;if(!b)return;const z=++d;h=!1,p.forEach(D=>{var X;return D((X=r())!=null?X:_)});const L=((R=f.onRehydrateStorage)==null?void 0:R.call(f,(j=r())!=null?j:_))||void 0;return ud(b.getItem.bind(b))(f.name).then(D=>{if(D)if(typeof D.version=="number"&&D.version!==f.version){if(f.migrate){const X=f.migrate(D.state,D.version);return X instanceof Promise?X.then(q=>[!0,q]):[!0,X]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,D.state];return[!1,void 0]}).then(D=>{var X;if(z!==d)return;const[q,Y]=D;if(w=f.merge(Y,(X=r())!=null?X:_),s(w,!0),q)return y()}).then(()=>{z===d&&(L==null||L(r(),void 0),w=r(),h=!0,g.forEach(D=>D(w)))}).catch(D=>{z===d&&(L==null||L(void 0,D))})};return o.persist={setOptions:j=>{f={...f,...j},j.storage&&(b=j.storage)},clearStorage:()=>{++d,b==null||b.removeItem(f.name)},getOptions:()=>f,rehydrate:()=>E(),hasHydrated:()=>h,onHydrate:j=>(p.add(j),()=>{p.delete(j)}),onFinishHydration:j=>(g.add(j),()=>{g.delete(j)})},f.skipHydration||E(),w||_},c3=u3;let o3=0;const Yt=s3()(c3(a=>({ui:{schieneEingeklappt:!1,paletteOffen:!1,expertenmodus:!1},strom:{lage:"getrennt",letztesEreignis:null},meldungen:[],schieneUmschalten:()=>a(l=>({ui:{...l.ui,schieneEingeklappt:!l.ui.schieneEingeklappt}})),palette:l=>a(s=>({ui:{...s.ui,paletteOffen:l}})),expertenmodus:l=>a(s=>({ui:{...s.ui,expertenmodus:l}})),stromLage:l=>a(s=>({strom:{...s.strom,lage:l}})),stromEreignis:()=>a(l=>({strom:{...l.strom,letztesEreignis:Date.now()}})),melden:(l,s)=>a(r=>({meldungen:[...r.meldungen,{id:`m${++o3}`,art:l,text:s,seit:Date.now()}].slice(-6)})),meldungWeg:l=>a(s=>({meldungen:s.meldungen.filter(r=>r.id!==l)}))}),{name:"mc_ui",partialize:a=>({ui:{schieneEingeklappt:a.ui.schieneEingeklappt,expertenmodus:a.ui.expertenmodus}}),merge:(a,l)=>{const s=a;return{...l,ui:{...l.ui,...(s==null?void 0:s.ui)??{}}}}})),f3=()=>Yt(a=>a.ui.expertenmodus),d3=()=>Yt(a=>a.ui.schieneEingeklappt),h3=()=>Yt(a=>a.ui.paletteOffen),m3=()=>Yt(a=>a.strom.lage),g3=()=>Yt(a=>a.meldungen),ky=(a,l)=>Yt.getState().melden(a,l),kf=a=>Yt.getState().stromLage(a),p3=()=>Yt.getState().stromEreignis();function W0(a){var l,s,r="";if(typeof a=="string"||typeof a=="number")r+=a;else if(typeof a=="object")if(Array.isArray(a)){var o=a.length;for(l=0;l<o;l++)a[l]&&(s=W0(a[l]))&&(r&&(r+=" "),r+=s)}else for(s in a)a[s]&&(r&&(r+=" "),r+=s);return r}function y3(){for(var a,l,s=0,r="",o=arguments.length;s<o;s++)(a=arguments[s])&&(l=W0(a))&&(r&&(r+=" "),r+=l);return r}const Nd="-",v3=a=>{const l=x3(a),{conflictingClassGroups:s,conflictingClassGroupModifiers:r}=a;return{getClassGroupId:h=>{const d=h.split(Nd);return d[0]===""&&d.length!==1&&d.shift(),P0(d,l)||b3(h)},getConflictingClassGroupIds:(h,d)=>{const p=s[h]||[];return d&&r[h]?[...p,...r[h]]:p}}},P0=(a,l)=>{var h;if(a.length===0)return l.classGroupId;const s=a[0],r=l.nextPart.get(s),o=r?P0(a.slice(1),r):void 0;if(o)return o;if(l.validators.length===0)return;const f=a.join(Nd);return(h=l.validators.find(({validator:d})=>d(f)))==null?void 0:h.classGroupId},Uy=/^\[(.+)\]$/,b3=a=>{if(Uy.test(a)){const l=Uy.exec(a)[1],s=l==null?void 0:l.substring(0,l.indexOf(":"));if(s)return"arbitrary.."+s}},x3=a=>{const{theme:l,prefix:s}=a,r={nextPart:new Map,validators:[]};return _3(Object.entries(a.classGroups),s).forEach(([f,h])=>{cd(h,r,f,l)}),r},cd=(a,l,s,r)=>{a.forEach(o=>{if(typeof o=="string"){const f=o===""?l:Ly(l,o);f.classGroupId=s;return}if(typeof o=="function"){if(S3(o)){cd(o(r),l,s,r);return}l.validators.push({validator:o,classGroupId:s});return}Object.entries(o).forEach(([f,h])=>{cd(h,Ly(l,f),s,r)})})},Ly=(a,l)=>{let s=a;return l.split(Nd).forEach(r=>{s.nextPart.has(r)||s.nextPart.set(r,{nextPart:new Map,validators:[]}),s=s.nextPart.get(r)}),s},S3=a=>a.isThemeGetter,_3=(a,l)=>l?a.map(([s,r])=>{const o=r.map(f=>typeof f=="string"?l+f:typeof f=="object"?Object.fromEntries(Object.entries(f).map(([h,d])=>[l+h,d])):f);return[s,o]}):a,w3=a=>{if(a<1)return{get:()=>{},set:()=>{}};let l=0,s=new Map,r=new Map;const o=(f,h)=>{s.set(f,h),l++,l>a&&(l=0,r=s,s=new Map)};return{get(f){let h=s.get(f);if(h!==void 0)return h;if((h=r.get(f))!==void 0)return o(f,h),h},set(f,h){s.has(f)?s.set(f,h):o(f,h)}}},I0="!",E3=a=>{const{separator:l,experimentalParseClassName:s}=a,r=l.length===1,o=l[0],f=l.length,h=d=>{const p=[];let g=0,b=0,y;for(let j=0;j<d.length;j++){let R=d[j];if(g===0){if(R===o&&(r||d.slice(j,j+f)===l)){p.push(d.slice(b,j)),b=j+f;continue}if(R==="/"){y=j;continue}}R==="["?g++:R==="]"&&g--}const S=p.length===0?d:d.substring(b),_=S.startsWith(I0),w=_?S.substring(1):S,E=y&&y>b?y-b:void 0;return{modifiers:p,hasImportantModifier:_,baseClassName:w,maybePostfixModifierPosition:E}};return s?d=>s({className:d,parseClassName:h}):h},j3=a=>{if(a.length<=1)return a;const l=[];let s=[];return a.forEach(r=>{r[0]==="["?(l.push(...s.sort(),r),s=[]):s.push(r)}),l.push(...s.sort()),l},T3=a=>({cache:w3(a.cacheSize),parseClassName:E3(a),...v3(a)}),M3=/\s+/,A3=(a,l)=>{const{parseClassName:s,getClassGroupId:r,getConflictingClassGroupIds:o}=l,f=[],h=a.trim().split(M3);let d="";for(let p=h.length-1;p>=0;p-=1){const g=h[p],{modifiers:b,hasImportantModifier:y,baseClassName:S,maybePostfixModifierPosition:_}=s(g);let w=!!_,E=r(w?S.substring(0,_):S);if(!E){if(!w){d=g+(d.length>0?" "+d:d);continue}if(E=r(S),!E){d=g+(d.length>0?" "+d:d);continue}w=!1}const j=j3(b).join(":"),R=y?j+I0:j,z=R+E;if(f.includes(z))continue;f.push(z);const L=o(E,w);for(let D=0;D<L.length;++D){const X=L[D];f.push(R+X)}d=g+(d.length>0?" "+d:d)}return d};function C3(){let a=0,l,s,r="";for(;a<arguments.length;)(l=arguments[a++])&&(s=ev(l))&&(r&&(r+=" "),r+=s);return r}const ev=a=>{if(typeof a=="string")return a;let l,s="";for(let r=0;r<a.length;r++)a[r]&&(l=ev(a[r]))&&(s&&(s+=" "),s+=l);return s};function R3(a,...l){let s,r,o,f=h;function h(p){const g=l.reduce((b,y)=>y(b),a());return s=T3(g),r=s.cache.get,o=s.cache.set,f=d,d(p)}function d(p){const g=r(p);if(g)return g;const b=A3(p,s);return o(p,b),b}return function(){return f(C3.apply(null,arguments))}}const Xe=a=>{const l=s=>s[a]||[];return l.isThemeGetter=!0,l},tv=/^\[(?:([a-z-]+):)?(.+)\]$/i,z3=/^\d+\/\d+$/,N3=new Set(["px","full","screen"]),D3=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,O3=/\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$/,k3=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,U3=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,L3=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Yn=a=>pi(a)||N3.has(a)||z3.test(a),Ea=a=>Ui(a,"length",K3),pi=a=>!!a&&!Number.isNaN(Number(a)),Uf=a=>Ui(a,"number",pi),qs=a=>!!a&&Number.isInteger(Number(a)),B3=a=>a.endsWith("%")&&pi(a.slice(0,-1)),ve=a=>tv.test(a),ja=a=>D3.test(a),H3=new Set(["length","size","percentage"]),q3=a=>Ui(a,H3,nv),G3=a=>Ui(a,"position",nv),Q3=new Set(["image","url"]),V3=a=>Ui(a,Q3,Z3),Y3=a=>Ui(a,"",X3),Gs=()=>!0,Ui=(a,l,s)=>{const r=tv.exec(a);return r?r[1]?typeof l=="string"?r[1]===l:l.has(r[1]):s(r[2]):!1},K3=a=>O3.test(a)&&!k3.test(a),nv=()=>!1,X3=a=>U3.test(a),Z3=a=>L3.test(a),J3=()=>{const a=Xe("colors"),l=Xe("spacing"),s=Xe("blur"),r=Xe("brightness"),o=Xe("borderColor"),f=Xe("borderRadius"),h=Xe("borderSpacing"),d=Xe("borderWidth"),p=Xe("contrast"),g=Xe("grayscale"),b=Xe("hueRotate"),y=Xe("invert"),S=Xe("gap"),_=Xe("gradientColorStops"),w=Xe("gradientColorStopPositions"),E=Xe("inset"),j=Xe("margin"),R=Xe("opacity"),z=Xe("padding"),L=Xe("saturate"),D=Xe("scale"),X=Xe("sepia"),q=Xe("skew"),Y=Xe("space"),J=Xe("translate"),Q=()=>["auto","contain","none"],P=()=>["auto","hidden","clip","visible","scroll"],ee=()=>["auto",ve,l],I=()=>[ve,l],de=()=>["",Yn,Ea],$=()=>["auto",pi,ve],ne=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],W=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],re=()=>["start","end","center","between","around","evenly","stretch"],ce=()=>["","0",ve],Se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>[pi,ve];return{cacheSize:500,separator:":",theme:{colors:[Gs],spacing:[Yn,Ea],blur:["none","",ja,ve],brightness:M(),borderColor:[a],borderRadius:["none","","full",ja,ve],borderSpacing:I(),borderWidth:de(),contrast:M(),grayscale:ce(),hueRotate:M(),invert:ce(),gap:I(),gradientColorStops:[a],gradientColorStopPositions:[B3,Ea],inset:ee(),margin:ee(),opacity:M(),padding:I(),saturate:M(),scale:M(),sepia:ce(),skew:M(),space:I(),translate:I()},classGroups:{aspect:[{aspect:["auto","square","video",ve]}],container:["container"],columns:[{columns:[ja]}],"break-after":[{"break-after":Se()}],"break-before":[{"break-before":Se()}],"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"],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:[...ne(),ve]}],overflow:[{overflow:P()}],"overflow-x":[{"overflow-x":P()}],"overflow-y":[{"overflow-y":P()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[E]}],"inset-x":[{"inset-x":[E]}],"inset-y":[{"inset-y":[E]}],start:[{start:[E]}],end:[{end:[E]}],top:[{top:[E]}],right:[{right:[E]}],bottom:[{bottom:[E]}],left:[{left:[E]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",qs,ve]}],basis:[{basis:ee()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",ve]}],grow:[{grow:ce()}],shrink:[{shrink:ce()}],order:[{order:["first","last","none",qs,ve]}],"grid-cols":[{"grid-cols":[Gs]}],"col-start-end":[{col:["auto",{span:["full",qs,ve]},ve]}],"col-start":[{"col-start":$()}],"col-end":[{"col-end":$()}],"grid-rows":[{"grid-rows":[Gs]}],"row-start-end":[{row:["auto",{span:[qs,ve]},ve]}],"row-start":[{"row-start":$()}],"row-end":[{"row-end":$()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ve]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ve]}],gap:[{gap:[S]}],"gap-x":[{"gap-x":[S]}],"gap-y":[{"gap-y":[S]}],"justify-content":[{justify:["normal",...re()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...re(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...re(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[z]}],px:[{px:[z]}],py:[{py:[z]}],ps:[{ps:[z]}],pe:[{pe:[z]}],pt:[{pt:[z]}],pr:[{pr:[z]}],pb:[{pb:[z]}],pl:[{pl:[z]}],m:[{m:[j]}],mx:[{mx:[j]}],my:[{my:[j]}],ms:[{ms:[j]}],me:[{me:[j]}],mt:[{mt:[j]}],mr:[{mr:[j]}],mb:[{mb:[j]}],ml:[{ml:[j]}],"space-x":[{"space-x":[Y]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[Y]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",ve,l]}],"min-w":[{"min-w":[ve,l,"min","max","fit"]}],"max-w":[{"max-w":[ve,l,"none","full","min","max","fit","prose",{screen:[ja]},ja]}],h:[{h:[ve,l,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ve,l,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ve,l,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ve,l,"auto","min","max","fit"]}],"font-size":[{text:["base",ja,Ea]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Uf]}],"font-family":[{font:[Gs]}],"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:["tighter","tight","normal","wide","wider","widest",ve]}],"line-clamp":[{"line-clamp":["none",pi,Uf]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Yn,ve]}],"list-image":[{"list-image":["none",ve]}],"list-style-type":[{list:["none","disc","decimal",ve]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[a]}],"placeholder-opacity":[{"placeholder-opacity":[R]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[a]}],"text-opacity":[{"text-opacity":[R]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Yn,Ea]}],"underline-offset":[{"underline-offset":["auto",Yn,ve]}],"text-decoration-color":[{decoration:[a]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",ve]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",ve]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[R]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...ne(),G3]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",q3]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},V3]}],"bg-color":[{bg:[a]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[_]}],"gradient-via":[{via:[_]}],"gradient-to":[{to:[_]}],rounded:[{rounded:[f]}],"rounded-s":[{"rounded-s":[f]}],"rounded-e":[{"rounded-e":[f]}],"rounded-t":[{"rounded-t":[f]}],"rounded-r":[{"rounded-r":[f]}],"rounded-b":[{"rounded-b":[f]}],"rounded-l":[{"rounded-l":[f]}],"rounded-ss":[{"rounded-ss":[f]}],"rounded-se":[{"rounded-se":[f]}],"rounded-ee":[{"rounded-ee":[f]}],"rounded-es":[{"rounded-es":[f]}],"rounded-tl":[{"rounded-tl":[f]}],"rounded-tr":[{"rounded-tr":[f]}],"rounded-br":[{"rounded-br":[f]}],"rounded-bl":[{"rounded-bl":[f]}],"border-w":[{border:[d]}],"border-w-x":[{"border-x":[d]}],"border-w-y":[{"border-y":[d]}],"border-w-s":[{"border-s":[d]}],"border-w-e":[{"border-e":[d]}],"border-w-t":[{"border-t":[d]}],"border-w-r":[{"border-r":[d]}],"border-w-b":[{"border-b":[d]}],"border-w-l":[{"border-l":[d]}],"border-opacity":[{"border-opacity":[R]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[d]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[d]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[R]}],"divide-style":[{divide:B()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[Yn,ve]}],"outline-w":[{outline:[Yn,Ea]}],"outline-color":[{outline:[a]}],"ring-w":[{ring:de()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[a]}],"ring-opacity":[{"ring-opacity":[R]}],"ring-offset-w":[{"ring-offset":[Yn,Ea]}],"ring-offset-color":[{"ring-offset":[a]}],shadow:[{shadow:["","inner","none",ja,Y3]}],"shadow-color":[{shadow:[Gs]}],opacity:[{opacity:[R]}],"mix-blend":[{"mix-blend":[...W(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":W()}],filter:[{filter:["","none"]}],blur:[{blur:[s]}],brightness:[{brightness:[r]}],contrast:[{contrast:[p]}],"drop-shadow":[{"drop-shadow":["","none",ja,ve]}],grayscale:[{grayscale:[g]}],"hue-rotate":[{"hue-rotate":[b]}],invert:[{invert:[y]}],saturate:[{saturate:[L]}],sepia:[{sepia:[X]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[s]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[p]}],"backdrop-grayscale":[{"backdrop-grayscale":[g]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[b]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[R]}],"backdrop-saturate":[{"backdrop-saturate":[L]}],"backdrop-sepia":[{"backdrop-sepia":[X]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[h]}],"border-spacing-x":[{"border-spacing-x":[h]}],"border-spacing-y":[{"border-spacing-y":[h]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",ve]}],duration:[{duration:M()}],ease:[{ease:["linear","in","out","in-out",ve]}],delay:[{delay:M()}],animate:[{animate:["none","spin","ping","pulse","bounce",ve]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[D]}],"scale-x":[{"scale-x":[D]}],"scale-y":[{"scale-y":[D]}],rotate:[{rotate:[qs,ve]}],"translate-x":[{"translate-x":[J]}],"translate-y":[{"translate-y":[J]}],"skew-x":[{"skew-x":[q]}],"skew-y":[{"skew-y":[q]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ve]}],accent:[{accent:["auto",a]}],appearance:[{appearance:["none","auto"]}],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",ve]}],"caret-color":[{caret:[a]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"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",ve]}],fill:[{fill:[a,"none"]}],"stroke-w":[{stroke:[Yn,Ea,Uf]}],stroke:[{stroke:[a,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},F3=R3(J3);function qe(...a){return F3(y3(a))}function y5(a){return a?a.replace(/127\.0\.0\.1|localhost/g,"192.168.178.151"):""}function $3(){const a=f3(),l=Yt(s=>s.expertenmodus);return v.jsxs("div",{className:"flex items-center rounded-md border border-border/40 bg-background/40 p-0.5",role:"group","aria-label":"Ansichtsmodus",title:"Einfach zeigt nur das Wichtigste. Experte zeigt alle technischen Details.",children:[v.jsxs("button",{onClick:()=>l(!1),"aria-pressed":!a,className:qe("flex items-center gap-1 rounded px-2 py-1 text-xs font-semibold transition-all cursor-pointer",a?"text-muted-foreground hover:text-foreground":"bg-primary/15 text-primary shadow-sm"),children:[v.jsx(I2,{className:"h-3.5 w-3.5"})," Einfach"]}),v.jsxs("button",{onClick:()=>l(!0),"aria-pressed":a,className:qe("flex items-center gap-1 rounded px-2 py-1 text-xs font-semibold transition-all cursor-pointer",a?"bg-primary/15 text-primary shadow-sm":"text-muted-foreground hover:text-foreground"),children:[v.jsx(P2,{className:"h-3.5 w-3.5"})," Experte"]})]})}let yi=[],vi=[];const od=new Set,av=()=>od.forEach(a=>a());function Dd(a){return od.add(a),()=>{od.delete(a)}}function lv(a){yi=[...yi,a].slice(-120),av()}function iv(a){vi=[...vi,a].slice(-120),av()}let sv=null;const rv=()=>F.useSyncExternalStore(Dd,()=>yi),uv=()=>F.useSyncExternalStore(Dd,()=>vi),cv=()=>F.useSyncExternalStore(Dd,()=>sv);let Qs=null;function W3(a){const l=Date.now();if(sv=a,lv({t:l,cpu:a.cpu??0,ram:a.ram??0,gpu:a.gpu,disk:a.disk}),Qs){const s=Math.max((l-Qs.t)/1e3,.001);iv({t:l,prompt:Math.max(0,(a.tok_p-Qs.p)/s),completion:Math.max(0,(a.tok_c-Qs.c)/s)})}Qs={p:a.tok_p,c:a.tok_c,t:l}}function P3(){const{data:a,dataUpdatedAt:l}=dr(),{data:s,dataUpdatedAt:r}=kd(),o=F.useRef(null);F.useEffect(()=>{var h,d,p,g;if(!a)return;const f=Date.now();yi.length&&f-yi[yi.length-1].t<1e3||lv({t:f,cpu:((h=a.cpu)==null?void 0:h.percent)??0,ram:((d=a.ram)==null?void 0:d.percent)??0,gpu:((p=a.gpu)==null?void 0:p.busy_percent)??null,disk:((g=a.disk)==null?void 0:g.percent)??null})},[l]),F.useEffect(()=>{if(!s)return;const f=Date.now(),h=s.prompt_tokens,d=s.completion_tokens;if(o.current){const p=Math.max((f-o.current.t)/1e3,.001);(!vi.length||f-vi[vi.length-1].t>=1e3)&&iv({t:f,prompt:Math.max(0,(h-o.current.p)/p),completion:Math.max(0,(d-o.current.c)/p)})}o.current={p:h,c:d,t:f}},[r])}let Ks=!1;const ov=()=>Ks;function I3(){const a=yd();F.useEffect(()=>{const l=new EventSource("/api/stream");let s=!1;return l.onopen=()=>{Ks=!0,kf("live"),s&&ky("erfolg","Verbindung zur Zentrale ist wieder da."),s=!0,a.invalidateQueries()},l.onerror=()=>{Ks&&(Ks=!1,kf("nachlauf"),ky("warnung","Verbindung zur Zentrale verloren — die Anzeigen laufen im Nachlauf."),a.invalidateQueries())},l.addEventListener("invalidate",r=>{var o;try{const f=((o=JSON.parse(r.data))==null?void 0:o.keys)??[];for(const h of f)a.invalidateQueries({queryKey:[h]});p3()}catch{}}),l.addEventListener("metrik",r=>{try{W3(JSON.parse(r.data))}catch{}}),()=>{Ks=!1,kf("getrennt"),l.close()}},[a])}class e_ extends Error{constructor(s,r,o){super(o||`${s} ${r}`);zu(this,"status");zu(this,"detail");this.name="ApiError",this.status=s,this.detail=o}}async function t_(a){try{const l=await a.text();if(!l)return null;try{const s=JSON.parse(l),r=(s==null?void 0:s.detail)??(s==null?void 0:s.err)??(s==null?void 0:s.message);return typeof r=="string"&&r.trim()?r.trim():Array.isArray(r)&&r.length&&r.map(o=>o==null?void 0:o.msg).filter(Boolean).join("; ")||null}catch{return l.slice(0,200).split(`
|
||
`)[0].trim()||null}}catch{return null}}async function De(a,l){const s=await fetch(a,{...l,headers:{"Content-Type":"application/json",...l==null?void 0:l.headers}});if(!s.ok)throw new e_(s.status,s.statusText,await t_(s));return s.json()}const v5=(a,l,s=!1,r=!0)=>De("/api/groups",{method:"PUT",body:JSON.stringify({group:a,members:l,swap:s,persist:r})}),b5=a=>De("/api/routing/policy",{method:"PUT",body:JSON.stringify(a)}),Ge={health:["health"],systemStatus:["system-status"],services:["services"],models:["models"],groups:["groups"],routing:["routing"],routingPolicy:["routing-policy"],jobs:["jobs"],tokenStats:["token-stats"],agentStatus:["agent-status"],agentAktivitaet:["agent-aktivitaet"],hermesBrain:["hermes-brain"],updates:["updates"],discover:["discover"],drafts:a=>["drafts",a??""],connect:a=>["connect",a??""],connectHealth:["connect-health"],memoryGraph:["memory-graph"],voiceTrace:["voice-trace"],auftragsbuch:["auftragsbuch"],ideen:["ideen"],chronik:["chronik"],wissen:["wissen"],zeitmaschine:["zeitmaschine"],reminders:["reminders"]},bt={graph:3e3,schnell:8e3,normal:1e4,gemuetlich:3e4,traege:6e4},Li=a=>()=>ov()?a*5:a,fv=a=>()=>ov()?6e4:a,n_=(a=bt.schnell)=>Qe({queryKey:Ge.auftragsbuch,queryFn:()=>De("/api/auftragsbuch"),refetchInterval:Li(a)}),a_=(a=bt.gemuetlich)=>Qe({queryKey:Ge.ideen,queryFn:()=>De("/api/ideen"),refetchInterval:Li(a)}),x5=(a,l=!1)=>Qe({queryKey:["ideen-log",a],queryFn:()=>De(`/api/ideen/${a}/log`),enabled:l,refetchInterval:4e3,staleTime:0}),S5=(a=150,l=bt.gemuetlich)=>Qe({queryKey:[...Ge.chronik,a],queryFn:()=>De(`/api/chronik?limit=${a}`),refetchInterval:Li(l),select:s=>s.items??[]}),_5=()=>Qe({queryKey:Ge.wissen,queryFn:()=>De("/api/wissen")}),w5=(a=bt.traege,l=!0)=>Qe({queryKey:Ge.zeitmaschine,queryFn:()=>De("/api/zeitmaschine"),refetchInterval:a,enabled:l}),l_=(a=12,l=bt.schnell)=>Qe({queryKey:Ge.voiceTrace,queryFn:()=>De(`/api/voice/trace?limit=${a}`),refetchInterval:l,select:s=>s.turns??[]}),E5=(a=!0)=>Qe({queryKey:Ge.memoryGraph,queryFn:()=>De("/api/wissen/graph"),enabled:a,staleTime:60*1e3}),Od=()=>Qe({queryKey:Ge.health,queryFn:()=>De("/api/health"),refetchInterval:bt.normal}),dr=(a=bt.graph)=>Qe({queryKey:Ge.systemStatus,queryFn:()=>De("/api/system/status"),refetchInterval:fv(a)}),dv=(a,l=!0)=>Qe({queryKey:["metrics-history",a],queryFn:()=>De(`/api/system/history?minutes=${a}`),enabled:l,refetchInterval:6e4}),hv=(a=bt.normal)=>Qe({queryKey:Ge.services,queryFn:()=>De("/api/system/services"),refetchInterval:a}),mv=(a=bt.schnell)=>Qe({queryKey:Ge.models,queryFn:()=>De("/api/models"),refetchInterval:Li(a)}),j5=(a=bt.normal)=>Qe({queryKey:Ge.groups,queryFn:()=>De("/api/groups"),refetchInterval:a}),i_=(a=bt.normal)=>Qe({queryKey:Ge.routing,queryFn:()=>De("/api/routing"),refetchInterval:a}),T5=()=>Qe({queryKey:Ge.routingPolicy,queryFn:()=>De("/api/routing/policy")}),M5=(a=3e3,l=!0)=>Qe({queryKey:Ge.jobs,queryFn:()=>De("/api/jobs"),refetchInterval:Li(a),enabled:l,select:s=>s.jobs??[]}),kd=(a=bt.graph)=>Qe({queryKey:Ge.tokenStats,queryFn:()=>De("/api/system/token-stats"),refetchInterval:fv(a)}),s_=(a=bt.normal)=>Qe({queryKey:Ge.agentStatus,queryFn:()=>De("/api/agent/status"),refetchInterval:a}),A5=(a=bt.gemuetlich)=>Qe({queryKey:Ge.agentAktivitaet,queryFn:()=>De("/api/agent/aktivitaet?limit=80"),refetchInterval:Li(a)}),C5=(a=bt.traege)=>Qe({queryKey:Ge.hermesBrain,queryFn:()=>De("/api/agent/brain"),refetchInterval:a}),r_=(a=bt.traege)=>Qe({queryKey:Ge.updates,queryFn:()=>De("/api/maintenance/updates"),refetchInterval:a}),R5=()=>Qe({queryKey:Ge.discover,queryFn:()=>De("/api/discover")}),z5=a=>Qe({queryKey:Ge.drafts(a),queryFn:()=>De(`/api/models/drafts?target=${encodeURIComponent(a??"")}`),enabled:!!a}),N5=a=>Qe({queryKey:Ge.connect(a),queryFn:()=>De(a?`/api/connect?${a}`:"/api/connect")}),u_=()=>Qe({queryKey:Ge.connectHealth,queryFn:()=>De("/api/connect/health"),refetchInterval:15e3});function D5(a,...l){for(const s of l)a.invalidateQueries({queryKey:s})}function xn(a){return(a/1024**3).toFixed(1)}function O5(a){return a?a>1024**3?`${(a/1024**3).toFixed(1)} GB`:`${(a/1024**2).toFixed(0)} MB`:""}function k5(a){if(!a)return"—";const l=a/1024**3;return l>=1?`${l.toFixed(1)} GB`:`${(a/1024**2).toFixed(0)} MB`}function U5(a){if(!a)return"";const l=Math.floor(a/60);return l>0?`${l} min`:`${a} s`}function L5(a){return a?`${Math.round(a/1024)}k`:"—"}function B5(a){return a?new Date(a*1e3).toLocaleString("de-DE",{day:"2-digit",month:"2-digit",hour:"2-digit",minute:"2-digit"}):"—"}function c_(a){if(a==null||a<0)return null;const l=Math.floor(a/86400),s=Math.floor(a%86400/3600),r=Math.floor(a%3600/60);return l>0?`${l} T ${s} Std`:s>0?`${s} Std ${r} min`:`${r} min`}function By({werte:a,farbe:l,breite:s=56,hoehe:r=14}){if(a.length<2)return v.jsx("div",{style:{width:s,height:r},"aria-hidden":"true"});const o=Math.max(...a,1),f=s/(a.length-1),h=a.map((d,p)=>`${p===0?"M":"L"}${(p*f).toFixed(1)},${(r-d/o*r).toFixed(1)}`).join(" ");return v.jsx("svg",{width:s,height:r,viewBox:`0 0 ${s} ${r}`,"aria-hidden":"true",className:"shrink-0",children:v.jsx("path",{d:h,fill:"none",stroke:l,strokeWidth:"1.25",strokeLinejoin:"round",strokeLinecap:"round"})})}function oi({children:a,titel:l,className:s}){return v.jsx("div",{title:l,className:qe("flex shrink-0 items-center gap-1.5 border-r border-border/30 px-3",s),children:a})}function o_(){var Y,J,Q,P,ee,I,de,$,ne,B;const{data:a,isError:l}=Od(),{data:s}=dr(),{data:r}=i_(),{data:o}=kd(),f=rv(),h=uv(),d=m3(),p=!l&&!!(a!=null&&a.engine_reachable),g=p&&(a!=null&&a.brain?a.brain.ready:!0),b=((Y=a==null?void 0:a.brain)==null?void 0:Y.role)??((Q=(J=r==null?void 0:r.lanes)==null?void 0:J[0])==null?void 0:Q.name)??null,y=cv(),S=(y==null?void 0:y.cpu)??((P=s==null?void 0:s.cpu)==null?void 0:P.percent)??0,_=(y==null?void 0:y.gpu)??((ee=s==null?void 0:s.gpu)==null?void 0:ee.busy_percent)??null,w=(y==null?void 0:y.ram)??((I=s==null?void 0:s.ram)==null?void 0:I.percent)??0,E=(y==null?void 0:y.ram_used)??((de=s==null?void 0:s.ram)==null?void 0:de.used),j=(y==null?void 0:y.ram_total)??(($=s==null?void 0:s.ram)==null?void 0:$.total),R=Math.max((y==null?void 0:y.temp_cpu)??((ne=s==null?void 0:s.temp)==null?void 0:ne.cpu)??0,(y==null?void 0:y.temp_gpu)??((B=s==null?void 0:s.temp)==null?void 0:B.gpu)??0),z=h.length?h[h.length-1].completion:0,L=c_((y==null?void 0:y.uptime_s)??(s==null?void 0:s.uptime_s)),D=l?"getrennt":d==="live"?"live":"nachlauf",q={live:{punkt:"bg-emerald-500",text:"Live",titel:"Ereignisstrom steht — Änderungen erscheinen sofort."},nachlauf:{punkt:"bg-amber-500",text:"Nachlauf",titel:"Kein Ereignisstrom — die Zahlen stimmen, sie kommen im Takt statt sofort."},getrennt:{punkt:"bg-red-500",text:"Getrennt",titel:"Die Zentrale antwortet nicht — die Zahlen sind veraltet."}}[D];return v.jsxs("footer",{className:"flex h-11 shrink-0 items-stretch overflow-x-auto border-t border-border/40 bg-card/40 font-mono text-[11px] backdrop-blur-sm scrollbar-thin","aria-label":"Zustand der Box",children:[v.jsxs(ac,{to:"/agent",className:"flex shrink-0 items-center gap-2.5 border-r border-border/30 px-3 transition-colors hover:bg-accent/50",children:[v.jsxs("span",{className:"flex items-center gap-1.5",title:p?"Motor (Engine) läuft":"Motor (Engine) läuft nicht",children:[v.jsx("span",{className:qe("h-2 w-2 rounded-full",p?"bg-emerald-500":"bg-red-500"),"aria-hidden":"true"}),v.jsx("span",{className:p?"text-muted-foreground":"font-semibold text-red-400",children:"Motor"})]}),v.jsxs("span",{className:"flex items-center gap-1.5",title:g?"Lucys Hirn ist bereit":"Lucys Hirn ist nicht bereit",children:[v.jsx("span",{className:qe("h-2 w-2 rounded-full",g?"bg-emerald-500":"bg-amber-500"),"aria-hidden":"true"}),v.jsx("span",{className:g?"text-muted-foreground":"font-semibold text-amber-400",children:"Hirn"})]})]}),v.jsxs(oi,{titel:"Aktive Rolle und aktueller Ausgabe-Durchsatz",children:[v.jsx("span",{className:"font-semibold text-primary",children:b??"—"}),v.jsx("span",{className:"tabular-nums text-muted-foreground",children:z>0?`${z.toFixed(0)} t/s`:"leerlauf"}),v.jsx(By,{werte:h.map(W=>W.completion),farbe:"hsl(172 72% 50%)"})]}),v.jsxs(oi,{titel:E!=null&&j!=null?`Geteilter Speicher (Unified Memory): ${xn(E)} von ${xn(j)} GB belegt`:"Speicher",children:[v.jsx("span",{className:"text-muted-foreground",children:"Speicher"}),v.jsx("div",{className:"h-2 w-24 overflow-hidden rounded-sm border border-border/50 bg-background/60","aria-hidden":"true",children:v.jsx("div",{className:qe("h-full transition-[width] duration-500",w>90?"bg-red-500":w>75?"bg-amber-500":"bg-primary"),style:{width:`${Math.min(100,w)}%`}})}),v.jsx("span",{className:"tabular-nums text-foreground",children:E!=null&&j!=null?`${xn(E)}/${xn(j)} GB`:"—"})]}),v.jsxs(oi,{titel:"Auslastung von Prozessor und Grafikeinheit",children:[v.jsx("span",{className:"text-muted-foreground",children:"CPU"}),v.jsxs("span",{className:"tabular-nums text-foreground",children:[Math.round(S)," %"]}),v.jsx(By,{werte:f.map(W=>W.cpu),farbe:"hsl(199 89% 58%)"}),_!=null&&v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"ml-1 text-muted-foreground",children:"GPU"}),v.jsxs("span",{className:"tabular-nums text-foreground",children:[Math.round(_)," %"]})]})]}),R>0&&v.jsxs(oi,{titel:"Höchste gemessene Temperatur (Prozessor oder Grafikeinheit)",children:[v.jsx("span",{className:"text-muted-foreground",children:"Temp"}),v.jsxs("span",{className:qe("tabular-nums",R>=85?"font-semibold text-amber-400":"text-foreground"),children:[Math.round(R)," °C"]})]}),L&&v.jsxs(oi,{titel:"Betriebszeit seit dem letzten Neustart der Box",children:[v.jsx("span",{className:"text-muted-foreground",children:"Läuft seit"}),v.jsx("span",{className:"tabular-nums text-foreground",children:L})]}),o&&v.jsx(oi,{titel:"Seit Beginn verarbeitete Token und die damit gesparten Cloud-Kosten",children:v.jsxs("span",{className:"tabular-nums text-muted-foreground",children:[o.total_tokens.toLocaleString("de-DE")," Token · ",o.saved_eur.toFixed(0)," € gespart"]})}),v.jsxs("div",{className:"ml-auto flex shrink-0 items-center gap-1.5 px-3",title:q.titel,children:[v.jsx("span",{className:qe("h-2 w-2 rounded-full",q.punkt,D==="live"&&"animate-pulse"),"aria-hidden":"true"}),v.jsx("span",{className:"text-muted-foreground",children:q.text})]})]})}const f_=6e3,d_={info:{rand:"border-sky-500/40",farbe:"text-sky-300",Icon:K2},erfolg:{rand:"border-emerald-500/40",farbe:"text-emerald-300",Icon:U2},warnung:{rand:"border-amber-500/40",farbe:"text-amber-300",Icon:Pu},fehler:{rand:"border-red-500/40",farbe:"text-red-300",Icon:L2}};function h_(){const a=g3(),l=Yt(s=>s.meldungWeg);return F.useEffect(()=>{const s=a.filter(r=>r.art!=="fehler").map(r=>window.setTimeout(()=>l(r.id),Math.max(1e3,f_-(Date.now()-r.seit))));return()=>s.forEach(window.clearTimeout)},[a,l]),v.jsx("div",{className:"pointer-events-none fixed bottom-4 right-4 z-[70] flex w-full max-w-sm flex-col gap-2",role:"status","aria-live":"polite","aria-atomic":"false",children:a.map(s=>{const{rand:r,farbe:o,Icon:f}=d_[s.art];return v.jsxs("div",{className:qe("pointer-events-auto flex items-start gap-2.5 rounded-lg border bg-card/95 px-3.5 py-2.5 shadow-xl backdrop-blur",r),"aria-live":s.art==="fehler"?"assertive":"polite",children:[v.jsx(f,{className:qe("mt-0.5 h-4 w-4 shrink-0",o),"aria-hidden":"true"}),v.jsx("p",{className:"flex-1 text-xs leading-relaxed text-foreground",children:s.text}),v.jsx("button",{onClick:()=>l(s.id),"aria-label":"Meldung schließen",className:"shrink-0 cursor-pointer rounded p-0.5 text-muted-foreground transition-colors hover:text-foreground",children:v.jsx(zd,{className:"h-3.5 w-3.5","aria-hidden":"true"})})]},s.id)})})}const m_=F.lazy(()=>Kt(()=>import("./SystemDrawer-BibykjdQ.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(a=>({default:a.SystemDrawer}))),g_=F.lazy(()=>Kt(()=>import("./CommandPalette-B-Xj_Ylo.js"),__vite__mapDeps([10,11,8,1,3,2])).then(a=>({default:a.CommandPalette})));function p_(){return v.jsx("div",{className:"flex h-64 items-center justify-center text-muted-foreground",children:v.jsx(Ad,{className:"h-5 w-5 animate-spin","aria-label":"Lädt …"})})}const y_=/Mac|iPhone|iPad/.test(navigator.platform);function v_(){P3(),I3();const a=fr(),l=Ny({select:E=>E.location.pathname}),s=Ny({select:E=>E.location.search.system}),r=d3(),o=Yt(E=>E.schieneUmschalten),f=h3(),h=Yt(E=>E.palette),[d,p]=F.useState(!1),[g,b]=F.useState(!1);F.useEffect(()=>{f&&b(!0)},[f]),F.useEffect(()=>{const E=j=>{(j.metaKey||j.ctrlKey)&&j.key.toLowerCase()==="k"&&(j.preventDefault(),h(!Yt.getState().ui.paletteOffen))};return document.addEventListener("keydown",E),()=>document.removeEventListener("keydown",E)},[h]);const y=F.useCallback(E=>{a({to:".",search:j=>({...j,system:E}),replace:!0})},[a]),{data:S,isError:_}=Od();F.useEffect(()=>{document.documentElement.classList.add("dark")},[]),F.useEffect(()=>{p(!1)},[l]);const w=$0(l);return v.jsxs("div",{className:"flex h-full relative",children:[v.jsx("div",{className:"fixed inset-0 -z-50 pointer-events-none",style:{backgroundColor:"hsl(224,30%,6%)",backgroundImage:["radial-gradient(45% 40% at 12% 8%, hsl(172 72% 50% / 0.10), transparent 70%)","radial-gradient(50% 45% at 88% 92%, hsl(270 70% 60% / 0.10), transparent 70%)","radial-gradient(40% 35% at 75% 30%, hsl(239 70% 62% / 0.07), transparent 70%)"].join(", ")}}),v.jsx(h_,{}),v.jsxs(F.Suspense,{fallback:null,children:[g&&v.jsx(g_,{}),s&&v.jsx(m_,{open:!0,onClose:()=>y(void 0),defaultTab:s==="logs"?"logs":"maintenance"})]}),v.jsx("aside",{className:qe("hidden md:flex shrink-0 flex-col border-r border-border/40 bg-card/45 backdrop-blur-md transition-all duration-300 ease-in-out",r?"w-16":"w-60"),children:v.jsx(Hy,{collapsed:r,onToggleCollapse:o,pfad:l,health:S,backendDown:_})}),v.jsxs("div",{className:qe("md:hidden fixed inset-0 z-50 transition-opacity duration-200",d?"opacity-100":"pointer-events-none opacity-0"),"aria-hidden":!d,children:[v.jsx("div",{className:"absolute inset-0 bg-black/60",onClick:()=>p(!1)}),v.jsx("aside",{className:qe("absolute inset-y-0 left-0 flex w-72 max-w-[85vw] flex-col border-r border-border/40 bg-[hsl(224,28%,8%)] transition-transform duration-300 ease-in-out",d?"translate-x-0":"-translate-x-full"),children:v.jsx(Hy,{collapsed:!1,onClose:()=>p(!1),pfad:l,health:S,backendDown:_})})]}),v.jsxs("div",{className:"flex min-w-0 flex-1 flex-col",children:[v.jsxs("header",{className:"flex h-14 shrink-0 items-center justify-between gap-3 border-b border-border/40 px-4 md:px-6 bg-card/20 backdrop-blur-sm",children:[v.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[v.jsx("button",{onClick:()=>p(!0),className:"md:hidden p-1.5 -ml-1 rounded-md hover:bg-accent text-muted-foreground transition-colors cursor-pointer","aria-label":"Navigation öffnen",children:v.jsx(F2,{className:"h-5 w-5","aria-hidden":"true"})}),v.jsx("div",{className:"truncate text-xs font-medium text-muted-foreground tracking-wide uppercase font-sans",children:w==null?void 0:w.hint})]}),v.jsxs("div",{className:"flex shrink-0 items-center gap-2",children:[v.jsx($3,{}),v.jsx("a",{href:"https://git.tobisniceshomelab.ddnsfree.com/Hitonabi/mission-control-v2/src/branch/main/docs/BEDIENUNG.md",target:"_blank",rel:"noopener",className:"hidden sm:flex h-8 items-center rounded-md border border-border/40 bg-background/40 px-2.5 text-xs text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-all cursor-pointer font-semibold",title:"Bedien-Anleitung",children:"Hilfe"}),v.jsxs("button",{onClick:()=>h(!0),className:"flex items-center gap-2 rounded-md border border-border/40 bg-background/40 px-2.5 py-1.5 text-xs text-muted-foreground hover:bg-accent hover:text-accent-foreground transition-all cursor-pointer",children:[v.jsx(B2,{className:"h-3.5 w-3.5"}),v.jsx("span",{className:"hidden sm:inline",children:"Suchen"}),v.jsx("kbd",{className:"hidden sm:inline rounded bg-muted px-1.5 py-0.5 font-mono text-[9px]",children:y_?"⌘K":"Strg+K"})]})]})]}),v.jsx("main",{className:"flex-1 overflow-y-auto scrollbar-thin",children:v.jsx("div",{className:"mx-auto w-full max-w-[1600px] p-4 md:p-6",children:v.jsx(F.Suspense,{fallback:v.jsx(p_,{}),children:v.jsx(Y0,{})})})}),v.jsx(o_,{})]})]})}function Hy({collapsed:a,onToggleCollapse:l,onClose:s,pfad:r,health:o,backendDown:f}){var p,g,b,y,S;const h=$0(r),{data:d}=dr();return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:qe("flex items-center py-4 border-b border-border/40 shrink-0",a?"flex-col gap-3 px-2":"justify-between px-5"),children:[v.jsxs("div",{className:"flex items-center gap-2 overflow-hidden",children:[v.jsx("div",{className:"h-7 w-7 rounded-lg bg-primary shadow-md shadow-primary/20 shrink-0"}),!a&&v.jsxs("div",{className:"leading-tight",children:[v.jsx("div",{className:"text-sm font-semibold tracking-wide font-space",children:"Mission Control"}),v.jsx("div",{className:"text-xs text-muted-foreground",children:"2.0"})]})]}),l&&v.jsx("button",{onClick:l,className:"p-1 rounded-md hover:bg-accent text-muted-foreground transition-colors cursor-pointer","aria-label":a?"Seitenleiste ausklappen":"Seitenleiste einklappen",title:a?"Maximieren":"Minimieren",children:a?v.jsx(Js,{className:"h-4 w-4","aria-hidden":"true"}):v.jsx(k2,{className:"h-4 w-4","aria-hidden":"true"})}),s&&v.jsx("button",{onClick:s,className:"p-1 rounded-md hover:bg-accent text-muted-foreground transition-colors cursor-pointer","aria-label":"Navigation schließen",children:v.jsx(zd,{className:"h-4 w-4","aria-hidden":"true"})})]}),v.jsx("nav",{className:"flex-1 space-y-1 px-3 py-4 overflow-y-auto",children:(()=>{let _=null;return ar.map(w=>{const E=w.group!==_;_=w.group;const j=(h==null?void 0:h.id)===w.id;return v.jsxs("div",{className:"space-y-1",children:[E&&(a?_!==ar[0].group&&v.jsx("div",{className:"my-3 border-t border-border/30"}):v.jsx("div",{className:"mt-5 mb-1.5 px-3 text-[10px] font-bold uppercase tracking-widest text-muted-foreground/40 first:mt-0 select-none",children:w.group})),v.jsxs(ac,{to:w.pfad,onClick:s,"aria-current":j?"page":void 0,className:qe("flex w-full items-center rounded-md text-sm transition-all cursor-pointer",a?"justify-center p-2.5":"gap-3 px-3 py-2",j?a?"nav-active-collapsed":"nav-active":"text-muted-foreground hover:bg-accent hover:text-accent-foreground"),title:a?w.label:void 0,"aria-label":a?w.label:void 0,children:[v.jsx(w.icon,{className:"h-4.5 w-4.5 shrink-0","aria-hidden":"true"}),!a&&v.jsx("span",{className:"truncate",children:w.label})]})]},w.id)})})()}),v.jsx("div",{className:qe("py-3 text-xs text-muted-foreground border-t border-border/40 shrink-0",a?"px-2 text-center":"px-5"),children:a?v.jsx("div",{className:"flex justify-center",children:v.jsx("span",{className:qe("h-2.5 w-2.5 rounded-full ring-2 ring-black/40",f||!o?"bg-red-500":o.engine_reachable?o.brain&&!o.brain.ready?"bg-amber-500 animate-pulse":"bg-emerald-500 animate-pulse":"bg-amber-500"),title:f?"Zentrale antwortet nicht — Anzeigen evtl. veraltet":o?o.engine_reachable?o.brain&&!o.brain.ready?`Hirn offline (${o.brain.model??"fast"})`:"Engine + Hirn online":"Engine offline":"Backend offline"})}):v.jsxs("div",{className:"space-y-2 text-left",children:[f?v.jsxs("span",{className:"flex items-center gap-2 text-red-400",children:[v.jsx("span",{className:"h-2 w-2 rounded-full bg-red-500 animate-pulse"}),v.jsx("span",{className:"truncate",children:"Zentrale antwortet nicht"})]}):o?v.jsxs(v.Fragment,{children:[v.jsxs("span",{className:"flex items-center gap-2",children:[v.jsx("span",{className:qe("h-2 w-2 rounded-full animate-pulse",o.engine_reachable?"bg-emerald-500":"bg-amber-500")}),v.jsxs("span",{className:"truncate",children:["Engine ",o.engine_reachable?"online":"offline"]})]}),o.brain&&!o.brain.ready&&v.jsxs("span",{className:"flex items-center gap-2 text-amber-400",title:`Agent-Hirn '${o.brain.model??"fast"}' lädt nicht/abgestürzt`,children:[v.jsx("span",{className:"h-2 w-2 rounded-full bg-amber-500 animate-pulse"}),v.jsxs("span",{className:"truncate",children:["Hirn offline",o.brain.model?` (${o.brain.model})`:""]})]})]}):v.jsxs("span",{className:"flex items-center gap-2",children:[v.jsx("span",{className:"h-2 w-2 rounded-full bg-red-500"})," ",v.jsx("span",{className:"truncate",children:"Backend offline"})]}),(d==null?void 0:d.versions)&&v.jsxs("div",{className:"space-y-1 text-[9px] text-muted-foreground/60 mt-2 pt-2 border-t border-border/30",children:[v.jsxs("div",{className:"truncate",title:d.versions.mc2?`${d.versions.mc2.branch}-${d.versions.mc2.hash}${d.versions.mc2.dirty?"*":""} (${d.versions.mc2.date})`:"nicht gefunden",children:[v.jsx("strong",{children:"MC2:"})," ",d.versions.mc2?`${d.versions.mc2.hash}${d.versions.mc2.dirty?"*":""}`:"—"]}),v.jsxs("div",{className:"truncate",title:((p=d.versions.engine)==null?void 0:p.type)==="git"?`${d.versions.engine.branch}-${d.versions.engine.hash}${d.versions.engine.dirty?"*":""} (${d.versions.engine.date})`:((g=d.versions.engine)==null?void 0:g.version_text)||"unbekannt",children:[v.jsx("strong",{children:"Engine:"})," ",((b=d.versions.engine)==null?void 0:b.type)==="git"?`${d.versions.engine.hash}${d.versions.engine.dirty?"*":""}`:((S=(y=d.versions.engine)==null?void 0:y.version_text)==null?void 0:S.split(" ").pop())||"—"]}),v.jsxs("div",{className:"truncate",title:d.versions.hermes_agent?`${d.versions.hermes_agent.branch}-${d.versions.hermes_agent.hash}${d.versions.hermes_agent.dirty?"*":""} (${d.versions.hermes_agent.date})`:"nicht gefunden",children:[v.jsx("strong",{children:"Hermes Agent:"})," ",d.versions.hermes_agent?`${d.versions.hermes_agent.hash}${d.versions.hermes_agent.dirty?"*":""}`:"—"]})]})]})})]})}function Bi({titel:a,text:l,fehler:s,onErneut:r}){const o=s instanceof Error?s.stack||s.message:s?String(s):null;return v.jsx("div",{className:"flex min-h-[50vh] items-center justify-center p-6",children:v.jsxs("div",{className:"mc-card max-w-lg space-y-4 p-6",children:[v.jsxs("div",{className:"flex items-center gap-2.5",children:[v.jsx(Pu,{className:"h-5 w-5 shrink-0 text-amber-400","aria-hidden":"true"}),v.jsx("h1",{className:"font-space text-lg font-bold tracking-tight",children:a})]}),v.jsx("p",{className:"text-sm leading-relaxed text-muted-foreground",children:l}),v.jsxs("div",{className:"flex flex-wrap gap-2 pt-1",children:[r&&v.jsxs("button",{onClick:r,className:"flex h-9 cursor-pointer items-center gap-1.5 rounded-lg bg-primary px-4 text-xs font-semibold text-primary-foreground transition-colors hover:bg-primary/90",children:[v.jsx(W2,{className:"h-3.5 w-3.5","aria-hidden":"true"})," Erneut versuchen"]}),v.jsx("a",{href:"/cockpit",className:"flex h-9 items-center rounded-lg border border-border/60 bg-background/20 px-4 text-xs font-semibold text-muted-foreground transition-colors hover:bg-accent",children:"Zum Cockpit"})]}),o&&v.jsxs("details",{className:"pt-1",children:[v.jsx("summary",{className:"cursor-pointer text-[11px] font-semibold uppercase tracking-wider text-muted-foreground/70 hover:text-foreground",children:"Technische Einzelheiten"}),v.jsx("pre",{className:"scrollbar-thin mt-2 max-h-52 overflow-auto rounded-lg border border-border/40 bg-background/40 p-3 font-mono text-[10px] leading-relaxed text-muted-foreground",children:o})]})]})})}function b_(){var J,Q,P,ee,I,de;const{data:a,isError:l}=Od(),{data:s,isError:r}=hv(),{data:o}=mv(),{data:f}=dr(),h=l||r,d=!!a&&!!s,p=$=>{var ne;return(ne=s==null?void 0:s.services.find(B=>B.unit===$))==null?void 0:ne.ok},g=$=>!!(s!=null&&s.services.some(ne=>ne.unit===$)),b=a==null?void 0:a.engine_reachable,y=(J=a==null?void 0:a.brain)==null?void 0:J.ready,S=((Q=a==null?void 0:a.brain)==null?void 0:Q.model)||((P=o==null?void 0:o.models.find($=>$.role==="hermes"))==null?void 0:P.name)||"",_=[];h&&_.push({id:"mc2",label:"Steuerpult (MC2)",icon:F0,critical:!0,status:"down",detail:"Die Zentrale antwortet nicht — alle Anzeigen hier können veraltet sein. Läuft die Box? Deploy aktiv?"}),_.push((()=>{const $={id:"brain",label:"Lucys Hirn",icon:D2,critical:!0};return d?b===!1?{...$,status:"down",detail:"Die Motor-Maschine (Engine) läuft nicht — Lucy kann gerade gar nicht denken.",repair:{kind:"restart",service:"llama-swap",label:"Motor neu starten",needsSudo:!0}}:y===!1?{...$,status:"down",detail:"Lucys Hirn ist gerade eingeschlafen — einmal aufwecken.",repair:S?{kind:"loadModel",model:S,label:"Hirn aufwecken"}:void 0}:{...$,status:"ok",detail:"Wach und ansprechbar."}:{...$,status:"loading",detail:"Wird geprüft …"}})()),_.push((()=>{const $={id:"vision",label:"Lucys Augen",icon:q2,critical:!1};if(!d||!o)return{...$,status:"loading",detail:"Wird geprüft …"};const ne=o.models.find(W=>W.role==="vision");return ne?(o.running??[]).includes(ne.name)?{...$,status:"ok",detail:"Sieht gerade zu (geladen, solange Lucy sie nutzt)."}:{...$,status:"ok",detail:"Augen ruhen — sie laden von selbst, sobald Lucy startet oder ein Bild kommt.",repair:{kind:"loadModel",model:ne.name,label:"Augen wecken"}}:{...$,status:"warn",detail:"Kein Augen-Modell eingerichtet — Lucy kann keine Bilder ansehen."}})()),_.push((()=>{const $={id:"memory",label:"Lucys Gedächtnis",icon:N2,critical:!0},ne=p("hermes-gateway");return!d||ne===void 0?{...$,status:"loading",detail:"Wird geprüft …"}:ne?{...$,status:"ok",detail:"Hermes-Natives Gedächtnis aktiv (SQLite & Embeddings)."}:{...$,status:"down",detail:"Lucy kann sich gerade nichts merken — das Gateway antwortet nicht.",repair:{kind:"restart",service:"hermes-gateway",label:"Gateway neu starten"}}})()),_.push((()=>{const $={id:"gateway",label:"Verbindung (Gateway)",icon:Cd,critical:!0},ne=a?a.gateway_reachable:p("mc2-gateway");if(!d||ne===void 0)return{...$,status:"loading",detail:"Wird geprüft …"};const B=g("mc2-gateway")?"mc2-gateway":"mission-control-2";return ne?{...$,status:"ok",detail:"Apps und IDEs können Lucy erreichen."}:{...$,status:"down",detail:"Der Modell-Gateway antwortet nicht — Lucy und die IDEs erreichen kein Modell.",repair:{kind:"restart",service:B,label:"Gateway neu starten"}}})()),_.push((()=>{const $={id:"steward",label:"Wächter (Steward)",icon:Rd,critical:!1};return d?g("mc2-steward")?p("mc2-steward")?{...$,status:"ok",detail:"Wacht über Warm-Set, Dienste und Gedächtnis."}:{...$,status:"warn",detail:"Der Wächter schläft — niemand meldet gerade Ausfälle oder wärmt Modelle nach.",repair:{kind:"restart",service:"mc2-steward",label:"Wächter neu starten"}}:{...$,status:"ok",detail:"Auf dieser Installation nicht eingerichtet."}:{...$,status:"loading",detail:"Wird geprüft …"}})()),_.push((()=>{const $={id:"agent",label:"Lucys Agent (Hermes)",icon:rd,critical:!0},ne=p("hermes-gateway");return!d||ne===void 0?{...$,status:"loading",detail:"Wird geprüft …"}:ne?{...$,status:"ok",detail:"Lucy ist bereit zu reden und zu handeln."}:{...$,status:"down",detail:"Lucys Agent ist offline — sie reagiert gerade nicht.",repair:{kind:"restart",service:"hermes-gateway",label:"Agent neu starten"}}})()),_.push((()=>{const $={id:"voice",label:"Lucys Stimme",icon:$2,critical:!1},ne=p("voice-service");return!d||ne===void 0?{...$,status:"loading",detail:"Wird geprüft …"}:ne?{...$,status:"ok",detail:"Lucy kann hören und sprechen."}:{...$,status:"warn",detail:"Sprechen ist gerade aus — Tippen geht weiter normal.",repair:{kind:"restart",service:"voice-service",label:"Stimme neu starten"}}})());const w=((ee=f==null?void 0:f.ram)==null?void 0:ee.total)??0,E=((I=f==null?void 0:f.ram)==null?void 0:I.used)??0,j=((de=f==null?void 0:f.ram)==null?void 0:de.percent)??(w>0?Math.min(100,E/w*100):0),R=1024**3,z=w?j>=93?{status:"full",usedGb:E/R,totalGb:w/R,pct:j,text:"Speicher fast voll — Lucy könnte langsamer werden."}:j>=85?{status:"warn",usedGb:E/R,totalGb:w/R,pct:j,text:"Speicher gut gefüllt — noch okay."}:{status:"ok",usedGb:E/R,totalGb:w/R,pct:j,text:"Genug Speicher frei."}:{status:"unknown",usedGb:0,totalGb:0,pct:0,text:"Speicher-Auslastung unbekannt."},L=_.some($=>$.status==="loading"),D=_.filter($=>$.critical&&$.status==="down"),X=_.filter($=>$.status==="warn"||!$.critical&&$.status==="down"),q=z.status==="full";return{verdict:L&&!D.length?"loading":D.length?"problem":X.length||q?"warn":"gut",checks:_,memory:z,problems:D,warns:X,unreachable:h}}function x_({type:a,title:l,message:s,defaultValue:r,autoValue:o,autoLabel:f,onConfirm:h,onCancel:d}){const p=F.useRef(null);return v.jsx("div",{className:"fixed inset-0 z-[99] bg-black/60 backdrop-blur-sm flex items-center justify-center p-4 overscroll-contain",role:"dialog","aria-modal":"true","aria-label":l,children:v.jsxs("div",{className:"w-full max-w-sm rounded-2xl border border-border/80 bg-card p-6 shadow-2xl space-y-4 animate-in fade-in zoom-in-95 duration-200",children:[v.jsxs("div",{className:"flex items-center justify-between border-b border-border/20 pb-2",children:[v.jsx("h3",{className:"text-xs font-bold uppercase tracking-wider text-primary",children:l}),v.jsx("button",{onClick:d||(()=>h()),"aria-label":"Schließen",className:"p-1 rounded hover:bg-accent text-muted-foreground hover:text-foreground cursor-pointer",children:v.jsx(zd,{className:"h-4 w-4","aria-hidden":"true"})})]}),v.jsx("p",{className:"max-h-72 overflow-y-auto whitespace-pre-line text-xs text-muted-foreground leading-relaxed scrollbar-thin",children:s}),a==="prompt"&&v.jsxs("div",{className:"flex gap-2",children:[v.jsx("input",{ref:p,type:"text",defaultValue:r,"aria-label":l,className:"flex-1 h-9 px-3 text-xs bg-background/40 border border-border/60 rounded-lg outline-none focus:border-primary transition-colors text-foreground",autoFocus:!0,onKeyDown:g=>{var b;g.key==="Enter"&&h((b=p.current)==null?void 0:b.value)}}),o!==void 0&&v.jsx("button",{type:"button",onClick:()=>{p.current&&(p.current.value=o)},title:"Setup-bewussten Optimalwert eintragen",className:"h-9 px-3 shrink-0 text-xs font-semibold text-primary border border-primary/50 bg-primary/10 hover:bg-primary/20 rounded-lg transition-colors cursor-pointer",children:f||"Auto"})]}),v.jsxs("div",{className:"flex justify-end gap-3 pt-2",children:[(a==="confirm"||a==="prompt")&&v.jsx("button",{onClick:d,className:"h-8 px-4 flex items-center justify-center text-xs font-semibold text-muted-foreground border border-border/60 bg-background/20 hover:bg-accent rounded-lg transition-colors cursor-pointer",children:"Abbrechen"}),v.jsx("button",{onClick:()=>{var b;const g=a==="prompt"?(b=p.current)==null?void 0:b.value:void 0;h(g)},className:"h-8 px-4 flex items-center justify-center text-xs font-semibold text-primary-foreground bg-primary hover:bg-primary/95 rounded-lg transition-colors cursor-pointer",children:a==="confirm"?"Ja, fortfahren":a==="prompt"?"Übernehmen":"OK"})]})]})})}function S_(){const[a,l]=F.useState(null),s=F.useCallback(()=>l(null),[]),r=F.useCallback((d,p,g)=>{l({type:"alert",title:d,message:p,onConfirm:()=>{l(null),g==null||g()}})},[]),o=F.useCallback((d,p,g,b)=>{l({type:"confirm",title:d,message:p,onConfirm:()=>{l(null),g()},onCancel:()=>{l(null),b==null||b()}})},[]),f=F.useCallback((d,p,g,b,y,S)=>{l({type:"prompt",title:d,message:p,defaultValue:g,autoValue:S==null?void 0:S.autoValue,autoLabel:S==null?void 0:S.autoLabel,onConfirm:_=>{l(null),b(_)},onCancel:()=>{l(null),y==null||y()}})},[]),h=a?v.jsx(x_,{...a}):null;return{showAlert:r,showConfirm:o,showPrompt:f,close:s,dialogElement:h}}const __={ok:"bg-emerald-500",warn:"bg-amber-500",alert:"bg-red-500",muted:"bg-muted-foreground/40",loading:"bg-muted-foreground/40 animate-pulse"},w_={ok:"hover:border-emerald-500/40",warn:"hover:border-amber-500/50",alert:"hover:border-red-500/50",muted:"hover:border-primary/40",loading:"hover:border-border/60"};function Vs({icon:a,title:l,value:s,unit:r,tone:o="muted",hint:f,onClick:h}){return v.jsxs("button",{onClick:h,className:qe("group relative flex flex-col items-start mc-card p-5 text-left cursor-pointer",w_[o]),children:[v.jsxs("div",{className:"mb-4 flex w-full items-center justify-between",children:[v.jsx("span",{className:"flex h-10 w-10 items-center justify-center rounded-xl border border-border/40 bg-background/30 text-foreground/80 transition-colors group-hover:text-primary",children:v.jsx(a,{className:"h-5 w-5"})}),v.jsx("span",{className:qe("h-2.5 w-2.5 rounded-full ring-2 ring-black/40",__[o]),title:f})]}),v.jsxs("div",{className:"flex items-baseline gap-1.5",children:[v.jsx("span",{className:"text-2xl font-bold tracking-tight text-foreground font-space tabular-nums",children:s}),r&&v.jsx("span",{className:"text-xs font-medium text-muted-foreground",children:r})]}),v.jsxs("div",{className:"mt-1 flex w-full items-center justify-between",children:[v.jsx("span",{className:"text-sm font-semibold text-foreground/90",children:l}),v.jsx(Js,{className:"h-4 w-4 text-muted-foreground/40 transition-all group-hover:translate-x-0.5 group-hover:text-primary"})]}),f&&v.jsx("span",{className:"mt-0.5 text-[11px] text-muted-foreground",children:f})]})}function E_(){const{data:a,error:l}=dr(),s=cv(),r=rv();return{sys:F.useMemo(()=>{var f,h;return!a||!s?a:{...a,cpu:{...a.cpu,percent:s.cpu??a.cpu.percent},ram:{...a.ram,percent:s.ram??a.ram.percent,used:s.ram_used??a.ram.used,total:s.ram_total??a.ram.total},gpu:a.gpu?{...a.gpu,busy_percent:s.gpu??a.gpu.busy_percent}:a.gpu,disk:a.disk?{...a.disk,percent:s.disk??a.disk.percent}:a.disk,temp:{cpu:s.temp_cpu??((f=a.temp)==null?void 0:f.cpu),gpu:s.temp_gpu??((h=a.temp)==null?void 0:h.gpu)},uptime_s:s.uptime_s??a.uptime_s}},[a,s]),hist:r,error:l}}const j_=F.lazy(()=>Kt(()=>import("./LiveAreaChartImpl-fVbE8ADw.js"),__vite__mapDeps([12,13,11])));function gv(a){return v.jsx(F.Suspense,{fallback:v.jsx(T_,{height:a.height??176}),children:v.jsx(j_,{...a})})}function T_({height:a}){return v.jsx("div",{style:{height:a},className:"flex w-full items-end","aria-hidden":"true",children:v.jsx("div",{className:"h-px w-full bg-border/40"})})}const pv={"1h":60,"24h":1440},qy={live:"Live","1h":"1 h","24h":"24 h"};function yv({value:a,onChange:l}){return v.jsx("div",{className:"flex rounded-lg border border-border/40 bg-background/30 p-0.5",children:Object.keys(qy).map(s=>v.jsx("button",{onClick:()=>l(s),className:qe("rounded-md px-2 py-0.5 text-[9px] font-bold uppercase tracking-wide transition-all cursor-pointer",a===s?"bg-primary text-primary-foreground":"text-muted-foreground hover:text-foreground"),children:qy[s]},s))})}const M_=[{key:"cpu",label:"CPU",color:"#2dd4bf"},{key:"ram",label:"RAM",color:"#38bdf8"},{key:"gpu",label:"GPU",color:"#a78bfa"},{key:"disk",label:"Disk",color:"#fbbf24"}];function A_(){var b,y,S,_;const{sys:a,hist:l}=E_(),[s,r]=F.useState("live"),o=dv(s==="live"?60:pv[s],s!=="live"),f=F.useMemo(()=>{var w;return s==="live"?l:(((w=o.data)==null?void 0:w.points)??[]).map(E=>({t:E.t*1e3,cpu:E.cpu,ram:E.ram,gpu:E.gpu,disk:E.disk}))},[s,l,o.data]),h=!!(a!=null&&a.gpu&&a.gpu.busy_percent!=null&&a.gpu.gtt_used!=null&&a.gpu.gtt_total!=null),d=M_.filter(w=>w.key!=="gpu"||h),p={cpu:(b=a==null?void 0:a.cpu)==null?void 0:b.percent,ram:(y=a==null?void 0:a.ram)==null?void 0:y.percent,gpu:h?a.gpu.busy_percent:null,disk:(S=a==null?void 0:a.disk)==null?void 0:S.percent},g={cpu:(_=a==null?void 0:a.cpu)!=null&&_.cores?`${a.cpu.cores} Cores`:"",ram:a?`${xn(a.ram.used)}/${xn(a.ram.total)} GB`:"",gpu:h?`${xn(a.gpu.gtt_used)}/${xn(a.gpu.gtt_total)} GB`:"",disk:a!=null&&a.disk?`${xn(a.disk.used)}/${xn(a.disk.total)} GB`:""};return v.jsxs("div",{className:"flex flex-col justify-between mc-card p-5",children:[v.jsxs("div",{children:[v.jsxs("div",{className:"mb-3 flex items-center gap-2",children:[v.jsx(H2,{className:"h-4.5 w-4.5 text-primary"}),v.jsx("h2",{className:"text-sm font-semibold uppercase tracking-wide text-foreground",children:"System-Status"}),s==="live"&&v.jsxs("span",{className:"ml-1 inline-flex items-center gap-1 text-[10px] font-medium text-muted-foreground/70",children:[v.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-pulse"})," live"]}),v.jsx("div",{className:"ml-auto",children:v.jsx(yv,{value:s,onChange:r})})]}),a?v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"mb-2 grid grid-cols-2 gap-x-4 gap-y-1.5",children:d.map(w=>v.jsxs("div",{className:"flex min-w-0 items-center gap-1.5",children:[v.jsx("span",{className:"h-2 w-2 shrink-0 rounded-full",style:{background:w.color}}),v.jsx("span",{className:"shrink-0 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground",children:w.label}),v.jsxs("span",{className:"shrink-0 font-mono text-xs font-bold tabular-nums text-foreground",children:[Math.round(p[w.key]??0),"%"]}),g[w.key]&&v.jsx("span",{className:"truncate font-mono text-[10px] text-muted-foreground/60",children:g[w.key]})]},w.key))}),s!=="live"&&f.length===0&&v.jsx("div",{className:"flex h-44 items-center justify-center text-xs text-muted-foreground",children:o.isLoading?"Verlauf wird geladen …":"Noch kein Verlauf — der Sammler baut die Historie gerade erst auf."}),(s==="live"||f.length>0)&&v.jsx(gv,{data:f,series:d,unit:"%",yMode:"percent",height:176,showTime:!0})]}):v.jsx("div",{className:"flex h-44 items-center justify-center text-xs text-muted-foreground",children:"Lade Systemdaten…"})]}),(a==null?void 0:a.temp)&&(a.temp.cpu||a.temp.gpu)&&v.jsxs("div",{className:"mt-3 flex gap-4 border-t border-border/30 pt-3 font-mono text-xs text-muted-foreground/80",children:[a.temp.cpu!=null&&v.jsxs("span",{children:["CPU Temp: ",a.temp.cpu," °C"]}),a.temp.gpu!=null&&v.jsxs("span",{children:["GPU Temp: ",a.temp.gpu," °C"]})]})]})}const Oi=[{key:"stt_ms",label:"STT",color:"#f59e0b"},{key:"vision_ms",label:"Sehen",color:"#a78bfa"},{key:"hirn_ms",label:"Hirn",color:"#2dd4bf"},{key:"gen_ms",label:"Antwort",color:"#60a5fa"}],Fs=a=>a==null?"–":`${(a/1e3).toLocaleString("de-DE",{minimumFractionDigits:1,maximumFractionDigits:1})} s`;function C_(a){const l=Math.max(0,Date.now()/1e3-a);return l<60?`vor ${Math.round(l)} s`:l<3600?`vor ${Math.round(l/60)} min`:`vor ${Math.round(l/3600)} h`}function fd(a){return Oi.reduce((l,s)=>l+(a[s.key]??0),0)}function R_(a){let l=null;for(const s of Oi){const r=a[s.key];r!=null&&(l==null||r>l.ms)&&(l={label:s.label,color:s.color,ms:r})}return l}function z_({t:a,scale:l}){const s=Oi.map(r=>`${r.label} ${Fs(a[r.key])}`).join(" · ");return v.jsxs("div",{className:"flex items-center gap-2.5",children:[v.jsx("span",{className:"w-14 shrink-0 text-right font-mono text-[10px] text-muted-foreground/60",children:C_(a.ts)}),v.jsxs("div",{className:"relative h-4 flex-1 overflow-hidden rounded-sm bg-muted/25",title:s,children:[v.jsx("div",{className:"absolute inset-0 flex",children:Oi.map(r=>{const o=a[r.key];return!o||o<=0?null:v.jsx("div",{style:{width:`${o/l*100}%`,background:r.color},className:"h-full first:rounded-l-sm"},r.key)})}),a.error&&v.jsx("div",{className:"absolute inset-0 flex items-center justify-center bg-rose-500/15 text-[10px] font-semibold text-rose-300",children:"Fehler"})]}),v.jsx("span",{className:"w-12 shrink-0 text-right font-mono text-[11px] font-semibold tabular-nums text-foreground",children:a.error?"–":Fs(fd(a))})]})}function N_(){const{data:a}=l_(12),l=a??[],s=Math.max(1,...l.map(f=>fd(f))),r=l[0],o=r?R_(r):null;return v.jsxs("div",{className:"mc-card p-5",children:[v.jsxs("div",{className:"mb-3 flex items-start justify-between gap-3",children:[v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(G2,{className:"h-4.5 w-4.5 text-primary"}),v.jsx("h2",{className:"text-sm font-semibold uppercase tracking-wide text-foreground",children:"Latenz je Turn"}),v.jsxs("span",{className:"ml-1 inline-flex items-center gap-1 text-[10px] font-medium text-muted-foreground/70",children:[v.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-pulse"})," live"]})]}),r?v.jsxs("div",{className:"mt-2 flex items-baseline gap-2",children:[v.jsx("span",{className:`font-space text-3xl font-bold tracking-tight tabular-nums ${r.error?"text-rose-400":"text-foreground"}`,children:r.error?"Fehler":Fs(fd(r))}),v.jsxs("span",{className:"text-xs text-muted-foreground",children:["letzter Turn",!r.error&&o&&v.jsxs(v.Fragment,{children:[" · Täter: ",v.jsx("span",{style:{color:o.color},className:"font-semibold",children:o.label})," ",Fs(o.ms)]})]})]}):v.jsx("div",{className:"mt-2 text-xs text-muted-foreground",children:"Noch kein Voice-Turn aufgezeichnet."}),r&&!r.error&&v.jsx("div",{className:"mt-0.5 font-mono text-[11px] text-muted-foreground/70",children:Oi.filter(f=>r[f.key]!=null).map(f=>`${f.label} ${Fs(r[f.key])}`).join(" · ")})]}),v.jsx("div",{className:"flex shrink-0 flex-col items-end gap-1 pt-1",children:Oi.map(f=>v.jsxs("div",{className:"flex items-center gap-1.5",children:[v.jsx("span",{className:"h-2 w-2 rounded-full",style:{background:f.color}}),v.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-wider text-muted-foreground",children:f.label})]},f.key))})]}),l.length>0?v.jsx("div",{className:"space-y-1.5",children:l.map(f=>v.jsx(z_,{t:f,scale:s},f.id))}):v.jsx("div",{className:"flex h-[120px] items-center justify-center px-6 text-center text-xs text-muted-foreground",children:"Sprich einmal mit Lucy — dann erscheint hier der Zeit-Wasserfall pro Turn, damit man den einen Hänger sofort sieht."}),v.jsx("div",{className:"mt-3 border-t border-border/30 pt-2 text-[10px] leading-relaxed text-muted-foreground/70",children:'„Hirn" = Zeit bis zum ersten Wort (Agent + Gedächtnis-Suche + Modell); Tool-Runden stecken in „Antwort". Reine Telegram-Turns laufen an MC2 vorbei und erscheinen hier nicht.'})]})}const Gy=[{key:"prompt",label:"Prompt",color:"#f59e0b"},{key:"completion",label:"Antwort",color:"#2dd4bf"}];function D_(){const{data:a}=kd(),l=uv(),[s,r]=F.useState("live"),o=dv(s==="live"?60:pv[s],s!=="live"),f=F.useMemo(()=>{var b;if(s==="live")return l;const p=((b=o.data)==null?void 0:b.points)??[],g=[];for(let y=1;y<p.length;y++){const S=p[y-1],_=p[y];if(S.tp==null||_.tp==null||S.tc==null||_.tc==null)continue;const w=Math.max(_.t-S.t,1);g.push({t:_.t*1e3,prompt:Math.max(0,(_.tp-S.tp)/w),completion:Math.max(0,(_.tc-S.tc)/w)})}return g},[s,l,o.data]),h=l[l.length-1],d=h?Math.round(h.prompt+h.completion):0;return v.jsxs("div",{className:"mc-card p-5",children:[v.jsxs("div",{className:"mb-3 flex items-start justify-between gap-3",children:[v.jsxs("div",{children:[v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx(z2,{className:"h-4.5 w-4.5 text-primary"}),v.jsx("h2",{className:"text-sm font-semibold uppercase tracking-wide text-foreground",children:"Token-Durchsatz"}),s==="live"&&v.jsxs("span",{className:"ml-1 inline-flex items-center gap-1 text-[10px] font-medium text-muted-foreground/70",children:[v.jsx("span",{className:"h-1.5 w-1.5 rounded-full bg-emerald-500 animate-pulse"})," live"]})]}),a&&v.jsxs("div",{className:"mt-2 flex items-baseline gap-2",children:[v.jsx("span",{className:"font-space text-3xl font-bold tracking-tight text-foreground tabular-nums",children:d.toLocaleString("de-DE")}),v.jsx("span",{className:"text-xs text-muted-foreground",children:"tok/s aktuell"})]}),a&&v.jsxs("div",{className:"mt-0.5 space-y-0.5 font-mono text-[11px] text-muted-foreground/70",children:[v.jsxs("div",{children:[a.total_tokens.toLocaleString("de-DE")," Tokens gesamt · ",v.jsxs("span",{className:"text-emerald-400/90",children:[a.saved_eur.toLocaleString("de-DE",{minimumFractionDigits:2})," € gespart"]})]}),v.jsxs("div",{className:"text-muted-foreground/55",children:["Input ",a.prompt_tokens.toLocaleString("de-DE")," · Output ",a.completion_tokens.toLocaleString("de-DE")]})]})]}),v.jsxs("div",{className:"flex shrink-0 flex-col items-end gap-2 pt-1",children:[v.jsx(yv,{value:s,onChange:r}),v.jsx("div",{className:"flex flex-col items-end gap-1.5",children:Gy.map(p=>v.jsxs("div",{className:"flex items-center gap-1.5",children:[v.jsx("span",{className:"h-2 w-2 rounded-full",style:{background:p.color}}),v.jsx("span",{className:"text-[11px] font-semibold uppercase tracking-wider text-muted-foreground",children:p.label}),v.jsx("span",{className:"font-mono text-xs font-bold tabular-nums text-foreground",children:Math.round((h==null?void 0:h[p.key])??0)})]},p.key))})]})]}),s!=="live"&&f.length===0?v.jsx("div",{className:"flex h-[150px] items-center justify-center text-xs text-muted-foreground",children:o.isLoading?"Verlauf wird geladen …":"Noch kein Verlauf — der Sammler baut die Historie gerade erst auf."}):a?v.jsx(gv,{data:f,series:Gy,unit:" tok/s",yMode:"auto",height:150,showTime:!0}):v.jsx("div",{className:"flex h-[150px] items-center justify-center text-xs text-muted-foreground",children:"Lade Durchsatz…"}),v.jsx("div",{className:"mt-2 border-t border-border/30 pt-2 text-[10px] text-muted-foreground/70",children:"Durchsatz aus dem Gateway abgeleitet (Prefill vs. Generierung). Flach bei Leerlauf."})]})}function Ud(){const a=fr();return l=>a({to:".",search:s=>({...s,system:l})})}function O_({onNavigate:a}){var ne,B,W,re;const l=Ud(),{data:s}=mv(),{data:r}=hv(),{data:o}=r_(),{data:f}=s_(),{data:h}=u_(),{data:d}=n_(),{data:p}=a_(),g=b_(),{showAlert:b,dialogElement:y}=S_(),S=yd(),[_,w]=F.useState({});async function E(ce,Se){w(M=>({...M,[ce]:!0}));try{if(Se.kind==="loadModel")await De(`/api/models/${encodeURIComponent(Se.model)}/load`,{method:"POST"});else{const M=await De("/api/maintenance/restart",{method:"POST",body:JSON.stringify({service:Se.service})});M.ok||b("Reparatur nicht ganz geklappt",(M.err||"Unbekannter Fehler")+(Se.needsSudo?`
|
||
|
||
Tipp: Dafür wird evtl. das Box-Passwort gebraucht (oben rechts hinterlegen).`:""))}S.invalidateQueries({queryKey:Ge.health}),S.invalidateQueries({queryKey:Ge.services}),S.invalidateQueries({queryKey:Ge.models})}catch(M){b("Reparatur fehlgeschlagen",String((M==null?void 0:M.message)||M))}finally{w(M=>({...M,[ce]:!1}))}}const j=((ne=s==null?void 0:s.running)==null?void 0:ne.length)??0,R=(r==null?void 0:r.services.filter(ce=>ce.ok).length)??0,z=(r==null?void 0:r.services.length)??0,L=z-R,D=(o?(o.os>0?1:0)+(o.engine>0?1:0)+(o.swap>0?1:0)+(o.models>0?1:0):0)+(((B=o==null?void 0:o.components)==null?void 0:B.filter(ce=>ce.update===!0).length)??0),X=d!=null&&d.available?d.open_count:0,q=p!=null&&p.available?p.items.filter(ce=>ce.status==="blocked").length:0,Y=h?[h.gateway,h.memory,h.desktop_gateway]:[],J=Y.filter(ce=>ce==null?void 0:ce.ok).length,Q=h?h.gateway.ok?h.memory.ok?h.desktop_gateway.ok?"":"Desktop-Gateway":"Gedächtnis-Leitung":"Modell-Leitung":"",P=(W=s==null?void 0:s.models)==null?void 0:W.find(ce=>ce.role==="hermes"),ee=P!=null&&P.name?(re=P.name.split("/").pop())==null?void 0:re.replace(/\.gguf$/i,""):"",I=r==null?void 0:r.services.filter(ce=>!ce.ok).map(ce=>ce.name).join(", "),de=o?[o.os>0&&"OS",o.engine>0&&"Engine",o.swap>0&&"Swap",o.models>0&&"Modelle"].filter(Boolean):[],$=de.length>0?de.join(" + "):"";return v.jsxs("div",{className:"space-y-6",children:[v.jsxs("div",{children:[v.jsx("h1",{className:"bg-gradient-to-r from-foreground via-foreground to-primary bg-clip-text font-space text-2xl font-bold tracking-tight text-transparent",children:"Cockpit"}),v.jsx("p",{className:"text-sm text-muted-foreground",children:"Deine Box auf einen Blick — Details hinter jeder Kachel."})]}),v.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6 items-start",children:[v.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[v.jsx(k_,{verdict:g.verdict,memory:g.memory,warns:g.warns,problems:g.problems}),v.jsxs("section",{children:[v.jsx(Lf,{children:"Leistung"}),v.jsx("div",{className:"grid gap-4 md:grid-cols-1",children:v.jsx(A_,{})}),v.jsx("div",{className:"mt-4",children:v.jsx(N_,{})}),v.jsx("div",{className:"mt-4",children:v.jsx(D_,{})})]}),v.jsxs("section",{children:[v.jsx(Lf,{children:"Bereiche"}),v.jsxs("div",{className:"grid gap-4 grid-cols-2 md:grid-cols-3",children:[v.jsx(Vs,{icon:Md,title:"Auftragsbuch",value:d!=null&&d.available?X:"—",unit:X===1?"Vorschlag":"Vorschläge",tone:d?q>0||X>0?"warn":"ok":"loading",hint:q>0?`${q} Karte${q===1?"":"n"} wartet auf deine Antwort`:X>0?`${X} offene Patches`:"Keine ausstehenden Vorschläge",onClick:()=>a("auftraege")}),v.jsx(Vs,{icon:Z0,title:"Modelle",value:j,unit:"warm",tone:j>0?"ok":"muted",hint:ee?`Hirn: ${ee}`:"Kein Hermes-Modell geladen",onClick:()=>a("models")}),v.jsx(Vs,{icon:F0,title:"Dienste",value:r?`${R}/${z}`:"…",unit:"laufen",tone:r?L>0?"warn":"ok":"loading",hint:I?`Ausfall: ${I}`:"Alle Dienste online",onClick:()=>l("wartung")}),v.jsx(Vs,{icon:Rd,title:"Updates",value:o?D>0?D:"0":"…",unit:D>0?"bereit":"aktuell",tone:o?D>0?"warn":"ok":"loading",hint:D>0?`Verfügbar: ${$}`:"Alles auf dem neuesten Stand",onClick:()=>l("wartung")}),v.jsx(Vs,{icon:Cd,title:"Verbinden",value:h?`${J}/${Y.length}`:"…",unit:"Leitungen",tone:h?J===Y.length?"ok":"warn":"loading",hint:Q?`Gestört: ${Q}`:"Hermes Desktop & IDEs bereit",onClick:()=>a("connect")})]})]})]}),v.jsxs("div",{className:"space-y-6",children:[v.jsx(U_,{problems:g.problems,pendingCount:D,openAuftraege:X,blockedIdeen:q,busy:_,onRepair:E,onNavigate:a}),v.jsxs("section",{children:[v.jsx(Lf,{children:"Werkzeuge & Diagnose"}),v.jsx(L_,{agent:f,svcErrors:L,onNavigate:a})]})]})]}),y]})}function Lf({children:a}){return v.jsx("p",{className:"mb-2 ml-0.5 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground/60",children:a})}function k_({verdict:a,memory:l,warns:s,problems:r}){const o=s.length?`${s[0].label}: ${s[0].detail}${s.length>1?` (+${s.length-1} weitere)`:""}`:l.status==="full"?l.text:"Nichts Schlimmes — nur ein Hinweis.",f=r.length?`${r[0].label}: ${r[0].detail}${r.length>1?` (+${r.length-1} weitere)`:""}`:"Ein wichtiger Dienst hakt.",h={loading:{ring:"border-border/60 bg-card/45",icon:Ad,iconCls:"text-muted-foreground animate-spin",title:"Box wird geprüft …",sub:"Einen Moment."},gut:{ring:"border-emerald-500/40 bg-emerald-500/5",icon:V2,iconCls:"text-emerald-400",title:"Box gesund",sub:"Alle wichtigen Dienste laufen."},warn:{ring:"border-amber-500/40 bg-amber-500/5",icon:Pu,iconCls:"text-amber-400",title:"Kleinigkeit an der Box",sub:o},problem:{ring:"border-red-500/50 bg-red-500/5",icon:Pu,iconCls:"text-red-400",title:"Box braucht Hilfe",sub:f}}[a],d=h.icon,p={ok:"text-emerald-400",warn:"text-amber-400",full:"text-red-400",unknown:"text-muted-foreground"}[l.status],g={ok:"bg-emerald-500",warn:"bg-amber-500",full:"bg-red-500",unknown:"bg-muted-foreground/40"}[l.status];return v.jsxs("div",{className:qe("flex flex-col gap-4 rounded-2xl border p-5 shadow-lg shadow-black/15 backdrop-blur-md transition-colors sm:flex-row sm:items-center sm:justify-between h-full",h.ring),children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-xl border border-border/40 bg-background/30",children:v.jsx(d,{className:qe("h-6 w-6",h.iconCls)})}),v.jsxs("div",{className:"min-w-0",children:[v.jsx("h2",{className:"text-base font-bold tracking-tight text-foreground",children:h.title}),v.jsx("p",{className:"text-xs text-muted-foreground",children:h.sub})]})]}),v.jsxs("div",{className:"w-full max-w-[16rem] rounded-xl border border-border/30 bg-background/20 p-3",children:[v.jsxs("div",{className:"mb-1.5 flex items-center justify-between text-[11px]",children:[v.jsxs("span",{className:"flex items-center gap-1.5 font-semibold uppercase tracking-wider text-muted-foreground",children:[v.jsx(Q2,{className:"h-3.5 w-3.5"})," Speicher"]}),v.jsx("span",{className:qe("font-mono font-bold",p),children:l.status==="unknown"?"—":`${l.usedGb.toFixed(1)} / ${l.totalGb.toFixed(1)} GB`})]}),v.jsx("div",{className:"h-2 w-full overflow-hidden rounded-full border border-border/30 bg-background/50",children:v.jsx("div",{className:qe("h-full rounded-full transition-all duration-500",g),style:{width:`${l.pct}%`}})})]})]})}function U_({problems:a,pendingCount:l,openAuftraege:s,blockedIdeen:r,busy:o,onRepair:f,onNavigate:h}){const d=Ud(),p=l>0,g=s>0,b=r>0,y=a.length===0&&!p&&!g&&!b;return v.jsx("div",{className:"h-full flex flex-col justify-between",children:y?v.jsxs("div",{className:"flex items-center gap-3 rounded-2xl border border-emerald-500/25 bg-emerald-500/5 p-4 h-full",children:[v.jsx(O2,{className:"h-5 w-5 shrink-0 text-emerald-400"}),v.jsxs("div",{children:[v.jsx("p",{className:"text-sm font-semibold text-foreground",children:"Nichts zu tun"}),v.jsx("p",{className:"text-xs text-muted-foreground",children:"Alles läuft. Du musst gerade nichts abnicken."})]})]}):v.jsxs("div",{className:"space-y-2 h-full flex flex-col justify-center",children:[a.map(S=>v.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-3 rounded-2xl border border-red-500/25 bg-red-500/5 p-4",children:[v.jsxs("div",{className:"flex min-w-0 items-center gap-3 w-full",children:[v.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-red-500/30 bg-background/30 text-red-300",children:v.jsx(S.icon,{className:"h-4.5 w-4.5"})}),v.jsxs("div",{className:"min-w-0 flex-1",children:[v.jsx("p",{className:"text-sm font-bold text-foreground",children:S.label}),v.jsx("p",{className:"truncate text-xs text-muted-foreground",children:S.detail})]})]}),S.repair&&v.jsxs("button",{onClick:()=>S.repair&&f(S.id,S.repair),disabled:!!o[S.id],className:"flex h-9 shrink-0 items-center gap-1.5 rounded-lg border border-red-500/40 bg-red-500/10 px-3 text-[11px] font-bold uppercase tracking-wide text-red-300 transition-all hover:bg-red-500/20 cursor-pointer disabled:opacity-60 w-full sm:w-auto justify-center",children:[o[S.id]?v.jsx(Ad,{className:"h-3.5 w-3.5 animate-spin"}):v.jsx(t3,{className:"h-3.5 w-3.5"}),S.repair.label]})]},S.id)),b&&v.jsxs("button",{onClick:()=>h("auftraege"),className:"flex w-full items-center justify-between gap-3 rounded-2xl border border-red-500/30 bg-red-500/5 p-4 text-left transition-all hover:bg-red-500/10 cursor-pointer",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-red-500/30 bg-background/30 text-red-300",children:v.jsx(J0,{className:"h-4.5 w-4.5"})}),v.jsxs("div",{children:[v.jsxs("p",{className:"text-sm font-bold text-foreground",children:[r," Karte",r===1?"":"n"," braucht deine Antwort"]}),v.jsx("p",{className:"text-xs text-muted-foreground",children:"Die Box hängt an einer Frage und wartet auf dich."})]})]}),v.jsx(Js,{className:"h-4 w-4 shrink-0 text-red-300/70"})]}),g&&v.jsxs("button",{onClick:()=>h("auftraege"),className:"flex w-full items-center justify-between gap-3 rounded-2xl border border-primary/30 bg-primary/5 p-4 text-left transition-all hover:bg-primary/10 cursor-pointer",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-primary/30 bg-background/30 text-primary",children:v.jsx(Md,{className:"h-4.5 w-4.5"})}),v.jsxs("div",{children:[v.jsxs("p",{className:"text-sm font-bold text-foreground",children:[s," Vorschl",s===1?"ag":"äge"," im Auftragsbuch"]}),v.jsx("p",{className:"text-xs text-muted-foreground",children:"Annehmen oder ablehnen."})]})]}),v.jsx(Js,{className:"h-4 w-4 shrink-0 text-primary/70"})]}),p&&v.jsxs("button",{onClick:()=>d("wartung"),className:"flex w-full items-center justify-between gap-3 rounded-2xl border border-amber-500/30 bg-amber-500/5 p-4 text-left transition-all hover:bg-amber-500/10 cursor-pointer",children:[v.jsxs("div",{className:"flex items-center gap-3",children:[v.jsx("span",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-lg border border-amber-500/30 bg-background/30 text-amber-300",children:v.jsx(Rd,{className:"h-4.5 w-4.5"})}),v.jsxs("div",{children:[v.jsxs("p",{className:"text-sm font-bold text-foreground",children:[l," Update",l===1?"":"s"," bereit"]}),v.jsx("p",{className:"text-xs text-muted-foreground",children:"Ansehen und entscheiden."})]})]}),v.jsx(Js,{className:"h-4 w-4 shrink-0 text-amber-300/70"})]})]})})}function L_({agent:a,svcErrors:l,onNavigate:s}){const r=Ud(),o=[{label:"Hermes Agent",status:a?a.gateway_reachable?"Bereit":"Offline":"…",tone:a?a.gateway_reachable?"ok":"alert":"loading",action:()=>s("agent")},{label:"Konsole (Box-Shell)",status:a?a.box_console_reachable?"Bereit":"Offline":"…",tone:a?a.box_console_reachable?"ok":"warn":"loading",action:()=>s("konsole")},{label:"Systemlogs & Diagnose",status:l>0?`${l} Fehler`:"Keine Fehler",tone:l>0?"alert":"ok",action:()=>r("logs")},{label:"Wissens-Vault",status:"Öffnen",tone:"muted",action:()=>s("wissen")},{label:"Chronik & Zeitmaschine",status:"Öffnen",tone:"muted",action:()=>s("chronik")}];return v.jsx("div",{className:"rounded-2xl border border-border/60 bg-card/30 p-4 space-y-3 shadow-sm",children:v.jsx("div",{className:"divide-y divide-border/20",children:o.map((f,h)=>{const d={loading:"bg-muted-foreground/45 animate-pulse",ok:"bg-emerald-500 shadow-[0_0_8px_rgba(16,185,129,0.4)]",warn:"bg-amber-500 shadow-[0_0_8px_rgba(245,158,11,0.4)]",alert:"bg-red-500 shadow-[0_0_8px_rgba(239,68,68,0.4)]",muted:"bg-muted-foreground/30"}[f.tone];return v.jsxs("button",{onClick:f.action,className:"w-full py-2.5 px-1.5 flex items-center justify-between text-left hover:bg-card/45 rounded-lg transition-all group cursor-pointer text-xs",children:[v.jsx("span",{className:"text-muted-foreground group-hover:text-foreground transition-colors font-medium",children:f.label}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("span",{className:qe("text-[10px] font-semibold font-mono",f.tone==="ok"?"text-emerald-400":f.tone==="warn"?"text-amber-400":f.tone==="alert"?"text-red-400":"text-muted-foreground/60"),children:f.status}),v.jsx("span",{className:qe("h-1.5 w-1.5 rounded-full",d)})]})]},h)})})})}const B_=F.lazy(()=>Kt(()=>import("./ModelsView-V-6628G4.js"),__vite__mapDeps([14,15,16,17,3,9,18,19])).then(a=>({default:a.ModelsView}))),H_=F.lazy(()=>Kt(()=>import("./ConnectView-Dt6Lwemi.js"),__vite__mapDeps([20,5,18])).then(a=>({default:a.ConnectView}))),q_=F.lazy(()=>Kt(()=>import("./AgentView-D2__n-4R.js"),__vite__mapDeps([21,22,6,7,4])).then(a=>({default:a.AgentView}))),G_=F.lazy(()=>Kt(()=>import("./KonsoleView-BLCojfPx.js"),__vite__mapDeps([23,7,1])).then(a=>({default:a.KonsoleView}))),Q_=F.lazy(()=>Kt(()=>import("./GuideView-Bvyit7_l.js"),__vite__mapDeps([24,17,19,4])).then(a=>({default:a.GuideView}))),V_=F.lazy(()=>Kt(()=>import("./AuftragsbuchView-CqEdIU-n.js"),__vite__mapDeps([25,22,1,5,6,18,26])).then(a=>({default:a.AuftragsbuchView}))),Y_=F.lazy(()=>Kt(()=>import("./IdeenAnsicht-Bsg00SpL.js"),__vite__mapDeps([27,22,16,26,1,2,19,18,6])).then(a=>({default:a.IdeenView}))),K_=F.lazy(()=>Kt(()=>import("./SkillsView-G-9KsZTQ.js"),__vite__mapDeps([28,15])).then(a=>({default:a.SkillsView}))),X_=F.lazy(()=>Kt(()=>import("./ChronikView-Cl1i2WVT.js"),__vite__mapDeps([29,3])).then(a=>({default:a.ChronikView}))),Z_=F.lazy(()=>Kt(()=>import("./WissenView-DHOJ-3q4.js"),__vite__mapDeps([30,13,1,3,2])).then(a=>({default:a.WissenView}))),J_=a=>{const l=a.system;return l==="wartung"||l==="logs"?{system:l}:{}},_l=h2({component:v_,validateSearch:J_,notFoundComponent:()=>v.jsx(Bi,{titel:"Diese Seite gibt es nicht",text:"Der Link zeigt auf eine Ansicht, die Mission Control nicht kennt. Vielleicht stammt er aus einer älteren Fassung."})}),F_=ki({getParentRoute:()=>_l,path:"/",beforeLoad:()=>{throw S0({to:"/cockpit"})}});function wl(a,l){return ki({getParentRoute:()=>_l,path:a,component:l,errorComponent:({error:s,reset:r})=>v.jsx(Bi,{titel:"Diese Ansicht ist abgestürzt",text:"Der Rest von Mission Control läuft weiter. Erneut versuchen — oder in eine andere Ansicht wechseln.",fehler:s,onErneut:r})})}function $_(){const a=fr();return v.jsx(O_,{onNavigate:l=>{const s=ar.find(r=>r.id===l);s&&a({to:s.pfad})}})}const W_=wl("/cockpit",()=>v.jsx($_,{})),P_=wl("/auftraege",()=>v.jsx(V_,{})),I_=wl("/skills",()=>v.jsx(K_,{})),e5=ki({getParentRoute:()=>_l,path:"/chronik",validateSearch:a=>typeof a.q=="string"&&a.q?{q:a.q}:{},component:()=>v.jsx(X_,{}),errorComponent:({error:a,reset:l})=>v.jsx(Bi,{titel:"Die Chronik ist abgestürzt",text:"Der Rest läuft weiter.",fehler:a,onErneut:l})}),t5=wl("/verbinden",()=>v.jsx(H_,{})),n5=wl("/konsole",()=>v.jsx(G_,{})),a5=wl("/anleitung",()=>v.jsx(Q_,{})),l5=wl("/agent",()=>v.jsx(q_,{})),i5=ki({getParentRoute:()=>_l,path:"/ideen",validateSearch:a=>typeof a.offen=="string"&&a.offen?{offen:a.offen}:{},component:()=>v.jsx(Y_,{}),errorComponent:({error:a,reset:l})=>v.jsx(Bi,{titel:"Die Ideen-Ansicht ist abgestürzt",text:"Der Rest läuft weiter.",fehler:a,onErneut:l})}),s5=ki({getParentRoute:()=>_l,path:"/wissen",validateSearch:a=>({...typeof a.datei=="string"&&a.datei?{datei:a.datei}:{},...typeof a.suche=="string"&&a.suche?{suche:a.suche}:{}}),component:()=>v.jsx(Z_,{}),errorComponent:({error:a,reset:l})=>v.jsx(Bi,{titel:"Die Wissens-Ansicht ist abgestürzt",text:"Der Rest läuft weiter.",fehler:a,onErneut:l})}),r5=ki({getParentRoute:()=>_l,path:"/modelle",validateSearch:a=>{const l=a.reiter;return l==="werkbank"||l==="routing"||l==="discover"?{reiter:l}:{}},component:()=>v.jsx(B_,{}),errorComponent:({error:a,reset:l})=>v.jsx(Bi,{titel:"Der Modell-Manager ist abgestürzt",text:"Der Rest läuft weiter.",fehler:a,onErneut:l})}),u5=_l.addChildren([F_,W_,i5,P_,I_,e5,s5,t5,n5,a5,r5,l5]),c5=_2({routeTree:u5,scrollRestoration:!0,defaultPreload:!1});class o5 extends cn.Component{constructor(){super(...arguments);zu(this,"state",{error:null})}static getDerivedStateFromError(s){return{error:s}}componentDidCatch(s,r){console.error("Unbehandelter UI-Fehler:",s,r.componentStack)}render(){return this.state.error?v.jsx("div",{className:"min-h-screen flex items-center justify-center bg-neutral-950 text-neutral-200 p-8",children:v.jsxs("div",{className:"max-w-lg space-y-4 text-center",children:[v.jsx("div",{className:"text-2xl",children:"Da ist etwas schiefgelaufen."}),v.jsx("div",{className:"text-sm text-neutral-400 break-all",children:this.state.error.message}),v.jsx("button",{className:"px-4 py-2 rounded-lg bg-neutral-800 hover:bg-neutral-700 border border-neutral-700",onClick:()=>window.location.reload(),children:"Neu laden"})]})}):this.props.children}}const f5=Object.fromEntries(ar.map(a=>[a.id,a.pfad]));function d5(){const a=window.location.hash.replace(/^#\/?/,"");if(!a)return;const l=f5[a];l&&window.history.replaceState(null,"",l+window.location.search)}const Bf="mc_neuladen_wegen_version";function h5(){window.addEventListener("vite:preloadError",a=>{sessionStorage.getItem(Bf)||(a.preventDefault(),sessionStorage.setItem(Bf,"1"),window.location.reload())}),window.addEventListener("load",()=>{window.setTimeout(()=>sessionStorage.removeItem(Bf),5e3)})}d5();h5();const m5=new _x({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1,staleTime:5e3}}});$1.createRoot(document.getElementById("root")).render(v.jsx(cn.StrictMode,{children:v.jsx(o5,{children:v.jsx(wx,{client:m5,children:v.jsx(j2,{router:c5})})})}));export{J2 as $,H0 as A,D2 as B,O2 as C,N5 as D,q2 as E,u_ as F,Js as G,Q2 as H,K2 as I,U2 as J,L2 as K,Ad as L,A5 as M,z2 as N,s_ as O,y5 as P,rd as Q,W2 as R,e3 as S,Pu as T,ky as U,D5 as V,t3 as W,zd as X,F0 as Y,Z0 as Z,Cd as _,T5 as a,G2 as a0,I2 as a1,n_ as a2,a_ as a3,B5 as a4,Md as a5,x5 as a6,J0 as a7,or as a8,qf as a9,X1 as aA,$s as aa,bx as ab,pt as ac,Rt as ad,n0 as ae,Qe as af,M5 as ag,U5 as ah,S5 as ai,Y2 as aj,Rd as ak,V2 as al,w5 as am,cn as an,Py as ao,_5 as ap,E5 as aq,Z2 as ar,hv as as,p5 as at,ar as au,h3 as av,Yt as aw,y3 as ax,e2 as ay,cr as az,qe as b,je as c,b5 as d,N2 as e,mv as f,j5 as g,dr as h,C5 as i,v as j,S_ as k,k5 as l,z5 as m,De as n,xn as o,f3 as p,Ge as q,F as r,v5 as s,H2 as t,yd as u,L5 as v,R5 as w,r_ as x,O5 as y,fr as z};
|