function u0(n,i){for(var s=0;s<i.length;s++){const o=i[s];if(typeof o!="string"&&!Array.isArray(o)){for(const c in o)if(c!=="default"&&!(c in n)){const h=Object.getOwnPropertyDescriptor(o,c);h&&Object.defineProperty(n,c,h.get?h:{enumerable:!0,get:()=>o[c]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))o(c);new MutationObserver(c=>{for(const h of c)if(h.type==="childList")for(const m of h.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&o(m)}).observe(document,{childList:!0,subtree:!0});function s(c){const h={};return c.integrity&&(h.integrity=c.integrity),c.referrerPolicy&&(h.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?h.credentials="include":c.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function o(c){if(c.ep)return;c.ep=!0;const h=s(c);fetch(c.href,h)}})();var m1=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function i0(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var xo={exports:{}},fu={};/**
 * @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 em;function r0(){if(em)return fu;em=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(o,c,h){var m=null;if(h!==void 0&&(m=""+h),c.key!==void 0&&(m=""+c.key),"key"in c){h={};for(var v in c)v!=="key"&&(h[v]=c[v])}else h=c;return c=h.ref,{$$typeof:n,type:o,key:m,ref:c!==void 0?c:null,props:h}}return fu.Fragment=i,fu.jsx=s,fu.jsxs=s,fu}var tm;function s0(){return tm||(tm=1,xo.exports=r0()),xo.exports}var d=s0(),So={exports:{}},ce={};/**
 * @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 am;function o0(){if(am)return ce;am=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),j=Symbol.for("react.activity"),M=Symbol.iterator;function Y(x){return x===null||typeof x!="object"?null:(x=M&&x[M]||x["@@iterator"],typeof x=="function"?x:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,P={};function re(x,D,B){this.props=x,this.context=D,this.refs=P,this.updater=B||k}re.prototype.isReactComponent={},re.prototype.setState=function(x,D){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,D,"setState")},re.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function ve(){}ve.prototype=re.prototype;function Ae(x,D,B){this.props=x,this.context=D,this.refs=P,this.updater=B||k}var qe=Ae.prototype=new ve;qe.constructor=Ae,U(qe,re.prototype),qe.isPureReactComponent=!0;var $=Array.isArray;function K(){}var z={H:null,A:null,T:null,S:null},Z=Object.prototype.hasOwnProperty;function I(x,D,B){var L=B.ref;return{$$typeof:n,type:x,key:D,ref:L!==void 0?L:null,props:B}}function W(x,D){return I(x.type,D,x.props)}function ae(x){return typeof x=="object"&&x!==null&&x.$$typeof===n}function ee(x){var D={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(B){return D[B]})}var pe=/\/+/g;function oe(x,D){return typeof x=="object"&&x!==null&&x.key!=null?ee(""+x.key):D.toString(36)}function fe(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(K,K):(x.status="pending",x.then(function(D){x.status==="pending"&&(x.status="fulfilled",x.value=D)},function(D){x.status==="pending"&&(x.status="rejected",x.reason=D)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function A(x,D,B,L,F){var se=typeof x;(se==="undefined"||se==="boolean")&&(x=null);var ye=!1;if(x===null)ye=!0;else switch(se){case"bigint":case"string":case"number":ye=!0;break;case"object":switch(x.$$typeof){case n:case i:ye=!0;break;case _:return ye=x._init,A(ye(x._payload),D,B,L,F)}}if(ye)return F=F(x),ye=L===""?"."+oe(x,0):L,$(F)?(B="",ye!=null&&(B=ye.replace(pe,"$&/")+"/"),A(F,D,B,"",function(ja){return ja})):F!=null&&(ae(F)&&(F=W(F,B+(F.key==null||x&&x.key===F.key?"":(""+F.key).replace(pe,"$&/")+"/")+ye)),D.push(F)),1;ye=0;var Ve=L===""?".":L+":";if($(x))for(var He=0;He<x.length;He++)L=x[He],se=Ve+oe(L,He),ye+=A(L,D,B,se,F);else if(He=Y(x),typeof He=="function")for(x=He.call(x),He=0;!(L=x.next()).done;)L=L.value,se=Ve+oe(L,He++),ye+=A(L,D,B,se,F);else if(se==="object"){if(typeof x.then=="function")return A(fe(x),D,B,L,F);throw D=String(x),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return ye}function H(x,D,B){if(x==null)return x;var L=[],F=0;return A(x,L,"","",function(se){return D.call(B,se,F++)}),L}function G(x){if(x._status===-1){var D=x._result;D=D(),D.then(function(B){(x._status===0||x._status===-1)&&(x._status=1,x._result=B)},function(B){(x._status===0||x._status===-1)&&(x._status=2,x._result=B)}),x._status===-1&&(x._status=0,x._result=D)}if(x._status===1)return x._result.default;throw x._result}var ue=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)},he={map:H,forEach:function(x,D,B){H(x,function(){D.apply(this,arguments)},B)},count:function(x){var D=0;return H(x,function(){D++}),D},toArray:function(x){return H(x,function(D){return D})||[]},only:function(x){if(!ae(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return ce.Activity=j,ce.Children=he,ce.Component=re,ce.Fragment=s,ce.Profiler=c,ce.PureComponent=Ae,ce.StrictMode=o,ce.Suspense=p,ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,ce.__COMPILER_RUNTIME={__proto__:null,c:function(x){return z.H.useMemoCache(x)}},ce.cache=function(x){return function(){return x.apply(null,arguments)}},ce.cacheSignal=function(){return null},ce.cloneElement=function(x,D,B){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var L=U({},x.props),F=x.key;if(D!=null)for(se in D.key!==void 0&&(F=""+D.key),D)!Z.call(D,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&D.ref===void 0||(L[se]=D[se]);var se=arguments.length-2;if(se===1)L.children=B;else if(1<se){for(var ye=Array(se),Ve=0;Ve<se;Ve++)ye[Ve]=arguments[Ve+2];L.children=ye}return I(x.type,F,L)},ce.createContext=function(x){return x={$$typeof:m,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:h,_context:x},x},ce.createElement=function(x,D,B){var L,F={},se=null;if(D!=null)for(L in D.key!==void 0&&(se=""+D.key),D)Z.call(D,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(F[L]=D[L]);var ye=arguments.length-2;if(ye===1)F.children=B;else if(1<ye){for(var Ve=Array(ye),He=0;He<ye;He++)Ve[He]=arguments[He+2];F.children=Ve}if(x&&x.defaultProps)for(L in ye=x.defaultProps,ye)F[L]===void 0&&(F[L]=ye[L]);return I(x,se,F)},ce.createRef=function(){return{current:null}},ce.forwardRef=function(x){return{$$typeof:v,render:x}},ce.isValidElement=ae,ce.lazy=function(x){return{$$typeof:_,_payload:{_status:-1,_result:x},_init:G}},ce.memo=function(x,D){return{$$typeof:g,type:x,compare:D===void 0?null:D}},ce.startTransition=function(x){var D=z.T,B={};z.T=B;try{var L=x(),F=z.S;F!==null&&F(B,L),typeof L=="object"&&L!==null&&typeof L.then=="function"&&L.then(K,ue)}catch(se){ue(se)}finally{D!==null&&B.types!==null&&(D.types=B.types),z.T=D}},ce.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},ce.use=function(x){return z.H.use(x)},ce.useActionState=function(x,D,B){return z.H.useActionState(x,D,B)},ce.useCallback=function(x,D){return z.H.useCallback(x,D)},ce.useContext=function(x){return z.H.useContext(x)},ce.useDebugValue=function(){},ce.useDeferredValue=function(x,D){return z.H.useDeferredValue(x,D)},ce.useEffect=function(x,D){return z.H.useEffect(x,D)},ce.useEffectEvent=function(x){return z.H.useEffectEvent(x)},ce.useId=function(){return z.H.useId()},ce.useImperativeHandle=function(x,D,B){return z.H.useImperativeHandle(x,D,B)},ce.useInsertionEffect=function(x,D){return z.H.useInsertionEffect(x,D)},ce.useLayoutEffect=function(x,D){return z.H.useLayoutEffect(x,D)},ce.useMemo=function(x,D){return z.H.useMemo(x,D)},ce.useOptimistic=function(x,D){return z.H.useOptimistic(x,D)},ce.useReducer=function(x,D,B){return z.H.useReducer(x,D,B)},ce.useRef=function(x){return z.H.useRef(x)},ce.useState=function(x){return z.H.useState(x)},ce.useSyncExternalStore=function(x,D,B){return z.H.useSyncExternalStore(x,D,B)},ce.useTransition=function(){return z.H.useTransition()},ce.version="19.2.1",ce}var lm;function Ii(){return lm||(lm=1,So.exports=o0()),So.exports}var q=Ii();const c0=i0(q),Hm=u0({__proto__:null,default:c0},[q]);var jo={exports:{}},du={},Oo={exports:{}},_o={};/**
 * @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 nm;function f0(){return nm||(nm=1,(function(n){function i(A,H){var G=A.length;A.push(H);e:for(;0<G;){var ue=G-1>>>1,he=A[ue];if(0<c(he,H))A[ue]=H,A[G]=he,G=ue;else break e}}function s(A){return A.length===0?null:A[0]}function o(A){if(A.length===0)return null;var H=A[0],G=A.pop();if(G!==H){A[0]=G;e:for(var ue=0,he=A.length,x=he>>>1;ue<x;){var D=2*(ue+1)-1,B=A[D],L=D+1,F=A[L];if(0>c(B,G))L<he&&0>c(F,B)?(A[ue]=F,A[L]=G,ue=L):(A[ue]=B,A[D]=G,ue=D);else if(L<he&&0>c(F,G))A[ue]=F,A[L]=G,ue=L;else break e}}return H}function c(A,H){var G=A.sortIndex-H.sortIndex;return G!==0?G:A.id-H.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;n.unstable_now=function(){return h.now()}}else{var m=Date,v=m.now();n.unstable_now=function(){return m.now()-v}}var p=[],g=[],_=1,j=null,M=3,Y=!1,k=!1,U=!1,P=!1,re=typeof setTimeout=="function"?setTimeout:null,ve=typeof clearTimeout=="function"?clearTimeout:null,Ae=typeof setImmediate<"u"?setImmediate:null;function qe(A){for(var H=s(g);H!==null;){if(H.callback===null)o(g);else if(H.startTime<=A)o(g),H.sortIndex=H.expirationTime,i(p,H);else break;H=s(g)}}function $(A){if(U=!1,qe(A),!k)if(s(p)!==null)k=!0,K||(K=!0,ee());else{var H=s(g);H!==null&&fe($,H.startTime-A)}}var K=!1,z=-1,Z=5,I=-1;function W(){return P?!0:!(n.unstable_now()-I<Z)}function ae(){if(P=!1,K){var A=n.unstable_now();I=A;var H=!0;try{e:{k=!1,U&&(U=!1,ve(z),z=-1),Y=!0;var G=M;try{t:{for(qe(A),j=s(p);j!==null&&!(j.expirationTime>A&&W());){var ue=j.callback;if(typeof ue=="function"){j.callback=null,M=j.priorityLevel;var he=ue(j.expirationTime<=A);if(A=n.unstable_now(),typeof he=="function"){j.callback=he,qe(A),H=!0;break t}j===s(p)&&o(p),qe(A)}else o(p);j=s(p)}if(j!==null)H=!0;else{var x=s(g);x!==null&&fe($,x.startTime-A),H=!1}}break e}finally{j=null,M=G,Y=!1}H=void 0}}finally{H?ee():K=!1}}}var ee;if(typeof Ae=="function")ee=function(){Ae(ae)};else if(typeof MessageChannel<"u"){var pe=new MessageChannel,oe=pe.port2;pe.port1.onmessage=ae,ee=function(){oe.postMessage(null)}}else ee=function(){re(ae,0)};function fe(A,H){z=re(function(){A(n.unstable_now())},H)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(A){A.callback=null},n.unstable_forceFrameRate=function(A){0>A||125<A?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Z=0<A?Math.floor(1e3/A):5},n.unstable_getCurrentPriorityLevel=function(){return M},n.unstable_next=function(A){switch(M){case 1:case 2:case 3:var H=3;break;default:H=M}var G=M;M=H;try{return A()}finally{M=G}},n.unstable_requestPaint=function(){P=!0},n.unstable_runWithPriority=function(A,H){switch(A){case 1:case 2:case 3:case 4:case 5:break;default:A=3}var G=M;M=A;try{return H()}finally{M=G}},n.unstable_scheduleCallback=function(A,H,G){var ue=n.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?ue+G:ue):G=ue,A){case 1:var he=-1;break;case 2:he=250;break;case 5:he=1073741823;break;case 4:he=1e4;break;default:he=5e3}return he=G+he,A={id:_++,callback:H,priorityLevel:A,startTime:G,expirationTime:he,sortIndex:-1},G>ue?(A.sortIndex=G,i(g,A),s(p)===null&&A===s(g)&&(U?(ve(z),z=-1):U=!0,fe($,G-ue))):(A.sortIndex=he,i(p,A),k||Y||(k=!0,K||(K=!0,ee()))),A},n.unstable_shouldYield=W,n.unstable_wrapCallback=function(A){var H=M;return function(){var G=M;M=H;try{return A.apply(this,arguments)}finally{M=G}}}})(_o)),_o}var um;function d0(){return um||(um=1,Oo.exports=f0()),Oo.exports}var Eo={exports:{}},it={};/**
 * @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 im;function h0(){if(im)return it;im=1;var n=Ii();function i(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var _=2;_<arguments.length;_++)g+="&args[]="+encodeURIComponent(arguments[_])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={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},c=Symbol.for("react.portal");function h(p,g,_){var j=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:j==null?null:""+j,children:p,containerInfo:g,implementation:_}}var m=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return it.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,it.createPortal=function(p,g){var _=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(i(299));return h(p,g,null,_)},it.flushSync=function(p){var g=m.T,_=o.p;try{if(m.T=null,o.p=2,p)return p()}finally{m.T=g,o.p=_,o.d.f()}},it.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,o.d.C(p,g))},it.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},it.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var _=g.as,j=v(_,g.crossOrigin),M=typeof g.integrity=="string"?g.integrity:void 0,Y=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;_==="style"?o.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:j,integrity:M,fetchPriority:Y}):_==="script"&&o.d.X(p,{crossOrigin:j,integrity:M,fetchPriority:Y,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},it.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var _=v(g.as,g.crossOrigin);o.d.M(p,{crossOrigin:_,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&o.d.M(p)},it.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var _=g.as,j=v(_,g.crossOrigin);o.d.L(p,_,{crossOrigin:j,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},it.preloadModule=function(p,g){if(typeof p=="string")if(g){var _=v(g.as,g.crossOrigin);o.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:_,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else o.d.m(p)},it.requestFormReset=function(p){o.d.r(p)},it.unstable_batchedUpdates=function(p,g){return p(g)},it.useFormState=function(p,g,_){return m.H.useFormState(p,g,_)},it.useFormStatus=function(){return m.H.useHostTransitionStatus()},it.version="19.2.1",it}var rm;function m0(){if(rm)return Eo.exports;rm=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),Eo.exports=h0(),Eo.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 sm;function v0(){if(sm)return du;sm=1;var n=d0(),i=Ii(),s=m0();function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function h(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function m(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function v(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p(e){if(h(e)!==e)throw Error(o(188))}function g(e){var t=e.alternate;if(!t){if(t=h(e),t===null)throw Error(o(188));return t!==e?null:e}for(var a=e,l=t;;){var u=a.return;if(u===null)break;var r=u.alternate;if(r===null){if(l=u.return,l!==null){a=l;continue}break}if(u.child===r.child){for(r=u.child;r;){if(r===a)return p(u),e;if(r===l)return p(u),t;r=r.sibling}throw Error(o(188))}if(a.return!==l.return)a=u,l=r;else{for(var f=!1,y=u.child;y;){if(y===a){f=!0,a=u,l=r;break}if(y===l){f=!0,l=u,a=r;break}y=y.sibling}if(!f){for(y=r.child;y;){if(y===a){f=!0,a=r,l=u;break}if(y===l){f=!0,l=r,a=u;break}y=y.sibling}if(!f)throw Error(o(189))}}if(a.alternate!==l)throw Error(o(190))}if(a.tag!==3)throw Error(o(188));return a.stateNode.current===a?e:t}function _(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=_(e),t!==null)return t;e=e.sibling}return null}var j=Object.assign,M=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),k=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),re=Symbol.for("react.profiler"),ve=Symbol.for("react.consumer"),Ae=Symbol.for("react.context"),qe=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),W=Symbol.for("react.memo_cache_sentinel"),ae=Symbol.iterator;function ee(e){return e===null||typeof e!="object"?null:(e=ae&&e[ae]||e["@@iterator"],typeof e=="function"?e:null)}var pe=Symbol.for("react.client.reference");function oe(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case U:return"Fragment";case re:return"Profiler";case P:return"StrictMode";case $:return"Suspense";case K:return"SuspenseList";case I:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case k:return"Portal";case Ae:return e.displayName||"Context";case ve:return(e._context.displayName||"Context")+".Consumer";case qe:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z:return t=e.displayName||null,t!==null?t:oe(e.type)||"Memo";case Z:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}var fe=Array.isArray,A=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G={pending:!1,data:null,method:null,action:null},ue=[],he=-1;function x(e){return{current:e}}function D(e){0>he||(e.current=ue[he],ue[he]=null,he--)}function B(e,t){he++,ue[he]=e.current,e.current=t}var L=x(null),F=x(null),se=x(null),ye=x(null);function Ve(e,t){switch(B(se,t),B(F,e),B(L,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Oh(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Oh(t),e=_h(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}D(L),B(L,e)}function He(){D(L),D(F),D(se)}function ja(e){e.memoizedState!==null&&B(ye,e);var t=L.current,a=_h(t,e.type);t!==a&&(B(F,e),B(L,a))}function Wa(e){F.current===e&&(D(L),D(F)),ye.current===e&&(D(ye),ru._currentValue=G)}var _l,Ia;function Pt(e){if(_l===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);_l=t&&t[1]||"",Ia=-1<a.stack.indexOf(`
    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+_l+e+Ia}var Oa=!1;function dt(e,t){if(!e||Oa)return"";Oa=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){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(T){var C=T}Reflect.construct(e,[],Q)}else{try{Q.call()}catch(T){C=T}e.call(Q.prototype)}}else{try{throw Error()}catch(T){C=T}(Q=e())&&typeof Q.catch=="function"&&Q.catch(function(){})}}catch(T){if(T&&C&&typeof T.stack=="string")return[T.stack,C.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var u=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=l.DetermineComponentFrameRoot(),f=r[0],y=r[1];if(f&&y){var b=f.split(`
`),N=y.split(`
`);for(u=l=0;l<b.length&&!b[l].includes("DetermineComponentFrameRoot");)l++;for(;u<N.length&&!N[u].includes("DetermineComponentFrameRoot");)u++;if(l===b.length||u===N.length)for(l=b.length-1,u=N.length-1;1<=l&&0<=u&&b[l]!==N[u];)u--;for(;1<=l&&0<=u;l--,u--)if(b[l]!==N[u]){if(l!==1||u!==1)do if(l--,u--,0>u||b[l]!==N[u]){var R=`
`+b[l].replace(" at new "," at ");return e.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",e.displayName)),R}while(1<=l&&0<=u);break}}}finally{Oa=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Pt(a):""}function ju(e,t){switch(e.tag){case 26:case 27:case 5:return Pt(e.type);case 16:return Pt("Lazy");case 13:return e.child!==t&&t!==null?Pt("Suspense Fallback"):Pt("Suspense");case 19:return Pt("SuspenseList");case 0:case 15:return dt(e.type,!1);case 11:return dt(e.type.render,!1);case 1:return dt(e.type,!0);case 31:return Pt("Activity");default:return""}}function mn(e){try{var t="",a=null;do t+=ju(e,a),a=e,e=e.return;while(e);return t}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var vn=Object.prototype.hasOwnProperty,pn=n.unstable_scheduleCallback,yn=n.unstable_cancelCallback,Ou=n.unstable_shouldYield,X=n.unstable_requestPaint,Ce=n.unstable_now,xt=n.unstable_getCurrentPriorityLevel,St=n.unstable_ImmediatePriority,$t=n.unstable_UserBlockingPriority,ot=n.unstable_NormalPriority,gn=n.unstable_LowPriority,_u=n.unstable_IdlePriority,Yv=n.log,Gv=n.unstable_setDisableYieldValue,bn=null,jt=null;function _a(e){if(typeof Yv=="function"&&Gv(e),jt&&typeof jt.setStrictMode=="function")try{jt.setStrictMode(bn,e)}catch{}}var Ot=Math.clz32?Math.clz32:Zv,Xv=Math.log,kv=Math.LN2;function Zv(e){return e>>>=0,e===0?32:31-(Xv(e)/kv|0)|0}var Eu=256,Nu=262144,Au=4194304;function el(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Cu(e,t,a){var l=e.pendingLanes;if(l===0)return 0;var u=0,r=e.suspendedLanes,f=e.pingedLanes;e=e.warmLanes;var y=l&134217727;return y!==0?(l=y&~r,l!==0?u=el(l):(f&=y,f!==0?u=el(f):a||(a=y&~e,a!==0&&(u=el(a))))):(y=l&~r,y!==0?u=el(y):f!==0?u=el(f):a||(a=l&~e,a!==0&&(u=el(a)))),u===0?0:t!==0&&t!==u&&(t&r)===0&&(r=u&-u,a=t&-t,r>=a||r===32&&(a&4194048)!==0)?t:u}function xn(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Kv(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lc(){var e=Au;return Au<<=1,(Au&62914560)===0&&(Au=4194304),e}function rr(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Sn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Vv(e,t,a,l,u,r){var f=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var y=e.entanglements,b=e.expirationTimes,N=e.hiddenUpdates;for(a=f&~a;0<a;){var R=31-Ot(a),Q=1<<R;y[R]=0,b[R]=-1;var C=N[R];if(C!==null)for(N[R]=null,R=0;R<C.length;R++){var T=C[R];T!==null&&(T.lane&=-536870913)}a&=~Q}l!==0&&nc(e,l,0),r!==0&&u===0&&e.tag!==0&&(e.suspendedLanes|=r&~(f&~t))}function nc(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Ot(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&261930}function uc(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Ot(a),u=1<<l;u&t|e[l]&t&&(e[l]|=t),a&=~u}}function ic(e,t){var a=t&-t;return a=(a&42)!==0?1:sr(a),(a&(e.suspendedLanes|t))!==0?0:a}function sr(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function or(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function rc(){var e=H.p;return e!==0?e:(e=window.event,e===void 0?32:Vh(e.type))}function sc(e,t){var a=H.p;try{return H.p=e,t()}finally{H.p=a}}var Ea=Math.random().toString(36).slice(2),tt="__reactFiber$"+Ea,ht="__reactProps$"+Ea,El="__reactContainer$"+Ea,cr="__reactEvents$"+Ea,Jv="__reactListeners$"+Ea,Fv="__reactHandles$"+Ea,oc="__reactResources$"+Ea,jn="__reactMarker$"+Ea;function fr(e){delete e[tt],delete e[ht],delete e[cr],delete e[Jv],delete e[Fv]}function Nl(e){var t=e[tt];if(t)return t;for(var a=e.parentNode;a;){if(t=a[El]||a[tt]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=zh(e);e!==null;){if(a=e[tt])return a;e=zh(e)}return t}e=a,a=e.parentNode}return null}function Al(e){if(e=e[tt]||e[El]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function On(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(o(33))}function Cl(e){var t=e[oc];return t||(t=e[oc]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[jn]=!0}var cc=new Set,fc={};function tl(e,t){Tl(e,t),Tl(e+"Capture",t)}function Tl(e,t){for(fc[e]=t,e=0;e<t.length;e++)cc.add(t[e])}var Pv=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]*$"),dc={},hc={};function $v(e){return vn.call(hc,e)?!0:vn.call(dc,e)?!1:Pv.test(e)?hc[e]=!0:(dc[e]=!0,!1)}function Tu(e,t,a){if($v(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Mu(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function na(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function Dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function mc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Wv(e,t,a){var l=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,r=l.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(f){a=""+f,r.call(this,f)}}),Object.defineProperty(e,t,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function dr(e){if(!e._valueTracker){var t=mc(e)?"checked":"value";e._valueTracker=Wv(e,t,""+e[t])}}function vc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=mc(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function zu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var Iv=/[\n"\\]/g;function Rt(e){return e.replace(Iv,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function hr(e,t,a,l,u,r,f,y){e.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?e.type=f:e.removeAttribute("type"),t!=null?f==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Dt(t)):e.value!==""+Dt(t)&&(e.value=""+Dt(t)):f!=="submit"&&f!=="reset"||e.removeAttribute("value"),t!=null?mr(e,f,Dt(t)):a!=null?mr(e,f,Dt(a)):l!=null&&e.removeAttribute("value"),u==null&&r!=null&&(e.defaultChecked=!!r),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Dt(y):e.removeAttribute("name")}function pc(e,t,a,l,u,r,f,y){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null)){dr(e);return}a=a!=null?""+Dt(a):"",t=t!=null?""+Dt(t):a,y||t===e.value||(e.value=t),e.defaultValue=t}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=y?e.checked:!!l,e.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.name=f),dr(e)}function mr(e,t,a){t==="number"&&zu(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ml(e,t,a,l){if(e=e.options,t){t={};for(var u=0;u<a.length;u++)t["$"+a[u]]=!0;for(a=0;a<e.length;a++)u=t.hasOwnProperty("$"+e[a].value),e[a].selected!==u&&(e[a].selected=u),u&&l&&(e[a].defaultSelected=!0)}else{for(a=""+Dt(a),t=null,u=0;u<e.length;u++){if(e[u].value===a){e[u].selected=!0,l&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function yc(e,t,a){if(t!=null&&(t=""+Dt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Dt(a):""}function gc(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(o(92));if(fe(l)){if(1<l.length)throw Error(o(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=Dt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l),dr(e)}function zl(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var ep=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 bc(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||ep.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function xc(e,t,a){if(t!=null&&typeof t!="object")throw Error(o(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var u in t)l=t[u],t.hasOwnProperty(u)&&a[u]!==l&&bc(e,u,l)}else for(var r in t)t.hasOwnProperty(r)&&bc(e,r,t[r])}function vr(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var tp=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"]]),ap=/^[\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 Du(e){return ap.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function ua(){}var pr=null;function yr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dl=null,Rl=null;function Sc(e){var t=Al(e);if(t&&(e=t.stateNode)){var a=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(hr(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+Rt(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var u=l[ht]||null;if(!u)throw Error(o(90));hr(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&vc(l)}break e;case"textarea":yc(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ml(e,!!a.multiple,t,!1)}}}var gr=!1;function jc(e,t,a){if(gr)return e(t,a);gr=!0;try{var l=e(t);return l}finally{if(gr=!1,(Dl!==null||Rl!==null)&&(bi(),Dl&&(t=Dl,e=Rl,Rl=Dl=null,Sc(t),e)))for(t=0;t<e.length;t++)Sc(e[t])}}function _n(e,t){var a=e.stateNode;if(a===null)return null;var l=a[ht]||null;if(l===null)return null;a=l[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(o(231,t,typeof a));return a}var ia=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),br=!1;if(ia)try{var En={};Object.defineProperty(En,"passive",{get:function(){br=!0}}),window.addEventListener("test",En,En),window.removeEventListener("test",En,En)}catch{br=!1}var Na=null,xr=null,Ru=null;function Oc(){if(Ru)return Ru;var e,t=xr,a=t.length,l,u="value"in Na?Na.value:Na.textContent,r=u.length;for(e=0;e<a&&t[e]===u[e];e++);var f=a-e;for(l=1;l<=f&&t[a-l]===u[r-l];l++);return Ru=u.slice(e,1<l?1-l:void 0)}function Uu(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function qu(){return!0}function _c(){return!1}function mt(e){function t(a,l,u,r,f){this._reactName=a,this._targetInst=u,this.type=l,this.nativeEvent=r,this.target=f,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(a=e[y],this[y]=a?a(r):r[y]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?qu:_c,this.isPropagationStopped=_c,this}return j(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=qu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=qu)},persist:function(){},isPersistent:qu}),t}var al={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wu=mt(al),Nn=j({},al,{view:0,detail:0}),lp=mt(Nn),Sr,jr,An,Qu=j({},Nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_r,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==An&&(An&&e.type==="mousemove"?(Sr=e.screenX-An.screenX,jr=e.screenY-An.screenY):jr=Sr=0,An=e),Sr)},movementY:function(e){return"movementY"in e?e.movementY:jr}}),Ec=mt(Qu),np=j({},Qu,{dataTransfer:0}),up=mt(np),ip=j({},Nn,{relatedTarget:0}),Or=mt(ip),rp=j({},al,{animationName:0,elapsedTime:0,pseudoElement:0}),sp=mt(rp),op=j({},al,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),cp=mt(op),fp=j({},al,{data:0}),Nc=mt(fp),dp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hp={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"},mp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function vp(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=mp[e])?!!t[e]:!1}function _r(){return vp}var pp=j({},Nn,{key:function(e){if(e.key){var t=dp[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Uu(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?hp[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_r,charCode:function(e){return e.type==="keypress"?Uu(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Uu(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),yp=mt(pp),gp=j({},Qu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ac=mt(gp),bp=j({},Nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_r}),xp=mt(bp),Sp=j({},al,{propertyName:0,elapsedTime:0,pseudoElement:0}),jp=mt(Sp),Op=j({},Qu,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),_p=mt(Op),Ep=j({},al,{newState:0,oldState:0}),Np=mt(Ep),Ap=[9,13,27,32],Er=ia&&"CompositionEvent"in window,Cn=null;ia&&"documentMode"in document&&(Cn=document.documentMode);var Cp=ia&&"TextEvent"in window&&!Cn,Cc=ia&&(!Er||Cn&&8<Cn&&11>=Cn),Tc=" ",Mc=!1;function zc(e,t){switch(e){case"keyup":return Ap.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Dc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ul=!1;function Tp(e,t){switch(e){case"compositionend":return Dc(t);case"keypress":return t.which!==32?null:(Mc=!0,Tc);case"textInput":return e=t.data,e===Tc&&Mc?null:e;default:return null}}function Mp(e,t){if(Ul)return e==="compositionend"||!Er&&zc(e,t)?(e=Oc(),Ru=xr=Na=null,Ul=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Cc&&t.locale!=="ko"?null:t.data;default:return null}}var zp={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 Rc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zp[e.type]:t==="textarea"}function Uc(e,t,a,l){Dl?Rl?Rl.push(l):Rl=[l]:Dl=l,t=Ni(t,"onChange"),0<t.length&&(a=new wu("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Tn=null,Mn=null;function Dp(e){yh(e,0)}function Hu(e){var t=On(e);if(vc(t))return e}function qc(e,t){if(e==="change")return t}var wc=!1;if(ia){var Nr;if(ia){var Ar="oninput"in document;if(!Ar){var Qc=document.createElement("div");Qc.setAttribute("oninput","return;"),Ar=typeof Qc.oninput=="function"}Nr=Ar}else Nr=!1;wc=Nr&&(!document.documentMode||9<document.documentMode)}function Hc(){Tn&&(Tn.detachEvent("onpropertychange",Bc),Mn=Tn=null)}function Bc(e){if(e.propertyName==="value"&&Hu(Mn)){var t=[];Uc(t,Mn,e,yr(e)),jc(Dp,t)}}function Rp(e,t,a){e==="focusin"?(Hc(),Tn=t,Mn=a,Tn.attachEvent("onpropertychange",Bc)):e==="focusout"&&Hc()}function Up(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hu(Mn)}function qp(e,t){if(e==="click")return Hu(t)}function wp(e,t){if(e==="input"||e==="change")return Hu(t)}function Qp(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var _t=typeof Object.is=="function"?Object.is:Qp;function zn(e,t){if(_t(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var u=a[l];if(!vn.call(t,u)||!_t(e[u],t[u]))return!1}return!0}function Lc(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Yc(e,t){var a=Lc(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Lc(a)}}function Gc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Gc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xc(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=zu(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch{a=!1}if(a)e=t.contentWindow;else break;t=zu(e.document)}return t}function Cr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Hp=ia&&"documentMode"in document&&11>=document.documentMode,ql=null,Tr=null,Dn=null,Mr=!1;function kc(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Mr||ql==null||ql!==zu(l)||(l=ql,"selectionStart"in l&&Cr(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Dn&&zn(Dn,l)||(Dn=l,l=Ni(Tr,"onSelect"),0<l.length&&(t=new wu("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=ql)))}function ll(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var wl={animationend:ll("Animation","AnimationEnd"),animationiteration:ll("Animation","AnimationIteration"),animationstart:ll("Animation","AnimationStart"),transitionrun:ll("Transition","TransitionRun"),transitionstart:ll("Transition","TransitionStart"),transitioncancel:ll("Transition","TransitionCancel"),transitionend:ll("Transition","TransitionEnd")},zr={},Zc={};ia&&(Zc=document.createElement("div").style,"AnimationEvent"in window||(delete wl.animationend.animation,delete wl.animationiteration.animation,delete wl.animationstart.animation),"TransitionEvent"in window||delete wl.transitionend.transition);function nl(e){if(zr[e])return zr[e];if(!wl[e])return e;var t=wl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Zc)return zr[e]=t[a];return e}var Kc=nl("animationend"),Vc=nl("animationiteration"),Jc=nl("animationstart"),Bp=nl("transitionrun"),Lp=nl("transitionstart"),Yp=nl("transitioncancel"),Fc=nl("transitionend"),Pc=new Map,Dr="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(" ");Dr.push("scrollEnd");function Xt(e,t){Pc.set(e,t),tl(t,[e])}var Bu=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Ut=[],Ql=0,Rr=0;function Lu(){for(var e=Ql,t=Rr=Ql=0;t<e;){var a=Ut[t];Ut[t++]=null;var l=Ut[t];Ut[t++]=null;var u=Ut[t];Ut[t++]=null;var r=Ut[t];if(Ut[t++]=null,l!==null&&u!==null){var f=l.pending;f===null?u.next=u:(u.next=f.next,f.next=u),l.pending=u}r!==0&&$c(a,u,r)}}function Yu(e,t,a,l){Ut[Ql++]=e,Ut[Ql++]=t,Ut[Ql++]=a,Ut[Ql++]=l,Rr|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function Ur(e,t,a,l){return Yu(e,t,a,l),Gu(e)}function ul(e,t){return Yu(e,null,null,t),Gu(e)}function $c(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var u=!1,r=e.return;r!==null;)r.childLanes|=a,l=r.alternate,l!==null&&(l.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(u=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,u&&t!==null&&(u=31-Ot(a),e=r.hiddenUpdates,l=e[u],l===null?e[u]=[t]:l.push(t),t.lane=a|536870912),r):null}function Gu(e){if(50<eu)throw eu=0,Xs=null,Error(o(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Hl={};function Gp(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Et(e,t,a,l){return new Gp(e,t,a,l)}function qr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ra(e,t){var a=e.alternate;return a===null?(a=Et(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Wc(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Xu(e,t,a,l,u,r){var f=0;if(l=e,typeof e=="function")qr(e)&&(f=1);else if(typeof e=="string")f=Vy(e,a,L.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case I:return e=Et(31,a,t,u),e.elementType=I,e.lanes=r,e;case U:return il(a.children,u,r,t);case P:f=8,u|=24;break;case re:return e=Et(12,a,t,u|2),e.elementType=re,e.lanes=r,e;case $:return e=Et(13,a,t,u),e.elementType=$,e.lanes=r,e;case K:return e=Et(19,a,t,u),e.elementType=K,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ae:f=10;break e;case ve:f=9;break e;case qe:f=11;break e;case z:f=14;break e;case Z:f=16,l=null;break e}f=29,a=Error(o(130,e===null?"null":typeof e,"")),l=null}return t=Et(f,a,t,u),t.elementType=e,t.type=l,t.lanes=r,t}function il(e,t,a,l){return e=Et(7,e,l,t),e.lanes=a,e}function wr(e,t,a){return e=Et(6,e,null,t),e.lanes=a,e}function Ic(e){var t=Et(18,null,null,0);return t.stateNode=e,t}function Qr(e,t,a){return t=Et(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ef=new WeakMap;function qt(e,t){if(typeof e=="object"&&e!==null){var a=ef.get(e);return a!==void 0?a:(t={value:e,source:t,stack:mn(t)},ef.set(e,t),t)}return{value:e,source:t,stack:mn(t)}}var Bl=[],Ll=0,ku=null,Rn=0,wt=[],Qt=0,Aa=null,Wt=1,It="";function sa(e,t){Bl[Ll++]=Rn,Bl[Ll++]=ku,ku=e,Rn=t}function tf(e,t,a){wt[Qt++]=Wt,wt[Qt++]=It,wt[Qt++]=Aa,Aa=e;var l=Wt;e=It;var u=32-Ot(l)-1;l&=~(1<<u),a+=1;var r=32-Ot(t)+u;if(30<r){var f=u-u%5;r=(l&(1<<f)-1).toString(32),l>>=f,u-=f,Wt=1<<32-Ot(t)+u|a<<u|l,It=r+e}else Wt=1<<r|a<<u|l,It=e}function Hr(e){e.return!==null&&(sa(e,1),tf(e,1,0))}function Br(e){for(;e===ku;)ku=Bl[--Ll],Bl[Ll]=null,Rn=Bl[--Ll],Bl[Ll]=null;for(;e===Aa;)Aa=wt[--Qt],wt[Qt]=null,It=wt[--Qt],wt[Qt]=null,Wt=wt[--Qt],wt[Qt]=null}function af(e,t){wt[Qt++]=Wt,wt[Qt++]=It,wt[Qt++]=Aa,Wt=t.id,It=t.overflow,Aa=e}var at=null,we=null,je=!1,Ca=null,Ht=!1,Lr=Error(o(519));function Ta(e){var t=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Un(qt(t,e)),Lr}function lf(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[tt]=e,t[ht]=l,a){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(a=0;a<au.length;a++)be(au[a],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),pc(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),gc(t,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||Sh(t.textContent,a)?(l.popover!=null&&(be("beforetoggle",t),be("toggle",t)),l.onScroll!=null&&be("scroll",t),l.onScrollEnd!=null&&be("scrollend",t),l.onClick!=null&&(t.onclick=ua),t=!0):t=!1,t||Ta(e,!0)}function nf(e){for(at=e.return;at;)switch(at.tag){case 5:case 31:case 13:Ht=!1;return;case 27:case 3:Ht=!0;return;default:at=at.return}}function Yl(e){if(e!==at)return!1;if(!je)return nf(e),je=!0,!1;var t=e.tag,a;if((a=t!==3&&t!==27)&&((a=t===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||no(e.type,e.memoizedProps)),a=!a),a&&we&&Ta(e),nf(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));we=Mh(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));we=Mh(e)}else t===27?(t=we,Xa(e.type)?(e=oo,oo=null,we=e):we=t):we=at?Lt(e.stateNode.nextSibling):null;return!0}function rl(){we=at=null,je=!1}function Yr(){var e=Ca;return e!==null&&(gt===null?gt=e:gt.push.apply(gt,e),Ca=null),e}function Un(e){Ca===null?Ca=[e]:Ca.push(e)}var Gr=x(null),sl=null,oa=null;function Ma(e,t,a){B(Gr,t._currentValue),t._currentValue=a}function ca(e){e._currentValue=Gr.current,D(Gr)}function Xr(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function kr(e,t,a,l){var u=e.child;for(u!==null&&(u.return=e);u!==null;){var r=u.dependencies;if(r!==null){var f=u.child;r=r.firstContext;e:for(;r!==null;){var y=r;r=u;for(var b=0;b<t.length;b++)if(y.context===t[b]){r.lanes|=a,y=r.alternate,y!==null&&(y.lanes|=a),Xr(r.return,a,e),l||(f=null);break e}r=y.next}}else if(u.tag===18){if(f=u.return,f===null)throw Error(o(341));f.lanes|=a,r=f.alternate,r!==null&&(r.lanes|=a),Xr(f,a,e),f=null}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===e){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}}function Gl(e,t,a,l){e=null;for(var u=t,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 f=u.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var y=u.type;_t(u.pendingProps.value,f.value)||(e!==null?e.push(y):e=[y])}}else if(u===ye.current){if(f=u.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(e!==null?e.push(ru):e=[ru])}u=u.return}e!==null&&kr(t,e,a,l),t.flags|=262144}function Zu(e){for(e=e.firstContext;e!==null;){if(!_t(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ol(e){sl=e,oa=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return uf(sl,e)}function Ku(e,t){return sl===null&&ol(e),uf(e,t)}function uf(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},oa===null){if(e===null)throw Error(o(308));oa=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else oa=oa.next=t;return a}var Xp=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},kp=n.unstable_scheduleCallback,Zp=n.unstable_NormalPriority,Je={$$typeof:Ae,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Zr(){return{controller:new Xp,data:new Map,refCount:0}}function qn(e){e.refCount--,e.refCount===0&&kp(Zp,function(){e.controller.abort()})}var wn=null,Kr=0,Xl=0,kl=null;function Kp(e,t){if(wn===null){var a=wn=[];Kr=0,Xl=Fs(),kl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Kr++,t.then(rf,rf),t}function rf(){if(--Kr===0&&wn!==null){kl!==null&&(kl.status="fulfilled");var e=wn;wn=null,Xl=0,kl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Vp(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var u=0;u<a.length;u++)(0,a[u])(t)},function(u){for(l.status="rejected",l.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),l}var sf=A.S;A.S=function(e,t){Zd=Ce(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&Kp(e,t),sf!==null&&sf(e,t)};var cl=x(null);function Vr(){var e=cl.current;return e!==null?e:Ue.pooledCache}function Vu(e,t){t===null?B(cl,cl.current):B(cl,t.pool)}function of(){var e=Vr();return e===null?null:{parent:Je._currentValue,pool:e}}var Zl=Error(o(460)),Jr=Error(o(474)),Ju=Error(o(542)),Fu={then:function(){}};function cf(e){return e=e.status,e==="fulfilled"||e==="rejected"}function ff(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(ua,ua),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,hf(e),e;default:if(typeof t.status=="string")t.then(ua,ua);else{if(e=Ue,e!==null&&100<e.shellSuspendCounter)throw Error(o(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var u=t;u.status="fulfilled",u.value=l}},function(l){if(t.status==="pending"){var u=t;u.status="rejected",u.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,hf(e),e}throw dl=t,Zl}}function fl(e){try{var t=e._init;return t(e._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(dl=a,Zl):a}}var dl=null;function df(){if(dl===null)throw Error(o(459));var e=dl;return dl=null,e}function hf(e){if(e===Zl||e===Ju)throw Error(o(483))}var Kl=null,Qn=0;function Pu(e){var t=Qn;return Qn+=1,Kl===null&&(Kl=[]),ff(Kl,e,t)}function Hn(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function $u(e,t){throw t.$$typeof===M?Error(o(525)):(e=Object.prototype.toString.call(t),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function mf(e){function t(O,S){if(e){var E=O.deletions;E===null?(O.deletions=[S],O.flags|=16):E.push(S)}}function a(O,S){if(!e)return null;for(;S!==null;)t(O,S),S=S.sibling;return null}function l(O){for(var S=new Map;O!==null;)O.key!==null?S.set(O.key,O):S.set(O.index,O),O=O.sibling;return S}function u(O,S){return O=ra(O,S),O.index=0,O.sibling=null,O}function r(O,S,E){return O.index=E,e?(E=O.alternate,E!==null?(E=E.index,E<S?(O.flags|=67108866,S):E):(O.flags|=67108866,S)):(O.flags|=1048576,S)}function f(O){return e&&O.alternate===null&&(O.flags|=67108866),O}function y(O,S,E,w){return S===null||S.tag!==6?(S=wr(E,O.mode,w),S.return=O,S):(S=u(S,E),S.return=O,S)}function b(O,S,E,w){var le=E.type;return le===U?R(O,S,E.props.children,w,E.key):S!==null&&(S.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===Z&&fl(le)===S.type)?(S=u(S,E.props),Hn(S,E),S.return=O,S):(S=Xu(E.type,E.key,E.props,null,O.mode,w),Hn(S,E),S.return=O,S)}function N(O,S,E,w){return S===null||S.tag!==4||S.stateNode.containerInfo!==E.containerInfo||S.stateNode.implementation!==E.implementation?(S=Qr(E,O.mode,w),S.return=O,S):(S=u(S,E.children||[]),S.return=O,S)}function R(O,S,E,w,le){return S===null||S.tag!==7?(S=il(E,O.mode,w,le),S.return=O,S):(S=u(S,E),S.return=O,S)}function Q(O,S,E){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=wr(""+S,O.mode,E),S.return=O,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Y:return E=Xu(S.type,S.key,S.props,null,O.mode,E),Hn(E,S),E.return=O,E;case k:return S=Qr(S,O.mode,E),S.return=O,S;case Z:return S=fl(S),Q(O,S,E)}if(fe(S)||ee(S))return S=il(S,O.mode,E,null),S.return=O,S;if(typeof S.then=="function")return Q(O,Pu(S),E);if(S.$$typeof===Ae)return Q(O,Ku(O,S),E);$u(O,S)}return null}function C(O,S,E,w){var le=S!==null?S.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return le!==null?null:y(O,S,""+E,w);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case Y:return E.key===le?b(O,S,E,w):null;case k:return E.key===le?N(O,S,E,w):null;case Z:return E=fl(E),C(O,S,E,w)}if(fe(E)||ee(E))return le!==null?null:R(O,S,E,w,null);if(typeof E.then=="function")return C(O,S,Pu(E),w);if(E.$$typeof===Ae)return C(O,S,Ku(O,E),w);$u(O,E)}return null}function T(O,S,E,w,le){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return O=O.get(E)||null,y(S,O,""+w,le);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Y:return O=O.get(w.key===null?E:w.key)||null,b(S,O,w,le);case k:return O=O.get(w.key===null?E:w.key)||null,N(S,O,w,le);case Z:return w=fl(w),T(O,S,E,w,le)}if(fe(w)||ee(w))return O=O.get(E)||null,R(S,O,w,le,null);if(typeof w.then=="function")return T(O,S,E,Pu(w),le);if(w.$$typeof===Ae)return T(O,S,E,Ku(S,w),le);$u(S,w)}return null}function J(O,S,E,w){for(var le=null,Oe=null,te=S,me=S=0,Se=null;te!==null&&me<E.length;me++){te.index>me?(Se=te,te=null):Se=te.sibling;var _e=C(O,te,E[me],w);if(_e===null){te===null&&(te=Se);break}e&&te&&_e.alternate===null&&t(O,te),S=r(_e,S,me),Oe===null?le=_e:Oe.sibling=_e,Oe=_e,te=Se}if(me===E.length)return a(O,te),je&&sa(O,me),le;if(te===null){for(;me<E.length;me++)te=Q(O,E[me],w),te!==null&&(S=r(te,S,me),Oe===null?le=te:Oe.sibling=te,Oe=te);return je&&sa(O,me),le}for(te=l(te);me<E.length;me++)Se=T(te,O,me,E[me],w),Se!==null&&(e&&Se.alternate!==null&&te.delete(Se.key===null?me:Se.key),S=r(Se,S,me),Oe===null?le=Se:Oe.sibling=Se,Oe=Se);return e&&te.forEach(function(Ja){return t(O,Ja)}),je&&sa(O,me),le}function ie(O,S,E,w){if(E==null)throw Error(o(151));for(var le=null,Oe=null,te=S,me=S=0,Se=null,_e=E.next();te!==null&&!_e.done;me++,_e=E.next()){te.index>me?(Se=te,te=null):Se=te.sibling;var Ja=C(O,te,_e.value,w);if(Ja===null){te===null&&(te=Se);break}e&&te&&Ja.alternate===null&&t(O,te),S=r(Ja,S,me),Oe===null?le=Ja:Oe.sibling=Ja,Oe=Ja,te=Se}if(_e.done)return a(O,te),je&&sa(O,me),le;if(te===null){for(;!_e.done;me++,_e=E.next())_e=Q(O,_e.value,w),_e!==null&&(S=r(_e,S,me),Oe===null?le=_e:Oe.sibling=_e,Oe=_e);return je&&sa(O,me),le}for(te=l(te);!_e.done;me++,_e=E.next())_e=T(te,O,me,_e.value,w),_e!==null&&(e&&_e.alternate!==null&&te.delete(_e.key===null?me:_e.key),S=r(_e,S,me),Oe===null?le=_e:Oe.sibling=_e,Oe=_e);return e&&te.forEach(function(n0){return t(O,n0)}),je&&sa(O,me),le}function Re(O,S,E,w){if(typeof E=="object"&&E!==null&&E.type===U&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case Y:e:{for(var le=E.key;S!==null;){if(S.key===le){if(le=E.type,le===U){if(S.tag===7){a(O,S.sibling),w=u(S,E.props.children),w.return=O,O=w;break e}}else if(S.elementType===le||typeof le=="object"&&le!==null&&le.$$typeof===Z&&fl(le)===S.type){a(O,S.sibling),w=u(S,E.props),Hn(w,E),w.return=O,O=w;break e}a(O,S);break}else t(O,S);S=S.sibling}E.type===U?(w=il(E.props.children,O.mode,w,E.key),w.return=O,O=w):(w=Xu(E.type,E.key,E.props,null,O.mode,w),Hn(w,E),w.return=O,O=w)}return f(O);case k:e:{for(le=E.key;S!==null;){if(S.key===le)if(S.tag===4&&S.stateNode.containerInfo===E.containerInfo&&S.stateNode.implementation===E.implementation){a(O,S.sibling),w=u(S,E.children||[]),w.return=O,O=w;break e}else{a(O,S);break}else t(O,S);S=S.sibling}w=Qr(E,O.mode,w),w.return=O,O=w}return f(O);case Z:return E=fl(E),Re(O,S,E,w)}if(fe(E))return J(O,S,E,w);if(ee(E)){if(le=ee(E),typeof le!="function")throw Error(o(150));return E=le.call(E),ie(O,S,E,w)}if(typeof E.then=="function")return Re(O,S,Pu(E),w);if(E.$$typeof===Ae)return Re(O,S,Ku(O,E),w);$u(O,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,S!==null&&S.tag===6?(a(O,S.sibling),w=u(S,E),w.return=O,O=w):(a(O,S),w=wr(E,O.mode,w),w.return=O,O=w),f(O)):a(O,S)}return function(O,S,E,w){try{Qn=0;var le=Re(O,S,E,w);return Kl=null,le}catch(te){if(te===Zl||te===Ju)throw te;var Oe=Et(29,te,null,O.mode);return Oe.lanes=w,Oe.return=O,Oe}finally{}}}var hl=mf(!0),vf=mf(!1),za=!1;function Fr(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Pr(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Da(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(Ne&2)!==0){var u=l.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),l.pending=t,t=Gu(e),$c(e,null,a),t}return Yu(e,l,t,a),Gu(e)}function Bn(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,uc(e,a)}}function $r(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var u=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var f={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?u=r=f:r=r.next=f,a=a.next}while(a!==null);r===null?u=r=t:r=r.next=t}else u=r=t;a={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:r,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Wr=!1;function Ln(){if(Wr){var e=kl;if(e!==null)throw e}}function Yn(e,t,a,l){Wr=!1;var u=e.updateQueue;za=!1;var r=u.firstBaseUpdate,f=u.lastBaseUpdate,y=u.shared.pending;if(y!==null){u.shared.pending=null;var b=y,N=b.next;b.next=null,f===null?r=N:f.next=N,f=b;var R=e.alternate;R!==null&&(R=R.updateQueue,y=R.lastBaseUpdate,y!==f&&(y===null?R.firstBaseUpdate=N:y.next=N,R.lastBaseUpdate=b))}if(r!==null){var Q=u.baseState;f=0,R=N=b=null,y=r;do{var C=y.lane&-536870913,T=C!==y.lane;if(T?(xe&C)===C:(l&C)===C){C!==0&&C===Xl&&(Wr=!0),R!==null&&(R=R.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var J=e,ie=y;C=t;var Re=a;switch(ie.tag){case 1:if(J=ie.payload,typeof J=="function"){Q=J.call(Re,Q,C);break e}Q=J;break e;case 3:J.flags=J.flags&-65537|128;case 0:if(J=ie.payload,C=typeof J=="function"?J.call(Re,Q,C):J,C==null)break e;Q=j({},Q,C);break e;case 2:za=!0}}C=y.callback,C!==null&&(e.flags|=64,T&&(e.flags|=8192),T=u.callbacks,T===null?u.callbacks=[C]:T.push(C))}else T={lane:C,tag:y.tag,payload:y.payload,callback:y.callback,next:null},R===null?(N=R=T,b=Q):R=R.next=T,f|=C;if(y=y.next,y===null){if(y=u.shared.pending,y===null)break;T=y,y=T.next,T.next=null,u.lastBaseUpdate=T,u.shared.pending=null}}while(!0);R===null&&(b=Q),u.baseState=b,u.firstBaseUpdate=N,u.lastBaseUpdate=R,r===null&&(u.shared.lanes=0),Ha|=f,e.lanes=f,e.memoizedState=Q}}function pf(e,t){if(typeof e!="function")throw Error(o(191,e));e.call(t)}function yf(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)pf(a[e],t)}var Vl=x(null),Wu=x(0);function gf(e,t){e=ba,B(Wu,e),B(Vl,t),ba=e|t.baseLanes}function Ir(){B(Wu,ba),B(Vl,Vl.current)}function es(){ba=Wu.current,D(Vl),D(Wu)}var Nt=x(null),Bt=null;function Ua(e){var t=e.alternate;B(ke,ke.current&1),B(Nt,e),Bt===null&&(t===null||Vl.current!==null||t.memoizedState!==null)&&(Bt=e)}function ts(e){B(ke,ke.current),B(Nt,e),Bt===null&&(Bt=e)}function bf(e){e.tag===22?(B(ke,ke.current),B(Nt,e),Bt===null&&(Bt=e)):qa()}function qa(){B(ke,ke.current),B(Nt,Nt.current)}function At(e){D(Nt),Bt===e&&(Bt=null),D(ke)}var ke=x(0);function Iu(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||ro(a)||so(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fa=0,de=null,ze=null,Fe=null,ei=!1,Jl=!1,ml=!1,ti=0,Gn=0,Fl=null,Jp=0;function Ye(){throw Error(o(321))}function as(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!_t(e[a],t[a]))return!1;return!0}function ls(e,t,a,l,u,r){return fa=r,de=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,A.H=e===null||e.memoizedState===null?ad:gs,ml=!1,r=a(l,u),ml=!1,Jl&&(r=Sf(t,a,l,u)),xf(e),r}function xf(e){A.H=Zn;var t=ze!==null&&ze.next!==null;if(fa=0,Fe=ze=de=null,ei=!1,Gn=0,Fl=null,t)throw Error(o(300));e===null||Pe||(e=e.dependencies,e!==null&&Zu(e)&&(Pe=!0))}function Sf(e,t,a,l){de=e;var u=0;do{if(Jl&&(Fl=null),Gn=0,Jl=!1,25<=u)throw Error(o(301));if(u+=1,Fe=ze=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}A.H=ld,r=t(a,l)}while(Jl);return r}function Fp(){var e=A.H,t=e.useState()[0];return t=typeof t.then=="function"?Xn(t):t,e=e.useState()[0],(ze!==null?ze.memoizedState:null)!==e&&(de.flags|=1024),t}function ns(){var e=ti!==0;return ti=0,e}function us(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function is(e){if(ei){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ei=!1}fa=0,Fe=ze=de=null,Jl=!1,Gn=ti=0,Fl=null}function ct(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fe===null?de.memoizedState=Fe=e:Fe=Fe.next=e,Fe}function Ze(){if(ze===null){var e=de.alternate;e=e!==null?e.memoizedState:null}else e=ze.next;var t=Fe===null?de.memoizedState:Fe.next;if(t!==null)Fe=t,ze=e;else{if(e===null)throw de.alternate===null?Error(o(467)):Error(o(310));ze=e,e={memoizedState:ze.memoizedState,baseState:ze.baseState,baseQueue:ze.baseQueue,queue:ze.queue,next:null},Fe===null?de.memoizedState=Fe=e:Fe=Fe.next=e}return Fe}function ai(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xn(e){var t=Gn;return Gn+=1,Fl===null&&(Fl=[]),e=ff(Fl,e,t),t=de,(Fe===null?t.memoizedState:Fe.next)===null&&(t=t.alternate,A.H=t===null||t.memoizedState===null?ad:gs),e}function li(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Xn(e);if(e.$$typeof===Ae)return lt(e)}throw Error(o(438,String(e)))}function rs(e){var t=null,a=de.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=de.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(u){return u.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=ai(),de.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=W;return t.index++,a}function da(e,t){return typeof t=="function"?t(e):t}function ni(e){var t=Ze();return ss(t,ze,e)}function ss(e,t,a){var l=e.queue;if(l===null)throw Error(o(311));l.lastRenderedReducer=a;var u=e.baseQueue,r=l.pending;if(r!==null){if(u!==null){var f=u.next;u.next=r.next,r.next=f}t.baseQueue=u=r,l.pending=null}if(r=e.baseState,u===null)e.memoizedState=r;else{t=u.next;var y=f=null,b=null,N=t,R=!1;do{var Q=N.lane&-536870913;if(Q!==N.lane?(xe&Q)===Q:(fa&Q)===Q){var C=N.revertLane;if(C===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),Q===Xl&&(R=!0);else if((fa&C)===C){N=N.next,C===Xl&&(R=!0);continue}else Q={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(y=b=Q,f=r):b=b.next=Q,de.lanes|=C,Ha|=C;Q=N.action,ml&&a(r,Q),r=N.hasEagerState?N.eagerState:a(r,Q)}else C={lane:Q,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(y=b=C,f=r):b=b.next=C,de.lanes|=Q,Ha|=Q;N=N.next}while(N!==null&&N!==t);if(b===null?f=r:b.next=y,!_t(r,e.memoizedState)&&(Pe=!0,R&&(a=kl,a!==null)))throw a;e.memoizedState=r,e.baseState=f,e.baseQueue=b,l.lastRenderedState=r}return u===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function os(e){var t=Ze(),a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=e;var l=a.dispatch,u=a.pending,r=t.memoizedState;if(u!==null){a.pending=null;var f=u=u.next;do r=e(r,f.action),f=f.next;while(f!==u);_t(r,t.memoizedState)||(Pe=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,l]}function jf(e,t,a){var l=de,u=Ze(),r=je;if(r){if(a===void 0)throw Error(o(407));a=a()}else a=t();var f=!_t((ze||u).memoizedState,a);if(f&&(u.memoizedState=a,Pe=!0),u=u.queue,ds(Ef.bind(null,l,u,e),[e]),u.getSnapshot!==t||f||Fe!==null&&Fe.memoizedState.tag&1){if(l.flags|=2048,Pl(9,{destroy:void 0},_f.bind(null,l,u,a,t),null),Ue===null)throw Error(o(349));r||(fa&127)!==0||Of(l,t,a)}return a}function Of(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=de.updateQueue,t===null?(t=ai(),de.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function _f(e,t,a,l){t.value=a,t.getSnapshot=l,Nf(t)&&Af(e)}function Ef(e,t,a){return a(function(){Nf(t)&&Af(e)})}function Nf(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!_t(e,a)}catch{return!0}}function Af(e){var t=ul(e,2);t!==null&&bt(t,e,2)}function cs(e){var t=ct();if(typeof e=="function"){var a=e;if(e=a(),ml){_a(!0);try{a()}finally{_a(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:e},t}function Cf(e,t,a,l){return e.baseState=a,ss(e,ze,typeof l=="function"?l:da)}function Pp(e,t,a,l,u){if(ri(e))throw Error(o(485));if(e=t.action,e!==null){var r={payload:u,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){r.listeners.push(f)}};A.T!==null?a(!0):r.isTransition=!1,l(r),a=t.pending,a===null?(r.next=t.pending=r,Tf(t,r)):(r.next=a.next,t.pending=a.next=r)}}function Tf(e,t){var a=t.action,l=t.payload,u=e.state;if(t.isTransition){var r=A.T,f={};A.T=f;try{var y=a(u,l),b=A.S;b!==null&&b(f,y),Mf(e,t,y)}catch(N){fs(e,t,N)}finally{r!==null&&f.types!==null&&(r.types=f.types),A.T=r}}else try{r=a(u,l),Mf(e,t,r)}catch(N){fs(e,t,N)}}function Mf(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){zf(e,t,l)},function(l){return fs(e,t,l)}):zf(e,t,a)}function zf(e,t,a){t.status="fulfilled",t.value=a,Df(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Tf(e,a)))}function fs(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Df(t),t=t.next;while(t!==l)}e.action=null}function Df(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Rf(e,t){return t}function Uf(e,t){if(je){var a=Ue.formState;if(a!==null){e:{var l=de;if(je){if(we){t:{for(var u=we,r=Ht;u.nodeType!==8;){if(!r){u=null;break t}if(u=Lt(u.nextSibling),u===null){u=null;break t}}r=u.data,u=r==="F!"||r==="F"?u:null}if(u){we=Lt(u.nextSibling),l=u.data==="F!";break e}}Ta(l)}l=!1}l&&(t=a[0])}}return a=ct(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rf,lastRenderedState:t},a.queue=l,a=If.bind(null,de,l),l.dispatch=a,l=cs(!1),r=ys.bind(null,de,!1,l.queue),l=ct(),u={state:t,dispatch:null,action:e,pending:null},l.queue=u,a=Pp.bind(null,de,u,r,a),u.dispatch=a,l.memoizedState=e,[t,a,!1]}function qf(e){var t=Ze();return wf(t,ze,e)}function wf(e,t,a){if(t=ss(e,t,Rf)[0],e=ni(da)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var l=Xn(t)}catch(f){throw f===Zl?Ju:f}else l=t;t=Ze();var u=t.queue,r=u.dispatch;return a!==t.memoizedState&&(de.flags|=2048,Pl(9,{destroy:void 0},$p.bind(null,u,a),null)),[l,r,e]}function $p(e,t){e.action=t}function Qf(e){var t=Ze(),a=ze;if(a!==null)return wf(t,a,e);Ze(),t=t.memoizedState,a=Ze();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function Pl(e,t,a,l){return e={tag:e,create:a,deps:l,inst:t,next:null},t=de.updateQueue,t===null&&(t=ai(),de.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function Hf(){return Ze().memoizedState}function ui(e,t,a,l){var u=ct();de.flags|=e,u.memoizedState=Pl(1|t,{destroy:void 0},a,l===void 0?null:l)}function ii(e,t,a,l){var u=Ze();l=l===void 0?null:l;var r=u.memoizedState.inst;ze!==null&&l!==null&&as(l,ze.memoizedState.deps)?u.memoizedState=Pl(t,r,a,l):(de.flags|=e,u.memoizedState=Pl(1|t,r,a,l))}function Bf(e,t){ui(8390656,8,e,t)}function ds(e,t){ii(2048,8,e,t)}function Wp(e){de.flags|=4;var t=de.updateQueue;if(t===null)t=ai(),de.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Lf(e){var t=Ze().memoizedState;return Wp({ref:t,nextImpl:e}),function(){if((Ne&2)!==0)throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Yf(e,t){return ii(4,2,e,t)}function Gf(e,t){return ii(4,4,e,t)}function Xf(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function kf(e,t,a){a=a!=null?a.concat([e]):null,ii(4,4,Xf.bind(null,t,e),a)}function hs(){}function Zf(e,t){var a=Ze();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&as(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function Kf(e,t){var a=Ze();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&as(t,l[1]))return l[0];if(l=e(),ml){_a(!0);try{e()}finally{_a(!1)}}return a.memoizedState=[l,t],l}function ms(e,t,a){return a===void 0||(fa&1073741824)!==0&&(xe&261930)===0?e.memoizedState=t:(e.memoizedState=a,e=Vd(),de.lanes|=e,Ha|=e,a)}function Vf(e,t,a,l){return _t(a,t)?a:Vl.current!==null?(e=ms(e,a,l),_t(e,t)||(Pe=!0),e):(fa&42)===0||(fa&1073741824)!==0&&(xe&261930)===0?(Pe=!0,e.memoizedState=a):(e=Vd(),de.lanes|=e,Ha|=e,t)}function Jf(e,t,a,l,u){var r=H.p;H.p=r!==0&&8>r?r:8;var f=A.T,y={};A.T=y,ys(e,!1,t,a);try{var b=u(),N=A.S;if(N!==null&&N(y,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var R=Vp(b,l);kn(e,t,R,Mt(e))}else kn(e,t,l,Mt(e))}catch(Q){kn(e,t,{then:function(){},status:"rejected",reason:Q},Mt())}finally{H.p=r,f!==null&&y.types!==null&&(f.types=y.types),A.T=f}}function Ip(){}function vs(e,t,a,l){if(e.tag!==5)throw Error(o(476));var u=Ff(e).queue;Jf(e,u,t,G,a===null?Ip:function(){return Pf(e),a(l)})}function Ff(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:G},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:da,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Pf(e){var t=Ff(e);t.next===null&&(t=e.alternate.memoizedState),kn(e,t.next.queue,{},Mt())}function ps(){return lt(ru)}function $f(){return Ze().memoizedState}function Wf(){return Ze().memoizedState}function ey(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=Mt();e=Da(a);var l=Ra(t,e,a);l!==null&&(bt(l,t,a),Bn(l,t,a)),t={cache:Zr()},e.payload=t;return}t=t.return}}function ty(e,t,a){var l=Mt();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ri(e)?ed(t,a):(a=Ur(e,t,a,l),a!==null&&(bt(a,e,l),td(a,t,l)))}function If(e,t,a){var l=Mt();kn(e,t,a,l)}function kn(e,t,a,l){var u={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ri(e))ed(t,u);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var f=t.lastRenderedState,y=r(f,a);if(u.hasEagerState=!0,u.eagerState=y,_t(y,f))return Yu(e,t,u,0),Ue===null&&Lu(),!1}catch{}finally{}if(a=Ur(e,t,u,l),a!==null)return bt(a,e,l),td(a,t,l),!0}return!1}function ys(e,t,a,l){if(l={lane:2,revertLane:Fs(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ri(e)){if(t)throw Error(o(479))}else t=Ur(e,a,l,2),t!==null&&bt(t,e,2)}function ri(e){var t=e.alternate;return e===de||t!==null&&t===de}function ed(e,t){Jl=ei=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function td(e,t,a){if((a&4194048)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,uc(e,a)}}var Zn={readContext:lt,use:li,useCallback:Ye,useContext:Ye,useEffect:Ye,useImperativeHandle:Ye,useLayoutEffect:Ye,useInsertionEffect:Ye,useMemo:Ye,useReducer:Ye,useRef:Ye,useState:Ye,useDebugValue:Ye,useDeferredValue:Ye,useTransition:Ye,useSyncExternalStore:Ye,useId:Ye,useHostTransitionStatus:Ye,useFormState:Ye,useActionState:Ye,useOptimistic:Ye,useMemoCache:Ye,useCacheRefresh:Ye};Zn.useEffectEvent=Ye;var ad={readContext:lt,use:li,useCallback:function(e,t){return ct().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:Bf,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,ui(4194308,4,Xf.bind(null,t,e),a)},useLayoutEffect:function(e,t){return ui(4194308,4,e,t)},useInsertionEffect:function(e,t){ui(4,2,e,t)},useMemo:function(e,t){var a=ct();t=t===void 0?null:t;var l=e();if(ml){_a(!0);try{e()}finally{_a(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=ct();if(a!==void 0){var u=a(t);if(ml){_a(!0);try{a(t)}finally{_a(!1)}}}else u=t;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=ty.bind(null,de,e),[l.memoizedState,e]},useRef:function(e){var t=ct();return e={current:e},t.memoizedState=e},useState:function(e){e=cs(e);var t=e.queue,a=If.bind(null,de,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:hs,useDeferredValue:function(e,t){var a=ct();return ms(a,e,t)},useTransition:function(){var e=cs(!1);return e=Jf.bind(null,de,e.queue,!0,!1),ct().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=de,u=ct();if(je){if(a===void 0)throw Error(o(407));a=a()}else{if(a=t(),Ue===null)throw Error(o(349));(xe&127)!==0||Of(l,t,a)}u.memoizedState=a;var r={value:a,getSnapshot:t};return u.queue=r,Bf(Ef.bind(null,l,r,e),[e]),l.flags|=2048,Pl(9,{destroy:void 0},_f.bind(null,l,r,a,t),null),a},useId:function(){var e=ct(),t=Ue.identifierPrefix;if(je){var a=It,l=Wt;a=(l&~(1<<32-Ot(l)-1)).toString(32)+a,t="_"+t+"R_"+a,a=ti++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=Jp++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:ps,useFormState:Uf,useActionState:Uf,useOptimistic:function(e){var t=ct();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=ys.bind(null,de,!0,a),a.dispatch=t,[e,t]},useMemoCache:rs,useCacheRefresh:function(){return ct().memoizedState=ey.bind(null,de)},useEffectEvent:function(e){var t=ct(),a={impl:e};return t.memoizedState=a,function(){if((Ne&2)!==0)throw Error(o(440));return a.impl.apply(void 0,arguments)}}},gs={readContext:lt,use:li,useCallback:Zf,useContext:lt,useEffect:ds,useImperativeHandle:kf,useInsertionEffect:Yf,useLayoutEffect:Gf,useMemo:Kf,useReducer:ni,useRef:Hf,useState:function(){return ni(da)},useDebugValue:hs,useDeferredValue:function(e,t){var a=Ze();return Vf(a,ze.memoizedState,e,t)},useTransition:function(){var e=ni(da)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Xn(e),t]},useSyncExternalStore:jf,useId:$f,useHostTransitionStatus:ps,useFormState:qf,useActionState:qf,useOptimistic:function(e,t){var a=Ze();return Cf(a,ze,e,t)},useMemoCache:rs,useCacheRefresh:Wf};gs.useEffectEvent=Lf;var ld={readContext:lt,use:li,useCallback:Zf,useContext:lt,useEffect:ds,useImperativeHandle:kf,useInsertionEffect:Yf,useLayoutEffect:Gf,useMemo:Kf,useReducer:os,useRef:Hf,useState:function(){return os(da)},useDebugValue:hs,useDeferredValue:function(e,t){var a=Ze();return ze===null?ms(a,e,t):Vf(a,ze.memoizedState,e,t)},useTransition:function(){var e=os(da)[0],t=Ze().memoizedState;return[typeof e=="boolean"?e:Xn(e),t]},useSyncExternalStore:jf,useId:$f,useHostTransitionStatus:ps,useFormState:Qf,useActionState:Qf,useOptimistic:function(e,t){var a=Ze();return ze!==null?Cf(a,ze,e,t):(a.baseState=e,[e,a.queue.dispatch])},useMemoCache:rs,useCacheRefresh:Wf};ld.useEffectEvent=Lf;function bs(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:j({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var xs={enqueueSetState:function(e,t,a){e=e._reactInternals;var l=Mt(),u=Da(l);u.payload=t,a!=null&&(u.callback=a),t=Ra(e,u,l),t!==null&&(bt(t,e,l),Bn(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=Mt(),u=Da(l);u.tag=1,u.payload=t,a!=null&&(u.callback=a),t=Ra(e,u,l),t!==null&&(bt(t,e,l),Bn(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Mt(),l=Da(a);l.tag=2,t!=null&&(l.callback=t),t=Ra(e,l,a),t!==null&&(bt(t,e,a),Bn(t,e,a))}};function nd(e,t,a,l,u,r,f){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,r,f):t.prototype&&t.prototype.isPureReactComponent?!zn(a,l)||!zn(u,r):!0}function ud(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&xs.enqueueReplaceState(t,t.state,null)}function vl(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=j({},a));for(var u in e)a[u]===void 0&&(a[u]=e[u])}return a}function id(e){Bu(e)}function rd(e){console.error(e)}function sd(e){Bu(e)}function si(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function od(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Ss(e,t,a){return a=Da(a),a.tag=3,a.payload={element:null},a.callback=function(){si(e,t)},a}function cd(e){return e=Da(e),e.tag=3,e}function fd(e,t,a,l){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var r=l.value;e.payload=function(){return u(r)},e.callback=function(){od(t,a,l)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(e.callback=function(){od(t,a,l),typeof u!="function"&&(Ba===null?Ba=new Set([this]):Ba.add(this));var y=l.stack;this.componentDidCatch(l.value,{componentStack:y!==null?y:""})})}function ay(e,t,a,l,u){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&Gl(t,a,u,!0),a=Nt.current,a!==null){switch(a.tag){case 31:case 13:return Bt===null?xi():a.alternate===null&&Ge===0&&(Ge=3),a.flags&=-257,a.flags|=65536,a.lanes=u,l===Fu?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),Ks(e,l,u)),!1;case 22:return a.flags|=65536,l===Fu?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),Ks(e,l,u)),!1}throw Error(o(435,a.tag))}return Ks(e,l,u),xi(),!1}if(je)return t=Nt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=u,l!==Lr&&(e=Error(o(422),{cause:l}),Un(qt(e,a)))):(l!==Lr&&(t=Error(o(423),{cause:l}),Un(qt(t,a))),e=e.current.alternate,e.flags|=65536,u&=-u,e.lanes|=u,l=qt(l,a),u=Ss(e.stateNode,l,u),$r(e,u),Ge!==4&&(Ge=2)),!1;var r=Error(o(520),{cause:l});if(r=qt(r,a),In===null?In=[r]:In.push(r),Ge!==4&&(Ge=2),t===null)return!0;l=qt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=u&-u,a.lanes|=e,e=Ss(a.stateNode,l,e),$r(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Ba===null||!Ba.has(r))))return a.flags|=65536,u&=-u,a.lanes|=u,u=cd(u),fd(u,e,a,l),$r(a,u),!1}a=a.return}while(a!==null);return!1}var js=Error(o(461)),Pe=!1;function nt(e,t,a,l){t.child=e===null?vf(t,null,a,l):hl(t,e.child,a,l)}function dd(e,t,a,l,u){a=a.render;var r=t.ref;if("ref"in l){var f={};for(var y in l)y!=="ref"&&(f[y]=l[y])}else f=l;return ol(t),l=ls(e,t,a,f,r,u),y=ns(),e!==null&&!Pe?(us(e,t,u),ha(e,t,u)):(je&&y&&Hr(t),t.flags|=1,nt(e,t,l,u),t.child)}function hd(e,t,a,l,u){if(e===null){var r=a.type;return typeof r=="function"&&!qr(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,md(e,t,r,l,u)):(e=Xu(a.type,null,l,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Ms(e,u)){var f=r.memoizedProps;if(a=a.compare,a=a!==null?a:zn,a(f,l)&&e.ref===t.ref)return ha(e,t,u)}return t.flags|=1,e=ra(r,l),e.ref=t.ref,e.return=t,t.child=e}function md(e,t,a,l,u){if(e!==null){var r=e.memoizedProps;if(zn(r,l)&&e.ref===t.ref)if(Pe=!1,t.pendingProps=l=r,Ms(e,u))(e.flags&131072)!==0&&(Pe=!0);else return t.lanes=e.lanes,ha(e,t,u)}return Os(e,t,a,l,u)}function vd(e,t,a,l){var u=l.children,r=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((t.flags&128)!==0){if(r=r!==null?r.baseLanes|a:a,e!==null){for(l=t.child=e.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~r}else l=0,t.child=null;return pd(e,t,r,a,l)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Vu(t,r!==null?r.cachePool:null),r!==null?gf(t,r):Ir(),bf(t);else return l=t.lanes=536870912,pd(e,t,r!==null?r.baseLanes|a:a,a,l)}else r!==null?(Vu(t,r.cachePool),gf(t,r),qa(),t.memoizedState=null):(e!==null&&Vu(t,null),Ir(),qa());return nt(e,t,u,a),t.child}function Kn(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function pd(e,t,a,l,u){var r=Vr();return r=r===null?null:{parent:Je._currentValue,pool:r},t.memoizedState={baseLanes:a,cachePool:r},e!==null&&Vu(t,null),Ir(),bf(t),e!==null&&Gl(e,t,l,!0),t.childLanes=u,null}function oi(e,t){return t=fi({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function yd(e,t,a){return hl(t,e.child,null,a),e=oi(t,t.pendingProps),e.flags|=2,At(t),t.memoizedState=null,e}function ly(e,t,a){var l=t.pendingProps,u=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(l.mode==="hidden")return e=oi(t,l),t.lanes=536870912,Kn(null,e);if(ts(t),(e=we)?(e=Th(e,Ht),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Aa!==null?{id:Wt,overflow:It}:null,retryLane:536870912,hydrationErrors:null},a=Ic(e),a.return=t,t.child=a,at=t,we=null)):e=null,e===null)throw Ta(t);return t.lanes=536870912,null}return oi(t,l)}var r=e.memoizedState;if(r!==null){var f=r.dehydrated;if(ts(t),u)if(t.flags&256)t.flags&=-257,t=yd(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(o(558));else if(Pe||Gl(e,t,a,!1),u=(a&e.childLanes)!==0,Pe||u){if(l=Ue,l!==null&&(f=ic(l,a),f!==0&&f!==r.retryLane))throw r.retryLane=f,ul(e,f),bt(l,e,f),js;xi(),t=yd(e,t,a)}else e=r.treeContext,we=Lt(f.nextSibling),at=t,je=!0,Ca=null,Ht=!1,e!==null&&af(t,e),t=oi(t,l),t.flags|=4096;return t}return e=ra(e.child,{mode:l.mode,children:l.children}),e.ref=t.ref,t.child=e,e.return=t,e}function ci(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(o(284));(e===null||e.ref!==a)&&(t.flags|=4194816)}}function Os(e,t,a,l,u){return ol(t),a=ls(e,t,a,l,void 0,u),l=ns(),e!==null&&!Pe?(us(e,t,u),ha(e,t,u)):(je&&l&&Hr(t),t.flags|=1,nt(e,t,a,u),t.child)}function gd(e,t,a,l,u,r){return ol(t),t.updateQueue=null,a=Sf(t,l,a,u),xf(e),l=ns(),e!==null&&!Pe?(us(e,t,r),ha(e,t,r)):(je&&l&&Hr(t),t.flags|=1,nt(e,t,a,r),t.child)}function bd(e,t,a,l,u){if(ol(t),t.stateNode===null){var r=Hl,f=a.contextType;typeof f=="object"&&f!==null&&(r=lt(f)),r=new a(l,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=xs,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=l,r.state=t.memoizedState,r.refs={},Fr(t),f=a.contextType,r.context=typeof f=="object"&&f!==null?lt(f):Hl,r.state=t.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(bs(t,a,f,l),r.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(f=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),f!==r.state&&xs.enqueueReplaceState(r,r.state,null),Yn(t,l,r,u),Ln(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){r=t.stateNode;var y=t.memoizedProps,b=vl(a,y);r.props=b;var N=r.context,R=a.contextType;f=Hl,typeof R=="object"&&R!==null&&(f=lt(R));var Q=a.getDerivedStateFromProps;R=typeof Q=="function"||typeof r.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,R||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(y||N!==f)&&ud(t,r,l,f),za=!1;var C=t.memoizedState;r.state=C,Yn(t,l,r,u),Ln(),N=t.memoizedState,y||C!==N||za?(typeof Q=="function"&&(bs(t,a,Q,l),N=t.memoizedState),(b=za||nd(t,a,b,l,C,N,f))?(R||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"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=N),r.props=l,r.state=N,r.context=f,l=b):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{r=t.stateNode,Pr(e,t),f=t.memoizedProps,R=vl(a,f),r.props=R,Q=t.pendingProps,C=r.context,N=a.contextType,b=Hl,typeof N=="object"&&N!==null&&(b=lt(N)),y=a.getDerivedStateFromProps,(N=typeof y=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==Q||C!==b)&&ud(t,r,l,b),za=!1,C=t.memoizedState,r.state=C,Yn(t,l,r,u),Ln();var T=t.memoizedState;f!==Q||C!==T||za||e!==null&&e.dependencies!==null&&Zu(e.dependencies)?(typeof y=="function"&&(bs(t,a,y,l),T=t.memoizedState),(R=za||nd(t,a,R,l,C,T,b)||e!==null&&e.dependencies!==null&&Zu(e.dependencies))?(N||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(l,T,b),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(l,T,b)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||f===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=T),r.props=l,r.state=T,r.context=b,l=R):(typeof r.componentDidUpdate!="function"||f===e.memoizedProps&&C===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===e.memoizedProps&&C===e.memoizedState||(t.flags|=1024),l=!1)}return r=l,ci(e,t),l=(t.flags&128)!==0,r||l?(r=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&l?(t.child=hl(t,e.child,null,u),t.child=hl(t,null,a,u)):nt(e,t,a,u),t.memoizedState=r.state,e=t.child):e=ha(e,t,u),e}function xd(e,t,a,l){return rl(),t.flags|=256,nt(e,t,a,l),t.child}var _s={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Es(e){return{baseLanes:e,cachePool:of()}}function Ns(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=Tt),e}function Sd(e,t,a){var l=t.pendingProps,u=!1,r=(t.flags&128)!==0,f;if((f=r)||(f=e!==null&&e.memoizedState===null?!1:(ke.current&2)!==0),f&&(u=!0,t.flags&=-129),f=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(u?Ua(t):qa(),(e=we)?(e=Th(e,Ht),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Aa!==null?{id:Wt,overflow:It}:null,retryLane:536870912,hydrationErrors:null},a=Ic(e),a.return=t,t.child=a,at=t,we=null)):e=null,e===null)throw Ta(t);return so(e)?t.lanes=32:t.lanes=536870912,null}var y=l.children;return l=l.fallback,u?(qa(),u=t.mode,y=fi({mode:"hidden",children:y},u),l=il(l,u,a,null),y.return=t,l.return=t,y.sibling=l,t.child=y,l=t.child,l.memoizedState=Es(a),l.childLanes=Ns(e,f,a),t.memoizedState=_s,Kn(null,l)):(Ua(t),As(t,y))}var b=e.memoizedState;if(b!==null&&(y=b.dehydrated,y!==null)){if(r)t.flags&256?(Ua(t),t.flags&=-257,t=Cs(e,t,a)):t.memoizedState!==null?(qa(),t.child=e.child,t.flags|=128,t=null):(qa(),y=l.fallback,u=t.mode,l=fi({mode:"visible",children:l.children},u),y=il(y,u,a,null),y.flags|=2,l.return=t,y.return=t,l.sibling=y,t.child=l,hl(t,e.child,null,a),l=t.child,l.memoizedState=Es(a),l.childLanes=Ns(e,f,a),t.memoizedState=_s,t=Kn(null,l));else if(Ua(t),so(y)){if(f=y.nextSibling&&y.nextSibling.dataset,f)var N=f.dgst;f=N,l=Error(o(419)),l.stack="",l.digest=f,Un({value:l,source:null,stack:null}),t=Cs(e,t,a)}else if(Pe||Gl(e,t,a,!1),f=(a&e.childLanes)!==0,Pe||f){if(f=Ue,f!==null&&(l=ic(f,a),l!==0&&l!==b.retryLane))throw b.retryLane=l,ul(e,l),bt(f,e,l),js;ro(y)||xi(),t=Cs(e,t,a)}else ro(y)?(t.flags|=192,t.child=e.child,t=null):(e=b.treeContext,we=Lt(y.nextSibling),at=t,je=!0,Ca=null,Ht=!1,e!==null&&af(t,e),t=As(t,l.children),t.flags|=4096);return t}return u?(qa(),y=l.fallback,u=t.mode,b=e.child,N=b.sibling,l=ra(b,{mode:"hidden",children:l.children}),l.subtreeFlags=b.subtreeFlags&65011712,N!==null?y=ra(N,y):(y=il(y,u,a,null),y.flags|=2),y.return=t,l.return=t,l.sibling=y,t.child=l,Kn(null,l),l=t.child,y=e.child.memoizedState,y===null?y=Es(a):(u=y.cachePool,u!==null?(b=Je._currentValue,u=u.parent!==b?{parent:b,pool:b}:u):u=of(),y={baseLanes:y.baseLanes|a,cachePool:u}),l.memoizedState=y,l.childLanes=Ns(e,f,a),t.memoizedState=_s,Kn(e.child,l)):(Ua(t),a=e.child,e=a.sibling,a=ra(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(f=t.deletions,f===null?(t.deletions=[e],t.flags|=16):f.push(e)),t.child=a,t.memoizedState=null,a)}function As(e,t){return t=fi({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function fi(e,t){return e=Et(22,e,null,t),e.lanes=0,e}function Cs(e,t,a){return hl(t,e.child,null,a),e=As(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function jd(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Xr(e.return,t,a)}function Ts(e,t,a,l,u,r){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:u,treeForkCount:r}:(f.isBackwards=t,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=u,f.treeForkCount=r)}function Od(e,t,a){var l=t.pendingProps,u=l.revealOrder,r=l.tail;l=l.children;var f=ke.current,y=(f&2)!==0;if(y?(f=f&1|2,t.flags|=128):f&=1,B(ke,f),nt(e,t,l,a),l=je?Rn:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jd(e,a,t);else if(e.tag===19)jd(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(u){case"forwards":for(a=t.child,u=null;a!==null;)e=a.alternate,e!==null&&Iu(e)===null&&(u=a),a=a.sibling;a=u,a===null?(u=t.child,t.child=null):(u=a.sibling,a.sibling=null),Ts(t,!1,u,a,r,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Iu(e)===null){t.child=u;break}e=u.sibling,u.sibling=a,a=u,u=e}Ts(t,!0,a,null,r,l);break;case"together":Ts(t,!1,null,null,void 0,l);break;default:t.memoizedState=null}return t.child}function ha(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),Ha|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(Gl(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(o(153));if(t.child!==null){for(e=t.child,a=ra(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ra(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Ms(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Zu(e)))}function ny(e,t,a){switch(t.tag){case 3:Ve(t,t.stateNode.containerInfo),Ma(t,Je,e.memoizedState.cache),rl();break;case 27:case 5:ja(t);break;case 4:Ve(t,t.stateNode.containerInfo);break;case 10:Ma(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ts(t),null;break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(Ua(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Sd(e,t,a):(Ua(t),e=ha(e,t,a),e!==null?e.sibling:null);Ua(t);break;case 19:var u=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(Gl(e,t,a,!1),l=(a&t.childLanes)!==0),u){if(l)return Od(e,t,a);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),B(ke,ke.current),l)break;return null;case 22:return t.lanes=0,vd(e,t,a,t.pendingProps);case 24:Ma(t,Je,e.memoizedState.cache)}return ha(e,t,a)}function _d(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Pe=!0;else{if(!Ms(e,a)&&(t.flags&128)===0)return Pe=!1,ny(e,t,a);Pe=(e.flags&131072)!==0}else Pe=!1,je&&(t.flags&1048576)!==0&&tf(t,Rn,t.index);switch(t.lanes=0,t.tag){case 16:e:{var l=t.pendingProps;if(e=fl(t.elementType),t.type=e,typeof e=="function")qr(e)?(l=vl(e,l),t.tag=1,t=bd(null,t,e,l,a)):(t.tag=0,t=Os(null,t,e,l,a));else{if(e!=null){var u=e.$$typeof;if(u===qe){t.tag=11,t=dd(null,t,e,l,a);break e}else if(u===z){t.tag=14,t=hd(null,t,e,l,a);break e}}throw t=oe(e)||e,Error(o(306,t,""))}}return t;case 0:return Os(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,u=vl(l,t.pendingProps),bd(e,t,l,u,a);case 3:e:{if(Ve(t,t.stateNode.containerInfo),e===null)throw Error(o(387));l=t.pendingProps;var r=t.memoizedState;u=r.element,Pr(e,t),Yn(t,l,null,a);var f=t.memoizedState;if(l=f.cache,Ma(t,Je,l),l!==r.cache&&kr(t,[Je],a,!0),Ln(),l=f.element,r.isDehydrated)if(r={element:l,isDehydrated:!1,cache:f.cache},t.updateQueue.baseState=r,t.memoizedState=r,t.flags&256){t=xd(e,t,l,a);break e}else if(l!==u){u=qt(Error(o(424)),t),Un(u),t=xd(e,t,l,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(we=Lt(e.firstChild),at=t,je=!0,Ca=null,Ht=!0,a=vf(t,null,l,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(rl(),l===u){t=ha(e,t,a);break e}nt(e,t,l,a)}t=t.child}return t;case 26:return ci(e,t),e===null?(a=qh(t.type,null,t.pendingProps,null))?t.memoizedState=a:je||(a=t.type,e=t.pendingProps,l=Ai(se.current).createElement(a),l[tt]=t,l[ht]=e,ut(l,a,e),Ie(l),t.stateNode=l):t.memoizedState=qh(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ja(t),e===null&&je&&(l=t.stateNode=Dh(t.type,t.pendingProps,se.current),at=t,Ht=!0,u=we,Xa(t.type)?(oo=u,we=Lt(l.firstChild)):we=u),nt(e,t,t.pendingProps.children,a),ci(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((u=l=we)&&(l=Uy(l,t.type,t.pendingProps,Ht),l!==null?(t.stateNode=l,at=t,we=Lt(l.firstChild),Ht=!1,u=!0):u=!1),u||Ta(t)),ja(t),u=t.type,r=t.pendingProps,f=e!==null?e.memoizedProps:null,l=r.children,no(u,r)?l=null:f!==null&&no(u,f)&&(t.flags|=32),t.memoizedState!==null&&(u=ls(e,t,Fp,null,null,a),ru._currentValue=u),ci(e,t),nt(e,t,l,a),t.child;case 6:return e===null&&je&&((e=a=we)&&(a=qy(a,t.pendingProps,Ht),a!==null?(t.stateNode=a,at=t,we=null,e=!0):e=!1),e||Ta(t)),null;case 13:return Sd(e,t,a);case 4:return Ve(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=hl(t,null,l,a):nt(e,t,l,a),t.child;case 11:return dd(e,t,t.type,t.pendingProps,a);case 7:return nt(e,t,t.pendingProps,a),t.child;case 8:return nt(e,t,t.pendingProps.children,a),t.child;case 12:return nt(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,Ma(t,t.type,l.value),nt(e,t,l.children,a),t.child;case 9:return u=t.type._context,l=t.pendingProps.children,ol(t),u=lt(u),l=l(u),t.flags|=1,nt(e,t,l,a),t.child;case 14:return hd(e,t,t.type,t.pendingProps,a);case 15:return md(e,t,t.type,t.pendingProps,a);case 19:return Od(e,t,a);case 31:return ly(e,t,a);case 22:return vd(e,t,a,t.pendingProps);case 24:return ol(t),l=lt(Je),e===null?(u=Vr(),u===null&&(u=Ue,r=Zr(),u.pooledCache=r,r.refCount++,r!==null&&(u.pooledCacheLanes|=a),u=r),t.memoizedState={parent:l,cache:u},Fr(t),Ma(t,Je,u)):((e.lanes&a)!==0&&(Pr(e,t),Yn(t,null,null,a),Ln()),u=e.memoizedState,r=t.memoizedState,u.parent!==l?(u={parent:l,cache:l},t.memoizedState=u,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=u),Ma(t,Je,l)):(l=r.cache,Ma(t,Je,l),l!==u.cache&&kr(t,[Je],a,!0))),nt(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function ma(e){e.flags|=4}function zs(e,t,a,l,u){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(u&335544128)===u)if(e.stateNode.complete)e.flags|=8192;else if($d())e.flags|=8192;else throw dl=Fu,Jr}else e.flags&=-16777217}function Ed(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Lh(t))if($d())e.flags|=8192;else throw dl=Fu,Jr}function di(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?lc():536870912,e.lanes|=t,en|=t)}function Vn(e,t){if(!je)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Qe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function uy(e,t,a){var l=t.pendingProps;switch(Br(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qe(t),null;case 1:return Qe(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),ca(Je),He(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(Yl(t)?ma(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Yr())),Qe(t),null;case 26:var u=t.type,r=t.memoizedState;return e===null?(ma(t),r!==null?(Qe(t),Ed(t,r)):(Qe(t),zs(t,u,null,l,a))):r?r!==e.memoizedState?(ma(t),Qe(t),Ed(t,r)):(Qe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==l&&ma(t),Qe(t),zs(t,u,e,l,a)),null;case 27:if(Wa(t),a=se.current,u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Qe(t),null}e=L.current,Yl(t)?lf(t):(e=Dh(u,l,a),t.stateNode=e,ma(t))}return Qe(t),null;case 5:if(Wa(t),u=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(!l){if(t.stateNode===null)throw Error(o(166));return Qe(t),null}if(r=L.current,Yl(t))lf(t);else{var f=Ai(se.current);switch(r){case 1:r=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:r=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":r=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":r=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":r=f.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof l.is=="string"?f.createElement("select",{is:l.is}):f.createElement("select"),l.multiple?r.multiple=!0:l.size&&(r.size=l.size);break;default:r=typeof l.is=="string"?f.createElement(u,{is:l.is}):f.createElement(u)}}r[tt]=t,r[ht]=l;e:for(f=t.child;f!==null;){if(f.tag===5||f.tag===6)r.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===t)break e;for(;f.sibling===null;){if(f.return===null||f.return===t)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}t.stateNode=r;e:switch(ut(r,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&ma(t)}}return Qe(t),zs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&ma(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(o(166));if(e=se.current,Yl(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,u=at,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[tt]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||Sh(e.nodeValue,a)),e||Ta(t,!0)}else e=Ai(e).createTextNode(l),e[tt]=t,t.stateNode=e}return Qe(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(l=Yl(t),a!==null){if(e===null){if(!l)throw Error(o(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(557));e[tt]=t}else rl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),e=!1}else a=Yr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return t.flags&256?(At(t),t):(At(t),null);if((t.flags&128)!==0)throw Error(o(558))}return Qe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=Yl(t),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(o(318));if(u=t.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[tt]=t}else rl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Qe(t),u=!1}else u=Yr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return t.flags&256?(At(t),t):(At(t),null)}return At(t),(t.flags&128)!==0?(t.lanes=a,t):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=t.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),r=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==u&&(l.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),di(t,t.updateQueue),Qe(t),null);case 4:return He(),e===null&&Is(t.stateNode.containerInfo),Qe(t),null;case 10:return ca(t.type),Qe(t),null;case 19:if(D(ke),l=t.memoizedState,l===null)return Qe(t),null;if(u=(t.flags&128)!==0,r=l.rendering,r===null)if(u)Vn(l,!1);else{if(Ge!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=Iu(e),r!==null){for(t.flags|=128,Vn(l,!1),e=r.updateQueue,t.updateQueue=e,di(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Wc(a,e),a=a.sibling;return B(ke,ke.current&1|2),je&&sa(t,l.treeForkCount),t.child}e=e.sibling}l.tail!==null&&Ce()>yi&&(t.flags|=128,u=!0,Vn(l,!1),t.lanes=4194304)}else{if(!u)if(e=Iu(r),e!==null){if(t.flags|=128,u=!0,e=e.updateQueue,t.updateQueue=e,di(t,e),Vn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!r.alternate&&!je)return Qe(t),null}else 2*Ce()-l.renderingStartTime>yi&&a!==536870912&&(t.flags|=128,u=!0,Vn(l,!1),t.lanes=4194304);l.isBackwards?(r.sibling=t.child,t.child=r):(e=l.last,e!==null?e.sibling=r:t.child=r,l.last=r)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=Ce(),e.sibling=null,a=ke.current,B(ke,u?a&1|2:a&1),je&&sa(t,l.treeForkCount),e):(Qe(t),null);case 22:case 23:return At(t),es(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(Qe(t),t.subtreeFlags&6&&(t.flags|=8192)):Qe(t),a=t.updateQueue,a!==null&&di(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&D(cl),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),ca(Je),Qe(t),null;case 25:return null;case 30:return null}throw Error(o(156,t.tag))}function iy(e,t){switch(Br(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ca(Je),He(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Wa(t),null;case 31:if(t.memoizedState!==null){if(At(t),t.alternate===null)throw Error(o(340));rl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(At(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(o(340));rl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return D(ke),null;case 4:return He(),null;case 10:return ca(t.type),null;case 22:case 23:return At(t),es(),e!==null&&D(cl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ca(Je),null;case 25:return null;default:return null}}function Nd(e,t){switch(Br(t),t.tag){case 3:ca(Je),He();break;case 26:case 27:case 5:Wa(t);break;case 4:He();break;case 31:t.memoizedState!==null&&At(t);break;case 13:At(t);break;case 19:D(ke);break;case 10:ca(t.type);break;case 22:case 23:At(t),es(),e!==null&&D(cl);break;case 24:ca(Je)}}function Jn(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var u=l.next;a=u;do{if((a.tag&e)===e){l=void 0;var r=a.create,f=a.inst;l=r(),f.destroy=l}a=a.next}while(a!==u)}}catch(y){Me(t,t.return,y)}}function wa(e,t,a){try{var l=t.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var r=u.next;l=r;do{if((l.tag&e)===e){var f=l.inst,y=f.destroy;if(y!==void 0){f.destroy=void 0,u=t;var b=a,N=y;try{N()}catch(R){Me(u,b,R)}}}l=l.next}while(l!==r)}}catch(R){Me(t,t.return,R)}}function Ad(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{yf(t,a)}catch(l){Me(e,e.return,l)}}}function Cd(e,t,a){a.props=vl(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Me(e,t,l)}}function Fn(e,t){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(u){Me(e,t,u)}}function ea(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(u){Me(e,t,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Me(e,t,u)}else a.current=null}function Td(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(u){Me(e,e.return,u)}}function Ds(e,t,a){try{var l=e.stateNode;Cy(l,e.type,a,t),l[ht]=t}catch(u){Me(e,e.return,u)}}function Md(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Xa(e.type)||e.tag===4}function Rs(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Md(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Xa(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Us(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t):(t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=ua));else if(l!==4&&(l===27&&Xa(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(Us(e,t,a),e=e.sibling;e!==null;)Us(e,t,a),e=e.sibling}function hi(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&(l===27&&Xa(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(hi(e,t,a),e=e.sibling;e!==null;)hi(e,t,a),e=e.sibling}function zd(e){var t=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,u=t.attributes;u.length;)t.removeAttributeNode(u[0]);ut(t,l,a),t[tt]=e,t[ht]=a}catch(r){Me(e,e.return,r)}}var va=!1,$e=!1,qs=!1,Dd=typeof WeakSet=="function"?WeakSet:Set,et=null;function ry(e,t){if(e=e.containerInfo,ao=Ui,e=Xc(e),Cr(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var u=l.anchorOffset,r=l.focusNode;l=l.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break e}var f=0,y=-1,b=-1,N=0,R=0,Q=e,C=null;t:for(;;){for(var T;Q!==a||u!==0&&Q.nodeType!==3||(y=f+u),Q!==r||l!==0&&Q.nodeType!==3||(b=f+l),Q.nodeType===3&&(f+=Q.nodeValue.length),(T=Q.firstChild)!==null;)C=Q,Q=T;for(;;){if(Q===e)break t;if(C===a&&++N===u&&(y=f),C===r&&++R===l&&(b=f),(T=Q.nextSibling)!==null)break;Q=C,C=Q.parentNode}Q=T}a=y===-1||b===-1?null:{start:y,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(lo={focusedElem:e,selectionRange:a},Ui=!1,et=t;et!==null;)if(t=et,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,et=e;else for(;et!==null;){switch(t=et,r=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)u=e[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,a=t,u=r.memoizedProps,r=r.memoizedState,l=a.stateNode;try{var J=vl(a.type,u);e=l.getSnapshotBeforeUpdate(J,r),l.__reactInternalSnapshotBeforeUpdate=e}catch(ie){Me(a,a.return,ie)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)io(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":io(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(o(163))}if(e=t.sibling,e!==null){e.return=t.return,et=e;break}et=t.return}}function Rd(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ya(e,a),l&4&&Jn(5,a);break;case 1:if(ya(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(f){Me(a,a.return,f)}else{var u=vl(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(u,t,e.__reactInternalSnapshotBeforeUpdate)}catch(f){Me(a,a.return,f)}}l&64&&Ad(a),l&512&&Fn(a,a.return);break;case 3:if(ya(e,a),l&64&&(e=a.updateQueue,e!==null)){if(t=null,a.child!==null)switch(a.child.tag){case 27:case 5:t=a.child.stateNode;break;case 1:t=a.child.stateNode}try{yf(e,t)}catch(f){Me(a,a.return,f)}}break;case 27:t===null&&l&4&&zd(a);case 26:case 5:ya(e,a),t===null&&l&4&&Td(a),l&512&&Fn(a,a.return);break;case 12:ya(e,a);break;case 31:ya(e,a),l&4&&wd(e,a);break;case 13:ya(e,a),l&4&&Qd(e,a),l&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(a=py.bind(null,a),wy(e,a))));break;case 22:if(l=a.memoizedState!==null||va,!l){t=t!==null&&t.memoizedState!==null||$e,u=va;var r=$e;va=l,($e=t)&&!r?ga(e,a,(a.subtreeFlags&8772)!==0):ya(e,a),va=u,$e=r}break;case 30:break;default:ya(e,a)}}function Ud(e){var t=e.alternate;t!==null&&(e.alternate=null,Ud(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&fr(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Be=null,vt=!1;function pa(e,t,a){for(a=a.child;a!==null;)qd(e,t,a),a=a.sibling}function qd(e,t,a){if(jt&&typeof jt.onCommitFiberUnmount=="function")try{jt.onCommitFiberUnmount(bn,a)}catch{}switch(a.tag){case 26:$e||ea(a,t),pa(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$e||ea(a,t);var l=Be,u=vt;Xa(a.type)&&(Be=a.stateNode,vt=!1),pa(e,t,a),nu(a.stateNode),Be=l,vt=u;break;case 5:$e||ea(a,t);case 6:if(l=Be,u=vt,Be=null,pa(e,t,a),Be=l,vt=u,Be!==null)if(vt)try{(Be.nodeType===9?Be.body:Be.nodeName==="HTML"?Be.ownerDocument.body:Be).removeChild(a.stateNode)}catch(r){Me(a,t,r)}else try{Be.removeChild(a.stateNode)}catch(r){Me(a,t,r)}break;case 18:Be!==null&&(vt?(e=Be,Ah(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),on(e)):Ah(Be,a.stateNode));break;case 4:l=Be,u=vt,Be=a.stateNode.containerInfo,vt=!0,pa(e,t,a),Be=l,vt=u;break;case 0:case 11:case 14:case 15:wa(2,a,t),$e||wa(4,a,t),pa(e,t,a);break;case 1:$e||(ea(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Cd(a,t,l)),pa(e,t,a);break;case 21:pa(e,t,a);break;case 22:$e=(l=$e)||a.memoizedState!==null,pa(e,t,a),$e=l;break;default:pa(e,t,a)}}function wd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{on(e)}catch(a){Me(t,t.return,a)}}}function Qd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{on(e)}catch(a){Me(t,t.return,a)}}function sy(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Dd),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Dd),t;default:throw Error(o(435,e.tag))}}function mi(e,t){var a=sy(e);t.forEach(function(l){if(!a.has(l)){a.add(l);var u=yy.bind(null,e,l);l.then(u,u)}})}function pt(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var u=a[l],r=e,f=t,y=f;e:for(;y!==null;){switch(y.tag){case 27:if(Xa(y.type)){Be=y.stateNode,vt=!1;break e}break;case 5:Be=y.stateNode,vt=!1;break e;case 3:case 4:Be=y.stateNode.containerInfo,vt=!0;break e}y=y.return}if(Be===null)throw Error(o(160));qd(r,f,u),Be=null,vt=!1,r=u.alternate,r!==null&&(r.return=null),u.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Hd(t,e),t=t.sibling}var kt=null;function Hd(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:pt(t,e),yt(e),l&4&&(wa(3,e,e.return),Jn(3,e),wa(5,e,e.return));break;case 1:pt(t,e),yt(e),l&512&&($e||a===null||ea(a,a.return)),l&64&&va&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var u=kt;if(pt(t,e),yt(e),l&512&&($e||a===null||ea(a,a.return)),l&4){var r=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,u=u.ownerDocument||u;t:switch(l){case"title":r=u.getElementsByTagName("title")[0],(!r||r[jn]||r[tt]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=u.createElement(l),u.head.insertBefore(r,u.querySelector("head > title"))),ut(r,l,a),r[tt]=e,Ie(r),l=r;break e;case"link":var f=Hh("link","href",u).get(l+(a.href||""));if(f){for(var y=0;y<f.length;y++)if(r=f[y],r.getAttribute("href")===(a.href==null||a.href===""?null:a.href)&&r.getAttribute("rel")===(a.rel==null?null:a.rel)&&r.getAttribute("title")===(a.title==null?null:a.title)&&r.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){f.splice(y,1);break t}}r=u.createElement(l),ut(r,l,a),u.head.appendChild(r);break;case"meta":if(f=Hh("meta","content",u).get(l+(a.content||""))){for(y=0;y<f.length;y++)if(r=f[y],r.getAttribute("content")===(a.content==null?null:""+a.content)&&r.getAttribute("name")===(a.name==null?null:a.name)&&r.getAttribute("property")===(a.property==null?null:a.property)&&r.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&r.getAttribute("charset")===(a.charSet==null?null:a.charSet)){f.splice(y,1);break t}}r=u.createElement(l),ut(r,l,a),u.head.appendChild(r);break;default:throw Error(o(468,l))}r[tt]=e,Ie(r),l=r}e.stateNode=l}else Bh(u,e.type,e.stateNode);else e.stateNode=Qh(u,l,e.memoizedProps);else r!==l?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,l===null?Bh(u,e.type,e.stateNode):Qh(u,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Ds(e,e.memoizedProps,a.memoizedProps)}break;case 27:pt(t,e),yt(e),l&512&&($e||a===null||ea(a,a.return)),a!==null&&l&4&&Ds(e,e.memoizedProps,a.memoizedProps);break;case 5:if(pt(t,e),yt(e),l&512&&($e||a===null||ea(a,a.return)),e.flags&32){u=e.stateNode;try{zl(u,"")}catch(J){Me(e,e.return,J)}}l&4&&e.stateNode!=null&&(u=e.memoizedProps,Ds(e,u,a!==null?a.memoizedProps:u)),l&1024&&(qs=!0);break;case 6:if(pt(t,e),yt(e),l&4){if(e.stateNode===null)throw Error(o(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(J){Me(e,e.return,J)}}break;case 3:if(Mi=null,u=kt,kt=Ci(t.containerInfo),pt(t,e),kt=u,yt(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{on(t.containerInfo)}catch(J){Me(e,e.return,J)}qs&&(qs=!1,Bd(e));break;case 4:l=kt,kt=Ci(e.stateNode.containerInfo),pt(t,e),yt(e),kt=l;break;case 12:pt(t,e),yt(e);break;case 31:pt(t,e),yt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,mi(e,l)));break;case 13:pt(t,e),yt(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(pi=Ce()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,mi(e,l)));break;case 22:u=e.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,N=va,R=$e;if(va=N||u,$e=R||b,pt(t,e),$e=R,va=N,yt(e),l&8192)e:for(t=e.stateNode,t._visibility=u?t._visibility&-2:t._visibility|1,u&&(a===null||b||va||$e||pl(e)),a=null,t=e;;){if(t.tag===5||t.tag===26){if(a===null){b=a=t;try{if(r=b.stateNode,u)f=r.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{y=b.stateNode;var Q=b.memoizedProps.style,C=Q!=null&&Q.hasOwnProperty("display")?Q.display:null;y.style.display=C==null||typeof C=="boolean"?"":(""+C).trim()}}catch(J){Me(b,b.return,J)}}}else if(t.tag===6){if(a===null){b=t;try{b.stateNode.nodeValue=u?"":b.memoizedProps}catch(J){Me(b,b.return,J)}}}else if(t.tag===18){if(a===null){b=t;try{var T=b.stateNode;u?Ch(T,!0):Ch(b.stateNode,!1)}catch(J){Me(b,b.return,J)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,mi(e,a))));break;case 19:pt(t,e),yt(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,mi(e,l)));break;case 30:break;case 21:break;default:pt(t,e),yt(e)}}function yt(e){var t=e.flags;if(t&2){try{for(var a,l=e.return;l!==null;){if(Md(l)){a=l;break}l=l.return}if(a==null)throw Error(o(160));switch(a.tag){case 27:var u=a.stateNode,r=Rs(e);hi(e,r,u);break;case 5:var f=a.stateNode;a.flags&32&&(zl(f,""),a.flags&=-33);var y=Rs(e);hi(e,y,f);break;case 3:case 4:var b=a.stateNode.containerInfo,N=Rs(e);Us(e,N,b);break;default:throw Error(o(161))}}catch(R){Me(e,e.return,R)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Bd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Bd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ya(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Rd(e,t.alternate,t),t=t.sibling}function pl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:wa(4,t,t.return),pl(t);break;case 1:ea(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Cd(t,t.return,a),pl(t);break;case 27:nu(t.stateNode);case 26:case 5:ea(t,t.return),pl(t);break;case 22:t.memoizedState===null&&pl(t);break;case 30:pl(t);break;default:pl(t)}e=e.sibling}}function ga(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,u=e,r=t,f=r.flags;switch(r.tag){case 0:case 11:case 15:ga(u,r,a),Jn(4,r);break;case 1:if(ga(u,r,a),l=r,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(N){Me(l,l.return,N)}if(l=r,u=l.updateQueue,u!==null){var y=l.stateNode;try{var b=u.shared.hiddenCallbacks;if(b!==null)for(u.shared.hiddenCallbacks=null,u=0;u<b.length;u++)pf(b[u],y)}catch(N){Me(l,l.return,N)}}a&&f&64&&Ad(r),Fn(r,r.return);break;case 27:zd(r);case 26:case 5:ga(u,r,a),a&&l===null&&f&4&&Td(r),Fn(r,r.return);break;case 12:ga(u,r,a);break;case 31:ga(u,r,a),a&&f&4&&wd(u,r);break;case 13:ga(u,r,a),a&&f&4&&Qd(u,r);break;case 22:r.memoizedState===null&&ga(u,r,a),Fn(r,r.return);break;case 30:break;default:ga(u,r,a)}t=t.sibling}}function ws(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&qn(a))}function Qs(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&qn(e))}function Zt(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Ld(e,t,a,l),t=t.sibling}function Ld(e,t,a,l){var u=t.flags;switch(t.tag){case 0:case 11:case 15:Zt(e,t,a,l),u&2048&&Jn(9,t);break;case 1:Zt(e,t,a,l);break;case 3:Zt(e,t,a,l),u&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&qn(e)));break;case 12:if(u&2048){Zt(e,t,a,l),e=t.stateNode;try{var r=t.memoizedProps,f=r.id,y=r.onPostCommit;typeof y=="function"&&y(f,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(b){Me(t,t.return,b)}}else Zt(e,t,a,l);break;case 31:Zt(e,t,a,l);break;case 13:Zt(e,t,a,l);break;case 23:break;case 22:r=t.stateNode,f=t.alternate,t.memoizedState!==null?r._visibility&2?Zt(e,t,a,l):Pn(e,t):r._visibility&2?Zt(e,t,a,l):(r._visibility|=2,$l(e,t,a,l,(t.subtreeFlags&10256)!==0||!1)),u&2048&&ws(f,t);break;case 24:Zt(e,t,a,l),u&2048&&Qs(t.alternate,t);break;default:Zt(e,t,a,l)}}function $l(e,t,a,l,u){for(u=u&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var r=e,f=t,y=a,b=l,N=f.flags;switch(f.tag){case 0:case 11:case 15:$l(r,f,y,b,u),Jn(8,f);break;case 23:break;case 22:var R=f.stateNode;f.memoizedState!==null?R._visibility&2?$l(r,f,y,b,u):Pn(r,f):(R._visibility|=2,$l(r,f,y,b,u)),u&&N&2048&&ws(f.alternate,f);break;case 24:$l(r,f,y,b,u),u&&N&2048&&Qs(f.alternate,f);break;default:$l(r,f,y,b,u)}t=t.sibling}}function Pn(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,u=l.flags;switch(l.tag){case 22:Pn(a,l),u&2048&&ws(l.alternate,l);break;case 24:Pn(a,l),u&2048&&Qs(l.alternate,l);break;default:Pn(a,l)}t=t.sibling}}var $n=8192;function Wl(e,t,a){if(e.subtreeFlags&$n)for(e=e.child;e!==null;)Yd(e,t,a),e=e.sibling}function Yd(e,t,a){switch(e.tag){case 26:Wl(e,t,a),e.flags&$n&&e.memoizedState!==null&&Jy(a,kt,e.memoizedState,e.memoizedProps);break;case 5:Wl(e,t,a);break;case 3:case 4:var l=kt;kt=Ci(e.stateNode.containerInfo),Wl(e,t,a),kt=l;break;case 22:e.memoizedState===null&&(l=e.alternate,l!==null&&l.memoizedState!==null?(l=$n,$n=16777216,Wl(e,t,a),$n=l):Wl(e,t,a));break;default:Wl(e,t,a)}}function Gd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Wn(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];et=l,kd(l,e)}Gd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xd(e),e=e.sibling}function Xd(e){switch(e.tag){case 0:case 11:case 15:Wn(e),e.flags&2048&&wa(9,e,e.return);break;case 3:Wn(e);break;case 12:Wn(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,vi(e)):Wn(e);break;default:Wn(e)}}function vi(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];et=l,kd(l,e)}Gd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:wa(8,t,t.return),vi(t);break;case 22:a=t.stateNode,a._visibility&2&&(a._visibility&=-3,vi(t));break;default:vi(t)}e=e.sibling}}function kd(e,t){for(;et!==null;){var a=et;switch(a.tag){case 0:case 11:case 15:wa(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:qn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,et=l;else e:for(a=e;et!==null;){l=et;var u=l.sibling,r=l.return;if(Ud(l),l===a){et=null;break e}if(u!==null){u.return=r,et=u;break e}et=r}}}var oy={getCacheForType:function(e){var t=lt(Je),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return lt(Je).controller.signal}},cy=typeof WeakMap=="function"?WeakMap:Map,Ne=0,Ue=null,ge=null,xe=0,Te=0,Ct=null,Qa=!1,Il=!1,Hs=!1,ba=0,Ge=0,Ha=0,yl=0,Bs=0,Tt=0,en=0,In=null,gt=null,Ls=!1,pi=0,Zd=0,yi=1/0,gi=null,Ba=null,We=0,La=null,tn=null,xa=0,Ys=0,Gs=null,Kd=null,eu=0,Xs=null;function Mt(){return(Ne&2)!==0&&xe!==0?xe&-xe:A.T!==null?Fs():rc()}function Vd(){if(Tt===0)if((xe&536870912)===0||je){var e=Nu;Nu<<=1,(Nu&3932160)===0&&(Nu=262144),Tt=e}else Tt=536870912;return e=Nt.current,e!==null&&(e.flags|=32),Tt}function bt(e,t,a){(e===Ue&&(Te===2||Te===9)||e.cancelPendingCommit!==null)&&(an(e,0),Ya(e,xe,Tt,!1)),Sn(e,a),((Ne&2)===0||e!==Ue)&&(e===Ue&&((Ne&2)===0&&(yl|=a),Ge===4&&Ya(e,xe,Tt,!1)),ta(e))}function Jd(e,t,a){if((Ne&6)!==0)throw Error(o(327));var l=!a&&(t&127)===0&&(t&e.expiredLanes)===0||xn(e,t),u=l?hy(e,t):Zs(e,t,!0),r=l;do{if(u===0){Il&&!l&&Ya(e,t,0,!1);break}else{if(a=e.current.alternate,r&&!fy(a)){u=Zs(e,t,!1),r=!1;continue}if(u===2){if(r=t,e.errorRecoveryDisabledLanes&r)var f=0;else f=e.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){t=f;e:{var y=e;u=In;var b=y.current.memoizedState.isDehydrated;if(b&&(an(y,f).flags|=256),f=Zs(y,f,!1),f!==2){if(Hs&&!b){y.errorRecoveryDisabledLanes|=r,yl|=r,u=4;break e}r=gt,gt=u,r!==null&&(gt===null?gt=r:gt.push.apply(gt,r))}u=f}if(r=!1,u!==2)continue}}if(u===1){an(e,0),Ya(e,t,0,!0);break}e:{switch(l=e,r=u,r){case 0:case 1:throw Error(o(345));case 4:if((t&4194048)!==t)break;case 6:Ya(l,t,Tt,!Qa);break e;case 2:gt=null;break;case 3:case 5:break;default:throw Error(o(329))}if((t&62914560)===t&&(u=pi+300-Ce(),10<u)){if(Ya(l,t,Tt,!Qa),Cu(l,0,!0)!==0)break e;xa=t,l.timeoutHandle=Eh(Fd.bind(null,l,a,gt,gi,Ls,t,Tt,yl,en,Qa,r,"Throttled",-0,0),u);break e}Fd(l,a,gt,gi,Ls,t,Tt,yl,en,Qa,r,null,-0,0)}}break}while(!0);ta(e)}function Fd(e,t,a,l,u,r,f,y,b,N,R,Q,C,T){if(e.timeoutHandle=-1,Q=t.subtreeFlags,Q&8192||(Q&16785408)===16785408){Q={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ua},Yd(t,r,Q);var J=(r&62914560)===r?pi-Ce():(r&4194048)===r?Zd-Ce():0;if(J=Fy(Q,J),J!==null){xa=r,e.cancelPendingCommit=J(lh.bind(null,e,t,r,a,l,u,f,y,b,R,Q,null,C,T)),Ya(e,r,f,!N);return}}lh(e,t,r,a,l,u,f,y,b)}function fy(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var u=a[l],r=u.getSnapshot;u=u.value;try{if(!_t(r(),u))return!1}catch{return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ya(e,t,a,l){t&=~Bs,t&=~yl,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var u=t;0<u;){var r=31-Ot(u),f=1<<r;l[r]=-1,u&=~f}a!==0&&nc(e,a,t)}function bi(){return(Ne&6)===0?(tu(0),!1):!0}function ks(){if(ge!==null){if(Te===0)var e=ge.return;else e=ge,oa=sl=null,is(e),Kl=null,Qn=0,e=ge;for(;e!==null;)Nd(e.alternate,e),e=e.return;ge=null}}function an(e,t){var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,zy(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),xa=0,ks(),Ue=e,ge=a=ra(e.current,null),xe=t,Te=0,Ct=null,Qa=!1,Il=xn(e,t),Hs=!1,en=Tt=Bs=yl=Ha=Ge=0,gt=In=null,Ls=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var u=31-Ot(l),r=1<<u;t|=e[u],l&=~r}return ba=t,Lu(),a}function Pd(e,t){de=null,A.H=Zn,t===Zl||t===Ju?(t=df(),Te=3):t===Jr?(t=df(),Te=4):Te=t===js?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ct=t,ge===null&&(Ge=1,si(e,qt(t,e.current)))}function $d(){var e=Nt.current;return e===null?!0:(xe&4194048)===xe?Bt===null:(xe&62914560)===xe||(xe&536870912)!==0?e===Bt:!1}function Wd(){var e=A.H;return A.H=Zn,e===null?Zn:e}function Id(){var e=A.A;return A.A=oy,e}function xi(){Ge=4,Qa||(xe&4194048)!==xe&&Nt.current!==null||(Il=!0),(Ha&134217727)===0&&(yl&134217727)===0||Ue===null||Ya(Ue,xe,Tt,!1)}function Zs(e,t,a){var l=Ne;Ne|=2;var u=Wd(),r=Id();(Ue!==e||xe!==t)&&(gi=null,an(e,t)),t=!1;var f=Ge;e:do try{if(Te!==0&&ge!==null){var y=ge,b=Ct;switch(Te){case 8:ks(),f=6;break e;case 3:case 2:case 9:case 6:Nt.current===null&&(t=!0);var N=Te;if(Te=0,Ct=null,ln(e,y,b,N),a&&Il){f=0;break e}break;default:N=Te,Te=0,Ct=null,ln(e,y,b,N)}}dy(),f=Ge;break}catch(R){Pd(e,R)}while(!0);return t&&e.shellSuspendCounter++,oa=sl=null,Ne=l,A.H=u,A.A=r,ge===null&&(Ue=null,xe=0,Lu()),f}function dy(){for(;ge!==null;)eh(ge)}function hy(e,t){var a=Ne;Ne|=2;var l=Wd(),u=Id();Ue!==e||xe!==t?(gi=null,yi=Ce()+500,an(e,t)):Il=xn(e,t);e:do try{if(Te!==0&&ge!==null){t=ge;var r=Ct;t:switch(Te){case 1:Te=0,Ct=null,ln(e,t,r,1);break;case 2:case 9:if(cf(r)){Te=0,Ct=null,th(t);break}t=function(){Te!==2&&Te!==9||Ue!==e||(Te=7),ta(e)},r.then(t,t);break e;case 3:Te=7;break e;case 4:Te=5;break e;case 7:cf(r)?(Te=0,Ct=null,th(t)):(Te=0,Ct=null,ln(e,t,r,7));break;case 5:var f=null;switch(ge.tag){case 26:f=ge.memoizedState;case 5:case 27:var y=ge;if(f?Lh(f):y.stateNode.complete){Te=0,Ct=null;var b=y.sibling;if(b!==null)ge=b;else{var N=y.return;N!==null?(ge=N,Si(N)):ge=null}break t}}Te=0,Ct=null,ln(e,t,r,5);break;case 6:Te=0,Ct=null,ln(e,t,r,6);break;case 8:ks(),Ge=6;break e;default:throw Error(o(462))}}my();break}catch(R){Pd(e,R)}while(!0);return oa=sl=null,A.H=l,A.A=u,Ne=a,ge!==null?0:(Ue=null,xe=0,Lu(),Ge)}function my(){for(;ge!==null&&!Ou();)eh(ge)}function eh(e){var t=_d(e.alternate,e,ba);e.memoizedProps=e.pendingProps,t===null?Si(e):ge=t}function th(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=gd(a,t,t.pendingProps,t.type,void 0,xe);break;case 11:t=gd(a,t,t.pendingProps,t.type.render,t.ref,xe);break;case 5:is(t);default:Nd(a,t),t=ge=Wc(t,ba),t=_d(a,t,ba)}e.memoizedProps=e.pendingProps,t===null?Si(e):ge=t}function ln(e,t,a,l){oa=sl=null,is(t),Kl=null,Qn=0;var u=t.return;try{if(ay(e,u,t,a,xe)){Ge=1,si(e,qt(a,e.current)),ge=null;return}}catch(r){if(u!==null)throw ge=u,r;Ge=1,si(e,qt(a,e.current)),ge=null;return}t.flags&32768?(je||l===1?e=!0:Il||(xe&536870912)!==0?e=!1:(Qa=e=!0,(l===2||l===9||l===3||l===6)&&(l=Nt.current,l!==null&&l.tag===13&&(l.flags|=16384))),ah(t,e)):Si(t)}function Si(e){var t=e;do{if((t.flags&32768)!==0){ah(t,Qa);return}e=t.return;var a=uy(t.alternate,t,ba);if(a!==null){ge=a;return}if(t=t.sibling,t!==null){ge=t;return}ge=t=e}while(t!==null);Ge===0&&(Ge=5)}function ah(e,t){do{var a=iy(e.alternate,e);if(a!==null){a.flags&=32767,ge=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){ge=e;return}ge=e=a}while(e!==null);Ge=6,ge=null}function lh(e,t,a,l,u,r,f,y,b){e.cancelPendingCommit=null;do ji();while(We!==0);if((Ne&6)!==0)throw Error(o(327));if(t!==null){if(t===e.current)throw Error(o(177));if(r=t.lanes|t.childLanes,r|=Rr,Vv(e,a,r,f,y,b),e===Ue&&(ge=Ue=null,xe=0),tn=t,La=e,xa=a,Ys=r,Gs=u,Kd=l,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,gy(ot,function(){return sh(),null})):(e.callbackNode=null,e.callbackPriority=0),l=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||l){l=A.T,A.T=null,u=H.p,H.p=2,f=Ne,Ne|=4;try{ry(e,t,a)}finally{Ne=f,H.p=u,A.T=l}}We=1,nh(),uh(),ih()}}function nh(){if(We===1){We=0;var e=La,t=tn,a=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||a){a=A.T,A.T=null;var l=H.p;H.p=2;var u=Ne;Ne|=4;try{Hd(t,e);var r=lo,f=Xc(e.containerInfo),y=r.focusedElem,b=r.selectionRange;if(f!==y&&y&&y.ownerDocument&&Gc(y.ownerDocument.documentElement,y)){if(b!==null&&Cr(y)){var N=b.start,R=b.end;if(R===void 0&&(R=N),"selectionStart"in y)y.selectionStart=N,y.selectionEnd=Math.min(R,y.value.length);else{var Q=y.ownerDocument||document,C=Q&&Q.defaultView||window;if(C.getSelection){var T=C.getSelection(),J=y.textContent.length,ie=Math.min(b.start,J),Re=b.end===void 0?ie:Math.min(b.end,J);!T.extend&&ie>Re&&(f=Re,Re=ie,ie=f);var O=Yc(y,ie),S=Yc(y,Re);if(O&&S&&(T.rangeCount!==1||T.anchorNode!==O.node||T.anchorOffset!==O.offset||T.focusNode!==S.node||T.focusOffset!==S.offset)){var E=Q.createRange();E.setStart(O.node,O.offset),T.removeAllRanges(),ie>Re?(T.addRange(E),T.extend(S.node,S.offset)):(E.setEnd(S.node,S.offset),T.addRange(E))}}}}for(Q=[],T=y;T=T.parentNode;)T.nodeType===1&&Q.push({element:T,left:T.scrollLeft,top:T.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<Q.length;y++){var w=Q[y];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Ui=!!ao,lo=ao=null}finally{Ne=u,H.p=l,A.T=a}}e.current=t,We=2}}function uh(){if(We===2){We=0;var e=La,t=tn,a=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||a){a=A.T,A.T=null;var l=H.p;H.p=2;var u=Ne;Ne|=4;try{Rd(e,t.alternate,t)}finally{Ne=u,H.p=l,A.T=a}}We=3}}function ih(){if(We===4||We===3){We=0,X();var e=La,t=tn,a=xa,l=Kd;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,tn=La=null,rh(e,e.pendingLanes));var u=e.pendingLanes;if(u===0&&(Ba=null),or(a),t=t.stateNode,jt&&typeof jt.onCommitFiberRoot=="function")try{jt.onCommitFiberRoot(bn,t,void 0,(t.current.flags&128)===128)}catch{}if(l!==null){t=A.T,u=H.p,H.p=2,A.T=null;try{for(var r=e.onRecoverableError,f=0;f<l.length;f++){var y=l[f];r(y.value,{componentStack:y.stack})}}finally{A.T=t,H.p=u}}(xa&3)!==0&&ji(),ta(e),u=e.pendingLanes,(a&261930)!==0&&(u&42)!==0?e===Xs?eu++:(eu=0,Xs=e):eu=0,tu(0)}}function rh(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,qn(t)))}function ji(){return nh(),uh(),ih(),sh()}function sh(){if(We!==5)return!1;var e=La,t=Ys;Ys=0;var a=or(xa),l=A.T,u=H.p;try{H.p=32>a?32:a,A.T=null,a=Gs,Gs=null;var r=La,f=xa;if(We=0,tn=La=null,xa=0,(Ne&6)!==0)throw Error(o(331));var y=Ne;if(Ne|=4,Xd(r.current),Ld(r,r.current,f,a),Ne=y,tu(0,!1),jt&&typeof jt.onPostCommitFiberRoot=="function")try{jt.onPostCommitFiberRoot(bn,r)}catch{}return!0}finally{H.p=u,A.T=l,rh(e,t)}}function oh(e,t,a){t=qt(a,t),t=Ss(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(Sn(e,2),ta(e))}function Me(e,t,a){if(e.tag===3)oh(e,e,a);else for(;t!==null;){if(t.tag===3){oh(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ba===null||!Ba.has(l))){e=qt(a,e),a=cd(2),l=Ra(t,a,2),l!==null&&(fd(a,l,t,e),Sn(l,2),ta(l));break}}t=t.return}}function Ks(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new cy;var u=new Set;l.set(t,u)}else u=l.get(t),u===void 0&&(u=new Set,l.set(t,u));u.has(a)||(Hs=!0,u.add(a),e=vy.bind(null,e,t,a),t.then(e,e))}function vy(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Ue===e&&(xe&a)===a&&(Ge===4||Ge===3&&(xe&62914560)===xe&&300>Ce()-pi?(Ne&2)===0&&an(e,0):Bs|=a,en===xe&&(en=0)),ta(e)}function ch(e,t){t===0&&(t=lc()),e=ul(e,t),e!==null&&(Sn(e,t),ta(e))}function py(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),ch(e,a)}function yy(e,t){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(o(314))}l!==null&&l.delete(t),ch(e,a)}function gy(e,t){return pn(e,t)}var Oi=null,nn=null,Vs=!1,_i=!1,Js=!1,Ga=0;function ta(e){e!==nn&&e.next===null&&(nn===null?Oi=nn=e:nn=nn.next=e),_i=!0,Vs||(Vs=!0,xy())}function tu(e,t){if(!Js&&_i){Js=!0;do for(var a=!1,l=Oi;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var r=0;else{var f=l.suspendedLanes,y=l.pingedLanes;r=(1<<31-Ot(42|e)+1)-1,r&=u&~(f&~y),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,mh(l,r))}else r=xe,r=Cu(l,l===Ue?r:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(r&3)===0||xn(l,r)||(a=!0,mh(l,r));l=l.next}while(a);Js=!1}}function by(){fh()}function fh(){_i=Vs=!1;var e=0;Ga!==0&&My()&&(e=Ga);for(var t=Ce(),a=null,l=Oi;l!==null;){var u=l.next,r=dh(l,t);r===0?(l.next=null,a===null?Oi=u:a.next=u,u===null&&(nn=a)):(a=l,(e!==0||(r&3)!==0)&&(_i=!0)),l=u}We!==0&&We!==5||tu(e),Ga!==0&&(Ga=0)}function dh(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var f=31-Ot(r),y=1<<f,b=u[f];b===-1?((y&a)===0||(y&l)!==0)&&(u[f]=Kv(y,t)):b<=t&&(e.expiredLanes|=y),r&=~y}if(t=Ue,a=xe,a=Cu(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l=e.callbackNode,a===0||e===t&&(Te===2||Te===9)||e.cancelPendingCommit!==null)return l!==null&&l!==null&&yn(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||xn(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&yn(l),or(a)){case 2:case 8:a=$t;break;case 32:a=ot;break;case 268435456:a=_u;break;default:a=ot}return l=hh.bind(null,e),a=pn(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&yn(l),e.callbackPriority=2,e.callbackNode=null,2}function hh(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(ji()&&e.callbackNode!==a)return null;var l=xe;return l=Cu(e,e===Ue?l:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),l===0?null:(Jd(e,l,t),dh(e,Ce()),e.callbackNode!=null&&e.callbackNode===a?hh.bind(null,e):null)}function mh(e,t){if(ji())return null;Jd(e,t,!0)}function xy(){Dy(function(){(Ne&6)!==0?pn(St,by):fh()})}function Fs(){if(Ga===0){var e=Xl;e===0&&(e=Eu,Eu<<=1,(Eu&261888)===0&&(Eu=256)),Ga=e}return Ga}function vh(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Du(""+e)}function ph(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function Sy(e,t,a,l,u){if(t==="submit"&&a&&a.stateNode===u){var r=vh((u[ht]||null).action),f=l.submitter;f&&(t=(t=f[ht]||null)?vh(t.formAction):f.getAttribute("formAction"),t!==null&&(r=t,f=null));var y=new wu("action","action",null,l,u);e.push({event:y,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ga!==0){var b=f?ph(u,f):new FormData(u);vs(a,{pending:!0,data:b,method:u.method,action:r},null,b)}}else typeof r=="function"&&(y.preventDefault(),b=f?ph(u,f):new FormData(u),vs(a,{pending:!0,data:b,method:u.method,action:r},r,b))},currentTarget:u}]})}}for(var Ps=0;Ps<Dr.length;Ps++){var $s=Dr[Ps],jy=$s.toLowerCase(),Oy=$s[0].toUpperCase()+$s.slice(1);Xt(jy,"on"+Oy)}Xt(Kc,"onAnimationEnd"),Xt(Vc,"onAnimationIteration"),Xt(Jc,"onAnimationStart"),Xt("dblclick","onDoubleClick"),Xt("focusin","onFocus"),Xt("focusout","onBlur"),Xt(Bp,"onTransitionRun"),Xt(Lp,"onTransitionStart"),Xt(Yp,"onTransitionCancel"),Xt(Fc,"onTransitionEnd"),Tl("onMouseEnter",["mouseout","mouseover"]),Tl("onMouseLeave",["mouseout","mouseover"]),Tl("onPointerEnter",["pointerout","pointerover"]),Tl("onPointerLeave",["pointerout","pointerover"]),tl("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),tl("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),tl("onBeforeInput",["compositionend","keypress","textInput","paste"]),tl("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),tl("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),tl("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var au="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(" "),_y=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(au));function yh(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],u=l.event;l=l.listeners;e:{var r=void 0;if(t)for(var f=l.length-1;0<=f;f--){var y=l[f],b=y.instance,N=y.currentTarget;if(y=y.listener,b!==r&&u.isPropagationStopped())break e;r=y,u.currentTarget=N;try{r(u)}catch(R){Bu(R)}u.currentTarget=null,r=b}else for(f=0;f<l.length;f++){if(y=l[f],b=y.instance,N=y.currentTarget,y=y.listener,b!==r&&u.isPropagationStopped())break e;r=y,u.currentTarget=N;try{r(u)}catch(R){Bu(R)}u.currentTarget=null,r=b}}}}function be(e,t){var a=t[cr];a===void 0&&(a=t[cr]=new Set);var l=e+"__bubble";a.has(l)||(gh(t,e,2,!1),a.add(l))}function Ws(e,t,a){var l=0;t&&(l|=4),gh(a,e,l,t)}var Ei="_reactListening"+Math.random().toString(36).slice(2);function Is(e){if(!e[Ei]){e[Ei]=!0,cc.forEach(function(a){a!=="selectionchange"&&(_y.has(a)||Ws(a,!1,e),Ws(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Ei]||(t[Ei]=!0,Ws("selectionchange",!1,t))}}function gh(e,t,a,l){switch(Vh(t)){case 2:var u=Wy;break;case 8:u=Iy;break;default:u=vo}a=u.bind(null,t,a,e),u=void 0,!br||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),l?u!==void 0?e.addEventListener(t,a,{capture:!0,passive:u}):e.addEventListener(t,a,!0):u!==void 0?e.addEventListener(t,a,{passive:u}):e.addEventListener(t,a,!1)}function eo(e,t,a,l,u){var r=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var y=l.stateNode.containerInfo;if(y===u)break;if(f===4)for(f=l.return;f!==null;){var b=f.tag;if((b===3||b===4)&&f.stateNode.containerInfo===u)return;f=f.return}for(;y!==null;){if(f=Nl(y),f===null)return;if(b=f.tag,b===5||b===6||b===26||b===27){l=r=f;continue e}y=y.parentNode}}l=l.return}jc(function(){var N=r,R=yr(a),Q=[];e:{var C=Pc.get(e);if(C!==void 0){var T=wu,J=e;switch(e){case"keypress":if(Uu(a)===0)break e;case"keydown":case"keyup":T=yp;break;case"focusin":J="focus",T=Or;break;case"focusout":J="blur",T=Or;break;case"beforeblur":case"afterblur":T=Or;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":T=Ec;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":T=up;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":T=xp;break;case Kc:case Vc:case Jc:T=sp;break;case Fc:T=jp;break;case"scroll":case"scrollend":T=lp;break;case"wheel":T=_p;break;case"copy":case"cut":case"paste":T=cp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":T=Ac;break;case"toggle":case"beforetoggle":T=Np}var ie=(t&4)!==0,Re=!ie&&(e==="scroll"||e==="scrollend"),O=ie?C!==null?C+"Capture":null:C;ie=[];for(var S=N,E;S!==null;){var w=S;if(E=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||E===null||O===null||(w=_n(S,O),w!=null&&ie.push(lu(S,w,E))),Re)break;S=S.return}0<ie.length&&(C=new T(C,J,null,a,R),Q.push({event:C,listeners:ie}))}}if((t&7)===0){e:{if(C=e==="mouseover"||e==="pointerover",T=e==="mouseout"||e==="pointerout",C&&a!==pr&&(J=a.relatedTarget||a.fromElement)&&(Nl(J)||J[El]))break e;if((T||C)&&(C=R.window===R?R:(C=R.ownerDocument)?C.defaultView||C.parentWindow:window,T?(J=a.relatedTarget||a.toElement,T=N,J=J?Nl(J):null,J!==null&&(Re=h(J),ie=J.tag,J!==Re||ie!==5&&ie!==27&&ie!==6)&&(J=null)):(T=null,J=N),T!==J)){if(ie=Ec,w="onMouseLeave",O="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(ie=Ac,w="onPointerLeave",O="onPointerEnter",S="pointer"),Re=T==null?C:On(T),E=J==null?C:On(J),C=new ie(w,S+"leave",T,a,R),C.target=Re,C.relatedTarget=E,w=null,Nl(R)===N&&(ie=new ie(O,S+"enter",J,a,R),ie.target=E,ie.relatedTarget=Re,w=ie),Re=w,T&&J)t:{for(ie=Ey,O=T,S=J,E=0,w=O;w;w=ie(w))E++;w=0;for(var le=S;le;le=ie(le))w++;for(;0<E-w;)O=ie(O),E--;for(;0<w-E;)S=ie(S),w--;for(;E--;){if(O===S||S!==null&&O===S.alternate){ie=O;break t}O=ie(O),S=ie(S)}ie=null}else ie=null;T!==null&&bh(Q,C,T,ie,!1),J!==null&&Re!==null&&bh(Q,Re,J,ie,!0)}}e:{if(C=N?On(N):window,T=C.nodeName&&C.nodeName.toLowerCase(),T==="select"||T==="input"&&C.type==="file")var Oe=qc;else if(Rc(C))if(wc)Oe=wp;else{Oe=Up;var te=Rp}else T=C.nodeName,!T||T.toLowerCase()!=="input"||C.type!=="checkbox"&&C.type!=="radio"?N&&vr(N.elementType)&&(Oe=qc):Oe=qp;if(Oe&&(Oe=Oe(e,N))){Uc(Q,Oe,a,R);break e}te&&te(e,C,N),e==="focusout"&&N&&C.type==="number"&&N.memoizedProps.value!=null&&mr(C,"number",C.value)}switch(te=N?On(N):window,e){case"focusin":(Rc(te)||te.contentEditable==="true")&&(ql=te,Tr=N,Dn=null);break;case"focusout":Dn=Tr=ql=null;break;case"mousedown":Mr=!0;break;case"contextmenu":case"mouseup":case"dragend":Mr=!1,kc(Q,a,R);break;case"selectionchange":if(Hp)break;case"keydown":case"keyup":kc(Q,a,R)}var me;if(Er)e:{switch(e){case"compositionstart":var Se="onCompositionStart";break e;case"compositionend":Se="onCompositionEnd";break e;case"compositionupdate":Se="onCompositionUpdate";break e}Se=void 0}else Ul?zc(e,a)&&(Se="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(Se="onCompositionStart");Se&&(Cc&&a.locale!=="ko"&&(Ul||Se!=="onCompositionStart"?Se==="onCompositionEnd"&&Ul&&(me=Oc()):(Na=R,xr="value"in Na?Na.value:Na.textContent,Ul=!0)),te=Ni(N,Se),0<te.length&&(Se=new Nc(Se,e,null,a,R),Q.push({event:Se,listeners:te}),me?Se.data=me:(me=Dc(a),me!==null&&(Se.data=me)))),(me=Cp?Tp(e,a):Mp(e,a))&&(Se=Ni(N,"onBeforeInput"),0<Se.length&&(te=new Nc("onBeforeInput","beforeinput",null,a,R),Q.push({event:te,listeners:Se}),te.data=me)),Sy(Q,e,N,a,R)}yh(Q,t)})}function lu(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Ni(e,t){for(var a=t+"Capture",l=[];e!==null;){var u=e,r=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||r===null||(u=_n(e,a),u!=null&&l.unshift(lu(e,u,r)),u=_n(e,t),u!=null&&l.push(lu(e,u,r))),e.tag===3)return l;e=e.return}return[]}function Ey(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function bh(e,t,a,l,u){for(var r=t._reactName,f=[];a!==null&&a!==l;){var y=a,b=y.alternate,N=y.stateNode;if(y=y.tag,b!==null&&b===l)break;y!==5&&y!==26&&y!==27||N===null||(b=N,u?(N=_n(a,r),N!=null&&f.unshift(lu(a,N,b))):u||(N=_n(a,r),N!=null&&f.push(lu(a,N,b)))),a=a.return}f.length!==0&&e.push({event:t,listeners:f})}var Ny=/\r\n?/g,Ay=/\u0000|\uFFFD/g;function xh(e){return(typeof e=="string"?e:""+e).replace(Ny,`
`).replace(Ay,"")}function Sh(e,t){return t=xh(t),xh(e)===t}function De(e,t,a,l,u,r){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||zl(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&zl(e,""+l);break;case"className":Mu(e,"class",l);break;case"tabIndex":Mu(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Mu(e,a,l);break;case"style":xc(e,l,r);break;case"data":if(t!=="object"){Mu(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Du(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(a==="formAction"?(t!=="input"&&De(e,t,"name",u.name,u,null),De(e,t,"formEncType",u.formEncType,u,null),De(e,t,"formMethod",u.formMethod,u,null),De(e,t,"formTarget",u.formTarget,u,null)):(De(e,t,"encType",u.encType,u,null),De(e,t,"method",u.method,u,null),De(e,t,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Du(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=ua);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){e.removeAttribute("xlink:href");break}a=Du(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""+l):e.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":be("beforetoggle",e),be("toggle",e),Tu(e,"popover",l);break;case"xlinkActuate":na(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":na(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":na(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":na(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":na(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":na(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":na(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":na(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":na(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Tu(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=tp.get(a)||a,Tu(e,a,l))}}function to(e,t,a,l,u,r){switch(a){case"style":xc(e,l,r);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(o(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(o(60));e.innerHTML=a}}break;case"children":typeof l=="string"?zl(e,l):(typeof l=="number"||typeof l=="bigint")&&zl(e,""+l);break;case"onScroll":l!=null&&be("scroll",e);break;case"onScrollEnd":l!=null&&be("scrollend",e);break;case"onClick":l!=null&&(e.onclick=ua);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fc.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),t=a.slice(2,u?a.length-7:void 0),r=e[ht]||null,r=r!=null?r[a]:null,typeof r=="function"&&e.removeEventListener(t,r,u),typeof l=="function")){typeof r!="function"&&r!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,u);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Tu(e,a,l)}}}function ut(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var l=!1,u=!1,r;for(r in a)if(a.hasOwnProperty(r)){var f=a[r];if(f!=null)switch(r){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:De(e,t,r,f,a,null)}}u&&De(e,t,"srcSet",a.srcSet,a,null),l&&De(e,t,"src",a.src,a,null);return;case"input":be("invalid",e);var y=r=f=u=null,b=null,N=null;for(l in a)if(a.hasOwnProperty(l)){var R=a[l];if(R!=null)switch(l){case"name":u=R;break;case"type":f=R;break;case"checked":b=R;break;case"defaultChecked":N=R;break;case"value":r=R;break;case"defaultValue":y=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(o(137,t));break;default:De(e,t,l,R,a,null)}}pc(e,r,y,b,N,f,u,!1);return;case"select":be("invalid",e),l=f=r=null;for(u in a)if(a.hasOwnProperty(u)&&(y=a[u],y!=null))switch(u){case"value":r=y;break;case"defaultValue":f=y;break;case"multiple":l=y;default:De(e,t,u,y,a,null)}t=r,a=f,e.multiple=!!l,t!=null?Ml(e,!!l,t,!1):a!=null&&Ml(e,!!l,a,!0);return;case"textarea":be("invalid",e),r=u=l=null;for(f in a)if(a.hasOwnProperty(f)&&(y=a[f],y!=null))switch(f){case"value":l=y;break;case"defaultValue":u=y;break;case"children":r=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(o(91));break;default:De(e,t,f,y,a,null)}gc(e,l,u,r);return;case"option":for(b in a)if(a.hasOwnProperty(b)&&(l=a[b],l!=null))switch(b){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:De(e,t,b,l,a,null)}return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(l=0;l<au.length;l++)be(au[l],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in a)if(a.hasOwnProperty(N)&&(l=a[N],l!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:De(e,t,N,l,a,null)}return;default:if(vr(t)){for(R in a)a.hasOwnProperty(R)&&(l=a[R],l!==void 0&&to(e,t,R,l,a,void 0));return}}for(y in a)a.hasOwnProperty(y)&&(l=a[y],l!=null&&De(e,t,y,l,a,null))}function Cy(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,r=null,f=null,y=null,b=null,N=null,R=null;for(T in a){var Q=a[T];if(a.hasOwnProperty(T)&&Q!=null)switch(T){case"checked":break;case"value":break;case"defaultValue":b=Q;default:l.hasOwnProperty(T)||De(e,t,T,null,l,Q)}}for(var C in l){var T=l[C];if(Q=a[C],l.hasOwnProperty(C)&&(T!=null||Q!=null))switch(C){case"type":r=T;break;case"name":u=T;break;case"checked":N=T;break;case"defaultChecked":R=T;break;case"value":f=T;break;case"defaultValue":y=T;break;case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(o(137,t));break;default:T!==Q&&De(e,t,C,T,l,Q)}}hr(e,f,y,b,N,R,r,u);return;case"select":T=f=y=C=null;for(r in a)if(b=a[r],a.hasOwnProperty(r)&&b!=null)switch(r){case"value":break;case"multiple":T=b;default:l.hasOwnProperty(r)||De(e,t,r,null,l,b)}for(u in l)if(r=l[u],b=a[u],l.hasOwnProperty(u)&&(r!=null||b!=null))switch(u){case"value":C=r;break;case"defaultValue":y=r;break;case"multiple":f=r;default:r!==b&&De(e,t,u,r,l,b)}t=y,a=f,l=T,C!=null?Ml(e,!!a,C,!1):!!l!=!!a&&(t!=null?Ml(e,!!a,t,!0):Ml(e,!!a,a?[]:"",!1));return;case"textarea":T=C=null;for(y in a)if(u=a[y],a.hasOwnProperty(y)&&u!=null&&!l.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:De(e,t,y,null,l,u)}for(f in l)if(u=l[f],r=a[f],l.hasOwnProperty(f)&&(u!=null||r!=null))switch(f){case"value":C=u;break;case"defaultValue":T=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==r&&De(e,t,f,u,l,r)}yc(e,C,T);return;case"option":for(var J in a)if(C=a[J],a.hasOwnProperty(J)&&C!=null&&!l.hasOwnProperty(J))switch(J){case"selected":e.selected=!1;break;default:De(e,t,J,null,l,C)}for(b in l)if(C=l[b],T=a[b],l.hasOwnProperty(b)&&C!==T&&(C!=null||T!=null))switch(b){case"selected":e.selected=C&&typeof C!="function"&&typeof C!="symbol";break;default:De(e,t,b,C,l,T)}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 ie in a)C=a[ie],a.hasOwnProperty(ie)&&C!=null&&!l.hasOwnProperty(ie)&&De(e,t,ie,null,l,C);for(N in l)if(C=l[N],T=a[N],l.hasOwnProperty(N)&&C!==T&&(C!=null||T!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(o(137,t));break;default:De(e,t,N,C,l,T)}return;default:if(vr(t)){for(var Re in a)C=a[Re],a.hasOwnProperty(Re)&&C!==void 0&&!l.hasOwnProperty(Re)&&to(e,t,Re,void 0,l,C);for(R in l)C=l[R],T=a[R],!l.hasOwnProperty(R)||C===T||C===void 0&&T===void 0||to(e,t,R,C,l,T);return}}for(var O in a)C=a[O],a.hasOwnProperty(O)&&C!=null&&!l.hasOwnProperty(O)&&De(e,t,O,null,l,C);for(Q in l)C=l[Q],T=a[Q],!l.hasOwnProperty(Q)||C===T||C==null&&T==null||De(e,t,Q,C,l,T)}function jh(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Ty(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var u=a[l],r=u.transferSize,f=u.initiatorType,y=u.duration;if(r&&y&&jh(f)){for(f=0,y=u.responseEnd,l+=1;l<a.length;l++){var b=a[l],N=b.startTime;if(N>y)break;var R=b.transferSize,Q=b.initiatorType;R&&jh(Q)&&(b=b.responseEnd,f+=R*(b<y?1:(y-N)/(b-N)))}if(--l,t+=8*(r+f)/(u.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var ao=null,lo=null;function Ai(e){return e.nodeType===9?e:e.ownerDocument}function Oh(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function _h(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function no(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var uo=null;function My(){var e=window.event;return e&&e.type==="popstate"?e===uo?!1:(uo=e,!0):(uo=null,!1)}var Eh=typeof setTimeout=="function"?setTimeout:void 0,zy=typeof clearTimeout=="function"?clearTimeout:void 0,Nh=typeof Promise=="function"?Promise:void 0,Dy=typeof queueMicrotask=="function"?queueMicrotask:typeof Nh<"u"?function(e){return Nh.resolve(null).then(e).catch(Ry)}:Eh;function Ry(e){setTimeout(function(){throw e})}function Xa(e){return e==="head"}function Ah(e,t){var a=t,l=0;do{var u=a.nextSibling;if(e.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(l===0){e.removeChild(u),on(t);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")nu(e.ownerDocument.documentElement);else if(a==="head"){a=e.ownerDocument.head,nu(a);for(var r=a.firstChild;r;){var f=r.nextSibling,y=r.nodeName;r[jn]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=f}}else a==="body"&&nu(e.ownerDocument.body);a=u}while(a);on(t)}function Ch(e,t){var a=e;e=0;do{var l=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(e===0)break;e--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||e++;a=l}while(a)}function io(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":io(a),fr(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function Uy(e,t,a,l){for(;e.nodeType===1;){var u=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[jn])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==u.rel||e.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||e.getAttribute("title")!==(u.title==null?null:u.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(u.src==null?null:u.src)||e.getAttribute("type")!==(u.type==null?null:u.type)||e.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=u.name==null?null:""+u.name;if(u.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=Lt(e.nextSibling),e===null)break}return null}function qy(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=Lt(e.nextSibling),e===null))return null;return e}function Th(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Lt(e.nextSibling),e===null))return null;return e}function ro(e){return e.data==="$?"||e.data==="$~"}function so(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function wy(e,t){var a=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||a.readyState!=="loading")t();else{var l=function(){t(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),e._reactRetry=l}}function Lt(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var oo=null;function Mh(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="/$"||a==="/&"){if(t===0)return Lt(e.nextSibling);t--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||t++}e=e.nextSibling}return null}function zh(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(t===0)return e;t--}else a!=="/$"&&a!=="/&"||t++}e=e.previousSibling}return null}function Dh(e,t,a){switch(t=Ai(a),e){case"html":if(e=t.documentElement,!e)throw Error(o(452));return e;case"head":if(e=t.head,!e)throw Error(o(453));return e;case"body":if(e=t.body,!e)throw Error(o(454));return e;default:throw Error(o(451))}}function nu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);fr(e)}var Yt=new Map,Rh=new Set;function Ci(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Sa=H.d;H.d={f:Qy,r:Hy,D:By,C:Ly,L:Yy,m:Gy,X:ky,S:Xy,M:Zy};function Qy(){var e=Sa.f(),t=bi();return e||t}function Hy(e){var t=Al(e);t!==null&&t.tag===5&&t.type==="form"?Pf(t):Sa.r(e)}var un=typeof document>"u"?null:document;function Uh(e,t,a){var l=un;if(l&&typeof t=="string"&&t){var u=Rt(t);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Rh.has(u)||(Rh.add(u),e={rel:e,crossOrigin:a,href:t},l.querySelector(u)===null&&(t=l.createElement("link"),ut(t,"link",e),Ie(t),l.head.appendChild(t)))}}function By(e){Sa.D(e),Uh("dns-prefetch",e,null)}function Ly(e,t){Sa.C(e,t),Uh("preconnect",e,t)}function Yy(e,t,a){Sa.L(e,t,a);var l=un;if(l&&e&&t){var u='link[rel="preload"][as="'+Rt(t)+'"]';t==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Rt(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Rt(a.imageSizes)+'"]')):u+='[href="'+Rt(e)+'"]';var r=u;switch(t){case"style":r=rn(e);break;case"script":r=sn(e)}Yt.has(r)||(e=j({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),Yt.set(r,e),l.querySelector(u)!==null||t==="style"&&l.querySelector(uu(r))||t==="script"&&l.querySelector(iu(r))||(t=l.createElement("link"),ut(t,"link",e),Ie(t),l.head.appendChild(t)))}}function Gy(e,t){Sa.m(e,t);var a=un;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",u='link[rel="modulepreload"][as="'+Rt(l)+'"][href="'+Rt(e)+'"]',r=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=sn(e)}if(!Yt.has(r)&&(e=j({rel:"modulepreload",href:e},t),Yt.set(r,e),a.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(iu(r)))return}l=a.createElement("link"),ut(l,"link",e),Ie(l),a.head.appendChild(l)}}}function Xy(e,t,a){Sa.S(e,t,a);var l=un;if(l&&e){var u=Cl(l).hoistableStyles,r=rn(e);t=t||"default";var f=u.get(r);if(!f){var y={loading:0,preload:null};if(f=l.querySelector(uu(r)))y.loading=5;else{e=j({rel:"stylesheet",href:e,"data-precedence":t},a),(a=Yt.get(r))&&co(e,a);var b=f=l.createElement("link");Ie(b),ut(b,"link",e),b._p=new Promise(function(N,R){b.onload=N,b.onerror=R}),b.addEventListener("load",function(){y.loading|=1}),b.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Ti(f,t,l)}f={type:"stylesheet",instance:f,count:1,state:y},u.set(r,f)}}}function ky(e,t){Sa.X(e,t);var a=un;if(a&&e){var l=Cl(a).hoistableScripts,u=sn(e),r=l.get(u);r||(r=a.querySelector(iu(u)),r||(e=j({src:e,async:!0},t),(t=Yt.get(u))&&fo(e,t),r=a.createElement("script"),Ie(r),ut(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(u,r))}}function Zy(e,t){Sa.M(e,t);var a=un;if(a&&e){var l=Cl(a).hoistableScripts,u=sn(e),r=l.get(u);r||(r=a.querySelector(iu(u)),r||(e=j({src:e,async:!0,type:"module"},t),(t=Yt.get(u))&&fo(e,t),r=a.createElement("script"),Ie(r),ut(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(u,r))}}function qh(e,t,a,l){var u=(u=se.current)?Ci(u):null;if(!u)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=rn(a.href),a=Cl(u).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=rn(a.href);var r=Cl(u).hoistableStyles,f=r.get(e);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,f),(r=u.querySelector(uu(e)))&&!r._p&&(f.instance=r,f.state.loading=5),Yt.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Yt.set(e,a),r||Ky(u,e,a,f.state))),t&&l===null)throw Error(o(528,""));return f}if(t&&l!==null)throw Error(o(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=sn(a),a=Cl(u).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function rn(e){return'href="'+Rt(e)+'"'}function uu(e){return'link[rel="stylesheet"]['+e+"]"}function wh(e){return j({},e,{"data-precedence":e.precedence,precedence:null})}function Ky(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),ut(t,"link",a),Ie(t),e.head.appendChild(t))}function sn(e){return'[src="'+Rt(e)+'"]'}function iu(e){return"script[async]"+e}function Qh(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+Rt(a.href)+'"]');if(l)return t.instance=l,Ie(l),l;var u=j({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),Ie(l),ut(l,"style",u),Ti(l,a.precedence,e),t.instance=l;case"stylesheet":u=rn(a.href);var r=e.querySelector(uu(u));if(r)return t.state.loading|=4,t.instance=r,Ie(r),r;l=wh(a),(u=Yt.get(u))&&co(l,u),r=(e.ownerDocument||e).createElement("link"),Ie(r);var f=r;return f._p=new Promise(function(y,b){f.onload=y,f.onerror=b}),ut(r,"link",l),t.state.loading|=4,Ti(r,a.precedence,e),t.instance=r;case"script":return r=sn(a.src),(u=e.querySelector(iu(r)))?(t.instance=u,Ie(u),u):(l=a,(u=Yt.get(r))&&(l=j({},a),fo(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),Ie(u),ut(u,"link",l),e.head.appendChild(u),t.instance=u);case"void":return null;default:throw Error(o(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,Ti(l,a.precedence,e));return t.instance}function Ti(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,r=u,f=0;f<l.length;f++){var y=l[f];if(y.dataset.precedence===t)r=y;else if(r!==u)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function co(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function fo(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Mi=null;function Hh(e,t,a){if(Mi===null){var l=new Map,u=Mi=new Map;u.set(a,l)}else u=Mi,l=u.get(a),l||(l=new Map,u.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),u=0;u<a.length;u++){var r=a[u];if(!(r[jn]||r[tt]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var f=r.getAttribute(t)||"";f=e+f;var y=l.get(f);y?y.push(r):l.set(f,[r])}}return l}function Bh(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function Vy(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Lh(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function Jy(e,t,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=rn(l.href),r=t.querySelector(uu(u));if(r){t=r._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=zi.bind(e),t.then(e,e)),a.state.loading|=4,a.instance=r,Ie(r);return}r=t.ownerDocument||t,l=wh(l),(u=Yt.get(u))&&co(l,u),r=r.createElement("link"),Ie(r);var f=r;f._p=new Promise(function(y,b){f.onload=y,f.onerror=b}),ut(r,"link",l),a.instance=r}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=zi.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}var ho=0;function Fy(e,t){return e.stylesheets&&e.count===0&&Ri(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var l=setTimeout(function(){if(e.stylesheets&&Ri(e,e.stylesheets),e.unsuspend){var r=e.unsuspend;e.unsuspend=null,r()}},6e4+t);0<e.imgBytes&&ho===0&&(ho=62500*Ty());var u=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Ri(e,e.stylesheets),e.unsuspend)){var r=e.unsuspend;e.unsuspend=null,r()}},(e.imgBytes>ho?50:800)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function zi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ri(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Di=null;function Ri(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Di=new Map,t.forEach(Py,e),Di=null,zi.call(e))}function Py(e,t){if(!(t.state.loading&4)){var a=Di.get(e);if(a)var l=a.get(null);else{a=new Map,Di.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<u.length;r++){var f=u[r];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(a.set(f.dataset.precedence,f),l=f)}l&&a.set(null,l)}u=t.instance,f=u.getAttribute("data-precedence"),r=a.get(f)||l,r===l&&a.set(null,u),a.set(f,u),this.count++,l=zi.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),r?r.parentNode.insertBefore(u,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(u,e.firstChild)),t.state.loading|=4}}var ru={$$typeof:Ae,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function $y(e,t,a,l,u,r,f,y,b){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=rr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=rr(0),this.hiddenUpdates=rr(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=r,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=b,this.incompleteTransitions=new Map}function Yh(e,t,a,l,u,r,f,y,b,N,R,Q){return e=new $y(e,t,a,f,b,N,R,Q,y),t=1,r===!0&&(t|=24),r=Et(3,null,null,t),e.current=r,r.stateNode=e,t=Zr(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:l,isDehydrated:a,cache:t},Fr(r),e}function Gh(e){return e?(e=Hl,e):Hl}function Xh(e,t,a,l,u,r){u=Gh(u),l.context===null?l.context=u:l.pendingContext=u,l=Da(t),l.payload={element:a},r=r===void 0?null:r,r!==null&&(l.callback=r),a=Ra(e,l,t),a!==null&&(bt(a,e,t),Bn(a,e,t))}function kh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function mo(e,t){kh(e,t),(e=e.alternate)&&kh(e,t)}function Zh(e){if(e.tag===13||e.tag===31){var t=ul(e,67108864);t!==null&&bt(t,e,67108864),mo(e,67108864)}}function Kh(e){if(e.tag===13||e.tag===31){var t=Mt();t=sr(t);var a=ul(e,t);a!==null&&bt(a,e,t),mo(e,t)}}var Ui=!0;function Wy(e,t,a,l){var u=A.T;A.T=null;var r=H.p;try{H.p=2,vo(e,t,a,l)}finally{H.p=r,A.T=u}}function Iy(e,t,a,l){var u=A.T;A.T=null;var r=H.p;try{H.p=8,vo(e,t,a,l)}finally{H.p=r,A.T=u}}function vo(e,t,a,l){if(Ui){var u=po(l);if(u===null)eo(e,t,l,qi,a),Jh(e,l);else if(t0(u,e,t,a,l))l.stopPropagation();else if(Jh(e,l),t&4&&-1<e0.indexOf(e)){for(;u!==null;){var r=Al(u);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=el(r.pendingLanes);if(f!==0){var y=r;for(y.pendingLanes|=2,y.entangledLanes|=2;f;){var b=1<<31-Ot(f);y.entanglements[1]|=b,f&=~b}ta(r),(Ne&6)===0&&(yi=Ce()+500,tu(0))}}break;case 31:case 13:y=ul(r,2),y!==null&&bt(y,r,2),bi(),mo(r,2)}if(r=po(l),r===null&&eo(e,t,l,qi,a),r===u)break;u=r}u!==null&&l.stopPropagation()}else eo(e,t,l,null,a)}}function po(e){return e=yr(e),yo(e)}var qi=null;function yo(e){if(qi=null,e=Nl(e),e!==null){var t=h(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=m(t),e!==null)return e;e=null}else if(a===31){if(e=v(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return qi=e,null}function Vh(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(xt()){case St:return 2;case $t:return 8;case ot:case gn:return 32;case _u:return 268435456;default:return 32}default:return 32}}var go=!1,ka=null,Za=null,Ka=null,su=new Map,ou=new Map,Va=[],e0="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 Jh(e,t){switch(e){case"focusin":case"focusout":ka=null;break;case"dragenter":case"dragleave":Za=null;break;case"mouseover":case"mouseout":Ka=null;break;case"pointerover":case"pointerout":su.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":ou.delete(t.pointerId)}}function cu(e,t,a,l,u,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:r,targetContainers:[u]},t!==null&&(t=Al(t),t!==null&&Zh(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function t0(e,t,a,l,u){switch(t){case"focusin":return ka=cu(ka,e,t,a,l,u),!0;case"dragenter":return Za=cu(Za,e,t,a,l,u),!0;case"mouseover":return Ka=cu(Ka,e,t,a,l,u),!0;case"pointerover":var r=u.pointerId;return su.set(r,cu(su.get(r)||null,e,t,a,l,u)),!0;case"gotpointercapture":return r=u.pointerId,ou.set(r,cu(ou.get(r)||null,e,t,a,l,u)),!0}return!1}function Fh(e){var t=Nl(e.target);if(t!==null){var a=h(t);if(a!==null){if(t=a.tag,t===13){if(t=m(a),t!==null){e.blockedOn=t,sc(e.priority,function(){Kh(a)});return}}else if(t===31){if(t=v(a),t!==null){e.blockedOn=t,sc(e.priority,function(){Kh(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function wi(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=po(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);pr=l,a.target.dispatchEvent(l),pr=null}else return t=Al(a),t!==null&&Zh(t),e.blockedOn=a,!1;t.shift()}return!0}function Ph(e,t,a){wi(e)&&a.delete(t)}function a0(){go=!1,ka!==null&&wi(ka)&&(ka=null),Za!==null&&wi(Za)&&(Za=null),Ka!==null&&wi(Ka)&&(Ka=null),su.forEach(Ph),ou.forEach(Ph)}function Qi(e,t){e.blockedOn===t&&(e.blockedOn=null,go||(go=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,a0)))}var Hi=null;function $h(e){Hi!==e&&(Hi=e,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Hi===e&&(Hi=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],u=e[t+2];if(typeof l!="function"){if(yo(l||a)===null)continue;break}var r=Al(a);r!==null&&(e.splice(t,3),t-=3,vs(r,{pending:!0,data:u,method:a.method,action:l},l,u))}}))}function on(e){function t(b){return Qi(b,e)}ka!==null&&Qi(ka,e),Za!==null&&Qi(Za,e),Ka!==null&&Qi(Ka,e),su.forEach(t),ou.forEach(t);for(var a=0;a<Va.length;a++){var l=Va[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<Va.length&&(a=Va[0],a.blockedOn===null);)Fh(a),a.blockedOn===null&&Va.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var u=a[l],r=a[l+1],f=u[ht]||null;if(typeof r=="function")f||$h(a);else if(f){var y=null;if(r&&r.hasAttribute("formAction")){if(u=r,f=r[ht]||null)y=f.formAction;else if(yo(u)!==null)continue}else y=f.action;typeof y=="function"?a[l+1]=y:(a.splice(l,3),l-=3),$h(a)}}}function Wh(){function e(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(f){return u=f})},focusReset:"manual",scroll:"manual"})}function t(){u!==null&&(u(),u=null),l||setTimeout(a,20)}function a(){if(!l&&!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 l=!1,u=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),u!==null&&(u(),u=null)}}}function bo(e){this._internalRoot=e}Bi.prototype.render=bo.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(o(409));var a=t.current,l=Mt();Xh(a,l,e,t,null,null)},Bi.prototype.unmount=bo.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Xh(e.current,2,null,e,null,null),bi(),t[El]=null}};function Bi(e){this._internalRoot=e}Bi.prototype.unstable_scheduleHydration=function(e){if(e){var t=rc();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Va.length&&t!==0&&t<Va[a].priority;a++);Va.splice(a,0,e),a===0&&Fh(e)}};var Ih=i.version;if(Ih!=="19.2.1")throw Error(o(527,Ih,"19.2.1"));H.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=g(t),e=e!==null?_(e):null,e=e===null?null:e.stateNode,e};var l0={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:A,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Li=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Li.isDisabled&&Li.supportsFiber)try{bn=Li.inject(l0),jt=Li}catch{}}return du.createRoot=function(e,t){if(!c(e))throw Error(o(299));var a=!1,l="",u=id,r=rd,f=sd;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(u=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(f=t.onRecoverableError)),t=Yh(e,1,!1,null,null,a,l,null,u,r,f,Wh),e[El]=t.current,Is(e),new bo(t)},du.hydrateRoot=function(e,t,a){if(!c(e))throw Error(o(299));var l=!1,u="",r=id,f=rd,y=sd,b=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(f=a.onCaughtError),a.onRecoverableError!==void 0&&(y=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),t=Yh(e,1,!0,t,a??null,l,u,b,r,f,y,Wh),t.context=Gh(null),a=t.current,l=Mt(),l=sr(l),u=Da(l),u.callback=null,Ra(a,u,l),a=l,t.current.lanes=a,Sn(t,a),ta(t),e[El]=t.current,Is(e),new Bi(t)},du.version="19.2.1",du}var om;function p0(){if(om)return jo.exports;om=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(i){console.error(i)}}return n(),jo.exports=v0(),jo.exports}var y0=p0();const g0="modulepreload",b0=function(n){return"/"+n},cm={},x0=function(i,s,o){let c=Promise.resolve();if(s&&s.length>0){let p=function(g){return Promise.all(g.map(_=>Promise.resolve(_).then(j=>({status:"fulfilled",value:j}),j=>({status:"rejected",reason:j}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),v=m?.nonce||m?.getAttribute("nonce");c=p(s.map(g=>{if(g=b0(g),g in cm)return;cm[g]=!0;const _=g.endsWith(".css"),j=_?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${j}`))return;const M=document.createElement("link");if(M.rel=_?"stylesheet":g0,_||(M.as="script"),M.crossOrigin="",M.href=g,v&&M.setAttribute("nonce",v),document.head.appendChild(M),_)return new Promise((Y,k)=>{M.addEventListener("load",Y),M.addEventListener("error",()=>k(new Error(`Unable to preload CSS for ${g}`)))})}))}function h(m){const v=new Event("vite:preloadError",{cancelable:!0});if(v.payload=m,window.dispatchEvent(v),!v.defaultPrevented)throw m}return c.then(m=>{for(const v of m||[])v.status==="rejected"&&h(v.reason);return i().catch(h)})};var Sl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},bl=typeof window>"u"||"Deno"in globalThis;function rt(){}function S0(n,i){return typeof n=="function"?n(i):n}function wo(n){return typeof n=="number"&&n>=0&&n!==1/0}function Bm(n,i){return Math.max(n+(i||0)-Date.now(),0)}function Fa(n,i){return typeof n=="function"?n(i):n}function Kt(n,i){return typeof n=="function"?n(i):n}function fm(n,i){const{type:s="all",exact:o,fetchStatus:c,predicate:h,queryKey:m,stale:v}=n;if(m){if(o){if(i.queryHash!==Ko(m,i.options))return!1}else if(!yu(i.queryKey,m))return!1}if(s!=="all"){const p=i.isActive();if(s==="active"&&!p||s==="inactive"&&p)return!1}return!(typeof v=="boolean"&&i.isStale()!==v||c&&c!==i.state.fetchStatus||h&&!h(i))}function dm(n,i){const{exact:s,status:o,predicate:c,mutationKey:h}=n;if(h){if(!i.options.mutationKey)return!1;if(s){if(Pa(i.options.mutationKey)!==Pa(h))return!1}else if(!yu(i.options.mutationKey,h))return!1}return!(o&&i.state.status!==o||c&&!c(i))}function Ko(n,i){return(i?.queryKeyHashFn||Pa)(n)}function Pa(n){return JSON.stringify(n,(i,s)=>Qo(s)?Object.keys(s).sort().reduce((o,c)=>(o[c]=s[c],o),{}):s)}function yu(n,i){return n===i?!0:typeof n!=typeof i?!1:n&&i&&typeof n=="object"&&typeof i=="object"?Object.keys(i).every(s=>yu(n[s],i[s])):!1}function Vo(n,i){if(n===i)return n;const s=hm(n)&&hm(i);if(s||Qo(n)&&Qo(i)){const o=s?n:Object.keys(n),c=o.length,h=s?i:Object.keys(i),m=h.length,v=s?[]:{},p=new Set(o);let g=0;for(let _=0;_<m;_++){const j=s?_:h[_];(!s&&p.has(j)||s)&&n[j]===void 0&&i[j]===void 0?(v[j]=void 0,g++):(v[j]=Vo(n[j],i[j]),v[j]===n[j]&&n[j]!==void 0&&g++)}return c===m&&g===c?n:v}return i}function Ji(n,i){if(!i||Object.keys(n).length!==Object.keys(i).length)return!1;for(const s in n)if(n[s]!==i[s])return!1;return!0}function hm(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function Qo(n){if(!mm(n))return!1;const i=n.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!mm(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function mm(n){return Object.prototype.toString.call(n)==="[object Object]"}function j0(n){return new Promise(i=>{setTimeout(i,n)})}function Ho(n,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,i):s.structuralSharing!==!1?Vo(n,i):i}function O0(n,i,s=0){const o=[...n,i];return s&&o.length>s?o.slice(1):o}function _0(n,i,s=0){const o=[i,...n];return s&&o.length>s?o.slice(0,-1):o}var zt=Symbol();function Lm(n,i){return!n.queryFn&&i?.initialPromise?()=>i.initialPromise:!n.queryFn||n.queryFn===zt?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Ym(n,i){return typeof n=="function"?n(...i):!!n}var E0=class extends Sl{#t;#e;#a;constructor(){super(),this.#a=n=>{if(!bl&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#e||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#a=n,this.#e?.(),this.#e=n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(n){this.#t!==n&&(this.#t=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},Jo=new E0,N0=class extends Sl{#t=!0;#e;#a;constructor(){super(),this.#a=n=>{if(!bl&&window.addEventListener){const i=()=>n(!0),s=()=>n(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(n){this.#a=n,this.#e?.(),this.#e=n(this.setOnline.bind(this))}setOnline(n){this.#t!==n&&(this.#t=n,this.listeners.forEach(s=>{s(n)}))}isOnline(){return this.#t}},Fi=new N0;function Bo(){let n,i;const s=new Promise((c,h)=>{n=c,i=h});s.status="pending",s.catch(()=>{});function o(c){Object.assign(s,c),delete s.resolve,delete s.reject}return s.resolve=c=>{o({status:"fulfilled",value:c}),n(c)},s.reject=c=>{o({status:"rejected",reason:c}),i(c)},s}function A0(n){return Math.min(1e3*2**n,3e4)}function Gm(n){return(n??"online")==="online"?Fi.isOnline():!0}var Xm=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function No(n){return n instanceof Xm}function km(n){let i=!1,s=0,o=!1,c;const h=Bo(),m=U=>{o||(M(new Xm(U)),n.abort?.())},v=()=>{i=!0},p=()=>{i=!1},g=()=>Jo.isFocused()&&(n.networkMode==="always"||Fi.isOnline())&&n.canRun(),_=()=>Gm(n.networkMode)&&n.canRun(),j=U=>{o||(o=!0,n.onSuccess?.(U),c?.(),h.resolve(U))},M=U=>{o||(o=!0,n.onError?.(U),c?.(),h.reject(U))},Y=()=>new Promise(U=>{c=P=>{(o||g())&&U(P)},n.onPause?.()}).then(()=>{c=void 0,o||n.onContinue?.()}),k=()=>{if(o)return;let U;const P=s===0?n.initialPromise:void 0;try{U=P??n.fn()}catch(re){U=Promise.reject(re)}Promise.resolve(U).then(j).catch(re=>{if(o)return;const ve=n.retry??(bl?0:3),Ae=n.retryDelay??A0,qe=typeof Ae=="function"?Ae(s,re):Ae,$=ve===!0||typeof ve=="number"&&s<ve||typeof ve=="function"&&ve(s,re);if(i||!$){M(re);return}s++,n.onFail?.(s,re),j0(qe).then(()=>g()?void 0:Y()).then(()=>{i?M(re):k()})})};return{promise:h,cancel:m,continue:()=>(c?.(),h),cancelRetry:v,continueRetry:p,canStart:_,start:()=>(_()?k():Y().then(k),h)}}var C0=n=>setTimeout(n,0);function T0(){let n=[],i=0,s=v=>{v()},o=v=>{v()},c=C0;const h=v=>{i?n.push(v):c(()=>{s(v)})},m=()=>{const v=n;n=[],v.length&&c(()=>{o(()=>{v.forEach(p=>{s(p)})})})};return{batch:v=>{let p;i++;try{p=v()}finally{i--,i||m()}return p},batchCalls:v=>(...p)=>{h(()=>{v(...p)})},schedule:h,setNotifyFunction:v=>{s=v},setBatchNotifyFunction:v=>{o=v},setScheduler:v=>{c=v}}}var Xe=T0(),Zm=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),wo(this.gcTime)&&(this.#t=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(bl?1/0:300*1e3))}clearGcTimeout(){this.#t&&(clearTimeout(this.#t),this.#t=void 0)}},M0=class extends Zm{#t;#e;#a;#l;#n;#u;#r;constructor(n){super(),this.#r=!1,this.#u=n.defaultOptions,this.setOptions(n.options),this.observers=[],this.#l=n.client,this.#a=this.#l.getQueryCache(),this.queryKey=n.queryKey,this.queryHash=n.queryHash,this.#t=z0(this.options),this.state=n.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#n?.promise}setOptions(n){this.options={...this.#u,...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#a.remove(this)}setData(n,i){const s=Ho(this.state.data,n,this.options);return this.#i({data:s,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),s}setState(n,i){this.#i({type:"setState",state:n,setStateOptions:i})}cancel(n){const i=this.#n?.promise;return this.#n?.cancel(n),i?i.then(rt).catch(rt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(n=>Kt(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===zt||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Fa(n.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(n=0){return this.state.data===void 0?!0:n==="static"?!1:this.state.isInvalidated?!0:!Bm(this.state.dataUpdatedAt,n)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#n?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#n?.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),this.#a.notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(i=>i!==n),this.observers.length||(this.#n&&(this.#r?this.#n.cancel({revert:!0}):this.#n.cancelRetry()),this.scheduleGc()),this.#a.notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(n,i){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#n)return this.#n.continueRetry(),this.#n.promise}if(n&&this.setOptions(n),!this.options.queryFn){const p=this.observers.find(g=>g.options.queryFn);p&&this.setOptions(p.options)}const s=new AbortController,o=p=>{Object.defineProperty(p,"signal",{enumerable:!0,get:()=>(this.#r=!0,s.signal)})},c=()=>{const p=Lm(this.options,i),_=(()=>{const j={client:this.#l,queryKey:this.queryKey,meta:this.meta};return o(j),j})();return this.#r=!1,this.options.persister?this.options.persister(p,_,this):p(_)},m=(()=>{const p={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:c};return o(p),p})();this.options.behavior?.onFetch(m,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==m.fetchOptions?.meta)&&this.#i({type:"fetch",meta:m.fetchOptions?.meta});const v=p=>{No(p)&&p.silent||this.#i({type:"error",error:p}),No(p)||(this.#a.config.onError?.(p,this),this.#a.config.onSettled?.(this.state.data,p,this)),this.scheduleGc()};return this.#n=km({initialPromise:i?.initialPromise,fn:m.fetchFn,abort:s.abort.bind(s),onSuccess:p=>{if(p===void 0){v(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(p)}catch(g){v(g);return}this.#a.config.onSuccess?.(p,this),this.#a.config.onSettled?.(p,this.state.error,this),this.scheduleGc()},onError:v,onFail:(p,g)=>{this.#i({type:"failed",failureCount:p,error:g})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:m.options.retry,retryDelay:m.options.retryDelay,networkMode:m.options.networkMode,canRun:()=>!0}),this.#n.start()}#i(n){const i=s=>{switch(n.type){case"failed":return{...s,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Km(s.data,this.options),fetchMeta:n.meta??null};case"success":return this.#e=void 0,{...s,data:n.data,dataUpdateCount:s.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=n.error;return No(o)&&o.revert&&this.#e?{...this.#e,fetchStatus:"idle"}:{...s,error:o,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=i(this.state),Xe.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:n})})}};function Km(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Gm(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function z0(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,s=i!==void 0,o=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var D0=class extends Sl{constructor(n={}){super(),this.config=n,this.#t=new Map}#t;build(n,i,s){const o=i.queryKey,c=i.queryHash??Ko(o,i);let h=this.get(c);return h||(h=new M0({client:n,queryKey:o,queryHash:c,options:n.defaultQueryOptions(i),state:s,defaultOptions:n.getQueryDefaults(o)}),this.add(h)),h}add(n){this.#t.has(n.queryHash)||(this.#t.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=this.#t.get(n.queryHash);i&&(n.destroy(),i===n&&this.#t.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Xe.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#t.get(n)}getAll(){return[...this.#t.values()]}find(n){const i={exact:!0,...n};return this.getAll().find(s=>fm(i,s))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(s=>fm(n,s)):i}notify(n){Xe.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){Xe.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Xe.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},R0=class extends Zm{#t;#e;#a;constructor(n){super(),this.mutationId=n.mutationId,this.#e=n.mutationCache,this.#t=[],this.state=n.state||Vm(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){this.#t.includes(n)||(this.#t.push(n),this.clearGcTimeout(),this.#e.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#t=this.#t.filter(i=>i!==n),this.scheduleGc(),this.#e.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#e.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(n){const i=()=>{this.#l({type:"continue"})};this.#a=km({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(c,h)=>{this.#l({type:"failed",failureCount:c,error:h})},onPause:()=>{this.#l({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#e.canRun(this)});const s=this.state.status==="pending",o=!this.#a.canStart();try{if(s)i();else{this.#l({type:"pending",variables:n,isPaused:o}),await this.#e.config.onMutate?.(n,this);const h=await this.options.onMutate?.(n);h!==this.state.context&&this.#l({type:"pending",context:h,variables:n,isPaused:o})}const c=await this.#a.start();return await this.#e.config.onSuccess?.(c,n,this.state.context,this),await this.options.onSuccess?.(c,n,this.state.context),await this.#e.config.onSettled?.(c,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(c,null,n,this.state.context),this.#l({type:"success",data:c}),c}catch(c){try{throw await this.#e.config.onError?.(c,n,this.state.context,this),await this.options.onError?.(c,n,this.state.context),await this.#e.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,c,n,this.state.context),c}finally{this.#l({type:"error",error:c})}}finally{this.#e.runNext(this)}}#l(n){const i=s=>{switch(n.type){case"failed":return{...s,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...s,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:n.error,failureCount:s.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Xe.batch(()=>{this.#t.forEach(s=>{s.onMutationUpdate(n)}),this.#e.notify({mutation:this,type:"updated",action:n})})}};function Vm(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var U0=class extends Sl{constructor(n={}){super(),this.config=n,this.#t=new Set,this.#e=new Map,this.#a=0}#t;#e;#a;build(n,i,s){const o=new R0({mutationCache:this,mutationId:++this.#a,options:n.defaultMutationOptions(i),state:s});return this.add(o),o}add(n){this.#t.add(n);const i=Yi(n);if(typeof i=="string"){const s=this.#e.get(i);s?s.push(n):this.#e.set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#t.delete(n)){const i=Yi(n);if(typeof i=="string"){const s=this.#e.get(i);if(s)if(s.length>1){const o=s.indexOf(n);o!==-1&&s.splice(o,1)}else s[0]===n&&this.#e.delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=Yi(n);if(typeof i=="string"){const o=this.#e.get(i)?.find(c=>c.state.status==="pending");return!o||o===n}else return!0}runNext(n){const i=Yi(n);return typeof i=="string"?this.#e.get(i)?.find(o=>o!==n&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Xe.batch(()=>{this.#t.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(n){const i={exact:!0,...n};return this.getAll().find(s=>dm(i,s))}findAll(n={}){return this.getAll().filter(i=>dm(n,i))}notify(n){Xe.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return Xe.batch(()=>Promise.all(n.map(i=>i.continue().catch(rt))))}};function Yi(n){return n.options.scope?.id}function Pi(n){return{onFetch:(i,s)=>{const o=i.options,c=i.fetchOptions?.meta?.fetchMore?.direction,h=i.state.data?.pages||[],m=i.state.data?.pageParams||[];let v={pages:[],pageParams:[]},p=0;const g=async()=>{let _=!1;const j=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(i.signal.aborted?_=!0:i.signal.addEventListener("abort",()=>{_=!0}),i.signal)})},M=Lm(i.options,i.fetchOptions),Y=async(k,U,P)=>{if(_)return Promise.reject();if(U==null&&k.pages.length)return Promise.resolve(k);const ve=(()=>{const K={client:i.client,queryKey:i.queryKey,pageParam:U,direction:P?"backward":"forward",meta:i.options.meta};return j(K),K})(),Ae=await M(ve),{maxPages:qe}=i.options,$=P?_0:O0;return{pages:$(k.pages,Ae,qe),pageParams:$(k.pageParams,U,qe)}};if(c&&h.length){const k=c==="backward",U=k?Jm:Lo,P={pages:h,pageParams:m},re=U(o,P);v=await Y(P,re,k)}else{const k=n??h.length;do{const U=p===0?m[0]??o.initialPageParam:Lo(o,v);if(p>0&&U==null)break;v=await Y(v,U),p++}while(p<k)}return v};i.options.persister?i.fetchFn=()=>i.options.persister?.(g,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s):i.fetchFn=g}}}function Lo(n,{pages:i,pageParams:s}){const o=i.length-1;return i.length>0?n.getNextPageParam(i[o],i,s[o],s):void 0}function Jm(n,{pages:i,pageParams:s}){return i.length>0?n.getPreviousPageParam?.(i[0],i,s[0],s):void 0}function q0(n,i){return i?Lo(n,i)!=null:!1}function w0(n,i){return!i||!n.getPreviousPageParam?!1:Jm(n,i)!=null}var Q0=class{#t;#e;#a;#l;#n;#u;#r;#i;constructor(n={}){this.#t=n.queryCache||new D0,this.#e=n.mutationCache||new U0,this.#a=n.defaultOptions||{},this.#l=new Map,this.#n=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#r=Jo.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=Fi.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#u--,this.#u===0&&(this.#r?.(),this.#r=void 0,this.#i?.(),this.#i=void 0)}isFetching(n){return this.#t.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#e.findAll({...n,status:"pending"}).length}getQueryData(n){const i=this.defaultQueryOptions({queryKey:n});return this.#t.get(i.queryHash)?.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),s=this.#t.build(this,i),o=s.state.data;return o===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime(Fa(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(o))}getQueriesData(n){return this.#t.findAll(n).map(({queryKey:i,state:s})=>{const o=s.data;return[i,o]})}setQueryData(n,i,s){const o=this.defaultQueryOptions({queryKey:n}),h=this.#t.get(o.queryHash)?.state.data,m=S0(i,h);if(m!==void 0)return this.#t.build(this,o).setData(m,{...s,manual:!0})}setQueriesData(n,i,s){return Xe.batch(()=>this.#t.findAll(n).map(({queryKey:o})=>[o,this.setQueryData(o,i,s)]))}getQueryState(n){const i=this.defaultQueryOptions({queryKey:n});return this.#t.get(i.queryHash)?.state}removeQueries(n){const i=this.#t;Xe.batch(()=>{i.findAll(n).forEach(s=>{i.remove(s)})})}resetQueries(n,i){const s=this.#t;return Xe.batch(()=>(s.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const s={revert:!0,...i},o=Xe.batch(()=>this.#t.findAll(n).map(c=>c.cancel(s)));return Promise.all(o).then(rt).catch(rt)}invalidateQueries(n,i={}){return Xe.batch(()=>(this.#t.findAll(n).forEach(s=>{s.invalidate()}),n?.refetchType==="none"?Promise.resolve():this.refetchQueries({...n,type:n?.refetchType??n?.type??"active"},i)))}refetchQueries(n,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},o=Xe.batch(()=>this.#t.findAll(n).filter(c=>!c.isDisabled()&&!c.isStatic()).map(c=>{let h=c.fetch(void 0,s);return s.throwOnError||(h=h.catch(rt)),c.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(o).then(rt)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const s=this.#t.build(this,i);return s.isStaleByTime(Fa(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(rt).catch(rt)}fetchInfiniteQuery(n){return n.behavior=Pi(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(rt).catch(rt)}ensureInfiniteQueryData(n){return n.behavior=Pi(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Fi.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#a}setDefaultOptions(n){this.#a=n}setQueryDefaults(n,i){this.#l.set(Pa(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...this.#l.values()],s={};return i.forEach(o=>{yu(n,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(n,i){this.#n.set(Pa(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...this.#n.values()],s={};return i.forEach(o=>{yu(n,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(n){if(n._defaulted)return n;const i={...this.#a.queries,...this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return i.queryHash||(i.queryHash=Ko(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===zt&&(i.enabled=!1),i}defaultMutationOptions(n){return n?._defaulted?n:{...this.#a.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},gu=class extends Sl{constructor(n,i){super(),this.options=i,this.#t=n,this.#i=null,this.#r=Bo(),this.options.experimental_prefetchInRender||this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(i)}#t;#e=void 0;#a=void 0;#l=void 0;#n;#u;#r;#i;#h;#f;#d;#o;#c;#s;#v=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),vm(this.#e,this.options)?this.#m():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Yo(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Yo(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#e.removeObserver(this)}setOptions(n){const i=this.options,s=this.#e;if(this.options=this.#t.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Kt(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#j(),this.#e.setOptions(this.options),i._defaulted&&!Ji(this.options,i)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&pm(this.#e,s,this.options,i)&&this.#m(),this.updateResult(),o&&(this.#e!==s||Kt(this.options.enabled,this.#e)!==Kt(i.enabled,this.#e)||Fa(this.options.staleTime,this.#e)!==Fa(i.staleTime,this.#e))&&this.#p();const c=this.#y();o&&(this.#e!==s||Kt(this.options.enabled,this.#e)!==Kt(i.enabled,this.#e)||c!==this.#s)&&this.#g(c)}getOptimisticResult(n){const i=this.#t.getQueryCache().build(this.#t,n),s=this.createResult(i,n);return B0(this,s)&&(this.#l=s,this.#u=this.options,this.#n=this.#e.state),s}getCurrentResult(){return this.#l}trackResult(n,i){return new Proxy(n,{get:(s,o)=>(this.trackProp(o),i?.(o),Reflect.get(s,o))})}trackProp(n){this.#v.add(n)}getCurrentQuery(){return this.#e}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const i=this.#t.defaultQueryOptions(n),s=this.#t.getQueryCache().build(this.#t,i);return s.fetch().then(()=>this.createResult(s,i))}fetch(n){return this.#m({...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#m(n){this.#j();let i=this.#e.fetch(this.options,n);return n?.throwOnError||(i=i.catch(rt)),i}#p(){this.#x();const n=Fa(this.options.staleTime,this.#e);if(bl||this.#l.isStale||!wo(n))return;const s=Bm(this.#l.dataUpdatedAt,n)+1;this.#o=setTimeout(()=>{this.#l.isStale||this.updateResult()},s)}#y(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(n){this.#S(),this.#s=n,!(bl||Kt(this.options.enabled,this.#e)===!1||!wo(this.#s)||this.#s===0)&&(this.#c=setInterval(()=>{(this.options.refetchIntervalInBackground||Jo.isFocused())&&this.#m()},this.#s))}#b(){this.#p(),this.#g(this.#y())}#x(){this.#o&&(clearTimeout(this.#o),this.#o=void 0)}#S(){this.#c&&(clearInterval(this.#c),this.#c=void 0)}createResult(n,i){const s=this.#e,o=this.options,c=this.#l,h=this.#n,m=this.#u,p=n!==s?n.state:this.#a,{state:g}=n;let _={...g},j=!1,M;if(i._optimisticResults){const Z=this.hasListeners(),I=!Z&&vm(n,i),W=Z&&pm(n,s,i,o);(I||W)&&(_={..._,...Km(g.data,n.options)}),i._optimisticResults==="isRestoring"&&(_.fetchStatus="idle")}let{error:Y,errorUpdatedAt:k,status:U}=_;M=_.data;let P=!1;if(i.placeholderData!==void 0&&M===void 0&&U==="pending"){let Z;c?.isPlaceholderData&&i.placeholderData===m?.placeholderData?(Z=c.data,P=!0):Z=typeof i.placeholderData=="function"?i.placeholderData(this.#d?.state.data,this.#d):i.placeholderData,Z!==void 0&&(U="success",M=Ho(c?.data,Z,i),j=!0)}if(i.select&&M!==void 0&&!P)if(c&&M===h?.data&&i.select===this.#h)M=this.#f;else try{this.#h=i.select,M=i.select(M),M=Ho(c?.data,M,i),this.#f=M,this.#i=null}catch(Z){this.#i=Z}this.#i&&(Y=this.#i,M=this.#f,k=Date.now(),U="error");const re=_.fetchStatus==="fetching",ve=U==="pending",Ae=U==="error",qe=ve&&re,$=M!==void 0,z={status:U,fetchStatus:_.fetchStatus,isPending:ve,isSuccess:U==="success",isError:Ae,isInitialLoading:qe,isLoading:qe,data:M,dataUpdatedAt:_.dataUpdatedAt,error:Y,errorUpdatedAt:k,failureCount:_.fetchFailureCount,failureReason:_.fetchFailureReason,errorUpdateCount:_.errorUpdateCount,isFetched:_.dataUpdateCount>0||_.errorUpdateCount>0,isFetchedAfterMount:_.dataUpdateCount>p.dataUpdateCount||_.errorUpdateCount>p.errorUpdateCount,isFetching:re,isRefetching:re&&!ve,isLoadingError:Ae&&!$,isPaused:_.fetchStatus==="paused",isPlaceholderData:j,isRefetchError:Ae&&$,isStale:Fo(n,i),refetch:this.refetch,promise:this.#r};if(this.options.experimental_prefetchInRender){const Z=ae=>{z.status==="error"?ae.reject(z.error):z.data!==void 0&&ae.resolve(z.data)},I=()=>{const ae=this.#r=z.promise=Bo();Z(ae)},W=this.#r;switch(W.status){case"pending":n.queryHash===s.queryHash&&Z(W);break;case"fulfilled":(z.status==="error"||z.data!==W.value)&&I();break;case"rejected":(z.status!=="error"||z.error!==W.reason)&&I();break}}return z}updateResult(){const n=this.#l,i=this.createResult(this.#e,this.options);if(this.#n=this.#e.state,this.#u=this.options,this.#n.data!==void 0&&(this.#d=this.#e),Ji(i,n))return;this.#l=i;const s=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,c=typeof o=="function"?o():o;if(c==="all"||!c&&!this.#v.size)return!0;const h=new Set(c??this.#v);return this.options.throwOnError&&h.add("error"),Object.keys(this.#l).some(m=>{const v=m;return this.#l[v]!==n[v]&&h.has(v)})};this.#O({listeners:s()})}#j(){const n=this.#t.getQueryCache().build(this.#t,this.options);if(n===this.#e)return;const i=this.#e;this.#e=n,this.#a=n.state,this.hasListeners()&&(i?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#O(n){Xe.batch(()=>{n.listeners&&this.listeners.forEach(i=>{i(this.#l)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function H0(n,i){return Kt(i.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&i.retryOnMount===!1)}function vm(n,i){return H0(n,i)||n.state.data!==void 0&&Yo(n,i,i.refetchOnMount)}function Yo(n,i,s){if(Kt(i.enabled,n)!==!1&&Fa(i.staleTime,n)!=="static"){const o=typeof s=="function"?s(n):s;return o==="always"||o!==!1&&Fo(n,i)}return!1}function pm(n,i,s,o){return(n!==i||Kt(o.enabled,n)===!1)&&(!s.suspense||n.state.status!=="error")&&Fo(n,s)}function Fo(n,i){return Kt(i.enabled,n)!==!1&&n.isStaleByTime(Fa(i.staleTime,n))}function B0(n,i){return!Ji(n.getCurrentResult(),i)}function ym(n,i){const s=new Set(i);return n.filter(o=>!s.has(o))}function L0(n,i,s){const o=n.slice(0);return o[i]=s,o}var Y0=class extends Sl{#t;#e;#a;#l;#n;#u;#r;#i;#h=[];constructor(n,i,s){super(),this.#t=n,this.#l=s,this.#a=[],this.#n=[],this.#e=[],this.setQueries(i)}onSubscribe(){this.listeners.size===1&&this.#n.forEach(n=>{n.subscribe(i=>{this.#c(n,i)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#n.forEach(n=>{n.destroy()})}setQueries(n,i){this.#a=n,this.#l=i,Xe.batch(()=>{const s=this.#n,o=this.#o(this.#a);this.#h=o,o.forEach(v=>v.observer.setOptions(v.defaultedQueryOptions));const c=o.map(v=>v.observer),h=c.map(v=>v.getCurrentResult()),m=c.some((v,p)=>v!==s[p]);s.length===c.length&&!m||(this.#n=c,this.#e=h,this.hasListeners()&&(ym(s,c).forEach(v=>{v.destroy()}),ym(c,s).forEach(v=>{v.subscribe(p=>{this.#c(v,p)})}),this.#s()))})}getCurrentResult(){return this.#e}getQueries(){return this.#n.map(n=>n.getCurrentQuery())}getObservers(){return this.#n}getOptimisticResult(n,i){const s=this.#o(n),o=s.map(c=>c.observer.getOptimisticResult(c.defaultedQueryOptions));return[o,c=>this.#d(c??o,i),()=>this.#f(o,s)]}#f(n,i){return i.map((s,o)=>{const c=n[o];return s.defaultedQueryOptions.notifyOnChangeProps?c:s.observer.trackResult(c,h=>{i.forEach(m=>{m.observer.trackProp(h)})})})}#d(n,i){return i?((!this.#u||this.#e!==this.#i||i!==this.#r)&&(this.#r=i,this.#i=this.#e,this.#u=Vo(this.#u,i(n))),this.#u):n}#o(n){const i=new Map(this.#n.map(o=>[o.options.queryHash,o])),s=[];return n.forEach(o=>{const c=this.#t.defaultQueryOptions(o),h=i.get(c.queryHash);h?s.push({defaultedQueryOptions:c,observer:h}):s.push({defaultedQueryOptions:c,observer:new gu(this.#t,c)})}),s}#c(n,i){const s=this.#n.indexOf(n);s!==-1&&(this.#e=L0(this.#e,s,i),this.#s())}#s(){if(this.hasListeners()){const n=this.#u,i=this.#f(this.#e,this.#h),s=this.#d(i,this.#l?.combine);n!==s&&Xe.batch(()=>{this.listeners.forEach(o=>{o(this.#e)})})}}},Fm=class extends gu{constructor(n,i){super(n,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(n){super.setOptions({...n,behavior:Pi()})}getOptimisticResult(n){return n.behavior=Pi(),super.getOptimisticResult(n)}fetchNextPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(n){return this.fetch({...n,meta:{fetchMore:{direction:"backward"}}})}createResult(n,i){const{state:s}=n,o=super.createResult(n,i),{isFetching:c,isRefetching:h,isError:m,isRefetchError:v}=o,p=s.fetchMeta?.fetchMore?.direction,g=m&&p==="forward",_=c&&p==="forward",j=m&&p==="backward",M=c&&p==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:q0(i,s.data),hasPreviousPage:w0(i,s.data),isFetchNextPageError:g,isFetchingNextPage:_,isFetchPreviousPageError:j,isFetchingPreviousPage:M,isRefetchError:v&&!g&&!j,isRefetching:h&&!_&&!M}}},G0=class extends Sl{#t;#e=void 0;#a;#l;constructor(i,s){super(),this.#t=i,this.setOptions(s),this.bindMethods(),this.#n()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const s=this.options;this.options=this.#t.defaultMutationOptions(i),Ji(this.options,s)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),s?.mutationKey&&this.options.mutationKey&&Pa(s.mutationKey)!==Pa(this.options.mutationKey)?this.reset():this.#a?.state.status==="pending"&&this.#a.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#a?.removeObserver(this)}onMutationUpdate(i){this.#n(),this.#u(i)}getCurrentResult(){return this.#e}reset(){this.#a?.removeObserver(this),this.#a=void 0,this.#n(),this.#u()}mutate(i,s){return this.#l=s,this.#a?.removeObserver(this),this.#a=this.#t.getMutationCache().build(this.#t,this.options),this.#a.addObserver(this),this.#a.execute(i)}#n(){const i=this.#a?.state??Vm();this.#e={...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){Xe.batch(()=>{if(this.#l&&this.hasListeners()){const s=this.#e.variables,o=this.#e.context;i?.type==="success"?(this.#l.onSuccess?.(i.data,s,o),this.#l.onSettled?.(i.data,null,s,o)):i?.type==="error"&&(this.#l.onError?.(i.error,s,o),this.#l.onSettled?.(void 0,i.error,s,o))}this.listeners.forEach(s=>{s(this.#e)})})}},Pm=q.createContext(void 0),bu=n=>{const i=q.useContext(Pm);if(n)return n;if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},X0=({client:n,children:i})=>(q.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),d.jsx(Pm.Provider,{value:n,children:i})),$m=q.createContext(!1),Wm=()=>q.useContext($m);$m.Provider;function k0(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var Z0=q.createContext(k0()),Im=()=>q.useContext(Z0),ev=(n,i)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(i.isReset()||(n.retryOnMount=!1))},tv=n=>{q.useEffect(()=>{n.clearReset()},[n])},av=({result:n,errorResetBoundary:i,throwOnError:s,query:o,suspense:c})=>n.isError&&!i.isReset()&&!n.isFetching&&o&&(c&&n.data===void 0||Ym(s,[n.error,o])),Po=(n,i)=>i.state.data===void 0,lv=n=>{if(n.suspense){const i=o=>o==="static"?o:Math.max(o??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...o)=>i(s(...o)):i(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},nv=(n,i)=>n.isLoading&&n.isFetching&&!i,Go=(n,i)=>n?.suspense&&i.isPending,$i=(n,i,s)=>i.fetchOptimistic(n).catch(()=>{s.clearReset()});function uv({queries:n,...i},s){const o=bu(s),c=Wm(),h=Im(),m=q.useMemo(()=>n.map(U=>{const P=o.defaultQueryOptions(U);return P._optimisticResults=c?"isRestoring":"optimistic",P}),[n,o,c]);m.forEach(U=>{lv(U),ev(U,h)}),tv(h);const[v]=q.useState(()=>new Y0(o,m,i)),[p,g,_]=v.getOptimisticResult(m,i.combine),j=!c&&i.subscribed!==!1;q.useSyncExternalStore(q.useCallback(U=>j?v.subscribe(Xe.batchCalls(U)):rt,[v,j]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),q.useEffect(()=>{v.setQueries(m,i)},[m,i,v]);const Y=p.some((U,P)=>Go(m[P],U))?p.flatMap((U,P)=>{const re=m[P];if(re){const ve=new gu(o,re);if(Go(re,U))return $i(re,ve,h);nv(U,c)&&$i(re,ve,h)}return[]}):[];if(Y.length>0)throw Promise.all(Y);const k=p.find((U,P)=>{const re=m[P];return re&&av({result:U,errorResetBoundary:h,throwOnError:re.throwOnError,query:o.getQueryCache().get(re.queryHash),suspense:re.suspense})});if(k?.error)throw k.error;return g(_())}function er(n,i,s){const o=Wm(),c=Im(),h=bu(s),m=h.defaultQueryOptions(n);h.getDefaultOptions().queries?._experimental_beforeQuery?.(m),m._optimisticResults=o?"isRestoring":"optimistic",lv(m),ev(m,c),tv(c);const v=!h.getQueryCache().get(m.queryHash),[p]=q.useState(()=>new i(h,m)),g=p.getOptimisticResult(m),_=!o&&n.subscribed!==!1;if(q.useSyncExternalStore(q.useCallback(j=>{const M=_?p.subscribe(Xe.batchCalls(j)):rt;return p.updateResult(),M},[p,_]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),q.useEffect(()=>{p.setOptions(m)},[m,p]),Go(m,g))throw $i(m,p,c);if(av({result:g,errorResetBoundary:c,throwOnError:m.throwOnError,query:h.getQueryCache().get(m.queryHash),suspense:m.suspense}))throw g.error;return h.getDefaultOptions().queries?._experimental_afterQuery?.(m,g),m.experimental_prefetchInRender&&!bl&&nv(g,o)&&(v?$i(m,p,c):h.getQueryCache().get(m.queryHash)?.promise)?.catch(rt).finally(()=>{p.updateResult()}),m.notifyOnChangeProps?g:p.trackResult(g)}function K0(n,i){return er(n,gu,i)}function V0(n,i){return er({...n,enabled:!0,suspense:!0,throwOnError:Po,placeholderData:void 0},gu,i)}function J0(n,i){return er({...n,enabled:!0,suspense:!0,throwOnError:Po},Fm,i)}function F0(n,i){return uv({...n,queries:n.queries.map(s=>({...s,suspense:!0,throwOnError:Po,enabled:!0,placeholderData:void 0}))},i)}function P0(n,i){const s=bu(i);s.getQueryState(n.queryKey)||s.prefetchQuery(n)}function $0(n,i){const s=bu(i);s.getQueryState(n.queryKey)||s.prefetchInfiniteQuery(n)}function W0(n,i){const s=bu(i),[o]=q.useState(()=>new G0(s,n));q.useEffect(()=>{o.setOptions(n)},[o,n]);const c=q.useSyncExternalStore(q.useCallback(m=>o.subscribe(Xe.batchCalls(m)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),h=q.useCallback((m,v)=>{o.mutate(m,v).catch(rt)},[o]);if(c.error&&Ym(o.options.throwOnError,[c.error]))throw c.error;return{...c,mutate:h,mutateAsync:c.mutate}}function I0(n,i){return er(n,Fm,i)}function eg(n,i){if(n instanceof RegExp)return{keys:!1,pattern:n};var s,o,c,h,m=[],v="",p=n.split("/");for(p[0]||p.shift();c=p.shift();)s=c[0],s==="*"?(m.push(s),v+=c[1]==="?"?"(?:/(.*))?":"/(.*)"):s===":"?(o=c.indexOf("?",1),h=c.indexOf(".",1),m.push(c.substring(1,~o?o:~h?h:c.length)),v+=~o&&!~h?"(?:/([^/]+?))?":"/([^/]+?)",~h&&(v+=(~o?"?":"")+"\\"+c.substring(h))):v+="/"+c;return{keys:m,pattern:new RegExp("^"+v+(i?"(?=$|/)":"/?$"),"i")}}var Ao={exports:{}},Co={};/**
 * @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 gm;function tg(){if(gm)return Co;gm=1;var n=Ii();function i(j,M){return j===M&&(j!==0||1/j===1/M)||j!==j&&M!==M}var s=typeof Object.is=="function"?Object.is:i,o=n.useState,c=n.useEffect,h=n.useLayoutEffect,m=n.useDebugValue;function v(j,M){var Y=M(),k=o({inst:{value:Y,getSnapshot:M}}),U=k[0].inst,P=k[1];return h(function(){U.value=Y,U.getSnapshot=M,p(U)&&P({inst:U})},[j,Y,M]),c(function(){return p(U)&&P({inst:U}),j(function(){p(U)&&P({inst:U})})},[j]),m(Y),Y}function p(j){var M=j.getSnapshot;j=j.value;try{var Y=M();return!s(j,Y)}catch{return!0}}function g(j,M){return M()}var _=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:v;return Co.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:_,Co}var bm;function ag(){return bm||(bm=1,Ao.exports=tg()),Ao.exports}var lg=ag();const ng=Hm.useInsertionEffect,ug=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ig=ug?q.useLayoutEffect:q.useEffect,rg=ng||ig,iv=n=>{const i=q.useRef([n,(...s)=>i[0](...s)]).current;return rg(()=>{i[0]=n}),i[1]},sg="popstate",$o="pushState",Wo="replaceState",og="hashchange",xm=[sg,$o,Wo,og],cg=n=>{for(const i of xm)addEventListener(i,n);return()=>{for(const i of xm)removeEventListener(i,n)}},rv=(n,i)=>lg.useSyncExternalStore(cg,n,i),fg=()=>location.search,dg=({ssrSearch:n=""}={})=>rv(fg,()=>n),Sm=()=>location.pathname,hg=({ssrPath:n}={})=>rv(Sm,n?()=>n:Sm),mg=(n,{replace:i=!1,state:s=null}={})=>history[i?Wo:$o](s,"",n),vg=(n={})=>[hg(n),mg],jm=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[jm]>"u"){for(const n of[$o,Wo]){const i=history[n];history[n]=function(){const s=i.apply(this,arguments),o=new Event(n);return o.arguments=arguments,dispatchEvent(o),s}}Object.defineProperty(window,jm,{value:!0})}const pg=(n,i)=>i.toLowerCase().indexOf(n.toLowerCase())?"~"+i:i.slice(n.length)||"/",sv=(n="")=>n==="/"?"":n,yg=(n,i)=>n[0]==="~"?n.slice(1):sv(i)+n,gg=(n="",i)=>pg(Xo(sv(n)),Xo(i)),bg=n=>n[0]==="?"?n.slice(1):n,Xo=n=>{try{return decodeURI(n)}catch{return n}},xg=n=>Xo(bg(n)),ov={hook:vg,searchHook:dg,parser:eg,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:n=>n},cv=q.createContext(ov),fn=()=>q.useContext(cv),fv={},dv=q.createContext(fv),tr=()=>q.useContext(dv),ar=n=>{const[i,s]=n.hook(n);return[gg(n.base,i),iv((o,c)=>s(yg(o,n.base),c))]},hv=()=>ar(fn()),mv=()=>{const n=fn();return xg(n.searchHook(n))},vv=(n,i,s,o)=>{const{pattern:c,keys:h}=i instanceof RegExp?{keys:!1,pattern:i}:n(i||"*",o),m=c.exec(s)||[],[v,...p]=m;return v!==void 0?[!0,(()=>{const g=h!==!1?Object.fromEntries(h.map((j,M)=>[j,p[M]])):m.groups;let _={...p};return g&&Object.assign(_,g),_})(),...o?[v]:[]]:[!1,null]},Sg=({children:n,...i})=>{const s=fn(),o=i.hook?ov:s;let c=o;const[h,m]=i.ssrPath?.split("?")??[];m&&(i.ssrSearch=m,i.ssrPath=h),i.hrefs=i.hrefs??i.hook?.hrefs;let v=q.useRef({}),p=v.current,g=p;for(let _ in o){const j=_==="base"?o[_]+(i[_]||""):i[_]||o[_];p===g&&j!==g[_]&&(v.current=g={...g}),g[_]=j,j!==o[_]&&(c=g)}return q.createElement(cv.Provider,{value:c,children:n})},Om=({children:n,component:i},s)=>i?q.createElement(i,{params:s}):typeof n=="function"?n(s):n,jg=n=>{let i=q.useRef(fv),s=i.current;for(const o in n)n[o]!==s[o]&&(s=n);return Object.keys(n).length===0&&(s=n),i.current=s},Gt=({path:n,nest:i,match:s,...o})=>{const c=fn(),[h]=ar(c),[m,v,p]=s??vv(c.parser,n,h,i),g=jg({...tr(),...v});if(!m)return null;const _=p?q.createElement(Sg,{base:p},Om(o,g)):Om(o,g);return q.createElement(dv.Provider,{value:g,children:_})};q.forwardRef((n,i)=>{const s=fn(),[o,c]=ar(s),{to:h="",href:m=h,onClick:v,asChild:p,children:g,className:_,replace:j,state:M,...Y}=n,k=iv(P=>{P.ctrlKey||P.metaKey||P.altKey||P.shiftKey||P.button!==0||(v?.(P),P.defaultPrevented||(P.preventDefault(),c(m,n)))}),U=s.hrefs(m[0]==="~"?m.slice(1):s.base+m,s);return p&&q.isValidElement(g)?q.cloneElement(g,{onClick:k,href:U}):q.createElement("a",{...Y,onClick:k,href:U,className:_?.call?_(o===m):_,children:g,ref:i})});const pv=n=>Array.isArray(n)?n.flatMap(i=>pv(i&&i.type===q.Fragment?i.props.children:i)):[n],Og=({children:n,location:i})=>{const s=fn(),[o]=ar(s);for(const c of pv(n)){let h=0;if(q.isValidElement(c)&&(h=vv(s.parser,c.props.path,i||o,c.props.nest))[0])return q.cloneElement(c,{match:h})}return null};function xl(n){return!!n&&!Array.isArray(n)&&typeof n=="object"}const _g=typeof Symbol=="function"&&!!Symbol.asyncIterator;function yv(n){return _g&&xl(n)&&Symbol.asyncIterator in n}var Eg=Object.create,gv=Object.defineProperty,Ng=Object.getOwnPropertyDescriptor,bv=Object.getOwnPropertyNames,Ag=Object.getPrototypeOf,Cg=Object.prototype.hasOwnProperty,xu=(n,i)=>function(){return i||(0,n[bv(n)[0]])((i={exports:{}}).exports,i),i.exports},Tg=(n,i,s,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(var c=bv(i),h=0,m=c.length,v;h<m;h++)v=c[h],!Cg.call(n,v)&&v!==s&&gv(n,v,{get:(p=>i[p]).bind(null,v),enumerable:!(o=Ng(i,v))||o.enumerable});return n},lr=(n,i,s)=>(s=n!=null?Eg(Ag(n)):{},Tg(gv(s,"default",{value:n,enumerable:!0}),n));const xv=()=>{},_m=n=>{Object.freeze&&Object.freeze(n)};function Sv(n,i,s){var o;const c=i.join(".");return(o=s[c])!==null&&o!==void 0||(s[c]=new Proxy(xv,{get(h,m){if(!(typeof m!="string"||m==="then"))return Sv(n,[...i,m],s)},apply(h,m,v){const p=i[i.length-1];let g={args:v,path:i};return p==="call"?g={args:v.length>=2?[v[1]]:[],path:i.slice(0,-1)}:p==="apply"&&(g={args:v.length>=2?v[1]:[],path:i.slice(0,-1)}),_m(g.args),_m(g.path),n(g)}})),s[c]}const nr=n=>Sv(n,[],Object.create(null)),Io=n=>new Proxy(xv,{get(i,s){if(s!=="then")return n(s)}});var jv=xu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,i){function s(o){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},i.exports.__esModule=!0,i.exports.default=i.exports,s(o)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Mg=xu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,i){var s=jv().default;function o(c,h){if(s(c)!="object"||!c)return c;var m=c[Symbol.toPrimitive];if(m!==void 0){var v=m.call(c,h||"default");if(s(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(c)}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),zg=xu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,i){var s=jv().default,o=Mg();function c(h){var m=o(h,"string");return s(m)=="symbol"?m:m+""}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ov=xu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,i){var s=zg();function o(c,h,m){return(h=s(h))in c?Object.defineProperty(c,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[h]=m,c}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),ec=xu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,i){var s=Ov();function o(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(h);m&&(p=p.filter(function(g){return Object.getOwnPropertyDescriptor(h,g).enumerable})),v.push.apply(v,p)}return v}function c(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?o(Object(v),!0).forEach(function(p){s(h,p,v[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):o(Object(v)).forEach(function(p){Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(v,p))})}return h}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}});lr(ec());lr(Ov());var Gi=lr(ec());function Dg(n,i){if("error"in n){const o=i.deserialize(n.error);return{ok:!1,error:(0,Gi.default)((0,Gi.default)({},n),{},{error:o})}}return{ok:!0,result:(0,Gi.default)((0,Gi.default)({},n.result),(!n.result.type||n.result.type==="data")&&{type:"data",data:i.deserialize(n.result.data)})}}var To=class extends Error{constructor(){super("Unable to transform response from server")}};function Rg(n,i){let s;try{s=Dg(n,i)}catch{throw new To}if(!s.ok&&(!xl(s.error.error)||typeof s.error.error.code!="number"))throw new To;if(s.ok&&!xl(s.result))throw new To;return s}lr(ec());function ur(n){const i={subscribe(s){let o=null,c=!1,h=!1,m=!1;function v(){if(o===null){m=!0;return}h||(h=!0,typeof o=="function"?o():o&&o.unsubscribe())}return o=n({next(p){var g;c||(g=s.next)===null||g===void 0||g.call(s,p)},error(p){var g;c||(c=!0,(g=s.error)===null||g===void 0||g.call(s,p),v())},complete(){var p;c||(c=!0,(p=s.complete)===null||p===void 0||p.call(s),v())}}),m&&v(),{unsubscribe:v}},pipe(...s){return s.reduce(Ug,i)}};return i}function Ug(n,i){return i(n)}function qg(n){const i=new AbortController;return new Promise((o,c)=>{let h=!1;function m(){h||(h=!0,v.unsubscribe())}i.signal.addEventListener("abort",()=>{c(i.signal.reason)});const v=n.subscribe({next(p){h=!0,o(p),m()},error(p){c(p)},complete(){i.abort(),m()}})})}var wg=Object.create,_v=Object.defineProperty,Qg=Object.getOwnPropertyDescriptor,Ev=Object.getOwnPropertyNames,Hg=Object.getPrototypeOf,Bg=Object.prototype.hasOwnProperty,$a=(n,i)=>function(){return i||(0,n[Ev(n)[0]])((i={exports:{}}).exports,i),i.exports},Lg=(n,i,s,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(var c=Ev(i),h=0,m=c.length,v;h<m;h++)v=c[h],!Bg.call(n,v)&&v!==s&&_v(n,v,{get:(p=>i[p]).bind(null,v),enumerable:!(o=Qg(i,v))||o.enumerable});return n},jl=(n,i,s)=>(s=n!=null?wg(Hg(n)):{},Lg(i||!n||!n.__esModule?_v(s,"default",{value:n,enumerable:!0}):s,n)),Yg=$a({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(n,i){function s(o,c){if(o==null)return{};var h={};for(var m in o)if({}.hasOwnProperty.call(o,m)){if(c.includes(m))continue;h[m]=o[m]}return h}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Gg=$a({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(n,i){var s=Yg();function o(c,h){if(c==null)return{};var m,v,p=s(c,h);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(c);for(v=0;v<g.length;v++)m=g[v],h.includes(m)||{}.propertyIsEnumerable.call(c,m)&&(p[m]=c[m])}return p}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),Nv=$a({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,i){function s(o){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},i.exports.__esModule=!0,i.exports.default=i.exports,s(o)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Xg=$a({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,i){var s=Nv().default;function o(c,h){if(s(c)!="object"||!c)return c;var m=c[Symbol.toPrimitive];if(m!==void 0){var v=m.call(c,h||"default");if(s(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(c)}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),kg=$a({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,i){var s=Nv().default,o=Xg();function c(h){var m=o(h,"string");return s(m)=="symbol"?m:m+""}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Zg=$a({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,i){var s=kg();function o(c,h,m){return(h=s(h))in c?Object.defineProperty(c,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[h]=m,c}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),Su=$a({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,i){var s=Zg();function o(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(h);m&&(p=p.filter(function(g){return Object.getOwnPropertyDescriptor(h,g).enumerable})),v.push.apply(v,p)}return v}function c(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?o(Object(v),!0).forEach(function(p){s(h,p,v[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):o(Object(v)).forEach(function(p){Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(v,p))})}return h}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Kg=jl(Gg(),1),Em=jl(Su(),1);const Vg=["cursor","direction"];function aa(n,i,s){const o=n.flatMap(c=>c.split("."));if(!i&&(!s||s==="any"))return o.length?[o]:[];if(s==="infinite"&&xl(i)&&("direction"in i||"cursor"in i)){const{cursor:c,direction:h}=i,m=(0,Kg.default)(i,Vg);return[o,{input:m,type:"infinite"}]}return[o,(0,Em.default)((0,Em.default)({},typeof i<"u"&&i!==zt&&{input:i}),s&&s!=="any"&&{type:s})]}function Ki(n){return aa(n,void 0,"any")}var Jg=Object.create,Av=Object.defineProperty,Fg=Object.getOwnPropertyDescriptor,Cv=Object.getOwnPropertyNames,Pg=Object.getPrototypeOf,$g=Object.prototype.hasOwnProperty,la=(n,i)=>function(){return i||(0,n[Cv(n)[0]])((i={exports:{}}).exports,i),i.exports},Wg=(n,i,s,o)=>{if(i&&typeof i=="object"||typeof i=="function")for(var c=Cv(i),h=0,m=c.length,v;h<m;h++)v=c[h],!$g.call(n,v)&&v!==s&&Av(n,v,{get:(p=>i[p]).bind(null,v),enumerable:!(o=Fg(i,v))||o.enumerable});return n},Ke=(n,i,s)=>(s=n!=null?Jg(Pg(n)):{},Wg(i||!n||!n.__esModule?Av(s,"default",{value:n,enumerable:!0}):s,n)),Tv=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,i){function s(o){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c},i.exports.__esModule=!0,i.exports.default=i.exports,s(o)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ig=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,i){var s=Tv().default;function o(c,h){if(s(c)!="object"||!c)return c;var m=c[Symbol.toPrimitive];if(m!==void 0){var v=m.call(c,h||"default");if(s(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(c)}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),eb=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,i){var s=Tv().default,o=Ig();function c(h){var m=o(h,"string");return s(m)=="symbol"?m:m+""}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ol=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,i){var s=eb();function o(c,h,m){return(h=s(h))in c?Object.defineProperty(c,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):c[h]=m,c}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ft=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,i){var s=Ol();function o(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(h);m&&(p=p.filter(function(g){return Object.getOwnPropertyDescriptor(h,g).enumerable})),v.push.apply(v,p)}return v}function c(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?o(Object(v),!0).forEach(function(p){s(h,p,v[p])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):o(Object(v)).forEach(function(p){Object.defineProperty(h,p,Object.getOwnPropertyDescriptor(v,p))})}return h}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}});function tb(n){return i=>{let s=0,o=null;const c=[];function h(){o||(o=i.subscribe({next(v){for(const g of c){var p;(p=g.next)===null||p===void 0||p.call(g,v)}},error(v){for(const g of c){var p;(p=g.error)===null||p===void 0||p.call(g,v)}},complete(){for(const p of c){var v;(v=p.complete)===null||v===void 0||v.call(p)}}}))}function m(){if(s===0&&o){const v=o;o=null,v.unsubscribe()}}return ur(v=>(s++,c.push(v),h(),{unsubscribe(){s--,m();const p=c.findIndex(g=>g===v);p>-1&&c.splice(p,1)}}))}}function ab(n){let i=n;const s=[],o=m=>{i!==void 0&&m.next(i),s.push(m)},c=m=>{s.splice(s.indexOf(m),1)},h=ur(m=>(o(m),()=>{c(m)}));return h.next=m=>{if(i!==m){i=m;for(const v of s)v.next(m)}},h.get=()=>i,h}function lb(n){return ur(i=>{function s(c=0,h=n.op){const m=n.links[c];if(!m)throw new Error("No more links to execute - did you forget to add an ending link?");return m({op:h,next(p){return s(c+1,p)}})}return s().subscribe(i)})}var Xi=Ke(Ol(),1),cn=Ke(Ft(),1);function nb(n){return n instanceof Wi}function ub(n){return xl(n)&&xl(n.error)&&typeof n.error.code=="number"&&typeof n.error.message=="string"}function ib(n,i){return typeof n=="string"?n:xl(n)&&typeof n.message=="string"?n.message:i}var Wi=class Vi extends Error{constructor(i,s){var o,c;const h=s?.cause;super(i,{cause:h}),(0,Xi.default)(this,"cause",void 0),(0,Xi.default)(this,"shape",void 0),(0,Xi.default)(this,"data",void 0),(0,Xi.default)(this,"meta",void 0),this.meta=s?.meta,this.cause=h,this.shape=s==null||(o=s.result)===null||o===void 0?void 0:o.error,this.data=s==null||(c=s.result)===null||c===void 0?void 0:c.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Vi.prototype)}static from(i,s={}){const o=i;return nb(o)?(s.meta&&(o.meta=(0,cn.default)((0,cn.default)({},o.meta),s.meta)),o):ub(o)?new Vi(o.error.message,(0,cn.default)((0,cn.default)({},s),{},{result:o})):new Vi(ib(o,"Unknown error"),(0,cn.default)((0,cn.default)({},s),{},{cause:o}))}};function rb(n){const i=n;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 Nm=n=>typeof n=="function";function sb(n){if(n)return n;if(typeof window<"u"&&Nm(window.fetch))return window.fetch;if(typeof globalThis<"u"&&Nm(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var pu=Ke(Ft());function ob(n){return{url:n.url.toString(),fetch:n.fetch,transformer:rb(n.transformer),methodOverride:n.methodOverride}}function cb(n){const i={};for(let s=0;s<n.length;s++){const o=n[s];i[s]=o}return i}const fb={query:"GET",mutation:"POST",subscription:"PATCH"};function Mv(n){return"input"in n?n.transformer.input.serialize(n.input):cb(n.inputs.map(i=>n.transformer.input.serialize(i)))}const zv=n=>{const i=n.url.split("?");let o=i[0].replace(/\/$/,"")+"/"+n.path;const c=[];if(i[1]&&c.push(i[1]),"inputs"in n&&c.push("batch=1"),n.type==="query"||n.type==="subscription"){const h=Mv(n);h!==void 0&&n.methodOverride!=="POST"&&c.push(`input=${encodeURIComponent(JSON.stringify(h))}`)}return c.length&&(o+="?"+c.join("&")),o},db=n=>{if(n.type==="query"&&n.methodOverride!=="POST")return;const i=Mv(n);return i!==void 0?JSON.stringify(i):void 0},hb=n=>yb((0,pu.default)((0,pu.default)({},n),{},{contentTypeHeader:"application/json",getUrl:zv,getBody:db}));var mb=class extends Error{constructor(){const n="AbortError";super(n),this.name=n,this.message=n}};const vb=n=>{var i;if(n?.aborted)throw(i=n.throwIfAborted)===null||i===void 0||i.call(n),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new mb};async function pb(n){var i;vb(n.signal);const s=n.getUrl(n),o=n.getBody(n),c=(i=n.methodOverride)!==null&&i!==void 0?i:fb[n.type],h=await(async()=>{const v=await n.headers();return Symbol.iterator in v?Object.fromEntries(v):v})(),m=(0,pu.default)((0,pu.default)((0,pu.default)({},n.contentTypeHeader&&c!=="GET"?{"content-type":n.contentTypeHeader}:{}),n.trpcAcceptHeader?{"trpc-accept":n.trpcAcceptHeader}:void 0),h);return sb(n.fetch)(s,{method:c,signal:n.signal,body:o,headers:m})}async function yb(n){const i={},s=await pb(n);i.response=s;const o=await s.json();return i.responseJSON=o,{json:o,meta:i}}Ke(Ft(),1);const Am=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Cm(n){let i=null,s=null;const o=()=>{clearTimeout(s),s=null,i=null};function c(v){const p=[[]];let g=0;for(;;){const M=v[g];if(!M)break;const Y=p[p.length-1];if(M.aborted){var _;(_=M.reject)===null||_===void 0||_.call(M,new Error("Aborted")),g++;continue}if(n.validate(Y.concat(M).map(U=>U.key))){Y.push(M),g++;continue}if(Y.length===0){var j;(j=M.reject)===null||j===void 0||j.call(M,new Error("Input is too big for a single dispatch")),g++;continue}p.push([])}return p}function h(){const v=c(i);o();for(const p of v){if(!p.length)continue;const g={items:p};for(const j of p)j.batch=g;n.fetch(g.items.map(j=>j.key)).then(async j=>{await Promise.all(j.map(async(Y,k)=>{const U=g.items[k];try{var P;const ve=await Promise.resolve(Y);(P=U.resolve)===null||P===void 0||P.call(U,ve)}catch(ve){var re;(re=U.reject)===null||re===void 0||re.call(U,ve)}U.batch=null,U.reject=null,U.resolve=null}));for(const Y of g.items){var M;(M=Y.reject)===null||M===void 0||M.call(Y,new Error("Missing result")),Y.batch=null}}).catch(j=>{for(const Y of g.items){var M;(M=Y.reject)===null||M===void 0||M.call(Y,j),Y.batch=null}})}}function m(v){var p;const g={aborted:!1,key:v,batch:null,resolve:Am,reject:Am},_=new Promise((j,M)=>{var Y;g.reject=M,g.resolve=j,(Y=i)!==null&&Y!==void 0||(i=[]),i.push(g)});return(p=s)!==null&&p!==void 0||(s=setTimeout(h)),_}return{load:m}}function gb(...n){const i=new AbortController,s=n.length;let o=0;const c=()=>{++o===s&&i.abort()};for(const h of n)h?.aborted?c():h?.addEventListener("abort",c,{once:!0});return i.signal}var ki=Ke(Ft(),1);function bb(n){var i,s;const o=ob(n),c=(i=n.maxURLLength)!==null&&i!==void 0?i:1/0,h=(s=n.maxItems)!==null&&s!==void 0?s:1/0;return()=>{const m=_=>({validate(j){if(c===1/0&&h===1/0)return!0;if(j.length>h)return!1;const M=j.map(U=>U.path).join(","),Y=j.map(U=>U.input);return zv((0,ki.default)((0,ki.default)({},o),{},{type:_,path:M,inputs:Y,signal:null})).length<=c},async fetch(j){const M=j.map(ve=>ve.path).join(","),Y=j.map(ve=>ve.input),k=gb(...j.map(ve=>ve.signal)),U=await hb((0,ki.default)((0,ki.default)({},o),{},{path:M,inputs:Y,type:_,headers(){return n.headers?typeof n.headers=="function"?n.headers({opList:j}):n.headers:{}},signal:k}));return(Array.isArray(U.json)?U.json:j.map(()=>U.json)).map(ve=>({meta:U.meta,json:ve}))}}),v=Cm(m("query")),p=Cm(m("mutation")),g={query:v,mutation:p};return({op:_})=>ur(j=>{/* istanbul ignore if -- @preserve */if(_.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const Y=g[_.type].load(_);let k;return Y.then(U=>{k=U;const P=Rg(U.json,o.transformer.output);if(!P.ok){j.error(Wi.from(P.error,{meta:U.meta}));return}j.next({context:U.meta,result:P.result}),j.complete()}).catch(U=>{j.error(Wi.from(U,{meta:k?.meta}))}),()=>{}})}}Ke(Ft(),1);const Dv=(n,...i)=>typeof n=="function"?n(...i):n;Ke(Ol(),1);function xb(){let n,i;return{promise:new Promise((o,c)=>{n=o,i=c}),resolve:n,reject:i}}async function Sb(n){const i=await Dv(n.url);if(!n.connectionParams)return i;const o=`${i.includes("?")?"&":"?"}connectionParams=1`;return i+o}async function jb(n){const i={method:"connectionParams",data:await Dv(n)};return JSON.stringify(i)}Ke(Ol(),1);var gl=Ke(Ol(),1);function Ob(n){const{promise:i,resolve:s,reject:o}=xb();return n.addEventListener("open",()=>{n.removeEventListener("error",o),s()}),n.addEventListener("error",o),i}function _b(n,{intervalMs:i,pongTimeoutMs:s}){let o,c;function h(){o=setTimeout(()=>{n.send("PING"),c=setTimeout(()=>{n.close()},s)},i)}function m(){clearTimeout(o),h()}function v(){clearTimeout(c),m()}n.addEventListener("open",h),n.addEventListener("message",({data:p})=>{clearTimeout(o),h(),p==="PONG"&&v()}),n.addEventListener("close",()=>{clearTimeout(o),clearTimeout(c)})}var Eb=class ko{constructor(i){var s;if((0,gl.default)(this,"id",++ko.connectCount),(0,gl.default)(this,"WebSocketPonyfill",void 0),(0,gl.default)(this,"urlOptions",void 0),(0,gl.default)(this,"keepAliveOpts",void 0),(0,gl.default)(this,"wsObservable",ab(null)),(0,gl.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=++ko.connectCount;const s=Sb(i.urlOptions).then(o=>new i.WebSocketPonyfill(o));i.openPromise=s.then(async o=>{i.ws=o,o.addEventListener("message",function({data:c}){c==="PING"&&this.send("PONG")}),i.keepAliveOpts.enabled&&_b(o,i.keepAliveOpts),o.addEventListener("close",()=>{i.ws===o&&(i.ws=null)}),await Ob(o),i.urlOptions.connectionParams&&o.send(await jb(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,gl.default)(Eb,"connectCount",0);Ke(Ol(),1);Ke(Ft(),1);var Mo=Ke(Ol(),1),Tm=Ke(Ft(),1),ir=class{constructor(n){(0,Mo.default)(this,"links",void 0),(0,Mo.default)(this,"runtime",void 0),(0,Mo.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=n.links.map(i=>i(this.runtime))}$request(n){var i;return lb({links:this.links,op:(0,Tm.default)((0,Tm.default)({},n),{},{context:(i=n.context)!==null&&i!==void 0?i:{},id:++this.requestId})}).pipe(tb())}async requestAsPromise(n){var i=this;try{const s=i.$request(n);return(await qg(s)).result.data}catch(s){throw Wi.from(s)}}query(n,i,s){return this.requestAsPromise({type:"query",path:n,input:i,context:s?.context,signal:s?.signal})}mutation(n,i,s){return this.requestAsPromise({type:"mutation",path:n,input:i,context:s?.context,signal:s?.signal})}subscription(n,i,s){return this.$request({type:"subscription",path:n,input:i,context:s.context,signal:s.signal}).subscribe({next(c){switch(c.result.type){case"state":{var h;(h=s.onConnectionStateChange)===null||h===void 0||h.call(s,c.result);break}case"started":{var m;(m=s.onStarted)===null||m===void 0||m.call(s,{context:c.context});break}case"stopped":{var v;(v=s.onStopped)===null||v===void 0||v.call(s);break}case"data":case void 0:{var p;(p=s.onData)===null||p===void 0||p.call(s,c.result.data);break}}},error(c){var h;(h=s.onError)===null||h===void 0||h.call(s,c)},complete(){var c;(c=s.onComplete)===null||c===void 0||c.call(s)}})}};const Rv=Symbol.for("trpc_untypedClient"),Nb={query:"query",mutate:"mutation",subscribe:"subscription"},Ab=n=>Nb[n];function Uv(n){const i=nr(({path:s,args:o})=>{const c=[...s],h=Ab(c.pop()),m=c.join(".");return n[h](m,...o)});return Io(s=>s===Rv?n:i[s])}function Cb(n){const i=new ir(n);return Uv(i)}function tc(n){return n[Rv]}Ke(Ft(),1);Ke(Ft(),1);var Tb=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,i){function s(c){var h,m,v,p=2;for(typeof Symbol<"u"&&(m=Symbol.asyncIterator,v=Symbol.iterator);p--;){if(m&&(h=c[m])!=null)return h.call(c);if(v&&(h=c[v])!=null)return new o(h.call(c));m="@@asyncIterator",v="@@iterator"}throw new TypeError("Object is not async iterable")}function o(c){function h(m){if(Object(m)!==m)return Promise.reject(new TypeError(m+" is not an object."));var v=m.done;return Promise.resolve(m.value).then(function(p){return{value:p,done:v}})}return o=function(v){this.s=v,this.n=v.next},o.prototype={s:null,n:null,next:function(){return h(this.n.apply(this.s,arguments))},return:function(v){var p=this.s.return;return p===void 0?Promise.resolve({value:v,done:!0}):h(p.apply(this.s,arguments))},throw:function(v){var p=this.s.return;return p===void 0?Promise.reject(v):h(p.apply(this.s,arguments))}},new o(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}});Ke(Tb(),1);Ke(Ft(),1);var Mb=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(n,i){function s(){var o=typeof SuppressedError=="function"?SuppressedError:function(v,p){var g=Error();return g.name="SuppressedError",g.error=v,g.suppressed=p,g},c={},h=[];function m(v,p){if(p!=null){if(Object(p)!==p)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(v)var g=p[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(g===void 0&&(g=p[Symbol.dispose||Symbol.for("Symbol.dispose")],v))var _=g;if(typeof g!="function")throw new TypeError("Object is not disposable.");_&&(g=function(){try{_.call(p)}catch(M){return Promise.reject(M)}}),h.push({v:p,d:g,a:v})}else v&&h.push({d:p,a:v});return p}return{e:c,u:m.bind(null,!1),a:m.bind(null,!0),d:function(){var p,g=this.e,_=0;function j(){for(;p=h.pop();)try{if(!p.a&&_===1)return _=0,h.push(p),Promise.resolve().then(j);if(p.d){var Y=p.d.call(p.v);if(p.a)return _|=2,Promise.resolve(Y).then(j,M)}else _|=1}catch(k){return M(k)}if(_===1)return g!==c?Promise.reject(g):Promise.resolve();if(g!==c)throw g}function M(Y){return g=g!==c?new o(Y,g):Y,j()}return j()}}}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),qv=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(n,i){function s(o,c){this.v=o,this.k=c}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),zb=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(n,i){var s=qv();function o(c){return new s(c,0)}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),Db=la({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(n,i){var s=qv();function o(h){return function(){return new c(h.apply(this,arguments))}}function c(h){var m,v;function p(_,j){try{var M=h[_](j),Y=M.value,k=Y instanceof s;Promise.resolve(k?Y.v:Y).then(function(U){if(k){var P=_==="return"?"return":"next";if(!Y.k||U.done)return p(P,U);U=h[P](U).value}g(M.done?"return":"normal",U)},function(U){p("throw",U)})}catch(U){g("throw",U)}}function g(_,j){switch(_){case"return":m.resolve({value:j,done:!0});break;case"throw":m.reject(j);break;default:m.resolve({value:j,done:!1})}(m=m.next)?p(m.key,m.arg):v=null}this._invoke=function(_,j){return new Promise(function(M,Y){var k={key:_,arg:j,resolve:M,reject:Y,next:null};v?v=v.next=k:(m=v=k,p(_,j))})},typeof h.return!="function"&&(this.return=void 0)}c.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},c.prototype.next=function(h){return this._invoke("next",h)},c.prototype.throw=function(h){return this._invoke("throw",h)},c.prototype.return=function(h){return this._invoke("return",h)},i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}});Ke(Mb(),1);Ke(zb(),1);Ke(Db(),1);Ke(Ft(),1);function Rb(n){return nr(({path:i,args:s})=>{var o;const c=[...i],h=c.pop();if(h==="useMutation")return n[h](c,...s);if(h==="_def")return{path:c};const[m,...v]=s,p=(o=v[0])!==null&&o!==void 0?o:{};return n[h](c,m,p)})}var zo;const Ub=["client","ssrContext","ssrState","abortOnUnmount"],qb=(zo=q.createContext)===null||zo===void 0?void 0:zo.call(Hm,null),wb=n=>{switch(n){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 Qb(n){return nr(i=>{const s=[...i.path],o=s.pop(),c=[...i.args],h=c.shift(),m=wb(o),v=aa(s,h,m);return{infiniteQueryOptions:()=>n.infiniteQueryOptions(s,v,c[0]),queryOptions:()=>n.queryOptions(s,v,...c),fetch:()=>n.fetchQuery(v,...c),fetchInfinite:()=>n.fetchInfiniteQuery(v,c[0]),prefetch:()=>n.prefetchQuery(v,...c),prefetchInfinite:()=>n.prefetchInfiniteQuery(v,c[0]),ensureData:()=>n.ensureQueryData(v,...c),invalidate:()=>n.invalidateQueries(v,...c),reset:()=>n.resetQueries(v,...c),refetch:()=>n.refetchQueries(v,...c),cancel:()=>n.cancelQuery(v,...c),setData:()=>{n.setQueryData(v,c[0],c[1])},setQueriesData:()=>n.setQueriesData(v,c[0],c[1],c[2]),setInfiniteData:()=>{n.setInfiniteQueryData(v,c[0],c[1])},getData:()=>n.getQueryData(v),getInfiniteData:()=>n.getInfiniteQueryData(v),setMutationDefaults:()=>n.setMutationDefaults(Ki(s),h),getMutationDefaults:()=>n.getMutationDefaults(Ki(s)),isMutating:()=>n.isMutating({mutationKey:Ki(s)})}[o]()})}function Hb(n){const i=Uv(n.client),s=Qb(n);return Io(o=>{const c=o;return c==="client"?i:Ub.includes(c)?n[c]:s[o]})}var Bb=jl(Su(),1);function Mm(n){const i=n instanceof ir?n:tc(n);return nr(s=>{const o=s.path,c=o.join("."),[h,m]=s.args;return(0,Bb.default)({queryKey:aa(o,h,"query"),queryFn:()=>i.query(c,h,m?.trpc)},m)})}var Do=jl(Su(),1);function ft(n,i,s){var o;const c=n[0];let h=(o=n[1])===null||o===void 0?void 0:o.input;if(s){var m;h=(0,Do.default)((0,Do.default)((0,Do.default)({},(m=h)!==null&&m!==void 0?m:{}),s.pageParam?{cursor:s.pageParam}:{}),{},{direction:s.direction})}return[c.join("."),h,i?.trpc]}var Lb=$a({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,i){function s(c){var h,m,v,p=2;for(typeof Symbol<"u"&&(m=Symbol.asyncIterator,v=Symbol.iterator);p--;){if(m&&(h=c[m])!=null)return h.call(c);if(v&&(h=c[v])!=null)return new o(h.call(c));m="@@asyncIterator",v="@@iterator"}throw new TypeError("Object is not async iterable")}function o(c){function h(m){if(Object(m)!==m)return Promise.reject(new TypeError(m+" is not an object."));var v=m.done;return Promise.resolve(m.value).then(function(p){return{value:p,done:v}})}return o=function(v){this.s=v,this.n=v.next},o.prototype={s:null,n:null,next:function(){return h(this.n.apply(this.s,arguments))},return:function(v){var p=this.s.return;return p===void 0?Promise.resolve({value:v,done:!0}):h(p.apply(this.s,arguments))},throw:function(v){var p=this.s.return;return p===void 0?Promise.reject(v):h(p.apply(this.s,arguments))}},new o(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Yb=jl(Lb(),1);function Zo(n){return{path:n.path.join(".")}}function hu(n){const i=Zo(n);return q.useMemo(()=>i,[i])}async function wv(n,i,s){const c=i.getQueryCache().build(i,{queryKey:s});c.setState({data:[],status:"success"});const h=[];var m=!1,v=!1,p;try{for(var g=(0,Yb.default)(n),_;m=!(_=await g.next()).done;m=!1){const j=_.value;h.push(j),c.setState({data:[...h]})}}catch(j){v=!0,p=j}finally{try{m&&g.return!=null&&await g.return()}finally{if(v)throw p}}return h}var Ee=jl(Su(),1);function Gb(n){const{client:i,queryClient:s}=n,o=i instanceof ir?i:tc(i);return{infiniteQueryOptions:(c,h,m)=>{var v,p;const g=((v=h[1])===null||v===void 0?void 0:v.input)===zt,_=async j=>{var M;const Y=(0,Ee.default)((0,Ee.default)({},m),{},{trpc:(0,Ee.default)((0,Ee.default)({},m?.trpc),!(m==null||(M=m.trpc)===null||M===void 0)&&M.abortOnUnmount?{signal:j.signal}:{signal:null})});return await o.query(...ft(h,Y,{direction:j.direction,pageParam:j.pageParam}))};return Object.assign((0,Ee.default)((0,Ee.default)({},m),{},{initialData:m?.initialData,queryKey:h,queryFn:g?zt:_,initialPageParam:(p=m?.initialCursor)!==null&&p!==void 0?p:null}),{trpc:Zo({path:c})})},queryOptions:(c,h,m)=>{var v;const p=((v=h[1])===null||v===void 0?void 0:v.input)===zt,g=async _=>{var j;const M=(0,Ee.default)((0,Ee.default)({},m),{},{trpc:(0,Ee.default)((0,Ee.default)({},m?.trpc),!(m==null||(j=m.trpc)===null||j===void 0)&&j.abortOnUnmount?{signal:_.signal}:{signal:null})}),Y=await o.query(...ft(h,M));return yv(Y)?wv(Y,s,h):Y};return Object.assign((0,Ee.default)((0,Ee.default)({},m),{},{initialData:m?.initialData,queryKey:h,queryFn:p?zt:g}),{trpc:Zo({path:c})})},fetchQuery:(c,h)=>s.fetchQuery((0,Ee.default)((0,Ee.default)({},h),{},{queryKey:c,queryFn:()=>o.query(...ft(c,h))})),fetchInfiniteQuery:(c,h)=>{var m;return s.fetchInfiniteQuery((0,Ee.default)((0,Ee.default)({},h),{},{queryKey:c,queryFn:({pageParam:v,direction:p})=>o.query(...ft(c,h,{pageParam:v,direction:p})),initialPageParam:(m=h?.initialCursor)!==null&&m!==void 0?m:null}))},prefetchQuery:(c,h)=>s.prefetchQuery((0,Ee.default)((0,Ee.default)({},h),{},{queryKey:c,queryFn:()=>o.query(...ft(c,h))})),prefetchInfiniteQuery:(c,h)=>{var m;return s.prefetchInfiniteQuery((0,Ee.default)((0,Ee.default)({},h),{},{queryKey:c,queryFn:({pageParam:v,direction:p})=>o.query(...ft(c,h,{pageParam:v,direction:p})),initialPageParam:(m=h?.initialCursor)!==null&&m!==void 0?m:null}))},ensureQueryData:(c,h)=>s.ensureQueryData((0,Ee.default)((0,Ee.default)({},h),{},{queryKey:c,queryFn:()=>o.query(...ft(c,h))})),invalidateQueries:(c,h,m)=>s.invalidateQueries((0,Ee.default)((0,Ee.default)({},h),{},{queryKey:c}),m),resetQueries:(c,h,m)=>s.resetQueries((0,Ee.default)((0,Ee.default)({},h),{},{queryKey:c}),m),refetchQueries:(c,h,m)=>s.refetchQueries((0,Ee.default)((0,Ee.default)({},h),{},{queryKey:c}),m),cancelQuery:(c,h)=>s.cancelQueries({queryKey:c},h),setQueryData:(c,h,m)=>s.setQueryData(c,h,m),setQueriesData:(c,h,m,v)=>s.setQueriesData((0,Ee.default)((0,Ee.default)({},h),{},{queryKey:c}),m,v),getQueryData:c=>s.getQueryData(c),setInfiniteQueryData:(c,h,m)=>s.setQueryData(c,h,m),getInfiniteQueryData:c=>s.getQueryData(c),setMutationDefaults:(c,h)=>{const m=c[0],v=p=>o.mutation(...ft([m,{input:p}],n));return s.setMutationDefaults(c,typeof h=="function"?h({canonicalMutationFn:v}):h)},getMutationDefaults:c=>s.getMutationDefaults(c),isMutating:c=>s.isMutating((0,Ee.default)((0,Ee.default)({},c),{},{exact:!0}))}}var V=jl(Su());const zm=(n,i)=>new Proxy(n,{get(o,c){return i(c),o[c]}});function Xb(n){var i,s;const o=(i=void 0)!==null&&i!==void 0?i:$=>$.originalFn(),c=(s=void 0)!==null&&s!==void 0?s:qb,h=Cb,m=$=>{var K;const{abortOnUnmount:z=!1,queryClient:Z,ssrContext:I}=$,[W,ae]=q.useState((K=$.ssrState)!==null&&K!==void 0?K:!1),ee=$.client instanceof ir?$.client:tc($.client),pe=q.useMemo(()=>Gb({client:ee,queryClient:Z}),[ee,Z]),oe=q.useMemo(()=>(0,V.default)({abortOnUnmount:z,queryClient:Z,client:ee,ssrContext:I??null,ssrState:W},pe),[z,ee,pe,Z,I,W]);return q.useEffect(()=>{ae(fe=>fe?"mounted":!1)},[]),d.jsx(c.Provider,{value:oe,children:$.children})};function v(){const $=q.useContext(c);if(!$)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return $}function p($,K){var z;const{queryClient:Z,ssrState:I}=v();return I&&I!=="mounted"&&((z=Z.getQueryCache().find({queryKey:$}))===null||z===void 0?void 0:z.state.status)==="error"?(0,V.default)({retryOnMount:!1},K):K}function g($,K,z){var Z,I,W,ae,ee;const pe=v(),{abortOnUnmount:oe,client:fe,ssrState:A,queryClient:H,prefetchQuery:G}=pe,ue=aa($,K,"query"),he=H.getQueryDefaults(ue),x=K===zt;typeof window>"u"&&A==="prepass"&&(z==null||(Z=z.trpc)===null||Z===void 0?void 0:Z.ssr)!==!1&&((I=z?.enabled)!==null&&I!==void 0?I:he?.enabled)!==!1&&!x&&!H.getQueryCache().find({queryKey:ue})&&G(ue,z);const D=p(ue,(0,V.default)((0,V.default)({},he),z)),B=(W=(ae=z==null||(ee=z.trpc)===null||ee===void 0?void 0:ee.abortOnUnmount)!==null&&ae!==void 0?ae:void 0)!==null&&W!==void 0?W:oe,L=K0((0,V.default)((0,V.default)({},D),{},{queryKey:ue,queryFn:x?K:async F=>{const se=(0,V.default)((0,V.default)({},D),{},{trpc:(0,V.default)((0,V.default)({},D?.trpc),B?{signal:F.signal}:{signal:null})}),ye=await fe.query(...ft(ue,se));return yv(ye)?wv(ye,H,ue):ye}}),H);return L.trpc=hu({path:$}),L}function _($,K,z){var Z,I,W;const ae=v(),ee=aa($,K,"query"),pe=K===zt,oe=(Z=(I=z==null||(W=z.trpc)===null||W===void 0?void 0:W.abortOnUnmount)!==null&&I!==void 0?I:void 0)!==null&&Z!==void 0?Z:ae.abortOnUnmount;P0((0,V.default)((0,V.default)({},z),{},{queryKey:ee,queryFn:pe?K:fe=>{const A={trpc:(0,V.default)((0,V.default)({},z?.trpc),oe?{signal:fe.signal}:{})};return ae.client.query(...ft(ee,A))}}))}function j($,K,z){var Z,I,W;const ae=v(),ee=aa($,K,"query"),pe=(Z=(I=z==null||(W=z.trpc)===null||W===void 0?void 0:W.abortOnUnmount)!==null&&I!==void 0?I:void 0)!==null&&Z!==void 0?Z:ae.abortOnUnmount,oe=V0((0,V.default)((0,V.default)({},z),{},{queryKey:ee,queryFn:fe=>{const A=(0,V.default)((0,V.default)({},z),{},{trpc:(0,V.default)((0,V.default)({},z?.trpc),pe?{signal:fe.signal}:{signal:null})});return ae.client.query(...ft(ee,A))}}),ae.queryClient);return oe.trpc=hu({path:$}),[oe.data,oe]}function M($,K){const{client:z,queryClient:Z}=v(),I=Ki($),W=Z.defaultMutationOptions(Z.getMutationDefaults(I)),ae=W0((0,V.default)((0,V.default)({},K),{},{mutationKey:I,mutationFn:ee=>z.mutation(...ft([$,{input:ee}],K)),onSuccess(...ee){var pe,oe;return o({originalFn:()=>{var A,H,G;return(A=K==null||(H=K.onSuccess)===null||H===void 0?void 0:H.call(K,...ee))!==null&&A!==void 0?A:W==null||(G=W.onSuccess)===null||G===void 0?void 0:G.call(W,...ee)},queryClient:Z,meta:(pe=(oe=K?.meta)!==null&&oe!==void 0?oe:W?.meta)!==null&&pe!==void 0?pe:{}})}}),Z);return ae.trpc=hu({path:$}),ae}const Y={data:void 0,error:null,status:"idle"},k={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function U($,K,z){var Z;const I=(Z=z?.enabled)!==null&&Z!==void 0?Z:K!==zt,W=Pa(aa($,K,"any")),{client:ae}=v(),ee=q.useRef(z);q.useEffect(()=>{ee.current=z});const[pe]=q.useState(new Set([])),oe=q.useCallback(x=>{pe.add(x)},[pe]),fe=q.useRef(null),A=q.useCallback(x=>{const D=G.current,B=G.current=x(D);let L=!1;for(const F of pe)if(D[F]!==B[F]){L=!0;break}L&&he(zm(B,oe))},[oe,pe]),H=q.useCallback(()=>{var x;if((x=fe.current)===null||x===void 0||x.unsubscribe(),!I){A(()=>(0,V.default)((0,V.default)({},Y),{},{reset:H}));return}A(()=>(0,V.default)((0,V.default)({},k),{},{reset:H}));const D=ae.subscription($.join("."),K??void 0,{onStarted:()=>{var B,L;(B=(L=ee.current).onStarted)===null||B===void 0||B.call(L),A(F=>(0,V.default)((0,V.default)({},F),{},{status:"pending",error:null}))},onData:B=>{var L,F;(L=(F=ee.current).onData)===null||L===void 0||L.call(F,B),A(se=>(0,V.default)((0,V.default)({},se),{},{status:"pending",data:B,error:null}))},onError:B=>{var L,F;(L=(F=ee.current).onError)===null||L===void 0||L.call(F,B),A(se=>(0,V.default)((0,V.default)({},se),{},{status:"error",error:B}))},onConnectionStateChange:B=>{A(L=>{switch(B.state){case"idle":return(0,V.default)((0,V.default)({},L),{},{status:B.state,error:null,data:void 0});case"connecting":return(0,V.default)((0,V.default)({},L),{},{error:B.error,status:B.state});case"pending":return L}})},onComplete:()=>{var B,L;(B=(L=ee.current).onComplete)===null||B===void 0||B.call(L),A(F=>(0,V.default)((0,V.default)({},F),{},{status:"idle",error:null,data:void 0}))}});fe.current=D},[ae,W,I,A]);q.useEffect(()=>(H(),()=>{var x;(x=fe.current)===null||x===void 0||x.unsubscribe()}),[H]);const G=q.useRef(I?(0,V.default)((0,V.default)({},k),{},{reset:H}):(0,V.default)((0,V.default)({},Y),{},{reset:H})),[ue,he]=q.useState(zm(G.current,oe));return ue}function P($,K,z){var Z,I,W,ae,ee;const{client:pe,ssrState:oe,prefetchInfiniteQuery:fe,queryClient:A,abortOnUnmount:H}=v(),G=aa($,K,"infinite"),ue=A.getQueryDefaults(G),he=K===zt;typeof window>"u"&&oe==="prepass"&&(z==null||(Z=z.trpc)===null||Z===void 0?void 0:Z.ssr)!==!1&&((I=z?.enabled)!==null&&I!==void 0?I:ue?.enabled)!==!1&&!he&&!A.getQueryCache().find({queryKey:G})&&fe(G,(0,V.default)((0,V.default)({},ue),z));const x=p(G,(0,V.default)((0,V.default)({},ue),z)),D=(W=z==null||(ae=z.trpc)===null||ae===void 0?void 0:ae.abortOnUnmount)!==null&&W!==void 0?W:H,B=I0((0,V.default)((0,V.default)({},x),{},{initialPageParam:(ee=z.initialCursor)!==null&&ee!==void 0?ee:null,persister:z.persister,queryKey:G,queryFn:he?K:L=>{var F;const se=(0,V.default)((0,V.default)({},x),{},{trpc:(0,V.default)((0,V.default)({},x?.trpc),D?{signal:L.signal}:{signal:null})});return pe.query(...ft(G,se,{pageParam:(F=L.pageParam)!==null&&F!==void 0?F:z.initialCursor,direction:L.direction}))}}),A);return B.trpc=hu({path:$}),B}function re($,K,z){var Z,I,W;const ae=v(),ee=aa($,K,"infinite"),pe=ae.queryClient.getQueryDefaults(ee),oe=K===zt,fe=p(ee,(0,V.default)((0,V.default)({},pe),z)),A=(Z=z==null||(I=z.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&Z!==void 0?Z:ae.abortOnUnmount;$0((0,V.default)((0,V.default)({},z),{},{initialPageParam:(W=z.initialCursor)!==null&&W!==void 0?W:null,queryKey:ee,queryFn:oe?K:H=>{var G;const ue=(0,V.default)((0,V.default)({},fe),{},{trpc:(0,V.default)((0,V.default)({},fe?.trpc),A?{signal:H.signal}:{})});return ae.client.query(...ft(ee,ue,{pageParam:(G=H.pageParam)!==null&&G!==void 0?G:z.initialCursor,direction:H.direction}))}}))}function ve($,K,z){var Z,I,W;const ae=v(),ee=aa($,K,"infinite"),pe=ae.queryClient.getQueryDefaults(ee),oe=p(ee,(0,V.default)((0,V.default)({},pe),z)),fe=(Z=z==null||(I=z.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&Z!==void 0?Z:ae.abortOnUnmount,A=J0((0,V.default)((0,V.default)({},z),{},{initialPageParam:(W=z.initialCursor)!==null&&W!==void 0?W:null,queryKey:ee,queryFn:H=>{var G;const ue=(0,V.default)((0,V.default)({},oe),{},{trpc:(0,V.default)((0,V.default)({},oe?.trpc),fe?{signal:H.signal}:{})});return ae.client.query(...ft(ee,ue,{pageParam:(G=H.pageParam)!==null&&G!==void 0?G:z.initialCursor,direction:H.direction}))}}),ae.queryClient);return A.trpc=hu({path:$}),[A.data,A]}return{Provider:m,createClient:h,useContext:v,useUtils:v,useQuery:g,usePrefetchQuery:_,useSuspenseQuery:j,useQueries:($,K)=>{const{ssrState:z,queryClient:Z,prefetchQuery:I,client:W}=v(),ae=Mm(W),ee=$(ae);if(typeof window>"u"&&z==="prepass")for(const oe of ee){var pe;const fe=oe;((pe=fe.trpc)===null||pe===void 0?void 0:pe.ssr)!==!1&&!Z.getQueryCache().find({queryKey:fe.queryKey})&&I(fe.queryKey,fe)}return uv({queries:ee.map(oe=>(0,V.default)((0,V.default)({},oe),{},{queryKey:oe.queryKey})),combine:K?.combine},Z)},useSuspenseQueries:$=>{const{queryClient:K,client:z}=v(),Z=Mm(z),I=$(Z),W=F0({queries:I.map(ae=>(0,V.default)((0,V.default)({},ae),{},{queryFn:ae.queryFn,queryKey:ae.queryKey}))},K);return[W.map(ae=>ae.data),W]},useMutation:M,useSubscription:U,useInfiniteQuery:P,usePrefetchInfiniteQuery:re,useSuspenseInfiniteQuery:ve}}function kb(n){const i=Rb(n);return Io(s=>s==="useContext"||s==="useUtils"?()=>{const o=n.useUtils();return q.useMemo(()=>Hb(o),[o])}:n.hasOwnProperty(s)?n[s]:i[s])}function Zb(n){const i=Xb();return kb(i)}const ne=Zb(),Kb=ne.createClient({links:[bb({url:"/api/trpc"})]});/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qv=(...n)=>n.filter((i,s,o)=>!!i&&i.trim()!==""&&o.indexOf(i)===s).join(" ").trim();/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vb=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jb=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(i,s,o)=>o?o.toUpperCase():s.toLowerCase());/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Dm=n=>{const i=Jb(n);return i.charAt(0).toUpperCase()+i.slice(1)};/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var Ro={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fb=n=>{for(const i in n)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1},Pb=q.createContext({}),$b=()=>q.useContext(Pb),Wb=q.forwardRef(({color:n,size:i,strokeWidth:s,absoluteStrokeWidth:o,className:c="",children:h,iconNode:m,...v},p)=>{const{size:g=24,strokeWidth:_=2,absoluteStrokeWidth:j=!1,color:M="currentColor",className:Y=""}=$b()??{},k=o??j?Number(s??_)*24/Number(i??g):s??_;return q.createElement("svg",{ref:p,...Ro,width:i??g??Ro.width,height:i??g??Ro.height,stroke:n??M,strokeWidth:k,className:Qv("lucide",Y,c),...!h&&!Fb(v)&&{"aria-hidden":"true"},...v},[...m.map(([U,P])=>q.createElement(U,P)),...Array.isArray(h)?h:[h]])});/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const st=(n,i)=>{const s=q.forwardRef(({className:o,...c},h)=>q.createElement(Wb,{ref:h,iconNode:i,className:Qv(`lucide-${Vb(Dm(n))}`,`lucide-${n}`,o),...c}));return s.displayName=Dm(n),s};/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ib=[["path",{d:"M10 16c.5.3 1.2.5 2 .5s1.5-.2 2-.5",key:"1u7htd"}],["path",{d:"M15 12h.01",key:"1k8ypt"}],["path",{d:"M19.38 6.813A9 9 0 0 1 20.8 10.2a2 2 0 0 1 0 3.6 9 9 0 0 1-17.6 0 2 2 0 0 1 0-3.6A9 9 0 0 1 12 3c2 0 3.5 1.1 3.5 2.5s-.9 2.5-2 2.5c-.8 0-1.5-.4-1.5-1",key:"11xh7x"}],["path",{d:"M9 12h.01",key:"157uk2"}]],ex=st("baby",Ib);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tx=[["path",{d:"M4 10a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v10a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2z",key:"1ol0lm"}],["path",{d:"M8 10h8",key:"c7uz4u"}],["path",{d:"M8 18h8",key:"1no2b1"}],["path",{d:"M8 22v-6a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v6",key:"1fr6do"}],["path",{d:"M9 6V4a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2",key:"donm21"}]],ax=st("backpack",tx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lx=[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2h4.001A2 2 0 0022 17v-1.344",key:"144kbk"}]],nx=st("book-open-check",lx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ux=[["path",{d:"M12 5v16",key:"1f6ucr"}],["path",{d:"M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z",key:"1fyvmf"}]],Hv=st("book-open",ux);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ix=[["path",{d:"M17 3a2 2 0 0 1 2 2v15a1 1 0 0 1-1.496.868l-4.512-2.578a2 2 0 0 0-1.984 0l-4.512 2.578A1 1 0 0 1 5 20V5a2 2 0 0 1 2-2z",key:"oz39mx"}]],rx=st("bookmark",ix);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sx=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Bv=st("chevron-left",sx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ox=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Lv=st("chevron-right",ox);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cx=[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]],fx=st("graduation-cap",cx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dx=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],hx=st("headphones",dx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mx=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],vx=st("layers",mx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const px=[["path",{d:"M16 10a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 14.286V4a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z",key:"1n2ejm"}],["path",{d:"M20 9a2 2 0 0 1 2 2v10.286a.71.71 0 0 1-1.212.502l-2.202-2.202A2 2 0 0 0 17.172 19H10a2 2 0 0 1-2-2v-1",key:"1qfcsi"}]],yx=st("messages-square",px);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gx=[["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-4 0v-9a2 2 0 0 1 2-2h2",key:"39pd36"}],["rect",{width:"8",height:"4",x:"10",y:"6",rx:"1",key:"aywv1n"}]],bx=st("newspaper",gx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xx=[["path",{d:"M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z",key:"e79jfc"}],["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}]],Sx=st("palette",xx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jx=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],ac=st("search",jx);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ox=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 14s1.5 2 4 2 4-2 4-2",key:"1y1vjs"}],["line",{x1:"9",x2:"9.01",y1:"9",y2:"9",key:"yxxnd0"}],["line",{x1:"15",x2:"15.01",y1:"9",y2:"9",key:"1p4y9e"}]],_x=st("smile",Ox);/**
 * @license lucide-react v1.27.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ex=[["circle",{cx:"12",cy:"8",r:"5",key:"1hypcn"}],["path",{d:"M20 21a8 8 0 0 0-16 0",key:"rfgkzh"}]],Nx=st("user-round",Ex),Rm="/media/images/capas/capa-placeholder.svg",Uo="biblioteca_modo_exibicao";function Um(){if(typeof window>"u")return"desktop";const n=window.innerWidth;return n<768?"mobile":n<1024?"tablet":"desktop"}function Ax(){const[n,i]=q.useState(Um);return q.useEffect(()=>{function s(){i(Um())}return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),n}function dn({livros:n,titulo:i}){const{data:s}=ne.config.obter.useQuery(),o=Ax(),[c,h]=q.useState(()=>typeof window>"u"?"grade":localStorage.getItem(Uo)||"grade");q.useEffect(()=>{s&&!localStorage.getItem(Uo)&&h(s.modoPadrao)},[s]);function m(p){h(p),localStorage.setItem(Uo,p)}const v=o==="desktop"?s?.colunasDesktop??4:o==="tablet"?s?.colunasTablet??2:null;return d.jsxs("section",{children:[d.jsxs("div",{className:"flex items-center justify-between mb-4",children:[d.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}),d.jsxs("div",{className:"flex gap-1",children:[d.jsx("button",{"aria-label":"ver em grade","aria-pressed":c==="grade",onClick:()=>m("grade"),className:"w-8 h-8 flex items-center justify-center rounded transition-colors",style:qm(c==="grade"),children:d.jsx(Cx,{})}),d.jsx("button",{"aria-label":"ver em lista","aria-pressed":c==="lista",onClick:()=>m("lista"),className:"w-8 h-8 flex items-center justify-center rounded transition-colors",style:qm(c==="lista"),children:d.jsx(Tx,{})})]})]}),c==="grade"?d.jsx("div",{className:"grid gap-x-5 gap-y-8",style:{gridTemplateColumns:v?`repeat(${v}, 1fr)`:"repeat(auto-fill, minmax(120px, 1fr))"},children:n.map(p=>d.jsxs("a",{href:`/livro/${p.id}`,className:"group block",children:[d.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:d.jsx("img",{src:p.capaUrl||Rm,alt:p.titulo,className:"w-full aspect-[2/3] object-cover transition-transform duration-300 group-hover:scale-105"})}),d.jsx("p",{className:"text-sm mt-2 leading-snug line-clamp-2 transition-colors group-hover:text-[var(--clr-dourado-400)]",style:{color:"var(--clr-branco)"},children:p.titulo}),d.jsx("p",{className:"text-xs mt-0.5",style:{color:"var(--color-text-on-dark-muted)"},children:p.autor})]},p.id))}):d.jsx("div",{className:"flex flex-col gap-2",children:n.map(p=>d.jsxs("a",{href:`/livro/${p.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:[d.jsx("img",{src:p.capaUrl||Rm,alt:p.titulo,className:"w-12 aspect-[2/3] object-cover rounded flex-shrink-0 shadow"}),d.jsxs("div",{className:"min-w-0",children:[d.jsx("p",{className:"text-sm truncate",style:{color:"var(--clr-branco)"},children:p.titulo}),d.jsxs("p",{className:"text-xs truncate",style:{color:"var(--color-text-on-dark-muted)"},children:[p.autor,p.serie?` · ${p.serie}`:""]})]})]},p.id))})]})}function qm(n){return{background:n?"var(--clr-dourado-alpha12)":"transparent",color:n?"var(--clr-dourado-400)":"var(--color-text-on-dark-subtle)"}}function Cx(){return d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[d.jsx("rect",{x:"1",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),d.jsx("rect",{x:"9",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),d.jsx("rect",{x:"1",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"}),d.jsx("rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"})]})}function Tx(){return d.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[d.jsx("rect",{x:"1",y:"2",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),d.jsx("rect",{x:"1",y:"6.75",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),d.jsx("rect",{x:"1",y:"11.5",width:"14",height:"2.5",rx:"1",fill:"currentColor"})]})}const Mx="/media/images/capas/capa-placeholder.svg",zx="/media/images/hero-fundo.jpg";function Dx({livros:n}){const[,i]=hv(),[s,o]=q.useState(""),[c,h]=q.useState(0),m=q.useRef(null),v=3;q.useEffect(()=>{if(!(n.length<=v))return m.current=setInterval(()=>h(j=>(j+1)%n.length),5e3),()=>{m.current&&clearInterval(m.current)}},[n.length]);function p(j){h((j+n.length)%n.length),m.current&&clearInterval(m.current),n.length>v&&(m.current=setInterval(()=>h(M=>(M+1)%n.length),5e3))}function g(j){j.preventDefault(),s.trim()&&i(`/buscar?q=${encodeURIComponent(s.trim())}`)}const _=Array.from({length:Math.min(v,n.length)},(j,M)=>n[(c+M)%n.length]);return d.jsxs("section",{className:"relative w-screen left-1/2 right-1/2 -mx-[50vw]",style:{backgroundImage:`linear-gradient(90deg, rgba(18,11,5,0.94) 0%, rgba(18,11,5,0.75) 45%, rgba(18,11,5,0.35) 100%), url(${zx})`,backgroundSize:"cover",backgroundPosition:"center"},children:[d.jsx("div",{className:"max-w-6xl mx-auto px-5 pt-14 pb-10",children:d.jsxs("div",{className:"max-w-xl",children:[d.jsxs("h1",{className:"text-3xl sm:text-4xl font-semibold leading-tight mb-3",style:{fontFamily:"var(--font-display)",color:"var(--clr-off-white)"},children:["Descubra uma nova maneira de",d.jsx("br",{}),d.jsx("span",{style:{color:"var(--clr-dourado-400)"},children:"conhecer a Palavra de Deus"})]}),d.jsxs("div",{className:"flex items-center gap-3 my-4",style:{color:"var(--clr-dourado-500)"},"aria-hidden":"true",children:[d.jsx("span",{style:{height:1,width:40,background:"var(--clr-dourado-500)"}}),d.jsx("span",{style:{fontSize:"0.7rem"},children:"✦"}),d.jsx("span",{style:{height:1,width:40,background:"var(--clr-dourado-500)"}})]}),d.jsx("p",{className:"text-sm sm:text-base mb-6",style:{color:"rgba(245,230,200,0.8)"},children:"Livros, mangás, HQs, estudos bíblicos e conteúdos ilustrados para crianças, adolescentes, jovens e adultos."}),d.jsxs("form",{onSubmit:g,className:"flex gap-2 max-w-md",children:[d.jsxs("div",{className:"relative flex-1",children:[d.jsx(ac,{size:16,className:"absolute left-4 top-1/2 -translate-y-1/2",style:{color:"var(--clr-marrom-700)"}}),d.jsx("input",{value:s,onChange:j=>o(j.target.value),placeholder:"qual leitura você procura?",className:"w-full text-sm pl-10 pr-4 py-3 rounded-full focus:outline-none",style:{background:"var(--clr-off-white)",color:"var(--clr-marrom-950)"}})]}),d.jsx("button",{type:"submit",className:"flex-shrink-0 text-sm font-medium rounded-full px-6 transition-transform hover:scale-[1.03]",style:{background:"var(--clr-dourado-400)",color:"var(--clr-marrom-950)"},children:"buscar"})]})]})}),_.length>0&&d.jsx("div",{className:"max-w-6xl mx-auto px-5 pb-10 relative",children:d.jsxs("div",{className:"flex gap-4 items-stretch",children:[n.length>v&&d.jsx("button",{"aria-label":"anterior",onClick:()=>p(c-1),className:"flex-shrink-0 w-8 rounded-full flex items-center justify-center transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-alpha25)",color:"var(--clr-dourado-400)"},children:d.jsx(Bv,{size:16})}),_.map((j,M)=>d.jsxs("a",{href:`/livro/${j.id}`,className:"relative flex-1 rounded-lg overflow-hidden group min-h-[110px] transition-transform duration-300 hover:scale-[1.02]",style:{boxShadow:"var(--shadow-dourado-md)"},children:[d.jsx("img",{src:j.capaUrl||Mx,alt:"",className:"absolute inset-0 w-full h-full object-cover"}),d.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to top, rgba(18,11,5,0.9) 0%, rgba(18,11,5,0.2) 60%)"}}),d.jsx("div",{className:"relative p-4 h-full flex items-end",children:d.jsx("p",{className:"text-sm font-medium",style:{color:"var(--clr-off-white)",fontFamily:"var(--font-display)"},children:j.titulo})})]},`${j.id}-${c}-${M}`)),n.length>v&&d.jsx("button",{"aria-label":"próximo",onClick:()=>p(c+1),className:"flex-shrink-0 w-8 rounded-full flex items-center justify-center transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-alpha25)",color:"var(--clr-dourado-400)"},children:d.jsx(Lv,{size:16})})]})})]})}function hn(){const n=ne.useUtils(),{data:i,isLoading:s}=ne.auth.me.useQuery(),o=ne.auth.login.useMutation({onSuccess:()=>n.auth.me.invalidate()}),c=ne.auth.register.useMutation({onSuccess:()=>n.auth.me.invalidate()}),h=ne.auth.logout.useMutation({onSuccess:()=>n.auth.me.invalidate()}),m=i?.papel==="editor"||i?.papel==="admin";return{usuario:i,isLoading:s,login:o,registrar:c,logout:h,podePublicar:m}}const Rx=[{valor:"texto",rotulo:"Livros"},{valor:"manga",rotulo:"Mangás"},{valor:"hq",rotulo:"HQs"},{valor:"ilustrado",rotulo:"Ilustrados"},{valor:"revista",rotulo:"Revistas"},{valor:"apostila",rotulo:"Apostilas"}],Ux=[{valor:"primeiros_leitores",rotulo:"Primeiros leitores"},{valor:"infantil",rotulo:"Infantil"},{valor:"pre_adolescente",rotulo:"Pré-adolescentes"},{valor:"adolescente",rotulo:"Adolescentes"},{valor:"jovem",rotulo:"Jovens"},{valor:"adulto",rotulo:"Adultos"}];function wm({rotulo:n,children:i}){return d.jsxs("div",{className:"relative group",children:[d.jsxs("button",{className:"text-sm py-2 transition-colors hover:text-[var(--clr-dourado-400)] flex items-center gap-1",style:{color:"var(--clr-dourado-300)",fontFamily:"var(--font-ui)"},children:[n,d.jsx("span",{className:"text-[10px] opacity-70",children:"▾"})]}),d.jsx("div",{className:"absolute left-0 top-full pt-2 opacity-0 invisible translate-y-1 transition-all duration-150 group-hover:opacity-100 group-hover:visible group-hover:translate-y-0 z-20",children:d.jsx("div",{className:"rounded-lg p-4 shadow-2xl min-w-[220px]",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)"},children:i})})]})}function mu({href:n,children:i}){return d.jsx("a",{href:n,className:"block text-sm py-1.5 px-2 rounded transition-colors hover:bg-[var(--clr-dourado-alpha12)] whitespace-nowrap",style:{color:"var(--clr-off-white)"},children:i})}function Vt({buscaInicial:n=""}){const[,i]=hv(),[s,o]=q.useState(n),{usuario:c,podePublicar:h}=hn(),{data:m}=ne.menu.listar.useQuery(),{data:v}=ne.colecoes.listar.useQuery();function p(g){g.preventDefault(),s.trim()&&i(`/buscar?q=${encodeURIComponent(s.trim())}`)}return d.jsx("header",{className:"sticky top-0 z-30 backdrop-blur-sm",style:{borderBottom:"1px solid var(--clr-dourado-alpha25)",background:"rgba(18,11,5,0.85)"},children:d.jsxs("div",{className:"flex items-center justify-between gap-4 px-5 py-2.5 max-w-6xl mx-auto",children:[d.jsx("a",{href:"/",className:"flex-shrink-0",children:d.jsx("img",{src:"/media/images/logo-biblioteca-onfide.png",alt:"Biblioteca OnFide",className:"h-11"})}),d.jsxs("nav",{className:"hidden md:flex items-center gap-6 flex-shrink-0",children:[d.jsx(wm,{rotulo:"Explorar",children:d.jsxs("div",{className:"flex gap-6",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-[10px] uppercase mb-1",style:{color:"var(--clr-dourado-500)",letterSpacing:"var(--tracking-wider)"},children:"formato"}),Rx.map(g=>d.jsx(mu,{href:`/explorar?formato=${g.valor}`,children:g.rotulo},g.valor))]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-[10px] uppercase mb-1",style:{color:"var(--clr-dourado-500)",letterSpacing:"var(--tracking-wider)"},children:"público"}),Ux.map(g=>d.jsx(mu,{href:`/explorar?publico=${g.valor}`,children:g.rotulo},g.valor))]}),v&&v.length>0&&d.jsxs("div",{children:[d.jsx("p",{className:"text-[10px] uppercase mb-1",style:{color:"var(--clr-dourado-500)",letterSpacing:"var(--tracking-wider)"},children:"coleções"}),v.map(g=>d.jsx(mu,{href:`/colecao/${g.id}`,children:g.nome},g.id))]})]})}),d.jsxs(wm,{rotulo:"Ecossistema ONFIDE",children:[d.jsx(mu,{href:"https://spot.onfide.com.br",children:"SpotOnFide — podcast e música"}),d.jsx(mu,{href:"https://onfide.com.br",children:"ONFIDE"})]}),m?.map(g=>d.jsx("a",{href:g.url,className:"text-sm py-2 transition-colors hover:text-[var(--clr-dourado-400)]",style:{color:"var(--clr-dourado-300)",fontFamily:"var(--font-ui)"},children:g.rotulo},g.id))]}),d.jsxs("form",{onSubmit:p,className:"flex-1 max-w-xs relative hidden lg:block",children:[d.jsx(ac,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2",style:{color:"var(--clr-marrom-700)"}}),d.jsx("input",{value:s,onChange:g=>o(g.target.value),placeholder:"buscar título, autor, série...",className:"w-full text-sm pl-9 pr-3 py-2 rounded-full transition-colors focus:outline-none",style:{border:"1px solid var(--clr-dourado-alpha25)",background:"var(--clr-off-white)",color:"var(--clr-marrom-950)"}})]}),d.jsx("div",{className:"flex items-center gap-2 flex-shrink-0",children:c?d.jsxs(d.Fragment,{children:[d.jsx("a",{href:"/minha-biblioteca",className:"text-xs rounded-full px-4 py-2 transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)"},children:"minha biblioteca"}),h&&d.jsx("a",{href:"/admin",className:"text-xs rounded-full px-4 py-2 transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)"},children:"área do editor"})]}):d.jsx("a",{href:"/entrar",className:"text-xs rounded-full px-5 py-2 transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)"},children:"entrar"})})]})})}function Jt(){const n=new Date().getFullYear();return d.jsx("footer",{className:"mt-16",style:{background:"var(--clr-marrom-950)",borderTop:"1px solid var(--clr-dourado-alpha25)"},children:d.jsxs("div",{className:"max-w-5xl mx-auto px-5 py-10",children:[d.jsxs("div",{className:"flex flex-col sm:flex-row sm:justify-between gap-8",children:[d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("img",{src:"/media/images/logo-biblioteca-onfide.png",alt:"Biblioteca OnFide",className:"h-10"}),d.jsx("p",{className:"text-sm max-w-xs",style:{color:"rgba(245,230,200,0.6)"},children:"Parte do ecossistema ONFIDE — literatura cristã pensada com o mesmo cuidado hermenêutico de tudo que produzimos."})]}),d.jsxs("div",{className:"flex flex-col gap-2",children:[d.jsx("span",{className:"text-xs uppercase mb-1",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-wider)",color:"var(--clr-dourado-500)"},children:"ecossistema"}),d.jsx("a",{href:"https://spot.onfide.com.br",className:"text-sm transition-colors hover:text-[var(--clr-dourado-400)]",style:{color:"rgba(245,230,200,0.75)"},children:"SpotOnFide ›"}),d.jsx("a",{href:"https://onfide.com.br",className:"text-sm transition-colors hover:text-[var(--clr-dourado-400)]",style:{color:"rgba(245,230,200,0.75)"},children:"ONFIDE ›"})]})]}),d.jsxs("div",{className:"mt-10 pt-6 text-xs",style:{borderTop:"1px solid var(--clr-dourado-alpha25)",color:"rgba(245,230,200,0.4)"},children:["© ",n," Biblioteca OnFide. Todos os direitos reservados."]})]})})}const qx="/media/images/capas/capa-placeholder.svg";function vu({eyebrow:n,titulo:i}){return d.jsxs("div",{className:"mb-6",children:[d.jsx("span",{className:"text-xs font-bold uppercase block mb-2",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-caps)",color:"var(--clr-dourado-500)"},children:n}),d.jsx("h2",{className:"text-xl sm:text-2xl font-semibold",style:{fontFamily:"var(--font-display)",color:"var(--clr-off-white)"},children:i})]})}const wx=[{n:"01",t:"Escolha",d:"Explore o acervo por formato, público ou tema.",Icone:ac},{n:"02",t:"Comece",d:"Abra qualquer obra e leia direto no navegador.",Icone:Hv},{n:"03",t:"Continue",d:"Sua próxima leitura sempre estará esperando por você.",Icone:rx}],Qx=[{valor:"texto",rotulo:"Livros",desc:"Teologia, estudos e ensaios em texto corrido.",Icone:Hv},{valor:"manga",rotulo:"Mangás",desc:"Narrativas bíblicas em estilo mangá.",Icone:yx},{valor:"hq",rotulo:"HQs",desc:"Histórias em quadrinhos e graphic novels.",Icone:vx},{valor:"ilustrado",rotulo:"Ilustrados",desc:"Livros com arte em cada página.",Icone:Sx},{valor:"revista",rotulo:"Revistas",desc:"Edições periódicas do ecossistema ONFIDE.",Icone:bx},{valor:"apostila",rotulo:"Apostilas",desc:"Material de estudo estruturado.",Icone:fx}],Hx=[{valor:"primeiros_leitores",rotulo:"Primeiros leitores",faixa:"0–5 anos",Icone:ex},{valor:"infantil",rotulo:"Crianças",faixa:"6–9 anos",Icone:_x},{valor:"pre_adolescente",rotulo:"Pré-adolescentes",faixa:"10–12 anos",Icone:ax},{valor:"adolescente",rotulo:"Adolescentes",faixa:"13–17 anos",Icone:hx},{valor:"jovem",rotulo:"Jovens",faixa:"18–29 anos",Icone:Nx},{valor:"adulto",rotulo:"Adultos",faixa:"30+",Icone:nx}],Bx=["Continue exatamente de onde parou, em qualquer aparelho","Grife trechos, adicione notas e compartilhe passagens","Marque quantas páginas quiser pra voltar depois","Tema de leitura claro, escuro ou sépia — do seu jeito","Ajuste o tamanho da fonte na hora","Descubra novas leituras relacionadas ao que você acabou de ler"],Lx=[{p:"O que é a Biblioteca OnFide?",r:"Um ambiente de leitura cristã para toda a família — livros, mangás, HQs, estudos e devocionais, organizados pra você sempre encontrar a próxima leitura."},{p:"Preciso pagar?",r:"Não. Todo o acervo é gratuito."},{p:"Preciso baixar algum aplicativo?",r:"Não. A leitura acontece direto no navegador — e você pode instalar a Biblioteca como app do seu celular, se quiser, sem passar por loja de aplicativos."},{p:"Posso continuar de onde parei?",r:"Sim. Toda leitura salva automaticamente sua posição, em texto ou em página, e retoma sozinha na próxima visita."},{p:"Como encontro um assunto específico?",r:"Pela busca no topo, por coleções temáticas, ou navegando por formato e público na Home."},{p:"Quem produz os conteúdos?",r:"A equipe ONFIDE e colaboradores convidados — autores, ilustradores e tradutores creditados em cada obra."}];function Yx({pergunta:n,resposta:i}){const[s,o]=q.useState(!1);return d.jsxs("div",{style:{borderBottom:"1px solid var(--clr-dourado-alpha25)"},className:"py-3",children:[d.jsxs("button",{className:"w-full flex items-center justify-between text-left",onClick:()=>o(c=>!c),children:[d.jsx("span",{className:"text-sm font-medium",style:{color:"var(--clr-off-white)"},children:n}),d.jsx("span",{style:{color:"var(--clr-dourado-400)"},className:"text-lg leading-none",children:s?"−":"+"})]}),s&&d.jsx("p",{className:"text-sm mt-2",style:{color:"rgba(245,230,200,0.7)"},children:i})]})}function Gx({livros:n}){const[i,s]=q.useState(0),o=6,c=Math.max(0,n.length-o);return d.jsxs("section",{className:"mb-14",children:[d.jsxs("div",{className:"flex items-center justify-between mb-4",children:[d.jsx("span",{className:"text-xs font-bold uppercase",style:{fontFamily:"var(--font-ui)",letterSpacing:"var(--tracking-caps)",color:"var(--clr-dourado-500)"},children:"novidades"}),d.jsx("a",{href:"/explorar",className:"text-xs rounded-full px-4 py-1.5 transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-500)",color:"var(--clr-dourado-400)"},children:"ver todos os livros"})]}),d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("button",{"aria-label":"anterior",disabled:i===0,onClick:()=>s(h=>Math.max(0,h-o)),className:"flex-shrink-0 w-8 h-8 rounded-full flex items-center justify-center transition-colors disabled:opacity-30 hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-alpha25)",color:"var(--clr-dourado-400)"},children:d.jsx(Bv,{size:16})}),d.jsx("div",{className:"flex-1 grid grid-cols-3 sm:grid-cols-6 gap-3 overflow-hidden",children:n.slice(i,i+o).map(h=>d.jsxs("a",{href:`/livro/${h.id}`,className:"group block",children:[d.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-transform duration-200 group-hover:-translate-y-1",children:d.jsx("img",{src:h.capaUrl||qx,alt:h.titulo,className:"w-full aspect-[2/3] object-cover"})}),d.jsx("p",{className:"text-xs mt-2 leading-snug line-clamp-2",style:{color:"var(--clr-off-white)"},children:h.titulo}),d.jsx("p",{className:"text-[11px]",style:{color:"rgba(245,230,200,0.5)"},children:h.autor})]},h.id))}),d.jsx("button",{"aria-label":"próximo",disabled:i>=c,onClick:()=>s(h=>Math.min(c,h+o)),className:"flex-shrink-0 w-8 h-8 rounded-full flex items-center justify-center transition-colors disabled:opacity-30 hover:bg-[var(--clr-dourado-alpha12)]",style:{border:"1px solid var(--clr-dourado-alpha25)",color:"var(--clr-dourado-400)"},children:d.jsx(Lv,{size:16})})]})]})}function Xx(){const{data:n,isLoading:i}=ne.biblioteca.getCatalogo.useQuery(),{data:s}=ne.biblioteca.getDestaques.useQuery(),{data:o}=ne.biblioteca.getNovidades.useQuery(),c=new Set((s??[]).map(m=>m.id)),h=(n??[]).filter(m=>!c.has(m.id));return d.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",fontFamily:"var(--font-corpo)"},children:[d.jsx(Vt,{}),s&&s.length>0&&d.jsx(Dx,{livros:s}),d.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-12 pb-16 flex-1 w-full",children:[i&&d.jsx("p",{className:"text-sm",style:{color:"rgba(245,230,200,0.6)"},children:"carregando..."}),!i&&(!n||n.length===0)&&d.jsxs("div",{className:"rounded-lg p-10 text-center mb-14",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)",color:"rgba(245,230,200,0.7)"},children:[d.jsx("p",{className:"text-xl mb-2",style:{fontFamily:"var(--font-display)",color:"var(--clr-off-white)"},children:"A estante ainda está sendo montada"}),d.jsx("p",{className:"text-sm",children:"Em breve os primeiros livros aparecem aqui."})]}),d.jsxs("section",{className:"mb-14",children:[d.jsx(vu,{eyebrow:"como funciona",titulo:"Ler nunca foi tão simples"}),d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-4",children:wx.map(m=>d.jsxs("div",{className:"rounded-lg p-5",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)"},children:[d.jsx("div",{className:"w-11 h-11 rounded-full flex items-center justify-center mb-3",style:{background:"var(--clr-dourado-alpha12)",color:"var(--clr-dourado-400)"},children:d.jsx(m.Icone,{size:18})}),d.jsx("span",{style:{fontFamily:"var(--font-display)",fontSize:"0.85rem",color:"var(--clr-dourado-500)"},children:m.n}),d.jsx("p",{className:"font-medium mt-1",style:{color:"var(--clr-off-white)"},children:m.t}),d.jsx("p",{className:"text-sm mt-1",style:{color:"rgba(245,230,200,0.65)"},children:m.d})]},m.n))})]}),d.jsxs("section",{className:"mb-14",children:[d.jsx(vu,{eyebrow:"o acervo",titulo:"Um universo inteiro de conteúdo cristão"}),d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-3",children:Qx.map(m=>d.jsxs("a",{href:`/explorar?formato=${m.valor}`,className:"rounded-lg p-4 transition-colors hover:bg-[var(--clr-dourado-alpha12)] flex items-start gap-3",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)"},children:[d.jsx(m.Icone,{size:20,style:{color:"var(--clr-dourado-400)",flexShrink:0,marginTop:2}}),d.jsxs("div",{children:[d.jsx("p",{className:"font-medium text-sm",style:{color:"var(--clr-off-white)"},children:m.rotulo}),d.jsx("p",{className:"text-xs mt-1",style:{color:"rgba(245,230,200,0.6)"},children:m.desc})]})]},m.valor))})]}),d.jsxs("section",{className:"mb-14",children:[d.jsx(vu,{eyebrow:"para toda a família",titulo:"Leitura pensada pra cada idade"}),d.jsx("div",{className:"grid grid-cols-3 sm:grid-cols-6 gap-3",children:Hx.map(m=>d.jsxs("a",{href:`/explorar?publico=${m.valor}`,className:"rounded-lg p-3 text-center transition-colors hover:bg-[var(--clr-dourado-alpha12)]",style:{background:"var(--clr-marrom-900)",border:"1px solid var(--clr-dourado-alpha25)"},children:[d.jsx(m.Icone,{size:20,className:"mx-auto mb-2",style:{color:"var(--clr-dourado-400)"}}),d.jsx("p",{className:"font-medium text-xs",style:{color:"var(--clr-off-white)"},children:m.rotulo}),d.jsx("p",{className:"text-[11px] mt-0.5",style:{color:"rgba(245,230,200,0.55)"},children:m.faixa})]},m.valor))})]}),o&&o.length>0&&d.jsx(Gx,{livros:o}),h.length>0&&d.jsx(dn,{livros:h,titulo:"todos os livros"}),d.jsxs("section",{className:"grid grid-cols-1 sm:grid-cols-2 gap-10 mt-4",children:[d.jsxs("div",{children:[d.jsx(vu,{eyebrow:"a experiência",titulo:"Por que ler na Biblioteca OnFide"}),d.jsx("div",{className:"space-y-2",children:Bx.map(m=>d.jsxs("div",{className:"flex items-start gap-2 text-sm",style:{color:"rgba(245,230,200,0.75)"},children:[d.jsx("span",{style:{color:"var(--clr-dourado-400)"},children:"✓"}),m]},m))})]}),d.jsxs("div",{children:[d.jsx(vu,{eyebrow:"dúvidas",titulo:"Perguntas frequentes"}),d.jsx("div",{children:Lx.map(m=>d.jsx(Yx,{pergunta:m.p,resposta:m.r},m.p))})]})]})]}),d.jsx(Jt,{})]})}const kx="/media/images/capas/capa-placeholder.svg",Le={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},Zx=[{valor:"texto",rotulo:"Texto (DOCX → EPUB)"},{valor:"ilustrado",rotulo:"Livro ilustrado (páginas de imagem)"},{valor:"manga",rotulo:"Mangá (páginas de imagem)"},{valor:"hq",rotulo:"HQ / Graphic novel (páginas de imagem)"},{valor:"revista",rotulo:"Revista (páginas de imagem)"},{valor:"apostila",rotulo:"Apostila (DOCX → EPUB)"}],Kx=["ilustrado","manga","hq","revista"],Vx=[{valor:"",rotulo:"toda a família"},{valor:"primeiros_leitores",rotulo:"primeiros leitores (0–5)"},{valor:"infantil",rotulo:"infantil (6–9)"},{valor:"pre_adolescente",rotulo:"pré-adolescente (10–12)"},{valor:"adolescente",rotulo:"adolescente (13–17)"},{valor:"jovem",rotulo:"jovem (18–29)"},{valor:"adulto",rotulo:"adulto (30+)"}];function Jx({livroExistente:n,aoTerminar:i}){const s=ne.useUtils(),o=ne.biblioteca.admin.criar.useMutation({onSuccess:()=>s.biblioteca.admin.listar.invalidate()}),c=ne.biblioteca.admin.atualizar.useMutation({onSuccess:()=>s.biblioteca.admin.listar.invalidate()}),h=ne.paginas.salvar.useMutation(),{data:m}=ne.biblioteca.getLivro.useQuery({id:n?.id??0},{enabled:!!n}),{data:v}=ne.autores.listar.useQuery(),{data:p}=ne.temas.listar.useQuery(),{data:g}=ne.colecoes.listar.useQuery(),_=ne.autores.criar.useMutation({onSuccess:()=>s.autores.listar.invalidate()}),j=ne.temas.criar.useMutation({onSuccess:()=>s.temas.listar.invalidate()}),[M,Y]=q.useState(n?.titulo??""),[k,U]=q.useState(n?.destaque??!1),[P,re]=q.useState(n?.subtitulo??""),[ve,Ae]=q.useState(n?.serie??""),[qe,$]=q.useState(n?.volumeNumero?.toString()??""),[K,z]=q.useState(n?.autor??""),[Z,I]=q.useState(n?.resumo??""),[W,ae]=q.useState(n?.formato??"texto"),[ee,pe]=q.useState(""),[oe,fe]=q.useState(""),[A,H]=q.useState([]),[G,ue]=q.useState([]),[he,x]=q.useState(""),[D,B]=q.useState(""),[L,F]=q.useState(null),[se,ye]=q.useState(null),[Ve,He]=q.useState(null),[ja,Wa]=q.useState(!1),[_l,Ia]=q.useState(null),[Pt,Oa]=q.useState(null);q.useEffect(()=>{m&&(pe(m.publicoAlvo??""),fe(m.colecaoId?.toString()??""),H(m.autores?.map(X=>X.id)??[]),ue(m.temas?.map(X=>X.id)??[]))},[m]);const dt=!!n,ju=Kx.includes(W);async function mn(X,Ce,xt,St={}){const $t=new FormData;$t.append(Ce,xt);for(const[gn,_u]of Object.entries(St))$t.append(gn,_u);const ot=await fetch(X,{method:"POST",body:$t});if(!ot.ok){const gn=await ot.json().catch(()=>({}));throw new Error(gn.erro||"Falha no upload.")}return ot.json()}async function vn(X){const Ce=new FormData;for(const St of Array.from(X))Ce.append("paginas",St);const xt=await fetch("/api/admin/upload-paginas",{method:"POST",body:Ce});if(!xt.ok){const St=await xt.json().catch(()=>({}));throw new Error(St.erro||"Falha no upload das páginas.")}return(await xt.json()).urls}function pn(){Y(""),re(""),Ae(""),$(""),z(""),I(""),ae("texto"),pe(""),fe(""),H([]),ue([]),F(null),ye(null),He(null)}async function yn(){if(!dt&&W==="texto"&&!L){Oa("Selecione o arquivo DOCX.");return}if(!dt&&ju&&!Ve){Oa("Selecione as páginas (imagens).");return}Oa(null),Wa(!0);try{let X,Ce,xt;if(L){Ia("convertendo DOCX...");const ot=await mn("/api/admin/upload-docx","arquivo",L,{titulo:M,autor:K});X=ot.docxOriginalUrl,Ce=ot.epubUrl}se&&(Ia("enviando capa..."),xt=(await mn("/api/admin/upload-capa","imagem",se)).url);const St={titulo:M,subtitulo:P||void 0,serie:ve||void 0,volumeNumero:qe?Number(qe):void 0,autor:K,resumo:Z||void 0,destaque:k,formato:W,publicoAlvo:ee||void 0,colecaoId:oe?Number(oe):void 0,autorIds:A,temaIds:G,...xt&&{capaUrl:xt},...Ce&&{epubUrl:Ce},...X&&{docxOriginalUrl:X}};let $t;if(dt?(await c.mutateAsync({id:n.id,...St}),$t=n.id):$t=(await o.mutateAsync(St)).id,ju&&Ve){Ia(`enviando ${Ve.length} páginas...`);const ot=await vn(Ve);await h.mutateAsync({livroId:$t,imagensUrl:ot})}dt||pn(),i()}catch(X){Oa(X instanceof Error?X.message:"Erro ao salvar.")}finally{Wa(!1),Ia(null)}}function Ou(X,Ce,xt){xt(X.includes(Ce)?X.filter(St=>St!==Ce):[...X,Ce])}return d.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:dt?`Editando: ${n.titulo}`:"Novo livro"}),dt&&d.jsx("button",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},onClick:i,children:"cancelar edição"})]}),d.jsx("input",{className:"w-full rounded px-3 py-2",style:Le,placeholder:"título",value:M,onChange:X=>Y(X.target.value)}),d.jsx("input",{className:"w-full rounded px-3 py-2",style:Le,placeholder:"subtítulo (opcional)",value:P,onChange:X=>re(X.target.value)}),d.jsxs("div",{className:"flex gap-3",children:[d.jsx("input",{className:"flex-1 rounded px-3 py-2",style:Le,placeholder:"série (opcional)",value:ve,onChange:X=>Ae(X.target.value)}),d.jsx("input",{className:"w-28 rounded px-3 py-2",style:Le,placeholder:"volume nº",value:qe,onChange:X=>$(X.target.value)})]}),d.jsx("input",{className:"w-full rounded px-3 py-2",style:Le,placeholder:"autor (texto de exibição)",value:K,onChange:X=>z(X.target.value)}),d.jsx("textarea",{className:"w-full rounded px-3 py-2",style:Le,placeholder:"resumo (opcional)",value:Z,onChange:X=>I(X.target.value)}),d.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[d.jsxs("label",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["formato",d.jsx("select",{className:"w-full rounded px-3 py-2 mt-1",style:Le,value:W,onChange:X=>ae(X.target.value),children:Zx.map(X=>d.jsx("option",{value:X.valor,style:{color:"#000"},children:X.rotulo},X.valor))})]}),d.jsxs("label",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["público-alvo",d.jsx("select",{className:"w-full rounded px-3 py-2 mt-1",style:Le,value:ee,onChange:X=>pe(X.target.value),children:Vx.map(X=>d.jsx("option",{value:X.valor,style:{color:"#000"},children:X.rotulo},X.valor))})]})]}),d.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["coleção (opcional)",d.jsxs("select",{className:"w-full rounded px-3 py-2 mt-1",style:Le,value:oe,onChange:X=>fe(X.target.value),children:[d.jsx("option",{value:"",style:{color:"#000"},children:"nenhuma"}),g?.map(X=>d.jsx("option",{value:X.id,style:{color:"#000"},children:X.nome},X.id))]})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm mb-1",style:{color:"var(--color-text-on-dark-muted)"},children:"colaboradores (autor/ilustrador)"}),d.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:v?.map(X=>d.jsx("button",{type:"button",onClick:()=>Ou(A,X.id,H),className:"text-xs px-3 py-1 rounded-full transition-colors",style:{border:"var(--border-medium)",background:A.includes(X.id)?"var(--clr-acento-alpha12)":"transparent",color:A.includes(X.id)?"var(--clr-acento-400)":"var(--color-text-on-dark-muted)"},children:X.nome},X.id))}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("input",{className:"flex-1 rounded px-3 py-1.5 text-sm",style:Le,placeholder:"novo colaborador...",value:he,onChange:X=>x(X.target.value)}),d.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:async()=>{if(!he)return;const X=await _.mutateAsync({nome:he});H(Ce=>[...Ce,X.id]),x("")},children:"+ adicionar"})]})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm mb-1",style:{color:"var(--color-text-on-dark-muted)"},children:"temas"}),d.jsx("div",{className:"flex flex-wrap gap-2 mb-2",children:p?.map(X=>d.jsx("button",{type:"button",onClick:()=>Ou(G,X.id,ue),className:"text-xs px-3 py-1 rounded-full transition-colors",style:{border:"var(--border-medium)",background:G.includes(X.id)?"var(--clr-acento-alpha12)":"transparent",color:G.includes(X.id)?"var(--clr-acento-400)":"var(--color-text-on-dark-muted)"},children:X.nome},X.id))}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("input",{className:"flex-1 rounded px-3 py-1.5 text-sm",style:Le,placeholder:"novo tema...",value:D,onChange:X=>B(X.target.value)}),d.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:async()=>{if(!D)return;const X=await j.mutateAsync({nome:D});ue(Ce=>[...Ce,X.id]),B("")},children:"+ adicionar"})]})]}),d.jsxs("label",{className:"flex items-center gap-2 text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:[d.jsx("input",{type:"checkbox",checked:k,onChange:X=>U(X.target.checked)}),"exibir no carrossel de destaque da Home"]}),W==="texto"||W==="apostila"?d.jsxs(d.Fragment,{children:[d.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["arquivo DOCX ",dt&&"(deixe em branco pra manter o atual)"]}),d.jsx("input",{type:"file",accept:".docx",onChange:X=>F(X.target.files?.[0]??null)})]}):d.jsxs(d.Fragment,{children:[d.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["páginas (imagens, na ordem — selecione todas de uma vez) ",dt&&"(deixe em branco pra manter as atuais)"]}),d.jsx("input",{type:"file",accept:"image/*",multiple:!0,onChange:X=>He(X.target.files)})]}),d.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["capa ",dt&&"(deixe em branco pra manter a atual)"]}),d.jsx("input",{type:"file",accept:"image/*",onChange:X=>ye(X.target.files?.[0]??null)}),_l&&d.jsx("p",{className:"text-sm",style:{color:"var(--clr-acento-400)"},children:_l}),Pt&&d.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:Pt}),d.jsx("button",{className:"btn btn-primary",onClick:yn,disabled:ja||!M||!K,children:ja?"processando...":dt?"salvar alterações":"salvar como rascunho"})]})}function Fx({aoEditar:n}){const i=ne.useUtils(),{data:s}=ne.biblioteca.admin.listar.useQuery(),[o,c]=q.useState(""),h=ne.biblioteca.admin.atualizar.useMutation({onSuccess:()=>i.biblioteca.admin.listar.invalidate()}),m=ne.biblioteca.admin.excluir.useMutation({onSuccess:()=>i.biblioteca.admin.listar.invalidate()}),v=s?.filter(g=>g.titulo.toLowerCase().includes(o.toLowerCase())||g.autor.toLowerCase().includes(o.toLowerCase()));function p(g,_){window.confirm(`Excluir "${_}" permanentemente? Essa ação não pode ser desfeita.`)&&m.mutate({id:g})}return d.jsxs("div",{className:"mt-8 space-y-3",children:[d.jsxs("div",{className:"flex items-center justify-between gap-3",children:[d.jsxs("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:["Livros ",s?`(${s.length})`:""]}),d.jsx("input",{value:o,onChange:g=>c(g.target.value),placeholder:"filtrar por título ou autor...",className:"rounded px-3 py-1.5 text-sm",style:{...Le,maxWidth:240}})]}),d.jsxs("div",{className:"space-y-2",children:[v?.map(g=>d.jsxs("div",{className:"flex items-center gap-3 rounded-md p-2",style:{border:"var(--border-thin)"},children:[d.jsx("img",{src:g.capaUrl||kx,alt:"",className:"w-10 aspect-[2/3] object-cover rounded flex-shrink-0"}),d.jsxs("div",{className:"flex-1 min-w-0",children:[d.jsx("p",{className:"text-sm truncate",children:g.titulo}),d.jsxs("p",{className:"text-xs flex items-center gap-2",style:{color:"var(--color-text-on-dark-muted)"},children:[d.jsx("span",{className:"px-1.5 py-0.5 rounded",style:{background:g.status==="publicado"?"var(--clr-acento-alpha12)":"rgba(255,255,255,0.06)",color:g.status==="publicado"?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)"},children:g.status}),g.epubUrl?"epub ok":"sem epub",g.serie?` · ${g.serie}`:""]})]}),d.jsxs("div",{className:"flex gap-1 flex-shrink-0",children:[d.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem"},onClick:()=>n(g),children:"editar"}),d.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem"},onClick:()=>h.mutate({id:g.id,status:g.status==="publicado"?"rascunho":"publicado"}),children:g.status==="publicado"?"despublicar":"publicar"}),d.jsx("button",{className:"btn btn-ghost text-xs",style:{padding:"0.35rem 0.7rem",color:"#ff8080"},onClick:()=>p(g.id,g.titulo),children:"excluir"})]})]},g.id)),v?.length===0&&d.jsx("p",{className:"text-sm",style:{color:"var(--color-text-on-dark-subtle)"},children:"nenhum livro encontrado."})]})]})}function Px(){const{data:n}=ne.config.obter.useQuery(),i=ne.useUtils(),s=ne.config.atualizar.useMutation({onSuccess:()=>i.config.obter.invalidate()});return n?d.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[d.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Configurações de exibição"}),d.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."}),d.jsxs("div",{className:"flex gap-4 items-center",children:[d.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no desktop",d.jsx("input",{type:"number",min:1,max:6,defaultValue:n.colunasDesktop,className:"w-full rounded px-3 py-2 mt-1",style:Le,onBlur:o=>s.mutate({colunasDesktop:Number(o.target.value)})})]}),d.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no tablet",d.jsx("input",{type:"number",min:1,max:6,defaultValue:n.colunasTablet,className:"w-full rounded px-3 py-2 mt-1",style:Le,onBlur:o=>s.mutate({colunasTablet:Number(o.target.value)})})]})]}),d.jsxs("label",{className:"text-sm block",style:{color:"var(--color-text-on-dark-muted)"},children:["modo padrão pra quem visita pela primeira vez",d.jsxs("select",{defaultValue:n.modoPadrao,className:"w-full rounded px-3 py-2 mt-1",style:Le,onChange:o=>s.mutate({modoPadrao:o.target.value}),children:[d.jsx("option",{value:"grade",style:{color:"#000"},children:"grade"}),d.jsx("option",{value:"lista",style:{color:"#000"},children:"lista"})]})]}),d.jsxs("label",{className:"text-sm block",style:{color:"var(--color-text-on-dark-muted)"},children:["quantidade de slides no carrossel de destaque",d.jsx("input",{type:"number",min:1,max:10,defaultValue:n.qtdSlidesHero,className:"w-full rounded px-3 py-2 mt-1",style:Le,onBlur:o=>s.mutate({qtdSlidesHero:Number(o.target.value)})}),d.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 $x(){const{data:n}=ne.menu.listar.useQuery(),i=ne.useUtils(),s=ne.menu.criar.useMutation({onSuccess:()=>i.menu.listar.invalidate()}),o=ne.menu.atualizar.useMutation({onSuccess:()=>i.menu.listar.invalidate()}),c=ne.menu.excluir.useMutation({onSuccess:()=>i.menu.listar.invalidate()}),[h,m]=q.useState(""),[v,p]=q.useState("");function g(){!h||!v||(s.mutate({rotulo:h,url:v,ordem:(n?.length??0)+1}),m(""),p(""))}return d.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[d.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Menu de navegação"}),d.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."}),d.jsxs("div",{className:"space-y-2",children:[n?.map(_=>d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("input",{defaultValue:_.rotulo,className:"flex-1 rounded px-3 py-1.5 text-sm",style:Le,onBlur:j=>o.mutate({id:_.id,rotulo:j.target.value})}),d.jsx("input",{defaultValue:_.url,className:"flex-1 rounded px-3 py-1.5 text-sm",style:Le,onBlur:j=>o.mutate({id:_.id,url:j.target.value})}),d.jsx("button",{className:"text-xs flex-shrink-0",style:{color:"#ff8080"},onClick:()=>c.mutate({id:_.id}),children:"remover"})]},_.id)),n?.length===0&&d.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-subtle)"},children:"nenhum item ainda."})]}),d.jsxs("div",{className:"flex items-center gap-2 pt-2",style:{borderTop:"var(--border-thin)"},children:[d.jsx("input",{placeholder:"rótulo (ex: Sobre)",value:h,onChange:_=>m(_.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:Le}),d.jsx("input",{placeholder:"url (ex: /serie/Quatro Cavalos)",value:v,onChange:_=>p(_.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:Le}),d.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:g,children:"+ adicionar"})]})]})}function Wx(){const{data:n}=ne.colecoes.listar.useQuery(),i=ne.useUtils(),s=ne.colecoes.criar.useMutation({onSuccess:()=>i.colecoes.listar.invalidate()}),o=ne.colecoes.atualizar.useMutation({onSuccess:()=>i.colecoes.listar.invalidate()}),c=ne.colecoes.excluir.useMutation({onSuccess:()=>i.colecoes.listar.invalidate()}),[h,m]=q.useState(""),[v,p]=q.useState("");return d.jsxs("div",{className:"mt-8 space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[d.jsx("h2",{className:"font-medium",style:{fontFamily:"var(--font-display)"},children:"Coleções"}),d.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:'Prateleiras temáticas (ex: "Heróis da Fé") que podem reunir várias séries ou obras avulsas — diferente de série, que é sequencial dentro de uma coleção.'}),d.jsx("div",{className:"space-y-2",children:n?.map(g=>d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("input",{defaultValue:g.nome,className:"flex-1 rounded px-3 py-1.5 text-sm",style:Le,onBlur:_=>o.mutate({id:g.id,nome:_.target.value})}),d.jsx("button",{className:"text-xs flex-shrink-0",style:{color:"#ff8080"},onClick:()=>c.mutate({id:g.id}),children:"remover"})]},g.id))}),d.jsxs("div",{className:"flex items-center gap-2 pt-2",style:{borderTop:"var(--border-thin)"},children:[d.jsx("input",{placeholder:"nova coleção (ex: Heróis da Fé)",value:h,onChange:g=>m(g.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:Le}),d.jsx("input",{placeholder:"descrição curta (opcional)",value:v,onChange:g=>p(g.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:Le}),d.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:()=>{h&&(s.mutate({nome:h,descricao:v||void 0}),m(""),p(""))},children:"+ adicionar"})]})]})}function Ix(){const{usuario:n,isLoading:i,podePublicar:s,logout:o}=hn(),[c,h]=q.useState(null);return i?null:n?s?d.jsx("div",{className:"min-h-dvh",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:d.jsxs("div",{className:"max-w-2xl mx-auto p-6",children:[d.jsxs("div",{className:"flex justify-between items-center mb-6",children:[d.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",className:"h-7"}),d.jsx("button",{style:{color:"var(--color-text-on-dark-muted)"},className:"text-sm",onClick:()=>o.mutate(),children:"sair"})]}),d.jsx(Jx,{livroExistente:c,aoTerminar:()=>h(null)},c?.id??"novo"),d.jsx(Fx,{aoEditar:h}),d.jsx(Px,{}),d.jsx(Wx,{}),d.jsx($x,{})]})}):d.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."}):(window.location.href="/entrar",null)}const e1="/media/images/capas/capa-placeholder.svg";function t1(){const{id:n}=tr(),i=Number(n),{data:s,isLoading:o}=ne.biblioteca.getLivro.useQuery({id:i}),{data:c}=ne.auth.me.useQuery(),{data:h}=ne.biblioteca.favoritos.status.useQuery({livroId:i},{enabled:!!c&&!Number.isNaN(i)}),m=ne.useUtils(),v=ne.biblioteca.favoritos.alternar.useMutation({onSuccess:()=>m.biblioteca.favoritos.status.invalidate({livroId:i})});return o?d.jsx("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)",display:"flex",alignItems:"center",justifyContent:"center"},children:d.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."})}):s?d.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[d.jsx(Vt,{}),d.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:[d.jsxs("div",{className:"relative",children:[d.jsx("img",{src:s.capaUrl||e1,alt:s.titulo,style:{width:180,aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-lg)",boxShadow:"var(--shadow-borgonha-md)"}}),c&&d.jsx("button",{"aria-label":"favoritar",onClick:()=>v.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:h?.favorito?"var(--clr-dourado-400)":"var(--color-text-on-dark-subtle)"},children:h?.favorito?"★":"☆"})]}),d.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&&d.jsx("p",{style:{fontSize:"0.95rem",color:"var(--color-text-on-dark-muted)",marginBottom:"0.6rem"},children:s.subtitulo}),d.jsx("p",{style:{fontSize:"0.85rem",color:"var(--color-text-on-dark-muted)",marginBottom:"0.3rem"},children:s.autor}),s.serie&&d.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-dourado-400)"},children:[s.serie,s.volumeNumero?` · volume ${s.volumeNumero}`:""]}),s.resumo&&d.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?d.jsx("a",{href:`/leitor/${s.id}`,className:"btn btn-primary",style:{padding:"0.75rem 2.5rem"},children:"ler agora"}):d.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."})]}),d.jsx(Jt,{})]}):d.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[d.jsx(Vt,{}),d.jsxs("div",{className:"flex-1 flex flex-col items-center justify-center gap-4",children:[d.jsx("p",{style:{fontSize:"0.9rem",color:"var(--color-text-on-dark-muted)"},children:"livro não encontrado."}),d.jsx("a",{href:"/",className:"btn btn-ghost",style:{padding:"0.5rem 1.25rem"},children:"voltar pra Home"})]}),d.jsx(Jt,{})]})}function a1(){const i=new URLSearchParams(mv()).get("q")||"",[s]=q.useState(i),{data:o,isLoading:c}=ne.biblioteca.buscar.useQuery({q:s},{enabled:s.length>0});return d.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[d.jsx(Vt,{buscaInicial:s}),d.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[s.length===0&&d.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"digite algo pra buscar."}),c&&d.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"buscando..."}),s.length>0&&!c&&o&&o.length===0&&d.jsxs("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:['nada encontrado pra "',s,'".']}),o&&o.length>0&&d.jsx(dn,{livros:o,titulo:`resultados pra "${s}"`})]}),d.jsx(Jt,{})]})}function l1(){const{nome:n}=tr(),i=decodeURIComponent(n),{data:s,isLoading:o}=ne.biblioteca.getSerie.useQuery({nome:i});return d.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[d.jsx(Vt,{}),d.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[d.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.5rem",color:"var(--clr-branco)",marginBottom:"1.5rem"},children:i}),o&&d.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),s&&s.length>0?d.jsx(dn,{livros:s,titulo:`${s.length} livro${s.length>1?"s":""} nesta série`}):!o&&d.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"nenhum livro publicado nesta série ainda."})]}),d.jsx(Jt,{})]})}const Qm={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function n1(){const{usuario:n,isLoading:i,login:s}=hn(),[o,c]=q.useState(""),[h,m]=q.useState("");return i?null:n?(window.location.href="/minha-biblioteca",null):d.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[d.jsx(Vt,{}),d.jsx("div",{className:"flex-1 flex items-center justify-center px-6",children:d.jsxs("div",{className:"max-w-sm w-full space-y-3",children:[d.jsx("h1",{className:"text-lg font-medium",style:{fontFamily:"var(--font-display)"},children:"Entrar"}),d.jsx("input",{className:"w-full rounded px-3 py-2",style:Qm,placeholder:"e-mail",value:o,onChange:v=>c(v.target.value)}),d.jsx("input",{className:"w-full rounded px-3 py-2",style:Qm,placeholder:"senha",type:"password",value:h,onChange:v=>m(v.target.value)}),d.jsx("button",{className:"btn btn-primary w-full",onClick:()=>s.mutate({email:o,senha:h}),disabled:s.isPending,children:s.isPending?"entrando...":"entrar"}),s.isError&&d.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:s.error.message}),d.jsxs("p",{className:"text-sm text-center pt-2",style:{color:"var(--color-text-on-dark-muted)"},children:["ainda não tem conta? ",d.jsx("a",{href:"/cadastro",style:{color:"var(--clr-dourado-400)"},children:"criar conta"})]})]})}),d.jsx(Jt,{})]})}const qo={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function u1(){const{usuario:n,isLoading:i,registrar:s}=hn(),[o,c]=q.useState(""),[h,m]=q.useState(""),[v,p]=q.useState("");return i?null:n?(window.location.href="/minha-biblioteca",null):d.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[d.jsx(Vt,{}),d.jsx("div",{className:"flex-1 flex items-center justify-center px-6",children:d.jsxs("div",{className:"max-w-sm w-full space-y-3",children:[d.jsx("h1",{className:"text-lg font-medium",style:{fontFamily:"var(--font-display)"},children:"Criar conta"}),d.jsx("input",{className:"w-full rounded px-3 py-2",style:qo,placeholder:"nome",value:o,onChange:g=>c(g.target.value)}),d.jsx("input",{className:"w-full rounded px-3 py-2",style:qo,placeholder:"e-mail",value:h,onChange:g=>m(g.target.value)}),d.jsx("input",{className:"w-full rounded px-3 py-2",style:qo,placeholder:"senha (mínimo 8 caracteres)",type:"password",value:v,onChange:g=>p(g.target.value)}),d.jsx("button",{className:"btn btn-primary w-full",onClick:()=>s.mutate({nome:o,email:h,senha:v}),disabled:s.isPending||!o||!h||v.length<8,children:s.isPending?"criando...":"criar conta"}),s.isError&&d.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:s.error.message}),d.jsxs("p",{className:"text-sm text-center pt-2",style:{color:"var(--color-text-on-dark-muted)"},children:["já tem conta? ",d.jsx("a",{href:"/entrar",style:{color:"var(--clr-dourado-400)"},children:"entrar"})]})]})}),d.jsx(Jt,{})]})}const Zi={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function i1(){const{usuario:n,isLoading:i,logout:s}=hn(),o=ne.useUtils(),c=ne.auth.atualizarPerfil.useMutation({onSuccess:()=>o.auth.me.invalidate()}),h=ne.auth.trocarSenha.useMutation(),[m,v]=q.useState(n?.nome??""),[p,g]=q.useState(""),[_,j]=q.useState(""),[M,Y]=q.useState(null);if(i)return null;if(!n)return window.location.href="/entrar",null;function k(){Y(null),h.mutate({senhaAtual:p,senhaNova:_},{onSuccess:()=>{Y("Senha atualizada."),g(""),j("")},onError:U=>Y(U.message)})}return d.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[d.jsx(Vt,{}),d.jsxs("div",{className:"max-w-md mx-auto px-5 pt-10 pb-16 flex-1 w-full space-y-8",children:[d.jsxs("div",{children:[d.jsx("h1",{className:"text-lg font-medium mb-4",style:{fontFamily:"var(--font-display)"},children:"Meu perfil"}),d.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[d.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["nome",d.jsx("input",{className:"w-full rounded px-3 py-2 mt-1",style:Zi,value:m,onChange:U=>v(U.target.value)})]}),d.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["e-mail",d.jsx("input",{className:"w-full rounded px-3 py-2 mt-1",style:{...Zi,opacity:.6},value:n.email,disabled:!0})]}),d.jsx("button",{className:"btn btn-primary",onClick:()=>c.mutate({nome:m}),disabled:c.isPending||!m,children:c.isPending?"salvando...":"salvar nome"}),c.isSuccess&&d.jsx("p",{className:"text-sm",style:{color:"var(--clr-dourado-400)"},children:"Nome atualizado."})]})]}),d.jsxs("div",{children:[d.jsx("h2",{className:"text-lg font-medium mb-4",style:{fontFamily:"var(--font-display)"},children:"Trocar senha"}),d.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[d.jsx("input",{className:"w-full rounded px-3 py-2",style:Zi,placeholder:"senha atual",type:"password",value:p,onChange:U=>g(U.target.value)}),d.jsx("input",{className:"w-full rounded px-3 py-2",style:Zi,placeholder:"nova senha (mínimo 8 caracteres)",type:"password",value:_,onChange:U=>j(U.target.value)}),d.jsx("button",{className:"btn btn-primary",onClick:k,disabled:h.isPending||!p||_.length<8,children:h.isPending?"salvando...":"trocar senha"}),M&&d.jsx("p",{className:"text-sm",style:{color:M==="Senha atualizada."?"var(--clr-dourado-400)":"#ff8080"},children:M})]})]}),d.jsx("button",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},onClick:()=>s.mutate(),children:"sair da conta"})]}),d.jsx(Jt,{})]})}function r1(){const{usuario:n,isLoading:i}=hn(),{data:s}=ne.biblioteca.historico.meuHistorico.useQuery(void 0,{enabled:!!n}),{data:o}=ne.biblioteca.favoritos.meus.useQuery(void 0,{enabled:!!n});return i?null:n?d.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[d.jsx(Vt,{}),d.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-10 pb-16 flex-1 w-full",children:[d.jsxs("div",{className:"flex items-center justify-between mb-8",children:[d.jsxs("h1",{style:{fontFamily:"var(--font-display)"},className:"text-2xl",children:["Olá, ",n.nome.split(" ")[0]]}),d.jsx("a",{href:"/perfil",className:"btn btn-ghost text-sm",style:{padding:"0.5rem 1rem"},children:"meu perfil"})]}),s&&s.length>0&&d.jsxs("section",{className:"mb-14",children:[d.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:"continuar lendo"}),d.jsx("div",{className:"flex gap-4 overflow-x-auto pb-2",children:s.map(c=>d.jsxs("a",{href:`/leitor/${c.livroId}`,className:"group block flex-shrink-0 w-28",children:[d.jsx("div",{className:"overflow-hidden rounded-md shadow-md transition-all duration-200 group-hover:-translate-y-1 group-hover:shadow-2xl",children:d.jsx("img",{src:c.capaUrl||"/media/images/capas/capa-placeholder.svg",alt:c.titulo,className:"w-full aspect-[2/3] object-cover transition-transform duration-300 group-hover:scale-105"})}),d.jsx("p",{className:"text-xs mt-2 line-clamp-2",style:{color:"var(--clr-branco)"},children:c.titulo})]},c.livroId))})]}),o&&o.length>0?d.jsx(dn,{livros:o.map(c=>({id:c.livroId,titulo:c.titulo,autor:c.autor,capaUrl:c.capaUrl})),titulo:"meus favoritos"}):!s?.length&&d.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:[d.jsx("p",{className:"text-lg mb-2",style:{fontFamily:"var(--font-display)",color:"var(--clr-branco)"},children:"Sua estante está vazia por enquanto"}),d.jsx("p",{className:"text-sm mb-4",children:"Favorite um livro ou comece a ler algo pra ele aparecer aqui."}),d.jsx("a",{href:"/",className:"btn btn-primary",style:{padding:"0.6rem 1.5rem"},children:"explorar o catálogo"})]})]}),d.jsx(Jt,{})]}):(window.location.href="/entrar",null)}const s1={texto:"Livros",ilustrado:"Livros ilustrados",manga:"Mangás",hq:"HQs e graphic novels",revista:"Revistas",apostila:"Apostilas",audiolivro:"Áudiolivros"},o1={primeiros_leitores:"Primeiros leitores",infantil:"Infantil",pre_adolescente:"Pré-adolescentes",adolescente:"Adolescentes",jovem:"Jovens",adulto:"Adultos"};function c1(){const n=new URLSearchParams(mv()),i=n.get("formato")??void 0,s=n.get("publico")??void 0,{data:o,isLoading:c}=ne.biblioteca.filtrar.useQuery({formato:i,publicoAlvo:s,limite:40}),h=i?s1[i]??i:s?o1[s]??s:"Explorar";return d.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[d.jsx(Vt,{}),d.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[d.jsx("h1",{style:{fontFamily:"var(--font-display)"},className:"text-2xl mb-6",children:h}),c&&d.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),o&&o.length>0?d.jsx(dn,{livros:o,titulo:`${o.length} título${o.length>1?"s":""}`}):!c&&d.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"nada por aqui ainda."})]}),d.jsx(Jt,{})]})}function f1(){const{id:n}=tr(),{data:i,isLoading:s}=ne.colecoes.obter.useQuery({id:Number(n)});return d.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero-dourado)",color:"var(--color-text-on-dark)"},children:[d.jsx(Vt,{}),d.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[s&&d.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),i&&d.jsxs(d.Fragment,{children:[d.jsx("h1",{style:{fontFamily:"var(--font-display)"},className:"text-2xl mb-2",children:i.nome}),i.descricao&&d.jsx("p",{className:"mb-6 max-w-2xl",style:{color:"var(--color-text-on-dark-muted)",lineHeight:"var(--leading-relaxed)"},children:i.descricao}),i.livros.length>0?d.jsx(dn,{livros:i.livros,titulo:`${i.livros.length} título${i.livros.length>1?"s":""} nesta coleção`}):d.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"Comece por qualquer volume e continue descobrindo — em breve os primeiros títulos chegam aqui."})]}),!s&&!i&&d.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"coleção não encontrada."})]}),d.jsx(Jt,{})]})}const d1=q.lazy(()=>x0(()=>import("./Leitor-D5wU7lZy.js"),[]).then(n=>({default:n.Leitor})));function h1(){const[n]=q.useState(()=>new Q0);return d.jsx(ne.Provider,{client:Kb,queryClient:n,children:d.jsx(X0,{client:n,children:d.jsx(q.Suspense,{fallback:null,children:d.jsxs(Og,{children:[d.jsx(Gt,{path:"/admin",component:Ix}),d.jsx(Gt,{path:"/leitor/:id",component:d1}),d.jsx(Gt,{path:"/livro/:id",component:t1}),d.jsx(Gt,{path:"/serie/:nome",component:l1}),d.jsx(Gt,{path:"/buscar",component:a1}),d.jsx(Gt,{path:"/entrar",component:n1}),d.jsx(Gt,{path:"/cadastro",component:u1}),d.jsx(Gt,{path:"/perfil",component:i1}),d.jsx(Gt,{path:"/minha-biblioteca",component:r1}),d.jsx(Gt,{path:"/explorar",component:c1}),d.jsx(Gt,{path:"/colecao/:id",component:f1}),d.jsx(Gt,{path:"/",component:Xx})]})})})})}y0.createRoot(document.getElementById("root")).render(d.jsx(q.StrictMode,{children:d.jsx(h1,{})}));export{mv as a,m1 as c,i0 as g,d as j,q as r,ne as t,tr as u};
