agentv 4.3.4 → 4.4.1

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,65 @@
1
+ var $0=n=>{throw TypeError(n)};var Zo=(n,l,i)=>l.has(n)||$0("Cannot "+i);var _=(n,l,i)=>(Zo(n,l,"read from private field"),i?i.call(n):l.get(n)),ut=(n,l,i)=>l.has(n)?$0("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(n):l.set(n,i),et=(n,l,i,u)=>(Zo(n,l,"write to private field"),u?u.call(n,i):l.set(n,i),i),vt=(n,l,i)=>(Zo(n,l,"access private method"),i);var ou=(n,l,i,u)=>({set _(o){et(n,l,o,i)},get _(){return _(n,l,u)}});(function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))u(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&u(h)}).observe(document,{childList:!0,subtree:!0});function i(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function u(o){if(o.ep)return;o.ep=!0;const d=i(o);fetch(o.href,d)}})();function Mx(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Po={exports:{}},bi={};/**
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 J0;function Cx(){if(J0)return bi;J0=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(u,o,d){var h=null;if(d!==void 0&&(h=""+d),o.key!==void 0&&(h=""+o.key),"key"in o){d={};for(var y in o)y!=="key"&&(d[y]=o[y])}else d=o;return o=d.ref,{$$typeof:n,type:u,key:h,ref:o!==void 0?o:null,props:d}}return bi.Fragment=l,bi.jsx=i,bi.jsxs=i,bi}var I0;function Ax(){return I0||(I0=1,Po.exports=Cx()),Po.exports}var f=Ax(),$o={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 F0;function Ox(){if(F0)return mt;F0=1;var n=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function j(E){return E===null||typeof E!="object"?null:(E=S&&E[S]||E["@@iterator"],typeof E=="function"?E:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,C={};function U(E,Q,W){this.props=E,this.context=Q,this.refs=C,this.updater=W||N}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 $(){}$.prototype=U.prototype;function K(E,Q,W){this.props=E,this.context=Q,this.refs=C,this.updater=W||N}var L=K.prototype=new $;L.constructor=K,M(L,U.prototype),L.isPureReactComponent=!0;var X=Array.isArray;function k(){}var Z={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function J(E,Q,W){var tt=W.ref;return{$$typeof:n,type:E,key:Q,ref:tt!==void 0?tt:null,props:W}}function G(E,Q){return J(E.type,Q,E.props)}function I(E){return typeof E=="object"&&E!==null&&E.$$typeof===n}function lt(E){var Q={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(W){return Q[W]})}var it=/\/+/g;function ot(E,Q){return typeof E=="object"&&E!==null&&E.key!=null?lt(""+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(k,k):(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,W,tt,ht){var xt=typeof E;(xt==="undefined"||xt==="boolean")&&(E=null);var bt=!1;if(E===null)bt=!0;else switch(xt){case"bigint":case"string":case"number":bt=!0;break;case"object":switch(E.$$typeof){case n:case l:bt=!0;break;case b:return bt=E._init,D(bt(E._payload),Q,W,tt,ht)}}if(bt)return ht=ht(E),bt=tt===""?"."+ot(E,0):tt,X(ht)?(W="",bt!=null&&(W=bt.replace(it,"$&/")+"/"),D(ht,Q,W,"",function(la){return la})):ht!=null&&(I(ht)&&(ht=G(ht,W+(ht.key==null||E&&E.key===ht.key?"":(""+ht.key).replace(it,"$&/")+"/")+bt)),Q.push(ht)),1;bt=0;var Pt=tt===""?".":tt+":";if(X(E))for(var qt=0;qt<E.length;qt++)tt=E[qt],xt=Pt+ot(tt,qt),bt+=D(tt,Q,W,xt,ht);else if(qt=j(E),typeof qt=="function")for(E=qt.call(E),qt=0;!(tt=E.next()).done;)tt=tt.value,xt=Pt+ot(tt,qt++),bt+=D(tt,Q,W,xt,ht);else if(xt==="object"){if(typeof E.then=="function")return D(nt(E),Q,W,tt,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 bt}function V(E,Q,W){if(E==null)return E;var tt=[],ht=0;return D(E,tt,"","",function(xt){return Q.call(W,xt,ht++)}),tt}function at(E){if(E._status===-1){var Q=E._result;Q=Q(),Q.then(function(W){(E._status===0||E._status===-1)&&(E._status=1,E._result=W)},function(W){(E._status===0||E._status===-1)&&(E._status=2,E._result=W)}),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)},ft={map:V,forEach:function(E,Q,W){V(E,function(){Q.apply(this,arguments)},W)},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(!I(E))throw Error("React.Children.only expected to receive a single React element child.");return E}};return mt.Activity=v,mt.Children=ft,mt.Component=U,mt.Fragment=i,mt.Profiler=o,mt.PureComponent=K,mt.StrictMode=u,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,W){if(E==null)throw Error("The argument must be a React element, but you passed "+E+".");var tt=M({},E.props),ht=E.key;if(Q!=null)for(xt in Q.key!==void 0&&(ht=""+Q.key),Q)!P.call(Q,xt)||xt==="key"||xt==="__self"||xt==="__source"||xt==="ref"&&Q.ref===void 0||(tt[xt]=Q[xt]);var xt=arguments.length-2;if(xt===1)tt.children=W;else if(1<xt){for(var bt=Array(xt),Pt=0;Pt<xt;Pt++)bt[Pt]=arguments[Pt+2];tt.children=bt}return J(E.type,ht,tt)},mt.createContext=function(E){return E={$$typeof:h,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null},E.Provider=E,E.Consumer={$$typeof:d,_context:E},E},mt.createElement=function(E,Q,W){var tt,ht={},xt=null;if(Q!=null)for(tt in Q.key!==void 0&&(xt=""+Q.key),Q)P.call(Q,tt)&&tt!=="key"&&tt!=="__self"&&tt!=="__source"&&(ht[tt]=Q[tt]);var bt=arguments.length-2;if(bt===1)ht.children=W;else if(1<bt){for(var Pt=Array(bt),qt=0;qt<bt;qt++)Pt[qt]=arguments[qt+2];ht.children=Pt}if(E&&E.defaultProps)for(tt in bt=E.defaultProps,bt)ht[tt]===void 0&&(ht[tt]=bt[tt]);return J(E,xt,ht)},mt.createRef=function(){return{current:null}},mt.forwardRef=function(E){return{$$typeof:y,render:E}},mt.isValidElement=I,mt.lazy=function(E){return{$$typeof:b,_payload:{_status:-1,_result:E},_init:at}},mt.memo=function(E,Q){return{$$typeof:g,type:E,compare:Q===void 0?null:Q}},mt.startTransition=function(E){var Q=Z.T,W={};Z.T=W;try{var tt=E(),ht=Z.S;ht!==null&&ht(W,tt),typeof tt=="object"&&tt!==null&&typeof tt.then=="function"&&tt.then(k,yt)}catch(xt){yt(xt)}finally{Q!==null&&W.types!==null&&(Q.types=W.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,W){return Z.H.useActionState(E,Q,W)},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,W){return Z.H.useImperativeHandle(E,Q,W)},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,W){return Z.H.useReducer(E,Q,W)},mt.useRef=function(E){return Z.H.useRef(E)},mt.useState=function(E){return Z.H.useState(E)},mt.useSyncExternalStore=function(E,Q,W){return Z.H.useSyncExternalStore(E,Q,W)},mt.useTransition=function(){return Z.H.useTransition()},mt.version="19.2.4",mt}var k0;function Gi(){return k0||(k0=1,$o.exports=Ox()),$o.exports}var F=Gi();const Ai=Mx(F);var Jo={exports:{}},Si={},Io={exports:{}},Fo={};/**
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 W0;function zx(){return W0||(W0=1,(function(n){function l(D,V){var at=D.length;D.push(V);t:for(;0<at;){var yt=at-1>>>1,ft=D[yt];if(0<o(ft,V))D[yt]=V,D[at]=ft,at=yt;else break t}}function i(D){return D.length===0?null:D[0]}function u(D){if(D.length===0)return null;var V=D[0],at=D.pop();if(at!==V){D[0]=at;t:for(var yt=0,ft=D.length,E=ft>>>1;yt<E;){var Q=2*(yt+1)-1,W=D[Q],tt=Q+1,ht=D[tt];if(0>o(W,at))tt<ft&&0>o(ht,W)?(D[yt]=ht,D[tt]=at,yt=tt):(D[yt]=W,D[Q]=at,yt=Q);else if(tt<ft&&0>o(ht,at))D[yt]=ht,D[tt]=at,yt=tt;else break t}}return V}function o(D,V){var at=D.sortIndex-V.sortIndex;return at!==0?at:D.id-V.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;n.unstable_now=function(){return d.now()}}else{var h=Date,y=h.now();n.unstable_now=function(){return h.now()-y}}var p=[],g=[],b=1,v=null,S=3,j=!1,N=!1,M=!1,C=!1,U=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function L(D){for(var V=i(g);V!==null;){if(V.callback===null)u(g);else if(V.startTime<=D)u(g),V.sortIndex=V.expirationTime,l(p,V);else break;V=i(g)}}function X(D){if(M=!1,L(D),!N)if(i(p)!==null)N=!0,k||(k=!0,lt());else{var V=i(g);V!==null&&nt(X,V.startTime-D)}}var k=!1,Z=-1,P=5,J=-1;function G(){return C?!0:!(n.unstable_now()-J<P)}function I(){if(C=!1,k){var D=n.unstable_now();J=D;var V=!0;try{t:{N=!1,M&&(M=!1,$(Z),Z=-1),j=!0;var at=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 ft=yt(v.expirationTime<=D);if(D=n.unstable_now(),typeof ft=="function"){v.callback=ft,L(D),V=!0;break e}v===i(p)&&u(p),L(D)}else u(p);v=i(p)}if(v!==null)V=!0;else{var E=i(g);E!==null&&nt(X,E.startTime-D),V=!1}}break t}finally{v=null,S=at,j=!1}V=void 0}}finally{V?lt():k=!1}}}var lt;if(typeof K=="function")lt=function(){K(I)};else if(typeof MessageChannel<"u"){var it=new MessageChannel,ot=it.port2;it.port1.onmessage=I,lt=function(){ot.postMessage(null)}}else lt=function(){U(I,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"):P=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 at=S;S=V;try{return D()}finally{S=at}},n.unstable_requestPaint=function(){C=!0},n.unstable_runWithPriority=function(D,V){switch(D){case 1:case 2:case 3:case 4:case 5:break;default:D=3}var at=S;S=D;try{return V()}finally{S=at}},n.unstable_scheduleCallback=function(D,V,at){var yt=n.unstable_now();switch(typeof at=="object"&&at!==null?(at=at.delay,at=typeof at=="number"&&0<at?yt+at:yt):at=yt,D){case 1:var ft=-1;break;case 2:ft=250;break;case 5:ft=1073741823;break;case 4:ft=1e4;break;default:ft=5e3}return ft=at+ft,D={id:b++,callback:V,priorityLevel:D,startTime:at,expirationTime:ft,sortIndex:-1},at>yt?(D.sortIndex=at,l(g,D),i(p)===null&&D===i(g)&&(M?($(Z),Z=-1):M=!0,nt(X,at-yt))):(D.sortIndex=ft,l(p,D),N||j||(N=!0,k||(k=!0,lt()))),D},n.unstable_shouldYield=G,n.unstable_wrapCallback=function(D){var V=S;return function(){var at=S;S=V;try{return D.apply(this,arguments)}finally{S=at}}}})(Fo)),Fo}var ty;function Dx(){return ty||(ty=1,Io.exports=zx()),Io.exports}var ko={exports:{}},he={};/**
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 ey;function wx(){if(ey)return he;ey=1;var n=Gi();function l(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)g+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var u={d:{f:i,r:function(){throw Error(l(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 d(p,g,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:p,containerInfo:g,implementation:b}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function y(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return he.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=u,he.createPortal=function(p,g){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(l(299));return d(p,g,null,b)},he.flushSync=function(p){var g=h.T,b=u.p;try{if(h.T=null,u.p=2,p)return p()}finally{h.T=g,u.p=b,u.d.f()}},he.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,u.d.C(p,g))},he.prefetchDNS=function(p){typeof p=="string"&&u.d.D(p)},he.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var b=g.as,v=y(b,g.crossOrigin),S=typeof g.integrity=="string"?g.integrity:void 0,j=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;b==="style"?u.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:j}):b==="script"&&u.d.X(p,{crossOrigin:v,integrity:S,fetchPriority:j,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},he.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var b=y(g.as,g.crossOrigin);u.d.M(p,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&u.d.M(p)},he.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var b=g.as,v=y(b,g.crossOrigin);u.d.L(p,b,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},he.preloadModule=function(p,g){if(typeof p=="string")if(g){var b=y(g.as,g.crossOrigin);u.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else u.d.m(p)},he.requestFormReset=function(p){u.d.r(p)},he.unstable_batchedUpdates=function(p,g){return p(g)},he.useFormState=function(p,g,b){return h.H.useFormState(p,g,b)},he.useFormStatus=function(){return h.H.useHostTransitionStatus()},he.version="19.2.4",he}var ay;function lg(){if(ay)return ko.exports;ay=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(l){console.error(l)}}return n(),ko.exports=wx(),ko.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 ny;function Ux(){if(ny)return Si;ny=1;var n=Dx(),l=Gi(),i=lg();function u(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 d(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 y(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(d(t)!==t)throw Error(u(188))}function g(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(u(188));return e!==t?null:t}for(var a=t,s=e;;){var r=a.return;if(r===null)break;var c=r.alternate;if(c===null){if(s=r.return,s!==null){a=s;continue}break}if(r.child===c.child){for(c=r.child;c;){if(c===a)return p(r),t;if(c===s)return p(r),e;c=c.sibling}throw Error(u(188))}if(a.return!==s.return)a=r,s=c;else{for(var m=!1,x=r.child;x;){if(x===a){m=!0,a=r,s=c;break}if(x===s){m=!0,s=r,a=c;break}x=x.sibling}if(!m){for(x=c.child;x;){if(x===a){m=!0,a=c,s=r;break}if(x===s){m=!0,s=c,a=r;break}x=x.sibling}if(!m)throw Error(u(189))}}if(a.alternate!==s)throw Error(u(190))}if(a.tag!==3)throw Error(u(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"),j=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),$=Symbol.for("react.consumer"),K=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),G=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function lt(t){return t===null||typeof t!="object"?null:(t=I&&t[I]||t["@@iterator"],typeof t=="function"?t:null)}var it=Symbol.for("react.client.reference");function ot(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 C:return"StrictMode";case X:return"Suspense";case k:return"SuspenseList";case J:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case N:return"Portal";case K:return t.displayName||"Context";case $: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:ot(t.type)||"Memo";case P:e=t._payload,t=t._init;try{return ot(t(e))}catch{}}return null}var nt=Array.isArray,D=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,at={pending:!1,data:null,method:null,action:null},yt=[],ft=-1;function E(t){return{current:t}}function Q(t){0>ft||(t.current=yt[ft],yt[ft]=null,ft--)}function W(t,e){ft++,yt[ft]=t.current,t.current=e}var tt=E(null),ht=E(null),xt=E(null),bt=E(null);function Pt(t,e){switch(W(xt,e),W(ht,t),W(tt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?p0(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=p0(e),t=v0(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q(tt),W(tt,t)}function qt(){Q(tt),Q(ht),Q(xt)}function la(t){t.memoizedState!==null&&W(bt,t);var e=tt.current,a=v0(e,t.type);e!==a&&(W(ht,t),W(tt,a))}function ga(t){ht.current===t&&(Q(tt),Q(ht)),bt.current===t&&(Q(bt),gi._currentValue=at)}var vs,El;function pa(t){if(vs===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);vs=e&&e[1]||"",El=-1<a.stack.indexOf(`
42
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
43
+ `+vs+t+El}var xs=!1;function bs(t,e){if(!t||xs)return"";xs=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var s={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]}};s.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(s.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(s.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=s.DetermineComponentFrameRoot(),m=c[0],x=c[1];if(m&&x){var R=m.split(`
44
+ `),z=x.split(`
45
+ `);for(r=s=0;s<R.length&&!R[s].includes("DetermineComponentFrameRoot");)s++;for(;r<z.length&&!z[r].includes("DetermineComponentFrameRoot");)r++;if(s===R.length||r===z.length)for(s=R.length-1,r=z.length-1;1<=s&&0<=r&&R[s]!==z[r];)r--;for(;1<=s&&0<=r;s--,r--)if(R[s]!==z[r]){if(s!==1||r!==1)do if(s--,r--,0>r||R[s]!==z[r]){var H=`
46
+ `+R[s].replace(" at new "," at ");return t.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",t.displayName)),H}while(1<=s&&0<=r);break}}}finally{xs=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?pa(a):""}function Xa(t,e){switch(t.tag){case 26:case 27:case 5:return pa(t.type);case 16:return pa("Lazy");case 13:return t.child!==e&&e!==null?pa("Suspense Fallback"):pa("Suspense");case 19:return pa("SuspenseList");case 0:case 15:return bs(t.type,!1);case 11:return bs(t.type.render,!1);case 1:return bs(t.type,!0);case 31:return pa("Activity");default:return""}}function Ss(t){try{var e="",a=null;do e+=Xa(t,a),a=t,t=t.return;while(t);return e}catch(s){return`
47
+ Error generating stack: `+s.message+`
48
+ `+s.stack}}var We=Object.prototype.hasOwnProperty,Tl=n.unstable_scheduleCallback,js=n.unstable_cancelCallback,zu=n.unstable_shouldYield,Ki=n.unstable_requestPaint,St=n.unstable_now,de=n.unstable_getCurrentPriorityLevel,ia=n.unstable_ImmediatePriority,Zi=n.unstable_UserBlockingPriority,Pi=n.unstable_NormalPriority,cp=n.unstable_LowPriority,Ff=n.unstable_IdlePriority,op=n.log,fp=n.unstable_setDisableYieldValue,Ml=null,Oe=null;function Ka(t){if(typeof op=="function"&&fp(t),Oe&&typeof Oe.setStrictMode=="function")try{Oe.setStrictMode(Ml,t)}catch{}}var ze=Math.clz32?Math.clz32:mp,dp=Math.log,hp=Math.LN2;function mp(t){return t>>>=0,t===0?32:31-(dp(t)/hp|0)|0}var $i=256,Ji=262144,Ii=4194304;function Un(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 Fi(t,e,a){var s=t.pendingLanes;if(s===0)return 0;var r=0,c=t.suspendedLanes,m=t.pingedLanes;t=t.warmLanes;var x=s&134217727;return x!==0?(s=x&~c,s!==0?r=Un(s):(m&=x,m!==0?r=Un(m):a||(a=x&~t,a!==0&&(r=Un(a))))):(x=s&~c,x!==0?r=Un(x):m!==0?r=Un(m):a||(a=s&~t,a!==0&&(r=Un(a)))),r===0?0:e!==0&&e!==r&&(e&c)===0&&(c=r&-r,a=e&-e,c>=a||c===32&&(a&4194048)!==0)?e:r}function Cl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function yp(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 kf(){var t=Ii;return Ii<<=1,(Ii&62914560)===0&&(Ii=4194304),t}function Du(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function Al(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function gp(t,e,a,s,r,c){var m=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,R=t.expirationTimes,z=t.hiddenUpdates;for(a=m&~a;0<a;){var H=31-ze(a),Y=1<<H;x[H]=0,R[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}s!==0&&Wf(t,s,0),c!==0&&r===0&&t.tag!==0&&(t.suspendedLanes|=c&~(m&~e))}function Wf(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var s=31-ze(e);t.entangledLanes|=e,t.entanglements[s]=t.entanglements[s]|1073741824|a&261930}function td(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var s=31-ze(a),r=1<<s;r&e|t[s]&e&&(t[s]|=e),a&=~r}}function ed(t,e){var a=e&-e;return a=(a&42)!==0?1:wu(a),(a&(t.suspendedLanes|e))!==0?0:a}function wu(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 Uu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function ad(){var t=V.p;return t!==0?t:(t=window.event,t===void 0?32:Y0(t.type))}function nd(t,e){var a=V.p;try{return V.p=t,e()}finally{V.p=a}}var Za=Math.random().toString(36).slice(2),le="__reactFiber$"+Za,Se="__reactProps$"+Za,Ns="__reactContainer$"+Za,Lu="__reactEvents$"+Za,pp="__reactListeners$"+Za,vp="__reactHandles$"+Za,sd="__reactResources$"+Za,Ol="__reactMarker$"+Za;function Bu(t){delete t[le],delete t[Se],delete t[Lu],delete t[pp],delete t[vp]}function Rs(t){var e=t[le];if(e)return e;for(var a=t.parentNode;a;){if(e=a[Ns]||a[le]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=_0(t);t!==null;){if(a=t[le])return a;t=_0(t)}return e}t=a,a=t.parentNode}return null}function _s(t){if(t=t[le]||t[Ns]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function zl(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(u(33))}function Es(t){var e=t[sd];return e||(e=t[sd]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ae(t){t[Ol]=!0}var ld=new Set,id={};function Ln(t,e){Ts(t,e),Ts(t+"Capture",e)}function Ts(t,e){for(id[t]=e,t=0;t<e.length;t++)ld.add(e[t])}var xp=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]*$"),rd={},ud={};function bp(t){return We.call(ud,t)?!0:We.call(rd,t)?!1:xp.test(t)?ud[t]=!0:(rd[t]=!0,!1)}function ki(t,e,a){if(bp(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var s=e.toLowerCase().slice(0,5);if(s!=="data-"&&s!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function Wi(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 va(t,e,a,s){if(s===null)t.removeAttribute(a);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+s)}}function Ye(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function cd(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Sp(t,e,a){var s=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var r=s.get,c=s.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return r.call(this)},set:function(m){a=""+m,c.call(this,m)}}),Object.defineProperty(t,e,{enumerable:s.enumerable}),{getValue:function(){return a},setValue:function(m){a=""+m},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Hu(t){if(!t._valueTracker){var e=cd(t)?"checked":"value";t._valueTracker=Sp(t,e,""+t[e])}}function od(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),s="";return t&&(s=cd(t)?t.checked?"true":"false":t.value),t=s,t!==a?(e.setValue(t),!0):!1}function tr(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 jp=/[\n"\\]/g;function Ge(t){return t.replace(jp,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function qu(t,e,a,s,r,c,m,x){t.name="",m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.type=m:t.removeAttribute("type"),e!=null?m==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Ye(e)):t.value!==""+Ye(e)&&(t.value=""+Ye(e)):m!=="submit"&&m!=="reset"||t.removeAttribute("value"),e!=null?Qu(t,m,Ye(e)):a!=null?Qu(t,m,Ye(a)):s!=null&&t.removeAttribute("value"),r==null&&c!=null&&(t.defaultChecked=!!c),r!=null&&(t.checked=r&&typeof r!="function"&&typeof r!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+Ye(x):t.removeAttribute("name")}function fd(t,e,a,s,r,c,m,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)){Hu(t);return}a=a!=null?""+Ye(a):"",e=e!=null?""+Ye(e):a,x||e===t.value||(t.value=e),t.defaultValue=e}s=s??r,s=typeof s!="function"&&typeof s!="symbol"&&!!s,t.checked=x?t.checked:!!s,t.defaultChecked=!!s,m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(t.name=m),Hu(t)}function Qu(t,e,a){e==="number"&&tr(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function Ms(t,e,a,s){if(t=t.options,e){e={};for(var r=0;r<a.length;r++)e["$"+a[r]]=!0;for(a=0;a<t.length;a++)r=e.hasOwnProperty("$"+t[a].value),t[a].selected!==r&&(t[a].selected=r),r&&s&&(t[a].defaultSelected=!0)}else{for(a=""+Ye(a),e=null,r=0;r<t.length;r++){if(t[r].value===a){t[r].selected=!0,s&&(t[r].defaultSelected=!0);return}e!==null||t[r].disabled||(e=t[r])}e!==null&&(e.selected=!0)}}function dd(t,e,a){if(e!=null&&(e=""+Ye(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+Ye(a):""}function hd(t,e,a,s){if(e==null){if(s!=null){if(a!=null)throw Error(u(92));if(nt(s)){if(1<s.length)throw Error(u(93));s=s[0]}a=s}a==null&&(a=""),e=a}a=Ye(e),t.defaultValue=a,s=t.textContent,s===a&&s!==""&&s!==null&&(t.value=s),Hu(t)}function Cs(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var Np=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 md(t,e,a){var s=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?s?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":s?t.setProperty(e,a):typeof a!="number"||a===0||Np.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function yd(t,e,a){if(e!=null&&typeof e!="object")throw Error(u(62));if(t=t.style,a!=null){for(var s in a)!a.hasOwnProperty(s)||e!=null&&e.hasOwnProperty(s)||(s.indexOf("--")===0?t.setProperty(s,""):s==="float"?t.cssFloat="":t[s]="");for(var r in e)s=e[r],e.hasOwnProperty(r)&&a[r]!==s&&md(t,r,s)}else for(var c in e)e.hasOwnProperty(c)&&md(t,c,e[c])}function Yu(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 Rp=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"]]),_p=/^[\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 er(t){return _p.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function xa(){}var Gu=null;function Vu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var As=null,Os=null;function gd(t){var e=_s(t);if(e&&(t=e.stateNode)){var a=t[Se]||null;t:switch(t=e.stateNode,e.type){case"input":if(qu(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="'+Ge(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var s=a[e];if(s!==t&&s.form===t.form){var r=s[Se]||null;if(!r)throw Error(u(90));qu(s,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(e=0;e<a.length;e++)s=a[e],s.form===t.form&&od(s)}break t;case"textarea":dd(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&Ms(t,!!a.multiple,e,!1)}}}var Xu=!1;function pd(t,e,a){if(Xu)return t(e,a);Xu=!0;try{var s=t(e);return s}finally{if(Xu=!1,(As!==null||Os!==null)&&(Gr(),As&&(e=As,t=Os,Os=As=null,gd(e),t)))for(e=0;e<t.length;e++)gd(t[e])}}function Dl(t,e){var a=t.stateNode;if(a===null)return null;var s=a[Se]||null;if(s===null)return null;a=s[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":(s=!s.disabled)||(t=t.type,s=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!s;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(u(231,e,typeof a));return a}var ba=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ku=!1;if(ba)try{var wl={};Object.defineProperty(wl,"passive",{get:function(){Ku=!0}}),window.addEventListener("test",wl,wl),window.removeEventListener("test",wl,wl)}catch{Ku=!1}var Pa=null,Zu=null,ar=null;function vd(){if(ar)return ar;var t,e=Zu,a=e.length,s,r="value"in Pa?Pa.value:Pa.textContent,c=r.length;for(t=0;t<a&&e[t]===r[t];t++);var m=a-t;for(s=1;s<=m&&e[a-s]===r[c-s];s++);return ar=r.slice(t,1<s?1-s:void 0)}function nr(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 sr(){return!0}function xd(){return!1}function je(t){function e(a,s,r,c,m){this._reactName=a,this._targetInst=r,this.type=s,this.nativeEvent=c,this.target=m,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)?sr:xd,this.isPropagationStopped=xd,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=sr)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=sr)},persist:function(){},isPersistent:sr}),e}var Bn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lr=je(Bn),Ul=v({},Bn,{view:0,detail:0}),Ep=je(Ul),Pu,$u,Ll,ir=v({},Ul,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Iu,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!==Ll&&(Ll&&t.type==="mousemove"?(Pu=t.screenX-Ll.screenX,$u=t.screenY-Ll.screenY):$u=Pu=0,Ll=t),Pu)},movementY:function(t){return"movementY"in t?t.movementY:$u}}),bd=je(ir),Tp=v({},ir,{dataTransfer:0}),Mp=je(Tp),Cp=v({},Ul,{relatedTarget:0}),Ju=je(Cp),Ap=v({},Bn,{animationName:0,elapsedTime:0,pseudoElement:0}),Op=je(Ap),zp=v({},Bn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Dp=je(zp),wp=v({},Bn,{data:0}),Sd=je(wp),Up={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lp={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"},Bp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Hp(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Bp[t])?!!e[t]:!1}function Iu(){return Hp}var qp=v({},Ul,{key:function(t){if(t.key){var e=Up[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=nr(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Lp[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Iu,charCode:function(t){return t.type==="keypress"?nr(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?nr(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Qp=je(qp),Yp=v({},ir,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jd=je(Yp),Gp=v({},Ul,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Iu}),Vp=je(Gp),Xp=v({},Bn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Kp=je(Xp),Zp=v({},ir,{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}),Pp=je(Zp),$p=v({},Bn,{newState:0,oldState:0}),Jp=je($p),Ip=[9,13,27,32],Fu=ba&&"CompositionEvent"in window,Bl=null;ba&&"documentMode"in document&&(Bl=document.documentMode);var Fp=ba&&"TextEvent"in window&&!Bl,Nd=ba&&(!Fu||Bl&&8<Bl&&11>=Bl),Rd=" ",_d=!1;function Ed(t,e){switch(t){case"keyup":return Ip.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Td(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var zs=!1;function kp(t,e){switch(t){case"compositionend":return Td(e);case"keypress":return e.which!==32?null:(_d=!0,Rd);case"textInput":return t=e.data,t===Rd&&_d?null:t;default:return null}}function Wp(t,e){if(zs)return t==="compositionend"||!Fu&&Ed(t,e)?(t=vd(),ar=Zu=Pa=null,zs=!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 Nd&&e.locale!=="ko"?null:e.data;default:return null}}var tv={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"?!!tv[t.type]:e==="textarea"}function Cd(t,e,a,s){As?Os?Os.push(s):Os=[s]:As=s,e=Jr(e,"onChange"),0<e.length&&(a=new lr("onChange","change",null,a,s),t.push({event:a,listeners:e}))}var Hl=null,ql=null;function ev(t){f0(t,0)}function rr(t){var e=zl(t);if(od(e))return t}function Ad(t,e){if(t==="change")return e}var Od=!1;if(ba){var ku;if(ba){var Wu="oninput"in document;if(!Wu){var zd=document.createElement("div");zd.setAttribute("oninput","return;"),Wu=typeof zd.oninput=="function"}ku=Wu}else ku=!1;Od=ku&&(!document.documentMode||9<document.documentMode)}function Dd(){Hl&&(Hl.detachEvent("onpropertychange",wd),ql=Hl=null)}function wd(t){if(t.propertyName==="value"&&rr(ql)){var e=[];Cd(e,ql,t,Vu(t)),pd(ev,e)}}function av(t,e,a){t==="focusin"?(Dd(),Hl=e,ql=a,Hl.attachEvent("onpropertychange",wd)):t==="focusout"&&Dd()}function nv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return rr(ql)}function sv(t,e){if(t==="click")return rr(e)}function lv(t,e){if(t==="input"||t==="change")return rr(e)}function iv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var De=typeof Object.is=="function"?Object.is:iv;function Ql(t,e){if(De(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),s=Object.keys(e);if(a.length!==s.length)return!1;for(s=0;s<a.length;s++){var r=a[s];if(!We.call(e,r)||!De(t[r],e[r]))return!1}return!0}function Ud(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Ld(t,e){var a=Ud(t);t=0;for(var s;a;){if(a.nodeType===3){if(s=t+a.textContent.length,t<=e&&s>=e)return{node:a,offset:e-t};t=s}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=Ud(a)}}function Bd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Bd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Hd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=tr(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=tr(t.document)}return e}function tc(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 rv=ba&&"documentMode"in document&&11>=document.documentMode,Ds=null,ec=null,Yl=null,ac=!1;function qd(t,e,a){var s=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;ac||Ds==null||Ds!==tr(s)||(s=Ds,"selectionStart"in s&&tc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),Yl&&Ql(Yl,s)||(Yl=s,s=Jr(ec,"onSelect"),0<s.length&&(e=new lr("onSelect","select",null,e,a),t.push({event:e,listeners:s}),e.target=Ds)))}function Hn(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var ws={animationend:Hn("Animation","AnimationEnd"),animationiteration:Hn("Animation","AnimationIteration"),animationstart:Hn("Animation","AnimationStart"),transitionrun:Hn("Transition","TransitionRun"),transitionstart:Hn("Transition","TransitionStart"),transitioncancel:Hn("Transition","TransitionCancel"),transitionend:Hn("Transition","TransitionEnd")},nc={},Qd={};ba&&(Qd=document.createElement("div").style,"AnimationEvent"in window||(delete ws.animationend.animation,delete ws.animationiteration.animation,delete ws.animationstart.animation),"TransitionEvent"in window||delete ws.transitionend.transition);function qn(t){if(nc[t])return nc[t];if(!ws[t])return t;var e=ws[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in Qd)return nc[t]=e[a];return t}var Yd=qn("animationend"),Gd=qn("animationiteration"),Vd=qn("animationstart"),uv=qn("transitionrun"),cv=qn("transitionstart"),ov=qn("transitioncancel"),Xd=qn("transitionend"),Kd=new Map,sc="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(" ");sc.push("scrollEnd");function ta(t,e){Kd.set(t,e),Ln(e,[t])}var ur=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)},Ve=[],Us=0,lc=0;function cr(){for(var t=Us,e=lc=Us=0;e<t;){var a=Ve[e];Ve[e++]=null;var s=Ve[e];Ve[e++]=null;var r=Ve[e];Ve[e++]=null;var c=Ve[e];if(Ve[e++]=null,s!==null&&r!==null){var m=s.pending;m===null?r.next=r:(r.next=m.next,m.next=r),s.pending=r}c!==0&&Zd(a,r,c)}}function or(t,e,a,s){Ve[Us++]=t,Ve[Us++]=e,Ve[Us++]=a,Ve[Us++]=s,lc|=s,t.lanes|=s,t=t.alternate,t!==null&&(t.lanes|=s)}function ic(t,e,a,s){return or(t,e,a,s),fr(t)}function Qn(t,e){return or(t,null,null,e),fr(t)}function Zd(t,e,a){t.lanes|=a;var s=t.alternate;s!==null&&(s.lanes|=a);for(var r=!1,c=t.return;c!==null;)c.childLanes|=a,s=c.alternate,s!==null&&(s.childLanes|=a),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(r=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,r&&e!==null&&(r=31-ze(a),t=c.hiddenUpdates,s=t[r],s===null?t[r]=[e]:s.push(e),e.lane=a|536870912),c):null}function fr(t){if(50<ci)throw ci=0,go=null,Error(u(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ls={};function fv(t,e,a,s){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=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function we(t,e,a,s){return new fv(t,e,a,s)}function rc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Sa(t,e){var a=t.alternate;return a===null?(a=we(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 Pd(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 dr(t,e,a,s,r,c){var m=0;if(s=t,typeof t=="function")rc(t)&&(m=1);else if(typeof t=="string")m=gx(t,a,tt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case J:return t=we(31,a,e,r),t.elementType=J,t.lanes=c,t;case M:return Yn(a.children,r,c,e);case C:m=8,r|=24;break;case U:return t=we(12,a,e,r|2),t.elementType=U,t.lanes=c,t;case X:return t=we(13,a,e,r),t.elementType=X,t.lanes=c,t;case k:return t=we(19,a,e,r),t.elementType=k,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case K:m=10;break t;case $:m=9;break t;case L:m=11;break t;case Z:m=14;break t;case P:m=16,s=null;break t}m=29,a=Error(u(130,t===null?"null":typeof t,"")),s=null}return e=we(m,a,e,r),e.elementType=t,e.type=s,e.lanes=c,e}function Yn(t,e,a,s){return t=we(7,t,s,e),t.lanes=a,t}function uc(t,e,a){return t=we(6,t,null,e),t.lanes=a,t}function $d(t){var e=we(18,null,null,0);return e.stateNode=t,e}function cc(t,e,a){return e=we(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Jd=new WeakMap;function Xe(t,e){if(typeof t=="object"&&t!==null){var a=Jd.get(t);return a!==void 0?a:(e={value:t,source:e,stack:Ss(e)},Jd.set(t,e),e)}return{value:t,source:e,stack:Ss(e)}}var Bs=[],Hs=0,hr=null,Gl=0,Ke=[],Ze=0,$a=null,ra=1,ua="";function ja(t,e){Bs[Hs++]=Gl,Bs[Hs++]=hr,hr=t,Gl=e}function Id(t,e,a){Ke[Ze++]=ra,Ke[Ze++]=ua,Ke[Ze++]=$a,$a=t;var s=ra;t=ua;var r=32-ze(s)-1;s&=~(1<<r),a+=1;var c=32-ze(e)+r;if(30<c){var m=r-r%5;c=(s&(1<<m)-1).toString(32),s>>=m,r-=m,ra=1<<32-ze(e)+r|a<<r|s,ua=c+t}else ra=1<<c|a<<r|s,ua=t}function oc(t){t.return!==null&&(ja(t,1),Id(t,1,0))}function fc(t){for(;t===hr;)hr=Bs[--Hs],Bs[Hs]=null,Gl=Bs[--Hs],Bs[Hs]=null;for(;t===$a;)$a=Ke[--Ze],Ke[Ze]=null,ua=Ke[--Ze],Ke[Ze]=null,ra=Ke[--Ze],Ke[Ze]=null}function Fd(t,e){Ke[Ze++]=ra,Ke[Ze++]=ua,Ke[Ze++]=$a,ra=e.id,ua=e.overflow,$a=t}var ie=null,Qt=null,Et=!1,Ja=null,Pe=!1,dc=Error(u(519));function Ia(t){var e=Error(u(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Vl(Xe(e,t)),dc}function kd(t){var e=t.stateNode,a=t.type,s=t.memoizedProps;switch(e[le]=t,e[Se]=s,a){case"dialog":Nt("cancel",e),Nt("close",e);break;case"iframe":case"object":case"embed":Nt("load",e);break;case"video":case"audio":for(a=0;a<fi.length;a++)Nt(fi[a],e);break;case"source":Nt("error",e);break;case"img":case"image":case"link":Nt("error",e),Nt("load",e);break;case"details":Nt("toggle",e);break;case"input":Nt("invalid",e),fd(e,s.value,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name,!0);break;case"select":Nt("invalid",e);break;case"textarea":Nt("invalid",e),hd(e,s.value,s.defaultValue,s.children)}a=s.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||s.suppressHydrationWarning===!0||y0(e.textContent,a)?(s.popover!=null&&(Nt("beforetoggle",e),Nt("toggle",e)),s.onScroll!=null&&Nt("scroll",e),s.onScrollEnd!=null&&Nt("scrollend",e),s.onClick!=null&&(e.onclick=xa),e=!0):e=!1,e||Ia(t,!0)}function Wd(t){for(ie=t.return;ie;)switch(ie.tag){case 5:case 31:case 13:Pe=!1;return;case 27:case 3:Pe=!0;return;default:ie=ie.return}}function qs(t){if(t!==ie)return!1;if(!Et)return Wd(t),Et=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Oo(t.type,t.memoizedProps)),a=!a),a&&Qt&&Ia(t),Wd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Qt=R0(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(317));Qt=R0(t)}else e===27?(e=Qt,fn(t.type)?(t=Lo,Lo=null,Qt=t):Qt=e):Qt=ie?Je(t.stateNode.nextSibling):null;return!0}function Gn(){Qt=ie=null,Et=!1}function hc(){var t=Ja;return t!==null&&(Ee===null?Ee=t:Ee.push.apply(Ee,t),Ja=null),t}function Vl(t){Ja===null?Ja=[t]:Ja.push(t)}var mc=E(null),Vn=null,Na=null;function Fa(t,e,a){W(mc,e._currentValue),e._currentValue=a}function Ra(t){t._currentValue=mc.current,Q(mc)}function yc(t,e,a){for(;t!==null;){var s=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,s!==null&&(s.childLanes|=e)):s!==null&&(s.childLanes&e)!==e&&(s.childLanes|=e),t===a)break;t=t.return}}function gc(t,e,a,s){var r=t.child;for(r!==null&&(r.return=t);r!==null;){var c=r.dependencies;if(c!==null){var m=r.child;c=c.firstContext;t:for(;c!==null;){var x=c;c=r;for(var R=0;R<e.length;R++)if(x.context===e[R]){c.lanes|=a,x=c.alternate,x!==null&&(x.lanes|=a),yc(c.return,a,t),s||(m=null);break t}c=x.next}}else if(r.tag===18){if(m=r.return,m===null)throw Error(u(341));m.lanes|=a,c=m.alternate,c!==null&&(c.lanes|=a),yc(m,a,t),m=null}else m=r.child;if(m!==null)m.return=r;else for(m=r;m!==null;){if(m===t){m=null;break}if(r=m.sibling,r!==null){r.return=m.return,m=r;break}m=m.return}r=m}}function Qs(t,e,a,s){t=null;for(var r=e,c=!1;r!==null;){if(!c){if((r.flags&524288)!==0)c=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var m=r.alternate;if(m===null)throw Error(u(387));if(m=m.memoizedProps,m!==null){var x=r.type;De(r.pendingProps.value,m.value)||(t!==null?t.push(x):t=[x])}}else if(r===bt.current){if(m=r.alternate,m===null)throw Error(u(387));m.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(t!==null?t.push(gi):t=[gi])}r=r.return}t!==null&&gc(e,t,a,s),e.flags|=262144}function mr(t){for(t=t.firstContext;t!==null;){if(!De(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Xn(t){Vn=t,Na=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function re(t){return th(Vn,t)}function yr(t,e){return Vn===null&&Xn(t),th(t,e)}function th(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},Na===null){if(t===null)throw Error(u(308));Na=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Na=Na.next=e;return a}var dv=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,s){t.push(s)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},hv=n.unstable_scheduleCallback,mv=n.unstable_NormalPriority,It={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function pc(){return{controller:new dv,data:new Map,refCount:0}}function Xl(t){t.refCount--,t.refCount===0&&hv(mv,function(){t.controller.abort()})}var Kl=null,vc=0,Ys=0,Gs=null;function yv(t,e){if(Kl===null){var a=Kl=[];vc=0,Ys=jo(),Gs={status:"pending",value:void 0,then:function(s){a.push(s)}}}return vc++,e.then(eh,eh),e}function eh(){if(--vc===0&&Kl!==null){Gs!==null&&(Gs.status="fulfilled");var t=Kl;Kl=null,Ys=0,Gs=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function gv(t,e){var a=[],s={status:"pending",value:null,reason:null,then:function(r){a.push(r)}};return t.then(function(){s.status="fulfilled",s.value=e;for(var r=0;r<a.length;r++)(0,a[r])(e)},function(r){for(s.status="rejected",s.reason=r,r=0;r<a.length;r++)(0,a[r])(void 0)}),s}var ah=D.S;D.S=function(t,e){qm=St(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&yv(t,e),ah!==null&&ah(t,e)};var Kn=E(null);function xc(){var t=Kn.current;return t!==null?t:Ht.pooledCache}function gr(t,e){e===null?W(Kn,Kn.current):W(Kn,e.pool)}function nh(){var t=xc();return t===null?null:{parent:It._currentValue,pool:t}}var Vs=Error(u(460)),bc=Error(u(474)),pr=Error(u(542)),vr={then:function(){}};function sh(t){return t=t.status,t==="fulfilled"||t==="rejected"}function lh(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(xa,xa),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,rh(t),t;default:if(typeof e.status=="string")e.then(xa,xa);else{if(t=Ht,t!==null&&100<t.shellSuspendCounter)throw Error(u(482));t=e,t.status="pending",t.then(function(s){if(e.status==="pending"){var r=e;r.status="fulfilled",r.value=s}},function(s){if(e.status==="pending"){var r=e;r.status="rejected",r.reason=s}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,rh(t),t}throw Pn=e,Vs}}function Zn(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Pn=a,Vs):a}}var Pn=null;function ih(){if(Pn===null)throw Error(u(459));var t=Pn;return Pn=null,t}function rh(t){if(t===Vs||t===pr)throw Error(u(483))}var Xs=null,Zl=0;function xr(t){var e=Zl;return Zl+=1,Xs===null&&(Xs=[]),lh(Xs,t,e)}function Pl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function br(t,e){throw e.$$typeof===S?Error(u(525)):(t=Object.prototype.toString.call(e),Error(u(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function uh(t){function e(A,T){if(t){var O=A.deletions;O===null?(A.deletions=[T],A.flags|=16):O.push(T)}}function a(A,T){if(!t)return null;for(;T!==null;)e(A,T),T=T.sibling;return null}function s(A){for(var T=new Map;A!==null;)A.key!==null?T.set(A.key,A):T.set(A.index,A),A=A.sibling;return T}function r(A,T){return A=Sa(A,T),A.index=0,A.sibling=null,A}function c(A,T,O){return A.index=O,t?(O=A.alternate,O!==null?(O=O.index,O<T?(A.flags|=67108866,T):O):(A.flags|=67108866,T)):(A.flags|=1048576,T)}function m(A){return t&&A.alternate===null&&(A.flags|=67108866),A}function x(A,T,O,q){return T===null||T.tag!==6?(T=uc(O,A.mode,q),T.return=A,T):(T=r(T,O),T.return=A,T)}function R(A,T,O,q){var ct=O.type;return ct===M?H(A,T,O.props.children,q,O.key):T!==null&&(T.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===P&&Zn(ct)===T.type)?(T=r(T,O.props),Pl(T,O),T.return=A,T):(T=dr(O.type,O.key,O.props,null,A.mode,q),Pl(T,O),T.return=A,T)}function z(A,T,O,q){return T===null||T.tag!==4||T.stateNode.containerInfo!==O.containerInfo||T.stateNode.implementation!==O.implementation?(T=cc(O,A.mode,q),T.return=A,T):(T=r(T,O.children||[]),T.return=A,T)}function H(A,T,O,q,ct){return T===null||T.tag!==7?(T=Yn(O,A.mode,q,ct),T.return=A,T):(T=r(T,O),T.return=A,T)}function Y(A,T,O){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=uc(""+T,A.mode,O),T.return=A,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case j:return O=dr(T.type,T.key,T.props,null,A.mode,O),Pl(O,T),O.return=A,O;case N:return T=cc(T,A.mode,O),T.return=A,T;case P:return T=Zn(T),Y(A,T,O)}if(nt(T)||lt(T))return T=Yn(T,A.mode,O,null),T.return=A,T;if(typeof T.then=="function")return Y(A,xr(T),O);if(T.$$typeof===K)return Y(A,yr(A,T),O);br(A,T)}return null}function w(A,T,O,q){var ct=T!==null?T.key:null;if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return ct!==null?null:x(A,T,""+O,q);if(typeof O=="object"&&O!==null){switch(O.$$typeof){case j:return O.key===ct?R(A,T,O,q):null;case N:return O.key===ct?z(A,T,O,q):null;case P:return O=Zn(O),w(A,T,O,q)}if(nt(O)||lt(O))return ct!==null?null:H(A,T,O,q,null);if(typeof O.then=="function")return w(A,T,xr(O),q);if(O.$$typeof===K)return w(A,T,yr(A,O),q);br(A,O)}return null}function B(A,T,O,q,ct){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return A=A.get(O)||null,x(T,A,""+q,ct);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case j:return A=A.get(q.key===null?O:q.key)||null,R(T,A,q,ct);case N:return A=A.get(q.key===null?O:q.key)||null,z(T,A,q,ct);case P:return q=Zn(q),B(A,T,O,q,ct)}if(nt(q)||lt(q))return A=A.get(O)||null,H(T,A,q,ct,null);if(typeof q.then=="function")return B(A,T,O,xr(q),ct);if(q.$$typeof===K)return B(A,T,O,yr(T,q),ct);br(T,q)}return null}function st(A,T,O,q){for(var ct=null,Ct=null,rt=T,pt=T=0,_t=null;rt!==null&&pt<O.length;pt++){rt.index>pt?(_t=rt,rt=null):_t=rt.sibling;var At=w(A,rt,O[pt],q);if(At===null){rt===null&&(rt=_t);break}t&&rt&&At.alternate===null&&e(A,rt),T=c(At,T,pt),Ct===null?ct=At:Ct.sibling=At,Ct=At,rt=_t}if(pt===O.length)return a(A,rt),Et&&ja(A,pt),ct;if(rt===null){for(;pt<O.length;pt++)rt=Y(A,O[pt],q),rt!==null&&(T=c(rt,T,pt),Ct===null?ct=rt:Ct.sibling=rt,Ct=rt);return Et&&ja(A,pt),ct}for(rt=s(rt);pt<O.length;pt++)_t=B(rt,A,pt,O[pt],q),_t!==null&&(t&&_t.alternate!==null&&rt.delete(_t.key===null?pt:_t.key),T=c(_t,T,pt),Ct===null?ct=_t:Ct.sibling=_t,Ct=_t);return t&&rt.forEach(function(gn){return e(A,gn)}),Et&&ja(A,pt),ct}function dt(A,T,O,q){if(O==null)throw Error(u(151));for(var ct=null,Ct=null,rt=T,pt=T=0,_t=null,At=O.next();rt!==null&&!At.done;pt++,At=O.next()){rt.index>pt?(_t=rt,rt=null):_t=rt.sibling;var gn=w(A,rt,At.value,q);if(gn===null){rt===null&&(rt=_t);break}t&&rt&&gn.alternate===null&&e(A,rt),T=c(gn,T,pt),Ct===null?ct=gn:Ct.sibling=gn,Ct=gn,rt=_t}if(At.done)return a(A,rt),Et&&ja(A,pt),ct;if(rt===null){for(;!At.done;pt++,At=O.next())At=Y(A,At.value,q),At!==null&&(T=c(At,T,pt),Ct===null?ct=At:Ct.sibling=At,Ct=At);return Et&&ja(A,pt),ct}for(rt=s(rt);!At.done;pt++,At=O.next())At=B(rt,A,pt,At.value,q),At!==null&&(t&&At.alternate!==null&&rt.delete(At.key===null?pt:At.key),T=c(At,T,pt),Ct===null?ct=At:Ct.sibling=At,Ct=At);return t&&rt.forEach(function(Tx){return e(A,Tx)}),Et&&ja(A,pt),ct}function Bt(A,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 j:t:{for(var ct=O.key;T!==null;){if(T.key===ct){if(ct=O.type,ct===M){if(T.tag===7){a(A,T.sibling),q=r(T,O.props.children),q.return=A,A=q;break t}}else if(T.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===P&&Zn(ct)===T.type){a(A,T.sibling),q=r(T,O.props),Pl(q,O),q.return=A,A=q;break t}a(A,T);break}else e(A,T);T=T.sibling}O.type===M?(q=Yn(O.props.children,A.mode,q,O.key),q.return=A,A=q):(q=dr(O.type,O.key,O.props,null,A.mode,q),Pl(q,O),q.return=A,A=q)}return m(A);case N:t:{for(ct=O.key;T!==null;){if(T.key===ct)if(T.tag===4&&T.stateNode.containerInfo===O.containerInfo&&T.stateNode.implementation===O.implementation){a(A,T.sibling),q=r(T,O.children||[]),q.return=A,A=q;break t}else{a(A,T);break}else e(A,T);T=T.sibling}q=cc(O,A.mode,q),q.return=A,A=q}return m(A);case P:return O=Zn(O),Bt(A,T,O,q)}if(nt(O))return st(A,T,O,q);if(lt(O)){if(ct=lt(O),typeof ct!="function")throw Error(u(150));return O=ct.call(O),dt(A,T,O,q)}if(typeof O.then=="function")return Bt(A,T,xr(O),q);if(O.$$typeof===K)return Bt(A,T,yr(A,O),q);br(A,O)}return typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint"?(O=""+O,T!==null&&T.tag===6?(a(A,T.sibling),q=r(T,O),q.return=A,A=q):(a(A,T),q=uc(O,A.mode,q),q.return=A,A=q),m(A)):a(A,T)}return function(A,T,O,q){try{Zl=0;var ct=Bt(A,T,O,q);return Xs=null,ct}catch(rt){if(rt===Vs||rt===pr)throw rt;var Ct=we(29,rt,null,A.mode);return Ct.lanes=q,Ct.return=A,Ct}finally{}}}var $n=uh(!0),ch=uh(!1),ka=!1;function Sc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jc(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 Wa(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function tn(t,e,a){var s=t.updateQueue;if(s===null)return null;if(s=s.shared,(Ot&2)!==0){var r=s.pending;return r===null?e.next=e:(e.next=r.next,r.next=e),s.pending=e,e=fr(t),Zd(t,null,a),e}return or(t,s,e,a),fr(t)}function $l(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var s=e.lanes;s&=t.pendingLanes,a|=s,e.lanes=a,td(t,a)}}function Nc(t,e){var a=t.updateQueue,s=t.alternate;if(s!==null&&(s=s.updateQueue,a===s)){var r=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var m={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?r=c=m:c=c.next=m,a=a.next}while(a!==null);c===null?r=c=e:c=c.next=e}else r=c=e;a={baseState:s.baseState,firstBaseUpdate:r,lastBaseUpdate:c,shared:s.shared,callbacks:s.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var Rc=!1;function Jl(){if(Rc){var t=Gs;if(t!==null)throw t}}function Il(t,e,a,s){Rc=!1;var r=t.updateQueue;ka=!1;var c=r.firstBaseUpdate,m=r.lastBaseUpdate,x=r.shared.pending;if(x!==null){r.shared.pending=null;var R=x,z=R.next;R.next=null,m===null?c=z:m.next=z,m=R;var H=t.alternate;H!==null&&(H=H.updateQueue,x=H.lastBaseUpdate,x!==m&&(x===null?H.firstBaseUpdate=z:x.next=z,H.lastBaseUpdate=R))}if(c!==null){var Y=r.baseState;m=0,H=z=R=null,x=c;do{var w=x.lane&-536870913,B=w!==x.lane;if(B?(Rt&w)===w:(s&w)===w){w!==0&&w===Ys&&(Rc=!0),H!==null&&(H=H.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var st=t,dt=x;w=e;var Bt=a;switch(dt.tag){case 1:if(st=dt.payload,typeof st=="function"){Y=st.call(Bt,Y,w);break t}Y=st;break t;case 3:st.flags=st.flags&-65537|128;case 0:if(st=dt.payload,w=typeof st=="function"?st.call(Bt,Y,w):st,w==null)break t;Y=v({},Y,w);break t;case 2:ka=!0}}w=x.callback,w!==null&&(t.flags|=64,B&&(t.flags|=8192),B=r.callbacks,B===null?r.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,R=Y):H=H.next=B,m|=w;if(x=x.next,x===null){if(x=r.shared.pending,x===null)break;B=x,x=B.next,B.next=null,r.lastBaseUpdate=B,r.shared.pending=null}}while(!0);H===null&&(R=Y),r.baseState=R,r.firstBaseUpdate=z,r.lastBaseUpdate=H,c===null&&(r.shared.lanes=0),ln|=m,t.lanes=m,t.memoizedState=Y}}function oh(t,e){if(typeof t!="function")throw Error(u(191,t));t.call(e)}function fh(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)oh(a[t],e)}var Ks=E(null),Sr=E(0);function dh(t,e){t=Da,W(Sr,t),W(Ks,e),Da=t|e.baseLanes}function _c(){W(Sr,Da),W(Ks,Ks.current)}function Ec(){Da=Sr.current,Q(Ks),Q(Sr)}var Ue=E(null),$e=null;function en(t){var e=t.alternate;W($t,$t.current&1),W(Ue,t),$e===null&&(e===null||Ks.current!==null||e.memoizedState!==null)&&($e=t)}function Tc(t){W($t,$t.current),W(Ue,t),$e===null&&($e=t)}function hh(t){t.tag===22?(W($t,$t.current),W(Ue,t),$e===null&&($e=t)):an()}function an(){W($t,$t.current),W(Ue,Ue.current)}function Le(t){Q(Ue),$e===t&&($e=null),Q($t)}var $t=E(0);function jr(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||wo(a)||Uo(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 _a=0,gt=null,Ut=null,Ft=null,Nr=!1,Zs=!1,Jn=!1,Rr=0,Fl=0,Ps=null,pv=0;function Xt(){throw Error(u(321))}function Mc(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!De(t[a],e[a]))return!1;return!0}function Cc(t,e,a,s,r,c){return _a=c,gt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,D.H=t===null||t.memoizedState===null?Ih:Xc,Jn=!1,c=a(s,r),Jn=!1,Zs&&(c=yh(e,a,s,r)),mh(t),c}function mh(t){D.H=ti;var e=Ut!==null&&Ut.next!==null;if(_a=0,Ft=Ut=gt=null,Nr=!1,Fl=0,Ps=null,e)throw Error(u(300));t===null||kt||(t=t.dependencies,t!==null&&mr(t)&&(kt=!0))}function yh(t,e,a,s){gt=t;var r=0;do{if(Zs&&(Ps=null),Fl=0,Zs=!1,25<=r)throw Error(u(301));if(r+=1,Ft=Ut=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=Fh,c=e(a,s)}while(Zs);return c}function vv(){var t=D.H,e=t.useState()[0];return e=typeof e.then=="function"?kl(e):e,t=t.useState()[0],(Ut!==null?Ut.memoizedState:null)!==t&&(gt.flags|=1024),e}function Ac(){var t=Rr!==0;return Rr=0,t}function Oc(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function zc(t){if(Nr){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Nr=!1}_a=0,Ft=Ut=gt=null,Zs=!1,Fl=Rr=0,Ps=null}function ge(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ft===null?gt.memoizedState=Ft=t:Ft=Ft.next=t,Ft}function Jt(){if(Ut===null){var t=gt.alternate;t=t!==null?t.memoizedState:null}else t=Ut.next;var e=Ft===null?gt.memoizedState:Ft.next;if(e!==null)Ft=e,Ut=t;else{if(t===null)throw gt.alternate===null?Error(u(467)):Error(u(310));Ut=t,t={memoizedState:Ut.memoizedState,baseState:Ut.baseState,baseQueue:Ut.baseQueue,queue:Ut.queue,next:null},Ft===null?gt.memoizedState=Ft=t:Ft=Ft.next=t}return Ft}function _r(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function kl(t){var e=Fl;return Fl+=1,Ps===null&&(Ps=[]),t=lh(Ps,t,e),e=gt,(Ft===null?e.memoizedState:Ft.next)===null&&(e=e.alternate,D.H=e===null||e.memoizedState===null?Ih:Xc),t}function Er(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return kl(t);if(t.$$typeof===K)return re(t)}throw Error(u(438,String(t)))}function Dc(t){var e=null,a=gt.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var s=gt.alternate;s!==null&&(s=s.updateQueue,s!==null&&(s=s.memoCache,s!=null&&(e={data:s.data.map(function(r){return r.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=_r(),gt.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),s=0;s<t;s++)a[s]=G;return e.index++,a}function Ea(t,e){return typeof e=="function"?e(t):e}function Tr(t){var e=Jt();return wc(e,Ut,t)}function wc(t,e,a){var s=t.queue;if(s===null)throw Error(u(311));s.lastRenderedReducer=a;var r=t.baseQueue,c=s.pending;if(c!==null){if(r!==null){var m=r.next;r.next=c.next,c.next=m}e.baseQueue=r=c,s.pending=null}if(c=t.baseState,r===null)t.memoizedState=c;else{e=r.next;var x=m=null,R=null,z=e,H=!1;do{var Y=z.lane&-536870913;if(Y!==z.lane?(Rt&Y)===Y:(_a&Y)===Y){var w=z.revertLane;if(w===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),Y===Ys&&(H=!0);else if((_a&w)===w){z=z.next,w===Ys&&(H=!0);continue}else Y={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},R===null?(x=R=Y,m=c):R=R.next=Y,gt.lanes|=w,ln|=w;Y=z.action,Jn&&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},R===null?(x=R=w,m=c):R=R.next=w,gt.lanes|=Y,ln|=Y;z=z.next}while(z!==null&&z!==e);if(R===null?m=c:R.next=x,!De(c,t.memoizedState)&&(kt=!0,H&&(a=Gs,a!==null)))throw a;t.memoizedState=c,t.baseState=m,t.baseQueue=R,s.lastRenderedState=c}return r===null&&(s.lanes=0),[t.memoizedState,s.dispatch]}function Uc(t){var e=Jt(),a=e.queue;if(a===null)throw Error(u(311));a.lastRenderedReducer=t;var s=a.dispatch,r=a.pending,c=e.memoizedState;if(r!==null){a.pending=null;var m=r=r.next;do c=t(c,m.action),m=m.next;while(m!==r);De(c,e.memoizedState)||(kt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),a.lastRenderedState=c}return[c,s]}function gh(t,e,a){var s=gt,r=Jt(),c=Et;if(c){if(a===void 0)throw Error(u(407));a=a()}else a=e();var m=!De((Ut||r).memoizedState,a);if(m&&(r.memoizedState=a,kt=!0),r=r.queue,Hc(xh.bind(null,s,r,t),[t]),r.getSnapshot!==e||m||Ft!==null&&Ft.memoizedState.tag&1){if(s.flags|=2048,$s(9,{destroy:void 0},vh.bind(null,s,r,a,e),null),Ht===null)throw Error(u(349));c||(_a&127)!==0||ph(s,e,a)}return a}function ph(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=gt.updateQueue,e===null?(e=_r(),gt.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function vh(t,e,a,s){e.value=a,e.getSnapshot=s,bh(e)&&Sh(t)}function xh(t,e,a){return a(function(){bh(e)&&Sh(t)})}function bh(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!De(t,a)}catch{return!0}}function Sh(t){var e=Qn(t,2);e!==null&&Te(e,t,2)}function Lc(t){var e=ge();if(typeof t=="function"){var a=t;if(t=a(),Jn){Ka(!0);try{a()}finally{Ka(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ea,lastRenderedState:t},e}function jh(t,e,a,s){return t.baseState=a,wc(t,Ut,typeof s=="function"?s:Ea)}function xv(t,e,a,s,r){if(Ar(t))throw Error(u(485));if(t=e.action,t!==null){var c={payload:r,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(m){c.listeners.push(m)}};D.T!==null?a(!0):c.isTransition=!1,s(c),a=e.pending,a===null?(c.next=e.pending=c,Nh(e,c)):(c.next=a.next,e.pending=a.next=c)}}function Nh(t,e){var a=e.action,s=e.payload,r=t.state;if(e.isTransition){var c=D.T,m={};D.T=m;try{var x=a(r,s),R=D.S;R!==null&&R(m,x),Rh(t,e,x)}catch(z){Bc(t,e,z)}finally{c!==null&&m.types!==null&&(c.types=m.types),D.T=c}}else try{c=a(r,s),Rh(t,e,c)}catch(z){Bc(t,e,z)}}function Rh(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(s){_h(t,e,s)},function(s){return Bc(t,e,s)}):_h(t,e,a)}function _h(t,e,a){e.status="fulfilled",e.value=a,Eh(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,Nh(t,a)))}function Bc(t,e,a){var s=t.pending;if(t.pending=null,s!==null){s=s.next;do e.status="rejected",e.reason=a,Eh(e),e=e.next;while(e!==s)}t.action=null}function Eh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Th(t,e){return e}function Mh(t,e){if(Et){var a=Ht.formState;if(a!==null){t:{var s=gt;if(Et){if(Qt){e:{for(var r=Qt,c=Pe;r.nodeType!==8;){if(!c){r=null;break e}if(r=Je(r.nextSibling),r===null){r=null;break e}}c=r.data,r=c==="F!"||c==="F"?r:null}if(r){Qt=Je(r.nextSibling),s=r.data==="F!";break t}}Ia(s)}s=!1}s&&(e=a[0])}}return a=ge(),a.memoizedState=a.baseState=e,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Th,lastRenderedState:e},a.queue=s,a=Ph.bind(null,gt,s),s.dispatch=a,s=Lc(!1),c=Vc.bind(null,gt,!1,s.queue),s=ge(),r={state:e,dispatch:null,action:t,pending:null},s.queue=r,a=xv.bind(null,gt,r,c,a),r.dispatch=a,s.memoizedState=t,[e,a,!1]}function Ch(t){var e=Jt();return Ah(e,Ut,t)}function Ah(t,e,a){if(e=wc(t,e,Th)[0],t=Tr(Ea)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var s=kl(e)}catch(m){throw m===Vs?pr:m}else s=e;e=Jt();var r=e.queue,c=r.dispatch;return a!==e.memoizedState&&(gt.flags|=2048,$s(9,{destroy:void 0},bv.bind(null,r,a),null)),[s,c,t]}function bv(t,e){t.action=e}function Oh(t){var e=Jt(),a=Ut;if(a!==null)return Ah(e,a,t);Jt(),e=e.memoizedState,a=Jt();var s=a.queue.dispatch;return a.memoizedState=t,[e,s,!1]}function $s(t,e,a,s){return t={tag:t,create:a,deps:s,inst:e,next:null},e=gt.updateQueue,e===null&&(e=_r(),gt.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(s=a.next,a.next=t,t.next=s,e.lastEffect=t),t}function zh(){return Jt().memoizedState}function Mr(t,e,a,s){var r=ge();gt.flags|=t,r.memoizedState=$s(1|e,{destroy:void 0},a,s===void 0?null:s)}function Cr(t,e,a,s){var r=Jt();s=s===void 0?null:s;var c=r.memoizedState.inst;Ut!==null&&s!==null&&Mc(s,Ut.memoizedState.deps)?r.memoizedState=$s(e,c,a,s):(gt.flags|=t,r.memoizedState=$s(1|e,c,a,s))}function Dh(t,e){Mr(8390656,8,t,e)}function Hc(t,e){Cr(2048,8,t,e)}function Sv(t){gt.flags|=4;var e=gt.updateQueue;if(e===null)e=_r(),gt.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function wh(t){var e=Jt().memoizedState;return Sv({ref:e,nextImpl:t}),function(){if((Ot&2)!==0)throw Error(u(440));return e.impl.apply(void 0,arguments)}}function Uh(t,e){return Cr(4,2,t,e)}function Lh(t,e){return Cr(4,4,t,e)}function Bh(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 Hh(t,e,a){a=a!=null?a.concat([t]):null,Cr(4,4,Bh.bind(null,e,t),a)}function qc(){}function qh(t,e){var a=Jt();e=e===void 0?null:e;var s=a.memoizedState;return e!==null&&Mc(e,s[1])?s[0]:(a.memoizedState=[t,e],t)}function Qh(t,e){var a=Jt();e=e===void 0?null:e;var s=a.memoizedState;if(e!==null&&Mc(e,s[1]))return s[0];if(s=t(),Jn){Ka(!0);try{t()}finally{Ka(!1)}}return a.memoizedState=[s,e],s}function Qc(t,e,a){return a===void 0||(_a&1073741824)!==0&&(Rt&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=Ym(),gt.lanes|=t,ln|=t,a)}function Yh(t,e,a,s){return De(a,e)?a:Ks.current!==null?(t=Qc(t,a,s),De(t,e)||(kt=!0),t):(_a&42)===0||(_a&1073741824)!==0&&(Rt&261930)===0?(kt=!0,t.memoizedState=a):(t=Ym(),gt.lanes|=t,ln|=t,e)}function Gh(t,e,a,s,r){var c=V.p;V.p=c!==0&&8>c?c:8;var m=D.T,x={};D.T=x,Vc(t,!1,e,a);try{var R=r(),z=D.S;if(z!==null&&z(x,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var H=gv(R,s);Wl(t,e,H,qe(t))}else Wl(t,e,s,qe(t))}catch(Y){Wl(t,e,{then:function(){},status:"rejected",reason:Y},qe())}finally{V.p=c,m!==null&&x.types!==null&&(m.types=x.types),D.T=m}}function jv(){}function Yc(t,e,a,s){if(t.tag!==5)throw Error(u(476));var r=Vh(t).queue;Gh(t,r,e,at,a===null?jv:function(){return Xh(t),a(s)})}function Vh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:at,baseState:at,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ea,lastRenderedState:at},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ea,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Xh(t){var e=Vh(t);e.next===null&&(e=t.alternate.memoizedState),Wl(t,e.next.queue,{},qe())}function Gc(){return re(gi)}function Kh(){return Jt().memoizedState}function Zh(){return Jt().memoizedState}function Nv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=qe();t=Wa(a);var s=tn(e,t,a);s!==null&&(Te(s,e,a),$l(s,e,a)),e={cache:pc()},t.payload=e;return}e=e.return}}function Rv(t,e,a){var s=qe();a={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Ar(t)?$h(e,a):(a=ic(t,e,a,s),a!==null&&(Te(a,t,s),Jh(a,e,s)))}function Ph(t,e,a){var s=qe();Wl(t,e,a,s)}function Wl(t,e,a,s){var r={lane:s,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ar(t))$h(e,r);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var m=e.lastRenderedState,x=c(m,a);if(r.hasEagerState=!0,r.eagerState=x,De(x,m))return or(t,e,r,0),Ht===null&&cr(),!1}catch{}finally{}if(a=ic(t,e,r,s),a!==null)return Te(a,t,s),Jh(a,e,s),!0}return!1}function Vc(t,e,a,s){if(s={lane:2,revertLane:jo(),gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},Ar(t)){if(e)throw Error(u(479))}else e=ic(t,a,s,2),e!==null&&Te(e,t,2)}function Ar(t){var e=t.alternate;return t===gt||e!==null&&e===gt}function $h(t,e){Zs=Nr=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function Jh(t,e,a){if((a&4194048)!==0){var s=e.lanes;s&=t.pendingLanes,a|=s,e.lanes=a,td(t,a)}}var ti={readContext:re,use:Er,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};ti.useEffectEvent=Xt;var Ih={readContext:re,use:Er,useCallback:function(t,e){return ge().memoizedState=[t,e===void 0?null:e],t},useContext:re,useEffect:Dh,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,Mr(4194308,4,Bh.bind(null,e,t),a)},useLayoutEffect:function(t,e){return Mr(4194308,4,t,e)},useInsertionEffect:function(t,e){Mr(4,2,t,e)},useMemo:function(t,e){var a=ge();e=e===void 0?null:e;var s=t();if(Jn){Ka(!0);try{t()}finally{Ka(!1)}}return a.memoizedState=[s,e],s},useReducer:function(t,e,a){var s=ge();if(a!==void 0){var r=a(e);if(Jn){Ka(!0);try{a(e)}finally{Ka(!1)}}}else r=e;return s.memoizedState=s.baseState=r,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},s.queue=t,t=t.dispatch=Rv.bind(null,gt,t),[s.memoizedState,t]},useRef:function(t){var e=ge();return t={current:t},e.memoizedState=t},useState:function(t){t=Lc(t);var e=t.queue,a=Ph.bind(null,gt,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:qc,useDeferredValue:function(t,e){var a=ge();return Qc(a,t,e)},useTransition:function(){var t=Lc(!1);return t=Gh.bind(null,gt,t.queue,!0,!1),ge().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var s=gt,r=ge();if(Et){if(a===void 0)throw Error(u(407));a=a()}else{if(a=e(),Ht===null)throw Error(u(349));(Rt&127)!==0||ph(s,e,a)}r.memoizedState=a;var c={value:a,getSnapshot:e};return r.queue=c,Dh(xh.bind(null,s,c,t),[t]),s.flags|=2048,$s(9,{destroy:void 0},vh.bind(null,s,c,a,e),null),a},useId:function(){var t=ge(),e=Ht.identifierPrefix;if(Et){var a=ua,s=ra;a=(s&~(1<<32-ze(s)-1)).toString(32)+a,e="_"+e+"R_"+a,a=Rr++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=pv++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Gc,useFormState:Mh,useActionState:Mh,useOptimistic:function(t){var e=ge();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=Vc.bind(null,gt,!0,a),a.dispatch=e,[t,e]},useMemoCache:Dc,useCacheRefresh:function(){return ge().memoizedState=Nv.bind(null,gt)},useEffectEvent:function(t){var e=ge(),a={impl:t};return e.memoizedState=a,function(){if((Ot&2)!==0)throw Error(u(440));return a.impl.apply(void 0,arguments)}}},Xc={readContext:re,use:Er,useCallback:qh,useContext:re,useEffect:Hc,useImperativeHandle:Hh,useInsertionEffect:Uh,useLayoutEffect:Lh,useMemo:Qh,useReducer:Tr,useRef:zh,useState:function(){return Tr(Ea)},useDebugValue:qc,useDeferredValue:function(t,e){var a=Jt();return Yh(a,Ut.memoizedState,t,e)},useTransition:function(){var t=Tr(Ea)[0],e=Jt().memoizedState;return[typeof t=="boolean"?t:kl(t),e]},useSyncExternalStore:gh,useId:Kh,useHostTransitionStatus:Gc,useFormState:Ch,useActionState:Ch,useOptimistic:function(t,e){var a=Jt();return jh(a,Ut,t,e)},useMemoCache:Dc,useCacheRefresh:Zh};Xc.useEffectEvent=wh;var Fh={readContext:re,use:Er,useCallback:qh,useContext:re,useEffect:Hc,useImperativeHandle:Hh,useInsertionEffect:Uh,useLayoutEffect:Lh,useMemo:Qh,useReducer:Uc,useRef:zh,useState:function(){return Uc(Ea)},useDebugValue:qc,useDeferredValue:function(t,e){var a=Jt();return Ut===null?Qc(a,t,e):Yh(a,Ut.memoizedState,t,e)},useTransition:function(){var t=Uc(Ea)[0],e=Jt().memoizedState;return[typeof t=="boolean"?t:kl(t),e]},useSyncExternalStore:gh,useId:Kh,useHostTransitionStatus:Gc,useFormState:Oh,useActionState:Oh,useOptimistic:function(t,e){var a=Jt();return Ut!==null?jh(a,Ut,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Dc,useCacheRefresh:Zh};Fh.useEffectEvent=wh;function Kc(t,e,a,s){e=t.memoizedState,a=a(s,e),a=a==null?e:v({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var Zc={enqueueSetState:function(t,e,a){t=t._reactInternals;var s=qe(),r=Wa(s);r.payload=e,a!=null&&(r.callback=a),e=tn(t,r,s),e!==null&&(Te(e,t,s),$l(e,t,s))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var s=qe(),r=Wa(s);r.tag=1,r.payload=e,a!=null&&(r.callback=a),e=tn(t,r,s),e!==null&&(Te(e,t,s),$l(e,t,s))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=qe(),s=Wa(a);s.tag=2,e!=null&&(s.callback=e),e=tn(t,s,a),e!==null&&(Te(e,t,a),$l(e,t,a))}};function kh(t,e,a,s,r,c,m){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(s,c,m):e.prototype&&e.prototype.isPureReactComponent?!Ql(a,s)||!Ql(r,c):!0}function Wh(t,e,a,s){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,s),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,s),e.state!==t&&Zc.enqueueReplaceState(e,e.state,null)}function In(t,e){var a=e;if("ref"in e){a={};for(var s in e)s!=="ref"&&(a[s]=e[s])}if(t=t.defaultProps){a===e&&(a=v({},a));for(var r in t)a[r]===void 0&&(a[r]=t[r])}return a}function tm(t){ur(t)}function em(t){console.error(t)}function am(t){ur(t)}function Or(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(s){setTimeout(function(){throw s})}}function nm(t,e,a){try{var s=t.onCaughtError;s(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Pc(t,e,a){return a=Wa(a),a.tag=3,a.payload={element:null},a.callback=function(){Or(t,e)},a}function sm(t){return t=Wa(t),t.tag=3,t}function lm(t,e,a,s){var r=a.type.getDerivedStateFromError;if(typeof r=="function"){var c=s.value;t.payload=function(){return r(c)},t.callback=function(){nm(e,a,s)}}var m=a.stateNode;m!==null&&typeof m.componentDidCatch=="function"&&(t.callback=function(){nm(e,a,s),typeof r!="function"&&(rn===null?rn=new Set([this]):rn.add(this));var x=s.stack;this.componentDidCatch(s.value,{componentStack:x!==null?x:""})})}function _v(t,e,a,s,r){if(a.flags|=32768,s!==null&&typeof s=="object"&&typeof s.then=="function"){if(e=a.alternate,e!==null&&Qs(e,a,r,!0),a=Ue.current,a!==null){switch(a.tag){case 31:case 13:return $e===null?Vr():a.alternate===null&&Kt===0&&(Kt=3),a.flags&=-257,a.flags|=65536,a.lanes=r,s===vr?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([s]):e.add(s),xo(t,s,r)),!1;case 22:return a.flags|=65536,s===vr?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([s])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([s]):a.add(s)),xo(t,s,r)),!1}throw Error(u(435,a.tag))}return xo(t,s,r),Vr(),!1}if(Et)return e=Ue.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=r,s!==dc&&(t=Error(u(422),{cause:s}),Vl(Xe(t,a)))):(s!==dc&&(e=Error(u(423),{cause:s}),Vl(Xe(e,a))),t=t.current.alternate,t.flags|=65536,r&=-r,t.lanes|=r,s=Xe(s,a),r=Pc(t.stateNode,s,r),Nc(t,r),Kt!==4&&(Kt=2)),!1;var c=Error(u(520),{cause:s});if(c=Xe(c,a),ui===null?ui=[c]:ui.push(c),Kt!==4&&(Kt=2),e===null)return!0;s=Xe(s,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=r&-r,a.lanes|=t,t=Pc(a.stateNode,s,t),Nc(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"&&(rn===null||!rn.has(c))))return a.flags|=65536,r&=-r,a.lanes|=r,r=sm(r),lm(r,t,a,s),Nc(a,r),!1}a=a.return}while(a!==null);return!1}var $c=Error(u(461)),kt=!1;function ue(t,e,a,s){e.child=t===null?ch(e,null,a,s):$n(e,t.child,a,s)}function im(t,e,a,s,r){a=a.render;var c=e.ref;if("ref"in s){var m={};for(var x in s)x!=="ref"&&(m[x]=s[x])}else m=s;return Xn(e),s=Cc(t,e,a,m,c,r),x=Ac(),t!==null&&!kt?(Oc(t,e,r),Ta(t,e,r)):(Et&&x&&oc(e),e.flags|=1,ue(t,e,s,r),e.child)}function rm(t,e,a,s,r){if(t===null){var c=a.type;return typeof c=="function"&&!rc(c)&&c.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=c,um(t,e,c,s,r)):(t=dr(a.type,null,s,e,e.mode,r),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!ao(t,r)){var m=c.memoizedProps;if(a=a.compare,a=a!==null?a:Ql,a(m,s)&&t.ref===e.ref)return Ta(t,e,r)}return e.flags|=1,t=Sa(c,s),t.ref=e.ref,t.return=e,e.child=t}function um(t,e,a,s,r){if(t!==null){var c=t.memoizedProps;if(Ql(c,s)&&t.ref===e.ref)if(kt=!1,e.pendingProps=s=c,ao(t,r))(t.flags&131072)!==0&&(kt=!0);else return e.lanes=t.lanes,Ta(t,e,r)}return Jc(t,e,a,s,r)}function cm(t,e,a,s){var r=s.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,t!==null){for(s=e.child=t.child,r=0;s!==null;)r=r|s.lanes|s.childLanes,s=s.sibling;s=r&~c}else s=0,e.child=null;return om(t,e,c,a,s)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&gr(e,c!==null?c.cachePool:null),c!==null?dh(e,c):_c(),hh(e);else return s=e.lanes=536870912,om(t,e,c!==null?c.baseLanes|a:a,a,s)}else c!==null?(gr(e,c.cachePool),dh(e,c),an(),e.memoizedState=null):(t!==null&&gr(e,null),_c(),an());return ue(t,e,r,a),e.child}function ei(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function om(t,e,a,s,r){var c=xc();return c=c===null?null:{parent:It._currentValue,pool:c},e.memoizedState={baseLanes:a,cachePool:c},t!==null&&gr(e,null),_c(),hh(e),t!==null&&Qs(t,e,s,!0),e.childLanes=r,null}function zr(t,e){return e=wr({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function fm(t,e,a){return $n(e,t.child,null,a),t=zr(e,e.pendingProps),t.flags|=2,Le(e),e.memoizedState=null,t}function Ev(t,e,a){var s=e.pendingProps,r=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Et){if(s.mode==="hidden")return t=zr(e,s),e.lanes=536870912,ei(null,t);if(Tc(e),(t=Qt)?(t=N0(t,Pe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:$a!==null?{id:ra,overflow:ua}:null,retryLane:536870912,hydrationErrors:null},a=$d(t),a.return=e,e.child=a,ie=e,Qt=null)):t=null,t===null)throw Ia(e);return e.lanes=536870912,null}return zr(e,s)}var c=t.memoizedState;if(c!==null){var m=c.dehydrated;if(Tc(e),r)if(e.flags&256)e.flags&=-257,e=fm(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(u(558));else if(kt||Qs(t,e,a,!1),r=(a&t.childLanes)!==0,kt||r){if(s=Ht,s!==null&&(m=ed(s,a),m!==0&&m!==c.retryLane))throw c.retryLane=m,Qn(t,m),Te(s,t,m),$c;Vr(),e=fm(t,e,a)}else t=c.treeContext,Qt=Je(m.nextSibling),ie=e,Et=!0,Ja=null,Pe=!1,t!==null&&Fd(e,t),e=zr(e,s),e.flags|=4096;return e}return t=Sa(t.child,{mode:s.mode,children:s.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Dr(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(u(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function Jc(t,e,a,s,r){return Xn(e),a=Cc(t,e,a,s,void 0,r),s=Ac(),t!==null&&!kt?(Oc(t,e,r),Ta(t,e,r)):(Et&&s&&oc(e),e.flags|=1,ue(t,e,a,r),e.child)}function dm(t,e,a,s,r,c){return Xn(e),e.updateQueue=null,a=yh(e,s,a,r),mh(t),s=Ac(),t!==null&&!kt?(Oc(t,e,c),Ta(t,e,c)):(Et&&s&&oc(e),e.flags|=1,ue(t,e,a,c),e.child)}function hm(t,e,a,s,r){if(Xn(e),e.stateNode===null){var c=Ls,m=a.contextType;typeof m=="object"&&m!==null&&(c=re(m)),c=new a(s,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Zc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=s,c.state=e.memoizedState,c.refs={},Sc(e),m=a.contextType,c.context=typeof m=="object"&&m!==null?re(m):Ls,c.state=e.memoizedState,m=a.getDerivedStateFromProps,typeof m=="function"&&(Kc(e,a,m,s),c.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(m=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),m!==c.state&&Zc.enqueueReplaceState(c,c.state,null),Il(e,s,c,r),Jl(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),s=!0}else if(t===null){c=e.stateNode;var x=e.memoizedProps,R=In(a,x);c.props=R;var z=c.context,H=a.contextType;m=Ls,typeof H=="object"&&H!==null&&(m=re(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!==m)&&Wh(e,c,s,m),ka=!1;var w=e.memoizedState;c.state=w,Il(e,s,c,r),Jl(),z=e.memoizedState,x||w!==z||ka?(typeof Y=="function"&&(Kc(e,a,Y,s),z=e.memoizedState),(R=ka||kh(e,a,R,s,w,z,m))?(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=s,e.memoizedState=z),c.props=s,c.state=z,c.context=m,s=R):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),s=!1)}else{c=e.stateNode,jc(t,e),m=e.memoizedProps,H=In(a,m),c.props=H,Y=e.pendingProps,w=c.context,z=a.contextType,R=Ls,typeof z=="object"&&z!==null&&(R=re(z)),x=a.getDerivedStateFromProps,(z=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m!==Y||w!==R)&&Wh(e,c,s,R),ka=!1,w=e.memoizedState,c.state=w,Il(e,s,c,r),Jl();var B=e.memoizedState;m!==Y||w!==B||ka||t!==null&&t.dependencies!==null&&mr(t.dependencies)?(typeof x=="function"&&(Kc(e,a,x,s),B=e.memoizedState),(H=ka||kh(e,a,H,s,w,B,R)||t!==null&&t.dependencies!==null&&mr(t.dependencies))?(z||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(s,B,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(s,B,R)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||m===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),e.memoizedProps=s,e.memoizedState=B),c.props=s,c.state=B,c.context=R,s=H):(typeof c.componentDidUpdate!="function"||m===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||m===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),s=!1)}return c=s,Dr(t,e),s=(e.flags&128)!==0,c||s?(c=e.stateNode,a=s&&typeof a.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&s?(e.child=$n(e,t.child,null,r),e.child=$n(e,null,a,r)):ue(t,e,a,r),e.memoizedState=c.state,t=e.child):t=Ta(t,e,r),t}function mm(t,e,a,s){return Gn(),e.flags|=256,ue(t,e,a,s),e.child}var Ic={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fc(t){return{baseLanes:t,cachePool:nh()}}function kc(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=He),t}function ym(t,e,a){var s=e.pendingProps,r=!1,c=(e.flags&128)!==0,m;if((m=c)||(m=t!==null&&t.memoizedState===null?!1:($t.current&2)!==0),m&&(r=!0,e.flags&=-129),m=(e.flags&32)!==0,e.flags&=-33,t===null){if(Et){if(r?en(e):an(),(t=Qt)?(t=N0(t,Pe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:$a!==null?{id:ra,overflow:ua}:null,retryLane:536870912,hydrationErrors:null},a=$d(t),a.return=e,e.child=a,ie=e,Qt=null)):t=null,t===null)throw Ia(e);return Uo(t)?e.lanes=32:e.lanes=536870912,null}var x=s.children;return s=s.fallback,r?(an(),r=e.mode,x=wr({mode:"hidden",children:x},r),s=Yn(s,r,a,null),x.return=e,s.return=e,x.sibling=s,e.child=x,s=e.child,s.memoizedState=Fc(a),s.childLanes=kc(t,m,a),e.memoizedState=Ic,ei(null,s)):(en(e),Wc(e,x))}var R=t.memoizedState;if(R!==null&&(x=R.dehydrated,x!==null)){if(c)e.flags&256?(en(e),e.flags&=-257,e=to(t,e,a)):e.memoizedState!==null?(an(),e.child=t.child,e.flags|=128,e=null):(an(),x=s.fallback,r=e.mode,s=wr({mode:"visible",children:s.children},r),x=Yn(x,r,a,null),x.flags|=2,s.return=e,x.return=e,s.sibling=x,e.child=s,$n(e,t.child,null,a),s=e.child,s.memoizedState=Fc(a),s.childLanes=kc(t,m,a),e.memoizedState=Ic,e=ei(null,s));else if(en(e),Uo(x)){if(m=x.nextSibling&&x.nextSibling.dataset,m)var z=m.dgst;m=z,s=Error(u(419)),s.stack="",s.digest=m,Vl({value:s,source:null,stack:null}),e=to(t,e,a)}else if(kt||Qs(t,e,a,!1),m=(a&t.childLanes)!==0,kt||m){if(m=Ht,m!==null&&(s=ed(m,a),s!==0&&s!==R.retryLane))throw R.retryLane=s,Qn(t,s),Te(m,t,s),$c;wo(x)||Vr(),e=to(t,e,a)}else wo(x)?(e.flags|=192,e.child=t.child,e=null):(t=R.treeContext,Qt=Je(x.nextSibling),ie=e,Et=!0,Ja=null,Pe=!1,t!==null&&Fd(e,t),e=Wc(e,s.children),e.flags|=4096);return e}return r?(an(),x=s.fallback,r=e.mode,R=t.child,z=R.sibling,s=Sa(R,{mode:"hidden",children:s.children}),s.subtreeFlags=R.subtreeFlags&65011712,z!==null?x=Sa(z,x):(x=Yn(x,r,a,null),x.flags|=2),x.return=e,s.return=e,s.sibling=x,e.child=s,ei(null,s),s=e.child,x=t.child.memoizedState,x===null?x=Fc(a):(r=x.cachePool,r!==null?(R=It._currentValue,r=r.parent!==R?{parent:R,pool:R}:r):r=nh(),x={baseLanes:x.baseLanes|a,cachePool:r}),s.memoizedState=x,s.childLanes=kc(t,m,a),e.memoizedState=Ic,ei(t.child,s)):(en(e),a=t.child,t=a.sibling,a=Sa(a,{mode:"visible",children:s.children}),a.return=e,a.sibling=null,t!==null&&(m=e.deletions,m===null?(e.deletions=[t],e.flags|=16):m.push(t)),e.child=a,e.memoizedState=null,a)}function Wc(t,e){return e=wr({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function wr(t,e){return t=we(22,t,null,e),t.lanes=0,t}function to(t,e,a){return $n(e,t.child,null,a),t=Wc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function gm(t,e,a){t.lanes|=e;var s=t.alternate;s!==null&&(s.lanes|=e),yc(t.return,e,a)}function eo(t,e,a,s,r,c){var m=t.memoizedState;m===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:s,tail:a,tailMode:r,treeForkCount:c}:(m.isBackwards=e,m.rendering=null,m.renderingStartTime=0,m.last=s,m.tail=a,m.tailMode=r,m.treeForkCount=c)}function pm(t,e,a){var s=e.pendingProps,r=s.revealOrder,c=s.tail;s=s.children;var m=$t.current,x=(m&2)!==0;if(x?(m=m&1|2,e.flags|=128):m&=1,W($t,m),ue(t,e,s,a),s=Et?Gl:0,!x&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&gm(t,a,e);else if(t.tag===19)gm(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(r){case"forwards":for(a=e.child,r=null;a!==null;)t=a.alternate,t!==null&&jr(t)===null&&(r=a),a=a.sibling;a=r,a===null?(r=e.child,e.child=null):(r=a.sibling,a.sibling=null),eo(e,!1,r,a,c,s);break;case"backwards":case"unstable_legacy-backwards":for(a=null,r=e.child,e.child=null;r!==null;){if(t=r.alternate,t!==null&&jr(t)===null){e.child=r;break}t=r.sibling,r.sibling=a,a=r,r=t}eo(e,!0,a,null,c,s);break;case"together":eo(e,!1,null,null,void 0,s);break;default:e.memoizedState=null}return e.child}function Ta(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),ln|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Qs(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(u(153));if(e.child!==null){for(t=e.child,a=Sa(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=Sa(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function ao(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&mr(t)))}function Tv(t,e,a){switch(e.tag){case 3:Pt(e,e.stateNode.containerInfo),Fa(e,It,t.memoizedState.cache),Gn();break;case 27:case 5:la(e);break;case 4:Pt(e,e.stateNode.containerInfo);break;case 10:Fa(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Tc(e),null;break;case 13:var s=e.memoizedState;if(s!==null)return s.dehydrated!==null?(en(e),e.flags|=128,null):(a&e.child.childLanes)!==0?ym(t,e,a):(en(e),t=Ta(t,e,a),t!==null?t.sibling:null);en(e);break;case 19:var r=(t.flags&128)!==0;if(s=(a&e.childLanes)!==0,s||(Qs(t,e,a,!1),s=(a&e.childLanes)!==0),r){if(s)return pm(t,e,a);e.flags|=128}if(r=e.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),W($t,$t.current),s)break;return null;case 22:return e.lanes=0,cm(t,e,a,e.pendingProps);case 24:Fa(e,It,t.memoizedState.cache)}return Ta(t,e,a)}function vm(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)kt=!0;else{if(!ao(t,a)&&(e.flags&128)===0)return kt=!1,Tv(t,e,a);kt=(t.flags&131072)!==0}else kt=!1,Et&&(e.flags&1048576)!==0&&Id(e,Gl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var s=e.pendingProps;if(t=Zn(e.elementType),e.type=t,typeof t=="function")rc(t)?(s=In(t,s),e.tag=1,e=hm(null,e,t,s,a)):(e.tag=0,e=Jc(null,e,t,s,a));else{if(t!=null){var r=t.$$typeof;if(r===L){e.tag=11,e=im(null,e,t,s,a);break t}else if(r===Z){e.tag=14,e=rm(null,e,t,s,a);break t}}throw e=ot(t)||t,Error(u(306,e,""))}}return e;case 0:return Jc(t,e,e.type,e.pendingProps,a);case 1:return s=e.type,r=In(s,e.pendingProps),hm(t,e,s,r,a);case 3:t:{if(Pt(e,e.stateNode.containerInfo),t===null)throw Error(u(387));s=e.pendingProps;var c=e.memoizedState;r=c.element,jc(t,e),Il(e,s,null,a);var m=e.memoizedState;if(s=m.cache,Fa(e,It,s),s!==c.cache&&gc(e,[It],a,!0),Jl(),s=m.element,c.isDehydrated)if(c={element:s,isDehydrated:!1,cache:m.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=mm(t,e,s,a);break t}else if(s!==r){r=Xe(Error(u(424)),e),Vl(r),e=mm(t,e,s,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=Je(t.firstChild),ie=e,Et=!0,Ja=null,Pe=!0,a=ch(e,null,s,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Gn(),s===r){e=Ta(t,e,a);break t}ue(t,e,s,a)}e=e.child}return e;case 26:return Dr(t,e),t===null?(a=C0(e.type,null,e.pendingProps,null))?e.memoizedState=a:Et||(a=e.type,t=e.pendingProps,s=Ir(xt.current).createElement(a),s[le]=e,s[Se]=t,ce(s,a,t),ae(s),e.stateNode=s):e.memoizedState=C0(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return la(e),t===null&&Et&&(s=e.stateNode=E0(e.type,e.pendingProps,xt.current),ie=e,Pe=!0,r=Qt,fn(e.type)?(Lo=r,Qt=Je(s.firstChild)):Qt=r),ue(t,e,e.pendingProps.children,a),Dr(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Et&&((r=s=Qt)&&(s=nx(s,e.type,e.pendingProps,Pe),s!==null?(e.stateNode=s,ie=e,Qt=Je(s.firstChild),Pe=!1,r=!0):r=!1),r||Ia(e)),la(e),r=e.type,c=e.pendingProps,m=t!==null?t.memoizedProps:null,s=c.children,Oo(r,c)?s=null:m!==null&&Oo(r,m)&&(e.flags|=32),e.memoizedState!==null&&(r=Cc(t,e,vv,null,null,a),gi._currentValue=r),Dr(t,e),ue(t,e,s,a),e.child;case 6:return t===null&&Et&&((t=a=Qt)&&(a=sx(a,e.pendingProps,Pe),a!==null?(e.stateNode=a,ie=e,Qt=null,t=!0):t=!1),t||Ia(e)),null;case 13:return ym(t,e,a);case 4:return Pt(e,e.stateNode.containerInfo),s=e.pendingProps,t===null?e.child=$n(e,null,s,a):ue(t,e,s,a),e.child;case 11:return im(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 s=e.pendingProps,Fa(e,e.type,s.value),ue(t,e,s.children,a),e.child;case 9:return r=e.type._context,s=e.pendingProps.children,Xn(e),r=re(r),s=s(r),e.flags|=1,ue(t,e,s,a),e.child;case 14:return rm(t,e,e.type,e.pendingProps,a);case 15:return um(t,e,e.type,e.pendingProps,a);case 19:return pm(t,e,a);case 31:return Ev(t,e,a);case 22:return cm(t,e,a,e.pendingProps);case 24:return Xn(e),s=re(It),t===null?(r=xc(),r===null&&(r=Ht,c=pc(),r.pooledCache=c,c.refCount++,c!==null&&(r.pooledCacheLanes|=a),r=c),e.memoizedState={parent:s,cache:r},Sc(e),Fa(e,It,r)):((t.lanes&a)!==0&&(jc(t,e),Il(e,null,null,a),Jl()),r=t.memoizedState,c=e.memoizedState,r.parent!==s?(r={parent:s,cache:s},e.memoizedState=r,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=r),Fa(e,It,s)):(s=c.cache,Fa(e,It,s),s!==r.cache&&gc(e,[It],a,!0))),ue(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(u(156,e.tag))}function Ma(t){t.flags|=4}function no(t,e,a,s,r){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(r&335544128)===r)if(t.stateNode.complete)t.flags|=8192;else if(Km())t.flags|=8192;else throw Pn=vr,bc}else t.flags&=-16777217}function xm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!w0(e))if(Km())t.flags|=8192;else throw Pn=vr,bc}function Ur(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?kf():536870912,t.lanes|=e,ks|=e)}function ai(t,e){if(!Et)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 s=null;a!==null;)a.alternate!==null&&(s=a),a=a.sibling;s===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:s.sibling=null}}function Yt(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,s=0;if(e)for(var r=t.child;r!==null;)a|=r.lanes|r.childLanes,s|=r.subtreeFlags&65011712,s|=r.flags&65011712,r.return=t,r=r.sibling;else for(r=t.child;r!==null;)a|=r.lanes|r.childLanes,s|=r.subtreeFlags,s|=r.flags,r.return=t,r=r.sibling;return t.subtreeFlags|=s,t.childLanes=a,e}function Mv(t,e,a){var s=e.pendingProps;switch(fc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Yt(e),null;case 1:return Yt(e),null;case 3:return a=e.stateNode,s=null,t!==null&&(s=t.memoizedState.cache),e.memoizedState.cache!==s&&(e.flags|=2048),Ra(It),qt(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(qs(e)?Ma(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,hc())),Yt(e),null;case 26:var r=e.type,c=e.memoizedState;return t===null?(Ma(e),c!==null?(Yt(e),xm(e,c)):(Yt(e),no(e,r,null,s,a))):c?c!==t.memoizedState?(Ma(e),Yt(e),xm(e,c)):(Yt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==s&&Ma(e),Yt(e),no(e,r,t,s,a)),null;case 27:if(ga(e),a=xt.current,r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&Ma(e);else{if(!s){if(e.stateNode===null)throw Error(u(166));return Yt(e),null}t=tt.current,qs(e)?kd(e):(t=E0(r,s,a),e.stateNode=t,Ma(e))}return Yt(e),null;case 5:if(ga(e),r=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==s&&Ma(e);else{if(!s){if(e.stateNode===null)throw Error(u(166));return Yt(e),null}if(c=tt.current,qs(e))kd(e);else{var m=Ir(xt.current);switch(c){case 1:c=m.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:c=m.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":c=m.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":c=m.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":c=m.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof s.is=="string"?m.createElement("select",{is:s.is}):m.createElement("select"),s.multiple?c.multiple=!0:s.size&&(c.size=s.size);break;default:c=typeof s.is=="string"?m.createElement(r,{is:s.is}):m.createElement(r)}}c[le]=e,c[Se]=s;t:for(m=e.child;m!==null;){if(m.tag===5||m.tag===6)c.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===e)break t;for(;m.sibling===null;){if(m.return===null||m.return===e)break t;m=m.return}m.sibling.return=m.return,m=m.sibling}e.stateNode=c;t:switch(ce(c,r,s),r){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break t;case"img":s=!0;break t;default:s=!1}s&&Ma(e)}}return Yt(e),no(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==s&&Ma(e);else{if(typeof s!="string"&&e.stateNode===null)throw Error(u(166));if(t=xt.current,qs(e)){if(t=e.stateNode,a=e.memoizedProps,s=null,r=ie,r!==null)switch(r.tag){case 27:case 5:s=r.memoizedProps}t[le]=e,t=!!(t.nodeValue===a||s!==null&&s.suppressHydrationWarning===!0||y0(t.nodeValue,a)),t||Ia(e,!0)}else t=Ir(t).createTextNode(s),t[le]=e,e.stateNode=t}return Yt(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(s=qs(e),a!==null){if(t===null){if(!s)throw Error(u(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(u(557));t[le]=e}else Gn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Yt(e),t=!1}else a=hc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(Le(e),e):(Le(e),null);if((e.flags&128)!==0)throw Error(u(558))}return Yt(e),null;case 13:if(s=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(r=qs(e),s!==null&&s.dehydrated!==null){if(t===null){if(!r)throw Error(u(318));if(r=e.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(u(317));r[le]=e}else Gn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Yt(e),r=!1}else r=hc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=r),r=!0;if(!r)return e.flags&256?(Le(e),e):(Le(e),null)}return Le(e),(e.flags&128)!==0?(e.lanes=a,e):(a=s!==null,t=t!==null&&t.memoizedState!==null,a&&(s=e.child,r=null,s.alternate!==null&&s.alternate.memoizedState!==null&&s.alternate.memoizedState.cachePool!==null&&(r=s.alternate.memoizedState.cachePool.pool),c=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(c=s.memoizedState.cachePool.pool),c!==r&&(s.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),Ur(e,e.updateQueue),Yt(e),null);case 4:return qt(),t===null&&Eo(e.stateNode.containerInfo),Yt(e),null;case 10:return Ra(e.type),Yt(e),null;case 19:if(Q($t),s=e.memoizedState,s===null)return Yt(e),null;if(r=(e.flags&128)!==0,c=s.rendering,c===null)if(r)ai(s,!1);else{if(Kt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=jr(t),c!==null){for(e.flags|=128,ai(s,!1),t=c.updateQueue,e.updateQueue=t,Ur(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)Pd(a,t),a=a.sibling;return W($t,$t.current&1|2),Et&&ja(e,s.treeForkCount),e.child}t=t.sibling}s.tail!==null&&St()>Qr&&(e.flags|=128,r=!0,ai(s,!1),e.lanes=4194304)}else{if(!r)if(t=jr(c),t!==null){if(e.flags|=128,r=!0,t=t.updateQueue,e.updateQueue=t,Ur(e,t),ai(s,!0),s.tail===null&&s.tailMode==="hidden"&&!c.alternate&&!Et)return Yt(e),null}else 2*St()-s.renderingStartTime>Qr&&a!==536870912&&(e.flags|=128,r=!0,ai(s,!1),e.lanes=4194304);s.isBackwards?(c.sibling=e.child,e.child=c):(t=s.last,t!==null?t.sibling=c:e.child=c,s.last=c)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=St(),t.sibling=null,a=$t.current,W($t,r?a&1|2:a&1),Et&&ja(e,s.treeForkCount),t):(Yt(e),null);case 22:case 23:return Le(e),Ec(),s=e.memoizedState!==null,t!==null?t.memoizedState!==null!==s&&(e.flags|=8192):s&&(e.flags|=8192),s?(a&536870912)!==0&&(e.flags&128)===0&&(Yt(e),e.subtreeFlags&6&&(e.flags|=8192)):Yt(e),a=e.updateQueue,a!==null&&Ur(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),s=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(s=e.memoizedState.cachePool.pool),s!==a&&(e.flags|=2048),t!==null&&Q(Kn),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),Ra(It),Yt(e),null;case 25:return null;case 30:return null}throw Error(u(156,e.tag))}function Cv(t,e){switch(fc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ra(It),qt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return ga(e),null;case 31:if(e.memoizedState!==null){if(Le(e),e.alternate===null)throw Error(u(340));Gn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Le(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(u(340));Gn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Q($t),null;case 4:return qt(),null;case 10:return Ra(e.type),null;case 22:case 23:return Le(e),Ec(),t!==null&&Q(Kn),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Ra(It),null;case 25:return null;default:return null}}function bm(t,e){switch(fc(e),e.tag){case 3:Ra(It),qt();break;case 26:case 27:case 5:ga(e);break;case 4:qt();break;case 31:e.memoizedState!==null&&Le(e);break;case 13:Le(e);break;case 19:Q($t);break;case 10:Ra(e.type);break;case 22:case 23:Le(e),Ec(),t!==null&&Q(Kn);break;case 24:Ra(It)}}function ni(t,e){try{var a=e.updateQueue,s=a!==null?a.lastEffect:null;if(s!==null){var r=s.next;a=r;do{if((a.tag&t)===t){s=void 0;var c=a.create,m=a.inst;s=c(),m.destroy=s}a=a.next}while(a!==r)}}catch(x){wt(e,e.return,x)}}function nn(t,e,a){try{var s=e.updateQueue,r=s!==null?s.lastEffect:null;if(r!==null){var c=r.next;s=c;do{if((s.tag&t)===t){var m=s.inst,x=m.destroy;if(x!==void 0){m.destroy=void 0,r=e;var R=a,z=x;try{z()}catch(H){wt(r,R,H)}}}s=s.next}while(s!==c)}}catch(H){wt(e,e.return,H)}}function Sm(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{fh(e,a)}catch(s){wt(t,t.return,s)}}}function jm(t,e,a){a.props=In(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(s){wt(t,e,s)}}function si(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var s=t.stateNode;break;case 30:s=t.stateNode;break;default:s=t.stateNode}typeof a=="function"?t.refCleanup=a(s):a.current=s}}catch(r){wt(t,e,r)}}function ca(t,e){var a=t.ref,s=t.refCleanup;if(a!==null)if(typeof s=="function")try{s()}catch(r){wt(t,e,r)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(r){wt(t,e,r)}else a.current=null}function Nm(t){var e=t.type,a=t.memoizedProps,s=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&s.focus();break t;case"img":a.src?s.src=a.src:a.srcSet&&(s.srcset=a.srcSet)}}catch(r){wt(t,t.return,r)}}function so(t,e,a){try{var s=t.stateNode;Fv(s,t.type,a,e),s[Se]=e}catch(r){wt(t,t.return,r)}}function Rm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&fn(t.type)||t.tag===4}function lo(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Rm(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&&fn(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 io(t,e,a){var s=t.tag;if(s===5||s===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=xa));else if(s!==4&&(s===27&&fn(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(io(t,e,a),t=t.sibling;t!==null;)io(t,e,a),t=t.sibling}function Lr(t,e,a){var s=t.tag;if(s===5||s===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(s!==4&&(s===27&&fn(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(Lr(t,e,a),t=t.sibling;t!==null;)Lr(t,e,a),t=t.sibling}function _m(t){var e=t.stateNode,a=t.memoizedProps;try{for(var s=t.type,r=e.attributes;r.length;)e.removeAttributeNode(r[0]);ce(e,s,a),e[le]=t,e[Se]=a}catch(c){wt(t,t.return,c)}}var Ca=!1,Wt=!1,ro=!1,Em=typeof WeakSet=="function"?WeakSet:Set,ne=null;function Av(t,e){if(t=t.containerInfo,Co=nu,t=Hd(t),tc(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var s=a.getSelection&&a.getSelection();if(s&&s.rangeCount!==0){a=s.anchorNode;var r=s.anchorOffset,c=s.focusNode;s=s.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break t}var m=0,x=-1,R=-1,z=0,H=0,Y=t,w=null;e:for(;;){for(var B;Y!==a||r!==0&&Y.nodeType!==3||(x=m+r),Y!==c||s!==0&&Y.nodeType!==3||(R=m+s),Y.nodeType===3&&(m+=Y.nodeValue.length),(B=Y.firstChild)!==null;)w=Y,Y=B;for(;;){if(Y===t)break e;if(w===a&&++z===r&&(x=m),w===c&&++H===s&&(R=m),(B=Y.nextSibling)!==null)break;Y=w,w=Y.parentNode}Y=B}a=x===-1||R===-1?null:{start:x,end:R}}else a=null}a=a||{start:0,end:0}}else a=null;for(Ao={focusedElem:t,selectionRange:a},nu=!1,ne=e;ne!==null;)if(e=ne,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,ne=t;else for(;ne!==null;){switch(e=ne,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++)r=t[a],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,a=e,r=c.memoizedProps,c=c.memoizedState,s=a.stateNode;try{var st=In(a.type,r);t=s.getSnapshotBeforeUpdate(st,c),s.__reactInternalSnapshotBeforeUpdate=t}catch(dt){wt(a,a.return,dt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)Do(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Do(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(u(163))}if(t=e.sibling,t!==null){t.return=e.return,ne=t;break}ne=e.return}}function Tm(t,e,a){var s=a.flags;switch(a.tag){case 0:case 11:case 15:Oa(t,a),s&4&&ni(5,a);break;case 1:if(Oa(t,a),s&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(m){wt(a,a.return,m)}else{var r=In(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(r,e,t.__reactInternalSnapshotBeforeUpdate)}catch(m){wt(a,a.return,m)}}s&64&&Sm(a),s&512&&si(a,a.return);break;case 3:if(Oa(t,a),s&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{fh(t,e)}catch(m){wt(a,a.return,m)}}break;case 27:e===null&&s&4&&_m(a);case 26:case 5:Oa(t,a),e===null&&s&4&&Nm(a),s&512&&si(a,a.return);break;case 12:Oa(t,a);break;case 31:Oa(t,a),s&4&&Am(t,a);break;case 13:Oa(t,a),s&4&&Om(t,a),s&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=qv.bind(null,a),lx(t,a))));break;case 22:if(s=a.memoizedState!==null||Ca,!s){e=e!==null&&e.memoizedState!==null||Wt,r=Ca;var c=Wt;Ca=s,(Wt=e)&&!c?za(t,a,(a.subtreeFlags&8772)!==0):Oa(t,a),Ca=r,Wt=c}break;case 30:break;default:Oa(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&&Bu(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 Gt=null,Ne=!1;function Aa(t,e,a){for(a=a.child;a!==null;)Cm(t,e,a),a=a.sibling}function Cm(t,e,a){if(Oe&&typeof Oe.onCommitFiberUnmount=="function")try{Oe.onCommitFiberUnmount(Ml,a)}catch{}switch(a.tag){case 26:Wt||ca(a,e),Aa(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Wt||ca(a,e);var s=Gt,r=Ne;fn(a.type)&&(Gt=a.stateNode,Ne=!1),Aa(t,e,a),hi(a.stateNode),Gt=s,Ne=r;break;case 5:Wt||ca(a,e);case 6:if(s=Gt,r=Ne,Gt=null,Aa(t,e,a),Gt=s,Ne=r,Gt!==null)if(Ne)try{(Gt.nodeType===9?Gt.body:Gt.nodeName==="HTML"?Gt.ownerDocument.body:Gt).removeChild(a.stateNode)}catch(c){wt(a,e,c)}else try{Gt.removeChild(a.stateNode)}catch(c){wt(a,e,c)}break;case 18:Gt!==null&&(Ne?(t=Gt,S0(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),il(t)):S0(Gt,a.stateNode));break;case 4:s=Gt,r=Ne,Gt=a.stateNode.containerInfo,Ne=!0,Aa(t,e,a),Gt=s,Ne=r;break;case 0:case 11:case 14:case 15:nn(2,a,e),Wt||nn(4,a,e),Aa(t,e,a);break;case 1:Wt||(ca(a,e),s=a.stateNode,typeof s.componentWillUnmount=="function"&&jm(a,e,s)),Aa(t,e,a);break;case 21:Aa(t,e,a);break;case 22:Wt=(s=Wt)||a.memoizedState!==null,Aa(t,e,a),Wt=s;break;default:Aa(t,e,a)}}function Am(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{il(t)}catch(a){wt(e,e.return,a)}}}function Om(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{il(t)}catch(a){wt(e,e.return,a)}}function Ov(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Em),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Em),e;default:throw Error(u(435,t.tag))}}function Br(t,e){var a=Ov(t);e.forEach(function(s){if(!a.has(s)){a.add(s);var r=Qv.bind(null,t,s);s.then(r,r)}})}function Re(t,e){var a=e.deletions;if(a!==null)for(var s=0;s<a.length;s++){var r=a[s],c=t,m=e,x=m;t:for(;x!==null;){switch(x.tag){case 27:if(fn(x.type)){Gt=x.stateNode,Ne=!1;break t}break;case 5:Gt=x.stateNode,Ne=!1;break t;case 3:case 4:Gt=x.stateNode.containerInfo,Ne=!0;break t}x=x.return}if(Gt===null)throw Error(u(160));Cm(c,m,r),Gt=null,Ne=!1,c=r.alternate,c!==null&&(c.return=null),r.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)zm(e,t),e=e.sibling}var ea=null;function zm(t,e){var a=t.alternate,s=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Re(e,t),_e(t),s&4&&(nn(3,t,t.return),ni(3,t),nn(5,t,t.return));break;case 1:Re(e,t),_e(t),s&512&&(Wt||a===null||ca(a,a.return)),s&64&&Ca&&(t=t.updateQueue,t!==null&&(s=t.callbacks,s!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?s:a.concat(s))));break;case 26:var r=ea;if(Re(e,t),_e(t),s&512&&(Wt||a===null||ca(a,a.return)),s&4){var c=a!==null?a.memoizedState:null;if(s=t.memoizedState,a===null)if(s===null)if(t.stateNode===null){t:{s=t.type,a=t.memoizedProps,r=r.ownerDocument||r;e:switch(s){case"title":c=r.getElementsByTagName("title")[0],(!c||c[Ol]||c[le]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=r.createElement(s),r.head.insertBefore(c,r.querySelector("head > title"))),ce(c,s,a),c[le]=t,ae(c),s=c;break t;case"link":var m=z0("link","href",r).get(s+(a.href||""));if(m){for(var x=0;x<m.length;x++)if(c=m[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)){m.splice(x,1);break e}}c=r.createElement(s),ce(c,s,a),r.head.appendChild(c);break;case"meta":if(m=z0("meta","content",r).get(s+(a.content||""))){for(x=0;x<m.length;x++)if(c=m[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)){m.splice(x,1);break e}}c=r.createElement(s),ce(c,s,a),r.head.appendChild(c);break;default:throw Error(u(468,s))}c[le]=t,ae(c),s=c}t.stateNode=s}else D0(r,t.type,t.stateNode);else t.stateNode=O0(r,s,t.memoizedProps);else c!==s?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,s===null?D0(r,t.type,t.stateNode):O0(r,s,t.memoizedProps)):s===null&&t.stateNode!==null&&so(t,t.memoizedProps,a.memoizedProps)}break;case 27:Re(e,t),_e(t),s&512&&(Wt||a===null||ca(a,a.return)),a!==null&&s&4&&so(t,t.memoizedProps,a.memoizedProps);break;case 5:if(Re(e,t),_e(t),s&512&&(Wt||a===null||ca(a,a.return)),t.flags&32){r=t.stateNode;try{Cs(r,"")}catch(st){wt(t,t.return,st)}}s&4&&t.stateNode!=null&&(r=t.memoizedProps,so(t,r,a!==null?a.memoizedProps:r)),s&1024&&(ro=!0);break;case 6:if(Re(e,t),_e(t),s&4){if(t.stateNode===null)throw Error(u(162));s=t.memoizedProps,a=t.stateNode;try{a.nodeValue=s}catch(st){wt(t,t.return,st)}}break;case 3:if(Wr=null,r=ea,ea=Fr(e.containerInfo),Re(e,t),ea=r,_e(t),s&4&&a!==null&&a.memoizedState.isDehydrated)try{il(e.containerInfo)}catch(st){wt(t,t.return,st)}ro&&(ro=!1,Dm(t));break;case 4:s=ea,ea=Fr(t.stateNode.containerInfo),Re(e,t),_e(t),ea=s;break;case 12:Re(e,t),_e(t);break;case 31:Re(e,t),_e(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Br(t,s)));break;case 13:Re(e,t),_e(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(qr=St()),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Br(t,s)));break;case 22:r=t.memoizedState!==null;var R=a!==null&&a.memoizedState!==null,z=Ca,H=Wt;if(Ca=z||r,Wt=H||R,Re(e,t),Wt=H,Ca=z,_e(t),s&8192)t:for(e=t.stateNode,e._visibility=r?e._visibility&-2:e._visibility|1,r&&(a===null||R||Ca||Wt||Fn(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){R=a=e;try{if(c=R.stateNode,r)m=c.style,typeof m.setProperty=="function"?m.setProperty("display","none","important"):m.display="none";else{x=R.stateNode;var Y=R.memoizedProps.style,w=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;x.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(st){wt(R,R.return,st)}}}else if(e.tag===6){if(a===null){R=e;try{R.stateNode.nodeValue=r?"":R.memoizedProps}catch(st){wt(R,R.return,st)}}}else if(e.tag===18){if(a===null){R=e;try{var B=R.stateNode;r?j0(B,!0):j0(R.stateNode,!1)}catch(st){wt(R,R.return,st)}}}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}s&4&&(s=t.updateQueue,s!==null&&(a=s.retryQueue,a!==null&&(s.retryQueue=null,Br(t,a))));break;case 19:Re(e,t),_e(t),s&4&&(s=t.updateQueue,s!==null&&(t.updateQueue=null,Br(t,s)));break;case 30:break;case 21:break;default:Re(e,t),_e(t)}}function _e(t){var e=t.flags;if(e&2){try{for(var a,s=t.return;s!==null;){if(Rm(s)){a=s;break}s=s.return}if(a==null)throw Error(u(160));switch(a.tag){case 27:var r=a.stateNode,c=lo(t);Lr(t,c,r);break;case 5:var m=a.stateNode;a.flags&32&&(Cs(m,""),a.flags&=-33);var x=lo(t);Lr(t,x,m);break;case 3:case 4:var R=a.stateNode.containerInfo,z=lo(t);io(t,z,R);break;default:throw Error(u(161))}}catch(H){wt(t,t.return,H)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Dm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Dm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Oa(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Tm(t,e.alternate,e),e=e.sibling}function Fn(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:nn(4,e,e.return),Fn(e);break;case 1:ca(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&jm(e,e.return,a),Fn(e);break;case 27:hi(e.stateNode);case 26:case 5:ca(e,e.return),Fn(e);break;case 22:e.memoizedState===null&&Fn(e);break;case 30:Fn(e);break;default:Fn(e)}t=t.sibling}}function za(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var s=e.alternate,r=t,c=e,m=c.flags;switch(c.tag){case 0:case 11:case 15:za(r,c,a),ni(4,c);break;case 1:if(za(r,c,a),s=c,r=s.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(z){wt(s,s.return,z)}if(s=c,r=s.updateQueue,r!==null){var x=s.stateNode;try{var R=r.shared.hiddenCallbacks;if(R!==null)for(r.shared.hiddenCallbacks=null,r=0;r<R.length;r++)oh(R[r],x)}catch(z){wt(s,s.return,z)}}a&&m&64&&Sm(c),si(c,c.return);break;case 27:_m(c);case 26:case 5:za(r,c,a),a&&s===null&&m&4&&Nm(c),si(c,c.return);break;case 12:za(r,c,a);break;case 31:za(r,c,a),a&&m&4&&Am(r,c);break;case 13:za(r,c,a),a&&m&4&&Om(r,c);break;case 22:c.memoizedState===null&&za(r,c,a),si(c,c.return);break;case 30:break;default:za(r,c,a)}e=e.sibling}}function uo(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&&Xl(a))}function co(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Xl(t))}function aa(t,e,a,s){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)wm(t,e,a,s),e=e.sibling}function wm(t,e,a,s){var r=e.flags;switch(e.tag){case 0:case 11:case 15:aa(t,e,a,s),r&2048&&ni(9,e);break;case 1:aa(t,e,a,s);break;case 3:aa(t,e,a,s),r&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Xl(t)));break;case 12:if(r&2048){aa(t,e,a,s),t=e.stateNode;try{var c=e.memoizedProps,m=c.id,x=c.onPostCommit;typeof x=="function"&&x(m,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){wt(e,e.return,R)}}else aa(t,e,a,s);break;case 31:aa(t,e,a,s);break;case 13:aa(t,e,a,s);break;case 23:break;case 22:c=e.stateNode,m=e.alternate,e.memoizedState!==null?c._visibility&2?aa(t,e,a,s):li(t,e):c._visibility&2?aa(t,e,a,s):(c._visibility|=2,Js(t,e,a,s,(e.subtreeFlags&10256)!==0||!1)),r&2048&&uo(m,e);break;case 24:aa(t,e,a,s),r&2048&&co(e.alternate,e);break;default:aa(t,e,a,s)}}function Js(t,e,a,s,r){for(r=r&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,m=e,x=a,R=s,z=m.flags;switch(m.tag){case 0:case 11:case 15:Js(c,m,x,R,r),ni(8,m);break;case 23:break;case 22:var H=m.stateNode;m.memoizedState!==null?H._visibility&2?Js(c,m,x,R,r):li(c,m):(H._visibility|=2,Js(c,m,x,R,r)),r&&z&2048&&uo(m.alternate,m);break;case 24:Js(c,m,x,R,r),r&&z&2048&&co(m.alternate,m);break;default:Js(c,m,x,R,r)}e=e.sibling}}function li(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,s=e,r=s.flags;switch(s.tag){case 22:li(a,s),r&2048&&uo(s.alternate,s);break;case 24:li(a,s),r&2048&&co(s.alternate,s);break;default:li(a,s)}e=e.sibling}}var ii=8192;function Is(t,e,a){if(t.subtreeFlags&ii)for(t=t.child;t!==null;)Um(t,e,a),t=t.sibling}function Um(t,e,a){switch(t.tag){case 26:Is(t,e,a),t.flags&ii&&t.memoizedState!==null&&px(a,ea,t.memoizedState,t.memoizedProps);break;case 5:Is(t,e,a);break;case 3:case 4:var s=ea;ea=Fr(t.stateNode.containerInfo),Is(t,e,a),ea=s;break;case 22:t.memoizedState===null&&(s=t.alternate,s!==null&&s.memoizedState!==null?(s=ii,ii=16777216,Is(t,e,a),ii=s):Is(t,e,a));break;default:Is(t,e,a)}}function Lm(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 ri(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var s=e[a];ne=s,Hm(s,t)}Lm(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Bm(t),t=t.sibling}function Bm(t){switch(t.tag){case 0:case 11:case 15:ri(t),t.flags&2048&&nn(9,t,t.return);break;case 3:ri(t);break;case 12:ri(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Hr(t)):ri(t);break;default:ri(t)}}function Hr(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var s=e[a];ne=s,Hm(s,t)}Lm(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:nn(8,e,e.return),Hr(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,Hr(e));break;default:Hr(e)}t=t.sibling}}function Hm(t,e){for(;ne!==null;){var a=ne;switch(a.tag){case 0:case 11:case 15:nn(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var s=a.memoizedState.cachePool.pool;s!=null&&s.refCount++}break;case 24:Xl(a.memoizedState.cache)}if(s=a.child,s!==null)s.return=a,ne=s;else t:for(a=t;ne!==null;){s=ne;var r=s.sibling,c=s.return;if(Mm(s),s===a){ne=null;break t}if(r!==null){r.return=c,ne=r;break t}ne=c}}}var zv={getCacheForType:function(t){var e=re(It),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return re(It).controller.signal}},Dv=typeof WeakMap=="function"?WeakMap:Map,Ot=0,Ht=null,jt=null,Rt=0,Dt=0,Be=null,sn=!1,Fs=!1,oo=!1,Da=0,Kt=0,ln=0,kn=0,fo=0,He=0,ks=0,ui=null,Ee=null,ho=!1,qr=0,qm=0,Qr=1/0,Yr=null,rn=null,te=0,un=null,Ws=null,wa=0,mo=0,yo=null,Qm=null,ci=0,go=null;function qe(){return(Ot&2)!==0&&Rt!==0?Rt&-Rt:D.T!==null?jo():ad()}function Ym(){if(He===0)if((Rt&536870912)===0||Et){var t=Ji;Ji<<=1,(Ji&3932160)===0&&(Ji=262144),He=t}else He=536870912;return t=Ue.current,t!==null&&(t.flags|=32),He}function Te(t,e,a){(t===Ht&&(Dt===2||Dt===9)||t.cancelPendingCommit!==null)&&(tl(t,0),cn(t,Rt,He,!1)),Al(t,a),((Ot&2)===0||t!==Ht)&&(t===Ht&&((Ot&2)===0&&(kn|=a),Kt===4&&cn(t,Rt,He,!1)),oa(t))}function Gm(t,e,a){if((Ot&6)!==0)throw Error(u(327));var s=!a&&(e&127)===0&&(e&t.expiredLanes)===0||Cl(t,e),r=s?Lv(t,e):vo(t,e,!0),c=s;do{if(r===0){Fs&&!s&&cn(t,e,0,!1);break}else{if(a=t.current.alternate,c&&!wv(a)){r=vo(t,e,!1),c=!1;continue}if(r===2){if(c=e,t.errorRecoveryDisabledLanes&c)var m=0;else m=t.pendingLanes&-536870913,m=m!==0?m:m&536870912?536870912:0;if(m!==0){e=m;t:{var x=t;r=ui;var R=x.current.memoizedState.isDehydrated;if(R&&(tl(x,m).flags|=256),m=vo(x,m,!1),m!==2){if(oo&&!R){x.errorRecoveryDisabledLanes|=c,kn|=c,r=4;break t}c=Ee,Ee=r,c!==null&&(Ee===null?Ee=c:Ee.push.apply(Ee,c))}r=m}if(c=!1,r!==2)continue}}if(r===1){tl(t,0),cn(t,e,0,!0);break}t:{switch(s=t,c=r,c){case 0:case 1:throw Error(u(345));case 4:if((e&4194048)!==e)break;case 6:cn(s,e,He,!sn);break t;case 2:Ee=null;break;case 3:case 5:break;default:throw Error(u(329))}if((e&62914560)===e&&(r=qr+300-St(),10<r)){if(cn(s,e,He,!sn),Fi(s,0,!0)!==0)break t;wa=e,s.timeoutHandle=x0(Vm.bind(null,s,a,Ee,Yr,ho,e,He,kn,ks,sn,c,"Throttled",-0,0),r);break t}Vm(s,a,Ee,Yr,ho,e,He,kn,ks,sn,c,null,-0,0)}}break}while(!0);oa(t)}function Vm(t,e,a,s,r,c,m,x,R,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:xa},Um(e,c,Y);var st=(c&62914560)===c?qr-St():(c&4194048)===c?qm-St():0;if(st=vx(Y,st),st!==null){wa=c,t.cancelPendingCommit=st(Fm.bind(null,t,e,c,a,s,r,m,x,R,H,Y,null,w,B)),cn(t,c,m,!z);return}}Fm(t,e,c,a,s,r,m,x,R)}function wv(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 s=0;s<a.length;s++){var r=a[s],c=r.getSnapshot;r=r.value;try{if(!De(c(),r))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 cn(t,e,a,s){e&=~fo,e&=~kn,t.suspendedLanes|=e,t.pingedLanes&=~e,s&&(t.warmLanes|=e),s=t.expirationTimes;for(var r=e;0<r;){var c=31-ze(r),m=1<<c;s[c]=-1,r&=~m}a!==0&&Wf(t,a,e)}function Gr(){return(Ot&6)===0?(oi(0),!1):!0}function po(){if(jt!==null){if(Dt===0)var t=jt.return;else t=jt,Na=Vn=null,zc(t),Xs=null,Zl=0,t=jt;for(;t!==null;)bm(t.alternate,t),t=t.return;jt=null}}function tl(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,tx(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),wa=0,po(),Ht=t,jt=a=Sa(t.current,null),Rt=e,Dt=0,Be=null,sn=!1,Fs=Cl(t,e),oo=!1,ks=He=fo=kn=ln=Kt=0,Ee=ui=null,ho=!1,(e&8)!==0&&(e|=e&32);var s=t.entangledLanes;if(s!==0)for(t=t.entanglements,s&=e;0<s;){var r=31-ze(s),c=1<<r;e|=t[r],s&=~c}return Da=e,cr(),a}function Xm(t,e){gt=null,D.H=ti,e===Vs||e===pr?(e=ih(),Dt=3):e===bc?(e=ih(),Dt=4):Dt=e===$c?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Be=e,jt===null&&(Kt=1,Or(t,Xe(e,t.current)))}function Km(){var t=Ue.current;return t===null?!0:(Rt&4194048)===Rt?$e===null:(Rt&62914560)===Rt||(Rt&536870912)!==0?t===$e:!1}function Zm(){var t=D.H;return D.H=ti,t===null?ti:t}function Pm(){var t=D.A;return D.A=zv,t}function Vr(){Kt=4,sn||(Rt&4194048)!==Rt&&Ue.current!==null||(Fs=!0),(ln&134217727)===0&&(kn&134217727)===0||Ht===null||cn(Ht,Rt,He,!1)}function vo(t,e,a){var s=Ot;Ot|=2;var r=Zm(),c=Pm();(Ht!==t||Rt!==e)&&(Yr=null,tl(t,e)),e=!1;var m=Kt;t:do try{if(Dt!==0&&jt!==null){var x=jt,R=Be;switch(Dt){case 8:po(),m=6;break t;case 3:case 2:case 9:case 6:Ue.current===null&&(e=!0);var z=Dt;if(Dt=0,Be=null,el(t,x,R,z),a&&Fs){m=0;break t}break;default:z=Dt,Dt=0,Be=null,el(t,x,R,z)}}Uv(),m=Kt;break}catch(H){Xm(t,H)}while(!0);return e&&t.shellSuspendCounter++,Na=Vn=null,Ot=s,D.H=r,D.A=c,jt===null&&(Ht=null,Rt=0,cr()),m}function Uv(){for(;jt!==null;)$m(jt)}function Lv(t,e){var a=Ot;Ot|=2;var s=Zm(),r=Pm();Ht!==t||Rt!==e?(Yr=null,Qr=St()+500,tl(t,e)):Fs=Cl(t,e);t:do try{if(Dt!==0&&jt!==null){e=jt;var c=Be;e:switch(Dt){case 1:Dt=0,Be=null,el(t,e,c,1);break;case 2:case 9:if(sh(c)){Dt=0,Be=null,Jm(e);break}e=function(){Dt!==2&&Dt!==9||Ht!==t||(Dt=7),oa(t)},c.then(e,e);break t;case 3:Dt=7;break t;case 4:Dt=5;break t;case 7:sh(c)?(Dt=0,Be=null,Jm(e)):(Dt=0,Be=null,el(t,e,c,7));break;case 5:var m=null;switch(jt.tag){case 26:m=jt.memoizedState;case 5:case 27:var x=jt;if(m?w0(m):x.stateNode.complete){Dt=0,Be=null;var R=x.sibling;if(R!==null)jt=R;else{var z=x.return;z!==null?(jt=z,Xr(z)):jt=null}break e}}Dt=0,Be=null,el(t,e,c,5);break;case 6:Dt=0,Be=null,el(t,e,c,6);break;case 8:po(),Kt=6;break t;default:throw Error(u(462))}}Bv();break}catch(H){Xm(t,H)}while(!0);return Na=Vn=null,D.H=s,D.A=r,Ot=a,jt!==null?0:(Ht=null,Rt=0,cr(),Kt)}function Bv(){for(;jt!==null&&!zu();)$m(jt)}function $m(t){var e=vm(t.alternate,t,Da);t.memoizedProps=t.pendingProps,e===null?Xr(t):jt=e}function Jm(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=dm(a,e,e.pendingProps,e.type,void 0,Rt);break;case 11:e=dm(a,e,e.pendingProps,e.type.render,e.ref,Rt);break;case 5:zc(e);default:bm(a,e),e=jt=Pd(e,Da),e=vm(a,e,Da)}t.memoizedProps=t.pendingProps,e===null?Xr(t):jt=e}function el(t,e,a,s){Na=Vn=null,zc(e),Xs=null,Zl=0;var r=e.return;try{if(_v(t,r,e,a,Rt)){Kt=1,Or(t,Xe(a,t.current)),jt=null;return}}catch(c){if(r!==null)throw jt=r,c;Kt=1,Or(t,Xe(a,t.current)),jt=null;return}e.flags&32768?(Et||s===1?t=!0:Fs||(Rt&536870912)!==0?t=!1:(sn=t=!0,(s===2||s===9||s===3||s===6)&&(s=Ue.current,s!==null&&s.tag===13&&(s.flags|=16384))),Im(e,t)):Xr(e)}function Xr(t){var e=t;do{if((e.flags&32768)!==0){Im(e,sn);return}t=e.return;var a=Mv(e.alternate,e,Da);if(a!==null){jt=a;return}if(e=e.sibling,e!==null){jt=e;return}jt=e=t}while(e!==null);Kt===0&&(Kt=5)}function Im(t,e){do{var a=Cv(t.alternate,t);if(a!==null){a.flags&=32767,jt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){jt=t;return}jt=t=a}while(t!==null);Kt=6,jt=null}function Fm(t,e,a,s,r,c,m,x,R){t.cancelPendingCommit=null;do Kr();while(te!==0);if((Ot&6)!==0)throw Error(u(327));if(e!==null){if(e===t.current)throw Error(u(177));if(c=e.lanes|e.childLanes,c|=lc,gp(t,a,c,m,x,R),t===Ht&&(jt=Ht=null,Rt=0),Ws=e,un=t,wa=a,mo=c,yo=r,Qm=s,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Yv(Pi,function(){return a0(),null})):(t.callbackNode=null,t.callbackPriority=0),s=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||s){s=D.T,D.T=null,r=V.p,V.p=2,m=Ot,Ot|=4;try{Av(t,e,a)}finally{Ot=m,V.p=r,D.T=s}}te=1,km(),Wm(),t0()}}function km(){if(te===1){te=0;var t=un,e=Ws,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var s=V.p;V.p=2;var r=Ot;Ot|=4;try{zm(e,t);var c=Ao,m=Hd(t.containerInfo),x=c.focusedElem,R=c.selectionRange;if(m!==x&&x&&x.ownerDocument&&Bd(x.ownerDocument.documentElement,x)){if(R!==null&&tc(x)){var z=R.start,H=R.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(),st=x.textContent.length,dt=Math.min(R.start,st),Bt=R.end===void 0?dt:Math.min(R.end,st);!B.extend&&dt>Bt&&(m=Bt,Bt=dt,dt=m);var A=Ld(x,dt),T=Ld(x,Bt);if(A&&T&&(B.rangeCount!==1||B.anchorNode!==A.node||B.anchorOffset!==A.offset||B.focusNode!==T.node||B.focusOffset!==T.offset)){var O=Y.createRange();O.setStart(A.node,A.offset),B.removeAllRanges(),dt>Bt?(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}}nu=!!Co,Ao=Co=null}finally{Ot=r,V.p=s,D.T=a}}t.current=e,te=2}}function Wm(){if(te===2){te=0;var t=un,e=Ws,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var s=V.p;V.p=2;var r=Ot;Ot|=4;try{Tm(t,e.alternate,e)}finally{Ot=r,V.p=s,D.T=a}}te=3}}function t0(){if(te===4||te===3){te=0,Ki();var t=un,e=Ws,a=wa,s=Qm;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?te=5:(te=0,Ws=un=null,e0(t,t.pendingLanes));var r=t.pendingLanes;if(r===0&&(rn=null),Uu(a),e=e.stateNode,Oe&&typeof Oe.onCommitFiberRoot=="function")try{Oe.onCommitFiberRoot(Ml,e,void 0,(e.current.flags&128)===128)}catch{}if(s!==null){e=D.T,r=V.p,V.p=2,D.T=null;try{for(var c=t.onRecoverableError,m=0;m<s.length;m++){var x=s[m];c(x.value,{componentStack:x.stack})}}finally{D.T=e,V.p=r}}(wa&3)!==0&&Kr(),oa(t),r=t.pendingLanes,(a&261930)!==0&&(r&42)!==0?t===go?ci++:(ci=0,go=t):ci=0,oi(0)}}function e0(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Xl(e)))}function Kr(){return km(),Wm(),t0(),a0()}function a0(){if(te!==5)return!1;var t=un,e=mo;mo=0;var a=Uu(wa),s=D.T,r=V.p;try{V.p=32>a?32:a,D.T=null,a=yo,yo=null;var c=un,m=wa;if(te=0,Ws=un=null,wa=0,(Ot&6)!==0)throw Error(u(331));var x=Ot;if(Ot|=4,Bm(c.current),wm(c,c.current,m,a),Ot=x,oi(0,!1),Oe&&typeof Oe.onPostCommitFiberRoot=="function")try{Oe.onPostCommitFiberRoot(Ml,c)}catch{}return!0}finally{V.p=r,D.T=s,e0(t,e)}}function n0(t,e,a){e=Xe(a,e),e=Pc(t.stateNode,e,2),t=tn(t,e,2),t!==null&&(Al(t,2),oa(t))}function wt(t,e,a){if(t.tag===3)n0(t,t,a);else for(;e!==null;){if(e.tag===3){n0(e,t,a);break}else if(e.tag===1){var s=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(rn===null||!rn.has(s))){t=Xe(a,t),a=sm(2),s=tn(e,a,2),s!==null&&(lm(a,s,e,t),Al(s,2),oa(s));break}}e=e.return}}function xo(t,e,a){var s=t.pingCache;if(s===null){s=t.pingCache=new Dv;var r=new Set;s.set(e,r)}else r=s.get(e),r===void 0&&(r=new Set,s.set(e,r));r.has(a)||(oo=!0,r.add(a),t=Hv.bind(null,t,e,a),e.then(t,t))}function Hv(t,e,a){var s=t.pingCache;s!==null&&s.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Ht===t&&(Rt&a)===a&&(Kt===4||Kt===3&&(Rt&62914560)===Rt&&300>St()-qr?(Ot&2)===0&&tl(t,0):fo|=a,ks===Rt&&(ks=0)),oa(t)}function s0(t,e){e===0&&(e=kf()),t=Qn(t,e),t!==null&&(Al(t,e),oa(t))}function qv(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),s0(t,a)}function Qv(t,e){var a=0;switch(t.tag){case 31:case 13:var s=t.stateNode,r=t.memoizedState;r!==null&&(a=r.retryLane);break;case 19:s=t.stateNode;break;case 22:s=t.stateNode._retryCache;break;default:throw Error(u(314))}s!==null&&s.delete(e),s0(t,a)}function Yv(t,e){return Tl(t,e)}var Zr=null,al=null,bo=!1,Pr=!1,So=!1,on=0;function oa(t){t!==al&&t.next===null&&(al===null?Zr=al=t:al=al.next=t),Pr=!0,bo||(bo=!0,Vv())}function oi(t,e){if(!So&&Pr){So=!0;do for(var a=!1,s=Zr;s!==null;){if(t!==0){var r=s.pendingLanes;if(r===0)var c=0;else{var m=s.suspendedLanes,x=s.pingedLanes;c=(1<<31-ze(42|t)+1)-1,c&=r&~(m&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,u0(s,c))}else c=Rt,c=Fi(s,s===Ht?c:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),(c&3)===0||Cl(s,c)||(a=!0,u0(s,c));s=s.next}while(a);So=!1}}function Gv(){l0()}function l0(){Pr=bo=!1;var t=0;on!==0&&Wv()&&(t=on);for(var e=St(),a=null,s=Zr;s!==null;){var r=s.next,c=i0(s,e);c===0?(s.next=null,a===null?Zr=r:a.next=r,r===null&&(al=a)):(a=s,(t!==0||(c&3)!==0)&&(Pr=!0)),s=r}te!==0&&te!==5||oi(t),on!==0&&(on=0)}function i0(t,e){for(var a=t.suspendedLanes,s=t.pingedLanes,r=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var m=31-ze(c),x=1<<m,R=r[m];R===-1?((x&a)===0||(x&s)!==0)&&(r[m]=yp(x,e)):R<=e&&(t.expiredLanes|=x),c&=~x}if(e=Ht,a=Rt,a=Fi(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s=t.callbackNode,a===0||t===e&&(Dt===2||Dt===9)||t.cancelPendingCommit!==null)return s!==null&&s!==null&&js(s),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Cl(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(s!==null&&js(s),Uu(a)){case 2:case 8:a=Zi;break;case 32:a=Pi;break;case 268435456:a=Ff;break;default:a=Pi}return s=r0.bind(null,t),a=Tl(a,s),t.callbackPriority=e,t.callbackNode=a,e}return s!==null&&s!==null&&js(s),t.callbackPriority=2,t.callbackNode=null,2}function r0(t,e){if(te!==0&&te!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Kr()&&t.callbackNode!==a)return null;var s=Rt;return s=Fi(t,t===Ht?s:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),s===0?null:(Gm(t,s,e),i0(t,St()),t.callbackNode!=null&&t.callbackNode===a?r0.bind(null,t):null)}function u0(t,e){if(Kr())return null;Gm(t,e,!0)}function Vv(){ex(function(){(Ot&6)!==0?Tl(ia,Gv):l0()})}function jo(){if(on===0){var t=Ys;t===0&&(t=$i,$i<<=1,($i&261888)===0&&($i=256)),on=t}return on}function c0(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:er(""+t)}function o0(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 Xv(t,e,a,s,r){if(e==="submit"&&a&&a.stateNode===r){var c=c0((r[Se]||null).action),m=s.submitter;m&&(e=(e=m[Se]||null)?c0(e.formAction):m.getAttribute("formAction"),e!==null&&(c=e,m=null));var x=new lr("action","action",null,s,r);t.push({event:x,listeners:[{instance:null,listener:function(){if(s.defaultPrevented){if(on!==0){var R=m?o0(r,m):new FormData(r);Yc(a,{pending:!0,data:R,method:r.method,action:c},null,R)}}else typeof c=="function"&&(x.preventDefault(),R=m?o0(r,m):new FormData(r),Yc(a,{pending:!0,data:R,method:r.method,action:c},c,R))},currentTarget:r}]})}}for(var No=0;No<sc.length;No++){var Ro=sc[No],Kv=Ro.toLowerCase(),Zv=Ro[0].toUpperCase()+Ro.slice(1);ta(Kv,"on"+Zv)}ta(Yd,"onAnimationEnd"),ta(Gd,"onAnimationIteration"),ta(Vd,"onAnimationStart"),ta("dblclick","onDoubleClick"),ta("focusin","onFocus"),ta("focusout","onBlur"),ta(uv,"onTransitionRun"),ta(cv,"onTransitionStart"),ta(ov,"onTransitionCancel"),ta(Xd,"onTransitionEnd"),Ts("onMouseEnter",["mouseout","mouseover"]),Ts("onMouseLeave",["mouseout","mouseover"]),Ts("onPointerEnter",["pointerout","pointerover"]),Ts("onPointerLeave",["pointerout","pointerover"]),Ln("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ln("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ln("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ln("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ln("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ln("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var fi="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(" "),Pv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(fi));function f0(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var s=t[a],r=s.event;s=s.listeners;t:{var c=void 0;if(e)for(var m=s.length-1;0<=m;m--){var x=s[m],R=x.instance,z=x.currentTarget;if(x=x.listener,R!==c&&r.isPropagationStopped())break t;c=x,r.currentTarget=z;try{c(r)}catch(H){ur(H)}r.currentTarget=null,c=R}else for(m=0;m<s.length;m++){if(x=s[m],R=x.instance,z=x.currentTarget,x=x.listener,R!==c&&r.isPropagationStopped())break t;c=x,r.currentTarget=z;try{c(r)}catch(H){ur(H)}r.currentTarget=null,c=R}}}}function Nt(t,e){var a=e[Lu];a===void 0&&(a=e[Lu]=new Set);var s=t+"__bubble";a.has(s)||(d0(e,t,2,!1),a.add(s))}function _o(t,e,a){var s=0;e&&(s|=4),d0(a,t,s,e)}var $r="_reactListening"+Math.random().toString(36).slice(2);function Eo(t){if(!t[$r]){t[$r]=!0,ld.forEach(function(a){a!=="selectionchange"&&(Pv.has(a)||_o(a,!1,t),_o(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[$r]||(e[$r]=!0,_o("selectionchange",!1,e))}}function d0(t,e,a,s){switch(Y0(e)){case 2:var r=Sx;break;case 8:r=jx;break;default:r=Yo}a=r.bind(null,e,a,t),r=void 0,!Ku||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(r=!0),s?r!==void 0?t.addEventListener(e,a,{capture:!0,passive:r}):t.addEventListener(e,a,!0):r!==void 0?t.addEventListener(e,a,{passive:r}):t.addEventListener(e,a,!1)}function To(t,e,a,s,r){var c=s;if((e&1)===0&&(e&2)===0&&s!==null)t:for(;;){if(s===null)return;var m=s.tag;if(m===3||m===4){var x=s.stateNode.containerInfo;if(x===r)break;if(m===4)for(m=s.return;m!==null;){var R=m.tag;if((R===3||R===4)&&m.stateNode.containerInfo===r)return;m=m.return}for(;x!==null;){if(m=Rs(x),m===null)return;if(R=m.tag,R===5||R===6||R===26||R===27){s=c=m;continue t}x=x.parentNode}}s=s.return}pd(function(){var z=c,H=Vu(a),Y=[];t:{var w=Kd.get(t);if(w!==void 0){var B=lr,st=t;switch(t){case"keypress":if(nr(a)===0)break t;case"keydown":case"keyup":B=Qp;break;case"focusin":st="focus",B=Ju;break;case"focusout":st="blur",B=Ju;break;case"beforeblur":case"afterblur":B=Ju;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=bd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=Mp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=Vp;break;case Yd:case Gd:case Vd:B=Op;break;case Xd:B=Kp;break;case"scroll":case"scrollend":B=Ep;break;case"wheel":B=Pp;break;case"copy":case"cut":case"paste":B=Dp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=jd;break;case"toggle":case"beforetoggle":B=Jp}var dt=(e&4)!==0,Bt=!dt&&(t==="scroll"||t==="scrollend"),A=dt?w!==null?w+"Capture":null:w;dt=[];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||A===null||(q=Dl(T,A),q!=null&&dt.push(di(T,q,O))),Bt)break;T=T.return}0<dt.length&&(w=new B(w,st,null,a,H),Y.push({event:w,listeners:dt}))}}if((e&7)===0){t:{if(w=t==="mouseover"||t==="pointerover",B=t==="mouseout"||t==="pointerout",w&&a!==Gu&&(st=a.relatedTarget||a.fromElement)&&(Rs(st)||st[Ns]))break t;if((B||w)&&(w=H.window===H?H:(w=H.ownerDocument)?w.defaultView||w.parentWindow:window,B?(st=a.relatedTarget||a.toElement,B=z,st=st?Rs(st):null,st!==null&&(Bt=d(st),dt=st.tag,st!==Bt||dt!==5&&dt!==27&&dt!==6)&&(st=null)):(B=null,st=z),B!==st)){if(dt=bd,q="onMouseLeave",A="onMouseEnter",T="mouse",(t==="pointerout"||t==="pointerover")&&(dt=jd,q="onPointerLeave",A="onPointerEnter",T="pointer"),Bt=B==null?w:zl(B),O=st==null?w:zl(st),w=new dt(q,T+"leave",B,a,H),w.target=Bt,w.relatedTarget=O,q=null,Rs(H)===z&&(dt=new dt(A,T+"enter",st,a,H),dt.target=O,dt.relatedTarget=Bt,q=dt),Bt=q,B&&st)e:{for(dt=$v,A=B,T=st,O=0,q=A;q;q=dt(q))O++;q=0;for(var ct=T;ct;ct=dt(ct))q++;for(;0<O-q;)A=dt(A),O--;for(;0<q-O;)T=dt(T),q--;for(;O--;){if(A===T||T!==null&&A===T.alternate){dt=A;break e}A=dt(A),T=dt(T)}dt=null}else dt=null;B!==null&&h0(Y,w,B,dt,!1),st!==null&&Bt!==null&&h0(Y,Bt,st,dt,!0)}}t:{if(w=z?zl(z):window,B=w.nodeName&&w.nodeName.toLowerCase(),B==="select"||B==="input"&&w.type==="file")var Ct=Ad;else if(Md(w))if(Od)Ct=lv;else{Ct=nv;var rt=av}else B=w.nodeName,!B||B.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?z&&Yu(z.elementType)&&(Ct=Ad):Ct=sv;if(Ct&&(Ct=Ct(t,z))){Cd(Y,Ct,a,H);break t}rt&&rt(t,w,z),t==="focusout"&&z&&w.type==="number"&&z.memoizedProps.value!=null&&Qu(w,"number",w.value)}switch(rt=z?zl(z):window,t){case"focusin":(Md(rt)||rt.contentEditable==="true")&&(Ds=rt,ec=z,Yl=null);break;case"focusout":Yl=ec=Ds=null;break;case"mousedown":ac=!0;break;case"contextmenu":case"mouseup":case"dragend":ac=!1,qd(Y,a,H);break;case"selectionchange":if(rv)break;case"keydown":case"keyup":qd(Y,a,H)}var pt;if(Fu)t:{switch(t){case"compositionstart":var _t="onCompositionStart";break t;case"compositionend":_t="onCompositionEnd";break t;case"compositionupdate":_t="onCompositionUpdate";break t}_t=void 0}else zs?Ed(t,a)&&(_t="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(_t="onCompositionStart");_t&&(Nd&&a.locale!=="ko"&&(zs||_t!=="onCompositionStart"?_t==="onCompositionEnd"&&zs&&(pt=vd()):(Pa=H,Zu="value"in Pa?Pa.value:Pa.textContent,zs=!0)),rt=Jr(z,_t),0<rt.length&&(_t=new Sd(_t,t,null,a,H),Y.push({event:_t,listeners:rt}),pt?_t.data=pt:(pt=Td(a),pt!==null&&(_t.data=pt)))),(pt=Fp?kp(t,a):Wp(t,a))&&(_t=Jr(z,"onBeforeInput"),0<_t.length&&(rt=new Sd("onBeforeInput","beforeinput",null,a,H),Y.push({event:rt,listeners:_t}),rt.data=pt)),Xv(Y,t,z,a,H)}f0(Y,e)})}function di(t,e,a){return{instance:t,listener:e,currentTarget:a}}function Jr(t,e){for(var a=e+"Capture",s=[];t!==null;){var r=t,c=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||c===null||(r=Dl(t,a),r!=null&&s.unshift(di(t,r,c)),r=Dl(t,e),r!=null&&s.push(di(t,r,c))),t.tag===3)return s;t=t.return}return[]}function $v(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function h0(t,e,a,s,r){for(var c=e._reactName,m=[];a!==null&&a!==s;){var x=a,R=x.alternate,z=x.stateNode;if(x=x.tag,R!==null&&R===s)break;x!==5&&x!==26&&x!==27||z===null||(R=z,r?(z=Dl(a,c),z!=null&&m.unshift(di(a,z,R))):r||(z=Dl(a,c),z!=null&&m.push(di(a,z,R)))),a=a.return}m.length!==0&&t.push({event:e,listeners:m})}var Jv=/\r\n?/g,Iv=/\u0000|\uFFFD/g;function m0(t){return(typeof t=="string"?t:""+t).replace(Jv,`
49
+ `).replace(Iv,"")}function y0(t,e){return e=m0(e),m0(t)===e}function Lt(t,e,a,s,r,c){switch(a){case"children":typeof s=="string"?e==="body"||e==="textarea"&&s===""||Cs(t,s):(typeof s=="number"||typeof s=="bigint")&&e!=="body"&&Cs(t,""+s);break;case"className":Wi(t,"class",s);break;case"tabIndex":Wi(t,"tabindex",s);break;case"dir":case"role":case"viewBox":case"width":case"height":Wi(t,a,s);break;case"style":yd(t,s,c);break;case"data":if(e!=="object"){Wi(t,"data",s);break}case"src":case"href":if(s===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(s==null||typeof s=="function"||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(a);break}s=er(""+s),t.setAttribute(a,s);break;case"action":case"formAction":if(typeof s=="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"&&Lt(t,e,"name",r.name,r,null),Lt(t,e,"formEncType",r.formEncType,r,null),Lt(t,e,"formMethod",r.formMethod,r,null),Lt(t,e,"formTarget",r.formTarget,r,null)):(Lt(t,e,"encType",r.encType,r,null),Lt(t,e,"method",r.method,r,null),Lt(t,e,"target",r.target,r,null)));if(s==null||typeof s=="symbol"||typeof s=="boolean"){t.removeAttribute(a);break}s=er(""+s),t.setAttribute(a,s);break;case"onClick":s!=null&&(t.onclick=xa);break;case"onScroll":s!=null&&Nt("scroll",t);break;case"onScrollEnd":s!=null&&Nt("scrollend",t);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(u(61));if(a=s.__html,a!=null){if(r.children!=null)throw Error(u(60));t.innerHTML=a}}break;case"multiple":t.multiple=s&&typeof s!="function"&&typeof s!="symbol";break;case"muted":t.muted=s&&typeof s!="function"&&typeof s!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(s==null||typeof s=="function"||typeof s=="boolean"||typeof s=="symbol"){t.removeAttribute("xlink:href");break}a=er(""+s),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":s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,""+s):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":s&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":s===!0?t.setAttribute(a,""):s!==!1&&s!=null&&typeof s!="function"&&typeof s!="symbol"?t.setAttribute(a,s):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":s!=null&&typeof s!="function"&&typeof s!="symbol"&&!isNaN(s)&&1<=s?t.setAttribute(a,s):t.removeAttribute(a);break;case"rowSpan":case"start":s==null||typeof s=="function"||typeof s=="symbol"||isNaN(s)?t.removeAttribute(a):t.setAttribute(a,s);break;case"popover":Nt("beforetoggle",t),Nt("toggle",t),ki(t,"popover",s);break;case"xlinkActuate":va(t,"http://www.w3.org/1999/xlink","xlink:actuate",s);break;case"xlinkArcrole":va(t,"http://www.w3.org/1999/xlink","xlink:arcrole",s);break;case"xlinkRole":va(t,"http://www.w3.org/1999/xlink","xlink:role",s);break;case"xlinkShow":va(t,"http://www.w3.org/1999/xlink","xlink:show",s);break;case"xlinkTitle":va(t,"http://www.w3.org/1999/xlink","xlink:title",s);break;case"xlinkType":va(t,"http://www.w3.org/1999/xlink","xlink:type",s);break;case"xmlBase":va(t,"http://www.w3.org/XML/1998/namespace","xml:base",s);break;case"xmlLang":va(t,"http://www.w3.org/XML/1998/namespace","xml:lang",s);break;case"xmlSpace":va(t,"http://www.w3.org/XML/1998/namespace","xml:space",s);break;case"is":ki(t,"is",s);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Rp.get(a)||a,ki(t,a,s))}}function Mo(t,e,a,s,r,c){switch(a){case"style":yd(t,s,c);break;case"dangerouslySetInnerHTML":if(s!=null){if(typeof s!="object"||!("__html"in s))throw Error(u(61));if(a=s.__html,a!=null){if(r.children!=null)throw Error(u(60));t.innerHTML=a}}break;case"children":typeof s=="string"?Cs(t,s):(typeof s=="number"||typeof s=="bigint")&&Cs(t,""+s);break;case"onScroll":s!=null&&Nt("scroll",t);break;case"onScrollEnd":s!=null&&Nt("scrollend",t);break;case"onClick":s!=null&&(t.onclick=xa);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!id.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(r=a.endsWith("Capture"),e=a.slice(2,r?a.length-7:void 0),c=t[Se]||null,c=c!=null?c[a]:null,typeof c=="function"&&t.removeEventListener(e,c,r),typeof s=="function")){typeof c!="function"&&c!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,s,r);break t}a in t?t[a]=s:s===!0?t.setAttribute(a,""):ki(t,a,s)}}}function ce(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Nt("error",t),Nt("load",t);var s=!1,r=!1,c;for(c in a)if(a.hasOwnProperty(c)){var m=a[c];if(m!=null)switch(c){case"src":s=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Lt(t,e,c,m,a,null)}}r&&Lt(t,e,"srcSet",a.srcSet,a,null),s&&Lt(t,e,"src",a.src,a,null);return;case"input":Nt("invalid",t);var x=c=m=r=null,R=null,z=null;for(s in a)if(a.hasOwnProperty(s)){var H=a[s];if(H!=null)switch(s){case"name":r=H;break;case"type":m=H;break;case"checked":R=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(u(137,e));break;default:Lt(t,e,s,H,a,null)}}fd(t,c,x,R,z,m,r,!1);return;case"select":Nt("invalid",t),s=m=c=null;for(r in a)if(a.hasOwnProperty(r)&&(x=a[r],x!=null))switch(r){case"value":c=x;break;case"defaultValue":m=x;break;case"multiple":s=x;default:Lt(t,e,r,x,a,null)}e=c,a=m,t.multiple=!!s,e!=null?Ms(t,!!s,e,!1):a!=null&&Ms(t,!!s,a,!0);return;case"textarea":Nt("invalid",t),c=r=s=null;for(m in a)if(a.hasOwnProperty(m)&&(x=a[m],x!=null))switch(m){case"value":s=x;break;case"defaultValue":r=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(u(91));break;default:Lt(t,e,m,x,a,null)}hd(t,s,r,c);return;case"option":for(R in a)if(a.hasOwnProperty(R)&&(s=a[R],s!=null))switch(R){case"selected":t.selected=s&&typeof s!="function"&&typeof s!="symbol";break;default:Lt(t,e,R,s,a,null)}return;case"dialog":Nt("beforetoggle",t),Nt("toggle",t),Nt("cancel",t),Nt("close",t);break;case"iframe":case"object":Nt("load",t);break;case"video":case"audio":for(s=0;s<fi.length;s++)Nt(fi[s],t);break;case"image":Nt("error",t),Nt("load",t);break;case"details":Nt("toggle",t);break;case"embed":case"source":case"link":Nt("error",t),Nt("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)&&(s=a[z],s!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(u(137,e));default:Lt(t,e,z,s,a,null)}return;default:if(Yu(e)){for(H in a)a.hasOwnProperty(H)&&(s=a[H],s!==void 0&&Mo(t,e,H,s,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(s=a[x],s!=null&&Lt(t,e,x,s,a,null))}function Fv(t,e,a,s){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,c=null,m=null,x=null,R=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":R=Y;default:s.hasOwnProperty(B)||Lt(t,e,B,null,s,Y)}}for(var w in s){var B=s[w];if(Y=a[w],s.hasOwnProperty(w)&&(B!=null||Y!=null))switch(w){case"type":c=B;break;case"name":r=B;break;case"checked":z=B;break;case"defaultChecked":H=B;break;case"value":m=B;break;case"defaultValue":x=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(u(137,e));break;default:B!==Y&&Lt(t,e,w,B,s,Y)}}qu(t,m,x,R,z,H,c,r);return;case"select":B=m=x=w=null;for(c in a)if(R=a[c],a.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":B=R;default:s.hasOwnProperty(c)||Lt(t,e,c,null,s,R)}for(r in s)if(c=s[r],R=a[r],s.hasOwnProperty(r)&&(c!=null||R!=null))switch(r){case"value":w=c;break;case"defaultValue":x=c;break;case"multiple":m=c;default:c!==R&&Lt(t,e,r,c,s,R)}e=x,a=m,s=B,w!=null?Ms(t,!!a,w,!1):!!s!=!!a&&(e!=null?Ms(t,!!a,e,!0):Ms(t,!!a,a?[]:"",!1));return;case"textarea":B=w=null;for(x in a)if(r=a[x],a.hasOwnProperty(x)&&r!=null&&!s.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Lt(t,e,x,null,s,r)}for(m in s)if(r=s[m],c=a[m],s.hasOwnProperty(m)&&(r!=null||c!=null))switch(m){case"value":w=r;break;case"defaultValue":B=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(u(91));break;default:r!==c&&Lt(t,e,m,r,s,c)}dd(t,w,B);return;case"option":for(var st in a)if(w=a[st],a.hasOwnProperty(st)&&w!=null&&!s.hasOwnProperty(st))switch(st){case"selected":t.selected=!1;break;default:Lt(t,e,st,null,s,w)}for(R in s)if(w=s[R],B=a[R],s.hasOwnProperty(R)&&w!==B&&(w!=null||B!=null))switch(R){case"selected":t.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:Lt(t,e,R,w,s,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 dt in a)w=a[dt],a.hasOwnProperty(dt)&&w!=null&&!s.hasOwnProperty(dt)&&Lt(t,e,dt,null,s,w);for(z in s)if(w=s[z],B=a[z],s.hasOwnProperty(z)&&w!==B&&(w!=null||B!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(u(137,e));break;default:Lt(t,e,z,w,s,B)}return;default:if(Yu(e)){for(var Bt in a)w=a[Bt],a.hasOwnProperty(Bt)&&w!==void 0&&!s.hasOwnProperty(Bt)&&Mo(t,e,Bt,void 0,s,w);for(H in s)w=s[H],B=a[H],!s.hasOwnProperty(H)||w===B||w===void 0&&B===void 0||Mo(t,e,H,w,s,B);return}}for(var A in a)w=a[A],a.hasOwnProperty(A)&&w!=null&&!s.hasOwnProperty(A)&&Lt(t,e,A,null,s,w);for(Y in s)w=s[Y],B=a[Y],!s.hasOwnProperty(Y)||w===B||w==null&&B==null||Lt(t,e,Y,w,s,B)}function g0(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function kv(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),s=0;s<a.length;s++){var r=a[s],c=r.transferSize,m=r.initiatorType,x=r.duration;if(c&&x&&g0(m)){for(m=0,x=r.responseEnd,s+=1;s<a.length;s++){var R=a[s],z=R.startTime;if(z>x)break;var H=R.transferSize,Y=R.initiatorType;H&&g0(Y)&&(R=R.responseEnd,m+=H*(R<x?1:(x-z)/(R-z)))}if(--s,e+=8*(c+m)/(r.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 Co=null,Ao=null;function Ir(t){return t.nodeType===9?t:t.ownerDocument}function p0(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 v0(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 Oo(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 zo=null;function Wv(){var t=window.event;return t&&t.type==="popstate"?t===zo?!1:(zo=t,!0):(zo=null,!1)}var x0=typeof setTimeout=="function"?setTimeout:void 0,tx=typeof clearTimeout=="function"?clearTimeout:void 0,b0=typeof Promise=="function"?Promise:void 0,ex=typeof queueMicrotask=="function"?queueMicrotask:typeof b0<"u"?function(t){return b0.resolve(null).then(t).catch(ax)}:x0;function ax(t){setTimeout(function(){throw t})}function fn(t){return t==="head"}function S0(t,e){var a=e,s=0;do{var r=a.nextSibling;if(t.removeChild(a),r&&r.nodeType===8)if(a=r.data,a==="/$"||a==="/&"){if(s===0){t.removeChild(r),il(e);return}s--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")s++;else if(a==="html")hi(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,hi(a);for(var c=a.firstChild;c;){var m=c.nextSibling,x=c.nodeName;c[Ol]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=m}}else a==="body"&&hi(t.ownerDocument.body);a=r}while(a);il(e)}function j0(t,e){var a=t;t=0;do{var s=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||""),s&&s.nodeType===8)if(a=s.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=s}while(a)}function Do(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":Do(a),Bu(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function nx(t,e,a,s){for(;t.nodeType===1;){var r=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!s&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(s){if(!t[Ol])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!==r.rel||t.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||t.getAttribute("title")!==(r.title==null?null:r.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(r.src==null?null:r.src)||t.getAttribute("type")!==(r.type==null?null:r.type)||t.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=r.name==null?null:""+r.name;if(r.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Je(t.nextSibling),t===null)break}return null}function sx(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Je(t.nextSibling),t===null))return null;return t}function N0(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Je(t.nextSibling),t===null))return null;return t}function wo(t){return t.data==="$?"||t.data==="$~"}function Uo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function lx(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var s=function(){e(),a.removeEventListener("DOMContentLoaded",s)};a.addEventListener("DOMContentLoaded",s),t._reactRetry=s}}function Je(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 Lo=null;function R0(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return Je(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function _0(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 E0(t,e,a){switch(e=Ir(a),t){case"html":if(t=e.documentElement,!t)throw Error(u(452));return t;case"head":if(t=e.head,!t)throw Error(u(453));return t;case"body":if(t=e.body,!t)throw Error(u(454));return t;default:throw Error(u(451))}}function hi(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Bu(t)}var Ie=new Map,T0=new Set;function Fr(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Ua=V.d;V.d={f:ix,r:rx,D:ux,C:cx,L:ox,m:fx,X:hx,S:dx,M:mx};function ix(){var t=Ua.f(),e=Gr();return t||e}function rx(t){var e=_s(t);e!==null&&e.tag===5&&e.type==="form"?Xh(e):Ua.r(t)}var nl=typeof document>"u"?null:document;function M0(t,e,a){var s=nl;if(s&&typeof e=="string"&&e){var r=Ge(e);r='link[rel="'+t+'"][href="'+r+'"]',typeof a=="string"&&(r+='[crossorigin="'+a+'"]'),T0.has(r)||(T0.add(r),t={rel:t,crossOrigin:a,href:e},s.querySelector(r)===null&&(e=s.createElement("link"),ce(e,"link",t),ae(e),s.head.appendChild(e)))}}function ux(t){Ua.D(t),M0("dns-prefetch",t,null)}function cx(t,e){Ua.C(t,e),M0("preconnect",t,e)}function ox(t,e,a){Ua.L(t,e,a);var s=nl;if(s&&t&&e){var r='link[rel="preload"][as="'+Ge(e)+'"]';e==="image"&&a&&a.imageSrcSet?(r+='[imagesrcset="'+Ge(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(r+='[imagesizes="'+Ge(a.imageSizes)+'"]')):r+='[href="'+Ge(t)+'"]';var c=r;switch(e){case"style":c=sl(t);break;case"script":c=ll(t)}Ie.has(c)||(t=v({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),Ie.set(c,t),s.querySelector(r)!==null||e==="style"&&s.querySelector(mi(c))||e==="script"&&s.querySelector(yi(c))||(e=s.createElement("link"),ce(e,"link",t),ae(e),s.head.appendChild(e)))}}function fx(t,e){Ua.m(t,e);var a=nl;if(a&&t){var s=e&&typeof e.as=="string"?e.as:"script",r='link[rel="modulepreload"][as="'+Ge(s)+'"][href="'+Ge(t)+'"]',c=r;switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=ll(t)}if(!Ie.has(c)&&(t=v({rel:"modulepreload",href:t},e),Ie.set(c,t),a.querySelector(r)===null)){switch(s){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(yi(c)))return}s=a.createElement("link"),ce(s,"link",t),ae(s),a.head.appendChild(s)}}}function dx(t,e,a){Ua.S(t,e,a);var s=nl;if(s&&t){var r=Es(s).hoistableStyles,c=sl(t);e=e||"default";var m=r.get(c);if(!m){var x={loading:0,preload:null};if(m=s.querySelector(mi(c)))x.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},a),(a=Ie.get(c))&&Bo(t,a);var R=m=s.createElement("link");ae(R),ce(R,"link",t),R._p=new Promise(function(z,H){R.onload=z,R.onerror=H}),R.addEventListener("load",function(){x.loading|=1}),R.addEventListener("error",function(){x.loading|=2}),x.loading|=4,kr(m,e,s)}m={type:"stylesheet",instance:m,count:1,state:x},r.set(c,m)}}}function hx(t,e){Ua.X(t,e);var a=nl;if(a&&t){var s=Es(a).hoistableScripts,r=ll(t),c=s.get(r);c||(c=a.querySelector(yi(r)),c||(t=v({src:t,async:!0},e),(e=Ie.get(r))&&Ho(t,e),c=a.createElement("script"),ae(c),ce(c,"link",t),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(r,c))}}function mx(t,e){Ua.M(t,e);var a=nl;if(a&&t){var s=Es(a).hoistableScripts,r=ll(t),c=s.get(r);c||(c=a.querySelector(yi(r)),c||(t=v({src:t,async:!0,type:"module"},e),(e=Ie.get(r))&&Ho(t,e),c=a.createElement("script"),ae(c),ce(c,"link",t),a.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},s.set(r,c))}}function C0(t,e,a,s){var r=(r=xt.current)?Fr(r):null;if(!r)throw Error(u(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=sl(a.href),a=Es(r).hoistableStyles,s=a.get(e),s||(s={type:"style",instance:null,count:0,state:null},a.set(e,s)),s):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=sl(a.href);var c=Es(r).hoistableStyles,m=c.get(t);if(m||(r=r.ownerDocument||r,m={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,m),(c=r.querySelector(mi(t)))&&!c._p&&(m.instance=c,m.state.loading=5),Ie.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},Ie.set(t,a),c||yx(r,t,a,m.state))),e&&s===null)throw Error(u(528,""));return m}if(e&&s!==null)throw Error(u(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=ll(a),a=Es(r).hoistableScripts,s=a.get(e),s||(s={type:"script",instance:null,count:0,state:null},a.set(e,s)),s):{type:"void",instance:null,count:0,state:null};default:throw Error(u(444,t))}}function sl(t){return'href="'+Ge(t)+'"'}function mi(t){return'link[rel="stylesheet"]['+t+"]"}function A0(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function yx(t,e,a,s){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?s.loading=1:(e=t.createElement("link"),s.preload=e,e.addEventListener("load",function(){return s.loading|=1}),e.addEventListener("error",function(){return s.loading|=2}),ce(e,"link",a),ae(e),t.head.appendChild(e))}function ll(t){return'[src="'+Ge(t)+'"]'}function yi(t){return"script[async]"+t}function O0(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var s=t.querySelector('style[data-href~="'+Ge(a.href)+'"]');if(s)return e.instance=s,ae(s),s;var r=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return s=(t.ownerDocument||t).createElement("style"),ae(s),ce(s,"style",r),kr(s,a.precedence,t),e.instance=s;case"stylesheet":r=sl(a.href);var c=t.querySelector(mi(r));if(c)return e.state.loading|=4,e.instance=c,ae(c),c;s=A0(a),(r=Ie.get(r))&&Bo(s,r),c=(t.ownerDocument||t).createElement("link"),ae(c);var m=c;return m._p=new Promise(function(x,R){m.onload=x,m.onerror=R}),ce(c,"link",s),e.state.loading|=4,kr(c,a.precedence,t),e.instance=c;case"script":return c=ll(a.src),(r=t.querySelector(yi(c)))?(e.instance=r,ae(r),r):(s=a,(r=Ie.get(c))&&(s=v({},a),Ho(s,r)),t=t.ownerDocument||t,r=t.createElement("script"),ae(r),ce(r,"link",s),t.head.appendChild(r),e.instance=r);case"void":return null;default:throw Error(u(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(s=e.instance,e.state.loading|=4,kr(s,a.precedence,t));return e.instance}function kr(t,e,a){for(var s=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=s.length?s[s.length-1]:null,c=r,m=0;m<s.length;m++){var x=s[m];if(x.dataset.precedence===e)c=x;else if(c!==r)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function Bo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Ho(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Wr=null;function z0(t,e,a){if(Wr===null){var s=new Map,r=Wr=new Map;r.set(a,s)}else r=Wr,s=r.get(a),s||(s=new Map,r.set(a,s));if(s.has(t))return s;for(s.set(t,null),a=a.getElementsByTagName(t),r=0;r<a.length;r++){var c=a[r];if(!(c[Ol]||c[le]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var m=c.getAttribute(e)||"";m=t+m;var x=s.get(m);x?x.push(c):s.set(m,[c])}}return s}function D0(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function gx(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 w0(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function px(t,e,a,s){if(a.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var r=sl(s.href),c=e.querySelector(mi(r));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=tu.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=c,ae(c);return}c=e.ownerDocument||e,s=A0(s),(r=Ie.get(r))&&Bo(s,r),c=c.createElement("link"),ae(c);var m=c;m._p=new Promise(function(x,R){m.onload=x,m.onerror=R}),ce(c,"link",s),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=tu.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var qo=0;function vx(t,e){return t.stylesheets&&t.count===0&&au(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var s=setTimeout(function(){if(t.stylesheets&&au(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&qo===0&&(qo=62500*kv());var r=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&au(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>qo?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(s),clearTimeout(r)}}:null}function tu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)au(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var eu=null;function au(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,eu=new Map,e.forEach(xx,t),eu=null,tu.call(t))}function xx(t,e){if(!(e.state.loading&4)){var a=eu.get(t);if(a)var s=a.get(null);else{a=new Map,eu.set(t,a);for(var r=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<r.length;c++){var m=r[c];(m.nodeName==="LINK"||m.getAttribute("media")!=="not all")&&(a.set(m.dataset.precedence,m),s=m)}s&&a.set(null,s)}r=e.instance,m=r.getAttribute("data-precedence"),c=a.get(m)||s,c===s&&a.set(null,r),a.set(m,r),this.count++,s=tu.bind(this),r.addEventListener("load",s),r.addEventListener("error",s),c?c.parentNode.insertBefore(r,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(r,t.firstChild)),e.state.loading|=4}}var gi={$$typeof:K,Provider:null,Consumer:null,_currentValue:at,_currentValue2:at,_threadCount:0};function bx(t,e,a,s,r,c,m,x,R){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=Du(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Du(0),this.hiddenUpdates=Du(null),this.identifierPrefix=s,this.onUncaughtError=r,this.onCaughtError=c,this.onRecoverableError=m,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function U0(t,e,a,s,r,c,m,x,R,z,H,Y){return t=new bx(t,e,a,m,R,z,H,Y,x),e=1,c===!0&&(e|=24),c=we(3,null,null,e),t.current=c,c.stateNode=t,e=pc(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:s,isDehydrated:a,cache:e},Sc(c),t}function L0(t){return t?(t=Ls,t):Ls}function B0(t,e,a,s,r,c){r=L0(r),s.context===null?s.context=r:s.pendingContext=r,s=Wa(e),s.payload={element:a},c=c===void 0?null:c,c!==null&&(s.callback=c),a=tn(t,s,e),a!==null&&(Te(a,t,e),$l(a,t,e))}function H0(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function Qo(t,e){H0(t,e),(t=t.alternate)&&H0(t,e)}function q0(t){if(t.tag===13||t.tag===31){var e=Qn(t,67108864);e!==null&&Te(e,t,67108864),Qo(t,67108864)}}function Q0(t){if(t.tag===13||t.tag===31){var e=qe();e=wu(e);var a=Qn(t,e);a!==null&&Te(a,t,e),Qo(t,e)}}var nu=!0;function Sx(t,e,a,s){var r=D.T;D.T=null;var c=V.p;try{V.p=2,Yo(t,e,a,s)}finally{V.p=c,D.T=r}}function jx(t,e,a,s){var r=D.T;D.T=null;var c=V.p;try{V.p=8,Yo(t,e,a,s)}finally{V.p=c,D.T=r}}function Yo(t,e,a,s){if(nu){var r=Go(s);if(r===null)To(t,e,s,su,a),G0(t,s);else if(Rx(r,t,e,a,s))s.stopPropagation();else if(G0(t,s),e&4&&-1<Nx.indexOf(t)){for(;r!==null;){var c=_s(r);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var m=Un(c.pendingLanes);if(m!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;m;){var R=1<<31-ze(m);x.entanglements[1]|=R,m&=~R}oa(c),(Ot&6)===0&&(Qr=St()+500,oi(0))}}break;case 31:case 13:x=Qn(c,2),x!==null&&Te(x,c,2),Gr(),Qo(c,2)}if(c=Go(s),c===null&&To(t,e,s,su,a),c===r)break;r=c}r!==null&&s.stopPropagation()}else To(t,e,s,null,a)}}function Go(t){return t=Vu(t),Vo(t)}var su=null;function Vo(t){if(su=null,t=Rs(t),t!==null){var e=d(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=y(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 su=t,null}function Y0(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(de()){case ia:return 2;case Zi:return 8;case Pi:case cp:return 32;case Ff:return 268435456;default:return 32}default:return 32}}var Xo=!1,dn=null,hn=null,mn=null,pi=new Map,vi=new Map,yn=[],Nx="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 G0(t,e){switch(t){case"focusin":case"focusout":dn=null;break;case"dragenter":case"dragleave":hn=null;break;case"mouseover":case"mouseout":mn=null;break;case"pointerover":case"pointerout":pi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":vi.delete(e.pointerId)}}function xi(t,e,a,s,r,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:a,eventSystemFlags:s,nativeEvent:c,targetContainers:[r]},e!==null&&(e=_s(e),e!==null&&q0(e)),t):(t.eventSystemFlags|=s,e=t.targetContainers,r!==null&&e.indexOf(r)===-1&&e.push(r),t)}function Rx(t,e,a,s,r){switch(e){case"focusin":return dn=xi(dn,t,e,a,s,r),!0;case"dragenter":return hn=xi(hn,t,e,a,s,r),!0;case"mouseover":return mn=xi(mn,t,e,a,s,r),!0;case"pointerover":var c=r.pointerId;return pi.set(c,xi(pi.get(c)||null,t,e,a,s,r)),!0;case"gotpointercapture":return c=r.pointerId,vi.set(c,xi(vi.get(c)||null,t,e,a,s,r)),!0}return!1}function V0(t){var e=Rs(t.target);if(e!==null){var a=d(e);if(a!==null){if(e=a.tag,e===13){if(e=h(a),e!==null){t.blockedOn=e,nd(t.priority,function(){Q0(a)});return}}else if(e===31){if(e=y(a),e!==null){t.blockedOn=e,nd(t.priority,function(){Q0(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 lu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=Go(t.nativeEvent);if(a===null){a=t.nativeEvent;var s=new a.constructor(a.type,a);Gu=s,a.target.dispatchEvent(s),Gu=null}else return e=_s(a),e!==null&&q0(e),t.blockedOn=a,!1;e.shift()}return!0}function X0(t,e,a){lu(t)&&a.delete(e)}function _x(){Xo=!1,dn!==null&&lu(dn)&&(dn=null),hn!==null&&lu(hn)&&(hn=null),mn!==null&&lu(mn)&&(mn=null),pi.forEach(X0),vi.forEach(X0)}function iu(t,e){t.blockedOn===e&&(t.blockedOn=null,Xo||(Xo=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,_x)))}var ru=null;function K0(t){ru!==t&&(ru=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){ru===t&&(ru=null);for(var e=0;e<t.length;e+=3){var a=t[e],s=t[e+1],r=t[e+2];if(typeof s!="function"){if(Vo(s||a)===null)continue;break}var c=_s(a);c!==null&&(t.splice(e,3),e-=3,Yc(c,{pending:!0,data:r,method:a.method,action:s},s,r))}}))}function il(t){function e(R){return iu(R,t)}dn!==null&&iu(dn,t),hn!==null&&iu(hn,t),mn!==null&&iu(mn,t),pi.forEach(e),vi.forEach(e);for(var a=0;a<yn.length;a++){var s=yn[a];s.blockedOn===t&&(s.blockedOn=null)}for(;0<yn.length&&(a=yn[0],a.blockedOn===null);)V0(a),a.blockedOn===null&&yn.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(s=0;s<a.length;s+=3){var r=a[s],c=a[s+1],m=r[Se]||null;if(typeof c=="function")m||K0(a);else if(m){var x=null;if(c&&c.hasAttribute("formAction")){if(r=c,m=c[Se]||null)x=m.formAction;else if(Vo(r)!==null)continue}else x=m.action;typeof x=="function"?a[s+1]=x:(a.splice(s,3),s-=3),K0(a)}}}function Z0(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(m){return r=m})},focusReset:"manual",scroll:"manual"})}function e(){r!==null&&(r(),r=null),s||setTimeout(a,20)}function a(){if(!s&&!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 s=!1,r=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){s=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),r!==null&&(r(),r=null)}}}function Ko(t){this._internalRoot=t}uu.prototype.render=Ko.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(u(409));var a=e.current,s=qe();B0(a,s,t,e,null,null)},uu.prototype.unmount=Ko.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;B0(t.current,2,null,t,null,null),Gr(),e[Ns]=null}};function uu(t){this._internalRoot=t}uu.prototype.unstable_scheduleHydration=function(t){if(t){var e=ad();t={blockedOn:null,target:t,priority:e};for(var a=0;a<yn.length&&e!==0&&e<yn[a].priority;a++);yn.splice(a,0,t),a===0&&V0(t)}};var P0=l.version;if(P0!=="19.2.4")throw Error(u(527,P0,"19.2.4"));V.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(u(188)):(t=Object.keys(t).join(","),Error(u(268,t)));return t=g(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var Ex={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cu.isDisabled&&cu.supportsFiber)try{Ml=cu.inject(Ex),Oe=cu}catch{}}return Si.createRoot=function(t,e){if(!o(t))throw Error(u(299));var a=!1,s="",r=tm,c=em,m=am;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(s=e.identifierPrefix),e.onUncaughtError!==void 0&&(r=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(m=e.onRecoverableError)),e=U0(t,1,!1,null,null,a,s,null,r,c,m,Z0),t[Ns]=e.current,Eo(t),new Ko(e)},Si.hydrateRoot=function(t,e,a){if(!o(t))throw Error(u(299));var s=!1,r="",c=tm,m=em,x=am,R=null;return a!=null&&(a.unstable_strictMode===!0&&(s=!0),a.identifierPrefix!==void 0&&(r=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.formState!==void 0&&(R=a.formState)),e=U0(t,1,!0,e,a??null,s,r,R,c,m,x,Z0),e.context=L0(null),a=e.current,s=qe(),s=wu(s),r=Wa(s),r.callback=null,tn(a,r,s),a=s,e.current.lanes=a,Al(e,a),oa(e),t[Ns]=e.current,Eo(t),new uu(e)},Si.version="19.2.4",Si}var sy;function Lx(){if(sy)return Jo.exports;sy=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(l){console.error(l)}}return n(),Jo.exports=Ux(),Jo.exports}var Bx=Lx(),Rl=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(){}},ns,xn,ol,$y,Hx=($y=class extends Rl{constructor(){super();ut(this,ns);ut(this,xn);ut(this,ol);et(this,ol,l=>{if(typeof window<"u"&&window.addEventListener){const i=()=>l();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){_(this,xn)||this.setEventListener(_(this,ol))}onUnsubscribe(){var l;this.hasListeners()||((l=_(this,xn))==null||l.call(this),et(this,xn,void 0))}setEventListener(l){var i;et(this,ol,l),(i=_(this,xn))==null||i.call(this),et(this,xn,l(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()}))}setFocused(l){_(this,ns)!==l&&(et(this,ns,l),this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(i=>{i(l)})}isFocused(){var l;return typeof _(this,ns)=="boolean"?_(this,ns):((l=globalThis.document)==null?void 0:l.visibilityState)!=="hidden"}},ns=new WeakMap,xn=new WeakMap,ol=new WeakMap,$y),wf=new Hx,qx={setTimeout:(n,l)=>setTimeout(n,l),clearTimeout:n=>clearTimeout(n),setInterval:(n,l)=>setInterval(n,l),clearInterval:n=>clearInterval(n)},bn,Df,Jy,Qx=(Jy=class{constructor(){ut(this,bn,qx);ut(this,Df,!1)}setTimeoutProvider(n){et(this,bn,n)}setTimeout(n,l){return _(this,bn).setTimeout(n,l)}clearTimeout(n){_(this,bn).clearTimeout(n)}setInterval(n,l){return _(this,bn).setInterval(n,l)}clearInterval(n){_(this,bn).clearInterval(n)}},bn=new WeakMap,Df=new WeakMap,Jy),ts=new Qx;function Yx(n){setTimeout(n,0)}var Gx=typeof window>"u"||"Deno"in globalThis;function ve(){}function Vx(n,l){return typeof n=="function"?n(l):n}function hf(n){return typeof n=="number"&&n>=0&&n!==1/0}function ig(n,l){return Math.max(n+(l||0)-Date.now(),0)}function On(n,l){return typeof n=="function"?n(l):n}function ke(n,l){return typeof n=="function"?n(l):n}function ly(n,l){const{type:i="all",exact:u,fetchStatus:o,predicate:d,queryKey:h,stale:y}=n;if(h){if(u){if(l.queryHash!==Uf(h,l.options))return!1}else if(!Oi(l.queryKey,h))return!1}if(i!=="all"){const p=l.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof y=="boolean"&&l.isStale()!==y||o&&o!==l.state.fetchStatus||d&&!d(l))}function iy(n,l){const{exact:i,status:u,predicate:o,mutationKey:d}=n;if(d){if(!l.options.mutationKey)return!1;if(i){if(ys(l.options.mutationKey)!==ys(d))return!1}else if(!Oi(l.options.mutationKey,d))return!1}return!(u&&l.state.status!==u||o&&!o(l))}function Uf(n,l){return((l==null?void 0:l.queryKeyHashFn)||ys)(n)}function ys(n){return JSON.stringify(n,(l,i)=>mf(i)?Object.keys(i).sort().reduce((u,o)=>(u[o]=i[o],u),{}):i)}function Oi(n,l){return n===l?!0:typeof n!=typeof l?!1:n&&l&&typeof n=="object"&&typeof l=="object"?Object.keys(l).every(i=>Oi(n[i],l[i])):!1}var Xx=Object.prototype.hasOwnProperty;function rg(n,l,i=0){if(n===l)return n;if(i>500)return l;const u=ry(n)&&ry(l);if(!u&&!(mf(n)&&mf(l)))return l;const d=(u?n:Object.keys(n)).length,h=u?l:Object.keys(l),y=h.length,p=u?new Array(y):{};let g=0;for(let b=0;b<y;b++){const v=u?b:h[b],S=n[v],j=l[v];if(S===j){p[v]=S,(u?b<d:Xx.call(n,v))&&g++;continue}if(S===null||j===null||typeof S!="object"||typeof j!="object"){p[v]=j;continue}const N=rg(S,j,i+1);p[v]=N,N===S&&g++}return d===y&&g===d?n:p}function bu(n,l){if(!l||Object.keys(n).length!==Object.keys(l).length)return!1;for(const i in n)if(n[i]!==l[i])return!1;return!0}function ry(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function mf(n){if(!uy(n))return!1;const l=n.constructor;if(l===void 0)return!0;const i=l.prototype;return!(!uy(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function uy(n){return Object.prototype.toString.call(n)==="[object Object]"}function Kx(n){return new Promise(l=>{ts.setTimeout(l,n)})}function yf(n,l,i){return typeof i.structuralSharing=="function"?i.structuralSharing(n,l):i.structuralSharing!==!1?rg(n,l):l}function Zx(n,l,i=0){const u=[...n,l];return i&&u.length>i?u.slice(1):u}function Px(n,l,i=0){const u=[l,...n];return i&&u.length>i?u.slice(0,-1):u}var Lf=Symbol();function ug(n,l){return!n.queryFn&&(l!=null&&l.initialPromise)?()=>l.initialPromise:!n.queryFn||n.queryFn===Lf?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Bf(n,l){return typeof n=="function"?n(...l):!!n}function $x(n,l,i){let u=!1,o;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(o??(o=l()),u||(u=!0,o.aborted?i():o.addEventListener("abort",i,{once:!0})),o)}),n}var zi=(()=>{let n=()=>Gx;return{isServer(){return n()},setIsServer(l){n=l}}})();function gf(){let n,l;const i=new Promise((o,d)=>{n=o,l=d});i.status="pending",i.catch(()=>{});function u(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{u({status:"fulfilled",value:o}),n(o)},i.reject=o=>{u({status:"rejected",reason:o}),l(o)},i}var Jx=Yx;function Ix(){let n=[],l=0,i=y=>{y()},u=y=>{y()},o=Jx;const d=y=>{l?n.push(y):o(()=>{i(y)})},h=()=>{const y=n;n=[],y.length&&o(()=>{u(()=>{y.forEach(p=>{i(p)})})})};return{batch:y=>{let p;l++;try{p=y()}finally{l--,l||h()}return p},batchCalls:y=>(...p)=>{d(()=>{y(...p)})},schedule:d,setNotifyFunction:y=>{i=y},setBatchNotifyFunction:y=>{u=y},setScheduler:y=>{o=y}}}var ee=Ix(),fl,Sn,dl,Iy,Fx=(Iy=class extends Rl{constructor(){super();ut(this,fl,!0);ut(this,Sn);ut(this,dl);et(this,dl,l=>{if(typeof window<"u"&&window.addEventListener){const i=()=>l(!0),u=()=>l(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",u)}}})}onSubscribe(){_(this,Sn)||this.setEventListener(_(this,dl))}onUnsubscribe(){var l;this.hasListeners()||((l=_(this,Sn))==null||l.call(this),et(this,Sn,void 0))}setEventListener(l){var i;et(this,dl,l),(i=_(this,Sn))==null||i.call(this),et(this,Sn,l(this.setOnline.bind(this)))}setOnline(l){_(this,fl)!==l&&(et(this,fl,l),this.listeners.forEach(u=>{u(l)}))}isOnline(){return _(this,fl)}},fl=new WeakMap,Sn=new WeakMap,dl=new WeakMap,Iy),Su=new Fx;function kx(n){return Math.min(1e3*2**n,3e4)}function cg(n){return(n??"online")==="online"?Su.isOnline():!0}var pf=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function og(n){let l=!1,i=0,u;const o=gf(),d=()=>o.status!=="pending",h=M=>{var C;if(!d()){const U=new pf(M);S(U),(C=n.onCancel)==null||C.call(n,U)}},y=()=>{l=!0},p=()=>{l=!1},g=()=>wf.isFocused()&&(n.networkMode==="always"||Su.isOnline())&&n.canRun(),b=()=>cg(n.networkMode)&&n.canRun(),v=M=>{d()||(u==null||u(),o.resolve(M))},S=M=>{d()||(u==null||u(),o.reject(M))},j=()=>new Promise(M=>{var C;u=U=>{(d()||g())&&M(U)},(C=n.onPause)==null||C.call(n)}).then(()=>{var M;u=void 0,d()||(M=n.onContinue)==null||M.call(n)}),N=()=>{if(d())return;let M;const C=i===0?n.initialPromise:void 0;try{M=C??n.fn()}catch(U){M=Promise.reject(U)}Promise.resolve(M).then(v).catch(U=>{var k;if(d())return;const $=n.retry??(zi.isServer()?0:3),K=n.retryDelay??kx,L=typeof K=="function"?K(i,U):K,X=$===!0||typeof $=="number"&&i<$||typeof $=="function"&&$(i,U);if(l||!X){S(U);return}i++,(k=n.onFail)==null||k.call(n,i,U),Kx(L).then(()=>g()?void 0:j()).then(()=>{l?S(U):N()})})};return{promise:o,status:()=>o.status,cancel:h,continue:()=>(u==null||u(),o),cancelRetry:y,continueRetry:p,canStart:b,start:()=>(b()?N():j().then(N),o)}}var ss,Fy,fg=(Fy=class{constructor(){ut(this,ss)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),hf(this.gcTime)&&et(this,ss,ts.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(zi.isServer()?1/0:300*1e3))}clearGcTimeout(){_(this,ss)&&(ts.clearTimeout(_(this,ss)),et(this,ss,void 0))}},ss=new WeakMap,Fy),ls,hl,Fe,is,se,Bi,rs,Qe,dg,La,ky,Wx=(ky=class extends fg{constructor(l){super();ut(this,Qe);ut(this,ls);ut(this,hl);ut(this,Fe);ut(this,is);ut(this,se);ut(this,Bi);ut(this,rs);et(this,rs,!1),et(this,Bi,l.defaultOptions),this.setOptions(l.options),this.observers=[],et(this,is,l.client),et(this,Fe,_(this,is).getQueryCache()),this.queryKey=l.queryKey,this.queryHash=l.queryHash,et(this,ls,oy(this.options)),this.state=l.state??_(this,ls),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var l;return(l=_(this,se))==null?void 0:l.promise}setOptions(l){if(this.options={..._(this,Bi),...l},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=oy(this.options);i.data!==void 0&&(this.setState(cy(i.data,i.dataUpdatedAt)),et(this,ls,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_(this,Fe).remove(this)}setData(l,i){const u=yf(this.state.data,l,this.options);return vt(this,Qe,La).call(this,{data:u,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),u}setState(l,i){vt(this,Qe,La).call(this,{type:"setState",state:l,setStateOptions:i})}cancel(l){var u,o;const i=(u=_(this,se))==null?void 0:u.promise;return(o=_(this,se))==null||o.cancel(l),i?i.then(ve).catch(ve):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return _(this,ls)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(l=>ke(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Lf||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>On(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!ig(this.state.dataUpdatedAt,l)}onFocus(){var i;const l=this.observers.find(u=>u.shouldFetchOnWindowFocus());l==null||l.refetch({cancelRefetch:!1}),(i=_(this,se))==null||i.continue()}onOnline(){var i;const l=this.observers.find(u=>u.shouldFetchOnReconnect());l==null||l.refetch({cancelRefetch:!1}),(i=_(this,se))==null||i.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),_(this,Fe).notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(i=>i!==l),this.observers.length||(_(this,se)&&(_(this,rs)||vt(this,Qe,dg).call(this)?_(this,se).cancel({revert:!0}):_(this,se).cancelRetry()),this.scheduleGc()),_(this,Fe).notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||vt(this,Qe,La).call(this,{type:"invalidate"})}async fetch(l,i){var p,g,b,v,S,j,N,M,C,U,$,K;if(this.state.fetchStatus!=="idle"&&((p=_(this,se))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(_(this,se))return _(this,se).continueRetry(),_(this,se).promise}if(l&&this.setOptions(l),!this.options.queryFn){const L=this.observers.find(X=>X.options.queryFn);L&&this.setOptions(L.options)}const u=new AbortController,o=L=>{Object.defineProperty(L,"signal",{enumerable:!0,get:()=>(et(this,rs,!0),u.signal)})},d=()=>{const L=ug(this.options,i),k=(()=>{const Z={client:_(this,is),queryKey:this.queryKey,meta:this.meta};return o(Z),Z})();return et(this,rs,!1),this.options.persister?this.options.persister(L,k,this):L(k)},y=(()=>{const L={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:_(this,is),state:this.state,fetchFn:d};return o(L),L})();(g=this.options.behavior)==null||g.onFetch(y,this),et(this,hl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((b=y.fetchOptions)==null?void 0:b.meta))&&vt(this,Qe,La).call(this,{type:"fetch",meta:(v=y.fetchOptions)==null?void 0:v.meta}),et(this,se,og({initialPromise:i==null?void 0:i.initialPromise,fn:y.fetchFn,onCancel:L=>{L instanceof pf&&L.revert&&this.setState({..._(this,hl),fetchStatus:"idle"}),u.abort()},onFail:(L,X)=>{vt(this,Qe,La).call(this,{type:"failed",failureCount:L,error:X})},onPause:()=>{vt(this,Qe,La).call(this,{type:"pause"})},onContinue:()=>{vt(this,Qe,La).call(this,{type:"continue"})},retry:y.options.retry,retryDelay:y.options.retryDelay,networkMode:y.options.networkMode,canRun:()=>!0}));try{const L=await _(this,se).start();if(L===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(L),(j=(S=_(this,Fe).config).onSuccess)==null||j.call(S,L,this),(M=(N=_(this,Fe).config).onSettled)==null||M.call(N,L,this.state.error,this),L}catch(L){if(L instanceof pf){if(L.silent)return _(this,se).promise;if(L.revert){if(this.state.data===void 0)throw L;return this.state.data}}throw vt(this,Qe,La).call(this,{type:"error",error:L}),(U=(C=_(this,Fe).config).onError)==null||U.call(C,L,this),(K=($=_(this,Fe).config).onSettled)==null||K.call($,this.state.data,L,this),L}finally{this.scheduleGc()}}},ls=new WeakMap,hl=new WeakMap,Fe=new WeakMap,is=new WeakMap,se=new WeakMap,Bi=new WeakMap,rs=new WeakMap,Qe=new WeakSet,dg=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},La=function(l){const i=u=>{switch(l.type){case"failed":return{...u,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...hg(u.data,this.options),fetchMeta:l.meta??null};case"success":const o={...u,...cy(l.data,l.dataUpdatedAt),dataUpdateCount:u.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return et(this,hl,l.manual?o:void 0),o;case"error":const d=l.error;return{...u,error:d,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:d,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...l.state}}};this.state=i(this.state),ee.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),_(this,Fe).notify({query:this,type:"updated",action:l})})},ky);function hg(n,l){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:cg(l.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function cy(n,l){return{data:n,dataUpdatedAt:l??Date.now(),error:null,isInvalidated:!1,status:"success"}}function oy(n){const l=typeof n.initialData=="function"?n.initialData():n.initialData,i=l!==void 0,u=i?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:l,dataUpdateCount:0,dataUpdatedAt:i?u??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Me,Tt,Hi,pe,us,ml,Ba,jn,qi,yl,gl,cs,os,Nn,pl,zt,Mi,vf,xf,bf,Sf,jf,Nf,Rf,mg,Wy,tb=(Wy=class extends Rl{constructor(l,i){super();ut(this,zt);ut(this,Me);ut(this,Tt);ut(this,Hi);ut(this,pe);ut(this,us);ut(this,ml);ut(this,Ba);ut(this,jn);ut(this,qi);ut(this,yl);ut(this,gl);ut(this,cs);ut(this,os);ut(this,Nn);ut(this,pl,new Set);this.options=i,et(this,Me,l),et(this,jn,null),et(this,Ba,gf()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(_(this,Tt).addObserver(this),fy(_(this,Tt),this.options)?vt(this,zt,Mi).call(this):this.updateResult(),vt(this,zt,Sf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return _f(_(this,Tt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return _f(_(this,Tt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,vt(this,zt,jf).call(this),vt(this,zt,Nf).call(this),_(this,Tt).removeObserver(this)}setOptions(l){const i=this.options,u=_(this,Tt);if(this.options=_(this,Me).defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ke(this.options.enabled,_(this,Tt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");vt(this,zt,Rf).call(this),_(this,Tt).setOptions(this.options),i._defaulted&&!bu(this.options,i)&&_(this,Me).getQueryCache().notify({type:"observerOptionsUpdated",query:_(this,Tt),observer:this});const o=this.hasListeners();o&&dy(_(this,Tt),u,this.options,i)&&vt(this,zt,Mi).call(this),this.updateResult(),o&&(_(this,Tt)!==u||ke(this.options.enabled,_(this,Tt))!==ke(i.enabled,_(this,Tt))||On(this.options.staleTime,_(this,Tt))!==On(i.staleTime,_(this,Tt)))&&vt(this,zt,vf).call(this);const d=vt(this,zt,xf).call(this);o&&(_(this,Tt)!==u||ke(this.options.enabled,_(this,Tt))!==ke(i.enabled,_(this,Tt))||d!==_(this,Nn))&&vt(this,zt,bf).call(this,d)}getOptimisticResult(l){const i=_(this,Me).getQueryCache().build(_(this,Me),l),u=this.createResult(i,l);return ab(this,u)&&(et(this,pe,u),et(this,ml,this.options),et(this,us,_(this,Tt).state)),u}getCurrentResult(){return _(this,pe)}trackResult(l,i){return new Proxy(l,{get:(u,o)=>(this.trackProp(o),i==null||i(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&_(this,Ba).status==="pending"&&_(this,Ba).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(u,o))})}trackProp(l){_(this,pl).add(l)}getCurrentQuery(){return _(this,Tt)}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const i=_(this,Me).defaultQueryOptions(l),u=_(this,Me).getQueryCache().build(_(this,Me),i);return u.fetch().then(()=>this.createResult(u,i))}fetch(l){return vt(this,zt,Mi).call(this,{...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),_(this,pe)))}createResult(l,i){var J;const u=_(this,Tt),o=this.options,d=_(this,pe),h=_(this,us),y=_(this,ml),g=l!==u?l.state:_(this,Hi),{state:b}=l;let v={...b},S=!1,j;if(i._optimisticResults){const G=this.hasListeners(),I=!G&&fy(l,i),lt=G&&dy(l,u,i,o);(I||lt)&&(v={...v,...hg(b.data,l.options)}),i._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:N,errorUpdatedAt:M,status:C}=v;j=v.data;let U=!1;if(i.placeholderData!==void 0&&j===void 0&&C==="pending"){let G;d!=null&&d.isPlaceholderData&&i.placeholderData===(y==null?void 0:y.placeholderData)?(G=d.data,U=!0):G=typeof i.placeholderData=="function"?i.placeholderData((J=_(this,gl))==null?void 0:J.state.data,_(this,gl)):i.placeholderData,G!==void 0&&(C="success",j=yf(d==null?void 0:d.data,G,i),S=!0)}if(i.select&&j!==void 0&&!U)if(d&&j===(h==null?void 0:h.data)&&i.select===_(this,qi))j=_(this,yl);else try{et(this,qi,i.select),j=i.select(j),j=yf(d==null?void 0:d.data,j,i),et(this,yl,j),et(this,jn,null)}catch(G){et(this,jn,G)}_(this,jn)&&(N=_(this,jn),j=_(this,yl),M=Date.now(),C="error");const $=v.fetchStatus==="fetching",K=C==="pending",L=C==="error",X=K&&$,k=j!==void 0,P={status:C,fetchStatus:v.fetchStatus,isPending:K,isSuccess:C==="success",isError:L,isInitialLoading:X,isLoading:X,data:j,dataUpdatedAt:v.dataUpdatedAt,error:N,errorUpdatedAt:M,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:l.isFetched(),isFetchedAfterMount:v.dataUpdateCount>g.dataUpdateCount||v.errorUpdateCount>g.errorUpdateCount,isFetching:$,isRefetching:$&&!K,isLoadingError:L&&!k,isPaused:v.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:L&&k,isStale:Hf(l,i),refetch:this.refetch,promise:_(this,Ba),isEnabled:ke(i.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const G=P.data!==void 0,I=P.status==="error"&&!G,lt=nt=>{I?nt.reject(P.error):G&&nt.resolve(P.data)},it=()=>{const nt=et(this,Ba,P.promise=gf());lt(nt)},ot=_(this,Ba);switch(ot.status){case"pending":l.queryHash===u.queryHash&&lt(ot);break;case"fulfilled":(I||P.data!==ot.value)&&it();break;case"rejected":(!I||P.error!==ot.reason)&&it();break}}return P}updateResult(){const l=_(this,pe),i=this.createResult(_(this,Tt),this.options);if(et(this,us,_(this,Tt).state),et(this,ml,this.options),_(this,us).data!==void 0&&et(this,gl,_(this,Tt)),bu(i,l))return;et(this,pe,i);const u=()=>{if(!l)return!0;const{notifyOnChangeProps:o}=this.options,d=typeof o=="function"?o():o;if(d==="all"||!d&&!_(this,pl).size)return!0;const h=new Set(d??_(this,pl));return this.options.throwOnError&&h.add("error"),Object.keys(_(this,pe)).some(y=>{const p=y;return _(this,pe)[p]!==l[p]&&h.has(p)})};vt(this,zt,mg).call(this,{listeners:u()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&vt(this,zt,Sf).call(this)}},Me=new WeakMap,Tt=new WeakMap,Hi=new WeakMap,pe=new WeakMap,us=new WeakMap,ml=new WeakMap,Ba=new WeakMap,jn=new WeakMap,qi=new WeakMap,yl=new WeakMap,gl=new WeakMap,cs=new WeakMap,os=new WeakMap,Nn=new WeakMap,pl=new WeakMap,zt=new WeakSet,Mi=function(l){vt(this,zt,Rf).call(this);let i=_(this,Tt).fetch(this.options,l);return l!=null&&l.throwOnError||(i=i.catch(ve)),i},vf=function(){vt(this,zt,jf).call(this);const l=On(this.options.staleTime,_(this,Tt));if(zi.isServer()||_(this,pe).isStale||!hf(l))return;const u=ig(_(this,pe).dataUpdatedAt,l)+1;et(this,cs,ts.setTimeout(()=>{_(this,pe).isStale||this.updateResult()},u))},xf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(_(this,Tt)):this.options.refetchInterval)??!1},bf=function(l){vt(this,zt,Nf).call(this),et(this,Nn,l),!(zi.isServer()||ke(this.options.enabled,_(this,Tt))===!1||!hf(_(this,Nn))||_(this,Nn)===0)&&et(this,os,ts.setInterval(()=>{(this.options.refetchIntervalInBackground||wf.isFocused())&&vt(this,zt,Mi).call(this)},_(this,Nn)))},Sf=function(){vt(this,zt,vf).call(this),vt(this,zt,bf).call(this,vt(this,zt,xf).call(this))},jf=function(){_(this,cs)&&(ts.clearTimeout(_(this,cs)),et(this,cs,void 0))},Nf=function(){_(this,os)&&(ts.clearInterval(_(this,os)),et(this,os,void 0))},Rf=function(){const l=_(this,Me).getQueryCache().build(_(this,Me),this.options);if(l===_(this,Tt))return;const i=_(this,Tt);et(this,Tt,l),et(this,Hi,l.state),this.hasListeners()&&(i==null||i.removeObserver(this),l.addObserver(this))},mg=function(l){ee.batch(()=>{l.listeners&&this.listeners.forEach(i=>{i(_(this,pe))}),_(this,Me).getQueryCache().notify({query:_(this,Tt),type:"observerResultsUpdated"})})},Wy);function eb(n,l){return ke(l.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&l.retryOnMount===!1)}function fy(n,l){return eb(n,l)||n.state.data!==void 0&&_f(n,l,l.refetchOnMount)}function _f(n,l,i){if(ke(l.enabled,n)!==!1&&On(l.staleTime,n)!=="static"){const u=typeof i=="function"?i(n):i;return u==="always"||u!==!1&&Hf(n,l)}return!1}function dy(n,l,i,u){return(n!==l||ke(u.enabled,n)===!1)&&(!i.suspense||n.state.status!=="error")&&Hf(n,i)}function Hf(n,l){return ke(l.enabled,n)!==!1&&n.isStaleByTime(On(l.staleTime,n))}function ab(n,l){return!bu(n.getCurrentResult(),l)}function hy(n){return{onFetch:(l,i)=>{var b,v,S,j,N;const u=l.options,o=(S=(v=(b=l.fetchOptions)==null?void 0:b.meta)==null?void 0:v.fetchMore)==null?void 0:S.direction,d=((j=l.state.data)==null?void 0:j.pages)||[],h=((N=l.state.data)==null?void 0:N.pageParams)||[];let y={pages:[],pageParams:[]},p=0;const g=async()=>{let M=!1;const C=K=>{$x(K,()=>l.signal,()=>M=!0)},U=ug(l.options,l.fetchOptions),$=async(K,L,X)=>{if(M)return Promise.reject();if(L==null&&K.pages.length)return Promise.resolve(K);const Z=(()=>{const I={client:l.client,queryKey:l.queryKey,pageParam:L,direction:X?"backward":"forward",meta:l.options.meta};return C(I),I})(),P=await U(Z),{maxPages:J}=l.options,G=X?Px:Zx;return{pages:G(K.pages,P,J),pageParams:G(K.pageParams,L,J)}};if(o&&d.length){const K=o==="backward",L=K?nb:my,X={pages:d,pageParams:h},k=L(u,X);y=await $(X,k,K)}else{const K=n??d.length;do{const L=p===0?h[0]??u.initialPageParam:my(u,y);if(p>0&&L==null)break;y=await $(y,L),p++}while(p<K)}return y};l.options.persister?l.fetchFn=()=>{var M,C;return(C=(M=l.options).persister)==null?void 0:C.call(M,g,{client:l.client,queryKey:l.queryKey,meta:l.options.meta,signal:l.signal},i)}:l.fetchFn=g}}}function my(n,{pages:l,pageParams:i}){const u=l.length-1;return l.length>0?n.getNextPageParam(l[u],l,i[u],i):void 0}function nb(n,{pages:l,pageParams:i}){var u;return l.length>0?(u=n.getPreviousPageParam)==null?void 0:u.call(n,l[0],l,i[0],i):void 0}var Qi,da,me,fs,ha,pn,tg,sb=(tg=class extends fg{constructor(l){super();ut(this,ha);ut(this,Qi);ut(this,da);ut(this,me);ut(this,fs);et(this,Qi,l.client),this.mutationId=l.mutationId,et(this,me,l.mutationCache),et(this,da,[]),this.state=l.state||yg(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){_(this,da).includes(l)||(_(this,da).push(l),this.clearGcTimeout(),_(this,me).notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){et(this,da,_(this,da).filter(i=>i!==l)),this.scheduleGc(),_(this,me).notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){_(this,da).length||(this.state.status==="pending"?this.scheduleGc():_(this,me).remove(this))}continue(){var l;return((l=_(this,fs))==null?void 0:l.continue())??this.execute(this.state.variables)}async execute(l){var h,y,p,g,b,v,S,j,N,M,C,U,$,K,L,X,k,Z;const i=()=>{vt(this,ha,pn).call(this,{type:"continue"})},u={client:_(this,Qi),meta:this.options.meta,mutationKey:this.options.mutationKey};et(this,fs,og({fn:()=>this.options.mutationFn?this.options.mutationFn(l,u):Promise.reject(new Error("No mutationFn found")),onFail:(P,J)=>{vt(this,ha,pn).call(this,{type:"failed",failureCount:P,error:J})},onPause:()=>{vt(this,ha,pn).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_(this,me).canRun(this)}));const o=this.state.status==="pending",d=!_(this,fs).canStart();try{if(o)i();else{vt(this,ha,pn).call(this,{type:"pending",variables:l,isPaused:d}),_(this,me).config.onMutate&&await _(this,me).config.onMutate(l,this,u);const J=await((y=(h=this.options).onMutate)==null?void 0:y.call(h,l,u));J!==this.state.context&&vt(this,ha,pn).call(this,{type:"pending",context:J,variables:l,isPaused:d})}const P=await _(this,fs).start();return await((g=(p=_(this,me).config).onSuccess)==null?void 0:g.call(p,P,l,this.state.context,this,u)),await((v=(b=this.options).onSuccess)==null?void 0:v.call(b,P,l,this.state.context,u)),await((j=(S=_(this,me).config).onSettled)==null?void 0:j.call(S,P,null,this.state.variables,this.state.context,this,u)),await((M=(N=this.options).onSettled)==null?void 0:M.call(N,P,null,l,this.state.context,u)),vt(this,ha,pn).call(this,{type:"success",data:P}),P}catch(P){try{await((U=(C=_(this,me).config).onError)==null?void 0:U.call(C,P,l,this.state.context,this,u))}catch(J){Promise.reject(J)}try{await((K=($=this.options).onError)==null?void 0:K.call($,P,l,this.state.context,u))}catch(J){Promise.reject(J)}try{await((X=(L=_(this,me).config).onSettled)==null?void 0:X.call(L,void 0,P,this.state.variables,this.state.context,this,u))}catch(J){Promise.reject(J)}try{await((Z=(k=this.options).onSettled)==null?void 0:Z.call(k,void 0,P,l,this.state.context,u))}catch(J){Promise.reject(J)}throw vt(this,ha,pn).call(this,{type:"error",error:P}),P}finally{_(this,me).runNext(this)}}},Qi=new WeakMap,da=new WeakMap,me=new WeakMap,fs=new WeakMap,ha=new WeakSet,pn=function(l){const i=u=>{switch(l.type){case"failed":return{...u,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...u,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:l.error,failureCount:u.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=i(this.state),ee.batch(()=>{_(this,da).forEach(u=>{u.onMutationUpdate(l)}),_(this,me).notify({mutation:this,type:"updated",action:l})})},tg);function yg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Ha,na,Yi,eg,lb=(eg=class extends Rl{constructor(l={}){super();ut(this,Ha);ut(this,na);ut(this,Yi);this.config=l,et(this,Ha,new Set),et(this,na,new Map),et(this,Yi,0)}build(l,i,u){const o=new sb({client:l,mutationCache:this,mutationId:++ou(this,Yi)._,options:l.defaultMutationOptions(i),state:u});return this.add(o),o}add(l){_(this,Ha).add(l);const i=fu(l);if(typeof i=="string"){const u=_(this,na).get(i);u?u.push(l):_(this,na).set(i,[l])}this.notify({type:"added",mutation:l})}remove(l){if(_(this,Ha).delete(l)){const i=fu(l);if(typeof i=="string"){const u=_(this,na).get(i);if(u)if(u.length>1){const o=u.indexOf(l);o!==-1&&u.splice(o,1)}else u[0]===l&&_(this,na).delete(i)}}this.notify({type:"removed",mutation:l})}canRun(l){const i=fu(l);if(typeof i=="string"){const u=_(this,na).get(i),o=u==null?void 0:u.find(d=>d.state.status==="pending");return!o||o===l}else return!0}runNext(l){var u;const i=fu(l);if(typeof i=="string"){const o=(u=_(this,na).get(i))==null?void 0:u.find(d=>d!==l&&d.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ee.batch(()=>{_(this,Ha).forEach(l=>{this.notify({type:"removed",mutation:l})}),_(this,Ha).clear(),_(this,na).clear()})}getAll(){return Array.from(_(this,Ha))}find(l){const i={exact:!0,...l};return this.getAll().find(u=>iy(i,u))}findAll(l={}){return this.getAll().filter(i=>iy(l,i))}notify(l){ee.batch(()=>{this.listeners.forEach(i=>{i(l)})})}resumePausedMutations(){const l=this.getAll().filter(i=>i.state.isPaused);return ee.batch(()=>Promise.all(l.map(i=>i.continue().catch(ve))))}},Ha=new WeakMap,na=new WeakMap,Yi=new WeakMap,eg);function fu(n){var l;return(l=n.options.scope)==null?void 0:l.id}var qa,Rn,Ce,Qa,Ga,yu,Ef,ag,ib=(ag=class extends Rl{constructor(i,u){super();ut(this,Ga);ut(this,qa);ut(this,Rn);ut(this,Ce);ut(this,Qa);et(this,qa,i),this.setOptions(u),this.bindMethods(),vt(this,Ga,yu).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var o;const u=this.options;this.options=_(this,qa).defaultMutationOptions(i),bu(this.options,u)||_(this,qa).getMutationCache().notify({type:"observerOptionsUpdated",mutation:_(this,Ce),observer:this}),u!=null&&u.mutationKey&&this.options.mutationKey&&ys(u.mutationKey)!==ys(this.options.mutationKey)?this.reset():((o=_(this,Ce))==null?void 0:o.state.status)==="pending"&&_(this,Ce).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=_(this,Ce))==null||i.removeObserver(this)}onMutationUpdate(i){vt(this,Ga,yu).call(this),vt(this,Ga,Ef).call(this,i)}getCurrentResult(){return _(this,Rn)}reset(){var i;(i=_(this,Ce))==null||i.removeObserver(this),et(this,Ce,void 0),vt(this,Ga,yu).call(this),vt(this,Ga,Ef).call(this)}mutate(i,u){var o;return et(this,Qa,u),(o=_(this,Ce))==null||o.removeObserver(this),et(this,Ce,_(this,qa).getMutationCache().build(_(this,qa),this.options)),_(this,Ce).addObserver(this),_(this,Ce).execute(i)}},qa=new WeakMap,Rn=new WeakMap,Ce=new WeakMap,Qa=new WeakMap,Ga=new WeakSet,yu=function(){var u;const i=((u=_(this,Ce))==null?void 0:u.state)??yg();et(this,Rn,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Ef=function(i){ee.batch(()=>{var u,o,d,h,y,p,g,b;if(_(this,Qa)&&this.hasListeners()){const v=_(this,Rn).variables,S=_(this,Rn).context,j={client:_(this,qa),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(o=(u=_(this,Qa)).onSuccess)==null||o.call(u,i.data,v,S,j)}catch(N){Promise.reject(N)}try{(h=(d=_(this,Qa)).onSettled)==null||h.call(d,i.data,null,v,S,j)}catch(N){Promise.reject(N)}}else if((i==null?void 0:i.type)==="error"){try{(p=(y=_(this,Qa)).onError)==null||p.call(y,i.error,v,S,j)}catch(N){Promise.reject(N)}try{(b=(g=_(this,Qa)).onSettled)==null||b.call(g,void 0,i.error,v,S,j)}catch(N){Promise.reject(N)}}}this.listeners.forEach(v=>{v(_(this,Rn))})})},ag),ma,ng,rb=(ng=class extends Rl{constructor(l={}){super();ut(this,ma);this.config=l,et(this,ma,new Map)}build(l,i,u){const o=i.queryKey,d=i.queryHash??Uf(o,i);let h=this.get(d);return h||(h=new Wx({client:l,queryKey:o,queryHash:d,options:l.defaultQueryOptions(i),state:u,defaultOptions:l.getQueryDefaults(o)}),this.add(h)),h}add(l){_(this,ma).has(l.queryHash)||(_(this,ma).set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const i=_(this,ma).get(l.queryHash);i&&(l.destroy(),i===l&&_(this,ma).delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){ee.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return _(this,ma).get(l)}getAll(){return[..._(this,ma).values()]}find(l){const i={exact:!0,...l};return this.getAll().find(u=>ly(i,u))}findAll(l={}){const i=this.getAll();return Object.keys(l).length>0?i.filter(u=>ly(l,u)):i}notify(l){ee.batch(()=>{this.listeners.forEach(i=>{i(l)})})}onFocus(){ee.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){ee.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},ma=new WeakMap,ng),Zt,_n,En,vl,xl,Tn,bl,Sl,sg,ub=(sg=class{constructor(n={}){ut(this,Zt);ut(this,_n);ut(this,En);ut(this,vl);ut(this,xl);ut(this,Tn);ut(this,bl);ut(this,Sl);et(this,Zt,n.queryCache||new rb),et(this,_n,n.mutationCache||new lb),et(this,En,n.defaultOptions||{}),et(this,vl,new Map),et(this,xl,new Map),et(this,Tn,0)}mount(){ou(this,Tn)._++,_(this,Tn)===1&&(et(this,bl,wf.subscribe(async n=>{n&&(await this.resumePausedMutations(),_(this,Zt).onFocus())})),et(this,Sl,Su.subscribe(async n=>{n&&(await this.resumePausedMutations(),_(this,Zt).onOnline())})))}unmount(){var n,l;ou(this,Tn)._--,_(this,Tn)===0&&((n=_(this,bl))==null||n.call(this),et(this,bl,void 0),(l=_(this,Sl))==null||l.call(this),et(this,Sl,void 0))}isFetching(n){return _(this,Zt).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return _(this,_n).findAll({...n,status:"pending"}).length}getQueryData(n){var i;const l=this.defaultQueryOptions({queryKey:n});return(i=_(this,Zt).get(l.queryHash))==null?void 0:i.state.data}ensureQueryData(n){const l=this.defaultQueryOptions(n),i=_(this,Zt).build(this,l),u=i.state.data;return u===void 0?this.fetchQuery(n):(n.revalidateIfStale&&i.isStaleByTime(On(l.staleTime,i))&&this.prefetchQuery(l),Promise.resolve(u))}getQueriesData(n){return _(this,Zt).findAll(n).map(({queryKey:l,state:i})=>{const u=i.data;return[l,u]})}setQueryData(n,l,i){const u=this.defaultQueryOptions({queryKey:n}),o=_(this,Zt).get(u.queryHash),d=o==null?void 0:o.state.data,h=Vx(l,d);if(h!==void 0)return _(this,Zt).build(this,u).setData(h,{...i,manual:!0})}setQueriesData(n,l,i){return ee.batch(()=>_(this,Zt).findAll(n).map(({queryKey:u})=>[u,this.setQueryData(u,l,i)]))}getQueryState(n){var i;const l=this.defaultQueryOptions({queryKey:n});return(i=_(this,Zt).get(l.queryHash))==null?void 0:i.state}removeQueries(n){const l=_(this,Zt);ee.batch(()=>{l.findAll(n).forEach(i=>{l.remove(i)})})}resetQueries(n,l){const i=_(this,Zt);return ee.batch(()=>(i.findAll(n).forEach(u=>{u.reset()}),this.refetchQueries({type:"active",...n},l)))}cancelQueries(n,l={}){const i={revert:!0,...l},u=ee.batch(()=>_(this,Zt).findAll(n).map(o=>o.cancel(i)));return Promise.all(u).then(ve).catch(ve)}invalidateQueries(n,l={}){return ee.batch(()=>(_(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"},l)))}refetchQueries(n,l={}){const i={...l,cancelRefetch:l.cancelRefetch??!0},u=ee.batch(()=>_(this,Zt).findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let d=o.fetch(void 0,i);return i.throwOnError||(d=d.catch(ve)),o.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(u).then(ve)}fetchQuery(n){const l=this.defaultQueryOptions(n);l.retry===void 0&&(l.retry=!1);const i=_(this,Zt).build(this,l);return i.isStaleByTime(On(l.staleTime,i))?i.fetch(l):Promise.resolve(i.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ve).catch(ve)}fetchInfiniteQuery(n){return n.behavior=hy(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ve).catch(ve)}ensureInfiniteQueryData(n){return n.behavior=hy(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Su.isOnline()?_(this,_n).resumePausedMutations():Promise.resolve()}getQueryCache(){return _(this,Zt)}getMutationCache(){return _(this,_n)}getDefaultOptions(){return _(this,En)}setDefaultOptions(n){et(this,En,n)}setQueryDefaults(n,l){_(this,vl).set(ys(n),{queryKey:n,defaultOptions:l})}getQueryDefaults(n){const l=[..._(this,vl).values()],i={};return l.forEach(u=>{Oi(n,u.queryKey)&&Object.assign(i,u.defaultOptions)}),i}setMutationDefaults(n,l){_(this,xl).set(ys(n),{mutationKey:n,defaultOptions:l})}getMutationDefaults(n){const l=[..._(this,xl).values()],i={};return l.forEach(u=>{Oi(n,u.mutationKey)&&Object.assign(i,u.defaultOptions)}),i}defaultQueryOptions(n){if(n._defaulted)return n;const l={..._(this,En).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return l.queryHash||(l.queryHash=Uf(l.queryKey,l)),l.refetchOnReconnect===void 0&&(l.refetchOnReconnect=l.networkMode!=="always"),l.throwOnError===void 0&&(l.throwOnError=!!l.suspense),!l.networkMode&&l.persister&&(l.networkMode="offlineFirst"),l.queryFn===Lf&&(l.enabled=!1),l}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{..._(this,En).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){_(this,Zt).clear(),_(this,_n).clear()}},Zt=new WeakMap,_n=new WeakMap,En=new WeakMap,vl=new WeakMap,xl=new WeakMap,Tn=new WeakMap,bl=new WeakMap,Sl=new WeakMap,sg),gg=F.createContext(void 0),Vi=n=>{const l=F.useContext(gg);if(!l)throw new Error("No QueryClient set, use QueryClientProvider to set one");return l},cb=({client:n,children:l})=>(F.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),f.jsx(gg.Provider,{value:n,children:l})),pg=F.createContext(!1),ob=()=>F.useContext(pg);pg.Provider;function fb(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var db=F.createContext(fb()),hb=()=>F.useContext(db),mb=(n,l,i)=>{const u=i!=null&&i.state.error&&typeof n.throwOnError=="function"?Bf(n.throwOnError,[i.state.error,i]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||u)&&(l.isReset()||(n.retryOnMount=!1))},yb=n=>{F.useEffect(()=>{n.clearReset()},[n])},gb=({result:n,errorResetBoundary:l,throwOnError:i,query:u,suspense:o})=>n.isError&&!l.isReset()&&!n.isFetching&&u&&(o&&n.data===void 0||Bf(i,[n.error,u])),pb=n=>{if(n.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),u=n.staleTime;n.staleTime=typeof u=="function"?(...o)=>i(u(...o)):i(u),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},vb=(n,l)=>n.isLoading&&n.isFetching&&!l,xb=(n,l)=>(n==null?void 0:n.suspense)&&l.isPending,yy=(n,l,i)=>l.fetchOptimistic(n).catch(()=>{i.clearReset()});function bb(n,l,i){var S,j,N,M;const u=ob(),o=hb(),d=Vi(),h=d.defaultQueryOptions(n);(j=(S=d.getDefaultOptions().queries)==null?void 0:S._experimental_beforeQuery)==null||j.call(S,h);const y=d.getQueryCache().get(h.queryHash);h._optimisticResults=u?"isRestoring":"optimistic",pb(h),mb(h,o,y),yb(o);const p=!d.getQueryCache().get(h.queryHash),[g]=F.useState(()=>new l(d,h)),b=g.getOptimisticResult(h),v=!u&&n.subscribed!==!1;if(F.useSyncExternalStore(F.useCallback(C=>{const U=v?g.subscribe(ee.batchCalls(C)):ve;return g.updateResult(),U},[g,v]),()=>g.getCurrentResult(),()=>g.getCurrentResult()),F.useEffect(()=>{g.setOptions(h)},[h,g]),xb(h,b))throw yy(h,g,o);if(gb({result:b,errorResetBoundary:o,throwOnError:h.throwOnError,query:y,suspense:h.suspense}))throw b.error;if((M=(N=d.getDefaultOptions().queries)==null?void 0:N._experimental_afterQuery)==null||M.call(N,h,b),h.experimental_prefetchInRender&&!zi.isServer()&&vb(b,u)){const C=p?yy(h,g,o):y==null?void 0:y.promise;C==null||C.catch(ve).finally(()=>{g.updateResult()})}return h.notifyOnChangeProps?b:g.trackResult(b)}function oe(n,l){return bb(n,tb)}function Sb(n,l){const i=Vi(),[u]=F.useState(()=>new ib(i,n));F.useEffect(()=>{u.setOptions(n)},[u,n]);const o=F.useSyncExternalStore(F.useCallback(h=>u.subscribe(ee.batchCalls(h)),[u]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),d=F.useCallback((h,y)=>{u.mutate(h,y).catch(ve)},[u]);if(o.error&&Bf(u.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:d,mutateAsync:o.mutate}}var Ci=typeof window<"u"?F.useLayoutEffect:F.useEffect;function Wo(n){const l=F.useRef({value:n,prev:null}),i=l.current.value;return n!==i&&(l.current={value:n,prev:i}),l.current.prev}function jb(n,l,i={},u={}){F.useEffect(()=>{if(!n.current||u.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([d])=>{l(d)},i);return o.observe(n.current),()=>{o.disconnect()}},[l,i,u.disabled,n])}function Nb(n){const l=F.useRef(null);return F.useImperativeHandle(n,()=>l.current,[]),l}var vg=!1;function Di(n){return n[n.length-1]}function Rb(n){return typeof n=="function"}function Mn(n,l){return Rb(n)?n(l):n}var _b=Object.prototype.hasOwnProperty,gy=Object.prototype.propertyIsEnumerable,Eb=()=>Object.create(null),Wn=(n,l)=>Cn(n,l,Eb);function Cn(n,l,i=()=>({}),u=0){if(n===l)return n;if(u>500)return l;const o=l,d=xy(n)&&xy(o);if(!d&&!(jl(n)&&jl(o)))return o;const h=d?n:py(n);if(!h)return o;const y=d?o:py(o);if(!y)return o;const p=h.length,g=y.length,b=d?new Array(g):i();let v=0;for(let S=0;S<g;S++){const j=d?S:y[S],N=n[j],M=o[j];if(N===M){b[j]=N,(d?S<p:_b.call(n,j))&&v++;continue}if(N===null||M===null||typeof N!="object"||typeof M!="object"){b[j]=M;continue}const C=Cn(N,M,i,u+1);b[j]=C,C===N&&v++}return p===g&&v===p?n:b}function py(n){const l=Object.getOwnPropertyNames(n);for(const o of l)if(!gy.call(n,o))return!1;const i=Object.getOwnPropertySymbols(n);if(i.length===0)return l;const u=l;for(const o of i){if(!gy.call(n,o))return!1;u.push(o)}return u}function jl(n){if(!vy(n))return!1;const l=n.constructor;if(typeof l>"u")return!0;const i=l.prototype;return!(!vy(i)||!i.hasOwnProperty("isPrototypeOf"))}function vy(n){return Object.prototype.toString.call(n)==="[object Object]"}function xy(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function ds(n,l,i){if(n===l)return!0;if(typeof n!=typeof l)return!1;if(Array.isArray(n)&&Array.isArray(l)){if(n.length!==l.length)return!1;for(let u=0,o=n.length;u<o;u++)if(!ds(n[u],l[u],i))return!1;return!0}if(jl(n)&&jl(l)){const u=(i==null?void 0:i.ignoreUndefined)??!0;if(i!=null&&i.partial){for(const h in l)if((!u||l[h]!==void 0)&&!ds(n[h],l[h],i))return!1;return!0}let o=0;if(!u)o=Object.keys(n).length;else for(const h in n)n[h]!==void 0&&o++;let d=0;for(const h in l)if((!u||l[h]!==void 0)&&(d++,d>o||!ds(n[h],l[h],i)))return!1;return o===d}return!1}function Nl(n){let l,i;const u=new Promise((o,d)=>{l=o,i=d});return u.status="pending",u.resolve=o=>{u.status="resolved",u.value=o,l(o),n==null||n(o)},u.reject=o=>{u.status="rejected",i(o)},u}function wi(n){return!!(n&&typeof n=="object"&&typeof n.then=="function")}function Tb(n){return n.replace(/[\x00-\x1f\x7f]/g,"")}function by(n){let l;try{l=decodeURI(n)}catch{l=n.replaceAll(/%[0-9A-F]{2}/gi,i=>{try{return decodeURI(i)}catch{return i}})}return Tb(l)}var Mb=["http:","https:","mailto:","tel:"];function ju(n,l){if(!n)return!1;try{const i=new URL(n);return!l.has(i.protocol)}catch{return!1}}function ji(n){if(!n)return{path:n,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(n)&&!n.startsWith("//"))return{path:n,handledProtocolRelativeURL:!1};const l=/%25|%5C/gi;let i=0,u="",o;for(;(o=l.exec(n))!==null;)u+=by(n.slice(i,o.index))+o[0],i=l.lastIndex;u=u+by(i?n.slice(i):n);let d=!1;return u.startsWith("//")&&(d=!0,u="/"+u.replace(/^\/+/,"")),{path:u,handledProtocolRelativeURL:d}}function Cb(n){return/\s|[^\u0000-\u007F]/.test(n)?n.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):n}function Ab(n,l){if(n===l)return!0;if(n.length!==l.length)return!1;for(let i=0;i<n.length;i++)if(n[i]!==l[i])return!1;return!0}function Ya(){throw new Error("Invariant failed")}function Ui(n){const l=new Map;let i,u;const o=d=>{d.next&&(d.prev?(d.prev.next=d.next,d.next.prev=d.prev,d.next=void 0,u&&(u.next=d,d.prev=u)):(d.next.prev=void 0,i=d.next,d.next=void 0,u&&(d.prev=u,u.next=d)),u=d)};return{get(d){const h=l.get(d);if(h)return o(h),h.value},set(d,h){if(l.size>=n&&i){const p=i;l.delete(p.key),p.next&&(i=p.next,p.next.prev=void 0),p===u&&(u=void 0)}const y=l.get(d);if(y)y.value=h,o(y);else{const p={key:d,value:h,prev:u};u&&(u.next=p),u=p,i||(i=p),l.set(d,p)}},clear(){l.clear(),i=void 0,u=void 0}}}var es=4,xg=5;function Ob(n){const l=n.indexOf("{");if(l===-1)return null;const i=n.indexOf("}",l);return i===-1||l+1>=n.length?null:[l,i]}function qf(n,l,i=new Uint16Array(6)){const u=n.indexOf("/",l),o=u===-1?n.length:u,d=n.substring(l,o);if(!d||!d.includes("$"))return i[0]=0,i[1]=l,i[2]=l,i[3]=o,i[4]=o,i[5]=o,i;if(d==="$"){const y=n.length;return i[0]=2,i[1]=l,i[2]=l,i[3]=y,i[4]=y,i[5]=y,i}if(d.charCodeAt(0)===36)return i[0]=1,i[1]=l,i[2]=l+1,i[3]=o,i[4]=o,i[5]=o,i;const h=Ob(d);if(h){const[y,p]=h,g=d.charCodeAt(y+1);if(g===45){if(y+2<d.length&&d.charCodeAt(y+2)===36){const b=y+3,v=p;if(b<v)return i[0]=3,i[1]=l+y,i[2]=l+b,i[3]=l+v,i[4]=l+p+1,i[5]=o,i}}else if(g===36){const b=y+1,v=y+2;return v===p?(i[0]=2,i[1]=l+y,i[2]=l+b,i[3]=l+v,i[4]=l+p+1,i[5]=n.length,i):(i[0]=1,i[1]=l+y,i[2]=l+v,i[3]=l+p,i[4]=l+p+1,i[5]=o,i)}}return i[0]=0,i[1]=l,i[2]=l,i[3]=o,i[4]=o,i[5]=o,i}function Mu(n,l,i,u,o,d,h){var p,g,b,v,S,j,N,M,C,U,$,K,L;h==null||h(i);let y=u;{const X=i.fullPath??i.from,k=X.length,Z=((p=i.options)==null?void 0:p.caseSensitive)??n,P=!!((b=(g=i.options)==null?void 0:g.params)!=null&&b.parse&&((S=(v=i.options)==null?void 0:v.skipRouteOnParseError)!=null&&S.params));for(;y<k;){const G=qf(X,y,l);let I;const lt=y,it=G[5];switch(y=it+1,d++,G[0]){case 0:{const ot=X.substring(G[2],G[3]);if(Z){const nt=(j=o.static)==null?void 0:j.get(ot);if(nt)I=nt;else{o.static??(o.static=new Map);const D=as(i.fullPath??i.from);D.parent=o,D.depth=d,I=D,o.static.set(ot,D)}}else{const nt=ot.toLowerCase(),D=(N=o.staticInsensitive)==null?void 0:N.get(nt);if(D)I=D;else{o.staticInsensitive??(o.staticInsensitive=new Map);const V=as(i.fullPath??i.from);V.parent=o,V.depth=d,I=V,o.staticInsensitive.set(nt,V)}}break}case 1:{const ot=X.substring(lt,G[1]),nt=X.substring(G[4],it),D=Z&&!!(ot||nt),V=ot?D?ot:ot.toLowerCase():void 0,at=nt?D?nt:nt.toLowerCase():void 0,yt=!P&&((M=o.dynamic)==null?void 0:M.find(ft=>!ft.skipOnParamError&&ft.caseSensitive===D&&ft.prefix===V&&ft.suffix===at));if(yt)I=yt;else{const ft=ef(1,i.fullPath??i.from,D,V,at);I=ft,ft.depth=d,ft.parent=o,o.dynamic??(o.dynamic=[]),o.dynamic.push(ft)}break}case 3:{const ot=X.substring(lt,G[1]),nt=X.substring(G[4],it),D=Z&&!!(ot||nt),V=ot?D?ot:ot.toLowerCase():void 0,at=nt?D?nt:nt.toLowerCase():void 0,yt=!P&&((C=o.optional)==null?void 0:C.find(ft=>!ft.skipOnParamError&&ft.caseSensitive===D&&ft.prefix===V&&ft.suffix===at));if(yt)I=yt;else{const ft=ef(3,i.fullPath??i.from,D,V,at);I=ft,ft.parent=o,ft.depth=d,o.optional??(o.optional=[]),o.optional.push(ft)}break}case 2:{const ot=X.substring(lt,G[1]),nt=X.substring(G[4],it),D=Z&&!!(ot||nt),V=ot?D?ot:ot.toLowerCase():void 0,at=nt?D?nt:nt.toLowerCase():void 0,yt=ef(2,i.fullPath??i.from,D,V,at);I=yt,yt.parent=o,yt.depth=d,o.wildcard??(o.wildcard=[]),o.wildcard.push(yt)}}o=I}if(P&&i.children&&!i.isRoot&&i.id&&i.id.charCodeAt(i.id.lastIndexOf("/")+1)===95){const G=as(i.fullPath??i.from);G.kind=xg,G.parent=o,d++,G.depth=d,o.pathless??(o.pathless=[]),o.pathless.push(G),o=G}const J=(i.path||!i.children)&&!i.isRoot;if(J&&X.endsWith("/")){const G=as(i.fullPath??i.from);G.kind=es,G.parent=o,d++,G.depth=d,o.index=G,o=G}o.parse=(($=(U=i.options)==null?void 0:U.params)==null?void 0:$.parse)??null,o.skipOnParamError=P,o.parsingPriority=((L=(K=i.options)==null?void 0:K.skipRouteOnParseError)==null?void 0:L.priority)??0,J&&!o.route&&(o.route=i,o.fullPath=i.fullPath??i.from)}if(i.children)for(const X of i.children)Mu(n,l,X,y,o,d,h)}function tf(n,l){if(n.skipOnParamError&&!l.skipOnParamError)return-1;if(!n.skipOnParamError&&l.skipOnParamError)return 1;if(n.skipOnParamError&&l.skipOnParamError&&(n.parsingPriority||l.parsingPriority))return l.parsingPriority-n.parsingPriority;if(n.prefix&&l.prefix&&n.prefix!==l.prefix){if(n.prefix.startsWith(l.prefix))return-1;if(l.prefix.startsWith(n.prefix))return 1}if(n.suffix&&l.suffix&&n.suffix!==l.suffix){if(n.suffix.endsWith(l.suffix))return-1;if(l.suffix.endsWith(n.suffix))return 1}return n.prefix&&!l.prefix?-1:!n.prefix&&l.prefix?1:n.suffix&&!l.suffix?-1:!n.suffix&&l.suffix?1:n.caseSensitive&&!l.caseSensitive?-1:!n.caseSensitive&&l.caseSensitive?1:0}function vn(n){var l,i,u;if(n.pathless)for(const o of n.pathless)vn(o);if(n.static)for(const o of n.static.values())vn(o);if(n.staticInsensitive)for(const o of n.staticInsensitive.values())vn(o);if((l=n.dynamic)!=null&&l.length){n.dynamic.sort(tf);for(const o of n.dynamic)vn(o)}if((i=n.optional)!=null&&i.length){n.optional.sort(tf);for(const o of n.optional)vn(o)}if((u=n.wildcard)!=null&&u.length){n.wildcard.sort(tf);for(const o of n.wildcard)vn(o)}}function as(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 ef(n,l,i,u,o){return{kind:n,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:l,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:i,prefix:u,suffix:o}}function zb(n,l){const i=as("/"),u=new Uint16Array(6);for(const o of n)Mu(!1,u,o,1,i,0);vn(i),l.masksTree=i,l.flatCache=Ui(1e3)}function Db(n,l){n||(n="/");const i=l.flatCache.get(n);if(i)return i;const u=Qf(n,l.masksTree);return l.flatCache.set(n,u),u}function wb(n,l,i,u,o){n||(n="/"),u||(u="/");const d=l?`case\0${n}`:n;let h=o.singleCache.get(d);return h||(h=as("/"),Mu(l,new Uint16Array(6),{from:n},1,h,0),o.singleCache.set(d,h)),Qf(u,h,i)}function Ub(n,l,i=!1){const u=i?n:`nofuzz\0${n}`,o=l.matchCache.get(u);if(o!==void 0)return o;n||(n="/");let d;try{d=Qf(n,l.segmentTree,i)}catch(h){if(h instanceof URIError)d=null;else throw h}return d&&(d.branch=Hb(d.route)),l.matchCache.set(u,d),d}function Lb(n){return n==="/"?n:n.replace(/\/{1,}$/,"")}function Bb(n,l=!1,i){const u=as(n.fullPath),o=new Uint16Array(6),d={},h={};let y=0;return Mu(l,o,n,1,u,0,p=>{if(i==null||i(p,y),p.id in d&&Ya(),d[p.id]=p,y!==0&&p.path){const g=Lb(p.fullPath);(!h[g]||p.fullPath.endsWith("/"))&&(h[g]=p)}y++}),vn(u),{processedTree:{segmentTree:u,singleCache:Ui(1e3),matchCache:Ui(1e3),flatCache:null,masksTree:null},routesById:d,routesByPath:h}}function Qf(n,l,i=!1){const u=n.split("/"),o=Qb(n,u,l,i);if(!o)return null;const[d]=bg(n,u,o);return{route:o.node.route,rawParams:d,parsedParams:o.parsedParams}}function bg(n,l,i){var b,v,S,j,N,M,C,U,$,K;const u=qb(i.node);let o=null;const d=Object.create(null);let h=((b=i.extract)==null?void 0:b.part)??0,y=((v=i.extract)==null?void 0:v.node)??0,p=((S=i.extract)==null?void 0:S.path)??0,g=((j=i.extract)==null?void 0:j.segment)??0;for(;y<u.length;h++,y++,p++,g++){const L=u[y];if(L.kind===es)break;if(L.kind===xg){g--,h--,p--;continue}const X=l[h],k=p;if(X&&(p+=X.length),L.kind===1){o??(o=i.node.fullPath.split("/"));const Z=o[g],P=((N=L.prefix)==null?void 0:N.length)??0;if(Z.charCodeAt(P)===123){const J=((M=L.suffix)==null?void 0:M.length)??0,G=Z.substring(P+2,Z.length-J-1),I=X.substring(P,X.length-J);d[G]=decodeURIComponent(I)}else{const J=Z.substring(1);d[J]=decodeURIComponent(X)}}else if(L.kind===3){if(i.skipped&1<<y){h--,p=k-1;continue}o??(o=i.node.fullPath.split("/"));const Z=o[g],P=((C=L.prefix)==null?void 0:C.length)??0,J=((U=L.suffix)==null?void 0:U.length)??0,G=Z.substring(P+3,Z.length-J-1),I=L.suffix||L.prefix?X.substring(P,X.length-J):X;I&&(d[G]=decodeURIComponent(I))}else if(L.kind===2){const Z=L,P=n.substring(k+((($=Z.prefix)==null?void 0:$.length)??0),n.length-(((K=Z.suffix)==null?void 0:K.length)??0)),J=decodeURIComponent(P);d["*"]=J,d._splat=J;break}}return i.rawParams&&Object.assign(d,i.rawParams),[d,{part:h,node:y,path:p,segment:g}]}function Hb(n){const l=[n];for(;n.parentRoute;)n=n.parentRoute,l.push(n);return l.reverse(),l}function qb(n){const l=Array(n.depth+1);do l[n.depth]=n,n=n.parent;while(n);return l}function Qb(n,l,i,u){if(n==="/"&&i.index)return{node:i.index,skipped:0};const o=!Di(l),d=o&&n!=="/",h=l.length-(o?1:0),y=[{node:i,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let p=null,g=null,b=null;for(;y.length;){const v=y.pop(),{node:S,index:j,skipped:N,depth:M,statics:C,dynamics:U,optionals:$}=v;let{extract:K,rawParams:L,parsedParams:X}=v;if(S.skipOnParamError){if(!af(n,l,v))continue;L=v.rawParams,K=v.extract,X=v.parsedParams}u&&S.route&&S.kind!==es&&Ni(g,v)&&(g=v);const k=j===h;if(k&&(S.route&&!d&&Ni(b,v)&&(b=v),!S.optional&&!S.wildcard&&!S.index&&!S.pathless))continue;const Z=k?void 0:l[j];let P;if(k&&S.index){const J={node:S.index,index:j,skipped:N,depth:M+1,statics:C,dynamics:U,optionals:$,extract:K,rawParams:L,parsedParams:X};let G=!0;if(S.index.skipOnParamError&&(af(n,l,J)||(G=!1)),G){if(C===h&&!U&&!$&&!N)return J;Ni(b,J)&&(b=J)}}if(S.wildcard&&Ni(p,v))for(const J of S.wildcard){const{prefix:G,suffix:I}=J;if(G&&(k||!(J.caseSensitive?Z:P??(P=Z.toLowerCase())).startsWith(G)))continue;if(I){if(k)continue;const it=l.slice(j).join("/").slice(-I.length);if((J.caseSensitive?it:it.toLowerCase())!==I)continue}const lt={node:J,index:h,skipped:N,depth:M,statics:C,dynamics:U,optionals:$,extract:K,rawParams:L,parsedParams:X};if(!(J.skipOnParamError&&!af(n,l,lt))){p=lt;break}}if(S.optional){const J=N|1<<M,G=M+1;for(let I=S.optional.length-1;I>=0;I--){const lt=S.optional[I];y.push({node:lt,index:j,skipped:J,depth:G,statics:C,dynamics:U,optionals:$,extract:K,rawParams:L,parsedParams:X})}if(!k)for(let I=S.optional.length-1;I>=0;I--){const lt=S.optional[I],{prefix:it,suffix:ot}=lt;if(it||ot){const nt=lt.caseSensitive?Z:P??(P=Z.toLowerCase());if(it&&!nt.startsWith(it)||ot&&!nt.endsWith(ot))continue}y.push({node:lt,index:j+1,skipped:N,depth:G,statics:C,dynamics:U,optionals:$+1,extract:K,rawParams:L,parsedParams:X})}}if(!k&&S.dynamic&&Z)for(let J=S.dynamic.length-1;J>=0;J--){const G=S.dynamic[J],{prefix:I,suffix:lt}=G;if(I||lt){const it=G.caseSensitive?Z:P??(P=Z.toLowerCase());if(I&&!it.startsWith(I)||lt&&!it.endsWith(lt))continue}y.push({node:G,index:j+1,skipped:N,depth:M+1,statics:C,dynamics:U+1,optionals:$,extract:K,rawParams:L,parsedParams:X})}if(!k&&S.staticInsensitive){const J=S.staticInsensitive.get(P??(P=Z.toLowerCase()));J&&y.push({node:J,index:j+1,skipped:N,depth:M+1,statics:C+1,dynamics:U,optionals:$,extract:K,rawParams:L,parsedParams:X})}if(!k&&S.static){const J=S.static.get(Z);J&&y.push({node:J,index:j+1,skipped:N,depth:M+1,statics:C+1,dynamics:U,optionals:$,extract:K,rawParams:L,parsedParams:X})}if(S.pathless){const J=M+1;for(let G=S.pathless.length-1;G>=0;G--){const I=S.pathless[G];y.push({node:I,index:j,skipped:N,depth:J,statics:C,dynamics:U,optionals:$,extract:K,rawParams:L,parsedParams:X})}}}if(b&&p)return Ni(p,b)?b:p;if(b)return b;if(p)return p;if(u&&g){let v=g.index;for(let j=0;j<g.index;j++)v+=l[j].length;const S=v===n.length?"/":n.slice(v);return g.rawParams??(g.rawParams=Object.create(null)),g.rawParams["**"]=decodeURIComponent(S),g}return null}function af(n,l,i){try{const[u,o]=bg(n,l,i);i.rawParams=u,i.extract=o;const d=i.node.parse(u);return i.parsedParams=Object.assign(Object.create(null),i.parsedParams,d),!0}catch{return null}}function Ni(n,l){return n?l.statics>n.statics||l.statics===n.statics&&(l.dynamics>n.dynamics||l.dynamics===n.dynamics&&(l.optionals>n.optionals||l.optionals===n.optionals&&((l.node.kind===es)>(n.node.kind===es)||l.node.kind===es==(n.node.kind===es)&&l.depth>n.depth))):!0}function gu(n){return Yf(n.filter(l=>l!==void 0).join("/"))}function Yf(n){return n.replace(/\/{2,}/g,"/")}function Sg(n){return n==="/"?n:n.replace(/^\/{1,}/,"")}function zn(n){const l=n.length;return l>1&&n[l-1]==="/"?n.replace(/\/{1,}$/,""):n}function jg(n){return zn(Sg(n))}function Nu(n,l){return n!=null&&n.endsWith("/")&&n!=="/"&&n!==`${l}/`?n.slice(0,-1):n}function Yb(n,l,i){return Nu(n,i)===Nu(l,i)}function Gb({base:n,to:l,trailingSlash:i="never",cache:u}){const o=l.startsWith("/"),d=!o&&l===".";let h;if(u){h=o?l:d?n:n+"\0"+l;const v=u.get(h);if(v)return v}let y;if(d)y=n.split("/");else if(o)y=l.split("/");else{for(y=n.split("/");y.length>1&&Di(y)==="";)y.pop();const v=l.split("/");for(let S=0,j=v.length;S<j;S++){const N=v[S];N===""?S?S===j-1&&y.push(N):y=[N]:N===".."?y.pop():N==="."||y.push(N)}}y.length>1&&(Di(y)===""?i==="never"&&y.pop():i==="always"&&y.push(""));let p,g="";for(let v=0;v<y.length;v++){v>0&&(g+="/");const S=y[v];if(!S)continue;p=qf(S,0,p);const j=p[0];if(j===0){g+=S;continue}const N=p[5],M=S.substring(0,p[1]),C=S.substring(p[4],N),U=S.substring(p[2],p[3]);j===1?g+=M||C?`${M}{$${U}}${C}`:`$${U}`:j===2?g+=M||C?`${M}{$}${C}`:"$":g+=`${M}{-$${U}}${C}`}g=Yf(g);const b=g||"/";return h&&u&&u.set(h,b),b}function Vb(n){const l=new Map(n.map(o=>[encodeURIComponent(o),o])),i=Array.from(l.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),u=new RegExp(i,"g");return o=>o.replace(u,d=>l.get(d)??d)}function nf(n,l,i){const u=l[n];return typeof u!="string"?u:n==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(u)?u:u.split("/").map(o=>jy(o,i)).join("/"):jy(u,i)}function Sy({path:n,params:l,decoder:i,...u}){let o=!1;const d=Object.create(null);if(!n||n==="/")return{interpolatedPath:"/",usedParams:d,isMissingParams:o};if(!n.includes("$"))return{interpolatedPath:n,usedParams:d,isMissingParams:o};const h=n.length;let y=0,p,g="";for(;y<h;){const b=y;p=qf(n,b,p);const v=p[5];if(y=v+1,b===v)continue;const S=p[0];if(S===0){g+="/"+n.substring(b,v);continue}if(S===2){const j=l._splat;d._splat=j,d["*"]=j;const N=n.substring(b,p[1]),M=n.substring(p[4],v);if(!j){o=!0,(N||M)&&(g+="/"+N+M);continue}const C=nf("_splat",l,i);g+="/"+N+C+M;continue}if(S===1){const j=n.substring(p[2],p[3]);!o&&!(j in l)&&(o=!0),d[j]=l[j];const N=n.substring(b,p[1]),M=n.substring(p[4],v),C=nf(j,l,i)??"undefined";g+="/"+N+C+M;continue}if(S===3){const j=n.substring(p[2],p[3]),N=l[j];if(N==null)continue;d[j]=N;const M=n.substring(b,p[1]),C=n.substring(p[4],v),U=nf(j,l,i)??"";g+="/"+M+U+C;continue}}return n.endsWith("/")&&(g+="/"),{usedParams:d,interpolatedPath:g||"/",isMissingParams:o}}function jy(n,l){const i=encodeURIComponent(n);return(l==null?void 0:l(i))??i}function xe(n){return!!(n!=null&&n.isNotFound)}function Xb(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}var Kb="tsr-scroll-restoration-v1_3";function Zb(){const n=Xb();if(!n)return null;let l={};try{const u=JSON.parse(n.getItem("tsr-scroll-restoration-v1_3")||"{}");jl(u)&&(l=u)}catch{}return{get state(){return l},set:u=>{l=Mn(u,l)||l},persist:()=>{try{n.setItem(Kb,JSON.stringify(l))}catch{}}}}var Ny=Zb(),Pb=n=>n.state.__TSR_key||n.href;function $b(n){const l=[];let i;for(;i=n.parentNode;)l.push(`${n.tagName}:nth-child(${Array.prototype.indexOf.call(i.children,n)+1})`),n=i;return`${l.reverse().join(" > ")}`.toLowerCase()}var du=!1,Ri="window",Ry="data-scroll-restoration-id";function Jb(n,l){if(!Ny)return;const i=Ny;if((n.options.scrollRestoration??!1)&&(n.isScrollRestoring=!0),n.isScrollRestorationSetup||!i)return;n.isScrollRestorationSetup=!0,du=!1;const u=n.options.getScrollRestorationKey||Pb,o=new Map;window.history.scrollRestoration="manual";const d=y=>{if(!(du||!n.isScrollRestoring))if(y.target===document||y.target===window)o.set(Ri,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const p=y.target;o.set(p,{scrollX:p.scrollLeft||0,scrollY:p.scrollTop||0})}},h=y=>{var g;if(!n.isScrollRestoring||!y||o.size===0||!i)return;const p=(g=i.state)[y]||(g[y]={});for(const[b,v]of o){let S;if(b===Ri)S=Ri;else if(b.isConnected){const j=b.getAttribute(Ry);S=j?`[${Ry}="${j}"]`:$b(b)}S&&(p[S]=v)}};document.addEventListener("scroll",d,!0),n.subscribe("onBeforeLoad",y=>{h(y.fromLocation?u(y.fromLocation):void 0),o.clear()}),window.addEventListener("pagehide",()=>{h(u(n.stores.resolvedLocation.state??n.stores.location.state)),i.persist()}),n.subscribe("onRendered",y=>{var v;const p=u(y.toLocation),g=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}))){du=!0;try{const S=n.isScrollRestoring?i.state[p]:void 0;let j=!1;if(S)for(const N in S){const M=S[N];if(!jl(M))continue;const{scrollX:C,scrollY:U}=M;if(!(!Number.isFinite(C)||!Number.isFinite(U))){if(N===Ri)window.scrollTo({top:U,left:C,behavior:g}),j=!0;else if(N){let $;try{$=document.querySelector(N)}catch{continue}$&&($.scrollLeft=C,$.scrollTop=U,j=!0)}}}if(!j){const N=n.history.location.hash.slice(1);if(N){const M=((v=window.history.state)==null?void 0:v.__hashScrollIntoViewOptions)??!0;if(M){const C=document.getElementById(N);C&&C.scrollIntoView(M)}}else{const M={top:0,left:0,behavior:g};if(window.scrollTo(M),b)for(const C of b){if(C===Ri)continue;const U=typeof C=="function"?C():document.querySelector(C);U&&U.scrollTo(M)}}}}finally{du=!1}n.isScrollRestoring&&i.set(S=>(S[p]||(S[p]={}),S))}})}function Ib(n,l=String){const i=new URLSearchParams;for(const u in n){const o=n[u];o!==void 0&&i.set(u,l(o))}return i.toString()}function sf(n){return n?n==="false"?!1:n==="true"?!0:+n*0===0&&+n+""===n?+n:n:""}function Fb(n){const l=new URLSearchParams(n),i=Object.create(null);for(const[u,o]of l.entries()){const d=i[u];d==null?i[u]=sf(o):Array.isArray(d)?d.push(sf(o)):i[u]=[d,sf(o)]}return i}var kb=tS(JSON.parse),Wb=eS(JSON.stringify,JSON.parse);function tS(n){return l=>{l[0]==="?"&&(l=l.substring(1));const i=Fb(l);for(const u in i){const o=i[u];if(typeof o=="string")try{i[u]=n(o)}catch{}}return i}}function eS(n,l){const i=typeof l=="function";function u(o){if(typeof o=="object"&&o!==null)try{return n(o)}catch{}else if(i&&typeof o=="string")try{return l(o),n(o)}catch{}return o}return o=>{const d=Ib(o,u);return d?`?${d}`:""}}var hs="__root__";function aS(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 l=new Headers(n.headers);n.href&&l.get("Location")===null&&l.set("Location",n.href);const i=new Response(null,{status:n.statusCode,headers:l});if(i.options=n,n.throw)throw i;return i}function Ae(n){return n instanceof Response&&!!n.options}function nS(n){return{input:({url:l})=>{for(const i of n)l=Tf(i,l);return l},output:({url:l})=>{for(let i=n.length-1;i>=0;i--)l=Ng(n[i],l);return l}}}function sS(n){const l=jg(n.basepath),i=`/${l}`,u=`${i}/`,o=n.caseSensitive?i:i.toLowerCase(),d=n.caseSensitive?u:u.toLowerCase();return{input:({url:h})=>{const y=n.caseSensitive?h.pathname:h.pathname.toLowerCase();return y===o?h.pathname="/":y.startsWith(d)&&(h.pathname=h.pathname.slice(i.length)),h},output:({url:h})=>(h.pathname=gu(["/",l,h.pathname]),h)}}function Tf(n,l){var u;const i=(u=n==null?void 0:n.input)==null?void 0:u.call(n,{url:l});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return l}function Ng(n,l){var u;const i=(u=n==null?void 0:n.output)==null?void 0:u.call(n,{url:l});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return l}function lS(n,l){const{createMutableStore:i,createReadonlyStore:u,batch:o,init:d}=l,h=new Map,y=new Map,p=new Map,g=i(n.status),b=i(n.loadedAt),v=i(n.isLoading),S=i(n.isTransitioning),j=i(n.location),N=i(n.resolvedLocation),M=i(n.statusCode),C=i(n.redirect),U=i([]),$=i([]),K=i([]),L=u(()=>lf(h,U.state)),X=u(()=>lf(y,$.state)),k=u(()=>lf(p,K.state)),Z=u(()=>U.state[0]),P=u(()=>U.state.some(V=>{var at;return((at=h.get(V))==null?void 0:at.state.status)==="pending"})),J=u(()=>{var V;return{locationHref:j.state.href,resolvedLocationHref:(V=N.state)==null?void 0:V.href,status:g.state}}),G=u(()=>({status:g.state,loadedAt:b.state,isLoading:v.state,isTransitioning:S.state,matches:L.state,location:j.state,resolvedLocation:N.state,statusCode:M.state,redirect:C.state})),I=Ui(64);function lt(V){let at=I.get(V);return at||(at=u(()=>{const yt=U.state;for(const ft of yt){const E=h.get(ft);if(E&&E.routeId===V)return E.state}}),I.set(V,at)),at}const it={status:g,loadedAt:b,isLoading:v,isTransitioning:S,location:j,resolvedLocation:N,statusCode:M,redirect:C,matchesId:U,pendingMatchesId:$,cachedMatchesId:K,activeMatchesSnapshot:L,pendingMatchesSnapshot:X,cachedMatchesSnapshot:k,firstMatchId:Z,hasPendingMatches:P,matchRouteReactivity:J,activeMatchStoresById:h,pendingMatchStoresById:y,cachedMatchStoresById:p,__store:G,getMatchStoreByRouteId:lt,setActiveMatches:ot,setPendingMatches:nt,setCachedMatches:D};ot(n.matches),d==null||d(it);function ot(V){rf(V,h,U,i,o)}function nt(V){rf(V,y,$,i,o)}function D(V){rf(V,p,K,i,o)}return it}function lf(n,l){const i=[];for(const u of l){const o=n.get(u);o&&i.push(o.state)}return i}function rf(n,l,i,u,o){const d=n.map(y=>y.id),h=new Set(d);o(()=>{for(const y of l.keys())h.has(y)||l.delete(y);for(const y of n){const p=l.get(y.id);if(!p){const g=u(y);g.routeId=y.routeId,l.set(y.id,g);continue}p.routeId=y.routeId,p.state!==y&&p.setState(()=>y)}Ab(i.state,d)||i.setState(()=>d)})}var Mf=n=>{var l;if(!n.rendered)return n.rendered=!0,(l=n.onReady)==null?void 0:l.call(n)},iS=n=>n.stores.matchesId.state.some(l=>{var i;return(i=n.stores.activeMatchStoresById.get(l))==null?void 0:i.state._forcePending}),Cu=(n,l)=>!!(n.preload&&!n.router.stores.activeMatchStoresById.has(l)),ms=(n,l,i=!0)=>{const u={...n.router.options.context??{}},o=i?l:l-1;for(let d=0;d<=o;d++){const h=n.matches[d];if(!h)continue;const y=n.router.getMatch(h.id);y&&Object.assign(u,y.__routeContext,y.__beforeLoadContext)}return u},_y=(n,l)=>{if(!n.matches.length)return;const i=l.routeId,u=n.matches.findIndex(h=>h.routeId===n.router.routeTree.id),o=u>=0?u:0;let d=i?n.matches.findIndex(h=>h.routeId===i):n.firstBadMatchIndex??n.matches.length-1;d<0&&(d=o);for(let h=d;h>=0;h--){const y=n.matches[h];if(n.router.looseRoutesById[y.routeId].options.notFoundComponent)return h}return i?d:o},An=(n,l,i)=>{var u,o,d;if(!(!Ae(i)&&!xe(i)))throw Ae(i)&&i.redirectHandled&&!i.options.reloadDocument||(l&&((u=l._nonReactive.beforeLoadPromise)==null||u.resolve(),(o=l._nonReactive.loaderPromise)==null||o.resolve(),l._nonReactive.beforeLoadPromise=void 0,l._nonReactive.loaderPromise=void 0,l._nonReactive.error=i,n.updateMatch(l.id,h=>({...h,status:Ae(i)?"redirected":h.status==="pending"?"success":h.status,context:ms(n,l.index),isFetching:!1,error:i})),xe(i)&&!i.routeId&&(i.routeId=l.routeId),(d=l._nonReactive.loadPromise)==null||d.resolve()),Ae(i)&&(n.rendered=!0,i.options._fromLocation=n.location,i.redirectHandled=!0,i=n.router.resolveRedirect(i))),i},Rg=(n,l)=>{const i=n.router.getMatch(l);return!!(!i||i._nonReactive.dehydrated)},Ey=(n,l,i)=>{const u=ms(n,i);n.updateMatch(l,o=>({...o,context:u}))},_i=(n,l,i,u)=>{var y,p;const{id:o,routeId:d}=n.matches[l],h=n.router.looseRoutesById[d];if(i instanceof Promise)throw i;i.routerCode=u,n.firstBadMatchIndex??(n.firstBadMatchIndex=l),An(n,n.router.getMatch(o),i);try{(p=(y=h.options).onError)==null||p.call(y,i)}catch(g){i=g,An(n,n.router.getMatch(o),i)}n.updateMatch(o,g=>{var b,v;return(b=g._nonReactive.beforeLoadPromise)==null||b.resolve(),g._nonReactive.beforeLoadPromise=void 0,(v=g._nonReactive.loadPromise)==null||v.resolve(),{...g,error:i,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}}),!n.preload&&!Ae(i)&&!xe(i)&&(n.serialError??(n.serialError=i))},_g=(n,l,i,u)=>{var d;if(u._nonReactive.pendingTimeout!==void 0)return;const o=i.options.pendingMs??n.router.options.defaultPendingMs;if(n.onReady&&!Cu(n,l)&&(i.options.loader||i.options.beforeLoad||Tg(i))&&typeof o=="number"&&o!==1/0&&(i.options.pendingComponent??((d=n.router.options)==null?void 0:d.defaultPendingComponent))){const h=setTimeout(()=>{Mf(n)},o);u._nonReactive.pendingTimeout=h}},rS=(n,l,i)=>{const u=n.router.getMatch(l);if(!u._nonReactive.beforeLoadPromise&&!u._nonReactive.loaderPromise)return;_g(n,l,i,u);const o=()=>{const d=n.router.getMatch(l);d.preload&&(d.status==="redirected"||d.status==="notFound")&&An(n,d,d.error)};return u._nonReactive.beforeLoadPromise?u._nonReactive.beforeLoadPromise.then(o):o()},uS=(n,l,i,u)=>{const o=n.router.getMatch(l);let d=o._nonReactive.loadPromise;o._nonReactive.loadPromise=Nl(()=>{d==null||d.resolve(),d=void 0});const{paramsError:h,searchError:y}=o;h&&_i(n,i,h,"PARSE_PARAMS"),y&&_i(n,i,y,"VALIDATE_SEARCH"),_g(n,l,u,o);const p=new AbortController;let g=!1;const b=()=>{g||(g=!0,n.updateMatch(l,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(l,X=>({...X,isFetching:!1}))};if(!u.options.beforeLoad){n.router.batch(()=>{b(),v()});return}o._nonReactive.beforeLoadPromise=Nl();const S={...ms(n,i,!1),...o.__routeContext},{search:j,params:N,cause:M}=o,C=Cu(n,l),U={search:j,abortController:p,params:N,preload:C,context:S,location:n.location,navigate:L=>n.router.navigate({...L,_fromLocation:n.location}),buildLocation:n.router.buildLocation,cause:C?"preload":M,matches:n.matches,routeId:u.id,...n.router.options.additionalContext},$=L=>{if(L===void 0){n.router.batch(()=>{b(),v()});return}(Ae(L)||xe(L))&&(b(),_i(n,i,L,"BEFORE_LOAD")),n.router.batch(()=>{b(),n.updateMatch(l,X=>({...X,__beforeLoadContext:L})),v()})};let K;try{if(K=u.options.beforeLoad(U),wi(K))return b(),K.catch(L=>{_i(n,i,L,"BEFORE_LOAD")}).then($)}catch(L){b(),_i(n,i,L,"BEFORE_LOAD")}$(K)},cS=(n,l)=>{const{id:i,routeId:u}=n.matches[l],o=n.router.looseRoutesById[u],d=()=>y(),h=()=>uS(n,i,l,o),y=()=>{if(Rg(n,i))return;const p=rS(n,i,o);return wi(p)?p.then(h):h()};return d()},oS=(n,l,i)=>{var d,h,y,p,g,b;const u=n.router.getMatch(l);if(!u||!i.options.head&&!i.options.scripts&&!i.options.headers)return;const o={ssr:n.router.options.ssr,matches:n.matches,match:u,params:u.params,loaderData:u.loaderData};return Promise.all([(h=(d=i.options).head)==null?void 0:h.call(d,o),(p=(y=i.options).scripts)==null?void 0:p.call(y,o),(b=(g=i.options).headers)==null?void 0:b.call(g,o)]).then(([v,S,j])=>({meta:v==null?void 0:v.meta,links:v==null?void 0:v.links,headScripts:v==null?void 0:v.scripts,headers:j,scripts:S,styles:v==null?void 0:v.styles}))},Eg=(n,l,i,u,o)=>{const d=l[u-1],{params:h,loaderDeps:y,abortController:p,cause:g}=n.router.getMatch(i),b=ms(n,u),v=Cu(n,i);return{params:h,deps:y,preload:!!v,parentMatchPromise:d,abortController:p,context:b,location:n.location,navigate:S=>n.router.navigate({...S,_fromLocation:n.location}),cause:v?"preload":g,route:o,...n.router.options.additionalContext}},Ty=async(n,l,i,u,o)=>{var d,h,y,p,g;try{const b=n.router.getMatch(i);try{(!(vg??n.router.isServer)||b.ssr===!0)&&Li(o);const v=o.options.loader,S=typeof v=="function"?v:v==null?void 0:v.handler,j=S==null?void 0:S(Eg(n,l,i,u,o)),N=!!S&&wi(j);if((N||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||b._nonReactive.minPendingPromise)&&n.updateMatch(i,C=>({...C,isFetching:"loader"})),S){const C=N?await j:j;An(n,n.router.getMatch(i),C),C!==void 0&&n.updateMatch(i,U=>({...U,loaderData:C}))}o._lazyPromise&&await o._lazyPromise;const M=b._nonReactive.minPendingPromise;M&&await M,o._componentsPromise&&await o._componentsPromise,n.updateMatch(i,C=>({...C,error:void 0,context:ms(n,u),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){(d=b._nonReactive.loaderPromise)==null||d.resolve(),b._nonReactive.loaderPromise=void 0;return}n.updateMatch(i,N=>({...N,status:N.status==="pending"?"success":N.status,isFetching:!1,context:ms(n,u)}));return}const j=b._nonReactive.minPendingPromise;j&&await j,xe(v)&&await((y=(h=o.options.notFoundComponent)==null?void 0:h.preload)==null?void 0:y.call(h)),An(n,n.router.getMatch(i),v);try{(g=(p=o.options).onError)==null||g.call(p,v)}catch(N){S=N,An(n,n.router.getMatch(i),N)}!Ae(S)&&!xe(S)&&await Li(o,["errorComponent"]),n.updateMatch(i,N=>({...N,error:S,context:ms(n,u),status:"error",isFetching:!1}))}}catch(b){const v=n.router.getMatch(i);v&&(v._nonReactive.loaderPromise=void 0),An(n,v,b)}},fS=async(n,l,i)=>{var j,N,M,C;async function u(U,$,K,L,X){const k=Date.now()-$.updatedAt,Z=U?X.options.preloadStaleTime??n.router.options.defaultPreloadStaleTime??3e4:X.options.staleTime??n.router.options.defaultStaleTime??0,P=X.options.shouldReload,J=typeof P=="function"?P(Eg(n,l,o,i,X)):P,{status:G,invalid:I}=L,lt=k>=Z&&(!!n.forceStaleReload||L.cause==="enter"||K!==void 0&&K!==L.id);h=G==="success"&&(I||(J??lt)),U&&X.options.preload===!1||(h&&!n.sync&&b?(y=!0,(async()=>{var it,ot;try{await Ty(n,l,o,i,X);const nt=n.router.getMatch(o);(it=nt._nonReactive.loaderPromise)==null||it.resolve(),(ot=nt._nonReactive.loadPromise)==null||ot.resolve(),nt._nonReactive.loaderPromise=void 0,nt._nonReactive.loadPromise=void 0}catch(nt){Ae(nt)&&await n.router.navigate(nt.options)}})()):G!=="success"||h?await Ty(n,l,o,i,X):Ey(n,o,i))}const{id:o,routeId:d}=n.matches[i];let h=!1,y=!1;const p=n.router.looseRoutesById[d],g=p.options.loader,b=((typeof g=="function"||g==null?void 0:g.staleReloadMode)??n.router.options.defaultStaleReloadMode)!=="blocking";if(Rg(n,o)){if(!n.router.getMatch(o))return n.matches[i];Ey(n,o,i)}else{const U=n.router.getMatch(o),$=n.router.stores.matchesId.state[i],K=((j=$&&n.router.stores.activeMatchStoresById.get($)||null)==null?void 0:j.routeId)===d?$:(N=n.router.stores.activeMatchesSnapshot.state.find(X=>X.routeId===d))==null?void 0:N.id,L=Cu(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),k=X._nonReactive.error||X.error;k&&An(n,X,k),X.status==="pending"&&await u(L,U,K,X,p)}else{const X=L&&!n.router.stores.activeMatchStoresById.has(o),k=n.router.getMatch(o);k._nonReactive.loaderPromise=Nl(),X!==k.preload&&n.updateMatch(o,Z=>({...Z,preload:X})),await u(L,U,K,k,p)}}const v=n.router.getMatch(o);y||((M=v._nonReactive.loaderPromise)==null||M.resolve(),(C=v._nonReactive.loadPromise)==null||C.resolve(),v._nonReactive.loadPromise=void 0),clearTimeout(v._nonReactive.pendingTimeout),v._nonReactive.pendingTimeout=void 0,y||(v._nonReactive.loaderPromise=void 0),v._nonReactive.dehydrated=void 0;const S=y?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 My(n){var S,j;const l=n,i=[];iS(l.router)&&Mf(l);let u;for(let N=0;N<l.matches.length;N++){try{const M=cS(l,N);wi(M)&&await M}catch(M){if(Ae(M))throw M;if(xe(M))u=M;else if(!l.preload)throw M;break}if(l.serialError)break}const o=l.firstBadMatchIndex??l.matches.length,d=u&&!l.preload?_y(l,u):void 0,h=u&&l.preload?0:d!==void 0?Math.min(d+1,o):o;let y,p;for(let N=0;N<h;N++)i.push(fS(l,i,N));try{await Promise.all(i)}catch{const N=await Promise.allSettled(i);for(const M of N){if(M.status!=="rejected")continue;const C=M.reason;if(Ae(C))throw C;xe(C)?y??(y=C):p??(p=C)}if(p!==void 0)throw p}const g=y??(u&&!l.preload?u:void 0);let b=l.serialError?l.firstBadMatchIndex??0:l.matches.length-1;if(!g&&u&&l.preload)return l.matches;if(g){const N=_y(l,g);N===void 0&&Ya();const M=l.matches[N],C=l.router.looseRoutesById[M.routeId],U=(S=l.router.options)==null?void 0:S.defaultNotFoundComponent;!C.options.notFoundComponent&&U&&(C.options.notFoundComponent=U),g.routeId=M.routeId;const $=M.routeId===l.router.routeTree.id;l.updateMatch(M.id,K=>({...K,...$?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:g},isFetching:!1})),b=N,await Li(C,["notFoundComponent"])}else if(!l.preload){const N=l.matches[0];N.globalNotFound||(j=l.router.getMatch(N.id))!=null&&j.globalNotFound&&l.updateMatch(N.id,M=>({...M,globalNotFound:!1,error:void 0}))}if(l.serialError&&l.firstBadMatchIndex!==void 0){const N=l.router.looseRoutesById[l.matches[l.firstBadMatchIndex].routeId];await Li(N,["errorComponent"])}for(let N=0;N<=b;N++){const{id:M,routeId:C}=l.matches[N],U=l.router.looseRoutesById[C];try{const $=oS(l,M,U);if($){const K=await $;l.updateMatch(M,L=>({...L,...K}))}}catch($){console.error(`Error executing head for route ${C}:`,$)}}const v=Mf(l);if(wi(v)&&await v,g)throw g;if(l.serialError&&!l.preload&&!l.onReady)throw l.serialError;return l.matches}function Cy(n,l){const i=l.map(u=>{var o,d;return(d=(o=n.options[u])==null?void 0:o.preload)==null?void 0:d.call(o)}).filter(Boolean);if(i.length!==0)return Promise.all(i)}function Li(n,l=pu){!n._lazyLoaded&&n._lazyPromise===void 0&&(n.lazyFn?n._lazyPromise=n.lazyFn().then(u=>{const{id:o,...d}=u.options;Object.assign(n.options,d),n._lazyLoaded=!0,n._lazyPromise=void 0}):n._lazyLoaded=!0);const i=()=>n._componentsLoaded?void 0:l===pu?(()=>{if(n._componentsPromise===void 0){const u=Cy(n,pu);u?n._componentsPromise=u.then(()=>{n._componentsLoaded=!0,n._componentsPromise=void 0}):n._componentsLoaded=!0}return n._componentsPromise})():Cy(n,l);return n._lazyPromise?n._lazyPromise.then(i):i()}function Tg(n){var l;for(const i of pu)if((l=n.options[i])!=null&&l.preload)return!0;return!1}var pu=["component","errorComponent","pendingComponent","notFoundComponent"],Dn="__TSR_index",Ay="popstate",Oy="beforeunload";function dS(n){let l=n.getLocation();const i=new Set,u=h=>{l=n.getLocation(),i.forEach(y=>y({location:l,action:h}))},o=h=>{n.notifyOnIndexChange??!0?u(h):l=n.getLocation()},d=async({task:h,navigateOpts:y,...p})=>{var v,S;if((y==null?void 0:y.ignoreBlocker)??!1){h();return}const g=((v=n.getBlockers)==null?void 0:v.call(n))??[],b=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&g.length&&b)for(const j of g){const N=Ru(p.path,p.state);if(await j.blockerFn({currentLocation:l,nextLocation:N,action:p.type})){(S=n.onBlocked)==null||S.call(n);return}}h()};return{get location(){return l},get length(){return n.getLength()},subscribers:i,subscribe:h=>(i.add(h),()=>{i.delete(h)}),push:(h,y,p)=>{const g=l.state[Dn];y=zy(g+1,y),d({task:()=>{n.pushState(h,y),u({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:h,state:y})},replace:(h,y,p)=>{const g=l.state[Dn];y=zy(g,y),d({task:()=>{n.replaceState(h,y),u({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:h,state:y})},go:(h,y)=>{d({task:()=>{n.go(h),o({type:"GO",index:h})},navigateOpts:y,type:"GO"})},back:h=>{d({task:()=>{n.back((h==null?void 0:h.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:h,type:"BACK"})},forward:h=>{d({task:()=>{n.forward((h==null?void 0:h.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:h,type:"FORWARD"})},canGoBack:()=>l.state[Dn]!==0,createHref:h=>n.createHref(h),block:h=>{var p;if(!n.setBlockers)return()=>{};const y=((p=n.getBlockers)==null?void 0:p.call(n))??[];return n.setBlockers([...y,h]),()=>{var b,v;const g=((b=n.getBlockers)==null?void 0:b.call(n))??[];(v=n.setBlockers)==null||v.call(n,g.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:u}}function zy(n,l){l||(l={});const i=Gf();return{...l,key:i,__TSR_key:i,[Dn]:n}}function hS(n){var P,J;const l=typeof document<"u"?window:void 0,i=l.history.pushState,u=l.history.replaceState;let o=[];const d=()=>o,h=G=>o=G,y=(G=>G),p=(()=>Ru(`${l.location.pathname}${l.location.search}${l.location.hash}`,l.history.state));if(!((P=l.history.state)!=null&&P.__TSR_key)&&!((J=l.history.state)!=null&&J.key)){const G=Gf();l.history.replaceState({[Dn]:0,key:G,__TSR_key:G},"")}let g=p(),b,v=!1,S=!1,j=!1,N=!1;const M=()=>g;let C,U;const $=()=>{C&&(Z._ignoreSubscribers=!0,(C.isPush?l.history.pushState:l.history.replaceState)(C.state,"",C.href),Z._ignoreSubscribers=!1,C=void 0,U=void 0,b=void 0)},K=(G,I,lt)=>{const it=y(I);U||(b=g),g=Ru(I,lt),C={href:it,state:lt,isPush:(C==null?void 0:C.isPush)||G==="push"},U||(U=Promise.resolve().then(()=>$()))},L=G=>{g=p(),Z.notify({type:G})},X=async()=>{if(S){S=!1;return}const G=p(),I=G.state[Dn]-g.state[Dn],lt=I===1,it=I===-1,ot=!lt&&!it||v;v=!1;const nt=ot?"GO":it?"BACK":"FORWARD",D=ot?{type:"GO",index:I}:{type:it?"BACK":"FORWARD"};if(j)j=!1;else{const V=d();if(typeof document<"u"&&V.length){for(const at of V)if(await at.blockerFn({currentLocation:g,nextLocation:G,action:nt})){S=!0,l.history.go(1),Z.notify(D);return}}}g=p(),Z.notify(D)},k=G=>{if(N){N=!1;return}let I=!1;const lt=d();if(typeof document<"u"&&lt.length)for(const it of lt){const ot=it.enableBeforeUnload??!0;if(ot===!0){I=!0;break}if(typeof ot=="function"&&ot()===!0){I=!0;break}}if(I)return G.preventDefault(),G.returnValue=""},Z=dS({getLocation:M,getLength:()=>l.history.length,pushState:(G,I)=>K("push",G,I),replaceState:(G,I)=>K("replace",G,I),back:G=>(G&&(j=!0),N=!0,l.history.back()),forward:G=>{G&&(j=!0),N=!0,l.history.forward()},go:G=>{v=!0,l.history.go(G)},createHref:G=>y(G),flush:$,destroy:()=>{l.history.pushState=i,l.history.replaceState=u,l.removeEventListener(Oy,k,{capture:!0}),l.removeEventListener(Ay,X)},onBlocked:()=>{b&&g!==b&&(g=b)},getBlockers:d,setBlockers:h,notifyOnIndexChange:!1});return l.addEventListener(Oy,k,{capture:!0}),l.addEventListener(Ay,X),l.history.pushState=function(...G){const I=i.apply(l.history,G);return Z._ignoreSubscribers||L("PUSH"),I},l.history.replaceState=function(...G){const I=u.apply(l.history,G);return Z._ignoreSubscribers||L("REPLACE"),I},Z}function mS(n){let l=n.replace(/[\x00-\x1f\x7f]/g,"");return l.startsWith("//")&&(l="/"+l.replace(/^\/+/,"")),l}function Ru(n,l){const i=mS(n),u=i.indexOf("#"),o=i.indexOf("?"),d=Gf();return{href:i,pathname:i.substring(0,u>0?o>0?Math.min(u,o):u:o>0?o:i.length),hash:u>-1?i.substring(u):"",search:o>-1?i.slice(o,u===-1?void 0:u):"",state:l||{[Dn]:0,key:d,__TSR_key:d}}}function Gf(){return(Math.random()+1).toString(36).substring(7)}function cl(n,l){const i=l,u=n;return{fromLocation:i,toLocation:u,pathChanged:(i==null?void 0:i.pathname)!==u.pathname,hrefChanged:(i==null?void 0:i.href)!==u.href,hashChanged:(i==null?void 0:i.hash)!==u.hash}}var yS=class{constructor(n,l){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 u=this.options,o=this.basepath??(u==null?void 0:u.basepath)??"/",d=this.basepath===void 0,h=u==null?void 0:u.rewrite;if(this.options={...u,...i},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Vb(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=hS()),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=Ui(1e3),v=this.buildRouteTree(),this.setRoutes(v)}if(!this.stores&&this.latestLocation){const v=this.getStoreConfig(this);this.batch=v.batch,this.stores=lS(pS(this.latestLocation),v),Jb(this)}let y=!1;const p=this.options.basepath??"/",g=this.options.rewrite;if(d||o!==p||h!==g){this.basepath=p;const v=[],S=jg(p);S&&S!=="/"&&v.push(sS({basepath:p})),g&&v.push(g),this.rewrite=v.length===0?void 0:v.length===1?v[0]:nS(v),this.history&&this.updateLatestLocation(),y=!0}y&&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=Bb(this.routeTree,this.options.caseSensitive,(u,o)=>{u.init({originalIndex:o})});return this.options.routeMasks&&zb(this.options.routeMasks,i.processedTree),i},this.subscribe=(i,u)=>{const o={eventType:i,fn:u};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=i=>{this.subscribers.forEach(u=>{u.eventType===i.type&&u.fn(i)})},this.parseLocation=(i,u)=>{const o=({pathname:p,search:g,hash:b,href:v,state:S})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const U=this.options.parseSearch(g),$=this.options.stringifySearch(U);return{href:p+$+b,publicHref:v,pathname:ji(p).path,external:!1,searchStr:$,search:Wn(u==null?void 0:u.search,U),hash:ji(b.slice(1)).path,state:Cn(u==null?void 0:u.state,S)}}const j=new URL(v,this.origin),N=Tf(this.rewrite,j),M=this.options.parseSearch(N.search),C=this.options.stringifySearch(M);return N.search=C,{href:N.href.replace(N.origin,""),publicHref:v,pathname:ji(N.pathname).path,external:!!this.rewrite&&N.origin!==this.origin,searchStr:C,search:Wn(u==null?void 0:u.search,M),hash:ji(N.hash.slice(1)).path,state:Cn(u==null?void 0:u.state,S)}},d=o(i),{__tempLocation:h,__tempKey:y}=d.state;if(h&&(!y||y===this.tempLocationKey)){const p=o(h);return p.state.key=d.state.key,p.state.__TSR_key=d.state.__TSR_key,delete p.state.__tempLocation,{...p,maskedLocation:d}}return d},this.resolvePathWithBase=(i,u)=>Gb({base:i,to:Yf(u),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(i,u,o)=>typeof i=="string"?this.matchRoutesInternal({pathname:i,search:u},o):this.matchRoutesInternal(i,u),this.getMatchedRoutes=i=>vS({pathname:i,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=i=>{const u=this.getMatch(i);u&&(u.abortController.abort(),clearTimeout(u._nonReactive.pendingTimeout),u._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 u=(o=this.stores.activeMatchStoresById.get(i))==null?void 0:o.state;u&&(u.status==="pending"||u.isFetching==="loader")&&this.cancelMatch(i)})},this.buildLocation=i=>{const u=(d={})=>{var G,I;const h=d._fromLocation||this.pendingBuiltLocation||this.latestLocation,y=this.matchRoutesLightweight(h);d.from;const p=d.unsafeRelative==="path"?h.pathname:d.from??y.fullPath,g=this.resolvePathWithBase(p,"."),b=y.search,v=Object.assign(Object.create(null),y.params),S=d.to?this.resolvePathWithBase(g,`${d.to}`):this.resolvePathWithBase(g,"."),j=d.params===!1||d.params===null?Object.create(null):(d.params??!0)===!0?v:Object.assign(v,Mn(d.params,v)),N=this.getMatchedRoutes(S);let M=N.matchedRoutes;if((!N.foundRoute||N.foundRoute.path!=="/"&&N.routeParams["**"])&&this.options.notFoundRoute&&(M=[...M,this.options.notFoundRoute]),Object.keys(j).length>0)for(const lt of M){const it=((G=lt.options.params)==null?void 0:G.stringify)??lt.options.stringifyParams;if(it)try{Object.assign(j,it(j))}catch{}}const C=i.leaveParams?S:ji(Sy({path:S,params:j,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let U=b;if(i._includeValidateSearch&&((I=this.options.search)!=null&&I.strict)){const lt={};M.forEach(it=>{if(it.options.validateSearch)try{Object.assign(lt,vu(it.options.validateSearch,{...lt,...U}))}catch{}}),U=lt}U=xS({search:U,dest:d,destRoutes:M,_includeValidateSearch:i._includeValidateSearch}),U=Wn(b,U);const $=this.options.stringifySearch(U),K=d.hash===!0?h.hash:d.hash?Mn(d.hash,h.hash):void 0,L=K?`#${K}`:"";let X=d.state===!0?h.state:d.state?Mn(d.state,h.state):{};X=Cn(h.state,X);const k=`${C}${$}${L}`;let Z,P,J=!1;if(this.rewrite){const lt=new URL(k,this.origin),it=Ng(this.rewrite,lt);Z=lt.href.replace(lt.origin,""),it.origin!==this.origin?(P=it.href,J=!0):P=it.pathname+it.search+it.hash}else Z=Cb(k),P=Z;return{publicHref:P,href:Z,pathname:C,search:U,searchStr:$,state:X,hash:K??"",external:J,unmaskOnReload:d.unmaskOnReload}},o=(d={},h)=>{const y=u(d);let p=h?u(h):void 0;if(!p){const g=Object.create(null);if(this.options.routeMasks){const b=Db(y.pathname,this.processedTree);if(b){Object.assign(g,b.rawParams);const{from:v,params:S,...j}=b.route,N=S===!1||S===null?Object.create(null):(S??!0)===!0?g:Object.assign(g,Mn(S,g));h={from:i.from,...j,params:N},p=u(h)}}}return p&&(y.maskedLocation=p),y};return i.mask?o(i,{from:i.from,...i.mask}):o(i)},this.commitLocation=async({viewTransition:i,ignoreBlocker:u,...o})=>{const d=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(b=>{o.state[b]=this.latestLocation.state[b]});const g=ds(o.state,this.latestLocation.state);return p.forEach(b=>{delete o.state[b]}),g},h=zn(this.latestLocation.href)===zn(o.href);let y=this.commitLocationPromise;if(this.commitLocationPromise=Nl(()=>{y==null||y.resolve(),y=void 0}),h&&d())this.load();else{let{maskedLocation:p,hashScrollIntoView:g,...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=g??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=i,this.history[o.replace?"replace":"push"](b.publicHref,b.state,{ignoreBlocker:u})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:i,resetScroll:u,hashScrollIntoView:o,viewTransition:d,ignoreBlocker:h,href:y,...p}={})=>{if(y){const v=this.history.location.state.__TSR_index,S=Ru(y,{__TSR_index:i?v:v+1}),j=new URL(S.pathname,this.origin);p.to=Tf(this.rewrite,j).pathname,p.search=this.options.parseSearch(S.search),p.hash=S.hash.slice(1)}const g=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=g;const b=this.commitLocation({...g,viewTransition:d,replace:i,resetScroll:u,hashScrollIntoView:o,ignoreBlocker:h});return Promise.resolve().then(()=>{this.pendingBuiltLocation===g&&(this.pendingBuiltLocation=void 0)}),b},this.navigate=async({to:i,reloadDocument:u,href:o,publicHref:d,...h})=>{var p,g;let y=!1;if(o)try{new URL(`${o}`),y=!0}catch{}if(y&&!u&&(u=!0),u){if(i!==void 0||!o){const v=this.buildLocation({to:i,...h});o=o??v.publicHref,d=d??v.publicHref}const b=!y&&d?d:o;if(ju(b,this.protocolAllowlist))return Promise.resolve();if(!h.ignoreBlocker){const v=((g=(p=this.history).getBlockers)==null?void 0:g.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),u=this.stores.cachedMatchesSnapshot.state.filter(o=>!i.some(d=>d.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(u)})},this.load=async i=>{let u,o,d;const h=this.stores.resolvedLocation.state??this.stores.location.state;for(d=new Promise(p=>{this.startTransition(async()=>{var g;try{this.beforeLoad();const b=this.latestLocation,v=this.stores.resolvedLocation.state,S=cl(b,v);this.stores.redirect.state||this.emit({type:"onBeforeNavigate",...S}),this.emit({type:"onBeforeLoad",...S}),await My({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,$;let j=null,N=null,M=null,C=null;this.batch(()=>{const K=this.stores.pendingMatchesSnapshot.state,L=K.length,X=this.stores.activeMatchesSnapshot.state;j=L?X.filter(P=>!this.stores.pendingMatchStoresById.has(P.id)):null;const k=new Set;for(const P of this.stores.pendingMatchStoresById.values())P.routeId&&k.add(P.routeId);const Z=new Set;for(const P of this.stores.activeMatchStoresById.values())P.routeId&&Z.add(P.routeId);N=L?X.filter(P=>!k.has(P.routeId)):null,M=L?K.filter(P=>!Z.has(P.routeId)):null,C=L?K.filter(P=>Z.has(P.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,...j.filter(P=>P.status!=="error"&&P.status!=="notFound"&&P.status!=="redirected")]),this.clearExpiredCache())});for(const[K,L]of[[N,"onLeave"],[M,"onEnter"],[C,"onStay"]])if(K)for(const X of K)($=(U=this.looseRoutesById[X.routeId].options)[L])==null||$.call(U,X)})})}})}catch(b){Ae(b)?(u=b,this.navigate({...u.options,replace:!0,ignoreBlocker:!0})):xe(b)&&(o=b);const v=u?u.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(()=>u)})}this.latestLoadPromise===d&&((g=this.commitLocationPromise)==null||g.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),p()})}),this.latestLoadPromise=d,await d;this.latestLoadPromise&&d!==this.latestLoadPromise;)await this.latestLoadPromise;let y;this.hasNotFoundMatch()?y=404:this.stores.activeMatchesSnapshot.state.some(p=>p.status==="error")&&(y=500),y!==void 0&&this.stores.statusCode.setState(()=>y)},this.startViewTransition=i=>{const u=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,u&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof u=="object"&&this.isViewTransitionTypesSupported){const d=this.latestLocation,h=this.stores.resolvedLocation.state,y=typeof u.types=="function"?u.types(cl(d,h)):u.types;if(y===!1){i();return}o={update:i,types:y}}else o=i;document.startViewTransition(o)}else i()},this.updateMatch=(i,u)=>{this.startTransition(()=>{const o=this.stores.pendingMatchStoresById.get(i);if(o){o.setState(u);return}const d=this.stores.activeMatchStoresById.get(i);if(d){d.setState(u);return}const h=this.stores.cachedMatchStoresById.get(i);if(h){const y=u(h.state);y.status==="redirected"?this.stores.cachedMatchStoresById.delete(i)&&this.stores.cachedMatchesId.setState(p=>p.filter(g=>g!==i)):h.setState(()=>y)}})},this.getMatch=i=>{var u,o,d;return((u=this.stores.cachedMatchStoresById.get(i))==null?void 0:u.state)??((o=this.stores.pendingMatchStoresById.get(i))==null?void 0:o.state)??((d=this.stores.activeMatchStoresById.get(i))==null?void 0:d.state)},this.invalidate=i=>{const u=o=>{var d;return((d=i==null?void 0:i.filter)==null?void 0:d.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(u)),this.stores.setCachedMatches(this.stores.cachedMatchesSnapshot.state.map(u)),this.stores.setPendingMatches(this.stores.pendingMatchesSnapshot.state.map(u))}),this.shouldViewTransition=!1,this.load({sync:i==null?void 0:i.sync})},this.getParsedLocationHref=i=>i.publicHref||"/",this.resolveRedirect=i=>{const u=i.headers.get("Location");if(!i.options.href||i.options._builtLocation){const o=i.options._builtLocation??this.buildLocation(i.options),d=this.getParsedLocationHref(o);i.options.href=d,i.headers.set("Location",d)}else if(u)try{const o=new URL(u);if(this.origin&&o.origin===this.origin){const d=o.pathname+o.search+o.hash;i.options.href=d,i.headers.set("Location",d)}}catch{}if(i.options.href&&!i.options._builtLocation&&ju(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 u=i==null?void 0:i.filter;u!==void 0?this.stores.setCachedMatches(this.stores.cachedMatchesSnapshot.state.filter(o=>!u(o))):this.stores.setCachedMatches([])},this.clearExpiredCache=()=>{const i=Date.now(),u=o=>{const d=this.looseRoutesById[o.routeId];if(!d.options.loader)return!0;const h=(o.preload?d.options.preloadGcTime??this.options.defaultPreloadGcTime:d.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:i-o.updatedAt>=h};this.clearCache({filter:u})},this.loadRouteChunk=Li,this.preloadRoute=async i=>{const u=i._builtLocation??this.buildLocation(i);let o=this.matchRoutes(u,{throwOnError:!0,preload:!0,dest:i});const d=new Set([...this.stores.matchesId.state,...this.stores.pendingMatchesId.state]),h=new Set([...d,...this.stores.cachedMatchesId.state]),y=o.filter(p=>!h.has(p.id));if(y.length){const p=this.stores.cachedMatchesSnapshot.state;this.stores.setCachedMatches([...p,...y])}try{return o=await My({router:this,matches:o,location:u,preload:!0,updateMatch:(p,g)=>{d.has(p)?o=o.map(b=>b.id===p?g(b):b):this.updateMatch(p,g)}}),o}catch(p){if(Ae(p))return p.options.reloadDocument?void 0:await this.preloadRoute({...p.options,_fromLocation:u});xe(p)||console.error(p);return}},this.matchRoute=(i,u)=>{const o={...i,to:i.to?this.resolvePathWithBase(i.from||"",i.to):void 0,params:i.params||{},leaveParams:!0},d=this.buildLocation(o);if(u!=null&&u.pending&&this.stores.status.state!=="pending")return!1;const h=((u==null?void 0:u.pending)===void 0?!this.stores.isLoading.state:u.pending)?this.latestLocation:this.stores.resolvedLocation.state||this.stores.location.state,y=wb(d.pathname,(u==null?void 0:u.caseSensitive)??!1,(u==null?void 0:u.fuzzy)??!1,h.pathname,this.processedTree);return!y||i.params&&!ds(y.rawParams,i.params,{partial:!0})?!1:(u==null?void 0:u.includeSearch)??!0?ds(h.search,d.search,{partial:!0})?y.rawParams:!1:y.rawParams},this.hasNotFoundMatch=()=>this.stores.activeMatchesSnapshot.state.some(i=>i.status==="notFound"||i.globalNotFound),this.getStoreConfig=l,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...n,caseSensitive:n.caseSensitive??!1,notFoundMode:n.notFoundMode??"fuzzy",stringifySearch:n.stringifySearch??Wb,parseSearch:n.parseSearch??kb,protocolAllowlist:n.protocolAllowlist??Mb}),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:l,processedTree:i}){this.routesById=n,this.routesByPath=l,this.processedTree=i;const u=this.options.notFoundRoute;u&&(u.init({originalIndex:99999999999}),this.routesById[u.id]=u)}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,l){var v,S;const i=this.getMatchedRoutes(n.pathname),{foundRoute:u,routeParams:o,parsedParams:d}=i;let{matchedRoutes:h}=i,y=!1;(u?u.path!=="/"&&o["**"]:zn(n.pathname))&&(this.options.notFoundRoute?h=[...h,this.options.notFoundRoute]:y=!0);const p=y?SS(this.options.notFoundMode,h):void 0,g=new Array(h.length),b=new Map;for(const j of this.stores.activeMatchStoresById.values())j.routeId&&b.set(j.routeId,j.state);for(let j=0;j<h.length;j++){const N=h[j],M=g[j-1];let C,U,$;{const nt=(M==null?void 0:M.search)??n.search,D=(M==null?void 0:M._strictSearch)??void 0;try{const V=vu(N.options.validateSearch,{...nt})??void 0;C={...nt,...V},U={...D,...V},$=void 0}catch(V){let at=V;if(V instanceof _u||(at=new _u(V.message,{cause:V})),l!=null&&l.throwOnError)throw at;C=nt,U={},$=at}}const K=((S=(v=N.options).loaderDeps)==null?void 0:S.call(v,{search:C}))??"",L=K?JSON.stringify(K):"",{interpolatedPath:X,usedParams:k}=Sy({path:N.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),Z=N.id+X+L,P=this.getMatch(Z),J=b.get(N.id),G=(P==null?void 0:P._strictParams)??k;let I;if(!P)try{Dy(N,k,d,G)}catch(nt){if(xe(nt)||Ae(nt)?I=nt:I=new gS(nt.message,{cause:nt}),l!=null&&l.throwOnError)throw I}Object.assign(o,G);const lt=J?"stay":"enter";let it;if(P)it={...P,cause:lt,params:(J==null?void 0:J.params)??o,_strictParams:G,search:Wn(J?J.search:P.search,C),_strictSearch:U};else{const nt=N.options.loader||N.options.beforeLoad||N.lazyFn||Tg(N)?"pending":"success";it={id:Z,ssr:N.options.ssr,index:j,routeId:N.id,params:(J==null?void 0:J.params)??o,_strictParams:G,pathname:X,updatedAt:Date.now(),search:J?Wn(J.search,C):C,_strictSearch:U,searchError:void 0,status:nt,isFetching:!1,error:void 0,paramsError:I,__routeContext:void 0,_nonReactive:{loadPromise:Nl()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:lt,loaderDeps:J?Cn(J.loaderDeps,K):K,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:N.options.staticData||{},fullPath:N.fullPath}}l!=null&&l.preload||(it.globalNotFound=p===N.id),it.searchError=$;const ot=this.getParentContext(M);it.context={...ot,...it.__routeContext,...it.__beforeLoadContext},g[j]=it}for(let j=0;j<g.length;j++){const N=g[j],M=this.looseRoutesById[N.routeId],C=this.getMatch(N.id),U=b.get(N.routeId);if(N.params=U?Wn(U.params,o):o,!C){const $=g[j-1],K=this.getParentContext($);if(M.options.context){const L={deps:N.loaderDeps,params:N.params,context:K??{},location:n,navigate:X=>this.navigate({...X,_fromLocation:n}),buildLocation:this.buildLocation,cause:N.cause,abortController:N.abortController,preload:!!N.preload,matches:g,routeId:M.id};N.__routeContext=M.options.context(L)??void 0}N.context={...K,...N.__routeContext,...N.__beforeLoadContext}}}return g}matchRoutesLightweight(n){var b;const{matchedRoutes:l,routeParams:i,parsedParams:u}=this.getMatchedRoutes(n.pathname),o=Di(l),d={...n.search};for(const v of l)try{Object.assign(d,vu(v.options.validateSearch,d))}catch{}const h=Di(this.stores.matchesId.state),y=h&&((b=this.stores.activeMatchStoresById.get(h))==null?void 0:b.state),p=y&&y.routeId===o.id&&y.pathname===n.pathname;let g;if(p)g=y.params;else{const v=Object.assign(Object.create(null),i);for(const S of l)try{Dy(S,i,u??{},v)}catch{}g=v}return{matchedRoutes:l,fullPath:o.fullPath,search:d,params:g}}},_u=class extends Error{},gS=class extends Error{};function pS(n){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:n,matches:[],statusCode:200}}function vu(n,l){if(n==null)return{};if("~standard"in n){const i=n["~standard"].validate(l);if(i instanceof Promise)throw new _u("Async validation not supported");if(i.issues)throw new _u(JSON.stringify(i.issues,void 0,2),{cause:i});return i.value}return"parse"in n?n.parse(l):typeof n=="function"?n(l):{}}function vS({pathname:n,routesById:l,processedTree:i}){const u=Object.create(null),o=zn(n);let d,h;const y=Ub(o,i,!0);return y&&(d=y.route,Object.assign(u,y.rawParams),h=Object.assign(Object.create(null),y.parsedParams)),{matchedRoutes:(y==null?void 0:y.branch)||[l.__root__],routeParams:u,foundRoute:d,parsedParams:h}}function xS({search:n,dest:l,destRoutes:i,_includeValidateSearch:u}){return bS(i)(n,l,u??!1)}function bS(n){var o;const l={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const d of n){if("search"in d.options)(o=d.options.search)!=null&&o.middlewares&&l.middlewares.push(...d.options.search.middlewares);else if(d.options.preSearchFilters||d.options.postSearchFilters){const h=({search:y,next:p})=>{let g=y;"preSearchFilters"in d.options&&d.options.preSearchFilters&&(g=d.options.preSearchFilters.reduce((v,S)=>S(v),y));const b=p(g);return"postSearchFilters"in d.options&&d.options.postSearchFilters?d.options.postSearchFilters.reduce((v,S)=>S(v),b):b};l.middlewares.push(h)}if(d.options.validateSearch){const h=({search:y,next:p})=>{const g=p(y);if(!l._includeValidateSearch)return g;try{return{...g,...vu(d.options.validateSearch,g)??void 0}}catch{return g}};l.middlewares.push(h)}}const i=({search:d})=>{const h=l.dest;return h.search?h.search===!0?d:Mn(h.search,d):{}};l.middlewares.push(i);const u=(d,h,y)=>{if(d>=y.length)return h;const p=y[d];return p({search:h,next:b=>u(d+1,b,y)})};return function(h,y,p){return l.dest=y,l._includeValidateSearch=p,u(0,h,l.middlewares)}}function SS(n,l){if(n!=="root")for(let i=l.length-1;i>=0;i--){const u=l[i];if(u.children)return u.id}return hs}function Dy(n,l,i,u){var d;const o=((d=n.options.params)==null?void 0:d.parse)??n.options.parseParams;if(o)if(n.options.skipRouteOnParseError)for(const h in l)h in i&&(u[h]=i[h]);else{const h=o(u);Object.assign(u,h)}}var jS="Error preloading route! ☝️",Mg=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=l=>{var p,g;this.originalIndex=l.originalIndex;const i=this.options,u=!(i!=null&&i.path)&&!(i!=null&&i.id);this.parentRoute=(g=(p=this.options).getParentRoute)==null?void 0:g.call(p),u?this._path=hs:this.parentRoute||Ya();let o=u?hs:i==null?void 0:i.path;o&&o!=="/"&&(o=Sg(o));const d=(i==null?void 0:i.id)||o;let h=u?hs:gu([this.parentRoute.id==="__root__"?"":this.parentRoute.id,d]);o==="__root__"&&(o="/"),h!=="__root__"&&(h=gu(["/",h]));const y=h==="__root__"?"/":gu([this.parentRoute.fullPath,o]);this._path=o,this._id=h,this._fullPath=y,this._to=zn(y)},this.addChildren=l=>this._addFileChildren(l),this._addFileChildren=l=>(Array.isArray(l)&&(this.children=l),typeof l=="object"&&l!==null&&(this.children=Object.values(l)),this),this._addFileTypes=()=>this,this.updateLoader=l=>(Object.assign(this.options,l),this),this.update=l=>(Object.assign(this.options,l),this),this.lazy=l=>(this.lazyFn=l,this),this.redirect=l=>aS({from:this.fullPath,...l}),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.")}},NS=class extends Mg{constructor(n){super(n)}};function RS(n){if(typeof document<"u"&&document.querySelector){const l=n.stores.location.state,i=l.state.__hashScrollIntoViewOptions??!0;if(i&&l.hash!==""){const u=document.getElementById(l.hash);u&&u.scrollIntoView(i)}}}function Vf(n){const l=n.errorComponent??Xf;return f.jsx(_S,{getResetKey:n.getResetKey,onCatch:n.onCatch,children:({error:i,reset:u})=>i?F.createElement(l,{error:i,reset:u}):n.children})}var _S=class extends F.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,l){l.error&&l.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(n,l){this.props.onCatch&&this.props.onCatch(n,l)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}};function Xf({error:n}){const[l,i]=F.useState(!1);return f.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[f.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[f.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),f.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>i(u=>!u),children:l?"Hide Error":"Show Error"})]}),f.jsx("div",{style:{height:".25rem"}}),l?f.jsx("div",{children:f.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:n.message?f.jsx("code",{children:n.message}):null})}):null]})}function ES({children:n,fallback:l=null}){return Cg()?f.jsx(Ai.Fragment,{children:n}):f.jsx(Ai.Fragment,{children:l})}function Cg(){return Ai.useSyncExternalStore(TS,()=>!0,()=>!1)}function TS(){return()=>{}}var Ag=F.createContext(null);function be(n){return F.useContext(Ag)}var Au=F.createContext(void 0),MS=F.createContext(void 0),Vt=(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))(Vt||{});function CS({update:n,notify:l,unwatched:i}){return{link:u,unlink:o,propagate:d,checkDirty:h,shallowPropagate:y};function u(g,b,v){const S=b.depsTail;if(S!==void 0&&S.dep===g)return;const j=S!==void 0?S.nextDep:b.deps;if(j!==void 0&&j.dep===g){j.version=v,b.depsTail=j;return}const N=g.subsTail;if(N!==void 0&&N.version===v&&N.sub===b)return;const M=b.depsTail=g.subsTail={version:v,dep:g,sub:b,prevDep:S,nextDep:j,prevSub:N,nextSub:void 0};j!==void 0&&(j.prevDep=M),S!==void 0?S.nextDep=M:b.deps=M,N!==void 0?N.nextSub=M:g.subs=M}function o(g,b=g.sub){const v=g.dep,S=g.prevDep,j=g.nextDep,N=g.nextSub,M=g.prevSub;return j!==void 0?j.prevDep=S:b.depsTail=S,S!==void 0?S.nextDep=j:b.deps=j,N!==void 0?N.prevSub=M:v.subsTail=M,M!==void 0?M.nextSub=N:(v.subs=N)===void 0&&i(v),j}function d(g){let b=g.nextSub,v;t:do{const S=g.sub;let j=S.flags;if(j&60?j&12?j&4?!(j&48)&&p(g,S)?(S.flags=j|40,j&=1):j=0:S.flags=j&-9|32:j=0:S.flags=j|32,j&2&&l(S),j&1){const N=S.subs;if(N!==void 0){const M=(g=N).nextSub;M!==void 0&&(v={value:b,prev:v},b=M);continue}}if((g=b)!==void 0){b=g.nextSub;continue}for(;v!==void 0;)if(g=v.value,v=v.prev,g!==void 0){b=g.nextSub;continue t}break}while(!0)}function h(g,b){let v,S=0,j=!1;t:do{const N=g.dep,M=N.flags;if(b.flags&16)j=!0;else if((M&17)===17){if(n(N)){const C=N.subs;C.nextSub!==void 0&&y(C),j=!0}}else if((M&33)===33){(g.nextSub!==void 0||g.prevSub!==void 0)&&(v={value:g,prev:v}),g=N.deps,b=N,++S;continue}if(!j){const C=g.nextDep;if(C!==void 0){g=C;continue}}for(;S--;){const C=b.subs,U=C.nextSub!==void 0;if(U?(g=v.value,v=v.prev):g=C,j){if(n(b)){U&&y(C),b=g.sub;continue}j=!1}else b.flags&=-33;b=g.sub;const $=g.nextDep;if($!==void 0){g=$;continue t}}return j}while(!0)}function y(g){do{const b=g.sub,v=b.flags;(v&48)===32&&(b.flags=v|16,(v&6)===2&&l(b))}while((g=g.nextSub)!==void 0)}function p(g,b){let v=b.depsTail;for(;v!==void 0;){if(v===g)return!0;v=v.prevDep}return!1}}function Kf(n,l,i){var d,h,y;const u=typeof n=="object",o=u?n:void 0;return{next:(d=u?n.next:n)==null?void 0:d.bind(o),error:(h=u?n.error:l)==null?void 0:h.bind(o),complete:(y=u?n.complete:i)==null?void 0:y.bind(o)}}const Cf=[];let xu=0;const{link:wy,unlink:AS,propagate:OS,checkDirty:Og,shallowPropagate:Uy}=CS({update(n){return n._update()},notify(n){Cf[Af++]=n,n.flags&=~Vt.Watching},unwatched(n){n.depsTail!==void 0&&(n.depsTail=void 0,n.flags=Vt.Mutable|Vt.Dirty,Eu(n))}});let hu=0,Af=0,fa,Of=0;function zg(n){try{++Of,n()}finally{--Of||Dg()}}function Eu(n){const l=n.depsTail;let i=l!==void 0?l.nextDep:n.deps;for(;i!==void 0;)i=AS(i,n)}function Dg(){if(!(Of>0)){for(;hu<Af;){const n=Cf[hu];Cf[hu++]=void 0,n.notify()}hu=0,Af=0}}function wg(n,l){const i=typeof n=="function",u=n,o={_snapshot:i?void 0:n,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:i?Vt.None:Vt.Mutable,get(){return fa!==void 0&&wy(o,fa,xu),o._snapshot},subscribe(d){const h=Kf(d),y={current:!1},p=zS(()=>{var g;o.get(),y.current?(g=h.next)==null||g.call(h,o._snapshot):y.current=!0});return{unsubscribe:()=>{p.stop()}}},_update(d){const h=fa,y=Object.is;if(i)fa=o,++xu,o.depsTail=void 0;else if(d===void 0)return!1;i&&(o.flags=Vt.Mutable|Vt.RecursedCheck);try{const p=o._snapshot,g=typeof d=="function"?d(p):d===void 0&&i?u(p):d;return p===void 0||!y(p,g)?(o._snapshot=g,!0):!1}finally{fa=h,i&&(o.flags&=~Vt.RecursedCheck),Eu(o)}}};return i?(o.flags=Vt.Mutable|Vt.Dirty,o.get=function(){const d=o.flags;if(d&Vt.Dirty||d&Vt.Pending&&Og(o.deps,o)){if(o._update()){const h=o.subs;h!==void 0&&Uy(h)}}else d&Vt.Pending&&(o.flags=d&~Vt.Pending);return fa!==void 0&&wy(o,fa,xu),o._snapshot}):o.set=function(d){if(o._update(d)){const h=o.subs;h!==void 0&&(OS(h),Uy(h),Dg())}},o}function zS(n){const l=()=>{const u=fa;fa=i,++xu,i.depsTail=void 0,i.flags=Vt.Watching|Vt.RecursedCheck;try{return n()}finally{fa=u,i.flags&=~Vt.RecursedCheck,Eu(i)}},i={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Vt.Watching|Vt.RecursedCheck,notify(){const u=this.flags;u&Vt.Dirty||u&Vt.Pending&&Og(this.deps,this)?l():this.flags=Vt.Watching},stop(){this.flags=Vt.None,this.depsTail=void 0,Eu(this)}};return l(),i}class DS{constructor(l){this.atom=wg(l)}setState(l){this.atom.set(l)}get state(){return this.atom.get()}get(){return this.state}subscribe(l){return this.atom.subscribe(Kf(l))}}class wS{constructor(l){this.atom=wg(l)}get state(){return this.atom.get()}get(){return this.state}subscribe(l){return this.atom.subscribe(Kf(l))}}function Ly(n){return typeof n=="function"?new wS(n):new DS(n)}var uf={exports:{}},cf={},of={exports:{}},ff={};/**
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 By;function US(){if(By)return ff;By=1;var n=Gi();function l(v,S){return v===S&&(v!==0||1/v===1/S)||v!==v&&S!==S}var i=typeof Object.is=="function"?Object.is:l,u=n.useState,o=n.useEffect,d=n.useLayoutEffect,h=n.useDebugValue;function y(v,S){var j=S(),N=u({inst:{value:j,getSnapshot:S}}),M=N[0].inst,C=N[1];return d(function(){M.value=j,M.getSnapshot=S,p(M)&&C({inst:M})},[v,j,S]),o(function(){return p(M)&&C({inst:M}),v(function(){p(M)&&C({inst:M})})},[v]),h(j),j}function p(v){var S=v.getSnapshot;v=v.value;try{var j=S();return!i(v,j)}catch{return!0}}function g(v,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:y;return ff.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:b,ff}var Hy;function LS(){return Hy||(Hy=1,of.exports=US()),of.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 qy;function BS(){if(qy)return cf;qy=1;var n=Gi(),l=LS();function i(g,b){return g===b&&(g!==0||1/g===1/b)||g!==g&&b!==b}var u=typeof Object.is=="function"?Object.is:i,o=l.useSyncExternalStore,d=n.useRef,h=n.useEffect,y=n.useMemo,p=n.useDebugValue;return cf.useSyncExternalStoreWithSelector=function(g,b,v,S,j){var N=d(null);if(N.current===null){var M={hasValue:!1,value:null};N.current=M}else M=N.current;N=y(function(){function U(k){if(!$){if($=!0,K=k,k=S(k),j!==void 0&&M.hasValue){var Z=M.value;if(j(Z,k))return L=Z}return L=k}if(Z=L,u(K,k))return Z;var P=S(k);return j!==void 0&&j(Z,P)?(K=k,Z):(K=k,L=P)}var $=!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,j]);var C=o(g,N[0],N[1]);return h(function(){M.hasValue=!0,M.value=C},[C]),p(C),C},cf}var Qy;function HS(){return Qy||(Qy=1,uf.exports=BS()),uf.exports}var qS=HS();function QS(n,l){return n===l}function ye(n,l,i=QS){const u=F.useCallback(h=>{if(!n)return()=>{};const{unsubscribe:y}=n.subscribe(h);return y},[n]),o=F.useCallback(()=>n==null?void 0:n.get(),[n]);return qS.useSyncExternalStoreWithSelector(u,o,o,l,i)}var YS={state:void 0,get:()=>{},subscribe:()=>()=>{}};function gs(n){const l=be(),i=F.useContext(n.from?MS:Au),u=n.from??i,o=u?n.from?l.stores.getMatchStoreByRouteId(u):l.stores.activeMatchStoresById.get(u):void 0,d=F.useRef(void 0);return ye(o??YS,h=>{if((n.shouldThrow??!0)&&!h&&Ya(),h===void 0)return;const y=n.select?n.select(h):h;if(n.structuralSharing??l.options.defaultStructuralSharing){const p=Cn(d.current,y);return d.current=p,p}return y})}function Ug(n){return gs({from:n.from,strict:n.strict,structuralSharing:n.structuralSharing,select:l=>n.select?n.select(l.loaderData):l.loaderData})}function Lg(n){const{select:l,...i}=n;return gs({...i,select:u=>l?l(u.loaderDeps):u.loaderDeps})}function Bg(n){return gs({from:n.from,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,strict:n.strict,select:l=>{const i=n.strict===!1?l.params:l._strictParams;return n.select?n.select(i):i}})}function Hg(n){return gs({from:n.from,strict:n.strict,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,select:l=>n.select?n.select(l.search):l.search})}function Ou(n){const l=be();return F.useCallback(i=>l.navigate({...i,from:i.from??(n==null?void 0:n.from)}),[n==null?void 0:n.from,l])}function qg(n){return gs({...n,select:l=>n.select?n.select(l.context):l.context})}var GS=lg();function VS(n,l){const i=be(),u=Nb(l),{activeProps:o,inactiveProps:d,activeOptions:h,to:y,preload:p,preloadDelay:g,hashScrollIntoView:b,replace:v,startTransition:S,resetScroll:j,viewTransition:N,children:M,target:C,disabled:U,style:$,className:K,onClick:L,onBlur:X,onFocus:k,onMouseEnter:Z,onMouseLeave:P,onTouchStart:J,ignoreBlocker:G,params:I,search:lt,hash:it,state:ot,mask:nt,reloadDocument:D,unsafeRelative:V,from:at,_fromLocation:yt,...ft}=n,E=Cg(),Q=F.useMemo(()=>n,[i,n.from,n._fromLocation,n.hash,n.to,n.search,n.params,n.state,n.mask,n.unsafeRelative]),W=ye(i.stores.location,St=>St,(St,de)=>St.href===de.href),tt=F.useMemo(()=>{const St={_fromLocation:W,...Q};return i.buildLocation(St)},[i,W,Q]),ht=tt.maskedLocation?tt.maskedLocation.publicHref:tt.publicHref,xt=tt.maskedLocation?tt.maskedLocation.external:tt.external,bt=F.useMemo(()=>JS(ht,xt,i.history,U),[U,xt,ht,i.history]),Pt=F.useMemo(()=>{if(bt!=null&&bt.external)return ju(bt.href,i.protocolAllowlist)?void 0:bt.href;if(!IS(y)&&!(typeof y!="string"||y.indexOf(":")===-1))try{return new URL(y),ju(y,i.protocolAllowlist)?void 0:y}catch{}},[y,bt,i.protocolAllowlist]),qt=F.useMemo(()=>{if(Pt)return!1;if(h!=null&&h.exact){if(!Yb(W.pathname,tt.pathname,i.basepath))return!1}else{const St=Nu(W.pathname,i.basepath),de=Nu(tt.pathname,i.basepath);if(!(St.startsWith(de)&&(St.length===de.length||St[de.length]==="/")))return!1}return((h==null?void 0:h.includeSearch)??!0)&&!ds(W.search,tt.search,{partial:!(h!=null&&h.exact),ignoreUndefined:!(h!=null&&h.explicitUndefined)})?!1:h!=null&&h.includeHash?E&&W.hash===tt.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,W,Pt,E,tt.hash,tt.pathname,tt.search,i.basepath]),la=qt?Mn(o,{})??XS:df,ga=qt?df:Mn(d,{})??df,vs=[K,la.className,ga.className].filter(Boolean).join(" "),El=($||la.style||ga.style)&&{...$,...la.style,...ga.style},[pa,xs]=F.useState(!1),bs=F.useRef(!1),Xa=n.reloadDocument||Pt?!1:p??i.options.defaultPreload,Ss=g??i.options.defaultPreloadDelay??0,We=F.useCallback(()=>{i.preloadRoute({...Q,_builtLocation:tt}).catch(St=>{console.warn(St),console.warn(jS)})},[i,Q,tt]);jb(u,F.useCallback(St=>{St!=null&&St.isIntersecting&&We()},[We]),$S,{disabled:!!U||Xa!=="viewport"}),F.useEffect(()=>{bs.current||!U&&Xa==="render"&&(We(),bs.current=!0)},[U,We,Xa]);const Tl=St=>{const de=St.currentTarget.getAttribute("target"),ia=C!==void 0?C:de;if(!U&&!FS(St)&&!St.defaultPrevented&&(!ia||ia==="_self")&&St.button===0){St.preventDefault(),GS.flushSync(()=>{xs(!0)});const Zi=i.subscribe("onResolved",()=>{Zi(),xs(!1)});i.navigate({...Q,replace:v,resetScroll:j,hashScrollIntoView:b,startTransition:S,viewTransition:N,ignoreBlocker:G})}};if(Pt)return{...ft,ref:u,href:Pt,...M&&{children:M},...C&&{target:C},...U&&{disabled:U},...$&&{style:$},...K&&{className:K},...L&&{onClick:L},...X&&{onBlur:X},...k&&{onFocus:k},...Z&&{onMouseEnter:Z},...P&&{onMouseLeave:P},...J&&{onTouchStart:J}};const js=St=>{if(U||Xa!=="intent")return;if(!Ss){We();return}const de=St.currentTarget;if(Ei.has(de))return;const ia=setTimeout(()=>{Ei.delete(de),We()},Ss);Ei.set(de,ia)},zu=St=>{U||Xa!=="intent"||We()},Ki=St=>{if(U||!Xa||!Ss)return;const de=St.currentTarget,ia=Ei.get(de);ia&&(clearTimeout(ia),Ei.delete(de))};return{...ft,...la,...ga,href:bt==null?void 0:bt.href,ref:u,onClick:rl([L,Tl]),onBlur:rl([X,Ki]),onFocus:rl([k,js]),onMouseEnter:rl([Z,js]),onMouseLeave:rl([P,Ki]),onTouchStart:rl([J,zu]),disabled:!!U,target:C,...El&&{style:El},...vs&&{className:vs},...U&&KS,...qt&&ZS,...E&&pa&&PS}}var df={},XS={className:"active"},KS={role:"link","aria-disabled":!0},ZS={"data-status":"active","aria-current":"page"},PS={"data-transitioning":"transitioning"},Ei=new WeakMap,$S={rootMargin:"100px"},rl=n=>l=>{for(const i of n)if(i){if(l.defaultPrevented)return;i(l)}};function JS(n,l,i,u){if(!u)return l?{href:n,external:!0}:{href:i.createHref(n)||"/",external:!1}}function IS(n){if(typeof n!="string")return!1;const l=n.charCodeAt(0);return l===47?n.charCodeAt(1)!==47:l===46}var Mt=F.forwardRef((n,l)=>{const{_asChild:i,...u}=n,{type:o,...d}=VS(u,l),h=typeof u.children=="function"?u.children({isActive:d["data-status"]==="active"}):u.children;if(!i){const{disabled:y,...p}=d;return F.createElement("a",p,h)}return F.createElement(i,d,h)});function FS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}var kS=class extends Mg{constructor(l){super(l),this.useMatch=i=>gs({select:i==null?void 0:i.select,from:this.id,structuralSharing:i==null?void 0:i.structuralSharing}),this.useRouteContext=i=>qg({...i,from:this.id}),this.useSearch=i=>Hg({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=>Lg({...i,from:this.id}),this.useLoaderData=i=>Ug({...i,from:this.id}),this.useNavigate=()=>Ou({from:this.fullPath}),this.Link=Ai.forwardRef((i,u)=>f.jsx(Mt,{ref:u,from:this.fullPath,...i}))}};function WS(n){return new kS(n)}var t1=class extends NS{constructor(n){super(n),this.useMatch=l=>gs({select:l==null?void 0:l.select,from:this.id,structuralSharing:l==null?void 0:l.structuralSharing}),this.useRouteContext=l=>qg({...l,from:this.id}),this.useSearch=l=>Hg({select:l==null?void 0:l.select,structuralSharing:l==null?void 0:l.structuralSharing,from:this.id}),this.useParams=l=>Bg({select:l==null?void 0:l.select,structuralSharing:l==null?void 0:l.structuralSharing,from:this.id}),this.useLoaderDeps=l=>Lg({...l,from:this.id}),this.useLoaderData=l=>Ug({...l,from:this.id}),this.useNavigate=()=>Ou({from:this.fullPath}),this.Link=Ai.forwardRef((l,i)=>f.jsx(Mt,{ref:i,from:this.fullPath,...l}))}};function e1(n){return new t1(n)}function ya(n){return typeof n=="object"?new Yy(n,{silent:!0}).createRoute(n):new Yy(n,{silent:!0}).createRoute}var Yy=class{constructor(n,l){this.path=n,this.createRoute=i=>{const u=WS(i);return u.isRoot=!1,u},this.silent=l==null?void 0:l.silent}};function a1(n){const l=be(),i=`not-found-${ye(l.stores.location,u=>u.pathname)}-${ye(l.stores.status,u=>u)}`;return f.jsx(Vf,{getResetKey:()=>i,onCatch:(u,o)=>{var d;if(xe(u))(d=n.onCatch)==null||d.call(n,u,o);else throw u},errorComponent:({error:u})=>{var o;if(xe(u))return(o=n.fallback)==null?void 0:o.call(n,u);throw u},children:n.children})}function n1(){return f.jsx("p",{children:"Not Found"})}function ul(n){return f.jsx(f.Fragment,{children:n.children})}function Qg(n,l,i){return l.options.notFoundComponent?f.jsx(l.options.notFoundComponent,{...i}):n.options.defaultNotFoundComponent?f.jsx(n.options.defaultNotFoundComponent,{...i}):f.jsx(n1,{})}function s1(n){return null}function l1(){return s1(be()),null}var Yg=F.memo(function({matchId:l}){const i=be(),u=i.stores.activeMatchStoresById.get(l);u||Ya();const o=ye(i.stores.loadedAt,h=>h),d=ye(u,h=>h);return f.jsx(i1,{router:i,matchId:l,resetKey:o,matchState:F.useMemo(()=>{var p;const h=d.routeId,y=(p=i.routesById[h].parentRoute)==null?void 0:p.id;return{routeId:h,ssr:d.ssr,_displayPending:d._displayPending,parentRouteId:y}},[d._displayPending,d.routeId,d.ssr,i.routesById])})});function i1({router:n,matchId:l,resetKey:i,matchState:u}){var N,M;const o=n.routesById[u.routeId],d=o.options.pendingComponent??n.options.defaultPendingComponent,h=d?f.jsx(d,{}):null,y=o.options.errorComponent??n.options.defaultErrorComponent,p=o.options.onCatch??n.options.defaultOnCatch,g=o.isRoot?o.options.notFoundComponent??((N=n.options.notFoundRoute)==null?void 0:N.options.component):o.options.notFoundComponent,b=u.ssr===!1||u.ssr==="data-only",v=(!o.isRoot||o.options.wrapInSuspense||b)&&(o.options.wrapInSuspense??d??(((M=o.options.errorComponent)==null?void 0:M.preload)||b))?F.Suspense:ul,S=y?Vf:ul,j=g?a1:ul;return f.jsxs(o.isRoot?o.options.shellComponent??ul:ul,{children:[f.jsx(Au.Provider,{value:l,children:f.jsx(v,{fallback:h,children:f.jsx(S,{getResetKey:()=>i,errorComponent:y||Xf,onCatch:(C,U)=>{if(xe(C))throw C;p==null||p(C,U)},children:f.jsx(j,{fallback:C=>{if(!g||C.routeId&&C.routeId!==u.routeId||!C.routeId&&!o.isRoot)throw C;return F.createElement(g,C)},children:b||u._displayPending?f.jsx(ES,{fallback:h,children:f.jsx(Gy,{matchId:l})}):f.jsx(Gy,{matchId:l})})})})}),u.parentRouteId===hs?f.jsxs(f.Fragment,{children:[f.jsx(r1,{resetKey:i}),n.options.scrollRestoration&&vg?f.jsx(l1,{}):null]}):null]})}function r1({resetKey:n}){const l=be(),i=F.useRef(void 0);return Ci(()=>{const u=l.latestLocation.href;(i.current===void 0||i.current!==u)&&(l.emit({type:"onRendered",...cl(l.stores.location.state,l.stores.resolvedLocation.state)}),i.current=u)},[l.latestLocation.state.__TSR_key,n,l]),null}var Gy=F.memo(function({matchId:l}){var g,b,v,S;const i=be(),u=i.stores.activeMatchStoresById.get(l);u||Ya();const o=ye(u,j=>j),d=o.routeId,h=i.routesById[d],y=F.useMemo(()=>{var N;const j=(N=i.routesById[d].options.remountDeps??i.options.defaultRemountDeps)==null?void 0:N({routeId:d,loaderDeps:o.loaderDeps,params:o._strictParams,search:o._strictSearch});return j?JSON.stringify(j):void 0},[d,o.loaderDeps,o._strictParams,o._strictSearch,i.options.defaultRemountDeps,i.routesById]),p=F.useMemo(()=>{const j=h.options.component??i.options.defaultComponent;return j?f.jsx(j,{},y):f.jsx(Gg,{})},[y,h.options.component,i.options.defaultComponent]);if(o._displayPending)throw(g=i.getMatch(o.id))==null?void 0:g._nonReactive.displayPendingPromise;if(o._forcePending)throw(b=i.getMatch(o.id))==null?void 0:b._nonReactive.minPendingPromise;if(o.status==="pending"){const j=h.options.pendingMinMs??i.options.defaultPendingMinMs;if(j){const N=i.getMatch(o.id);if(N&&!N._nonReactive.minPendingPromise){const M=Nl();N._nonReactive.minPendingPromise=M,setTimeout(()=>{M.resolve(),N._nonReactive.minPendingPromise=void 0},j)}}throw(v=i.getMatch(o.id))==null?void 0:v._nonReactive.loadPromise}if(o.status==="notFound")return xe(o.error)||Ya(),Qg(i,h,o.error);if(o.status==="redirected")throw Ae(o.error)||Ya(),(S=i.getMatch(o.id))==null?void 0:S._nonReactive.loadPromise;if(o.status==="error")throw o.error;return p}),Gg=F.memo(function(){const l=be(),i=F.useContext(Au);let u,o=!1,d;{const g=i?l.stores.activeMatchStoresById.get(i):void 0;[u,o]=ye(g,b=>[b==null?void 0:b.routeId,(b==null?void 0:b.globalNotFound)??!1]),d=ye(l.stores.matchesId,b=>b[b.findIndex(v=>v===i)+1])}const h=u?l.routesById[u]:void 0,y=l.options.defaultPendingComponent?f.jsx(l.options.defaultPendingComponent,{}):null;if(o)return h||Ya(),Qg(l,h,void 0);if(!d)return null;const p=f.jsx(Yg,{matchId:d});return u===hs?f.jsx(F.Suspense,{fallback:y,children:p}):p});function u1(){const n=be(),l=F.useRef({router:n,mounted:!1}),[i,u]=F.useState(!1),o=ye(n.stores.isLoading,v=>v),d=ye(n.stores.hasPendingMatches,v=>v),h=Wo(o),y=o||i||d,p=Wo(y),g=o||d,b=Wo(g);return n.startTransition=v=>{u(!0),F.startTransition(()=>{v(),u(!1)})},F.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 zn(n.latestLocation.publicHref)!==zn(S.publicHref)&&n.commitLocation({...S,replace:!0}),()=>{v()}},[n,n.history]),Ci(()=>{if(typeof window<"u"&&n.ssr||l.current.router===n&&l.current.mounted)return;l.current={router:n,mounted:!0},(async()=>{try{await n.load()}catch(S){console.error(S)}})()},[n]),Ci(()=>{h&&!o&&n.emit({type:"onLoad",...cl(n.stores.location.state,n.stores.resolvedLocation.state)})},[h,n,o]),Ci(()=>{b&&!g&&n.emit({type:"onBeforeRouteMount",...cl(n.stores.location.state,n.stores.resolvedLocation.state)})},[g,b,n]),Ci(()=>{if(p&&!y){const v=cl(n.stores.location.state,n.stores.resolvedLocation.state);n.emit({type:"onResolved",...v}),zg(()=>{n.stores.status.setState(()=>"idle"),n.stores.resolvedLocation.setState(()=>n.stores.location.state)}),v.hrefChanged&&RS(n)}},[y,p,n]),null}function c1(){const n=be(),l=n.routesById[hs].options.pendingComponent??n.options.defaultPendingComponent,i=l?f.jsx(l,{}):null,u=f.jsxs(typeof document<"u"&&n.ssr?ul:F.Suspense,{fallback:i,children:[f.jsx(u1,{}),f.jsx(o1,{})]});return n.options.InnerWrap?f.jsx(n.options.InnerWrap,{children:u}):u}function o1(){const n=be(),l=ye(n.stores.firstMatchId,o=>o),i=ye(n.stores.loadedAt,o=>o),u=l?f.jsx(Yg,{matchId:l}):null;return f.jsx(Au.Provider,{value:l,children:n.options.disableGlobalCatchBoundary?u:f.jsx(Vf,{getResetKey:()=>i,errorComponent:Xf,onCatch:void 0,children:u})})}function Vg(){const n=be();return ye(n.stores.matchRouteReactivity,l=>l),F.useCallback(l=>{const{pending:i,caseSensitive:u,fuzzy:o,includeSearch:d,...h}=l;return n.matchRoute(h,{pending:i,caseSensitive:u,fuzzy:o,includeSearch:d})},[n])}function f1(n){const l=be(),i=F.useRef(void 0);return ye(l.stores.activeMatchesSnapshot,u=>{const o=u;if(l.options.defaultStructuralSharing){const d=Cn(i.current,o);return i.current=d,d}return o})}var d1=n=>({createMutableStore:Ly,createReadonlyStore:Ly,batch:zg}),h1=n=>new m1(n),m1=class extends yS{constructor(n){super(n,d1)}};function y1({router:n,children:l,...i}){Object.keys(i).length>0&&n.update({...n.options,...i,context:{...n.options.context,...i.context}});const u=f.jsx(Ag.Provider,{value:n,children:l});return n.options.Wrap?f.jsx(n.options.Wrap,{children:u}):u}function g1({router:n,...l}){return f.jsx(y1,{router:n,...l,children:f.jsx(c1,{})})}function Xg(n){const i=be();return F.useRef(void 0),ye(i.stores.__store,u=>u)}function p1(n){const l=[];for(let i=1;i<n.length;i++){const u=n[i],o=u.routeId??u.id,d=u.params;o==="/"||o==="/_layout"||(o.includes("/runs/$runId/category/$category")?(l.some(h=>h.label===d.runId)||l.push({label:d.runId??"Run",to:`/runs/${encodeURIComponent(d.runId)}`}),l.push({label:d.category??"Category",to:u.pathname})):o.includes("/runs/$runId/dataset/$dataset")?l.push({label:d.dataset??"Dataset",to:u.pathname}):o.includes("/runs/$runId")?l.push({label:d.runId??"Run",to:u.pathname}):o.includes("/evals/$runId/$evalId")?(l.some(h=>h.label===d.runId)||l.push({label:d.runId??"Run",to:`/runs/${encodeURIComponent(d.runId)}`}),l.push({label:d.evalId??"Eval",to:u.pathname})):o.includes("/experiments/$experimentName")?l.push({label:d.experimentName??"Experiment",to:u.pathname}):(o==="/index"||o==="/")&&l.push({label:"Home",to:"/"}))}return l}function v1(){const n=f1(),l=p1(n);return l.length===0?null:f.jsxs("div",{className:"flex items-center gap-2 border-b border-gray-800 bg-gray-950 px-6 py-2 text-sm",children:[f.jsx(Mt,{to:"/",className:"text-cyan-400 hover:text-cyan-300 hover:underline",children:"Home"}),l.map((i,u)=>{const o=u===l.length-1;return f.jsxs("span",{className:"flex items-center gap-2",children:[f.jsx("span",{className:"text-gray-600",children:">"}),o?f.jsx("span",{className:"text-gray-400",children:i.label}):f.jsx(Mt,{to:i.to??"/",className:"text-cyan-400 hover:text-cyan-300 hover:underline",children:i.label})]},`${i.label}-${u}`)})]})}async function fe(n){const l=await fetch(n);if(!l.ok)throw new Error(`API error: ${l.status} ${l.statusText}`);return l.json()}const x1={queryKey:["runs"],queryFn:()=>fe("/api/runs"),refetchInterval:5e3};function b1(n){return{queryKey:["runs",n],queryFn:()=>fe(`/api/runs/${encodeURIComponent(n)}`),enabled:!!n}}const S1={queryKey:["feedback"],queryFn:()=>fe("/api/feedback")},j1={queryKey:["experiments"],queryFn:()=>fe("/api/experiments")},N1={queryKey:["targets"],queryFn:()=>fe("/api/targets")};function R1(n,l){return{queryKey:["runs",n,"evals",l,"files"],queryFn:()=>fe(`/api/runs/${encodeURIComponent(n)}/evals/${encodeURIComponent(l)}/files`),enabled:!!n&&!!l}}function _1(n,l,i){return{queryKey:["runs",n,"evals",l,"files",i],queryFn:()=>fe(`/api/runs/${encodeURIComponent(n)}/evals/${encodeURIComponent(l)}/files/${i}`),enabled:!!n&&!!l&&!!i}}function E1(n,l){return{queryKey:["runs",n,"categories",l,"datasets"],queryFn:()=>fe(`/api/runs/${encodeURIComponent(n)}/categories/${encodeURIComponent(l)}/datasets`),enabled:!!n&&!!l}}const T1={queryKey:["config"],queryFn:()=>fe("/api/config"),staleTime:5e3};function Zf(){return oe(x1)}function Xi(n){return oe(b1(n))}function M1(){return oe(S1)}function Pf(){return oe(j1)}function C1(){return oe(N1)}function A1(n,l){return oe(R1(n,l))}function O1(n,l,i){return oe(_1(n,l,i))}function Kg(n,l){return oe(E1(n,l))}function ps(){return oe(T1)}const zf=.8;function wn(n,l=zf){return n>=l}const z1={queryKey:["projects"],queryFn:()=>fe("/api/projects"),refetchInterval:1e4};function $f(){return oe(z1)}const D1={queryKey:["projects","all-runs"],queryFn:()=>fe("/api/projects/all-runs"),refetchInterval:5e3};function w1(){return oe(D1)}async function U1(n){const l=await fetch("/api/projects",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:n})});if(!l.ok){const i=await l.json();throw new Error(i.error||`Failed to add project: ${l.status}`)}return l.json()}async function L1(n){const l=await fetch("/api/projects/discover",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:n})});if(!l.ok){const u=await l.json();throw new Error(u.error||`Failed to discover: ${l.status}`)}return(await l.json()).discovered}function _l(n){return`/api/projects/${encodeURIComponent(n)}`}function B1(n){return{queryKey:["projects",n,"runs"],queryFn:()=>fe(`${_l(n)}/runs`),enabled:!!n,refetchInterval:5e3}}function Zg(n){return oe(B1(n))}function H1(n,l){return{queryKey:["projects",n,"runs",l],queryFn:()=>fe(`${_l(n)}/runs/${encodeURIComponent(l)}`),enabled:!!n&&!!l}}function Jf(n,l){return oe(H1(n,l))}function q1(n,l,i){return{queryKey:["projects",n,"runs",l,"evals",i,"files"],queryFn:()=>fe(`${_l(n)}/runs/${encodeURIComponent(l)}/evals/${encodeURIComponent(i)}/files`),enabled:!!n&&!!l&&!!i}}function Q1(n,l,i,u){return{queryKey:["projects",n,"runs",l,"evals",i,"files",u],queryFn:()=>fe(`${_l(n)}/runs/${encodeURIComponent(l)}/evals/${encodeURIComponent(i)}/files/${u}`),enabled:!!n&&!!l&&!!i&&!!u}}function Y1(n){return{queryKey:["projects",n,"experiments"],queryFn:()=>fe(`${_l(n)}/experiments`),enabled:!!n}}function G1(n){return{queryKey:["projects",n,"targets"],queryFn:()=>fe(`${_l(n)}/targets`),enabled:!!n}}async function V1(n){const l=await fetch("/api/config",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(n)});if(!l.ok)throw new Error(`Failed to save config: ${l.status}`);return l.json()}function X1(){const n=Vg(),l=n({to:"/projects/$projectId/evals/$runId/$evalId",fuzzy:!0}),i=n({to:"/projects/$projectId/runs/$runId",fuzzy:!0}),u=n({to:"/projects/$projectId",fuzzy:!0});if(l&&typeof l=="object"&&"projectId"in l){const{projectId:p,runId:g,evalId:b}=l;return f.jsx(J1,{projectId:p,runId:g,currentEvalId:b})}if(i&&typeof i=="object"&&"projectId"in i){const{projectId:p,runId:g}=i;return f.jsx(Vy,{projectId:p,currentRunId:g})}if(u&&typeof u=="object"&&"projectId"in u){const{projectId:p}=u;return f.jsx(Vy,{projectId:p})}const o=n({to:"/evals/$runId/$evalId",fuzzy:!0}),d=n({to:"/runs/$runId/category/$category",fuzzy:!0}),h=n({to:"/runs/$runId/dataset/$dataset",fuzzy:!0}),y=n({to:"/experiments/$experimentName",fuzzy:!0});if(d&&typeof d=="object"&&"runId"in d){const{runId:p,category:g}=d;return f.jsx($1,{runId:p,category:g})}if(h&&typeof h=="object"&&"runId"in h){const{runId:p,dataset:g}=h;return f.jsx(P1,{runId:p,dataset:g})}if(o&&typeof o=="object"&&"runId"in o){const{runId:p,evalId:g}=o;return f.jsx(Z1,{runId:p,currentEvalId:g})}if(y&&typeof y=="object"&&"experimentName"in y){const{experimentName:p}=y;return f.jsx(I1,{currentExperiment:p})}return f.jsx(K1,{})}function K1(){const n=Vg(),{data:l}=$f(),i=((l==null?void 0:l.projects.length)??0)>0,u=n({to:"/"}),o=n({to:"/runs/$runId",fuzzy:!0}),d=i&&u!==!1,{data:h}=Zf(),{data:y}=w1(),p=d?y:h;return f.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[f.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:f.jsx(Mt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),f.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[f.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Runs"}),p==null?void 0:p.runs.map(g=>{const b=u===!1&&o&&typeof o=="object"&&"runId"in o&&o.runId===g.filename;return g.project_id?f.jsx(Mt,{to:"/projects/$projectId/runs/$runId",params:{projectId:g.project_id,runId:g.filename},className:"mb-0.5 block truncate rounded-md px-2 py-1.5 text-sm text-gray-400 transition-colors hover:bg-gray-800/50 hover:text-gray-200",title:g.project_name,children:g.filename},`${g.project_id}/${g.filename}`):f.jsx(Mt,{to:"/runs/$runId",params:{runId:g.filename},className:`mb-0.5 block truncate rounded-md px-2 py-1.5 text-sm transition-colors ${b?"bg-gray-800 text-cyan-400":"text-gray-400 hover:bg-gray-800/50 hover:text-gray-200"}`,children:g.filename},g.filename)})]}),f.jsx("div",{className:"border-t border-gray-800 px-4 py-3",children:f.jsx(Mt,{to:"/settings",className:"flex items-center gap-2 text-sm text-gray-400 hover:text-cyan-400",children:"Settings"})})]})}function Z1({runId:n,currentEvalId:l}){const{data:i}=Xi(n),{data:u}=ps(),o=(u==null?void 0:u.pass_threshold)??.8;return f.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[f.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:f.jsx(Mt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),f.jsxs("div",{className:"border-b border-gray-800 px-4 py-2",children:[f.jsx(Mt,{to:"/runs/$runId",params:{runId:n},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← Back to run"}),f.jsx("p",{className:"mt-1 truncate text-sm font-medium text-gray-300",children:n})]}),f.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[f.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(d=>{const h=d.testId===l,y=wn(d.score,o);return f.jsxs(Mt,{to:"/evals/$runId/$evalId",params:{runId:n,evalId:d.testId},className:`mb-0.5 flex items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors ${h?"bg-gray-800 text-cyan-400":"text-gray-400 hover:bg-gray-800/50 hover:text-gray-200"}`,children:[f.jsx("span",{className:`text-xs ${y?"text-emerald-400":"text-red-400"}`,children:y?"✓":"✗"}),f.jsx("span",{className:"truncate",children:d.testId})]},d.testId)})]})]})}function P1({runId:n,dataset:l}){const{data:i}=Xi(n),{data:u}=ps(),o=(u==null?void 0:u.pass_threshold)??.8,d=((i==null?void 0:i.results)??[]).filter(h=>(h.dataset??"Uncategorized")===l);return f.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[f.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:f.jsx(Mt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),f.jsxs("div",{className:"border-b border-gray-800 px-4 py-2",children:[f.jsx(Mt,{to:"/runs/$runId",params:{runId:n},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← Back to run"}),f.jsx("p",{className:"mt-1 truncate text-sm font-medium text-gray-300",children:n}),f.jsx("p",{className:"truncate text-xs text-gray-500",children:l})]}),f.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[f.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Evaluations"}),d.map(h=>{const y=wn(h.score,o);return f.jsxs(Mt,{to:"/evals/$runId/$evalId",params:{runId:n,evalId:h.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:[f.jsx("span",{className:`text-xs ${y?"text-emerald-400":"text-red-400"}`,children:y?"✓":"✗"}),f.jsx("span",{className:"truncate",children:h.testId})]},h.testId)})]})]})}function $1({runId:n,category:l}){const{data:i}=Kg(n,l),u=(i==null?void 0:i.datasets)??[];return f.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[f.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:f.jsx(Mt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),f.jsxs("div",{className:"border-b border-gray-800 px-4 py-2",children:[f.jsx(Mt,{to:"/runs/$runId",params:{runId:n},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← Back to run"}),f.jsx("p",{className:"mt-1 truncate text-sm font-medium text-gray-300",children:n}),f.jsx("p",{className:"truncate text-xs text-gray-500",children:l})]}),f.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[f.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Datasets"}),u.map(o=>f.jsxs(Mt,{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:[f.jsx("span",{className:`text-xs ${o.passed===o.total?"text-emerald-400":"text-red-400"}`,children:o.passed===o.total?"✓":"✗"}),f.jsx("span",{className:"truncate",children:o.name})]},o.name))]})]})}function Vy({projectId:n,currentRunId:l}){const{data:i}=Zg(n);return f.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[f.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:f.jsx(Mt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),f.jsxs("div",{className:"border-b border-gray-800 px-4 py-2",children:[f.jsx(Mt,{to:"/",className:"text-xs text-gray-400 hover:text-cyan-400",children:"← All Projects"}),f.jsx("p",{className:"mt-1 truncate text-sm font-medium text-gray-300",children:n})]}),f.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[f.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Runs"}),i==null?void 0:i.runs.map(u=>{const o=l===u.filename;return f.jsx(Mt,{to:"/projects/$projectId/runs/$runId",params:{projectId:n,runId:u.filename},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:u.filename},u.filename)})]})]})}function J1({projectId:n,runId:l,currentEvalId:i}){const{data:u}=Jf(n,l),{data:o}=ps(),d=(o==null?void 0:o.pass_threshold)??.8;return f.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[f.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:f.jsx(Mt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),f.jsxs("div",{className:"border-b border-gray-800 px-4 py-2",children:[f.jsx(Mt,{to:"/projects/$projectId/runs/$runId",params:{projectId:n,runId:l},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← Back to run"}),f.jsx("p",{className:"mt-1 truncate text-sm font-medium text-gray-300",children:l})]}),f.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[f.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Evaluations"}),u==null?void 0:u.results.map(h=>{const y=h.testId===i,p=wn(h.score,d);return f.jsxs(Mt,{to:"/projects/$projectId/evals/$runId/$evalId",params:{projectId:n,runId:l,evalId:h.testId},className:`mb-0.5 flex items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors ${y?"bg-gray-800 text-cyan-400":"text-gray-400 hover:bg-gray-800/50 hover:text-gray-200"}`,children:[f.jsx("span",{className:`text-xs ${p?"text-emerald-400":"text-red-400"}`,children:p?"✓":"✗"}),f.jsx("span",{className:"truncate",children:h.testId})]},h.testId)})]})]})}function I1({currentExperiment:n}){const{data:l}=Pf(),i=(l==null?void 0:l.experiments)??[];return f.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[f.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:f.jsx(Mt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),f.jsx("div",{className:"border-b border-gray-800 px-4 py-2",children:f.jsx(Mt,{to:"/",search:{tab:"experiments"},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← All experiments"})}),f.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[f.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Experiments"}),i.map(u=>{const o=u.name===n;return f.jsx(Mt,{to:"/experiments/$experimentName",params:{experimentName:u.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:u.name},u.name)})]})]})}function F1(){return f.jsxs("div",{className:"flex h-screen overflow-hidden",children:[f.jsx(X1,{}),f.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[f.jsx(v1,{}),f.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:f.jsx(Gg,{})})]})]})}const sa=e1({component:F1}),k1=ya("/settings")({component:W1});function W1(){const{data:n,isLoading:l}=ps(),i=Vi(),[u,o]=F.useState(""),[d,h]=F.useState(!1),[y,p]=F.useState(null),g=(n==null?void 0:n.pass_threshold)??zf,b=u||String(g),v=async()=>{const S=Number.parseFloat(u||String(g));if(Number.isNaN(S)||S<0||S>1){p({type:"error",text:"Threshold must be a number between 0 and 1"});return}h(!0),p(null);try{await V1({pass_threshold:S}),await i.invalidateQueries({queryKey:["config"]}),o(""),p({type:"success",text:"Settings saved"}),setTimeout(()=>p(null),3e3)}catch{p({type:"error",text:"Failed to save settings"})}finally{h(!1)}};return l?f.jsxs("div",{className:"mx-auto max-w-2xl space-y-6",children:[f.jsx("div",{className:"h-8 w-48 animate-pulse rounded bg-gray-800"}),f.jsx("div",{className:"h-40 animate-pulse rounded-lg bg-gray-900"})]}):f.jsxs("div",{className:"mx-auto max-w-2xl space-y-6",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Settings"}),f.jsx("p",{className:"mt-1 text-sm text-gray-400",children:"Configure your AgentV Studio dashboard"})]}),f.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6",children:[f.jsx("h2",{className:"text-lg font-medium text-white",children:"Evaluation"}),f.jsx("p",{className:"mt-1 text-sm text-gray-400",children:"Configure how evaluation results are classified"}),f.jsx("div",{className:"mt-6 space-y-4",children:f.jsxs("div",{children:[f.jsx("label",{htmlFor:"pass-threshold",className:"block text-sm font-medium text-gray-300",children:"Pass Threshold"}),f.jsxs("p",{className:"mt-1 text-xs text-gray-500",children:["Score at or above this value is considered passing. Default: ",zf]}),f.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[f.jsx("input",{id:"pass-threshold",type:"number",min:"0",max:"1",step:"0.05",value:b,onChange:S=>o(S.target.value),className:"w-32 rounded-md border border-gray-700 bg-gray-800 px-3 py-2 text-sm text-white placeholder-gray-500 focus:border-cyan-500 focus:outline-none focus:ring-1 focus:ring-cyan-500"}),f.jsxs("span",{className:"text-sm text-gray-400",children:["(",Math.round((Number.parseFloat(b)||0)*100),"%)"]})]})]})}),f.jsxs("div",{className:"mt-6 flex items-center gap-3",children:[f.jsx("button",{type:"button",onClick:v,disabled:d,className:"rounded-md bg-cyan-600 px-4 py-2 text-sm font-medium text-white transition-colors hover:bg-cyan-500 disabled:opacity-50",children:d?"Saving...":"Save Settings"}),y&&f.jsx("span",{className:`text-sm ${y.type==="success"?"text-emerald-400":"text-red-400"}`,children:y.text})]})]}),f.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900/50 p-4",children:f.jsxs("p",{className:"text-xs text-gray-500",children:["Settings are stored in ",f.jsx("code",{className:"text-gray-400",children:".agentv/config.yaml"})]})})]})}function Va({score:n,className:l=""}){const i=Math.round(Math.max(0,Math.min(1,n))*100);return f.jsxs("div",{className:`flex items-center gap-3 ${l}`,children:[f.jsx("div",{className:"h-2 flex-1 overflow-hidden rounded-full bg-gray-800",children:f.jsx("div",{className:"h-full rounded-full bg-gradient-to-r from-cyan-400 to-blue-500 transition-all duration-300",style:{width:`${i}%`}})}),f.jsxs("span",{className:"w-12 text-right text-sm font-medium tabular-nums text-gray-300",children:[i,"%"]})]})}function tj(){const{data:n,isLoading:l}=Pf();if(l)return f.jsx(aj,{});const i=(n==null?void 0:n.experiments)??[];return i.length===0?f.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[f.jsx("p",{className:"text-lg text-gray-400",children:"No experiments found"}),f.jsx("p",{className:"mt-2 text-sm text-gray-500",children:"Experiments will appear here once evaluations are run with experiment labels."})]}):f.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:f.jsxs("table",{className:"w-full text-left text-sm",children:[f.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Experiment"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Runs"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Targets"}),f.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Pass Rate"}),f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Last Run"})]})}),f.jsx("tbody",{className:"divide-y divide-gray-800/50",children:i.map(u=>f.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[f.jsx("td",{className:"px-4 py-3",children:f.jsx(Mt,{to:"/experiments/$experimentName",params:{experimentName:u.name},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:u.name})}),f.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:u.run_count}),f.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:u.target_count}),f.jsx("td",{className:"px-4 py-3",children:f.jsx(Va,{score:u.pass_rate})}),f.jsx("td",{className:"px-4 py-3 text-gray-400",children:ej(u.last_run)})]},u.name))})]})})}function ej(n){if(!n)return"N/A";try{const l=new Date(n);return Number.isNaN(l.getTime())?"N/A":l.toLocaleString()}catch{return"N/A"}}function aj(){return f.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:f.jsxs("div",{className:"animate-pulse",children:[f.jsx("div",{className:"border-b border-gray-800 bg-gray-900/50 px-4 py-3",children:f.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"})}),["sk-1","sk-2","sk-3","sk-4","sk-5"].map(n=>f.jsxs("div",{className:"flex gap-4 border-b border-gray-800/50 px-4 py-3",children:[f.jsx("div",{className:"h-4 w-32 rounded bg-gray-800"}),f.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),f.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),f.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"}),f.jsx("div",{className:"h-4 w-24 rounded bg-gray-800"})]},n))]})})}function nj(n){if(!n)return"No runs";const l=new Date(n);if(Number.isNaN(l.getTime()))return"N/A";const i=Date.now()-l.getTime(),u=Math.floor(i/6e4);if(u<1)return"Just now";if(u<60)return`${u}m ago`;const o=Math.floor(u/60);return o<24?`${o}h ago`:`${Math.floor(o/24)}d ago`}function sj({project:n}){const l=Math.round(n.pass_rate*100);return f.jsxs(Mt,{to:"/projects/$projectId",params:{projectId:n.id},className:"group block rounded-lg border border-gray-800 bg-gray-900/50 p-5 transition-colors hover:border-cyan-800 hover:bg-gray-900",children:[f.jsx("div",{className:"flex items-start justify-between",children:f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("h3",{className:"truncate text-lg font-semibold text-white group-hover:text-cyan-400",children:n.name}),f.jsx("p",{className:"mt-1 truncate text-xs text-gray-500",children:n.path})]})}),f.jsxs("div",{className:"mt-4 grid grid-cols-3 gap-3",children:[f.jsxs("div",{children:[f.jsx("p",{className:"text-xs text-gray-500",children:"Runs"}),f.jsx("p",{className:"text-lg font-semibold text-white",children:n.run_count})]}),f.jsxs("div",{children:[f.jsx("p",{className:"text-xs text-gray-500",children:"Pass Rate"}),f.jsx("p",{className:`text-lg font-semibold ${n.run_count===0?"text-gray-500":l>=80?"text-emerald-400":l>=50?"text-yellow-400":"text-red-400"}`,children:n.run_count>0?`${l}%`:"--"})]}),f.jsxs("div",{children:[f.jsx("p",{className:"text-xs text-gray-500",children:"Last Run"}),f.jsx("p",{className:"text-sm text-gray-300",children:nj(n.last_run)})]})]})]})}function lj(n){if(!n)return"N/A";try{const l=new Date(n);return Number.isNaN(l.getTime())?"N/A":l.toLocaleString()}catch{return"N/A"}}function If({runs:n,projectId:l}){return n.length===0?f.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[f.jsx("p",{className:"text-lg text-gray-400",children:"No evaluation runs found."}),f.jsxs("p",{className:"mt-2 text-sm text-gray-500",children:["Run an evaluation first:"," ",f.jsx("code",{className:"rounded bg-gray-800 px-2 py-1 text-cyan-400",children:"agentv eval <eval-file>"})]})]}):f.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:f.jsxs("table",{className:"w-full text-left text-sm",children:[f.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Run"}),f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Experiment"}),f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Timestamp"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Tests"}),f.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"}),f.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"})]})}),f.jsx("tbody",{className:"divide-y divide-gray-800/50",children:n.map(i=>f.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[f.jsx("td",{className:"px-4 py-3",children:l?f.jsx(Mt,{to:"/projects/$projectId/runs/$runId",params:{projectId:l,runId:i.filename},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:i.filename}):f.jsx(Mt,{to:"/runs/$runId",params:{runId:i.filename},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:i.filename})}),f.jsx("td",{className:"px-4 py-3 text-gray-400",children:i.target??"-"}),f.jsx("td",{className:"px-4 py-3 text-gray-400",children:i.experiment??"-"}),f.jsx("td",{className:"px-4 py-3 text-gray-400",children:lj(i.timestamp)}),f.jsx("td",{className:"px-4 py-3 text-right tabular-nums",children:i.test_count}),f.jsx("td",{className:"px-4 py-3",children:f.jsx(Va,{score:i.pass_rate})}),f.jsxs("td",{className:"px-4 py-3 text-right tabular-nums",children:[(i.avg_score*100).toFixed(1),"%"]})]},i.filename))})]})})}function ij(){const{data:n,isLoading:l}=C1();if(l)return f.jsx(rj,{});const i=(n==null?void 0:n.targets)??[];return i.length===0?f.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[f.jsx("p",{className:"text-lg text-gray-400",children:"No targets found"}),f.jsx("p",{className:"mt-2 text-sm text-gray-500",children:"Targets will appear here once evaluations are run with target labels."})]}):f.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:f.jsxs("table",{className:"w-full text-left text-sm",children:[f.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Runs"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Experiments"}),f.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Pass Rate"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Evals"})]})}),f.jsx("tbody",{className:"divide-y divide-gray-800/50",children:i.map(u=>f.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[f.jsx("td",{className:"px-4 py-3 font-medium text-gray-200",children:u.name}),f.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:u.run_count}),f.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:u.experiment_count}),f.jsx("td",{className:"px-4 py-3",children:f.jsx(Va,{score:u.pass_rate})}),f.jsxs("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:[f.jsx("span",{className:"text-emerald-400",children:u.passed_count}),f.jsx("span",{className:"text-gray-600",children:"/"}),f.jsx("span",{children:u.eval_count})]})]},u.name))})]})})}function rj(){return f.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:f.jsxs("div",{className:"animate-pulse",children:[f.jsx("div",{className:"border-b border-gray-800 bg-gray-900/50 px-4 py-3",children:f.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"})}),["sk-1","sk-2","sk-3","sk-4","sk-5"].map(n=>f.jsxs("div",{className:"flex gap-4 border-b border-gray-800/50 px-4 py-3",children:[f.jsx("div",{className:"h-4 w-32 rounded bg-gray-800"}),f.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),f.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),f.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"}),f.jsx("div",{className:"h-4 w-20 rounded bg-gray-800"})]},n))]})})}const Xy=[{id:"runs",label:"Recent Runs"},{id:"experiments",label:"Experiments"},{id:"targets",label:"Targets"}],uj=ya("/")({component:cj});function cj(){const{data:n,isLoading:l}=$f(),i=((n==null?void 0:n.projects.length)??0)>0;return l?f.jsx(Pg,{}):i?f.jsx(oj,{}):f.jsx(fj,{})}function oj(){const{data:n}=$f(),l=Vi(),[i,u]=F.useState(""),[o,d]=F.useState(""),[h,y]=F.useState(null),[p,g]=F.useState(!1),b=(n==null?void 0:n.projects)??[];async function v(j){if(j.preventDefault(),!!i.trim()){y(null);try{await U1(i.trim()),u(""),g(!1),l.invalidateQueries({queryKey:["projects"]})}catch(N){y(N.message)}}}async function S(j){if(j.preventDefault(),!!o.trim()){y(null);try{const N=await L1(o.trim());d(""),N.length===0&&y("No projects with .agentv/ found in that directory."),l.invalidateQueries({queryKey:["projects"]})}catch(N){y(N.message)}}}return f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Projects"}),f.jsx("button",{type:"button",onClick:()=>g(!p),className:"rounded-md bg-cyan-600 px-3 py-1.5 text-sm font-medium text-white hover:bg-cyan-500",children:p?"Cancel":"Add Project"})]}),h&&f.jsx("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-3 text-sm text-red-400",children:h}),p&&f.jsxs("div",{className:"space-y-3 rounded-lg border border-gray-800 bg-gray-900/50 p-4",children:[f.jsxs("form",{onSubmit:v,className:"flex gap-2",children:[f.jsx("input",{type:"text",value:i,onChange:j=>u(j.target.value),placeholder:"Project path (e.g., /home/user/projects/my-app)",className:"flex-1 rounded-md border border-gray-700 bg-gray-800 px-3 py-1.5 text-sm text-white placeholder-gray-500 focus:border-cyan-600 focus:outline-none"}),f.jsx("button",{type:"submit",className:"rounded-md bg-cyan-600 px-3 py-1.5 text-sm font-medium text-white hover:bg-cyan-500",children:"Add"})]}),f.jsxs("form",{onSubmit:S,className:"flex gap-2",children:[f.jsx("input",{type:"text",value:o,onChange:j=>d(j.target.value),placeholder:"Discover projects in directory...",className:"flex-1 rounded-md border border-gray-700 bg-gray-800 px-3 py-1.5 text-sm text-white placeholder-gray-500 focus:border-cyan-600 focus:outline-none"}),f.jsx("button",{type:"submit",className:"rounded-md bg-gray-700 px-3 py-1.5 text-sm font-medium text-white hover:bg-gray-600",children:"Discover"})]})]}),f.jsx("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3",children:b.map(j=>f.jsx(sj,{project:j},j.id))})]})}function fj(){const i=Xg().location.search.tab,u=Ou(),{data:o,isLoading:d,error:h}=Zf(),y=Xy.some(p=>p.id===i)?i:"runs";return f.jsxs("div",{className:"space-y-6",children:[f.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Evaluation Runs"}),f.jsx("div",{className:"border-b border-gray-800",children:f.jsx("div",{className:"flex gap-1",children:Xy.map(p=>f.jsx("button",{type:"button",onClick:()=>u({to:"/",search:{tab:p.id}}),className:`px-4 py-2 text-sm font-medium transition-colors ${y===p.id?"border-b-2 border-cyan-400 text-cyan-400":"text-gray-400 hover:text-gray-300"}`,children:p.label},p.id))})}),y==="runs"&&f.jsx(dj,{data:o,isLoading:d,error:h}),y==="experiments"&&f.jsx(tj,{}),y==="targets"&&f.jsx(ij,{})]})}function dj({data:n,isLoading:l,error:i}){return l?f.jsx(Pg,{}):i?f.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]}):f.jsx(If,{runs:(n==null?void 0:n.runs)??[]})}function Pg(){return f.jsx("div",{className:"space-y-2",children:["s1","s2","s3","s4","s5"].map(n=>f.jsx("div",{className:"h-12 animate-pulse rounded-lg bg-gray-900"},n))})}function Ti({label:n,value:l,accent:i}){return f.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[f.jsx("p",{className:"text-sm text-gray-400",children:n}),f.jsx("p",{className:`mt-1 text-2xl font-semibold tabular-nums ${i??"text-white"}`,children:l})]})}function Tu({total:n,passed:l,failed:i,passRate:u,totalCost:o}){return f.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-5",children:[f.jsx(Ti,{label:"Total",value:String(n)}),f.jsx(Ti,{label:"Passed",value:String(l),accent:"text-emerald-400"}),f.jsx(Ti,{label:"Failed",value:String(i),accent:"text-red-400"}),f.jsx(Ti,{label:"Pass Rate",value:`${Math.round(u*100)}%`,accent:"text-cyan-400"}),o!==void 0&&f.jsx(Ti,{label:"Cost",value:`$${o.toFixed(4)}`,accent:"text-amber-400"})]})}function hj(n,l){const i=new Map;for(const u of n){const o=u.category??"Uncategorized",d=u.dataset??"Uncategorized";i.has(o)||i.set(o,new Map);const h=i.get(o),y=h.get(d)??{passed:0,failed:0,total:0,scoreSum:0};y.total+=1,y.scoreSum+=u.score,wn(u.score,l)?y.passed+=1:y.failed+=1,h.set(d,y)}return Array.from(i.entries()).map(([u,o])=>{const d=Array.from(o.entries()).map(([b,v])=>({name:b,...v,avgScore:v.total>0?v.scoreSum/v.total:0})).sort((b,v)=>b.name.localeCompare(v.name)),h=d.reduce((b,v)=>b+v.total,0),y=d.reduce((b,v)=>b+v.passed,0),p=d.reduce((b,v)=>b+v.failed,0),g=d.reduce((b,v)=>b+v.avgScore*v.total,0);return{name:u,datasets:d,total:h,passed:y,failed:p,avgScore:h>0?g/h:0}}).sort((u,o)=>u.name.localeCompare(o.name))}function $g({results:n,runId:l,projectId:i}){var S;const{data:u}=ps(),o=(u==null?void 0:u.pass_threshold)??.8,d=n.length,h=n.filter(j=>wn(j.score,o)).length,y=d-h,p=d>0?h/d:0,g=n.reduce((j,N)=>j+(N.costUsd??0),0),b=hj(n,o),v=b.length>1;return d===0?f.jsxs("div",{className:"space-y-6",children:[f.jsx(Tu,{total:0,passed:0,failed:0,passRate:0}),f.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[f.jsx("p",{className:"text-lg text-gray-400",children:"No evaluations found"}),f.jsx("p",{className:"mt-2 text-sm text-gray-500",children:"This run has no results yet."})]})]}):f.jsxs("div",{className:"space-y-6",children:[f.jsx(Tu,{total:d,passed:h,failed:y,passRate:p,totalCost:g>0?g:void 0}),v?f.jsxs("div",{className:"space-y-4",children:[f.jsx("h3",{className:"text-sm font-medium text-gray-400",children:"Categories"}),b.map(j=>f.jsx(mj,{category:j,runId:l},j.name))]}):f.jsxs("div",{className:"space-y-3",children:[f.jsx("h3",{className:"text-sm font-medium text-gray-400",children:"Datasets"}),f.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3",children:(S=b[0])==null?void 0:S.datasets.map(j=>f.jsx(Jg,{dataset:j,runId:l},j.name))})]}),f.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:f.jsxs("table",{className:"w-full text-left text-sm",children:[f.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Test ID"}),f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),f.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Score"}),f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Status"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Duration"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Cost"})]})}),f.jsx("tbody",{className:"divide-y divide-gray-800/50",children:n.map((j,N)=>f.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[f.jsx("td",{className:"px-4 py-3",children:i?f.jsx(Mt,{to:"/projects/$projectId/evals/$runId/$evalId",params:{projectId:i,runId:l,evalId:j.testId},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:j.testId}):f.jsx(Mt,{to:"/evals/$runId/$evalId",params:{runId:l,evalId:j.testId},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:j.testId})}),f.jsx("td",{className:"px-4 py-3 text-gray-400",children:j.target??"-"}),f.jsx("td",{className:"px-4 py-3",children:f.jsx(Va,{score:j.score})}),f.jsx("td",{className:"px-4 py-3",children:f.jsx(yj,{status:j.executionStatus})}),f.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:j.durationMs!=null?`${(j.durationMs/1e3).toFixed(1)}s`:"-"}),f.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:j.costUsd!=null?`$${j.costUsd.toFixed(4)}`:"-"})]},`${j.testId}-${N}`))})]})})]})}function mj({category:n,runId:l}){const[i,u]=F.useState(!0);return f.jsxs("div",{className:"rounded-lg border border-gray-800",children:[f.jsxs("button",{type:"button",onClick:()=>u(!i),className:"flex w-full items-center justify-between px-4 py-3 text-left transition-colors hover:bg-gray-900/50",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("span",{className:"text-xs text-gray-500",children:i?"▼":"▶"}),f.jsx("span",{className:"text-sm font-medium text-gray-200",children:n.name}),f.jsxs("span",{className:"text-xs text-gray-500",children:[n.datasets.length," dataset",n.datasets.length!==1?"s":""]})]}),f.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[f.jsxs("span",{className:"text-emerald-400",children:[n.passed," passed"]}),n.failed>0&&f.jsxs("span",{className:"text-red-400",children:[n.failed," failed"]}),f.jsxs("span",{className:"text-gray-500",children:[n.passed,"/",n.total]})]})]}),i&&f.jsx("div",{className:"border-t border-gray-800 p-3",children:f.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3",children:n.datasets.map(o=>f.jsx(Jg,{dataset:o,runId:l},o.name))})})]})}function Jg({dataset:n,runId:l}){return f.jsxs(Mt,{to:"/runs/$runId/dataset/$dataset",params:{runId:l,dataset:n.name},className:"rounded-lg border border-gray-800 bg-gray-900 p-3 text-left transition-colors hover:border-gray-700",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-sm font-medium text-gray-200 truncate",children:n.name}),f.jsxs("span",{className:"ml-2 text-xs text-gray-500",children:[n.passed,"/",n.total]})]}),f.jsx("div",{className:"mt-2",children:f.jsx(Va,{score:n.avgScore})}),f.jsxs("div",{className:"mt-1 flex gap-3 text-xs",children:[f.jsxs("span",{className:"text-emerald-400",children:[n.passed," passed"]}),n.failed>0&&f.jsxs("span",{className:"text-red-400",children:[n.failed," failed"]})]})]})}function yj({status:n}){if(!n)return f.jsx("span",{className:"text-gray-500",children:"-"});const l=n==="success"||n==="completed",i=n==="error"||n==="failed";return f.jsx("span",{className:`inline-flex rounded-full px-2 py-0.5 text-xs font-medium ${l?"bg-emerald-900/50 text-emerald-400":i?"bg-red-900/50 text-red-400":"bg-gray-800 text-gray-400"}`,children:n})}const Ig=ya("/runs/$runId")({component:gj});function gj(){const{runId:n}=Ig.useParams(),{data:l,isLoading:i,error:u}=Xi(n);return i?f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),f.jsx("div",{className:"grid grid-cols-5 gap-4",children:["s1","s2","s3","s4","s5"].map(o=>f.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},o))})]}):u?f.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load run: ",u.message]}):f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{children:[f.jsxs("h1",{className:"text-2xl font-semibold text-white",children:["Run: ",n]}),f.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:["Source: ",l==null?void 0:l.source]})]}),f.jsx($g,{results:(l==null?void 0:l.results)??[],runId:n})]})}const Ky=[{id:"runs",label:"Recent Runs"},{id:"experiments",label:"Experiments"},{id:"targets",label:"Targets"}],Fg=ya("/projects/$projectId")({component:pj});function pj(){const{projectId:n}=Fg.useParams(),u=Xg().location.search.tab,o=Ou(),d=Ky.some(h=>h.id===u)?u:"runs";return f.jsxs("div",{className:"space-y-6",children:[f.jsx("h1",{className:"text-2xl font-semibold text-white",children:n}),f.jsx("div",{className:"border-b border-gray-800",children:f.jsx("div",{className:"flex gap-1",children:Ky.map(h=>f.jsx("button",{type:"button",onClick:()=>o({to:"/projects/$projectId",params:{projectId:n},search:{tab:h.id}}),className:`px-4 py-2 text-sm font-medium transition-colors ${d===h.id?"border-b-2 border-cyan-400 text-cyan-400":"text-gray-400 hover:text-gray-300"}`,children:h.label},h.id))})}),d==="runs"&&f.jsx(vj,{projectId:n}),d==="experiments"&&f.jsx(xj,{projectId:n}),d==="targets"&&f.jsx(bj,{projectId:n})]})}function vj({projectId:n}){const{data:l,isLoading:i,error:u}=Zg(n);return i?f.jsx("div",{className:"space-y-2",children:["s1","s2","s3"].map(o=>f.jsx("div",{className:"h-12 animate-pulse rounded-lg bg-gray-900"},o))}):u?f.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load runs: ",u.message]}):f.jsx(If,{runs:(l==null?void 0:l.runs)??[],projectId:n})}function xj({projectId:n}){const{data:l,isLoading:i}=oe(Y1(n)),u=(l==null?void 0:l.experiments)??[];return i?f.jsx("div",{className:"space-y-2",children:["s1","s2","s3"].map(o=>f.jsx("div",{className:"h-12 animate-pulse rounded-lg bg-gray-900"},o))}):u.length===0?f.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:f.jsx("p",{className:"text-lg text-gray-400",children:"No experiments found"})}):f.jsx("div",{className:"space-y-2",children:u.map(o=>f.jsxs("div",{className:"flex items-center justify-between rounded-lg border border-gray-800 bg-gray-900/50 p-4",children:[f.jsxs("div",{children:[f.jsx("p",{className:"font-medium text-white",children:o.name}),f.jsxs("p",{className:"text-sm text-gray-400",children:[o.run_count," run",o.run_count!==1?"s":""]})]}),f.jsxs("span",{className:"text-lg font-semibold tabular-nums text-cyan-400",children:[Math.round(o.pass_rate*100),"%"]})]},o.name))})}function bj({projectId:n}){const{data:l,isLoading:i}=oe(G1(n)),u=(l==null?void 0:l.targets)??[];return i?f.jsx("div",{className:"space-y-2",children:["s1","s2","s3"].map(o=>f.jsx("div",{className:"h-12 animate-pulse rounded-lg bg-gray-900"},o))}):u.length===0?f.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:f.jsx("p",{className:"text-lg text-gray-400",children:"No targets found"})}):f.jsx("div",{className:"space-y-2",children:u.map(o=>f.jsxs("div",{className:"flex items-center justify-between rounded-lg border border-gray-800 bg-gray-900/50 p-4",children:[f.jsxs("div",{children:[f.jsx("p",{className:"font-medium text-white",children:o.name}),f.jsxs("p",{className:"text-sm text-gray-400",children:[o.run_count," run",o.run_count!==1?"s":""," · ",o.experiment_count," ","experiment",o.experiment_count!==1?"s":""]})]}),f.jsxs("span",{className:"text-lg font-semibold tabular-nums text-cyan-400",children:[Math.round(o.pass_rate*100),"%"]})]},o.name))})}const kg=ya("/experiments/$experimentName")({component:Sj});function Sj(){var v;const{experimentName:n}=kg.useParams(),{data:l,isLoading:i}=Pf(),{data:u,isLoading:o}=Zf();if(i||o)return f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),f.jsx("div",{className:"grid grid-cols-4 gap-4",children:["s1","s2","s3","s4"].map(S=>f.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},S))})]});const h=(v=l==null?void 0:l.experiments)==null?void 0:v.find(S=>S.name===n),y=(u==null?void 0:u.runs)??[],p=(h==null?void 0:h.pass_rate)??0,g=(h==null?void 0:h.run_count)??0,b=(h==null?void 0:h.target_count)??0;return f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-2xl font-semibold text-white",children:n}),f.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:[g," run",g!==1?"s":""," · ",b," target",b!==1?"s":"",(h==null?void 0:h.last_run)&&f.jsxs("span",{className:"ml-2",children:["· Last run: ",Zy(h.last_run)]})]})]}),h&&f.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-4",children:[f.jsx(mu,{label:"Runs",value:String(g)}),f.jsx(mu,{label:"Targets",value:String(b)}),f.jsx(mu,{label:"Pass Rate",value:`${Math.round(p*100)}%`,accent:"text-cyan-400"}),f.jsx(mu,{label:"Last Run",value:Zy(h.last_run)})]}),f.jsxs("div",{children:[f.jsx("h2",{className:"mb-4 text-lg font-medium text-gray-200",children:"All Runs"}),f.jsx(If,{runs:y})]})]})}function mu({label:n,value:l,accent:i}){return f.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[f.jsx("p",{className:"text-sm text-gray-400",children:n}),f.jsx("p",{className:`mt-1 text-2xl font-semibold tabular-nums ${i??"text-white"}`,children:l})]})}function Zy(n){if(!n)return"N/A";try{const l=new Date(n);return Number.isNaN(l.getTime())?"N/A":l.toLocaleString()}catch{return"N/A"}}async function jj(n,l){const i=await fetch("/api/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reviews:[{test_id:n,comment:l}]})});if(!i.ok)throw new Error(`Failed to save feedback: ${i.status}`);return i.json()}function Nj({testId:n}){var b;const{data:l}=M1(),i=Vi(),u=(b=l==null?void 0:l.reviews)==null?void 0:b.find(v=>v.test_id===n),[o,d]=F.useState((u==null?void 0:u.comment)??""),[h,y]=F.useState(!1);F.useEffect(()=>{d((u==null?void 0:u.comment)??""),y(!1)},[u==null?void 0:u.comment]);const p=Sb({mutationFn:()=>jj(n,o),onSuccess:()=>{i.invalidateQueries({queryKey:["feedback"]}),y(!0),setTimeout(()=>y(!1),2e3)}}),g=F.useCallback(()=>{p.mutate()},[p]);return f.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[f.jsx("h4",{className:"mb-2 text-sm font-medium text-gray-400",children:"Feedback"}),f.jsx("textarea",{value:o,onChange:v=>{d(v.target.value),y(!1)},placeholder:"Add feedback for this test...",className:"w-full rounded-md border border-gray-700 bg-gray-800 p-3 text-sm text-gray-200 placeholder-gray-500 focus:border-cyan-400 focus:outline-none",rows:3}),f.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[f.jsx("button",{type:"button",onClick:g,disabled:p.isPending,className:"rounded-md bg-cyan-600 px-4 py-1.5 text-sm font-medium text-white hover:bg-cyan-500 disabled:opacity-50",children:p.isPending?"Saving...":"Save Feedback"}),h&&f.jsx("span",{className:"text-sm text-emerald-400",children:"Saved"}),p.isError&&f.jsx("span",{className:"text-sm text-red-400",children:"Error saving feedback"})]})]})}function Rj(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 l=[];for(const i of n)i.type==="dir"&&(l.push(i.path),i.children&&l.push(...Wg(i.children)));return l}function tp({node:n,selectedPath:l,onSelect:i,openFolders:u,toggleFolder:o,depth:d=0}){const h=n.type==="dir",y=u.has(n.path),p=l===n.path;return f.jsxs("div",{children:[f.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:`${d*16+8}px`},children:[f.jsx("span",{className:"flex-shrink-0 text-xs",children:h?y?"📂":"📁":Rj(n.name)}),f.jsx("span",{className:"truncate",children:n.name})]}),h&&y&&n.children&&f.jsx("div",{children:n.children.map(g=>f.jsx(tp,{node:g,selectedPath:l,onSelect:i,openFolders:u,toggleFolder:o,depth:d+1},g.path))})]})}function _j({files:n,selectedPath:l,onSelect:i}){const[u,o]=F.useState(()=>new Set(Wg(n))),d=h=>{o(y=>{const p=new Set(y);return p.has(h)?p.delete(h):p.add(h),p})};return f.jsxs("div",{className:"w-64 overflow-y-auto rounded-lg border border-gray-800 bg-gray-900 py-2",children:[n.length===0&&f.jsx("p",{className:"px-4 py-2 text-sm text-gray-500",children:"No files."}),n.map(h=>f.jsx(tp,{node:h,selectedPath:l,onSelect:i,openFolders:u,toggleFolder:d},h.path))]})}const Ej="modulepreload",Tj=function(n){return"/"+n},Py={},Mj=function(l,i,u){let o=Promise.resolve();if(i&&i.length>0){let h=function(g){return Promise.all(g.map(b=>Promise.resolve(b).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const y=document.querySelector("meta[property=csp-nonce]"),p=(y==null?void 0:y.nonce)||(y==null?void 0:y.getAttribute("nonce"));o=h(i.map(g=>{if(g=Tj(g),g in Py)return;Py[g]=!0;const b=g.endsWith(".css"),v=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${v}`))return;const S=document.createElement("link");if(S.rel=b?"stylesheet":Ej,b||(S.as="script"),S.crossOrigin="",S.href=g,p&&S.setAttribute("nonce",p),document.head.appendChild(S),b)return new Promise((j,N)=>{S.addEventListener("load",j),S.addEventListener("error",()=>N(new Error(`Unable to preload CSS for ${g}`)))})}))}function d(h){const y=new Event("vite:preloadError",{cancelable:!0});if(y.payload=h,window.dispatchEvent(y),!y.defaultPrevented)throw h}return o.then(h=>{for(const y of h||[])y.status==="rejected"&&d(y.reason);return l().catch(d)})},Cj=F.lazy(()=>Mj(()=>import("./index-zWHsVvgi.js"),[]));function Aj({value:n,language:l="json",height:i="400px"}){return f.jsx(F.Suspense,{fallback:f.jsx("div",{className:"flex items-center justify-center rounded-lg bg-gray-900 p-8 text-gray-500",children:"Loading editor..."}),children:f.jsx(Cj,{height:i,language:l,value:n,theme:"vs-dark",options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13,lineNumbers:"on",wordWrap:"on",padding:{top:12}}})})}function ep(n){for(const l of n){if(l.type==="file")return l.path;if(l.children){const i=ep(l.children);if(i)return i}}return null}function ap({eval:n,runId:l,projectId:i}){const[u,o]=F.useState("checks"),d=[{id:"checks",label:"Checks"},{id:"files",label:"Files"},{id:"feedback",label:"Feedback"}];return f.jsxs("div",{className:"flex min-h-full flex-col gap-6",children:[f.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsxs("div",{children:[f.jsx("h3",{className:"text-lg font-medium",children:n.testId}),f.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:[n.target&&f.jsxs("span",{children:["Target: ",n.target]}),n.durationMs!=null&&f.jsxs("span",{className:"ml-4",children:[(n.durationMs/1e3).toFixed(1),"s"]}),n.costUsd!=null&&f.jsxs("span",{className:"ml-4",children:["$",n.costUsd.toFixed(4)]})]})]}),f.jsx("div",{className:"w-48",children:f.jsx(Va,{score:n.score})})]})}),n.scores&&n.scores.length>0&&f.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[f.jsx("h4",{className:"mb-3 text-sm font-medium text-gray-400",children:"Evaluator Scores"}),f.jsx("div",{className:"space-y-3",children:n.scores.map((h,y)=>f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("span",{className:"w-40 truncate text-sm text-gray-300",children:h.name??h.type??`Score ${y+1}`}),f.jsx("div",{className:"flex-1",children:f.jsx(Va,{score:h.score})})]},`${h.name??h.type??y}`))})]}),f.jsx("div",{className:"border-b border-gray-800",children:f.jsx("div",{className:"flex gap-1",children:d.map(h=>f.jsx("button",{type:"button",onClick:()=>o(h.id),className:`px-4 py-2 text-sm font-medium transition-colors ${u===h.id?"border-b-2 border-cyan-400 text-cyan-400":"text-gray-400 hover:text-gray-300"}`,children:h.label},h.id))})}),f.jsxs("div",{className:"min-h-0 flex-1",children:[u==="checks"&&f.jsx(Oj,{result:n}),u==="files"&&f.jsx(zj,{result:n,runId:l,projectId:i}),u==="feedback"&&f.jsx(Nj,{testId:n.testId})]})]})}function Oj({result:n}){const{data:l}=ps(),i=(l==null?void 0:l.pass_threshold)??.8,u=n.assertions??[],o=!wn(n.score,i)||n.executionStatus==="error"||n.executionStatus==="failed",d=[];n.error&&d.push(n.error),(n.executionStatus==="error"||n.executionStatus==="failed")&&d.push(`Execution status: ${n.executionStatus}`);const h=u.filter(y=>!y.passed);for(const y of h){const p=y.evidence?`${y.text}: ${y.evidence}`:y.text;d.push(p)}if(n.scores)for(const y of n.scores){if(!wn(y.score,i)&&y.details){const p=typeof y.details=="string"?y.details:JSON.stringify(y.details,null,2);d.push(`[${y.name??y.type??"evaluator"}] ${p}`)}if(y.assertions){for(const p of y.assertions)if(!p.passed){const g=p.evidence?`${p.text}: ${p.evidence}`:p.text;d.includes(g)||d.push(g)}}}return f.jsxs("div",{className:"space-y-4",children:[u.length===0&&f.jsx("p",{className:"text-sm text-gray-500",children:"No assertion steps recorded."}),u.length>0&&f.jsx("div",{className:"space-y-2",children:u.map(y=>f.jsxs("div",{className:`flex items-start gap-3 rounded-lg border p-3 ${y.passed?"border-emerald-900/50 bg-emerald-950/20":"border-red-900/50 bg-red-950/20"}`,children:[f.jsx("span",{className:`mt-0.5 text-lg ${y.passed?"text-emerald-400":"text-red-400"}`,children:y.passed?"✓":"✗"}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsxs("p",{className:"text-sm text-gray-200",children:[y.text,y.durationMs!=null&&f.jsxs("span",{className:"ml-2 text-xs text-gray-500",children:["(",(y.durationMs/1e3).toFixed(1),"s)"]})]}),y.evidence&&f.jsx("p",{className:"mt-1 text-xs text-gray-400",children:y.evidence})]})]},`${y.text}-${y.passed}`))}),o&&d.length>0&&f.jsxs("div",{className:"rounded-lg border border-red-500/30 bg-red-500/10 p-4",children:[f.jsx("h4",{className:"mb-2 text-sm font-medium text-red-400",children:"Failure Reason"}),f.jsx("div",{className:"space-y-2",children:d.map(y=>f.jsx("p",{className:"text-sm text-gray-300",children:y},y))})]})]})}function zj({result:n,runId:l,projectId:i}){const u=n.testId,{data:o}=i?oe(q1(i,l,u)):A1(l,u),d=(o==null?void 0:o.files)??[],[h,y]=F.useState(null),p=h??(d.length>0?ep(d):null),{data:g,isLoading:b}=i?oe(Q1(i,l,u,p??"")):O1(l,u,p??"");if(d.length===0)return f.jsx("p",{className:"text-sm text-gray-500",children:"No artifact files available."});const v=p?b?"Loading...":(g==null?void 0:g.content)??"":"",S=p?(g==null?void 0:g.language)??"plaintext":"plaintext";return f.jsxs("div",{className:"flex h-full min-h-[400px] gap-4",children:[f.jsx(_j,{files:d,selectedPath:p,onSelect:y}),f.jsx("div",{className:"flex-1",children:f.jsx(Aj,{value:v,language:S,height:"100%"})})]})}const np=ya("/evals/$runId/$evalId")({component:Dj});function Dj(){const{runId:n,evalId:l}=np.useParams(),{data:i,isLoading:u,error:o}=Xi(n);if(u)return f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),f.jsx("div",{className:"h-48 animate-pulse rounded-lg bg-gray-900"})]});if(o)return f.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 d=i==null?void 0:i.results.find(h=>h.testId===l);return d?f.jsxs("div",{className:"flex h-full flex-col gap-6",children:[f.jsxs("div",{children:[f.jsxs("p",{className:"text-sm text-gray-400",children:["Run: ",n," / Eval: ",l]}),f.jsx("h1",{className:"text-2xl font-semibold text-white",children:l})]}),f.jsx(ap,{eval:d,runId:n})]}):f.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6 text-center",children:f.jsxs("p",{className:"text-gray-400",children:["Eval ",f.jsx("code",{className:"text-cyan-400",children:l})," not found in run"," ",f.jsx("code",{className:"text-cyan-400",children:n}),"."]})})}const sp=ya("/runs/$runId_/dataset/$dataset")({component:wj});function wj(){const{runId:n,dataset:l}=sp.useParams(),{data:i,isLoading:u,error:o}=Xi(n),{data:d}=ps(),h=(d==null?void 0:d.pass_threshold)??.8;if(u)return f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),f.jsx("div",{className:"grid grid-cols-5 gap-4",children:["s1","s2","s3","s4","s5"].map(j=>f.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},j))})]});if(o)return f.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 y=((i==null?void 0:i.results)??[]).filter(j=>(j.dataset??"Uncategorized")===l),p=y.length,g=y.filter(j=>wn(j.score,h)).length,b=p-g,v=p>0?g/p:0,S=y.reduce((j,N)=>j+(N.costUsd??0),0);return f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-2xl font-semibold text-white",children:l}),f.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:["Dataset in run: ",n]})]}),f.jsx(Tu,{total:p,passed:g,failed:b,passRate:v,totalCost:S>0?S:void 0}),p===0?f.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:f.jsx("p",{className:"text-lg text-gray-400",children:"No evaluations in this dataset"})}):f.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:f.jsxs("table",{className:"w-full text-left text-sm",children:[f.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Test ID"}),f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),f.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Score"}),f.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Status"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Duration"}),f.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Cost"})]})}),f.jsx("tbody",{className:"divide-y divide-gray-800/50",children:y.map((j,N)=>f.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[f.jsx("td",{className:"px-4 py-3",children:f.jsx(Mt,{to:"/evals/$runId/$evalId",params:{runId:n,evalId:j.testId},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:j.testId})}),f.jsx("td",{className:"px-4 py-3 text-gray-400",children:j.target??"-"}),f.jsx("td",{className:"px-4 py-3",children:f.jsx(Va,{score:j.score})}),f.jsx("td",{className:"px-4 py-3",children:f.jsx(Uj,{status:j.executionStatus})}),f.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:j.durationMs!=null?`${(j.durationMs/1e3).toFixed(1)}s`:"-"}),f.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:j.costUsd!=null?`$${j.costUsd.toFixed(4)}`:"-"})]},`${j.testId}-${N}`))})]})})]})}function Uj({status:n}){if(!n)return f.jsx("span",{className:"text-gray-500",children:"-"});const l=n==="success"||n==="completed",i=n==="error"||n==="failed";return f.jsx("span",{className:`inline-flex rounded-full px-2 py-0.5 text-xs font-medium ${l?"bg-emerald-900/50 text-emerald-400":i?"bg-red-900/50 text-red-400":"bg-gray-800 text-gray-400"}`,children:n})}const lp=ya("/runs/$runId_/category/$category")({component:Lj});function Lj(){const{runId:n,category:l}=lp.useParams(),{data:i,isLoading:u,error:o}=Kg(n,l);if(u)return f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),f.jsx("div",{className:"grid grid-cols-5 gap-4",children:["s1","s2","s3","s4","s5"].map(b=>f.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},b))})]});if(o)return f.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 d=(i==null?void 0:i.datasets)??[],h=d.reduce((b,v)=>b+v.total,0),y=d.reduce((b,v)=>b+v.passed,0),p=h-y,g=h>0?y/h:0;return f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"text-2xl font-semibold text-white",children:l}),f.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:["Category in run: ",n]})]}),f.jsx(Tu,{total:h,passed:y,failed:p,passRate:g}),d.length===0?f.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:f.jsx("p",{className:"text-lg text-gray-400",children:"No datasets in this category"})}):f.jsxs("div",{className:"space-y-3",children:[f.jsx("h3",{className:"text-sm font-medium text-gray-400",children:"Datasets"}),f.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3",children:d.map(b=>f.jsxs(Mt,{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:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("span",{className:"text-sm font-medium text-gray-200 truncate",children:b.name}),f.jsxs("span",{className:"ml-2 text-xs text-gray-500",children:[b.passed,"/",b.total]})]}),f.jsx("div",{className:"mt-2",children:f.jsx(Va,{score:b.avg_score})}),f.jsxs("div",{className:"mt-1 flex gap-3 text-xs",children:[f.jsxs("span",{className:"text-emerald-400",children:[b.passed," passed"]}),b.failed>0&&f.jsxs("span",{className:"text-red-400",children:[b.failed," failed"]})]})]},b.name))})]})]})}const ip=ya("/projects/$projectId_/runs/$runId")({component:Bj});function Bj(){const{projectId:n,runId:l}=ip.useParams(),{data:i,isLoading:u,error:o}=Jf(n,l);return u?f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),f.jsx("div",{className:"grid grid-cols-5 gap-4",children:["s1","s2","s3","s4","s5"].map(d=>f.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},d))})]}):o?f.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]}):f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{children:[f.jsxs("h1",{className:"text-2xl font-semibold text-white",children:["Run: ",l]}),f.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:["Source: ",i==null?void 0:i.source]})]}),f.jsx($g,{results:(i==null?void 0:i.results)??[],runId:l,projectId:n})]})}const rp=ya("/projects/$projectId_/evals/$runId/$evalId")({component:Hj});function Hj(){const{projectId:n,runId:l,evalId:i}=rp.useParams(),{data:u,isLoading:o,error:d}=Jf(n,l);if(o)return f.jsxs("div",{className:"space-y-4",children:[f.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),f.jsx("div",{className:"h-48 animate-pulse rounded-lg bg-gray-900"})]});if(d)return f.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load eval: ",d.message]});const h=u==null?void 0:u.results.find(y=>y.testId===i);return h?f.jsxs("div",{className:"flex h-full flex-col gap-6",children:[f.jsxs("div",{children:[f.jsxs("p",{className:"text-sm text-gray-400",children:["Run: ",l," / Eval: ",i]}),f.jsx("h1",{className:"text-2xl font-semibold text-white",children:i})]}),f.jsx(ap,{eval:h,runId:l,projectId:n})]}):f.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6 text-center",children:f.jsxs("p",{className:"text-gray-400",children:["Eval ",f.jsx("code",{className:"text-cyan-400",children:i})," not found in run"," ",f.jsx("code",{className:"text-cyan-400",children:l}),"."]})})}const qj=k1.update({id:"/settings",path:"/settings",getParentRoute:()=>sa}),Qj=uj.update({id:"/",path:"/",getParentRoute:()=>sa}),Yj=Ig.update({id:"/runs/$runId",path:"/runs/$runId",getParentRoute:()=>sa}),Gj=Fg.update({id:"/projects/$projectId",path:"/projects/$projectId",getParentRoute:()=>sa}),Vj=kg.update({id:"/experiments/$experimentName",path:"/experiments/$experimentName",getParentRoute:()=>sa}),Xj=np.update({id:"/evals/$runId/$evalId",path:"/evals/$runId/$evalId",getParentRoute:()=>sa}),Kj=sp.update({id:"/runs/$runId_/dataset/$dataset",path:"/runs/$runId/dataset/$dataset",getParentRoute:()=>sa}),Zj=lp.update({id:"/runs/$runId_/category/$category",path:"/runs/$runId/category/$category",getParentRoute:()=>sa}),Pj=ip.update({id:"/projects/$projectId_/runs/$runId",path:"/projects/$projectId/runs/$runId",getParentRoute:()=>sa}),$j=rp.update({id:"/projects/$projectId_/evals/$runId/$evalId",path:"/projects/$projectId/evals/$runId/$evalId",getParentRoute:()=>sa}),Jj={IndexRoute:Qj,SettingsRoute:qj,ExperimentsExperimentNameRoute:Vj,ProjectsProjectIdRoute:Gj,RunsRunIdRoute:Yj,EvalsRunIdEvalIdRoute:Xj,ProjectsProjectIdRunsRunIdRoute:Pj,RunsRunIdCategoryCategoryRoute:Zj,RunsRunIdDatasetDatasetRoute:Kj,ProjectsProjectIdEvalsRunIdEvalIdRoute:$j},Ij=sa._addFileChildren(Jj)._addFileTypes(),Fj=new ub({defaultOptions:{queries:{staleTime:5e3,refetchOnWindowFocus:!0}}}),kj=h1({routeTree:Ij}),up=document.getElementById("root");if(!up)throw new Error("Root element not found");Bx.createRoot(up).render(f.jsx(F.StrictMode,{children:f.jsx(cb,{client:Fj,children:f.jsx(g1,{router:kj})})}));export{Ai as W,F as r};