@axlsdk/studio 0.13.4 → 0.13.5

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.
@@ -1,150 +0,0 @@
1
- var W0=Object.defineProperty;var Wm=u=>{throw TypeError(u)};var I0=(u,i,r)=>i in u?W0(u,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):u[i]=r;var ku=(u,i,r)=>I0(u,typeof i!="symbol"?i+"":i,r),ao=(u,i,r)=>i.has(u)||Wm("Cannot "+r);var S=(u,i,r)=>(ao(u,i,"read from private field"),r?r.call(u):i.get(u)),ee=(u,i,r)=>i.has(u)?Wm("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(u):i.set(u,r),$=(u,i,r,c)=>(ao(u,i,"write to private field"),c?c.call(u,r):i.set(u,r),r),ce=(u,i,r)=>(ao(u,i,"access private method"),r);var Cs=(u,i,r,c)=>({set _(d){$(u,i,d,r)},get _(){return S(u,i,c)}});(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const d of document.querySelectorAll('link[rel="modulepreload"]'))c(d);new MutationObserver(d=>{for(const m of d)if(m.type==="childList")for(const y of m.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&c(y)}).observe(document,{childList:!0,subtree:!0});function r(d){const m={};return d.integrity&&(m.integrity=d.integrity),d.referrerPolicy&&(m.referrerPolicy=d.referrerPolicy),d.crossOrigin==="use-credentials"?m.credentials="include":d.crossOrigin==="anonymous"?m.credentials="omit":m.credentials="same-origin",m}function c(d){if(d.ep)return;d.ep=!0;const m=r(d);fetch(d.href,m)}})();var no={exports:{}},Ju={};/**
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 Im;function P0(){if(Im)return Ju;Im=1;var u=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function r(c,d,m){var y=null;if(m!==void 0&&(y=""+m),d.key!==void 0&&(y=""+d.key),"key"in d){m={};for(var p in d)p!=="key"&&(m[p]=d[p])}else m=d;return d=m.ref,{$$typeof:u,type:c,key:y,ref:d!==void 0?d:null,props:m}}return Ju.Fragment=i,Ju.jsx=r,Ju.jsxs=r,Ju}var Pm;function eg(){return Pm||(Pm=1,no.exports=P0()),no.exports}var o=eg(),uo={exports:{}},ue={};/**
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 ey;function tg(){if(ey)return ue;ey=1;var u=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),d=Symbol.for("react.profiler"),m=Symbol.for("react.consumer"),y=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),x=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),_=Symbol.iterator;function w(N){return N===null||typeof N!="object"?null:(N=_&&N[_]||N["@@iterator"],typeof N=="function"?N:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},R=Object.assign,L={};function U(N,X,F){this.props=N,this.context=X,this.refs=L,this.updater=F||Z}U.prototype.isReactComponent={},U.prototype.setState=function(N,X){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,X,"setState")},U.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function Y(){}Y.prototype=U.prototype;function q(N,X,F){this.props=N,this.context=X,this.refs=L,this.updater=F||Z}var O=q.prototype=new Y;O.constructor=q,R(O,U.prototype),O.isPureReactComponent=!0;var K=Array.isArray;function V(){}var k={H:null,A:null,T:null,S:null},ae=Object.prototype.hasOwnProperty;function he(N,X,F){var I=F.ref;return{$$typeof:u,type:N,key:X,ref:I!==void 0?I:null,props:F}}function Te(N,X){return he(N.type,X,N.props)}function ke(N){return typeof N=="object"&&N!==null&&N.$$typeof===u}function Je(N){var X={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(F){return X[F]})}var tl=/\/+/g;function dt(N,X){return typeof N=="object"&&N!==null&&N.key!=null?Je(""+N.key):X.toString(36)}function ut(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(V,V):(N.status="pending",N.then(function(X){N.status==="pending"&&(N.status="fulfilled",N.value=X)},function(X){N.status==="pending"&&(N.status="rejected",N.reason=X)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function B(N,X,F,I,ie){var oe=typeof N;(oe==="undefined"||oe==="boolean")&&(N=null);var Se=!1;if(N===null)Se=!0;else switch(oe){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(N.$$typeof){case u:case i:Se=!0;break;case T:return Se=N._init,B(Se(N._payload),X,F,I,ie)}}if(Se)return ie=ie(N),Se=I===""?"."+dt(N,0):I,K(ie)?(F="",Se!=null&&(F=Se.replace(tl,"$&/")+"/"),B(ie,X,F,"",function(eu){return eu})):ie!=null&&(ke(ie)&&(ie=Te(ie,F+(ie.key==null||N&&N.key===ie.key?"":(""+ie.key).replace(tl,"$&/")+"/")+Se)),X.push(ie)),1;Se=0;var rt=I===""?".":I+":";if(K(N))for(var Le=0;Le<N.length;Le++)I=N[Le],oe=rt+dt(I,Le),Se+=B(I,X,F,oe,ie);else if(Le=w(N),typeof Le=="function")for(N=Le.call(N),Le=0;!(I=N.next()).done;)I=I.value,oe=rt+dt(I,Le++),Se+=B(I,X,F,oe,ie);else if(oe==="object"){if(typeof N.then=="function")return B(ut(N),X,F,I,ie);throw X=String(N),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return Se}function J(N,X,F){if(N==null)return N;var I=[],ie=0;return B(N,I,"","",function(oe){return X.call(F,oe,ie++)}),I}function ne(N){if(N._status===-1){var X=N._result;X=X(),X.then(function(F){(N._status===0||N._status===-1)&&(N._status=1,N._result=F)},function(F){(N._status===0||N._status===-1)&&(N._status=2,N._result=F)}),N._status===-1&&(N._status=0,N._result=X)}if(N._status===1)return N._result.default;throw N._result}var Ce=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=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(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)},Me={map:J,forEach:function(N,X,F){J(N,function(){X.apply(this,arguments)},F)},count:function(N){var X=0;return J(N,function(){X++}),X},toArray:function(N){return J(N,function(X){return X})||[]},only:function(N){if(!ke(N))throw Error("React.Children.only expected to receive a single React element child.");return N}};return ue.Activity=g,ue.Children=Me,ue.Component=U,ue.Fragment=r,ue.Profiler=d,ue.PureComponent=q,ue.StrictMode=c,ue.Suspense=x,ue.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=k,ue.__COMPILER_RUNTIME={__proto__:null,c:function(N){return k.H.useMemoCache(N)}},ue.cache=function(N){return function(){return N.apply(null,arguments)}},ue.cacheSignal=function(){return null},ue.cloneElement=function(N,X,F){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var I=R({},N.props),ie=N.key;if(X!=null)for(oe in X.key!==void 0&&(ie=""+X.key),X)!ae.call(X,oe)||oe==="key"||oe==="__self"||oe==="__source"||oe==="ref"&&X.ref===void 0||(I[oe]=X[oe]);var oe=arguments.length-2;if(oe===1)I.children=F;else if(1<oe){for(var Se=Array(oe),rt=0;rt<oe;rt++)Se[rt]=arguments[rt+2];I.children=Se}return he(N.type,ie,I)},ue.createContext=function(N){return N={$$typeof:y,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:m,_context:N},N},ue.createElement=function(N,X,F){var I,ie={},oe=null;if(X!=null)for(I in X.key!==void 0&&(oe=""+X.key),X)ae.call(X,I)&&I!=="key"&&I!=="__self"&&I!=="__source"&&(ie[I]=X[I]);var Se=arguments.length-2;if(Se===1)ie.children=F;else if(1<Se){for(var rt=Array(Se),Le=0;Le<Se;Le++)rt[Le]=arguments[Le+2];ie.children=rt}if(N&&N.defaultProps)for(I in Se=N.defaultProps,Se)ie[I]===void 0&&(ie[I]=Se[I]);return he(N,oe,ie)},ue.createRef=function(){return{current:null}},ue.forwardRef=function(N){return{$$typeof:p,render:N}},ue.isValidElement=ke,ue.lazy=function(N){return{$$typeof:T,_payload:{_status:-1,_result:N},_init:ne}},ue.memo=function(N,X){return{$$typeof:v,type:N,compare:X===void 0?null:X}},ue.startTransition=function(N){var X=k.T,F={};k.T=F;try{var I=N(),ie=k.S;ie!==null&&ie(F,I),typeof I=="object"&&I!==null&&typeof I.then=="function"&&I.then(V,Ce)}catch(oe){Ce(oe)}finally{X!==null&&F.types!==null&&(X.types=F.types),k.T=X}},ue.unstable_useCacheRefresh=function(){return k.H.useCacheRefresh()},ue.use=function(N){return k.H.use(N)},ue.useActionState=function(N,X,F){return k.H.useActionState(N,X,F)},ue.useCallback=function(N,X){return k.H.useCallback(N,X)},ue.useContext=function(N){return k.H.useContext(N)},ue.useDebugValue=function(){},ue.useDeferredValue=function(N,X){return k.H.useDeferredValue(N,X)},ue.useEffect=function(N,X){return k.H.useEffect(N,X)},ue.useEffectEvent=function(N){return k.H.useEffectEvent(N)},ue.useId=function(){return k.H.useId()},ue.useImperativeHandle=function(N,X,F){return k.H.useImperativeHandle(N,X,F)},ue.useInsertionEffect=function(N,X){return k.H.useInsertionEffect(N,X)},ue.useLayoutEffect=function(N,X){return k.H.useLayoutEffect(N,X)},ue.useMemo=function(N,X){return k.H.useMemo(N,X)},ue.useOptimistic=function(N,X){return k.H.useOptimistic(N,X)},ue.useReducer=function(N,X,F){return k.H.useReducer(N,X,F)},ue.useRef=function(N){return k.H.useRef(N)},ue.useState=function(N){return k.H.useState(N)},ue.useSyncExternalStore=function(N,X,F){return k.H.useSyncExternalStore(N,X,F)},ue.useTransition=function(){return k.H.useTransition()},ue.version="19.2.4",ue}var ty;function wo(){return ty||(ty=1,uo.exports=tg()),uo.exports}var j=wo(),io={exports:{}},Fu={},so={exports:{}},ro={};/**
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 ly;function lg(){return ly||(ly=1,(function(u){function i(B,J){var ne=B.length;B.push(J);e:for(;0<ne;){var Ce=ne-1>>>1,Me=B[Ce];if(0<d(Me,J))B[Ce]=J,B[ne]=Me,ne=Ce;else break e}}function r(B){return B.length===0?null:B[0]}function c(B){if(B.length===0)return null;var J=B[0],ne=B.pop();if(ne!==J){B[0]=ne;e:for(var Ce=0,Me=B.length,N=Me>>>1;Ce<N;){var X=2*(Ce+1)-1,F=B[X],I=X+1,ie=B[I];if(0>d(F,ne))I<Me&&0>d(ie,F)?(B[Ce]=ie,B[I]=ne,Ce=I):(B[Ce]=F,B[X]=ne,Ce=X);else if(I<Me&&0>d(ie,ne))B[Ce]=ie,B[I]=ne,Ce=I;else break e}}return J}function d(B,J){var ne=B.sortIndex-J.sortIndex;return ne!==0?ne:B.id-J.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var m=performance;u.unstable_now=function(){return m.now()}}else{var y=Date,p=y.now();u.unstable_now=function(){return y.now()-p}}var x=[],v=[],T=1,g=null,_=3,w=!1,Z=!1,R=!1,L=!1,U=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,q=typeof setImmediate<"u"?setImmediate:null;function O(B){for(var J=r(v);J!==null;){if(J.callback===null)c(v);else if(J.startTime<=B)c(v),J.sortIndex=J.expirationTime,i(x,J);else break;J=r(v)}}function K(B){if(R=!1,O(B),!Z)if(r(x)!==null)Z=!0,V||(V=!0,Je());else{var J=r(v);J!==null&&ut(K,J.startTime-B)}}var V=!1,k=-1,ae=5,he=-1;function Te(){return L?!0:!(u.unstable_now()-he<ae)}function ke(){if(L=!1,V){var B=u.unstable_now();he=B;var J=!0;try{e:{Z=!1,R&&(R=!1,Y(k),k=-1),w=!0;var ne=_;try{t:{for(O(B),g=r(x);g!==null&&!(g.expirationTime>B&&Te());){var Ce=g.callback;if(typeof Ce=="function"){g.callback=null,_=g.priorityLevel;var Me=Ce(g.expirationTime<=B);if(B=u.unstable_now(),typeof Me=="function"){g.callback=Me,O(B),J=!0;break t}g===r(x)&&c(x),O(B)}else c(x);g=r(x)}if(g!==null)J=!0;else{var N=r(v);N!==null&&ut(K,N.startTime-B),J=!1}}break e}finally{g=null,_=ne,w=!1}J=void 0}}finally{J?Je():V=!1}}}var Je;if(typeof q=="function")Je=function(){q(ke)};else if(typeof MessageChannel<"u"){var tl=new MessageChannel,dt=tl.port2;tl.port1.onmessage=ke,Je=function(){dt.postMessage(null)}}else Je=function(){U(ke,0)};function ut(B,J){k=U(function(){B(u.unstable_now())},J)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(B){B.callback=null},u.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<B?Math.floor(1e3/B):5},u.unstable_getCurrentPriorityLevel=function(){return _},u.unstable_next=function(B){switch(_){case 1:case 2:case 3:var J=3;break;default:J=_}var ne=_;_=J;try{return B()}finally{_=ne}},u.unstable_requestPaint=function(){L=!0},u.unstable_runWithPriority=function(B,J){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var ne=_;_=B;try{return J()}finally{_=ne}},u.unstable_scheduleCallback=function(B,J,ne){var Ce=u.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?Ce+ne:Ce):ne=Ce,B){case 1:var Me=-1;break;case 2:Me=250;break;case 5:Me=1073741823;break;case 4:Me=1e4;break;default:Me=5e3}return Me=ne+Me,B={id:T++,callback:J,priorityLevel:B,startTime:ne,expirationTime:Me,sortIndex:-1},ne>Ce?(B.sortIndex=ne,i(v,B),r(x)===null&&B===r(v)&&(R?(Y(k),k=-1):R=!0,ut(K,ne-Ce))):(B.sortIndex=Me,i(x,B),Z||w||(Z=!0,V||(V=!0,Je()))),B},u.unstable_shouldYield=Te,u.unstable_wrapCallback=function(B){var J=_;return function(){var ne=_;_=J;try{return B.apply(this,arguments)}finally{_=ne}}}})(ro)),ro}var ay;function ag(){return ay||(ay=1,so.exports=lg()),so.exports}var co={exports:{}},it={};/**
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 ny;function ng(){if(ny)return it;ny=1;var u=wo();function i(x){var v="https://react.dev/errors/"+x;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)v+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+x+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function r(){}var c={d:{f:r,r:function(){throw Error(i(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},d=Symbol.for("react.portal");function m(x,v,T){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:d,key:g==null?null:""+g,children:x,containerInfo:v,implementation:T}}var y=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(x,v){if(x==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,it.createPortal=function(x,v){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(i(299));return m(x,v,null,T)},it.flushSync=function(x){var v=y.T,T=c.p;try{if(y.T=null,c.p=2,x)return x()}finally{y.T=v,c.p=T,c.d.f()}},it.preconnect=function(x,v){typeof x=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,c.d.C(x,v))},it.prefetchDNS=function(x){typeof x=="string"&&c.d.D(x)},it.preinit=function(x,v){if(typeof x=="string"&&v&&typeof v.as=="string"){var T=v.as,g=p(T,v.crossOrigin),_=typeof v.integrity=="string"?v.integrity:void 0,w=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;T==="style"?c.d.S(x,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:g,integrity:_,fetchPriority:w}):T==="script"&&c.d.X(x,{crossOrigin:g,integrity:_,fetchPriority:w,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},it.preinitModule=function(x,v){if(typeof x=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var T=p(v.as,v.crossOrigin);c.d.M(x,{crossOrigin:T,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&c.d.M(x)},it.preload=function(x,v){if(typeof x=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var T=v.as,g=p(T,v.crossOrigin);c.d.L(x,T,{crossOrigin:g,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},it.preloadModule=function(x,v){if(typeof x=="string")if(v){var T=p(v.as,v.crossOrigin);c.d.m(x,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:T,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else c.d.m(x)},it.requestFormReset=function(x){c.d.r(x)},it.unstable_batchedUpdates=function(x,v){return x(v)},it.useFormState=function(x,v,T){return y.H.useFormState(x,v,T)},it.useFormStatus=function(){return y.H.useHostTransitionStatus()},it.version="19.2.4",it}var uy;function ug(){if(uy)return co.exports;uy=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(i){console.error(i)}}return u(),co.exports=ng(),co.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 ig(){if(iy)return Fu;iy=1;var u=ag(),i=wo(),r=ug();function c(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)t+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function d(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function m(e){var t=e,l=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(l=t.return),e=t.return;while(e)}return t.tag===3?l:null}function y(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function x(e){if(m(e)!==e)throw Error(c(188))}function v(e){var t=e.alternate;if(!t){if(t=m(e),t===null)throw Error(c(188));return t!==e?null:e}for(var l=e,a=t;;){var n=l.return;if(n===null)break;var s=n.alternate;if(s===null){if(a=n.return,a!==null){l=a;continue}break}if(n.child===s.child){for(s=n.child;s;){if(s===l)return x(n),e;if(s===a)return x(n),t;s=s.sibling}throw Error(c(188))}if(l.return!==a.return)l=n,a=s;else{for(var f=!1,h=n.child;h;){if(h===l){f=!0,l=n,a=s;break}if(h===a){f=!0,a=n,l=s;break}h=h.sibling}if(!f){for(h=s.child;h;){if(h===l){f=!0,l=s,a=n;break}if(h===a){f=!0,a=s,l=n;break}h=h.sibling}if(!f)throw Error(c(189))}}if(l.alternate!==a)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?e:t}function T(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=T(e),t!==null)return t;e=e.sibling}return null}var g=Object.assign,_=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),q=Symbol.for("react.context"),O=Symbol.for("react.forward_ref"),K=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),ae=Symbol.for("react.lazy"),he=Symbol.for("react.activity"),Te=Symbol.for("react.memo_cache_sentinel"),ke=Symbol.iterator;function Je(e){return e===null||typeof e!="object"?null:(e=ke&&e[ke]||e["@@iterator"],typeof e=="function"?e:null)}var tl=Symbol.for("react.client.reference");function dt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===tl?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case R:return"Fragment";case U:return"Profiler";case L:return"StrictMode";case K:return"Suspense";case V:return"SuspenseList";case he:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Z:return"Portal";case q:return e.displayName||"Context";case Y:return(e._context.displayName||"Context")+".Consumer";case O:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case k:return t=e.displayName||null,t!==null?t:dt(e.type)||"Memo";case ae:t=e._payload,e=e._init;try{return dt(e(t))}catch{}}return null}var ut=Array.isArray,B=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},Ce=[],Me=-1;function N(e){return{current:e}}function X(e){0>Me||(e.current=Ce[Me],Ce[Me]=null,Me--)}function F(e,t){Me++,Ce[Me]=e.current,e.current=t}var I=N(null),ie=N(null),oe=N(null),Se=N(null);function rt(e,t){switch(F(oe,t),F(ie,e),F(I,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?bm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=bm(t),e=Sm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}X(I),F(I,e)}function Le(){X(I),X(ie),X(oe)}function eu(e){e.memoizedState!==null&&F(Se,e);var t=I.current,l=Sm(t,e.type);t!==l&&(F(ie,e),F(I,l))}function ri(e){ie.current===e&&(X(I),X(ie)),Se.current===e&&(X(Se),Xu._currentValue=ne)}var Qs,Fo;function Ea(e){if(Qs===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Qs=t&&t[1]||"",Fo=-1<l.stack.indexOf(`
42
- at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
43
- `+Qs+e+Fo}var Ls=!1;function Ys(e,t){if(!e||Ls)return"";Ls=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var G=function(){throw Error()};if(Object.defineProperty(G.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(G,[])}catch(D){var z=D}Reflect.construct(e,[],G)}else{try{G.call()}catch(D){z=D}e.call(G.prototype)}}else{try{throw Error()}catch(D){z=D}(G=e())&&typeof G.catch=="function"&&G.catch(function(){})}}catch(D){if(D&&z&&typeof D.stack=="string")return[D.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=a.DetermineComponentFrameRoot(),f=s[0],h=s[1];if(f&&h){var b=f.split(`
44
- `),M=h.split(`
45
- `);for(n=a=0;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;for(;n<M.length&&!M[n].includes("DetermineComponentFrameRoot");)n++;if(a===b.length||n===M.length)for(a=b.length-1,n=M.length-1;1<=a&&0<=n&&b[a]!==M[n];)n--;for(;1<=a&&0<=n;a--,n--)if(b[a]!==M[n]){if(a!==1||n!==1)do if(a--,n--,0>n||b[a]!==M[n]){var H=`
46
- `+b[a].replace(" at new "," at ");return e.displayName&&H.includes("<anonymous>")&&(H=H.replace("<anonymous>",e.displayName)),H}while(1<=a&&0<=n);break}}}finally{Ls=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?Ea(l):""}function Rv(e,t){switch(e.tag){case 26:case 27:case 5:return Ea(e.type);case 16:return Ea("Lazy");case 13:return e.child!==t&&t!==null?Ea("Suspense Fallback"):Ea("Suspense");case 19:return Ea("SuspenseList");case 0:case 15:return Ys(e.type,!1);case 11:return Ys(e.type.render,!1);case 1:return Ys(e.type,!0);case 31:return Ea("Activity");default:return""}}function $o(e){try{var t="",l=null;do t+=Rv(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
47
- Error generating stack: `+a.message+`
48
- `+a.stack}}var Gs=Object.prototype.hasOwnProperty,Xs=u.unstable_scheduleCallback,Zs=u.unstable_cancelCallback,Av=u.unstable_shouldYield,Mv=u.unstable_requestPaint,jt=u.unstable_now,zv=u.unstable_getCurrentPriorityLevel,Wo=u.unstable_ImmediatePriority,Io=u.unstable_UserBlockingPriority,ci=u.unstable_NormalPriority,_v=u.unstable_LowPriority,Po=u.unstable_IdlePriority,Dv=u.log,Uv=u.unstable_setDisableYieldValue,tu=null,Nt=null;function Bl(e){if(typeof Dv=="function"&&Uv(e),Nt&&typeof Nt.setStrictMode=="function")try{Nt.setStrictMode(tu,e)}catch{}}var Tt=Math.clz32?Math.clz32:qv,wv=Math.log,Hv=Math.LN2;function qv(e){return e>>>=0,e===0?32:31-(wv(e)/Hv|0)|0}var oi=256,fi=262144,di=4194304;function ja(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function hi(e,t,l){var a=e.pendingLanes;if(a===0)return 0;var n=0,s=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var h=a&134217727;return h!==0?(a=h&~s,a!==0?n=ja(a):(f&=h,f!==0?n=ja(f):l||(l=h&~e,l!==0&&(n=ja(l))))):(h=a&~s,h!==0?n=ja(h):f!==0?n=ja(f):l||(l=a&~e,l!==0&&(n=ja(l)))),n===0?0:t!==0&&t!==n&&(t&s)===0&&(s=n&-n,l=t&-t,s>=l||s===32&&(l&4194048)!==0)?t:n}function lu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Bv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ef(){var e=di;return di<<=1,(di&62914560)===0&&(di=4194304),e}function Ks(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function au(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Qv(e,t,l,a,n,s){var f=e.pendingLanes;e.pendingLanes=l,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=l,e.entangledLanes&=l,e.errorRecoveryDisabledLanes&=l,e.shellSuspendCounter=0;var h=e.entanglements,b=e.expirationTimes,M=e.hiddenUpdates;for(l=f&~l;0<l;){var H=31-Tt(l),G=1<<H;h[H]=0,b[H]=-1;var z=M[H];if(z!==null)for(M[H]=null,H=0;H<z.length;H++){var D=z[H];D!==null&&(D.lane&=-536870913)}l&=~G}a!==0&&tf(e,a,0),s!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=s&~(f&~t))}function tf(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-Tt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function lf(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-Tt(l),n=1<<a;n&t|e[a]&t&&(e[a]|=t),l&=~n}}function af(e,t){var l=t&-t;return l=(l&42)!==0?1:Vs(l),(l&(e.suspendedLanes|t))!==0?0:l}function Vs(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ks(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function nf(){var e=J.p;return e!==0?e:(e=window.event,e===void 0?32:Zm(e.type))}function uf(e,t){var l=J.p;try{return J.p=e,t()}finally{J.p=l}}var Ql=Math.random().toString(36).slice(2),et="__reactFiber$"+Ql,ht="__reactProps$"+Ql,Pa="__reactContainer$"+Ql,Js="__reactEvents$"+Ql,Lv="__reactListeners$"+Ql,Yv="__reactHandles$"+Ql,sf="__reactResources$"+Ql,nu="__reactMarker$"+Ql;function Fs(e){delete e[et],delete e[ht],delete e[Js],delete e[Lv],delete e[Yv]}function en(e){var t=e[et];if(t)return t;for(var l=e.parentNode;l;){if(t=l[Pa]||l[et]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=Rm(e);e!==null;){if(l=e[et])return l;e=Rm(e)}return t}e=l,l=e.parentNode}return null}function tn(e){if(e=e[et]||e[Pa]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function uu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(c(33))}function ln(e){var t=e[sf];return t||(t=e[sf]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function We(e){e[nu]=!0}var rf=new Set,cf={};function Na(e,t){an(e,t),an(e+"Capture",t)}function an(e,t){for(cf[e]=t,e=0;e<t.length;e++)rf.add(t[e])}var Gv=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]*$"),of={},ff={};function Xv(e){return Gs.call(ff,e)?!0:Gs.call(of,e)?!1:Gv.test(e)?ff[e]=!0:(of[e]=!0,!1)}function mi(e,t,l){if(Xv(t))if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var a=t.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+l)}}function yi(e,t,l){if(l===null)e.removeAttribute(t);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+l)}}function fl(e,t,l,a){if(a===null)e.removeAttribute(l);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(l);return}e.setAttributeNS(t,l,""+a)}}function Ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function df(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Zv(e,t,l){var a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var n=a.get,s=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(f){l=""+f,s.call(this,f)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(f){l=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function $s(e){if(!e._valueTracker){var t=df(e)?"checked":"value";e._valueTracker=Zv(e,t,""+e[t])}}function hf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=df(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function vi(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Kv=/[\n"\\]/g;function wt(e){return e.replace(Kv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Ws(e,t,l,a,n,s,f,h){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ut(t)):e.value!==""+Ut(t)&&(e.value=""+Ut(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?Is(e,f,Ut(t)):l!=null?Is(e,f,Ut(l)):a!=null&&e.removeAttribute("value"),n==null&&s!=null&&(e.defaultChecked=!!s),n!=null&&(e.checked=n&&typeof n!="function"&&typeof n!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.name=""+Ut(h):e.removeAttribute("name")}function mf(e,t,l,a,n,s,f,h){if(s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.type=s),t!=null||l!=null){if(!(s!=="submit"&&s!=="reset"||t!=null)){$s(e);return}l=l!=null?""+Ut(l):"",t=t!=null?""+Ut(t):l,h||t===e.value||(e.value=t),e.defaultValue=t}a=a??n,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=h?e.checked:!!a,e.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),$s(e)}function Is(e,t,l){t==="number"&&vi(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function nn(e,t,l,a){if(e=e.options,t){t={};for(var n=0;n<l.length;n++)t["$"+l[n]]=!0;for(l=0;l<e.length;l++)n=t.hasOwnProperty("$"+e[l].value),e[l].selected!==n&&(e[l].selected=n),n&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Ut(l),t=null,n=0;n<e.length;n++){if(e[n].value===l){e[n].selected=!0,a&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function yf(e,t,l){if(t!=null&&(t=""+Ut(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Ut(l):""}function vf(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(c(92));if(ut(a)){if(1<a.length)throw Error(c(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Ut(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),$s(e)}function un(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Vv=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 pf(e,t,l){var a=t.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?a?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":a?e.setProperty(t,l):typeof l!="number"||l===0||Vv.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function gf(e,t,l){if(t!=null&&typeof t!="object")throw Error(c(62));if(e=e.style,l!=null){for(var a in l)!l.hasOwnProperty(a)||t!=null&&t.hasOwnProperty(a)||(a.indexOf("--")===0?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="");for(var n in t)a=t[n],t.hasOwnProperty(n)&&l[n]!==a&&pf(e,n,a)}else for(var s in t)t.hasOwnProperty(s)&&pf(e,s,t[s])}function Ps(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kv=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"]]),Jv=/^[\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 pi(e){return Jv.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function dl(){}var er=null;function tr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var sn=null,rn=null;function xf(e){var t=tn(e);if(t&&(e=t.stateNode)){var l=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(Ws(e,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),t=l.name,l.type==="radio"&&t!=null){for(l=e;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+wt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var n=a[ht]||null;if(!n)throw Error(c(90));Ws(a,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&hf(a)}break e;case"textarea":yf(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&nn(e,!!l.multiple,t,!1)}}}var lr=!1;function bf(e,t,l){if(lr)return e(t,l);lr=!0;try{var a=e(t);return a}finally{if(lr=!1,(sn!==null||rn!==null)&&(ns(),sn&&(t=sn,e=rn,rn=sn=null,xf(t),e)))for(t=0;t<e.length;t++)xf(e[t])}}function iu(e,t){var l=e.stateNode;if(l===null)return null;var a=l[ht]||null;if(a===null)return null;l=a[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(a=!a.disabled)||(e=e.type,a=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!a;break e;default:e=!1}if(e)return null;if(l&&typeof l!="function")throw Error(c(231,t,typeof l));return l}var hl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ar=!1;if(hl)try{var su={};Object.defineProperty(su,"passive",{get:function(){ar=!0}}),window.addEventListener("test",su,su),window.removeEventListener("test",su,su)}catch{ar=!1}var Ll=null,nr=null,gi=null;function Sf(){if(gi)return gi;var e,t=nr,l=t.length,a,n="value"in Ll?Ll.value:Ll.textContent,s=n.length;for(e=0;e<l&&t[e]===n[e];e++);var f=l-e;for(a=1;a<=f&&t[l-a]===n[s-a];a++);return gi=n.slice(e,1<a?1-a:void 0)}function xi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function bi(){return!0}function Ef(){return!1}function mt(e){function t(l,a,n,s,f){this._reactName=l,this._targetInst=n,this.type=a,this.nativeEvent=s,this.target=f,this.currentTarget=null;for(var h in e)e.hasOwnProperty(h)&&(l=e[h],this[h]=l?l(s):s[h]);return this.isDefaultPrevented=(s.defaultPrevented!=null?s.defaultPrevented:s.returnValue===!1)?bi:Ef,this.isPropagationStopped=Ef,this}return g(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=bi)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=bi)},persist:function(){},isPersistent:bi}),t}var Ta={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Si=mt(Ta),ru=g({},Ta,{view:0,detail:0}),Fv=mt(ru),ur,ir,cu,Ei=g({},ru,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rr,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==cu&&(cu&&e.type==="mousemove"?(ur=e.screenX-cu.screenX,ir=e.screenY-cu.screenY):ir=ur=0,cu=e),ur)},movementY:function(e){return"movementY"in e?e.movementY:ir}}),jf=mt(Ei),$v=g({},Ei,{dataTransfer:0}),Wv=mt($v),Iv=g({},ru,{relatedTarget:0}),sr=mt(Iv),Pv=g({},Ta,{animationName:0,elapsedTime:0,pseudoElement:0}),ep=mt(Pv),tp=g({},Ta,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),lp=mt(tp),ap=g({},Ta,{data:0}),Nf=mt(ap),np={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},up={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"},ip={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=ip[e])?!!t[e]:!1}function rr(){return sp}var rp=g({},ru,{key:function(e){if(e.key){var t=np[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=xi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?up[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rr,charCode:function(e){return e.type==="keypress"?xi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?xi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),cp=mt(rp),op=g({},Ei,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tf=mt(op),fp=g({},ru,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rr}),dp=mt(fp),hp=g({},Ta,{propertyName:0,elapsedTime:0,pseudoElement:0}),mp=mt(hp),yp=g({},Ei,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),vp=mt(yp),pp=g({},Ta,{newState:0,oldState:0}),gp=mt(pp),xp=[9,13,27,32],cr=hl&&"CompositionEvent"in window,ou=null;hl&&"documentMode"in document&&(ou=document.documentMode);var bp=hl&&"TextEvent"in window&&!ou,Cf=hl&&(!cr||ou&&8<ou&&11>=ou),Of=" ",Rf=!1;function Af(e,t){switch(e){case"keyup":return xp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Mf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var cn=!1;function Sp(e,t){switch(e){case"compositionend":return Mf(t);case"keypress":return t.which!==32?null:(Rf=!0,Of);case"textInput":return e=t.data,e===Of&&Rf?null:e;default:return null}}function Ep(e,t){if(cn)return e==="compositionend"||!cr&&Af(e,t)?(e=Sf(),gi=nr=Ll=null,cn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Cf&&t.locale!=="ko"?null:t.data;default:return null}}var jp={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 zf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!jp[e.type]:t==="textarea"}function _f(e,t,l,a){sn?rn?rn.push(a):rn=[a]:sn=a,t=fs(t,"onChange"),0<t.length&&(l=new Si("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var fu=null,du=null;function Np(e){mm(e,0)}function ji(e){var t=uu(e);if(hf(t))return e}function Df(e,t){if(e==="change")return t}var Uf=!1;if(hl){var or;if(hl){var fr="oninput"in document;if(!fr){var wf=document.createElement("div");wf.setAttribute("oninput","return;"),fr=typeof wf.oninput=="function"}or=fr}else or=!1;Uf=or&&(!document.documentMode||9<document.documentMode)}function Hf(){fu&&(fu.detachEvent("onpropertychange",qf),du=fu=null)}function qf(e){if(e.propertyName==="value"&&ji(du)){var t=[];_f(t,du,e,tr(e)),bf(Np,t)}}function Tp(e,t,l){e==="focusin"?(Hf(),fu=t,du=l,fu.attachEvent("onpropertychange",qf)):e==="focusout"&&Hf()}function Cp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ji(du)}function Op(e,t){if(e==="click")return ji(t)}function Rp(e,t){if(e==="input"||e==="change")return ji(t)}function Ap(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ct=typeof Object.is=="function"?Object.is:Ap;function hu(e,t){if(Ct(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var l=Object.keys(e),a=Object.keys(t);if(l.length!==a.length)return!1;for(a=0;a<l.length;a++){var n=l[a];if(!Gs.call(t,n)||!Ct(e[n],t[n]))return!1}return!0}function Bf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Qf(e,t){var l=Bf(e);e=0;for(var a;l;){if(l.nodeType===3){if(a=e+l.textContent.length,e<=t&&a>=t)return{node:l,offset:t-e};e=a}e:{for(;l;){if(l.nextSibling){l=l.nextSibling;break e}l=l.parentNode}l=void 0}l=Bf(l)}}function Lf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Lf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Yf(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=vi(e.document);t instanceof e.HTMLIFrameElement;){try{var l=typeof t.contentWindow.location.href=="string"}catch{l=!1}if(l)e=t.contentWindow;else break;t=vi(e.document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Mp=hl&&"documentMode"in document&&11>=document.documentMode,on=null,hr=null,mu=null,mr=!1;function Gf(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;mr||on==null||on!==vi(a)||(a=on,"selectionStart"in a&&dr(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),mu&&hu(mu,a)||(mu=a,a=fs(hr,"onSelect"),0<a.length&&(t=new Si("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=on)))}function Ca(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var fn={animationend:Ca("Animation","AnimationEnd"),animationiteration:Ca("Animation","AnimationIteration"),animationstart:Ca("Animation","AnimationStart"),transitionrun:Ca("Transition","TransitionRun"),transitionstart:Ca("Transition","TransitionStart"),transitioncancel:Ca("Transition","TransitionCancel"),transitionend:Ca("Transition","TransitionEnd")},yr={},Xf={};hl&&(Xf=document.createElement("div").style,"AnimationEvent"in window||(delete fn.animationend.animation,delete fn.animationiteration.animation,delete fn.animationstart.animation),"TransitionEvent"in window||delete fn.transitionend.transition);function Oa(e){if(yr[e])return yr[e];if(!fn[e])return e;var t=fn[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Xf)return yr[e]=t[l];return e}var Zf=Oa("animationend"),Kf=Oa("animationiteration"),Vf=Oa("animationstart"),zp=Oa("transitionrun"),_p=Oa("transitionstart"),Dp=Oa("transitioncancel"),kf=Oa("transitionend"),Jf=new Map,vr="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(" ");vr.push("scrollEnd");function Ft(e,t){Jf.set(e,t),Na(t,[e])}var Ni=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ht=[],dn=0,pr=0;function Ti(){for(var e=dn,t=pr=dn=0;t<e;){var l=Ht[t];Ht[t++]=null;var a=Ht[t];Ht[t++]=null;var n=Ht[t];Ht[t++]=null;var s=Ht[t];if(Ht[t++]=null,a!==null&&n!==null){var f=a.pending;f===null?n.next=n:(n.next=f.next,f.next=n),a.pending=n}s!==0&&Ff(l,n,s)}}function Ci(e,t,l,a){Ht[dn++]=e,Ht[dn++]=t,Ht[dn++]=l,Ht[dn++]=a,pr|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function gr(e,t,l,a){return Ci(e,t,l,a),Oi(e)}function Ra(e,t){return Ci(e,null,null,t),Oi(e)}function Ff(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var n=!1,s=e.return;s!==null;)s.childLanes|=l,a=s.alternate,a!==null&&(a.childLanes|=l),s.tag===22&&(e=s.stateNode,e===null||e._visibility&1||(n=!0)),e=s,s=s.return;return e.tag===3?(s=e.stateNode,n&&t!==null&&(n=31-Tt(l),e=s.hiddenUpdates,a=e[n],a===null?e[n]=[t]:a.push(t),t.lane=l|536870912),s):null}function Oi(e){if(50<Hu)throw Hu=0,Oc=null,Error(c(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var hn={};function Up(e,t,l,a){this.tag=e,this.key=l,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ot(e,t,l,a){return new Up(e,t,l,a)}function xr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ml(e,t){var l=e.alternate;return l===null?(l=Ot(e.tag,t,e.key,e.mode),l.elementType=e.elementType,l.type=e.type,l.stateNode=e.stateNode,l.alternate=e,e.alternate=l):(l.pendingProps=t,l.type=e.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=e.flags&65011712,l.childLanes=e.childLanes,l.lanes=e.lanes,l.child=e.child,l.memoizedProps=e.memoizedProps,l.memoizedState=e.memoizedState,l.updateQueue=e.updateQueue,t=e.dependencies,l.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},l.sibling=e.sibling,l.index=e.index,l.ref=e.ref,l.refCleanup=e.refCleanup,l}function $f(e,t){e.flags&=65011714;var l=e.alternate;return l===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=l.childLanes,e.lanes=l.lanes,e.child=l.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=l.memoizedProps,e.memoizedState=l.memoizedState,e.updateQueue=l.updateQueue,e.type=l.type,t=l.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ri(e,t,l,a,n,s){var f=0;if(a=e,typeof e=="function")xr(e)&&(f=1);else if(typeof e=="string")f=Q0(e,l,I.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case he:return e=Ot(31,l,t,n),e.elementType=he,e.lanes=s,e;case R:return Aa(l.children,n,s,t);case L:f=8,n|=24;break;case U:return e=Ot(12,l,t,n|2),e.elementType=U,e.lanes=s,e;case K:return e=Ot(13,l,t,n),e.elementType=K,e.lanes=s,e;case V:return e=Ot(19,l,t,n),e.elementType=V,e.lanes=s,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case q:f=10;break e;case Y:f=9;break e;case O:f=11;break e;case k:f=14;break e;case ae:f=16,a=null;break e}f=29,l=Error(c(130,e===null?"null":typeof e,"")),a=null}return t=Ot(f,l,t,n),t.elementType=e,t.type=a,t.lanes=s,t}function Aa(e,t,l,a){return e=Ot(7,e,a,t),e.lanes=l,e}function br(e,t,l){return e=Ot(6,e,null,t),e.lanes=l,e}function Wf(e){var t=Ot(18,null,null,0);return t.stateNode=e,t}function Sr(e,t,l){return t=Ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var If=new WeakMap;function qt(e,t){if(typeof e=="object"&&e!==null){var l=If.get(e);return l!==void 0?l:(t={value:e,source:t,stack:$o(t)},If.set(e,t),t)}return{value:e,source:t,stack:$o(t)}}var mn=[],yn=0,Ai=null,yu=0,Bt=[],Qt=0,Yl=null,ll=1,al="";function yl(e,t){mn[yn++]=yu,mn[yn++]=Ai,Ai=e,yu=t}function Pf(e,t,l){Bt[Qt++]=ll,Bt[Qt++]=al,Bt[Qt++]=Yl,Yl=e;var a=ll;e=al;var n=32-Tt(a)-1;a&=~(1<<n),l+=1;var s=32-Tt(t)+n;if(30<s){var f=n-n%5;s=(a&(1<<f)-1).toString(32),a>>=f,n-=f,ll=1<<32-Tt(t)+n|l<<n|a,al=s+e}else ll=1<<s|l<<n|a,al=e}function Er(e){e.return!==null&&(yl(e,1),Pf(e,1,0))}function jr(e){for(;e===Ai;)Ai=mn[--yn],mn[yn]=null,yu=mn[--yn],mn[yn]=null;for(;e===Yl;)Yl=Bt[--Qt],Bt[Qt]=null,al=Bt[--Qt],Bt[Qt]=null,ll=Bt[--Qt],Bt[Qt]=null}function ed(e,t){Bt[Qt++]=ll,Bt[Qt++]=al,Bt[Qt++]=Yl,ll=t.id,al=t.overflow,Yl=e}var tt=null,_e=null,ve=!1,Gl=null,Lt=!1,Nr=Error(c(519));function Xl(e){var t=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vu(qt(t,e)),Nr}function td(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[et]=e,t[ht]=a,l){case"dialog":de("cancel",t),de("close",t);break;case"iframe":case"object":case"embed":de("load",t);break;case"video":case"audio":for(l=0;l<Bu.length;l++)de(Bu[l],t);break;case"source":de("error",t);break;case"img":case"image":case"link":de("error",t),de("load",t);break;case"details":de("toggle",t);break;case"input":de("invalid",t),mf(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":de("invalid",t);break;case"textarea":de("invalid",t),vf(t,a.value,a.defaultValue,a.children)}l=a.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||t.textContent===""+l||a.suppressHydrationWarning===!0||gm(t.textContent,l)?(a.popover!=null&&(de("beforetoggle",t),de("toggle",t)),a.onScroll!=null&&de("scroll",t),a.onScrollEnd!=null&&de("scrollend",t),a.onClick!=null&&(t.onclick=dl),t=!0):t=!1,t||Xl(e,!0)}function ld(e){for(tt=e.return;tt;)switch(tt.tag){case 5:case 31:case 13:Lt=!1;return;case 27:case 3:Lt=!0;return;default:tt=tt.return}}function vn(e){if(e!==tt)return!1;if(!ve)return ld(e),ve=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Gc(e.type,e.memoizedProps)),l=!l),l&&_e&&Xl(e),ld(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));_e=Om(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(317));_e=Om(e)}else t===27?(t=_e,aa(e.type)?(e=kc,kc=null,_e=e):_e=t):_e=tt?Gt(e.stateNode.nextSibling):null;return!0}function Ma(){_e=tt=null,ve=!1}function Tr(){var e=Gl;return e!==null&&(gt===null?gt=e:gt.push.apply(gt,e),Gl=null),e}function vu(e){Gl===null?Gl=[e]:Gl.push(e)}var Cr=N(null),za=null,vl=null;function Zl(e,t,l){F(Cr,t._currentValue),t._currentValue=l}function pl(e){e._currentValue=Cr.current,X(Cr)}function Or(e,t,l){for(;e!==null;){var a=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,a!==null&&(a.childLanes|=t)):a!==null&&(a.childLanes&t)!==t&&(a.childLanes|=t),e===l)break;e=e.return}}function Rr(e,t,l,a){var n=e.child;for(n!==null&&(n.return=e);n!==null;){var s=n.dependencies;if(s!==null){var f=n.child;s=s.firstContext;e:for(;s!==null;){var h=s;s=n;for(var b=0;b<t.length;b++)if(h.context===t[b]){s.lanes|=l,h=s.alternate,h!==null&&(h.lanes|=l),Or(s.return,l,e),a||(f=null);break e}s=h.next}}else if(n.tag===18){if(f=n.return,f===null)throw Error(c(341));f.lanes|=l,s=f.alternate,s!==null&&(s.lanes|=l),Or(f,l,e),f=null}else f=n.child;if(f!==null)f.return=n;else for(f=n;f!==null;){if(f===e){f=null;break}if(n=f.sibling,n!==null){n.return=f.return,f=n;break}f=f.return}n=f}}function pn(e,t,l,a){e=null;for(var n=t,s=!1;n!==null;){if(!s){if((n.flags&524288)!==0)s=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var f=n.alternate;if(f===null)throw Error(c(387));if(f=f.memoizedProps,f!==null){var h=n.type;Ct(n.pendingProps.value,f.value)||(e!==null?e.push(h):e=[h])}}else if(n===Se.current){if(f=n.alternate,f===null)throw Error(c(387));f.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(Xu):e=[Xu])}n=n.return}e!==null&&Rr(t,e,l,a),t.flags|=262144}function Mi(e){for(e=e.firstContext;e!==null;){if(!Ct(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function _a(e){za=e,vl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return ad(za,e)}function zi(e,t){return za===null&&_a(e),ad(e,t)}function ad(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},vl===null){if(e===null)throw Error(c(308));vl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else vl=vl.next=t;return l}var wp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(l,a){e.push(a)}};this.abort=function(){t.aborted=!0,e.forEach(function(l){return l()})}},Hp=u.unstable_scheduleCallback,qp=u.unstable_NormalPriority,Xe={$$typeof:q,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ar(){return{controller:new wp,data:new Map,refCount:0}}function pu(e){e.refCount--,e.refCount===0&&Hp(qp,function(){e.controller.abort()})}var gu=null,Mr=0,gn=0,xn=null;function Bp(e,t){if(gu===null){var l=gu=[];Mr=0,gn=Dc(),xn={status:"pending",value:void 0,then:function(a){l.push(a)}}}return Mr++,t.then(nd,nd),t}function nd(){if(--Mr===0&&gu!==null){xn!==null&&(xn.status="fulfilled");var e=gu;gu=null,gn=0,xn=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Qp(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(n){l.push(n)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var n=0;n<l.length;n++)(0,l[n])(t)},function(n){for(a.status="rejected",a.reason=n,n=0;n<l.length;n++)(0,l[n])(void 0)}),a}var ud=B.S;B.S=function(e,t){Gh=jt(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Bp(e,t),ud!==null&&ud(e,t)};var Da=N(null);function zr(){var e=Da.current;return e!==null?e:ze.pooledCache}function _i(e,t){t===null?F(Da,Da.current):F(Da,t.pool)}function id(){var e=zr();return e===null?null:{parent:Xe._currentValue,pool:e}}var bn=Error(c(460)),_r=Error(c(474)),Di=Error(c(542)),Ui={then:function(){}};function sd(e){return e=e.status,e==="fulfilled"||e==="rejected"}function rd(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(dl,dl),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,od(e),e;default:if(typeof t.status=="string")t.then(dl,dl);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(c(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var n=t;n.status="fulfilled",n.value=a}},function(a){if(t.status==="pending"){var n=t;n.status="rejected",n.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,od(e),e}throw wa=t,bn}}function Ua(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(wa=l,bn):l}}var wa=null;function cd(){if(wa===null)throw Error(c(459));var e=wa;return wa=null,e}function od(e){if(e===bn||e===Di)throw Error(c(483))}var Sn=null,xu=0;function wi(e){var t=xu;return xu+=1,Sn===null&&(Sn=[]),rd(Sn,e,t)}function bu(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Hi(e,t){throw t.$$typeof===_?Error(c(525)):(e=Object.prototype.toString.call(t),Error(c(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function fd(e){function t(C,E){if(e){var A=C.deletions;A===null?(C.deletions=[E],C.flags|=16):A.push(E)}}function l(C,E){if(!e)return null;for(;E!==null;)t(C,E),E=E.sibling;return null}function a(C){for(var E=new Map;C!==null;)C.key!==null?E.set(C.key,C):E.set(C.index,C),C=C.sibling;return E}function n(C,E){return C=ml(C,E),C.index=0,C.sibling=null,C}function s(C,E,A){return C.index=A,e?(A=C.alternate,A!==null?(A=A.index,A<E?(C.flags|=67108866,E):A):(C.flags|=67108866,E)):(C.flags|=1048576,E)}function f(C){return e&&C.alternate===null&&(C.flags|=67108866),C}function h(C,E,A,Q){return E===null||E.tag!==6?(E=br(A,C.mode,Q),E.return=C,E):(E=n(E,A),E.return=C,E)}function b(C,E,A,Q){var te=A.type;return te===R?H(C,E,A.props.children,Q,A.key):E!==null&&(E.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===ae&&Ua(te)===E.type)?(E=n(E,A.props),bu(E,A),E.return=C,E):(E=Ri(A.type,A.key,A.props,null,C.mode,Q),bu(E,A),E.return=C,E)}function M(C,E,A,Q){return E===null||E.tag!==4||E.stateNode.containerInfo!==A.containerInfo||E.stateNode.implementation!==A.implementation?(E=Sr(A,C.mode,Q),E.return=C,E):(E=n(E,A.children||[]),E.return=C,E)}function H(C,E,A,Q,te){return E===null||E.tag!==7?(E=Aa(A,C.mode,Q,te),E.return=C,E):(E=n(E,A),E.return=C,E)}function G(C,E,A){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=br(""+E,C.mode,A),E.return=C,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case w:return A=Ri(E.type,E.key,E.props,null,C.mode,A),bu(A,E),A.return=C,A;case Z:return E=Sr(E,C.mode,A),E.return=C,E;case ae:return E=Ua(E),G(C,E,A)}if(ut(E)||Je(E))return E=Aa(E,C.mode,A,null),E.return=C,E;if(typeof E.then=="function")return G(C,wi(E),A);if(E.$$typeof===q)return G(C,zi(C,E),A);Hi(C,E)}return null}function z(C,E,A,Q){var te=E!==null?E.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return te!==null?null:h(C,E,""+A,Q);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case w:return A.key===te?b(C,E,A,Q):null;case Z:return A.key===te?M(C,E,A,Q):null;case ae:return A=Ua(A),z(C,E,A,Q)}if(ut(A)||Je(A))return te!==null?null:H(C,E,A,Q,null);if(typeof A.then=="function")return z(C,E,wi(A),Q);if(A.$$typeof===q)return z(C,E,zi(C,A),Q);Hi(C,A)}return null}function D(C,E,A,Q,te){if(typeof Q=="string"&&Q!==""||typeof Q=="number"||typeof Q=="bigint")return C=C.get(A)||null,h(E,C,""+Q,te);if(typeof Q=="object"&&Q!==null){switch(Q.$$typeof){case w:return C=C.get(Q.key===null?A:Q.key)||null,b(E,C,Q,te);case Z:return C=C.get(Q.key===null?A:Q.key)||null,M(E,C,Q,te);case ae:return Q=Ua(Q),D(C,E,A,Q,te)}if(ut(Q)||Je(Q))return C=C.get(A)||null,H(E,C,Q,te,null);if(typeof Q.then=="function")return D(C,E,A,wi(Q),te);if(Q.$$typeof===q)return D(C,E,A,zi(E,Q),te);Hi(E,Q)}return null}function W(C,E,A,Q){for(var te=null,ge=null,P=E,re=E=0,ye=null;P!==null&&re<A.length;re++){P.index>re?(ye=P,P=null):ye=P.sibling;var xe=z(C,P,A[re],Q);if(xe===null){P===null&&(P=ye);break}e&&P&&xe.alternate===null&&t(C,P),E=s(xe,E,re),ge===null?te=xe:ge.sibling=xe,ge=xe,P=ye}if(re===A.length)return l(C,P),ve&&yl(C,re),te;if(P===null){for(;re<A.length;re++)P=G(C,A[re],Q),P!==null&&(E=s(P,E,re),ge===null?te=P:ge.sibling=P,ge=P);return ve&&yl(C,re),te}for(P=a(P);re<A.length;re++)ye=D(P,C,re,A[re],Q),ye!==null&&(e&&ye.alternate!==null&&P.delete(ye.key===null?re:ye.key),E=s(ye,E,re),ge===null?te=ye:ge.sibling=ye,ge=ye);return e&&P.forEach(function(ra){return t(C,ra)}),ve&&yl(C,re),te}function le(C,E,A,Q){if(A==null)throw Error(c(151));for(var te=null,ge=null,P=E,re=E=0,ye=null,xe=A.next();P!==null&&!xe.done;re++,xe=A.next()){P.index>re?(ye=P,P=null):ye=P.sibling;var ra=z(C,P,xe.value,Q);if(ra===null){P===null&&(P=ye);break}e&&P&&ra.alternate===null&&t(C,P),E=s(ra,E,re),ge===null?te=ra:ge.sibling=ra,ge=ra,P=ye}if(xe.done)return l(C,P),ve&&yl(C,re),te;if(P===null){for(;!xe.done;re++,xe=A.next())xe=G(C,xe.value,Q),xe!==null&&(E=s(xe,E,re),ge===null?te=xe:ge.sibling=xe,ge=xe);return ve&&yl(C,re),te}for(P=a(P);!xe.done;re++,xe=A.next())xe=D(P,C,re,xe.value,Q),xe!==null&&(e&&xe.alternate!==null&&P.delete(xe.key===null?re:xe.key),E=s(xe,E,re),ge===null?te=xe:ge.sibling=xe,ge=xe);return e&&P.forEach(function($0){return t(C,$0)}),ve&&yl(C,re),te}function Ae(C,E,A,Q){if(typeof A=="object"&&A!==null&&A.type===R&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case w:e:{for(var te=A.key;E!==null;){if(E.key===te){if(te=A.type,te===R){if(E.tag===7){l(C,E.sibling),Q=n(E,A.props.children),Q.return=C,C=Q;break e}}else if(E.elementType===te||typeof te=="object"&&te!==null&&te.$$typeof===ae&&Ua(te)===E.type){l(C,E.sibling),Q=n(E,A.props),bu(Q,A),Q.return=C,C=Q;break e}l(C,E);break}else t(C,E);E=E.sibling}A.type===R?(Q=Aa(A.props.children,C.mode,Q,A.key),Q.return=C,C=Q):(Q=Ri(A.type,A.key,A.props,null,C.mode,Q),bu(Q,A),Q.return=C,C=Q)}return f(C);case Z:e:{for(te=A.key;E!==null;){if(E.key===te)if(E.tag===4&&E.stateNode.containerInfo===A.containerInfo&&E.stateNode.implementation===A.implementation){l(C,E.sibling),Q=n(E,A.children||[]),Q.return=C,C=Q;break e}else{l(C,E);break}else t(C,E);E=E.sibling}Q=Sr(A,C.mode,Q),Q.return=C,C=Q}return f(C);case ae:return A=Ua(A),Ae(C,E,A,Q)}if(ut(A))return W(C,E,A,Q);if(Je(A)){if(te=Je(A),typeof te!="function")throw Error(c(150));return A=te.call(A),le(C,E,A,Q)}if(typeof A.then=="function")return Ae(C,E,wi(A),Q);if(A.$$typeof===q)return Ae(C,E,zi(C,A),Q);Hi(C,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,E!==null&&E.tag===6?(l(C,E.sibling),Q=n(E,A),Q.return=C,C=Q):(l(C,E),Q=br(A,C.mode,Q),Q.return=C,C=Q),f(C)):l(C,E)}return function(C,E,A,Q){try{xu=0;var te=Ae(C,E,A,Q);return Sn=null,te}catch(P){if(P===bn||P===Di)throw P;var ge=Ot(29,P,null,C.mode);return ge.lanes=Q,ge.return=C,ge}finally{}}}var Ha=fd(!0),dd=fd(!1),Kl=!1;function Dr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ur(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Vl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function kl(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(be&2)!==0){var n=a.pending;return n===null?t.next=t:(t.next=n.next,n.next=t),a.pending=t,t=Oi(e),Ff(e,null,l),t}return Ci(e,a,t,l),Oi(e)}function Su(e,t,l){if(t=t.updateQueue,t!==null&&(t=t.shared,(l&4194048)!==0)){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,lf(e,l)}}function wr(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var n=null,s=null;if(l=l.firstBaseUpdate,l!==null){do{var f={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};s===null?n=s=f:s=s.next=f,l=l.next}while(l!==null);s===null?n=s=t:s=s.next=t}else n=s=t;l={baseState:a.baseState,firstBaseUpdate:n,lastBaseUpdate:s,shared:a.shared,callbacks:a.callbacks},e.updateQueue=l;return}e=l.lastBaseUpdate,e===null?l.firstBaseUpdate=t:e.next=t,l.lastBaseUpdate=t}var Hr=!1;function Eu(){if(Hr){var e=xn;if(e!==null)throw e}}function ju(e,t,l,a){Hr=!1;var n=e.updateQueue;Kl=!1;var s=n.firstBaseUpdate,f=n.lastBaseUpdate,h=n.shared.pending;if(h!==null){n.shared.pending=null;var b=h,M=b.next;b.next=null,f===null?s=M:f.next=M,f=b;var H=e.alternate;H!==null&&(H=H.updateQueue,h=H.lastBaseUpdate,h!==f&&(h===null?H.firstBaseUpdate=M:h.next=M,H.lastBaseUpdate=b))}if(s!==null){var G=n.baseState;f=0,H=M=b=null,h=s;do{var z=h.lane&-536870913,D=z!==h.lane;if(D?(me&z)===z:(a&z)===z){z!==0&&z===gn&&(Hr=!0),H!==null&&(H=H.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});e:{var W=e,le=h;z=t;var Ae=l;switch(le.tag){case 1:if(W=le.payload,typeof W=="function"){G=W.call(Ae,G,z);break e}G=W;break e;case 3:W.flags=W.flags&-65537|128;case 0:if(W=le.payload,z=typeof W=="function"?W.call(Ae,G,z):W,z==null)break e;G=g({},G,z);break e;case 2:Kl=!0}}z=h.callback,z!==null&&(e.flags|=64,D&&(e.flags|=8192),D=n.callbacks,D===null?n.callbacks=[z]:D.push(z))}else D={lane:z,tag:h.tag,payload:h.payload,callback:h.callback,next:null},H===null?(M=H=D,b=G):H=H.next=D,f|=z;if(h=h.next,h===null){if(h=n.shared.pending,h===null)break;D=h,h=D.next,D.next=null,n.lastBaseUpdate=D,n.shared.pending=null}}while(!0);H===null&&(b=G),n.baseState=b,n.firstBaseUpdate=M,n.lastBaseUpdate=H,s===null&&(n.shared.lanes=0),Il|=f,e.lanes=f,e.memoizedState=G}}function hd(e,t){if(typeof e!="function")throw Error(c(191,e));e.call(t)}function md(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)hd(l[e],t)}var En=N(null),qi=N(0);function yd(e,t){e=Cl,F(qi,e),F(En,t),Cl=e|t.baseLanes}function qr(){F(qi,Cl),F(En,En.current)}function Br(){Cl=qi.current,X(En),X(qi)}var Rt=N(null),Yt=null;function Jl(e){var t=e.alternate;F(Ye,Ye.current&1),F(Rt,e),Yt===null&&(t===null||En.current!==null||t.memoizedState!==null)&&(Yt=e)}function Qr(e){F(Ye,Ye.current),F(Rt,e),Yt===null&&(Yt=e)}function vd(e){e.tag===22?(F(Ye,Ye.current),F(Rt,e),Yt===null&&(Yt=e)):Fl()}function Fl(){F(Ye,Ye.current),F(Rt,Rt.current)}function At(e){X(Rt),Yt===e&&(Yt=null),X(Ye)}var Ye=N(0);function Bi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Kc(l)||Vc(l)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gl=0,se=null,Oe=null,Ze=null,Qi=!1,jn=!1,qa=!1,Li=0,Nu=0,Nn=null,Lp=0;function He(){throw Error(c(321))}function Lr(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!Ct(e[l],t[l]))return!1;return!0}function Yr(e,t,l,a,n,s){return gl=s,se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?Pd:lc,qa=!1,s=l(a,n),qa=!1,jn&&(s=gd(t,l,a,n)),pd(e),s}function pd(e){B.H=Ou;var t=Oe!==null&&Oe.next!==null;if(gl=0,Ze=Oe=se=null,Qi=!1,Nu=0,Nn=null,t)throw Error(c(300));e===null||Ke||(e=e.dependencies,e!==null&&Mi(e)&&(Ke=!0))}function gd(e,t,l,a){se=e;var n=0;do{if(jn&&(Nn=null),Nu=0,jn=!1,25<=n)throw Error(c(301));if(n+=1,Ze=Oe=null,e.updateQueue!=null){var s=e.updateQueue;s.lastEffect=null,s.events=null,s.stores=null,s.memoCache!=null&&(s.memoCache.index=0)}B.H=eh,s=t(l,a)}while(jn);return s}function Yp(){var e=B.H,t=e.useState()[0];return t=typeof t.then=="function"?Tu(t):t,e=e.useState()[0],(Oe!==null?Oe.memoizedState:null)!==e&&(se.flags|=1024),t}function Gr(){var e=Li!==0;return Li=0,e}function Xr(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function Zr(e){if(Qi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Qi=!1}gl=0,Ze=Oe=se=null,jn=!1,Nu=Li=0,Nn=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ze===null?se.memoizedState=Ze=e:Ze=Ze.next=e,Ze}function Ge(){if(Oe===null){var e=se.alternate;e=e!==null?e.memoizedState:null}else e=Oe.next;var t=Ze===null?se.memoizedState:Ze.next;if(t!==null)Ze=t,Oe=e;else{if(e===null)throw se.alternate===null?Error(c(467)):Error(c(310));Oe=e,e={memoizedState:Oe.memoizedState,baseState:Oe.baseState,baseQueue:Oe.baseQueue,queue:Oe.queue,next:null},Ze===null?se.memoizedState=Ze=e:Ze=Ze.next=e}return Ze}function Yi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Tu(e){var t=Nu;return Nu+=1,Nn===null&&(Nn=[]),e=rd(Nn,e,t),t=se,(Ze===null?t.memoizedState:Ze.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?Pd:lc),e}function Gi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Tu(e);if(e.$$typeof===q)return lt(e)}throw Error(c(438,String(e)))}function Kr(e){var t=null,l=se.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=se.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=Yi(),se.updateQueue=l),l.memoCache=t,l=t.data[t.index],l===void 0)for(l=t.data[t.index]=Array(e),a=0;a<e;a++)l[a]=Te;return t.index++,l}function xl(e,t){return typeof t=="function"?t(e):t}function Xi(e){var t=Ge();return Vr(t,Oe,e)}function Vr(e,t,l){var a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=l;var n=e.baseQueue,s=a.pending;if(s!==null){if(n!==null){var f=n.next;n.next=s.next,s.next=f}t.baseQueue=n=s,a.pending=null}if(s=e.baseState,n===null)e.memoizedState=s;else{t=n.next;var h=f=null,b=null,M=t,H=!1;do{var G=M.lane&-536870913;if(G!==M.lane?(me&G)===G:(gl&G)===G){var z=M.revertLane;if(z===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null}),G===gn&&(H=!0);else if((gl&z)===z){M=M.next,z===gn&&(H=!0);continue}else G={lane:0,revertLane:M.revertLane,gesture:null,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},b===null?(h=b=G,f=s):b=b.next=G,se.lanes|=z,Il|=z;G=M.action,qa&&l(s,G),s=M.hasEagerState?M.eagerState:l(s,G)}else z={lane:G,revertLane:M.revertLane,gesture:M.gesture,action:M.action,hasEagerState:M.hasEagerState,eagerState:M.eagerState,next:null},b===null?(h=b=z,f=s):b=b.next=z,se.lanes|=G,Il|=G;M=M.next}while(M!==null&&M!==t);if(b===null?f=s:b.next=h,!Ct(s,e.memoizedState)&&(Ke=!0,H&&(l=xn,l!==null)))throw l;e.memoizedState=s,e.baseState=f,e.baseQueue=b,a.lastRenderedState=s}return n===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function kr(e){var t=Ge(),l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=e;var a=l.dispatch,n=l.pending,s=t.memoizedState;if(n!==null){l.pending=null;var f=n=n.next;do s=e(s,f.action),f=f.next;while(f!==n);Ct(s,t.memoizedState)||(Ke=!0),t.memoizedState=s,t.baseQueue===null&&(t.baseState=s),l.lastRenderedState=s}return[s,a]}function xd(e,t,l){var a=se,n=Ge(),s=ve;if(s){if(l===void 0)throw Error(c(407));l=l()}else l=t();var f=!Ct((Oe||n).memoizedState,l);if(f&&(n.memoizedState=l,Ke=!0),n=n.queue,$r(Ed.bind(null,a,n,e),[e]),n.getSnapshot!==t||f||Ze!==null&&Ze.memoizedState.tag&1){if(a.flags|=2048,Tn(9,{destroy:void 0},Sd.bind(null,a,n,l,t),null),ze===null)throw Error(c(349));s||(gl&127)!==0||bd(a,t,l)}return l}function bd(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=se.updateQueue,t===null?(t=Yi(),se.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function Sd(e,t,l,a){t.value=l,t.getSnapshot=a,jd(t)&&Nd(e)}function Ed(e,t,l){return l(function(){jd(t)&&Nd(e)})}function jd(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!Ct(e,l)}catch{return!0}}function Nd(e){var t=Ra(e,2);t!==null&&xt(t,e,2)}function Jr(e){var t=ct();if(typeof e=="function"){var l=e;if(e=l(),qa){Bl(!0);try{l()}finally{Bl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:xl,lastRenderedState:e},t}function Td(e,t,l,a){return e.baseState=l,Vr(e,Oe,typeof a=="function"?a:xl)}function Gp(e,t,l,a,n){if(Vi(e))throw Error(c(485));if(e=t.action,e!==null){var s={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){s.listeners.push(f)}};B.T!==null?l(!0):s.isTransition=!1,a(s),l=t.pending,l===null?(s.next=t.pending=s,Cd(t,s)):(s.next=l.next,t.pending=l.next=s)}}function Cd(e,t){var l=t.action,a=t.payload,n=e.state;if(t.isTransition){var s=B.T,f={};B.T=f;try{var h=l(n,a),b=B.S;b!==null&&b(f,h),Od(e,t,h)}catch(M){Fr(e,t,M)}finally{s!==null&&f.types!==null&&(s.types=f.types),B.T=s}}else try{s=l(n,a),Od(e,t,s)}catch(M){Fr(e,t,M)}}function Od(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){Rd(e,t,a)},function(a){return Fr(e,t,a)}):Rd(e,t,l)}function Rd(e,t,l){t.status="fulfilled",t.value=l,Ad(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Cd(e,l)))}function Fr(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Ad(t),t=t.next;while(t!==a)}e.action=null}function Ad(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Md(e,t){return t}function zd(e,t){if(ve){var l=ze.formState;if(l!==null){e:{var a=se;if(ve){if(_e){t:{for(var n=_e,s=Lt;n.nodeType!==8;){if(!s){n=null;break t}if(n=Gt(n.nextSibling),n===null){n=null;break t}}s=n.data,n=s==="F!"||s==="F"?n:null}if(n){_e=Gt(n.nextSibling),a=n.data==="F!";break e}}Xl(a)}a=!1}a&&(t=l[0])}}return l=ct(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Md,lastRenderedState:t},l.queue=a,l=$d.bind(null,se,a),a.dispatch=l,a=Jr(!1),s=tc.bind(null,se,!1,a.queue),a=ct(),n={state:t,dispatch:null,action:e,pending:null},a.queue=n,l=Gp.bind(null,se,n,s,l),n.dispatch=l,a.memoizedState=e,[t,l,!1]}function _d(e){var t=Ge();return Dd(t,Oe,e)}function Dd(e,t,l){if(t=Vr(e,t,Md)[0],e=Xi(xl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Tu(t)}catch(f){throw f===bn?Di:f}else a=t;t=Ge();var n=t.queue,s=n.dispatch;return l!==t.memoizedState&&(se.flags|=2048,Tn(9,{destroy:void 0},Xp.bind(null,n,l),null)),[a,s,e]}function Xp(e,t){e.action=t}function Ud(e){var t=Ge(),l=Oe;if(l!==null)return Dd(t,l,e);Ge(),t=t.memoizedState,l=Ge();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Tn(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=se.updateQueue,t===null&&(t=Yi(),se.updateQueue=t),l=t.lastEffect,l===null?t.lastEffect=e.next=e:(a=l.next,l.next=e,e.next=a,t.lastEffect=e),e}function wd(){return Ge().memoizedState}function Zi(e,t,l,a){var n=ct();se.flags|=e,n.memoizedState=Tn(1|t,{destroy:void 0},l,a===void 0?null:a)}function Ki(e,t,l,a){var n=Ge();a=a===void 0?null:a;var s=n.memoizedState.inst;Oe!==null&&a!==null&&Lr(a,Oe.memoizedState.deps)?n.memoizedState=Tn(t,s,l,a):(se.flags|=e,n.memoizedState=Tn(1|t,s,l,a))}function Hd(e,t){Zi(8390656,8,e,t)}function $r(e,t){Ki(2048,8,e,t)}function Zp(e){se.flags|=4;var t=se.updateQueue;if(t===null)t=Yi(),se.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function qd(e){var t=Ge().memoizedState;return Zp({ref:t,nextImpl:e}),function(){if((be&2)!==0)throw Error(c(440));return t.impl.apply(void 0,arguments)}}function Bd(e,t){return Ki(4,2,e,t)}function Qd(e,t){return Ki(4,4,e,t)}function Ld(e,t){if(typeof t=="function"){e=e();var l=t(e);return function(){typeof l=="function"?l():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Yd(e,t,l){l=l!=null?l.concat([e]):null,Ki(4,4,Ld.bind(null,t,e),l)}function Wr(){}function Gd(e,t){var l=Ge();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Lr(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Xd(e,t){var l=Ge();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Lr(t,a[1]))return a[0];if(a=e(),qa){Bl(!0);try{e()}finally{Bl(!1)}}return l.memoizedState=[a,t],a}function Ir(e,t,l){return l===void 0||(gl&1073741824)!==0&&(me&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=Zh(),se.lanes|=e,Il|=e,l)}function Zd(e,t,l,a){return Ct(l,t)?l:En.current!==null?(e=Ir(e,l,a),Ct(e,t)||(Ke=!0),e):(gl&42)===0||(gl&1073741824)!==0&&(me&261930)===0?(Ke=!0,e.memoizedState=l):(e=Zh(),se.lanes|=e,Il|=e,t)}function Kd(e,t,l,a,n){var s=J.p;J.p=s!==0&&8>s?s:8;var f=B.T,h={};B.T=h,tc(e,!1,t,l);try{var b=n(),M=B.S;if(M!==null&&M(h,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var H=Qp(b,a);Cu(e,t,H,_t(e))}else Cu(e,t,a,_t(e))}catch(G){Cu(e,t,{then:function(){},status:"rejected",reason:G},_t())}finally{J.p=s,f!==null&&h.types!==null&&(f.types=h.types),B.T=f}}function Kp(){}function Pr(e,t,l,a){if(e.tag!==5)throw Error(c(476));var n=Vd(e).queue;Kd(e,n,t,ne,l===null?Kp:function(){return kd(e),l(a)})}function Vd(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ne,baseState:ne,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xl,lastRenderedState:ne},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:xl,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kd(e){var t=Vd(e);t.next===null&&(t=e.alternate.memoizedState),Cu(e,t.next.queue,{},_t())}function ec(){return lt(Xu)}function Jd(){return Ge().memoizedState}function Fd(){return Ge().memoizedState}function Vp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=_t();e=Vl(l);var a=kl(t,e,l);a!==null&&(xt(a,t,l),Su(a,t,l)),t={cache:Ar()},e.payload=t;return}t=t.return}}function kp(e,t,l){var a=_t();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Vi(e)?Wd(t,l):(l=gr(e,t,l,a),l!==null&&(xt(l,e,a),Id(l,t,a)))}function $d(e,t,l){var a=_t();Cu(e,t,l,a)}function Cu(e,t,l,a){var n={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Vi(e))Wd(t,n);else{var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var f=t.lastRenderedState,h=s(f,l);if(n.hasEagerState=!0,n.eagerState=h,Ct(h,f))return Ci(e,t,n,0),ze===null&&Ti(),!1}catch{}finally{}if(l=gr(e,t,n,a),l!==null)return xt(l,e,a),Id(l,t,a),!0}return!1}function tc(e,t,l,a){if(a={lane:2,revertLane:Dc(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Vi(e)){if(t)throw Error(c(479))}else t=gr(e,l,a,2),t!==null&&xt(t,e,2)}function Vi(e){var t=e.alternate;return e===se||t!==null&&t===se}function Wd(e,t){jn=Qi=!0;var l=e.pending;l===null?t.next=t:(t.next=l.next,l.next=t),e.pending=t}function Id(e,t,l){if((l&4194048)!==0){var a=t.lanes;a&=e.pendingLanes,l|=a,t.lanes=l,lf(e,l)}}var Ou={readContext:lt,use:Gi,useCallback:He,useContext:He,useEffect:He,useImperativeHandle:He,useLayoutEffect:He,useInsertionEffect:He,useMemo:He,useReducer:He,useRef:He,useState:He,useDebugValue:He,useDeferredValue:He,useTransition:He,useSyncExternalStore:He,useId:He,useHostTransitionStatus:He,useFormState:He,useActionState:He,useOptimistic:He,useMemoCache:He,useCacheRefresh:He};Ou.useEffectEvent=He;var Pd={readContext:lt,use:Gi,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:Hd,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,Zi(4194308,4,Ld.bind(null,t,e),l)},useLayoutEffect:function(e,t){return Zi(4194308,4,e,t)},useInsertionEffect:function(e,t){Zi(4,2,e,t)},useMemo:function(e,t){var l=ct();t=t===void 0?null:t;var a=e();if(qa){Bl(!0);try{e()}finally{Bl(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=ct();if(l!==void 0){var n=l(t);if(qa){Bl(!0);try{l(t)}finally{Bl(!1)}}}else n=t;return a.memoizedState=a.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},a.queue=e,e=e.dispatch=kp.bind(null,se,e),[a.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:function(e){e=Jr(e);var t=e.queue,l=$d.bind(null,se,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:Wr,useDeferredValue:function(e,t){var l=ct();return Ir(l,e,t)},useTransition:function(){var e=Jr(!1);return e=Kd.bind(null,se,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=se,n=ct();if(ve){if(l===void 0)throw Error(c(407));l=l()}else{if(l=t(),ze===null)throw Error(c(349));(me&127)!==0||bd(a,t,l)}n.memoizedState=l;var s={value:l,getSnapshot:t};return n.queue=s,Hd(Ed.bind(null,a,s,e),[e]),a.flags|=2048,Tn(9,{destroy:void 0},Sd.bind(null,a,s,l,t),null),l},useId:function(){var e=ct(),t=ze.identifierPrefix;if(ve){var l=al,a=ll;l=(a&~(1<<32-Tt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Li++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Lp++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ec,useFormState:zd,useActionState:zd,useOptimistic:function(e){var t=ct();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=tc.bind(null,se,!0,l),l.dispatch=t,[e,t]},useMemoCache:Kr,useCacheRefresh:function(){return ct().memoizedState=Vp.bind(null,se)},useEffectEvent:function(e){var t=ct(),l={impl:e};return t.memoizedState=l,function(){if((be&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},lc={readContext:lt,use:Gi,useCallback:Gd,useContext:lt,useEffect:$r,useImperativeHandle:Yd,useInsertionEffect:Bd,useLayoutEffect:Qd,useMemo:Xd,useReducer:Xi,useRef:wd,useState:function(){return Xi(xl)},useDebugValue:Wr,useDeferredValue:function(e,t){var l=Ge();return Zd(l,Oe.memoizedState,e,t)},useTransition:function(){var e=Xi(xl)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:Tu(e),t]},useSyncExternalStore:xd,useId:Jd,useHostTransitionStatus:ec,useFormState:_d,useActionState:_d,useOptimistic:function(e,t){var l=Ge();return Td(l,Oe,e,t)},useMemoCache:Kr,useCacheRefresh:Fd};lc.useEffectEvent=qd;var eh={readContext:lt,use:Gi,useCallback:Gd,useContext:lt,useEffect:$r,useImperativeHandle:Yd,useInsertionEffect:Bd,useLayoutEffect:Qd,useMemo:Xd,useReducer:kr,useRef:wd,useState:function(){return kr(xl)},useDebugValue:Wr,useDeferredValue:function(e,t){var l=Ge();return Oe===null?Ir(l,e,t):Zd(l,Oe.memoizedState,e,t)},useTransition:function(){var e=kr(xl)[0],t=Ge().memoizedState;return[typeof e=="boolean"?e:Tu(e),t]},useSyncExternalStore:xd,useId:Jd,useHostTransitionStatus:ec,useFormState:Ud,useActionState:Ud,useOptimistic:function(e,t){var l=Ge();return Oe!==null?Td(l,Oe,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Kr,useCacheRefresh:Fd};eh.useEffectEvent=qd;function ac(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:g({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var nc={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=_t(),n=Vl(a);n.payload=t,l!=null&&(n.callback=l),t=kl(e,n,a),t!==null&&(xt(t,e,a),Su(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=_t(),n=Vl(a);n.tag=1,n.payload=t,l!=null&&(n.callback=l),t=kl(e,n,a),t!==null&&(xt(t,e,a),Su(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=_t(),a=Vl(l);a.tag=2,t!=null&&(a.callback=t),t=kl(e,a,l),t!==null&&(xt(t,e,l),Su(t,e,l))}};function th(e,t,l,a,n,s,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,s,f):t.prototype&&t.prototype.isPureReactComponent?!hu(l,a)||!hu(n,s):!0}function lh(e,t,l,a){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(l,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(l,a),t.state!==e&&nc.enqueueReplaceState(t,t.state,null)}function Ba(e,t){var l=t;if("ref"in t){l={};for(var a in t)a!=="ref"&&(l[a]=t[a])}if(e=e.defaultProps){l===t&&(l=g({},l));for(var n in e)l[n]===void 0&&(l[n]=e[n])}return l}function ah(e){Ni(e)}function nh(e){console.error(e)}function uh(e){Ni(e)}function ki(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function ih(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function uc(e,t,l){return l=Vl(l),l.tag=3,l.payload={element:null},l.callback=function(){ki(e,t)},l}function sh(e){return e=Vl(e),e.tag=3,e}function rh(e,t,l,a){var n=l.type.getDerivedStateFromError;if(typeof n=="function"){var s=a.value;e.payload=function(){return n(s)},e.callback=function(){ih(t,l,a)}}var f=l.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){ih(t,l,a),typeof n!="function"&&(Pl===null?Pl=new Set([this]):Pl.add(this));var h=a.stack;this.componentDidCatch(a.value,{componentStack:h!==null?h:""})})}function Jp(e,t,l,a,n){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&pn(t,l,n,!0),l=Rt.current,l!==null){switch(l.tag){case 31:case 13:return Yt===null?us():l.alternate===null&&qe===0&&(qe=3),l.flags&=-257,l.flags|=65536,l.lanes=n,a===Ui?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),Mc(e,a,n)),!1;case 22:return l.flags|=65536,a===Ui?l.flags|=16384:(t=l.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([a])},l.updateQueue=t):(l=t.retryQueue,l===null?t.retryQueue=new Set([a]):l.add(a)),Mc(e,a,n)),!1}throw Error(c(435,l.tag))}return Mc(e,a,n),us(),!1}if(ve)return t=Rt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,a!==Nr&&(e=Error(c(422),{cause:a}),vu(qt(e,l)))):(a!==Nr&&(t=Error(c(423),{cause:a}),vu(qt(t,l))),e=e.current.alternate,e.flags|=65536,n&=-n,e.lanes|=n,a=qt(a,l),n=uc(e.stateNode,a,n),wr(e,n),qe!==4&&(qe=2)),!1;var s=Error(c(520),{cause:a});if(s=qt(s,l),wu===null?wu=[s]:wu.push(s),qe!==4&&(qe=2),t===null)return!0;a=qt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=n&-n,l.lanes|=e,e=uc(l.stateNode,a,e),wr(l,e),!1;case 1:if(t=l.type,s=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||s!==null&&typeof s.componentDidCatch=="function"&&(Pl===null||!Pl.has(s))))return l.flags|=65536,n&=-n,l.lanes|=n,n=sh(n),rh(n,e,l,a),wr(l,n),!1}l=l.return}while(l!==null);return!1}var ic=Error(c(461)),Ke=!1;function at(e,t,l,a){t.child=e===null?dd(t,null,l,a):Ha(t,e.child,l,a)}function ch(e,t,l,a,n){l=l.render;var s=t.ref;if("ref"in a){var f={};for(var h in a)h!=="ref"&&(f[h]=a[h])}else f=a;return _a(t),a=Yr(e,t,l,f,s,n),h=Gr(),e!==null&&!Ke?(Xr(e,t,n),bl(e,t,n)):(ve&&h&&Er(t),t.flags|=1,at(e,t,a,n),t.child)}function oh(e,t,l,a,n){if(e===null){var s=l.type;return typeof s=="function"&&!xr(s)&&s.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=s,fh(e,t,s,a,n)):(e=Ri(l.type,null,a,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!mc(e,n)){var f=s.memoizedProps;if(l=l.compare,l=l!==null?l:hu,l(f,a)&&e.ref===t.ref)return bl(e,t,n)}return t.flags|=1,e=ml(s,a),e.ref=t.ref,e.return=t,t.child=e}function fh(e,t,l,a,n){if(e!==null){var s=e.memoizedProps;if(hu(s,a)&&e.ref===t.ref)if(Ke=!1,t.pendingProps=a=s,mc(e,n))(e.flags&131072)!==0&&(Ke=!0);else return t.lanes=e.lanes,bl(e,t,n)}return sc(e,t,l,a,n)}function dh(e,t,l,a){var n=a.children,s=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((t.flags&128)!==0){if(s=s!==null?s.baseLanes|l:l,e!==null){for(a=t.child=e.child,n=0;a!==null;)n=n|a.lanes|a.childLanes,a=a.sibling;a=n&~s}else a=0,t.child=null;return hh(e,t,s,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_i(t,s!==null?s.cachePool:null),s!==null?yd(t,s):qr(),vd(t);else return a=t.lanes=536870912,hh(e,t,s!==null?s.baseLanes|l:l,l,a)}else s!==null?(_i(t,s.cachePool),yd(t,s),Fl(),t.memoizedState=null):(e!==null&&_i(t,null),qr(),Fl());return at(e,t,n,l),t.child}function Ru(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function hh(e,t,l,a,n){var s=zr();return s=s===null?null:{parent:Xe._currentValue,pool:s},t.memoizedState={baseLanes:l,cachePool:s},e!==null&&_i(t,null),qr(),vd(t),e!==null&&pn(e,t,a,!0),t.childLanes=n,null}function Ji(e,t){return t=$i({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function mh(e,t,l){return Ha(t,e.child,null,l),e=Ji(t,t.pendingProps),e.flags|=2,At(t),t.memoizedState=null,e}function Fp(e,t,l){var a=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(a.mode==="hidden")return e=Ji(t,a),t.lanes=536870912,Ru(null,e);if(Qr(t),(e=_e)?(e=Cm(e,Lt),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yl!==null?{id:ll,overflow:al}:null,retryLane:536870912,hydrationErrors:null},l=Wf(e),l.return=t,t.child=l,tt=t,_e=null)):e=null,e===null)throw Xl(t);return t.lanes=536870912,null}return Ji(t,a)}var s=e.memoizedState;if(s!==null){var f=s.dehydrated;if(Qr(t),n)if(t.flags&256)t.flags&=-257,t=mh(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(c(558));else if(Ke||pn(e,t,l,!1),n=(l&e.childLanes)!==0,Ke||n){if(a=ze,a!==null&&(f=af(a,l),f!==0&&f!==s.retryLane))throw s.retryLane=f,Ra(e,f),xt(a,e,f),ic;us(),t=mh(e,t,l)}else e=s.treeContext,_e=Gt(f.nextSibling),tt=t,ve=!0,Gl=null,Lt=!1,e!==null&&ed(t,e),t=Ji(t,a),t.flags|=4096;return t}return e=ml(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Fi(e,t){var l=t.ref;if(l===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function sc(e,t,l,a,n){return _a(t),l=Yr(e,t,l,a,void 0,n),a=Gr(),e!==null&&!Ke?(Xr(e,t,n),bl(e,t,n)):(ve&&a&&Er(t),t.flags|=1,at(e,t,l,n),t.child)}function yh(e,t,l,a,n,s){return _a(t),t.updateQueue=null,l=gd(t,a,l,n),pd(e),a=Gr(),e!==null&&!Ke?(Xr(e,t,s),bl(e,t,s)):(ve&&a&&Er(t),t.flags|=1,at(e,t,l,s),t.child)}function vh(e,t,l,a,n){if(_a(t),t.stateNode===null){var s=hn,f=l.contextType;typeof f=="object"&&f!==null&&(s=lt(f)),s=new l(a,s),t.memoizedState=s.state!==null&&s.state!==void 0?s.state:null,s.updater=nc,t.stateNode=s,s._reactInternals=t,s=t.stateNode,s.props=a,s.state=t.memoizedState,s.refs={},Dr(t),f=l.contextType,s.context=typeof f=="object"&&f!==null?lt(f):hn,s.state=t.memoizedState,f=l.getDerivedStateFromProps,typeof f=="function"&&(ac(t,l,f,a),s.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof s.getSnapshotBeforeUpdate=="function"||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(f=s.state,typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount(),f!==s.state&&nc.enqueueReplaceState(s,s.state,null),ju(t,a,s,n),Eu(),s.state=t.memoizedState),typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){s=t.stateNode;var h=t.memoizedProps,b=Ba(l,h);s.props=b;var M=s.context,H=l.contextType;f=hn,typeof H=="object"&&H!==null&&(f=lt(H));var G=l.getDerivedStateFromProps;H=typeof G=="function"||typeof s.getSnapshotBeforeUpdate=="function",h=t.pendingProps!==h,H||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(h||M!==f)&&lh(t,s,a,f),Kl=!1;var z=t.memoizedState;s.state=z,ju(t,a,s,n),Eu(),M=t.memoizedState,h||z!==M||Kl?(typeof G=="function"&&(ac(t,l,G,a),M=t.memoizedState),(b=Kl||th(t,l,b,a,z,M,f))?(H||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=M),s.props=a,s.state=M,s.context=f,a=b):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{s=t.stateNode,Ur(e,t),f=t.memoizedProps,H=Ba(l,f),s.props=H,G=t.pendingProps,z=s.context,M=l.contextType,b=hn,typeof M=="object"&&M!==null&&(b=lt(M)),h=l.getDerivedStateFromProps,(M=typeof h=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(f!==G||z!==b)&&lh(t,s,a,b),Kl=!1,z=t.memoizedState,s.state=z,ju(t,a,s,n),Eu();var D=t.memoizedState;f!==G||z!==D||Kl||e!==null&&e.dependencies!==null&&Mi(e.dependencies)?(typeof h=="function"&&(ac(t,l,h,a),D=t.memoizedState),(H=Kl||th(t,l,H,a,z,D,b)||e!==null&&e.dependencies!==null&&Mi(e.dependencies))?(M||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(a,D,b),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(a,D,b)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=D),s.props=a,s.state=D,s.context=b,a=H):(typeof s.componentDidUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&z===e.memoizedState||(t.flags|=1024),a=!1)}return s=a,Fi(e,t),a=(t.flags&128)!==0,s||a?(s=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:s.render(),t.flags|=1,e!==null&&a?(t.child=Ha(t,e.child,null,n),t.child=Ha(t,null,l,n)):at(e,t,l,n),t.memoizedState=s.state,e=t.child):e=bl(e,t,n),e}function ph(e,t,l,a){return Ma(),t.flags|=256,at(e,t,l,a),t.child}var rc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function cc(e){return{baseLanes:e,cachePool:id()}}function oc(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=zt),e}function gh(e,t,l){var a=t.pendingProps,n=!1,s=(t.flags&128)!==0,f;if((f=s)||(f=e!==null&&e.memoizedState===null?!1:(Ye.current&2)!==0),f&&(n=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(n?Jl(t):Fl(),(e=_e)?(e=Cm(e,Lt),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Yl!==null?{id:ll,overflow:al}:null,retryLane:536870912,hydrationErrors:null},l=Wf(e),l.return=t,t.child=l,tt=t,_e=null)):e=null,e===null)throw Xl(t);return Vc(e)?t.lanes=32:t.lanes=536870912,null}var h=a.children;return a=a.fallback,n?(Fl(),n=t.mode,h=$i({mode:"hidden",children:h},n),a=Aa(a,n,l,null),h.return=t,a.return=t,h.sibling=a,t.child=h,a=t.child,a.memoizedState=cc(l),a.childLanes=oc(e,f,l),t.memoizedState=rc,Ru(null,a)):(Jl(t),fc(t,h))}var b=e.memoizedState;if(b!==null&&(h=b.dehydrated,h!==null)){if(s)t.flags&256?(Jl(t),t.flags&=-257,t=dc(e,t,l)):t.memoizedState!==null?(Fl(),t.child=e.child,t.flags|=128,t=null):(Fl(),h=a.fallback,n=t.mode,a=$i({mode:"visible",children:a.children},n),h=Aa(h,n,l,null),h.flags|=2,a.return=t,h.return=t,a.sibling=h,t.child=a,Ha(t,e.child,null,l),a=t.child,a.memoizedState=cc(l),a.childLanes=oc(e,f,l),t.memoizedState=rc,t=Ru(null,a));else if(Jl(t),Vc(h)){if(f=h.nextSibling&&h.nextSibling.dataset,f)var M=f.dgst;f=M,a=Error(c(419)),a.stack="",a.digest=f,vu({value:a,source:null,stack:null}),t=dc(e,t,l)}else if(Ke||pn(e,t,l,!1),f=(l&e.childLanes)!==0,Ke||f){if(f=ze,f!==null&&(a=af(f,l),a!==0&&a!==b.retryLane))throw b.retryLane=a,Ra(e,a),xt(f,e,a),ic;Kc(h)||us(),t=dc(e,t,l)}else Kc(h)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,_e=Gt(h.nextSibling),tt=t,ve=!0,Gl=null,Lt=!1,e!==null&&ed(t,e),t=fc(t,a.children),t.flags|=4096);return t}return n?(Fl(),h=a.fallback,n=t.mode,b=e.child,M=b.sibling,a=ml(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&65011712,M!==null?h=ml(M,h):(h=Aa(h,n,l,null),h.flags|=2),h.return=t,a.return=t,a.sibling=h,t.child=a,Ru(null,a),a=t.child,h=e.child.memoizedState,h===null?h=cc(l):(n=h.cachePool,n!==null?(b=Xe._currentValue,n=n.parent!==b?{parent:b,pool:b}:n):n=id(),h={baseLanes:h.baseLanes|l,cachePool:n}),a.memoizedState=h,a.childLanes=oc(e,f,l),t.memoizedState=rc,Ru(e.child,a)):(Jl(t),l=e.child,e=l.sibling,l=ml(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=l,t.memoizedState=null,l)}function fc(e,t){return t=$i({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function $i(e,t){return e=Ot(22,e,null,t),e.lanes=0,e}function dc(e,t,l){return Ha(t,e.child,null,l),e=fc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xh(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Or(e.return,t,l)}function hc(e,t,l,a,n,s){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:n,treeForkCount:s}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=l,f.tailMode=n,f.treeForkCount=s)}function bh(e,t,l){var a=t.pendingProps,n=a.revealOrder,s=a.tail;a=a.children;var f=Ye.current,h=(f&2)!==0;if(h?(f=f&1|2,t.flags|=128):f&=1,F(Ye,f),at(e,t,a,l),a=ve?yu:0,!h&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xh(e,l,t);else if(e.tag===19)xh(e,l,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(n){case"forwards":for(l=t.child,n=null;l!==null;)e=l.alternate,e!==null&&Bi(e)===null&&(n=l),l=l.sibling;l=n,l===null?(n=t.child,t.child=null):(n=l.sibling,l.sibling=null),hc(t,!1,n,l,s,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,n=t.child,t.child=null;n!==null;){if(e=n.alternate,e!==null&&Bi(e)===null){t.child=n;break}e=n.sibling,n.sibling=l,l=n,n=e}hc(t,!0,l,null,s,a);break;case"together":hc(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function bl(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),Il|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(pn(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(c(153));if(t.child!==null){for(e=t.child,l=ml(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=ml(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function mc(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Mi(e)))}function $p(e,t,l){switch(t.tag){case 3:rt(t,t.stateNode.containerInfo),Zl(t,Xe,e.memoizedState.cache),Ma();break;case 27:case 5:eu(t);break;case 4:rt(t,t.stateNode.containerInfo);break;case 10:Zl(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Qr(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(Jl(t),t.flags|=128,null):(l&t.child.childLanes)!==0?gh(e,t,l):(Jl(t),e=bl(e,t,l),e!==null?e.sibling:null);Jl(t);break;case 19:var n=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(pn(e,t,l,!1),a=(l&t.childLanes)!==0),n){if(a)return bh(e,t,l);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),F(Ye,Ye.current),a)break;return null;case 22:return t.lanes=0,dh(e,t,l,t.pendingProps);case 24:Zl(t,Xe,e.memoizedState.cache)}return bl(e,t,l)}function Sh(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Ke=!0;else{if(!mc(e,l)&&(t.flags&128)===0)return Ke=!1,$p(e,t,l);Ke=(e.flags&131072)!==0}else Ke=!1,ve&&(t.flags&1048576)!==0&&Pf(t,yu,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=Ua(t.elementType),t.type=e,typeof e=="function")xr(e)?(a=Ba(e,a),t.tag=1,t=vh(null,t,e,a,l)):(t.tag=0,t=sc(null,t,e,a,l));else{if(e!=null){var n=e.$$typeof;if(n===O){t.tag=11,t=ch(null,t,e,a,l);break e}else if(n===k){t.tag=14,t=oh(null,t,e,a,l);break e}}throw t=dt(e)||e,Error(c(306,t,""))}}return t;case 0:return sc(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,n=Ba(a,t.pendingProps),vh(e,t,a,n,l);case 3:e:{if(rt(t,t.stateNode.containerInfo),e===null)throw Error(c(387));a=t.pendingProps;var s=t.memoizedState;n=s.element,Ur(e,t),ju(t,a,null,l);var f=t.memoizedState;if(a=f.cache,Zl(t,Xe,a),a!==s.cache&&Rr(t,[Xe],l,!0),Eu(),a=f.element,s.isDehydrated)if(s={element:a,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){t=ph(e,t,a,l);break e}else if(a!==n){n=qt(Error(c(424)),t),vu(n),t=ph(e,t,a,l);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(_e=Gt(e.firstChild),tt=t,ve=!0,Gl=null,Lt=!0,l=dd(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Ma(),a===n){t=bl(e,t,l);break e}at(e,t,a,l)}t=t.child}return t;case 26:return Fi(e,t),e===null?(l=_m(t.type,null,t.pendingProps,null))?t.memoizedState=l:ve||(l=t.type,e=t.pendingProps,a=ds(oe.current).createElement(l),a[et]=t,a[ht]=e,nt(a,l,e),We(a),t.stateNode=a):t.memoizedState=_m(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return eu(t),e===null&&ve&&(a=t.stateNode=Am(t.type,t.pendingProps,oe.current),tt=t,Lt=!0,n=_e,aa(t.type)?(kc=n,_e=Gt(a.firstChild)):_e=n),at(e,t,t.pendingProps.children,l),Fi(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((n=a=_e)&&(a=C0(a,t.type,t.pendingProps,Lt),a!==null?(t.stateNode=a,tt=t,_e=Gt(a.firstChild),Lt=!1,n=!0):n=!1),n||Xl(t)),eu(t),n=t.type,s=t.pendingProps,f=e!==null?e.memoizedProps:null,a=s.children,Gc(n,s)?a=null:f!==null&&Gc(n,f)&&(t.flags|=32),t.memoizedState!==null&&(n=Yr(e,t,Yp,null,null,l),Xu._currentValue=n),Fi(e,t),at(e,t,a,l),t.child;case 6:return e===null&&ve&&((e=l=_e)&&(l=O0(l,t.pendingProps,Lt),l!==null?(t.stateNode=l,tt=t,_e=null,e=!0):e=!1),e||Xl(t)),null;case 13:return gh(e,t,l);case 4:return rt(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=Ha(t,null,a,l):at(e,t,a,l),t.child;case 11:return ch(e,t,t.type,t.pendingProps,l);case 7:return at(e,t,t.pendingProps,l),t.child;case 8:return at(e,t,t.pendingProps.children,l),t.child;case 12:return at(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Zl(t,t.type,a.value),at(e,t,a.children,l),t.child;case 9:return n=t.type._context,a=t.pendingProps.children,_a(t),n=lt(n),a=a(n),t.flags|=1,at(e,t,a,l),t.child;case 14:return oh(e,t,t.type,t.pendingProps,l);case 15:return fh(e,t,t.type,t.pendingProps,l);case 19:return bh(e,t,l);case 31:return Fp(e,t,l);case 22:return dh(e,t,l,t.pendingProps);case 24:return _a(t),a=lt(Xe),e===null?(n=zr(),n===null&&(n=ze,s=Ar(),n.pooledCache=s,s.refCount++,s!==null&&(n.pooledCacheLanes|=l),n=s),t.memoizedState={parent:a,cache:n},Dr(t),Zl(t,Xe,n)):((e.lanes&l)!==0&&(Ur(e,t),ju(t,null,null,l),Eu()),n=e.memoizedState,s=t.memoizedState,n.parent!==a?(n={parent:a,cache:a},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),Zl(t,Xe,a)):(a=s.cache,Zl(t,Xe,a),a!==n.cache&&Rr(t,[Xe],l,!0))),at(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(c(156,t.tag))}function Sl(e){e.flags|=4}function yc(e,t,l,a,n){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(Jh())e.flags|=8192;else throw wa=Ui,_r}else e.flags&=-16777217}function Eh(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!qm(t))if(Jh())e.flags|=8192;else throw wa=Ui,_r}function Wi(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ef():536870912,e.lanes|=t,An|=t)}function Au(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var l=null;t!==null;)t.alternate!==null&&(l=t),t=t.sibling;l===null?e.tail=null:l.sibling=null;break;case"collapsed":l=e.tail;for(var a=null;l!==null;)l.alternate!==null&&(a=l),l=l.sibling;a===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:a.sibling=null}}function De(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags&65011712,a|=n.flags&65011712,n.return=e,n=n.sibling;else for(n=e.child;n!==null;)l|=n.lanes|n.childLanes,a|=n.subtreeFlags,a|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Wp(e,t,l){var a=t.pendingProps;switch(jr(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return De(t),null;case 1:return De(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),pl(Xe),Le(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(vn(t)?Sl(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Tr())),De(t),null;case 26:var n=t.type,s=t.memoizedState;return e===null?(Sl(t),s!==null?(De(t),Eh(t,s)):(De(t),yc(t,n,null,a,l))):s?s!==e.memoizedState?(Sl(t),De(t),Eh(t,s)):(De(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&Sl(t),De(t),yc(t,n,e,a,l)),null;case 27:if(ri(t),l=oe.current,n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Sl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return De(t),null}e=I.current,vn(t)?td(t):(e=Am(n,a,l),t.stateNode=e,Sl(t))}return De(t),null;case 5:if(ri(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&Sl(t);else{if(!a){if(t.stateNode===null)throw Error(c(166));return De(t),null}if(s=I.current,vn(t))td(t);else{var f=ds(oe.current);switch(s){case 1:s=f.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:s=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":s=f.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":s=f.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":s=f.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?s.multiple=!0:a.size&&(s.size=a.size);break;default:s=typeof a.is=="string"?f.createElement(n,{is:a.is}):f.createElement(n)}}s[et]=t,s[ht]=a;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)s.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=s;e:switch(nt(s,n,a),n){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&Sl(t)}}return De(t),yc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&Sl(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(c(166));if(e=oe.current,vn(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,n=tt,n!==null)switch(n.tag){case 27:case 5:a=n.memoizedProps}e[et]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||gm(e.nodeValue,l)),e||Xl(t,!0)}else e=ds(e).createTextNode(a),e[et]=t,t.stateNode=e}return De(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=vn(t),l!==null){if(e===null){if(!a)throw Error(c(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(c(557));e[et]=t}else Ma(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),e=!1}else l=Tr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(At(t),t):(At(t),null);if((t.flags&128)!==0)throw Error(c(558))}return De(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=vn(t),a!==null&&a.dehydrated!==null){if(e===null){if(!n)throw Error(c(318));if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(c(317));n[et]=t}else Ma(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;De(t),n=!1}else n=Tr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n)return t.flags&256?(At(t),t):(At(t),null)}return At(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,n=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(n=a.alternate.memoizedState.cachePool.pool),s=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),s!==n&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),Wi(t,t.updateQueue),De(t),null);case 4:return Le(),e===null&&qc(t.stateNode.containerInfo),De(t),null;case 10:return pl(t.type),De(t),null;case 19:if(X(Ye),a=t.memoizedState,a===null)return De(t),null;if(n=(t.flags&128)!==0,s=a.rendering,s===null)if(n)Au(a,!1);else{if(qe!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(s=Bi(e),s!==null){for(t.flags|=128,Au(a,!1),e=s.updateQueue,t.updateQueue=e,Wi(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)$f(l,e),l=l.sibling;return F(Ye,Ye.current&1|2),ve&&yl(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&jt()>ls&&(t.flags|=128,n=!0,Au(a,!1),t.lanes=4194304)}else{if(!n)if(e=Bi(s),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,Wi(t,e),Au(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!ve)return De(t),null}else 2*jt()-a.renderingStartTime>ls&&l!==536870912&&(t.flags|=128,n=!0,Au(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(e=a.last,e!==null?e.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=jt(),e.sibling=null,l=Ye.current,F(Ye,n?l&1|2:l&1),ve&&yl(t,a.treeForkCount),e):(De(t),null);case 22:case 23:return At(t),Br(),a=t.memoizedState!==null,e!==null?e.memoizedState!==null!==a&&(t.flags|=8192):a&&(t.flags|=8192),a?(l&536870912)!==0&&(t.flags&128)===0&&(De(t),t.subtreeFlags&6&&(t.flags|=8192)):De(t),l=t.updateQueue,l!==null&&Wi(t,l.retryQueue),l=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),a=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),a!==l&&(t.flags|=2048),e!==null&&X(Da),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),pl(Xe),De(t),null;case 25:return null;case 30:return null}throw Error(c(156,t.tag))}function Ip(e,t){switch(jr(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return pl(Xe),Le(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ri(t),null;case 31:if(t.memoizedState!==null){if(At(t),t.alternate===null)throw Error(c(340));Ma()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(At(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(c(340));Ma()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return X(Ye),null;case 4:return Le(),null;case 10:return pl(t.type),null;case 22:case 23:return At(t),Br(),e!==null&&X(Da),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return pl(Xe),null;case 25:return null;default:return null}}function jh(e,t){switch(jr(t),t.tag){case 3:pl(Xe),Le();break;case 26:case 27:case 5:ri(t);break;case 4:Le();break;case 31:t.memoizedState!==null&&At(t);break;case 13:At(t);break;case 19:X(Ye);break;case 10:pl(t.type);break;case 22:case 23:At(t),Br(),e!==null&&X(Da);break;case 24:pl(Xe)}}function Mu(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var n=a.next;l=n;do{if((l.tag&e)===e){a=void 0;var s=l.create,f=l.inst;a=s(),f.destroy=a}l=l.next}while(l!==n)}}catch(h){Ne(t,t.return,h)}}function $l(e,t,l){try{var a=t.updateQueue,n=a!==null?a.lastEffect:null;if(n!==null){var s=n.next;a=s;do{if((a.tag&e)===e){var f=a.inst,h=f.destroy;if(h!==void 0){f.destroy=void 0,n=t;var b=l,M=h;try{M()}catch(H){Ne(n,b,H)}}}a=a.next}while(a!==s)}}catch(H){Ne(t,t.return,H)}}function Nh(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{md(t,l)}catch(a){Ne(e,e.return,a)}}}function Th(e,t,l){l.props=Ba(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Ne(e,t,a)}}function zu(e,t){try{var l=e.ref;if(l!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}typeof l=="function"?e.refCleanup=l(a):l.current=a}}catch(n){Ne(e,t,n)}}function nl(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(n){Ne(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(n){Ne(e,t,n)}else l.current=null}function Ch(e){var t=e.type,l=e.memoizedProps,a=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":l.autoFocus&&a.focus();break e;case"img":l.src?a.src=l.src:l.srcSet&&(a.srcset=l.srcSet)}}catch(n){Ne(e,e.return,n)}}function vc(e,t,l){try{var a=e.stateNode;b0(a,e.type,l,t),a[ht]=t}catch(n){Ne(e,e.return,n)}}function Oh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&aa(e.type)||e.tag===4}function pc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Oh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&aa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function gc(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(e,t):(t=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,t.appendChild(e),l=l._reactRootContainer,l!=null||t.onclick!==null||(t.onclick=dl));else if(a!==4&&(a===27&&aa(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(gc(e,t,l),e=e.sibling;e!==null;)gc(e,t,l),e=e.sibling}function Ii(e,t,l){var a=e.tag;if(a===5||a===6)e=e.stateNode,t?l.insertBefore(e,t):l.appendChild(e);else if(a!==4&&(a===27&&aa(e.type)&&(l=e.stateNode),e=e.child,e!==null))for(Ii(e,t,l),e=e.sibling;e!==null;)Ii(e,t,l),e=e.sibling}function Rh(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,n=t.attributes;n.length;)t.removeAttributeNode(n[0]);nt(t,a,l),t[et]=e,t[ht]=l}catch(s){Ne(e,e.return,s)}}var El=!1,Ve=!1,xc=!1,Ah=typeof WeakSet=="function"?WeakSet:Set,Ie=null;function Pp(e,t){if(e=e.containerInfo,Lc=xs,e=Yf(e),dr(e)){if("selectionStart"in e)var l={start:e.selectionStart,end:e.selectionEnd};else e:{l=(l=e.ownerDocument)&&l.defaultView||window;var a=l.getSelection&&l.getSelection();if(a&&a.rangeCount!==0){l=a.anchorNode;var n=a.anchorOffset,s=a.focusNode;a=a.focusOffset;try{l.nodeType,s.nodeType}catch{l=null;break e}var f=0,h=-1,b=-1,M=0,H=0,G=e,z=null;t:for(;;){for(var D;G!==l||n!==0&&G.nodeType!==3||(h=f+n),G!==s||a!==0&&G.nodeType!==3||(b=f+a),G.nodeType===3&&(f+=G.nodeValue.length),(D=G.firstChild)!==null;)z=G,G=D;for(;;){if(G===e)break t;if(z===l&&++M===n&&(h=f),z===s&&++H===a&&(b=f),(D=G.nextSibling)!==null)break;G=z,z=G.parentNode}G=D}l=h===-1||b===-1?null:{start:h,end:b}}else l=null}l=l||{start:0,end:0}}else l=null;for(Yc={focusedElem:e,selectionRange:l},xs=!1,Ie=t;Ie!==null;)if(t=Ie,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ie=e;else for(;Ie!==null;){switch(t=Ie,s=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)n=e[l],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&s!==null){e=void 0,l=t,n=s.memoizedProps,s=s.memoizedState,a=l.stateNode;try{var W=Ba(l.type,n);e=a.getSnapshotBeforeUpdate(W,s),a.__reactInternalSnapshotBeforeUpdate=e}catch(le){Ne(l,l.return,le)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)Zc(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Zc(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(c(163))}if(e=t.sibling,e!==null){e.return=t.return,Ie=e;break}Ie=t.return}}function Mh(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:Nl(e,l),a&4&&Mu(5,l);break;case 1:if(Nl(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(f){Ne(l,l.return,f)}else{var n=Ba(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(n,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Ne(l,l.return,f)}}a&64&&Nh(l),a&512&&zu(l,l.return);break;case 3:if(Nl(e,l),a&64&&(e=l.updateQueue,e!==null)){if(t=null,l.child!==null)switch(l.child.tag){case 27:case 5:t=l.child.stateNode;break;case 1:t=l.child.stateNode}try{md(e,t)}catch(f){Ne(l,l.return,f)}}break;case 27:t===null&&a&4&&Rh(l);case 26:case 5:Nl(e,l),t===null&&a&4&&Ch(l),a&512&&zu(l,l.return);break;case 12:Nl(e,l);break;case 31:Nl(e,l),a&4&&Dh(e,l);break;case 13:Nl(e,l),a&4&&Uh(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=r0.bind(null,l),R0(e,l))));break;case 22:if(a=l.memoizedState!==null||El,!a){t=t!==null&&t.memoizedState!==null||Ve,n=El;var s=Ve;El=a,(Ve=t)&&!s?Tl(e,l,(l.subtreeFlags&8772)!==0):Nl(e,l),El=n,Ve=s}break;case 30:break;default:Nl(e,l)}}function zh(e){var t=e.alternate;t!==null&&(e.alternate=null,zh(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Fs(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,yt=!1;function jl(e,t,l){for(l=l.child;l!==null;)_h(e,t,l),l=l.sibling}function _h(e,t,l){if(Nt&&typeof Nt.onCommitFiberUnmount=="function")try{Nt.onCommitFiberUnmount(tu,l)}catch{}switch(l.tag){case 26:Ve||nl(l,t),jl(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Ve||nl(l,t);var a=Ue,n=yt;aa(l.type)&&(Ue=l.stateNode,yt=!1),jl(e,t,l),Lu(l.stateNode),Ue=a,yt=n;break;case 5:Ve||nl(l,t);case 6:if(a=Ue,n=yt,Ue=null,jl(e,t,l),Ue=a,yt=n,Ue!==null)if(yt)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(l.stateNode)}catch(s){Ne(l,t,s)}else try{Ue.removeChild(l.stateNode)}catch(s){Ne(l,t,s)}break;case 18:Ue!==null&&(yt?(e=Ue,Nm(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),qn(e)):Nm(Ue,l.stateNode));break;case 4:a=Ue,n=yt,Ue=l.stateNode.containerInfo,yt=!0,jl(e,t,l),Ue=a,yt=n;break;case 0:case 11:case 14:case 15:$l(2,l,t),Ve||$l(4,l,t),jl(e,t,l);break;case 1:Ve||(nl(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Th(l,t,a)),jl(e,t,l);break;case 21:jl(e,t,l);break;case 22:Ve=(a=Ve)||l.memoizedState!==null,jl(e,t,l),Ve=a;break;default:jl(e,t,l)}}function Dh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{qn(e)}catch(l){Ne(t,t.return,l)}}}function Uh(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{qn(e)}catch(l){Ne(t,t.return,l)}}function e0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Ah),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Ah),t;default:throw Error(c(435,e.tag))}}function Pi(e,t){var l=e0(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var n=c0.bind(null,e,a);a.then(n,n)}})}function vt(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var n=l[a],s=e,f=t,h=f;e:for(;h!==null;){switch(h.tag){case 27:if(aa(h.type)){Ue=h.stateNode,yt=!1;break e}break;case 5:Ue=h.stateNode,yt=!1;break e;case 3:case 4:Ue=h.stateNode.containerInfo,yt=!0;break e}h=h.return}if(Ue===null)throw Error(c(160));_h(s,f,n),Ue=null,yt=!1,s=n.alternate,s!==null&&(s.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)wh(t,e),t=t.sibling}var $t=null;function wh(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:vt(t,e),pt(e),a&4&&($l(3,e,e.return),Mu(3,e),$l(5,e,e.return));break;case 1:vt(t,e),pt(e),a&512&&(Ve||l===null||nl(l,l.return)),a&64&&El&&(e=e.updateQueue,e!==null&&(a=e.callbacks,a!==null&&(l=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=l===null?a:l.concat(a))));break;case 26:var n=$t;if(vt(t,e),pt(e),a&512&&(Ve||l===null||nl(l,l.return)),a&4){var s=l!==null?l.memoizedState:null;if(a=e.memoizedState,l===null)if(a===null)if(e.stateNode===null){e:{a=e.type,l=e.memoizedProps,n=n.ownerDocument||n;t:switch(a){case"title":s=n.getElementsByTagName("title")[0],(!s||s[nu]||s[et]||s.namespaceURI==="http://www.w3.org/2000/svg"||s.hasAttribute("itemprop"))&&(s=n.createElement(a),n.head.insertBefore(s,n.querySelector("head > title"))),nt(s,a,l),s[et]=e,We(s),a=s;break e;case"link":var f=wm("link","href",n).get(a+(l.href||""));if(f){for(var h=0;h<f.length;h++)if(s=f[h],s.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&s.getAttribute("rel")===(l.rel==null?null:l.rel)&&s.getAttribute("title")===(l.title==null?null:l.title)&&s.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){f.splice(h,1);break t}}s=n.createElement(a),nt(s,a,l),n.head.appendChild(s);break;case"meta":if(f=wm("meta","content",n).get(a+(l.content||""))){for(h=0;h<f.length;h++)if(s=f[h],s.getAttribute("content")===(l.content==null?null:""+l.content)&&s.getAttribute("name")===(l.name==null?null:l.name)&&s.getAttribute("property")===(l.property==null?null:l.property)&&s.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&s.getAttribute("charset")===(l.charSet==null?null:l.charSet)){f.splice(h,1);break t}}s=n.createElement(a),nt(s,a,l),n.head.appendChild(s);break;default:throw Error(c(468,a))}s[et]=e,We(s),a=s}e.stateNode=a}else Hm(n,e.type,e.stateNode);else e.stateNode=Um(n,a,e.memoizedProps);else s!==a?(s===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):s.count--,a===null?Hm(n,e.type,e.stateNode):Um(n,a,e.memoizedProps)):a===null&&e.stateNode!==null&&vc(e,e.memoizedProps,l.memoizedProps)}break;case 27:vt(t,e),pt(e),a&512&&(Ve||l===null||nl(l,l.return)),l!==null&&a&4&&vc(e,e.memoizedProps,l.memoizedProps);break;case 5:if(vt(t,e),pt(e),a&512&&(Ve||l===null||nl(l,l.return)),e.flags&32){n=e.stateNode;try{un(n,"")}catch(W){Ne(e,e.return,W)}}a&4&&e.stateNode!=null&&(n=e.memoizedProps,vc(e,n,l!==null?l.memoizedProps:n)),a&1024&&(xc=!0);break;case 6:if(vt(t,e),pt(e),a&4){if(e.stateNode===null)throw Error(c(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(W){Ne(e,e.return,W)}}break;case 3:if(ys=null,n=$t,$t=hs(t.containerInfo),vt(t,e),$t=n,pt(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{qn(t.containerInfo)}catch(W){Ne(e,e.return,W)}xc&&(xc=!1,Hh(e));break;case 4:a=$t,$t=hs(e.stateNode.containerInfo),vt(t,e),pt(e),$t=a;break;case 12:vt(t,e),pt(e);break;case 31:vt(t,e),pt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Pi(e,a)));break;case 13:vt(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(ts=jt()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Pi(e,a)));break;case 22:n=e.memoizedState!==null;var b=l!==null&&l.memoizedState!==null,M=El,H=Ve;if(El=M||n,Ve=H||b,vt(t,e),Ve=H,El=M,pt(e),a&8192)e:for(t=e.stateNode,t._visibility=n?t._visibility&-2:t._visibility|1,n&&(l===null||b||El||Ve||Qa(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){b=l=t;try{if(s=b.stateNode,n)f=s.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{h=b.stateNode;var G=b.memoizedProps.style,z=G!=null&&G.hasOwnProperty("display")?G.display:null;h.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(W){Ne(b,b.return,W)}}}else if(t.tag===6){if(l===null){b=t;try{b.stateNode.nodeValue=n?"":b.memoizedProps}catch(W){Ne(b,b.return,W)}}}else if(t.tag===18){if(l===null){b=t;try{var D=b.stateNode;n?Tm(D,!0):Tm(b.stateNode,!1)}catch(W){Ne(b,b.return,W)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;l===t&&(l=null),t=t.return}l===t&&(l=null),t.sibling.return=t.return,t=t.sibling}a&4&&(a=e.updateQueue,a!==null&&(l=a.retryQueue,l!==null&&(a.retryQueue=null,Pi(e,l))));break;case 19:vt(t,e),pt(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Pi(e,a)));break;case 30:break;case 21:break;default:vt(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Oh(a)){l=a;break}a=a.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var n=l.stateNode,s=pc(e);Ii(e,s,n);break;case 5:var f=l.stateNode;l.flags&32&&(un(f,""),l.flags&=-33);var h=pc(e);Ii(e,h,f);break;case 3:case 4:var b=l.stateNode.containerInfo,M=pc(e);gc(e,M,b);break;default:throw Error(c(161))}}catch(H){Ne(e,e.return,H)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Hh(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Hh(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Nl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Mh(e,t.alternate,t),t=t.sibling}function Qa(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:$l(4,t,t.return),Qa(t);break;case 1:nl(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Th(t,t.return,l),Qa(t);break;case 27:Lu(t.stateNode);case 26:case 5:nl(t,t.return),Qa(t);break;case 22:t.memoizedState===null&&Qa(t);break;case 30:Qa(t);break;default:Qa(t)}e=e.sibling}}function Tl(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,n=e,s=t,f=s.flags;switch(s.tag){case 0:case 11:case 15:Tl(n,s,l),Mu(4,s);break;case 1:if(Tl(n,s,l),a=s,n=a.stateNode,typeof n.componentDidMount=="function")try{n.componentDidMount()}catch(M){Ne(a,a.return,M)}if(a=s,n=a.updateQueue,n!==null){var h=a.stateNode;try{var b=n.shared.hiddenCallbacks;if(b!==null)for(n.shared.hiddenCallbacks=null,n=0;n<b.length;n++)hd(b[n],h)}catch(M){Ne(a,a.return,M)}}l&&f&64&&Nh(s),zu(s,s.return);break;case 27:Rh(s);case 26:case 5:Tl(n,s,l),l&&a===null&&f&4&&Ch(s),zu(s,s.return);break;case 12:Tl(n,s,l);break;case 31:Tl(n,s,l),l&&f&4&&Dh(n,s);break;case 13:Tl(n,s,l),l&&f&4&&Uh(n,s);break;case 22:s.memoizedState===null&&Tl(n,s,l),zu(s,s.return);break;case 30:break;default:Tl(n,s,l)}t=t.sibling}}function bc(e,t){var l=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==l&&(e!=null&&e.refCount++,l!=null&&pu(l))}function Sc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pu(e))}function Wt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)qh(e,t,l,a),t=t.sibling}function qh(e,t,l,a){var n=t.flags;switch(t.tag){case 0:case 11:case 15:Wt(e,t,l,a),n&2048&&Mu(9,t);break;case 1:Wt(e,t,l,a);break;case 3:Wt(e,t,l,a),n&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&pu(e)));break;case 12:if(n&2048){Wt(e,t,l,a),e=t.stateNode;try{var s=t.memoizedProps,f=s.id,h=s.onPostCommit;typeof h=="function"&&h(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Ne(t,t.return,b)}}else Wt(e,t,l,a);break;case 31:Wt(e,t,l,a);break;case 13:Wt(e,t,l,a);break;case 23:break;case 22:s=t.stateNode,f=t.alternate,t.memoizedState!==null?s._visibility&2?Wt(e,t,l,a):_u(e,t):s._visibility&2?Wt(e,t,l,a):(s._visibility|=2,Cn(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),n&2048&&bc(f,t);break;case 24:Wt(e,t,l,a),n&2048&&Sc(t.alternate,t);break;default:Wt(e,t,l,a)}}function Cn(e,t,l,a,n){for(n=n&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var s=e,f=t,h=l,b=a,M=f.flags;switch(f.tag){case 0:case 11:case 15:Cn(s,f,h,b,n),Mu(8,f);break;case 23:break;case 22:var H=f.stateNode;f.memoizedState!==null?H._visibility&2?Cn(s,f,h,b,n):_u(s,f):(H._visibility|=2,Cn(s,f,h,b,n)),n&&M&2048&&bc(f.alternate,f);break;case 24:Cn(s,f,h,b,n),n&&M&2048&&Sc(f.alternate,f);break;default:Cn(s,f,h,b,n)}t=t.sibling}}function _u(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,n=a.flags;switch(a.tag){case 22:_u(l,a),n&2048&&bc(a.alternate,a);break;case 24:_u(l,a),n&2048&&Sc(a.alternate,a);break;default:_u(l,a)}t=t.sibling}}var Du=8192;function On(e,t,l){if(e.subtreeFlags&Du)for(e=e.child;e!==null;)Bh(e,t,l),e=e.sibling}function Bh(e,t,l){switch(e.tag){case 26:On(e,t,l),e.flags&Du&&e.memoizedState!==null&&L0(l,$t,e.memoizedState,e.memoizedProps);break;case 5:On(e,t,l);break;case 3:case 4:var a=$t;$t=hs(e.stateNode.containerInfo),On(e,t,l),$t=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Du,Du=16777216,On(e,t,l),Du=a):On(e,t,l));break;default:On(e,t,l)}}function Qh(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Uu(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ie=a,Yh(a,e)}Qh(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Lh(e),e=e.sibling}function Lh(e){switch(e.tag){case 0:case 11:case 15:Uu(e),e.flags&2048&&$l(9,e,e.return);break;case 3:Uu(e);break;case 12:Uu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,es(e)):Uu(e);break;default:Uu(e)}}function es(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var l=0;l<t.length;l++){var a=t[l];Ie=a,Yh(a,e)}Qh(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:$l(8,t,t.return),es(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,es(t));break;default:es(t)}e=e.sibling}}function Yh(e,t){for(;Ie!==null;){var l=Ie;switch(l.tag){case 0:case 11:case 15:$l(8,l,t);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var a=l.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:pu(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ie=a;else e:for(l=e;Ie!==null;){a=Ie;var n=a.sibling,s=a.return;if(zh(a),a===l){Ie=null;break e}if(n!==null){n.return=s,Ie=n;break e}Ie=s}}}var t0={getCacheForType:function(e){var t=lt(Xe),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return lt(Xe).controller.signal}},l0=typeof WeakMap=="function"?WeakMap:Map,be=0,ze=null,fe=null,me=0,je=0,Mt=null,Wl=!1,Rn=!1,Ec=!1,Cl=0,qe=0,Il=0,La=0,jc=0,zt=0,An=0,wu=null,gt=null,Nc=!1,ts=0,Gh=0,ls=1/0,as=null,Pl=null,Fe=0,ea=null,Mn=null,Ol=0,Tc=0,Cc=null,Xh=null,Hu=0,Oc=null;function _t(){return(be&2)!==0&&me!==0?me&-me:B.T!==null?Dc():nf()}function Zh(){if(zt===0)if((me&536870912)===0||ve){var e=fi;fi<<=1,(fi&3932160)===0&&(fi=262144),zt=e}else zt=536870912;return e=Rt.current,e!==null&&(e.flags|=32),zt}function xt(e,t,l){(e===ze&&(je===2||je===9)||e.cancelPendingCommit!==null)&&(zn(e,0),ta(e,me,zt,!1)),au(e,l),((be&2)===0||e!==ze)&&(e===ze&&((be&2)===0&&(La|=l),qe===4&&ta(e,me,zt,!1)),ul(e))}function Kh(e,t,l){if((be&6)!==0)throw Error(c(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||lu(e,t),n=a?u0(e,t):Ac(e,t,!0),s=a;do{if(n===0){Rn&&!a&&ta(e,t,0,!1);break}else{if(l=e.current.alternate,s&&!a0(l)){n=Ac(e,t,!1),s=!1;continue}if(n===2){if(s=t,e.errorRecoveryDisabledLanes&s)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var h=e;n=wu;var b=h.current.memoizedState.isDehydrated;if(b&&(zn(h,f).flags|=256),f=Ac(h,f,!1),f!==2){if(Ec&&!b){h.errorRecoveryDisabledLanes|=s,La|=s,n=4;break e}s=gt,gt=n,s!==null&&(gt===null?gt=s:gt.push.apply(gt,s))}n=f}if(s=!1,n!==2)continue}}if(n===1){zn(e,0),ta(e,t,0,!0);break}e:{switch(a=e,s=n,s){case 0:case 1:throw Error(c(345));case 4:if((t&4194048)!==t)break;case 6:ta(a,t,zt,!Wl);break e;case 2:gt=null;break;case 3:case 5:break;default:throw Error(c(329))}if((t&62914560)===t&&(n=ts+300-jt(),10<n)){if(ta(a,t,zt,!Wl),hi(a,0,!0)!==0)break e;Ol=t,a.timeoutHandle=Em(Vh.bind(null,a,l,gt,as,Nc,t,zt,La,An,Wl,s,"Throttled",-0,0),n);break e}Vh(a,l,gt,as,Nc,t,zt,La,An,Wl,s,null,-0,0)}}break}while(!0);ul(e)}function Vh(e,t,l,a,n,s,f,h,b,M,H,G,z,D){if(e.timeoutHandle=-1,G=t.subtreeFlags,G&8192||(G&16785408)===16785408){G={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:dl},Bh(t,s,G);var W=(s&62914560)===s?ts-jt():(s&4194048)===s?Gh-jt():0;if(W=Y0(G,W),W!==null){Ol=s,e.cancelPendingCommit=W(em.bind(null,e,t,s,l,a,n,f,h,b,H,G,null,z,D)),ta(e,s,f,!M);return}}em(e,t,s,l,a,n,f,h,b)}function a0(e){for(var t=e;;){var l=t.tag;if((l===0||l===11||l===15)&&t.flags&16384&&(l=t.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var a=0;a<l.length;a++){var n=l[a],s=n.getSnapshot;n=n.value;try{if(!Ct(s(),n))return!1}catch{return!1}}if(l=t.child,t.subtreeFlags&16384&&l!==null)l.return=t,t=l;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ta(e,t,l,a){t&=~jc,t&=~La,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var n=t;0<n;){var s=31-Tt(n),f=1<<s;a[s]=-1,n&=~f}l!==0&&tf(e,l,t)}function ns(){return(be&6)===0?(qu(0),!1):!0}function Rc(){if(fe!==null){if(je===0)var e=fe.return;else e=fe,vl=za=null,Zr(e),Sn=null,xu=0,e=fe;for(;e!==null;)jh(e.alternate,e),e=e.return;fe=null}}function zn(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,j0(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),Ol=0,Rc(),ze=e,fe=l=ml(e.current,null),me=t,je=0,Mt=null,Wl=!1,Rn=lu(e,t),Ec=!1,An=zt=jc=La=Il=qe=0,gt=wu=null,Nc=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var n=31-Tt(a),s=1<<n;t|=e[n],a&=~s}return Cl=t,Ti(),l}function kh(e,t){se=null,B.H=Ou,t===bn||t===Di?(t=cd(),je=3):t===_r?(t=cd(),je=4):je=t===ic?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Mt=t,fe===null&&(qe=1,ki(e,qt(t,e.current)))}function Jh(){var e=Rt.current;return e===null?!0:(me&4194048)===me?Yt===null:(me&62914560)===me||(me&536870912)!==0?e===Yt:!1}function Fh(){var e=B.H;return B.H=Ou,e===null?Ou:e}function $h(){var e=B.A;return B.A=t0,e}function us(){qe=4,Wl||(me&4194048)!==me&&Rt.current!==null||(Rn=!0),(Il&134217727)===0&&(La&134217727)===0||ze===null||ta(ze,me,zt,!1)}function Ac(e,t,l){var a=be;be|=2;var n=Fh(),s=$h();(ze!==e||me!==t)&&(as=null,zn(e,t)),t=!1;var f=qe;e:do try{if(je!==0&&fe!==null){var h=fe,b=Mt;switch(je){case 8:Rc(),f=6;break e;case 3:case 2:case 9:case 6:Rt.current===null&&(t=!0);var M=je;if(je=0,Mt=null,_n(e,h,b,M),l&&Rn){f=0;break e}break;default:M=je,je=0,Mt=null,_n(e,h,b,M)}}n0(),f=qe;break}catch(H){kh(e,H)}while(!0);return t&&e.shellSuspendCounter++,vl=za=null,be=a,B.H=n,B.A=s,fe===null&&(ze=null,me=0,Ti()),f}function n0(){for(;fe!==null;)Wh(fe)}function u0(e,t){var l=be;be|=2;var a=Fh(),n=$h();ze!==e||me!==t?(as=null,ls=jt()+500,zn(e,t)):Rn=lu(e,t);e:do try{if(je!==0&&fe!==null){t=fe;var s=Mt;t:switch(je){case 1:je=0,Mt=null,_n(e,t,s,1);break;case 2:case 9:if(sd(s)){je=0,Mt=null,Ih(t);break}t=function(){je!==2&&je!==9||ze!==e||(je=7),ul(e)},s.then(t,t);break e;case 3:je=7;break e;case 4:je=5;break e;case 7:sd(s)?(je=0,Mt=null,Ih(t)):(je=0,Mt=null,_n(e,t,s,7));break;case 5:var f=null;switch(fe.tag){case 26:f=fe.memoizedState;case 5:case 27:var h=fe;if(f?qm(f):h.stateNode.complete){je=0,Mt=null;var b=h.sibling;if(b!==null)fe=b;else{var M=h.return;M!==null?(fe=M,is(M)):fe=null}break t}}je=0,Mt=null,_n(e,t,s,5);break;case 6:je=0,Mt=null,_n(e,t,s,6);break;case 8:Rc(),qe=6;break e;default:throw Error(c(462))}}i0();break}catch(H){kh(e,H)}while(!0);return vl=za=null,B.H=a,B.A=n,be=l,fe!==null?0:(ze=null,me=0,Ti(),qe)}function i0(){for(;fe!==null&&!Av();)Wh(fe)}function Wh(e){var t=Sh(e.alternate,e,Cl);e.memoizedProps=e.pendingProps,t===null?is(e):fe=t}function Ih(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=yh(l,t,t.pendingProps,t.type,void 0,me);break;case 11:t=yh(l,t,t.pendingProps,t.type.render,t.ref,me);break;case 5:Zr(t);default:jh(l,t),t=fe=$f(t,Cl),t=Sh(l,t,Cl)}e.memoizedProps=e.pendingProps,t===null?is(e):fe=t}function _n(e,t,l,a){vl=za=null,Zr(t),Sn=null,xu=0;var n=t.return;try{if(Jp(e,n,t,l,me)){qe=1,ki(e,qt(l,e.current)),fe=null;return}}catch(s){if(n!==null)throw fe=n,s;qe=1,ki(e,qt(l,e.current)),fe=null;return}t.flags&32768?(ve||a===1?e=!0:Rn||(me&536870912)!==0?e=!1:(Wl=e=!0,(a===2||a===9||a===3||a===6)&&(a=Rt.current,a!==null&&a.tag===13&&(a.flags|=16384))),Ph(t,e)):is(t)}function is(e){var t=e;do{if((t.flags&32768)!==0){Ph(t,Wl);return}e=t.return;var l=Wp(t.alternate,t,Cl);if(l!==null){fe=l;return}if(t=t.sibling,t!==null){fe=t;return}fe=t=e}while(t!==null);qe===0&&(qe=5)}function Ph(e,t){do{var l=Ip(e.alternate,e);if(l!==null){l.flags&=32767,fe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){fe=e;return}fe=e=l}while(e!==null);qe=6,fe=null}function em(e,t,l,a,n,s,f,h,b){e.cancelPendingCommit=null;do ss();while(Fe!==0);if((be&6)!==0)throw Error(c(327));if(t!==null){if(t===e.current)throw Error(c(177));if(s=t.lanes|t.childLanes,s|=pr,Qv(e,l,s,f,h,b),e===ze&&(fe=ze=null,me=0),Mn=t,ea=e,Ol=l,Tc=s,Cc=n,Xh=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,o0(ci,function(){return um(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=B.T,B.T=null,n=J.p,J.p=2,f=be,be|=4;try{Pp(e,t,l)}finally{be=f,J.p=n,B.T=a}}Fe=1,tm(),lm(),am()}}function tm(){if(Fe===1){Fe=0;var e=ea,t=Mn,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=B.T,B.T=null;var a=J.p;J.p=2;var n=be;be|=4;try{wh(t,e);var s=Yc,f=Yf(e.containerInfo),h=s.focusedElem,b=s.selectionRange;if(f!==h&&h&&h.ownerDocument&&Lf(h.ownerDocument.documentElement,h)){if(b!==null&&dr(h)){var M=b.start,H=b.end;if(H===void 0&&(H=M),"selectionStart"in h)h.selectionStart=M,h.selectionEnd=Math.min(H,h.value.length);else{var G=h.ownerDocument||document,z=G&&G.defaultView||window;if(z.getSelection){var D=z.getSelection(),W=h.textContent.length,le=Math.min(b.start,W),Ae=b.end===void 0?le:Math.min(b.end,W);!D.extend&&le>Ae&&(f=Ae,Ae=le,le=f);var C=Qf(h,le),E=Qf(h,Ae);if(C&&E&&(D.rangeCount!==1||D.anchorNode!==C.node||D.anchorOffset!==C.offset||D.focusNode!==E.node||D.focusOffset!==E.offset)){var A=G.createRange();A.setStart(C.node,C.offset),D.removeAllRanges(),le>Ae?(D.addRange(A),D.extend(E.node,E.offset)):(A.setEnd(E.node,E.offset),D.addRange(A))}}}}for(G=[],D=h;D=D.parentNode;)D.nodeType===1&&G.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<G.length;h++){var Q=G[h];Q.element.scrollLeft=Q.left,Q.element.scrollTop=Q.top}}xs=!!Lc,Yc=Lc=null}finally{be=n,J.p=a,B.T=l}}e.current=t,Fe=2}}function lm(){if(Fe===2){Fe=0;var e=ea,t=Mn,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=B.T,B.T=null;var a=J.p;J.p=2;var n=be;be|=4;try{Mh(e,t.alternate,t)}finally{be=n,J.p=a,B.T=l}}Fe=3}}function am(){if(Fe===4||Fe===3){Fe=0,Mv();var e=ea,t=Mn,l=Ol,a=Xh;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Fe=5:(Fe=0,Mn=ea=null,nm(e,e.pendingLanes));var n=e.pendingLanes;if(n===0&&(Pl=null),ks(l),t=t.stateNode,Nt&&typeof Nt.onCommitFiberRoot=="function")try{Nt.onCommitFiberRoot(tu,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=B.T,n=J.p,J.p=2,B.T=null;try{for(var s=e.onRecoverableError,f=0;f<a.length;f++){var h=a[f];s(h.value,{componentStack:h.stack})}}finally{B.T=t,J.p=n}}(Ol&3)!==0&&ss(),ul(e),n=e.pendingLanes,(l&261930)!==0&&(n&42)!==0?e===Oc?Hu++:(Hu=0,Oc=e):Hu=0,qu(0)}}function nm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,pu(t)))}function ss(){return tm(),lm(),am(),um()}function um(){if(Fe!==5)return!1;var e=ea,t=Tc;Tc=0;var l=ks(Ol),a=B.T,n=J.p;try{J.p=32>l?32:l,B.T=null,l=Cc,Cc=null;var s=ea,f=Ol;if(Fe=0,Mn=ea=null,Ol=0,(be&6)!==0)throw Error(c(331));var h=be;if(be|=4,Lh(s.current),qh(s,s.current,f,l),be=h,qu(0,!1),Nt&&typeof Nt.onPostCommitFiberRoot=="function")try{Nt.onPostCommitFiberRoot(tu,s)}catch{}return!0}finally{J.p=n,B.T=a,nm(e,t)}}function im(e,t,l){t=qt(l,t),t=uc(e.stateNode,t,2),e=kl(e,t,2),e!==null&&(au(e,2),ul(e))}function Ne(e,t,l){if(e.tag===3)im(e,e,l);else for(;t!==null;){if(t.tag===3){im(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Pl===null||!Pl.has(a))){e=qt(l,e),l=sh(2),a=kl(t,l,2),a!==null&&(rh(l,a,t,e),au(a,2),ul(a));break}}t=t.return}}function Mc(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new l0;var n=new Set;a.set(t,n)}else n=a.get(t),n===void 0&&(n=new Set,a.set(t,n));n.has(l)||(Ec=!0,n.add(l),e=s0.bind(null,e,t,l),t.then(e,e))}function s0(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,ze===e&&(me&l)===l&&(qe===4||qe===3&&(me&62914560)===me&&300>jt()-ts?(be&2)===0&&zn(e,0):jc|=l,An===me&&(An=0)),ul(e)}function sm(e,t){t===0&&(t=ef()),e=Ra(e,t),e!==null&&(au(e,t),ul(e))}function r0(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),sm(e,l)}function c0(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,n=e.memoizedState;n!==null&&(l=n.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(c(314))}a!==null&&a.delete(t),sm(e,l)}function o0(e,t){return Xs(e,t)}var rs=null,Dn=null,zc=!1,cs=!1,_c=!1,la=0;function ul(e){e!==Dn&&e.next===null&&(Dn===null?rs=Dn=e:Dn=Dn.next=e),cs=!0,zc||(zc=!0,d0())}function qu(e,t){if(!_c&&cs){_c=!0;do for(var l=!1,a=rs;a!==null;){if(e!==0){var n=a.pendingLanes;if(n===0)var s=0;else{var f=a.suspendedLanes,h=a.pingedLanes;s=(1<<31-Tt(42|e)+1)-1,s&=n&~(f&~h),s=s&201326741?s&201326741|1:s?s|2:0}s!==0&&(l=!0,fm(a,s))}else s=me,s=hi(a,a===ze?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(s&3)===0||lu(a,s)||(l=!0,fm(a,s));a=a.next}while(l);_c=!1}}function f0(){rm()}function rm(){cs=zc=!1;var e=0;la!==0&&E0()&&(e=la);for(var t=jt(),l=null,a=rs;a!==null;){var n=a.next,s=cm(a,t);s===0?(a.next=null,l===null?rs=n:l.next=n,n===null&&(Dn=l)):(l=a,(e!==0||(s&3)!==0)&&(cs=!0)),a=n}Fe!==0&&Fe!==5||qu(e),la!==0&&(la=0)}function cm(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,n=e.expirationTimes,s=e.pendingLanes&-62914561;0<s;){var f=31-Tt(s),h=1<<f,b=n[f];b===-1?((h&l)===0||(h&a)!==0)&&(n[f]=Bv(h,t)):b<=t&&(e.expiredLanes|=h),s&=~h}if(t=ze,l=me,l=hi(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(je===2||je===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&Zs(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||lu(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&Zs(a),ks(l)){case 2:case 8:l=Io;break;case 32:l=ci;break;case 268435456:l=Po;break;default:l=ci}return a=om.bind(null,e),l=Xs(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&Zs(a),e.callbackPriority=2,e.callbackNode=null,2}function om(e,t){if(Fe!==0&&Fe!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(ss()&&e.callbackNode!==l)return null;var a=me;return a=hi(e,e===ze?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Kh(e,a,t),cm(e,jt()),e.callbackNode!=null&&e.callbackNode===l?om.bind(null,e):null)}function fm(e,t){if(ss())return null;Kh(e,t,!0)}function d0(){N0(function(){(be&6)!==0?Xs(Wo,f0):rm()})}function Dc(){if(la===0){var e=gn;e===0&&(e=oi,oi<<=1,(oi&261888)===0&&(oi=256)),la=e}return la}function dm(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:pi(""+e)}function hm(e,t){var l=t.ownerDocument.createElement("input");return l.name=t.name,l.value=t.value,e.id&&l.setAttribute("form",e.id),t.parentNode.insertBefore(l,t),e=new FormData(e),l.parentNode.removeChild(l),e}function h0(e,t,l,a,n){if(t==="submit"&&l&&l.stateNode===n){var s=dm((n[ht]||null).action),f=a.submitter;f&&(t=(t=f[ht]||null)?dm(t.formAction):f.getAttribute("formAction"),t!==null&&(s=t,f=null));var h=new Si("action","action",null,a,n);e.push({event:h,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(la!==0){var b=f?hm(n,f):new FormData(n);Pr(l,{pending:!0,data:b,method:n.method,action:s},null,b)}}else typeof s=="function"&&(h.preventDefault(),b=f?hm(n,f):new FormData(n),Pr(l,{pending:!0,data:b,method:n.method,action:s},s,b))},currentTarget:n}]})}}for(var Uc=0;Uc<vr.length;Uc++){var wc=vr[Uc],m0=wc.toLowerCase(),y0=wc[0].toUpperCase()+wc.slice(1);Ft(m0,"on"+y0)}Ft(Zf,"onAnimationEnd"),Ft(Kf,"onAnimationIteration"),Ft(Vf,"onAnimationStart"),Ft("dblclick","onDoubleClick"),Ft("focusin","onFocus"),Ft("focusout","onBlur"),Ft(zp,"onTransitionRun"),Ft(_p,"onTransitionStart"),Ft(Dp,"onTransitionCancel"),Ft(kf,"onTransitionEnd"),an("onMouseEnter",["mouseout","mouseover"]),an("onMouseLeave",["mouseout","mouseover"]),an("onPointerEnter",["pointerout","pointerover"]),an("onPointerLeave",["pointerout","pointerover"]),Na("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Na("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Na("onBeforeInput",["compositionend","keypress","textInput","paste"]),Na("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Na("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Na("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Bu="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(" "),v0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Bu));function mm(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],n=a.event;a=a.listeners;e:{var s=void 0;if(t)for(var f=a.length-1;0<=f;f--){var h=a[f],b=h.instance,M=h.currentTarget;if(h=h.listener,b!==s&&n.isPropagationStopped())break e;s=h,n.currentTarget=M;try{s(n)}catch(H){Ni(H)}n.currentTarget=null,s=b}else for(f=0;f<a.length;f++){if(h=a[f],b=h.instance,M=h.currentTarget,h=h.listener,b!==s&&n.isPropagationStopped())break e;s=h,n.currentTarget=M;try{s(n)}catch(H){Ni(H)}n.currentTarget=null,s=b}}}}function de(e,t){var l=t[Js];l===void 0&&(l=t[Js]=new Set);var a=e+"__bubble";l.has(a)||(ym(t,e,2,!1),l.add(a))}function Hc(e,t,l){var a=0;t&&(a|=4),ym(l,e,a,t)}var os="_reactListening"+Math.random().toString(36).slice(2);function qc(e){if(!e[os]){e[os]=!0,rf.forEach(function(l){l!=="selectionchange"&&(v0.has(l)||Hc(l,!1,e),Hc(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[os]||(t[os]=!0,Hc("selectionchange",!1,t))}}function ym(e,t,l,a){switch(Zm(t)){case 2:var n=Z0;break;case 8:n=K0;break;default:n=Ic}l=n.bind(null,t,l,e),n=void 0,!ar||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),a?n!==void 0?e.addEventListener(t,l,{capture:!0,passive:n}):e.addEventListener(t,l,!0):n!==void 0?e.addEventListener(t,l,{passive:n}):e.addEventListener(t,l,!1)}function Bc(e,t,l,a,n){var s=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var h=a.stateNode.containerInfo;if(h===n)break;if(f===4)for(f=a.return;f!==null;){var b=f.tag;if((b===3||b===4)&&f.stateNode.containerInfo===n)return;f=f.return}for(;h!==null;){if(f=en(h),f===null)return;if(b=f.tag,b===5||b===6||b===26||b===27){a=s=f;continue e}h=h.parentNode}}a=a.return}bf(function(){var M=s,H=tr(l),G=[];e:{var z=Jf.get(e);if(z!==void 0){var D=Si,W=e;switch(e){case"keypress":if(xi(l)===0)break e;case"keydown":case"keyup":D=cp;break;case"focusin":W="focus",D=sr;break;case"focusout":W="blur",D=sr;break;case"beforeblur":case"afterblur":D=sr;break;case"click":if(l.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":D=jf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=Wv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=dp;break;case Zf:case Kf:case Vf:D=ep;break;case kf:D=mp;break;case"scroll":case"scrollend":D=Fv;break;case"wheel":D=vp;break;case"copy":case"cut":case"paste":D=lp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=Tf;break;case"toggle":case"beforetoggle":D=gp}var le=(t&4)!==0,Ae=!le&&(e==="scroll"||e==="scrollend"),C=le?z!==null?z+"Capture":null:z;le=[];for(var E=M,A;E!==null;){var Q=E;if(A=Q.stateNode,Q=Q.tag,Q!==5&&Q!==26&&Q!==27||A===null||C===null||(Q=iu(E,C),Q!=null&&le.push(Qu(E,Q,A))),Ae)break;E=E.return}0<le.length&&(z=new D(z,W,null,l,H),G.push({event:z,listeners:le}))}}if((t&7)===0){e:{if(z=e==="mouseover"||e==="pointerover",D=e==="mouseout"||e==="pointerout",z&&l!==er&&(W=l.relatedTarget||l.fromElement)&&(en(W)||W[Pa]))break e;if((D||z)&&(z=H.window===H?H:(z=H.ownerDocument)?z.defaultView||z.parentWindow:window,D?(W=l.relatedTarget||l.toElement,D=M,W=W?en(W):null,W!==null&&(Ae=m(W),le=W.tag,W!==Ae||le!==5&&le!==27&&le!==6)&&(W=null)):(D=null,W=M),D!==W)){if(le=jf,Q="onMouseLeave",C="onMouseEnter",E="mouse",(e==="pointerout"||e==="pointerover")&&(le=Tf,Q="onPointerLeave",C="onPointerEnter",E="pointer"),Ae=D==null?z:uu(D),A=W==null?z:uu(W),z=new le(Q,E+"leave",D,l,H),z.target=Ae,z.relatedTarget=A,Q=null,en(H)===M&&(le=new le(C,E+"enter",W,l,H),le.target=A,le.relatedTarget=Ae,Q=le),Ae=Q,D&&W)t:{for(le=p0,C=D,E=W,A=0,Q=C;Q;Q=le(Q))A++;Q=0;for(var te=E;te;te=le(te))Q++;for(;0<A-Q;)C=le(C),A--;for(;0<Q-A;)E=le(E),Q--;for(;A--;){if(C===E||E!==null&&C===E.alternate){le=C;break t}C=le(C),E=le(E)}le=null}else le=null;D!==null&&vm(G,z,D,le,!1),W!==null&&Ae!==null&&vm(G,Ae,W,le,!0)}}e:{if(z=M?uu(M):window,D=z.nodeName&&z.nodeName.toLowerCase(),D==="select"||D==="input"&&z.type==="file")var ge=Df;else if(zf(z))if(Uf)ge=Rp;else{ge=Cp;var P=Tp}else D=z.nodeName,!D||D.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?M&&Ps(M.elementType)&&(ge=Df):ge=Op;if(ge&&(ge=ge(e,M))){_f(G,ge,l,H);break e}P&&P(e,z,M),e==="focusout"&&M&&z.type==="number"&&M.memoizedProps.value!=null&&Is(z,"number",z.value)}switch(P=M?uu(M):window,e){case"focusin":(zf(P)||P.contentEditable==="true")&&(on=P,hr=M,mu=null);break;case"focusout":mu=hr=on=null;break;case"mousedown":mr=!0;break;case"contextmenu":case"mouseup":case"dragend":mr=!1,Gf(G,l,H);break;case"selectionchange":if(Mp)break;case"keydown":case"keyup":Gf(G,l,H)}var re;if(cr)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else cn?Af(e,l)&&(ye="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(ye="onCompositionStart");ye&&(Cf&&l.locale!=="ko"&&(cn||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&cn&&(re=Sf()):(Ll=H,nr="value"in Ll?Ll.value:Ll.textContent,cn=!0)),P=fs(M,ye),0<P.length&&(ye=new Nf(ye,e,null,l,H),G.push({event:ye,listeners:P}),re?ye.data=re:(re=Mf(l),re!==null&&(ye.data=re)))),(re=bp?Sp(e,l):Ep(e,l))&&(ye=fs(M,"onBeforeInput"),0<ye.length&&(P=new Nf("onBeforeInput","beforeinput",null,l,H),G.push({event:P,listeners:ye}),P.data=re)),h0(G,e,M,l,H)}mm(G,t)})}function Qu(e,t,l){return{instance:e,listener:t,currentTarget:l}}function fs(e,t){for(var l=t+"Capture",a=[];e!==null;){var n=e,s=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||s===null||(n=iu(e,l),n!=null&&a.unshift(Qu(e,n,s)),n=iu(e,t),n!=null&&a.push(Qu(e,n,s))),e.tag===3)return a;e=e.return}return[]}function p0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function vm(e,t,l,a,n){for(var s=t._reactName,f=[];l!==null&&l!==a;){var h=l,b=h.alternate,M=h.stateNode;if(h=h.tag,b!==null&&b===a)break;h!==5&&h!==26&&h!==27||M===null||(b=M,n?(M=iu(l,s),M!=null&&f.unshift(Qu(l,M,b))):n||(M=iu(l,s),M!=null&&f.push(Qu(l,M,b)))),l=l.return}f.length!==0&&e.push({event:t,listeners:f})}var g0=/\r\n?/g,x0=/\u0000|\uFFFD/g;function pm(e){return(typeof e=="string"?e:""+e).replace(g0,`
49
- `).replace(x0,"")}function gm(e,t){return t=pm(t),pm(e)===t}function Re(e,t,l,a,n,s){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||un(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&un(e,""+a);break;case"className":yi(e,"class",a);break;case"tabIndex":yi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":yi(e,l,a);break;case"style":gf(e,a,s);break;case"data":if(t!=="object"){yi(e,"data",a);break}case"src":case"href":if(a===""&&(t!=="a"||l!=="href")){e.removeAttribute(l);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=pi(""+a),e.setAttribute(l,a);break;case"action":case"formAction":if(typeof a=="function"){e.setAttribute(l,"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 s=="function"&&(l==="formAction"?(t!=="input"&&Re(e,t,"name",n.name,n,null),Re(e,t,"formEncType",n.formEncType,n,null),Re(e,t,"formMethod",n.formMethod,n,null),Re(e,t,"formTarget",n.formTarget,n,null)):(Re(e,t,"encType",n.encType,n,null),Re(e,t,"method",n.method,n,null),Re(e,t,"target",n.target,n,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=pi(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=dl);break;case"onScroll":a!=null&&de("scroll",e);break;case"onScrollEnd":a!=null&&de("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"multiple":e.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":e.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){e.removeAttribute("xlink:href");break}l=pi(""+a),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",l);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""+a):e.removeAttribute(l);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":a&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,""):e.removeAttribute(l);break;case"capture":case"download":a===!0?e.setAttribute(l,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?e.setAttribute(l,a):e.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?e.setAttribute(l,a):e.removeAttribute(l);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?e.removeAttribute(l):e.setAttribute(l,a);break;case"popover":de("beforetoggle",e),de("toggle",e),mi(e,"popover",a);break;case"xlinkActuate":fl(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":fl(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":fl(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":fl(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":fl(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":fl(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":fl(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":fl(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":fl(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":mi(e,"is",a);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=kv.get(l)||l,mi(e,l,a))}}function Qc(e,t,l,a,n,s){switch(l){case"style":gf(e,a,s);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(c(61));if(l=a.__html,l!=null){if(n.children!=null)throw Error(c(60));e.innerHTML=l}}break;case"children":typeof a=="string"?un(e,a):(typeof a=="number"||typeof a=="bigint")&&un(e,""+a);break;case"onScroll":a!=null&&de("scroll",e);break;case"onScrollEnd":a!=null&&de("scrollend",e);break;case"onClick":a!=null&&(e.onclick=dl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!cf.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(n=l.endsWith("Capture"),t=l.slice(2,n?l.length-7:void 0),s=e[ht]||null,s=s!=null?s[l]:null,typeof s=="function"&&e.removeEventListener(t,s,n),typeof a=="function")){typeof s!="function"&&s!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,n);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):mi(e,l,a)}}}function nt(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":de("error",e),de("load",e);var a=!1,n=!1,s;for(s in l)if(l.hasOwnProperty(s)){var f=l[s];if(f!=null)switch(s){case"src":a=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Re(e,t,s,f,l,null)}}n&&Re(e,t,"srcSet",l.srcSet,l,null),a&&Re(e,t,"src",l.src,l,null);return;case"input":de("invalid",e);var h=s=f=n=null,b=null,M=null;for(a in l)if(l.hasOwnProperty(a)){var H=l[a];if(H!=null)switch(a){case"name":n=H;break;case"type":f=H;break;case"checked":b=H;break;case"defaultChecked":M=H;break;case"value":s=H;break;case"defaultValue":h=H;break;case"children":case"dangerouslySetInnerHTML":if(H!=null)throw Error(c(137,t));break;default:Re(e,t,a,H,l,null)}}mf(e,s,h,b,M,f,n,!1);return;case"select":de("invalid",e),a=f=s=null;for(n in l)if(l.hasOwnProperty(n)&&(h=l[n],h!=null))switch(n){case"value":s=h;break;case"defaultValue":f=h;break;case"multiple":a=h;default:Re(e,t,n,h,l,null)}t=s,l=f,e.multiple=!!a,t!=null?nn(e,!!a,t,!1):l!=null&&nn(e,!!a,l,!0);return;case"textarea":de("invalid",e),s=n=a=null;for(f in l)if(l.hasOwnProperty(f)&&(h=l[f],h!=null))switch(f){case"value":a=h;break;case"defaultValue":n=h;break;case"children":s=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(c(91));break;default:Re(e,t,f,h,l,null)}vf(e,a,n,s);return;case"option":for(b in l)if(l.hasOwnProperty(b)&&(a=l[b],a!=null))switch(b){case"selected":e.selected=a&&typeof a!="function"&&typeof a!="symbol";break;default:Re(e,t,b,a,l,null)}return;case"dialog":de("beforetoggle",e),de("toggle",e),de("cancel",e),de("close",e);break;case"iframe":case"object":de("load",e);break;case"video":case"audio":for(a=0;a<Bu.length;a++)de(Bu[a],e);break;case"image":de("error",e),de("load",e);break;case"details":de("toggle",e);break;case"embed":case"source":case"link":de("error",e),de("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(M in l)if(l.hasOwnProperty(M)&&(a=l[M],a!=null))switch(M){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,t));default:Re(e,t,M,a,l,null)}return;default:if(Ps(t)){for(H in l)l.hasOwnProperty(H)&&(a=l[H],a!==void 0&&Qc(e,t,H,a,l,void 0));return}}for(h in l)l.hasOwnProperty(h)&&(a=l[h],a!=null&&Re(e,t,h,a,l,null))}function b0(e,t,l,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,s=null,f=null,h=null,b=null,M=null,H=null;for(D in l){var G=l[D];if(l.hasOwnProperty(D)&&G!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":b=G;default:a.hasOwnProperty(D)||Re(e,t,D,null,a,G)}}for(var z in a){var D=a[z];if(G=l[z],a.hasOwnProperty(z)&&(D!=null||G!=null))switch(z){case"type":s=D;break;case"name":n=D;break;case"checked":M=D;break;case"defaultChecked":H=D;break;case"value":f=D;break;case"defaultValue":h=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(c(137,t));break;default:D!==G&&Re(e,t,z,D,a,G)}}Ws(e,f,h,b,M,H,s,n);return;case"select":D=f=h=z=null;for(s in l)if(b=l[s],l.hasOwnProperty(s)&&b!=null)switch(s){case"value":break;case"multiple":D=b;default:a.hasOwnProperty(s)||Re(e,t,s,null,a,b)}for(n in a)if(s=a[n],b=l[n],a.hasOwnProperty(n)&&(s!=null||b!=null))switch(n){case"value":z=s;break;case"defaultValue":h=s;break;case"multiple":f=s;default:s!==b&&Re(e,t,n,s,a,b)}t=h,l=f,a=D,z!=null?nn(e,!!l,z,!1):!!a!=!!l&&(t!=null?nn(e,!!l,t,!0):nn(e,!!l,l?[]:"",!1));return;case"textarea":D=z=null;for(h in l)if(n=l[h],l.hasOwnProperty(h)&&n!=null&&!a.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:Re(e,t,h,null,a,n)}for(f in a)if(n=a[f],s=l[f],a.hasOwnProperty(f)&&(n!=null||s!=null))switch(f){case"value":z=n;break;case"defaultValue":D=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error(c(91));break;default:n!==s&&Re(e,t,f,n,a,s)}yf(e,z,D);return;case"option":for(var W in l)if(z=l[W],l.hasOwnProperty(W)&&z!=null&&!a.hasOwnProperty(W))switch(W){case"selected":e.selected=!1;break;default:Re(e,t,W,null,a,z)}for(b in a)if(z=a[b],D=l[b],a.hasOwnProperty(b)&&z!==D&&(z!=null||D!=null))switch(b){case"selected":e.selected=z&&typeof z!="function"&&typeof z!="symbol";break;default:Re(e,t,b,z,a,D)}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 le in l)z=l[le],l.hasOwnProperty(le)&&z!=null&&!a.hasOwnProperty(le)&&Re(e,t,le,null,a,z);for(M in a)if(z=a[M],D=l[M],a.hasOwnProperty(M)&&z!==D&&(z!=null||D!=null))switch(M){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(c(137,t));break;default:Re(e,t,M,z,a,D)}return;default:if(Ps(t)){for(var Ae in l)z=l[Ae],l.hasOwnProperty(Ae)&&z!==void 0&&!a.hasOwnProperty(Ae)&&Qc(e,t,Ae,void 0,a,z);for(H in a)z=a[H],D=l[H],!a.hasOwnProperty(H)||z===D||z===void 0&&D===void 0||Qc(e,t,H,z,a,D);return}}for(var C in l)z=l[C],l.hasOwnProperty(C)&&z!=null&&!a.hasOwnProperty(C)&&Re(e,t,C,null,a,z);for(G in a)z=a[G],D=l[G],!a.hasOwnProperty(G)||z===D||z==null&&D==null||Re(e,t,G,z,a,D)}function xm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function S0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var n=l[a],s=n.transferSize,f=n.initiatorType,h=n.duration;if(s&&h&&xm(f)){for(f=0,h=n.responseEnd,a+=1;a<l.length;a++){var b=l[a],M=b.startTime;if(M>h)break;var H=b.transferSize,G=b.initiatorType;H&&xm(G)&&(b=b.responseEnd,f+=H*(b<h?1:(h-M)/(b-M)))}if(--a,t+=8*(s+f)/(n.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Lc=null,Yc=null;function ds(e){return e.nodeType===9?e:e.ownerDocument}function bm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Sm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Gc(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Xc=null;function E0(){var e=window.event;return e&&e.type==="popstate"?e===Xc?!1:(Xc=e,!0):(Xc=null,!1)}var Em=typeof setTimeout=="function"?setTimeout:void 0,j0=typeof clearTimeout=="function"?clearTimeout:void 0,jm=typeof Promise=="function"?Promise:void 0,N0=typeof queueMicrotask=="function"?queueMicrotask:typeof jm<"u"?function(e){return jm.resolve(null).then(e).catch(T0)}:Em;function T0(e){setTimeout(function(){throw e})}function aa(e){return e==="head"}function Nm(e,t){var l=t,a=0;do{var n=l.nextSibling;if(e.removeChild(l),n&&n.nodeType===8)if(l=n.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(n),qn(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")Lu(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,Lu(l);for(var s=l.firstChild;s;){var f=s.nextSibling,h=s.nodeName;s[nu]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&s.rel.toLowerCase()==="stylesheet"||l.removeChild(s),s=f}}else l==="body"&&Lu(e.ownerDocument.body);l=n}while(l);qn(t)}function Tm(e,t){var l=e;e=0;do{var a=l.nextSibling;if(l.nodeType===1?t?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(t?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),a&&a.nodeType===8)if(l=a.data,l==="/$"){if(e===0)break;e--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||e++;l=a}while(l)}function Zc(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var l=t;switch(t=t.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Zc(l),Fs(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function C0(e,t,l,a){for(;e.nodeType===1;){var n=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[nu])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(s=e.getAttribute("rel"),s==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(s!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(s=e.getAttribute("src"),(s!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&s&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var s=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===s)return e}else return e;if(e=Gt(e.nextSibling),e===null)break}return null}function O0(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=Gt(e.nextSibling),e===null))return null;return e}function Cm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Gt(e.nextSibling),e===null))return null;return e}function Kc(e){return e.data==="$?"||e.data==="$~"}function Vc(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function R0(e,t){var l=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||l.readyState!=="loading")t();else{var a=function(){t(),l.removeEventListener("DOMContentLoaded",a)};l.addEventListener("DOMContentLoaded",a),e._reactRetry=a}}function Gt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var kc=null;function Om(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return Gt(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function Rm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(t===0)return e;t--}else l!=="/$"&&l!=="/&"||t++}e=e.previousSibling}return null}function Am(e,t,l){switch(t=ds(l),e){case"html":if(e=t.documentElement,!e)throw Error(c(452));return e;case"head":if(e=t.head,!e)throw Error(c(453));return e;case"body":if(e=t.body,!e)throw Error(c(454));return e;default:throw Error(c(451))}}function Lu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Fs(e)}var Xt=new Map,Mm=new Set;function hs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Rl=J.d;J.d={f:A0,r:M0,D:z0,C:_0,L:D0,m:U0,X:H0,S:w0,M:q0};function A0(){var e=Rl.f(),t=ns();return e||t}function M0(e){var t=tn(e);t!==null&&t.tag===5&&t.type==="form"?kd(t):Rl.r(e)}var Un=typeof document>"u"?null:document;function zm(e,t,l){var a=Un;if(a&&typeof t=="string"&&t){var n=wt(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof l=="string"&&(n+='[crossorigin="'+l+'"]'),Mm.has(n)||(Mm.add(n),e={rel:e,crossOrigin:l,href:t},a.querySelector(n)===null&&(t=a.createElement("link"),nt(t,"link",e),We(t),a.head.appendChild(t)))}}function z0(e){Rl.D(e),zm("dns-prefetch",e,null)}function _0(e,t){Rl.C(e,t),zm("preconnect",e,t)}function D0(e,t,l){Rl.L(e,t,l);var a=Un;if(a&&e&&t){var n='link[rel="preload"][as="'+wt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(n+='[imagesrcset="'+wt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(n+='[imagesizes="'+wt(l.imageSizes)+'"]')):n+='[href="'+wt(e)+'"]';var s=n;switch(t){case"style":s=wn(e);break;case"script":s=Hn(e)}Xt.has(s)||(e=g({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Xt.set(s,e),a.querySelector(n)!==null||t==="style"&&a.querySelector(Yu(s))||t==="script"&&a.querySelector(Gu(s))||(t=a.createElement("link"),nt(t,"link",e),We(t),a.head.appendChild(t)))}}function U0(e,t){Rl.m(e,t);var l=Un;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",n='link[rel="modulepreload"][as="'+wt(a)+'"][href="'+wt(e)+'"]',s=n;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":s=Hn(e)}if(!Xt.has(s)&&(e=g({rel:"modulepreload",href:e},t),Xt.set(s,e),l.querySelector(n)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Gu(s)))return}a=l.createElement("link"),nt(a,"link",e),We(a),l.head.appendChild(a)}}}function w0(e,t,l){Rl.S(e,t,l);var a=Un;if(a&&e){var n=ln(a).hoistableStyles,s=wn(e);t=t||"default";var f=n.get(s);if(!f){var h={loading:0,preload:null};if(f=a.querySelector(Yu(s)))h.loading=5;else{e=g({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Xt.get(s))&&Jc(e,l);var b=f=a.createElement("link");We(b),nt(b,"link",e),b._p=new Promise(function(M,H){b.onload=M,b.onerror=H}),b.addEventListener("load",function(){h.loading|=1}),b.addEventListener("error",function(){h.loading|=2}),h.loading|=4,ms(f,t,a)}f={type:"stylesheet",instance:f,count:1,state:h},n.set(s,f)}}}function H0(e,t){Rl.X(e,t);var l=Un;if(l&&e){var a=ln(l).hoistableScripts,n=Hn(e),s=a.get(n);s||(s=l.querySelector(Gu(n)),s||(e=g({src:e,async:!0},t),(t=Xt.get(n))&&Fc(e,t),s=l.createElement("script"),We(s),nt(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(n,s))}}function q0(e,t){Rl.M(e,t);var l=Un;if(l&&e){var a=ln(l).hoistableScripts,n=Hn(e),s=a.get(n);s||(s=l.querySelector(Gu(n)),s||(e=g({src:e,async:!0,type:"module"},t),(t=Xt.get(n))&&Fc(e,t),s=l.createElement("script"),We(s),nt(s,"link",e),l.head.appendChild(s)),s={type:"script",instance:s,count:1,state:null},a.set(n,s))}}function _m(e,t,l,a){var n=(n=oe.current)?hs(n):null;if(!n)throw Error(c(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=wn(l.href),l=ln(n).hoistableStyles,a=l.get(t),a||(a={type:"style",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){e=wn(l.href);var s=ln(n).hoistableStyles,f=s.get(e);if(f||(n=n.ownerDocument||n,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},s.set(e,f),(s=n.querySelector(Yu(e)))&&!s._p&&(f.instance=s,f.state.loading=5),Xt.has(e)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},Xt.set(e,l),s||B0(n,e,l,f.state))),t&&a===null)throw Error(c(528,""));return f}if(t&&a!==null)throw Error(c(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Hn(l),l=ln(n).hoistableScripts,a=l.get(t),a||(a={type:"script",instance:null,count:0,state:null},l.set(t,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,e))}}function wn(e){return'href="'+wt(e)+'"'}function Yu(e){return'link[rel="stylesheet"]['+e+"]"}function Dm(e){return g({},e,{"data-precedence":e.precedence,precedence:null})}function B0(e,t,l,a){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?a.loading=1:(t=e.createElement("link"),a.preload=t,t.addEventListener("load",function(){return a.loading|=1}),t.addEventListener("error",function(){return a.loading|=2}),nt(t,"link",l),We(t),e.head.appendChild(t))}function Hn(e){return'[src="'+wt(e)+'"]'}function Gu(e){return"script[async]"+e}function Um(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+wt(l.href)+'"]');if(a)return t.instance=a,We(a),a;var n=g({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),We(a),nt(a,"style",n),ms(a,l.precedence,e),t.instance=a;case"stylesheet":n=wn(l.href);var s=e.querySelector(Yu(n));if(s)return t.state.loading|=4,t.instance=s,We(s),s;a=Dm(l),(n=Xt.get(n))&&Jc(a,n),s=(e.ownerDocument||e).createElement("link"),We(s);var f=s;return f._p=new Promise(function(h,b){f.onload=h,f.onerror=b}),nt(s,"link",a),t.state.loading|=4,ms(s,l.precedence,e),t.instance=s;case"script":return s=Hn(l.src),(n=e.querySelector(Gu(s)))?(t.instance=n,We(n),n):(a=l,(n=Xt.get(s))&&(a=g({},l),Fc(a,n)),e=e.ownerDocument||e,n=e.createElement("script"),We(n),nt(n,"link",a),e.head.appendChild(n),t.instance=n);case"void":return null;default:throw Error(c(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,ms(a,l.precedence,e));return t.instance}function ms(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=a.length?a[a.length-1]:null,s=n,f=0;f<a.length;f++){var h=a[f];if(h.dataset.precedence===t)s=h;else if(s!==n)break}s?s.parentNode.insertBefore(e,s.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Jc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Fc(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var ys=null;function wm(e,t,l){if(ys===null){var a=new Map,n=ys=new Map;n.set(l,a)}else n=ys,a=n.get(l),a||(a=new Map,n.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),n=0;n<l.length;n++){var s=l[n];if(!(s[nu]||s[et]||e==="link"&&s.getAttribute("rel")==="stylesheet")&&s.namespaceURI!=="http://www.w3.org/2000/svg"){var f=s.getAttribute(t)||"";f=e+f;var h=a.get(f);h?h.push(s):a.set(f,[s])}}return a}function Hm(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Q0(e,t,l){if(l===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function qm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function L0(e,t,l,a){if(l.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var n=wn(a.href),s=t.querySelector(Yu(n));if(s){t=s._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=vs.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=s,We(s);return}s=t.ownerDocument||t,a=Dm(a),(n=Xt.get(n))&&Jc(a,n),s=s.createElement("link"),We(s);var f=s;f._p=new Promise(function(h,b){f.onload=h,f.onerror=b}),nt(s,"link",a),l.instance=s}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=vs.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var $c=0;function Y0(e,t){return e.stylesheets&&e.count===0&&gs(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&gs(e,e.stylesheets),e.unsuspend){var s=e.unsuspend;e.unsuspend=null,s()}},6e4+t);0<e.imgBytes&&$c===0&&($c=62500*S0());var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&gs(e,e.stylesheets),e.unsuspend)){var s=e.unsuspend;e.unsuspend=null,s()}},(e.imgBytes>$c?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(n)}}:null}function vs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)gs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var ps=null;function gs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ps=new Map,t.forEach(G0,e),ps=null,vs.call(e))}function G0(e,t){if(!(t.state.loading&4)){var l=ps.get(e);if(l)var a=l.get(null);else{l=new Map,ps.set(e,l);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),s=0;s<n.length;s++){var f=n[s];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(l.set(f.dataset.precedence,f),a=f)}a&&l.set(null,a)}n=t.instance,f=n.getAttribute("data-precedence"),s=l.get(f)||a,s===a&&l.set(null,n),l.set(f,n),this.count++,a=vs.bind(this),n.addEventListener("load",a),n.addEventListener("error",a),s?s.parentNode.insertBefore(n,s.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=4}}var Xu={$$typeof:q,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function X0(e,t,l,a,n,s,f,h,b){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ks(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ks(0),this.hiddenUpdates=Ks(null),this.identifierPrefix=a,this.onUncaughtError=n,this.onCaughtError=s,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Bm(e,t,l,a,n,s,f,h,b,M,H,G){return e=new X0(e,t,l,f,b,M,H,G,h),t=1,s===!0&&(t|=24),s=Ot(3,null,null,t),e.current=s,s.stateNode=e,t=Ar(),t.refCount++,e.pooledCache=t,t.refCount++,s.memoizedState={element:a,isDehydrated:l,cache:t},Dr(s),e}function Qm(e){return e?(e=hn,e):hn}function Lm(e,t,l,a,n,s){n=Qm(n),a.context===null?a.context=n:a.pendingContext=n,a=Vl(t),a.payload={element:l},s=s===void 0?null:s,s!==null&&(a.callback=s),l=kl(e,a,t),l!==null&&(xt(l,e,t),Su(l,e,t))}function Ym(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function Wc(e,t){Ym(e,t),(e=e.alternate)&&Ym(e,t)}function Gm(e){if(e.tag===13||e.tag===31){var t=Ra(e,67108864);t!==null&&xt(t,e,67108864),Wc(e,67108864)}}function Xm(e){if(e.tag===13||e.tag===31){var t=_t();t=Vs(t);var l=Ra(e,t);l!==null&&xt(l,e,t),Wc(e,t)}}var xs=!0;function Z0(e,t,l,a){var n=B.T;B.T=null;var s=J.p;try{J.p=2,Ic(e,t,l,a)}finally{J.p=s,B.T=n}}function K0(e,t,l,a){var n=B.T;B.T=null;var s=J.p;try{J.p=8,Ic(e,t,l,a)}finally{J.p=s,B.T=n}}function Ic(e,t,l,a){if(xs){var n=Pc(a);if(n===null)Bc(e,t,a,bs,l),Km(e,a);else if(k0(n,e,t,l,a))a.stopPropagation();else if(Km(e,a),t&4&&-1<V0.indexOf(e)){for(;n!==null;){var s=tn(n);if(s!==null)switch(s.tag){case 3:if(s=s.stateNode,s.current.memoizedState.isDehydrated){var f=ja(s.pendingLanes);if(f!==0){var h=s;for(h.pendingLanes|=2,h.entangledLanes|=2;f;){var b=1<<31-Tt(f);h.entanglements[1]|=b,f&=~b}ul(s),(be&6)===0&&(ls=jt()+500,qu(0))}}break;case 31:case 13:h=Ra(s,2),h!==null&&xt(h,s,2),ns(),Wc(s,2)}if(s=Pc(a),s===null&&Bc(e,t,a,bs,l),s===n)break;n=s}n!==null&&a.stopPropagation()}else Bc(e,t,a,null,l)}}function Pc(e){return e=tr(e),eo(e)}var bs=null;function eo(e){if(bs=null,e=en(e),e!==null){var t=m(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=y(t),e!==null)return e;e=null}else if(l===31){if(e=p(t),e!==null)return e;e=null}else if(l===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return bs=e,null}function Zm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(zv()){case Wo:return 2;case Io:return 8;case ci:case _v:return 32;case Po:return 268435456;default:return 32}default:return 32}}var to=!1,na=null,ua=null,ia=null,Zu=new Map,Ku=new Map,sa=[],V0="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 Km(e,t){switch(e){case"focusin":case"focusout":na=null;break;case"dragenter":case"dragleave":ua=null;break;case"mouseover":case"mouseout":ia=null;break;case"pointerover":case"pointerout":Zu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ku.delete(t.pointerId)}}function Vu(e,t,l,a,n,s){return e===null||e.nativeEvent!==s?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:s,targetContainers:[n]},t!==null&&(t=tn(t),t!==null&&Gm(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e)}function k0(e,t,l,a,n){switch(t){case"focusin":return na=Vu(na,e,t,l,a,n),!0;case"dragenter":return ua=Vu(ua,e,t,l,a,n),!0;case"mouseover":return ia=Vu(ia,e,t,l,a,n),!0;case"pointerover":var s=n.pointerId;return Zu.set(s,Vu(Zu.get(s)||null,e,t,l,a,n)),!0;case"gotpointercapture":return s=n.pointerId,Ku.set(s,Vu(Ku.get(s)||null,e,t,l,a,n)),!0}return!1}function Vm(e){var t=en(e.target);if(t!==null){var l=m(t);if(l!==null){if(t=l.tag,t===13){if(t=y(l),t!==null){e.blockedOn=t,uf(e.priority,function(){Xm(l)});return}}else if(t===31){if(t=p(l),t!==null){e.blockedOn=t,uf(e.priority,function(){Xm(l)});return}}else if(t===3&&l.stateNode.current.memoizedState.isDehydrated){e.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Ss(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Pc(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);er=a,l.target.dispatchEvent(a),er=null}else return t=tn(l),t!==null&&Gm(t),e.blockedOn=l,!1;t.shift()}return!0}function km(e,t,l){Ss(e)&&l.delete(t)}function J0(){to=!1,na!==null&&Ss(na)&&(na=null),ua!==null&&Ss(ua)&&(ua=null),ia!==null&&Ss(ia)&&(ia=null),Zu.forEach(km),Ku.forEach(km)}function Es(e,t){e.blockedOn===t&&(e.blockedOn=null,to||(to=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,J0)))}var js=null;function Jm(e){js!==e&&(js=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){js===e&&(js=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],n=e[t+2];if(typeof a!="function"){if(eo(a||l)===null)continue;break}var s=tn(l);s!==null&&(e.splice(t,3),t-=3,Pr(s,{pending:!0,data:n,method:l.method,action:a},a,n))}}))}function qn(e){function t(b){return Es(b,e)}na!==null&&Es(na,e),ua!==null&&Es(ua,e),ia!==null&&Es(ia,e),Zu.forEach(t),Ku.forEach(t);for(var l=0;l<sa.length;l++){var a=sa[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<sa.length&&(l=sa[0],l.blockedOn===null);)Vm(l),l.blockedOn===null&&sa.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var n=l[a],s=l[a+1],f=n[ht]||null;if(typeof s=="function")f||Jm(l);else if(f){var h=null;if(s&&s.hasAttribute("formAction")){if(n=s,f=s[ht]||null)h=f.formAction;else if(eo(n)!==null)continue}else h=f.action;typeof h=="function"?l[a+1]=h:(l.splice(a,3),a-=3),Jm(l)}}}function Fm(){function e(s){s.canIntercept&&s.info==="react-transition"&&s.intercept({handler:function(){return new Promise(function(f){return n=f})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var s=navigation.currentEntry;s&&s.url!=null&&navigation.navigate(s.url,{state:s.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,n=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(l,100),function(){a=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),n!==null&&(n(),n=null)}}}function lo(e){this._internalRoot=e}Ns.prototype.render=lo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(c(409));var l=t.current,a=_t();Lm(l,a,e,t,null,null)},Ns.prototype.unmount=lo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Lm(e.current,2,null,e,null,null),ns(),t[Pa]=null}};function Ns(e){this._internalRoot=e}Ns.prototype.unstable_scheduleHydration=function(e){if(e){var t=nf();e={blockedOn:null,target:e,priority:t};for(var l=0;l<sa.length&&t!==0&&t<sa[l].priority;l++);sa.splice(l,0,e),l===0&&Vm(e)}};var $m=i.version;if($m!=="19.2.4")throw Error(c(527,$m,"19.2.4"));J.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(c(188)):(e=Object.keys(e).join(","),Error(c(268,e)));return e=v(t),e=e!==null?T(e):null,e=e===null?null:e.stateNode,e};var F0={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:B,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ts=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ts.isDisabled&&Ts.supportsFiber)try{tu=Ts.inject(F0),Nt=Ts}catch{}}return Fu.createRoot=function(e,t){if(!d(e))throw Error(c(299));var l=!1,a="",n=ah,s=nh,f=uh;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=Bm(e,1,!1,null,null,l,a,null,n,s,f,Fm),e[Pa]=t.current,qc(e),new lo(t)},Fu.hydrateRoot=function(e,t,l){if(!d(e))throw Error(c(299));var a=!1,n="",s=ah,f=nh,h=uh,b=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(n=l.identifierPrefix),l.onUncaughtError!==void 0&&(s=l.onUncaughtError),l.onCaughtError!==void 0&&(f=l.onCaughtError),l.onRecoverableError!==void 0&&(h=l.onRecoverableError),l.formState!==void 0&&(b=l.formState)),t=Bm(e,1,!0,t,l??null,a,n,b,s,f,h,Fm),t.context=Qm(null),l=t.current,a=_t(),a=Vs(a),n=Vl(a),n.callback=null,kl(l,n,a),l=a,t.current.lanes=l,au(t,l),ul(t),e[Pa]=t.current,qc(e),new Ns(t)},Fu.version="19.2.4",Fu}var sy;function sg(){if(sy)return io.exports;sy=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(i){console.error(i)}}return u(),io.exports=ig(),io.exports}var rg=sg(),$n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(u){return this.listeners.add(u),this.onSubscribe(),()=>{this.listeners.delete(u),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},cg={setTimeout:(u,i)=>setTimeout(u,i),clearTimeout:u=>clearTimeout(u),setInterval:(u,i)=>setInterval(u,i),clearInterval:u=>clearInterval(u)},oa,Uo,Cy,og=(Cy=class{constructor(){ee(this,oa,cg);ee(this,Uo,!1)}setTimeoutProvider(u){$(this,oa,u)}setTimeout(u,i){return S(this,oa).setTimeout(u,i)}clearTimeout(u){S(this,oa).clearTimeout(u)}setInterval(u,i){return S(this,oa).setInterval(u,i)}clearInterval(u){S(this,oa).clearInterval(u)}},oa=new WeakMap,Uo=new WeakMap,Cy),Ya=new og;function fg(u){setTimeout(u,0)}var Wa=typeof window>"u"||"Deno"in globalThis;function ft(){}function dg(u,i){return typeof u=="function"?u(i):u}function mo(u){return typeof u=="number"&&u>=0&&u!==1/0}function qy(u,i){return Math.max(u+(i||0)-Date.now(),0)}function ba(u,i){return typeof u=="function"?u(i):u}function Kt(u,i){return typeof u=="function"?u(i):u}function ry(u,i){const{type:r="all",exact:c,fetchStatus:d,predicate:m,queryKey:y,stale:p}=u;if(y){if(c){if(i.queryHash!==Ho(y,i.options))return!1}else if(!Iu(i.queryKey,y))return!1}if(r!=="all"){const x=i.isActive();if(r==="active"&&!x||r==="inactive"&&x)return!1}return!(typeof p=="boolean"&&i.isStale()!==p||d&&d!==i.state.fetchStatus||m&&!m(i))}function cy(u,i){const{exact:r,status:c,predicate:d,mutationKey:m}=u;if(m){if(!i.options.mutationKey)return!1;if(r){if(Ia(i.options.mutationKey)!==Ia(m))return!1}else if(!Iu(i.options.mutationKey,m))return!1}return!(c&&i.state.status!==c||d&&!d(i))}function Ho(u,i){return((i==null?void 0:i.queryKeyHashFn)||Ia)(u)}function Ia(u){return JSON.stringify(u,(i,r)=>yo(r)?Object.keys(r).sort().reduce((c,d)=>(c[d]=r[d],c),{}):r)}function Iu(u,i){return u===i?!0:typeof u!=typeof i?!1:u&&i&&typeof u=="object"&&typeof i=="object"?Object.keys(i).every(r=>Iu(u[r],i[r])):!1}var hg=Object.prototype.hasOwnProperty;function By(u,i,r=0){if(u===i)return u;if(r>500)return i;const c=oy(u)&&oy(i);if(!c&&!(yo(u)&&yo(i)))return i;const m=(c?u:Object.keys(u)).length,y=c?i:Object.keys(i),p=y.length,x=c?new Array(p):{};let v=0;for(let T=0;T<p;T++){const g=c?T:y[T],_=u[g],w=i[g];if(_===w){x[g]=_,(c?T<m:hg.call(u,g))&&v++;continue}if(_===null||w===null||typeof _!="object"||typeof w!="object"){x[g]=w;continue}const Z=By(_,w,r+1);x[g]=Z,Z===_&&v++}return m===p&&v===m?u:x}function Us(u,i){if(!i||Object.keys(u).length!==Object.keys(i).length)return!1;for(const r in u)if(u[r]!==i[r])return!1;return!0}function oy(u){return Array.isArray(u)&&u.length===Object.keys(u).length}function yo(u){if(!fy(u))return!1;const i=u.constructor;if(i===void 0)return!0;const r=i.prototype;return!(!fy(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(u)!==Object.prototype)}function fy(u){return Object.prototype.toString.call(u)==="[object Object]"}function mg(u){return new Promise(i=>{Ya.setTimeout(i,u)})}function vo(u,i,r){return typeof r.structuralSharing=="function"?r.structuralSharing(u,i):r.structuralSharing!==!1?By(u,i):i}function yg(u,i,r=0){const c=[...u,i];return r&&c.length>r?c.slice(1):c}function vg(u,i,r=0){const c=[i,...u];return r&&c.length>r?c.slice(0,-1):c}var qo=Symbol();function Qy(u,i){return!u.queryFn&&(i!=null&&i.initialPromise)?()=>i.initialPromise:!u.queryFn||u.queryFn===qo?()=>Promise.reject(new Error(`Missing queryFn: '${u.queryHash}'`)):u.queryFn}function Bo(u,i){return typeof u=="function"?u(...i):!!u}function pg(u,i,r){let c=!1,d;return Object.defineProperty(u,"signal",{enumerable:!0,get:()=>(d??(d=i()),c||(c=!0,d.aborted?r():d.addEventListener("abort",r,{once:!0})),d)}),u}var Ga,fa,Bn,Oy,gg=(Oy=class extends $n{constructor(){super();ee(this,Ga);ee(this,fa);ee(this,Bn);$(this,Bn,i=>{if(!Wa&&window.addEventListener){const r=()=>i();return window.addEventListener("visibilitychange",r,!1),()=>{window.removeEventListener("visibilitychange",r)}}})}onSubscribe(){S(this,fa)||this.setEventListener(S(this,Bn))}onUnsubscribe(){var i;this.hasListeners()||((i=S(this,fa))==null||i.call(this),$(this,fa,void 0))}setEventListener(i){var r;$(this,Bn,i),(r=S(this,fa))==null||r.call(this),$(this,fa,i(c=>{typeof c=="boolean"?this.setFocused(c):this.onFocus()}))}setFocused(i){S(this,Ga)!==i&&($(this,Ga,i),this.onFocus())}onFocus(){const i=this.isFocused();this.listeners.forEach(r=>{r(i)})}isFocused(){var i;return typeof S(this,Ga)=="boolean"?S(this,Ga):((i=globalThis.document)==null?void 0:i.visibilityState)!=="hidden"}},Ga=new WeakMap,fa=new WeakMap,Bn=new WeakMap,Oy),Qo=new gg;function po(){let u,i;const r=new Promise((d,m)=>{u=d,i=m});r.status="pending",r.catch(()=>{});function c(d){Object.assign(r,d),delete r.resolve,delete r.reject}return r.resolve=d=>{c({status:"fulfilled",value:d}),u(d)},r.reject=d=>{c({status:"rejected",reason:d}),i(d)},r}var xg=fg;function bg(){let u=[],i=0,r=p=>{p()},c=p=>{p()},d=xg;const m=p=>{i?u.push(p):d(()=>{r(p)})},y=()=>{const p=u;u=[],p.length&&d(()=>{c(()=>{p.forEach(x=>{r(x)})})})};return{batch:p=>{let x;i++;try{x=p()}finally{i--,i||y()}return x},batchCalls:p=>(...x)=>{m(()=>{p(...x)})},schedule:m,setNotifyFunction:p=>{r=p},setBatchNotifyFunction:p=>{c=p},setScheduler:p=>{d=p}}}var $e=bg(),Qn,da,Ln,Ry,Sg=(Ry=class extends $n{constructor(){super();ee(this,Qn,!0);ee(this,da);ee(this,Ln);$(this,Ln,i=>{if(!Wa&&window.addEventListener){const r=()=>i(!0),c=()=>i(!1);return window.addEventListener("online",r,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",r),window.removeEventListener("offline",c)}}})}onSubscribe(){S(this,da)||this.setEventListener(S(this,Ln))}onUnsubscribe(){var i;this.hasListeners()||((i=S(this,da))==null||i.call(this),$(this,da,void 0))}setEventListener(i){var r;$(this,Ln,i),(r=S(this,da))==null||r.call(this),$(this,da,i(this.setOnline.bind(this)))}setOnline(i){S(this,Qn)!==i&&($(this,Qn,i),this.listeners.forEach(c=>{c(i)}))}isOnline(){return S(this,Qn)}},Qn=new WeakMap,da=new WeakMap,Ln=new WeakMap,Ry),ws=new Sg;function Eg(u){return Math.min(1e3*2**u,3e4)}function Ly(u){return(u??"online")==="online"?ws.isOnline():!0}var go=class extends Error{constructor(u){super("CancelledError"),this.revert=u==null?void 0:u.revert,this.silent=u==null?void 0:u.silent}};function Yy(u){let i=!1,r=0,c;const d=po(),m=()=>d.status!=="pending",y=R=>{var L;if(!m()){const U=new go(R);_(U),(L=u.onCancel)==null||L.call(u,U)}},p=()=>{i=!0},x=()=>{i=!1},v=()=>Qo.isFocused()&&(u.networkMode==="always"||ws.isOnline())&&u.canRun(),T=()=>Ly(u.networkMode)&&u.canRun(),g=R=>{m()||(c==null||c(),d.resolve(R))},_=R=>{m()||(c==null||c(),d.reject(R))},w=()=>new Promise(R=>{var L;c=U=>{(m()||v())&&R(U)},(L=u.onPause)==null||L.call(u)}).then(()=>{var R;c=void 0,m()||(R=u.onContinue)==null||R.call(u)}),Z=()=>{if(m())return;let R;const L=r===0?u.initialPromise:void 0;try{R=L??u.fn()}catch(U){R=Promise.reject(U)}Promise.resolve(R).then(g).catch(U=>{var V;if(m())return;const Y=u.retry??(Wa?0:3),q=u.retryDelay??Eg,O=typeof q=="function"?q(r,U):q,K=Y===!0||typeof Y=="number"&&r<Y||typeof Y=="function"&&Y(r,U);if(i||!K){_(U);return}r++,(V=u.onFail)==null||V.call(u,r,U),mg(O).then(()=>v()?void 0:w()).then(()=>{i?_(U):Z()})})};return{promise:d,status:()=>d.status,cancel:y,continue:()=>(c==null||c(),d),cancelRetry:p,continueRetry:x,canStart:T,start:()=>(T()?Z():w().then(Z),d)}}var Xa,Ay,Gy=(Ay=class{constructor(){ee(this,Xa)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mo(this.gcTime)&&$(this,Xa,Ya.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(u){this.gcTime=Math.max(this.gcTime||0,u??(Wa?1/0:300*1e3))}clearGcTimeout(){S(this,Xa)&&(Ya.clearTimeout(S(this,Xa)),$(this,Xa,void 0))}},Xa=new WeakMap,Ay),Za,Yn,Zt,Ka,Pe,ei,Va,It,Al,My,jg=(My=class extends Gy{constructor(i){super();ee(this,It);ee(this,Za);ee(this,Yn);ee(this,Zt);ee(this,Ka);ee(this,Pe);ee(this,ei);ee(this,Va);$(this,Va,!1),$(this,ei,i.defaultOptions),this.setOptions(i.options),this.observers=[],$(this,Ka,i.client),$(this,Zt,S(this,Ka).getQueryCache()),this.queryKey=i.queryKey,this.queryHash=i.queryHash,$(this,Za,hy(this.options)),this.state=i.state??S(this,Za),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var i;return(i=S(this,Pe))==null?void 0:i.promise}setOptions(i){if(this.options={...S(this,ei),...i},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const r=hy(this.options);r.data!==void 0&&(this.setState(dy(r.data,r.dataUpdatedAt)),$(this,Za,r))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&S(this,Zt).remove(this)}setData(i,r){const c=vo(this.state.data,i,this.options);return ce(this,It,Al).call(this,{data:c,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),c}setState(i,r){ce(this,It,Al).call(this,{type:"setState",state:i,setStateOptions:r})}cancel(i){var c,d;const r=(c=S(this,Pe))==null?void 0:c.promise;return(d=S(this,Pe))==null||d.cancel(i),r?r.then(ft).catch(ft):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(S(this,Za))}isActive(){return this.observers.some(i=>Kt(i.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===qo||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(i=>ba(i.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(i=>i.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(i=0){return this.state.data===void 0?!0:i==="static"?!1:this.state.isInvalidated?!0:!qy(this.state.dataUpdatedAt,i)}onFocus(){var r;const i=this.observers.find(c=>c.shouldFetchOnWindowFocus());i==null||i.refetch({cancelRefetch:!1}),(r=S(this,Pe))==null||r.continue()}onOnline(){var r;const i=this.observers.find(c=>c.shouldFetchOnReconnect());i==null||i.refetch({cancelRefetch:!1}),(r=S(this,Pe))==null||r.continue()}addObserver(i){this.observers.includes(i)||(this.observers.push(i),this.clearGcTimeout(),S(this,Zt).notify({type:"observerAdded",query:this,observer:i}))}removeObserver(i){this.observers.includes(i)&&(this.observers=this.observers.filter(r=>r!==i),this.observers.length||(S(this,Pe)&&(S(this,Va)?S(this,Pe).cancel({revert:!0}):S(this,Pe).cancelRetry()),this.scheduleGc()),S(this,Zt).notify({type:"observerRemoved",query:this,observer:i}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||ce(this,It,Al).call(this,{type:"invalidate"})}async fetch(i,r){var x,v,T,g,_,w,Z,R,L,U,Y,q;if(this.state.fetchStatus!=="idle"&&((x=S(this,Pe))==null?void 0:x.status())!=="rejected"){if(this.state.data!==void 0&&(r!=null&&r.cancelRefetch))this.cancel({silent:!0});else if(S(this,Pe))return S(this,Pe).continueRetry(),S(this,Pe).promise}if(i&&this.setOptions(i),!this.options.queryFn){const O=this.observers.find(K=>K.options.queryFn);O&&this.setOptions(O.options)}const c=new AbortController,d=O=>{Object.defineProperty(O,"signal",{enumerable:!0,get:()=>($(this,Va,!0),c.signal)})},m=()=>{const O=Qy(this.options,r),V=(()=>{const k={client:S(this,Ka),queryKey:this.queryKey,meta:this.meta};return d(k),k})();return $(this,Va,!1),this.options.persister?this.options.persister(O,V,this):O(V)},p=(()=>{const O={fetchOptions:r,options:this.options,queryKey:this.queryKey,client:S(this,Ka),state:this.state,fetchFn:m};return d(O),O})();(v=this.options.behavior)==null||v.onFetch(p,this),$(this,Yn,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((T=p.fetchOptions)==null?void 0:T.meta))&&ce(this,It,Al).call(this,{type:"fetch",meta:(g=p.fetchOptions)==null?void 0:g.meta}),$(this,Pe,Yy({initialPromise:r==null?void 0:r.initialPromise,fn:p.fetchFn,onCancel:O=>{O instanceof go&&O.revert&&this.setState({...S(this,Yn),fetchStatus:"idle"}),c.abort()},onFail:(O,K)=>{ce(this,It,Al).call(this,{type:"failed",failureCount:O,error:K})},onPause:()=>{ce(this,It,Al).call(this,{type:"pause"})},onContinue:()=>{ce(this,It,Al).call(this,{type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode,canRun:()=>!0}));try{const O=await S(this,Pe).start();if(O===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(O),(w=(_=S(this,Zt).config).onSuccess)==null||w.call(_,O,this),(R=(Z=S(this,Zt).config).onSettled)==null||R.call(Z,O,this.state.error,this),O}catch(O){if(O instanceof go){if(O.silent)return S(this,Pe).promise;if(O.revert){if(this.state.data===void 0)throw O;return this.state.data}}throw ce(this,It,Al).call(this,{type:"error",error:O}),(U=(L=S(this,Zt).config).onError)==null||U.call(L,O,this),(q=(Y=S(this,Zt).config).onSettled)==null||q.call(Y,this.state.data,O,this),O}finally{this.scheduleGc()}}},Za=new WeakMap,Yn=new WeakMap,Zt=new WeakMap,Ka=new WeakMap,Pe=new WeakMap,ei=new WeakMap,Va=new WeakMap,It=new WeakSet,Al=function(i){const r=c=>{switch(i.type){case"failed":return{...c,fetchFailureCount:i.failureCount,fetchFailureReason:i.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...Xy(c.data,this.options),fetchMeta:i.meta??null};case"success":const d={...c,...dy(i.data,i.dataUpdatedAt),dataUpdateCount:c.dataUpdateCount+1,...!i.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return $(this,Yn,i.manual?d:void 0),d;case"error":const m=i.error;return{...c,error:m,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:m,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...i.state}}};this.state=r(this.state),$e.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),S(this,Zt).notify({query:this,type:"updated",action:i})})},My);function Xy(u,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ly(i.networkMode)?"fetching":"paused",...u===void 0&&{error:null,status:"pending"}}}function dy(u,i){return{data:u,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function hy(u){const i=typeof u.initialData=="function"?u.initialData():u.initialData,r=i!==void 0,c=r?typeof u.initialDataUpdatedAt=="function"?u.initialDataUpdatedAt():u.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:r?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var bt,pe,ti,ot,ka,Gn,Ml,ha,li,Xn,Zn,Ja,Fa,ma,Kn,Ee,Wu,xo,bo,So,Eo,jo,No,To,Zy,zy,Ng=(zy=class extends $n{constructor(i,r){super();ee(this,Ee);ee(this,bt);ee(this,pe);ee(this,ti);ee(this,ot);ee(this,ka);ee(this,Gn);ee(this,Ml);ee(this,ha);ee(this,li);ee(this,Xn);ee(this,Zn);ee(this,Ja);ee(this,Fa);ee(this,ma);ee(this,Kn,new Set);this.options=r,$(this,bt,i),$(this,ha,null),$(this,Ml,po()),this.bindMethods(),this.setOptions(r)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(S(this,pe).addObserver(this),my(S(this,pe),this.options)?ce(this,Ee,Wu).call(this):this.updateResult(),ce(this,Ee,Eo).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Co(S(this,pe),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Co(S(this,pe),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,ce(this,Ee,jo).call(this),ce(this,Ee,No).call(this),S(this,pe).removeObserver(this)}setOptions(i){const r=this.options,c=S(this,pe);if(this.options=S(this,bt).defaultQueryOptions(i),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Kt(this.options.enabled,S(this,pe))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");ce(this,Ee,To).call(this),S(this,pe).setOptions(this.options),r._defaulted&&!Us(this.options,r)&&S(this,bt).getQueryCache().notify({type:"observerOptionsUpdated",query:S(this,pe),observer:this});const d=this.hasListeners();d&&yy(S(this,pe),c,this.options,r)&&ce(this,Ee,Wu).call(this),this.updateResult(),d&&(S(this,pe)!==c||Kt(this.options.enabled,S(this,pe))!==Kt(r.enabled,S(this,pe))||ba(this.options.staleTime,S(this,pe))!==ba(r.staleTime,S(this,pe)))&&ce(this,Ee,xo).call(this);const m=ce(this,Ee,bo).call(this);d&&(S(this,pe)!==c||Kt(this.options.enabled,S(this,pe))!==Kt(r.enabled,S(this,pe))||m!==S(this,ma))&&ce(this,Ee,So).call(this,m)}getOptimisticResult(i){const r=S(this,bt).getQueryCache().build(S(this,bt),i),c=this.createResult(r,i);return Cg(this,c)&&($(this,ot,c),$(this,Gn,this.options),$(this,ka,S(this,pe).state)),c}getCurrentResult(){return S(this,ot)}trackResult(i,r){return new Proxy(i,{get:(c,d)=>(this.trackProp(d),r==null||r(d),d==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&S(this,Ml).status==="pending"&&S(this,Ml).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(c,d))})}trackProp(i){S(this,Kn).add(i)}getCurrentQuery(){return S(this,pe)}refetch({...i}={}){return this.fetch({...i})}fetchOptimistic(i){const r=S(this,bt).defaultQueryOptions(i),c=S(this,bt).getQueryCache().build(S(this,bt),r);return c.fetch().then(()=>this.createResult(c,r))}fetch(i){return ce(this,Ee,Wu).call(this,{...i,cancelRefetch:i.cancelRefetch??!0}).then(()=>(this.updateResult(),S(this,ot)))}createResult(i,r){var he;const c=S(this,pe),d=this.options,m=S(this,ot),y=S(this,ka),p=S(this,Gn),v=i!==c?i.state:S(this,ti),{state:T}=i;let g={...T},_=!1,w;if(r._optimisticResults){const Te=this.hasListeners(),ke=!Te&&my(i,r),Je=Te&&yy(i,c,r,d);(ke||Je)&&(g={...g,...Xy(T.data,i.options)}),r._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:Z,errorUpdatedAt:R,status:L}=g;w=g.data;let U=!1;if(r.placeholderData!==void 0&&w===void 0&&L==="pending"){let Te;m!=null&&m.isPlaceholderData&&r.placeholderData===(p==null?void 0:p.placeholderData)?(Te=m.data,U=!0):Te=typeof r.placeholderData=="function"?r.placeholderData((he=S(this,Zn))==null?void 0:he.state.data,S(this,Zn)):r.placeholderData,Te!==void 0&&(L="success",w=vo(m==null?void 0:m.data,Te,r),_=!0)}if(r.select&&w!==void 0&&!U)if(m&&w===(y==null?void 0:y.data)&&r.select===S(this,li))w=S(this,Xn);else try{$(this,li,r.select),w=r.select(w),w=vo(m==null?void 0:m.data,w,r),$(this,Xn,w),$(this,ha,null)}catch(Te){$(this,ha,Te)}S(this,ha)&&(Z=S(this,ha),w=S(this,Xn),R=Date.now(),L="error");const Y=g.fetchStatus==="fetching",q=L==="pending",O=L==="error",K=q&&Y,V=w!==void 0,ae={status:L,fetchStatus:g.fetchStatus,isPending:q,isSuccess:L==="success",isError:O,isInitialLoading:K,isLoading:K,data:w,dataUpdatedAt:g.dataUpdatedAt,error:Z,errorUpdatedAt:R,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>v.dataUpdateCount||g.errorUpdateCount>v.errorUpdateCount,isFetching:Y,isRefetching:Y&&!q,isLoadingError:O&&!V,isPaused:g.fetchStatus==="paused",isPlaceholderData:_,isRefetchError:O&&V,isStale:Lo(i,r),refetch:this.refetch,promise:S(this,Ml),isEnabled:Kt(r.enabled,i)!==!1};if(this.options.experimental_prefetchInRender){const Te=ae.data!==void 0,ke=ae.status==="error"&&!Te,Je=ut=>{ke?ut.reject(ae.error):Te&&ut.resolve(ae.data)},tl=()=>{const ut=$(this,Ml,ae.promise=po());Je(ut)},dt=S(this,Ml);switch(dt.status){case"pending":i.queryHash===c.queryHash&&Je(dt);break;case"fulfilled":(ke||ae.data!==dt.value)&&tl();break;case"rejected":(!ke||ae.error!==dt.reason)&&tl();break}}return ae}updateResult(){const i=S(this,ot),r=this.createResult(S(this,pe),this.options);if($(this,ka,S(this,pe).state),$(this,Gn,this.options),S(this,ka).data!==void 0&&$(this,Zn,S(this,pe)),Us(r,i))return;$(this,ot,r);const c=()=>{if(!i)return!0;const{notifyOnChangeProps:d}=this.options,m=typeof d=="function"?d():d;if(m==="all"||!m&&!S(this,Kn).size)return!0;const y=new Set(m??S(this,Kn));return this.options.throwOnError&&y.add("error"),Object.keys(S(this,ot)).some(p=>{const x=p;return S(this,ot)[x]!==i[x]&&y.has(x)})};ce(this,Ee,Zy).call(this,{listeners:c()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&ce(this,Ee,Eo).call(this)}},bt=new WeakMap,pe=new WeakMap,ti=new WeakMap,ot=new WeakMap,ka=new WeakMap,Gn=new WeakMap,Ml=new WeakMap,ha=new WeakMap,li=new WeakMap,Xn=new WeakMap,Zn=new WeakMap,Ja=new WeakMap,Fa=new WeakMap,ma=new WeakMap,Kn=new WeakMap,Ee=new WeakSet,Wu=function(i){ce(this,Ee,To).call(this);let r=S(this,pe).fetch(this.options,i);return i!=null&&i.throwOnError||(r=r.catch(ft)),r},xo=function(){ce(this,Ee,jo).call(this);const i=ba(this.options.staleTime,S(this,pe));if(Wa||S(this,ot).isStale||!mo(i))return;const c=qy(S(this,ot).dataUpdatedAt,i)+1;$(this,Ja,Ya.setTimeout(()=>{S(this,ot).isStale||this.updateResult()},c))},bo=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(S(this,pe)):this.options.refetchInterval)??!1},So=function(i){ce(this,Ee,No).call(this),$(this,ma,i),!(Wa||Kt(this.options.enabled,S(this,pe))===!1||!mo(S(this,ma))||S(this,ma)===0)&&$(this,Fa,Ya.setInterval(()=>{(this.options.refetchIntervalInBackground||Qo.isFocused())&&ce(this,Ee,Wu).call(this)},S(this,ma)))},Eo=function(){ce(this,Ee,xo).call(this),ce(this,Ee,So).call(this,ce(this,Ee,bo).call(this))},jo=function(){S(this,Ja)&&(Ya.clearTimeout(S(this,Ja)),$(this,Ja,void 0))},No=function(){S(this,Fa)&&(Ya.clearInterval(S(this,Fa)),$(this,Fa,void 0))},To=function(){const i=S(this,bt).getQueryCache().build(S(this,bt),this.options);if(i===S(this,pe))return;const r=S(this,pe);$(this,pe,i),$(this,ti,i.state),this.hasListeners()&&(r==null||r.removeObserver(this),i.addObserver(this))},Zy=function(i){$e.batch(()=>{i.listeners&&this.listeners.forEach(r=>{r(S(this,ot))}),S(this,bt).getQueryCache().notify({query:S(this,pe),type:"observerResultsUpdated"})})},zy);function Tg(u,i){return Kt(i.enabled,u)!==!1&&u.state.data===void 0&&!(u.state.status==="error"&&i.retryOnMount===!1)}function my(u,i){return Tg(u,i)||u.state.data!==void 0&&Co(u,i,i.refetchOnMount)}function Co(u,i,r){if(Kt(i.enabled,u)!==!1&&ba(i.staleTime,u)!=="static"){const c=typeof r=="function"?r(u):r;return c==="always"||c!==!1&&Lo(u,i)}return!1}function yy(u,i,r,c){return(u!==i||Kt(c.enabled,u)===!1)&&(!r.suspense||u.state.status!=="error")&&Lo(u,r)}function Lo(u,i){return Kt(i.enabled,u)!==!1&&u.isStaleByTime(ba(i.staleTime,u))}function Cg(u,i){return!Us(u.getCurrentResult(),i)}function vy(u){return{onFetch:(i,r)=>{var T,g,_,w,Z;const c=i.options,d=(_=(g=(T=i.fetchOptions)==null?void 0:T.meta)==null?void 0:g.fetchMore)==null?void 0:_.direction,m=((w=i.state.data)==null?void 0:w.pages)||[],y=((Z=i.state.data)==null?void 0:Z.pageParams)||[];let p={pages:[],pageParams:[]},x=0;const v=async()=>{let R=!1;const L=q=>{pg(q,()=>i.signal,()=>R=!0)},U=Qy(i.options,i.fetchOptions),Y=async(q,O,K)=>{if(R)return Promise.reject();if(O==null&&q.pages.length)return Promise.resolve(q);const k=(()=>{const ke={client:i.client,queryKey:i.queryKey,pageParam:O,direction:K?"backward":"forward",meta:i.options.meta};return L(ke),ke})(),ae=await U(k),{maxPages:he}=i.options,Te=K?vg:yg;return{pages:Te(q.pages,ae,he),pageParams:Te(q.pageParams,O,he)}};if(d&&m.length){const q=d==="backward",O=q?Og:py,K={pages:m,pageParams:y},V=O(c,K);p=await Y(K,V,q)}else{const q=u??m.length;do{const O=x===0?y[0]??c.initialPageParam:py(c,p);if(x>0&&O==null)break;p=await Y(p,O),x++}while(x<q)}return p};i.options.persister?i.fetchFn=()=>{var R,L;return(L=(R=i.options).persister)==null?void 0:L.call(R,v,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},r)}:i.fetchFn=v}}}function py(u,{pages:i,pageParams:r}){const c=i.length-1;return i.length>0?u.getNextPageParam(i[c],i,r[c],r):void 0}function Og(u,{pages:i,pageParams:r}){var c;return i.length>0?(c=u.getPreviousPageParam)==null?void 0:c.call(u,i[0],i,r[0],r):void 0}var ai,sl,st,$a,rl,ca,_y,Rg=(_y=class extends Gy{constructor(i){super();ee(this,rl);ee(this,ai);ee(this,sl);ee(this,st);ee(this,$a);$(this,ai,i.client),this.mutationId=i.mutationId,$(this,st,i.mutationCache),$(this,sl,[]),this.state=i.state||Ky(),this.setOptions(i.options),this.scheduleGc()}setOptions(i){this.options=i,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(i){S(this,sl).includes(i)||(S(this,sl).push(i),this.clearGcTimeout(),S(this,st).notify({type:"observerAdded",mutation:this,observer:i}))}removeObserver(i){$(this,sl,S(this,sl).filter(r=>r!==i)),this.scheduleGc(),S(this,st).notify({type:"observerRemoved",mutation:this,observer:i})}optionalRemove(){S(this,sl).length||(this.state.status==="pending"?this.scheduleGc():S(this,st).remove(this))}continue(){var i;return((i=S(this,$a))==null?void 0:i.continue())??this.execute(this.state.variables)}async execute(i){var y,p,x,v,T,g,_,w,Z,R,L,U,Y,q,O,K,V,k;const r=()=>{ce(this,rl,ca).call(this,{type:"continue"})},c={client:S(this,ai),meta:this.options.meta,mutationKey:this.options.mutationKey};$(this,$a,Yy({fn:()=>this.options.mutationFn?this.options.mutationFn(i,c):Promise.reject(new Error("No mutationFn found")),onFail:(ae,he)=>{ce(this,rl,ca).call(this,{type:"failed",failureCount:ae,error:he})},onPause:()=>{ce(this,rl,ca).call(this,{type:"pause"})},onContinue:r,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>S(this,st).canRun(this)}));const d=this.state.status==="pending",m=!S(this,$a).canStart();try{if(d)r();else{ce(this,rl,ca).call(this,{type:"pending",variables:i,isPaused:m}),S(this,st).config.onMutate&&await S(this,st).config.onMutate(i,this,c);const he=await((p=(y=this.options).onMutate)==null?void 0:p.call(y,i,c));he!==this.state.context&&ce(this,rl,ca).call(this,{type:"pending",context:he,variables:i,isPaused:m})}const ae=await S(this,$a).start();return await((v=(x=S(this,st).config).onSuccess)==null?void 0:v.call(x,ae,i,this.state.context,this,c)),await((g=(T=this.options).onSuccess)==null?void 0:g.call(T,ae,i,this.state.context,c)),await((w=(_=S(this,st).config).onSettled)==null?void 0:w.call(_,ae,null,this.state.variables,this.state.context,this,c)),await((R=(Z=this.options).onSettled)==null?void 0:R.call(Z,ae,null,i,this.state.context,c)),ce(this,rl,ca).call(this,{type:"success",data:ae}),ae}catch(ae){try{await((U=(L=S(this,st).config).onError)==null?void 0:U.call(L,ae,i,this.state.context,this,c))}catch(he){Promise.reject(he)}try{await((q=(Y=this.options).onError)==null?void 0:q.call(Y,ae,i,this.state.context,c))}catch(he){Promise.reject(he)}try{await((K=(O=S(this,st).config).onSettled)==null?void 0:K.call(O,void 0,ae,this.state.variables,this.state.context,this,c))}catch(he){Promise.reject(he)}try{await((k=(V=this.options).onSettled)==null?void 0:k.call(V,void 0,ae,i,this.state.context,c))}catch(he){Promise.reject(he)}throw ce(this,rl,ca).call(this,{type:"error",error:ae}),ae}finally{S(this,st).runNext(this)}}},ai=new WeakMap,sl=new WeakMap,st=new WeakMap,$a=new WeakMap,rl=new WeakSet,ca=function(i){const r=c=>{switch(i.type){case"failed":return{...c,failureCount:i.failureCount,failureReason:i.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:i.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:i.isPaused,status:"pending",variables:i.variables,submittedAt:Date.now()};case"success":return{...c,data:i.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:i.error,failureCount:c.failureCount+1,failureReason:i.error,isPaused:!1,status:"error"}}};this.state=r(this.state),$e.batch(()=>{S(this,sl).forEach(c=>{c.onMutationUpdate(i)}),S(this,st).notify({mutation:this,type:"updated",action:i})})},_y);function Ky(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var zl,Pt,ni,Dy,Ag=(Dy=class extends $n{constructor(i={}){super();ee(this,zl);ee(this,Pt);ee(this,ni);this.config=i,$(this,zl,new Set),$(this,Pt,new Map),$(this,ni,0)}build(i,r,c){const d=new Rg({client:i,mutationCache:this,mutationId:++Cs(this,ni)._,options:i.defaultMutationOptions(r),state:c});return this.add(d),d}add(i){S(this,zl).add(i);const r=Os(i);if(typeof r=="string"){const c=S(this,Pt).get(r);c?c.push(i):S(this,Pt).set(r,[i])}this.notify({type:"added",mutation:i})}remove(i){if(S(this,zl).delete(i)){const r=Os(i);if(typeof r=="string"){const c=S(this,Pt).get(r);if(c)if(c.length>1){const d=c.indexOf(i);d!==-1&&c.splice(d,1)}else c[0]===i&&S(this,Pt).delete(r)}}this.notify({type:"removed",mutation:i})}canRun(i){const r=Os(i);if(typeof r=="string"){const c=S(this,Pt).get(r),d=c==null?void 0:c.find(m=>m.state.status==="pending");return!d||d===i}else return!0}runNext(i){var c;const r=Os(i);if(typeof r=="string"){const d=(c=S(this,Pt).get(r))==null?void 0:c.find(m=>m!==i&&m.state.isPaused);return(d==null?void 0:d.continue())??Promise.resolve()}else return Promise.resolve()}clear(){$e.batch(()=>{S(this,zl).forEach(i=>{this.notify({type:"removed",mutation:i})}),S(this,zl).clear(),S(this,Pt).clear()})}getAll(){return Array.from(S(this,zl))}find(i){const r={exact:!0,...i};return this.getAll().find(c=>cy(r,c))}findAll(i={}){return this.getAll().filter(r=>cy(i,r))}notify(i){$e.batch(()=>{this.listeners.forEach(r=>{r(i)})})}resumePausedMutations(){const i=this.getAll().filter(r=>r.state.isPaused);return $e.batch(()=>Promise.all(i.map(r=>r.continue().catch(ft))))}},zl=new WeakMap,Pt=new WeakMap,ni=new WeakMap,Dy);function Os(u){var i;return(i=u.options.scope)==null?void 0:i.id}var _l,ya,St,Dl,wl,Ms,Oo,Uy,Mg=(Uy=class extends $n{constructor(r,c){super();ee(this,wl);ee(this,_l);ee(this,ya);ee(this,St);ee(this,Dl);$(this,_l,r),this.setOptions(c),this.bindMethods(),ce(this,wl,Ms).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(r){var d;const c=this.options;this.options=S(this,_l).defaultMutationOptions(r),Us(this.options,c)||S(this,_l).getMutationCache().notify({type:"observerOptionsUpdated",mutation:S(this,St),observer:this}),c!=null&&c.mutationKey&&this.options.mutationKey&&Ia(c.mutationKey)!==Ia(this.options.mutationKey)?this.reset():((d=S(this,St))==null?void 0:d.state.status)==="pending"&&S(this,St).setOptions(this.options)}onUnsubscribe(){var r;this.hasListeners()||(r=S(this,St))==null||r.removeObserver(this)}onMutationUpdate(r){ce(this,wl,Ms).call(this),ce(this,wl,Oo).call(this,r)}getCurrentResult(){return S(this,ya)}reset(){var r;(r=S(this,St))==null||r.removeObserver(this),$(this,St,void 0),ce(this,wl,Ms).call(this),ce(this,wl,Oo).call(this)}mutate(r,c){var d;return $(this,Dl,c),(d=S(this,St))==null||d.removeObserver(this),$(this,St,S(this,_l).getMutationCache().build(S(this,_l),this.options)),S(this,St).addObserver(this),S(this,St).execute(r)}},_l=new WeakMap,ya=new WeakMap,St=new WeakMap,Dl=new WeakMap,wl=new WeakSet,Ms=function(){var c;const r=((c=S(this,St))==null?void 0:c.state)??Ky();$(this,ya,{...r,isPending:r.status==="pending",isSuccess:r.status==="success",isError:r.status==="error",isIdle:r.status==="idle",mutate:this.mutate,reset:this.reset})},Oo=function(r){$e.batch(()=>{var c,d,m,y,p,x,v,T;if(S(this,Dl)&&this.hasListeners()){const g=S(this,ya).variables,_=S(this,ya).context,w={client:S(this,_l),meta:this.options.meta,mutationKey:this.options.mutationKey};if((r==null?void 0:r.type)==="success"){try{(d=(c=S(this,Dl)).onSuccess)==null||d.call(c,r.data,g,_,w)}catch(Z){Promise.reject(Z)}try{(y=(m=S(this,Dl)).onSettled)==null||y.call(m,r.data,null,g,_,w)}catch(Z){Promise.reject(Z)}}else if((r==null?void 0:r.type)==="error"){try{(x=(p=S(this,Dl)).onError)==null||x.call(p,r.error,g,_,w)}catch(Z){Promise.reject(Z)}try{(T=(v=S(this,Dl)).onSettled)==null||T.call(v,void 0,r.error,g,_,w)}catch(Z){Promise.reject(Z)}}}this.listeners.forEach(g=>{g(S(this,ya))})})},Uy),cl,wy,zg=(wy=class extends $n{constructor(i={}){super();ee(this,cl);this.config=i,$(this,cl,new Map)}build(i,r,c){const d=r.queryKey,m=r.queryHash??Ho(d,r);let y=this.get(m);return y||(y=new jg({client:i,queryKey:d,queryHash:m,options:i.defaultQueryOptions(r),state:c,defaultOptions:i.getQueryDefaults(d)}),this.add(y)),y}add(i){S(this,cl).has(i.queryHash)||(S(this,cl).set(i.queryHash,i),this.notify({type:"added",query:i}))}remove(i){const r=S(this,cl).get(i.queryHash);r&&(i.destroy(),r===i&&S(this,cl).delete(i.queryHash),this.notify({type:"removed",query:i}))}clear(){$e.batch(()=>{this.getAll().forEach(i=>{this.remove(i)})})}get(i){return S(this,cl).get(i)}getAll(){return[...S(this,cl).values()]}find(i){const r={exact:!0,...i};return this.getAll().find(c=>ry(r,c))}findAll(i={}){const r=this.getAll();return Object.keys(i).length>0?r.filter(c=>ry(i,c)):r}notify(i){$e.batch(()=>{this.listeners.forEach(r=>{r(i)})})}onFocus(){$e.batch(()=>{this.getAll().forEach(i=>{i.onFocus()})})}onOnline(){$e.batch(()=>{this.getAll().forEach(i=>{i.onOnline()})})}},cl=new WeakMap,wy),Be,va,pa,Vn,kn,ga,Jn,Fn,Hy,_g=(Hy=class{constructor(u={}){ee(this,Be);ee(this,va);ee(this,pa);ee(this,Vn);ee(this,kn);ee(this,ga);ee(this,Jn);ee(this,Fn);$(this,Be,u.queryCache||new zg),$(this,va,u.mutationCache||new Ag),$(this,pa,u.defaultOptions||{}),$(this,Vn,new Map),$(this,kn,new Map),$(this,ga,0)}mount(){Cs(this,ga)._++,S(this,ga)===1&&($(this,Jn,Qo.subscribe(async u=>{u&&(await this.resumePausedMutations(),S(this,Be).onFocus())})),$(this,Fn,ws.subscribe(async u=>{u&&(await this.resumePausedMutations(),S(this,Be).onOnline())})))}unmount(){var u,i;Cs(this,ga)._--,S(this,ga)===0&&((u=S(this,Jn))==null||u.call(this),$(this,Jn,void 0),(i=S(this,Fn))==null||i.call(this),$(this,Fn,void 0))}isFetching(u){return S(this,Be).findAll({...u,fetchStatus:"fetching"}).length}isMutating(u){return S(this,va).findAll({...u,status:"pending"}).length}getQueryData(u){var r;const i=this.defaultQueryOptions({queryKey:u});return(r=S(this,Be).get(i.queryHash))==null?void 0:r.state.data}ensureQueryData(u){const i=this.defaultQueryOptions(u),r=S(this,Be).build(this,i),c=r.state.data;return c===void 0?this.fetchQuery(u):(u.revalidateIfStale&&r.isStaleByTime(ba(i.staleTime,r))&&this.prefetchQuery(i),Promise.resolve(c))}getQueriesData(u){return S(this,Be).findAll(u).map(({queryKey:i,state:r})=>{const c=r.data;return[i,c]})}setQueryData(u,i,r){const c=this.defaultQueryOptions({queryKey:u}),d=S(this,Be).get(c.queryHash),m=d==null?void 0:d.state.data,y=dg(i,m);if(y!==void 0)return S(this,Be).build(this,c).setData(y,{...r,manual:!0})}setQueriesData(u,i,r){return $e.batch(()=>S(this,Be).findAll(u).map(({queryKey:c})=>[c,this.setQueryData(c,i,r)]))}getQueryState(u){var r;const i=this.defaultQueryOptions({queryKey:u});return(r=S(this,Be).get(i.queryHash))==null?void 0:r.state}removeQueries(u){const i=S(this,Be);$e.batch(()=>{i.findAll(u).forEach(r=>{i.remove(r)})})}resetQueries(u,i){const r=S(this,Be);return $e.batch(()=>(r.findAll(u).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...u},i)))}cancelQueries(u,i={}){const r={revert:!0,...i},c=$e.batch(()=>S(this,Be).findAll(u).map(d=>d.cancel(r)));return Promise.all(c).then(ft).catch(ft)}invalidateQueries(u,i={}){return $e.batch(()=>(S(this,Be).findAll(u).forEach(r=>{r.invalidate()}),(u==null?void 0:u.refetchType)==="none"?Promise.resolve():this.refetchQueries({...u,type:(u==null?void 0:u.refetchType)??(u==null?void 0:u.type)??"active"},i)))}refetchQueries(u,i={}){const r={...i,cancelRefetch:i.cancelRefetch??!0},c=$e.batch(()=>S(this,Be).findAll(u).filter(d=>!d.isDisabled()&&!d.isStatic()).map(d=>{let m=d.fetch(void 0,r);return r.throwOnError||(m=m.catch(ft)),d.state.fetchStatus==="paused"?Promise.resolve():m}));return Promise.all(c).then(ft)}fetchQuery(u){const i=this.defaultQueryOptions(u);i.retry===void 0&&(i.retry=!1);const r=S(this,Be).build(this,i);return r.isStaleByTime(ba(i.staleTime,r))?r.fetch(i):Promise.resolve(r.state.data)}prefetchQuery(u){return this.fetchQuery(u).then(ft).catch(ft)}fetchInfiniteQuery(u){return u.behavior=vy(u.pages),this.fetchQuery(u)}prefetchInfiniteQuery(u){return this.fetchInfiniteQuery(u).then(ft).catch(ft)}ensureInfiniteQueryData(u){return u.behavior=vy(u.pages),this.ensureQueryData(u)}resumePausedMutations(){return ws.isOnline()?S(this,va).resumePausedMutations():Promise.resolve()}getQueryCache(){return S(this,Be)}getMutationCache(){return S(this,va)}getDefaultOptions(){return S(this,pa)}setDefaultOptions(u){$(this,pa,u)}setQueryDefaults(u,i){S(this,Vn).set(Ia(u),{queryKey:u,defaultOptions:i})}getQueryDefaults(u){const i=[...S(this,Vn).values()],r={};return i.forEach(c=>{Iu(u,c.queryKey)&&Object.assign(r,c.defaultOptions)}),r}setMutationDefaults(u,i){S(this,kn).set(Ia(u),{mutationKey:u,defaultOptions:i})}getMutationDefaults(u){const i=[...S(this,kn).values()],r={};return i.forEach(c=>{Iu(u,c.mutationKey)&&Object.assign(r,c.defaultOptions)}),r}defaultQueryOptions(u){if(u._defaulted)return u;const i={...S(this,pa).queries,...this.getQueryDefaults(u.queryKey),...u,_defaulted:!0};return i.queryHash||(i.queryHash=Ho(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===qo&&(i.enabled=!1),i}defaultMutationOptions(u){return u!=null&&u._defaulted?u:{...S(this,pa).mutations,...(u==null?void 0:u.mutationKey)&&this.getMutationDefaults(u.mutationKey),...u,_defaulted:!0}}clear(){S(this,Be).clear(),S(this,va).clear()}},Be=new WeakMap,va=new WeakMap,pa=new WeakMap,Vn=new WeakMap,kn=new WeakMap,ga=new WeakMap,Jn=new WeakMap,Fn=new WeakMap,Hy),Vy=j.createContext(void 0),ui=u=>{const i=j.useContext(Vy);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},Dg=({client:u,children:i})=>(j.useEffect(()=>(u.mount(),()=>{u.unmount()}),[u]),o.jsx(Vy.Provider,{value:u,children:i})),ky=j.createContext(!1),Ug=()=>j.useContext(ky);ky.Provider;function wg(){let u=!1;return{clearReset:()=>{u=!1},reset:()=>{u=!0},isReset:()=>u}}var Hg=j.createContext(wg()),qg=()=>j.useContext(Hg),Bg=(u,i,r)=>{const c=r!=null&&r.state.error&&typeof u.throwOnError=="function"?Bo(u.throwOnError,[r.state.error,r]):u.throwOnError;(u.suspense||u.experimental_prefetchInRender||c)&&(i.isReset()||(u.retryOnMount=!1))},Qg=u=>{j.useEffect(()=>{u.clearReset()},[u])},Lg=({result:u,errorResetBoundary:i,throwOnError:r,query:c,suspense:d})=>u.isError&&!i.isReset()&&!u.isFetching&&c&&(d&&u.data===void 0||Bo(r,[u.error,c])),Yg=u=>{if(u.suspense){const r=d=>d==="static"?d:Math.max(d??1e3,1e3),c=u.staleTime;u.staleTime=typeof c=="function"?(...d)=>r(c(...d)):r(c),typeof u.gcTime=="number"&&(u.gcTime=Math.max(u.gcTime,1e3))}},Gg=(u,i)=>u.isLoading&&u.isFetching&&!i,Xg=(u,i)=>(u==null?void 0:u.suspense)&&i.isPending,gy=(u,i,r)=>i.fetchOptimistic(u).catch(()=>{r.clearReset()});function Zg(u,i,r){var _,w,Z,R;const c=Ug(),d=qg(),m=ui(),y=m.defaultQueryOptions(u);(w=(_=m.getDefaultOptions().queries)==null?void 0:_._experimental_beforeQuery)==null||w.call(_,y);const p=m.getQueryCache().get(y.queryHash);y._optimisticResults=c?"isRestoring":"optimistic",Yg(y),Bg(y,d,p),Qg(d);const x=!m.getQueryCache().get(y.queryHash),[v]=j.useState(()=>new i(m,y)),T=v.getOptimisticResult(y),g=!c&&u.subscribed!==!1;if(j.useSyncExternalStore(j.useCallback(L=>{const U=g?v.subscribe($e.batchCalls(L)):ft;return v.updateResult(),U},[v,g]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),j.useEffect(()=>{v.setOptions(y)},[y,v]),Xg(y,T))throw gy(y,v,d);if(Lg({result:T,errorResetBoundary:d,throwOnError:y.throwOnError,query:p,suspense:y.suspense}))throw T.error;if((R=(Z=m.getDefaultOptions().queries)==null?void 0:Z._experimental_afterQuery)==null||R.call(Z,y,T),y.experimental_prefetchInRender&&!Wa&&Gg(T,c)){const L=x?gy(y,v,d):p==null?void 0:p.promise;L==null||L.catch(ft).finally(()=>{v.updateResult()})}return y.notifyOnChangeProps?T:v.trackResult(T)}function kt(u,i){return Zg(u,Ng)}function Ro(u,i){const r=ui(),[c]=j.useState(()=>new Mg(r,u));j.useEffect(()=>{c.setOptions(u)},[c,u]);const d=j.useSyncExternalStore(j.useCallback(y=>c.subscribe($e.batchCalls(y)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),m=j.useCallback((y,p)=>{c.mutate(y,p).catch(ft)},[c]);if(d.error&&Bo(c.options.throwOnError,[d.error]))throw d.error;return{...d,mutate:m,mutateAsync:d.mutate}}const Kg=new _g({defaultOptions:{queries:{staleTime:5e3,retry:1}}});/**
50
- * react-router v7.13.0
51
- *
52
- * Copyright (c) Remix Software Inc.
53
- *
54
- * This source code is licensed under the MIT license found in the
55
- * LICENSE.md file in the root directory of this source tree.
56
- *
57
- * @license MIT
58
- */var xy="popstate";function Vg(u={}){function i(c,d){let{pathname:m,search:y,hash:p}=c.location;return Ao("",{pathname:m,search:y,hash:p},d.state&&d.state.usr||null,d.state&&d.state.key||"default")}function r(c,d){return typeof d=="string"?d:Pu(d)}return Jg(i,r,null,u)}function we(u,i){if(u===!1||u===null||typeof u>"u")throw new Error(i)}function el(u,i){if(!u){typeof console<"u"&&console.warn(i);try{throw new Error(i)}catch{}}}function kg(){return Math.random().toString(36).substring(2,10)}function by(u,i){return{usr:u.state,key:u.key,idx:i}}function Ao(u,i,r=null,c){return{pathname:typeof u=="string"?u:u.pathname,search:"",hash:"",...typeof i=="string"?Wn(i):i,state:r,key:i&&i.key||c||kg()}}function Pu({pathname:u="/",search:i="",hash:r=""}){return i&&i!=="?"&&(u+=i.charAt(0)==="?"?i:"?"+i),r&&r!=="#"&&(u+=r.charAt(0)==="#"?r:"#"+r),u}function Wn(u){let i={};if(u){let r=u.indexOf("#");r>=0&&(i.hash=u.substring(r),u=u.substring(0,r));let c=u.indexOf("?");c>=0&&(i.search=u.substring(c),u=u.substring(0,c)),u&&(i.pathname=u)}return i}function Jg(u,i,r,c={}){let{window:d=document.defaultView,v5Compat:m=!1}=c,y=d.history,p="POP",x=null,v=T();v==null&&(v=0,y.replaceState({...y.state,idx:v},""));function T(){return(y.state||{idx:null}).idx}function g(){p="POP";let L=T(),U=L==null?null:L-v;v=L,x&&x({action:p,location:R.location,delta:U})}function _(L,U){p="PUSH";let Y=Ao(R.location,L,U);v=T()+1;let q=by(Y,v),O=R.createHref(Y);try{y.pushState(q,"",O)}catch(K){if(K instanceof DOMException&&K.name==="DataCloneError")throw K;d.location.assign(O)}m&&x&&x({action:p,location:R.location,delta:1})}function w(L,U){p="REPLACE";let Y=Ao(R.location,L,U);v=T();let q=by(Y,v),O=R.createHref(Y);y.replaceState(q,"",O),m&&x&&x({action:p,location:R.location,delta:0})}function Z(L){return Fg(L)}let R={get action(){return p},get location(){return u(d,y)},listen(L){if(x)throw new Error("A history only accepts one active listener");return d.addEventListener(xy,g),x=L,()=>{d.removeEventListener(xy,g),x=null}},createHref(L){return i(d,L)},createURL:Z,encodeLocation(L){let U=Z(L);return{pathname:U.pathname,search:U.search,hash:U.hash}},push:_,replace:w,go(L){return y.go(L)}};return R}function Fg(u,i=!1){let r="http://localhost";typeof window<"u"&&(r=window.location.origin!=="null"?window.location.origin:window.location.href),we(r,"No window.location.(origin|href) available to create URL");let c=typeof u=="string"?u:Pu(u);return c=c.replace(/ $/,"%20"),!i&&c.startsWith("//")&&(c=r+c),new URL(c,r)}function Jy(u,i,r="/"){return $g(u,i,r,!1)}function $g(u,i,r,c){let d=typeof i=="string"?Wn(i):i,m=Hl(d.pathname||"/",r);if(m==null)return null;let y=Fy(u);Wg(y);let p=null;for(let x=0;p==null&&x<y.length;++x){let v=rx(m);p=ix(y[x],v,c)}return p}function Fy(u,i=[],r=[],c="",d=!1){let m=(y,p,x=d,v)=>{let T={relativePath:v===void 0?y.path||"":v,caseSensitive:y.caseSensitive===!0,childrenIndex:p,route:y};if(T.relativePath.startsWith("/")){if(!T.relativePath.startsWith(c)&&x)return;we(T.relativePath.startsWith(c),`Absolute route path "${T.relativePath}" nested under path "${c}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),T.relativePath=T.relativePath.slice(c.length)}let g=Ul([c,T.relativePath]),_=r.concat(T);y.children&&y.children.length>0&&(we(y.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Fy(y.children,i,_,g,x)),!(y.path==null&&!y.index)&&i.push({path:g,score:nx(g,y.index),routesMeta:_})};return u.forEach((y,p)=>{var x;if(y.path===""||!((x=y.path)!=null&&x.includes("?")))m(y,p);else for(let v of $y(y.path))m(y,p,!0,v)}),i}function $y(u){let i=u.split("/");if(i.length===0)return[];let[r,...c]=i,d=r.endsWith("?"),m=r.replace(/\?$/,"");if(c.length===0)return d?[m,""]:[m];let y=$y(c.join("/")),p=[];return p.push(...y.map(x=>x===""?m:[m,x].join("/"))),d&&p.push(...y),p.map(x=>u.startsWith("/")&&x===""?"/":x)}function Wg(u){u.sort((i,r)=>i.score!==r.score?r.score-i.score:ux(i.routesMeta.map(c=>c.childrenIndex),r.routesMeta.map(c=>c.childrenIndex)))}var Ig=/^:[\w-]+$/,Pg=3,ex=2,tx=1,lx=10,ax=-2,Sy=u=>u==="*";function nx(u,i){let r=u.split("/"),c=r.length;return r.some(Sy)&&(c+=ax),i&&(c+=ex),r.filter(d=>!Sy(d)).reduce((d,m)=>d+(Ig.test(m)?Pg:m===""?tx:lx),c)}function ux(u,i){return u.length===i.length&&u.slice(0,-1).every((c,d)=>c===i[d])?u[u.length-1]-i[i.length-1]:0}function ix(u,i,r=!1){let{routesMeta:c}=u,d={},m="/",y=[];for(let p=0;p<c.length;++p){let x=c[p],v=p===c.length-1,T=m==="/"?i:i.slice(m.length)||"/",g=Hs({path:x.relativePath,caseSensitive:x.caseSensitive,end:v},T),_=x.route;if(!g&&v&&r&&!c[c.length-1].route.index&&(g=Hs({path:x.relativePath,caseSensitive:x.caseSensitive,end:!1},T)),!g)return null;Object.assign(d,g.params),y.push({params:d,pathname:Ul([m,g.pathname]),pathnameBase:dx(Ul([m,g.pathnameBase])),route:_}),g.pathnameBase!=="/"&&(m=Ul([m,g.pathnameBase]))}return y}function Hs(u,i){typeof u=="string"&&(u={path:u,caseSensitive:!1,end:!0});let[r,c]=sx(u.path,u.caseSensitive,u.end),d=i.match(r);if(!d)return null;let m=d[0],y=m.replace(/(.)\/+$/,"$1"),p=d.slice(1);return{params:c.reduce((v,{paramName:T,isOptional:g},_)=>{if(T==="*"){let Z=p[_]||"";y=m.slice(0,m.length-Z.length).replace(/(.)\/+$/,"$1")}const w=p[_];return g&&!w?v[T]=void 0:v[T]=(w||"").replace(/%2F/g,"/"),v},{}),pathname:m,pathnameBase:y,pattern:u}}function sx(u,i=!1,r=!0){el(u==="*"||!u.endsWith("*")||u.endsWith("/*"),`Route path "${u}" will be treated as if it were "${u.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${u.replace(/\*$/,"/*")}".`);let c=[],d="^"+u.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(y,p,x)=>(c.push({paramName:p,isOptional:x!=null}),x?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return u.endsWith("*")?(c.push({paramName:"*"}),d+=u==="*"||u==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?d+="\\/*$":u!==""&&u!=="/"&&(d+="(?:(?=\\/|$))"),[new RegExp(d,i?void 0:"i"),c]}function rx(u){try{return u.split("/").map(i=>decodeURIComponent(i).replace(/\//g,"%2F")).join("/")}catch(i){return el(!1,`The URL path "${u}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${i}).`),u}}function Hl(u,i){if(i==="/")return u;if(!u.toLowerCase().startsWith(i.toLowerCase()))return null;let r=i.endsWith("/")?i.length-1:i.length,c=u.charAt(r);return c&&c!=="/"?null:u.slice(r)||"/"}var cx=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ox(u,i="/"){let{pathname:r,search:c="",hash:d=""}=typeof u=="string"?Wn(u):u,m;return r?(r=r.replace(/\/\/+/g,"/"),r.startsWith("/")?m=Ey(r.substring(1),"/"):m=Ey(r,i)):m=i,{pathname:m,search:hx(c),hash:mx(d)}}function Ey(u,i){let r=i.replace(/\/+$/,"").split("/");return u.split("/").forEach(d=>{d===".."?r.length>1&&r.pop():d!=="."&&r.push(d)}),r.length>1?r.join("/"):"/"}function oo(u,i,r,c){return`Cannot include a '${u}' character in a manually specified \`to.${i}\` field [${JSON.stringify(c)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function fx(u){return u.filter((i,r)=>r===0||i.route.path&&i.route.path.length>0)}function Yo(u){let i=fx(u);return i.map((r,c)=>c===i.length-1?r.pathname:r.pathnameBase)}function Go(u,i,r,c=!1){let d;typeof u=="string"?d=Wn(u):(d={...u},we(!d.pathname||!d.pathname.includes("?"),oo("?","pathname","search",d)),we(!d.pathname||!d.pathname.includes("#"),oo("#","pathname","hash",d)),we(!d.search||!d.search.includes("#"),oo("#","search","hash",d)));let m=u===""||d.pathname==="",y=m?"/":d.pathname,p;if(y==null)p=r;else{let g=i.length-1;if(!c&&y.startsWith("..")){let _=y.split("/");for(;_[0]==="..";)_.shift(),g-=1;d.pathname=_.join("/")}p=g>=0?i[g]:"/"}let x=ox(d,p),v=y&&y!=="/"&&y.endsWith("/"),T=(m||y===".")&&r.endsWith("/");return!x.pathname.endsWith("/")&&(v||T)&&(x.pathname+="/"),x}var Ul=u=>u.join("/").replace(/\/\/+/g,"/"),dx=u=>u.replace(/\/+$/,"").replace(/^\/*/,"/"),hx=u=>!u||u==="?"?"":u.startsWith("?")?u:"?"+u,mx=u=>!u||u==="#"?"":u.startsWith("#")?u:"#"+u,yx=class{constructor(u,i,r,c=!1){this.status=u,this.statusText=i||"",this.internal=c,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}};function vx(u){return u!=null&&typeof u.status=="number"&&typeof u.statusText=="string"&&typeof u.internal=="boolean"&&"data"in u}function px(u){return u.map(i=>i.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Wy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Iy(u,i){let r=u;if(typeof r!="string"||!cx.test(r))return{absoluteURL:void 0,isExternal:!1,to:r};let c=r,d=!1;if(Wy)try{let m=new URL(window.location.href),y=r.startsWith("//")?new URL(m.protocol+r):new URL(r),p=Hl(y.pathname,i);y.origin===m.origin&&p!=null?r=p+y.search+y.hash:d=!0}catch{el(!1,`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:c,isExternal:d,to:r}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Py=["POST","PUT","PATCH","DELETE"];new Set(Py);var gx=["GET",...Py];new Set(gx);var In=j.createContext(null);In.displayName="DataRouter";var qs=j.createContext(null);qs.displayName="DataRouterState";var xx=j.createContext(!1),ev=j.createContext({isTransitioning:!1});ev.displayName="ViewTransition";var bx=j.createContext(new Map);bx.displayName="Fetchers";var Sx=j.createContext(null);Sx.displayName="Await";var Dt=j.createContext(null);Dt.displayName="Navigation";var ii=j.createContext(null);ii.displayName="Location";var ol=j.createContext({outlet:null,matches:[],isDataRoute:!1});ol.displayName="Route";var Xo=j.createContext(null);Xo.displayName="RouteError";var tv="REACT_ROUTER_ERROR",Ex="REDIRECT",jx="ROUTE_ERROR_RESPONSE";function Nx(u){if(u.startsWith(`${tv}:${Ex}:{`))try{let i=JSON.parse(u.slice(28));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string"&&typeof i.location=="string"&&typeof i.reloadDocument=="boolean"&&typeof i.replace=="boolean")return i}catch{}}function Tx(u){if(u.startsWith(`${tv}:${jx}:{`))try{let i=JSON.parse(u.slice(40));if(typeof i=="object"&&i&&typeof i.status=="number"&&typeof i.statusText=="string")return new yx(i.status,i.statusText,i.data)}catch{}}function Cx(u,{relative:i}={}){we(Pn(),"useHref() may be used only in the context of a <Router> component.");let{basename:r,navigator:c}=j.useContext(Dt),{hash:d,pathname:m,search:y}=si(u,{relative:i}),p=m;return r!=="/"&&(p=m==="/"?r:Ul([r,m])),c.createHref({pathname:p,search:y,hash:d})}function Pn(){return j.useContext(ii)!=null}function Sa(){return we(Pn(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(ii).location}var lv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function av(u){j.useContext(Dt).static||j.useLayoutEffect(u)}function nv(){let{isDataRoute:u}=j.useContext(ol);return u?Qx():Ox()}function Ox(){we(Pn(),"useNavigate() may be used only in the context of a <Router> component.");let u=j.useContext(In),{basename:i,navigator:r}=j.useContext(Dt),{matches:c}=j.useContext(ol),{pathname:d}=Sa(),m=JSON.stringify(Yo(c)),y=j.useRef(!1);return av(()=>{y.current=!0}),j.useCallback((x,v={})=>{if(el(y.current,lv),!y.current)return;if(typeof x=="number"){r.go(x);return}let T=Go(x,JSON.parse(m),d,v.relative==="path");u==null&&i!=="/"&&(T.pathname=T.pathname==="/"?i:Ul([i,T.pathname])),(v.replace?r.replace:r.push)(T,v.state,v)},[i,r,m,d,u])}j.createContext(null);function si(u,{relative:i}={}){let{matches:r}=j.useContext(ol),{pathname:c}=Sa(),d=JSON.stringify(Yo(r));return j.useMemo(()=>Go(u,JSON.parse(d),c,i==="path"),[u,d,c,i])}function Rx(u,i){return uv(u,i)}function uv(u,i,r,c,d){var Y;we(Pn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:m}=j.useContext(Dt),{matches:y}=j.useContext(ol),p=y[y.length-1],x=p?p.params:{},v=p?p.pathname:"/",T=p?p.pathnameBase:"/",g=p&&p.route;{let q=g&&g.path||"";sv(v,!g||q.endsWith("*")||q.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${q}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
-
60
- Please change the parent <Route path="${q}"> to <Route path="${q==="/"?"*":`${q}/*`}">.`)}let _=Sa(),w;if(i){let q=typeof i=="string"?Wn(i):i;we(T==="/"||((Y=q.pathname)==null?void 0:Y.startsWith(T)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${T}" but pathname "${q.pathname}" was given in the \`location\` prop.`),w=q}else w=_;let Z=w.pathname||"/",R=Z;if(T!=="/"){let q=T.replace(/^\//,"").split("/");R="/"+Z.replace(/^\//,"").split("/").slice(q.length).join("/")}let L=Jy(u,{pathname:R});el(g||L!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),el(L==null||L[L.length-1].route.element!==void 0||L[L.length-1].route.Component!==void 0||L[L.length-1].route.lazy!==void 0,`Matched leaf route at location "${w.pathname}${w.search}${w.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let U=Dx(L&&L.map(q=>Object.assign({},q,{params:Object.assign({},x,q.params),pathname:Ul([T,m.encodeLocation?m.encodeLocation(q.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathname]),pathnameBase:q.pathnameBase==="/"?T:Ul([T,m.encodeLocation?m.encodeLocation(q.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:q.pathnameBase])})),y,r,c,d);return i&&U?j.createElement(ii.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},U):U}function Ax(){let u=Bx(),i=vx(u)?`${u.status} ${u.statusText}`:u instanceof Error?u.message:JSON.stringify(u),r=u instanceof Error?u.stack:null,c="rgba(200,200,200, 0.5)",d={padding:"0.5rem",backgroundColor:c},m={padding:"2px 4px",backgroundColor:c},y=null;return console.error("Error handled by React Router default ErrorBoundary:",u),y=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:m},"ErrorBoundary")," or"," ",j.createElement("code",{style:m},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},i),r?j.createElement("pre",{style:d},r):null,y)}var Mx=j.createElement(Ax,null),iv=class extends j.Component{constructor(u){super(u),this.state={location:u.location,revalidation:u.revalidation,error:u.error}}static getDerivedStateFromError(u){return{error:u}}static getDerivedStateFromProps(u,i){return i.location!==u.location||i.revalidation!=="idle"&&u.revalidation==="idle"?{error:u.error,location:u.location,revalidation:u.revalidation}:{error:u.error!==void 0?u.error:i.error,location:i.location,revalidation:u.revalidation||i.revalidation}}componentDidCatch(u,i){this.props.onError?this.props.onError(u,i):console.error("React Router caught the following error during render",u)}render(){let u=this.state.error;if(this.context&&typeof u=="object"&&u&&"digest"in u&&typeof u.digest=="string"){const r=Tx(u.digest);r&&(u=r)}let i=u!==void 0?j.createElement(ol.Provider,{value:this.props.routeContext},j.createElement(Xo.Provider,{value:u,children:this.props.component})):this.props.children;return this.context?j.createElement(zx,{error:u},i):i}};iv.contextType=xx;var fo=new WeakMap;function zx({children:u,error:i}){let{basename:r}=j.useContext(Dt);if(typeof i=="object"&&i&&"digest"in i&&typeof i.digest=="string"){let c=Nx(i.digest);if(c){let d=fo.get(i);if(d)throw d;let m=Iy(c.location,r);if(Wy&&!fo.get(i))if(m.isExternal||c.reloadDocument)window.location.href=m.absoluteURL||m.to;else{const y=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(m.to,{replace:c.replace}));throw fo.set(i,y),y}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${m.absoluteURL||m.to}`})}}return u}function _x({routeContext:u,match:i,children:r}){let c=j.useContext(In);return c&&c.static&&c.staticContext&&(i.route.errorElement||i.route.ErrorBoundary)&&(c.staticContext._deepestRenderedBoundaryId=i.route.id),j.createElement(ol.Provider,{value:u},r)}function Dx(u,i=[],r=null,c=null,d=null){if(u==null){if(!r)return null;if(r.errors)u=r.matches;else if(i.length===0&&!r.initialized&&r.matches.length>0)u=r.matches;else return null}let m=u,y=r==null?void 0:r.errors;if(y!=null){let T=m.findIndex(g=>g.route.id&&(y==null?void 0:y[g.route.id])!==void 0);we(T>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(y).join(",")}`),m=m.slice(0,Math.min(m.length,T+1))}let p=!1,x=-1;if(r)for(let T=0;T<m.length;T++){let g=m[T];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(x=T),g.route.id){let{loaderData:_,errors:w}=r,Z=g.route.loader&&!_.hasOwnProperty(g.route.id)&&(!w||w[g.route.id]===void 0);if(g.route.lazy||Z){p=!0,x>=0?m=m.slice(0,x+1):m=[m[0]];break}}}let v=r&&c?(T,g)=>{var _,w;c(T,{location:r.location,params:((w=(_=r.matches)==null?void 0:_[0])==null?void 0:w.params)??{},unstable_pattern:px(r.matches),errorInfo:g})}:void 0;return m.reduceRight((T,g,_)=>{let w,Z=!1,R=null,L=null;r&&(w=y&&g.route.id?y[g.route.id]:void 0,R=g.route.errorElement||Mx,p&&(x<0&&_===0?(sv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),Z=!0,L=null):x===_&&(Z=!0,L=g.route.hydrateFallbackElement||null)));let U=i.concat(m.slice(0,_+1)),Y=()=>{let q;return w?q=R:Z?q=L:g.route.Component?q=j.createElement(g.route.Component,null):g.route.element?q=g.route.element:q=T,j.createElement(_x,{match:g,routeContext:{outlet:T,matches:U,isDataRoute:r!=null},children:q})};return r&&(g.route.ErrorBoundary||g.route.errorElement||_===0)?j.createElement(iv,{location:r.location,revalidation:r.revalidation,component:R,error:w,children:Y(),routeContext:{outlet:null,matches:U,isDataRoute:!0},onError:v}):Y()},null)}function Zo(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ux(u){let i=j.useContext(In);return we(i,Zo(u)),i}function wx(u){let i=j.useContext(qs);return we(i,Zo(u)),i}function Hx(u){let i=j.useContext(ol);return we(i,Zo(u)),i}function Ko(u){let i=Hx(u),r=i.matches[i.matches.length-1];return we(r.route.id,`${u} can only be used on routes that contain a unique "id"`),r.route.id}function qx(){return Ko("useRouteId")}function Bx(){var c;let u=j.useContext(Xo),i=wx("useRouteError"),r=Ko("useRouteError");return u!==void 0?u:(c=i.errors)==null?void 0:c[r]}function Qx(){let{router:u}=Ux("useNavigate"),i=Ko("useNavigate"),r=j.useRef(!1);return av(()=>{r.current=!0}),j.useCallback(async(d,m={})=>{el(r.current,lv),r.current&&(typeof d=="number"?await u.navigate(d):await u.navigate(d,{fromRouteId:i,...m}))},[u,i])}var jy={};function sv(u,i,r){!i&&!jy[u]&&(jy[u]=!0,el(!1,r))}j.memo(Lx);function Lx({routes:u,future:i,state:r,onError:c}){return uv(u,void 0,r,c,i)}function Yx({to:u,replace:i,state:r,relative:c}){we(Pn(),"<Navigate> may be used only in the context of a <Router> component.");let{static:d}=j.useContext(Dt);el(!d,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:m}=j.useContext(ol),{pathname:y}=Sa(),p=nv(),x=Go(u,Yo(m),y,c==="path"),v=JSON.stringify(x);return j.useEffect(()=>{p(JSON.parse(v),{replace:i,state:r,relative:c})},[p,v,c,i,r]),null}function il(u){we(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Gx({basename:u="/",children:i=null,location:r,navigationType:c="POP",navigator:d,static:m=!1,unstable_useTransitions:y}){we(!Pn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let p=u.replace(/^\/*/,"/"),x=j.useMemo(()=>({basename:p,navigator:d,static:m,unstable_useTransitions:y,future:{}}),[p,d,m,y]);typeof r=="string"&&(r=Wn(r));let{pathname:v="/",search:T="",hash:g="",state:_=null,key:w="default"}=r,Z=j.useMemo(()=>{let R=Hl(v,p);return R==null?null:{location:{pathname:R,search:T,hash:g,state:_,key:w},navigationType:c}},[p,v,T,g,_,w,c]);return el(Z!=null,`<Router basename="${p}"> is not able to match the URL "${v}${T}${g}" because it does not start with the basename, so the <Router> won't render anything.`),Z==null?null:j.createElement(Dt.Provider,{value:x},j.createElement(ii.Provider,{children:i,value:Z}))}function Xx({children:u,location:i}){return Rx(Mo(u),i)}function Mo(u,i=[]){let r=[];return j.Children.forEach(u,(c,d)=>{if(!j.isValidElement(c))return;let m=[...i,d];if(c.type===j.Fragment){r.push.apply(r,Mo(c.props.children,m));return}we(c.type===il,`[${typeof c.type=="string"?c.type:c.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),we(!c.props.index||!c.props.children,"An index route cannot have child routes.");let y={id:c.props.id||m.join("-"),caseSensitive:c.props.caseSensitive,element:c.props.element,Component:c.props.Component,index:c.props.index,path:c.props.path,middleware:c.props.middleware,loader:c.props.loader,action:c.props.action,hydrateFallbackElement:c.props.hydrateFallbackElement,HydrateFallback:c.props.HydrateFallback,errorElement:c.props.errorElement,ErrorBoundary:c.props.ErrorBoundary,hasErrorBoundary:c.props.hasErrorBoundary===!0||c.props.ErrorBoundary!=null||c.props.errorElement!=null,shouldRevalidate:c.props.shouldRevalidate,handle:c.props.handle,lazy:c.props.lazy};c.props.children&&(y.children=Mo(c.props.children,m)),r.push(y)}),r}var zs="get",_s="application/x-www-form-urlencoded";function Bs(u){return typeof HTMLElement<"u"&&u instanceof HTMLElement}function Zx(u){return Bs(u)&&u.tagName.toLowerCase()==="button"}function Kx(u){return Bs(u)&&u.tagName.toLowerCase()==="form"}function Vx(u){return Bs(u)&&u.tagName.toLowerCase()==="input"}function kx(u){return!!(u.metaKey||u.altKey||u.ctrlKey||u.shiftKey)}function Jx(u,i){return u.button===0&&(!i||i==="_self")&&!kx(u)}var Rs=null;function Fx(){if(Rs===null)try{new FormData(document.createElement("form"),0),Rs=!1}catch{Rs=!0}return Rs}var $x=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ho(u){return u!=null&&!$x.has(u)?(el(!1,`"${u}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${_s}"`),null):u}function Wx(u,i){let r,c,d,m,y;if(Kx(u)){let p=u.getAttribute("action");c=p?Hl(p,i):null,r=u.getAttribute("method")||zs,d=ho(u.getAttribute("enctype"))||_s,m=new FormData(u)}else if(Zx(u)||Vx(u)&&(u.type==="submit"||u.type==="image")){let p=u.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let x=u.getAttribute("formaction")||p.getAttribute("action");if(c=x?Hl(x,i):null,r=u.getAttribute("formmethod")||p.getAttribute("method")||zs,d=ho(u.getAttribute("formenctype"))||ho(p.getAttribute("enctype"))||_s,m=new FormData(p,u),!Fx()){let{name:v,type:T,value:g}=u;if(T==="image"){let _=v?`${v}.`:"";m.append(`${_}x`,"0"),m.append(`${_}y`,"0")}else v&&m.append(v,g)}}else{if(Bs(u))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');r=zs,c=null,d=_s,y=u}return m&&d==="text/plain"&&(y=m,m=void 0),{action:c,method:r.toLowerCase(),encType:d,formData:m,body:y}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Vo(u,i){if(u===!1||u===null||typeof u>"u")throw new Error(i)}function Ix(u,i,r,c){let d=typeof u=="string"?new URL(u,typeof window>"u"?"server://singlefetch/":window.location.origin):u;return r?d.pathname.endsWith("/")?d.pathname=`${d.pathname}_.${c}`:d.pathname=`${d.pathname}.${c}`:d.pathname==="/"?d.pathname=`_root.${c}`:i&&Hl(d.pathname,i)==="/"?d.pathname=`${i.replace(/\/$/,"")}/_root.${c}`:d.pathname=`${d.pathname.replace(/\/$/,"")}.${c}`,d}async function Px(u,i){if(u.id in i)return i[u.id];try{let r=await import(u.module);return i[u.id]=r,r}catch(r){return console.error(`Error loading route module \`${u.module}\`, reloading page...`),console.error(r),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function eb(u){return u==null?!1:u.href==null?u.rel==="preload"&&typeof u.imageSrcSet=="string"&&typeof u.imageSizes=="string":typeof u.rel=="string"&&typeof u.href=="string"}async function tb(u,i,r){let c=await Promise.all(u.map(async d=>{let m=i.routes[d.route.id];if(m){let y=await Px(m,r);return y.links?y.links():[]}return[]}));return ub(c.flat(1).filter(eb).filter(d=>d.rel==="stylesheet"||d.rel==="preload").map(d=>d.rel==="stylesheet"?{...d,rel:"prefetch",as:"style"}:{...d,rel:"prefetch"}))}function Ny(u,i,r,c,d,m){let y=(x,v)=>r[v]?x.route.id!==r[v].route.id:!0,p=(x,v)=>{var T;return r[v].pathname!==x.pathname||((T=r[v].route.path)==null?void 0:T.endsWith("*"))&&r[v].params["*"]!==x.params["*"]};return m==="assets"?i.filter((x,v)=>y(x,v)||p(x,v)):m==="data"?i.filter((x,v)=>{var g;let T=c.routes[x.route.id];if(!T||!T.hasLoader)return!1;if(y(x,v)||p(x,v))return!0;if(x.route.shouldRevalidate){let _=x.route.shouldRevalidate({currentUrl:new URL(d.pathname+d.search+d.hash,window.origin),currentParams:((g=r[0])==null?void 0:g.params)||{},nextUrl:new URL(u,window.origin),nextParams:x.params,defaultShouldRevalidate:!0});if(typeof _=="boolean")return _}return!0}):[]}function lb(u,i,{includeHydrateFallback:r}={}){return ab(u.map(c=>{let d=i.routes[c.route.id];if(!d)return[];let m=[d.module];return d.clientActionModule&&(m=m.concat(d.clientActionModule)),d.clientLoaderModule&&(m=m.concat(d.clientLoaderModule)),r&&d.hydrateFallbackModule&&(m=m.concat(d.hydrateFallbackModule)),d.imports&&(m=m.concat(d.imports)),m}).flat(1))}function ab(u){return[...new Set(u)]}function nb(u){let i={},r=Object.keys(u).sort();for(let c of r)i[c]=u[c];return i}function ub(u,i){let r=new Set;return new Set(i),u.reduce((c,d)=>{let m=JSON.stringify(nb(d));return r.has(m)||(r.add(m),c.push({key:m,link:d})),c},[])}function rv(){let u=j.useContext(In);return Vo(u,"You must render this element inside a <DataRouterContext.Provider> element"),u}function ib(){let u=j.useContext(qs);return Vo(u,"You must render this element inside a <DataRouterStateContext.Provider> element"),u}var ko=j.createContext(void 0);ko.displayName="FrameworkContext";function cv(){let u=j.useContext(ko);return Vo(u,"You must render this element inside a <HydratedRouter> element"),u}function sb(u,i){let r=j.useContext(ko),[c,d]=j.useState(!1),[m,y]=j.useState(!1),{onFocus:p,onBlur:x,onMouseEnter:v,onMouseLeave:T,onTouchStart:g}=i,_=j.useRef(null);j.useEffect(()=>{if(u==="render"&&y(!0),u==="viewport"){let R=U=>{U.forEach(Y=>{y(Y.isIntersecting)})},L=new IntersectionObserver(R,{threshold:.5});return _.current&&L.observe(_.current),()=>{L.disconnect()}}},[u]),j.useEffect(()=>{if(c){let R=setTimeout(()=>{y(!0)},100);return()=>{clearTimeout(R)}}},[c]);let w=()=>{d(!0)},Z=()=>{d(!1),y(!1)};return r?u!=="intent"?[m,_,{}]:[m,_,{onFocus:$u(p,w),onBlur:$u(x,Z),onMouseEnter:$u(v,w),onMouseLeave:$u(T,Z),onTouchStart:$u(g,w)}]:[!1,_,{}]}function $u(u,i){return r=>{u&&u(r),r.defaultPrevented||i(r)}}function rb({page:u,...i}){let{router:r}=rv(),c=j.useMemo(()=>Jy(r.routes,u,r.basename),[r.routes,u,r.basename]);return c?j.createElement(ob,{page:u,matches:c,...i}):null}function cb(u){let{manifest:i,routeModules:r}=cv(),[c,d]=j.useState([]);return j.useEffect(()=>{let m=!1;return tb(u,i,r).then(y=>{m||d(y)}),()=>{m=!0}},[u,i,r]),c}function ob({page:u,matches:i,...r}){let c=Sa(),{future:d,manifest:m,routeModules:y}=cv(),{basename:p}=rv(),{loaderData:x,matches:v}=ib(),T=j.useMemo(()=>Ny(u,i,v,m,c,"data"),[u,i,v,m,c]),g=j.useMemo(()=>Ny(u,i,v,m,c,"assets"),[u,i,v,m,c]),_=j.useMemo(()=>{if(u===c.pathname+c.search+c.hash)return[];let R=new Set,L=!1;if(i.forEach(Y=>{var O;let q=m.routes[Y.route.id];!q||!q.hasLoader||(!T.some(K=>K.route.id===Y.route.id)&&Y.route.id in x&&((O=y[Y.route.id])!=null&&O.shouldRevalidate)||q.hasClientLoader?L=!0:R.add(Y.route.id))}),R.size===0)return[];let U=Ix(u,p,d.unstable_trailingSlashAwareDataRequests,"data");return L&&R.size>0&&U.searchParams.set("_routes",i.filter(Y=>R.has(Y.route.id)).map(Y=>Y.route.id).join(",")),[U.pathname+U.search]},[p,d.unstable_trailingSlashAwareDataRequests,x,c,m,T,i,u,y]),w=j.useMemo(()=>lb(g,m),[g,m]),Z=cb(g);return j.createElement(j.Fragment,null,_.map(R=>j.createElement("link",{key:R,rel:"prefetch",as:"fetch",href:R,...r})),w.map(R=>j.createElement("link",{key:R,rel:"modulepreload",href:R,...r})),Z.map(({key:R,link:L})=>j.createElement("link",{key:R,nonce:r.nonce,...L,crossOrigin:L.crossOrigin??r.crossOrigin})))}function fb(...u){return i=>{u.forEach(r=>{typeof r=="function"?r(i):r!=null&&(r.current=i)})}}var db=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{db&&(window.__reactRouterVersion="7.13.0")}catch{}function hb({basename:u,children:i,unstable_useTransitions:r,window:c}){let d=j.useRef();d.current==null&&(d.current=Vg({window:c,v5Compat:!0}));let m=d.current,[y,p]=j.useState({action:m.action,location:m.location}),x=j.useCallback(v=>{r===!1?p(v):j.startTransition(()=>p(v))},[r]);return j.useLayoutEffect(()=>m.listen(x),[m,x]),j.createElement(Gx,{basename:u,children:i,location:y.location,navigationType:y.action,navigator:m,unstable_useTransitions:r})}var ov=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,fv=j.forwardRef(function({onClick:i,discover:r="render",prefetch:c="none",relative:d,reloadDocument:m,replace:y,state:p,target:x,to:v,preventScrollReset:T,viewTransition:g,unstable_defaultShouldRevalidate:_,...w},Z){let{basename:R,unstable_useTransitions:L}=j.useContext(Dt),U=typeof v=="string"&&ov.test(v),Y=Iy(v,R);v=Y.to;let q=Cx(v,{relative:d}),[O,K,V]=sb(c,w),k=vb(v,{replace:y,state:p,target:x,preventScrollReset:T,relative:d,viewTransition:g,unstable_defaultShouldRevalidate:_,unstable_useTransitions:L});function ae(Te){i&&i(Te),Te.defaultPrevented||k(Te)}let he=j.createElement("a",{...w,...V,href:Y.absoluteURL||q,onClick:Y.isExternal||m?i:ae,ref:fb(Z,K),target:x,"data-discover":!U&&r==="render"?"true":void 0});return O&&!U?j.createElement(j.Fragment,null,he,j.createElement(rb,{page:q})):he});fv.displayName="Link";var dv=j.forwardRef(function({"aria-current":i="page",caseSensitive:r=!1,className:c="",end:d=!1,style:m,to:y,viewTransition:p,children:x,...v},T){let g=si(y,{relative:v.relative}),_=Sa(),w=j.useContext(qs),{navigator:Z,basename:R}=j.useContext(Dt),L=w!=null&&Sb(g)&&p===!0,U=Z.encodeLocation?Z.encodeLocation(g).pathname:g.pathname,Y=_.pathname,q=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;r||(Y=Y.toLowerCase(),q=q?q.toLowerCase():null,U=U.toLowerCase()),q&&R&&(q=Hl(q,R)||q);const O=U!=="/"&&U.endsWith("/")?U.length-1:U.length;let K=Y===U||!d&&Y.startsWith(U)&&Y.charAt(O)==="/",V=q!=null&&(q===U||!d&&q.startsWith(U)&&q.charAt(U.length)==="/"),k={isActive:K,isPending:V,isTransitioning:L},ae=K?i:void 0,he;typeof c=="function"?he=c(k):he=[c,K?"active":null,V?"pending":null,L?"transitioning":null].filter(Boolean).join(" ");let Te=typeof m=="function"?m(k):m;return j.createElement(fv,{...v,"aria-current":ae,className:he,ref:T,style:Te,to:y,viewTransition:p},typeof x=="function"?x(k):x)});dv.displayName="NavLink";var mb=j.forwardRef(({discover:u="render",fetcherKey:i,navigate:r,reloadDocument:c,replace:d,state:m,method:y=zs,action:p,onSubmit:x,relative:v,preventScrollReset:T,viewTransition:g,unstable_defaultShouldRevalidate:_,...w},Z)=>{let{unstable_useTransitions:R}=j.useContext(Dt),L=xb(),U=bb(p,{relative:v}),Y=y.toLowerCase()==="get"?"get":"post",q=typeof p=="string"&&ov.test(p),O=K=>{if(x&&x(K),K.defaultPrevented)return;K.preventDefault();let V=K.nativeEvent.submitter,k=(V==null?void 0:V.getAttribute("formmethod"))||y,ae=()=>L(V||K.currentTarget,{fetcherKey:i,method:k,navigate:r,replace:d,state:m,relative:v,preventScrollReset:T,viewTransition:g,unstable_defaultShouldRevalidate:_});R&&r!==!1?j.startTransition(()=>ae()):ae()};return j.createElement("form",{ref:Z,method:Y,action:U,onSubmit:c?x:O,...w,"data-discover":!q&&u==="render"?"true":void 0})});mb.displayName="Form";function yb(u){return`${u} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function hv(u){let i=j.useContext(In);return we(i,yb(u)),i}function vb(u,{target:i,replace:r,state:c,preventScrollReset:d,relative:m,viewTransition:y,unstable_defaultShouldRevalidate:p,unstable_useTransitions:x}={}){let v=nv(),T=Sa(),g=si(u,{relative:m});return j.useCallback(_=>{if(Jx(_,i)){_.preventDefault();let w=r!==void 0?r:Pu(T)===Pu(g),Z=()=>v(u,{replace:w,state:c,preventScrollReset:d,relative:m,viewTransition:y,unstable_defaultShouldRevalidate:p});x?j.startTransition(()=>Z()):Z()}},[T,v,g,r,c,i,u,d,m,y,p,x])}var pb=0,gb=()=>`__${String(++pb)}__`;function xb(){let{router:u}=hv("useSubmit"),{basename:i}=j.useContext(Dt),r=qx(),c=u.fetch,d=u.navigate;return j.useCallback(async(m,y={})=>{let{action:p,method:x,encType:v,formData:T,body:g}=Wx(m,i);if(y.navigate===!1){let _=y.fetcherKey||gb();await c(_,r,y.action||p,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:T,body:g,formMethod:y.method||x,formEncType:y.encType||v,flushSync:y.flushSync})}else await d(y.action||p,{unstable_defaultShouldRevalidate:y.unstable_defaultShouldRevalidate,preventScrollReset:y.preventScrollReset,formData:T,body:g,formMethod:y.method||x,formEncType:y.encType||v,replace:y.replace,state:y.state,fromRouteId:r,flushSync:y.flushSync,viewTransition:y.viewTransition})},[c,d,i,r])}function bb(u,{relative:i}={}){let{basename:r}=j.useContext(Dt),c=j.useContext(ol);we(c,"useFormAction must be used inside a RouteContext");let[d]=c.matches.slice(-1),m={...si(u||".",{relative:i})},y=Sa();if(u==null){m.search=y.search;let p=new URLSearchParams(m.search),x=p.getAll("index");if(x.some(T=>T==="")){p.delete("index"),x.filter(g=>g).forEach(g=>p.append("index",g));let T=p.toString();m.search=T?`?${T}`:""}}return(!u||u===".")&&d.route.index&&(m.search=m.search?m.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(m.pathname=m.pathname==="/"?r:Ul([r,m.pathname])),Pu(m)}function Sb(u,{relative:i}={}){let r=j.useContext(ev);we(r!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:c}=hv("useViewTransitionState"),d=si(u,{relative:i});if(!r.isTransitioning)return!1;let m=Hl(r.currentLocation.pathname,c)||r.currentLocation.pathname,y=Hl(r.nextLocation.pathname,c)||r.nextLocation.pathname;return Hs(d.pathname,y)!=null||Hs(d.pathname,m)!=null}/**
61
- * @license lucide-react v0.474.0 - ISC
62
- *
63
- * This source code is licensed under the ISC license.
64
- * See the LICENSE file in the root directory of this source tree.
65
- */const Eb=u=>u.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),mv=(...u)=>u.filter((i,r,c)=>!!i&&i.trim()!==""&&c.indexOf(i)===r).join(" ").trim();/**
66
- * @license lucide-react v0.474.0 - ISC
67
- *
68
- * This source code is licensed under the ISC license.
69
- * See the LICENSE file in the root directory of this source tree.
70
- */var jb={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
71
- * @license lucide-react v0.474.0 - ISC
72
- *
73
- * This source code is licensed under the ISC license.
74
- * See the LICENSE file in the root directory of this source tree.
75
- */const Nb=j.forwardRef(({color:u="currentColor",size:i=24,strokeWidth:r=2,absoluteStrokeWidth:c,className:d="",children:m,iconNode:y,...p},x)=>j.createElement("svg",{ref:x,...jb,width:i,height:i,stroke:u,strokeWidth:c?Number(r)*24/Number(i):r,className:mv("lucide",d),...p},[...y.map(([v,T])=>j.createElement(v,T)),...Array.isArray(m)?m:[m]]));/**
76
- * @license lucide-react v0.474.0 - ISC
77
- *
78
- * This source code is licensed under the ISC license.
79
- * See the LICENSE file in the root directory of this source tree.
80
- */const Et=(u,i)=>{const r=j.forwardRef(({className:c,...d},m)=>j.createElement(Nb,{ref:m,iconNode:i,className:mv(`lucide-${Eb(u)}`,c),...d}));return r.displayName=`${u}`,r};/**
81
- * @license lucide-react v0.474.0 - ISC
82
- *
83
- * This source code is licensed under the ISC license.
84
- * See the LICENSE file in the root directory of this source tree.
85
- */const Tb=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],yv=Et("Activity",Tb);/**
86
- * @license lucide-react v0.474.0 - ISC
87
- *
88
- * This source code is licensed under the ISC license.
89
- * See the LICENSE file in the root directory of this source tree.
90
- */const Cb=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],zo=Et("ArrowRight",Cb);/**
91
- * @license lucide-react v0.474.0 - ISC
92
- *
93
- * This source code is licensed under the ISC license.
94
- * See the LICENSE file in the root directory of this source tree.
95
- */const Ob=[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]],vv=Et("Brain",Ob);/**
96
- * @license lucide-react v0.474.0 - ISC
97
- *
98
- * This source code is licensed under the ISC license.
99
- * See the LICENSE file in the root directory of this source tree.
100
- */const Rb=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],pv=Et("DollarSign",Rb);/**
101
- * @license lucide-react v0.474.0 - ISC
102
- *
103
- * This source code is licensed under the ISC license.
104
- * See the LICENSE file in the root directory of this source tree.
105
- */const Ab=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],gv=Et("FlaskConical",Ab);/**
106
- * @license lucide-react v0.474.0 - ISC
107
- *
108
- * This source code is licensed under the ISC license.
109
- * See the LICENSE file in the root directory of this source tree.
110
- */const Mb=[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]],zb=Et("MessageSquare",Mb);/**
111
- * @license lucide-react v0.474.0 - ISC
112
- *
113
- * This source code is licensed under the ISC license.
114
- * See the LICENSE file in the root directory of this source tree.
115
- */const _b=[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]],xv=Et("Play",_b);/**
116
- * @license lucide-react v0.474.0 - ISC
117
- *
118
- * This source code is licensed under the ISC license.
119
- * See the LICENSE file in the root directory of this source tree.
120
- */const Db=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Ub=Et("Plus",Db);/**
121
- * @license lucide-react v0.474.0 - ISC
122
- *
123
- * This source code is licensed under the ISC license.
124
- * See the LICENSE file in the root directory of this source tree.
125
- */const wb=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]],Hb=Et("Search",wb);/**
126
- * @license lucide-react v0.474.0 - ISC
127
- *
128
- * This source code is licensed under the ISC license.
129
- * See the LICENSE file in the root directory of this source tree.
130
- */const qb=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Bb=Et("Send",qb);/**
131
- * @license lucide-react v0.474.0 - ISC
132
- *
133
- * This source code is licensed under the ISC license.
134
- * See the LICENSE file in the root directory of this source tree.
135
- */const Qb=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Lb=Et("ShieldCheck",Qb);/**
136
- * @license lucide-react v0.474.0 - ISC
137
- *
138
- * This source code is licensed under the ISC license.
139
- * See the LICENSE file in the root directory of this source tree.
140
- */const Yb=[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]],bv=Et("Trash2",Yb);/**
141
- * @license lucide-react v0.474.0 - ISC
142
- *
143
- * This source code is licensed under the ISC license.
144
- * See the LICENSE file in the root directory of this source tree.
145
- */const Gb=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]],Sv=Et("Users",Gb);/**
146
- * @license lucide-react v0.474.0 - ISC
147
- *
148
- * This source code is licensed under the ISC license.
149
- * See the LICENSE file in the root directory of this source tree.
150
- */const Xb=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z",key:"cbrjhi"}]],Ev=Et("Wrench",Xb);function _o(...u){return u.filter(Boolean).join(" ")}function jv(u){return u===0?"$0.00":u<.01?`$${u.toFixed(4)}`:`$${u.toFixed(2)}`}function Zb(u){return u<1e3?`${Math.round(u)}ms`:u<6e4?`${(u/1e3).toFixed(1)}s`:`${(u/6e4).toFixed(1)}m`}function Ds(u){return u.toLocaleString()}function Kb(u){switch(u){case"running":return"text-blue-500";case"completed":return"text-green-500";case"failed":return"text-red-500";case"waiting":return"text-amber-500";default:return"text-gray-500"}}const Vb=[{to:"/playground",label:"Playground",icon:zb},{to:"/workflows",label:"Workflows",icon:xv},{to:"/traces",label:"Traces",icon:yv},{to:"/costs",label:"Costs",icon:pv},{to:"/memory",label:"Memory",icon:vv},{to:"/sessions",label:"Sessions",icon:Sv},{to:"/tools",label:"Tools",icon:Ev},{to:"/evals",label:"Evals",icon:gv}];function kb(){return o.jsxs("aside",{className:"w-56 border-r border-[hsl(var(--border))] bg-[hsl(var(--card))] flex flex-col h-screen",children:[o.jsx("div",{className:"p-4 border-b border-[hsl(var(--border))]",children:o.jsx("h1",{className:"text-lg font-semibold tracking-tight",children:"Axl Studio"})}),o.jsx("nav",{className:"flex-1 p-2 space-y-0.5",children:Vb.map(({to:u,label:i,icon:r})=>o.jsxs(dv,{to:u,className:({isActive:c})=>_o("flex items-center gap-2.5 px-3 py-2 rounded-md text-sm transition-colors",c?"bg-[hsl(var(--accent))] text-[hsl(var(--accent-foreground))] font-medium":"text-[hsl(var(--muted-foreground))] hover:bg-[hsl(var(--accent))] hover:text-[hsl(var(--accent-foreground))]"),children:[o.jsx(r,{size:16}),i]},u))}),o.jsx("div",{className:"p-4 border-t border-[hsl(var(--border))] text-xs text-[hsl(var(--muted-foreground))]",children:"@axlsdk/studio"})]})}function ql({title:u,description:i,actions:r,children:c}){return o.jsxs("div",{className:"flex flex-col h-screen",children:[o.jsxs("header",{className:"flex items-center justify-between px-6 py-4 border-b border-[hsl(var(--border))]",children:[o.jsxs("div",{children:[o.jsx("h2",{className:"text-xl font-semibold",children:u}),i&&o.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))] mt-0.5",children:i})]}),r&&o.jsx("div",{className:"flex items-center gap-2",children:r})]}),o.jsx("main",{className:"flex-1 overflow-auto p-6",children:c})]})}function Vt({title:u,description:i,icon:r}){return o.jsxs("div",{className:"flex flex-col items-center justify-center py-16 text-center",children:[r&&o.jsx("div",{className:"mb-3 text-[hsl(var(--muted-foreground))]",children:r}),o.jsx("h3",{className:"text-sm font-medium text-[hsl(var(--foreground))]",children:u}),i&&o.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))] mt-1 max-w-sm",children:i})]})}function Jb({text:u,className:i}){return o.jsxs("div",{className:`whitespace-pre-wrap ${i??""}`,children:[u,o.jsx("span",{className:"animate-pulse",children:"|"})]})}function Jt({data:u,collapsed:i=!1,className:r}){const[c,d]=j.useState(i),m=JSON.stringify(u,null,2),y=m.length>200;return o.jsxs("div",{className:`relative ${r??""}`,children:[y&&o.jsx("button",{onClick:()=>d(!c),className:"text-xs text-[hsl(var(--muted-foreground))] hover:text-[hsl(var(--foreground))] mb-1",children:c?"Expand":"Collapse"}),o.jsx("pre",{className:"text-xs font-mono p-3 rounded-md bg-[hsl(var(--secondary))] overflow-auto max-h-96",children:c?JSON.stringify(u):m})]})}const Fb=(window.__AXL_STUDIO_BASE__??"")+"/api";async function Qe(u,i){const c=await(await fetch(`${Fb}${u}`,{headers:{"Content-Type":"application/json",...i==null?void 0:i.headers},...i})).json();if(!c.ok)throw new Error(c.error.message);return c.data}const $b=()=>Qe("/workflows"),Wb=u=>Qe(`/workflows/${encodeURIComponent(u)}`),Ib=(u,i,r=!1)=>Qe(`/workflows/${encodeURIComponent(u)}/execute`,{method:"POST",body:JSON.stringify({input:i,stream:r})}),Pb=()=>Qe("/executions"),e1=()=>Qe("/sessions"),t1=u=>Qe(`/sessions/${encodeURIComponent(u)}`),l1=u=>Qe(`/sessions/${encodeURIComponent(u)}`,{method:"DELETE"}),a1=()=>Qe("/agents"),n1=()=>Qe("/tools"),u1=u=>Qe(`/tools/${encodeURIComponent(u)}`),i1=(u,i)=>Qe(`/tools/${encodeURIComponent(u)}/test`,{method:"POST",body:JSON.stringify({input:i})}),s1=u=>Qe(`/memory/${encodeURIComponent(u)}`),r1=(u,i,r)=>Qe(`/memory/${encodeURIComponent(u)}/${encodeURIComponent(i)}`,{method:"PUT",body:JSON.stringify({value:r})}),c1=(u,i)=>Qe(`/memory/${encodeURIComponent(u)}/${encodeURIComponent(i)}`,{method:"DELETE"}),o1=(u,i,r)=>Qe("/memory/search",{method:"POST",body:JSON.stringify({query:u,scope:i,limit:r})}),f1=()=>Qe("/costs"),d1=()=>Qe("/costs/reset",{method:"POST"}),h1=()=>Qe("/evals"),m1=()=>Qe("/evals/history"),y1=u=>Qe(`/evals/${encodeURIComponent(u)}/run`,{method:"POST"}),v1=(u,i)=>Qe("/evals/compare",{method:"POST",body:JSON.stringify({baseline:u,candidate:i})}),p1=(u,i,r)=>Qe("/playground/chat",{method:"POST",body:JSON.stringify({message:u,sessionId:i,agent:r})});class g1{constructor(){ku(this,"ws",null);ku(this,"listeners",new Map);ku(this,"reconnectTimer",null);ku(this,"url");const i=window.location.protocol==="https:"?"wss:":"ws:",r=window.__AXL_STUDIO_BASE__??"";this.url=`${i}//${window.location.host}${r}/ws`}connect(){var i;((i=this.ws)==null?void 0:i.readyState)!==WebSocket.OPEN&&(this.ws=new WebSocket(this.url),this.ws.onopen=()=>{for(const r of this.listeners.keys())this.send({type:"subscribe",channel:r})},this.ws.onmessage=r=>{try{const c=JSON.parse(r.data);if(c.type==="event"&&c.channel){const d=this.listeners.get(c.channel);if(d)for(const y of d)y(c.data);const m=c.channel.indexOf(":");if(m>0){const y=c.channel.substring(0,m)+":*",p=this.listeners.get(y);if(p)for(const x of p)x(c.data)}}}catch{}},this.ws.onclose=()=>{this.scheduleReconnect()},this.ws.onerror=()=>{var r;(r=this.ws)==null||r.close()})}scheduleReconnect(){this.reconnectTimer||(this.reconnectTimer=setTimeout(()=>{this.reconnectTimer=null,this.connect()},2e3))}send(i){var r;((r=this.ws)==null?void 0:r.readyState)===WebSocket.OPEN&&this.ws.send(JSON.stringify(i))}subscribe(i,r){let c=this.listeners.get(i);return c||(c=new Set,this.listeners.set(i,c),this.send({type:"subscribe",channel:i})),c.add(r),this.connect(),()=>{c.delete(r),c.size===0&&(this.listeners.delete(i),this.send({type:"unsubscribe",channel:i}))}}disconnect(){var i;this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),(i=this.ws)==null||i.close(),this.ws=null}}const x1=new g1;function Jo(u,i){const r=j.useRef(i);r.current=i,j.useEffect(()=>{if(u)return x1.subscribe(u,c=>r.current(c))},[u])}function Nv(u){const[i,r]=j.useState({tokens:"",events:[],done:!1,error:null,result:null}),c=j.useCallback(d=>{const m=d;r(y=>{switch(m.type){case"token":return{...y,tokens:y.tokens+m.data,events:[...y.events,m]};case"done":return{...y,done:!0,result:m.result,events:[...y.events,m]};case"error":return{...y,done:!0,error:m.message,events:[...y.events,m]};default:return{...y,events:[...y.events,m]}}})},[]);return Jo(u?`execution:${u}`:null,c),i}function b1(){const[u,i]=j.useState([]),[r,c]=j.useState(""),[d,m]=j.useState(null),[y,p]=j.useState(null),[x,v]=j.useState(""),[T,g]=j.useState(!1),_=j.useRef(null),{data:w=[]}=kt({queryKey:["agents"],queryFn:a1}),Z=Nv(y);j.useEffect(()=>{Z.tokens&&T&&i(U=>{const Y=U[U.length-1];return(Y==null?void 0:Y.role)==="assistant"?[...U.slice(0,-1),{...Y,content:Z.tokens}]:[...U,{role:"assistant",content:Z.tokens}]}),Z.done&&(g(!1),p(null))},[Z.tokens,Z.done,T]),j.useEffect(()=>{const U=[],Y=[],q=[];for(const O of Z.events){if(O.type==="tool_call"&&U.push({name:O.name,args:O.args}),O.type==="tool_result"){const K=U.find(V=>V.name===O.name&&!V.result);K&&(K.result=O.result)}O.type==="handoff"&&Y.push({source:O.source,target:O.target,mode:O.mode??"oneway"}),O.type==="tool_approval"&&q.push({tool:O.name,approved:O.approved})}(U.length>0||Y.length>0||q.length>0)&&i(O=>{const K=O[O.length-1];return(K==null?void 0:K.role)==="assistant"?[...O.slice(0,-1),{...K,toolCalls:U.length>0?U:K.toolCalls,handoffs:Y.length>0?Y:K.handoffs,approvals:q.length>0?q:K.approvals}]:O})},[Z.events]),j.useEffect(()=>{var U;(U=_.current)==null||U.scrollIntoView({behavior:"smooth"})},[u]);const R=j.useCallback(async()=>{if(!r.trim()||T)return;const U=r.trim();c(""),i(Y=>[...Y,{role:"user",content:U}]),g(!0);try{const Y=await p1(U,d??void 0,x||void 0);m(Y.sessionId),p(Y.executionId)}catch(Y){g(!1),i(q=>[...q,{role:"assistant",content:`Error: ${Y instanceof Error?Y.message:String(Y)}`}])}},[r,T,d,x]),L=U=>{U.key==="Enter"&&!U.shiftKey&&(U.preventDefault(),R())};return o.jsx(ql,{title:"Agent Playground",description:"Chat with registered agents in real-time",actions:o.jsxs("div",{className:"flex items-center gap-2",children:[w.length>0&&o.jsxs("select",{value:x,onChange:U=>v(U.target.value),className:"px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[o.jsx("option",{value:"",children:"Default agent"}),w.map(U=>o.jsx("option",{value:U.name,children:U.name},U.name))]}),o.jsx("button",{onClick:()=>{i([]),m(null),p(null)},className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"New Chat"})]}),children:o.jsxs("div",{className:"flex flex-col h-full max-w-3xl mx-auto",children:[o.jsxs("div",{className:"flex-1 overflow-auto space-y-4 pb-4",children:[u.length===0&&o.jsx(Vt,{title:"Start a conversation",description:"Type a message below to chat with an agent. Tool calls, handoffs, and streaming responses will be displayed in real-time."}),u.map((U,Y)=>o.jsx("div",{className:`flex ${U.role==="user"?"justify-end":"justify-start"}`,children:o.jsxs("div",{className:`max-w-[80%] rounded-lg px-4 py-2.5 text-sm ${U.role==="user"?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))]"}`,children:[U.role==="assistant"&&T&&Y===u.length-1?o.jsx(Jb,{text:U.content}):o.jsx("div",{className:"whitespace-pre-wrap",children:U.content}),U.handoffs&&U.handoffs.length>0&&o.jsx("div",{className:"mt-2 space-y-1 border-t border-[hsl(var(--border))] pt-2",children:U.handoffs.map((q,O)=>o.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[o.jsx(zo,{size:12,className:"text-amber-500"}),o.jsx("span",{className:"font-medium",children:q.source}),o.jsx(zo,{size:10}),o.jsx("span",{className:"font-medium",children:q.target}),o.jsxs("span",{className:"text-[hsl(var(--muted-foreground))]",children:["(",q.mode,")"]})]},O))}),U.approvals&&U.approvals.length>0&&o.jsx("div",{className:"mt-2 space-y-1 border-t border-[hsl(var(--border))] pt-2",children:U.approvals.map((q,O)=>o.jsxs("div",{className:"flex items-center gap-1.5 text-xs",children:[o.jsx(Lb,{size:12,className:q.approved?"text-green-500":"text-red-500"}),o.jsxs("span",{children:["Tool ",o.jsx("span",{className:"font-mono",children:q.tool}),":"," ",q.approved?"approved":"denied"]})]},O))}),U.toolCalls&&U.toolCalls.length>0&&o.jsx("div",{className:"mt-2 space-y-2 border-t border-[hsl(var(--border))] pt-2",children:U.toolCalls.map((q,O)=>o.jsxs("details",{className:"text-xs",children:[o.jsxs("summary",{className:"cursor-pointer font-medium",children:["Tool: ",q.name]}),o.jsxs("div",{className:"mt-1 space-y-1",children:[o.jsx("div",{className:"text-[hsl(var(--muted-foreground))]",children:"Input:"}),o.jsx(Jt,{data:q.args,collapsed:!0}),q.result!==void 0&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:"text-[hsl(var(--muted-foreground))]",children:"Output:"}),o.jsx(Jt,{data:q.result,collapsed:!0})]})]})]},O))})]})},Y)),o.jsx("div",{ref:_})]}),o.jsx("div",{className:"border-t border-[hsl(var(--border))] pt-4",children:o.jsxs("div",{className:"flex items-end gap-2",children:[o.jsx("textarea",{value:r,onChange:U=>c(U.target.value),onKeyDown:L,placeholder:"Type a message...",rows:1,className:"flex-1 px-3 py-2.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] resize-none focus:outline-none focus:ring-2 focus:ring-[hsl(var(--ring))]"}),o.jsx("button",{onClick:R,disabled:!r.trim()||T,className:"p-2.5 rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50 transition-opacity",children:o.jsx(Bb,{size:16})})]})})]})})}function Tv({value:u,onChange:i,placeholder:r,className:c}){const[d,m]=j.useState(null),y=j.useCallback(p=>{const x=p.target.value;i(x);try{x.trim()&&JSON.parse(x),m(null)}catch(v){m(v instanceof Error?v.message:"Invalid JSON")}},[i]);return o.jsxs("div",{className:c,children:[o.jsx("textarea",{value:u,onChange:y,placeholder:r??"{}",className:"w-full h-32 p-3 text-xs font-mono rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] text-[hsl(var(--foreground))] resize-y focus:outline-none focus:ring-2 focus:ring-[hsl(var(--ring))]",spellCheck:!1}),d&&o.jsx("p",{className:"text-xs text-red-500 mt-1",children:d})]})}function Cv({schema:u,onSubmit:i,submitLabel:r="Submit",className:c}){const[d,m]=j.useState({}),y=u.properties??{},p=new Set(u.required??[]),x=j.useCallback(v=>{v.preventDefault();const T={};for(const[g,_]of Object.entries(y)){const w=d[g]??"";if(!(!w&&!p.has(g)))if(_.type==="number")T[g]=Number(w);else if(_.type==="boolean")T[g]=w==="true";else if(_.type==="object"||_.type==="array")try{T[g]=JSON.parse(w)}catch{T[g]=w}else T[g]=w}i(T)},[d,y,p,i]);return o.jsxs("form",{onSubmit:x,className:`space-y-3 ${c??""}`,children:[Object.entries(y).map(([v,T])=>o.jsxs("div",{children:[o.jsxs("label",{className:"block text-xs font-medium text-[hsl(var(--foreground))] mb-1",children:[v,p.has(v)&&o.jsx("span",{className:"text-red-500 ml-0.5",children:"*"}),T.description&&o.jsxs("span",{className:"text-[hsl(var(--muted-foreground))] font-normal ml-1",children:["- ",T.description]})]}),T.enum?o.jsxs("select",{value:d[v]??"",onChange:g=>m({...d,[v]:g.target.value}),className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[o.jsx("option",{value:"",children:"Select..."}),T.enum.map(g=>o.jsx("option",{value:g,children:g},g))]}):T.type==="boolean"?o.jsxs("select",{value:d[v]??"",onChange:g=>m({...d,[v]:g.target.value}),className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[o.jsx("option",{value:"",children:"Select..."}),o.jsx("option",{value:"true",children:"true"}),o.jsx("option",{value:"false",children:"false"})]}):o.jsx("input",{type:T.type==="number"?"number":"text",value:d[v]??"",onChange:g=>m({...d,[v]:g.target.value}),placeholder:T.type??"string",className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]"})]},v)),o.jsx("button",{type:"submit",className:"px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 transition-opacity",children:r})]})}function Ov({status:u,className:i}){return o.jsxs("span",{className:_o("inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full text-xs font-medium",Kb(u),u==="running"&&"animate-pulse",i),children:[o.jsx("span",{className:_o("w-1.5 h-1.5 rounded-full",u==="running"&&"bg-blue-500",u==="completed"&&"bg-green-500",u==="failed"&&"bg-red-500",u==="waiting"&&"bg-amber-500")}),u]})}function xa({cost:u,className:i}){return o.jsx("span",{className:`inline-flex items-center px-1.5 py-0.5 rounded text-xs font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] ${i??""}`,children:jv(u)})}function Do({ms:u,className:i}){return o.jsx("span",{className:`inline-flex items-center px-1.5 py-0.5 rounded text-xs font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] ${i??""}`,children:Zb(u)})}function S1(){const[u,i]=j.useState(""),[r,c]=j.useState("{}"),[d,m]=j.useState(!0),[y,p]=j.useState(null),[x,v]=j.useState(null),[T,g]=j.useState(null),[_,w]=j.useState("idle"),{data:Z=[]}=kt({queryKey:["workflows"],queryFn:$b}),{data:R}=kt({queryKey:["workflow",u],queryFn:()=>Wb(u),enabled:!!u}),L=Nv(y),U=j.useCallback(async V=>{if(u){v(null),g(null),w("running");try{const k=await Ib(u,V,!0);k.streaming&&k.executionId?p(k.executionId):(v(k.result),w("completed"))}catch(k){g(k instanceof Error?k.message:String(k)),w("failed")}}},[u]),Y=j.useCallback(()=>{try{const V=JSON.parse(r);U(V)}catch(V){g(V instanceof Error?V.message:String(V)),w("failed")}},[r,U]),q=j.useCallback(V=>{U(V)},[U]);j.useEffect(()=>{L.done&&_==="running"&&(w(L.error?"failed":"completed"),L.error&&g(L.error),L.result&&v(L.result),p(null))},[L.done,L.error,L.result,_]);const O=L.events.filter(V=>V.type==="step").map(V=>V.data),K=!!(R!=null&&R.inputSchema);return o.jsx(ql,{title:"Workflow Runner",description:"Execute and debug registered workflows",children:o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium mb-1",children:"Workflow"}),o.jsxs("select",{value:u,onChange:V=>{i(V.target.value),c("{}"),v(null),g(null),w("idle")},className:"w-full px-3 py-2 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[o.jsx("option",{value:"",children:"Select a workflow..."}),Z.map(V=>o.jsx("option",{value:V.name,children:V.name},V.name))]})]}),(R==null?void 0:R.outputSchema)!=null&&o.jsxs("details",{className:"text-xs",children:[o.jsx("summary",{className:"cursor-pointer text-[hsl(var(--muted-foreground))]",children:"Output Schema"}),o.jsx("div",{className:"mt-1",children:o.jsx(Jt,{data:R.outputSchema,collapsed:!0})})]}),K&&o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("label",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"Input mode:"}),o.jsx("button",{onClick:()=>m(!0),className:`px-2 py-0.5 text-xs rounded ${d?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"border border-[hsl(var(--input))]"}`,children:"Form"}),o.jsx("button",{onClick:()=>m(!1),className:`px-2 py-0.5 text-xs rounded ${d?"border border-[hsl(var(--input))]":"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]"}`,children:"JSON"})]}),K&&d?o.jsx(Cv,{schema:R.inputSchema,onSubmit:q,submitLabel:_==="running"?"Running...":"Execute"}):o.jsxs(o.Fragment,{children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium mb-1",children:"Input (JSON)"}),o.jsx(Tv,{value:r,onChange:c})]}),o.jsxs("button",{onClick:Y,disabled:!u||_==="running",className:"flex items-center gap-2 px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50",children:[o.jsx(xv,{size:14}),"Execute"]})]})]}),o.jsxs("div",{className:"space-y-4",children:[_!=="idle"&&o.jsxs("div",{className:"flex items-center gap-3",children:[o.jsx(Ov,{status:_}),L.events.length>0&&o.jsxs(o.Fragment,{children:[O.some(V=>V.cost)&&o.jsx(xa,{cost:O.reduce((V,k)=>V+(k.cost??0),0)}),O.some(V=>V.duration)&&o.jsx(Do,{ms:O.reduce((V,k)=>V+(k.duration??0),0)})]})]}),O.length>0&&o.jsxs("div",{children:[o.jsx("h3",{className:"text-sm font-medium mb-2",children:"Timeline"}),o.jsx("div",{className:"space-y-1.5",children:O.map((V,k)=>o.jsxs("div",{className:"flex items-center gap-2 px-3 py-1.5 text-xs rounded bg-[hsl(var(--secondary))]",children:[o.jsxs("span",{className:"font-mono text-[hsl(var(--muted-foreground))]",children:["#",V.step]}),o.jsx("span",{className:"font-medium",children:V.type}),V.agent&&o.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:V.agent}),V.tool&&o.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:V.tool}),o.jsx("span",{className:"flex-1"}),V.duration&&o.jsx(Do,{ms:V.duration}),V.cost&&o.jsx(xa,{cost:V.cost})]},k))})]}),x!==null&&o.jsxs("div",{children:[o.jsx("h3",{className:"text-sm font-medium mb-2",children:"Result"}),o.jsx(Jt,{data:x})]}),T&&o.jsx("div",{className:"p-3 rounded-md bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm",children:T}),_==="idle"&&o.jsx(Vt,{title:"No execution",description:"Select a workflow and click Execute to see results."})]})]})})}const E1={agent_call:"bg-blue-500",tool_call:"bg-purple-500",tool_call_complete:"bg-purple-400",workflow_start:"bg-green-500",workflow_complete:"bg-green-400",handoff:"bg-amber-500",await_human:"bg-red-500",vote_start:"bg-cyan-500",spawn:"bg-indigo-500"};function Ty(u){return E1[u]??"bg-slate-500"}function j1(u){const i=u.type;return i==="workflow_start"||i==="workflow_complete"?0:i==="agent_call"||i==="spawn"||i==="vote_start"?1:i==="tool_call"||i==="tool_call_complete"||i==="handoff"?2:1}function N1(){const[u,i]=j.useState(null),[r,c]=j.useState([]),[d,m]=j.useState(""),[y,p]=j.useState(""),{data:x=[],refetch:v}=kt({queryKey:["executions"],queryFn:Pb,refetchInterval:3e3});Jo("trace:*",j.useCallback(R=>{c(L=>[...L.slice(-200),R])},[]));const T=u?u.steps:r;let g=T;d&&(g=g.filter(R=>R.type===d)),y&&(g=g.filter(R=>R.agent===y));const _=[...new Set(T.map(R=>R.type))],w=[...new Set(T.map(R=>R.agent).filter(Boolean))],Z=Math.max(...g.map(R=>R.duration??0),1);return o.jsx(ql,{title:"Trace Explorer",description:"Inspect execution traces with waterfall visualization",actions:o.jsx("button",{onClick:()=>{v(),c([])},className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"Refresh"}),children:o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-4 gap-6",children:[o.jsxs("div",{className:"lg:col-span-1 space-y-2",children:[o.jsx("h3",{className:"text-sm font-medium mb-2",children:"Executions"}),o.jsxs("button",{onClick:()=>i(null),className:`w-full text-left px-3 py-2 text-xs rounded-md border ${u?"border-[hsl(var(--border))]":"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]"}`,children:["Live Events (",r.length,")"]}),x.map(R=>o.jsxs("button",{onClick:()=>i(R),className:`w-full text-left px-3 py-2 text-xs rounded-md border ${(u==null?void 0:u.executionId)===R.executionId?"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]":"border-[hsl(var(--border))] hover:bg-[hsl(var(--accent))]"}`,children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsx("span",{className:"font-medium truncate",children:R.workflow}),o.jsx(Ov,{status:R.status})]}),o.jsxs("div",{className:"flex items-center justify-between mt-0.5",children:[o.jsxs("span",{className:"text-[hsl(var(--muted-foreground))] truncate",children:[R.executionId.slice(0,8),"... | ",R.steps.length," steps"]}),R.totalCost>0&&o.jsx(xa,{cost:R.totalCost})]})]},R.executionId)),x.length===0&&o.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No executions yet"})]}),o.jsxs("div",{className:"lg:col-span-3",children:[o.jsxs("div",{className:"flex items-center gap-2 mb-4 flex-wrap",children:[o.jsxs("select",{value:d,onChange:R=>m(R.target.value),className:"px-2 py-1 text-xs rounded border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[o.jsx("option",{value:"",children:"All types"}),_.map(R=>o.jsx("option",{value:R,children:R},R))]}),w.length>0&&o.jsxs("select",{value:y,onChange:R=>p(R.target.value),className:"px-2 py-1 text-xs rounded border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[o.jsx("option",{value:"",children:"All agents"}),w.map(R=>o.jsx("option",{value:R,children:R},R))]}),o.jsxs("span",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:[g.length," events"]})]}),g.length===0?o.jsx(Vt,{icon:o.jsx(yv,{size:32}),title:"No trace events",description:"Execute a workflow to see trace events here."}):o.jsx("div",{className:"space-y-1",children:g.map((R,L)=>{const U=j1(R);return o.jsxs("details",{className:"group",children:[o.jsxs("summary",{className:"flex items-center gap-2 px-3 py-1.5 text-xs rounded bg-[hsl(var(--secondary))] cursor-pointer hover:bg-[hsl(var(--accent))]",style:{marginLeft:`${U*16}px`},children:[o.jsxs("span",{className:"font-mono text-[hsl(var(--muted-foreground))] w-8",children:["#",R.step]}),o.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${Ty(R.type)}`}),o.jsx("span",{className:"font-medium w-28 truncate",children:R.type}),R.agent&&o.jsx("span",{className:"text-blue-600 dark:text-blue-400 w-28 truncate",children:R.agent}),R.tool&&o.jsx("span",{className:"text-purple-600 dark:text-purple-400 w-28 truncate",children:R.tool}),o.jsx("div",{className:"flex-1 h-3 bg-[hsl(var(--background))] rounded overflow-hidden",children:R.duration&&o.jsx("div",{className:`h-full rounded ${Ty(R.type)}`,style:{width:`${Math.max(R.duration/Z*100,2)}%`,opacity:.7}})}),R.duration&&o.jsx(Do,{ms:R.duration}),R.cost&&o.jsx(xa,{cost:R.cost})]}),o.jsxs("div",{className:"mt-1 mb-2 p-3 rounded bg-[hsl(var(--card))] border border-[hsl(var(--border))]",style:{marginLeft:`${U*16+32}px`},children:[R.model&&o.jsxs("p",{className:"text-xs mb-1",children:[o.jsx("strong",{children:"Model:"})," ",R.model]}),R.promptVersion&&o.jsxs("p",{className:"text-xs mb-1",children:[o.jsx("strong",{children:"Version:"})," ",R.promptVersion]}),R.tokens&&o.jsxs("p",{className:"text-xs mb-1",children:[o.jsx("strong",{children:"Tokens:"})," in=",R.tokens.input," out=",R.tokens.output,R.tokens.reasoning?` reasoning=${R.tokens.reasoning}`:""]}),R.data!=null&&o.jsx(Jt,{data:R.data,collapsed:!0})]})]},L)})})]})]})})}function T1({tokens:u,label:i,className:r}){return o.jsxs("span",{className:`inline-flex items-center gap-1 px-1.5 py-0.5 rounded text-xs font-mono bg-[hsl(var(--secondary))] text-[hsl(var(--secondary-foreground))] ${r??""}`,children:[i&&o.jsx("span",{className:"text-[hsl(var(--muted-foreground))]",children:i}),Ds(u)]})}function C1(){const[u,i]=j.useState(null),{data:r,refetch:c}=kt({queryKey:["costs"],queryFn:f1});Jo("costs",j.useCallback(y=>{i(y)},[]));const d=u??r,m=async()=>{await d1(),i(null),c()};return d?o.jsxs(ql,{title:"Cost Dashboard",description:"Track spending across agents, models, and workflows",actions:o.jsx("button",{onClick:m,className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"Reset"}),children:[o.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-8",children:[o.jsx(As,{label:"Total Cost",value:jv(d.totalCost)}),o.jsx(As,{label:"Input Tokens",value:Ds(d.totalTokens.input)}),o.jsx(As,{label:"Output Tokens",value:Ds(d.totalTokens.output)}),o.jsx(As,{label:"Reasoning Tokens",value:Ds(d.totalTokens.reasoning)})]}),o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost by Agent"}),Object.keys(d.byAgent).length===0?o.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No agent data"}):o.jsxs("table",{className:"w-full text-xs",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("th",{className:"text-left py-2 font-medium",children:"Agent"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Calls"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Cost"})]})}),o.jsx("tbody",{children:Object.entries(d.byAgent).sort(([,y],[,p])=>p.cost-y.cost).map(([y,p])=>o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("td",{className:"py-2 font-mono",children:y}),o.jsx("td",{className:"py-2 text-right",children:p.calls}),o.jsx("td",{className:"py-2 text-right",children:o.jsx(xa,{cost:p.cost})})]},y))})]})]}),o.jsxs("div",{children:[o.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost by Model"}),Object.keys(d.byModel).length===0?o.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No model data"}):o.jsxs("table",{className:"w-full text-xs",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("th",{className:"text-left py-2 font-medium",children:"Model"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Calls"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Tokens"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Cost"})]})}),o.jsx("tbody",{children:Object.entries(d.byModel).sort(([,y],[,p])=>p.cost-y.cost).map(([y,p])=>o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("td",{className:"py-2 font-mono",children:y}),o.jsx("td",{className:"py-2 text-right",children:p.calls}),o.jsx("td",{className:"py-2 text-right",children:o.jsx(T1,{tokens:p.tokens.input+p.tokens.output})}),o.jsx("td",{className:"py-2 text-right",children:o.jsx(xa,{cost:p.cost})})]},y))})]})]}),o.jsxs("div",{className:"lg:col-span-2",children:[o.jsx("h3",{className:"text-sm font-medium mb-3",children:"Cost by Workflow"}),Object.keys(d.byWorkflow).length===0?o.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No workflow data"}):o.jsxs("table",{className:"w-full text-xs",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("th",{className:"text-left py-2 font-medium",children:"Workflow"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Executions"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Total Cost"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Avg Cost"})]})}),o.jsx("tbody",{children:Object.entries(d.byWorkflow).sort(([,y],[,p])=>p.cost-y.cost).map(([y,p])=>o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("td",{className:"py-2 font-mono",children:y}),o.jsx("td",{className:"py-2 text-right",children:p.executions}),o.jsx("td",{className:"py-2 text-right",children:o.jsx(xa,{cost:p.cost})}),o.jsx("td",{className:"py-2 text-right",children:o.jsx(xa,{cost:p.executions>0?p.cost/p.executions:0})})]},y))})]})]})]})]}):o.jsx(ql,{title:"Cost Dashboard",description:"Track spending across agents, models, and workflows",children:o.jsx(Vt,{icon:o.jsx(pv,{size:32}),title:"No cost data",description:"Execute workflows to see cost data."})})}function As({label:u,value:i}){return o.jsxs("div",{className:"p-4 rounded-lg border border-[hsl(var(--border))] bg-[hsl(var(--card))]",children:[o.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:u}),o.jsx("p",{className:"text-2xl font-semibold mt-1",children:i})]})}function O1(){const[u,i]=j.useState("session"),[r,c]=j.useState(""),[d,m]=j.useState("{}"),[y,p]=j.useState(!1),[x,v]=j.useState(""),[T,g]=j.useState(null),_=ui(),{data:w=[]}=kt({queryKey:["memory",u],queryFn:()=>s1(u)}),Z=Ro({mutationFn:({key:Y,value:q})=>r1(u,Y,q),onSuccess:()=>{_.invalidateQueries({queryKey:["memory",u]}),p(!1),c(""),m("{}")}}),R=Ro({mutationFn:Y=>c1(u,Y),onSuccess:()=>{_.invalidateQueries({queryKey:["memory",u]})}}),L=j.useCallback(async()=>{if(!x.trim())return;const Y=await o1(x,u);g(Y.results)},[x,u]),U=j.useCallback(()=>{if(r.trim())try{const Y=JSON.parse(d);Z.mutate({key:r,value:Y})}catch{Z.mutate({key:r,value:d})}},[r,d,Z]);return o.jsxs(ql,{title:"Memory Browser",description:"View and manage agent memory entries",actions:o.jsxs("button",{onClick:()=>p(!y),className:"flex items-center gap-1.5 px-3 py-1.5 text-sm rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90",children:[o.jsx(Ub,{size:14}),"Add Entry"]}),children:[o.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[["session","global"].map(Y=>o.jsx("button",{onClick:()=>{i(Y),g(null)},className:`px-3 py-1.5 text-sm rounded-md ${u===Y?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]"}`,children:Y.charAt(0).toUpperCase()+Y.slice(1)},Y)),o.jsx("div",{className:"flex-1"}),o.jsxs("div",{className:"flex items-center gap-1",children:[o.jsx("input",{value:x,onChange:Y=>v(Y.target.value),onKeyDown:Y=>Y.key==="Enter"&&L(),placeholder:"Semantic search...",className:"px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))] w-48"}),o.jsx("button",{onClick:L,className:"p-1.5 rounded-md hover:bg-[hsl(var(--accent))]",children:o.jsx(Hb,{size:14})})]})]}),y&&o.jsxs("div",{className:"mb-4 p-4 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))] space-y-3",children:[o.jsx("input",{value:r,onChange:Y=>c(Y.target.value),placeholder:"Key",className:"w-full px-2 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]"}),o.jsx(Tv,{value:d,onChange:m,placeholder:"Value (JSON)"}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("button",{onClick:U,disabled:!r.trim(),className:"px-3 py-1.5 text-sm rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50",children:"Save"}),o.jsx("button",{onClick:()=>p(!1),className:"px-3 py-1.5 text-sm rounded-md border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]",children:"Cancel"})]})]}),T&&o.jsxs("div",{className:"mb-4 p-4 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))]",children:[o.jsx("h3",{className:"text-sm font-medium mb-2",children:"Search Results"}),T.length===0?o.jsx("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:"No results found"}):o.jsx(Jt,{data:T})]}),w.length===0?o.jsx(Vt,{icon:o.jsx(vv,{size:32}),title:"No memory entries",description:`No entries in the ${u} scope. Use ctx.remember() in workflows or add entries manually.`}):o.jsx("div",{className:"space-y-2",children:w.map(Y=>o.jsxs("div",{className:"p-3 rounded-md border border-[hsl(var(--border))] bg-[hsl(var(--card))]",children:[o.jsxs("div",{className:"flex items-center justify-between mb-2",children:[o.jsx("span",{className:"text-sm font-mono font-medium",children:Y.key}),o.jsx("button",{onClick:()=>R.mutate(Y.key),className:"p-1 rounded hover:bg-[hsl(var(--destructive))] hover:text-[hsl(var(--destructive-foreground))] text-[hsl(var(--muted-foreground))]",children:o.jsx(bv,{size:14})})]}),o.jsx(Jt,{data:Y.value,collapsed:!0})]},Y.key))})]})}function R1(){const[u,i]=j.useState(null),[r,c]=j.useState(null),d=ui(),{data:m=[]}=kt({queryKey:["sessions"],queryFn:e1,refetchInterval:5e3}),{data:y}=kt({queryKey:["session",u],queryFn:()=>t1(u),enabled:!!u}),p=Ro({mutationFn:l1,onSuccess:()=>{d.invalidateQueries({queryKey:["sessions"]}),i(null)}}),x=y!=null&&y.history?r!==null?y.history.slice(0,r+1):y.history:[];return o.jsx(ql,{title:"Session Manager",description:"Browse active sessions, replay conversations, and view handoff chains",children:o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsxs("h3",{className:"text-sm font-medium mb-2",children:["Sessions (",m.length,")"]}),m.length===0?o.jsx(Vt,{icon:o.jsx(Sv,{size:24}),title:"No sessions",description:"Sessions are created when using runtime.session()"}):m.map(v=>o.jsxs("button",{onClick:()=>{i(v.id),c(null)},className:`w-full text-left px-3 py-2 text-xs rounded-md border ${u===v.id?"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]":"border-[hsl(var(--border))] hover:bg-[hsl(var(--accent))]"}`,children:[o.jsx("div",{className:"font-mono truncate",children:v.id}),o.jsxs("div",{className:"text-[hsl(var(--muted-foreground))] mt-0.5",children:[v.messageCount," messages"]})]},v.id))]}),o.jsx("div",{className:"lg:col-span-2",children:y?o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"flex items-center justify-between",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"text-sm font-medium font-mono",children:y.id}),o.jsxs("p",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:[y.history.length," messages"]})]}),o.jsxs("button",{onClick:()=>p.mutate(y.id),className:"flex items-center gap-1 px-2 py-1 text-xs rounded-md border border-red-300 text-red-600 hover:bg-red-50 dark:border-red-800 dark:text-red-400 dark:hover:bg-red-950",children:[o.jsx(bv,{size:12}),"Delete"]})]}),y.handoffHistory&&y.handoffHistory.length>0&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-xs font-medium mb-2",children:"Handoff Chain"}),o.jsx("div",{className:"flex items-center gap-1 flex-wrap",children:y.handoffHistory.map((v,T)=>o.jsxs("div",{className:"flex items-center gap-1",children:[o.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300",children:v.source}),o.jsx(zo,{size:12,className:"text-[hsl(var(--muted-foreground))]"}),o.jsx("span",{className:"px-2 py-0.5 text-xs rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300",children:v.target}),o.jsxs("span",{className:"text-xs text-[hsl(var(--muted-foreground))]",children:["(",v.mode,")"]}),T<y.handoffHistory.length-1&&o.jsx("span",{className:"mx-1 text-[hsl(var(--muted-foreground))]",children:"|"})]},T))})]}),y.history.length>1&&o.jsxs("div",{children:[o.jsxs("label",{className:"block text-xs font-medium mb-1",children:["Replay:"," ",r!==null?`${r+1} / ${y.history.length}`:"All"]}),o.jsx("input",{type:"range",min:0,max:y.history.length-1,value:r??y.history.length-1,onChange:v=>c(Number(v.target.value)),className:"w-full"})]}),o.jsx("div",{className:"space-y-3",children:x.map((v,T)=>o.jsxs("div",{className:`p-3 rounded-md text-sm ${v.role==="user"?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] ml-8":v.role==="assistant"?"bg-[hsl(var(--secondary))] mr-8":"bg-[hsl(var(--muted))] text-xs font-mono"}`,children:[o.jsx("div",{className:"text-xs font-medium mb-1 opacity-70",children:v.role}),o.jsx("div",{className:"whitespace-pre-wrap",children:v.content}),v.tool_calls&&v.tool_calls.length>0&&o.jsx("div",{className:"mt-2 space-y-1",children:v.tool_calls.map(g=>o.jsxs("details",{className:"text-xs",children:[o.jsx("summary",{className:"cursor-pointer font-mono",children:g.function.name}),o.jsx(Jt,{data:JSON.parse(g.function.arguments),collapsed:!0})]},g.id))})]},T))})]}):o.jsx(Vt,{title:"Select a session",description:"Click a session to view its history"})})]})})}function A1(){const[u,i]=j.useState(null),[r,c]=j.useState(null),[d,m]=j.useState(null),[y,p]=j.useState(!1),{data:x=[]}=kt({queryKey:["tools"],queryFn:n1}),{data:v}=kt({queryKey:["tool",u],queryFn:()=>u1(u),enabled:!!u}),T=j.useCallback(async g=>{if(u){c(null),m(null),p(!0);try{const _=await i1(u,g);c(_.result)}catch(_){m(_ instanceof Error?_.message:String(_))}finally{p(!1)}}},[u]);return o.jsx(ql,{title:"Tool Inspector",description:"View tool schemas and test tools directly",children:o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[o.jsxs("div",{className:"space-y-2",children:[o.jsxs("h3",{className:"text-sm font-medium mb-2",children:["Tools (",x.length,")"]}),x.length===0?o.jsx(Vt,{icon:o.jsx(Ev,{size:24}),title:"No tools",description:"Register tools with runtime.registerTool()"}):x.map(g=>o.jsxs("button",{onClick:()=>{i(g.name),c(null),m(null)},className:`w-full text-left px-3 py-2 text-xs rounded-md border ${u===g.name?"border-[hsl(var(--primary))] bg-[hsl(var(--accent))]":"border-[hsl(var(--border))] hover:bg-[hsl(var(--accent))]"}`,children:[o.jsx("div",{className:"font-medium",children:g.name}),o.jsx("div",{className:"text-[hsl(var(--muted-foreground))] mt-0.5 truncate",children:g.description}),o.jsxs("div",{className:"flex items-center gap-1.5 mt-1",children:[g.sensitive&&o.jsx("span",{className:"px-1 py-0.5 rounded bg-amber-100 dark:bg-amber-900 text-amber-700 dark:text-amber-300 text-[10px]",children:"sensitive"}),g.requireApproval&&o.jsx("span",{className:"px-1 py-0.5 rounded bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300 text-[10px]",children:"approval"})]})]},g.name))]}),o.jsx("div",{className:"lg:col-span-2",children:u?v?o.jsxs("div",{className:"space-y-6",children:[o.jsxs("div",{children:[o.jsx("h3",{className:"text-lg font-medium",children:v.name}),o.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:v.description})]}),o.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[v.sensitive&&o.jsx("span",{className:"px-2 py-1 text-xs rounded-md bg-amber-100 dark:bg-amber-900 text-amber-700 dark:text-amber-300",children:"Sensitive"}),v.requireApproval&&o.jsx("span",{className:"px-2 py-1 text-xs rounded-md bg-blue-100 dark:bg-blue-900 text-blue-700 dark:text-blue-300",children:"Requires Approval"}),v.retry.attempts&&v.retry.attempts>1&&o.jsxs("span",{className:"px-2 py-1 text-xs rounded-md bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300",children:["Retry: ",v.retry.attempts,"x ",v.retry.backoff]}),v.hasHooks&&v.hooks&&o.jsxs("span",{className:"px-2 py-1 text-xs rounded-md bg-purple-100 dark:bg-purple-900 text-purple-700 dark:text-purple-300",children:["Hooks:"," ",[v.hooks.hasBefore&&"before",v.hooks.hasAfter&&"after"].filter(Boolean).join(" + ")]})]}),o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-medium mb-2",children:"Input Schema"}),o.jsx(Jt,{data:v.inputSchema})]}),o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-medium mb-2",children:"Test Tool"}),o.jsx(Cv,{schema:v.inputSchema,onSubmit:T,submitLabel:y?"Running...":"Run Tool"})]}),r!==null&&o.jsxs("div",{children:[o.jsx("h4",{className:"text-sm font-medium mb-2",children:"Result"}),o.jsx(Jt,{data:r})]}),d&&o.jsx("div",{className:"p-3 rounded-md bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm",children:d})]}):o.jsx("div",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"Loading..."}):o.jsx(Vt,{title:"Select a tool",description:"Click a tool to view its schema and test it"})})]})})}function M1(){var q;const u=ui(),[i,r]=j.useState("run"),[c,d]=j.useState(""),[m,y]=j.useState(!1),[p,x]=j.useState(null),[v,T]=j.useState(null),[g,_]=j.useState(null),{data:w=[]}=kt({queryKey:["evals"],queryFn:h1}),{data:Z=[]}=kt({queryKey:["evalHistory"],queryFn:m1}),R=w.find(O=>O.name===c),L=j.useCallback(async()=>{if(c){y(!0),T(null),x(null);try{const O=await y1(c);x(O),u.invalidateQueries({queryKey:["evalHistory"]})}catch(O){T(O instanceof Error?O.message:String(O))}finally{y(!1)}}},[c,u]),U=j.useCallback(async()=>{if(!(Z.length<2))try{const O=Z[1].data,K=Z[0].data,V=await v1(O,K);_(V)}catch(O){T(O instanceof Error?O.message:String(O))}},[Z]),Y=(q=p==null?void 0:p.summary)!=null&&q.scorers?Object.entries(p.summary.scorers):[];return o.jsxs(ql,{title:"Eval Runner",description:"Run evaluations, view results, and compare runs",children:[o.jsx("div",{className:"flex items-center gap-1 mb-6",children:["run","history","compare"].map(O=>o.jsx("button",{onClick:()=>r(O),className:`px-3 py-1.5 text-sm rounded-md ${i===O?"bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))]":"border border-[hsl(var(--input))] hover:bg-[hsl(var(--accent))]"}`,children:O.charAt(0).toUpperCase()+O.slice(1)},O))}),i==="run"&&o.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{children:[o.jsx("label",{className:"block text-sm font-medium mb-1",children:"Eval"}),w.length===0?o.jsxs("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:["No evals registered. Define evals with"," ",o.jsx("code",{className:"text-xs bg-[hsl(var(--muted))] px-1 py-0.5 rounded",children:"defineEval()"})," ","and load them via the"," ",o.jsx("code",{className:"text-xs bg-[hsl(var(--muted))] px-1 py-0.5 rounded",children:"evals"})," ","middleware option or"," ",o.jsx("code",{className:"text-xs bg-[hsl(var(--muted))] px-1 py-0.5 rounded",children:"runtime.registerEval()"}),"."]}):o.jsxs("select",{value:c,onChange:O=>d(O.target.value),className:"w-full px-3 py-2 text-sm rounded-md border border-[hsl(var(--input))] bg-[hsl(var(--background))]",children:[o.jsx("option",{value:"",children:"Select an eval..."}),w.map(O=>o.jsx("option",{value:O.name,children:O.name},O.name))]})]}),R&&o.jsxs("div",{className:"space-y-2 text-xs",children:[o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("span",{className:"font-medium text-[hsl(var(--muted-foreground))]",children:"Workflow:"}),o.jsx("span",{className:"font-mono",children:R.workflow})]}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("span",{className:"font-medium text-[hsl(var(--muted-foreground))]",children:"Dataset:"}),o.jsx("span",{className:"font-mono",children:R.dataset})]}),o.jsxs("div",{className:"flex items-center gap-2",children:[o.jsx("span",{className:"font-medium text-[hsl(var(--muted-foreground))]",children:"Scorers:"}),o.jsx("div",{className:"flex flex-wrap gap-1",children:R.scorers.map(O=>o.jsx("span",{className:"px-1.5 py-0.5 rounded bg-[hsl(var(--muted))] font-mono",children:O},O))})]})]}),o.jsx("button",{onClick:L,disabled:!c||m,className:"px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90 disabled:opacity-50",children:m?"Running...":"Run Eval"})]}),o.jsxs("div",{children:[v&&o.jsx("div",{className:"p-3 rounded-md bg-red-50 dark:bg-red-950 border border-red-200 dark:border-red-800 text-red-700 dark:text-red-300 text-sm mb-4",children:v}),p?o.jsxs("div",{className:"space-y-4",children:[o.jsxs("div",{className:"flex items-center gap-4 text-xs text-[hsl(var(--muted-foreground))]",children:[o.jsxs("span",{children:[p.summary.count," items, ",p.summary.failures," failures"]}),p.duration>0&&o.jsxs("span",{children:[(p.duration/1e3).toFixed(1),"s"]}),p.totalCost>0&&o.jsxs("span",{children:["$",p.totalCost.toFixed(4)]})]}),Y.length>0&&o.jsxs("div",{children:[o.jsx("h3",{className:"text-sm font-medium mb-2",children:"Summary"}),o.jsxs("table",{className:"w-full text-xs",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("th",{className:"text-left py-2 font-medium",children:"Scorer"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Mean"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"P50"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"P95"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Min"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Max"})]})}),o.jsx("tbody",{children:Y.map(([O,K])=>{const V=p.items.some(k=>!k.error&&k.scores[O]!=null);return o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("td",{className:"py-2 font-mono",children:O}),V?o.jsxs(o.Fragment,{children:[o.jsx("td",{className:"py-2 text-right font-mono",children:K.mean.toFixed(3)}),o.jsx("td",{className:"py-2 text-right font-mono",children:K.p50.toFixed(3)}),o.jsx("td",{className:"py-2 text-right font-mono",children:K.p95.toFixed(3)}),o.jsx("td",{className:"py-2 text-right font-mono",children:K.min.toFixed(3)}),o.jsx("td",{className:"py-2 text-right font-mono",children:K.max.toFixed(3)})]}):o.jsx("td",{colSpan:5,className:"py-2 text-center text-[hsl(var(--muted-foreground))]",children:"No valid scores"})]},O)})})]})]}),p.items&&p.items.length>0&&o.jsxs("div",{children:[o.jsxs("h3",{className:"text-sm font-medium mb-2",children:["Items (",p.items.length,")"]}),o.jsx("div",{className:"space-y-2",children:p.items.map((O,K)=>o.jsxs("details",{className:"border border-[hsl(var(--border))] rounded-md",children:[o.jsxs("summary",{className:"flex items-center justify-between px-3 py-2 text-xs cursor-pointer hover:bg-[hsl(var(--accent))]",children:[o.jsxs("span",{className:"font-mono",children:["Item #",K+1,O.error&&o.jsx("span",{className:"ml-2 text-red-600 dark:text-red-400",children:"(error)"}),O.scorerErrors&&O.scorerErrors.length>0&&!O.error&&o.jsx("span",{className:"ml-2 text-amber-600 dark:text-amber-400",children:"(scorer errors)"})]}),o.jsx("div",{className:"flex items-center gap-2",children:Object.entries(O.scores).filter(([,V])=>V!=null).map(([V,k])=>o.jsxs("span",{className:`px-1.5 py-0.5 rounded font-mono ${k>=.8?"bg-green-100 dark:bg-green-900 text-green-700 dark:text-green-300":k>=.5?"bg-amber-100 dark:bg-amber-900 text-amber-700 dark:text-amber-300":"bg-red-100 dark:bg-red-900 text-red-700 dark:text-red-300"}`,children:[V,": ",k.toFixed(2)]},V))})]}),o.jsxs("div",{className:"px-3 py-2 border-t border-[hsl(var(--border))] space-y-2 text-xs",children:[o.jsxs("div",{children:[o.jsx("span",{className:"font-medium",children:"Input:"}),o.jsx(Jt,{data:O.input,collapsed:!0})]}),o.jsxs("div",{children:[o.jsx("span",{className:"font-medium",children:"Output:"}),o.jsx(Jt,{data:O.output,collapsed:!0})]}),O.error&&o.jsxs("div",{children:[o.jsx("span",{className:"font-medium text-red-600 dark:text-red-400",children:"Error:"}),o.jsx("span",{className:"ml-1",children:O.error})]}),O.scorerErrors&&O.scorerErrors.length>0&&o.jsxs("div",{children:[o.jsx("span",{className:"font-medium text-amber-600 dark:text-amber-400",children:"Scorer errors:"}),o.jsx("ul",{className:"ml-4 mt-1 list-disc",children:O.scorerErrors.map((V,k)=>o.jsx("li",{className:"text-amber-700 dark:text-amber-300",children:V},k))})]})]})]},K))})]})]}):o.jsx(Vt,{icon:o.jsx(gv,{size:32}),title:"No results",description:"Select an eval and run it to see results."})]})]}),i==="history"&&o.jsx("div",{children:Z.length===0?o.jsx(Vt,{title:"No eval history",description:"Run evaluations to build history."}):o.jsxs("table",{className:"w-full text-xs",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("th",{className:"text-left py-2 font-medium",children:"Eval"}),o.jsx("th",{className:"text-left py-2 font-medium",children:"Timestamp"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Items"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Failures"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Cost"})]})}),o.jsx("tbody",{children:Z.map(O=>{const K=O.data;return o.jsxs("tr",{className:"border-b border-[hsl(var(--border))] cursor-pointer hover:bg-[hsl(var(--accent))]",onClick:()=>{x(K),r("run")},children:[o.jsx("td",{className:"py-2 font-mono",children:O.eval}),o.jsx("td",{className:"py-2",children:new Date(O.timestamp).toLocaleString()}),o.jsx("td",{className:"py-2 text-right",children:K.summary.count}),o.jsx("td",{className:"py-2 text-right",children:K.summary.failures>0?o.jsx("span",{className:"text-red-600 dark:text-red-400",children:K.summary.failures}):0}),o.jsx("td",{className:"py-2 text-right font-mono",children:K.totalCost>0?`$${K.totalCost.toFixed(4)}`:"-"})]},O.id)})})]})}),i==="compare"&&o.jsx("div",{className:"space-y-4",children:Z.length<2?o.jsx(Vt,{title:"Need at least 2 eval runs",description:"Run evaluations to compare results."}):o.jsxs(o.Fragment,{children:[o.jsx("p",{className:"text-sm text-[hsl(var(--muted-foreground))]",children:"Comparing most recent run against previous run."}),o.jsx("button",{onClick:U,className:"px-4 py-2 text-sm font-medium rounded-md bg-[hsl(var(--primary))] text-[hsl(var(--primary-foreground))] hover:opacity-90",children:"Compare"}),g&&o.jsxs("div",{className:"space-y-4",children:[g.summary&&o.jsx("p",{className:"text-sm",children:g.summary}),g.scorers&&Object.keys(g.scorers).length>0&&o.jsxs("div",{children:[o.jsx("h3",{className:"text-sm font-medium mb-2",children:"Scorer Comparison"}),o.jsxs("table",{className:"w-full text-xs",children:[o.jsx("thead",{children:o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("th",{className:"text-left py-2 font-medium",children:"Scorer"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Baseline"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Candidate"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"Delta"}),o.jsx("th",{className:"text-right py-2 font-medium",children:"%"})]})}),o.jsx("tbody",{children:Object.entries(g.scorers).map(([O,K])=>o.jsxs("tr",{className:"border-b border-[hsl(var(--border))]",children:[o.jsx("td",{className:"py-2 font-mono",children:O}),o.jsx("td",{className:"py-2 text-right font-mono",children:K.baselineMean.toFixed(3)}),o.jsx("td",{className:"py-2 text-right font-mono",children:K.candidateMean.toFixed(3)}),o.jsxs("td",{className:`py-2 text-right font-mono ${K.delta>0?"text-green-600 dark:text-green-400":K.delta<0?"text-red-600 dark:text-red-400":""}`,children:[K.delta>0?"+":"",K.delta.toFixed(3)]}),o.jsxs("td",{className:`py-2 text-right font-mono ${K.deltaPercent>0?"text-green-600 dark:text-green-400":K.deltaPercent<0?"text-red-600 dark:text-red-400":""}`,children:[K.deltaPercent>0?"+":"",K.deltaPercent.toFixed(1),"%"]})]},O))})]})]}),g.regressions&&g.regressions.length>0&&o.jsxs("div",{children:[o.jsxs("h3",{className:"text-sm font-medium mb-2 text-red-600 dark:text-red-400",children:["Regressions (",g.regressions.length,")"]}),o.jsx("div",{className:"space-y-1",children:g.regressions.map((O,K)=>o.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5 text-xs border border-[hsl(var(--border))] rounded",children:[o.jsx("span",{className:"font-mono",children:O.scorer}),o.jsxs("span",{className:"font-mono text-red-600 dark:text-red-400",children:[O.baseline.toFixed(2)," → ",O.candidate.toFixed(2)," (",O.delta.toFixed(2),")"]})]},K))})]}),g.improvements&&g.improvements.length>0&&o.jsxs("div",{children:[o.jsxs("h3",{className:"text-sm font-medium mb-2 text-green-600 dark:text-green-400",children:["Improvements (",g.improvements.length,")"]}),o.jsx("div",{className:"space-y-1",children:g.improvements.map((O,K)=>o.jsxs("div",{className:"flex items-center justify-between px-3 py-1.5 text-xs border border-[hsl(var(--border))] rounded",children:[o.jsx("span",{className:"font-mono",children:O.scorer}),o.jsxs("span",{className:"font-mono text-green-600 dark:text-green-400",children:[O.baseline.toFixed(2)," → ",O.candidate.toFixed(2)," (+",O.delta.toFixed(2),")"]})]},K))})]})]})]})})]})}function z1(){return o.jsx(hb,{basename:window.__AXL_STUDIO_BASE__||"/",children:o.jsxs("div",{className:"flex h-screen overflow-hidden",children:[o.jsx(kb,{}),o.jsx("div",{className:"flex-1 overflow-hidden",children:o.jsxs(Xx,{children:[o.jsx(il,{path:"/playground",element:o.jsx(b1,{})}),o.jsx(il,{path:"/workflows",element:o.jsx(S1,{})}),o.jsx(il,{path:"/traces",element:o.jsx(N1,{})}),o.jsx(il,{path:"/costs",element:o.jsx(C1,{})}),o.jsx(il,{path:"/memory",element:o.jsx(O1,{})}),o.jsx(il,{path:"/sessions",element:o.jsx(R1,{})}),o.jsx(il,{path:"/tools",element:o.jsx(A1,{})}),o.jsx(il,{path:"/evals",element:o.jsx(M1,{})}),o.jsx(il,{path:"*",element:o.jsx(Yx,{to:"/playground",replace:!0})})]})})]})})}rg.createRoot(document.getElementById("root")).render(o.jsx(j.StrictMode,{children:o.jsx(Dg,{client:Kg,children:o.jsx(z1,{})})}));