agentv 4.3.1 → 4.3.2
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.
- package/dist/{agentv-provider-NFFLXG5M-TJAWCWCX.js → agentv-provider-TXM4UEUT-SUZSAXWZ.js} +2 -2
- package/dist/{chunk-LTALLYDW.js → chunk-EM2JOZFS.js} +4 -12
- package/dist/{chunk-LTALLYDW.js.map → chunk-EM2JOZFS.js.map} +1 -1
- package/dist/{chunk-BEFW6WZ6.js → chunk-FXN26R2H.js} +161 -90
- package/dist/chunk-FXN26R2H.js.map +1 -0
- package/dist/{chunk-URQXFJEB.js → chunk-HMOXP7T5.js} +7 -7
- package/dist/{chunk-C5GOHBQM.js → chunk-QOBQ5XYF.js} +2 -2
- package/dist/{chunk-BJV6MDBE.js → chunk-ZKO2LGRR.js} +2 -2
- package/dist/cli.js +5 -5
- package/dist/{dist-GQ2YNG7B.js → dist-M7R6II6Y.js} +4 -4
- package/dist/{esm-5Q4BZALM-5REQWAUV.js → esm-ZADQ4XQH-5LX2IKZV.js} +2 -2
- package/dist/index.js +5 -5
- package/dist/{interactive-UZBC7V4B.js → interactive-FMOEUIKE.js} +5 -5
- package/dist/{otlp-json-file-exporter-77FDBRSY-EZAPHWP6.js → otlp-json-file-exporter-RJFPCKVK-T6N4OGWG.js} +2 -2
- package/dist/studio/assets/{index-DofvSOmX.js → index-Bv9YUyqt.js} +1 -1
- package/dist/studio/assets/index-CElXpUjl.css +1 -0
- package/dist/studio/assets/index-CaOaajcd.js +65 -0
- package/dist/studio/index.html +2 -2
- package/package.json +1 -1
- package/dist/chunk-BEFW6WZ6.js.map +0 -1
- package/dist/studio/assets/index-CDGReinH.js +0 -71
- package/dist/studio/assets/index-izxfmBKC.css +0 -1
- /package/dist/{agentv-provider-NFFLXG5M-TJAWCWCX.js.map → agentv-provider-TXM4UEUT-SUZSAXWZ.js.map} +0 -0
- /package/dist/{chunk-URQXFJEB.js.map → chunk-HMOXP7T5.js.map} +0 -0
- /package/dist/{chunk-C5GOHBQM.js.map → chunk-QOBQ5XYF.js.map} +0 -0
- /package/dist/{chunk-BJV6MDBE.js.map → chunk-ZKO2LGRR.js.map} +0 -0
- /package/dist/{dist-GQ2YNG7B.js.map → dist-M7R6II6Y.js.map} +0 -0
- /package/dist/{esm-5Q4BZALM-5REQWAUV.js.map → esm-ZADQ4XQH-5LX2IKZV.js.map} +0 -0
- /package/dist/{interactive-UZBC7V4B.js.map → interactive-FMOEUIKE.js.map} +0 -0
- /package/dist/{otlp-json-file-exporter-77FDBRSY-EZAPHWP6.js.map → otlp-json-file-exporter-RJFPCKVK-T6N4OGWG.js.map} +0 -0
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
var Vy=n=>{throw TypeError(n)};var Go=(n,s,i)=>s.has(n)||Vy("Cannot "+i);var E=(n,s,i)=>(Go(n,s,"read from private field"),i?i.call(n):s.get(n)),rt=(n,s,i)=>s.has(n)?Vy("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(n):s.set(n,i),et=(n,s,i,r)=>(Go(n,s,"write to private field"),r?r.call(n,i):s.set(n,i),i),pt=(n,s,i)=>(Go(n,s,"access private method"),i);var ir=(n,s,i,r)=>({set _(o){et(n,s,o,i)},get _(){return E(n,s,r)}});(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const h of f.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&r(h)}).observe(document,{childList:!0,subtree:!0});function i(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function r(o){if(o.ep)return;o.ep=!0;const f=i(o);fetch(o.href,f)}})();function gx(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Vo={exports:{}},vi={};/**
|
|
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 Xy;function vx(){if(Xy)return vi;Xy=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function i(r,o,f){var h=null;if(f!==void 0&&(h=""+f),o.key!==void 0&&(h=""+o.key),"key"in o){f={};for(var g in o)g!=="key"&&(f[g]=o[g])}else f=o;return o=f.ref,{$$typeof:n,type:r,key:h,ref:o!==void 0?o:null,props:f}}return vi.Fragment=s,vi.jsx=i,vi.jsxs=i,vi}var Ky;function px(){return Ky||(Ky=1,Vo.exports=vx()),Vo.exports}var m=px(),Xo={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 Zy;function xx(){if(Zy)return mt;Zy=1;var n=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),h=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),S=Symbol.iterator;function j(N){return N===null||typeof N!="object"?null:(N=S&&N[S]||N["@@iterator"],typeof N=="function"?N:null)}var R={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},M=Object.assign,C={};function U(N,Q,I){this.props=N,this.context=Q,this.refs=C,this.updater=I||R}U.prototype.isReactComponent={},U.prototype.setState=function(N,Q){if(typeof N!="object"&&typeof N!="function"&&N!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,N,Q,"setState")},U.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function P(){}P.prototype=U.prototype;function K(N,Q,I){this.props=N,this.context=Q,this.refs=C,this.updater=I||R}var L=K.prototype=new P;L.constructor=K,M(L,U.prototype),L.isPureReactComponent=!0;var X=Array.isArray;function $(){}var Z={H:null,A:null,T:null,S:null},J=Object.prototype.hasOwnProperty;function k(N,Q,I){var tt=I.ref;return{$$typeof:n,type:N,key:Q,ref:tt!==void 0?tt:null,props:I}}function G(N,Q){return k(N.type,Q,N.props)}function F(N){return typeof N=="object"&&N!==null&&N.$$typeof===n}function st(N){var Q={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(I){return Q[I]})}var it=/\/+/g;function ot(N,Q){return typeof N=="object"&&N!==null&&N.key!=null?st(""+N.key):Q.toString(36)}function nt(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then($,$):(N.status="pending",N.then(function(Q){N.status==="pending"&&(N.status="fulfilled",N.value=Q)},function(Q){N.status==="pending"&&(N.status="rejected",N.reason=Q)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function D(N,Q,I,tt,ht){var xt=typeof N;(xt==="undefined"||xt==="boolean")&&(N=null);var bt=!1;if(N===null)bt=!0;else switch(xt){case"bigint":case"string":case"number":bt=!0;break;case"object":switch(N.$$typeof){case n:case s:bt=!0;break;case b:return bt=N._init,D(bt(N._payload),Q,I,tt,ht)}}if(bt)return ht=ht(N),bt=tt===""?"."+ot(N,0):tt,X(ht)?(I="",bt!=null&&(I=bt.replace(it,"$&/")+"/"),D(ht,Q,I,"",function(aa){return aa})):ht!=null&&(F(ht)&&(ht=G(ht,I+(ht.key==null||N&&N.key===ht.key?"":(""+ht.key).replace(it,"$&/")+"/")+bt)),Q.push(ht)),1;bt=0;var Jt=tt===""?".":tt+":";if(X(N))for(var Ht=0;Ht<N.length;Ht++)tt=N[Ht],xt=Jt+ot(tt,Ht),bt+=D(tt,Q,I,xt,ht);else if(Ht=j(N),typeof Ht=="function")for(N=Ht.call(N),Ht=0;!(tt=N.next()).done;)tt=tt.value,xt=Jt+ot(tt,Ht++),bt+=D(tt,Q,I,xt,ht);else if(xt==="object"){if(typeof N.then=="function")return D(nt(N),Q,I,tt,ht);throw Q=String(N),Error("Objects are not valid as a React child (found: "+(Q==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":Q)+"). If you meant to render a collection of children, use an array instead.")}return bt}function V(N,Q,I){if(N==null)return N;var tt=[],ht=0;return D(N,tt,"","",function(xt){return Q.call(I,xt,ht++)}),tt}function at(N){if(N._status===-1){var Q=N._result;Q=Q(),Q.then(function(I){(N._status===0||N._status===-1)&&(N._status=1,N._result=I)},function(I){(N._status===0||N._status===-1)&&(N._status=2,N._result=I)}),N._status===-1&&(N._status=0,N._result=Q)}if(N._status===1)return N._result.default;throw N._result}var yt=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N),error:N});if(!window.dispatchEvent(Q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},ft={map:V,forEach:function(N,Q,I){V(N,function(){Q.apply(this,arguments)},I)},count:function(N){var Q=0;return V(N,function(){Q++}),Q},toArray:function(N){return V(N,function(Q){return Q})||[]},only:function(N){if(!F(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return mt.Activity=v,mt.Children=ft,mt.Component=U,mt.Fragment=i,mt.Profiler=o,mt.PureComponent=K,mt.StrictMode=r,mt.Suspense=p,mt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Z,mt.__COMPILER_RUNTIME={__proto__:null,c:function(N){return Z.H.useMemoCache(N)}},mt.cache=function(N){return function(){return N.apply(null,arguments)}},mt.cacheSignal=function(){return null},mt.cloneElement=function(N,Q,I){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var tt=M({},N.props),ht=N.key;if(Q!=null)for(xt in Q.key!==void 0&&(ht=""+Q.key),Q)!J.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=I;else if(1<xt){for(var bt=Array(xt),Jt=0;Jt<xt;Jt++)bt[Jt]=arguments[Jt+2];tt.children=bt}return k(N.type,ht,tt)},mt.createContext=function(N){return N={$$typeof:h,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:f,_context:N},N},mt.createElement=function(N,Q,I){var tt,ht={},xt=null;if(Q!=null)for(tt in Q.key!==void 0&&(xt=""+Q.key),Q)J.call(Q,tt)&&tt!=="key"&&tt!=="__self"&&tt!=="__source"&&(ht[tt]=Q[tt]);var bt=arguments.length-2;if(bt===1)ht.children=I;else if(1<bt){for(var Jt=Array(bt),Ht=0;Ht<bt;Ht++)Jt[Ht]=arguments[Ht+2];ht.children=Jt}if(N&&N.defaultProps)for(tt in bt=N.defaultProps,bt)ht[tt]===void 0&&(ht[tt]=bt[tt]);return k(N,xt,ht)},mt.createRef=function(){return{current:null}},mt.forwardRef=function(N){return{$$typeof:g,render:N}},mt.isValidElement=F,mt.lazy=function(N){return{$$typeof:b,_payload:{_status:-1,_result:N},_init:at}},mt.memo=function(N,Q){return{$$typeof:y,type:N,compare:Q===void 0?null:Q}},mt.startTransition=function(N){var Q=Z.T,I={};Z.T=I;try{var tt=N(),ht=Z.S;ht!==null&&ht(I,tt),typeof tt=="object"&&tt!==null&&typeof tt.then=="function"&&tt.then($,yt)}catch(xt){yt(xt)}finally{Q!==null&&I.types!==null&&(Q.types=I.types),Z.T=Q}},mt.unstable_useCacheRefresh=function(){return Z.H.useCacheRefresh()},mt.use=function(N){return Z.H.use(N)},mt.useActionState=function(N,Q,I){return Z.H.useActionState(N,Q,I)},mt.useCallback=function(N,Q){return Z.H.useCallback(N,Q)},mt.useContext=function(N){return Z.H.useContext(N)},mt.useDebugValue=function(){},mt.useDeferredValue=function(N,Q){return Z.H.useDeferredValue(N,Q)},mt.useEffect=function(N,Q){return Z.H.useEffect(N,Q)},mt.useEffectEvent=function(N){return Z.H.useEffectEvent(N)},mt.useId=function(){return Z.H.useId()},mt.useImperativeHandle=function(N,Q,I){return Z.H.useImperativeHandle(N,Q,I)},mt.useInsertionEffect=function(N,Q){return Z.H.useInsertionEffect(N,Q)},mt.useLayoutEffect=function(N,Q){return Z.H.useLayoutEffect(N,Q)},mt.useMemo=function(N,Q){return Z.H.useMemo(N,Q)},mt.useOptimistic=function(N,Q){return Z.H.useOptimistic(N,Q)},mt.useReducer=function(N,Q,I){return Z.H.useReducer(N,Q,I)},mt.useRef=function(N){return Z.H.useRef(N)},mt.useState=function(N){return Z.H.useState(N)},mt.useSyncExternalStore=function(N,Q,I){return Z.H.useSyncExternalStore(N,Q,I)},mt.useTransition=function(){return Z.H.useTransition()},mt.version="19.2.4",mt}var Jy;function qi(){return Jy||(Jy=1,Xo.exports=xx()),Xo.exports}var W=qi();const Ti=gx(W);var Ko={exports:{}},pi={},Zo={exports:{}},Jo={};/**
|
|
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 Py;function bx(){return Py||(Py=1,(function(n){function s(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 r(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,N=ft>>>1;yt<N;){var Q=2*(yt+1)-1,I=D[Q],tt=Q+1,ht=D[tt];if(0>o(I,at))tt<ft&&0>o(ht,I)?(D[yt]=ht,D[tt]=at,yt=tt):(D[yt]=I,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 f=performance;n.unstable_now=function(){return f.now()}}else{var h=Date,g=h.now();n.unstable_now=function(){return h.now()-g}}var p=[],y=[],b=1,v=null,S=3,j=!1,R=!1,M=!1,C=!1,U=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function L(D){for(var V=i(y);V!==null;){if(V.callback===null)r(y);else if(V.startTime<=D)r(y),V.sortIndex=V.expirationTime,s(p,V);else break;V=i(y)}}function X(D){if(M=!1,L(D),!R)if(i(p)!==null)R=!0,$||($=!0,st());else{var V=i(y);V!==null&&nt(X,V.startTime-D)}}var $=!1,Z=-1,J=5,k=-1;function G(){return C?!0:!(n.unstable_now()-k<J)}function F(){if(C=!1,$){var D=n.unstable_now();k=D;var V=!0;try{t:{R=!1,M&&(M=!1,P(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)&&r(p),L(D)}else r(p);v=i(p)}if(v!==null)V=!0;else{var N=i(y);N!==null&&nt(X,N.startTime-D),V=!1}}break t}finally{v=null,S=at,j=!1}V=void 0}}finally{V?st():$=!1}}}var st;if(typeof K=="function")st=function(){K(F)};else if(typeof MessageChannel<"u"){var it=new MessageChannel,ot=it.port2;it.port1.onmessage=F,st=function(){ot.postMessage(null)}}else st=function(){U(F,0)};function nt(D,V){Z=U(function(){D(n.unstable_now())},V)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(D){D.callback=null},n.unstable_forceFrameRate=function(D){0>D||125<D?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):J=0<D?Math.floor(1e3/D):5},n.unstable_getCurrentPriorityLevel=function(){return S},n.unstable_next=function(D){switch(S){case 1:case 2:case 3:var V=3;break;default:V=S}var 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,s(y,D),i(p)===null&&D===i(y)&&(M?(P(Z),Z=-1):M=!0,nt(X,at-yt))):(D.sortIndex=ft,s(p,D),R||j||(R=!0,$||($=!0,st()))),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}}}})(Jo)),Jo}var ky;function Sx(){return ky||(ky=1,Zo.exports=bx()),Zo.exports}var Po={exports:{}},fe={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var Fy;function Rx(){if(Fy)return fe;Fy=1;var n=qi();function s(p){var y="https://react.dev/errors/"+p;if(1<arguments.length){y+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)y+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+p+"; visit "+y+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var r={d:{f:i,r:function(){throw Error(s(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(p,y,b){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:p,containerInfo:y,implementation:b}}var h=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,y){if(p==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}return fe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,fe.createPortal=function(p,y){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error(s(299));return f(p,y,null,b)},fe.flushSync=function(p){var y=h.T,b=r.p;try{if(h.T=null,r.p=2,p)return p()}finally{h.T=y,r.p=b,r.d.f()}},fe.preconnect=function(p,y){typeof p=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,r.d.C(p,y))},fe.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},fe.preinit=function(p,y){if(typeof p=="string"&&y&&typeof y.as=="string"){var b=y.as,v=g(b,y.crossOrigin),S=typeof y.integrity=="string"?y.integrity:void 0,j=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;b==="style"?r.d.S(p,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:v,integrity:S,fetchPriority:j}):b==="script"&&r.d.X(p,{crossOrigin:v,integrity:S,fetchPriority:j,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},fe.preinitModule=function(p,y){if(typeof p=="string")if(typeof y=="object"&&y!==null){if(y.as==null||y.as==="script"){var b=g(y.as,y.crossOrigin);r.d.M(p,{crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})}}else y==null&&r.d.M(p)},fe.preload=function(p,y){if(typeof p=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){var b=y.as,v=g(b,y.crossOrigin);r.d.L(p,b,{crossOrigin:v,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},fe.preloadModule=function(p,y){if(typeof p=="string")if(y){var b=g(y.as,y.crossOrigin);r.d.m(p,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:b,integrity:typeof y.integrity=="string"?y.integrity:void 0})}else r.d.m(p)},fe.requestFormReset=function(p){r.d.r(p)},fe.unstable_batchedUpdates=function(p,y){return p(y)},fe.useFormState=function(p,y,b){return h.H.useFormState(p,y,b)},fe.useFormStatus=function(){return h.H.useHostTransitionStatus()},fe.version="19.2.4",fe}var $y;function I0(){if($y)return Po.exports;$y=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),Po.exports=Rx(),Po.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 Iy;function jx(){if(Iy)return pi;Iy=1;var n=Sx(),s=qi(),i=I0();function r(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function f(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function g(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function p(t){if(f(t)!==t)throw Error(r(188))}function y(t){var e=t.alternate;if(!e){if(e=f(t),e===null)throw Error(r(188));return e!==t?null:t}for(var a=t,l=e;;){var u=a.return;if(u===null)break;var c=u.alternate;if(c===null){if(l=u.return,l!==null){a=l;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===a)return p(u),t;if(c===l)return p(u),e;c=c.sibling}throw Error(r(188))}if(a.return!==l.return)a=u,l=c;else{for(var d=!1,x=u.child;x;){if(x===a){d=!0,a=u,l=c;break}if(x===l){d=!0,l=u,a=c;break}x=x.sibling}if(!d){for(x=c.child;x;){if(x===a){d=!0,a=c,l=u;break}if(x===l){d=!0,l=c,a=u;break}x=x.sibling}if(!d)throw Error(r(189))}}if(a.alternate!==l)throw Error(r(190))}if(a.tag!==3)throw Error(r(188));return a.stateNode.current===a?t:e}function b(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=b(t),e!==null)return e;t=t.sibling}return null}var v=Object.assign,S=Symbol.for("react.element"),j=Symbol.for("react.transitional.element"),R=Symbol.for("react.portal"),M=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),P=Symbol.for("react.consumer"),K=Symbol.for("react.context"),L=Symbol.for("react.forward_ref"),X=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),Z=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),k=Symbol.for("react.activity"),G=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function st(t){return t===null||typeof t!="object"?null:(t=F&&t[F]||t["@@iterator"],typeof t=="function"?t:null)}var it=Symbol.for("react.client.reference");function 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 $:return"SuspenseList";case k:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case R:return"Portal";case K:return t.displayName||"Context";case P:return(t._context.displayName||"Context")+".Consumer";case L:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Z:return e=t.displayName||null,e!==null?e:ot(t.type)||"Memo";case J:e=t._payload,t=t._init;try{return ot(t(e))}catch{}}return null}var nt=Array.isArray,D=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,at={pending:!1,data:null,method:null,action:null},yt=[],ft=-1;function N(t){return{current:t}}function Q(t){0>ft||(t.current=yt[ft],yt[ft]=null,ft--)}function I(t,e){ft++,yt[ft]=t.current,t.current=e}var tt=N(null),ht=N(null),xt=N(null),bt=N(null);function Jt(t,e){switch(I(xt,e),I(ht,t),I(tt,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?dy(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=dy(e),t=hy(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Q(tt),I(tt,t)}function Ht(){Q(tt),Q(ht),Q(xt)}function aa(t){t.memoizedState!==null&&I(bt,t);var e=tt.current,a=hy(e,t.type);e!==a&&(I(ht,t),I(tt,a))}function da(t){ht.current===t&&(Q(tt),Q(ht)),bt.current===t&&(Q(bt),hi._currentValue=at)}var yl,js;function ha(t){if(yl===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);yl=e&&e[1]||"",js=-1<a.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+yl+t+js}var gl=!1;function vl(t,e){if(!t||gl)return"";gl=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var Y=function(){throw Error()};if(Object.defineProperty(Y.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Y,[])}catch(B){var w=B}Reflect.construct(t,[],Y)}else{try{Y.call()}catch(B){w=B}t.call(Y.prototype)}}else{try{throw Error()}catch(B){w=B}(Y=t())&&typeof Y.catch=="function"&&Y.catch(function(){})}}catch(B){if(B&&w&&typeof B.stack=="string")return[B.stack,w.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=l.DetermineComponentFrameRoot(),d=c[0],x=c[1];if(d&&x){var _=d.split(`
|
|
44
|
-
`),z=x.split(`
|
|
45
|
-
`);for(u=l=0;l<_.length&&!_[l].includes("DetermineComponentFrameRoot");)l++;for(;u<z.length&&!z[u].includes("DetermineComponentFrameRoot");)u++;if(l===_.length||u===z.length)for(l=_.length-1,u=z.length-1;1<=l&&0<=u&&_[l]!==z[u];)u--;for(;1<=l&&0<=u;l--,u--)if(_[l]!==z[u]){if(l!==1||u!==1)do if(l--,u--,0>u||_[l]!==z[u]){var H=`
|
|
46
|
-
`+_[l].replace(" at new "," at ");return t.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",t.displayName)),H}while(1<=l&&0<=u);break}}}finally{gl=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?ha(a):""}function Qa(t,e){switch(t.tag){case 26:case 27:case 5:return ha(t.type);case 16:return ha("Lazy");case 13:return t.child!==e&&e!==null?ha("Suspense Fallback"):ha("Suspense");case 19:return ha("SuspenseList");case 0:case 15:return vl(t.type,!1);case 11:return vl(t.type.render,!1);case 1:return vl(t.type,!0);case 31:return ha("Activity");default:return""}}function pl(t){try{var e="",a=null;do e+=Qa(t,a),a=t,t=t.return;while(t);return e}catch(l){return`
|
|
47
|
-
Error generating stack: `+l.message+`
|
|
48
|
-
`+l.stack}}var $e=Object.prototype.hasOwnProperty,_s=n.unstable_scheduleCallback,xl=n.unstable_cancelCallback,Mr=n.unstable_shouldYield,Yi=n.unstable_requestPaint,St=n.unstable_now,oe=n.unstable_getCurrentPriorityLevel,na=n.unstable_ImmediatePriority,Gi=n.unstable_UserBlockingPriority,Vi=n.unstable_NormalPriority,$g=n.unstable_LowPriority,Zf=n.unstable_IdlePriority,Ig=n.log,Wg=n.unstable_setDisableYieldValue,Es=null,Ce=null;function Ya(t){if(typeof Ig=="function"&&Wg(t),Ce&&typeof Ce.setStrictMode=="function")try{Ce.setStrictMode(Es,t)}catch{}}var Ae=Math.clz32?Math.clz32:av,tv=Math.log,ev=Math.LN2;function av(t){return t>>>=0,t===0?32:31-(tv(t)/ev|0)|0}var Xi=256,Ki=262144,Zi=4194304;function zn(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 Ji(t,e,a){var l=t.pendingLanes;if(l===0)return 0;var u=0,c=t.suspendedLanes,d=t.pingedLanes;t=t.warmLanes;var x=l&134217727;return x!==0?(l=x&~c,l!==0?u=zn(l):(d&=x,d!==0?u=zn(d):a||(a=x&~t,a!==0&&(u=zn(a))))):(x=l&~c,x!==0?u=zn(x):d!==0?u=zn(d):a||(a=l&~t,a!==0&&(u=zn(a)))),u===0?0:e!==0&&e!==u&&(e&c)===0&&(c=u&-u,a=e&-e,c>=a||c===32&&(a&4194048)!==0)?e:u}function Ns(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function nv(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 Jf(){var t=Zi;return Zi<<=1,(Zi&62914560)===0&&(Zi=4194304),t}function Cr(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function Ts(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function lv(t,e,a,l,u,c){var d=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var x=t.entanglements,_=t.expirationTimes,z=t.hiddenUpdates;for(a=d&~a;0<a;){var H=31-Ae(a),Y=1<<H;x[H]=0,_[H]=-1;var w=z[H];if(w!==null)for(z[H]=null,H=0;H<w.length;H++){var B=w[H];B!==null&&(B.lane&=-536870913)}a&=~Y}l!==0&&Pf(t,l,0),c!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=c&~(d&~e))}function Pf(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-Ae(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|a&261930}function kf(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var l=31-Ae(a),u=1<<l;u&e|t[l]&e&&(t[l]|=e),a&=~u}}function Ff(t,e){var a=e&-e;return a=(a&42)!==0?1:Ar(a),(a&(t.suspendedLanes|e))!==0?0:a}function Ar(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 Or(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function $f(){var t=V.p;return t!==0?t:(t=window.event,t===void 0?32:Ly(t.type))}function If(t,e){var a=V.p;try{return V.p=t,e()}finally{V.p=a}}var Ga=Math.random().toString(36).slice(2),se="__reactFiber$"+Ga,xe="__reactProps$"+Ga,bl="__reactContainer$"+Ga,zr="__reactEvents$"+Ga,sv="__reactListeners$"+Ga,iv="__reactHandles$"+Ga,Wf="__reactResources$"+Ga,Ms="__reactMarker$"+Ga;function Dr(t){delete t[se],delete t[xe],delete t[zr],delete t[sv],delete t[iv]}function Sl(t){var e=t[se];if(e)return e;for(var a=t.parentNode;a;){if(e=a[bl]||a[se]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=by(t);t!==null;){if(a=t[se])return a;t=by(t)}return e}t=a,a=t.parentNode}return null}function Rl(t){if(t=t[se]||t[bl]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Cs(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(r(33))}function jl(t){var e=t[Wf];return e||(e=t[Wf]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function ae(t){t[Ms]=!0}var td=new Set,ed={};function Dn(t,e){_l(t,e),_l(t+"Capture",e)}function _l(t,e){for(ed[t]=e,t=0;t<e.length;t++)td.add(e[t])}var uv=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]*$"),ad={},nd={};function rv(t){return $e.call(nd,t)?!0:$e.call(ad,t)?!1:uv.test(t)?nd[t]=!0:(ad[t]=!0,!1)}function Pi(t,e,a){if(rv(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function ki(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 ma(t,e,a,l){if(l===null)t.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+l)}}function qe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ld(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function cv(t,e,a){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,c=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(d){a=""+d,c.call(this,d)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(d){a=""+d},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function wr(t){if(!t._valueTracker){var e=ld(t)?"checked":"value";t._valueTracker=cv(t,e,""+t[e])}}function sd(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),l="";return t&&(l=ld(t)?t.checked?"true":"false":t.value),t=l,t!==a?(e.setValue(t),!0):!1}function Fi(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 ov=/[\n"\\]/g;function Qe(t){return t.replace(ov,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ur(t,e,a,l,u,c,d,x){t.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?t.type=d:t.removeAttribute("type"),e!=null?d==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+qe(e)):t.value!==""+qe(e)&&(t.value=""+qe(e)):d!=="submit"&&d!=="reset"||t.removeAttribute("value"),e!=null?Lr(t,d,qe(e)):a!=null?Lr(t,d,qe(a)):l!=null&&t.removeAttribute("value"),u==null&&c!=null&&(t.defaultChecked=!!c),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?t.name=""+qe(x):t.removeAttribute("name")}function id(t,e,a,l,u,c,d,x){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||a!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){wr(t);return}a=a!=null?""+qe(a):"",e=e!=null?""+qe(e):a,x||e===t.value||(t.value=e),t.defaultValue=e}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=x?t.checked:!!l,t.defaultChecked=!!l,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(t.name=d),wr(t)}function Lr(t,e,a){e==="number"&&Fi(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function El(t,e,a,l){if(t=t.options,e){e={};for(var u=0;u<a.length;u++)e["$"+a[u]]=!0;for(a=0;a<t.length;a++)u=e.hasOwnProperty("$"+t[a].value),t[a].selected!==u&&(t[a].selected=u),u&&l&&(t[a].defaultSelected=!0)}else{for(a=""+qe(a),e=null,u=0;u<t.length;u++){if(t[u].value===a){t[u].selected=!0,l&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function ud(t,e,a){if(e!=null&&(e=""+qe(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+qe(a):""}function rd(t,e,a,l){if(e==null){if(l!=null){if(a!=null)throw Error(r(92));if(nt(l)){if(1<l.length)throw Error(r(93));l=l[0]}a=l}a==null&&(a=""),e=a}a=qe(e),t.defaultValue=a,l=t.textContent,l===a&&l!==""&&l!==null&&(t.value=l),wr(t)}function Nl(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var fv=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 cd(t,e,a){var l=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,a):typeof a!="number"||a===0||fv.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function od(t,e,a){if(e!=null&&typeof e!="object")throw Error(r(62));if(t=t.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var u in e)l=e[u],e.hasOwnProperty(u)&&a[u]!==l&&cd(t,u,l)}else for(var c in e)e.hasOwnProperty(c)&&cd(t,c,e[c])}function Br(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 dv=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),hv=/^[\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 $i(t){return hv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ya(){}var Hr=null;function qr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Tl=null,Ml=null;function fd(t){var e=Rl(t);if(e&&(t=e.stateNode)){var a=t[xe]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ur(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Qe(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var l=a[e];if(l!==t&&l.form===t.form){var u=l[xe]||null;if(!u)throw Error(r(90));Ur(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<a.length;e++)l=a[e],l.form===t.form&&sd(l)}break t;case"textarea":ud(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&El(t,!!a.multiple,e,!1)}}}var Qr=!1;function dd(t,e,a){if(Qr)return t(e,a);Qr=!0;try{var l=t(e);return l}finally{if(Qr=!1,(Tl!==null||Ml!==null)&&(Hu(),Tl&&(e=Tl,t=Ml,Ml=Tl=null,fd(e),t)))for(e=0;e<t.length;e++)fd(t[e])}}function As(t,e){var a=t.stateNode;if(a===null)return null;var l=a[xe]||null;if(l===null)return null;a=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(r(231,e,typeof a));return a}var ga=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yr=!1;if(ga)try{var Os={};Object.defineProperty(Os,"passive",{get:function(){Yr=!0}}),window.addEventListener("test",Os,Os),window.removeEventListener("test",Os,Os)}catch{Yr=!1}var Va=null,Gr=null,Ii=null;function hd(){if(Ii)return Ii;var t,e=Gr,a=e.length,l,u="value"in Va?Va.value:Va.textContent,c=u.length;for(t=0;t<a&&e[t]===u[t];t++);var d=a-t;for(l=1;l<=d&&e[a-l]===u[c-l];l++);return Ii=u.slice(t,1<l?1-l:void 0)}function Wi(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 tu(){return!0}function md(){return!1}function be(t){function e(a,l,u,c,d){this._reactName=a,this._targetInst=u,this.type=l,this.nativeEvent=c,this.target=d,this.currentTarget=null;for(var x in t)t.hasOwnProperty(x)&&(a=t[x],this[x]=a?a(c):c[x]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?tu:md,this.isPropagationStopped=md,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=tu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=tu)},persist:function(){},isPersistent:tu}),e}var wn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},eu=be(wn),zs=v({},wn,{view:0,detail:0}),mv=be(zs),Vr,Xr,Ds,au=v({},zs,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Zr,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!==Ds&&(Ds&&t.type==="mousemove"?(Vr=t.screenX-Ds.screenX,Xr=t.screenY-Ds.screenY):Xr=Vr=0,Ds=t),Vr)},movementY:function(t){return"movementY"in t?t.movementY:Xr}}),yd=be(au),yv=v({},au,{dataTransfer:0}),gv=be(yv),vv=v({},zs,{relatedTarget:0}),Kr=be(vv),pv=v({},wn,{animationName:0,elapsedTime:0,pseudoElement:0}),xv=be(pv),bv=v({},wn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Sv=be(bv),Rv=v({},wn,{data:0}),gd=be(Rv),jv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_v={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"},Ev={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Ev[t])?!!e[t]:!1}function Zr(){return Nv}var Tv=v({},zs,{key:function(t){if(t.key){var e=jv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Wi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?_v[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Zr,charCode:function(t){return t.type==="keypress"?Wi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Wi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Mv=be(Tv),Cv=v({},au,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),vd=be(Cv),Av=v({},zs,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Zr}),Ov=be(Av),zv=v({},wn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Dv=be(zv),wv=v({},au,{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}),Uv=be(wv),Lv=v({},wn,{newState:0,oldState:0}),Bv=be(Lv),Hv=[9,13,27,32],Jr=ga&&"CompositionEvent"in window,ws=null;ga&&"documentMode"in document&&(ws=document.documentMode);var qv=ga&&"TextEvent"in window&&!ws,pd=ga&&(!Jr||ws&&8<ws&&11>=ws),xd=" ",bd=!1;function Sd(t,e){switch(t){case"keyup":return Hv.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Rd(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Cl=!1;function Qv(t,e){switch(t){case"compositionend":return Rd(e);case"keypress":return e.which!==32?null:(bd=!0,xd);case"textInput":return t=e.data,t===xd&&bd?null:t;default:return null}}function Yv(t,e){if(Cl)return t==="compositionend"||!Jr&&Sd(t,e)?(t=hd(),Ii=Gr=Va=null,Cl=!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 pd&&e.locale!=="ko"?null:e.data;default:return null}}var Gv={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 jd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Gv[t.type]:e==="textarea"}function _d(t,e,a,l){Tl?Ml?Ml.push(l):Ml=[l]:Tl=l,e=Ku(e,"onChange"),0<e.length&&(a=new eu("onChange","change",null,a,l),t.push({event:a,listeners:e}))}var Us=null,Ls=null;function Vv(t){iy(t,0)}function nu(t){var e=Cs(t);if(sd(e))return t}function Ed(t,e){if(t==="change")return e}var Nd=!1;if(ga){var Pr;if(ga){var kr="oninput"in document;if(!kr){var Td=document.createElement("div");Td.setAttribute("oninput","return;"),kr=typeof Td.oninput=="function"}Pr=kr}else Pr=!1;Nd=Pr&&(!document.documentMode||9<document.documentMode)}function Md(){Us&&(Us.detachEvent("onpropertychange",Cd),Ls=Us=null)}function Cd(t){if(t.propertyName==="value"&&nu(Ls)){var e=[];_d(e,Ls,t,qr(t)),dd(Vv,e)}}function Xv(t,e,a){t==="focusin"?(Md(),Us=e,Ls=a,Us.attachEvent("onpropertychange",Cd)):t==="focusout"&&Md()}function Kv(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return nu(Ls)}function Zv(t,e){if(t==="click")return nu(e)}function Jv(t,e){if(t==="input"||t==="change")return nu(e)}function Pv(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Oe=typeof Object.is=="function"?Object.is:Pv;function Bs(t,e){if(Oe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),l=Object.keys(e);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var u=a[l];if(!$e.call(e,u)||!Oe(t[u],e[u]))return!1}return!0}function Ad(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Od(t,e){var a=Ad(t);t=0;for(var l;a;){if(a.nodeType===3){if(l=t+a.textContent.length,t<=e&&l>=e)return{node:a,offset:e-t};t=l}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=Ad(a)}}function zd(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?zd(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Dd(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Fi(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=Fi(t.document)}return e}function Fr(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 kv=ga&&"documentMode"in document&&11>=document.documentMode,Al=null,$r=null,Hs=null,Ir=!1;function wd(t,e,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Ir||Al==null||Al!==Fi(l)||(l=Al,"selectionStart"in l&&Fr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Hs&&Bs(Hs,l)||(Hs=l,l=Ku($r,"onSelect"),0<l.length&&(e=new eu("onSelect","select",null,e,a),t.push({event:e,listeners:l}),e.target=Al)))}function Un(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var Ol={animationend:Un("Animation","AnimationEnd"),animationiteration:Un("Animation","AnimationIteration"),animationstart:Un("Animation","AnimationStart"),transitionrun:Un("Transition","TransitionRun"),transitionstart:Un("Transition","TransitionStart"),transitioncancel:Un("Transition","TransitionCancel"),transitionend:Un("Transition","TransitionEnd")},Wr={},Ud={};ga&&(Ud=document.createElement("div").style,"AnimationEvent"in window||(delete Ol.animationend.animation,delete Ol.animationiteration.animation,delete Ol.animationstart.animation),"TransitionEvent"in window||delete Ol.transitionend.transition);function Ln(t){if(Wr[t])return Wr[t];if(!Ol[t])return t;var e=Ol[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in Ud)return Wr[t]=e[a];return t}var Ld=Ln("animationend"),Bd=Ln("animationiteration"),Hd=Ln("animationstart"),Fv=Ln("transitionrun"),$v=Ln("transitionstart"),Iv=Ln("transitioncancel"),qd=Ln("transitionend"),Qd=new Map,tc="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(" ");tc.push("scrollEnd");function Ie(t,e){Qd.set(t,e),Dn(e,[t])}var lu=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)},Ye=[],zl=0,ec=0;function su(){for(var t=zl,e=ec=zl=0;e<t;){var a=Ye[e];Ye[e++]=null;var l=Ye[e];Ye[e++]=null;var u=Ye[e];Ye[e++]=null;var c=Ye[e];if(Ye[e++]=null,l!==null&&u!==null){var d=l.pending;d===null?u.next=u:(u.next=d.next,d.next=u),l.pending=u}c!==0&&Yd(a,u,c)}}function iu(t,e,a,l){Ye[zl++]=t,Ye[zl++]=e,Ye[zl++]=a,Ye[zl++]=l,ec|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function ac(t,e,a,l){return iu(t,e,a,l),uu(t)}function Bn(t,e){return iu(t,null,null,e),uu(t)}function Yd(t,e,a){t.lanes|=a;var l=t.alternate;l!==null&&(l.lanes|=a);for(var u=!1,c=t.return;c!==null;)c.childLanes|=a,l=c.alternate,l!==null&&(l.childLanes|=a),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(u=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,u&&e!==null&&(u=31-Ae(a),t=c.hiddenUpdates,l=t[u],l===null?t[u]=[e]:l.push(e),e.lane=a|536870912),c):null}function uu(t){if(50<ii)throw ii=0,fo=null,Error(r(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Dl={};function Wv(t,e,a,l){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ze(t,e,a,l){return new Wv(t,e,a,l)}function nc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function va(t,e){var a=t.alternate;return a===null?(a=ze(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 Gd(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 ru(t,e,a,l,u,c){var d=0;if(l=t,typeof t=="function")nc(t)&&(d=1);else if(typeof t=="string")d=lx(t,a,tt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case k:return t=ze(31,a,e,u),t.elementType=k,t.lanes=c,t;case M:return Hn(a.children,u,c,e);case C:d=8,u|=24;break;case U:return t=ze(12,a,e,u|2),t.elementType=U,t.lanes=c,t;case X:return t=ze(13,a,e,u),t.elementType=X,t.lanes=c,t;case $:return t=ze(19,a,e,u),t.elementType=$,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case K:d=10;break t;case P:d=9;break t;case L:d=11;break t;case Z:d=14;break t;case J:d=16,l=null;break t}d=29,a=Error(r(130,t===null?"null":typeof t,"")),l=null}return e=ze(d,a,e,u),e.elementType=t,e.type=l,e.lanes=c,e}function Hn(t,e,a,l){return t=ze(7,t,l,e),t.lanes=a,t}function lc(t,e,a){return t=ze(6,t,null,e),t.lanes=a,t}function Vd(t){var e=ze(18,null,null,0);return e.stateNode=t,e}function sc(t,e,a){return e=ze(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Xd=new WeakMap;function Ge(t,e){if(typeof t=="object"&&t!==null){var a=Xd.get(t);return a!==void 0?a:(e={value:t,source:e,stack:pl(e)},Xd.set(t,e),e)}return{value:t,source:e,stack:pl(e)}}var wl=[],Ul=0,cu=null,qs=0,Ve=[],Xe=0,Xa=null,la=1,sa="";function pa(t,e){wl[Ul++]=qs,wl[Ul++]=cu,cu=t,qs=e}function Kd(t,e,a){Ve[Xe++]=la,Ve[Xe++]=sa,Ve[Xe++]=Xa,Xa=t;var l=la;t=sa;var u=32-Ae(l)-1;l&=~(1<<u),a+=1;var c=32-Ae(e)+u;if(30<c){var d=u-u%5;c=(l&(1<<d)-1).toString(32),l>>=d,u-=d,la=1<<32-Ae(e)+u|a<<u|l,sa=c+t}else la=1<<c|a<<u|l,sa=t}function ic(t){t.return!==null&&(pa(t,1),Kd(t,1,0))}function uc(t){for(;t===cu;)cu=wl[--Ul],wl[Ul]=null,qs=wl[--Ul],wl[Ul]=null;for(;t===Xa;)Xa=Ve[--Xe],Ve[Xe]=null,sa=Ve[--Xe],Ve[Xe]=null,la=Ve[--Xe],Ve[Xe]=null}function Zd(t,e){Ve[Xe++]=la,Ve[Xe++]=sa,Ve[Xe++]=Xa,la=e.id,sa=e.overflow,Xa=t}var ie=null,qt=null,Nt=!1,Ka=null,Ke=!1,rc=Error(r(519));function Za(t){var e=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Qs(Ge(e,t)),rc}function Jd(t){var e=t.stateNode,a=t.type,l=t.memoizedProps;switch(e[se]=t,e[xe]=l,a){case"dialog":jt("cancel",e),jt("close",e);break;case"iframe":case"object":case"embed":jt("load",e);break;case"video":case"audio":for(a=0;a<ri.length;a++)jt(ri[a],e);break;case"source":jt("error",e);break;case"img":case"image":case"link":jt("error",e),jt("load",e);break;case"details":jt("toggle",e);break;case"input":jt("invalid",e),id(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":jt("invalid",e);break;case"textarea":jt("invalid",e),rd(e,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||l.suppressHydrationWarning===!0||oy(e.textContent,a)?(l.popover!=null&&(jt("beforetoggle",e),jt("toggle",e)),l.onScroll!=null&&jt("scroll",e),l.onScrollEnd!=null&&jt("scrollend",e),l.onClick!=null&&(e.onclick=ya),e=!0):e=!1,e||Za(t,!0)}function Pd(t){for(ie=t.return;ie;)switch(ie.tag){case 5:case 31:case 13:Ke=!1;return;case 27:case 3:Ke=!0;return;default:ie=ie.return}}function Ll(t){if(t!==ie)return!1;if(!Nt)return Pd(t),Nt=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||To(t.type,t.memoizedProps)),a=!a),a&&qt&&Za(t),Pd(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));qt=xy(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));qt=xy(t)}else e===27?(e=qt,un(t.type)?(t=zo,zo=null,qt=t):qt=e):qt=ie?Je(t.stateNode.nextSibling):null;return!0}function qn(){qt=ie=null,Nt=!1}function cc(){var t=Ka;return t!==null&&(_e===null?_e=t:_e.push.apply(_e,t),Ka=null),t}function Qs(t){Ka===null?Ka=[t]:Ka.push(t)}var oc=N(null),Qn=null,xa=null;function Ja(t,e,a){I(oc,e._currentValue),e._currentValue=a}function ba(t){t._currentValue=oc.current,Q(oc)}function fc(t,e,a){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===a)break;t=t.return}}function dc(t,e,a,l){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var c=u.dependencies;if(c!==null){var d=u.child;c=c.firstContext;t:for(;c!==null;){var x=c;c=u;for(var _=0;_<e.length;_++)if(x.context===e[_]){c.lanes|=a,x=c.alternate,x!==null&&(x.lanes|=a),fc(c.return,a,t),l||(d=null);break t}c=x.next}}else if(u.tag===18){if(d=u.return,d===null)throw Error(r(341));d.lanes|=a,c=d.alternate,c!==null&&(c.lanes|=a),fc(d,a,t),d=null}else d=u.child;if(d!==null)d.return=u;else for(d=u;d!==null;){if(d===t){d=null;break}if(u=d.sibling,u!==null){u.return=d.return,d=u;break}d=d.return}u=d}}function Bl(t,e,a,l){t=null;for(var u=e,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var d=u.alternate;if(d===null)throw Error(r(387));if(d=d.memoizedProps,d!==null){var x=u.type;Oe(u.pendingProps.value,d.value)||(t!==null?t.push(x):t=[x])}}else if(u===bt.current){if(d=u.alternate,d===null)throw Error(r(387));d.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(hi):t=[hi])}u=u.return}t!==null&&dc(e,t,a,l),e.flags|=262144}function ou(t){for(t=t.firstContext;t!==null;){if(!Oe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Yn(t){Qn=t,xa=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ue(t){return kd(Qn,t)}function fu(t,e){return Qn===null&&Yn(t),kd(t,e)}function kd(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},xa===null){if(t===null)throw Error(r(308));xa=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else xa=xa.next=e;return a}var tp=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},ep=n.unstable_scheduleCallback,ap=n.unstable_NormalPriority,Ft={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hc(){return{controller:new tp,data:new Map,refCount:0}}function Ys(t){t.refCount--,t.refCount===0&&ep(ap,function(){t.controller.abort()})}var Gs=null,mc=0,Hl=0,ql=null;function np(t,e){if(Gs===null){var a=Gs=[];mc=0,Hl=po(),ql={status:"pending",value:void 0,then:function(l){a.push(l)}}}return mc++,e.then(Fd,Fd),e}function Fd(){if(--mc===0&&Gs!==null){ql!==null&&(ql.status="fulfilled");var t=Gs;Gs=null,Hl=0,ql=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function lp(t,e){var a=[],l={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var u=0;u<a.length;u++)(0,a[u])(e)},function(u){for(l.status="rejected",l.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),l}var $d=D.S;D.S=function(t,e){wm=St(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&np(t,e),$d!==null&&$d(t,e)};var Gn=N(null);function yc(){var t=Gn.current;return t!==null?t:Bt.pooledCache}function du(t,e){e===null?I(Gn,Gn.current):I(Gn,e.pool)}function Id(){var t=yc();return t===null?null:{parent:Ft._currentValue,pool:t}}var Ql=Error(r(460)),gc=Error(r(474)),hu=Error(r(542)),mu={then:function(){}};function Wd(t){return t=t.status,t==="fulfilled"||t==="rejected"}function th(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(ya,ya),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ah(t),t;default:if(typeof e.status=="string")e.then(ya,ya);else{if(t=Bt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=l}},function(l){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,ah(t),t}throw Xn=e,Ql}}function Vn(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(Xn=a,Ql):a}}var Xn=null;function eh(){if(Xn===null)throw Error(r(459));var t=Xn;return Xn=null,t}function ah(t){if(t===Ql||t===hu)throw Error(r(483))}var Yl=null,Vs=0;function yu(t){var e=Vs;return Vs+=1,Yl===null&&(Yl=[]),th(Yl,t,e)}function Xs(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function gu(t,e){throw e.$$typeof===S?Error(r(525)):(t=Object.prototype.toString.call(e),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function nh(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 l(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 u(A,T){return A=va(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 d(A){return t&&A.alternate===null&&(A.flags|=67108866),A}function x(A,T,O,q){return T===null||T.tag!==6?(T=lc(O,A.mode,q),T.return=A,T):(T=u(T,O),T.return=A,T)}function _(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===J&&Vn(ct)===T.type)?(T=u(T,O.props),Xs(T,O),T.return=A,T):(T=ru(O.type,O.key,O.props,null,A.mode,q),Xs(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=sc(O,A.mode,q),T.return=A,T):(T=u(T,O.children||[]),T.return=A,T)}function H(A,T,O,q,ct){return T===null||T.tag!==7?(T=Hn(O,A.mode,q,ct),T.return=A,T):(T=u(T,O),T.return=A,T)}function Y(A,T,O){if(typeof T=="string"&&T!==""||typeof T=="number"||typeof T=="bigint")return T=lc(""+T,A.mode,O),T.return=A,T;if(typeof T=="object"&&T!==null){switch(T.$$typeof){case j:return O=ru(T.type,T.key,T.props,null,A.mode,O),Xs(O,T),O.return=A,O;case R:return T=sc(T,A.mode,O),T.return=A,T;case J:return T=Vn(T),Y(A,T,O)}if(nt(T)||st(T))return T=Hn(T,A.mode,O,null),T.return=A,T;if(typeof T.then=="function")return Y(A,yu(T),O);if(T.$$typeof===K)return Y(A,fu(A,T),O);gu(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?_(A,T,O,q):null;case R:return O.key===ct?z(A,T,O,q):null;case J:return O=Vn(O),w(A,T,O,q)}if(nt(O)||st(O))return ct!==null?null:H(A,T,O,q,null);if(typeof O.then=="function")return w(A,T,yu(O),q);if(O.$$typeof===K)return w(A,T,fu(A,O),q);gu(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,_(T,A,q,ct);case R:return A=A.get(q.key===null?O:q.key)||null,z(T,A,q,ct);case J:return q=Vn(q),B(A,T,O,q,ct)}if(nt(q)||st(q))return A=A.get(O)||null,H(T,A,q,ct,null);if(typeof q.then=="function")return B(A,T,O,yu(q),ct);if(q.$$typeof===K)return B(A,T,O,fu(T,q),ct);gu(T,q)}return null}function lt(A,T,O,q){for(var ct=null,Mt=null,ut=T,vt=T=0,Et=null;ut!==null&&vt<O.length;vt++){ut.index>vt?(Et=ut,ut=null):Et=ut.sibling;var Ct=w(A,ut,O[vt],q);if(Ct===null){ut===null&&(ut=Et);break}t&&ut&&Ct.alternate===null&&e(A,ut),T=c(Ct,T,vt),Mt===null?ct=Ct:Mt.sibling=Ct,Mt=Ct,ut=Et}if(vt===O.length)return a(A,ut),Nt&&pa(A,vt),ct;if(ut===null){for(;vt<O.length;vt++)ut=Y(A,O[vt],q),ut!==null&&(T=c(ut,T,vt),Mt===null?ct=ut:Mt.sibling=ut,Mt=ut);return Nt&&pa(A,vt),ct}for(ut=l(ut);vt<O.length;vt++)Et=B(ut,A,vt,O[vt],q),Et!==null&&(t&&Et.alternate!==null&&ut.delete(Et.key===null?vt:Et.key),T=c(Et,T,vt),Mt===null?ct=Et:Mt.sibling=Et,Mt=Et);return t&&ut.forEach(function(dn){return e(A,dn)}),Nt&&pa(A,vt),ct}function dt(A,T,O,q){if(O==null)throw Error(r(151));for(var ct=null,Mt=null,ut=T,vt=T=0,Et=null,Ct=O.next();ut!==null&&!Ct.done;vt++,Ct=O.next()){ut.index>vt?(Et=ut,ut=null):Et=ut.sibling;var dn=w(A,ut,Ct.value,q);if(dn===null){ut===null&&(ut=Et);break}t&&ut&&dn.alternate===null&&e(A,ut),T=c(dn,T,vt),Mt===null?ct=dn:Mt.sibling=dn,Mt=dn,ut=Et}if(Ct.done)return a(A,ut),Nt&&pa(A,vt),ct;if(ut===null){for(;!Ct.done;vt++,Ct=O.next())Ct=Y(A,Ct.value,q),Ct!==null&&(T=c(Ct,T,vt),Mt===null?ct=Ct:Mt.sibling=Ct,Mt=Ct);return Nt&&pa(A,vt),ct}for(ut=l(ut);!Ct.done;vt++,Ct=O.next())Ct=B(ut,A,vt,Ct.value,q),Ct!==null&&(t&&Ct.alternate!==null&&ut.delete(Ct.key===null?vt:Ct.key),T=c(Ct,T,vt),Mt===null?ct=Ct:Mt.sibling=Ct,Mt=Ct);return t&&ut.forEach(function(yx){return e(A,yx)}),Nt&&pa(A,vt),ct}function Lt(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=u(T,O.props.children),q.return=A,A=q;break t}}else if(T.elementType===ct||typeof ct=="object"&&ct!==null&&ct.$$typeof===J&&Vn(ct)===T.type){a(A,T.sibling),q=u(T,O.props),Xs(q,O),q.return=A,A=q;break t}a(A,T);break}else e(A,T);T=T.sibling}O.type===M?(q=Hn(O.props.children,A.mode,q,O.key),q.return=A,A=q):(q=ru(O.type,O.key,O.props,null,A.mode,q),Xs(q,O),q.return=A,A=q)}return d(A);case R: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=u(T,O.children||[]),q.return=A,A=q;break t}else{a(A,T);break}else e(A,T);T=T.sibling}q=sc(O,A.mode,q),q.return=A,A=q}return d(A);case J:return O=Vn(O),Lt(A,T,O,q)}if(nt(O))return lt(A,T,O,q);if(st(O)){if(ct=st(O),typeof ct!="function")throw Error(r(150));return O=ct.call(O),dt(A,T,O,q)}if(typeof O.then=="function")return Lt(A,T,yu(O),q);if(O.$$typeof===K)return Lt(A,T,fu(A,O),q);gu(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=u(T,O),q.return=A,A=q):(a(A,T),q=lc(O,A.mode,q),q.return=A,A=q),d(A)):a(A,T)}return function(A,T,O,q){try{Vs=0;var ct=Lt(A,T,O,q);return Yl=null,ct}catch(ut){if(ut===Ql||ut===hu)throw ut;var Mt=ze(29,ut,null,A.mode);return Mt.lanes=q,Mt.return=A,Mt}finally{}}}var Kn=nh(!0),lh=nh(!1),Pa=!1;function vc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function pc(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function ka(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Fa(t,e,a){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(At&2)!==0){var u=l.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),l.pending=e,e=uu(t),Yd(t,null,a),e}return iu(t,l,e,a),uu(t)}function Ks(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,kf(t,a)}}function xc(t,e){var a=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var u=null,c=null;if(a=a.firstBaseUpdate,a!==null){do{var d={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};c===null?u=c=d:c=c.next=d,a=a.next}while(a!==null);c===null?u=c=e:c=c.next=e}else u=c=e;a={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:c,shared:l.shared,callbacks:l.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var bc=!1;function Zs(){if(bc){var t=ql;if(t!==null)throw t}}function Js(t,e,a,l){bc=!1;var u=t.updateQueue;Pa=!1;var c=u.firstBaseUpdate,d=u.lastBaseUpdate,x=u.shared.pending;if(x!==null){u.shared.pending=null;var _=x,z=_.next;_.next=null,d===null?c=z:d.next=z,d=_;var H=t.alternate;H!==null&&(H=H.updateQueue,x=H.lastBaseUpdate,x!==d&&(x===null?H.firstBaseUpdate=z:x.next=z,H.lastBaseUpdate=_))}if(c!==null){var Y=u.baseState;d=0,H=z=_=null,x=c;do{var w=x.lane&-536870913,B=w!==x.lane;if(B?(_t&w)===w:(l&w)===w){w!==0&&w===Hl&&(bc=!0),H!==null&&(H=H.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});t:{var lt=t,dt=x;w=e;var Lt=a;switch(dt.tag){case 1:if(lt=dt.payload,typeof lt=="function"){Y=lt.call(Lt,Y,w);break t}Y=lt;break t;case 3:lt.flags=lt.flags&-65537|128;case 0:if(lt=dt.payload,w=typeof lt=="function"?lt.call(Lt,Y,w):lt,w==null)break t;Y=v({},Y,w);break t;case 2:Pa=!0}}w=x.callback,w!==null&&(t.flags|=64,B&&(t.flags|=8192),B=u.callbacks,B===null?u.callbacks=[w]:B.push(w))}else B={lane:w,tag:x.tag,payload:x.payload,callback:x.callback,next:null},H===null?(z=H=B,_=Y):H=H.next=B,d|=w;if(x=x.next,x===null){if(x=u.shared.pending,x===null)break;B=x,x=B.next,B.next=null,u.lastBaseUpdate=B,u.shared.pending=null}}while(!0);H===null&&(_=Y),u.baseState=_,u.firstBaseUpdate=z,u.lastBaseUpdate=H,c===null&&(u.shared.lanes=0),en|=d,t.lanes=d,t.memoizedState=Y}}function sh(t,e){if(typeof t!="function")throw Error(r(191,t));t.call(e)}function ih(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)sh(a[t],e)}var Gl=N(null),vu=N(0);function uh(t,e){t=Ca,I(vu,t),I(Gl,e),Ca=t|e.baseLanes}function Sc(){I(vu,Ca),I(Gl,Gl.current)}function Rc(){Ca=vu.current,Q(Gl),Q(vu)}var De=N(null),Ze=null;function $a(t){var e=t.alternate;I(Pt,Pt.current&1),I(De,t),Ze===null&&(e===null||Gl.current!==null||e.memoizedState!==null)&&(Ze=t)}function jc(t){I(Pt,Pt.current),I(De,t),Ze===null&&(Ze=t)}function rh(t){t.tag===22?(I(Pt,Pt.current),I(De,t),Ze===null&&(Ze=t)):Ia()}function Ia(){I(Pt,Pt.current),I(De,De.current)}function we(t){Q(De),Ze===t&&(Ze=null),Q(Pt)}var Pt=N(0);function pu(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Ao(a)||Oo(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 Sa=0,gt=null,wt=null,$t=null,xu=!1,Vl=!1,Zn=!1,bu=0,Ps=0,Xl=null,sp=0;function Xt(){throw Error(r(321))}function _c(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!Oe(t[a],e[a]))return!1;return!0}function Ec(t,e,a,l,u,c){return Sa=c,gt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,D.H=t===null||t.memoizedState===null?Kh:Qc,Zn=!1,c=a(l,u),Zn=!1,Vl&&(c=oh(e,a,l,u)),ch(t),c}function ch(t){D.H=$s;var e=wt!==null&&wt.next!==null;if(Sa=0,$t=wt=gt=null,xu=!1,Ps=0,Xl=null,e)throw Error(r(300));t===null||It||(t=t.dependencies,t!==null&&ou(t)&&(It=!0))}function oh(t,e,a,l){gt=t;var u=0;do{if(Vl&&(Xl=null),Ps=0,Vl=!1,25<=u)throw Error(r(301));if(u+=1,$t=wt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}D.H=Zh,c=e(a,l)}while(Vl);return c}function ip(){var t=D.H,e=t.useState()[0];return e=typeof e.then=="function"?ks(e):e,t=t.useState()[0],(wt!==null?wt.memoizedState:null)!==t&&(gt.flags|=1024),e}function Nc(){var t=bu!==0;return bu=0,t}function Tc(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function Mc(t){if(xu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}xu=!1}Sa=0,$t=wt=gt=null,Vl=!1,Ps=bu=0,Xl=null}function me(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $t===null?gt.memoizedState=$t=t:$t=$t.next=t,$t}function kt(){if(wt===null){var t=gt.alternate;t=t!==null?t.memoizedState:null}else t=wt.next;var e=$t===null?gt.memoizedState:$t.next;if(e!==null)$t=e,wt=t;else{if(t===null)throw gt.alternate===null?Error(r(467)):Error(r(310));wt=t,t={memoizedState:wt.memoizedState,baseState:wt.baseState,baseQueue:wt.baseQueue,queue:wt.queue,next:null},$t===null?gt.memoizedState=$t=t:$t=$t.next=t}return $t}function Su(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ks(t){var e=Ps;return Ps+=1,Xl===null&&(Xl=[]),t=th(Xl,t,e),e=gt,($t===null?e.memoizedState:$t.next)===null&&(e=e.alternate,D.H=e===null||e.memoizedState===null?Kh:Qc),t}function Ru(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return ks(t);if(t.$$typeof===K)return ue(t)}throw Error(r(438,String(t)))}function Cc(t){var e=null,a=gt.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var l=gt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=Su(),gt.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),l=0;l<t;l++)a[l]=G;return e.index++,a}function Ra(t,e){return typeof e=="function"?e(t):e}function ju(t){var e=kt();return Ac(e,wt,t)}function Ac(t,e,a){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=a;var u=t.baseQueue,c=l.pending;if(c!==null){if(u!==null){var d=u.next;u.next=c.next,c.next=d}e.baseQueue=u=c,l.pending=null}if(c=t.baseState,u===null)t.memoizedState=c;else{e=u.next;var x=d=null,_=null,z=e,H=!1;do{var Y=z.lane&-536870913;if(Y!==z.lane?(_t&Y)===Y:(Sa&Y)===Y){var w=z.revertLane;if(w===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),Y===Hl&&(H=!0);else if((Sa&w)===w){z=z.next,w===Hl&&(H=!0);continue}else Y={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},_===null?(x=_=Y,d=c):_=_.next=Y,gt.lanes|=w,en|=w;Y=z.action,Zn&&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},_===null?(x=_=w,d=c):_=_.next=w,gt.lanes|=Y,en|=Y;z=z.next}while(z!==null&&z!==e);if(_===null?d=c:_.next=x,!Oe(c,t.memoizedState)&&(It=!0,H&&(a=ql,a!==null)))throw a;t.memoizedState=c,t.baseState=d,t.baseQueue=_,l.lastRenderedState=c}return u===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Oc(t){var e=kt(),a=e.queue;if(a===null)throw Error(r(311));a.lastRenderedReducer=t;var l=a.dispatch,u=a.pending,c=e.memoizedState;if(u!==null){a.pending=null;var d=u=u.next;do c=t(c,d.action),d=d.next;while(d!==u);Oe(c,e.memoizedState)||(It=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),a.lastRenderedState=c}return[c,l]}function fh(t,e,a){var l=gt,u=kt(),c=Nt;if(c){if(a===void 0)throw Error(r(407));a=a()}else a=e();var d=!Oe((wt||u).memoizedState,a);if(d&&(u.memoizedState=a,It=!0),u=u.queue,wc(mh.bind(null,l,u,t),[t]),u.getSnapshot!==e||d||$t!==null&&$t.memoizedState.tag&1){if(l.flags|=2048,Kl(9,{destroy:void 0},hh.bind(null,l,u,a,e),null),Bt===null)throw Error(r(349));c||(Sa&127)!==0||dh(l,e,a)}return a}function dh(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=gt.updateQueue,e===null?(e=Su(),gt.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function hh(t,e,a,l){e.value=a,e.getSnapshot=l,yh(e)&&gh(t)}function mh(t,e,a){return a(function(){yh(e)&&gh(t)})}function yh(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!Oe(t,a)}catch{return!0}}function gh(t){var e=Bn(t,2);e!==null&&Ee(e,t,2)}function zc(t){var e=me();if(typeof t=="function"){var a=t;if(t=a(),Zn){Ya(!0);try{a()}finally{Ya(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:t},e}function vh(t,e,a,l){return t.baseState=a,Ac(t,wt,typeof l=="function"?l:Ra)}function up(t,e,a,l,u){if(Nu(t))throw Error(r(485));if(t=e.action,t!==null){var c={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){c.listeners.push(d)}};D.T!==null?a(!0):c.isTransition=!1,l(c),a=e.pending,a===null?(c.next=e.pending=c,ph(e,c)):(c.next=a.next,e.pending=a.next=c)}}function ph(t,e){var a=e.action,l=e.payload,u=t.state;if(e.isTransition){var c=D.T,d={};D.T=d;try{var x=a(u,l),_=D.S;_!==null&&_(d,x),xh(t,e,x)}catch(z){Dc(t,e,z)}finally{c!==null&&d.types!==null&&(c.types=d.types),D.T=c}}else try{c=a(u,l),xh(t,e,c)}catch(z){Dc(t,e,z)}}function xh(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){bh(t,e,l)},function(l){return Dc(t,e,l)}):bh(t,e,a)}function bh(t,e,a){e.status="fulfilled",e.value=a,Sh(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,ph(t,a)))}function Dc(t,e,a){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=a,Sh(e),e=e.next;while(e!==l)}t.action=null}function Sh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Rh(t,e){return e}function jh(t,e){if(Nt){var a=Bt.formState;if(a!==null){t:{var l=gt;if(Nt){if(qt){e:{for(var u=qt,c=Ke;u.nodeType!==8;){if(!c){u=null;break e}if(u=Je(u.nextSibling),u===null){u=null;break e}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){qt=Je(u.nextSibling),l=u.data==="F!";break t}}Za(l)}l=!1}l&&(e=a[0])}}return a=me(),a.memoizedState=a.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rh,lastRenderedState:e},a.queue=l,a=Gh.bind(null,gt,l),l.dispatch=a,l=zc(!1),c=qc.bind(null,gt,!1,l.queue),l=me(),u={state:e,dispatch:null,action:t,pending:null},l.queue=u,a=up.bind(null,gt,u,c,a),u.dispatch=a,l.memoizedState=t,[e,a,!1]}function _h(t){var e=kt();return Eh(e,wt,t)}function Eh(t,e,a){if(e=Ac(t,e,Rh)[0],t=ju(Ra)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=ks(e)}catch(d){throw d===Ql?hu:d}else l=e;e=kt();var u=e.queue,c=u.dispatch;return a!==e.memoizedState&&(gt.flags|=2048,Kl(9,{destroy:void 0},rp.bind(null,u,a),null)),[l,c,t]}function rp(t,e){t.action=e}function Nh(t){var e=kt(),a=wt;if(a!==null)return Eh(e,a,t);kt(),e=e.memoizedState,a=kt();var l=a.queue.dispatch;return a.memoizedState=t,[e,l,!1]}function Kl(t,e,a,l){return t={tag:t,create:a,deps:l,inst:e,next:null},e=gt.updateQueue,e===null&&(e=Su(),gt.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(l=a.next,a.next=t,t.next=l,e.lastEffect=t),t}function Th(){return kt().memoizedState}function _u(t,e,a,l){var u=me();gt.flags|=t,u.memoizedState=Kl(1|e,{destroy:void 0},a,l===void 0?null:l)}function Eu(t,e,a,l){var u=kt();l=l===void 0?null:l;var c=u.memoizedState.inst;wt!==null&&l!==null&&_c(l,wt.memoizedState.deps)?u.memoizedState=Kl(e,c,a,l):(gt.flags|=t,u.memoizedState=Kl(1|e,c,a,l))}function Mh(t,e){_u(8390656,8,t,e)}function wc(t,e){Eu(2048,8,t,e)}function cp(t){gt.flags|=4;var e=gt.updateQueue;if(e===null)e=Su(),gt.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function Ch(t){var e=kt().memoizedState;return cp({ref:e,nextImpl:t}),function(){if((At&2)!==0)throw Error(r(440));return e.impl.apply(void 0,arguments)}}function Ah(t,e){return Eu(4,2,t,e)}function Oh(t,e){return Eu(4,4,t,e)}function zh(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 Dh(t,e,a){a=a!=null?a.concat([t]):null,Eu(4,4,zh.bind(null,e,t),a)}function Uc(){}function wh(t,e){var a=kt();e=e===void 0?null:e;var l=a.memoizedState;return e!==null&&_c(e,l[1])?l[0]:(a.memoizedState=[t,e],t)}function Uh(t,e){var a=kt();e=e===void 0?null:e;var l=a.memoizedState;if(e!==null&&_c(e,l[1]))return l[0];if(l=t(),Zn){Ya(!0);try{t()}finally{Ya(!1)}}return a.memoizedState=[l,e],l}function Lc(t,e,a){return a===void 0||(Sa&1073741824)!==0&&(_t&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=Lm(),gt.lanes|=t,en|=t,a)}function Lh(t,e,a,l){return Oe(a,e)?a:Gl.current!==null?(t=Lc(t,a,l),Oe(t,e)||(It=!0),t):(Sa&42)===0||(Sa&1073741824)!==0&&(_t&261930)===0?(It=!0,t.memoizedState=a):(t=Lm(),gt.lanes|=t,en|=t,e)}function Bh(t,e,a,l,u){var c=V.p;V.p=c!==0&&8>c?c:8;var d=D.T,x={};D.T=x,qc(t,!1,e,a);try{var _=u(),z=D.S;if(z!==null&&z(x,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var H=lp(_,l);Fs(t,e,H,Be(t))}else Fs(t,e,l,Be(t))}catch(Y){Fs(t,e,{then:function(){},status:"rejected",reason:Y},Be())}finally{V.p=c,d!==null&&x.types!==null&&(d.types=x.types),D.T=d}}function op(){}function Bc(t,e,a,l){if(t.tag!==5)throw Error(r(476));var u=Hh(t).queue;Bh(t,u,e,at,a===null?op:function(){return qh(t),a(l)})}function Hh(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:Ra,lastRenderedState:at},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function qh(t){var e=Hh(t);e.next===null&&(e=t.alternate.memoizedState),Fs(t,e.next.queue,{},Be())}function Hc(){return ue(hi)}function Qh(){return kt().memoizedState}function Yh(){return kt().memoizedState}function fp(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=Be();t=ka(a);var l=Fa(e,t,a);l!==null&&(Ee(l,e,a),Ks(l,e,a)),e={cache:hc()},t.payload=e;return}e=e.return}}function dp(t,e,a){var l=Be();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Nu(t)?Vh(e,a):(a=ac(t,e,a,l),a!==null&&(Ee(a,t,l),Xh(a,e,l)))}function Gh(t,e,a){var l=Be();Fs(t,e,a,l)}function Fs(t,e,a,l){var u={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Nu(t))Vh(e,u);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var d=e.lastRenderedState,x=c(d,a);if(u.hasEagerState=!0,u.eagerState=x,Oe(x,d))return iu(t,e,u,0),Bt===null&&su(),!1}catch{}finally{}if(a=ac(t,e,u,l),a!==null)return Ee(a,t,l),Xh(a,e,l),!0}return!1}function qc(t,e,a,l){if(l={lane:2,revertLane:po(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Nu(t)){if(e)throw Error(r(479))}else e=ac(t,a,l,2),e!==null&&Ee(e,t,2)}function Nu(t){var e=t.alternate;return t===gt||e!==null&&e===gt}function Vh(t,e){Vl=xu=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function Xh(t,e,a){if((a&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,kf(t,a)}}var $s={readContext:ue,use:Ru,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};$s.useEffectEvent=Xt;var Kh={readContext:ue,use:Ru,useCallback:function(t,e){return me().memoizedState=[t,e===void 0?null:e],t},useContext:ue,useEffect:Mh,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,_u(4194308,4,zh.bind(null,e,t),a)},useLayoutEffect:function(t,e){return _u(4194308,4,t,e)},useInsertionEffect:function(t,e){_u(4,2,t,e)},useMemo:function(t,e){var a=me();e=e===void 0?null:e;var l=t();if(Zn){Ya(!0);try{t()}finally{Ya(!1)}}return a.memoizedState=[l,e],l},useReducer:function(t,e,a){var l=me();if(a!==void 0){var u=a(e);if(Zn){Ya(!0);try{a(e)}finally{Ya(!1)}}}else u=e;return l.memoizedState=l.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},l.queue=t,t=t.dispatch=dp.bind(null,gt,t),[l.memoizedState,t]},useRef:function(t){var e=me();return t={current:t},e.memoizedState=t},useState:function(t){t=zc(t);var e=t.queue,a=Gh.bind(null,gt,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:Uc,useDeferredValue:function(t,e){var a=me();return Lc(a,t,e)},useTransition:function(){var t=zc(!1);return t=Bh.bind(null,gt,t.queue,!0,!1),me().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var l=gt,u=me();if(Nt){if(a===void 0)throw Error(r(407));a=a()}else{if(a=e(),Bt===null)throw Error(r(349));(_t&127)!==0||dh(l,e,a)}u.memoizedState=a;var c={value:a,getSnapshot:e};return u.queue=c,Mh(mh.bind(null,l,c,t),[t]),l.flags|=2048,Kl(9,{destroy:void 0},hh.bind(null,l,c,a,e),null),a},useId:function(){var t=me(),e=Bt.identifierPrefix;if(Nt){var a=sa,l=la;a=(l&~(1<<32-Ae(l)-1)).toString(32)+a,e="_"+e+"R_"+a,a=bu++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=sp++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Hc,useFormState:jh,useActionState:jh,useOptimistic:function(t){var e=me();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=qc.bind(null,gt,!0,a),a.dispatch=e,[t,e]},useMemoCache:Cc,useCacheRefresh:function(){return me().memoizedState=fp.bind(null,gt)},useEffectEvent:function(t){var e=me(),a={impl:t};return e.memoizedState=a,function(){if((At&2)!==0)throw Error(r(440));return a.impl.apply(void 0,arguments)}}},Qc={readContext:ue,use:Ru,useCallback:wh,useContext:ue,useEffect:wc,useImperativeHandle:Dh,useInsertionEffect:Ah,useLayoutEffect:Oh,useMemo:Uh,useReducer:ju,useRef:Th,useState:function(){return ju(Ra)},useDebugValue:Uc,useDeferredValue:function(t,e){var a=kt();return Lh(a,wt.memoizedState,t,e)},useTransition:function(){var t=ju(Ra)[0],e=kt().memoizedState;return[typeof t=="boolean"?t:ks(t),e]},useSyncExternalStore:fh,useId:Qh,useHostTransitionStatus:Hc,useFormState:_h,useActionState:_h,useOptimistic:function(t,e){var a=kt();return vh(a,wt,t,e)},useMemoCache:Cc,useCacheRefresh:Yh};Qc.useEffectEvent=Ch;var Zh={readContext:ue,use:Ru,useCallback:wh,useContext:ue,useEffect:wc,useImperativeHandle:Dh,useInsertionEffect:Ah,useLayoutEffect:Oh,useMemo:Uh,useReducer:Oc,useRef:Th,useState:function(){return Oc(Ra)},useDebugValue:Uc,useDeferredValue:function(t,e){var a=kt();return wt===null?Lc(a,t,e):Lh(a,wt.memoizedState,t,e)},useTransition:function(){var t=Oc(Ra)[0],e=kt().memoizedState;return[typeof t=="boolean"?t:ks(t),e]},useSyncExternalStore:fh,useId:Qh,useHostTransitionStatus:Hc,useFormState:Nh,useActionState:Nh,useOptimistic:function(t,e){var a=kt();return wt!==null?vh(a,wt,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:Cc,useCacheRefresh:Yh};Zh.useEffectEvent=Ch;function Yc(t,e,a,l){e=t.memoizedState,a=a(l,e),a=a==null?e:v({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var Gc={enqueueSetState:function(t,e,a){t=t._reactInternals;var l=Be(),u=ka(l);u.payload=e,a!=null&&(u.callback=a),e=Fa(t,u,l),e!==null&&(Ee(e,t,l),Ks(e,t,l))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var l=Be(),u=ka(l);u.tag=1,u.payload=e,a!=null&&(u.callback=a),e=Fa(t,u,l),e!==null&&(Ee(e,t,l),Ks(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=Be(),l=ka(a);l.tag=2,e!=null&&(l.callback=e),e=Fa(t,l,a),e!==null&&(Ee(e,t,a),Ks(e,t,a))}};function Jh(t,e,a,l,u,c,d){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,c,d):e.prototype&&e.prototype.isPureReactComponent?!Bs(a,l)||!Bs(u,c):!0}function Ph(t,e,a,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,l),e.state!==t&&Gc.enqueueReplaceState(e,e.state,null)}function Jn(t,e){var a=e;if("ref"in e){a={};for(var l in e)l!=="ref"&&(a[l]=e[l])}if(t=t.defaultProps){a===e&&(a=v({},a));for(var u in t)a[u]===void 0&&(a[u]=t[u])}return a}function kh(t){lu(t)}function Fh(t){console.error(t)}function $h(t){lu(t)}function Tu(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Ih(t,e,a){try{var l=t.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Vc(t,e,a){return a=ka(a),a.tag=3,a.payload={element:null},a.callback=function(){Tu(t,e)},a}function Wh(t){return t=ka(t),t.tag=3,t}function tm(t,e,a,l){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var c=l.value;t.payload=function(){return u(c)},t.callback=function(){Ih(e,a,l)}}var d=a.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(t.callback=function(){Ih(e,a,l),typeof u!="function"&&(an===null?an=new Set([this]):an.add(this));var x=l.stack;this.componentDidCatch(l.value,{componentStack:x!==null?x:""})})}function hp(t,e,a,l,u){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=a.alternate,e!==null&&Bl(e,a,u,!0),a=De.current,a!==null){switch(a.tag){case 31:case 13:return Ze===null?qu():a.alternate===null&&Kt===0&&(Kt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,l===mu?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([l]):e.add(l),yo(t,l,u)),!1;case 22:return a.flags|=65536,l===mu?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([l]):a.add(l)),yo(t,l,u)),!1}throw Error(r(435,a.tag))}return yo(t,l,u),qu(),!1}if(Nt)return e=De.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,l!==rc&&(t=Error(r(422),{cause:l}),Qs(Ge(t,a)))):(l!==rc&&(e=Error(r(423),{cause:l}),Qs(Ge(e,a))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,l=Ge(l,a),u=Vc(t.stateNode,l,u),xc(t,u),Kt!==4&&(Kt=2)),!1;var c=Error(r(520),{cause:l});if(c=Ge(c,a),si===null?si=[c]:si.push(c),Kt!==4&&(Kt=2),e===null)return!0;l=Ge(l,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=u&-u,a.lanes|=t,t=Vc(a.stateNode,l,t),xc(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"&&(an===null||!an.has(c))))return a.flags|=65536,u&=-u,a.lanes|=u,u=Wh(u),tm(u,t,a,l),xc(a,u),!1}a=a.return}while(a!==null);return!1}var Xc=Error(r(461)),It=!1;function re(t,e,a,l){e.child=t===null?lh(e,null,a,l):Kn(e,t.child,a,l)}function em(t,e,a,l,u){a=a.render;var c=e.ref;if("ref"in l){var d={};for(var x in l)x!=="ref"&&(d[x]=l[x])}else d=l;return Yn(e),l=Ec(t,e,a,d,c,u),x=Nc(),t!==null&&!It?(Tc(t,e,u),ja(t,e,u)):(Nt&&x&&ic(e),e.flags|=1,re(t,e,l,u),e.child)}function am(t,e,a,l,u){if(t===null){var c=a.type;return typeof c=="function"&&!nc(c)&&c.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=c,nm(t,e,c,l,u)):(t=ru(a.type,null,l,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Ic(t,u)){var d=c.memoizedProps;if(a=a.compare,a=a!==null?a:Bs,a(d,l)&&t.ref===e.ref)return ja(t,e,u)}return e.flags|=1,t=va(c,l),t.ref=e.ref,t.return=e,e.child=t}function nm(t,e,a,l,u){if(t!==null){var c=t.memoizedProps;if(Bs(c,l)&&t.ref===e.ref)if(It=!1,e.pendingProps=l=c,Ic(t,u))(t.flags&131072)!==0&&(It=!0);else return e.lanes=t.lanes,ja(t,e,u)}return Kc(t,e,a,l,u)}function lm(t,e,a,l){var u=l.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|a:a,t!==null){for(l=e.child=t.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~c}else l=0,e.child=null;return sm(t,e,c,a,l)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&du(e,c!==null?c.cachePool:null),c!==null?uh(e,c):Sc(),rh(e);else return l=e.lanes=536870912,sm(t,e,c!==null?c.baseLanes|a:a,a,l)}else c!==null?(du(e,c.cachePool),uh(e,c),Ia(),e.memoizedState=null):(t!==null&&du(e,null),Sc(),Ia());return re(t,e,u,a),e.child}function Is(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function sm(t,e,a,l,u){var c=yc();return c=c===null?null:{parent:Ft._currentValue,pool:c},e.memoizedState={baseLanes:a,cachePool:c},t!==null&&du(e,null),Sc(),rh(e),t!==null&&Bl(t,e,l,!0),e.childLanes=u,null}function Mu(t,e){return e=Au({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function im(t,e,a){return Kn(e,t.child,null,a),t=Mu(e,e.pendingProps),t.flags|=2,we(e),e.memoizedState=null,t}function mp(t,e,a){var l=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(Nt){if(l.mode==="hidden")return t=Mu(e,l),e.lanes=536870912,Is(null,t);if(jc(e),(t=qt)?(t=py(t,Ke),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Xa!==null?{id:la,overflow:sa}:null,retryLane:536870912,hydrationErrors:null},a=Vd(t),a.return=e,e.child=a,ie=e,qt=null)):t=null,t===null)throw Za(e);return e.lanes=536870912,null}return Mu(e,l)}var c=t.memoizedState;if(c!==null){var d=c.dehydrated;if(jc(e),u)if(e.flags&256)e.flags&=-257,e=im(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(r(558));else if(It||Bl(t,e,a,!1),u=(a&t.childLanes)!==0,It||u){if(l=Bt,l!==null&&(d=Ff(l,a),d!==0&&d!==c.retryLane))throw c.retryLane=d,Bn(t,d),Ee(l,t,d),Xc;qu(),e=im(t,e,a)}else t=c.treeContext,qt=Je(d.nextSibling),ie=e,Nt=!0,Ka=null,Ke=!1,t!==null&&Zd(e,t),e=Mu(e,l),e.flags|=4096;return e}return t=va(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Cu(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(r(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function Kc(t,e,a,l,u){return Yn(e),a=Ec(t,e,a,l,void 0,u),l=Nc(),t!==null&&!It?(Tc(t,e,u),ja(t,e,u)):(Nt&&l&&ic(e),e.flags|=1,re(t,e,a,u),e.child)}function um(t,e,a,l,u,c){return Yn(e),e.updateQueue=null,a=oh(e,l,a,u),ch(t),l=Nc(),t!==null&&!It?(Tc(t,e,c),ja(t,e,c)):(Nt&&l&&ic(e),e.flags|=1,re(t,e,a,c),e.child)}function rm(t,e,a,l,u){if(Yn(e),e.stateNode===null){var c=Dl,d=a.contextType;typeof d=="object"&&d!==null&&(c=ue(d)),c=new a(l,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Gc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=l,c.state=e.memoizedState,c.refs={},vc(e),d=a.contextType,c.context=typeof d=="object"&&d!==null?ue(d):Dl,c.state=e.memoizedState,d=a.getDerivedStateFromProps,typeof d=="function"&&(Yc(e,a,d,l),c.state=e.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(d=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),d!==c.state&&Gc.enqueueReplaceState(c,c.state,null),Js(e,l,c,u),Zs(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){c=e.stateNode;var x=e.memoizedProps,_=Jn(a,x);c.props=_;var z=c.context,H=a.contextType;d=Dl,typeof H=="object"&&H!==null&&(d=ue(H));var Y=a.getDerivedStateFromProps;H=typeof Y=="function"||typeof c.getSnapshotBeforeUpdate=="function",x=e.pendingProps!==x,H||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(x||z!==d)&&Ph(e,c,l,d),Pa=!1;var w=e.memoizedState;c.state=w,Js(e,l,c,u),Zs(),z=e.memoizedState,x||w!==z||Pa?(typeof Y=="function"&&(Yc(e,a,Y,l),z=e.memoizedState),(_=Pa||Jh(e,a,_,l,w,z,d))?(H||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=z),c.props=l,c.state=z,c.context=d,l=_):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{c=e.stateNode,pc(t,e),d=e.memoizedProps,H=Jn(a,d),c.props=H,Y=e.pendingProps,w=c.context,z=a.contextType,_=Dl,typeof z=="object"&&z!==null&&(_=ue(z)),x=a.getDerivedStateFromProps,(z=typeof x=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(d!==Y||w!==_)&&Ph(e,c,l,_),Pa=!1,w=e.memoizedState,c.state=w,Js(e,l,c,u),Zs();var B=e.memoizedState;d!==Y||w!==B||Pa||t!==null&&t.dependencies!==null&&ou(t.dependencies)?(typeof x=="function"&&(Yc(e,a,x,l),B=e.memoizedState),(H=Pa||Jh(e,a,H,l,w,B,_)||t!==null&&t.dependencies!==null&&ou(t.dependencies))?(z||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(l,B,_),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(l,B,_)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||d===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=B),c.props=l,c.state=B,c.context=_,l=H):(typeof c.componentDidUpdate!="function"||d===t.memoizedProps&&w===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||d===t.memoizedProps&&w===t.memoizedState||(e.flags|=1024),l=!1)}return c=l,Cu(t,e),l=(e.flags&128)!==0,c||l?(c=e.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&l?(e.child=Kn(e,t.child,null,u),e.child=Kn(e,null,a,u)):re(t,e,a,u),e.memoizedState=c.state,t=e.child):t=ja(t,e,u),t}function cm(t,e,a,l){return qn(),e.flags|=256,re(t,e,a,l),e.child}var Zc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jc(t){return{baseLanes:t,cachePool:Id()}}function Pc(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=Le),t}function om(t,e,a){var l=e.pendingProps,u=!1,c=(e.flags&128)!==0,d;if((d=c)||(d=t!==null&&t.memoizedState===null?!1:(Pt.current&2)!==0),d&&(u=!0,e.flags&=-129),d=(e.flags&32)!==0,e.flags&=-33,t===null){if(Nt){if(u?$a(e):Ia(),(t=qt)?(t=py(t,Ke),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Xa!==null?{id:la,overflow:sa}:null,retryLane:536870912,hydrationErrors:null},a=Vd(t),a.return=e,e.child=a,ie=e,qt=null)):t=null,t===null)throw Za(e);return Oo(t)?e.lanes=32:e.lanes=536870912,null}var x=l.children;return l=l.fallback,u?(Ia(),u=e.mode,x=Au({mode:"hidden",children:x},u),l=Hn(l,u,a,null),x.return=e,l.return=e,x.sibling=l,e.child=x,l=e.child,l.memoizedState=Jc(a),l.childLanes=Pc(t,d,a),e.memoizedState=Zc,Is(null,l)):($a(e),kc(e,x))}var _=t.memoizedState;if(_!==null&&(x=_.dehydrated,x!==null)){if(c)e.flags&256?($a(e),e.flags&=-257,e=Fc(t,e,a)):e.memoizedState!==null?(Ia(),e.child=t.child,e.flags|=128,e=null):(Ia(),x=l.fallback,u=e.mode,l=Au({mode:"visible",children:l.children},u),x=Hn(x,u,a,null),x.flags|=2,l.return=e,x.return=e,l.sibling=x,e.child=l,Kn(e,t.child,null,a),l=e.child,l.memoizedState=Jc(a),l.childLanes=Pc(t,d,a),e.memoizedState=Zc,e=Is(null,l));else if($a(e),Oo(x)){if(d=x.nextSibling&&x.nextSibling.dataset,d)var z=d.dgst;d=z,l=Error(r(419)),l.stack="",l.digest=d,Qs({value:l,source:null,stack:null}),e=Fc(t,e,a)}else if(It||Bl(t,e,a,!1),d=(a&t.childLanes)!==0,It||d){if(d=Bt,d!==null&&(l=Ff(d,a),l!==0&&l!==_.retryLane))throw _.retryLane=l,Bn(t,l),Ee(d,t,l),Xc;Ao(x)||qu(),e=Fc(t,e,a)}else Ao(x)?(e.flags|=192,e.child=t.child,e=null):(t=_.treeContext,qt=Je(x.nextSibling),ie=e,Nt=!0,Ka=null,Ke=!1,t!==null&&Zd(e,t),e=kc(e,l.children),e.flags|=4096);return e}return u?(Ia(),x=l.fallback,u=e.mode,_=t.child,z=_.sibling,l=va(_,{mode:"hidden",children:l.children}),l.subtreeFlags=_.subtreeFlags&65011712,z!==null?x=va(z,x):(x=Hn(x,u,a,null),x.flags|=2),x.return=e,l.return=e,l.sibling=x,e.child=l,Is(null,l),l=e.child,x=t.child.memoizedState,x===null?x=Jc(a):(u=x.cachePool,u!==null?(_=Ft._currentValue,u=u.parent!==_?{parent:_,pool:_}:u):u=Id(),x={baseLanes:x.baseLanes|a,cachePool:u}),l.memoizedState=x,l.childLanes=Pc(t,d,a),e.memoizedState=Zc,Is(t.child,l)):($a(e),a=t.child,t=a.sibling,a=va(a,{mode:"visible",children:l.children}),a.return=e,a.sibling=null,t!==null&&(d=e.deletions,d===null?(e.deletions=[t],e.flags|=16):d.push(t)),e.child=a,e.memoizedState=null,a)}function kc(t,e){return e=Au({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Au(t,e){return t=ze(22,t,null,e),t.lanes=0,t}function Fc(t,e,a){return Kn(e,t.child,null,a),t=kc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function fm(t,e,a){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),fc(t.return,e,a)}function $c(t,e,a,l,u,c){var d=t.memoizedState;d===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:u,treeForkCount:c}:(d.isBackwards=e,d.rendering=null,d.renderingStartTime=0,d.last=l,d.tail=a,d.tailMode=u,d.treeForkCount=c)}function dm(t,e,a){var l=e.pendingProps,u=l.revealOrder,c=l.tail;l=l.children;var d=Pt.current,x=(d&2)!==0;if(x?(d=d&1|2,e.flags|=128):d&=1,I(Pt,d),re(t,e,l,a),l=Nt?qs:0,!x&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&fm(t,a,e);else if(t.tag===19)fm(t,a,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(a=e.child,u=null;a!==null;)t=a.alternate,t!==null&&pu(t)===null&&(u=a),a=a.sibling;a=u,a===null?(u=e.child,e.child=null):(u=a.sibling,a.sibling=null),$c(e,!1,u,a,c,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&pu(t)===null){e.child=u;break}t=u.sibling,u.sibling=a,a=u,u=t}$c(e,!0,a,null,c,l);break;case"together":$c(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function ja(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),en|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Bl(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(r(153));if(e.child!==null){for(t=e.child,a=va(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=va(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function Ic(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ou(t)))}function yp(t,e,a){switch(e.tag){case 3:Jt(e,e.stateNode.containerInfo),Ja(e,Ft,t.memoizedState.cache),qn();break;case 27:case 5:aa(e);break;case 4:Jt(e,e.stateNode.containerInfo);break;case 10:Ja(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,jc(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?($a(e),e.flags|=128,null):(a&e.child.childLanes)!==0?om(t,e,a):($a(e),t=ja(t,e,a),t!==null?t.sibling:null);$a(e);break;case 19:var u=(t.flags&128)!==0;if(l=(a&e.childLanes)!==0,l||(Bl(t,e,a,!1),l=(a&e.childLanes)!==0),u){if(l)return dm(t,e,a);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),I(Pt,Pt.current),l)break;return null;case 22:return e.lanes=0,lm(t,e,a,e.pendingProps);case 24:Ja(e,Ft,t.memoizedState.cache)}return ja(t,e,a)}function hm(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)It=!0;else{if(!Ic(t,a)&&(e.flags&128)===0)return It=!1,yp(t,e,a);It=(t.flags&131072)!==0}else It=!1,Nt&&(e.flags&1048576)!==0&&Kd(e,qs,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=Vn(e.elementType),e.type=t,typeof t=="function")nc(t)?(l=Jn(t,l),e.tag=1,e=rm(null,e,t,l,a)):(e.tag=0,e=Kc(null,e,t,l,a));else{if(t!=null){var u=t.$$typeof;if(u===L){e.tag=11,e=em(null,e,t,l,a);break t}else if(u===Z){e.tag=14,e=am(null,e,t,l,a);break t}}throw e=ot(t)||t,Error(r(306,e,""))}}return e;case 0:return Kc(t,e,e.type,e.pendingProps,a);case 1:return l=e.type,u=Jn(l,e.pendingProps),rm(t,e,l,u,a);case 3:t:{if(Jt(e,e.stateNode.containerInfo),t===null)throw Error(r(387));l=e.pendingProps;var c=e.memoizedState;u=c.element,pc(t,e),Js(e,l,null,a);var d=e.memoizedState;if(l=d.cache,Ja(e,Ft,l),l!==c.cache&&dc(e,[Ft],a,!0),Zs(),l=d.element,c.isDehydrated)if(c={element:l,isDehydrated:!1,cache:d.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=cm(t,e,l,a);break t}else if(l!==u){u=Ge(Error(r(424)),e),Qs(u),e=cm(t,e,l,a);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(qt=Je(t.firstChild),ie=e,Nt=!0,Ka=null,Ke=!0,a=lh(e,null,l,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(qn(),l===u){e=ja(t,e,a);break t}re(t,e,l,a)}e=e.child}return e;case 26:return Cu(t,e),t===null?(a=_y(e.type,null,e.pendingProps,null))?e.memoizedState=a:Nt||(a=e.type,t=e.pendingProps,l=Zu(xt.current).createElement(a),l[se]=e,l[xe]=t,ce(l,a,t),ae(l),e.stateNode=l):e.memoizedState=_y(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return aa(e),t===null&&Nt&&(l=e.stateNode=Sy(e.type,e.pendingProps,xt.current),ie=e,Ke=!0,u=qt,un(e.type)?(zo=u,qt=Je(l.firstChild)):qt=u),re(t,e,e.pendingProps.children,a),Cu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&Nt&&((u=l=qt)&&(l=Kp(l,e.type,e.pendingProps,Ke),l!==null?(e.stateNode=l,ie=e,qt=Je(l.firstChild),Ke=!1,u=!0):u=!1),u||Za(e)),aa(e),u=e.type,c=e.pendingProps,d=t!==null?t.memoizedProps:null,l=c.children,To(u,c)?l=null:d!==null&&To(u,d)&&(e.flags|=32),e.memoizedState!==null&&(u=Ec(t,e,ip,null,null,a),hi._currentValue=u),Cu(t,e),re(t,e,l,a),e.child;case 6:return t===null&&Nt&&((t=a=qt)&&(a=Zp(a,e.pendingProps,Ke),a!==null?(e.stateNode=a,ie=e,qt=null,t=!0):t=!1),t||Za(e)),null;case 13:return om(t,e,a);case 4:return Jt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=Kn(e,null,l,a):re(t,e,l,a),e.child;case 11:return em(t,e,e.type,e.pendingProps,a);case 7:return re(t,e,e.pendingProps,a),e.child;case 8:return re(t,e,e.pendingProps.children,a),e.child;case 12:return re(t,e,e.pendingProps.children,a),e.child;case 10:return l=e.pendingProps,Ja(e,e.type,l.value),re(t,e,l.children,a),e.child;case 9:return u=e.type._context,l=e.pendingProps.children,Yn(e),u=ue(u),l=l(u),e.flags|=1,re(t,e,l,a),e.child;case 14:return am(t,e,e.type,e.pendingProps,a);case 15:return nm(t,e,e.type,e.pendingProps,a);case 19:return dm(t,e,a);case 31:return mp(t,e,a);case 22:return lm(t,e,a,e.pendingProps);case 24:return Yn(e),l=ue(Ft),t===null?(u=yc(),u===null&&(u=Bt,c=hc(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=a),u=c),e.memoizedState={parent:l,cache:u},vc(e),Ja(e,Ft,u)):((t.lanes&a)!==0&&(pc(t,e),Js(e,null,null,a),Zs()),u=t.memoizedState,c=e.memoizedState,u.parent!==l?(u={parent:l,cache:l},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),Ja(e,Ft,l)):(l=c.cache,Ja(e,Ft,l),l!==u.cache&&dc(e,[Ft],a,!0))),re(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(r(156,e.tag))}function _a(t){t.flags|=4}function Wc(t,e,a,l,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(Qm())t.flags|=8192;else throw Xn=mu,gc}else t.flags&=-16777217}function mm(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Cy(e))if(Qm())t.flags|=8192;else throw Xn=mu,gc}function Ou(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Jf():536870912,t.lanes|=e,kl|=e)}function Ws(t,e){if(!Nt)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Qt(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,l=0;if(e)for(var u=t.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=l,t.childLanes=a,e}function gp(t,e,a){var l=e.pendingProps;switch(uc(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qt(e),null;case 1:return Qt(e),null;case 3:return a=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),ba(Ft),Ht(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Ll(e)?_a(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,cc())),Qt(e),null;case 26:var u=e.type,c=e.memoizedState;return t===null?(_a(e),c!==null?(Qt(e),mm(e,c)):(Qt(e),Wc(e,u,null,l,a))):c?c!==t.memoizedState?(_a(e),Qt(e),mm(e,c)):(Qt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&_a(e),Qt(e),Wc(e,u,t,l,a)),null;case 27:if(da(e),a=xt.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&_a(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Qt(e),null}t=tt.current,Ll(e)?Jd(e):(t=Sy(u,l,a),e.stateNode=t,_a(e))}return Qt(e),null;case 5:if(da(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&_a(e);else{if(!l){if(e.stateNode===null)throw Error(r(166));return Qt(e),null}if(c=tt.current,Ll(e))Jd(e);else{var d=Zu(xt.current);switch(c){case 1:c=d.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=d.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=d.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=d.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":c=d.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?c.multiple=!0:l.size&&(c.size=l.size);break;default:c=typeof l.is=="string"?d.createElement(u,{is:l.is}):d.createElement(u)}}c[se]=e,c[xe]=l;t:for(d=e.child;d!==null;){if(d.tag===5||d.tag===6)c.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===e)break t;for(;d.sibling===null;){if(d.return===null||d.return===e)break t;d=d.return}d.sibling.return=d.return,d=d.sibling}e.stateNode=c;t:switch(ce(c,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&_a(e)}}return Qt(e),Wc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&_a(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(r(166));if(t=xt.current,Ll(e)){if(t=e.stateNode,a=e.memoizedProps,l=null,u=ie,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}t[se]=e,t=!!(t.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||oy(t.nodeValue,a)),t||Za(e,!0)}else t=Zu(t).createTextNode(l),t[se]=e,e.stateNode=t}return Qt(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(l=Ll(e),a!==null){if(t===null){if(!l)throw Error(r(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(557));t[se]=e}else qn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Qt(e),t=!1}else a=cc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(we(e),e):(we(e),null);if((e.flags&128)!==0)throw Error(r(558))}return Qt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Ll(e),l!==null&&l.dehydrated!==null){if(t===null){if(!u)throw Error(r(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(r(317));u[se]=e}else qn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Qt(e),u=!1}else u=cc(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(we(e),e):(we(e),null)}return we(e),(e.flags&128)!==0?(e.lanes=a,e):(a=l!==null,t=t!==null&&t.memoizedState!==null,a&&(l=e.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),c=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(c=l.memoizedState.cachePool.pool),c!==u&&(l.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),Ou(e,e.updateQueue),Qt(e),null);case 4:return Ht(),t===null&&Ro(e.stateNode.containerInfo),Qt(e),null;case 10:return ba(e.type),Qt(e),null;case 19:if(Q(Pt),l=e.memoizedState,l===null)return Qt(e),null;if(u=(e.flags&128)!==0,c=l.rendering,c===null)if(u)Ws(l,!1);else{if(Kt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=pu(t),c!==null){for(e.flags|=128,Ws(l,!1),t=c.updateQueue,e.updateQueue=t,Ou(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)Gd(a,t),a=a.sibling;return I(Pt,Pt.current&1|2),Nt&&pa(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&St()>Lu&&(e.flags|=128,u=!0,Ws(l,!1),e.lanes=4194304)}else{if(!u)if(t=pu(c),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,Ou(e,t),Ws(l,!0),l.tail===null&&l.tailMode==="hidden"&&!c.alternate&&!Nt)return Qt(e),null}else 2*St()-l.renderingStartTime>Lu&&a!==536870912&&(e.flags|=128,u=!0,Ws(l,!1),e.lanes=4194304);l.isBackwards?(c.sibling=e.child,e.child=c):(t=l.last,t!==null?t.sibling=c:e.child=c,l.last=c)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=St(),t.sibling=null,a=Pt.current,I(Pt,u?a&1|2:a&1),Nt&&pa(e,l.treeForkCount),t):(Qt(e),null);case 22:case 23:return we(e),Rc(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(a&536870912)!==0&&(e.flags&128)===0&&(Qt(e),e.subtreeFlags&6&&(e.flags|=8192)):Qt(e),a=e.updateQueue,a!==null&&Ou(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==a&&(e.flags|=2048),t!==null&&Q(Gn),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),ba(Ft),Qt(e),null;case 25:return null;case 30:return null}throw Error(r(156,e.tag))}function vp(t,e){switch(uc(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ba(Ft),Ht(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return da(e),null;case 31:if(e.memoizedState!==null){if(we(e),e.alternate===null)throw Error(r(340));qn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(we(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(r(340));qn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Q(Pt),null;case 4:return Ht(),null;case 10:return ba(e.type),null;case 22:case 23:return we(e),Rc(),t!==null&&Q(Gn),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ba(Ft),null;case 25:return null;default:return null}}function ym(t,e){switch(uc(e),e.tag){case 3:ba(Ft),Ht();break;case 26:case 27:case 5:da(e);break;case 4:Ht();break;case 31:e.memoizedState!==null&&we(e);break;case 13:we(e);break;case 19:Q(Pt);break;case 10:ba(e.type);break;case 22:case 23:we(e),Rc(),t!==null&&Q(Gn);break;case 24:ba(Ft)}}function ti(t,e){try{var a=e.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var u=l.next;a=u;do{if((a.tag&t)===t){l=void 0;var c=a.create,d=a.inst;l=c(),d.destroy=l}a=a.next}while(a!==u)}}catch(x){Dt(e,e.return,x)}}function Wa(t,e,a){try{var l=e.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var c=u.next;l=c;do{if((l.tag&t)===t){var d=l.inst,x=d.destroy;if(x!==void 0){d.destroy=void 0,u=e;var _=a,z=x;try{z()}catch(H){Dt(u,_,H)}}}l=l.next}while(l!==c)}}catch(H){Dt(e,e.return,H)}}function gm(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{ih(e,a)}catch(l){Dt(t,t.return,l)}}}function vm(t,e,a){a.props=Jn(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(l){Dt(t,e,l)}}function ei(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof a=="function"?t.refCleanup=a(l):a.current=l}}catch(u){Dt(t,e,u)}}function ia(t,e){var a=t.ref,l=t.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(u){Dt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Dt(t,e,u)}else a.current=null}function pm(t){var e=t.type,a=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break t;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(u){Dt(t,t.return,u)}}function to(t,e,a){try{var l=t.stateNode;qp(l,t.type,a,e),l[xe]=e}catch(u){Dt(t,t.return,u)}}function xm(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&un(t.type)||t.tag===4}function eo(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||xm(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&&un(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 ao(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=ya));else if(l!==4&&(l===27&&un(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(ao(t,e,a),t=t.sibling;t!==null;)ao(t,e,a),t=t.sibling}function zu(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(l!==4&&(l===27&&un(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(zu(t,e,a),t=t.sibling;t!==null;)zu(t,e,a),t=t.sibling}function bm(t){var e=t.stateNode,a=t.memoizedProps;try{for(var l=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);ce(e,l,a),e[se]=t,e[xe]=a}catch(c){Dt(t,t.return,c)}}var Ea=!1,Wt=!1,no=!1,Sm=typeof WeakSet=="function"?WeakSet:Set,ne=null;function pp(t,e){if(t=t.containerInfo,Eo=Wu,t=Dd(t),Fr(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var u=l.anchorOffset,c=l.focusNode;l=l.focusOffset;try{a.nodeType,c.nodeType}catch{a=null;break t}var d=0,x=-1,_=-1,z=0,H=0,Y=t,w=null;e:for(;;){for(var B;Y!==a||u!==0&&Y.nodeType!==3||(x=d+u),Y!==c||l!==0&&Y.nodeType!==3||(_=d+l),Y.nodeType===3&&(d+=Y.nodeValue.length),(B=Y.firstChild)!==null;)w=Y,Y=B;for(;;){if(Y===t)break e;if(w===a&&++z===u&&(x=d),w===c&&++H===l&&(_=d),(B=Y.nextSibling)!==null)break;Y=w,w=Y.parentNode}Y=B}a=x===-1||_===-1?null:{start:x,end:_}}else a=null}a=a||{start:0,end:0}}else a=null;for(No={focusedElem:t,selectionRange:a},Wu=!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++)u=t[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,a=e,u=c.memoizedProps,c=c.memoizedState,l=a.stateNode;try{var lt=Jn(a.type,u);t=l.getSnapshotBeforeUpdate(lt,c),l.__reactInternalSnapshotBeforeUpdate=t}catch(dt){Dt(a,a.return,dt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)Co(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Co(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=e.sibling,t!==null){t.return=e.return,ne=t;break}ne=e.return}}function Rm(t,e,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Ta(t,a),l&4&&ti(5,a);break;case 1:if(Ta(t,a),l&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(d){Dt(a,a.return,d)}else{var u=Jn(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(d){Dt(a,a.return,d)}}l&64&&gm(a),l&512&&ei(a,a.return);break;case 3:if(Ta(t,a),l&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{ih(t,e)}catch(d){Dt(a,a.return,d)}}break;case 27:e===null&&l&4&&bm(a);case 26:case 5:Ta(t,a),e===null&&l&4&&pm(a),l&512&&ei(a,a.return);break;case 12:Ta(t,a);break;case 31:Ta(t,a),l&4&&Em(t,a);break;case 13:Ta(t,a),l&4&&Nm(t,a),l&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=Tp.bind(null,a),Jp(t,a))));break;case 22:if(l=a.memoizedState!==null||Ea,!l){e=e!==null&&e.memoizedState!==null||Wt,u=Ea;var c=Wt;Ea=l,(Wt=e)&&!c?Ma(t,a,(a.subtreeFlags&8772)!==0):Ta(t,a),Ea=u,Wt=c}break;case 30:break;default:Ta(t,a)}}function jm(t){var e=t.alternate;e!==null&&(t.alternate=null,jm(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Dr(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Yt=null,Se=!1;function Na(t,e,a){for(a=a.child;a!==null;)_m(t,e,a),a=a.sibling}function _m(t,e,a){if(Ce&&typeof Ce.onCommitFiberUnmount=="function")try{Ce.onCommitFiberUnmount(Es,a)}catch{}switch(a.tag){case 26:Wt||ia(a,e),Na(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:Wt||ia(a,e);var l=Yt,u=Se;un(a.type)&&(Yt=a.stateNode,Se=!1),Na(t,e,a),oi(a.stateNode),Yt=l,Se=u;break;case 5:Wt||ia(a,e);case 6:if(l=Yt,u=Se,Yt=null,Na(t,e,a),Yt=l,Se=u,Yt!==null)if(Se)try{(Yt.nodeType===9?Yt.body:Yt.nodeName==="HTML"?Yt.ownerDocument.body:Yt).removeChild(a.stateNode)}catch(c){Dt(a,e,c)}else try{Yt.removeChild(a.stateNode)}catch(c){Dt(a,e,c)}break;case 18:Yt!==null&&(Se?(t=Yt,gy(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),ns(t)):gy(Yt,a.stateNode));break;case 4:l=Yt,u=Se,Yt=a.stateNode.containerInfo,Se=!0,Na(t,e,a),Yt=l,Se=u;break;case 0:case 11:case 14:case 15:Wa(2,a,e),Wt||Wa(4,a,e),Na(t,e,a);break;case 1:Wt||(ia(a,e),l=a.stateNode,typeof l.componentWillUnmount=="function"&&vm(a,e,l)),Na(t,e,a);break;case 21:Na(t,e,a);break;case 22:Wt=(l=Wt)||a.memoizedState!==null,Na(t,e,a),Wt=l;break;default:Na(t,e,a)}}function Em(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ns(t)}catch(a){Dt(e,e.return,a)}}}function Nm(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ns(t)}catch(a){Dt(e,e.return,a)}}function xp(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Sm),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Sm),e;default:throw Error(r(435,t.tag))}}function Du(t,e){var a=xp(t);e.forEach(function(l){if(!a.has(l)){a.add(l);var u=Mp.bind(null,t,l);l.then(u,u)}})}function Re(t,e){var a=e.deletions;if(a!==null)for(var l=0;l<a.length;l++){var u=a[l],c=t,d=e,x=d;t:for(;x!==null;){switch(x.tag){case 27:if(un(x.type)){Yt=x.stateNode,Se=!1;break t}break;case 5:Yt=x.stateNode,Se=!1;break t;case 3:case 4:Yt=x.stateNode.containerInfo,Se=!0;break t}x=x.return}if(Yt===null)throw Error(r(160));_m(c,d,u),Yt=null,Se=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Tm(e,t),e=e.sibling}var We=null;function Tm(t,e){var a=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Re(e,t),je(t),l&4&&(Wa(3,t,t.return),ti(3,t),Wa(5,t,t.return));break;case 1:Re(e,t),je(t),l&512&&(Wt||a===null||ia(a,a.return)),l&64&&Ea&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var u=We;if(Re(e,t),je(t),l&512&&(Wt||a===null||ia(a,a.return)),l&4){var c=a!==null?a.memoizedState:null;if(l=t.memoizedState,a===null)if(l===null)if(t.stateNode===null){t:{l=t.type,a=t.memoizedProps,u=u.ownerDocument||u;e:switch(l){case"title":c=u.getElementsByTagName("title")[0],(!c||c[Ms]||c[se]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(l),u.head.insertBefore(c,u.querySelector("head > title"))),ce(c,l,a),c[se]=t,ae(c),l=c;break t;case"link":var d=Ty("link","href",u).get(l+(a.href||""));if(d){for(var x=0;x<d.length;x++)if(c=d[x],c.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&c.getAttribute("rel")===(a.rel==null?null:a.rel)&&c.getAttribute("title")===(a.title==null?null:a.title)&&c.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){d.splice(x,1);break e}}c=u.createElement(l),ce(c,l,a),u.head.appendChild(c);break;case"meta":if(d=Ty("meta","content",u).get(l+(a.content||""))){for(x=0;x<d.length;x++)if(c=d[x],c.getAttribute("content")===(a.content==null?null:""+a.content)&&c.getAttribute("name")===(a.name==null?null:a.name)&&c.getAttribute("property")===(a.property==null?null:a.property)&&c.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&c.getAttribute("charset")===(a.charSet==null?null:a.charSet)){d.splice(x,1);break e}}c=u.createElement(l),ce(c,l,a),u.head.appendChild(c);break;default:throw Error(r(468,l))}c[se]=t,ae(c),l=c}t.stateNode=l}else My(u,t.type,t.stateNode);else t.stateNode=Ny(u,l,t.memoizedProps);else c!==l?(c===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):c.count--,l===null?My(u,t.type,t.stateNode):Ny(u,l,t.memoizedProps)):l===null&&t.stateNode!==null&&to(t,t.memoizedProps,a.memoizedProps)}break;case 27:Re(e,t),je(t),l&512&&(Wt||a===null||ia(a,a.return)),a!==null&&l&4&&to(t,t.memoizedProps,a.memoizedProps);break;case 5:if(Re(e,t),je(t),l&512&&(Wt||a===null||ia(a,a.return)),t.flags&32){u=t.stateNode;try{Nl(u,"")}catch(lt){Dt(t,t.return,lt)}}l&4&&t.stateNode!=null&&(u=t.memoizedProps,to(t,u,a!==null?a.memoizedProps:u)),l&1024&&(no=!0);break;case 6:if(Re(e,t),je(t),l&4){if(t.stateNode===null)throw Error(r(162));l=t.memoizedProps,a=t.stateNode;try{a.nodeValue=l}catch(lt){Dt(t,t.return,lt)}}break;case 3:if(ku=null,u=We,We=Ju(e.containerInfo),Re(e,t),We=u,je(t),l&4&&a!==null&&a.memoizedState.isDehydrated)try{ns(e.containerInfo)}catch(lt){Dt(t,t.return,lt)}no&&(no=!1,Mm(t));break;case 4:l=We,We=Ju(t.stateNode.containerInfo),Re(e,t),je(t),We=l;break;case 12:Re(e,t),je(t);break;case 31:Re(e,t),je(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Du(t,l)));break;case 13:Re(e,t),je(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Uu=St()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Du(t,l)));break;case 22:u=t.memoizedState!==null;var _=a!==null&&a.memoizedState!==null,z=Ea,H=Wt;if(Ea=z||u,Wt=H||_,Re(e,t),Wt=H,Ea=z,je(t),l&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(a===null||_||Ea||Wt||Pn(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){_=a=e;try{if(c=_.stateNode,u)d=c.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{x=_.stateNode;var Y=_.memoizedProps.style,w=Y!=null&&Y.hasOwnProperty("display")?Y.display:null;x.style.display=w==null||typeof w=="boolean"?"":(""+w).trim()}}catch(lt){Dt(_,_.return,lt)}}}else if(e.tag===6){if(a===null){_=e;try{_.stateNode.nodeValue=u?"":_.memoizedProps}catch(lt){Dt(_,_.return,lt)}}}else if(e.tag===18){if(a===null){_=e;try{var B=_.stateNode;u?vy(B,!0):vy(_.stateNode,!1)}catch(lt){Dt(_,_.return,lt)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,Du(t,a))));break;case 19:Re(e,t),je(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Du(t,l)));break;case 30:break;case 21:break;default:Re(e,t),je(t)}}function je(t){var e=t.flags;if(e&2){try{for(var a,l=t.return;l!==null;){if(xm(l)){a=l;break}l=l.return}if(a==null)throw Error(r(160));switch(a.tag){case 27:var u=a.stateNode,c=eo(t);zu(t,c,u);break;case 5:var d=a.stateNode;a.flags&32&&(Nl(d,""),a.flags&=-33);var x=eo(t);zu(t,x,d);break;case 3:case 4:var _=a.stateNode.containerInfo,z=eo(t);ao(t,z,_);break;default:throw Error(r(161))}}catch(H){Dt(t,t.return,H)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Mm(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Mm(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function Ta(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Rm(t,e.alternate,e),e=e.sibling}function Pn(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Wa(4,e,e.return),Pn(e);break;case 1:ia(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&vm(e,e.return,a),Pn(e);break;case 27:oi(e.stateNode);case 26:case 5:ia(e,e.return),Pn(e);break;case 22:e.memoizedState===null&&Pn(e);break;case 30:Pn(e);break;default:Pn(e)}t=t.sibling}}function Ma(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,u=t,c=e,d=c.flags;switch(c.tag){case 0:case 11:case 15:Ma(u,c,a),ti(4,c);break;case 1:if(Ma(u,c,a),l=c,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(z){Dt(l,l.return,z)}if(l=c,u=l.updateQueue,u!==null){var x=l.stateNode;try{var _=u.shared.hiddenCallbacks;if(_!==null)for(u.shared.hiddenCallbacks=null,u=0;u<_.length;u++)sh(_[u],x)}catch(z){Dt(l,l.return,z)}}a&&d&64&&gm(c),ei(c,c.return);break;case 27:bm(c);case 26:case 5:Ma(u,c,a),a&&l===null&&d&4&&pm(c),ei(c,c.return);break;case 12:Ma(u,c,a);break;case 31:Ma(u,c,a),a&&d&4&&Em(u,c);break;case 13:Ma(u,c,a),a&&d&4&&Nm(u,c);break;case 22:c.memoizedState===null&&Ma(u,c,a),ei(c,c.return);break;case 30:break;default:Ma(u,c,a)}e=e.sibling}}function lo(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&&Ys(a))}function so(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ys(t))}function ta(t,e,a,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Cm(t,e,a,l),e=e.sibling}function Cm(t,e,a,l){var u=e.flags;switch(e.tag){case 0:case 11:case 15:ta(t,e,a,l),u&2048&&ti(9,e);break;case 1:ta(t,e,a,l);break;case 3:ta(t,e,a,l),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Ys(t)));break;case 12:if(u&2048){ta(t,e,a,l),t=e.stateNode;try{var c=e.memoizedProps,d=c.id,x=c.onPostCommit;typeof x=="function"&&x(d,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(_){Dt(e,e.return,_)}}else ta(t,e,a,l);break;case 31:ta(t,e,a,l);break;case 13:ta(t,e,a,l);break;case 23:break;case 22:c=e.stateNode,d=e.alternate,e.memoizedState!==null?c._visibility&2?ta(t,e,a,l):ai(t,e):c._visibility&2?ta(t,e,a,l):(c._visibility|=2,Zl(t,e,a,l,(e.subtreeFlags&10256)!==0||!1)),u&2048&&lo(d,e);break;case 24:ta(t,e,a,l),u&2048&&so(e.alternate,e);break;default:ta(t,e,a,l)}}function Zl(t,e,a,l,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,d=e,x=a,_=l,z=d.flags;switch(d.tag){case 0:case 11:case 15:Zl(c,d,x,_,u),ti(8,d);break;case 23:break;case 22:var H=d.stateNode;d.memoizedState!==null?H._visibility&2?Zl(c,d,x,_,u):ai(c,d):(H._visibility|=2,Zl(c,d,x,_,u)),u&&z&2048&&lo(d.alternate,d);break;case 24:Zl(c,d,x,_,u),u&&z&2048&&so(d.alternate,d);break;default:Zl(c,d,x,_,u)}e=e.sibling}}function ai(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,l=e,u=l.flags;switch(l.tag){case 22:ai(a,l),u&2048&&lo(l.alternate,l);break;case 24:ai(a,l),u&2048&&so(l.alternate,l);break;default:ai(a,l)}e=e.sibling}}var ni=8192;function Jl(t,e,a){if(t.subtreeFlags&ni)for(t=t.child;t!==null;)Am(t,e,a),t=t.sibling}function Am(t,e,a){switch(t.tag){case 26:Jl(t,e,a),t.flags&ni&&t.memoizedState!==null&&sx(a,We,t.memoizedState,t.memoizedProps);break;case 5:Jl(t,e,a);break;case 3:case 4:var l=We;We=Ju(t.stateNode.containerInfo),Jl(t,e,a),We=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=ni,ni=16777216,Jl(t,e,a),ni=l):Jl(t,e,a));break;default:Jl(t,e,a)}}function Om(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 li(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];ne=l,Dm(l,t)}Om(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)zm(t),t=t.sibling}function zm(t){switch(t.tag){case 0:case 11:case 15:li(t),t.flags&2048&&Wa(9,t,t.return);break;case 3:li(t);break;case 12:li(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,wu(t)):li(t);break;default:li(t)}}function wu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];ne=l,Dm(l,t)}Om(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Wa(8,e,e.return),wu(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,wu(e));break;default:wu(e)}t=t.sibling}}function Dm(t,e){for(;ne!==null;){var a=ne;switch(a.tag){case 0:case 11:case 15:Wa(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:Ys(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,ne=l;else t:for(a=t;ne!==null;){l=ne;var u=l.sibling,c=l.return;if(jm(l),l===a){ne=null;break t}if(u!==null){u.return=c,ne=u;break t}ne=c}}}var bp={getCacheForType:function(t){var e=ue(Ft),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return ue(Ft).controller.signal}},Sp=typeof WeakMap=="function"?WeakMap:Map,At=0,Bt=null,Rt=null,_t=0,zt=0,Ue=null,tn=!1,Pl=!1,io=!1,Ca=0,Kt=0,en=0,kn=0,uo=0,Le=0,kl=0,si=null,_e=null,ro=!1,Uu=0,wm=0,Lu=1/0,Bu=null,an=null,te=0,nn=null,Fl=null,Aa=0,co=0,oo=null,Um=null,ii=0,fo=null;function Be(){return(At&2)!==0&&_t!==0?_t&-_t:D.T!==null?po():$f()}function Lm(){if(Le===0)if((_t&536870912)===0||Nt){var t=Ki;Ki<<=1,(Ki&3932160)===0&&(Ki=262144),Le=t}else Le=536870912;return t=De.current,t!==null&&(t.flags|=32),Le}function Ee(t,e,a){(t===Bt&&(zt===2||zt===9)||t.cancelPendingCommit!==null)&&($l(t,0),ln(t,_t,Le,!1)),Ts(t,a),((At&2)===0||t!==Bt)&&(t===Bt&&((At&2)===0&&(kn|=a),Kt===4&&ln(t,_t,Le,!1)),ua(t))}function Bm(t,e,a){if((At&6)!==0)throw Error(r(327));var l=!a&&(e&127)===0&&(e&t.expiredLanes)===0||Ns(t,e),u=l?_p(t,e):mo(t,e,!0),c=l;do{if(u===0){Pl&&!l&&ln(t,e,0,!1);break}else{if(a=t.current.alternate,c&&!Rp(a)){u=mo(t,e,!1),c=!1;continue}if(u===2){if(c=e,t.errorRecoveryDisabledLanes&c)var d=0;else d=t.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){e=d;t:{var x=t;u=si;var _=x.current.memoizedState.isDehydrated;if(_&&($l(x,d).flags|=256),d=mo(x,d,!1),d!==2){if(io&&!_){x.errorRecoveryDisabledLanes|=c,kn|=c,u=4;break t}c=_e,_e=u,c!==null&&(_e===null?_e=c:_e.push.apply(_e,c))}u=d}if(c=!1,u!==2)continue}}if(u===1){$l(t,0),ln(t,e,0,!0);break}t:{switch(l=t,c=u,c){case 0:case 1:throw Error(r(345));case 4:if((e&4194048)!==e)break;case 6:ln(l,e,Le,!tn);break t;case 2:_e=null;break;case 3:case 5:break;default:throw Error(r(329))}if((e&62914560)===e&&(u=Uu+300-St(),10<u)){if(ln(l,e,Le,!tn),Ji(l,0,!0)!==0)break t;Aa=e,l.timeoutHandle=my(Hm.bind(null,l,a,_e,Bu,ro,e,Le,kn,kl,tn,c,"Throttled",-0,0),u);break t}Hm(l,a,_e,Bu,ro,e,Le,kn,kl,tn,c,null,-0,0)}}break}while(!0);ua(t)}function Hm(t,e,a,l,u,c,d,x,_,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:ya},Am(e,c,Y);var lt=(c&62914560)===c?Uu-St():(c&4194048)===c?wm-St():0;if(lt=ix(Y,lt),lt!==null){Aa=c,t.cancelPendingCommit=lt(Zm.bind(null,t,e,c,a,l,u,d,x,_,H,Y,null,w,B)),ln(t,c,d,!z);return}}Zm(t,e,c,a,l,u,d,x,_)}function Rp(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var u=a[l],c=u.getSnapshot;u=u.value;try{if(!Oe(c(),u))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function ln(t,e,a,l){e&=~uo,e&=~kn,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var u=e;0<u;){var c=31-Ae(u),d=1<<c;l[c]=-1,u&=~d}a!==0&&Pf(t,a,e)}function Hu(){return(At&6)===0?(ui(0),!1):!0}function ho(){if(Rt!==null){if(zt===0)var t=Rt.return;else t=Rt,xa=Qn=null,Mc(t),Yl=null,Vs=0,t=Rt;for(;t!==null;)ym(t.alternate,t),t=t.return;Rt=null}}function $l(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,Gp(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),Aa=0,ho(),Bt=t,Rt=a=va(t.current,null),_t=e,zt=0,Ue=null,tn=!1,Pl=Ns(t,e),io=!1,kl=Le=uo=kn=en=Kt=0,_e=si=null,ro=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var u=31-Ae(l),c=1<<u;e|=t[u],l&=~c}return Ca=e,su(),a}function qm(t,e){gt=null,D.H=$s,e===Ql||e===hu?(e=eh(),zt=3):e===gc?(e=eh(),zt=4):zt=e===Xc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Ue=e,Rt===null&&(Kt=1,Tu(t,Ge(e,t.current)))}function Qm(){var t=De.current;return t===null?!0:(_t&4194048)===_t?Ze===null:(_t&62914560)===_t||(_t&536870912)!==0?t===Ze:!1}function Ym(){var t=D.H;return D.H=$s,t===null?$s:t}function Gm(){var t=D.A;return D.A=bp,t}function qu(){Kt=4,tn||(_t&4194048)!==_t&&De.current!==null||(Pl=!0),(en&134217727)===0&&(kn&134217727)===0||Bt===null||ln(Bt,_t,Le,!1)}function mo(t,e,a){var l=At;At|=2;var u=Ym(),c=Gm();(Bt!==t||_t!==e)&&(Bu=null,$l(t,e)),e=!1;var d=Kt;t:do try{if(zt!==0&&Rt!==null){var x=Rt,_=Ue;switch(zt){case 8:ho(),d=6;break t;case 3:case 2:case 9:case 6:De.current===null&&(e=!0);var z=zt;if(zt=0,Ue=null,Il(t,x,_,z),a&&Pl){d=0;break t}break;default:z=zt,zt=0,Ue=null,Il(t,x,_,z)}}jp(),d=Kt;break}catch(H){qm(t,H)}while(!0);return e&&t.shellSuspendCounter++,xa=Qn=null,At=l,D.H=u,D.A=c,Rt===null&&(Bt=null,_t=0,su()),d}function jp(){for(;Rt!==null;)Vm(Rt)}function _p(t,e){var a=At;At|=2;var l=Ym(),u=Gm();Bt!==t||_t!==e?(Bu=null,Lu=St()+500,$l(t,e)):Pl=Ns(t,e);t:do try{if(zt!==0&&Rt!==null){e=Rt;var c=Ue;e:switch(zt){case 1:zt=0,Ue=null,Il(t,e,c,1);break;case 2:case 9:if(Wd(c)){zt=0,Ue=null,Xm(e);break}e=function(){zt!==2&&zt!==9||Bt!==t||(zt=7),ua(t)},c.then(e,e);break t;case 3:zt=7;break t;case 4:zt=5;break t;case 7:Wd(c)?(zt=0,Ue=null,Xm(e)):(zt=0,Ue=null,Il(t,e,c,7));break;case 5:var d=null;switch(Rt.tag){case 26:d=Rt.memoizedState;case 5:case 27:var x=Rt;if(d?Cy(d):x.stateNode.complete){zt=0,Ue=null;var _=x.sibling;if(_!==null)Rt=_;else{var z=x.return;z!==null?(Rt=z,Qu(z)):Rt=null}break e}}zt=0,Ue=null,Il(t,e,c,5);break;case 6:zt=0,Ue=null,Il(t,e,c,6);break;case 8:ho(),Kt=6;break t;default:throw Error(r(462))}}Ep();break}catch(H){qm(t,H)}while(!0);return xa=Qn=null,D.H=l,D.A=u,At=a,Rt!==null?0:(Bt=null,_t=0,su(),Kt)}function Ep(){for(;Rt!==null&&!Mr();)Vm(Rt)}function Vm(t){var e=hm(t.alternate,t,Ca);t.memoizedProps=t.pendingProps,e===null?Qu(t):Rt=e}function Xm(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=um(a,e,e.pendingProps,e.type,void 0,_t);break;case 11:e=um(a,e,e.pendingProps,e.type.render,e.ref,_t);break;case 5:Mc(e);default:ym(a,e),e=Rt=Gd(e,Ca),e=hm(a,e,Ca)}t.memoizedProps=t.pendingProps,e===null?Qu(t):Rt=e}function Il(t,e,a,l){xa=Qn=null,Mc(e),Yl=null,Vs=0;var u=e.return;try{if(hp(t,u,e,a,_t)){Kt=1,Tu(t,Ge(a,t.current)),Rt=null;return}}catch(c){if(u!==null)throw Rt=u,c;Kt=1,Tu(t,Ge(a,t.current)),Rt=null;return}e.flags&32768?(Nt||l===1?t=!0:Pl||(_t&536870912)!==0?t=!1:(tn=t=!0,(l===2||l===9||l===3||l===6)&&(l=De.current,l!==null&&l.tag===13&&(l.flags|=16384))),Km(e,t)):Qu(e)}function Qu(t){var e=t;do{if((e.flags&32768)!==0){Km(e,tn);return}t=e.return;var a=gp(e.alternate,e,Ca);if(a!==null){Rt=a;return}if(e=e.sibling,e!==null){Rt=e;return}Rt=e=t}while(e!==null);Kt===0&&(Kt=5)}function Km(t,e){do{var a=vp(t.alternate,t);if(a!==null){a.flags&=32767,Rt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){Rt=t;return}Rt=t=a}while(t!==null);Kt=6,Rt=null}function Zm(t,e,a,l,u,c,d,x,_){t.cancelPendingCommit=null;do Yu();while(te!==0);if((At&6)!==0)throw Error(r(327));if(e!==null){if(e===t.current)throw Error(r(177));if(c=e.lanes|e.childLanes,c|=ec,lv(t,a,c,d,x,_),t===Bt&&(Rt=Bt=null,_t=0),Fl=e,nn=t,Aa=a,co=c,oo=u,Um=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Cp(Vi,function(){return $m(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=D.T,D.T=null,u=V.p,V.p=2,d=At,At|=4;try{pp(t,e,a)}finally{At=d,V.p=u,D.T=l}}te=1,Jm(),Pm(),km()}}function Jm(){if(te===1){te=0;var t=nn,e=Fl,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=D.T,D.T=null;var l=V.p;V.p=2;var u=At;At|=4;try{Tm(e,t);var c=No,d=Dd(t.containerInfo),x=c.focusedElem,_=c.selectionRange;if(d!==x&&x&&x.ownerDocument&&zd(x.ownerDocument.documentElement,x)){if(_!==null&&Fr(x)){var z=_.start,H=_.end;if(H===void 0&&(H=z),"selectionStart"in x)x.selectionStart=z,x.selectionEnd=Math.min(H,x.value.length);else{var Y=x.ownerDocument||document,w=Y&&Y.defaultView||window;if(w.getSelection){var B=w.getSelection(),lt=x.textContent.length,dt=Math.min(_.start,lt),Lt=_.end===void 0?dt:Math.min(_.end,lt);!B.extend&&dt>Lt&&(d=Lt,Lt=dt,dt=d);var A=Od(x,dt),T=Od(x,Lt);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>Lt?(B.addRange(O),B.extend(T.node,T.offset)):(O.setEnd(T.node,T.offset),B.addRange(O))}}}}for(Y=[],B=x;B=B.parentNode;)B.nodeType===1&&Y.push({element:B,left:B.scrollLeft,top:B.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<Y.length;x++){var q=Y[x];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Wu=!!Eo,No=Eo=null}finally{At=u,V.p=l,D.T=a}}t.current=e,te=2}}function Pm(){if(te===2){te=0;var t=nn,e=Fl,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=D.T,D.T=null;var l=V.p;V.p=2;var u=At;At|=4;try{Rm(t,e.alternate,e)}finally{At=u,V.p=l,D.T=a}}te=3}}function km(){if(te===4||te===3){te=0,Yi();var t=nn,e=Fl,a=Aa,l=Um;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?te=5:(te=0,Fl=nn=null,Fm(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(an=null),Or(a),e=e.stateNode,Ce&&typeof Ce.onCommitFiberRoot=="function")try{Ce.onCommitFiberRoot(Es,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=D.T,u=V.p,V.p=2,D.T=null;try{for(var c=t.onRecoverableError,d=0;d<l.length;d++){var x=l[d];c(x.value,{componentStack:x.stack})}}finally{D.T=e,V.p=u}}(Aa&3)!==0&&Yu(),ua(t),u=t.pendingLanes,(a&261930)!==0&&(u&42)!==0?t===fo?ii++:(ii=0,fo=t):ii=0,ui(0)}}function Fm(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Ys(e)))}function Yu(){return Jm(),Pm(),km(),$m()}function $m(){if(te!==5)return!1;var t=nn,e=co;co=0;var a=Or(Aa),l=D.T,u=V.p;try{V.p=32>a?32:a,D.T=null,a=oo,oo=null;var c=nn,d=Aa;if(te=0,Fl=nn=null,Aa=0,(At&6)!==0)throw Error(r(331));var x=At;if(At|=4,zm(c.current),Cm(c,c.current,d,a),At=x,ui(0,!1),Ce&&typeof Ce.onPostCommitFiberRoot=="function")try{Ce.onPostCommitFiberRoot(Es,c)}catch{}return!0}finally{V.p=u,D.T=l,Fm(t,e)}}function Im(t,e,a){e=Ge(a,e),e=Vc(t.stateNode,e,2),t=Fa(t,e,2),t!==null&&(Ts(t,2),ua(t))}function Dt(t,e,a){if(t.tag===3)Im(t,t,a);else for(;e!==null;){if(e.tag===3){Im(e,t,a);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(an===null||!an.has(l))){t=Ge(a,t),a=Wh(2),l=Fa(e,a,2),l!==null&&(tm(a,l,e,t),Ts(l,2),ua(l));break}}e=e.return}}function yo(t,e,a){var l=t.pingCache;if(l===null){l=t.pingCache=new Sp;var u=new Set;l.set(e,u)}else u=l.get(e),u===void 0&&(u=new Set,l.set(e,u));u.has(a)||(io=!0,u.add(a),t=Np.bind(null,t,e,a),e.then(t,t))}function Np(t,e,a){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Bt===t&&(_t&a)===a&&(Kt===4||Kt===3&&(_t&62914560)===_t&&300>St()-Uu?(At&2)===0&&$l(t,0):uo|=a,kl===_t&&(kl=0)),ua(t)}function Wm(t,e){e===0&&(e=Jf()),t=Bn(t,e),t!==null&&(Ts(t,e),ua(t))}function Tp(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),Wm(t,a)}function Mp(t,e){var a=0;switch(t.tag){case 31:case 13:var l=t.stateNode,u=t.memoizedState;u!==null&&(a=u.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(e),Wm(t,a)}function Cp(t,e){return _s(t,e)}var Gu=null,Wl=null,go=!1,Vu=!1,vo=!1,sn=0;function ua(t){t!==Wl&&t.next===null&&(Wl===null?Gu=Wl=t:Wl=Wl.next=t),Vu=!0,go||(go=!0,Op())}function ui(t,e){if(!vo&&Vu){vo=!0;do for(var a=!1,l=Gu;l!==null;){if(t!==0){var u=l.pendingLanes;if(u===0)var c=0;else{var d=l.suspendedLanes,x=l.pingedLanes;c=(1<<31-Ae(42|t)+1)-1,c&=u&~(d&~x),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(a=!0,ny(l,c))}else c=_t,c=Ji(l,l===Bt?c:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(c&3)===0||Ns(l,c)||(a=!0,ny(l,c));l=l.next}while(a);vo=!1}}function Ap(){ty()}function ty(){Vu=go=!1;var t=0;sn!==0&&Yp()&&(t=sn);for(var e=St(),a=null,l=Gu;l!==null;){var u=l.next,c=ey(l,e);c===0?(l.next=null,a===null?Gu=u:a.next=u,u===null&&(Wl=a)):(a=l,(t!==0||(c&3)!==0)&&(Vu=!0)),l=u}te!==0&&te!==5||ui(t),sn!==0&&(sn=0)}function ey(t,e){for(var a=t.suspendedLanes,l=t.pingedLanes,u=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var d=31-Ae(c),x=1<<d,_=u[d];_===-1?((x&a)===0||(x&l)!==0)&&(u[d]=nv(x,e)):_<=e&&(t.expiredLanes|=x),c&=~x}if(e=Bt,a=_t,a=Ji(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,a===0||t===e&&(zt===2||zt===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&xl(l),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Ns(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(l!==null&&xl(l),Or(a)){case 2:case 8:a=Gi;break;case 32:a=Vi;break;case 268435456:a=Zf;break;default:a=Vi}return l=ay.bind(null,t),a=_s(a,l),t.callbackPriority=e,t.callbackNode=a,e}return l!==null&&l!==null&&xl(l),t.callbackPriority=2,t.callbackNode=null,2}function ay(t,e){if(te!==0&&te!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Yu()&&t.callbackNode!==a)return null;var l=_t;return l=Ji(t,t===Bt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(Bm(t,l,e),ey(t,St()),t.callbackNode!=null&&t.callbackNode===a?ay.bind(null,t):null)}function ny(t,e){if(Yu())return null;Bm(t,e,!0)}function Op(){Vp(function(){(At&6)!==0?_s(na,Ap):ty()})}function po(){if(sn===0){var t=Hl;t===0&&(t=Xi,Xi<<=1,(Xi&261888)===0&&(Xi=256)),sn=t}return sn}function ly(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:$i(""+t)}function sy(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 zp(t,e,a,l,u){if(e==="submit"&&a&&a.stateNode===u){var c=ly((u[xe]||null).action),d=l.submitter;d&&(e=(e=d[xe]||null)?ly(e.formAction):d.getAttribute("formAction"),e!==null&&(c=e,d=null));var x=new eu("action","action",null,l,u);t.push({event:x,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(sn!==0){var _=d?sy(u,d):new FormData(u);Bc(a,{pending:!0,data:_,method:u.method,action:c},null,_)}}else typeof c=="function"&&(x.preventDefault(),_=d?sy(u,d):new FormData(u),Bc(a,{pending:!0,data:_,method:u.method,action:c},c,_))},currentTarget:u}]})}}for(var xo=0;xo<tc.length;xo++){var bo=tc[xo],Dp=bo.toLowerCase(),wp=bo[0].toUpperCase()+bo.slice(1);Ie(Dp,"on"+wp)}Ie(Ld,"onAnimationEnd"),Ie(Bd,"onAnimationIteration"),Ie(Hd,"onAnimationStart"),Ie("dblclick","onDoubleClick"),Ie("focusin","onFocus"),Ie("focusout","onBlur"),Ie(Fv,"onTransitionRun"),Ie($v,"onTransitionStart"),Ie(Iv,"onTransitionCancel"),Ie(qd,"onTransitionEnd"),_l("onMouseEnter",["mouseout","mouseover"]),_l("onMouseLeave",["mouseout","mouseover"]),_l("onPointerEnter",["pointerout","pointerover"]),_l("onPointerLeave",["pointerout","pointerover"]),Dn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Dn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Dn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Dn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Dn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Dn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ri="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(" "),Up=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ri));function iy(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var l=t[a],u=l.event;l=l.listeners;t:{var c=void 0;if(e)for(var d=l.length-1;0<=d;d--){var x=l[d],_=x.instance,z=x.currentTarget;if(x=x.listener,_!==c&&u.isPropagationStopped())break t;c=x,u.currentTarget=z;try{c(u)}catch(H){lu(H)}u.currentTarget=null,c=_}else for(d=0;d<l.length;d++){if(x=l[d],_=x.instance,z=x.currentTarget,x=x.listener,_!==c&&u.isPropagationStopped())break t;c=x,u.currentTarget=z;try{c(u)}catch(H){lu(H)}u.currentTarget=null,c=_}}}}function jt(t,e){var a=e[zr];a===void 0&&(a=e[zr]=new Set);var l=t+"__bubble";a.has(l)||(uy(e,t,2,!1),a.add(l))}function So(t,e,a){var l=0;e&&(l|=4),uy(a,t,l,e)}var Xu="_reactListening"+Math.random().toString(36).slice(2);function Ro(t){if(!t[Xu]){t[Xu]=!0,td.forEach(function(a){a!=="selectionchange"&&(Up.has(a)||So(a,!1,t),So(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Xu]||(e[Xu]=!0,So("selectionchange",!1,e))}}function uy(t,e,a,l){switch(Ly(e)){case 2:var u=cx;break;case 8:u=ox;break;default:u=Bo}a=u.bind(null,e,a,t),u=void 0,!Yr||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),l?u!==void 0?t.addEventListener(e,a,{capture:!0,passive:u}):t.addEventListener(e,a,!0):u!==void 0?t.addEventListener(e,a,{passive:u}):t.addEventListener(e,a,!1)}function jo(t,e,a,l,u){var c=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var d=l.tag;if(d===3||d===4){var x=l.stateNode.containerInfo;if(x===u)break;if(d===4)for(d=l.return;d!==null;){var _=d.tag;if((_===3||_===4)&&d.stateNode.containerInfo===u)return;d=d.return}for(;x!==null;){if(d=Sl(x),d===null)return;if(_=d.tag,_===5||_===6||_===26||_===27){l=c=d;continue t}x=x.parentNode}}l=l.return}dd(function(){var z=c,H=qr(a),Y=[];t:{var w=Qd.get(t);if(w!==void 0){var B=eu,lt=t;switch(t){case"keypress":if(Wi(a)===0)break t;case"keydown":case"keyup":B=Mv;break;case"focusin":lt="focus",B=Kr;break;case"focusout":lt="blur",B=Kr;break;case"beforeblur":case"afterblur":B=Kr;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=yd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":B=gv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":B=Ov;break;case Ld:case Bd:case Hd:B=xv;break;case qd:B=Dv;break;case"scroll":case"scrollend":B=mv;break;case"wheel":B=Uv;break;case"copy":case"cut":case"paste":B=Sv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":B=vd;break;case"toggle":case"beforetoggle":B=Bv}var dt=(e&4)!==0,Lt=!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=As(T,A),q!=null&&dt.push(ci(T,q,O))),Lt)break;T=T.return}0<dt.length&&(w=new B(w,lt,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!==Hr&&(lt=a.relatedTarget||a.fromElement)&&(Sl(lt)||lt[bl]))break t;if((B||w)&&(w=H.window===H?H:(w=H.ownerDocument)?w.defaultView||w.parentWindow:window,B?(lt=a.relatedTarget||a.toElement,B=z,lt=lt?Sl(lt):null,lt!==null&&(Lt=f(lt),dt=lt.tag,lt!==Lt||dt!==5&&dt!==27&&dt!==6)&&(lt=null)):(B=null,lt=z),B!==lt)){if(dt=yd,q="onMouseLeave",A="onMouseEnter",T="mouse",(t==="pointerout"||t==="pointerover")&&(dt=vd,q="onPointerLeave",A="onPointerEnter",T="pointer"),Lt=B==null?w:Cs(B),O=lt==null?w:Cs(lt),w=new dt(q,T+"leave",B,a,H),w.target=Lt,w.relatedTarget=O,q=null,Sl(H)===z&&(dt=new dt(A,T+"enter",lt,a,H),dt.target=O,dt.relatedTarget=Lt,q=dt),Lt=q,B&<)e:{for(dt=Lp,A=B,T=lt,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&&ry(Y,w,B,dt,!1),lt!==null&&Lt!==null&&ry(Y,Lt,lt,dt,!0)}}t:{if(w=z?Cs(z):window,B=w.nodeName&&w.nodeName.toLowerCase(),B==="select"||B==="input"&&w.type==="file")var Mt=Ed;else if(jd(w))if(Nd)Mt=Jv;else{Mt=Kv;var ut=Xv}else B=w.nodeName,!B||B.toLowerCase()!=="input"||w.type!=="checkbox"&&w.type!=="radio"?z&&Br(z.elementType)&&(Mt=Ed):Mt=Zv;if(Mt&&(Mt=Mt(t,z))){_d(Y,Mt,a,H);break t}ut&&ut(t,w,z),t==="focusout"&&z&&w.type==="number"&&z.memoizedProps.value!=null&&Lr(w,"number",w.value)}switch(ut=z?Cs(z):window,t){case"focusin":(jd(ut)||ut.contentEditable==="true")&&(Al=ut,$r=z,Hs=null);break;case"focusout":Hs=$r=Al=null;break;case"mousedown":Ir=!0;break;case"contextmenu":case"mouseup":case"dragend":Ir=!1,wd(Y,a,H);break;case"selectionchange":if(kv)break;case"keydown":case"keyup":wd(Y,a,H)}var vt;if(Jr)t:{switch(t){case"compositionstart":var Et="onCompositionStart";break t;case"compositionend":Et="onCompositionEnd";break t;case"compositionupdate":Et="onCompositionUpdate";break t}Et=void 0}else Cl?Sd(t,a)&&(Et="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(Et="onCompositionStart");Et&&(pd&&a.locale!=="ko"&&(Cl||Et!=="onCompositionStart"?Et==="onCompositionEnd"&&Cl&&(vt=hd()):(Va=H,Gr="value"in Va?Va.value:Va.textContent,Cl=!0)),ut=Ku(z,Et),0<ut.length&&(Et=new gd(Et,t,null,a,H),Y.push({event:Et,listeners:ut}),vt?Et.data=vt:(vt=Rd(a),vt!==null&&(Et.data=vt)))),(vt=qv?Qv(t,a):Yv(t,a))&&(Et=Ku(z,"onBeforeInput"),0<Et.length&&(ut=new gd("onBeforeInput","beforeinput",null,a,H),Y.push({event:ut,listeners:Et}),ut.data=vt)),zp(Y,t,z,a,H)}iy(Y,e)})}function ci(t,e,a){return{instance:t,listener:e,currentTarget:a}}function Ku(t,e){for(var a=e+"Capture",l=[];t!==null;){var u=t,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=As(t,a),u!=null&&l.unshift(ci(t,u,c)),u=As(t,e),u!=null&&l.push(ci(t,u,c))),t.tag===3)return l;t=t.return}return[]}function Lp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ry(t,e,a,l,u){for(var c=e._reactName,d=[];a!==null&&a!==l;){var x=a,_=x.alternate,z=x.stateNode;if(x=x.tag,_!==null&&_===l)break;x!==5&&x!==26&&x!==27||z===null||(_=z,u?(z=As(a,c),z!=null&&d.unshift(ci(a,z,_))):u||(z=As(a,c),z!=null&&d.push(ci(a,z,_)))),a=a.return}d.length!==0&&t.push({event:e,listeners:d})}var Bp=/\r\n?/g,Hp=/\u0000|\uFFFD/g;function cy(t){return(typeof t=="string"?t:""+t).replace(Bp,`
|
|
49
|
-
`).replace(Hp,"")}function oy(t,e){return e=cy(e),cy(t)===e}function Ut(t,e,a,l,u,c){switch(a){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Nl(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Nl(t,""+l);break;case"className":ki(t,"class",l);break;case"tabIndex":ki(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":ki(t,a,l);break;case"style":od(t,l,c);break;case"data":if(e!=="object"){ki(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=$i(""+l),t.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof c=="function"&&(a==="formAction"?(e!=="input"&&Ut(t,e,"name",u.name,u,null),Ut(t,e,"formEncType",u.formEncType,u,null),Ut(t,e,"formMethod",u.formMethod,u,null),Ut(t,e,"formTarget",u.formTarget,u,null)):(Ut(t,e,"encType",u.encType,u,null),Ut(t,e,"method",u.method,u,null),Ut(t,e,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=$i(""+l),t.setAttribute(a,l);break;case"onClick":l!=null&&(t.onclick=ya);break;case"onScroll":l!=null&&jt("scroll",t);break;case"onScrollEnd":l!=null&&jt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}a=$i(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""+l):t.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":l===!0?t.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,l):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(a,l):t.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(a):t.setAttribute(a,l);break;case"popover":jt("beforetoggle",t),jt("toggle",t),Pi(t,"popover",l);break;case"xlinkActuate":ma(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ma(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ma(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ma(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ma(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ma(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ma(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ma(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ma(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Pi(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=dv.get(a)||a,Pi(t,a,l))}}function _o(t,e,a,l,u,c){switch(a){case"style":od(t,l,c);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(r(60));t.innerHTML=a}}break;case"children":typeof l=="string"?Nl(t,l):(typeof l=="number"||typeof l=="bigint")&&Nl(t,""+l);break;case"onScroll":l!=null&&jt("scroll",t);break;case"onScrollEnd":l!=null&&jt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=ya);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ed.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),e=a.slice(2,u?a.length-7:void 0),c=t[xe]||null,c=c!=null?c[a]:null,typeof c=="function"&&t.removeEventListener(e,c,u),typeof l=="function")){typeof c!="function"&&c!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,l,u);break t}a in t?t[a]=l:l===!0?t.setAttribute(a,""):Pi(t,a,l)}}}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":jt("error",t),jt("load",t);var l=!1,u=!1,c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];if(d!=null)switch(c){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ut(t,e,c,d,a,null)}}u&&Ut(t,e,"srcSet",a.srcSet,a,null),l&&Ut(t,e,"src",a.src,a,null);return;case"input":jt("invalid",t);var x=c=d=u=null,_=null,z=null;for(l in a)if(a.hasOwnProperty(l)){var H=a[l];if(H!=null)switch(l){case"name":u=H;break;case"type":d=H;break;case"checked":_=H;break;case"defaultChecked":z=H;break;case"value":c=H;break;case"defaultValue":x=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(r(137,e));break;default:Ut(t,e,l,H,a,null)}}id(t,c,x,_,z,d,u,!1);return;case"select":jt("invalid",t),l=d=c=null;for(u in a)if(a.hasOwnProperty(u)&&(x=a[u],x!=null))switch(u){case"value":c=x;break;case"defaultValue":d=x;break;case"multiple":l=x;default:Ut(t,e,u,x,a,null)}e=c,a=d,t.multiple=!!l,e!=null?El(t,!!l,e,!1):a!=null&&El(t,!!l,a,!0);return;case"textarea":jt("invalid",t),c=u=l=null;for(d in a)if(a.hasOwnProperty(d)&&(x=a[d],x!=null))switch(d){case"value":l=x;break;case"defaultValue":u=x;break;case"children":c=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(r(91));break;default:Ut(t,e,d,x,a,null)}rd(t,l,u,c);return;case"option":for(_ in a)if(a.hasOwnProperty(_)&&(l=a[_],l!=null))switch(_){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ut(t,e,_,l,a,null)}return;case"dialog":jt("beforetoggle",t),jt("toggle",t),jt("cancel",t),jt("close",t);break;case"iframe":case"object":jt("load",t);break;case"video":case"audio":for(l=0;l<ri.length;l++)jt(ri[l],t);break;case"image":jt("error",t),jt("load",t);break;case"details":jt("toggle",t);break;case"embed":case"source":case"link":jt("error",t),jt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in a)if(a.hasOwnProperty(z)&&(l=a[z],l!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,e));default:Ut(t,e,z,l,a,null)}return;default:if(Br(e)){for(H in a)a.hasOwnProperty(H)&&(l=a[H],l!==void 0&&_o(t,e,H,l,a,void 0));return}}for(x in a)a.hasOwnProperty(x)&&(l=a[x],l!=null&&Ut(t,e,x,l,a,null))}function qp(t,e,a,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,c=null,d=null,x=null,_=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":_=Y;default:l.hasOwnProperty(B)||Ut(t,e,B,null,l,Y)}}for(var w in l){var B=l[w];if(Y=a[w],l.hasOwnProperty(w)&&(B!=null||Y!=null))switch(w){case"type":c=B;break;case"name":u=B;break;case"checked":z=B;break;case"defaultChecked":H=B;break;case"value":d=B;break;case"defaultValue":x=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(r(137,e));break;default:B!==Y&&Ut(t,e,w,B,l,Y)}}Ur(t,d,x,_,z,H,c,u);return;case"select":B=d=x=w=null;for(c in a)if(_=a[c],a.hasOwnProperty(c)&&_!=null)switch(c){case"value":break;case"multiple":B=_;default:l.hasOwnProperty(c)||Ut(t,e,c,null,l,_)}for(u in l)if(c=l[u],_=a[u],l.hasOwnProperty(u)&&(c!=null||_!=null))switch(u){case"value":w=c;break;case"defaultValue":x=c;break;case"multiple":d=c;default:c!==_&&Ut(t,e,u,c,l,_)}e=x,a=d,l=B,w!=null?El(t,!!a,w,!1):!!l!=!!a&&(e!=null?El(t,!!a,e,!0):El(t,!!a,a?[]:"",!1));return;case"textarea":B=w=null;for(x in a)if(u=a[x],a.hasOwnProperty(x)&&u!=null&&!l.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:Ut(t,e,x,null,l,u)}for(d in l)if(u=l[d],c=a[d],l.hasOwnProperty(d)&&(u!=null||c!=null))switch(d){case"value":w=u;break;case"defaultValue":B=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(r(91));break;default:u!==c&&Ut(t,e,d,u,l,c)}ud(t,w,B);return;case"option":for(var lt in a)if(w=a[lt],a.hasOwnProperty(lt)&&w!=null&&!l.hasOwnProperty(lt))switch(lt){case"selected":t.selected=!1;break;default:Ut(t,e,lt,null,l,w)}for(_ in l)if(w=l[_],B=a[_],l.hasOwnProperty(_)&&w!==B&&(w!=null||B!=null))switch(_){case"selected":t.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:Ut(t,e,_,w,l,B)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var dt in a)w=a[dt],a.hasOwnProperty(dt)&&w!=null&&!l.hasOwnProperty(dt)&&Ut(t,e,dt,null,l,w);for(z in l)if(w=l[z],B=a[z],l.hasOwnProperty(z)&&w!==B&&(w!=null||B!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(r(137,e));break;default:Ut(t,e,z,w,l,B)}return;default:if(Br(e)){for(var Lt in a)w=a[Lt],a.hasOwnProperty(Lt)&&w!==void 0&&!l.hasOwnProperty(Lt)&&_o(t,e,Lt,void 0,l,w);for(H in l)w=l[H],B=a[H],!l.hasOwnProperty(H)||w===B||w===void 0&&B===void 0||_o(t,e,H,w,l,B);return}}for(var A in a)w=a[A],a.hasOwnProperty(A)&&w!=null&&!l.hasOwnProperty(A)&&Ut(t,e,A,null,l,w);for(Y in l)w=l[Y],B=a[Y],!l.hasOwnProperty(Y)||w===B||w==null&&B==null||Ut(t,e,Y,w,l,B)}function fy(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Qp(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var u=a[l],c=u.transferSize,d=u.initiatorType,x=u.duration;if(c&&x&&fy(d)){for(d=0,x=u.responseEnd,l+=1;l<a.length;l++){var _=a[l],z=_.startTime;if(z>x)break;var H=_.transferSize,Y=_.initiatorType;H&&fy(Y)&&(_=_.responseEnd,d+=H*(_<x?1:(x-z)/(_-z)))}if(--l,e+=8*(c+d)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Eo=null,No=null;function Zu(t){return t.nodeType===9?t:t.ownerDocument}function dy(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 hy(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 To(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 Mo=null;function Yp(){var t=window.event;return t&&t.type==="popstate"?t===Mo?!1:(Mo=t,!0):(Mo=null,!1)}var my=typeof setTimeout=="function"?setTimeout:void 0,Gp=typeof clearTimeout=="function"?clearTimeout:void 0,yy=typeof Promise=="function"?Promise:void 0,Vp=typeof queueMicrotask=="function"?queueMicrotask:typeof yy<"u"?function(t){return yy.resolve(null).then(t).catch(Xp)}:my;function Xp(t){setTimeout(function(){throw t})}function un(t){return t==="head"}function gy(t,e){var a=e,l=0;do{var u=a.nextSibling;if(t.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(l===0){t.removeChild(u),ns(e);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")oi(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,oi(a);for(var c=a.firstChild;c;){var d=c.nextSibling,x=c.nodeName;c[Ms]||x==="SCRIPT"||x==="STYLE"||x==="LINK"&&c.rel.toLowerCase()==="stylesheet"||a.removeChild(c),c=d}}else a==="body"&&oi(t.ownerDocument.body);a=u}while(a);ns(e)}function vy(t,e){var a=t;t=0;do{var l=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=l}while(a)}function Co(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":Co(a),Dr(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function Kp(t,e,a,l){for(;t.nodeType===1;){var u=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Ms])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Je(t.nextSibling),t===null)break}return null}function Zp(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 py(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 Ao(t){return t.data==="$?"||t.data==="$~"}function Oo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Jp(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var l=function(){e(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function 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 zo=null;function xy(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 by(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 Sy(t,e,a){switch(e=Zu(a),t){case"html":if(t=e.documentElement,!t)throw Error(r(452));return t;case"head":if(t=e.head,!t)throw Error(r(453));return t;case"body":if(t=e.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}function oi(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Dr(t)}var Pe=new Map,Ry=new Set;function Ju(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var Oa=V.d;V.d={f:Pp,r:kp,D:Fp,C:$p,L:Ip,m:Wp,X:ex,S:tx,M:ax};function Pp(){var t=Oa.f(),e=Hu();return t||e}function kp(t){var e=Rl(t);e!==null&&e.tag===5&&e.type==="form"?qh(e):Oa.r(t)}var ts=typeof document>"u"?null:document;function jy(t,e,a){var l=ts;if(l&&typeof e=="string"&&e){var u=Qe(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Ry.has(u)||(Ry.add(u),t={rel:t,crossOrigin:a,href:e},l.querySelector(u)===null&&(e=l.createElement("link"),ce(e,"link",t),ae(e),l.head.appendChild(e)))}}function Fp(t){Oa.D(t),jy("dns-prefetch",t,null)}function $p(t,e){Oa.C(t,e),jy("preconnect",t,e)}function Ip(t,e,a){Oa.L(t,e,a);var l=ts;if(l&&t&&e){var u='link[rel="preload"][as="'+Qe(e)+'"]';e==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Qe(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Qe(a.imageSizes)+'"]')):u+='[href="'+Qe(t)+'"]';var c=u;switch(e){case"style":c=es(t);break;case"script":c=as(t)}Pe.has(c)||(t=v({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),Pe.set(c,t),l.querySelector(u)!==null||e==="style"&&l.querySelector(fi(c))||e==="script"&&l.querySelector(di(c))||(e=l.createElement("link"),ce(e,"link",t),ae(e),l.head.appendChild(e)))}}function Wp(t,e){Oa.m(t,e);var a=ts;if(a&&t){var l=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Qe(l)+'"][href="'+Qe(t)+'"]',c=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=as(t)}if(!Pe.has(c)&&(t=v({rel:"modulepreload",href:t},e),Pe.set(c,t),a.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(di(c)))return}l=a.createElement("link"),ce(l,"link",t),ae(l),a.head.appendChild(l)}}}function tx(t,e,a){Oa.S(t,e,a);var l=ts;if(l&&t){var u=jl(l).hoistableStyles,c=es(t);e=e||"default";var d=u.get(c);if(!d){var x={loading:0,preload:null};if(d=l.querySelector(fi(c)))x.loading=5;else{t=v({rel:"stylesheet",href:t,"data-precedence":e},a),(a=Pe.get(c))&&Do(t,a);var _=d=l.createElement("link");ae(_),ce(_,"link",t),_._p=new Promise(function(z,H){_.onload=z,_.onerror=H}),_.addEventListener("load",function(){x.loading|=1}),_.addEventListener("error",function(){x.loading|=2}),x.loading|=4,Pu(d,e,l)}d={type:"stylesheet",instance:d,count:1,state:x},u.set(c,d)}}}function ex(t,e){Oa.X(t,e);var a=ts;if(a&&t){var l=jl(a).hoistableScripts,u=as(t),c=l.get(u);c||(c=a.querySelector(di(u)),c||(t=v({src:t,async:!0},e),(e=Pe.get(u))&&wo(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},l.set(u,c))}}function ax(t,e){Oa.M(t,e);var a=ts;if(a&&t){var l=jl(a).hoistableScripts,u=as(t),c=l.get(u);c||(c=a.querySelector(di(u)),c||(t=v({src:t,async:!0,type:"module"},e),(e=Pe.get(u))&&wo(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},l.set(u,c))}}function _y(t,e,a,l){var u=(u=xt.current)?Ju(u):null;if(!u)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=es(a.href),a=jl(u).hoistableStyles,l=a.get(e),l||(l={type:"style",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=es(a.href);var c=jl(u).hoistableStyles,d=c.get(t);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,d),(c=u.querySelector(fi(t)))&&!c._p&&(d.instance=c,d.state.loading=5),Pe.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},Pe.set(t,a),c||nx(u,t,a,d.state))),e&&l===null)throw Error(r(528,""));return d}if(e&&l!==null)throw Error(r(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=as(a),a=jl(u).hoistableScripts,l=a.get(e),l||(l={type:"script",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,t))}}function es(t){return'href="'+Qe(t)+'"'}function fi(t){return'link[rel="stylesheet"]['+t+"]"}function Ey(t){return v({},t,{"data-precedence":t.precedence,precedence:null})}function nx(t,e,a,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),ce(e,"link",a),ae(e),t.head.appendChild(e))}function as(t){return'[src="'+Qe(t)+'"]'}function di(t){return"script[async]"+t}function Ny(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Qe(a.href)+'"]');if(l)return e.instance=l,ae(l),l;var u=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),ae(l),ce(l,"style",u),Pu(l,a.precedence,t),e.instance=l;case"stylesheet":u=es(a.href);var c=t.querySelector(fi(u));if(c)return e.state.loading|=4,e.instance=c,ae(c),c;l=Ey(a),(u=Pe.get(u))&&Do(l,u),c=(t.ownerDocument||t).createElement("link"),ae(c);var d=c;return d._p=new Promise(function(x,_){d.onload=x,d.onerror=_}),ce(c,"link",l),e.state.loading|=4,Pu(c,a.precedence,t),e.instance=c;case"script":return c=as(a.src),(u=t.querySelector(di(c)))?(e.instance=u,ae(u),u):(l=a,(u=Pe.get(c))&&(l=v({},a),wo(l,u)),t=t.ownerDocument||t,u=t.createElement("script"),ae(u),ce(u,"link",l),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(r(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Pu(l,a.precedence,t));return e.instance}function Pu(t,e,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,c=u,d=0;d<l.length;d++){var x=l[d];if(x.dataset.precedence===e)c=x;else if(c!==u)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function Do(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function wo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ku=null;function Ty(t,e,a){if(ku===null){var l=new Map,u=ku=new Map;u.set(a,l)}else u=ku,l=u.get(a),l||(l=new Map,u.set(a,l));if(l.has(t))return l;for(l.set(t,null),a=a.getElementsByTagName(t),u=0;u<a.length;u++){var c=a[u];if(!(c[Ms]||c[se]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var d=c.getAttribute(e)||"";d=t+d;var x=l.get(d);x?x.push(c):l.set(d,[c])}}return l}function My(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function lx(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 Cy(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function sx(t,e,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=es(l.href),c=e.querySelector(fi(u));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Fu.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=c,ae(c);return}c=e.ownerDocument||e,l=Ey(l),(u=Pe.get(u))&&Do(l,u),c=c.createElement("link"),ae(c);var d=c;d._p=new Promise(function(x,_){d.onload=x,d.onerror=_}),ce(c,"link",l),a.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=Fu.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var Uo=0;function ix(t,e){return t.stylesheets&&t.count===0&&Iu(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var l=setTimeout(function(){if(t.stylesheets&&Iu(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&Uo===0&&(Uo=62500*Qp());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Iu(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>Uo?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function Fu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Iu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var $u=null;function Iu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,$u=new Map,e.forEach(ux,t),$u=null,Fu.call(t))}function ux(t,e){if(!(e.state.loading&4)){var a=$u.get(t);if(a)var l=a.get(null);else{a=new Map,$u.set(t,a);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var d=u[c];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(a.set(d.dataset.precedence,d),l=d)}l&&a.set(null,l)}u=e.instance,d=u.getAttribute("data-precedence"),c=a.get(d)||l,c===l&&a.set(null,u),a.set(d,u),this.count++,l=Fu.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),c?c.parentNode.insertBefore(u,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var hi={$$typeof:K,Provider:null,Consumer:null,_currentValue:at,_currentValue2:at,_threadCount:0};function rx(t,e,a,l,u,c,d,x,_){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=Cr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cr(0),this.hiddenUpdates=Cr(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function Ay(t,e,a,l,u,c,d,x,_,z,H,Y){return t=new rx(t,e,a,d,_,z,H,Y,x),e=1,c===!0&&(e|=24),c=ze(3,null,null,e),t.current=c,c.stateNode=t,e=hc(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:l,isDehydrated:a,cache:e},vc(c),t}function Oy(t){return t?(t=Dl,t):Dl}function zy(t,e,a,l,u,c){u=Oy(u),l.context===null?l.context=u:l.pendingContext=u,l=ka(e),l.payload={element:a},c=c===void 0?null:c,c!==null&&(l.callback=c),a=Fa(t,l,e),a!==null&&(Ee(a,t,e),Ks(a,t,e))}function Dy(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function Lo(t,e){Dy(t,e),(t=t.alternate)&&Dy(t,e)}function wy(t){if(t.tag===13||t.tag===31){var e=Bn(t,67108864);e!==null&&Ee(e,t,67108864),Lo(t,67108864)}}function Uy(t){if(t.tag===13||t.tag===31){var e=Be();e=Ar(e);var a=Bn(t,e);a!==null&&Ee(a,t,e),Lo(t,e)}}var Wu=!0;function cx(t,e,a,l){var u=D.T;D.T=null;var c=V.p;try{V.p=2,Bo(t,e,a,l)}finally{V.p=c,D.T=u}}function ox(t,e,a,l){var u=D.T;D.T=null;var c=V.p;try{V.p=8,Bo(t,e,a,l)}finally{V.p=c,D.T=u}}function Bo(t,e,a,l){if(Wu){var u=Ho(l);if(u===null)jo(t,e,l,tr,a),By(t,l);else if(dx(u,t,e,a,l))l.stopPropagation();else if(By(t,l),e&4&&-1<fx.indexOf(t)){for(;u!==null;){var c=Rl(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var d=zn(c.pendingLanes);if(d!==0){var x=c;for(x.pendingLanes|=2,x.entangledLanes|=2;d;){var _=1<<31-Ae(d);x.entanglements[1]|=_,d&=~_}ua(c),(At&6)===0&&(Lu=St()+500,ui(0))}}break;case 31:case 13:x=Bn(c,2),x!==null&&Ee(x,c,2),Hu(),Lo(c,2)}if(c=Ho(l),c===null&&jo(t,e,l,tr,a),c===u)break;u=c}u!==null&&l.stopPropagation()}else jo(t,e,l,null,a)}}function Ho(t){return t=qr(t),qo(t)}var tr=null;function qo(t){if(tr=null,t=Sl(t),t!==null){var e=f(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=h(e),t!==null)return t;t=null}else if(a===31){if(t=g(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return tr=t,null}function Ly(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(oe()){case na:return 2;case Gi:return 8;case Vi:case $g:return 32;case Zf:return 268435456;default:return 32}default:return 32}}var Qo=!1,rn=null,cn=null,on=null,mi=new Map,yi=new Map,fn=[],fx="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 By(t,e){switch(t){case"focusin":case"focusout":rn=null;break;case"dragenter":case"dragleave":cn=null;break;case"mouseover":case"mouseout":on=null;break;case"pointerover":case"pointerout":mi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":yi.delete(e.pointerId)}}function gi(t,e,a,l,u,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:a,eventSystemFlags:l,nativeEvent:c,targetContainers:[u]},e!==null&&(e=Rl(e),e!==null&&wy(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function dx(t,e,a,l,u){switch(e){case"focusin":return rn=gi(rn,t,e,a,l,u),!0;case"dragenter":return cn=gi(cn,t,e,a,l,u),!0;case"mouseover":return on=gi(on,t,e,a,l,u),!0;case"pointerover":var c=u.pointerId;return mi.set(c,gi(mi.get(c)||null,t,e,a,l,u)),!0;case"gotpointercapture":return c=u.pointerId,yi.set(c,gi(yi.get(c)||null,t,e,a,l,u)),!0}return!1}function Hy(t){var e=Sl(t.target);if(e!==null){var a=f(e);if(a!==null){if(e=a.tag,e===13){if(e=h(a),e!==null){t.blockedOn=e,If(t.priority,function(){Uy(a)});return}}else if(e===31){if(e=g(a),e!==null){t.blockedOn=e,If(t.priority,function(){Uy(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 er(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=Ho(t.nativeEvent);if(a===null){a=t.nativeEvent;var l=new a.constructor(a.type,a);Hr=l,a.target.dispatchEvent(l),Hr=null}else return e=Rl(a),e!==null&&wy(e),t.blockedOn=a,!1;e.shift()}return!0}function qy(t,e,a){er(t)&&a.delete(e)}function hx(){Qo=!1,rn!==null&&er(rn)&&(rn=null),cn!==null&&er(cn)&&(cn=null),on!==null&&er(on)&&(on=null),mi.forEach(qy),yi.forEach(qy)}function ar(t,e){t.blockedOn===e&&(t.blockedOn=null,Qo||(Qo=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,hx)))}var nr=null;function Qy(t){nr!==t&&(nr=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){nr===t&&(nr=null);for(var e=0;e<t.length;e+=3){var a=t[e],l=t[e+1],u=t[e+2];if(typeof l!="function"){if(qo(l||a)===null)continue;break}var c=Rl(a);c!==null&&(t.splice(e,3),e-=3,Bc(c,{pending:!0,data:u,method:a.method,action:l},l,u))}}))}function ns(t){function e(_){return ar(_,t)}rn!==null&&ar(rn,t),cn!==null&&ar(cn,t),on!==null&&ar(on,t),mi.forEach(e),yi.forEach(e);for(var a=0;a<fn.length;a++){var l=fn[a];l.blockedOn===t&&(l.blockedOn=null)}for(;0<fn.length&&(a=fn[0],a.blockedOn===null);)Hy(a),a.blockedOn===null&&fn.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var u=a[l],c=a[l+1],d=u[xe]||null;if(typeof c=="function")d||Qy(a);else if(d){var x=null;if(c&&c.hasAttribute("formAction")){if(u=c,d=c[xe]||null)x=d.formAction;else if(qo(u)!==null)continue}else x=d.action;typeof x=="function"?a[l+1]=x:(a.splice(l,3),l-=3),Qy(a)}}}function Yy(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(d){return u=d})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),l||setTimeout(a,20)}function a(){if(!l&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var l=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function Yo(t){this._internalRoot=t}lr.prototype.render=Yo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(r(409));var a=e.current,l=Be();zy(a,l,t,e,null,null)},lr.prototype.unmount=Yo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;zy(t.current,2,null,t,null,null),Hu(),e[bl]=null}};function lr(t){this._internalRoot=t}lr.prototype.unstable_scheduleHydration=function(t){if(t){var e=$f();t={blockedOn:null,target:t,priority:e};for(var a=0;a<fn.length&&e!==0&&e<fn[a].priority;a++);fn.splice(a,0,t),a===0&&Hy(t)}};var Gy=s.version;if(Gy!=="19.2.4")throw Error(r(527,Gy,"19.2.4"));V.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=y(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var mx={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var sr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!sr.isDisabled&&sr.supportsFiber)try{Es=sr.inject(mx),Ce=sr}catch{}}return pi.createRoot=function(t,e){if(!o(t))throw Error(r(299));var a=!1,l="",u=kh,c=Fh,d=$h;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(d=e.onRecoverableError)),e=Ay(t,1,!1,null,null,a,l,null,u,c,d,Yy),t[bl]=e.current,Ro(t),new Yo(e)},pi.hydrateRoot=function(t,e,a){if(!o(t))throw Error(r(299));var l=!1,u="",c=kh,d=Fh,x=$h,_=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(c=a.onUncaughtError),a.onCaughtError!==void 0&&(d=a.onCaughtError),a.onRecoverableError!==void 0&&(x=a.onRecoverableError),a.formState!==void 0&&(_=a.formState)),e=Ay(t,1,!0,e,a??null,l,u,_,c,d,x,Yy),e.context=Oy(null),a=e.current,l=Be(),l=Ar(l),u=ka(l),u.callback=null,Fa(a,u,l),a=l,e.current.lanes=a,Ts(e,a),ua(e),t[bl]=e.current,Ro(t),new lr(e)},pi.version="19.2.4",pi}var Wy;function _x(){if(Wy)return Ko.exports;Wy=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(s){console.error(s)}}return n(),Ko.exports=jx(),Ko.exports}var Ex=_x(),Ss=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(){}},tl,yn,us,Y0,Nx=(Y0=class extends Ss{constructor(){super();rt(this,tl);rt(this,yn);rt(this,us);et(this,us,s=>{if(typeof window<"u"&&window.addEventListener){const i=()=>s();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}})}onSubscribe(){E(this,yn)||this.setEventListener(E(this,us))}onUnsubscribe(){var s;this.hasListeners()||((s=E(this,yn))==null||s.call(this),et(this,yn,void 0))}setEventListener(s){var i;et(this,us,s),(i=E(this,yn))==null||i.call(this),et(this,yn,s(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(s){E(this,tl)!==s&&(et(this,tl,s),this.onFocus())}onFocus(){const s=this.isFocused();this.listeners.forEach(i=>{i(s)})}isFocused(){var s;return typeof E(this,tl)=="boolean"?E(this,tl):((s=globalThis.document)==null?void 0:s.visibilityState)!=="hidden"}},tl=new WeakMap,yn=new WeakMap,us=new WeakMap,Y0),Cf=new Nx,Tx={setTimeout:(n,s)=>setTimeout(n,s),clearTimeout:n=>clearTimeout(n),setInterval:(n,s)=>setInterval(n,s),clearInterval:n=>clearInterval(n)},gn,Mf,G0,Mx=(G0=class{constructor(){rt(this,gn,Tx);rt(this,Mf,!1)}setTimeoutProvider(n){et(this,gn,n)}setTimeout(n,s){return E(this,gn).setTimeout(n,s)}clearTimeout(n){E(this,gn).clearTimeout(n)}setInterval(n,s){return E(this,gn).setInterval(n,s)}clearInterval(n){E(this,gn).clearInterval(n)}},gn=new WeakMap,Mf=new WeakMap,G0),$n=new Mx;function Cx(n){setTimeout(n,0)}var Ax=typeof window>"u"||"Deno"in globalThis;function ge(){}function Ox(n,s){return typeof n=="function"?n(s):n}function cf(n){return typeof n=="number"&&n>=0&&n!==1/0}function W0(n,s){return Math.max(n+(s||0)-Date.now(),0)}function Tn(n,s){return typeof n=="function"?n(s):n}function Fe(n,s){return typeof n=="function"?n(s):n}function t0(n,s){const{type:i="all",exact:r,fetchStatus:o,predicate:f,queryKey:h,stale:g}=n;if(h){if(r){if(s.queryHash!==Af(h,s.options))return!1}else if(!Mi(s.queryKey,h))return!1}if(i!=="all"){const p=s.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof g=="boolean"&&s.isStale()!==g||o&&o!==s.state.fetchStatus||f&&!f(s))}function e0(n,s){const{exact:i,status:r,predicate:o,mutationKey:f}=n;if(f){if(!s.options.mutationKey)return!1;if(i){if(dl(s.options.mutationKey)!==dl(f))return!1}else if(!Mi(s.options.mutationKey,f))return!1}return!(r&&s.state.status!==r||o&&!o(s))}function Af(n,s){return((s==null?void 0:s.queryKeyHashFn)||dl)(n)}function dl(n){return JSON.stringify(n,(s,i)=>of(i)?Object.keys(i).sort().reduce((r,o)=>(r[o]=i[o],r),{}):i)}function Mi(n,s){return n===s?!0:typeof n!=typeof s?!1:n&&s&&typeof n=="object"&&typeof s=="object"?Object.keys(s).every(i=>Mi(n[i],s[i])):!1}var zx=Object.prototype.hasOwnProperty;function tg(n,s,i=0){if(n===s)return n;if(i>500)return s;const r=a0(n)&&a0(s);if(!r&&!(of(n)&&of(s)))return s;const f=(r?n:Object.keys(n)).length,h=r?s:Object.keys(s),g=h.length,p=r?new Array(g):{};let y=0;for(let b=0;b<g;b++){const v=r?b:h[b],S=n[v],j=s[v];if(S===j){p[v]=S,(r?b<f:zx.call(n,v))&&y++;continue}if(S===null||j===null||typeof S!="object"||typeof j!="object"){p[v]=j;continue}const R=tg(S,j,i+1);p[v]=R,R===S&&y++}return f===g&&y===f?n:p}function gr(n,s){if(!s||Object.keys(n).length!==Object.keys(s).length)return!1;for(const i in n)if(n[i]!==s[i])return!1;return!0}function a0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function of(n){if(!n0(n))return!1;const s=n.constructor;if(s===void 0)return!0;const i=s.prototype;return!(!n0(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function n0(n){return Object.prototype.toString.call(n)==="[object Object]"}function Dx(n){return new Promise(s=>{$n.setTimeout(s,n)})}function ff(n,s,i){return typeof i.structuralSharing=="function"?i.structuralSharing(n,s):i.structuralSharing!==!1?tg(n,s):s}function wx(n,s,i=0){const r=[...n,s];return i&&r.length>i?r.slice(1):r}function Ux(n,s,i=0){const r=[s,...n];return i&&r.length>i?r.slice(0,-1):r}var Of=Symbol();function eg(n,s){return!n.queryFn&&(s!=null&&s.initialPromise)?()=>s.initialPromise:!n.queryFn||n.queryFn===Of?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function zf(n,s){return typeof n=="function"?n(...s):!!n}function Lx(n,s,i){let r=!1,o;return Object.defineProperty(n,"signal",{enumerable:!0,get:()=>(o??(o=s()),r||(r=!0,o.aborted?i():o.addEventListener("abort",i,{once:!0})),o)}),n}var Ci=(()=>{let n=()=>Ax;return{isServer(){return n()},setIsServer(s){n=s}}})();function df(){let n,s;const i=new Promise((o,f)=>{n=o,s=f});i.status="pending",i.catch(()=>{});function r(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{r({status:"fulfilled",value:o}),n(o)},i.reject=o=>{r({status:"rejected",reason:o}),s(o)},i}var Bx=Cx;function Hx(){let n=[],s=0,i=g=>{g()},r=g=>{g()},o=Bx;const f=g=>{s?n.push(g):o(()=>{i(g)})},h=()=>{const g=n;n=[],g.length&&o(()=>{r(()=>{g.forEach(p=>{i(p)})})})};return{batch:g=>{let p;s++;try{p=g()}finally{s--,s||h()}return p},batchCalls:g=>(...p)=>{f(()=>{g(...p)})},schedule:f,setNotifyFunction:g=>{i=g},setBatchNotifyFunction:g=>{r=g},setScheduler:g=>{o=g}}}var ee=Hx(),rs,vn,cs,V0,qx=(V0=class extends Ss{constructor(){super();rt(this,rs,!0);rt(this,vn);rt(this,cs);et(this,cs,s=>{if(typeof window<"u"&&window.addEventListener){const i=()=>s(!0),r=()=>s(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}}})}onSubscribe(){E(this,vn)||this.setEventListener(E(this,cs))}onUnsubscribe(){var s;this.hasListeners()||((s=E(this,vn))==null||s.call(this),et(this,vn,void 0))}setEventListener(s){var i;et(this,cs,s),(i=E(this,vn))==null||i.call(this),et(this,vn,s(this.setOnline.bind(this)))}setOnline(s){E(this,rs)!==s&&(et(this,rs,s),this.listeners.forEach(r=>{r(s)}))}isOnline(){return E(this,rs)}},rs=new WeakMap,vn=new WeakMap,cs=new WeakMap,V0),vr=new qx;function Qx(n){return Math.min(1e3*2**n,3e4)}function ag(n){return(n??"online")==="online"?vr.isOnline():!0}var hf=class extends Error{constructor(n){super("CancelledError"),this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function ng(n){let s=!1,i=0,r;const o=df(),f=()=>o.status!=="pending",h=M=>{var C;if(!f()){const U=new hf(M);S(U),(C=n.onCancel)==null||C.call(n,U)}},g=()=>{s=!0},p=()=>{s=!1},y=()=>Cf.isFocused()&&(n.networkMode==="always"||vr.isOnline())&&n.canRun(),b=()=>ag(n.networkMode)&&n.canRun(),v=M=>{f()||(r==null||r(),o.resolve(M))},S=M=>{f()||(r==null||r(),o.reject(M))},j=()=>new Promise(M=>{var C;r=U=>{(f()||y())&&M(U)},(C=n.onPause)==null||C.call(n)}).then(()=>{var M;r=void 0,f()||(M=n.onContinue)==null||M.call(n)}),R=()=>{if(f())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 $;if(f())return;const P=n.retry??(Ci.isServer()?0:3),K=n.retryDelay??Qx,L=typeof K=="function"?K(i,U):K,X=P===!0||typeof P=="number"&&i<P||typeof P=="function"&&P(i,U);if(s||!X){S(U);return}i++,($=n.onFail)==null||$.call(n,i,U),Dx(L).then(()=>y()?void 0:j()).then(()=>{s?S(U):R()})})};return{promise:o,status:()=>o.status,cancel:h,continue:()=>(r==null||r(),o),cancelRetry:g,continueRetry:p,canStart:b,start:()=>(b()?R():j().then(R),o)}}var el,X0,lg=(X0=class{constructor(){rt(this,el)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),cf(this.gcTime)&&et(this,el,$n.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Ci.isServer()?1/0:300*1e3))}clearGcTimeout(){E(this,el)&&($n.clearTimeout(E(this,el)),et(this,el,void 0))}},el=new WeakMap,X0),al,os,ke,nl,le,wi,ll,He,sg,za,K0,Yx=(K0=class extends lg{constructor(s){super();rt(this,He);rt(this,al);rt(this,os);rt(this,ke);rt(this,nl);rt(this,le);rt(this,wi);rt(this,ll);et(this,ll,!1),et(this,wi,s.defaultOptions),this.setOptions(s.options),this.observers=[],et(this,nl,s.client),et(this,ke,E(this,nl).getQueryCache()),this.queryKey=s.queryKey,this.queryHash=s.queryHash,et(this,al,s0(this.options)),this.state=s.state??E(this,al),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var s;return(s=E(this,le))==null?void 0:s.promise}setOptions(s){if(this.options={...E(this,wi),...s},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=s0(this.options);i.data!==void 0&&(this.setState(l0(i.data,i.dataUpdatedAt)),et(this,al,i))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&E(this,ke).remove(this)}setData(s,i){const r=ff(this.state.data,s,this.options);return pt(this,He,za).call(this,{data:r,type:"success",dataUpdatedAt:i==null?void 0:i.updatedAt,manual:i==null?void 0:i.manual}),r}setState(s,i){pt(this,He,za).call(this,{type:"setState",state:s,setStateOptions:i})}cancel(s){var r,o;const i=(r=E(this,le))==null?void 0:r.promise;return(o=E(this,le))==null||o.cancel(s),i?i.then(ge).catch(ge):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return E(this,al)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(s=>Fe(s.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Of||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(s=>Tn(s.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(s=>s.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(s=0){return this.state.data===void 0?!0:s==="static"?!1:this.state.isInvalidated?!0:!W0(this.state.dataUpdatedAt,s)}onFocus(){var i;const s=this.observers.find(r=>r.shouldFetchOnWindowFocus());s==null||s.refetch({cancelRefetch:!1}),(i=E(this,le))==null||i.continue()}onOnline(){var i;const s=this.observers.find(r=>r.shouldFetchOnReconnect());s==null||s.refetch({cancelRefetch:!1}),(i=E(this,le))==null||i.continue()}addObserver(s){this.observers.includes(s)||(this.observers.push(s),this.clearGcTimeout(),E(this,ke).notify({type:"observerAdded",query:this,observer:s}))}removeObserver(s){this.observers.includes(s)&&(this.observers=this.observers.filter(i=>i!==s),this.observers.length||(E(this,le)&&(E(this,ll)||pt(this,He,sg).call(this)?E(this,le).cancel({revert:!0}):E(this,le).cancelRetry()),this.scheduleGc()),E(this,ke).notify({type:"observerRemoved",query:this,observer:s}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pt(this,He,za).call(this,{type:"invalidate"})}async fetch(s,i){var p,y,b,v,S,j,R,M,C,U,P,K;if(this.state.fetchStatus!=="idle"&&((p=E(this,le))==null?void 0:p.status())!=="rejected"){if(this.state.data!==void 0&&(i!=null&&i.cancelRefetch))this.cancel({silent:!0});else if(E(this,le))return E(this,le).continueRetry(),E(this,le).promise}if(s&&this.setOptions(s),!this.options.queryFn){const L=this.observers.find(X=>X.options.queryFn);L&&this.setOptions(L.options)}const r=new AbortController,o=L=>{Object.defineProperty(L,"signal",{enumerable:!0,get:()=>(et(this,ll,!0),r.signal)})},f=()=>{const L=eg(this.options,i),$=(()=>{const Z={client:E(this,nl),queryKey:this.queryKey,meta:this.meta};return o(Z),Z})();return et(this,ll,!1),this.options.persister?this.options.persister(L,$,this):L($)},g=(()=>{const L={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:E(this,nl),state:this.state,fetchFn:f};return o(L),L})();(y=this.options.behavior)==null||y.onFetch(g,this),et(this,os,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((b=g.fetchOptions)==null?void 0:b.meta))&&pt(this,He,za).call(this,{type:"fetch",meta:(v=g.fetchOptions)==null?void 0:v.meta}),et(this,le,ng({initialPromise:i==null?void 0:i.initialPromise,fn:g.fetchFn,onCancel:L=>{L instanceof hf&&L.revert&&this.setState({...E(this,os),fetchStatus:"idle"}),r.abort()},onFail:(L,X)=>{pt(this,He,za).call(this,{type:"failed",failureCount:L,error:X})},onPause:()=>{pt(this,He,za).call(this,{type:"pause"})},onContinue:()=>{pt(this,He,za).call(this,{type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay,networkMode:g.options.networkMode,canRun:()=>!0}));try{const L=await E(this,le).start();if(L===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(L),(j=(S=E(this,ke).config).onSuccess)==null||j.call(S,L,this),(M=(R=E(this,ke).config).onSettled)==null||M.call(R,L,this.state.error,this),L}catch(L){if(L instanceof hf){if(L.silent)return E(this,le).promise;if(L.revert){if(this.state.data===void 0)throw L;return this.state.data}}throw pt(this,He,za).call(this,{type:"error",error:L}),(U=(C=E(this,ke).config).onError)==null||U.call(C,L,this),(K=(P=E(this,ke).config).onSettled)==null||K.call(P,this.state.data,L,this),L}finally{this.scheduleGc()}}},al=new WeakMap,os=new WeakMap,ke=new WeakMap,nl=new WeakMap,le=new WeakMap,wi=new WeakMap,ll=new WeakMap,He=new WeakSet,sg=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},za=function(s){const i=r=>{switch(s.type){case"failed":return{...r,fetchFailureCount:s.failureCount,fetchFailureReason:s.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...ig(r.data,this.options),fetchMeta:s.meta??null};case"success":const o={...r,...l0(s.data,s.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!s.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return et(this,os,s.manual?o:void 0),o;case"error":const f=s.error;return{...r,error:f,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:f,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...s.state}}};this.state=i(this.state),ee.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),E(this,ke).notify({query:this,type:"updated",action:s})})},K0);function ig(n,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ag(s.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function l0(n,s){return{data:n,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function s0(n){const s=typeof n.initialData=="function"?n.initialData():n.initialData,i=s!==void 0,r=i?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:i?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var Ne,Tt,Ui,ye,sl,fs,Da,pn,Li,ds,hs,il,ul,xn,ms,Ot,Ei,mf,yf,gf,vf,pf,xf,bf,ug,Z0,Gx=(Z0=class extends Ss{constructor(s,i){super();rt(this,Ot);rt(this,Ne);rt(this,Tt);rt(this,Ui);rt(this,ye);rt(this,sl);rt(this,fs);rt(this,Da);rt(this,pn);rt(this,Li);rt(this,ds);rt(this,hs);rt(this,il);rt(this,ul);rt(this,xn);rt(this,ms,new Set);this.options=i,et(this,Ne,s),et(this,pn,null),et(this,Da,df()),this.bindMethods(),this.setOptions(i)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(E(this,Tt).addObserver(this),i0(E(this,Tt),this.options)?pt(this,Ot,Ei).call(this):this.updateResult(),pt(this,Ot,vf).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Sf(E(this,Tt),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Sf(E(this,Tt),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pt(this,Ot,pf).call(this),pt(this,Ot,xf).call(this),E(this,Tt).removeObserver(this)}setOptions(s){const i=this.options,r=E(this,Tt);if(this.options=E(this,Ne).defaultQueryOptions(s),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Fe(this.options.enabled,E(this,Tt))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pt(this,Ot,bf).call(this),E(this,Tt).setOptions(this.options),i._defaulted&&!gr(this.options,i)&&E(this,Ne).getQueryCache().notify({type:"observerOptionsUpdated",query:E(this,Tt),observer:this});const o=this.hasListeners();o&&u0(E(this,Tt),r,this.options,i)&&pt(this,Ot,Ei).call(this),this.updateResult(),o&&(E(this,Tt)!==r||Fe(this.options.enabled,E(this,Tt))!==Fe(i.enabled,E(this,Tt))||Tn(this.options.staleTime,E(this,Tt))!==Tn(i.staleTime,E(this,Tt)))&&pt(this,Ot,mf).call(this);const f=pt(this,Ot,yf).call(this);o&&(E(this,Tt)!==r||Fe(this.options.enabled,E(this,Tt))!==Fe(i.enabled,E(this,Tt))||f!==E(this,xn))&&pt(this,Ot,gf).call(this,f)}getOptimisticResult(s){const i=E(this,Ne).getQueryCache().build(E(this,Ne),s),r=this.createResult(i,s);return Xx(this,r)&&(et(this,ye,r),et(this,fs,this.options),et(this,sl,E(this,Tt).state)),r}getCurrentResult(){return E(this,ye)}trackResult(s,i){return new Proxy(s,{get:(r,o)=>(this.trackProp(o),i==null||i(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&E(this,Da).status==="pending"&&E(this,Da).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,o))})}trackProp(s){E(this,ms).add(s)}getCurrentQuery(){return E(this,Tt)}refetch({...s}={}){return this.fetch({...s})}fetchOptimistic(s){const i=E(this,Ne).defaultQueryOptions(s),r=E(this,Ne).getQueryCache().build(E(this,Ne),i);return r.fetch().then(()=>this.createResult(r,i))}fetch(s){return pt(this,Ot,Ei).call(this,{...s,cancelRefetch:s.cancelRefetch??!0}).then(()=>(this.updateResult(),E(this,ye)))}createResult(s,i){var k;const r=E(this,Tt),o=this.options,f=E(this,ye),h=E(this,sl),g=E(this,fs),y=s!==r?s.state:E(this,Ui),{state:b}=s;let v={...b},S=!1,j;if(i._optimisticResults){const G=this.hasListeners(),F=!G&&i0(s,i),st=G&&u0(s,r,i,o);(F||st)&&(v={...v,...ig(b.data,s.options)}),i._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:R,errorUpdatedAt:M,status:C}=v;j=v.data;let U=!1;if(i.placeholderData!==void 0&&j===void 0&&C==="pending"){let G;f!=null&&f.isPlaceholderData&&i.placeholderData===(g==null?void 0:g.placeholderData)?(G=f.data,U=!0):G=typeof i.placeholderData=="function"?i.placeholderData((k=E(this,hs))==null?void 0:k.state.data,E(this,hs)):i.placeholderData,G!==void 0&&(C="success",j=ff(f==null?void 0:f.data,G,i),S=!0)}if(i.select&&j!==void 0&&!U)if(f&&j===(h==null?void 0:h.data)&&i.select===E(this,Li))j=E(this,ds);else try{et(this,Li,i.select),j=i.select(j),j=ff(f==null?void 0:f.data,j,i),et(this,ds,j),et(this,pn,null)}catch(G){et(this,pn,G)}E(this,pn)&&(R=E(this,pn),j=E(this,ds),M=Date.now(),C="error");const P=v.fetchStatus==="fetching",K=C==="pending",L=C==="error",X=K&&P,$=j!==void 0,J={status:C,fetchStatus:v.fetchStatus,isPending:K,isSuccess:C==="success",isError:L,isInitialLoading:X,isLoading:X,data:j,dataUpdatedAt:v.dataUpdatedAt,error:R,errorUpdatedAt:M,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:s.isFetched(),isFetchedAfterMount:v.dataUpdateCount>y.dataUpdateCount||v.errorUpdateCount>y.errorUpdateCount,isFetching:P,isRefetching:P&&!K,isLoadingError:L&&!$,isPaused:v.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:L&&$,isStale:Df(s,i),refetch:this.refetch,promise:E(this,Da),isEnabled:Fe(i.enabled,s)!==!1};if(this.options.experimental_prefetchInRender){const G=J.data!==void 0,F=J.status==="error"&&!G,st=nt=>{F?nt.reject(J.error):G&&nt.resolve(J.data)},it=()=>{const nt=et(this,Da,J.promise=df());st(nt)},ot=E(this,Da);switch(ot.status){case"pending":s.queryHash===r.queryHash&&st(ot);break;case"fulfilled":(F||J.data!==ot.value)&&it();break;case"rejected":(!F||J.error!==ot.reason)&&it();break}}return J}updateResult(){const s=E(this,ye),i=this.createResult(E(this,Tt),this.options);if(et(this,sl,E(this,Tt).state),et(this,fs,this.options),E(this,sl).data!==void 0&&et(this,hs,E(this,Tt)),gr(i,s))return;et(this,ye,i);const r=()=>{if(!s)return!0;const{notifyOnChangeProps:o}=this.options,f=typeof o=="function"?o():o;if(f==="all"||!f&&!E(this,ms).size)return!0;const h=new Set(f??E(this,ms));return this.options.throwOnError&&h.add("error"),Object.keys(E(this,ye)).some(g=>{const p=g;return E(this,ye)[p]!==s[p]&&h.has(p)})};pt(this,Ot,ug).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pt(this,Ot,vf).call(this)}},Ne=new WeakMap,Tt=new WeakMap,Ui=new WeakMap,ye=new WeakMap,sl=new WeakMap,fs=new WeakMap,Da=new WeakMap,pn=new WeakMap,Li=new WeakMap,ds=new WeakMap,hs=new WeakMap,il=new WeakMap,ul=new WeakMap,xn=new WeakMap,ms=new WeakMap,Ot=new WeakSet,Ei=function(s){pt(this,Ot,bf).call(this);let i=E(this,Tt).fetch(this.options,s);return s!=null&&s.throwOnError||(i=i.catch(ge)),i},mf=function(){pt(this,Ot,pf).call(this);const s=Tn(this.options.staleTime,E(this,Tt));if(Ci.isServer()||E(this,ye).isStale||!cf(s))return;const r=W0(E(this,ye).dataUpdatedAt,s)+1;et(this,il,$n.setTimeout(()=>{E(this,ye).isStale||this.updateResult()},r))},yf=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(E(this,Tt)):this.options.refetchInterval)??!1},gf=function(s){pt(this,Ot,xf).call(this),et(this,xn,s),!(Ci.isServer()||Fe(this.options.enabled,E(this,Tt))===!1||!cf(E(this,xn))||E(this,xn)===0)&&et(this,ul,$n.setInterval(()=>{(this.options.refetchIntervalInBackground||Cf.isFocused())&&pt(this,Ot,Ei).call(this)},E(this,xn)))},vf=function(){pt(this,Ot,mf).call(this),pt(this,Ot,gf).call(this,pt(this,Ot,yf).call(this))},pf=function(){E(this,il)&&($n.clearTimeout(E(this,il)),et(this,il,void 0))},xf=function(){E(this,ul)&&($n.clearInterval(E(this,ul)),et(this,ul,void 0))},bf=function(){const s=E(this,Ne).getQueryCache().build(E(this,Ne),this.options);if(s===E(this,Tt))return;const i=E(this,Tt);et(this,Tt,s),et(this,Ui,s.state),this.hasListeners()&&(i==null||i.removeObserver(this),s.addObserver(this))},ug=function(s){ee.batch(()=>{s.listeners&&this.listeners.forEach(i=>{i(E(this,ye))}),E(this,Ne).getQueryCache().notify({query:E(this,Tt),type:"observerResultsUpdated"})})},Z0);function Vx(n,s){return Fe(s.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&s.retryOnMount===!1)}function i0(n,s){return Vx(n,s)||n.state.data!==void 0&&Sf(n,s,s.refetchOnMount)}function Sf(n,s,i){if(Fe(s.enabled,n)!==!1&&Tn(s.staleTime,n)!=="static"){const r=typeof i=="function"?i(n):i;return r==="always"||r!==!1&&Df(n,s)}return!1}function u0(n,s,i,r){return(n!==s||Fe(r.enabled,n)===!1)&&(!i.suspense||n.state.status!=="error")&&Df(n,i)}function Df(n,s){return Fe(s.enabled,n)!==!1&&n.isStaleByTime(Tn(s.staleTime,n))}function Xx(n,s){return!gr(n.getCurrentResult(),s)}function r0(n){return{onFetch:(s,i)=>{var b,v,S,j,R;const r=s.options,o=(S=(v=(b=s.fetchOptions)==null?void 0:b.meta)==null?void 0:v.fetchMore)==null?void 0:S.direction,f=((j=s.state.data)==null?void 0:j.pages)||[],h=((R=s.state.data)==null?void 0:R.pageParams)||[];let g={pages:[],pageParams:[]},p=0;const y=async()=>{let M=!1;const C=K=>{Lx(K,()=>s.signal,()=>M=!0)},U=eg(s.options,s.fetchOptions),P=async(K,L,X)=>{if(M)return Promise.reject();if(L==null&&K.pages.length)return Promise.resolve(K);const Z=(()=>{const F={client:s.client,queryKey:s.queryKey,pageParam:L,direction:X?"backward":"forward",meta:s.options.meta};return C(F),F})(),J=await U(Z),{maxPages:k}=s.options,G=X?Ux:wx;return{pages:G(K.pages,J,k),pageParams:G(K.pageParams,L,k)}};if(o&&f.length){const K=o==="backward",L=K?Kx:c0,X={pages:f,pageParams:h},$=L(r,X);g=await P(X,$,K)}else{const K=n??f.length;do{const L=p===0?h[0]??r.initialPageParam:c0(r,g);if(p>0&&L==null)break;g=await P(g,L),p++}while(p<K)}return g};s.options.persister?s.fetchFn=()=>{var M,C;return(C=(M=s.options).persister)==null?void 0:C.call(M,y,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},i)}:s.fetchFn=y}}}function c0(n,{pages:s,pageParams:i}){const r=s.length-1;return s.length>0?n.getNextPageParam(s[r],s,i[r],i):void 0}function Kx(n,{pages:s,pageParams:i}){var r;return s.length>0?(r=n.getPreviousPageParam)==null?void 0:r.call(n,s[0],s,i[0],i):void 0}var Bi,ca,de,rl,oa,hn,J0,Zx=(J0=class extends lg{constructor(s){super();rt(this,oa);rt(this,Bi);rt(this,ca);rt(this,de);rt(this,rl);et(this,Bi,s.client),this.mutationId=s.mutationId,et(this,de,s.mutationCache),et(this,ca,[]),this.state=s.state||rg(),this.setOptions(s.options),this.scheduleGc()}setOptions(s){this.options=s,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(s){E(this,ca).includes(s)||(E(this,ca).push(s),this.clearGcTimeout(),E(this,de).notify({type:"observerAdded",mutation:this,observer:s}))}removeObserver(s){et(this,ca,E(this,ca).filter(i=>i!==s)),this.scheduleGc(),E(this,de).notify({type:"observerRemoved",mutation:this,observer:s})}optionalRemove(){E(this,ca).length||(this.state.status==="pending"?this.scheduleGc():E(this,de).remove(this))}continue(){var s;return((s=E(this,rl))==null?void 0:s.continue())??this.execute(this.state.variables)}async execute(s){var h,g,p,y,b,v,S,j,R,M,C,U,P,K,L,X,$,Z;const i=()=>{pt(this,oa,hn).call(this,{type:"continue"})},r={client:E(this,Bi),meta:this.options.meta,mutationKey:this.options.mutationKey};et(this,rl,ng({fn:()=>this.options.mutationFn?this.options.mutationFn(s,r):Promise.reject(new Error("No mutationFn found")),onFail:(J,k)=>{pt(this,oa,hn).call(this,{type:"failed",failureCount:J,error:k})},onPause:()=>{pt(this,oa,hn).call(this,{type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>E(this,de).canRun(this)}));const o=this.state.status==="pending",f=!E(this,rl).canStart();try{if(o)i();else{pt(this,oa,hn).call(this,{type:"pending",variables:s,isPaused:f}),E(this,de).config.onMutate&&await E(this,de).config.onMutate(s,this,r);const k=await((g=(h=this.options).onMutate)==null?void 0:g.call(h,s,r));k!==this.state.context&&pt(this,oa,hn).call(this,{type:"pending",context:k,variables:s,isPaused:f})}const J=await E(this,rl).start();return await((y=(p=E(this,de).config).onSuccess)==null?void 0:y.call(p,J,s,this.state.context,this,r)),await((v=(b=this.options).onSuccess)==null?void 0:v.call(b,J,s,this.state.context,r)),await((j=(S=E(this,de).config).onSettled)==null?void 0:j.call(S,J,null,this.state.variables,this.state.context,this,r)),await((M=(R=this.options).onSettled)==null?void 0:M.call(R,J,null,s,this.state.context,r)),pt(this,oa,hn).call(this,{type:"success",data:J}),J}catch(J){try{await((U=(C=E(this,de).config).onError)==null?void 0:U.call(C,J,s,this.state.context,this,r))}catch(k){Promise.reject(k)}try{await((K=(P=this.options).onError)==null?void 0:K.call(P,J,s,this.state.context,r))}catch(k){Promise.reject(k)}try{await((X=(L=E(this,de).config).onSettled)==null?void 0:X.call(L,void 0,J,this.state.variables,this.state.context,this,r))}catch(k){Promise.reject(k)}try{await((Z=($=this.options).onSettled)==null?void 0:Z.call($,void 0,J,s,this.state.context,r))}catch(k){Promise.reject(k)}throw pt(this,oa,hn).call(this,{type:"error",error:J}),J}finally{E(this,de).runNext(this)}}},Bi=new WeakMap,ca=new WeakMap,de=new WeakMap,rl=new WeakMap,oa=new WeakSet,hn=function(s){const i=r=>{switch(s.type){case"failed":return{...r,failureCount:s.failureCount,failureReason:s.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:s.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:s.isPaused,status:"pending",variables:s.variables,submittedAt:Date.now()};case"success":return{...r,data:s.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:s.error,failureCount:r.failureCount+1,failureReason:s.error,isPaused:!1,status:"error"}}};this.state=i(this.state),ee.batch(()=>{E(this,ca).forEach(r=>{r.onMutationUpdate(s)}),E(this,de).notify({mutation:this,type:"updated",action:s})})},J0);function rg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var wa,ea,Hi,P0,Jx=(P0=class extends Ss{constructor(s={}){super();rt(this,wa);rt(this,ea);rt(this,Hi);this.config=s,et(this,wa,new Set),et(this,ea,new Map),et(this,Hi,0)}build(s,i,r){const o=new Zx({client:s,mutationCache:this,mutationId:++ir(this,Hi)._,options:s.defaultMutationOptions(i),state:r});return this.add(o),o}add(s){E(this,wa).add(s);const i=ur(s);if(typeof i=="string"){const r=E(this,ea).get(i);r?r.push(s):E(this,ea).set(i,[s])}this.notify({type:"added",mutation:s})}remove(s){if(E(this,wa).delete(s)){const i=ur(s);if(typeof i=="string"){const r=E(this,ea).get(i);if(r)if(r.length>1){const o=r.indexOf(s);o!==-1&&r.splice(o,1)}else r[0]===s&&E(this,ea).delete(i)}}this.notify({type:"removed",mutation:s})}canRun(s){const i=ur(s);if(typeof i=="string"){const r=E(this,ea).get(i),o=r==null?void 0:r.find(f=>f.state.status==="pending");return!o||o===s}else return!0}runNext(s){var r;const i=ur(s);if(typeof i=="string"){const o=(r=E(this,ea).get(i))==null?void 0:r.find(f=>f!==s&&f.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){ee.batch(()=>{E(this,wa).forEach(s=>{this.notify({type:"removed",mutation:s})}),E(this,wa).clear(),E(this,ea).clear()})}getAll(){return Array.from(E(this,wa))}find(s){const i={exact:!0,...s};return this.getAll().find(r=>e0(i,r))}findAll(s={}){return this.getAll().filter(i=>e0(s,i))}notify(s){ee.batch(()=>{this.listeners.forEach(i=>{i(s)})})}resumePausedMutations(){const s=this.getAll().filter(i=>i.state.isPaused);return ee.batch(()=>Promise.all(s.map(i=>i.continue().catch(ge))))}},wa=new WeakMap,ea=new WeakMap,Hi=new WeakMap,P0);function ur(n){var s;return(s=n.options.scope)==null?void 0:s.id}var Ua,bn,Te,La,Ha,fr,Rf,k0,Px=(k0=class extends Ss{constructor(i,r){super();rt(this,Ha);rt(this,Ua);rt(this,bn);rt(this,Te);rt(this,La);et(this,Ua,i),this.setOptions(r),this.bindMethods(),pt(this,Ha,fr).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){var o;const r=this.options;this.options=E(this,Ua).defaultMutationOptions(i),gr(this.options,r)||E(this,Ua).getMutationCache().notify({type:"observerOptionsUpdated",mutation:E(this,Te),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&dl(r.mutationKey)!==dl(this.options.mutationKey)?this.reset():((o=E(this,Te))==null?void 0:o.state.status)==="pending"&&E(this,Te).setOptions(this.options)}onUnsubscribe(){var i;this.hasListeners()||(i=E(this,Te))==null||i.removeObserver(this)}onMutationUpdate(i){pt(this,Ha,fr).call(this),pt(this,Ha,Rf).call(this,i)}getCurrentResult(){return E(this,bn)}reset(){var i;(i=E(this,Te))==null||i.removeObserver(this),et(this,Te,void 0),pt(this,Ha,fr).call(this),pt(this,Ha,Rf).call(this)}mutate(i,r){var o;return et(this,La,r),(o=E(this,Te))==null||o.removeObserver(this),et(this,Te,E(this,Ua).getMutationCache().build(E(this,Ua),this.options)),E(this,Te).addObserver(this),E(this,Te).execute(i)}},Ua=new WeakMap,bn=new WeakMap,Te=new WeakMap,La=new WeakMap,Ha=new WeakSet,fr=function(){var r;const i=((r=E(this,Te))==null?void 0:r.state)??rg();et(this,bn,{...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset})},Rf=function(i){ee.batch(()=>{var r,o,f,h,g,p,y,b;if(E(this,La)&&this.hasListeners()){const v=E(this,bn).variables,S=E(this,bn).context,j={client:E(this,Ua),meta:this.options.meta,mutationKey:this.options.mutationKey};if((i==null?void 0:i.type)==="success"){try{(o=(r=E(this,La)).onSuccess)==null||o.call(r,i.data,v,S,j)}catch(R){Promise.reject(R)}try{(h=(f=E(this,La)).onSettled)==null||h.call(f,i.data,null,v,S,j)}catch(R){Promise.reject(R)}}else if((i==null?void 0:i.type)==="error"){try{(p=(g=E(this,La)).onError)==null||p.call(g,i.error,v,S,j)}catch(R){Promise.reject(R)}try{(b=(y=E(this,La)).onSettled)==null||b.call(y,void 0,i.error,v,S,j)}catch(R){Promise.reject(R)}}}this.listeners.forEach(v=>{v(E(this,bn))})})},k0),fa,F0,kx=(F0=class extends Ss{constructor(s={}){super();rt(this,fa);this.config=s,et(this,fa,new Map)}build(s,i,r){const o=i.queryKey,f=i.queryHash??Af(o,i);let h=this.get(f);return h||(h=new Yx({client:s,queryKey:o,queryHash:f,options:s.defaultQueryOptions(i),state:r,defaultOptions:s.getQueryDefaults(o)}),this.add(h)),h}add(s){E(this,fa).has(s.queryHash)||(E(this,fa).set(s.queryHash,s),this.notify({type:"added",query:s}))}remove(s){const i=E(this,fa).get(s.queryHash);i&&(s.destroy(),i===s&&E(this,fa).delete(s.queryHash),this.notify({type:"removed",query:s}))}clear(){ee.batch(()=>{this.getAll().forEach(s=>{this.remove(s)})})}get(s){return E(this,fa).get(s)}getAll(){return[...E(this,fa).values()]}find(s){const i={exact:!0,...s};return this.getAll().find(r=>t0(i,r))}findAll(s={}){const i=this.getAll();return Object.keys(s).length>0?i.filter(r=>t0(s,r)):i}notify(s){ee.batch(()=>{this.listeners.forEach(i=>{i(s)})})}onFocus(){ee.batch(()=>{this.getAll().forEach(s=>{s.onFocus()})})}onOnline(){ee.batch(()=>{this.getAll().forEach(s=>{s.onOnline()})})}},fa=new WeakMap,F0),Zt,Sn,Rn,ys,gs,jn,vs,ps,$0,Fx=($0=class{constructor(n={}){rt(this,Zt);rt(this,Sn);rt(this,Rn);rt(this,ys);rt(this,gs);rt(this,jn);rt(this,vs);rt(this,ps);et(this,Zt,n.queryCache||new kx),et(this,Sn,n.mutationCache||new Jx),et(this,Rn,n.defaultOptions||{}),et(this,ys,new Map),et(this,gs,new Map),et(this,jn,0)}mount(){ir(this,jn)._++,E(this,jn)===1&&(et(this,vs,Cf.subscribe(async n=>{n&&(await this.resumePausedMutations(),E(this,Zt).onFocus())})),et(this,ps,vr.subscribe(async n=>{n&&(await this.resumePausedMutations(),E(this,Zt).onOnline())})))}unmount(){var n,s;ir(this,jn)._--,E(this,jn)===0&&((n=E(this,vs))==null||n.call(this),et(this,vs,void 0),(s=E(this,ps))==null||s.call(this),et(this,ps,void 0))}isFetching(n){return E(this,Zt).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return E(this,Sn).findAll({...n,status:"pending"}).length}getQueryData(n){var i;const s=this.defaultQueryOptions({queryKey:n});return(i=E(this,Zt).get(s.queryHash))==null?void 0:i.state.data}ensureQueryData(n){const s=this.defaultQueryOptions(n),i=E(this,Zt).build(this,s),r=i.state.data;return r===void 0?this.fetchQuery(n):(n.revalidateIfStale&&i.isStaleByTime(Tn(s.staleTime,i))&&this.prefetchQuery(s),Promise.resolve(r))}getQueriesData(n){return E(this,Zt).findAll(n).map(({queryKey:s,state:i})=>{const r=i.data;return[s,r]})}setQueryData(n,s,i){const r=this.defaultQueryOptions({queryKey:n}),o=E(this,Zt).get(r.queryHash),f=o==null?void 0:o.state.data,h=Ox(s,f);if(h!==void 0)return E(this,Zt).build(this,r).setData(h,{...i,manual:!0})}setQueriesData(n,s,i){return ee.batch(()=>E(this,Zt).findAll(n).map(({queryKey:r})=>[r,this.setQueryData(r,s,i)]))}getQueryState(n){var i;const s=this.defaultQueryOptions({queryKey:n});return(i=E(this,Zt).get(s.queryHash))==null?void 0:i.state}removeQueries(n){const s=E(this,Zt);ee.batch(()=>{s.findAll(n).forEach(i=>{s.remove(i)})})}resetQueries(n,s){const i=E(this,Zt);return ee.batch(()=>(i.findAll(n).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...n},s)))}cancelQueries(n,s={}){const i={revert:!0,...s},r=ee.batch(()=>E(this,Zt).findAll(n).map(o=>o.cancel(i)));return Promise.all(r).then(ge).catch(ge)}invalidateQueries(n,s={}){return ee.batch(()=>(E(this,Zt).findAll(n).forEach(i=>{i.invalidate()}),(n==null?void 0:n.refetchType)==="none"?Promise.resolve():this.refetchQueries({...n,type:(n==null?void 0:n.refetchType)??(n==null?void 0:n.type)??"active"},s)))}refetchQueries(n,s={}){const i={...s,cancelRefetch:s.cancelRefetch??!0},r=ee.batch(()=>E(this,Zt).findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let f=o.fetch(void 0,i);return i.throwOnError||(f=f.catch(ge)),o.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(r).then(ge)}fetchQuery(n){const s=this.defaultQueryOptions(n);s.retry===void 0&&(s.retry=!1);const i=E(this,Zt).build(this,s);return i.isStaleByTime(Tn(s.staleTime,i))?i.fetch(s):Promise.resolve(i.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ge).catch(ge)}fetchInfiniteQuery(n){return n.behavior=r0(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ge).catch(ge)}ensureInfiniteQueryData(n){return n.behavior=r0(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return vr.isOnline()?E(this,Sn).resumePausedMutations():Promise.resolve()}getQueryCache(){return E(this,Zt)}getMutationCache(){return E(this,Sn)}getDefaultOptions(){return E(this,Rn)}setDefaultOptions(n){et(this,Rn,n)}setQueryDefaults(n,s){E(this,ys).set(dl(n),{queryKey:n,defaultOptions:s})}getQueryDefaults(n){const s=[...E(this,ys).values()],i={};return s.forEach(r=>{Mi(n,r.queryKey)&&Object.assign(i,r.defaultOptions)}),i}setMutationDefaults(n,s){E(this,gs).set(dl(n),{mutationKey:n,defaultOptions:s})}getMutationDefaults(n){const s=[...E(this,gs).values()],i={};return s.forEach(r=>{Mi(n,r.mutationKey)&&Object.assign(i,r.defaultOptions)}),i}defaultQueryOptions(n){if(n._defaulted)return n;const s={...E(this,Rn).queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return s.queryHash||(s.queryHash=Af(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===Of&&(s.enabled=!1),s}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...E(this,Rn).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){E(this,Zt).clear(),E(this,Sn).clear()}},Zt=new WeakMap,Sn=new WeakMap,Rn=new WeakMap,ys=new WeakMap,gs=new WeakMap,jn=new WeakMap,vs=new WeakMap,ps=new WeakMap,$0),cg=W.createContext(void 0),wf=n=>{const s=W.useContext(cg);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},$x=({client:n,children:s})=>(W.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),m.jsx(cg.Provider,{value:n,children:s})),og=W.createContext(!1),Ix=()=>W.useContext(og);og.Provider;function Wx(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var tb=W.createContext(Wx()),eb=()=>W.useContext(tb),ab=(n,s,i)=>{const r=i!=null&&i.state.error&&typeof n.throwOnError=="function"?zf(n.throwOnError,[i.state.error,i]):n.throwOnError;(n.suspense||n.experimental_prefetchInRender||r)&&(s.isReset()||(n.retryOnMount=!1))},nb=n=>{W.useEffect(()=>{n.clearReset()},[n])},lb=({result:n,errorResetBoundary:s,throwOnError:i,query:r,suspense:o})=>n.isError&&!s.isReset()&&!n.isFetching&&r&&(o&&n.data===void 0||zf(i,[n.error,r])),sb=n=>{if(n.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),r=n.staleTime;n.staleTime=typeof r=="function"?(...o)=>i(r(...o)):i(r),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},ib=(n,s)=>n.isLoading&&n.isFetching&&!s,ub=(n,s)=>(n==null?void 0:n.suspense)&&s.isPending,o0=(n,s,i)=>s.fetchOptimistic(n).catch(()=>{i.clearReset()});function rb(n,s,i){var S,j,R,M;const r=Ix(),o=eb(),f=wf(),h=f.defaultQueryOptions(n);(j=(S=f.getDefaultOptions().queries)==null?void 0:S._experimental_beforeQuery)==null||j.call(S,h);const g=f.getQueryCache().get(h.queryHash);h._optimisticResults=r?"isRestoring":"optimistic",sb(h),ab(h,o,g),nb(o);const p=!f.getQueryCache().get(h.queryHash),[y]=W.useState(()=>new s(f,h)),b=y.getOptimisticResult(h),v=!r&&n.subscribed!==!1;if(W.useSyncExternalStore(W.useCallback(C=>{const U=v?y.subscribe(ee.batchCalls(C)):ge;return y.updateResult(),U},[y,v]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),W.useEffect(()=>{y.setOptions(h)},[h,y]),ub(h,b))throw o0(h,y,o);if(lb({result:b,errorResetBoundary:o,throwOnError:h.throwOnError,query:g,suspense:h.suspense}))throw b.error;if((M=(R=f.getDefaultOptions().queries)==null?void 0:R._experimental_afterQuery)==null||M.call(R,h,b),h.experimental_prefetchInRender&&!Ci.isServer()&&ib(b,r)){const C=p?o0(h,y,o):g==null?void 0:g.promise;C==null||C.catch(ge).finally(()=>{y.updateResult()})}return h.notifyOnChangeProps?b:y.trackResult(b)}function An(n,s){return rb(n,Gx)}function cb(n,s){const i=wf(),[r]=W.useState(()=>new Px(i,n));W.useEffect(()=>{r.setOptions(n)},[r,n]);const o=W.useSyncExternalStore(W.useCallback(h=>r.subscribe(ee.batchCalls(h)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),f=W.useCallback((h,g)=>{r.mutate(h,g).catch(ge)},[r]);if(o.error&&zf(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:f,mutateAsync:o.mutate}}var Ni=typeof window<"u"?W.useLayoutEffect:W.useEffect;function ko(n){const s=W.useRef({value:n,prev:null}),i=s.current.value;return n!==i&&(s.current={value:n,prev:i}),s.current.prev}function ob(n,s,i={},r={}){W.useEffect(()=>{if(!n.current||r.disabled||typeof IntersectionObserver!="function")return;const o=new IntersectionObserver(([f])=>{s(f)},i);return o.observe(n.current),()=>{o.disconnect()}},[s,i,r.disabled,n])}function fb(n){const s=W.useRef(null);return W.useImperativeHandle(n,()=>s.current,[]),s}var fg=!1;function Ai(n){return n[n.length-1]}function db(n){return typeof n=="function"}function _n(n,s){return db(n)?n(s):n}var hb=Object.prototype.hasOwnProperty,f0=Object.prototype.propertyIsEnumerable,mb=()=>Object.create(null),Fn=(n,s)=>En(n,s,mb);function En(n,s,i=()=>({}),r=0){if(n===s)return n;if(r>500)return s;const o=s,f=m0(n)&&m0(o);if(!f&&!(xs(n)&&xs(o)))return o;const h=f?n:d0(n);if(!h)return o;const g=f?o:d0(o);if(!g)return o;const p=h.length,y=g.length,b=f?new Array(y):i();let v=0;for(let S=0;S<y;S++){const j=f?S:g[S],R=n[j],M=o[j];if(R===M){b[j]=R,(f?S<p:hb.call(n,j))&&v++;continue}if(R===null||M===null||typeof R!="object"||typeof M!="object"){b[j]=M;continue}const C=En(R,M,i,r+1);b[j]=C,C===R&&v++}return p===y&&v===p?n:b}function d0(n){const s=Object.getOwnPropertyNames(n);for(const o of s)if(!f0.call(n,o))return!1;const i=Object.getOwnPropertySymbols(n);if(i.length===0)return s;const r=s;for(const o of i){if(!f0.call(n,o))return!1;r.push(o)}return r}function xs(n){if(!h0(n))return!1;const s=n.constructor;if(typeof s>"u")return!0;const i=s.prototype;return!(!h0(i)||!i.hasOwnProperty("isPrototypeOf"))}function h0(n){return Object.prototype.toString.call(n)==="[object Object]"}function m0(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function cl(n,s,i){if(n===s)return!0;if(typeof n!=typeof s)return!1;if(Array.isArray(n)&&Array.isArray(s)){if(n.length!==s.length)return!1;for(let r=0,o=n.length;r<o;r++)if(!cl(n[r],s[r],i))return!1;return!0}if(xs(n)&&xs(s)){const r=(i==null?void 0:i.ignoreUndefined)??!0;if(i!=null&&i.partial){for(const h in s)if((!r||s[h]!==void 0)&&!cl(n[h],s[h],i))return!1;return!0}let o=0;if(!r)o=Object.keys(n).length;else for(const h in n)n[h]!==void 0&&o++;let f=0;for(const h in s)if((!r||s[h]!==void 0)&&(f++,f>o||!cl(n[h],s[h],i)))return!1;return o===f}return!1}function bs(n){let s,i;const r=new Promise((o,f)=>{s=o,i=f});return r.status="pending",r.resolve=o=>{r.status="resolved",r.value=o,s(o),n==null||n(o)},r.reject=o=>{r.status="rejected",i(o)},r}function Oi(n){return!!(n&&typeof n=="object"&&typeof n.then=="function")}function yb(n){return n.replace(/[\x00-\x1f\x7f]/g,"")}function y0(n){let s;try{s=decodeURI(n)}catch{s=n.replaceAll(/%[0-9A-F]{2}/gi,i=>{try{return decodeURI(i)}catch{return i}})}return yb(s)}var gb=["http:","https:","mailto:","tel:"];function pr(n,s){if(!n)return!1;try{const i=new URL(n);return!s.has(i.protocol)}catch{return!1}}function xi(n){if(!n)return{path:n,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(n)&&!n.startsWith("//"))return{path:n,handledProtocolRelativeURL:!1};const s=/%25|%5C/gi;let i=0,r="",o;for(;(o=s.exec(n))!==null;)r+=y0(n.slice(i,o.index))+o[0],i=s.lastIndex;r=r+y0(i?n.slice(i):n);let f=!1;return r.startsWith("//")&&(f=!0,r="/"+r.replace(/^\/+/,"")),{path:r,handledProtocolRelativeURL:f}}function vb(n){return/\s|[^\u0000-\u007F]/.test(n)?n.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):n}function pb(n,s){if(n===s)return!0;if(n.length!==s.length)return!1;for(let i=0;i<n.length;i++)if(n[i]!==s[i])return!1;return!0}function Ba(){throw new Error("Invariant failed")}function zi(n){const s=new Map;let i,r;const o=f=>{f.next&&(f.prev?(f.prev.next=f.next,f.next.prev=f.prev,f.next=void 0,r&&(r.next=f,f.prev=r)):(f.next.prev=void 0,i=f.next,f.next=void 0,r&&(f.prev=r,r.next=f)),r=f)};return{get(f){const h=s.get(f);if(h)return o(h),h.value},set(f,h){if(s.size>=n&&i){const p=i;s.delete(p.key),p.next&&(i=p.next,p.next.prev=void 0),p===r&&(r=void 0)}const g=s.get(f);if(g)g.value=h,o(g);else{const p={key:f,value:h,prev:r};r&&(r.next=p),r=p,i||(i=p),s.set(f,p)}},clear(){s.clear(),i=void 0,r=void 0}}}var In=4,dg=5;function xb(n){const s=n.indexOf("{");if(s===-1)return null;const i=n.indexOf("}",s);return i===-1||s+1>=n.length?null:[s,i]}function Uf(n,s,i=new Uint16Array(6)){const r=n.indexOf("/",s),o=r===-1?n.length:r,f=n.substring(s,o);if(!f||!f.includes("$"))return i[0]=0,i[1]=s,i[2]=s,i[3]=o,i[4]=o,i[5]=o,i;if(f==="$"){const g=n.length;return i[0]=2,i[1]=s,i[2]=s,i[3]=g,i[4]=g,i[5]=g,i}if(f.charCodeAt(0)===36)return i[0]=1,i[1]=s,i[2]=s+1,i[3]=o,i[4]=o,i[5]=o,i;const h=xb(f);if(h){const[g,p]=h,y=f.charCodeAt(g+1);if(y===45){if(g+2<f.length&&f.charCodeAt(g+2)===36){const b=g+3,v=p;if(b<v)return i[0]=3,i[1]=s+g,i[2]=s+b,i[3]=s+v,i[4]=s+p+1,i[5]=o,i}}else if(y===36){const b=g+1,v=g+2;return v===p?(i[0]=2,i[1]=s+g,i[2]=s+b,i[3]=s+v,i[4]=s+p+1,i[5]=n.length,i):(i[0]=1,i[1]=s+g,i[2]=s+v,i[3]=s+p,i[4]=s+p+1,i[5]=o,i)}}return i[0]=0,i[1]=s,i[2]=s,i[3]=o,i[4]=o,i[5]=o,i}function Er(n,s,i,r,o,f,h){var p,y,b,v,S,j,R,M,C,U,P,K,L;h==null||h(i);let g=r;{const X=i.fullPath??i.from,$=X.length,Z=((p=i.options)==null?void 0:p.caseSensitive)??n,J=!!((b=(y=i.options)==null?void 0:y.params)!=null&&b.parse&&((S=(v=i.options)==null?void 0:v.skipRouteOnParseError)!=null&&S.params));for(;g<$;){const G=Uf(X,g,s);let F;const st=g,it=G[5];switch(g=it+1,f++,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)F=nt;else{o.static??(o.static=new Map);const D=Wn(i.fullPath??i.from);D.parent=o,D.depth=f,F=D,o.static.set(ot,D)}}else{const nt=ot.toLowerCase(),D=(R=o.staticInsensitive)==null?void 0:R.get(nt);if(D)F=D;else{o.staticInsensitive??(o.staticInsensitive=new Map);const V=Wn(i.fullPath??i.from);V.parent=o,V.depth=f,F=V,o.staticInsensitive.set(nt,V)}}break}case 1:{const ot=X.substring(st,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=!J&&((M=o.dynamic)==null?void 0:M.find(ft=>!ft.skipOnParamError&&ft.caseSensitive===D&&ft.prefix===V&&ft.suffix===at));if(yt)F=yt;else{const ft=$o(1,i.fullPath??i.from,D,V,at);F=ft,ft.depth=f,ft.parent=o,o.dynamic??(o.dynamic=[]),o.dynamic.push(ft)}break}case 3:{const ot=X.substring(st,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=!J&&((C=o.optional)==null?void 0:C.find(ft=>!ft.skipOnParamError&&ft.caseSensitive===D&&ft.prefix===V&&ft.suffix===at));if(yt)F=yt;else{const ft=$o(3,i.fullPath??i.from,D,V,at);F=ft,ft.parent=o,ft.depth=f,o.optional??(o.optional=[]),o.optional.push(ft)}break}case 2:{const ot=X.substring(st,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=$o(2,i.fullPath??i.from,D,V,at);F=yt,yt.parent=o,yt.depth=f,o.wildcard??(o.wildcard=[]),o.wildcard.push(yt)}}o=F}if(J&&i.children&&!i.isRoot&&i.id&&i.id.charCodeAt(i.id.lastIndexOf("/")+1)===95){const G=Wn(i.fullPath??i.from);G.kind=dg,G.parent=o,f++,G.depth=f,o.pathless??(o.pathless=[]),o.pathless.push(G),o=G}const k=(i.path||!i.children)&&!i.isRoot;if(k&&X.endsWith("/")){const G=Wn(i.fullPath??i.from);G.kind=In,G.parent=o,f++,G.depth=f,o.index=G,o=G}o.parse=((P=(U=i.options)==null?void 0:U.params)==null?void 0:P.parse)??null,o.skipOnParamError=J,o.parsingPriority=((L=(K=i.options)==null?void 0:K.skipRouteOnParseError)==null?void 0:L.priority)??0,k&&!o.route&&(o.route=i,o.fullPath=i.fullPath??i.from)}if(i.children)for(const X of i.children)Er(n,s,X,g,o,f,h)}function Fo(n,s){if(n.skipOnParamError&&!s.skipOnParamError)return-1;if(!n.skipOnParamError&&s.skipOnParamError)return 1;if(n.skipOnParamError&&s.skipOnParamError&&(n.parsingPriority||s.parsingPriority))return s.parsingPriority-n.parsingPriority;if(n.prefix&&s.prefix&&n.prefix!==s.prefix){if(n.prefix.startsWith(s.prefix))return-1;if(s.prefix.startsWith(n.prefix))return 1}if(n.suffix&&s.suffix&&n.suffix!==s.suffix){if(n.suffix.endsWith(s.suffix))return-1;if(s.suffix.endsWith(n.suffix))return 1}return n.prefix&&!s.prefix?-1:!n.prefix&&s.prefix?1:n.suffix&&!s.suffix?-1:!n.suffix&&s.suffix?1:n.caseSensitive&&!s.caseSensitive?-1:!n.caseSensitive&&s.caseSensitive?1:0}function mn(n){var s,i,r;if(n.pathless)for(const o of n.pathless)mn(o);if(n.static)for(const o of n.static.values())mn(o);if(n.staticInsensitive)for(const o of n.staticInsensitive.values())mn(o);if((s=n.dynamic)!=null&&s.length){n.dynamic.sort(Fo);for(const o of n.dynamic)mn(o)}if((i=n.optional)!=null&&i.length){n.optional.sort(Fo);for(const o of n.optional)mn(o)}if((r=n.wildcard)!=null&&r.length){n.wildcard.sort(Fo);for(const o of n.wildcard)mn(o)}}function Wn(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 $o(n,s,i,r,o){return{kind:n,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:s,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:i,prefix:r,suffix:o}}function bb(n,s){const i=Wn("/"),r=new Uint16Array(6);for(const o of n)Er(!1,r,o,1,i,0);mn(i),s.masksTree=i,s.flatCache=zi(1e3)}function Sb(n,s){n||(n="/");const i=s.flatCache.get(n);if(i)return i;const r=Lf(n,s.masksTree);return s.flatCache.set(n,r),r}function Rb(n,s,i,r,o){n||(n="/"),r||(r="/");const f=s?`case\0${n}`:n;let h=o.singleCache.get(f);return h||(h=Wn("/"),Er(s,new Uint16Array(6),{from:n},1,h,0),o.singleCache.set(f,h)),Lf(r,h,i)}function jb(n,s,i=!1){const r=i?n:`nofuzz\0${n}`,o=s.matchCache.get(r);if(o!==void 0)return o;n||(n="/");let f;try{f=Lf(n,s.segmentTree,i)}catch(h){if(h instanceof URIError)f=null;else throw h}return f&&(f.branch=Nb(f.route)),s.matchCache.set(r,f),f}function _b(n){return n==="/"?n:n.replace(/\/{1,}$/,"")}function Eb(n,s=!1,i){const r=Wn(n.fullPath),o=new Uint16Array(6),f={},h={};let g=0;return Er(s,o,n,1,r,0,p=>{if(i==null||i(p,g),p.id in f&&Ba(),f[p.id]=p,g!==0&&p.path){const y=_b(p.fullPath);(!h[y]||p.fullPath.endsWith("/"))&&(h[y]=p)}g++}),mn(r),{processedTree:{segmentTree:r,singleCache:zi(1e3),matchCache:zi(1e3),flatCache:null,masksTree:null},routesById:f,routesByPath:h}}function Lf(n,s,i=!1){const r=n.split("/"),o=Mb(n,r,s,i);if(!o)return null;const[f]=hg(n,r,o);return{route:o.node.route,rawParams:f,parsedParams:o.parsedParams}}function hg(n,s,i){var b,v,S,j,R,M,C,U,P,K;const r=Tb(i.node);let o=null;const f=Object.create(null);let h=((b=i.extract)==null?void 0:b.part)??0,g=((v=i.extract)==null?void 0:v.node)??0,p=((S=i.extract)==null?void 0:S.path)??0,y=((j=i.extract)==null?void 0:j.segment)??0;for(;g<r.length;h++,g++,p++,y++){const L=r[g];if(L.kind===In)break;if(L.kind===dg){y--,h--,p--;continue}const X=s[h],$=p;if(X&&(p+=X.length),L.kind===1){o??(o=i.node.fullPath.split("/"));const Z=o[y],J=((R=L.prefix)==null?void 0:R.length)??0;if(Z.charCodeAt(J)===123){const k=((M=L.suffix)==null?void 0:M.length)??0,G=Z.substring(J+2,Z.length-k-1),F=X.substring(J,X.length-k);f[G]=decodeURIComponent(F)}else{const k=Z.substring(1);f[k]=decodeURIComponent(X)}}else if(L.kind===3){if(i.skipped&1<<g){h--,p=$-1;continue}o??(o=i.node.fullPath.split("/"));const Z=o[y],J=((C=L.prefix)==null?void 0:C.length)??0,k=((U=L.suffix)==null?void 0:U.length)??0,G=Z.substring(J+3,Z.length-k-1),F=L.suffix||L.prefix?X.substring(J,X.length-k):X;F&&(f[G]=decodeURIComponent(F))}else if(L.kind===2){const Z=L,J=n.substring($+(((P=Z.prefix)==null?void 0:P.length)??0),n.length-(((K=Z.suffix)==null?void 0:K.length)??0)),k=decodeURIComponent(J);f["*"]=k,f._splat=k;break}}return i.rawParams&&Object.assign(f,i.rawParams),[f,{part:h,node:g,path:p,segment:y}]}function Nb(n){const s=[n];for(;n.parentRoute;)n=n.parentRoute,s.push(n);return s.reverse(),s}function Tb(n){const s=Array(n.depth+1);do s[n.depth]=n,n=n.parent;while(n);return s}function Mb(n,s,i,r){if(n==="/"&&i.index)return{node:i.index,skipped:0};const o=!Ai(s),f=o&&n!=="/",h=s.length-(o?1:0),g=[{node:i,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let p=null,y=null,b=null;for(;g.length;){const v=g.pop(),{node:S,index:j,skipped:R,depth:M,statics:C,dynamics:U,optionals:P}=v;let{extract:K,rawParams:L,parsedParams:X}=v;if(S.skipOnParamError){if(!Io(n,s,v))continue;L=v.rawParams,K=v.extract,X=v.parsedParams}r&&S.route&&S.kind!==In&&bi(y,v)&&(y=v);const $=j===h;if($&&(S.route&&!f&&bi(b,v)&&(b=v),!S.optional&&!S.wildcard&&!S.index&&!S.pathless))continue;const Z=$?void 0:s[j];let J;if($&&S.index){const k={node:S.index,index:j,skipped:R,depth:M+1,statics:C,dynamics:U,optionals:P,extract:K,rawParams:L,parsedParams:X};let G=!0;if(S.index.skipOnParamError&&(Io(n,s,k)||(G=!1)),G){if(C===h&&!U&&!P&&!R)return k;bi(b,k)&&(b=k)}}if(S.wildcard&&bi(p,v))for(const k of S.wildcard){const{prefix:G,suffix:F}=k;if(G&&($||!(k.caseSensitive?Z:J??(J=Z.toLowerCase())).startsWith(G)))continue;if(F){if($)continue;const it=s.slice(j).join("/").slice(-F.length);if((k.caseSensitive?it:it.toLowerCase())!==F)continue}const st={node:k,index:h,skipped:R,depth:M,statics:C,dynamics:U,optionals:P,extract:K,rawParams:L,parsedParams:X};if(!(k.skipOnParamError&&!Io(n,s,st))){p=st;break}}if(S.optional){const k=R|1<<M,G=M+1;for(let F=S.optional.length-1;F>=0;F--){const st=S.optional[F];g.push({node:st,index:j,skipped:k,depth:G,statics:C,dynamics:U,optionals:P,extract:K,rawParams:L,parsedParams:X})}if(!$)for(let F=S.optional.length-1;F>=0;F--){const st=S.optional[F],{prefix:it,suffix:ot}=st;if(it||ot){const nt=st.caseSensitive?Z:J??(J=Z.toLowerCase());if(it&&!nt.startsWith(it)||ot&&!nt.endsWith(ot))continue}g.push({node:st,index:j+1,skipped:R,depth:G,statics:C,dynamics:U,optionals:P+1,extract:K,rawParams:L,parsedParams:X})}}if(!$&&S.dynamic&&Z)for(let k=S.dynamic.length-1;k>=0;k--){const G=S.dynamic[k],{prefix:F,suffix:st}=G;if(F||st){const it=G.caseSensitive?Z:J??(J=Z.toLowerCase());if(F&&!it.startsWith(F)||st&&!it.endsWith(st))continue}g.push({node:G,index:j+1,skipped:R,depth:M+1,statics:C,dynamics:U+1,optionals:P,extract:K,rawParams:L,parsedParams:X})}if(!$&&S.staticInsensitive){const k=S.staticInsensitive.get(J??(J=Z.toLowerCase()));k&&g.push({node:k,index:j+1,skipped:R,depth:M+1,statics:C+1,dynamics:U,optionals:P,extract:K,rawParams:L,parsedParams:X})}if(!$&&S.static){const k=S.static.get(Z);k&&g.push({node:k,index:j+1,skipped:R,depth:M+1,statics:C+1,dynamics:U,optionals:P,extract:K,rawParams:L,parsedParams:X})}if(S.pathless){const k=M+1;for(let G=S.pathless.length-1;G>=0;G--){const F=S.pathless[G];g.push({node:F,index:j,skipped:R,depth:k,statics:C,dynamics:U,optionals:P,extract:K,rawParams:L,parsedParams:X})}}}if(b&&p)return bi(p,b)?b:p;if(b)return b;if(p)return p;if(r&&y){let v=y.index;for(let j=0;j<y.index;j++)v+=s[j].length;const S=v===n.length?"/":n.slice(v);return y.rawParams??(y.rawParams=Object.create(null)),y.rawParams["**"]=decodeURIComponent(S),y}return null}function Io(n,s,i){try{const[r,o]=hg(n,s,i);i.rawParams=r,i.extract=o;const f=i.node.parse(r);return i.parsedParams=Object.assign(Object.create(null),i.parsedParams,f),!0}catch{return null}}function bi(n,s){return n?s.statics>n.statics||s.statics===n.statics&&(s.dynamics>n.dynamics||s.dynamics===n.dynamics&&(s.optionals>n.optionals||s.optionals===n.optionals&&((s.node.kind===In)>(n.node.kind===In)||s.node.kind===In==(n.node.kind===In)&&s.depth>n.depth))):!0}function dr(n){return Bf(n.filter(s=>s!==void 0).join("/"))}function Bf(n){return n.replace(/\/{2,}/g,"/")}function mg(n){return n==="/"?n:n.replace(/^\/{1,}/,"")}function Mn(n){const s=n.length;return s>1&&n[s-1]==="/"?n.replace(/\/{1,}$/,""):n}function yg(n){return Mn(mg(n))}function xr(n,s){return n!=null&&n.endsWith("/")&&n!=="/"&&n!==`${s}/`?n.slice(0,-1):n}function Cb(n,s,i){return xr(n,i)===xr(s,i)}function Ab({base:n,to:s,trailingSlash:i="never",cache:r}){const o=s.startsWith("/"),f=!o&&s===".";let h;if(r){h=o?s:f?n:n+"\0"+s;const v=r.get(h);if(v)return v}let g;if(f)g=n.split("/");else if(o)g=s.split("/");else{for(g=n.split("/");g.length>1&&Ai(g)==="";)g.pop();const v=s.split("/");for(let S=0,j=v.length;S<j;S++){const R=v[S];R===""?S?S===j-1&&g.push(R):g=[R]:R===".."?g.pop():R==="."||g.push(R)}}g.length>1&&(Ai(g)===""?i==="never"&&g.pop():i==="always"&&g.push(""));let p,y="";for(let v=0;v<g.length;v++){v>0&&(y+="/");const S=g[v];if(!S)continue;p=Uf(S,0,p);const j=p[0];if(j===0){y+=S;continue}const R=p[5],M=S.substring(0,p[1]),C=S.substring(p[4],R),U=S.substring(p[2],p[3]);j===1?y+=M||C?`${M}{$${U}}${C}`:`$${U}`:j===2?y+=M||C?`${M}{$}${C}`:"$":y+=`${M}{-$${U}}${C}`}y=Bf(y);const b=y||"/";return h&&r&&r.set(h,b),b}function Ob(n){const s=new Map(n.map(o=>[encodeURIComponent(o),o])),i=Array.from(s.keys()).map(o=>o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=new RegExp(i,"g");return o=>o.replace(r,f=>s.get(f)??f)}function Wo(n,s,i){const r=s[n];return typeof r!="string"?r:n==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(r)?r:r.split("/").map(o=>v0(o,i)).join("/"):v0(r,i)}function g0({path:n,params:s,decoder:i,...r}){let o=!1;const f=Object.create(null);if(!n||n==="/")return{interpolatedPath:"/",usedParams:f,isMissingParams:o};if(!n.includes("$"))return{interpolatedPath:n,usedParams:f,isMissingParams:o};const h=n.length;let g=0,p,y="";for(;g<h;){const b=g;p=Uf(n,b,p);const v=p[5];if(g=v+1,b===v)continue;const S=p[0];if(S===0){y+="/"+n.substring(b,v);continue}if(S===2){const j=s._splat;f._splat=j,f["*"]=j;const R=n.substring(b,p[1]),M=n.substring(p[4],v);if(!j){o=!0,(R||M)&&(y+="/"+R+M);continue}const C=Wo("_splat",s,i);y+="/"+R+C+M;continue}if(S===1){const j=n.substring(p[2],p[3]);!o&&!(j in s)&&(o=!0),f[j]=s[j];const R=n.substring(b,p[1]),M=n.substring(p[4],v),C=Wo(j,s,i)??"undefined";y+="/"+R+C+M;continue}if(S===3){const j=n.substring(p[2],p[3]),R=s[j];if(R==null)continue;f[j]=R;const M=n.substring(b,p[1]),C=n.substring(p[4],v),U=Wo(j,s,i)??"";y+="/"+M+U+C;continue}}return n.endsWith("/")&&(y+="/"),{usedParams:f,interpolatedPath:y||"/",isMissingParams:o}}function v0(n,s){const i=encodeURIComponent(n);return(s==null?void 0:s(i))??i}function ve(n){return!!(n!=null&&n.isNotFound)}function zb(){try{return typeof window<"u"&&typeof window.sessionStorage=="object"?window.sessionStorage:void 0}catch{return}}var Db="tsr-scroll-restoration-v1_3";function wb(){const n=zb();if(!n)return null;let s={};try{const r=JSON.parse(n.getItem("tsr-scroll-restoration-v1_3")||"{}");xs(r)&&(s=r)}catch{}return{get state(){return s},set:r=>{s=_n(r,s)||s},persist:()=>{try{n.setItem(Db,JSON.stringify(s))}catch{}}}}var p0=wb(),Ub=n=>n.state.__TSR_key||n.href;function Lb(n){const s=[];let i;for(;i=n.parentNode;)s.push(`${n.tagName}:nth-child(${Array.prototype.indexOf.call(i.children,n)+1})`),n=i;return`${s.reverse().join(" > ")}`.toLowerCase()}var rr=!1,Si="window",x0="data-scroll-restoration-id";function Bb(n,s){if(!p0)return;const i=p0;if((n.options.scrollRestoration??!1)&&(n.isScrollRestoring=!0),n.isScrollRestorationSetup||!i)return;n.isScrollRestorationSetup=!0,rr=!1;const r=n.options.getScrollRestorationKey||Ub,o=new Map;window.history.scrollRestoration="manual";const f=g=>{if(!(rr||!n.isScrollRestoring))if(g.target===document||g.target===window)o.set(Si,{scrollX:window.scrollX||0,scrollY:window.scrollY||0});else{const p=g.target;o.set(p,{scrollX:p.scrollLeft||0,scrollY:p.scrollTop||0})}},h=g=>{var y;if(!n.isScrollRestoring||!g||o.size===0||!i)return;const p=(y=i.state)[g]||(y[g]={});for(const[b,v]of o){let S;if(b===Si)S=Si;else if(b.isConnected){const j=b.getAttribute(x0);S=j?`[${x0}="${j}"]`:Lb(b)}S&&(p[S]=v)}};document.addEventListener("scroll",f,!0),n.subscribe("onBeforeLoad",g=>{h(g.fromLocation?r(g.fromLocation):void 0),o.clear()}),window.addEventListener("pagehide",()=>{h(r(n.stores.resolvedLocation.state??n.stores.location.state)),i.persist()}),n.subscribe("onRendered",g=>{var v;const p=r(g.toLocation),y=n.options.scrollRestorationBehavior,b=n.options.scrollToTopSelectors;if(o.clear(),!n.resetNextScroll){n.resetNextScroll=!0;return}if(!(typeof n.options.scrollRestoration=="function"&&!n.options.scrollRestoration({location:n.latestLocation}))){rr=!0;try{const S=n.isScrollRestoring?i.state[p]:void 0;let j=!1;if(S)for(const R in S){const M=S[R];if(!xs(M))continue;const{scrollX:C,scrollY:U}=M;if(!(!Number.isFinite(C)||!Number.isFinite(U))){if(R===Si)window.scrollTo({top:U,left:C,behavior:y}),j=!0;else if(R){let P;try{P=document.querySelector(R)}catch{continue}P&&(P.scrollLeft=C,P.scrollTop=U,j=!0)}}}if(!j){const R=n.history.location.hash.slice(1);if(R){const M=((v=window.history.state)==null?void 0:v.__hashScrollIntoViewOptions)??!0;if(M){const C=document.getElementById(R);C&&C.scrollIntoView(M)}}else{const M={top:0,left:0,behavior:y};if(window.scrollTo(M),b)for(const C of b){if(C===Si)continue;const U=typeof C=="function"?C():document.querySelector(C);U&&U.scrollTo(M)}}}}finally{rr=!1}n.isScrollRestoring&&i.set(S=>(S[p]||(S[p]={}),S))}})}function Hb(n,s=String){const i=new URLSearchParams;for(const r in n){const o=n[r];o!==void 0&&i.set(r,s(o))}return i.toString()}function tf(n){return n?n==="false"?!1:n==="true"?!0:+n*0===0&&+n+""===n?+n:n:""}function qb(n){const s=new URLSearchParams(n),i=Object.create(null);for(const[r,o]of s.entries()){const f=i[r];f==null?i[r]=tf(o):Array.isArray(f)?f.push(tf(o)):i[r]=[f,tf(o)]}return i}var Qb=Gb(JSON.parse),Yb=Vb(JSON.stringify,JSON.parse);function Gb(n){return s=>{s[0]==="?"&&(s=s.substring(1));const i=qb(s);for(const r in i){const o=i[r];if(typeof o=="string")try{i[r]=n(o)}catch{}}return i}}function Vb(n,s){const i=typeof s=="function";function r(o){if(typeof o=="object"&&o!==null)try{return n(o)}catch{}else if(i&&typeof o=="string")try{return s(o),n(o)}catch{}return o}return o=>{const f=Hb(o,r);return f?`?${f}`:""}}var ol="__root__";function Xb(n){if(n.statusCode=n.statusCode||n.code||307,!n._builtLocation&&!n.reloadDocument&&typeof n.href=="string")try{new URL(n.href),n.reloadDocument=!0}catch{}const s=new Headers(n.headers);n.href&&s.get("Location")===null&&s.set("Location",n.href);const i=new Response(null,{status:n.statusCode,headers:s});if(i.options=n,n.throw)throw i;return i}function Me(n){return n instanceof Response&&!!n.options}function Kb(n){return{input:({url:s})=>{for(const i of n)s=jf(i,s);return s},output:({url:s})=>{for(let i=n.length-1;i>=0;i--)s=gg(n[i],s);return s}}}function Zb(n){const s=yg(n.basepath),i=`/${s}`,r=`${i}/`,o=n.caseSensitive?i:i.toLowerCase(),f=n.caseSensitive?r:r.toLowerCase();return{input:({url:h})=>{const g=n.caseSensitive?h.pathname:h.pathname.toLowerCase();return g===o?h.pathname="/":g.startsWith(f)&&(h.pathname=h.pathname.slice(i.length)),h},output:({url:h})=>(h.pathname=dr(["/",s,h.pathname]),h)}}function jf(n,s){var r;const i=(r=n==null?void 0:n.input)==null?void 0:r.call(n,{url:s});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return s}function gg(n,s){var r;const i=(r=n==null?void 0:n.output)==null?void 0:r.call(n,{url:s});if(i){if(typeof i=="string")return new URL(i);if(i instanceof URL)return i}return s}function Jb(n,s){const{createMutableStore:i,createReadonlyStore:r,batch:o,init:f}=s,h=new Map,g=new Map,p=new Map,y=i(n.status),b=i(n.loadedAt),v=i(n.isLoading),S=i(n.isTransitioning),j=i(n.location),R=i(n.resolvedLocation),M=i(n.statusCode),C=i(n.redirect),U=i([]),P=i([]),K=i([]),L=r(()=>ef(h,U.state)),X=r(()=>ef(g,P.state)),$=r(()=>ef(p,K.state)),Z=r(()=>U.state[0]),J=r(()=>U.state.some(V=>{var at;return((at=h.get(V))==null?void 0:at.state.status)==="pending"})),k=r(()=>{var V;return{locationHref:j.state.href,resolvedLocationHref:(V=R.state)==null?void 0:V.href,status:y.state}}),G=r(()=>({status:y.state,loadedAt:b.state,isLoading:v.state,isTransitioning:S.state,matches:L.state,location:j.state,resolvedLocation:R.state,statusCode:M.state,redirect:C.state})),F=zi(64);function st(V){let at=F.get(V);return at||(at=r(()=>{const yt=U.state;for(const ft of yt){const N=h.get(ft);if(N&&N.routeId===V)return N.state}}),F.set(V,at)),at}const it={status:y,loadedAt:b,isLoading:v,isTransitioning:S,location:j,resolvedLocation:R,statusCode:M,redirect:C,matchesId:U,pendingMatchesId:P,cachedMatchesId:K,activeMatchesSnapshot:L,pendingMatchesSnapshot:X,cachedMatchesSnapshot:$,firstMatchId:Z,hasPendingMatches:J,matchRouteReactivity:k,activeMatchStoresById:h,pendingMatchStoresById:g,cachedMatchStoresById:p,__store:G,getMatchStoreByRouteId:st,setActiveMatches:ot,setPendingMatches:nt,setCachedMatches:D};ot(n.matches),f==null||f(it);function ot(V){af(V,h,U,i,o)}function nt(V){af(V,g,P,i,o)}function D(V){af(V,p,K,i,o)}return it}function ef(n,s){const i=[];for(const r of s){const o=n.get(r);o&&i.push(o.state)}return i}function af(n,s,i,r,o){const f=n.map(g=>g.id),h=new Set(f);o(()=>{for(const g of s.keys())h.has(g)||s.delete(g);for(const g of n){const p=s.get(g.id);if(!p){const y=r(g);y.routeId=g.routeId,s.set(g.id,y);continue}p.routeId=g.routeId,p.state!==g&&p.setState(()=>g)}pb(i.state,f)||i.setState(()=>f)})}var _f=n=>{var s;if(!n.rendered)return n.rendered=!0,(s=n.onReady)==null?void 0:s.call(n)},Pb=n=>n.stores.matchesId.state.some(s=>{var i;return(i=n.stores.activeMatchStoresById.get(s))==null?void 0:i.state._forcePending}),Nr=(n,s)=>!!(n.preload&&!n.router.stores.activeMatchStoresById.has(s)),fl=(n,s,i=!0)=>{const r={...n.router.options.context??{}},o=i?s:s-1;for(let f=0;f<=o;f++){const h=n.matches[f];if(!h)continue;const g=n.router.getMatch(h.id);g&&Object.assign(r,g.__routeContext,g.__beforeLoadContext)}return r},b0=(n,s)=>{if(!n.matches.length)return;const i=s.routeId,r=n.matches.findIndex(h=>h.routeId===n.router.routeTree.id),o=r>=0?r:0;let f=i?n.matches.findIndex(h=>h.routeId===i):n.firstBadMatchIndex??n.matches.length-1;f<0&&(f=o);for(let h=f;h>=0;h--){const g=n.matches[h];if(n.router.looseRoutesById[g.routeId].options.notFoundComponent)return h}return i?f:o},Nn=(n,s,i)=>{var r,o,f;if(!(!Me(i)&&!ve(i)))throw Me(i)&&i.redirectHandled&&!i.options.reloadDocument||(s&&((r=s._nonReactive.beforeLoadPromise)==null||r.resolve(),(o=s._nonReactive.loaderPromise)==null||o.resolve(),s._nonReactive.beforeLoadPromise=void 0,s._nonReactive.loaderPromise=void 0,s._nonReactive.error=i,n.updateMatch(s.id,h=>({...h,status:Me(i)?"redirected":h.status==="pending"?"success":h.status,context:fl(n,s.index),isFetching:!1,error:i})),ve(i)&&!i.routeId&&(i.routeId=s.routeId),(f=s._nonReactive.loadPromise)==null||f.resolve()),Me(i)&&(n.rendered=!0,i.options._fromLocation=n.location,i.redirectHandled=!0,i=n.router.resolveRedirect(i))),i},vg=(n,s)=>{const i=n.router.getMatch(s);return!!(!i||i._nonReactive.dehydrated)},S0=(n,s,i)=>{const r=fl(n,i);n.updateMatch(s,o=>({...o,context:r}))},Ri=(n,s,i,r)=>{var g,p;const{id:o,routeId:f}=n.matches[s],h=n.router.looseRoutesById[f];if(i instanceof Promise)throw i;i.routerCode=r,n.firstBadMatchIndex??(n.firstBadMatchIndex=s),Nn(n,n.router.getMatch(o),i);try{(p=(g=h.options).onError)==null||p.call(g,i)}catch(y){i=y,Nn(n,n.router.getMatch(o),i)}n.updateMatch(o,y=>{var b,v;return(b=y._nonReactive.beforeLoadPromise)==null||b.resolve(),y._nonReactive.beforeLoadPromise=void 0,(v=y._nonReactive.loadPromise)==null||v.resolve(),{...y,error:i,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}}),!n.preload&&!Me(i)&&!ve(i)&&(n.serialError??(n.serialError=i))},pg=(n,s,i,r)=>{var f;if(r._nonReactive.pendingTimeout!==void 0)return;const o=i.options.pendingMs??n.router.options.defaultPendingMs;if(n.onReady&&!Nr(n,s)&&(i.options.loader||i.options.beforeLoad||bg(i))&&typeof o=="number"&&o!==1/0&&(i.options.pendingComponent??((f=n.router.options)==null?void 0:f.defaultPendingComponent))){const h=setTimeout(()=>{_f(n)},o);r._nonReactive.pendingTimeout=h}},kb=(n,s,i)=>{const r=n.router.getMatch(s);if(!r._nonReactive.beforeLoadPromise&&!r._nonReactive.loaderPromise)return;pg(n,s,i,r);const o=()=>{const f=n.router.getMatch(s);f.preload&&(f.status==="redirected"||f.status==="notFound")&&Nn(n,f,f.error)};return r._nonReactive.beforeLoadPromise?r._nonReactive.beforeLoadPromise.then(o):o()},Fb=(n,s,i,r)=>{const o=n.router.getMatch(s);let f=o._nonReactive.loadPromise;o._nonReactive.loadPromise=bs(()=>{f==null||f.resolve(),f=void 0});const{paramsError:h,searchError:g}=o;h&&Ri(n,i,h,"PARSE_PARAMS"),g&&Ri(n,i,g,"VALIDATE_SEARCH"),pg(n,s,r,o);const p=new AbortController;let y=!1;const b=()=>{y||(y=!0,n.updateMatch(s,L=>({...L,isFetching:"beforeLoad",fetchCount:L.fetchCount+1,abortController:p})))},v=()=>{var L;(L=o._nonReactive.beforeLoadPromise)==null||L.resolve(),o._nonReactive.beforeLoadPromise=void 0,n.updateMatch(s,X=>({...X,isFetching:!1}))};if(!r.options.beforeLoad){n.router.batch(()=>{b(),v()});return}o._nonReactive.beforeLoadPromise=bs();const S={...fl(n,i,!1),...o.__routeContext},{search:j,params:R,cause:M}=o,C=Nr(n,s),U={search:j,abortController:p,params:R,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:r.id,...n.router.options.additionalContext},P=L=>{if(L===void 0){n.router.batch(()=>{b(),v()});return}(Me(L)||ve(L))&&(b(),Ri(n,i,L,"BEFORE_LOAD")),n.router.batch(()=>{b(),n.updateMatch(s,X=>({...X,__beforeLoadContext:L})),v()})};let K;try{if(K=r.options.beforeLoad(U),Oi(K))return b(),K.catch(L=>{Ri(n,i,L,"BEFORE_LOAD")}).then(P)}catch(L){b(),Ri(n,i,L,"BEFORE_LOAD")}P(K)},$b=(n,s)=>{const{id:i,routeId:r}=n.matches[s],o=n.router.looseRoutesById[r],f=()=>g(),h=()=>Fb(n,i,s,o),g=()=>{if(vg(n,i))return;const p=kb(n,i,o);return Oi(p)?p.then(h):h()};return f()},Ib=(n,s,i)=>{var f,h,g,p,y,b;const r=n.router.getMatch(s);if(!r||!i.options.head&&!i.options.scripts&&!i.options.headers)return;const o={ssr:n.router.options.ssr,matches:n.matches,match:r,params:r.params,loaderData:r.loaderData};return Promise.all([(h=(f=i.options).head)==null?void 0:h.call(f,o),(p=(g=i.options).scripts)==null?void 0:p.call(g,o),(b=(y=i.options).headers)==null?void 0:b.call(y,o)]).then(([v,S,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}))},xg=(n,s,i,r,o)=>{const f=s[r-1],{params:h,loaderDeps:g,abortController:p,cause:y}=n.router.getMatch(i),b=fl(n,r),v=Nr(n,i);return{params:h,deps:g,preload:!!v,parentMatchPromise:f,abortController:p,context:b,location:n.location,navigate:S=>n.router.navigate({...S,_fromLocation:n.location}),cause:v?"preload":y,route:o,...n.router.options.additionalContext}},R0=async(n,s,i,r,o)=>{var f,h,g,p,y;try{const b=n.router.getMatch(i);try{(!(fg??n.router.isServer)||b.ssr===!0)&&Di(o);const v=o.options.loader,S=typeof v=="function"?v:v==null?void 0:v.handler,j=S==null?void 0:S(xg(n,s,i,r,o)),R=!!S&&Oi(j);if((R||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=R?await j:j;Nn(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:fl(n,r),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(v){let S=v;if((S==null?void 0:S.name)==="AbortError"){if(b.abortController.signal.aborted){(f=b._nonReactive.loaderPromise)==null||f.resolve(),b._nonReactive.loaderPromise=void 0;return}n.updateMatch(i,R=>({...R,status:R.status==="pending"?"success":R.status,isFetching:!1,context:fl(n,r)}));return}const j=b._nonReactive.minPendingPromise;j&&await j,ve(v)&&await((g=(h=o.options.notFoundComponent)==null?void 0:h.preload)==null?void 0:g.call(h)),Nn(n,n.router.getMatch(i),v);try{(y=(p=o.options).onError)==null||y.call(p,v)}catch(R){S=R,Nn(n,n.router.getMatch(i),R)}!Me(S)&&!ve(S)&&await Di(o,["errorComponent"]),n.updateMatch(i,R=>({...R,error:S,context:fl(n,r),status:"error",isFetching:!1}))}}catch(b){const v=n.router.getMatch(i);v&&(v._nonReactive.loaderPromise=void 0),Nn(n,v,b)}},Wb=async(n,s,i)=>{var j,R,M,C;async function r(U,P,K,L,X){const $=Date.now()-P.updatedAt,Z=U?X.options.preloadStaleTime??n.router.options.defaultPreloadStaleTime??3e4:X.options.staleTime??n.router.options.defaultStaleTime??0,J=X.options.shouldReload,k=typeof J=="function"?J(xg(n,s,o,i,X)):J,{status:G,invalid:F}=L,st=$>=Z&&(!!n.forceStaleReload||L.cause==="enter"||K!==void 0&&K!==L.id);h=G==="success"&&(F||(k??st)),U&&X.options.preload===!1||(h&&!n.sync&&b?(g=!0,(async()=>{var it,ot;try{await R0(n,s,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){Me(nt)&&await n.router.navigate(nt.options)}})()):G!=="success"||h?await R0(n,s,o,i,X):S0(n,o,i))}const{id:o,routeId:f}=n.matches[i];let h=!1,g=!1;const p=n.router.looseRoutesById[f],y=p.options.loader,b=((typeof y=="function"||y==null?void 0:y.staleReloadMode)??n.router.options.defaultStaleReloadMode)!=="blocking";if(vg(n,o)){if(!n.router.getMatch(o))return n.matches[i];S0(n,o,i)}else{const U=n.router.getMatch(o),P=n.router.stores.matchesId.state[i],K=((j=P&&n.router.stores.activeMatchStoresById.get(P)||null)==null?void 0:j.routeId)===f?P:(R=n.router.stores.activeMatchesSnapshot.state.find(X=>X.routeId===f))==null?void 0:R.id,L=Nr(n,o);if(U._nonReactive.loaderPromise){if(U.status==="success"&&!n.sync&&!U.preload&&b)return U;await U._nonReactive.loaderPromise;const X=n.router.getMatch(o),$=X._nonReactive.error||X.error;$&&Nn(n,X,$),X.status==="pending"&&await r(L,U,K,X,p)}else{const X=L&&!n.router.stores.activeMatchStoresById.has(o),$=n.router.getMatch(o);$._nonReactive.loaderPromise=bs(),X!==$.preload&&n.updateMatch(o,Z=>({...Z,preload:X})),await r(L,U,K,$,p)}}const v=n.router.getMatch(o);g||((M=v._nonReactive.loaderPromise)==null||M.resolve(),(C=v._nonReactive.loadPromise)==null||C.resolve(),v._nonReactive.loadPromise=void 0),clearTimeout(v._nonReactive.pendingTimeout),v._nonReactive.pendingTimeout=void 0,g||(v._nonReactive.loaderPromise=void 0),v._nonReactive.dehydrated=void 0;const S=g?v.isFetching:!1;return S!==v.isFetching||v.invalid!==!1?(n.updateMatch(o,U=>({...U,isFetching:S,invalid:!1})),n.router.getMatch(o)):v};async function j0(n){var S,j;const s=n,i=[];Pb(s.router)&&_f(s);let r;for(let R=0;R<s.matches.length;R++){try{const M=$b(s,R);Oi(M)&&await M}catch(M){if(Me(M))throw M;if(ve(M))r=M;else if(!s.preload)throw M;break}if(s.serialError)break}const o=s.firstBadMatchIndex??s.matches.length,f=r&&!s.preload?b0(s,r):void 0,h=r&&s.preload?0:f!==void 0?Math.min(f+1,o):o;let g,p;for(let R=0;R<h;R++)i.push(Wb(s,i,R));try{await Promise.all(i)}catch{const R=await Promise.allSettled(i);for(const M of R){if(M.status!=="rejected")continue;const C=M.reason;if(Me(C))throw C;ve(C)?g??(g=C):p??(p=C)}if(p!==void 0)throw p}const y=g??(r&&!s.preload?r:void 0);let b=s.serialError?s.firstBadMatchIndex??0:s.matches.length-1;if(!y&&r&&s.preload)return s.matches;if(y){const R=b0(s,y);R===void 0&&Ba();const M=s.matches[R],C=s.router.looseRoutesById[M.routeId],U=(S=s.router.options)==null?void 0:S.defaultNotFoundComponent;!C.options.notFoundComponent&&U&&(C.options.notFoundComponent=U),y.routeId=M.routeId;const P=M.routeId===s.router.routeTree.id;s.updateMatch(M.id,K=>({...K,...P?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:y},isFetching:!1})),b=R,await Di(C,["notFoundComponent"])}else if(!s.preload){const R=s.matches[0];R.globalNotFound||(j=s.router.getMatch(R.id))!=null&&j.globalNotFound&&s.updateMatch(R.id,M=>({...M,globalNotFound:!1,error:void 0}))}if(s.serialError&&s.firstBadMatchIndex!==void 0){const R=s.router.looseRoutesById[s.matches[s.firstBadMatchIndex].routeId];await Di(R,["errorComponent"])}for(let R=0;R<=b;R++){const{id:M,routeId:C}=s.matches[R],U=s.router.looseRoutesById[C];try{const P=Ib(s,M,U);if(P){const K=await P;s.updateMatch(M,L=>({...L,...K}))}}catch(P){console.error(`Error executing head for route ${C}:`,P)}}const v=_f(s);if(Oi(v)&&await v,y)throw y;if(s.serialError&&!s.preload&&!s.onReady)throw s.serialError;return s.matches}function _0(n,s){const i=s.map(r=>{var o,f;return(f=(o=n.options[r])==null?void 0:o.preload)==null?void 0:f.call(o)}).filter(Boolean);if(i.length!==0)return Promise.all(i)}function Di(n,s=hr){!n._lazyLoaded&&n._lazyPromise===void 0&&(n.lazyFn?n._lazyPromise=n.lazyFn().then(r=>{const{id:o,...f}=r.options;Object.assign(n.options,f),n._lazyLoaded=!0,n._lazyPromise=void 0}):n._lazyLoaded=!0);const i=()=>n._componentsLoaded?void 0:s===hr?(()=>{if(n._componentsPromise===void 0){const r=_0(n,hr);r?n._componentsPromise=r.then(()=>{n._componentsLoaded=!0,n._componentsPromise=void 0}):n._componentsLoaded=!0}return n._componentsPromise})():_0(n,s);return n._lazyPromise?n._lazyPromise.then(i):i()}function bg(n){var s;for(const i of hr)if((s=n.options[i])!=null&&s.preload)return!0;return!1}var hr=["component","errorComponent","pendingComponent","notFoundComponent"],Cn="__TSR_index",E0="popstate",N0="beforeunload";function tS(n){let s=n.getLocation();const i=new Set,r=h=>{s=n.getLocation(),i.forEach(g=>g({location:s,action:h}))},o=h=>{n.notifyOnIndexChange??!0?r(h):s=n.getLocation()},f=async({task:h,navigateOpts:g,...p})=>{var v,S;if((g==null?void 0:g.ignoreBlocker)??!1){h();return}const y=((v=n.getBlockers)==null?void 0:v.call(n))??[],b=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&y.length&&b)for(const j of y){const R=br(p.path,p.state);if(await j.blockerFn({currentLocation:s,nextLocation:R,action:p.type})){(S=n.onBlocked)==null||S.call(n);return}}h()};return{get location(){return s},get length(){return n.getLength()},subscribers:i,subscribe:h=>(i.add(h),()=>{i.delete(h)}),push:(h,g,p)=>{const y=s.state[Cn];g=T0(y+1,g),f({task:()=>{n.pushState(h,g),r({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:h,state:g})},replace:(h,g,p)=>{const y=s.state[Cn];g=T0(y,g),f({task:()=>{n.replaceState(h,g),r({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:h,state:g})},go:(h,g)=>{f({task:()=>{n.go(h),o({type:"GO",index:h})},navigateOpts:g,type:"GO"})},back:h=>{f({task:()=>{n.back((h==null?void 0:h.ignoreBlocker)??!1),o({type:"BACK"})},navigateOpts:h,type:"BACK"})},forward:h=>{f({task:()=>{n.forward((h==null?void 0:h.ignoreBlocker)??!1),o({type:"FORWARD"})},navigateOpts:h,type:"FORWARD"})},canGoBack:()=>s.state[Cn]!==0,createHref:h=>n.createHref(h),block:h=>{var p;if(!n.setBlockers)return()=>{};const g=((p=n.getBlockers)==null?void 0:p.call(n))??[];return n.setBlockers([...g,h]),()=>{var b,v;const y=((b=n.getBlockers)==null?void 0:b.call(n))??[];(v=n.setBlockers)==null||v.call(n,y.filter(S=>S!==h))}},flush:()=>{var h;return(h=n.flush)==null?void 0:h.call(n)},destroy:()=>{var h;return(h=n.destroy)==null?void 0:h.call(n)},notify:r}}function T0(n,s){s||(s={});const i=Hf();return{...s,key:i,__TSR_key:i,[Cn]:n}}function eS(n){var J,k;const s=typeof document<"u"?window:void 0,i=s.history.pushState,r=s.history.replaceState;let o=[];const f=()=>o,h=G=>o=G,g=(G=>G),p=(()=>br(`${s.location.pathname}${s.location.search}${s.location.hash}`,s.history.state));if(!((J=s.history.state)!=null&&J.__TSR_key)&&!((k=s.history.state)!=null&&k.key)){const G=Hf();s.history.replaceState({[Cn]:0,key:G,__TSR_key:G},"")}let y=p(),b,v=!1,S=!1,j=!1,R=!1;const M=()=>y;let C,U;const P=()=>{C&&(Z._ignoreSubscribers=!0,(C.isPush?s.history.pushState:s.history.replaceState)(C.state,"",C.href),Z._ignoreSubscribers=!1,C=void 0,U=void 0,b=void 0)},K=(G,F,st)=>{const it=g(F);U||(b=y),y=br(F,st),C={href:it,state:st,isPush:(C==null?void 0:C.isPush)||G==="push"},U||(U=Promise.resolve().then(()=>P()))},L=G=>{y=p(),Z.notify({type:G})},X=async()=>{if(S){S=!1;return}const G=p(),F=G.state[Cn]-y.state[Cn],st=F===1,it=F===-1,ot=!st&&!it||v;v=!1;const nt=ot?"GO":it?"BACK":"FORWARD",D=ot?{type:"GO",index:F}:{type:it?"BACK":"FORWARD"};if(j)j=!1;else{const V=f();if(typeof document<"u"&&V.length){for(const at of V)if(await at.blockerFn({currentLocation:y,nextLocation:G,action:nt})){S=!0,s.history.go(1),Z.notify(D);return}}}y=p(),Z.notify(D)},$=G=>{if(R){R=!1;return}let F=!1;const st=f();if(typeof document<"u"&&st.length)for(const it of st){const ot=it.enableBeforeUnload??!0;if(ot===!0){F=!0;break}if(typeof ot=="function"&&ot()===!0){F=!0;break}}if(F)return G.preventDefault(),G.returnValue=""},Z=tS({getLocation:M,getLength:()=>s.history.length,pushState:(G,F)=>K("push",G,F),replaceState:(G,F)=>K("replace",G,F),back:G=>(G&&(j=!0),R=!0,s.history.back()),forward:G=>{G&&(j=!0),R=!0,s.history.forward()},go:G=>{v=!0,s.history.go(G)},createHref:G=>g(G),flush:P,destroy:()=>{s.history.pushState=i,s.history.replaceState=r,s.removeEventListener(N0,$,{capture:!0}),s.removeEventListener(E0,X)},onBlocked:()=>{b&&y!==b&&(y=b)},getBlockers:f,setBlockers:h,notifyOnIndexChange:!1});return s.addEventListener(N0,$,{capture:!0}),s.addEventListener(E0,X),s.history.pushState=function(...G){const F=i.apply(s.history,G);return Z._ignoreSubscribers||L("PUSH"),F},s.history.replaceState=function(...G){const F=r.apply(s.history,G);return Z._ignoreSubscribers||L("REPLACE"),F},Z}function aS(n){let s=n.replace(/[\x00-\x1f\x7f]/g,"");return s.startsWith("//")&&(s="/"+s.replace(/^\/+/,"")),s}function br(n,s){const i=aS(n),r=i.indexOf("#"),o=i.indexOf("?"),f=Hf();return{href:i,pathname:i.substring(0,r>0?o>0?Math.min(r,o):r:o>0?o:i.length),hash:r>-1?i.substring(r):"",search:o>-1?i.slice(o,r===-1?void 0:r):"",state:s||{[Cn]:0,key:f,__TSR_key:f}}}function Hf(){return(Math.random()+1).toString(36).substring(7)}function is(n,s){const i=s,r=n;return{fromLocation:i,toLocation:r,pathChanged:(i==null?void 0:i.pathname)!==r.pathname,hrefChanged:(i==null?void 0:i.href)!==r.href,hashChanged:(i==null?void 0:i.hash)!==r.hash}}var nS=class{constructor(n,s){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=i=>i(),this.update=i=>{var b;const r=this.options,o=this.basepath??(r==null?void 0:r.basepath)??"/",f=this.basepath===void 0,h=r==null?void 0:r.rewrite;if(this.options={...r,...i},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=Ob(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=eS()),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=zi(1e3),v=this.buildRouteTree(),this.setRoutes(v)}if(!this.stores&&this.latestLocation){const v=this.getStoreConfig(this);this.batch=v.batch,this.stores=Jb(sS(this.latestLocation),v),Bb(this)}let g=!1;const p=this.options.basepath??"/",y=this.options.rewrite;if(f||o!==p||h!==y){this.basepath=p;const v=[],S=yg(p);S&&S!=="/"&&v.push(Zb({basepath:p})),y&&v.push(y),this.rewrite=v.length===0?void 0:v.length===1?v[0]:Kb(v),this.history&&this.updateLatestLocation(),g=!0}g&&this.stores&&this.stores.location.setState(()=>this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof((b=window.CSS)==null?void 0:b.supports)=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const i=Eb(this.routeTree,this.options.caseSensitive,(r,o)=>{r.init({originalIndex:o})});return this.options.routeMasks&&bb(this.options.routeMasks,i.processedTree),i},this.subscribe=(i,r)=>{const o={eventType:i,fn:r};return this.subscribers.add(o),()=>{this.subscribers.delete(o)}},this.emit=i=>{this.subscribers.forEach(r=>{r.eventType===i.type&&r.fn(i)})},this.parseLocation=(i,r)=>{const o=({pathname:p,search:y,hash:b,href:v,state:S})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const U=this.options.parseSearch(y),P=this.options.stringifySearch(U);return{href:p+P+b,publicHref:v,pathname:xi(p).path,external:!1,searchStr:P,search:Fn(r==null?void 0:r.search,U),hash:xi(b.slice(1)).path,state:En(r==null?void 0:r.state,S)}}const j=new URL(v,this.origin),R=jf(this.rewrite,j),M=this.options.parseSearch(R.search),C=this.options.stringifySearch(M);return R.search=C,{href:R.href.replace(R.origin,""),publicHref:v,pathname:xi(R.pathname).path,external:!!this.rewrite&&R.origin!==this.origin,searchStr:C,search:Fn(r==null?void 0:r.search,M),hash:xi(R.hash.slice(1)).path,state:En(r==null?void 0:r.state,S)}},f=o(i),{__tempLocation:h,__tempKey:g}=f.state;if(h&&(!g||g===this.tempLocationKey)){const p=o(h);return p.state.key=f.state.key,p.state.__TSR_key=f.state.__TSR_key,delete p.state.__tempLocation,{...p,maskedLocation:f}}return f},this.resolvePathWithBase=(i,r)=>Ab({base:i,to:Bf(r),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(i,r,o)=>typeof i=="string"?this.matchRoutesInternal({pathname:i,search:r},o):this.matchRoutesInternal(i,r),this.getMatchedRoutes=i=>iS({pathname:i,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=i=>{const r=this.getMatch(i);r&&(r.abortController.abort(),clearTimeout(r._nonReactive.pendingTimeout),r._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingMatchesId.state.forEach(i=>{this.cancelMatch(i)}),this.stores.matchesId.state.forEach(i=>{var o;if(this.stores.pendingMatchStoresById.has(i))return;const r=(o=this.stores.activeMatchStoresById.get(i))==null?void 0:o.state;r&&(r.status==="pending"||r.isFetching==="loader")&&this.cancelMatch(i)})},this.buildLocation=i=>{const r=(f={})=>{var G,F;const h=f._fromLocation||this.pendingBuiltLocation||this.latestLocation,g=this.matchRoutesLightweight(h);f.from;const p=f.unsafeRelative==="path"?h.pathname:f.from??g.fullPath,y=this.resolvePathWithBase(p,"."),b=g.search,v=Object.assign(Object.create(null),g.params),S=f.to?this.resolvePathWithBase(y,`${f.to}`):this.resolvePathWithBase(y,"."),j=f.params===!1||f.params===null?Object.create(null):(f.params??!0)===!0?v:Object.assign(v,_n(f.params,v)),R=this.getMatchedRoutes(S);let M=R.matchedRoutes;if((!R.foundRoute||R.foundRoute.path!=="/"&&R.routeParams["**"])&&this.options.notFoundRoute&&(M=[...M,this.options.notFoundRoute]),Object.keys(j).length>0)for(const st of M){const it=((G=st.options.params)==null?void 0:G.stringify)??st.options.stringifyParams;if(it)try{Object.assign(j,it(j))}catch{}}const C=i.leaveParams?S:xi(g0({path:S,params:j,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let U=b;if(i._includeValidateSearch&&((F=this.options.search)!=null&&F.strict)){const st={};M.forEach(it=>{if(it.options.validateSearch)try{Object.assign(st,mr(it.options.validateSearch,{...st,...U}))}catch{}}),U=st}U=uS({search:U,dest:f,destRoutes:M,_includeValidateSearch:i._includeValidateSearch}),U=Fn(b,U);const P=this.options.stringifySearch(U),K=f.hash===!0?h.hash:f.hash?_n(f.hash,h.hash):void 0,L=K?`#${K}`:"";let X=f.state===!0?h.state:f.state?_n(f.state,h.state):{};X=En(h.state,X);const $=`${C}${P}${L}`;let Z,J,k=!1;if(this.rewrite){const st=new URL($,this.origin),it=gg(this.rewrite,st);Z=st.href.replace(st.origin,""),it.origin!==this.origin?(J=it.href,k=!0):J=it.pathname+it.search+it.hash}else Z=vb($),J=Z;return{publicHref:J,href:Z,pathname:C,search:U,searchStr:P,state:X,hash:K??"",external:k,unmaskOnReload:f.unmaskOnReload}},o=(f={},h)=>{const g=r(f);let p=h?r(h):void 0;if(!p){const y=Object.create(null);if(this.options.routeMasks){const b=Sb(g.pathname,this.processedTree);if(b){Object.assign(y,b.rawParams);const{from:v,params:S,...j}=b.route,R=S===!1||S===null?Object.create(null):(S??!0)===!0?y:Object.assign(y,_n(S,y));h={from:i.from,...j,params:R},p=r(h)}}}return p&&(g.maskedLocation=p),g};return i.mask?o(i,{from:i.from,...i.mask}):o(i)},this.commitLocation=async({viewTransition:i,ignoreBlocker:r,...o})=>{const f=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(b=>{o.state[b]=this.latestLocation.state[b]});const y=cl(o.state,this.latestLocation.state);return p.forEach(b=>{delete o.state[b]}),y},h=Mn(this.latestLocation.href)===Mn(o.href);let g=this.commitLocationPromise;if(this.commitLocationPromise=bs(()=>{g==null||g.resolve(),g=void 0}),h&&f())this.load();else{let{maskedLocation:p,hashScrollIntoView:y,...b}=o;p&&(b={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...b,search:b.searchStr,state:{...b.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(b.unmaskOnReload??this.options.unmaskOnReload??!1)&&(b.state.__tempKey=this.tempLocationKey)),b.state.__hashScrollIntoViewOptions=y??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=i,this.history[o.replace?"replace":"push"](b.publicHref,b.state,{ignoreBlocker:r})}return this.resetNextScroll=o.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:i,resetScroll:r,hashScrollIntoView:o,viewTransition:f,ignoreBlocker:h,href:g,...p}={})=>{if(g){const v=this.history.location.state.__TSR_index,S=br(g,{__TSR_index:i?v:v+1}),j=new URL(S.pathname,this.origin);p.to=jf(this.rewrite,j).pathname,p.search=this.options.parseSearch(S.search),p.hash=S.hash.slice(1)}const y=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=y;const b=this.commitLocation({...y,viewTransition:f,replace:i,resetScroll:r,hashScrollIntoView:o,ignoreBlocker:h});return Promise.resolve().then(()=>{this.pendingBuiltLocation===y&&(this.pendingBuiltLocation=void 0)}),b},this.navigate=async({to:i,reloadDocument:r,href:o,publicHref:f,...h})=>{var p,y;let g=!1;if(o)try{new URL(`${o}`),g=!0}catch{}if(g&&!r&&(r=!0),r){if(i!==void 0||!o){const v=this.buildLocation({to:i,...h});o=o??v.publicHref,f=f??v.publicHref}const b=!g&&f?f:o;if(pr(b,this.protocolAllowlist))return Promise.resolve();if(!h.ignoreBlocker){const v=((y=(p=this.history).getBlockers)==null?void 0:y.call(p))??[];for(const S of v)if(S!=null&&S.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return h.replace?window.location.replace(b):window.location.href=b,Promise.resolve()}return this.buildAndCommitLocation({...h,href:o,to:i,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const i=this.matchRoutes(this.latestLocation),r=this.stores.cachedMatchesSnapshot.state.filter(o=>!i.some(f=>f.id===o.id));this.batch(()=>{this.stores.status.setState(()=>"pending"),this.stores.statusCode.setState(()=>200),this.stores.isLoading.setState(()=>!0),this.stores.location.setState(()=>this.latestLocation),this.stores.setPendingMatches(i),this.stores.setCachedMatches(r)})},this.load=async i=>{let r,o,f;const h=this.stores.resolvedLocation.state??this.stores.location.state;for(f=new Promise(p=>{this.startTransition(async()=>{var y;try{this.beforeLoad();const b=this.latestLocation,v=this.stores.resolvedLocation.state,S=is(b,v);this.stores.redirect.state||this.emit({type:"onBeforeNavigate",...S}),this.emit({type:"onBeforeLoad",...S}),await j0({router:this,sync:i==null?void 0:i.sync,forceStaleReload:h.href===b.href,matches:this.stores.pendingMatchesSnapshot.state,location:b,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{var U,P;let j=null,R=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(J=>!this.stores.pendingMatchStoresById.has(J.id)):null;const $=new Set;for(const J of this.stores.pendingMatchStoresById.values())J.routeId&&$.add(J.routeId);const Z=new Set;for(const J of this.stores.activeMatchStoresById.values())J.routeId&&Z.add(J.routeId);R=L?X.filter(J=>!$.has(J.routeId)):null,M=L?K.filter(J=>!Z.has(J.routeId)):null,C=L?K.filter(J=>Z.has(J.routeId)):X,this.stores.isLoading.setState(()=>!1),this.stores.loadedAt.setState(()=>Date.now()),L&&(this.stores.setActiveMatches(K),this.stores.setPendingMatches([]),this.stores.setCachedMatches([...this.stores.cachedMatchesSnapshot.state,...j.filter(J=>J.status!=="error"&&J.status!=="notFound"&&J.status!=="redirected")]),this.clearExpiredCache())});for(const[K,L]of[[R,"onLeave"],[M,"onEnter"],[C,"onStay"]])if(K)for(const X of K)(P=(U=this.looseRoutesById[X.routeId].options)[L])==null||P.call(U,X)})})}})}catch(b){Me(b)?(r=b,this.navigate({...r.options,replace:!0,ignoreBlocker:!0})):ve(b)&&(o=b);const v=r?r.status:o?404:this.stores.activeMatchesSnapshot.state.some(S=>S.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.setState(()=>v),this.stores.redirect.setState(()=>r)})}this.latestLoadPromise===f&&((y=this.commitLocationPromise)==null||y.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),p()})}),this.latestLoadPromise=f,await f;this.latestLoadPromise&&f!==this.latestLoadPromise;)await this.latestLoadPromise;let g;this.hasNotFoundMatch()?g=404:this.stores.activeMatchesSnapshot.state.some(p=>p.status==="error")&&(g=500),g!==void 0&&this.stores.statusCode.setState(()=>g)},this.startViewTransition=i=>{const r=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,r&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let o;if(typeof r=="object"&&this.isViewTransitionTypesSupported){const f=this.latestLocation,h=this.stores.resolvedLocation.state,g=typeof r.types=="function"?r.types(is(f,h)):r.types;if(g===!1){i();return}o={update:i,types:g}}else o=i;document.startViewTransition(o)}else i()},this.updateMatch=(i,r)=>{this.startTransition(()=>{const o=this.stores.pendingMatchStoresById.get(i);if(o){o.setState(r);return}const f=this.stores.activeMatchStoresById.get(i);if(f){f.setState(r);return}const h=this.stores.cachedMatchStoresById.get(i);if(h){const g=r(h.state);g.status==="redirected"?this.stores.cachedMatchStoresById.delete(i)&&this.stores.cachedMatchesId.setState(p=>p.filter(y=>y!==i)):h.setState(()=>g)}})},this.getMatch=i=>{var r,o,f;return((r=this.stores.cachedMatchStoresById.get(i))==null?void 0:r.state)??((o=this.stores.pendingMatchStoresById.get(i))==null?void 0:o.state)??((f=this.stores.activeMatchStoresById.get(i))==null?void 0:f.state)},this.invalidate=i=>{const r=o=>{var f;return((f=i==null?void 0:i.filter)==null?void 0:f.call(i,o))??!0?{...o,invalid:!0,...i!=null&&i.forcePending||o.status==="error"||o.status==="notFound"?{status:"pending",error:void 0}:void 0}:o};return this.batch(()=>{this.stores.setActiveMatches(this.stores.activeMatchesSnapshot.state.map(r)),this.stores.setCachedMatches(this.stores.cachedMatchesSnapshot.state.map(r)),this.stores.setPendingMatches(this.stores.pendingMatchesSnapshot.state.map(r))}),this.shouldViewTransition=!1,this.load({sync:i==null?void 0:i.sync})},this.getParsedLocationHref=i=>i.publicHref||"/",this.resolveRedirect=i=>{const r=i.headers.get("Location");if(!i.options.href||i.options._builtLocation){const o=i.options._builtLocation??this.buildLocation(i.options),f=this.getParsedLocationHref(o);i.options.href=f,i.headers.set("Location",f)}else if(r)try{const o=new URL(r);if(this.origin&&o.origin===this.origin){const f=o.pathname+o.search+o.hash;i.options.href=f,i.headers.set("Location",f)}}catch{}if(i.options.href&&!i.options._builtLocation&&pr(i.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return i.headers.get("Location")||i.headers.set("Location",i.options.href),i},this.clearCache=i=>{const r=i==null?void 0:i.filter;r!==void 0?this.stores.setCachedMatches(this.stores.cachedMatchesSnapshot.state.filter(o=>!r(o))):this.stores.setCachedMatches([])},this.clearExpiredCache=()=>{const i=Date.now(),r=o=>{const f=this.looseRoutesById[o.routeId];if(!f.options.loader)return!0;const h=(o.preload?f.options.preloadGcTime??this.options.defaultPreloadGcTime:f.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:i-o.updatedAt>=h};this.clearCache({filter:r})},this.loadRouteChunk=Di,this.preloadRoute=async i=>{const r=i._builtLocation??this.buildLocation(i);let o=this.matchRoutes(r,{throwOnError:!0,preload:!0,dest:i});const f=new Set([...this.stores.matchesId.state,...this.stores.pendingMatchesId.state]),h=new Set([...f,...this.stores.cachedMatchesId.state]),g=o.filter(p=>!h.has(p.id));if(g.length){const p=this.stores.cachedMatchesSnapshot.state;this.stores.setCachedMatches([...p,...g])}try{return o=await j0({router:this,matches:o,location:r,preload:!0,updateMatch:(p,y)=>{f.has(p)?o=o.map(b=>b.id===p?y(b):b):this.updateMatch(p,y)}}),o}catch(p){if(Me(p))return p.options.reloadDocument?void 0:await this.preloadRoute({...p.options,_fromLocation:r});ve(p)||console.error(p);return}},this.matchRoute=(i,r)=>{const o={...i,to:i.to?this.resolvePathWithBase(i.from||"",i.to):void 0,params:i.params||{},leaveParams:!0},f=this.buildLocation(o);if(r!=null&&r.pending&&this.stores.status.state!=="pending")return!1;const h=((r==null?void 0:r.pending)===void 0?!this.stores.isLoading.state:r.pending)?this.latestLocation:this.stores.resolvedLocation.state||this.stores.location.state,g=Rb(f.pathname,(r==null?void 0:r.caseSensitive)??!1,(r==null?void 0:r.fuzzy)??!1,h.pathname,this.processedTree);return!g||i.params&&!cl(g.rawParams,i.params,{partial:!0})?!1:(r==null?void 0:r.includeSearch)??!0?cl(h.search,f.search,{partial:!0})?g.rawParams:!1:g.rawParams},this.hasNotFoundMatch=()=>this.stores.activeMatchesSnapshot.state.some(i=>i.status==="notFound"||i.globalNotFound),this.getStoreConfig=s,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...n,caseSensitive:n.caseSensitive??!1,notFoundMode:n.notFoundMode??"fuzzy",stringifySearch:n.stringifySearch??Yb,parseSearch:n.parseSearch??Qb,protocolAllowlist:n.protocolAllowlist??gb}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.state}setRoutes({routesById:n,routesByPath:s,processedTree:i}){this.routesById=n,this.routesByPath=s,this.processedTree=i;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}get looseRoutesById(){return this.routesById}getParentContext(n){return n!=null&&n.id?n.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(n,s){var v,S;const i=this.getMatchedRoutes(n.pathname),{foundRoute:r,routeParams:o,parsedParams:f}=i;let{matchedRoutes:h}=i,g=!1;(r?r.path!=="/"&&o["**"]:Mn(n.pathname))&&(this.options.notFoundRoute?h=[...h,this.options.notFoundRoute]:g=!0);const p=g?cS(this.options.notFoundMode,h):void 0,y=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 R=h[j],M=y[j-1];let C,U,P;{const nt=(M==null?void 0:M.search)??n.search,D=(M==null?void 0:M._strictSearch)??void 0;try{const V=mr(R.options.validateSearch,{...nt})??void 0;C={...nt,...V},U={...D,...V},P=void 0}catch(V){let at=V;if(V instanceof Sr||(at=new Sr(V.message,{cause:V})),s!=null&&s.throwOnError)throw at;C=nt,U={},P=at}}const K=((S=(v=R.options).loaderDeps)==null?void 0:S.call(v,{search:C}))??"",L=K?JSON.stringify(K):"",{interpolatedPath:X,usedParams:$}=g0({path:R.fullPath,params:o,decoder:this.pathParamsDecoder,server:this.isServer}),Z=R.id+X+L,J=this.getMatch(Z),k=b.get(R.id),G=(J==null?void 0:J._strictParams)??$;let F;if(!J)try{M0(R,$,f,G)}catch(nt){if(ve(nt)||Me(nt)?F=nt:F=new lS(nt.message,{cause:nt}),s!=null&&s.throwOnError)throw F}Object.assign(o,G);const st=k?"stay":"enter";let it;if(J)it={...J,cause:st,params:(k==null?void 0:k.params)??o,_strictParams:G,search:Fn(k?k.search:J.search,C),_strictSearch:U};else{const nt=R.options.loader||R.options.beforeLoad||R.lazyFn||bg(R)?"pending":"success";it={id:Z,ssr:R.options.ssr,index:j,routeId:R.id,params:(k==null?void 0:k.params)??o,_strictParams:G,pathname:X,updatedAt:Date.now(),search:k?Fn(k.search,C):C,_strictSearch:U,searchError:void 0,status:nt,isFetching:!1,error:void 0,paramsError:F,__routeContext:void 0,_nonReactive:{loadPromise:bs()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:st,loaderDeps:k?En(k.loaderDeps,K):K,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:R.options.staticData||{},fullPath:R.fullPath}}s!=null&&s.preload||(it.globalNotFound=p===R.id),it.searchError=P;const ot=this.getParentContext(M);it.context={...ot,...it.__routeContext,...it.__beforeLoadContext},y[j]=it}for(let j=0;j<y.length;j++){const R=y[j],M=this.looseRoutesById[R.routeId],C=this.getMatch(R.id),U=b.get(R.routeId);if(R.params=U?Fn(U.params,o):o,!C){const P=y[j-1],K=this.getParentContext(P);if(M.options.context){const L={deps:R.loaderDeps,params:R.params,context:K??{},location:n,navigate:X=>this.navigate({...X,_fromLocation:n}),buildLocation:this.buildLocation,cause:R.cause,abortController:R.abortController,preload:!!R.preload,matches:y,routeId:M.id};R.__routeContext=M.options.context(L)??void 0}R.context={...K,...R.__routeContext,...R.__beforeLoadContext}}}return y}matchRoutesLightweight(n){var b;const{matchedRoutes:s,routeParams:i,parsedParams:r}=this.getMatchedRoutes(n.pathname),o=Ai(s),f={...n.search};for(const v of s)try{Object.assign(f,mr(v.options.validateSearch,f))}catch{}const h=Ai(this.stores.matchesId.state),g=h&&((b=this.stores.activeMatchStoresById.get(h))==null?void 0:b.state),p=g&&g.routeId===o.id&&g.pathname===n.pathname;let y;if(p)y=g.params;else{const v=Object.assign(Object.create(null),i);for(const S of s)try{M0(S,i,r??{},v)}catch{}y=v}return{matchedRoutes:s,fullPath:o.fullPath,search:f,params:y}}},Sr=class extends Error{},lS=class extends Error{};function sS(n){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:n,matches:[],statusCode:200}}function mr(n,s){if(n==null)return{};if("~standard"in n){const i=n["~standard"].validate(s);if(i instanceof Promise)throw new Sr("Async validation not supported");if(i.issues)throw new Sr(JSON.stringify(i.issues,void 0,2),{cause:i});return i.value}return"parse"in n?n.parse(s):typeof n=="function"?n(s):{}}function iS({pathname:n,routesById:s,processedTree:i}){const r=Object.create(null),o=Mn(n);let f,h;const g=jb(o,i,!0);return g&&(f=g.route,Object.assign(r,g.rawParams),h=Object.assign(Object.create(null),g.parsedParams)),{matchedRoutes:(g==null?void 0:g.branch)||[s.__root__],routeParams:r,foundRoute:f,parsedParams:h}}function uS({search:n,dest:s,destRoutes:i,_includeValidateSearch:r}){return rS(i)(n,s,r??!1)}function rS(n){var o;const s={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const f of n){if("search"in f.options)(o=f.options.search)!=null&&o.middlewares&&s.middlewares.push(...f.options.search.middlewares);else if(f.options.preSearchFilters||f.options.postSearchFilters){const h=({search:g,next:p})=>{let y=g;"preSearchFilters"in f.options&&f.options.preSearchFilters&&(y=f.options.preSearchFilters.reduce((v,S)=>S(v),g));const b=p(y);return"postSearchFilters"in f.options&&f.options.postSearchFilters?f.options.postSearchFilters.reduce((v,S)=>S(v),b):b};s.middlewares.push(h)}if(f.options.validateSearch){const h=({search:g,next:p})=>{const y=p(g);if(!s._includeValidateSearch)return y;try{return{...y,...mr(f.options.validateSearch,y)??void 0}}catch{return y}};s.middlewares.push(h)}}const i=({search:f})=>{const h=s.dest;return h.search?h.search===!0?f:_n(h.search,f):{}};s.middlewares.push(i);const r=(f,h,g)=>{if(f>=g.length)return h;const p=g[f];return p({search:h,next:b=>r(f+1,b,g)})};return function(h,g,p){return s.dest=g,s._includeValidateSearch=p,r(0,h,s.middlewares)}}function cS(n,s){if(n!=="root")for(let i=s.length-1;i>=0;i--){const r=s[i];if(r.children)return r.id}return ol}function M0(n,s,i,r){var f;const o=((f=n.options.params)==null?void 0:f.parse)??n.options.parseParams;if(o)if(n.options.skipRouteOnParseError)for(const h in s)h in i&&(r[h]=i[h]);else{const h=o(r);Object.assign(r,h)}}var oS="Error preloading route! ☝️",Sg=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(n){if(this.init=s=>{var p,y;this.originalIndex=s.originalIndex;const i=this.options,r=!(i!=null&&i.path)&&!(i!=null&&i.id);this.parentRoute=(y=(p=this.options).getParentRoute)==null?void 0:y.call(p),r?this._path=ol:this.parentRoute||Ba();let o=r?ol:i==null?void 0:i.path;o&&o!=="/"&&(o=mg(o));const f=(i==null?void 0:i.id)||o;let h=r?ol:dr([this.parentRoute.id==="__root__"?"":this.parentRoute.id,f]);o==="__root__"&&(o="/"),h!=="__root__"&&(h=dr(["/",h]));const g=h==="__root__"?"/":dr([this.parentRoute.fullPath,o]);this._path=o,this._id=h,this._fullPath=g,this._to=Mn(g)},this.addChildren=s=>this._addFileChildren(s),this._addFileChildren=s=>(Array.isArray(s)&&(this.children=s),typeof s=="object"&&s!==null&&(this.children=Object.values(s)),this),this._addFileTypes=()=>this,this.updateLoader=s=>(Object.assign(this.options,s),this),this.update=s=>(Object.assign(this.options,s),this),this.lazy=s=>(this.lazyFn=s,this),this.redirect=s=>Xb({from:this.fullPath,...s}),this.options=n||{},this.isRoot=!(n!=null&&n.getParentRoute),n!=null&&n.id&&(n!=null&&n.path))throw new Error("Route cannot have both an 'id' and a 'path' option.")}},fS=class extends Sg{constructor(n){super(n)}};function dS(n){if(typeof document<"u"&&document.querySelector){const s=n.stores.location.state,i=s.state.__hashScrollIntoViewOptions??!0;if(i&&s.hash!==""){const r=document.getElementById(s.hash);r&&r.scrollIntoView(i)}}}function qf(n){const s=n.errorComponent??Qf;return m.jsx(hS,{getResetKey:n.getResetKey,onCatch:n.onCatch,children:({error:i,reset:r})=>i?W.createElement(s,{error:i,reset:r}):n.children})}var hS=class extends W.Component{constructor(...n){super(...n),this.state={error:null}}static getDerivedStateFromProps(n){return{resetKey:n.getResetKey()}}static getDerivedStateFromError(n){return{error:n}}reset(){this.setState({error:null})}componentDidUpdate(n,s){s.error&&s.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(n,s){this.props.onCatch&&this.props.onCatch(n,s)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}};function Qf({error:n}){const[s,i]=W.useState(!1);return m.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[m.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[m.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),m.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>i(r=>!r),children:s?"Hide Error":"Show Error"})]}),m.jsx("div",{style:{height:".25rem"}}),s?m.jsx("div",{children:m.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:n.message?m.jsx("code",{children:n.message}):null})}):null]})}function mS({children:n,fallback:s=null}){return Rg()?m.jsx(Ti.Fragment,{children:n}):m.jsx(Ti.Fragment,{children:s})}function Rg(){return Ti.useSyncExternalStore(yS,()=>!0,()=>!1)}function yS(){return()=>{}}var jg=W.createContext(null);function pe(n){return W.useContext(jg)}var Tr=W.createContext(void 0),gS=W.createContext(void 0),Gt=(n=>(n[n.None=0]="None",n[n.Mutable=1]="Mutable",n[n.Watching=2]="Watching",n[n.RecursedCheck=4]="RecursedCheck",n[n.Recursed=8]="Recursed",n[n.Dirty=16]="Dirty",n[n.Pending=32]="Pending",n))(Gt||{});function vS({update:n,notify:s,unwatched:i}){return{link:r,unlink:o,propagate:f,checkDirty:h,shallowPropagate:g};function r(y,b,v){const S=b.depsTail;if(S!==void 0&&S.dep===y)return;const j=S!==void 0?S.nextDep:b.deps;if(j!==void 0&&j.dep===y){j.version=v,b.depsTail=j;return}const R=y.subsTail;if(R!==void 0&&R.version===v&&R.sub===b)return;const M=b.depsTail=y.subsTail={version:v,dep:y,sub:b,prevDep:S,nextDep:j,prevSub:R,nextSub:void 0};j!==void 0&&(j.prevDep=M),S!==void 0?S.nextDep=M:b.deps=M,R!==void 0?R.nextSub=M:y.subs=M}function o(y,b=y.sub){const v=y.dep,S=y.prevDep,j=y.nextDep,R=y.nextSub,M=y.prevSub;return j!==void 0?j.prevDep=S:b.depsTail=S,S!==void 0?S.nextDep=j:b.deps=j,R!==void 0?R.prevSub=M:v.subsTail=M,M!==void 0?M.nextSub=R:(v.subs=R)===void 0&&i(v),j}function f(y){let b=y.nextSub,v;t:do{const S=y.sub;let j=S.flags;if(j&60?j&12?j&4?!(j&48)&&p(y,S)?(S.flags=j|40,j&=1):j=0:S.flags=j&-9|32:j=0:S.flags=j|32,j&2&&s(S),j&1){const R=S.subs;if(R!==void 0){const M=(y=R).nextSub;M!==void 0&&(v={value:b,prev:v},b=M);continue}}if((y=b)!==void 0){b=y.nextSub;continue}for(;v!==void 0;)if(y=v.value,v=v.prev,y!==void 0){b=y.nextSub;continue t}break}while(!0)}function h(y,b){let v,S=0,j=!1;t:do{const R=y.dep,M=R.flags;if(b.flags&16)j=!0;else if((M&17)===17){if(n(R)){const C=R.subs;C.nextSub!==void 0&&g(C),j=!0}}else if((M&33)===33){(y.nextSub!==void 0||y.prevSub!==void 0)&&(v={value:y,prev:v}),y=R.deps,b=R,++S;continue}if(!j){const C=y.nextDep;if(C!==void 0){y=C;continue}}for(;S--;){const C=b.subs,U=C.nextSub!==void 0;if(U?(y=v.value,v=v.prev):y=C,j){if(n(b)){U&&g(C),b=y.sub;continue}j=!1}else b.flags&=-33;b=y.sub;const P=y.nextDep;if(P!==void 0){y=P;continue t}}return j}while(!0)}function g(y){do{const b=y.sub,v=b.flags;(v&48)===32&&(b.flags=v|16,(v&6)===2&&s(b))}while((y=y.nextSub)!==void 0)}function p(y,b){let v=b.depsTail;for(;v!==void 0;){if(v===y)return!0;v=v.prevDep}return!1}}function Yf(n,s,i){var f,h,g;const r=typeof n=="object",o=r?n:void 0;return{next:(f=r?n.next:n)==null?void 0:f.bind(o),error:(h=r?n.error:s)==null?void 0:h.bind(o),complete:(g=r?n.complete:i)==null?void 0:g.bind(o)}}const Ef=[];let yr=0;const{link:C0,unlink:pS,propagate:xS,checkDirty:_g,shallowPropagate:A0}=vS({update(n){return n._update()},notify(n){Ef[Nf++]=n,n.flags&=~Gt.Watching},unwatched(n){n.depsTail!==void 0&&(n.depsTail=void 0,n.flags=Gt.Mutable|Gt.Dirty,Rr(n))}});let cr=0,Nf=0,ra,Tf=0;function Eg(n){try{++Tf,n()}finally{--Tf||Ng()}}function Rr(n){const s=n.depsTail;let i=s!==void 0?s.nextDep:n.deps;for(;i!==void 0;)i=pS(i,n)}function Ng(){if(!(Tf>0)){for(;cr<Nf;){const n=Ef[cr];Ef[cr++]=void 0,n.notify()}cr=0,Nf=0}}function Tg(n,s){const i=typeof n=="function",r=n,o={_snapshot:i?void 0:n,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:i?Gt.None:Gt.Mutable,get(){return ra!==void 0&&C0(o,ra,yr),o._snapshot},subscribe(f){const h=Yf(f),g={current:!1},p=bS(()=>{var y;o.get(),g.current?(y=h.next)==null||y.call(h,o._snapshot):g.current=!0});return{unsubscribe:()=>{p.stop()}}},_update(f){const h=ra,g=Object.is;if(i)ra=o,++yr,o.depsTail=void 0;else if(f===void 0)return!1;i&&(o.flags=Gt.Mutable|Gt.RecursedCheck);try{const p=o._snapshot,y=typeof f=="function"?f(p):f===void 0&&i?r(p):f;return p===void 0||!g(p,y)?(o._snapshot=y,!0):!1}finally{ra=h,i&&(o.flags&=~Gt.RecursedCheck),Rr(o)}}};return i?(o.flags=Gt.Mutable|Gt.Dirty,o.get=function(){const f=o.flags;if(f&Gt.Dirty||f&Gt.Pending&&_g(o.deps,o)){if(o._update()){const h=o.subs;h!==void 0&&A0(h)}}else f&Gt.Pending&&(o.flags=f&~Gt.Pending);return ra!==void 0&&C0(o,ra,yr),o._snapshot}):o.set=function(f){if(o._update(f)){const h=o.subs;h!==void 0&&(xS(h),A0(h),Ng())}},o}function bS(n){const s=()=>{const r=ra;ra=i,++yr,i.depsTail=void 0,i.flags=Gt.Watching|Gt.RecursedCheck;try{return n()}finally{ra=r,i.flags&=~Gt.RecursedCheck,Rr(i)}},i={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Gt.Watching|Gt.RecursedCheck,notify(){const r=this.flags;r&Gt.Dirty||r&Gt.Pending&&_g(this.deps,this)?s():this.flags=Gt.Watching},stop(){this.flags=Gt.None,this.depsTail=void 0,Rr(this)}};return s(),i}class SS{constructor(s){this.atom=Tg(s)}setState(s){this.atom.set(s)}get state(){return this.atom.get()}get(){return this.state}subscribe(s){return this.atom.subscribe(Yf(s))}}class RS{constructor(s){this.atom=Tg(s)}get state(){return this.atom.get()}get(){return this.state}subscribe(s){return this.atom.subscribe(Yf(s))}}function O0(n){return typeof n=="function"?new RS(n):new SS(n)}var nf={exports:{}},lf={},sf={exports:{}},uf={};/**
|
|
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 z0;function jS(){if(z0)return uf;z0=1;var n=qi();function s(v,S){return v===S&&(v!==0||1/v===1/S)||v!==v&&S!==S}var i=typeof Object.is=="function"?Object.is:s,r=n.useState,o=n.useEffect,f=n.useLayoutEffect,h=n.useDebugValue;function g(v,S){var j=S(),R=r({inst:{value:j,getSnapshot:S}}),M=R[0].inst,C=R[1];return f(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 y(v,S){return S()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?y:g;return uf.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:b,uf}var D0;function _S(){return D0||(D0=1,sf.exports=jS()),sf.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 w0;function ES(){if(w0)return lf;w0=1;var n=qi(),s=_S();function i(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var r=typeof Object.is=="function"?Object.is:i,o=s.useSyncExternalStore,f=n.useRef,h=n.useEffect,g=n.useMemo,p=n.useDebugValue;return lf.useSyncExternalStoreWithSelector=function(y,b,v,S,j){var R=f(null);if(R.current===null){var M={hasValue:!1,value:null};R.current=M}else M=R.current;R=g(function(){function U($){if(!P){if(P=!0,K=$,$=S($),j!==void 0&&M.hasValue){var Z=M.value;if(j(Z,$))return L=Z}return L=$}if(Z=L,r(K,$))return Z;var J=S($);return j!==void 0&&j(Z,J)?(K=$,Z):(K=$,L=J)}var P=!1,K,L,X=v===void 0?null:v;return[function(){return U(b())},X===null?void 0:function(){return U(X())}]},[b,v,S,j]);var C=o(y,R[0],R[1]);return h(function(){M.hasValue=!0,M.value=C},[C]),p(C),C},lf}var U0;function NS(){return U0||(U0=1,nf.exports=ES()),nf.exports}var TS=NS();function MS(n,s){return n===s}function he(n,s,i=MS){const r=W.useCallback(h=>{if(!n)return()=>{};const{unsubscribe:g}=n.subscribe(h);return g},[n]),o=W.useCallback(()=>n==null?void 0:n.get(),[n]);return TS.useSyncExternalStoreWithSelector(r,o,o,s,i)}var CS={state:void 0,get:()=>{},subscribe:()=>()=>{}};function hl(n){const s=pe(),i=W.useContext(n.from?gS:Tr),r=n.from??i,o=r?n.from?s.stores.getMatchStoreByRouteId(r):s.stores.activeMatchStoresById.get(r):void 0,f=W.useRef(void 0);return he(o??CS,h=>{if((n.shouldThrow??!0)&&!h&&Ba(),h===void 0)return;const g=n.select?n.select(h):h;if(n.structuralSharing??s.options.defaultStructuralSharing){const p=En(f.current,g);return f.current=p,p}return g})}function Mg(n){return hl({from:n.from,strict:n.strict,structuralSharing:n.structuralSharing,select:s=>n.select?n.select(s.loaderData):s.loaderData})}function Cg(n){const{select:s,...i}=n;return hl({...i,select:r=>s?s(r.loaderDeps):r.loaderDeps})}function Ag(n){return hl({from:n.from,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,strict:n.strict,select:s=>{const i=n.strict===!1?s.params:s._strictParams;return n.select?n.select(i):i}})}function Og(n){return hl({from:n.from,strict:n.strict,shouldThrow:n.shouldThrow,structuralSharing:n.structuralSharing,select:s=>n.select?n.select(s.search):s.search})}function Gf(n){const s=pe();return W.useCallback(i=>s.navigate({...i,from:i.from??(n==null?void 0:n.from)}),[n==null?void 0:n.from,s])}function zg(n){return hl({...n,select:s=>n.select?n.select(s.context):s.context})}var AS=I0();function OS(n,s){const i=pe(),r=fb(s),{activeProps:o,inactiveProps:f,activeOptions:h,to:g,preload:p,preloadDelay:y,hashScrollIntoView:b,replace:v,startTransition:S,resetScroll:j,viewTransition:R,children:M,target:C,disabled:U,style:P,className:K,onClick:L,onBlur:X,onFocus:$,onMouseEnter:Z,onMouseLeave:J,onTouchStart:k,ignoreBlocker:G,params:F,search:st,hash:it,state:ot,mask:nt,reloadDocument:D,unsafeRelative:V,from:at,_fromLocation:yt,...ft}=n,N=Rg(),Q=W.useMemo(()=>n,[i,n.from,n._fromLocation,n.hash,n.to,n.search,n.params,n.state,n.mask,n.unsafeRelative]),I=he(i.stores.location,St=>St,(St,oe)=>St.href===oe.href),tt=W.useMemo(()=>{const St={_fromLocation:I,...Q};return i.buildLocation(St)},[i,I,Q]),ht=tt.maskedLocation?tt.maskedLocation.publicHref:tt.publicHref,xt=tt.maskedLocation?tt.maskedLocation.external:tt.external,bt=W.useMemo(()=>BS(ht,xt,i.history,U),[U,xt,ht,i.history]),Jt=W.useMemo(()=>{if(bt!=null&&bt.external)return pr(bt.href,i.protocolAllowlist)?void 0:bt.href;if(!HS(g)&&!(typeof g!="string"||g.indexOf(":")===-1))try{return new URL(g),pr(g,i.protocolAllowlist)?void 0:g}catch{}},[g,bt,i.protocolAllowlist]),Ht=W.useMemo(()=>{if(Jt)return!1;if(h!=null&&h.exact){if(!Cb(I.pathname,tt.pathname,i.basepath))return!1}else{const St=xr(I.pathname,i.basepath),oe=xr(tt.pathname,i.basepath);if(!(St.startsWith(oe)&&(St.length===oe.length||St[oe.length]==="/")))return!1}return((h==null?void 0:h.includeSearch)??!0)&&!cl(I.search,tt.search,{partial:!(h!=null&&h.exact),ignoreUndefined:!(h!=null&&h.explicitUndefined)})?!1:h!=null&&h.includeHash?N&&I.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,I,Jt,N,tt.hash,tt.pathname,tt.search,i.basepath]),aa=Ht?_n(o,{})??zS:rf,da=Ht?rf:_n(f,{})??rf,yl=[K,aa.className,da.className].filter(Boolean).join(" "),js=(P||aa.style||da.style)&&{...P,...aa.style,...da.style},[ha,gl]=W.useState(!1),vl=W.useRef(!1),Qa=n.reloadDocument||Jt?!1:p??i.options.defaultPreload,pl=y??i.options.defaultPreloadDelay??0,$e=W.useCallback(()=>{i.preloadRoute({...Q,_builtLocation:tt}).catch(St=>{console.warn(St),console.warn(oS)})},[i,Q,tt]);ob(r,W.useCallback(St=>{St!=null&&St.isIntersecting&&$e()},[$e]),LS,{disabled:!!U||Qa!=="viewport"}),W.useEffect(()=>{vl.current||!U&&Qa==="render"&&($e(),vl.current=!0)},[U,$e,Qa]);const _s=St=>{const oe=St.currentTarget.getAttribute("target"),na=C!==void 0?C:oe;if(!U&&!qS(St)&&!St.defaultPrevented&&(!na||na==="_self")&&St.button===0){St.preventDefault(),AS.flushSync(()=>{gl(!0)});const Gi=i.subscribe("onResolved",()=>{Gi(),gl(!1)});i.navigate({...Q,replace:v,resetScroll:j,hashScrollIntoView:b,startTransition:S,viewTransition:R,ignoreBlocker:G})}};if(Jt)return{...ft,ref:r,href:Jt,...M&&{children:M},...C&&{target:C},...U&&{disabled:U},...P&&{style:P},...K&&{className:K},...L&&{onClick:L},...X&&{onBlur:X},...$&&{onFocus:$},...Z&&{onMouseEnter:Z},...J&&{onMouseLeave:J},...k&&{onTouchStart:k}};const xl=St=>{if(U||Qa!=="intent")return;if(!pl){$e();return}const oe=St.currentTarget;if(ji.has(oe))return;const na=setTimeout(()=>{ji.delete(oe),$e()},pl);ji.set(oe,na)},Mr=St=>{U||Qa!=="intent"||$e()},Yi=St=>{if(U||!Qa||!pl)return;const oe=St.currentTarget,na=ji.get(oe);na&&(clearTimeout(na),ji.delete(oe))};return{...ft,...aa,...da,href:bt==null?void 0:bt.href,ref:r,onClick:ls([L,_s]),onBlur:ls([X,Yi]),onFocus:ls([$,xl]),onMouseEnter:ls([Z,xl]),onMouseLeave:ls([J,Yi]),onTouchStart:ls([k,Mr]),disabled:!!U,target:C,...js&&{style:js},...yl&&{className:yl},...U&&DS,...Ht&&wS,...N&&ha&&US}}var rf={},zS={className:"active"},DS={role:"link","aria-disabled":!0},wS={"data-status":"active","aria-current":"page"},US={"data-transitioning":"transitioning"},ji=new WeakMap,LS={rootMargin:"100px"},ls=n=>s=>{for(const i of n)if(i){if(s.defaultPrevented)return;i(s)}};function BS(n,s,i,r){if(!r)return s?{href:n,external:!0}:{href:i.createHref(n)||"/",external:!1}}function HS(n){if(typeof n!="string")return!1;const s=n.charCodeAt(0);return s===47?n.charCodeAt(1)!==47:s===46}var Vt=W.forwardRef((n,s)=>{const{_asChild:i,...r}=n,{type:o,...f}=OS(r,s),h=typeof r.children=="function"?r.children({isActive:f["data-status"]==="active"}):r.children;if(!i){const{disabled:g,...p}=f;return W.createElement("a",p,h)}return W.createElement(i,f,h)});function qS(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}var QS=class extends Sg{constructor(s){super(s),this.useMatch=i=>hl({select:i==null?void 0:i.select,from:this.id,structuralSharing:i==null?void 0:i.structuralSharing}),this.useRouteContext=i=>zg({...i,from:this.id}),this.useSearch=i=>Og({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useParams=i=>Ag({select:i==null?void 0:i.select,structuralSharing:i==null?void 0:i.structuralSharing,from:this.id}),this.useLoaderDeps=i=>Cg({...i,from:this.id}),this.useLoaderData=i=>Mg({...i,from:this.id}),this.useNavigate=()=>Gf({from:this.fullPath}),this.Link=Ti.forwardRef((i,r)=>m.jsx(Vt,{ref:r,from:this.fullPath,...i}))}};function YS(n){return new QS(n)}var GS=class extends fS{constructor(n){super(n),this.useMatch=s=>hl({select:s==null?void 0:s.select,from:this.id,structuralSharing:s==null?void 0:s.structuralSharing}),this.useRouteContext=s=>zg({...s,from:this.id}),this.useSearch=s=>Og({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useParams=s=>Ag({select:s==null?void 0:s.select,structuralSharing:s==null?void 0:s.structuralSharing,from:this.id}),this.useLoaderDeps=s=>Cg({...s,from:this.id}),this.useLoaderData=s=>Mg({...s,from:this.id}),this.useNavigate=()=>Gf({from:this.fullPath}),this.Link=Ti.forwardRef((s,i)=>m.jsx(Vt,{ref:i,from:this.fullPath,...s}))}};function VS(n){return new GS(n)}function Rs(n){return typeof n=="object"?new L0(n,{silent:!0}).createRoute(n):new L0(n,{silent:!0}).createRoute}var L0=class{constructor(n,s){this.path=n,this.createRoute=i=>{const r=YS(i);return r.isRoot=!1,r},this.silent=s==null?void 0:s.silent}};function XS(n){const s=pe(),i=`not-found-${he(s.stores.location,r=>r.pathname)}-${he(s.stores.status,r=>r)}`;return m.jsx(qf,{getResetKey:()=>i,onCatch:(r,o)=>{var f;if(ve(r))(f=n.onCatch)==null||f.call(n,r,o);else throw r},errorComponent:({error:r})=>{var o;if(ve(r))return(o=n.fallback)==null?void 0:o.call(n,r);throw r},children:n.children})}function KS(){return m.jsx("p",{children:"Not Found"})}function ss(n){return m.jsx(m.Fragment,{children:n.children})}function Dg(n,s,i){return s.options.notFoundComponent?m.jsx(s.options.notFoundComponent,{...i}):n.options.defaultNotFoundComponent?m.jsx(n.options.defaultNotFoundComponent,{...i}):m.jsx(KS,{})}function ZS(n){return null}function JS(){return ZS(pe()),null}var wg=W.memo(function({matchId:s}){const i=pe(),r=i.stores.activeMatchStoresById.get(s);r||Ba();const o=he(i.stores.loadedAt,h=>h),f=he(r,h=>h);return m.jsx(PS,{router:i,matchId:s,resetKey:o,matchState:W.useMemo(()=>{var p;const h=f.routeId,g=(p=i.routesById[h].parentRoute)==null?void 0:p.id;return{routeId:h,ssr:f.ssr,_displayPending:f._displayPending,parentRouteId:g}},[f._displayPending,f.routeId,f.ssr,i.routesById])})});function PS({router:n,matchId:s,resetKey:i,matchState:r}){var R,M;const o=n.routesById[r.routeId],f=o.options.pendingComponent??n.options.defaultPendingComponent,h=f?m.jsx(f,{}):null,g=o.options.errorComponent??n.options.defaultErrorComponent,p=o.options.onCatch??n.options.defaultOnCatch,y=o.isRoot?o.options.notFoundComponent??((R=n.options.notFoundRoute)==null?void 0:R.options.component):o.options.notFoundComponent,b=r.ssr===!1||r.ssr==="data-only",v=(!o.isRoot||o.options.wrapInSuspense||b)&&(o.options.wrapInSuspense??f??(((M=o.options.errorComponent)==null?void 0:M.preload)||b))?W.Suspense:ss,S=g?qf:ss,j=y?XS:ss;return m.jsxs(o.isRoot?o.options.shellComponent??ss:ss,{children:[m.jsx(Tr.Provider,{value:s,children:m.jsx(v,{fallback:h,children:m.jsx(S,{getResetKey:()=>i,errorComponent:g||Qf,onCatch:(C,U)=>{if(ve(C))throw C;p==null||p(C,U)},children:m.jsx(j,{fallback:C=>{if(!y||C.routeId&&C.routeId!==r.routeId||!C.routeId&&!o.isRoot)throw C;return W.createElement(y,C)},children:b||r._displayPending?m.jsx(mS,{fallback:h,children:m.jsx(B0,{matchId:s})}):m.jsx(B0,{matchId:s})})})})}),r.parentRouteId===ol?m.jsxs(m.Fragment,{children:[m.jsx(kS,{resetKey:i}),n.options.scrollRestoration&&fg?m.jsx(JS,{}):null]}):null]})}function kS({resetKey:n}){const s=pe(),i=W.useRef(void 0);return Ni(()=>{const r=s.latestLocation.href;(i.current===void 0||i.current!==r)&&(s.emit({type:"onRendered",...is(s.stores.location.state,s.stores.resolvedLocation.state)}),i.current=r)},[s.latestLocation.state.__TSR_key,n,s]),null}var B0=W.memo(function({matchId:s}){var y,b,v,S;const i=pe(),r=i.stores.activeMatchStoresById.get(s);r||Ba();const o=he(r,j=>j),f=o.routeId,h=i.routesById[f],g=W.useMemo(()=>{var R;const j=(R=i.routesById[f].options.remountDeps??i.options.defaultRemountDeps)==null?void 0:R({routeId:f,loaderDeps:o.loaderDeps,params:o._strictParams,search:o._strictSearch});return j?JSON.stringify(j):void 0},[f,o.loaderDeps,o._strictParams,o._strictSearch,i.options.defaultRemountDeps,i.routesById]),p=W.useMemo(()=>{const j=h.options.component??i.options.defaultComponent;return j?m.jsx(j,{},g):m.jsx(Ug,{})},[g,h.options.component,i.options.defaultComponent]);if(o._displayPending)throw(y=i.getMatch(o.id))==null?void 0:y._nonReactive.displayPendingPromise;if(o._forcePending)throw(b=i.getMatch(o.id))==null?void 0:b._nonReactive.minPendingPromise;if(o.status==="pending"){const j=h.options.pendingMinMs??i.options.defaultPendingMinMs;if(j){const R=i.getMatch(o.id);if(R&&!R._nonReactive.minPendingPromise){const M=bs();R._nonReactive.minPendingPromise=M,setTimeout(()=>{M.resolve(),R._nonReactive.minPendingPromise=void 0},j)}}throw(v=i.getMatch(o.id))==null?void 0:v._nonReactive.loadPromise}if(o.status==="notFound")return ve(o.error)||Ba(),Dg(i,h,o.error);if(o.status==="redirected")throw Me(o.error)||Ba(),(S=i.getMatch(o.id))==null?void 0:S._nonReactive.loadPromise;if(o.status==="error")throw o.error;return p}),Ug=W.memo(function(){const s=pe(),i=W.useContext(Tr);let r,o=!1,f;{const y=i?s.stores.activeMatchStoresById.get(i):void 0;[r,o]=he(y,b=>[b==null?void 0:b.routeId,(b==null?void 0:b.globalNotFound)??!1]),f=he(s.stores.matchesId,b=>b[b.findIndex(v=>v===i)+1])}const h=r?s.routesById[r]:void 0,g=s.options.defaultPendingComponent?m.jsx(s.options.defaultPendingComponent,{}):null;if(o)return h||Ba(),Dg(s,h,void 0);if(!f)return null;const p=m.jsx(wg,{matchId:f});return r===ol?m.jsx(W.Suspense,{fallback:g,children:p}):p});function FS(){const n=pe(),s=W.useRef({router:n,mounted:!1}),[i,r]=W.useState(!1),o=he(n.stores.isLoading,v=>v),f=he(n.stores.hasPendingMatches,v=>v),h=ko(o),g=o||i||f,p=ko(g),y=o||f,b=ko(y);return n.startTransition=v=>{r(!0),W.startTransition(()=>{v(),r(!1)})},W.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 Mn(n.latestLocation.publicHref)!==Mn(S.publicHref)&&n.commitLocation({...S,replace:!0}),()=>{v()}},[n,n.history]),Ni(()=>{if(typeof window<"u"&&n.ssr||s.current.router===n&&s.current.mounted)return;s.current={router:n,mounted:!0},(async()=>{try{await n.load()}catch(S){console.error(S)}})()},[n]),Ni(()=>{h&&!o&&n.emit({type:"onLoad",...is(n.stores.location.state,n.stores.resolvedLocation.state)})},[h,n,o]),Ni(()=>{b&&!y&&n.emit({type:"onBeforeRouteMount",...is(n.stores.location.state,n.stores.resolvedLocation.state)})},[y,b,n]),Ni(()=>{if(p&&!g){const v=is(n.stores.location.state,n.stores.resolvedLocation.state);n.emit({type:"onResolved",...v}),Eg(()=>{n.stores.status.setState(()=>"idle"),n.stores.resolvedLocation.setState(()=>n.stores.location.state)}),v.hrefChanged&&dS(n)}},[g,p,n]),null}function $S(){const n=pe(),s=n.routesById[ol].options.pendingComponent??n.options.defaultPendingComponent,i=s?m.jsx(s,{}):null,r=m.jsxs(typeof document<"u"&&n.ssr?ss:W.Suspense,{fallback:i,children:[m.jsx(FS,{}),m.jsx(IS,{})]});return n.options.InnerWrap?m.jsx(n.options.InnerWrap,{children:r}):r}function IS(){const n=pe(),s=he(n.stores.firstMatchId,o=>o),i=he(n.stores.loadedAt,o=>o),r=s?m.jsx(wg,{matchId:s}):null;return m.jsx(Tr.Provider,{value:s,children:n.options.disableGlobalCatchBoundary?r:m.jsx(qf,{getResetKey:()=>i,errorComponent:Qf,onCatch:void 0,children:r})})}function Lg(){const n=pe();return he(n.stores.matchRouteReactivity,s=>s),W.useCallback(s=>{const{pending:i,caseSensitive:r,fuzzy:o,includeSearch:f,...h}=s;return n.matchRoute(h,{pending:i,caseSensitive:r,fuzzy:o,includeSearch:f})},[n])}function WS(n){const s=pe(),i=W.useRef(void 0);return he(s.stores.activeMatchesSnapshot,r=>{const o=r;if(s.options.defaultStructuralSharing){const f=En(i.current,o);return i.current=f,f}return o})}var t1=n=>({createMutableStore:O0,createReadonlyStore:O0,batch:Eg}),e1=n=>new a1(n),a1=class extends nS{constructor(n){super(n,t1)}};function n1({router:n,children:s,...i}){Object.keys(i).length>0&&n.update({...n.options,...i,context:{...n.options.context,...i.context}});const r=m.jsx(jg.Provider,{value:n,children:s});return n.options.Wrap?m.jsx(n.options.Wrap,{children:r}):r}function l1({router:n,...s}){return m.jsx(n1,{router:n,...s,children:m.jsx($S,{})})}function s1(n){const i=pe();return W.useRef(void 0),he(i.stores.__store,r=>r)}function i1(n){const s=[];for(let i=1;i<n.length;i++){const r=n[i],o=r.routeId??r.id,f=r.params;o==="/"||o==="/_layout"||(o.includes("/runs/$runId/category/$category")?(s.some(h=>h.label===f.runId)||s.push({label:f.runId??"Run",to:`/runs/${encodeURIComponent(f.runId)}`}),s.push({label:f.category??"Category",to:r.pathname})):o.includes("/runs/$runId/dataset/$dataset")?s.push({label:f.dataset??"Dataset",to:r.pathname}):o.includes("/runs/$runId")?s.push({label:f.runId??"Run",to:r.pathname}):o.includes("/evals/$runId/$evalId")?(s.some(h=>h.label===f.runId)||s.push({label:f.runId??"Run",to:`/runs/${encodeURIComponent(f.runId)}`}),s.push({label:f.evalId??"Eval",to:r.pathname})):o.includes("/experiments/$experimentName")?s.push({label:f.experimentName??"Experiment",to:r.pathname}):(o==="/index"||o==="/")&&s.push({label:"Home",to:"/"}))}return s}function u1(){const n=WS(),s=i1(n);return s.length===0?null:m.jsxs("div",{className:"flex items-center gap-2 border-b border-gray-800 bg-gray-950 px-6 py-2 text-sm",children:[m.jsx(Vt,{to:"/",className:"text-cyan-400 hover:text-cyan-300 hover:underline",children:"Home"}),s.map((i,r)=>{const o=r===s.length-1;return m.jsxs("span",{className:"flex items-center gap-2",children:[m.jsx("span",{className:"text-gray-600",children:">"}),o?m.jsx("span",{className:"text-gray-400",children:i.label}):m.jsx(Vt,{to:i.to??"/",className:"text-cyan-400 hover:text-cyan-300 hover:underline",children:i.label})]},`${i.label}-${r}`)})]})}async function On(n){const s=await fetch(n);if(!s.ok)throw new Error(`API error: ${s.status} ${s.statusText}`);return s.json()}const r1={queryKey:["runs"],queryFn:()=>On("/api/runs"),refetchInterval:5e3};function c1(n){return{queryKey:["runs",n],queryFn:()=>On(`/api/runs/${encodeURIComponent(n)}`),enabled:!!n}}const o1={queryKey:["feedback"],queryFn:()=>On("/api/feedback")},f1={queryKey:["experiments"],queryFn:()=>On("/api/experiments")},d1={queryKey:["targets"],queryFn:()=>On("/api/targets")};function h1(n,s){return{queryKey:["runs",n,"evals",s,"files"],queryFn:()=>On(`/api/runs/${encodeURIComponent(n)}/evals/${encodeURIComponent(s)}/files`),enabled:!!n&&!!s}}function m1(n,s,i){return{queryKey:["runs",n,"evals",s,"files",i],queryFn:()=>On(`/api/runs/${encodeURIComponent(n)}/evals/${encodeURIComponent(s)}/files/${i}`),enabled:!!n&&!!s&&!!i}}function y1(n,s){return{queryKey:["runs",n,"categories",s,"datasets"],queryFn:()=>On(`/api/runs/${encodeURIComponent(n)}/categories/${encodeURIComponent(s)}/datasets`),enabled:!!n&&!!s}}function Vf(){return An(r1)}function Qi(n){return An(c1(n))}function g1(){return An(o1)}function Xf(){return An(f1)}function v1(){return An(d1)}function Bg(n,s){return An(h1(n,s))}function Hg(n,s,i){return An(m1(n,s,i))}function qg(n,s){return An(y1(n,s))}function p1(){const n=Lg(),s=n({to:"/evals/$runId/$evalId",fuzzy:!0}),i=n({to:"/runs/$runId/category/$category",fuzzy:!0}),r=n({to:"/runs/$runId/dataset/$dataset",fuzzy:!0}),o=n({to:"/experiments/$experimentName",fuzzy:!0});if(i&&typeof i=="object"&&"runId"in i){const{runId:f,category:h}=i;return m.jsx(R1,{runId:f,category:h})}if(r&&typeof r=="object"&&"runId"in r){const{runId:f,dataset:h}=r;return m.jsx(S1,{runId:f,dataset:h})}if(s&&typeof s=="object"&&"runId"in s){const{runId:f,evalId:h}=s;return m.jsx(b1,{runId:f,currentEvalId:h})}if(o&&typeof o=="object"&&"experimentName"in o){const{experimentName:f}=o;return m.jsx(j1,{currentExperiment:f})}return m.jsx(x1,{})}function x1(){const n=Lg(),{data:s}=Vf(),i=n({to:"/"}),r=n({to:"/runs/$runId",fuzzy:!0});return m.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[m.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:m.jsx(Vt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),m.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[m.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Runs"}),s==null?void 0:s.runs.map(o=>{const f=i===!1&&r&&typeof r=="object"&&"runId"in r&&r.runId===o.filename;return m.jsx(Vt,{to:"/runs/$runId",params:{runId:o.filename},className:`mb-0.5 block truncate rounded-md px-2 py-1.5 text-sm transition-colors ${f?"bg-gray-800 text-cyan-400":"text-gray-400 hover:bg-gray-800/50 hover:text-gray-200"}`,children:o.filename},o.filename)})]})]})}function b1({runId:n,currentEvalId:s}){const{data:i}=Qi(n);return m.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[m.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:m.jsx(Vt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),m.jsxs("div",{className:"border-b border-gray-800 px-4 py-2",children:[m.jsx(Vt,{to:"/runs/$runId",params:{runId:n},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← Back to run"}),m.jsx("p",{className:"mt-1 truncate text-sm font-medium text-gray-300",children:n})]}),m.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[m.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Evaluations"}),i==null?void 0:i.results.map(r=>{const o=r.testId===s,f=r.score>=1;return m.jsxs(Vt,{to:"/evals/$runId/$evalId",params:{runId:n,evalId:r.testId},className:`mb-0.5 flex items-center gap-2 rounded-md px-2 py-1.5 text-sm transition-colors ${o?"bg-gray-800 text-cyan-400":"text-gray-400 hover:bg-gray-800/50 hover:text-gray-200"}`,children:[m.jsx("span",{className:`text-xs ${f?"text-emerald-400":"text-red-400"}`,children:f?"✓":"✗"}),m.jsx("span",{className:"truncate",children:r.testId})]},r.testId)})]})]})}function S1({runId:n,dataset:s}){const{data:i}=Qi(n),r=((i==null?void 0:i.results)??[]).filter(o=>(o.dataset??"Uncategorized")===s);return m.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[m.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:m.jsx(Vt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),m.jsxs("div",{className:"border-b border-gray-800 px-4 py-2",children:[m.jsx(Vt,{to:"/runs/$runId",params:{runId:n},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← Back to run"}),m.jsx("p",{className:"mt-1 truncate text-sm font-medium text-gray-300",children:n}),m.jsx("p",{className:"truncate text-xs text-gray-500",children:s})]}),m.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[m.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Evaluations"}),r.map(o=>{const f=o.score>=1;return m.jsxs(Vt,{to:"/evals/$runId/$evalId",params:{runId:n,evalId:o.testId},className:"mb-0.5 flex items-center gap-2 rounded-md px-2 py-1.5 text-sm text-gray-400 transition-colors hover:bg-gray-800/50 hover:text-gray-200",children:[m.jsx("span",{className:`text-xs ${f?"text-emerald-400":"text-red-400"}`,children:f?"✓":"✗"}),m.jsx("span",{className:"truncate",children:o.testId})]},o.testId)})]})]})}function R1({runId:n,category:s}){const{data:i}=qg(n,s),r=(i==null?void 0:i.datasets)??[];return m.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[m.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:m.jsx(Vt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),m.jsxs("div",{className:"border-b border-gray-800 px-4 py-2",children:[m.jsx(Vt,{to:"/runs/$runId",params:{runId:n},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← Back to run"}),m.jsx("p",{className:"mt-1 truncate text-sm font-medium text-gray-300",children:n}),m.jsx("p",{className:"truncate text-xs text-gray-500",children:s})]}),m.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[m.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Datasets"}),r.map(o=>m.jsxs(Vt,{to:"/runs/$runId/dataset/$dataset",params:{runId:n,dataset:o.name},className:"mb-0.5 flex items-center gap-2 rounded-md px-2 py-1.5 text-sm text-gray-400 transition-colors hover:bg-gray-800/50 hover:text-gray-200",children:[m.jsx("span",{className:`text-xs ${o.passed===o.total?"text-emerald-400":"text-red-400"}`,children:o.passed===o.total?"✓":"✗"}),m.jsx("span",{className:"truncate",children:o.name})]},o.name))]})]})}function j1({currentExperiment:n}){const{data:s}=Xf(),i=(s==null?void 0:s.experiments)??[];return m.jsxs("aside",{className:"flex w-64 flex-col border-r border-gray-800 bg-gray-900/50",children:[m.jsx("div",{className:"flex items-center gap-2 border-b border-gray-800 px-4 py-4",children:m.jsx(Vt,{to:"/",className:"text-lg font-semibold text-white hover:text-cyan-400",children:"AgentV Studio"})}),m.jsx("div",{className:"border-b border-gray-800 px-4 py-2",children:m.jsx(Vt,{to:"/",search:{tab:"experiments"},className:"text-xs text-gray-400 hover:text-cyan-400",children:"← All experiments"})}),m.jsxs("nav",{className:"flex-1 overflow-y-auto px-2 py-3",children:[m.jsx("div",{className:"mb-2 px-2 text-xs font-medium uppercase tracking-wider text-gray-500",children:"Experiments"}),i.map(r=>{const o=r.name===n;return m.jsx(Vt,{to:"/experiments/$experimentName",params:{experimentName:r.name},className:`mb-0.5 block truncate rounded-md px-2 py-1.5 text-sm transition-colors ${o?"bg-gray-800 text-cyan-400":"text-gray-400 hover:bg-gray-800/50 hover:text-gray-200"}`,children:r.name},r.name)})]})]})}function _1(){return m.jsxs("div",{className:"flex h-screen overflow-hidden",children:[m.jsx(p1,{}),m.jsxs("div",{className:"flex flex-1 flex-col overflow-hidden",children:[m.jsx(u1,{}),m.jsx("main",{className:"flex-1 overflow-y-auto p-6",children:m.jsx(Ug,{})})]})]})}const ml=VS({component:_1});function qa({score:n,className:s=""}){const i=Math.round(Math.max(0,Math.min(1,n))*100);return m.jsxs("div",{className:`flex items-center gap-3 ${s}`,children:[m.jsx("div",{className:"h-2 flex-1 overflow-hidden rounded-full bg-gray-800",children:m.jsx("div",{className:"h-full rounded-full bg-gradient-to-r from-cyan-400 to-blue-500 transition-all duration-300",style:{width:`${i}%`}})}),m.jsxs("span",{className:"w-12 text-right text-sm font-medium tabular-nums text-gray-300",children:[i,"%"]})]})}function E1(){const{data:n,isLoading:s}=Xf();if(s)return m.jsx(T1,{});const i=(n==null?void 0:n.experiments)??[];return i.length===0?m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[m.jsx("p",{className:"text-lg text-gray-400",children:"No experiments found"}),m.jsx("p",{className:"mt-2 text-sm text-gray-500",children:"Experiments will appear here once evaluations are run with experiment labels."})]}):m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("table",{className:"w-full text-left text-sm",children:[m.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:m.jsxs("tr",{children:[m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Experiment"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Runs"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Targets"}),m.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Pass Rate"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Last Run"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-800/50",children:i.map(r=>m.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[m.jsx("td",{className:"px-4 py-3",children:m.jsx(Vt,{to:"/experiments/$experimentName",params:{experimentName:r.name},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:r.name})}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:r.run_count}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:r.target_count}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(qa,{score:r.pass_rate})}),m.jsx("td",{className:"px-4 py-3 text-gray-400",children:N1(r.last_run)})]},r.name))})]})})}function N1(n){if(!n)return"N/A";try{const s=new Date(n);return Number.isNaN(s.getTime())?"N/A":s.toLocaleString()}catch{return"N/A"}}function T1(){return m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("div",{className:"animate-pulse",children:[m.jsx("div",{className:"border-b border-gray-800 bg-gray-900/50 px-4 py-3",children:m.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"})}),["sk-1","sk-2","sk-3","sk-4","sk-5"].map(n=>m.jsxs("div",{className:"flex gap-4 border-b border-gray-800/50 px-4 py-3",children:[m.jsx("div",{className:"h-4 w-32 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-24 rounded bg-gray-800"})]},n))]})})}function M1(n){if(!n)return"N/A";try{const s=new Date(n);return Number.isNaN(s.getTime())?"N/A":s.toLocaleString()}catch{return"N/A"}}function Qg({runs:n}){return n.length===0?m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[m.jsx("p",{className:"text-lg text-gray-400",children:"No evaluation runs found."}),m.jsxs("p",{className:"mt-2 text-sm text-gray-500",children:["Run an evaluation first:"," ",m.jsx("code",{className:"rounded bg-gray-800 px-2 py-1 text-cyan-400",children:"agentv eval <eval-file>"})]})]}):m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("table",{className:"w-full text-left text-sm",children:[m.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:m.jsxs("tr",{children:[m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Run"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Experiment"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Timestamp"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Tests"}),m.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",title:"Percentage of tests with a perfect score (1.0)",children:"Tests Passing"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",title:"Mean score across all tests (0-100%)",children:"Mean Score"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-800/50",children:n.map(s=>m.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[m.jsx("td",{className:"px-4 py-3",children:m.jsx(Vt,{to:"/runs/$runId",params:{runId:s.filename},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:s.filename})}),m.jsx("td",{className:"px-4 py-3 text-gray-400",children:s.target??"-"}),m.jsx("td",{className:"px-4 py-3 text-gray-400",children:s.experiment??"-"}),m.jsx("td",{className:"px-4 py-3 text-gray-400",children:M1(s.timestamp)}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums",children:s.test_count}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(qa,{score:s.pass_rate})}),m.jsxs("td",{className:"px-4 py-3 text-right tabular-nums",children:[(s.avg_score*100).toFixed(1),"%"]})]},s.filename))})]})})}function C1(){const{data:n,isLoading:s}=v1();if(s)return m.jsx(A1,{});const i=(n==null?void 0:n.targets)??[];return i.length===0?m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[m.jsx("p",{className:"text-lg text-gray-400",children:"No targets found"}),m.jsx("p",{className:"mt-2 text-sm text-gray-500",children:"Targets will appear here once evaluations are run with target labels."})]}):m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("table",{className:"w-full text-left text-sm",children:[m.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:m.jsxs("tr",{children:[m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Runs"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Experiments"}),m.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Pass Rate"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Evals"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-800/50",children:i.map(r=>m.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[m.jsx("td",{className:"px-4 py-3 font-medium text-gray-200",children:r.name}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:r.run_count}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:r.experiment_count}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(qa,{score:r.pass_rate})}),m.jsxs("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:[m.jsx("span",{className:"text-emerald-400",children:r.passed_count}),m.jsx("span",{className:"text-gray-600",children:"/"}),m.jsx("span",{children:r.eval_count})]})]},r.name))})]})})}function A1(){return m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("div",{className:"animate-pulse",children:[m.jsx("div",{className:"border-b border-gray-800 bg-gray-900/50 px-4 py-3",children:m.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"})}),["sk-1","sk-2","sk-3","sk-4","sk-5"].map(n=>m.jsxs("div",{className:"flex gap-4 border-b border-gray-800/50 px-4 py-3",children:[m.jsx("div",{className:"h-4 w-32 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-12 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-48 rounded bg-gray-800"}),m.jsx("div",{className:"h-4 w-20 rounded bg-gray-800"})]},n))]})})}const H0=[{id:"runs",label:"Recent Runs"},{id:"experiments",label:"Experiments"},{id:"targets",label:"Targets"}],O1=Rs("/")({component:z1});function z1(){const i=s1().location.search.tab,r=Gf(),{data:o,isLoading:f,error:h}=Vf(),g=H0.some(p=>p.id===i)?i:"runs";return m.jsxs("div",{className:"space-y-6",children:[m.jsx("h1",{className:"text-2xl font-semibold text-white",children:"Evaluation Runs"}),m.jsx("div",{className:"border-b border-gray-800",children:m.jsx("div",{className:"flex gap-1",children:H0.map(p=>m.jsx("button",{type:"button",onClick:()=>r({to:"/",search:{tab:p.id}}),className:`px-4 py-2 text-sm font-medium transition-colors ${g===p.id?"border-b-2 border-cyan-400 text-cyan-400":"text-gray-400 hover:text-gray-300"}`,children:p.label},p.id))})}),g==="runs"&&m.jsx(D1,{data:o,isLoading:f,error:h}),g==="experiments"&&m.jsx(E1,{}),g==="targets"&&m.jsx(C1,{})]})}function D1({data:n,isLoading:s,error:i}){return s?m.jsx(w1,{}):i?m.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load runs: ",i.message]}):m.jsx(Qg,{runs:(n==null?void 0:n.runs)??[]})}function w1(){return m.jsx("div",{className:"space-y-2",children:["s1","s2","s3","s4","s5"].map(n=>m.jsx("div",{className:"h-12 animate-pulse rounded-lg bg-gray-900"},n))})}function _i({label:n,value:s,accent:i}){return m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[m.jsx("p",{className:"text-sm text-gray-400",children:n}),m.jsx("p",{className:`mt-1 text-2xl font-semibold tabular-nums ${i??"text-white"}`,children:s})]})}function jr({total:n,passed:s,failed:i,passRate:r,totalCost:o}){return m.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-5",children:[m.jsx(_i,{label:"Total",value:String(n)}),m.jsx(_i,{label:"Passed",value:String(s),accent:"text-emerald-400"}),m.jsx(_i,{label:"Failed",value:String(i),accent:"text-red-400"}),m.jsx(_i,{label:"Pass Rate",value:`${Math.round(r*100)}%`,accent:"text-cyan-400"}),o!==void 0&&m.jsx(_i,{label:"Cost",value:`$${o.toFixed(4)}`,accent:"text-amber-400"})]})}function U1(n){const s=new Map;for(const i of n){const r=i.category??"Uncategorized",o=i.dataset??"Uncategorized";s.has(r)||s.set(r,new Map);const f=s.get(r),h=f.get(o)??{passed:0,failed:0,total:0,scoreSum:0};h.total+=1,h.scoreSum+=i.score,i.score>=1?h.passed+=1:h.failed+=1,f.set(o,h)}return Array.from(s.entries()).map(([i,r])=>{const o=Array.from(r.entries()).map(([y,b])=>({name:y,...b,avgScore:b.total>0?b.scoreSum/b.total:0})).sort((y,b)=>y.name.localeCompare(b.name)),f=o.reduce((y,b)=>y+b.total,0),h=o.reduce((y,b)=>y+b.passed,0),g=o.reduce((y,b)=>y+b.failed,0),p=o.reduce((y,b)=>y+b.avgScore*b.total,0);return{name:i,datasets:o,total:f,passed:h,failed:g,avgScore:f>0?p/f:0}}).sort((i,r)=>i.name.localeCompare(r.name))}function L1({results:n,runId:s}){var y;const i=n.length,r=n.filter(b=>b.score>=1).length,o=i-r,f=i>0?r/i:0,h=n.reduce((b,v)=>b+(v.costUsd??0),0),g=U1(n),p=g.length>1;return i===0?m.jsxs("div",{className:"space-y-6",children:[m.jsx(jr,{total:0,passed:0,failed:0,passRate:0}),m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:[m.jsx("p",{className:"text-lg text-gray-400",children:"No evaluations found"}),m.jsx("p",{className:"mt-2 text-sm text-gray-500",children:"This run has no results yet."})]})]}):m.jsxs("div",{className:"space-y-6",children:[m.jsx(jr,{total:i,passed:r,failed:o,passRate:f,totalCost:h>0?h:void 0}),p?m.jsxs("div",{className:"space-y-4",children:[m.jsx("h3",{className:"text-sm font-medium text-gray-400",children:"Categories"}),g.map(b=>m.jsx(B1,{category:b,runId:s},b.name))]}):m.jsxs("div",{className:"space-y-3",children:[m.jsx("h3",{className:"text-sm font-medium text-gray-400",children:"Datasets"}),m.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3",children:(y=g[0])==null?void 0:y.datasets.map(b=>m.jsx(Yg,{dataset:b,runId:s},b.name))})]}),m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("table",{className:"w-full text-left text-sm",children:[m.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:m.jsxs("tr",{children:[m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Test ID"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),m.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Score"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Status"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Duration"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Cost"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-800/50",children:n.map((b,v)=>m.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[m.jsx("td",{className:"px-4 py-3",children:m.jsx(Vt,{to:"/evals/$runId/$evalId",params:{runId:s,evalId:b.testId},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:b.testId})}),m.jsx("td",{className:"px-4 py-3 text-gray-400",children:b.target??"-"}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(qa,{score:b.score})}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(H1,{status:b.executionStatus})}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:b.durationMs!=null?`${(b.durationMs/1e3).toFixed(1)}s`:"-"}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:b.costUsd!=null?`$${b.costUsd.toFixed(4)}`:"-"})]},`${b.testId}-${v}`))})]})})]})}function B1({category:n,runId:s}){const[i,r]=W.useState(!0);return m.jsxs("div",{className:"rounded-lg border border-gray-800",children:[m.jsxs("button",{type:"button",onClick:()=>r(!i),className:"flex w-full items-center justify-between px-4 py-3 text-left transition-colors hover:bg-gray-900/50",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("span",{className:"text-xs text-gray-500",children:i?"▼":"▶"}),m.jsx("span",{className:"text-sm font-medium text-gray-200",children:n.name}),m.jsxs("span",{className:"text-xs text-gray-500",children:[n.datasets.length," dataset",n.datasets.length!==1?"s":""]})]}),m.jsxs("div",{className:"flex items-center gap-3 text-xs",children:[m.jsxs("span",{className:"text-emerald-400",children:[n.passed," passed"]}),n.failed>0&&m.jsxs("span",{className:"text-red-400",children:[n.failed," failed"]}),m.jsxs("span",{className:"text-gray-500",children:[n.passed,"/",n.total]})]})]}),i&&m.jsx("div",{className:"border-t border-gray-800 p-3",children:m.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3",children:n.datasets.map(o=>m.jsx(Yg,{dataset:o,runId:s},o.name))})})]})}function Yg({dataset:n,runId:s}){return m.jsxs(Vt,{to:"/runs/$runId/dataset/$dataset",params:{runId:s,dataset:n.name},className:"rounded-lg border border-gray-800 bg-gray-900 p-3 text-left transition-colors hover:border-gray-700",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm font-medium text-gray-200 truncate",children:n.name}),m.jsxs("span",{className:"ml-2 text-xs text-gray-500",children:[n.passed,"/",n.total]})]}),m.jsx("div",{className:"mt-2",children:m.jsx(qa,{score:n.avgScore})}),m.jsxs("div",{className:"mt-1 flex gap-3 text-xs",children:[m.jsxs("span",{className:"text-emerald-400",children:[n.passed," passed"]}),n.failed>0&&m.jsxs("span",{className:"text-red-400",children:[n.failed," failed"]})]})]})}function H1({status:n}){if(!n)return m.jsx("span",{className:"text-gray-500",children:"-"});const s=n==="success"||n==="completed",i=n==="error"||n==="failed";return m.jsx("span",{className:`inline-flex rounded-full px-2 py-0.5 text-xs font-medium ${s?"bg-emerald-900/50 text-emerald-400":i?"bg-red-900/50 text-red-400":"bg-gray-800 text-gray-400"}`,children:n})}const Gg=Rs("/runs/$runId")({component:q1});function q1(){const{runId:n}=Gg.useParams(),{data:s,isLoading:i,error:r}=Qi(n);return i?m.jsxs("div",{className:"space-y-4",children:[m.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),m.jsx("div",{className:"grid grid-cols-5 gap-4",children:["s1","s2","s3","s4","s5"].map(o=>m.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},o))})]}):r?m.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load run: ",r.message]}):m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsxs("h1",{className:"text-2xl font-semibold text-white",children:["Run: ",n]}),m.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:["Source: ",s==null?void 0:s.source]})]}),m.jsx(L1,{results:(s==null?void 0:s.results)??[],runId:n})]})}const Vg=Rs("/experiments/$experimentName")({component:Q1});function Q1(){var v;const{experimentName:n}=Vg.useParams(),{data:s,isLoading:i}=Xf(),{data:r,isLoading:o}=Vf();if(i||o)return m.jsxs("div",{className:"space-y-4",children:[m.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),m.jsx("div",{className:"grid grid-cols-4 gap-4",children:["s1","s2","s3","s4"].map(S=>m.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},S))})]});const h=(v=s==null?void 0:s.experiments)==null?void 0:v.find(S=>S.name===n),g=(r==null?void 0:r.runs)??[],p=(h==null?void 0:h.pass_rate)??0,y=(h==null?void 0:h.run_count)??0,b=(h==null?void 0:h.target_count)??0;return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsx("h1",{className:"text-2xl font-semibold text-white",children:n}),m.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:[y," run",y!==1?"s":""," · ",b," target",b!==1?"s":"",(h==null?void 0:h.last_run)&&m.jsxs("span",{className:"ml-2",children:["· Last run: ",q0(h.last_run)]})]})]}),h&&m.jsxs("div",{className:"grid grid-cols-2 gap-4 sm:grid-cols-4",children:[m.jsx(or,{label:"Runs",value:String(y)}),m.jsx(or,{label:"Targets",value:String(b)}),m.jsx(or,{label:"Pass Rate",value:`${Math.round(p*100)}%`,accent:"text-cyan-400"}),m.jsx(or,{label:"Last Run",value:q0(h.last_run)})]}),m.jsxs("div",{children:[m.jsx("h2",{className:"mb-4 text-lg font-medium text-gray-200",children:"All Runs"}),m.jsx(Qg,{runs:g})]})]})}function or({label:n,value:s,accent:i}){return m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[m.jsx("p",{className:"text-sm text-gray-400",children:n}),m.jsx("p",{className:`mt-1 text-2xl font-semibold tabular-nums ${i??"text-white"}`,children:s})]})}function q0(n){if(!n)return"N/A";try{const s=new Date(n);return Number.isNaN(s.getTime())?"N/A":s.toLocaleString()}catch{return"N/A"}}async function Y1(n,s){const i=await fetch("/api/feedback",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({reviews:[{test_id:n,comment:s}]})});if(!i.ok)throw new Error(`Failed to save feedback: ${i.status}`);return i.json()}function G1({testId:n}){var b;const{data:s}=g1(),i=wf(),r=(b=s==null?void 0:s.reviews)==null?void 0:b.find(v=>v.test_id===n),[o,f]=W.useState((r==null?void 0:r.comment)??""),[h,g]=W.useState(!1);W.useEffect(()=>{f((r==null?void 0:r.comment)??""),g(!1)},[r==null?void 0:r.comment]);const p=cb({mutationFn:()=>Y1(n,o),onSuccess:()=>{i.invalidateQueries({queryKey:["feedback"]}),g(!0),setTimeout(()=>g(!1),2e3)}}),y=W.useCallback(()=>{p.mutate()},[p]);return m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[m.jsx("h4",{className:"mb-2 text-sm font-medium text-gray-400",children:"Feedback"}),m.jsx("textarea",{value:o,onChange:v=>{f(v.target.value),g(!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}),m.jsxs("div",{className:"mt-2 flex items-center gap-3",children:[m.jsx("button",{type:"button",onClick:y,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&&m.jsx("span",{className:"text-sm text-emerald-400",children:"Saved"}),p.isError&&m.jsx("span",{className:"text-sm text-red-400",children:"Error saving feedback"})]})]})}function V1(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 Xg(n){const s=[];for(const i of n)i.type==="dir"&&(s.push(i.path),i.children&&s.push(...Xg(i.children)));return s}function Kg({node:n,selectedPath:s,onSelect:i,openFolders:r,toggleFolder:o,depth:f=0}){const h=n.type==="dir",g=r.has(n.path),p=s===n.path;return m.jsxs("div",{children:[m.jsxs("button",{type:"button",onClick:()=>{h?o(n.path):i(n.path)},className:`flex w-full items-center gap-2 rounded-md px-2 py-1 text-sm transition-colors ${p?"bg-cyan-400/20 text-cyan-400":"text-gray-300 hover:bg-gray-800/50 hover:text-gray-200"}`,style:{paddingLeft:`${f*16+8}px`},children:[m.jsx("span",{className:"flex-shrink-0 text-xs",children:h?g?"📂":"📁":V1(n.name)}),m.jsx("span",{className:"truncate",children:n.name})]}),h&&g&&n.children&&m.jsx("div",{children:n.children.map(y=>m.jsx(Kg,{node:y,selectedPath:s,onSelect:i,openFolders:r,toggleFolder:o,depth:f+1},y.path))})]})}function Zg({files:n,selectedPath:s,onSelect:i}){const[r,o]=W.useState(()=>new Set(Xg(n))),f=h=>{o(g=>{const p=new Set(g);return p.has(h)?p.delete(h):p.add(h),p})};return m.jsxs("div",{className:"w-64 overflow-y-auto rounded-lg border border-gray-800 bg-gray-900 py-2",children:[n.length===0&&m.jsx("p",{className:"px-4 py-2 text-sm text-gray-500",children:"No files."}),n.map(h=>m.jsx(Kg,{node:h,selectedPath:s,onSelect:i,openFolders:r,toggleFolder:f},h.path))]})}const X1="modulepreload",K1=function(n){return"/"+n},Q0={},Z1=function(s,i,r){let o=Promise.resolve();if(i&&i.length>0){let h=function(y){return Promise.all(y.map(b=>Promise.resolve(b).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const g=document.querySelector("meta[property=csp-nonce]"),p=(g==null?void 0:g.nonce)||(g==null?void 0:g.getAttribute("nonce"));o=h(i.map(y=>{if(y=K1(y),y in Q0)return;Q0[y]=!0;const b=y.endsWith(".css"),v=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${y}"]${v}`))return;const S=document.createElement("link");if(S.rel=b?"stylesheet":X1,b||(S.as="script"),S.crossOrigin="",S.href=y,p&&S.setAttribute("nonce",p),document.head.appendChild(S),b)return new Promise((j,R)=>{S.addEventListener("load",j),S.addEventListener("error",()=>R(new Error(`Unable to preload CSS for ${y}`)))})}))}function f(h){const g=new Event("vite:preloadError",{cancelable:!0});if(g.payload=h,window.dispatchEvent(g),!g.defaultPrevented)throw h}return o.then(h=>{for(const g of h||[])g.status==="rejected"&&f(g.reason);return s().catch(f)})},J1=W.lazy(()=>Z1(()=>import("./index-DofvSOmX.js"),[]));function _r({value:n,language:s="json",height:i="400px"}){return m.jsx(W.Suspense,{fallback:m.jsx("div",{className:"flex items-center justify-center rounded-lg bg-gray-900 p-8 text-gray-500",children:"Loading editor..."}),children:m.jsx(J1,{height:i,language:s,value:n,theme:"vs-dark",options:{readOnly:!0,minimap:{enabled:!1},scrollBeyondLastLine:!1,fontSize:13,lineNumbers:"on",wordWrap:"on",padding:{top:12}}})})}function Kf(n){for(const s of n){if(s.type==="file")return s.path;if(s.children){const i=Kf(s.children);if(i)return i}}return null}function P1({eval:n,runId:s}){const[i,r]=W.useState("steps"),o=[{id:"steps",label:"Steps"},{id:"output",label:"Output"},{id:"task",label:"Task"}];return m.jsxs("div",{className:"space-y-6",children:[m.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("h3",{className:"text-lg font-medium",children:n.testId}),m.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:[n.target&&m.jsxs("span",{children:["Target: ",n.target]}),n.durationMs!=null&&m.jsxs("span",{className:"ml-4",children:[(n.durationMs/1e3).toFixed(1),"s"]}),n.costUsd!=null&&m.jsxs("span",{className:"ml-4",children:["$",n.costUsd.toFixed(4)]})]})]}),m.jsx("div",{className:"w-48",children:m.jsx(qa,{score:n.score})})]})}),n.scores&&n.scores.length>0&&m.jsxs("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-4",children:[m.jsx("h4",{className:"mb-3 text-sm font-medium text-gray-400",children:"Evaluator Scores"}),m.jsx("div",{className:"space-y-3",children:n.scores.map((f,h)=>m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx("span",{className:"w-40 truncate text-sm text-gray-300",children:f.name??f.type??`Score ${h+1}`}),m.jsx("div",{className:"flex-1",children:m.jsx(qa,{score:f.score})})]},`${f.name??f.type??h}`))})]}),m.jsx("div",{className:"border-b border-gray-800",children:m.jsx("div",{className:"flex gap-1",children:o.map(f=>m.jsx("button",{type:"button",onClick:()=>r(f.id),className:`px-4 py-2 text-sm font-medium transition-colors ${i===f.id?"border-b-2 border-cyan-400 text-cyan-400":"text-gray-400 hover:text-gray-300"}`,children:f.label},f.id))})}),m.jsxs("div",{children:[i==="steps"&&m.jsx(k1,{result:n}),i==="output"&&m.jsx(F1,{result:n,runId:s}),i==="task"&&m.jsx($1,{result:n,runId:s})]}),m.jsx(G1,{testId:n.testId})]})}function k1({result:n}){const s=n.assertions??[],i=n.score<1||n.executionStatus==="error"||n.executionStatus==="failed",r=[];n.error&&r.push(n.error),(n.executionStatus==="error"||n.executionStatus==="failed")&&r.push(`Execution status: ${n.executionStatus}`);const o=s.filter(f=>!f.passed);for(const f of o){const h=f.evidence?`${f.text}: ${f.evidence}`:f.text;r.push(h)}if(n.scores)for(const f of n.scores){if(f.score<1&&f.details){const h=typeof f.details=="string"?f.details:JSON.stringify(f.details,null,2);r.push(`[${f.name??f.type??"evaluator"}] ${h}`)}if(f.assertions){for(const h of f.assertions)if(!h.passed){const g=h.evidence?`${h.text}: ${h.evidence}`:h.text;r.includes(g)||r.push(g)}}}return m.jsxs("div",{className:"space-y-4",children:[s.length===0&&m.jsx("p",{className:"text-sm text-gray-500",children:"No assertion steps recorded."}),s.length>0&&m.jsx("div",{className:"space-y-2",children:s.map(f=>m.jsxs("div",{className:`flex items-start gap-3 rounded-lg border p-3 ${f.passed?"border-emerald-900/50 bg-emerald-950/20":"border-red-900/50 bg-red-950/20"}`,children:[m.jsx("span",{className:`mt-0.5 text-lg ${f.passed?"text-emerald-400":"text-red-400"}`,children:f.passed?"✓":"✗"}),m.jsxs("div",{className:"min-w-0 flex-1",children:[m.jsxs("p",{className:"text-sm text-gray-200",children:[f.text,f.durationMs!=null&&m.jsxs("span",{className:"ml-2 text-xs text-gray-500",children:["(",(f.durationMs/1e3).toFixed(1),"s)"]})]}),f.evidence&&m.jsx("p",{className:"mt-1 text-xs text-gray-400",children:f.evidence})]})]},`${f.text}-${f.passed}`))}),i&&r.length>0&&m.jsxs("div",{className:"rounded-lg border border-red-500/30 bg-red-500/10 p-4",children:[m.jsx("h4",{className:"mb-2 text-sm font-medium text-red-400",children:"Failure Reason"}),m.jsx("div",{className:"space-y-2",children:r.map(f=>m.jsx("p",{className:"text-sm text-gray-300",children:f},f))})]})]})}function F1({result:n,runId:s}){const i=n.testId,{data:r}=Bg(s,i),o=(r==null?void 0:r.files)??[],f=o.length>0,[h,g]=W.useState(null),p=h??(f?Kf(o):null),{data:y,isLoading:b}=Hg(s,i,p??""),v=n.output,S=v&&v.length>0?v.map(M=>`[${M.role}]
|
|
66
|
-
${M.content}`).join(`
|
|
67
|
-
|
|
68
|
-
`):"";if(!f)return!v||v.length===0?m.jsx("p",{className:"text-sm text-gray-500",children:"No output available."}):m.jsx(_r,{value:S,language:"markdown"});const j=p?b?"Loading...":(y==null?void 0:y.content)??S:S,R=p?(y==null?void 0:y.language)??"plaintext":"markdown";return m.jsxs("div",{className:"flex h-[500px] gap-4",children:[m.jsx(Zg,{files:o,selectedPath:p,onSelect:g}),m.jsx("div",{className:"flex-1",children:m.jsx(_r,{value:j,language:R})})]})}function $1({result:n,runId:s}){const i=n.testId,{data:r}=Bg(s,i),o=(r==null?void 0:r.files)??[],f=o.length>0,[h,g]=W.useState(null),p=h??(f?Kf(o):null),{data:y,isLoading:b}=Hg(s,i,p??""),v=n.input,S=v&&v.length>0?v.map(M=>`[${M.role}]
|
|
69
|
-
${M.content}`).join(`
|
|
70
|
-
|
|
71
|
-
`):"";if(!f)return!v||v.length===0?m.jsx("p",{className:"text-sm text-gray-500",children:"No task input available."}):m.jsx(_r,{value:S,language:"markdown"});const j=p?b?"Loading...":(y==null?void 0:y.content)??S:S,R=p?(y==null?void 0:y.language)??"plaintext":"markdown";return m.jsxs("div",{className:"flex h-[500px] gap-4",children:[m.jsx(Zg,{files:o,selectedPath:p,onSelect:g}),m.jsx("div",{className:"flex-1",children:m.jsx(_r,{value:j,language:R})})]})}const Jg=Rs("/evals/$runId/$evalId")({component:I1});function I1(){const{runId:n,evalId:s}=Jg.useParams(),{data:i,isLoading:r,error:o}=Qi(n);if(r)return m.jsxs("div",{className:"space-y-4",children:[m.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),m.jsx("div",{className:"h-48 animate-pulse rounded-lg bg-gray-900"})]});if(o)return m.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load eval: ",o.message]});const f=i==null?void 0:i.results.find(h=>h.testId===s);return f?m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsxs("p",{className:"text-sm text-gray-400",children:["Run: ",n," / Eval: ",s]}),m.jsx("h1",{className:"text-2xl font-semibold text-white",children:s})]}),m.jsx(P1,{eval:f,runId:n})]}):m.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-6 text-center",children:m.jsxs("p",{className:"text-gray-400",children:["Eval ",m.jsx("code",{className:"text-cyan-400",children:s})," not found in run"," ",m.jsx("code",{className:"text-cyan-400",children:n}),"."]})})}const Pg=Rs("/runs/$runId_/dataset/$dataset")({component:W1});function W1(){const{runId:n,dataset:s}=Pg.useParams(),{data:i,isLoading:r,error:o}=Qi(n);if(r)return m.jsxs("div",{className:"space-y-4",children:[m.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),m.jsx("div",{className:"grid grid-cols-5 gap-4",children:["s1","s2","s3","s4","s5"].map(v=>m.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},v))})]});if(o)return m.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load run: ",o.message]});const f=((i==null?void 0:i.results)??[]).filter(v=>(v.dataset??"Uncategorized")===s),h=f.length,g=f.filter(v=>v.score>=1).length,p=h-g,y=h>0?g/h:0,b=f.reduce((v,S)=>v+(S.costUsd??0),0);return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsx("h1",{className:"text-2xl font-semibold text-white",children:s}),m.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:["Dataset in run: ",n]})]}),m.jsx(jr,{total:h,passed:g,failed:p,passRate:y,totalCost:b>0?b:void 0}),h===0?m.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:m.jsx("p",{className:"text-lg text-gray-400",children:"No evaluations in this dataset"})}):m.jsx("div",{className:"overflow-hidden rounded-lg border border-gray-800",children:m.jsxs("table",{className:"w-full text-left text-sm",children:[m.jsx("thead",{className:"border-b border-gray-800 bg-gray-900/50",children:m.jsxs("tr",{children:[m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Test ID"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Target"}),m.jsx("th",{className:"w-48 px-4 py-3 font-medium text-gray-400",children:"Score"}),m.jsx("th",{className:"px-4 py-3 font-medium text-gray-400",children:"Status"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Duration"}),m.jsx("th",{className:"px-4 py-3 text-right font-medium text-gray-400",children:"Cost"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-800/50",children:f.map((v,S)=>m.jsxs("tr",{className:"transition-colors hover:bg-gray-900/30",children:[m.jsx("td",{className:"px-4 py-3",children:m.jsx(Vt,{to:"/evals/$runId/$evalId",params:{runId:n,evalId:v.testId},className:"font-medium text-cyan-400 hover:text-cyan-300 hover:underline",children:v.testId})}),m.jsx("td",{className:"px-4 py-3 text-gray-400",children:v.target??"-"}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(qa,{score:v.score})}),m.jsx("td",{className:"px-4 py-3",children:m.jsx(t4,{status:v.executionStatus})}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:v.durationMs!=null?`${(v.durationMs/1e3).toFixed(1)}s`:"-"}),m.jsx("td",{className:"px-4 py-3 text-right tabular-nums text-gray-400",children:v.costUsd!=null?`$${v.costUsd.toFixed(4)}`:"-"})]},`${v.testId}-${S}`))})]})})]})}function t4({status:n}){if(!n)return m.jsx("span",{className:"text-gray-500",children:"-"});const s=n==="success"||n==="completed",i=n==="error"||n==="failed";return m.jsx("span",{className:`inline-flex rounded-full px-2 py-0.5 text-xs font-medium ${s?"bg-emerald-900/50 text-emerald-400":i?"bg-red-900/50 text-red-400":"bg-gray-800 text-gray-400"}`,children:n})}const kg=Rs("/runs/$runId_/category/$category")({component:e4});function e4(){const{runId:n,category:s}=kg.useParams(),{data:i,isLoading:r,error:o}=qg(n,s);if(r)return m.jsxs("div",{className:"space-y-4",children:[m.jsx("div",{className:"h-8 w-64 animate-pulse rounded bg-gray-800"}),m.jsx("div",{className:"grid grid-cols-5 gap-4",children:["s1","s2","s3","s4","s5"].map(b=>m.jsx("div",{className:"h-20 animate-pulse rounded-lg bg-gray-900"},b))})]});if(o)return m.jsxs("div",{className:"rounded-lg border border-red-900/50 bg-red-950/20 p-6 text-red-400",children:["Failed to load category: ",o.message]});const f=(i==null?void 0:i.datasets)??[],h=f.reduce((b,v)=>b+v.total,0),g=f.reduce((b,v)=>b+v.passed,0),p=h-g,y=h>0?g/h:0;return m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsx("h1",{className:"text-2xl font-semibold text-white",children:s}),m.jsxs("p",{className:"mt-1 text-sm text-gray-400",children:["Category in run: ",n]})]}),m.jsx(jr,{total:h,passed:g,failed:p,passRate:y}),f.length===0?m.jsx("div",{className:"rounded-lg border border-gray-800 bg-gray-900 p-8 text-center",children:m.jsx("p",{className:"text-lg text-gray-400",children:"No datasets in this category"})}):m.jsxs("div",{className:"space-y-3",children:[m.jsx("h3",{className:"text-sm font-medium text-gray-400",children:"Datasets"}),m.jsx("div",{className:"grid grid-cols-1 gap-2 sm:grid-cols-2 lg:grid-cols-3",children:f.map(b=>m.jsxs(Vt,{to:"/runs/$runId/dataset/$dataset",params:{runId:n,dataset:b.name},className:"rounded-lg border border-gray-800 bg-gray-900 p-3 text-left transition-colors hover:border-gray-700",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm font-medium text-gray-200 truncate",children:b.name}),m.jsxs("span",{className:"ml-2 text-xs text-gray-500",children:[b.passed,"/",b.total]})]}),m.jsx("div",{className:"mt-2",children:m.jsx(qa,{score:b.avg_score})}),m.jsxs("div",{className:"mt-1 flex gap-3 text-xs",children:[m.jsxs("span",{className:"text-emerald-400",children:[b.passed," passed"]}),b.failed>0&&m.jsxs("span",{className:"text-red-400",children:[b.failed," failed"]})]})]},b.name))})]})]})}const a4=O1.update({id:"/",path:"/",getParentRoute:()=>ml}),n4=Gg.update({id:"/runs/$runId",path:"/runs/$runId",getParentRoute:()=>ml}),l4=Vg.update({id:"/experiments/$experimentName",path:"/experiments/$experimentName",getParentRoute:()=>ml}),s4=Jg.update({id:"/evals/$runId/$evalId",path:"/evals/$runId/$evalId",getParentRoute:()=>ml}),i4=Pg.update({id:"/runs/$runId_/dataset/$dataset",path:"/runs/$runId/dataset/$dataset",getParentRoute:()=>ml}),u4=kg.update({id:"/runs/$runId_/category/$category",path:"/runs/$runId/category/$category",getParentRoute:()=>ml}),r4={IndexRoute:a4,ExperimentsExperimentNameRoute:l4,RunsRunIdRoute:n4,EvalsRunIdEvalIdRoute:s4,RunsRunIdCategoryCategoryRoute:u4,RunsRunIdDatasetDatasetRoute:i4},c4=ml._addFileChildren(r4)._addFileTypes(),o4=new Fx({defaultOptions:{queries:{staleTime:5e3,refetchOnWindowFocus:!0}}}),f4=e1({routeTree:c4}),Fg=document.getElementById("root");if(!Fg)throw new Error("Root element not found");Ex.createRoot(Fg).render(m.jsx(W.StrictMode,{children:m.jsx($x,{client:o4,children:m.jsx(l1,{router:f4})})}));export{Ti as W,W as r};
|