agentv 3.14.5 → 4.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,71 @@
1
+ var wy=n=>{throw TypeError(n)};var Uo=(n,s,i)=>s.has(n)||wy("Cannot "+i);var N=(n,s,i)=>(Uo(n,s,"read from private field"),i?i.call(n):s.get(n)),dt=(n,s,i)=>s.has(n)?wy("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(n):s.set(n,i),at=(n,s,i,r)=>(Uo(n,s,"write to private field"),r?r.call(n,i):s.set(n,i),i),Et=(n,s,i)=>(Uo(n,s,"access private method"),i);var er=(n,s,i,r)=>({set _(o){at(n,s,o,i)},get _(){return N(n,s,r)}});(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.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 i(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=i(o);fetch(o.href,f)}})();function ix(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Lo={exports:{}},oi={};/**
2
+ * @license React
3
+ * react-jsx-runtime.production.js
4
+ *
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var Uy;function ux(){if(Uy)return oi;Uy=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function i(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 g in o)g!=="key"&&(f[g]=o[g])}else f=o;return o=f.ref,{$$typeof:n,type:r,key:h,ref:o!==void 0?o:null,props:f}}return oi.Fragment=s,oi.jsx=i,oi.jsxs=i,oi}var Ly;function rx(){return Ly||(Ly=1,Lo.exports=ux()),Lo.exports}var m=rx(),Bo={exports:{}},mt={};/**
10
+ * @license React
11
+ * react.production.js
12
+ *
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */var By;function cx(){if(By)return mt;By=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),i=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"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function _(E){return E===null||typeof E!="object"?null:(E=S&&E[S]||E["@@iterator"],typeof E=="function"?E:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,A={};function U(E,Q,I){this.props=E,this.context=Q,this.refs=A,this.updater=I||R}U.prototype.isReactComponent={},U.prototype.setState=function(E,Q){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,Q,"setState")},U.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function P(){}P.prototype=U.prototype;function K(E,Q,I){this.props=E,this.context=Q,this.refs=A,this.updater=I||R}var L=K.prototype=new P;L.constructor=K,M(L,U.prototype),L.isPureReactComponent=!0;var X=Array.isArray;function $(){}var Z={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function k(E,Q,I){var W=I.ref;return{$$typeof:n,type:E,key:Q,ref:W!==void 0?W:null,props:I}}function G(E,Q){return k(E.type,Q,E.props)}function F(E){return typeof E=="object"&&E!==null&&E.$$typeof===n}function st(E){var Q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(I){return Q[I]})}var it=/\/+/g;function ct(E,Q){return typeof E=="object"&&E!==null&&E.key!=null?st(""+E.key):Q.toString(36)}function nt(E){switch(E.status){case"fulfilled":return E.value;case"rejected":throw E.reason;default:switch(typeof E.status=="string"?E.then($,$):(E.status="pending",E.then(function(Q){E.status==="pending"&&(E.status="fulfilled",E.value=Q)},function(Q){E.status==="pending"&&(E.status="rejected",E.reason=Q)})),E.status){case"fulfilled":return E.value;case"rejected":throw E.reason}}throw E}function D(E,Q,I,W,ht){var pt=typeof E;(pt==="undefined"||pt==="boolean")&&(E=null);var xt=!1;if(E===null)xt=!0;else switch(pt){case"bigint":case"string":case"number":xt=!0;break;case"object":switch(E.$$typeof){case n:case s:xt=!0;break;case b:return xt=E._init,D(xt(E._payload),Q,I,W,ht)}}if(xt)return ht=ht(E),xt=W===""?"."+ct(E,0):W,X(ht)?(I="",xt!=null&&(I=xt.replace(it,"$&/")+"/"),D(ht,Q,I,"",function(ea){return ea})):ht!=null&&(F(ht)&&(ht=G(ht,I+(ht.key==null||E&&E.key===ht.key?"":(""+ht.key).replace(it,"$&/")+"/")+xt)),Q.push(ht)),1;xt=0;var Jt=W===""?".":W+":";if(X(E))for(var Ht=0;Ht<E.length;Ht++)W=E[Ht],pt=Jt+ct(W,Ht),xt+=D(W,Q,I,pt,ht);else if(Ht=_(E),typeof Ht=="function")for(E=Ht.call(E),Ht=0;!(W=E.next()).done;)W=W.value,pt=Jt+ct(W,Ht++),xt+=D(W,Q,I,pt,ht);else if(pt==="object"){if(typeof E.then=="function")return D(nt(E),Q,I,W,ht);throw Q=String(E),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return xt}function V(E,Q,I){if(E==null)return E;var W=[],ht=0;return D(E,W,"","",function(pt){return Q.call(I,pt,ht++)}),W}function tt(E){if(E._status===-1){var Q=E._result;Q=Q(),Q.then(function(I){(E._status===0||E._status===-1)&&(E._status=1,E._result=I)},function(I){(E._status===0||E._status===-1)&&(E._status=2,E._result=I)}),E._status===-1&&(E._status=0,E._result=Q)}if(E._status===1)return E._result.default;throw E._result}var yt=typeof reportError=="function"?reportError:function(E){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=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(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",E);return}console.error(E)},ot={map:V,forEach:function(E,Q,I){V(E,function(){Q.apply(this,arguments)},I)},count:function(E){var Q=0;return V(E,function(){Q++}),Q},toArray:function(E){return V(E,function(Q){return Q})||[]},only:function(E){if(!F(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return mt.Activity=v,mt.Children=ot,mt.Component=U,mt.Fragment=i,mt.Profiler=o,mt.PureComponent=K,mt.StrictMode=r,mt.Suspense=p,mt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,mt.__COMPILER_RUNTIME={__proto__:null,c:function(E){return Z.H.useMemoCache(E)}},mt.cache=function(E){return function(){return E.apply(null,arguments)}},mt.cacheSignal=function(){return null},mt.cloneElement=function(E,Q,I){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var W=M({},E.props),ht=E.key;if(Q!=null)for(pt in Q.key!==void 0&&(ht=""+Q.key),Q)!J.call(Q,pt)||pt==="key"||pt==="__self"||pt==="__source"||pt==="ref"&&Q.ref===void 0||(W[pt]=Q[pt]);var pt=arguments.length-2;if(pt===1)W.children=I;else if(1<pt){for(var xt=Array(pt),Jt=0;Jt<pt;Jt++)xt[Jt]=arguments[Jt+2];W.children=xt}return k(E.type,ht,W)},mt.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:f,_context:E},E},mt.createElement=function(E,Q,I){var W,ht={},pt=null;if(Q!=null)for(W in Q.key!==void 0&&(pt=""+Q.key),Q)J.call(Q,W)&&W!=="key"&&W!=="__self"&&W!=="__source"&&(ht[W]=Q[W]);var xt=arguments.length-2;if(xt===1)ht.children=I;else if(1<xt){for(var Jt=Array(xt),Ht=0;Ht<xt;Ht++)Jt[Ht]=arguments[Ht+2];ht.children=Jt}if(E&&E.defaultProps)for(W in xt=E.defaultProps,xt)ht[W]===void 0&&(ht[W]=xt[W]);return k(E,pt,ht)},mt.createRef=function(){return{current:null}},mt.forwardRef=function(E){return{$$typeof:g,render:E}},mt.isValidElement=F,mt.lazy=function(E){return{$$typeof:b,_payload:{_status:-1,_result:E},_init:tt}},mt.memo=function(E,Q){return{$$typeof:y,type:E,compare:Q===void 0?null:Q}},mt.startTransition=function(E){var Q=Z.T,I={};Z.T=I;try{var W=E(),ht=Z.S;ht!==null&&ht(I,W),typeof W=="object"&&W!==null&&typeof W.then=="function"&&W.then($,yt)}catch(pt){yt(pt)}finally{Q!==null&&I.types!==null&&(Q.types=I.types),Z.T=Q}},mt.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},mt.use=function(E){return Z.H.use(E)},mt.useActionState=function(E,Q,I){return Z.H.useActionState(E,Q,I)},mt.useCallback=function(E,Q){return Z.H.useCallback(E,Q)},mt.useContext=function(E){return Z.H.useContext(E)},mt.useDebugValue=function(){},mt.useDeferredValue=function(E,Q){return Z.H.useDeferredValue(E,Q)},mt.useEffect=function(E,Q){return Z.H.useEffect(E,Q)},mt.useEffectEvent=function(E){return Z.H.useEffectEvent(E)},mt.useId=function(){return Z.H.useId()},mt.useImperativeHandle=function(E,Q,I){return Z.H.useImperativeHandle(E,Q,I)},mt.useInsertionEffect=function(E,Q){return Z.H.useInsertionEffect(E,Q)},mt.useLayoutEffect=function(E,Q){return Z.H.useLayoutEffect(E,Q)},mt.useMemo=function(E,Q){return Z.H.useMemo(E,Q)},mt.useOptimistic=function(E,Q){return Z.H.useOptimistic(E,Q)},mt.useReducer=function(E,Q,I){return Z.H.useReducer(E,Q,I)},mt.useRef=function(E){return Z.H.useRef(E)},mt.useState=function(E){return Z.H.useState(E)},mt.useSyncExternalStore=function(E,Q,I){return Z.H.useSyncExternalStore(E,Q,I)},mt.useTransition=function(){return Z.H.useTransition()},mt.version="19.2.4",mt}var Hy;function Di(){return Hy||(Hy=1,Bo.exports=cx()),Bo.exports}var et=Di();const bi=ix(et);var Ho={exports:{}},fi={},qo={exports:{}},Qo={};/**
18
+ * @license React
19
+ * scheduler.production.js
20
+ *
21
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
22
+ *
23
+ * This source code is licensed under the MIT license found in the
24
+ * LICENSE file in the root directory of this source tree.
25
+ */var qy;function ox(){return qy||(qy=1,(function(n){function s(D,V){var tt=D.length;D.push(V);t:for(;0<tt;){var yt=tt-1>>>1,ot=D[yt];if(0<o(ot,V))D[yt]=V,D[tt]=ot,tt=yt;else break t}}function i(D){return D.length===0?null:D[0]}function r(D){if(D.length===0)return null;var V=D[0],tt=D.pop();if(tt!==V){D[0]=tt;t:for(var yt=0,ot=D.length,E=ot>>>1;yt<E;){var Q=2*(yt+1)-1,I=D[Q],W=Q+1,ht=D[W];if(0>o(I,tt))W<ot&&0>o(ht,I)?(D[yt]=ht,D[W]=tt,yt=W):(D[yt]=I,D[Q]=tt,yt=Q);else if(W<ot&&0>o(ht,tt))D[yt]=ht,D[W]=tt,yt=W;else break t}}return V}function o(D,V){var tt=D.sortIndex-V.sortIndex;return tt!==0?tt:D.id-V.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,g=h.now();n.unstable_now=function(){return h.now()-g}}var p=[],y=[],b=1,v=null,S=3,_=!1,R=!1,M=!1,A=!1,U=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function L(D){for(var V=i(y);V!==null;){if(V.callback===null)r(y);else if(V.startTime<=D)r(y),V.sortIndex=V.expirationTime,s(p,V);else break;V=i(y)}}function X(D){if(M=!1,L(D),!R)if(i(p)!==null)R=!0,$||($=!0,st());else{var V=i(y);V!==null&&nt(X,V.startTime-D)}}var $=!1,Z=-1,J=5,k=-1;function G(){return A?!0:!(n.unstable_now()-k<J)}function F(){if(A=!1,$){var D=n.unstable_now();k=D;var V=!0;try{t:{R=!1,M&&(M=!1,P(Z),Z=-1),_=!0;var tt=S;try{e:{for(L(D),v=i(p);v!==null&&!(v.expirationTime>D&&G());){var yt=v.callback;if(typeof yt=="function"){v.callback=null,S=v.priorityLevel;var ot=yt(v.expirationTime<=D);if(D=n.unstable_now(),typeof ot=="function"){v.callback=ot,L(D),V=!0;break e}v===i(p)&&r(p),L(D)}else r(p);v=i(p)}if(v!==null)V=!0;else{var E=i(y);E!==null&&nt(X,E.startTime-D),V=!1}}break t}finally{v=null,S=tt,_=!1}V=void 0}}finally{V?st():$=!1}}}var st;if(typeof K=="function")st=function(){K(F)};else if(typeof MessageChannel<"u"){var it=new MessageChannel,ct=it.port2;it.port1.onmessage=F,st=function(){ct.postMessage(null)}}else st=function(){U(F,0)};function nt(D,V){Z=U(function(){D(n.unstable_now())},V)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(D){D.callback=null},n.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<D?Math.floor(1e3/D):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(D){switch(S){case 1:case 2:case 3:var V=3;break;default:V=S}var tt=S;S=V;try{return D()}finally{S=tt}},n.unstable_requestPaint=function(){A=!0},n.unstable_runWithPriority=function(D,V){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var tt=S;S=D;try{return V()}finally{S=tt}},n.unstable_scheduleCallback=function(D,V,tt){var yt=n.unstable_now();switch(typeof tt=="object"&&tt!==null?(tt=tt.delay,tt=typeof tt=="number"&&0<tt?yt+tt:yt):tt=yt,D){case 1:var ot=-1;break;case 2:ot=250;break;case 5:ot=1073741823;break;case 4:ot=1e4;break;default:ot=5e3}return ot=tt+ot,D={id:b++,callback:V,priorityLevel:D,startTime:tt,expirationTime:ot,sortIndex:-1},tt>yt?(D.sortIndex=tt,s(y,D),i(p)===null&&D===i(y)&&(M?(P(Z),Z=-1):M=!0,nt(X,tt-yt))):(D.sortIndex=ot,s(p,D),R||_||(R=!0,$||($=!0,st()))),D},n.unstable_shouldYield=G,n.unstable_wrapCallback=function(D){var V=S;return function(){var tt=S;S=V;try{return D.apply(this,arguments)}finally{S=tt}}}})(Qo)),Qo}var Qy;function fx(){return Qy||(Qy=1,qo.exports=ox()),qo.exports}var Yo={exports:{}},fe={};/**
26
+ * @license React
27
+ * react-dom.production.js
28
+ *
29
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
30
+ *
31
+ * This source code is licensed under the MIT license found in the
32
+ * LICENSE file in the root directory of this source tree.
33
+ */var Yy;function dx(){if(Yy)return fe;Yy=1;var n=Di();function s(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)y+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(s(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(p,y,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:p,containerInfo:y,implementation:b}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,fe.createPortal=function(p,y){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(s(299));return f(p,y,null,b)},fe.flushSync=function(p){var y=h.T,b=r.p;try{if(h.T=null,r.p=2,p)return p()}finally{h.T=y,r.p=b,r.d.f()}},fe.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(p,y))},fe.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},fe.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var b=y.as,v=g(b,y.crossOrigin),S=typeof y.integrity=="string"?y.integrity:void 0,_=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?r.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:_}):b==="script"&&r.d.X(p,{crossOrigin:v,integrity:S,fetchPriority:_,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},fe.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var b=g(y.as,y.crossOrigin);r.d.M(p,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(p)},fe.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var b=y.as,v=g(b,y.crossOrigin);r.d.L(p,b,{crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},fe.preloadModule=function(p,y){if(typeof p=="string")if(y){var b=g(y.as,y.crossOrigin);r.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(p)},fe.requestFormReset=function(p){r.d.r(p)},fe.unstable_batchedUpdates=function(p,y){return p(y)},fe.useFormState=function(p,y,b){return h.H.useFormState(p,y,b)},fe.useFormStatus=function(){return h.H.useHostTransitionStatus()},fe.version="19.2.4",fe}var Gy;function G0(){if(Gy)return Yo.exports;Gy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),Yo.exports=dx(),Yo.exports}/**
34
+ * @license React
35
+ * react-dom-client.production.js
36
+ *
37
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
38
+ *
39
+ * This source code is licensed under the MIT license found in the
40
+ * LICENSE file in the root directory of this source tree.
41
+ */var Vy;function hx(){if(Vy)return fi;Vy=1;var n=fx(),s=Di(),i=G0();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function g(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(f(t)!==t)throw Error(r(188))}function y(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(r(188));return e!==t?null:t}for(var a=t,l=e;;){var u=a.return;if(u===null)break;var c=u.alternate;if(c===null){if(l=u.return,l!==null){a=l;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===a)return p(u),t;if(c===l)return p(u),e;c=c.sibling}throw Error(r(188))}if(a.return!==l.return)a=u,l=c;else{for(var d=!1,x=u.child;x;){if(x===a){d=!0,a=u,l=c;break}if(x===l){d=!0,l=u,a=c;break}x=x.sibling}if(!d){for(x=c.child;x;){if(x===a){d=!0,a=c,l=u;break}if(x===l){d=!0,l=c,a=u;break}x=x.sibling}if(!d)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?t:e}function b(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=b(t),e!==null)return e;t=t.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),K=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),G=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function st(t){return t===null||typeof t!="object"?null:(t=F&&t[F]||t["@@iterator"],typeof t=="function"?t:null)}var it=Symbol.for("react.client.reference");function ct(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===it?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case M:return"Fragment";case U:return"Profiler";case A:return"StrictMode";case X:return"Suspense";case $:return"SuspenseList";case k:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case R:return"Portal";case K:return t.displayName||"Context";case P:return(t._context.displayName||"Context")+".Consumer";case L:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Z:return e=t.displayName||null,e!==null?e:ct(t.type)||"Memo";case J:e=t._payload,t=t._init;try{return ct(t(e))}catch{}}return null}var nt=Array.isArray,D=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tt={pending:!1,data:null,method:null,action:null},yt=[],ot=-1;function E(t){return{current:t}}function Q(t){0>ot||(t.current=yt[ot],yt[ot]=null,ot--)}function I(t,e){ot++,yt[ot]=t.current,t.current=e}var W=E(null),ht=E(null),pt=E(null),xt=E(null);function Jt(t,e){switch(I(pt,e),I(ht,t),I(W,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?ny(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=ny(e),t=ly(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q(W),I(W,t)}function Ht(){Q(W),Q(ht),Q(pt)}function ea(t){t.memoizedState!==null&&I(xt,t);var e=W.current,a=ly(e,t.type);e!==a&&(I(ht,t),I(W,a))}function fa(t){ht.current===t&&(Q(W),Q(ht)),xt.current===t&&(Q(xt),ii._currentValue=tt)}var cl,gs;function da(t){if(cl===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);cl=e&&e[1]||"",gs=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+cl+t+gs}var ol=!1;function fl(t,e){if(!t||ol)return"";ol=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(B){var w=B}Reflect.construct(t,[],Y)}else{try{Y.call()}catch(B){w=B}t.call(Y.prototype)}}else{try{throw Error()}catch(B){w=B}(Y=t())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(B){if(B&&w&&typeof B.stack=="string")return[B.stack,w.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),d=c[0],x=c[1];if(d&&x){var j=d.split(`
44
+ `),z=x.split(`
45
+ `);for(u=l=0;l<j.length&&!j[l].includes("DetermineComponentFrameRoot");)l++;for(;u<z.length&&!z[u].includes("DetermineComponentFrameRoot");)u++;if(l===j.length||u===z.length)for(l=j.length-1,u=z.length-1;1<=l&&0<=u&&j[l]!==z[u];)u--;for(;1<=l&&0<=u;l--,u--)if(j[l]!==z[u]){if(l!==1||u!==1)do if(l--,u--,0>u||j[l]!==z[u]){var H=`
46
+ `+j[l].replace(" at new "," at ");return t.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",t.displayName)),H}while(1<=l&&0<=u);break}}}finally{ol=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?da(a):""}function La(t,e){switch(t.tag){case 26:case 27:case 5:return da(t.type);case 16:return da("Lazy");case 13:return t.child!==e&&e!==null?da("Suspense Fallback"):da("Suspense");case 19:return da("SuspenseList");case 0:case 15:return fl(t.type,!1);case 11:return fl(t.type.render,!1);case 1:return fl(t.type,!0);case 31:return da("Activity");default:return""}}function dl(t){try{var e="",a=null;do e+=La(t,a),a=t,t=t.return;while(t);return e}catch(l){return`
47
+ Error generating stack: `+l.message+`
48
+ `+l.stack}}var Fe=Object.prototype.hasOwnProperty,vs=n.unstable_scheduleCallback,hl=n.unstable_cancelCallback,Sr=n.unstable_shouldYield,Li=n.unstable_requestPaint,bt=n.unstable_now,oe=n.unstable_getCurrentPriorityLevel,aa=n.unstable_ImmediatePriority,Bi=n.unstable_UserBlockingPriority,Hi=n.unstable_NormalPriority,Yg=n.unstable_LowPriority,Bf=n.unstable_IdlePriority,Gg=n.log,Vg=n.unstable_setDisableYieldValue,ps=null,Me=null;function Ba(t){if(typeof Gg=="function"&&Vg(t),Me&&typeof Me.setStrictMode=="function")try{Me.setStrictMode(ps,t)}catch{}}var Ae=Math.clz32?Math.clz32:Zg,Xg=Math.log,Kg=Math.LN2;function Zg(t){return t>>>=0,t===0?32:31-(Xg(t)/Kg|0)|0}var qi=256,Qi=262144,Yi=4194304;function En(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Gi(t,e,a){var l=t.pendingLanes;if(l===0)return 0;var u=0,c=t.suspendedLanes,d=t.pingedLanes;t=t.warmLanes;var x=l&134217727;return x!==0?(l=x&~c,l!==0?u=En(l):(d&=x,d!==0?u=En(d):a||(a=x&~t,a!==0&&(u=En(a))))):(x=l&~c,x!==0?u=En(x):d!==0?u=En(d):a||(a=l&~t,a!==0&&(u=En(a)))),u===0?0:e!==0&&e!==u&&(e&c)===0&&(c=u&-u,a=e&-e,c>=a||c===32&&(a&4194048)!==0)?e:u}function xs(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Jg(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Hf(){var t=Yi;return Yi<<=1,(Yi&62914560)===0&&(Yi=4194304),t}function Rr(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function bs(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Pg(t,e,a,l,u,c){var d=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var x=t.entanglements,j=t.expirationTimes,z=t.hiddenUpdates;for(a=d&~a;0<a;){var H=31-Ae(a),Y=1<<H;x[H]=0,j[H]=-1;var w=z[H];if(w!==null)for(z[H]=null,H=0;H<w.length;H++){var B=w[H];B!==null&&(B.lane&=-536870913)}a&=~Y}l!==0&&qf(t,l,0),c!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=c&~(d&~e))}function qf(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Ae(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|a&261930}function Qf(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var l=31-Ae(a),u=1<<l;u&e|t[l]&e&&(t[l]|=e),a&=~u}}function Yf(t,e){var a=e&-e;return a=(a&42)!==0?1:_r(a),(a&(t.suspendedLanes|e))!==0?0:a}function _r(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function jr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Gf(){var t=V.p;return t!==0?t:(t=window.event,t===void 0?32:Ny(t.type))}function Vf(t,e){var a=V.p;try{return V.p=t,e()}finally{V.p=a}}var Ha=Math.random().toString(36).slice(2),le="__reactFiber$"+Ha,pe="__reactProps$"+Ha,ml="__reactContainer$"+Ha,Er="__reactEvents$"+Ha,kg="__reactListeners$"+Ha,Fg="__reactHandles$"+Ha,Xf="__reactResources$"+Ha,Ss="__reactMarker$"+Ha;function Tr(t){delete t[le],delete t[pe],delete t[Er],delete t[kg],delete t[Fg]}function yl(t){var e=t[le];if(e)return e;for(var a=t.parentNode;a;){if(e=a[ml]||a[le]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=fy(t);t!==null;){if(a=t[le])return a;t=fy(t)}return e}t=a,a=t.parentNode}return null}function gl(t){if(t=t[le]||t[ml]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Rs(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function vl(t){var e=t[Xf];return e||(e=t[Xf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ee(t){t[Ss]=!0}var Kf=new Set,Zf={};function Tn(t,e){pl(t,e),pl(t+"Capture",e)}function pl(t,e){for(Zf[t]=e,t=0;t<e.length;t++)Kf.add(e[t])}var $g=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]*$"),Jf={},Pf={};function Ig(t){return Fe.call(Pf,t)?!0:Fe.call(Jf,t)?!1:$g.test(t)?Pf[t]=!0:(Jf[t]=!0,!1)}function Vi(t,e,a){if(Ig(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function Xi(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+a)}}function ha(t,e,a,l){if(l===null)t.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+l)}}function He(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function kf(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Wg(t,e,a){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,c=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(d){a=""+d,c.call(this,d)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Nr(t){if(!t._valueTracker){var e=kf(t)?"checked":"value";t._valueTracker=Wg(t,e,""+t[e])}}function Ff(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),l="";return t&&(l=kf(t)?t.checked?"true":"false":t.value),t=l,t!==a?(e.setValue(t),!0):!1}function Ki(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var tv=/[\n"\\]/g;function qe(t){return t.replace(tv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Mr(t,e,a,l,u,c,d,x){t.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?t.type=d:t.removeAttribute("type"),e!=null?d==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+He(e)):t.value!==""+He(e)&&(t.value=""+He(e)):d!=="submit"&&d!=="reset"||t.removeAttribute("value"),e!=null?Ar(t,d,He(e)):a!=null?Ar(t,d,He(a)):l!=null&&t.removeAttribute("value"),u==null&&c!=null&&(t.defaultChecked=!!c),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+He(x):t.removeAttribute("name")}function $f(t,e,a,l,u,c,d,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){Nr(t);return}a=a!=null?""+He(a):"",e=e!=null?""+He(e):a,x||e===t.value||(t.value=e),t.defaultValue=e}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=x?t.checked:!!l,t.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(t.name=d),Nr(t)}function Ar(t,e,a){e==="number"&&Ki(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function xl(t,e,a,l){if(t=t.options,e){e={};for(var u=0;u<a.length;u++)e["$"+a[u]]=!0;for(a=0;a<t.length;a++)u=e.hasOwnProperty("$"+t[a].value),t[a].selected!==u&&(t[a].selected=u),u&&l&&(t[a].defaultSelected=!0)}else{for(a=""+He(a),e=null,u=0;u<t.length;u++){if(t[u].value===a){t[u].selected=!0,l&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function If(t,e,a){if(e!=null&&(e=""+He(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+He(a):""}function Wf(t,e,a,l){if(e==null){if(l!=null){if(a!=null)throw Error(r(92));if(nt(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),e=a}a=He(e),t.defaultValue=a,l=t.textContent,l===a&&l!==""&&l!==null&&(t.value=l),Nr(t)}function bl(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var ev=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 td(t,e,a){var l=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,a):typeof a!="number"||a===0||ev.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function ed(t,e,a){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var u in e)l=e[u],e.hasOwnProperty(u)&&a[u]!==l&&td(t,u,l)}else for(var c in e)e.hasOwnProperty(c)&&td(t,c,e[c])}function Cr(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var av=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"]]),nv=/^[\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 Zi(t){return nv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ma(){}var Or=null;function zr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Sl=null,Rl=null;function ad(t){var e=gl(t);if(e&&(t=e.stateNode)){var a=t[pe]||null;t:switch(t=e.stateNode,e.type){case"input":if(Mr(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+qe(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var l=a[e];if(l!==t&&l.form===t.form){var u=l[pe]||null;if(!u)throw Error(r(90));Mr(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<a.length;e++)l=a[e],l.form===t.form&&Ff(l)}break t;case"textarea":If(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&xl(t,!!a.multiple,e,!1)}}}var Dr=!1;function nd(t,e,a){if(Dr)return t(e,a);Dr=!0;try{var l=t(e);return l}finally{if(Dr=!1,(Sl!==null||Rl!==null)&&(Du(),Sl&&(e=Sl,t=Rl,Rl=Sl=null,ad(e),t)))for(e=0;e<t.length;e++)ad(t[e])}}function _s(t,e){var a=t.stateNode;if(a===null)return null;var l=a[pe]||null;if(l===null)return null;a=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,e,typeof a));return a}var ya=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wr=!1;if(ya)try{var js={};Object.defineProperty(js,"passive",{get:function(){wr=!0}}),window.addEventListener("test",js,js),window.removeEventListener("test",js,js)}catch{wr=!1}var qa=null,Ur=null,Ji=null;function ld(){if(Ji)return Ji;var t,e=Ur,a=e.length,l,u="value"in qa?qa.value:qa.textContent,c=u.length;for(t=0;t<a&&e[t]===u[t];t++);var d=a-t;for(l=1;l<=d&&e[a-l]===u[c-l];l++);return Ji=u.slice(t,1<l?1-l:void 0)}function Pi(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ki(){return!0}function sd(){return!1}function xe(t){function e(a,l,u,c,d){this._reactName=a,this._targetInst=u,this.type=l,this.nativeEvent=c,this.target=d,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(a=t[x],this[x]=a?a(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?ki:sd,this.isPropagationStopped=sd,this}return v(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ki)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ki)},persist:function(){},isPersistent:ki}),e}var Nn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fi=xe(Nn),Es=v({},Nn,{view:0,detail:0}),lv=xe(Es),Lr,Br,Ts,$i=v({},Es,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:qr,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Ts&&(Ts&&t.type==="mousemove"?(Lr=t.screenX-Ts.screenX,Br=t.screenY-Ts.screenY):Br=Lr=0,Ts=t),Lr)},movementY:function(t){return"movementY"in t?t.movementY:Br}}),id=xe($i),sv=v({},$i,{dataTransfer:0}),iv=xe(sv),uv=v({},Es,{relatedTarget:0}),Hr=xe(uv),rv=v({},Nn,{animationName:0,elapsedTime:0,pseudoElement:0}),cv=xe(rv),ov=v({},Nn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),fv=xe(ov),dv=v({},Nn,{data:0}),ud=xe(dv),hv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mv={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"},yv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=yv[t])?!!e[t]:!1}function qr(){return gv}var vv=v({},Es,{key:function(t){if(t.key){var e=hv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Pi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?mv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:qr,charCode:function(t){return t.type==="keypress"?Pi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Pi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),pv=xe(vv),xv=v({},$i,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),rd=xe(xv),bv=v({},Es,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:qr}),Sv=xe(bv),Rv=v({},Nn,{propertyName:0,elapsedTime:0,pseudoElement:0}),_v=xe(Rv),jv=v({},$i,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),Ev=xe(jv),Tv=v({},Nn,{newState:0,oldState:0}),Nv=xe(Tv),Mv=[9,13,27,32],Qr=ya&&"CompositionEvent"in window,Ns=null;ya&&"documentMode"in document&&(Ns=document.documentMode);var Av=ya&&"TextEvent"in window&&!Ns,cd=ya&&(!Qr||Ns&&8<Ns&&11>=Ns),od=" ",fd=!1;function dd(t,e){switch(t){case"keyup":return Mv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var _l=!1;function Cv(t,e){switch(t){case"compositionend":return hd(e);case"keypress":return e.which!==32?null:(fd=!0,od);case"textInput":return t=e.data,t===od&&fd?null:t;default:return null}}function Ov(t,e){if(_l)return t==="compositionend"||!Qr&&dd(t,e)?(t=ld(),Ji=Ur=qa=null,_l=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return cd&&e.locale!=="ko"?null:e.data;default:return null}}var zv={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 md(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!zv[t.type]:e==="textarea"}function yd(t,e,a,l){Sl?Rl?Rl.push(l):Rl=[l]:Sl=l,e=Qu(e,"onChange"),0<e.length&&(a=new Fi("onChange","change",null,a,l),t.push({event:a,listeners:e}))}var Ms=null,As=null;function Dv(t){$m(t,0)}function Ii(t){var e=Rs(t);if(Ff(e))return t}function gd(t,e){if(t==="change")return e}var vd=!1;if(ya){var Yr;if(ya){var Gr="oninput"in document;if(!Gr){var pd=document.createElement("div");pd.setAttribute("oninput","return;"),Gr=typeof pd.oninput=="function"}Yr=Gr}else Yr=!1;vd=Yr&&(!document.documentMode||9<document.documentMode)}function xd(){Ms&&(Ms.detachEvent("onpropertychange",bd),As=Ms=null)}function bd(t){if(t.propertyName==="value"&&Ii(As)){var e=[];yd(e,As,t,zr(t)),nd(Dv,e)}}function wv(t,e,a){t==="focusin"?(xd(),Ms=e,As=a,Ms.attachEvent("onpropertychange",bd)):t==="focusout"&&xd()}function Uv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ii(As)}function Lv(t,e){if(t==="click")return Ii(e)}function Bv(t,e){if(t==="input"||t==="change")return Ii(e)}function Hv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Ce=typeof Object.is=="function"?Object.is:Hv;function Cs(t,e){if(Ce(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),l=Object.keys(e);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var u=a[l];if(!Fe.call(e,u)||!Ce(t[u],e[u]))return!1}return!0}function Sd(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Rd(t,e){var a=Sd(t);t=0;for(var l;a;){if(a.nodeType===3){if(l=t+a.textContent.length,t<=e&&l>=e)return{node:a,offset:e-t};t=l}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=Sd(a)}}function _d(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?_d(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function jd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Ki(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=Ki(t.document)}return e}function Vr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var qv=ya&&"documentMode"in document&&11>=document.documentMode,jl=null,Xr=null,Os=null,Kr=!1;function Ed(t,e,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Kr||jl==null||jl!==Ki(l)||(l=jl,"selectionStart"in l&&Vr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Os&&Cs(Os,l)||(Os=l,l=Qu(Xr,"onSelect"),0<l.length&&(e=new Fi("onSelect","select",null,e,a),t.push({event:e,listeners:l}),e.target=jl)))}function Mn(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var El={animationend:Mn("Animation","AnimationEnd"),animationiteration:Mn("Animation","AnimationIteration"),animationstart:Mn("Animation","AnimationStart"),transitionrun:Mn("Transition","TransitionRun"),transitionstart:Mn("Transition","TransitionStart"),transitioncancel:Mn("Transition","TransitionCancel"),transitionend:Mn("Transition","TransitionEnd")},Zr={},Td={};ya&&(Td=document.createElement("div").style,"AnimationEvent"in window||(delete El.animationend.animation,delete El.animationiteration.animation,delete El.animationstart.animation),"TransitionEvent"in window||delete El.transitionend.transition);function An(t){if(Zr[t])return Zr[t];if(!El[t])return t;var e=El[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in Td)return Zr[t]=e[a];return t}var Nd=An("animationend"),Md=An("animationiteration"),Ad=An("animationstart"),Qv=An("transitionrun"),Yv=An("transitionstart"),Gv=An("transitioncancel"),Cd=An("transitionend"),Od=new Map,Jr="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(" ");Jr.push("scrollEnd");function $e(t,e){Od.set(t,e),Tn(e,[t])}var Wi=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Qe=[],Tl=0,Pr=0;function tu(){for(var t=Tl,e=Pr=Tl=0;e<t;){var a=Qe[e];Qe[e++]=null;var l=Qe[e];Qe[e++]=null;var u=Qe[e];Qe[e++]=null;var c=Qe[e];if(Qe[e++]=null,l!==null&&u!==null){var d=l.pending;d===null?u.next=u:(u.next=d.next,d.next=u),l.pending=u}c!==0&&zd(a,u,c)}}function eu(t,e,a,l){Qe[Tl++]=t,Qe[Tl++]=e,Qe[Tl++]=a,Qe[Tl++]=l,Pr|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function kr(t,e,a,l){return eu(t,e,a,l),au(t)}function Cn(t,e){return eu(t,null,null,e),au(t)}function zd(t,e,a){t.lanes|=a;var l=t.alternate;l!==null&&(l.lanes|=a);for(var u=!1,c=t.return;c!==null;)c.childLanes|=a,l=c.alternate,l!==null&&(l.childLanes|=a),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(u=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,u&&e!==null&&(u=31-Ae(a),t=c.hiddenUpdates,l=t[u],l===null?t[u]=[e]:l.push(e),e.lane=a|536870912),c):null}function au(t){if(50<Ws)throw Ws=0,lo=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Nl={};function Vv(t,e,a,l){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oe(t,e,a,l){return new Vv(t,e,a,l)}function Fr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ga(t,e){var a=t.alternate;return a===null?(a=Oe(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function Dd(t,e){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function nu(t,e,a,l,u,c){var d=0;if(l=t,typeof t=="function")Fr(t)&&(d=1);else if(typeof t=="string")d=Pp(t,a,W.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case k:return t=Oe(31,a,e,u),t.elementType=k,t.lanes=c,t;case M:return On(a.children,u,c,e);case A:d=8,u|=24;break;case U:return t=Oe(12,a,e,u|2),t.elementType=U,t.lanes=c,t;case X:return t=Oe(13,a,e,u),t.elementType=X,t.lanes=c,t;case $:return t=Oe(19,a,e,u),t.elementType=$,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case K:d=10;break t;case P:d=9;break t;case L:d=11;break t;case Z:d=14;break t;case J:d=16,l=null;break t}d=29,a=Error(r(130,t===null?"null":typeof t,"")),l=null}return e=Oe(d,a,e,u),e.elementType=t,e.type=l,e.lanes=c,e}function On(t,e,a,l){return t=Oe(7,t,l,e),t.lanes=a,t}function $r(t,e,a){return t=Oe(6,t,null,e),t.lanes=a,t}function wd(t){var e=Oe(18,null,null,0);return e.stateNode=t,e}function Ir(t,e,a){return e=Oe(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Ud=new WeakMap;function Ye(t,e){if(typeof t=="object"&&t!==null){var a=Ud.get(t);return a!==void 0?a:(e={value:t,source:e,stack:dl(e)},Ud.set(t,e),e)}return{value:t,source:e,stack:dl(e)}}var Ml=[],Al=0,lu=null,zs=0,Ge=[],Ve=0,Qa=null,na=1,la="";function va(t,e){Ml[Al++]=zs,Ml[Al++]=lu,lu=t,zs=e}function Ld(t,e,a){Ge[Ve++]=na,Ge[Ve++]=la,Ge[Ve++]=Qa,Qa=t;var l=na;t=la;var u=32-Ae(l)-1;l&=~(1<<u),a+=1;var c=32-Ae(e)+u;if(30<c){var d=u-u%5;c=(l&(1<<d)-1).toString(32),l>>=d,u-=d,na=1<<32-Ae(e)+u|a<<u|l,la=c+t}else na=1<<c|a<<u|l,la=t}function Wr(t){t.return!==null&&(va(t,1),Ld(t,1,0))}function tc(t){for(;t===lu;)lu=Ml[--Al],Ml[Al]=null,zs=Ml[--Al],Ml[Al]=null;for(;t===Qa;)Qa=Ge[--Ve],Ge[Ve]=null,la=Ge[--Ve],Ge[Ve]=null,na=Ge[--Ve],Ge[Ve]=null}function Bd(t,e){Ge[Ve++]=na,Ge[Ve++]=la,Ge[Ve++]=Qa,na=e.id,la=e.overflow,Qa=t}var se=null,qt=null,Tt=!1,Ya=null,Xe=!1,ec=Error(r(519));function Ga(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ds(Ye(e,t)),ec}function Hd(t){var e=t.stateNode,a=t.type,l=t.memoizedProps;switch(e[le]=t,e[pe]=l,a){case"dialog":Rt("cancel",e),Rt("close",e);break;case"iframe":case"object":case"embed":Rt("load",e);break;case"video":case"audio":for(a=0;a<ei.length;a++)Rt(ei[a],e);break;case"source":Rt("error",e);break;case"img":case"image":case"link":Rt("error",e),Rt("load",e);break;case"details":Rt("toggle",e);break;case"input":Rt("invalid",e),$f(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":Rt("invalid",e);break;case"textarea":Rt("invalid",e),Wf(e,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||l.suppressHydrationWarning===!0||ey(e.textContent,a)?(l.popover!=null&&(Rt("beforetoggle",e),Rt("toggle",e)),l.onScroll!=null&&Rt("scroll",e),l.onScrollEnd!=null&&Rt("scrollend",e),l.onClick!=null&&(e.onclick=ma),e=!0):e=!1,e||Ga(t,!0)}function qd(t){for(se=t.return;se;)switch(se.tag){case 5:case 31:case 13:Xe=!1;return;case 27:case 3:Xe=!0;return;default:se=se.return}}function Cl(t){if(t!==se)return!1;if(!Tt)return qd(t),Tt=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||bo(t.type,t.memoizedProps)),a=!a),a&&qt&&Ga(t),qd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));qt=oy(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));qt=oy(t)}else e===27?(e=qt,an(t.type)?(t=Eo,Eo=null,qt=t):qt=e):qt=se?Ze(t.stateNode.nextSibling):null;return!0}function zn(){qt=se=null,Tt=!1}function ac(){var t=Ya;return t!==null&&(_e===null?_e=t:_e.push.apply(_e,t),Ya=null),t}function Ds(t){Ya===null?Ya=[t]:Ya.push(t)}var nc=E(null),Dn=null,pa=null;function Va(t,e,a){I(nc,e._currentValue),e._currentValue=a}function xa(t){t._currentValue=nc.current,Q(nc)}function lc(t,e,a){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===a)break;t=t.return}}function sc(t,e,a,l){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var c=u.dependencies;if(c!==null){var d=u.child;c=c.firstContext;t:for(;c!==null;){var x=c;c=u;for(var j=0;j<e.length;j++)if(x.context===e[j]){c.lanes|=a,x=c.alternate,x!==null&&(x.lanes|=a),lc(c.return,a,t),l||(d=null);break t}c=x.next}}else if(u.tag===18){if(d=u.return,d===null)throw Error(r(341));d.lanes|=a,c=d.alternate,c!==null&&(c.lanes|=a),lc(d,a,t),d=null}else d=u.child;if(d!==null)d.return=u;else for(d=u;d!==null;){if(d===t){d=null;break}if(u=d.sibling,u!==null){u.return=d.return,d=u;break}d=d.return}u=d}}function Ol(t,e,a,l){t=null;for(var u=e,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 d=u.alternate;if(d===null)throw Error(r(387));if(d=d.memoizedProps,d!==null){var x=u.type;Ce(u.pendingProps.value,d.value)||(t!==null?t.push(x):t=[x])}}else if(u===xt.current){if(d=u.alternate,d===null)throw Error(r(387));d.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(ii):t=[ii])}u=u.return}t!==null&&sc(e,t,a,l),e.flags|=262144}function su(t){for(t=t.firstContext;t!==null;){if(!Ce(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function wn(t){Dn=t,pa=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ie(t){return Qd(Dn,t)}function iu(t,e){return Dn===null&&wn(t),Qd(t,e)}function Qd(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},pa===null){if(t===null)throw Error(r(308));pa=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else pa=pa.next=e;return a}var Xv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},Kv=n.unstable_scheduleCallback,Zv=n.unstable_NormalPriority,Ft={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ic(){return{controller:new Xv,data:new Map,refCount:0}}function ws(t){t.refCount--,t.refCount===0&&Kv(Zv,function(){t.controller.abort()})}var Us=null,uc=0,zl=0,Dl=null;function Jv(t,e){if(Us===null){var a=Us=[];uc=0,zl=oo(),Dl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return uc++,e.then(Yd,Yd),e}function Yd(){if(--uc===0&&Us!==null){Dl!==null&&(Dl.status="fulfilled");var t=Us;Us=null,zl=0,Dl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Pv(t,e){var a=[],l={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var u=0;u<a.length;u++)(0,a[u])(e)},function(u){for(l.status="rejected",l.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),l}var Gd=D.S;D.S=function(t,e){Em=bt(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Jv(t,e),Gd!==null&&Gd(t,e)};var Un=E(null);function rc(){var t=Un.current;return t!==null?t:Bt.pooledCache}function uu(t,e){e===null?I(Un,Un.current):I(Un,e.pool)}function Vd(){var t=rc();return t===null?null:{parent:Ft._currentValue,pool:t}}var wl=Error(r(460)),cc=Error(r(474)),ru=Error(r(542)),cu={then:function(){}};function Xd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Kd(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(ma,ma),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Jd(t),t;default:if(typeof e.status=="string")e.then(ma,ma);else{if(t=Bt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=l}},function(l){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Jd(t),t}throw Bn=e,wl}}function Ln(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Bn=a,wl):a}}var Bn=null;function Zd(){if(Bn===null)throw Error(r(459));var t=Bn;return Bn=null,t}function Jd(t){if(t===wl||t===ru)throw Error(r(483))}var Ul=null,Ls=0;function ou(t){var e=Ls;return Ls+=1,Ul===null&&(Ul=[]),Kd(Ul,t,e)}function Bs(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function fu(t,e){throw e.$$typeof===S?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Pd(t){function e(C,T){if(t){var O=C.deletions;O===null?(C.deletions=[T],C.flags|=16):O.push(T)}}function a(C,T){if(!t)return null;for(;T!==null;)e(C,T),T=T.sibling;return null}function l(C){for(var T=new Map;C!==null;)C.key!==null?T.set(C.key,C):T.set(C.index,C),C=C.sibling;return T}function u(C,T){return C=ga(C,T),C.index=0,C.sibling=null,C}function c(C,T,O){return C.index=O,t?(O=C.alternate,O!==null?(O=O.index,O<T?(C.flags|=67108866,T):O):(C.flags|=67108866,T)):(C.flags|=1048576,T)}function d(C){return t&&C.alternate===null&&(C.flags|=67108866),C}function x(C,T,O,q){return T===null||T.tag!==6?(T=$r(O,C.mode,q),T.return=C,T):(T=u(T,O),T.return=C,T)}function j(C,T,O,q){var rt=O.type;return rt===M?H(C,T,O.props.children,q,O.key):T!==null&&(T.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===J&&Ln(rt)===T.type)?(T=u(T,O.props),Bs(T,O),T.return=C,T):(T=nu(O.type,O.key,O.props,null,C.mode,q),Bs(T,O),T.return=C,T)}function z(C,T,O,q){return T===null||T.tag!==4||T.stateNode.containerInfo!==O.containerInfo||T.stateNode.implementation!==O.implementation?(T=Ir(O,C.mode,q),T.return=C,T):(T=u(T,O.children||[]),T.return=C,T)}function H(C,T,O,q,rt){return T===null||T.tag!==7?(T=On(O,C.mode,q,rt),T.return=C,T):(T=u(T,O),T.return=C,T)}function Y(C,T,O){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=$r(""+T,C.mode,O),T.return=C,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case _:return O=nu(T.type,T.key,T.props,null,C.mode,O),Bs(O,T),O.return=C,O;case R:return T=Ir(T,C.mode,O),T.return=C,T;case J:return T=Ln(T),Y(C,T,O)}if(nt(T)||st(T))return T=On(T,C.mode,O,null),T.return=C,T;if(typeof T.then=="function")return Y(C,ou(T),O);if(T.$$typeof===K)return Y(C,iu(C,T),O);fu(C,T)}return null}function w(C,T,O,q){var rt=T!==null?T.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return rt!==null?null:x(C,T,""+O,q);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case _:return O.key===rt?j(C,T,O,q):null;case R:return O.key===rt?z(C,T,O,q):null;case J:return O=Ln(O),w(C,T,O,q)}if(nt(O)||st(O))return rt!==null?null:H(C,T,O,q,null);if(typeof O.then=="function")return w(C,T,ou(O),q);if(O.$$typeof===K)return w(C,T,iu(C,O),q);fu(C,O)}return null}function B(C,T,O,q,rt){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return C=C.get(O)||null,x(T,C,""+q,rt);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case _:return C=C.get(q.key===null?O:q.key)||null,j(T,C,q,rt);case R:return C=C.get(q.key===null?O:q.key)||null,z(T,C,q,rt);case J:return q=Ln(q),B(C,T,O,q,rt)}if(nt(q)||st(q))return C=C.get(O)||null,H(T,C,q,rt,null);if(typeof q.then=="function")return B(C,T,O,ou(q),rt);if(q.$$typeof===K)return B(C,T,O,iu(T,q),rt);fu(T,q)}return null}function lt(C,T,O,q){for(var rt=null,Mt=null,ut=T,vt=T=0,jt=null;ut!==null&&vt<O.length;vt++){ut.index>vt?(jt=ut,ut=null):jt=ut.sibling;var At=w(C,ut,O[vt],q);if(At===null){ut===null&&(ut=jt);break}t&&ut&&At.alternate===null&&e(C,ut),T=c(At,T,vt),Mt===null?rt=At:Mt.sibling=At,Mt=At,ut=jt}if(vt===O.length)return a(C,ut),Tt&&va(C,vt),rt;if(ut===null){for(;vt<O.length;vt++)ut=Y(C,O[vt],q),ut!==null&&(T=c(ut,T,vt),Mt===null?rt=ut:Mt.sibling=ut,Mt=ut);return Tt&&va(C,vt),rt}for(ut=l(ut);vt<O.length;vt++)jt=B(ut,C,vt,O[vt],q),jt!==null&&(t&&jt.alternate!==null&&ut.delete(jt.key===null?vt:jt.key),T=c(jt,T,vt),Mt===null?rt=jt:Mt.sibling=jt,Mt=jt);return t&&ut.forEach(function(rn){return e(C,rn)}),Tt&&va(C,vt),rt}function ft(C,T,O,q){if(O==null)throw Error(r(151));for(var rt=null,Mt=null,ut=T,vt=T=0,jt=null,At=O.next();ut!==null&&!At.done;vt++,At=O.next()){ut.index>vt?(jt=ut,ut=null):jt=ut.sibling;var rn=w(C,ut,At.value,q);if(rn===null){ut===null&&(ut=jt);break}t&&ut&&rn.alternate===null&&e(C,ut),T=c(rn,T,vt),Mt===null?rt=rn:Mt.sibling=rn,Mt=rn,ut=jt}if(At.done)return a(C,ut),Tt&&va(C,vt),rt;if(ut===null){for(;!At.done;vt++,At=O.next())At=Y(C,At.value,q),At!==null&&(T=c(At,T,vt),Mt===null?rt=At:Mt.sibling=At,Mt=At);return Tt&&va(C,vt),rt}for(ut=l(ut);!At.done;vt++,At=O.next())At=B(ut,C,vt,At.value,q),At!==null&&(t&&At.alternate!==null&&ut.delete(At.key===null?vt:At.key),T=c(At,T,vt),Mt===null?rt=At:Mt.sibling=At,Mt=At);return t&&ut.forEach(function(sx){return e(C,sx)}),Tt&&va(C,vt),rt}function Lt(C,T,O,q){if(typeof O=="object"&&O!==null&&O.type===M&&O.key===null&&(O=O.props.children),typeof O=="object"&&O!==null){switch(O.$$typeof){case _:t:{for(var rt=O.key;T!==null;){if(T.key===rt){if(rt=O.type,rt===M){if(T.tag===7){a(C,T.sibling),q=u(T,O.props.children),q.return=C,C=q;break t}}else if(T.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===J&&Ln(rt)===T.type){a(C,T.sibling),q=u(T,O.props),Bs(q,O),q.return=C,C=q;break t}a(C,T);break}else e(C,T);T=T.sibling}O.type===M?(q=On(O.props.children,C.mode,q,O.key),q.return=C,C=q):(q=nu(O.type,O.key,O.props,null,C.mode,q),Bs(q,O),q.return=C,C=q)}return d(C);case R:t:{for(rt=O.key;T!==null;){if(T.key===rt)if(T.tag===4&&T.stateNode.containerInfo===O.containerInfo&&T.stateNode.implementation===O.implementation){a(C,T.sibling),q=u(T,O.children||[]),q.return=C,C=q;break t}else{a(C,T);break}else e(C,T);T=T.sibling}q=Ir(O,C.mode,q),q.return=C,C=q}return d(C);case J:return O=Ln(O),Lt(C,T,O,q)}if(nt(O))return lt(C,T,O,q);if(st(O)){if(rt=st(O),typeof rt!="function")throw Error(r(150));return O=rt.call(O),ft(C,T,O,q)}if(typeof O.then=="function")return Lt(C,T,ou(O),q);if(O.$$typeof===K)return Lt(C,T,iu(C,O),q);fu(C,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,T!==null&&T.tag===6?(a(C,T.sibling),q=u(T,O),q.return=C,C=q):(a(C,T),q=$r(O,C.mode,q),q.return=C,C=q),d(C)):a(C,T)}return function(C,T,O,q){try{Ls=0;var rt=Lt(C,T,O,q);return Ul=null,rt}catch(ut){if(ut===wl||ut===ru)throw ut;var Mt=Oe(29,ut,null,C.mode);return Mt.lanes=q,Mt.return=C,Mt}finally{}}}var Hn=Pd(!0),kd=Pd(!1),Xa=!1;function oc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Ka(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Za(t,e,a){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Ct&2)!==0){var u=l.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),l.pending=e,e=au(t),zd(t,null,a),e}return eu(t,l,e,a),au(t)}function Hs(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,Qf(t,a)}}function dc(t,e){var a=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var u=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?u=c=d:c=c.next=d,a=a.next}while(a!==null);c===null?u=c=e:c=c.next=e}else u=c=e;a={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var hc=!1;function qs(){if(hc){var t=Dl;if(t!==null)throw t}}function Qs(t,e,a,l){hc=!1;var u=t.updateQueue;Xa=!1;var c=u.firstBaseUpdate,d=u.lastBaseUpdate,x=u.shared.pending;if(x!==null){u.shared.pending=null;var j=x,z=j.next;j.next=null,d===null?c=z:d.next=z,d=j;var H=t.alternate;H!==null&&(H=H.updateQueue,x=H.lastBaseUpdate,x!==d&&(x===null?H.firstBaseUpdate=z:x.next=z,H.lastBaseUpdate=j))}if(c!==null){var Y=u.baseState;d=0,H=z=j=null,x=c;do{var w=x.lane&-536870913,B=w!==x.lane;if(B?(_t&w)===w:(l&w)===w){w!==0&&w===zl&&(hc=!0),H!==null&&(H=H.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var lt=t,ft=x;w=e;var Lt=a;switch(ft.tag){case 1:if(lt=ft.payload,typeof lt=="function"){Y=lt.call(Lt,Y,w);break t}Y=lt;break t;case 3:lt.flags=lt.flags&-65537|128;case 0:if(lt=ft.payload,w=typeof lt=="function"?lt.call(Lt,Y,w):lt,w==null)break t;Y=v({},Y,w);break t;case 2:Xa=!0}}w=x.callback,w!==null&&(t.flags|=64,B&&(t.flags|=8192),B=u.callbacks,B===null?u.callbacks=[w]:B.push(w))}else B={lane:w,tag:x.tag,payload:x.payload,callback:x.callback,next:null},H===null?(z=H=B,j=Y):H=H.next=B,d|=w;if(x=x.next,x===null){if(x=u.shared.pending,x===null)break;B=x,x=B.next,B.next=null,u.lastBaseUpdate=B,u.shared.pending=null}}while(!0);H===null&&(j=Y),u.baseState=j,u.firstBaseUpdate=z,u.lastBaseUpdate=H,c===null&&(u.shared.lanes=0),$a|=d,t.lanes=d,t.memoizedState=Y}}function Fd(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function $d(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Fd(a[t],e)}var Ll=E(null),du=E(0);function Id(t,e){t=Ma,I(du,t),I(Ll,e),Ma=t|e.baseLanes}function mc(){I(du,Ma),I(Ll,Ll.current)}function yc(){Ma=du.current,Q(Ll),Q(du)}var ze=E(null),Ke=null;function Ja(t){var e=t.alternate;I(Pt,Pt.current&1),I(ze,t),Ke===null&&(e===null||Ll.current!==null||e.memoizedState!==null)&&(Ke=t)}function gc(t){I(Pt,Pt.current),I(ze,t),Ke===null&&(Ke=t)}function Wd(t){t.tag===22?(I(Pt,Pt.current),I(ze,t),Ke===null&&(Ke=t)):Pa()}function Pa(){I(Pt,Pt.current),I(ze,ze.current)}function De(t){Q(ze),Ke===t&&(Ke=null),Q(Pt)}var Pt=E(0);function hu(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||_o(a)||jo(a)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var ba=0,gt=null,wt=null,$t=null,mu=!1,Bl=!1,qn=!1,yu=0,Ys=0,Hl=null,kv=0;function Xt(){throw Error(r(321))}function vc(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!Ce(t[a],e[a]))return!1;return!0}function pc(t,e,a,l,u,c){return ba=c,gt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,D.H=t===null||t.memoizedState===null?Lh:Dc,qn=!1,c=a(l,u),qn=!1,Bl&&(c=eh(e,a,l,u)),th(t),c}function th(t){D.H=Xs;var e=wt!==null&&wt.next!==null;if(ba=0,$t=wt=gt=null,mu=!1,Ys=0,Hl=null,e)throw Error(r(300));t===null||It||(t=t.dependencies,t!==null&&su(t)&&(It=!0))}function eh(t,e,a,l){gt=t;var u=0;do{if(Bl&&(Hl=null),Ys=0,Bl=!1,25<=u)throw Error(r(301));if(u+=1,$t=wt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}D.H=Bh,c=e(a,l)}while(Bl);return c}function Fv(){var t=D.H,e=t.useState()[0];return e=typeof e.then=="function"?Gs(e):e,t=t.useState()[0],(wt!==null?wt.memoizedState:null)!==t&&(gt.flags|=1024),e}function xc(){var t=yu!==0;return yu=0,t}function bc(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function Sc(t){if(mu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}mu=!1}ba=0,$t=wt=gt=null,Bl=!1,Ys=yu=0,Hl=null}function me(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $t===null?gt.memoizedState=$t=t:$t=$t.next=t,$t}function kt(){if(wt===null){var t=gt.alternate;t=t!==null?t.memoizedState:null}else t=wt.next;var e=$t===null?gt.memoizedState:$t.next;if(e!==null)$t=e,wt=t;else{if(t===null)throw gt.alternate===null?Error(r(467)):Error(r(310));wt=t,t={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},$t===null?gt.memoizedState=$t=t:$t=$t.next=t}return $t}function gu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Gs(t){var e=Ys;return Ys+=1,Hl===null&&(Hl=[]),t=Kd(Hl,t,e),e=gt,($t===null?e.memoizedState:$t.next)===null&&(e=e.alternate,D.H=e===null||e.memoizedState===null?Lh:Dc),t}function vu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Gs(t);if(t.$$typeof===K)return ie(t)}throw Error(r(438,String(t)))}function Rc(t){var e=null,a=gt.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var l=gt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=gu(),gt.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),l=0;l<t;l++)a[l]=G;return e.index++,a}function Sa(t,e){return typeof e=="function"?e(t):e}function pu(t){var e=kt();return _c(e,wt,t)}function _c(t,e,a){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var u=t.baseQueue,c=l.pending;if(c!==null){if(u!==null){var d=u.next;u.next=c.next,c.next=d}e.baseQueue=u=c,l.pending=null}if(c=t.baseState,u===null)t.memoizedState=c;else{e=u.next;var x=d=null,j=null,z=e,H=!1;do{var Y=z.lane&-536870913;if(Y!==z.lane?(_t&Y)===Y:(ba&Y)===Y){var w=z.revertLane;if(w===0)j!==null&&(j=j.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),Y===zl&&(H=!0);else if((ba&w)===w){z=z.next,w===zl&&(H=!0);continue}else Y={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},j===null?(x=j=Y,d=c):j=j.next=Y,gt.lanes|=w,$a|=w;Y=z.action,qn&&a(c,Y),c=z.hasEagerState?z.eagerState:a(c,Y)}else w={lane:Y,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},j===null?(x=j=w,d=c):j=j.next=w,gt.lanes|=Y,$a|=Y;z=z.next}while(z!==null&&z!==e);if(j===null?d=c:j.next=x,!Ce(c,t.memoizedState)&&(It=!0,H&&(a=Dl,a!==null)))throw a;t.memoizedState=c,t.baseState=d,t.baseQueue=j,l.lastRenderedState=c}return u===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function jc(t){var e=kt(),a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var l=a.dispatch,u=a.pending,c=e.memoizedState;if(u!==null){a.pending=null;var d=u=u.next;do c=t(c,d.action),d=d.next;while(d!==u);Ce(c,e.memoizedState)||(It=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),a.lastRenderedState=c}return[c,l]}function ah(t,e,a){var l=gt,u=kt(),c=Tt;if(c){if(a===void 0)throw Error(r(407));a=a()}else a=e();var d=!Ce((wt||u).memoizedState,a);if(d&&(u.memoizedState=a,It=!0),u=u.queue,Nc(sh.bind(null,l,u,t),[t]),u.getSnapshot!==e||d||$t!==null&&$t.memoizedState.tag&1){if(l.flags|=2048,ql(9,{destroy:void 0},lh.bind(null,l,u,a,e),null),Bt===null)throw Error(r(349));c||(ba&127)!==0||nh(l,e,a)}return a}function nh(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=gt.updateQueue,e===null?(e=gu(),gt.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function lh(t,e,a,l){e.value=a,e.getSnapshot=l,ih(e)&&uh(t)}function sh(t,e,a){return a(function(){ih(e)&&uh(t)})}function ih(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!Ce(t,a)}catch{return!0}}function uh(t){var e=Cn(t,2);e!==null&&je(e,t,2)}function Ec(t){var e=me();if(typeof t=="function"){var a=t;if(t=a(),qn){Ba(!0);try{a()}finally{Ba(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sa,lastRenderedState:t},e}function rh(t,e,a,l){return t.baseState=a,_c(t,wt,typeof l=="function"?l:Sa)}function $v(t,e,a,l,u){if(Su(t))throw Error(r(485));if(t=e.action,t!==null){var c={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){c.listeners.push(d)}};D.T!==null?a(!0):c.isTransition=!1,l(c),a=e.pending,a===null?(c.next=e.pending=c,ch(e,c)):(c.next=a.next,e.pending=a.next=c)}}function ch(t,e){var a=e.action,l=e.payload,u=t.state;if(e.isTransition){var c=D.T,d={};D.T=d;try{var x=a(u,l),j=D.S;j!==null&&j(d,x),oh(t,e,x)}catch(z){Tc(t,e,z)}finally{c!==null&&d.types!==null&&(c.types=d.types),D.T=c}}else try{c=a(u,l),oh(t,e,c)}catch(z){Tc(t,e,z)}}function oh(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){fh(t,e,l)},function(l){return Tc(t,e,l)}):fh(t,e,a)}function fh(t,e,a){e.status="fulfilled",e.value=a,dh(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,ch(t,a)))}function Tc(t,e,a){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=a,dh(e),e=e.next;while(e!==l)}t.action=null}function dh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function hh(t,e){return e}function mh(t,e){if(Tt){var a=Bt.formState;if(a!==null){t:{var l=gt;if(Tt){if(qt){e:{for(var u=qt,c=Xe;u.nodeType!==8;){if(!c){u=null;break e}if(u=Ze(u.nextSibling),u===null){u=null;break e}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){qt=Ze(u.nextSibling),l=u.data==="F!";break t}}Ga(l)}l=!1}l&&(e=a[0])}}return a=me(),a.memoizedState=a.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hh,lastRenderedState:e},a.queue=l,a=Dh.bind(null,gt,l),l.dispatch=a,l=Ec(!1),c=zc.bind(null,gt,!1,l.queue),l=me(),u={state:e,dispatch:null,action:t,pending:null},l.queue=u,a=$v.bind(null,gt,u,c,a),u.dispatch=a,l.memoizedState=t,[e,a,!1]}function yh(t){var e=kt();return gh(e,wt,t)}function gh(t,e,a){if(e=_c(t,e,hh)[0],t=pu(Sa)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Gs(e)}catch(d){throw d===wl?ru:d}else l=e;e=kt();var u=e.queue,c=u.dispatch;return a!==e.memoizedState&&(gt.flags|=2048,ql(9,{destroy:void 0},Iv.bind(null,u,a),null)),[l,c,t]}function Iv(t,e){t.action=e}function vh(t){var e=kt(),a=wt;if(a!==null)return gh(e,a,t);kt(),e=e.memoizedState,a=kt();var l=a.queue.dispatch;return a.memoizedState=t,[e,l,!1]}function ql(t,e,a,l){return t={tag:t,create:a,deps:l,inst:e,next:null},e=gt.updateQueue,e===null&&(e=gu(),gt.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(l=a.next,a.next=t,t.next=l,e.lastEffect=t),t}function ph(){return kt().memoizedState}function xu(t,e,a,l){var u=me();gt.flags|=t,u.memoizedState=ql(1|e,{destroy:void 0},a,l===void 0?null:l)}function bu(t,e,a,l){var u=kt();l=l===void 0?null:l;var c=u.memoizedState.inst;wt!==null&&l!==null&&vc(l,wt.memoizedState.deps)?u.memoizedState=ql(e,c,a,l):(gt.flags|=t,u.memoizedState=ql(1|e,c,a,l))}function xh(t,e){xu(8390656,8,t,e)}function Nc(t,e){bu(2048,8,t,e)}function Wv(t){gt.flags|=4;var e=gt.updateQueue;if(e===null)e=gu(),gt.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function bh(t){var e=kt().memoizedState;return Wv({ref:e,nextImpl:t}),function(){if((Ct&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Sh(t,e){return bu(4,2,t,e)}function Rh(t,e){return bu(4,4,t,e)}function _h(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function jh(t,e,a){a=a!=null?a.concat([t]):null,bu(4,4,_h.bind(null,e,t),a)}function Mc(){}function Eh(t,e){var a=kt();e=e===void 0?null:e;var l=a.memoizedState;return e!==null&&vc(e,l[1])?l[0]:(a.memoizedState=[t,e],t)}function Th(t,e){var a=kt();e=e===void 0?null:e;var l=a.memoizedState;if(e!==null&&vc(e,l[1]))return l[0];if(l=t(),qn){Ba(!0);try{t()}finally{Ba(!1)}}return a.memoizedState=[l,e],l}function Ac(t,e,a){return a===void 0||(ba&1073741824)!==0&&(_t&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=Nm(),gt.lanes|=t,$a|=t,a)}function Nh(t,e,a,l){return Ce(a,e)?a:Ll.current!==null?(t=Ac(t,a,l),Ce(t,e)||(It=!0),t):(ba&42)===0||(ba&1073741824)!==0&&(_t&261930)===0?(It=!0,t.memoizedState=a):(t=Nm(),gt.lanes|=t,$a|=t,e)}function Mh(t,e,a,l,u){var c=V.p;V.p=c!==0&&8>c?c:8;var d=D.T,x={};D.T=x,zc(t,!1,e,a);try{var j=u(),z=D.S;if(z!==null&&z(x,j),j!==null&&typeof j=="object"&&typeof j.then=="function"){var H=Pv(j,l);Vs(t,e,H,Le(t))}else Vs(t,e,l,Le(t))}catch(Y){Vs(t,e,{then:function(){},status:"rejected",reason:Y},Le())}finally{V.p=c,d!==null&&x.types!==null&&(d.types=x.types),D.T=d}}function tp(){}function Cc(t,e,a,l){if(t.tag!==5)throw Error(r(476));var u=Ah(t).queue;Mh(t,u,e,tt,a===null?tp:function(){return Ch(t),a(l)})}function Ah(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:tt,baseState:tt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sa,lastRenderedState:tt},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sa,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Ch(t){var e=Ah(t);e.next===null&&(e=t.alternate.memoizedState),Vs(t,e.next.queue,{},Le())}function Oc(){return ie(ii)}function Oh(){return kt().memoizedState}function zh(){return kt().memoizedState}function ep(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=Le();t=Ka(a);var l=Za(e,t,a);l!==null&&(je(l,e,a),Hs(l,e,a)),e={cache:ic()},t.payload=e;return}e=e.return}}function ap(t,e,a){var l=Le();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Su(t)?wh(e,a):(a=kr(t,e,a,l),a!==null&&(je(a,t,l),Uh(a,e,l)))}function Dh(t,e,a){var l=Le();Vs(t,e,a,l)}function Vs(t,e,a,l){var u={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Su(t))wh(e,u);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var d=e.lastRenderedState,x=c(d,a);if(u.hasEagerState=!0,u.eagerState=x,Ce(x,d))return eu(t,e,u,0),Bt===null&&tu(),!1}catch{}finally{}if(a=kr(t,e,u,l),a!==null)return je(a,t,l),Uh(a,e,l),!0}return!1}function zc(t,e,a,l){if(l={lane:2,revertLane:oo(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Su(t)){if(e)throw Error(r(479))}else e=kr(t,a,l,2),e!==null&&je(e,t,2)}function Su(t){var e=t.alternate;return t===gt||e!==null&&e===gt}function wh(t,e){Bl=mu=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function Uh(t,e,a){if((a&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,Qf(t,a)}}var Xs={readContext:ie,use:vu,useCallback:Xt,useContext:Xt,useEffect:Xt,useImperativeHandle:Xt,useLayoutEffect:Xt,useInsertionEffect:Xt,useMemo:Xt,useReducer:Xt,useRef:Xt,useState:Xt,useDebugValue:Xt,useDeferredValue:Xt,useTransition:Xt,useSyncExternalStore:Xt,useId:Xt,useHostTransitionStatus:Xt,useFormState:Xt,useActionState:Xt,useOptimistic:Xt,useMemoCache:Xt,useCacheRefresh:Xt};Xs.useEffectEvent=Xt;var Lh={readContext:ie,use:vu,useCallback:function(t,e){return me().memoizedState=[t,e===void 0?null:e],t},useContext:ie,useEffect:xh,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,xu(4194308,4,_h.bind(null,e,t),a)},useLayoutEffect:function(t,e){return xu(4194308,4,t,e)},useInsertionEffect:function(t,e){xu(4,2,t,e)},useMemo:function(t,e){var a=me();e=e===void 0?null:e;var l=t();if(qn){Ba(!0);try{t()}finally{Ba(!1)}}return a.memoizedState=[l,e],l},useReducer:function(t,e,a){var l=me();if(a!==void 0){var u=a(e);if(qn){Ba(!0);try{a(e)}finally{Ba(!1)}}}else u=e;return l.memoizedState=l.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},l.queue=t,t=t.dispatch=ap.bind(null,gt,t),[l.memoizedState,t]},useRef:function(t){var e=me();return t={current:t},e.memoizedState=t},useState:function(t){t=Ec(t);var e=t.queue,a=Dh.bind(null,gt,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:Mc,useDeferredValue:function(t,e){var a=me();return Ac(a,t,e)},useTransition:function(){var t=Ec(!1);return t=Mh.bind(null,gt,t.queue,!0,!1),me().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var l=gt,u=me();if(Tt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=e(),Bt===null)throw Error(r(349));(_t&127)!==0||nh(l,e,a)}u.memoizedState=a;var c={value:a,getSnapshot:e};return u.queue=c,xh(sh.bind(null,l,c,t),[t]),l.flags|=2048,ql(9,{destroy:void 0},lh.bind(null,l,c,a,e),null),a},useId:function(){var t=me(),e=Bt.identifierPrefix;if(Tt){var a=la,l=na;a=(l&~(1<<32-Ae(l)-1)).toString(32)+a,e="_"+e+"R_"+a,a=yu++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=kv++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Oc,useFormState:mh,useActionState:mh,useOptimistic:function(t){var e=me();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=zc.bind(null,gt,!0,a),a.dispatch=e,[t,e]},useMemoCache:Rc,useCacheRefresh:function(){return me().memoizedState=ep.bind(null,gt)},useEffectEvent:function(t){var e=me(),a={impl:t};return e.memoizedState=a,function(){if((Ct&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Dc={readContext:ie,use:vu,useCallback:Eh,useContext:ie,useEffect:Nc,useImperativeHandle:jh,useInsertionEffect:Sh,useLayoutEffect:Rh,useMemo:Th,useReducer:pu,useRef:ph,useState:function(){return pu(Sa)},useDebugValue:Mc,useDeferredValue:function(t,e){var a=kt();return Nh(a,wt.memoizedState,t,e)},useTransition:function(){var t=pu(Sa)[0],e=kt().memoizedState;return[typeof t=="boolean"?t:Gs(t),e]},useSyncExternalStore:ah,useId:Oh,useHostTransitionStatus:Oc,useFormState:yh,useActionState:yh,useOptimistic:function(t,e){var a=kt();return rh(a,wt,t,e)},useMemoCache:Rc,useCacheRefresh:zh};Dc.useEffectEvent=bh;var Bh={readContext:ie,use:vu,useCallback:Eh,useContext:ie,useEffect:Nc,useImperativeHandle:jh,useInsertionEffect:Sh,useLayoutEffect:Rh,useMemo:Th,useReducer:jc,useRef:ph,useState:function(){return jc(Sa)},useDebugValue:Mc,useDeferredValue:function(t,e){var a=kt();return wt===null?Ac(a,t,e):Nh(a,wt.memoizedState,t,e)},useTransition:function(){var t=jc(Sa)[0],e=kt().memoizedState;return[typeof t=="boolean"?t:Gs(t),e]},useSyncExternalStore:ah,useId:Oh,useHostTransitionStatus:Oc,useFormState:vh,useActionState:vh,useOptimistic:function(t,e){var a=kt();return wt!==null?rh(a,wt,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Rc,useCacheRefresh:zh};Bh.useEffectEvent=bh;function wc(t,e,a,l){e=t.memoizedState,a=a(l,e),a=a==null?e:v({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var Uc={enqueueSetState:function(t,e,a){t=t._reactInternals;var l=Le(),u=Ka(l);u.payload=e,a!=null&&(u.callback=a),e=Za(t,u,l),e!==null&&(je(e,t,l),Hs(e,t,l))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var l=Le(),u=Ka(l);u.tag=1,u.payload=e,a!=null&&(u.callback=a),e=Za(t,u,l),e!==null&&(je(e,t,l),Hs(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=Le(),l=Ka(a);l.tag=2,e!=null&&(l.callback=e),e=Za(t,l,a),e!==null&&(je(e,t,a),Hs(e,t,a))}};function Hh(t,e,a,l,u,c,d){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,d):e.prototype&&e.prototype.isPureReactComponent?!Cs(a,l)||!Cs(u,c):!0}function qh(t,e,a,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,l),e.state!==t&&Uc.enqueueReplaceState(e,e.state,null)}function Qn(t,e){var a=e;if("ref"in e){a={};for(var l in e)l!=="ref"&&(a[l]=e[l])}if(t=t.defaultProps){a===e&&(a=v({},a));for(var u in t)a[u]===void 0&&(a[u]=t[u])}return a}function Qh(t){Wi(t)}function Yh(t){console.error(t)}function Gh(t){Wi(t)}function Ru(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Vh(t,e,a){try{var l=t.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Lc(t,e,a){return a=Ka(a),a.tag=3,a.payload={element:null},a.callback=function(){Ru(t,e)},a}function Xh(t){return t=Ka(t),t.tag=3,t}function Kh(t,e,a,l){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var c=l.value;t.payload=function(){return u(c)},t.callback=function(){Vh(e,a,l)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(t.callback=function(){Vh(e,a,l),typeof u!="function"&&(Ia===null?Ia=new Set([this]):Ia.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function np(t,e,a,l,u){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=a.alternate,e!==null&&Ol(e,a,u,!0),a=ze.current,a!==null){switch(a.tag){case 31:case 13:return Ke===null?wu():a.alternate===null&&Kt===0&&(Kt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,l===cu?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([l]):e.add(l),uo(t,l,u)),!1;case 22:return a.flags|=65536,l===cu?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([l]):a.add(l)),uo(t,l,u)),!1}throw Error(r(435,a.tag))}return uo(t,l,u),wu(),!1}if(Tt)return e=ze.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,l!==ec&&(t=Error(r(422),{cause:l}),Ds(Ye(t,a)))):(l!==ec&&(e=Error(r(423),{cause:l}),Ds(Ye(e,a))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,l=Ye(l,a),u=Lc(t.stateNode,l,u),dc(t,u),Kt!==4&&(Kt=2)),!1;var c=Error(r(520),{cause:l});if(c=Ye(c,a),Is===null?Is=[c]:Is.push(c),Kt!==4&&(Kt=2),e===null)return!0;l=Ye(l,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=u&-u,a.lanes|=t,t=Lc(a.stateNode,l,t),dc(a,t),!1;case 1:if(e=a.type,c=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(Ia===null||!Ia.has(c))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Xh(u),Kh(u,t,a,l),dc(a,u),!1}a=a.return}while(a!==null);return!1}var Bc=Error(r(461)),It=!1;function ue(t,e,a,l){e.child=t===null?kd(e,null,a,l):Hn(e,t.child,a,l)}function Zh(t,e,a,l,u){a=a.render;var c=e.ref;if("ref"in l){var d={};for(var x in l)x!=="ref"&&(d[x]=l[x])}else d=l;return wn(e),l=pc(t,e,a,d,c,u),x=xc(),t!==null&&!It?(bc(t,e,u),Ra(t,e,u)):(Tt&&x&&Wr(e),e.flags|=1,ue(t,e,l,u),e.child)}function Jh(t,e,a,l,u){if(t===null){var c=a.type;return typeof c=="function"&&!Fr(c)&&c.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=c,Ph(t,e,c,l,u)):(t=nu(a.type,null,l,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Kc(t,u)){var d=c.memoizedProps;if(a=a.compare,a=a!==null?a:Cs,a(d,l)&&t.ref===e.ref)return Ra(t,e,u)}return e.flags|=1,t=ga(c,l),t.ref=e.ref,t.return=e,e.child=t}function Ph(t,e,a,l,u){if(t!==null){var c=t.memoizedProps;if(Cs(c,l)&&t.ref===e.ref)if(It=!1,e.pendingProps=l=c,Kc(t,u))(t.flags&131072)!==0&&(It=!0);else return e.lanes=t.lanes,Ra(t,e,u)}return Hc(t,e,a,l,u)}function kh(t,e,a,l){var u=l.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,t!==null){for(l=e.child=t.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~c}else l=0,e.child=null;return Fh(t,e,c,a,l)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&uu(e,c!==null?c.cachePool:null),c!==null?Id(e,c):mc(),Wd(e);else return l=e.lanes=536870912,Fh(t,e,c!==null?c.baseLanes|a:a,a,l)}else c!==null?(uu(e,c.cachePool),Id(e,c),Pa(),e.memoizedState=null):(t!==null&&uu(e,null),mc(),Pa());return ue(t,e,u,a),e.child}function Ks(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Fh(t,e,a,l,u){var c=rc();return c=c===null?null:{parent:Ft._currentValue,pool:c},e.memoizedState={baseLanes:a,cachePool:c},t!==null&&uu(e,null),mc(),Wd(e),t!==null&&Ol(t,e,l,!0),e.childLanes=u,null}function _u(t,e){return e=Eu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function $h(t,e,a){return Hn(e,t.child,null,a),t=_u(e,e.pendingProps),t.flags|=2,De(e),e.memoizedState=null,t}function lp(t,e,a){var l=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Tt){if(l.mode==="hidden")return t=_u(e,l),e.lanes=536870912,Ks(null,t);if(gc(e),(t=qt)?(t=cy(t,Xe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Qa!==null?{id:na,overflow:la}:null,retryLane:536870912,hydrationErrors:null},a=wd(t),a.return=e,e.child=a,se=e,qt=null)):t=null,t===null)throw Ga(e);return e.lanes=536870912,null}return _u(e,l)}var c=t.memoizedState;if(c!==null){var d=c.dehydrated;if(gc(e),u)if(e.flags&256)e.flags&=-257,e=$h(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(It||Ol(t,e,a,!1),u=(a&t.childLanes)!==0,It||u){if(l=Bt,l!==null&&(d=Yf(l,a),d!==0&&d!==c.retryLane))throw c.retryLane=d,Cn(t,d),je(l,t,d),Bc;wu(),e=$h(t,e,a)}else t=c.treeContext,qt=Ze(d.nextSibling),se=e,Tt=!0,Ya=null,Xe=!1,t!==null&&Bd(e,t),e=_u(e,l),e.flags|=4096;return e}return t=ga(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function ju(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function Hc(t,e,a,l,u){return wn(e),a=pc(t,e,a,l,void 0,u),l=xc(),t!==null&&!It?(bc(t,e,u),Ra(t,e,u)):(Tt&&l&&Wr(e),e.flags|=1,ue(t,e,a,u),e.child)}function Ih(t,e,a,l,u,c){return wn(e),e.updateQueue=null,a=eh(e,l,a,u),th(t),l=xc(),t!==null&&!It?(bc(t,e,c),Ra(t,e,c)):(Tt&&l&&Wr(e),e.flags|=1,ue(t,e,a,c),e.child)}function Wh(t,e,a,l,u){if(wn(e),e.stateNode===null){var c=Nl,d=a.contextType;typeof d=="object"&&d!==null&&(c=ie(d)),c=new a(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Uc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},oc(e),d=a.contextType,c.context=typeof d=="object"&&d!==null?ie(d):Nl,c.state=e.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(wc(e,a,d,l),c.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(d=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),d!==c.state&&Uc.enqueueReplaceState(c,c.state,null),Qs(e,l,c,u),qs(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var x=e.memoizedProps,j=Qn(a,x);c.props=j;var z=c.context,H=a.contextType;d=Nl,typeof H=="object"&&H!==null&&(d=ie(H));var Y=a.getDerivedStateFromProps;H=typeof Y=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=e.pendingProps!==x,H||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||z!==d)&&qh(e,c,l,d),Xa=!1;var w=e.memoizedState;c.state=w,Qs(e,l,c,u),qs(),z=e.memoizedState,x||w!==z||Xa?(typeof Y=="function"&&(wc(e,a,Y,l),z=e.memoizedState),(j=Xa||Hh(e,a,j,l,w,z,d))?(H||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"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=z),c.props=l,c.state=z,c.context=d,l=j):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,fc(t,e),d=e.memoizedProps,H=Qn(a,d),c.props=H,Y=e.pendingProps,w=c.context,z=a.contextType,j=Nl,typeof z=="object"&&z!==null&&(j=ie(z)),x=a.getDerivedStateFromProps,(z=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==Y||w!==j)&&qh(e,c,l,j),Xa=!1,w=e.memoizedState,c.state=w,Qs(e,l,c,u),qs();var B=e.memoizedState;d!==Y||w!==B||Xa||t!==null&&t.dependencies!==null&&su(t.dependencies)?(typeof x=="function"&&(wc(e,a,x,l),B=e.memoizedState),(H=Xa||Hh(e,a,H,l,w,B,j)||t!==null&&t.dependencies!==null&&su(t.dependencies))?(z||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,B,j),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,B,j)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||d===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=B),c.props=l,c.state=B,c.context=j,l=H):(typeof c.componentDidUpdate!="function"||d===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,ju(t,e),l=(e.flags&128)!==0,c||l?(c=e.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&l?(e.child=Hn(e,t.child,null,u),e.child=Hn(e,null,a,u)):ue(t,e,a,u),e.memoizedState=c.state,t=e.child):t=Ra(t,e,u),t}function tm(t,e,a,l){return zn(),e.flags|=256,ue(t,e,a,l),e.child}var qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Qc(t){return{baseLanes:t,cachePool:Vd()}}function Yc(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=Ue),t}function em(t,e,a){var l=e.pendingProps,u=!1,c=(e.flags&128)!==0,d;if((d=c)||(d=t!==null&&t.memoizedState===null?!1:(Pt.current&2)!==0),d&&(u=!0,e.flags&=-129),d=(e.flags&32)!==0,e.flags&=-33,t===null){if(Tt){if(u?Ja(e):Pa(),(t=qt)?(t=cy(t,Xe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Qa!==null?{id:na,overflow:la}:null,retryLane:536870912,hydrationErrors:null},a=wd(t),a.return=e,e.child=a,se=e,qt=null)):t=null,t===null)throw Ga(e);return jo(t)?e.lanes=32:e.lanes=536870912,null}var x=l.children;return l=l.fallback,u?(Pa(),u=e.mode,x=Eu({mode:"hidden",children:x},u),l=On(l,u,a,null),x.return=e,l.return=e,x.sibling=l,e.child=x,l=e.child,l.memoizedState=Qc(a),l.childLanes=Yc(t,d,a),e.memoizedState=qc,Ks(null,l)):(Ja(e),Gc(e,x))}var j=t.memoizedState;if(j!==null&&(x=j.dehydrated,x!==null)){if(c)e.flags&256?(Ja(e),e.flags&=-257,e=Vc(t,e,a)):e.memoizedState!==null?(Pa(),e.child=t.child,e.flags|=128,e=null):(Pa(),x=l.fallback,u=e.mode,l=Eu({mode:"visible",children:l.children},u),x=On(x,u,a,null),x.flags|=2,l.return=e,x.return=e,l.sibling=x,e.child=l,Hn(e,t.child,null,a),l=e.child,l.memoizedState=Qc(a),l.childLanes=Yc(t,d,a),e.memoizedState=qc,e=Ks(null,l));else if(Ja(e),jo(x)){if(d=x.nextSibling&&x.nextSibling.dataset,d)var z=d.dgst;d=z,l=Error(r(419)),l.stack="",l.digest=d,Ds({value:l,source:null,stack:null}),e=Vc(t,e,a)}else if(It||Ol(t,e,a,!1),d=(a&t.childLanes)!==0,It||d){if(d=Bt,d!==null&&(l=Yf(d,a),l!==0&&l!==j.retryLane))throw j.retryLane=l,Cn(t,l),je(d,t,l),Bc;_o(x)||wu(),e=Vc(t,e,a)}else _o(x)?(e.flags|=192,e.child=t.child,e=null):(t=j.treeContext,qt=Ze(x.nextSibling),se=e,Tt=!0,Ya=null,Xe=!1,t!==null&&Bd(e,t),e=Gc(e,l.children),e.flags|=4096);return e}return u?(Pa(),x=l.fallback,u=e.mode,j=t.child,z=j.sibling,l=ga(j,{mode:"hidden",children:l.children}),l.subtreeFlags=j.subtreeFlags&65011712,z!==null?x=ga(z,x):(x=On(x,u,a,null),x.flags|=2),x.return=e,l.return=e,l.sibling=x,e.child=l,Ks(null,l),l=e.child,x=t.child.memoizedState,x===null?x=Qc(a):(u=x.cachePool,u!==null?(j=Ft._currentValue,u=u.parent!==j?{parent:j,pool:j}:u):u=Vd(),x={baseLanes:x.baseLanes|a,cachePool:u}),l.memoizedState=x,l.childLanes=Yc(t,d,a),e.memoizedState=qc,Ks(t.child,l)):(Ja(e),a=t.child,t=a.sibling,a=ga(a,{mode:"visible",children:l.children}),a.return=e,a.sibling=null,t!==null&&(d=e.deletions,d===null?(e.deletions=[t],e.flags|=16):d.push(t)),e.child=a,e.memoizedState=null,a)}function Gc(t,e){return e=Eu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Eu(t,e){return t=Oe(22,t,null,e),t.lanes=0,t}function Vc(t,e,a){return Hn(e,t.child,null,a),t=Gc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function am(t,e,a){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),lc(t.return,e,a)}function Xc(t,e,a,l,u,c){var d=t.memoizedState;d===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:u,treeForkCount:c}:(d.isBackwards=e,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=a,d.tailMode=u,d.treeForkCount=c)}function nm(t,e,a){var l=e.pendingProps,u=l.revealOrder,c=l.tail;l=l.children;var d=Pt.current,x=(d&2)!==0;if(x?(d=d&1|2,e.flags|=128):d&=1,I(Pt,d),ue(t,e,l,a),l=Tt?zs:0,!x&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&am(t,a,e);else if(t.tag===19)am(t,a,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(a=e.child,u=null;a!==null;)t=a.alternate,t!==null&&hu(t)===null&&(u=a),a=a.sibling;a=u,a===null?(u=e.child,e.child=null):(u=a.sibling,a.sibling=null),Xc(e,!1,u,a,c,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&hu(t)===null){e.child=u;break}t=u.sibling,u.sibling=a,a=u,u=t}Xc(e,!0,a,null,c,l);break;case"together":Xc(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function Ra(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),$a|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Ol(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,a=ga(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=ga(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function Kc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&su(t)))}function sp(t,e,a){switch(e.tag){case 3:Jt(e,e.stateNode.containerInfo),Va(e,Ft,t.memoizedState.cache),zn();break;case 27:case 5:ea(e);break;case 4:Jt(e,e.stateNode.containerInfo);break;case 10:Va(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,gc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Ja(e),e.flags|=128,null):(a&e.child.childLanes)!==0?em(t,e,a):(Ja(e),t=Ra(t,e,a),t!==null?t.sibling:null);Ja(e);break;case 19:var u=(t.flags&128)!==0;if(l=(a&e.childLanes)!==0,l||(Ol(t,e,a,!1),l=(a&e.childLanes)!==0),u){if(l)return nm(t,e,a);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),I(Pt,Pt.current),l)break;return null;case 22:return e.lanes=0,kh(t,e,a,e.pendingProps);case 24:Va(e,Ft,t.memoizedState.cache)}return Ra(t,e,a)}function lm(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)It=!0;else{if(!Kc(t,a)&&(e.flags&128)===0)return It=!1,sp(t,e,a);It=(t.flags&131072)!==0}else It=!1,Tt&&(e.flags&1048576)!==0&&Ld(e,zs,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=Ln(e.elementType),e.type=t,typeof t=="function")Fr(t)?(l=Qn(t,l),e.tag=1,e=Wh(null,e,t,l,a)):(e.tag=0,e=Hc(null,e,t,l,a));else{if(t!=null){var u=t.$$typeof;if(u===L){e.tag=11,e=Zh(null,e,t,l,a);break t}else if(u===Z){e.tag=14,e=Jh(null,e,t,l,a);break t}}throw e=ct(t)||t,Error(r(306,e,""))}}return e;case 0:return Hc(t,e,e.type,e.pendingProps,a);case 1:return l=e.type,u=Qn(l,e.pendingProps),Wh(t,e,l,u,a);case 3:t:{if(Jt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));l=e.pendingProps;var c=e.memoizedState;u=c.element,fc(t,e),Qs(e,l,null,a);var d=e.memoizedState;if(l=d.cache,Va(e,Ft,l),l!==c.cache&&sc(e,[Ft],a,!0),qs(),l=d.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:d.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=tm(t,e,l,a);break t}else if(l!==u){u=Ye(Error(r(424)),e),Ds(u),e=tm(t,e,l,a);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(qt=Ze(t.firstChild),se=e,Tt=!0,Ya=null,Xe=!0,a=kd(e,null,l,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(zn(),l===u){e=Ra(t,e,a);break t}ue(t,e,l,a)}e=e.child}return e;case 26:return ju(t,e),t===null?(a=yy(e.type,null,e.pendingProps,null))?e.memoizedState=a:Tt||(a=e.type,t=e.pendingProps,l=Yu(pt.current).createElement(a),l[le]=e,l[pe]=t,re(l,a,t),ee(l),e.stateNode=l):e.memoizedState=yy(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return ea(e),t===null&&Tt&&(l=e.stateNode=dy(e.type,e.pendingProps,pt.current),se=e,Xe=!0,u=qt,an(e.type)?(Eo=u,qt=Ze(l.firstChild)):qt=u),ue(t,e,e.pendingProps.children,a),ju(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Tt&&((u=l=qt)&&(l=Up(l,e.type,e.pendingProps,Xe),l!==null?(e.stateNode=l,se=e,qt=Ze(l.firstChild),Xe=!1,u=!0):u=!1),u||Ga(e)),ea(e),u=e.type,c=e.pendingProps,d=t!==null?t.memoizedProps:null,l=c.children,bo(u,c)?l=null:d!==null&&bo(u,d)&&(e.flags|=32),e.memoizedState!==null&&(u=pc(t,e,Fv,null,null,a),ii._currentValue=u),ju(t,e),ue(t,e,l,a),e.child;case 6:return t===null&&Tt&&((t=a=qt)&&(a=Lp(a,e.pendingProps,Xe),a!==null?(e.stateNode=a,se=e,qt=null,t=!0):t=!1),t||Ga(e)),null;case 13:return em(t,e,a);case 4:return Jt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Hn(e,null,l,a):ue(t,e,l,a),e.child;case 11:return Zh(t,e,e.type,e.pendingProps,a);case 7:return ue(t,e,e.pendingProps,a),e.child;case 8:return ue(t,e,e.pendingProps.children,a),e.child;case 12:return ue(t,e,e.pendingProps.children,a),e.child;case 10:return l=e.pendingProps,Va(e,e.type,l.value),ue(t,e,l.children,a),e.child;case 9:return u=e.type._context,l=e.pendingProps.children,wn(e),u=ie(u),l=l(u),e.flags|=1,ue(t,e,l,a),e.child;case 14:return Jh(t,e,e.type,e.pendingProps,a);case 15:return Ph(t,e,e.type,e.pendingProps,a);case 19:return nm(t,e,a);case 31:return lp(t,e,a);case 22:return kh(t,e,a,e.pendingProps);case 24:return wn(e),l=ie(Ft),t===null?(u=rc(),u===null&&(u=Bt,c=ic(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=a),u=c),e.memoizedState={parent:l,cache:u},oc(e),Va(e,Ft,u)):((t.lanes&a)!==0&&(fc(t,e),Qs(e,null,null,a),qs()),u=t.memoizedState,c=e.memoizedState,u.parent!==l?(u={parent:l,cache:l},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),Va(e,Ft,l)):(l=c.cache,Va(e,Ft,l),l!==u.cache&&sc(e,[Ft],a,!0))),ue(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function _a(t){t.flags|=4}function Zc(t,e,a,l,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(Om())t.flags|=8192;else throw Bn=cu,cc}else t.flags&=-16777217}function sm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!by(e))if(Om())t.flags|=8192;else throw Bn=cu,cc}function Tu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Hf():536870912,t.lanes|=e,Vl|=e)}function Zs(t,e){if(!Tt)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Qt(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,l=0;if(e)for(var u=t.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=l,t.childLanes=a,e}function ip(t,e,a){var l=e.pendingProps;switch(tc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qt(e),null;case 1:return Qt(e),null;case 3:return a=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),xa(Ft),Ht(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Cl(e)?_a(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,ac())),Qt(e),null;case 26:var u=e.type,c=e.memoizedState;return t===null?(_a(e),c!==null?(Qt(e),sm(e,c)):(Qt(e),Zc(e,u,null,l,a))):c?c!==t.memoizedState?(_a(e),Qt(e),sm(e,c)):(Qt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&_a(e),Qt(e),Zc(e,u,t,l,a)),null;case 27:if(fa(e),a=pt.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&_a(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Qt(e),null}t=W.current,Cl(e)?Hd(e):(t=dy(u,l,a),e.stateNode=t,_a(e))}return Qt(e),null;case 5:if(fa(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&_a(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Qt(e),null}if(c=W.current,Cl(e))Hd(e);else{var d=Yu(pt.current);switch(c){case 1:c=d.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=d.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=d.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=d.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=d.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?d.createElement(u,{is:l.is}):d.createElement(u)}}c[le]=e,c[pe]=l;t:for(d=e.child;d!==null;){if(d.tag===5||d.tag===6)c.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break t;for(;d.sibling===null;){if(d.return===null||d.return===e)break t;d=d.return}d.sibling.return=d.return,d=d.sibling}e.stateNode=c;t:switch(re(c,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&_a(e)}}return Qt(e),Zc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&_a(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(r(166));if(t=pt.current,Cl(e)){if(t=e.stateNode,a=e.memoizedProps,l=null,u=se,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}t[le]=e,t=!!(t.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||ey(t.nodeValue,a)),t||Ga(e,!0)}else t=Yu(t).createTextNode(l),t[le]=e,e.stateNode=t}return Qt(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(l=Cl(e),a!==null){if(t===null){if(!l)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[le]=e}else zn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Qt(e),t=!1}else a=ac(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(De(e),e):(De(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Qt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Cl(e),l!==null&&l.dehydrated!==null){if(t===null){if(!u)throw Error(r(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[le]=e}else zn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Qt(e),u=!1}else u=ac(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(De(e),e):(De(e),null)}return De(e),(e.flags&128)!==0?(e.lanes=a,e):(a=l!==null,t=t!==null&&t.memoizedState!==null,a&&(l=e.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==u&&(l.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),Tu(e,e.updateQueue),Qt(e),null);case 4:return Ht(),t===null&&yo(e.stateNode.containerInfo),Qt(e),null;case 10:return xa(e.type),Qt(e),null;case 19:if(Q(Pt),l=e.memoizedState,l===null)return Qt(e),null;if(u=(e.flags&128)!==0,c=l.rendering,c===null)if(u)Zs(l,!1);else{if(Kt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=hu(t),c!==null){for(e.flags|=128,Zs(l,!1),t=c.updateQueue,e.updateQueue=t,Tu(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)Dd(a,t),a=a.sibling;return I(Pt,Pt.current&1|2),Tt&&va(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&bt()>Ou&&(e.flags|=128,u=!0,Zs(l,!1),e.lanes=4194304)}else{if(!u)if(t=hu(c),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,Tu(e,t),Zs(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!Tt)return Qt(e),null}else 2*bt()-l.renderingStartTime>Ou&&a!==536870912&&(e.flags|=128,u=!0,Zs(l,!1),e.lanes=4194304);l.isBackwards?(c.sibling=e.child,e.child=c):(t=l.last,t!==null?t.sibling=c:e.child=c,l.last=c)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=bt(),t.sibling=null,a=Pt.current,I(Pt,u?a&1|2:a&1),Tt&&va(e,l.treeForkCount),t):(Qt(e),null);case 22:case 23:return De(e),yc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(a&536870912)!==0&&(e.flags&128)===0&&(Qt(e),e.subtreeFlags&6&&(e.flags|=8192)):Qt(e),a=e.updateQueue,a!==null&&Tu(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==a&&(e.flags|=2048),t!==null&&Q(Un),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),xa(Ft),Qt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function up(t,e){switch(tc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return xa(Ft),Ht(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return fa(e),null;case 31:if(e.memoizedState!==null){if(De(e),e.alternate===null)throw Error(r(340));zn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(De(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));zn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Q(Pt),null;case 4:return Ht(),null;case 10:return xa(e.type),null;case 22:case 23:return De(e),yc(),t!==null&&Q(Un),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return xa(Ft),null;case 25:return null;default:return null}}function im(t,e){switch(tc(e),e.tag){case 3:xa(Ft),Ht();break;case 26:case 27:case 5:fa(e);break;case 4:Ht();break;case 31:e.memoizedState!==null&&De(e);break;case 13:De(e);break;case 19:Q(Pt);break;case 10:xa(e.type);break;case 22:case 23:De(e),yc(),t!==null&&Q(Un);break;case 24:xa(Ft)}}function Js(t,e){try{var a=e.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var u=l.next;a=u;do{if((a.tag&t)===t){l=void 0;var c=a.create,d=a.inst;l=c(),d.destroy=l}a=a.next}while(a!==u)}}catch(x){Dt(e,e.return,x)}}function ka(t,e,a){try{var l=e.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var c=u.next;l=c;do{if((l.tag&t)===t){var d=l.inst,x=d.destroy;if(x!==void 0){d.destroy=void 0,u=e;var j=a,z=x;try{z()}catch(H){Dt(u,j,H)}}}l=l.next}while(l!==c)}}catch(H){Dt(e,e.return,H)}}function um(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{$d(e,a)}catch(l){Dt(t,t.return,l)}}}function rm(t,e,a){a.props=Qn(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(l){Dt(t,e,l)}}function Ps(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof a=="function"?t.refCleanup=a(l):a.current=l}}catch(u){Dt(t,e,u)}}function sa(t,e){var a=t.ref,l=t.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(u){Dt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Dt(t,e,u)}else a.current=null}function cm(t){var e=t.type,a=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break t;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(u){Dt(t,t.return,u)}}function Jc(t,e,a){try{var l=t.stateNode;Ap(l,t.type,a,e),l[pe]=e}catch(u){Dt(t,t.return,u)}}function om(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&an(t.type)||t.tag===4}function Pc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||om(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&an(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function kc(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=ma));else if(l!==4&&(l===27&&an(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(kc(t,e,a),t=t.sibling;t!==null;)kc(t,e,a),t=t.sibling}function Nu(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(l!==4&&(l===27&&an(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(Nu(t,e,a),t=t.sibling;t!==null;)Nu(t,e,a),t=t.sibling}function fm(t){var e=t.stateNode,a=t.memoizedProps;try{for(var l=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);re(e,l,a),e[le]=t,e[pe]=a}catch(c){Dt(t,t.return,c)}}var ja=!1,Wt=!1,Fc=!1,dm=typeof WeakSet=="function"?WeakSet:Set,ae=null;function rp(t,e){if(t=t.containerInfo,po=Pu,t=jd(t),Vr(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var u=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break t}var d=0,x=-1,j=-1,z=0,H=0,Y=t,w=null;e:for(;;){for(var B;Y!==a||u!==0&&Y.nodeType!==3||(x=d+u),Y!==c||l!==0&&Y.nodeType!==3||(j=d+l),Y.nodeType===3&&(d+=Y.nodeValue.length),(B=Y.firstChild)!==null;)w=Y,Y=B;for(;;){if(Y===t)break e;if(w===a&&++z===u&&(x=d),w===c&&++H===l&&(j=d),(B=Y.nextSibling)!==null)break;Y=w,w=Y.parentNode}Y=B}a=x===-1||j===-1?null:{start:x,end:j}}else a=null}a=a||{start:0,end:0}}else a=null;for(xo={focusedElem:t,selectionRange:a},Pu=!1,ae=e;ae!==null;)if(e=ae,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ae=t;else for(;ae!==null;){switch(e=ae,c=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)u=t[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,a=e,u=c.memoizedProps,c=c.memoizedState,l=a.stateNode;try{var lt=Qn(a.type,u);t=l.getSnapshotBeforeUpdate(lt,c),l.__reactInternalSnapshotBeforeUpdate=t}catch(ft){Dt(a,a.return,ft)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)Ro(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Ro(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,ae=t;break}ae=e.return}}function hm(t,e,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Ta(t,a),l&4&&Js(5,a);break;case 1:if(Ta(t,a),l&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(d){Dt(a,a.return,d)}else{var u=Qn(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(d){Dt(a,a.return,d)}}l&64&&um(a),l&512&&Ps(a,a.return);break;case 3:if(Ta(t,a),l&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{$d(t,e)}catch(d){Dt(a,a.return,d)}}break;case 27:e===null&&l&4&&fm(a);case 26:case 5:Ta(t,a),e===null&&l&4&&cm(a),l&512&&Ps(a,a.return);break;case 12:Ta(t,a);break;case 31:Ta(t,a),l&4&&gm(t,a);break;case 13:Ta(t,a),l&4&&vm(t,a),l&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=vp.bind(null,a),Bp(t,a))));break;case 22:if(l=a.memoizedState!==null||ja,!l){e=e!==null&&e.memoizedState!==null||Wt,u=ja;var c=Wt;ja=l,(Wt=e)&&!c?Na(t,a,(a.subtreeFlags&8772)!==0):Ta(t,a),ja=u,Wt=c}break;case 30:break;default:Ta(t,a)}}function mm(t){var e=t.alternate;e!==null&&(t.alternate=null,mm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Tr(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Yt=null,be=!1;function Ea(t,e,a){for(a=a.child;a!==null;)ym(t,e,a),a=a.sibling}function ym(t,e,a){if(Me&&typeof Me.onCommitFiberUnmount=="function")try{Me.onCommitFiberUnmount(ps,a)}catch{}switch(a.tag){case 26:Wt||sa(a,e),Ea(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Wt||sa(a,e);var l=Yt,u=be;an(a.type)&&(Yt=a.stateNode,be=!1),Ea(t,e,a),ni(a.stateNode),Yt=l,be=u;break;case 5:Wt||sa(a,e);case 6:if(l=Yt,u=be,Yt=null,Ea(t,e,a),Yt=l,be=u,Yt!==null)if(be)try{(Yt.nodeType===9?Yt.body:Yt.nodeName==="HTML"?Yt.ownerDocument.body:Yt).removeChild(a.stateNode)}catch(c){Dt(a,e,c)}else try{Yt.removeChild(a.stateNode)}catch(c){Dt(a,e,c)}break;case 18:Yt!==null&&(be?(t=Yt,uy(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),$l(t)):uy(Yt,a.stateNode));break;case 4:l=Yt,u=be,Yt=a.stateNode.containerInfo,be=!0,Ea(t,e,a),Yt=l,be=u;break;case 0:case 11:case 14:case 15:ka(2,a,e),Wt||ka(4,a,e),Ea(t,e,a);break;case 1:Wt||(sa(a,e),l=a.stateNode,typeof l.componentWillUnmount=="function"&&rm(a,e,l)),Ea(t,e,a);break;case 21:Ea(t,e,a);break;case 22:Wt=(l=Wt)||a.memoizedState!==null,Ea(t,e,a),Wt=l;break;default:Ea(t,e,a)}}function gm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{$l(t)}catch(a){Dt(e,e.return,a)}}}function vm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{$l(t)}catch(a){Dt(e,e.return,a)}}function cp(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new dm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new dm),e;default:throw Error(r(435,t.tag))}}function Mu(t,e){var a=cp(t);e.forEach(function(l){if(!a.has(l)){a.add(l);var u=pp.bind(null,t,l);l.then(u,u)}})}function Se(t,e){var a=e.deletions;if(a!==null)for(var l=0;l<a.length;l++){var u=a[l],c=t,d=e,x=d;t:for(;x!==null;){switch(x.tag){case 27:if(an(x.type)){Yt=x.stateNode,be=!1;break t}break;case 5:Yt=x.stateNode,be=!1;break t;case 3:case 4:Yt=x.stateNode.containerInfo,be=!0;break t}x=x.return}if(Yt===null)throw Error(r(160));ym(c,d,u),Yt=null,be=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)pm(e,t),e=e.sibling}var Ie=null;function pm(t,e){var a=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Se(e,t),Re(t),l&4&&(ka(3,t,t.return),Js(3,t),ka(5,t,t.return));break;case 1:Se(e,t),Re(t),l&512&&(Wt||a===null||sa(a,a.return)),l&64&&ja&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var u=Ie;if(Se(e,t),Re(t),l&512&&(Wt||a===null||sa(a,a.return)),l&4){var c=a!==null?a.memoizedState:null;if(l=t.memoizedState,a===null)if(l===null)if(t.stateNode===null){t:{l=t.type,a=t.memoizedProps,u=u.ownerDocument||u;e:switch(l){case"title":c=u.getElementsByTagName("title")[0],(!c||c[Ss]||c[le]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(l),u.head.insertBefore(c,u.querySelector("head > title"))),re(c,l,a),c[le]=t,ee(c),l=c;break t;case"link":var d=py("link","href",u).get(l+(a.href||""));if(d){for(var x=0;x<d.length;x++)if(c=d[x],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(x,1);break e}}c=u.createElement(l),re(c,l,a),u.head.appendChild(c);break;case"meta":if(d=py("meta","content",u).get(l+(a.content||""))){for(x=0;x<d.length;x++)if(c=d[x],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(x,1);break e}}c=u.createElement(l),re(c,l,a),u.head.appendChild(c);break;default:throw Error(r(468,l))}c[le]=t,ee(c),l=c}t.stateNode=l}else xy(u,t.type,t.stateNode);else t.stateNode=vy(u,l,t.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?xy(u,t.type,t.stateNode):vy(u,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Jc(t,t.memoizedProps,a.memoizedProps)}break;case 27:Se(e,t),Re(t),l&512&&(Wt||a===null||sa(a,a.return)),a!==null&&l&4&&Jc(t,t.memoizedProps,a.memoizedProps);break;case 5:if(Se(e,t),Re(t),l&512&&(Wt||a===null||sa(a,a.return)),t.flags&32){u=t.stateNode;try{bl(u,"")}catch(lt){Dt(t,t.return,lt)}}l&4&&t.stateNode!=null&&(u=t.memoizedProps,Jc(t,u,a!==null?a.memoizedProps:u)),l&1024&&(Fc=!0);break;case 6:if(Se(e,t),Re(t),l&4){if(t.stateNode===null)throw Error(r(162));l=t.memoizedProps,a=t.stateNode;try{a.nodeValue=l}catch(lt){Dt(t,t.return,lt)}}break;case 3:if(Xu=null,u=Ie,Ie=Gu(e.containerInfo),Se(e,t),Ie=u,Re(t),l&4&&a!==null&&a.memoizedState.isDehydrated)try{$l(e.containerInfo)}catch(lt){Dt(t,t.return,lt)}Fc&&(Fc=!1,xm(t));break;case 4:l=Ie,Ie=Gu(t.stateNode.containerInfo),Se(e,t),Re(t),Ie=l;break;case 12:Se(e,t),Re(t);break;case 31:Se(e,t),Re(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Mu(t,l)));break;case 13:Se(e,t),Re(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Cu=bt()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Mu(t,l)));break;case 22:u=t.memoizedState!==null;var j=a!==null&&a.memoizedState!==null,z=ja,H=Wt;if(ja=z||u,Wt=H||j,Se(e,t),Wt=H,ja=z,Re(t),l&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(a===null||j||ja||Wt||Yn(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){j=a=e;try{if(c=j.stateNode,u)d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{x=j.stateNode;var Y=j.memoizedProps.style,w=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;x.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(lt){Dt(j,j.return,lt)}}}else if(e.tag===6){if(a===null){j=e;try{j.stateNode.nodeValue=u?"":j.memoizedProps}catch(lt){Dt(j,j.return,lt)}}}else if(e.tag===18){if(a===null){j=e;try{var B=j.stateNode;u?ry(B,!0):ry(j.stateNode,!1)}catch(lt){Dt(j,j.return,lt)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Mu(t,a))));break;case 19:Se(e,t),Re(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Mu(t,l)));break;case 30:break;case 21:break;default:Se(e,t),Re(t)}}function Re(t){var e=t.flags;if(e&2){try{for(var a,l=t.return;l!==null;){if(om(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var u=a.stateNode,c=Pc(t);Nu(t,c,u);break;case 5:var d=a.stateNode;a.flags&32&&(bl(d,""),a.flags&=-33);var x=Pc(t);Nu(t,x,d);break;case 3:case 4:var j=a.stateNode.containerInfo,z=Pc(t);kc(t,z,j);break;default:throw Error(r(161))}}catch(H){Dt(t,t.return,H)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function xm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;xm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Ta(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)hm(t,e.alternate,e),e=e.sibling}function Yn(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:ka(4,e,e.return),Yn(e);break;case 1:sa(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&rm(e,e.return,a),Yn(e);break;case 27:ni(e.stateNode);case 26:case 5:sa(e,e.return),Yn(e);break;case 22:e.memoizedState===null&&Yn(e);break;case 30:Yn(e);break;default:Yn(e)}t=t.sibling}}function Na(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,u=t,c=e,d=c.flags;switch(c.tag){case 0:case 11:case 15:Na(u,c,a),Js(4,c);break;case 1:if(Na(u,c,a),l=c,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(z){Dt(l,l.return,z)}if(l=c,u=l.updateQueue,u!==null){var x=l.stateNode;try{var j=u.shared.hiddenCallbacks;if(j!==null)for(u.shared.hiddenCallbacks=null,u=0;u<j.length;u++)Fd(j[u],x)}catch(z){Dt(l,l.return,z)}}a&&d&64&&um(c),Ps(c,c.return);break;case 27:fm(c);case 26:case 5:Na(u,c,a),a&&l===null&&d&4&&cm(c),Ps(c,c.return);break;case 12:Na(u,c,a);break;case 31:Na(u,c,a),a&&d&4&&gm(u,c);break;case 13:Na(u,c,a),a&&d&4&&vm(u,c);break;case 22:c.memoizedState===null&&Na(u,c,a),Ps(c,c.return);break;case 30:break;default:Na(u,c,a)}e=e.sibling}}function $c(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&ws(a))}function Ic(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ws(t))}function We(t,e,a,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)bm(t,e,a,l),e=e.sibling}function bm(t,e,a,l){var u=e.flags;switch(e.tag){case 0:case 11:case 15:We(t,e,a,l),u&2048&&Js(9,e);break;case 1:We(t,e,a,l);break;case 3:We(t,e,a,l),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&ws(t)));break;case 12:if(u&2048){We(t,e,a,l),t=e.stateNode;try{var c=e.memoizedProps,d=c.id,x=c.onPostCommit;typeof x=="function"&&x(d,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(j){Dt(e,e.return,j)}}else We(t,e,a,l);break;case 31:We(t,e,a,l);break;case 13:We(t,e,a,l);break;case 23:break;case 22:c=e.stateNode,d=e.alternate,e.memoizedState!==null?c._visibility&2?We(t,e,a,l):ks(t,e):c._visibility&2?We(t,e,a,l):(c._visibility|=2,Ql(t,e,a,l,(e.subtreeFlags&10256)!==0||!1)),u&2048&&$c(d,e);break;case 24:We(t,e,a,l),u&2048&&Ic(e.alternate,e);break;default:We(t,e,a,l)}}function Ql(t,e,a,l,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,d=e,x=a,j=l,z=d.flags;switch(d.tag){case 0:case 11:case 15:Ql(c,d,x,j,u),Js(8,d);break;case 23:break;case 22:var H=d.stateNode;d.memoizedState!==null?H._visibility&2?Ql(c,d,x,j,u):ks(c,d):(H._visibility|=2,Ql(c,d,x,j,u)),u&&z&2048&&$c(d.alternate,d);break;case 24:Ql(c,d,x,j,u),u&&z&2048&&Ic(d.alternate,d);break;default:Ql(c,d,x,j,u)}e=e.sibling}}function ks(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,l=e,u=l.flags;switch(l.tag){case 22:ks(a,l),u&2048&&$c(l.alternate,l);break;case 24:ks(a,l),u&2048&&Ic(l.alternate,l);break;default:ks(a,l)}e=e.sibling}}var Fs=8192;function Yl(t,e,a){if(t.subtreeFlags&Fs)for(t=t.child;t!==null;)Sm(t,e,a),t=t.sibling}function Sm(t,e,a){switch(t.tag){case 26:Yl(t,e,a),t.flags&Fs&&t.memoizedState!==null&&kp(a,Ie,t.memoizedState,t.memoizedProps);break;case 5:Yl(t,e,a);break;case 3:case 4:var l=Ie;Ie=Gu(t.stateNode.containerInfo),Yl(t,e,a),Ie=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Fs,Fs=16777216,Yl(t,e,a),Fs=l):Yl(t,e,a));break;default:Yl(t,e,a)}}function Rm(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function $s(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];ae=l,jm(l,t)}Rm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)_m(t),t=t.sibling}function _m(t){switch(t.tag){case 0:case 11:case 15:$s(t),t.flags&2048&&ka(9,t,t.return);break;case 3:$s(t);break;case 12:$s(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Au(t)):$s(t);break;default:$s(t)}}function Au(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];ae=l,jm(l,t)}Rm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:ka(8,e,e.return),Au(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,Au(e));break;default:Au(e)}t=t.sibling}}function jm(t,e){for(;ae!==null;){var a=ae;switch(a.tag){case 0:case 11:case 15:ka(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:ws(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,ae=l;else t:for(a=t;ae!==null;){l=ae;var u=l.sibling,c=l.return;if(mm(l),l===a){ae=null;break t}if(u!==null){u.return=c,ae=u;break t}ae=c}}}var op={getCacheForType:function(t){var e=ie(Ft),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return ie(Ft).controller.signal}},fp=typeof WeakMap=="function"?WeakMap:Map,Ct=0,Bt=null,St=null,_t=0,zt=0,we=null,Fa=!1,Gl=!1,Wc=!1,Ma=0,Kt=0,$a=0,Gn=0,to=0,Ue=0,Vl=0,Is=null,_e=null,eo=!1,Cu=0,Em=0,Ou=1/0,zu=null,Ia=null,te=0,Wa=null,Xl=null,Aa=0,ao=0,no=null,Tm=null,Ws=0,lo=null;function Le(){return(Ct&2)!==0&&_t!==0?_t&-_t:D.T!==null?oo():Gf()}function Nm(){if(Ue===0)if((_t&536870912)===0||Tt){var t=Qi;Qi<<=1,(Qi&3932160)===0&&(Qi=262144),Ue=t}else Ue=536870912;return t=ze.current,t!==null&&(t.flags|=32),Ue}function je(t,e,a){(t===Bt&&(zt===2||zt===9)||t.cancelPendingCommit!==null)&&(Kl(t,0),tn(t,_t,Ue,!1)),bs(t,a),((Ct&2)===0||t!==Bt)&&(t===Bt&&((Ct&2)===0&&(Gn|=a),Kt===4&&tn(t,_t,Ue,!1)),ia(t))}function Mm(t,e,a){if((Ct&6)!==0)throw Error(r(327));var l=!a&&(e&127)===0&&(e&t.expiredLanes)===0||xs(t,e),u=l?mp(t,e):io(t,e,!0),c=l;do{if(u===0){Gl&&!l&&tn(t,e,0,!1);break}else{if(a=t.current.alternate,c&&!dp(a)){u=io(t,e,!1),c=!1;continue}if(u===2){if(c=e,t.errorRecoveryDisabledLanes&c)var d=0;else d=t.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){e=d;t:{var x=t;u=Is;var j=x.current.memoizedState.isDehydrated;if(j&&(Kl(x,d).flags|=256),d=io(x,d,!1),d!==2){if(Wc&&!j){x.errorRecoveryDisabledLanes|=c,Gn|=c,u=4;break t}c=_e,_e=u,c!==null&&(_e===null?_e=c:_e.push.apply(_e,c))}u=d}if(c=!1,u!==2)continue}}if(u===1){Kl(t,0),tn(t,e,0,!0);break}t:{switch(l=t,c=u,c){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:tn(l,e,Ue,!Fa);break t;case 2:_e=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(u=Cu+300-bt(),10<u)){if(tn(l,e,Ue,!Fa),Gi(l,0,!0)!==0)break t;Aa=e,l.timeoutHandle=sy(Am.bind(null,l,a,_e,zu,eo,e,Ue,Gn,Vl,Fa,c,"Throttled",-0,0),u);break t}Am(l,a,_e,zu,eo,e,Ue,Gn,Vl,Fa,c,null,-0,0)}}break}while(!0);ia(t)}function Am(t,e,a,l,u,c,d,x,j,z,H,Y,w,B){if(t.timeoutHandle=-1,Y=e.subtreeFlags,Y&8192||(Y&16785408)===16785408){Y={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ma},Sm(e,c,Y);var lt=(c&62914560)===c?Cu-bt():(c&4194048)===c?Em-bt():0;if(lt=Fp(Y,lt),lt!==null){Aa=c,t.cancelPendingCommit=lt(Bm.bind(null,t,e,c,a,l,u,d,x,j,H,Y,null,w,B)),tn(t,c,d,!z);return}}Bm(t,e,c,a,l,u,d,x,j)}function dp(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var u=a[l],c=u.getSnapshot;u=u.value;try{if(!Ce(c(),u))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function tn(t,e,a,l){e&=~to,e&=~Gn,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var u=e;0<u;){var c=31-Ae(u),d=1<<c;l[c]=-1,u&=~d}a!==0&&qf(t,a,e)}function Du(){return(Ct&6)===0?(ti(0),!1):!0}function so(){if(St!==null){if(zt===0)var t=St.return;else t=St,pa=Dn=null,Sc(t),Ul=null,Ls=0,t=St;for(;t!==null;)im(t.alternate,t),t=t.return;St=null}}function Kl(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,zp(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Aa=0,so(),Bt=t,St=a=ga(t.current,null),_t=e,zt=0,we=null,Fa=!1,Gl=xs(t,e),Wc=!1,Vl=Ue=to=Gn=$a=Kt=0,_e=Is=null,eo=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var u=31-Ae(l),c=1<<u;e|=t[u],l&=~c}return Ma=e,tu(),a}function Cm(t,e){gt=null,D.H=Xs,e===wl||e===ru?(e=Zd(),zt=3):e===cc?(e=Zd(),zt=4):zt=e===Bc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,we=e,St===null&&(Kt=1,Ru(t,Ye(e,t.current)))}function Om(){var t=ze.current;return t===null?!0:(_t&4194048)===_t?Ke===null:(_t&62914560)===_t||(_t&536870912)!==0?t===Ke:!1}function zm(){var t=D.H;return D.H=Xs,t===null?Xs:t}function Dm(){var t=D.A;return D.A=op,t}function wu(){Kt=4,Fa||(_t&4194048)!==_t&&ze.current!==null||(Gl=!0),($a&134217727)===0&&(Gn&134217727)===0||Bt===null||tn(Bt,_t,Ue,!1)}function io(t,e,a){var l=Ct;Ct|=2;var u=zm(),c=Dm();(Bt!==t||_t!==e)&&(zu=null,Kl(t,e)),e=!1;var d=Kt;t:do try{if(zt!==0&&St!==null){var x=St,j=we;switch(zt){case 8:so(),d=6;break t;case 3:case 2:case 9:case 6:ze.current===null&&(e=!0);var z=zt;if(zt=0,we=null,Zl(t,x,j,z),a&&Gl){d=0;break t}break;default:z=zt,zt=0,we=null,Zl(t,x,j,z)}}hp(),d=Kt;break}catch(H){Cm(t,H)}while(!0);return e&&t.shellSuspendCounter++,pa=Dn=null,Ct=l,D.H=u,D.A=c,St===null&&(Bt=null,_t=0,tu()),d}function hp(){for(;St!==null;)wm(St)}function mp(t,e){var a=Ct;Ct|=2;var l=zm(),u=Dm();Bt!==t||_t!==e?(zu=null,Ou=bt()+500,Kl(t,e)):Gl=xs(t,e);t:do try{if(zt!==0&&St!==null){e=St;var c=we;e:switch(zt){case 1:zt=0,we=null,Zl(t,e,c,1);break;case 2:case 9:if(Xd(c)){zt=0,we=null,Um(e);break}e=function(){zt!==2&&zt!==9||Bt!==t||(zt=7),ia(t)},c.then(e,e);break t;case 3:zt=7;break t;case 4:zt=5;break t;case 7:Xd(c)?(zt=0,we=null,Um(e)):(zt=0,we=null,Zl(t,e,c,7));break;case 5:var d=null;switch(St.tag){case 26:d=St.memoizedState;case 5:case 27:var x=St;if(d?by(d):x.stateNode.complete){zt=0,we=null;var j=x.sibling;if(j!==null)St=j;else{var z=x.return;z!==null?(St=z,Uu(z)):St=null}break e}}zt=0,we=null,Zl(t,e,c,5);break;case 6:zt=0,we=null,Zl(t,e,c,6);break;case 8:so(),Kt=6;break t;default:throw Error(r(462))}}yp();break}catch(H){Cm(t,H)}while(!0);return pa=Dn=null,D.H=l,D.A=u,Ct=a,St!==null?0:(Bt=null,_t=0,tu(),Kt)}function yp(){for(;St!==null&&!Sr();)wm(St)}function wm(t){var e=lm(t.alternate,t,Ma);t.memoizedProps=t.pendingProps,e===null?Uu(t):St=e}function Um(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=Ih(a,e,e.pendingProps,e.type,void 0,_t);break;case 11:e=Ih(a,e,e.pendingProps,e.type.render,e.ref,_t);break;case 5:Sc(e);default:im(a,e),e=St=Dd(e,Ma),e=lm(a,e,Ma)}t.memoizedProps=t.pendingProps,e===null?Uu(t):St=e}function Zl(t,e,a,l){pa=Dn=null,Sc(e),Ul=null,Ls=0;var u=e.return;try{if(np(t,u,e,a,_t)){Kt=1,Ru(t,Ye(a,t.current)),St=null;return}}catch(c){if(u!==null)throw St=u,c;Kt=1,Ru(t,Ye(a,t.current)),St=null;return}e.flags&32768?(Tt||l===1?t=!0:Gl||(_t&536870912)!==0?t=!1:(Fa=t=!0,(l===2||l===9||l===3||l===6)&&(l=ze.current,l!==null&&l.tag===13&&(l.flags|=16384))),Lm(e,t)):Uu(e)}function Uu(t){var e=t;do{if((e.flags&32768)!==0){Lm(e,Fa);return}t=e.return;var a=ip(e.alternate,e,Ma);if(a!==null){St=a;return}if(e=e.sibling,e!==null){St=e;return}St=e=t}while(e!==null);Kt===0&&(Kt=5)}function Lm(t,e){do{var a=up(t.alternate,t);if(a!==null){a.flags&=32767,St=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){St=t;return}St=t=a}while(t!==null);Kt=6,St=null}function Bm(t,e,a,l,u,c,d,x,j){t.cancelPendingCommit=null;do Lu();while(te!==0);if((Ct&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(c=e.lanes|e.childLanes,c|=Pr,Pg(t,a,c,d,x,j),t===Bt&&(St=Bt=null,_t=0),Xl=e,Wa=t,Aa=a,ao=c,no=u,Tm=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,xp(Hi,function(){return Gm(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,u=V.p,V.p=2,d=Ct,Ct|=4;try{rp(t,e,a)}finally{Ct=d,V.p=u,D.T=l}}te=1,Hm(),qm(),Qm()}}function Hm(){if(te===1){te=0;var t=Wa,e=Xl,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var l=V.p;V.p=2;var u=Ct;Ct|=4;try{pm(e,t);var c=xo,d=jd(t.containerInfo),x=c.focusedElem,j=c.selectionRange;if(d!==x&&x&&x.ownerDocument&&_d(x.ownerDocument.documentElement,x)){if(j!==null&&Vr(x)){var z=j.start,H=j.end;if(H===void 0&&(H=z),"selectionStart"in x)x.selectionStart=z,x.selectionEnd=Math.min(H,x.value.length);else{var Y=x.ownerDocument||document,w=Y&&Y.defaultView||window;if(w.getSelection){var B=w.getSelection(),lt=x.textContent.length,ft=Math.min(j.start,lt),Lt=j.end===void 0?ft:Math.min(j.end,lt);!B.extend&&ft>Lt&&(d=Lt,Lt=ft,ft=d);var C=Rd(x,ft),T=Rd(x,Lt);if(C&&T&&(B.rangeCount!==1||B.anchorNode!==C.node||B.anchorOffset!==C.offset||B.focusNode!==T.node||B.focusOffset!==T.offset)){var O=Y.createRange();O.setStart(C.node,C.offset),B.removeAllRanges(),ft>Lt?(B.addRange(O),B.extend(T.node,T.offset)):(O.setEnd(T.node,T.offset),B.addRange(O))}}}}for(Y=[],B=x;B=B.parentNode;)B.nodeType===1&&Y.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Y.length;x++){var q=Y[x];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Pu=!!po,xo=po=null}finally{Ct=u,V.p=l,D.T=a}}t.current=e,te=2}}function qm(){if(te===2){te=0;var t=Wa,e=Xl,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var l=V.p;V.p=2;var u=Ct;Ct|=4;try{hm(t,e.alternate,e)}finally{Ct=u,V.p=l,D.T=a}}te=3}}function Qm(){if(te===4||te===3){te=0,Li();var t=Wa,e=Xl,a=Aa,l=Tm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?te=5:(te=0,Xl=Wa=null,Ym(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(Ia=null),jr(a),e=e.stateNode,Me&&typeof Me.onCommitFiberRoot=="function")try{Me.onCommitFiberRoot(ps,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=D.T,u=V.p,V.p=2,D.T=null;try{for(var c=t.onRecoverableError,d=0;d<l.length;d++){var x=l[d];c(x.value,{componentStack:x.stack})}}finally{D.T=e,V.p=u}}(Aa&3)!==0&&Lu(),ia(t),u=t.pendingLanes,(a&261930)!==0&&(u&42)!==0?t===lo?Ws++:(Ws=0,lo=t):Ws=0,ti(0)}}function Ym(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,ws(e)))}function Lu(){return Hm(),qm(),Qm(),Gm()}function Gm(){if(te!==5)return!1;var t=Wa,e=ao;ao=0;var a=jr(Aa),l=D.T,u=V.p;try{V.p=32>a?32:a,D.T=null,a=no,no=null;var c=Wa,d=Aa;if(te=0,Xl=Wa=null,Aa=0,(Ct&6)!==0)throw Error(r(331));var x=Ct;if(Ct|=4,_m(c.current),bm(c,c.current,d,a),Ct=x,ti(0,!1),Me&&typeof Me.onPostCommitFiberRoot=="function")try{Me.onPostCommitFiberRoot(ps,c)}catch{}return!0}finally{V.p=u,D.T=l,Ym(t,e)}}function Vm(t,e,a){e=Ye(a,e),e=Lc(t.stateNode,e,2),t=Za(t,e,2),t!==null&&(bs(t,2),ia(t))}function Dt(t,e,a){if(t.tag===3)Vm(t,t,a);else for(;e!==null;){if(e.tag===3){Vm(e,t,a);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ia===null||!Ia.has(l))){t=Ye(a,t),a=Xh(2),l=Za(e,a,2),l!==null&&(Kh(a,l,e,t),bs(l,2),ia(l));break}}e=e.return}}function uo(t,e,a){var l=t.pingCache;if(l===null){l=t.pingCache=new fp;var u=new Set;l.set(e,u)}else u=l.get(e),u===void 0&&(u=new Set,l.set(e,u));u.has(a)||(Wc=!0,u.add(a),t=gp.bind(null,t,e,a),e.then(t,t))}function gp(t,e,a){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Bt===t&&(_t&a)===a&&(Kt===4||Kt===3&&(_t&62914560)===_t&&300>bt()-Cu?(Ct&2)===0&&Kl(t,0):to|=a,Vl===_t&&(Vl=0)),ia(t)}function Xm(t,e){e===0&&(e=Hf()),t=Cn(t,e),t!==null&&(bs(t,e),ia(t))}function vp(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),Xm(t,a)}function pp(t,e){var a=0;switch(t.tag){case 31:case 13:var l=t.stateNode,u=t.memoizedState;u!==null&&(a=u.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(e),Xm(t,a)}function xp(t,e){return vs(t,e)}var Bu=null,Jl=null,ro=!1,Hu=!1,co=!1,en=0;function ia(t){t!==Jl&&t.next===null&&(Jl===null?Bu=Jl=t:Jl=Jl.next=t),Hu=!0,ro||(ro=!0,Sp())}function ti(t,e){if(!co&&Hu){co=!0;do for(var a=!1,l=Bu;l!==null;){if(t!==0){var u=l.pendingLanes;if(u===0)var c=0;else{var d=l.suspendedLanes,x=l.pingedLanes;c=(1<<31-Ae(42|t)+1)-1,c&=u&~(d&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,Pm(l,c))}else c=_t,c=Gi(l,l===Bt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||xs(l,c)||(a=!0,Pm(l,c));l=l.next}while(a);co=!1}}function bp(){Km()}function Km(){Hu=ro=!1;var t=0;en!==0&&Op()&&(t=en);for(var e=bt(),a=null,l=Bu;l!==null;){var u=l.next,c=Zm(l,e);c===0?(l.next=null,a===null?Bu=u:a.next=u,u===null&&(Jl=a)):(a=l,(t!==0||(c&3)!==0)&&(Hu=!0)),l=u}te!==0&&te!==5||ti(t),en!==0&&(en=0)}function Zm(t,e){for(var a=t.suspendedLanes,l=t.pingedLanes,u=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var d=31-Ae(c),x=1<<d,j=u[d];j===-1?((x&a)===0||(x&l)!==0)&&(u[d]=Jg(x,e)):j<=e&&(t.expiredLanes|=x),c&=~x}if(e=Bt,a=_t,a=Gi(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,a===0||t===e&&(zt===2||zt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&hl(l),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||xs(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(l!==null&&hl(l),jr(a)){case 2:case 8:a=Bi;break;case 32:a=Hi;break;case 268435456:a=Bf;break;default:a=Hi}return l=Jm.bind(null,t),a=vs(a,l),t.callbackPriority=e,t.callbackNode=a,e}return l!==null&&l!==null&&hl(l),t.callbackPriority=2,t.callbackNode=null,2}function Jm(t,e){if(te!==0&&te!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Lu()&&t.callbackNode!==a)return null;var l=_t;return l=Gi(t,t===Bt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Mm(t,l,e),Zm(t,bt()),t.callbackNode!=null&&t.callbackNode===a?Jm.bind(null,t):null)}function Pm(t,e){if(Lu())return null;Mm(t,e,!0)}function Sp(){Dp(function(){(Ct&6)!==0?vs(aa,bp):Km()})}function oo(){if(en===0){var t=zl;t===0&&(t=qi,qi<<=1,(qi&261888)===0&&(qi=256)),en=t}return en}function km(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Zi(""+t)}function Fm(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function Rp(t,e,a,l,u){if(e==="submit"&&a&&a.stateNode===u){var c=km((u[pe]||null).action),d=l.submitter;d&&(e=(e=d[pe]||null)?km(e.formAction):d.getAttribute("formAction"),e!==null&&(c=e,d=null));var x=new Fi("action","action",null,l,u);t.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(en!==0){var j=d?Fm(u,d):new FormData(u);Cc(a,{pending:!0,data:j,method:u.method,action:c},null,j)}}else typeof c=="function"&&(x.preventDefault(),j=d?Fm(u,d):new FormData(u),Cc(a,{pending:!0,data:j,method:u.method,action:c},c,j))},currentTarget:u}]})}}for(var fo=0;fo<Jr.length;fo++){var ho=Jr[fo],_p=ho.toLowerCase(),jp=ho[0].toUpperCase()+ho.slice(1);$e(_p,"on"+jp)}$e(Nd,"onAnimationEnd"),$e(Md,"onAnimationIteration"),$e(Ad,"onAnimationStart"),$e("dblclick","onDoubleClick"),$e("focusin","onFocus"),$e("focusout","onBlur"),$e(Qv,"onTransitionRun"),$e(Yv,"onTransitionStart"),$e(Gv,"onTransitionCancel"),$e(Cd,"onTransitionEnd"),pl("onMouseEnter",["mouseout","mouseover"]),pl("onMouseLeave",["mouseout","mouseover"]),pl("onPointerEnter",["pointerout","pointerover"]),pl("onPointerLeave",["pointerout","pointerover"]),Tn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Tn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Tn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Tn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Tn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Tn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ei="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(" "),Ep=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ei));function $m(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var l=t[a],u=l.event;l=l.listeners;t:{var c=void 0;if(e)for(var d=l.length-1;0<=d;d--){var x=l[d],j=x.instance,z=x.currentTarget;if(x=x.listener,j!==c&&u.isPropagationStopped())break t;c=x,u.currentTarget=z;try{c(u)}catch(H){Wi(H)}u.currentTarget=null,c=j}else for(d=0;d<l.length;d++){if(x=l[d],j=x.instance,z=x.currentTarget,x=x.listener,j!==c&&u.isPropagationStopped())break t;c=x,u.currentTarget=z;try{c(u)}catch(H){Wi(H)}u.currentTarget=null,c=j}}}}function Rt(t,e){var a=e[Er];a===void 0&&(a=e[Er]=new Set);var l=t+"__bubble";a.has(l)||(Im(e,t,2,!1),a.add(l))}function mo(t,e,a){var l=0;e&&(l|=4),Im(a,t,l,e)}var qu="_reactListening"+Math.random().toString(36).slice(2);function yo(t){if(!t[qu]){t[qu]=!0,Kf.forEach(function(a){a!=="selectionchange"&&(Ep.has(a)||mo(a,!1,t),mo(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[qu]||(e[qu]=!0,mo("selectionchange",!1,e))}}function Im(t,e,a,l){switch(Ny(e)){case 2:var u=Wp;break;case 8:u=tx;break;default:u=Co}a=u.bind(null,e,a,t),u=void 0,!wr||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),l?u!==void 0?t.addEventListener(e,a,{capture:!0,passive:u}):t.addEventListener(e,a,!0):u!==void 0?t.addEventListener(e,a,{passive:u}):t.addEventListener(e,a,!1)}function go(t,e,a,l,u){var c=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var x=l.stateNode.containerInfo;if(x===u)break;if(d===4)for(d=l.return;d!==null;){var j=d.tag;if((j===3||j===4)&&d.stateNode.containerInfo===u)return;d=d.return}for(;x!==null;){if(d=yl(x),d===null)return;if(j=d.tag,j===5||j===6||j===26||j===27){l=c=d;continue t}x=x.parentNode}}l=l.return}nd(function(){var z=c,H=zr(a),Y=[];t:{var w=Od.get(t);if(w!==void 0){var B=Fi,lt=t;switch(t){case"keypress":if(Pi(a)===0)break t;case"keydown":case"keyup":B=pv;break;case"focusin":lt="focus",B=Hr;break;case"focusout":lt="blur",B=Hr;break;case"beforeblur":case"afterblur":B=Hr;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":B=id;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=iv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=Sv;break;case Nd:case Md:case Ad:B=cv;break;case Cd:B=_v;break;case"scroll":case"scrollend":B=lv;break;case"wheel":B=Ev;break;case"copy":case"cut":case"paste":B=fv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=rd;break;case"toggle":case"beforetoggle":B=Nv}var ft=(e&4)!==0,Lt=!ft&&(t==="scroll"||t==="scrollend"),C=ft?w!==null?w+"Capture":null:w;ft=[];for(var T=z,O;T!==null;){var q=T;if(O=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||O===null||C===null||(q=_s(T,C),q!=null&&ft.push(ai(T,q,O))),Lt)break;T=T.return}0<ft.length&&(w=new B(w,lt,null,a,H),Y.push({event:w,listeners:ft}))}}if((e&7)===0){t:{if(w=t==="mouseover"||t==="pointerover",B=t==="mouseout"||t==="pointerout",w&&a!==Or&&(lt=a.relatedTarget||a.fromElement)&&(yl(lt)||lt[ml]))break t;if((B||w)&&(w=H.window===H?H:(w=H.ownerDocument)?w.defaultView||w.parentWindow:window,B?(lt=a.relatedTarget||a.toElement,B=z,lt=lt?yl(lt):null,lt!==null&&(Lt=f(lt),ft=lt.tag,lt!==Lt||ft!==5&&ft!==27&&ft!==6)&&(lt=null)):(B=null,lt=z),B!==lt)){if(ft=id,q="onMouseLeave",C="onMouseEnter",T="mouse",(t==="pointerout"||t==="pointerover")&&(ft=rd,q="onPointerLeave",C="onPointerEnter",T="pointer"),Lt=B==null?w:Rs(B),O=lt==null?w:Rs(lt),w=new ft(q,T+"leave",B,a,H),w.target=Lt,w.relatedTarget=O,q=null,yl(H)===z&&(ft=new ft(C,T+"enter",lt,a,H),ft.target=O,ft.relatedTarget=Lt,q=ft),Lt=q,B&&lt)e:{for(ft=Tp,C=B,T=lt,O=0,q=C;q;q=ft(q))O++;q=0;for(var rt=T;rt;rt=ft(rt))q++;for(;0<O-q;)C=ft(C),O--;for(;0<q-O;)T=ft(T),q--;for(;O--;){if(C===T||T!==null&&C===T.alternate){ft=C;break e}C=ft(C),T=ft(T)}ft=null}else ft=null;B!==null&&Wm(Y,w,B,ft,!1),lt!==null&&Lt!==null&&Wm(Y,Lt,lt,ft,!0)}}t:{if(w=z?Rs(z):window,B=w.nodeName&&w.nodeName.toLowerCase(),B==="select"||B==="input"&&w.type==="file")var Mt=gd;else if(md(w))if(vd)Mt=Bv;else{Mt=Uv;var ut=wv}else B=w.nodeName,!B||B.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?z&&Cr(z.elementType)&&(Mt=gd):Mt=Lv;if(Mt&&(Mt=Mt(t,z))){yd(Y,Mt,a,H);break t}ut&&ut(t,w,z),t==="focusout"&&z&&w.type==="number"&&z.memoizedProps.value!=null&&Ar(w,"number",w.value)}switch(ut=z?Rs(z):window,t){case"focusin":(md(ut)||ut.contentEditable==="true")&&(jl=ut,Xr=z,Os=null);break;case"focusout":Os=Xr=jl=null;break;case"mousedown":Kr=!0;break;case"contextmenu":case"mouseup":case"dragend":Kr=!1,Ed(Y,a,H);break;case"selectionchange":if(qv)break;case"keydown":case"keyup":Ed(Y,a,H)}var vt;if(Qr)t:{switch(t){case"compositionstart":var jt="onCompositionStart";break t;case"compositionend":jt="onCompositionEnd";break t;case"compositionupdate":jt="onCompositionUpdate";break t}jt=void 0}else _l?dd(t,a)&&(jt="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(jt="onCompositionStart");jt&&(cd&&a.locale!=="ko"&&(_l||jt!=="onCompositionStart"?jt==="onCompositionEnd"&&_l&&(vt=ld()):(qa=H,Ur="value"in qa?qa.value:qa.textContent,_l=!0)),ut=Qu(z,jt),0<ut.length&&(jt=new ud(jt,t,null,a,H),Y.push({event:jt,listeners:ut}),vt?jt.data=vt:(vt=hd(a),vt!==null&&(jt.data=vt)))),(vt=Av?Cv(t,a):Ov(t,a))&&(jt=Qu(z,"onBeforeInput"),0<jt.length&&(ut=new ud("onBeforeInput","beforeinput",null,a,H),Y.push({event:ut,listeners:jt}),ut.data=vt)),Rp(Y,t,z,a,H)}$m(Y,e)})}function ai(t,e,a){return{instance:t,listener:e,currentTarget:a}}function Qu(t,e){for(var a=e+"Capture",l=[];t!==null;){var u=t,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=_s(t,a),u!=null&&l.unshift(ai(t,u,c)),u=_s(t,e),u!=null&&l.push(ai(t,u,c))),t.tag===3)return l;t=t.return}return[]}function Tp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Wm(t,e,a,l,u){for(var c=e._reactName,d=[];a!==null&&a!==l;){var x=a,j=x.alternate,z=x.stateNode;if(x=x.tag,j!==null&&j===l)break;x!==5&&x!==26&&x!==27||z===null||(j=z,u?(z=_s(a,c),z!=null&&d.unshift(ai(a,z,j))):u||(z=_s(a,c),z!=null&&d.push(ai(a,z,j)))),a=a.return}d.length!==0&&t.push({event:e,listeners:d})}var Np=/\r\n?/g,Mp=/\u0000|\uFFFD/g;function ty(t){return(typeof t=="string"?t:""+t).replace(Np,`
49
+ `).replace(Mp,"")}function ey(t,e){return e=ty(e),ty(t)===e}function Ut(t,e,a,l,u,c){switch(a){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||bl(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&bl(t,""+l);break;case"className":Xi(t,"class",l);break;case"tabIndex":Xi(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Xi(t,a,l);break;case"style":ed(t,l,c);break;case"data":if(e!=="object"){Xi(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=Zi(""+l),t.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(e!=="input"&&Ut(t,e,"name",u.name,u,null),Ut(t,e,"formEncType",u.formEncType,u,null),Ut(t,e,"formMethod",u.formMethod,u,null),Ut(t,e,"formTarget",u.formTarget,u,null)):(Ut(t,e,"encType",u.encType,u,null),Ut(t,e,"method",u.method,u,null),Ut(t,e,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=Zi(""+l),t.setAttribute(a,l);break;case"onClick":l!=null&&(t.onclick=ma);break;case"onScroll":l!=null&&Rt("scroll",t);break;case"onScrollEnd":l!=null&&Rt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}a=Zi(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""+l):t.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":l===!0?t.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,l):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(a,l):t.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(a):t.setAttribute(a,l);break;case"popover":Rt("beforetoggle",t),Rt("toggle",t),Vi(t,"popover",l);break;case"xlinkActuate":ha(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ha(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ha(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ha(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ha(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ha(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ha(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ha(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ha(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Vi(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=av.get(a)||a,Vi(t,a,l))}}function vo(t,e,a,l,u,c){switch(a){case"style":ed(t,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof l=="string"?bl(t,l):(typeof l=="number"||typeof l=="bigint")&&bl(t,""+l);break;case"onScroll":l!=null&&Rt("scroll",t);break;case"onScrollEnd":l!=null&&Rt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=ma);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zf.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),e=a.slice(2,u?a.length-7:void 0),c=t[pe]||null,c=c!=null?c[a]:null,typeof c=="function"&&t.removeEventListener(e,c,u),typeof l=="function")){typeof c!="function"&&c!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,l,u);break t}a in t?t[a]=l:l===!0?t.setAttribute(a,""):Vi(t,a,l)}}}function re(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Rt("error",t),Rt("load",t);var l=!1,u=!1,c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];if(d!=null)switch(c){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ut(t,e,c,d,a,null)}}u&&Ut(t,e,"srcSet",a.srcSet,a,null),l&&Ut(t,e,"src",a.src,a,null);return;case"input":Rt("invalid",t);var x=c=d=u=null,j=null,z=null;for(l in a)if(a.hasOwnProperty(l)){var H=a[l];if(H!=null)switch(l){case"name":u=H;break;case"type":d=H;break;case"checked":j=H;break;case"defaultChecked":z=H;break;case"value":c=H;break;case"defaultValue":x=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,e));break;default:Ut(t,e,l,H,a,null)}}$f(t,c,x,j,z,d,u,!1);return;case"select":Rt("invalid",t),l=d=c=null;for(u in a)if(a.hasOwnProperty(u)&&(x=a[u],x!=null))switch(u){case"value":c=x;break;case"defaultValue":d=x;break;case"multiple":l=x;default:Ut(t,e,u,x,a,null)}e=c,a=d,t.multiple=!!l,e!=null?xl(t,!!l,e,!1):a!=null&&xl(t,!!l,a,!0);return;case"textarea":Rt("invalid",t),c=u=l=null;for(d in a)if(a.hasOwnProperty(d)&&(x=a[d],x!=null))switch(d){case"value":l=x;break;case"defaultValue":u=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:Ut(t,e,d,x,a,null)}Wf(t,l,u,c);return;case"option":for(j in a)if(a.hasOwnProperty(j)&&(l=a[j],l!=null))switch(j){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ut(t,e,j,l,a,null)}return;case"dialog":Rt("beforetoggle",t),Rt("toggle",t),Rt("cancel",t),Rt("close",t);break;case"iframe":case"object":Rt("load",t);break;case"video":case"audio":for(l=0;l<ei.length;l++)Rt(ei[l],t);break;case"image":Rt("error",t),Rt("load",t);break;case"details":Rt("toggle",t);break;case"embed":case"source":case"link":Rt("error",t),Rt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in a)if(a.hasOwnProperty(z)&&(l=a[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ut(t,e,z,l,a,null)}return;default:if(Cr(e)){for(H in a)a.hasOwnProperty(H)&&(l=a[H],l!==void 0&&vo(t,e,H,l,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(l=a[x],l!=null&&Ut(t,e,x,l,a,null))}function Ap(t,e,a,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,d=null,x=null,j=null,z=null,H=null;for(B in a){var Y=a[B];if(a.hasOwnProperty(B)&&Y!=null)switch(B){case"checked":break;case"value":break;case"defaultValue":j=Y;default:l.hasOwnProperty(B)||Ut(t,e,B,null,l,Y)}}for(var w in l){var B=l[w];if(Y=a[w],l.hasOwnProperty(w)&&(B!=null||Y!=null))switch(w){case"type":c=B;break;case"name":u=B;break;case"checked":z=B;break;case"defaultChecked":H=B;break;case"value":d=B;break;case"defaultValue":x=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,e));break;default:B!==Y&&Ut(t,e,w,B,l,Y)}}Mr(t,d,x,j,z,H,c,u);return;case"select":B=d=x=w=null;for(c in a)if(j=a[c],a.hasOwnProperty(c)&&j!=null)switch(c){case"value":break;case"multiple":B=j;default:l.hasOwnProperty(c)||Ut(t,e,c,null,l,j)}for(u in l)if(c=l[u],j=a[u],l.hasOwnProperty(u)&&(c!=null||j!=null))switch(u){case"value":w=c;break;case"defaultValue":x=c;break;case"multiple":d=c;default:c!==j&&Ut(t,e,u,c,l,j)}e=x,a=d,l=B,w!=null?xl(t,!!a,w,!1):!!l!=!!a&&(e!=null?xl(t,!!a,e,!0):xl(t,!!a,a?[]:"",!1));return;case"textarea":B=w=null;for(x in a)if(u=a[x],a.hasOwnProperty(x)&&u!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Ut(t,e,x,null,l,u)}for(d in l)if(u=l[d],c=a[d],l.hasOwnProperty(d)&&(u!=null||c!=null))switch(d){case"value":w=u;break;case"defaultValue":B=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==c&&Ut(t,e,d,u,l,c)}If(t,w,B);return;case"option":for(var lt in a)if(w=a[lt],a.hasOwnProperty(lt)&&w!=null&&!l.hasOwnProperty(lt))switch(lt){case"selected":t.selected=!1;break;default:Ut(t,e,lt,null,l,w)}for(j in l)if(w=l[j],B=a[j],l.hasOwnProperty(j)&&w!==B&&(w!=null||B!=null))switch(j){case"selected":t.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:Ut(t,e,j,w,l,B)}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 ft in a)w=a[ft],a.hasOwnProperty(ft)&&w!=null&&!l.hasOwnProperty(ft)&&Ut(t,e,ft,null,l,w);for(z in l)if(w=l[z],B=a[z],l.hasOwnProperty(z)&&w!==B&&(w!=null||B!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(137,e));break;default:Ut(t,e,z,w,l,B)}return;default:if(Cr(e)){for(var Lt in a)w=a[Lt],a.hasOwnProperty(Lt)&&w!==void 0&&!l.hasOwnProperty(Lt)&&vo(t,e,Lt,void 0,l,w);for(H in l)w=l[H],B=a[H],!l.hasOwnProperty(H)||w===B||w===void 0&&B===void 0||vo(t,e,H,w,l,B);return}}for(var C in a)w=a[C],a.hasOwnProperty(C)&&w!=null&&!l.hasOwnProperty(C)&&Ut(t,e,C,null,l,w);for(Y in l)w=l[Y],B=a[Y],!l.hasOwnProperty(Y)||w===B||w==null&&B==null||Ut(t,e,Y,w,l,B)}function ay(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Cp(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var u=a[l],c=u.transferSize,d=u.initiatorType,x=u.duration;if(c&&x&&ay(d)){for(d=0,x=u.responseEnd,l+=1;l<a.length;l++){var j=a[l],z=j.startTime;if(z>x)break;var H=j.transferSize,Y=j.initiatorType;H&&ay(Y)&&(j=j.responseEnd,d+=H*(j<x?1:(x-z)/(j-z)))}if(--l,e+=8*(c+d)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var po=null,xo=null;function Yu(t){return t.nodeType===9?t:t.ownerDocument}function ny(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function ly(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function bo(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var So=null;function Op(){var t=window.event;return t&&t.type==="popstate"?t===So?!1:(So=t,!0):(So=null,!1)}var sy=typeof setTimeout=="function"?setTimeout:void 0,zp=typeof clearTimeout=="function"?clearTimeout:void 0,iy=typeof Promise=="function"?Promise:void 0,Dp=typeof queueMicrotask=="function"?queueMicrotask:typeof iy<"u"?function(t){return iy.resolve(null).then(t).catch(wp)}:sy;function wp(t){setTimeout(function(){throw t})}function an(t){return t==="head"}function uy(t,e){var a=e,l=0;do{var u=a.nextSibling;if(t.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(l===0){t.removeChild(u),$l(e);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")ni(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,ni(a);for(var c=a.firstChild;c;){var d=c.nextSibling,x=c.nodeName;c[Ss]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=d}}else a==="body"&&ni(t.ownerDocument.body);a=u}while(a);$l(e)}function ry(t,e){var a=t;t=0;do{var l=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=l}while(a)}function Ro(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Ro(a),Tr(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function Up(t,e,a,l){for(;t.nodeType===1;){var u=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Ss])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Ze(t.nextSibling),t===null)break}return null}function Lp(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Ze(t.nextSibling),t===null))return null;return t}function cy(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ze(t.nextSibling),t===null))return null;return t}function _o(t){return t.data==="$?"||t.data==="$~"}function jo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Bp(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var l=function(){e(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Ze(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Eo=null;function oy(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return Ze(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function fy(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(e===0)return t;e--}else a!=="/$"&&a!=="/&"||e++}t=t.previousSibling}return null}function dy(t,e,a){switch(e=Yu(a),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function ni(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Tr(t)}var Je=new Map,hy=new Set;function Gu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Ca=V.d;V.d={f:Hp,r:qp,D:Qp,C:Yp,L:Gp,m:Vp,X:Kp,S:Xp,M:Zp};function Hp(){var t=Ca.f(),e=Du();return t||e}function qp(t){var e=gl(t);e!==null&&e.tag===5&&e.type==="form"?Ch(e):Ca.r(t)}var Pl=typeof document>"u"?null:document;function my(t,e,a){var l=Pl;if(l&&typeof e=="string"&&e){var u=qe(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),hy.has(u)||(hy.add(u),t={rel:t,crossOrigin:a,href:e},l.querySelector(u)===null&&(e=l.createElement("link"),re(e,"link",t),ee(e),l.head.appendChild(e)))}}function Qp(t){Ca.D(t),my("dns-prefetch",t,null)}function Yp(t,e){Ca.C(t,e),my("preconnect",t,e)}function Gp(t,e,a){Ca.L(t,e,a);var l=Pl;if(l&&t&&e){var u='link[rel="preload"][as="'+qe(e)+'"]';e==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+qe(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+qe(a.imageSizes)+'"]')):u+='[href="'+qe(t)+'"]';var c=u;switch(e){case"style":c=kl(t);break;case"script":c=Fl(t)}Je.has(c)||(t=v({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),Je.set(c,t),l.querySelector(u)!==null||e==="style"&&l.querySelector(li(c))||e==="script"&&l.querySelector(si(c))||(e=l.createElement("link"),re(e,"link",t),ee(e),l.head.appendChild(e)))}}function Vp(t,e){Ca.m(t,e);var a=Pl;if(a&&t){var l=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+qe(l)+'"][href="'+qe(t)+'"]',c=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Fl(t)}if(!Je.has(c)&&(t=v({rel:"modulepreload",href:t},e),Je.set(c,t),a.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(si(c)))return}l=a.createElement("link"),re(l,"link",t),ee(l),a.head.appendChild(l)}}}function Xp(t,e,a){Ca.S(t,e,a);var l=Pl;if(l&&t){var u=vl(l).hoistableStyles,c=kl(t);e=e||"default";var d=u.get(c);if(!d){var x={loading:0,preload:null};if(d=l.querySelector(li(c)))x.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},a),(a=Je.get(c))&&To(t,a);var j=d=l.createElement("link");ee(j),re(j,"link",t),j._p=new Promise(function(z,H){j.onload=z,j.onerror=H}),j.addEventListener("load",function(){x.loading|=1}),j.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Vu(d,e,l)}d={type:"stylesheet",instance:d,count:1,state:x},u.set(c,d)}}}function Kp(t,e){Ca.X(t,e);var a=Pl;if(a&&t){var l=vl(a).hoistableScripts,u=Fl(t),c=l.get(u);c||(c=a.querySelector(si(u)),c||(t=v({src:t,async:!0},e),(e=Je.get(u))&&No(t,e),c=a.createElement("script"),ee(c),re(c,"link",t),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(u,c))}}function Zp(t,e){Ca.M(t,e);var a=Pl;if(a&&t){var l=vl(a).hoistableScripts,u=Fl(t),c=l.get(u);c||(c=a.querySelector(si(u)),c||(t=v({src:t,async:!0,type:"module"},e),(e=Je.get(u))&&No(t,e),c=a.createElement("script"),ee(c),re(c,"link",t),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},l.set(u,c))}}function yy(t,e,a,l){var u=(u=pt.current)?Gu(u):null;if(!u)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=kl(a.href),a=vl(u).hoistableStyles,l=a.get(e),l||(l={type:"style",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=kl(a.href);var c=vl(u).hoistableStyles,d=c.get(t);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,d),(c=u.querySelector(li(t)))&&!c._p&&(d.instance=c,d.state.loading=5),Je.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Je.set(t,a),c||Jp(u,t,a,d.state))),e&&l===null)throw Error(r(528,""));return d}if(e&&l!==null)throw Error(r(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Fl(a),a=vl(u).hoistableScripts,l=a.get(e),l||(l={type:"script",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function kl(t){return'href="'+qe(t)+'"'}function li(t){return'link[rel="stylesheet"]['+t+"]"}function gy(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function Jp(t,e,a,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),re(e,"link",a),ee(e),t.head.appendChild(e))}function Fl(t){return'[src="'+qe(t)+'"]'}function si(t){return"script[async]"+t}function vy(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+qe(a.href)+'"]');if(l)return e.instance=l,ee(l),l;var u=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),ee(l),re(l,"style",u),Vu(l,a.precedence,t),e.instance=l;case"stylesheet":u=kl(a.href);var c=t.querySelector(li(u));if(c)return e.state.loading|=4,e.instance=c,ee(c),c;l=gy(a),(u=Je.get(u))&&To(l,u),c=(t.ownerDocument||t).createElement("link"),ee(c);var d=c;return d._p=new Promise(function(x,j){d.onload=x,d.onerror=j}),re(c,"link",l),e.state.loading|=4,Vu(c,a.precedence,t),e.instance=c;case"script":return c=Fl(a.src),(u=t.querySelector(si(c)))?(e.instance=u,ee(u),u):(l=a,(u=Je.get(c))&&(l=v({},a),No(l,u)),t=t.ownerDocument||t,u=t.createElement("script"),ee(u),re(u,"link",l),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Vu(l,a.precedence,t));return e.instance}function Vu(t,e,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,c=u,d=0;d<l.length;d++){var x=l[d];if(x.dataset.precedence===e)c=x;else if(c!==u)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function To(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function No(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Xu=null;function py(t,e,a){if(Xu===null){var l=new Map,u=Xu=new Map;u.set(a,l)}else u=Xu,l=u.get(a),l||(l=new Map,u.set(a,l));if(l.has(t))return l;for(l.set(t,null),a=a.getElementsByTagName(t),u=0;u<a.length;u++){var c=a[u];if(!(c[Ss]||c[le]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var d=c.getAttribute(e)||"";d=t+d;var x=l.get(d);x?x.push(c):l.set(d,[c])}}return l}function xy(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function Pp(t,e,a){if(a===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function by(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function kp(t,e,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=kl(l.href),c=e.querySelector(li(u));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Ku.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=c,ee(c);return}c=e.ownerDocument||e,l=gy(l),(u=Je.get(u))&&To(l,u),c=c.createElement("link"),ee(c);var d=c;d._p=new Promise(function(x,j){d.onload=x,d.onerror=j}),re(c,"link",l),a.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=Ku.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var Mo=0;function Fp(t,e){return t.stylesheets&&t.count===0&&Ju(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var l=setTimeout(function(){if(t.stylesheets&&Ju(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&Mo===0&&(Mo=62500*Cp());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Ju(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>Mo?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function Ku(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ju(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Zu=null;function Ju(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Zu=new Map,e.forEach($p,t),Zu=null,Ku.call(t))}function $p(t,e){if(!(e.state.loading&4)){var a=Zu.get(t);if(a)var l=a.get(null);else{a=new Map,Zu.set(t,a);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var d=u[c];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),l=d)}l&&a.set(null,l)}u=e.instance,d=u.getAttribute("data-precedence"),c=a.get(d)||l,c===l&&a.set(null,u),a.set(d,u),this.count++,l=Ku.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),c?c.parentNode.insertBefore(u,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var ii={$$typeof:K,Provider:null,Consumer:null,_currentValue:tt,_currentValue2:tt,_threadCount:0};function Ip(t,e,a,l,u,c,d,x,j){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Rr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rr(0),this.hiddenUpdates=Rr(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=j,this.incompleteTransitions=new Map}function Sy(t,e,a,l,u,c,d,x,j,z,H,Y){return t=new Ip(t,e,a,d,j,z,H,Y,x),e=1,c===!0&&(e|=24),c=Oe(3,null,null,e),t.current=c,c.stateNode=t,e=ic(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:e},oc(c),t}function Ry(t){return t?(t=Nl,t):Nl}function _y(t,e,a,l,u,c){u=Ry(u),l.context===null?l.context=u:l.pendingContext=u,l=Ka(e),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=Za(t,l,e),a!==null&&(je(a,t,e),Hs(a,t,e))}function jy(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function Ao(t,e){jy(t,e),(t=t.alternate)&&jy(t,e)}function Ey(t){if(t.tag===13||t.tag===31){var e=Cn(t,67108864);e!==null&&je(e,t,67108864),Ao(t,67108864)}}function Ty(t){if(t.tag===13||t.tag===31){var e=Le();e=_r(e);var a=Cn(t,e);a!==null&&je(a,t,e),Ao(t,e)}}var Pu=!0;function Wp(t,e,a,l){var u=D.T;D.T=null;var c=V.p;try{V.p=2,Co(t,e,a,l)}finally{V.p=c,D.T=u}}function tx(t,e,a,l){var u=D.T;D.T=null;var c=V.p;try{V.p=8,Co(t,e,a,l)}finally{V.p=c,D.T=u}}function Co(t,e,a,l){if(Pu){var u=Oo(l);if(u===null)go(t,e,l,ku,a),My(t,l);else if(ax(u,t,e,a,l))l.stopPropagation();else if(My(t,l),e&4&&-1<ex.indexOf(t)){for(;u!==null;){var c=gl(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var d=En(c.pendingLanes);if(d!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;d;){var j=1<<31-Ae(d);x.entanglements[1]|=j,d&=~j}ia(c),(Ct&6)===0&&(Ou=bt()+500,ti(0))}}break;case 31:case 13:x=Cn(c,2),x!==null&&je(x,c,2),Du(),Ao(c,2)}if(c=Oo(l),c===null&&go(t,e,l,ku,a),c===u)break;u=c}u!==null&&l.stopPropagation()}else go(t,e,l,null,a)}}function Oo(t){return t=zr(t),zo(t)}var ku=null;function zo(t){if(ku=null,t=yl(t),t!==null){var e=f(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=h(e),t!==null)return t;t=null}else if(a===31){if(t=g(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return ku=t,null}function Ny(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"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(oe()){case aa:return 2;case Bi:return 8;case Hi:case Yg:return 32;case Bf:return 268435456;default:return 32}default:return 32}}var Do=!1,nn=null,ln=null,sn=null,ui=new Map,ri=new Map,un=[],ex="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 My(t,e){switch(t){case"focusin":case"focusout":nn=null;break;case"dragenter":case"dragleave":ln=null;break;case"mouseover":case"mouseout":sn=null;break;case"pointerover":case"pointerout":ui.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ri.delete(e.pointerId)}}function ci(t,e,a,l,u,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:a,eventSystemFlags:l,nativeEvent:c,targetContainers:[u]},e!==null&&(e=gl(e),e!==null&&Ey(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function ax(t,e,a,l,u){switch(e){case"focusin":return nn=ci(nn,t,e,a,l,u),!0;case"dragenter":return ln=ci(ln,t,e,a,l,u),!0;case"mouseover":return sn=ci(sn,t,e,a,l,u),!0;case"pointerover":var c=u.pointerId;return ui.set(c,ci(ui.get(c)||null,t,e,a,l,u)),!0;case"gotpointercapture":return c=u.pointerId,ri.set(c,ci(ri.get(c)||null,t,e,a,l,u)),!0}return!1}function Ay(t){var e=yl(t.target);if(e!==null){var a=f(e);if(a!==null){if(e=a.tag,e===13){if(e=h(a),e!==null){t.blockedOn=e,Vf(t.priority,function(){Ty(a)});return}}else if(e===31){if(e=g(a),e!==null){t.blockedOn=e,Vf(t.priority,function(){Ty(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Fu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=Oo(t.nativeEvent);if(a===null){a=t.nativeEvent;var l=new a.constructor(a.type,a);Or=l,a.target.dispatchEvent(l),Or=null}else return e=gl(a),e!==null&&Ey(e),t.blockedOn=a,!1;e.shift()}return!0}function Cy(t,e,a){Fu(t)&&a.delete(e)}function nx(){Do=!1,nn!==null&&Fu(nn)&&(nn=null),ln!==null&&Fu(ln)&&(ln=null),sn!==null&&Fu(sn)&&(sn=null),ui.forEach(Cy),ri.forEach(Cy)}function $u(t,e){t.blockedOn===e&&(t.blockedOn=null,Do||(Do=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,nx)))}var Iu=null;function Oy(t){Iu!==t&&(Iu=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Iu===t&&(Iu=null);for(var e=0;e<t.length;e+=3){var a=t[e],l=t[e+1],u=t[e+2];if(typeof l!="function"){if(zo(l||a)===null)continue;break}var c=gl(a);c!==null&&(t.splice(e,3),e-=3,Cc(c,{pending:!0,data:u,method:a.method,action:l},l,u))}}))}function $l(t){function e(j){return $u(j,t)}nn!==null&&$u(nn,t),ln!==null&&$u(ln,t),sn!==null&&$u(sn,t),ui.forEach(e),ri.forEach(e);for(var a=0;a<un.length;a++){var l=un[a];l.blockedOn===t&&(l.blockedOn=null)}for(;0<un.length&&(a=un[0],a.blockedOn===null);)Ay(a),a.blockedOn===null&&un.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var u=a[l],c=a[l+1],d=u[pe]||null;if(typeof c=="function")d||Oy(a);else if(d){var x=null;if(c&&c.hasAttribute("formAction")){if(u=c,d=c[pe]||null)x=d.formAction;else if(zo(u)!==null)continue}else x=d.action;typeof x=="function"?a[l+1]=x:(a.splice(l,3),l-=3),Oy(a)}}}function zy(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(d){return u=d})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),l||setTimeout(a,20)}function a(){if(!l&&!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 l=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function wo(t){this._internalRoot=t}Wu.prototype.render=wo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var a=e.current,l=Le();_y(a,l,t,e,null,null)},Wu.prototype.unmount=wo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;_y(t.current,2,null,t,null,null),Du(),e[ml]=null}};function Wu(t){this._internalRoot=t}Wu.prototype.unstable_scheduleHydration=function(t){if(t){var e=Gf();t={blockedOn:null,target:t,priority:e};for(var a=0;a<un.length&&e!==0&&e<un[a].priority;a++);un.splice(a,0,t),a===0&&Ay(t)}};var Dy=s.version;if(Dy!=="19.2.4")throw Error(r(527,Dy,"19.2.4"));V.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=y(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var lx={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tr.isDisabled&&tr.supportsFiber)try{ps=tr.inject(lx),Me=tr}catch{}}return fi.createRoot=function(t,e){if(!o(t))throw Error(r(299));var a=!1,l="",u=Qh,c=Yh,d=Gh;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(d=e.onRecoverableError)),e=Sy(t,1,!1,null,null,a,l,null,u,c,d,zy),t[ml]=e.current,yo(t),new wo(e)},fi.hydrateRoot=function(t,e,a){if(!o(t))throw Error(r(299));var l=!1,u="",c=Qh,d=Yh,x=Gh,j=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.formState!==void 0&&(j=a.formState)),e=Sy(t,1,!0,e,a??null,l,u,j,c,d,x,zy),e.context=Ry(null),a=e.current,l=Le(),l=_r(l),u=Ka(l),u.callback=null,Za(a,u,l),a=l,e.current.lanes=a,bs(e,a),ia(e),t[ml]=e.current,yo(t),new Wu(e)},fi.version="19.2.4",fi}var Xy;function mx(){if(Xy)return Ho.exports;Xy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),Ho.exports=hx(),Ho.exports}var yx=mx(),wi=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Jn,fn,es,z0,gx=(z0=class extends wi{constructor(){super();dt(this,Jn);dt(this,fn);dt(this,es);at(this,es,s=>{if(typeof window<"u"&&window.addEventListener){const i=()=>s();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){N(this,fn)||this.setEventListener(N(this,es))}onUnsubscribe(){var s;this.hasListeners()||((s=N(this,fn))==null||s.call(this),at(this,fn,void 0))}setEventListener(s){var i;at(this,es,s),(i=N(this,fn))==null||i.call(this),at(this,fn,s(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(s){N(this,Jn)!==s&&(at(this,Jn,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(i=>{i(s)})}isFocused(){var s;return typeof N(this,Jn)=="boolean"?N(this,Jn):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},Jn=new WeakMap,fn=new WeakMap,es=new WeakMap,z0),Rf=new gx,vx={setTimeout:(n,s)=>setTimeout(n,s),clearTimeout:n=>clearTimeout(n),setInterval:(n,s)=>setInterval(n,s),clearInterval:n=>clearInterval(n)},dn,Sf,D0,px=(D0=class{constructor(){dt(this,dn,vx);dt(this,Sf,!1)}setTimeoutProvider(n){at(this,dn,n)}setTimeout(n,s){return N(this,dn).setTimeout(n,s)}clearTimeout(n){N(this,dn).clearTimeout(n)}setInterval(n,s){return N(this,dn).setInterval(n,s)}clearInterval(n){N(this,dn).clearInterval(n)}},dn=new WeakMap,Sf=new WeakMap,D0),Xn=new px;function xx(n){setTimeout(n,0)}var bx=typeof window>"u"||"Deno"in globalThis;function Te(){}function Sx(n,s){return typeof n=="function"?n(s):n}function ef(n){return typeof n=="number"&&n>=0&&n!==1/0}function V0(n,s){return Math.max(n+(s||0)-Date.now(),0)}function Rn(n,s){return typeof n=="function"?n(s):n}function ke(n,s){return typeof n=="function"?n(s):n}function Ky(n,s){const{type:i="all",exact:r,fetchStatus:o,predicate:f,queryKey:h,stale:g}=n;if(h){if(r){if(s.queryHash!==_f(h,s.options))return!1}else if(!Ri(s.queryKey,h))return!1}if(i!=="all"){const p=s.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof g=="boolean"&&s.isStale()!==g||o&&o!==s.state.fetchStatus||f&&!f(s))}function Zy(n,s){const{exact:i,status:r,predicate:o,mutationKey:f}=n;if(f){if(!s.options.mutationKey)return!1;if(i){if(Si(s.options.mutationKey)!==Si(f))return!1}else if(!Ri(s.options.mutationKey,f))return!1}return!(r&&s.state.status!==r||o&&!o(s))}function _f(n,s){return((s==null?void 0:s.queryKeyHashFn)||Si)(n)}function Si(n){return JSON.stringify(n,(s,i)=>nf(i)?Object.keys(i).sort().reduce((r,o)=>(r[o]=i[o],r),{}):i)}function Ri(n,s){return n===s?!0:typeof n!=typeof s?!1:n&&s&&typeof n=="object"&&typeof s=="object"?Object.keys(s).every(i=>Ri(n[i],s[i])):!1}var Rx=Object.prototype.hasOwnProperty;function X0(n,s,i=0){if(n===s)return n;if(i>500)return s;const r=Jy(n)&&Jy(s);if(!r&&!(nf(n)&&nf(s)))return s;const f=(r?n:Object.keys(n)).length,h=r?s:Object.keys(s),g=h.length,p=r?new Array(g):{};let y=0;for(let b=0;b<g;b++){const v=r?b:h[b],S=n[v],_=s[v];if(S===_){p[v]=S,(r?b<f:Rx.call(n,v))&&y++;continue}if(S===null||_===null||typeof S!="object"||typeof _!="object"){p[v]=_;continue}const R=X0(S,_,i+1);p[v]=R,R===S&&y++}return f===g&&y===f?n:p}function af(n,s){if(!s||Object.keys(n).length!==Object.keys(s).length)return!1;for(const i in n)if(n[i]!==s[i])return!1;return!0}function Jy(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function nf(n){if(!Py(n))return!1;const s=n.constructor;if(s===void 0)return!0;const i=s.prototype;return!(!Py(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function Py(n){return Object.prototype.toString.call(n)==="[object Object]"}function _x(n){return new Promise(s=>{Xn.setTimeout(s,n)})}function lf(n,s,i){return typeof i.structuralSharing=="function"?i.structuralSharing(n,s):i.structuralSharing!==!1?X0(n,s):s}function jx(n,s,i=0){const r=[...n,s];return i&&r.length>i?r.slice(1):r}function Ex(n,s,i=0){const r=[s,...n];return i&&r.length>i?r.slice(0,-1):r}var jf=Symbol();function K0(n,s){return!n.queryFn&&(s!=null&&s.initialPromise)?()=>s.initialPromise:!n.queryFn||n.queryFn===jf?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Z0(n,s){return typeof n=="function"?n(...s):!!n}function Tx(n,s,i){let r=!1,o;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(o??(o=s()),r||(r=!0,o.aborted?i():o.addEventListener("abort",i,{once:!0})),o)}),n}var _i=(()=>{let n=()=>bx;return{isServer(){return n()},setIsServer(s){n=s}}})();function sf(){let n,s;const i=new Promise((o,f)=>{n=o,s=f});i.status="pending",i.catch(()=>{});function r(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{r({status:"fulfilled",value:o}),n(o)},i.reject=o=>{r({status:"rejected",reason:o}),s(o)},i}var Nx=xx;function Mx(){let n=[],s=0,i=g=>{g()},r=g=>{g()},o=Nx;const f=g=>{s?n.push(g):o(()=>{i(g)})},h=()=>{const g=n;n=[],g.length&&o(()=>{r(()=>{g.forEach(p=>{i(p)})})})};return{batch:g=>{let p;s++;try{p=g()}finally{s--,s||h()}return p},batchCalls:g=>(...p)=>{f(()=>{g(...p)})},schedule:f,setNotifyFunction:g=>{i=g},setBatchNotifyFunction:g=>{r=g},setScheduler:g=>{o=g}}}var ce=Mx(),as,hn,ns,w0,Ax=(w0=class extends wi{constructor(){super();dt(this,as,!0);dt(this,hn);dt(this,ns);at(this,ns,s=>{if(typeof window<"u"&&window.addEventListener){const i=()=>s(!0),r=()=>s(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}}})}onSubscribe(){N(this,hn)||this.setEventListener(N(this,ns))}onUnsubscribe(){var s;this.hasListeners()||((s=N(this,hn))==null||s.call(this),at(this,hn,void 0))}setEventListener(s){var i;at(this,ns,s),(i=N(this,hn))==null||i.call(this),at(this,hn,s(this.setOnline.bind(this)))}setOnline(s){N(this,as)!==s&&(at(this,as,s),this.listeners.forEach(r=>{r(s)}))}isOnline(){return N(this,as)}},as=new WeakMap,hn=new WeakMap,ns=new WeakMap,w0),or=new Ax;function Cx(n){return Math.min(1e3*2**n,3e4)}function J0(n){return(n??"online")==="online"?or.isOnline():!0}var uf=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function P0(n){let s=!1,i=0,r;const o=sf(),f=()=>o.status!=="pending",h=M=>{var A;if(!f()){const U=new uf(M);S(U),(A=n.onCancel)==null||A.call(n,U)}},g=()=>{s=!0},p=()=>{s=!1},y=()=>Rf.isFocused()&&(n.networkMode==="always"||or.isOnline())&&n.canRun(),b=()=>J0(n.networkMode)&&n.canRun(),v=M=>{f()||(r==null||r(),o.resolve(M))},S=M=>{f()||(r==null||r(),o.reject(M))},_=()=>new Promise(M=>{var A;r=U=>{(f()||y())&&M(U)},(A=n.onPause)==null||A.call(n)}).then(()=>{var M;r=void 0,f()||(M=n.onContinue)==null||M.call(n)}),R=()=>{if(f())return;let M;const A=i===0?n.initialPromise:void 0;try{M=A??n.fn()}catch(U){M=Promise.reject(U)}Promise.resolve(M).then(v).catch(U=>{var $;if(f())return;const P=n.retry??(_i.isServer()?0:3),K=n.retryDelay??Cx,L=typeof K=="function"?K(i,U):K,X=P===!0||typeof P=="number"&&i<P||typeof P=="function"&&P(i,U);if(s||!X){S(U);return}i++,($=n.onFail)==null||$.call(n,i,U),_x(L).then(()=>y()?void 0:_()).then(()=>{s?S(U):R()})})};return{promise:o,status:()=>o.status,cancel:h,continue:()=>(r==null||r(),o),cancelRetry:g,continueRetry:p,canStart:b,start:()=>(b()?R():_().then(R),o)}}var Pn,U0,k0=(U0=class{constructor(){dt(this,Pn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),ef(this.gcTime)&&at(this,Pn,Xn.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(_i.isServer()?1/0:300*1e3))}clearGcTimeout(){N(this,Pn)&&(Xn.clearTimeout(N(this,Pn)),at(this,Pn,void 0))}},Pn=new WeakMap,U0),kn,ls,Pe,Fn,ne,Mi,$n,Be,F0,Oa,L0,Ox=(L0=class extends k0{constructor(s){super();dt(this,Be);dt(this,kn);dt(this,ls);dt(this,Pe);dt(this,Fn);dt(this,ne);dt(this,Mi);dt(this,$n);at(this,$n,!1),at(this,Mi,s.defaultOptions),this.setOptions(s.options),this.observers=[],at(this,Fn,s.client),at(this,Pe,N(this,Fn).getQueryCache()),this.queryKey=s.queryKey,this.queryHash=s.queryHash,at(this,kn,Fy(this.options)),this.state=s.state??N(this,kn),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var s;return(s=N(this,ne))==null?void 0:s.promise}setOptions(s){if(this.options={...N(this,Mi),...s},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=Fy(this.options);i.data!==void 0&&(this.setState(ky(i.data,i.dataUpdatedAt)),at(this,kn,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&N(this,Pe).remove(this)}setData(s,i){const r=lf(this.state.data,s,this.options);return Et(this,Be,Oa).call(this,{data:r,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),r}setState(s,i){Et(this,Be,Oa).call(this,{type:"setState",state:s,setStateOptions:i})}cancel(s){var r,o;const i=(r=N(this,ne))==null?void 0:r.promise;return(o=N(this,ne))==null||o.cancel(s),i?i.then(Te).catch(Te):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return N(this,kn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(s=>ke(s.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===jf||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(s=>Rn(s.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(s=>s.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(s=0){return this.state.data===void 0?!0:s==="static"?!1:this.state.isInvalidated?!0:!V0(this.state.dataUpdatedAt,s)}onFocus(){var i;const s=this.observers.find(r=>r.shouldFetchOnWindowFocus());s==null||s.refetch({cancelRefetch:!1}),(i=N(this,ne))==null||i.continue()}onOnline(){var i;const s=this.observers.find(r=>r.shouldFetchOnReconnect());s==null||s.refetch({cancelRefetch:!1}),(i=N(this,ne))==null||i.continue()}addObserver(s){this.observers.includes(s)||(this.observers.push(s),this.clearGcTimeout(),N(this,Pe).notify({type:"observerAdded",query:this,observer:s}))}removeObserver(s){this.observers.includes(s)&&(this.observers=this.observers.filter(i=>i!==s),this.observers.length||(N(this,ne)&&(N(this,$n)||Et(this,Be,F0).call(this)?N(this,ne).cancel({revert:!0}):N(this,ne).cancelRetry()),this.scheduleGc()),N(this,Pe).notify({type:"observerRemoved",query:this,observer:s}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Et(this,Be,Oa).call(this,{type:"invalidate"})}async fetch(s,i){var p,y,b,v,S,_,R,M,A,U,P,K;if(this.state.fetchStatus!=="idle"&&((p=N(this,ne))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(N(this,ne))return N(this,ne).continueRetry(),N(this,ne).promise}if(s&&this.setOptions(s),!this.options.queryFn){const L=this.observers.find(X=>X.options.queryFn);L&&this.setOptions(L.options)}const r=new AbortController,o=L=>{Object.defineProperty(L,"signal",{enumerable:!0,get:()=>(at(this,$n,!0),r.signal)})},f=()=>{const L=K0(this.options,i),$=(()=>{const Z={client:N(this,Fn),queryKey:this.queryKey,meta:this.meta};return o(Z),Z})();return at(this,$n,!1),this.options.persister?this.options.persister(L,$,this):L($)},g=(()=>{const L={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:N(this,Fn),state:this.state,fetchFn:f};return o(L),L})();(y=this.options.behavior)==null||y.onFetch(g,this),at(this,ls,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((b=g.fetchOptions)==null?void 0:b.meta))&&Et(this,Be,Oa).call(this,{type:"fetch",meta:(v=g.fetchOptions)==null?void 0:v.meta}),at(this,ne,P0({initialPromise:i==null?void 0:i.initialPromise,fn:g.fetchFn,onCancel:L=>{L instanceof uf&&L.revert&&this.setState({...N(this,ls),fetchStatus:"idle"}),r.abort()},onFail:(L,X)=>{Et(this,Be,Oa).call(this,{type:"failed",failureCount:L,error:X})},onPause:()=>{Et(this,Be,Oa).call(this,{type:"pause"})},onContinue:()=>{Et(this,Be,Oa).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const L=await N(this,ne).start();if(L===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(L),(_=(S=N(this,Pe).config).onSuccess)==null||_.call(S,L,this),(M=(R=N(this,Pe).config).onSettled)==null||M.call(R,L,this.state.error,this),L}catch(L){if(L instanceof uf){if(L.silent)return N(this,ne).promise;if(L.revert){if(this.state.data===void 0)throw L;return this.state.data}}throw Et(this,Be,Oa).call(this,{type:"error",error:L}),(U=(A=N(this,Pe).config).onError)==null||U.call(A,L,this),(K=(P=N(this,Pe).config).onSettled)==null||K.call(P,this.state.data,L,this),L}finally{this.scheduleGc()}}},kn=new WeakMap,ls=new WeakMap,Pe=new WeakMap,Fn=new WeakMap,ne=new WeakMap,Mi=new WeakMap,$n=new WeakMap,Be=new WeakSet,F0=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Oa=function(s){const i=r=>{switch(s.type){case"failed":return{...r,fetchFailureCount:s.failureCount,fetchFailureReason:s.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...$0(r.data,this.options),fetchMeta:s.meta??null};case"success":const o={...r,...ky(s.data,s.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return at(this,ls,s.manual?o:void 0),o;case"error":const f=s.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,...s.state}}};this.state=i(this.state),ce.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),N(this,Pe).notify({query:this,type:"updated",action:s})})},L0);function $0(n,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:J0(s.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function ky(n,s){return{data:n,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Fy(n){const s=typeof n.initialData=="function"?n.initialData():n.initialData,i=s!==void 0,r=i?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:i?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Ee,Nt,Ai,ye,In,ss,za,mn,Ci,is,us,Wn,tl,yn,rs,Ot,pi,rf,cf,of,ff,df,hf,mf,I0,B0,zx=(B0=class extends wi{constructor(s,i){super();dt(this,Ot);dt(this,Ee);dt(this,Nt);dt(this,Ai);dt(this,ye);dt(this,In);dt(this,ss);dt(this,za);dt(this,mn);dt(this,Ci);dt(this,is);dt(this,us);dt(this,Wn);dt(this,tl);dt(this,yn);dt(this,rs,new Set);this.options=i,at(this,Ee,s),at(this,mn,null),at(this,za,sf()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(N(this,Nt).addObserver(this),$y(N(this,Nt),this.options)?Et(this,Ot,pi).call(this):this.updateResult(),Et(this,Ot,ff).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yf(N(this,Nt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yf(N(this,Nt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Et(this,Ot,df).call(this),Et(this,Ot,hf).call(this),N(this,Nt).removeObserver(this)}setOptions(s){const i=this.options,r=N(this,Nt);if(this.options=N(this,Ee).defaultQueryOptions(s),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ke(this.options.enabled,N(this,Nt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Et(this,Ot,mf).call(this),N(this,Nt).setOptions(this.options),i._defaulted&&!af(this.options,i)&&N(this,Ee).getQueryCache().notify({type:"observerOptionsUpdated",query:N(this,Nt),observer:this});const o=this.hasListeners();o&&Iy(N(this,Nt),r,this.options,i)&&Et(this,Ot,pi).call(this),this.updateResult(),o&&(N(this,Nt)!==r||ke(this.options.enabled,N(this,Nt))!==ke(i.enabled,N(this,Nt))||Rn(this.options.staleTime,N(this,Nt))!==Rn(i.staleTime,N(this,Nt)))&&Et(this,Ot,rf).call(this);const f=Et(this,Ot,cf).call(this);o&&(N(this,Nt)!==r||ke(this.options.enabled,N(this,Nt))!==ke(i.enabled,N(this,Nt))||f!==N(this,yn))&&Et(this,Ot,of).call(this,f)}getOptimisticResult(s){const i=N(this,Ee).getQueryCache().build(N(this,Ee),s),r=this.createResult(i,s);return wx(this,r)&&(at(this,ye,r),at(this,ss,this.options),at(this,In,N(this,Nt).state)),r}getCurrentResult(){return N(this,ye)}trackResult(s,i){return new Proxy(s,{get:(r,o)=>(this.trackProp(o),i==null||i(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&N(this,za).status==="pending"&&N(this,za).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(s){N(this,rs).add(s)}getCurrentQuery(){return N(this,Nt)}refetch({...s}={}){return this.fetch({...s})}fetchOptimistic(s){const i=N(this,Ee).defaultQueryOptions(s),r=N(this,Ee).getQueryCache().build(N(this,Ee),i);return r.fetch().then(()=>this.createResult(r,i))}fetch(s){return Et(this,Ot,pi).call(this,{...s,cancelRefetch:s.cancelRefetch??!0}).then(()=>(this.updateResult(),N(this,ye)))}createResult(s,i){var k;const r=N(this,Nt),o=this.options,f=N(this,ye),h=N(this,In),g=N(this,ss),y=s!==r?s.state:N(this,Ai),{state:b}=s;let v={...b},S=!1,_;if(i._optimisticResults){const G=this.hasListeners(),F=!G&&$y(s,i),st=G&&Iy(s,r,i,o);(F||st)&&(v={...v,...$0(b.data,s.options)}),i._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:R,errorUpdatedAt:M,status:A}=v;_=v.data;let U=!1;if(i.placeholderData!==void 0&&_===void 0&&A==="pending"){let G;f!=null&&f.isPlaceholderData&&i.placeholderData===(g==null?void 0:g.placeholderData)?(G=f.data,U=!0):G=typeof i.placeholderData=="function"?i.placeholderData((k=N(this,us))==null?void 0:k.state.data,N(this,us)):i.placeholderData,G!==void 0&&(A="success",_=lf(f==null?void 0:f.data,G,i),S=!0)}if(i.select&&_!==void 0&&!U)if(f&&_===(h==null?void 0:h.data)&&i.select===N(this,Ci))_=N(this,is);else try{at(this,Ci,i.select),_=i.select(_),_=lf(f==null?void 0:f.data,_,i),at(this,is,_),at(this,mn,null)}catch(G){at(this,mn,G)}N(this,mn)&&(R=N(this,mn),_=N(this,is),M=Date.now(),A="error");const P=v.fetchStatus==="fetching",K=A==="pending",L=A==="error",X=K&&P,$=_!==void 0,J={status:A,fetchStatus:v.fetchStatus,isPending:K,isSuccess:A==="success",isError:L,isInitialLoading:X,isLoading:X,data:_,dataUpdatedAt:v.dataUpdatedAt,error:R,errorUpdatedAt:M,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:s.isFetched(),isFetchedAfterMount:v.dataUpdateCount>y.dataUpdateCount||v.errorUpdateCount>y.errorUpdateCount,isFetching:P,isRefetching:P&&!K,isLoadingError:L&&!$,isPaused:v.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:L&&$,isStale:Ef(s,i),refetch:this.refetch,promise:N(this,za),isEnabled:ke(i.enabled,s)!==!1};if(this.options.experimental_prefetchInRender){const G=J.data!==void 0,F=J.status==="error"&&!G,st=nt=>{F?nt.reject(J.error):G&&nt.resolve(J.data)},it=()=>{const nt=at(this,za,J.promise=sf());st(nt)},ct=N(this,za);switch(ct.status){case"pending":s.queryHash===r.queryHash&&st(ct);break;case"fulfilled":(F||J.data!==ct.value)&&it();break;case"rejected":(!F||J.error!==ct.reason)&&it();break}}return J}updateResult(){const s=N(this,ye),i=this.createResult(N(this,Nt),this.options);if(at(this,In,N(this,Nt).state),at(this,ss,this.options),N(this,In).data!==void 0&&at(this,us,N(this,Nt)),af(i,s))return;at(this,ye,i);const r=()=>{if(!s)return!0;const{notifyOnChangeProps:o}=this.options,f=typeof o=="function"?o():o;if(f==="all"||!f&&!N(this,rs).size)return!0;const h=new Set(f??N(this,rs));return this.options.throwOnError&&h.add("error"),Object.keys(N(this,ye)).some(g=>{const p=g;return N(this,ye)[p]!==s[p]&&h.has(p)})};Et(this,Ot,I0).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Et(this,Ot,ff).call(this)}},Ee=new WeakMap,Nt=new WeakMap,Ai=new WeakMap,ye=new WeakMap,In=new WeakMap,ss=new WeakMap,za=new WeakMap,mn=new WeakMap,Ci=new WeakMap,is=new WeakMap,us=new WeakMap,Wn=new WeakMap,tl=new WeakMap,yn=new WeakMap,rs=new WeakMap,Ot=new WeakSet,pi=function(s){Et(this,Ot,mf).call(this);let i=N(this,Nt).fetch(this.options,s);return s!=null&&s.throwOnError||(i=i.catch(Te)),i},rf=function(){Et(this,Ot,df).call(this);const s=Rn(this.options.staleTime,N(this,Nt));if(_i.isServer()||N(this,ye).isStale||!ef(s))return;const r=V0(N(this,ye).dataUpdatedAt,s)+1;at(this,Wn,Xn.setTimeout(()=>{N(this,ye).isStale||this.updateResult()},r))},cf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(N(this,Nt)):this.options.refetchInterval)??!1},of=function(s){Et(this,Ot,hf).call(this),at(this,yn,s),!(_i.isServer()||ke(this.options.enabled,N(this,Nt))===!1||!ef(N(this,yn))||N(this,yn)===0)&&at(this,tl,Xn.setInterval(()=>{(this.options.refetchIntervalInBackground||Rf.isFocused())&&Et(this,Ot,pi).call(this)},N(this,yn)))},ff=function(){Et(this,Ot,rf).call(this),Et(this,Ot,of).call(this,Et(this,Ot,cf).call(this))},df=function(){N(this,Wn)&&(Xn.clearTimeout(N(this,Wn)),at(this,Wn,void 0))},hf=function(){N(this,tl)&&(Xn.clearInterval(N(this,tl)),at(this,tl,void 0))},mf=function(){const s=N(this,Ee).getQueryCache().build(N(this,Ee),this.options);if(s===N(this,Nt))return;const i=N(this,Nt);at(this,Nt,s),at(this,Ai,s.state),this.hasListeners()&&(i==null||i.removeObserver(this),s.addObserver(this))},I0=function(s){ce.batch(()=>{s.listeners&&this.listeners.forEach(i=>{i(N(this,ye))}),N(this,Ee).getQueryCache().notify({query:N(this,Nt),type:"observerResultsUpdated"})})},B0);function Dx(n,s){return ke(s.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&s.retryOnMount===!1)}function $y(n,s){return Dx(n,s)||n.state.data!==void 0&&yf(n,s,s.refetchOnMount)}function yf(n,s,i){if(ke(s.enabled,n)!==!1&&Rn(s.staleTime,n)!=="static"){const r=typeof i=="function"?i(n):i;return r==="always"||r!==!1&&Ef(n,s)}return!1}function Iy(n,s,i,r){return(n!==s||ke(r.enabled,n)===!1)&&(!i.suspense||n.state.status!=="error")&&Ef(n,i)}function Ef(n,s){return ke(s.enabled,n)!==!1&&n.isStaleByTime(Rn(s.staleTime,n))}function wx(n,s){return!af(n.getCurrentResult(),s)}function Wy(n){return{onFetch:(s,i)=>{var b,v,S,_,R;const r=s.options,o=(S=(v=(b=s.fetchOptions)==null?void 0:b.meta)==null?void 0:v.fetchMore)==null?void 0:S.direction,f=((_=s.state.data)==null?void 0:_.pages)||[],h=((R=s.state.data)==null?void 0:R.pageParams)||[];let g={pages:[],pageParams:[]},p=0;const y=async()=>{let M=!1;const A=K=>{Tx(K,()=>s.signal,()=>M=!0)},U=K0(s.options,s.fetchOptions),P=async(K,L,X)=>{if(M)return Promise.reject();if(L==null&&K.pages.length)return Promise.resolve(K);const Z=(()=>{const F={client:s.client,queryKey:s.queryKey,pageParam:L,direction:X?"backward":"forward",meta:s.options.meta};return A(F),F})(),J=await U(Z),{maxPages:k}=s.options,G=X?Ex:jx;return{pages:G(K.pages,J,k),pageParams:G(K.pageParams,L,k)}};if(o&&f.length){const K=o==="backward",L=K?Ux:t0,X={pages:f,pageParams:h},$=L(r,X);g=await P(X,$,K)}else{const K=n??f.length;do{const L=p===0?h[0]??r.initialPageParam:t0(r,g);if(p>0&&L==null)break;g=await P(g,L),p++}while(p<K)}return g};s.options.persister?s.fetchFn=()=>{var M,A;return(A=(M=s.options).persister)==null?void 0:A.call(M,y,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},i)}:s.fetchFn=y}}}function t0(n,{pages:s,pageParams:i}){const r=s.length-1;return s.length>0?n.getNextPageParam(s[r],s,i[r],i):void 0}function Ux(n,{pages:s,pageParams:i}){var r;return s.length>0?(r=n.getPreviousPageParam)==null?void 0:r.call(n,s[0],s,i[0],i):void 0}var Oi,ra,de,el,ca,cn,H0,Lx=(H0=class extends k0{constructor(s){super();dt(this,ca);dt(this,Oi);dt(this,ra);dt(this,de);dt(this,el);at(this,Oi,s.client),this.mutationId=s.mutationId,at(this,de,s.mutationCache),at(this,ra,[]),this.state=s.state||Bx(),this.setOptions(s.options),this.scheduleGc()}setOptions(s){this.options=s,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(s){N(this,ra).includes(s)||(N(this,ra).push(s),this.clearGcTimeout(),N(this,de).notify({type:"observerAdded",mutation:this,observer:s}))}removeObserver(s){at(this,ra,N(this,ra).filter(i=>i!==s)),this.scheduleGc(),N(this,de).notify({type:"observerRemoved",mutation:this,observer:s})}optionalRemove(){N(this,ra).length||(this.state.status==="pending"?this.scheduleGc():N(this,de).remove(this))}continue(){var s;return((s=N(this,el))==null?void 0:s.continue())??this.execute(this.state.variables)}async execute(s){var h,g,p,y,b,v,S,_,R,M,A,U,P,K,L,X,$,Z;const i=()=>{Et(this,ca,cn).call(this,{type:"continue"})},r={client:N(this,Oi),meta:this.options.meta,mutationKey:this.options.mutationKey};at(this,el,P0({fn:()=>this.options.mutationFn?this.options.mutationFn(s,r):Promise.reject(new Error("No mutationFn found")),onFail:(J,k)=>{Et(this,ca,cn).call(this,{type:"failed",failureCount:J,error:k})},onPause:()=>{Et(this,ca,cn).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>N(this,de).canRun(this)}));const o=this.state.status==="pending",f=!N(this,el).canStart();try{if(o)i();else{Et(this,ca,cn).call(this,{type:"pending",variables:s,isPaused:f}),N(this,de).config.onMutate&&await N(this,de).config.onMutate(s,this,r);const k=await((g=(h=this.options).onMutate)==null?void 0:g.call(h,s,r));k!==this.state.context&&Et(this,ca,cn).call(this,{type:"pending",context:k,variables:s,isPaused:f})}const J=await N(this,el).start();return await((y=(p=N(this,de).config).onSuccess)==null?void 0:y.call(p,J,s,this.state.context,this,r)),await((v=(b=this.options).onSuccess)==null?void 0:v.call(b,J,s,this.state.context,r)),await((_=(S=N(this,de).config).onSettled)==null?void 0:_.call(S,J,null,this.state.variables,this.state.context,this,r)),await((M=(R=this.options).onSettled)==null?void 0:M.call(R,J,null,s,this.state.context,r)),Et(this,ca,cn).call(this,{type:"success",data:J}),J}catch(J){try{await((U=(A=N(this,de).config).onError)==null?void 0:U.call(A,J,s,this.state.context,this,r))}catch(k){Promise.reject(k)}try{await((K=(P=this.options).onError)==null?void 0:K.call(P,J,s,this.state.context,r))}catch(k){Promise.reject(k)}try{await((X=(L=N(this,de).config).onSettled)==null?void 0:X.call(L,void 0,J,this.state.variables,this.state.context,this,r))}catch(k){Promise.reject(k)}try{await((Z=($=this.options).onSettled)==null?void 0:Z.call($,void 0,J,s,this.state.context,r))}catch(k){Promise.reject(k)}throw Et(this,ca,cn).call(this,{type:"error",error:J}),J}finally{N(this,de).runNext(this)}}},Oi=new WeakMap,ra=new WeakMap,de=new WeakMap,el=new WeakMap,ca=new WeakSet,cn=function(s){const i=r=>{switch(s.type){case"failed":return{...r,failureCount:s.failureCount,failureReason:s.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:s.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:s.isPaused,status:"pending",variables:s.variables,submittedAt:Date.now()};case"success":return{...r,data:s.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:s.error,failureCount:r.failureCount+1,failureReason:s.error,isPaused:!1,status:"error"}}};this.state=i(this.state),ce.batch(()=>{N(this,ra).forEach(r=>{r.onMutationUpdate(s)}),N(this,de).notify({mutation:this,type:"updated",action:s})})},H0);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 Da,ta,zi,q0,Hx=(q0=class extends wi{constructor(s={}){super();dt(this,Da);dt(this,ta);dt(this,zi);this.config=s,at(this,Da,new Set),at(this,ta,new Map),at(this,zi,0)}build(s,i,r){const o=new Lx({client:s,mutationCache:this,mutationId:++er(this,zi)._,options:s.defaultMutationOptions(i),state:r});return this.add(o),o}add(s){N(this,Da).add(s);const i=ar(s);if(typeof i=="string"){const r=N(this,ta).get(i);r?r.push(s):N(this,ta).set(i,[s])}this.notify({type:"added",mutation:s})}remove(s){if(N(this,Da).delete(s)){const i=ar(s);if(typeof i=="string"){const r=N(this,ta).get(i);if(r)if(r.length>1){const o=r.indexOf(s);o!==-1&&r.splice(o,1)}else r[0]===s&&N(this,ta).delete(i)}}this.notify({type:"removed",mutation:s})}canRun(s){const i=ar(s);if(typeof i=="string"){const r=N(this,ta).get(i),o=r==null?void 0:r.find(f=>f.state.status==="pending");return!o||o===s}else return!0}runNext(s){var r;const i=ar(s);if(typeof i=="string"){const o=(r=N(this,ta).get(i))==null?void 0:r.find(f=>f!==s&&f.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ce.batch(()=>{N(this,Da).forEach(s=>{this.notify({type:"removed",mutation:s})}),N(this,Da).clear(),N(this,ta).clear()})}getAll(){return Array.from(N(this,Da))}find(s){const i={exact:!0,...s};return this.getAll().find(r=>Zy(i,r))}findAll(s={}){return this.getAll().filter(i=>Zy(s,i))}notify(s){ce.batch(()=>{this.listeners.forEach(i=>{i(s)})})}resumePausedMutations(){const s=this.getAll().filter(i=>i.state.isPaused);return ce.batch(()=>Promise.all(s.map(i=>i.continue().catch(Te))))}},Da=new WeakMap,ta=new WeakMap,zi=new WeakMap,q0);function ar(n){var s;return(s=n.options.scope)==null?void 0:s.id}var oa,Q0,qx=(Q0=class extends wi{constructor(s={}){super();dt(this,oa);this.config=s,at(this,oa,new Map)}build(s,i,r){const o=i.queryKey,f=i.queryHash??_f(o,i);let h=this.get(f);return h||(h=new Ox({client:s,queryKey:o,queryHash:f,options:s.defaultQueryOptions(i),state:r,defaultOptions:s.getQueryDefaults(o)}),this.add(h)),h}add(s){N(this,oa).has(s.queryHash)||(N(this,oa).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const i=N(this,oa).get(s.queryHash);i&&(s.destroy(),i===s&&N(this,oa).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){ce.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return N(this,oa).get(s)}getAll(){return[...N(this,oa).values()]}find(s){const i={exact:!0,...s};return this.getAll().find(r=>Ky(i,r))}findAll(s={}){const i=this.getAll();return Object.keys(s).length>0?i.filter(r=>Ky(s,r)):i}notify(s){ce.batch(()=>{this.listeners.forEach(i=>{i(s)})})}onFocus(){ce.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){ce.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},oa=new WeakMap,Q0),Zt,gn,vn,cs,os,pn,fs,ds,Y0,Qx=(Y0=class{constructor(n={}){dt(this,Zt);dt(this,gn);dt(this,vn);dt(this,cs);dt(this,os);dt(this,pn);dt(this,fs);dt(this,ds);at(this,Zt,n.queryCache||new qx),at(this,gn,n.mutationCache||new Hx),at(this,vn,n.defaultOptions||{}),at(this,cs,new Map),at(this,os,new Map),at(this,pn,0)}mount(){er(this,pn)._++,N(this,pn)===1&&(at(this,fs,Rf.subscribe(async n=>{n&&(await this.resumePausedMutations(),N(this,Zt).onFocus())})),at(this,ds,or.subscribe(async n=>{n&&(await this.resumePausedMutations(),N(this,Zt).onOnline())})))}unmount(){var n,s;er(this,pn)._--,N(this,pn)===0&&((n=N(this,fs))==null||n.call(this),at(this,fs,void 0),(s=N(this,ds))==null||s.call(this),at(this,ds,void 0))}isFetching(n){return N(this,Zt).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return N(this,gn).findAll({...n,status:"pending"}).length}getQueryData(n){var i;const s=this.defaultQueryOptions({queryKey:n});return(i=N(this,Zt).get(s.queryHash))==null?void 0:i.state.data}ensureQueryData(n){const s=this.defaultQueryOptions(n),i=N(this,Zt).build(this,s),r=i.state.data;return r===void 0?this.fetchQuery(n):(n.revalidateIfStale&&i.isStaleByTime(Rn(s.staleTime,i))&&this.prefetchQuery(s),Promise.resolve(r))}getQueriesData(n){return N(this,Zt).findAll(n).map(({queryKey:s,state:i})=>{const r=i.data;return[s,r]})}setQueryData(n,s,i){const r=this.defaultQueryOptions({queryKey:n}),o=N(this,Zt).get(r.queryHash),f=o==null?void 0:o.state.data,h=Sx(s,f);if(h!==void 0)return N(this,Zt).build(this,r).setData(h,{...i,manual:!0})}setQueriesData(n,s,i){return ce.batch(()=>N(this,Zt).findAll(n).map(({queryKey:r})=>[r,this.setQueryData(r,s,i)]))}getQueryState(n){var i;const s=this.defaultQueryOptions({queryKey:n});return(i=N(this,Zt).get(s.queryHash))==null?void 0:i.state}removeQueries(n){const s=N(this,Zt);ce.batch(()=>{s.findAll(n).forEach(i=>{s.remove(i)})})}resetQueries(n,s){const i=N(this,Zt);return ce.batch(()=>(i.findAll(n).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...n},s)))}cancelQueries(n,s={}){const i={revert:!0,...s},r=ce.batch(()=>N(this,Zt).findAll(n).map(o=>o.cancel(i)));return Promise.all(r).then(Te).catch(Te)}invalidateQueries(n,s={}){return ce.batch(()=>(N(this,Zt).findAll(n).forEach(i=>{i.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},s)))}refetchQueries(n,s={}){const i={...s,cancelRefetch:s.cancelRefetch??!0},r=ce.batch(()=>N(this,Zt).findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let f=o.fetch(void 0,i);return i.throwOnError||(f=f.catch(Te)),o.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(Te)}fetchQuery(n){const s=this.defaultQueryOptions(n);s.retry===void 0&&(s.retry=!1);const i=N(this,Zt).build(this,s);return i.isStaleByTime(Rn(s.staleTime,i))?i.fetch(s):Promise.resolve(i.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(Te).catch(Te)}fetchInfiniteQuery(n){return n.behavior=Wy(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(Te).catch(Te)}ensureInfiniteQueryData(n){return n.behavior=Wy(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return or.isOnline()?N(this,gn).resumePausedMutations():Promise.resolve()}getQueryCache(){return N(this,Zt)}getMutationCache(){return N(this,gn)}getDefaultOptions(){return N(this,vn)}setDefaultOptions(n){at(this,vn,n)}setQueryDefaults(n,s){N(this,cs).set(Si(n),{queryKey:n,defaultOptions:s})}getQueryDefaults(n){const s=[...N(this,cs).values()],i={};return s.forEach(r=>{Ri(n,r.queryKey)&&Object.assign(i,r.defaultOptions)}),i}setMutationDefaults(n,s){N(this,os).set(Si(n),{mutationKey:n,defaultOptions:s})}getMutationDefaults(n){const s=[...N(this,os).values()],i={};return s.forEach(r=>{Ri(n,r.mutationKey)&&Object.assign(i,r.defaultOptions)}),i}defaultQueryOptions(n){if(n._defaulted)return n;const s={...N(this,vn).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return s.queryHash||(s.queryHash=_f(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===jf&&(s.enabled=!1),s}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...N(this,vn).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){N(this,Zt).clear(),N(this,gn).clear()}},Zt=new WeakMap,gn=new WeakMap,vn=new WeakMap,cs=new WeakMap,os=new WeakMap,pn=new WeakMap,fs=new WeakMap,ds=new WeakMap,Y0),W0=et.createContext(void 0),Yx=n=>{const s=et.useContext(W0);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},Gx=({client:n,children:s})=>(et.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),m.jsx(W0.Provider,{value:n,children:s})),tg=et.createContext(!1),Vx=()=>et.useContext(tg);tg.Provider;function Xx(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var Kx=et.createContext(Xx()),Zx=()=>et.useContext(Kx),Jx=(n,s,i)=>{const r=i!=null&&i.state.error&&typeof n.throwOnError=="function"?Z0(n.throwOnError,[i.state.error,i]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||r)&&(s.isReset()||(n.retryOnMount=!1))},Px=n=>{et.useEffect(()=>{n.clearReset()},[n])},kx=({result:n,errorResetBoundary:s,throwOnError:i,query:r,suspense:o})=>n.isError&&!s.isReset()&&!n.isFetching&&r&&(o&&n.data===void 0||Z0(i,[n.error,r])),Fx=n=>{if(n.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),r=n.staleTime;n.staleTime=typeof r=="function"?(...o)=>i(r(...o)):i(r),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},$x=(n,s)=>n.isLoading&&n.isFetching&&!s,Ix=(n,s)=>(n==null?void 0:n.suspense)&&s.isPending,e0=(n,s,i)=>s.fetchOptimistic(n).catch(()=>{i.clearReset()});function Wx(n,s,i){var S,_,R,M;const r=Vx(),o=Zx(),f=Yx(),h=f.defaultQueryOptions(n);(_=(S=f.getDefaultOptions().queries)==null?void 0:S._experimental_beforeQuery)==null||_.call(S,h);const g=f.getQueryCache().get(h.queryHash);h._optimisticResults=r?"isRestoring":"optimistic",Fx(h),Jx(h,o,g),Px(o);const p=!f.getQueryCache().get(h.queryHash),[y]=et.useState(()=>new s(f,h)),b=y.getOptimisticResult(h),v=!r&&n.subscribed!==!1;if(et.useSyncExternalStore(et.useCallback(A=>{const U=v?y.subscribe(ce.batchCalls(A)):Te;return y.updateResult(),U},[y,v]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),et.useEffect(()=>{y.setOptions(h)},[h,y]),Ix(h,b))throw e0(h,y,o);if(kx({result:b,errorResetBoundary:o,throwOnError:h.throwOnError,query:g,suspense:h.suspense}))throw b.error;if((M=(R=f.getDefaultOptions().queries)==null?void 0:R._experimental_afterQuery)==null||M.call(R,h,b),h.experimental_prefetchInRender&&!_i.isServer()&&$x(b,r)){const A=p?e0(h,y,o):g==null?void 0:g.promise;A==null||A.catch(Te).finally(()=>{y.updateResult()})}return h.notifyOnChangeProps?b:y.trackResult(b)}function sl(n,s){return Wx(n,zx)}var xi=typeof window<"u"?et.useLayoutEffect:et.useEffect;function Go(n){const s=et.useRef({value:n,prev:null}),i=s.current.value;return n!==i&&(s.current={value:n,prev:i}),s.current.prev}function tb(n,s,i={},r={}){et.useEffect(()=>{if(!n.current||r.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([f])=>{s(f)},i);return o.observe(n.current),()=>{o.disconnect()}},[s,i,r.disabled,n])}function eb(n){const s=et.useRef(null);return et.useImperativeHandle(n,()=>s.current,[]),s}var eg=!1;function ji(n){return n[n.length-1]}function ab(n){return typeof n=="function"}function xn(n,s){return ab(n)?n(s):n}var nb=Object.prototype.hasOwnProperty,a0=Object.prototype.propertyIsEnumerable,lb=()=>Object.create(null),Vn=(n,s)=>bn(n,s,lb);function bn(n,s,i=()=>({}),r=0){if(n===s)return n;if(r>500)return s;const o=s,f=s0(n)&&s0(o);if(!f&&!(hs(n)&&hs(o)))return o;const h=f?n:n0(n);if(!h)return o;const g=f?o:n0(o);if(!g)return o;const p=h.length,y=g.length,b=f?new Array(y):i();let v=0;for(let S=0;S<y;S++){const _=f?S:g[S],R=n[_],M=o[_];if(R===M){b[_]=R,(f?S<p:nb.call(n,_))&&v++;continue}if(R===null||M===null||typeof R!="object"||typeof M!="object"){b[_]=M;continue}const A=bn(R,M,i,r+1);b[_]=A,A===R&&v++}return p===y&&v===p?n:b}function n0(n){const s=Object.getOwnPropertyNames(n);for(const o of s)if(!a0.call(n,o))return!1;const i=Object.getOwnPropertySymbols(n);if(i.length===0)return s;const r=s;for(const o of i){if(!a0.call(n,o))return!1;r.push(o)}return r}function hs(n){if(!l0(n))return!1;const s=n.constructor;if(typeof s>"u")return!0;const i=s.prototype;return!(!l0(i)||!i.hasOwnProperty("isPrototypeOf"))}function l0(n){return Object.prototype.toString.call(n)==="[object Object]"}function s0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function al(n,s,i){if(n===s)return!0;if(typeof n!=typeof s)return!1;if(Array.isArray(n)&&Array.isArray(s)){if(n.length!==s.length)return!1;for(let r=0,o=n.length;r<o;r++)if(!al(n[r],s[r],i))return!1;return!0}if(hs(n)&&hs(s)){const r=(i==null?void 0:i.ignoreUndefined)??!0;if(i!=null&&i.partial){for(const h in s)if((!r||s[h]!==void 0)&&!al(n[h],s[h],i))return!1;return!0}let o=0;if(!r)o=Object.keys(n).length;else for(const h in n)n[h]!==void 0&&o++;let f=0;for(const h in s)if((!r||s[h]!==void 0)&&(f++,f>o||!al(n[h],s[h],i)))return!1;return o===f}return!1}function ms(n){let s,i;const r=new Promise((o,f)=>{s=o,i=f});return r.status="pending",r.resolve=o=>{r.status="resolved",r.value=o,s(o),n==null||n(o)},r.reject=o=>{r.status="rejected",i(o)},r}function Ei(n){return!!(n&&typeof n=="object"&&typeof n.then=="function")}function sb(n){return n.replace(/[\x00-\x1f\x7f]/g,"")}function i0(n){let s;try{s=decodeURI(n)}catch{s=n.replaceAll(/%[0-9A-F]{2}/gi,i=>{try{return decodeURI(i)}catch{return i}})}return sb(s)}var ib=["http:","https:","mailto:","tel:"];function fr(n,s){if(!n)return!1;try{const i=new URL(n);return!s.has(i.protocol)}catch{return!1}}function di(n){if(!n)return{path:n,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(n)&&!n.startsWith("//"))return{path:n,handledProtocolRelativeURL:!1};const s=/%25|%5C/gi;let i=0,r="",o;for(;(o=s.exec(n))!==null;)r+=i0(n.slice(i,o.index))+o[0],i=s.lastIndex;r=r+i0(i?n.slice(i):n);let f=!1;return r.startsWith("//")&&(f=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:f}}function ub(n){return/\s|[^\u0000-\u007F]/.test(n)?n.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):n}function rb(n,s){if(n===s)return!0;if(n.length!==s.length)return!1;for(let i=0;i<n.length;i++)if(n[i]!==s[i])return!1;return!0}function wa(){throw new Error("Invariant failed")}function Ti(n){const s=new Map;let i,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,i=f.next,f.next=void 0,r&&(f.prev=r,r.next=f)),r=f)};return{get(f){const h=s.get(f);if(h)return o(h),h.value},set(f,h){if(s.size>=n&&i){const p=i;s.delete(p.key),p.next&&(i=p.next,p.next.prev=void 0),p===r&&(r=void 0)}const g=s.get(f);if(g)g.value=h,o(g);else{const p={key:f,value:h,prev:r};r&&(r.next=p),r=p,i||(i=p),s.set(f,p)}},clear(){s.clear(),i=void 0,r=void 0}}}var Kn=4,ag=5;function cb(n){const s=n.indexOf("{");if(s===-1)return null;const i=n.indexOf("}",s);return i===-1||s+1>=n.length?null:[s,i]}function Tf(n,s,i=new Uint16Array(6)){const r=n.indexOf("/",s),o=r===-1?n.length:r,f=n.substring(s,o);if(!f||!f.includes("$"))return i[0]=0,i[1]=s,i[2]=s,i[3]=o,i[4]=o,i[5]=o,i;if(f==="$"){const g=n.length;return i[0]=2,i[1]=s,i[2]=s,i[3]=g,i[4]=g,i[5]=g,i}if(f.charCodeAt(0)===36)return i[0]=1,i[1]=s,i[2]=s+1,i[3]=o,i[4]=o,i[5]=o,i;const h=cb(f);if(h){const[g,p]=h,y=f.charCodeAt(g+1);if(y===45){if(g+2<f.length&&f.charCodeAt(g+2)===36){const b=g+3,v=p;if(b<v)return i[0]=3,i[1]=s+g,i[2]=s+b,i[3]=s+v,i[4]=s+p+1,i[5]=o,i}}else if(y===36){const b=g+1,v=g+2;return v===p?(i[0]=2,i[1]=s+g,i[2]=s+b,i[3]=s+v,i[4]=s+p+1,i[5]=n.length,i):(i[0]=1,i[1]=s+g,i[2]=s+v,i[3]=s+p,i[4]=s+p+1,i[5]=o,i)}}return i[0]=0,i[1]=s,i[2]=s,i[3]=o,i[4]=o,i[5]=o,i}function pr(n,s,i,r,o,f,h){var p,y,b,v,S,_,R,M,A,U,P,K,L;h==null||h(i);let g=r;{const X=i.fullPath??i.from,$=X.length,Z=((p=i.options)==null?void 0:p.caseSensitive)??n,J=!!((b=(y=i.options)==null?void 0:y.params)!=null&&b.parse&&((S=(v=i.options)==null?void 0:v.skipRouteOnParseError)!=null&&S.params));for(;g<$;){const G=Tf(X,g,s);let F;const st=g,it=G[5];switch(g=it+1,f++,G[0]){case 0:{const ct=X.substring(G[2],G[3]);if(Z){const nt=(_=o.static)==null?void 0:_.get(ct);if(nt)F=nt;else{o.static??(o.static=new Map);const D=Zn(i.fullPath??i.from);D.parent=o,D.depth=f,F=D,o.static.set(ct,D)}}else{const nt=ct.toLowerCase(),D=(R=o.staticInsensitive)==null?void 0:R.get(nt);if(D)F=D;else{o.staticInsensitive??(o.staticInsensitive=new Map);const V=Zn(i.fullPath??i.from);V.parent=o,V.depth=f,F=V,o.staticInsensitive.set(nt,V)}}break}case 1:{const ct=X.substring(st,G[1]),nt=X.substring(G[4],it),D=Z&&!!(ct||nt),V=ct?D?ct:ct.toLowerCase():void 0,tt=nt?D?nt:nt.toLowerCase():void 0,yt=!J&&((M=o.dynamic)==null?void 0:M.find(ot=>!ot.skipOnParamError&&ot.caseSensitive===D&&ot.prefix===V&&ot.suffix===tt));if(yt)F=yt;else{const ot=Xo(1,i.fullPath??i.from,D,V,tt);F=ot,ot.depth=f,ot.parent=o,o.dynamic??(o.dynamic=[]),o.dynamic.push(ot)}break}case 3:{const ct=X.substring(st,G[1]),nt=X.substring(G[4],it),D=Z&&!!(ct||nt),V=ct?D?ct:ct.toLowerCase():void 0,tt=nt?D?nt:nt.toLowerCase():void 0,yt=!J&&((A=o.optional)==null?void 0:A.find(ot=>!ot.skipOnParamError&&ot.caseSensitive===D&&ot.prefix===V&&ot.suffix===tt));if(yt)F=yt;else{const ot=Xo(3,i.fullPath??i.from,D,V,tt);F=ot,ot.parent=o,ot.depth=f,o.optional??(o.optional=[]),o.optional.push(ot)}break}case 2:{const ct=X.substring(st,G[1]),nt=X.substring(G[4],it),D=Z&&!!(ct||nt),V=ct?D?ct:ct.toLowerCase():void 0,tt=nt?D?nt:nt.toLowerCase():void 0,yt=Xo(2,i.fullPath??i.from,D,V,tt);F=yt,yt.parent=o,yt.depth=f,o.wildcard??(o.wildcard=[]),o.wildcard.push(yt)}}o=F}if(J&&i.children&&!i.isRoot&&i.id&&i.id.charCodeAt(i.id.lastIndexOf("/")+1)===95){const G=Zn(i.fullPath??i.from);G.kind=ag,G.parent=o,f++,G.depth=f,o.pathless??(o.pathless=[]),o.pathless.push(G),o=G}const k=(i.path||!i.children)&&!i.isRoot;if(k&&X.endsWith("/")){const G=Zn(i.fullPath??i.from);G.kind=Kn,G.parent=o,f++,G.depth=f,o.index=G,o=G}o.parse=((P=(U=i.options)==null?void 0:U.params)==null?void 0:P.parse)??null,o.skipOnParamError=J,o.parsingPriority=((L=(K=i.options)==null?void 0:K.skipRouteOnParseError)==null?void 0:L.priority)??0,k&&!o.route&&(o.route=i,o.fullPath=i.fullPath??i.from)}if(i.children)for(const X of i.children)pr(n,s,X,g,o,f,h)}function Vo(n,s){if(n.skipOnParamError&&!s.skipOnParamError)return-1;if(!n.skipOnParamError&&s.skipOnParamError)return 1;if(n.skipOnParamError&&s.skipOnParamError&&(n.parsingPriority||s.parsingPriority))return s.parsingPriority-n.parsingPriority;if(n.prefix&&s.prefix&&n.prefix!==s.prefix){if(n.prefix.startsWith(s.prefix))return-1;if(s.prefix.startsWith(n.prefix))return 1}if(n.suffix&&s.suffix&&n.suffix!==s.suffix){if(n.suffix.endsWith(s.suffix))return-1;if(s.suffix.endsWith(n.suffix))return 1}return n.prefix&&!s.prefix?-1:!n.prefix&&s.prefix?1:n.suffix&&!s.suffix?-1:!n.suffix&&s.suffix?1:n.caseSensitive&&!s.caseSensitive?-1:!n.caseSensitive&&s.caseSensitive?1:0}function on(n){var s,i,r;if(n.pathless)for(const o of n.pathless)on(o);if(n.static)for(const o of n.static.values())on(o);if(n.staticInsensitive)for(const o of n.staticInsensitive.values())on(o);if((s=n.dynamic)!=null&&s.length){n.dynamic.sort(Vo);for(const o of n.dynamic)on(o)}if((i=n.optional)!=null&&i.length){n.optional.sort(Vo);for(const o of n.optional)on(o)}if((r=n.wildcard)!=null&&r.length){n.wildcard.sort(Vo);for(const o of n.wildcard)on(o)}}function Zn(n){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:n,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function Xo(n,s,i,r,o){return{kind:n,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:s,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:i,prefix:r,suffix:o}}function ob(n,s){const i=Zn("/"),r=new Uint16Array(6);for(const o of n)pr(!1,r,o,1,i,0);on(i),s.masksTree=i,s.flatCache=Ti(1e3)}function fb(n,s){n||(n="/");const i=s.flatCache.get(n);if(i)return i;const r=Nf(n,s.masksTree);return s.flatCache.set(n,r),r}function db(n,s,i,r,o){n||(n="/"),r||(r="/");const f=s?`case\0${n}`:n;let h=o.singleCache.get(f);return h||(h=Zn("/"),pr(s,new Uint16Array(6),{from:n},1,h,0),o.singleCache.set(f,h)),Nf(r,h,i)}function hb(n,s,i=!1){const r=i?n:`nofuzz\0${n}`,o=s.matchCache.get(r);if(o!==void 0)return o;n||(n="/");let f;try{f=Nf(n,s.segmentTree,i)}catch(h){if(h instanceof URIError)f=null;else throw h}return f&&(f.branch=gb(f.route)),s.matchCache.set(r,f),f}function mb(n){return n==="/"?n:n.replace(/\/{1,}$/,"")}function yb(n,s=!1,i){const r=Zn(n.fullPath),o=new Uint16Array(6),f={},h={};let g=0;return pr(s,o,n,1,r,0,p=>{if(i==null||i(p,g),p.id in f&&wa(),f[p.id]=p,g!==0&&p.path){const y=mb(p.fullPath);(!h[y]||p.fullPath.endsWith("/"))&&(h[y]=p)}g++}),on(r),{processedTree:{segmentTree:r,singleCache:Ti(1e3),matchCache:Ti(1e3),flatCache:null,masksTree:null},routesById:f,routesByPath:h}}function Nf(n,s,i=!1){const r=n.split("/"),o=pb(n,r,s,i);if(!o)return null;const[f]=ng(n,r,o);return{route:o.node.route,rawParams:f,parsedParams:o.parsedParams}}function ng(n,s,i){var b,v,S,_,R,M,A,U,P,K;const r=vb(i.node);let o=null;const f=Object.create(null);let h=((b=i.extract)==null?void 0:b.part)??0,g=((v=i.extract)==null?void 0:v.node)??0,p=((S=i.extract)==null?void 0:S.path)??0,y=((_=i.extract)==null?void 0:_.segment)??0;for(;g<r.length;h++,g++,p++,y++){const L=r[g];if(L.kind===Kn)break;if(L.kind===ag){y--,h--,p--;continue}const X=s[h],$=p;if(X&&(p+=X.length),L.kind===1){o??(o=i.node.fullPath.split("/"));const Z=o[y],J=((R=L.prefix)==null?void 0:R.length)??0;if(Z.charCodeAt(J)===123){const k=((M=L.suffix)==null?void 0:M.length)??0,G=Z.substring(J+2,Z.length-k-1),F=X.substring(J,X.length-k);f[G]=decodeURIComponent(F)}else{const k=Z.substring(1);f[k]=decodeURIComponent(X)}}else if(L.kind===3){if(i.skipped&1<<g){h--,p=$-1;continue}o??(o=i.node.fullPath.split("/"));const Z=o[y],J=((A=L.prefix)==null?void 0:A.length)??0,k=((U=L.suffix)==null?void 0:U.length)??0,G=Z.substring(J+3,Z.length-k-1),F=L.suffix||L.prefix?X.substring(J,X.length-k):X;F&&(f[G]=decodeURIComponent(F))}else if(L.kind===2){const Z=L,J=n.substring($+(((P=Z.prefix)==null?void 0:P.length)??0),n.length-(((K=Z.suffix)==null?void 0:K.length)??0)),k=decodeURIComponent(J);f["*"]=k,f._splat=k;break}}return i.rawParams&&Object.assign(f,i.rawParams),[f,{part:h,node:g,path:p,segment:y}]}function gb(n){const s=[n];for(;n.parentRoute;)n=n.parentRoute,s.push(n);return s.reverse(),s}function vb(n){const s=Array(n.depth+1);do s[n.depth]=n,n=n.parent;while(n);return s}function pb(n,s,i,r){if(n==="/"&&i.index)return{node:i.index,skipped:0};const o=!ji(s),f=o&&n!=="/",h=s.length-(o?1:0),g=[{node:i,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let p=null,y=null,b=null;for(;g.length;){const v=g.pop(),{node:S,index:_,skipped:R,depth:M,statics:A,dynamics:U,optionals:P}=v;let{extract:K,rawParams:L,parsedParams:X}=v;if(S.skipOnParamError){if(!Ko(n,s,v))continue;L=v.rawParams,K=v.extract,X=v.parsedParams}r&&S.route&&S.kind!==Kn&&hi(y,v)&&(y=v);const $=_===h;if($&&(S.route&&!f&&hi(b,v)&&(b=v),!S.optional&&!S.wildcard&&!S.index&&!S.pathless))continue;const Z=$?void 0:s[_];let J;if($&&S.index){const k={node:S.index,index:_,skipped:R,depth:M+1,statics:A,dynamics:U,optionals:P,extract:K,rawParams:L,parsedParams:X};let G=!0;if(S.index.skipOnParamError&&(Ko(n,s,k)||(G=!1)),G){if(A===h&&!U&&!P&&!R)return k;hi(b,k)&&(b=k)}}if(S.wildcard&&hi(p,v))for(const k of S.wildcard){const{prefix:G,suffix:F}=k;if(G&&($||!(k.caseSensitive?Z:J??(J=Z.toLowerCase())).startsWith(G)))continue;if(F){if($)continue;const it=s.slice(_).join("/").slice(-F.length);if((k.caseSensitive?it:it.toLowerCase())!==F)continue}const st={node:k,index:h,skipped:R,depth:M,statics:A,dynamics:U,optionals:P,extract:K,rawParams:L,parsedParams:X};if(!(k.skipOnParamError&&!Ko(n,s,st))){p=st;break}}if(S.optional){const k=R|1<<M,G=M+1;for(let F=S.optional.length-1;F>=0;F--){const st=S.optional[F];g.push({node:st,index:_,skipped:k,depth:G,statics:A,dynamics:U,optionals:P,extract:K,rawParams:L,parsedParams:X})}if(!$)for(let F=S.optional.length-1;F>=0;F--){const st=S.optional[F],{prefix:it,suffix:ct}=st;if(it||ct){const nt=st.caseSensitive?Z:J??(J=Z.toLowerCase());if(it&&!nt.startsWith(it)||ct&&!nt.endsWith(ct))continue}g.push({node:st,index:_+1,skipped:R,depth:G,statics:A,dynamics:U,optionals:P+1,extract:K,rawParams:L,parsedParams:X})}}if(!$&&S.dynamic&&Z)for(let k=S.dynamic.length-1;k>=0;k--){const G=S.dynamic[k],{prefix:F,suffix:st}=G;if(F||st){const it=G.caseSensitive?Z:J??(J=Z.toLowerCase());if(F&&!it.startsWith(F)||st&&!it.endsWith(st))continue}g.push({node:G,index:_+1,skipped:R,depth:M+1,statics:A,dynamics:U+1,optionals:P,extract:K,rawParams:L,parsedParams:X})}if(!$&&S.staticInsensitive){const k=S.staticInsensitive.get(J??(J=Z.toLowerCase()));k&&g.push({node:k,index:_+1,skipped:R,depth:M+1,statics:A+1,dynamics:U,optionals:P,extract:K,rawParams:L,parsedParams:X})}if(!$&&S.static){const k=S.static.get(Z);k&&g.push({node:k,index:_+1,skipped:R,depth:M+1,statics:A+1,dynamics:U,optionals:P,extract:K,rawParams:L,parsedParams:X})}if(S.pathless){const k=M+1;for(let G=S.pathless.length-1;G>=0;G--){const F=S.pathless[G];g.push({node:F,index:_,skipped:R,depth:k,statics:A,dynamics:U,optionals:P,extract:K,rawParams:L,parsedParams:X})}}}if(b&&p)return hi(p,b)?b:p;if(b)return b;if(p)return p;if(r&&y){let v=y.index;for(let _=0;_<y.index;_++)v+=s[_].length;const S=v===n.length?"/":n.slice(v);return y.rawParams??(y.rawParams=Object.create(null)),y.rawParams["**"]=decodeURIComponent(S),y}return null}function Ko(n,s,i){try{const[r,o]=ng(n,s,i);i.rawParams=r,i.extract=o;const f=i.node.parse(r);return i.parsedParams=Object.assign(Object.create(null),i.parsedParams,f),!0}catch{return null}}function hi(n,s){return n?s.statics>n.statics||s.statics===n.statics&&(s.dynamics>n.dynamics||s.dynamics===n.dynamics&&(s.optionals>n.optionals||s.optionals===n.optionals&&((s.node.kind===Kn)>(n.node.kind===Kn)||s.node.kind===Kn==(n.node.kind===Kn)&&s.depth>n.depth))):!0}function ir(n){return Mf(n.filter(s=>s!==void 0).join("/"))}function Mf(n){return n.replace(/\/{2,}/g,"/")}function lg(n){return n==="/"?n:n.replace(/^\/{1,}/,"")}function _n(n){const s=n.length;return s>1&&n[s-1]==="/"?n.replace(/\/{1,}$/,""):n}function sg(n){return _n(lg(n))}function dr(n,s){return n!=null&&n.endsWith("/")&&n!=="/"&&n!==`${s}/`?n.slice(0,-1):n}function xb(n,s,i){return dr(n,i)===dr(s,i)}function bb({base:n,to:s,trailingSlash:i="never",cache:r}){const o=s.startsWith("/"),f=!o&&s===".";let h;if(r){h=o?s:f?n:n+"\0"+s;const v=r.get(h);if(v)return v}let g;if(f)g=n.split("/");else if(o)g=s.split("/");else{for(g=n.split("/");g.length>1&&ji(g)==="";)g.pop();const v=s.split("/");for(let S=0,_=v.length;S<_;S++){const R=v[S];R===""?S?S===_-1&&g.push(R):g=[R]:R===".."?g.pop():R==="."||g.push(R)}}g.length>1&&(ji(g)===""?i==="never"&&g.pop():i==="always"&&g.push(""));let p,y="";for(let v=0;v<g.length;v++){v>0&&(y+="/");const S=g[v];if(!S)continue;p=Tf(S,0,p);const _=p[0];if(_===0){y+=S;continue}const R=p[5],M=S.substring(0,p[1]),A=S.substring(p[4],R),U=S.substring(p[2],p[3]);_===1?y+=M||A?`${M}{$${U}}${A}`:`$${U}`:_===2?y+=M||A?`${M}{$}${A}`:"$":y+=`${M}{-$${U}}${A}`}y=Mf(y);const b=y||"/";return h&&r&&r.set(h,b),b}function Sb(n){const s=new Map(n.map(o=>[encodeURIComponent(o),o])),i=Array.from(s.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(i,"g");return o=>o.replace(r,f=>s.get(f)??f)}function Zo(n,s,i){const r=s[n];return typeof r!="string"?r:n==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(o=>r0(o,i)).join("/"):r0(r,i)}function u0({path:n,params:s,decoder:i,...r}){let o=!1;const f=Object.create(null);if(!n||n==="/")return{interpolatedPath:"/",usedParams:f,isMissingParams:o};if(!n.includes("$"))return{interpolatedPath:n,usedParams:f,isMissingParams:o};const h=n.length;let g=0,p,y="";for(;g<h;){const b=g;p=Tf(n,b,p);const v=p[5];if(g=v+1,b===v)continue;const S=p[0];if(S===0){y+="/"+n.substring(b,v);continue}if(S===2){const _=s._splat;f._splat=_,f["*"]=_;const R=n.substring(b,p[1]),M=n.substring(p[4],v);if(!_){o=!0,(R||M)&&(y+="/"+R+M);continue}const A=Zo("_splat",s,i);y+="/"+R+A+M;continue}if(S===1){const _=n.substring(p[2],p[3]);!o&&!(_ in s)&&(o=!0),f[_]=s[_];const R=n.substring(b,p[1]),M=n.substring(p[4],v),A=Zo(_,s,i)??"undefined";y+="/"+R+A+M;continue}if(S===3){const _=n.substring(p[2],p[3]),R=s[_];if(R==null)continue;f[_]=R;const M=n.substring(b,p[1]),A=n.substring(p[4],v),U=Zo(_,s,i)??"";y+="/"+M+U+A;continue}}return n.endsWith("/")&&(y+="/"),{usedParams:f,interpolatedPath:y||"/",isMissingParams:o}}function r0(n,s){const i=encodeURIComponent(n);return(s==null?void 0:s(i))??i}function ge(n){return!!(n!=null&&n.isNotFound)}function Rb(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}var _b="tsr-scroll-restoration-v1_3";function jb(){const n=Rb();if(!n)return null;let s={};try{const r=JSON.parse(n.getItem("tsr-scroll-restoration-v1_3")||"{}");hs(r)&&(s=r)}catch{}return{get state(){return s},set:r=>{s=xn(r,s)||s},persist:()=>{try{n.setItem(_b,JSON.stringify(s))}catch{}}}}var c0=jb(),Eb=n=>n.state.__TSR_key||n.href;function Tb(n){const s=[];let i;for(;i=n.parentNode;)s.push(`${n.tagName}:nth-child(${Array.prototype.indexOf.call(i.children,n)+1})`),n=i;return`${s.reverse().join(" > ")}`.toLowerCase()}var nr=!1,mi="window",o0="data-scroll-restoration-id";function Nb(n,s){if(!c0)return;const i=c0;if((n.options.scrollRestoration??!1)&&(n.isScrollRestoring=!0),n.isScrollRestorationSetup||!i)return;n.isScrollRestorationSetup=!0,nr=!1;const r=n.options.getScrollRestorationKey||Eb,o=new Map;window.history.scrollRestoration="manual";const f=g=>{if(!(nr||!n.isScrollRestoring))if(g.target===document||g.target===window)o.set(mi,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const p=g.target;o.set(p,{scrollX:p.scrollLeft||0,scrollY:p.scrollTop||0})}},h=g=>{var y;if(!n.isScrollRestoring||!g||o.size===0||!i)return;const p=(y=i.state)[g]||(y[g]={});for(const[b,v]of o){let S;if(b===mi)S=mi;else if(b.isConnected){const _=b.getAttribute(o0);S=_?`[${o0}="${_}"]`:Tb(b)}S&&(p[S]=v)}};document.addEventListener("scroll",f,!0),n.subscribe("onBeforeLoad",g=>{h(g.fromLocation?r(g.fromLocation):void 0),o.clear()}),window.addEventListener("pagehide",()=>{h(r(n.stores.resolvedLocation.state??n.stores.location.state)),i.persist()}),n.subscribe("onRendered",g=>{var v;const p=r(g.toLocation),y=n.options.scrollRestorationBehavior,b=n.options.scrollToTopSelectors;if(o.clear(),!n.resetNextScroll){n.resetNextScroll=!0;return}if(!(typeof n.options.scrollRestoration=="function"&&!n.options.scrollRestoration({location:n.latestLocation}))){nr=!0;try{const S=n.isScrollRestoring?i.state[p]:void 0;let _=!1;if(S)for(const R in S){const M=S[R];if(!hs(M))continue;const{scrollX:A,scrollY:U}=M;if(!(!Number.isFinite(A)||!Number.isFinite(U))){if(R===mi)window.scrollTo({top:U,left:A,behavior:y}),_=!0;else if(R){let P;try{P=document.querySelector(R)}catch{continue}P&&(P.scrollLeft=A,P.scrollTop=U,_=!0)}}}if(!_){const R=n.history.location.hash.slice(1);if(R){const M=((v=window.history.state)==null?void 0:v.__hashScrollIntoViewOptions)??!0;if(M){const A=document.getElementById(R);A&&A.scrollIntoView(M)}}else{const M={top:0,left:0,behavior:y};if(window.scrollTo(M),b)for(const A of b){if(A===mi)continue;const U=typeof A=="function"?A():document.querySelector(A);U&&U.scrollTo(M)}}}}finally{nr=!1}n.isScrollRestoring&&i.set(S=>(S[p]||(S[p]={}),S))}})}function Mb(n,s=String){const i=new URLSearchParams;for(const r in n){const o=n[r];o!==void 0&&i.set(r,s(o))}return i.toString()}function Jo(n){return n?n==="false"?!1:n==="true"?!0:+n*0===0&&+n+""===n?+n:n:""}function Ab(n){const s=new URLSearchParams(n),i=Object.create(null);for(const[r,o]of s.entries()){const f=i[r];f==null?i[r]=Jo(o):Array.isArray(f)?f.push(Jo(o)):i[r]=[f,Jo(o)]}return i}var Cb=zb(JSON.parse),Ob=Db(JSON.stringify,JSON.parse);function zb(n){return s=>{s[0]==="?"&&(s=s.substring(1));const i=Ab(s);for(const r in i){const o=i[r];if(typeof o=="string")try{i[r]=n(o)}catch{}}return i}}function Db(n,s){const i=typeof s=="function";function r(o){if(typeof o=="object"&&o!==null)try{return n(o)}catch{}else if(i&&typeof o=="string")try{return s(o),n(o)}catch{}return o}return o=>{const f=Mb(o,r);return f?`?${f}`:""}}var nl="__root__";function wb(n){if(n.statusCode=n.statusCode||n.code||307,!n._builtLocation&&!n.reloadDocument&&typeof n.href=="string")try{new URL(n.href),n.reloadDocument=!0}catch{}const s=new Headers(n.headers);n.href&&s.get("Location")===null&&s.set("Location",n.href);const i=new Response(null,{status:n.statusCode,headers:s});if(i.options=n,n.throw)throw i;return i}function Ne(n){return n instanceof Response&&!!n.options}function Ub(n){return{input:({url:s})=>{for(const i of n)s=gf(i,s);return s},output:({url:s})=>{for(let i=n.length-1;i>=0;i--)s=ig(n[i],s);return s}}}function Lb(n){const s=sg(n.basepath),i=`/${s}`,r=`${i}/`,o=n.caseSensitive?i:i.toLowerCase(),f=n.caseSensitive?r:r.toLowerCase();return{input:({url:h})=>{const g=n.caseSensitive?h.pathname:h.pathname.toLowerCase();return g===o?h.pathname="/":g.startsWith(f)&&(h.pathname=h.pathname.slice(i.length)),h},output:({url:h})=>(h.pathname=ir(["/",s,h.pathname]),h)}}function gf(n,s){var r;const i=(r=n==null?void 0:n.input)==null?void 0:r.call(n,{url:s});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return s}function ig(n,s){var r;const i=(r=n==null?void 0:n.output)==null?void 0:r.call(n,{url:s});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return s}function Bb(n,s){const{createMutableStore:i,createReadonlyStore:r,batch:o,init:f}=s,h=new Map,g=new Map,p=new Map,y=i(n.status),b=i(n.loadedAt),v=i(n.isLoading),S=i(n.isTransitioning),_=i(n.location),R=i(n.resolvedLocation),M=i(n.statusCode),A=i(n.redirect),U=i([]),P=i([]),K=i([]),L=r(()=>Po(h,U.state)),X=r(()=>Po(g,P.state)),$=r(()=>Po(p,K.state)),Z=r(()=>U.state[0]),J=r(()=>U.state.some(V=>{var tt;return((tt=h.get(V))==null?void 0:tt.state.status)==="pending"})),k=r(()=>{var V;return{locationHref:_.state.href,resolvedLocationHref:(V=R.state)==null?void 0:V.href,status:y.state}}),G=r(()=>({status:y.state,loadedAt:b.state,isLoading:v.state,isTransitioning:S.state,matches:L.state,location:_.state,resolvedLocation:R.state,statusCode:M.state,redirect:A.state})),F=Ti(64);function st(V){let tt=F.get(V);return tt||(tt=r(()=>{const yt=U.state;for(const ot of yt){const E=h.get(ot);if(E&&E.routeId===V)return E.state}}),F.set(V,tt)),tt}const it={status:y,loadedAt:b,isLoading:v,isTransitioning:S,location:_,resolvedLocation:R,statusCode:M,redirect:A,matchesId:U,pendingMatchesId:P,cachedMatchesId:K,activeMatchesSnapshot:L,pendingMatchesSnapshot:X,cachedMatchesSnapshot:$,firstMatchId:Z,hasPendingMatches:J,matchRouteReactivity:k,activeMatchStoresById:h,pendingMatchStoresById:g,cachedMatchStoresById:p,__store:G,getMatchStoreByRouteId:st,setActiveMatches:ct,setPendingMatches:nt,setCachedMatches:D};ct(n.matches),f==null||f(it);function ct(V){ko(V,h,U,i,o)}function nt(V){ko(V,g,P,i,o)}function D(V){ko(V,p,K,i,o)}return it}function Po(n,s){const i=[];for(const r of s){const o=n.get(r);o&&i.push(o.state)}return i}function ko(n,s,i,r,o){const f=n.map(g=>g.id),h=new Set(f);o(()=>{for(const g of s.keys())h.has(g)||s.delete(g);for(const g of n){const p=s.get(g.id);if(!p){const y=r(g);y.routeId=g.routeId,s.set(g.id,y);continue}p.routeId=g.routeId,p.state!==g&&p.setState(()=>g)}rb(i.state,f)||i.setState(()=>f)})}var vf=n=>{var s;if(!n.rendered)return n.rendered=!0,(s=n.onReady)==null?void 0:s.call(n)},Hb=n=>n.stores.matchesId.state.some(s=>{var i;return(i=n.stores.activeMatchStoresById.get(s))==null?void 0:i.state._forcePending}),xr=(n,s)=>!!(n.preload&&!n.router.stores.activeMatchStoresById.has(s)),ll=(n,s,i=!0)=>{const r={...n.router.options.context??{}},o=i?s:s-1;for(let f=0;f<=o;f++){const h=n.matches[f];if(!h)continue;const g=n.router.getMatch(h.id);g&&Object.assign(r,g.__routeContext,g.__beforeLoadContext)}return r},f0=(n,s)=>{if(!n.matches.length)return;const i=s.routeId,r=n.matches.findIndex(h=>h.routeId===n.router.routeTree.id),o=r>=0?r:0;let f=i?n.matches.findIndex(h=>h.routeId===i):n.firstBadMatchIndex??n.matches.length-1;f<0&&(f=o);for(let h=f;h>=0;h--){const g=n.matches[h];if(n.router.looseRoutesById[g.routeId].options.notFoundComponent)return h}return i?f:o},Sn=(n,s,i)=>{var r,o,f;if(!(!Ne(i)&&!ge(i)))throw Ne(i)&&i.redirectHandled&&!i.options.reloadDocument||(s&&((r=s._nonReactive.beforeLoadPromise)==null||r.resolve(),(o=s._nonReactive.loaderPromise)==null||o.resolve(),s._nonReactive.beforeLoadPromise=void 0,s._nonReactive.loaderPromise=void 0,s._nonReactive.error=i,n.updateMatch(s.id,h=>({...h,status:Ne(i)?"redirected":h.status==="pending"?"success":h.status,context:ll(n,s.index),isFetching:!1,error:i})),ge(i)&&!i.routeId&&(i.routeId=s.routeId),(f=s._nonReactive.loadPromise)==null||f.resolve()),Ne(i)&&(n.rendered=!0,i.options._fromLocation=n.location,i.redirectHandled=!0,i=n.router.resolveRedirect(i))),i},ug=(n,s)=>{const i=n.router.getMatch(s);return!!(!i||i._nonReactive.dehydrated)},d0=(n,s,i)=>{const r=ll(n,i);n.updateMatch(s,o=>({...o,context:r}))},yi=(n,s,i,r)=>{var g,p;const{id:o,routeId:f}=n.matches[s],h=n.router.looseRoutesById[f];if(i instanceof Promise)throw i;i.routerCode=r,n.firstBadMatchIndex??(n.firstBadMatchIndex=s),Sn(n,n.router.getMatch(o),i);try{(p=(g=h.options).onError)==null||p.call(g,i)}catch(y){i=y,Sn(n,n.router.getMatch(o),i)}n.updateMatch(o,y=>{var b,v;return(b=y._nonReactive.beforeLoadPromise)==null||b.resolve(),y._nonReactive.beforeLoadPromise=void 0,(v=y._nonReactive.loadPromise)==null||v.resolve(),{...y,error:i,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}}),!n.preload&&!Ne(i)&&!ge(i)&&(n.serialError??(n.serialError=i))},rg=(n,s,i,r)=>{var f;if(r._nonReactive.pendingTimeout!==void 0)return;const o=i.options.pendingMs??n.router.options.defaultPendingMs;if(n.onReady&&!xr(n,s)&&(i.options.loader||i.options.beforeLoad||og(i))&&typeof o=="number"&&o!==1/0&&(i.options.pendingComponent??((f=n.router.options)==null?void 0:f.defaultPendingComponent))){const h=setTimeout(()=>{vf(n)},o);r._nonReactive.pendingTimeout=h}},qb=(n,s,i)=>{const r=n.router.getMatch(s);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;rg(n,s,i,r);const o=()=>{const f=n.router.getMatch(s);f.preload&&(f.status==="redirected"||f.status==="notFound")&&Sn(n,f,f.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(o):o()},Qb=(n,s,i,r)=>{const o=n.router.getMatch(s);let f=o._nonReactive.loadPromise;o._nonReactive.loadPromise=ms(()=>{f==null||f.resolve(),f=void 0});const{paramsError:h,searchError:g}=o;h&&yi(n,i,h,"PARSE_PARAMS"),g&&yi(n,i,g,"VALIDATE_SEARCH"),rg(n,s,r,o);const p=new AbortController;let y=!1;const b=()=>{y||(y=!0,n.updateMatch(s,L=>({...L,isFetching:"beforeLoad",fetchCount:L.fetchCount+1,abortController:p})))},v=()=>{var L;(L=o._nonReactive.beforeLoadPromise)==null||L.resolve(),o._nonReactive.beforeLoadPromise=void 0,n.updateMatch(s,X=>({...X,isFetching:!1}))};if(!r.options.beforeLoad){n.router.batch(()=>{b(),v()});return}o._nonReactive.beforeLoadPromise=ms();const S={...ll(n,i,!1),...o.__routeContext},{search:_,params:R,cause:M}=o,A=xr(n,s),U={search:_,abortController:p,params:R,preload:A,context:S,location:n.location,navigate:L=>n.router.navigate({...L,_fromLocation:n.location}),buildLocation:n.router.buildLocation,cause:A?"preload":M,matches:n.matches,routeId:r.id,...n.router.options.additionalContext},P=L=>{if(L===void 0){n.router.batch(()=>{b(),v()});return}(Ne(L)||ge(L))&&(b(),yi(n,i,L,"BEFORE_LOAD")),n.router.batch(()=>{b(),n.updateMatch(s,X=>({...X,__beforeLoadContext:L})),v()})};let K;try{if(K=r.options.beforeLoad(U),Ei(K))return b(),K.catch(L=>{yi(n,i,L,"BEFORE_LOAD")}).then(P)}catch(L){b(),yi(n,i,L,"BEFORE_LOAD")}P(K)},Yb=(n,s)=>{const{id:i,routeId:r}=n.matches[s],o=n.router.looseRoutesById[r],f=()=>g(),h=()=>Qb(n,i,s,o),g=()=>{if(ug(n,i))return;const p=qb(n,i,o);return Ei(p)?p.then(h):h()};return f()},Gb=(n,s,i)=>{var f,h,g,p,y,b;const r=n.router.getMatch(s);if(!r||!i.options.head&&!i.options.scripts&&!i.options.headers)return;const o={ssr:n.router.options.ssr,matches:n.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([(h=(f=i.options).head)==null?void 0:h.call(f,o),(p=(g=i.options).scripts)==null?void 0:p.call(g,o),(b=(y=i.options).headers)==null?void 0:b.call(y,o)]).then(([v,S,_])=>({meta:v==null?void 0:v.meta,links:v==null?void 0:v.links,headScripts:v==null?void 0:v.scripts,headers:_,scripts:S,styles:v==null?void 0:v.styles}))},cg=(n,s,i,r,o)=>{const f=s[r-1],{params:h,loaderDeps:g,abortController:p,cause:y}=n.router.getMatch(i),b=ll(n,r),v=xr(n,i);return{params:h,deps:g,preload:!!v,parentMatchPromise:f,abortController:p,context:b,location:n.location,navigate:S=>n.router.navigate({...S,_fromLocation:n.location}),cause:v?"preload":y,route:o,...n.router.options.additionalContext}},h0=async(n,s,i,r,o)=>{var f,h,g,p,y;try{const b=n.router.getMatch(i);try{(!(eg??n.router.isServer)||b.ssr===!0)&&Ni(o);const v=o.options.loader,S=typeof v=="function"?v:v==null?void 0:v.handler,_=S==null?void 0:S(cg(n,s,i,r,o)),R=!!S&&Ei(_);if((R||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||b._nonReactive.minPendingPromise)&&n.updateMatch(i,A=>({...A,isFetching:"loader"})),S){const A=R?await _:_;Sn(n,n.router.getMatch(i),A),A!==void 0&&n.updateMatch(i,U=>({...U,loaderData:A}))}o._lazyPromise&&await o._lazyPromise;const M=b._nonReactive.minPendingPromise;M&&await M,o._componentsPromise&&await o._componentsPromise,n.updateMatch(i,A=>({...A,error:void 0,context:ll(n,r),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(v){let S=v;if((S==null?void 0:S.name)==="AbortError"){if(b.abortController.signal.aborted){(f=b._nonReactive.loaderPromise)==null||f.resolve(),b._nonReactive.loaderPromise=void 0;return}n.updateMatch(i,R=>({...R,status:R.status==="pending"?"success":R.status,isFetching:!1,context:ll(n,r)}));return}const _=b._nonReactive.minPendingPromise;_&&await _,ge(v)&&await((g=(h=o.options.notFoundComponent)==null?void 0:h.preload)==null?void 0:g.call(h)),Sn(n,n.router.getMatch(i),v);try{(y=(p=o.options).onError)==null||y.call(p,v)}catch(R){S=R,Sn(n,n.router.getMatch(i),R)}!Ne(S)&&!ge(S)&&await Ni(o,["errorComponent"]),n.updateMatch(i,R=>({...R,error:S,context:ll(n,r),status:"error",isFetching:!1}))}}catch(b){const v=n.router.getMatch(i);v&&(v._nonReactive.loaderPromise=void 0),Sn(n,v,b)}},Vb=async(n,s,i)=>{var _,R,M,A;async function r(U,P,K,L,X){const $=Date.now()-P.updatedAt,Z=U?X.options.preloadStaleTime??n.router.options.defaultPreloadStaleTime??3e4:X.options.staleTime??n.router.options.defaultStaleTime??0,J=X.options.shouldReload,k=typeof J=="function"?J(cg(n,s,o,i,X)):J,{status:G,invalid:F}=L,st=$>=Z&&(!!n.forceStaleReload||L.cause==="enter"||K!==void 0&&K!==L.id);h=G==="success"&&(F||(k??st)),U&&X.options.preload===!1||(h&&!n.sync&&b?(g=!0,(async()=>{var it,ct;try{await h0(n,s,o,i,X);const nt=n.router.getMatch(o);(it=nt._nonReactive.loaderPromise)==null||it.resolve(),(ct=nt._nonReactive.loadPromise)==null||ct.resolve(),nt._nonReactive.loaderPromise=void 0,nt._nonReactive.loadPromise=void 0}catch(nt){Ne(nt)&&await n.router.navigate(nt.options)}})()):G!=="success"||h?await h0(n,s,o,i,X):d0(n,o,i))}const{id:o,routeId:f}=n.matches[i];let h=!1,g=!1;const p=n.router.looseRoutesById[f],y=p.options.loader,b=((typeof y=="function"||y==null?void 0:y.staleReloadMode)??n.router.options.defaultStaleReloadMode)!=="blocking";if(ug(n,o)){if(!n.router.getMatch(o))return n.matches[i];d0(n,o,i)}else{const U=n.router.getMatch(o),P=n.router.stores.matchesId.state[i],K=((_=P&&n.router.stores.activeMatchStoresById.get(P)||null)==null?void 0:_.routeId)===f?P:(R=n.router.stores.activeMatchesSnapshot.state.find(X=>X.routeId===f))==null?void 0:R.id,L=xr(n,o);if(U._nonReactive.loaderPromise){if(U.status==="success"&&!n.sync&&!U.preload&&b)return U;await U._nonReactive.loaderPromise;const X=n.router.getMatch(o),$=X._nonReactive.error||X.error;$&&Sn(n,X,$),X.status==="pending"&&await r(L,U,K,X,p)}else{const X=L&&!n.router.stores.activeMatchStoresById.has(o),$=n.router.getMatch(o);$._nonReactive.loaderPromise=ms(),X!==$.preload&&n.updateMatch(o,Z=>({...Z,preload:X})),await r(L,U,K,$,p)}}const v=n.router.getMatch(o);g||((M=v._nonReactive.loaderPromise)==null||M.resolve(),(A=v._nonReactive.loadPromise)==null||A.resolve(),v._nonReactive.loadPromise=void 0),clearTimeout(v._nonReactive.pendingTimeout),v._nonReactive.pendingTimeout=void 0,g||(v._nonReactive.loaderPromise=void 0),v._nonReactive.dehydrated=void 0;const S=g?v.isFetching:!1;return S!==v.isFetching||v.invalid!==!1?(n.updateMatch(o,U=>({...U,isFetching:S,invalid:!1})),n.router.getMatch(o)):v};async function m0(n){var S,_;const s=n,i=[];Hb(s.router)&&vf(s);let r;for(let R=0;R<s.matches.length;R++){try{const M=Yb(s,R);Ei(M)&&await M}catch(M){if(Ne(M))throw M;if(ge(M))r=M;else if(!s.preload)throw M;break}if(s.serialError)break}const o=s.firstBadMatchIndex??s.matches.length,f=r&&!s.preload?f0(s,r):void 0,h=r&&s.preload?0:f!==void 0?Math.min(f+1,o):o;let g,p;for(let R=0;R<h;R++)i.push(Vb(s,i,R));try{await Promise.all(i)}catch{const R=await Promise.allSettled(i);for(const M of R){if(M.status!=="rejected")continue;const A=M.reason;if(Ne(A))throw A;ge(A)?g??(g=A):p??(p=A)}if(p!==void 0)throw p}const y=g??(r&&!s.preload?r:void 0);let b=s.serialError?s.firstBadMatchIndex??0:s.matches.length-1;if(!y&&r&&s.preload)return s.matches;if(y){const R=f0(s,y);R===void 0&&wa();const M=s.matches[R],A=s.router.looseRoutesById[M.routeId],U=(S=s.router.options)==null?void 0:S.defaultNotFoundComponent;!A.options.notFoundComponent&&U&&(A.options.notFoundComponent=U),y.routeId=M.routeId;const P=M.routeId===s.router.routeTree.id;s.updateMatch(M.id,K=>({...K,...P?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:y},isFetching:!1})),b=R,await Ni(A,["notFoundComponent"])}else if(!s.preload){const R=s.matches[0];R.globalNotFound||(_=s.router.getMatch(R.id))!=null&&_.globalNotFound&&s.updateMatch(R.id,M=>({...M,globalNotFound:!1,error:void 0}))}if(s.serialError&&s.firstBadMatchIndex!==void 0){const R=s.router.looseRoutesById[s.matches[s.firstBadMatchIndex].routeId];await Ni(R,["errorComponent"])}for(let R=0;R<=b;R++){const{id:M,routeId:A}=s.matches[R],U=s.router.looseRoutesById[A];try{const P=Gb(s,M,U);if(P){const K=await P;s.updateMatch(M,L=>({...L,...K}))}}catch(P){console.error(`Error executing head for route ${A}:`,P)}}const v=vf(s);if(Ei(v)&&await v,y)throw y;if(s.serialError&&!s.preload&&!s.onReady)throw s.serialError;return s.matches}function y0(n,s){const i=s.map(r=>{var o,f;return(f=(o=n.options[r])==null?void 0:o.preload)==null?void 0:f.call(o)}).filter(Boolean);if(i.length!==0)return Promise.all(i)}function Ni(n,s=ur){!n._lazyLoaded&&n._lazyPromise===void 0&&(n.lazyFn?n._lazyPromise=n.lazyFn().then(r=>{const{id:o,...f}=r.options;Object.assign(n.options,f),n._lazyLoaded=!0,n._lazyPromise=void 0}):n._lazyLoaded=!0);const i=()=>n._componentsLoaded?void 0:s===ur?(()=>{if(n._componentsPromise===void 0){const r=y0(n,ur);r?n._componentsPromise=r.then(()=>{n._componentsLoaded=!0,n._componentsPromise=void 0}):n._componentsLoaded=!0}return n._componentsPromise})():y0(n,s);return n._lazyPromise?n._lazyPromise.then(i):i()}function og(n){var s;for(const i of ur)if((s=n.options[i])!=null&&s.preload)return!0;return!1}var ur=["component","errorComponent","pendingComponent","notFoundComponent"],jn="__TSR_index",g0="popstate",v0="beforeunload";function Xb(n){let s=n.getLocation();const i=new Set,r=h=>{s=n.getLocation(),i.forEach(g=>g({location:s,action:h}))},o=h=>{n.notifyOnIndexChange??!0?r(h):s=n.getLocation()},f=async({task:h,navigateOpts:g,...p})=>{var v,S;if((g==null?void 0:g.ignoreBlocker)??!1){h();return}const y=((v=n.getBlockers)==null?void 0:v.call(n))??[],b=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&y.length&&b)for(const _ of y){const R=hr(p.path,p.state);if(await _.blockerFn({currentLocation:s,nextLocation:R,action:p.type})){(S=n.onBlocked)==null||S.call(n);return}}h()};return{get location(){return s},get length(){return n.getLength()},subscribers:i,subscribe:h=>(i.add(h),()=>{i.delete(h)}),push:(h,g,p)=>{const y=s.state[jn];g=p0(y+1,g),f({task:()=>{n.pushState(h,g),r({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:h,state:g})},replace:(h,g,p)=>{const y=s.state[jn];g=p0(y,g),f({task:()=>{n.replaceState(h,g),r({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:h,state:g})},go:(h,g)=>{f({task:()=>{n.go(h),o({type:"GO",index:h})},navigateOpts:g,type:"GO"})},back:h=>{f({task:()=>{n.back((h==null?void 0:h.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:h,type:"BACK"})},forward:h=>{f({task:()=>{n.forward((h==null?void 0:h.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:h,type:"FORWARD"})},canGoBack:()=>s.state[jn]!==0,createHref:h=>n.createHref(h),block:h=>{var p;if(!n.setBlockers)return()=>{};const g=((p=n.getBlockers)==null?void 0:p.call(n))??[];return n.setBlockers([...g,h]),()=>{var b,v;const y=((b=n.getBlockers)==null?void 0:b.call(n))??[];(v=n.setBlockers)==null||v.call(n,y.filter(S=>S!==h))}},flush:()=>{var h;return(h=n.flush)==null?void 0:h.call(n)},destroy:()=>{var h;return(h=n.destroy)==null?void 0:h.call(n)},notify:r}}function p0(n,s){s||(s={});const i=Af();return{...s,key:i,__TSR_key:i,[jn]:n}}function Kb(n){var J,k;const s=typeof document<"u"?window:void 0,i=s.history.pushState,r=s.history.replaceState;let o=[];const f=()=>o,h=G=>o=G,g=(G=>G),p=(()=>hr(`${s.location.pathname}${s.location.search}${s.location.hash}`,s.history.state));if(!((J=s.history.state)!=null&&J.__TSR_key)&&!((k=s.history.state)!=null&&k.key)){const G=Af();s.history.replaceState({[jn]:0,key:G,__TSR_key:G},"")}let y=p(),b,v=!1,S=!1,_=!1,R=!1;const M=()=>y;let A,U;const P=()=>{A&&(Z._ignoreSubscribers=!0,(A.isPush?s.history.pushState:s.history.replaceState)(A.state,"",A.href),Z._ignoreSubscribers=!1,A=void 0,U=void 0,b=void 0)},K=(G,F,st)=>{const it=g(F);U||(b=y),y=hr(F,st),A={href:it,state:st,isPush:(A==null?void 0:A.isPush)||G==="push"},U||(U=Promise.resolve().then(()=>P()))},L=G=>{y=p(),Z.notify({type:G})},X=async()=>{if(S){S=!1;return}const G=p(),F=G.state[jn]-y.state[jn],st=F===1,it=F===-1,ct=!st&&!it||v;v=!1;const nt=ct?"GO":it?"BACK":"FORWARD",D=ct?{type:"GO",index:F}:{type:it?"BACK":"FORWARD"};if(_)_=!1;else{const V=f();if(typeof document<"u"&&V.length){for(const tt of V)if(await tt.blockerFn({currentLocation:y,nextLocation:G,action:nt})){S=!0,s.history.go(1),Z.notify(D);return}}}y=p(),Z.notify(D)},$=G=>{if(R){R=!1;return}let F=!1;const st=f();if(typeof document<"u"&&st.length)for(const it of st){const ct=it.enableBeforeUnload??!0;if(ct===!0){F=!0;break}if(typeof ct=="function"&&ct()===!0){F=!0;break}}if(F)return G.preventDefault(),G.returnValue=""},Z=Xb({getLocation:M,getLength:()=>s.history.length,pushState:(G,F)=>K("push",G,F),replaceState:(G,F)=>K("replace",G,F),back:G=>(G&&(_=!0),R=!0,s.history.back()),forward:G=>{G&&(_=!0),R=!0,s.history.forward()},go:G=>{v=!0,s.history.go(G)},createHref:G=>g(G),flush:P,destroy:()=>{s.history.pushState=i,s.history.replaceState=r,s.removeEventListener(v0,$,{capture:!0}),s.removeEventListener(g0,X)},onBlocked:()=>{b&&y!==b&&(y=b)},getBlockers:f,setBlockers:h,notifyOnIndexChange:!1});return s.addEventListener(v0,$,{capture:!0}),s.addEventListener(g0,X),s.history.pushState=function(...G){const F=i.apply(s.history,G);return Z._ignoreSubscribers||L("PUSH"),F},s.history.replaceState=function(...G){const F=r.apply(s.history,G);return Z._ignoreSubscribers||L("REPLACE"),F},Z}function Zb(n){let s=n.replace(/[\x00-\x1f\x7f]/g,"");return s.startsWith("//")&&(s="/"+s.replace(/^\/+/,"")),s}function hr(n,s){const i=Zb(n),r=i.indexOf("#"),o=i.indexOf("?"),f=Af();return{href:i,pathname:i.substring(0,r>0?o>0?Math.min(r,o):r:o>0?o:i.length),hash:r>-1?i.substring(r):"",search:o>-1?i.slice(o,r===-1?void 0:r):"",state:s||{[jn]:0,key:f,__TSR_key:f}}}function Af(){return(Math.random()+1).toString(36).substring(7)}function ts(n,s){const i=s,r=n;return{fromLocation:i,toLocation:r,pathChanged:(i==null?void 0:i.pathname)!==r.pathname,hrefChanged:(i==null?void 0:i.href)!==r.href,hashChanged:(i==null?void 0:i.hash)!==r.hash}}var Jb=class{constructor(n,s){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=i=>i(),this.update=i=>{var b;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,...i},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Sb(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Kb()),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 v;this.resolvePathCache=Ti(1e3),v=this.buildRouteTree(),this.setRoutes(v)}if(!this.stores&&this.latestLocation){const v=this.getStoreConfig(this);this.batch=v.batch,this.stores=Bb(kb(this.latestLocation),v),Nb(this)}let g=!1;const p=this.options.basepath??"/",y=this.options.rewrite;if(f||o!==p||h!==y){this.basepath=p;const v=[],S=sg(p);S&&S!=="/"&&v.push(Lb({basepath:p})),y&&v.push(y),this.rewrite=v.length===0?void 0:v.length===1?v[0]:Ub(v),this.history&&this.updateLatestLocation(),g=!0}g&&this.stores&&this.stores.location.setState(()=>this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof((b=window.CSS)==null?void 0:b.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const i=yb(this.routeTree,this.options.caseSensitive,(r,o)=>{r.init({originalIndex:o})});return this.options.routeMasks&&ob(this.options.routeMasks,i.processedTree),i},this.subscribe=(i,r)=>{const o={eventType:i,fn:r};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=i=>{this.subscribers.forEach(r=>{r.eventType===i.type&&r.fn(i)})},this.parseLocation=(i,r)=>{const o=({pathname:p,search:y,hash:b,href:v,state:S})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const U=this.options.parseSearch(y),P=this.options.stringifySearch(U);return{href:p+P+b,publicHref:v,pathname:di(p).path,external:!1,searchStr:P,search:Vn(r==null?void 0:r.search,U),hash:di(b.slice(1)).path,state:bn(r==null?void 0:r.state,S)}}const _=new URL(v,this.origin),R=gf(this.rewrite,_),M=this.options.parseSearch(R.search),A=this.options.stringifySearch(M);return R.search=A,{href:R.href.replace(R.origin,""),publicHref:v,pathname:di(R.pathname).path,external:!!this.rewrite&&R.origin!==this.origin,searchStr:A,search:Vn(r==null?void 0:r.search,M),hash:di(R.hash.slice(1)).path,state:bn(r==null?void 0:r.state,S)}},f=o(i),{__tempLocation:h,__tempKey:g}=f.state;if(h&&(!g||g===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=(i,r)=>bb({base:i,to:Mf(r),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(i,r,o)=>typeof i=="string"?this.matchRoutesInternal({pathname:i,search:r},o):this.matchRoutesInternal(i,r),this.getMatchedRoutes=i=>Fb({pathname:i,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=i=>{const r=this.getMatch(i);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingMatchesId.state.forEach(i=>{this.cancelMatch(i)}),this.stores.matchesId.state.forEach(i=>{var o;if(this.stores.pendingMatchStoresById.has(i))return;const r=(o=this.stores.activeMatchStoresById.get(i))==null?void 0:o.state;r&&(r.status==="pending"||r.isFetching==="loader")&&this.cancelMatch(i)})},this.buildLocation=i=>{const r=(f={})=>{var G,F;const h=f._fromLocation||this.pendingBuiltLocation||this.latestLocation,g=this.matchRoutesLightweight(h);f.from;const p=f.unsafeRelative==="path"?h.pathname:f.from??g.fullPath,y=this.resolvePathWithBase(p,"."),b=g.search,v=Object.assign(Object.create(null),g.params),S=f.to?this.resolvePathWithBase(y,`${f.to}`):this.resolvePathWithBase(y,"."),_=f.params===!1||f.params===null?Object.create(null):(f.params??!0)===!0?v:Object.assign(v,xn(f.params,v)),R=this.getMatchedRoutes(S);let M=R.matchedRoutes;if((!R.foundRoute||R.foundRoute.path!=="/"&&R.routeParams["**"])&&this.options.notFoundRoute&&(M=[...M,this.options.notFoundRoute]),Object.keys(_).length>0)for(const st of M){const it=((G=st.options.params)==null?void 0:G.stringify)??st.options.stringifyParams;if(it)try{Object.assign(_,it(_))}catch{}}const A=i.leaveParams?S:di(u0({path:S,params:_,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let U=b;if(i._includeValidateSearch&&((F=this.options.search)!=null&&F.strict)){const st={};M.forEach(it=>{if(it.options.validateSearch)try{Object.assign(st,rr(it.options.validateSearch,{...st,...U}))}catch{}}),U=st}U=$b({search:U,dest:f,destRoutes:M,_includeValidateSearch:i._includeValidateSearch}),U=Vn(b,U);const P=this.options.stringifySearch(U),K=f.hash===!0?h.hash:f.hash?xn(f.hash,h.hash):void 0,L=K?`#${K}`:"";let X=f.state===!0?h.state:f.state?xn(f.state,h.state):{};X=bn(h.state,X);const $=`${A}${P}${L}`;let Z,J,k=!1;if(this.rewrite){const st=new URL($,this.origin),it=ig(this.rewrite,st);Z=st.href.replace(st.origin,""),it.origin!==this.origin?(J=it.href,k=!0):J=it.pathname+it.search+it.hash}else Z=ub($),J=Z;return{publicHref:J,href:Z,pathname:A,search:U,searchStr:P,state:X,hash:K??"",external:k,unmaskOnReload:f.unmaskOnReload}},o=(f={},h)=>{const g=r(f);let p=h?r(h):void 0;if(!p){const y=Object.create(null);if(this.options.routeMasks){const b=fb(g.pathname,this.processedTree);if(b){Object.assign(y,b.rawParams);const{from:v,params:S,..._}=b.route,R=S===!1||S===null?Object.create(null):(S??!0)===!0?y:Object.assign(y,xn(S,y));h={from:i.from,..._,params:R},p=r(h)}}}return p&&(g.maskedLocation=p),g};return i.mask?o(i,{from:i.from,...i.mask}):o(i)},this.commitLocation=async({viewTransition:i,ignoreBlocker:r,...o})=>{const f=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(b=>{o.state[b]=this.latestLocation.state[b]});const y=al(o.state,this.latestLocation.state);return p.forEach(b=>{delete o.state[b]}),y},h=_n(this.latestLocation.href)===_n(o.href);let g=this.commitLocationPromise;if(this.commitLocationPromise=ms(()=>{g==null||g.resolve(),g=void 0}),h&&f())this.load();else{let{maskedLocation:p,hashScrollIntoView:y,...b}=o;p&&(b={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...b,search:b.searchStr,state:{...b.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(b.unmaskOnReload??this.options.unmaskOnReload??!1)&&(b.state.__tempKey=this.tempLocationKey)),b.state.__hashScrollIntoViewOptions=y??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=i,this.history[o.replace?"replace":"push"](b.publicHref,b.state,{ignoreBlocker:r})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:i,resetScroll:r,hashScrollIntoView:o,viewTransition:f,ignoreBlocker:h,href:g,...p}={})=>{if(g){const v=this.history.location.state.__TSR_index,S=hr(g,{__TSR_index:i?v:v+1}),_=new URL(S.pathname,this.origin);p.to=gf(this.rewrite,_).pathname,p.search=this.options.parseSearch(S.search),p.hash=S.hash.slice(1)}const y=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=y;const b=this.commitLocation({...y,viewTransition:f,replace:i,resetScroll:r,hashScrollIntoView:o,ignoreBlocker:h});return Promise.resolve().then(()=>{this.pendingBuiltLocation===y&&(this.pendingBuiltLocation=void 0)}),b},this.navigate=async({to:i,reloadDocument:r,href:o,publicHref:f,...h})=>{var p,y;let g=!1;if(o)try{new URL(`${o}`),g=!0}catch{}if(g&&!r&&(r=!0),r){if(i!==void 0||!o){const v=this.buildLocation({to:i,...h});o=o??v.publicHref,f=f??v.publicHref}const b=!g&&f?f:o;if(fr(b,this.protocolAllowlist))return Promise.resolve();if(!h.ignoreBlocker){const v=((y=(p=this.history).getBlockers)==null?void 0:y.call(p))??[];for(const S of v)if(S!=null&&S.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return h.replace?window.location.replace(b):window.location.href=b,Promise.resolve()}return this.buildAndCommitLocation({...h,href:o,to:i,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const i=this.matchRoutes(this.latestLocation),r=this.stores.cachedMatchesSnapshot.state.filter(o=>!i.some(f=>f.id===o.id));this.batch(()=>{this.stores.status.setState(()=>"pending"),this.stores.statusCode.setState(()=>200),this.stores.isLoading.setState(()=>!0),this.stores.location.setState(()=>this.latestLocation),this.stores.setPendingMatches(i),this.stores.setCachedMatches(r)})},this.load=async i=>{let r,o,f;const h=this.stores.resolvedLocation.state??this.stores.location.state;for(f=new Promise(p=>{this.startTransition(async()=>{var y;try{this.beforeLoad();const b=this.latestLocation,v=this.stores.resolvedLocation.state,S=ts(b,v);this.stores.redirect.state||this.emit({type:"onBeforeNavigate",...S}),this.emit({type:"onBeforeLoad",...S}),await m0({router:this,sync:i==null?void 0:i.sync,forceStaleReload:h.href===b.href,matches:this.stores.pendingMatchesSnapshot.state,location:b,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{var U,P;let _=null,R=null,M=null,A=null;this.batch(()=>{const K=this.stores.pendingMatchesSnapshot.state,L=K.length,X=this.stores.activeMatchesSnapshot.state;_=L?X.filter(J=>!this.stores.pendingMatchStoresById.has(J.id)):null;const $=new Set;for(const J of this.stores.pendingMatchStoresById.values())J.routeId&&$.add(J.routeId);const Z=new Set;for(const J of this.stores.activeMatchStoresById.values())J.routeId&&Z.add(J.routeId);R=L?X.filter(J=>!$.has(J.routeId)):null,M=L?K.filter(J=>!Z.has(J.routeId)):null,A=L?K.filter(J=>Z.has(J.routeId)):X,this.stores.isLoading.setState(()=>!1),this.stores.loadedAt.setState(()=>Date.now()),L&&(this.stores.setActiveMatches(K),this.stores.setPendingMatches([]),this.stores.setCachedMatches([...this.stores.cachedMatchesSnapshot.state,..._.filter(J=>J.status!=="error"&&J.status!=="notFound"&&J.status!=="redirected")]),this.clearExpiredCache())});for(const[K,L]of[[R,"onLeave"],[M,"onEnter"],[A,"onStay"]])if(K)for(const X of K)(P=(U=this.looseRoutesById[X.routeId].options)[L])==null||P.call(U,X)})})}})}catch(b){Ne(b)?(r=b,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):ge(b)&&(o=b);const v=r?r.status:o?404:this.stores.activeMatchesSnapshot.state.some(S=>S.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.setState(()=>v),this.stores.redirect.setState(()=>r)})}this.latestLoadPromise===f&&((y=this.commitLocationPromise)==null||y.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),p()})}),this.latestLoadPromise=f,await f;this.latestLoadPromise&&f!==this.latestLoadPromise;)await this.latestLoadPromise;let g;this.hasNotFoundMatch()?g=404:this.stores.activeMatchesSnapshot.state.some(p=>p.status==="error")&&(g=500),g!==void 0&&this.stores.statusCode.setState(()=>g)},this.startViewTransition=i=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const f=this.latestLocation,h=this.stores.resolvedLocation.state,g=typeof r.types=="function"?r.types(ts(f,h)):r.types;if(g===!1){i();return}o={update:i,types:g}}else o=i;document.startViewTransition(o)}else i()},this.updateMatch=(i,r)=>{this.startTransition(()=>{const o=this.stores.pendingMatchStoresById.get(i);if(o){o.setState(r);return}const f=this.stores.activeMatchStoresById.get(i);if(f){f.setState(r);return}const h=this.stores.cachedMatchStoresById.get(i);if(h){const g=r(h.state);g.status==="redirected"?this.stores.cachedMatchStoresById.delete(i)&&this.stores.cachedMatchesId.setState(p=>p.filter(y=>y!==i)):h.setState(()=>g)}})},this.getMatch=i=>{var r,o,f;return((r=this.stores.cachedMatchStoresById.get(i))==null?void 0:r.state)??((o=this.stores.pendingMatchStoresById.get(i))==null?void 0:o.state)??((f=this.stores.activeMatchStoresById.get(i))==null?void 0:f.state)},this.invalidate=i=>{const r=o=>{var f;return((f=i==null?void 0:i.filter)==null?void 0:f.call(i,o))??!0?{...o,invalid:!0,...i!=null&&i.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o};return this.batch(()=>{this.stores.setActiveMatches(this.stores.activeMatchesSnapshot.state.map(r)),this.stores.setCachedMatches(this.stores.cachedMatchesSnapshot.state.map(r)),this.stores.setPendingMatches(this.stores.pendingMatchesSnapshot.state.map(r))}),this.shouldViewTransition=!1,this.load({sync:i==null?void 0:i.sync})},this.getParsedLocationHref=i=>i.publicHref||"/",this.resolveRedirect=i=>{const r=i.headers.get("Location");if(!i.options.href||i.options._builtLocation){const o=i.options._builtLocation??this.buildLocation(i.options),f=this.getParsedLocationHref(o);i.options.href=f,i.headers.set("Location",f)}else if(r)try{const o=new URL(r);if(this.origin&&o.origin===this.origin){const f=o.pathname+o.search+o.hash;i.options.href=f,i.headers.set("Location",f)}}catch{}if(i.options.href&&!i.options._builtLocation&&fr(i.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return i.headers.get("Location")||i.headers.set("Location",i.options.href),i},this.clearCache=i=>{const r=i==null?void 0:i.filter;r!==void 0?this.stores.setCachedMatches(this.stores.cachedMatchesSnapshot.state.filter(o=>!r(o))):this.stores.setCachedMatches([])},this.clearExpiredCache=()=>{const i=Date.now(),r=o=>{const f=this.looseRoutesById[o.routeId];if(!f.options.loader)return!0;const h=(o.preload?f.options.preloadGcTime??this.options.defaultPreloadGcTime:f.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:i-o.updatedAt>=h};this.clearCache({filter:r})},this.loadRouteChunk=Ni,this.preloadRoute=async i=>{const r=i._builtLocation??this.buildLocation(i);let o=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:i});const f=new Set([...this.stores.matchesId.state,...this.stores.pendingMatchesId.state]),h=new Set([...f,...this.stores.cachedMatchesId.state]),g=o.filter(p=>!h.has(p.id));if(g.length){const p=this.stores.cachedMatchesSnapshot.state;this.stores.setCachedMatches([...p,...g])}try{return o=await m0({router:this,matches:o,location:r,preload:!0,updateMatch:(p,y)=>{f.has(p)?o=o.map(b=>b.id===p?y(b):b):this.updateMatch(p,y)}}),o}catch(p){if(Ne(p))return p.options.reloadDocument?void 0:await this.preloadRoute({...p.options,_fromLocation:r});ge(p)||console.error(p);return}},this.matchRoute=(i,r)=>{const o={...i,to:i.to?this.resolvePathWithBase(i.from||"",i.to):void 0,params:i.params||{},leaveParams:!0},f=this.buildLocation(o);if(r!=null&&r.pending&&this.stores.status.state!=="pending")return!1;const h=((r==null?void 0:r.pending)===void 0?!this.stores.isLoading.state:r.pending)?this.latestLocation:this.stores.resolvedLocation.state||this.stores.location.state,g=db(f.pathname,(r==null?void 0:r.caseSensitive)??!1,(r==null?void 0:r.fuzzy)??!1,h.pathname,this.processedTree);return!g||i.params&&!al(g.rawParams,i.params,{partial:!0})?!1:(r==null?void 0:r.includeSearch)??!0?al(h.search,f.search,{partial:!0})?g.rawParams:!1:g.rawParams},this.hasNotFoundMatch=()=>this.stores.activeMatchesSnapshot.state.some(i=>i.status==="notFound"||i.globalNotFound),this.getStoreConfig=s,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...n,caseSensitive:n.caseSensitive??!1,notFoundMode:n.notFoundMode??"fuzzy",stringifySearch:n.stringifySearch??Ob,parseSearch:n.parseSearch??Cb,protocolAllowlist:n.protocolAllowlist??ib}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.state}setRoutes({routesById:n,routesByPath:s,processedTree:i}){this.routesById=n,this.routesByPath=s,this.processedTree=i;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}get looseRoutesById(){return this.routesById}getParentContext(n){return n!=null&&n.id?n.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(n,s){var v,S;const i=this.getMatchedRoutes(n.pathname),{foundRoute:r,routeParams:o,parsedParams:f}=i;let{matchedRoutes:h}=i,g=!1;(r?r.path!=="/"&&o["**"]:_n(n.pathname))&&(this.options.notFoundRoute?h=[...h,this.options.notFoundRoute]:g=!0);const p=g?Wb(this.options.notFoundMode,h):void 0,y=new Array(h.length),b=new Map;for(const _ of this.stores.activeMatchStoresById.values())_.routeId&&b.set(_.routeId,_.state);for(let _=0;_<h.length;_++){const R=h[_],M=y[_-1];let A,U,P;{const nt=(M==null?void 0:M.search)??n.search,D=(M==null?void 0:M._strictSearch)??void 0;try{const V=rr(R.options.validateSearch,{...nt})??void 0;A={...nt,...V},U={...D,...V},P=void 0}catch(V){let tt=V;if(V instanceof mr||(tt=new mr(V.message,{cause:V})),s!=null&&s.throwOnError)throw tt;A=nt,U={},P=tt}}const K=((S=(v=R.options).loaderDeps)==null?void 0:S.call(v,{search:A}))??"",L=K?JSON.stringify(K):"",{interpolatedPath:X,usedParams:$}=u0({path:R.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),Z=R.id+X+L,J=this.getMatch(Z),k=b.get(R.id),G=(J==null?void 0:J._strictParams)??$;let F;if(!J)try{x0(R,$,f,G)}catch(nt){if(ge(nt)||Ne(nt)?F=nt:F=new Pb(nt.message,{cause:nt}),s!=null&&s.throwOnError)throw F}Object.assign(o,G);const st=k?"stay":"enter";let it;if(J)it={...J,cause:st,params:(k==null?void 0:k.params)??o,_strictParams:G,search:Vn(k?k.search:J.search,A),_strictSearch:U};else{const nt=R.options.loader||R.options.beforeLoad||R.lazyFn||og(R)?"pending":"success";it={id:Z,ssr:R.options.ssr,index:_,routeId:R.id,params:(k==null?void 0:k.params)??o,_strictParams:G,pathname:X,updatedAt:Date.now(),search:k?Vn(k.search,A):A,_strictSearch:U,searchError:void 0,status:nt,isFetching:!1,error:void 0,paramsError:F,__routeContext:void 0,_nonReactive:{loadPromise:ms()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:st,loaderDeps:k?bn(k.loaderDeps,K):K,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:R.options.staticData||{},fullPath:R.fullPath}}s!=null&&s.preload||(it.globalNotFound=p===R.id),it.searchError=P;const ct=this.getParentContext(M);it.context={...ct,...it.__routeContext,...it.__beforeLoadContext},y[_]=it}for(let _=0;_<y.length;_++){const R=y[_],M=this.looseRoutesById[R.routeId],A=this.getMatch(R.id),U=b.get(R.routeId);if(R.params=U?Vn(U.params,o):o,!A){const P=y[_-1],K=this.getParentContext(P);if(M.options.context){const L={deps:R.loaderDeps,params:R.params,context:K??{},location:n,navigate:X=>this.navigate({...X,_fromLocation:n}),buildLocation:this.buildLocation,cause:R.cause,abortController:R.abortController,preload:!!R.preload,matches:y,routeId:M.id};R.__routeContext=M.options.context(L)??void 0}R.context={...K,...R.__routeContext,...R.__beforeLoadContext}}}return y}matchRoutesLightweight(n){var b;const{matchedRoutes:s,routeParams:i,parsedParams:r}=this.getMatchedRoutes(n.pathname),o=ji(s),f={...n.search};for(const v of s)try{Object.assign(f,rr(v.options.validateSearch,f))}catch{}const h=ji(this.stores.matchesId.state),g=h&&((b=this.stores.activeMatchStoresById.get(h))==null?void 0:b.state),p=g&&g.routeId===o.id&&g.pathname===n.pathname;let y;if(p)y=g.params;else{const v=Object.assign(Object.create(null),i);for(const S of s)try{x0(S,i,r??{},v)}catch{}y=v}return{matchedRoutes:s,fullPath:o.fullPath,search:f,params:y}}},mr=class extends Error{},Pb=class extends Error{};function kb(n){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:n,matches:[],statusCode:200}}function rr(n,s){if(n==null)return{};if("~standard"in n){const i=n["~standard"].validate(s);if(i instanceof Promise)throw new mr("Async validation not supported");if(i.issues)throw new mr(JSON.stringify(i.issues,void 0,2),{cause:i});return i.value}return"parse"in n?n.parse(s):typeof n=="function"?n(s):{}}function Fb({pathname:n,routesById:s,processedTree:i}){const r=Object.create(null),o=_n(n);let f,h;const g=hb(o,i,!0);return g&&(f=g.route,Object.assign(r,g.rawParams),h=Object.assign(Object.create(null),g.parsedParams)),{matchedRoutes:(g==null?void 0:g.branch)||[s.__root__],routeParams:r,foundRoute:f,parsedParams:h}}function $b({search:n,dest:s,destRoutes:i,_includeValidateSearch:r}){return Ib(i)(n,s,r??!1)}function Ib(n){var o;const s={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const f of n){if("search"in f.options)(o=f.options.search)!=null&&o.middlewares&&s.middlewares.push(...f.options.search.middlewares);else if(f.options.preSearchFilters||f.options.postSearchFilters){const h=({search:g,next:p})=>{let y=g;"preSearchFilters"in f.options&&f.options.preSearchFilters&&(y=f.options.preSearchFilters.reduce((v,S)=>S(v),g));const b=p(y);return"postSearchFilters"in f.options&&f.options.postSearchFilters?f.options.postSearchFilters.reduce((v,S)=>S(v),b):b};s.middlewares.push(h)}if(f.options.validateSearch){const h=({search:g,next:p})=>{const y=p(g);if(!s._includeValidateSearch)return y;try{return{...y,...rr(f.options.validateSearch,y)??void 0}}catch{return y}};s.middlewares.push(h)}}const i=({search:f})=>{const h=s.dest;return h.search?h.search===!0?f:xn(h.search,f):{}};s.middlewares.push(i);const r=(f,h,g)=>{if(f>=g.length)return h;const p=g[f];return p({search:h,next:b=>r(f+1,b,g)})};return function(h,g,p){return s.dest=g,s._includeValidateSearch=p,r(0,h,s.middlewares)}}function Wb(n,s){if(n!=="root")for(let i=s.length-1;i>=0;i--){const r=s[i];if(r.children)return r.id}return nl}function x0(n,s,i,r){var f;const o=((f=n.options.params)==null?void 0:f.parse)??n.options.parseParams;if(o)if(n.options.skipRouteOnParseError)for(const h in s)h in i&&(r[h]=i[h]);else{const h=o(r);Object.assign(r,h)}}var tS="Error preloading route! ☝️",fg=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(n){if(this.init=s=>{var p,y;this.originalIndex=s.originalIndex;const i=this.options,r=!(i!=null&&i.path)&&!(i!=null&&i.id);this.parentRoute=(y=(p=this.options).getParentRoute)==null?void 0:y.call(p),r?this._path=nl:this.parentRoute||wa();let o=r?nl:i==null?void 0:i.path;o&&o!=="/"&&(o=lg(o));const f=(i==null?void 0:i.id)||o;let h=r?nl:ir([this.parentRoute.id==="__root__"?"":this.parentRoute.id,f]);o==="__root__"&&(o="/"),h!=="__root__"&&(h=ir(["/",h]));const g=h==="__root__"?"/":ir([this.parentRoute.fullPath,o]);this._path=o,this._id=h,this._fullPath=g,this._to=_n(g)},this.addChildren=s=>this._addFileChildren(s),this._addFileChildren=s=>(Array.isArray(s)&&(this.children=s),typeof s=="object"&&s!==null&&(this.children=Object.values(s)),this),this._addFileTypes=()=>this,this.updateLoader=s=>(Object.assign(this.options,s),this),this.update=s=>(Object.assign(this.options,s),this),this.lazy=s=>(this.lazyFn=s,this),this.redirect=s=>wb({from:this.fullPath,...s}),this.options=n||{},this.isRoot=!(n!=null&&n.getParentRoute),n!=null&&n.id&&(n!=null&&n.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}},eS=class extends fg{constructor(n){super(n)}};function aS(n){if(typeof document<"u"&&document.querySelector){const s=n.stores.location.state,i=s.state.__hashScrollIntoViewOptions??!0;if(i&&s.hash!==""){const r=document.getElementById(s.hash);r&&r.scrollIntoView(i)}}}function Cf(n){const s=n.errorComponent??Of;return m.jsx(nS,{getResetKey:n.getResetKey,onCatch:n.onCatch,children:({error:i,reset:r})=>i?et.createElement(s,{error:i,reset:r}):n.children})}var nS=class extends et.Component{constructor(...n){super(...n),this.state={error:null}}static getDerivedStateFromProps(n){return{resetKey:n.getResetKey()}}static getDerivedStateFromError(n){return{error:n}}reset(){this.setState({error:null})}componentDidUpdate(n,s){s.error&&s.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(n,s){this.props.onCatch&&this.props.onCatch(n,s)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}};function Of({error:n}){const[s,i]=et.useState(!1);return m.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[m.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),m.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>i(r=>!r),children:s?"Hide Error":"Show Error"})]}),m.jsx("div",{style:{height:".25rem"}}),s?m.jsx("div",{children:m.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:n.message?m.jsx("code",{children:n.message}):null})}):null]})}function lS({children:n,fallback:s=null}){return dg()?m.jsx(bi.Fragment,{children:n}):m.jsx(bi.Fragment,{children:s})}function dg(){return bi.useSyncExternalStore(sS,()=>!0,()=>!1)}function sS(){return()=>{}}var hg=et.createContext(null);function ve(n){return et.useContext(hg)}var br=et.createContext(void 0),iS=et.createContext(void 0),Gt=(n=>(n[n.None=0]="None",n[n.Mutable=1]="Mutable",n[n.Watching=2]="Watching",n[n.RecursedCheck=4]="RecursedCheck",n[n.Recursed=8]="Recursed",n[n.Dirty=16]="Dirty",n[n.Pending=32]="Pending",n))(Gt||{});function uS({update:n,notify:s,unwatched:i}){return{link:r,unlink:o,propagate:f,checkDirty:h,shallowPropagate:g};function r(y,b,v){const S=b.depsTail;if(S!==void 0&&S.dep===y)return;const _=S!==void 0?S.nextDep:b.deps;if(_!==void 0&&_.dep===y){_.version=v,b.depsTail=_;return}const R=y.subsTail;if(R!==void 0&&R.version===v&&R.sub===b)return;const M=b.depsTail=y.subsTail={version:v,dep:y,sub:b,prevDep:S,nextDep:_,prevSub:R,nextSub:void 0};_!==void 0&&(_.prevDep=M),S!==void 0?S.nextDep=M:b.deps=M,R!==void 0?R.nextSub=M:y.subs=M}function o(y,b=y.sub){const v=y.dep,S=y.prevDep,_=y.nextDep,R=y.nextSub,M=y.prevSub;return _!==void 0?_.prevDep=S:b.depsTail=S,S!==void 0?S.nextDep=_:b.deps=_,R!==void 0?R.prevSub=M:v.subsTail=M,M!==void 0?M.nextSub=R:(v.subs=R)===void 0&&i(v),_}function f(y){let b=y.nextSub,v;t:do{const S=y.sub;let _=S.flags;if(_&60?_&12?_&4?!(_&48)&&p(y,S)?(S.flags=_|40,_&=1):_=0:S.flags=_&-9|32:_=0:S.flags=_|32,_&2&&s(S),_&1){const R=S.subs;if(R!==void 0){const M=(y=R).nextSub;M!==void 0&&(v={value:b,prev:v},b=M);continue}}if((y=b)!==void 0){b=y.nextSub;continue}for(;v!==void 0;)if(y=v.value,v=v.prev,y!==void 0){b=y.nextSub;continue t}break}while(!0)}function h(y,b){let v,S=0,_=!1;t:do{const R=y.dep,M=R.flags;if(b.flags&16)_=!0;else if((M&17)===17){if(n(R)){const A=R.subs;A.nextSub!==void 0&&g(A),_=!0}}else if((M&33)===33){(y.nextSub!==void 0||y.prevSub!==void 0)&&(v={value:y,prev:v}),y=R.deps,b=R,++S;continue}if(!_){const A=y.nextDep;if(A!==void 0){y=A;continue}}for(;S--;){const A=b.subs,U=A.nextSub!==void 0;if(U?(y=v.value,v=v.prev):y=A,_){if(n(b)){U&&g(A),b=y.sub;continue}_=!1}else b.flags&=-33;b=y.sub;const P=y.nextDep;if(P!==void 0){y=P;continue t}}return _}while(!0)}function g(y){do{const b=y.sub,v=b.flags;(v&48)===32&&(b.flags=v|16,(v&6)===2&&s(b))}while((y=y.nextSub)!==void 0)}function p(y,b){let v=b.depsTail;for(;v!==void 0;){if(v===y)return!0;v=v.prevDep}return!1}}function zf(n,s,i){var f,h,g;const r=typeof n=="object",o=r?n:void 0;return{next:(f=r?n.next:n)==null?void 0:f.bind(o),error:(h=r?n.error:s)==null?void 0:h.bind(o),complete:(g=r?n.complete:i)==null?void 0:g.bind(o)}}const pf=[];let cr=0;const{link:b0,unlink:rS,propagate:cS,checkDirty:mg,shallowPropagate:S0}=uS({update(n){return n._update()},notify(n){pf[xf++]=n,n.flags&=~Gt.Watching},unwatched(n){n.depsTail!==void 0&&(n.depsTail=void 0,n.flags=Gt.Mutable|Gt.Dirty,yr(n))}});let lr=0,xf=0,ua,bf=0;function yg(n){try{++bf,n()}finally{--bf||gg()}}function yr(n){const s=n.depsTail;let i=s!==void 0?s.nextDep:n.deps;for(;i!==void 0;)i=rS(i,n)}function gg(){if(!(bf>0)){for(;lr<xf;){const n=pf[lr];pf[lr++]=void 0,n.notify()}lr=0,xf=0}}function vg(n,s){const i=typeof n=="function",r=n,o={_snapshot:i?void 0:n,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:i?Gt.None:Gt.Mutable,get(){return ua!==void 0&&b0(o,ua,cr),o._snapshot},subscribe(f){const h=zf(f),g={current:!1},p=oS(()=>{var y;o.get(),g.current?(y=h.next)==null||y.call(h,o._snapshot):g.current=!0});return{unsubscribe:()=>{p.stop()}}},_update(f){const h=ua,g=Object.is;if(i)ua=o,++cr,o.depsTail=void 0;else if(f===void 0)return!1;i&&(o.flags=Gt.Mutable|Gt.RecursedCheck);try{const p=o._snapshot,y=typeof f=="function"?f(p):f===void 0&&i?r(p):f;return p===void 0||!g(p,y)?(o._snapshot=y,!0):!1}finally{ua=h,i&&(o.flags&=~Gt.RecursedCheck),yr(o)}}};return i?(o.flags=Gt.Mutable|Gt.Dirty,o.get=function(){const f=o.flags;if(f&Gt.Dirty||f&Gt.Pending&&mg(o.deps,o)){if(o._update()){const h=o.subs;h!==void 0&&S0(h)}}else f&Gt.Pending&&(o.flags=f&~Gt.Pending);return ua!==void 0&&b0(o,ua,cr),o._snapshot}):o.set=function(f){if(o._update(f)){const h=o.subs;h!==void 0&&(cS(h),S0(h),gg())}},o}function oS(n){const s=()=>{const r=ua;ua=i,++cr,i.depsTail=void 0,i.flags=Gt.Watching|Gt.RecursedCheck;try{return n()}finally{ua=r,i.flags&=~Gt.RecursedCheck,yr(i)}},i={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Gt.Watching|Gt.RecursedCheck,notify(){const r=this.flags;r&Gt.Dirty||r&Gt.Pending&&mg(this.deps,this)?s():this.flags=Gt.Watching},stop(){this.flags=Gt.None,this.depsTail=void 0,yr(this)}};return s(),i}class fS{constructor(s){this.atom=vg(s)}setState(s){this.atom.set(s)}get state(){return this.atom.get()}get(){return this.state}subscribe(s){return this.atom.subscribe(zf(s))}}class dS{constructor(s){this.atom=vg(s)}get state(){return this.atom.get()}get(){return this.state}subscribe(s){return this.atom.subscribe(zf(s))}}function R0(n){return typeof n=="function"?new dS(n):new fS(n)}var Fo={exports:{}},$o={},Io={exports:{}},Wo={};/**
50
+ * @license React
51
+ * use-sync-external-store-shim.production.js
52
+ *
53
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
54
+ *
55
+ * This source code is licensed under the MIT license found in the
56
+ * LICENSE file in the root directory of this source tree.
57
+ */var _0;function hS(){if(_0)return Wo;_0=1;var n=Di();function s(v,S){return v===S&&(v!==0||1/v===1/S)||v!==v&&S!==S}var i=typeof Object.is=="function"?Object.is:s,r=n.useState,o=n.useEffect,f=n.useLayoutEffect,h=n.useDebugValue;function g(v,S){var _=S(),R=r({inst:{value:_,getSnapshot:S}}),M=R[0].inst,A=R[1];return f(function(){M.value=_,M.getSnapshot=S,p(M)&&A({inst:M})},[v,_,S]),o(function(){return p(M)&&A({inst:M}),v(function(){p(M)&&A({inst:M})})},[v]),h(_),_}function p(v){var S=v.getSnapshot;v=v.value;try{var _=S();return!i(v,_)}catch{return!0}}function y(v,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:g;return Wo.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:b,Wo}var j0;function mS(){return j0||(j0=1,Io.exports=hS()),Io.exports}/**
58
+ * @license React
59
+ * use-sync-external-store-shim/with-selector.production.js
60
+ *
61
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
62
+ *
63
+ * This source code is licensed under the MIT license found in the
64
+ * LICENSE file in the root directory of this source tree.
65
+ */var E0;function yS(){if(E0)return $o;E0=1;var n=Di(),s=mS();function i(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var r=typeof Object.is=="function"?Object.is:i,o=s.useSyncExternalStore,f=n.useRef,h=n.useEffect,g=n.useMemo,p=n.useDebugValue;return $o.useSyncExternalStoreWithSelector=function(y,b,v,S,_){var R=f(null);if(R.current===null){var M={hasValue:!1,value:null};R.current=M}else M=R.current;R=g(function(){function U($){if(!P){if(P=!0,K=$,$=S($),_!==void 0&&M.hasValue){var Z=M.value;if(_(Z,$))return L=Z}return L=$}if(Z=L,r(K,$))return Z;var J=S($);return _!==void 0&&_(Z,J)?(K=$,Z):(K=$,L=J)}var P=!1,K,L,X=v===void 0?null:v;return[function(){return U(b())},X===null?void 0:function(){return U(X())}]},[b,v,S,_]);var A=o(y,R[0],R[1]);return h(function(){M.hasValue=!0,M.value=A},[A]),p(A),A},$o}var T0;function gS(){return T0||(T0=1,Fo.exports=yS()),Fo.exports}var vS=gS();function pS(n,s){return n===s}function he(n,s,i=pS){const r=et.useCallback(h=>{if(!n)return()=>{};const{unsubscribe:g}=n.subscribe(h);return g},[n]),o=et.useCallback(()=>n==null?void 0:n.get(),[n]);return vS.useSyncExternalStoreWithSelector(r,o,o,s,i)}var xS={state:void 0,get:()=>{},subscribe:()=>()=>{}};function il(n){const s=ve(),i=et.useContext(n.from?iS:br),r=n.from??i,o=r?n.from?s.stores.getMatchStoreByRouteId(r):s.stores.activeMatchStoresById.get(r):void 0,f=et.useRef(void 0);return he(o??xS,h=>{if((n.shouldThrow??!0)&&!h&&wa(),h===void 0)return;const g=n.select?n.select(h):h;if(n.structuralSharing??s.options.defaultStructuralSharing){const p=bn(f.current,g);return f.current=p,p}return g})}function pg(n){return il({from:n.from,strict:n.strict,structuralSharing:n.structuralSharing,select:s=>n.select?n.select(s.loaderData):s.loaderData})}function xg(n){const{select:s,...i}=n;return il({...i,select:r=>s?s(r.loaderDeps):r.loaderDeps})}function bg(n){return il({from:n.from,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,strict:n.strict,select:s=>{const i=n.strict===!1?s.params:s._strictParams;return n.select?n.select(i):i}})}function Sg(n){return il({from:n.from,strict:n.strict,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,select:s=>n.select?n.select(s.search):s.search})}function Df(n){const s=ve();return et.useCallback(i=>s.navigate({...i,from:i.from??(n==null?void 0:n.from)}),[n==null?void 0:n.from,s])}function Rg(n){return il({...n,select:s=>n.select?n.select(s.context):s.context})}var bS=G0();function SS(n,s){const i=ve(),r=eb(s),{activeProps:o,inactiveProps:f,activeOptions:h,to:g,preload:p,preloadDelay:y,hashScrollIntoView:b,replace:v,startTransition:S,resetScroll:_,viewTransition:R,children:M,target:A,disabled:U,style:P,className:K,onClick:L,onBlur:X,onFocus:$,onMouseEnter:Z,onMouseLeave:J,onTouchStart:k,ignoreBlocker:G,params:F,search:st,hash:it,state:ct,mask:nt,reloadDocument:D,unsafeRelative:V,from:tt,_fromLocation:yt,...ot}=n,E=dg(),Q=et.useMemo(()=>n,[i,n.from,n._fromLocation,n.hash,n.to,n.search,n.params,n.state,n.mask,n.unsafeRelative]),I=he(i.stores.location,bt=>bt,(bt,oe)=>bt.href===oe.href),W=et.useMemo(()=>{const bt={_fromLocation:I,...Q};return i.buildLocation(bt)},[i,I,Q]),ht=W.maskedLocation?W.maskedLocation.publicHref:W.publicHref,pt=W.maskedLocation?W.maskedLocation.external:W.external,xt=et.useMemo(()=>NS(ht,pt,i.history,U),[U,pt,ht,i.history]),Jt=et.useMemo(()=>{if(xt!=null&&xt.external)return fr(xt.href,i.protocolAllowlist)?void 0:xt.href;if(!MS(g)&&!(typeof g!="string"||g.indexOf(":")===-1))try{return new URL(g),fr(g,i.protocolAllowlist)?void 0:g}catch{}},[g,xt,i.protocolAllowlist]),Ht=et.useMemo(()=>{if(Jt)return!1;if(h!=null&&h.exact){if(!xb(I.pathname,W.pathname,i.basepath))return!1}else{const bt=dr(I.pathname,i.basepath),oe=dr(W.pathname,i.basepath);if(!(bt.startsWith(oe)&&(bt.length===oe.length||bt[oe.length]==="/")))return!1}return((h==null?void 0:h.includeSearch)??!0)&&!al(I.search,W.search,{partial:!(h!=null&&h.exact),ignoreUndefined:!(h!=null&&h.explicitUndefined)})?!1:h!=null&&h.includeHash?E&&I.hash===W.hash:!0},[h==null?void 0:h.exact,h==null?void 0:h.explicitUndefined,h==null?void 0:h.includeHash,h==null?void 0:h.includeSearch,I,Jt,E,W.hash,W.pathname,W.search,i.basepath]),ea=Ht?xn(o,{})??RS:tf,fa=Ht?tf:xn(f,{})??tf,cl=[K,ea.className,fa.className].filter(Boolean).join(" "),gs=(P||ea.style||fa.style)&&{...P,...ea.style,...fa.style},[da,ol]=et.useState(!1),fl=et.useRef(!1),La=n.reloadDocument||Jt?!1:p??i.options.defaultPreload,dl=y??i.options.defaultPreloadDelay??0,Fe=et.useCallback(()=>{i.preloadRoute({...Q,_builtLocation:W}).catch(bt=>{console.warn(bt),console.warn(tS)})},[i,Q,W]);tb(r,et.useCallback(bt=>{bt!=null&&bt.isIntersecting&&Fe()},[Fe]),TS,{disabled:!!U||La!=="viewport"}),et.useEffect(()=>{fl.current||!U&&La==="render"&&(Fe(),fl.current=!0)},[U,Fe,La]);const vs=bt=>{const oe=bt.currentTarget.getAttribute("target"),aa=A!==void 0?A:oe;if(!U&&!AS(bt)&&!bt.defaultPrevented&&(!aa||aa==="_self")&&bt.button===0){bt.preventDefault(),bS.flushSync(()=>{ol(!0)});const Bi=i.subscribe("onResolved",()=>{Bi(),ol(!1)});i.navigate({...Q,replace:v,resetScroll:_,hashScrollIntoView:b,startTransition:S,viewTransition:R,ignoreBlocker:G})}};if(Jt)return{...ot,ref:r,href:Jt,...M&&{children:M},...A&&{target:A},...U&&{disabled:U},...P&&{style:P},...K&&{className:K},...L&&{onClick:L},...X&&{onBlur:X},...$&&{onFocus:$},...Z&&{onMouseEnter:Z},...J&&{onMouseLeave:J},...k&&{onTouchStart:k}};const hl=bt=>{if(U||La!=="intent")return;if(!dl){Fe();return}const oe=bt.currentTarget;if(gi.has(oe))return;const aa=setTimeout(()=>{gi.delete(oe),Fe()},dl);gi.set(oe,aa)},Sr=bt=>{U||La!=="intent"||Fe()},Li=bt=>{if(U||!La||!dl)return;const oe=bt.currentTarget,aa=gi.get(oe);aa&&(clearTimeout(aa),gi.delete(oe))};return{...ot,...ea,...fa,href:xt==null?void 0:xt.href,ref:r,onClick:Il([L,vs]),onBlur:Il([X,Li]),onFocus:Il([$,hl]),onMouseEnter:Il([Z,hl]),onMouseLeave:Il([J,Li]),onTouchStart:Il([k,Sr]),disabled:!!U,target:A,...gs&&{style:gs},...cl&&{className:cl},...U&&_S,...Ht&&jS,...E&&da&&ES}}var tf={},RS={className:"active"},_S={role:"link","aria-disabled":!0},jS={"data-status":"active","aria-current":"page"},ES={"data-transitioning":"transitioning"},gi=new WeakMap,TS={rootMargin:"100px"},Il=n=>s=>{for(const i of n)if(i){if(s.defaultPrevented)return;i(s)}};function NS(n,s,i,r){if(!r)return s?{href:n,external:!0}:{href:i.createHref(n)||"/",external:!1}}function MS(n){if(typeof n!="string")return!1;const s=n.charCodeAt(0);return s===47?n.charCodeAt(1)!==47:s===46}var Vt=et.forwardRef((n,s)=>{const{_asChild:i,...r}=n,{type:o,...f}=SS(r,s),h=typeof r.children=="function"?r.children({isActive:f["data-status"]==="active"}):r.children;if(!i){const{disabled:g,...p}=f;return et.createElement("a",p,h)}return et.createElement(i,f,h)});function AS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}var CS=class extends fg{constructor(s){super(s),this.useMatch=i=>il({select:i==null?void 0:i.select,from:this.id,structuralSharing:i==null?void 0:i.structuralSharing}),this.useRouteContext=i=>Rg({...i,from:this.id}),this.useSearch=i=>Sg({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useParams=i=>bg({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useLoaderDeps=i=>xg({...i,from:this.id}),this.useLoaderData=i=>pg({...i,from:this.id}),this.useNavigate=()=>Df({from:this.fullPath}),this.Link=bi.forwardRef((i,r)=>m.jsx(Vt,{ref:r,from:this.fullPath,...i}))}};function OS(n){return new CS(n)}var zS=class extends eS{constructor(n){super(n),this.useMatch=s=>il({select:s==null?void 0:s.select,from:this.id,structuralSharing:s==null?void 0:s.structuralSharing}),this.useRouteContext=s=>Rg({...s,from:this.id}),this.useSearch=s=>Sg({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useParams=s=>bg({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useLoaderDeps=s=>xg({...s,from:this.id}),this.useLoaderData=s=>pg({...s,from:this.id}),this.useNavigate=()=>Df({from:this.fullPath}),this.Link=bi.forwardRef((s,i)=>m.jsx(Vt,{ref:i,from:this.fullPath,...s}))}};function DS(n){return new zS(n)}function ys(n){return typeof n=="object"?new N0(n,{silent:!0}).createRoute(n):new N0(n,{silent:!0}).createRoute}var N0=class{constructor(n,s){this.path=n,this.createRoute=i=>{const r=OS(i);return r.isRoot=!1,r},this.silent=s==null?void 0:s.silent}};function wS(n){const s=ve(),i=`not-found-${he(s.stores.location,r=>r.pathname)}-${he(s.stores.status,r=>r)}`;return m.jsx(Cf,{getResetKey:()=>i,onCatch:(r,o)=>{var f;if(ge(r))(f=n.onCatch)==null||f.call(n,r,o);else throw r},errorComponent:({error:r})=>{var o;if(ge(r))return(o=n.fallback)==null?void 0:o.call(n,r);throw r},children:n.children})}function US(){return m.jsx("p",{children:"Not Found"})}function Wl(n){return m.jsx(m.Fragment,{children:n.children})}function _g(n,s,i){return s.options.notFoundComponent?m.jsx(s.options.notFoundComponent,{...i}):n.options.defaultNotFoundComponent?m.jsx(n.options.defaultNotFoundComponent,{...i}):m.jsx(US,{})}function LS(n){return null}function BS(){return LS(ve()),null}var jg=et.memo(function({matchId:s}){const i=ve(),r=i.stores.activeMatchStoresById.get(s);r||wa();const o=he(i.stores.loadedAt,h=>h),f=he(r,h=>h);return m.jsx(HS,{router:i,matchId:s,resetKey:o,matchState:et.useMemo(()=>{var p;const h=f.routeId,g=(p=i.routesById[h].parentRoute)==null?void 0:p.id;return{routeId:h,ssr:f.ssr,_displayPending:f._displayPending,parentRouteId:g}},[f._displayPending,f.routeId,f.ssr,i.routesById])})});function HS({router:n,matchId:s,resetKey:i,matchState:r}){var R,M;const o=n.routesById[r.routeId],f=o.options.pendingComponent??n.options.defaultPendingComponent,h=f?m.jsx(f,{}):null,g=o.options.errorComponent??n.options.defaultErrorComponent,p=o.options.onCatch??n.options.defaultOnCatch,y=o.isRoot?o.options.notFoundComponent??((R=n.options.notFoundRoute)==null?void 0:R.options.component):o.options.notFoundComponent,b=r.ssr===!1||r.ssr==="data-only",v=(!o.isRoot||o.options.wrapInSuspense||b)&&(o.options.wrapInSuspense??f??(((M=o.options.errorComponent)==null?void 0:M.preload)||b))?et.Suspense:Wl,S=g?Cf:Wl,_=y?wS:Wl;return m.jsxs(o.isRoot?o.options.shellComponent??Wl:Wl,{children:[m.jsx(br.Provider,{value:s,children:m.jsx(v,{fallback:h,children:m.jsx(S,{getResetKey:()=>i,errorComponent:g||Of,onCatch:(A,U)=>{if(ge(A))throw A;p==null||p(A,U)},children:m.jsx(_,{fallback:A=>{if(!y||A.routeId&&A.routeId!==r.routeId||!A.routeId&&!o.isRoot)throw A;return et.createElement(y,A)},children:b||r._displayPending?m.jsx(lS,{fallback:h,children:m.jsx(M0,{matchId:s})}):m.jsx(M0,{matchId:s})})})})}),r.parentRouteId===nl?m.jsxs(m.Fragment,{children:[m.jsx(qS,{resetKey:i}),n.options.scrollRestoration&&eg?m.jsx(BS,{}):null]}):null]})}function qS({resetKey:n}){const s=ve(),i=et.useRef(void 0);return xi(()=>{const r=s.latestLocation.href;(i.current===void 0||i.current!==r)&&(s.emit({type:"onRendered",...ts(s.stores.location.state,s.stores.resolvedLocation.state)}),i.current=r)},[s.latestLocation.state.__TSR_key,n,s]),null}var M0=et.memo(function({matchId:s}){var y,b,v,S;const i=ve(),r=i.stores.activeMatchStoresById.get(s);r||wa();const o=he(r,_=>_),f=o.routeId,h=i.routesById[f],g=et.useMemo(()=>{var R;const _=(R=i.routesById[f].options.remountDeps??i.options.defaultRemountDeps)==null?void 0:R({routeId:f,loaderDeps:o.loaderDeps,params:o._strictParams,search:o._strictSearch});return _?JSON.stringify(_):void 0},[f,o.loaderDeps,o._strictParams,o._strictSearch,i.options.defaultRemountDeps,i.routesById]),p=et.useMemo(()=>{const _=h.options.component??i.options.defaultComponent;return _?m.jsx(_,{},g):m.jsx(Eg,{})},[g,h.options.component,i.options.defaultComponent]);if(o._displayPending)throw(y=i.getMatch(o.id))==null?void 0:y._nonReactive.displayPendingPromise;if(o._forcePending)throw(b=i.getMatch(o.id))==null?void 0:b._nonReactive.minPendingPromise;if(o.status==="pending"){const _=h.options.pendingMinMs??i.options.defaultPendingMinMs;if(_){const R=i.getMatch(o.id);if(R&&!R._nonReactive.minPendingPromise){const M=ms();R._nonReactive.minPendingPromise=M,setTimeout(()=>{M.resolve(),R._nonReactive.minPendingPromise=void 0},_)}}throw(v=i.getMatch(o.id))==null?void 0:v._nonReactive.loadPromise}if(o.status==="notFound")return ge(o.error)||wa(),_g(i,h,o.error);if(o.status==="redirected")throw Ne(o.error)||wa(),(S=i.getMatch(o.id))==null?void 0:S._nonReactive.loadPromise;if(o.status==="error")throw o.error;return p}),Eg=et.memo(function(){const s=ve(),i=et.useContext(br);let r,o=!1,f;{const y=i?s.stores.activeMatchStoresById.get(i):void 0;[r,o]=he(y,b=>[b==null?void 0:b.routeId,(b==null?void 0:b.globalNotFound)??!1]),f=he(s.stores.matchesId,b=>b[b.findIndex(v=>v===i)+1])}const h=r?s.routesById[r]:void 0,g=s.options.defaultPendingComponent?m.jsx(s.options.defaultPendingComponent,{}):null;if(o)return h||wa(),_g(s,h,void 0);if(!f)return null;const p=m.jsx(jg,{matchId:f});return r===nl?m.jsx(et.Suspense,{fallback:g,children:p}):p});function QS(){const n=ve(),s=et.useRef({router:n,mounted:!1}),[i,r]=et.useState(!1),o=he(n.stores.isLoading,v=>v),f=he(n.stores.hasPendingMatches,v=>v),h=Go(o),g=o||i||f,p=Go(g),y=o||f,b=Go(y);return n.startTransition=v=>{r(!0),et.startTransition(()=>{v(),r(!1)})},et.useEffect(()=>{const v=n.history.subscribe(n.load),S=n.buildLocation({to:n.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return _n(n.latestLocation.publicHref)!==_n(S.publicHref)&&n.commitLocation({...S,replace:!0}),()=>{v()}},[n,n.history]),xi(()=>{if(typeof window<"u"&&n.ssr||s.current.router===n&&s.current.mounted)return;s.current={router:n,mounted:!0},(async()=>{try{await n.load()}catch(S){console.error(S)}})()},[n]),xi(()=>{h&&!o&&n.emit({type:"onLoad",...ts(n.stores.location.state,n.stores.resolvedLocation.state)})},[h,n,o]),xi(()=>{b&&!y&&n.emit({type:"onBeforeRouteMount",...ts(n.stores.location.state,n.stores.resolvedLocation.state)})},[y,b,n]),xi(()=>{if(p&&!g){const v=ts(n.stores.location.state,n.stores.resolvedLocation.state);n.emit({type:"onResolved",...v}),yg(()=>{n.stores.status.setState(()=>"idle"),n.stores.resolvedLocation.setState(()=>n.stores.location.state)}),v.hrefChanged&&aS(n)}},[g,p,n]),null}function YS(){const n=ve(),s=n.routesById[nl].options.pendingComponent??n.options.defaultPendingComponent,i=s?m.jsx(s,{}):null,r=m.jsxs(typeof document<"u"&&n.ssr?Wl:et.Suspense,{fallback:i,children:[m.jsx(QS,{}),m.jsx(GS,{})]});return n.options.InnerWrap?m.jsx(n.options.InnerWrap,{children:r}):r}function GS(){const n=ve(),s=he(n.stores.firstMatchId,o=>o),i=he(n.stores.loadedAt,o=>o),r=s?m.jsx(jg,{matchId:s}):null;return m.jsx(br.Provider,{value:s,children:n.options.disableGlobalCatchBoundary?r:m.jsx(Cf,{getResetKey:()=>i,errorComponent:Of,onCatch:void 0,children:r})})}function Tg(){const n=ve();return he(n.stores.matchRouteReactivity,s=>s),et.useCallback(s=>{const{pending:i,caseSensitive:r,fuzzy:o,includeSearch:f,...h}=s;return n.matchRoute(h,{pending:i,caseSensitive:r,fuzzy:o,includeSearch:f})},[n])}function VS(n){const s=ve(),i=et.useRef(void 0);return he(s.stores.activeMatchesSnapshot,r=>{const o=r;if(s.options.defaultStructuralSharing){const f=bn(i.current,o);return i.current=f,f}return o})}var XS=n=>({createMutableStore:R0,createReadonlyStore:R0,batch:yg}),KS=n=>new ZS(n),ZS=class extends Jb{constructor(n){super(n,XS)}};function JS({router:n,children:s,...i}){Object.keys(i).length>0&&n.update({...n.options,...i,context:{...n.options.context,...i.context}});const r=m.jsx(hg.Provider,{value:n,children:s});return n.options.Wrap?m.jsx(n.options.Wrap,{children:r}):r}function PS({router:n,...s}){return m.jsx(JS,{router:n,...s,children:m.jsx(YS,{})})}function kS(n){const i=ve();return et.useRef(void 0),he(i.stores.__store,r=>r)}function FS(n){const s=[];for(let i=1;i<n.length;i++){const r=n[i],o=r.routeId??r.id,f=r.params;o==="/"||o==="/_layout"||(o.includes("/runs/$runId/category/$category")?(s.some(h=>h.label===f.runId)||s.push({label:f.runId??"Run",to:`/runs/${encodeURIComponent(f.runId)}`}),s.push({label:f.category??"Category",to:r.pathname})):o.includes("/runs/$runId/dataset/$dataset")?s.push({label:f.dataset??"Dataset",to:r.pathname}):o.includes("/runs/$runId")?s.push({label:f.runId??"Run",to:r.pathname}):o.includes("/evals/$runId/$evalId")?(s.some(h=>h.label===f.runId)||s.push({label:f.runId??"Run",to:`/runs/${encodeURIComponent(f.runId)}`}),s.push({label:f.evalId??"Eval",to:r.pathname})):o.includes("/experiments/$experimentName")?s.push({label:f.experimentName??"Experiment",to:r.pathname}):(o==="/index"||o==="/")&&s.push({label:"Home",to:"/"}))}return s}function $S(){const n=VS(),s=FS(n);return s.length===0?null:m.jsxs("div",{className:"flex items-center gap-2 border-b border-gray-800 bg-gray-950 px-6 py-2 text-sm",children:[m.jsx(Vt,{to:"/",className:"text-cyan-400 hover:text-cyan-300 hover:underline",children:"Home"}),s.map((i,r)=>{const o=r===s.length-1;return m.jsxs("span",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-gray-600",children:">"}),o?m.jsx("span",{className:"text-gray-400",children:i.label}):m.jsx(Vt,{to:i.to??"/",className:"text-cyan-400 hover:text-cyan-300 hover:underline",children:i.label})]},`${i.label}-${r}`)})]})}async function ul(n){const s=await fetch(n);if(!s.ok)throw new Error(`API error: ${s.status} ${s.statusText}`);return s.json()}const IS={queryKey:["runs"],queryFn:()=>ul("/api/runs"),refetchInterval:5e3};function WS(n){return{queryKey:["runs",n],queryFn:()=>ul(`/api/runs/${encodeURIComponent(n)}`),enabled:!!n}}const t1={queryKey:["experiments"],queryFn:()=>ul("/api/experiments")},e1={queryKey:["targets"],queryFn:()=>ul("/api/targets")};function a1(n,s){return{queryKey:["runs",n,"evals",s,"files"],queryFn:()=>ul(`/api/runs/${encodeURIComponent(n)}/evals/${encodeURIComponent(s)}/files`),enabled:!!n&&!!s}}function n1(n,s,i){return{queryKey:["runs",n,"evals",s,"files",i],queryFn:()=>ul(`/api/runs/${encodeURIComponent(n)}/evals/${encodeURIComponent(s)}/files/${i}`),enabled:!!n&&!!s&&!!i}}function l1(n,s){return{queryKey:["runs",n,"categories",s,"datasets"],queryFn:()=>ul(`/api/runs/${encodeURIComponent(n)}/categories/${encodeURIComponent(s)}/datasets`),enabled:!!n&&!!s}}function wf(){return sl(IS)}function Ui(n){return sl(WS(n))}function Uf(){return sl(t1)}function s1(){return sl(e1)}function Ng(n,s){return sl(a1(n,s))}function Mg(n,s,i){return sl(n1(n,s,i))}function Ag(n,s){return sl(l1(n,s))}function i1(){const n=Tg(),s=n({to:"/evals/$runId/$evalId",fuzzy:!0}),i=n({to:"/runs/$runId/category/$category",fuzzy:!0}),r=n({to:"/runs/$runId/dataset/$dataset",fuzzy:!0}),o=n({to:"/experiments/$experimentName",fuzzy:!0});if(i&&typeof i=="object"&&"runId"in i){const{runId:f,category:h}=i;return m.jsx(o1,{runId:f,category:h})}if(r&&typeof r=="object"&&"runId"in r){const{runId:f,dataset:h}=r;return m.jsx(c1,{runId:f,dataset:h})}if(s&&typeof s=="object"&&"runId"in s){const{runId:f,evalId:h}=s;return m.jsx(r1,{runId:f,currentEvalId:h})}if(o&&typeof o=="object"&&"experimentName"in o){const{experimentName:f}=o;return m.jsx(f1,{currentExperiment:f})}return m.jsx(u1,{})}function u1(){const n=Tg(),{data:s}=wf(),i=n({to:"/"}),r=n({to:"/runs/$runId",fuzzy:!0});return m.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[m.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:m.jsx(Vt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),m.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[m.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Runs"}),s==null?void 0:s.runs.map(o=>{const f=i===!1&&r&&typeof r=="object"&&"runId"in r&&r.runId===o.filename;return m.jsx(Vt,{to:"/runs/$runId",params:{runId:o.filename},className:`mb-0.5 block truncate rounded-md px-2 py-1.5 text-sm transition-colors ${f?"bg-gray-800 text-cyan-400":"text-gray-400 hover:bg-gray-800/50 hover:text-gray-200"}`,children:o.filename},o.filename)})]})]})}function r1({runId:n,currentEvalId:s}){const{data:i}=Ui(n);return m.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[m.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:m.jsx(Vt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),m.jsxs("div",{className:"border-b border-gray-800 px-4 py-2",children:[m.jsx(Vt,{to:"/runs/$runId",params:{runId:n},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← Back to run"}),m.jsx("p",{className:"mt-1 truncate text-sm font-medium text-gray-300",children:n})]}),m.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[m.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Evaluations"}),i==null?void 0:i.results.map(r=>{const o=r.testId===s,f=r.score>=1;return m.jsxs(Vt,{to:"/evals/$runId/$evalId",params:{runId:n,evalId:r.testId},className:`mb-0.5 flex items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors ${o?"bg-gray-800 text-cyan-400":"text-gray-400 hover:bg-gray-800/50 hover:text-gray-200"}`,children:[m.jsx("span",{className:`text-xs ${f?"text-emerald-400":"text-red-400"}`,children:f?"✓":"✗"}),m.jsx("span",{className:"truncate",children:r.testId})]},r.testId)})]})]})}function c1({runId:n,dataset:s}){const{data:i}=Ui(n),r=((i==null?void 0:i.results)??[]).filter(o=>(o.dataset??"Uncategorized")===s);return m.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[m.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:m.jsx(Vt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),m.jsxs("div",{className:"border-b border-gray-800 px-4 py-2",children:[m.jsx(Vt,{to:"/runs/$runId",params:{runId:n},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← Back to run"}),m.jsx("p",{className:"mt-1 truncate text-sm font-medium text-gray-300",children:n}),m.jsx("p",{className:"truncate text-xs text-gray-500",children:s})]}),m.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[m.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Evaluations"}),r.map(o=>{const f=o.score>=1;return m.jsxs(Vt,{to:"/evals/$runId/$evalId",params:{runId:n,evalId:o.testId},className:"mb-0.5 flex items-center gap-2 rounded-md px-2 py-1.5 text-sm text-gray-400 transition-colors hover:bg-gray-800/50 hover:text-gray-200",children:[m.jsx("span",{className:`text-xs ${f?"text-emerald-400":"text-red-400"}`,children:f?"✓":"✗"}),m.jsx("span",{className:"truncate",children:o.testId})]},o.testId)})]})]})}function o1({runId:n,category:s}){const{data:i}=Ag(n,s),r=(i==null?void 0:i.datasets)??[];return m.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[m.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:m.jsx(Vt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),m.jsxs("div",{className:"border-b border-gray-800 px-4 py-2",children:[m.jsx(Vt,{to:"/runs/$runId",params:{runId:n},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← Back to run"}),m.jsx("p",{className:"mt-1 truncate text-sm font-medium text-gray-300",children:n}),m.jsx("p",{className:"truncate text-xs text-gray-500",children:s})]}),m.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[m.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Datasets"}),r.map(o=>m.jsxs(Vt,{to:"/runs/$runId/dataset/$dataset",params:{runId:n,dataset:o.name},className:"mb-0.5 flex items-center gap-2 rounded-md px-2 py-1.5 text-sm text-gray-400 transition-colors hover:bg-gray-800/50 hover:text-gray-200",children:[m.jsx("span",{className:`text-xs ${o.passed===o.total?"text-emerald-400":"text-red-400"}`,children:o.passed===o.total?"✓":"✗"}),m.jsx("span",{className:"truncate",children:o.name})]},o.name))]})]})}function f1({currentExperiment:n}){const{data:s}=Uf(),i=(s==null?void 0:s.experiments)??[];return m.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[m.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:m.jsx(Vt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),m.jsx("div",{className:"border-b border-gray-800 px-4 py-2",children:m.jsx(Vt,{to:"/",search:{tab:"experiments"},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← All experiments"})}),m.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[m.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Experiments"}),i.map(r=>{const o=r.name===n;return m.jsx(Vt,{to:"/experiments/$experimentName",params:{experimentName:r.name},className:`mb-0.5 block truncate rounded-md px-2 py-1.5 text-sm transition-colors ${o?"bg-gray-800 text-cyan-400":"text-gray-400 hover:bg-gray-800/50 hover:text-gray-200"}`,children:r.name},r.name)})]})]})}function d1(){return m.jsxs("div",{className:"flex h-screen overflow-hidden",children:[m.jsx(i1,{}),m.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[m.jsx($S,{}),m.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:m.jsx(Eg,{})})]})]})}const rl=DS({component:d1});function Ua({score:n,className:s=""}){const i=Math.round(Math.max(0,Math.min(1,n))*100);return m.jsxs("div",{className:`flex items-center gap-3 ${s}`,children:[m.jsx("div",{className:"h-2 flex-1 overflow-hidden rounded-full bg-gray-800",children:m.jsx("div",{className:"h-full rounded-full bg-gradient-to-r from-cyan-400 to-blue-500 transition-all duration-300",style:{width:`${i}%`}})}),m.jsxs("span",{className:"w-12 text-right text-sm font-medium tabular-nums text-gray-300",children:[i,"%"]})]})}function h1(){const{data:n,isLoading:s}=Uf();if(s)return m.jsx(y1,{});const i=(n==null?void 0:n.experiments)??[];return i.length===0?m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[m.jsx("p",{className:"text-lg text-gray-400",children:"No experiments found"}),m.jsx("p",{className:"mt-2 text-sm text-gray-500",children:"Experiments will appear here once evaluations are run with experiment labels."})]}):m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("table",{className:"w-full text-left text-sm",children:[m.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:m.jsxs("tr",{children:[m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Experiment"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Runs"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Targets"}),m.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Pass Rate"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Last Run"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-800/50",children:i.map(r=>m.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[m.jsx("td",{className:"px-4 py-3",children:m.jsx(Vt,{to:"/experiments/$experimentName",params:{experimentName:r.name},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:r.name})}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:r.run_count}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:r.target_count}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(Ua,{score:r.pass_rate})}),m.jsx("td",{className:"px-4 py-3 text-gray-400",children:m1(r.last_run)})]},r.name))})]})})}function m1(n){if(!n)return"N/A";try{const s=new Date(n);return Number.isNaN(s.getTime())?"N/A":s.toLocaleString()}catch{return"N/A"}}function y1(){return m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("div",{className:"animate-pulse",children:[m.jsx("div",{className:"border-b border-gray-800 bg-gray-900/50 px-4 py-3",children:m.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"})}),["sk-1","sk-2","sk-3","sk-4","sk-5"].map(n=>m.jsxs("div",{className:"flex gap-4 border-b border-gray-800/50 px-4 py-3",children:[m.jsx("div",{className:"h-4 w-32 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-24 rounded bg-gray-800"})]},n))]})})}function g1(n){if(!n)return"N/A";try{const s=new Date(n);return Number.isNaN(s.getTime())?"N/A":s.toLocaleString()}catch{return"N/A"}}function Cg({runs:n}){return n.length===0?m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[m.jsx("p",{className:"text-lg text-gray-400",children:"No evaluation runs found."}),m.jsxs("p",{className:"mt-2 text-sm text-gray-500",children:["Run an evaluation first:"," ",m.jsx("code",{className:"rounded bg-gray-800 px-2 py-1 text-cyan-400",children:"agentv eval <eval-file>"})]})]}):m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("table",{className:"w-full text-left text-sm",children:[m.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:m.jsxs("tr",{children:[m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Run"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Experiment"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Timestamp"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Tests"}),m.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",title:"Percentage of tests with a perfect score (1.0)",children:"Tests Passing"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",title:"Mean score across all tests (0-100%)",children:"Mean Score"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-800/50",children:n.map(s=>m.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[m.jsx("td",{className:"px-4 py-3",children:m.jsx(Vt,{to:"/runs/$runId",params:{runId:s.filename},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:s.filename})}),m.jsx("td",{className:"px-4 py-3 text-gray-400",children:s.target??"-"}),m.jsx("td",{className:"px-4 py-3 text-gray-400",children:s.experiment??"-"}),m.jsx("td",{className:"px-4 py-3 text-gray-400",children:g1(s.timestamp)}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums",children:s.test_count}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(Ua,{score:s.pass_rate})}),m.jsxs("td",{className:"px-4 py-3 text-right tabular-nums",children:[(s.avg_score*100).toFixed(1),"%"]})]},s.filename))})]})})}function v1(){const{data:n,isLoading:s}=s1();if(s)return m.jsx(p1,{});const i=(n==null?void 0:n.targets)??[];return i.length===0?m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[m.jsx("p",{className:"text-lg text-gray-400",children:"No targets found"}),m.jsx("p",{className:"mt-2 text-sm text-gray-500",children:"Targets will appear here once evaluations are run with target labels."})]}):m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("table",{className:"w-full text-left text-sm",children:[m.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:m.jsxs("tr",{children:[m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Runs"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Experiments"}),m.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Pass Rate"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Evals"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-800/50",children:i.map(r=>m.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[m.jsx("td",{className:"px-4 py-3 font-medium text-gray-200",children:r.name}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:r.run_count}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:r.experiment_count}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(Ua,{score:r.pass_rate})}),m.jsxs("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:[m.jsx("span",{className:"text-emerald-400",children:r.passed_count}),m.jsx("span",{className:"text-gray-600",children:"/"}),m.jsx("span",{children:r.eval_count})]})]},r.name))})]})})}function p1(){return m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("div",{className:"animate-pulse",children:[m.jsx("div",{className:"border-b border-gray-800 bg-gray-900/50 px-4 py-3",children:m.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"})}),["sk-1","sk-2","sk-3","sk-4","sk-5"].map(n=>m.jsxs("div",{className:"flex gap-4 border-b border-gray-800/50 px-4 py-3",children:[m.jsx("div",{className:"h-4 w-32 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-20 rounded bg-gray-800"})]},n))]})})}const A0=[{id:"runs",label:"Recent Runs"},{id:"experiments",label:"Experiments"},{id:"targets",label:"Targets"}],x1=ys("/")({component:b1});function b1(){const i=kS().location.search.tab,r=Df(),{data:o,isLoading:f,error:h}=wf(),g=A0.some(p=>p.id===i)?i:"runs";return m.jsxs("div",{className:"space-y-6",children:[m.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Evaluation Runs"}),m.jsx("div",{className:"border-b border-gray-800",children:m.jsx("div",{className:"flex gap-1",children:A0.map(p=>m.jsx("button",{type:"button",onClick:()=>r({to:"/",search:{tab:p.id}}),className:`px-4 py-2 text-sm font-medium transition-colors ${g===p.id?"border-b-2 border-cyan-400 text-cyan-400":"text-gray-400 hover:text-gray-300"}`,children:p.label},p.id))})}),g==="runs"&&m.jsx(S1,{data:o,isLoading:f,error:h}),g==="experiments"&&m.jsx(h1,{}),g==="targets"&&m.jsx(v1,{})]})}function S1({data:n,isLoading:s,error:i}){return s?m.jsx(R1,{}):i?m.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load runs: ",i.message]}):m.jsx(Cg,{runs:(n==null?void 0:n.runs)??[]})}function R1(){return m.jsx("div",{className:"space-y-2",children:["s1","s2","s3","s4","s5"].map(n=>m.jsx("div",{className:"h-12 animate-pulse rounded-lg bg-gray-900"},n))})}function vi({label:n,value:s,accent:i}){return m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[m.jsx("p",{className:"text-sm text-gray-400",children:n}),m.jsx("p",{className:`mt-1 text-2xl font-semibold tabular-nums ${i??"text-white"}`,children:s})]})}function gr({total:n,passed:s,failed:i,passRate:r,totalCost:o}){return m.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-5",children:[m.jsx(vi,{label:"Total",value:String(n)}),m.jsx(vi,{label:"Passed",value:String(s),accent:"text-emerald-400"}),m.jsx(vi,{label:"Failed",value:String(i),accent:"text-red-400"}),m.jsx(vi,{label:"Pass Rate",value:`${Math.round(r*100)}%`,accent:"text-cyan-400"}),o!==void 0&&m.jsx(vi,{label:"Cost",value:`$${o.toFixed(4)}`,accent:"text-amber-400"})]})}function _1(n){const s=new Map;for(const i of n){const r=i.category??"Uncategorized",o=i.dataset??"Uncategorized";s.has(r)||s.set(r,new Map);const f=s.get(r),h=f.get(o)??{passed:0,failed:0,total:0,scoreSum:0};h.total+=1,h.scoreSum+=i.score,i.score>=1?h.passed+=1:h.failed+=1,f.set(o,h)}return Array.from(s.entries()).map(([i,r])=>{const o=Array.from(r.entries()).map(([y,b])=>({name:y,...b,avgScore:b.total>0?b.scoreSum/b.total:0})).sort((y,b)=>y.name.localeCompare(b.name)),f=o.reduce((y,b)=>y+b.total,0),h=o.reduce((y,b)=>y+b.passed,0),g=o.reduce((y,b)=>y+b.failed,0),p=o.reduce((y,b)=>y+b.avgScore*b.total,0);return{name:i,datasets:o,total:f,passed:h,failed:g,avgScore:f>0?p/f:0}}).sort((i,r)=>i.name.localeCompare(r.name))}function j1({results:n,runId:s}){var y;const i=n.length,r=n.filter(b=>b.score>=1).length,o=i-r,f=i>0?r/i:0,h=n.reduce((b,v)=>b+(v.costUsd??0),0),g=_1(n),p=g.length>1;return i===0?m.jsxs("div",{className:"space-y-6",children:[m.jsx(gr,{total:0,passed:0,failed:0,passRate:0}),m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[m.jsx("p",{className:"text-lg text-gray-400",children:"No evaluations found"}),m.jsx("p",{className:"mt-2 text-sm text-gray-500",children:"This run has no results yet."})]})]}):m.jsxs("div",{className:"space-y-6",children:[m.jsx(gr,{total:i,passed:r,failed:o,passRate:f,totalCost:h>0?h:void 0}),p?m.jsxs("div",{className:"space-y-4",children:[m.jsx("h3",{className:"text-sm font-medium text-gray-400",children:"Categories"}),g.map(b=>m.jsx(E1,{category:b,runId:s},b.name))]}):m.jsxs("div",{className:"space-y-3",children:[m.jsx("h3",{className:"text-sm font-medium text-gray-400",children:"Datasets"}),m.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3",children:(y=g[0])==null?void 0:y.datasets.map(b=>m.jsx(Og,{dataset:b,runId:s},b.name))})]}),m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("table",{className:"w-full text-left text-sm",children:[m.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:m.jsxs("tr",{children:[m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Test ID"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),m.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Score"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Status"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Duration"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Cost"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-800/50",children:n.map((b,v)=>m.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[m.jsx("td",{className:"px-4 py-3",children:m.jsx(Vt,{to:"/evals/$runId/$evalId",params:{runId:s,evalId:b.testId},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:b.testId})}),m.jsx("td",{className:"px-4 py-3 text-gray-400",children:b.target??"-"}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(Ua,{score:b.score})}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(T1,{status:b.executionStatus})}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:b.durationMs!=null?`${(b.durationMs/1e3).toFixed(1)}s`:"-"}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:b.costUsd!=null?`$${b.costUsd.toFixed(4)}`:"-"})]},`${b.testId}-${v}`))})]})})]})}function E1({category:n,runId:s}){const[i,r]=et.useState(!0);return m.jsxs("div",{className:"rounded-lg border border-gray-800",children:[m.jsxs("button",{type:"button",onClick:()=>r(!i),className:"flex w-full items-center justify-between px-4 py-3 text-left transition-colors hover:bg-gray-900/50",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("span",{className:"text-xs text-gray-500",children:i?"▼":"▶"}),m.jsx("span",{className:"text-sm font-medium text-gray-200",children:n.name}),m.jsxs("span",{className:"text-xs text-gray-500",children:[n.datasets.length," dataset",n.datasets.length!==1?"s":""]})]}),m.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[m.jsxs("span",{className:"text-emerald-400",children:[n.passed," passed"]}),n.failed>0&&m.jsxs("span",{className:"text-red-400",children:[n.failed," failed"]}),m.jsxs("span",{className:"text-gray-500",children:[n.passed,"/",n.total]})]})]}),i&&m.jsx("div",{className:"border-t border-gray-800 p-3",children:m.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3",children:n.datasets.map(o=>m.jsx(Og,{dataset:o,runId:s},o.name))})})]})}function Og({dataset:n,runId:s}){return m.jsxs(Vt,{to:"/runs/$runId/dataset/$dataset",params:{runId:s,dataset:n.name},className:"rounded-lg border border-gray-800 bg-gray-900 p-3 text-left transition-colors hover:border-gray-700",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm font-medium text-gray-200 truncate",children:n.name}),m.jsxs("span",{className:"ml-2 text-xs text-gray-500",children:[n.passed,"/",n.total]})]}),m.jsx("div",{className:"mt-2",children:m.jsx(Ua,{score:n.avgScore})}),m.jsxs("div",{className:"mt-1 flex gap-3 text-xs",children:[m.jsxs("span",{className:"text-emerald-400",children:[n.passed," passed"]}),n.failed>0&&m.jsxs("span",{className:"text-red-400",children:[n.failed," failed"]})]})]})}function T1({status:n}){if(!n)return m.jsx("span",{className:"text-gray-500",children:"-"});const s=n==="success"||n==="completed",i=n==="error"||n==="failed";return m.jsx("span",{className:`inline-flex rounded-full px-2 py-0.5 text-xs font-medium ${s?"bg-emerald-900/50 text-emerald-400":i?"bg-red-900/50 text-red-400":"bg-gray-800 text-gray-400"}`,children:n})}const zg=ys("/runs/$runId")({component:N1});function N1(){const{runId:n}=zg.useParams(),{data:s,isLoading:i,error:r}=Ui(n);return i?m.jsxs("div",{className:"space-y-4",children:[m.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),m.jsx("div",{className:"grid grid-cols-5 gap-4",children:["s1","s2","s3","s4","s5"].map(o=>m.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},o))})]}):r?m.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load run: ",r.message]}):m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsxs("h1",{className:"text-2xl font-semibold text-white",children:["Run: ",n]}),m.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:["Source: ",s==null?void 0:s.source]})]}),m.jsx(j1,{results:(s==null?void 0:s.results)??[],runId:n})]})}const Dg=ys("/experiments/$experimentName")({component:M1});function M1(){var v;const{experimentName:n}=Dg.useParams(),{data:s,isLoading:i}=Uf(),{data:r,isLoading:o}=wf();if(i||o)return m.jsxs("div",{className:"space-y-4",children:[m.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),m.jsx("div",{className:"grid grid-cols-4 gap-4",children:["s1","s2","s3","s4"].map(S=>m.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},S))})]});const h=(v=s==null?void 0:s.experiments)==null?void 0:v.find(S=>S.name===n),g=(r==null?void 0:r.runs)??[],p=(h==null?void 0:h.pass_rate)??0,y=(h==null?void 0:h.run_count)??0,b=(h==null?void 0:h.target_count)??0;return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsx("h1",{className:"text-2xl font-semibold text-white",children:n}),m.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:[y," run",y!==1?"s":""," · ",b," target",b!==1?"s":"",(h==null?void 0:h.last_run)&&m.jsxs("span",{className:"ml-2",children:["· Last run: ",C0(h.last_run)]})]})]}),h&&m.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-4",children:[m.jsx(sr,{label:"Runs",value:String(y)}),m.jsx(sr,{label:"Targets",value:String(b)}),m.jsx(sr,{label:"Pass Rate",value:`${Math.round(p*100)}%`,accent:"text-cyan-400"}),m.jsx(sr,{label:"Last Run",value:C0(h.last_run)})]}),m.jsxs("div",{children:[m.jsx("h2",{className:"mb-4 text-lg font-medium text-gray-200",children:"All Runs"}),m.jsx(Cg,{runs:g})]})]})}function sr({label:n,value:s,accent:i}){return m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[m.jsx("p",{className:"text-sm text-gray-400",children:n}),m.jsx("p",{className:`mt-1 text-2xl font-semibold tabular-nums ${i??"text-white"}`,children:s})]})}function C0(n){if(!n)return"N/A";try{const s=new Date(n);return Number.isNaN(s.getTime())?"N/A":s.toLocaleString()}catch{return"N/A"}}function A1(n){var i;switch((i=n.split(".").pop())==null?void 0:i.toLowerCase()){case"ts":case"tsx":return"📘";case"json":return"📋";case"log":case"txt":return"📜";case"md":return"📝";default:return"📄"}}function wg(n){const s=[];for(const i of n)i.type==="dir"&&(s.push(i.path),i.children&&s.push(...wg(i.children)));return s}function Ug({node:n,selectedPath:s,onSelect:i,openFolders:r,toggleFolder:o,depth:f=0}){const h=n.type==="dir",g=r.has(n.path),p=s===n.path;return m.jsxs("div",{children:[m.jsxs("button",{type:"button",onClick:()=>{h?o(n.path):i(n.path)},className:`flex w-full items-center gap-2 rounded-md px-2 py-1 text-sm transition-colors ${p?"bg-cyan-400/20 text-cyan-400":"text-gray-300 hover:bg-gray-800/50 hover:text-gray-200"}`,style:{paddingLeft:`${f*16+8}px`},children:[m.jsx("span",{className:"flex-shrink-0 text-xs",children:h?g?"📂":"📁":A1(n.name)}),m.jsx("span",{className:"truncate",children:n.name})]}),h&&g&&n.children&&m.jsx("div",{children:n.children.map(y=>m.jsx(Ug,{node:y,selectedPath:s,onSelect:i,openFolders:r,toggleFolder:o,depth:f+1},y.path))})]})}function Lg({files:n,selectedPath:s,onSelect:i}){const[r,o]=et.useState(()=>new Set(wg(n))),f=h=>{o(g=>{const p=new Set(g);return p.has(h)?p.delete(h):p.add(h),p})};return m.jsxs("div",{className:"w-64 overflow-y-auto rounded-lg border border-gray-800 bg-gray-900 py-2",children:[n.length===0&&m.jsx("p",{className:"px-4 py-2 text-sm text-gray-500",children:"No files."}),n.map(h=>m.jsx(Ug,{node:h,selectedPath:s,onSelect:i,openFolders:r,toggleFolder:f},h.path))]})}const C1="modulepreload",O1=function(n){return"/"+n},O0={},z1=function(s,i,r){let o=Promise.resolve();if(i&&i.length>0){let h=function(y){return Promise.all(y.map(b=>Promise.resolve(b).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),p=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));o=h(i.map(y=>{if(y=O1(y),y in O0)return;O0[y]=!0;const b=y.endsWith(".css"),v=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${v}`))return;const S=document.createElement("link");if(S.rel=b?"stylesheet":C1,b||(S.as="script"),S.crossOrigin="",S.href=y,p&&S.setAttribute("nonce",p),document.head.appendChild(S),b)return new Promise((_,R)=>{S.addEventListener("load",_),S.addEventListener("error",()=>R(Error(`Unable to preload CSS for ${y}`)))})}))}function f(h){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=h,window.dispatchEvent(g),!g.defaultPrevented)throw h}return o.then(h=>{for(const g of h||[])g.status==="rejected"&&f(g.reason);return s().catch(f)})},D1=et.lazy(()=>z1(()=>import("./index-CE3-mmv0.js"),[]));function vr({value:n,language:s="json",height:i="400px"}){return m.jsx(et.Suspense,{fallback:m.jsx("div",{className:"flex items-center justify-center rounded-lg bg-gray-900 p-8 text-gray-500",children:"Loading editor..."}),children:m.jsx(D1,{height:i,language:s,value:n,theme:"vs-dark",options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13,lineNumbers:"on",wordWrap:"on",padding:{top:12}}})})}function Lf(n){for(const s of n){if(s.type==="file")return s.path;if(s.children){const i=Lf(s.children);if(i)return i}}return null}function w1({eval:n,runId:s}){const[i,r]=et.useState("steps"),o=[{id:"steps",label:"Steps"},{id:"output",label:"Output"},{id:"task",label:"Task"}];return m.jsxs("div",{className:"space-y-6",children:[m.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("h3",{className:"text-lg font-medium",children:n.testId}),m.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:[n.target&&m.jsxs("span",{children:["Target: ",n.target]}),n.durationMs!=null&&m.jsxs("span",{className:"ml-4",children:[(n.durationMs/1e3).toFixed(1),"s"]}),n.costUsd!=null&&m.jsxs("span",{className:"ml-4",children:["$",n.costUsd.toFixed(4)]})]})]}),m.jsx("div",{className:"w-48",children:m.jsx(Ua,{score:n.score})})]})}),n.scores&&n.scores.length>0&&m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[m.jsx("h4",{className:"mb-3 text-sm font-medium text-gray-400",children:"Evaluator Scores"}),m.jsx("div",{className:"space-y-3",children:n.scores.map((f,h)=>m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx("span",{className:"w-40 truncate text-sm text-gray-300",children:f.name??f.type??`Score ${h+1}`}),m.jsx("div",{className:"flex-1",children:m.jsx(Ua,{score:f.score})})]},`${f.name??f.type??h}`))})]}),m.jsx("div",{className:"border-b border-gray-800",children:m.jsx("div",{className:"flex gap-1",children:o.map(f=>m.jsx("button",{type:"button",onClick:()=>r(f.id),className:`px-4 py-2 text-sm font-medium transition-colors ${i===f.id?"border-b-2 border-cyan-400 text-cyan-400":"text-gray-400 hover:text-gray-300"}`,children:f.label},f.id))})}),m.jsxs("div",{children:[i==="steps"&&m.jsx(U1,{result:n}),i==="output"&&m.jsx(L1,{result:n,runId:s}),i==="task"&&m.jsx(B1,{result:n,runId:s})]})]})}function U1({result:n}){const s=n.assertions??[],i=n.score<1||n.executionStatus==="error"||n.executionStatus==="failed",r=[];n.error&&r.push(n.error),(n.executionStatus==="error"||n.executionStatus==="failed")&&r.push(`Execution status: ${n.executionStatus}`);const o=s.filter(f=>!f.passed);for(const f of o){const h=f.evidence?`${f.text}: ${f.evidence}`:f.text;r.push(h)}if(n.scores)for(const f of n.scores){if(f.score<1&&f.details){const h=typeof f.details=="string"?f.details:JSON.stringify(f.details,null,2);r.push(`[${f.name??f.type??"evaluator"}] ${h}`)}if(f.assertions){for(const h of f.assertions)if(!h.passed){const g=h.evidence?`${h.text}: ${h.evidence}`:h.text;r.includes(g)||r.push(g)}}}return m.jsxs("div",{className:"space-y-4",children:[s.length===0&&m.jsx("p",{className:"text-sm text-gray-500",children:"No assertion steps recorded."}),s.length>0&&m.jsx("div",{className:"space-y-2",children:s.map(f=>m.jsxs("div",{className:`flex items-start gap-3 rounded-lg border p-3 ${f.passed?"border-emerald-900/50 bg-emerald-950/20":"border-red-900/50 bg-red-950/20"}`,children:[m.jsx("span",{className:`mt-0.5 text-lg ${f.passed?"text-emerald-400":"text-red-400"}`,children:f.passed?"✓":"✗"}),m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsxs("p",{className:"text-sm text-gray-200",children:[f.text,f.durationMs!=null&&m.jsxs("span",{className:"ml-2 text-xs text-gray-500",children:["(",(f.durationMs/1e3).toFixed(1),"s)"]})]}),f.evidence&&m.jsx("p",{className:"mt-1 text-xs text-gray-400",children:f.evidence})]})]},`${f.text}-${f.passed}`))}),i&&r.length>0&&m.jsxs("div",{className:"rounded-lg border border-red-500/30 bg-red-500/10 p-4",children:[m.jsx("h4",{className:"mb-2 text-sm font-medium text-red-400",children:"Failure Reason"}),m.jsx("div",{className:"space-y-2",children:r.map(f=>m.jsx("p",{className:"text-sm text-gray-300",children:f},f))})]})]})}function L1({result:n,runId:s}){const i=n.testId,{data:r}=Ng(s,i),o=(r==null?void 0:r.files)??[],f=o.length>0,[h,g]=et.useState(null),p=h??(f?Lf(o):null),{data:y,isLoading:b}=Mg(s,i,p??""),v=n.output,S=v&&v.length>0?v.map(M=>`[${M.role}]
66
+ ${M.content}`).join(`
67
+
68
+ `):"";if(!f)return!v||v.length===0?m.jsx("p",{className:"text-sm text-gray-500",children:"No output available."}):m.jsx(vr,{value:S,language:"markdown"});const _=p?b?"Loading...":(y==null?void 0:y.content)??S:S,R=p?(y==null?void 0:y.language)??"plaintext":"markdown";return m.jsxs("div",{className:"flex h-[500px] gap-4",children:[m.jsx(Lg,{files:o,selectedPath:p,onSelect:g}),m.jsx("div",{className:"flex-1",children:m.jsx(vr,{value:_,language:R})})]})}function B1({result:n,runId:s}){const i=n.testId,{data:r}=Ng(s,i),o=(r==null?void 0:r.files)??[],f=o.length>0,[h,g]=et.useState(null),p=h??(f?Lf(o):null),{data:y,isLoading:b}=Mg(s,i,p??""),v=n.input,S=v&&v.length>0?v.map(M=>`[${M.role}]
69
+ ${M.content}`).join(`
70
+
71
+ `):"";if(!f)return!v||v.length===0?m.jsx("p",{className:"text-sm text-gray-500",children:"No task input available."}):m.jsx(vr,{value:S,language:"markdown"});const _=p?b?"Loading...":(y==null?void 0:y.content)??S:S,R=p?(y==null?void 0:y.language)??"plaintext":"markdown";return m.jsxs("div",{className:"flex h-[500px] gap-4",children:[m.jsx(Lg,{files:o,selectedPath:p,onSelect:g}),m.jsx("div",{className:"flex-1",children:m.jsx(vr,{value:_,language:R})})]})}const Bg=ys("/evals/$runId/$evalId")({component:H1});function H1(){const{runId:n,evalId:s}=Bg.useParams(),{data:i,isLoading:r,error:o}=Ui(n);if(r)return m.jsxs("div",{className:"space-y-4",children:[m.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),m.jsx("div",{className:"h-48 animate-pulse rounded-lg bg-gray-900"})]});if(o)return m.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load eval: ",o.message]});const f=i==null?void 0:i.results.find(h=>h.testId===s);return f?m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsxs("p",{className:"text-sm text-gray-400",children:["Run: ",n," / Eval: ",s]}),m.jsx("h1",{className:"text-2xl font-semibold text-white",children:s})]}),m.jsx(w1,{eval:f,runId:n})]}):m.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6 text-center",children:m.jsxs("p",{className:"text-gray-400",children:["Eval ",m.jsx("code",{className:"text-cyan-400",children:s})," not found in run"," ",m.jsx("code",{className:"text-cyan-400",children:n}),"."]})})}const Hg=ys("/runs/$runId_/dataset/$dataset")({component:q1});function q1(){const{runId:n,dataset:s}=Hg.useParams(),{data:i,isLoading:r,error:o}=Ui(n);if(r)return m.jsxs("div",{className:"space-y-4",children:[m.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),m.jsx("div",{className:"grid grid-cols-5 gap-4",children:["s1","s2","s3","s4","s5"].map(v=>m.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},v))})]});if(o)return m.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load run: ",o.message]});const f=((i==null?void 0:i.results)??[]).filter(v=>(v.dataset??"Uncategorized")===s),h=f.length,g=f.filter(v=>v.score>=1).length,p=h-g,y=h>0?g/h:0,b=f.reduce((v,S)=>v+(S.costUsd??0),0);return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsx("h1",{className:"text-2xl font-semibold text-white",children:s}),m.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:["Dataset in run: ",n]})]}),m.jsx(gr,{total:h,passed:g,failed:p,passRate:y,totalCost:b>0?b:void 0}),h===0?m.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:m.jsx("p",{className:"text-lg text-gray-400",children:"No evaluations in this dataset"})}):m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("table",{className:"w-full text-left text-sm",children:[m.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:m.jsxs("tr",{children:[m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Test ID"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),m.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Score"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Status"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Duration"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Cost"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-800/50",children:f.map((v,S)=>m.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[m.jsx("td",{className:"px-4 py-3",children:m.jsx(Vt,{to:"/evals/$runId/$evalId",params:{runId:n,evalId:v.testId},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:v.testId})}),m.jsx("td",{className:"px-4 py-3 text-gray-400",children:v.target??"-"}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(Ua,{score:v.score})}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(Q1,{status:v.executionStatus})}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:v.durationMs!=null?`${(v.durationMs/1e3).toFixed(1)}s`:"-"}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:v.costUsd!=null?`$${v.costUsd.toFixed(4)}`:"-"})]},`${v.testId}-${S}`))})]})})]})}function Q1({status:n}){if(!n)return m.jsx("span",{className:"text-gray-500",children:"-"});const s=n==="success"||n==="completed",i=n==="error"||n==="failed";return m.jsx("span",{className:`inline-flex rounded-full px-2 py-0.5 text-xs font-medium ${s?"bg-emerald-900/50 text-emerald-400":i?"bg-red-900/50 text-red-400":"bg-gray-800 text-gray-400"}`,children:n})}const qg=ys("/runs/$runId_/category/$category")({component:Y1});function Y1(){const{runId:n,category:s}=qg.useParams(),{data:i,isLoading:r,error:o}=Ag(n,s);if(r)return m.jsxs("div",{className:"space-y-4",children:[m.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),m.jsx("div",{className:"grid grid-cols-5 gap-4",children:["s1","s2","s3","s4","s5"].map(b=>m.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},b))})]});if(o)return m.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load category: ",o.message]});const f=(i==null?void 0:i.datasets)??[],h=f.reduce((b,v)=>b+v.total,0),g=f.reduce((b,v)=>b+v.passed,0),p=h-g,y=h>0?g/h:0;return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsx("h1",{className:"text-2xl font-semibold text-white",children:s}),m.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:["Category in run: ",n]})]}),m.jsx(gr,{total:h,passed:g,failed:p,passRate:y}),f.length===0?m.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:m.jsx("p",{className:"text-lg text-gray-400",children:"No datasets in this category"})}):m.jsxs("div",{className:"space-y-3",children:[m.jsx("h3",{className:"text-sm font-medium text-gray-400",children:"Datasets"}),m.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3",children:f.map(b=>m.jsxs(Vt,{to:"/runs/$runId/dataset/$dataset",params:{runId:n,dataset:b.name},className:"rounded-lg border border-gray-800 bg-gray-900 p-3 text-left transition-colors hover:border-gray-700",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm font-medium text-gray-200 truncate",children:b.name}),m.jsxs("span",{className:"ml-2 text-xs text-gray-500",children:[b.passed,"/",b.total]})]}),m.jsx("div",{className:"mt-2",children:m.jsx(Ua,{score:b.avg_score})}),m.jsxs("div",{className:"mt-1 flex gap-3 text-xs",children:[m.jsxs("span",{className:"text-emerald-400",children:[b.passed," passed"]}),b.failed>0&&m.jsxs("span",{className:"text-red-400",children:[b.failed," failed"]})]})]},b.name))})]})]})}const G1=x1.update({id:"/",path:"/",getParentRoute:()=>rl}),V1=zg.update({id:"/runs/$runId",path:"/runs/$runId",getParentRoute:()=>rl}),X1=Dg.update({id:"/experiments/$experimentName",path:"/experiments/$experimentName",getParentRoute:()=>rl}),K1=Bg.update({id:"/evals/$runId/$evalId",path:"/evals/$runId/$evalId",getParentRoute:()=>rl}),Z1=Hg.update({id:"/runs/$runId_/dataset/$dataset",path:"/runs/$runId/dataset/$dataset",getParentRoute:()=>rl}),J1=qg.update({id:"/runs/$runId_/category/$category",path:"/runs/$runId/category/$category",getParentRoute:()=>rl}),P1={IndexRoute:G1,ExperimentsExperimentNameRoute:X1,RunsRunIdRoute:V1,EvalsRunIdEvalIdRoute:K1,RunsRunIdCategoryCategoryRoute:J1,RunsRunIdDatasetDatasetRoute:Z1},k1=rl._addFileChildren(P1)._addFileTypes(),F1=new Qx({defaultOptions:{queries:{staleTime:5e3,refetchOnWindowFocus:!0}}}),$1=KS({routeTree:k1}),Qg=document.getElementById("root");if(!Qg)throw new Error("Root element not found");yx.createRoot(Qg).render(m.jsx(et.StrictMode,{children:m.jsx(Gx,{client:F1,children:m.jsx(PS,{router:$1})})}));export{bi as W,et as r};