function Zp(a,i){for(var s=0;s<i.length;s++){const c=i[s];if(typeof c!="string"&&!Array.isArray(c)){for(const f in c)if(f!=="default"&&!(f in a)){const d=Object.getOwnPropertyDescriptor(c,f);d&&Object.defineProperty(a,f,d.get?d:{enumerable:!0,get:()=>c[f]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const d of f)if(d.type==="childList")for(const h of d.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&c(h)}).observe(document,{childList:!0,subtree:!0});function s(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function c(f){if(f.ep)return;f.ep=!0;const d=s(f);fetch(f.href,d)}})();var eS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Vp(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var lc={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 Yh;function Jp(){if(Yh)return Za;Yh=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(c,f,d){var h=null;if(d!==void 0&&(h=""+d),f.key!==void 0&&(h=""+f.key),"key"in f){d={};for(var m in f)m!=="key"&&(d[m]=f[m])}else d=f;return f=d.ref,{$$typeof:a,type:c,key:h,ref:f!==void 0?f:null,props:d}}return Za.Fragment=i,Za.jsx=s,Za.jsxs=s,Za}var Gh;function kp(){return Gh||(Gh=1,lc.exports=Jp()),lc.exports}var b=kp(),nc={exports:{}},st={};/**
 * @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 Xh;function Fp(){if(Xh)return st;Xh=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),R=Symbol.iterator;function Y(S){return S===null||typeof S!="object"?null:(S=R&&S[R]||S["@@iterator"],typeof S=="function"?S:null)}var Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},q=Object.assign,P={};function it(S,D,H){this.props=S,this.context=D,this.refs=P,this.updater=H||Z}it.prototype.isReactComponent={},it.prototype.setState=function(S,D){if(typeof S!="object"&&typeof S!="function"&&S!=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,S,D,"setState")},it.prototype.forceUpdate=function(S){this.updater.enqueueForceUpdate(this,S,"forceUpdate")};function ht(){}ht.prototype=it.prototype;function jt(S,D,H){this.props=S,this.context=D,this.refs=P,this.updater=H||Z}var qt=jt.prototype=new ht;qt.constructor=jt,q(qt,it.prototype),qt.isPureReactComponent=!0;var $=Array.isArray;function V(){}var M={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function W(S,D,H){var L=H.ref;return{$$typeof:a,type:S,key:D,ref:L!==void 0?L:null,props:H}}function lt(S,D){return W(S.type,D,S.props)}function F(S){return typeof S=="object"&&S!==null&&S.$$typeof===a}function et(S){var D={"=":"=0",":":"=2"};return"$"+S.replace(/[=:]/g,function(H){return D[H]})}var vt=/\/+/g;function ct(S,D){return typeof S=="object"&&S!==null&&S.key!=null?et(""+S.key):D.toString(36)}function J(S){switch(S.status){case"fulfilled":return S.value;case"rejected":throw S.reason;default:switch(typeof S.status=="string"?S.then(V,V):(S.status="pending",S.then(function(D){S.status==="pending"&&(S.status="fulfilled",S.value=D)},function(D){S.status==="pending"&&(S.status="rejected",S.reason=D)})),S.status){case"fulfilled":return S.value;case"rejected":throw S.reason}}throw S}function T(S,D,H,L,I){var rt=typeof S;(rt==="undefined"||rt==="boolean")&&(S=null);var xt=!1;if(S===null)xt=!0;else switch(rt){case"bigint":case"string":case"number":xt=!0;break;case"object":switch(S.$$typeof){case a:case i:xt=!0;break;case A:return xt=S._init,T(xt(S._payload),D,H,L,I)}}if(xt)return I=I(S),xt=L===""?"."+ct(S,0):L,$(I)?(H="",xt!=null&&(H=xt.replace(vt,"$&/")+"/"),T(I,D,H,"",function(Wn){return Wn})):I!=null&&(F(I)&&(I=lt(I,H+(I.key==null||S&&S.key===I.key?"":(""+I.key).replace(vt,"$&/")+"/")+xt)),D.push(I)),1;xt=0;var ue=L===""?".":L+":";if($(S))for(var Lt=0;Lt<S.length;Lt++)L=S[Lt],rt=ue+ct(L,Lt),xt+=T(L,D,H,rt,I);else if(Lt=Y(S),typeof Lt=="function")for(S=Lt.call(S),Lt=0;!(L=S.next()).done;)L=L.value,rt=ue+ct(L,Lt++),xt+=T(L,D,H,rt,I);else if(rt==="object"){if(typeof S.then=="function")return T(J(S),D,H,L,I);throw D=String(S),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(S).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return xt}function w(S,D,H){if(S==null)return S;var L=[],I=0;return T(S,L,"","",function(rt){return D.call(H,rt,I++)}),L}function G(S){if(S._status===-1){var D=S._result;D=D(),D.then(function(H){(S._status===0||S._status===-1)&&(S._status=1,S._result=H)},function(H){(S._status===0||S._status===-1)&&(S._status=2,S._result=H)}),S._status===-1&&(S._status=0,S._result=D)}if(S._status===1)return S._result.default;throw S._result}var nt=typeof reportError=="function"?reportError:function(S){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof S=="object"&&S!==null&&typeof S.message=="string"?String(S.message):String(S),error:S});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",S);return}console.error(S)},ft={map:w,forEach:function(S,D,H){w(S,function(){D.apply(this,arguments)},H)},count:function(S){var D=0;return w(S,function(){D++}),D},toArray:function(S){return w(S,function(D){return D})||[]},only:function(S){if(!F(S))throw Error("React.Children.only expected to receive a single React element child.");return S}};return st.Activity=_,st.Children=ft,st.Component=it,st.Fragment=s,st.Profiler=f,st.PureComponent=jt,st.StrictMode=c,st.Suspense=y,st.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,st.__COMPILER_RUNTIME={__proto__:null,c:function(S){return M.H.useMemoCache(S)}},st.cache=function(S){return function(){return S.apply(null,arguments)}},st.cacheSignal=function(){return null},st.cloneElement=function(S,D,H){if(S==null)throw Error("The argument must be a React element, but you passed "+S+".");var L=q({},S.props),I=S.key;if(D!=null)for(rt in D.key!==void 0&&(I=""+D.key),D)!X.call(D,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&D.ref===void 0||(L[rt]=D[rt]);var rt=arguments.length-2;if(rt===1)L.children=H;else if(1<rt){for(var xt=Array(rt),ue=0;ue<rt;ue++)xt[ue]=arguments[ue+2];L.children=xt}return W(S.type,I,L)},st.createContext=function(S){return S={$$typeof:h,_currentValue:S,_currentValue2:S,_threadCount:0,Provider:null,Consumer:null},S.Provider=S,S.Consumer={$$typeof:d,_context:S},S},st.createElement=function(S,D,H){var L,I={},rt=null;if(D!=null)for(L in D.key!==void 0&&(rt=""+D.key),D)X.call(D,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(I[L]=D[L]);var xt=arguments.length-2;if(xt===1)I.children=H;else if(1<xt){for(var ue=Array(xt),Lt=0;Lt<xt;Lt++)ue[Lt]=arguments[Lt+2];I.children=ue}if(S&&S.defaultProps)for(L in xt=S.defaultProps,xt)I[L]===void 0&&(I[L]=xt[L]);return W(S,rt,I)},st.createRef=function(){return{current:null}},st.forwardRef=function(S){return{$$typeof:m,render:S}},st.isValidElement=F,st.lazy=function(S){return{$$typeof:A,_payload:{_status:-1,_result:S},_init:G}},st.memo=function(S,D){return{$$typeof:p,type:S,compare:D===void 0?null:D}},st.startTransition=function(S){var D=M.T,H={};M.T=H;try{var L=S(),I=M.S;I!==null&&I(H,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(V,nt)}catch(rt){nt(rt)}finally{D!==null&&H.types!==null&&(D.types=H.types),M.T=D}},st.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},st.use=function(S){return M.H.use(S)},st.useActionState=function(S,D,H){return M.H.useActionState(S,D,H)},st.useCallback=function(S,D){return M.H.useCallback(S,D)},st.useContext=function(S){return M.H.useContext(S)},st.useDebugValue=function(){},st.useDeferredValue=function(S,D){return M.H.useDeferredValue(S,D)},st.useEffect=function(S,D){return M.H.useEffect(S,D)},st.useEffectEvent=function(S){return M.H.useEffectEvent(S)},st.useId=function(){return M.H.useId()},st.useImperativeHandle=function(S,D,H){return M.H.useImperativeHandle(S,D,H)},st.useInsertionEffect=function(S,D){return M.H.useInsertionEffect(S,D)},st.useLayoutEffect=function(S,D){return M.H.useLayoutEffect(S,D)},st.useMemo=function(S,D){return M.H.useMemo(S,D)},st.useOptimistic=function(S,D){return M.H.useOptimistic(S,D)},st.useReducer=function(S,D,H){return M.H.useReducer(S,D,H)},st.useRef=function(S){return M.H.useRef(S)},st.useState=function(S){return M.H.useState(S)},st.useSyncExternalStore=function(S,D,H){return M.H.useSyncExternalStore(S,D,H)},st.useTransition=function(){return M.H.useTransition()},st.version="19.2.1",st}var Kh;function Di(){return Kh||(Kh=1,nc.exports=Fp()),nc.exports}var B=Di();const $p=Vp(B),Em=Zp({__proto__:null,default:$p},[B]);var ac={exports:{}},Va={},uc={exports:{}},ic={};/**
 * @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 Zh;function Pp(){return Zh||(Zh=1,(function(a){function i(T,w){var G=T.length;T.push(w);t:for(;0<G;){var nt=G-1>>>1,ft=T[nt];if(0<f(ft,w))T[nt]=w,T[G]=ft,G=nt;else break t}}function s(T){return T.length===0?null:T[0]}function c(T){if(T.length===0)return null;var w=T[0],G=T.pop();if(G!==w){T[0]=G;t:for(var nt=0,ft=T.length,S=ft>>>1;nt<S;){var D=2*(nt+1)-1,H=T[D],L=D+1,I=T[L];if(0>f(H,G))L<ft&&0>f(I,H)?(T[nt]=I,T[L]=G,nt=L):(T[nt]=H,T[D]=G,nt=D);else if(L<ft&&0>f(I,G))T[nt]=I,T[L]=G,nt=L;else break t}}return w}function f(T,w){var G=T.sortIndex-w.sortIndex;return G!==0?G:T.id-w.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var h=Date,m=h.now();a.unstable_now=function(){return h.now()-m}}var y=[],p=[],A=1,_=null,R=3,Y=!1,Z=!1,q=!1,P=!1,it=typeof setTimeout=="function"?setTimeout:null,ht=typeof clearTimeout=="function"?clearTimeout:null,jt=typeof setImmediate<"u"?setImmediate:null;function qt(T){for(var w=s(p);w!==null;){if(w.callback===null)c(p);else if(w.startTime<=T)c(p),w.sortIndex=w.expirationTime,i(y,w);else break;w=s(p)}}function $(T){if(q=!1,qt(T),!Z)if(s(y)!==null)Z=!0,V||(V=!0,et());else{var w=s(p);w!==null&&J($,w.startTime-T)}}var V=!1,M=-1,X=5,W=-1;function lt(){return P?!0:!(a.unstable_now()-W<X)}function F(){if(P=!1,V){var T=a.unstable_now();W=T;var w=!0;try{t:{Z=!1,q&&(q=!1,ht(M),M=-1),Y=!0;var G=R;try{e:{for(qt(T),_=s(y);_!==null&&!(_.expirationTime>T&&lt());){var nt=_.callback;if(typeof nt=="function"){_.callback=null,R=_.priorityLevel;var ft=nt(_.expirationTime<=T);if(T=a.unstable_now(),typeof ft=="function"){_.callback=ft,qt(T),w=!0;break e}_===s(y)&&c(y),qt(T)}else c(y);_=s(y)}if(_!==null)w=!0;else{var S=s(p);S!==null&&J($,S.startTime-T),w=!1}}break t}finally{_=null,R=G,Y=!1}w=void 0}}finally{w?et():V=!1}}}var et;if(typeof jt=="function")et=function(){jt(F)};else if(typeof MessageChannel<"u"){var vt=new MessageChannel,ct=vt.port2;vt.port1.onmessage=F,et=function(){ct.postMessage(null)}}else et=function(){it(F,0)};function J(T,w){M=it(function(){T(a.unstable_now())},w)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(T){T.callback=null},a.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<T?Math.floor(1e3/T):5},a.unstable_getCurrentPriorityLevel=function(){return R},a.unstable_next=function(T){switch(R){case 1:case 2:case 3:var w=3;break;default:w=R}var G=R;R=w;try{return T()}finally{R=G}},a.unstable_requestPaint=function(){P=!0},a.unstable_runWithPriority=function(T,w){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var G=R;R=T;try{return w()}finally{R=G}},a.unstable_scheduleCallback=function(T,w,G){var nt=a.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?nt+G:nt):G=nt,T){case 1:var ft=-1;break;case 2:ft=250;break;case 5:ft=1073741823;break;case 4:ft=1e4;break;default:ft=5e3}return ft=G+ft,T={id:A++,callback:w,priorityLevel:T,startTime:G,expirationTime:ft,sortIndex:-1},G>nt?(T.sortIndex=G,i(p,T),s(y)===null&&T===s(p)&&(q?(ht(M),M=-1):q=!0,J($,G-nt))):(T.sortIndex=ft,i(y,T),Z||Y||(Z=!0,V||(V=!0,et()))),T},a.unstable_shouldYield=lt,a.unstable_wrapCallback=function(T){var w=R;return function(){var G=R;R=w;try{return T.apply(this,arguments)}finally{R=G}}}})(ic)),ic}var Vh;function Wp(){return Vh||(Vh=1,uc.exports=Pp()),uc.exports}var rc={exports:{}},ne={};/**
 * @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 Jh;function Ip(){if(Jh)return ne;Jh=1;var a=Di();function i(y){var p="https://react.dev/errors/"+y;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var A=2;A<arguments.length;A++)p+="&args[]="+encodeURIComponent(arguments[A])}return"Minified React error #"+y+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var c={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},f=Symbol.for("react.portal");function d(y,p,A){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:_==null?null:""+_,children:y,containerInfo:p,implementation:A}}var h=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(y,p){if(y==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,ne.createPortal=function(y,p){var A=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return d(y,p,null,A)},ne.flushSync=function(y){var p=h.T,A=c.p;try{if(h.T=null,c.p=2,y)return y()}finally{h.T=p,c.p=A,c.d.f()}},ne.preconnect=function(y,p){typeof y=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,c.d.C(y,p))},ne.prefetchDNS=function(y){typeof y=="string"&&c.d.D(y)},ne.preinit=function(y,p){if(typeof y=="string"&&p&&typeof p.as=="string"){var A=p.as,_=m(A,p.crossOrigin),R=typeof p.integrity=="string"?p.integrity:void 0,Y=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;A==="style"?c.d.S(y,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:_,integrity:R,fetchPriority:Y}):A==="script"&&c.d.X(y,{crossOrigin:_,integrity:R,fetchPriority:Y,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ne.preinitModule=function(y,p){if(typeof y=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var A=m(p.as,p.crossOrigin);c.d.M(y,{crossOrigin:A,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&c.d.M(y)},ne.preload=function(y,p){if(typeof y=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var A=p.as,_=m(A,p.crossOrigin);c.d.L(y,A,{crossOrigin:_,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},ne.preloadModule=function(y,p){if(typeof y=="string")if(p){var A=m(p.as,p.crossOrigin);c.d.m(y,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:A,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else c.d.m(y)},ne.requestFormReset=function(y){c.d.r(y)},ne.unstable_batchedUpdates=function(y,p){return y(p)},ne.useFormState=function(y,p,A){return h.H.useFormState(y,p,A)},ne.useFormStatus=function(){return h.H.useHostTransitionStatus()},ne.version="19.2.1",ne}var kh;function t0(){if(kh)return rc.exports;kh=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),rc.exports=Ip(),rc.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 Fh;function e0(){if(Fh)return Va;Fh=1;var a=Wp(),i=Di(),s=t0();function c(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var l=2;l<arguments.length;l++)e+="&args[]="+encodeURIComponent(arguments[l])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function f(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function d(t){var e=t,l=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(l=e.return),t=e.return;while(t)}return e.tag===3?l:null}function h(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function m(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(d(t)!==t)throw Error(c(188))}function p(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(c(188));return e!==t?null:t}for(var l=t,n=e;;){var u=l.return;if(u===null)break;var r=u.alternate;if(r===null){if(n=u.return,n!==null){l=n;continue}break}if(u.child===r.child){for(r=u.child;r;){if(r===l)return y(u),t;if(r===n)return y(u),e;r=r.sibling}throw Error(c(188))}if(l.return!==n.return)l=u,n=r;else{for(var o=!1,v=u.child;v;){if(v===l){o=!0,l=u,n=r;break}if(v===n){o=!0,n=u,l=r;break}v=v.sibling}if(!o){for(v=r.child;v;){if(v===l){o=!0,l=r,n=u;break}if(v===n){o=!0,n=r,l=u;break}v=v.sibling}if(!o)throw Error(c(189))}}if(l.alternate!==n)throw Error(c(190))}if(l.tag!==3)throw Error(c(188));return l.stateNode.current===l?t:e}function A(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=A(t),e!==null)return e;t=t.sibling}return null}var _=Object.assign,R=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),q=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),it=Symbol.for("react.profiler"),ht=Symbol.for("react.consumer"),jt=Symbol.for("react.context"),qt=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),lt=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function et(t){return t===null||typeof t!="object"?null:(t=F&&t[F]||t["@@iterator"],typeof t=="function"?t:null)}var vt=Symbol.for("react.client.reference");function ct(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===vt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case q:return"Fragment";case it:return"Profiler";case P:return"StrictMode";case $:return"Suspense";case V:return"SuspenseList";case W:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Z:return"Portal";case jt:return t.displayName||"Context";case ht:return(t._context.displayName||"Context")+".Consumer";case qt:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case M:return e=t.displayName||null,e!==null?e:ct(t.type)||"Memo";case X:e=t._payload,t=t._init;try{return ct(t(e))}catch{}}return null}var J=Array.isArray,T=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},nt=[],ft=-1;function S(t){return{current:t}}function D(t){0>ft||(t.current=nt[ft],nt[ft]=null,ft--)}function H(t,e){ft++,nt[ft]=t.current,t.current=e}var L=S(null),I=S(null),rt=S(null),xt=S(null);function ue(t,e){switch(H(rt,e),H(I,t),H(L,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?oh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=oh(e),t=fh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}D(L),H(L,t)}function Lt(){D(L),D(I),D(rt)}function Wn(t){t.memoizedState!==null&&H(xt,t);var e=L.current,l=fh(e,t.type);e!==l&&(H(I,t),H(L,l))}function lu(t){I.current===t&&(D(L),D(I)),xt.current===t&&(D(xt),Ya._currentValue=G)}var Hi,Hc;function Bl(t){if(Hi===void 0)try{throw Error()}catch(l){var e=l.stack.trim().match(/\n( *(at )?)/);Hi=e&&e[1]||"",Hc=-1<l.stack.indexOf(`
    at`)?" (<anonymous>)":-1<l.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Hi+t+Hc}var Bi=!1;function Li(t,e){if(!t||Bi)return"";Bi=!0;var l=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var n={DetermineComponentFrameRoot:function(){try{if(e){var Q=function(){throw Error()};if(Object.defineProperty(Q.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Q,[])}catch(z){var C=z}Reflect.construct(t,[],Q)}else{try{Q.call()}catch(z){C=z}t.call(Q.prototype)}}else{try{throw Error()}catch(z){C=z}(Q=t())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(z){if(z&&C&&typeof z.stack=="string")return[z.stack,C.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=n.DetermineComponentFrameRoot(),o=r[0],v=r[1];if(o&&v){var g=o.split(`
`),j=v.split(`
`);for(u=n=0;n<g.length&&!g[n].includes("DetermineComponentFrameRoot");)n++;for(;u<j.length&&!j[u].includes("DetermineComponentFrameRoot");)u++;if(n===g.length||u===j.length)for(n=g.length-1,u=j.length-1;1<=n&&0<=u&&g[n]!==j[u];)u--;for(;1<=n&&0<=u;n--,u--)if(g[n]!==j[u]){if(n!==1||u!==1)do if(n--,u--,0>u||g[n]!==j[u]){var N=`
`+g[n].replace(" at new "," at ");return t.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",t.displayName)),N}while(1<=n&&0<=u);break}}}finally{Bi=!1,Error.prepareStackTrace=l}return(l=t?t.displayName||t.name:"")?Bl(l):""}function Ov(t,e){switch(t.tag){case 26:case 27:case 5:return Bl(t.type);case 16:return Bl("Lazy");case 13:return t.child!==e&&e!==null?Bl("Suspense Fallback"):Bl("Suspense");case 19:return Bl("SuspenseList");case 0:case 15:return Li(t.type,!1);case 11:return Li(t.type.render,!1);case 1:return Li(t.type,!0);case 31:return Bl("Activity");default:return""}}function Bc(t){try{var e="",l=null;do e+=Ov(t,l),l=t,t=t.return;while(t);return e}catch(n){return`
Error generating stack: `+n.message+`
`+n.stack}}var Yi=Object.prototype.hasOwnProperty,Gi=a.unstable_scheduleCallback,Xi=a.unstable_cancelCallback,_v=a.unstable_shouldYield,Ev=a.unstable_requestPaint,ve=a.unstable_now,jv=a.unstable_getCurrentPriorityLevel,Lc=a.unstable_ImmediatePriority,Yc=a.unstable_UserBlockingPriority,nu=a.unstable_NormalPriority,Tv=a.unstable_LowPriority,Gc=a.unstable_IdlePriority,Av=a.log,Cv=a.unstable_setDisableYieldValue,In=null,ye=null;function fl(t){if(typeof Av=="function"&&Cv(t),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(In,t)}catch{}}var pe=Math.clz32?Math.clz32:Dv,zv=Math.log,Mv=Math.LN2;function Dv(t){return t>>>=0,t===0?32:31-(zv(t)/Mv|0)|0}var au=256,uu=262144,iu=4194304;function Ll(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function ru(t,e,l){var n=t.pendingLanes;if(n===0)return 0;var u=0,r=t.suspendedLanes,o=t.pingedLanes;t=t.warmLanes;var v=n&134217727;return v!==0?(n=v&~r,n!==0?u=Ll(n):(o&=v,o!==0?u=Ll(o):l||(l=v&~t,l!==0&&(u=Ll(l))))):(v=n&~r,v!==0?u=Ll(v):o!==0?u=Ll(o):l||(l=n&~t,l!==0&&(u=Ll(l)))),u===0?0:e!==0&&e!==u&&(e&r)===0&&(r=u&-u,l=e&-e,r>=l||r===32&&(l&4194048)!==0)?e:u}function ta(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Nv(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xc(){var t=iu;return iu<<=1,(iu&62914560)===0&&(iu=4194304),t}function Ki(t){for(var e=[],l=0;31>l;l++)e.push(t);return e}function ea(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Rv(t,e,l,n,u,r){var o=t.pendingLanes;t.pendingLanes=l,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=l,t.entangledLanes&=l,t.errorRecoveryDisabledLanes&=l,t.shellSuspendCounter=0;var v=t.entanglements,g=t.expirationTimes,j=t.hiddenUpdates;for(l=o&~l;0<l;){var N=31-pe(l),Q=1<<N;v[N]=0,g[N]=-1;var C=j[N];if(C!==null)for(j[N]=null,N=0;N<C.length;N++){var z=C[N];z!==null&&(z.lane&=-536870913)}l&=~Q}n!==0&&Kc(t,n,0),r!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=r&~(o&~e))}function Kc(t,e,l){t.pendingLanes|=e,t.suspendedLanes&=~e;var n=31-pe(e);t.entangledLanes|=e,t.entanglements[n]=t.entanglements[n]|1073741824|l&261930}function Zc(t,e){var l=t.entangledLanes|=e;for(t=t.entanglements;l;){var n=31-pe(l),u=1<<n;u&e|t[n]&e&&(t[n]|=e),l&=~u}}function Vc(t,e){var l=e&-e;return l=(l&42)!==0?1:Zi(l),(l&(t.suspendedLanes|e))!==0?0:l}function Zi(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function Vi(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Jc(){var t=w.p;return t!==0?t:(t=window.event,t===void 0?32:Uh(t.type))}function kc(t,e){var l=w.p;try{return w.p=t,e()}finally{w.p=l}}var dl=Math.random().toString(36).slice(2),Pt="__reactFiber$"+dl,se="__reactProps$"+dl,fn="__reactContainer$"+dl,Ji="__reactEvents$"+dl,Uv="__reactListeners$"+dl,qv="__reactHandles$"+dl,Fc="__reactResources$"+dl,la="__reactMarker$"+dl;function ki(t){delete t[Pt],delete t[se],delete t[Ji],delete t[Uv],delete t[qv]}function dn(t){var e=t[Pt];if(e)return e;for(var l=t.parentNode;l;){if(e=l[fn]||l[Pt]){if(l=e.alternate,e.child!==null||l!==null&&l.child!==null)for(t=gh(t);t!==null;){if(l=t[Pt])return l;t=gh(t)}return e}t=l,l=t.parentNode}return null}function hn(t){if(t=t[Pt]||t[fn]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function na(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function mn(t){var e=t[Fc];return e||(e=t[Fc]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ft(t){t[la]=!0}var $c=new Set,Pc={};function Yl(t,e){vn(t,e),vn(t+"Capture",e)}function vn(t,e){for(Pc[t]=e,t=0;t<e.length;t++)$c.add(e[t])}var Qv=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]*$"),Wc={},Ic={};function wv(t){return Yi.call(Ic,t)?!0:Yi.call(Wc,t)?!1:Qv.test(t)?Ic[t]=!0:(Wc[t]=!0,!1)}function su(t,e,l){if(wv(e))if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var n=e.toLowerCase().slice(0,5);if(n!=="data-"&&n!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+l)}}function cu(t,e,l){if(l===null)t.removeAttribute(e);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+l)}}function Je(t,e,l,n){if(n===null)t.removeAttribute(l);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(l);return}t.setAttributeNS(e,l,""+n)}}function Te(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function to(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Hv(t,e,l){var n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var u=n.get,r=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(o){l=""+o,r.call(this,o)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return l},setValue:function(o){l=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Fi(t){if(!t._valueTracker){var e=to(t)?"checked":"value";t._valueTracker=Hv(t,e,""+t[e])}}function eo(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var l=e.getValue(),n="";return t&&(n=to(t)?t.checked?"true":"false":t.value),t=n,t!==l?(e.setValue(t),!0):!1}function ou(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Bv=/[\n"\\]/g;function Ae(t){return t.replace(Bv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function $i(t,e,l,n,u,r,o,v){t.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.type=o:t.removeAttribute("type"),e!=null?o==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Te(e)):t.value!==""+Te(e)&&(t.value=""+Te(e)):o!=="submit"&&o!=="reset"||t.removeAttribute("value"),e!=null?Pi(t,o,Te(e)):l!=null?Pi(t,o,Te(l)):n!=null&&t.removeAttribute("value"),u==null&&r!=null&&(t.defaultChecked=!!r),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),v!=null&&typeof v!="function"&&typeof v!="symbol"&&typeof v!="boolean"?t.name=""+Te(v):t.removeAttribute("name")}function lo(t,e,l,n,u,r,o,v){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||l!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){Fi(t);return}l=l!=null?""+Te(l):"",e=e!=null?""+Te(e):l,v||e===t.value||(t.value=e),t.defaultValue=e}n=n??u,n=typeof n!="function"&&typeof n!="symbol"&&!!n,t.checked=v?t.checked:!!n,t.defaultChecked=!!n,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.name=o),Fi(t)}function Pi(t,e,l){e==="number"&&ou(t.ownerDocument)===t||t.defaultValue===""+l||(t.defaultValue=""+l)}function yn(t,e,l,n){if(t=t.options,e){e={};for(var u=0;u<l.length;u++)e["$"+l[u]]=!0;for(l=0;l<t.length;l++)u=e.hasOwnProperty("$"+t[l].value),t[l].selected!==u&&(t[l].selected=u),u&&n&&(t[l].defaultSelected=!0)}else{for(l=""+Te(l),e=null,u=0;u<t.length;u++){if(t[u].value===l){t[u].selected=!0,n&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function no(t,e,l){if(e!=null&&(e=""+Te(e),e!==t.value&&(t.value=e),l==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=l!=null?""+Te(l):""}function ao(t,e,l,n){if(e==null){if(n!=null){if(l!=null)throw Error(c(92));if(J(n)){if(1<n.length)throw Error(c(93));n=n[0]}l=n}l==null&&(l=""),e=l}l=Te(e),t.defaultValue=l,n=t.textContent,n===l&&n!==""&&n!==null&&(t.value=n),Fi(t)}function pn(t,e){if(e){var l=t.firstChild;if(l&&l===t.lastChild&&l.nodeType===3){l.nodeValue=e;return}}t.textContent=e}var Lv=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 uo(t,e,l){var n=e.indexOf("--")===0;l==null||typeof l=="boolean"||l===""?n?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":n?t.setProperty(e,l):typeof l!="number"||l===0||Lv.has(e)?e==="float"?t.cssFloat=l:t[e]=(""+l).trim():t[e]=l+"px"}function io(t,e,l){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,l!=null){for(var n in l)!l.hasOwnProperty(n)||e!=null&&e.hasOwnProperty(n)||(n.indexOf("--")===0?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="");for(var u in e)n=e[u],e.hasOwnProperty(u)&&l[u]!==n&&uo(t,u,n)}else for(var r in e)e.hasOwnProperty(r)&&uo(t,r,e[r])}function Wi(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Yv=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"]]),Gv=/^[\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 fu(t){return Gv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function ke(){}var Ii=null;function tr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var gn=null,bn=null;function ro(t){var e=hn(t);if(e&&(t=e.stateNode)){var l=t[se]||null;t:switch(t=e.stateNode,e.type){case"input":if($i(t,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name),e=l.name,l.type==="radio"&&e!=null){for(l=t;l.parentNode;)l=l.parentNode;for(l=l.querySelectorAll('input[name="'+Ae(""+e)+'"][type="radio"]'),e=0;e<l.length;e++){var n=l[e];if(n!==t&&n.form===t.form){var u=n[se]||null;if(!u)throw Error(c(90));$i(n,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<l.length;e++)n=l[e],n.form===t.form&&eo(n)}break t;case"textarea":no(t,l.value,l.defaultValue);break t;case"select":e=l.value,e!=null&&yn(t,!!l.multiple,e,!1)}}}var er=!1;function so(t,e,l){if(er)return t(e,l);er=!0;try{var n=t(e);return n}finally{if(er=!1,(gn!==null||bn!==null)&&(Wu(),gn&&(e=gn,t=bn,bn=gn=null,ro(e),t)))for(e=0;e<t.length;e++)ro(t[e])}}function aa(t,e){var l=t.stateNode;if(l===null)return null;var n=l[se]||null;if(n===null)return null;l=n[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break t;default:t=!1}if(t)return null;if(l&&typeof l!="function")throw Error(c(231,e,typeof l));return l}var Fe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),lr=!1;if(Fe)try{var ua={};Object.defineProperty(ua,"passive",{get:function(){lr=!0}}),window.addEventListener("test",ua,ua),window.removeEventListener("test",ua,ua)}catch{lr=!1}var hl=null,nr=null,du=null;function co(){if(du)return du;var t,e=nr,l=e.length,n,u="value"in hl?hl.value:hl.textContent,r=u.length;for(t=0;t<l&&e[t]===u[t];t++);var o=l-t;for(n=1;n<=o&&e[l-n]===u[r-n];n++);return du=u.slice(t,1<n?1-n:void 0)}function hu(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function mu(){return!0}function oo(){return!1}function ce(t){function e(l,n,u,r,o){this._reactName=l,this._targetInst=u,this.type=n,this.nativeEvent=r,this.target=o,this.currentTarget=null;for(var v in t)t.hasOwnProperty(v)&&(l=t[v],this[v]=l?l(r):r[v]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?mu:oo,this.isPropagationStopped=oo,this}return _(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var l=this.nativeEvent;l&&(l.preventDefault?l.preventDefault():typeof l.returnValue!="unknown"&&(l.returnValue=!1),this.isDefaultPrevented=mu)},stopPropagation:function(){var l=this.nativeEvent;l&&(l.stopPropagation?l.stopPropagation():typeof l.cancelBubble!="unknown"&&(l.cancelBubble=!0),this.isPropagationStopped=mu)},persist:function(){},isPersistent:mu}),e}var Gl={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vu=ce(Gl),ia=_({},Gl,{view:0,detail:0}),Xv=ce(ia),ar,ur,ra,yu=_({},ia,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rr,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ra&&(ra&&t.type==="mousemove"?(ar=t.screenX-ra.screenX,ur=t.screenY-ra.screenY):ur=ar=0,ra=t),ar)},movementY:function(t){return"movementY"in t?t.movementY:ur}}),fo=ce(yu),Kv=_({},yu,{dataTransfer:0}),Zv=ce(Kv),Vv=_({},ia,{relatedTarget:0}),ir=ce(Vv),Jv=_({},Gl,{animationName:0,elapsedTime:0,pseudoElement:0}),kv=ce(Jv),Fv=_({},Gl,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),$v=ce(Fv),Pv=_({},Gl,{data:0}),ho=ce(Pv),Wv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Iv={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"},ty={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ey(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=ty[t])?!!e[t]:!1}function rr(){return ey}var ly=_({},ia,{key:function(t){if(t.key){var e=Wv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=hu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Iv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rr,charCode:function(t){return t.type==="keypress"?hu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?hu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),ny=ce(ly),ay=_({},yu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),mo=ce(ay),uy=_({},ia,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rr}),iy=ce(uy),ry=_({},Gl,{propertyName:0,elapsedTime:0,pseudoElement:0}),sy=ce(ry),cy=_({},yu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),oy=ce(cy),fy=_({},Gl,{newState:0,oldState:0}),dy=ce(fy),hy=[9,13,27,32],sr=Fe&&"CompositionEvent"in window,sa=null;Fe&&"documentMode"in document&&(sa=document.documentMode);var my=Fe&&"TextEvent"in window&&!sa,vo=Fe&&(!sr||sa&&8<sa&&11>=sa),yo=" ",po=!1;function go(t,e){switch(t){case"keyup":return hy.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function bo(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Sn=!1;function vy(t,e){switch(t){case"compositionend":return bo(e);case"keypress":return e.which!==32?null:(po=!0,yo);case"textInput":return t=e.data,t===yo&&po?null:t;default:return null}}function yy(t,e){if(Sn)return t==="compositionend"||!sr&&go(t,e)?(t=co(),du=nr=hl=null,Sn=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return vo&&e.locale!=="ko"?null:e.data;default:return null}}var py={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 So(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!py[t.type]:e==="textarea"}function xo(t,e,l,n){gn?bn?bn.push(n):bn=[n]:gn=n,e=ui(e,"onChange"),0<e.length&&(l=new vu("onChange","change",null,l,n),t.push({event:l,listeners:e}))}var ca=null,oa=null;function gy(t){ah(t,0)}function pu(t){var e=na(t);if(eo(e))return t}function Oo(t,e){if(t==="change")return e}var _o=!1;if(Fe){var cr;if(Fe){var or="oninput"in document;if(!or){var Eo=document.createElement("div");Eo.setAttribute("oninput","return;"),or=typeof Eo.oninput=="function"}cr=or}else cr=!1;_o=cr&&(!document.documentMode||9<document.documentMode)}function jo(){ca&&(ca.detachEvent("onpropertychange",To),oa=ca=null)}function To(t){if(t.propertyName==="value"&&pu(oa)){var e=[];xo(e,oa,t,tr(t)),so(gy,e)}}function by(t,e,l){t==="focusin"?(jo(),ca=e,oa=l,ca.attachEvent("onpropertychange",To)):t==="focusout"&&jo()}function Sy(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return pu(oa)}function xy(t,e){if(t==="click")return pu(e)}function Oy(t,e){if(t==="input"||t==="change")return pu(e)}function _y(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ge=typeof Object.is=="function"?Object.is:_y;function fa(t,e){if(ge(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var l=Object.keys(t),n=Object.keys(e);if(l.length!==n.length)return!1;for(n=0;n<l.length;n++){var u=l[n];if(!Yi.call(e,u)||!ge(t[u],e[u]))return!1}return!0}function Ao(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Co(t,e){var l=Ao(t);t=0;for(var n;l;){if(l.nodeType===3){if(n=t+l.textContent.length,t<=e&&n>=e)return{node:l,offset:e-t};t=n}t:{for(;l;){if(l.nextSibling){l=l.nextSibling;break t}l=l.parentNode}l=void 0}l=Ao(l)}}function zo(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?zo(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Mo(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=ou(t.document);e instanceof t.HTMLIFrameElement;){try{var l=typeof e.contentWindow.location.href=="string"}catch{l=!1}if(l)t=e.contentWindow;else break;e=ou(t.document)}return e}function fr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var Ey=Fe&&"documentMode"in document&&11>=document.documentMode,xn=null,dr=null,da=null,hr=!1;function Do(t,e,l){var n=l.window===l?l.document:l.nodeType===9?l:l.ownerDocument;hr||xn==null||xn!==ou(n)||(n=xn,"selectionStart"in n&&fr(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),da&&fa(da,n)||(da=n,n=ui(dr,"onSelect"),0<n.length&&(e=new vu("onSelect","select",null,e,l),t.push({event:e,listeners:n}),e.target=xn)))}function Xl(t,e){var l={};return l[t.toLowerCase()]=e.toLowerCase(),l["Webkit"+t]="webkit"+e,l["Moz"+t]="moz"+e,l}var On={animationend:Xl("Animation","AnimationEnd"),animationiteration:Xl("Animation","AnimationIteration"),animationstart:Xl("Animation","AnimationStart"),transitionrun:Xl("Transition","TransitionRun"),transitionstart:Xl("Transition","TransitionStart"),transitioncancel:Xl("Transition","TransitionCancel"),transitionend:Xl("Transition","TransitionEnd")},mr={},No={};Fe&&(No=document.createElement("div").style,"AnimationEvent"in window||(delete On.animationend.animation,delete On.animationiteration.animation,delete On.animationstart.animation),"TransitionEvent"in window||delete On.transitionend.transition);function Kl(t){if(mr[t])return mr[t];if(!On[t])return t;var e=On[t],l;for(l in e)if(e.hasOwnProperty(l)&&l in No)return mr[t]=e[l];return t}var Ro=Kl("animationend"),Uo=Kl("animationiteration"),qo=Kl("animationstart"),jy=Kl("transitionrun"),Ty=Kl("transitionstart"),Ay=Kl("transitioncancel"),Qo=Kl("transitionend"),wo=new Map,vr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");vr.push("scrollEnd");function Qe(t,e){wo.set(t,e),Yl(e,[t])}var gu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Ce=[],_n=0,yr=0;function bu(){for(var t=_n,e=yr=_n=0;e<t;){var l=Ce[e];Ce[e++]=null;var n=Ce[e];Ce[e++]=null;var u=Ce[e];Ce[e++]=null;var r=Ce[e];if(Ce[e++]=null,n!==null&&u!==null){var o=n.pending;o===null?u.next=u:(u.next=o.next,o.next=u),n.pending=u}r!==0&&Ho(l,u,r)}}function Su(t,e,l,n){Ce[_n++]=t,Ce[_n++]=e,Ce[_n++]=l,Ce[_n++]=n,yr|=n,t.lanes|=n,t=t.alternate,t!==null&&(t.lanes|=n)}function pr(t,e,l,n){return Su(t,e,l,n),xu(t)}function Zl(t,e){return Su(t,null,null,e),xu(t)}function Ho(t,e,l){t.lanes|=l;var n=t.alternate;n!==null&&(n.lanes|=l);for(var u=!1,r=t.return;r!==null;)r.childLanes|=l,n=r.alternate,n!==null&&(n.childLanes|=l),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(u=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,u&&e!==null&&(u=31-pe(l),t=r.hiddenUpdates,n=t[u],n===null?t[u]=[e]:n.push(e),e.lane=l|536870912),r):null}function xu(t){if(50<Ua)throw Ua=0,Ts=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var En={};function Cy(t,e,l,n){this.tag=t,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=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function be(t,e,l,n){return new Cy(t,e,l,n)}function gr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function $e(t,e){var l=t.alternate;return l===null?(l=be(t.tag,e,t.key,t.mode),l.elementType=t.elementType,l.type=t.type,l.stateNode=t.stateNode,l.alternate=t,t.alternate=l):(l.pendingProps=e,l.type=t.type,l.flags=0,l.subtreeFlags=0,l.deletions=null),l.flags=t.flags&65011712,l.childLanes=t.childLanes,l.lanes=t.lanes,l.child=t.child,l.memoizedProps=t.memoizedProps,l.memoizedState=t.memoizedState,l.updateQueue=t.updateQueue,e=t.dependencies,l.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},l.sibling=t.sibling,l.index=t.index,l.ref=t.ref,l.refCleanup=t.refCleanup,l}function Bo(t,e){t.flags&=65011714;var l=t.alternate;return l===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=l.childLanes,t.lanes=l.lanes,t.child=l.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=l.memoizedProps,t.memoizedState=l.memoizedState,t.updateQueue=l.updateQueue,t.type=l.type,e=l.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Ou(t,e,l,n,u,r){var o=0;if(n=t,typeof t=="function")gr(t)&&(o=1);else if(typeof t=="string")o=Rp(t,l,L.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case W:return t=be(31,l,e,u),t.elementType=W,t.lanes=r,t;case q:return Vl(l.children,u,r,e);case P:o=8,u|=24;break;case it:return t=be(12,l,e,u|2),t.elementType=it,t.lanes=r,t;case $:return t=be(13,l,e,u),t.elementType=$,t.lanes=r,t;case V:return t=be(19,l,e,u),t.elementType=V,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case jt:o=10;break t;case ht:o=9;break t;case qt:o=11;break t;case M:o=14;break t;case X:o=16,n=null;break t}o=29,l=Error(c(130,t===null?"null":typeof t,"")),n=null}return e=be(o,l,e,u),e.elementType=t,e.type=n,e.lanes=r,e}function Vl(t,e,l,n){return t=be(7,t,n,e),t.lanes=l,t}function br(t,e,l){return t=be(6,t,null,e),t.lanes=l,t}function Lo(t){var e=be(18,null,null,0);return e.stateNode=t,e}function Sr(t,e,l){return e=be(4,t.children!==null?t.children:[],t.key,e),e.lanes=l,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Yo=new WeakMap;function ze(t,e){if(typeof t=="object"&&t!==null){var l=Yo.get(t);return l!==void 0?l:(e={value:t,source:e,stack:Bc(e)},Yo.set(t,e),e)}return{value:t,source:e,stack:Bc(e)}}var jn=[],Tn=0,_u=null,ha=0,Me=[],De=0,ml=null,Ye=1,Ge="";function Pe(t,e){jn[Tn++]=ha,jn[Tn++]=_u,_u=t,ha=e}function Go(t,e,l){Me[De++]=Ye,Me[De++]=Ge,Me[De++]=ml,ml=t;var n=Ye;t=Ge;var u=32-pe(n)-1;n&=~(1<<u),l+=1;var r=32-pe(e)+u;if(30<r){var o=u-u%5;r=(n&(1<<o)-1).toString(32),n>>=o,u-=o,Ye=1<<32-pe(e)+u|l<<u|n,Ge=r+t}else Ye=1<<r|l<<u|n,Ge=t}function xr(t){t.return!==null&&(Pe(t,1),Go(t,1,0))}function Or(t){for(;t===_u;)_u=jn[--Tn],jn[Tn]=null,ha=jn[--Tn],jn[Tn]=null;for(;t===ml;)ml=Me[--De],Me[De]=null,Ge=Me[--De],Me[De]=null,Ye=Me[--De],Me[De]=null}function Xo(t,e){Me[De++]=Ye,Me[De++]=Ge,Me[De++]=ml,Ye=e.id,Ge=e.overflow,ml=t}var Wt=null,Rt=null,St=!1,vl=null,Ne=!1,_r=Error(c(519));function yl(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ma(ze(e,t)),_r}function Ko(t){var e=t.stateNode,l=t.type,n=t.memoizedProps;switch(e[Pt]=t,e[se]=n,l){case"dialog":pt("cancel",e),pt("close",e);break;case"iframe":case"object":case"embed":pt("load",e);break;case"video":case"audio":for(l=0;l<Qa.length;l++)pt(Qa[l],e);break;case"source":pt("error",e);break;case"img":case"image":case"link":pt("error",e),pt("load",e);break;case"details":pt("toggle",e);break;case"input":pt("invalid",e),lo(e,n.value,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name,!0);break;case"select":pt("invalid",e);break;case"textarea":pt("invalid",e),ao(e,n.value,n.defaultValue,n.children)}l=n.children,typeof l!="string"&&typeof l!="number"&&typeof l!="bigint"||e.textContent===""+l||n.suppressHydrationWarning===!0||sh(e.textContent,l)?(n.popover!=null&&(pt("beforetoggle",e),pt("toggle",e)),n.onScroll!=null&&pt("scroll",e),n.onScrollEnd!=null&&pt("scrollend",e),n.onClick!=null&&(e.onclick=ke),e=!0):e=!1,e||yl(t,!0)}function Zo(t){for(Wt=t.return;Wt;)switch(Wt.tag){case 5:case 31:case 13:Ne=!1;return;case 27:case 3:Ne=!0;return;default:Wt=Wt.return}}function An(t){if(t!==Wt)return!1;if(!St)return Zo(t),St=!0,!1;var e=t.tag,l;if((l=e!==3&&e!==27)&&((l=e===5)&&(l=t.type,l=!(l!=="form"&&l!=="button")||Ys(t.type,t.memoizedProps)),l=!l),l&&Rt&&yl(t),Zo(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Rt=ph(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));Rt=ph(t)}else e===27?(e=Rt,Ml(t.type)?(t=Vs,Vs=null,Rt=t):Rt=e):Rt=Wt?Ue(t.stateNode.nextSibling):null;return!0}function Jl(){Rt=Wt=null,St=!1}function Er(){var t=vl;return t!==null&&(he===null?he=t:he.push.apply(he,t),vl=null),t}function ma(t){vl===null?vl=[t]:vl.push(t)}var jr=S(null),kl=null,We=null;function pl(t,e,l){H(jr,e._currentValue),e._currentValue=l}function Ie(t){t._currentValue=jr.current,D(jr)}function Tr(t,e,l){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===l)break;t=t.return}}function Ar(t,e,l,n){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var r=u.dependencies;if(r!==null){var o=u.child;r=r.firstContext;t:for(;r!==null;){var v=r;r=u;for(var g=0;g<e.length;g++)if(v.context===e[g]){r.lanes|=l,v=r.alternate,v!==null&&(v.lanes|=l),Tr(r.return,l,t),n||(o=null);break t}r=v.next}}else if(u.tag===18){if(o=u.return,o===null)throw Error(c(341));o.lanes|=l,r=o.alternate,r!==null&&(r.lanes|=l),Tr(o,l,t),o=null}else o=u.child;if(o!==null)o.return=u;else for(o=u;o!==null;){if(o===t){o=null;break}if(u=o.sibling,u!==null){u.return=o.return,o=u;break}o=o.return}u=o}}function Cn(t,e,l,n){t=null;for(var u=e,r=!1;u!==null;){if(!r){if((u.flags&524288)!==0)r=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var o=u.alternate;if(o===null)throw Error(c(387));if(o=o.memoizedProps,o!==null){var v=u.type;ge(u.pendingProps.value,o.value)||(t!==null?t.push(v):t=[v])}}else if(u===xt.current){if(o=u.alternate,o===null)throw Error(c(387));o.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(Ya):t=[Ya])}u=u.return}t!==null&&Ar(e,t,l,n),e.flags|=262144}function Eu(t){for(t=t.firstContext;t!==null;){if(!ge(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function Fl(t){kl=t,We=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function It(t){return Vo(kl,t)}function ju(t,e){return kl===null&&Fl(t),Vo(t,e)}function Vo(t,e){var l=e._currentValue;if(e={context:e,memoizedValue:l,next:null},We===null){if(t===null)throw Error(c(308));We=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else We=We.next=e;return l}var zy=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(l,n){t.push(n)}};this.abort=function(){e.aborted=!0,t.forEach(function(l){return l()})}},My=a.unstable_scheduleCallback,Dy=a.unstable_NormalPriority,Kt={$$typeof:jt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Cr(){return{controller:new zy,data:new Map,refCount:0}}function va(t){t.refCount--,t.refCount===0&&My(Dy,function(){t.controller.abort()})}var ya=null,zr=0,zn=0,Mn=null;function Ny(t,e){if(ya===null){var l=ya=[];zr=0,zn=Ns(),Mn={status:"pending",value:void 0,then:function(n){l.push(n)}}}return zr++,e.then(Jo,Jo),e}function Jo(){if(--zr===0&&ya!==null){Mn!==null&&(Mn.status="fulfilled");var t=ya;ya=null,zn=0,Mn=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Ry(t,e){var l=[],n={status:"pending",value:null,reason:null,then:function(u){l.push(u)}};return t.then(function(){n.status="fulfilled",n.value=e;for(var u=0;u<l.length;u++)(0,l[u])(e)},function(u){for(n.status="rejected",n.reason=u,u=0;u<l.length;u++)(0,l[u])(void 0)}),n}var ko=T.S;T.S=function(t,e){Nd=ve(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Ny(t,e),ko!==null&&ko(t,e)};var $l=S(null);function Mr(){var t=$l.current;return t!==null?t:Nt.pooledCache}function Tu(t,e){e===null?H($l,$l.current):H($l,e.pool)}function Fo(){var t=Mr();return t===null?null:{parent:Kt._currentValue,pool:t}}var Dn=Error(c(460)),Dr=Error(c(474)),Au=Error(c(542)),Cu={then:function(){}};function $o(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Po(t,e,l){switch(l=t[l],l===void 0?t.push(e):l!==e&&(e.then(ke,ke),e=l),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Io(t),t;default:if(typeof e.status=="string")e.then(ke,ke);else{if(t=Nt,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(n){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=n}},function(n){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=n}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Io(t),t}throw Wl=e,Dn}}function Pl(t){try{var e=t._init;return e(t._payload)}catch(l){throw l!==null&&typeof l=="object"&&typeof l.then=="function"?(Wl=l,Dn):l}}var Wl=null;function Wo(){if(Wl===null)throw Error(c(459));var t=Wl;return Wl=null,t}function Io(t){if(t===Dn||t===Au)throw Error(c(483))}var Nn=null,pa=0;function zu(t){var e=pa;return pa+=1,Nn===null&&(Nn=[]),Po(Nn,t,e)}function ga(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Mu(t,e){throw e.$$typeof===R?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function tf(t){function e(O,x){if(t){var E=O.deletions;E===null?(O.deletions=[x],O.flags|=16):E.push(x)}}function l(O,x){if(!t)return null;for(;x!==null;)e(O,x),x=x.sibling;return null}function n(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 u(O,x){return O=$e(O,x),O.index=0,O.sibling=null,O}function r(O,x,E){return O.index=E,t?(E=O.alternate,E!==null?(E=E.index,E<x?(O.flags|=67108866,x):E):(O.flags|=67108866,x)):(O.flags|=1048576,x)}function o(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function v(O,x,E,U){return x===null||x.tag!==6?(x=br(E,O.mode,U),x.return=O,x):(x=u(x,E),x.return=O,x)}function g(O,x,E,U){var at=E.type;return at===q?N(O,x,E.props.children,U,E.key):x!==null&&(x.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===X&&Pl(at)===x.type)?(x=u(x,E.props),ga(x,E),x.return=O,x):(x=Ou(E.type,E.key,E.props,null,O.mode,U),ga(x,E),x.return=O,x)}function j(O,x,E,U){return x===null||x.tag!==4||x.stateNode.containerInfo!==E.containerInfo||x.stateNode.implementation!==E.implementation?(x=Sr(E,O.mode,U),x.return=O,x):(x=u(x,E.children||[]),x.return=O,x)}function N(O,x,E,U,at){return x===null||x.tag!==7?(x=Vl(E,O.mode,U,at),x.return=O,x):(x=u(x,E),x.return=O,x)}function Q(O,x,E){if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return x=br(""+x,O.mode,E),x.return=O,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Y:return E=Ou(x.type,x.key,x.props,null,O.mode,E),ga(E,x),E.return=O,E;case Z:return x=Sr(x,O.mode,E),x.return=O,x;case X:return x=Pl(x),Q(O,x,E)}if(J(x)||et(x))return x=Vl(x,O.mode,E,null),x.return=O,x;if(typeof x.then=="function")return Q(O,zu(x),E);if(x.$$typeof===jt)return Q(O,ju(O,x),E);Mu(O,x)}return null}function C(O,x,E,U){var at=x!==null?x.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return at!==null?null:v(O,x,""+E,U);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Y:return E.key===at?g(O,x,E,U):null;case Z:return E.key===at?j(O,x,E,U):null;case X:return E=Pl(E),C(O,x,E,U)}if(J(E)||et(E))return at!==null?null:N(O,x,E,U,null);if(typeof E.then=="function")return C(O,x,zu(E),U);if(E.$$typeof===jt)return C(O,x,ju(O,E),U);Mu(O,E)}return null}function z(O,x,E,U,at){if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return O=O.get(E)||null,v(x,O,""+U,at);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case Y:return O=O.get(U.key===null?E:U.key)||null,g(x,O,U,at);case Z:return O=O.get(U.key===null?E:U.key)||null,j(x,O,U,at);case X:return U=Pl(U),z(O,x,E,U,at)}if(J(U)||et(U))return O=O.get(E)||null,N(x,O,U,at,null);if(typeof U.then=="function")return z(O,x,E,zu(U),at);if(U.$$typeof===jt)return z(O,x,E,ju(x,U),at);Mu(x,U)}return null}function k(O,x,E,U){for(var at=null,Ot=null,tt=x,dt=x=0,bt=null;tt!==null&&dt<E.length;dt++){tt.index>dt?(bt=tt,tt=null):bt=tt.sibling;var _t=C(O,tt,E[dt],U);if(_t===null){tt===null&&(tt=bt);break}t&&tt&&_t.alternate===null&&e(O,tt),x=r(_t,x,dt),Ot===null?at=_t:Ot.sibling=_t,Ot=_t,tt=bt}if(dt===E.length)return l(O,tt),St&&Pe(O,dt),at;if(tt===null){for(;dt<E.length;dt++)tt=Q(O,E[dt],U),tt!==null&&(x=r(tt,x,dt),Ot===null?at=tt:Ot.sibling=tt,Ot=tt);return St&&Pe(O,dt),at}for(tt=n(tt);dt<E.length;dt++)bt=z(tt,O,dt,E[dt],U),bt!==null&&(t&&bt.alternate!==null&&tt.delete(bt.key===null?dt:bt.key),x=r(bt,x,dt),Ot===null?at=bt:Ot.sibling=bt,Ot=bt);return t&&tt.forEach(function(ql){return e(O,ql)}),St&&Pe(O,dt),at}function ut(O,x,E,U){if(E==null)throw Error(c(151));for(var at=null,Ot=null,tt=x,dt=x=0,bt=null,_t=E.next();tt!==null&&!_t.done;dt++,_t=E.next()){tt.index>dt?(bt=tt,tt=null):bt=tt.sibling;var ql=C(O,tt,_t.value,U);if(ql===null){tt===null&&(tt=bt);break}t&&tt&&ql.alternate===null&&e(O,tt),x=r(ql,x,dt),Ot===null?at=ql:Ot.sibling=ql,Ot=ql,tt=bt}if(_t.done)return l(O,tt),St&&Pe(O,dt),at;if(tt===null){for(;!_t.done;dt++,_t=E.next())_t=Q(O,_t.value,U),_t!==null&&(x=r(_t,x,dt),Ot===null?at=_t:Ot.sibling=_t,Ot=_t);return St&&Pe(O,dt),at}for(tt=n(tt);!_t.done;dt++,_t=E.next())_t=z(tt,O,dt,_t.value,U),_t!==null&&(t&&_t.alternate!==null&&tt.delete(_t.key===null?dt:_t.key),x=r(_t,x,dt),Ot===null?at=_t:Ot.sibling=_t,Ot=_t);return t&&tt.forEach(function(Kp){return e(O,Kp)}),St&&Pe(O,dt),at}function Dt(O,x,E,U){if(typeof E=="object"&&E!==null&&E.type===q&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case Y:t:{for(var at=E.key;x!==null;){if(x.key===at){if(at=E.type,at===q){if(x.tag===7){l(O,x.sibling),U=u(x,E.props.children),U.return=O,O=U;break t}}else if(x.elementType===at||typeof at=="object"&&at!==null&&at.$$typeof===X&&Pl(at)===x.type){l(O,x.sibling),U=u(x,E.props),ga(U,E),U.return=O,O=U;break t}l(O,x);break}else e(O,x);x=x.sibling}E.type===q?(U=Vl(E.props.children,O.mode,U,E.key),U.return=O,O=U):(U=Ou(E.type,E.key,E.props,null,O.mode,U),ga(U,E),U.return=O,O=U)}return o(O);case Z:t:{for(at=E.key;x!==null;){if(x.key===at)if(x.tag===4&&x.stateNode.containerInfo===E.containerInfo&&x.stateNode.implementation===E.implementation){l(O,x.sibling),U=u(x,E.children||[]),U.return=O,O=U;break t}else{l(O,x);break}else e(O,x);x=x.sibling}U=Sr(E,O.mode,U),U.return=O,O=U}return o(O);case X:return E=Pl(E),Dt(O,x,E,U)}if(J(E))return k(O,x,E,U);if(et(E)){if(at=et(E),typeof at!="function")throw Error(c(150));return E=at.call(E),ut(O,x,E,U)}if(typeof E.then=="function")return Dt(O,x,zu(E),U);if(E.$$typeof===jt)return Dt(O,x,ju(O,E),U);Mu(O,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,x!==null&&x.tag===6?(l(O,x.sibling),U=u(x,E),U.return=O,O=U):(l(O,x),U=br(E,O.mode,U),U.return=O,O=U),o(O)):l(O,x)}return function(O,x,E,U){try{pa=0;var at=Dt(O,x,E,U);return Nn=null,at}catch(tt){if(tt===Dn||tt===Au)throw tt;var Ot=be(29,tt,null,O.mode);return Ot.lanes=U,Ot.return=O,Ot}finally{}}}var Il=tf(!0),ef=tf(!1),gl=!1;function Nr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rr(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function bl(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Sl(t,e,l){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(Tt&2)!==0){var u=n.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),n.pending=e,e=xu(t),Ho(t,null,l),e}return Su(t,n,e,l),xu(t)}function ba(t,e,l){if(e=e.updateQueue,e!==null&&(e=e.shared,(l&4194048)!==0)){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,Zc(t,l)}}function Ur(t,e){var l=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,l===n)){var u=null,r=null;if(l=l.firstBaseUpdate,l!==null){do{var o={lane:l.lane,tag:l.tag,payload:l.payload,callback:null,next:null};r===null?u=r=o:r=r.next=o,l=l.next}while(l!==null);r===null?u=r=e:r=r.next=e}else u=r=e;l={baseState:n.baseState,firstBaseUpdate:u,lastBaseUpdate:r,shared:n.shared,callbacks:n.callbacks},t.updateQueue=l;return}t=l.lastBaseUpdate,t===null?l.firstBaseUpdate=e:t.next=e,l.lastBaseUpdate=e}var qr=!1;function Sa(){if(qr){var t=Mn;if(t!==null)throw t}}function xa(t,e,l,n){qr=!1;var u=t.updateQueue;gl=!1;var r=u.firstBaseUpdate,o=u.lastBaseUpdate,v=u.shared.pending;if(v!==null){u.shared.pending=null;var g=v,j=g.next;g.next=null,o===null?r=j:o.next=j,o=g;var N=t.alternate;N!==null&&(N=N.updateQueue,v=N.lastBaseUpdate,v!==o&&(v===null?N.firstBaseUpdate=j:v.next=j,N.lastBaseUpdate=g))}if(r!==null){var Q=u.baseState;o=0,N=j=g=null,v=r;do{var C=v.lane&-536870913,z=C!==v.lane;if(z?(gt&C)===C:(n&C)===C){C!==0&&C===zn&&(qr=!0),N!==null&&(N=N.next={lane:0,tag:v.tag,payload:v.payload,callback:null,next:null});t:{var k=t,ut=v;C=e;var Dt=l;switch(ut.tag){case 1:if(k=ut.payload,typeof k=="function"){Q=k.call(Dt,Q,C);break t}Q=k;break t;case 3:k.flags=k.flags&-65537|128;case 0:if(k=ut.payload,C=typeof k=="function"?k.call(Dt,Q,C):k,C==null)break t;Q=_({},Q,C);break t;case 2:gl=!0}}C=v.callback,C!==null&&(t.flags|=64,z&&(t.flags|=8192),z=u.callbacks,z===null?u.callbacks=[C]:z.push(C))}else z={lane:C,tag:v.tag,payload:v.payload,callback:v.callback,next:null},N===null?(j=N=z,g=Q):N=N.next=z,o|=C;if(v=v.next,v===null){if(v=u.shared.pending,v===null)break;z=v,v=z.next,z.next=null,u.lastBaseUpdate=z,u.shared.pending=null}}while(!0);N===null&&(g=Q),u.baseState=g,u.firstBaseUpdate=j,u.lastBaseUpdate=N,r===null&&(u.shared.lanes=0),jl|=o,t.lanes=o,t.memoizedState=Q}}function lf(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function nf(t,e){var l=t.callbacks;if(l!==null)for(t.callbacks=null,t=0;t<l.length;t++)lf(l[t],e)}var Rn=S(null),Du=S(0);function af(t,e){t=sl,H(Du,t),H(Rn,e),sl=t|e.baseLanes}function Qr(){H(Du,sl),H(Rn,Rn.current)}function wr(){sl=Du.current,D(Rn),D(Du)}var Se=S(null),Re=null;function xl(t){var e=t.alternate;H(Yt,Yt.current&1),H(Se,t),Re===null&&(e===null||Rn.current!==null||e.memoizedState!==null)&&(Re=t)}function Hr(t){H(Yt,Yt.current),H(Se,t),Re===null&&(Re=t)}function uf(t){t.tag===22?(H(Yt,Yt.current),H(Se,t),Re===null&&(Re=t)):Ol()}function Ol(){H(Yt,Yt.current),H(Se,Se.current)}function xe(t){D(Se),Re===t&&(Re=null),D(Yt)}var Yt=S(0);function Nu(t){for(var e=t;e!==null;){if(e.tag===13){var l=e.memoizedState;if(l!==null&&(l=l.dehydrated,l===null||Ks(l)||Zs(l)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var tl=0,ot=null,zt=null,Zt=null,Ru=!1,Un=!1,tn=!1,Uu=0,Oa=0,qn=null,Uy=0;function wt(){throw Error(c(321))}function Br(t,e){if(e===null)return!1;for(var l=0;l<e.length&&l<t.length;l++)if(!ge(t[l],e[l]))return!1;return!0}function Lr(t,e,l,n,u,r){return tl=r,ot=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,T.H=t===null||t.memoizedState===null?Xf:es,tn=!1,r=l(n,u),tn=!1,Un&&(r=sf(e,l,n,u)),rf(t),r}function rf(t){T.H=ja;var e=zt!==null&&zt.next!==null;if(tl=0,Zt=zt=ot=null,Ru=!1,Oa=0,qn=null,e)throw Error(c(300));t===null||Vt||(t=t.dependencies,t!==null&&Eu(t)&&(Vt=!0))}function sf(t,e,l,n){ot=t;var u=0;do{if(Un&&(qn=null),Oa=0,Un=!1,25<=u)throw Error(c(301));if(u+=1,Zt=zt=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}T.H=Kf,r=e(l,n)}while(Un);return r}function qy(){var t=T.H,e=t.useState()[0];return e=typeof e.then=="function"?_a(e):e,t=t.useState()[0],(zt!==null?zt.memoizedState:null)!==t&&(ot.flags|=1024),e}function Yr(){var t=Uu!==0;return Uu=0,t}function Gr(t,e,l){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~l}function Xr(t){if(Ru){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Ru=!1}tl=0,Zt=zt=ot=null,Un=!1,Oa=Uu=0,qn=null}function ie(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Zt===null?ot.memoizedState=Zt=t:Zt=Zt.next=t,Zt}function Gt(){if(zt===null){var t=ot.alternate;t=t!==null?t.memoizedState:null}else t=zt.next;var e=Zt===null?ot.memoizedState:Zt.next;if(e!==null)Zt=e,zt=t;else{if(t===null)throw ot.alternate===null?Error(c(467)):Error(c(310));zt=t,t={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},Zt===null?ot.memoizedState=Zt=t:Zt=Zt.next=t}return Zt}function qu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function _a(t){var e=Oa;return Oa+=1,qn===null&&(qn=[]),t=Po(qn,t,e),e=ot,(Zt===null?e.memoizedState:Zt.next)===null&&(e=e.alternate,T.H=e===null||e.memoizedState===null?Xf:es),t}function Qu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return _a(t);if(t.$$typeof===jt)return It(t)}throw Error(c(438,String(t)))}function Kr(t){var e=null,l=ot.updateQueue;if(l!==null&&(e=l.memoCache),e==null){var n=ot.alternate;n!==null&&(n=n.updateQueue,n!==null&&(n=n.memoCache,n!=null&&(e={data:n.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),l===null&&(l=qu(),ot.updateQueue=l),l.memoCache=e,l=e.data[e.index],l===void 0)for(l=e.data[e.index]=Array(t),n=0;n<t;n++)l[n]=lt;return e.index++,l}function el(t,e){return typeof e=="function"?e(t):e}function wu(t){var e=Gt();return Zr(e,zt,t)}function Zr(t,e,l){var n=t.queue;if(n===null)throw Error(c(311));n.lastRenderedReducer=l;var u=t.baseQueue,r=n.pending;if(r!==null){if(u!==null){var o=u.next;u.next=r.next,r.next=o}e.baseQueue=u=r,n.pending=null}if(r=t.baseState,u===null)t.memoizedState=r;else{e=u.next;var v=o=null,g=null,j=e,N=!1;do{var Q=j.lane&-536870913;if(Q!==j.lane?(gt&Q)===Q:(tl&Q)===Q){var C=j.revertLane;if(C===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null}),Q===zn&&(N=!0);else if((tl&C)===C){j=j.next,C===zn&&(N=!0);continue}else Q={lane:0,revertLane:j.revertLane,gesture:null,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},g===null?(v=g=Q,o=r):g=g.next=Q,ot.lanes|=C,jl|=C;Q=j.action,tn&&l(r,Q),r=j.hasEagerState?j.eagerState:l(r,Q)}else C={lane:Q,revertLane:j.revertLane,gesture:j.gesture,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null},g===null?(v=g=C,o=r):g=g.next=C,ot.lanes|=Q,jl|=Q;j=j.next}while(j!==null&&j!==e);if(g===null?o=r:g.next=v,!ge(r,t.memoizedState)&&(Vt=!0,N&&(l=Mn,l!==null)))throw l;t.memoizedState=r,t.baseState=o,t.baseQueue=g,n.lastRenderedState=r}return u===null&&(n.lanes=0),[t.memoizedState,n.dispatch]}function Vr(t){var e=Gt(),l=e.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=t;var n=l.dispatch,u=l.pending,r=e.memoizedState;if(u!==null){l.pending=null;var o=u=u.next;do r=t(r,o.action),o=o.next;while(o!==u);ge(r,e.memoizedState)||(Vt=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),l.lastRenderedState=r}return[r,n]}function cf(t,e,l){var n=ot,u=Gt(),r=St;if(r){if(l===void 0)throw Error(c(407));l=l()}else l=e();var o=!ge((zt||u).memoizedState,l);if(o&&(u.memoizedState=l,Vt=!0),u=u.queue,Fr(df.bind(null,n,u,t),[t]),u.getSnapshot!==e||o||Zt!==null&&Zt.memoizedState.tag&1){if(n.flags|=2048,Qn(9,{destroy:void 0},ff.bind(null,n,u,l,e),null),Nt===null)throw Error(c(349));r||(tl&127)!==0||of(n,e,l)}return l}function of(t,e,l){t.flags|=16384,t={getSnapshot:e,value:l},e=ot.updateQueue,e===null?(e=qu(),ot.updateQueue=e,e.stores=[t]):(l=e.stores,l===null?e.stores=[t]:l.push(t))}function ff(t,e,l,n){e.value=l,e.getSnapshot=n,hf(e)&&mf(t)}function df(t,e,l){return l(function(){hf(e)&&mf(t)})}function hf(t){var e=t.getSnapshot;t=t.value;try{var l=e();return!ge(t,l)}catch{return!0}}function mf(t){var e=Zl(t,2);e!==null&&me(e,t,2)}function Jr(t){var e=ie();if(typeof t=="function"){var l=t;if(t=l(),tn){fl(!0);try{l()}finally{fl(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:t},e}function vf(t,e,l,n){return t.baseState=l,Zr(t,zt,typeof n=="function"?n:el)}function Qy(t,e,l,n,u){if(Lu(t))throw Error(c(485));if(t=e.action,t!==null){var r={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){r.listeners.push(o)}};T.T!==null?l(!0):r.isTransition=!1,n(r),l=e.pending,l===null?(r.next=e.pending=r,yf(e,r)):(r.next=l.next,e.pending=l.next=r)}}function yf(t,e){var l=e.action,n=e.payload,u=t.state;if(e.isTransition){var r=T.T,o={};T.T=o;try{var v=l(u,n),g=T.S;g!==null&&g(o,v),pf(t,e,v)}catch(j){kr(t,e,j)}finally{r!==null&&o.types!==null&&(r.types=o.types),T.T=r}}else try{r=l(u,n),pf(t,e,r)}catch(j){kr(t,e,j)}}function pf(t,e,l){l!==null&&typeof l=="object"&&typeof l.then=="function"?l.then(function(n){gf(t,e,n)},function(n){return kr(t,e,n)}):gf(t,e,l)}function gf(t,e,l){e.status="fulfilled",e.value=l,bf(e),t.state=l,e=t.pending,e!==null&&(l=e.next,l===e?t.pending=null:(l=l.next,e.next=l,yf(t,l)))}function kr(t,e,l){var n=t.pending;if(t.pending=null,n!==null){n=n.next;do e.status="rejected",e.reason=l,bf(e),e=e.next;while(e!==n)}t.action=null}function bf(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Sf(t,e){return e}function xf(t,e){if(St){var l=Nt.formState;if(l!==null){t:{var n=ot;if(St){if(Rt){e:{for(var u=Rt,r=Ne;u.nodeType!==8;){if(!r){u=null;break e}if(u=Ue(u.nextSibling),u===null){u=null;break e}}r=u.data,u=r==="F!"||r==="F"?u:null}if(u){Rt=Ue(u.nextSibling),n=u.data==="F!";break t}}yl(n)}n=!1}n&&(e=l[0])}}return l=ie(),l.memoizedState=l.baseState=e,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sf,lastRenderedState:e},l.queue=n,l=Lf.bind(null,ot,n),n.dispatch=l,n=Jr(!1),r=ts.bind(null,ot,!1,n.queue),n=ie(),u={state:e,dispatch:null,action:t,pending:null},n.queue=u,l=Qy.bind(null,ot,u,r,l),u.dispatch=l,n.memoizedState=t,[e,l,!1]}function Of(t){var e=Gt();return _f(e,zt,t)}function _f(t,e,l){if(e=Zr(t,e,Sf)[0],t=wu(el)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var n=_a(e)}catch(o){throw o===Dn?Au:o}else n=e;e=Gt();var u=e.queue,r=u.dispatch;return l!==e.memoizedState&&(ot.flags|=2048,Qn(9,{destroy:void 0},wy.bind(null,u,l),null)),[n,r,t]}function wy(t,e){t.action=e}function Ef(t){var e=Gt(),l=zt;if(l!==null)return _f(e,l,t);Gt(),e=e.memoizedState,l=Gt();var n=l.queue.dispatch;return l.memoizedState=t,[e,n,!1]}function Qn(t,e,l,n){return t={tag:t,create:l,deps:n,inst:e,next:null},e=ot.updateQueue,e===null&&(e=qu(),ot.updateQueue=e),l=e.lastEffect,l===null?e.lastEffect=t.next=t:(n=l.next,l.next=t,t.next=n,e.lastEffect=t),t}function jf(){return Gt().memoizedState}function Hu(t,e,l,n){var u=ie();ot.flags|=t,u.memoizedState=Qn(1|e,{destroy:void 0},l,n===void 0?null:n)}function Bu(t,e,l,n){var u=Gt();n=n===void 0?null:n;var r=u.memoizedState.inst;zt!==null&&n!==null&&Br(n,zt.memoizedState.deps)?u.memoizedState=Qn(e,r,l,n):(ot.flags|=t,u.memoizedState=Qn(1|e,r,l,n))}function Tf(t,e){Hu(8390656,8,t,e)}function Fr(t,e){Bu(2048,8,t,e)}function Hy(t){ot.flags|=4;var e=ot.updateQueue;if(e===null)e=qu(),ot.updateQueue=e,e.events=[t];else{var l=e.events;l===null?e.events=[t]:l.push(t)}}function Af(t){var e=Gt().memoizedState;return Hy({ref:e,nextImpl:t}),function(){if((Tt&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function Cf(t,e){return Bu(4,2,t,e)}function zf(t,e){return Bu(4,4,t,e)}function Mf(t,e){if(typeof e=="function"){t=t();var l=e(t);return function(){typeof l=="function"?l():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Df(t,e,l){l=l!=null?l.concat([t]):null,Bu(4,4,Mf.bind(null,e,t),l)}function $r(){}function Nf(t,e){var l=Gt();e=e===void 0?null:e;var n=l.memoizedState;return e!==null&&Br(e,n[1])?n[0]:(l.memoizedState=[t,e],t)}function Rf(t,e){var l=Gt();e=e===void 0?null:e;var n=l.memoizedState;if(e!==null&&Br(e,n[1]))return n[0];if(n=t(),tn){fl(!0);try{t()}finally{fl(!1)}}return l.memoizedState=[n,e],n}function Pr(t,e,l){return l===void 0||(tl&1073741824)!==0&&(gt&261930)===0?t.memoizedState=e:(t.memoizedState=l,t=Ud(),ot.lanes|=t,jl|=t,l)}function Uf(t,e,l,n){return ge(l,e)?l:Rn.current!==null?(t=Pr(t,l,n),ge(t,e)||(Vt=!0),t):(tl&42)===0||(tl&1073741824)!==0&&(gt&261930)===0?(Vt=!0,t.memoizedState=l):(t=Ud(),ot.lanes|=t,jl|=t,e)}function qf(t,e,l,n,u){var r=w.p;w.p=r!==0&&8>r?r:8;var o=T.T,v={};T.T=v,ts(t,!1,e,l);try{var g=u(),j=T.S;if(j!==null&&j(v,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var N=Ry(g,n);Ea(t,e,N,Ee(t))}else Ea(t,e,n,Ee(t))}catch(Q){Ea(t,e,{then:function(){},status:"rejected",reason:Q},Ee())}finally{w.p=r,o!==null&&v.types!==null&&(o.types=v.types),T.T=o}}function By(){}function Wr(t,e,l,n){if(t.tag!==5)throw Error(c(476));var u=Qf(t).queue;qf(t,u,e,G,l===null?By:function(){return wf(t),l(n)})}function Qf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:G},next:null};var l={};return e.next={memoizedState:l,baseState:l,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:el,lastRenderedState:l},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function wf(t){var e=Qf(t);e.next===null&&(e=t.alternate.memoizedState),Ea(t,e.next.queue,{},Ee())}function Ir(){return It(Ya)}function Hf(){return Gt().memoizedState}function Bf(){return Gt().memoizedState}function Ly(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var l=Ee();t=bl(l);var n=Sl(e,t,l);n!==null&&(me(n,e,l),ba(n,e,l)),e={cache:Cr()},t.payload=e;return}e=e.return}}function Yy(t,e,l){var n=Ee();l={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Lu(t)?Yf(e,l):(l=pr(t,e,l,n),l!==null&&(me(l,t,n),Gf(l,e,n)))}function Lf(t,e,l){var n=Ee();Ea(t,e,l,n)}function Ea(t,e,l,n){var u={lane:n,revertLane:0,gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null};if(Lu(t))Yf(e,u);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var o=e.lastRenderedState,v=r(o,l);if(u.hasEagerState=!0,u.eagerState=v,ge(v,o))return Su(t,e,u,0),Nt===null&&bu(),!1}catch{}finally{}if(l=pr(t,e,u,n),l!==null)return me(l,t,n),Gf(l,e,n),!0}return!1}function ts(t,e,l,n){if(n={lane:2,revertLane:Ns(),gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Lu(t)){if(e)throw Error(c(479))}else e=pr(t,l,n,2),e!==null&&me(e,t,2)}function Lu(t){var e=t.alternate;return t===ot||e!==null&&e===ot}function Yf(t,e){Un=Ru=!0;var l=t.pending;l===null?e.next=e:(e.next=l.next,l.next=e),t.pending=e}function Gf(t,e,l){if((l&4194048)!==0){var n=e.lanes;n&=t.pendingLanes,l|=n,e.lanes=l,Zc(t,l)}}var ja={readContext:It,use:Qu,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useLayoutEffect:wt,useInsertionEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useSyncExternalStore:wt,useId:wt,useHostTransitionStatus:wt,useFormState:wt,useActionState:wt,useOptimistic:wt,useMemoCache:wt,useCacheRefresh:wt};ja.useEffectEvent=wt;var Xf={readContext:It,use:Qu,useCallback:function(t,e){return ie().memoizedState=[t,e===void 0?null:e],t},useContext:It,useEffect:Tf,useImperativeHandle:function(t,e,l){l=l!=null?l.concat([t]):null,Hu(4194308,4,Mf.bind(null,e,t),l)},useLayoutEffect:function(t,e){return Hu(4194308,4,t,e)},useInsertionEffect:function(t,e){Hu(4,2,t,e)},useMemo:function(t,e){var l=ie();e=e===void 0?null:e;var n=t();if(tn){fl(!0);try{t()}finally{fl(!1)}}return l.memoizedState=[n,e],n},useReducer:function(t,e,l){var n=ie();if(l!==void 0){var u=l(e);if(tn){fl(!0);try{l(e)}finally{fl(!1)}}}else u=e;return n.memoizedState=n.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},n.queue=t,t=t.dispatch=Yy.bind(null,ot,t),[n.memoizedState,t]},useRef:function(t){var e=ie();return t={current:t},e.memoizedState=t},useState:function(t){t=Jr(t);var e=t.queue,l=Lf.bind(null,ot,e);return e.dispatch=l,[t.memoizedState,l]},useDebugValue:$r,useDeferredValue:function(t,e){var l=ie();return Pr(l,t,e)},useTransition:function(){var t=Jr(!1);return t=qf.bind(null,ot,t.queue,!0,!1),ie().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,l){var n=ot,u=ie();if(St){if(l===void 0)throw Error(c(407));l=l()}else{if(l=e(),Nt===null)throw Error(c(349));(gt&127)!==0||of(n,e,l)}u.memoizedState=l;var r={value:l,getSnapshot:e};return u.queue=r,Tf(df.bind(null,n,r,t),[t]),n.flags|=2048,Qn(9,{destroy:void 0},ff.bind(null,n,r,l,e),null),l},useId:function(){var t=ie(),e=Nt.identifierPrefix;if(St){var l=Ge,n=Ye;l=(n&~(1<<32-pe(n)-1)).toString(32)+l,e="_"+e+"R_"+l,l=Uu++,0<l&&(e+="H"+l.toString(32)),e+="_"}else l=Uy++,e="_"+e+"r_"+l.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Ir,useFormState:xf,useActionState:xf,useOptimistic:function(t){var e=ie();e.memoizedState=e.baseState=t;var l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=l,e=ts.bind(null,ot,!0,l),l.dispatch=e,[t,e]},useMemoCache:Kr,useCacheRefresh:function(){return ie().memoizedState=Ly.bind(null,ot)},useEffectEvent:function(t){var e=ie(),l={impl:t};return e.memoizedState=l,function(){if((Tt&2)!==0)throw Error(c(440));return l.impl.apply(void 0,arguments)}}},es={readContext:It,use:Qu,useCallback:Nf,useContext:It,useEffect:Fr,useImperativeHandle:Df,useInsertionEffect:Cf,useLayoutEffect:zf,useMemo:Rf,useReducer:wu,useRef:jf,useState:function(){return wu(el)},useDebugValue:$r,useDeferredValue:function(t,e){var l=Gt();return Uf(l,zt.memoizedState,t,e)},useTransition:function(){var t=wu(el)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:_a(t),e]},useSyncExternalStore:cf,useId:Hf,useHostTransitionStatus:Ir,useFormState:Of,useActionState:Of,useOptimistic:function(t,e){var l=Gt();return vf(l,zt,t,e)},useMemoCache:Kr,useCacheRefresh:Bf};es.useEffectEvent=Af;var Kf={readContext:It,use:Qu,useCallback:Nf,useContext:It,useEffect:Fr,useImperativeHandle:Df,useInsertionEffect:Cf,useLayoutEffect:zf,useMemo:Rf,useReducer:Vr,useRef:jf,useState:function(){return Vr(el)},useDebugValue:$r,useDeferredValue:function(t,e){var l=Gt();return zt===null?Pr(l,t,e):Uf(l,zt.memoizedState,t,e)},useTransition:function(){var t=Vr(el)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:_a(t),e]},useSyncExternalStore:cf,useId:Hf,useHostTransitionStatus:Ir,useFormState:Ef,useActionState:Ef,useOptimistic:function(t,e){var l=Gt();return zt!==null?vf(l,zt,t,e):(l.baseState=t,[t,l.queue.dispatch])},useMemoCache:Kr,useCacheRefresh:Bf};Kf.useEffectEvent=Af;function ls(t,e,l,n){e=t.memoizedState,l=l(n,e),l=l==null?e:_({},e,l),t.memoizedState=l,t.lanes===0&&(t.updateQueue.baseState=l)}var ns={enqueueSetState:function(t,e,l){t=t._reactInternals;var n=Ee(),u=bl(n);u.payload=e,l!=null&&(u.callback=l),e=Sl(t,u,n),e!==null&&(me(e,t,n),ba(e,t,n))},enqueueReplaceState:function(t,e,l){t=t._reactInternals;var n=Ee(),u=bl(n);u.tag=1,u.payload=e,l!=null&&(u.callback=l),e=Sl(t,u,n),e!==null&&(me(e,t,n),ba(e,t,n))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var l=Ee(),n=bl(l);n.tag=2,e!=null&&(n.callback=e),e=Sl(t,n,l),e!==null&&(me(e,t,l),ba(e,t,l))}};function Zf(t,e,l,n,u,r,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,r,o):e.prototype&&e.prototype.isPureReactComponent?!fa(l,n)||!fa(u,r):!0}function Vf(t,e,l,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(l,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(l,n),e.state!==t&&ns.enqueueReplaceState(e,e.state,null)}function en(t,e){var l=e;if("ref"in e){l={};for(var n in e)n!=="ref"&&(l[n]=e[n])}if(t=t.defaultProps){l===e&&(l=_({},l));for(var u in t)l[u]===void 0&&(l[u]=t[u])}return l}function Jf(t){gu(t)}function kf(t){console.error(t)}function Ff(t){gu(t)}function Yu(t,e){try{var l=t.onUncaughtError;l(e.value,{componentStack:e.stack})}catch(n){setTimeout(function(){throw n})}}function $f(t,e,l){try{var n=t.onCaughtError;n(l.value,{componentStack:l.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function as(t,e,l){return l=bl(l),l.tag=3,l.payload={element:null},l.callback=function(){Yu(t,e)},l}function Pf(t){return t=bl(t),t.tag=3,t}function Wf(t,e,l,n){var u=l.type.getDerivedStateFromError;if(typeof u=="function"){var r=n.value;t.payload=function(){return u(r)},t.callback=function(){$f(e,l,n)}}var o=l.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){$f(e,l,n),typeof u!="function"&&(Tl===null?Tl=new Set([this]):Tl.add(this));var v=n.stack;this.componentDidCatch(n.value,{componentStack:v!==null?v:""})})}function Gy(t,e,l,n,u){if(l.flags|=32768,n!==null&&typeof n=="object"&&typeof n.then=="function"){if(e=l.alternate,e!==null&&Cn(e,l,u,!0),l=Se.current,l!==null){switch(l.tag){case 31:case 13:return Re===null?Iu():l.alternate===null&&Ht===0&&(Ht=3),l.flags&=-257,l.flags|=65536,l.lanes=u,n===Cu?l.flags|=16384:(e=l.updateQueue,e===null?l.updateQueue=new Set([n]):e.add(n),zs(t,n,u)),!1;case 22:return l.flags|=65536,n===Cu?l.flags|=16384:(e=l.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([n])},l.updateQueue=e):(l=e.retryQueue,l===null?e.retryQueue=new Set([n]):l.add(n)),zs(t,n,u)),!1}throw Error(c(435,l.tag))}return zs(t,n,u),Iu(),!1}if(St)return e=Se.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,n!==_r&&(t=Error(c(422),{cause:n}),ma(ze(t,l)))):(n!==_r&&(e=Error(c(423),{cause:n}),ma(ze(e,l))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,n=ze(n,l),u=as(t.stateNode,n,u),Ur(t,u),Ht!==4&&(Ht=2)),!1;var r=Error(c(520),{cause:n});if(r=ze(r,l),Ra===null?Ra=[r]:Ra.push(r),Ht!==4&&(Ht=2),e===null)return!0;n=ze(n,l),l=e;do{switch(l.tag){case 3:return l.flags|=65536,t=u&-u,l.lanes|=t,t=as(l.stateNode,n,t),Ur(l,t),!1;case 1:if(e=l.type,r=l.stateNode,(l.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Tl===null||!Tl.has(r))))return l.flags|=65536,u&=-u,l.lanes|=u,u=Pf(u),Wf(u,t,l,n),Ur(l,u),!1}l=l.return}while(l!==null);return!1}var us=Error(c(461)),Vt=!1;function te(t,e,l,n){e.child=t===null?ef(e,null,l,n):Il(e,t.child,l,n)}function If(t,e,l,n,u){l=l.render;var r=e.ref;if("ref"in n){var o={};for(var v in n)v!=="ref"&&(o[v]=n[v])}else o=n;return Fl(e),n=Lr(t,e,l,o,r,u),v=Yr(),t!==null&&!Vt?(Gr(t,e,u),ll(t,e,u)):(St&&v&&xr(e),e.flags|=1,te(t,e,n,u),e.child)}function td(t,e,l,n,u){if(t===null){var r=l.type;return typeof r=="function"&&!gr(r)&&r.defaultProps===void 0&&l.compare===null?(e.tag=15,e.type=r,ed(t,e,r,n,u)):(t=Ou(l.type,null,n,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!hs(t,u)){var o=r.memoizedProps;if(l=l.compare,l=l!==null?l:fa,l(o,n)&&t.ref===e.ref)return ll(t,e,u)}return e.flags|=1,t=$e(r,n),t.ref=e.ref,t.return=e,e.child=t}function ed(t,e,l,n,u){if(t!==null){var r=t.memoizedProps;if(fa(r,n)&&t.ref===e.ref)if(Vt=!1,e.pendingProps=n=r,hs(t,u))(t.flags&131072)!==0&&(Vt=!0);else return e.lanes=t.lanes,ll(t,e,u)}return is(t,e,l,n,u)}function ld(t,e,l,n){var u=n.children,r=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.mode==="hidden"){if((e.flags&128)!==0){if(r=r!==null?r.baseLanes|l:l,t!==null){for(n=e.child=t.child,u=0;n!==null;)u=u|n.lanes|n.childLanes,n=n.sibling;n=u&~r}else n=0,e.child=null;return nd(t,e,r,l,n)}if((l&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Tu(e,r!==null?r.cachePool:null),r!==null?af(e,r):Qr(),uf(e);else return n=e.lanes=536870912,nd(t,e,r!==null?r.baseLanes|l:l,l,n)}else r!==null?(Tu(e,r.cachePool),af(e,r),Ol(),e.memoizedState=null):(t!==null&&Tu(e,null),Qr(),Ol());return te(t,e,u,l),e.child}function Ta(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function nd(t,e,l,n,u){var r=Mr();return r=r===null?null:{parent:Kt._currentValue,pool:r},e.memoizedState={baseLanes:l,cachePool:r},t!==null&&Tu(e,null),Qr(),uf(e),t!==null&&Cn(t,e,n,!0),e.childLanes=u,null}function Gu(t,e){return e=Ku({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function ad(t,e,l){return Il(e,t.child,null,l),t=Gu(e,e.pendingProps),t.flags|=2,xe(e),e.memoizedState=null,t}function Xy(t,e,l){var n=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(St){if(n.mode==="hidden")return t=Gu(e,n),e.lanes=536870912,Ta(null,t);if(Hr(e),(t=Rt)?(t=yh(t,Ne),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ml!==null?{id:Ye,overflow:Ge}:null,retryLane:536870912,hydrationErrors:null},l=Lo(t),l.return=e,e.child=l,Wt=e,Rt=null)):t=null,t===null)throw yl(e);return e.lanes=536870912,null}return Gu(e,n)}var r=t.memoizedState;if(r!==null){var o=r.dehydrated;if(Hr(e),u)if(e.flags&256)e.flags&=-257,e=ad(t,e,l);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(Vt||Cn(t,e,l,!1),u=(l&t.childLanes)!==0,Vt||u){if(n=Nt,n!==null&&(o=Vc(n,l),o!==0&&o!==r.retryLane))throw r.retryLane=o,Zl(t,o),me(n,t,o),us;Iu(),e=ad(t,e,l)}else t=r.treeContext,Rt=Ue(o.nextSibling),Wt=e,St=!0,vl=null,Ne=!1,t!==null&&Xo(e,t),e=Gu(e,n),e.flags|=4096;return e}return t=$e(t.child,{mode:n.mode,children:n.children}),t.ref=e.ref,e.child=t,t.return=e,t}function Xu(t,e){var l=e.ref;if(l===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof l!="function"&&typeof l!="object")throw Error(c(284));(t===null||t.ref!==l)&&(e.flags|=4194816)}}function is(t,e,l,n,u){return Fl(e),l=Lr(t,e,l,n,void 0,u),n=Yr(),t!==null&&!Vt?(Gr(t,e,u),ll(t,e,u)):(St&&n&&xr(e),e.flags|=1,te(t,e,l,u),e.child)}function ud(t,e,l,n,u,r){return Fl(e),e.updateQueue=null,l=sf(e,n,l,u),rf(t),n=Yr(),t!==null&&!Vt?(Gr(t,e,r),ll(t,e,r)):(St&&n&&xr(e),e.flags|=1,te(t,e,l,r),e.child)}function id(t,e,l,n,u){if(Fl(e),e.stateNode===null){var r=En,o=l.contextType;typeof o=="object"&&o!==null&&(r=It(o)),r=new l(n,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=ns,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=n,r.state=e.memoizedState,r.refs={},Nr(e),o=l.contextType,r.context=typeof o=="object"&&o!==null?It(o):En,r.state=e.memoizedState,o=l.getDerivedStateFromProps,typeof o=="function"&&(ls(e,l,o,n),r.state=e.memoizedState),typeof l.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(o=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),o!==r.state&&ns.enqueueReplaceState(r,r.state,null),xa(e,n,r,u),Sa(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),n=!0}else if(t===null){r=e.stateNode;var v=e.memoizedProps,g=en(l,v);r.props=g;var j=r.context,N=l.contextType;o=En,typeof N=="object"&&N!==null&&(o=It(N));var Q=l.getDerivedStateFromProps;N=typeof Q=="function"||typeof r.getSnapshotBeforeUpdate=="function",v=e.pendingProps!==v,N||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(v||j!==o)&&Vf(e,r,n,o),gl=!1;var C=e.memoizedState;r.state=C,xa(e,n,r,u),Sa(),j=e.memoizedState,v||C!==j||gl?(typeof Q=="function"&&(ls(e,l,Q,n),j=e.memoizedState),(g=gl||Zf(e,l,g,n,C,j,o))?(N||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=j),r.props=n,r.state=j,r.context=o,n=g):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{r=e.stateNode,Rr(t,e),o=e.memoizedProps,N=en(l,o),r.props=N,Q=e.pendingProps,C=r.context,j=l.contextType,g=En,typeof j=="object"&&j!==null&&(g=It(j)),v=l.getDerivedStateFromProps,(j=typeof v=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(o!==Q||C!==g)&&Vf(e,r,n,g),gl=!1,C=e.memoizedState,r.state=C,xa(e,n,r,u),Sa();var z=e.memoizedState;o!==Q||C!==z||gl||t!==null&&t.dependencies!==null&&Eu(t.dependencies)?(typeof v=="function"&&(ls(e,l,v,n),z=e.memoizedState),(N=gl||Zf(e,l,N,n,C,z,g)||t!==null&&t.dependencies!==null&&Eu(t.dependencies))?(j||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(n,z,g),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(n,z,g)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||o===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=z),r.props=n,r.state=z,r.context=g,n=N):(typeof r.componentDidUpdate!="function"||o===t.memoizedProps&&C===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&C===t.memoizedState||(e.flags|=1024),n=!1)}return r=n,Xu(t,e),n=(e.flags&128)!==0,r||n?(r=e.stateNode,l=n&&typeof l.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&n?(e.child=Il(e,t.child,null,u),e.child=Il(e,null,l,u)):te(t,e,l,u),e.memoizedState=r.state,t=e.child):t=ll(t,e,u),t}function rd(t,e,l,n){return Jl(),e.flags|=256,te(t,e,l,n),e.child}var rs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function ss(t){return{baseLanes:t,cachePool:Fo()}}function cs(t,e,l){return t=t!==null?t.childLanes&~l:0,e&&(t|=_e),t}function sd(t,e,l){var n=e.pendingProps,u=!1,r=(e.flags&128)!==0,o;if((o=r)||(o=t!==null&&t.memoizedState===null?!1:(Yt.current&2)!==0),o&&(u=!0,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(St){if(u?xl(e):Ol(),(t=Rt)?(t=yh(t,Ne),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:ml!==null?{id:Ye,overflow:Ge}:null,retryLane:536870912,hydrationErrors:null},l=Lo(t),l.return=e,e.child=l,Wt=e,Rt=null)):t=null,t===null)throw yl(e);return Zs(t)?e.lanes=32:e.lanes=536870912,null}var v=n.children;return n=n.fallback,u?(Ol(),u=e.mode,v=Ku({mode:"hidden",children:v},u),n=Vl(n,u,l,null),v.return=e,n.return=e,v.sibling=n,e.child=v,n=e.child,n.memoizedState=ss(l),n.childLanes=cs(t,o,l),e.memoizedState=rs,Ta(null,n)):(xl(e),os(e,v))}var g=t.memoizedState;if(g!==null&&(v=g.dehydrated,v!==null)){if(r)e.flags&256?(xl(e),e.flags&=-257,e=fs(t,e,l)):e.memoizedState!==null?(Ol(),e.child=t.child,e.flags|=128,e=null):(Ol(),v=n.fallback,u=e.mode,n=Ku({mode:"visible",children:n.children},u),v=Vl(v,u,l,null),v.flags|=2,n.return=e,v.return=e,n.sibling=v,e.child=n,Il(e,t.child,null,l),n=e.child,n.memoizedState=ss(l),n.childLanes=cs(t,o,l),e.memoizedState=rs,e=Ta(null,n));else if(xl(e),Zs(v)){if(o=v.nextSibling&&v.nextSibling.dataset,o)var j=o.dgst;o=j,n=Error(c(419)),n.stack="",n.digest=o,ma({value:n,source:null,stack:null}),e=fs(t,e,l)}else if(Vt||Cn(t,e,l,!1),o=(l&t.childLanes)!==0,Vt||o){if(o=Nt,o!==null&&(n=Vc(o,l),n!==0&&n!==g.retryLane))throw g.retryLane=n,Zl(t,n),me(o,t,n),us;Ks(v)||Iu(),e=fs(t,e,l)}else Ks(v)?(e.flags|=192,e.child=t.child,e=null):(t=g.treeContext,Rt=Ue(v.nextSibling),Wt=e,St=!0,vl=null,Ne=!1,t!==null&&Xo(e,t),e=os(e,n.children),e.flags|=4096);return e}return u?(Ol(),v=n.fallback,u=e.mode,g=t.child,j=g.sibling,n=$e(g,{mode:"hidden",children:n.children}),n.subtreeFlags=g.subtreeFlags&65011712,j!==null?v=$e(j,v):(v=Vl(v,u,l,null),v.flags|=2),v.return=e,n.return=e,n.sibling=v,e.child=n,Ta(null,n),n=e.child,v=t.child.memoizedState,v===null?v=ss(l):(u=v.cachePool,u!==null?(g=Kt._currentValue,u=u.parent!==g?{parent:g,pool:g}:u):u=Fo(),v={baseLanes:v.baseLanes|l,cachePool:u}),n.memoizedState=v,n.childLanes=cs(t,o,l),e.memoizedState=rs,Ta(t.child,n)):(xl(e),l=t.child,t=l.sibling,l=$e(l,{mode:"visible",children:n.children}),l.return=e,l.sibling=null,t!==null&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.push(t)),e.child=l,e.memoizedState=null,l)}function os(t,e){return e=Ku({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Ku(t,e){return t=be(22,t,null,e),t.lanes=0,t}function fs(t,e,l){return Il(e,t.child,null,l),t=os(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function cd(t,e,l){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Tr(t.return,e,l)}function ds(t,e,l,n,u,r){var o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:l,tailMode:u,treeForkCount:r}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=n,o.tail=l,o.tailMode=u,o.treeForkCount=r)}function od(t,e,l){var n=e.pendingProps,u=n.revealOrder,r=n.tail;n=n.children;var o=Yt.current,v=(o&2)!==0;if(v?(o=o&1|2,e.flags|=128):o&=1,H(Yt,o),te(t,e,n,l),n=St?ha:0,!v&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&cd(t,l,e);else if(t.tag===19)cd(t,l,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(l=e.child,u=null;l!==null;)t=l.alternate,t!==null&&Nu(t)===null&&(u=l),l=l.sibling;l=u,l===null?(u=e.child,e.child=null):(u=l.sibling,l.sibling=null),ds(e,!1,u,l,r,n);break;case"backwards":case"unstable_legacy-backwards":for(l=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&Nu(t)===null){e.child=u;break}t=u.sibling,u.sibling=l,l=u,u=t}ds(e,!0,l,null,r,n);break;case"together":ds(e,!1,null,null,void 0,n);break;default:e.memoizedState=null}return e.child}function ll(t,e,l){if(t!==null&&(e.dependencies=t.dependencies),jl|=e.lanes,(l&e.childLanes)===0)if(t!==null){if(Cn(t,e,l,!1),(l&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,l=$e(t,t.pendingProps),e.child=l,l.return=e;t.sibling!==null;)t=t.sibling,l=l.sibling=$e(t,t.pendingProps),l.return=e;l.sibling=null}return e.child}function hs(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Eu(t)))}function Ky(t,e,l){switch(e.tag){case 3:ue(e,e.stateNode.containerInfo),pl(e,Kt,t.memoizedState.cache),Jl();break;case 27:case 5:Wn(e);break;case 4:ue(e,e.stateNode.containerInfo);break;case 10:pl(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Hr(e),null;break;case 13:var n=e.memoizedState;if(n!==null)return n.dehydrated!==null?(xl(e),e.flags|=128,null):(l&e.child.childLanes)!==0?sd(t,e,l):(xl(e),t=ll(t,e,l),t!==null?t.sibling:null);xl(e);break;case 19:var u=(t.flags&128)!==0;if(n=(l&e.childLanes)!==0,n||(Cn(t,e,l,!1),n=(l&e.childLanes)!==0),u){if(n)return od(t,e,l);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),H(Yt,Yt.current),n)break;return null;case 22:return e.lanes=0,ld(t,e,l,e.pendingProps);case 24:pl(e,Kt,t.memoizedState.cache)}return ll(t,e,l)}function fd(t,e,l){if(t!==null)if(t.memoizedProps!==e.pendingProps)Vt=!0;else{if(!hs(t,l)&&(e.flags&128)===0)return Vt=!1,Ky(t,e,l);Vt=(t.flags&131072)!==0}else Vt=!1,St&&(e.flags&1048576)!==0&&Go(e,ha,e.index);switch(e.lanes=0,e.tag){case 16:t:{var n=e.pendingProps;if(t=Pl(e.elementType),e.type=t,typeof t=="function")gr(t)?(n=en(t,n),e.tag=1,e=id(null,e,t,n,l)):(e.tag=0,e=is(null,e,t,n,l));else{if(t!=null){var u=t.$$typeof;if(u===qt){e.tag=11,e=If(null,e,t,n,l);break t}else if(u===M){e.tag=14,e=td(null,e,t,n,l);break t}}throw e=ct(t)||t,Error(c(306,e,""))}}return e;case 0:return is(t,e,e.type,e.pendingProps,l);case 1:return n=e.type,u=en(n,e.pendingProps),id(t,e,n,u,l);case 3:t:{if(ue(e,e.stateNode.containerInfo),t===null)throw Error(c(387));n=e.pendingProps;var r=e.memoizedState;u=r.element,Rr(t,e),xa(e,n,null,l);var o=e.memoizedState;if(n=o.cache,pl(e,Kt,n),n!==r.cache&&Ar(e,[Kt],l,!0),Sa(),n=o.element,r.isDehydrated)if(r={element:n,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=rd(t,e,n,l);break t}else if(n!==u){u=ze(Error(c(424)),e),ma(u),e=rd(t,e,n,l);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Rt=Ue(t.firstChild),Wt=e,St=!0,vl=null,Ne=!0,l=ef(e,null,n,l),e.child=l;l;)l.flags=l.flags&-3|4096,l=l.sibling}else{if(Jl(),n===u){e=ll(t,e,l);break t}te(t,e,n,l)}e=e.child}return e;case 26:return Xu(t,e),t===null?(l=Oh(e.type,null,e.pendingProps,null))?e.memoizedState=l:St||(l=e.type,t=e.pendingProps,n=ii(rt.current).createElement(l),n[Pt]=e,n[se]=t,ee(n,l,t),Ft(n),e.stateNode=n):e.memoizedState=Oh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Wn(e),t===null&&St&&(n=e.stateNode=bh(e.type,e.pendingProps,rt.current),Wt=e,Ne=!0,u=Rt,Ml(e.type)?(Vs=u,Rt=Ue(n.firstChild)):Rt=u),te(t,e,e.pendingProps.children,l),Xu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&St&&((u=n=Rt)&&(n=Sp(n,e.type,e.pendingProps,Ne),n!==null?(e.stateNode=n,Wt=e,Rt=Ue(n.firstChild),Ne=!1,u=!0):u=!1),u||yl(e)),Wn(e),u=e.type,r=e.pendingProps,o=t!==null?t.memoizedProps:null,n=r.children,Ys(u,r)?n=null:o!==null&&Ys(u,o)&&(e.flags|=32),e.memoizedState!==null&&(u=Lr(t,e,qy,null,null,l),Ya._currentValue=u),Xu(t,e),te(t,e,n,l),e.child;case 6:return t===null&&St&&((t=l=Rt)&&(l=xp(l,e.pendingProps,Ne),l!==null?(e.stateNode=l,Wt=e,Rt=null,t=!0):t=!1),t||yl(e)),null;case 13:return sd(t,e,l);case 4:return ue(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Il(e,null,n,l):te(t,e,n,l),e.child;case 11:return If(t,e,e.type,e.pendingProps,l);case 7:return te(t,e,e.pendingProps,l),e.child;case 8:return te(t,e,e.pendingProps.children,l),e.child;case 12:return te(t,e,e.pendingProps.children,l),e.child;case 10:return n=e.pendingProps,pl(e,e.type,n.value),te(t,e,n.children,l),e.child;case 9:return u=e.type._context,n=e.pendingProps.children,Fl(e),u=It(u),n=n(u),e.flags|=1,te(t,e,n,l),e.child;case 14:return td(t,e,e.type,e.pendingProps,l);case 15:return ed(t,e,e.type,e.pendingProps,l);case 19:return od(t,e,l);case 31:return Xy(t,e,l);case 22:return ld(t,e,l,e.pendingProps);case 24:return Fl(e),n=It(Kt),t===null?(u=Mr(),u===null&&(u=Nt,r=Cr(),u.pooledCache=r,r.refCount++,r!==null&&(u.pooledCacheLanes|=l),u=r),e.memoizedState={parent:n,cache:u},Nr(e),pl(e,Kt,u)):((t.lanes&l)!==0&&(Rr(t,e),xa(e,null,null,l),Sa()),u=t.memoizedState,r=e.memoizedState,u.parent!==n?(u={parent:n,cache:n},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),pl(e,Kt,n)):(n=r.cache,pl(e,Kt,n),n!==u.cache&&Ar(e,[Kt],l,!0))),te(t,e,e.pendingProps.children,l),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function nl(t){t.flags|=4}function ms(t,e,l,n,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(Hd())t.flags|=8192;else throw Wl=Cu,Dr}else t.flags&=-16777217}function dd(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Ah(e))if(Hd())t.flags|=8192;else throw Wl=Cu,Dr}function Zu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Xc():536870912,t.lanes|=e,Ln|=e)}function Aa(t,e){if(!St)switch(t.tailMode){case"hidden":e=t.tail;for(var l=null;e!==null;)e.alternate!==null&&(l=e),e=e.sibling;l===null?t.tail=null:l.sibling=null;break;case"collapsed":l=t.tail;for(var n=null;l!==null;)l.alternate!==null&&(n=l),l=l.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function Ut(t){var e=t.alternate!==null&&t.alternate.child===t.child,l=0,n=0;if(e)for(var u=t.child;u!==null;)l|=u.lanes|u.childLanes,n|=u.subtreeFlags&65011712,n|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)l|=u.lanes|u.childLanes,n|=u.subtreeFlags,n|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=n,t.childLanes=l,e}function Zy(t,e,l){var n=e.pendingProps;switch(Or(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ut(e),null;case 1:return Ut(e),null;case 3:return l=e.stateNode,n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),Ie(Kt),Lt(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(t===null||t.child===null)&&(An(e)?nl(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Er())),Ut(e),null;case 26:var u=e.type,r=e.memoizedState;return t===null?(nl(e),r!==null?(Ut(e),dd(e,r)):(Ut(e),ms(e,u,null,n,l))):r?r!==t.memoizedState?(nl(e),Ut(e),dd(e,r)):(Ut(e),e.flags&=-16777217):(t=t.memoizedProps,t!==n&&nl(e),Ut(e),ms(e,u,t,n,l)),null;case 27:if(lu(e),l=rt.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&nl(e);else{if(!n){if(e.stateNode===null)throw Error(c(166));return Ut(e),null}t=L.current,An(e)?Ko(e):(t=bh(u,n,l),e.stateNode=t,nl(e))}return Ut(e),null;case 5:if(lu(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==n&&nl(e);else{if(!n){if(e.stateNode===null)throw Error(c(166));return Ut(e),null}if(r=L.current,An(e))Ko(e);else{var o=ii(rt.current);switch(r){case 1:r=o.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:r=o.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":r=o.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":r=o.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":r=o.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof n.is=="string"?o.createElement("select",{is:n.is}):o.createElement("select"),n.multiple?r.multiple=!0:n.size&&(r.size=n.size);break;default:r=typeof n.is=="string"?o.createElement(u,{is:n.is}):o.createElement(u)}}r[Pt]=e,r[se]=n;t:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)r.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break t;for(;o.sibling===null;){if(o.return===null||o.return===e)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=r;t:switch(ee(r,u,n),u){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&nl(e)}}return Ut(e),ms(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,l),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==n&&nl(e);else{if(typeof n!="string"&&e.stateNode===null)throw Error(c(166));if(t=rt.current,An(e)){if(t=e.stateNode,l=e.memoizedProps,n=null,u=Wt,u!==null)switch(u.tag){case 27:case 5:n=u.memoizedProps}t[Pt]=e,t=!!(t.nodeValue===l||n!==null&&n.suppressHydrationWarning===!0||sh(t.nodeValue,l)),t||yl(e,!0)}else t=ii(t).createTextNode(n),t[Pt]=e,e.stateNode=t}return Ut(e),null;case 31:if(l=e.memoizedState,t===null||t.memoizedState!==null){if(n=An(e),l!==null){if(t===null){if(!n)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[Pt]=e}else Jl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),t=!1}else l=Er(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=l),t=!0;if(!t)return e.flags&256?(xe(e),e):(xe(e),null);if((e.flags&128)!==0)throw Error(c(558))}return Ut(e),null;case 13:if(n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=An(e),n!==null&&n.dehydrated!==null){if(t===null){if(!u)throw Error(c(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(c(317));u[Pt]=e}else Jl(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),u=!1}else u=Er(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(xe(e),e):(xe(e),null)}return xe(e),(e.flags&128)!==0?(e.lanes=l,e):(l=n!==null,t=t!==null&&t.memoizedState!==null,l&&(n=e.child,u=null,n.alternate!==null&&n.alternate.memoizedState!==null&&n.alternate.memoizedState.cachePool!==null&&(u=n.alternate.memoizedState.cachePool.pool),r=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(r=n.memoizedState.cachePool.pool),r!==u&&(n.flags|=2048)),l!==t&&l&&(e.child.flags|=8192),Zu(e,e.updateQueue),Ut(e),null);case 4:return Lt(),t===null&&Qs(e.stateNode.containerInfo),Ut(e),null;case 10:return Ie(e.type),Ut(e),null;case 19:if(D(Yt),n=e.memoizedState,n===null)return Ut(e),null;if(u=(e.flags&128)!==0,r=n.rendering,r===null)if(u)Aa(n,!1);else{if(Ht!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=Nu(t),r!==null){for(e.flags|=128,Aa(n,!1),t=r.updateQueue,e.updateQueue=t,Zu(e,t),e.subtreeFlags=0,t=l,l=e.child;l!==null;)Bo(l,t),l=l.sibling;return H(Yt,Yt.current&1|2),St&&Pe(e,n.treeForkCount),e.child}t=t.sibling}n.tail!==null&&ve()>$u&&(e.flags|=128,u=!0,Aa(n,!1),e.lanes=4194304)}else{if(!u)if(t=Nu(r),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,Zu(e,t),Aa(n,!0),n.tail===null&&n.tailMode==="hidden"&&!r.alternate&&!St)return Ut(e),null}else 2*ve()-n.renderingStartTime>$u&&l!==536870912&&(e.flags|=128,u=!0,Aa(n,!1),e.lanes=4194304);n.isBackwards?(r.sibling=e.child,e.child=r):(t=n.last,t!==null?t.sibling=r:e.child=r,n.last=r)}return n.tail!==null?(t=n.tail,n.rendering=t,n.tail=t.sibling,n.renderingStartTime=ve(),t.sibling=null,l=Yt.current,H(Yt,u?l&1|2:l&1),St&&Pe(e,n.treeForkCount),t):(Ut(e),null);case 22:case 23:return xe(e),wr(),n=e.memoizedState!==null,t!==null?t.memoizedState!==null!==n&&(e.flags|=8192):n&&(e.flags|=8192),n?(l&536870912)!==0&&(e.flags&128)===0&&(Ut(e),e.subtreeFlags&6&&(e.flags|=8192)):Ut(e),l=e.updateQueue,l!==null&&Zu(e,l.retryQueue),l=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),n=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),n!==l&&(e.flags|=2048),t!==null&&D($l),null;case 24:return l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),Ie(Kt),Ut(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function Vy(t,e){switch(Or(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return Ie(Kt),Lt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return lu(e),null;case 31:if(e.memoizedState!==null){if(xe(e),e.alternate===null)throw Error(c(340));Jl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(xe(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));Jl()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return D(Yt),null;case 4:return Lt(),null;case 10:return Ie(e.type),null;case 22:case 23:return xe(e),wr(),t!==null&&D($l),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return Ie(Kt),null;case 25:return null;default:return null}}function hd(t,e){switch(Or(e),e.tag){case 3:Ie(Kt),Lt();break;case 26:case 27:case 5:lu(e);break;case 4:Lt();break;case 31:e.memoizedState!==null&&xe(e);break;case 13:xe(e);break;case 19:D(Yt);break;case 10:Ie(e.type);break;case 22:case 23:xe(e),wr(),t!==null&&D($l);break;case 24:Ie(Kt)}}function Ca(t,e){try{var l=e.updateQueue,n=l!==null?l.lastEffect:null;if(n!==null){var u=n.next;l=u;do{if((l.tag&t)===t){n=void 0;var r=l.create,o=l.inst;n=r(),o.destroy=n}l=l.next}while(l!==u)}}catch(v){Ct(e,e.return,v)}}function _l(t,e,l){try{var n=e.updateQueue,u=n!==null?n.lastEffect:null;if(u!==null){var r=u.next;n=r;do{if((n.tag&t)===t){var o=n.inst,v=o.destroy;if(v!==void 0){o.destroy=void 0,u=e;var g=l,j=v;try{j()}catch(N){Ct(u,g,N)}}}n=n.next}while(n!==r)}}catch(N){Ct(e,e.return,N)}}function md(t){var e=t.updateQueue;if(e!==null){var l=t.stateNode;try{nf(e,l)}catch(n){Ct(t,t.return,n)}}}function vd(t,e,l){l.props=en(t.type,t.memoizedProps),l.state=t.memoizedState;try{l.componentWillUnmount()}catch(n){Ct(t,e,n)}}function za(t,e){try{var l=t.ref;if(l!==null){switch(t.tag){case 26:case 27:case 5:var n=t.stateNode;break;case 30:n=t.stateNode;break;default:n=t.stateNode}typeof l=="function"?t.refCleanup=l(n):l.current=n}}catch(u){Ct(t,e,u)}}function Xe(t,e){var l=t.ref,n=t.refCleanup;if(l!==null)if(typeof n=="function")try{n()}catch(u){Ct(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof l=="function")try{l(null)}catch(u){Ct(t,e,u)}else l.current=null}function yd(t){var e=t.type,l=t.memoizedProps,n=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break t;case"img":l.src?n.src=l.src:l.srcSet&&(n.srcset=l.srcSet)}}catch(u){Ct(t,t.return,u)}}function vs(t,e,l){try{var n=t.stateNode;mp(n,t.type,l,e),n[se]=e}catch(u){Ct(t,t.return,u)}}function pd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ml(t.type)||t.tag===4}function ys(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||pd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Ml(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ps(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?(l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l).insertBefore(t,e):(e=l.nodeType===9?l.body:l.nodeName==="HTML"?l.ownerDocument.body:l,e.appendChild(t),l=l._reactRootContainer,l!=null||e.onclick!==null||(e.onclick=ke));else if(n!==4&&(n===27&&Ml(t.type)&&(l=t.stateNode,e=null),t=t.child,t!==null))for(ps(t,e,l),t=t.sibling;t!==null;)ps(t,e,l),t=t.sibling}function Vu(t,e,l){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?l.insertBefore(t,e):l.appendChild(t);else if(n!==4&&(n===27&&Ml(t.type)&&(l=t.stateNode),t=t.child,t!==null))for(Vu(t,e,l),t=t.sibling;t!==null;)Vu(t,e,l),t=t.sibling}function gd(t){var e=t.stateNode,l=t.memoizedProps;try{for(var n=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);ee(e,n,l),e[Pt]=t,e[se]=l}catch(r){Ct(t,t.return,r)}}var al=!1,Jt=!1,gs=!1,bd=typeof WeakSet=="function"?WeakSet:Set,$t=null;function Jy(t,e){if(t=t.containerInfo,Bs=hi,t=Mo(t),fr(t)){if("selectionStart"in t)var l={start:t.selectionStart,end:t.selectionEnd};else t:{l=(l=t.ownerDocument)&&l.defaultView||window;var n=l.getSelection&&l.getSelection();if(n&&n.rangeCount!==0){l=n.anchorNode;var u=n.anchorOffset,r=n.focusNode;n=n.focusOffset;try{l.nodeType,r.nodeType}catch{l=null;break t}var o=0,v=-1,g=-1,j=0,N=0,Q=t,C=null;e:for(;;){for(var z;Q!==l||u!==0&&Q.nodeType!==3||(v=o+u),Q!==r||n!==0&&Q.nodeType!==3||(g=o+n),Q.nodeType===3&&(o+=Q.nodeValue.length),(z=Q.firstChild)!==null;)C=Q,Q=z;for(;;){if(Q===t)break e;if(C===l&&++j===u&&(v=o),C===r&&++N===n&&(g=o),(z=Q.nextSibling)!==null)break;Q=C,C=Q.parentNode}Q=z}l=v===-1||g===-1?null:{start:v,end:g}}else l=null}l=l||{start:0,end:0}}else l=null;for(Ls={focusedElem:t,selectionRange:l},hi=!1,$t=e;$t!==null;)if(e=$t,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,$t=t;else for(;$t!==null;){switch(e=$t,r=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(l=0;l<t.length;l++)u=t[l],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&r!==null){t=void 0,l=e,u=r.memoizedProps,r=r.memoizedState,n=l.stateNode;try{var k=en(l.type,u);t=n.getSnapshotBeforeUpdate(k,r),n.__reactInternalSnapshotBeforeUpdate=t}catch(ut){Ct(l,l.return,ut)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,l=t.nodeType,l===9)Xs(t);else if(l===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Xs(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(c(163))}if(t=e.sibling,t!==null){t.return=e.return,$t=t;break}$t=e.return}}function Sd(t,e,l){var n=l.flags;switch(l.tag){case 0:case 11:case 15:il(t,l),n&4&&Ca(5,l);break;case 1:if(il(t,l),n&4)if(t=l.stateNode,e===null)try{t.componentDidMount()}catch(o){Ct(l,l.return,o)}else{var u=en(l.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){Ct(l,l.return,o)}}n&64&&md(l),n&512&&za(l,l.return);break;case 3:if(il(t,l),n&64&&(t=l.updateQueue,t!==null)){if(e=null,l.child!==null)switch(l.child.tag){case 27:case 5:e=l.child.stateNode;break;case 1:e=l.child.stateNode}try{nf(t,e)}catch(o){Ct(l,l.return,o)}}break;case 27:e===null&&n&4&&gd(l);case 26:case 5:il(t,l),e===null&&n&4&&yd(l),n&512&&za(l,l.return);break;case 12:il(t,l);break;case 31:il(t,l),n&4&&_d(t,l);break;case 13:il(t,l),n&4&&Ed(t,l),n&64&&(t=l.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(l=lp.bind(null,l),Op(t,l))));break;case 22:if(n=l.memoizedState!==null||al,!n){e=e!==null&&e.memoizedState!==null||Jt,u=al;var r=Jt;al=n,(Jt=e)&&!r?rl(t,l,(l.subtreeFlags&8772)!==0):il(t,l),al=u,Jt=r}break;case 30:break;default:il(t,l)}}function xd(t){var e=t.alternate;e!==null&&(t.alternate=null,xd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&ki(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Qt=null,oe=!1;function ul(t,e,l){for(l=l.child;l!==null;)Od(t,e,l),l=l.sibling}function Od(t,e,l){if(ye&&typeof ye.onCommitFiberUnmount=="function")try{ye.onCommitFiberUnmount(In,l)}catch{}switch(l.tag){case 26:Jt||Xe(l,e),ul(t,e,l),l.memoizedState?l.memoizedState.count--:l.stateNode&&(l=l.stateNode,l.parentNode.removeChild(l));break;case 27:Jt||Xe(l,e);var n=Qt,u=oe;Ml(l.type)&&(Qt=l.stateNode,oe=!1),ul(t,e,l),Ha(l.stateNode),Qt=n,oe=u;break;case 5:Jt||Xe(l,e);case 6:if(n=Qt,u=oe,Qt=null,ul(t,e,l),Qt=n,oe=u,Qt!==null)if(oe)try{(Qt.nodeType===9?Qt.body:Qt.nodeName==="HTML"?Qt.ownerDocument.body:Qt).removeChild(l.stateNode)}catch(r){Ct(l,e,r)}else try{Qt.removeChild(l.stateNode)}catch(r){Ct(l,e,r)}break;case 18:Qt!==null&&(oe?(t=Qt,mh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,l.stateNode),kn(t)):mh(Qt,l.stateNode));break;case 4:n=Qt,u=oe,Qt=l.stateNode.containerInfo,oe=!0,ul(t,e,l),Qt=n,oe=u;break;case 0:case 11:case 14:case 15:_l(2,l,e),Jt||_l(4,l,e),ul(t,e,l);break;case 1:Jt||(Xe(l,e),n=l.stateNode,typeof n.componentWillUnmount=="function"&&vd(l,e,n)),ul(t,e,l);break;case 21:ul(t,e,l);break;case 22:Jt=(n=Jt)||l.memoizedState!==null,ul(t,e,l),Jt=n;break;default:ul(t,e,l)}}function _d(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{kn(t)}catch(l){Ct(e,e.return,l)}}}function Ed(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{kn(t)}catch(l){Ct(e,e.return,l)}}function ky(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new bd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new bd),e;default:throw Error(c(435,t.tag))}}function Ju(t,e){var l=ky(t);e.forEach(function(n){if(!l.has(n)){l.add(n);var u=np.bind(null,t,n);n.then(u,u)}})}function fe(t,e){var l=e.deletions;if(l!==null)for(var n=0;n<l.length;n++){var u=l[n],r=t,o=e,v=o;t:for(;v!==null;){switch(v.tag){case 27:if(Ml(v.type)){Qt=v.stateNode,oe=!1;break t}break;case 5:Qt=v.stateNode,oe=!1;break t;case 3:case 4:Qt=v.stateNode.containerInfo,oe=!0;break t}v=v.return}if(Qt===null)throw Error(c(160));Od(r,o,u),Qt=null,oe=!1,r=u.alternate,r!==null&&(r.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)jd(e,t),e=e.sibling}var we=null;function jd(t,e){var l=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:fe(e,t),de(t),n&4&&(_l(3,t,t.return),Ca(3,t),_l(5,t,t.return));break;case 1:fe(e,t),de(t),n&512&&(Jt||l===null||Xe(l,l.return)),n&64&&al&&(t=t.updateQueue,t!==null&&(n=t.callbacks,n!==null&&(l=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=l===null?n:l.concat(n))));break;case 26:var u=we;if(fe(e,t),de(t),n&512&&(Jt||l===null||Xe(l,l.return)),n&4){var r=l!==null?l.memoizedState:null;if(n=t.memoizedState,l===null)if(n===null)if(t.stateNode===null){t:{n=t.type,l=t.memoizedProps,u=u.ownerDocument||u;e:switch(n){case"title":r=u.getElementsByTagName("title")[0],(!r||r[la]||r[Pt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=u.createElement(n),u.head.insertBefore(r,u.querySelector("head > title"))),ee(r,n,l),r[Pt]=t,Ft(r),n=r;break t;case"link":var o=jh("link","href",u).get(n+(l.href||""));if(o){for(var v=0;v<o.length;v++)if(r=o[v],r.getAttribute("href")===(l.href==null||l.href===""?null:l.href)&&r.getAttribute("rel")===(l.rel==null?null:l.rel)&&r.getAttribute("title")===(l.title==null?null:l.title)&&r.getAttribute("crossorigin")===(l.crossOrigin==null?null:l.crossOrigin)){o.splice(v,1);break e}}r=u.createElement(n),ee(r,n,l),u.head.appendChild(r);break;case"meta":if(o=jh("meta","content",u).get(n+(l.content||""))){for(v=0;v<o.length;v++)if(r=o[v],r.getAttribute("content")===(l.content==null?null:""+l.content)&&r.getAttribute("name")===(l.name==null?null:l.name)&&r.getAttribute("property")===(l.property==null?null:l.property)&&r.getAttribute("http-equiv")===(l.httpEquiv==null?null:l.httpEquiv)&&r.getAttribute("charset")===(l.charSet==null?null:l.charSet)){o.splice(v,1);break e}}r=u.createElement(n),ee(r,n,l),u.head.appendChild(r);break;default:throw Error(c(468,n))}r[Pt]=t,Ft(r),n=r}t.stateNode=n}else Th(u,t.type,t.stateNode);else t.stateNode=Eh(u,n,t.memoizedProps);else r!==n?(r===null?l.stateNode!==null&&(l=l.stateNode,l.parentNode.removeChild(l)):r.count--,n===null?Th(u,t.type,t.stateNode):Eh(u,n,t.memoizedProps)):n===null&&t.stateNode!==null&&vs(t,t.memoizedProps,l.memoizedProps)}break;case 27:fe(e,t),de(t),n&512&&(Jt||l===null||Xe(l,l.return)),l!==null&&n&4&&vs(t,t.memoizedProps,l.memoizedProps);break;case 5:if(fe(e,t),de(t),n&512&&(Jt||l===null||Xe(l,l.return)),t.flags&32){u=t.stateNode;try{pn(u,"")}catch(k){Ct(t,t.return,k)}}n&4&&t.stateNode!=null&&(u=t.memoizedProps,vs(t,u,l!==null?l.memoizedProps:u)),n&1024&&(gs=!0);break;case 6:if(fe(e,t),de(t),n&4){if(t.stateNode===null)throw Error(c(162));n=t.memoizedProps,l=t.stateNode;try{l.nodeValue=n}catch(k){Ct(t,t.return,k)}}break;case 3:if(ci=null,u=we,we=ri(e.containerInfo),fe(e,t),we=u,de(t),n&4&&l!==null&&l.memoizedState.isDehydrated)try{kn(e.containerInfo)}catch(k){Ct(t,t.return,k)}gs&&(gs=!1,Td(t));break;case 4:n=we,we=ri(t.stateNode.containerInfo),fe(e,t),de(t),we=n;break;case 12:fe(e,t),de(t);break;case 31:fe(e,t),de(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Ju(t,n)));break;case 13:fe(e,t),de(t),t.child.flags&8192&&t.memoizedState!==null!=(l!==null&&l.memoizedState!==null)&&(Fu=ve()),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Ju(t,n)));break;case 22:u=t.memoizedState!==null;var g=l!==null&&l.memoizedState!==null,j=al,N=Jt;if(al=j||u,Jt=N||g,fe(e,t),Jt=N,al=j,de(t),n&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(l===null||g||al||Jt||ln(t)),l=null,e=t;;){if(e.tag===5||e.tag===26){if(l===null){g=l=e;try{if(r=g.stateNode,u)o=r.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{v=g.stateNode;var Q=g.memoizedProps.style,C=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;v.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(k){Ct(g,g.return,k)}}}else if(e.tag===6){if(l===null){g=e;try{g.stateNode.nodeValue=u?"":g.memoizedProps}catch(k){Ct(g,g.return,k)}}}else if(e.tag===18){if(l===null){g=e;try{var z=g.stateNode;u?vh(z,!0):vh(g.stateNode,!1)}catch(k){Ct(g,g.return,k)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;l===e&&(l=null),e=e.return}l===e&&(l=null),e.sibling.return=e.return,e=e.sibling}n&4&&(n=t.updateQueue,n!==null&&(l=n.retryQueue,l!==null&&(n.retryQueue=null,Ju(t,l))));break;case 19:fe(e,t),de(t),n&4&&(n=t.updateQueue,n!==null&&(t.updateQueue=null,Ju(t,n)));break;case 30:break;case 21:break;default:fe(e,t),de(t)}}function de(t){var e=t.flags;if(e&2){try{for(var l,n=t.return;n!==null;){if(pd(n)){l=n;break}n=n.return}if(l==null)throw Error(c(160));switch(l.tag){case 27:var u=l.stateNode,r=ys(t);Vu(t,r,u);break;case 5:var o=l.stateNode;l.flags&32&&(pn(o,""),l.flags&=-33);var v=ys(t);Vu(t,v,o);break;case 3:case 4:var g=l.stateNode.containerInfo,j=ys(t);ps(t,j,g);break;default:throw Error(c(161))}}catch(N){Ct(t,t.return,N)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Td(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Td(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function il(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Sd(t,e.alternate,e),e=e.sibling}function ln(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:_l(4,e,e.return),ln(e);break;case 1:Xe(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount=="function"&&vd(e,e.return,l),ln(e);break;case 27:Ha(e.stateNode);case 26:case 5:Xe(e,e.return),ln(e);break;case 22:e.memoizedState===null&&ln(e);break;case 30:ln(e);break;default:ln(e)}t=t.sibling}}function rl(t,e,l){for(l=l&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var n=e.alternate,u=t,r=e,o=r.flags;switch(r.tag){case 0:case 11:case 15:rl(u,r,l),Ca(4,r);break;case 1:if(rl(u,r,l),n=r,u=n.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(j){Ct(n,n.return,j)}if(n=r,u=n.updateQueue,u!==null){var v=n.stateNode;try{var g=u.shared.hiddenCallbacks;if(g!==null)for(u.shared.hiddenCallbacks=null,u=0;u<g.length;u++)lf(g[u],v)}catch(j){Ct(n,n.return,j)}}l&&o&64&&md(r),za(r,r.return);break;case 27:gd(r);case 26:case 5:rl(u,r,l),l&&n===null&&o&4&&yd(r),za(r,r.return);break;case 12:rl(u,r,l);break;case 31:rl(u,r,l),l&&o&4&&_d(u,r);break;case 13:rl(u,r,l),l&&o&4&&Ed(u,r);break;case 22:r.memoizedState===null&&rl(u,r,l),za(r,r.return);break;case 30:break;default:rl(u,r,l)}e=e.sibling}}function bs(t,e){var l=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==l&&(t!=null&&t.refCount++,l!=null&&va(l))}function Ss(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&va(t))}function He(t,e,l,n){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Ad(t,e,l,n),e=e.sibling}function Ad(t,e,l,n){var u=e.flags;switch(e.tag){case 0:case 11:case 15:He(t,e,l,n),u&2048&&Ca(9,e);break;case 1:He(t,e,l,n);break;case 3:He(t,e,l,n),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&va(t)));break;case 12:if(u&2048){He(t,e,l,n),t=e.stateNode;try{var r=e.memoizedProps,o=r.id,v=r.onPostCommit;typeof v=="function"&&v(o,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(g){Ct(e,e.return,g)}}else He(t,e,l,n);break;case 31:He(t,e,l,n);break;case 13:He(t,e,l,n);break;case 23:break;case 22:r=e.stateNode,o=e.alternate,e.memoizedState!==null?r._visibility&2?He(t,e,l,n):Ma(t,e):r._visibility&2?He(t,e,l,n):(r._visibility|=2,wn(t,e,l,n,(e.subtreeFlags&10256)!==0||!1)),u&2048&&bs(o,e);break;case 24:He(t,e,l,n),u&2048&&Ss(e.alternate,e);break;default:He(t,e,l,n)}}function wn(t,e,l,n,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,o=e,v=l,g=n,j=o.flags;switch(o.tag){case 0:case 11:case 15:wn(r,o,v,g,u),Ca(8,o);break;case 23:break;case 22:var N=o.stateNode;o.memoizedState!==null?N._visibility&2?wn(r,o,v,g,u):Ma(r,o):(N._visibility|=2,wn(r,o,v,g,u)),u&&j&2048&&bs(o.alternate,o);break;case 24:wn(r,o,v,g,u),u&&j&2048&&Ss(o.alternate,o);break;default:wn(r,o,v,g,u)}e=e.sibling}}function Ma(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var l=t,n=e,u=n.flags;switch(n.tag){case 22:Ma(l,n),u&2048&&bs(n.alternate,n);break;case 24:Ma(l,n),u&2048&&Ss(n.alternate,n);break;default:Ma(l,n)}e=e.sibling}}var Da=8192;function Hn(t,e,l){if(t.subtreeFlags&Da)for(t=t.child;t!==null;)Cd(t,e,l),t=t.sibling}function Cd(t,e,l){switch(t.tag){case 26:Hn(t,e,l),t.flags&Da&&t.memoizedState!==null&&Up(l,we,t.memoizedState,t.memoizedProps);break;case 5:Hn(t,e,l);break;case 3:case 4:var n=we;we=ri(t.stateNode.containerInfo),Hn(t,e,l),we=n;break;case 22:t.memoizedState===null&&(n=t.alternate,n!==null&&n.memoizedState!==null?(n=Da,Da=16777216,Hn(t,e,l),Da=n):Hn(t,e,l));break;default:Hn(t,e,l)}}function zd(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Na(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];$t=n,Dd(n,t)}zd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Md(t),t=t.sibling}function Md(t){switch(t.tag){case 0:case 11:case 15:Na(t),t.flags&2048&&_l(9,t,t.return);break;case 3:Na(t);break;case 12:Na(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,ku(t)):Na(t);break;default:Na(t)}}function ku(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var l=0;l<e.length;l++){var n=e[l];$t=n,Dd(n,t)}zd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:_l(8,e,e.return),ku(e);break;case 22:l=e.stateNode,l._visibility&2&&(l._visibility&=-3,ku(e));break;default:ku(e)}t=t.sibling}}function Dd(t,e){for(;$t!==null;){var l=$t;switch(l.tag){case 0:case 11:case 15:_l(8,l,e);break;case 23:case 22:if(l.memoizedState!==null&&l.memoizedState.cachePool!==null){var n=l.memoizedState.cachePool.pool;n!=null&&n.refCount++}break;case 24:va(l.memoizedState.cache)}if(n=l.child,n!==null)n.return=l,$t=n;else t:for(l=t;$t!==null;){n=$t;var u=n.sibling,r=n.return;if(xd(n),n===l){$t=null;break t}if(u!==null){u.return=r,$t=u;break t}$t=r}}}var Fy={getCacheForType:function(t){var e=It(Kt),l=e.data.get(t);return l===void 0&&(l=t(),e.data.set(t,l)),l},cacheSignal:function(){return It(Kt).controller.signal}},$y=typeof WeakMap=="function"?WeakMap:Map,Tt=0,Nt=null,yt=null,gt=0,At=0,Oe=null,El=!1,Bn=!1,xs=!1,sl=0,Ht=0,jl=0,nn=0,Os=0,_e=0,Ln=0,Ra=null,he=null,_s=!1,Fu=0,Nd=0,$u=1/0,Pu=null,Tl=null,kt=0,Al=null,Yn=null,cl=0,Es=0,js=null,Rd=null,Ua=0,Ts=null;function Ee(){return(Tt&2)!==0&&gt!==0?gt&-gt:T.T!==null?Ns():Jc()}function Ud(){if(_e===0)if((gt&536870912)===0||St){var t=uu;uu<<=1,(uu&3932160)===0&&(uu=262144),_e=t}else _e=536870912;return t=Se.current,t!==null&&(t.flags|=32),_e}function me(t,e,l){(t===Nt&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(Gn(t,0),Cl(t,gt,_e,!1)),ea(t,l),((Tt&2)===0||t!==Nt)&&(t===Nt&&((Tt&2)===0&&(nn|=l),Ht===4&&Cl(t,gt,_e,!1)),Ke(t))}function qd(t,e,l){if((Tt&6)!==0)throw Error(c(327));var n=!l&&(e&127)===0&&(e&t.expiredLanes)===0||ta(t,e),u=n?Iy(t,e):Cs(t,e,!0),r=n;do{if(u===0){Bn&&!n&&Cl(t,e,0,!1);break}else{if(l=t.current.alternate,r&&!Py(l)){u=Cs(t,e,!1),r=!1;continue}if(u===2){if(r=e,t.errorRecoveryDisabledLanes&r)var o=0;else o=t.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){e=o;t:{var v=t;u=Ra;var g=v.current.memoizedState.isDehydrated;if(g&&(Gn(v,o).flags|=256),o=Cs(v,o,!1),o!==2){if(xs&&!g){v.errorRecoveryDisabledLanes|=r,nn|=r,u=4;break t}r=he,he=u,r!==null&&(he===null?he=r:he.push.apply(he,r))}u=o}if(r=!1,u!==2)continue}}if(u===1){Gn(t,0),Cl(t,e,0,!0);break}t:{switch(n=t,r=u,r){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:Cl(n,e,_e,!El);break t;case 2:he=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(u=Fu+300-ve(),10<u)){if(Cl(n,e,_e,!El),ru(n,0,!0)!==0)break t;cl=e,n.timeoutHandle=dh(Qd.bind(null,n,l,he,Pu,_s,e,_e,nn,Ln,El,r,"Throttled",-0,0),u);break t}Qd(n,l,he,Pu,_s,e,_e,nn,Ln,El,r,null,-0,0)}}break}while(!0);Ke(t)}function Qd(t,e,l,n,u,r,o,v,g,j,N,Q,C,z){if(t.timeoutHandle=-1,Q=e.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ke},Cd(e,r,Q);var k=(r&62914560)===r?Fu-ve():(r&4194048)===r?Nd-ve():0;if(k=qp(Q,k),k!==null){cl=r,t.cancelPendingCommit=k(Kd.bind(null,t,e,r,l,n,u,o,v,g,N,Q,null,C,z)),Cl(t,r,o,!j);return}}Kd(t,e,r,l,n,u,o,v,g)}function Py(t){for(var e=t;;){var l=e.tag;if((l===0||l===11||l===15)&&e.flags&16384&&(l=e.updateQueue,l!==null&&(l=l.stores,l!==null)))for(var n=0;n<l.length;n++){var u=l[n],r=u.getSnapshot;u=u.value;try{if(!ge(r(),u))return!1}catch{return!1}}if(l=e.child,e.subtreeFlags&16384&&l!==null)l.return=e,e=l;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function Cl(t,e,l,n){e&=~Os,e&=~nn,t.suspendedLanes|=e,t.pingedLanes&=~e,n&&(t.warmLanes|=e),n=t.expirationTimes;for(var u=e;0<u;){var r=31-pe(u),o=1<<r;n[r]=-1,u&=~o}l!==0&&Kc(t,l,e)}function Wu(){return(Tt&6)===0?(qa(0),!1):!0}function As(){if(yt!==null){if(At===0)var t=yt.return;else t=yt,We=kl=null,Xr(t),Nn=null,pa=0,t=yt;for(;t!==null;)hd(t.alternate,t),t=t.return;yt=null}}function Gn(t,e){var l=t.timeoutHandle;l!==-1&&(t.timeoutHandle=-1,pp(l)),l=t.cancelPendingCommit,l!==null&&(t.cancelPendingCommit=null,l()),cl=0,As(),Nt=t,yt=l=$e(t.current,null),gt=e,At=0,Oe=null,El=!1,Bn=ta(t,e),xs=!1,Ln=_e=Os=nn=jl=Ht=0,he=Ra=null,_s=!1,(e&8)!==0&&(e|=e&32);var n=t.entangledLanes;if(n!==0)for(t=t.entanglements,n&=e;0<n;){var u=31-pe(n),r=1<<u;e|=t[u],n&=~r}return sl=e,bu(),l}function wd(t,e){ot=null,T.H=ja,e===Dn||e===Au?(e=Wo(),At=3):e===Dr?(e=Wo(),At=4):At=e===us?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Oe=e,yt===null&&(Ht=1,Yu(t,ze(e,t.current)))}function Hd(){var t=Se.current;return t===null?!0:(gt&4194048)===gt?Re===null:(gt&62914560)===gt||(gt&536870912)!==0?t===Re:!1}function Bd(){var t=T.H;return T.H=ja,t===null?ja:t}function Ld(){var t=T.A;return T.A=Fy,t}function Iu(){Ht=4,El||(gt&4194048)!==gt&&Se.current!==null||(Bn=!0),(jl&134217727)===0&&(nn&134217727)===0||Nt===null||Cl(Nt,gt,_e,!1)}function Cs(t,e,l){var n=Tt;Tt|=2;var u=Bd(),r=Ld();(Nt!==t||gt!==e)&&(Pu=null,Gn(t,e)),e=!1;var o=Ht;t:do try{if(At!==0&&yt!==null){var v=yt,g=Oe;switch(At){case 8:As(),o=6;break t;case 3:case 2:case 9:case 6:Se.current===null&&(e=!0);var j=At;if(At=0,Oe=null,Xn(t,v,g,j),l&&Bn){o=0;break t}break;default:j=At,At=0,Oe=null,Xn(t,v,g,j)}}Wy(),o=Ht;break}catch(N){wd(t,N)}while(!0);return e&&t.shellSuspendCounter++,We=kl=null,Tt=n,T.H=u,T.A=r,yt===null&&(Nt=null,gt=0,bu()),o}function Wy(){for(;yt!==null;)Yd(yt)}function Iy(t,e){var l=Tt;Tt|=2;var n=Bd(),u=Ld();Nt!==t||gt!==e?(Pu=null,$u=ve()+500,Gn(t,e)):Bn=ta(t,e);t:do try{if(At!==0&&yt!==null){e=yt;var r=Oe;e:switch(At){case 1:At=0,Oe=null,Xn(t,e,r,1);break;case 2:case 9:if($o(r)){At=0,Oe=null,Gd(e);break}e=function(){At!==2&&At!==9||Nt!==t||(At=7),Ke(t)},r.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:$o(r)?(At=0,Oe=null,Gd(e)):(At=0,Oe=null,Xn(t,e,r,7));break;case 5:var o=null;switch(yt.tag){case 26:o=yt.memoizedState;case 5:case 27:var v=yt;if(o?Ah(o):v.stateNode.complete){At=0,Oe=null;var g=v.sibling;if(g!==null)yt=g;else{var j=v.return;j!==null?(yt=j,ti(j)):yt=null}break e}}At=0,Oe=null,Xn(t,e,r,5);break;case 6:At=0,Oe=null,Xn(t,e,r,6);break;case 8:As(),Ht=6;break t;default:throw Error(c(462))}}tp();break}catch(N){wd(t,N)}while(!0);return We=kl=null,T.H=n,T.A=u,Tt=l,yt!==null?0:(Nt=null,gt=0,bu(),Ht)}function tp(){for(;yt!==null&&!_v();)Yd(yt)}function Yd(t){var e=fd(t.alternate,t,sl);t.memoizedProps=t.pendingProps,e===null?ti(t):yt=e}function Gd(t){var e=t,l=e.alternate;switch(e.tag){case 15:case 0:e=ud(l,e,e.pendingProps,e.type,void 0,gt);break;case 11:e=ud(l,e,e.pendingProps,e.type.render,e.ref,gt);break;case 5:Xr(e);default:hd(l,e),e=yt=Bo(e,sl),e=fd(l,e,sl)}t.memoizedProps=t.pendingProps,e===null?ti(t):yt=e}function Xn(t,e,l,n){We=kl=null,Xr(e),Nn=null,pa=0;var u=e.return;try{if(Gy(t,u,e,l,gt)){Ht=1,Yu(t,ze(l,t.current)),yt=null;return}}catch(r){if(u!==null)throw yt=u,r;Ht=1,Yu(t,ze(l,t.current)),yt=null;return}e.flags&32768?(St||n===1?t=!0:Bn||(gt&536870912)!==0?t=!1:(El=t=!0,(n===2||n===9||n===3||n===6)&&(n=Se.current,n!==null&&n.tag===13&&(n.flags|=16384))),Xd(e,t)):ti(e)}function ti(t){var e=t;do{if((e.flags&32768)!==0){Xd(e,El);return}t=e.return;var l=Zy(e.alternate,e,sl);if(l!==null){yt=l;return}if(e=e.sibling,e!==null){yt=e;return}yt=e=t}while(e!==null);Ht===0&&(Ht=5)}function Xd(t,e){do{var l=Vy(t.alternate,t);if(l!==null){l.flags&=32767,yt=l;return}if(l=t.return,l!==null&&(l.flags|=32768,l.subtreeFlags=0,l.deletions=null),!e&&(t=t.sibling,t!==null)){yt=t;return}yt=t=l}while(t!==null);Ht=6,yt=null}function Kd(t,e,l,n,u,r,o,v,g){t.cancelPendingCommit=null;do ei();while(kt!==0);if((Tt&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(r=e.lanes|e.childLanes,r|=yr,Rv(t,l,r,o,v,g),t===Nt&&(yt=Nt=null,gt=0),Yn=e,Al=t,cl=l,Es=r,js=u,Rd=n,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,ap(nu,function(){return Fd(),null})):(t.callbackNode=null,t.callbackPriority=0),n=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||n){n=T.T,T.T=null,u=w.p,w.p=2,o=Tt,Tt|=4;try{Jy(t,e,l)}finally{Tt=o,w.p=u,T.T=n}}kt=1,Zd(),Vd(),Jd()}}function Zd(){if(kt===1){kt=0;var t=Al,e=Yn,l=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||l){l=T.T,T.T=null;var n=w.p;w.p=2;var u=Tt;Tt|=4;try{jd(e,t);var r=Ls,o=Mo(t.containerInfo),v=r.focusedElem,g=r.selectionRange;if(o!==v&&v&&v.ownerDocument&&zo(v.ownerDocument.documentElement,v)){if(g!==null&&fr(v)){var j=g.start,N=g.end;if(N===void 0&&(N=j),"selectionStart"in v)v.selectionStart=j,v.selectionEnd=Math.min(N,v.value.length);else{var Q=v.ownerDocument||document,C=Q&&Q.defaultView||window;if(C.getSelection){var z=C.getSelection(),k=v.textContent.length,ut=Math.min(g.start,k),Dt=g.end===void 0?ut:Math.min(g.end,k);!z.extend&&ut>Dt&&(o=Dt,Dt=ut,ut=o);var O=Co(v,ut),x=Co(v,Dt);if(O&&x&&(z.rangeCount!==1||z.anchorNode!==O.node||z.anchorOffset!==O.offset||z.focusNode!==x.node||z.focusOffset!==x.offset)){var E=Q.createRange();E.setStart(O.node,O.offset),z.removeAllRanges(),ut>Dt?(z.addRange(E),z.extend(x.node,x.offset)):(E.setEnd(x.node,x.offset),z.addRange(E))}}}}for(Q=[],z=v;z=z.parentNode;)z.nodeType===1&&Q.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof v.focus=="function"&&v.focus(),v=0;v<Q.length;v++){var U=Q[v];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}hi=!!Bs,Ls=Bs=null}finally{Tt=u,w.p=n,T.T=l}}t.current=e,kt=2}}function Vd(){if(kt===2){kt=0;var t=Al,e=Yn,l=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||l){l=T.T,T.T=null;var n=w.p;w.p=2;var u=Tt;Tt|=4;try{Sd(t,e.alternate,e)}finally{Tt=u,w.p=n,T.T=l}}kt=3}}function Jd(){if(kt===4||kt===3){kt=0,Ev();var t=Al,e=Yn,l=cl,n=Rd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?kt=5:(kt=0,Yn=Al=null,kd(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(Tl=null),Vi(l),e=e.stateNode,ye&&typeof ye.onCommitFiberRoot=="function")try{ye.onCommitFiberRoot(In,e,void 0,(e.current.flags&128)===128)}catch{}if(n!==null){e=T.T,u=w.p,w.p=2,T.T=null;try{for(var r=t.onRecoverableError,o=0;o<n.length;o++){var v=n[o];r(v.value,{componentStack:v.stack})}}finally{T.T=e,w.p=u}}(cl&3)!==0&&ei(),Ke(t),u=t.pendingLanes,(l&261930)!==0&&(u&42)!==0?t===Ts?Ua++:(Ua=0,Ts=t):Ua=0,qa(0)}}function kd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,va(e)))}function ei(){return Zd(),Vd(),Jd(),Fd()}function Fd(){if(kt!==5)return!1;var t=Al,e=Es;Es=0;var l=Vi(cl),n=T.T,u=w.p;try{w.p=32>l?32:l,T.T=null,l=js,js=null;var r=Al,o=cl;if(kt=0,Yn=Al=null,cl=0,(Tt&6)!==0)throw Error(c(331));var v=Tt;if(Tt|=4,Md(r.current),Ad(r,r.current,o,l),Tt=v,qa(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot(In,r)}catch{}return!0}finally{w.p=u,T.T=n,kd(t,e)}}function $d(t,e,l){e=ze(l,e),e=as(t.stateNode,e,2),t=Sl(t,e,2),t!==null&&(ea(t,2),Ke(t))}function Ct(t,e,l){if(t.tag===3)$d(t,t,l);else for(;e!==null;){if(e.tag===3){$d(e,t,l);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Tl===null||!Tl.has(n))){t=ze(l,t),l=Pf(2),n=Sl(e,l,2),n!==null&&(Wf(l,n,e,t),ea(n,2),Ke(n));break}}e=e.return}}function zs(t,e,l){var n=t.pingCache;if(n===null){n=t.pingCache=new $y;var u=new Set;n.set(e,u)}else u=n.get(e),u===void 0&&(u=new Set,n.set(e,u));u.has(l)||(xs=!0,u.add(l),t=ep.bind(null,t,e,l),e.then(t,t))}function ep(t,e,l){var n=t.pingCache;n!==null&&n.delete(e),t.pingedLanes|=t.suspendedLanes&l,t.warmLanes&=~l,Nt===t&&(gt&l)===l&&(Ht===4||Ht===3&&(gt&62914560)===gt&&300>ve()-Fu?(Tt&2)===0&&Gn(t,0):Os|=l,Ln===gt&&(Ln=0)),Ke(t)}function Pd(t,e){e===0&&(e=Xc()),t=Zl(t,e),t!==null&&(ea(t,e),Ke(t))}function lp(t){var e=t.memoizedState,l=0;e!==null&&(l=e.retryLane),Pd(t,l)}function np(t,e){var l=0;switch(t.tag){case 31:case 13:var n=t.stateNode,u=t.memoizedState;u!==null&&(l=u.retryLane);break;case 19:n=t.stateNode;break;case 22:n=t.stateNode._retryCache;break;default:throw Error(c(314))}n!==null&&n.delete(e),Pd(t,l)}function ap(t,e){return Gi(t,e)}var li=null,Kn=null,Ms=!1,ni=!1,Ds=!1,zl=0;function Ke(t){t!==Kn&&t.next===null&&(Kn===null?li=Kn=t:Kn=Kn.next=t),ni=!0,Ms||(Ms=!0,ip())}function qa(t,e){if(!Ds&&ni){Ds=!0;do for(var l=!1,n=li;n!==null;){if(t!==0){var u=n.pendingLanes;if(u===0)var r=0;else{var o=n.suspendedLanes,v=n.pingedLanes;r=(1<<31-pe(42|t)+1)-1,r&=u&~(o&~v),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(l=!0,eh(n,r))}else r=gt,r=ru(n,n===Nt?r:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),(r&3)===0||ta(n,r)||(l=!0,eh(n,r));n=n.next}while(l);Ds=!1}}function up(){Wd()}function Wd(){ni=Ms=!1;var t=0;zl!==0&&yp()&&(t=zl);for(var e=ve(),l=null,n=li;n!==null;){var u=n.next,r=Id(n,e);r===0?(n.next=null,l===null?li=u:l.next=u,u===null&&(Kn=l)):(l=n,(t!==0||(r&3)!==0)&&(ni=!0)),n=u}kt!==0&&kt!==5||qa(t),zl!==0&&(zl=0)}function Id(t,e){for(var l=t.suspendedLanes,n=t.pingedLanes,u=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var o=31-pe(r),v=1<<o,g=u[o];g===-1?((v&l)===0||(v&n)!==0)&&(u[o]=Nv(v,e)):g<=e&&(t.expiredLanes|=v),r&=~v}if(e=Nt,l=gt,l=ru(t,t===e?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n=t.callbackNode,l===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return n!==null&&n!==null&&Xi(n),t.callbackNode=null,t.callbackPriority=0;if((l&3)===0||ta(t,l)){if(e=l&-l,e===t.callbackPriority)return e;switch(n!==null&&Xi(n),Vi(l)){case 2:case 8:l=Yc;break;case 32:l=nu;break;case 268435456:l=Gc;break;default:l=nu}return n=th.bind(null,t),l=Gi(l,n),t.callbackPriority=e,t.callbackNode=l,e}return n!==null&&n!==null&&Xi(n),t.callbackPriority=2,t.callbackNode=null,2}function th(t,e){if(kt!==0&&kt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var l=t.callbackNode;if(ei()&&t.callbackNode!==l)return null;var n=gt;return n=ru(t,t===Nt?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),n===0?null:(qd(t,n,e),Id(t,ve()),t.callbackNode!=null&&t.callbackNode===l?th.bind(null,t):null)}function eh(t,e){if(ei())return null;qd(t,e,!0)}function ip(){gp(function(){(Tt&6)!==0?Gi(Lc,up):Wd()})}function Ns(){if(zl===0){var t=zn;t===0&&(t=au,au<<=1,(au&261888)===0&&(au=256)),zl=t}return zl}function lh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:fu(""+t)}function nh(t,e){var l=e.ownerDocument.createElement("input");return l.name=e.name,l.value=e.value,t.id&&l.setAttribute("form",t.id),e.parentNode.insertBefore(l,e),t=new FormData(t),l.parentNode.removeChild(l),t}function rp(t,e,l,n,u){if(e==="submit"&&l&&l.stateNode===u){var r=lh((u[se]||null).action),o=n.submitter;o&&(e=(e=o[se]||null)?lh(e.formAction):o.getAttribute("formAction"),e!==null&&(r=e,o=null));var v=new vu("action","action",null,n,u);t.push({event:v,listeners:[{instance:null,listener:function(){if(n.defaultPrevented){if(zl!==0){var g=o?nh(u,o):new FormData(u);Wr(l,{pending:!0,data:g,method:u.method,action:r},null,g)}}else typeof r=="function"&&(v.preventDefault(),g=o?nh(u,o):new FormData(u),Wr(l,{pending:!0,data:g,method:u.method,action:r},r,g))},currentTarget:u}]})}}for(var Rs=0;Rs<vr.length;Rs++){var Us=vr[Rs],sp=Us.toLowerCase(),cp=Us[0].toUpperCase()+Us.slice(1);Qe(sp,"on"+cp)}Qe(Ro,"onAnimationEnd"),Qe(Uo,"onAnimationIteration"),Qe(qo,"onAnimationStart"),Qe("dblclick","onDoubleClick"),Qe("focusin","onFocus"),Qe("focusout","onBlur"),Qe(jy,"onTransitionRun"),Qe(Ty,"onTransitionStart"),Qe(Ay,"onTransitionCancel"),Qe(Qo,"onTransitionEnd"),vn("onMouseEnter",["mouseout","mouseover"]),vn("onMouseLeave",["mouseout","mouseover"]),vn("onPointerEnter",["pointerout","pointerover"]),vn("onPointerLeave",["pointerout","pointerover"]),Yl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Yl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Yl("onBeforeInput",["compositionend","keypress","textInput","paste"]),Yl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Yl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Yl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qa="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(" "),op=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Qa));function ah(t,e){e=(e&4)!==0;for(var l=0;l<t.length;l++){var n=t[l],u=n.event;n=n.listeners;t:{var r=void 0;if(e)for(var o=n.length-1;0<=o;o--){var v=n[o],g=v.instance,j=v.currentTarget;if(v=v.listener,g!==r&&u.isPropagationStopped())break t;r=v,u.currentTarget=j;try{r(u)}catch(N){gu(N)}u.currentTarget=null,r=g}else for(o=0;o<n.length;o++){if(v=n[o],g=v.instance,j=v.currentTarget,v=v.listener,g!==r&&u.isPropagationStopped())break t;r=v,u.currentTarget=j;try{r(u)}catch(N){gu(N)}u.currentTarget=null,r=g}}}}function pt(t,e){var l=e[Ji];l===void 0&&(l=e[Ji]=new Set);var n=t+"__bubble";l.has(n)||(uh(e,t,2,!1),l.add(n))}function qs(t,e,l){var n=0;e&&(n|=4),uh(l,t,n,e)}var ai="_reactListening"+Math.random().toString(36).slice(2);function Qs(t){if(!t[ai]){t[ai]=!0,$c.forEach(function(l){l!=="selectionchange"&&(op.has(l)||qs(l,!1,t),qs(l,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ai]||(e[ai]=!0,qs("selectionchange",!1,e))}}function uh(t,e,l,n){switch(Uh(e)){case 2:var u=Hp;break;case 8:u=Bp;break;default:u=Ps}l=u.bind(null,e,l,t),u=void 0,!lr||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),n?u!==void 0?t.addEventListener(e,l,{capture:!0,passive:u}):t.addEventListener(e,l,!0):u!==void 0?t.addEventListener(e,l,{passive:u}):t.addEventListener(e,l,!1)}function ws(t,e,l,n,u){var r=n;if((e&1)===0&&(e&2)===0&&n!==null)t:for(;;){if(n===null)return;var o=n.tag;if(o===3||o===4){var v=n.stateNode.containerInfo;if(v===u)break;if(o===4)for(o=n.return;o!==null;){var g=o.tag;if((g===3||g===4)&&o.stateNode.containerInfo===u)return;o=o.return}for(;v!==null;){if(o=dn(v),o===null)return;if(g=o.tag,g===5||g===6||g===26||g===27){n=r=o;continue t}v=v.parentNode}}n=n.return}so(function(){var j=r,N=tr(l),Q=[];t:{var C=wo.get(t);if(C!==void 0){var z=vu,k=t;switch(t){case"keypress":if(hu(l)===0)break t;case"keydown":case"keyup":z=ny;break;case"focusin":k="focus",z=ir;break;case"focusout":k="blur",z=ir;break;case"beforeblur":case"afterblur":z=ir;break;case"click":if(l.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=fo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=Zv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=iy;break;case Ro:case Uo:case qo:z=kv;break;case Qo:z=sy;break;case"scroll":case"scrollend":z=Xv;break;case"wheel":z=oy;break;case"copy":case"cut":case"paste":z=$v;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=mo;break;case"toggle":case"beforetoggle":z=dy}var ut=(e&4)!==0,Dt=!ut&&(t==="scroll"||t==="scrollend"),O=ut?C!==null?C+"Capture":null:C;ut=[];for(var x=j,E;x!==null;){var U=x;if(E=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||E===null||O===null||(U=aa(x,O),U!=null&&ut.push(wa(x,U,E))),Dt)break;x=x.return}0<ut.length&&(C=new z(C,k,null,l,N),Q.push({event:C,listeners:ut}))}}if((e&7)===0){t:{if(C=t==="mouseover"||t==="pointerover",z=t==="mouseout"||t==="pointerout",C&&l!==Ii&&(k=l.relatedTarget||l.fromElement)&&(dn(k)||k[fn]))break t;if((z||C)&&(C=N.window===N?N:(C=N.ownerDocument)?C.defaultView||C.parentWindow:window,z?(k=l.relatedTarget||l.toElement,z=j,k=k?dn(k):null,k!==null&&(Dt=d(k),ut=k.tag,k!==Dt||ut!==5&&ut!==27&&ut!==6)&&(k=null)):(z=null,k=j),z!==k)){if(ut=fo,U="onMouseLeave",O="onMouseEnter",x="mouse",(t==="pointerout"||t==="pointerover")&&(ut=mo,U="onPointerLeave",O="onPointerEnter",x="pointer"),Dt=z==null?C:na(z),E=k==null?C:na(k),C=new ut(U,x+"leave",z,l,N),C.target=Dt,C.relatedTarget=E,U=null,dn(N)===j&&(ut=new ut(O,x+"enter",k,l,N),ut.target=E,ut.relatedTarget=Dt,U=ut),Dt=U,z&&k)e:{for(ut=fp,O=z,x=k,E=0,U=O;U;U=ut(U))E++;U=0;for(var at=x;at;at=ut(at))U++;for(;0<E-U;)O=ut(O),E--;for(;0<U-E;)x=ut(x),U--;for(;E--;){if(O===x||x!==null&&O===x.alternate){ut=O;break e}O=ut(O),x=ut(x)}ut=null}else ut=null;z!==null&&ih(Q,C,z,ut,!1),k!==null&&Dt!==null&&ih(Q,Dt,k,ut,!0)}}t:{if(C=j?na(j):window,z=C.nodeName&&C.nodeName.toLowerCase(),z==="select"||z==="input"&&C.type==="file")var Ot=Oo;else if(So(C))if(_o)Ot=Oy;else{Ot=Sy;var tt=by}else z=C.nodeName,!z||z.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?j&&Wi(j.elementType)&&(Ot=Oo):Ot=xy;if(Ot&&(Ot=Ot(t,j))){xo(Q,Ot,l,N);break t}tt&&tt(t,C,j),t==="focusout"&&j&&C.type==="number"&&j.memoizedProps.value!=null&&Pi(C,"number",C.value)}switch(tt=j?na(j):window,t){case"focusin":(So(tt)||tt.contentEditable==="true")&&(xn=tt,dr=j,da=null);break;case"focusout":da=dr=xn=null;break;case"mousedown":hr=!0;break;case"contextmenu":case"mouseup":case"dragend":hr=!1,Do(Q,l,N);break;case"selectionchange":if(Ey)break;case"keydown":case"keyup":Do(Q,l,N)}var dt;if(sr)t:{switch(t){case"compositionstart":var bt="onCompositionStart";break t;case"compositionend":bt="onCompositionEnd";break t;case"compositionupdate":bt="onCompositionUpdate";break t}bt=void 0}else Sn?go(t,l)&&(bt="onCompositionEnd"):t==="keydown"&&l.keyCode===229&&(bt="onCompositionStart");bt&&(vo&&l.locale!=="ko"&&(Sn||bt!=="onCompositionStart"?bt==="onCompositionEnd"&&Sn&&(dt=co()):(hl=N,nr="value"in hl?hl.value:hl.textContent,Sn=!0)),tt=ui(j,bt),0<tt.length&&(bt=new ho(bt,t,null,l,N),Q.push({event:bt,listeners:tt}),dt?bt.data=dt:(dt=bo(l),dt!==null&&(bt.data=dt)))),(dt=my?vy(t,l):yy(t,l))&&(bt=ui(j,"onBeforeInput"),0<bt.length&&(tt=new ho("onBeforeInput","beforeinput",null,l,N),Q.push({event:tt,listeners:bt}),tt.data=dt)),rp(Q,t,j,l,N)}ah(Q,e)})}function wa(t,e,l){return{instance:t,listener:e,currentTarget:l}}function ui(t,e){for(var l=e+"Capture",n=[];t!==null;){var u=t,r=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||r===null||(u=aa(t,l),u!=null&&n.unshift(wa(t,u,r)),u=aa(t,e),u!=null&&n.push(wa(t,u,r))),t.tag===3)return n;t=t.return}return[]}function fp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function ih(t,e,l,n,u){for(var r=e._reactName,o=[];l!==null&&l!==n;){var v=l,g=v.alternate,j=v.stateNode;if(v=v.tag,g!==null&&g===n)break;v!==5&&v!==26&&v!==27||j===null||(g=j,u?(j=aa(l,r),j!=null&&o.unshift(wa(l,j,g))):u||(j=aa(l,r),j!=null&&o.push(wa(l,j,g)))),l=l.return}o.length!==0&&t.push({event:e,listeners:o})}var dp=/\r\n?/g,hp=/\u0000|\uFFFD/g;function rh(t){return(typeof t=="string"?t:""+t).replace(dp,`
`).replace(hp,"")}function sh(t,e){return e=rh(e),rh(t)===e}function Mt(t,e,l,n,u,r){switch(l){case"children":typeof n=="string"?e==="body"||e==="textarea"&&n===""||pn(t,n):(typeof n=="number"||typeof n=="bigint")&&e!=="body"&&pn(t,""+n);break;case"className":cu(t,"class",n);break;case"tabIndex":cu(t,"tabindex",n);break;case"dir":case"role":case"viewBox":case"width":case"height":cu(t,l,n);break;case"style":io(t,n,r);break;case"data":if(e!=="object"){cu(t,"data",n);break}case"src":case"href":if(n===""&&(e!=="a"||l!=="href")){t.removeAttribute(l);break}if(n==null||typeof n=="function"||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=fu(""+n),t.setAttribute(l,n);break;case"action":case"formAction":if(typeof n=="function"){t.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 r=="function"&&(l==="formAction"?(e!=="input"&&Mt(t,e,"name",u.name,u,null),Mt(t,e,"formEncType",u.formEncType,u,null),Mt(t,e,"formMethod",u.formMethod,u,null),Mt(t,e,"formTarget",u.formTarget,u,null)):(Mt(t,e,"encType",u.encType,u,null),Mt(t,e,"method",u.method,u,null),Mt(t,e,"target",u.target,u,null)));if(n==null||typeof n=="symbol"||typeof n=="boolean"){t.removeAttribute(l);break}n=fu(""+n),t.setAttribute(l,n);break;case"onClick":n!=null&&(t.onclick=ke);break;case"onScroll":n!=null&&pt("scroll",t);break;case"onScrollEnd":n!=null&&pt("scrollend",t);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(l=n.__html,l!=null){if(u.children!=null)throw Error(c(60));t.innerHTML=l}}break;case"multiple":t.multiple=n&&typeof n!="function"&&typeof n!="symbol";break;case"muted":t.muted=n&&typeof n!="function"&&typeof n!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(n==null||typeof n=="function"||typeof n=="boolean"||typeof n=="symbol"){t.removeAttribute("xlink:href");break}l=fu(""+n),t.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":n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""+n):t.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":n&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,""):t.removeAttribute(l);break;case"capture":case"download":n===!0?t.setAttribute(l,""):n!==!1&&n!=null&&typeof n!="function"&&typeof n!="symbol"?t.setAttribute(l,n):t.removeAttribute(l);break;case"cols":case"rows":case"size":case"span":n!=null&&typeof n!="function"&&typeof n!="symbol"&&!isNaN(n)&&1<=n?t.setAttribute(l,n):t.removeAttribute(l);break;case"rowSpan":case"start":n==null||typeof n=="function"||typeof n=="symbol"||isNaN(n)?t.removeAttribute(l):t.setAttribute(l,n);break;case"popover":pt("beforetoggle",t),pt("toggle",t),su(t,"popover",n);break;case"xlinkActuate":Je(t,"http://www.w3.org/1999/xlink","xlink:actuate",n);break;case"xlinkArcrole":Je(t,"http://www.w3.org/1999/xlink","xlink:arcrole",n);break;case"xlinkRole":Je(t,"http://www.w3.org/1999/xlink","xlink:role",n);break;case"xlinkShow":Je(t,"http://www.w3.org/1999/xlink","xlink:show",n);break;case"xlinkTitle":Je(t,"http://www.w3.org/1999/xlink","xlink:title",n);break;case"xlinkType":Je(t,"http://www.w3.org/1999/xlink","xlink:type",n);break;case"xmlBase":Je(t,"http://www.w3.org/XML/1998/namespace","xml:base",n);break;case"xmlLang":Je(t,"http://www.w3.org/XML/1998/namespace","xml:lang",n);break;case"xmlSpace":Je(t,"http://www.w3.org/XML/1998/namespace","xml:space",n);break;case"is":su(t,"is",n);break;case"innerText":case"textContent":break;default:(!(2<l.length)||l[0]!=="o"&&l[0]!=="O"||l[1]!=="n"&&l[1]!=="N")&&(l=Yv.get(l)||l,su(t,l,n))}}function Hs(t,e,l,n,u,r){switch(l){case"style":io(t,n,r);break;case"dangerouslySetInnerHTML":if(n!=null){if(typeof n!="object"||!("__html"in n))throw Error(c(61));if(l=n.__html,l!=null){if(u.children!=null)throw Error(c(60));t.innerHTML=l}}break;case"children":typeof n=="string"?pn(t,n):(typeof n=="number"||typeof n=="bigint")&&pn(t,""+n);break;case"onScroll":n!=null&&pt("scroll",t);break;case"onScrollEnd":n!=null&&pt("scrollend",t);break;case"onClick":n!=null&&(t.onclick=ke);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Pc.hasOwnProperty(l))t:{if(l[0]==="o"&&l[1]==="n"&&(u=l.endsWith("Capture"),e=l.slice(2,u?l.length-7:void 0),r=t[se]||null,r=r!=null?r[l]:null,typeof r=="function"&&t.removeEventListener(e,r,u),typeof n=="function")){typeof r!="function"&&r!==null&&(l in t?t[l]=null:t.hasAttribute(l)&&t.removeAttribute(l)),t.addEventListener(e,n,u);break t}l in t?t[l]=n:n===!0?t.setAttribute(l,""):su(t,l,n)}}}function ee(t,e,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":pt("error",t),pt("load",t);var n=!1,u=!1,r;for(r in l)if(l.hasOwnProperty(r)){var o=l[r];if(o!=null)switch(r){case"src":n=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Mt(t,e,r,o,l,null)}}u&&Mt(t,e,"srcSet",l.srcSet,l,null),n&&Mt(t,e,"src",l.src,l,null);return;case"input":pt("invalid",t);var v=r=o=u=null,g=null,j=null;for(n in l)if(l.hasOwnProperty(n)){var N=l[n];if(N!=null)switch(n){case"name":u=N;break;case"type":o=N;break;case"checked":g=N;break;case"defaultChecked":j=N;break;case"value":r=N;break;case"defaultValue":v=N;break;case"children":case"dangerouslySetInnerHTML":if(N!=null)throw Error(c(137,e));break;default:Mt(t,e,n,N,l,null)}}lo(t,r,v,g,j,o,u,!1);return;case"select":pt("invalid",t),n=o=r=null;for(u in l)if(l.hasOwnProperty(u)&&(v=l[u],v!=null))switch(u){case"value":r=v;break;case"defaultValue":o=v;break;case"multiple":n=v;default:Mt(t,e,u,v,l,null)}e=r,l=o,t.multiple=!!n,e!=null?yn(t,!!n,e,!1):l!=null&&yn(t,!!n,l,!0);return;case"textarea":pt("invalid",t),r=u=n=null;for(o in l)if(l.hasOwnProperty(o)&&(v=l[o],v!=null))switch(o){case"value":n=v;break;case"defaultValue":u=v;break;case"children":r=v;break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(c(91));break;default:Mt(t,e,o,v,l,null)}ao(t,n,u,r);return;case"option":for(g in l)if(l.hasOwnProperty(g)&&(n=l[g],n!=null))switch(g){case"selected":t.selected=n&&typeof n!="function"&&typeof n!="symbol";break;default:Mt(t,e,g,n,l,null)}return;case"dialog":pt("beforetoggle",t),pt("toggle",t),pt("cancel",t),pt("close",t);break;case"iframe":case"object":pt("load",t);break;case"video":case"audio":for(n=0;n<Qa.length;n++)pt(Qa[n],t);break;case"image":pt("error",t),pt("load",t);break;case"details":pt("toggle",t);break;case"embed":case"source":case"link":pt("error",t),pt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(j in l)if(l.hasOwnProperty(j)&&(n=l[j],n!=null))switch(j){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Mt(t,e,j,n,l,null)}return;default:if(Wi(e)){for(N in l)l.hasOwnProperty(N)&&(n=l[N],n!==void 0&&Hs(t,e,N,n,l,void 0));return}}for(v in l)l.hasOwnProperty(v)&&(n=l[v],n!=null&&Mt(t,e,v,n,l,null))}function mp(t,e,l,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,r=null,o=null,v=null,g=null,j=null,N=null;for(z in l){var Q=l[z];if(l.hasOwnProperty(z)&&Q!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":g=Q;default:n.hasOwnProperty(z)||Mt(t,e,z,null,n,Q)}}for(var C in n){var z=n[C];if(Q=l[C],n.hasOwnProperty(C)&&(z!=null||Q!=null))switch(C){case"type":r=z;break;case"name":u=z;break;case"checked":j=z;break;case"defaultChecked":N=z;break;case"value":o=z;break;case"defaultValue":v=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(c(137,e));break;default:z!==Q&&Mt(t,e,C,z,n,Q)}}$i(t,o,v,g,j,N,r,u);return;case"select":z=o=v=C=null;for(r in l)if(g=l[r],l.hasOwnProperty(r)&&g!=null)switch(r){case"value":break;case"multiple":z=g;default:n.hasOwnProperty(r)||Mt(t,e,r,null,n,g)}for(u in n)if(r=n[u],g=l[u],n.hasOwnProperty(u)&&(r!=null||g!=null))switch(u){case"value":C=r;break;case"defaultValue":v=r;break;case"multiple":o=r;default:r!==g&&Mt(t,e,u,r,n,g)}e=v,l=o,n=z,C!=null?yn(t,!!l,C,!1):!!n!=!!l&&(e!=null?yn(t,!!l,e,!0):yn(t,!!l,l?[]:"",!1));return;case"textarea":z=C=null;for(v in l)if(u=l[v],l.hasOwnProperty(v)&&u!=null&&!n.hasOwnProperty(v))switch(v){case"value":break;case"children":break;default:Mt(t,e,v,null,n,u)}for(o in n)if(u=n[o],r=l[o],n.hasOwnProperty(o)&&(u!=null||r!=null))switch(o){case"value":C=u;break;case"defaultValue":z=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(c(91));break;default:u!==r&&Mt(t,e,o,u,n,r)}no(t,C,z);return;case"option":for(var k in l)if(C=l[k],l.hasOwnProperty(k)&&C!=null&&!n.hasOwnProperty(k))switch(k){case"selected":t.selected=!1;break;default:Mt(t,e,k,null,n,C)}for(g in n)if(C=n[g],z=l[g],n.hasOwnProperty(g)&&C!==z&&(C!=null||z!=null))switch(g){case"selected":t.selected=C&&typeof C!="function"&&typeof C!="symbol";break;default:Mt(t,e,g,C,n,z)}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 ut in l)C=l[ut],l.hasOwnProperty(ut)&&C!=null&&!n.hasOwnProperty(ut)&&Mt(t,e,ut,null,n,C);for(j in n)if(C=n[j],z=l[j],n.hasOwnProperty(j)&&C!==z&&(C!=null||z!=null))switch(j){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(c(137,e));break;default:Mt(t,e,j,C,n,z)}return;default:if(Wi(e)){for(var Dt in l)C=l[Dt],l.hasOwnProperty(Dt)&&C!==void 0&&!n.hasOwnProperty(Dt)&&Hs(t,e,Dt,void 0,n,C);for(N in n)C=n[N],z=l[N],!n.hasOwnProperty(N)||C===z||C===void 0&&z===void 0||Hs(t,e,N,C,n,z);return}}for(var O in l)C=l[O],l.hasOwnProperty(O)&&C!=null&&!n.hasOwnProperty(O)&&Mt(t,e,O,null,n,C);for(Q in n)C=n[Q],z=l[Q],!n.hasOwnProperty(Q)||C===z||C==null&&z==null||Mt(t,e,Q,C,n,z)}function ch(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function vp(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,l=performance.getEntriesByType("resource"),n=0;n<l.length;n++){var u=l[n],r=u.transferSize,o=u.initiatorType,v=u.duration;if(r&&v&&ch(o)){for(o=0,v=u.responseEnd,n+=1;n<l.length;n++){var g=l[n],j=g.startTime;if(j>v)break;var N=g.transferSize,Q=g.initiatorType;N&&ch(Q)&&(g=g.responseEnd,o+=N*(g<v?1:(v-j)/(g-j)))}if(--n,e+=8*(r+o)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var Bs=null,Ls=null;function ii(t){return t.nodeType===9?t:t.ownerDocument}function oh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function fh(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function Ys(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Gs=null;function yp(){var t=window.event;return t&&t.type==="popstate"?t===Gs?!1:(Gs=t,!0):(Gs=null,!1)}var dh=typeof setTimeout=="function"?setTimeout:void 0,pp=typeof clearTimeout=="function"?clearTimeout:void 0,hh=typeof Promise=="function"?Promise:void 0,gp=typeof queueMicrotask=="function"?queueMicrotask:typeof hh<"u"?function(t){return hh.resolve(null).then(t).catch(bp)}:dh;function bp(t){setTimeout(function(){throw t})}function Ml(t){return t==="head"}function mh(t,e){var l=e,n=0;do{var u=l.nextSibling;if(t.removeChild(l),u&&u.nodeType===8)if(l=u.data,l==="/$"||l==="/&"){if(n===0){t.removeChild(u),kn(e);return}n--}else if(l==="$"||l==="$?"||l==="$~"||l==="$!"||l==="&")n++;else if(l==="html")Ha(t.ownerDocument.documentElement);else if(l==="head"){l=t.ownerDocument.head,Ha(l);for(var r=l.firstChild;r;){var o=r.nextSibling,v=r.nodeName;r[la]||v==="SCRIPT"||v==="STYLE"||v==="LINK"&&r.rel.toLowerCase()==="stylesheet"||l.removeChild(r),r=o}}else l==="body"&&Ha(t.ownerDocument.body);l=u}while(l);kn(e)}function vh(t,e){var l=t;t=0;do{var n=l.nextSibling;if(l.nodeType===1?e?(l._stashedDisplay=l.style.display,l.style.display="none"):(l.style.display=l._stashedDisplay||"",l.getAttribute("style")===""&&l.removeAttribute("style")):l.nodeType===3&&(e?(l._stashedText=l.nodeValue,l.nodeValue=""):l.nodeValue=l._stashedText||""),n&&n.nodeType===8)if(l=n.data,l==="/$"){if(t===0)break;t--}else l!=="$"&&l!=="$?"&&l!=="$~"&&l!=="$!"||t++;l=n}while(l)}function Xs(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var l=e;switch(e=e.nextSibling,l.nodeName){case"HTML":case"HEAD":case"BODY":Xs(l),ki(l);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(l.rel.toLowerCase()==="stylesheet")continue}t.removeChild(l)}}function Sp(t,e,l,n){for(;t.nodeType===1;){var u=l;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!n&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(n){if(!t[la])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(r=t.getAttribute("rel"),r==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(r!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(r=t.getAttribute("src"),(r!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&r&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var r=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===r)return t}else return t;if(t=Ue(t.nextSibling),t===null)break}return null}function xp(t,e,l){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!l||(t=Ue(t.nextSibling),t===null))return null;return t}function yh(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ue(t.nextSibling),t===null))return null;return t}function Ks(t){return t.data==="$?"||t.data==="$~"}function Zs(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Op(t,e){var l=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||l.readyState!=="loading")e();else{var n=function(){e(),l.removeEventListener("DOMContentLoaded",n)};l.addEventListener("DOMContentLoaded",n),t._reactRetry=n}}function Ue(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Vs=null;function ph(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="/$"||l==="/&"){if(e===0)return Ue(t.nextSibling);e--}else l!=="$"&&l!=="$!"&&l!=="$?"&&l!=="$~"&&l!=="&"||e++}t=t.nextSibling}return null}function gh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var l=t.data;if(l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"){if(e===0)return t;e--}else l!=="/$"&&l!=="/&"||e++}t=t.previousSibling}return null}function bh(t,e,l){switch(e=ii(l),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function Ha(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);ki(t)}var qe=new Map,Sh=new Set;function ri(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var ol=w.d;w.d={f:_p,r:Ep,D:jp,C:Tp,L:Ap,m:Cp,X:Mp,S:zp,M:Dp};function _p(){var t=ol.f(),e=Wu();return t||e}function Ep(t){var e=hn(t);e!==null&&e.tag===5&&e.type==="form"?wf(e):ol.r(t)}var Zn=typeof document>"u"?null:document;function xh(t,e,l){var n=Zn;if(n&&typeof e=="string"&&e){var u=Ae(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof l=="string"&&(u+='[crossorigin="'+l+'"]'),Sh.has(u)||(Sh.add(u),t={rel:t,crossOrigin:l,href:e},n.querySelector(u)===null&&(e=n.createElement("link"),ee(e,"link",t),Ft(e),n.head.appendChild(e)))}}function jp(t){ol.D(t),xh("dns-prefetch",t,null)}function Tp(t,e){ol.C(t,e),xh("preconnect",t,e)}function Ap(t,e,l){ol.L(t,e,l);var n=Zn;if(n&&t&&e){var u='link[rel="preload"][as="'+Ae(e)+'"]';e==="image"&&l&&l.imageSrcSet?(u+='[imagesrcset="'+Ae(l.imageSrcSet)+'"]',typeof l.imageSizes=="string"&&(u+='[imagesizes="'+Ae(l.imageSizes)+'"]')):u+='[href="'+Ae(t)+'"]';var r=u;switch(e){case"style":r=Vn(t);break;case"script":r=Jn(t)}qe.has(r)||(t=_({rel:"preload",href:e==="image"&&l&&l.imageSrcSet?void 0:t,as:e},l),qe.set(r,t),n.querySelector(u)!==null||e==="style"&&n.querySelector(Ba(r))||e==="script"&&n.querySelector(La(r))||(e=n.createElement("link"),ee(e,"link",t),Ft(e),n.head.appendChild(e)))}}function Cp(t,e){ol.m(t,e);var l=Zn;if(l&&t){var n=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Ae(n)+'"][href="'+Ae(t)+'"]',r=u;switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Jn(t)}if(!qe.has(r)&&(t=_({rel:"modulepreload",href:t},e),qe.set(r,t),l.querySelector(u)===null)){switch(n){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(l.querySelector(La(r)))return}n=l.createElement("link"),ee(n,"link",t),Ft(n),l.head.appendChild(n)}}}function zp(t,e,l){ol.S(t,e,l);var n=Zn;if(n&&t){var u=mn(n).hoistableStyles,r=Vn(t);e=e||"default";var o=u.get(r);if(!o){var v={loading:0,preload:null};if(o=n.querySelector(Ba(r)))v.loading=5;else{t=_({rel:"stylesheet",href:t,"data-precedence":e},l),(l=qe.get(r))&&Js(t,l);var g=o=n.createElement("link");Ft(g),ee(g,"link",t),g._p=new Promise(function(j,N){g.onload=j,g.onerror=N}),g.addEventListener("load",function(){v.loading|=1}),g.addEventListener("error",function(){v.loading|=2}),v.loading|=4,si(o,e,n)}o={type:"stylesheet",instance:o,count:1,state:v},u.set(r,o)}}}function Mp(t,e){ol.X(t,e);var l=Zn;if(l&&t){var n=mn(l).hoistableScripts,u=Jn(t),r=n.get(u);r||(r=l.querySelector(La(u)),r||(t=_({src:t,async:!0},e),(e=qe.get(u))&&ks(t,e),r=l.createElement("script"),Ft(r),ee(r,"link",t),l.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(u,r))}}function Dp(t,e){ol.M(t,e);var l=Zn;if(l&&t){var n=mn(l).hoistableScripts,u=Jn(t),r=n.get(u);r||(r=l.querySelector(La(u)),r||(t=_({src:t,async:!0,type:"module"},e),(e=qe.get(u))&&ks(t,e),r=l.createElement("script"),Ft(r),ee(r,"link",t),l.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},n.set(u,r))}}function Oh(t,e,l,n){var u=(u=rt.current)?ri(u):null;if(!u)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof l.precedence=="string"&&typeof l.href=="string"?(e=Vn(l.href),l=mn(u).hoistableStyles,n=l.get(e),n||(n={type:"style",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};case"link":if(l.rel==="stylesheet"&&typeof l.href=="string"&&typeof l.precedence=="string"){t=Vn(l.href);var r=mn(u).hoistableStyles,o=r.get(t);if(o||(u=u.ownerDocument||u,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,o),(r=u.querySelector(Ba(t)))&&!r._p&&(o.instance=r,o.state.loading=5),qe.has(t)||(l={rel:"preload",as:"style",href:l.href,crossOrigin:l.crossOrigin,integrity:l.integrity,media:l.media,hrefLang:l.hrefLang,referrerPolicy:l.referrerPolicy},qe.set(t,l),r||Np(u,t,l,o.state))),e&&n===null)throw Error(c(528,""));return o}if(e&&n!==null)throw Error(c(529,""));return null;case"script":return e=l.async,l=l.src,typeof l=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Jn(l),l=mn(u).hoistableScripts,n=l.get(e),n||(n={type:"script",instance:null,count:0,state:null},l.set(e,n)),n):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function Vn(t){return'href="'+Ae(t)+'"'}function Ba(t){return'link[rel="stylesheet"]['+t+"]"}function _h(t){return _({},t,{"data-precedence":t.precedence,precedence:null})}function Np(t,e,l,n){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?n.loading=1:(e=t.createElement("link"),n.preload=e,e.addEventListener("load",function(){return n.loading|=1}),e.addEventListener("error",function(){return n.loading|=2}),ee(e,"link",l),Ft(e),t.head.appendChild(e))}function Jn(t){return'[src="'+Ae(t)+'"]'}function La(t){return"script[async]"+t}function Eh(t,e,l){if(e.count++,e.instance===null)switch(e.type){case"style":var n=t.querySelector('style[data-href~="'+Ae(l.href)+'"]');if(n)return e.instance=n,Ft(n),n;var u=_({},l,{"data-href":l.href,"data-precedence":l.precedence,href:null,precedence:null});return n=(t.ownerDocument||t).createElement("style"),Ft(n),ee(n,"style",u),si(n,l.precedence,t),e.instance=n;case"stylesheet":u=Vn(l.href);var r=t.querySelector(Ba(u));if(r)return e.state.loading|=4,e.instance=r,Ft(r),r;n=_h(l),(u=qe.get(u))&&Js(n,u),r=(t.ownerDocument||t).createElement("link"),Ft(r);var o=r;return o._p=new Promise(function(v,g){o.onload=v,o.onerror=g}),ee(r,"link",n),e.state.loading|=4,si(r,l.precedence,t),e.instance=r;case"script":return r=Jn(l.src),(u=t.querySelector(La(r)))?(e.instance=u,Ft(u),u):(n=l,(u=qe.get(r))&&(n=_({},l),ks(n,u)),t=t.ownerDocument||t,u=t.createElement("script"),Ft(u),ee(u,"link",n),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(n=e.instance,e.state.loading|=4,si(n,l.precedence,t));return e.instance}function si(t,e,l){for(var n=l.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=n.length?n[n.length-1]:null,r=u,o=0;o<n.length;o++){var v=n[o];if(v.dataset.precedence===e)r=v;else if(r!==u)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=l.nodeType===9?l.head:l,e.insertBefore(t,e.firstChild))}function Js(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function ks(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ci=null;function jh(t,e,l){if(ci===null){var n=new Map,u=ci=new Map;u.set(l,n)}else u=ci,n=u.get(l),n||(n=new Map,u.set(l,n));if(n.has(t))return n;for(n.set(t,null),l=l.getElementsByTagName(t),u=0;u<l.length;u++){var r=l[u];if(!(r[la]||r[Pt]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var o=r.getAttribute(e)||"";o=t+o;var v=n.get(o);v?v.push(r):n.set(o,[r])}}return n}function Th(t,e,l){t=t.ownerDocument||t,t.head.insertBefore(l,e==="title"?t.querySelector("head > title"):null)}function Rp(t,e,l){if(l===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Ah(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Up(t,e,l,n){if(l.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&(l.state.loading&4)===0){if(l.instance===null){var u=Vn(n.href),r=e.querySelector(Ba(u));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=oi.bind(t),e.then(t,t)),l.state.loading|=4,l.instance=r,Ft(r);return}r=e.ownerDocument||e,n=_h(n),(u=qe.get(u))&&Js(n,u),r=r.createElement("link"),Ft(r);var o=r;o._p=new Promise(function(v,g){o.onload=v,o.onerror=g}),ee(r,"link",n),l.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(l,e),(e=l.state.preload)&&(l.state.loading&3)===0&&(t.count++,l=oi.bind(t),e.addEventListener("load",l),e.addEventListener("error",l))}}var Fs=0;function qp(t,e){return t.stylesheets&&t.count===0&&di(t,t.stylesheets),0<t.count||0<t.imgCount?function(l){var n=setTimeout(function(){if(t.stylesheets&&di(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&Fs===0&&(Fs=62500*vp());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&di(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>Fs?50:800)+e);return t.unsuspend=l,function(){t.unsuspend=null,clearTimeout(n),clearTimeout(u)}}:null}function oi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)di(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var fi=null;function di(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,fi=new Map,e.forEach(Qp,t),fi=null,oi.call(t))}function Qp(t,e){if(!(e.state.loading&4)){var l=fi.get(t);if(l)var n=l.get(null);else{l=new Map,fi.set(t,l);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<u.length;r++){var o=u[r];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(l.set(o.dataset.precedence,o),n=o)}n&&l.set(null,n)}u=e.instance,o=u.getAttribute("data-precedence"),r=l.get(o)||n,r===n&&l.set(null,u),l.set(o,u),this.count++,n=oi.bind(this),u.addEventListener("load",n),u.addEventListener("error",n),r?r.parentNode.insertBefore(u,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var Ya={$$typeof:jt,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function wp(t,e,l,n,u,r,o,v,g){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ki(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ki(0),this.hiddenUpdates=Ki(null),this.identifierPrefix=n,this.onUncaughtError=u,this.onCaughtError=r,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function Ch(t,e,l,n,u,r,o,v,g,j,N,Q){return t=new wp(t,e,l,o,g,j,N,Q,v),e=1,r===!0&&(e|=24),r=be(3,null,null,e),t.current=r,r.stateNode=t,e=Cr(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:n,isDehydrated:l,cache:e},Nr(r),t}function zh(t){return t?(t=En,t):En}function Mh(t,e,l,n,u,r){u=zh(u),n.context===null?n.context=u:n.pendingContext=u,n=bl(e),n.payload={element:l},r=r===void 0?null:r,r!==null&&(n.callback=r),l=Sl(t,n,e),l!==null&&(me(l,t,e),ba(l,t,e))}function Dh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var l=t.retryLane;t.retryLane=l!==0&&l<e?l:e}}function $s(t,e){Dh(t,e),(t=t.alternate)&&Dh(t,e)}function Nh(t){if(t.tag===13||t.tag===31){var e=Zl(t,67108864);e!==null&&me(e,t,67108864),$s(t,67108864)}}function Rh(t){if(t.tag===13||t.tag===31){var e=Ee();e=Zi(e);var l=Zl(t,e);l!==null&&me(l,t,e),$s(t,e)}}var hi=!0;function Hp(t,e,l,n){var u=T.T;T.T=null;var r=w.p;try{w.p=2,Ps(t,e,l,n)}finally{w.p=r,T.T=u}}function Bp(t,e,l,n){var u=T.T;T.T=null;var r=w.p;try{w.p=8,Ps(t,e,l,n)}finally{w.p=r,T.T=u}}function Ps(t,e,l,n){if(hi){var u=Ws(n);if(u===null)ws(t,e,n,mi,l),qh(t,n);else if(Yp(u,t,e,l,n))n.stopPropagation();else if(qh(t,n),e&4&&-1<Lp.indexOf(t)){for(;u!==null;){var r=hn(u);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var o=Ll(r.pendingLanes);if(o!==0){var v=r;for(v.pendingLanes|=2,v.entangledLanes|=2;o;){var g=1<<31-pe(o);v.entanglements[1]|=g,o&=~g}Ke(r),(Tt&6)===0&&($u=ve()+500,qa(0))}}break;case 31:case 13:v=Zl(r,2),v!==null&&me(v,r,2),Wu(),$s(r,2)}if(r=Ws(n),r===null&&ws(t,e,n,mi,l),r===u)break;u=r}u!==null&&n.stopPropagation()}else ws(t,e,n,null,l)}}function Ws(t){return t=tr(t),Is(t)}var mi=null;function Is(t){if(mi=null,t=dn(t),t!==null){var e=d(t);if(e===null)t=null;else{var l=e.tag;if(l===13){if(t=h(e),t!==null)return t;t=null}else if(l===31){if(t=m(e),t!==null)return t;t=null}else if(l===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return mi=t,null}function Uh(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(jv()){case Lc:return 2;case Yc:return 8;case nu:case Tv:return 32;case Gc:return 268435456;default:return 32}default:return 32}}var tc=!1,Dl=null,Nl=null,Rl=null,Ga=new Map,Xa=new Map,Ul=[],Lp="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 qh(t,e){switch(t){case"focusin":case"focusout":Dl=null;break;case"dragenter":case"dragleave":Nl=null;break;case"mouseover":case"mouseout":Rl=null;break;case"pointerover":case"pointerout":Ga.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Xa.delete(e.pointerId)}}function Ka(t,e,l,n,u,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:l,eventSystemFlags:n,nativeEvent:r,targetContainers:[u]},e!==null&&(e=hn(e),e!==null&&Nh(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function Yp(t,e,l,n,u){switch(e){case"focusin":return Dl=Ka(Dl,t,e,l,n,u),!0;case"dragenter":return Nl=Ka(Nl,t,e,l,n,u),!0;case"mouseover":return Rl=Ka(Rl,t,e,l,n,u),!0;case"pointerover":var r=u.pointerId;return Ga.set(r,Ka(Ga.get(r)||null,t,e,l,n,u)),!0;case"gotpointercapture":return r=u.pointerId,Xa.set(r,Ka(Xa.get(r)||null,t,e,l,n,u)),!0}return!1}function Qh(t){var e=dn(t.target);if(e!==null){var l=d(e);if(l!==null){if(e=l.tag,e===13){if(e=h(l),e!==null){t.blockedOn=e,kc(t.priority,function(){Rh(l)});return}}else if(e===31){if(e=m(l),e!==null){t.blockedOn=e,kc(t.priority,function(){Rh(l)});return}}else if(e===3&&l.stateNode.current.memoizedState.isDehydrated){t.blockedOn=l.tag===3?l.stateNode.containerInfo:null;return}}}t.blockedOn=null}function vi(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var l=Ws(t.nativeEvent);if(l===null){l=t.nativeEvent;var n=new l.constructor(l.type,l);Ii=n,l.target.dispatchEvent(n),Ii=null}else return e=hn(l),e!==null&&Nh(e),t.blockedOn=l,!1;e.shift()}return!0}function wh(t,e,l){vi(t)&&l.delete(e)}function Gp(){tc=!1,Dl!==null&&vi(Dl)&&(Dl=null),Nl!==null&&vi(Nl)&&(Nl=null),Rl!==null&&vi(Rl)&&(Rl=null),Ga.forEach(wh),Xa.forEach(wh)}function yi(t,e){t.blockedOn===e&&(t.blockedOn=null,tc||(tc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Gp)))}var pi=null;function Hh(t){pi!==t&&(pi=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){pi===t&&(pi=null);for(var e=0;e<t.length;e+=3){var l=t[e],n=t[e+1],u=t[e+2];if(typeof n!="function"){if(Is(n||l)===null)continue;break}var r=hn(l);r!==null&&(t.splice(e,3),e-=3,Wr(r,{pending:!0,data:u,method:l.method,action:n},n,u))}}))}function kn(t){function e(g){return yi(g,t)}Dl!==null&&yi(Dl,t),Nl!==null&&yi(Nl,t),Rl!==null&&yi(Rl,t),Ga.forEach(e),Xa.forEach(e);for(var l=0;l<Ul.length;l++){var n=Ul[l];n.blockedOn===t&&(n.blockedOn=null)}for(;0<Ul.length&&(l=Ul[0],l.blockedOn===null);)Qh(l),l.blockedOn===null&&Ul.shift();if(l=(t.ownerDocument||t).$$reactFormReplay,l!=null)for(n=0;n<l.length;n+=3){var u=l[n],r=l[n+1],o=u[se]||null;if(typeof r=="function")o||Hh(l);else if(o){var v=null;if(r&&r.hasAttribute("formAction")){if(u=r,o=r[se]||null)v=o.formAction;else if(Is(u)!==null)continue}else v=o.action;typeof v=="function"?l[n+1]=v:(l.splice(n,3),n-=3),Hh(l)}}}function Bh(){function t(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(o){return u=o})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),n||setTimeout(l,20)}function l(){if(!n&&!navigation.transition){var r=navigation.currentEntry;r&&r.url!=null&&navigation.navigate(r.url,{state:r.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var n=!1,u=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(l,100),function(){n=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function ec(t){this._internalRoot=t}gi.prototype.render=ec.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var l=e.current,n=Ee();Mh(l,n,t,e,null,null)},gi.prototype.unmount=ec.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Mh(t.current,2,null,t,null,null),Wu(),e[fn]=null}};function gi(t){this._internalRoot=t}gi.prototype.unstable_scheduleHydration=function(t){if(t){var e=Jc();t={blockedOn:null,target:t,priority:e};for(var l=0;l<Ul.length&&e!==0&&e<Ul[l].priority;l++);Ul.splice(l,0,t),l===0&&Qh(t)}};var Lh=i.version;if(Lh!=="19.2.1")throw Error(c(527,Lh,"19.2.1"));w.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=p(e),t=t!==null?A(t):null,t=t===null?null:t.stateNode,t};var Xp={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bi.isDisabled&&bi.supportsFiber)try{In=bi.inject(Xp),ye=bi}catch{}}return Va.createRoot=function(t,e){if(!f(t))throw Error(c(299));var l=!1,n="",u=Jf,r=kf,o=Ff;return e!=null&&(e.unstable_strictMode===!0&&(l=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=Ch(t,1,!1,null,null,l,n,null,u,r,o,Bh),t[fn]=e.current,Qs(t),new ec(e)},Va.hydrateRoot=function(t,e,l){if(!f(t))throw Error(c(299));var n=!1,u="",r=Jf,o=kf,v=Ff,g=null;return l!=null&&(l.unstable_strictMode===!0&&(n=!0),l.identifierPrefix!==void 0&&(u=l.identifierPrefix),l.onUncaughtError!==void 0&&(r=l.onUncaughtError),l.onCaughtError!==void 0&&(o=l.onCaughtError),l.onRecoverableError!==void 0&&(v=l.onRecoverableError),l.formState!==void 0&&(g=l.formState)),e=Ch(t,1,!0,e,l??null,n,u,g,r,o,v,Bh),e.context=zh(null),l=e.current,n=Ee(),n=Zi(n),u=bl(n),u.callback=null,Sl(l,u,n),l=n,e.current.lanes=l,ea(e,l),Ke(e),t[fn]=e.current,Qs(t),new gi(e)},Va.version="19.2.1",Va}var $h;function l0(){if($h)return ac.exports;$h=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),ac.exports=e0(),ac.exports}var n0=l0();const a0="modulepreload",u0=function(a){return"/"+a},Ph={},i0=function(i,s,c){let f=Promise.resolve();if(s&&s.length>0){let y=function(p){return Promise.all(p.map(A=>Promise.resolve(A).then(_=>({status:"fulfilled",value:_}),_=>({status:"rejected",reason:_}))))};document.getElementsByTagName("link");const h=document.querySelector("meta[property=csp-nonce]"),m=h?.nonce||h?.getAttribute("nonce");f=y(s.map(p=>{if(p=u0(p),p in Ph)return;Ph[p]=!0;const A=p.endsWith(".css"),_=A?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${_}`))return;const R=document.createElement("link");if(R.rel=A?"stylesheet":a0,A||(R.as="script"),R.crossOrigin="",R.href=p,m&&R.setAttribute("nonce",m),document.head.appendChild(R),A)return new Promise((Y,Z)=>{R.addEventListener("load",Y),R.addEventListener("error",()=>Z(new Error(`Unable to preload CSS for ${p}`)))})}))}function d(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return f.then(h=>{for(const m of h||[])m.status==="rejected"&&d(m.reason);return i().catch(d)})};var sn=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},un=typeof window>"u"||"Deno"in globalThis;function ae(){}function r0(a,i){return typeof a=="function"?a(i):a}function yc(a){return typeof a=="number"&&a>=0&&a!==1/0}function jm(a,i){return Math.max(a+(i||0)-Date.now(),0)}function Ql(a,i){return typeof a=="function"?a(i):a}function Be(a,i){return typeof a=="function"?a(i):a}function Wh(a,i){const{type:s="all",exact:c,fetchStatus:f,predicate:d,queryKey:h,stale:m}=a;if(h){if(c){if(i.queryHash!==Tc(h,i.options))return!1}else if(!Fa(i.queryKey,h))return!1}if(s!=="all"){const y=i.isActive();if(s==="active"&&!y||s==="inactive"&&y)return!1}return!(typeof m=="boolean"&&i.isStale()!==m||f&&f!==i.state.fetchStatus||d&&!d(i))}function Ih(a,i){const{exact:s,status:c,predicate:f,mutationKey:d}=a;if(d){if(!i.options.mutationKey)return!1;if(s){if(wl(i.options.mutationKey)!==wl(d))return!1}else if(!Fa(i.options.mutationKey,d))return!1}return!(c&&i.state.status!==c||f&&!f(i))}function Tc(a,i){return(i?.queryKeyHashFn||wl)(a)}function wl(a){return JSON.stringify(a,(i,s)=>pc(s)?Object.keys(s).sort().reduce((c,f)=>(c[f]=s[f],c),{}):s)}function Fa(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(s=>Fa(a[s],i[s])):!1}function Ac(a,i){if(a===i)return a;const s=tm(a)&&tm(i);if(s||pc(a)&&pc(i)){const c=s?a:Object.keys(a),f=c.length,d=s?i:Object.keys(i),h=d.length,m=s?[]:{},y=new Set(c);let p=0;for(let A=0;A<h;A++){const _=s?A:d[A];(!s&&y.has(_)||s)&&a[_]===void 0&&i[_]===void 0?(m[_]=void 0,p++):(m[_]=Ac(a[_],i[_]),m[_]===a[_]&&a[_]!==void 0&&p++)}return f===h&&p===f?a:m}return i}function Ti(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const s in a)if(a[s]!==i[s])return!1;return!0}function tm(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function pc(a){if(!em(a))return!1;const i=a.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!em(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function em(a){return Object.prototype.toString.call(a)==="[object Object]"}function s0(a){return new Promise(i=>{setTimeout(i,a)})}function gc(a,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(a,i):s.structuralSharing!==!1?Ac(a,i):i}function c0(a,i,s=0){const c=[...a,i];return s&&c.length>s?c.slice(1):c}function o0(a,i,s=0){const c=[i,...a];return s&&c.length>s?c.slice(0,-1):c}var je=Symbol();function Tm(a,i){return!a.queryFn&&i?.initialPromise?()=>i.initialPromise:!a.queryFn||a.queryFn===je?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function Am(a,i){return typeof a=="function"?a(...i):!!a}var f0=class extends sn{#e;#t;#l;constructor(){super(),this.#l=a=>{if(!un&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#l)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(a){this.#l=a,this.#t?.(),this.#t=a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(a){this.#e!==a&&(this.#e=a,this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Cc=new f0,d0=class extends sn{#e=!0;#t;#l;constructor(){super(),this.#l=a=>{if(!un&&window.addEventListener){const i=()=>a(!0),s=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#t||this.setEventListener(this.#l)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(a){this.#l=a,this.#t?.(),this.#t=a(this.setOnline.bind(this))}setOnline(a){this.#e!==a&&(this.#e=a,this.listeners.forEach(s=>{s(a)}))}isOnline(){return this.#e}},Ai=new d0;function bc(){let a,i;const s=new Promise((f,d)=>{a=f,i=d});s.status="pending",s.catch(()=>{});function c(f){Object.assign(s,f),delete s.resolve,delete s.reject}return s.resolve=f=>{c({status:"fulfilled",value:f}),a(f)},s.reject=f=>{c({status:"rejected",reason:f}),i(f)},s}function h0(a){return Math.min(1e3*2**a,3e4)}function Cm(a){return(a??"online")==="online"?Ai.isOnline():!0}var zm=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function sc(a){return a instanceof zm}function Mm(a){let i=!1,s=0,c=!1,f;const d=bc(),h=q=>{c||(R(new zm(q)),a.abort?.())},m=()=>{i=!0},y=()=>{i=!1},p=()=>Cc.isFocused()&&(a.networkMode==="always"||Ai.isOnline())&&a.canRun(),A=()=>Cm(a.networkMode)&&a.canRun(),_=q=>{c||(c=!0,a.onSuccess?.(q),f?.(),d.resolve(q))},R=q=>{c||(c=!0,a.onError?.(q),f?.(),d.reject(q))},Y=()=>new Promise(q=>{f=P=>{(c||p())&&q(P)},a.onPause?.()}).then(()=>{f=void 0,c||a.onContinue?.()}),Z=()=>{if(c)return;let q;const P=s===0?a.initialPromise:void 0;try{q=P??a.fn()}catch(it){q=Promise.reject(it)}Promise.resolve(q).then(_).catch(it=>{if(c)return;const ht=a.retry??(un?0:3),jt=a.retryDelay??h0,qt=typeof jt=="function"?jt(s,it):jt,$=ht===!0||typeof ht=="number"&&s<ht||typeof ht=="function"&&ht(s,it);if(i||!$){R(it);return}s++,a.onFail?.(s,it),s0(qt).then(()=>p()?void 0:Y()).then(()=>{i?R(it):Z()})})};return{promise:d,cancel:h,continue:()=>(f?.(),d),cancelRetry:m,continueRetry:y,canStart:A,start:()=>(A()?Z():Y().then(Z),d)}}var m0=a=>setTimeout(a,0);function v0(){let a=[],i=0,s=m=>{m()},c=m=>{m()},f=m0;const d=m=>{i?a.push(m):f(()=>{s(m)})},h=()=>{const m=a;a=[],m.length&&f(()=>{c(()=>{m.forEach(y=>{s(y)})})})};return{batch:m=>{let y;i++;try{y=m()}finally{i--,i||h()}return y},batchCalls:m=>(...y)=>{d(()=>{m(...y)})},schedule:d,setNotifyFunction:m=>{s=m},setBatchNotifyFunction:m=>{c=m},setScheduler:m=>{f=m}}}var Bt=v0(),Dm=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yc(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(un?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},y0=class extends Dm{#e;#t;#l;#n;#a;#u;#r;constructor(a){super(),this.#r=!1,this.#u=a.defaultOptions,this.setOptions(a.options),this.observers=[],this.#n=a.client,this.#l=this.#n.getQueryCache(),this.queryKey=a.queryKey,this.queryHash=a.queryHash,this.#e=p0(this.options),this.state=a.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(a){this.options={...this.#u,...a},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#l.remove(this)}setData(a,i){const s=gc(this.state.data,a,this.options);return this.#i({data:s,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),s}setState(a,i){this.#i({type:"setState",state:a,setStateOptions:i})}cancel(a){const i=this.#a?.promise;return this.#a?.cancel(a),i?i.then(ae).catch(ae):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(a=>Be(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===je||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>Ql(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!jm(this.state.dataUpdatedAt,a)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),this.#l.notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(this.#a&&(this.#r?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#l.notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(a,i){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(a&&this.setOptions(a),!this.options.queryFn){const y=this.observers.find(p=>p.options.queryFn);y&&this.setOptions(y.options)}const s=new AbortController,c=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(this.#r=!0,s.signal)})},f=()=>{const y=Tm(this.options,i),A=(()=>{const _={client:this.#n,queryKey:this.queryKey,meta:this.meta};return c(_),_})();return this.#r=!1,this.options.persister?this.options.persister(y,A,this):y(A)},h=(()=>{const y={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#n,state:this.state,fetchFn:f};return c(y),y})();this.options.behavior?.onFetch(h,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==h.fetchOptions?.meta)&&this.#i({type:"fetch",meta:h.fetchOptions?.meta});const m=y=>{sc(y)&&y.silent||this.#i({type:"error",error:y}),sc(y)||(this.#l.config.onError?.(y,this),this.#l.config.onSettled?.(this.state.data,y,this)),this.scheduleGc()};return this.#a=Mm({initialPromise:i?.initialPromise,fn:h.fetchFn,abort:s.abort.bind(s),onSuccess:y=>{if(y===void 0){m(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(y)}catch(p){m(p);return}this.#l.config.onSuccess?.(y,this),this.#l.config.onSettled?.(y,this.state.error,this),this.scheduleGc()},onError:m,onFail:(y,p)=>{this.#i({type:"failed",failureCount:y,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode,canRun:()=>!0}),this.#a.start()}#i(a){const i=s=>{switch(a.type){case"failed":return{...s,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Nm(s.data,this.options),fetchMeta:a.meta??null};case"success":return this.#t=void 0,{...s,data:a.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:a.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const c=a.error;return sc(c)&&c.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...s,error:c,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...a.state}}};this.state=i(this.state),Bt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#l.notify({query:this,type:"updated",action:a})})}};function Nm(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Cm(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function p0(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,s=i!==void 0,c=s?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var g0=class extends sn{constructor(a={}){super(),this.config=a,this.#e=new Map}#e;build(a,i,s){const c=i.queryKey,f=i.queryHash??Tc(c,i);let d=this.get(f);return d||(d=new y0({client:a,queryKey:c,queryHash:f,options:a.defaultQueryOptions(i),state:s,defaultOptions:a.getQueryDefaults(c)}),this.add(d)),d}add(a){this.#e.has(a.queryHash)||(this.#e.set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=this.#e.get(a.queryHash);i&&(a.destroy(),i===a&&this.#e.delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){Bt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return this.#e.get(a)}getAll(){return[...this.#e.values()]}find(a){const i={exact:!0,...a};return this.getAll().find(s=>Wh(i,s))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(s=>Wh(a,s)):i}notify(a){Bt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){Bt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){Bt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},b0=class extends Dm{#e;#t;#l;constructor(a){super(),this.mutationId=a.mutationId,this.#t=a.mutationCache,this.#e=[],this.state=a.state||Rm(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){this.#e.includes(a)||(this.#e.push(a),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){this.#e=this.#e.filter(i=>i!==a),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(a){const i=()=>{this.#n({type:"continue"})};this.#l=Mm({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(f,d)=>{this.#n({type:"failed",failureCount:f,error:d})},onPause:()=>{this.#n({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const s=this.state.status==="pending",c=!this.#l.canStart();try{if(s)i();else{this.#n({type:"pending",variables:a,isPaused:c}),await this.#t.config.onMutate?.(a,this);const d=await this.options.onMutate?.(a);d!==this.state.context&&this.#n({type:"pending",context:d,variables:a,isPaused:c})}const f=await this.#l.start();return await this.#t.config.onSuccess?.(f,a,this.state.context,this),await this.options.onSuccess?.(f,a,this.state.context),await this.#t.config.onSettled?.(f,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(f,null,a,this.state.context),this.#n({type:"success",data:f}),f}catch(f){try{throw await this.#t.config.onError?.(f,a,this.state.context,this),await this.options.onError?.(f,a,this.state.context),await this.#t.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,f,a,this.state.context),f}finally{this.#n({type:"error",error:f})}}finally{this.#t.runNext(this)}}#n(a){const i=s=>{switch(a.type){case"failed":return{...s,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...s,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:a.error,failureCount:s.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Bt.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(a)}),this.#t.notify({mutation:this,type:"updated",action:a})})}};function Rm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var S0=class extends sn{constructor(a={}){super(),this.config=a,this.#e=new Set,this.#t=new Map,this.#l=0}#e;#t;#l;build(a,i,s){const c=new b0({mutationCache:this,mutationId:++this.#l,options:a.defaultMutationOptions(i),state:s});return this.add(c),c}add(a){this.#e.add(a);const i=Si(a);if(typeof i=="string"){const s=this.#t.get(i);s?s.push(a):this.#t.set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(this.#e.delete(a)){const i=Si(a);if(typeof i=="string"){const s=this.#t.get(i);if(s)if(s.length>1){const c=s.indexOf(a);c!==-1&&s.splice(c,1)}else s[0]===a&&this.#t.delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=Si(a);if(typeof i=="string"){const c=this.#t.get(i)?.find(f=>f.state.status==="pending");return!c||c===a}else return!0}runNext(a){const i=Si(a);return typeof i=="string"?this.#t.get(i)?.find(c=>c!==a&&c.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Bt.batch(()=>{this.#e.forEach(a=>{this.notify({type:"removed",mutation:a})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(a){const i={exact:!0,...a};return this.getAll().find(s=>Ih(i,s))}findAll(a={}){return this.getAll().filter(i=>Ih(a,i))}notify(a){Bt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return Bt.batch(()=>Promise.all(a.map(i=>i.continue().catch(ae))))}};function Si(a){return a.options.scope?.id}function Ci(a){return{onFetch:(i,s)=>{const c=i.options,f=i.fetchOptions?.meta?.fetchMore?.direction,d=i.state.data?.pages||[],h=i.state.data?.pageParams||[];let m={pages:[],pageParams:[]},y=0;const p=async()=>{let A=!1;const _=Z=>{Object.defineProperty(Z,"signal",{enumerable:!0,get:()=>(i.signal.aborted?A=!0:i.signal.addEventListener("abort",()=>{A=!0}),i.signal)})},R=Tm(i.options,i.fetchOptions),Y=async(Z,q,P)=>{if(A)return Promise.reject();if(q==null&&Z.pages.length)return Promise.resolve(Z);const ht=(()=>{const V={client:i.client,queryKey:i.queryKey,pageParam:q,direction:P?"backward":"forward",meta:i.options.meta};return _(V),V})(),jt=await R(ht),{maxPages:qt}=i.options,$=P?o0:c0;return{pages:$(Z.pages,jt,qt),pageParams:$(Z.pageParams,q,qt)}};if(f&&d.length){const Z=f==="backward",q=Z?Um:Sc,P={pages:d,pageParams:h},it=q(c,P);m=await Y(P,it,Z)}else{const Z=a??d.length;do{const q=y===0?h[0]??c.initialPageParam:Sc(c,m);if(y>0&&q==null)break;m=await Y(m,q),y++}while(y<Z)}return m};i.options.persister?i.fetchFn=()=>i.options.persister?.(p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s):i.fetchFn=p}}}function Sc(a,{pages:i,pageParams:s}){const c=i.length-1;return i.length>0?a.getNextPageParam(i[c],i,s[c],s):void 0}function Um(a,{pages:i,pageParams:s}){return i.length>0?a.getPreviousPageParam?.(i[0],i,s[0],s):void 0}function x0(a,i){return i?Sc(a,i)!=null:!1}function O0(a,i){return!i||!a.getPreviousPageParam?!1:Um(a,i)!=null}var _0=class{#e;#t;#l;#n;#a;#u;#r;#i;constructor(a={}){this.#e=a.queryCache||new g0,this.#t=a.mutationCache||new S0,this.#l=a.defaultOptions||{},this.#n=new Map,this.#a=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#r=Cc.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Ai.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#u--,this.#u===0&&(this.#r?.(),this.#r=void 0,this.#i?.(),this.#i=void 0)}isFetching(a){return this.#e.findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return this.#t.findAll({...a,status:"pending"}).length}getQueryData(a){const i=this.defaultQueryOptions({queryKey:a});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(a){const i=this.defaultQueryOptions(a),s=this.#e.build(this,i),c=s.state.data;return c===void 0?this.fetchQuery(a):(a.revalidateIfStale&&s.isStaleByTime(Ql(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(c))}getQueriesData(a){return this.#e.findAll(a).map(({queryKey:i,state:s})=>{const c=s.data;return[i,c]})}setQueryData(a,i,s){const c=this.defaultQueryOptions({queryKey:a}),d=this.#e.get(c.queryHash)?.state.data,h=r0(i,d);if(h!==void 0)return this.#e.build(this,c).setData(h,{...s,manual:!0})}setQueriesData(a,i,s){return Bt.batch(()=>this.#e.findAll(a).map(({queryKey:c})=>[c,this.setQueryData(c,i,s)]))}getQueryState(a){const i=this.defaultQueryOptions({queryKey:a});return this.#e.get(i.queryHash)?.state}removeQueries(a){const i=this.#e;Bt.batch(()=>{i.findAll(a).forEach(s=>{i.remove(s)})})}resetQueries(a,i){const s=this.#e;return Bt.batch(()=>(s.findAll(a).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const s={revert:!0,...i},c=Bt.batch(()=>this.#e.findAll(a).map(f=>f.cancel(s)));return Promise.all(c).then(ae).catch(ae)}invalidateQueries(a,i={}){return Bt.batch(()=>(this.#e.findAll(a).forEach(s=>{s.invalidate()}),a?.refetchType==="none"?Promise.resolve():this.refetchQueries({...a,type:a?.refetchType??a?.type??"active"},i)))}refetchQueries(a,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},c=Bt.batch(()=>this.#e.findAll(a).filter(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let d=f.fetch(void 0,s);return s.throwOnError||(d=d.catch(ae)),f.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(c).then(ae)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const s=this.#e.build(this,i);return s.isStaleByTime(Ql(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(ae).catch(ae)}fetchInfiniteQuery(a){return a.behavior=Ci(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(ae).catch(ae)}ensureInfiniteQueryData(a){return a.behavior=Ci(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return Ai.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#l}setDefaultOptions(a){this.#l=a}setQueryDefaults(a,i){this.#n.set(wl(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...this.#n.values()],s={};return i.forEach(c=>{Fa(a,c.queryKey)&&Object.assign(s,c.defaultOptions)}),s}setMutationDefaults(a,i){this.#a.set(wl(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...this.#a.values()],s={};return i.forEach(c=>{Fa(a,c.mutationKey)&&Object.assign(s,c.defaultOptions)}),s}defaultQueryOptions(a){if(a._defaulted)return a;const i={...this.#l.queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=Tc(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===je&&(i.enabled=!1),i}defaultMutationOptions(a){return a?._defaulted?a:{...this.#l.mutations,...a?.mutationKey&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Wa=class extends sn{constructor(a,i){super(),this.options=i,this.#e=a,this.#i=null,this.#r=bc(),this.options.experimental_prefetchInRender||this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(i)}#e;#t=void 0;#l=void 0;#n=void 0;#a;#u;#r;#i;#h;#f;#d;#c;#o;#s;#v=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),lm(this.#t,this.options)?this.#m():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return xc(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return xc(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#x(),this.#t.removeObserver(this)}setOptions(a){const i=this.options,s=this.#t;if(this.options=this.#e.defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Be(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#O(),this.#t.setOptions(this.options),i._defaulted&&!Ti(this.options,i)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const c=this.hasListeners();c&&nm(this.#t,s,this.options,i)&&this.#m(),this.updateResult(),c&&(this.#t!==s||Be(this.options.enabled,this.#t)!==Be(i.enabled,this.#t)||Ql(this.options.staleTime,this.#t)!==Ql(i.staleTime,this.#t))&&this.#y();const f=this.#p();c&&(this.#t!==s||Be(this.options.enabled,this.#t)!==Be(i.enabled,this.#t)||f!==this.#s)&&this.#g(f)}getOptimisticResult(a){const i=this.#e.getQueryCache().build(this.#e,a),s=this.createResult(i,a);return j0(this,s)&&(this.#n=s,this.#u=this.options,this.#a=this.#t.state),s}getCurrentResult(){return this.#n}trackResult(a,i){return new Proxy(a,{get:(s,c)=>(this.trackProp(c),i?.(c),Reflect.get(s,c))})}trackProp(a){this.#v.add(a)}getCurrentQuery(){return this.#t}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const i=this.#e.defaultQueryOptions(a),s=this.#e.getQueryCache().build(this.#e,i);return s.fetch().then(()=>this.createResult(s,i))}fetch(a){return this.#m({...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#n))}#m(a){this.#O();let i=this.#t.fetch(this.options,a);return a?.throwOnError||(i=i.catch(ae)),i}#y(){this.#S();const a=Ql(this.options.staleTime,this.#t);if(un||this.#n.isStale||!yc(a))return;const s=jm(this.#n.dataUpdatedAt,a)+1;this.#c=setTimeout(()=>{this.#n.isStale||this.updateResult()},s)}#p(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(a){this.#x(),this.#s=a,!(un||Be(this.options.enabled,this.#t)===!1||!yc(this.#s)||this.#s===0)&&(this.#o=setInterval(()=>{(this.options.refetchIntervalInBackground||Cc.isFocused())&&this.#m()},this.#s))}#b(){this.#y(),this.#g(this.#p())}#S(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#x(){this.#o&&(clearInterval(this.#o),this.#o=void 0)}createResult(a,i){const s=this.#t,c=this.options,f=this.#n,d=this.#a,h=this.#u,y=a!==s?a.state:this.#l,{state:p}=a;let A={...p},_=!1,R;if(i._optimisticResults){const X=this.hasListeners(),W=!X&&lm(a,i),lt=X&&nm(a,s,i,c);(W||lt)&&(A={...A,...Nm(p.data,a.options)}),i._optimisticResults==="isRestoring"&&(A.fetchStatus="idle")}let{error:Y,errorUpdatedAt:Z,status:q}=A;R=A.data;let P=!1;if(i.placeholderData!==void 0&&R===void 0&&q==="pending"){let X;f?.isPlaceholderData&&i.placeholderData===h?.placeholderData?(X=f.data,P=!0):X=typeof i.placeholderData=="function"?i.placeholderData(this.#d?.state.data,this.#d):i.placeholderData,X!==void 0&&(q="success",R=gc(f?.data,X,i),_=!0)}if(i.select&&R!==void 0&&!P)if(f&&R===d?.data&&i.select===this.#h)R=this.#f;else try{this.#h=i.select,R=i.select(R),R=gc(f?.data,R,i),this.#f=R,this.#i=null}catch(X){this.#i=X}this.#i&&(Y=this.#i,R=this.#f,Z=Date.now(),q="error");const it=A.fetchStatus==="fetching",ht=q==="pending",jt=q==="error",qt=ht&&it,$=R!==void 0,M={status:q,fetchStatus:A.fetchStatus,isPending:ht,isSuccess:q==="success",isError:jt,isInitialLoading:qt,isLoading:qt,data:R,dataUpdatedAt:A.dataUpdatedAt,error:Y,errorUpdatedAt:Z,failureCount:A.fetchFailureCount,failureReason:A.fetchFailureReason,errorUpdateCount:A.errorUpdateCount,isFetched:A.dataUpdateCount>0||A.errorUpdateCount>0,isFetchedAfterMount:A.dataUpdateCount>y.dataUpdateCount||A.errorUpdateCount>y.errorUpdateCount,isFetching:it,isRefetching:it&&!ht,isLoadingError:jt&&!$,isPaused:A.fetchStatus==="paused",isPlaceholderData:_,isRefetchError:jt&&$,isStale:zc(a,i),refetch:this.refetch,promise:this.#r};if(this.options.experimental_prefetchInRender){const X=F=>{M.status==="error"?F.reject(M.error):M.data!==void 0&&F.resolve(M.data)},W=()=>{const F=this.#r=M.promise=bc();X(F)},lt=this.#r;switch(lt.status){case"pending":a.queryHash===s.queryHash&&X(lt);break;case"fulfilled":(M.status==="error"||M.data!==lt.value)&&W();break;case"rejected":(M.status!=="error"||M.error!==lt.reason)&&W();break}}return M}updateResult(){const a=this.#n,i=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#u=this.options,this.#a.data!==void 0&&(this.#d=this.#t),Ti(i,a))return;this.#n=i;const s=()=>{if(!a)return!0;const{notifyOnChangeProps:c}=this.options,f=typeof c=="function"?c():c;if(f==="all"||!f&&!this.#v.size)return!0;const d=new Set(f??this.#v);return this.options.throwOnError&&d.add("error"),Object.keys(this.#n).some(h=>{const m=h;return this.#n[m]!==a[m]&&d.has(m)})};this.#_({listeners:s()})}#O(){const a=this.#e.getQueryCache().build(this.#e,this.options);if(a===this.#t)return;const i=this.#t;this.#t=a,this.#l=a.state,this.hasListeners()&&(i?.removeObserver(this),a.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#_(a){Bt.batch(()=>{a.listeners&&this.listeners.forEach(i=>{i(this.#n)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function E0(a,i){return Be(i.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&i.retryOnMount===!1)}function lm(a,i){return E0(a,i)||a.state.data!==void 0&&xc(a,i,i.refetchOnMount)}function xc(a,i,s){if(Be(i.enabled,a)!==!1&&Ql(i.staleTime,a)!=="static"){const c=typeof s=="function"?s(a):s;return c==="always"||c!==!1&&zc(a,i)}return!1}function nm(a,i,s,c){return(a!==i||Be(c.enabled,a)===!1)&&(!s.suspense||a.state.status!=="error")&&zc(a,s)}function zc(a,i){return Be(i.enabled,a)!==!1&&a.isStaleByTime(Ql(i.staleTime,a))}function j0(a,i){return!Ti(a.getCurrentResult(),i)}function am(a,i){const s=new Set(i);return a.filter(c=>!s.has(c))}function T0(a,i,s){const c=a.slice(0);return c[i]=s,c}var A0=class extends sn{#e;#t;#l;#n;#a;#u;#r;#i;#h=[];constructor(a,i,s){super(),this.#e=a,this.#n=s,this.#l=[],this.#a=[],this.#t=[],this.setQueries(i)}onSubscribe(){this.listeners.size===1&&this.#a.forEach(a=>{a.subscribe(i=>{this.#o(a,i)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#a.forEach(a=>{a.destroy()})}setQueries(a,i){this.#l=a,this.#n=i,Bt.batch(()=>{const s=this.#a,c=this.#c(this.#l);this.#h=c,c.forEach(m=>m.observer.setOptions(m.defaultedQueryOptions));const f=c.map(m=>m.observer),d=f.map(m=>m.getCurrentResult()),h=f.some((m,y)=>m!==s[y]);s.length===f.length&&!h||(this.#a=f,this.#t=d,this.hasListeners()&&(am(s,f).forEach(m=>{m.destroy()}),am(f,s).forEach(m=>{m.subscribe(y=>{this.#o(m,y)})}),this.#s()))})}getCurrentResult(){return this.#t}getQueries(){return this.#a.map(a=>a.getCurrentQuery())}getObservers(){return this.#a}getOptimisticResult(a,i){const s=this.#c(a),c=s.map(f=>f.observer.getOptimisticResult(f.defaultedQueryOptions));return[c,f=>this.#d(f??c,i),()=>this.#f(c,s)]}#f(a,i){return i.map((s,c)=>{const f=a[c];return s.defaultedQueryOptions.notifyOnChangeProps?f:s.observer.trackResult(f,d=>{i.forEach(h=>{h.observer.trackProp(d)})})})}#d(a,i){return i?((!this.#u||this.#t!==this.#i||i!==this.#r)&&(this.#r=i,this.#i=this.#t,this.#u=Ac(this.#u,i(a))),this.#u):a}#c(a){const i=new Map(this.#a.map(c=>[c.options.queryHash,c])),s=[];return a.forEach(c=>{const f=this.#e.defaultQueryOptions(c),d=i.get(f.queryHash);d?s.push({defaultedQueryOptions:f,observer:d}):s.push({defaultedQueryOptions:f,observer:new Wa(this.#e,f)})}),s}#o(a,i){const s=this.#a.indexOf(a);s!==-1&&(this.#t=T0(this.#t,s,i),this.#s())}#s(){if(this.hasListeners()){const a=this.#u,i=this.#f(this.#t,this.#h),s=this.#d(i,this.#n?.combine);a!==s&&Bt.batch(()=>{this.listeners.forEach(c=>{c(this.#t)})})}}},qm=class extends Wa{constructor(a,i){super(a,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(a){super.setOptions({...a,behavior:Ci()})}getOptimisticResult(a){return a.behavior=Ci(),super.getOptimisticResult(a)}fetchNextPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"backward"}}})}createResult(a,i){const{state:s}=a,c=super.createResult(a,i),{isFetching:f,isRefetching:d,isError:h,isRefetchError:m}=c,y=s.fetchMeta?.fetchMore?.direction,p=h&&y==="forward",A=f&&y==="forward",_=h&&y==="backward",R=f&&y==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:x0(i,s.data),hasPreviousPage:O0(i,s.data),isFetchNextPageError:p,isFetchingNextPage:A,isFetchPreviousPageError:_,isFetchingPreviousPage:R,isRefetchError:m&&!p&&!_,isRefetching:d&&!A&&!R}}},C0=class extends sn{#e;#t=void 0;#l;#n;constructor(i,s){super(),this.#e=i,this.setOptions(s),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const s=this.options;this.options=this.#e.defaultMutationOptions(i),Ti(this.options,s)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#l,observer:this}),s?.mutationKey&&this.options.mutationKey&&wl(s.mutationKey)!==wl(this.options.mutationKey)?this.reset():this.#l?.state.status==="pending"&&this.#l.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#l?.removeObserver(this)}onMutationUpdate(i){this.#a(),this.#u(i)}getCurrentResult(){return this.#t}reset(){this.#l?.removeObserver(this),this.#l=void 0,this.#a(),this.#u()}mutate(i,s){return this.#n=s,this.#l?.removeObserver(this),this.#l=this.#e.getMutationCache().build(this.#e,this.options),this.#l.addObserver(this),this.#l.execute(i)}#a(){const i=this.#l?.state??Rm();this.#t={...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset}}#u(i){Bt.batch(()=>{if(this.#n&&this.hasListeners()){const s=this.#t.variables,c=this.#t.context;i?.type==="success"?(this.#n.onSuccess?.(i.data,s,c),this.#n.onSettled?.(i.data,null,s,c)):i?.type==="error"&&(this.#n.onError?.(i.error,s,c),this.#n.onSettled?.(void 0,i.error,s,c))}this.listeners.forEach(s=>{s(this.#t)})})}},Qm=B.createContext(void 0),Ia=a=>{const i=B.useContext(Qm);if(a)return a;if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},z0=({client:a,children:i})=>(B.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),b.jsx(Qm.Provider,{value:a,children:i})),wm=B.createContext(!1),Hm=()=>B.useContext(wm);wm.Provider;function M0(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var D0=B.createContext(M0()),Bm=()=>B.useContext(D0),Lm=(a,i)=>{(a.suspense||a.throwOnError||a.experimental_prefetchInRender)&&(i.isReset()||(a.retryOnMount=!1))},Ym=a=>{B.useEffect(()=>{a.clearReset()},[a])},Gm=({result:a,errorResetBoundary:i,throwOnError:s,query:c,suspense:f})=>a.isError&&!i.isReset()&&!a.isFetching&&c&&(f&&a.data===void 0||Am(s,[a.error,c])),Mc=(a,i)=>i.state.data===void 0,Xm=a=>{if(a.suspense){const i=c=>c==="static"?c:Math.max(c??1e3,1e3),s=a.staleTime;a.staleTime=typeof s=="function"?(...c)=>i(s(...c)):i(s),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},Km=(a,i)=>a.isLoading&&a.isFetching&&!i,Oc=(a,i)=>a?.suspense&&i.isPending,zi=(a,i,s)=>i.fetchOptimistic(a).catch(()=>{s.clearReset()});function Zm({queries:a,...i},s){const c=Ia(s),f=Hm(),d=Bm(),h=B.useMemo(()=>a.map(q=>{const P=c.defaultQueryOptions(q);return P._optimisticResults=f?"isRestoring":"optimistic",P}),[a,c,f]);h.forEach(q=>{Xm(q),Lm(q,d)}),Ym(d);const[m]=B.useState(()=>new A0(c,h,i)),[y,p,A]=m.getOptimisticResult(h,i.combine),_=!f&&i.subscribed!==!1;B.useSyncExternalStore(B.useCallback(q=>_?m.subscribe(Bt.batchCalls(q)):ae,[m,_]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),B.useEffect(()=>{m.setQueries(h,i)},[h,i,m]);const Y=y.some((q,P)=>Oc(h[P],q))?y.flatMap((q,P)=>{const it=h[P];if(it){const ht=new Wa(c,it);if(Oc(it,q))return zi(it,ht,d);Km(q,f)&&zi(it,ht,d)}return[]}):[];if(Y.length>0)throw Promise.all(Y);const Z=y.find((q,P)=>{const it=h[P];return it&&Gm({result:q,errorResetBoundary:d,throwOnError:it.throwOnError,query:c.getQueryCache().get(it.queryHash),suspense:it.suspense})});if(Z?.error)throw Z.error;return p(A())}function Ni(a,i,s){const c=Hm(),f=Bm(),d=Ia(s),h=d.defaultQueryOptions(a);d.getDefaultOptions().queries?._experimental_beforeQuery?.(h),h._optimisticResults=c?"isRestoring":"optimistic",Xm(h),Lm(h,f),Ym(f);const m=!d.getQueryCache().get(h.queryHash),[y]=B.useState(()=>new i(d,h)),p=y.getOptimisticResult(h),A=!c&&a.subscribed!==!1;if(B.useSyncExternalStore(B.useCallback(_=>{const R=A?y.subscribe(Bt.batchCalls(_)):ae;return y.updateResult(),R},[y,A]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),B.useEffect(()=>{y.setOptions(h)},[h,y]),Oc(h,p))throw zi(h,y,f);if(Gm({result:p,errorResetBoundary:f,throwOnError:h.throwOnError,query:d.getQueryCache().get(h.queryHash),suspense:h.suspense}))throw p.error;return d.getDefaultOptions().queries?._experimental_afterQuery?.(h,p),h.experimental_prefetchInRender&&!un&&Km(p,c)&&(m?zi(h,y,f):d.getQueryCache().get(h.queryHash)?.promise)?.catch(ae).finally(()=>{y.updateResult()}),h.notifyOnChangeProps?p:y.trackResult(p)}function N0(a,i){return Ni(a,Wa,i)}function R0(a,i){return Ni({...a,enabled:!0,suspense:!0,throwOnError:Mc,placeholderData:void 0},Wa,i)}function U0(a,i){return Ni({...a,enabled:!0,suspense:!0,throwOnError:Mc},qm,i)}function q0(a,i){return Zm({...a,queries:a.queries.map(s=>({...s,suspense:!0,throwOnError:Mc,enabled:!0,placeholderData:void 0}))},i)}function Q0(a,i){const s=Ia(i);s.getQueryState(a.queryKey)||s.prefetchQuery(a)}function w0(a,i){const s=Ia(i);s.getQueryState(a.queryKey)||s.prefetchInfiniteQuery(a)}function H0(a,i){const s=Ia(i),[c]=B.useState(()=>new C0(s,a));B.useEffect(()=>{c.setOptions(a)},[c,a]);const f=B.useSyncExternalStore(B.useCallback(h=>c.subscribe(Bt.batchCalls(h)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),d=B.useCallback((h,m)=>{c.mutate(h,m).catch(ae)},[c]);if(f.error&&Am(c.options.throwOnError,[f.error]))throw f.error;return{...f,mutate:d,mutateAsync:f.mutate}}function B0(a,i){return Ni(a,qm,i)}function L0(a,i){if(a instanceof RegExp)return{keys:!1,pattern:a};var s,c,f,d,h=[],m="",y=a.split("/");for(y[0]||y.shift();f=y.shift();)s=f[0],s==="*"?(h.push(s),m+=f[1]==="?"?"(?:/(.*))?":"/(.*)"):s===":"?(c=f.indexOf("?",1),d=f.indexOf(".",1),h.push(f.substring(1,~c?c:~d?d:f.length)),m+=~c&&!~d?"(?:/([^/]+?))?":"/([^/]+?)",~d&&(m+=(~c?"?":"")+"\\"+f.substring(d))):m+="/"+f;return{keys:h,pattern:new RegExp("^"+m+(i?"(?=$|/)":"/?$"),"i")}}var cc={exports:{}},oc={};/**
 * @license React
 * use-sync-external-store-shim.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 um;function Y0(){if(um)return oc;um=1;var a=Di();function i(_,R){return _===R&&(_!==0||1/_===1/R)||_!==_&&R!==R}var s=typeof Object.is=="function"?Object.is:i,c=a.useState,f=a.useEffect,d=a.useLayoutEffect,h=a.useDebugValue;function m(_,R){var Y=R(),Z=c({inst:{value:Y,getSnapshot:R}}),q=Z[0].inst,P=Z[1];return d(function(){q.value=Y,q.getSnapshot=R,y(q)&&P({inst:q})},[_,Y,R]),f(function(){return y(q)&&P({inst:q}),_(function(){y(q)&&P({inst:q})})},[_]),h(Y),Y}function y(_){var R=_.getSnapshot;_=_.value;try{var Y=R();return!s(_,Y)}catch{return!0}}function p(_,R){return R()}var A=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:m;return oc.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:A,oc}var im;function G0(){return im||(im=1,cc.exports=Y0()),cc.exports}var X0=G0();const K0=Em.useInsertionEffect,Z0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",V0=Z0?B.useLayoutEffect:B.useEffect,J0=K0||V0,Vm=a=>{const i=B.useRef([a,(...s)=>i[0](...s)]).current;return J0(()=>{i[0]=a}),i[1]},k0="popstate",Dc="pushState",Nc="replaceState",F0="hashchange",rm=[k0,Dc,Nc,F0],$0=a=>{for(const i of rm)addEventListener(i,a);return()=>{for(const i of rm)removeEventListener(i,a)}},Jm=(a,i)=>X0.useSyncExternalStore($0,a,i),P0=()=>location.search,W0=({ssrSearch:a=""}={})=>Jm(P0,()=>a),sm=()=>location.pathname,I0=({ssrPath:a}={})=>Jm(sm,a?()=>a:sm),tg=(a,{replace:i=!1,state:s=null}={})=>history[i?Nc:Dc](s,"",a),eg=(a={})=>[I0(a),tg],cm=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[cm]>"u"){for(const a of[Dc,Nc]){const i=history[a];history[a]=function(){const s=i.apply(this,arguments),c=new Event(a);return c.arguments=arguments,dispatchEvent(c),s}}Object.defineProperty(window,cm,{value:!0})}const lg=(a,i)=>i.toLowerCase().indexOf(a.toLowerCase())?"~"+i:i.slice(a.length)||"/",km=(a="")=>a==="/"?"":a,ng=(a,i)=>a[0]==="~"?a.slice(1):km(i)+a,ag=(a="",i)=>lg(_c(km(a)),_c(i)),ug=a=>a[0]==="?"?a.slice(1):a,_c=a=>{try{return decodeURI(a)}catch{return a}},ig=a=>_c(ug(a)),Fm={hook:eg,searchHook:W0,parser:L0,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:a=>a},$m=B.createContext(Fm),Pn=()=>B.useContext($m),Pm={},Wm=B.createContext(Pm),Rc=()=>B.useContext(Wm),Ri=a=>{const[i,s]=a.hook(a);return[ag(a.base,i),Vm((c,f)=>s(ng(c,a.base),f))]},rg=()=>Ri(Pn()),sg=()=>{const a=Pn();return ig(a.searchHook(a))},Im=(a,i,s,c)=>{const{pattern:f,keys:d}=i instanceof RegExp?{keys:!1,pattern:i}:a(i||"*",c),h=f.exec(s)||[],[m,...y]=h;return m!==void 0?[!0,(()=>{const p=d!==!1?Object.fromEntries(d.map((_,R)=>[_,y[R]])):h.groups;let A={...y};return p&&Object.assign(A,p),A})(),...c?[m]:[]]:[!1,null]},cg=({children:a,...i})=>{const s=Pn(),c=i.hook?Fm:s;let f=c;const[d,h]=i.ssrPath?.split("?")??[];h&&(i.ssrSearch=h,i.ssrPath=d),i.hrefs=i.hrefs??i.hook?.hrefs;let m=B.useRef({}),y=m.current,p=y;for(let A in c){const _=A==="base"?c[A]+(i[A]||""):i[A]||c[A];y===p&&_!==p[A]&&(m.current=p={...p}),p[A]=_,_!==c[A]&&(f=p)}return B.createElement($m.Provider,{value:f,children:a})},om=({children:a,component:i},s)=>i?B.createElement(i,{params:s}):typeof a=="function"?a(s):a,og=a=>{let i=B.useRef(Pm),s=i.current;for(const c in a)a[c]!==s[c]&&(s=a);return Object.keys(a).length===0&&(s=a),i.current=s},Fn=({path:a,nest:i,match:s,...c})=>{const f=Pn(),[d]=Ri(f),[h,m,y]=s??Im(f.parser,a,d,i),p=og({...Rc(),...m});if(!h)return null;const A=y?B.createElement(cg,{base:y},om(c,p)):om(c,p);return B.createElement(Wm.Provider,{value:p,children:A})};B.forwardRef((a,i)=>{const s=Pn(),[c,f]=Ri(s),{to:d="",href:h=d,onClick:m,asChild:y,children:p,className:A,replace:_,state:R,...Y}=a,Z=Vm(P=>{P.ctrlKey||P.metaKey||P.altKey||P.shiftKey||P.button!==0||(m?.(P),P.defaultPrevented||(P.preventDefault(),f(h,a)))}),q=s.hrefs(h[0]==="~"?h.slice(1):s.base+h,s);return y&&B.isValidElement(p)?B.cloneElement(p,{onClick:Z,href:q}):B.createElement("a",{...Y,onClick:Z,href:q,className:A?.call?A(c===h):A,children:p,ref:i})});const tv=a=>Array.isArray(a)?a.flatMap(i=>tv(i&&i.type===B.Fragment?i.props.children:i)):[a],fg=({children:a,location:i})=>{const s=Pn(),[c]=Ri(s);for(const f of tv(a)){let d=0;if(B.isValidElement(f)&&(d=Im(s.parser,f.props.path,i||c,f.props.nest))[0])return B.cloneElement(f,{match:d})}return null};function rn(a){return!!a&&!Array.isArray(a)&&typeof a=="object"}const dg=typeof Symbol=="function"&&!!Symbol.asyncIterator;function ev(a){return dg&&rn(a)&&Symbol.asyncIterator in a}var hg=Object.create,lv=Object.defineProperty,mg=Object.getOwnPropertyDescriptor,nv=Object.getOwnPropertyNames,vg=Object.getPrototypeOf,yg=Object.prototype.hasOwnProperty,tu=(a,i)=>function(){return i||(0,a[nv(a)[0]])((i={exports:{}}).exports,i),i.exports},pg=(a,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(var f=nv(i),d=0,h=f.length,m;d<h;d++)m=f[d],!yg.call(a,m)&&m!==s&&lv(a,m,{get:(y=>i[y]).bind(null,m),enumerable:!(c=mg(i,m))||c.enumerable});return a},Ui=(a,i,s)=>(s=a!=null?hg(vg(a)):{},pg(lv(s,"default",{value:a,enumerable:!0}),a));const av=()=>{},fm=a=>{Object.freeze&&Object.freeze(a)};function uv(a,i,s){var c;const f=i.join(".");return(c=s[f])!==null&&c!==void 0||(s[f]=new Proxy(av,{get(d,h){if(!(typeof h!="string"||h==="then"))return uv(a,[...i,h],s)},apply(d,h,m){const y=i[i.length-1];let p={args:m,path:i};return y==="call"?p={args:m.length>=2?[m[1]]:[],path:i.slice(0,-1)}:y==="apply"&&(p={args:m.length>=2?m[1]:[],path:i.slice(0,-1)}),fm(p.args),fm(p.path),a(p)}})),s[f]}const qi=a=>uv(a,[],Object.create(null)),Uc=a=>new Proxy(av,{get(i,s){if(s!=="then")return a(s)}});var iv=tu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,i){function s(c){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},i.exports.__esModule=!0,i.exports.default=i.exports,s(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),gg=tu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var s=iv().default;function c(f,d){if(s(f)!="object"||!f)return f;var h=f[Symbol.toPrimitive];if(h!==void 0){var m=h.call(f,d||"default");if(s(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(f)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),bg=tu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var s=iv().default,c=gg();function f(d){var h=c(d,"string");return s(h)=="symbol"?h:h+""}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}}),rv=tu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var s=bg();function c(f,d,h){return(d=s(d))in f?Object.defineProperty(f,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[d]=h,f}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),qc=tu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,i){var s=rv();function c(d,h){var m=Object.keys(d);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(d);h&&(y=y.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),m.push.apply(m,y)}return m}function f(d){for(var h=1;h<arguments.length;h++){var m=arguments[h]!=null?arguments[h]:{};h%2?c(Object(m),!0).forEach(function(y){s(d,y,m[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(m)):c(Object(m)).forEach(function(y){Object.defineProperty(d,y,Object.getOwnPropertyDescriptor(m,y))})}return d}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}});Ui(qc());Ui(rv());var xi=Ui(qc());function Sg(a,i){if("error"in a){const c=i.deserialize(a.error);return{ok:!1,error:(0,xi.default)((0,xi.default)({},a),{},{error:c})}}return{ok:!0,result:(0,xi.default)((0,xi.default)({},a.result),(!a.result.type||a.result.type==="data")&&{type:"data",data:i.deserialize(a.result.data)})}}var fc=class extends Error{constructor(){super("Unable to transform response from server")}};function xg(a,i){let s;try{s=Sg(a,i)}catch{throw new fc}if(!s.ok&&(!rn(s.error.error)||typeof s.error.error.code!="number"))throw new fc;if(s.ok&&!rn(s.result))throw new fc;return s}Ui(qc());function Qi(a){const i={subscribe(s){let c=null,f=!1,d=!1,h=!1;function m(){if(c===null){h=!0;return}d||(d=!0,typeof c=="function"?c():c&&c.unsubscribe())}return c=a({next(y){var p;f||(p=s.next)===null||p===void 0||p.call(s,y)},error(y){var p;f||(f=!0,(p=s.error)===null||p===void 0||p.call(s,y),m())},complete(){var y;f||(f=!0,(y=s.complete)===null||y===void 0||y.call(s),m())}}),h&&m(),{unsubscribe:m}},pipe(...s){return s.reduce(Og,i)}};return i}function Og(a,i){return i(a)}function _g(a){const i=new AbortController;return new Promise((c,f)=>{let d=!1;function h(){d||(d=!0,m.unsubscribe())}i.signal.addEventListener("abort",()=>{f(i.signal.reason)});const m=a.subscribe({next(y){d=!0,c(y),h()},error(y){f(y)},complete(){i.abort(),h()}})})}var Eg=Object.create,sv=Object.defineProperty,jg=Object.getOwnPropertyDescriptor,cv=Object.getOwnPropertyNames,Tg=Object.getPrototypeOf,Ag=Object.prototype.hasOwnProperty,Hl=(a,i)=>function(){return i||(0,a[cv(a)[0]])((i={exports:{}}).exports,i),i.exports},Cg=(a,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(var f=cv(i),d=0,h=f.length,m;d<h;d++)m=f[d],!Ag.call(a,m)&&m!==s&&sv(a,m,{get:(y=>i[y]).bind(null,m),enumerable:!(c=jg(i,m))||c.enumerable});return a},cn=(a,i,s)=>(s=a!=null?Eg(Tg(a)):{},Cg(i||!a||!a.__esModule?sv(s,"default",{value:a,enumerable:!0}):s,a)),zg=Hl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(a,i){function s(c,f){if(c==null)return{};var d={};for(var h in c)if({}.hasOwnProperty.call(c,h)){if(f.includes(h))continue;d[h]=c[h]}return d}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Mg=Hl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(a,i){var s=zg();function c(f,d){if(f==null)return{};var h,m,y=s(f,d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(f);for(m=0;m<p.length;m++)h=p[m],d.includes(h)||{}.propertyIsEnumerable.call(f,h)&&(y[h]=f[h])}return y}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),ov=Hl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,i){function s(c){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},i.exports.__esModule=!0,i.exports.default=i.exports,s(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Dg=Hl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var s=ov().default;function c(f,d){if(s(f)!="object"||!f)return f;var h=f[Symbol.toPrimitive];if(h!==void 0){var m=h.call(f,d||"default");if(s(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(f)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ng=Hl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var s=ov().default,c=Dg();function f(d){var h=c(d,"string");return s(h)=="symbol"?h:h+""}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}}),Rg=Hl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var s=Ng();function c(f,d,h){return(d=s(d))in f?Object.defineProperty(f,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[d]=h,f}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),eu=Hl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,i){var s=Rg();function c(d,h){var m=Object.keys(d);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(d);h&&(y=y.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),m.push.apply(m,y)}return m}function f(d){for(var h=1;h<arguments.length;h++){var m=arguments[h]!=null?arguments[h]:{};h%2?c(Object(m),!0).forEach(function(y){s(d,y,m[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(m)):c(Object(m)).forEach(function(y){Object.defineProperty(d,y,Object.getOwnPropertyDescriptor(m,y))})}return d}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ug=cn(Mg(),1),dm=cn(eu(),1);const qg=["cursor","direction"];function Ze(a,i,s){const c=a.flatMap(f=>f.split("."));if(!i&&(!s||s==="any"))return c.length?[c]:[];if(s==="infinite"&&rn(i)&&("direction"in i||"cursor"in i)){const{cursor:f,direction:d}=i,h=(0,Ug.default)(i,qg);return[c,{input:h,type:"infinite"}]}return[c,(0,dm.default)((0,dm.default)({},typeof i<"u"&&i!==je&&{input:i}),s&&s!=="any"&&{type:s})]}function Ei(a){return Ze(a,void 0,"any")}var Qg=Object.create,fv=Object.defineProperty,wg=Object.getOwnPropertyDescriptor,dv=Object.getOwnPropertyNames,Hg=Object.getPrototypeOf,Bg=Object.prototype.hasOwnProperty,Ve=(a,i)=>function(){return i||(0,a[dv(a)[0]])((i={exports:{}}).exports,i),i.exports},Lg=(a,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(var f=dv(i),d=0,h=f.length,m;d<h;d++)m=f[d],!Bg.call(a,m)&&m!==s&&fv(a,m,{get:(y=>i[y]).bind(null,m),enumerable:!(c=wg(i,m))||c.enumerable});return a},Xt=(a,i,s)=>(s=a!=null?Qg(Hg(a)):{},Lg(i||!a||!a.__esModule?fv(s,"default",{value:a,enumerable:!0}):s,a)),hv=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,i){function s(c){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},i.exports.__esModule=!0,i.exports.default=i.exports,s(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Yg=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var s=hv().default;function c(f,d){if(s(f)!="object"||!f)return f;var h=f[Symbol.toPrimitive];if(h!==void 0){var m=h.call(f,d||"default");if(s(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(f)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Gg=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var s=hv().default,c=Yg();function f(d){var h=c(d,"string");return s(h)=="symbol"?h:h+""}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}}),on=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var s=Gg();function c(f,d,h){return(d=s(d))in f?Object.defineProperty(f,d,{value:h,enumerable:!0,configurable:!0,writable:!0}):f[d]=h,f}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Le=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,i){var s=on();function c(d,h){var m=Object.keys(d);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(d);h&&(y=y.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),m.push.apply(m,y)}return m}function f(d){for(var h=1;h<arguments.length;h++){var m=arguments[h]!=null?arguments[h]:{};h%2?c(Object(m),!0).forEach(function(y){s(d,y,m[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(m)):c(Object(m)).forEach(function(y){Object.defineProperty(d,y,Object.getOwnPropertyDescriptor(m,y))})}return d}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}});function Xg(a){return i=>{let s=0,c=null;const f=[];function d(){c||(c=i.subscribe({next(m){for(const p of f){var y;(y=p.next)===null||y===void 0||y.call(p,m)}},error(m){for(const p of f){var y;(y=p.error)===null||y===void 0||y.call(p,m)}},complete(){for(const y of f){var m;(m=y.complete)===null||m===void 0||m.call(y)}}}))}function h(){if(s===0&&c){const m=c;c=null,m.unsubscribe()}}return Qi(m=>(s++,f.push(m),d(),{unsubscribe(){s--,h();const y=f.findIndex(p=>p===m);y>-1&&f.splice(y,1)}}))}}function Kg(a){let i=a;const s=[],c=h=>{i!==void 0&&h.next(i),s.push(h)},f=h=>{s.splice(s.indexOf(h),1)},d=Qi(h=>(c(h),()=>{f(h)}));return d.next=h=>{if(i!==h){i=h;for(const m of s)m.next(h)}},d.get=()=>i,d}function Zg(a){return Qi(i=>{function s(f=0,d=a.op){const h=a.links[f];if(!h)throw new Error("No more links to execute - did you forget to add an ending link?");return h({op:d,next(y){return s(f+1,y)}})}return s().subscribe(i)})}var Oi=Xt(on(),1),$n=Xt(Le(),1);function Vg(a){return a instanceof Mi}function Jg(a){return rn(a)&&rn(a.error)&&typeof a.error.code=="number"&&typeof a.error.message=="string"}function kg(a,i){return typeof a=="string"?a:rn(a)&&typeof a.message=="string"?a.message:i}var Mi=class ji extends Error{constructor(i,s){var c,f;const d=s?.cause;super(i,{cause:d}),(0,Oi.default)(this,"cause",void 0),(0,Oi.default)(this,"shape",void 0),(0,Oi.default)(this,"data",void 0),(0,Oi.default)(this,"meta",void 0),this.meta=s?.meta,this.cause=d,this.shape=s==null||(c=s.result)===null||c===void 0?void 0:c.error,this.data=s==null||(f=s.result)===null||f===void 0?void 0:f.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,ji.prototype)}static from(i,s={}){const c=i;return Vg(c)?(s.meta&&(c.meta=(0,$n.default)((0,$n.default)({},c.meta),s.meta)),c):Jg(c)?new ji(c.error.message,(0,$n.default)((0,$n.default)({},s),{},{result:c})):new ji(kg(c,"Unknown error"),(0,$n.default)((0,$n.default)({},s),{},{cause:c}))}};function Fg(a){const i=a;return i?"input"in i?i:{input:i,output:i}:{input:{serialize:s=>s,deserialize:s=>s},output:{serialize:s=>s,deserialize:s=>s}}}const hm=a=>typeof a=="function";function $g(a){if(a)return a;if(typeof window<"u"&&hm(window.fetch))return window.fetch;if(typeof globalThis<"u"&&hm(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var ka=Xt(Le());function Pg(a){return{url:a.url.toString(),fetch:a.fetch,transformer:Fg(a.transformer),methodOverride:a.methodOverride}}function Wg(a){const i={};for(let s=0;s<a.length;s++){const c=a[s];i[s]=c}return i}const Ig={query:"GET",mutation:"POST",subscription:"PATCH"};function mv(a){return"input"in a?a.transformer.input.serialize(a.input):Wg(a.inputs.map(i=>a.transformer.input.serialize(i)))}const vv=a=>{const i=a.url.split("?");let c=i[0].replace(/\/$/,"")+"/"+a.path;const f=[];if(i[1]&&f.push(i[1]),"inputs"in a&&f.push("batch=1"),a.type==="query"||a.type==="subscription"){const d=mv(a);d!==void 0&&a.methodOverride!=="POST"&&f.push(`input=${encodeURIComponent(JSON.stringify(d))}`)}return f.length&&(c+="?"+f.join("&")),c},tb=a=>{if(a.type==="query"&&a.methodOverride!=="POST")return;const i=mv(a);return i!==void 0?JSON.stringify(i):void 0},eb=a=>ub((0,ka.default)((0,ka.default)({},a),{},{contentTypeHeader:"application/json",getUrl:vv,getBody:tb}));var lb=class extends Error{constructor(){const a="AbortError";super(a),this.name=a,this.message=a}};const nb=a=>{var i;if(a?.aborted)throw(i=a.throwIfAborted)===null||i===void 0||i.call(a),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new lb};async function ab(a){var i;nb(a.signal);const s=a.getUrl(a),c=a.getBody(a),f=(i=a.methodOverride)!==null&&i!==void 0?i:Ig[a.type],d=await(async()=>{const m=await a.headers();return Symbol.iterator in m?Object.fromEntries(m):m})(),h=(0,ka.default)((0,ka.default)((0,ka.default)({},a.contentTypeHeader&&f!=="GET"?{"content-type":a.contentTypeHeader}:{}),a.trpcAcceptHeader?{"trpc-accept":a.trpcAcceptHeader}:void 0),d);return $g(a.fetch)(s,{method:f,signal:a.signal,body:c,headers:h})}async function ub(a){const i={},s=await ab(a);i.response=s;const c=await s.json();return i.responseJSON=c,{json:c,meta:i}}Xt(Le(),1);const mm=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function vm(a){let i=null,s=null;const c=()=>{clearTimeout(s),s=null,i=null};function f(m){const y=[[]];let p=0;for(;;){const R=m[p];if(!R)break;const Y=y[y.length-1];if(R.aborted){var A;(A=R.reject)===null||A===void 0||A.call(R,new Error("Aborted")),p++;continue}if(a.validate(Y.concat(R).map(q=>q.key))){Y.push(R),p++;continue}if(Y.length===0){var _;(_=R.reject)===null||_===void 0||_.call(R,new Error("Input is too big for a single dispatch")),p++;continue}y.push([])}return y}function d(){const m=f(i);c();for(const y of m){if(!y.length)continue;const p={items:y};for(const _ of y)_.batch=p;a.fetch(p.items.map(_=>_.key)).then(async _=>{await Promise.all(_.map(async(Y,Z)=>{const q=p.items[Z];try{var P;const ht=await Promise.resolve(Y);(P=q.resolve)===null||P===void 0||P.call(q,ht)}catch(ht){var it;(it=q.reject)===null||it===void 0||it.call(q,ht)}q.batch=null,q.reject=null,q.resolve=null}));for(const Y of p.items){var R;(R=Y.reject)===null||R===void 0||R.call(Y,new Error("Missing result")),Y.batch=null}}).catch(_=>{for(const Y of p.items){var R;(R=Y.reject)===null||R===void 0||R.call(Y,_),Y.batch=null}})}}function h(m){var y;const p={aborted:!1,key:m,batch:null,resolve:mm,reject:mm},A=new Promise((_,R)=>{var Y;p.reject=R,p.resolve=_,(Y=i)!==null&&Y!==void 0||(i=[]),i.push(p)});return(y=s)!==null&&y!==void 0||(s=setTimeout(d)),A}return{load:h}}function ib(...a){const i=new AbortController,s=a.length;let c=0;const f=()=>{++c===s&&i.abort()};for(const d of a)d?.aborted?f():d?.addEventListener("abort",f,{once:!0});return i.signal}var _i=Xt(Le(),1);function rb(a){var i,s;const c=Pg(a),f=(i=a.maxURLLength)!==null&&i!==void 0?i:1/0,d=(s=a.maxItems)!==null&&s!==void 0?s:1/0;return()=>{const h=A=>({validate(_){if(f===1/0&&d===1/0)return!0;if(_.length>d)return!1;const R=_.map(q=>q.path).join(","),Y=_.map(q=>q.input);return vv((0,_i.default)((0,_i.default)({},c),{},{type:A,path:R,inputs:Y,signal:null})).length<=f},async fetch(_){const R=_.map(ht=>ht.path).join(","),Y=_.map(ht=>ht.input),Z=ib(..._.map(ht=>ht.signal)),q=await eb((0,_i.default)((0,_i.default)({},c),{},{path:R,inputs:Y,type:A,headers(){return a.headers?typeof a.headers=="function"?a.headers({opList:_}):a.headers:{}},signal:Z}));return(Array.isArray(q.json)?q.json:_.map(()=>q.json)).map(ht=>({meta:q.meta,json:ht}))}}),m=vm(h("query")),y=vm(h("mutation")),p={query:m,mutation:y};return({op:A})=>Qi(_=>{/* istanbul ignore if -- @preserve */if(A.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const Y=p[A.type].load(A);let Z;return Y.then(q=>{Z=q;const P=xg(q.json,c.transformer.output);if(!P.ok){_.error(Mi.from(P.error,{meta:q.meta}));return}_.next({context:q.meta,result:P.result}),_.complete()}).catch(q=>{_.error(Mi.from(q,{meta:Z?.meta}))}),()=>{}})}}Xt(Le(),1);const yv=(a,...i)=>typeof a=="function"?a(...i):a;Xt(on(),1);function sb(){let a,i;return{promise:new Promise((c,f)=>{a=c,i=f}),resolve:a,reject:i}}async function cb(a){const i=await yv(a.url);if(!a.connectionParams)return i;const c=`${i.includes("?")?"&":"?"}connectionParams=1`;return i+c}async function ob(a){const i={method:"connectionParams",data:await yv(a)};return JSON.stringify(i)}Xt(on(),1);var an=Xt(on(),1);function fb(a){const{promise:i,resolve:s,reject:c}=sb();return a.addEventListener("open",()=>{a.removeEventListener("error",c),s()}),a.addEventListener("error",c),i}function db(a,{intervalMs:i,pongTimeoutMs:s}){let c,f;function d(){c=setTimeout(()=>{a.send("PING"),f=setTimeout(()=>{a.close()},s)},i)}function h(){clearTimeout(c),d()}function m(){clearTimeout(f),h()}a.addEventListener("open",d),a.addEventListener("message",({data:y})=>{clearTimeout(c),d(),y==="PONG"&&m()}),a.addEventListener("close",()=>{clearTimeout(c),clearTimeout(f)})}var hb=class Ec{constructor(i){var s;if((0,an.default)(this,"id",++Ec.connectCount),(0,an.default)(this,"WebSocketPonyfill",void 0),(0,an.default)(this,"urlOptions",void 0),(0,an.default)(this,"keepAliveOpts",void 0),(0,an.default)(this,"wsObservable",Kg(null)),(0,an.default)(this,"openPromise",null),this.WebSocketPonyfill=(s=i.WebSocketPonyfill)!==null&&s!==void 0?s:WebSocket,!this.WebSocketPonyfill)throw new Error("No WebSocket implementation found - you probably don't want to use this on the server, but if you do you need to pass a `WebSocket`-ponyfill");this.urlOptions=i.urlOptions,this.keepAliveOpts=i.keepAlive}get ws(){return this.wsObservable.get()}set ws(i){this.wsObservable.next(i)}isOpen(){return!!this.ws&&this.ws.readyState===this.WebSocketPonyfill.OPEN&&!this.openPromise}isClosed(){return!!this.ws&&(this.ws.readyState===this.WebSocketPonyfill.CLOSING||this.ws.readyState===this.WebSocketPonyfill.CLOSED)}async open(){var i=this;if(i.openPromise)return i.openPromise;i.id=++Ec.connectCount;const s=cb(i.urlOptions).then(c=>new i.WebSocketPonyfill(c));i.openPromise=s.then(async c=>{i.ws=c,c.addEventListener("message",function({data:f}){f==="PING"&&this.send("PONG")}),i.keepAliveOpts.enabled&&db(c,i.keepAliveOpts),c.addEventListener("close",()=>{i.ws===c&&(i.ws=null)}),await fb(c),i.urlOptions.connectionParams&&c.send(await ob(i.urlOptions.connectionParams))});try{await i.openPromise}finally{i.openPromise=null}}async close(){var i=this;try{await i.openPromise}finally{var s;(s=i.ws)===null||s===void 0||s.close()}}};(0,an.default)(hb,"connectCount",0);Xt(on(),1);Xt(Le(),1);var dc=Xt(on(),1),ym=Xt(Le(),1),wi=class{constructor(a){(0,dc.default)(this,"links",void 0),(0,dc.default)(this,"runtime",void 0),(0,dc.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=a.links.map(i=>i(this.runtime))}$request(a){var i;return Zg({links:this.links,op:(0,ym.default)((0,ym.default)({},a),{},{context:(i=a.context)!==null&&i!==void 0?i:{},id:++this.requestId})}).pipe(Xg())}async requestAsPromise(a){var i=this;try{const s=i.$request(a);return(await _g(s)).result.data}catch(s){throw Mi.from(s)}}query(a,i,s){return this.requestAsPromise({type:"query",path:a,input:i,context:s?.context,signal:s?.signal})}mutation(a,i,s){return this.requestAsPromise({type:"mutation",path:a,input:i,context:s?.context,signal:s?.signal})}subscription(a,i,s){return this.$request({type:"subscription",path:a,input:i,context:s.context,signal:s.signal}).subscribe({next(f){switch(f.result.type){case"state":{var d;(d=s.onConnectionStateChange)===null||d===void 0||d.call(s,f.result);break}case"started":{var h;(h=s.onStarted)===null||h===void 0||h.call(s,{context:f.context});break}case"stopped":{var m;(m=s.onStopped)===null||m===void 0||m.call(s);break}case"data":case void 0:{var y;(y=s.onData)===null||y===void 0||y.call(s,f.result.data);break}}},error(f){var d;(d=s.onError)===null||d===void 0||d.call(s,f)},complete(){var f;(f=s.onComplete)===null||f===void 0||f.call(s)}})}};const pv=Symbol.for("trpc_untypedClient"),mb={query:"query",mutate:"mutation",subscribe:"subscription"},vb=a=>mb[a];function gv(a){const i=qi(({path:s,args:c})=>{const f=[...s],d=vb(f.pop()),h=f.join(".");return a[d](h,...c)});return Uc(s=>s===pv?a:i[s])}function yb(a){const i=new wi(a);return gv(i)}function Qc(a){return a[pv]}Xt(Le(),1);Xt(Le(),1);var pb=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(a,i){function s(f){var d,h,m,y=2;for(typeof Symbol<"u"&&(h=Symbol.asyncIterator,m=Symbol.iterator);y--;){if(h&&(d=f[h])!=null)return d.call(f);if(m&&(d=f[m])!=null)return new c(d.call(f));h="@@asyncIterator",m="@@iterator"}throw new TypeError("Object is not async iterable")}function c(f){function d(h){if(Object(h)!==h)return Promise.reject(new TypeError(h+" is not an object."));var m=h.done;return Promise.resolve(h.value).then(function(y){return{value:y,done:m}})}return c=function(m){this.s=m,this.n=m.next},c.prototype={s:null,n:null,next:function(){return d(this.n.apply(this.s,arguments))},return:function(m){var y=this.s.return;return y===void 0?Promise.resolve({value:m,done:!0}):d(y.apply(this.s,arguments))},throw:function(m){var y=this.s.return;return y===void 0?Promise.reject(m):d(y.apply(this.s,arguments))}},new c(f)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}});Xt(pb(),1);Xt(Le(),1);var gb=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(a,i){function s(){var c=typeof SuppressedError=="function"?SuppressedError:function(m,y){var p=Error();return p.name="SuppressedError",p.error=m,p.suppressed=y,p},f={},d=[];function h(m,y){if(y!=null){if(Object(y)!==y)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(m)var p=y[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(p===void 0&&(p=y[Symbol.dispose||Symbol.for("Symbol.dispose")],m))var A=p;if(typeof p!="function")throw new TypeError("Object is not disposable.");A&&(p=function(){try{A.call(y)}catch(R){return Promise.reject(R)}}),d.push({v:y,d:p,a:m})}else m&&d.push({d:y,a:m});return y}return{e:f,u:h.bind(null,!1),a:h.bind(null,!0),d:function(){var y,p=this.e,A=0;function _(){for(;y=d.pop();)try{if(!y.a&&A===1)return A=0,d.push(y),Promise.resolve().then(_);if(y.d){var Y=y.d.call(y.v);if(y.a)return A|=2,Promise.resolve(Y).then(_,R)}else A|=1}catch(Z){return R(Z)}if(A===1)return p!==f?Promise.reject(p):Promise.resolve();if(p!==f)throw p}function R(Y){return p=p!==f?new c(Y,p):Y,_()}return _()}}}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),bv=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(a,i){function s(c,f){this.v=c,this.k=f}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),bb=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(a,i){var s=bv();function c(f){return new s(f,0)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Sb=Ve({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(a,i){var s=bv();function c(d){return function(){return new f(d.apply(this,arguments))}}function f(d){var h,m;function y(A,_){try{var R=d[A](_),Y=R.value,Z=Y instanceof s;Promise.resolve(Z?Y.v:Y).then(function(q){if(Z){var P=A==="return"?"return":"next";if(!Y.k||q.done)return y(P,q);q=d[P](q).value}p(R.done?"return":"normal",q)},function(q){y("throw",q)})}catch(q){p("throw",q)}}function p(A,_){switch(A){case"return":h.resolve({value:_,done:!0});break;case"throw":h.reject(_);break;default:h.resolve({value:_,done:!1})}(h=h.next)?y(h.key,h.arg):m=null}this._invoke=function(A,_){return new Promise(function(R,Y){var Z={key:A,arg:_,resolve:R,reject:Y,next:null};m?m=m.next=Z:(h=m=Z,y(A,_))})},typeof d.return!="function"&&(this.return=void 0)}f.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},f.prototype.next=function(d){return this._invoke("next",d)},f.prototype.throw=function(d){return this._invoke("throw",d)},f.prototype.return=function(d){return this._invoke("return",d)},i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}});Xt(gb(),1);Xt(bb(),1);Xt(Sb(),1);Xt(Le(),1);function xb(a){return qi(({path:i,args:s})=>{var c;const f=[...i],d=f.pop();if(d==="useMutation")return a[d](f,...s);if(d==="_def")return{path:f};const[h,...m]=s,y=(c=m[0])!==null&&c!==void 0?c:{};return a[d](f,h,y)})}var hc;const Ob=["client","ssrContext","ssrState","abortOnUnmount"],_b=(hc=B.createContext)===null||hc===void 0?void 0:hc.call(Em,null),Eb=a=>{switch(a){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function jb(a){return qi(i=>{const s=[...i.path],c=s.pop(),f=[...i.args],d=f.shift(),h=Eb(c),m=Ze(s,d,h);return{infiniteQueryOptions:()=>a.infiniteQueryOptions(s,m,f[0]),queryOptions:()=>a.queryOptions(s,m,...f),fetch:()=>a.fetchQuery(m,...f),fetchInfinite:()=>a.fetchInfiniteQuery(m,f[0]),prefetch:()=>a.prefetchQuery(m,...f),prefetchInfinite:()=>a.prefetchInfiniteQuery(m,f[0]),ensureData:()=>a.ensureQueryData(m,...f),invalidate:()=>a.invalidateQueries(m,...f),reset:()=>a.resetQueries(m,...f),refetch:()=>a.refetchQueries(m,...f),cancel:()=>a.cancelQuery(m,...f),setData:()=>{a.setQueryData(m,f[0],f[1])},setQueriesData:()=>a.setQueriesData(m,f[0],f[1],f[2]),setInfiniteData:()=>{a.setInfiniteQueryData(m,f[0],f[1])},getData:()=>a.getQueryData(m),getInfiniteData:()=>a.getInfiniteQueryData(m),setMutationDefaults:()=>a.setMutationDefaults(Ei(s),d),getMutationDefaults:()=>a.getMutationDefaults(Ei(s)),isMutating:()=>a.isMutating({mutationKey:Ei(s)})}[c]()})}function Tb(a){const i=gv(a.client),s=jb(a);return Uc(c=>{const f=c;return f==="client"?i:Ob.includes(f)?a[f]:s[c]})}var Ab=cn(eu(),1);function pm(a){const i=a instanceof wi?a:Qc(a);return qi(s=>{const c=s.path,f=c.join("."),[d,h]=s.args;return(0,Ab.default)({queryKey:Ze(c,d,"query"),queryFn:()=>i.query(f,d,h?.trpc)},h)})}var mc=cn(eu(),1);function re(a,i,s){var c;const f=a[0];let d=(c=a[1])===null||c===void 0?void 0:c.input;if(s){var h;d=(0,mc.default)((0,mc.default)((0,mc.default)({},(h=d)!==null&&h!==void 0?h:{}),s.pageParam?{cursor:s.pageParam}:{}),{},{direction:s.direction})}return[f.join("."),d,i?.trpc]}var Cb=Hl({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(a,i){function s(f){var d,h,m,y=2;for(typeof Symbol<"u"&&(h=Symbol.asyncIterator,m=Symbol.iterator);y--;){if(h&&(d=f[h])!=null)return d.call(f);if(m&&(d=f[m])!=null)return new c(d.call(f));h="@@asyncIterator",m="@@iterator"}throw new TypeError("Object is not async iterable")}function c(f){function d(h){if(Object(h)!==h)return Promise.reject(new TypeError(h+" is not an object."));var m=h.done;return Promise.resolve(h.value).then(function(y){return{value:y,done:m}})}return c=function(m){this.s=m,this.n=m.next},c.prototype={s:null,n:null,next:function(){return d(this.n.apply(this.s,arguments))},return:function(m){var y=this.s.return;return y===void 0?Promise.resolve({value:m,done:!0}):d(y.apply(this.s,arguments))},throw:function(m){var y=this.s.return;return y===void 0?Promise.reject(m):d(y.apply(this.s,arguments))}},new c(f)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),zb=cn(Cb(),1);function jc(a){return{path:a.path.join(".")}}function Ja(a){const i=jc(a);return B.useMemo(()=>i,[i])}async function Sv(a,i,s){const f=i.getQueryCache().build(i,{queryKey:s});f.setState({data:[],status:"success"});const d=[];var h=!1,m=!1,y;try{for(var p=(0,zb.default)(a),A;h=!(A=await p.next()).done;h=!1){const _=A.value;d.push(_),f.setState({data:[...d]})}}catch(_){m=!0,y=_}finally{try{h&&p.return!=null&&await p.return()}finally{if(m)throw y}}return d}var Et=cn(eu(),1);function Mb(a){const{client:i,queryClient:s}=a,c=i instanceof wi?i:Qc(i);return{infiniteQueryOptions:(f,d,h)=>{var m,y;const p=((m=d[1])===null||m===void 0?void 0:m.input)===je,A=async _=>{var R;const Y=(0,Et.default)((0,Et.default)({},h),{},{trpc:(0,Et.default)((0,Et.default)({},h?.trpc),!(h==null||(R=h.trpc)===null||R===void 0)&&R.abortOnUnmount?{signal:_.signal}:{signal:null})});return await c.query(...re(d,Y,{direction:_.direction,pageParam:_.pageParam}))};return Object.assign((0,Et.default)((0,Et.default)({},h),{},{initialData:h?.initialData,queryKey:d,queryFn:p?je:A,initialPageParam:(y=h?.initialCursor)!==null&&y!==void 0?y:null}),{trpc:jc({path:f})})},queryOptions:(f,d,h)=>{var m;const y=((m=d[1])===null||m===void 0?void 0:m.input)===je,p=async A=>{var _;const R=(0,Et.default)((0,Et.default)({},h),{},{trpc:(0,Et.default)((0,Et.default)({},h?.trpc),!(h==null||(_=h.trpc)===null||_===void 0)&&_.abortOnUnmount?{signal:A.signal}:{signal:null})}),Y=await c.query(...re(d,R));return ev(Y)?Sv(Y,s,d):Y};return Object.assign((0,Et.default)((0,Et.default)({},h),{},{initialData:h?.initialData,queryKey:d,queryFn:y?je:p}),{trpc:jc({path:f})})},fetchQuery:(f,d)=>s.fetchQuery((0,Et.default)((0,Et.default)({},d),{},{queryKey:f,queryFn:()=>c.query(...re(f,d))})),fetchInfiniteQuery:(f,d)=>{var h;return s.fetchInfiniteQuery((0,Et.default)((0,Et.default)({},d),{},{queryKey:f,queryFn:({pageParam:m,direction:y})=>c.query(...re(f,d,{pageParam:m,direction:y})),initialPageParam:(h=d?.initialCursor)!==null&&h!==void 0?h:null}))},prefetchQuery:(f,d)=>s.prefetchQuery((0,Et.default)((0,Et.default)({},d),{},{queryKey:f,queryFn:()=>c.query(...re(f,d))})),prefetchInfiniteQuery:(f,d)=>{var h;return s.prefetchInfiniteQuery((0,Et.default)((0,Et.default)({},d),{},{queryKey:f,queryFn:({pageParam:m,direction:y})=>c.query(...re(f,d,{pageParam:m,direction:y})),initialPageParam:(h=d?.initialCursor)!==null&&h!==void 0?h:null}))},ensureQueryData:(f,d)=>s.ensureQueryData((0,Et.default)((0,Et.default)({},d),{},{queryKey:f,queryFn:()=>c.query(...re(f,d))})),invalidateQueries:(f,d,h)=>s.invalidateQueries((0,Et.default)((0,Et.default)({},d),{},{queryKey:f}),h),resetQueries:(f,d,h)=>s.resetQueries((0,Et.default)((0,Et.default)({},d),{},{queryKey:f}),h),refetchQueries:(f,d,h)=>s.refetchQueries((0,Et.default)((0,Et.default)({},d),{},{queryKey:f}),h),cancelQuery:(f,d)=>s.cancelQueries({queryKey:f},d),setQueryData:(f,d,h)=>s.setQueryData(f,d,h),setQueriesData:(f,d,h,m)=>s.setQueriesData((0,Et.default)((0,Et.default)({},d),{},{queryKey:f}),h,m),getQueryData:f=>s.getQueryData(f),setInfiniteQueryData:(f,d,h)=>s.setQueryData(f,d,h),getInfiniteQueryData:f=>s.getQueryData(f),setMutationDefaults:(f,d)=>{const h=f[0],m=y=>c.mutation(...re([h,{input:y}],a));return s.setMutationDefaults(f,typeof d=="function"?d({canonicalMutationFn:m}):d)},getMutationDefaults:f=>s.getMutationDefaults(f),isMutating:f=>s.isMutating((0,Et.default)((0,Et.default)({},f),{},{exact:!0}))}}var K=cn(eu());const gm=(a,i)=>new Proxy(a,{get(c,f){return i(f),c[f]}});function Db(a){var i,s;const c=(i=void 0)!==null&&i!==void 0?i:$=>$.originalFn(),f=(s=void 0)!==null&&s!==void 0?s:_b,d=yb,h=$=>{var V;const{abortOnUnmount:M=!1,queryClient:X,ssrContext:W}=$,[lt,F]=B.useState((V=$.ssrState)!==null&&V!==void 0?V:!1),et=$.client instanceof wi?$.client:Qc($.client),vt=B.useMemo(()=>Mb({client:et,queryClient:X}),[et,X]),ct=B.useMemo(()=>(0,K.default)({abortOnUnmount:M,queryClient:X,client:et,ssrContext:W??null,ssrState:lt},vt),[M,et,vt,X,W,lt]);return B.useEffect(()=>{F(J=>J?"mounted":!1)},[]),b.jsx(f.Provider,{value:ct,children:$.children})};function m(){const $=B.useContext(f);if(!$)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return $}function y($,V){var M;const{queryClient:X,ssrState:W}=m();return W&&W!=="mounted"&&((M=X.getQueryCache().find({queryKey:$}))===null||M===void 0?void 0:M.state.status)==="error"?(0,K.default)({retryOnMount:!1},V):V}function p($,V,M){var X,W,lt,F,et;const vt=m(),{abortOnUnmount:ct,client:J,ssrState:T,queryClient:w,prefetchQuery:G}=vt,nt=Ze($,V,"query"),ft=w.getQueryDefaults(nt),S=V===je;typeof window>"u"&&T==="prepass"&&(M==null||(X=M.trpc)===null||X===void 0?void 0:X.ssr)!==!1&&((W=M?.enabled)!==null&&W!==void 0?W:ft?.enabled)!==!1&&!S&&!w.getQueryCache().find({queryKey:nt})&&G(nt,M);const D=y(nt,(0,K.default)((0,K.default)({},ft),M)),H=(lt=(F=M==null||(et=M.trpc)===null||et===void 0?void 0:et.abortOnUnmount)!==null&&F!==void 0?F:void 0)!==null&&lt!==void 0?lt:ct,L=N0((0,K.default)((0,K.default)({},D),{},{queryKey:nt,queryFn:S?V:async I=>{const rt=(0,K.default)((0,K.default)({},D),{},{trpc:(0,K.default)((0,K.default)({},D?.trpc),H?{signal:I.signal}:{signal:null})}),xt=await J.query(...re(nt,rt));return ev(xt)?Sv(xt,w,nt):xt}}),w);return L.trpc=Ja({path:$}),L}function A($,V,M){var X,W,lt;const F=m(),et=Ze($,V,"query"),vt=V===je,ct=(X=(W=M==null||(lt=M.trpc)===null||lt===void 0?void 0:lt.abortOnUnmount)!==null&&W!==void 0?W:void 0)!==null&&X!==void 0?X:F.abortOnUnmount;Q0((0,K.default)((0,K.default)({},M),{},{queryKey:et,queryFn:vt?V:J=>{const T={trpc:(0,K.default)((0,K.default)({},M?.trpc),ct?{signal:J.signal}:{})};return F.client.query(...re(et,T))}}))}function _($,V,M){var X,W,lt;const F=m(),et=Ze($,V,"query"),vt=(X=(W=M==null||(lt=M.trpc)===null||lt===void 0?void 0:lt.abortOnUnmount)!==null&&W!==void 0?W:void 0)!==null&&X!==void 0?X:F.abortOnUnmount,ct=R0((0,K.default)((0,K.default)({},M),{},{queryKey:et,queryFn:J=>{const T=(0,K.default)((0,K.default)({},M),{},{trpc:(0,K.default)((0,K.default)({},M?.trpc),vt?{signal:J.signal}:{signal:null})});return F.client.query(...re(et,T))}}),F.queryClient);return ct.trpc=Ja({path:$}),[ct.data,ct]}function R($,V){const{client:M,queryClient:X}=m(),W=Ei($),lt=X.defaultMutationOptions(X.getMutationDefaults(W)),F=H0((0,K.default)((0,K.default)({},V),{},{mutationKey:W,mutationFn:et=>M.mutation(...re([$,{input:et}],V)),onSuccess(...et){var vt,ct;return c({originalFn:()=>{var T,w,G;return(T=V==null||(w=V.onSuccess)===null||w===void 0?void 0:w.call(V,...et))!==null&&T!==void 0?T:lt==null||(G=lt.onSuccess)===null||G===void 0?void 0:G.call(lt,...et)},queryClient:X,meta:(vt=(ct=V?.meta)!==null&&ct!==void 0?ct:lt?.meta)!==null&&vt!==void 0?vt:{}})}}),X);return F.trpc=Ja({path:$}),F}const Y={data:void 0,error:null,status:"idle"},Z={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function q($,V,M){var X;const W=(X=M?.enabled)!==null&&X!==void 0?X:V!==je,lt=wl(Ze($,V,"any")),{client:F}=m(),et=B.useRef(M);B.useEffect(()=>{et.current=M});const[vt]=B.useState(new Set([])),ct=B.useCallback(S=>{vt.add(S)},[vt]),J=B.useRef(null),T=B.useCallback(S=>{const D=G.current,H=G.current=S(D);let L=!1;for(const I of vt)if(D[I]!==H[I]){L=!0;break}L&&ft(gm(H,ct))},[ct,vt]),w=B.useCallback(()=>{var S;if((S=J.current)===null||S===void 0||S.unsubscribe(),!W){T(()=>(0,K.default)((0,K.default)({},Y),{},{reset:w}));return}T(()=>(0,K.default)((0,K.default)({},Z),{},{reset:w}));const D=F.subscription($.join("."),V??void 0,{onStarted:()=>{var H,L;(H=(L=et.current).onStarted)===null||H===void 0||H.call(L),T(I=>(0,K.default)((0,K.default)({},I),{},{status:"pending",error:null}))},onData:H=>{var L,I;(L=(I=et.current).onData)===null||L===void 0||L.call(I,H),T(rt=>(0,K.default)((0,K.default)({},rt),{},{status:"pending",data:H,error:null}))},onError:H=>{var L,I;(L=(I=et.current).onError)===null||L===void 0||L.call(I,H),T(rt=>(0,K.default)((0,K.default)({},rt),{},{status:"error",error:H}))},onConnectionStateChange:H=>{T(L=>{switch(H.state){case"idle":return(0,K.default)((0,K.default)({},L),{},{status:H.state,error:null,data:void 0});case"connecting":return(0,K.default)((0,K.default)({},L),{},{error:H.error,status:H.state});case"pending":return L}})},onComplete:()=>{var H,L;(H=(L=et.current).onComplete)===null||H===void 0||H.call(L),T(I=>(0,K.default)((0,K.default)({},I),{},{status:"idle",error:null,data:void 0}))}});J.current=D},[F,lt,W,T]);B.useEffect(()=>(w(),()=>{var S;(S=J.current)===null||S===void 0||S.unsubscribe()}),[w]);const G=B.useRef(W?(0,K.default)((0,K.default)({},Z),{},{reset:w}):(0,K.default)((0,K.default)({},Y),{},{reset:w})),[nt,ft]=B.useState(gm(G.current,ct));return nt}function P($,V,M){var X,W,lt,F,et;const{client:vt,ssrState:ct,prefetchInfiniteQuery:J,queryClient:T,abortOnUnmount:w}=m(),G=Ze($,V,"infinite"),nt=T.getQueryDefaults(G),ft=V===je;typeof window>"u"&&ct==="prepass"&&(M==null||(X=M.trpc)===null||X===void 0?void 0:X.ssr)!==!1&&((W=M?.enabled)!==null&&W!==void 0?W:nt?.enabled)!==!1&&!ft&&!T.getQueryCache().find({queryKey:G})&&J(G,(0,K.default)((0,K.default)({},nt),M));const S=y(G,(0,K.default)((0,K.default)({},nt),M)),D=(lt=M==null||(F=M.trpc)===null||F===void 0?void 0:F.abortOnUnmount)!==null&&lt!==void 0?lt:w,H=B0((0,K.default)((0,K.default)({},S),{},{initialPageParam:(et=M.initialCursor)!==null&&et!==void 0?et:null,persister:M.persister,queryKey:G,queryFn:ft?V:L=>{var I;const rt=(0,K.default)((0,K.default)({},S),{},{trpc:(0,K.default)((0,K.default)({},S?.trpc),D?{signal:L.signal}:{signal:null})});return vt.query(...re(G,rt,{pageParam:(I=L.pageParam)!==null&&I!==void 0?I:M.initialCursor,direction:L.direction}))}}),T);return H.trpc=Ja({path:$}),H}function it($,V,M){var X,W,lt;const F=m(),et=Ze($,V,"infinite"),vt=F.queryClient.getQueryDefaults(et),ct=V===je,J=y(et,(0,K.default)((0,K.default)({},vt),M)),T=(X=M==null||(W=M.trpc)===null||W===void 0?void 0:W.abortOnUnmount)!==null&&X!==void 0?X:F.abortOnUnmount;w0((0,K.default)((0,K.default)({},M),{},{initialPageParam:(lt=M.initialCursor)!==null&&lt!==void 0?lt:null,queryKey:et,queryFn:ct?V:w=>{var G;const nt=(0,K.default)((0,K.default)({},J),{},{trpc:(0,K.default)((0,K.default)({},J?.trpc),T?{signal:w.signal}:{})});return F.client.query(...re(et,nt,{pageParam:(G=w.pageParam)!==null&&G!==void 0?G:M.initialCursor,direction:w.direction}))}}))}function ht($,V,M){var X,W,lt;const F=m(),et=Ze($,V,"infinite"),vt=F.queryClient.getQueryDefaults(et),ct=y(et,(0,K.default)((0,K.default)({},vt),M)),J=(X=M==null||(W=M.trpc)===null||W===void 0?void 0:W.abortOnUnmount)!==null&&X!==void 0?X:F.abortOnUnmount,T=U0((0,K.default)((0,K.default)({},M),{},{initialPageParam:(lt=M.initialCursor)!==null&&lt!==void 0?lt:null,queryKey:et,queryFn:w=>{var G;const nt=(0,K.default)((0,K.default)({},ct),{},{trpc:(0,K.default)((0,K.default)({},ct?.trpc),J?{signal:w.signal}:{})});return F.client.query(...re(et,nt,{pageParam:(G=w.pageParam)!==null&&G!==void 0?G:M.initialCursor,direction:w.direction}))}}),F.queryClient);return T.trpc=Ja({path:$}),[T.data,T]}return{Provider:h,createClient:d,useContext:m,useUtils:m,useQuery:p,usePrefetchQuery:A,useSuspenseQuery:_,useQueries:($,V)=>{const{ssrState:M,queryClient:X,prefetchQuery:W,client:lt}=m(),F=pm(lt),et=$(F);if(typeof window>"u"&&M==="prepass")for(const ct of et){var vt;const J=ct;((vt=J.trpc)===null||vt===void 0?void 0:vt.ssr)!==!1&&!X.getQueryCache().find({queryKey:J.queryKey})&&W(J.queryKey,J)}return Zm({queries:et.map(ct=>(0,K.default)((0,K.default)({},ct),{},{queryKey:ct.queryKey})),combine:V?.combine},X)},useSuspenseQueries:$=>{const{queryClient:V,client:M}=m(),X=pm(M),W=$(X),lt=q0({queries:W.map(F=>(0,K.default)((0,K.default)({},F),{},{queryFn:F.queryFn,queryKey:F.queryKey}))},V);return[lt.map(F=>F.data),lt]},useMutation:R,useSubscription:q,useInfiniteQuery:P,usePrefetchInfiniteQuery:it,useSuspenseInfiniteQuery:ht}}function Nb(a){const i=xb(a);return Uc(s=>s==="useContext"||s==="useUtils"?()=>{const c=a.useUtils();return B.useMemo(()=>Tb(c),[c])}:a.hasOwnProperty(s)?a[s]:i[s])}function Rb(a){const i=Db();return Nb(i)}const mt=Rb(),Ub=mt.createClient({links:[rb({url:"/api/trpc"})]}),bm="/media/images/capas/capa-placeholder.svg",vc="biblioteca_modo_exibicao";function Sm(){if(typeof window>"u")return"desktop";const a=window.innerWidth;return a<768?"mobile":a<1024?"tablet":"desktop"}function qb(){const[a,i]=B.useState(Sm);return B.useEffect(()=>{function s(){i(Sm())}return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),a}function wc({livros:a,titulo:i}){const{data:s}=mt.config.obter.useQuery(),c=qb(),[f,d]=B.useState(()=>typeof window>"u"?"grade":localStorage.getItem(vc)||"grade");B.useEffect(()=>{s&&!localStorage.getItem(vc)&&d(s.modoPadrao)},[s]);function h(y){d(y),localStorage.setItem(vc,y)}const m=c==="desktop"?s?.colunasDesktop??4:c==="tablet"?s?.colunasTablet??2:null;return b.jsxs("section",{children:[b.jsxs("div",{className:"flex items-center justify-between mb-4",children:[b.jsx("h2",{className:"font-medium uppercase text-xs",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:i}),b.jsxs("div",{className:"flex gap-1",children:[b.jsx("button",{"aria-label":"ver em grade","aria-pressed":f==="grade",onClick:()=>h("grade"),className:"w-8 h-8 flex items-center justify-center rounded transition-colors",style:xm(f==="grade"),children:b.jsx(Qb,{})}),b.jsx("button",{"aria-label":"ver em lista","aria-pressed":f==="lista",onClick:()=>h("lista"),className:"w-8 h-8 flex items-center justify-center rounded transition-colors",style:xm(f==="lista"),children:b.jsx(wb,{})})]})]}),f==="grade"?b.jsx("div",{className:"grid gap-x-5 gap-y-8",style:{gridTemplateColumns:m?`repeat(${m}, 1fr)`:"repeat(auto-fill, minmax(120px, 1fr))"},children:a.map(y=>b.jsxs("a",{href:`/livro/${y.id}`,className:"group block",children:[b.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-all duration-200 ease-out group-hover:-translate-y-1 group-hover:shadow-2xl",children:b.jsx("img",{src:y.capaUrl||bm,alt:y.titulo,className:"w-full aspect-[2/3] object-cover transition-transform duration-300 group-hover:scale-105"})}),b.jsx("p",{className:"text-sm mt-2 leading-snug line-clamp-2 transition-colors group-hover:text-[var(--clr-acento-400)]",style:{color:"var(--clr-branco)"},children:y.titulo}),b.jsx("p",{className:"text-xs mt-0.5",style:{color:"var(--color-text-on-dark-muted)"},children:y.autor})]},y.id))}):b.jsx("div",{className:"flex flex-col gap-2",children:a.map(y=>b.jsxs("a",{href:`/livro/${y.id}`,className:"flex gap-4 items-center p-2 rounded-md transition-colors hover:bg-white/[0.06]",style:{background:"var(--color-bg-card-dark)"},children:[b.jsx("img",{src:y.capaUrl||bm,alt:y.titulo,className:"w-12 aspect-[2/3] object-cover rounded flex-shrink-0 shadow"}),b.jsxs("div",{className:"min-w-0",children:[b.jsx("p",{className:"text-sm truncate",style:{color:"var(--clr-branco)"},children:y.titulo}),b.jsxs("p",{className:"text-xs truncate",style:{color:"var(--color-text-on-dark-muted)"},children:[y.autor,y.serie?` · ${y.serie}`:""]})]})]},y.id))})]})}function xm(a){return{background:a?"var(--clr-acento-alpha12)":"transparent",color:a?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)"}}function Qb(){return b.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[b.jsx("rect",{x:"1",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),b.jsx("rect",{x:"9",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),b.jsx("rect",{x:"1",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"}),b.jsx("rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"})]})}function wb(){return b.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[b.jsx("rect",{x:"1",y:"2",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),b.jsx("rect",{x:"1",y:"6.75",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),b.jsx("rect",{x:"1",y:"11.5",width:"14",height:"2.5",rx:"1",fill:"currentColor"})]})}const Hb="/media/images/capas/capa-placeholder.svg",Om=6e3;function Bb({livros:a}){const[i,s]=B.useState(0),c=B.useRef(null);B.useEffect(()=>{if(!(a.length<=1))return c.current=setInterval(()=>{s(h=>(h+1)%a.length)},Om),()=>{c.current&&clearInterval(c.current)}},[a.length]);function f(h){s(h),c.current&&clearInterval(c.current),a.length>1&&(c.current=setInterval(()=>s(m=>(m+1)%a.length),Om))}if(a.length===0)return null;const d=a[i];return b.jsxs("section",{className:"mb-14 relative","aria-roledescription":"carrossel","aria-label":"livros em destaque",children:[b.jsx("div",{className:"absolute -top-16 left-1/2 -translate-x-1/2 w-72 h-72 rounded-full pointer-events-none",style:{background:"var(--gradient-accent-glow)",filter:"blur(10px)"}}),b.jsxs("div",{className:"relative rounded-2xl p-6 sm:p-8 overflow-hidden",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)",boxShadow:"var(--shadow-borgonha-md)"},children:[b.jsxs("div",{className:"flex flex-col sm:flex-row gap-8",children:[b.jsx("a",{href:`/livro/${d.id}`,className:"flex-shrink-0 mx-auto sm:mx-0 group",children:b.jsx("img",{src:d.capaUrl||Hb,alt:d.titulo,className:"w-36 sm:w-44 aspect-[2/3] object-cover rounded-lg shadow-2xl transition-transform duration-300 group-hover:scale-[1.03]"},d.id)}),b.jsxs("div",{className:"flex flex-col justify-center gap-2 text-center sm:text-left min-w-0",children:[b.jsx("span",{className:"text-xs font-bold uppercase",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-caps)",color:"var(--clr-acento-400)"},children:"destaque"}),b.jsx("a",{href:`/livro/${d.id}`,className:"text-2xl sm:text-3xl font-semibold leading-tight transition-colors hover:text-[var(--clr-acento-400)]",style:{fontFamily:"var(--font-display)",color:"var(--clr-branco)"},children:d.titulo}),b.jsx("p",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:d.autor}),d.serie&&b.jsxs("a",{href:`/serie/${encodeURIComponent(d.serie)}`,className:"text-sm w-fit mx-auto sm:mx-0 transition-colors hover:opacity-80",style:{color:"var(--color-text-on-dark-muted)"},children:[d.serie,d.volumeNumero?` · volume ${d.volumeNumero}`:""]}),d.resumo&&b.jsx("p",{className:"text-sm mt-1 max-w-md line-clamp-3",style:{color:"var(--color-text-on-dark-muted)",lineHeight:"var(--leading-relaxed)"},children:d.resumo}),b.jsx("a",{href:`/leitor/${d.id}`,className:"btn btn-primary w-fit mx-auto sm:mx-0 mt-3",children:"ler agora"})]})]}),a.length>1&&b.jsx("div",{className:"flex justify-center gap-2 mt-6 relative z-10",children:a.map((h,m)=>b.jsx("button",{"aria-label":`ir pro destaque ${m+1}`,"aria-current":m===i,onClick:()=>f(m),className:"h-1.5 rounded-full transition-all duration-300",style:{width:m===i?"24px":"8px",background:m===i?"var(--clr-acento-400)":"rgba(255,255,255,0.25)"}},h.id))})]})]})}function $a({buscaInicial:a=""}){const[,i]=rg(),[s,c]=B.useState(a),{data:f}=mt.auth.me.useQuery(),{data:d}=mt.menu.listar.useQuery();function h(m){m.preventDefault(),s.trim()&&i(`/buscar?q=${encodeURIComponent(s.trim())}`)}return b.jsx("header",{className:"sticky top-0 z-10 backdrop-blur-sm",style:{borderBottom:"var(--border-thin)",background:"rgba(26,2,9,0.75)"},children:b.jsxs("div",{className:"flex items-center justify-between gap-3 px-5 py-4 max-w-6xl mx-auto",children:[b.jsx("a",{href:"/",className:"flex-shrink-0",children:b.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",className:"h-8"})}),d&&d.length>0&&b.jsx("nav",{className:"hidden md:flex items-center gap-5 flex-shrink-0",children:d.map(m=>b.jsx("a",{href:m.url,className:"text-sm transition-colors hover:text-[var(--clr-acento-400)]",style:{color:"var(--color-text-on-dark-muted)"},children:m.rotulo},m.id))}),b.jsx("form",{onSubmit:h,className:"flex-1 max-w-xs",children:b.jsx("input",{value:s,onChange:m=>c(m.target.value),placeholder:"buscar título, autor, série...",className:"w-full text-sm px-3 py-1.5 rounded-full transition-colors focus:outline-none",style:{border:"var(--border-medium)",background:"rgba(255,255,255,0.06)",color:"var(--clr-branco)"}})}),b.jsx("a",{href:"/admin",className:"btn btn-ghost flex-shrink-0",style:{padding:"0.5rem 1rem",fontSize:"0.75rem"},children:f?"área do editor":"entrar"})]})})}function Pa(){const{data:a}=mt.menu.listar.useQuery(),i=new Date().getFullYear();return b.jsx("footer",{className:"mt-16",style:{background:"var(--clr-borgonha-900)",borderTop:"var(--border-thin)"},children:b.jsxs("div",{className:"max-w-6xl mx-auto px-5 py-12",children:[b.jsxs("div",{className:"flex flex-col sm:flex-row sm:justify-between gap-8",children:[b.jsxs("div",{children:[b.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",className:"h-7 mb-3"}),b.jsx("p",{className:"text-sm max-w-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Parte do ecossistema ONFIDE — literatura cristã pensada com o mesmo cuidado hermenêutico de tudo que produzimos."})]}),a&&a.length>0&&b.jsxs("nav",{className:"flex flex-col gap-2",children:[b.jsx("span",{className:"text-xs uppercase mb-1",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:"navegação"}),a.map(s=>b.jsx("a",{href:s.url,className:"text-sm transition-colors hover:text-[var(--clr-acento-400)]",style:{color:"var(--color-text-on-dark-muted)"},children:s.rotulo},s.id))]}),b.jsxs("div",{className:"flex flex-col gap-2",children:[b.jsx("span",{className:"text-xs uppercase mb-1",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:"ecossistema"}),b.jsx("a",{href:"https://spot.onfide.com.br",className:"text-sm transition-colors hover:text-[var(--clr-acento-400)]",style:{color:"var(--color-text-on-dark-muted)"},children:"SpotOnFide"}),b.jsx("a",{href:"https://onfide.com.br",className:"text-sm transition-colors hover:text-[var(--clr-acento-400)]",style:{color:"var(--color-text-on-dark-muted)"},children:"ONFIDE"})]})]}),b.jsxs("div",{className:"mt-10 pt-6 text-xs",style:{borderTop:"var(--border-thin)",color:"var(--color-text-on-dark-subtle)"},children:["© ",i," Biblioteca OnFide. Todos os direitos reservados."]})]})})}const Lb="/media/images/capas/capa-placeholder.svg";function _m({titulo:a,itens:i}){return b.jsxs("section",{className:"mb-14",children:[b.jsx("h2",{className:"text-xs uppercase mb-4",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:a}),b.jsx("div",{className:"flex gap-4 overflow-x-auto pb-2 -mx-1 px-1",children:i.map(s=>b.jsxs("a",{href:s.href,className:"group block flex-shrink-0 w-24",children:[b.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-all duration-200 group-hover:-translate-y-1 group-hover:shadow-2xl",children:b.jsx("img",{src:s.capaUrl||Lb,alt:s.titulo,className:"w-full aspect-[2/3] object-cover transition-transform duration-300 group-hover:scale-105"})}),b.jsx("p",{className:"text-xs mt-2 leading-snug line-clamp-2",style:{color:"var(--clr-branco)"},children:s.titulo})]},s.id))})]})}function Yb(){const{data:a,isLoading:i}=mt.biblioteca.getCatalogo.useQuery(),{data:s}=mt.biblioteca.getDestaques.useQuery(),{data:c}=mt.auth.me.useQuery(),{data:f}=mt.biblioteca.historico.meuHistorico.useQuery(void 0,{enabled:!!c}),{data:d}=mt.biblioteca.favoritos.meus.useQuery(void 0,{enabled:!!c}),{data:h}=mt.biblioteca.listarSeries.useQuery(),m=new Set((s??[]).map(p=>p.id)),y=(a??[]).filter(p=>!m.has(p.id));return b.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)",fontFamily:"var(--font-corpo)"},children:[b.jsx($a,{}),b.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[i&&b.jsx("p",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),!i&&(!a||a.length===0)&&b.jsxs("div",{className:"rounded-lg p-10 text-center",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)",color:"var(--color-text-on-dark-muted)"},children:[b.jsx("p",{className:"text-xl mb-2",style:{fontFamily:"var(--font-display)",color:"var(--clr-branco)"},children:"A estante ainda está sendo montada"}),b.jsx("p",{className:"text-sm",children:"Em breve os primeiros livros aparecem aqui."})]}),s&&s.length>0&&b.jsx(Bb,{livros:s}),f&&f.length>0&&b.jsx(_m,{titulo:"continuar lendo",itens:f.map(p=>({id:p.livroId,titulo:p.titulo,capaUrl:p.capaUrl,href:`/leitor/${p.livroId}`}))}),d&&d.length>0&&b.jsx(_m,{titulo:"meus favoritos",itens:d.map(p=>({id:p.livroId,titulo:p.titulo,capaUrl:p.capaUrl,href:`/livro/${p.livroId}`}))}),h&&h.length>0&&b.jsxs("section",{className:"mb-14",children:[b.jsx("h2",{className:"text-xs uppercase mb-4",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--color-text-on-dark-subtle)"},children:"coleções"}),b.jsx("div",{className:"flex gap-2 flex-wrap",children:h.map(p=>b.jsx("a",{href:`/serie/${encodeURIComponent(p)}`,className:"text-sm px-4 py-2 rounded-full transition-colors hover:bg-white/[0.08]",style:{border:"var(--border-medium)",color:"var(--clr-branco)"},children:p},p))})]}),y.length>0&&b.jsx(wc,{livros:y,titulo:"todos os livros"})]}),b.jsx(Pa,{})]})}function xv(){const a=mt.useUtils(),{data:i,isLoading:s}=mt.auth.me.useQuery(),c=mt.auth.login.useMutation({onSuccess:()=>a.auth.me.invalidate()}),f=mt.auth.logout.useMutation({onSuccess:()=>a.auth.me.invalidate()}),d=i?.papel==="editor"||i?.papel==="admin";return{usuario:i,isLoading:s,login:c,logout:f,podePublicar:d}}const Gb="/media/images/capas/capa-placeholder.svg";function Xb(){const{login:a}=xv(),[i,s]=B.useState(""),[c,f]=B.useState("");return b.jsx("div",{className:"min-h-dvh flex items-center justify-center px-6",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:b.jsxs("div",{className:"max-w-sm w-full space-y-3",children:[b.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",className:"h-8 mb-6"}),b.jsx("h1",{className:"text-lg font-medium",style:{fontFamily:"var(--font-display)"},children:"Entrar"}),b.jsx("input",{className:"w-full rounded px-3 py-2",style:le,placeholder:"e-mail",value:i,onChange:d=>s(d.target.value)}),b.jsx("input",{className:"w-full rounded px-3 py-2",style:le,placeholder:"senha",type:"password",value:c,onChange:d=>f(d.target.value)}),b.jsx("button",{className:"btn btn-primary w-full",onClick:()=>a.mutate({email:i,senha:c}),disabled:a.isPending,children:a.isPending?"entrando...":"entrar"}),a.isError&&b.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:a.error.message})]})})}const le={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function Kb({livroExistente:a,aoTerminar:i}){const s=mt.useUtils(),c=mt.biblioteca.admin.criar.useMutation({onSuccess:()=>s.biblioteca.admin.listar.invalidate()}),f=mt.biblioteca.admin.atualizar.useMutation({onSuccess:()=>s.biblioteca.admin.listar.invalidate()}),[d,h]=B.useState(a?.titulo??""),[m,y]=B.useState(a?.destaque??!1),[p,A]=B.useState(a?.subtitulo??""),[_,R]=B.useState(a?.serie??""),[Y,Z]=B.useState(a?.volumeNumero?.toString()??""),[q,P]=B.useState(a?.autor??""),[it,ht]=B.useState(a?.resumo??""),[jt,qt]=B.useState(null),[$,V]=B.useState(null),[M,X]=B.useState(!1),[W,lt]=B.useState(null),F=!!a;async function et(J,T,w,G={}){const nt=new FormData;nt.append(T,w);for(const[S,D]of Object.entries(G))nt.append(S,D);const ft=await fetch(J,{method:"POST",body:nt});if(!ft.ok){const S=await ft.json().catch(()=>({}));throw new Error(S.erro||"Falha no upload.")}return ft.json()}function vt(){h(""),A(""),R(""),Z(""),P(""),ht(""),qt(null),V(null)}async function ct(){if(!F&&!jt){lt("Selecione o arquivo DOCX.");return}lt(null),X(!0);try{let J,T,w;if(jt){const nt=await et("/api/admin/upload-docx","arquivo",jt,{titulo:d,autor:q});J=nt.docxOriginalUrl,T=nt.epubUrl}$&&(w=(await et("/api/admin/upload-capa","imagem",$)).url);const G={titulo:d,subtitulo:p||void 0,serie:_||void 0,volumeNumero:Y?Number(Y):void 0,autor:q,resumo:it||void 0,destaque:m,...w&&{capaUrl:w},...T&&{epubUrl:T},...J&&{docxOriginalUrl:J}};F?await f.mutateAsync({id:a.id,...G}):(await c.mutateAsync(G),vt()),i()}catch(J){lt(J instanceof Error?J.message:"Erro ao salvar.")}finally{X(!1)}}return b.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[b.jsxs("div",{className:"flex items-center justify-between",children:[b.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:F?`Editando: ${a.titulo}`:"Novo livro"}),F&&b.jsx("button",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},onClick:i,children:"cancelar edição"})]}),b.jsx("input",{className:"w-full rounded px-3 py-2",style:le,placeholder:"título",value:d,onChange:J=>h(J.target.value)}),b.jsx("input",{className:"w-full rounded px-3 py-2",style:le,placeholder:"subtítulo (opcional)",value:p,onChange:J=>A(J.target.value)}),b.jsxs("div",{className:"flex gap-3",children:[b.jsx("input",{className:"flex-1 rounded px-3 py-2",style:le,placeholder:"série (opcional)",value:_,onChange:J=>R(J.target.value)}),b.jsx("input",{className:"w-28 rounded px-3 py-2",style:le,placeholder:"volume nº",value:Y,onChange:J=>Z(J.target.value)})]}),b.jsx("input",{className:"w-full rounded px-3 py-2",style:le,placeholder:"autor",value:q,onChange:J=>P(J.target.value)}),b.jsx("textarea",{className:"w-full rounded px-3 py-2",style:le,placeholder:"resumo (opcional)",value:it,onChange:J=>ht(J.target.value)}),b.jsxs("label",{className:"flex items-center gap-2 text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:[b.jsx("input",{type:"checkbox",checked:m,onChange:J=>y(J.target.checked)}),"exibir no carrossel de destaque da Home"]}),b.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["arquivo DOCX ",F&&"(deixe em branco pra manter o atual)"]}),b.jsx("input",{type:"file",accept:".docx",onChange:J=>qt(J.target.files?.[0]??null)}),b.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["capa ",F&&"(deixe em branco pra manter a atual)"]}),b.jsx("input",{type:"file",accept:"image/*",onChange:J=>V(J.target.files?.[0]??null)}),W&&b.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:W}),b.jsx("button",{className:"btn btn-primary",onClick:ct,disabled:M||!d||!q,children:M?"processando...":F?"salvar alterações":"salvar como rascunho"})]})}function Zb({aoEditar:a}){const i=mt.useUtils(),{data:s}=mt.biblioteca.admin.listar.useQuery(),[c,f]=B.useState(""),d=mt.biblioteca.admin.atualizar.useMutation({onSuccess:()=>i.biblioteca.admin.listar.invalidate()}),h=mt.biblioteca.admin.excluir.useMutation({onSuccess:()=>i.biblioteca.admin.listar.invalidate()}),m=s?.filter(p=>p.titulo.toLowerCase().includes(c.toLowerCase())||p.autor.toLowerCase().includes(c.toLowerCase()));function y(p,A){window.confirm(`Excluir "${A}" permanentemente? Essa ação não pode ser desfeita.`)&&h.mutate({id:p})}return b.jsxs("div",{className:"mt-8 space-y-3",children:[b.jsxs("div",{className:"flex items-center justify-between gap-3",children:[b.jsxs("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:["Livros ",s?`(${s.length})`:""]}),b.jsx("input",{value:c,onChange:p=>f(p.target.value),placeholder:"filtrar por título ou autor...",className:"rounded px-3 py-1.5 text-sm",style:{...le,maxWidth:240}})]}),b.jsxs("div",{className:"space-y-2",children:[m?.map(p=>b.jsxs("div",{className:"flex items-center gap-3 rounded-md p-2",style:{border:"var(--border-thin)"},children:[b.jsx("img",{src:p.capaUrl||Gb,alt:"",className:"w-10 aspect-[2/3] object-cover rounded flex-shrink-0"}),b.jsxs("div",{className:"flex-1 min-w-0",children:[b.jsx("p",{className:"text-sm truncate",children:p.titulo}),b.jsxs("p",{className:"text-xs flex items-center gap-2",style:{color:"var(--color-text-on-dark-muted)"},children:[b.jsx("span",{className:"px-1.5 py-0.5 rounded",style:{background:p.status==="publicado"?"var(--clr-acento-alpha12)":"rgba(255,255,255,0.06)",color:p.status==="publicado"?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)"},children:p.status}),p.epubUrl?"epub ok":"sem epub",p.serie?` · ${p.serie}`:""]})]}),b.jsxs("div",{className:"flex gap-1 flex-shrink-0",children:[b.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem"},onClick:()=>a(p),children:"editar"}),b.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem"},onClick:()=>d.mutate({id:p.id,status:p.status==="publicado"?"rascunho":"publicado"}),children:p.status==="publicado"?"despublicar":"publicar"}),b.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem",color:"#ff8080"},onClick:()=>y(p.id,p.titulo),children:"excluir"})]})]},p.id)),m?.length===0&&b.jsx("p",{className:"text-sm",style:{color:"var(--color-text-on-dark-subtle)"},children:"nenhum livro encontrado."})]})]})}function Vb(){const{data:a}=mt.config.obter.useQuery(),i=mt.useUtils(),s=mt.config.atualizar.useMutation({onSuccess:()=>i.config.obter.invalidate()});return a?b.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[b.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Configurações de exibição"}),b.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Controla como os livros aparecem na Home. O celular sempre se ajusta sozinho — só desktop e tablet usam esse número fixo."}),b.jsxs("div",{className:"flex gap-4 items-center",children:[b.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no desktop",b.jsx("input",{type:"number",min:1,max:6,defaultValue:a.colunasDesktop,className:"w-full rounded px-3 py-2 mt-1",style:le,onBlur:c=>s.mutate({colunasDesktop:Number(c.target.value)})})]}),b.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no tablet",b.jsx("input",{type:"number",min:1,max:6,defaultValue:a.colunasTablet,className:"w-full rounded px-3 py-2 mt-1",style:le,onBlur:c=>s.mutate({colunasTablet:Number(c.target.value)})})]})]}),b.jsxs("label",{className:"text-sm block",style:{color:"var(--color-text-on-dark-muted)"},children:["modo padrão pra quem visita pela primeira vez",b.jsxs("select",{defaultValue:a.modoPadrao,className:"w-full rounded px-3 py-2 mt-1",style:le,onChange:c=>s.mutate({modoPadrao:c.target.value}),children:[b.jsx("option",{value:"grade",style:{color:"#000"},children:"grade"}),b.jsx("option",{value:"lista",style:{color:"#000"},children:"lista"})]})]}),b.jsxs("label",{className:"text-sm block",style:{color:"var(--color-text-on-dark-muted)"},children:["quantidade de slides no carrossel de destaque",b.jsx("input",{type:"number",min:1,max:10,defaultValue:a.qtdSlidesHero,className:"w-full rounded px-3 py-2 mt-1",style:le,onBlur:c=>s.mutate({qtdSlidesHero:Number(c.target.value)})}),b.jsx("span",{className:"block text-xs mt-1",style:{color:"var(--color-text-on-dark-subtle)"},children:'se faltar livro marcado como "destaque", completa com os mais recentes.'})]})]}):null}function Jb(){const{data:a}=mt.menu.listar.useQuery(),i=mt.useUtils(),s=mt.menu.criar.useMutation({onSuccess:()=>i.menu.listar.invalidate()}),c=mt.menu.atualizar.useMutation({onSuccess:()=>i.menu.listar.invalidate()}),f=mt.menu.excluir.useMutation({onSuccess:()=>i.menu.listar.invalidate()}),[d,h]=B.useState(""),[m,y]=B.useState("");function p(){!d||!m||(s.mutate({rotulo:d,url:m,ordem:(a?.length??0)+1}),h(""),y(""))}return b.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[b.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Menu de navegação"}),b.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Aparece no topo e no rodapé do site. Deixe vazio pra não mostrar menu nenhum."}),b.jsxs("div",{className:"space-y-2",children:[a?.map(A=>b.jsxs("div",{className:"flex items-center gap-2",children:[b.jsx("input",{defaultValue:A.rotulo,className:"flex-1 rounded px-3 py-1.5 text-sm",style:le,onBlur:_=>c.mutate({id:A.id,rotulo:_.target.value})}),b.jsx("input",{defaultValue:A.url,className:"flex-1 rounded px-3 py-1.5 text-sm",style:le,onBlur:_=>c.mutate({id:A.id,url:_.target.value})}),b.jsx("button",{className:"text-xs flex-shrink-0",style:{color:"#ff8080"},onClick:()=>f.mutate({id:A.id}),children:"remover"})]},A.id)),a?.length===0&&b.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-subtle)"},children:"nenhum item ainda."})]}),b.jsxs("div",{className:"flex items-center gap-2 pt-2",style:{borderTop:"var(--border-thin)"},children:[b.jsx("input",{placeholder:"rótulo (ex: Sobre)",value:d,onChange:A=>h(A.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:le}),b.jsx("input",{placeholder:"url (ex: /serie/Quatro Cavalos)",value:m,onChange:A=>y(A.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:le}),b.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:p,children:"+ adicionar"})]})]})}function kb(){const{usuario:a,isLoading:i,podePublicar:s,logout:c}=xv(),[f,d]=B.useState(null);return i?null:a?s?b.jsx("div",{className:"min-h-dvh",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:b.jsxs("div",{className:"max-w-2xl mx-auto p-6",children:[b.jsxs("div",{className:"flex justify-between items-center mb-6",children:[b.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",className:"h-7"}),b.jsx("button",{style:{color:"var(--color-text-on-dark-muted)"},className:"text-sm",onClick:()=>c.mutate(),children:"sair"})]}),b.jsx(Kb,{livroExistente:f,aoTerminar:()=>d(null)},f?.id??"novo"),b.jsx(Zb,{aoEditar:d}),b.jsx(Vb,{}),b.jsx(Jb,{})]})}):b.jsx("div",{className:"min-h-dvh p-6",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:"Sua conta não tem permissão de editor."}):b.jsx(Xb,{})}const Fb="/media/images/capas/capa-placeholder.svg";function $b(){const{id:a}=Rc(),i=Number(a),{data:s,isLoading:c}=mt.biblioteca.getLivro.useQuery({id:i}),{data:f}=mt.auth.me.useQuery(),{data:d}=mt.biblioteca.favoritos.status.useQuery({livroId:i},{enabled:!!f&&!Number.isNaN(i)}),h=mt.useUtils(),m=mt.biblioteca.favoritos.alternar.useMutation({onSuccess:()=>h.biblioteca.favoritos.status.invalidate({livroId:i})});return c?b.jsx("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)",display:"flex",alignItems:"center",justifyContent:"center"},children:b.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."})}):s?b.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[b.jsx($a,{}),b.jsxs("div",{className:"max-w-xl mx-auto px-5 pt-10 pb-16 flex-1 w-full flex flex-col items-center text-center",children:[b.jsxs("div",{className:"relative",children:[b.jsx("img",{src:s.capaUrl||Fb,alt:s.titulo,style:{width:180,aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-lg)",boxShadow:"var(--shadow-borgonha-md)"}}),f&&b.jsx("button",{"aria-label":"favoritar",onClick:()=>m.mutate({livroId:i}),className:"absolute -top-2 -right-2 w-9 h-9 rounded-full flex items-center justify-center",style:{background:"var(--clr-borgonha-900)",border:"var(--border-medium)",color:d?.favorito?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)"},children:d?.favorito?"★":"☆"})]}),b.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.5rem",fontWeight:600,color:"var(--clr-branco)",marginTop:"1.5rem",marginBottom:"0.4rem"},children:s.titulo}),s.subtitulo&&b.jsx("p",{style:{fontSize:"0.95rem",color:"var(--color-text-on-dark-muted)",marginBottom:"0.6rem"},children:s.subtitulo}),b.jsx("p",{style:{fontSize:"0.85rem",color:"var(--color-text-on-dark-muted)",marginBottom:"0.3rem"},children:s.autor}),s.serie&&b.jsxs("a",{href:`/serie/${encodeURIComponent(s.serie)}`,className:"inline-block transition-opacity hover:opacity-80",style:{marginTop:"0.4rem",marginBottom:"1.5rem",fontSize:"0.75rem",padding:"0.35rem 0.9rem",borderRadius:"var(--radius-full)",border:"var(--border-medium)",color:"var(--clr-acento-400)"},children:[s.serie,s.volumeNumero?` · volume ${s.volumeNumero}`:""]}),s.resumo&&b.jsx("p",{style:{fontSize:"0.9rem",lineHeight:"var(--leading-relaxed)",color:"var(--color-text-on-dark-muted)",marginBottom:"2rem",maxWidth:"50ch"},children:s.resumo}),s.epubUrl?b.jsx("a",{href:`/leitor/${s.id}`,className:"btn btn-primary",style:{padding:"0.75rem 2.5rem"},children:"ler agora"}):b.jsx("p",{style:{fontSize:"0.8rem",color:"var(--color-text-on-dark-subtle)"},children:"este livro ainda não tem um arquivo de leitura disponível."})]}),b.jsx(Pa,{})]}):b.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[b.jsx($a,{}),b.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[b.jsx("p",{style:{fontSize:"0.9rem",color:"var(--color-text-on-dark-muted)"},children:"livro não encontrado."}),b.jsx("a",{href:"/",className:"btn btn-ghost",style:{padding:"0.5rem 1.25rem"},children:"voltar pra Home"})]}),b.jsx(Pa,{})]})}function Pb(){const i=new URLSearchParams(sg()).get("q")||"",[s]=B.useState(i),{data:c,isLoading:f}=mt.biblioteca.buscar.useQuery({q:s},{enabled:s.length>0});return b.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[b.jsx($a,{buscaInicial:s}),b.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[s.length===0&&b.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"digite algo pra buscar."}),f&&b.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"buscando..."}),s.length>0&&!f&&c&&c.length===0&&b.jsxs("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:['nada encontrado pra "',s,'".']}),c&&c.length>0&&b.jsx(wc,{livros:c,titulo:`resultados pra "${s}"`})]}),b.jsx(Pa,{})]})}function Wb(){const{nome:a}=Rc(),i=decodeURIComponent(a),{data:s,isLoading:c}=mt.biblioteca.getSerie.useQuery({nome:i});return b.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[b.jsx($a,{}),b.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[b.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.5rem",color:"var(--clr-branco)",marginBottom:"1.5rem"},children:i}),c&&b.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),s&&s.length>0?b.jsx(wc,{livros:s,titulo:`${s.length} livro${s.length>1?"s":""} nesta série`}):!c&&b.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"nenhum livro publicado nesta série ainda."})]}),b.jsx(Pa,{})]})}const Ib=B.lazy(()=>i0(()=>import("./Leitor-KCimUthr.js"),[]).then(a=>({default:a.Leitor})));function tS(){const[a]=B.useState(()=>new _0);return b.jsx(mt.Provider,{client:Ub,queryClient:a,children:b.jsx(z0,{client:a,children:b.jsx(B.Suspense,{fallback:null,children:b.jsxs(fg,{children:[b.jsx(Fn,{path:"/admin",component:kb}),b.jsx(Fn,{path:"/leitor/:id",component:Ib}),b.jsx(Fn,{path:"/livro/:id",component:$b}),b.jsx(Fn,{path:"/serie/:nome",component:Wb}),b.jsx(Fn,{path:"/buscar",component:Pb}),b.jsx(Fn,{path:"/",component:Yb})]})})})})}n0.createRoot(document.getElementById("root")).render(b.jsx(B.StrictMode,{children:b.jsx(tS,{})}));export{sg as a,eS as c,Vp as g,b as j,B as r,mt as t,Rc as u};
