function Wp(n,i){for(var s=0;s<i.length;s++){const c=i[s];if(typeof c!="string"&&!Array.isArray(c)){for(const o in c)if(o!=="default"&&!(o in n)){const h=Object.getOwnPropertyDescriptor(c,o);h&&Object.defineProperty(n,o,h.get?h:{enumerable:!0,get:()=>c[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))c(o);new MutationObserver(o=>{for(const h of o)if(h.type==="childList")for(const m of h.addedNodes)m.tagName==="LINK"&&m.rel==="modulepreload"&&c(m)}).observe(document,{childList:!0,subtree:!0});function s(o){const h={};return o.integrity&&(h.integrity=o.integrity),o.referrerPolicy&&(h.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?h.credentials="include":o.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function c(o){if(o.ep)return;o.ep=!0;const h=s(o);fetch(o.href,h)}})();var _x=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ip(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var gc={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 Ih;function t0(){if(Ih)return fu;Ih=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(c,o,h){var m=null;if(h!==void 0&&(m=""+h),o.key!==void 0&&(m=""+o.key),"key"in o){h={};for(var v in o)v!=="key"&&(h[v]=o[v])}else h=o;return o=h.ref,{$$typeof:n,type:c,key:m,ref:o!==void 0?o:null,props:h}}return fu.Fragment=i,fu.jsx=s,fu.jsxs=s,fu}var tm;function e0(){return tm||(tm=1,gc.exports=t0()),gc.exports}var d=e0(),bc={exports:{}},ot={};/**
 * @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 em;function a0(){if(em)return ot;em=1;var n=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),m=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),y=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),E=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 Z={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},U=Object.assign,W={};function rt(x,D,B){this.props=x,this.context=D,this.refs=W,this.updater=B||Z}rt.prototype.isReactComponent={},rt.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")},rt.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function vt(){}vt.prototype=rt.prototype;function Tt(x,D,B){this.props=x,this.context=D,this.refs=W,this.updater=B||Z}var qt=Tt.prototype=new vt;qt.constructor=Tt,U(qt,rt.prototype),qt.isPureReactComponent=!0;var P=Array.isArray;function V(){}var z={H:null,A:null,T:null,S:null},K=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 $(x,D){return I(x.type,D,x.props)}function lt(x){return typeof x=="object"&&x!==null&&x.$$typeof===n}function tt(x){var D={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(B){return D[B]})}var yt=/\/+/g;function ct(x,D){return typeof x=="object"&&x!==null&&x.key!=null?tt(""+x.key):D.toString(36)}function ft(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(V,V):(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 T(x,D,B,L,F){var st=typeof x;(st==="undefined"||st==="boolean")&&(x=null);var pt=!1;if(x===null)pt=!0;else switch(st){case"bigint":case"string":case"number":pt=!0;break;case"object":switch(x.$$typeof){case n:case i:pt=!0;break;case S:return pt=x._init,T(pt(x._payload),D,B,L,F)}}if(pt)return F=F(x),pt=L===""?"."+ct(x,0):L,P(F)?(B="",pt!=null&&(B=pt.replace(yt,"$&/")+"/"),T(F,D,B,"",function(Sa){return Sa})):F!=null&&(lt(F)&&(F=$(F,B+(F.key==null||x&&x.key===F.key?"":(""+F.key).replace(yt,"$&/")+"/")+pt)),D.push(F)),1;pt=0;var kt=L===""?".":L+":";if(P(x))for(var Ht=0;Ht<x.length;Ht++)L=x[Ht],st=kt+ct(L,Ht),pt+=T(L,D,B,st,F);else if(Ht=Y(x),typeof Ht=="function")for(x=Ht.call(x),Ht=0;!(L=x.next()).done;)L=L.value,st=kt+ct(L,Ht++),pt+=T(L,D,B,st,F);else if(st==="object"){if(typeof x.then=="function")return T(ft(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 pt}function H(x,D,B){if(x==null)return x;var L=[],F=0;return T(x,L,"","",function(st){return D.call(B,st,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 ut=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)},ht={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(!lt(x))throw Error("React.Children.only expected to receive a single React element child.");return x}};return ot.Activity=E,ot.Children=ht,ot.Component=rt,ot.Fragment=s,ot.Profiler=o,ot.PureComponent=Tt,ot.StrictMode=c,ot.Suspense=y,ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=z,ot.__COMPILER_RUNTIME={__proto__:null,c:function(x){return z.H.useMemoCache(x)}},ot.cache=function(x){return function(){return x.apply(null,arguments)}},ot.cacheSignal=function(){return null},ot.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(st in D.key!==void 0&&(F=""+D.key),D)!K.call(D,st)||st==="key"||st==="__self"||st==="__source"||st==="ref"&&D.ref===void 0||(L[st]=D[st]);var st=arguments.length-2;if(st===1)L.children=B;else if(1<st){for(var pt=Array(st),kt=0;kt<st;kt++)pt[kt]=arguments[kt+2];L.children=pt}return I(x.type,F,L)},ot.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},ot.createElement=function(x,D,B){var L,F={},st=null;if(D!=null)for(L in D.key!==void 0&&(st=""+D.key),D)K.call(D,L)&&L!=="key"&&L!=="__self"&&L!=="__source"&&(F[L]=D[L]);var pt=arguments.length-2;if(pt===1)F.children=B;else if(1<pt){for(var kt=Array(pt),Ht=0;Ht<pt;Ht++)kt[Ht]=arguments[Ht+2];F.children=kt}if(x&&x.defaultProps)for(L in pt=x.defaultProps,pt)F[L]===void 0&&(F[L]=pt[L]);return I(x,st,F)},ot.createRef=function(){return{current:null}},ot.forwardRef=function(x){return{$$typeof:v,render:x}},ot.isValidElement=lt,ot.lazy=function(x){return{$$typeof:S,_payload:{_status:-1,_result:x},_init:G}},ot.memo=function(x,D){return{$$typeof:g,type:x,compare:D===void 0?null:D}},ot.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(V,ut)}catch(st){ut(st)}finally{D!==null&&B.types!==null&&(D.types=B.types),z.T=D}},ot.unstable_useCacheRefresh=function(){return z.H.useCacheRefresh()},ot.use=function(x){return z.H.use(x)},ot.useActionState=function(x,D,B){return z.H.useActionState(x,D,B)},ot.useCallback=function(x,D){return z.H.useCallback(x,D)},ot.useContext=function(x){return z.H.useContext(x)},ot.useDebugValue=function(){},ot.useDeferredValue=function(x,D){return z.H.useDeferredValue(x,D)},ot.useEffect=function(x,D){return z.H.useEffect(x,D)},ot.useEffectEvent=function(x){return z.H.useEffectEvent(x)},ot.useId=function(){return z.H.useId()},ot.useImperativeHandle=function(x,D,B){return z.H.useImperativeHandle(x,D,B)},ot.useInsertionEffect=function(x,D){return z.H.useInsertionEffect(x,D)},ot.useLayoutEffect=function(x,D){return z.H.useLayoutEffect(x,D)},ot.useMemo=function(x,D){return z.H.useMemo(x,D)},ot.useOptimistic=function(x,D){return z.H.useOptimistic(x,D)},ot.useReducer=function(x,D,B){return z.H.useReducer(x,D,B)},ot.useRef=function(x){return z.H.useRef(x)},ot.useState=function(x){return z.H.useState(x)},ot.useSyncExternalStore=function(x,D,B){return z.H.useSyncExternalStore(x,D,B)},ot.useTransition=function(){return z.H.useTransition()},ot.version="19.2.1",ot}var am;function Wi(){return am||(am=1,bc.exports=a0()),bc.exports}var Q=Wi();const l0=Ip(Q),qm=Wp({__proto__:null,default:l0},[Q]);var xc={exports:{}},du={},Sc={exports:{}},jc={};/**
 * @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 lm;function n0(){return lm||(lm=1,(function(n){function i(T,H){var G=T.length;T.push(H);t:for(;0<G;){var ut=G-1>>>1,ht=T[ut];if(0<o(ht,H))T[ut]=H,T[G]=ht,G=ut;else break t}}function s(T){return T.length===0?null:T[0]}function c(T){if(T.length===0)return null;var H=T[0],G=T.pop();if(G!==H){T[0]=G;t:for(var ut=0,ht=T.length,x=ht>>>1;ut<x;){var D=2*(ut+1)-1,B=T[D],L=D+1,F=T[L];if(0>o(B,G))L<ht&&0>o(F,B)?(T[ut]=F,T[L]=G,ut=L):(T[ut]=B,T[D]=G,ut=D);else if(L<ht&&0>o(F,G))T[ut]=F,T[L]=G,ut=L;else break t}}return H}function o(T,H){var G=T.sortIndex-H.sortIndex;return G!==0?G:T.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 y=[],g=[],S=1,E=null,M=3,Y=!1,Z=!1,U=!1,W=!1,rt=typeof setTimeout=="function"?setTimeout:null,vt=typeof clearTimeout=="function"?clearTimeout:null,Tt=typeof setImmediate<"u"?setImmediate:null;function qt(T){for(var H=s(g);H!==null;){if(H.callback===null)c(g);else if(H.startTime<=T)c(g),H.sortIndex=H.expirationTime,i(y,H);else break;H=s(g)}}function P(T){if(U=!1,qt(T),!Z)if(s(y)!==null)Z=!0,V||(V=!0,tt());else{var H=s(g);H!==null&&ft(P,H.startTime-T)}}var V=!1,z=-1,K=5,I=-1;function $(){return W?!0:!(n.unstable_now()-I<K)}function lt(){if(W=!1,V){var T=n.unstable_now();I=T;var H=!0;try{t:{Z=!1,U&&(U=!1,vt(z),z=-1),Y=!0;var G=M;try{e:{for(qt(T),E=s(y);E!==null&&!(E.expirationTime>T&&$());){var ut=E.callback;if(typeof ut=="function"){E.callback=null,M=E.priorityLevel;var ht=ut(E.expirationTime<=T);if(T=n.unstable_now(),typeof ht=="function"){E.callback=ht,qt(T),H=!0;break e}E===s(y)&&c(y),qt(T)}else c(y);E=s(y)}if(E!==null)H=!0;else{var x=s(g);x!==null&&ft(P,x.startTime-T),H=!1}}break t}finally{E=null,M=G,Y=!1}H=void 0}}finally{H?tt():V=!1}}}var tt;if(typeof Tt=="function")tt=function(){Tt(lt)};else if(typeof MessageChannel<"u"){var yt=new MessageChannel,ct=yt.port2;yt.port1.onmessage=lt,tt=function(){ct.postMessage(null)}}else tt=function(){rt(lt,0)};function ft(T,H){z=rt(function(){T(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(T){T.callback=null},n.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):K=0<T?Math.floor(1e3/T):5},n.unstable_getCurrentPriorityLevel=function(){return M},n.unstable_next=function(T){switch(M){case 1:case 2:case 3:var H=3;break;default:H=M}var G=M;M=H;try{return T()}finally{M=G}},n.unstable_requestPaint=function(){W=!0},n.unstable_runWithPriority=function(T,H){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var G=M;M=T;try{return H()}finally{M=G}},n.unstable_scheduleCallback=function(T,H,G){var ut=n.unstable_now();switch(typeof G=="object"&&G!==null?(G=G.delay,G=typeof G=="number"&&0<G?ut+G:ut):G=ut,T){case 1:var ht=-1;break;case 2:ht=250;break;case 5:ht=1073741823;break;case 4:ht=1e4;break;default:ht=5e3}return ht=G+ht,T={id:S++,callback:H,priorityLevel:T,startTime:G,expirationTime:ht,sortIndex:-1},G>ut?(T.sortIndex=G,i(g,T),s(y)===null&&T===s(g)&&(U?(vt(z),z=-1):U=!0,ft(P,G-ut))):(T.sortIndex=ht,i(y,T),Z||Y||(Z=!0,V||(V=!0,tt()))),T},n.unstable_shouldYield=$,n.unstable_wrapCallback=function(T){var H=M;return function(){var G=M;M=H;try{return T.apply(this,arguments)}finally{M=G}}}})(jc)),jc}var nm;function u0(){return nm||(nm=1,Sc.exports=n0()),Sc.exports}var Oc={exports:{}},ie={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var um;function i0(){if(um)return ie;um=1;var n=Wi();function i(y){var g="https://react.dev/errors/"+y;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var S=2;S<arguments.length;S++)g+="&args[]="+encodeURIComponent(arguments[S])}return"Minified React error #"+y+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var c={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},o=Symbol.for("react.portal");function h(y,g,S){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:E==null?null:""+E,children:y,containerInfo:g,implementation:S}}var m=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(y,g){if(y==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ie.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=c,ie.createPortal=function(y,g){var S=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(y,g,null,S)},ie.flushSync=function(y){var g=m.T,S=c.p;try{if(m.T=null,c.p=2,y)return y()}finally{m.T=g,c.p=S,c.d.f()}},ie.preconnect=function(y,g){typeof y=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,c.d.C(y,g))},ie.prefetchDNS=function(y){typeof y=="string"&&c.d.D(y)},ie.preinit=function(y,g){if(typeof y=="string"&&g&&typeof g.as=="string"){var S=g.as,E=v(S,g.crossOrigin),M=typeof g.integrity=="string"?g.integrity:void 0,Y=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;S==="style"?c.d.S(y,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:E,integrity:M,fetchPriority:Y}):S==="script"&&c.d.X(y,{crossOrigin:E,integrity:M,fetchPriority:Y,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ie.preinitModule=function(y,g){if(typeof y=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var S=v(g.as,g.crossOrigin);c.d.M(y,{crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&c.d.M(y)},ie.preload=function(y,g){if(typeof y=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var S=g.as,E=v(S,g.crossOrigin);c.d.L(y,S,{crossOrigin:E,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})}},ie.preloadModule=function(y,g){if(typeof y=="string")if(g){var S=v(g.as,g.crossOrigin);c.d.m(y,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:S,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else c.d.m(y)},ie.requestFormReset=function(y){c.d.r(y)},ie.unstable_batchedUpdates=function(y,g){return y(g)},ie.useFormState=function(y,g,S){return m.H.useFormState(y,g,S)},ie.useFormStatus=function(){return m.H.useHostTransitionStatus()},ie.version="19.2.1",ie}var im;function r0(){if(im)return Oc.exports;im=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(),Oc.exports=i0(),Oc.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 rm;function s0(){if(rm)return du;rm=1;var n=u0(),i=Wi(),s=r0();function c(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)e+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(t){var e=t,a=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(a=e.return),t=e.return;while(t)}return e.tag===3?a:null}function m(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function v(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function y(t){if(h(t)!==t)throw Error(c(188))}function g(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(c(188));return e!==t?null:t}for(var a=t,l=e;;){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 y(u),t;if(r===l)return y(u),e;r=r.sibling}throw Error(c(188))}if(a.return!==l.return)a=u,l=r;else{for(var f=!1,p=u.child;p;){if(p===a){f=!0,a=u,l=r;break}if(p===l){f=!0,l=u,a=r;break}p=p.sibling}if(!f){for(p=r.child;p;){if(p===a){f=!0,a=r,l=u;break}if(p===l){f=!0,l=r,a=u;break}p=p.sibling}if(!f)throw Error(c(189))}}if(a.alternate!==l)throw Error(c(190))}if(a.tag!==3)throw Error(c(188));return a.stateNode.current===a?t:e}function S(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=S(t),e!==null)return e;t=t.sibling}return null}var E=Object.assign,M=Symbol.for("react.element"),Y=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),U=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),rt=Symbol.for("react.profiler"),vt=Symbol.for("react.consumer"),Tt=Symbol.for("react.context"),qt=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),V=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),$=Symbol.for("react.memo_cache_sentinel"),lt=Symbol.iterator;function tt(t){return t===null||typeof t!="object"?null:(t=lt&&t[lt]||t["@@iterator"],typeof t=="function"?t:null)}var yt=Symbol.for("react.client.reference");function ct(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===yt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case U:return"Fragment";case rt:return"Profiler";case W:return"StrictMode";case P:return"Suspense";case V:return"SuspenseList";case I:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case Z:return"Portal";case Tt:return t.displayName||"Context";case vt:return(t._context.displayName||"Context")+".Consumer";case qt:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case z:return e=t.displayName||null,e!==null?e:ct(t.type)||"Memo";case K:e=t._payload,t=t._init;try{return ct(t(e))}catch{}}return null}var ft=Array.isArray,T=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},ut=[],ht=-1;function x(t){return{current:t}}function D(t){0>ht||(t.current=ut[ht],ut[ht]=null,ht--)}function B(t,e){ht++,ut[ht]=t.current,t.current=e}var L=x(null),F=x(null),st=x(null),pt=x(null);function kt(t,e){switch(B(st,e),B(F,t),B(L,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?jh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=jh(e),t=Oh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}D(L),B(L,t)}function Ht(){D(L),D(F),D(st)}function Sa(t){t.memoizedState!==null&&B(pt,t);var e=L.current,a=Oh(e,t.type);e!==a&&(B(F,t),B(L,a))}function $a(t){F.current===t&&(D(L),D(F)),pt.current===t&&(D(pt),ru._currentValue=G)}var Ol,Wa;function Fe(t){if(Ol===void 0)try{throw Error()}catch(a){var e=a.stack.trim().match(/\n( *(at )?)/);Ol=e&&e[1]||"",Wa=-1<a.stack.indexOf(`
    at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ol+t+Wa}var ja=!1;function fe(t,e){if(!t||ja)return"";ja=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var w=function(){throw Error()};if(Object.defineProperty(w.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(w,[])}catch(C){var A=C}Reflect.construct(t,[],w)}else{try{w.call()}catch(C){A=C}t.call(w.prototype)}}else{try{throw Error()}catch(C){A=C}(w=t())&&typeof w.catch=="function"&&w.catch(function(){})}}catch(C){if(C&&A&&typeof C.stack=="string")return[C.stack,A.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],p=r[1];if(f&&p){var b=f.split(`
`),N=p.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 t.displayName&&R.includes("<anonymous>")&&(R=R.replace("<anonymous>",t.displayName)),R}while(1<=l&&0<=u);break}}}finally{ja=!1,Error.prepareStackTrace=a}return(a=t?t.displayName||t.name:"")?Fe(a):""}function Su(t,e){switch(t.tag){case 26:case 27:case 5:return Fe(t.type);case 16:return Fe("Lazy");case 13:return t.child!==e&&e!==null?Fe("Suspense Fallback"):Fe("Suspense");case 19:return Fe("SuspenseList");case 0:case 15:return fe(t.type,!1);case 11:return fe(t.type.render,!1);case 1:return fe(t.type,!0);case 31:return Fe("Activity");default:return""}}function mn(t){try{var e="",a=null;do e+=Su(t,a),a=t,t=t.return;while(t);return e}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var vn=Object.prototype.hasOwnProperty,yn=n.unstable_scheduleCallback,pn=n.unstable_cancelCallback,ju=n.unstable_shouldYield,X=n.unstable_requestPaint,At=n.unstable_now,be=n.unstable_getCurrentPriorityLevel,xe=n.unstable_ImmediatePriority,Pe=n.unstable_UserBlockingPriority,se=n.unstable_NormalPriority,gn=n.unstable_LowPriority,Ou=n.unstable_IdlePriority,Uv=n.log,qv=n.unstable_setDisableYieldValue,bn=null,Se=null;function Oa(t){if(typeof Uv=="function"&&qv(t),Se&&typeof Se.setStrictMode=="function")try{Se.setStrictMode(bn,t)}catch{}}var je=Math.clz32?Math.clz32:Hv,wv=Math.log,Qv=Math.LN2;function Hv(t){return t>>>=0,t===0?32:31-(wv(t)/Qv|0)|0}var Eu=256,_u=262144,Nu=4194304;function Ia(t){var e=t&42;if(e!==0)return e;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Tu(t,e,a){var l=t.pendingLanes;if(l===0)return 0;var u=0,r=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var p=l&134217727;return p!==0?(l=p&~r,l!==0?u=Ia(l):(f&=p,f!==0?u=Ia(f):a||(a=p&~t,a!==0&&(u=Ia(a))))):(p=l&~r,p!==0?u=Ia(p):f!==0?u=Ia(f):a||(a=l&~t,a!==0&&(u=Ia(a)))),u===0?0:e!==0&&e!==u&&(e&r)===0&&(r=u&-u,a=e&-e,r>=a||r===32&&(a&4194048)!==0)?e:u}function xn(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Bv(t,e){switch(t){case 1:case 2:case 4:case 8:case 64:return e+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function eo(){var t=Nu;return Nu<<=1,(Nu&62914560)===0&&(Nu=4194304),t}function ir(t){for(var e=[],a=0;31>a;a++)e.push(t);return e}function Sn(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Lv(t,e,a,l,u,r){var f=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var p=t.entanglements,b=t.expirationTimes,N=t.hiddenUpdates;for(a=f&~a;0<a;){var R=31-je(a),w=1<<R;p[R]=0,b[R]=-1;var A=N[R];if(A!==null)for(N[R]=null,R=0;R<A.length;R++){var C=A[R];C!==null&&(C.lane&=-536870913)}a&=~w}l!==0&&ao(t,l,0),r!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=r&~(f&~e))}function ao(t,e,a){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-je(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|a&261930}function lo(t,e){var a=t.entangledLanes|=e;for(t=t.entanglements;a;){var l=31-je(a),u=1<<l;u&e|t[l]&e&&(t[l]|=e),a&=~u}}function no(t,e){var a=e&-e;return a=(a&42)!==0?1:rr(a),(a&(t.suspendedLanes|e))!==0?0:a}function rr(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function sr(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function uo(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:Vh(t.type))}function io(t,e){var a=H.p;try{return H.p=t,e()}finally{H.p=a}}var Ea=Math.random().toString(36).slice(2),ee="__reactFiber$"+Ea,de="__reactProps$"+Ea,El="__reactContainer$"+Ea,cr="__reactEvents$"+Ea,Yv="__reactListeners$"+Ea,Gv="__reactHandles$"+Ea,ro="__reactResources$"+Ea,jn="__reactMarker$"+Ea;function or(t){delete t[ee],delete t[de],delete t[cr],delete t[Yv],delete t[Gv]}function _l(t){var e=t[ee];if(e)return e;for(var a=t.parentNode;a;){if(e=a[El]||a[ee]){if(a=e.alternate,e.child!==null||a!==null&&a.child!==null)for(t=Mh(t);t!==null;){if(a=t[ee])return a;t=Mh(t)}return e}t=a,a=t.parentNode}return null}function Nl(t){if(t=t[ee]||t[El]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function On(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(c(33))}function Tl(t){var e=t[ro];return e||(e=t[ro]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function It(t){t[jn]=!0}var so=new Set,co={};function tl(t,e){Al(t,e),Al(t+"Capture",e)}function Al(t,e){for(co[t]=e,t=0;t<e.length;t++)so.add(e[t])}var Xv=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]*$"),oo={},fo={};function Kv(t){return vn.call(fo,t)?!0:vn.call(oo,t)?!1:Xv.test(t)?fo[t]=!0:(oo[t]=!0,!1)}function Au(t,e,a){if(Kv(e))if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var l=e.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+a)}}function Cu(t,e,a){if(a===null)t.removeAttribute(e);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+a)}}function la(t,e,a,l){if(l===null)t.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}t.setAttributeNS(e,a,""+l)}}function ze(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ho(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Zv(t,e,a){var l=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof l<"u"&&typeof l.get=="function"&&typeof l.set=="function"){var u=l.get,r=l.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.call(this)},set:function(f){a=""+f,r.call(this,f)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return a},setValue:function(f){a=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function fr(t){if(!t._valueTracker){var e=ho(t)?"checked":"value";t._valueTracker=Zv(t,e,""+t[e])}}function mo(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var a=e.getValue(),l="";return t&&(l=ho(t)?t.checked?"true":"false":t.value),t=l,t!==a?(e.setValue(t),!0):!1}function Mu(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var Vv=/[\n"\\]/g;function De(t){return t.replace(Vv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function dr(t,e,a,l,u,r,f,p){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+ze(e)):t.value!==""+ze(e)&&(t.value=""+ze(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?hr(t,f,ze(e)):a!=null?hr(t,f,ze(a)):l!=null&&t.removeAttribute("value"),u==null&&r!=null&&(t.defaultChecked=!!r),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?t.name=""+ze(p):t.removeAttribute("name")}function vo(t,e,a,l,u,r,f,p){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){fr(t);return}a=a!=null?""+ze(a):"",e=e!=null?""+ze(e):a,p||e===t.value||(t.value=e),t.defaultValue=e}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=p?t.checked:!!l,t.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),fr(t)}function hr(t,e,a){e==="number"&&Mu(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function Cl(t,e,a,l){if(t=t.options,e){e={};for(var u=0;u<a.length;u++)e["$"+a[u]]=!0;for(a=0;a<t.length;a++)u=e.hasOwnProperty("$"+t[a].value),t[a].selected!==u&&(t[a].selected=u),u&&l&&(t[a].defaultSelected=!0)}else{for(a=""+ze(a),e=null,u=0;u<t.length;u++){if(t[u].value===a){t[u].selected=!0,l&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function yo(t,e,a){if(e!=null&&(e=""+ze(e),e!==t.value&&(t.value=e),a==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=a!=null?""+ze(a):""}function po(t,e,a,l){if(e==null){if(l!=null){if(a!=null)throw Error(c(92));if(ft(l)){if(1<l.length)throw Error(c(93));l=l[0]}a=l}a==null&&(a=""),e=a}a=ze(e),t.defaultValue=a,l=t.textContent,l===a&&l!==""&&l!==null&&(t.value=l),fr(t)}function Ml(t,e){if(e){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=e;return}}t.textContent=e}var kv=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 go(t,e,a){var l=e.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,a):typeof a!="number"||a===0||kv.has(e)?e==="float"?t.cssFloat=a:t[e]=(""+a).trim():t[e]=a+"px"}function bo(t,e,a){if(e!=null&&typeof e!="object")throw Error(c(62));if(t=t.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||e!=null&&e.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var u in e)l=e[u],e.hasOwnProperty(u)&&a[u]!==l&&go(t,u,l)}else for(var r in e)e.hasOwnProperty(r)&&go(t,r,e[r])}function mr(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Jv=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"]]),Fv=/^[\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 zu(t){return Fv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function na(){}var vr=null;function yr(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var zl=null,Dl=null;function xo(t){var e=Nl(t);if(e&&(t=e.stateNode)){var a=t[de]||null;t:switch(t=e.stateNode,e.type){case"input":if(dr(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),e=a.name,a.type==="radio"&&e!=null){for(a=t;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+De(""+e)+'"][type="radio"]'),e=0;e<a.length;e++){var l=a[e];if(l!==t&&l.form===t.form){var u=l[de]||null;if(!u)throw Error(c(90));dr(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<a.length;e++)l=a[e],l.form===t.form&&mo(l)}break t;case"textarea":yo(t,a.value,a.defaultValue);break t;case"select":e=a.value,e!=null&&Cl(t,!!a.multiple,e,!1)}}}var pr=!1;function So(t,e,a){if(pr)return t(e,a);pr=!0;try{var l=t(e);return l}finally{if(pr=!1,(zl!==null||Dl!==null)&&(gi(),zl&&(e=zl,t=Dl,Dl=zl=null,xo(e),t)))for(e=0;e<t.length;e++)xo(t[e])}}function En(t,e){var a=t.stateNode;if(a===null)return null;var l=a[de]||null;if(l===null)return null;a=l[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break t;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error(c(231,e,typeof a));return a}var ua=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gr=!1;if(ua)try{var _n={};Object.defineProperty(_n,"passive",{get:function(){gr=!0}}),window.addEventListener("test",_n,_n),window.removeEventListener("test",_n,_n)}catch{gr=!1}var _a=null,br=null,Du=null;function jo(){if(Du)return Du;var t,e=br,a=e.length,l,u="value"in _a?_a.value:_a.textContent,r=u.length;for(t=0;t<a&&e[t]===u[t];t++);var f=a-t;for(l=1;l<=f&&e[a-l]===u[r-l];l++);return Du=u.slice(t,1<l?1-l:void 0)}function Ru(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function Uu(){return!0}function Oo(){return!1}function he(t){function e(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 p in t)t.hasOwnProperty(p)&&(a=t[p],this[p]=a?a(r):r[p]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?Uu:Oo,this.isPropagationStopped=Oo,this}return E(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Uu)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Uu)},persist:function(){},isPersistent:Uu}),e}var el={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qu=he(el),Nn=E({},el,{view:0,detail:0}),Pv=he(Nn),xr,Sr,Tn,wu=E({},Nn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Or,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Tn&&(Tn&&t.type==="mousemove"?(xr=t.screenX-Tn.screenX,Sr=t.screenY-Tn.screenY):Sr=xr=0,Tn=t),xr)},movementY:function(t){return"movementY"in t?t.movementY:Sr}}),Eo=he(wu),$v=E({},wu,{dataTransfer:0}),Wv=he($v),Iv=E({},Nn,{relatedTarget:0}),jr=he(Iv),ty=E({},el,{animationName:0,elapsedTime:0,pseudoElement:0}),ey=he(ty),ay=E({},el,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ly=he(ay),ny=E({},el,{data:0}),_o=he(ny),uy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},iy={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"},ry={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sy(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=ry[t])?!!e[t]:!1}function Or(){return sy}var cy=E({},Nn,{key:function(t){if(t.key){var e=uy[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ru(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?iy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Or,charCode:function(t){return t.type==="keypress"?Ru(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ru(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),oy=he(cy),fy=E({},wu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),No=he(fy),dy=E({},Nn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Or}),hy=he(dy),my=E({},el,{propertyName:0,elapsedTime:0,pseudoElement:0}),vy=he(my),yy=E({},wu,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),py=he(yy),gy=E({},el,{newState:0,oldState:0}),by=he(gy),xy=[9,13,27,32],Er=ua&&"CompositionEvent"in window,An=null;ua&&"documentMode"in document&&(An=document.documentMode);var Sy=ua&&"TextEvent"in window&&!An,To=ua&&(!Er||An&&8<An&&11>=An),Ao=" ",Co=!1;function Mo(t,e){switch(t){case"keyup":return xy.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zo(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Rl=!1;function jy(t,e){switch(t){case"compositionend":return zo(e);case"keypress":return e.which!==32?null:(Co=!0,Ao);case"textInput":return t=e.data,t===Ao&&Co?null:t;default:return null}}function Oy(t,e){if(Rl)return t==="compositionend"||!Er&&Mo(t,e)?(t=jo(),Du=br=_a=null,Rl=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return To&&e.locale!=="ko"?null:e.data;default:return null}}var Ey={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 Do(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Ey[t.type]:e==="textarea"}function Ro(t,e,a,l){zl?Dl?Dl.push(l):Dl=[l]:zl=l,e=_i(e,"onChange"),0<e.length&&(a=new qu("onChange","change",null,a,l),t.push({event:a,listeners:e}))}var Cn=null,Mn=null;function _y(t){yh(t,0)}function Qu(t){var e=On(t);if(mo(e))return t}function Uo(t,e){if(t==="change")return e}var qo=!1;if(ua){var _r;if(ua){var Nr="oninput"in document;if(!Nr){var wo=document.createElement("div");wo.setAttribute("oninput","return;"),Nr=typeof wo.oninput=="function"}_r=Nr}else _r=!1;qo=_r&&(!document.documentMode||9<document.documentMode)}function Qo(){Cn&&(Cn.detachEvent("onpropertychange",Ho),Mn=Cn=null)}function Ho(t){if(t.propertyName==="value"&&Qu(Mn)){var e=[];Ro(e,Mn,t,yr(t)),So(_y,e)}}function Ny(t,e,a){t==="focusin"?(Qo(),Cn=e,Mn=a,Cn.attachEvent("onpropertychange",Ho)):t==="focusout"&&Qo()}function Ty(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Qu(Mn)}function Ay(t,e){if(t==="click")return Qu(e)}function Cy(t,e){if(t==="input"||t==="change")return Qu(e)}function My(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Oe=typeof Object.is=="function"?Object.is:My;function zn(t,e){if(Oe(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var a=Object.keys(t),l=Object.keys(e);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var u=a[l];if(!vn.call(e,u)||!Oe(t[u],e[u]))return!1}return!0}function Bo(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Lo(t,e){var a=Bo(t);t=0;for(var l;a;){if(a.nodeType===3){if(l=t+a.textContent.length,t<=e&&l>=e)return{node:a,offset:e-t};t=l}t:{for(;a;){if(a.nextSibling){a=a.nextSibling;break t}a=a.parentNode}a=void 0}a=Bo(a)}}function Yo(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Yo(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Go(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Mu(t.document);e instanceof t.HTMLIFrameElement;){try{var a=typeof e.contentWindow.location.href=="string"}catch{a=!1}if(a)t=e.contentWindow;else break;e=Mu(t.document)}return e}function Tr(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}var zy=ua&&"documentMode"in document&&11>=document.documentMode,Ul=null,Ar=null,Dn=null,Cr=!1;function Xo(t,e,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Cr||Ul==null||Ul!==Mu(l)||(l=Ul,"selectionStart"in l&&Tr(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=_i(Ar,"onSelect"),0<l.length&&(e=new qu("onSelect","select",null,e,a),t.push({event:e,listeners:l}),e.target=Ul)))}function al(t,e){var a={};return a[t.toLowerCase()]=e.toLowerCase(),a["Webkit"+t]="webkit"+e,a["Moz"+t]="moz"+e,a}var ql={animationend:al("Animation","AnimationEnd"),animationiteration:al("Animation","AnimationIteration"),animationstart:al("Animation","AnimationStart"),transitionrun:al("Transition","TransitionRun"),transitionstart:al("Transition","TransitionStart"),transitioncancel:al("Transition","TransitionCancel"),transitionend:al("Transition","TransitionEnd")},Mr={},Ko={};ua&&(Ko=document.createElement("div").style,"AnimationEvent"in window||(delete ql.animationend.animation,delete ql.animationiteration.animation,delete ql.animationstart.animation),"TransitionEvent"in window||delete ql.transitionend.transition);function ll(t){if(Mr[t])return Mr[t];if(!ql[t])return t;var e=ql[t],a;for(a in e)if(e.hasOwnProperty(a)&&a in Ko)return Mr[t]=e[a];return t}var Zo=ll("animationend"),Vo=ll("animationiteration"),ko=ll("animationstart"),Dy=ll("transitionrun"),Ry=ll("transitionstart"),Uy=ll("transitioncancel"),Jo=ll("transitionend"),Fo=new Map,zr="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(" ");zr.push("scrollEnd");function Ge(t,e){Fo.set(t,e),tl(e,[t])}var Hu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var e=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(e))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},Re=[],wl=0,Dr=0;function Bu(){for(var t=wl,e=Dr=wl=0;e<t;){var a=Re[e];Re[e++]=null;var l=Re[e];Re[e++]=null;var u=Re[e];Re[e++]=null;var r=Re[e];if(Re[e++]=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&&Po(a,u,r)}}function Lu(t,e,a,l){Re[wl++]=t,Re[wl++]=e,Re[wl++]=a,Re[wl++]=l,Dr|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Rr(t,e,a,l){return Lu(t,e,a,l),Yu(t)}function nl(t,e){return Lu(t,null,null,e),Yu(t)}function Po(t,e,a){t.lanes|=a;var l=t.alternate;l!==null&&(l.lanes|=a);for(var u=!1,r=t.return;r!==null;)r.childLanes|=a,l=r.alternate,l!==null&&(l.childLanes|=a),r.tag===22&&(t=r.stateNode,t===null||t._visibility&1||(u=!0)),t=r,r=r.return;return t.tag===3?(r=t.stateNode,u&&e!==null&&(u=31-je(a),t=r.hiddenUpdates,l=t[u],l===null?t[u]=[e]:l.push(e),e.lane=a|536870912),r):null}function Yu(t){if(50<tu)throw tu=0,Gs=null,Error(c(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Ql={};function qy(t,e,a,l){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ee(t,e,a,l){return new qy(t,e,a,l)}function Ur(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ia(t,e){var a=t.alternate;return a===null?(a=Ee(t.tag,e,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a.alternate=t,t.alternate=a):(a.pendingProps=e,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,e=t.dependencies,a.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a}function $o(t,e){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=e,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,e=a.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function Gu(t,e,a,l,u,r){var f=0;if(l=t,typeof t=="function")Ur(t)&&(f=1);else if(typeof t=="string")f=Lp(t,a,L.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case I:return t=Ee(31,a,e,u),t.elementType=I,t.lanes=r,t;case U:return ul(a.children,u,r,e);case W:f=8,u|=24;break;case rt:return t=Ee(12,a,e,u|2),t.elementType=rt,t.lanes=r,t;case P:return t=Ee(13,a,e,u),t.elementType=P,t.lanes=r,t;case V:return t=Ee(19,a,e,u),t.elementType=V,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Tt:f=10;break t;case vt:f=9;break t;case qt:f=11;break t;case z:f=14;break t;case K:f=16,l=null;break t}f=29,a=Error(c(130,t===null?"null":typeof t,"")),l=null}return e=Ee(f,a,e,u),e.elementType=t,e.type=l,e.lanes=r,e}function ul(t,e,a,l){return t=Ee(7,t,l,e),t.lanes=a,t}function qr(t,e,a){return t=Ee(6,t,null,e),t.lanes=a,t}function Wo(t){var e=Ee(18,null,null,0);return e.stateNode=t,e}function wr(t,e,a){return e=Ee(4,t.children!==null?t.children:[],t.key,e),e.lanes=a,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Io=new WeakMap;function Ue(t,e){if(typeof t=="object"&&t!==null){var a=Io.get(t);return a!==void 0?a:(e={value:t,source:e,stack:mn(e)},Io.set(t,e),e)}return{value:t,source:e,stack:mn(e)}}var Hl=[],Bl=0,Xu=null,Rn=0,qe=[],we=0,Na=null,$e=1,We="";function ra(t,e){Hl[Bl++]=Rn,Hl[Bl++]=Xu,Xu=t,Rn=e}function tf(t,e,a){qe[we++]=$e,qe[we++]=We,qe[we++]=Na,Na=t;var l=$e;t=We;var u=32-je(l)-1;l&=~(1<<u),a+=1;var r=32-je(e)+u;if(30<r){var f=u-u%5;r=(l&(1<<f)-1).toString(32),l>>=f,u-=f,$e=1<<32-je(e)+u|a<<u|l,We=r+t}else $e=1<<r|a<<u|l,We=t}function Qr(t){t.return!==null&&(ra(t,1),tf(t,1,0))}function Hr(t){for(;t===Xu;)Xu=Hl[--Bl],Hl[Bl]=null,Rn=Hl[--Bl],Hl[Bl]=null;for(;t===Na;)Na=qe[--we],qe[we]=null,We=qe[--we],qe[we]=null,$e=qe[--we],qe[we]=null}function ef(t,e){qe[we++]=$e,qe[we++]=We,qe[we++]=Na,$e=e.id,We=e.overflow,Na=t}var ae=null,wt=null,jt=!1,Ta=null,Qe=!1,Br=Error(c(519));function Aa(t){var e=Error(c(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Un(Ue(e,t)),Br}function af(t){var e=t.stateNode,a=t.type,l=t.memoizedProps;switch(e[ee]=t,e[de]=l,a){case"dialog":bt("cancel",e),bt("close",e);break;case"iframe":case"object":case"embed":bt("load",e);break;case"video":case"audio":for(a=0;a<au.length;a++)bt(au[a],e);break;case"source":bt("error",e);break;case"img":case"image":case"link":bt("error",e),bt("load",e);break;case"details":bt("toggle",e);break;case"input":bt("invalid",e),vo(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":bt("invalid",e);break;case"textarea":bt("invalid",e),po(e,l.value,l.defaultValue,l.children)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||e.textContent===""+a||l.suppressHydrationWarning===!0||xh(e.textContent,a)?(l.popover!=null&&(bt("beforetoggle",e),bt("toggle",e)),l.onScroll!=null&&bt("scroll",e),l.onScrollEnd!=null&&bt("scrollend",e),l.onClick!=null&&(e.onclick=na),e=!0):e=!1,e||Aa(t,!0)}function lf(t){for(ae=t.return;ae;)switch(ae.tag){case 5:case 31:case 13:Qe=!1;return;case 27:case 3:Qe=!0;return;default:ae=ae.return}}function Ll(t){if(t!==ae)return!1;if(!jt)return lf(t),jt=!0,!1;var e=t.tag,a;if((a=e!==3&&e!==27)&&((a=e===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||lc(t.type,t.memoizedProps)),a=!a),a&&wt&&Aa(t),lf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));wt=Ch(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(317));wt=Ch(t)}else e===27?(e=wt,Ga(t.type)?(t=sc,sc=null,wt=t):wt=e):wt=ae?Be(t.stateNode.nextSibling):null;return!0}function il(){wt=ae=null,jt=!1}function Lr(){var t=Ta;return t!==null&&(pe===null?pe=t:pe.push.apply(pe,t),Ta=null),t}function Un(t){Ta===null?Ta=[t]:Ta.push(t)}var Yr=x(null),rl=null,sa=null;function Ca(t,e,a){B(Yr,e._currentValue),e._currentValue=a}function ca(t){t._currentValue=Yr.current,D(Yr)}function Gr(t,e,a){for(;t!==null;){var l=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,l!==null&&(l.childLanes|=e)):l!==null&&(l.childLanes&e)!==e&&(l.childLanes|=e),t===a)break;t=t.return}}function Xr(t,e,a,l){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var r=u.dependencies;if(r!==null){var f=u.child;r=r.firstContext;t:for(;r!==null;){var p=r;r=u;for(var b=0;b<e.length;b++)if(p.context===e[b]){r.lanes|=a,p=r.alternate,p!==null&&(p.lanes|=a),Gr(r.return,a,t),l||(f=null);break t}r=p.next}}else if(u.tag===18){if(f=u.return,f===null)throw Error(c(341));f.lanes|=a,r=f.alternate,r!==null&&(r.lanes|=a),Gr(f,a,t),f=null}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===t){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}}function Yl(t,e,a,l){t=null;for(var u=e,r=!1;u!==null;){if(!r){if((u.flags&524288)!==0)r=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var f=u.alternate;if(f===null)throw Error(c(387));if(f=f.memoizedProps,f!==null){var p=u.type;Oe(u.pendingProps.value,f.value)||(t!==null?t.push(p):t=[p])}}else if(u===pt.current){if(f=u.alternate,f===null)throw Error(c(387));f.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(ru):t=[ru])}u=u.return}t!==null&&Xr(e,t,a,l),e.flags|=262144}function Ku(t){for(t=t.firstContext;t!==null;){if(!Oe(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function sl(t){rl=t,sa=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function le(t){return nf(rl,t)}function Zu(t,e){return rl===null&&sl(t),nf(t,e)}function nf(t,e){var a=e._currentValue;if(e={context:e,memoizedValue:a,next:null},sa===null){if(t===null)throw Error(c(308));sa=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else sa=sa.next=e;return a}var wy=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(a,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(a){return a()})}},Qy=n.unstable_scheduleCallback,Hy=n.unstable_NormalPriority,Jt={$$typeof:Tt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Kr(){return{controller:new wy,data:new Map,refCount:0}}function qn(t){t.refCount--,t.refCount===0&&Qy(Hy,function(){t.controller.abort()})}var wn=null,Zr=0,Gl=0,Xl=null;function By(t,e){if(wn===null){var a=wn=[];Zr=0,Gl=Js(),Xl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Zr++,e.then(uf,uf),e}function uf(){if(--Zr===0&&wn!==null){Xl!==null&&(Xl.status="fulfilled");var t=wn;wn=null,Gl=0,Xl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Ly(t,e){var a=[],l={status:"pending",value:null,reason:null,then:function(u){a.push(u)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var u=0;u<a.length;u++)(0,a[u])(e)},function(u){for(l.status="rejected",l.reason=u,u=0;u<a.length;u++)(0,a[u])(void 0)}),l}var rf=T.S;T.S=function(t,e){Kd=At(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&By(t,e),rf!==null&&rf(t,e)};var cl=x(null);function Vr(){var t=cl.current;return t!==null?t:Ut.pooledCache}function Vu(t,e){e===null?B(cl,cl.current):B(cl,e.pool)}function sf(){var t=Vr();return t===null?null:{parent:Jt._currentValue,pool:t}}var Kl=Error(c(460)),kr=Error(c(474)),ku=Error(c(542)),Ju={then:function(){}};function cf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function of(t,e,a){switch(a=t[a],a===void 0?t.push(e):a!==e&&(e.then(na,na),e=a),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,df(t),t;default:if(typeof e.status=="string")e.then(na,na);else{if(t=Ut,t!==null&&100<t.shellSuspendCounter)throw Error(c(482));t=e,t.status="pending",t.then(function(l){if(e.status==="pending"){var u=e;u.status="fulfilled",u.value=l}},function(l){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=l}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,df(t),t}throw fl=e,Kl}}function ol(t){try{var e=t._init;return e(t._payload)}catch(a){throw a!==null&&typeof a=="object"&&typeof a.then=="function"?(fl=a,Kl):a}}var fl=null;function ff(){if(fl===null)throw Error(c(459));var t=fl;return fl=null,t}function df(t){if(t===Kl||t===ku)throw Error(c(483))}var Zl=null,Qn=0;function Fu(t){var e=Qn;return Qn+=1,Zl===null&&(Zl=[]),of(Zl,t,e)}function Hn(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Pu(t,e){throw e.$$typeof===M?Error(c(525)):(t=Object.prototype.toString.call(e),Error(c(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function hf(t){function e(O,j){if(t){var _=O.deletions;_===null?(O.deletions=[j],O.flags|=16):_.push(j)}}function a(O,j){if(!t)return null;for(;j!==null;)e(O,j),j=j.sibling;return null}function l(O){for(var j=new Map;O!==null;)O.key!==null?j.set(O.key,O):j.set(O.index,O),O=O.sibling;return j}function u(O,j){return O=ia(O,j),O.index=0,O.sibling=null,O}function r(O,j,_){return O.index=_,t?(_=O.alternate,_!==null?(_=_.index,_<j?(O.flags|=67108866,j):_):(O.flags|=67108866,j)):(O.flags|=1048576,j)}function f(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function p(O,j,_,q){return j===null||j.tag!==6?(j=qr(_,O.mode,q),j.return=O,j):(j=u(j,_),j.return=O,j)}function b(O,j,_,q){var nt=_.type;return nt===U?R(O,j,_.props.children,q,_.key):j!==null&&(j.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===K&&ol(nt)===j.type)?(j=u(j,_.props),Hn(j,_),j.return=O,j):(j=Gu(_.type,_.key,_.props,null,O.mode,q),Hn(j,_),j.return=O,j)}function N(O,j,_,q){return j===null||j.tag!==4||j.stateNode.containerInfo!==_.containerInfo||j.stateNode.implementation!==_.implementation?(j=wr(_,O.mode,q),j.return=O,j):(j=u(j,_.children||[]),j.return=O,j)}function R(O,j,_,q,nt){return j===null||j.tag!==7?(j=ul(_,O.mode,q,nt),j.return=O,j):(j=u(j,_),j.return=O,j)}function w(O,j,_){if(typeof j=="string"&&j!==""||typeof j=="number"||typeof j=="bigint")return j=qr(""+j,O.mode,_),j.return=O,j;if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Y:return _=Gu(j.type,j.key,j.props,null,O.mode,_),Hn(_,j),_.return=O,_;case Z:return j=wr(j,O.mode,_),j.return=O,j;case K:return j=ol(j),w(O,j,_)}if(ft(j)||tt(j))return j=ul(j,O.mode,_,null),j.return=O,j;if(typeof j.then=="function")return w(O,Fu(j),_);if(j.$$typeof===Tt)return w(O,Zu(O,j),_);Pu(O,j)}return null}function A(O,j,_,q){var nt=j!==null?j.key:null;if(typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint")return nt!==null?null:p(O,j,""+_,q);if(typeof _=="object"&&_!==null){switch(_.$$typeof){case Y:return _.key===nt?b(O,j,_,q):null;case Z:return _.key===nt?N(O,j,_,q):null;case K:return _=ol(_),A(O,j,_,q)}if(ft(_)||tt(_))return nt!==null?null:R(O,j,_,q,null);if(typeof _.then=="function")return A(O,j,Fu(_),q);if(_.$$typeof===Tt)return A(O,j,Zu(O,_),q);Pu(O,_)}return null}function C(O,j,_,q,nt){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return O=O.get(_)||null,p(j,O,""+q,nt);if(typeof q=="object"&&q!==null){switch(q.$$typeof){case Y:return O=O.get(q.key===null?_:q.key)||null,b(j,O,q,nt);case Z:return O=O.get(q.key===null?_:q.key)||null,N(j,O,q,nt);case K:return q=ol(q),C(O,j,_,q,nt)}if(ft(q)||tt(q))return O=O.get(_)||null,R(j,O,q,nt,null);if(typeof q.then=="function")return C(O,j,_,Fu(q),nt);if(q.$$typeof===Tt)return C(O,j,_,Zu(j,q),nt);Pu(j,q)}return null}function J(O,j,_,q){for(var nt=null,Ot=null,et=j,mt=j=0,St=null;et!==null&&mt<_.length;mt++){et.index>mt?(St=et,et=null):St=et.sibling;var Et=A(O,et,_[mt],q);if(Et===null){et===null&&(et=St);break}t&&et&&Et.alternate===null&&e(O,et),j=r(Et,j,mt),Ot===null?nt=Et:Ot.sibling=Et,Ot=Et,et=St}if(mt===_.length)return a(O,et),jt&&ra(O,mt),nt;if(et===null){for(;mt<_.length;mt++)et=w(O,_[mt],q),et!==null&&(j=r(et,j,mt),Ot===null?nt=et:Ot.sibling=et,Ot=et);return jt&&ra(O,mt),nt}for(et=l(et);mt<_.length;mt++)St=C(et,O,mt,_[mt],q),St!==null&&(t&&St.alternate!==null&&et.delete(St.key===null?mt:St.key),j=r(St,j,mt),Ot===null?nt=St:Ot.sibling=St,Ot=St);return t&&et.forEach(function(ka){return e(O,ka)}),jt&&ra(O,mt),nt}function it(O,j,_,q){if(_==null)throw Error(c(151));for(var nt=null,Ot=null,et=j,mt=j=0,St=null,Et=_.next();et!==null&&!Et.done;mt++,Et=_.next()){et.index>mt?(St=et,et=null):St=et.sibling;var ka=A(O,et,Et.value,q);if(ka===null){et===null&&(et=St);break}t&&et&&ka.alternate===null&&e(O,et),j=r(ka,j,mt),Ot===null?nt=ka:Ot.sibling=ka,Ot=ka,et=St}if(Et.done)return a(O,et),jt&&ra(O,mt),nt;if(et===null){for(;!Et.done;mt++,Et=_.next())Et=w(O,Et.value,q),Et!==null&&(j=r(Et,j,mt),Ot===null?nt=Et:Ot.sibling=Et,Ot=Et);return jt&&ra(O,mt),nt}for(et=l(et);!Et.done;mt++,Et=_.next())Et=C(et,O,mt,Et.value,q),Et!==null&&(t&&Et.alternate!==null&&et.delete(Et.key===null?mt:Et.key),j=r(Et,j,mt),Ot===null?nt=Et:Ot.sibling=Et,Ot=Et);return t&&et.forEach(function($p){return e(O,$p)}),jt&&ra(O,mt),nt}function Rt(O,j,_,q){if(typeof _=="object"&&_!==null&&_.type===U&&_.key===null&&(_=_.props.children),typeof _=="object"&&_!==null){switch(_.$$typeof){case Y:t:{for(var nt=_.key;j!==null;){if(j.key===nt){if(nt=_.type,nt===U){if(j.tag===7){a(O,j.sibling),q=u(j,_.props.children),q.return=O,O=q;break t}}else if(j.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===K&&ol(nt)===j.type){a(O,j.sibling),q=u(j,_.props),Hn(q,_),q.return=O,O=q;break t}a(O,j);break}else e(O,j);j=j.sibling}_.type===U?(q=ul(_.props.children,O.mode,q,_.key),q.return=O,O=q):(q=Gu(_.type,_.key,_.props,null,O.mode,q),Hn(q,_),q.return=O,O=q)}return f(O);case Z:t:{for(nt=_.key;j!==null;){if(j.key===nt)if(j.tag===4&&j.stateNode.containerInfo===_.containerInfo&&j.stateNode.implementation===_.implementation){a(O,j.sibling),q=u(j,_.children||[]),q.return=O,O=q;break t}else{a(O,j);break}else e(O,j);j=j.sibling}q=wr(_,O.mode,q),q.return=O,O=q}return f(O);case K:return _=ol(_),Rt(O,j,_,q)}if(ft(_))return J(O,j,_,q);if(tt(_)){if(nt=tt(_),typeof nt!="function")throw Error(c(150));return _=nt.call(_),it(O,j,_,q)}if(typeof _.then=="function")return Rt(O,j,Fu(_),q);if(_.$$typeof===Tt)return Rt(O,j,Zu(O,_),q);Pu(O,_)}return typeof _=="string"&&_!==""||typeof _=="number"||typeof _=="bigint"?(_=""+_,j!==null&&j.tag===6?(a(O,j.sibling),q=u(j,_),q.return=O,O=q):(a(O,j),q=qr(_,O.mode,q),q.return=O,O=q),f(O)):a(O,j)}return function(O,j,_,q){try{Qn=0;var nt=Rt(O,j,_,q);return Zl=null,nt}catch(et){if(et===Kl||et===ku)throw et;var Ot=Ee(29,et,null,O.mode);return Ot.lanes=q,Ot.return=O,Ot}finally{}}}var dl=hf(!0),mf=hf(!1),Ma=!1;function Jr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Fr(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function za(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Da(t,e,a){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Nt&2)!==0){var u=l.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),l.pending=e,e=Yu(t),Po(t,null,a),e}return Lu(t,l,e,a),Yu(t)}function Bn(t,e,a){if(e=e.updateQueue,e!==null&&(e=e.shared,(a&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,lo(t,a)}}function Pr(t,e){var a=t.updateQueue,l=t.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=e:r=r.next=e}else u=r=e;a={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:r,shared:l.shared,callbacks:l.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=e:t.next=e,a.lastBaseUpdate=e}var $r=!1;function Ln(){if($r){var t=Xl;if(t!==null)throw t}}function Yn(t,e,a,l){$r=!1;var u=t.updateQueue;Ma=!1;var r=u.firstBaseUpdate,f=u.lastBaseUpdate,p=u.shared.pending;if(p!==null){u.shared.pending=null;var b=p,N=b.next;b.next=null,f===null?r=N:f.next=N,f=b;var R=t.alternate;R!==null&&(R=R.updateQueue,p=R.lastBaseUpdate,p!==f&&(p===null?R.firstBaseUpdate=N:p.next=N,R.lastBaseUpdate=b))}if(r!==null){var w=u.baseState;f=0,R=N=b=null,p=r;do{var A=p.lane&-536870913,C=A!==p.lane;if(C?(xt&A)===A:(l&A)===A){A!==0&&A===Gl&&($r=!0),R!==null&&(R=R.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});t:{var J=t,it=p;A=e;var Rt=a;switch(it.tag){case 1:if(J=it.payload,typeof J=="function"){w=J.call(Rt,w,A);break t}w=J;break t;case 3:J.flags=J.flags&-65537|128;case 0:if(J=it.payload,A=typeof J=="function"?J.call(Rt,w,A):J,A==null)break t;w=E({},w,A);break t;case 2:Ma=!0}}A=p.callback,A!==null&&(t.flags|=64,C&&(t.flags|=8192),C=u.callbacks,C===null?u.callbacks=[A]:C.push(A))}else C={lane:A,tag:p.tag,payload:p.payload,callback:p.callback,next:null},R===null?(N=R=C,b=w):R=R.next=C,f|=A;if(p=p.next,p===null){if(p=u.shared.pending,p===null)break;C=p,p=C.next,C.next=null,u.lastBaseUpdate=C,u.shared.pending=null}}while(!0);R===null&&(b=w),u.baseState=b,u.firstBaseUpdate=N,u.lastBaseUpdate=R,r===null&&(u.shared.lanes=0),Qa|=f,t.lanes=f,t.memoizedState=w}}function vf(t,e){if(typeof t!="function")throw Error(c(191,t));t.call(e)}function yf(t,e){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)vf(a[t],e)}var Vl=x(null),$u=x(0);function pf(t,e){t=ga,B($u,t),B(Vl,e),ga=t|e.baseLanes}function Wr(){B($u,ga),B(Vl,Vl.current)}function Ir(){ga=$u.current,D(Vl),D($u)}var _e=x(null),He=null;function Ra(t){var e=t.alternate;B(Kt,Kt.current&1),B(_e,t),He===null&&(e===null||Vl.current!==null||e.memoizedState!==null)&&(He=t)}function ts(t){B(Kt,Kt.current),B(_e,t),He===null&&(He=t)}function gf(t){t.tag===22?(B(Kt,Kt.current),B(_e,t),He===null&&(He=t)):Ua()}function Ua(){B(Kt,Kt.current),B(_e,_e.current)}function Ne(t){D(_e),He===t&&(He=null),D(Kt)}var Kt=x(0);function Wu(t){for(var e=t;e!==null;){if(e.tag===13){var a=e.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||ic(a)||rc(a)))return e}else if(e.tag===19&&(e.memoizedProps.revealOrder==="forwards"||e.memoizedProps.revealOrder==="backwards"||e.memoizedProps.revealOrder==="unstable_legacy-backwards"||e.memoizedProps.revealOrder==="together")){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var oa=0,dt=null,zt=null,Ft=null,Iu=!1,kl=!1,hl=!1,ti=0,Gn=0,Jl=null,Yy=0;function Yt(){throw Error(c(321))}function es(t,e){if(e===null)return!1;for(var a=0;a<e.length&&a<t.length;a++)if(!Oe(t[a],e[a]))return!1;return!0}function as(t,e,a,l,u,r){return oa=r,dt=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,T.H=t===null||t.memoizedState===null?ed:ps,hl=!1,r=a(l,u),hl=!1,kl&&(r=xf(e,a,l,u)),bf(t),r}function bf(t){T.H=Zn;var e=zt!==null&&zt.next!==null;if(oa=0,Ft=zt=dt=null,Iu=!1,Gn=0,Jl=null,e)throw Error(c(300));t===null||Pt||(t=t.dependencies,t!==null&&Ku(t)&&(Pt=!0))}function xf(t,e,a,l){dt=t;var u=0;do{if(kl&&(Jl=null),Gn=0,kl=!1,25<=u)throw Error(c(301));if(u+=1,Ft=zt=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}T.H=ad,r=e(a,l)}while(kl);return r}function Gy(){var t=T.H,e=t.useState()[0];return e=typeof e.then=="function"?Xn(e):e,t=t.useState()[0],(zt!==null?zt.memoizedState:null)!==t&&(dt.flags|=1024),e}function ls(){var t=ti!==0;return ti=0,t}function ns(t,e,a){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~a}function us(t){if(Iu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Iu=!1}oa=0,Ft=zt=dt=null,kl=!1,Gn=ti=0,Jl=null}function ce(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ft===null?dt.memoizedState=Ft=t:Ft=Ft.next=t,Ft}function Zt(){if(zt===null){var t=dt.alternate;t=t!==null?t.memoizedState:null}else t=zt.next;var e=Ft===null?dt.memoizedState:Ft.next;if(e!==null)Ft=e,zt=t;else{if(t===null)throw dt.alternate===null?Error(c(467)):Error(c(310));zt=t,t={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},Ft===null?dt.memoizedState=Ft=t:Ft=Ft.next=t}return Ft}function ei(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xn(t){var e=Gn;return Gn+=1,Jl===null&&(Jl=[]),t=of(Jl,t,e),e=dt,(Ft===null?e.memoizedState:Ft.next)===null&&(e=e.alternate,T.H=e===null||e.memoizedState===null?ed:ps),t}function ai(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Xn(t);if(t.$$typeof===Tt)return le(t)}throw Error(c(438,String(t)))}function is(t){var e=null,a=dt.updateQueue;if(a!==null&&(e=a.memoCache),e==null){var l=dt.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(e={data:l.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),a===null&&(a=ei(),dt.updateQueue=a),a.memoCache=e,a=e.data[e.index],a===void 0)for(a=e.data[e.index]=Array(t),l=0;l<t;l++)a[l]=$;return e.index++,a}function fa(t,e){return typeof e=="function"?e(t):e}function li(t){var e=Zt();return rs(e,zt,t)}function rs(t,e,a){var l=t.queue;if(l===null)throw Error(c(311));l.lastRenderedReducer=a;var u=t.baseQueue,r=l.pending;if(r!==null){if(u!==null){var f=u.next;u.next=r.next,r.next=f}e.baseQueue=u=r,l.pending=null}if(r=t.baseState,u===null)t.memoizedState=r;else{e=u.next;var p=f=null,b=null,N=e,R=!1;do{var w=N.lane&-536870913;if(w!==N.lane?(xt&w)===w:(oa&w)===w){var A=N.revertLane;if(A===0)b!==null&&(b=b.next={lane:0,revertLane:0,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null}),w===Gl&&(R=!0);else if((oa&A)===A){N=N.next,A===Gl&&(R=!0);continue}else w={lane:0,revertLane:N.revertLane,gesture:null,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(p=b=w,f=r):b=b.next=w,dt.lanes|=A,Qa|=A;w=N.action,hl&&a(r,w),r=N.hasEagerState?N.eagerState:a(r,w)}else A={lane:w,revertLane:N.revertLane,gesture:N.gesture,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null},b===null?(p=b=A,f=r):b=b.next=A,dt.lanes|=w,Qa|=w;N=N.next}while(N!==null&&N!==e);if(b===null?f=r:b.next=p,!Oe(r,t.memoizedState)&&(Pt=!0,R&&(a=Xl,a!==null)))throw a;t.memoizedState=r,t.baseState=f,t.baseQueue=b,l.lastRenderedState=r}return u===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function ss(t){var e=Zt(),a=e.queue;if(a===null)throw Error(c(311));a.lastRenderedReducer=t;var l=a.dispatch,u=a.pending,r=e.memoizedState;if(u!==null){a.pending=null;var f=u=u.next;do r=t(r,f.action),f=f.next;while(f!==u);Oe(r,e.memoizedState)||(Pt=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),a.lastRenderedState=r}return[r,l]}function Sf(t,e,a){var l=dt,u=Zt(),r=jt;if(r){if(a===void 0)throw Error(c(407));a=a()}else a=e();var f=!Oe((zt||u).memoizedState,a);if(f&&(u.memoizedState=a,Pt=!0),u=u.queue,fs(Ef.bind(null,l,u,t),[t]),u.getSnapshot!==e||f||Ft!==null&&Ft.memoizedState.tag&1){if(l.flags|=2048,Fl(9,{destroy:void 0},Of.bind(null,l,u,a,e),null),Ut===null)throw Error(c(349));r||(oa&127)!==0||jf(l,e,a)}return a}function jf(t,e,a){t.flags|=16384,t={getSnapshot:e,value:a},e=dt.updateQueue,e===null?(e=ei(),dt.updateQueue=e,e.stores=[t]):(a=e.stores,a===null?e.stores=[t]:a.push(t))}function Of(t,e,a,l){e.value=a,e.getSnapshot=l,_f(e)&&Nf(t)}function Ef(t,e,a){return a(function(){_f(e)&&Nf(t)})}function _f(t){var e=t.getSnapshot;t=t.value;try{var a=e();return!Oe(t,a)}catch{return!0}}function Nf(t){var e=nl(t,2);e!==null&&ge(e,t,2)}function cs(t){var e=ce();if(typeof t=="function"){var a=t;if(t=a(),hl){Oa(!0);try{a()}finally{Oa(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:t},e}function Tf(t,e,a,l){return t.baseState=a,rs(t,zt,typeof l=="function"?l:fa)}function Xy(t,e,a,l,u){if(ii(t))throw Error(c(485));if(t=e.action,t!==null){var r={payload:u,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){r.listeners.push(f)}};T.T!==null?a(!0):r.isTransition=!1,l(r),a=e.pending,a===null?(r.next=e.pending=r,Af(e,r)):(r.next=a.next,e.pending=a.next=r)}}function Af(t,e){var a=e.action,l=e.payload,u=t.state;if(e.isTransition){var r=T.T,f={};T.T=f;try{var p=a(u,l),b=T.S;b!==null&&b(f,p),Cf(t,e,p)}catch(N){os(t,e,N)}finally{r!==null&&f.types!==null&&(r.types=f.types),T.T=r}}else try{r=a(u,l),Cf(t,e,r)}catch(N){os(t,e,N)}}function Cf(t,e,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){Mf(t,e,l)},function(l){return os(t,e,l)}):Mf(t,e,a)}function Mf(t,e,a){e.status="fulfilled",e.value=a,zf(e),t.state=a,e=t.pending,e!==null&&(a=e.next,a===e?t.pending=null:(a=a.next,e.next=a,Af(t,a)))}function os(t,e,a){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=a,zf(e),e=e.next;while(e!==l)}t.action=null}function zf(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function Df(t,e){return e}function Rf(t,e){if(jt){var a=Ut.formState;if(a!==null){t:{var l=dt;if(jt){if(wt){e:{for(var u=wt,r=Qe;u.nodeType!==8;){if(!r){u=null;break e}if(u=Be(u.nextSibling),u===null){u=null;break e}}r=u.data,u=r==="F!"||r==="F"?u:null}if(u){wt=Be(u.nextSibling),l=u.data==="F!";break t}}Aa(l)}l=!1}l&&(e=a[0])}}return a=ce(),a.memoizedState=a.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Df,lastRenderedState:e},a.queue=l,a=Wf.bind(null,dt,l),l.dispatch=a,l=cs(!1),r=ys.bind(null,dt,!1,l.queue),l=ce(),u={state:e,dispatch:null,action:t,pending:null},l.queue=u,a=Xy.bind(null,dt,u,r,a),u.dispatch=a,l.memoizedState=t,[e,a,!1]}function Uf(t){var e=Zt();return qf(e,zt,t)}function qf(t,e,a){if(e=rs(t,e,Df)[0],t=li(fa)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Xn(e)}catch(f){throw f===Kl?ku:f}else l=e;e=Zt();var u=e.queue,r=u.dispatch;return a!==e.memoizedState&&(dt.flags|=2048,Fl(9,{destroy:void 0},Ky.bind(null,u,a),null)),[l,r,t]}function Ky(t,e){t.action=e}function wf(t){var e=Zt(),a=zt;if(a!==null)return qf(e,a,t);Zt(),e=e.memoizedState,a=Zt();var l=a.queue.dispatch;return a.memoizedState=t,[e,l,!1]}function Fl(t,e,a,l){return t={tag:t,create:a,deps:l,inst:e,next:null},e=dt.updateQueue,e===null&&(e=ei(),dt.updateQueue=e),a=e.lastEffect,a===null?e.lastEffect=t.next=t:(l=a.next,a.next=t,t.next=l,e.lastEffect=t),t}function Qf(){return Zt().memoizedState}function ni(t,e,a,l){var u=ce();dt.flags|=t,u.memoizedState=Fl(1|e,{destroy:void 0},a,l===void 0?null:l)}function ui(t,e,a,l){var u=Zt();l=l===void 0?null:l;var r=u.memoizedState.inst;zt!==null&&l!==null&&es(l,zt.memoizedState.deps)?u.memoizedState=Fl(e,r,a,l):(dt.flags|=t,u.memoizedState=Fl(1|e,r,a,l))}function Hf(t,e){ni(8390656,8,t,e)}function fs(t,e){ui(2048,8,t,e)}function Zy(t){dt.flags|=4;var e=dt.updateQueue;if(e===null)e=ei(),dt.updateQueue=e,e.events=[t];else{var a=e.events;a===null?e.events=[t]:a.push(t)}}function Bf(t){var e=Zt().memoizedState;return Zy({ref:e,nextImpl:t}),function(){if((Nt&2)!==0)throw Error(c(440));return e.impl.apply(void 0,arguments)}}function Lf(t,e){return ui(4,2,t,e)}function Yf(t,e){return ui(4,4,t,e)}function Gf(t,e){if(typeof e=="function"){t=t();var a=e(t);return function(){typeof a=="function"?a():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Xf(t,e,a){a=a!=null?a.concat([t]):null,ui(4,4,Gf.bind(null,e,t),a)}function ds(){}function Kf(t,e){var a=Zt();e=e===void 0?null:e;var l=a.memoizedState;return e!==null&&es(e,l[1])?l[0]:(a.memoizedState=[t,e],t)}function Zf(t,e){var a=Zt();e=e===void 0?null:e;var l=a.memoizedState;if(e!==null&&es(e,l[1]))return l[0];if(l=t(),hl){Oa(!0);try{t()}finally{Oa(!1)}}return a.memoizedState=[l,e],l}function hs(t,e,a){return a===void 0||(oa&1073741824)!==0&&(xt&261930)===0?t.memoizedState=e:(t.memoizedState=a,t=Vd(),dt.lanes|=t,Qa|=t,a)}function Vf(t,e,a,l){return Oe(a,e)?a:Vl.current!==null?(t=hs(t,a,l),Oe(t,e)||(Pt=!0),t):(oa&42)===0||(oa&1073741824)!==0&&(xt&261930)===0?(Pt=!0,t.memoizedState=a):(t=Vd(),dt.lanes|=t,Qa|=t,e)}function kf(t,e,a,l,u){var r=H.p;H.p=r!==0&&8>r?r:8;var f=T.T,p={};T.T=p,ys(t,!1,e,a);try{var b=u(),N=T.S;if(N!==null&&N(p,b),b!==null&&typeof b=="object"&&typeof b.then=="function"){var R=Ly(b,l);Kn(t,e,R,Ce(t))}else Kn(t,e,l,Ce(t))}catch(w){Kn(t,e,{then:function(){},status:"rejected",reason:w},Ce())}finally{H.p=r,f!==null&&p.types!==null&&(f.types=p.types),T.T=f}}function Vy(){}function ms(t,e,a,l){if(t.tag!==5)throw Error(c(476));var u=Jf(t).queue;kf(t,u,e,G,a===null?Vy:function(){return Ff(t),a(l)})}function Jf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:G,baseState:G,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:G},next:null};var a={};return e.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fa,lastRenderedState:a},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Ff(t){var e=Jf(t);e.next===null&&(e=t.alternate.memoizedState),Kn(t,e.next.queue,{},Ce())}function vs(){return le(ru)}function Pf(){return Zt().memoizedState}function $f(){return Zt().memoizedState}function ky(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var a=Ce();t=za(a);var l=Da(e,t,a);l!==null&&(ge(l,e,a),Bn(l,e,a)),e={cache:Kr()},t.payload=e;return}e=e.return}}function Jy(t,e,a){var l=Ce();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},ii(t)?If(e,a):(a=Rr(t,e,a,l),a!==null&&(ge(a,t,l),td(a,e,l)))}function Wf(t,e,a){var l=Ce();Kn(t,e,a,l)}function Kn(t,e,a,l){var u={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(ii(t))If(e,u);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var f=e.lastRenderedState,p=r(f,a);if(u.hasEagerState=!0,u.eagerState=p,Oe(p,f))return Lu(t,e,u,0),Ut===null&&Bu(),!1}catch{}finally{}if(a=Rr(t,e,u,l),a!==null)return ge(a,t,l),td(a,e,l),!0}return!1}function ys(t,e,a,l){if(l={lane:2,revertLane:Js(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},ii(t)){if(e)throw Error(c(479))}else e=Rr(t,a,l,2),e!==null&&ge(e,t,2)}function ii(t){var e=t.alternate;return t===dt||e!==null&&e===dt}function If(t,e){kl=Iu=!0;var a=t.pending;a===null?e.next=e:(e.next=a.next,a.next=e),t.pending=e}function td(t,e,a){if((a&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,a|=l,e.lanes=a,lo(t,a)}}var Zn={readContext:le,use:ai,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useLayoutEffect:Yt,useInsertionEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useSyncExternalStore:Yt,useId:Yt,useHostTransitionStatus:Yt,useFormState:Yt,useActionState:Yt,useOptimistic:Yt,useMemoCache:Yt,useCacheRefresh:Yt};Zn.useEffectEvent=Yt;var ed={readContext:le,use:ai,useCallback:function(t,e){return ce().memoizedState=[t,e===void 0?null:e],t},useContext:le,useEffect:Hf,useImperativeHandle:function(t,e,a){a=a!=null?a.concat([t]):null,ni(4194308,4,Gf.bind(null,e,t),a)},useLayoutEffect:function(t,e){return ni(4194308,4,t,e)},useInsertionEffect:function(t,e){ni(4,2,t,e)},useMemo:function(t,e){var a=ce();e=e===void 0?null:e;var l=t();if(hl){Oa(!0);try{t()}finally{Oa(!1)}}return a.memoizedState=[l,e],l},useReducer:function(t,e,a){var l=ce();if(a!==void 0){var u=a(e);if(hl){Oa(!0);try{a(e)}finally{Oa(!1)}}}else u=e;return l.memoizedState=l.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},l.queue=t,t=t.dispatch=Jy.bind(null,dt,t),[l.memoizedState,t]},useRef:function(t){var e=ce();return t={current:t},e.memoizedState=t},useState:function(t){t=cs(t);var e=t.queue,a=Wf.bind(null,dt,e);return e.dispatch=a,[t.memoizedState,a]},useDebugValue:ds,useDeferredValue:function(t,e){var a=ce();return hs(a,t,e)},useTransition:function(){var t=cs(!1);return t=kf.bind(null,dt,t.queue,!0,!1),ce().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,a){var l=dt,u=ce();if(jt){if(a===void 0)throw Error(c(407));a=a()}else{if(a=e(),Ut===null)throw Error(c(349));(xt&127)!==0||jf(l,e,a)}u.memoizedState=a;var r={value:a,getSnapshot:e};return u.queue=r,Hf(Ef.bind(null,l,r,t),[t]),l.flags|=2048,Fl(9,{destroy:void 0},Of.bind(null,l,r,a,e),null),a},useId:function(){var t=ce(),e=Ut.identifierPrefix;if(jt){var a=We,l=$e;a=(l&~(1<<32-je(l)-1)).toString(32)+a,e="_"+e+"R_"+a,a=ti++,0<a&&(e+="H"+a.toString(32)),e+="_"}else a=Yy++,e="_"+e+"r_"+a.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:vs,useFormState:Rf,useActionState:Rf,useOptimistic:function(t){var e=ce();e.memoizedState=e.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=a,e=ys.bind(null,dt,!0,a),a.dispatch=e,[t,e]},useMemoCache:is,useCacheRefresh:function(){return ce().memoizedState=ky.bind(null,dt)},useEffectEvent:function(t){var e=ce(),a={impl:t};return e.memoizedState=a,function(){if((Nt&2)!==0)throw Error(c(440));return a.impl.apply(void 0,arguments)}}},ps={readContext:le,use:ai,useCallback:Kf,useContext:le,useEffect:fs,useImperativeHandle:Xf,useInsertionEffect:Lf,useLayoutEffect:Yf,useMemo:Zf,useReducer:li,useRef:Qf,useState:function(){return li(fa)},useDebugValue:ds,useDeferredValue:function(t,e){var a=Zt();return Vf(a,zt.memoizedState,t,e)},useTransition:function(){var t=li(fa)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Xn(t),e]},useSyncExternalStore:Sf,useId:Pf,useHostTransitionStatus:vs,useFormState:Uf,useActionState:Uf,useOptimistic:function(t,e){var a=Zt();return Tf(a,zt,t,e)},useMemoCache:is,useCacheRefresh:$f};ps.useEffectEvent=Bf;var ad={readContext:le,use:ai,useCallback:Kf,useContext:le,useEffect:fs,useImperativeHandle:Xf,useInsertionEffect:Lf,useLayoutEffect:Yf,useMemo:Zf,useReducer:ss,useRef:Qf,useState:function(){return ss(fa)},useDebugValue:ds,useDeferredValue:function(t,e){var a=Zt();return zt===null?hs(a,t,e):Vf(a,zt.memoizedState,t,e)},useTransition:function(){var t=ss(fa)[0],e=Zt().memoizedState;return[typeof t=="boolean"?t:Xn(t),e]},useSyncExternalStore:Sf,useId:Pf,useHostTransitionStatus:vs,useFormState:wf,useActionState:wf,useOptimistic:function(t,e){var a=Zt();return zt!==null?Tf(a,zt,t,e):(a.baseState=t,[t,a.queue.dispatch])},useMemoCache:is,useCacheRefresh:$f};ad.useEffectEvent=Bf;function gs(t,e,a,l){e=t.memoizedState,a=a(l,e),a=a==null?e:E({},e,a),t.memoizedState=a,t.lanes===0&&(t.updateQueue.baseState=a)}var bs={enqueueSetState:function(t,e,a){t=t._reactInternals;var l=Ce(),u=za(l);u.payload=e,a!=null&&(u.callback=a),e=Da(t,u,l),e!==null&&(ge(e,t,l),Bn(e,t,l))},enqueueReplaceState:function(t,e,a){t=t._reactInternals;var l=Ce(),u=za(l);u.tag=1,u.payload=e,a!=null&&(u.callback=a),e=Da(t,u,l),e!==null&&(ge(e,t,l),Bn(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var a=Ce(),l=za(a);l.tag=2,e!=null&&(l.callback=e),e=Da(t,l,a),e!==null&&(ge(e,t,a),Bn(e,t,a))}};function ld(t,e,a,l,u,r,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,r,f):e.prototype&&e.prototype.isPureReactComponent?!zn(a,l)||!zn(u,r):!0}function nd(t,e,a,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(a,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(a,l),e.state!==t&&bs.enqueueReplaceState(e,e.state,null)}function ml(t,e){var a=e;if("ref"in e){a={};for(var l in e)l!=="ref"&&(a[l]=e[l])}if(t=t.defaultProps){a===e&&(a=E({},a));for(var u in t)a[u]===void 0&&(a[u]=t[u])}return a}function ud(t){Hu(t)}function id(t){console.error(t)}function rd(t){Hu(t)}function ri(t,e){try{var a=t.onUncaughtError;a(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function sd(t,e,a){try{var l=t.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function xs(t,e,a){return a=za(a),a.tag=3,a.payload={element:null},a.callback=function(){ri(t,e)},a}function cd(t){return t=za(t),t.tag=3,t}function od(t,e,a,l){var u=a.type.getDerivedStateFromError;if(typeof u=="function"){var r=l.value;t.payload=function(){return u(r)},t.callback=function(){sd(e,a,l)}}var f=a.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){sd(e,a,l),typeof u!="function"&&(Ha===null?Ha=new Set([this]):Ha.add(this));var p=l.stack;this.componentDidCatch(l.value,{componentStack:p!==null?p:""})})}function Fy(t,e,a,l,u){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=a.alternate,e!==null&&Yl(e,a,u,!0),a=_e.current,a!==null){switch(a.tag){case 31:case 13:return He===null?bi():a.alternate===null&&Gt===0&&(Gt=3),a.flags&=-257,a.flags|=65536,a.lanes=u,l===Ju?a.flags|=16384:(e=a.updateQueue,e===null?a.updateQueue=new Set([l]):e.add(l),Zs(t,l,u)),!1;case 22:return a.flags|=65536,l===Ju?a.flags|=16384:(e=a.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=e):(a=e.retryQueue,a===null?e.retryQueue=new Set([l]):a.add(l)),Zs(t,l,u)),!1}throw Error(c(435,a.tag))}return Zs(t,l,u),bi(),!1}if(jt)return e=_e.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,l!==Br&&(t=Error(c(422),{cause:l}),Un(Ue(t,a)))):(l!==Br&&(e=Error(c(423),{cause:l}),Un(Ue(e,a))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,l=Ue(l,a),u=xs(t.stateNode,l,u),Pr(t,u),Gt!==4&&(Gt=2)),!1;var r=Error(c(520),{cause:l});if(r=Ue(r,a),In===null?In=[r]:In.push(r),Gt!==4&&(Gt=2),e===null)return!0;l=Ue(l,a),a=e;do{switch(a.tag){case 3:return a.flags|=65536,t=u&-u,a.lanes|=t,t=xs(a.stateNode,l,t),Pr(a,t),!1;case 1:if(e=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(Ha===null||!Ha.has(r))))return a.flags|=65536,u&=-u,a.lanes|=u,u=cd(u),od(u,t,a,l),Pr(a,u),!1}a=a.return}while(a!==null);return!1}var Ss=Error(c(461)),Pt=!1;function ne(t,e,a,l){e.child=t===null?mf(e,null,a,l):dl(e,t.child,a,l)}function fd(t,e,a,l,u){a=a.render;var r=e.ref;if("ref"in l){var f={};for(var p in l)p!=="ref"&&(f[p]=l[p])}else f=l;return sl(e),l=as(t,e,a,f,r,u),p=ls(),t!==null&&!Pt?(ns(t,e,u),da(t,e,u)):(jt&&p&&Qr(e),e.flags|=1,ne(t,e,l,u),e.child)}function dd(t,e,a,l,u){if(t===null){var r=a.type;return typeof r=="function"&&!Ur(r)&&r.defaultProps===void 0&&a.compare===null?(e.tag=15,e.type=r,hd(t,e,r,l,u)):(t=Gu(a.type,null,l,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!Cs(t,u)){var f=r.memoizedProps;if(a=a.compare,a=a!==null?a:zn,a(f,l)&&t.ref===e.ref)return da(t,e,u)}return e.flags|=1,t=ia(r,l),t.ref=e.ref,t.return=e,e.child=t}function hd(t,e,a,l,u){if(t!==null){var r=t.memoizedProps;if(zn(r,l)&&t.ref===e.ref)if(Pt=!1,e.pendingProps=l=r,Cs(t,u))(t.flags&131072)!==0&&(Pt=!0);else return e.lanes=t.lanes,da(t,e,u)}return js(t,e,a,l,u)}function md(t,e,a,l){var u=l.children,r=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.mode==="hidden"){if((e.flags&128)!==0){if(r=r!==null?r.baseLanes|a:a,t!==null){for(l=e.child=t.child,u=0;l!==null;)u=u|l.lanes|l.childLanes,l=l.sibling;l=u&~r}else l=0,e.child=null;return vd(t,e,r,a,l)}if((a&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Vu(e,r!==null?r.cachePool:null),r!==null?pf(e,r):Wr(),gf(e);else return l=e.lanes=536870912,vd(t,e,r!==null?r.baseLanes|a:a,a,l)}else r!==null?(Vu(e,r.cachePool),pf(e,r),Ua(),e.memoizedState=null):(t!==null&&Vu(e,null),Wr(),Ua());return ne(t,e,u,a),e.child}function Vn(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function vd(t,e,a,l,u){var r=Vr();return r=r===null?null:{parent:Jt._currentValue,pool:r},e.memoizedState={baseLanes:a,cachePool:r},t!==null&&Vu(e,null),Wr(),gf(e),t!==null&&Yl(t,e,l,!0),e.childLanes=u,null}function si(t,e){return e=oi({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function yd(t,e,a){return dl(e,t.child,null,a),t=si(e,e.pendingProps),t.flags|=2,Ne(e),e.memoizedState=null,t}function Py(t,e,a){var l=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(jt){if(l.mode==="hidden")return t=si(e,l),e.lanes=536870912,Vn(null,t);if(ts(e),(t=wt)?(t=Ah(t,Qe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Na!==null?{id:$e,overflow:We}:null,retryLane:536870912,hydrationErrors:null},a=Wo(t),a.return=e,e.child=a,ae=e,wt=null)):t=null,t===null)throw Aa(e);return e.lanes=536870912,null}return si(e,l)}var r=t.memoizedState;if(r!==null){var f=r.dehydrated;if(ts(e),u)if(e.flags&256)e.flags&=-257,e=yd(t,e,a);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(c(558));else if(Pt||Yl(t,e,a,!1),u=(a&t.childLanes)!==0,Pt||u){if(l=Ut,l!==null&&(f=no(l,a),f!==0&&f!==r.retryLane))throw r.retryLane=f,nl(t,f),ge(l,t,f),Ss;bi(),e=yd(t,e,a)}else t=r.treeContext,wt=Be(f.nextSibling),ae=e,jt=!0,Ta=null,Qe=!1,t!==null&&ef(e,t),e=si(e,l),e.flags|=4096;return e}return t=ia(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function ci(t,e){var a=e.ref;if(a===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error(c(284));(t===null||t.ref!==a)&&(e.flags|=4194816)}}function js(t,e,a,l,u){return sl(e),a=as(t,e,a,l,void 0,u),l=ls(),t!==null&&!Pt?(ns(t,e,u),da(t,e,u)):(jt&&l&&Qr(e),e.flags|=1,ne(t,e,a,u),e.child)}function pd(t,e,a,l,u,r){return sl(e),e.updateQueue=null,a=xf(e,l,a,u),bf(t),l=ls(),t!==null&&!Pt?(ns(t,e,r),da(t,e,r)):(jt&&l&&Qr(e),e.flags|=1,ne(t,e,a,r),e.child)}function gd(t,e,a,l,u){if(sl(e),e.stateNode===null){var r=Ql,f=a.contextType;typeof f=="object"&&f!==null&&(r=le(f)),r=new a(l,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=bs,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=l,r.state=e.memoizedState,r.refs={},Jr(e),f=a.contextType,r.context=typeof f=="object"&&f!==null?le(f):Ql,r.state=e.memoizedState,f=a.getDerivedStateFromProps,typeof f=="function"&&(gs(e,a,f,l),r.state=e.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&&bs.enqueueReplaceState(r,r.state,null),Yn(e,l,r,u),Ln(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){r=e.stateNode;var p=e.memoizedProps,b=ml(a,p);r.props=b;var N=r.context,R=a.contextType;f=Ql,typeof R=="object"&&R!==null&&(f=le(R));var w=a.getDerivedStateFromProps;R=typeof w=="function"||typeof r.getSnapshotBeforeUpdate=="function",p=e.pendingProps!==p,R||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(p||N!==f)&&nd(e,r,l,f),Ma=!1;var A=e.memoizedState;r.state=A,Yn(e,l,r,u),Ln(),N=e.memoizedState,p||A!==N||Ma?(typeof w=="function"&&(gs(e,a,w,l),N=e.memoizedState),(b=Ma||ld(e,a,b,l,A,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"&&(e.flags|=4194308)):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=l,e.memoizedState=N),r.props=l,r.state=N,r.context=f,l=b):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{r=e.stateNode,Fr(t,e),f=e.memoizedProps,R=ml(a,f),r.props=R,w=e.pendingProps,A=r.context,N=a.contextType,b=Ql,typeof N=="object"&&N!==null&&(b=le(N)),p=a.getDerivedStateFromProps,(N=typeof p=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==w||A!==b)&&nd(e,r,l,b),Ma=!1,A=e.memoizedState,r.state=A,Yn(e,l,r,u),Ln();var C=e.memoizedState;f!==w||A!==C||Ma||t!==null&&t.dependencies!==null&&Ku(t.dependencies)?(typeof p=="function"&&(gs(e,a,p,l),C=e.memoizedState),(R=Ma||ld(e,a,R,l,A,C,b)||t!==null&&t.dependencies!==null&&Ku(t.dependencies))?(N||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(l,C,b),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(l,C,b)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=C),r.props=l,r.state=C,r.context=b,l=R):(typeof r.componentDidUpdate!="function"||f===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),l=!1)}return r=l,ci(t,e),l=(e.flags&128)!==0,r||l?(r=e.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&l?(e.child=dl(e,t.child,null,u),e.child=dl(e,null,a,u)):ne(t,e,a,u),e.memoizedState=r.state,t=e.child):t=da(t,e,u),t}function bd(t,e,a,l){return il(),e.flags|=256,ne(t,e,a,l),e.child}var Os={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Es(t){return{baseLanes:t,cachePool:sf()}}function _s(t,e,a){return t=t!==null?t.childLanes&~a:0,e&&(t|=Ae),t}function xd(t,e,a){var l=e.pendingProps,u=!1,r=(e.flags&128)!==0,f;if((f=r)||(f=t!==null&&t.memoizedState===null?!1:(Kt.current&2)!==0),f&&(u=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(jt){if(u?Ra(e):Ua(),(t=wt)?(t=Ah(t,Qe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Na!==null?{id:$e,overflow:We}:null,retryLane:536870912,hydrationErrors:null},a=Wo(t),a.return=e,e.child=a,ae=e,wt=null)):t=null,t===null)throw Aa(e);return rc(t)?e.lanes=32:e.lanes=536870912,null}var p=l.children;return l=l.fallback,u?(Ua(),u=e.mode,p=oi({mode:"hidden",children:p},u),l=ul(l,u,a,null),p.return=e,l.return=e,p.sibling=l,e.child=p,l=e.child,l.memoizedState=Es(a),l.childLanes=_s(t,f,a),e.memoizedState=Os,Vn(null,l)):(Ra(e),Ns(e,p))}var b=t.memoizedState;if(b!==null&&(p=b.dehydrated,p!==null)){if(r)e.flags&256?(Ra(e),e.flags&=-257,e=Ts(t,e,a)):e.memoizedState!==null?(Ua(),e.child=t.child,e.flags|=128,e=null):(Ua(),p=l.fallback,u=e.mode,l=oi({mode:"visible",children:l.children},u),p=ul(p,u,a,null),p.flags|=2,l.return=e,p.return=e,l.sibling=p,e.child=l,dl(e,t.child,null,a),l=e.child,l.memoizedState=Es(a),l.childLanes=_s(t,f,a),e.memoizedState=Os,e=Vn(null,l));else if(Ra(e),rc(p)){if(f=p.nextSibling&&p.nextSibling.dataset,f)var N=f.dgst;f=N,l=Error(c(419)),l.stack="",l.digest=f,Un({value:l,source:null,stack:null}),e=Ts(t,e,a)}else if(Pt||Yl(t,e,a,!1),f=(a&t.childLanes)!==0,Pt||f){if(f=Ut,f!==null&&(l=no(f,a),l!==0&&l!==b.retryLane))throw b.retryLane=l,nl(t,l),ge(f,t,l),Ss;ic(p)||bi(),e=Ts(t,e,a)}else ic(p)?(e.flags|=192,e.child=t.child,e=null):(t=b.treeContext,wt=Be(p.nextSibling),ae=e,jt=!0,Ta=null,Qe=!1,t!==null&&ef(e,t),e=Ns(e,l.children),e.flags|=4096);return e}return u?(Ua(),p=l.fallback,u=e.mode,b=t.child,N=b.sibling,l=ia(b,{mode:"hidden",children:l.children}),l.subtreeFlags=b.subtreeFlags&65011712,N!==null?p=ia(N,p):(p=ul(p,u,a,null),p.flags|=2),p.return=e,l.return=e,l.sibling=p,e.child=l,Vn(null,l),l=e.child,p=t.child.memoizedState,p===null?p=Es(a):(u=p.cachePool,u!==null?(b=Jt._currentValue,u=u.parent!==b?{parent:b,pool:b}:u):u=sf(),p={baseLanes:p.baseLanes|a,cachePool:u}),l.memoizedState=p,l.childLanes=_s(t,f,a),e.memoizedState=Os,Vn(t.child,l)):(Ra(e),a=t.child,t=a.sibling,a=ia(a,{mode:"visible",children:l.children}),a.return=e,a.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=a,e.memoizedState=null,a)}function Ns(t,e){return e=oi({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function oi(t,e){return t=Ee(22,t,null,e),t.lanes=0,t}function Ts(t,e,a){return dl(e,t.child,null,a),t=Ns(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Sd(t,e,a){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Gr(t.return,e,a)}function As(t,e,a,l,u,r){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:u,treeForkCount:r}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=a,f.tailMode=u,f.treeForkCount=r)}function jd(t,e,a){var l=e.pendingProps,u=l.revealOrder,r=l.tail;l=l.children;var f=Kt.current,p=(f&2)!==0;if(p?(f=f&1|2,e.flags|=128):f&=1,B(Kt,f),ne(t,e,l,a),l=jt?Rn:0,!p&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Sd(t,a,e);else if(t.tag===19)Sd(t,a,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(a=e.child,u=null;a!==null;)t=a.alternate,t!==null&&Wu(t)===null&&(u=a),a=a.sibling;a=u,a===null?(u=e.child,e.child=null):(u=a.sibling,a.sibling=null),As(e,!1,u,a,r,l);break;case"backwards":case"unstable_legacy-backwards":for(a=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&Wu(t)===null){e.child=u;break}t=u.sibling,u.sibling=a,a=u,u=t}As(e,!0,a,null,r,l);break;case"together":As(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function da(t,e,a){if(t!==null&&(e.dependencies=t.dependencies),Qa|=e.lanes,(a&e.childLanes)===0)if(t!==null){if(Yl(t,e,a,!1),(a&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(c(153));if(e.child!==null){for(t=e.child,a=ia(t,t.pendingProps),e.child=a,a.return=e;t.sibling!==null;)t=t.sibling,a=a.sibling=ia(t,t.pendingProps),a.return=e;a.sibling=null}return e.child}function Cs(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&Ku(t)))}function $y(t,e,a){switch(e.tag){case 3:kt(e,e.stateNode.containerInfo),Ca(e,Jt,t.memoizedState.cache),il();break;case 27:case 5:Sa(e);break;case 4:kt(e,e.stateNode.containerInfo);break;case 10:Ca(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,ts(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(Ra(e),e.flags|=128,null):(a&e.child.childLanes)!==0?xd(t,e,a):(Ra(e),t=da(t,e,a),t!==null?t.sibling:null);Ra(e);break;case 19:var u=(t.flags&128)!==0;if(l=(a&e.childLanes)!==0,l||(Yl(t,e,a,!1),l=(a&e.childLanes)!==0),u){if(l)return jd(t,e,a);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),B(Kt,Kt.current),l)break;return null;case 22:return e.lanes=0,md(t,e,a,e.pendingProps);case 24:Ca(e,Jt,t.memoizedState.cache)}return da(t,e,a)}function Od(t,e,a){if(t!==null)if(t.memoizedProps!==e.pendingProps)Pt=!0;else{if(!Cs(t,a)&&(e.flags&128)===0)return Pt=!1,$y(t,e,a);Pt=(t.flags&131072)!==0}else Pt=!1,jt&&(e.flags&1048576)!==0&&tf(e,Rn,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=ol(e.elementType),e.type=t,typeof t=="function")Ur(t)?(l=ml(t,l),e.tag=1,e=gd(null,e,t,l,a)):(e.tag=0,e=js(null,e,t,l,a));else{if(t!=null){var u=t.$$typeof;if(u===qt){e.tag=11,e=fd(null,e,t,l,a);break t}else if(u===z){e.tag=14,e=dd(null,e,t,l,a);break t}}throw e=ct(t)||t,Error(c(306,e,""))}}return e;case 0:return js(t,e,e.type,e.pendingProps,a);case 1:return l=e.type,u=ml(l,e.pendingProps),gd(t,e,l,u,a);case 3:t:{if(kt(e,e.stateNode.containerInfo),t===null)throw Error(c(387));l=e.pendingProps;var r=e.memoizedState;u=r.element,Fr(t,e),Yn(e,l,null,a);var f=e.memoizedState;if(l=f.cache,Ca(e,Jt,l),l!==r.cache&&Xr(e,[Jt],a,!0),Ln(),l=f.element,r.isDehydrated)if(r={element:l,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=bd(t,e,l,a);break t}else if(l!==u){u=Ue(Error(c(424)),e),Un(u),e=bd(t,e,l,a);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(wt=Be(t.firstChild),ae=e,jt=!0,Ta=null,Qe=!0,a=mf(e,null,l,a),e.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(il(),l===u){e=da(t,e,a);break t}ne(t,e,l,a)}e=e.child}return e;case 26:return ci(t,e),t===null?(a=Uh(e.type,null,e.pendingProps,null))?e.memoizedState=a:jt||(a=e.type,t=e.pendingProps,l=Ni(st.current).createElement(a),l[ee]=e,l[de]=t,ue(l,a,t),It(l),e.stateNode=l):e.memoizedState=Uh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Sa(e),t===null&&jt&&(l=e.stateNode=zh(e.type,e.pendingProps,st.current),ae=e,Qe=!0,u=wt,Ga(e.type)?(sc=u,wt=Be(l.firstChild)):wt=u),ne(t,e,e.pendingProps.children,a),ci(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&jt&&((u=l=wt)&&(l=Tp(l,e.type,e.pendingProps,Qe),l!==null?(e.stateNode=l,ae=e,wt=Be(l.firstChild),Qe=!1,u=!0):u=!1),u||Aa(e)),Sa(e),u=e.type,r=e.pendingProps,f=t!==null?t.memoizedProps:null,l=r.children,lc(u,r)?l=null:f!==null&&lc(u,f)&&(e.flags|=32),e.memoizedState!==null&&(u=as(t,e,Gy,null,null,a),ru._currentValue=u),ci(t,e),ne(t,e,l,a),e.child;case 6:return t===null&&jt&&((t=a=wt)&&(a=Ap(a,e.pendingProps,Qe),a!==null?(e.stateNode=a,ae=e,wt=null,t=!0):t=!1),t||Aa(e)),null;case 13:return xd(t,e,a);case 4:return kt(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=dl(e,null,l,a):ne(t,e,l,a),e.child;case 11:return fd(t,e,e.type,e.pendingProps,a);case 7:return ne(t,e,e.pendingProps,a),e.child;case 8:return ne(t,e,e.pendingProps.children,a),e.child;case 12:return ne(t,e,e.pendingProps.children,a),e.child;case 10:return l=e.pendingProps,Ca(e,e.type,l.value),ne(t,e,l.children,a),e.child;case 9:return u=e.type._context,l=e.pendingProps.children,sl(e),u=le(u),l=l(u),e.flags|=1,ne(t,e,l,a),e.child;case 14:return dd(t,e,e.type,e.pendingProps,a);case 15:return hd(t,e,e.type,e.pendingProps,a);case 19:return jd(t,e,a);case 31:return Py(t,e,a);case 22:return md(t,e,a,e.pendingProps);case 24:return sl(e),l=le(Jt),t===null?(u=Vr(),u===null&&(u=Ut,r=Kr(),u.pooledCache=r,r.refCount++,r!==null&&(u.pooledCacheLanes|=a),u=r),e.memoizedState={parent:l,cache:u},Jr(e),Ca(e,Jt,u)):((t.lanes&a)!==0&&(Fr(t,e),Yn(e,null,null,a),Ln()),u=t.memoizedState,r=e.memoizedState,u.parent!==l?(u={parent:l,cache:l},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),Ca(e,Jt,l)):(l=r.cache,Ca(e,Jt,l),l!==u.cache&&Xr(e,[Jt],a,!0))),ne(t,e,e.pendingProps.children,a),e.child;case 29:throw e.pendingProps}throw Error(c(156,e.tag))}function ha(t){t.flags|=4}function Ms(t,e,a,l,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(Pd())t.flags|=8192;else throw fl=Ju,kr}else t.flags&=-16777217}function Ed(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Bh(e))if(Pd())t.flags|=8192;else throw fl=Ju,kr}function fi(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?eo():536870912,t.lanes|=e,Il|=e)}function kn(t,e){if(!jt)switch(t.tailMode){case"hidden":e=t.tail;for(var a=null;e!==null;)e.alternate!==null&&(a=e),e=e.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Qt(t){var e=t.alternate!==null&&t.alternate.child===t.child,a=0,l=0;if(e)for(var u=t.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags&65011712,l|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)a|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=l,t.childLanes=a,e}function Wy(t,e,a){var l=e.pendingProps;switch(Hr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qt(e),null;case 1:return Qt(e),null;case 3:return a=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),ca(Jt),Ht(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Ll(e)?ha(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,Lr())),Qt(e),null;case 26:var u=e.type,r=e.memoizedState;return t===null?(ha(e),r!==null?(Qt(e),Ed(e,r)):(Qt(e),Ms(e,u,null,l,a))):r?r!==t.memoizedState?(ha(e),Qt(e),Ed(e,r)):(Qt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&ha(e),Qt(e),Ms(e,u,t,l,a)),null;case 27:if($a(e),a=st.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&ha(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return Qt(e),null}t=L.current,Ll(e)?af(e):(t=zh(u,l,a),e.stateNode=t,ha(e))}return Qt(e),null;case 5:if($a(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&ha(e);else{if(!l){if(e.stateNode===null)throw Error(c(166));return Qt(e),null}if(r=L.current,Ll(e))af(e);else{var f=Ni(st.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[ee]=e,r[de]=l;t:for(f=e.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===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=r;t:switch(ue(r,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break t;case"img":l=!0;break t;default:l=!1}l&&ha(e)}}return Qt(e),Ms(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,a),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&ha(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(c(166));if(t=st.current,Ll(e)){if(t=e.stateNode,a=e.memoizedProps,l=null,u=ae,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}t[ee]=e,t=!!(t.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||xh(t.nodeValue,a)),t||Aa(e,!0)}else t=Ni(t).createTextNode(l),t[ee]=e,e.stateNode=t}return Qt(e),null;case 31:if(a=e.memoizedState,t===null||t.memoizedState!==null){if(l=Ll(e),a!==null){if(t===null){if(!l)throw Error(c(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(c(557));t[ee]=e}else il(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Qt(e),t=!1}else a=Lr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return e.flags&256?(Ne(e),e):(Ne(e),null);if((e.flags&128)!==0)throw Error(c(558))}return Qt(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Ll(e),l!==null&&l.dehydrated!==null){if(t===null){if(!u)throw Error(c(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(c(317));u[ee]=e}else il(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Qt(e),u=!1}else u=Lr(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(Ne(e),e):(Ne(e),null)}return Ne(e),(e.flags&128)!==0?(e.lanes=a,e):(a=l!==null,t=t!==null&&t.memoizedState!==null,a&&(l=e.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),r=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==u&&(l.flags|=2048)),a!==t&&a&&(e.child.flags|=8192),fi(e,e.updateQueue),Qt(e),null);case 4:return Ht(),t===null&&Ws(e.stateNode.containerInfo),Qt(e),null;case 10:return ca(e.type),Qt(e),null;case 19:if(D(Kt),l=e.memoizedState,l===null)return Qt(e),null;if(u=(e.flags&128)!==0,r=l.rendering,r===null)if(u)kn(l,!1);else{if(Gt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=Wu(t),r!==null){for(e.flags|=128,kn(l,!1),t=r.updateQueue,e.updateQueue=t,fi(e,t),e.subtreeFlags=0,t=a,a=e.child;a!==null;)$o(a,t),a=a.sibling;return B(Kt,Kt.current&1|2),jt&&ra(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&At()>yi&&(e.flags|=128,u=!0,kn(l,!1),e.lanes=4194304)}else{if(!u)if(t=Wu(r),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,fi(e,t),kn(l,!0),l.tail===null&&l.tailMode==="hidden"&&!r.alternate&&!jt)return Qt(e),null}else 2*At()-l.renderingStartTime>yi&&a!==536870912&&(e.flags|=128,u=!0,kn(l,!1),e.lanes=4194304);l.isBackwards?(r.sibling=e.child,e.child=r):(t=l.last,t!==null?t.sibling=r:e.child=r,l.last=r)}return l.tail!==null?(t=l.tail,l.rendering=t,l.tail=t.sibling,l.renderingStartTime=At(),t.sibling=null,a=Kt.current,B(Kt,u?a&1|2:a&1),jt&&ra(e,l.treeForkCount),t):(Qt(e),null);case 22:case 23:return Ne(e),Ir(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(a&536870912)!==0&&(e.flags&128)===0&&(Qt(e),e.subtreeFlags&6&&(e.flags|=8192)):Qt(e),a=e.updateQueue,a!==null&&fi(e,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==a&&(e.flags|=2048),t!==null&&D(cl),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),ca(Jt),Qt(e),null;case 25:return null;case 30:return null}throw Error(c(156,e.tag))}function Iy(t,e){switch(Hr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return ca(Jt),Ht(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return $a(e),null;case 31:if(e.memoizedState!==null){if(Ne(e),e.alternate===null)throw Error(c(340));il()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(Ne(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(c(340));il()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return D(Kt),null;case 4:return Ht(),null;case 10:return ca(e.type),null;case 22:case 23:return Ne(e),Ir(),t!==null&&D(cl),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return ca(Jt),null;case 25:return null;default:return null}}function _d(t,e){switch(Hr(e),e.tag){case 3:ca(Jt),Ht();break;case 26:case 27:case 5:$a(e);break;case 4:Ht();break;case 31:e.memoizedState!==null&&Ne(e);break;case 13:Ne(e);break;case 19:D(Kt);break;case 10:ca(e.type);break;case 22:case 23:Ne(e),Ir(),t!==null&&D(cl);break;case 24:ca(Jt)}}function Jn(t,e){try{var a=e.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var u=l.next;a=u;do{if((a.tag&t)===t){l=void 0;var r=a.create,f=a.inst;l=r(),f.destroy=l}a=a.next}while(a!==u)}}catch(p){Mt(e,e.return,p)}}function qa(t,e,a){try{var l=e.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var r=u.next;l=r;do{if((l.tag&t)===t){var f=l.inst,p=f.destroy;if(p!==void 0){f.destroy=void 0,u=e;var b=a,N=p;try{N()}catch(R){Mt(u,b,R)}}}l=l.next}while(l!==r)}}catch(R){Mt(e,e.return,R)}}function Nd(t){var e=t.updateQueue;if(e!==null){var a=t.stateNode;try{yf(e,a)}catch(l){Mt(t,t.return,l)}}}function Td(t,e,a){a.props=ml(t.type,t.memoizedProps),a.state=t.memoizedState;try{a.componentWillUnmount()}catch(l){Mt(t,e,l)}}function Fn(t,e){try{var a=t.ref;if(a!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof a=="function"?t.refCleanup=a(l):a.current=l}}catch(u){Mt(t,e,u)}}function Ie(t,e){var a=t.ref,l=t.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(u){Mt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){Mt(t,e,u)}else a.current=null}function Ad(t){var e=t.type,a=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break t;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(u){Mt(t,t.return,u)}}function zs(t,e,a){try{var l=t.stateNode;Sp(l,t.type,a,e),l[de]=e}catch(u){Mt(t,t.return,u)}}function Cd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Ga(t.type)||t.tag===4}function Ds(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Cd(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Ga(t.type)||t.flags&2||t.child===null||t.tag===4)continue t;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Rs(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,e):(e=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,e.appendChild(t),a=a._reactRootContainer,a!=null||e.onclick!==null||(e.onclick=na));else if(l!==4&&(l===27&&Ga(t.type)&&(a=t.stateNode,e=null),t=t.child,t!==null))for(Rs(t,e,a),t=t.sibling;t!==null;)Rs(t,e,a),t=t.sibling}function di(t,e,a){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?a.insertBefore(t,e):a.appendChild(t);else if(l!==4&&(l===27&&Ga(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(di(t,e,a),t=t.sibling;t!==null;)di(t,e,a),t=t.sibling}function Md(t){var e=t.stateNode,a=t.memoizedProps;try{for(var l=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);ue(e,l,a),e[ee]=t,e[de]=a}catch(r){Mt(t,t.return,r)}}var ma=!1,$t=!1,Us=!1,zd=typeof WeakSet=="function"?WeakSet:Set,te=null;function tp(t,e){if(t=t.containerInfo,ec=Ri,t=Go(t),Tr(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else t:{a=(a=t.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var u=l.anchorOffset,r=l.focusNode;l=l.focusOffset;try{a.nodeType,r.nodeType}catch{a=null;break t}var f=0,p=-1,b=-1,N=0,R=0,w=t,A=null;e:for(;;){for(var C;w!==a||u!==0&&w.nodeType!==3||(p=f+u),w!==r||l!==0&&w.nodeType!==3||(b=f+l),w.nodeType===3&&(f+=w.nodeValue.length),(C=w.firstChild)!==null;)A=w,w=C;for(;;){if(w===t)break e;if(A===a&&++N===u&&(p=f),A===r&&++R===l&&(b=f),(C=w.nextSibling)!==null)break;w=A,A=w.parentNode}w=C}a=p===-1||b===-1?null:{start:p,end:b}}else a=null}a=a||{start:0,end:0}}else a=null;for(ac={focusedElem:t,selectionRange:a},Ri=!1,te=e;te!==null;)if(e=te,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,te=t;else for(;te!==null;){switch(e=te,r=e.alternate,t=e.flags,e.tag){case 0:if((t&4)!==0&&(t=e.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)u=t[a],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&r!==null){t=void 0,a=e,u=r.memoizedProps,r=r.memoizedState,l=a.stateNode;try{var J=ml(a.type,u);t=l.getSnapshotBeforeUpdate(J,r),l.__reactInternalSnapshotBeforeUpdate=t}catch(it){Mt(a,a.return,it)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,a=t.nodeType,a===9)uc(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":uc(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(c(163))}if(t=e.sibling,t!==null){t.return=e.return,te=t;break}te=e.return}}function Dd(t,e,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:ya(t,a),l&4&&Jn(5,a);break;case 1:if(ya(t,a),l&4)if(t=a.stateNode,e===null)try{t.componentDidMount()}catch(f){Mt(a,a.return,f)}else{var u=ml(a.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Mt(a,a.return,f)}}l&64&&Nd(a),l&512&&Fn(a,a.return);break;case 3:if(ya(t,a),l&64&&(t=a.updateQueue,t!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{yf(t,e)}catch(f){Mt(a,a.return,f)}}break;case 27:e===null&&l&4&&Md(a);case 26:case 5:ya(t,a),e===null&&l&4&&Ad(a),l&512&&Fn(a,a.return);break;case 12:ya(t,a);break;case 31:ya(t,a),l&4&&qd(t,a);break;case 13:ya(t,a),l&4&&wd(t,a),l&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(a=cp.bind(null,a),Cp(t,a))));break;case 22:if(l=a.memoizedState!==null||ma,!l){e=e!==null&&e.memoizedState!==null||$t,u=ma;var r=$t;ma=l,($t=e)&&!r?pa(t,a,(a.subtreeFlags&8772)!==0):ya(t,a),ma=u,$t=r}break;case 30:break;default:ya(t,a)}}function Rd(t){var e=t.alternate;e!==null&&(t.alternate=null,Rd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&or(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Bt=null,me=!1;function va(t,e,a){for(a=a.child;a!==null;)Ud(t,e,a),a=a.sibling}function Ud(t,e,a){if(Se&&typeof Se.onCommitFiberUnmount=="function")try{Se.onCommitFiberUnmount(bn,a)}catch{}switch(a.tag){case 26:$t||Ie(a,e),va(t,e,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:$t||Ie(a,e);var l=Bt,u=me;Ga(a.type)&&(Bt=a.stateNode,me=!1),va(t,e,a),nu(a.stateNode),Bt=l,me=u;break;case 5:$t||Ie(a,e);case 6:if(l=Bt,u=me,Bt=null,va(t,e,a),Bt=l,me=u,Bt!==null)if(me)try{(Bt.nodeType===9?Bt.body:Bt.nodeName==="HTML"?Bt.ownerDocument.body:Bt).removeChild(a.stateNode)}catch(r){Mt(a,e,r)}else try{Bt.removeChild(a.stateNode)}catch(r){Mt(a,e,r)}break;case 18:Bt!==null&&(me?(t=Bt,Nh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),sn(t)):Nh(Bt,a.stateNode));break;case 4:l=Bt,u=me,Bt=a.stateNode.containerInfo,me=!0,va(t,e,a),Bt=l,me=u;break;case 0:case 11:case 14:case 15:qa(2,a,e),$t||qa(4,a,e),va(t,e,a);break;case 1:$t||(Ie(a,e),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Td(a,e,l)),va(t,e,a);break;case 21:va(t,e,a);break;case 22:$t=(l=$t)||a.memoizedState!==null,va(t,e,a),$t=l;break;default:va(t,e,a)}}function qd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{sn(t)}catch(a){Mt(e,e.return,a)}}}function wd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{sn(t)}catch(a){Mt(e,e.return,a)}}function ep(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new zd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new zd),e;default:throw Error(c(435,t.tag))}}function hi(t,e){var a=ep(t);e.forEach(function(l){if(!a.has(l)){a.add(l);var u=op.bind(null,t,l);l.then(u,u)}})}function ve(t,e){var a=e.deletions;if(a!==null)for(var l=0;l<a.length;l++){var u=a[l],r=t,f=e,p=f;t:for(;p!==null;){switch(p.tag){case 27:if(Ga(p.type)){Bt=p.stateNode,me=!1;break t}break;case 5:Bt=p.stateNode,me=!1;break t;case 3:case 4:Bt=p.stateNode.containerInfo,me=!0;break t}p=p.return}if(Bt===null)throw Error(c(160));Ud(r,f,u),Bt=null,me=!1,r=u.alternate,r!==null&&(r.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)Qd(e,t),e=e.sibling}var Xe=null;function Qd(t,e){var a=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ve(e,t),ye(t),l&4&&(qa(3,t,t.return),Jn(3,t),qa(5,t,t.return));break;case 1:ve(e,t),ye(t),l&512&&($t||a===null||Ie(a,a.return)),l&64&&ma&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(a=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var u=Xe;if(ve(e,t),ye(t),l&512&&($t||a===null||Ie(a,a.return)),l&4){var r=a!==null?a.memoizedState:null;if(l=t.memoizedState,a===null)if(l===null)if(t.stateNode===null){t:{l=t.type,a=t.memoizedProps,u=u.ownerDocument||u;e:switch(l){case"title":r=u.getElementsByTagName("title")[0],(!r||r[jn]||r[ee]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=u.createElement(l),u.head.insertBefore(r,u.querySelector("head > title"))),ue(r,l,a),r[ee]=t,It(r),l=r;break t;case"link":var f=Qh("link","href",u).get(l+(a.href||""));if(f){for(var p=0;p<f.length;p++)if(r=f[p],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(p,1);break e}}r=u.createElement(l),ue(r,l,a),u.head.appendChild(r);break;case"meta":if(f=Qh("meta","content",u).get(l+(a.content||""))){for(p=0;p<f.length;p++)if(r=f[p],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(p,1);break e}}r=u.createElement(l),ue(r,l,a),u.head.appendChild(r);break;default:throw Error(c(468,l))}r[ee]=t,It(r),l=r}t.stateNode=l}else Hh(u,t.type,t.stateNode);else t.stateNode=wh(u,l,t.memoizedProps);else r!==l?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,l===null?Hh(u,t.type,t.stateNode):wh(u,l,t.memoizedProps)):l===null&&t.stateNode!==null&&zs(t,t.memoizedProps,a.memoizedProps)}break;case 27:ve(e,t),ye(t),l&512&&($t||a===null||Ie(a,a.return)),a!==null&&l&4&&zs(t,t.memoizedProps,a.memoizedProps);break;case 5:if(ve(e,t),ye(t),l&512&&($t||a===null||Ie(a,a.return)),t.flags&32){u=t.stateNode;try{Ml(u,"")}catch(J){Mt(t,t.return,J)}}l&4&&t.stateNode!=null&&(u=t.memoizedProps,zs(t,u,a!==null?a.memoizedProps:u)),l&1024&&(Us=!0);break;case 6:if(ve(e,t),ye(t),l&4){if(t.stateNode===null)throw Error(c(162));l=t.memoizedProps,a=t.stateNode;try{a.nodeValue=l}catch(J){Mt(t,t.return,J)}}break;case 3:if(Ci=null,u=Xe,Xe=Ti(e.containerInfo),ve(e,t),Xe=u,ye(t),l&4&&a!==null&&a.memoizedState.isDehydrated)try{sn(e.containerInfo)}catch(J){Mt(t,t.return,J)}Us&&(Us=!1,Hd(t));break;case 4:l=Xe,Xe=Ti(t.stateNode.containerInfo),ve(e,t),ye(t),Xe=l;break;case 12:ve(e,t),ye(t);break;case 31:ve(e,t),ye(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,hi(t,l)));break;case 13:ve(e,t),ye(t),t.child.flags&8192&&t.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(vi=At()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,hi(t,l)));break;case 22:u=t.memoizedState!==null;var b=a!==null&&a.memoizedState!==null,N=ma,R=$t;if(ma=N||u,$t=R||b,ve(e,t),$t=R,ma=N,ye(t),l&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(a===null||b||ma||$t||vl(t)),a=null,e=t;;){if(e.tag===5||e.tag===26){if(a===null){b=a=e;try{if(r=b.stateNode,u)f=r.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{p=b.stateNode;var w=b.memoizedProps.style,A=w!=null&&w.hasOwnProperty("display")?w.display:null;p.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(J){Mt(b,b.return,J)}}}else if(e.tag===6){if(a===null){b=e;try{b.stateNode.nodeValue=u?"":b.memoizedProps}catch(J){Mt(b,b.return,J)}}}else if(e.tag===18){if(a===null){b=e;try{var C=b.stateNode;u?Th(C,!0):Th(b.stateNode,!1)}catch(J){Mt(b,b.return,J)}}}else if((e.tag!==22&&e.tag!==23||e.memoizedState===null||e===t)&&e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;a===e&&(a=null),e=e.return}a===e&&(a=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,hi(t,a))));break;case 19:ve(e,t),ye(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,hi(t,l)));break;case 30:break;case 21:break;default:ve(e,t),ye(t)}}function ye(t){var e=t.flags;if(e&2){try{for(var a,l=t.return;l!==null;){if(Cd(l)){a=l;break}l=l.return}if(a==null)throw Error(c(160));switch(a.tag){case 27:var u=a.stateNode,r=Ds(t);di(t,r,u);break;case 5:var f=a.stateNode;a.flags&32&&(Ml(f,""),a.flags&=-33);var p=Ds(t);di(t,p,f);break;case 3:case 4:var b=a.stateNode.containerInfo,N=Ds(t);Rs(t,N,b);break;default:throw Error(c(161))}}catch(R){Mt(t,t.return,R)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Hd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;Hd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function ya(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)Dd(t,e.alternate,e),e=e.sibling}function vl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:qa(4,e,e.return),vl(e);break;case 1:Ie(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount=="function"&&Td(e,e.return,a),vl(e);break;case 27:nu(e.stateNode);case 26:case 5:Ie(e,e.return),vl(e);break;case 22:e.memoizedState===null&&vl(e);break;case 30:vl(e);break;default:vl(e)}t=t.sibling}}function pa(t,e,a){for(a=a&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var l=e.alternate,u=t,r=e,f=r.flags;switch(r.tag){case 0:case 11:case 15:pa(u,r,a),Jn(4,r);break;case 1:if(pa(u,r,a),l=r,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(N){Mt(l,l.return,N)}if(l=r,u=l.updateQueue,u!==null){var p=l.stateNode;try{var b=u.shared.hiddenCallbacks;if(b!==null)for(u.shared.hiddenCallbacks=null,u=0;u<b.length;u++)vf(b[u],p)}catch(N){Mt(l,l.return,N)}}a&&f&64&&Nd(r),Fn(r,r.return);break;case 27:Md(r);case 26:case 5:pa(u,r,a),a&&l===null&&f&4&&Ad(r),Fn(r,r.return);break;case 12:pa(u,r,a);break;case 31:pa(u,r,a),a&&f&4&&qd(u,r);break;case 13:pa(u,r,a),a&&f&4&&wd(u,r);break;case 22:r.memoizedState===null&&pa(u,r,a),Fn(r,r.return);break;case 30:break;default:pa(u,r,a)}e=e.sibling}}function qs(t,e){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==a&&(t!=null&&t.refCount++,a!=null&&qn(a))}function ws(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&qn(t))}function Ke(t,e,a,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Bd(t,e,a,l),e=e.sibling}function Bd(t,e,a,l){var u=e.flags;switch(e.tag){case 0:case 11:case 15:Ke(t,e,a,l),u&2048&&Jn(9,e);break;case 1:Ke(t,e,a,l);break;case 3:Ke(t,e,a,l),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&qn(t)));break;case 12:if(u&2048){Ke(t,e,a,l),t=e.stateNode;try{var r=e.memoizedProps,f=r.id,p=r.onPostCommit;typeof p=="function"&&p(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(b){Mt(e,e.return,b)}}else Ke(t,e,a,l);break;case 31:Ke(t,e,a,l);break;case 13:Ke(t,e,a,l);break;case 23:break;case 22:r=e.stateNode,f=e.alternate,e.memoizedState!==null?r._visibility&2?Ke(t,e,a,l):Pn(t,e):r._visibility&2?Ke(t,e,a,l):(r._visibility|=2,Pl(t,e,a,l,(e.subtreeFlags&10256)!==0||!1)),u&2048&&qs(f,e);break;case 24:Ke(t,e,a,l),u&2048&&ws(e.alternate,e);break;default:Ke(t,e,a,l)}}function Pl(t,e,a,l,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,f=e,p=a,b=l,N=f.flags;switch(f.tag){case 0:case 11:case 15:Pl(r,f,p,b,u),Jn(8,f);break;case 23:break;case 22:var R=f.stateNode;f.memoizedState!==null?R._visibility&2?Pl(r,f,p,b,u):Pn(r,f):(R._visibility|=2,Pl(r,f,p,b,u)),u&&N&2048&&qs(f.alternate,f);break;case 24:Pl(r,f,p,b,u),u&&N&2048&&ws(f.alternate,f);break;default:Pl(r,f,p,b,u)}e=e.sibling}}function Pn(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var a=t,l=e,u=l.flags;switch(l.tag){case 22:Pn(a,l),u&2048&&qs(l.alternate,l);break;case 24:Pn(a,l),u&2048&&ws(l.alternate,l);break;default:Pn(a,l)}e=e.sibling}}var $n=8192;function $l(t,e,a){if(t.subtreeFlags&$n)for(t=t.child;t!==null;)Ld(t,e,a),t=t.sibling}function Ld(t,e,a){switch(t.tag){case 26:$l(t,e,a),t.flags&$n&&t.memoizedState!==null&&Yp(a,Xe,t.memoizedState,t.memoizedProps);break;case 5:$l(t,e,a);break;case 3:case 4:var l=Xe;Xe=Ti(t.stateNode.containerInfo),$l(t,e,a),Xe=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=$n,$n=16777216,$l(t,e,a),$n=l):$l(t,e,a));break;default:$l(t,e,a)}}function Yd(t){var e=t.alternate;if(e!==null&&(t=e.child,t!==null)){e.child=null;do e=t.sibling,t.sibling=null,t=e;while(t!==null)}}function Wn(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];te=l,Xd(l,t)}Yd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Gd(t),t=t.sibling}function Gd(t){switch(t.tag){case 0:case 11:case 15:Wn(t),t.flags&2048&&qa(9,t,t.return);break;case 3:Wn(t);break;case 12:Wn(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,mi(t)):Wn(t);break;default:Wn(t)}}function mi(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var a=0;a<e.length;a++){var l=e[a];te=l,Xd(l,t)}Yd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:qa(8,e,e.return),mi(e);break;case 22:a=e.stateNode,a._visibility&2&&(a._visibility&=-3,mi(e));break;default:mi(e)}t=t.sibling}}function Xd(t,e){for(;te!==null;){var a=te;switch(a.tag){case 0:case 11:case 15:qa(8,a,e);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:qn(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,te=l;else t:for(a=t;te!==null;){l=te;var u=l.sibling,r=l.return;if(Rd(l),l===a){te=null;break t}if(u!==null){u.return=r,te=u;break t}te=r}}}var ap={getCacheForType:function(t){var e=le(Jt),a=e.data.get(t);return a===void 0&&(a=t(),e.data.set(t,a)),a},cacheSignal:function(){return le(Jt).controller.signal}},lp=typeof WeakMap=="function"?WeakMap:Map,Nt=0,Ut=null,gt=null,xt=0,Ct=0,Te=null,wa=!1,Wl=!1,Qs=!1,ga=0,Gt=0,Qa=0,yl=0,Hs=0,Ae=0,Il=0,In=null,pe=null,Bs=!1,vi=0,Kd=0,yi=1/0,pi=null,Ha=null,Wt=0,Ba=null,tn=null,ba=0,Ls=0,Ys=null,Zd=null,tu=0,Gs=null;function Ce(){return(Nt&2)!==0&&xt!==0?xt&-xt:T.T!==null?Js():uo()}function Vd(){if(Ae===0)if((xt&536870912)===0||jt){var t=_u;_u<<=1,(_u&3932160)===0&&(_u=262144),Ae=t}else Ae=536870912;return t=_e.current,t!==null&&(t.flags|=32),Ae}function ge(t,e,a){(t===Ut&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)&&(en(t,0),La(t,xt,Ae,!1)),Sn(t,a),((Nt&2)===0||t!==Ut)&&(t===Ut&&((Nt&2)===0&&(yl|=a),Gt===4&&La(t,xt,Ae,!1)),ta(t))}function kd(t,e,a){if((Nt&6)!==0)throw Error(c(327));var l=!a&&(e&127)===0&&(e&t.expiredLanes)===0||xn(t,e),u=l?ip(t,e):Ks(t,e,!0),r=l;do{if(u===0){Wl&&!l&&La(t,e,0,!1);break}else{if(a=t.current.alternate,r&&!np(a)){u=Ks(t,e,!1),r=!1;continue}if(u===2){if(r=e,t.errorRecoveryDisabledLanes&r)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var p=t;u=In;var b=p.current.memoizedState.isDehydrated;if(b&&(en(p,f).flags|=256),f=Ks(p,f,!1),f!==2){if(Qs&&!b){p.errorRecoveryDisabledLanes|=r,yl|=r,u=4;break t}r=pe,pe=u,r!==null&&(pe===null?pe=r:pe.push.apply(pe,r))}u=f}if(r=!1,u!==2)continue}}if(u===1){en(t,0),La(t,e,0,!0);break}t:{switch(l=t,r=u,r){case 0:case 1:throw Error(c(345));case 4:if((e&4194048)!==e)break;case 6:La(l,e,Ae,!wa);break t;case 2:pe=null;break;case 3:case 5:break;default:throw Error(c(329))}if((e&62914560)===e&&(u=vi+300-At(),10<u)){if(La(l,e,Ae,!wa),Tu(l,0,!0)!==0)break t;ba=e,l.timeoutHandle=Eh(Jd.bind(null,l,a,pe,pi,Bs,e,Ae,yl,Il,wa,r,"Throttled",-0,0),u);break t}Jd(l,a,pe,pi,Bs,e,Ae,yl,Il,wa,r,null,-0,0)}}break}while(!0);ta(t)}function Jd(t,e,a,l,u,r,f,p,b,N,R,w,A,C){if(t.timeoutHandle=-1,w=e.subtreeFlags,w&8192||(w&16785408)===16785408){w={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:na},Ld(e,r,w);var J=(r&62914560)===r?vi-At():(r&4194048)===r?Kd-At():0;if(J=Gp(w,J),J!==null){ba=r,t.cancelPendingCommit=J(ah.bind(null,t,e,r,a,l,u,f,p,b,R,w,null,A,C)),La(t,r,f,!N);return}}ah(t,e,r,a,l,u,f,p,b)}function np(t){for(var e=t;;){var a=e.tag;if((a===0||a===11||a===15)&&e.flags&16384&&(a=e.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var u=a[l],r=u.getSnapshot;u=u.value;try{if(!Oe(r(),u))return!1}catch{return!1}}if(a=e.child,e.subtreeFlags&16384&&a!==null)a.return=e,e=a;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function La(t,e,a,l){e&=~Hs,e&=~yl,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var u=e;0<u;){var r=31-je(u),f=1<<r;l[r]=-1,u&=~f}a!==0&&ao(t,a,e)}function gi(){return(Nt&6)===0?(eu(0),!1):!0}function Xs(){if(gt!==null){if(Ct===0)var t=gt.return;else t=gt,sa=rl=null,us(t),Zl=null,Qn=0,t=gt;for(;t!==null;)_d(t.alternate,t),t=t.return;gt=null}}function en(t,e){var a=t.timeoutHandle;a!==-1&&(t.timeoutHandle=-1,Ep(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),ba=0,Xs(),Ut=t,gt=a=ia(t.current,null),xt=e,Ct=0,Te=null,wa=!1,Wl=xn(t,e),Qs=!1,Il=Ae=Hs=yl=Qa=Gt=0,pe=In=null,Bs=!1,(e&8)!==0&&(e|=e&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=e;0<l;){var u=31-je(l),r=1<<u;e|=t[u],l&=~r}return ga=e,Bu(),a}function Fd(t,e){dt=null,T.H=Zn,e===Kl||e===ku?(e=ff(),Ct=3):e===kr?(e=ff(),Ct=4):Ct=e===Ss?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Te=e,gt===null&&(Gt=1,ri(t,Ue(e,t.current)))}function Pd(){var t=_e.current;return t===null?!0:(xt&4194048)===xt?He===null:(xt&62914560)===xt||(xt&536870912)!==0?t===He:!1}function $d(){var t=T.H;return T.H=Zn,t===null?Zn:t}function Wd(){var t=T.A;return T.A=ap,t}function bi(){Gt=4,wa||(xt&4194048)!==xt&&_e.current!==null||(Wl=!0),(Qa&134217727)===0&&(yl&134217727)===0||Ut===null||La(Ut,xt,Ae,!1)}function Ks(t,e,a){var l=Nt;Nt|=2;var u=$d(),r=Wd();(Ut!==t||xt!==e)&&(pi=null,en(t,e)),e=!1;var f=Gt;t:do try{if(Ct!==0&&gt!==null){var p=gt,b=Te;switch(Ct){case 8:Xs(),f=6;break t;case 3:case 2:case 9:case 6:_e.current===null&&(e=!0);var N=Ct;if(Ct=0,Te=null,an(t,p,b,N),a&&Wl){f=0;break t}break;default:N=Ct,Ct=0,Te=null,an(t,p,b,N)}}up(),f=Gt;break}catch(R){Fd(t,R)}while(!0);return e&&t.shellSuspendCounter++,sa=rl=null,Nt=l,T.H=u,T.A=r,gt===null&&(Ut=null,xt=0,Bu()),f}function up(){for(;gt!==null;)Id(gt)}function ip(t,e){var a=Nt;Nt|=2;var l=$d(),u=Wd();Ut!==t||xt!==e?(pi=null,yi=At()+500,en(t,e)):Wl=xn(t,e);t:do try{if(Ct!==0&&gt!==null){e=gt;var r=Te;e:switch(Ct){case 1:Ct=0,Te=null,an(t,e,r,1);break;case 2:case 9:if(cf(r)){Ct=0,Te=null,th(e);break}e=function(){Ct!==2&&Ct!==9||Ut!==t||(Ct=7),ta(t)},r.then(e,e);break t;case 3:Ct=7;break t;case 4:Ct=5;break t;case 7:cf(r)?(Ct=0,Te=null,th(e)):(Ct=0,Te=null,an(t,e,r,7));break;case 5:var f=null;switch(gt.tag){case 26:f=gt.memoizedState;case 5:case 27:var p=gt;if(f?Bh(f):p.stateNode.complete){Ct=0,Te=null;var b=p.sibling;if(b!==null)gt=b;else{var N=p.return;N!==null?(gt=N,xi(N)):gt=null}break e}}Ct=0,Te=null,an(t,e,r,5);break;case 6:Ct=0,Te=null,an(t,e,r,6);break;case 8:Xs(),Gt=6;break t;default:throw Error(c(462))}}rp();break}catch(R){Fd(t,R)}while(!0);return sa=rl=null,T.H=l,T.A=u,Nt=a,gt!==null?0:(Ut=null,xt=0,Bu(),Gt)}function rp(){for(;gt!==null&&!ju();)Id(gt)}function Id(t){var e=Od(t.alternate,t,ga);t.memoizedProps=t.pendingProps,e===null?xi(t):gt=e}function th(t){var e=t,a=e.alternate;switch(e.tag){case 15:case 0:e=pd(a,e,e.pendingProps,e.type,void 0,xt);break;case 11:e=pd(a,e,e.pendingProps,e.type.render,e.ref,xt);break;case 5:us(e);default:_d(a,e),e=gt=$o(e,ga),e=Od(a,e,ga)}t.memoizedProps=t.pendingProps,e===null?xi(t):gt=e}function an(t,e,a,l){sa=rl=null,us(e),Zl=null,Qn=0;var u=e.return;try{if(Fy(t,u,e,a,xt)){Gt=1,ri(t,Ue(a,t.current)),gt=null;return}}catch(r){if(u!==null)throw gt=u,r;Gt=1,ri(t,Ue(a,t.current)),gt=null;return}e.flags&32768?(jt||l===1?t=!0:Wl||(xt&536870912)!==0?t=!1:(wa=t=!0,(l===2||l===9||l===3||l===6)&&(l=_e.current,l!==null&&l.tag===13&&(l.flags|=16384))),eh(e,t)):xi(e)}function xi(t){var e=t;do{if((e.flags&32768)!==0){eh(e,wa);return}t=e.return;var a=Wy(e.alternate,e,ga);if(a!==null){gt=a;return}if(e=e.sibling,e!==null){gt=e;return}gt=e=t}while(e!==null);Gt===0&&(Gt=5)}function eh(t,e){do{var a=Iy(t.alternate,t);if(a!==null){a.flags&=32767,gt=a;return}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!e&&(t=t.sibling,t!==null)){gt=t;return}gt=t=a}while(t!==null);Gt=6,gt=null}function ah(t,e,a,l,u,r,f,p,b){t.cancelPendingCommit=null;do Si();while(Wt!==0);if((Nt&6)!==0)throw Error(c(327));if(e!==null){if(e===t.current)throw Error(c(177));if(r=e.lanes|e.childLanes,r|=Dr,Lv(t,a,r,f,p,b),t===Ut&&(gt=Ut=null,xt=0),tn=e,Ba=t,ba=a,Ls=r,Ys=u,Zd=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,fp(se,function(){return rh(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=T.T,T.T=null,u=H.p,H.p=2,f=Nt,Nt|=4;try{tp(t,e,a)}finally{Nt=f,H.p=u,T.T=l}}Wt=1,lh(),nh(),uh()}}function lh(){if(Wt===1){Wt=0;var t=Ba,e=tn,a=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||a){a=T.T,T.T=null;var l=H.p;H.p=2;var u=Nt;Nt|=4;try{Qd(e,t);var r=ac,f=Go(t.containerInfo),p=r.focusedElem,b=r.selectionRange;if(f!==p&&p&&p.ownerDocument&&Yo(p.ownerDocument.documentElement,p)){if(b!==null&&Tr(p)){var N=b.start,R=b.end;if(R===void 0&&(R=N),"selectionStart"in p)p.selectionStart=N,p.selectionEnd=Math.min(R,p.value.length);else{var w=p.ownerDocument||document,A=w&&w.defaultView||window;if(A.getSelection){var C=A.getSelection(),J=p.textContent.length,it=Math.min(b.start,J),Rt=b.end===void 0?it:Math.min(b.end,J);!C.extend&&it>Rt&&(f=Rt,Rt=it,it=f);var O=Lo(p,it),j=Lo(p,Rt);if(O&&j&&(C.rangeCount!==1||C.anchorNode!==O.node||C.anchorOffset!==O.offset||C.focusNode!==j.node||C.focusOffset!==j.offset)){var _=w.createRange();_.setStart(O.node,O.offset),C.removeAllRanges(),it>Rt?(C.addRange(_),C.extend(j.node,j.offset)):(_.setEnd(j.node,j.offset),C.addRange(_))}}}}for(w=[],C=p;C=C.parentNode;)C.nodeType===1&&w.push({element:C,left:C.scrollLeft,top:C.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<w.length;p++){var q=w[p];q.element.scrollLeft=q.left,q.element.scrollTop=q.top}}Ri=!!ec,ac=ec=null}finally{Nt=u,H.p=l,T.T=a}}t.current=e,Wt=2}}function nh(){if(Wt===2){Wt=0;var t=Ba,e=tn,a=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||a){a=T.T,T.T=null;var l=H.p;H.p=2;var u=Nt;Nt|=4;try{Dd(t,e.alternate,e)}finally{Nt=u,H.p=l,T.T=a}}Wt=3}}function uh(){if(Wt===4||Wt===3){Wt=0,X();var t=Ba,e=tn,a=ba,l=Zd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Wt=5:(Wt=0,tn=Ba=null,ih(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(Ha=null),sr(a),e=e.stateNode,Se&&typeof Se.onCommitFiberRoot=="function")try{Se.onCommitFiberRoot(bn,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=T.T,u=H.p,H.p=2,T.T=null;try{for(var r=t.onRecoverableError,f=0;f<l.length;f++){var p=l[f];r(p.value,{componentStack:p.stack})}}finally{T.T=e,H.p=u}}(ba&3)!==0&&Si(),ta(t),u=t.pendingLanes,(a&261930)!==0&&(u&42)!==0?t===Gs?tu++:(tu=0,Gs=t):tu=0,eu(0)}}function ih(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,qn(e)))}function Si(){return lh(),nh(),uh(),rh()}function rh(){if(Wt!==5)return!1;var t=Ba,e=Ls;Ls=0;var a=sr(ba),l=T.T,u=H.p;try{H.p=32>a?32:a,T.T=null,a=Ys,Ys=null;var r=Ba,f=ba;if(Wt=0,tn=Ba=null,ba=0,(Nt&6)!==0)throw Error(c(331));var p=Nt;if(Nt|=4,Gd(r.current),Bd(r,r.current,f,a),Nt=p,eu(0,!1),Se&&typeof Se.onPostCommitFiberRoot=="function")try{Se.onPostCommitFiberRoot(bn,r)}catch{}return!0}finally{H.p=u,T.T=l,ih(t,e)}}function sh(t,e,a){e=Ue(a,e),e=xs(t.stateNode,e,2),t=Da(t,e,2),t!==null&&(Sn(t,2),ta(t))}function Mt(t,e,a){if(t.tag===3)sh(t,t,a);else for(;e!==null;){if(e.tag===3){sh(e,t,a);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ha===null||!Ha.has(l))){t=Ue(a,t),a=cd(2),l=Da(e,a,2),l!==null&&(od(a,l,e,t),Sn(l,2),ta(l));break}}e=e.return}}function Zs(t,e,a){var l=t.pingCache;if(l===null){l=t.pingCache=new lp;var u=new Set;l.set(e,u)}else u=l.get(e),u===void 0&&(u=new Set,l.set(e,u));u.has(a)||(Qs=!0,u.add(a),t=sp.bind(null,t,e,a),e.then(t,t))}function sp(t,e,a){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,Ut===t&&(xt&a)===a&&(Gt===4||Gt===3&&(xt&62914560)===xt&&300>At()-vi?(Nt&2)===0&&en(t,0):Hs|=a,Il===xt&&(Il=0)),ta(t)}function ch(t,e){e===0&&(e=eo()),t=nl(t,e),t!==null&&(Sn(t,e),ta(t))}function cp(t){var e=t.memoizedState,a=0;e!==null&&(a=e.retryLane),ch(t,a)}function op(t,e){var a=0;switch(t.tag){case 31:case 13:var l=t.stateNode,u=t.memoizedState;u!==null&&(a=u.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(c(314))}l!==null&&l.delete(e),ch(t,a)}function fp(t,e){return yn(t,e)}var ji=null,ln=null,Vs=!1,Oi=!1,ks=!1,Ya=0;function ta(t){t!==ln&&t.next===null&&(ln===null?ji=ln=t:ln=ln.next=t),Oi=!0,Vs||(Vs=!0,hp())}function eu(t,e){if(!ks&&Oi){ks=!0;do for(var a=!1,l=ji;l!==null;){if(t!==0){var u=l.pendingLanes;if(u===0)var r=0;else{var f=l.suspendedLanes,p=l.pingedLanes;r=(1<<31-je(42|t)+1)-1,r&=u&~(f&~p),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(a=!0,hh(l,r))}else r=xt,r=Tu(l,l===Ut?r:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(r&3)===0||xn(l,r)||(a=!0,hh(l,r));l=l.next}while(a);ks=!1}}function dp(){oh()}function oh(){Oi=Vs=!1;var t=0;Ya!==0&&Op()&&(t=Ya);for(var e=At(),a=null,l=ji;l!==null;){var u=l.next,r=fh(l,e);r===0?(l.next=null,a===null?ji=u:a.next=u,u===null&&(ln=a)):(a=l,(t!==0||(r&3)!==0)&&(Oi=!0)),l=u}Wt!==0&&Wt!==5||eu(t),Ya!==0&&(Ya=0)}function fh(t,e){for(var a=t.suspendedLanes,l=t.pingedLanes,u=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var f=31-je(r),p=1<<f,b=u[f];b===-1?((p&a)===0||(p&l)!==0)&&(u[f]=Bv(p,e)):b<=e&&(t.expiredLanes|=p),r&=~p}if(e=Ut,a=xt,a=Tu(t,t===e?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,a===0||t===e&&(Ct===2||Ct===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&pn(l),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||xn(t,a)){if(e=a&-a,e===t.callbackPriority)return e;switch(l!==null&&pn(l),sr(a)){case 2:case 8:a=Pe;break;case 32:a=se;break;case 268435456:a=Ou;break;default:a=se}return l=dh.bind(null,t),a=yn(a,l),t.callbackPriority=e,t.callbackNode=a,e}return l!==null&&l!==null&&pn(l),t.callbackPriority=2,t.callbackNode=null,2}function dh(t,e){if(Wt!==0&&Wt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Si()&&t.callbackNode!==a)return null;var l=xt;return l=Tu(t,t===Ut?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(kd(t,l,e),fh(t,At()),t.callbackNode!=null&&t.callbackNode===a?dh.bind(null,t):null)}function hh(t,e){if(Si())return null;kd(t,e,!0)}function hp(){_p(function(){(Nt&6)!==0?yn(xe,dp):oh()})}function Js(){if(Ya===0){var t=Gl;t===0&&(t=Eu,Eu<<=1,(Eu&261888)===0&&(Eu=256)),Ya=t}return Ya}function mh(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:zu(""+t)}function vh(t,e){var a=e.ownerDocument.createElement("input");return a.name=e.name,a.value=e.value,t.id&&a.setAttribute("form",t.id),e.parentNode.insertBefore(a,e),t=new FormData(t),a.parentNode.removeChild(a),t}function mp(t,e,a,l,u){if(e==="submit"&&a&&a.stateNode===u){var r=mh((u[de]||null).action),f=l.submitter;f&&(e=(e=f[de]||null)?mh(e.formAction):f.getAttribute("formAction"),e!==null&&(r=e,f=null));var p=new qu("action","action",null,l,u);t.push({event:p,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Ya!==0){var b=f?vh(u,f):new FormData(u);ms(a,{pending:!0,data:b,method:u.method,action:r},null,b)}}else typeof r=="function"&&(p.preventDefault(),b=f?vh(u,f):new FormData(u),ms(a,{pending:!0,data:b,method:u.method,action:r},r,b))},currentTarget:u}]})}}for(var Fs=0;Fs<zr.length;Fs++){var Ps=zr[Fs],vp=Ps.toLowerCase(),yp=Ps[0].toUpperCase()+Ps.slice(1);Ge(vp,"on"+yp)}Ge(Zo,"onAnimationEnd"),Ge(Vo,"onAnimationIteration"),Ge(ko,"onAnimationStart"),Ge("dblclick","onDoubleClick"),Ge("focusin","onFocus"),Ge("focusout","onBlur"),Ge(Dy,"onTransitionRun"),Ge(Ry,"onTransitionStart"),Ge(Uy,"onTransitionCancel"),Ge(Jo,"onTransitionEnd"),Al("onMouseEnter",["mouseout","mouseover"]),Al("onMouseLeave",["mouseout","mouseover"]),Al("onPointerEnter",["pointerout","pointerover"]),Al("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(" "),pp=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(au));function yh(t,e){e=(e&4)!==0;for(var a=0;a<t.length;a++){var l=t[a],u=l.event;l=l.listeners;t:{var r=void 0;if(e)for(var f=l.length-1;0<=f;f--){var p=l[f],b=p.instance,N=p.currentTarget;if(p=p.listener,b!==r&&u.isPropagationStopped())break t;r=p,u.currentTarget=N;try{r(u)}catch(R){Hu(R)}u.currentTarget=null,r=b}else for(f=0;f<l.length;f++){if(p=l[f],b=p.instance,N=p.currentTarget,p=p.listener,b!==r&&u.isPropagationStopped())break t;r=p,u.currentTarget=N;try{r(u)}catch(R){Hu(R)}u.currentTarget=null,r=b}}}}function bt(t,e){var a=e[cr];a===void 0&&(a=e[cr]=new Set);var l=t+"__bubble";a.has(l)||(ph(e,t,2,!1),a.add(l))}function $s(t,e,a){var l=0;e&&(l|=4),ph(a,t,l,e)}var Ei="_reactListening"+Math.random().toString(36).slice(2);function Ws(t){if(!t[Ei]){t[Ei]=!0,so.forEach(function(a){a!=="selectionchange"&&(pp.has(a)||$s(a,!1,t),$s(a,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Ei]||(e[Ei]=!0,$s("selectionchange",!1,e))}}function ph(t,e,a,l){switch(Vh(e)){case 2:var u=Zp;break;case 8:u=Vp;break;default:u=hc}a=u.bind(null,e,a,t),u=void 0,!gr||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),l?u!==void 0?t.addEventListener(e,a,{capture:!0,passive:u}):t.addEventListener(e,a,!0):u!==void 0?t.addEventListener(e,a,{passive:u}):t.addEventListener(e,a,!1)}function Is(t,e,a,l,u){var r=l;if((e&1)===0&&(e&2)===0&&l!==null)t:for(;;){if(l===null)return;var f=l.tag;if(f===3||f===4){var p=l.stateNode.containerInfo;if(p===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(;p!==null;){if(f=_l(p),f===null)return;if(b=f.tag,b===5||b===6||b===26||b===27){l=r=f;continue t}p=p.parentNode}}l=l.return}So(function(){var N=r,R=yr(a),w=[];t:{var A=Fo.get(t);if(A!==void 0){var C=qu,J=t;switch(t){case"keypress":if(Ru(a)===0)break t;case"keydown":case"keyup":C=oy;break;case"focusin":J="focus",C=jr;break;case"focusout":J="blur",C=jr;break;case"beforeblur":case"afterblur":C=jr;break;case"click":if(a.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":C=Eo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":C=Wv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":C=hy;break;case Zo:case Vo:case ko:C=ey;break;case Jo:C=vy;break;case"scroll":case"scrollend":C=Pv;break;case"wheel":C=py;break;case"copy":case"cut":case"paste":C=ly;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":C=No;break;case"toggle":case"beforetoggle":C=by}var it=(e&4)!==0,Rt=!it&&(t==="scroll"||t==="scrollend"),O=it?A!==null?A+"Capture":null:A;it=[];for(var j=N,_;j!==null;){var q=j;if(_=q.stateNode,q=q.tag,q!==5&&q!==26&&q!==27||_===null||O===null||(q=En(j,O),q!=null&&it.push(lu(j,q,_))),Rt)break;j=j.return}0<it.length&&(A=new C(A,J,null,a,R),w.push({event:A,listeners:it}))}}if((e&7)===0){t:{if(A=t==="mouseover"||t==="pointerover",C=t==="mouseout"||t==="pointerout",A&&a!==vr&&(J=a.relatedTarget||a.fromElement)&&(_l(J)||J[El]))break t;if((C||A)&&(A=R.window===R?R:(A=R.ownerDocument)?A.defaultView||A.parentWindow:window,C?(J=a.relatedTarget||a.toElement,C=N,J=J?_l(J):null,J!==null&&(Rt=h(J),it=J.tag,J!==Rt||it!==5&&it!==27&&it!==6)&&(J=null)):(C=null,J=N),C!==J)){if(it=Eo,q="onMouseLeave",O="onMouseEnter",j="mouse",(t==="pointerout"||t==="pointerover")&&(it=No,q="onPointerLeave",O="onPointerEnter",j="pointer"),Rt=C==null?A:On(C),_=J==null?A:On(J),A=new it(q,j+"leave",C,a,R),A.target=Rt,A.relatedTarget=_,q=null,_l(R)===N&&(it=new it(O,j+"enter",J,a,R),it.target=_,it.relatedTarget=Rt,q=it),Rt=q,C&&J)e:{for(it=gp,O=C,j=J,_=0,q=O;q;q=it(q))_++;q=0;for(var nt=j;nt;nt=it(nt))q++;for(;0<_-q;)O=it(O),_--;for(;0<q-_;)j=it(j),q--;for(;_--;){if(O===j||j!==null&&O===j.alternate){it=O;break e}O=it(O),j=it(j)}it=null}else it=null;C!==null&&gh(w,A,C,it,!1),J!==null&&Rt!==null&&gh(w,Rt,J,it,!0)}}t:{if(A=N?On(N):window,C=A.nodeName&&A.nodeName.toLowerCase(),C==="select"||C==="input"&&A.type==="file")var Ot=Uo;else if(Do(A))if(qo)Ot=Cy;else{Ot=Ty;var et=Ny}else C=A.nodeName,!C||C.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?N&&mr(N.elementType)&&(Ot=Uo):Ot=Ay;if(Ot&&(Ot=Ot(t,N))){Ro(w,Ot,a,R);break t}et&&et(t,A,N),t==="focusout"&&N&&A.type==="number"&&N.memoizedProps.value!=null&&hr(A,"number",A.value)}switch(et=N?On(N):window,t){case"focusin":(Do(et)||et.contentEditable==="true")&&(Ul=et,Ar=N,Dn=null);break;case"focusout":Dn=Ar=Ul=null;break;case"mousedown":Cr=!0;break;case"contextmenu":case"mouseup":case"dragend":Cr=!1,Xo(w,a,R);break;case"selectionchange":if(zy)break;case"keydown":case"keyup":Xo(w,a,R)}var mt;if(Er)t:{switch(t){case"compositionstart":var St="onCompositionStart";break t;case"compositionend":St="onCompositionEnd";break t;case"compositionupdate":St="onCompositionUpdate";break t}St=void 0}else Rl?Mo(t,a)&&(St="onCompositionEnd"):t==="keydown"&&a.keyCode===229&&(St="onCompositionStart");St&&(To&&a.locale!=="ko"&&(Rl||St!=="onCompositionStart"?St==="onCompositionEnd"&&Rl&&(mt=jo()):(_a=R,br="value"in _a?_a.value:_a.textContent,Rl=!0)),et=_i(N,St),0<et.length&&(St=new _o(St,t,null,a,R),w.push({event:St,listeners:et}),mt?St.data=mt:(mt=zo(a),mt!==null&&(St.data=mt)))),(mt=Sy?jy(t,a):Oy(t,a))&&(St=_i(N,"onBeforeInput"),0<St.length&&(et=new _o("onBeforeInput","beforeinput",null,a,R),w.push({event:et,listeners:St}),et.data=mt)),mp(w,t,N,a,R)}yh(w,e)})}function lu(t,e,a){return{instance:t,listener:e,currentTarget:a}}function _i(t,e){for(var a=e+"Capture",l=[];t!==null;){var u=t,r=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||r===null||(u=En(t,a),u!=null&&l.unshift(lu(t,u,r)),u=En(t,e),u!=null&&l.push(lu(t,u,r))),t.tag===3)return l;t=t.return}return[]}function gp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function gh(t,e,a,l,u){for(var r=e._reactName,f=[];a!==null&&a!==l;){var p=a,b=p.alternate,N=p.stateNode;if(p=p.tag,b!==null&&b===l)break;p!==5&&p!==26&&p!==27||N===null||(b=N,u?(N=En(a,r),N!=null&&f.unshift(lu(a,N,b))):u||(N=En(a,r),N!=null&&f.push(lu(a,N,b)))),a=a.return}f.length!==0&&t.push({event:e,listeners:f})}var bp=/\r\n?/g,xp=/\u0000|\uFFFD/g;function bh(t){return(typeof t=="string"?t:""+t).replace(bp,`
`).replace(xp,"")}function xh(t,e){return e=bh(e),bh(t)===e}function Dt(t,e,a,l,u,r){switch(a){case"children":typeof l=="string"?e==="body"||e==="textarea"&&l===""||Ml(t,l):(typeof l=="number"||typeof l=="bigint")&&e!=="body"&&Ml(t,""+l);break;case"className":Cu(t,"class",l);break;case"tabIndex":Cu(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Cu(t,a,l);break;case"style":bo(t,l,r);break;case"data":if(e!=="object"){Cu(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||a!=="href")){t.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=zu(""+l),t.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof r=="function"&&(a==="formAction"?(e!=="input"&&Dt(t,e,"name",u.name,u,null),Dt(t,e,"formEncType",u.formEncType,u,null),Dt(t,e,"formMethod",u.formMethod,u,null),Dt(t,e,"formTarget",u.formTarget,u,null)):(Dt(t,e,"encType",u.encType,u,null),Dt(t,e,"method",u.method,u,null),Dt(t,e,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(a);break}l=zu(""+l),t.setAttribute(a,l);break;case"onClick":l!=null&&(t.onclick=na);break;case"onScroll":l!=null&&bt("scroll",t);break;case"onScrollEnd":l!=null&&bt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(c(60));t.innerHTML=a}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}a=zu(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""+l):t.removeAttribute(a);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":l===!0?t.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(a,l):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(a,l):t.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(a):t.setAttribute(a,l);break;case"popover":bt("beforetoggle",t),bt("toggle",t),Au(t,"popover",l);break;case"xlinkActuate":la(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":la(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":la(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":la(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":la(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":la(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":la(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":la(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":la(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Au(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=Jv.get(a)||a,Au(t,a,l))}}function tc(t,e,a,l,u,r){switch(a){case"style":bo(t,l,r);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(c(61));if(a=l.__html,a!=null){if(u.children!=null)throw Error(c(60));t.innerHTML=a}}break;case"children":typeof l=="string"?Ml(t,l):(typeof l=="number"||typeof l=="bigint")&&Ml(t,""+l);break;case"onScroll":l!=null&&bt("scroll",t);break;case"onScrollEnd":l!=null&&bt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=na);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!co.hasOwnProperty(a))t:{if(a[0]==="o"&&a[1]==="n"&&(u=a.endsWith("Capture"),e=a.slice(2,u?a.length-7:void 0),r=t[de]||null,r=r!=null?r[a]:null,typeof r=="function"&&t.removeEventListener(e,r,u),typeof l=="function")){typeof r!="function"&&r!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(e,l,u);break t}a in t?t[a]=l:l===!0?t.setAttribute(a,""):Au(t,a,l)}}}function ue(t,e,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":bt("error",t),bt("load",t);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(c(137,e));default:Dt(t,e,r,f,a,null)}}u&&Dt(t,e,"srcSet",a.srcSet,a,null),l&&Dt(t,e,"src",a.src,a,null);return;case"input":bt("invalid",t);var p=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":p=R;break;case"children":case"dangerouslySetInnerHTML":if(R!=null)throw Error(c(137,e));break;default:Dt(t,e,l,R,a,null)}}vo(t,r,p,b,N,f,u,!1);return;case"select":bt("invalid",t),l=f=r=null;for(u in a)if(a.hasOwnProperty(u)&&(p=a[u],p!=null))switch(u){case"value":r=p;break;case"defaultValue":f=p;break;case"multiple":l=p;default:Dt(t,e,u,p,a,null)}e=r,a=f,t.multiple=!!l,e!=null?Cl(t,!!l,e,!1):a!=null&&Cl(t,!!l,a,!0);return;case"textarea":bt("invalid",t),r=u=l=null;for(f in a)if(a.hasOwnProperty(f)&&(p=a[f],p!=null))switch(f){case"value":l=p;break;case"defaultValue":u=p;break;case"children":r=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(c(91));break;default:Dt(t,e,f,p,a,null)}po(t,l,u,r);return;case"option":for(b in a)if(a.hasOwnProperty(b)&&(l=a[b],l!=null))switch(b){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Dt(t,e,b,l,a,null)}return;case"dialog":bt("beforetoggle",t),bt("toggle",t),bt("cancel",t),bt("close",t);break;case"iframe":case"object":bt("load",t);break;case"video":case"audio":for(l=0;l<au.length;l++)bt(au[l],t);break;case"image":bt("error",t),bt("load",t);break;case"details":bt("toggle",t);break;case"embed":case"source":case"link":bt("error",t),bt("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(N in a)if(a.hasOwnProperty(N)&&(l=a[N],l!=null))switch(N){case"children":case"dangerouslySetInnerHTML":throw Error(c(137,e));default:Dt(t,e,N,l,a,null)}return;default:if(mr(e)){for(R in a)a.hasOwnProperty(R)&&(l=a[R],l!==void 0&&tc(t,e,R,l,a,void 0));return}}for(p in a)a.hasOwnProperty(p)&&(l=a[p],l!=null&&Dt(t,e,p,l,a,null))}function Sp(t,e,a,l){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var u=null,r=null,f=null,p=null,b=null,N=null,R=null;for(C in a){var w=a[C];if(a.hasOwnProperty(C)&&w!=null)switch(C){case"checked":break;case"value":break;case"defaultValue":b=w;default:l.hasOwnProperty(C)||Dt(t,e,C,null,l,w)}}for(var A in l){var C=l[A];if(w=a[A],l.hasOwnProperty(A)&&(C!=null||w!=null))switch(A){case"type":r=C;break;case"name":u=C;break;case"checked":N=C;break;case"defaultChecked":R=C;break;case"value":f=C;break;case"defaultValue":p=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(c(137,e));break;default:C!==w&&Dt(t,e,A,C,l,w)}}dr(t,f,p,b,N,R,r,u);return;case"select":C=f=p=A=null;for(r in a)if(b=a[r],a.hasOwnProperty(r)&&b!=null)switch(r){case"value":break;case"multiple":C=b;default:l.hasOwnProperty(r)||Dt(t,e,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":A=r;break;case"defaultValue":p=r;break;case"multiple":f=r;default:r!==b&&Dt(t,e,u,r,l,b)}e=p,a=f,l=C,A!=null?Cl(t,!!a,A,!1):!!l!=!!a&&(e!=null?Cl(t,!!a,e,!0):Cl(t,!!a,a?[]:"",!1));return;case"textarea":C=A=null;for(p in a)if(u=a[p],a.hasOwnProperty(p)&&u!=null&&!l.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Dt(t,e,p,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":A=u;break;case"defaultValue":C=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(c(91));break;default:u!==r&&Dt(t,e,f,u,l,r)}yo(t,A,C);return;case"option":for(var J in a)if(A=a[J],a.hasOwnProperty(J)&&A!=null&&!l.hasOwnProperty(J))switch(J){case"selected":t.selected=!1;break;default:Dt(t,e,J,null,l,A)}for(b in l)if(A=l[b],C=a[b],l.hasOwnProperty(b)&&A!==C&&(A!=null||C!=null))switch(b){case"selected":t.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:Dt(t,e,b,A,l,C)}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 it in a)A=a[it],a.hasOwnProperty(it)&&A!=null&&!l.hasOwnProperty(it)&&Dt(t,e,it,null,l,A);for(N in l)if(A=l[N],C=a[N],l.hasOwnProperty(N)&&A!==C&&(A!=null||C!=null))switch(N){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(c(137,e));break;default:Dt(t,e,N,A,l,C)}return;default:if(mr(e)){for(var Rt in a)A=a[Rt],a.hasOwnProperty(Rt)&&A!==void 0&&!l.hasOwnProperty(Rt)&&tc(t,e,Rt,void 0,l,A);for(R in l)A=l[R],C=a[R],!l.hasOwnProperty(R)||A===C||A===void 0&&C===void 0||tc(t,e,R,A,l,C);return}}for(var O in a)A=a[O],a.hasOwnProperty(O)&&A!=null&&!l.hasOwnProperty(O)&&Dt(t,e,O,null,l,A);for(w in l)A=l[w],C=a[w],!l.hasOwnProperty(w)||A===C||A==null&&C==null||Dt(t,e,w,A,l,C)}function Sh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function jp(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,a=performance.getEntriesByType("resource"),l=0;l<a.length;l++){var u=a[l],r=u.transferSize,f=u.initiatorType,p=u.duration;if(r&&p&&Sh(f)){for(f=0,p=u.responseEnd,l+=1;l<a.length;l++){var b=a[l],N=b.startTime;if(N>p)break;var R=b.transferSize,w=b.initiatorType;R&&Sh(w)&&(b=b.responseEnd,f+=R*(b<p?1:(p-N)/(b-N)))}if(--l,e+=8*(r+f)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var ec=null,ac=null;function Ni(t){return t.nodeType===9?t:t.ownerDocument}function jh(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Oh(t,e){if(t===0)switch(e){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&e==="foreignObject"?0:t}function lc(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.children=="bigint"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var nc=null;function Op(){var t=window.event;return t&&t.type==="popstate"?t===nc?!1:(nc=t,!0):(nc=null,!1)}var Eh=typeof setTimeout=="function"?setTimeout:void 0,Ep=typeof clearTimeout=="function"?clearTimeout:void 0,_h=typeof Promise=="function"?Promise:void 0,_p=typeof queueMicrotask=="function"?queueMicrotask:typeof _h<"u"?function(t){return _h.resolve(null).then(t).catch(Np)}:Eh;function Np(t){setTimeout(function(){throw t})}function Ga(t){return t==="head"}function Nh(t,e){var a=e,l=0;do{var u=a.nextSibling;if(t.removeChild(a),u&&u.nodeType===8)if(a=u.data,a==="/$"||a==="/&"){if(l===0){t.removeChild(u),sn(e);return}l--}else if(a==="$"||a==="$?"||a==="$~"||a==="$!"||a==="&")l++;else if(a==="html")nu(t.ownerDocument.documentElement);else if(a==="head"){a=t.ownerDocument.head,nu(a);for(var r=a.firstChild;r;){var f=r.nextSibling,p=r.nodeName;r[jn]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&r.rel.toLowerCase()==="stylesheet"||a.removeChild(r),r=f}}else a==="body"&&nu(t.ownerDocument.body);a=u}while(a);sn(e)}function Th(t,e){var a=t;t=0;do{var l=a.nextSibling;if(a.nodeType===1?e?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(e?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),l&&l.nodeType===8)if(a=l.data,a==="/$"){if(t===0)break;t--}else a!=="$"&&a!=="$?"&&a!=="$~"&&a!=="$!"||t++;a=l}while(a)}function uc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var a=e;switch(e=e.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":uc(a),or(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function Tp(t,e,a,l){for(;t.nodeType===1;){var u=a;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[jn])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(r=t.getAttribute("rel"),r==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(r!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(r=t.getAttribute("src"),(r!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&r&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var r=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===r)return t}else return t;if(t=Be(t.nextSibling),t===null)break}return null}function Ap(t,e,a){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Be(t.nextSibling),t===null))return null;return t}function Ah(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Be(t.nextSibling),t===null))return null;return t}function ic(t){return t.data==="$?"||t.data==="$~"}function rc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Cp(t,e){var a=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||a.readyState!=="loading")e();else{var l=function(){e(),a.removeEventListener("DOMContentLoaded",l)};a.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Be(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var sc=null;function Ch(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="/$"||a==="/&"){if(e===0)return Be(t.nextSibling);e--}else a!=="$"&&a!=="$!"&&a!=="$?"&&a!=="$~"&&a!=="&"||e++}t=t.nextSibling}return null}function Mh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var a=t.data;if(a==="$"||a==="$!"||a==="$?"||a==="$~"||a==="&"){if(e===0)return t;e--}else a!=="/$"&&a!=="/&"||e++}t=t.previousSibling}return null}function zh(t,e,a){switch(e=Ni(a),t){case"html":if(t=e.documentElement,!t)throw Error(c(452));return t;case"head":if(t=e.head,!t)throw Error(c(453));return t;case"body":if(t=e.body,!t)throw Error(c(454));return t;default:throw Error(c(451))}}function nu(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);or(t)}var Le=new Map,Dh=new Set;function Ti(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var xa=H.d;H.d={f:Mp,r:zp,D:Dp,C:Rp,L:Up,m:qp,X:Qp,S:wp,M:Hp};function Mp(){var t=xa.f(),e=gi();return t||e}function zp(t){var e=Nl(t);e!==null&&e.tag===5&&e.type==="form"?Ff(e):xa.r(t)}var nn=typeof document>"u"?null:document;function Rh(t,e,a){var l=nn;if(l&&typeof e=="string"&&e){var u=De(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Dh.has(u)||(Dh.add(u),t={rel:t,crossOrigin:a,href:e},l.querySelector(u)===null&&(e=l.createElement("link"),ue(e,"link",t),It(e),l.head.appendChild(e)))}}function Dp(t){xa.D(t),Rh("dns-prefetch",t,null)}function Rp(t,e){xa.C(t,e),Rh("preconnect",t,e)}function Up(t,e,a){xa.L(t,e,a);var l=nn;if(l&&t&&e){var u='link[rel="preload"][as="'+De(e)+'"]';e==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+De(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+De(a.imageSizes)+'"]')):u+='[href="'+De(t)+'"]';var r=u;switch(e){case"style":r=un(t);break;case"script":r=rn(t)}Le.has(r)||(t=E({rel:"preload",href:e==="image"&&a&&a.imageSrcSet?void 0:t,as:e},a),Le.set(r,t),l.querySelector(u)!==null||e==="style"&&l.querySelector(uu(r))||e==="script"&&l.querySelector(iu(r))||(e=l.createElement("link"),ue(e,"link",t),It(e),l.head.appendChild(e)))}}function qp(t,e){xa.m(t,e);var a=nn;if(a&&t){var l=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+De(l)+'"][href="'+De(t)+'"]',r=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=rn(t)}if(!Le.has(r)&&(t=E({rel:"modulepreload",href:t},e),Le.set(r,t),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"),ue(l,"link",t),It(l),a.head.appendChild(l)}}}function wp(t,e,a){xa.S(t,e,a);var l=nn;if(l&&t){var u=Tl(l).hoistableStyles,r=un(t);e=e||"default";var f=u.get(r);if(!f){var p={loading:0,preload:null};if(f=l.querySelector(uu(r)))p.loading=5;else{t=E({rel:"stylesheet",href:t,"data-precedence":e},a),(a=Le.get(r))&&cc(t,a);var b=f=l.createElement("link");It(b),ue(b,"link",t),b._p=new Promise(function(N,R){b.onload=N,b.onerror=R}),b.addEventListener("load",function(){p.loading|=1}),b.addEventListener("error",function(){p.loading|=2}),p.loading|=4,Ai(f,e,l)}f={type:"stylesheet",instance:f,count:1,state:p},u.set(r,f)}}}function Qp(t,e){xa.X(t,e);var a=nn;if(a&&t){var l=Tl(a).hoistableScripts,u=rn(t),r=l.get(u);r||(r=a.querySelector(iu(u)),r||(t=E({src:t,async:!0},e),(e=Le.get(u))&&oc(t,e),r=a.createElement("script"),It(r),ue(r,"link",t),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(u,r))}}function Hp(t,e){xa.M(t,e);var a=nn;if(a&&t){var l=Tl(a).hoistableScripts,u=rn(t),r=l.get(u);r||(r=a.querySelector(iu(u)),r||(t=E({src:t,async:!0,type:"module"},e),(e=Le.get(u))&&oc(t,e),r=a.createElement("script"),It(r),ue(r,"link",t),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(u,r))}}function Uh(t,e,a,l){var u=(u=st.current)?Ti(u):null;if(!u)throw Error(c(446));switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(e=un(a.href),a=Tl(u).hoistableStyles,l=a.get(e),l||(l={type:"style",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=un(a.href);var r=Tl(u).hoistableStyles,f=r.get(t);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,f),(r=u.querySelector(uu(t)))&&!r._p&&(f.instance=r,f.state.loading=5),Le.has(t)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Le.set(t,a),r||Bp(u,t,a,f.state))),e&&l===null)throw Error(c(528,""));return f}if(e&&l!==null)throw Error(c(529,""));return null;case"script":return e=a.async,a=a.src,typeof a=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=rn(a),a=Tl(u).hoistableScripts,l=a.get(e),l||(l={type:"script",instance:null,count:0,state:null},a.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(c(444,t))}}function un(t){return'href="'+De(t)+'"'}function uu(t){return'link[rel="stylesheet"]['+t+"]"}function qh(t){return E({},t,{"data-precedence":t.precedence,precedence:null})}function Bp(t,e,a,l){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?l.loading=1:(e=t.createElement("link"),l.preload=e,e.addEventListener("load",function(){return l.loading|=1}),e.addEventListener("error",function(){return l.loading|=2}),ue(e,"link",a),It(e),t.head.appendChild(e))}function rn(t){return'[src="'+De(t)+'"]'}function iu(t){return"script[async]"+t}function wh(t,e,a){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+De(a.href)+'"]');if(l)return e.instance=l,It(l),l;var u=E({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),It(l),ue(l,"style",u),Ai(l,a.precedence,t),e.instance=l;case"stylesheet":u=un(a.href);var r=t.querySelector(uu(u));if(r)return e.state.loading|=4,e.instance=r,It(r),r;l=qh(a),(u=Le.get(u))&&cc(l,u),r=(t.ownerDocument||t).createElement("link"),It(r);var f=r;return f._p=new Promise(function(p,b){f.onload=p,f.onerror=b}),ue(r,"link",l),e.state.loading|=4,Ai(r,a.precedence,t),e.instance=r;case"script":return r=rn(a.src),(u=t.querySelector(iu(r)))?(e.instance=u,It(u),u):(l=a,(u=Le.get(r))&&(l=E({},a),oc(l,u)),t=t.ownerDocument||t,u=t.createElement("script"),It(u),ue(u,"link",l),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(c(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,Ai(l,a.precedence,t));return e.instance}function Ai(t,e,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 p=l[f];if(p.dataset.precedence===e)r=p;else if(r!==u)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=a.nodeType===9?a.head:a,e.insertBefore(t,e.firstChild))}function cc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function oc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Ci=null;function Qh(t,e,a){if(Ci===null){var l=new Map,u=Ci=new Map;u.set(a,l)}else u=Ci,l=u.get(a),l||(l=new Map,u.set(a,l));if(l.has(t))return l;for(l.set(t,null),a=a.getElementsByTagName(t),u=0;u<a.length;u++){var r=a[u];if(!(r[jn]||r[ee]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var f=r.getAttribute(e)||"";f=t+f;var p=l.get(f);p?p.push(r):l.set(f,[r])}}return l}function Hh(t,e,a){t=t.ownerDocument||t,t.head.insertBefore(a,e==="title"?t.querySelector("head > title"):null)}function Lp(t,e,a){if(a===1||e.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof e.precedence!="string"||typeof e.href!="string"||e.href==="")break;return!0;case"link":if(typeof e.rel!="string"||typeof e.href!="string"||e.href===""||e.onLoad||e.onError)break;switch(e.rel){case"stylesheet":return t=e.disabled,typeof e.precedence=="string"&&t==null;default:return!0}case"script":if(e.async&&typeof e.async!="function"&&typeof e.async!="symbol"&&!e.onLoad&&!e.onError&&e.src&&typeof e.src=="string")return!0}return!1}function Bh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Yp(t,e,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=un(l.href),r=e.querySelector(uu(u));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Mi.bind(t),e.then(t,t)),a.state.loading|=4,a.instance=r,It(r);return}r=e.ownerDocument||e,l=qh(l),(u=Le.get(u))&&cc(l,u),r=r.createElement("link"),It(r);var f=r;f._p=new Promise(function(p,b){f.onload=p,f.onerror=b}),ue(r,"link",l),a.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(t.count++,a=Mi.bind(t),e.addEventListener("load",a),e.addEventListener("error",a))}}var fc=0;function Gp(t,e){return t.stylesheets&&t.count===0&&Di(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var l=setTimeout(function(){if(t.stylesheets&&Di(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&fc===0&&(fc=62500*jp());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Di(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>fc?50:800)+e);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function Mi(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Di(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var zi=null;function Di(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,zi=new Map,e.forEach(Xp,t),zi=null,Mi.call(t))}function Xp(t,e){if(!(e.state.loading&4)){var a=zi.get(t);if(a)var l=a.get(null);else{a=new Map,zi.set(t,a);for(var u=t.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=e.instance,f=u.getAttribute("data-precedence"),r=a.get(f)||l,r===l&&a.set(null,u),a.set(f,u),this.count++,l=Mi.bind(this),u.addEventListener("load",l),u.addEventListener("error",l),r?r.parentNode.insertBefore(u,r.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var ru={$$typeof:Tt,Provider:null,Consumer:null,_currentValue:G,_currentValue2:G,_threadCount:0};function Kp(t,e,a,l,u,r,f,p,b){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ir(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ir(0),this.hiddenUpdates=ir(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 Lh(t,e,a,l,u,r,f,p,b,N,R,w){return t=new Kp(t,e,a,f,b,N,R,w,p),e=1,r===!0&&(e|=24),r=Ee(3,null,null,e),t.current=r,r.stateNode=t,e=Kr(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:l,isDehydrated:a,cache:e},Jr(r),t}function Yh(t){return t?(t=Ql,t):Ql}function Gh(t,e,a,l,u,r){u=Yh(u),l.context===null?l.context=u:l.pendingContext=u,l=za(e),l.payload={element:a},r=r===void 0?null:r,r!==null&&(l.callback=r),a=Da(t,l,e),a!==null&&(ge(a,t,e),Bn(a,t,e))}function Xh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<e?a:e}}function dc(t,e){Xh(t,e),(t=t.alternate)&&Xh(t,e)}function Kh(t){if(t.tag===13||t.tag===31){var e=nl(t,67108864);e!==null&&ge(e,t,67108864),dc(t,67108864)}}function Zh(t){if(t.tag===13||t.tag===31){var e=Ce();e=rr(e);var a=nl(t,e);a!==null&&ge(a,t,e),dc(t,e)}}var Ri=!0;function Zp(t,e,a,l){var u=T.T;T.T=null;var r=H.p;try{H.p=2,hc(t,e,a,l)}finally{H.p=r,T.T=u}}function Vp(t,e,a,l){var u=T.T;T.T=null;var r=H.p;try{H.p=8,hc(t,e,a,l)}finally{H.p=r,T.T=u}}function hc(t,e,a,l){if(Ri){var u=mc(l);if(u===null)Is(t,e,l,Ui,a),kh(t,l);else if(Jp(u,t,e,a,l))l.stopPropagation();else if(kh(t,l),e&4&&-1<kp.indexOf(t)){for(;u!==null;){var r=Nl(u);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=Ia(r.pendingLanes);if(f!==0){var p=r;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var b=1<<31-je(f);p.entanglements[1]|=b,f&=~b}ta(r),(Nt&6)===0&&(yi=At()+500,eu(0))}}break;case 31:case 13:p=nl(r,2),p!==null&&ge(p,r,2),gi(),dc(r,2)}if(r=mc(l),r===null&&Is(t,e,l,Ui,a),r===u)break;u=r}u!==null&&l.stopPropagation()}else Is(t,e,l,null,a)}}function mc(t){return t=yr(t),vc(t)}var Ui=null;function vc(t){if(Ui=null,t=_l(t),t!==null){var e=h(t);if(e===null)t=null;else{var a=e.tag;if(a===13){if(t=m(e),t!==null)return t;t=null}else if(a===31){if(t=v(e),t!==null)return t;t=null}else if(a===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Ui=t,null}function Vh(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(be()){case xe:return 2;case Pe:return 8;case se:case gn:return 32;case Ou:return 268435456;default:return 32}default:return 32}}var yc=!1,Xa=null,Ka=null,Za=null,su=new Map,cu=new Map,Va=[],kp="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 kh(t,e){switch(t){case"focusin":case"focusout":Xa=null;break;case"dragenter":case"dragleave":Ka=null;break;case"mouseover":case"mouseout":Za=null;break;case"pointerover":case"pointerout":su.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":cu.delete(e.pointerId)}}function ou(t,e,a,l,u,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:a,eventSystemFlags:l,nativeEvent:r,targetContainers:[u]},e!==null&&(e=Nl(e),e!==null&&Kh(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function Jp(t,e,a,l,u){switch(e){case"focusin":return Xa=ou(Xa,t,e,a,l,u),!0;case"dragenter":return Ka=ou(Ka,t,e,a,l,u),!0;case"mouseover":return Za=ou(Za,t,e,a,l,u),!0;case"pointerover":var r=u.pointerId;return su.set(r,ou(su.get(r)||null,t,e,a,l,u)),!0;case"gotpointercapture":return r=u.pointerId,cu.set(r,ou(cu.get(r)||null,t,e,a,l,u)),!0}return!1}function Jh(t){var e=_l(t.target);if(e!==null){var a=h(e);if(a!==null){if(e=a.tag,e===13){if(e=m(a),e!==null){t.blockedOn=e,io(t.priority,function(){Zh(a)});return}}else if(e===31){if(e=v(a),e!==null){t.blockedOn=e,io(t.priority,function(){Zh(a)});return}}else if(e===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function qi(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var a=mc(t.nativeEvent);if(a===null){a=t.nativeEvent;var l=new a.constructor(a.type,a);vr=l,a.target.dispatchEvent(l),vr=null}else return e=Nl(a),e!==null&&Kh(e),t.blockedOn=a,!1;e.shift()}return!0}function Fh(t,e,a){qi(t)&&a.delete(e)}function Fp(){yc=!1,Xa!==null&&qi(Xa)&&(Xa=null),Ka!==null&&qi(Ka)&&(Ka=null),Za!==null&&qi(Za)&&(Za=null),su.forEach(Fh),cu.forEach(Fh)}function wi(t,e){t.blockedOn===e&&(t.blockedOn=null,yc||(yc=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,Fp)))}var Qi=null;function Ph(t){Qi!==t&&(Qi=t,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Qi===t&&(Qi=null);for(var e=0;e<t.length;e+=3){var a=t[e],l=t[e+1],u=t[e+2];if(typeof l!="function"){if(vc(l||a)===null)continue;break}var r=Nl(a);r!==null&&(t.splice(e,3),e-=3,ms(r,{pending:!0,data:u,method:a.method,action:l},l,u))}}))}function sn(t){function e(b){return wi(b,t)}Xa!==null&&wi(Xa,t),Ka!==null&&wi(Ka,t),Za!==null&&wi(Za,t),su.forEach(e),cu.forEach(e);for(var a=0;a<Va.length;a++){var l=Va[a];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Va.length&&(a=Va[0],a.blockedOn===null);)Jh(a),a.blockedOn===null&&Va.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var u=a[l],r=a[l+1],f=u[de]||null;if(typeof r=="function")f||Ph(a);else if(f){var p=null;if(r&&r.hasAttribute("formAction")){if(u=r,f=r[de]||null)p=f.formAction;else if(vc(u)!==null)continue}else p=f.action;typeof p=="function"?a[l+1]=p:(a.splice(l,3),l-=3),Ph(a)}}}function $h(){function t(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(f){return u=f})},focusReset:"manual",scroll:"manual"})}function e(){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",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(a,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function pc(t){this._internalRoot=t}Hi.prototype.render=pc.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(c(409));var a=e.current,l=Ce();Gh(a,l,t,e,null,null)},Hi.prototype.unmount=pc.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;Gh(t.current,2,null,t,null,null),gi(),e[El]=null}};function Hi(t){this._internalRoot=t}Hi.prototype.unstable_scheduleHydration=function(t){if(t){var e=uo();t={blockedOn:null,target:t,priority:e};for(var a=0;a<Va.length&&e!==0&&e<Va[a].priority;a++);Va.splice(a,0,t),a===0&&Jh(t)}};var Wh=i.version;if(Wh!=="19.2.1")throw Error(c(527,Wh,"19.2.1"));H.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(c(188)):(t=Object.keys(t).join(","),Error(c(268,t)));return t=g(e),t=t!==null?S(t):null,t=t===null?null:t.stateNode,t};var Pp={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Bi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Bi.isDisabled&&Bi.supportsFiber)try{bn=Bi.inject(Pp),Se=Bi}catch{}}return du.createRoot=function(t,e){if(!o(t))throw Error(c(299));var a=!1,l="",u=ud,r=id,f=rd;return e!=null&&(e.unstable_strictMode===!0&&(a=!0),e.identifierPrefix!==void 0&&(l=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(r=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=Lh(t,1,!1,null,null,a,l,null,u,r,f,$h),t[El]=e.current,Ws(t),new pc(e)},du.hydrateRoot=function(t,e,a){if(!o(t))throw Error(c(299));var l=!1,u="",r=ud,f=id,p=rd,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&&(p=a.onRecoverableError),a.formState!==void 0&&(b=a.formState)),e=Lh(t,1,!0,e,a??null,l,u,b,r,f,p,$h),e.context=Yh(null),a=e.current,l=Ce(),l=rr(l),u=za(l),u.callback=null,Da(a,u,l),a=l,e.current.lanes=a,Sn(e,a),ta(e),t[El]=e.current,Ws(t),new Hi(e)},du.version="19.2.1",du}var sm;function c0(){if(sm)return xc.exports;sm=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(),xc.exports=s0(),xc.exports}var o0=c0();const f0="modulepreload",d0=function(n){return"/"+n},cm={},h0=function(i,s,c){let o=Promise.resolve();if(s&&s.length>0){let y=function(g){return Promise.all(g.map(S=>Promise.resolve(S).then(E=>({status:"fulfilled",value:E}),E=>({status:"rejected",reason:E}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),v=m?.nonce||m?.getAttribute("nonce");o=y(s.map(g=>{if(g=d0(g),g in cm)return;cm[g]=!0;const S=g.endsWith(".css"),E=S?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${g}"]${E}`))return;const M=document.createElement("link");if(M.rel=S?"stylesheet":f0,S||(M.as="script"),M.crossOrigin="",M.href=g,v&&M.setAttribute("nonce",v),document.head.appendChild(M),S)return new Promise((Y,Z)=>{M.addEventListener("load",Y),M.addEventListener("error",()=>Z(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 o.then(m=>{for(const v of m||[])v.status==="rejected"&&h(v.reason);return i().catch(h)})};var xl=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(){}},gl=typeof window>"u"||"Deno"in globalThis;function re(){}function m0(n,i){return typeof n=="function"?n(i):n}function qc(n){return typeof n=="number"&&n>=0&&n!==1/0}function wm(n,i){return Math.max(n+(i||0)-Date.now(),0)}function Ja(n,i){return typeof n=="function"?n(i):n}function Ze(n,i){return typeof n=="function"?n(i):n}function om(n,i){const{type:s="all",exact:c,fetchStatus:o,predicate:h,queryKey:m,stale:v}=n;if(m){if(c){if(i.queryHash!==Zc(m,i.options))return!1}else if(!yu(i.queryKey,m))return!1}if(s!=="all"){const y=i.isActive();if(s==="active"&&!y||s==="inactive"&&y)return!1}return!(typeof v=="boolean"&&i.isStale()!==v||o&&o!==i.state.fetchStatus||h&&!h(i))}function fm(n,i){const{exact:s,status:c,predicate:o,mutationKey:h}=n;if(h){if(!i.options.mutationKey)return!1;if(s){if(Fa(i.options.mutationKey)!==Fa(h))return!1}else if(!yu(i.options.mutationKey,h))return!1}return!(c&&i.state.status!==c||o&&!o(i))}function Zc(n,i){return(i?.queryKeyHashFn||Fa)(n)}function Fa(n){return JSON.stringify(n,(i,s)=>wc(s)?Object.keys(s).sort().reduce((c,o)=>(c[o]=s[o],c),{}):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 Vc(n,i){if(n===i)return n;const s=dm(n)&&dm(i);if(s||wc(n)&&wc(i)){const c=s?n:Object.keys(n),o=c.length,h=s?i:Object.keys(i),m=h.length,v=s?[]:{},y=new Set(c);let g=0;for(let S=0;S<m;S++){const E=s?S:h[S];(!s&&y.has(E)||s)&&n[E]===void 0&&i[E]===void 0?(v[E]=void 0,g++):(v[E]=Vc(n[E],i[E]),v[E]===n[E]&&n[E]!==void 0&&g++)}return o===m&&g===o?n:v}return i}function ki(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 dm(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function wc(n){if(!hm(n))return!1;const i=n.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!hm(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(n)!==Object.prototype)}function hm(n){return Object.prototype.toString.call(n)==="[object Object]"}function v0(n){return new Promise(i=>{setTimeout(i,n)})}function Qc(n,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(n,i):s.structuralSharing!==!1?Vc(n,i):i}function y0(n,i,s=0){const c=[...n,i];return s&&c.length>s?c.slice(1):c}function p0(n,i,s=0){const c=[i,...n];return s&&c.length>s?c.slice(0,-1):c}var Me=Symbol();function Qm(n,i){return!n.queryFn&&i?.initialPromise?()=>i.initialPromise:!n.queryFn||n.queryFn===Me?()=>Promise.reject(new Error(`Missing queryFn: '${n.queryHash}'`)):n.queryFn}function Hm(n,i){return typeof n=="function"?n(...i):!!n}var g0=class extends xl{#e;#t;#a;constructor(){super(),this.#a=n=>{if(!gl&&window.addEventListener){const i=()=>n();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#a=n,this.#t?.(),this.#t=n(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(n){this.#e!==n&&(this.#e=n,this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(i=>{i(n)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},kc=new g0,b0=class extends xl{#e=!0;#t;#a;constructor(){super(),this.#a=n=>{if(!gl&&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.#t||this.setEventListener(this.#a)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(n){this.#a=n,this.#t?.(),this.#t=n(this.setOnline.bind(this))}setOnline(n){this.#e!==n&&(this.#e=n,this.listeners.forEach(s=>{s(n)}))}isOnline(){return this.#e}},Ji=new b0;function Hc(){let n,i;const s=new Promise((o,h)=>{n=o,i=h});s.status="pending",s.catch(()=>{});function c(o){Object.assign(s,o),delete s.resolve,delete s.reject}return s.resolve=o=>{c({status:"fulfilled",value:o}),n(o)},s.reject=o=>{c({status:"rejected",reason:o}),i(o)},s}function x0(n){return Math.min(1e3*2**n,3e4)}function Bm(n){return(n??"online")==="online"?Ji.isOnline():!0}var Lm=class extends Error{constructor(n){super("CancelledError"),this.revert=n?.revert,this.silent=n?.silent}};function Ec(n){return n instanceof Lm}function Ym(n){let i=!1,s=0,c=!1,o;const h=Hc(),m=U=>{c||(M(new Lm(U)),n.abort?.())},v=()=>{i=!0},y=()=>{i=!1},g=()=>kc.isFocused()&&(n.networkMode==="always"||Ji.isOnline())&&n.canRun(),S=()=>Bm(n.networkMode)&&n.canRun(),E=U=>{c||(c=!0,n.onSuccess?.(U),o?.(),h.resolve(U))},M=U=>{c||(c=!0,n.onError?.(U),o?.(),h.reject(U))},Y=()=>new Promise(U=>{o=W=>{(c||g())&&U(W)},n.onPause?.()}).then(()=>{o=void 0,c||n.onContinue?.()}),Z=()=>{if(c)return;let U;const W=s===0?n.initialPromise:void 0;try{U=W??n.fn()}catch(rt){U=Promise.reject(rt)}Promise.resolve(U).then(E).catch(rt=>{if(c)return;const vt=n.retry??(gl?0:3),Tt=n.retryDelay??x0,qt=typeof Tt=="function"?Tt(s,rt):Tt,P=vt===!0||typeof vt=="number"&&s<vt||typeof vt=="function"&&vt(s,rt);if(i||!P){M(rt);return}s++,n.onFail?.(s,rt),v0(qt).then(()=>g()?void 0:Y()).then(()=>{i?M(rt):Z()})})};return{promise:h,cancel:m,continue:()=>(o?.(),h),cancelRetry:v,continueRetry:y,canStart:S,start:()=>(S()?Z():Y().then(Z),h)}}var S0=n=>setTimeout(n,0);function j0(){let n=[],i=0,s=v=>{v()},c=v=>{v()},o=S0;const h=v=>{i?n.push(v):o(()=>{s(v)})},m=()=>{const v=n;n=[],v.length&&o(()=>{c(()=>{v.forEach(y=>{s(y)})})})};return{batch:v=>{let y;i++;try{y=v()}finally{i--,i||m()}return y},batchCalls:v=>(...y)=>{h(()=>{v(...y)})},schedule:h,setNotifyFunction:v=>{s=v},setBatchNotifyFunction:v=>{c=v},setScheduler:v=>{o=v}}}var Xt=j0(),Gm=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),qc(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(gl?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},O0=class extends Gm{#e;#t;#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.#e=E0(this.options),this.state=n.state??this.#e,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=Qc(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(re).catch(re):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(n=>Ze(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Me||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(n=>Ja(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:!wm(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 y=this.observers.find(g=>g.options.queryFn);y&&this.setOptions(y.options)}const s=new AbortController,c=y=>{Object.defineProperty(y,"signal",{enumerable:!0,get:()=>(this.#r=!0,s.signal)})},o=()=>{const y=Qm(this.options,i),S=(()=>{const E={client:this.#l,queryKey:this.queryKey,meta:this.meta};return c(E),E})();return this.#r=!1,this.options.persister?this.options.persister(y,S,this):y(S)},m=(()=>{const y={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:o};return c(y),y})();this.options.behavior?.onFetch(m,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==m.fetchOptions?.meta)&&this.#i({type:"fetch",meta:m.fetchOptions?.meta});const v=y=>{Ec(y)&&y.silent||this.#i({type:"error",error:y}),Ec(y)||(this.#a.config.onError?.(y,this),this.#a.config.onSettled?.(this.state.data,y,this)),this.scheduleGc()};return this.#n=Ym({initialPromise:i?.initialPromise,fn:m.fetchFn,abort:s.abort.bind(s),onSuccess:y=>{if(y===void 0){v(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(y)}catch(g){v(g);return}this.#a.config.onSuccess?.(y,this),this.#a.config.onSettled?.(y,this.state.error,this),this.scheduleGc()},onError:v,onFail:(y,g)=>{this.#i({type:"failed",failureCount:y,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,...Xm(s.data,this.options),fetchMeta:n.meta??null};case"success":return this.#t=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 c=n.error;return Ec(c)&&c.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...s,error:c,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:c,fetchStatus:"idle",status:"error"};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...n.state}}};this.state=i(this.state),Xt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#a.notify({query:this,type:"updated",action:n})})}};function Xm(n,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Bm(i.networkMode)?"fetching":"paused",...n===void 0&&{error:null,status:"pending"}}}function E0(n){const i=typeof n.initialData=="function"?n.initialData():n.initialData,s=i!==void 0,c=s?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?c??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var _0=class extends xl{constructor(n={}){super(),this.config=n,this.#e=new Map}#e;build(n,i,s){const c=i.queryKey,o=i.queryHash??Zc(c,i);let h=this.get(o);return h||(h=new O0({client:n,queryKey:c,queryHash:o,options:n.defaultQueryOptions(i),state:s,defaultOptions:n.getQueryDefaults(c)}),this.add(h)),h}add(n){this.#e.has(n.queryHash)||(this.#e.set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const i=this.#e.get(n.queryHash);i&&(n.destroy(),i===n&&this.#e.delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Xt.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return this.#e.get(n)}getAll(){return[...this.#e.values()]}find(n){const i={exact:!0,...n};return this.getAll().find(s=>om(i,s))}findAll(n={}){const i=this.getAll();return Object.keys(n).length>0?i.filter(s=>om(n,s)):i}notify(n){Xt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}onFocus(){Xt.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Xt.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},N0=class extends Gm{#e;#t;#a;constructor(n){super(),this.mutationId=n.mutationId,this.#t=n.mutationCache,this.#e=[],this.state=n.state||Km(),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.#e.includes(n)||(this.#e.push(n),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){this.#e=this.#e.filter(i=>i!==n),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(n){const i=()=>{this.#l({type:"continue"})};this.#a=Ym({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(o,h)=>{this.#l({type:"failed",failureCount:o,error:h})},onPause:()=>{this.#l({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#t.canRun(this)});const s=this.state.status==="pending",c=!this.#a.canStart();try{if(s)i();else{this.#l({type:"pending",variables:n,isPaused:c}),await this.#t.config.onMutate?.(n,this);const h=await this.options.onMutate?.(n);h!==this.state.context&&this.#l({type:"pending",context:h,variables:n,isPaused:c})}const o=await this.#a.start();return await this.#t.config.onSuccess?.(o,n,this.state.context,this),await this.options.onSuccess?.(o,n,this.state.context),await this.#t.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,n,this.state.context),this.#l({type:"success",data:o}),o}catch(o){try{throw await this.#t.config.onError?.(o,n,this.state.context,this),await this.options.onError?.(o,n,this.state.context),await this.#t.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,o,n,this.state.context),o}finally{this.#l({type:"error",error:o})}}finally{this.#t.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),Xt.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(n)}),this.#t.notify({mutation:this,type:"updated",action:n})})}};function Km(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var T0=class extends xl{constructor(n={}){super(),this.config=n,this.#e=new Set,this.#t=new Map,this.#a=0}#e;#t;#a;build(n,i,s){const c=new N0({mutationCache:this,mutationId:++this.#a,options:n.defaultMutationOptions(i),state:s});return this.add(c),c}add(n){this.#e.add(n);const i=Li(n);if(typeof i=="string"){const s=this.#t.get(i);s?s.push(n):this.#t.set(i,[n])}this.notify({type:"added",mutation:n})}remove(n){if(this.#e.delete(n)){const i=Li(n);if(typeof i=="string"){const s=this.#t.get(i);if(s)if(s.length>1){const c=s.indexOf(n);c!==-1&&s.splice(c,1)}else s[0]===n&&this.#t.delete(i)}}this.notify({type:"removed",mutation:n})}canRun(n){const i=Li(n);if(typeof i=="string"){const c=this.#t.get(i)?.find(o=>o.state.status==="pending");return!c||c===n}else return!0}runNext(n){const i=Li(n);return typeof i=="string"?this.#t.get(i)?.find(c=>c!==n&&c.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Xt.batch(()=>{this.#e.forEach(n=>{this.notify({type:"removed",mutation:n})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(n){const i={exact:!0,...n};return this.getAll().find(s=>fm(i,s))}findAll(n={}){return this.getAll().filter(i=>fm(n,i))}notify(n){Xt.batch(()=>{this.listeners.forEach(i=>{i(n)})})}resumePausedMutations(){const n=this.getAll().filter(i=>i.state.isPaused);return Xt.batch(()=>Promise.all(n.map(i=>i.continue().catch(re))))}};function Li(n){return n.options.scope?.id}function Fi(n){return{onFetch:(i,s)=>{const c=i.options,o=i.fetchOptions?.meta?.fetchMore?.direction,h=i.state.data?.pages||[],m=i.state.data?.pageParams||[];let v={pages:[],pageParams:[]},y=0;const g=async()=>{let S=!1;const E=Z=>{Object.defineProperty(Z,"signal",{enumerable:!0,get:()=>(i.signal.aborted?S=!0:i.signal.addEventListener("abort",()=>{S=!0}),i.signal)})},M=Qm(i.options,i.fetchOptions),Y=async(Z,U,W)=>{if(S)return Promise.reject();if(U==null&&Z.pages.length)return Promise.resolve(Z);const vt=(()=>{const V={client:i.client,queryKey:i.queryKey,pageParam:U,direction:W?"backward":"forward",meta:i.options.meta};return E(V),V})(),Tt=await M(vt),{maxPages:qt}=i.options,P=W?p0:y0;return{pages:P(Z.pages,Tt,qt),pageParams:P(Z.pageParams,U,qt)}};if(o&&h.length){const Z=o==="backward",U=Z?Zm:Bc,W={pages:h,pageParams:m},rt=U(c,W);v=await Y(W,rt,Z)}else{const Z=n??h.length;do{const U=y===0?m[0]??c.initialPageParam:Bc(c,v);if(y>0&&U==null)break;v=await Y(v,U),y++}while(y<Z)}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 Bc(n,{pages:i,pageParams:s}){const c=i.length-1;return i.length>0?n.getNextPageParam(i[c],i,s[c],s):void 0}function Zm(n,{pages:i,pageParams:s}){return i.length>0?n.getPreviousPageParam?.(i[0],i,s[0],s):void 0}function A0(n,i){return i?Bc(n,i)!=null:!1}function C0(n,i){return!i||!n.getPreviousPageParam?!1:Zm(n,i)!=null}var M0=class{#e;#t;#a;#l;#n;#u;#r;#i;constructor(n={}){this.#e=n.queryCache||new _0,this.#t=n.mutationCache||new T0,this.#a=n.defaultOptions||{},this.#l=new Map,this.#n=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#r=kc.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=Ji.subscribe(async n=>{n&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#u--,this.#u===0&&(this.#r?.(),this.#r=void 0,this.#i?.(),this.#i=void 0)}isFetching(n){return this.#e.findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return this.#t.findAll({...n,status:"pending"}).length}getQueryData(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(n){const i=this.defaultQueryOptions(n),s=this.#e.build(this,i),c=s.state.data;return c===void 0?this.fetchQuery(n):(n.revalidateIfStale&&s.isStaleByTime(Ja(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(c))}getQueriesData(n){return this.#e.findAll(n).map(({queryKey:i,state:s})=>{const c=s.data;return[i,c]})}setQueryData(n,i,s){const c=this.defaultQueryOptions({queryKey:n}),h=this.#e.get(c.queryHash)?.state.data,m=m0(i,h);if(m!==void 0)return this.#e.build(this,c).setData(m,{...s,manual:!0})}setQueriesData(n,i,s){return Xt.batch(()=>this.#e.findAll(n).map(({queryKey:c})=>[c,this.setQueryData(c,i,s)]))}getQueryState(n){const i=this.defaultQueryOptions({queryKey:n});return this.#e.get(i.queryHash)?.state}removeQueries(n){const i=this.#e;Xt.batch(()=>{i.findAll(n).forEach(s=>{i.remove(s)})})}resetQueries(n,i){const s=this.#e;return Xt.batch(()=>(s.findAll(n).forEach(c=>{c.reset()}),this.refetchQueries({type:"active",...n},i)))}cancelQueries(n,i={}){const s={revert:!0,...i},c=Xt.batch(()=>this.#e.findAll(n).map(o=>o.cancel(s)));return Promise.all(c).then(re).catch(re)}invalidateQueries(n,i={}){return Xt.batch(()=>(this.#e.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},c=Xt.batch(()=>this.#e.findAll(n).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let h=o.fetch(void 0,s);return s.throwOnError||(h=h.catch(re)),o.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(c).then(re)}fetchQuery(n){const i=this.defaultQueryOptions(n);i.retry===void 0&&(i.retry=!1);const s=this.#e.build(this,i);return s.isStaleByTime(Ja(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(n){return this.fetchQuery(n).then(re).catch(re)}fetchInfiniteQuery(n){return n.behavior=Fi(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then(re).catch(re)}ensureInfiniteQueryData(n){return n.behavior=Fi(n.pages),this.ensureQueryData(n)}resumePausedMutations(){return Ji.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#a}setDefaultOptions(n){this.#a=n}setQueryDefaults(n,i){this.#l.set(Fa(n),{queryKey:n,defaultOptions:i})}getQueryDefaults(n){const i=[...this.#l.values()],s={};return i.forEach(c=>{yu(n,c.queryKey)&&Object.assign(s,c.defaultOptions)}),s}setMutationDefaults(n,i){this.#n.set(Fa(n),{mutationKey:n,defaultOptions:i})}getMutationDefaults(n){const i=[...this.#n.values()],s={};return i.forEach(c=>{yu(n,c.mutationKey)&&Object.assign(s,c.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=Zc(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===Me&&(i.enabled=!1),i}defaultMutationOptions(n){return n?._defaulted?n:{...this.#a.mutations,...n?.mutationKey&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},pu=class extends xl{constructor(n,i){super(),this.options=i,this.#e=n,this.#i=null,this.#r=Hc(),this.options.experimental_prefetchInRender||this.#r.reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(i)}#e;#t=void 0;#a=void 0;#l=void 0;#n;#u;#r;#i;#h;#f;#d;#c;#o;#s;#v=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),mm(this.#t,this.options)?this.#m():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Lc(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Lc(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#x(),this.#S(),this.#t.removeObserver(this)}setOptions(n){const i=this.options,s=this.#t;if(this.options=this.#e.defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ze(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#j(),this.#t.setOptions(this.options),i._defaulted&&!ki(this.options,i)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const c=this.hasListeners();c&&vm(this.#t,s,this.options,i)&&this.#m(),this.updateResult(),c&&(this.#t!==s||Ze(this.options.enabled,this.#t)!==Ze(i.enabled,this.#t)||Ja(this.options.staleTime,this.#t)!==Ja(i.staleTime,this.#t))&&this.#y();const o=this.#p();c&&(this.#t!==s||Ze(this.options.enabled,this.#t)!==Ze(i.enabled,this.#t)||o!==this.#s)&&this.#g(o)}getOptimisticResult(n){const i=this.#e.getQueryCache().build(this.#e,n),s=this.createResult(i,n);return D0(this,s)&&(this.#l=s,this.#u=this.options,this.#n=this.#t.state),s}getCurrentResult(){return this.#l}trackResult(n,i){return new Proxy(n,{get:(s,c)=>(this.trackProp(c),i?.(c),Reflect.get(s,c))})}trackProp(n){this.#v.add(n)}getCurrentQuery(){return this.#t}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const i=this.#e.defaultQueryOptions(n),s=this.#e.getQueryCache().build(this.#e,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.#t.fetch(this.options,n);return n?.throwOnError||(i=i.catch(re)),i}#y(){this.#x();const n=Ja(this.options.staleTime,this.#t);if(gl||this.#l.isStale||!qc(n))return;const s=wm(this.#l.dataUpdatedAt,n)+1;this.#c=setTimeout(()=>{this.#l.isStale||this.updateResult()},s)}#p(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(n){this.#S(),this.#s=n,!(gl||Ze(this.options.enabled,this.#t)===!1||!qc(this.#s)||this.#s===0)&&(this.#o=setInterval(()=>{(this.options.refetchIntervalInBackground||kc.isFocused())&&this.#m()},this.#s))}#b(){this.#y(),this.#g(this.#p())}#x(){this.#c&&(clearTimeout(this.#c),this.#c=void 0)}#S(){this.#o&&(clearInterval(this.#o),this.#o=void 0)}createResult(n,i){const s=this.#t,c=this.options,o=this.#l,h=this.#n,m=this.#u,y=n!==s?n.state:this.#a,{state:g}=n;let S={...g},E=!1,M;if(i._optimisticResults){const K=this.hasListeners(),I=!K&&mm(n,i),$=K&&vm(n,s,i,c);(I||$)&&(S={...S,...Xm(g.data,n.options)}),i._optimisticResults==="isRestoring"&&(S.fetchStatus="idle")}let{error:Y,errorUpdatedAt:Z,status:U}=S;M=S.data;let W=!1;if(i.placeholderData!==void 0&&M===void 0&&U==="pending"){let K;o?.isPlaceholderData&&i.placeholderData===m?.placeholderData?(K=o.data,W=!0):K=typeof i.placeholderData=="function"?i.placeholderData(this.#d?.state.data,this.#d):i.placeholderData,K!==void 0&&(U="success",M=Qc(o?.data,K,i),E=!0)}if(i.select&&M!==void 0&&!W)if(o&&M===h?.data&&i.select===this.#h)M=this.#f;else try{this.#h=i.select,M=i.select(M),M=Qc(o?.data,M,i),this.#f=M,this.#i=null}catch(K){this.#i=K}this.#i&&(Y=this.#i,M=this.#f,Z=Date.now(),U="error");const rt=S.fetchStatus==="fetching",vt=U==="pending",Tt=U==="error",qt=vt&&rt,P=M!==void 0,z={status:U,fetchStatus:S.fetchStatus,isPending:vt,isSuccess:U==="success",isError:Tt,isInitialLoading:qt,isLoading:qt,data:M,dataUpdatedAt:S.dataUpdatedAt,error:Y,errorUpdatedAt:Z,failureCount:S.fetchFailureCount,failureReason:S.fetchFailureReason,errorUpdateCount:S.errorUpdateCount,isFetched:S.dataUpdateCount>0||S.errorUpdateCount>0,isFetchedAfterMount:S.dataUpdateCount>y.dataUpdateCount||S.errorUpdateCount>y.errorUpdateCount,isFetching:rt,isRefetching:rt&&!vt,isLoadingError:Tt&&!P,isPaused:S.fetchStatus==="paused",isPlaceholderData:E,isRefetchError:Tt&&P,isStale:Jc(n,i),refetch:this.refetch,promise:this.#r};if(this.options.experimental_prefetchInRender){const K=lt=>{z.status==="error"?lt.reject(z.error):z.data!==void 0&&lt.resolve(z.data)},I=()=>{const lt=this.#r=z.promise=Hc();K(lt)},$=this.#r;switch($.status){case"pending":n.queryHash===s.queryHash&&K($);break;case"fulfilled":(z.status==="error"||z.data!==$.value)&&I();break;case"rejected":(z.status!=="error"||z.error!==$.reason)&&I();break}}return z}updateResult(){const n=this.#l,i=this.createResult(this.#t,this.options);if(this.#n=this.#t.state,this.#u=this.options,this.#n.data!==void 0&&(this.#d=this.#t),ki(i,n))return;this.#l=i;const s=()=>{if(!n)return!0;const{notifyOnChangeProps:c}=this.options,o=typeof c=="function"?c():c;if(o==="all"||!o&&!this.#v.size)return!0;const h=new Set(o??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.#e.getQueryCache().build(this.#e,this.options);if(n===this.#t)return;const i=this.#t;this.#t=n,this.#a=n.state,this.hasListeners()&&(i?.removeObserver(this),n.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#O(n){Xt.batch(()=>{n.listeners&&this.listeners.forEach(i=>{i(this.#l)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function z0(n,i){return Ze(i.enabled,n)!==!1&&n.state.data===void 0&&!(n.state.status==="error"&&i.retryOnMount===!1)}function mm(n,i){return z0(n,i)||n.state.data!==void 0&&Lc(n,i,i.refetchOnMount)}function Lc(n,i,s){if(Ze(i.enabled,n)!==!1&&Ja(i.staleTime,n)!=="static"){const c=typeof s=="function"?s(n):s;return c==="always"||c!==!1&&Jc(n,i)}return!1}function vm(n,i,s,c){return(n!==i||Ze(c.enabled,n)===!1)&&(!s.suspense||n.state.status!=="error")&&Jc(n,s)}function Jc(n,i){return Ze(i.enabled,n)!==!1&&n.isStaleByTime(Ja(i.staleTime,n))}function D0(n,i){return!ki(n.getCurrentResult(),i)}function ym(n,i){const s=new Set(i);return n.filter(c=>!s.has(c))}function R0(n,i,s){const c=n.slice(0);return c[i]=s,c}var U0=class extends xl{#e;#t;#a;#l;#n;#u;#r;#i;#h=[];constructor(n,i,s){super(),this.#e=n,this.#l=s,this.#a=[],this.#n=[],this.#t=[],this.setQueries(i)}onSubscribe(){this.listeners.size===1&&this.#n.forEach(n=>{n.subscribe(i=>{this.#o(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,Xt.batch(()=>{const s=this.#n,c=this.#c(this.#a);this.#h=c,c.forEach(v=>v.observer.setOptions(v.defaultedQueryOptions));const o=c.map(v=>v.observer),h=o.map(v=>v.getCurrentResult()),m=o.some((v,y)=>v!==s[y]);s.length===o.length&&!m||(this.#n=o,this.#t=h,this.hasListeners()&&(ym(s,o).forEach(v=>{v.destroy()}),ym(o,s).forEach(v=>{v.subscribe(y=>{this.#o(v,y)})}),this.#s()))})}getCurrentResult(){return this.#t}getQueries(){return this.#n.map(n=>n.getCurrentQuery())}getObservers(){return this.#n}getOptimisticResult(n,i){const s=this.#c(n),c=s.map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[c,o=>this.#d(o??c,i),()=>this.#f(c,s)]}#f(n,i){return i.map((s,c)=>{const o=n[c];return s.defaultedQueryOptions.notifyOnChangeProps?o:s.observer.trackResult(o,h=>{i.forEach(m=>{m.observer.trackProp(h)})})})}#d(n,i){return i?((!this.#u||this.#t!==this.#i||i!==this.#r)&&(this.#r=i,this.#i=this.#t,this.#u=Vc(this.#u,i(n))),this.#u):n}#c(n){const i=new Map(this.#n.map(c=>[c.options.queryHash,c])),s=[];return n.forEach(c=>{const o=this.#e.defaultQueryOptions(c),h=i.get(o.queryHash);h?s.push({defaultedQueryOptions:o,observer:h}):s.push({defaultedQueryOptions:o,observer:new pu(this.#e,o)})}),s}#o(n,i){const s=this.#n.indexOf(n);s!==-1&&(this.#t=R0(this.#t,s,i),this.#s())}#s(){if(this.hasListeners()){const n=this.#u,i=this.#f(this.#t,this.#h),s=this.#d(i,this.#l?.combine);n!==s&&Xt.batch(()=>{this.listeners.forEach(c=>{c(this.#t)})})}}},Vm=class extends pu{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:Fi()})}getOptimisticResult(n){return n.behavior=Fi(),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,c=super.createResult(n,i),{isFetching:o,isRefetching:h,isError:m,isRefetchError:v}=c,y=s.fetchMeta?.fetchMore?.direction,g=m&&y==="forward",S=o&&y==="forward",E=m&&y==="backward",M=o&&y==="backward";return{...c,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:A0(i,s.data),hasPreviousPage:C0(i,s.data),isFetchNextPageError:g,isFetchingNextPage:S,isFetchPreviousPageError:E,isFetchingPreviousPage:M,isRefetchError:v&&!g&&!E,isRefetching:h&&!S&&!M}}},q0=class extends xl{#e;#t=void 0;#a;#l;constructor(i,s){super(),this.#e=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.#e.defaultMutationOptions(i),ki(this.options,s)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#a,observer:this}),s?.mutationKey&&this.options.mutationKey&&Fa(s.mutationKey)!==Fa(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.#t}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.#e.getMutationCache().build(this.#e,this.options),this.#a.addObserver(this),this.#a.execute(i)}#n(){const i=this.#a?.state??Km();this.#t={...i,isPending:i.status==="pending",isSuccess:i.status==="success",isError:i.status==="error",isIdle:i.status==="idle",mutate:this.mutate,reset:this.reset}}#u(i){Xt.batch(()=>{if(this.#l&&this.hasListeners()){const s=this.#t.variables,c=this.#t.context;i?.type==="success"?(this.#l.onSuccess?.(i.data,s,c),this.#l.onSettled?.(i.data,null,s,c)):i?.type==="error"&&(this.#l.onError?.(i.error,s,c),this.#l.onSettled?.(void 0,i.error,s,c))}this.listeners.forEach(s=>{s(this.#t)})})}},km=Q.createContext(void 0),gu=n=>{const i=Q.useContext(km);if(n)return n;if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},w0=({client:n,children:i})=>(Q.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),d.jsx(km.Provider,{value:n,children:i})),Jm=Q.createContext(!1),Fm=()=>Q.useContext(Jm);Jm.Provider;function Q0(){let n=!1;return{clearReset:()=>{n=!1},reset:()=>{n=!0},isReset:()=>n}}var H0=Q.createContext(Q0()),Pm=()=>Q.useContext(H0),$m=(n,i)=>{(n.suspense||n.throwOnError||n.experimental_prefetchInRender)&&(i.isReset()||(n.retryOnMount=!1))},Wm=n=>{Q.useEffect(()=>{n.clearReset()},[n])},Im=({result:n,errorResetBoundary:i,throwOnError:s,query:c,suspense:o})=>n.isError&&!i.isReset()&&!n.isFetching&&c&&(o&&n.data===void 0||Hm(s,[n.error,c])),Fc=(n,i)=>i.state.data===void 0,tv=n=>{if(n.suspense){const i=c=>c==="static"?c:Math.max(c??1e3,1e3),s=n.staleTime;n.staleTime=typeof s=="function"?(...c)=>i(s(...c)):i(s),typeof n.gcTime=="number"&&(n.gcTime=Math.max(n.gcTime,1e3))}},ev=(n,i)=>n.isLoading&&n.isFetching&&!i,Yc=(n,i)=>n?.suspense&&i.isPending,Pi=(n,i,s)=>i.fetchOptimistic(n).catch(()=>{s.clearReset()});function av({queries:n,...i},s){const c=gu(s),o=Fm(),h=Pm(),m=Q.useMemo(()=>n.map(U=>{const W=c.defaultQueryOptions(U);return W._optimisticResults=o?"isRestoring":"optimistic",W}),[n,c,o]);m.forEach(U=>{tv(U),$m(U,h)}),Wm(h);const[v]=Q.useState(()=>new U0(c,m,i)),[y,g,S]=v.getOptimisticResult(m,i.combine),E=!o&&i.subscribed!==!1;Q.useSyncExternalStore(Q.useCallback(U=>E?v.subscribe(Xt.batchCalls(U)):re,[v,E]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),Q.useEffect(()=>{v.setQueries(m,i)},[m,i,v]);const Y=y.some((U,W)=>Yc(m[W],U))?y.flatMap((U,W)=>{const rt=m[W];if(rt){const vt=new pu(c,rt);if(Yc(rt,U))return Pi(rt,vt,h);ev(U,o)&&Pi(rt,vt,h)}return[]}):[];if(Y.length>0)throw Promise.all(Y);const Z=y.find((U,W)=>{const rt=m[W];return rt&&Im({result:U,errorResetBoundary:h,throwOnError:rt.throwOnError,query:c.getQueryCache().get(rt.queryHash),suspense:rt.suspense})});if(Z?.error)throw Z.error;return g(S())}function Ii(n,i,s){const c=Fm(),o=Pm(),h=gu(s),m=h.defaultQueryOptions(n);h.getDefaultOptions().queries?._experimental_beforeQuery?.(m),m._optimisticResults=c?"isRestoring":"optimistic",tv(m),$m(m,o),Wm(o);const v=!h.getQueryCache().get(m.queryHash),[y]=Q.useState(()=>new i(h,m)),g=y.getOptimisticResult(m),S=!c&&n.subscribed!==!1;if(Q.useSyncExternalStore(Q.useCallback(E=>{const M=S?y.subscribe(Xt.batchCalls(E)):re;return y.updateResult(),M},[y,S]),()=>y.getCurrentResult(),()=>y.getCurrentResult()),Q.useEffect(()=>{y.setOptions(m)},[m,y]),Yc(m,g))throw Pi(m,y,o);if(Im({result:g,errorResetBoundary:o,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&&!gl&&ev(g,c)&&(v?Pi(m,y,o):h.getQueryCache().get(m.queryHash)?.promise)?.catch(re).finally(()=>{y.updateResult()}),m.notifyOnChangeProps?g:y.trackResult(g)}function B0(n,i){return Ii(n,pu,i)}function L0(n,i){return Ii({...n,enabled:!0,suspense:!0,throwOnError:Fc,placeholderData:void 0},pu,i)}function Y0(n,i){return Ii({...n,enabled:!0,suspense:!0,throwOnError:Fc},Vm,i)}function G0(n,i){return av({...n,queries:n.queries.map(s=>({...s,suspense:!0,throwOnError:Fc,enabled:!0,placeholderData:void 0}))},i)}function X0(n,i){const s=gu(i);s.getQueryState(n.queryKey)||s.prefetchQuery(n)}function K0(n,i){const s=gu(i);s.getQueryState(n.queryKey)||s.prefetchInfiniteQuery(n)}function Z0(n,i){const s=gu(i),[c]=Q.useState(()=>new q0(s,n));Q.useEffect(()=>{c.setOptions(n)},[c,n]);const o=Q.useSyncExternalStore(Q.useCallback(m=>c.subscribe(Xt.batchCalls(m)),[c]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),h=Q.useCallback((m,v)=>{c.mutate(m,v).catch(re)},[c]);if(o.error&&Hm(c.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:h,mutateAsync:o.mutate}}function V0(n,i){return Ii(n,Vm,i)}function k0(n,i){if(n instanceof RegExp)return{keys:!1,pattern:n};var s,c,o,h,m=[],v="",y=n.split("/");for(y[0]||y.shift();o=y.shift();)s=o[0],s==="*"?(m.push(s),v+=o[1]==="?"?"(?:/(.*))?":"/(.*)"):s===":"?(c=o.indexOf("?",1),h=o.indexOf(".",1),m.push(o.substring(1,~c?c:~h?h:o.length)),v+=~c&&!~h?"(?:/([^/]+?))?":"/([^/]+?)",~h&&(v+=(~c?"?":"")+"\\"+o.substring(h))):v+="/"+o;return{keys:m,pattern:new RegExp("^"+v+(i?"(?=$|/)":"/?$"),"i")}}var _c={exports:{}},Nc={};/**
 * @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 pm;function J0(){if(pm)return Nc;pm=1;var n=Wi();function i(E,M){return E===M&&(E!==0||1/E===1/M)||E!==E&&M!==M}var s=typeof Object.is=="function"?Object.is:i,c=n.useState,o=n.useEffect,h=n.useLayoutEffect,m=n.useDebugValue;function v(E,M){var Y=M(),Z=c({inst:{value:Y,getSnapshot:M}}),U=Z[0].inst,W=Z[1];return h(function(){U.value=Y,U.getSnapshot=M,y(U)&&W({inst:U})},[E,Y,M]),o(function(){return y(U)&&W({inst:U}),E(function(){y(U)&&W({inst:U})})},[E]),m(Y),Y}function y(E){var M=E.getSnapshot;E=E.value;try{var Y=M();return!s(E,Y)}catch{return!0}}function g(E,M){return M()}var S=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?g:v;return Nc.useSyncExternalStore=n.useSyncExternalStore!==void 0?n.useSyncExternalStore:S,Nc}var gm;function F0(){return gm||(gm=1,_c.exports=J0()),_c.exports}var P0=F0();const $0=qm.useInsertionEffect,W0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",I0=W0?Q.useLayoutEffect:Q.useEffect,tg=$0||I0,lv=n=>{const i=Q.useRef([n,(...s)=>i[0](...s)]).current;return tg(()=>{i[0]=n}),i[1]},eg="popstate",Pc="pushState",$c="replaceState",ag="hashchange",bm=[eg,Pc,$c,ag],lg=n=>{for(const i of bm)addEventListener(i,n);return()=>{for(const i of bm)removeEventListener(i,n)}},nv=(n,i)=>P0.useSyncExternalStore(lg,n,i),ng=()=>location.search,ug=({ssrSearch:n=""}={})=>nv(ng,()=>n),xm=()=>location.pathname,ig=({ssrPath:n}={})=>nv(xm,n?()=>n:xm),rg=(n,{replace:i=!1,state:s=null}={})=>history[i?$c:Pc](s,"",n),sg=(n={})=>[ig(n),rg],Sm=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[Sm]>"u"){for(const n of[Pc,$c]){const i=history[n];history[n]=function(){const s=i.apply(this,arguments),c=new Event(n);return c.arguments=arguments,dispatchEvent(c),s}}Object.defineProperty(window,Sm,{value:!0})}const cg=(n,i)=>i.toLowerCase().indexOf(n.toLowerCase())?"~"+i:i.slice(n.length)||"/",uv=(n="")=>n==="/"?"":n,og=(n,i)=>n[0]==="~"?n.slice(1):uv(i)+n,fg=(n="",i)=>cg(Gc(uv(n)),Gc(i)),dg=n=>n[0]==="?"?n.slice(1):n,Gc=n=>{try{return decodeURI(n)}catch{return n}},hg=n=>Gc(dg(n)),iv={hook:sg,searchHook:ug,parser:k0,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:n=>n},rv=Q.createContext(iv),fn=()=>Q.useContext(rv),sv={},cv=Q.createContext(sv),tr=()=>Q.useContext(cv),er=n=>{const[i,s]=n.hook(n);return[fg(n.base,i),lv((c,o)=>s(og(c,n.base),o))]},ov=()=>er(fn()),fv=()=>{const n=fn();return hg(n.searchHook(n))},dv=(n,i,s,c)=>{const{pattern:o,keys:h}=i instanceof RegExp?{keys:!1,pattern:i}:n(i||"*",c),m=o.exec(s)||[],[v,...y]=m;return v!==void 0?[!0,(()=>{const g=h!==!1?Object.fromEntries(h.map((E,M)=>[E,y[M]])):m.groups;let S={...y};return g&&Object.assign(S,g),S})(),...c?[v]:[]]:[!1,null]},mg=({children:n,...i})=>{const s=fn(),c=i.hook?iv:s;let o=c;const[h,m]=i.ssrPath?.split("?")??[];m&&(i.ssrSearch=m,i.ssrPath=h),i.hrefs=i.hrefs??i.hook?.hrefs;let v=Q.useRef({}),y=v.current,g=y;for(let S in c){const E=S==="base"?c[S]+(i[S]||""):i[S]||c[S];y===g&&E!==g[S]&&(v.current=g={...g}),g[S]=E,E!==c[S]&&(o=g)}return Q.createElement(rv.Provider,{value:o,children:n})},jm=({children:n,component:i},s)=>i?Q.createElement(i,{params:s}):typeof n=="function"?n(s):n,vg=n=>{let i=Q.useRef(sv),s=i.current;for(const c in n)n[c]!==s[c]&&(s=n);return Object.keys(n).length===0&&(s=n),i.current=s},Ye=({path:n,nest:i,match:s,...c})=>{const o=fn(),[h]=er(o),[m,v,y]=s??dv(o.parser,n,h,i),g=vg({...tr(),...v});if(!m)return null;const S=y?Q.createElement(mg,{base:y},jm(c,g)):jm(c,g);return Q.createElement(cv.Provider,{value:g,children:S})};Q.forwardRef((n,i)=>{const s=fn(),[c,o]=er(s),{to:h="",href:m=h,onClick:v,asChild:y,children:g,className:S,replace:E,state:M,...Y}=n,Z=lv(W=>{W.ctrlKey||W.metaKey||W.altKey||W.shiftKey||W.button!==0||(v?.(W),W.defaultPrevented||(W.preventDefault(),o(m,n)))}),U=s.hrefs(m[0]==="~"?m.slice(1):s.base+m,s);return y&&Q.isValidElement(g)?Q.cloneElement(g,{onClick:Z,href:U}):Q.createElement("a",{...Y,onClick:Z,href:U,className:S?.call?S(c===m):S,children:g,ref:i})});const hv=n=>Array.isArray(n)?n.flatMap(i=>hv(i&&i.type===Q.Fragment?i.props.children:i)):[n],yg=({children:n,location:i})=>{const s=fn(),[c]=er(s);for(const o of hv(n)){let h=0;if(Q.isValidElement(o)&&(h=dv(s.parser,o.props.path,i||c,o.props.nest))[0])return Q.cloneElement(o,{match:h})}return null};function bl(n){return!!n&&!Array.isArray(n)&&typeof n=="object"}const pg=typeof Symbol=="function"&&!!Symbol.asyncIterator;function mv(n){return pg&&bl(n)&&Symbol.asyncIterator in n}var gg=Object.create,vv=Object.defineProperty,bg=Object.getOwnPropertyDescriptor,yv=Object.getOwnPropertyNames,xg=Object.getPrototypeOf,Sg=Object.prototype.hasOwnProperty,bu=(n,i)=>function(){return i||(0,n[yv(n)[0]])((i={exports:{}}).exports,i),i.exports},jg=(n,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(var o=yv(i),h=0,m=o.length,v;h<m;h++)v=o[h],!Sg.call(n,v)&&v!==s&&vv(n,v,{get:(y=>i[y]).bind(null,v),enumerable:!(c=bg(i,v))||c.enumerable});return n},ar=(n,i,s)=>(s=n!=null?gg(xg(n)):{},jg(vv(s,"default",{value:n,enumerable:!0}),n));const pv=()=>{},Om=n=>{Object.freeze&&Object.freeze(n)};function gv(n,i,s){var c;const o=i.join(".");return(c=s[o])!==null&&c!==void 0||(s[o]=new Proxy(pv,{get(h,m){if(!(typeof m!="string"||m==="then"))return gv(n,[...i,m],s)},apply(h,m,v){const y=i[i.length-1];let g={args:v,path:i};return y==="call"?g={args:v.length>=2?[v[1]]:[],path:i.slice(0,-1)}:y==="apply"&&(g={args:v.length>=2?v[1]:[],path:i.slice(0,-1)}),Om(g.args),Om(g.path),n(g)}})),s[o]}const lr=n=>gv(n,[],Object.create(null)),Wc=n=>new Proxy(pv,{get(i,s){if(s!=="then")return n(s)}});var bv=bu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,i){function s(c){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},i.exports.__esModule=!0,i.exports.default=i.exports,s(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Og=bu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,i){var s=bv().default;function c(o,h){if(s(o)!="object"||!o)return o;var m=o[Symbol.toPrimitive];if(m!==void 0){var v=m.call(o,h||"default");if(s(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(o)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Eg=bu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,i){var s=bv().default,c=Og();function o(h){var m=c(h,"string");return s(m)=="symbol"?m:m+""}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),xv=bu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,i){var s=Eg();function c(o,h,m){return(h=s(h))in o?Object.defineProperty(o,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):o[h]=m,o}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ic=bu({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,i){var s=xv();function c(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);m&&(y=y.filter(function(g){return Object.getOwnPropertyDescriptor(h,g).enumerable})),v.push.apply(v,y)}return v}function o(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?c(Object(v),!0).forEach(function(y){s(h,y,v[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):c(Object(v)).forEach(function(y){Object.defineProperty(h,y,Object.getOwnPropertyDescriptor(v,y))})}return h}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}});ar(Ic());ar(xv());var Yi=ar(Ic());function _g(n,i){if("error"in n){const c=i.deserialize(n.error);return{ok:!1,error:(0,Yi.default)((0,Yi.default)({},n),{},{error:c})}}return{ok:!0,result:(0,Yi.default)((0,Yi.default)({},n.result),(!n.result.type||n.result.type==="data")&&{type:"data",data:i.deserialize(n.result.data)})}}var Tc=class extends Error{constructor(){super("Unable to transform response from server")}};function Ng(n,i){let s;try{s=_g(n,i)}catch{throw new Tc}if(!s.ok&&(!bl(s.error.error)||typeof s.error.error.code!="number"))throw new Tc;if(s.ok&&!bl(s.result))throw new Tc;return s}ar(Ic());function nr(n){const i={subscribe(s){let c=null,o=!1,h=!1,m=!1;function v(){if(c===null){m=!0;return}h||(h=!0,typeof c=="function"?c():c&&c.unsubscribe())}return c=n({next(y){var g;o||(g=s.next)===null||g===void 0||g.call(s,y)},error(y){var g;o||(o=!0,(g=s.error)===null||g===void 0||g.call(s,y),v())},complete(){var y;o||(o=!0,(y=s.complete)===null||y===void 0||y.call(s),v())}}),m&&v(),{unsubscribe:v}},pipe(...s){return s.reduce(Tg,i)}};return i}function Tg(n,i){return i(n)}function Ag(n){const i=new AbortController;return new Promise((c,o)=>{let h=!1;function m(){h||(h=!0,v.unsubscribe())}i.signal.addEventListener("abort",()=>{o(i.signal.reason)});const v=n.subscribe({next(y){h=!0,c(y),m()},error(y){o(y)},complete(){i.abort(),m()}})})}var Cg=Object.create,Sv=Object.defineProperty,Mg=Object.getOwnPropertyDescriptor,jv=Object.getOwnPropertyNames,zg=Object.getPrototypeOf,Dg=Object.prototype.hasOwnProperty,Pa=(n,i)=>function(){return i||(0,n[jv(n)[0]])((i={exports:{}}).exports,i),i.exports},Rg=(n,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(var o=jv(i),h=0,m=o.length,v;h<m;h++)v=o[h],!Dg.call(n,v)&&v!==s&&Sv(n,v,{get:(y=>i[y]).bind(null,v),enumerable:!(c=Mg(i,v))||c.enumerable});return n},Sl=(n,i,s)=>(s=n!=null?Cg(zg(n)):{},Rg(i||!n||!n.__esModule?Sv(s,"default",{value:n,enumerable:!0}):s,n)),Ug=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(n,i){function s(c,o){if(c==null)return{};var h={};for(var m in c)if({}.hasOwnProperty.call(c,m)){if(o.includes(m))continue;h[m]=c[m]}return h}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),qg=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(n,i){var s=Ug();function c(o,h){if(o==null)return{};var m,v,y=s(o,h);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(o);for(v=0;v<g.length;v++)m=g[v],h.includes(m)||{}.propertyIsEnumerable.call(o,m)&&(y[m]=o[m])}return y}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ov=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,i){function s(c){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},i.exports.__esModule=!0,i.exports.default=i.exports,s(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),wg=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(n,i){var s=Ov().default;function c(o,h){if(s(o)!="object"||!o)return o;var m=o[Symbol.toPrimitive];if(m!==void 0){var v=m.call(o,h||"default");if(s(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(o)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Qg=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,i){var s=Ov().default,c=wg();function o(h){var m=c(h,"string");return s(m)=="symbol"?m:m+""}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),Hg=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,i){var s=Qg();function c(o,h,m){return(h=s(h))in o?Object.defineProperty(o,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):o[h]=m,o}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),xu=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,i){var s=Hg();function c(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);m&&(y=y.filter(function(g){return Object.getOwnPropertyDescriptor(h,g).enumerable})),v.push.apply(v,y)}return v}function o(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?c(Object(v),!0).forEach(function(y){s(h,y,v[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):c(Object(v)).forEach(function(y){Object.defineProperty(h,y,Object.getOwnPropertyDescriptor(v,y))})}return h}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),Bg=Sl(qg(),1),Em=Sl(xu(),1);const Lg=["cursor","direction"];function ea(n,i,s){const c=n.flatMap(o=>o.split("."));if(!i&&(!s||s==="any"))return c.length?[c]:[];if(s==="infinite"&&bl(i)&&("direction"in i||"cursor"in i)){const{cursor:o,direction:h}=i,m=(0,Bg.default)(i,Lg);return[c,{input:m,type:"infinite"}]}return[c,(0,Em.default)((0,Em.default)({},typeof i<"u"&&i!==Me&&{input:i}),s&&s!=="any"&&{type:s})]}function Zi(n){return ea(n,void 0,"any")}var Yg=Object.create,Ev=Object.defineProperty,Gg=Object.getOwnPropertyDescriptor,_v=Object.getOwnPropertyNames,Xg=Object.getPrototypeOf,Kg=Object.prototype.hasOwnProperty,aa=(n,i)=>function(){return i||(0,n[_v(n)[0]])((i={exports:{}}).exports,i),i.exports},Zg=(n,i,s,c)=>{if(i&&typeof i=="object"||typeof i=="function")for(var o=_v(i),h=0,m=o.length,v;h<m;h++)v=o[h],!Kg.call(n,v)&&v!==s&&Ev(n,v,{get:(y=>i[y]).bind(null,v),enumerable:!(c=Gg(i,v))||c.enumerable});return n},Vt=(n,i,s)=>(s=n!=null?Yg(Xg(n)):{},Zg(i||!n||!n.__esModule?Ev(s,"default",{value:n,enumerable:!0}):s,n)),Nv=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(n,i){function s(c){"@babel/helpers - typeof";return i.exports=s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},i.exports.__esModule=!0,i.exports.default=i.exports,s(c)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Vg=aa({"../../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 c(o,h){if(s(o)!="object"||!o)return o;var m=o[Symbol.toPrimitive];if(m!==void 0){var v=m.call(o,h||"default");if(s(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(o)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),kg=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(n,i){var s=Nv().default,c=Vg();function o(h){var m=c(h,"string");return s(m)=="symbol"?m:m+""}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),jl=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(n,i){var s=kg();function c(o,h,m){return(h=s(h))in o?Object.defineProperty(o,h,{value:m,enumerable:!0,configurable:!0,writable:!0}):o[h]=m,o}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),Je=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(n,i){var s=jl();function c(h,m){var v=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);m&&(y=y.filter(function(g){return Object.getOwnPropertyDescriptor(h,g).enumerable})),v.push.apply(v,y)}return v}function o(h){for(var m=1;m<arguments.length;m++){var v=arguments[m]!=null?arguments[m]:{};m%2?c(Object(v),!0).forEach(function(y){s(h,y,v[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(v)):c(Object(v)).forEach(function(y){Object.defineProperty(h,y,Object.getOwnPropertyDescriptor(v,y))})}return h}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}});function Jg(n){return i=>{let s=0,c=null;const o=[];function h(){c||(c=i.subscribe({next(v){for(const g of o){var y;(y=g.next)===null||y===void 0||y.call(g,v)}},error(v){for(const g of o){var y;(y=g.error)===null||y===void 0||y.call(g,v)}},complete(){for(const y of o){var v;(v=y.complete)===null||v===void 0||v.call(y)}}}))}function m(){if(s===0&&c){const v=c;c=null,v.unsubscribe()}}return nr(v=>(s++,o.push(v),h(),{unsubscribe(){s--,m();const y=o.findIndex(g=>g===v);y>-1&&o.splice(y,1)}}))}}function Fg(n){let i=n;const s=[],c=m=>{i!==void 0&&m.next(i),s.push(m)},o=m=>{s.splice(s.indexOf(m),1)},h=nr(m=>(c(m),()=>{o(m)}));return h.next=m=>{if(i!==m){i=m;for(const v of s)v.next(m)}},h.get=()=>i,h}function Pg(n){return nr(i=>{function s(o=0,h=n.op){const m=n.links[o];if(!m)throw new Error("No more links to execute - did you forget to add an ending link?");return m({op:h,next(y){return s(o+1,y)}})}return s().subscribe(i)})}var Gi=Vt(jl(),1),cn=Vt(Je(),1);function $g(n){return n instanceof $i}function Wg(n){return bl(n)&&bl(n.error)&&typeof n.error.code=="number"&&typeof n.error.message=="string"}function Ig(n,i){return typeof n=="string"?n:bl(n)&&typeof n.message=="string"?n.message:i}var $i=class Vi extends Error{constructor(i,s){var c,o;const h=s?.cause;super(i,{cause:h}),(0,Gi.default)(this,"cause",void 0),(0,Gi.default)(this,"shape",void 0),(0,Gi.default)(this,"data",void 0),(0,Gi.default)(this,"meta",void 0),this.meta=s?.meta,this.cause=h,this.shape=s==null||(c=s.result)===null||c===void 0?void 0:c.error,this.data=s==null||(o=s.result)===null||o===void 0?void 0:o.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Vi.prototype)}static from(i,s={}){const c=i;return $g(c)?(s.meta&&(c.meta=(0,cn.default)((0,cn.default)({},c.meta),s.meta)),c):Wg(c)?new Vi(c.error.message,(0,cn.default)((0,cn.default)({},s),{},{result:c})):new Vi(Ig(c,"Unknown error"),(0,cn.default)((0,cn.default)({},s),{},{cause:c}))}};function tb(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 _m=n=>typeof n=="function";function eb(n){if(n)return n;if(typeof window<"u"&&_m(window.fetch))return window.fetch;if(typeof globalThis<"u"&&_m(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var vu=Vt(Je());function ab(n){return{url:n.url.toString(),fetch:n.fetch,transformer:tb(n.transformer),methodOverride:n.methodOverride}}function lb(n){const i={};for(let s=0;s<n.length;s++){const c=n[s];i[s]=c}return i}const nb={query:"GET",mutation:"POST",subscription:"PATCH"};function Tv(n){return"input"in n?n.transformer.input.serialize(n.input):lb(n.inputs.map(i=>n.transformer.input.serialize(i)))}const Av=n=>{const i=n.url.split("?");let c=i[0].replace(/\/$/,"")+"/"+n.path;const o=[];if(i[1]&&o.push(i[1]),"inputs"in n&&o.push("batch=1"),n.type==="query"||n.type==="subscription"){const h=Tv(n);h!==void 0&&n.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(h))}`)}return o.length&&(c+="?"+o.join("&")),c},ub=n=>{if(n.type==="query"&&n.methodOverride!=="POST")return;const i=Tv(n);return i!==void 0?JSON.stringify(i):void 0},ib=n=>ob((0,vu.default)((0,vu.default)({},n),{},{contentTypeHeader:"application/json",getUrl:Av,getBody:ub}));var rb=class extends Error{constructor(){const n="AbortError";super(n),this.name=n,this.message=n}};const sb=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 rb};async function cb(n){var i;sb(n.signal);const s=n.getUrl(n),c=n.getBody(n),o=(i=n.methodOverride)!==null&&i!==void 0?i:nb[n.type],h=await(async()=>{const v=await n.headers();return Symbol.iterator in v?Object.fromEntries(v):v})(),m=(0,vu.default)((0,vu.default)((0,vu.default)({},n.contentTypeHeader&&o!=="GET"?{"content-type":n.contentTypeHeader}:{}),n.trpcAcceptHeader?{"trpc-accept":n.trpcAcceptHeader}:void 0),h);return eb(n.fetch)(s,{method:o,signal:n.signal,body:c,headers:m})}async function ob(n){const i={},s=await cb(n);i.response=s;const c=await s.json();return i.responseJSON=c,{json:c,meta:i}}Vt(Je(),1);const Nm=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function Tm(n){let i=null,s=null;const c=()=>{clearTimeout(s),s=null,i=null};function o(v){const y=[[]];let g=0;for(;;){const M=v[g];if(!M)break;const Y=y[y.length-1];if(M.aborted){var S;(S=M.reject)===null||S===void 0||S.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 E;(E=M.reject)===null||E===void 0||E.call(M,new Error("Input is too big for a single dispatch")),g++;continue}y.push([])}return y}function h(){const v=o(i);c();for(const y of v){if(!y.length)continue;const g={items:y};for(const E of y)E.batch=g;n.fetch(g.items.map(E=>E.key)).then(async E=>{await Promise.all(E.map(async(Y,Z)=>{const U=g.items[Z];try{var W;const vt=await Promise.resolve(Y);(W=U.resolve)===null||W===void 0||W.call(U,vt)}catch(vt){var rt;(rt=U.reject)===null||rt===void 0||rt.call(U,vt)}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(E=>{for(const Y of g.items){var M;(M=Y.reject)===null||M===void 0||M.call(Y,E),Y.batch=null}})}}function m(v){var y;const g={aborted:!1,key:v,batch:null,resolve:Nm,reject:Nm},S=new Promise((E,M)=>{var Y;g.reject=M,g.resolve=E,(Y=i)!==null&&Y!==void 0||(i=[]),i.push(g)});return(y=s)!==null&&y!==void 0||(s=setTimeout(h)),S}return{load:m}}function fb(...n){const i=new AbortController,s=n.length;let c=0;const o=()=>{++c===s&&i.abort()};for(const h of n)h?.aborted?o():h?.addEventListener("abort",o,{once:!0});return i.signal}var Xi=Vt(Je(),1);function db(n){var i,s;const c=ab(n),o=(i=n.maxURLLength)!==null&&i!==void 0?i:1/0,h=(s=n.maxItems)!==null&&s!==void 0?s:1/0;return()=>{const m=S=>({validate(E){if(o===1/0&&h===1/0)return!0;if(E.length>h)return!1;const M=E.map(U=>U.path).join(","),Y=E.map(U=>U.input);return Av((0,Xi.default)((0,Xi.default)({},c),{},{type:S,path:M,inputs:Y,signal:null})).length<=o},async fetch(E){const M=E.map(vt=>vt.path).join(","),Y=E.map(vt=>vt.input),Z=fb(...E.map(vt=>vt.signal)),U=await ib((0,Xi.default)((0,Xi.default)({},c),{},{path:M,inputs:Y,type:S,headers(){return n.headers?typeof n.headers=="function"?n.headers({opList:E}):n.headers:{}},signal:Z}));return(Array.isArray(U.json)?U.json:E.map(()=>U.json)).map(vt=>({meta:U.meta,json:vt}))}}),v=Tm(m("query")),y=Tm(m("mutation")),g={query:v,mutation:y};return({op:S})=>nr(E=>{/* istanbul ignore if -- @preserve */if(S.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const Y=g[S.type].load(S);let Z;return Y.then(U=>{Z=U;const W=Ng(U.json,c.transformer.output);if(!W.ok){E.error($i.from(W.error,{meta:U.meta}));return}E.next({context:U.meta,result:W.result}),E.complete()}).catch(U=>{E.error($i.from(U,{meta:Z?.meta}))}),()=>{}})}}Vt(Je(),1);const Cv=(n,...i)=>typeof n=="function"?n(...i):n;Vt(jl(),1);function hb(){let n,i;return{promise:new Promise((c,o)=>{n=c,i=o}),resolve:n,reject:i}}async function mb(n){const i=await Cv(n.url);if(!n.connectionParams)return i;const c=`${i.includes("?")?"&":"?"}connectionParams=1`;return i+c}async function vb(n){const i={method:"connectionParams",data:await Cv(n)};return JSON.stringify(i)}Vt(jl(),1);var pl=Vt(jl(),1);function yb(n){const{promise:i,resolve:s,reject:c}=hb();return n.addEventListener("open",()=>{n.removeEventListener("error",c),s()}),n.addEventListener("error",c),i}function pb(n,{intervalMs:i,pongTimeoutMs:s}){let c,o;function h(){c=setTimeout(()=>{n.send("PING"),o=setTimeout(()=>{n.close()},s)},i)}function m(){clearTimeout(c),h()}function v(){clearTimeout(o),m()}n.addEventListener("open",h),n.addEventListener("message",({data:y})=>{clearTimeout(c),h(),y==="PONG"&&v()}),n.addEventListener("close",()=>{clearTimeout(c),clearTimeout(o)})}var gb=class Xc{constructor(i){var s;if((0,pl.default)(this,"id",++Xc.connectCount),(0,pl.default)(this,"WebSocketPonyfill",void 0),(0,pl.default)(this,"urlOptions",void 0),(0,pl.default)(this,"keepAliveOpts",void 0),(0,pl.default)(this,"wsObservable",Fg(null)),(0,pl.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=++Xc.connectCount;const s=mb(i.urlOptions).then(c=>new i.WebSocketPonyfill(c));i.openPromise=s.then(async c=>{i.ws=c,c.addEventListener("message",function({data:o}){o==="PING"&&this.send("PONG")}),i.keepAliveOpts.enabled&&pb(c,i.keepAliveOpts),c.addEventListener("close",()=>{i.ws===c&&(i.ws=null)}),await yb(c),i.urlOptions.connectionParams&&c.send(await vb(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,pl.default)(gb,"connectCount",0);Vt(jl(),1);Vt(Je(),1);var Ac=Vt(jl(),1),Am=Vt(Je(),1),ur=class{constructor(n){(0,Ac.default)(this,"links",void 0),(0,Ac.default)(this,"runtime",void 0),(0,Ac.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=n.links.map(i=>i(this.runtime))}$request(n){var i;return Pg({links:this.links,op:(0,Am.default)((0,Am.default)({},n),{},{context:(i=n.context)!==null&&i!==void 0?i:{},id:++this.requestId})}).pipe(Jg())}async requestAsPromise(n){var i=this;try{const s=i.$request(n);return(await Ag(s)).result.data}catch(s){throw $i.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(o){switch(o.result.type){case"state":{var h;(h=s.onConnectionStateChange)===null||h===void 0||h.call(s,o.result);break}case"started":{var m;(m=s.onStarted)===null||m===void 0||m.call(s,{context:o.context});break}case"stopped":{var v;(v=s.onStopped)===null||v===void 0||v.call(s);break}case"data":case void 0:{var y;(y=s.onData)===null||y===void 0||y.call(s,o.result.data);break}}},error(o){var h;(h=s.onError)===null||h===void 0||h.call(s,o)},complete(){var o;(o=s.onComplete)===null||o===void 0||o.call(s)}})}};const Mv=Symbol.for("trpc_untypedClient"),bb={query:"query",mutate:"mutation",subscribe:"subscription"},xb=n=>bb[n];function zv(n){const i=lr(({path:s,args:c})=>{const o=[...s],h=xb(o.pop()),m=o.join(".");return n[h](m,...c)});return Wc(s=>s===Mv?n:i[s])}function Sb(n){const i=new ur(n);return zv(i)}function to(n){return n[Mv]}Vt(Je(),1);Vt(Je(),1);var jb=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,i){function s(o){var h,m,v,y=2;for(typeof Symbol<"u"&&(m=Symbol.asyncIterator,v=Symbol.iterator);y--;){if(m&&(h=o[m])!=null)return h.call(o);if(v&&(h=o[v])!=null)return new c(h.call(o));m="@@asyncIterator",v="@@iterator"}throw new TypeError("Object is not async iterable")}function c(o){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(y){return{value:y,done:v}})}return c=function(v){this.s=v,this.n=v.next},c.prototype={s:null,n:null,next:function(){return h(this.n.apply(this.s,arguments))},return:function(v){var y=this.s.return;return y===void 0?Promise.resolve({value:v,done:!0}):h(y.apply(this.s,arguments))},throw:function(v){var y=this.s.return;return y===void 0?Promise.reject(v):h(y.apply(this.s,arguments))}},new c(o)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}});Vt(jb(),1);Vt(Je(),1);var Ob=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(n,i){function s(){var c=typeof SuppressedError=="function"?SuppressedError:function(v,y){var g=Error();return g.name="SuppressedError",g.error=v,g.suppressed=y,g},o={},h=[];function m(v,y){if(y!=null){if(Object(y)!==y)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(v)var g=y[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(g===void 0&&(g=y[Symbol.dispose||Symbol.for("Symbol.dispose")],v))var S=g;if(typeof g!="function")throw new TypeError("Object is not disposable.");S&&(g=function(){try{S.call(y)}catch(M){return Promise.reject(M)}}),h.push({v:y,d:g,a:v})}else v&&h.push({d:y,a:v});return y}return{e:o,u:m.bind(null,!1),a:m.bind(null,!0),d:function(){var y,g=this.e,S=0;function E(){for(;y=h.pop();)try{if(!y.a&&S===1)return S=0,h.push(y),Promise.resolve().then(E);if(y.d){var Y=y.d.call(y.v);if(y.a)return S|=2,Promise.resolve(Y).then(E,M)}else S|=1}catch(Z){return M(Z)}if(S===1)return g!==o?Promise.reject(g):Promise.resolve();if(g!==o)throw g}function M(Y){return g=g!==o?new c(Y,g):Y,E()}return E()}}}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Dv=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(n,i){function s(c,o){this.v=c,this.k=o}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Eb=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(n,i){var s=Dv();function c(o){return new s(o,0)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),_b=aa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(n,i){var s=Dv();function c(h){return function(){return new o(h.apply(this,arguments))}}function o(h){var m,v;function y(S,E){try{var M=h[S](E),Y=M.value,Z=Y instanceof s;Promise.resolve(Z?Y.v:Y).then(function(U){if(Z){var W=S==="return"?"return":"next";if(!Y.k||U.done)return y(W,U);U=h[W](U).value}g(M.done?"return":"normal",U)},function(U){y("throw",U)})}catch(U){g("throw",U)}}function g(S,E){switch(S){case"return":m.resolve({value:E,done:!0});break;case"throw":m.reject(E);break;default:m.resolve({value:E,done:!1})}(m=m.next)?y(m.key,m.arg):v=null}this._invoke=function(S,E){return new Promise(function(M,Y){var Z={key:S,arg:E,resolve:M,reject:Y,next:null};v?v=v.next=Z:(m=v=Z,y(S,E))})},typeof h.return!="function"&&(this.return=void 0)}o.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(h){return this._invoke("next",h)},o.prototype.throw=function(h){return this._invoke("throw",h)},o.prototype.return=function(h){return this._invoke("return",h)},i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}});Vt(Ob(),1);Vt(Eb(),1);Vt(_b(),1);Vt(Je(),1);function Nb(n){return lr(({path:i,args:s})=>{var c;const o=[...i],h=o.pop();if(h==="useMutation")return n[h](o,...s);if(h==="_def")return{path:o};const[m,...v]=s,y=(c=v[0])!==null&&c!==void 0?c:{};return n[h](o,m,y)})}var Cc;const Tb=["client","ssrContext","ssrState","abortOnUnmount"],Ab=(Cc=Q.createContext)===null||Cc===void 0?void 0:Cc.call(qm,null),Cb=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 Mb(n){return lr(i=>{const s=[...i.path],c=s.pop(),o=[...i.args],h=o.shift(),m=Cb(c),v=ea(s,h,m);return{infiniteQueryOptions:()=>n.infiniteQueryOptions(s,v,o[0]),queryOptions:()=>n.queryOptions(s,v,...o),fetch:()=>n.fetchQuery(v,...o),fetchInfinite:()=>n.fetchInfiniteQuery(v,o[0]),prefetch:()=>n.prefetchQuery(v,...o),prefetchInfinite:()=>n.prefetchInfiniteQuery(v,o[0]),ensureData:()=>n.ensureQueryData(v,...o),invalidate:()=>n.invalidateQueries(v,...o),reset:()=>n.resetQueries(v,...o),refetch:()=>n.refetchQueries(v,...o),cancel:()=>n.cancelQuery(v,...o),setData:()=>{n.setQueryData(v,o[0],o[1])},setQueriesData:()=>n.setQueriesData(v,o[0],o[1],o[2]),setInfiniteData:()=>{n.setInfiniteQueryData(v,o[0],o[1])},getData:()=>n.getQueryData(v),getInfiniteData:()=>n.getInfiniteQueryData(v),setMutationDefaults:()=>n.setMutationDefaults(Zi(s),h),getMutationDefaults:()=>n.getMutationDefaults(Zi(s)),isMutating:()=>n.isMutating({mutationKey:Zi(s)})}[c]()})}function zb(n){const i=zv(n.client),s=Mb(n);return Wc(c=>{const o=c;return o==="client"?i:Tb.includes(o)?n[o]:s[c]})}var Db=Sl(xu(),1);function Cm(n){const i=n instanceof ur?n:to(n);return lr(s=>{const c=s.path,o=c.join("."),[h,m]=s.args;return(0,Db.default)({queryKey:ea(c,h,"query"),queryFn:()=>i.query(o,h,m?.trpc)},m)})}var Mc=Sl(xu(),1);function oe(n,i,s){var c;const o=n[0];let h=(c=n[1])===null||c===void 0?void 0:c.input;if(s){var m;h=(0,Mc.default)((0,Mc.default)((0,Mc.default)({},(m=h)!==null&&m!==void 0?m:{}),s.pageParam?{cursor:s.pageParam}:{}),{},{direction:s.direction})}return[o.join("."),h,i?.trpc]}var Rb=Pa({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(n,i){function s(o){var h,m,v,y=2;for(typeof Symbol<"u"&&(m=Symbol.asyncIterator,v=Symbol.iterator);y--;){if(m&&(h=o[m])!=null)return h.call(o);if(v&&(h=o[v])!=null)return new c(h.call(o));m="@@asyncIterator",v="@@iterator"}throw new TypeError("Object is not async iterable")}function c(o){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(y){return{value:y,done:v}})}return c=function(v){this.s=v,this.n=v.next},c.prototype={s:null,n:null,next:function(){return h(this.n.apply(this.s,arguments))},return:function(v){var y=this.s.return;return y===void 0?Promise.resolve({value:v,done:!0}):h(y.apply(this.s,arguments))},throw:function(v){var y=this.s.return;return y===void 0?Promise.reject(v):h(y.apply(this.s,arguments))}},new c(o)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ub=Sl(Rb(),1);function Kc(n){return{path:n.path.join(".")}}function hu(n){const i=Kc(n);return Q.useMemo(()=>i,[i])}async function Rv(n,i,s){const o=i.getQueryCache().build(i,{queryKey:s});o.setState({data:[],status:"success"});const h=[];var m=!1,v=!1,y;try{for(var g=(0,Ub.default)(n),S;m=!(S=await g.next()).done;m=!1){const E=S.value;h.push(E),o.setState({data:[...h]})}}catch(E){v=!0,y=E}finally{try{m&&g.return!=null&&await g.return()}finally{if(v)throw y}}return h}var _t=Sl(xu(),1);function qb(n){const{client:i,queryClient:s}=n,c=i instanceof ur?i:to(i);return{infiniteQueryOptions:(o,h,m)=>{var v,y;const g=((v=h[1])===null||v===void 0?void 0:v.input)===Me,S=async E=>{var M;const Y=(0,_t.default)((0,_t.default)({},m),{},{trpc:(0,_t.default)((0,_t.default)({},m?.trpc),!(m==null||(M=m.trpc)===null||M===void 0)&&M.abortOnUnmount?{signal:E.signal}:{signal:null})});return await c.query(...oe(h,Y,{direction:E.direction,pageParam:E.pageParam}))};return Object.assign((0,_t.default)((0,_t.default)({},m),{},{initialData:m?.initialData,queryKey:h,queryFn:g?Me:S,initialPageParam:(y=m?.initialCursor)!==null&&y!==void 0?y:null}),{trpc:Kc({path:o})})},queryOptions:(o,h,m)=>{var v;const y=((v=h[1])===null||v===void 0?void 0:v.input)===Me,g=async S=>{var E;const M=(0,_t.default)((0,_t.default)({},m),{},{trpc:(0,_t.default)((0,_t.default)({},m?.trpc),!(m==null||(E=m.trpc)===null||E===void 0)&&E.abortOnUnmount?{signal:S.signal}:{signal:null})}),Y=await c.query(...oe(h,M));return mv(Y)?Rv(Y,s,h):Y};return Object.assign((0,_t.default)((0,_t.default)({},m),{},{initialData:m?.initialData,queryKey:h,queryFn:y?Me:g}),{trpc:Kc({path:o})})},fetchQuery:(o,h)=>s.fetchQuery((0,_t.default)((0,_t.default)({},h),{},{queryKey:o,queryFn:()=>c.query(...oe(o,h))})),fetchInfiniteQuery:(o,h)=>{var m;return s.fetchInfiniteQuery((0,_t.default)((0,_t.default)({},h),{},{queryKey:o,queryFn:({pageParam:v,direction:y})=>c.query(...oe(o,h,{pageParam:v,direction:y})),initialPageParam:(m=h?.initialCursor)!==null&&m!==void 0?m:null}))},prefetchQuery:(o,h)=>s.prefetchQuery((0,_t.default)((0,_t.default)({},h),{},{queryKey:o,queryFn:()=>c.query(...oe(o,h))})),prefetchInfiniteQuery:(o,h)=>{var m;return s.prefetchInfiniteQuery((0,_t.default)((0,_t.default)({},h),{},{queryKey:o,queryFn:({pageParam:v,direction:y})=>c.query(...oe(o,h,{pageParam:v,direction:y})),initialPageParam:(m=h?.initialCursor)!==null&&m!==void 0?m:null}))},ensureQueryData:(o,h)=>s.ensureQueryData((0,_t.default)((0,_t.default)({},h),{},{queryKey:o,queryFn:()=>c.query(...oe(o,h))})),invalidateQueries:(o,h,m)=>s.invalidateQueries((0,_t.default)((0,_t.default)({},h),{},{queryKey:o}),m),resetQueries:(o,h,m)=>s.resetQueries((0,_t.default)((0,_t.default)({},h),{},{queryKey:o}),m),refetchQueries:(o,h,m)=>s.refetchQueries((0,_t.default)((0,_t.default)({},h),{},{queryKey:o}),m),cancelQuery:(o,h)=>s.cancelQueries({queryKey:o},h),setQueryData:(o,h,m)=>s.setQueryData(o,h,m),setQueriesData:(o,h,m,v)=>s.setQueriesData((0,_t.default)((0,_t.default)({},h),{},{queryKey:o}),m,v),getQueryData:o=>s.getQueryData(o),setInfiniteQueryData:(o,h,m)=>s.setQueryData(o,h,m),getInfiniteQueryData:o=>s.getQueryData(o),setMutationDefaults:(o,h)=>{const m=o[0],v=y=>c.mutation(...oe([m,{input:y}],n));return s.setMutationDefaults(o,typeof h=="function"?h({canonicalMutationFn:v}):h)},getMutationDefaults:o=>s.getMutationDefaults(o),isMutating:o=>s.isMutating((0,_t.default)((0,_t.default)({},o),{},{exact:!0}))}}var k=Sl(xu());const Mm=(n,i)=>new Proxy(n,{get(c,o){return i(o),c[o]}});function wb(n){var i,s;const c=(i=void 0)!==null&&i!==void 0?i:P=>P.originalFn(),o=(s=void 0)!==null&&s!==void 0?s:Ab,h=Sb,m=P=>{var V;const{abortOnUnmount:z=!1,queryClient:K,ssrContext:I}=P,[$,lt]=Q.useState((V=P.ssrState)!==null&&V!==void 0?V:!1),tt=P.client instanceof ur?P.client:to(P.client),yt=Q.useMemo(()=>qb({client:tt,queryClient:K}),[tt,K]),ct=Q.useMemo(()=>(0,k.default)({abortOnUnmount:z,queryClient:K,client:tt,ssrContext:I??null,ssrState:$},yt),[z,tt,yt,K,I,$]);return Q.useEffect(()=>{lt(ft=>ft?"mounted":!1)},[]),d.jsx(o.Provider,{value:ct,children:P.children})};function v(){const P=Q.useContext(o);if(!P)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return P}function y(P,V){var z;const{queryClient:K,ssrState:I}=v();return I&&I!=="mounted"&&((z=K.getQueryCache().find({queryKey:P}))===null||z===void 0?void 0:z.state.status)==="error"?(0,k.default)({retryOnMount:!1},V):V}function g(P,V,z){var K,I,$,lt,tt;const yt=v(),{abortOnUnmount:ct,client:ft,ssrState:T,queryClient:H,prefetchQuery:G}=yt,ut=ea(P,V,"query"),ht=H.getQueryDefaults(ut),x=V===Me;typeof window>"u"&&T==="prepass"&&(z==null||(K=z.trpc)===null||K===void 0?void 0:K.ssr)!==!1&&((I=z?.enabled)!==null&&I!==void 0?I:ht?.enabled)!==!1&&!x&&!H.getQueryCache().find({queryKey:ut})&&G(ut,z);const D=y(ut,(0,k.default)((0,k.default)({},ht),z)),B=($=(lt=z==null||(tt=z.trpc)===null||tt===void 0?void 0:tt.abortOnUnmount)!==null&&lt!==void 0?lt:void 0)!==null&&$!==void 0?$:ct,L=B0((0,k.default)((0,k.default)({},D),{},{queryKey:ut,queryFn:x?V:async F=>{const st=(0,k.default)((0,k.default)({},D),{},{trpc:(0,k.default)((0,k.default)({},D?.trpc),B?{signal:F.signal}:{signal:null})}),pt=await ft.query(...oe(ut,st));return mv(pt)?Rv(pt,H,ut):pt}}),H);return L.trpc=hu({path:P}),L}function S(P,V,z){var K,I,$;const lt=v(),tt=ea(P,V,"query"),yt=V===Me,ct=(K=(I=z==null||($=z.trpc)===null||$===void 0?void 0:$.abortOnUnmount)!==null&&I!==void 0?I:void 0)!==null&&K!==void 0?K:lt.abortOnUnmount;X0((0,k.default)((0,k.default)({},z),{},{queryKey:tt,queryFn:yt?V:ft=>{const T={trpc:(0,k.default)((0,k.default)({},z?.trpc),ct?{signal:ft.signal}:{})};return lt.client.query(...oe(tt,T))}}))}function E(P,V,z){var K,I,$;const lt=v(),tt=ea(P,V,"query"),yt=(K=(I=z==null||($=z.trpc)===null||$===void 0?void 0:$.abortOnUnmount)!==null&&I!==void 0?I:void 0)!==null&&K!==void 0?K:lt.abortOnUnmount,ct=L0((0,k.default)((0,k.default)({},z),{},{queryKey:tt,queryFn:ft=>{const T=(0,k.default)((0,k.default)({},z),{},{trpc:(0,k.default)((0,k.default)({},z?.trpc),yt?{signal:ft.signal}:{signal:null})});return lt.client.query(...oe(tt,T))}}),lt.queryClient);return ct.trpc=hu({path:P}),[ct.data,ct]}function M(P,V){const{client:z,queryClient:K}=v(),I=Zi(P),$=K.defaultMutationOptions(K.getMutationDefaults(I)),lt=Z0((0,k.default)((0,k.default)({},V),{},{mutationKey:I,mutationFn:tt=>z.mutation(...oe([P,{input:tt}],V)),onSuccess(...tt){var yt,ct;return c({originalFn:()=>{var T,H,G;return(T=V==null||(H=V.onSuccess)===null||H===void 0?void 0:H.call(V,...tt))!==null&&T!==void 0?T:$==null||(G=$.onSuccess)===null||G===void 0?void 0:G.call($,...tt)},queryClient:K,meta:(yt=(ct=V?.meta)!==null&&ct!==void 0?ct:$?.meta)!==null&&yt!==void 0?yt:{}})}}),K);return lt.trpc=hu({path:P}),lt}const Y={data:void 0,error:null,status:"idle"},Z={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function U(P,V,z){var K;const I=(K=z?.enabled)!==null&&K!==void 0?K:V!==Me,$=Fa(ea(P,V,"any")),{client:lt}=v(),tt=Q.useRef(z);Q.useEffect(()=>{tt.current=z});const[yt]=Q.useState(new Set([])),ct=Q.useCallback(x=>{yt.add(x)},[yt]),ft=Q.useRef(null),T=Q.useCallback(x=>{const D=G.current,B=G.current=x(D);let L=!1;for(const F of yt)if(D[F]!==B[F]){L=!0;break}L&&ht(Mm(B,ct))},[ct,yt]),H=Q.useCallback(()=>{var x;if((x=ft.current)===null||x===void 0||x.unsubscribe(),!I){T(()=>(0,k.default)((0,k.default)({},Y),{},{reset:H}));return}T(()=>(0,k.default)((0,k.default)({},Z),{},{reset:H}));const D=lt.subscription(P.join("."),V??void 0,{onStarted:()=>{var B,L;(B=(L=tt.current).onStarted)===null||B===void 0||B.call(L),T(F=>(0,k.default)((0,k.default)({},F),{},{status:"pending",error:null}))},onData:B=>{var L,F;(L=(F=tt.current).onData)===null||L===void 0||L.call(F,B),T(st=>(0,k.default)((0,k.default)({},st),{},{status:"pending",data:B,error:null}))},onError:B=>{var L,F;(L=(F=tt.current).onError)===null||L===void 0||L.call(F,B),T(st=>(0,k.default)((0,k.default)({},st),{},{status:"error",error:B}))},onConnectionStateChange:B=>{T(L=>{switch(B.state){case"idle":return(0,k.default)((0,k.default)({},L),{},{status:B.state,error:null,data:void 0});case"connecting":return(0,k.default)((0,k.default)({},L),{},{error:B.error,status:B.state});case"pending":return L}})},onComplete:()=>{var B,L;(B=(L=tt.current).onComplete)===null||B===void 0||B.call(L),T(F=>(0,k.default)((0,k.default)({},F),{},{status:"idle",error:null,data:void 0}))}});ft.current=D},[lt,$,I,T]);Q.useEffect(()=>(H(),()=>{var x;(x=ft.current)===null||x===void 0||x.unsubscribe()}),[H]);const G=Q.useRef(I?(0,k.default)((0,k.default)({},Z),{},{reset:H}):(0,k.default)((0,k.default)({},Y),{},{reset:H})),[ut,ht]=Q.useState(Mm(G.current,ct));return ut}function W(P,V,z){var K,I,$,lt,tt;const{client:yt,ssrState:ct,prefetchInfiniteQuery:ft,queryClient:T,abortOnUnmount:H}=v(),G=ea(P,V,"infinite"),ut=T.getQueryDefaults(G),ht=V===Me;typeof window>"u"&&ct==="prepass"&&(z==null||(K=z.trpc)===null||K===void 0?void 0:K.ssr)!==!1&&((I=z?.enabled)!==null&&I!==void 0?I:ut?.enabled)!==!1&&!ht&&!T.getQueryCache().find({queryKey:G})&&ft(G,(0,k.default)((0,k.default)({},ut),z));const x=y(G,(0,k.default)((0,k.default)({},ut),z)),D=($=z==null||(lt=z.trpc)===null||lt===void 0?void 0:lt.abortOnUnmount)!==null&&$!==void 0?$:H,B=V0((0,k.default)((0,k.default)({},x),{},{initialPageParam:(tt=z.initialCursor)!==null&&tt!==void 0?tt:null,persister:z.persister,queryKey:G,queryFn:ht?V:L=>{var F;const st=(0,k.default)((0,k.default)({},x),{},{trpc:(0,k.default)((0,k.default)({},x?.trpc),D?{signal:L.signal}:{signal:null})});return yt.query(...oe(G,st,{pageParam:(F=L.pageParam)!==null&&F!==void 0?F:z.initialCursor,direction:L.direction}))}}),T);return B.trpc=hu({path:P}),B}function rt(P,V,z){var K,I,$;const lt=v(),tt=ea(P,V,"infinite"),yt=lt.queryClient.getQueryDefaults(tt),ct=V===Me,ft=y(tt,(0,k.default)((0,k.default)({},yt),z)),T=(K=z==null||(I=z.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&K!==void 0?K:lt.abortOnUnmount;K0((0,k.default)((0,k.default)({},z),{},{initialPageParam:($=z.initialCursor)!==null&&$!==void 0?$:null,queryKey:tt,queryFn:ct?V:H=>{var G;const ut=(0,k.default)((0,k.default)({},ft),{},{trpc:(0,k.default)((0,k.default)({},ft?.trpc),T?{signal:H.signal}:{})});return lt.client.query(...oe(tt,ut,{pageParam:(G=H.pageParam)!==null&&G!==void 0?G:z.initialCursor,direction:H.direction}))}}))}function vt(P,V,z){var K,I,$;const lt=v(),tt=ea(P,V,"infinite"),yt=lt.queryClient.getQueryDefaults(tt),ct=y(tt,(0,k.default)((0,k.default)({},yt),z)),ft=(K=z==null||(I=z.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&K!==void 0?K:lt.abortOnUnmount,T=Y0((0,k.default)((0,k.default)({},z),{},{initialPageParam:($=z.initialCursor)!==null&&$!==void 0?$:null,queryKey:tt,queryFn:H=>{var G;const ut=(0,k.default)((0,k.default)({},ct),{},{trpc:(0,k.default)((0,k.default)({},ct?.trpc),ft?{signal:H.signal}:{})});return lt.client.query(...oe(tt,ut,{pageParam:(G=H.pageParam)!==null&&G!==void 0?G:z.initialCursor,direction:H.direction}))}}),lt.queryClient);return T.trpc=hu({path:P}),[T.data,T]}return{Provider:m,createClient:h,useContext:v,useUtils:v,useQuery:g,usePrefetchQuery:S,useSuspenseQuery:E,useQueries:(P,V)=>{const{ssrState:z,queryClient:K,prefetchQuery:I,client:$}=v(),lt=Cm($),tt=P(lt);if(typeof window>"u"&&z==="prepass")for(const ct of tt){var yt;const ft=ct;((yt=ft.trpc)===null||yt===void 0?void 0:yt.ssr)!==!1&&!K.getQueryCache().find({queryKey:ft.queryKey})&&I(ft.queryKey,ft)}return av({queries:tt.map(ct=>(0,k.default)((0,k.default)({},ct),{},{queryKey:ct.queryKey})),combine:V?.combine},K)},useSuspenseQueries:P=>{const{queryClient:V,client:z}=v(),K=Cm(z),I=P(K),$=G0({queries:I.map(lt=>(0,k.default)((0,k.default)({},lt),{},{queryFn:lt.queryFn,queryKey:lt.queryKey}))},V);return[$.map(lt=>lt.data),$]},useMutation:M,useSubscription:U,useInfiniteQuery:W,usePrefetchInfiniteQuery:rt,useSuspenseInfiniteQuery:vt}}function Qb(n){const i=Nb(n);return Wc(s=>s==="useContext"||s==="useUtils"?()=>{const c=n.useUtils();return Q.useMemo(()=>zb(c),[c])}:n.hasOwnProperty(s)?n[s]:i[s])}function Hb(n){const i=wb();return Qb(i)}const at=Hb(),Bb=at.createClient({links:[db({url:"/api/trpc"})]}),zm="/media/images/capas/capa-placeholder.svg",zc="biblioteca_modo_exibicao";function Dm(){if(typeof window>"u")return"desktop";const n=window.innerWidth;return n<768?"mobile":n<1024?"tablet":"desktop"}function Lb(){const[n,i]=Q.useState(Dm);return Q.useEffect(()=>{function s(){i(Dm())}return window.addEventListener("resize",s),()=>window.removeEventListener("resize",s)},[]),n}function dn({livros:n,titulo:i}){const{data:s}=at.config.obter.useQuery(),c=Lb(),[o,h]=Q.useState(()=>typeof window>"u"?"grade":localStorage.getItem(zc)||"grade");Q.useEffect(()=>{s&&!localStorage.getItem(zc)&&h(s.modoPadrao)},[s]);function m(y){h(y),localStorage.setItem(zc,y)}const v=c==="desktop"?s?.colunasDesktop??4:c==="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":o==="grade",onClick:()=>m("grade"),className:"w-8 h-8 flex items-center justify-center rounded transition-colors",style:Rm(o==="grade"),children:d.jsx(Yb,{})}),d.jsx("button",{"aria-label":"ver em lista","aria-pressed":o==="lista",onClick:()=>m("lista"),className:"w-8 h-8 flex items-center justify-center rounded transition-colors",style:Rm(o==="lista"),children:d.jsx(Gb,{})})]})]}),o==="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(y=>d.jsxs("a",{href:`/livro/${y.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:y.capaUrl||zm,alt:y.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-acento-400)]",style:{color:"var(--clr-branco)"},children:y.titulo}),d.jsx("p",{className:"text-xs mt-0.5",style:{color:"var(--color-text-on-dark-muted)"},children:y.autor})]},y.id))}):d.jsx("div",{className:"flex flex-col gap-2",children:n.map(y=>d.jsxs("a",{href:`/livro/${y.id}`,className:"flex gap-4 items-center p-2 rounded-md transition-colors hover:bg-white/[0.06]",style:{background:"var(--color-bg-card-dark)"},children:[d.jsx("img",{src:y.capaUrl||zm,alt:y.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:y.titulo}),d.jsxs("p",{className:"text-xs truncate",style:{color:"var(--color-text-on-dark-muted)"},children:[y.autor,y.serie?` · ${y.serie}`:""]})]})]},y.id))})]})}function Rm(n){return{background:n?"var(--clr-acento-alpha12)":"transparent",color:n?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)"}}function Yb(){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 Gb(){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 Xb="/media/images/capas/capa-placeholder.svg",Kb="/media/images/hero-fundo-PLACEHOLDER.svg";function Zb({livros:n}){const[,i]=ov(),[s,c]=Q.useState(""),[o,h]=Q.useState(0),m=Q.useRef(null);Q.useEffect(()=>{if(!(n.length<=1))return m.current=setInterval(()=>h(g=>(g+1)%n.length),4500),()=>{m.current&&clearInterval(m.current)}},[n.length]);function v(g){g.preventDefault(),s.trim()&&i(`/buscar?q=${encodeURIComponent(s.trim())}`)}const y=n.length>0?Array.from({length:Math.min(6,n.length)},(g,S)=>n[(o+S)%n.length]):[];return d.jsxs("section",{className:"relative w-screen left-1/2 right-1/2 -mx-[50vw] flex flex-col items-center justify-center text-center px-5",style:{minHeight:"min(560px, 80vh)",backgroundImage:`linear-gradient(180deg, rgba(26,2,9,0.35) 0%, rgba(26,2,9,0.55) 55%, var(--clr-borgonha-900) 100%), url(${Kb})`,backgroundSize:"cover",backgroundPosition:"center"},children:[d.jsxs("div",{className:"max-w-2xl mx-auto pt-16 pb-10",children:[d.jsx("h1",{className:"text-3xl sm:text-4xl font-semibold mb-3",style:{fontFamily:"var(--font-display)",color:"var(--clr-branco)",textShadow:"0 2px 12px rgba(0,0,0,0.5)"},children:"Descubra uma nova maneira de conhecer a Palavra de Deus"}),d.jsx("p",{className:"text-sm sm:text-base mb-6",style:{color:"rgba(255,255,255,0.85)",textShadow:"0 1px 8px rgba(0,0,0,0.5)"},children:"Livros, mangás, HQs, estudos bíblicos e conteúdos ilustrados para crianças, adolescentes, jovens e adultos."}),d.jsxs("form",{onSubmit:v,className:"max-w-md mx-auto flex gap-2",children:[d.jsx("input",{value:s,onChange:g=>c(g.target.value),placeholder:"qual leitura você procura?",className:"flex-1 text-sm px-4 py-3 rounded-full focus:outline-none",style:{background:"rgba(255,255,255,0.95)",color:"#1a0209"}}),d.jsx("button",{type:"submit",className:"btn btn-primary flex-shrink-0",style:{padding:"0.75rem 1.5rem"},children:"buscar"})]})]}),y.length>0&&d.jsx("div",{className:"w-full max-w-4xl mx-auto pb-8 px-5",children:d.jsx("div",{className:"flex gap-3 justify-center overflow-hidden",children:y.map((g,S)=>d.jsx("a",{href:`/livro/${g.id}`,className:"flex-shrink-0 transition-all duration-500 hover:scale-105",style:{width:S===0||S===y.length-1?"70px":"90px",opacity:S===0||S===y.length-1?.6:1},children:d.jsx("img",{src:g.capaUrl||Xb,alt:g.titulo,className:"w-full aspect-[2/3] object-cover rounded-md shadow-2xl"})},`${g.id}-${o}-${S}`))})})]})}function hn(){const n=at.useUtils(),{data:i,isLoading:s}=at.auth.me.useQuery(),c=at.auth.login.useMutation({onSuccess:()=>n.auth.me.invalidate()}),o=at.auth.register.useMutation({onSuccess:()=>n.auth.me.invalidate()}),h=at.auth.logout.useMutation({onSuccess:()=>n.auth.me.invalidate()}),m=i?.papel==="editor"||i?.papel==="admin";return{usuario:i,isLoading:s,login:c,registrar:o,logout:h,podePublicar:m}}const Vb=[{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"}],kb=[{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 Dc({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-acento-400)] flex items-center gap-1",style:{color:"var(--color-text-on-dark-muted)"},children:[n,d.jsx("span",{className:"text-[10px] opacity-60",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-borgonha-900)",border:"var(--border-thin)"},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-white/[0.06] whitespace-nowrap",style:{color:"var(--clr-branco)"},children:i})}function Ve({buscaInicial:n=""}){const[,i]=ov(),[s,c]=Q.useState(n),{usuario:o,podePublicar:h}=hn(),{data:m}=at.menu.listar.useQuery(),{data:v}=at.colecoes.listar.useQuery();function y(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:"var(--border-thin)",background:"rgba(26,2,9,0.75)"},children:d.jsxs("div",{className:"flex items-center justify-between gap-3 px-5 py-3 max-w-6xl mx-auto",children:[d.jsx("a",{href:"/",className:"flex-shrink-0",children:d.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",className:"h-8"})}),d.jsxs("nav",{className:"hidden md:flex items-center gap-6 flex-shrink-0",children:[d.jsx(Dc,{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(--color-text-on-dark-subtle)",letterSpacing:"var(--tracking-wider)"},children:"formato"}),Vb.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(--color-text-on-dark-subtle)",letterSpacing:"var(--tracking-wider)"},children:"público"}),kb.map(g=>d.jsx(mu,{href:`/explorar?publico=${g.valor}`,children:g.rotulo},g.valor))]})]})}),v&&v.length>0&&d.jsx(Dc,{rotulo:"Coleções",children:v.map(g=>d.jsx(mu,{href:`/colecao/${g.id}`,children:g.nome},g.id))}),d.jsxs(Dc,{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-acento-400)]",style:{color:"var(--color-text-on-dark-muted)"},children:g.rotulo},g.id))]}),d.jsx("form",{onSubmit:y,className:"flex-1 max-w-xs",children:d.jsx("input",{value:s,onChange:g=>c(g.target.value),placeholder:"buscar título, autor, série...",className:"w-full text-sm px-3 py-1.5 rounded-full transition-colors focus:outline-none",style:{border:"var(--border-medium)",background:"rgba(255,255,255,0.06)",color:"var(--clr-branco)"}})}),d.jsx("div",{className:"flex items-center gap-2 flex-shrink-0",children:o?d.jsxs(d.Fragment,{children:[d.jsx("a",{href:"/minha-biblioteca",className:"btn btn-ghost",style:{padding:"0.5rem 1rem",fontSize:"0.75rem"},children:"minha biblioteca"}),h&&d.jsx("a",{href:"/admin",className:"btn btn-ghost",style:{padding:"0.5rem 1rem",fontSize:"0.75rem"},children:"área do editor"})]}):d.jsx("a",{href:"/entrar",className:"btn btn-ghost",style:{padding:"0.5rem 1rem",fontSize:"0.75rem"},children:"entrar"})})]})})}function ke(){const{data:n}=at.menu.listar.useQuery(),i=new Date().getFullYear();return d.jsx("footer",{className:"mt-16",style:{background:"var(--clr-borgonha-900)",borderTop:"var(--border-thin)"},children:d.jsxs("div",{className:"max-w-6xl mx-auto px-5 py-12",children:[d.jsxs("div",{className:"flex flex-col sm:flex-row sm:justify-between gap-8",children:[d.jsxs("div",{children:[d.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",className:"h-7 mb-3"}),d.jsx("p",{className:"text-sm max-w-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Parte do ecossistema ONFIDE — literatura cristã pensada com o mesmo cuidado hermenêutico de tudo que produzimos."})]}),n&&n.length>0&&d.jsxs("nav",{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(--color-text-on-dark-subtle)"},children:"navegação"}),n.map(s=>d.jsx("a",{href:s.url,className:"text-sm transition-colors hover:text-[var(--clr-acento-400)]",style:{color:"var(--color-text-on-dark-muted)"},children:s.rotulo},s.id))]}),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(--color-text-on-dark-subtle)"},children:"ecossistema"}),d.jsx("a",{href:"https://spot.onfide.com.br",className:"text-sm transition-colors hover:text-[var(--clr-acento-400)]",style:{color:"var(--color-text-on-dark-muted)"},children:"SpotOnFide"}),d.jsx("a",{href:"https://onfide.com.br",className:"text-sm transition-colors hover:text-[var(--clr-acento-400)]",style:{color:"var(--color-text-on-dark-muted)"},children:"ONFIDE"})]})]}),d.jsxs("div",{className:"mt-10 pt-6 text-xs",style:{borderTop:"var(--border-thin)",color:"var(--color-text-on-dark-subtle)"},children:["© ",i," Biblioteca OnFide. Todos os direitos reservados."]})]})})}const Jb="/media/images/capas/capa-placeholder.svg";function Rc({titulo:n,itens:i}){return 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:n}),d.jsx("div",{className:"flex gap-4 overflow-x-auto pb-2 -mx-1 px-1",children:i.map(s=>d.jsxs("a",{href:s.href,className:"group block flex-shrink-0 w-24",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:s.capaUrl||Jb,alt:s.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 leading-snug line-clamp-2",style:{color:"var(--clr-branco)"},children:s.titulo})]},s.id))})]})}function on({eyebrow:n,titulo:i,descricao:s}){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-acento-400)"},children:n}),d.jsx("h2",{className:"text-xl sm:text-2xl font-semibold",style:{fontFamily:"var(--font-display)",color:"var(--clr-branco)"},children:i}),s&&d.jsx("p",{className:"text-sm mt-2 max-w-xl",style:{color:"var(--color-text-on-dark-muted)"},children:s})]})}const Fb=[{valor:"texto",rotulo:"Livros",desc:"Teologia, estudos e ensaios em texto corrido."},{valor:"manga",rotulo:"Mangás",desc:"Narrativas bíblicas em estilo mangá."},{valor:"hq",rotulo:"HQs",desc:"Histórias em quadrinhos e graphic novels."},{valor:"ilustrado",rotulo:"Ilustrados",desc:"Livros com arte em cada página."},{valor:"revista",rotulo:"Revistas",desc:"Edições periódicas do ecossistema ONFIDE."},{valor:"apostila",rotulo:"Apostilas",desc:"Material de estudo estruturado."}],Pb=[{valor:"primeiros_leitores",rotulo:"Primeiros leitores",faixa:"0–5 anos"},{valor:"infantil",rotulo:"Crianças",faixa:"6–9 anos"},{valor:"pre_adolescente",rotulo:"Pré-adolescentes",faixa:"10–12 anos"},{valor:"adolescente",rotulo:"Adolescentes",faixa:"13–17 anos"},{valor:"jovem",rotulo:"Jovens",faixa:"18–29 anos"},{valor:"adulto",rotulo:"Adultos",faixa:"30+"}],$b=[{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."}],Wb=["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"];function Ib({pergunta:n,resposta:i}){const[s,c]=Q.useState(!1);return d.jsxs("div",{style:{borderBottom:"var(--border-thin)"},className:"py-3",children:[d.jsxs("button",{className:"w-full flex items-center justify-between text-left",onClick:()=>c(o=>!o),children:[d.jsx("span",{className:"text-sm font-medium",style:{color:"var(--clr-branco)"},children:n}),d.jsx("span",{style:{color:"var(--color-text-on-dark-subtle)"},children:s?"−":"+"})]}),s&&d.jsx("p",{className:"text-sm mt-2",style:{color:"var(--color-text-on-dark-muted)"},children:i})]})}function tx(){const{data:n,isLoading:i}=at.biblioteca.getCatalogo.useQuery(),{data:s}=at.biblioteca.getDestaques.useQuery(),{data:c}=at.auth.me.useQuery(),{data:o}=at.biblioteca.historico.meuHistorico.useQuery(void 0,{enabled:!!c}),{data:h}=at.biblioteca.favoritos.meus.useQuery(void 0,{enabled:!!c}),{data:m}=at.colecoes.listar.useQuery(),{data:v}=at.biblioteca.getNovidades.useQuery(),y=new Set((s??[]).map(S=>S.id)),g=(n??[]).filter(S=>!y.has(S.id));return d.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)",fontFamily:"var(--font-corpo)"},children:[d.jsx(Ve,{}),s&&s.length>0&&d.jsx(Zb,{livros:s}),d.jsxs("div",{className:"max-w-5xl mx-auto px-5 pt-8 pb-16 flex-1 w-full",children:[i&&d.jsx("p",{className:"text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),!i&&(!n||n.length===0)&&d.jsxs("div",{className:"rounded-lg p-10 text-center mb-14",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)",color:"var(--color-text-on-dark-muted)"},children:[d.jsx("p",{className:"text-xl mb-2",style:{fontFamily:"var(--font-display)",color:"var(--clr-branco)"},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(on,{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:[{n:"01",t:"Escolha",d:"Explore o acervo por formato, público ou tema."},{n:"02",t:"Comece",d:"Abra qualquer obra e leia direto no navegador."},{n:"03",t:"Continue",d:"Sua próxima leitura sempre estará esperando por você."}].map(S=>d.jsxs("div",{className:"rounded-lg p-5",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[d.jsx("span",{style:{fontFamily:"var(--font-display)",fontSize:"1.5rem",color:"var(--clr-acento-500)"},children:S.n}),d.jsx("p",{className:"font-medium mt-2",style:{color:"var(--clr-branco)"},children:S.t}),d.jsx("p",{className:"text-sm mt-1",style:{color:"var(--color-text-on-dark-muted)"},children:S.d})]},S.n))})]}),d.jsxs("section",{className:"mb-14",children:[d.jsx(on,{eyebrow:"o acervo",titulo:"Um universo inteiro de conteúdo cristão"}),d.jsx("div",{className:"grid grid-cols-2 sm:grid-cols-3 gap-3",children:Fb.map(S=>d.jsxs("a",{href:`/explorar?formato=${S.valor}`,className:"rounded-lg p-4 transition-colors hover:bg-white/[0.06]",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[d.jsx("p",{className:"font-medium text-sm",style:{color:"var(--clr-branco)"},children:S.rotulo}),d.jsx("p",{className:"text-xs mt-1",style:{color:"var(--color-text-on-dark-muted)"},children:S.desc})]},S.valor))})]}),d.jsxs("section",{className:"mb-14",children:[d.jsx(on,{eyebrow:"para toda a família",titulo:"Leitura pensada pra cada idade"}),d.jsx("div",{className:"flex gap-3 overflow-x-auto pb-2 -mx-1 px-1",children:Pb.map(S=>d.jsxs("a",{href:`/explorar?publico=${S.valor}`,className:"flex-shrink-0 rounded-lg p-4 w-40 transition-colors hover:bg-white/[0.06]",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[d.jsx("p",{className:"font-medium text-sm",style:{color:"var(--clr-branco)"},children:S.rotulo}),d.jsx("p",{className:"text-xs mt-1",style:{color:"var(--color-text-on-dark-muted)"},children:S.faixa})]},S.valor))})]}),o&&o.length>0&&d.jsx(Rc,{titulo:"continuar lendo",itens:o.map(S=>({id:S.livroId,titulo:S.titulo,capaUrl:S.capaUrl,href:`/leitor/${S.livroId}`}))}),h&&h.length>0&&d.jsx(Rc,{titulo:"meus favoritos",itens:h.map(S=>({id:S.livroId,titulo:S.titulo,capaUrl:S.capaUrl,href:`/livro/${S.livroId}`}))}),v&&v.length>0&&d.jsx(Rc,{titulo:"novidades",itens:v.map(S=>({id:S.id,titulo:S.titulo,capaUrl:S.capaUrl,href:`/livro/${S.id}`}))}),m&&m.length>0&&d.jsxs("section",{className:"mb-14",children:[d.jsx(on,{eyebrow:"coleções",titulo:"Não mostramos livros. Mostramos universos.",descricao:"Comece por qualquer volume e continue descobrindo toda a coleção."}),d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:m.map(S=>d.jsxs("a",{href:`/colecao/${S.id}`,className:"rounded-lg p-5 transition-colors hover:bg-white/[0.06]",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[d.jsx("p",{className:"font-medium",style:{fontFamily:"var(--font-display)",color:"var(--clr-branco)"},children:S.nome}),S.descricao&&d.jsx("p",{className:"text-sm mt-1",style:{color:"var(--color-text-on-dark-muted)"},children:S.descricao})]},S.id))})]}),g.length>0&&d.jsx(dn,{livros:g,titulo:"todos os livros"}),d.jsxs("section",{className:"mb-14 mt-4",children:[d.jsx(on,{eyebrow:"a experiência",titulo:"Por que ler na Biblioteca OnFide"}),d.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:Wb.map(S=>d.jsxs("div",{className:"flex items-start gap-2 text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:[d.jsx("span",{style:{color:"var(--clr-acento-400)"},children:"✓"}),S]},S))})]}),d.jsxs("section",{className:"mb-4",children:[d.jsx(on,{eyebrow:"dúvidas",titulo:"Perguntas frequentes"}),d.jsx("div",{children:$b.map(S=>d.jsx(Ib,{pergunta:S.p,resposta:S.r},S.p))})]})]}),d.jsx(ke,{})]})}const ex="/media/images/capas/capa-placeholder.svg",Lt={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},ax=[{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)"}],lx=["ilustrado","manga","hq","revista"],nx=[{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 ux({livroExistente:n,aoTerminar:i}){const s=at.useUtils(),c=at.biblioteca.admin.criar.useMutation({onSuccess:()=>s.biblioteca.admin.listar.invalidate()}),o=at.biblioteca.admin.atualizar.useMutation({onSuccess:()=>s.biblioteca.admin.listar.invalidate()}),h=at.paginas.salvar.useMutation(),{data:m}=at.biblioteca.getLivro.useQuery({id:n?.id??0},{enabled:!!n}),{data:v}=at.autores.listar.useQuery(),{data:y}=at.temas.listar.useQuery(),{data:g}=at.colecoes.listar.useQuery(),S=at.autores.criar.useMutation({onSuccess:()=>s.autores.listar.invalidate()}),E=at.temas.criar.useMutation({onSuccess:()=>s.temas.listar.invalidate()}),[M,Y]=Q.useState(n?.titulo??""),[Z,U]=Q.useState(n?.destaque??!1),[W,rt]=Q.useState(n?.subtitulo??""),[vt,Tt]=Q.useState(n?.serie??""),[qt,P]=Q.useState(n?.volumeNumero?.toString()??""),[V,z]=Q.useState(n?.autor??""),[K,I]=Q.useState(n?.resumo??""),[$,lt]=Q.useState(n?.formato??"texto"),[tt,yt]=Q.useState(""),[ct,ft]=Q.useState(""),[T,H]=Q.useState([]),[G,ut]=Q.useState([]),[ht,x]=Q.useState(""),[D,B]=Q.useState(""),[L,F]=Q.useState(null),[st,pt]=Q.useState(null),[kt,Ht]=Q.useState(null),[Sa,$a]=Q.useState(!1),[Ol,Wa]=Q.useState(null),[Fe,ja]=Q.useState(null);Q.useEffect(()=>{m&&(yt(m.publicoAlvo??""),ft(m.colecaoId?.toString()??""),H(m.autores?.map(X=>X.id)??[]),ut(m.temas?.map(X=>X.id)??[]))},[m]);const fe=!!n,Su=lx.includes($);async function mn(X,At,be,xe={}){const Pe=new FormData;Pe.append(At,be);for(const[gn,Ou]of Object.entries(xe))Pe.append(gn,Ou);const se=await fetch(X,{method:"POST",body:Pe});if(!se.ok){const gn=await se.json().catch(()=>({}));throw new Error(gn.erro||"Falha no upload.")}return se.json()}async function vn(X){const At=new FormData;for(const xe of Array.from(X))At.append("paginas",xe);const be=await fetch("/api/admin/upload-paginas",{method:"POST",body:At});if(!be.ok){const xe=await be.json().catch(()=>({}));throw new Error(xe.erro||"Falha no upload das páginas.")}return(await be.json()).urls}function yn(){Y(""),rt(""),Tt(""),P(""),z(""),I(""),lt("texto"),yt(""),ft(""),H([]),ut([]),F(null),pt(null),Ht(null)}async function pn(){if(!fe&&$==="texto"&&!L){ja("Selecione o arquivo DOCX.");return}if(!fe&&Su&&!kt){ja("Selecione as páginas (imagens).");return}ja(null),$a(!0);try{let X,At,be;if(L){Wa("convertendo DOCX...");const se=await mn("/api/admin/upload-docx","arquivo",L,{titulo:M,autor:V});X=se.docxOriginalUrl,At=se.epubUrl}st&&(Wa("enviando capa..."),be=(await mn("/api/admin/upload-capa","imagem",st)).url);const xe={titulo:M,subtitulo:W||void 0,serie:vt||void 0,volumeNumero:qt?Number(qt):void 0,autor:V,resumo:K||void 0,destaque:Z,formato:$,publicoAlvo:tt||void 0,colecaoId:ct?Number(ct):void 0,autorIds:T,temaIds:G,...be&&{capaUrl:be},...At&&{epubUrl:At},...X&&{docxOriginalUrl:X}};let Pe;if(fe?(await o.mutateAsync({id:n.id,...xe}),Pe=n.id):Pe=(await c.mutateAsync(xe)).id,Su&&kt){Wa(`enviando ${kt.length} páginas...`);const se=await vn(kt);await h.mutateAsync({livroId:Pe,imagensUrl:se})}fe||yn(),i()}catch(X){ja(X instanceof Error?X.message:"Erro ao salvar.")}finally{$a(!1),Wa(null)}}function ju(X,At,be){be(X.includes(At)?X.filter(xe=>xe!==At):[...X,At])}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:fe?`Editando: ${n.titulo}`:"Novo livro"}),fe&&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:Lt,placeholder:"título",value:M,onChange:X=>Y(X.target.value)}),d.jsx("input",{className:"w-full rounded px-3 py-2",style:Lt,placeholder:"subtítulo (opcional)",value:W,onChange:X=>rt(X.target.value)}),d.jsxs("div",{className:"flex gap-3",children:[d.jsx("input",{className:"flex-1 rounded px-3 py-2",style:Lt,placeholder:"série (opcional)",value:vt,onChange:X=>Tt(X.target.value)}),d.jsx("input",{className:"w-28 rounded px-3 py-2",style:Lt,placeholder:"volume nº",value:qt,onChange:X=>P(X.target.value)})]}),d.jsx("input",{className:"w-full rounded px-3 py-2",style:Lt,placeholder:"autor (texto de exibição)",value:V,onChange:X=>z(X.target.value)}),d.jsx("textarea",{className:"w-full rounded px-3 py-2",style:Lt,placeholder:"resumo (opcional)",value:K,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:Lt,value:$,onChange:X=>lt(X.target.value),children:ax.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:Lt,value:tt,onChange:X=>yt(X.target.value),children:nx.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:Lt,value:ct,onChange:X=>ft(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:()=>ju(T,X.id,H),className:"text-xs px-3 py-1 rounded-full transition-colors",style:{border:"var(--border-medium)",background:T.includes(X.id)?"var(--clr-acento-alpha12)":"transparent",color:T.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:Lt,placeholder:"novo colaborador...",value:ht,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(!ht)return;const X=await S.mutateAsync({nome:ht});H(At=>[...At,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:y?.map(X=>d.jsx("button",{type:"button",onClick:()=>ju(G,X.id,ut),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:Lt,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 E.mutateAsync({nome:D});ut(At=>[...At,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:Z,onChange:X=>U(X.target.checked)}),"exibir no carrossel de destaque da Home"]}),$==="texto"||$==="apostila"?d.jsxs(d.Fragment,{children:[d.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["arquivo DOCX ",fe&&"(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) ",fe&&"(deixe em branco pra manter as atuais)"]}),d.jsx("input",{type:"file",accept:"image/*",multiple:!0,onChange:X=>Ht(X.target.files)})]}),d.jsxs("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:["capa ",fe&&"(deixe em branco pra manter a atual)"]}),d.jsx("input",{type:"file",accept:"image/*",onChange:X=>pt(X.target.files?.[0]??null)}),Ol&&d.jsx("p",{className:"text-sm",style:{color:"var(--clr-acento-400)"},children:Ol}),Fe&&d.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:Fe}),d.jsx("button",{className:"btn btn-primary",onClick:pn,disabled:Sa||!M||!V,children:Sa?"processando...":fe?"salvar alterações":"salvar como rascunho"})]})}function ix({aoEditar:n}){const i=at.useUtils(),{data:s}=at.biblioteca.admin.listar.useQuery(),[c,o]=Q.useState(""),h=at.biblioteca.admin.atualizar.useMutation({onSuccess:()=>i.biblioteca.admin.listar.invalidate()}),m=at.biblioteca.admin.excluir.useMutation({onSuccess:()=>i.biblioteca.admin.listar.invalidate()}),v=s?.filter(g=>g.titulo.toLowerCase().includes(c.toLowerCase())||g.autor.toLowerCase().includes(c.toLowerCase()));function y(g,S){window.confirm(`Excluir "${S}" 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:c,onChange:g=>o(g.target.value),placeholder:"filtrar por título ou autor...",className:"rounded px-3 py-1.5 text-sm",style:{...Lt,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||ex,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:()=>y(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 rx(){const{data:n}=at.config.obter.useQuery(),i=at.useUtils(),s=at.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:Lt,onBlur:c=>s.mutate({colunasDesktop:Number(c.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:Lt,onBlur:c=>s.mutate({colunasTablet:Number(c.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:Lt,onChange:c=>s.mutate({modoPadrao:c.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:Lt,onBlur:c=>s.mutate({qtdSlidesHero:Number(c.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 sx(){const{data:n}=at.menu.listar.useQuery(),i=at.useUtils(),s=at.menu.criar.useMutation({onSuccess:()=>i.menu.listar.invalidate()}),c=at.menu.atualizar.useMutation({onSuccess:()=>i.menu.listar.invalidate()}),o=at.menu.excluir.useMutation({onSuccess:()=>i.menu.listar.invalidate()}),[h,m]=Q.useState(""),[v,y]=Q.useState("");function g(){!h||!v||(s.mutate({rotulo:h,url:v,ordem:(n?.length??0)+1}),m(""),y(""))}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(S=>d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx("input",{defaultValue:S.rotulo,className:"flex-1 rounded px-3 py-1.5 text-sm",style:Lt,onBlur:E=>c.mutate({id:S.id,rotulo:E.target.value})}),d.jsx("input",{defaultValue:S.url,className:"flex-1 rounded px-3 py-1.5 text-sm",style:Lt,onBlur:E=>c.mutate({id:S.id,url:E.target.value})}),d.jsx("button",{className:"text-xs flex-shrink-0",style:{color:"#ff8080"},onClick:()=>o.mutate({id:S.id}),children:"remover"})]},S.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:S=>m(S.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:Lt}),d.jsx("input",{placeholder:"url (ex: /serie/Quatro Cavalos)",value:v,onChange:S=>y(S.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:Lt}),d.jsx("button",{className:"btn btn-ghost text-xs flex-shrink-0",style:{padding:"0.4rem 0.8rem"},onClick:g,children:"+ adicionar"})]})]})}function cx(){const{data:n}=at.colecoes.listar.useQuery(),i=at.useUtils(),s=at.colecoes.criar.useMutation({onSuccess:()=>i.colecoes.listar.invalidate()}),c=at.colecoes.atualizar.useMutation({onSuccess:()=>i.colecoes.listar.invalidate()}),o=at.colecoes.excluir.useMutation({onSuccess:()=>i.colecoes.listar.invalidate()}),[h,m]=Q.useState(""),[v,y]=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:Lt,onBlur:S=>c.mutate({id:g.id,nome:S.target.value})}),d.jsx("button",{className:"text-xs flex-shrink-0",style:{color:"#ff8080"},onClick:()=>o.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:Lt}),d.jsx("input",{placeholder:"descrição curta (opcional)",value:v,onChange:g=>y(g.target.value),className:"flex-1 rounded px-3 py-1.5 text-sm",style:Lt}),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(""),y(""))},children:"+ adicionar"})]})]})}function ox(){const{usuario:n,isLoading:i,podePublicar:s,logout:c}=hn(),[o,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:()=>c.mutate(),children:"sair"})]}),d.jsx(ux,{livroExistente:o,aoTerminar:()=>h(null)},o?.id??"novo"),d.jsx(ix,{aoEditar:h}),d.jsx(rx,{}),d.jsx(cx,{}),d.jsx(sx,{})]})}):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 fx="/media/images/capas/capa-placeholder.svg";function dx(){const{id:n}=tr(),i=Number(n),{data:s,isLoading:c}=at.biblioteca.getLivro.useQuery({id:i}),{data:o}=at.auth.me.useQuery(),{data:h}=at.biblioteca.favoritos.status.useQuery({livroId:i},{enabled:!!o&&!Number.isNaN(i)}),m=at.useUtils(),v=at.biblioteca.favoritos.alternar.useMutation({onSuccess:()=>m.biblioteca.favoritos.status.invalidate({livroId:i})});return c?d.jsx("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",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)",color:"var(--color-text-on-dark)"},children:[d.jsx(Ve,{}),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||fx,alt:s.titulo,style:{width:180,aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-lg)",boxShadow:"var(--shadow-borgonha-md)"}}),o&&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-acento-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-acento-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(ke,{})]}):d.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[d.jsx(Ve,{}),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(ke,{})]})}function hx(){const i=new URLSearchParams(fv()).get("q")||"",[s]=Q.useState(i),{data:c,isLoading:o}=at.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)",color:"var(--color-text-on-dark)"},children:[d.jsx(Ve,{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."}),o&&d.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"buscando..."}),s.length>0&&!o&&c&&c.length===0&&d.jsxs("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:['nada encontrado pra "',s,'".']}),c&&c.length>0&&d.jsx(dn,{livros:c,titulo:`resultados pra "${s}"`})]}),d.jsx(ke,{})]})}function mx(){const{nome:n}=tr(),i=decodeURIComponent(n),{data:s,isLoading:c}=at.biblioteca.getSerie.useQuery({nome:i});return d.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[d.jsx(Ve,{}),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}),c&&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`}):!c&&d.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"nenhum livro publicado nesta série ainda."})]}),d.jsx(ke,{})]})}const Um={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function vx(){const{usuario:n,isLoading:i,login:s}=hn(),[c,o]=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)",color:"var(--color-text-on-dark)"},children:[d.jsx(Ve,{}),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:Um,placeholder:"e-mail",value:c,onChange:v=>o(v.target.value)}),d.jsx("input",{className:"w-full rounded px-3 py-2",style:Um,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:c,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-acento-400)"},children:"criar conta"})]})]})}),d.jsx(ke,{})]})}const Uc={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function yx(){const{usuario:n,isLoading:i,registrar:s}=hn(),[c,o]=Q.useState(""),[h,m]=Q.useState(""),[v,y]=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)",color:"var(--color-text-on-dark)"},children:[d.jsx(Ve,{}),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:Uc,placeholder:"nome",value:c,onChange:g=>o(g.target.value)}),d.jsx("input",{className:"w-full rounded px-3 py-2",style:Uc,placeholder:"e-mail",value:h,onChange:g=>m(g.target.value)}),d.jsx("input",{className:"w-full rounded px-3 py-2",style:Uc,placeholder:"senha (mínimo 8 caracteres)",type:"password",value:v,onChange:g=>y(g.target.value)}),d.jsx("button",{className:"btn btn-primary w-full",onClick:()=>s.mutate({nome:c,email:h,senha:v}),disabled:s.isPending||!c||!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-acento-400)"},children:"entrar"})]})]})}),d.jsx(ke,{})]})}const Ki={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};function px(){const{usuario:n,isLoading:i,logout:s}=hn(),c=at.useUtils(),o=at.auth.atualizarPerfil.useMutation({onSuccess:()=>c.auth.me.invalidate()}),h=at.auth.trocarSenha.useMutation(),[m,v]=Q.useState(n?.nome??""),[y,g]=Q.useState(""),[S,E]=Q.useState(""),[M,Y]=Q.useState(null);if(i)return null;if(!n)return window.location.href="/entrar",null;function Z(){Y(null),h.mutate({senhaAtual:y,senhaNova:S},{onSuccess:()=>{Y("Senha atualizada."),g(""),E("")},onError:U=>Y(U.message)})}return d.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[d.jsx(Ve,{}),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:Ki,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:{...Ki,opacity:.6},value:n.email,disabled:!0})]}),d.jsx("button",{className:"btn btn-primary",onClick:()=>o.mutate({nome:m}),disabled:o.isPending||!m,children:o.isPending?"salvando...":"salvar nome"}),o.isSuccess&&d.jsx("p",{className:"text-sm",style:{color:"var(--clr-acento-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:Ki,placeholder:"senha atual",type:"password",value:y,onChange:U=>g(U.target.value)}),d.jsx("input",{className:"w-full rounded px-3 py-2",style:Ki,placeholder:"nova senha (mínimo 8 caracteres)",type:"password",value:S,onChange:U=>E(U.target.value)}),d.jsx("button",{className:"btn btn-primary",onClick:Z,disabled:h.isPending||!y||S.length<8,children:h.isPending?"salvando...":"trocar senha"}),M&&d.jsx("p",{className:"text-sm",style:{color:M==="Senha atualizada."?"var(--clr-acento-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(ke,{})]})}function gx(){const{usuario:n,isLoading:i}=hn(),{data:s}=at.biblioteca.historico.meuHistorico.useQuery(void 0,{enabled:!!n}),{data:c}=at.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)",color:"var(--color-text-on-dark)"},children:[d.jsx(Ve,{}),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(o=>d.jsxs("a",{href:`/leitor/${o.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:o.capaUrl||"/media/images/capas/capa-placeholder.svg",alt:o.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:o.titulo})]},o.livroId))})]}),c&&c.length>0?d.jsx(dn,{livros:c.map(o=>({id:o.livroId,titulo:o.titulo,autor:o.autor,capaUrl:o.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(ke,{})]}):(window.location.href="/entrar",null)}const bx={texto:"Livros",ilustrado:"Livros ilustrados",manga:"Mangás",hq:"HQs e graphic novels",revista:"Revistas",apostila:"Apostilas",audiolivro:"Áudiolivros"},xx={primeiros_leitores:"Primeiros leitores",infantil:"Infantil",pre_adolescente:"Pré-adolescentes",adolescente:"Adolescentes",jovem:"Jovens",adulto:"Adultos"};function Sx(){const n=new URLSearchParams(fv()),i=n.get("formato")??void 0,s=n.get("publico")??void 0,{data:c,isLoading:o}=at.biblioteca.filtrar.useQuery({formato:i,publicoAlvo:s,limite:40}),h=i?bx[i]??i:s?xx[s]??s:"Explorar";return d.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[d.jsx(Ve,{}),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}),o&&d.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"carregando..."}),c&&c.length>0?d.jsx(dn,{livros:c,titulo:`${c.length} título${c.length>1?"s":""}`}):!o&&d.jsx("p",{style:{fontSize:"0.875rem",color:"var(--color-text-on-dark-muted)"},children:"nada por aqui ainda."})]}),d.jsx(ke,{})]})}function jx(){const{id:n}=tr(),{data:i,isLoading:s}=at.colecoes.obter.useQuery({id:Number(n)});return d.jsxs("main",{className:"min-h-dvh flex flex-col",style:{background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:[d.jsx(Ve,{}),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(ke,{})]})}const Ox=Q.lazy(()=>h0(()=>import("./Leitor-C1IF9oA9.js"),[]).then(n=>({default:n.Leitor})));function Ex(){const[n]=Q.useState(()=>new M0);return d.jsx(at.Provider,{client:Bb,queryClient:n,children:d.jsx(w0,{client:n,children:d.jsx(Q.Suspense,{fallback:null,children:d.jsxs(yg,{children:[d.jsx(Ye,{path:"/admin",component:ox}),d.jsx(Ye,{path:"/leitor/:id",component:Ox}),d.jsx(Ye,{path:"/livro/:id",component:dx}),d.jsx(Ye,{path:"/serie/:nome",component:mx}),d.jsx(Ye,{path:"/buscar",component:hx}),d.jsx(Ye,{path:"/entrar",component:vx}),d.jsx(Ye,{path:"/cadastro",component:yx}),d.jsx(Ye,{path:"/perfil",component:px}),d.jsx(Ye,{path:"/minha-biblioteca",component:gx}),d.jsx(Ye,{path:"/explorar",component:Sx}),d.jsx(Ye,{path:"/colecao/:id",component:jx}),d.jsx(Ye,{path:"/",component:tx})]})})})})}o0.createRoot(document.getElementById("root")).render(d.jsx(Q.StrictMode,{children:d.jsx(Ex,{})}));export{fv as a,_x as c,Ip as g,d as j,Q as r,at as t,tr as u};
