// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

////////////////////////////////
// THIS FILE IS AUTOGENERATED //
//    DO NOT MANUALLY EDIT    //
////////////////////////////////

(function(){const u=document.createElement("link").relList;if(u&&u.supports&&u.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const f of o)if(f.type==="childList")for(const d of f.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function i(o){const f={};return o.integrity&&(f.integrity=o.integrity),o.referrerPolicy&&(f.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?f.credentials="include":o.crossOrigin==="anonymous"?f.credentials="omit":f.credentials="same-origin",f}function s(o){if(o.ep)return;o.ep=!0;const f=i(o);fetch(o.href,f)}})();function Vg(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var lo={exports:{}},Za={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ag;function Zv(){if(ag)return Za;ag=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.fragment");function i(s,o,f){var d=null;if(f!==void 0&&(d=""+f),o.key!==void 0&&(d=""+o.key),"key"in o){f={};for(var g in o)g!=="key"&&(f[g]=o[g])}else f=o;return o=f.ref,{$$typeof:n,type:s,key:d,ref:o!==void 0?o:null,props:f}}return Za.Fragment=u,Za.jsx=i,Za.jsxs=i,Za}var ig;function Jv(){return ig||(ig=1,lo.exports=Zv()),lo.exports}var w=Jv(),ao={exports:{}},ae={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var ug;function Pv(){if(ug)return ae;ug=1;var n=Symbol.for("react.transitional.element"),u=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),f=Symbol.for("react.consumer"),d=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),C=Symbol.for("react.activity"),R=Symbol.iterator;function S(T){return T===null||typeof T!="object"?null:(T=R&&T[R]||T["@@iterator"],typeof T=="function"?T:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,z={};function A(T,q,$){this.props=T,this.context=q,this.refs=z,this.updater=$||E}A.prototype.isReactComponent={},A.prototype.setState=function(T,q){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,q,"setState")},A.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function H(){}H.prototype=A.prototype;function G(T,q,$){this.props=T,this.context=q,this.refs=z,this.updater=$||E}var X=G.prototype=new H;X.constructor=G,_(X,A.prototype),X.isPureReactComponent=!0;var I=Array.isArray;function me(){}var K={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function le(T,q,$){var Z=$.ref;return{$$typeof:n,type:T,key:q,ref:Z!==void 0?Z:null,props:$}}function fe(T,q){return le(T.type,q,T.props)}function we(T){return typeof T=="object"&&T!==null&&T.$$typeof===n}function Qe(T){var q={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function($){return q[$]})}var Qn=/\/+/g;function Xt(T,q){return typeof T=="object"&&T!==null&&T.key!=null?Qe(""+T.key):q.toString(36)}function Ut(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(me,me):(T.status="pending",T.then(function(q){T.status==="pending"&&(T.status="fulfilled",T.value=q)},function(q){T.status==="pending"&&(T.status="rejected",T.reason=q)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function V(T,q,$,Z,ie){var re=typeof T;(re==="undefined"||re==="boolean")&&(T=null);var Se=!1;if(T===null)Se=!0;else switch(re){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(T.$$typeof){case n:case u:Se=!0;break;case v:return Se=T._init,V(Se(T._payload),q,$,Z,ie)}}if(Se)return ie=ie(T),Se=Z===""?"."+Xt(T,0):Z,I(ie)?($="",Se!=null&&($=Se.replace(Qn,"$&/")+"/"),V(ie,q,$,"",function(ta){return ta})):ie!=null&&(we(ie)&&(ie=fe(ie,$+(ie.key==null||T&&T.key===ie.key?"":(""+ie.key).replace(Qn,"$&/")+"/")+Se)),q.push(ie)),1;Se=0;var et=Z===""?".":Z+":";if(I(T))for(var je=0;je<T.length;je++)Z=T[je],re=et+Xt(Z,je),Se+=V(Z,q,$,re,ie);else if(je=S(T),typeof je=="function")for(T=je.call(T),je=0;!(Z=T.next()).done;)Z=Z.value,re=et+Xt(Z,je++),Se+=V(Z,q,$,re,ie);else if(re==="object"){if(typeof T.then=="function")return V(Ut(T),q,$,Z,ie);throw q=String(T),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return Se}function Q(T,q,$){if(T==null)return T;var Z=[],ie=0;return V(T,Z,"","",function(re){return q.call($,re,ie++)}),Z}function ne(T){if(T._status===-1){var q=T._result;q=q(),q.then(function($){(T._status===0||T._status===-1)&&(T._status=1,T._result=$)},function($){(T._status===0||T._status===-1)&&(T._status=2,T._result=$)}),T._status===-1&&(T._status=0,T._result=q)}if(T._status===1)return T._result.default;throw T._result}var be=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof T=="object"&&T!==null&&typeof T.message=="string"?String(T.message):String(T),error:T});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},Me={map:Q,forEach:function(T,q,$){Q(T,function(){q.apply(this,arguments)},$)},count:function(T){var q=0;return Q(T,function(){q++}),q},toArray:function(T){return Q(T,function(q){return q})||[]},only:function(T){if(!we(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return ae.Activity=C,ae.Children=Me,ae.Component=A,ae.Fragment=i,ae.Profiler=o,ae.PureComponent=G,ae.StrictMode=s,ae.Suspense=p,ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,ae.__COMPILER_RUNTIME={__proto__:null,c:function(T){return K.H.useMemoCache(T)}},ae.cache=function(T){return function(){return T.apply(null,arguments)}},ae.cacheSignal=function(){return null},ae.cloneElement=function(T,q,$){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var Z=_({},T.props),ie=T.key;if(q!=null)for(re in q.key!==void 0&&(ie=""+q.key),q)!P.call(q,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&q.ref===void 0||(Z[re]=q[re]);var re=arguments.length-2;if(re===1)Z.children=$;else if(1<re){for(var Se=Array(re),et=0;et<re;et++)Se[et]=arguments[et+2];Z.children=Se}return le(T.type,ie,Z)},ae.createContext=function(T){return T={$$typeof:d,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:f,_context:T},T},ae.createElement=function(T,q,$){var Z,ie={},re=null;if(q!=null)for(Z in q.key!==void 0&&(re=""+q.key),q)P.call(q,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(ie[Z]=q[Z]);var Se=arguments.length-2;if(Se===1)ie.children=$;else if(1<Se){for(var et=Array(Se),je=0;je<Se;je++)et[je]=arguments[je+2];ie.children=et}if(T&&T.defaultProps)for(Z in Se=T.defaultProps,Se)ie[Z]===void 0&&(ie[Z]=Se[Z]);return le(T,re,ie)},ae.createRef=function(){return{current:null}},ae.forwardRef=function(T){return{$$typeof:g,render:T}},ae.isValidElement=we,ae.lazy=function(T){return{$$typeof:v,_payload:{_status:-1,_result:T},_init:ne}},ae.memo=function(T,q){return{$$typeof:m,type:T,compare:q===void 0?null:q}},ae.startTransition=function(T){var q=K.T,$={};K.T=$;try{var Z=T(),ie=K.S;ie!==null&&ie($,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(me,be)}catch(re){be(re)}finally{q!==null&&$.types!==null&&(q.types=$.types),K.T=q}},ae.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},ae.use=function(T){return K.H.use(T)},ae.useActionState=function(T,q,$){return K.H.useActionState(T,q,$)},ae.useCallback=function(T,q){return K.H.useCallback(T,q)},ae.useContext=function(T){return K.H.useContext(T)},ae.useDebugValue=function(){},ae.useDeferredValue=function(T,q){return K.H.useDeferredValue(T,q)},ae.useEffect=function(T,q){return K.H.useEffect(T,q)},ae.useEffectEvent=function(T){return K.H.useEffectEvent(T)},ae.useId=function(){return K.H.useId()},ae.useImperativeHandle=function(T,q,$){return K.H.useImperativeHandle(T,q,$)},ae.useInsertionEffect=function(T,q){return K.H.useInsertionEffect(T,q)},ae.useLayoutEffect=function(T,q){return K.H.useLayoutEffect(T,q)},ae.useMemo=function(T,q){return K.H.useMemo(T,q)},ae.useOptimistic=function(T,q){return K.H.useOptimistic(T,q)},ae.useReducer=function(T,q,$){return K.H.useReducer(T,q,$)},ae.useRef=function(T){return K.H.useRef(T)},ae.useState=function(T){return K.H.useState(T)},ae.useSyncExternalStore=function(T,q,$){return K.H.useSyncExternalStore(T,q,$)},ae.useTransition=function(){return K.H.useTransition()},ae.version="19.2.0",ae}var sg;function Uo(){return sg||(sg=1,ao.exports=Pv()),ao.exports}var M=Uo();const kv=Vg(M);var io={exports:{}},Ja={},uo={exports:{}},so={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var rg;function Iv(){return rg||(rg=1,(function(n){function u(V,Q){var ne=V.length;V.push(Q);e:for(;0<ne;){var be=ne-1>>>1,Me=V[be];if(0<o(Me,Q))V[be]=Q,V[ne]=Me,ne=be;else break e}}function i(V){return V.length===0?null:V[0]}function s(V){if(V.length===0)return null;var Q=V[0],ne=V.pop();if(ne!==Q){V[0]=ne;e:for(var be=0,Me=V.length,T=Me>>>1;be<T;){var q=2*(be+1)-1,$=V[q],Z=q+1,ie=V[Z];if(0>o($,ne))Z<Me&&0>o(ie,$)?(V[be]=ie,V[Z]=ne,be=Z):(V[be]=$,V[q]=ne,be=q);else if(Z<Me&&0>o(ie,ne))V[be]=ie,V[Z]=ne,be=Z;else break e}}return Q}function o(V,Q){var ne=V.sortIndex-Q.sortIndex;return ne!==0?ne:V.id-Q.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var f=performance;n.unstable_now=function(){return f.now()}}else{var d=Date,g=d.now();n.unstable_now=function(){return d.now()-g}}var p=[],m=[],v=1,C=null,R=3,S=!1,E=!1,_=!1,z=!1,A=typeof setTimeout=="function"?setTimeout:null,H=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function X(V){for(var Q=i(m);Q!==null;){if(Q.callback===null)s(m);else if(Q.startTime<=V)s(m),Q.sortIndex=Q.expirationTime,u(p,Q);else break;Q=i(m)}}function I(V){if(_=!1,X(V),!E)if(i(p)!==null)E=!0,me||(me=!0,Qe());else{var Q=i(m);Q!==null&&Ut(I,Q.startTime-V)}}var me=!1,K=-1,P=5,le=-1;function fe(){return z?!0:!(n.unstable_now()-le<P)}function we(){if(z=!1,me){var V=n.unstable_now();le=V;var Q=!0;try{e:{E=!1,_&&(_=!1,H(K),K=-1),S=!0;var ne=R;try{t:{for(X(V),C=i(p);C!==null&&!(C.expirationTime>V&&fe());){var be=C.callback;if(typeof be=="function"){C.callback=null,R=C.priorityLevel;var Me=be(C.expirationTime<=V);if(V=n.unstable_now(),typeof Me=="function"){C.callback=Me,X(V),Q=!0;break t}C===i(p)&&s(p),X(V)}else s(p);C=i(p)}if(C!==null)Q=!0;else{var T=i(m);T!==null&&Ut(I,T.startTime-V),Q=!1}}break e}finally{C=null,R=ne,S=!1}Q=void 0}}finally{Q?Qe():me=!1}}}var Qe;if(typeof G=="function")Qe=function(){G(we)};else if(typeof MessageChannel<"u"){var Qn=new MessageChannel,Xt=Qn.port2;Qn.port1.onmessage=we,Qe=function(){Xt.postMessage(null)}}else Qe=function(){A(we,0)};function Ut(V,Q){K=A(function(){V(n.unstable_now())},Q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(V){V.callback=null},n.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<V?Math.floor(1e3/V):5},n.unstable_getCurrentPriorityLevel=function(){return R},n.unstable_next=function(V){switch(R){case 1:case 2:case 3:var Q=3;break;default:Q=R}var ne=R;R=Q;try{return V()}finally{R=ne}},n.unstable_requestPaint=function(){z=!0},n.unstable_runWithPriority=function(V,Q){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var ne=R;R=V;try{return Q()}finally{R=ne}},n.unstable_scheduleCallback=function(V,Q,ne){var be=n.unstable_now();switch(typeof ne=="object"&&ne!==null?(ne=ne.delay,ne=typeof ne=="number"&&0<ne?be+ne:be):ne=be,V){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,V={id:v++,callback:Q,priorityLevel:V,startTime:ne,expirationTime:Me,sortIndex:-1},ne>be?(V.sortIndex=ne,u(m,V),i(p)===null&&V===i(m)&&(_?(H(K),K=-1):_=!0,Ut(I,ne-be))):(V.sortIndex=Me,u(p,V),E||S||(E=!0,me||(me=!0,Qe()))),V},n.unstable_shouldYield=fe,n.unstable_wrapCallback=function(V){var Q=R;return function(){var ne=R;R=Q;try{return V.apply(this,arguments)}finally{R=ne}}}})(so)),so}var og;function Wv(){return og||(og=1,uo.exports=Iv()),uo.exports}var ro={exports:{}},Ie={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var cg;function ey(){if(cg)return Ie;cg=1;var n=Uo();function u(p){var m="https://react.dev/errors/"+p;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)m+="&args[]="+encodeURIComponent(arguments[v])}return"Minified React error #"+p+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(u(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for("react.portal");function f(p,m,v){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:C==null?null:""+C,children:p,containerInfo:m,implementation:v}}var d=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function g(p,m){if(p==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Ie.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ie.createPortal=function(p,m){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(u(299));return f(p,m,null,v)},Ie.flushSync=function(p){var m=d.T,v=s.p;try{if(d.T=null,s.p=2,p)return p()}finally{d.T=m,s.p=v,s.d.f()}},Ie.preconnect=function(p,m){typeof p=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(p,m))},Ie.prefetchDNS=function(p){typeof p=="string"&&s.d.D(p)},Ie.preinit=function(p,m){if(typeof p=="string"&&m&&typeof m.as=="string"){var v=m.as,C=g(v,m.crossOrigin),R=typeof m.integrity=="string"?m.integrity:void 0,S=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;v==="style"?s.d.S(p,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:C,integrity:R,fetchPriority:S}):v==="script"&&s.d.X(p,{crossOrigin:C,integrity:R,fetchPriority:S,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Ie.preinitModule=function(p,m){if(typeof p=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var v=g(m.as,m.crossOrigin);s.d.M(p,{crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(p)},Ie.preload=function(p,m){if(typeof p=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var v=m.as,C=g(v,m.crossOrigin);s.d.L(p,v,{crossOrigin:C,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Ie.preloadModule=function(p,m){if(typeof p=="string")if(m){var v=g(m.as,m.crossOrigin);s.d.m(p,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:v,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(p)},Ie.requestFormReset=function(p){s.d.r(p)},Ie.unstable_batchedUpdates=function(p,m){return p(m)},Ie.useFormState=function(p,m,v){return d.H.useFormState(p,m,v)},Ie.useFormStatus=function(){return d.H.useHostTransitionStatus()},Ie.version="19.2.0",Ie}var fg;function Bg(){if(fg)return ro.exports;fg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),ro.exports=ey(),ro.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var dg;function ty(){if(dg)return Ja;dg=1;var n=Wv(),u=Uo(),i=Bg();function s(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 o(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function f(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 d(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 g(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(f(e)!==e)throw Error(s(188))}function m(e){var t=e.alternate;if(!t){if(t=f(e),t===null)throw Error(s(188));return t!==e?null:e}for(var l=e,a=t;;){var r=l.return;if(r===null)break;var c=r.alternate;if(c===null){if(a=r.return,a!==null){l=a;continue}break}if(r.child===c.child){for(c=r.child;c;){if(c===l)return p(r),e;if(c===a)return p(r),t;c=c.sibling}throw Error(s(188))}if(l.return!==a.return)l=r,a=c;else{for(var h=!1,y=r.child;y;){if(y===l){h=!0,l=r,a=c;break}if(y===a){h=!0,a=r,l=c;break}y=y.sibling}if(!h){for(y=c.child;y;){if(y===l){h=!0,l=c,a=r;break}if(y===a){h=!0,a=c,l=r;break}y=y.sibling}if(!h)throw Error(s(189))}}if(l.alternate!==a)throw Error(s(190))}if(l.tag!==3)throw Error(s(188));return l.stateNode.current===l?e:t}function v(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=v(e),t!==null)return t;e=e.sibling}return null}var C=Object.assign,R=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),z=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),H=Symbol.for("react.consumer"),G=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),me=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),fe=Symbol.for("react.memo_cache_sentinel"),we=Symbol.iterator;function Qe(e){return e===null||typeof e!="object"?null:(e=we&&e[we]||e["@@iterator"],typeof e=="function"?e:null)}var Qn=Symbol.for("react.client.reference");function Xt(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Qn?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case _:return"Fragment";case A:return"Profiler";case z:return"StrictMode";case I:return"Suspense";case me:return"SuspenseList";case le:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case E:return"Portal";case G:return e.displayName||"Context";case H:return(e._context.displayName||"Context")+".Consumer";case X: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:Xt(e.type)||"Memo";case P:t=e._payload,e=e._init;try{return Xt(e(t))}catch{}}return null}var Ut=Array.isArray,V=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne={pending:!1,data:null,method:null,action:null},be=[],Me=-1;function T(e){return{current:e}}function q(e){0>Me||(e.current=be[Me],be[Me]=null,Me--)}function $(e,t){Me++,be[Me]=e.current,e.current=t}var Z=T(null),ie=T(null),re=T(null),Se=T(null);function et(e,t){switch($(re,t),$(ie,e),$(Z,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Th(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Th(t),e=wh(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}q(Z),$(Z,e)}function je(){q(Z),q(ie),q(re)}function ta(e){e.memoizedState!==null&&$(Se,e);var t=Z.current,l=wh(t,e.type);t!==l&&($(ie,e),$(Z,l))}function ri(e){ie.current===e&&(q(Z),q(ie)),Se.current===e&&(q(Se),$a._currentValue=ne)}var Bu,nc;function $n(e){if(Bu===void 0)try{throw Error()}catch(l){var t=l.stack.trim().match(/\n( *(at )?)/);Bu=t&&t[1]||"",nc=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Bu+e+nc}var Fu=!1;function qu(e,t){if(!e||Fu)return"";Fu=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(t){var F=function(){throw Error()};if(Object.defineProperty(F.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(F,[])}catch(j){var U=j}Reflect.construct(e,[],F)}else{try{F.call()}catch(j){U=j}e.call(F.prototype)}}else{try{throw Error()}catch(j){U=j}(F=e())&&typeof F.catch=="function"&&F.catch(function(){})}}catch(j){if(j&&U&&typeof j.stack=="string")return[j.stack,U.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),h=c[0],y=c[1];if(h&&y){var b=h.split(`
`),N=y.split(`
`);for(r=a=0;a<b.length&&!b[a].includes("DetermineComponentFrameRoot");)a++;for(;r<N.length&&!N[r].includes("DetermineComponentFrameRoot");)r++;if(a===b.length||r===N.length)for(a=b.length-1,r=N.length-1;1<=a&&0<=r&&b[a]!==N[r];)r--;for(;1<=a&&0<=r;a--,r--)if(b[a]!==N[r]){if(a!==1||r!==1)do if(a--,r--,0>r||b[a]!==N[r]){var L=`
`+b[a].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),L}while(1<=a&&0<=r);break}}}finally{Fu=!1,Error.prepareStackTrace=l}return(l=e?e.displayName||e.name:"")?$n(l):""}function _m(e,t){switch(e.tag){case 26:case 27:case 5:return $n(e.type);case 16:return $n("Lazy");case 13:return e.child!==t&&t!==null?$n("Suspense Fallback"):$n("Suspense");case 19:return $n("SuspenseList");case 0:case 15:return qu(e.type,!1);case 11:return qu(e.type.render,!1);case 1:return qu(e.type,!0);case 31:return $n("Activity");default:return""}}function lc(e){try{var t="",l=null;do t+=_m(e,l),l=e,e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}var Gu=Object.prototype.hasOwnProperty,Qu=n.unstable_scheduleCallback,$u=n.unstable_cancelCallback,Mm=n.unstable_shouldYield,Tm=n.unstable_requestPaint,ct=n.unstable_now,wm=n.unstable_getCurrentPriorityLevel,ac=n.unstable_ImmediatePriority,ic=n.unstable_UserBlockingPriority,oi=n.unstable_NormalPriority,Om=n.unstable_LowPriority,uc=n.unstable_IdlePriority,zm=n.log,Am=n.unstable_setDisableYieldValue,na=null,ft=null;function mn(e){if(typeof zm=="function"&&Am(e),ft&&typeof ft.setStrictMode=="function")try{ft.setStrictMode(na,e)}catch{}}var dt=Math.clz32?Math.clz32:Um,Dm=Math.log,Nm=Math.LN2;function Um(e){return e>>>=0,e===0?32:31-(Dm(e)/Nm|0)|0}var ci=256,fi=262144,di=4194304;function Yn(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 r=0,c=e.suspendedLanes,h=e.pingedLanes;e=e.warmLanes;var y=a&134217727;return y!==0?(a=y&~c,a!==0?r=Yn(a):(h&=y,h!==0?r=Yn(h):l||(l=y&~e,l!==0&&(r=Yn(l))))):(y=a&~c,y!==0?r=Yn(y):h!==0?r=Yn(h):l||(l=a&~e,l!==0&&(r=Yn(l)))),r===0?0:t!==0&&t!==r&&(t&c)===0&&(c=r&-r,l=t&-t,c>=l||c===32&&(l&4194048)!==0)?t:r}function la(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function jm(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 sc(){var e=di;return di<<=1,(di&62914560)===0&&(di=4194304),e}function Yu(e){for(var t=[],l=0;31>l;l++)t.push(e);return t}function aa(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Hm(e,t,l,a,r,c){var h=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 y=e.entanglements,b=e.expirationTimes,N=e.hiddenUpdates;for(l=h&~l;0<l;){var L=31-dt(l),F=1<<L;y[L]=0,b[L]=-1;var U=N[L];if(U!==null)for(N[L]=null,L=0;L<U.length;L++){var j=U[L];j!==null&&(j.lane&=-536870913)}l&=~F}a!==0&&rc(e,a,0),c!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=c&~(h&~t))}function rc(e,t,l){e.pendingLanes|=t,e.suspendedLanes&=~t;var a=31-dt(t);e.entangledLanes|=t,e.entanglements[a]=e.entanglements[a]|1073741824|l&261930}function oc(e,t){var l=e.entangledLanes|=t;for(e=e.entanglements;l;){var a=31-dt(l),r=1<<a;r&t|e[a]&t&&(e[a]|=t),l&=~r}}function cc(e,t){var l=t&-t;return l=(l&42)!==0?1:Xu(l),(l&(e.suspendedLanes|t))!==0?0:l}function Xu(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 Ku(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function fc(){var e=Q.p;return e!==0?e:(e=window.event,e===void 0?32:kh(e.type))}function dc(e,t){var l=Q.p;try{return Q.p=e,t()}finally{Q.p=l}}var pn=Math.random().toString(36).slice(2),Xe="__reactFiber$"+pn,nt="__reactProps$"+pn,gl="__reactContainer$"+pn,Zu="__reactEvents$"+pn,Lm="__reactListeners$"+pn,Vm="__reactHandles$"+pn,hc="__reactResources$"+pn,ia="__reactMarker$"+pn;function Ju(e){delete e[Xe],delete e[nt],delete e[Zu],delete e[Lm],delete e[Vm]}function ml(e){var t=e[Xe];if(t)return t;for(var l=e.parentNode;l;){if(t=l[gl]||l[Xe]){if(l=t.alternate,t.child!==null||l!==null&&l.child!==null)for(e=jh(e);e!==null;){if(l=e[Xe])return l;e=jh(e)}return t}e=l,l=e.parentNode}return null}function pl(e){if(e=e[Xe]||e[gl]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ua(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function vl(e){var t=e[hc];return t||(t=e[hc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function $e(e){e[ia]=!0}var gc=new Set,mc={};function Xn(e,t){yl(e,t),yl(e+"Capture",t)}function yl(e,t){for(mc[e]=t,e=0;e<t.length;e++)gc.add(t[e])}var Bm=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]*$"),pc={},vc={};function Fm(e){return Gu.call(vc,e)?!0:Gu.call(pc,e)?!1:Bm.test(e)?vc[e]=!0:(pc[e]=!0,!1)}function gi(e,t,l){if(Fm(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 mi(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 Kt(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 Et(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function yc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function qm(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 r=a.get,c=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(h){l=""+h,c.call(this,h)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(h){l=""+h},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pu(e){if(!e._valueTracker){var t=yc(e)?"checked":"value";e._valueTracker=qm(e,t,""+e[t])}}function Sc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var l=t.getValue(),a="";return e&&(a=yc(e)?e.checked?"true":"false":e.value),e=a,e!==l?(t.setValue(e),!0):!1}function pi(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 Gm=/[\n"\\]/g;function xt(e){return e.replace(Gm,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function ku(e,t,l,a,r,c,h,y){e.name="",h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?e.type=h:e.removeAttribute("type"),t!=null?h==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Et(t)):e.value!==""+Et(t)&&(e.value=""+Et(t)):h!=="submit"&&h!=="reset"||e.removeAttribute("value"),t!=null?Iu(e,h,Et(t)):l!=null?Iu(e,h,Et(l)):a!=null&&e.removeAttribute("value"),r==null&&c!=null&&(e.defaultChecked=!!c),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Et(y):e.removeAttribute("name")}function Cc(e,t,l,a,r,c,h,y){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(e.type=c),t!=null||l!=null){if(!(c!=="submit"&&c!=="reset"||t!=null)){Pu(e);return}l=l!=null?""+Et(l):"",t=t!=null?""+Et(t):l,y||t===e.value||(e.value=t),e.defaultValue=t}a=a??r,a=typeof a!="function"&&typeof a!="symbol"&&!!a,e.checked=y?e.checked:!!a,e.defaultChecked=!!a,h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(e.name=h),Pu(e)}function Iu(e,t,l){t==="number"&&pi(e.ownerDocument)===e||e.defaultValue===""+l||(e.defaultValue=""+l)}function Sl(e,t,l,a){if(e=e.options,t){t={};for(var r=0;r<l.length;r++)t["$"+l[r]]=!0;for(l=0;l<e.length;l++)r=t.hasOwnProperty("$"+e[l].value),e[l].selected!==r&&(e[l].selected=r),r&&a&&(e[l].defaultSelected=!0)}else{for(l=""+Et(l),t=null,r=0;r<e.length;r++){if(e[r].value===l){e[r].selected=!0,a&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function Rc(e,t,l){if(t!=null&&(t=""+Et(t),t!==e.value&&(e.value=t),l==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=l!=null?""+Et(l):""}function bc(e,t,l,a){if(t==null){if(a!=null){if(l!=null)throw Error(s(92));if(Ut(a)){if(1<a.length)throw Error(s(93));a=a[0]}l=a}l==null&&(l=""),t=l}l=Et(t),e.defaultValue=l,a=e.textContent,a===l&&a!==""&&a!==null&&(e.value=a),Pu(e)}function Cl(e,t){if(t){var l=e.firstChild;if(l&&l===e.lastChild&&l.nodeType===3){l.nodeValue=t;return}}e.textContent=t}var Qm=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 Ec(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||Qm.has(t)?t==="float"?e.cssFloat=l:e[t]=(""+l).trim():e[t]=l+"px"}function xc(e,t,l){if(t!=null&&typeof t!="object")throw Error(s(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 r in t)a=t[r],t.hasOwnProperty(r)&&l[r]!==a&&Ec(e,r,a)}else for(var c in t)t.hasOwnProperty(c)&&Ec(e,c,t[c])}function Wu(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 $m=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"]]),Ym=/^[\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 vi(e){return Ym.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Zt(){}var es=null;function ts(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Rl=null,bl=null;function _c(e){var t=pl(e);if(t&&(e=t.stateNode)){var l=e[nt]||null;e:switch(e=t.stateNode,t.type){case"input":if(ku(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="'+xt(""+t)+'"][type="radio"]'),t=0;t<l.length;t++){var a=l[t];if(a!==e&&a.form===e.form){var r=a[nt]||null;if(!r)throw Error(s(90));ku(a,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<l.length;t++)a=l[t],a.form===e.form&&Sc(a)}break e;case"textarea":Rc(e,l.value,l.defaultValue);break e;case"select":t=l.value,t!=null&&Sl(e,!!l.multiple,t,!1)}}}var ns=!1;function Mc(e,t,l){if(ns)return e(t,l);ns=!0;try{var a=e(t);return a}finally{if(ns=!1,(Rl!==null||bl!==null)&&(au(),Rl&&(t=Rl,e=bl,bl=Rl=null,_c(t),e)))for(t=0;t<e.length;t++)_c(e[t])}}function sa(e,t){var l=e.stateNode;if(l===null)return null;var a=l[nt]||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(s(231,t,typeof l));return l}var Jt=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ls=!1;if(Jt)try{var ra={};Object.defineProperty(ra,"passive",{get:function(){ls=!0}}),window.addEventListener("test",ra,ra),window.removeEventListener("test",ra,ra)}catch{ls=!1}var vn=null,as=null,yi=null;function Tc(){if(yi)return yi;var e,t=as,l=t.length,a,r="value"in vn?vn.value:vn.textContent,c=r.length;for(e=0;e<l&&t[e]===r[e];e++);var h=l-e;for(a=1;a<=h&&t[l-a]===r[c-a];a++);return yi=r.slice(e,1<a?1-a:void 0)}function Si(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 Ci(){return!0}function wc(){return!1}function lt(e){function t(l,a,r,c,h){this._reactName=l,this._targetInst=r,this.type=a,this.nativeEvent=c,this.target=h,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(l=e[y],this[y]=l?l(c):c[y]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Ci:wc,this.isPropagationStopped=wc,this}return C(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=Ci)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=Ci)},persist:function(){},isPersistent:Ci}),t}var Kn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ri=lt(Kn),oa=C({},Kn,{view:0,detail:0}),Xm=lt(oa),is,us,ca,bi=C({},oa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rs,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!==ca&&(ca&&e.type==="mousemove"?(is=e.screenX-ca.screenX,us=e.screenY-ca.screenY):us=is=0,ca=e),is)},movementY:function(e){return"movementY"in e?e.movementY:us}}),Oc=lt(bi),Km=C({},bi,{dataTransfer:0}),Zm=lt(Km),Jm=C({},oa,{relatedTarget:0}),ss=lt(Jm),Pm=C({},Kn,{animationName:0,elapsedTime:0,pseudoElement:0}),km=lt(Pm),Im=C({},Kn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Wm=lt(Im),ep=C({},Kn,{data:0}),zc=lt(ep),tp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},np={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"},lp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ap(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=lp[e])?!!t[e]:!1}function rs(){return ap}var ip=C({},oa,{key:function(e){if(e.key){var t=tp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Si(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?np[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rs,charCode:function(e){return e.type==="keypress"?Si(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Si(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),up=lt(ip),sp=C({},bi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ac=lt(sp),rp=C({},oa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rs}),op=lt(rp),cp=C({},Kn,{propertyName:0,elapsedTime:0,pseudoElement:0}),fp=lt(cp),dp=C({},bi,{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}),hp=lt(dp),gp=C({},Kn,{newState:0,oldState:0}),mp=lt(gp),pp=[9,13,27,32],os=Jt&&"CompositionEvent"in window,fa=null;Jt&&"documentMode"in document&&(fa=document.documentMode);var vp=Jt&&"TextEvent"in window&&!fa,Dc=Jt&&(!os||fa&&8<fa&&11>=fa),Nc=" ",Uc=!1;function jc(e,t){switch(e){case"keyup":return pp.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Hc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var El=!1;function yp(e,t){switch(e){case"compositionend":return Hc(t);case"keypress":return t.which!==32?null:(Uc=!0,Nc);case"textInput":return e=t.data,e===Nc&&Uc?null:e;default:return null}}function Sp(e,t){if(El)return e==="compositionend"||!os&&jc(e,t)?(e=Tc(),yi=as=vn=null,El=!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 Dc&&t.locale!=="ko"?null:t.data;default:return null}}var Cp={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 Lc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Cp[e.type]:t==="textarea"}function Vc(e,t,l,a){Rl?bl?bl.push(a):bl=[a]:Rl=a,t=fu(t,"onChange"),0<t.length&&(l=new Ri("onChange","change",null,l,a),e.push({event:l,listeners:t}))}var da=null,ha=null;function Rp(e){Rh(e,0)}function Ei(e){var t=ua(e);if(Sc(t))return e}function Bc(e,t){if(e==="change")return t}var Fc=!1;if(Jt){var cs;if(Jt){var fs="oninput"in document;if(!fs){var qc=document.createElement("div");qc.setAttribute("oninput","return;"),fs=typeof qc.oninput=="function"}cs=fs}else cs=!1;Fc=cs&&(!document.documentMode||9<document.documentMode)}function Gc(){da&&(da.detachEvent("onpropertychange",Qc),ha=da=null)}function Qc(e){if(e.propertyName==="value"&&Ei(ha)){var t=[];Vc(t,ha,e,ts(e)),Mc(Rp,t)}}function bp(e,t,l){e==="focusin"?(Gc(),da=t,ha=l,da.attachEvent("onpropertychange",Qc)):e==="focusout"&&Gc()}function Ep(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ei(ha)}function xp(e,t){if(e==="click")return Ei(t)}function _p(e,t){if(e==="input"||e==="change")return Ei(t)}function Mp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var ht=typeof Object.is=="function"?Object.is:Mp;function ga(e,t){if(ht(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 r=l[a];if(!Gu.call(t,r)||!ht(e[r],t[r]))return!1}return!0}function $c(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yc(e,t){var l=$c(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=$c(l)}}function Xc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Kc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=pi(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=pi(e.document)}return t}function ds(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 Tp=Jt&&"documentMode"in document&&11>=document.documentMode,xl=null,hs=null,ma=null,gs=!1;function Zc(e,t,l){var a=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;gs||xl==null||xl!==pi(a)||(a=xl,"selectionStart"in a&&ds(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}),ma&&ga(ma,a)||(ma=a,a=fu(hs,"onSelect"),0<a.length&&(t=new Ri("onSelect","select",null,t,l),e.push({event:t,listeners:a}),t.target=xl)))}function Zn(e,t){var l={};return l[e.toLowerCase()]=t.toLowerCase(),l["Webkit"+e]="webkit"+t,l["Moz"+e]="moz"+t,l}var _l={animationend:Zn("Animation","AnimationEnd"),animationiteration:Zn("Animation","AnimationIteration"),animationstart:Zn("Animation","AnimationStart"),transitionrun:Zn("Transition","TransitionRun"),transitionstart:Zn("Transition","TransitionStart"),transitioncancel:Zn("Transition","TransitionCancel"),transitionend:Zn("Transition","TransitionEnd")},ms={},Jc={};Jt&&(Jc=document.createElement("div").style,"AnimationEvent"in window||(delete _l.animationend.animation,delete _l.animationiteration.animation,delete _l.animationstart.animation),"TransitionEvent"in window||delete _l.transitionend.transition);function Jn(e){if(ms[e])return ms[e];if(!_l[e])return e;var t=_l[e],l;for(l in t)if(t.hasOwnProperty(l)&&l in Jc)return ms[e]=t[l];return e}var Pc=Jn("animationend"),kc=Jn("animationiteration"),Ic=Jn("animationstart"),wp=Jn("transitionrun"),Op=Jn("transitionstart"),zp=Jn("transitioncancel"),Wc=Jn("transitionend"),ef=new Map,ps="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(" ");ps.push("scrollEnd");function jt(e,t){ef.set(e,t),Xn(t,[e])}var xi=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)},_t=[],Ml=0,vs=0;function _i(){for(var e=Ml,t=vs=Ml=0;t<e;){var l=_t[t];_t[t++]=null;var a=_t[t];_t[t++]=null;var r=_t[t];_t[t++]=null;var c=_t[t];if(_t[t++]=null,a!==null&&r!==null){var h=a.pending;h===null?r.next=r:(r.next=h.next,h.next=r),a.pending=r}c!==0&&tf(l,r,c)}}function Mi(e,t,l,a){_t[Ml++]=e,_t[Ml++]=t,_t[Ml++]=l,_t[Ml++]=a,vs|=a,e.lanes|=a,e=e.alternate,e!==null&&(e.lanes|=a)}function ys(e,t,l,a){return Mi(e,t,l,a),Ti(e)}function Pn(e,t){return Mi(e,null,null,t),Ti(e)}function tf(e,t,l){e.lanes|=l;var a=e.alternate;a!==null&&(a.lanes|=l);for(var r=!1,c=e.return;c!==null;)c.childLanes|=l,a=c.alternate,a!==null&&(a.childLanes|=l),c.tag===22&&(e=c.stateNode,e===null||e._visibility&1||(r=!0)),e=c,c=c.return;return e.tag===3?(c=e.stateNode,r&&t!==null&&(r=31-dt(l),e=c.hiddenUpdates,a=e[r],a===null?e[r]=[t]:a.push(t),t.lane=l|536870912),c):null}function Ti(e){if(50<La)throw La=0,Tr=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Tl={};function Ap(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 gt(e,t,l,a){return new Ap(e,t,l,a)}function Ss(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Pt(e,t){var l=e.alternate;return l===null?(l=gt(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 nf(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 wi(e,t,l,a,r,c){var h=0;if(a=e,typeof e=="function")Ss(e)&&(h=1);else if(typeof e=="string")h=Hv(e,l,Z.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case le:return e=gt(31,l,t,r),e.elementType=le,e.lanes=c,e;case _:return kn(l.children,r,c,t);case z:h=8,r|=24;break;case A:return e=gt(12,l,t,r|2),e.elementType=A,e.lanes=c,e;case I:return e=gt(13,l,t,r),e.elementType=I,e.lanes=c,e;case me:return e=gt(19,l,t,r),e.elementType=me,e.lanes=c,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case G:h=10;break e;case H:h=9;break e;case X:h=11;break e;case K:h=14;break e;case P:h=16,a=null;break e}h=29,l=Error(s(130,e===null?"null":typeof e,"")),a=null}return t=gt(h,l,t,r),t.elementType=e,t.type=a,t.lanes=c,t}function kn(e,t,l,a){return e=gt(7,e,a,t),e.lanes=l,e}function Cs(e,t,l){return e=gt(6,e,null,t),e.lanes=l,e}function lf(e){var t=gt(18,null,null,0);return t.stateNode=e,t}function Rs(e,t,l){return t=gt(4,e.children!==null?e.children:[],e.key,t),t.lanes=l,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var af=new WeakMap;function Mt(e,t){if(typeof e=="object"&&e!==null){var l=af.get(e);return l!==void 0?l:(t={value:e,source:t,stack:lc(t)},af.set(e,t),t)}return{value:e,source:t,stack:lc(t)}}var wl=[],Ol=0,Oi=null,pa=0,Tt=[],wt=0,yn=null,Gt=1,Qt="";function kt(e,t){wl[Ol++]=pa,wl[Ol++]=Oi,Oi=e,pa=t}function uf(e,t,l){Tt[wt++]=Gt,Tt[wt++]=Qt,Tt[wt++]=yn,yn=e;var a=Gt;e=Qt;var r=32-dt(a)-1;a&=~(1<<r),l+=1;var c=32-dt(t)+r;if(30<c){var h=r-r%5;c=(a&(1<<h)-1).toString(32),a>>=h,r-=h,Gt=1<<32-dt(t)+r|l<<r|a,Qt=c+e}else Gt=1<<c|l<<r|a,Qt=e}function bs(e){e.return!==null&&(kt(e,1),uf(e,1,0))}function Es(e){for(;e===Oi;)Oi=wl[--Ol],wl[Ol]=null,pa=wl[--Ol],wl[Ol]=null;for(;e===yn;)yn=Tt[--wt],Tt[wt]=null,Qt=Tt[--wt],Tt[wt]=null,Gt=Tt[--wt],Tt[wt]=null}function sf(e,t){Tt[wt++]=Gt,Tt[wt++]=Qt,Tt[wt++]=yn,Gt=t.id,Qt=t.overflow,yn=e}var Ke=null,Oe=null,ge=!1,Sn=null,Ot=!1,xs=Error(s(519));function Cn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw va(Mt(t,e)),xs}function rf(e){var t=e.stateNode,l=e.type,a=e.memoizedProps;switch(t[Xe]=e,t[nt]=a,l){case"dialog":ce("cancel",t),ce("close",t);break;case"iframe":case"object":case"embed":ce("load",t);break;case"video":case"audio":for(l=0;l<Ba.length;l++)ce(Ba[l],t);break;case"source":ce("error",t);break;case"img":case"image":case"link":ce("error",t),ce("load",t);break;case"details":ce("toggle",t);break;case"input":ce("invalid",t),Cc(t,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ce("invalid",t);break;case"textarea":ce("invalid",t),bc(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||_h(t.textContent,l)?(a.popover!=null&&(ce("beforetoggle",t),ce("toggle",t)),a.onScroll!=null&&ce("scroll",t),a.onScrollEnd!=null&&ce("scrollend",t),a.onClick!=null&&(t.onclick=Zt),t=!0):t=!1,t||Cn(e,!0)}function of(e){for(Ke=e.return;Ke;)switch(Ke.tag){case 5:case 31:case 13:Ot=!1;return;case 27:case 3:Ot=!0;return;default:Ke=Ke.return}}function zl(e){if(e!==Ke)return!1;if(!ge)return of(e),ge=!0,!1;var t=e.tag,l;if((l=t!==3&&t!==27)&&((l=t===5)&&(l=e.type,l=!(l!=="form"&&l!=="button")||Gr(e.type,e.memoizedProps)),l=!l),l&&Oe&&Cn(e),of(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Oe=Uh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));Oe=Uh(e)}else t===27?(t=Oe,Un(e.type)?(e=Kr,Kr=null,Oe=e):Oe=t):Oe=Ke?At(e.stateNode.nextSibling):null;return!0}function In(){Oe=Ke=null,ge=!1}function _s(){var e=Sn;return e!==null&&(st===null?st=e:st.push.apply(st,e),Sn=null),e}function va(e){Sn===null?Sn=[e]:Sn.push(e)}var Ms=T(null),Wn=null,It=null;function Rn(e,t,l){$(Ms,t._currentValue),t._currentValue=l}function Wt(e){e._currentValue=Ms.current,q(Ms)}function Ts(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 ws(e,t,l,a){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var c=r.dependencies;if(c!==null){var h=r.child;c=c.firstContext;e:for(;c!==null;){var y=c;c=r;for(var b=0;b<t.length;b++)if(y.context===t[b]){c.lanes|=l,y=c.alternate,y!==null&&(y.lanes|=l),Ts(c.return,l,e),a||(h=null);break e}c=y.next}}else if(r.tag===18){if(h=r.return,h===null)throw Error(s(341));h.lanes|=l,c=h.alternate,c!==null&&(c.lanes|=l),Ts(h,l,e),h=null}else h=r.child;if(h!==null)h.return=r;else for(h=r;h!==null;){if(h===e){h=null;break}if(r=h.sibling,r!==null){r.return=h.return,h=r;break}h=h.return}r=h}}function Al(e,t,l,a){e=null;for(var r=t,c=!1;r!==null;){if(!c){if((r.flags&524288)!==0)c=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var h=r.alternate;if(h===null)throw Error(s(387));if(h=h.memoizedProps,h!==null){var y=r.type;ht(r.pendingProps.value,h.value)||(e!==null?e.push(y):e=[y])}}else if(r===Se.current){if(h=r.alternate,h===null)throw Error(s(387));h.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push($a):e=[$a])}r=r.return}e!==null&&ws(t,e,l,a),t.flags|=262144}function zi(e){for(e=e.firstContext;e!==null;){if(!ht(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function el(e){Wn=e,It=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ze(e){return cf(Wn,e)}function Ai(e,t){return Wn===null&&el(e),cf(e,t)}function cf(e,t){var l=t._currentValue;if(t={context:t,memoizedValue:l,next:null},It===null){if(e===null)throw Error(s(308));It=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else It=It.next=t;return l}var Dp=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()})}},Np=n.unstable_scheduleCallback,Up=n.unstable_NormalPriority,Ve={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Os(){return{controller:new Dp,data:new Map,refCount:0}}function ya(e){e.refCount--,e.refCount===0&&Np(Up,function(){e.controller.abort()})}var Sa=null,zs=0,Dl=0,Nl=null;function jp(e,t){if(Sa===null){var l=Sa=[];zs=0,Dl=Nr(),Nl={status:"pending",value:void 0,then:function(a){l.push(a)}}}return zs++,t.then(ff,ff),t}function ff(){if(--zs===0&&Sa!==null){Nl!==null&&(Nl.status="fulfilled");var e=Sa;Sa=null,Dl=0,Nl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Hp(e,t){var l=[],a={status:"pending",value:null,reason:null,then:function(r){l.push(r)}};return e.then(function(){a.status="fulfilled",a.value=t;for(var r=0;r<l.length;r++)(0,l[r])(t)},function(r){for(a.status="rejected",a.reason=r,r=0;r<l.length;r++)(0,l[r])(void 0)}),a}var df=V.S;V.S=function(e,t){Jd=ct(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&jp(e,t),df!==null&&df(e,t)};var tl=T(null);function As(){var e=tl.current;return e!==null?e:Te.pooledCache}function Di(e,t){t===null?$(tl,tl.current):$(tl,t.pool)}function hf(){var e=As();return e===null?null:{parent:Ve._currentValue,pool:e}}var Ul=Error(s(460)),Ds=Error(s(474)),Ni=Error(s(542)),Ui={then:function(){}};function gf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function mf(e,t,l){switch(l=e[l],l===void 0?e.push(t):l!==t&&(t.then(Zt,Zt),t=l),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,vf(e),e;default:if(typeof t.status=="string")t.then(Zt,Zt);else{if(e=Te,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(a){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=a}},function(a){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=a}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,vf(e),e}throw ll=t,Ul}}function nl(e){try{var t=e._init;return t(e._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(ll=l,Ul):l}}var ll=null;function pf(){if(ll===null)throw Error(s(459));var e=ll;return ll=null,e}function vf(e){if(e===Ul||e===Ni)throw Error(s(483))}var jl=null,Ca=0;function ji(e){var t=Ca;return Ca+=1,jl===null&&(jl=[]),mf(jl,e,t)}function Ra(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Hi(e,t){throw t.$$typeof===R?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function yf(e){function t(O,x){if(e){var D=O.deletions;D===null?(O.deletions=[x],O.flags|=16):D.push(x)}}function l(O,x){if(!e)return null;for(;x!==null;)t(O,x),x=x.sibling;return null}function a(O){for(var x=new Map;O!==null;)O.key!==null?x.set(O.key,O):x.set(O.index,O),O=O.sibling;return x}function r(O,x){return O=Pt(O,x),O.index=0,O.sibling=null,O}function c(O,x,D){return O.index=D,e?(D=O.alternate,D!==null?(D=D.index,D<x?(O.flags|=67108866,x):D):(O.flags|=67108866,x)):(O.flags|=1048576,x)}function h(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function y(O,x,D,B){return x===null||x.tag!==6?(x=Cs(D,O.mode,B),x.return=O,x):(x=r(x,D),x.return=O,x)}function b(O,x,D,B){var k=D.type;return k===_?L(O,x,D.props.children,B,D.key):x!==null&&(x.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===P&&nl(k)===x.type)?(x=r(x,D.props),Ra(x,D),x.return=O,x):(x=wi(D.type,D.key,D.props,null,O.mode,B),Ra(x,D),x.return=O,x)}function N(O,x,D,B){return x===null||x.tag!==4||x.stateNode.containerInfo!==D.containerInfo||x.stateNode.implementation!==D.implementation?(x=Rs(D,O.mode,B),x.return=O,x):(x=r(x,D.children||[]),x.return=O,x)}function L(O,x,D,B,k){return x===null||x.tag!==7?(x=kn(D,O.mode,B,k),x.return=O,x):(x=r(x,D),x.return=O,x)}function F(O,x,D){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=Cs(""+x,O.mode,D),x.return=O,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case S:return D=wi(x.type,x.key,x.props,null,O.mode,D),Ra(D,x),D.return=O,D;case E:return x=Rs(x,O.mode,D),x.return=O,x;case P:return x=nl(x),F(O,x,D)}if(Ut(x)||Qe(x))return x=kn(x,O.mode,D,null),x.return=O,x;if(typeof x.then=="function")return F(O,ji(x),D);if(x.$$typeof===G)return F(O,Ai(O,x),D);Hi(O,x)}return null}function U(O,x,D,B){var k=x!==null?x.key:null;if(typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint")return k!==null?null:y(O,x,""+D,B);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case S:return D.key===k?b(O,x,D,B):null;case E:return D.key===k?N(O,x,D,B):null;case P:return D=nl(D),U(O,x,D,B)}if(Ut(D)||Qe(D))return k!==null?null:L(O,x,D,B,null);if(typeof D.then=="function")return U(O,x,ji(D),B);if(D.$$typeof===G)return U(O,x,Ai(O,D),B);Hi(O,D)}return null}function j(O,x,D,B,k){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return O=O.get(D)||null,y(x,O,""+B,k);if(typeof B=="object"&&B!==null){switch(B.$$typeof){case S:return O=O.get(B.key===null?D:B.key)||null,b(x,O,B,k);case E:return O=O.get(B.key===null?D:B.key)||null,N(x,O,B,k);case P:return B=nl(B),j(O,x,D,B,k)}if(Ut(B)||Qe(B))return O=O.get(D)||null,L(x,O,B,k,null);if(typeof B.then=="function")return j(O,x,D,ji(B),k);if(B.$$typeof===G)return j(O,x,D,Ai(x,B),k);Hi(x,B)}return null}function Y(O,x,D,B){for(var k=null,pe=null,J=x,se=x=0,he=null;J!==null&&se<D.length;se++){J.index>se?(he=J,J=null):he=J.sibling;var ve=U(O,J,D[se],B);if(ve===null){J===null&&(J=he);break}e&&J&&ve.alternate===null&&t(O,J),x=c(ve,x,se),pe===null?k=ve:pe.sibling=ve,pe=ve,J=he}if(se===D.length)return l(O,J),ge&&kt(O,se),k;if(J===null){for(;se<D.length;se++)J=F(O,D[se],B),J!==null&&(x=c(J,x,se),pe===null?k=J:pe.sibling=J,pe=J);return ge&&kt(O,se),k}for(J=a(J);se<D.length;se++)he=j(J,O,se,D[se],B),he!==null&&(e&&he.alternate!==null&&J.delete(he.key===null?se:he.key),x=c(he,x,se),pe===null?k=he:pe.sibling=he,pe=he);return e&&J.forEach(function(Bn){return t(O,Bn)}),ge&&kt(O,se),k}function W(O,x,D,B){if(D==null)throw Error(s(151));for(var k=null,pe=null,J=x,se=x=0,he=null,ve=D.next();J!==null&&!ve.done;se++,ve=D.next()){J.index>se?(he=J,J=null):he=J.sibling;var Bn=U(O,J,ve.value,B);if(Bn===null){J===null&&(J=he);break}e&&J&&Bn.alternate===null&&t(O,J),x=c(Bn,x,se),pe===null?k=Bn:pe.sibling=Bn,pe=Bn,J=he}if(ve.done)return l(O,J),ge&&kt(O,se),k;if(J===null){for(;!ve.done;se++,ve=D.next())ve=F(O,ve.value,B),ve!==null&&(x=c(ve,x,se),pe===null?k=ve:pe.sibling=ve,pe=ve);return ge&&kt(O,se),k}for(J=a(J);!ve.done;se++,ve=D.next())ve=j(J,O,se,ve.value,B),ve!==null&&(e&&ve.alternate!==null&&J.delete(ve.key===null?se:ve.key),x=c(ve,x,se),pe===null?k=ve:pe.sibling=ve,pe=ve);return e&&J.forEach(function(Kv){return t(O,Kv)}),ge&&kt(O,se),k}function _e(O,x,D,B){if(typeof D=="object"&&D!==null&&D.type===_&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case S:e:{for(var k=D.key;x!==null;){if(x.key===k){if(k=D.type,k===_){if(x.tag===7){l(O,x.sibling),B=r(x,D.props.children),B.return=O,O=B;break e}}else if(x.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===P&&nl(k)===x.type){l(O,x.sibling),B=r(x,D.props),Ra(B,D),B.return=O,O=B;break e}l(O,x);break}else t(O,x);x=x.sibling}D.type===_?(B=kn(D.props.children,O.mode,B,D.key),B.return=O,O=B):(B=wi(D.type,D.key,D.props,null,O.mode,B),Ra(B,D),B.return=O,O=B)}return h(O);case E:e:{for(k=D.key;x!==null;){if(x.key===k)if(x.tag===4&&x.stateNode.containerInfo===D.containerInfo&&x.stateNode.implementation===D.implementation){l(O,x.sibling),B=r(x,D.children||[]),B.return=O,O=B;break e}else{l(O,x);break}else t(O,x);x=x.sibling}B=Rs(D,O.mode,B),B.return=O,O=B}return h(O);case P:return D=nl(D),_e(O,x,D,B)}if(Ut(D))return Y(O,x,D,B);if(Qe(D)){if(k=Qe(D),typeof k!="function")throw Error(s(150));return D=k.call(D),W(O,x,D,B)}if(typeof D.then=="function")return _e(O,x,ji(D),B);if(D.$$typeof===G)return _e(O,x,Ai(O,D),B);Hi(O,D)}return typeof D=="string"&&D!==""||typeof D=="number"||typeof D=="bigint"?(D=""+D,x!==null&&x.tag===6?(l(O,x.sibling),B=r(x,D),B.return=O,O=B):(l(O,x),B=Cs(D,O.mode,B),B.return=O,O=B),h(O)):l(O,x)}return function(O,x,D,B){try{Ca=0;var k=_e(O,x,D,B);return jl=null,k}catch(J){if(J===Ul||J===Ni)throw J;var pe=gt(29,J,null,O.mode);return pe.lanes=B,pe.return=O,pe}finally{}}}var al=yf(!0),Sf=yf(!1),bn=!1;function Ns(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Us(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 En(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function xn(e,t,l){var a=e.updateQueue;if(a===null)return null;if(a=a.shared,(ye&2)!==0){var r=a.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),a.pending=t,t=Ti(e),tf(e,null,l),t}return Mi(e,a,t,l),Ti(e)}function ba(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,oc(e,l)}}function js(e,t){var l=e.updateQueue,a=e.alternate;if(a!==null&&(a=a.updateQueue,l===a)){var r=null,c=null;if(l=l.firstBaseUpdate,l!==null){do{var h={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};c===null?r=c=h:c=c.next=h,l=l.next}while(l!==null);c===null?r=c=t:c=c.next=t}else r=c=t;l={baseState:a.baseState,firstBaseUpdate:r,lastBaseUpdate:c,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 Hs=!1;function Ea(){if(Hs){var e=Nl;if(e!==null)throw e}}function xa(e,t,l,a){Hs=!1;var r=e.updateQueue;bn=!1;var c=r.firstBaseUpdate,h=r.lastBaseUpdate,y=r.shared.pending;if(y!==null){r.shared.pending=null;var b=y,N=b.next;b.next=null,h===null?c=N:h.next=N,h=b;var L=e.alternate;L!==null&&(L=L.updateQueue,y=L.lastBaseUpdate,y!==h&&(y===null?L.firstBaseUpdate=N:y.next=N,L.lastBaseUpdate=b))}if(c!==null){var F=r.baseState;h=0,L=N=b=null,y=c;do{var U=y.lane&-536870913,j=U!==y.lane;if(j?(de&U)===U:(a&U)===U){U!==0&&U===Dl&&(Hs=!0),L!==null&&(L=L.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var Y=e,W=y;U=t;var _e=l;switch(W.tag){case 1:if(Y=W.payload,typeof Y=="function"){F=Y.call(_e,F,U);break e}F=Y;break e;case 3:Y.flags=Y.flags&-65537|128;case 0:if(Y=W.payload,U=typeof Y=="function"?Y.call(_e,F,U):Y,U==null)break e;F=C({},F,U);break e;case 2:bn=!0}}U=y.callback,U!==null&&(e.flags|=64,j&&(e.flags|=8192),j=r.callbacks,j===null?r.callbacks=[U]:j.push(U))}else j={lane:U,tag:y.tag,payload:y.payload,callback:y.callback,next:null},L===null?(N=L=j,b=F):L=L.next=j,h|=U;if(y=y.next,y===null){if(y=r.shared.pending,y===null)break;j=y,y=j.next,j.next=null,r.lastBaseUpdate=j,r.shared.pending=null}}while(!0);L===null&&(b=F),r.baseState=b,r.firstBaseUpdate=N,r.lastBaseUpdate=L,c===null&&(r.shared.lanes=0),On|=h,e.lanes=h,e.memoizedState=F}}function Cf(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function Rf(e,t){var l=e.callbacks;if(l!==null)for(e.callbacks=null,e=0;e<l.length;e++)Cf(l[e],t)}var Hl=T(null),Li=T(0);function bf(e,t){e=on,$(Li,e),$(Hl,t),on=e|t.baseLanes}function Ls(){$(Li,on),$(Hl,Hl.current)}function Vs(){on=Li.current,q(Hl),q(Li)}var mt=T(null),zt=null;function _n(e){var t=e.alternate;$(He,He.current&1),$(mt,e),zt===null&&(t===null||Hl.current!==null||t.memoizedState!==null)&&(zt=e)}function Bs(e){$(He,He.current),$(mt,e),zt===null&&(zt=e)}function Ef(e){e.tag===22?($(He,He.current),$(mt,e),zt===null&&(zt=e)):Mn()}function Mn(){$(He,He.current),$(mt,mt.current)}function pt(e){q(mt),zt===e&&(zt=null),q(He)}var He=T(0);function Vi(e){for(var t=e;t!==null;){if(t.tag===13){var l=t.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Yr(l)||Xr(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 en=0,ue=null,Ee=null,Be=null,Bi=!1,Ll=!1,il=!1,Fi=0,_a=0,Vl=null,Lp=0;function Ne(){throw Error(s(321))}function Fs(e,t){if(t===null)return!1;for(var l=0;l<t.length&&l<e.length;l++)if(!ht(e[l],t[l]))return!1;return!0}function qs(e,t,l,a,r,c){return en=c,ue=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,V.H=e===null||e.memoizedState===null?ud:nr,il=!1,c=l(a,r),il=!1,Ll&&(c=_f(t,l,a,r)),xf(e),c}function xf(e){V.H=wa;var t=Ee!==null&&Ee.next!==null;if(en=0,Be=Ee=ue=null,Bi=!1,_a=0,Vl=null,t)throw Error(s(300));e===null||Fe||(e=e.dependencies,e!==null&&zi(e)&&(Fe=!0))}function _f(e,t,l,a){ue=e;var r=0;do{if(Ll&&(Vl=null),_a=0,Ll=!1,25<=r)throw Error(s(301));if(r+=1,Be=Ee=null,e.updateQueue!=null){var c=e.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}V.H=sd,c=t(l,a)}while(Ll);return c}function Vp(){var e=V.H,t=e.useState()[0];return t=typeof t.then=="function"?Ma(t):t,e=e.useState()[0],(Ee!==null?Ee.memoizedState:null)!==e&&(ue.flags|=1024),t}function Gs(){var e=Fi!==0;return Fi=0,e}function Qs(e,t,l){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~l}function $s(e){if(Bi){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Bi=!1}en=0,Be=Ee=ue=null,Ll=!1,_a=Fi=0,Vl=null}function tt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Be===null?ue.memoizedState=Be=e:Be=Be.next=e,Be}function Le(){if(Ee===null){var e=ue.alternate;e=e!==null?e.memoizedState:null}else e=Ee.next;var t=Be===null?ue.memoizedState:Be.next;if(t!==null)Be=t,Ee=e;else{if(e===null)throw ue.alternate===null?Error(s(467)):Error(s(310));Ee=e,e={memoizedState:Ee.memoizedState,baseState:Ee.baseState,baseQueue:Ee.baseQueue,queue:Ee.queue,next:null},Be===null?ue.memoizedState=Be=e:Be=Be.next=e}return Be}function qi(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ma(e){var t=_a;return _a+=1,Vl===null&&(Vl=[]),e=mf(Vl,e,t),t=ue,(Be===null?t.memoizedState:Be.next)===null&&(t=t.alternate,V.H=t===null||t.memoizedState===null?ud:nr),e}function Gi(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ma(e);if(e.$$typeof===G)return Ze(e)}throw Error(s(438,String(e)))}function Ys(e){var t=null,l=ue.updateQueue;if(l!==null&&(t=l.memoCache),t==null){var a=ue.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(t={data:a.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),l===null&&(l=qi(),ue.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]=fe;return t.index++,l}function tn(e,t){return typeof t=="function"?t(e):t}function Qi(e){var t=Le();return Xs(t,Ee,e)}function Xs(e,t,l){var a=e.queue;if(a===null)throw Error(s(311));a.lastRenderedReducer=l;var r=e.baseQueue,c=a.pending;if(c!==null){if(r!==null){var h=r.next;r.next=c.next,c.next=h}t.baseQueue=r=c,a.pending=null}if(c=e.baseState,r===null)e.memoizedState=c;else{t=r.next;var y=h=null,b=null,N=t,L=!1;do{var F=N.lane&-536870913;if(F!==N.lane?(de&F)===F:(en&F)===F){var U=N.revertLane;if(U===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),F===Dl&&(L=!0);else if((en&U)===U){N=N.next,U===Dl&&(L=!0);continue}else F={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(y=b=F,h=c):b=b.next=F,ue.lanes|=U,On|=U;F=N.action,il&&l(c,F),c=N.hasEagerState?N.eagerState:l(c,F)}else U={lane:F,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(y=b=U,h=c):b=b.next=U,ue.lanes|=F,On|=F;N=N.next}while(N!==null&&N!==t);if(b===null?h=c:b.next=y,!ht(c,e.memoizedState)&&(Fe=!0,L&&(l=Nl,l!==null)))throw l;e.memoizedState=c,e.baseState=h,e.baseQueue=b,a.lastRenderedState=c}return r===null&&(a.lanes=0),[e.memoizedState,a.dispatch]}function Ks(e){var t=Le(),l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=e;var a=l.dispatch,r=l.pending,c=t.memoizedState;if(r!==null){l.pending=null;var h=r=r.next;do c=e(c,h.action),h=h.next;while(h!==r);ht(c,t.memoizedState)||(Fe=!0),t.memoizedState=c,t.baseQueue===null&&(t.baseState=c),l.lastRenderedState=c}return[c,a]}function Mf(e,t,l){var a=ue,r=Le(),c=ge;if(c){if(l===void 0)throw Error(s(407));l=l()}else l=t();var h=!ht((Ee||r).memoizedState,l);if(h&&(r.memoizedState=l,Fe=!0),r=r.queue,Ps(Of.bind(null,a,r,e),[e]),r.getSnapshot!==t||h||Be!==null&&Be.memoizedState.tag&1){if(a.flags|=2048,Bl(9,{destroy:void 0},wf.bind(null,a,r,l,t),null),Te===null)throw Error(s(349));c||(en&127)!==0||Tf(a,t,l)}return l}function Tf(e,t,l){e.flags|=16384,e={getSnapshot:t,value:l},t=ue.updateQueue,t===null?(t=qi(),ue.updateQueue=t,t.stores=[e]):(l=t.stores,l===null?t.stores=[e]:l.push(e))}function wf(e,t,l,a){t.value=l,t.getSnapshot=a,zf(t)&&Af(e)}function Of(e,t,l){return l(function(){zf(t)&&Af(e)})}function zf(e){var t=e.getSnapshot;e=e.value;try{var l=t();return!ht(e,l)}catch{return!0}}function Af(e){var t=Pn(e,2);t!==null&&rt(t,e,2)}function Zs(e){var t=tt();if(typeof e=="function"){var l=e;if(e=l(),il){mn(!0);try{l()}finally{mn(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:e},t}function Df(e,t,l,a){return e.baseState=l,Xs(e,Ee,typeof a=="function"?a:tn)}function Bp(e,t,l,a,r){if(Xi(e))throw Error(s(485));if(e=t.action,e!==null){var c={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(h){c.listeners.push(h)}};V.T!==null?l(!0):c.isTransition=!1,a(c),l=t.pending,l===null?(c.next=t.pending=c,Nf(t,c)):(c.next=l.next,t.pending=l.next=c)}}function Nf(e,t){var l=t.action,a=t.payload,r=e.state;if(t.isTransition){var c=V.T,h={};V.T=h;try{var y=l(r,a),b=V.S;b!==null&&b(h,y),Uf(e,t,y)}catch(N){Js(e,t,N)}finally{c!==null&&h.types!==null&&(c.types=h.types),V.T=c}}else try{c=l(r,a),Uf(e,t,c)}catch(N){Js(e,t,N)}}function Uf(e,t,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(a){jf(e,t,a)},function(a){return Js(e,t,a)}):jf(e,t,l)}function jf(e,t,l){t.status="fulfilled",t.value=l,Hf(t),e.state=l,t=e.pending,t!==null&&(l=t.next,l===t?e.pending=null:(l=l.next,t.next=l,Nf(e,l)))}function Js(e,t,l){var a=e.pending;if(e.pending=null,a!==null){a=a.next;do t.status="rejected",t.reason=l,Hf(t),t=t.next;while(t!==a)}e.action=null}function Hf(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Lf(e,t){return t}function Vf(e,t){if(ge){var l=Te.formState;if(l!==null){e:{var a=ue;if(ge){if(Oe){t:{for(var r=Oe,c=Ot;r.nodeType!==8;){if(!c){r=null;break t}if(r=At(r.nextSibling),r===null){r=null;break t}}c=r.data,r=c==="F!"||c==="F"?r:null}if(r){Oe=At(r.nextSibling),a=r.data==="F!";break e}}Cn(a)}a=!1}a&&(t=l[0])}}return l=tt(),l.memoizedState=l.baseState=t,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lf,lastRenderedState:t},l.queue=a,l=ld.bind(null,ue,a),a.dispatch=l,a=Zs(!1),c=tr.bind(null,ue,!1,a.queue),a=tt(),r={state:t,dispatch:null,action:e,pending:null},a.queue=r,l=Bp.bind(null,ue,r,c,l),r.dispatch=l,a.memoizedState=e,[t,l,!1]}function Bf(e){var t=Le();return Ff(t,Ee,e)}function Ff(e,t,l){if(t=Xs(e,t,Lf)[0],e=Qi(tn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var a=Ma(t)}catch(h){throw h===Ul?Ni:h}else a=t;t=Le();var r=t.queue,c=r.dispatch;return l!==t.memoizedState&&(ue.flags|=2048,Bl(9,{destroy:void 0},Fp.bind(null,r,l),null)),[a,c,e]}function Fp(e,t){e.action=t}function qf(e){var t=Le(),l=Ee;if(l!==null)return Ff(t,l,e);Le(),t=t.memoizedState,l=Le();var a=l.queue.dispatch;return l.memoizedState=e,[t,a,!1]}function Bl(e,t,l,a){return e={tag:e,create:l,deps:a,inst:t,next:null},t=ue.updateQueue,t===null&&(t=qi(),ue.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 Gf(){return Le().memoizedState}function $i(e,t,l,a){var r=tt();ue.flags|=e,r.memoizedState=Bl(1|t,{destroy:void 0},l,a===void 0?null:a)}function Yi(e,t,l,a){var r=Le();a=a===void 0?null:a;var c=r.memoizedState.inst;Ee!==null&&a!==null&&Fs(a,Ee.memoizedState.deps)?r.memoizedState=Bl(t,c,l,a):(ue.flags|=e,r.memoizedState=Bl(1|t,c,l,a))}function Qf(e,t){$i(8390656,8,e,t)}function Ps(e,t){Yi(2048,8,e,t)}function qp(e){ue.flags|=4;var t=ue.updateQueue;if(t===null)t=qi(),ue.updateQueue=t,t.events=[e];else{var l=t.events;l===null?t.events=[e]:l.push(e)}}function $f(e){var t=Le().memoizedState;return qp({ref:t,nextImpl:e}),function(){if((ye&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Yf(e,t){return Yi(4,2,e,t)}function Xf(e,t){return Yi(4,4,e,t)}function Kf(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 Zf(e,t,l){l=l!=null?l.concat([e]):null,Yi(4,4,Kf.bind(null,t,e),l)}function ks(){}function Jf(e,t){var l=Le();t=t===void 0?null:t;var a=l.memoizedState;return t!==null&&Fs(t,a[1])?a[0]:(l.memoizedState=[e,t],e)}function Pf(e,t){var l=Le();t=t===void 0?null:t;var a=l.memoizedState;if(t!==null&&Fs(t,a[1]))return a[0];if(a=e(),il){mn(!0);try{e()}finally{mn(!1)}}return l.memoizedState=[a,t],a}function Is(e,t,l){return l===void 0||(en&1073741824)!==0&&(de&261930)===0?e.memoizedState=t:(e.memoizedState=l,e=kd(),ue.lanes|=e,On|=e,l)}function kf(e,t,l,a){return ht(l,t)?l:Hl.current!==null?(e=Is(e,l,a),ht(e,t)||(Fe=!0),e):(en&42)===0||(en&1073741824)!==0&&(de&261930)===0?(Fe=!0,e.memoizedState=l):(e=kd(),ue.lanes|=e,On|=e,t)}function If(e,t,l,a,r){var c=Q.p;Q.p=c!==0&&8>c?c:8;var h=V.T,y={};V.T=y,tr(e,!1,t,l);try{var b=r(),N=V.S;if(N!==null&&N(y,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var L=Hp(b,a);Ta(e,t,L,St(e))}else Ta(e,t,a,St(e))}catch(F){Ta(e,t,{then:function(){},status:"rejected",reason:F},St())}finally{Q.p=c,h!==null&&y.types!==null&&(h.types=y.types),V.T=h}}function Gp(){}function Ws(e,t,l,a){if(e.tag!==5)throw Error(s(476));var r=Wf(e).queue;If(e,r,t,ne,l===null?Gp:function(){return ed(e),l(a)})}function Wf(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:tn,lastRenderedState:ne},next:null};var l={};return t.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:l},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ed(e){var t=Wf(e);t.next===null&&(t=e.alternate.memoizedState),Ta(e,t.next.queue,{},St())}function er(){return Ze($a)}function td(){return Le().memoizedState}function nd(){return Le().memoizedState}function Qp(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var l=St();e=En(l);var a=xn(t,e,l);a!==null&&(rt(a,t,l),ba(a,t,l)),t={cache:Os()},e.payload=t;return}t=t.return}}function $p(e,t,l){var a=St();l={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Xi(e)?ad(t,l):(l=ys(e,t,l,a),l!==null&&(rt(l,e,a),id(l,t,a)))}function ld(e,t,l){var a=St();Ta(e,t,l,a)}function Ta(e,t,l,a){var r={lane:a,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Xi(e))ad(t,r);else{var c=e.alternate;if(e.lanes===0&&(c===null||c.lanes===0)&&(c=t.lastRenderedReducer,c!==null))try{var h=t.lastRenderedState,y=c(h,l);if(r.hasEagerState=!0,r.eagerState=y,ht(y,h))return Mi(e,t,r,0),Te===null&&_i(),!1}catch{}finally{}if(l=ys(e,t,r,a),l!==null)return rt(l,e,a),id(l,t,a),!0}return!1}function tr(e,t,l,a){if(a={lane:2,revertLane:Nr(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},Xi(e)){if(t)throw Error(s(479))}else t=ys(e,l,a,2),t!==null&&rt(t,e,2)}function Xi(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function ad(e,t){Ll=Bi=!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,oc(e,l)}}var wa={readContext:Ze,use:Gi,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useLayoutEffect:Ne,useInsertionEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useSyncExternalStore:Ne,useId:Ne,useHostTransitionStatus:Ne,useFormState:Ne,useActionState:Ne,useOptimistic:Ne,useMemoCache:Ne,useCacheRefresh:Ne};wa.useEffectEvent=Ne;var ud={readContext:Ze,use:Gi,useCallback:function(e,t){return tt().memoizedState=[e,t===void 0?null:t],e},useContext:Ze,useEffect:Qf,useImperativeHandle:function(e,t,l){l=l!=null?l.concat([e]):null,$i(4194308,4,Kf.bind(null,t,e),l)},useLayoutEffect:function(e,t){return $i(4194308,4,e,t)},useInsertionEffect:function(e,t){$i(4,2,e,t)},useMemo:function(e,t){var l=tt();t=t===void 0?null:t;var a=e();if(il){mn(!0);try{e()}finally{mn(!1)}}return l.memoizedState=[a,t],a},useReducer:function(e,t,l){var a=tt();if(l!==void 0){var r=l(t);if(il){mn(!0);try{l(t)}finally{mn(!1)}}}else r=t;return a.memoizedState=a.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},a.queue=e,e=e.dispatch=$p.bind(null,ue,e),[a.memoizedState,e]},useRef:function(e){var t=tt();return e={current:e},t.memoizedState=e},useState:function(e){e=Zs(e);var t=e.queue,l=ld.bind(null,ue,t);return t.dispatch=l,[e.memoizedState,l]},useDebugValue:ks,useDeferredValue:function(e,t){var l=tt();return Is(l,e,t)},useTransition:function(){var e=Zs(!1);return e=If.bind(null,ue,e.queue,!0,!1),tt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,l){var a=ue,r=tt();if(ge){if(l===void 0)throw Error(s(407));l=l()}else{if(l=t(),Te===null)throw Error(s(349));(de&127)!==0||Tf(a,t,l)}r.memoizedState=l;var c={value:l,getSnapshot:t};return r.queue=c,Qf(Of.bind(null,a,c,e),[e]),a.flags|=2048,Bl(9,{destroy:void 0},wf.bind(null,a,c,l,t),null),l},useId:function(){var e=tt(),t=Te.identifierPrefix;if(ge){var l=Qt,a=Gt;l=(a&~(1<<32-dt(a)-1)).toString(32)+l,t="_"+t+"R_"+l,l=Fi++,0<l&&(t+="H"+l.toString(32)),t+="_"}else l=Lp++,t="_"+t+"r_"+l.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:er,useFormState:Vf,useActionState:Vf,useOptimistic:function(e){var t=tt();t.memoizedState=t.baseState=e;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=l,t=tr.bind(null,ue,!0,l),l.dispatch=t,[e,t]},useMemoCache:Ys,useCacheRefresh:function(){return tt().memoizedState=Qp.bind(null,ue)},useEffectEvent:function(e){var t=tt(),l={impl:e};return t.memoizedState=l,function(){if((ye&2)!==0)throw Error(s(440));return l.impl.apply(void 0,arguments)}}},nr={readContext:Ze,use:Gi,useCallback:Jf,useContext:Ze,useEffect:Ps,useImperativeHandle:Zf,useInsertionEffect:Yf,useLayoutEffect:Xf,useMemo:Pf,useReducer:Qi,useRef:Gf,useState:function(){return Qi(tn)},useDebugValue:ks,useDeferredValue:function(e,t){var l=Le();return kf(l,Ee.memoizedState,e,t)},useTransition:function(){var e=Qi(tn)[0],t=Le().memoizedState;return[typeof e=="boolean"?e:Ma(e),t]},useSyncExternalStore:Mf,useId:td,useHostTransitionStatus:er,useFormState:Bf,useActionState:Bf,useOptimistic:function(e,t){var l=Le();return Df(l,Ee,e,t)},useMemoCache:Ys,useCacheRefresh:nd};nr.useEffectEvent=$f;var sd={readContext:Ze,use:Gi,useCallback:Jf,useContext:Ze,useEffect:Ps,useImperativeHandle:Zf,useInsertionEffect:Yf,useLayoutEffect:Xf,useMemo:Pf,useReducer:Ks,useRef:Gf,useState:function(){return Ks(tn)},useDebugValue:ks,useDeferredValue:function(e,t){var l=Le();return Ee===null?Is(l,e,t):kf(l,Ee.memoizedState,e,t)},useTransition:function(){var e=Ks(tn)[0],t=Le().memoizedState;return[typeof e=="boolean"?e:Ma(e),t]},useSyncExternalStore:Mf,useId:td,useHostTransitionStatus:er,useFormState:qf,useActionState:qf,useOptimistic:function(e,t){var l=Le();return Ee!==null?Df(l,Ee,e,t):(l.baseState=e,[e,l.queue.dispatch])},useMemoCache:Ys,useCacheRefresh:nd};sd.useEffectEvent=$f;function lr(e,t,l,a){t=e.memoizedState,l=l(a,t),l=l==null?t:C({},t,l),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}var ar={enqueueSetState:function(e,t,l){e=e._reactInternals;var a=St(),r=En(a);r.payload=t,l!=null&&(r.callback=l),t=xn(e,r,a),t!==null&&(rt(t,e,a),ba(t,e,a))},enqueueReplaceState:function(e,t,l){e=e._reactInternals;var a=St(),r=En(a);r.tag=1,r.payload=t,l!=null&&(r.callback=l),t=xn(e,r,a),t!==null&&(rt(t,e,a),ba(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var l=St(),a=En(l);a.tag=2,t!=null&&(a.callback=t),t=xn(e,a,l),t!==null&&(rt(t,e,l),ba(t,e,l))}};function rd(e,t,l,a,r,c,h){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(a,c,h):t.prototype&&t.prototype.isPureReactComponent?!ga(l,a)||!ga(r,c):!0}function od(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&&ar.enqueueReplaceState(t,t.state,null)}function ul(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=C({},l));for(var r in e)l[r]===void 0&&(l[r]=e[r])}return l}function cd(e){xi(e)}function fd(e){console.error(e)}function dd(e){xi(e)}function Ki(e,t){try{var l=e.onUncaughtError;l(t.value,{componentStack:t.stack})}catch(a){setTimeout(function(){throw a})}}function hd(e,t,l){try{var a=e.onCaughtError;a(l.value,{componentStack:l.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function ir(e,t,l){return l=En(l),l.tag=3,l.payload={element:null},l.callback=function(){Ki(e,t)},l}function gd(e){return e=En(e),e.tag=3,e}function md(e,t,l,a){var r=l.type.getDerivedStateFromError;if(typeof r=="function"){var c=a.value;e.payload=function(){return r(c)},e.callback=function(){hd(t,l,a)}}var h=l.stateNode;h!==null&&typeof h.componentDidCatch=="function"&&(e.callback=function(){hd(t,l,a),typeof r!="function"&&(zn===null?zn=new Set([this]):zn.add(this));var y=a.stack;this.componentDidCatch(a.value,{componentStack:y!==null?y:""})})}function Yp(e,t,l,a,r){if(l.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(t=l.alternate,t!==null&&Al(t,l,r,!0),l=mt.current,l!==null){switch(l.tag){case 31:case 13:return zt===null?iu():l.alternate===null&&Ue===0&&(Ue=3),l.flags&=-257,l.flags|=65536,l.lanes=r,a===Ui?l.flags|=16384:(t=l.updateQueue,t===null?l.updateQueue=new Set([a]):t.add(a),zr(e,a,r)),!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)),zr(e,a,r)),!1}throw Error(s(435,l.tag))}return zr(e,a,r),iu(),!1}if(ge)return t=mt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,a!==xs&&(e=Error(s(422),{cause:a}),va(Mt(e,l)))):(a!==xs&&(t=Error(s(423),{cause:a}),va(Mt(t,l))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,a=Mt(a,l),r=ir(e.stateNode,a,r),js(e,r),Ue!==4&&(Ue=2)),!1;var c=Error(s(520),{cause:a});if(c=Mt(c,l),Ha===null?Ha=[c]:Ha.push(c),Ue!==4&&(Ue=2),t===null)return!0;a=Mt(a,l),l=t;do{switch(l.tag){case 3:return l.flags|=65536,e=r&-r,l.lanes|=e,e=ir(l.stateNode,a,e),js(l,e),!1;case 1:if(t=l.type,c=l.stateNode,(l.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(zn===null||!zn.has(c))))return l.flags|=65536,r&=-r,l.lanes|=r,r=gd(r),md(r,e,l,a),js(l,r),!1}l=l.return}while(l!==null);return!1}var ur=Error(s(461)),Fe=!1;function Je(e,t,l,a){t.child=e===null?Sf(t,null,l,a):al(t,e.child,l,a)}function pd(e,t,l,a,r){l=l.render;var c=t.ref;if("ref"in a){var h={};for(var y in a)y!=="ref"&&(h[y]=a[y])}else h=a;return el(t),a=qs(e,t,l,h,c,r),y=Gs(),e!==null&&!Fe?(Qs(e,t,r),nn(e,t,r)):(ge&&y&&bs(t),t.flags|=1,Je(e,t,a,r),t.child)}function vd(e,t,l,a,r){if(e===null){var c=l.type;return typeof c=="function"&&!Ss(c)&&c.defaultProps===void 0&&l.compare===null?(t.tag=15,t.type=c,yd(e,t,c,a,r)):(e=wi(l.type,null,a,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(c=e.child,!gr(e,r)){var h=c.memoizedProps;if(l=l.compare,l=l!==null?l:ga,l(h,a)&&e.ref===t.ref)return nn(e,t,r)}return t.flags|=1,e=Pt(c,a),e.ref=t.ref,e.return=t,t.child=e}function yd(e,t,l,a,r){if(e!==null){var c=e.memoizedProps;if(ga(c,a)&&e.ref===t.ref)if(Fe=!1,t.pendingProps=a=c,gr(e,r))(e.flags&131072)!==0&&(Fe=!0);else return t.lanes=e.lanes,nn(e,t,r)}return sr(e,t,l,a,r)}function Sd(e,t,l,a){var r=a.children,c=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(c=c!==null?c.baseLanes|l:l,e!==null){for(a=t.child=e.child,r=0;a!==null;)r=r|a.lanes|a.childLanes,a=a.sibling;a=r&~c}else a=0,t.child=null;return Cd(e,t,c,l,a)}if((l&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Di(t,c!==null?c.cachePool:null),c!==null?bf(t,c):Ls(),Ef(t);else return a=t.lanes=536870912,Cd(e,t,c!==null?c.baseLanes|l:l,l,a)}else c!==null?(Di(t,c.cachePool),bf(t,c),Mn(),t.memoizedState=null):(e!==null&&Di(t,null),Ls(),Mn());return Je(e,t,r,l),t.child}function Oa(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Cd(e,t,l,a,r){var c=As();return c=c===null?null:{parent:Ve._currentValue,pool:c},t.memoizedState={baseLanes:l,cachePool:c},e!==null&&Di(t,null),Ls(),Ef(t),e!==null&&Al(e,t,a,!0),t.childLanes=r,null}function Zi(e,t){return t=Pi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Rd(e,t,l){return al(t,e.child,null,l),e=Zi(t,t.pendingProps),e.flags|=2,pt(t),t.memoizedState=null,e}function Xp(e,t,l){var a=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ge){if(a.mode==="hidden")return e=Zi(t,a),t.lanes=536870912,Oa(null,e);if(Bs(t),(e=Oe)?(e=Nh(e,Ot),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yn!==null?{id:Gt,overflow:Qt}:null,retryLane:536870912,hydrationErrors:null},l=lf(e),l.return=t,t.child=l,Ke=t,Oe=null)):e=null,e===null)throw Cn(t);return t.lanes=536870912,null}return Zi(t,a)}var c=e.memoizedState;if(c!==null){var h=c.dehydrated;if(Bs(t),r)if(t.flags&256)t.flags&=-257,t=Rd(e,t,l);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Fe||Al(e,t,l,!1),r=(l&e.childLanes)!==0,Fe||r){if(a=Te,a!==null&&(h=cc(a,l),h!==0&&h!==c.retryLane))throw c.retryLane=h,Pn(e,h),rt(a,e,h),ur;iu(),t=Rd(e,t,l)}else e=c.treeContext,Oe=At(h.nextSibling),Ke=t,ge=!0,Sn=null,Ot=!1,e!==null&&sf(t,e),t=Zi(t,a),t.flags|=4096;return t}return e=Pt(e.child,{mode:a.mode,children:a.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Ji(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(s(284));(e===null||e.ref!==l)&&(t.flags|=4194816)}}function sr(e,t,l,a,r){return el(t),l=qs(e,t,l,a,void 0,r),a=Gs(),e!==null&&!Fe?(Qs(e,t,r),nn(e,t,r)):(ge&&a&&bs(t),t.flags|=1,Je(e,t,l,r),t.child)}function bd(e,t,l,a,r,c){return el(t),t.updateQueue=null,l=_f(t,a,l,r),xf(e),a=Gs(),e!==null&&!Fe?(Qs(e,t,c),nn(e,t,c)):(ge&&a&&bs(t),t.flags|=1,Je(e,t,l,c),t.child)}function Ed(e,t,l,a,r){if(el(t),t.stateNode===null){var c=Tl,h=l.contextType;typeof h=="object"&&h!==null&&(c=Ze(h)),c=new l(a,c),t.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=ar,t.stateNode=c,c._reactInternals=t,c=t.stateNode,c.props=a,c.state=t.memoizedState,c.refs={},Ns(t),h=l.contextType,c.context=typeof h=="object"&&h!==null?Ze(h):Tl,c.state=t.memoizedState,h=l.getDerivedStateFromProps,typeof h=="function"&&(lr(t,l,h,a),c.state=t.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(h=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),h!==c.state&&ar.enqueueReplaceState(c,c.state,null),xa(t,a,c,r),Ea(),c.state=t.memoizedState),typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!0}else if(e===null){c=t.stateNode;var y=t.memoizedProps,b=ul(l,y);c.props=b;var N=c.context,L=l.contextType;h=Tl,typeof L=="object"&&L!==null&&(h=Ze(L));var F=l.getDerivedStateFromProps;L=typeof F=="function"||typeof c.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,L||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(y||N!==h)&&od(t,c,a,h),bn=!1;var U=t.memoizedState;c.state=U,xa(t,a,c,r),Ea(),N=t.memoizedState,y||U!==N||bn?(typeof F=="function"&&(lr(t,l,F,a),N=t.memoizedState),(b=bn||rd(t,l,b,a,U,N,h))?(L||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(t.flags|=4194308)):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=N),c.props=a,c.state=N,c.context=h,a=b):(typeof c.componentDidMount=="function"&&(t.flags|=4194308),a=!1)}else{c=t.stateNode,Us(e,t),h=t.memoizedProps,L=ul(l,h),c.props=L,F=t.pendingProps,U=c.context,N=l.contextType,b=Tl,typeof N=="object"&&N!==null&&(b=Ze(N)),y=l.getDerivedStateFromProps,(N=typeof y=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(h!==F||U!==b)&&od(t,c,a,b),bn=!1,U=t.memoizedState,c.state=U,xa(t,a,c,r),Ea();var j=t.memoizedState;h!==F||U!==j||bn||e!==null&&e.dependencies!==null&&zi(e.dependencies)?(typeof y=="function"&&(lr(t,l,y,a),j=t.memoizedState),(L=bn||rd(t,l,L,a,U,j,b)||e!==null&&e.dependencies!==null&&zi(e.dependencies))?(N||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,j,b),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,j,b)),typeof c.componentDidUpdate=="function"&&(t.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=j),c.props=a,c.state=j,c.context=b,a=L):(typeof c.componentDidUpdate!="function"||h===e.memoizedProps&&U===e.memoizedState||(t.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||h===e.memoizedProps&&U===e.memoizedState||(t.flags|=1024),a=!1)}return c=a,Ji(e,t),a=(t.flags&128)!==0,c||a?(c=t.stateNode,l=a&&typeof l.getDerivedStateFromError!="function"?null:c.render(),t.flags|=1,e!==null&&a?(t.child=al(t,e.child,null,r),t.child=al(t,null,l,r)):Je(e,t,l,r),t.memoizedState=c.state,e=t.child):e=nn(e,t,r),e}function xd(e,t,l,a){return In(),t.flags|=256,Je(e,t,l,a),t.child}var rr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function or(e){return{baseLanes:e,cachePool:hf()}}function cr(e,t,l){return e=e!==null?e.childLanes&~l:0,t&&(e|=yt),e}function _d(e,t,l){var a=t.pendingProps,r=!1,c=(t.flags&128)!==0,h;if((h=c)||(h=e!==null&&e.memoizedState===null?!1:(He.current&2)!==0),h&&(r=!0,t.flags&=-129),h=(t.flags&32)!==0,t.flags&=-33,e===null){if(ge){if(r?_n(t):Mn(),(e=Oe)?(e=Nh(e,Ot),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:yn!==null?{id:Gt,overflow:Qt}:null,retryLane:536870912,hydrationErrors:null},l=lf(e),l.return=t,t.child=l,Ke=t,Oe=null)):e=null,e===null)throw Cn(t);return Xr(e)?t.lanes=32:t.lanes=536870912,null}var y=a.children;return a=a.fallback,r?(Mn(),r=t.mode,y=Pi({mode:"hidden",children:y},r),a=kn(a,r,l,null),y.return=t,a.return=t,y.sibling=a,t.child=y,a=t.child,a.memoizedState=or(l),a.childLanes=cr(e,h,l),t.memoizedState=rr,Oa(null,a)):(_n(t),fr(t,y))}var b=e.memoizedState;if(b!==null&&(y=b.dehydrated,y!==null)){if(c)t.flags&256?(_n(t),t.flags&=-257,t=dr(e,t,l)):t.memoizedState!==null?(Mn(),t.child=e.child,t.flags|=128,t=null):(Mn(),y=a.fallback,r=t.mode,a=Pi({mode:"visible",children:a.children},r),y=kn(y,r,l,null),y.flags|=2,a.return=t,y.return=t,a.sibling=y,t.child=a,al(t,e.child,null,l),a=t.child,a.memoizedState=or(l),a.childLanes=cr(e,h,l),t.memoizedState=rr,t=Oa(null,a));else if(_n(t),Xr(y)){if(h=y.nextSibling&&y.nextSibling.dataset,h)var N=h.dgst;h=N,a=Error(s(419)),a.stack="",a.digest=h,va({value:a,source:null,stack:null}),t=dr(e,t,l)}else if(Fe||Al(e,t,l,!1),h=(l&e.childLanes)!==0,Fe||h){if(h=Te,h!==null&&(a=cc(h,l),a!==0&&a!==b.retryLane))throw b.retryLane=a,Pn(e,a),rt(h,e,a),ur;Yr(y)||iu(),t=dr(e,t,l)}else Yr(y)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,Oe=At(y.nextSibling),Ke=t,ge=!0,Sn=null,Ot=!1,e!==null&&sf(t,e),t=fr(t,a.children),t.flags|=4096);return t}return r?(Mn(),y=a.fallback,r=t.mode,b=e.child,N=b.sibling,a=Pt(b,{mode:"hidden",children:a.children}),a.subtreeFlags=b.subtreeFlags&65011712,N!==null?y=Pt(N,y):(y=kn(y,r,l,null),y.flags|=2),y.return=t,a.return=t,a.sibling=y,t.child=a,Oa(null,a),a=t.child,y=e.child.memoizedState,y===null?y=or(l):(r=y.cachePool,r!==null?(b=Ve._currentValue,r=r.parent!==b?{parent:b,pool:b}:r):r=hf(),y={baseLanes:y.baseLanes|l,cachePool:r}),a.memoizedState=y,a.childLanes=cr(e,h,l),t.memoizedState=rr,Oa(e.child,a)):(_n(t),l=e.child,e=l.sibling,l=Pt(l,{mode:"visible",children:a.children}),l.return=t,l.sibling=null,e!==null&&(h=t.deletions,h===null?(t.deletions=[e],t.flags|=16):h.push(e)),t.child=l,t.memoizedState=null,l)}function fr(e,t){return t=Pi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Pi(e,t){return e=gt(22,e,null,t),e.lanes=0,e}function dr(e,t,l){return al(t,e.child,null,l),e=fr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Md(e,t,l){e.lanes|=t;var a=e.alternate;a!==null&&(a.lanes|=t),Ts(e.return,t,l)}function hr(e,t,l,a,r,c){var h=e.memoizedState;h===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:l,tailMode:r,treeForkCount:c}:(h.isBackwards=t,h.rendering=null,h.renderingStartTime=0,h.last=a,h.tail=l,h.tailMode=r,h.treeForkCount=c)}function Td(e,t,l){var a=t.pendingProps,r=a.revealOrder,c=a.tail;a=a.children;var h=He.current,y=(h&2)!==0;if(y?(h=h&1|2,t.flags|=128):h&=1,$(He,h),Je(e,t,a,l),a=ge?pa:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Md(e,l,t);else if(e.tag===19)Md(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(r){case"forwards":for(l=t.child,r=null;l!==null;)e=l.alternate,e!==null&&Vi(e)===null&&(r=l),l=l.sibling;l=r,l===null?(r=t.child,t.child=null):(r=l.sibling,l.sibling=null),hr(t,!1,r,l,c,a);break;case"backwards":case"unstable_legacy-backwards":for(l=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Vi(e)===null){t.child=r;break}e=r.sibling,r.sibling=l,l=r,r=e}hr(t,!0,l,null,c,a);break;case"together":hr(t,!1,null,null,void 0,a);break;default:t.memoizedState=null}return t.child}function nn(e,t,l){if(e!==null&&(t.dependencies=e.dependencies),On|=t.lanes,(l&t.childLanes)===0)if(e!==null){if(Al(e,t,l,!1),(l&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,l=Pt(e,e.pendingProps),t.child=l,l.return=t;e.sibling!==null;)e=e.sibling,l=l.sibling=Pt(e,e.pendingProps),l.return=t;l.sibling=null}return t.child}function gr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&zi(e)))}function Kp(e,t,l){switch(t.tag){case 3:et(t,t.stateNode.containerInfo),Rn(t,Ve,e.memoizedState.cache),In();break;case 27:case 5:ta(t);break;case 4:et(t,t.stateNode.containerInfo);break;case 10:Rn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Bs(t),null;break;case 13:var a=t.memoizedState;if(a!==null)return a.dehydrated!==null?(_n(t),t.flags|=128,null):(l&t.child.childLanes)!==0?_d(e,t,l):(_n(t),e=nn(e,t,l),e!==null?e.sibling:null);_n(t);break;case 19:var r=(e.flags&128)!==0;if(a=(l&t.childLanes)!==0,a||(Al(e,t,l,!1),a=(l&t.childLanes)!==0),r){if(a)return Td(e,t,l);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),$(He,He.current),a)break;return null;case 22:return t.lanes=0,Sd(e,t,l,t.pendingProps);case 24:Rn(t,Ve,e.memoizedState.cache)}return nn(e,t,l)}function wd(e,t,l){if(e!==null)if(e.memoizedProps!==t.pendingProps)Fe=!0;else{if(!gr(e,l)&&(t.flags&128)===0)return Fe=!1,Kp(e,t,l);Fe=(e.flags&131072)!==0}else Fe=!1,ge&&(t.flags&1048576)!==0&&uf(t,pa,t.index);switch(t.lanes=0,t.tag){case 16:e:{var a=t.pendingProps;if(e=nl(t.elementType),t.type=e,typeof e=="function")Ss(e)?(a=ul(e,a),t.tag=1,t=Ed(null,t,e,a,l)):(t.tag=0,t=sr(null,t,e,a,l));else{if(e!=null){var r=e.$$typeof;if(r===X){t.tag=11,t=pd(null,t,e,a,l);break e}else if(r===K){t.tag=14,t=vd(null,t,e,a,l);break e}}throw t=Xt(e)||e,Error(s(306,t,""))}}return t;case 0:return sr(e,t,t.type,t.pendingProps,l);case 1:return a=t.type,r=ul(a,t.pendingProps),Ed(e,t,a,r,l);case 3:e:{if(et(t,t.stateNode.containerInfo),e===null)throw Error(s(387));a=t.pendingProps;var c=t.memoizedState;r=c.element,Us(e,t),xa(t,a,null,l);var h=t.memoizedState;if(a=h.cache,Rn(t,Ve,a),a!==c.cache&&ws(t,[Ve],l,!0),Ea(),a=h.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:h.cache},t.updateQueue.baseState=c,t.memoizedState=c,t.flags&256){t=xd(e,t,a,l);break e}else if(a!==r){r=Mt(Error(s(424)),t),va(r),t=xd(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(Oe=At(e.firstChild),Ke=t,ge=!0,Sn=null,Ot=!0,l=Sf(t,null,a,l),t.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(In(),a===r){t=nn(e,t,l);break e}Je(e,t,a,l)}t=t.child}return t;case 26:return Ji(e,t),e===null?(l=Bh(t.type,null,t.pendingProps,null))?t.memoizedState=l:ge||(l=t.type,e=t.pendingProps,a=du(re.current).createElement(l),a[Xe]=t,a[nt]=e,Pe(a,l,e),$e(a),t.stateNode=a):t.memoizedState=Bh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ta(t),e===null&&ge&&(a=t.stateNode=Hh(t.type,t.pendingProps,re.current),Ke=t,Ot=!0,r=Oe,Un(t.type)?(Kr=r,Oe=At(a.firstChild)):Oe=r),Je(e,t,t.pendingProps.children,l),Ji(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ge&&((r=a=Oe)&&(a=Ev(a,t.type,t.pendingProps,Ot),a!==null?(t.stateNode=a,Ke=t,Oe=At(a.firstChild),Ot=!1,r=!0):r=!1),r||Cn(t)),ta(t),r=t.type,c=t.pendingProps,h=e!==null?e.memoizedProps:null,a=c.children,Gr(r,c)?a=null:h!==null&&Gr(r,h)&&(t.flags|=32),t.memoizedState!==null&&(r=qs(e,t,Vp,null,null,l),$a._currentValue=r),Ji(e,t),Je(e,t,a,l),t.child;case 6:return e===null&&ge&&((e=l=Oe)&&(l=xv(l,t.pendingProps,Ot),l!==null?(t.stateNode=l,Ke=t,Oe=null,e=!0):e=!1),e||Cn(t)),null;case 13:return _d(e,t,l);case 4:return et(t,t.stateNode.containerInfo),a=t.pendingProps,e===null?t.child=al(t,null,a,l):Je(e,t,a,l),t.child;case 11:return pd(e,t,t.type,t.pendingProps,l);case 7:return Je(e,t,t.pendingProps,l),t.child;case 8:return Je(e,t,t.pendingProps.children,l),t.child;case 12:return Je(e,t,t.pendingProps.children,l),t.child;case 10:return a=t.pendingProps,Rn(t,t.type,a.value),Je(e,t,a.children,l),t.child;case 9:return r=t.type._context,a=t.pendingProps.children,el(t),r=Ze(r),a=a(r),t.flags|=1,Je(e,t,a,l),t.child;case 14:return vd(e,t,t.type,t.pendingProps,l);case 15:return yd(e,t,t.type,t.pendingProps,l);case 19:return Td(e,t,l);case 31:return Xp(e,t,l);case 22:return Sd(e,t,l,t.pendingProps);case 24:return el(t),a=Ze(Ve),e===null?(r=As(),r===null&&(r=Te,c=Os(),r.pooledCache=c,c.refCount++,c!==null&&(r.pooledCacheLanes|=l),r=c),t.memoizedState={parent:a,cache:r},Ns(t),Rn(t,Ve,r)):((e.lanes&l)!==0&&(Us(e,t),xa(t,null,null,l),Ea()),r=e.memoizedState,c=t.memoizedState,r.parent!==a?(r={parent:a,cache:a},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Rn(t,Ve,a)):(a=c.cache,Rn(t,Ve,a),a!==r.cache&&ws(t,[Ve],l,!0))),Je(e,t,t.pendingProps.children,l),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function ln(e){e.flags|=4}function mr(e,t,l,a,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(th())e.flags|=8192;else throw ll=Ui,Ds}else e.flags&=-16777217}function Od(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!$h(t))if(th())e.flags|=8192;else throw ll=Ui,Ds}function ki(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?sc():536870912,e.lanes|=t,Ql|=t)}function za(e,t){if(!ge)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 ze(e){var t=e.alternate!==null&&e.alternate.child===e.child,l=0,a=0;if(t)for(var r=e.child;r!==null;)l|=r.lanes|r.childLanes,a|=r.subtreeFlags&65011712,a|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)l|=r.lanes|r.childLanes,a|=r.subtreeFlags,a|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=a,e.childLanes=l,t}function Zp(e,t,l){var a=t.pendingProps;switch(Es(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ze(t),null;case 1:return ze(t),null;case 3:return l=t.stateNode,a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Wt(Ve),je(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(zl(t)?ln(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,_s())),ze(t),null;case 26:var r=t.type,c=t.memoizedState;return e===null?(ln(t),c!==null?(ze(t),Od(t,c)):(ze(t),mr(t,r,null,a,l))):c?c!==e.memoizedState?(ln(t),ze(t),Od(t,c)):(ze(t),t.flags&=-16777217):(e=e.memoizedProps,e!==a&&ln(t),ze(t),mr(t,r,e,a,l)),null;case 27:if(ri(t),l=re.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ln(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return ze(t),null}e=Z.current,zl(t)?rf(t):(e=Hh(r,a,l),t.stateNode=e,ln(t))}return ze(t),null;case 5:if(ri(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==a&&ln(t);else{if(!a){if(t.stateNode===null)throw Error(s(166));return ze(t),null}if(c=Z.current,zl(t))rf(t);else{var h=du(re.current);switch(c){case 1:c=h.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:c=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":c=h.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":c=h.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":c=h.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?h.createElement("select",{is:a.is}):h.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?h.createElement(r,{is:a.is}):h.createElement(r)}}c[Xe]=t,c[nt]=a;e:for(h=t.child;h!==null;){if(h.tag===5||h.tag===6)c.appendChild(h.stateNode);else if(h.tag!==4&&h.tag!==27&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;h=h.return}h.sibling.return=h.return,h=h.sibling}t.stateNode=c;e:switch(Pe(c,r,a),r){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break e;case"img":a=!0;break e;default:a=!1}a&&ln(t)}}return ze(t),mr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,l),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==a&&ln(t);else{if(typeof a!="string"&&t.stateNode===null)throw Error(s(166));if(e=re.current,zl(t)){if(e=t.stateNode,l=t.memoizedProps,a=null,r=Ke,r!==null)switch(r.tag){case 27:case 5:a=r.memoizedProps}e[Xe]=t,e=!!(e.nodeValue===l||a!==null&&a.suppressHydrationWarning===!0||_h(e.nodeValue,l)),e||Cn(t,!0)}else e=du(e).createTextNode(a),e[Xe]=t,t.stateNode=e}return ze(t),null;case 31:if(l=t.memoizedState,e===null||e.memoizedState!==null){if(a=zl(t),l!==null){if(e===null){if(!a)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[Xe]=t}else In(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),e=!1}else l=_s(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),e=!0;if(!e)return t.flags&256?(pt(t),t):(pt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return ze(t),null;case 13:if(a=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=zl(t),a!==null&&a.dehydrated!==null){if(e===null){if(!r)throw Error(s(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));r[Xe]=t}else In(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ze(t),r=!1}else r=_s(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(pt(t),t):(pt(t),null)}return pt(t),(t.flags&128)!==0?(t.lanes=l,t):(l=a!==null,e=e!==null&&e.memoizedState!==null,l&&(a=t.child,r=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(r=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==r&&(a.flags|=2048)),l!==e&&l&&(t.child.flags|=8192),ki(t,t.updateQueue),ze(t),null);case 4:return je(),e===null&&Lr(t.stateNode.containerInfo),ze(t),null;case 10:return Wt(t.type),ze(t),null;case 19:if(q(He),a=t.memoizedState,a===null)return ze(t),null;if(r=(t.flags&128)!==0,c=a.rendering,c===null)if(r)za(a,!1);else{if(Ue!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(c=Vi(e),c!==null){for(t.flags|=128,za(a,!1),e=c.updateQueue,t.updateQueue=e,ki(t,e),t.subtreeFlags=0,e=l,l=t.child;l!==null;)nf(l,e),l=l.sibling;return $(He,He.current&1|2),ge&&kt(t,a.treeForkCount),t.child}e=e.sibling}a.tail!==null&&ct()>nu&&(t.flags|=128,r=!0,za(a,!1),t.lanes=4194304)}else{if(!r)if(e=Vi(c),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,ki(t,e),za(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!ge)return ze(t),null}else 2*ct()-a.renderingStartTime>nu&&l!==536870912&&(t.flags|=128,r=!0,za(a,!1),t.lanes=4194304);a.isBackwards?(c.sibling=t.child,t.child=c):(e=a.last,e!==null?e.sibling=c:t.child=c,a.last=c)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=ct(),e.sibling=null,l=He.current,$(He,r?l&1|2:l&1),ge&&kt(t,a.treeForkCount),e):(ze(t),null);case 22:case 23:return pt(t),Vs(),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&&(ze(t),t.subtreeFlags&6&&(t.flags|=8192)):ze(t),l=t.updateQueue,l!==null&&ki(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&&q(tl),null;case 24:return l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Wt(Ve),ze(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Jp(e,t){switch(Es(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wt(Ve),je(),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(pt(t),t.alternate===null)throw Error(s(340));In()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(pt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));In()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(He),null;case 4:return je(),null;case 10:return Wt(t.type),null;case 22:case 23:return pt(t),Vs(),e!==null&&q(tl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wt(Ve),null;case 25:return null;default:return null}}function zd(e,t){switch(Es(t),t.tag){case 3:Wt(Ve),je();break;case 26:case 27:case 5:ri(t);break;case 4:je();break;case 31:t.memoizedState!==null&&pt(t);break;case 13:pt(t);break;case 19:q(He);break;case 10:Wt(t.type);break;case 22:case 23:pt(t),Vs(),e!==null&&q(tl);break;case 24:Wt(Ve)}}function Aa(e,t){try{var l=t.updateQueue,a=l!==null?l.lastEffect:null;if(a!==null){var r=a.next;l=r;do{if((l.tag&e)===e){a=void 0;var c=l.create,h=l.inst;a=c(),h.destroy=a}l=l.next}while(l!==r)}}catch(y){Re(t,t.return,y)}}function Tn(e,t,l){try{var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var c=r.next;a=c;do{if((a.tag&e)===e){var h=a.inst,y=h.destroy;if(y!==void 0){h.destroy=void 0,r=t;var b=l,N=y;try{N()}catch(L){Re(r,b,L)}}}a=a.next}while(a!==c)}}catch(L){Re(t,t.return,L)}}function Ad(e){var t=e.updateQueue;if(t!==null){var l=e.stateNode;try{Rf(t,l)}catch(a){Re(e,e.return,a)}}}function Dd(e,t,l){l.props=ul(e.type,e.memoizedProps),l.state=e.memoizedState;try{l.componentWillUnmount()}catch(a){Re(e,t,a)}}function Da(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(r){Re(e,t,r)}}function $t(e,t){var l=e.ref,a=e.refCleanup;if(l!==null)if(typeof a=="function")try{a()}catch(r){Re(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(r){Re(e,t,r)}else l.current=null}function Nd(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(r){Re(e,e.return,r)}}function pr(e,t,l){try{var a=e.stateNode;vv(a,e.type,l,t),a[nt]=t}catch(r){Re(e,e.return,r)}}function Ud(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Un(e.type)||e.tag===4}function vr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ud(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&&Un(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 yr(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=Zt));else if(a!==4&&(a===27&&Un(e.type)&&(l=e.stateNode,t=null),e=e.child,e!==null))for(yr(e,t,l),e=e.sibling;e!==null;)yr(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&&Un(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 jd(e){var t=e.stateNode,l=e.memoizedProps;try{for(var a=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Pe(t,a,l),t[Xe]=e,t[nt]=l}catch(c){Re(e,e.return,c)}}var an=!1,qe=!1,Sr=!1,Hd=typeof WeakSet=="function"?WeakSet:Set,Ye=null;function Pp(e,t){if(e=e.containerInfo,Fr=Su,e=Kc(e),ds(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 r=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{l.nodeType,c.nodeType}catch{l=null;break e}var h=0,y=-1,b=-1,N=0,L=0,F=e,U=null;t:for(;;){for(var j;F!==l||r!==0&&F.nodeType!==3||(y=h+r),F!==c||a!==0&&F.nodeType!==3||(b=h+a),F.nodeType===3&&(h+=F.nodeValue.length),(j=F.firstChild)!==null;)U=F,F=j;for(;;){if(F===e)break t;if(U===l&&++N===r&&(y=h),U===c&&++L===a&&(b=h),(j=F.nextSibling)!==null)break;F=U,U=F.parentNode}F=j}l=y===-1||b===-1?null:{start:y,end:b}}else l=null}l=l||{start:0,end:0}}else l=null;for(qr={focusedElem:e,selectionRange:l},Su=!1,Ye=t;Ye!==null;)if(t=Ye,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ye=e;else for(;Ye!==null;){switch(t=Ye,c=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(l=0;l<e.length;l++)r=e[l],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&c!==null){e=void 0,l=t,r=c.memoizedProps,c=c.memoizedState,a=l.stateNode;try{var Y=ul(l.type,r);e=a.getSnapshotBeforeUpdate(Y,c),a.__reactInternalSnapshotBeforeUpdate=e}catch(W){Re(l,l.return,W)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,l=e.nodeType,l===9)$r(e);else if(l===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":$r(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(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Ye=e;break}Ye=t.return}}function Ld(e,t,l){var a=l.flags;switch(l.tag){case 0:case 11:case 15:sn(e,l),a&4&&Aa(5,l);break;case 1:if(sn(e,l),a&4)if(e=l.stateNode,t===null)try{e.componentDidMount()}catch(h){Re(l,l.return,h)}else{var r=ul(l.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(h){Re(l,l.return,h)}}a&64&&Ad(l),a&512&&Da(l,l.return);break;case 3:if(sn(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{Rf(e,t)}catch(h){Re(l,l.return,h)}}break;case 27:t===null&&a&4&&jd(l);case 26:case 5:sn(e,l),t===null&&a&4&&Nd(l),a&512&&Da(l,l.return);break;case 12:sn(e,l);break;case 31:sn(e,l),a&4&&Fd(e,l);break;case 13:sn(e,l),a&4&&qd(e,l),a&64&&(e=l.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(l=iv.bind(null,l),_v(e,l))));break;case 22:if(a=l.memoizedState!==null||an,!a){t=t!==null&&t.memoizedState!==null||qe,r=an;var c=qe;an=a,(qe=t)&&!c?rn(e,l,(l.subtreeFlags&8772)!==0):sn(e,l),an=r,qe=c}break;case 30:break;default:sn(e,l)}}function Vd(e){var t=e.alternate;t!==null&&(e.alternate=null,Vd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ju(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 Ae=null,at=!1;function un(e,t,l){for(l=l.child;l!==null;)Bd(e,t,l),l=l.sibling}function Bd(e,t,l){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(na,l)}catch{}switch(l.tag){case 26:qe||$t(l,t),un(e,t,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:qe||$t(l,t);var a=Ae,r=at;Un(l.type)&&(Ae=l.stateNode,at=!1),un(e,t,l),qa(l.stateNode),Ae=a,at=r;break;case 5:qe||$t(l,t);case 6:if(a=Ae,r=at,Ae=null,un(e,t,l),Ae=a,at=r,Ae!==null)if(at)try{(Ae.nodeType===9?Ae.body:Ae.nodeName==="HTML"?Ae.ownerDocument.body:Ae).removeChild(l.stateNode)}catch(c){Re(l,t,c)}else try{Ae.removeChild(l.stateNode)}catch(c){Re(l,t,c)}break;case 18:Ae!==null&&(at?(e=Ae,Ah(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,l.stateNode),kl(e)):Ah(Ae,l.stateNode));break;case 4:a=Ae,r=at,Ae=l.stateNode.containerInfo,at=!0,un(e,t,l),Ae=a,at=r;break;case 0:case 11:case 14:case 15:Tn(2,l,t),qe||Tn(4,l,t),un(e,t,l);break;case 1:qe||($t(l,t),a=l.stateNode,typeof a.componentWillUnmount=="function"&&Dd(l,t,a)),un(e,t,l);break;case 21:un(e,t,l);break;case 22:qe=(a=qe)||l.memoizedState!==null,un(e,t,l),qe=a;break;default:un(e,t,l)}}function Fd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{kl(e)}catch(l){Re(t,t.return,l)}}}function qd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{kl(e)}catch(l){Re(t,t.return,l)}}function kp(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Hd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Hd),t;default:throw Error(s(435,e.tag))}}function Wi(e,t){var l=kp(e);t.forEach(function(a){if(!l.has(a)){l.add(a);var r=uv.bind(null,e,a);a.then(r,r)}})}function it(e,t){var l=t.deletions;if(l!==null)for(var a=0;a<l.length;a++){var r=l[a],c=e,h=t,y=h;e:for(;y!==null;){switch(y.tag){case 27:if(Un(y.type)){Ae=y.stateNode,at=!1;break e}break;case 5:Ae=y.stateNode,at=!1;break e;case 3:case 4:Ae=y.stateNode.containerInfo,at=!0;break e}y=y.return}if(Ae===null)throw Error(s(160));Bd(c,h,r),Ae=null,at=!1,c=r.alternate,c!==null&&(c.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Gd(t,e),t=t.sibling}var Ht=null;function Gd(e,t){var l=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:it(t,e),ut(e),a&4&&(Tn(3,e,e.return),Aa(3,e),Tn(5,e,e.return));break;case 1:it(t,e),ut(e),a&512&&(qe||l===null||$t(l,l.return)),a&64&&an&&(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 r=Ht;if(it(t,e),ut(e),a&512&&(qe||l===null||$t(l,l.return)),a&4){var c=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,r=r.ownerDocument||r;t:switch(a){case"title":c=r.getElementsByTagName("title")[0],(!c||c[ia]||c[Xe]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=r.createElement(a),r.head.insertBefore(c,r.querySelector("head > title"))),Pe(c,a,l),c[Xe]=e,$e(c),a=c;break e;case"link":var h=Gh("link","href",r).get(a+(l.href||""));if(h){for(var y=0;y<h.length;y++)if(c=h[y],c.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&c.getAttribute("rel")===(l.rel==null?null:l.rel)&&c.getAttribute("title")===(l.title==null?null:l.title)&&c.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){h.splice(y,1);break t}}c=r.createElement(a),Pe(c,a,l),r.head.appendChild(c);break;case"meta":if(h=Gh("meta","content",r).get(a+(l.content||""))){for(y=0;y<h.length;y++)if(c=h[y],c.getAttribute("content")===(l.content==null?null:""+l.content)&&c.getAttribute("name")===(l.name==null?null:l.name)&&c.getAttribute("property")===(l.property==null?null:l.property)&&c.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&c.getAttribute("charset")===(l.charSet==null?null:l.charSet)){h.splice(y,1);break t}}c=r.createElement(a),Pe(c,a,l),r.head.appendChild(c);break;default:throw Error(s(468,a))}c[Xe]=e,$e(c),a=c}e.stateNode=a}else Qh(r,e.type,e.stateNode);else e.stateNode=qh(r,a,e.memoizedProps);else c!==a?(c===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):c.count--,a===null?Qh(r,e.type,e.stateNode):qh(r,a,e.memoizedProps)):a===null&&e.stateNode!==null&&pr(e,e.memoizedProps,l.memoizedProps)}break;case 27:it(t,e),ut(e),a&512&&(qe||l===null||$t(l,l.return)),l!==null&&a&4&&pr(e,e.memoizedProps,l.memoizedProps);break;case 5:if(it(t,e),ut(e),a&512&&(qe||l===null||$t(l,l.return)),e.flags&32){r=e.stateNode;try{Cl(r,"")}catch(Y){Re(e,e.return,Y)}}a&4&&e.stateNode!=null&&(r=e.memoizedProps,pr(e,r,l!==null?l.memoizedProps:r)),a&1024&&(Sr=!0);break;case 6:if(it(t,e),ut(e),a&4){if(e.stateNode===null)throw Error(s(162));a=e.memoizedProps,l=e.stateNode;try{l.nodeValue=a}catch(Y){Re(e,e.return,Y)}}break;case 3:if(mu=null,r=Ht,Ht=hu(t.containerInfo),it(t,e),Ht=r,ut(e),a&4&&l!==null&&l.memoizedState.isDehydrated)try{kl(t.containerInfo)}catch(Y){Re(e,e.return,Y)}Sr&&(Sr=!1,Qd(e));break;case 4:a=Ht,Ht=hu(e.stateNode.containerInfo),it(t,e),ut(e),Ht=a;break;case 12:it(t,e),ut(e);break;case 31:it(t,e),ut(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Wi(e,a)));break;case 13:it(t,e),ut(e),e.child.flags&8192&&e.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(tu=ct()),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Wi(e,a)));break;case 22:r=e.memoizedState!==null;var b=l!==null&&l.memoizedState!==null,N=an,L=qe;if(an=N||r,qe=L||b,it(t,e),qe=L,an=N,ut(e),a&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(l===null||b||an||qe||sl(e)),l=null,t=e;;){if(t.tag===5||t.tag===26){if(l===null){b=l=t;try{if(c=b.stateNode,r)h=c.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{y=b.stateNode;var F=b.memoizedProps.style,U=F!=null&&F.hasOwnProperty("display")?F.display:null;y.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(Y){Re(b,b.return,Y)}}}else if(t.tag===6){if(l===null){b=t;try{b.stateNode.nodeValue=r?"":b.memoizedProps}catch(Y){Re(b,b.return,Y)}}}else if(t.tag===18){if(l===null){b=t;try{var j=b.stateNode;r?Dh(j,!0):Dh(b.stateNode,!1)}catch(Y){Re(b,b.return,Y)}}}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,Wi(e,l))));break;case 19:it(t,e),ut(e),a&4&&(a=e.updateQueue,a!==null&&(e.updateQueue=null,Wi(e,a)));break;case 30:break;case 21:break;default:it(t,e),ut(e)}}function ut(e){var t=e.flags;if(t&2){try{for(var l,a=e.return;a!==null;){if(Ud(a)){l=a;break}a=a.return}if(l==null)throw Error(s(160));switch(l.tag){case 27:var r=l.stateNode,c=vr(e);Ii(e,c,r);break;case 5:var h=l.stateNode;l.flags&32&&(Cl(h,""),l.flags&=-33);var y=vr(e);Ii(e,y,h);break;case 3:case 4:var b=l.stateNode.containerInfo,N=vr(e);yr(e,N,b);break;default:throw Error(s(161))}}catch(L){Re(e,e.return,L)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Qd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Qd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function sn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Ld(e,t.alternate,t),t=t.sibling}function sl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Tn(4,t,t.return),sl(t);break;case 1:$t(t,t.return);var l=t.stateNode;typeof l.componentWillUnmount=="function"&&Dd(t,t.return,l),sl(t);break;case 27:qa(t.stateNode);case 26:case 5:$t(t,t.return),sl(t);break;case 22:t.memoizedState===null&&sl(t);break;case 30:sl(t);break;default:sl(t)}e=e.sibling}}function rn(e,t,l){for(l=l&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var a=t.alternate,r=e,c=t,h=c.flags;switch(c.tag){case 0:case 11:case 15:rn(r,c,l),Aa(4,c);break;case 1:if(rn(r,c,l),a=c,r=a.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(N){Re(a,a.return,N)}if(a=c,r=a.updateQueue,r!==null){var y=a.stateNode;try{var b=r.shared.hiddenCallbacks;if(b!==null)for(r.shared.hiddenCallbacks=null,r=0;r<b.length;r++)Cf(b[r],y)}catch(N){Re(a,a.return,N)}}l&&h&64&&Ad(c),Da(c,c.return);break;case 27:jd(c);case 26:case 5:rn(r,c,l),l&&a===null&&h&4&&Nd(c),Da(c,c.return);break;case 12:rn(r,c,l);break;case 31:rn(r,c,l),l&&h&4&&Fd(r,c);break;case 13:rn(r,c,l),l&&h&4&&qd(r,c);break;case 22:c.memoizedState===null&&rn(r,c,l),Da(c,c.return);break;case 30:break;default:rn(r,c,l)}t=t.sibling}}function Cr(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&&ya(l))}function Rr(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ya(e))}function Lt(e,t,l,a){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)$d(e,t,l,a),t=t.sibling}function $d(e,t,l,a){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Lt(e,t,l,a),r&2048&&Aa(9,t);break;case 1:Lt(e,t,l,a);break;case 3:Lt(e,t,l,a),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ya(e)));break;case 12:if(r&2048){Lt(e,t,l,a),e=t.stateNode;try{var c=t.memoizedProps,h=c.id,y=c.onPostCommit;typeof y=="function"&&y(h,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Re(t,t.return,b)}}else Lt(e,t,l,a);break;case 31:Lt(e,t,l,a);break;case 13:Lt(e,t,l,a);break;case 23:break;case 22:c=t.stateNode,h=t.alternate,t.memoizedState!==null?c._visibility&2?Lt(e,t,l,a):Na(e,t):c._visibility&2?Lt(e,t,l,a):(c._visibility|=2,Fl(e,t,l,a,(t.subtreeFlags&10256)!==0||!1)),r&2048&&Cr(h,t);break;case 24:Lt(e,t,l,a),r&2048&&Rr(t.alternate,t);break;default:Lt(e,t,l,a)}}function Fl(e,t,l,a,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var c=e,h=t,y=l,b=a,N=h.flags;switch(h.tag){case 0:case 11:case 15:Fl(c,h,y,b,r),Aa(8,h);break;case 23:break;case 22:var L=h.stateNode;h.memoizedState!==null?L._visibility&2?Fl(c,h,y,b,r):Na(c,h):(L._visibility|=2,Fl(c,h,y,b,r)),r&&N&2048&&Cr(h.alternate,h);break;case 24:Fl(c,h,y,b,r),r&&N&2048&&Rr(h.alternate,h);break;default:Fl(c,h,y,b,r)}t=t.sibling}}function Na(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var l=e,a=t,r=a.flags;switch(a.tag){case 22:Na(l,a),r&2048&&Cr(a.alternate,a);break;case 24:Na(l,a),r&2048&&Rr(a.alternate,a);break;default:Na(l,a)}t=t.sibling}}var Ua=8192;function ql(e,t,l){if(e.subtreeFlags&Ua)for(e=e.child;e!==null;)Yd(e,t,l),e=e.sibling}function Yd(e,t,l){switch(e.tag){case 26:ql(e,t,l),e.flags&Ua&&e.memoizedState!==null&&Lv(l,Ht,e.memoizedState,e.memoizedProps);break;case 5:ql(e,t,l);break;case 3:case 4:var a=Ht;Ht=hu(e.stateNode.containerInfo),ql(e,t,l),Ht=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Ua,Ua=16777216,ql(e,t,l),Ua=a):ql(e,t,l));break;default:ql(e,t,l)}}function Xd(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 ja(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];Ye=a,Zd(a,e)}Xd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Kd(e),e=e.sibling}function Kd(e){switch(e.tag){case 0:case 11:case 15:ja(e),e.flags&2048&&Tn(9,e,e.return);break;case 3:ja(e);break;case 12:ja(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,eu(e)):ja(e);break;default:ja(e)}}function eu(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];Ye=a,Zd(a,e)}Xd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Tn(8,t,t.return),eu(t);break;case 22:l=t.stateNode,l._visibility&2&&(l._visibility&=-3,eu(t));break;default:eu(t)}e=e.sibling}}function Zd(e,t){for(;Ye!==null;){var l=Ye;switch(l.tag){case 0:case 11:case 15:Tn(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:ya(l.memoizedState.cache)}if(a=l.child,a!==null)a.return=l,Ye=a;else e:for(l=e;Ye!==null;){a=Ye;var r=a.sibling,c=a.return;if(Vd(a),a===l){Ye=null;break e}if(r!==null){r.return=c,Ye=r;break e}Ye=c}}}var Ip={getCacheForType:function(e){var t=Ze(Ve),l=t.data.get(e);return l===void 0&&(l=e(),t.data.set(e,l)),l},cacheSignal:function(){return Ze(Ve).controller.signal}},Wp=typeof WeakMap=="function"?WeakMap:Map,ye=0,Te=null,oe=null,de=0,Ce=0,vt=null,wn=!1,Gl=!1,br=!1,on=0,Ue=0,On=0,rl=0,Er=0,yt=0,Ql=0,Ha=null,st=null,xr=!1,tu=0,Jd=0,nu=1/0,lu=null,zn=null,Ge=0,An=null,$l=null,cn=0,_r=0,Mr=null,Pd=null,La=0,Tr=null;function St(){return(ye&2)!==0&&de!==0?de&-de:V.T!==null?Nr():fc()}function kd(){if(yt===0)if((de&536870912)===0||ge){var e=fi;fi<<=1,(fi&3932160)===0&&(fi=262144),yt=e}else yt=536870912;return e=mt.current,e!==null&&(e.flags|=32),yt}function rt(e,t,l){(e===Te&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)&&(Yl(e,0),Dn(e,de,yt,!1)),aa(e,l),((ye&2)===0||e!==Te)&&(e===Te&&((ye&2)===0&&(rl|=l),Ue===4&&Dn(e,de,yt,!1)),Yt(e))}function Id(e,t,l){if((ye&6)!==0)throw Error(s(327));var a=!l&&(t&127)===0&&(t&e.expiredLanes)===0||la(e,t),r=a?nv(e,t):Or(e,t,!0),c=a;do{if(r===0){Gl&&!a&&Dn(e,t,0,!1);break}else{if(l=e.current.alternate,c&&!ev(l)){r=Or(e,t,!1),c=!1;continue}if(r===2){if(c=t,e.errorRecoveryDisabledLanes&c)var h=0;else h=e.pendingLanes&-536870913,h=h!==0?h:h&536870912?536870912:0;if(h!==0){t=h;e:{var y=e;r=Ha;var b=y.current.memoizedState.isDehydrated;if(b&&(Yl(y,h).flags|=256),h=Or(y,h,!1),h!==2){if(br&&!b){y.errorRecoveryDisabledLanes|=c,rl|=c,r=4;break e}c=st,st=r,c!==null&&(st===null?st=c:st.push.apply(st,c))}r=h}if(c=!1,r!==2)continue}}if(r===1){Yl(e,0),Dn(e,t,0,!0);break}e:{switch(a=e,c=r,c){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Dn(a,t,yt,!wn);break e;case 2:st=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(r=tu+300-ct(),10<r)){if(Dn(a,t,yt,!wn),hi(a,0,!0)!==0)break e;cn=t,a.timeoutHandle=Oh(Wd.bind(null,a,l,st,lu,xr,t,yt,rl,Ql,wn,c,"Throttled",-0,0),r);break e}Wd(a,l,st,lu,xr,t,yt,rl,Ql,wn,c,null,-0,0)}}break}while(!0);Yt(e)}function Wd(e,t,l,a,r,c,h,y,b,N,L,F,U,j){if(e.timeoutHandle=-1,F=t.subtreeFlags,F&8192||(F&16785408)===16785408){F={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Zt},Yd(t,c,F);var Y=(c&62914560)===c?tu-ct():(c&4194048)===c?Jd-ct():0;if(Y=Vv(F,Y),Y!==null){cn=c,e.cancelPendingCommit=Y(sh.bind(null,e,t,c,l,a,r,h,y,b,L,F,null,U,j)),Dn(e,c,h,!N);return}}sh(e,t,c,l,a,r,h,y,b)}function ev(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 r=l[a],c=r.getSnapshot;r=r.value;try{if(!ht(c(),r))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 Dn(e,t,l,a){t&=~Er,t&=~rl,e.suspendedLanes|=t,e.pingedLanes&=~t,a&&(e.warmLanes|=t),a=e.expirationTimes;for(var r=t;0<r;){var c=31-dt(r),h=1<<c;a[c]=-1,r&=~h}l!==0&&rc(e,l,t)}function au(){return(ye&6)===0?(Va(0),!1):!0}function wr(){if(oe!==null){if(Ce===0)var e=oe.return;else e=oe,It=Wn=null,$s(e),jl=null,Ca=0,e=oe;for(;e!==null;)zd(e.alternate,e),e=e.return;oe=null}}function Yl(e,t){var l=e.timeoutHandle;l!==-1&&(e.timeoutHandle=-1,Cv(l)),l=e.cancelPendingCommit,l!==null&&(e.cancelPendingCommit=null,l()),cn=0,wr(),Te=e,oe=l=Pt(e.current,null),de=t,Ce=0,vt=null,wn=!1,Gl=la(e,t),br=!1,Ql=yt=Er=rl=On=Ue=0,st=Ha=null,xr=!1,(t&8)!==0&&(t|=t&32);var a=e.entangledLanes;if(a!==0)for(e=e.entanglements,a&=t;0<a;){var r=31-dt(a),c=1<<r;t|=e[r],a&=~c}return on=t,_i(),l}function eh(e,t){ue=null,V.H=wa,t===Ul||t===Ni?(t=pf(),Ce=3):t===Ds?(t=pf(),Ce=4):Ce=t===ur?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,vt=t,oe===null&&(Ue=1,Ki(e,Mt(t,e.current)))}function th(){var e=mt.current;return e===null?!0:(de&4194048)===de?zt===null:(de&62914560)===de||(de&536870912)!==0?e===zt:!1}function nh(){var e=V.H;return V.H=wa,e===null?wa:e}function lh(){var e=V.A;return V.A=Ip,e}function iu(){Ue=4,wn||(de&4194048)!==de&&mt.current!==null||(Gl=!0),(On&134217727)===0&&(rl&134217727)===0||Te===null||Dn(Te,de,yt,!1)}function Or(e,t,l){var a=ye;ye|=2;var r=nh(),c=lh();(Te!==e||de!==t)&&(lu=null,Yl(e,t)),t=!1;var h=Ue;e:do try{if(Ce!==0&&oe!==null){var y=oe,b=vt;switch(Ce){case 8:wr(),h=6;break e;case 3:case 2:case 9:case 6:mt.current===null&&(t=!0);var N=Ce;if(Ce=0,vt=null,Xl(e,y,b,N),l&&Gl){h=0;break e}break;default:N=Ce,Ce=0,vt=null,Xl(e,y,b,N)}}tv(),h=Ue;break}catch(L){eh(e,L)}while(!0);return t&&e.shellSuspendCounter++,It=Wn=null,ye=a,V.H=r,V.A=c,oe===null&&(Te=null,de=0,_i()),h}function tv(){for(;oe!==null;)ah(oe)}function nv(e,t){var l=ye;ye|=2;var a=nh(),r=lh();Te!==e||de!==t?(lu=null,nu=ct()+500,Yl(e,t)):Gl=la(e,t);e:do try{if(Ce!==0&&oe!==null){t=oe;var c=vt;t:switch(Ce){case 1:Ce=0,vt=null,Xl(e,t,c,1);break;case 2:case 9:if(gf(c)){Ce=0,vt=null,ih(t);break}t=function(){Ce!==2&&Ce!==9||Te!==e||(Ce=7),Yt(e)},c.then(t,t);break e;case 3:Ce=7;break e;case 4:Ce=5;break e;case 7:gf(c)?(Ce=0,vt=null,ih(t)):(Ce=0,vt=null,Xl(e,t,c,7));break;case 5:var h=null;switch(oe.tag){case 26:h=oe.memoizedState;case 5:case 27:var y=oe;if(h?$h(h):y.stateNode.complete){Ce=0,vt=null;var b=y.sibling;if(b!==null)oe=b;else{var N=y.return;N!==null?(oe=N,uu(N)):oe=null}break t}}Ce=0,vt=null,Xl(e,t,c,5);break;case 6:Ce=0,vt=null,Xl(e,t,c,6);break;case 8:wr(),Ue=6;break e;default:throw Error(s(462))}}lv();break}catch(L){eh(e,L)}while(!0);return It=Wn=null,V.H=a,V.A=r,ye=l,oe!==null?0:(Te=null,de=0,_i(),Ue)}function lv(){for(;oe!==null&&!Mm();)ah(oe)}function ah(e){var t=wd(e.alternate,e,on);e.memoizedProps=e.pendingProps,t===null?uu(e):oe=t}function ih(e){var t=e,l=t.alternate;switch(t.tag){case 15:case 0:t=bd(l,t,t.pendingProps,t.type,void 0,de);break;case 11:t=bd(l,t,t.pendingProps,t.type.render,t.ref,de);break;case 5:$s(t);default:zd(l,t),t=oe=nf(t,on),t=wd(l,t,on)}e.memoizedProps=e.pendingProps,t===null?uu(e):oe=t}function Xl(e,t,l,a){It=Wn=null,$s(t),jl=null,Ca=0;var r=t.return;try{if(Yp(e,r,t,l,de)){Ue=1,Ki(e,Mt(l,e.current)),oe=null;return}}catch(c){if(r!==null)throw oe=r,c;Ue=1,Ki(e,Mt(l,e.current)),oe=null;return}t.flags&32768?(ge||a===1?e=!0:Gl||(de&536870912)!==0?e=!1:(wn=e=!0,(a===2||a===9||a===3||a===6)&&(a=mt.current,a!==null&&a.tag===13&&(a.flags|=16384))),uh(t,e)):uu(t)}function uu(e){var t=e;do{if((t.flags&32768)!==0){uh(t,wn);return}e=t.return;var l=Zp(t.alternate,t,on);if(l!==null){oe=l;return}if(t=t.sibling,t!==null){oe=t;return}oe=t=e}while(t!==null);Ue===0&&(Ue=5)}function uh(e,t){do{var l=Jp(e.alternate,e);if(l!==null){l.flags&=32767,oe=l;return}if(l=e.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!t&&(e=e.sibling,e!==null)){oe=e;return}oe=e=l}while(e!==null);Ue=6,oe=null}function sh(e,t,l,a,r,c,h,y,b){e.cancelPendingCommit=null;do su();while(Ge!==0);if((ye&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(c=t.lanes|t.childLanes,c|=vs,Hm(e,l,c,h,y,b),e===Te&&(oe=Te=null,de=0),$l=t,An=e,cn=l,_r=c,Mr=r,Pd=a,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,sv(oi,function(){return dh(),null})):(e.callbackNode=null,e.callbackPriority=0),a=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||a){a=V.T,V.T=null,r=Q.p,Q.p=2,h=ye,ye|=4;try{Pp(e,t,l)}finally{ye=h,Q.p=r,V.T=a}}Ge=1,rh(),oh(),ch()}}function rh(){if(Ge===1){Ge=0;var e=An,t=$l,l=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||l){l=V.T,V.T=null;var a=Q.p;Q.p=2;var r=ye;ye|=4;try{Gd(t,e);var c=qr,h=Kc(e.containerInfo),y=c.focusedElem,b=c.selectionRange;if(h!==y&&y&&y.ownerDocument&&Xc(y.ownerDocument.documentElement,y)){if(b!==null&&ds(y)){var N=b.start,L=b.end;if(L===void 0&&(L=N),"selectionStart"in y)y.selectionStart=N,y.selectionEnd=Math.min(L,y.value.length);else{var F=y.ownerDocument||document,U=F&&F.defaultView||window;if(U.getSelection){var j=U.getSelection(),Y=y.textContent.length,W=Math.min(b.start,Y),_e=b.end===void 0?W:Math.min(b.end,Y);!j.extend&&W>_e&&(h=_e,_e=W,W=h);var O=Yc(y,W),x=Yc(y,_e);if(O&&x&&(j.rangeCount!==1||j.anchorNode!==O.node||j.anchorOffset!==O.offset||j.focusNode!==x.node||j.focusOffset!==x.offset)){var D=F.createRange();D.setStart(O.node,O.offset),j.removeAllRanges(),W>_e?(j.addRange(D),j.extend(x.node,x.offset)):(D.setEnd(x.node,x.offset),j.addRange(D))}}}}for(F=[],j=y;j=j.parentNode;)j.nodeType===1&&F.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<F.length;y++){var B=F[y];B.element.scrollLeft=B.left,B.element.scrollTop=B.top}}Su=!!Fr,qr=Fr=null}finally{ye=r,Q.p=a,V.T=l}}e.current=t,Ge=2}}function oh(){if(Ge===2){Ge=0;var e=An,t=$l,l=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||l){l=V.T,V.T=null;var a=Q.p;Q.p=2;var r=ye;ye|=4;try{Ld(e,t.alternate,t)}finally{ye=r,Q.p=a,V.T=l}}Ge=3}}function ch(){if(Ge===4||Ge===3){Ge=0,Tm();var e=An,t=$l,l=cn,a=Pd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?Ge=5:(Ge=0,$l=An=null,fh(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(zn=null),Ku(l),t=t.stateNode,ft&&typeof ft.onCommitFiberRoot=="function")try{ft.onCommitFiberRoot(na,t,void 0,(t.current.flags&128)===128)}catch{}if(a!==null){t=V.T,r=Q.p,Q.p=2,V.T=null;try{for(var c=e.onRecoverableError,h=0;h<a.length;h++){var y=a[h];c(y.value,{componentStack:y.stack})}}finally{V.T=t,Q.p=r}}(cn&3)!==0&&su(),Yt(e),r=e.pendingLanes,(l&261930)!==0&&(r&42)!==0?e===Tr?La++:(La=0,Tr=e):La=0,Va(0)}}function fh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ya(t)))}function su(){return rh(),oh(),ch(),dh()}function dh(){if(Ge!==5)return!1;var e=An,t=_r;_r=0;var l=Ku(cn),a=V.T,r=Q.p;try{Q.p=32>l?32:l,V.T=null,l=Mr,Mr=null;var c=An,h=cn;if(Ge=0,$l=An=null,cn=0,(ye&6)!==0)throw Error(s(331));var y=ye;if(ye|=4,Kd(c.current),$d(c,c.current,h,l),ye=y,Va(0,!1),ft&&typeof ft.onPostCommitFiberRoot=="function")try{ft.onPostCommitFiberRoot(na,c)}catch{}return!0}finally{Q.p=r,V.T=a,fh(e,t)}}function hh(e,t,l){t=Mt(l,t),t=ir(e.stateNode,t,2),e=xn(e,t,2),e!==null&&(aa(e,2),Yt(e))}function Re(e,t,l){if(e.tag===3)hh(e,e,l);else for(;t!==null;){if(t.tag===3){hh(t,e,l);break}else if(t.tag===1){var a=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(zn===null||!zn.has(a))){e=Mt(l,e),l=gd(2),a=xn(t,l,2),a!==null&&(md(l,a,t,e),aa(a,2),Yt(a));break}}t=t.return}}function zr(e,t,l){var a=e.pingCache;if(a===null){a=e.pingCache=new Wp;var r=new Set;a.set(t,r)}else r=a.get(t),r===void 0&&(r=new Set,a.set(t,r));r.has(l)||(br=!0,r.add(l),e=av.bind(null,e,t,l),t.then(e,e))}function av(e,t,l){var a=e.pingCache;a!==null&&a.delete(t),e.pingedLanes|=e.suspendedLanes&l,e.warmLanes&=~l,Te===e&&(de&l)===l&&(Ue===4||Ue===3&&(de&62914560)===de&&300>ct()-tu?(ye&2)===0&&Yl(e,0):Er|=l,Ql===de&&(Ql=0)),Yt(e)}function gh(e,t){t===0&&(t=sc()),e=Pn(e,t),e!==null&&(aa(e,t),Yt(e))}function iv(e){var t=e.memoizedState,l=0;t!==null&&(l=t.retryLane),gh(e,l)}function uv(e,t){var l=0;switch(e.tag){case 31:case 13:var a=e.stateNode,r=e.memoizedState;r!==null&&(l=r.retryLane);break;case 19:a=e.stateNode;break;case 22:a=e.stateNode._retryCache;break;default:throw Error(s(314))}a!==null&&a.delete(t),gh(e,l)}function sv(e,t){return Qu(e,t)}var ru=null,Kl=null,Ar=!1,ou=!1,Dr=!1,Nn=0;function Yt(e){e!==Kl&&e.next===null&&(Kl===null?ru=Kl=e:Kl=Kl.next=e),ou=!0,Ar||(Ar=!0,ov())}function Va(e,t){if(!Dr&&ou){Dr=!0;do for(var l=!1,a=ru;a!==null;){if(e!==0){var r=a.pendingLanes;if(r===0)var c=0;else{var h=a.suspendedLanes,y=a.pingedLanes;c=(1<<31-dt(42|e)+1)-1,c&=r&~(h&~y),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(l=!0,yh(a,c))}else c=de,c=hi(a,a===Te?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||la(a,c)||(l=!0,yh(a,c));a=a.next}while(l);Dr=!1}}function rv(){mh()}function mh(){ou=Ar=!1;var e=0;Nn!==0&&Sv()&&(e=Nn);for(var t=ct(),l=null,a=ru;a!==null;){var r=a.next,c=ph(a,t);c===0?(a.next=null,l===null?ru=r:l.next=r,r===null&&(Kl=l)):(l=a,(e!==0||(c&3)!==0)&&(ou=!0)),a=r}Ge!==0&&Ge!==5||Va(e),Nn!==0&&(Nn=0)}function ph(e,t){for(var l=e.suspendedLanes,a=e.pingedLanes,r=e.expirationTimes,c=e.pendingLanes&-62914561;0<c;){var h=31-dt(c),y=1<<h,b=r[h];b===-1?((y&l)===0||(y&a)!==0)&&(r[h]=jm(y,t)):b<=t&&(e.expiredLanes|=y),c&=~y}if(t=Te,l=de,l=hi(e,e===t?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a=e.callbackNode,l===0||e===t&&(Ce===2||Ce===9)||e.cancelPendingCommit!==null)return a!==null&&a!==null&&$u(a),e.callbackNode=null,e.callbackPriority=0;if((l&3)===0||la(e,l)){if(t=l&-l,t===e.callbackPriority)return t;switch(a!==null&&$u(a),Ku(l)){case 2:case 8:l=ic;break;case 32:l=oi;break;case 268435456:l=uc;break;default:l=oi}return a=vh.bind(null,e),l=Qu(l,a),e.callbackPriority=t,e.callbackNode=l,t}return a!==null&&a!==null&&$u(a),e.callbackPriority=2,e.callbackNode=null,2}function vh(e,t){if(Ge!==0&&Ge!==5)return e.callbackNode=null,e.callbackPriority=0,null;var l=e.callbackNode;if(su()&&e.callbackNode!==l)return null;var a=de;return a=hi(e,e===Te?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),a===0?null:(Id(e,a,t),ph(e,ct()),e.callbackNode!=null&&e.callbackNode===l?vh.bind(null,e):null)}function yh(e,t){if(su())return null;Id(e,t,!0)}function ov(){Rv(function(){(ye&6)!==0?Qu(ac,rv):mh()})}function Nr(){if(Nn===0){var e=Dl;e===0&&(e=ci,ci<<=1,(ci&261888)===0&&(ci=256)),Nn=e}return Nn}function Sh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:vi(""+e)}function Ch(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 cv(e,t,l,a,r){if(t==="submit"&&l&&l.stateNode===r){var c=Sh((r[nt]||null).action),h=a.submitter;h&&(t=(t=h[nt]||null)?Sh(t.formAction):h.getAttribute("formAction"),t!==null&&(c=t,h=null));var y=new Ri("action","action",null,a,r);e.push({event:y,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Nn!==0){var b=h?Ch(r,h):new FormData(r);Ws(l,{pending:!0,data:b,method:r.method,action:c},null,b)}}else typeof c=="function"&&(y.preventDefault(),b=h?Ch(r,h):new FormData(r),Ws(l,{pending:!0,data:b,method:r.method,action:c},c,b))},currentTarget:r}]})}}for(var Ur=0;Ur<ps.length;Ur++){var jr=ps[Ur],fv=jr.toLowerCase(),dv=jr[0].toUpperCase()+jr.slice(1);jt(fv,"on"+dv)}jt(Pc,"onAnimationEnd"),jt(kc,"onAnimationIteration"),jt(Ic,"onAnimationStart"),jt("dblclick","onDoubleClick"),jt("focusin","onFocus"),jt("focusout","onBlur"),jt(wp,"onTransitionRun"),jt(Op,"onTransitionStart"),jt(zp,"onTransitionCancel"),jt(Wc,"onTransitionEnd"),yl("onMouseEnter",["mouseout","mouseover"]),yl("onMouseLeave",["mouseout","mouseover"]),yl("onPointerEnter",["pointerout","pointerover"]),yl("onPointerLeave",["pointerout","pointerover"]),Xn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Xn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Xn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Xn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Xn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Xn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ba="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(" "),hv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ba));function Rh(e,t){t=(t&4)!==0;for(var l=0;l<e.length;l++){var a=e[l],r=a.event;a=a.listeners;e:{var c=void 0;if(t)for(var h=a.length-1;0<=h;h--){var y=a[h],b=y.instance,N=y.currentTarget;if(y=y.listener,b!==c&&r.isPropagationStopped())break e;c=y,r.currentTarget=N;try{c(r)}catch(L){xi(L)}r.currentTarget=null,c=b}else for(h=0;h<a.length;h++){if(y=a[h],b=y.instance,N=y.currentTarget,y=y.listener,b!==c&&r.isPropagationStopped())break e;c=y,r.currentTarget=N;try{c(r)}catch(L){xi(L)}r.currentTarget=null,c=b}}}}function ce(e,t){var l=t[Zu];l===void 0&&(l=t[Zu]=new Set);var a=e+"__bubble";l.has(a)||(bh(t,e,2,!1),l.add(a))}function Hr(e,t,l){var a=0;t&&(a|=4),bh(l,e,a,t)}var cu="_reactListening"+Math.random().toString(36).slice(2);function Lr(e){if(!e[cu]){e[cu]=!0,gc.forEach(function(l){l!=="selectionchange"&&(hv.has(l)||Hr(l,!1,e),Hr(l,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[cu]||(t[cu]=!0,Hr("selectionchange",!1,t))}}function bh(e,t,l,a){switch(kh(t)){case 2:var r=qv;break;case 8:r=Gv;break;default:r=Ir}l=r.bind(null,t,l,e),r=void 0,!ls||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),a?r!==void 0?e.addEventListener(t,l,{capture:!0,passive:r}):e.addEventListener(t,l,!0):r!==void 0?e.addEventListener(t,l,{passive:r}):e.addEventListener(t,l,!1)}function Vr(e,t,l,a,r){var c=a;if((t&1)===0&&(t&2)===0&&a!==null)e:for(;;){if(a===null)return;var h=a.tag;if(h===3||h===4){var y=a.stateNode.containerInfo;if(y===r)break;if(h===4)for(h=a.return;h!==null;){var b=h.tag;if((b===3||b===4)&&h.stateNode.containerInfo===r)return;h=h.return}for(;y!==null;){if(h=ml(y),h===null)return;if(b=h.tag,b===5||b===6||b===26||b===27){a=c=h;continue e}y=y.parentNode}}a=a.return}Mc(function(){var N=c,L=ts(l),F=[];e:{var U=ef.get(e);if(U!==void 0){var j=Ri,Y=e;switch(e){case"keypress":if(Si(l)===0)break e;case"keydown":case"keyup":j=up;break;case"focusin":Y="focus",j=ss;break;case"focusout":Y="blur",j=ss;break;case"beforeblur":case"afterblur":j=ss;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":j=Oc;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=Zm;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=op;break;case Pc:case kc:case Ic:j=km;break;case Wc:j=fp;break;case"scroll":case"scrollend":j=Xm;break;case"wheel":j=hp;break;case"copy":case"cut":case"paste":j=Wm;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=Ac;break;case"toggle":case"beforetoggle":j=mp}var W=(t&4)!==0,_e=!W&&(e==="scroll"||e==="scrollend"),O=W?U!==null?U+"Capture":null:U;W=[];for(var x=N,D;x!==null;){var B=x;if(D=B.stateNode,B=B.tag,B!==5&&B!==26&&B!==27||D===null||O===null||(B=sa(x,O),B!=null&&W.push(Fa(x,B,D))),_e)break;x=x.return}0<W.length&&(U=new j(U,Y,null,l,L),F.push({event:U,listeners:W}))}}if((t&7)===0){e:{if(U=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",U&&l!==es&&(Y=l.relatedTarget||l.fromElement)&&(ml(Y)||Y[gl]))break e;if((j||U)&&(U=L.window===L?L:(U=L.ownerDocument)?U.defaultView||U.parentWindow:window,j?(Y=l.relatedTarget||l.toElement,j=N,Y=Y?ml(Y):null,Y!==null&&(_e=f(Y),W=Y.tag,Y!==_e||W!==5&&W!==27&&W!==6)&&(Y=null)):(j=null,Y=N),j!==Y)){if(W=Oc,B="onMouseLeave",O="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(W=Ac,B="onPointerLeave",O="onPointerEnter",x="pointer"),_e=j==null?U:ua(j),D=Y==null?U:ua(Y),U=new W(B,x+"leave",j,l,L),U.target=_e,U.relatedTarget=D,B=null,ml(L)===N&&(W=new W(O,x+"enter",Y,l,L),W.target=D,W.relatedTarget=_e,B=W),_e=B,j&&Y)t:{for(W=gv,O=j,x=Y,D=0,B=O;B;B=W(B))D++;B=0;for(var k=x;k;k=W(k))B++;for(;0<D-B;)O=W(O),D--;for(;0<B-D;)x=W(x),B--;for(;D--;){if(O===x||x!==null&&O===x.alternate){W=O;break t}O=W(O),x=W(x)}W=null}else W=null;j!==null&&Eh(F,U,j,W,!1),Y!==null&&_e!==null&&Eh(F,_e,Y,W,!0)}}e:{if(U=N?ua(N):window,j=U.nodeName&&U.nodeName.toLowerCase(),j==="select"||j==="input"&&U.type==="file")var pe=Bc;else if(Lc(U))if(Fc)pe=_p;else{pe=Ep;var J=bp}else j=U.nodeName,!j||j.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?N&&Wu(N.elementType)&&(pe=Bc):pe=xp;if(pe&&(pe=pe(e,N))){Vc(F,pe,l,L);break e}J&&J(e,U,N),e==="focusout"&&N&&U.type==="number"&&N.memoizedProps.value!=null&&Iu(U,"number",U.value)}switch(J=N?ua(N):window,e){case"focusin":(Lc(J)||J.contentEditable==="true")&&(xl=J,hs=N,ma=null);break;case"focusout":ma=hs=xl=null;break;case"mousedown":gs=!0;break;case"contextmenu":case"mouseup":case"dragend":gs=!1,Zc(F,l,L);break;case"selectionchange":if(Tp)break;case"keydown":case"keyup":Zc(F,l,L)}var se;if(os)e:{switch(e){case"compositionstart":var he="onCompositionStart";break e;case"compositionend":he="onCompositionEnd";break e;case"compositionupdate":he="onCompositionUpdate";break e}he=void 0}else El?jc(e,l)&&(he="onCompositionEnd"):e==="keydown"&&l.keyCode===229&&(he="onCompositionStart");he&&(Dc&&l.locale!=="ko"&&(El||he!=="onCompositionStart"?he==="onCompositionEnd"&&El&&(se=Tc()):(vn=L,as="value"in vn?vn.value:vn.textContent,El=!0)),J=fu(N,he),0<J.length&&(he=new zc(he,e,null,l,L),F.push({event:he,listeners:J}),se?he.data=se:(se=Hc(l),se!==null&&(he.data=se)))),(se=vp?yp(e,l):Sp(e,l))&&(he=fu(N,"onBeforeInput"),0<he.length&&(J=new zc("onBeforeInput","beforeinput",null,l,L),F.push({event:J,listeners:he}),J.data=se)),cv(F,e,N,l,L)}Rh(F,t)})}function Fa(e,t,l){return{instance:e,listener:t,currentTarget:l}}function fu(e,t){for(var l=t+"Capture",a=[];e!==null;){var r=e,c=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||c===null||(r=sa(e,l),r!=null&&a.unshift(Fa(e,r,c)),r=sa(e,t),r!=null&&a.push(Fa(e,r,c))),e.tag===3)return a;e=e.return}return[]}function gv(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Eh(e,t,l,a,r){for(var c=t._reactName,h=[];l!==null&&l!==a;){var y=l,b=y.alternate,N=y.stateNode;if(y=y.tag,b!==null&&b===a)break;y!==5&&y!==26&&y!==27||N===null||(b=N,r?(N=sa(l,c),N!=null&&h.unshift(Fa(l,N,b))):r||(N=sa(l,c),N!=null&&h.push(Fa(l,N,b)))),l=l.return}h.length!==0&&e.push({event:t,listeners:h})}var mv=/\r\n?/g,pv=/\u0000|\uFFFD/g;function xh(e){return(typeof e=="string"?e:""+e).replace(mv,`
`).replace(pv,"")}function _h(e,t){return t=xh(t),xh(e)===t}function xe(e,t,l,a,r,c){switch(l){case"children":typeof a=="string"?t==="body"||t==="textarea"&&a===""||Cl(e,a):(typeof a=="number"||typeof a=="bigint")&&t!=="body"&&Cl(e,""+a);break;case"className":mi(e,"class",a);break;case"tabIndex":mi(e,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":mi(e,l,a);break;case"style":xc(e,a,c);break;case"data":if(t!=="object"){mi(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=vi(""+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 c=="function"&&(l==="formAction"?(t!=="input"&&xe(e,t,"name",r.name,r,null),xe(e,t,"formEncType",r.formEncType,r,null),xe(e,t,"formMethod",r.formMethod,r,null),xe(e,t,"formTarget",r.formTarget,r,null)):(xe(e,t,"encType",r.encType,r,null),xe(e,t,"method",r.method,r,null),xe(e,t,"target",r.target,r,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){e.removeAttribute(l);break}a=vi(""+a),e.setAttribute(l,a);break;case"onClick":a!=null&&(e.onclick=Zt);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("scrollend",e);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(l=a.__html,l!=null){if(r.children!=null)throw Error(s(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=vi(""+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":ce("beforetoggle",e),ce("toggle",e),gi(e,"popover",a);break;case"xlinkActuate":Kt(e,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Kt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Kt(e,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Kt(e,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Kt(e,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Kt(e,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Kt(e,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":gi(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=$m.get(l)||l,gi(e,l,a))}}function Br(e,t,l,a,r,c){switch(l){case"style":xc(e,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(s(61));if(l=a.__html,l!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=l}}break;case"children":typeof a=="string"?Cl(e,a):(typeof a=="number"||typeof a=="bigint")&&Cl(e,""+a);break;case"onScroll":a!=null&&ce("scroll",e);break;case"onScrollEnd":a!=null&&ce("scrollend",e);break;case"onClick":a!=null&&(e.onclick=Zt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!mc.hasOwnProperty(l))e:{if(l[0]==="o"&&l[1]==="n"&&(r=l.endsWith("Capture"),t=l.slice(2,r?l.length-7:void 0),c=e[nt]||null,c=c!=null?c[l]:null,typeof c=="function"&&e.removeEventListener(t,c,r),typeof a=="function")){typeof c!="function"&&c!==null&&(l in e?e[l]=null:e.hasAttribute(l)&&e.removeAttribute(l)),e.addEventListener(t,a,r);break e}l in e?e[l]=a:a===!0?e.setAttribute(l,""):gi(e,l,a)}}}function Pe(e,t,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ce("error",e),ce("load",e);var a=!1,r=!1,c;for(c in l)if(l.hasOwnProperty(c)){var h=l[c];if(h!=null)switch(c){case"src":a=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:xe(e,t,c,h,l,null)}}r&&xe(e,t,"srcSet",l.srcSet,l,null),a&&xe(e,t,"src",l.src,l,null);return;case"input":ce("invalid",e);var y=c=h=r=null,b=null,N=null;for(a in l)if(l.hasOwnProperty(a)){var L=l[a];if(L!=null)switch(a){case"name":r=L;break;case"type":h=L;break;case"checked":b=L;break;case"defaultChecked":N=L;break;case"value":c=L;break;case"defaultValue":y=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(s(137,t));break;default:xe(e,t,a,L,l,null)}}Cc(e,c,y,b,N,h,r,!1);return;case"select":ce("invalid",e),a=h=c=null;for(r in l)if(l.hasOwnProperty(r)&&(y=l[r],y!=null))switch(r){case"value":c=y;break;case"defaultValue":h=y;break;case"multiple":a=y;default:xe(e,t,r,y,l,null)}t=c,l=h,e.multiple=!!a,t!=null?Sl(e,!!a,t,!1):l!=null&&Sl(e,!!a,l,!0);return;case"textarea":ce("invalid",e),c=r=a=null;for(h in l)if(l.hasOwnProperty(h)&&(y=l[h],y!=null))switch(h){case"value":a=y;break;case"defaultValue":r=y;break;case"children":c=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(s(91));break;default:xe(e,t,h,y,l,null)}bc(e,a,r,c);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:xe(e,t,b,a,l,null)}return;case"dialog":ce("beforetoggle",e),ce("toggle",e),ce("cancel",e),ce("close",e);break;case"iframe":case"object":ce("load",e);break;case"video":case"audio":for(a=0;a<Ba.length;a++)ce(Ba[a],e);break;case"image":ce("error",e),ce("load",e);break;case"details":ce("toggle",e);break;case"embed":case"source":case"link":ce("error",e),ce("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(N in l)if(l.hasOwnProperty(N)&&(a=l[N],a!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:xe(e,t,N,a,l,null)}return;default:if(Wu(t)){for(L in l)l.hasOwnProperty(L)&&(a=l[L],a!==void 0&&Br(e,t,L,a,l,void 0));return}}for(y in l)l.hasOwnProperty(y)&&(a=l[y],a!=null&&xe(e,t,y,a,l,null))}function vv(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 r=null,c=null,h=null,y=null,b=null,N=null,L=null;for(j in l){var F=l[j];if(l.hasOwnProperty(j)&&F!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":b=F;default:a.hasOwnProperty(j)||xe(e,t,j,null,a,F)}}for(var U in a){var j=a[U];if(F=l[U],a.hasOwnProperty(U)&&(j!=null||F!=null))switch(U){case"type":c=j;break;case"name":r=j;break;case"checked":N=j;break;case"defaultChecked":L=j;break;case"value":h=j;break;case"defaultValue":y=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:j!==F&&xe(e,t,U,j,a,F)}}ku(e,h,y,b,N,L,c,r);return;case"select":j=h=y=U=null;for(c in l)if(b=l[c],l.hasOwnProperty(c)&&b!=null)switch(c){case"value":break;case"multiple":j=b;default:a.hasOwnProperty(c)||xe(e,t,c,null,a,b)}for(r in a)if(c=a[r],b=l[r],a.hasOwnProperty(r)&&(c!=null||b!=null))switch(r){case"value":U=c;break;case"defaultValue":y=c;break;case"multiple":h=c;default:c!==b&&xe(e,t,r,c,a,b)}t=y,l=h,a=j,U!=null?Sl(e,!!l,U,!1):!!a!=!!l&&(t!=null?Sl(e,!!l,t,!0):Sl(e,!!l,l?[]:"",!1));return;case"textarea":j=U=null;for(y in l)if(r=l[y],l.hasOwnProperty(y)&&r!=null&&!a.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:xe(e,t,y,null,a,r)}for(h in a)if(r=a[h],c=l[h],a.hasOwnProperty(h)&&(r!=null||c!=null))switch(h){case"value":U=r;break;case"defaultValue":j=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(s(91));break;default:r!==c&&xe(e,t,h,r,a,c)}Rc(e,U,j);return;case"option":for(var Y in l)if(U=l[Y],l.hasOwnProperty(Y)&&U!=null&&!a.hasOwnProperty(Y))switch(Y){case"selected":e.selected=!1;break;default:xe(e,t,Y,null,a,U)}for(b in a)if(U=a[b],j=l[b],a.hasOwnProperty(b)&&U!==j&&(U!=null||j!=null))switch(b){case"selected":e.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:xe(e,t,b,U,a,j)}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 W in l)U=l[W],l.hasOwnProperty(W)&&U!=null&&!a.hasOwnProperty(W)&&xe(e,t,W,null,a,U);for(N in a)if(U=a[N],j=l[N],a.hasOwnProperty(N)&&U!==j&&(U!=null||j!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,t));break;default:xe(e,t,N,U,a,j)}return;default:if(Wu(t)){for(var _e in l)U=l[_e],l.hasOwnProperty(_e)&&U!==void 0&&!a.hasOwnProperty(_e)&&Br(e,t,_e,void 0,a,U);for(L in a)U=a[L],j=l[L],!a.hasOwnProperty(L)||U===j||U===void 0&&j===void 0||Br(e,t,L,U,a,j);return}}for(var O in l)U=l[O],l.hasOwnProperty(O)&&U!=null&&!a.hasOwnProperty(O)&&xe(e,t,O,null,a,U);for(F in a)U=a[F],j=l[F],!a.hasOwnProperty(F)||U===j||U==null&&j==null||xe(e,t,F,U,a,j)}function Mh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function yv(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,l=performance.getEntriesByType("resource"),a=0;a<l.length;a++){var r=l[a],c=r.transferSize,h=r.initiatorType,y=r.duration;if(c&&y&&Mh(h)){for(h=0,y=r.responseEnd,a+=1;a<l.length;a++){var b=l[a],N=b.startTime;if(N>y)break;var L=b.transferSize,F=b.initiatorType;L&&Mh(F)&&(b=b.responseEnd,h+=L*(b<y?1:(y-N)/(b-N)))}if(--a,t+=8*(c+h)/(r.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 Fr=null,qr=null;function du(e){return e.nodeType===9?e:e.ownerDocument}function Th(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 wh(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 Gr(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 Qr=null;function Sv(){var e=window.event;return e&&e.type==="popstate"?e===Qr?!1:(Qr=e,!0):(Qr=null,!1)}var Oh=typeof setTimeout=="function"?setTimeout:void 0,Cv=typeof clearTimeout=="function"?clearTimeout:void 0,zh=typeof Promise=="function"?Promise:void 0,Rv=typeof queueMicrotask=="function"?queueMicrotask:typeof zh<"u"?function(e){return zh.resolve(null).then(e).catch(bv)}:Oh;function bv(e){setTimeout(function(){throw e})}function Un(e){return e==="head"}function Ah(e,t){var l=t,a=0;do{var r=l.nextSibling;if(e.removeChild(l),r&&r.nodeType===8)if(l=r.data,l==="/$"||l==="/&"){if(a===0){e.removeChild(r),kl(t);return}a--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")a++;else if(l==="html")qa(e.ownerDocument.documentElement);else if(l==="head"){l=e.ownerDocument.head,qa(l);for(var c=l.firstChild;c;){var h=c.nextSibling,y=c.nodeName;c[ia]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&c.rel.toLowerCase()==="stylesheet"||l.removeChild(c),c=h}}else l==="body"&&qa(e.ownerDocument.body);l=r}while(l);kl(t)}function Dh(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 $r(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":$r(l),Ju(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}e.removeChild(l)}}function Ev(e,t,l,a){for(;e.nodeType===1;){var r=l;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!a&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(a){if(!e[ia])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(c=e.getAttribute("rel"),c==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(c!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(c=e.getAttribute("src"),(c!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&c&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var c=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===c)return e}else return e;if(e=At(e.nextSibling),e===null)break}return null}function xv(e,t,l){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!l||(e=At(e.nextSibling),e===null))return null;return e}function Nh(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=At(e.nextSibling),e===null))return null;return e}function Yr(e){return e.data==="$?"||e.data==="$~"}function Xr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function _v(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 At(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 Kr=null;function Uh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var l=e.data;if(l==="/$"||l==="/&"){if(t===0)return At(e.nextSibling);t--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||t++}e=e.nextSibling}return null}function jh(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 Hh(e,t,l){switch(t=du(l),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function qa(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ju(e)}var Dt=new Map,Lh=new Set;function hu(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var fn=Q.d;Q.d={f:Mv,r:Tv,D:wv,C:Ov,L:zv,m:Av,X:Nv,S:Dv,M:Uv};function Mv(){var e=fn.f(),t=au();return e||t}function Tv(e){var t=pl(e);t!==null&&t.tag===5&&t.type==="form"?ed(t):fn.r(e)}var Zl=typeof document>"u"?null:document;function Vh(e,t,l){var a=Zl;if(a&&typeof t=="string"&&t){var r=xt(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof l=="string"&&(r+='[crossorigin="'+l+'"]'),Lh.has(r)||(Lh.add(r),e={rel:e,crossOrigin:l,href:t},a.querySelector(r)===null&&(t=a.createElement("link"),Pe(t,"link",e),$e(t),a.head.appendChild(t)))}}function wv(e){fn.D(e),Vh("dns-prefetch",e,null)}function Ov(e,t){fn.C(e,t),Vh("preconnect",e,t)}function zv(e,t,l){fn.L(e,t,l);var a=Zl;if(a&&e&&t){var r='link[rel="preload"][as="'+xt(t)+'"]';t==="image"&&l&&l.imageSrcSet?(r+='[imagesrcset="'+xt(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(r+='[imagesizes="'+xt(l.imageSizes)+'"]')):r+='[href="'+xt(e)+'"]';var c=r;switch(t){case"style":c=Jl(e);break;case"script":c=Pl(e)}Dt.has(c)||(e=C({rel:"preload",href:t==="image"&&l&&l.imageSrcSet?void 0:e,as:t},l),Dt.set(c,e),a.querySelector(r)!==null||t==="style"&&a.querySelector(Ga(c))||t==="script"&&a.querySelector(Qa(c))||(t=a.createElement("link"),Pe(t,"link",e),$e(t),a.head.appendChild(t)))}}function Av(e,t){fn.m(e,t);var l=Zl;if(l&&e){var a=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+xt(a)+'"][href="'+xt(e)+'"]',c=r;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=Pl(e)}if(!Dt.has(c)&&(e=C({rel:"modulepreload",href:e},t),Dt.set(c,e),l.querySelector(r)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(Qa(c)))return}a=l.createElement("link"),Pe(a,"link",e),$e(a),l.head.appendChild(a)}}}function Dv(e,t,l){fn.S(e,t,l);var a=Zl;if(a&&e){var r=vl(a).hoistableStyles,c=Jl(e);t=t||"default";var h=r.get(c);if(!h){var y={loading:0,preload:null};if(h=a.querySelector(Ga(c)))y.loading=5;else{e=C({rel:"stylesheet",href:e,"data-precedence":t},l),(l=Dt.get(c))&&Zr(e,l);var b=h=a.createElement("link");$e(b),Pe(b,"link",e),b._p=new Promise(function(N,L){b.onload=N,b.onerror=L}),b.addEventListener("load",function(){y.loading|=1}),b.addEventListener("error",function(){y.loading|=2}),y.loading|=4,gu(h,t,a)}h={type:"stylesheet",instance:h,count:1,state:y},r.set(c,h)}}}function Nv(e,t){fn.X(e,t);var l=Zl;if(l&&e){var a=vl(l).hoistableScripts,r=Pl(e),c=a.get(r);c||(c=l.querySelector(Qa(r)),c||(e=C({src:e,async:!0},t),(t=Dt.get(r))&&Jr(e,t),c=l.createElement("script"),$e(c),Pe(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(r,c))}}function Uv(e,t){fn.M(e,t);var l=Zl;if(l&&e){var a=vl(l).hoistableScripts,r=Pl(e),c=a.get(r);c||(c=l.querySelector(Qa(r)),c||(e=C({src:e,async:!0,type:"module"},t),(t=Dt.get(r))&&Jr(e,t),c=l.createElement("script"),$e(c),Pe(c,"link",e),l.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(r,c))}}function Bh(e,t,l,a){var r=(r=re.current)?hu(r):null;if(!r)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(t=Jl(l.href),l=vl(r).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=Jl(l.href);var c=vl(r).hoistableStyles,h=c.get(e);if(h||(r=r.ownerDocument||r,h={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,h),(c=r.querySelector(Ga(e)))&&!c._p&&(h.instance=c,h.state.loading=5),Dt.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},Dt.set(e,l),c||jv(r,e,l,h.state))),t&&a===null)throw Error(s(528,""));return h}if(t&&a!==null)throw Error(s(529,""));return null;case"script":return t=l.async,l=l.src,typeof l=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=Pl(l),l=vl(r).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(s(444,e))}}function Jl(e){return'href="'+xt(e)+'"'}function Ga(e){return'link[rel="stylesheet"]['+e+"]"}function Fh(e){return C({},e,{"data-precedence":e.precedence,precedence:null})}function jv(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}),Pe(t,"link",l),$e(t),e.head.appendChild(t))}function Pl(e){return'[src="'+xt(e)+'"]'}function Qa(e){return"script[async]"+e}function qh(e,t,l){if(t.count++,t.instance===null)switch(t.type){case"style":var a=e.querySelector('style[data-href~="'+xt(l.href)+'"]');if(a)return t.instance=a,$e(a),a;var r=C({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return a=(e.ownerDocument||e).createElement("style"),$e(a),Pe(a,"style",r),gu(a,l.precedence,e),t.instance=a;case"stylesheet":r=Jl(l.href);var c=e.querySelector(Ga(r));if(c)return t.state.loading|=4,t.instance=c,$e(c),c;a=Fh(l),(r=Dt.get(r))&&Zr(a,r),c=(e.ownerDocument||e).createElement("link"),$e(c);var h=c;return h._p=new Promise(function(y,b){h.onload=y,h.onerror=b}),Pe(c,"link",a),t.state.loading|=4,gu(c,l.precedence,e),t.instance=c;case"script":return c=Pl(l.src),(r=e.querySelector(Qa(c)))?(t.instance=r,$e(r),r):(a=l,(r=Dt.get(c))&&(a=C({},l),Jr(a,r)),e=e.ownerDocument||e,r=e.createElement("script"),$e(r),Pe(r,"link",a),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(a=t.instance,t.state.loading|=4,gu(a,l.precedence,e));return t.instance}function gu(e,t,l){for(var a=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=a.length?a[a.length-1]:null,c=r,h=0;h<a.length;h++){var y=a[h];if(y.dataset.precedence===t)c=y;else if(c!==r)break}c?c.parentNode.insertBefore(e,c.nextSibling):(t=l.nodeType===9?l.head:l,t.insertBefore(e,t.firstChild))}function Zr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Jr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var mu=null;function Gh(e,t,l){if(mu===null){var a=new Map,r=mu=new Map;r.set(l,a)}else r=mu,a=r.get(l),a||(a=new Map,r.set(l,a));if(a.has(e))return a;for(a.set(e,null),l=l.getElementsByTagName(e),r=0;r<l.length;r++){var c=l[r];if(!(c[ia]||c[Xe]||e==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var h=c.getAttribute(t)||"";h=e+h;var y=a.get(h);y?y.push(c):a.set(h,[c])}}return a}function Qh(e,t,l){e=e.ownerDocument||e,e.head.insertBefore(l,t==="title"?e.querySelector("head > title"):null)}function Hv(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 $h(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Lv(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 r=Jl(a.href),c=t.querySelector(Ga(r));if(c){t=c._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=pu.bind(e),t.then(e,e)),l.state.loading|=4,l.instance=c,$e(c);return}c=t.ownerDocument||t,a=Fh(a),(r=Dt.get(r))&&Zr(a,r),c=c.createElement("link"),$e(c);var h=c;h._p=new Promise(function(y,b){h.onload=y,h.onerror=b}),Pe(c,"link",a),l.instance=c}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(l,t),(t=l.state.preload)&&(l.state.loading&3)===0&&(e.count++,l=pu.bind(e),t.addEventListener("load",l),t.addEventListener("error",l))}}var Pr=0;function Vv(e,t){return e.stylesheets&&e.count===0&&yu(e,e.stylesheets),0<e.count||0<e.imgCount?function(l){var a=setTimeout(function(){if(e.stylesheets&&yu(e,e.stylesheets),e.unsuspend){var c=e.unsuspend;e.unsuspend=null,c()}},6e4+t);0<e.imgBytes&&Pr===0&&(Pr=62500*yv());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&yu(e,e.stylesheets),e.unsuspend)){var c=e.unsuspend;e.unsuspend=null,c()}},(e.imgBytes>Pr?50:800)+t);return e.unsuspend=l,function(){e.unsuspend=null,clearTimeout(a),clearTimeout(r)}}:null}function pu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)yu(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var vu=null;function yu(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vu=new Map,t.forEach(Bv,e),vu=null,pu.call(e))}function Bv(e,t){if(!(t.state.loading&4)){var l=vu.get(e);if(l)var a=l.get(null);else{l=new Map,vu.set(e,l);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<r.length;c++){var h=r[c];(h.nodeName==="LINK"||h.getAttribute("media")!=="not all")&&(l.set(h.dataset.precedence,h),a=h)}a&&l.set(null,a)}r=t.instance,h=r.getAttribute("data-precedence"),c=l.get(h)||a,c===a&&l.set(null,r),l.set(h,r),this.count++,a=pu.bind(this),r.addEventListener("load",a),r.addEventListener("error",a),c?c.parentNode.insertBefore(r,c.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var $a={$$typeof:G,Provider:null,Consumer:null,_currentValue:ne,_currentValue2:ne,_threadCount:0};function Fv(e,t,l,a,r,c,h,y,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=Yu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Yu(0),this.hiddenUpdates=Yu(null),this.identifierPrefix=a,this.onUncaughtError=r,this.onCaughtError=c,this.onRecoverableError=h,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Yh(e,t,l,a,r,c,h,y,b,N,L,F){return e=new Fv(e,t,l,h,b,N,L,F,y),t=1,c===!0&&(t|=24),c=gt(3,null,null,t),e.current=c,c.stateNode=e,t=Os(),t.refCount++,e.pooledCache=t,t.refCount++,c.memoizedState={element:a,isDehydrated:l,cache:t},Ns(c),e}function Xh(e){return e?(e=Tl,e):Tl}function Kh(e,t,l,a,r,c){r=Xh(r),a.context===null?a.context=r:a.pendingContext=r,a=En(t),a.payload={element:l},c=c===void 0?null:c,c!==null&&(a.callback=c),l=xn(e,a,t),l!==null&&(rt(l,e,t),ba(l,e,t))}function Zh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var l=e.retryLane;e.retryLane=l!==0&&l<t?l:t}}function kr(e,t){Zh(e,t),(e=e.alternate)&&Zh(e,t)}function Jh(e){if(e.tag===13||e.tag===31){var t=Pn(e,67108864);t!==null&&rt(t,e,67108864),kr(e,67108864)}}function Ph(e){if(e.tag===13||e.tag===31){var t=St();t=Xu(t);var l=Pn(e,t);l!==null&&rt(l,e,t),kr(e,t)}}var Su=!0;function qv(e,t,l,a){var r=V.T;V.T=null;var c=Q.p;try{Q.p=2,Ir(e,t,l,a)}finally{Q.p=c,V.T=r}}function Gv(e,t,l,a){var r=V.T;V.T=null;var c=Q.p;try{Q.p=8,Ir(e,t,l,a)}finally{Q.p=c,V.T=r}}function Ir(e,t,l,a){if(Su){var r=Wr(a);if(r===null)Vr(e,t,a,Cu,l),Ih(e,a);else if($v(r,e,t,l,a))a.stopPropagation();else if(Ih(e,a),t&4&&-1<Qv.indexOf(e)){for(;r!==null;){var c=pl(r);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var h=Yn(c.pendingLanes);if(h!==0){var y=c;for(y.pendingLanes|=2,y.entangledLanes|=2;h;){var b=1<<31-dt(h);y.entanglements[1]|=b,h&=~b}Yt(c),(ye&6)===0&&(nu=ct()+500,Va(0))}}break;case 31:case 13:y=Pn(c,2),y!==null&&rt(y,c,2),au(),kr(c,2)}if(c=Wr(a),c===null&&Vr(e,t,a,Cu,l),c===r)break;r=c}r!==null&&a.stopPropagation()}else Vr(e,t,a,null,l)}}function Wr(e){return e=ts(e),eo(e)}var Cu=null;function eo(e){if(Cu=null,e=ml(e),e!==null){var t=f(e);if(t===null)e=null;else{var l=t.tag;if(l===13){if(e=d(t),e!==null)return e;e=null}else if(l===31){if(e=g(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 Cu=e,null}function kh(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(wm()){case ac:return 2;case ic:return 8;case oi:case Om:return 32;case uc:return 268435456;default:return 32}default:return 32}}var to=!1,jn=null,Hn=null,Ln=null,Ya=new Map,Xa=new Map,Vn=[],Qv="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 Ih(e,t){switch(e){case"focusin":case"focusout":jn=null;break;case"dragenter":case"dragleave":Hn=null;break;case"mouseover":case"mouseout":Ln=null;break;case"pointerover":case"pointerout":Ya.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xa.delete(t.pointerId)}}function Ka(e,t,l,a,r,c){return e===null||e.nativeEvent!==c?(e={blockedOn:t,domEventName:l,eventSystemFlags:a,nativeEvent:c,targetContainers:[r]},t!==null&&(t=pl(t),t!==null&&Jh(t)),e):(e.eventSystemFlags|=a,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function $v(e,t,l,a,r){switch(t){case"focusin":return jn=Ka(jn,e,t,l,a,r),!0;case"dragenter":return Hn=Ka(Hn,e,t,l,a,r),!0;case"mouseover":return Ln=Ka(Ln,e,t,l,a,r),!0;case"pointerover":var c=r.pointerId;return Ya.set(c,Ka(Ya.get(c)||null,e,t,l,a,r)),!0;case"gotpointercapture":return c=r.pointerId,Xa.set(c,Ka(Xa.get(c)||null,e,t,l,a,r)),!0}return!1}function Wh(e){var t=ml(e.target);if(t!==null){var l=f(t);if(l!==null){if(t=l.tag,t===13){if(t=d(l),t!==null){e.blockedOn=t,dc(e.priority,function(){Ph(l)});return}}else if(t===31){if(t=g(l),t!==null){e.blockedOn=t,dc(e.priority,function(){Ph(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 Ru(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var l=Wr(e.nativeEvent);if(l===null){l=e.nativeEvent;var a=new l.constructor(l.type,l);es=a,l.target.dispatchEvent(a),es=null}else return t=pl(l),t!==null&&Jh(t),e.blockedOn=l,!1;t.shift()}return!0}function eg(e,t,l){Ru(e)&&l.delete(t)}function Yv(){to=!1,jn!==null&&Ru(jn)&&(jn=null),Hn!==null&&Ru(Hn)&&(Hn=null),Ln!==null&&Ru(Ln)&&(Ln=null),Ya.forEach(eg),Xa.forEach(eg)}function bu(e,t){e.blockedOn===t&&(e.blockedOn=null,to||(to=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Yv)))}var Eu=null;function tg(e){Eu!==e&&(Eu=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Eu===e&&(Eu=null);for(var t=0;t<e.length;t+=3){var l=e[t],a=e[t+1],r=e[t+2];if(typeof a!="function"){if(eo(a||l)===null)continue;break}var c=pl(l);c!==null&&(e.splice(t,3),t-=3,Ws(c,{pending:!0,data:r,method:l.method,action:a},a,r))}}))}function kl(e){function t(b){return bu(b,e)}jn!==null&&bu(jn,e),Hn!==null&&bu(Hn,e),Ln!==null&&bu(Ln,e),Ya.forEach(t),Xa.forEach(t);for(var l=0;l<Vn.length;l++){var a=Vn[l];a.blockedOn===e&&(a.blockedOn=null)}for(;0<Vn.length&&(l=Vn[0],l.blockedOn===null);)Wh(l),l.blockedOn===null&&Vn.shift();if(l=(e.ownerDocument||e).$$reactFormReplay,l!=null)for(a=0;a<l.length;a+=3){var r=l[a],c=l[a+1],h=r[nt]||null;if(typeof c=="function")h||tg(l);else if(h){var y=null;if(c&&c.hasAttribute("formAction")){if(r=c,h=c[nt]||null)y=h.formAction;else if(eo(r)!==null)continue}else y=h.action;typeof y=="function"?l[a+1]=y:(l.splice(a,3),a-=3),tg(l)}}}function ng(){function e(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(h){return r=h})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),a||setTimeout(l,20)}function l(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,r=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),r!==null&&(r(),r=null)}}}function no(e){this._internalRoot=e}xu.prototype.render=no.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var l=t.current,a=St();Kh(l,a,e,t,null,null)},xu.prototype.unmount=no.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Kh(e.current,2,null,e,null,null),au(),t[gl]=null}};function xu(e){this._internalRoot=e}xu.prototype.unstable_scheduleHydration=function(e){if(e){var t=fc();e={blockedOn:null,target:e,priority:t};for(var l=0;l<Vn.length&&t!==0&&t<Vn[l].priority;l++);Vn.splice(l,0,e),l===0&&Wh(e)}};var lg=u.version;if(lg!=="19.2.0")throw Error(s(527,lg,"19.2.0"));Q.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=m(t),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var Xv={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _u=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_u.isDisabled&&_u.supportsFiber)try{na=_u.inject(Xv),ft=_u}catch{}}return Ja.createRoot=function(e,t){if(!o(e))throw Error(s(299));var l=!1,a="",r=cd,c=fd,h=dd;return t!=null&&(t.unstable_strictMode===!0&&(l=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(c=t.onCaughtError),t.onRecoverableError!==void 0&&(h=t.onRecoverableError)),t=Yh(e,1,!1,null,null,l,a,null,r,c,h,ng),e[gl]=t.current,Lr(e),new no(t)},Ja.hydrateRoot=function(e,t,l){if(!o(e))throw Error(s(299));var a=!1,r="",c=cd,h=fd,y=dd,b=null;return l!=null&&(l.unstable_strictMode===!0&&(a=!0),l.identifierPrefix!==void 0&&(r=l.identifierPrefix),l.onUncaughtError!==void 0&&(c=l.onUncaughtError),l.onCaughtError!==void 0&&(h=l.onCaughtError),l.onRecoverableError!==void 0&&(y=l.onRecoverableError),l.formState!==void 0&&(b=l.formState)),t=Yh(e,1,!0,t,l??null,a,r,b,c,h,y,ng),t.context=Xh(null),l=t.current,a=St(),a=Xu(a),r=En(a),r.callback=null,xn(l,r,a),l=a,t.current.lanes=l,aa(t,l),Yt(t),e[gl]=t.current,Lr(e),new xu(t)},Ja.version="19.2.0",Ja}var hg;function ny(){if(hg)return io.exports;hg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(u){console.error(u)}}return n(),io.exports=ty(),io.exports}var ly=ny();const ay=Vg(ly);/**
 * react-router v7.9.4
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var gg="popstate";function iy(n={}){function u(o,f){let{pathname:d="/",search:g="",hash:p=""}=dl(o.location.hash.substring(1));return!d.startsWith("/")&&!d.startsWith(".")&&(d="/"+d),So("",{pathname:d,search:g,hash:p},f.state&&f.state.usr||null,f.state&&f.state.key||"default")}function i(o,f){let d=o.document.querySelector("base"),g="";if(d&&d.getAttribute("href")){let p=o.location.href,m=p.indexOf("#");g=m===-1?p:p.slice(0,m)}return g+"#"+(typeof f=="string"?f:Wa(f))}function s(o,f){Ct(o.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(f)})`)}return sy(u,i,s,n)}function De(n,u){if(n===!1||n===null||typeof n>"u")throw new Error(u)}function Ct(n,u){if(!n){typeof console<"u"&&console.warn(u);try{throw new Error(u)}catch{}}}function uy(){return Math.random().toString(36).substring(2,10)}function mg(n,u){return{usr:n.state,key:n.key,idx:u}}function So(n,u,i=null,s){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof u=="string"?dl(u):u,state:i,key:u&&u.key||s||uy()}}function Wa({pathname:n="/",search:u="",hash:i=""}){return u&&u!=="?"&&(n+=u.charAt(0)==="?"?u:"?"+u),i&&i!=="#"&&(n+=i.charAt(0)==="#"?i:"#"+i),n}function dl(n){let u={};if(n){let i=n.indexOf("#");i>=0&&(u.hash=n.substring(i),n=n.substring(0,i));let s=n.indexOf("?");s>=0&&(u.search=n.substring(s),n=n.substring(0,s)),n&&(u.pathname=n)}return u}function sy(n,u,i,s={}){let{window:o=document.defaultView,v5Compat:f=!1}=s,d=o.history,g="POP",p=null,m=v();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function v(){return(d.state||{idx:null}).idx}function C(){g="POP";let z=v(),A=z==null?null:z-m;m=z,p&&p({action:g,location:_.location,delta:A})}function R(z,A){g="PUSH";let H=So(_.location,z,A);i&&i(H,z),m=v()+1;let G=mg(H,m),X=_.createHref(H);try{d.pushState(G,"",X)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;o.location.assign(X)}f&&p&&p({action:g,location:_.location,delta:1})}function S(z,A){g="REPLACE";let H=So(_.location,z,A);i&&i(H,z),m=v();let G=mg(H,m),X=_.createHref(H);d.replaceState(G,"",X),f&&p&&p({action:g,location:_.location,delta:0})}function E(z){return ry(z)}let _={get action(){return g},get location(){return n(o,d)},listen(z){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(gg,C),p=z,()=>{o.removeEventListener(gg,C),p=null}},createHref(z){return u(o,z)},createURL:E,encodeLocation(z){let A=E(z);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:R,replace:S,go(z){return d.go(z)}};return _}function ry(n,u=!1){let i="http://localhost";typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),De(i,"No window.location.(origin|href) available to create URL");let s=typeof n=="string"?n:Wa(n);return s=s.replace(/ $/,"%20"),!u&&s.startsWith("//")&&(s=i+s),new URL(s,i)}function Fg(n,u,i="/"){return oy(n,u,i,!1)}function oy(n,u,i,s){let o=typeof u=="string"?dl(u):u,f=gn(o.pathname||"/",i);if(f==null)return null;let d=qg(n);cy(d);let g=null;for(let p=0;g==null&&p<d.length;++p){let m=Ry(f);g=Sy(d[p],m,s)}return g}function qg(n,u=[],i=[],s="",o=!1){let f=(d,g,p=o,m)=>{let v={relativePath:m===void 0?d.path||"":m,caseSensitive:d.caseSensitive===!0,childrenIndex:g,route:d};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(s)&&p)return;De(v.relativePath.startsWith(s),`Absolute route path "${v.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(s.length)}let C=hn([s,v.relativePath]),R=i.concat(v);d.children&&d.children.length>0&&(De(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${C}".`),qg(d.children,u,R,C,p)),!(d.path==null&&!d.index)&&u.push({path:C,score:vy(C,d.index),routesMeta:R})};return n.forEach((d,g)=>{if(d.path===""||!d.path?.includes("?"))f(d,g);else for(let p of Gg(d.path))f(d,g,!0,p)}),u}function Gg(n){let u=n.split("/");if(u.length===0)return[];let[i,...s]=u,o=i.endsWith("?"),f=i.replace(/\?$/,"");if(s.length===0)return o?[f,""]:[f];let d=Gg(s.join("/")),g=[];return g.push(...d.map(p=>p===""?f:[f,p].join("/"))),o&&g.push(...d),g.map(p=>n.startsWith("/")&&p===""?"/":p)}function cy(n){n.sort((u,i)=>u.score!==i.score?i.score-u.score:yy(u.routesMeta.map(s=>s.childrenIndex),i.routesMeta.map(s=>s.childrenIndex)))}var fy=/^:[\w-]+$/,dy=3,hy=2,gy=1,my=10,py=-2,pg=n=>n==="*";function vy(n,u){let i=n.split("/"),s=i.length;return i.some(pg)&&(s+=py),u&&(s+=hy),i.filter(o=>!pg(o)).reduce((o,f)=>o+(fy.test(f)?dy:f===""?gy:my),s)}function yy(n,u){return n.length===u.length&&n.slice(0,-1).every((s,o)=>s===u[o])?n[n.length-1]-u[u.length-1]:0}function Sy(n,u,i=!1){let{routesMeta:s}=n,o={},f="/",d=[];for(let g=0;g<s.length;++g){let p=s[g],m=g===s.length-1,v=f==="/"?u:u.slice(f.length)||"/",C=Nu({path:p.relativePath,caseSensitive:p.caseSensitive,end:m},v),R=p.route;if(!C&&m&&i&&!s[s.length-1].route.index&&(C=Nu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},v)),!C)return null;Object.assign(o,C.params),d.push({params:o,pathname:hn([f,C.pathname]),pathnameBase:_y(hn([f,C.pathnameBase])),route:R}),C.pathnameBase!=="/"&&(f=hn([f,C.pathnameBase]))}return d}function Nu(n,u){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[i,s]=Cy(n.path,n.caseSensitive,n.end),o=u.match(i);if(!o)return null;let f=o[0],d=f.replace(/(.)\/+$/,"$1"),g=o.slice(1);return{params:s.reduce((m,{paramName:v,isOptional:C},R)=>{if(v==="*"){let E=g[R]||"";d=f.slice(0,f.length-E.length).replace(/(.)\/+$/,"$1")}const S=g[R];return C&&!S?m[v]=void 0:m[v]=(S||"").replace(/%2F/g,"/"),m},{}),pathname:f,pathnameBase:d,pattern:n}}function Cy(n,u=!1,i=!0){Ct(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let s=[],o="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,g,p)=>(s.push({paramName:g,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return n.endsWith("*")?(s.push({paramName:"*"}),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,u?void 0:"i"),s]}function Ry(n){try{return n.split("/").map(u=>decodeURIComponent(u).replace(/\//g,"%2F")).join("/")}catch(u){return Ct(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${u}).`),n}}function gn(n,u){if(u==="/")return n;if(!n.toLowerCase().startsWith(u.toLowerCase()))return null;let i=u.endsWith("/")?u.length-1:u.length,s=n.charAt(i);return s&&s!=="/"?null:n.slice(i)||"/"}function by(n,u="/"){let{pathname:i,search:s="",hash:o=""}=typeof n=="string"?dl(n):n;return{pathname:i?i.startsWith("/")?i:Ey(i,u):u,search:My(s),hash:Ty(o)}}function Ey(n,u){let i=u.replace(/\/+$/,"").split("/");return n.split("/").forEach(o=>{o===".."?i.length>1&&i.pop():o!=="."&&i.push(o)}),i.length>1?i.join("/"):"/"}function oo(n,u,i,s){return`Cannot include a '${n}' character in a manually specified \`to.${u}\` field [${JSON.stringify(s)}].  Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function xy(n){return n.filter((u,i)=>i===0||u.route.path&&u.route.path.length>0)}function jo(n){let u=xy(n);return u.map((i,s)=>s===u.length-1?i.pathname:i.pathnameBase)}function Ho(n,u,i,s=!1){let o;typeof n=="string"?o=dl(n):(o={...n},De(!o.pathname||!o.pathname.includes("?"),oo("?","pathname","search",o)),De(!o.pathname||!o.pathname.includes("#"),oo("#","pathname","hash",o)),De(!o.search||!o.search.includes("#"),oo("#","search","hash",o)));let f=n===""||o.pathname==="",d=f?"/":o.pathname,g;if(d==null)g=i;else{let C=u.length-1;if(!s&&d.startsWith("..")){let R=d.split("/");for(;R[0]==="..";)R.shift(),C-=1;o.pathname=R.join("/")}g=C>=0?u[C]:"/"}let p=by(o,g),m=d&&d!=="/"&&d.endsWith("/"),v=(f||d===".")&&i.endsWith("/");return!p.pathname.endsWith("/")&&(m||v)&&(p.pathname+="/"),p}var hn=n=>n.join("/").replace(/\/\/+/g,"/"),_y=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),My=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,Ty=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function wy(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var Qg=["POST","PUT","PATCH","DELETE"];new Set(Qg);var Oy=["GET",...Qg];new Set(Oy);var Wl=M.createContext(null);Wl.displayName="DataRouter";var Hu=M.createContext(null);Hu.displayName="DataRouterState";M.createContext(!1);var $g=M.createContext({isTransitioning:!1});$g.displayName="ViewTransition";var zy=M.createContext(new Map);zy.displayName="Fetchers";var Ay=M.createContext(null);Ay.displayName="Await";var Bt=M.createContext(null);Bt.displayName="Navigation";var ni=M.createContext(null);ni.displayName="Location";var Ft=M.createContext({outlet:null,matches:[],isDataRoute:!1});Ft.displayName="Route";var Lo=M.createContext(null);Lo.displayName="RouteError";function Dy(n,{relative:u}={}){De(ea(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:s}=M.useContext(Bt),{hash:o,pathname:f,search:d}=li(n,{relative:u}),g=f;return i!=="/"&&(g=f==="/"?i:hn([i,f])),s.createHref({pathname:g,search:d,hash:o})}function ea(){return M.useContext(ni)!=null}function qt(){return De(ea(),"useLocation() may be used only in the context of a <Router> component."),M.useContext(ni).location}var Yg="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Xg(n){M.useContext(Bt).static||M.useLayoutEffect(n)}function hl(){let{isDataRoute:n}=M.useContext(Ft);return n?Yy():Ny()}function Ny(){De(ea(),"useNavigate() may be used only in the context of a <Router> component.");let n=M.useContext(Wl),{basename:u,navigator:i}=M.useContext(Bt),{matches:s}=M.useContext(Ft),{pathname:o}=qt(),f=JSON.stringify(jo(s)),d=M.useRef(!1);return Xg(()=>{d.current=!0}),M.useCallback((p,m={})=>{if(Ct(d.current,Yg),!d.current)return;if(typeof p=="number"){i.go(p);return}let v=Ho(p,JSON.parse(f),o,m.relative==="path");n==null&&u!=="/"&&(v.pathname=v.pathname==="/"?u:hn([u,v.pathname])),(m.replace?i.replace:i.push)(v,m.state,m)},[u,i,f,o,n])}M.createContext(null);function Vo(){let{matches:n}=M.useContext(Ft),u=n[n.length-1];return u?u.params:{}}function li(n,{relative:u}={}){let{matches:i}=M.useContext(Ft),{pathname:s}=qt(),o=JSON.stringify(jo(i));return M.useMemo(()=>Ho(n,JSON.parse(o),s,u==="path"),[n,o,s,u])}function Uy(n,u){return Kg(n,u)}function Kg(n,u,i,s,o){De(ea(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:f}=M.useContext(Bt),{matches:d}=M.useContext(Ft),g=d[d.length-1],p=g?g.params:{},m=g?g.pathname:"/",v=g?g.pathnameBase:"/",C=g&&g.route;{let H=C&&C.path||"";Zg(m,!C||H.endsWith("*")||H.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${H}">) 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.

Please change the parent <Route path="${H}"> to <Route path="${H==="/"?"*":`${H}/*`}">.`)}let R=qt(),S;if(u){let H=typeof u=="string"?dl(u):u;De(v==="/"||H.pathname?.startsWith(v),`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 "${v}" but pathname "${H.pathname}" was given in the \`location\` prop.`),S=H}else S=R;let E=S.pathname||"/",_=E;if(v!=="/"){let H=v.replace(/^\//,"").split("/");_="/"+E.replace(/^\//,"").split("/").slice(H.length).join("/")}let z=Fg(n,{pathname:_});Ct(C||z!=null,`No routes matched location "${S.pathname}${S.search}${S.hash}" `),Ct(z==null||z[z.length-1].route.element!==void 0||z[z.length-1].route.Component!==void 0||z[z.length-1].route.lazy!==void 0,`Matched leaf route at location "${S.pathname}${S.search}${S.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 A=By(z&&z.map(H=>Object.assign({},H,{params:Object.assign({},p,H.params),pathname:hn([v,f.encodeLocation?f.encodeLocation(H.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathname]),pathnameBase:H.pathnameBase==="/"?v:hn([v,f.encodeLocation?f.encodeLocation(H.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:H.pathnameBase])})),d,i,s,o);return u&&A?M.createElement(ni.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...S},navigationType:"POP"}},A):A}function jy(){let n=$y(),u=wy(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),i=n instanceof Error?n.stack:null,s="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:s},f={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",n),d=M.createElement(M.Fragment,null,M.createElement("p",null,"💿 Hey developer 👋"),M.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",M.createElement("code",{style:f},"ErrorBoundary")," or"," ",M.createElement("code",{style:f},"errorElement")," prop on your route.")),M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},u),i?M.createElement("pre",{style:o},i):null,d)}var Hy=M.createElement(jy,null),Ly=class extends M.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,u){return u.location!==n.location||u.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:u.error,location:u.location,revalidation:n.revalidation||u.revalidation}}componentDidCatch(n,u){this.props.unstable_onError?this.props.unstable_onError(n,u):console.error("React Router caught the following error during render",n)}render(){return this.state.error!==void 0?M.createElement(Ft.Provider,{value:this.props.routeContext},M.createElement(Lo.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Vy({routeContext:n,match:u,children:i}){let s=M.useContext(Wl);return s&&s.static&&s.staticContext&&(u.route.errorElement||u.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=u.route.id),M.createElement(Ft.Provider,{value:n},i)}function By(n,u=[],i=null,s=null,o=null){if(n==null){if(!i)return null;if(i.errors)n=i.matches;else if(u.length===0&&!i.initialized&&i.matches.length>0)n=i.matches;else return null}let f=n,d=i?.errors;if(d!=null){let m=f.findIndex(v=>v.route.id&&d?.[v.route.id]!==void 0);De(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(d).join(",")}`),f=f.slice(0,Math.min(f.length,m+1))}let g=!1,p=-1;if(i)for(let m=0;m<f.length;m++){let v=f[m];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(p=m),v.route.id){let{loaderData:C,errors:R}=i,S=v.route.loader&&!C.hasOwnProperty(v.route.id)&&(!R||R[v.route.id]===void 0);if(v.route.lazy||S){g=!0,p>=0?f=f.slice(0,p+1):f=[f[0]];break}}}return f.reduceRight((m,v,C)=>{let R,S=!1,E=null,_=null;i&&(R=d&&v.route.id?d[v.route.id]:void 0,E=v.route.errorElement||Hy,g&&(p<0&&C===0?(Zg("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,_=null):p===C&&(S=!0,_=v.route.hydrateFallbackElement||null)));let z=u.concat(f.slice(0,C+1)),A=()=>{let H;return R?H=E:S?H=_:v.route.Component?H=M.createElement(v.route.Component,null):v.route.element?H=v.route.element:H=m,M.createElement(Vy,{match:v,routeContext:{outlet:m,matches:z,isDataRoute:i!=null},children:H})};return i&&(v.route.ErrorBoundary||v.route.errorElement||C===0)?M.createElement(Ly,{location:i.location,revalidation:i.revalidation,component:E,error:R,children:A(),routeContext:{outlet:null,matches:z,isDataRoute:!0},unstable_onError:s}):A()},null)}function Bo(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Fy(n){let u=M.useContext(Wl);return De(u,Bo(n)),u}function qy(n){let u=M.useContext(Hu);return De(u,Bo(n)),u}function Gy(n){let u=M.useContext(Ft);return De(u,Bo(n)),u}function Fo(n){let u=Gy(n),i=u.matches[u.matches.length-1];return De(i.route.id,`${n} can only be used on routes that contain a unique "id"`),i.route.id}function Qy(){return Fo("useRouteId")}function $y(){let n=M.useContext(Lo),u=qy("useRouteError"),i=Fo("useRouteError");return n!==void 0?n:u.errors?.[i]}function Yy(){let{router:n}=Fy("useNavigate"),u=Fo("useNavigate"),i=M.useRef(!1);return Xg(()=>{i.current=!0}),M.useCallback(async(o,f={})=>{Ct(i.current,Yg),i.current&&(typeof o=="number"?n.navigate(o):await n.navigate(o,{fromRouteId:u,...f}))},[n,u])}var vg={};function Zg(n,u,i){!u&&!vg[n]&&(vg[n]=!0,Ct(!1,i))}M.memo(Xy);function Xy({routes:n,future:u,state:i,unstable_onError:s}){return Kg(n,void 0,i,s,u)}function Ky({to:n,replace:u,state:i,relative:s}){De(ea(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=M.useContext(Bt);Ct(!o,"<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:f}=M.useContext(Ft),{pathname:d}=qt(),g=hl(),p=Ho(n,jo(f),d,s==="path"),m=JSON.stringify(p);return M.useEffect(()=>{g(JSON.parse(m),{replace:u,state:i,relative:s})},[g,m,s,u,i]),null}function ol(n){De(!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 Zy({basename:n="/",children:u=null,location:i,navigationType:s="POP",navigator:o,static:f=!1}){De(!ea(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=n.replace(/^\/*/,"/"),g=M.useMemo(()=>({basename:d,navigator:o,static:f,future:{}}),[d,o,f]);typeof i=="string"&&(i=dl(i));let{pathname:p="/",search:m="",hash:v="",state:C=null,key:R="default"}=i,S=M.useMemo(()=>{let E=gn(p,d);return E==null?null:{location:{pathname:E,search:m,hash:v,state:C,key:R},navigationType:s}},[d,p,m,v,C,R,s]);return Ct(S!=null,`<Router basename="${d}"> is not able to match the URL "${p}${m}${v}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:M.createElement(Bt.Provider,{value:g},M.createElement(ni.Provider,{children:u,value:S}))}function Jy({children:n,location:u}){return Uy(Co(n),u)}function Co(n,u=[]){let i=[];return M.Children.forEach(n,(s,o)=>{if(!M.isValidElement(s))return;let f=[...u,o];if(s.type===M.Fragment){i.push.apply(i,Co(s.props.children,f));return}De(s.type===ol,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),De(!s.props.index||!s.props.children,"An index route cannot have child routes.");let d={id:s.props.id||f.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(d.children=Co(s.props.children,f)),i.push(d)}),i}var Au="get",Du="application/x-www-form-urlencoded";function Lu(n){return n!=null&&typeof n.tagName=="string"}function Py(n){return Lu(n)&&n.tagName.toLowerCase()==="button"}function ky(n){return Lu(n)&&n.tagName.toLowerCase()==="form"}function Iy(n){return Lu(n)&&n.tagName.toLowerCase()==="input"}function Wy(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function e0(n,u){return n.button===0&&(!u||u==="_self")&&!Wy(n)}function Ro(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((u,i)=>{let s=n[i];return u.concat(Array.isArray(s)?s.map(o=>[i,o]):[[i,s]])},[]))}function t0(n,u){let i=Ro(n);return u&&u.forEach((s,o)=>{i.has(o)||u.getAll(o).forEach(f=>{i.append(o,f)})}),i}var Mu=null;function n0(){if(Mu===null)try{new FormData(document.createElement("form"),0),Mu=!1}catch{Mu=!0}return Mu}var l0=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function co(n){return n!=null&&!l0.has(n)?(Ct(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Du}"`),null):n}function a0(n,u){let i,s,o,f,d;if(ky(n)){let g=n.getAttribute("action");s=g?gn(g,u):null,i=n.getAttribute("method")||Au,o=co(n.getAttribute("enctype"))||Du,f=new FormData(n)}else if(Py(n)||Iy(n)&&(n.type==="submit"||n.type==="image")){let g=n.form;if(g==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||g.getAttribute("action");if(s=p?gn(p,u):null,i=n.getAttribute("formmethod")||g.getAttribute("method")||Au,o=co(n.getAttribute("formenctype"))||co(g.getAttribute("enctype"))||Du,f=new FormData(g,n),!n0()){let{name:m,type:v,value:C}=n;if(v==="image"){let R=m?`${m}.`:"";f.append(`${R}x`,"0"),f.append(`${R}y`,"0")}else m&&f.append(m,C)}}else{if(Lu(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');i=Au,s=null,o=Du,d=n}return f&&o==="text/plain"&&(d=f,f=void 0),{action:s,method:i.toLowerCase(),encType:o,formData:f,body:d}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function qo(n,u){if(n===!1||n===null||typeof n>"u")throw new Error(u)}function i0(n,u,i){let s=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return s.pathname==="/"?s.pathname=`_root.${i}`:u&&gn(s.pathname,u)==="/"?s.pathname=`${u.replace(/\/$/,"")}/_root.${i}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${i}`,s}async function u0(n,u){if(n.id in u)return u[n.id];try{let i=await import(n.module);return u[n.id]=i,i}catch(i){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function s0(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function r0(n,u,i){let s=await Promise.all(n.map(async o=>{let f=u.routes[o.route.id];if(f){let d=await u0(f,i);return d.links?d.links():[]}return[]}));return d0(s.flat(1).filter(s0).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function yg(n,u,i,s,o,f){let d=(p,m)=>i[m]?p.route.id!==i[m].route.id:!0,g=(p,m)=>i[m].pathname!==p.pathname||i[m].route.path?.endsWith("*")&&i[m].params["*"]!==p.params["*"];return f==="assets"?u.filter((p,m)=>d(p,m)||g(p,m)):f==="data"?u.filter((p,m)=>{let v=s.routes[p.route.id];if(!v||!v.hasLoader)return!1;if(d(p,m)||g(p,m))return!0;if(p.route.shouldRevalidate){let C=p.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof C=="boolean")return C}return!0}):[]}function o0(n,u,{includeHydrateFallback:i}={}){return c0(n.map(s=>{let o=u.routes[s.route.id];if(!o)return[];let f=[o.module];return o.clientActionModule&&(f=f.concat(o.clientActionModule)),o.clientLoaderModule&&(f=f.concat(o.clientLoaderModule)),i&&o.hydrateFallbackModule&&(f=f.concat(o.hydrateFallbackModule)),o.imports&&(f=f.concat(o.imports)),f}).flat(1))}function c0(n){return[...new Set(n)]}function f0(n){let u={},i=Object.keys(n).sort();for(let s of i)u[s]=n[s];return u}function d0(n,u){let i=new Set;return new Set(u),n.reduce((s,o)=>{let f=JSON.stringify(f0(o));return i.has(f)||(i.add(f),s.push({key:f,link:o})),s},[])}function Jg(){let n=M.useContext(Wl);return qo(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function h0(){let n=M.useContext(Hu);return qo(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var Go=M.createContext(void 0);Go.displayName="FrameworkContext";function Pg(){let n=M.useContext(Go);return qo(n,"You must render this element inside a <HydratedRouter> element"),n}function g0(n,u){let i=M.useContext(Go),[s,o]=M.useState(!1),[f,d]=M.useState(!1),{onFocus:g,onBlur:p,onMouseEnter:m,onMouseLeave:v,onTouchStart:C}=u,R=M.useRef(null);M.useEffect(()=>{if(n==="render"&&d(!0),n==="viewport"){let _=A=>{A.forEach(H=>{d(H.isIntersecting)})},z=new IntersectionObserver(_,{threshold:.5});return R.current&&z.observe(R.current),()=>{z.disconnect()}}},[n]),M.useEffect(()=>{if(s){let _=setTimeout(()=>{d(!0)},100);return()=>{clearTimeout(_)}}},[s]);let S=()=>{o(!0)},E=()=>{o(!1),d(!1)};return i?n!=="intent"?[f,R,{}]:[f,R,{onFocus:Pa(g,S),onBlur:Pa(p,E),onMouseEnter:Pa(m,S),onMouseLeave:Pa(v,E),onTouchStart:Pa(C,S)}]:[!1,R,{}]}function Pa(n,u){return i=>{n&&n(i),i.defaultPrevented||u(i)}}function m0({page:n,...u}){let{router:i}=Jg(),s=M.useMemo(()=>Fg(i.routes,n,i.basename),[i.routes,n,i.basename]);return s?M.createElement(v0,{page:n,matches:s,...u}):null}function p0(n){let{manifest:u,routeModules:i}=Pg(),[s,o]=M.useState([]);return M.useEffect(()=>{let f=!1;return r0(n,u,i).then(d=>{f||o(d)}),()=>{f=!0}},[n,u,i]),s}function v0({page:n,matches:u,...i}){let s=qt(),{manifest:o,routeModules:f}=Pg(),{basename:d}=Jg(),{loaderData:g,matches:p}=h0(),m=M.useMemo(()=>yg(n,u,p,o,s,"data"),[n,u,p,o,s]),v=M.useMemo(()=>yg(n,u,p,o,s,"assets"),[n,u,p,o,s]),C=M.useMemo(()=>{if(n===s.pathname+s.search+s.hash)return[];let E=new Set,_=!1;if(u.forEach(A=>{let H=o.routes[A.route.id];!H||!H.hasLoader||(!m.some(G=>G.route.id===A.route.id)&&A.route.id in g&&f[A.route.id]?.shouldRevalidate||H.hasClientLoader?_=!0:E.add(A.route.id))}),E.size===0)return[];let z=i0(n,d,"data");return _&&E.size>0&&z.searchParams.set("_routes",u.filter(A=>E.has(A.route.id)).map(A=>A.route.id).join(",")),[z.pathname+z.search]},[d,g,s,o,m,u,n,f]),R=M.useMemo(()=>o0(v,o),[v,o]),S=p0(v);return M.createElement(M.Fragment,null,C.map(E=>M.createElement("link",{key:E,rel:"prefetch",as:"fetch",href:E,...i})),R.map(E=>M.createElement("link",{key:E,rel:"modulepreload",href:E,...i})),S.map(({key:E,link:_})=>M.createElement("link",{key:E,nonce:i.nonce,..._})))}function y0(...n){return u=>{n.forEach(i=>{typeof i=="function"?i(u):i!=null&&(i.current=u)})}}var kg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{kg&&(window.__reactRouterVersion="7.9.4")}catch{}function S0({basename:n,children:u,window:i}){let s=M.useRef();s.current==null&&(s.current=iy({window:i,v5Compat:!0}));let o=s.current,[f,d]=M.useState({action:o.action,location:o.location}),g=M.useCallback(p=>{M.startTransition(()=>d(p))},[d]);return M.useLayoutEffect(()=>o.listen(g),[o,g]),M.createElement(Zy,{basename:n,children:u,location:f.location,navigationType:f.action,navigator:o})}var Ig=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rt=M.forwardRef(function({onClick:u,discover:i="render",prefetch:s="none",relative:o,reloadDocument:f,replace:d,state:g,target:p,to:m,preventScrollReset:v,viewTransition:C,...R},S){let{basename:E}=M.useContext(Bt),_=typeof m=="string"&&Ig.test(m),z,A=!1;if(typeof m=="string"&&_&&(z=m,kg))try{let le=new URL(window.location.href),fe=m.startsWith("//")?new URL(le.protocol+m):new URL(m),we=gn(fe.pathname,E);fe.origin===le.origin&&we!=null?m=we+fe.search+fe.hash:A=!0}catch{Ct(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let H=Dy(m,{relative:o}),[G,X,I]=g0(s,R),me=E0(m,{replace:d,state:g,target:p,preventScrollReset:v,relative:o,viewTransition:C});function K(le){u&&u(le),le.defaultPrevented||me(le)}let P=M.createElement("a",{...R,...I,href:z||H,onClick:A||f?u:K,ref:y0(S,X),target:p,"data-discover":!_&&i==="render"?"true":void 0});return G&&!_?M.createElement(M.Fragment,null,P,M.createElement(m0,{page:H})):P});Rt.displayName="Link";var C0=M.forwardRef(function({"aria-current":u="page",caseSensitive:i=!1,className:s="",end:o=!1,style:f,to:d,viewTransition:g,children:p,...m},v){let C=li(d,{relative:m.relative}),R=qt(),S=M.useContext(Hu),{navigator:E,basename:_}=M.useContext(Bt),z=S!=null&&w0(C)&&g===!0,A=E.encodeLocation?E.encodeLocation(C).pathname:C.pathname,H=R.pathname,G=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;i||(H=H.toLowerCase(),G=G?G.toLowerCase():null,A=A.toLowerCase()),G&&_&&(G=gn(G,_)||G);const X=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let I=H===A||!o&&H.startsWith(A)&&H.charAt(X)==="/",me=G!=null&&(G===A||!o&&G.startsWith(A)&&G.charAt(A.length)==="/"),K={isActive:I,isPending:me,isTransitioning:z},P=I?u:void 0,le;typeof s=="function"?le=s(K):le=[s,I?"active":null,me?"pending":null,z?"transitioning":null].filter(Boolean).join(" ");let fe=typeof f=="function"?f(K):f;return M.createElement(Rt,{...m,"aria-current":P,className:le,ref:v,style:fe,to:d,viewTransition:g},typeof p=="function"?p(K):p)});C0.displayName="NavLink";var R0=M.forwardRef(({discover:n="render",fetcherKey:u,navigate:i,reloadDocument:s,replace:o,state:f,method:d=Au,action:g,onSubmit:p,relative:m,preventScrollReset:v,viewTransition:C,...R},S)=>{let E=M0(),_=T0(g,{relative:m}),z=d.toLowerCase()==="get"?"get":"post",A=typeof g=="string"&&Ig.test(g),H=G=>{if(p&&p(G),G.defaultPrevented)return;G.preventDefault();let X=G.nativeEvent.submitter,I=X?.getAttribute("formmethod")||d;E(X||G.currentTarget,{fetcherKey:u,method:I,navigate:i,replace:o,state:f,relative:m,preventScrollReset:v,viewTransition:C})};return M.createElement("form",{ref:S,method:z,action:_,onSubmit:s?p:H,...R,"data-discover":!A&&n==="render"?"true":void 0})});R0.displayName="Form";function b0(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Wg(n){let u=M.useContext(Wl);return De(u,b0(n)),u}function E0(n,{target:u,replace:i,state:s,preventScrollReset:o,relative:f,viewTransition:d}={}){let g=hl(),p=qt(),m=li(n,{relative:f});return M.useCallback(v=>{if(e0(v,u)){v.preventDefault();let C=i!==void 0?i:Wa(p)===Wa(m);g(n,{replace:C,state:s,preventScrollReset:o,relative:f,viewTransition:d})}},[p,g,m,i,s,u,n,o,f,d])}function Qo(n){Ct(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let u=M.useRef(Ro(n)),i=M.useRef(!1),s=qt(),o=M.useMemo(()=>t0(s.search,i.current?null:u.current),[s.search]),f=hl(),d=M.useCallback((g,p)=>{const m=Ro(typeof g=="function"?g(new URLSearchParams(o)):g);i.current=!0,f("?"+m,p)},[f,o]);return[o,d]}var x0=0,_0=()=>`__${String(++x0)}__`;function M0(){let{router:n}=Wg("useSubmit"),{basename:u}=M.useContext(Bt),i=Qy();return M.useCallback(async(s,o={})=>{let{action:f,method:d,encType:g,formData:p,body:m}=a0(s,u);if(o.navigate===!1){let v=o.fetcherKey||_0();await n.fetch(v,i,o.action||f,{preventScrollReset:o.preventScrollReset,formData:p,body:m,formMethod:o.method||d,formEncType:o.encType||g,flushSync:o.flushSync})}else await n.navigate(o.action||f,{preventScrollReset:o.preventScrollReset,formData:p,body:m,formMethod:o.method||d,formEncType:o.encType||g,replace:o.replace,state:o.state,fromRouteId:i,flushSync:o.flushSync,viewTransition:o.viewTransition})},[n,u,i])}function T0(n,{relative:u}={}){let{basename:i}=M.useContext(Bt),s=M.useContext(Ft);De(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),f={...li(n||".",{relative:u})},d=qt();if(n==null){f.search=d.search;let g=new URLSearchParams(f.search),p=g.getAll("index");if(p.some(v=>v==="")){g.delete("index"),p.filter(C=>C).forEach(C=>g.append("index",C));let v=g.toString();f.search=v?`?${v}`:""}}return(!n||n===".")&&o.route.index&&(f.search=f.search?f.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(f.pathname=f.pathname==="/"?i:hn([i,f.pathname])),Wa(f)}function w0(n,{relative:u}={}){let i=M.useContext($g);De(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=Wg("useViewTransitionState"),o=li(n,{relative:u});if(!i.isTransitioning)return!1;let f=gn(i.currentLocation.pathname,s)||i.currentLocation.pathname,d=gn(i.nextLocation.pathname,s)||i.nextLocation.pathname;return Nu(o.pathname,d)!=null||Nu(o.pathname,f)!=null}var em=Bg(),ai=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},O0={setTimeout:(n,u)=>setTimeout(n,u),clearTimeout:n=>clearTimeout(n),setInterval:(n,u)=>setInterval(n,u),clearInterval:n=>clearInterval(n)},z0=class{#e=O0;#t=!1;setTimeoutProvider(n){this.#e=n}setTimeout(n,u){return this.#e.setTimeout(n,u)}clearTimeout(n){this.#e.clearTimeout(n)}setInterval(n,u){return this.#e.setInterval(n,u)}clearInterval(n){this.#e.clearInterval(n)}},cl=new z0;function A0(n){setTimeout(n,0)}var fl=typeof window>"u"||"Deno"in globalThis;function ot(){}function D0(n,u){return typeof n=="function"?n(u):n}function bo(n){return typeof n=="number"&&n>=0&&n!==1/0}function tm(n,u){return Math.max(n+(u||0)-Date.now(),0)}function qn(n,u){return typeof n=="function"?n(u):n}function Nt(n,u){return typeof n=="function"?n(u):n}function Sg(n,u){const{type:i="all",exact:s,fetchStatus:o,predicate:f,queryKey:d,stale:g}=n;if(d){if(s){if(u.queryHash!==$o(d,u.options))return!1}else if(!ti(u.queryKey,d))return!1}if(i!=="all"){const p=u.isActive();if(i==="active"&&!p||i==="inactive"&&p)return!1}return!(typeof g=="boolean"&&u.isStale()!==g||o&&o!==u.state.fetchStatus||f&&!f(u))}function Cg(n,u){const{exact:i,status:s,predicate:o,mutationKey:f}=n;if(f){if(!u.options.mutationKey)return!1;if(i){if(ei(u.options.mutationKey)!==ei(f))return!1}else if(!ti(u.options.mutationKey,f))return!1}return!(s&&u.state.status!==s||o&&!o(u))}function $o(n,u){return(u?.queryKeyHashFn||ei)(n)}function ei(n){return JSON.stringify(n,(u,i)=>xo(i)?Object.keys(i).sort().reduce((s,o)=>(s[o]=i[o],s),{}):i)}function ti(n,u){return n===u?!0:typeof n!=typeof u?!1:n&&u&&typeof n=="object"&&typeof u=="object"?Object.keys(u).every(i=>ti(n[i],u[i])):!1}var N0=Object.prototype.hasOwnProperty;function nm(n,u){if(n===u)return n;const i=Rg(n)&&Rg(u);if(!i&&!(xo(n)&&xo(u)))return u;const o=(i?n:Object.keys(n)).length,f=i?u:Object.keys(u),d=f.length,g=i?new Array(d):{};let p=0;for(let m=0;m<d;m++){const v=i?m:f[m],C=n[v],R=u[v];if(C===R){g[v]=C,(i?m<o:N0.call(n,v))&&p++;continue}if(C===null||R===null||typeof C!="object"||typeof R!="object"){g[v]=R;continue}const S=nm(C,R);g[v]=S,S===C&&p++}return o===d&&p===o?n:g}function Eo(n,u){if(!u||Object.keys(n).length!==Object.keys(u).length)return!1;for(const i in n)if(n[i]!==u[i])return!1;return!0}function Rg(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function xo(n){if(!bg(n))return!1;const u=n.constructor;if(u===void 0)return!0;const i=u.prototype;return!(!bg(i)||!i.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function bg(n){return Object.prototype.toString.call(n)==="[object Object]"}function U0(n){return new Promise(u=>{cl.setTimeout(u,n)})}function _o(n,u,i){return typeof i.structuralSharing=="function"?i.structuralSharing(n,u):i.structuralSharing!==!1?nm(n,u):u}function j0(n,u,i=0){const s=[...n,u];return i&&s.length>i?s.slice(1):s}function H0(n,u,i=0){const s=[u,...n];return i&&s.length>i?s.slice(0,-1):s}var Yo=Symbol();function lm(n,u){return!n.queryFn&&u?.initialPromise?()=>u.initialPromise:!n.queryFn||n.queryFn===Yo?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function L0(n,u){return typeof n=="function"?n(...u):!!n}var V0=class extends ai{#e;#t;#n;constructor(){super(),this.#n=n=>{if(!fl&&window.addEventListener){const u=()=>n();return window.addEventListener("visibilitychange",u,!1),()=>{window.removeEventListener("visibilitychange",u)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(u=>{typeof u=="boolean"?this.setFocused(u):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(u=>{u(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Xo=new V0;function Mo(){let n,u;const i=new Promise((o,f)=>{n=o,u=f});i.status="pending",i.catch(()=>{});function s(o){Object.assign(i,o),delete i.resolve,delete i.reject}return i.resolve=o=>{s({status:"fulfilled",value:o}),n(o)},i.reject=o=>{s({status:"rejected",reason:o}),u(o)},i}var B0=A0;function F0(){let n=[],u=0,i=g=>{g()},s=g=>{g()},o=B0;const f=g=>{u?n.push(g):o(()=>{i(g)})},d=()=>{const g=n;n=[],g.length&&o(()=>{s(()=>{g.forEach(p=>{i(p)})})})};return{batch:g=>{let p;u++;try{p=g()}finally{u--,u||d()}return p},batchCalls:g=>(...p)=>{f(()=>{g(...p)})},schedule:f,setNotifyFunction:g=>{i=g},setBatchNotifyFunction:g=>{s=g},setScheduler:g=>{o=g}}}var ke=F0(),q0=class extends ai{#e=!0;#t;#n;constructor(){super(),this.#n=n=>{if(!fl&&window.addEventListener){const u=()=>n(!0),i=()=>n(!1);return window.addEventListener("online",u,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",u),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#n=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(i=>{i(n)}))}isOnline(){return this.#e}},Uu=new q0;function G0(n){return Math.min(1e3*2**n,3e4)}function am(n){return(n??"online")==="online"?Uu.isOnline():!0}var To=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function im(n){let u=!1,i=0,s;const o=Mo(),f=()=>o.status!=="pending",d=_=>{if(!f()){const z=new To(_);R(z),n.onCancel?.(z)}},g=()=>{u=!0},p=()=>{u=!1},m=()=>Xo.isFocused()&&(n.networkMode==="always"||Uu.isOnline())&&n.canRun(),v=()=>am(n.networkMode)&&n.canRun(),C=_=>{f()||(s?.(),o.resolve(_))},R=_=>{f()||(s?.(),o.reject(_))},S=()=>new Promise(_=>{s=z=>{(f()||m())&&_(z)},n.onPause?.()}).then(()=>{s=void 0,f()||n.onContinue?.()}),E=()=>{if(f())return;let _;const z=i===0?n.initialPromise:void 0;try{_=z??n.fn()}catch(A){_=Promise.reject(A)}Promise.resolve(_).then(C).catch(A=>{if(f())return;const H=n.retry??(fl?0:3),G=n.retryDelay??G0,X=typeof G=="function"?G(i,A):G,I=H===!0||typeof H=="number"&&i<H||typeof H=="function"&&H(i,A);if(u||!I){R(A);return}i++,n.onFail?.(i,A),U0(X).then(()=>m()?void 0:S()).then(()=>{u?R(A):E()})})};return{promise:o,status:()=>o.status,cancel:d,continue:()=>(s?.(),o),cancelRetry:g,continueRetry:p,canStart:v,start:()=>(v()?E():S().then(E),o)}}var um=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),bo(this.gcTime)&&(this.#e=cl.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(fl?1/0:300*1e3))}clearGcTimeout(){this.#e&&(cl.clearTimeout(this.#e),this.#e=void 0)}},Q0=class extends um{#e;#t;#n;#a;#l;#s;#u;constructor(n){super(),this.#u=!1,this.#s=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#a=n.client,this.#n=this.#a.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#e=Eg(this.options),this.state=n.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(n){if(this.options={...this.#s,...n},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const u=Eg(this.options);u.data!==void 0&&(this.setData(u.data,{updatedAt:u.dataUpdatedAt,manual:!0}),this.#e=u)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(n,u){const i=_o(this.state.data,n,this.options);return this.#i({data:i,type:"success",dataUpdatedAt:u?.updatedAt,manual:u?.manual}),i}setState(n,u){this.#i({type:"setState",state:n,setStateOptions:u})}cancel(n){const u=this.#l?.promise;return this.#l?.cancel(n),u?u.then(ot).catch(ot):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Nt(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Yo||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>qn(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!tm(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(u=>u.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){this.observers.find(u=>u.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(u=>u!==n),this.observers.length||(this.#l&&(this.#u?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(n,u){if(this.state.fetchStatus!=="idle"&&this.#l?.status()!=="rejected"){if(this.state.data!==void 0&&u?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise}if(n&&this.setOptions(n),!this.options.queryFn){const g=this.observers.find(p=>p.options.queryFn);g&&this.setOptions(g.options)}const i=new AbortController,s=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(this.#u=!0,i.signal)})},o=()=>{const g=lm(this.options,u),m=(()=>{const v={client:this.#a,queryKey:this.queryKey,meta:this.meta};return s(v),v})();return this.#u=!1,this.options.persister?this.options.persister(g,m,this):g(m)},d=(()=>{const g={fetchOptions:u,options:this.options,queryKey:this.queryKey,client:this.#a,state:this.state,fetchFn:o};return s(g),g})();this.options.behavior?.onFetch(d,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#i({type:"fetch",meta:d.fetchOptions?.meta}),this.#l=im({initialPromise:u?.initialPromise,fn:d.fetchFn,onCancel:g=>{g instanceof To&&g.revert&&this.setState({...this.#t,fetchStatus:"idle"}),i.abort()},onFail:(g,p)=>{this.#i({type:"failed",failureCount:g,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const g=await this.#l.start();if(g===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(g),this.#n.config.onSuccess?.(g,this),this.#n.config.onSettled?.(g,this.state.error,this),g}catch(g){if(g instanceof To){if(g.silent)return this.#l.promise;if(g.revert){if(this.state.data===void 0)throw g;return this.state.data}}throw this.#i({type:"error",error:g}),this.#n.config.onError?.(g,this),this.#n.config.onSettled?.(this.state.data,g,this),g}finally{this.scheduleGc()}}#i(n){const u=i=>{switch(n.type){case"failed":return{...i,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...i,fetchStatus:"paused"};case"continue":return{...i,fetchStatus:"fetching"};case"fetch":return{...i,...sm(i.data,this.options),fetchMeta:n.meta??null};case"success":const s={...i,data:n.data,dataUpdateCount:i.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#t=n.manual?s:void 0,s;case"error":const o=n.error;return{...i,error:o,errorUpdateCount:i.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:i.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...i,isInvalidated:!0};case"setState":return{...i,...n.state}}};this.state=u(this.state),ke.batch(()=>{this.observers.forEach(i=>{i.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:n})})}};function sm(n,u){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:am(u.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function Eg(n){const u=typeof n.initialData=="function"?n.initialData():n.initialData,i=u!==void 0,s=i?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:u,dataUpdateCount:0,dataUpdatedAt:i?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}var $0=class extends ai{constructor(n,u){super(),this.options=u,this.#e=n,this.#i=null,this.#u=Mo(),this.bindMethods(),this.setOptions(u)}#e;#t=void 0;#n=void 0;#a=void 0;#l;#s;#u;#i;#m;#d;#h;#o;#c;#r;#g=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),xg(this.#t,this.options)?this.#f():this.updateResult(),this.#S())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return wo(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return wo(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#C(),this.#R(),this.#t.removeObserver(this)}setOptions(n){const u=this.options,i=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Nt(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#b(),this.#t.setOptions(this.options),u._defaulted&&!Eo(this.options,u)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&_g(this.#t,i,this.options,u)&&this.#f(),this.updateResult(),s&&(this.#t!==i||Nt(this.options.enabled,this.#t)!==Nt(u.enabled,this.#t)||qn(this.options.staleTime,this.#t)!==qn(u.staleTime,this.#t))&&this.#p();const o=this.#v();s&&(this.#t!==i||Nt(this.options.enabled,this.#t)!==Nt(u.enabled,this.#t)||o!==this.#r)&&this.#y(o)}getOptimisticResult(n){const u=this.#e.getQueryCache().build(this.#e,n),i=this.createResult(u,n);return X0(this,i)&&(this.#a=i,this.#s=this.options,this.#l=this.#t.state),i}getCurrentResult(){return this.#a}trackResult(n,u){return new Proxy(n,{get:(i,s)=>(this.trackProp(s),u?.(s),s==="promise"&&!this.options.experimental_prefetchInRender&&this.#u.status==="pending"&&this.#u.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),Reflect.get(i,s))})}trackProp(n){this.#g.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const u=this.#e.defaultQueryOptions(n),i=this.#e.getQueryCache().build(this.#e,u);return i.fetch().then(()=>this.createResult(i,u))}fetch(n){return this.#f({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#a))}#f(n){this.#b();let u=this.#t.fetch(this.options,n);return n?.throwOnError||(u=u.catch(ot)),u}#p(){this.#C();const n=qn(this.options.staleTime,this.#t);if(fl||this.#a.isStale||!bo(n))return;const i=tm(this.#a.dataUpdatedAt,n)+1;this.#o=cl.setTimeout(()=>{this.#a.isStale||this.updateResult()},i)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#y(n){this.#R(),this.#r=n,!(fl||Nt(this.options.enabled,this.#t)===!1||!bo(this.#r)||this.#r===0)&&(this.#c=cl.setInterval(()=>{(this.options.refetchIntervalInBackground||Xo.isFocused())&&this.#f()},this.#r))}#S(){this.#p(),this.#y(this.#v())}#C(){this.#o&&(cl.clearTimeout(this.#o),this.#o=void 0)}#R(){this.#c&&(cl.clearInterval(this.#c),this.#c=void 0)}createResult(n,u){const i=this.#t,s=this.options,o=this.#a,f=this.#l,d=this.#s,p=n!==i?n.state:this.#n,{state:m}=n;let v={...m},C=!1,R;if(u._optimisticResults){const P=this.hasListeners(),le=!P&&xg(n,u),fe=P&&_g(n,i,u,s);(le||fe)&&(v={...v,...sm(m.data,n.options)}),u._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:S,errorUpdatedAt:E,status:_}=v;R=v.data;let z=!1;if(u.placeholderData!==void 0&&R===void 0&&_==="pending"){let P;o?.isPlaceholderData&&u.placeholderData===d?.placeholderData?(P=o.data,z=!0):P=typeof u.placeholderData=="function"?u.placeholderData(this.#h?.state.data,this.#h):u.placeholderData,P!==void 0&&(_="success",R=_o(o?.data,P,u),C=!0)}if(u.select&&R!==void 0&&!z)if(o&&R===f?.data&&u.select===this.#m)R=this.#d;else try{this.#m=u.select,R=u.select(R),R=_o(o?.data,R,u),this.#d=R,this.#i=null}catch(P){this.#i=P}this.#i&&(S=this.#i,R=this.#d,E=Date.now(),_="error");const A=v.fetchStatus==="fetching",H=_==="pending",G=_==="error",X=H&&A,I=R!==void 0,K={status:_,fetchStatus:v.fetchStatus,isPending:H,isSuccess:_==="success",isError:G,isInitialLoading:X,isLoading:X,data:R,dataUpdatedAt:v.dataUpdatedAt,error:S,errorUpdatedAt:E,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>p.dataUpdateCount||v.errorUpdateCount>p.errorUpdateCount,isFetching:A,isRefetching:A&&!H,isLoadingError:G&&!I,isPaused:v.fetchStatus==="paused",isPlaceholderData:C,isRefetchError:G&&I,isStale:Ko(n,u),refetch:this.refetch,promise:this.#u,isEnabled:Nt(u.enabled,n)!==!1};if(this.options.experimental_prefetchInRender){const P=we=>{K.status==="error"?we.reject(K.error):K.data!==void 0&&we.resolve(K.data)},le=()=>{const we=this.#u=K.promise=Mo();P(we)},fe=this.#u;switch(fe.status){case"pending":n.queryHash===i.queryHash&&P(fe);break;case"fulfilled":(K.status==="error"||K.data!==fe.value)&&le();break;case"rejected":(K.status!=="error"||K.error!==fe.reason)&&le();break}}return K}updateResult(){const n=this.#a,u=this.createResult(this.#t,this.options);if(this.#l=this.#t.state,this.#s=this.options,this.#l.data!==void 0&&(this.#h=this.#t),Eo(u,n))return;this.#a=u;const i=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!this.#g.size)return!0;const f=new Set(o??this.#g);return this.options.throwOnError&&f.add("error"),Object.keys(this.#a).some(d=>{const g=d;return this.#a[g]!==n[g]&&f.has(g)})};this.#E({listeners:i()})}#b(){const n=this.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const u=this.#t;this.#t=n,this.#n=n.state,this.hasListeners()&&(u?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#S()}#E(n){ke.batch(()=>{n.listeners&&this.listeners.forEach(u=>{u(this.#a)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function Y0(n,u){return Nt(u.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&u.retryOnMount===!1)}function xg(n,u){return Y0(n,u)||n.state.data!==void 0&&wo(n,u,u.refetchOnMount)}function wo(n,u,i){if(Nt(u.enabled,n)!==!1&&qn(u.staleTime,n)!=="static"){const s=typeof i=="function"?i(n):i;return s==="always"||s!==!1&&Ko(n,u)}return!1}function _g(n,u,i,s){return(n!==u||Nt(s.enabled,n)===!1)&&(!i.suspense||n.state.status!=="error")&&Ko(n,i)}function Ko(n,u){return Nt(u.enabled,n)!==!1&&n.isStaleByTime(qn(u.staleTime,n))}function X0(n,u){return!Eo(n.getCurrentResult(),u)}function Mg(n){return{onFetch:(u,i)=>{const s=u.options,o=u.fetchOptions?.meta?.fetchMore?.direction,f=u.state.data?.pages||[],d=u.state.data?.pageParams||[];let g={pages:[],pageParams:[]},p=0;const m=async()=>{let v=!1;const C=E=>{Object.defineProperty(E,"signal",{enumerable:!0,get:()=>(u.signal.aborted?v=!0:u.signal.addEventListener("abort",()=>{v=!0}),u.signal)})},R=lm(u.options,u.fetchOptions),S=async(E,_,z)=>{if(v)return Promise.reject();if(_==null&&E.pages.length)return Promise.resolve(E);const H=(()=>{const me={client:u.client,queryKey:u.queryKey,pageParam:_,direction:z?"backward":"forward",meta:u.options.meta};return C(me),me})(),G=await R(H),{maxPages:X}=u.options,I=z?H0:j0;return{pages:I(E.pages,G,X),pageParams:I(E.pageParams,_,X)}};if(o&&f.length){const E=o==="backward",_=E?K0:Tg,z={pages:f,pageParams:d},A=_(s,z);g=await S(z,A,E)}else{const E=n??f.length;do{const _=p===0?d[0]??s.initialPageParam:Tg(s,g);if(p>0&&_==null)break;g=await S(g,_),p++}while(p<E)}return g};u.options.persister?u.fetchFn=()=>u.options.persister?.(m,{client:u.client,queryKey:u.queryKey,meta:u.options.meta,signal:u.signal},i):u.fetchFn=m}}}function Tg(n,{pages:u,pageParams:i}){const s=u.length-1;return u.length>0?n.getNextPageParam(u[s],u,i[s],i):void 0}function K0(n,{pages:u,pageParams:i}){return u.length>0?n.getPreviousPageParam?.(u[0],u,i[0],i):void 0}var Z0=class extends um{#e;#t;#n;#a;constructor(n){super(),this.#e=n.client,this.mutationId=n.mutationId,this.#n=n.mutationCache,this.#t=[],this.state=n.state||J0(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(u=>u!==n),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(n){const u=()=>{this.#l({type:"continue"})},i={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=im({fn:()=>this.options.mutationFn?this.options.mutationFn(n,i):Promise.reject(new Error("No mutationFn found")),onFail:(f,d)=>{this.#l({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#l({type:"pause"})},onContinue:u,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",o=!this.#a.canStart();try{if(s)u();else{this.#l({type:"pending",variables:n,isPaused:o}),await this.#n.config.onMutate?.(n,this,i);const d=await this.options.onMutate?.(n,i);d!==this.state.context&&this.#l({type:"pending",context:d,variables:n,isPaused:o})}const f=await this.#a.start();return await this.#n.config.onSuccess?.(f,n,this.state.context,this,i),await this.options.onSuccess?.(f,n,this.state.context,i),await this.#n.config.onSettled?.(f,null,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(f,null,n,this.state.context,i),this.#l({type:"success",data:f}),f}catch(f){try{throw await this.#n.config.onError?.(f,n,this.state.context,this,i),await this.options.onError?.(f,n,this.state.context,i),await this.#n.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this,i),await this.options.onSettled?.(void 0,f,n,this.state.context,i),f}finally{this.#l({type:"error",error:f})}}finally{this.#n.runNext(this)}}#l(n){const u=i=>{switch(n.type){case"failed":return{...i,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...i,isPaused:!0};case"continue":return{...i,isPaused:!1};case"pending":return{...i,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...i,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...i,data:void 0,error:n.error,failureCount:i.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=u(this.state),ke.batch(()=>{this.#t.forEach(i=>{i.onMutationUpdate(n)}),this.#n.notify({mutation:this,type:"updated",action:n})})}};function J0(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var P0=class extends ai{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(n,u,i){const s=new Z0({client:n,mutationCache:this,mutationId:++this.#n,options:n.defaultMutationOptions(u),state:i});return this.add(s),s}add(n){this.#e.add(n);const u=Tu(n);if(typeof u=="string"){const i=this.#t.get(u);i?i.push(n):this.#t.set(u,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const u=Tu(n);if(typeof u=="string"){const i=this.#t.get(u);if(i)if(i.length>1){const s=i.indexOf(n);s!==-1&&i.splice(s,1)}else i[0]===n&&this.#t.delete(u)}}this.notify({type:"removed",mutation:n})}canRun(n){const u=Tu(n);if(typeof u=="string"){const s=this.#t.get(u)?.find(o=>o.state.status==="pending");return!s||s===n}else return!0}runNext(n){const u=Tu(n);return typeof u=="string"?this.#t.get(u)?.find(s=>s!==n&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){ke.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const u={exact:!0,...n};return this.getAll().find(i=>Cg(u,i))}findAll(n={}){return this.getAll().filter(u=>Cg(n,u))}notify(n){ke.batch(()=>{this.listeners.forEach(u=>{u(n)})})}resumePausedMutations(){const n=this.getAll().filter(u=>u.state.isPaused);return ke.batch(()=>Promise.all(n.map(u=>u.continue().catch(ot))))}};function Tu(n){return n.options.scope?.id}var k0=class extends ai{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,u,i){const s=u.queryKey,o=u.queryHash??$o(s,u);let f=this.get(o);return f||(f=new Q0({client:n,queryKey:s,queryHash:o,options:n.defaultQueryOptions(u),state:i,defaultOptions:n.getQueryDefaults(s)}),this.add(f)),f}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const u=this.#e.get(n.queryHash);u&&(n.destroy(),u===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){ke.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const u={exact:!0,...n};return this.getAll().find(i=>Sg(u,i))}findAll(n={}){const u=this.getAll();return Object.keys(n).length>0?u.filter(i=>Sg(n,i)):u}notify(n){ke.batch(()=>{this.listeners.forEach(u=>{u(n)})})}onFocus(){ke.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){ke.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},I0=class{#e;#t;#n;#a;#l;#s;#u;#i;constructor(n={}){this.#e=n.queryCache||new k0,this.#t=n.mutationCache||new P0,this.#n=n.defaultOptions||{},this.#a=new Map,this.#l=new Map,this.#s=0}mount(){this.#s++,this.#s===1&&(this.#u=Xo.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Uu.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#s--,this.#s===0&&(this.#u?.(),this.#u=void 0,this.#i?.(),this.#i=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const u=this.defaultQueryOptions({queryKey:n});return this.#e.get(u.queryHash)?.state.data}ensureQueryData(n){const u=this.defaultQueryOptions(n),i=this.#e.build(this,u),s=i.state.data;return s===void 0?this.fetchQuery(n):(n.revalidateIfStale&&i.isStaleByTime(qn(u.staleTime,i))&&this.prefetchQuery(u),Promise.resolve(s))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:u,state:i})=>{const s=i.data;return[u,s]})}setQueryData(n,u,i){const s=this.defaultQueryOptions({queryKey:n}),f=this.#e.get(s.queryHash)?.state.data,d=D0(u,f);if(d!==void 0)return this.#e.build(this,s).setData(d,{...i,manual:!0})}setQueriesData(n,u,i){return ke.batch(()=>this.#e.findAll(n).map(({queryKey:s})=>[s,this.setQueryData(s,u,i)]))}getQueryState(n){const u=this.defaultQueryOptions({queryKey:n});return this.#e.get(u.queryHash)?.state}removeQueries(n){const u=this.#e;ke.batch(()=>{u.findAll(n).forEach(i=>{u.remove(i)})})}resetQueries(n,u){const i=this.#e;return ke.batch(()=>(i.findAll(n).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...n},u)))}cancelQueries(n,u={}){const i={revert:!0,...u},s=ke.batch(()=>this.#e.findAll(n).map(o=>o.cancel(i)));return Promise.all(s).then(ot).catch(ot)}invalidateQueries(n,u={}){return ke.batch(()=>(this.#e.findAll(n).forEach(i=>{i.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},u)))}refetchQueries(n,u={}){const i={...u,cancelRefetch:u.cancelRefetch??!0},s=ke.batch(()=>this.#e.findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let f=o.fetch(void 0,i);return i.throwOnError||(f=f.catch(ot)),o.state.fetchStatus==="paused"?Promise.resolve():f}));return Promise.all(s).then(ot)}fetchQuery(n){const u=this.defaultQueryOptions(n);u.retry===void 0&&(u.retry=!1);const i=this.#e.build(this,u);return i.isStaleByTime(qn(u.staleTime,i))?i.fetch(u):Promise.resolve(i.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(ot).catch(ot)}fetchInfiniteQuery(n){return n.behavior=Mg(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(ot).catch(ot)}ensureInfiniteQueryData(n){return n.behavior=Mg(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Uu.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(n){this.#n=n}setQueryDefaults(n,u){this.#a.set(ei(n),{queryKey:n,defaultOptions:u})}getQueryDefaults(n){const u=[...this.#a.values()],i={};return u.forEach(s=>{ti(n,s.queryKey)&&Object.assign(i,s.defaultOptions)}),i}setMutationDefaults(n,u){this.#l.set(ei(n),{mutationKey:n,defaultOptions:u})}getMutationDefaults(n){const u=[...this.#l.values()],i={};return u.forEach(s=>{ti(n,s.mutationKey)&&Object.assign(i,s.defaultOptions)}),i}defaultQueryOptions(n){if(n._defaulted)return n;const u={...this.#n.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return u.queryHash||(u.queryHash=$o(u.queryKey,u)),u.refetchOnReconnect===void 0&&(u.refetchOnReconnect=u.networkMode!=="always"),u.throwOnError===void 0&&(u.throwOnError=!!u.suspense),!u.networkMode&&u.persister&&(u.networkMode="offlineFirst"),u.queryFn===Yo&&(u.enabled=!1),u}defaultMutationOptions(n){return n?._defaulted?n:{...this.#n.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},rm=M.createContext(void 0),Zo=n=>{const u=M.useContext(rm);if(!u)throw new Error("No QueryClient set, use QueryClientProvider to set one");return u},W0=({client:n,children:u})=>(M.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),w.jsx(rm.Provider,{value:n,children:u})),om=M.createContext(!1),eS=()=>M.useContext(om);om.Provider;function tS(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var nS=M.createContext(tS()),lS=()=>M.useContext(nS),aS=(n,u)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(u.isReset()||(n.retryOnMount=!1))},iS=n=>{M.useEffect(()=>{n.clearReset()},[n])},uS=({result:n,errorResetBoundary:u,throwOnError:i,query:s,suspense:o})=>n.isError&&!u.isReset()&&!n.isFetching&&s&&(o&&n.data===void 0||L0(i,[n.error,s])),sS=n=>{if(n.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...o)=>i(s(...o)):i(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},rS=(n,u)=>n.isLoading&&n.isFetching&&!u,oS=(n,u)=>n?.suspense&&u.isPending,wg=(n,u,i)=>u.fetchOptimistic(n).catch(()=>{i.clearReset()});function cS(n,u,i){const s=eS(),o=lS(),f=Zo(),d=f.defaultQueryOptions(n);f.getDefaultOptions().queries?._experimental_beforeQuery?.(d),d._optimisticResults=s?"isRestoring":"optimistic",sS(d),aS(d,o),iS(o);const g=!f.getQueryCache().get(d.queryHash),[p]=M.useState(()=>new u(f,d)),m=p.getOptimisticResult(d),v=!s&&n.subscribed!==!1;if(M.useSyncExternalStore(M.useCallback(C=>{const R=v?p.subscribe(ke.batchCalls(C)):ot;return p.updateResult(),R},[p,v]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),M.useEffect(()=>{p.setOptions(d)},[d,p]),oS(d,m))throw wg(d,p,o);if(uS({result:m,errorResetBoundary:o,throwOnError:d.throwOnError,query:f.getQueryCache().get(d.queryHash),suspense:d.suspense}))throw m.error;return f.getDefaultOptions().queries?._experimental_afterQuery?.(d,m),d.experimental_prefetchInRender&&!fl&&rS(m,s)&&(g?wg(d,p,o):f.getQueryCache().get(d.queryHash)?.promise)?.catch(ot).finally(()=>{p.updateResult()}),d.notifyOnChangeProps?m:p.trackResult(m)}function Jo(n,u){return cS(n,$0)}const fS="https://api.github.com/repos/microsoft/openvmm/pulls/",dS="https://api.github.com/repos/microsoft/openvmm/pulls?state=all&sort=updated&direction=desc",hS=50;async function cm(){try{const n=[1,2,3,4].map(s=>gS(s,hS).catch(()=>({}))),u=await Promise.all(n),i={};for(const s of u)for(const o in s)Object.prototype.hasOwnProperty.call(i,o)||(i[o]=s[o]);return i}catch(n){return console.warn("[getGithubPullRequests] Failed to aggregate pages",n),{}}}async function gS(n,u){const i=`${dS}&per_page=${u}&page=${n}`;try{const s=await fetch(i,{headers:{Accept:"application/vnd.github+json"}});if(!s.ok)return console.warn("[getGithubPullRequests] Non-OK response"),{};const o=await s.json();if(!Array.isArray(o))return{};const f={};for(const d of o)d&&typeof d.title=="string"&&typeof d.number=="number"&&(f[d.number]=d.title);return f}catch(s){return console.warn("[getGithubPullRequests] Failed to fetch PRs",s),{}}}async function mS(n,u){console.warn("[fetchMissingPRTitles] Fetching missing PR titles individually:",n);const i=Array.from(new Set(n)),s=await Promise.all(i.map(async o=>{const f=await u.ensureQueryData({queryKey:["prTitle",o],queryFn:()=>pS(o),staleTime:1/0,gcTime:1/0});return[o,f]}));return new Map(s)}async function pS(n){try{const u=await fetch(`${fS}${n}`);if(u.status===403)return null;if(u.ok){const i=await u.json();return typeof i.title=="string"?i.title:null}}catch{}return null}async function vS(n,u,i){if(!n)throw new Error("runId required");const s=[n];u&&s.push(u),i&&s.push(i);const o=`https://openvmmghtestresults.blob.core.windows.net/results/${s.join("/")}/petri.jsonl`,f=await fetch(o);if(!f.ok)throw new Error(`Failed to fetch log (${f.status} ${f.statusText}) for ${o}`);const d=await f.text();return{url:o,text:d}}function yS(n){if(!n)return[];const u=n.split(`
`).map(s=>s.trim()).filter(s=>s.length>0),i=[];for(let s=0;s<u.length;s++){const o=u[s];try{const f=JSON.parse(o);i.push(f)}catch{console.error("Failed to parse log")}}return i.sort((s,o)=>{const f=new Date(s.timestamp||0).getTime(),d=new Date(o.timestamp||0).getTime();return f-d}),i}function Og(n){return n.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}function SS(n,u){const i=n.trim(),s=i.indexOf(" ");if(s===-1)return n;let o=i.slice(0,s);if(o.endsWith("s")){const g=parseFloat(o.slice(0,-1));if(!isNaN(g))return i.slice(s+1)}o.startsWith("[")&&(o=o.slice(1,-1));const f=new Date(o);if(isNaN(f.getTime()))return n;f.setMilliseconds(0);const d=new Date(u.getTime());return d.setMilliseconds(0),f.getTime()!==d.getTime()?n:i.slice(s+1)}function CS(n,u){const i=["ERROR","WARN","INFO","DEBUG"],s=n.trim();for(const o of i)if(s.startsWith(o))return{message:s.slice(o.length+1),severity:o};return{message:n,severity:u}}function RS(n,u){const i=new Date(u).getTime()-new Date(n).getTime(),s=(i/1e3%60).toFixed(3),o=Math.floor(i/6e4%60),f=Math.floor(i/36e5);return`${f>0?f+"h ":""}${o}m ${s}s`}async function fm(n,u,i){const{url:s,text:o}=await vS(n,u,i);if(!o)return[];const f=yS(o),d=[];let g=null;for(let p=0;p<f.length;p++){const m=f[p],v=m.timestamp;g||(g=v);let C=m.message||"",R=m.severity||"INFO";const S=m.source||(m.attachment?"attachment":"unknown");C=SS(C,new Date(v));const E=CS(C,R);C=E.message,R=E.severity;let _=null;if(m.attachment){const z=new URL(m.attachment,s).toString();if(m.attachment.endsWith(".png")&&!m.attachment.includes("inspect")&&d.length>0){d[d.length-1].screenshot=z;continue}m.attachment.includes("inspect")?C+=(C?" ":"")+`<a href="${z}" class="attachment" target="_blank" data-inspect="true">${Og(m.attachment)}</a> <a href="${z}" class="attachment" target="_blank">[raw]</a>`:C+=(C?" ":"")+`<a href="${z}" class="attachment" target="_blank">${Og(m.attachment)}</a>`}d.push({index:p,timestamp:v,relative:g?RS(g,v):"0m 0.000s",severity:R,source:S,message:C,screenshot:_})}return d}const bS="https://openvmmghtestresults.blob.core.windows.net/results?restype=container&comp=list&showonly=files&include=metadata&prefix=runs/";function ES(n){n.prefetchQuery({queryKey:["runs"],queryFn:()=>Po(n),staleTime:180*1e3,gcTime:1/0}),n.prefetchQuery({queryKey:["prs"],queryFn:()=>cm(),staleTime:1/0,gcTime:1/0}),setInterval(()=>{n.refetchQueries({queryKey:["runs"],type:"all"})},120*1e3)}async function Po(n){try{const i=await(await fetch(bS)).text(),s=xS(i,n);if(s.map(f=>f.metadata.ghPr).filter(f=>f!==void 0).length>0){const f=await n.ensureQueryData({queryKey:["prs"],queryFn:()=>cm(),staleTime:1/0,gcTime:1/0}),d=[];if(s.forEach(g=>{const p=g.metadata.ghPr;p&&(f[p]?g.metadata.prTitle=f[p]:d.push(p))}),d.length>0){const g=await mS(d,n);s.forEach(p=>{const m=p.metadata.ghPr;if(m&&g.has(m)){const v=g.get(m);v&&(p.metadata.prTitle=v)}})}}return s}catch(u){throw console.error("Error fetching run data:",u),u}}function xS(n,u){const o=new DOMParser().parseFromString(n,"text/xml").getElementsByTagName("Blob"),f=[];for(const d of o){const g=d.getElementsByTagName("Name")[0]?.textContent||"",p=new Date(d.getElementsByTagName("Creation-Time")[0]?.textContent||""),m=new Date(d.getElementsByTagName("Last-Modified")[0]?.textContent||""),v=d.getElementsByTagName("Etag")[0]?.textContent||"",C=parseInt(d.getElementsByTagName("Content-Length")[0]?.textContent||"0"),R=d.getElementsByTagName("Metadata")[0],S={petriFailed:parseInt(R?.getElementsByTagName("petrifailed")[0]?.textContent||"0"),petriPassed:parseInt(R?.getElementsByTagName("petripassed")[0]?.textContent||"0"),ghBranch:R?.getElementsByTagName("ghbranch")[0]?.textContent||"",ghPr:R?.getElementsByTagName("ghpr")[0]?.textContent||void 0};f.push({name:g,creationTime:p,lastModified:m,etag:v,contentLength:C,metadata:S})}return _S(f,u),f}function _S(n,u){try{const i=[...n].sort((o,f)=>f.creationTime.getTime()-o.creationTime.getTime()),s=o=>o.replace(/^runs\//,"").split("/")[0];(async()=>{const o=new Set,f=[],g=i.filter(R=>R.metadata.petriFailed>0).slice(0,7);for(const R of g){const S=s(R.name);S&&(f.push(S),o.add(S))}const p=i.slice(0,10);for(const R of p){const S=s(R.name);S&&!o.has(S)&&(f.push(S),o.add(S))}const m=i.filter(R=>R.metadata.ghBranch==="main").slice(0,7);for(const R of m){const S=s(R.name);S&&!o.has(S)&&(f.push(S),o.add(S))}const v=5,C=async R=>{const S=["runDetails",R];if(!u.getQueryData(S))try{await u.prefetchQuery({queryKey:S,queryFn:()=>ko(R,u),staleTime:1/0,gcTime:1/0})}catch(E){console.warn("[opportunisticPrefetching] Prefetch failed for run",E)}};for(let R=0;R<f.length;R+=v){const S=f.slice(R,R+v);await Promise.allSettled(S.map(E=>C(E)))}})()}catch(i){console.warn("[opportunisticPrefetching] Failed to schedule runDetails prefetch",i)}}function MS(n,u,i){const s=new Map;let o=null;if(n.length>0)try{const g=n[0].match(/<Creation-Time>([^<]+)<\/Creation-Time>/);if(g){const p=new Date(g[1]);isNaN(p.getTime())||(o=p)}}catch{}const f=/<Name>([^<]+)<\/Name>/g;for(const g of n){let p;for(f.lastIndex=0;(p=f.exec(g))!==null;){const v=p[1].split("/"),C=v[v.length-1];if(C!=="petri.jsonl"&&C!=="petri.passed")continue;const R=v.slice(0,-1).join("/");s.has(R)||s.set(R,{hasJsonl:!1,hasPassed:!1});const S=s.get(R);C==="petri.jsonl"?S.hasJsonl=!0:C==="petri.passed"&&(S.hasPassed=!0)}}const d=[];for(const[g,p]of s){if(!p.hasJsonl)continue;const m=g.split("/");if(m.length>=2){const v=m.slice(1);if(v.length>=2){const C=v[0],R=v.slice(1).join("/"),S=p.hasPassed?"passed":"failed",E=`${C}/${R}`;d.push({name:E,status:S,path:g})}}}d.sort((g,p)=>g.name.localeCompare(p.name));try{const g=[];for(const p of d){if(p.status!=="failed")continue;const m=p.name.indexOf("/");if(m===-1)continue;const v=p.name.slice(0,m),C=p.name.slice(m+1),R=["petriLog",u,v,C];g.push(i.prefetchQuery({queryKey:R,queryFn:()=>fm(u,v,C),staleTime:1/0,gcTime:1/0}))}g.length&&Promise.allSettled(g).then(p=>{const m=p.filter(v=>v.status==="rejected").length;m&&console.warn(`[parseRunDetails] ${m} petri.jsonl prefetches failed`)})}catch(g){console.warn("[parseRunDetails] Prefetch phase error",g)}return{creationTime:o??void 0,runNumber:u,tests:d}}async function ko(n,u){try{const i=[];let s=null;do{let o=`https://openvmmghtestresults.blob.core.windows.net/results?restype=container&comp=list&showonly=files&prefix=${encodeURIComponent(n)}`;s&&(o+=`&marker=${encodeURIComponent(s)}`);const f=await fetch(o);if(!f.ok)throw new Error(`Failed to fetch run details: ${f.status} ${f.statusText}`);const d=await f.text();i.push(d);const g=d.match(/<NextMarker>([^<]+)<\/NextMarker>/);s=g?g[1]:null}while(s);return MS(i,n,u)}catch(i){throw console.error("Error fetching run details",i),i}}async function dm(n,u,i,s){const f=(await u.ensureQueryData({queryKey:["runs"],queryFn:()=>Po(u),staleTime:12e4,gcTime:1/0})).filter(E=>E.metadata.ghBranch===n),d=f.length;let g=0;const p=async E=>{const _=E.name.split("/")[1],z=["runDetails",_];if(u.getQueryData(z))return g++,i&&i(g,d),_;try{return await u.prefetchQuery({queryKey:z,queryFn:()=>ko(_,u),staleTime:1/0,gcTime:1/0}),g++,i&&i(g,d),_}catch(A){return console.warn("[fetchTestAnalysis] Prefetch failed for run",A),g++,i&&i(g,d),_}};let m=0;const v=new Set,C=[];for(;m<f.length||v.size>0;){const E=s?s():5;for(;m<f.length&&v.size<E;){const _=p(f[m]);v.add(_),m++,_.then(z=>{v.delete(_),z&&C.push(z)},()=>{v.delete(_)})}v.size>0&&await Promise.race(v)}const R=new Map;C.forEach(E=>{const _=u.getQueryData(["runDetails",E]);_&&R.set(E,_)});const S=new Map;return R.forEach(E=>{E.tests.forEach(_=>{const z=_.name,A={runNumber:E.runNumber,status:_.status,creationTime:E.creationTime};S.has(z)||S.set(z,[]),S.get(z).push(A)})}),S}function TS(n){const u=[];return n.forEach((i,s)=>{const o=i.filter(m=>m.status==="failed").length,f=s.split("/"),d=f[0],g=f.length>1?f[1]:"-",p=i.length;u.push({architecture:d,name:g,failedCount:o,totalCount:p})}),u}function wS(n,u){return n.get(u)||[]}function ii(){const[n,u]=M.useState(!1),i=hl(),s=M.useCallback(()=>u(f=>!f),[]);M.useEffect(()=>{if(n){const f=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=f}}},[n]);function o(f){i(f),s()}return w.jsxs(w.Fragment,{children:[w.jsx("button",{type:"button","aria-label":n?"Close navigation menu":"Open navigation menu",className:"menu-trigger",onClick:s,children:w.jsxs("span",{className:"menu-lines","aria-hidden":"true",children:[w.jsx("span",{}),w.jsx("span",{}),w.jsx("span",{})]})}),n&&em.createPortal(w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"menu-overlay",onClick:s,role:"presentation"}),w.jsxs("nav",{className:n?"menu-drawer open":"menu-drawer","aria-hidden":!n,"aria-label":"Primary",children:[w.jsx("div",{className:"menu-drawer-header",children:"Petri Test Viewer"}),w.jsxs("ul",{className:"menu-nav-list",role:"list",children:[w.jsx("li",{children:w.jsx("button",{className:"drawer-link",onClick:()=>o("/runs"),children:"Runs"})}),w.jsx("li",{children:w.jsx("button",{className:"drawer-link",onClick:()=>o("/tests"),children:"Tests"})}),w.jsx("li",{className:"drawer-separator","aria-hidden":"true"}),w.jsx("li",{children:w.jsx("a",{className:"drawer-link external",href:"https://github.com/microsoft/openvmm",target:"_blank",rel:"noopener noreferrer",children:"Repo"})}),w.jsx("li",{children:w.jsx("a",{className:"drawer-link external",href:"http://openvmm.dev/",target:"_blank",rel:"noopener noreferrer",children:"Guide"})})]})]})]}),document.body)]})}function Il(n,u,i){let s=i.initialDeps??[],o;function f(){var d,g,p,m;let v;i.key&&((d=i.debug)!=null&&d.call(i))&&(v=Date.now());const C=n();if(!(C.length!==s.length||C.some((E,_)=>s[_]!==E)))return o;s=C;let S;if(i.key&&((g=i.debug)!=null&&g.call(i))&&(S=Date.now()),o=u(...C),i.key&&((p=i.debug)!=null&&p.call(i))){const E=Math.round((Date.now()-v)*100)/100,_=Math.round((Date.now()-S)*100)/100,z=_/16,A=(H,G)=>{for(H=String(H);H.length<G;)H=" "+H;return H};console.info(`%c⏱ ${A(_,5)} /${A(E,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*z,120))}deg 100% 31%);`,i?.key)}return(m=i?.onChange)==null||m.call(i,o),o}return f.updateDeps=d=>{s=d},f}function zg(n,u){if(n===void 0)throw new Error("Unexpected undefined");return n}const OS=(n,u)=>Math.abs(n-u)<1.01,zS=(n,u,i)=>{let s;return function(...o){n.clearTimeout(s),s=n.setTimeout(()=>u.apply(this,o),i)}},Ag=n=>{const{offsetWidth:u,offsetHeight:i}=n;return{width:u,height:i}},AS=n=>n,DS=n=>{const u=Math.max(n.startIndex-n.overscan,0),i=Math.min(n.endIndex+n.overscan,n.count-1),s=[];for(let o=u;o<=i;o++)s.push(o);return s},NS=(n,u)=>{const i=n.scrollElement;if(!i)return;const s=n.targetWindow;if(!s)return;const o=d=>{const{width:g,height:p}=d;u({width:Math.round(g),height:Math.round(p)})};if(o(Ag(i)),!s.ResizeObserver)return()=>{};const f=new s.ResizeObserver(d=>{const g=()=>{const p=d[0];if(p?.borderBoxSize){const m=p.borderBoxSize[0];if(m){o({width:m.inlineSize,height:m.blockSize});return}}o(Ag(i))};n.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(g):g()});return f.observe(i,{box:"border-box"}),()=>{f.unobserve(i)}},Dg={passive:!0},Ng=typeof window>"u"?!0:"onscrollend"in window,US=(n,u)=>{const i=n.scrollElement;if(!i)return;const s=n.targetWindow;if(!s)return;let o=0;const f=n.options.useScrollendEvent&&Ng?()=>{}:zS(s,()=>{u(o,!1)},n.options.isScrollingResetDelay),d=v=>()=>{const{horizontal:C,isRtl:R}=n.options;o=C?i.scrollLeft*(R&&-1||1):i.scrollTop,f(),u(o,v)},g=d(!0),p=d(!1);p(),i.addEventListener("scroll",g,Dg);const m=n.options.useScrollendEvent&&Ng;return m&&i.addEventListener("scrollend",p,Dg),()=>{i.removeEventListener("scroll",g),m&&i.removeEventListener("scrollend",p)}},jS=(n,u,i)=>{if(u?.borderBoxSize){const s=u.borderBoxSize[0];if(s)return Math.round(s[i.options.horizontal?"inlineSize":"blockSize"])}return n[i.options.horizontal?"offsetWidth":"offsetHeight"]},HS=(n,{adjustments:u=0,behavior:i},s)=>{var o,f;const d=n+u;(f=(o=s.scrollElement)==null?void 0:o.scrollTo)==null||f.call(o,{[s.options.horizontal?"left":"top"]:d,behavior:i})};class LS{constructor(u){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let i=null;const s=()=>i||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:i=new this.targetWindow.ResizeObserver(o=>{o.forEach(f=>{const d=()=>{this._measureElement(f.target,f)};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(d):d()})}));return{disconnect:()=>{var o;(o=s())==null||o.disconnect(),i=null},observe:o=>{var f;return(f=s())==null?void 0:f.observe(o,{box:"border-box"})},unobserve:o=>{var f;return(f=s())==null?void 0:f.unobserve(o)}}})(),this.range=null,this.setOptions=i=>{Object.entries(i).forEach(([s,o])=>{typeof o>"u"&&delete i[s]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:AS,rangeExtractor:DS,onChange:()=>{},measureElement:jS,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...i}},this.notify=i=>{var s,o;(o=(s=this.options).onChange)==null||o.call(s,this,i)},this.maybeNotify=Il(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),i=>{this.notify(i)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(i=>i()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var i;const s=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==s){if(this.cleanup(),!s){this.maybeNotify();return}this.scrollElement=s,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((i=this.scrollElement)==null?void 0:i.window)??null,this.elementsCache.forEach(o=>{this.observer.observe(o)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,o=>{this.scrollRect=o,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(o,f)=>{this.scrollAdjustments=0,this.scrollDirection=f?this.getScrollOffset()<o?"forward":"backward":null,this.scrollOffset=o,this.isScrolling=f,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(i,s)=>{const o=new Map,f=new Map;for(let d=s-1;d>=0;d--){const g=i[d];if(o.has(g.lane))continue;const p=f.get(g.lane);if(p==null||g.end>p.end?f.set(g.lane,g):g.end<p.end&&o.set(g.lane,!0),o.size===this.options.lanes)break}return f.size===this.options.lanes?Array.from(f.values()).sort((d,g)=>d.end===g.end?d.index-g.index:d.end-g.end)[0]:void 0},this.getMeasurementOptions=Il(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(i,s,o,f,d)=>(this.pendingMeasuredCacheIndexes=[],{count:i,paddingStart:s,scrollMargin:o,getItemKey:f,enabled:d}),{key:!1}),this.getMeasurements=Il(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:i,paddingStart:s,scrollMargin:o,getItemKey:f,enabled:d},g)=>{if(!d)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(v=>{this.itemSizeCache.set(v.key,v.size)}));const p=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const m=this.measurementsCache.slice(0,p);for(let v=p;v<i;v++){const C=f(v),R=this.options.lanes===1?m[v-1]:this.getFurthestMeasurement(m,v),S=R?R.end+this.options.gap:s+o,E=g.get(C),_=typeof E=="number"?E:this.options.estimateSize(v),z=S+_,A=R?R.lane:v%this.options.lanes;m[v]={index:v,start:S,size:_,end:z,key:C,lane:A}}return this.measurementsCache=m,m},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Il(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(i,s,o,f)=>this.range=i.length>0&&s>0?VS({measurements:i,outerSize:s,scrollOffset:o,lanes:f}):null,{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Il(()=>{let i=null,s=null;const o=this.calculateRange();return o&&(i=o.startIndex,s=o.endIndex),this.maybeNotify.updateDeps([this.isScrolling,i,s]),[this.options.rangeExtractor,this.options.overscan,this.options.count,i,s]},(i,s,o,f,d)=>f===null||d===null?[]:i({startIndex:f,endIndex:d,overscan:s,count:o}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=i=>{const s=this.options.indexAttribute,o=i.getAttribute(s);return o?parseInt(o,10):(console.warn(`Missing attribute name '${s}={index}' on measured element.`),-1)},this._measureElement=(i,s)=>{const o=this.indexFromElement(i),f=this.measurementsCache[o];if(!f)return;const d=f.key,g=this.elementsCache.get(d);g!==i&&(g&&this.observer.unobserve(g),this.observer.observe(i),this.elementsCache.set(d,i)),i.isConnected&&this.resizeItem(o,this.options.measureElement(i,s,this))},this.resizeItem=(i,s)=>{const o=this.measurementsCache[i];if(!o)return;const f=this.itemSizeCache.get(o.key)??o.size,d=s-f;d!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(o,d,this):o.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=d,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(o.index),this.itemSizeCache=new Map(this.itemSizeCache.set(o.key,s)),this.notify(!1))},this.measureElement=i=>{if(!i){this.elementsCache.forEach((s,o)=>{s.isConnected||(this.observer.unobserve(s),this.elementsCache.delete(o))});return}this._measureElement(i,void 0)},this.getVirtualItems=Il(()=>[this.getVirtualIndexes(),this.getMeasurements()],(i,s)=>{const o=[];for(let f=0,d=i.length;f<d;f++){const g=i[f],p=s[g];o.push(p)}return o},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=i=>{const s=this.getMeasurements();if(s.length!==0)return zg(s[hm(0,s.length-1,o=>zg(s[o]).start,i)])},this.getOffsetForAlignment=(i,s,o=0)=>{const f=this.getSize(),d=this.getScrollOffset();s==="auto"&&(s=i>=d+f?"end":"start"),s==="center"?i+=(o-f)/2:s==="end"&&(i-=f);const g=this.getTotalSize()+this.options.scrollMargin-f;return Math.max(Math.min(g,i),0)},this.getOffsetForIndex=(i,s="auto")=>{i=Math.max(0,Math.min(i,this.options.count-1));const o=this.measurementsCache[i];if(!o)return;const f=this.getSize(),d=this.getScrollOffset();if(s==="auto")if(o.end>=d+f-this.options.scrollPaddingEnd)s="end";else if(o.start<=d+this.options.scrollPaddingStart)s="start";else return[d,s];const g=s==="end"?o.end+this.options.scrollPaddingEnd:o.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(g,s,o.size),s]},this.isDynamicMode=()=>this.elementsCache.size>0,this.scrollToOffset=(i,{align:s="start",behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(i,s),{adjustments:void 0,behavior:o})},this.scrollToIndex=(i,{align:s="auto",behavior:o}={})=>{o==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),i=Math.max(0,Math.min(i,this.options.count-1));let f=0;const d=10,g=m=>{if(!this.targetWindow)return;const v=this.getOffsetForIndex(i,m);if(!v){console.warn("Failed to get offset for index:",i);return}const[C,R]=v;this._scrollToOffset(C,{adjustments:void 0,behavior:o}),this.targetWindow.requestAnimationFrame(()=>{const S=this.getScrollOffset(),E=this.getOffsetForIndex(i,R);if(!E){console.warn("Failed to get offset for index:",i);return}OS(E[0],S)||p(R)})},p=m=>{this.targetWindow&&(f++,f<d?this.targetWindow.requestAnimationFrame(()=>g(m)):console.warn(`Failed to scroll to index ${i} after ${d} attempts.`))};g(s)},this.scrollBy=(i,{behavior:s}={})=>{s==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+i,{adjustments:void 0,behavior:s})},this.getTotalSize=()=>{var i;const s=this.getMeasurements();let o;if(s.length===0)o=this.options.paddingStart;else if(this.options.lanes===1)o=((i=s[s.length-1])==null?void 0:i.end)??0;else{const f=Array(this.options.lanes).fill(null);let d=s.length-1;for(;d>=0&&f.some(g=>g===null);){const g=s[d];f[g.lane]===null&&(f[g.lane]=g.end),d--}o=Math.max(...f.filter(g=>g!==null))}return Math.max(o-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(i,{adjustments:s,behavior:o})=>{this.options.scrollToFn(i,{behavior:o,adjustments:s},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(u)}}const hm=(n,u,i,s)=>{for(;n<=u;){const o=(n+u)/2|0,f=i(o);if(f<s)n=o+1;else if(f>s)u=o-1;else return o}return n>0?n-1:0};function VS({measurements:n,outerSize:u,scrollOffset:i,lanes:s}){const o=n.length-1,f=p=>n[p].start;if(n.length<=s)return{startIndex:0,endIndex:o};let d=hm(0,o,f,i),g=d;if(s===1)for(;g<o&&n[g].end<i+u;)g++;else if(s>1){const p=Array(s).fill(0);for(;g<o&&p.some(v=>v<i+u);){const v=n[g];p[v.lane]=v.end,g++}const m=Array(s).fill(i+u);for(;d>=0&&m.some(v=>v>=i);){const v=n[d];m[v.lane]=v.start,d--}d=Math.max(0,d-d%s),g=Math.min(o,g+(s-1-g%s))}return{startIndex:d,endIndex:g}}const Ug=typeof document<"u"?M.useLayoutEffect:M.useEffect;function BS(n){const u=M.useReducer(()=>({}),{})[1],i={...n,onChange:(o,f)=>{var d;f?em.flushSync(u):u(),(d=n.onChange)==null||d.call(n,o,f)}},[s]=M.useState(()=>new LS(i));return s.setOptions(i),Ug(()=>s._didMount(),[]),Ug(()=>s._willUpdate()),s}function FS(n){return BS({observeElementRect:NS,observeElementOffset:US,scrollToFn:HS,...n})}/**
   * table-core
   *
   * Copyright (c) TanStack
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE.md file in the root directory of this source tree.
   *
   * @license MIT
   */function Fn(n,u){return typeof n=="function"?n(u):n}function bt(n,u){return i=>{u.setState(s=>({...s,[n]:Fn(i,s[n])}))}}function Vu(n){return n instanceof Function}function qS(n){return Array.isArray(n)&&n.every(u=>typeof u=="number")}function GS(n,u){const i=[],s=o=>{o.forEach(f=>{i.push(f);const d=u(f);d!=null&&d.length&&s(d)})};return s(n),i}function ee(n,u,i){let s=[],o;return f=>{let d;i.key&&i.debug&&(d=Date.now());const g=n(f);if(!(g.length!==s.length||g.some((v,C)=>s[C]!==v)))return o;s=g;let m;if(i.key&&i.debug&&(m=Date.now()),o=u(...g),i==null||i.onChange==null||i.onChange(o),i.key&&i.debug&&i!=null&&i.debug()){const v=Math.round((Date.now()-d)*100)/100,C=Math.round((Date.now()-m)*100)/100,R=C/16,S=(E,_)=>{for(E=String(E);E.length<_;)E=" "+E;return E};console.info(`%c⏱ ${S(C,5)} /${S(v,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*R,120))}deg 100% 31%);`,i?.key)}return o}}function te(n,u,i,s){return{debug:()=>{var o;return(o=n?.debugAll)!=null?o:n[u]},key:!1,onChange:s}}function QS(n,u,i,s){const o=()=>{var d;return(d=f.getValue())!=null?d:n.options.renderFallbackValue},f={id:`${u.id}_${i.id}`,row:u,column:i,getValue:()=>u.getValue(s),renderValue:o,getContext:ee(()=>[n,i,u,f],(d,g,p,m)=>({table:d,column:g,row:p,cell:m,getValue:m.getValue,renderValue:m.renderValue}),te(n.options,"debugCells"))};return n._features.forEach(d=>{d.createCell==null||d.createCell(f,i,u,n)},{}),f}function $S(n,u,i,s){var o,f;const g={...n._getDefaultColumnDef(),...u},p=g.accessorKey;let m=(o=(f=g.id)!=null?f:p?typeof String.prototype.replaceAll=="function"?p.replaceAll(".","_"):p.replace(/\./g,"_"):void 0)!=null?o:typeof g.header=="string"?g.header:void 0,v;if(g.accessorFn?v=g.accessorFn:p&&(p.includes(".")?v=R=>{let S=R;for(const _ of p.split(".")){var E;S=(E=S)==null?void 0:E[_]}return S}:v=R=>R[g.accessorKey]),!m)throw new Error;let C={id:`${String(m)}`,accessorFn:v,parent:s,depth:i,columnDef:g,columns:[],getFlatColumns:ee(()=>[!0],()=>{var R;return[C,...(R=C.columns)==null?void 0:R.flatMap(S=>S.getFlatColumns())]},te(n.options,"debugColumns")),getLeafColumns:ee(()=>[n._getOrderColumnsFn()],R=>{var S;if((S=C.columns)!=null&&S.length){let E=C.columns.flatMap(_=>_.getLeafColumns());return R(E)}return[C]},te(n.options,"debugColumns"))};for(const R of n._features)R.createColumn==null||R.createColumn(C,n);return C}const We="debugHeaders";function jg(n,u,i){var s;let f={id:(s=i.id)!=null?s:u.id,column:u,index:i.index,isPlaceholder:!!i.isPlaceholder,placeholderId:i.placeholderId,depth:i.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const d=[],g=p=>{p.subHeaders&&p.subHeaders.length&&p.subHeaders.map(g),d.push(p)};return g(f),d},getContext:()=>({table:n,header:f,column:u})};return n._features.forEach(d=>{d.createHeader==null||d.createHeader(f,n)}),f}const YS={createTable:n=>{n.getHeaderGroups=ee(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.left,n.getState().columnPinning.right],(u,i,s,o)=>{var f,d;const g=(f=s?.map(C=>i.find(R=>R.id===C)).filter(Boolean))!=null?f:[],p=(d=o?.map(C=>i.find(R=>R.id===C)).filter(Boolean))!=null?d:[],m=i.filter(C=>!(s!=null&&s.includes(C.id))&&!(o!=null&&o.includes(C.id)));return wu(u,[...g,...m,...p],n)},te(n.options,We)),n.getCenterHeaderGroups=ee(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.left,n.getState().columnPinning.right],(u,i,s,o)=>(i=i.filter(f=>!(s!=null&&s.includes(f.id))&&!(o!=null&&o.includes(f.id))),wu(u,i,n,"center")),te(n.options,We)),n.getLeftHeaderGroups=ee(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.left],(u,i,s)=>{var o;const f=(o=s?.map(d=>i.find(g=>g.id===d)).filter(Boolean))!=null?o:[];return wu(u,f,n,"left")},te(n.options,We)),n.getRightHeaderGroups=ee(()=>[n.getAllColumns(),n.getVisibleLeafColumns(),n.getState().columnPinning.right],(u,i,s)=>{var o;const f=(o=s?.map(d=>i.find(g=>g.id===d)).filter(Boolean))!=null?o:[];return wu(u,f,n,"right")},te(n.options,We)),n.getFooterGroups=ee(()=>[n.getHeaderGroups()],u=>[...u].reverse(),te(n.options,We)),n.getLeftFooterGroups=ee(()=>[n.getLeftHeaderGroups()],u=>[...u].reverse(),te(n.options,We)),n.getCenterFooterGroups=ee(()=>[n.getCenterHeaderGroups()],u=>[...u].reverse(),te(n.options,We)),n.getRightFooterGroups=ee(()=>[n.getRightHeaderGroups()],u=>[...u].reverse(),te(n.options,We)),n.getFlatHeaders=ee(()=>[n.getHeaderGroups()],u=>u.map(i=>i.headers).flat(),te(n.options,We)),n.getLeftFlatHeaders=ee(()=>[n.getLeftHeaderGroups()],u=>u.map(i=>i.headers).flat(),te(n.options,We)),n.getCenterFlatHeaders=ee(()=>[n.getCenterHeaderGroups()],u=>u.map(i=>i.headers).flat(),te(n.options,We)),n.getRightFlatHeaders=ee(()=>[n.getRightHeaderGroups()],u=>u.map(i=>i.headers).flat(),te(n.options,We)),n.getCenterLeafHeaders=ee(()=>[n.getCenterFlatHeaders()],u=>u.filter(i=>{var s;return!((s=i.subHeaders)!=null&&s.length)}),te(n.options,We)),n.getLeftLeafHeaders=ee(()=>[n.getLeftFlatHeaders()],u=>u.filter(i=>{var s;return!((s=i.subHeaders)!=null&&s.length)}),te(n.options,We)),n.getRightLeafHeaders=ee(()=>[n.getRightFlatHeaders()],u=>u.filter(i=>{var s;return!((s=i.subHeaders)!=null&&s.length)}),te(n.options,We)),n.getLeafHeaders=ee(()=>[n.getLeftHeaderGroups(),n.getCenterHeaderGroups(),n.getRightHeaderGroups()],(u,i,s)=>{var o,f,d,g,p,m;return[...(o=(f=u[0])==null?void 0:f.headers)!=null?o:[],...(d=(g=i[0])==null?void 0:g.headers)!=null?d:[],...(p=(m=s[0])==null?void 0:m.headers)!=null?p:[]].map(v=>v.getLeafHeaders()).flat()},te(n.options,We))}};function wu(n,u,i,s){var o,f;let d=0;const g=function(R,S){S===void 0&&(S=1),d=Math.max(d,S),R.filter(E=>E.getIsVisible()).forEach(E=>{var _;(_=E.columns)!=null&&_.length&&g(E.columns,S+1)},0)};g(n);let p=[];const m=(R,S)=>{const E={depth:S,id:[s,`${S}`].filter(Boolean).join("_"),headers:[]},_=[];R.forEach(z=>{const A=[..._].reverse()[0],H=z.column.depth===E.depth;let G,X=!1;if(H&&z.column.parent?G=z.column.parent:(G=z.column,X=!0),A&&A?.column===G)A.subHeaders.push(z);else{const I=jg(i,G,{id:[s,S,G.id,z?.id].filter(Boolean).join("_"),isPlaceholder:X,placeholderId:X?`${_.filter(me=>me.column===G).length}`:void 0,depth:S,index:_.length});I.subHeaders.push(z),_.push(I)}E.headers.push(z),z.headerGroup=E}),p.push(E),S>0&&m(_,S-1)},v=u.map((R,S)=>jg(i,R,{depth:d,index:S}));m(v,d-1),p.reverse();const C=R=>R.filter(E=>E.column.getIsVisible()).map(E=>{let _=0,z=0,A=[0];E.subHeaders&&E.subHeaders.length?(A=[],C(E.subHeaders).forEach(G=>{let{colSpan:X,rowSpan:I}=G;_+=X,A.push(I)})):_=1;const H=Math.min(...A);return z=z+H,E.colSpan=_,E.rowSpan=z,{colSpan:_,rowSpan:z}});return C((o=(f=p[0])==null?void 0:f.headers)!=null?o:[]),p}const Io=(n,u,i,s,o,f,d)=>{let g={id:u,index:s,original:i,depth:o,parentId:d,_valuesCache:{},_uniqueValuesCache:{},getValue:p=>{if(g._valuesCache.hasOwnProperty(p))return g._valuesCache[p];const m=n.getColumn(p);if(m!=null&&m.accessorFn)return g._valuesCache[p]=m.accessorFn(g.original,s),g._valuesCache[p]},getUniqueValues:p=>{if(g._uniqueValuesCache.hasOwnProperty(p))return g._uniqueValuesCache[p];const m=n.getColumn(p);if(m!=null&&m.accessorFn)return m.columnDef.getUniqueValues?(g._uniqueValuesCache[p]=m.columnDef.getUniqueValues(g.original,s),g._uniqueValuesCache[p]):(g._uniqueValuesCache[p]=[g.getValue(p)],g._uniqueValuesCache[p])},renderValue:p=>{var m;return(m=g.getValue(p))!=null?m:n.options.renderFallbackValue},subRows:[],getLeafRows:()=>GS(g.subRows,p=>p.subRows),getParentRow:()=>g.parentId?n.getRow(g.parentId,!0):void 0,getParentRows:()=>{let p=[],m=g;for(;;){const v=m.getParentRow();if(!v)break;p.push(v),m=v}return p.reverse()},getAllCells:ee(()=>[n.getAllLeafColumns()],p=>p.map(m=>QS(n,g,m,m.id)),te(n.options,"debugRows")),_getAllCellsByColumnId:ee(()=>[g.getAllCells()],p=>p.reduce((m,v)=>(m[v.column.id]=v,m),{}),te(n.options,"debugRows"))};for(let p=0;p<n._features.length;p++){const m=n._features[p];m==null||m.createRow==null||m.createRow(g,n)}return g},XS={createColumn:(n,u)=>{n._getFacetedRowModel=u.options.getFacetedRowModel&&u.options.getFacetedRowModel(u,n.id),n.getFacetedRowModel=()=>n._getFacetedRowModel?n._getFacetedRowModel():u.getPreFilteredRowModel(),n._getFacetedUniqueValues=u.options.getFacetedUniqueValues&&u.options.getFacetedUniqueValues(u,n.id),n.getFacetedUniqueValues=()=>n._getFacetedUniqueValues?n._getFacetedUniqueValues():new Map,n._getFacetedMinMaxValues=u.options.getFacetedMinMaxValues&&u.options.getFacetedMinMaxValues(u,n.id),n.getFacetedMinMaxValues=()=>{if(n._getFacetedMinMaxValues)return n._getFacetedMinMaxValues()}}},gm=(n,u,i)=>{var s,o;const f=i==null||(s=i.toString())==null?void 0:s.toLowerCase();return!!(!((o=n.getValue(u))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(f))};gm.autoRemove=n=>Vt(n);const mm=(n,u,i)=>{var s;return!!(!((s=n.getValue(u))==null||(s=s.toString())==null)&&s.includes(i))};mm.autoRemove=n=>Vt(n);const pm=(n,u,i)=>{var s;return((s=n.getValue(u))==null||(s=s.toString())==null?void 0:s.toLowerCase())===i?.toLowerCase()};pm.autoRemove=n=>Vt(n);const vm=(n,u,i)=>{var s;return(s=n.getValue(u))==null?void 0:s.includes(i)};vm.autoRemove=n=>Vt(n);const ym=(n,u,i)=>!i.some(s=>{var o;return!((o=n.getValue(u))!=null&&o.includes(s))});ym.autoRemove=n=>Vt(n)||!(n!=null&&n.length);const Sm=(n,u,i)=>i.some(s=>{var o;return(o=n.getValue(u))==null?void 0:o.includes(s)});Sm.autoRemove=n=>Vt(n)||!(n!=null&&n.length);const Cm=(n,u,i)=>n.getValue(u)===i;Cm.autoRemove=n=>Vt(n);const Rm=(n,u,i)=>n.getValue(u)==i;Rm.autoRemove=n=>Vt(n);const Wo=(n,u,i)=>{let[s,o]=i;const f=n.getValue(u);return f>=s&&f<=o};Wo.resolveFilterValue=n=>{let[u,i]=n,s=typeof u!="number"?parseFloat(u):u,o=typeof i!="number"?parseFloat(i):i,f=u===null||Number.isNaN(s)?-1/0:s,d=i===null||Number.isNaN(o)?1/0:o;if(f>d){const g=f;f=d,d=g}return[f,d]};Wo.autoRemove=n=>Vt(n)||Vt(n[0])&&Vt(n[1]);const dn={includesString:gm,includesStringSensitive:mm,equalsString:pm,arrIncludes:vm,arrIncludesAll:ym,arrIncludesSome:Sm,equals:Cm,weakEquals:Rm,inNumberRange:Wo};function Vt(n){return n==null||n===""}const KS={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:n=>({columnFilters:[],...n}),getDefaultOptions:n=>({onColumnFiltersChange:bt("columnFilters",n),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(n,u)=>{n.getAutoFilterFn=()=>{const i=u.getCoreRowModel().flatRows[0],s=i?.getValue(n.id);return typeof s=="string"?dn.includesString:typeof s=="number"?dn.inNumberRange:typeof s=="boolean"||s!==null&&typeof s=="object"?dn.equals:Array.isArray(s)?dn.arrIncludes:dn.weakEquals},n.getFilterFn=()=>{var i,s;return Vu(n.columnDef.filterFn)?n.columnDef.filterFn:n.columnDef.filterFn==="auto"?n.getAutoFilterFn():(i=(s=u.options.filterFns)==null?void 0:s[n.columnDef.filterFn])!=null?i:dn[n.columnDef.filterFn]},n.getCanFilter=()=>{var i,s,o;return((i=n.columnDef.enableColumnFilter)!=null?i:!0)&&((s=u.options.enableColumnFilters)!=null?s:!0)&&((o=u.options.enableFilters)!=null?o:!0)&&!!n.accessorFn},n.getIsFiltered=()=>n.getFilterIndex()>-1,n.getFilterValue=()=>{var i;return(i=u.getState().columnFilters)==null||(i=i.find(s=>s.id===n.id))==null?void 0:i.value},n.getFilterIndex=()=>{var i,s;return(i=(s=u.getState().columnFilters)==null?void 0:s.findIndex(o=>o.id===n.id))!=null?i:-1},n.setFilterValue=i=>{u.setColumnFilters(s=>{const o=n.getFilterFn(),f=s?.find(v=>v.id===n.id),d=Fn(i,f?f.value:void 0);if(Hg(o,d,n)){var g;return(g=s?.filter(v=>v.id!==n.id))!=null?g:[]}const p={id:n.id,value:d};if(f){var m;return(m=s?.map(v=>v.id===n.id?p:v))!=null?m:[]}return s!=null&&s.length?[...s,p]:[p]})}},createRow:(n,u)=>{n.columnFilters={},n.columnFiltersMeta={}},createTable:n=>{n.setColumnFilters=u=>{const i=n.getAllLeafColumns(),s=o=>{var f;return(f=Fn(u,o))==null?void 0:f.filter(d=>{const g=i.find(p=>p.id===d.id);if(g){const p=g.getFilterFn();if(Hg(p,d.value,g))return!1}return!0})};n.options.onColumnFiltersChange==null||n.options.onColumnFiltersChange(s)},n.resetColumnFilters=u=>{var i,s;n.setColumnFilters(u?[]:(i=(s=n.initialState)==null?void 0:s.columnFilters)!=null?i:[])},n.getPreFilteredRowModel=()=>n.getCoreRowModel(),n.getFilteredRowModel=()=>(!n._getFilteredRowModel&&n.options.getFilteredRowModel&&(n._getFilteredRowModel=n.options.getFilteredRowModel(n)),n.options.manualFiltering||!n._getFilteredRowModel?n.getPreFilteredRowModel():n._getFilteredRowModel())}};function Hg(n,u,i){return(n&&n.autoRemove?n.autoRemove(u,i):!1)||typeof u>"u"||typeof u=="string"&&!u}const ZS=(n,u,i)=>i.reduce((s,o)=>{const f=o.getValue(n);return s+(typeof f=="number"?f:0)},0),JS=(n,u,i)=>{let s;return i.forEach(o=>{const f=o.getValue(n);f!=null&&(s>f||s===void 0&&f>=f)&&(s=f)}),s},PS=(n,u,i)=>{let s;return i.forEach(o=>{const f=o.getValue(n);f!=null&&(s<f||s===void 0&&f>=f)&&(s=f)}),s},kS=(n,u,i)=>{let s,o;return i.forEach(f=>{const d=f.getValue(n);d!=null&&(s===void 0?d>=d&&(s=o=d):(s>d&&(s=d),o<d&&(o=d)))}),[s,o]},IS=(n,u)=>{let i=0,s=0;if(u.forEach(o=>{let f=o.getValue(n);f!=null&&(f=+f)>=f&&(++i,s+=f)}),i)return s/i},WS=(n,u)=>{if(!u.length)return;const i=u.map(f=>f.getValue(n));if(!qS(i))return;if(i.length===1)return i[0];const s=Math.floor(i.length/2),o=i.sort((f,d)=>f-d);return i.length%2!==0?o[s]:(o[s-1]+o[s])/2},e1=(n,u)=>Array.from(new Set(u.map(i=>i.getValue(n))).values()),t1=(n,u)=>new Set(u.map(i=>i.getValue(n))).size,n1=(n,u)=>u.length,fo={sum:ZS,min:JS,max:PS,extent:kS,mean:IS,median:WS,unique:e1,uniqueCount:t1,count:n1},l1={getDefaultColumnDef:()=>({aggregatedCell:n=>{var u,i;return(u=(i=n.getValue())==null||i.toString==null?void 0:i.toString())!=null?u:null},aggregationFn:"auto"}),getInitialState:n=>({grouping:[],...n}),getDefaultOptions:n=>({onGroupingChange:bt("grouping",n),groupedColumnMode:"reorder"}),createColumn:(n,u)=>{n.toggleGrouping=()=>{u.setGrouping(i=>i!=null&&i.includes(n.id)?i.filter(s=>s!==n.id):[...i??[],n.id])},n.getCanGroup=()=>{var i,s;return((i=n.columnDef.enableGrouping)!=null?i:!0)&&((s=u.options.enableGrouping)!=null?s:!0)&&(!!n.accessorFn||!!n.columnDef.getGroupingValue)},n.getIsGrouped=()=>{var i;return(i=u.getState().grouping)==null?void 0:i.includes(n.id)},n.getGroupedIndex=()=>{var i;return(i=u.getState().grouping)==null?void 0:i.indexOf(n.id)},n.getToggleGroupingHandler=()=>{const i=n.getCanGroup();return()=>{i&&n.toggleGrouping()}},n.getAutoAggregationFn=()=>{const i=u.getCoreRowModel().flatRows[0],s=i?.getValue(n.id);if(typeof s=="number")return fo.sum;if(Object.prototype.toString.call(s)==="[object Date]")return fo.extent},n.getAggregationFn=()=>{var i,s;if(!n)throw new Error;return Vu(n.columnDef.aggregationFn)?n.columnDef.aggregationFn:n.columnDef.aggregationFn==="auto"?n.getAutoAggregationFn():(i=(s=u.options.aggregationFns)==null?void 0:s[n.columnDef.aggregationFn])!=null?i:fo[n.columnDef.aggregationFn]}},createTable:n=>{n.setGrouping=u=>n.options.onGroupingChange==null?void 0:n.options.onGroupingChange(u),n.resetGrouping=u=>{var i,s;n.setGrouping(u?[]:(i=(s=n.initialState)==null?void 0:s.grouping)!=null?i:[])},n.getPreGroupedRowModel=()=>n.getFilteredRowModel(),n.getGroupedRowModel=()=>(!n._getGroupedRowModel&&n.options.getGroupedRowModel&&(n._getGroupedRowModel=n.options.getGroupedRowModel(n)),n.options.manualGrouping||!n._getGroupedRowModel?n.getPreGroupedRowModel():n._getGroupedRowModel())},createRow:(n,u)=>{n.getIsGrouped=()=>!!n.groupingColumnId,n.getGroupingValue=i=>{if(n._groupingValuesCache.hasOwnProperty(i))return n._groupingValuesCache[i];const s=u.getColumn(i);return s!=null&&s.columnDef.getGroupingValue?(n._groupingValuesCache[i]=s.columnDef.getGroupingValue(n.original),n._groupingValuesCache[i]):n.getValue(i)},n._groupingValuesCache={}},createCell:(n,u,i,s)=>{n.getIsGrouped=()=>u.getIsGrouped()&&u.id===i.groupingColumnId,n.getIsPlaceholder=()=>!n.getIsGrouped()&&u.getIsGrouped(),n.getIsAggregated=()=>{var o;return!n.getIsGrouped()&&!n.getIsPlaceholder()&&!!((o=i.subRows)!=null&&o.length)}}};function a1(n,u,i){if(!(u!=null&&u.length)||!i)return n;const s=n.filter(f=>!u.includes(f.id));return i==="remove"?s:[...u.map(f=>n.find(d=>d.id===f)).filter(Boolean),...s]}const i1={getInitialState:n=>({columnOrder:[],...n}),getDefaultOptions:n=>({onColumnOrderChange:bt("columnOrder",n)}),createColumn:(n,u)=>{n.getIndex=ee(i=>[Ia(u,i)],i=>i.findIndex(s=>s.id===n.id),te(u.options,"debugColumns")),n.getIsFirstColumn=i=>{var s;return((s=Ia(u,i)[0])==null?void 0:s.id)===n.id},n.getIsLastColumn=i=>{var s;const o=Ia(u,i);return((s=o[o.length-1])==null?void 0:s.id)===n.id}},createTable:n=>{n.setColumnOrder=u=>n.options.onColumnOrderChange==null?void 0:n.options.onColumnOrderChange(u),n.resetColumnOrder=u=>{var i;n.setColumnOrder(u?[]:(i=n.initialState.columnOrder)!=null?i:[])},n._getOrderColumnsFn=ee(()=>[n.getState().columnOrder,n.getState().grouping,n.options.groupedColumnMode],(u,i,s)=>o=>{let f=[];if(!(u!=null&&u.length))f=o;else{const d=[...u],g=[...o];for(;g.length&&d.length;){const p=d.shift(),m=g.findIndex(v=>v.id===p);m>-1&&f.push(g.splice(m,1)[0])}f=[...f,...g]}return a1(f,i,s)},te(n.options,"debugTable"))}},ho=()=>({left:[],right:[]}),u1={getInitialState:n=>({columnPinning:ho(),...n}),getDefaultOptions:n=>({onColumnPinningChange:bt("columnPinning",n)}),createColumn:(n,u)=>{n.pin=i=>{const s=n.getLeafColumns().map(o=>o.id).filter(Boolean);u.setColumnPinning(o=>{var f,d;if(i==="right"){var g,p;return{left:((g=o?.left)!=null?g:[]).filter(C=>!(s!=null&&s.includes(C))),right:[...((p=o?.right)!=null?p:[]).filter(C=>!(s!=null&&s.includes(C))),...s]}}if(i==="left"){var m,v;return{left:[...((m=o?.left)!=null?m:[]).filter(C=>!(s!=null&&s.includes(C))),...s],right:((v=o?.right)!=null?v:[]).filter(C=>!(s!=null&&s.includes(C)))}}return{left:((f=o?.left)!=null?f:[]).filter(C=>!(s!=null&&s.includes(C))),right:((d=o?.right)!=null?d:[]).filter(C=>!(s!=null&&s.includes(C)))}})},n.getCanPin=()=>n.getLeafColumns().some(s=>{var o,f,d;return((o=s.columnDef.enablePinning)!=null?o:!0)&&((f=(d=u.options.enableColumnPinning)!=null?d:u.options.enablePinning)!=null?f:!0)}),n.getIsPinned=()=>{const i=n.getLeafColumns().map(g=>g.id),{left:s,right:o}=u.getState().columnPinning,f=i.some(g=>s?.includes(g)),d=i.some(g=>o?.includes(g));return f?"left":d?"right":!1},n.getPinnedIndex=()=>{var i,s;const o=n.getIsPinned();return o?(i=(s=u.getState().columnPinning)==null||(s=s[o])==null?void 0:s.indexOf(n.id))!=null?i:-1:0}},createRow:(n,u)=>{n.getCenterVisibleCells=ee(()=>[n._getAllVisibleCells(),u.getState().columnPinning.left,u.getState().columnPinning.right],(i,s,o)=>{const f=[...s??[],...o??[]];return i.filter(d=>!f.includes(d.column.id))},te(u.options,"debugRows")),n.getLeftVisibleCells=ee(()=>[n._getAllVisibleCells(),u.getState().columnPinning.left],(i,s)=>(s??[]).map(f=>i.find(d=>d.column.id===f)).filter(Boolean).map(f=>({...f,position:"left"})),te(u.options,"debugRows")),n.getRightVisibleCells=ee(()=>[n._getAllVisibleCells(),u.getState().columnPinning.right],(i,s)=>(s??[]).map(f=>i.find(d=>d.column.id===f)).filter(Boolean).map(f=>({...f,position:"right"})),te(u.options,"debugRows"))},createTable:n=>{n.setColumnPinning=u=>n.options.onColumnPinningChange==null?void 0:n.options.onColumnPinningChange(u),n.resetColumnPinning=u=>{var i,s;return n.setColumnPinning(u?ho():(i=(s=n.initialState)==null?void 0:s.columnPinning)!=null?i:ho())},n.getIsSomeColumnsPinned=u=>{var i;const s=n.getState().columnPinning;if(!u){var o,f;return!!((o=s.left)!=null&&o.length||(f=s.right)!=null&&f.length)}return!!((i=s[u])!=null&&i.length)},n.getLeftLeafColumns=ee(()=>[n.getAllLeafColumns(),n.getState().columnPinning.left],(u,i)=>(i??[]).map(s=>u.find(o=>o.id===s)).filter(Boolean),te(n.options,"debugColumns")),n.getRightLeafColumns=ee(()=>[n.getAllLeafColumns(),n.getState().columnPinning.right],(u,i)=>(i??[]).map(s=>u.find(o=>o.id===s)).filter(Boolean),te(n.options,"debugColumns")),n.getCenterLeafColumns=ee(()=>[n.getAllLeafColumns(),n.getState().columnPinning.left,n.getState().columnPinning.right],(u,i,s)=>{const o=[...i??[],...s??[]];return u.filter(f=>!o.includes(f.id))},te(n.options,"debugColumns"))}};function s1(n){return n||(typeof document<"u"?document:null)}const Ou={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},go=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),r1={getDefaultColumnDef:()=>Ou,getInitialState:n=>({columnSizing:{},columnSizingInfo:go(),...n}),getDefaultOptions:n=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:bt("columnSizing",n),onColumnSizingInfoChange:bt("columnSizingInfo",n)}),createColumn:(n,u)=>{n.getSize=()=>{var i,s,o;const f=u.getState().columnSizing[n.id];return Math.min(Math.max((i=n.columnDef.minSize)!=null?i:Ou.minSize,(s=f??n.columnDef.size)!=null?s:Ou.size),(o=n.columnDef.maxSize)!=null?o:Ou.maxSize)},n.getStart=ee(i=>[i,Ia(u,i),u.getState().columnSizing],(i,s)=>s.slice(0,n.getIndex(i)).reduce((o,f)=>o+f.getSize(),0),te(u.options,"debugColumns")),n.getAfter=ee(i=>[i,Ia(u,i),u.getState().columnSizing],(i,s)=>s.slice(n.getIndex(i)+1).reduce((o,f)=>o+f.getSize(),0),te(u.options,"debugColumns")),n.resetSize=()=>{u.setColumnSizing(i=>{let{[n.id]:s,...o}=i;return o})},n.getCanResize=()=>{var i,s;return((i=n.columnDef.enableResizing)!=null?i:!0)&&((s=u.options.enableColumnResizing)!=null?s:!0)},n.getIsResizing=()=>u.getState().columnSizingInfo.isResizingColumn===n.id},createHeader:(n,u)=>{n.getSize=()=>{let i=0;const s=o=>{if(o.subHeaders.length)o.subHeaders.forEach(s);else{var f;i+=(f=o.column.getSize())!=null?f:0}};return s(n),i},n.getStart=()=>{if(n.index>0){const i=n.headerGroup.headers[n.index-1];return i.getStart()+i.getSize()}return 0},n.getResizeHandler=i=>{const s=u.getColumn(n.column.id),o=s?.getCanResize();return f=>{if(!s||!o||(f.persist==null||f.persist(),mo(f)&&f.touches&&f.touches.length>1))return;const d=n.getSize(),g=n?n.getLeafHeaders().map(A=>[A.column.id,A.column.getSize()]):[[s.id,s.getSize()]],p=mo(f)?Math.round(f.touches[0].clientX):f.clientX,m={},v=(A,H)=>{typeof H=="number"&&(u.setColumnSizingInfo(G=>{var X,I;const me=u.options.columnResizeDirection==="rtl"?-1:1,K=(H-((X=G?.startOffset)!=null?X:0))*me,P=Math.max(K/((I=G?.startSize)!=null?I:0),-.999999);return G.columnSizingStart.forEach(le=>{let[fe,we]=le;m[fe]=Math.round(Math.max(we+we*P,0)*100)/100}),{...G,deltaOffset:K,deltaPercentage:P}}),(u.options.columnResizeMode==="onChange"||A==="end")&&u.setColumnSizing(G=>({...G,...m})))},C=A=>v("move",A),R=A=>{v("end",A),u.setColumnSizingInfo(H=>({...H,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},S=s1(i),E={moveHandler:A=>C(A.clientX),upHandler:A=>{S?.removeEventListener("mousemove",E.moveHandler),S?.removeEventListener("mouseup",E.upHandler),R(A.clientX)}},_={moveHandler:A=>(A.cancelable&&(A.preventDefault(),A.stopPropagation()),C(A.touches[0].clientX),!1),upHandler:A=>{var H;S?.removeEventListener("touchmove",_.moveHandler),S?.removeEventListener("touchend",_.upHandler),A.cancelable&&(A.preventDefault(),A.stopPropagation()),R((H=A.touches[0])==null?void 0:H.clientX)}},z=o1()?{passive:!1}:!1;mo(f)?(S?.addEventListener("touchmove",_.moveHandler,z),S?.addEventListener("touchend",_.upHandler,z)):(S?.addEventListener("mousemove",E.moveHandler,z),S?.addEventListener("mouseup",E.upHandler,z)),u.setColumnSizingInfo(A=>({...A,startOffset:p,startSize:d,deltaOffset:0,deltaPercentage:0,columnSizingStart:g,isResizingColumn:s.id}))}}},createTable:n=>{n.setColumnSizing=u=>n.options.onColumnSizingChange==null?void 0:n.options.onColumnSizingChange(u),n.setColumnSizingInfo=u=>n.options.onColumnSizingInfoChange==null?void 0:n.options.onColumnSizingInfoChange(u),n.resetColumnSizing=u=>{var i;n.setColumnSizing(u?{}:(i=n.initialState.columnSizing)!=null?i:{})},n.resetHeaderSizeInfo=u=>{var i;n.setColumnSizingInfo(u?go():(i=n.initialState.columnSizingInfo)!=null?i:go())},n.getTotalSize=()=>{var u,i;return(u=(i=n.getHeaderGroups()[0])==null?void 0:i.headers.reduce((s,o)=>s+o.getSize(),0))!=null?u:0},n.getLeftTotalSize=()=>{var u,i;return(u=(i=n.getLeftHeaderGroups()[0])==null?void 0:i.headers.reduce((s,o)=>s+o.getSize(),0))!=null?u:0},n.getCenterTotalSize=()=>{var u,i;return(u=(i=n.getCenterHeaderGroups()[0])==null?void 0:i.headers.reduce((s,o)=>s+o.getSize(),0))!=null?u:0},n.getRightTotalSize=()=>{var u,i;return(u=(i=n.getRightHeaderGroups()[0])==null?void 0:i.headers.reduce((s,o)=>s+o.getSize(),0))!=null?u:0}}};let zu=null;function o1(){if(typeof zu=="boolean")return zu;let n=!1;try{const u={get passive(){return n=!0,!1}},i=()=>{};window.addEventListener("test",i,u),window.removeEventListener("test",i)}catch{n=!1}return zu=n,zu}function mo(n){return n.type==="touchstart"}const c1={getInitialState:n=>({columnVisibility:{},...n}),getDefaultOptions:n=>({onColumnVisibilityChange:bt("columnVisibility",n)}),createColumn:(n,u)=>{n.toggleVisibility=i=>{n.getCanHide()&&u.setColumnVisibility(s=>({...s,[n.id]:i??!n.getIsVisible()}))},n.getIsVisible=()=>{var i,s;const o=n.columns;return(i=o.length?o.some(f=>f.getIsVisible()):(s=u.getState().columnVisibility)==null?void 0:s[n.id])!=null?i:!0},n.getCanHide=()=>{var i,s;return((i=n.columnDef.enableHiding)!=null?i:!0)&&((s=u.options.enableHiding)!=null?s:!0)},n.getToggleVisibilityHandler=()=>i=>{n.toggleVisibility==null||n.toggleVisibility(i.target.checked)}},createRow:(n,u)=>{n._getAllVisibleCells=ee(()=>[n.getAllCells(),u.getState().columnVisibility],i=>i.filter(s=>s.column.getIsVisible()),te(u.options,"debugRows")),n.getVisibleCells=ee(()=>[n.getLeftVisibleCells(),n.getCenterVisibleCells(),n.getRightVisibleCells()],(i,s,o)=>[...i,...s,...o],te(u.options,"debugRows"))},createTable:n=>{const u=(i,s)=>ee(()=>[s(),s().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(f=>f.getIsVisible==null?void 0:f.getIsVisible()),te(n.options,"debugColumns"));n.getVisibleFlatColumns=u("getVisibleFlatColumns",()=>n.getAllFlatColumns()),n.getVisibleLeafColumns=u("getVisibleLeafColumns",()=>n.getAllLeafColumns()),n.getLeftVisibleLeafColumns=u("getLeftVisibleLeafColumns",()=>n.getLeftLeafColumns()),n.getRightVisibleLeafColumns=u("getRightVisibleLeafColumns",()=>n.getRightLeafColumns()),n.getCenterVisibleLeafColumns=u("getCenterVisibleLeafColumns",()=>n.getCenterLeafColumns()),n.setColumnVisibility=i=>n.options.onColumnVisibilityChange==null?void 0:n.options.onColumnVisibilityChange(i),n.resetColumnVisibility=i=>{var s;n.setColumnVisibility(i?{}:(s=n.initialState.columnVisibility)!=null?s:{})},n.toggleAllColumnsVisible=i=>{var s;i=(s=i)!=null?s:!n.getIsAllColumnsVisible(),n.setColumnVisibility(n.getAllLeafColumns().reduce((o,f)=>({...o,[f.id]:i||!(f.getCanHide!=null&&f.getCanHide())}),{}))},n.getIsAllColumnsVisible=()=>!n.getAllLeafColumns().some(i=>!(i.getIsVisible!=null&&i.getIsVisible())),n.getIsSomeColumnsVisible=()=>n.getAllLeafColumns().some(i=>i.getIsVisible==null?void 0:i.getIsVisible()),n.getToggleAllColumnsVisibilityHandler=()=>i=>{var s;n.toggleAllColumnsVisible((s=i.target)==null?void 0:s.checked)}}};function Ia(n,u){return u?u==="center"?n.getCenterVisibleLeafColumns():u==="left"?n.getLeftVisibleLeafColumns():n.getRightVisibleLeafColumns():n.getVisibleLeafColumns()}const f1={createTable:n=>{n._getGlobalFacetedRowModel=n.options.getFacetedRowModel&&n.options.getFacetedRowModel(n,"__global__"),n.getGlobalFacetedRowModel=()=>n.options.manualFiltering||!n._getGlobalFacetedRowModel?n.getPreFilteredRowModel():n._getGlobalFacetedRowModel(),n._getGlobalFacetedUniqueValues=n.options.getFacetedUniqueValues&&n.options.getFacetedUniqueValues(n,"__global__"),n.getGlobalFacetedUniqueValues=()=>n._getGlobalFacetedUniqueValues?n._getGlobalFacetedUniqueValues():new Map,n._getGlobalFacetedMinMaxValues=n.options.getFacetedMinMaxValues&&n.options.getFacetedMinMaxValues(n,"__global__"),n.getGlobalFacetedMinMaxValues=()=>{if(n._getGlobalFacetedMinMaxValues)return n._getGlobalFacetedMinMaxValues()}}},d1={getInitialState:n=>({globalFilter:void 0,...n}),getDefaultOptions:n=>({onGlobalFilterChange:bt("globalFilter",n),globalFilterFn:"auto",getColumnCanGlobalFilter:u=>{var i;const s=(i=n.getCoreRowModel().flatRows[0])==null||(i=i._getAllCellsByColumnId()[u.id])==null?void 0:i.getValue();return typeof s=="string"||typeof s=="number"}}),createColumn:(n,u)=>{n.getCanGlobalFilter=()=>{var i,s,o,f;return((i=n.columnDef.enableGlobalFilter)!=null?i:!0)&&((s=u.options.enableGlobalFilter)!=null?s:!0)&&((o=u.options.enableFilters)!=null?o:!0)&&((f=u.options.getColumnCanGlobalFilter==null?void 0:u.options.getColumnCanGlobalFilter(n))!=null?f:!0)&&!!n.accessorFn}},createTable:n=>{n.getGlobalAutoFilterFn=()=>dn.includesString,n.getGlobalFilterFn=()=>{var u,i;const{globalFilterFn:s}=n.options;return Vu(s)?s:s==="auto"?n.getGlobalAutoFilterFn():(u=(i=n.options.filterFns)==null?void 0:i[s])!=null?u:dn[s]},n.setGlobalFilter=u=>{n.options.onGlobalFilterChange==null||n.options.onGlobalFilterChange(u)},n.resetGlobalFilter=u=>{n.setGlobalFilter(u?void 0:n.initialState.globalFilter)}}},h1={getInitialState:n=>({expanded:{},...n}),getDefaultOptions:n=>({onExpandedChange:bt("expanded",n),paginateExpandedRows:!0}),createTable:n=>{let u=!1,i=!1;n._autoResetExpanded=()=>{var s,o;if(!u){n._queue(()=>{u=!0});return}if((s=(o=n.options.autoResetAll)!=null?o:n.options.autoResetExpanded)!=null?s:!n.options.manualExpanding){if(i)return;i=!0,n._queue(()=>{n.resetExpanded(),i=!1})}},n.setExpanded=s=>n.options.onExpandedChange==null?void 0:n.options.onExpandedChange(s),n.toggleAllRowsExpanded=s=>{s??!n.getIsAllRowsExpanded()?n.setExpanded(!0):n.setExpanded({})},n.resetExpanded=s=>{var o,f;n.setExpanded(s?{}:(o=(f=n.initialState)==null?void 0:f.expanded)!=null?o:{})},n.getCanSomeRowsExpand=()=>n.getPrePaginationRowModel().flatRows.some(s=>s.getCanExpand()),n.getToggleAllRowsExpandedHandler=()=>s=>{s.persist==null||s.persist(),n.toggleAllRowsExpanded()},n.getIsSomeRowsExpanded=()=>{const s=n.getState().expanded;return s===!0||Object.values(s).some(Boolean)},n.getIsAllRowsExpanded=()=>{const s=n.getState().expanded;return typeof s=="boolean"?s===!0:!(!Object.keys(s).length||n.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},n.getExpandedDepth=()=>{let s=0;return(n.getState().expanded===!0?Object.keys(n.getRowModel().rowsById):Object.keys(n.getState().expanded)).forEach(f=>{const d=f.split(".");s=Math.max(s,d.length)}),s},n.getPreExpandedRowModel=()=>n.getSortedRowModel(),n.getExpandedRowModel=()=>(!n._getExpandedRowModel&&n.options.getExpandedRowModel&&(n._getExpandedRowModel=n.options.getExpandedRowModel(n)),n.options.manualExpanding||!n._getExpandedRowModel?n.getPreExpandedRowModel():n._getExpandedRowModel())},createRow:(n,u)=>{n.toggleExpanded=i=>{u.setExpanded(s=>{var o;const f=s===!0?!0:!!(s!=null&&s[n.id]);let d={};if(s===!0?Object.keys(u.getRowModel().rowsById).forEach(g=>{d[g]=!0}):d=s,i=(o=i)!=null?o:!f,!f&&i)return{...d,[n.id]:!0};if(f&&!i){const{[n.id]:g,...p}=d;return p}return s})},n.getIsExpanded=()=>{var i;const s=u.getState().expanded;return!!((i=u.options.getIsRowExpanded==null?void 0:u.options.getIsRowExpanded(n))!=null?i:s===!0||s?.[n.id])},n.getCanExpand=()=>{var i,s,o;return(i=u.options.getRowCanExpand==null?void 0:u.options.getRowCanExpand(n))!=null?i:((s=u.options.enableExpanding)!=null?s:!0)&&!!((o=n.subRows)!=null&&o.length)},n.getIsAllParentsExpanded=()=>{let i=!0,s=n;for(;i&&s.parentId;)s=u.getRow(s.parentId,!0),i=s.getIsExpanded();return i},n.getToggleExpandedHandler=()=>{const i=n.getCanExpand();return()=>{i&&n.toggleExpanded()}}}},Oo=0,zo=10,po=()=>({pageIndex:Oo,pageSize:zo}),g1={getInitialState:n=>({...n,pagination:{...po(),...n?.pagination}}),getDefaultOptions:n=>({onPaginationChange:bt("pagination",n)}),createTable:n=>{let u=!1,i=!1;n._autoResetPageIndex=()=>{var s,o;if(!u){n._queue(()=>{u=!0});return}if((s=(o=n.options.autoResetAll)!=null?o:n.options.autoResetPageIndex)!=null?s:!n.options.manualPagination){if(i)return;i=!0,n._queue(()=>{n.resetPageIndex(),i=!1})}},n.setPagination=s=>{const o=f=>Fn(s,f);return n.options.onPaginationChange==null?void 0:n.options.onPaginationChange(o)},n.resetPagination=s=>{var o;n.setPagination(s?po():(o=n.initialState.pagination)!=null?o:po())},n.setPageIndex=s=>{n.setPagination(o=>{let f=Fn(s,o.pageIndex);const d=typeof n.options.pageCount>"u"||n.options.pageCount===-1?Number.MAX_SAFE_INTEGER:n.options.pageCount-1;return f=Math.max(0,Math.min(f,d)),{...o,pageIndex:f}})},n.resetPageIndex=s=>{var o,f;n.setPageIndex(s?Oo:(o=(f=n.initialState)==null||(f=f.pagination)==null?void 0:f.pageIndex)!=null?o:Oo)},n.resetPageSize=s=>{var o,f;n.setPageSize(s?zo:(o=(f=n.initialState)==null||(f=f.pagination)==null?void 0:f.pageSize)!=null?o:zo)},n.setPageSize=s=>{n.setPagination(o=>{const f=Math.max(1,Fn(s,o.pageSize)),d=o.pageSize*o.pageIndex,g=Math.floor(d/f);return{...o,pageIndex:g,pageSize:f}})},n.setPageCount=s=>n.setPagination(o=>{var f;let d=Fn(s,(f=n.options.pageCount)!=null?f:-1);return typeof d=="number"&&(d=Math.max(-1,d)),{...o,pageCount:d}}),n.getPageOptions=ee(()=>[n.getPageCount()],s=>{let o=[];return s&&s>0&&(o=[...new Array(s)].fill(null).map((f,d)=>d)),o},te(n.options,"debugTable")),n.getCanPreviousPage=()=>n.getState().pagination.pageIndex>0,n.getCanNextPage=()=>{const{pageIndex:s}=n.getState().pagination,o=n.getPageCount();return o===-1?!0:o===0?!1:s<o-1},n.previousPage=()=>n.setPageIndex(s=>s-1),n.nextPage=()=>n.setPageIndex(s=>s+1),n.firstPage=()=>n.setPageIndex(0),n.lastPage=()=>n.setPageIndex(n.getPageCount()-1),n.getPrePaginationRowModel=()=>n.getExpandedRowModel(),n.getPaginationRowModel=()=>(!n._getPaginationRowModel&&n.options.getPaginationRowModel&&(n._getPaginationRowModel=n.options.getPaginationRowModel(n)),n.options.manualPagination||!n._getPaginationRowModel?n.getPrePaginationRowModel():n._getPaginationRowModel()),n.getPageCount=()=>{var s;return(s=n.options.pageCount)!=null?s:Math.ceil(n.getRowCount()/n.getState().pagination.pageSize)},n.getRowCount=()=>{var s;return(s=n.options.rowCount)!=null?s:n.getPrePaginationRowModel().rows.length}}},vo=()=>({top:[],bottom:[]}),m1={getInitialState:n=>({rowPinning:vo(),...n}),getDefaultOptions:n=>({onRowPinningChange:bt("rowPinning",n)}),createRow:(n,u)=>{n.pin=(i,s,o)=>{const f=s?n.getLeafRows().map(p=>{let{id:m}=p;return m}):[],d=o?n.getParentRows().map(p=>{let{id:m}=p;return m}):[],g=new Set([...d,n.id,...f]);u.setRowPinning(p=>{var m,v;if(i==="bottom"){var C,R;return{top:((C=p?.top)!=null?C:[]).filter(_=>!(g!=null&&g.has(_))),bottom:[...((R=p?.bottom)!=null?R:[]).filter(_=>!(g!=null&&g.has(_))),...Array.from(g)]}}if(i==="top"){var S,E;return{top:[...((S=p?.top)!=null?S:[]).filter(_=>!(g!=null&&g.has(_))),...Array.from(g)],bottom:((E=p?.bottom)!=null?E:[]).filter(_=>!(g!=null&&g.has(_)))}}return{top:((m=p?.top)!=null?m:[]).filter(_=>!(g!=null&&g.has(_))),bottom:((v=p?.bottom)!=null?v:[]).filter(_=>!(g!=null&&g.has(_)))}})},n.getCanPin=()=>{var i;const{enableRowPinning:s,enablePinning:o}=u.options;return typeof s=="function"?s(n):(i=s??o)!=null?i:!0},n.getIsPinned=()=>{const i=[n.id],{top:s,bottom:o}=u.getState().rowPinning,f=i.some(g=>s?.includes(g)),d=i.some(g=>o?.includes(g));return f?"top":d?"bottom":!1},n.getPinnedIndex=()=>{var i,s;const o=n.getIsPinned();if(!o)return-1;const f=(i=o==="top"?u.getTopRows():u.getBottomRows())==null?void 0:i.map(d=>{let{id:g}=d;return g});return(s=f?.indexOf(n.id))!=null?s:-1}},createTable:n=>{n.setRowPinning=u=>n.options.onRowPinningChange==null?void 0:n.options.onRowPinningChange(u),n.resetRowPinning=u=>{var i,s;return n.setRowPinning(u?vo():(i=(s=n.initialState)==null?void 0:s.rowPinning)!=null?i:vo())},n.getIsSomeRowsPinned=u=>{var i;const s=n.getState().rowPinning;if(!u){var o,f;return!!((o=s.top)!=null&&o.length||(f=s.bottom)!=null&&f.length)}return!!((i=s[u])!=null&&i.length)},n._getPinnedRows=(u,i,s)=>{var o;return((o=n.options.keepPinnedRows)==null||o?(i??[]).map(d=>{const g=n.getRow(d,!0);return g.getIsAllParentsExpanded()?g:null}):(i??[]).map(d=>u.find(g=>g.id===d))).filter(Boolean).map(d=>({...d,position:s}))},n.getTopRows=ee(()=>[n.getRowModel().rows,n.getState().rowPinning.top],(u,i)=>n._getPinnedRows(u,i,"top"),te(n.options,"debugRows")),n.getBottomRows=ee(()=>[n.getRowModel().rows,n.getState().rowPinning.bottom],(u,i)=>n._getPinnedRows(u,i,"bottom"),te(n.options,"debugRows")),n.getCenterRows=ee(()=>[n.getRowModel().rows,n.getState().rowPinning.top,n.getState().rowPinning.bottom],(u,i,s)=>{const o=new Set([...i??[],...s??[]]);return u.filter(f=>!o.has(f.id))},te(n.options,"debugRows"))}},p1={getInitialState:n=>({rowSelection:{},...n}),getDefaultOptions:n=>({onRowSelectionChange:bt("rowSelection",n),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:n=>{n.setRowSelection=u=>n.options.onRowSelectionChange==null?void 0:n.options.onRowSelectionChange(u),n.resetRowSelection=u=>{var i;return n.setRowSelection(u?{}:(i=n.initialState.rowSelection)!=null?i:{})},n.toggleAllRowsSelected=u=>{n.setRowSelection(i=>{u=typeof u<"u"?u:!n.getIsAllRowsSelected();const s={...i},o=n.getPreGroupedRowModel().flatRows;return u?o.forEach(f=>{f.getCanSelect()&&(s[f.id]=!0)}):o.forEach(f=>{delete s[f.id]}),s})},n.toggleAllPageRowsSelected=u=>n.setRowSelection(i=>{const s=typeof u<"u"?u:!n.getIsAllPageRowsSelected(),o={...i};return n.getRowModel().rows.forEach(f=>{Ao(o,f.id,s,!0,n)}),o}),n.getPreSelectedRowModel=()=>n.getCoreRowModel(),n.getSelectedRowModel=ee(()=>[n.getState().rowSelection,n.getCoreRowModel()],(u,i)=>Object.keys(u).length?yo(n,i):{rows:[],flatRows:[],rowsById:{}},te(n.options,"debugTable")),n.getFilteredSelectedRowModel=ee(()=>[n.getState().rowSelection,n.getFilteredRowModel()],(u,i)=>Object.keys(u).length?yo(n,i):{rows:[],flatRows:[],rowsById:{}},te(n.options,"debugTable")),n.getGroupedSelectedRowModel=ee(()=>[n.getState().rowSelection,n.getSortedRowModel()],(u,i)=>Object.keys(u).length?yo(n,i):{rows:[],flatRows:[],rowsById:{}},te(n.options,"debugTable")),n.getIsAllRowsSelected=()=>{const u=n.getFilteredRowModel().flatRows,{rowSelection:i}=n.getState();let s=!!(u.length&&Object.keys(i).length);return s&&u.some(o=>o.getCanSelect()&&!i[o.id])&&(s=!1),s},n.getIsAllPageRowsSelected=()=>{const u=n.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:i}=n.getState();let s=!!u.length;return s&&u.some(o=>!i[o.id])&&(s=!1),s},n.getIsSomeRowsSelected=()=>{var u;const i=Object.keys((u=n.getState().rowSelection)!=null?u:{}).length;return i>0&&i<n.getFilteredRowModel().flatRows.length},n.getIsSomePageRowsSelected=()=>{const u=n.getPaginationRowModel().flatRows;return n.getIsAllPageRowsSelected()?!1:u.filter(i=>i.getCanSelect()).some(i=>i.getIsSelected()||i.getIsSomeSelected())},n.getToggleAllRowsSelectedHandler=()=>u=>{n.toggleAllRowsSelected(u.target.checked)},n.getToggleAllPageRowsSelectedHandler=()=>u=>{n.toggleAllPageRowsSelected(u.target.checked)}},createRow:(n,u)=>{n.toggleSelected=(i,s)=>{const o=n.getIsSelected();u.setRowSelection(f=>{var d;if(i=typeof i<"u"?i:!o,n.getCanSelect()&&o===i)return f;const g={...f};return Ao(g,n.id,i,(d=s?.selectChildren)!=null?d:!0,u),g})},n.getIsSelected=()=>{const{rowSelection:i}=u.getState();return ec(n,i)},n.getIsSomeSelected=()=>{const{rowSelection:i}=u.getState();return Do(n,i)==="some"},n.getIsAllSubRowsSelected=()=>{const{rowSelection:i}=u.getState();return Do(n,i)==="all"},n.getCanSelect=()=>{var i;return typeof u.options.enableRowSelection=="function"?u.options.enableRowSelection(n):(i=u.options.enableRowSelection)!=null?i:!0},n.getCanSelectSubRows=()=>{var i;return typeof u.options.enableSubRowSelection=="function"?u.options.enableSubRowSelection(n):(i=u.options.enableSubRowSelection)!=null?i:!0},n.getCanMultiSelect=()=>{var i;return typeof u.options.enableMultiRowSelection=="function"?u.options.enableMultiRowSelection(n):(i=u.options.enableMultiRowSelection)!=null?i:!0},n.getToggleSelectedHandler=()=>{const i=n.getCanSelect();return s=>{var o;i&&n.toggleSelected((o=s.target)==null?void 0:o.checked)}}}},Ao=(n,u,i,s,o)=>{var f;const d=o.getRow(u,!0);i?(d.getCanMultiSelect()||Object.keys(n).forEach(g=>delete n[g]),d.getCanSelect()&&(n[u]=!0)):delete n[u],s&&(f=d.subRows)!=null&&f.length&&d.getCanSelectSubRows()&&d.subRows.forEach(g=>Ao(n,g.id,i,s,o))};function yo(n,u){const i=n.getState().rowSelection,s=[],o={},f=function(d,g){return d.map(p=>{var m;const v=ec(p,i);if(v&&(s.push(p),o[p.id]=p),(m=p.subRows)!=null&&m.length&&(p={...p,subRows:f(p.subRows)}),v)return p}).filter(Boolean)};return{rows:f(u.rows),flatRows:s,rowsById:o}}function ec(n,u){var i;return(i=u[n.id])!=null?i:!1}function Do(n,u,i){var s;if(!((s=n.subRows)!=null&&s.length))return!1;let o=!0,f=!1;return n.subRows.forEach(d=>{if(!(f&&!o)&&(d.getCanSelect()&&(ec(d,u)?f=!0:o=!1),d.subRows&&d.subRows.length)){const g=Do(d,u);g==="all"?f=!0:(g==="some"&&(f=!0),o=!1)}}),o?"all":f?"some":!1}const No=/([0-9]+)/gm,v1=(n,u,i)=>bm(Gn(n.getValue(i)).toLowerCase(),Gn(u.getValue(i)).toLowerCase()),y1=(n,u,i)=>bm(Gn(n.getValue(i)),Gn(u.getValue(i))),S1=(n,u,i)=>tc(Gn(n.getValue(i)).toLowerCase(),Gn(u.getValue(i)).toLowerCase()),C1=(n,u,i)=>tc(Gn(n.getValue(i)),Gn(u.getValue(i))),R1=(n,u,i)=>{const s=n.getValue(i),o=u.getValue(i);return s>o?1:s<o?-1:0},b1=(n,u,i)=>tc(n.getValue(i),u.getValue(i));function tc(n,u){return n===u?0:n>u?1:-1}function Gn(n){return typeof n=="number"?isNaN(n)||n===1/0||n===-1/0?"":String(n):typeof n=="string"?n:""}function bm(n,u){const i=n.split(No).filter(Boolean),s=u.split(No).filter(Boolean);for(;i.length&&s.length;){const o=i.shift(),f=s.shift(),d=parseInt(o,10),g=parseInt(f,10),p=[d,g].sort();if(isNaN(p[0])){if(o>f)return 1;if(f>o)return-1;continue}if(isNaN(p[1]))return isNaN(d)?-1:1;if(d>g)return 1;if(g>d)return-1}return i.length-s.length}const ka={alphanumeric:v1,alphanumericCaseSensitive:y1,text:S1,textCaseSensitive:C1,datetime:R1,basic:b1},E1={getInitialState:n=>({sorting:[],...n}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:n=>({onSortingChange:bt("sorting",n),isMultiSortEvent:u=>u.shiftKey}),createColumn:(n,u)=>{n.getAutoSortingFn=()=>{const i=u.getFilteredRowModel().flatRows.slice(10);let s=!1;for(const o of i){const f=o?.getValue(n.id);if(Object.prototype.toString.call(f)==="[object Date]")return ka.datetime;if(typeof f=="string"&&(s=!0,f.split(No).length>1))return ka.alphanumeric}return s?ka.text:ka.basic},n.getAutoSortDir=()=>{const i=u.getFilteredRowModel().flatRows[0];return typeof i?.getValue(n.id)=="string"?"asc":"desc"},n.getSortingFn=()=>{var i,s;if(!n)throw new Error;return Vu(n.columnDef.sortingFn)?n.columnDef.sortingFn:n.columnDef.sortingFn==="auto"?n.getAutoSortingFn():(i=(s=u.options.sortingFns)==null?void 0:s[n.columnDef.sortingFn])!=null?i:ka[n.columnDef.sortingFn]},n.toggleSorting=(i,s)=>{const o=n.getNextSortingOrder(),f=typeof i<"u"&&i!==null;u.setSorting(d=>{const g=d?.find(S=>S.id===n.id),p=d?.findIndex(S=>S.id===n.id);let m=[],v,C=f?i:o==="desc";if(d!=null&&d.length&&n.getCanMultiSort()&&s?g?v="toggle":v="add":d!=null&&d.length&&p!==d.length-1?v="replace":g?v="toggle":v="replace",v==="toggle"&&(f||o||(v="remove")),v==="add"){var R;m=[...d,{id:n.id,desc:C}],m.splice(0,m.length-((R=u.options.maxMultiSortColCount)!=null?R:Number.MAX_SAFE_INTEGER))}else v==="toggle"?m=d.map(S=>S.id===n.id?{...S,desc:C}:S):v==="remove"?m=d.filter(S=>S.id!==n.id):m=[{id:n.id,desc:C}];return m})},n.getFirstSortDir=()=>{var i,s;return((i=(s=n.columnDef.sortDescFirst)!=null?s:u.options.sortDescFirst)!=null?i:n.getAutoSortDir()==="desc")?"desc":"asc"},n.getNextSortingOrder=i=>{var s,o;const f=n.getFirstSortDir(),d=n.getIsSorted();return d?d!==f&&((s=u.options.enableSortingRemoval)==null||s)&&(!(i&&(o=u.options.enableMultiRemove)!=null)||o)?!1:d==="desc"?"asc":"desc":f},n.getCanSort=()=>{var i,s;return((i=n.columnDef.enableSorting)!=null?i:!0)&&((s=u.options.enableSorting)!=null?s:!0)&&!!n.accessorFn},n.getCanMultiSort=()=>{var i,s;return(i=(s=n.columnDef.enableMultiSort)!=null?s:u.options.enableMultiSort)!=null?i:!!n.accessorFn},n.getIsSorted=()=>{var i;const s=(i=u.getState().sorting)==null?void 0:i.find(o=>o.id===n.id);return s?s.desc?"desc":"asc":!1},n.getSortIndex=()=>{var i,s;return(i=(s=u.getState().sorting)==null?void 0:s.findIndex(o=>o.id===n.id))!=null?i:-1},n.clearSorting=()=>{u.setSorting(i=>i!=null&&i.length?i.filter(s=>s.id!==n.id):[])},n.getToggleSortingHandler=()=>{const i=n.getCanSort();return s=>{i&&(s.persist==null||s.persist(),n.toggleSorting==null||n.toggleSorting(void 0,n.getCanMultiSort()?u.options.isMultiSortEvent==null?void 0:u.options.isMultiSortEvent(s):!1))}}},createTable:n=>{n.setSorting=u=>n.options.onSortingChange==null?void 0:n.options.onSortingChange(u),n.resetSorting=u=>{var i,s;n.setSorting(u?[]:(i=(s=n.initialState)==null?void 0:s.sorting)!=null?i:[])},n.getPreSortedRowModel=()=>n.getGroupedRowModel(),n.getSortedRowModel=()=>(!n._getSortedRowModel&&n.options.getSortedRowModel&&(n._getSortedRowModel=n.options.getSortedRowModel(n)),n.options.manualSorting||!n._getSortedRowModel?n.getPreSortedRowModel():n._getSortedRowModel())}},x1=[YS,c1,i1,u1,XS,KS,f1,d1,E1,l1,h1,g1,m1,p1,r1];function _1(n){var u,i;const s=[...x1,...(u=n._features)!=null?u:[]];let o={_features:s};const f=o._features.reduce((R,S)=>Object.assign(R,S.getDefaultOptions==null?void 0:S.getDefaultOptions(o)),{}),d=R=>o.options.mergeOptions?o.options.mergeOptions(f,R):{...f,...R};let p={...{},...(i=n.initialState)!=null?i:{}};o._features.forEach(R=>{var S;p=(S=R.getInitialState==null?void 0:R.getInitialState(p))!=null?S:p});const m=[];let v=!1;const C={_features:s,options:{...f,...n},initialState:p,_queue:R=>{m.push(R),v||(v=!0,Promise.resolve().then(()=>{for(;m.length;)m.shift()();v=!1}).catch(S=>setTimeout(()=>{throw S})))},reset:()=>{o.setState(o.initialState)},setOptions:R=>{const S=Fn(R,o.options);o.options=d(S)},getState:()=>o.options.state,setState:R=>{o.options.onStateChange==null||o.options.onStateChange(R)},_getRowId:(R,S,E)=>{var _;return(_=o.options.getRowId==null?void 0:o.options.getRowId(R,S,E))!=null?_:`${E?[E.id,S].join("."):S}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(R,S)=>{let E=(S?o.getPrePaginationRowModel():o.getRowModel()).rowsById[R];if(!E&&(E=o.getCoreRowModel().rowsById[R],!E))throw new Error;return E},_getDefaultColumnDef:ee(()=>[o.options.defaultColumn],R=>{var S;return R=(S=R)!=null?S:{},{header:E=>{const _=E.header.column.columnDef;return _.accessorKey?_.accessorKey:_.accessorFn?_.id:null},cell:E=>{var _,z;return(_=(z=E.renderValue())==null||z.toString==null?void 0:z.toString())!=null?_:null},...o._features.reduce((E,_)=>Object.assign(E,_.getDefaultColumnDef==null?void 0:_.getDefaultColumnDef()),{}),...R}},te(n,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:ee(()=>[o._getColumnDefs()],R=>{const S=function(E,_,z){return z===void 0&&(z=0),E.map(A=>{const H=$S(o,A,z,_),G=A;return H.columns=G.columns?S(G.columns,H,z+1):[],H})};return S(R)},te(n,"debugColumns")),getAllFlatColumns:ee(()=>[o.getAllColumns()],R=>R.flatMap(S=>S.getFlatColumns()),te(n,"debugColumns")),_getAllFlatColumnsById:ee(()=>[o.getAllFlatColumns()],R=>R.reduce((S,E)=>(S[E.id]=E,S),{}),te(n,"debugColumns")),getAllLeafColumns:ee(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(R,S)=>{let E=R.flatMap(_=>_.getLeafColumns());return S(E)},te(n,"debugColumns")),getColumn:R=>o._getAllFlatColumnsById()[R]};Object.assign(o,C);for(let R=0;R<o._features.length;R++){const S=o._features[R];S==null||S.createTable==null||S.createTable(o)}return o}function M1(){return n=>ee(()=>[n.options.data],u=>{const i={rows:[],flatRows:[],rowsById:{}},s=function(o,f,d){f===void 0&&(f=0);const g=[];for(let m=0;m<o.length;m++){const v=Io(n,n._getRowId(o[m],m,d),o[m],m,f,void 0,d?.id);if(i.flatRows.push(v),i.rowsById[v.id]=v,g.push(v),n.options.getSubRows){var p;v.originalSubRows=n.options.getSubRows(o[m],m),(p=v.originalSubRows)!=null&&p.length&&(v.subRows=s(v.originalSubRows,f+1,v))}}return g};return i.rows=s(u),i},te(n.options,"debugTable","getRowModel",()=>n._autoResetPageIndex()))}function T1(n,u,i){return i.options.filterFromLeafRows?w1(n,u,i):O1(n,u,i)}function w1(n,u,i){var s;const o=[],f={},d=(s=i.options.maxLeafRowFilterDepth)!=null?s:100,g=function(p,m){m===void 0&&(m=0);const v=[];for(let R=0;R<p.length;R++){var C;let S=p[R];const E=Io(i,S.id,S.original,S.index,S.depth,void 0,S.parentId);if(E.columnFilters=S.columnFilters,(C=S.subRows)!=null&&C.length&&m<d){if(E.subRows=g(S.subRows,m+1),S=E,u(S)&&!E.subRows.length){v.push(S),f[S.id]=S,o.push(S);continue}if(u(S)||E.subRows.length){v.push(S),f[S.id]=S,o.push(S);continue}}else S=E,u(S)&&(v.push(S),f[S.id]=S,o.push(S))}return v};return{rows:g(n),flatRows:o,rowsById:f}}function O1(n,u,i){var s;const o=[],f={},d=(s=i.options.maxLeafRowFilterDepth)!=null?s:100,g=function(p,m){m===void 0&&(m=0);const v=[];for(let R=0;R<p.length;R++){let S=p[R];if(u(S)){var C;if((C=S.subRows)!=null&&C.length&&m<d){const _=Io(i,S.id,S.original,S.index,S.depth,void 0,S.parentId);_.subRows=g(S.subRows,m+1),S=_}v.push(S),o.push(S),f[S.id]=S}}return v};return{rows:g(n),flatRows:o,rowsById:f}}function z1(){return n=>ee(()=>[n.getPreFilteredRowModel(),n.getState().columnFilters,n.getState().globalFilter],(u,i,s)=>{if(!u.rows.length||!(i!=null&&i.length)&&!s){for(let R=0;R<u.flatRows.length;R++)u.flatRows[R].columnFilters={},u.flatRows[R].columnFiltersMeta={};return u}const o=[],f=[];(i??[]).forEach(R=>{var S;const E=n.getColumn(R.id);if(!E)return;const _=E.getFilterFn();_&&o.push({id:R.id,filterFn:_,resolvedValue:(S=_.resolveFilterValue==null?void 0:_.resolveFilterValue(R.value))!=null?S:R.value})});const d=(i??[]).map(R=>R.id),g=n.getGlobalFilterFn(),p=n.getAllLeafColumns().filter(R=>R.getCanGlobalFilter());s&&g&&p.length&&(d.push("__global__"),p.forEach(R=>{var S;f.push({id:R.id,filterFn:g,resolvedValue:(S=g.resolveFilterValue==null?void 0:g.resolveFilterValue(s))!=null?S:s})}));let m,v;for(let R=0;R<u.flatRows.length;R++){const S=u.flatRows[R];if(S.columnFilters={},o.length)for(let E=0;E<o.length;E++){m=o[E];const _=m.id;S.columnFilters[_]=m.filterFn(S,_,m.resolvedValue,z=>{S.columnFiltersMeta[_]=z})}if(f.length){for(let E=0;E<f.length;E++){v=f[E];const _=v.id;if(v.filterFn(S,_,v.resolvedValue,z=>{S.columnFiltersMeta[_]=z})){S.columnFilters.__global__=!0;break}}S.columnFilters.__global__!==!0&&(S.columnFilters.__global__=!1)}}const C=R=>{for(let S=0;S<d.length;S++)if(R.columnFilters[d[S]]===!1)return!1;return!0};return T1(u.rows,C,n)},te(n.options,"debugTable","getFilteredRowModel",()=>n._autoResetPageIndex()))}function A1(){return n=>ee(()=>[n.getState().sorting,n.getPreSortedRowModel()],(u,i)=>{if(!i.rows.length||!(u!=null&&u.length))return i;const s=n.getState().sorting,o=[],f=s.filter(p=>{var m;return(m=n.getColumn(p.id))==null?void 0:m.getCanSort()}),d={};f.forEach(p=>{const m=n.getColumn(p.id);m&&(d[p.id]={sortUndefined:m.columnDef.sortUndefined,invertSorting:m.columnDef.invertSorting,sortingFn:m.getSortingFn()})});const g=p=>{const m=p.map(v=>({...v}));return m.sort((v,C)=>{for(let S=0;S<f.length;S+=1){var R;const E=f[S],_=d[E.id],z=_.sortUndefined,A=(R=E?.desc)!=null?R:!1;let H=0;if(z){const G=v.getValue(E.id),X=C.getValue(E.id),I=G===void 0,me=X===void 0;if(I||me){if(z==="first")return I?-1:1;if(z==="last")return I?1:-1;H=I&&me?0:I?z:-z}}if(H===0&&(H=_.sortingFn(v,C,E.id)),H!==0)return A&&(H*=-1),_.invertSorting&&(H*=-1),H}return v.index-C.index}),m.forEach(v=>{var C;o.push(v),(C=v.subRows)!=null&&C.length&&(v.subRows=g(v.subRows))}),m};return{rows:g(i.rows),flatRows:o,rowsById:i.rowsById}},te(n.options,"debugTable","getSortedRowModel",()=>n._autoResetPageIndex()))}/**
   * react-table
   *
   * Copyright (c) TanStack
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE.md file in the root directory of this source tree.
   *
   * @license MIT
   */function Lg(n,u){return n?D1(n)?M.createElement(n,u):n:null}function D1(n){return N1(n)||typeof n=="function"||U1(n)}function N1(n){return typeof n=="function"&&(()=>{const u=Object.getPrototypeOf(n);return u.prototype&&u.prototype.isReactComponent})()}function U1(n){return typeof n=="object"&&typeof n.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(n.$$typeof.description)}function j1(n){const u={state:{},onStateChange:()=>{},renderFallbackValue:null,...n},[i]=M.useState(()=>({current:_1(u)})),[s,o]=M.useState(()=>i.current.initialState);return i.current.setOptions(f=>({...f,...n,state:{...s,...n.state},onStateChange:d=>{o(d),n.onStateChange==null||n.onStateChange(d)}})),i.current}function H1(n){const u=n?.original?.metadata?.petriFailed;return typeof u=="number"&&u>0?"failed-row":"passed-row"}function ui({data:n,columns:u,sorting:i,onSortingChange:s,columnWidthMap:o,estimatedRowHeight:f=100,overscan:d=20,getRowClassName:g,onRowClick:p,scrollToIndex:m}){const v=j1({data:n,columns:u,state:{sorting:i},onSortingChange:s,getCoreRowModel:M1(),getSortedRowModel:A1(),getFilteredRowModel:z1(),enableSorting:!0,enableSortingRemoval:!1,debugTable:!1}),{rows:C}=v.getRowModel(),R=M.useRef(null),S=M.useRef(null),[E,_]=M.useState(25.5);M.useLayoutEffect(()=>{const A=S.current;A&&_(A.getBoundingClientRect().height)},[]);const z=FS({count:C.length,getScrollElement:()=>R.current,estimateSize:()=>f,overscan:d,measureElement:typeof window<"u"&&navigator.userAgent.indexOf("Firefox")===-1?A=>A?.getBoundingClientRect().height:void 0});return M.useEffect(()=>{z.calculateRange(),z.getVirtualItems().forEach(A=>{const H=document.querySelector(`[data-index="${A.index}"]`);H&&z.measureElement(H)})},[C.length,n,z,i]),M.useEffect(()=>{if(m!=null&&!(m<0||m>=C.length))try{z.scrollToIndex(m,{align:"center"})}catch{}},[m,z,C.length]),w.jsxs("div",{children:[w.jsx("div",{ref:S,className:"virtualized-table-header-container",children:w.jsx("table",{className:"virtualized-table",children:w.jsx("thead",{children:v.getHeaderGroups().map(A=>w.jsx("tr",{children:A.headers.map(H=>w.jsx("th",{className:H.column.getCanSort()?"sortable":"",onClick:H.column.getToggleSortingHandler(),style:{width:o[H.column.id]},children:w.jsxs("div",{className:"virtualized-table-header-content",children:[H.isPlaceholder?null:Lg(H.column.columnDef.header,H.getContext()),H.column.getCanSort()&&w.jsx("span",{className:"sort-indicator",children:{asc:"↑",desc:"↓"}[H.column.getIsSorted()]??"⇅"})]})},H.id))},A.id))})})}),w.jsx("div",{ref:R,className:"virtualized-table-body",style:{height:`calc(100vh - 3rem - ${E}px)`},children:w.jsx("div",{style:{height:`${z.getTotalSize()}px`},children:z.getVirtualItems().map(A=>{const H=C[A.index];return w.jsx("div",{"data-index":A.index,ref:z.measureElement,className:`virtualized-table-row ${g?g(H):H1(H)}`,style:{position:"absolute",width:"100%",transform:`translateY(${A.start}px)`},onClick:p?G=>p(H,G):void 0,children:w.jsx("table",{className:"virtualized-table",children:w.jsx("tbody",{children:w.jsx("tr",{children:H.getVisibleCells().map(G=>w.jsx("td",{style:{boxSizing:"border-box",width:o[G.column.id]},children:Lg(G.column.columnDef.cell,G.getContext())},G.id))})})})},H.id)})})})]})}function si({value:n,onChange:u,inputRef:i,usePersistentSearching:s=!0}){const o=qt(),f=hl(),d=M.useRef(!0),g=M.useRef(null),p=i||g;return M.useEffect(()=>{if(!s){d.current=!1;return}const v=new URLSearchParams(o.search).get("search");v!==null&&v!==n&&u(v),d.current=!1},[]),M.useEffect(()=>{if(!s||d.current)return;const m=new URLSearchParams(o.search);n?m.set("search",n):m.delete("search");const v=m.toString(),C=v?`${o.pathname}?${v}`:o.pathname;o.pathname+o.search!==C&&f(C,{replace:!0})},[n,o.pathname,f,o.search,s]),M.useEffect(()=>{const m=v=>{const C=navigator.platform.toUpperCase().includes("MAC");(v.key==="f"||v.key==="F")&&(C&&v.metaKey||!C&&v.ctrlKey)&&document.activeElement!==p.current&&(v.preventDefault(),p.current?.focus(),p.current?.select()),v.key==="Escape"&&n&&u("")};return document.addEventListener("keydown",m),()=>document.removeEventListener("keydown",m)},[n,u]),w.jsxs("div",{style:{display:"inline-block"},children:[w.jsx("input",{ref:p,value:n,onChange:m=>u(m.target.value),placeholder:"Filter ...",className:"common-search-input"}),n&&w.jsx("button",{onClick:()=>u(""),className:"common-search-clear-btn",title:"Clear filter",children:"×"})]})}const L1=[{id:"creationTime",desc:!0}],V1={name:115,creationTime:210,status:60,failed:50,total:60,ghRun:115},B1=n=>[{id:"status",header:"Status",enableSorting:!0,accessorFn:u=>u.metadata.petriFailed===0?"passed":"failed",cell:u=>{const i=u.getValue();return w.jsx("div",{className:"common-status-cell",children:w.jsx("div",{className:i==="passed"?"common-status-pass":"common-status-fail"})})}},{id:"failed",accessorKey:"metadata.petriFailed",header:"Fail",enableSorting:!0,cell:u=>w.jsx("div",{className:"common-failed-count",children:u.getValue()})},{id:"total",header:"Total",enableSorting:!0,accessorFn:u=>u.metadata.petriPassed+u.metadata.petriFailed,cell:u=>w.jsx("div",{className:"common-total-count",children:u.getValue()})},{accessorKey:"name",header:"Run",enableSorting:!0,cell:u=>{const i=u.getValue().replace("runs/","");return w.jsx("a",{href:"#",onClick:s=>{s.preventDefault(),n(i)},className:"common-table-link",children:i})},sortingFn:(u,i,s)=>{const o=u.getValue(s),f=i.getValue(s);return o.localeCompare(f)}},{accessorKey:"creationTime",header:"Created",enableSorting:!0,cell:u=>w.jsx("div",{className:"created-date",children:u.getValue().toLocaleString()}),sortingFn:(u,i,s)=>{const o=u.getValue(s),f=i.getValue(s);return o.getTime()-f.getTime()}},{accessorKey:"metadata.ghBranch",header:"Branch",enableSorting:!0,cell:u=>{const i=u.getValue()||"";return w.jsx("div",{className:"branch-name",title:i,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",lineHeight:"1.25rem"},children:i})}},{accessorKey:"metadata.ghPr",header:"PR",enableSorting:!0,accessorFn:u=>{const i=u.metadata.ghPr,s=u.metadata.prTitle;return i?`${i} ${s||""}`.trim():""},cell:u=>{const i=u.row.original,s=i.metadata.ghPr,o=i.metadata.prTitle,f=s?`#${s}${o?` ${o}`:""}`:"";return s?w.jsx("div",{className:"pr-cell",children:w.jsx("a",{href:`https://github.com/microsoft/openvmm/pull/${s}`,target:"_blank",rel:"noopener noreferrer",className:"pr-link",title:o?`#${s} ${o}`:`PR #${s}`,children:f})}):w.jsx("div",{className:"no-pr",children:"-"})},sortingFn:(u,i)=>{const s=u.original.metadata.ghPr,o=i.original.metadata.ghPr;return!s&&!o?0:s?o?parseInt(s)-parseInt(o):-1:1}},{id:"ghRun",accessorKey:"name",header:"GH Run",enableSorting:!0,cell:u=>{const i=u.getValue().replace("runs/","");return w.jsx("a",{href:`https://github.com/microsoft/openvmm/actions/runs/${i}`,target:"_blank",rel:"noopener noreferrer",className:"common-table-link",children:i})},sortingFn:(u,i,s)=>{const o=u.getValue(s),f=i.getValue(s);return o.localeCompare(f)}}];function F1(){const n=hl(),[u,i]=Qo(),s=u.get("branchFilter")||"all",[o,f]=M.useState(s),[d,g]=M.useState("");M.useEffect(()=>{f(s)},[s]);const p=z=>{f(z);const A=new URLSearchParams(u);A.set("branchFilter",z),i(A,{replace:!0})},{data:m=[],isSuccess:v}=Jo({queryKey:["runs"],queryFn:z=>Po(z.client),staleTime:120*1e3,gcTime:1/0,refetchInterval:120*1e3}),C=v&&m.length===0,[R,S]=M.useState(L1),E=M.useMemo(()=>B1(z=>{n(`/runs/${z}`)}),[n]),_=M.useMemo(()=>G1(m,o,d),[m,o,d]);return w.jsxs("div",{className:"common-page-display",children:[w.jsx("div",{className:"common-page-header",children:w.jsx(q1,{branchFilter:o,setBranchFilter:p,searchFilter:d,setSearchFilter:g,resultCount:_.length,loadingSuccess:v})}),C?w.jsx("div",{className:"common-no-data",children:"Table contains no data."}):w.jsx(ui,{data:_,columns:E,sorting:R,onSortingChange:S,columnWidthMap:V1})]})}function q1({branchFilter:n,setBranchFilter:u,searchFilter:i,setSearchFilter:s,resultCount:o,loadingSuccess:f}){return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"common-header-left",children:[w.jsxs("div",{className:"common-header-title",children:[w.jsx(ii,{}),w.jsx(Rt,{to:"/runs",className:"common-header-path",children:"Runs"})]}),w.jsxs("div",{className:"common-header-filter-buttons",children:[w.jsx("button",{className:`common-header-filter-btn ${n==="all"?"active":""}`,onClick:()=>u("all"),children:"all"}),w.jsx("button",{className:`common-header-filter-btn ${n==="main"?"active":""}`,onClick:()=>u("main"),children:"main"})]}),!f&&w.jsxs("div",{className:"header-loading-indicator",children:[w.jsx("div",{className:"header-loading-spinner"}),w.jsx("div",{className:"header-loading-text",children:"Fetching runs ..."})]})]}),w.jsxs("div",{className:"common-header-right",children:[w.jsx(si,{value:i,onChange:s}),w.jsxs("span",{className:"common-result-count",children:[o," runs"]})]})]})}function G1(n,u,i){let s=u==="all"?n:n.filter(f=>f.metadata.ghBranch===u);const o=i.trim().toLowerCase().split(/\s+/).filter(Boolean);return o.length===0?s:s.filter(f=>{const d=f.metadata.petriFailed===0?"passed":"failed",g=f.metadata.ghPr?`${f.metadata.ghPr} ${f.metadata.prTitle||""}`:"",p=`${f.name} ${d} ${f.metadata.ghBranch||""} ${g}`.toLowerCase();return o.every(m=>p.includes(m))})}const Q1=[{id:"status",desc:!1}],$1={architecture:320,status:60},Y1=n=>[{accessorKey:"status",header:"Status",enableSorting:!0,cell:u=>{const i=u.getValue();return w.jsx("div",{className:"common-status-cell",children:w.jsx("span",{className:i==="passed"?"common-status-pass":"common-status-fail"})})}},{id:"architecture",header:"Architecture",accessorFn:u=>{const i=u.name.split("/");return i.length>1?i[0]:"Other"},cell:u=>w.jsx("div",{className:"common-architecture-name",children:u.getValue()}),enableSorting:!0},{id:"testName",header:"Test Name",accessorFn:u=>{const i=u.name.split("/");return i.length>1?i.slice(1).join("/"):u.name},cell:u=>{const i=u.getValue(),s=u.row.original.name,[o,...f]=s.split("/"),d=encodeURIComponent(o),g=encodeURIComponent(f.join("/"));return w.jsx(Rt,{to:`/runs/${n}/${d}/${g}`,state:{testResult:u.row.original},className:"common-table-link",title:`${s}`,children:i})},enableSorting:!0}];function X1(){const[n,u]=M.useState(""),[i,s]=M.useState(Q1);let{runId:o}=Vo();o=o?decodeURIComponent(o):"";const{data:f,isSuccess:d}=Jo({queryKey:["runDetails",o],queryFn:v=>ko(o,v.client),staleTime:1/0,gcTime:1/0}),g=M.useMemo(()=>Y1(o),[o]),p=M.useMemo(()=>Z1(f?.tests,n),[f?.tests,n]),m=f?.tests&&f.tests.length===0;return w.jsxs("div",{className:"common-page-display",children:[w.jsx("div",{className:"common-page-header",children:w.jsx(K1,{resultCount:p.length,runId:o,searchFilter:n,setSearchFilter:u,loadingSuccess:d})}),m?w.jsx("div",{className:"common-no-data",children:"Table contains no data."}):w.jsx(ui,{data:p,columns:g,sorting:i,onSortingChange:s,columnWidthMap:$1,estimatedRowHeight:44,getRowClassName:v=>v.original.status==="failed"?"failed-row":"passed-row"})]})}function K1({resultCount:n,runId:u,searchFilter:i,setSearchFilter:s,loadingSuccess:o}){return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"common-header-left",children:[w.jsxs("div",{className:"common-header-title",children:[w.jsx(ii,{}),w.jsx(Rt,{to:"/runs",className:"common-header-path",children:"Runs"}),w.jsx("span",{children:"/"}),w.jsx(Rt,{to:`/runs/${u}`,className:"common-header-path",children:u})]}),!o&&w.jsxs("div",{className:"header-loading-indicator",children:[w.jsx("div",{className:"header-loading-spinner"}),w.jsx("div",{className:"header-loading-text",children:"Fetching run details ..."})]})]}),w.jsxs("div",{className:"common-header-right",children:[w.jsx(si,{value:i,onChange:s}),w.jsxs("span",{className:"common-result-count",children:[n," tests"]})]})]})}function Z1(n,u){if(!n)return[];const i=u.trim().toLowerCase().split(/\s+/).filter(Boolean);return i.length===0?n:n.filter(s=>{const o=`${s.name} ${s.status}`.toLowerCase();return i.every(f=>o.includes(f))})}const ju=15,Em=5,J1=[{id:"failedCount",desc:!0}],P1={architecture:300,failedCount:50,totalCount:60,status:60},k1=()=>[{id:"status",header:"Status",enableSorting:!0,accessorFn:n=>n.failedCount===0?"passed":"failed",cell:n=>{const u=n.getValue();return w.jsx("div",{className:"common-status-cell",children:w.jsx("div",{className:u==="passed"?"common-status-pass":"common-status-fail"})})}},{accessorKey:"failedCount",header:"Fail",enableSorting:!0,cell:n=>w.jsx("div",{className:"common-failed-count",children:n.getValue()})},{accessorKey:"totalCount",header:"Total",enableSorting:!0,cell:n=>w.jsx("div",{className:"common-total-count",children:n.getValue()})},{id:"architecture",accessorKey:"architecture",header:"Architecture",enableSorting:!0,cell:n=>w.jsx("div",{className:"common-architecture-name",title:n.getValue(),children:n.getValue()}),sortingFn:(n,u,i)=>{const s=n.getValue(i),o=u.getValue(i);return s.localeCompare(o)}},{accessorKey:"name",header:"Test Name",enableSorting:!0,cell:n=>{const u=n.getValue(),i=n.row.original.architecture,s=encodeURIComponent(i),o=encodeURIComponent(u);return w.jsx(Rt,{to:`/tests/${s}/${o}`,state:{testData:n.row.original},className:"common-table-link",title:u,children:u})},sortingFn:(n,u,i)=>{const s=n.getValue(i),o=u.getValue(i);return s.localeCompare(o)}}];function I1(){const[n,u]=Qo(),i=n.get("branchFilter")||"main",[s,o]=M.useState(i),[f,d]=M.useState(""),[g,p]=M.useState([]),[m,v]=M.useState(0),[C,R]=M.useState(null),S=Zo(),E=M.useRef(ju);M.useEffect(()=>(E.current=ju,()=>{E.current=Em}),[]),M.useEffect(()=>{o(i)},[i]);const _=X=>{o(X);const I=new URLSearchParams(n);I.set("branchFilter",X),u(I,{replace:!0})};M.useEffect(()=>{v(0),dm(s,S,(X,I)=>{v(X),R(I)},()=>E.current).then(X=>{p(TS(X))}).catch(X=>{console.error("Error fetching test analysis:",X)})},[s,S]);const[z,A]=M.useState(J1),H=M.useMemo(()=>k1(),[]),G=M.useMemo(()=>eC(g,f),[g,f]);return w.jsxs("div",{className:"common-page-display",children:[w.jsx("div",{className:"common-page-header",children:w.jsx(W1,{branchFilter:s,setBranchFilter:_,searchFilter:f,setSearchFilter:d,resultCount:G.length,fetchedCount:m,totalToFetch:C})}),w.jsx(ui,{data:G,columns:H,sorting:z,columnWidthMap:P1,onSortingChange:A})]})}function W1({branchFilter:n,setBranchFilter:u,searchFilter:i,setSearchFilter:s,resultCount:o,fetchedCount:f,totalToFetch:d}){return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"common-header-left",children:[w.jsxs("div",{className:"common-header-title",children:[w.jsx(ii,{}),w.jsx(Rt,{to:"/tests",className:"common-header-path",children:"Tests"})]}),w.jsx("div",{className:"common-header-filter-buttons",children:w.jsx("button",{className:`common-header-filter-btn ${n==="main"?"active":""}`,onClick:()=>u("main"),children:"main"})}),d===null&&w.jsxs("div",{className:"header-loading-indicator",children:[w.jsx("div",{className:"header-loading-spinner"}),w.jsx("div",{className:"header-loading-text",children:"Fetching runs ..."})]}),f!==d&&d!==null&&w.jsxs("div",{className:"header-loading-indicator",children:[w.jsx("div",{className:"header-loading-spinner"}),w.jsxs("div",{className:"header-loading-text",children:["Analyzed ",f,"/",d]})]})]}),w.jsxs("div",{className:"common-header-right",children:[w.jsx(si,{value:i,onChange:s}),w.jsxs("span",{className:"common-result-count",children:[o," tests"]})]})]})}function eC(n,u){const i=u.trim().toLowerCase().split(/\s+/).filter(Boolean);return i.length===0?n:n.filter(s=>{const f=`${s.failedCount===0?"passed":"failed"} ${s.architecture} ${s.name}`.toLowerCase();return i.every(d=>f.includes(d))})}const tC=[{id:"creationTime",desc:!0}],nC={creationTime:210,status:60},lC=n=>[{id:"status",header:"Status",accessorKey:"status",enableSorting:!0,cell:u=>{const i=u.getValue();return w.jsx("div",{className:"common-status-cell",children:w.jsx("div",{className:i==="passed"?"common-status-pass":"common-status-fail"})})}},{id:"creationTime",accessorKey:"creationTime",header:"Created",enableSorting:!0,cell:u=>{const i=u.getValue();return w.jsx("div",{className:"created-date",title:i?.toLocaleString(),children:i?.toLocaleString()})},sortingFn:(u,i,s)=>{const o=u.getValue(s),f=i.getValue(s);return!o&&!f?0:o?f?o.getTime()-f.getTime():-1:1}},{id:"runNumber",accessorKey:"runNumber",header:"Run Number",enableSorting:!0,cell:u=>{const i=u.getValue(),s=n?`?search=${encodeURIComponent(n)}`:"";return w.jsx(Rt,{to:`/runs/${i}${s}`,className:"common-table-link",title:i,children:i})},sortingFn:(u,i,s)=>{const o=u.getValue(s),f=i.getValue(s);return o.localeCompare(f)}}];function aC(){const[n,u]=Qo(),i=n.get("branchFilter")||"main",[s,o]=M.useState(i),[f,d]=M.useState(""),[g,p]=M.useState([]),[m,v]=M.useState(0),[C,R]=M.useState(null),S=Zo(),{architecture:E,testName:_}=Vo(),z=E?decodeURIComponent(E):"",A=_?decodeURIComponent(_):"",H=z+"/"+A,G=M.useRef(ju);M.useEffect(()=>(G.current=ju,()=>{G.current=Em}),[]),M.useEffect(()=>{o(i)},[i]);const X=le=>{o(le);const fe=new URLSearchParams(n);fe.set("branchFilter",le),u(fe,{replace:!0})};M.useEffect(()=>{v(0),dm(s,S,(le,fe)=>{v(le),R(fe)},()=>G.current).then(le=>{p(wS(le,H))})},[H,s,S]);const[I,me]=M.useState(tC),K=M.useMemo(()=>lC(H),[H]),P=M.useMemo(()=>uC(g,f),[g,f]);return w.jsxs("div",{className:"common-page-display",children:[w.jsx("div",{className:"common-page-header",children:w.jsx(iC,{architecture:z,testNameRemainder:A,fullTestName:H,branchFilter:s,setBranchFilter:X,searchFilter:f,setSearchFilter:d,resultCount:P.length,fetchedCount:m,totalToFetch:C})}),w.jsx(ui,{data:P,columns:K,sorting:I,columnWidthMap:nC,onSortingChange:me})]})}function iC({architecture:n,testNameRemainder:u,fullTestName:i,branchFilter:s,setBranchFilter:o,searchFilter:f,setSearchFilter:d,resultCount:g,fetchedCount:p,totalToFetch:m}){const v=encodeURIComponent(n),C=encodeURIComponent(u);return w.jsxs(w.Fragment,{children:[w.jsxs("div",{className:"common-header-left",style:{minWidth:0,flex:1,display:"flex"},children:[w.jsxs("div",{className:"common-header-title",style:{minWidth:0},children:[w.jsx(ii,{}),w.jsx(Rt,{to:"/tests",className:"common-header-path",children:"Tests"}),w.jsx("span",{children:"/"}),w.jsx(Rt,{to:`/tests/${v}/${C}`,className:"common-header-path-long",title:i,children:u}),n&&w.jsx("div",{className:"common-sub-header",children:n})]}),w.jsx("div",{className:"common-header-filter-buttons",children:w.jsx("button",{className:`common-header-filter-btn ${s==="main"?"active":""}`,onClick:()=>o("main"),children:"main"})}),m===null&&w.jsxs("div",{className:"header-loading-indicator",children:[w.jsx("div",{className:"header-loading-spinner"}),w.jsx("div",{className:"header-loading-text",children:"Fetching runs ..."})]}),p!==m&&m!==null&&w.jsxs("div",{className:"header-loading-indicator",children:[w.jsx("div",{className:"header-loading-spinner"}),w.jsxs("div",{className:"header-loading-text",children:["Analysed ",p,"/",m]})]})]}),w.jsxs("div",{className:"common-header-right",children:[w.jsx(si,{value:f,onChange:d}),w.jsxs("span",{className:"common-result-count",children:[g," tests"]})]})]})}function uC(n,u){const i=u.trim().toLowerCase().split(/\s+/).filter(Boolean);return i.length===0?n:n.filter(s=>{const o=`${s.runNumber} ${s.status}`.toLowerCase();return i.every(f=>o.includes(f))})}const sC=[{id:"relative",desc:!1}],rC={relative:110,severity:80,source:100,screenshot:100};function oC(n){return[{accessorKey:"relative",header:"Timestamp",cell:u=>w.jsx("span",{title:u.row.original.timestamp,children:u.getValue()}),enableSorting:!0},{accessorKey:"severity",header:"Severity",enableSorting:!1},{accessorKey:"source",header:"Source",enableSorting:!1},{id:"message",accessorFn:u=>u.message,header:"Message",cell:u=>w.jsx("div",{dangerouslySetInnerHTML:{__html:u.row.original.message}}),enableSorting:!1},{id:"screenshot",header:"Screenshot",cell:u=>{const i=u.row.original.screenshot;return i?w.jsx("img",{src:i,alt:"Screenshot",style:{maxWidth:"100px",maxHeight:"50px",cursor:"pointer",objectFit:"contain"},onClick:s=>{s.stopPropagation(),n(i)}}):""},enableSorting:!1}]}function cC({runId:n,architecture:u,testNameRemainder:i,fullTestName:s,searchFilter:o,setSearchFilter:f,searchInputRef:d}){const g=encodeURIComponent(u),p=encodeURIComponent(i);return w.jsxs(w.Fragment,{children:[w.jsx("div",{className:"common-header-left",style:{minWidth:0,flex:1,display:"flex"},children:w.jsxs("div",{className:"common-header-title",style:{minWidth:0},children:[w.jsx(ii,{}),w.jsx(Rt,{to:`/runs/${n}`,className:"common-header-path",children:n}),w.jsx("span",{style:{flexShrink:0},children:"/"}),w.jsx(Rt,{to:`/runs/${n}/${g}/${p}`,className:"common-header-path-long",title:s,children:i}),u&&w.jsx("div",{className:"common-sub-header",children:u})]})}),w.jsx("div",{className:"runs-header-right-section",children:w.jsx(si,{value:o,onChange:f,inputRef:d})})]})}function fC(){const n=qt(),u=hl(),[i,s]=M.useState(""),[o,f]=M.useState(null),[d,g]=M.useState(null),[p,m]=M.useState(null),[v,C]=M.useState(sC),R=M.useRef(null),S=M.useRef(null),E=M.useRef(null),_=M.useRef(!1);let{runId:z,architecture:A,testName:H}=Vo();z=z?decodeURIComponent(z):"",A=A?decodeURIComponent(A):"",H=H?decodeURIComponent(H):"";const G=`${A}/${H}`,{data:X,isSuccess:I}=Jo({queryKey:["petriLog",z,A,H],queryFn:()=>fm(z,A,H),staleTime:1/0,gcTime:1/0}),me=M.useMemo(()=>oC(m),[]),K=M.useMemo(()=>gC(X,i),[X,i]);return M.useEffect(()=>{const P=hC(o,X);return document.addEventListener("keydown",P),()=>document.removeEventListener("keydown",P)},[o,X]),M.useEffect(()=>{_.current=!1;const le=new URLSearchParams(n.search).get("log");if(le==null){E.current=null,_.current=!0;return}const fe=parseInt(le,10);if(isNaN(fe)){E.current=null,_.current=!0;return}E.current=fe},[z,G]),M.useEffect(()=>{if(_.current)return;const P=E.current;if(P==null||!X||!X.length)return;if(!X.some(Qe=>Qe.index===P)){_.current=!0;return}const fe=`log-${P}`;f(fe);const we=K.findIndex(Qe=>Qe.index===P);we>=0&&g(we),_.current=!0},[X,K]),M.useEffect(()=>{if(d==null)return;const P=requestAnimationFrame(()=>g(null));return()=>cancelAnimationFrame(P)},[d]),w.jsxs("div",{className:"common-page-display",children:[w.jsx("div",{className:"common-page-header",children:w.jsx(cC,{runId:z||"unknown",architecture:A,testNameRemainder:H,fullTestName:G,searchFilter:i,setSearchFilter:s,searchInputRef:R})}),w.jsx("div",{ref:S,style:{fontFamily:"monospace",fontSize:"14px",position:"relative"},children:K.length===0&&I?w.jsx("div",{className:"common-no-data",children:"No log entries found"}):w.jsx(ui,{data:K,columns:me,sorting:v,onSortingChange:C,columnWidthMap:rC,estimatedRowHeight:50,getRowClassName:P=>{const le=`log-${P.original.index}`,fe=o===le;return`${`severity-${P.original.severity}`} ${fe?"selected":""}`},onRowClick:(P,le)=>{const fe=`log-${P.original.index}`;dC(P.original.index,fe,le,o,f,n,u)},scrollToIndex:d})}),p&&w.jsx("div",{className:"logviewer-image-div",onClick:()=>m(null),children:w.jsx("img",{src:p,alt:"screenshot",className:"logviewer-image-content"})})]})}function dC(n,u,i,s,o,f,d){if(i.target.closest("a"))return;const g=window.getSelection(),p=!!g&&!g.isCollapsed&&g.toString().trim().length>0,m=i.currentTarget;let v=!1;if(p&&m&&g&&g.rangeCount>0){const S=g.getRangeAt(0).commonAncestorContainer;v=m.contains(S.nodeType===1?S:S.parentElement);return}const C=new URLSearchParams(f.search);if(s===u&&v){C.get("log")||(C.set("log",n.toString()),d(`${f.pathname}?${C.toString()}`,{replace:!0}));return}if(s===u){o(null),C.delete("log"),d(C.toString()?`${f.pathname}?${C.toString()}`:f.pathname,{replace:!0});return}o(u),C.set("log",n.toString()),d(`${f.pathname}?${C.toString()}`,{replace:!0})}function hC(n,u){return i=>{if(!((i.key==="c"||i.key==="C")&&(i.metaKey||i.ctrlKey)))return;const o=document.activeElement;if(o&&(o.tagName==="INPUT"||o.tagName==="TEXTAREA"||o.isContentEditable))return;const f=window.getSelection();if(f&&!f.isCollapsed&&f.toString().trim().length>0||!n)return;const d=parseInt(n.replace("log-",""),10);if(isNaN(d))return;const g=u?.find(v=>v.index===d);if(!g)return;if(i.shiftKey){i.preventDefault();const{origin:v,pathname:C,hash:R}=window.location,S=R.split("?"),E=S[0]||"#/",_=S[1]?new URLSearchParams(S[1]):new URLSearchParams;_.set("log",String(g.index));const z=`${v}${C}${E}?${_.toString()}`;navigator.clipboard?.writeText(z).catch(()=>{try{const A=document.createElement("textarea");A.value=z,A.style.position="fixed",A.style.opacity="0",document.body.appendChild(A),A.select(),document.execCommand("copy"),document.body.removeChild(A)}catch{}});return}i.preventDefault();const p=v=>{const C=document.createElement("textarea");return C.innerHTML=v,C.value};let m=`timestamp: ${g.timestamp}
`;m+=`relative: ${g.relative}
`,m+=`severity: ${g.severity}
`,m+=`source: ${p(g.source)}
`,m+=`message: ${p(g.message.trim())}`,g.screenshot&&(m+=`
screenshot: ${g.screenshot}`),navigator.clipboard?.writeText(m).catch(()=>{try{const v=document.createElement("textarea");v.value=m,v.style.position="fixed",v.style.opacity="0",document.body.appendChild(v),v.select(),document.execCommand("copy"),document.body.removeChild(v)}catch{}})}}function gC(n,u){if(!n)return[];if(!u.trim())return n;let i=u;(u.match(/"/g)||[]).length%2!==0&&(i+='"');const o=/"([^"]+)"|(\S+)/g,f=[];let d;for(;d=o.exec(i);)f.push(d[1]||d[2]);return n.filter(g=>f.every(p=>{const[m,...v]=p.split(":"),C=v.join(":").toLowerCase();return m==="source"?g.source.toLowerCase().includes(C):m==="severity"?g.severity.toLowerCase().includes(C):m==="message"?g.message.includes(C):g.source.toLowerCase().includes(p.toLowerCase())||g.severity.toLowerCase().includes(p.toLowerCase())||g.message.includes(p.toLowerCase())}))}const xm=new I0;ES(xm);ay.createRoot(document.getElementById("root")).render(w.jsx(kv.StrictMode,{children:w.jsx(S0,{children:w.jsx(W0,{client:xm,children:w.jsx(mC,{})})})}));function mC(){return w.jsxs(Jy,{children:[w.jsx(ol,{path:"/",element:w.jsx(Ky,{to:"/runs",replace:!0})}),w.jsx(ol,{path:"runs",element:w.jsx(F1,{})}),w.jsx(ol,{path:"runs/:runId",element:w.jsx(X1,{})}),w.jsx(ol,{path:"tests",element:w.jsx(I1,{})}),w.jsx(ol,{path:"tests/:architecture/:testName",element:w.jsx(aC,{})}),w.jsx(ol,{path:"runs/:runId/:architecture/:testName",element:w.jsx(fC,{})})]})}
