function qp(a,i){for(var c=0;c<i.length;c++){const s=i[c];if(typeof s!="string"&&!Array.isArray(s)){for(const o in s)if(o!=="default"&&!(o in a)){const d=Object.getOwnPropertyDescriptor(s,o);d&&Object.defineProperty(a,o,d.get?d:{enumerable:!0,get:()=>s[o]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const d of o)if(d.type==="childList")for(const y of d.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&s(y)}).observe(document,{childList:!0,subtree:!0});function c(o){const d={};return o.integrity&&(d.integrity=o.integrity),o.referrerPolicy&&(d.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?d.credentials="include":o.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function s(o){if(o.ep)return;o.ep=!0;const d=c(o);fetch(o.href,d)}})();function Qp(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Pc={exports:{}},La={};/**
 * @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 Uh;function Np(){if(Uh)return La;Uh=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(s,o,d){var y=null;if(d!==void 0&&(y=""+d),o.key!==void 0&&(y=""+o.key),"key"in o){d={};for(var v in o)v!=="key"&&(d[v]=o[v])}else d=o;return o=d.ref,{$$typeof:a,type:s,key:y,ref:o!==void 0?o:null,props:d}}return La.Fragment=i,La.jsx=c,La.jsxs=c,La}var qh;function Hp(){return qh||(qh=1,Pc.exports=Np()),Pc.exports}var V=Hp(),Wc={exports:{}},ct={};/**
 * @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 Qh;function wp(){if(Qh)return ct;Qh=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),y=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),q=Symbol.iterator;function B(b){return b===null||typeof b!="object"?null:(b=q&&b[q]||b["@@iterator"],typeof b=="function"?b:null)}var J={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Q=Object.assign,$={};function at(b,D,H){this.props=b,this.context=D,this.refs=$,this.updater=H||J}at.prototype.isReactComponent={},at.prototype.setState=function(b,D){if(typeof b!="object"&&typeof b!="function"&&b!=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,b,D,"setState")},at.prototype.forceUpdate=function(b){this.updater.enqueueForceUpdate(this,b,"forceUpdate")};function dt(){}dt.prototype=at.prototype;function Tt(b,D,H){this.props=b,this.context=D,this.refs=$,this.updater=H||J}var qt=Tt.prototype=new dt;qt.constructor=Tt,Q(qt,at.prototype),qt.isPureReactComponent=!0;var k=Array.isArray;function L(){}var j={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function Y(b,D,H){var w=H.ref;return{$$typeof:a,type:b,key:D,ref:w!==void 0?w:null,props:H}}function et(b,D){return Y(b.type,D,b.props)}function I(b){return typeof b=="object"&&b!==null&&b.$$typeof===a}function tt(b){var D={"=":"=0",":":"=2"};return"$"+b.replace(/[=:]/g,function(H){return D[H]})}var ht=/\/+/g;function it(b,D){return typeof b=="object"&&b!==null&&b.key!=null?tt(""+b.key):D.toString(36)}function st(b){switch(b.status){case"fulfilled":return b.value;case"rejected":throw b.reason;default:switch(typeof b.status=="string"?b.then(L,L):(b.status="pending",b.then(function(D){b.status==="pending"&&(b.status="fulfilled",b.value=D)},function(D){b.status==="pending"&&(b.status="rejected",b.reason=D)})),b.status){case"fulfilled":return b.value;case"rejected":throw b.reason}}throw b}function T(b,D,H,w,P){var rt=typeof b;(rt==="undefined"||rt==="boolean")&&(b=null);var St=!1;if(b===null)St=!0;else switch(rt){case"bigint":case"string":case"number":St=!0;break;case"object":switch(b.$$typeof){case a:case i:St=!0;break;case M:return St=b._init,T(St(b._payload),D,H,w,P)}}if(St)return P=P(b),St=w===""?"."+it(b,0):w,k(P)?(H="",St!=null&&(H=St.replace(ht,"$&/")+"/"),T(P,D,H,"",function(kl){return kl})):P!=null&&(I(P)&&(P=et(P,H+(P.key==null||b&&b.key===P.key?"":(""+P.key).replace(ht,"$&/")+"/")+St)),D.push(P)),1;St=0;var le=w===""?".":w+":";if(k(b))for(var Bt=0;Bt<b.length;Bt++)w=b[Bt],rt=le+it(w,Bt),St+=T(w,D,H,rt,P);else if(Bt=B(b),typeof Bt=="function")for(b=Bt.call(b),Bt=0;!(w=b.next()).done;)w=w.value,rt=le+it(w,Bt++),St+=T(w,D,H,rt,P);else if(rt==="object"){if(typeof b.then=="function")return T(st(b),D,H,w,P);throw D=String(b),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(b).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.")}return St}function N(b,D,H){if(b==null)return b;var w=[],P=0;return T(b,w,"","",function(rt){return D.call(H,rt,P++)}),w}function K(b){if(b._status===-1){var D=b._result;D=D(),D.then(function(H){(b._status===0||b._status===-1)&&(b._status=1,b._result=H)},function(H){(b._status===0||b._status===-1)&&(b._status=2,b._result=H)}),b._status===-1&&(b._status=0,b._result=D)}if(b._status===1)return b._result.default;throw b._result}var ut=typeof reportError=="function"?reportError:function(b){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var D=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof b=="object"&&b!==null&&typeof b.message=="string"?String(b.message):String(b),error:b});if(!window.dispatchEvent(D))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",b);return}console.error(b)},yt={map:N,forEach:function(b,D,H){N(b,function(){D.apply(this,arguments)},H)},count:function(b){var D=0;return N(b,function(){D++}),D},toArray:function(b){return N(b,function(D){return D})||[]},only:function(b){if(!I(b))throw Error("React.Children.only expected to receive a single React element child.");return b}};return ct.Activity=_,ct.Children=yt,ct.Component=at,ct.Fragment=c,ct.Profiler=o,ct.PureComponent=Tt,ct.StrictMode=s,ct.Suspense=m,ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,ct.__COMPILER_RUNTIME={__proto__:null,c:function(b){return j.H.useMemoCache(b)}},ct.cache=function(b){return function(){return b.apply(null,arguments)}},ct.cacheSignal=function(){return null},ct.cloneElement=function(b,D,H){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var w=Q({},b.props),P=b.key;if(D!=null)for(rt in D.key!==void 0&&(P=""+D.key),D)!X.call(D,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&D.ref===void 0||(w[rt]=D[rt]);var rt=arguments.length-2;if(rt===1)w.children=H;else if(1<rt){for(var St=Array(rt),le=0;le<rt;le++)St[le]=arguments[le+2];w.children=St}return Y(b.type,P,w)},ct.createContext=function(b){return b={$$typeof:y,_currentValue:b,_currentValue2:b,_threadCount:0,Provider:null,Consumer:null},b.Provider=b,b.Consumer={$$typeof:d,_context:b},b},ct.createElement=function(b,D,H){var w,P={},rt=null;if(D!=null)for(w in D.key!==void 0&&(rt=""+D.key),D)X.call(D,w)&&w!=="key"&&w!=="__self"&&w!=="__source"&&(P[w]=D[w]);var St=arguments.length-2;if(St===1)P.children=H;else if(1<St){for(var le=Array(St),Bt=0;Bt<St;Bt++)le[Bt]=arguments[Bt+2];P.children=le}if(b&&b.defaultProps)for(w in St=b.defaultProps,St)P[w]===void 0&&(P[w]=St[w]);return Y(b,rt,P)},ct.createRef=function(){return{current:null}},ct.forwardRef=function(b){return{$$typeof:v,render:b}},ct.isValidElement=I,ct.lazy=function(b){return{$$typeof:M,_payload:{_status:-1,_result:b},_init:K}},ct.memo=function(b,D){return{$$typeof:p,type:b,compare:D===void 0?null:D}},ct.startTransition=function(b){var D=j.T,H={};j.T=H;try{var w=b(),P=j.S;P!==null&&P(H,w),typeof w=="object"&&w!==null&&typeof w.then=="function"&&w.then(L,ut)}catch(rt){ut(rt)}finally{D!==null&&H.types!==null&&(D.types=H.types),j.T=D}},ct.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},ct.use=function(b){return j.H.use(b)},ct.useActionState=function(b,D,H){return j.H.useActionState(b,D,H)},ct.useCallback=function(b,D){return j.H.useCallback(b,D)},ct.useContext=function(b){return j.H.useContext(b)},ct.useDebugValue=function(){},ct.useDeferredValue=function(b,D){return j.H.useDeferredValue(b,D)},ct.useEffect=function(b,D){return j.H.useEffect(b,D)},ct.useEffectEvent=function(b){return j.H.useEffectEvent(b)},ct.useId=function(){return j.H.useId()},ct.useImperativeHandle=function(b,D,H){return j.H.useImperativeHandle(b,D,H)},ct.useInsertionEffect=function(b,D){return j.H.useInsertionEffect(b,D)},ct.useLayoutEffect=function(b,D){return j.H.useLayoutEffect(b,D)},ct.useMemo=function(b,D){return j.H.useMemo(b,D)},ct.useOptimistic=function(b,D){return j.H.useOptimistic(b,D)},ct.useReducer=function(b,D,H){return j.H.useReducer(b,D,H)},ct.useRef=function(b){return j.H.useRef(b)},ct.useState=function(b){return j.H.useState(b)},ct.useSyncExternalStore=function(b,D,H){return j.H.useSyncExternalStore(b,D,H)},ct.useTransition=function(){return j.H.useTransition()},ct.version="19.2.1",ct}var Nh;function Ai(){return Nh||(Nh=1,Wc.exports=wp()),Wc.exports}var G=Ai();const Bp=Qp(G),hy=qp({__proto__:null,default:Bp},[G]);var Ic={exports:{}},Xa={},ts={exports:{}},es={};/**
 * @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 Hh;function Yp(){return Hh||(Hh=1,(function(a){function i(T,N){var K=T.length;T.push(N);t:for(;0<K;){var ut=K-1>>>1,yt=T[ut];if(0<o(yt,N))T[ut]=N,T[K]=yt,K=ut;else break t}}function c(T){return T.length===0?null:T[0]}function s(T){if(T.length===0)return null;var N=T[0],K=T.pop();if(K!==N){T[0]=K;t:for(var ut=0,yt=T.length,b=yt>>>1;ut<b;){var D=2*(ut+1)-1,H=T[D],w=D+1,P=T[w];if(0>o(H,K))w<yt&&0>o(P,H)?(T[ut]=P,T[w]=K,ut=w):(T[ut]=H,T[D]=K,ut=D);else if(w<yt&&0>o(P,K))T[ut]=P,T[w]=K,ut=w;else break t}}return N}function o(T,N){var K=T.sortIndex-N.sortIndex;return K!==0?K:T.id-N.id}if(a.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var d=performance;a.unstable_now=function(){return d.now()}}else{var y=Date,v=y.now();a.unstable_now=function(){return y.now()-v}}var m=[],p=[],M=1,_=null,q=3,B=!1,J=!1,Q=!1,$=!1,at=typeof setTimeout=="function"?setTimeout:null,dt=typeof clearTimeout=="function"?clearTimeout:null,Tt=typeof setImmediate<"u"?setImmediate:null;function qt(T){for(var N=c(p);N!==null;){if(N.callback===null)s(p);else if(N.startTime<=T)s(p),N.sortIndex=N.expirationTime,i(m,N);else break;N=c(p)}}function k(T){if(Q=!1,qt(T),!J)if(c(m)!==null)J=!0,L||(L=!0,tt());else{var N=c(p);N!==null&&st(k,N.startTime-T)}}var L=!1,j=-1,X=5,Y=-1;function et(){return $?!0:!(a.unstable_now()-Y<X)}function I(){if($=!1,L){var T=a.unstable_now();Y=T;var N=!0;try{t:{J=!1,Q&&(Q=!1,dt(j),j=-1),B=!0;var K=q;try{e:{for(qt(T),_=c(m);_!==null&&!(_.expirationTime>T&&et());){var ut=_.callback;if(typeof ut=="function"){_.callback=null,q=_.priorityLevel;var yt=ut(_.expirationTime<=T);if(T=a.unstable_now(),typeof yt=="function"){_.callback=yt,qt(T),N=!0;break e}_===c(m)&&s(m),qt(T)}else s(m);_=c(m)}if(_!==null)N=!0;else{var b=c(p);b!==null&&st(k,b.startTime-T),N=!1}}break t}finally{_=null,q=K,B=!1}N=void 0}}finally{N?tt():L=!1}}}var tt;if(typeof Tt=="function")tt=function(){Tt(I)};else if(typeof MessageChannel<"u"){var ht=new MessageChannel,it=ht.port2;ht.port1.onmessage=I,tt=function(){it.postMessage(null)}}else tt=function(){at(I,0)};function st(T,N){j=at(function(){T(a.unstable_now())},N)}a.unstable_IdlePriority=5,a.unstable_ImmediatePriority=1,a.unstable_LowPriority=4,a.unstable_NormalPriority=3,a.unstable_Profiling=null,a.unstable_UserBlockingPriority=2,a.unstable_cancelCallback=function(T){T.callback=null},a.unstable_forceFrameRate=function(T){0>T||125<T?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<T?Math.floor(1e3/T):5},a.unstable_getCurrentPriorityLevel=function(){return q},a.unstable_next=function(T){switch(q){case 1:case 2:case 3:var N=3;break;default:N=q}var K=q;q=N;try{return T()}finally{q=K}},a.unstable_requestPaint=function(){$=!0},a.unstable_runWithPriority=function(T,N){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var K=q;q=T;try{return N()}finally{q=K}},a.unstable_scheduleCallback=function(T,N,K){var ut=a.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?ut+K:ut):K=ut,T){case 1:var yt=-1;break;case 2:yt=250;break;case 5:yt=1073741823;break;case 4:yt=1e4;break;default:yt=5e3}return yt=K+yt,T={id:M++,callback:N,priorityLevel:T,startTime:K,expirationTime:yt,sortIndex:-1},K>ut?(T.sortIndex=K,i(p,T),c(m)===null&&T===c(p)&&(Q?(dt(j),j=-1):Q=!0,st(k,K-ut))):(T.sortIndex=yt,i(m,T),J||B||(J=!0,L||(L=!0,tt()))),T},a.unstable_shouldYield=et,a.unstable_wrapCallback=function(T){var N=q;return function(){var K=q;q=N;try{return T.apply(this,arguments)}finally{q=K}}}})(es)),es}var wh;function Gp(){return wh||(wh=1,ts.exports=Yp()),ts.exports}var ns={exports:{}},ee={};/**
 * @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 Bh;function Lp(){if(Bh)return ee;Bh=1;var a=Ai();function i(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var M=2;M<arguments.length;M++)p+="&args[]="+encodeURIComponent(arguments[M])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var s={d:{f:c,r:function(){throw Error(i(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},o=Symbol.for("react.portal");function d(m,p,M){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:_==null?null:""+_,children:m,containerInfo:p,implementation:M}}var y=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function v(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ee.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ee.createPortal=function(m,p){var M=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(i(299));return d(m,p,null,M)},ee.flushSync=function(m){var p=y.T,M=s.p;try{if(y.T=null,s.p=2,m)return m()}finally{y.T=p,s.p=M,s.d.f()}},ee.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(m,p))},ee.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},ee.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var M=p.as,_=v(M,p.crossOrigin),q=typeof p.integrity=="string"?p.integrity:void 0,B=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;M==="style"?s.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:_,integrity:q,fetchPriority:B}):M==="script"&&s.d.X(m,{crossOrigin:_,integrity:q,fetchPriority:B,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ee.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var M=v(p.as,p.crossOrigin);s.d.M(m,{crossOrigin:M,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(m)},ee.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var M=p.as,_=v(M,p.crossOrigin);s.d.L(m,M,{crossOrigin:_,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},ee.preloadModule=function(m,p){if(typeof m=="string")if(p){var M=v(p.as,p.crossOrigin);s.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:M,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(m)},ee.requestFormReset=function(m){s.d.r(m)},ee.unstable_batchedUpdates=function(m,p){return m(p)},ee.useFormState=function(m,p,M){return y.H.useFormState(m,p,M)},ee.useFormStatus=function(){return y.H.useHostTransitionStatus()},ee.version="19.2.1",ee}var Yh;function Xp(){if(Yh)return ns.exports;Yh=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),ns.exports=Lp(),ns.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 Gh;function Kp(){if(Gh)return Xa;Gh=1;var a=Gp(),i=Ai(),c=Xp();function s(t){var e="https://react.dev/errors/"+t;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n])}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 d(t){var e=t,n=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(n=e.return),t=e.return;while(t)}return e.tag===3?n:null}function y(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 m(t){if(d(t)!==t)throw Error(s(188))}function p(t){var e=t.alternate;if(!e){if(e=d(t),e===null)throw Error(s(188));return e!==t?null:t}for(var n=t,l=e;;){var u=n.return;if(u===null)break;var r=u.alternate;if(r===null){if(l=u.return,l!==null){n=l;continue}break}if(u.child===r.child){for(r=u.child;r;){if(r===n)return m(u),t;if(r===l)return m(u),e;r=r.sibling}throw Error(s(188))}if(n.return!==l.return)n=u,l=r;else{for(var f=!1,h=u.child;h;){if(h===n){f=!0,n=u,l=r;break}if(h===l){f=!0,l=u,n=r;break}h=h.sibling}if(!f){for(h=r.child;h;){if(h===n){f=!0,n=r,l=u;break}if(h===l){f=!0,l=r,n=u;break}h=h.sibling}if(!f)throw Error(s(189))}}if(n.alternate!==l)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?t:e}function M(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=M(t),e!==null)return e;t=t.sibling}return null}var _=Object.assign,q=Symbol.for("react.element"),B=Symbol.for("react.transitional.element"),J=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),at=Symbol.for("react.profiler"),dt=Symbol.for("react.consumer"),Tt=Symbol.for("react.context"),qt=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),L=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),et=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function tt(t){return t===null||typeof t!="object"?null:(t=I&&t[I]||t["@@iterator"],typeof t=="function"?t:null)}var ht=Symbol.for("react.client.reference");function it(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ht?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Q:return"Fragment";case at:return"Profiler";case $:return"StrictMode";case k:return"Suspense";case L:return"SuspenseList";case Y:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case J:return"Portal";case Tt:return t.displayName||"Context";case dt: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 j:return e=t.displayName||null,e!==null?e:it(t.type)||"Memo";case X:e=t._payload,t=t._init;try{return it(t(e))}catch{}}return null}var st=Array.isArray,T=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,K={pending:!1,data:null,method:null,action:null},ut=[],yt=-1;function b(t){return{current:t}}function D(t){0>yt||(t.current=ut[yt],ut[yt]=null,yt--)}function H(t,e){yt++,ut[yt]=t.current,t.current=e}var w=b(null),P=b(null),rt=b(null),St=b(null);function le(t,e){switch(H(rt,e),H(P,t),H(w,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?nh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=nh(e),t=lh(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}D(w),H(w,t)}function Bt(){D(w),D(P),D(rt)}function kl(t){t.memoizedState!==null&&H(St,t);var e=w.current,n=lh(e,t.type);e!==n&&(H(P,t),H(w,n))}function Pa(t){P.current===t&&(D(w),D(P)),St.current===t&&(D(St),wa._currentValue=K)}var Ui,Cs;function Bn(t){if(Ui===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ui=e&&e[1]||"",Cs=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ui+t+Cs}var qi=!1;function Qi(t,e){if(!t||qi)return"";qi=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(e){var U=function(){throw Error()};if(Object.defineProperty(U.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(U,[])}catch(z){var A=z}Reflect.construct(t,[],U)}else{try{U.call()}catch(z){A=z}t.call(U.prototype)}}else{try{throw Error()}catch(z){A=z}(U=t())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(z){if(z&&A&&typeof z.stack=="string")return[z.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],h=r[1];if(f&&h){var g=f.split(`
`),x=h.split(`
`);for(u=l=0;l<g.length&&!g[l].includes("DetermineComponentFrameRoot");)l++;for(;u<x.length&&!x[u].includes("DetermineComponentFrameRoot");)u++;if(l===g.length||u===x.length)for(l=g.length-1,u=x.length-1;1<=l&&0<=u&&g[l]!==x[u];)u--;for(;1<=l&&0<=u;l--,u--)if(g[l]!==x[u]){if(l!==1||u!==1)do if(l--,u--,0>u||g[l]!==x[u]){var C=`
`+g[l].replace(" at new "," at ");return t.displayName&&C.includes("<anonymous>")&&(C=C.replace("<anonymous>",t.displayName)),C}while(1<=l&&0<=u);break}}}finally{qi=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Bn(n):""}function ov(t,e){switch(t.tag){case 26:case 27:case 5:return Bn(t.type);case 16:return Bn("Lazy");case 13:return t.child!==e&&e!==null?Bn("Suspense Fallback"):Bn("Suspense");case 19:return Bn("SuspenseList");case 0:case 15:return Qi(t.type,!1);case 11:return Qi(t.type.render,!1);case 1:return Qi(t.type,!0);case 31:return Bn("Activity");default:return""}}function Ds(t){try{var e="",n=null;do e+=ov(t,n),n=t,t=t.return;while(t);return e}catch(l){return`
Error generating stack: `+l.message+`
`+l.stack}}var Ni=Object.prototype.hasOwnProperty,Hi=a.unstable_scheduleCallback,wi=a.unstable_cancelCallback,dv=a.unstable_shouldYield,hv=a.unstable_requestPaint,he=a.unstable_now,yv=a.unstable_getCurrentPriorityLevel,Rs=a.unstable_ImmediatePriority,Us=a.unstable_UserBlockingPriority,Wa=a.unstable_NormalPriority,vv=a.unstable_LowPriority,qs=a.unstable_IdlePriority,mv=a.log,pv=a.unstable_setDisableYieldValue,$l=null,ye=null;function on(t){if(typeof mv=="function"&&pv(t),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode($l,t)}catch{}}var ve=Math.clz32?Math.clz32:Sv,gv=Math.log,bv=Math.LN2;function Sv(t){return t>>>=0,t===0?32:31-(gv(t)/bv|0)|0}var Ia=256,tu=262144,eu=4194304;function Yn(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 nu(t,e,n){var l=t.pendingLanes;if(l===0)return 0;var u=0,r=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var h=l&134217727;return h!==0?(l=h&~r,l!==0?u=Yn(l):(f&=h,f!==0?u=Yn(f):n||(n=h&~t,n!==0&&(u=Yn(n))))):(h=l&~r,h!==0?u=Yn(h):f!==0?u=Yn(f):n||(n=l&~t,n!==0&&(u=Yn(n)))),u===0?0:e!==0&&e!==u&&(e&r)===0&&(r=u&-u,n=e&-e,r>=n||r===32&&(n&4194048)!==0)?e:u}function Pl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Ov(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 Qs(){var t=eu;return eu<<=1,(eu&62914560)===0&&(eu=4194304),t}function Bi(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Wl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function _v(t,e,n,l,u,r){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var h=t.entanglements,g=t.expirationTimes,x=t.hiddenUpdates;for(n=f&~n;0<n;){var C=31-ve(n),U=1<<C;h[C]=0,g[C]=-1;var A=x[C];if(A!==null)for(x[C]=null,C=0;C<A.length;C++){var z=A[C];z!==null&&(z.lane&=-536870913)}n&=~U}l!==0&&Ns(t,l,0),r!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=r&~(f&~e))}function Ns(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-ve(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function Hs(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-ve(n),u=1<<l;u&e|t[l]&e&&(t[l]|=e),n&=~u}}function ws(t,e){var n=e&-e;return n=(n&42)!==0?1:Yi(n),(n&(t.suspendedLanes|e))!==0?0:n}function Yi(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 Gi(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Bs(){var t=N.p;return t!==0?t:(t=window.event,t===void 0?32:Ah(t.type))}function Ys(t,e){var n=N.p;try{return N.p=t,e()}finally{N.p=n}}var dn=Math.random().toString(36).slice(2),$t="__reactFiber$"+dn,ie="__reactProps$"+dn,fl="__reactContainer$"+dn,Li="__reactEvents$"+dn,Ev="__reactListeners$"+dn,xv="__reactHandles$"+dn,Gs="__reactResources$"+dn,Il="__reactMarker$"+dn;function Xi(t){delete t[$t],delete t[ie],delete t[Li],delete t[Ev],delete t[xv]}function ol(t){var e=t[$t];if(e)return e;for(var n=t.parentNode;n;){if(e=n[fl]||n[$t]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=fh(t);t!==null;){if(n=t[$t])return n;t=fh(t)}return e}t=n,n=t.parentNode}return null}function dl(t){if(t=t[$t]||t[fl]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function ta(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(s(33))}function hl(t){var e=t[Gs];return e||(e=t[Gs]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ft(t){t[Il]=!0}var Ls=new Set,Xs={};function Gn(t,e){yl(t,e),yl(t+"Capture",e)}function yl(t,e){for(Xs[t]=e,t=0;t<e.length;t++)Ls.add(e[t])}var Tv=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]*$"),Ks={},Zs={};function Av(t){return Ni.call(Zs,t)?!0:Ni.call(Ks,t)?!1:Tv.test(t)?Zs[t]=!0:(Ks[t]=!0,!1)}function lu(t,e,n){if(Av(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){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,""+n)}}function au(t,e,n){if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(e);return}t.setAttribute(e,""+n)}}function Ve(t,e,n,l){if(l===null)t.removeAttribute(n);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+l)}}function Te(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Vs(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function zv(t,e,n){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){n=""+f,r.call(this,f)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ki(t){if(!t._valueTracker){var e=Vs(t)?"checked":"value";t._valueTracker=zv(t,e,""+t[e])}}function Js(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=Vs(t)?t.checked?"true":"false":t.value),t=l,t!==n?(e.setValue(t),!0):!1}function uu(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 Mv=/[\n"\\]/g;function Ae(t){return t.replace(Mv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Zi(t,e,n,l,u,r,f,h){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=""+Te(e)):t.value!==""+Te(e)&&(t.value=""+Te(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Vi(t,f,Te(e)):n!=null?Vi(t,f,Te(n)):l!=null&&t.removeAttribute("value"),u==null&&r!=null&&(t.defaultChecked=!!r),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"?t.name=""+Te(h):t.removeAttribute("name")}function Fs(t,e,n,l,u,r,f,h){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(t.type=r),e!=null||n!=null){if(!(r!=="submit"&&r!=="reset"||e!=null)){Ki(t);return}n=n!=null?""+Te(n):"",e=e!=null?""+Te(e):n,h||e===t.value||(t.value=e),t.defaultValue=e}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=h?t.checked:!!l,t.defaultChecked=!!l,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Ki(t)}function Vi(t,e,n){e==="number"&&uu(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function vl(t,e,n,l){if(t=t.options,e){e={};for(var u=0;u<n.length;u++)e["$"+n[u]]=!0;for(n=0;n<t.length;n++)u=e.hasOwnProperty("$"+t[n].value),t[n].selected!==u&&(t[n].selected=u),u&&l&&(t[n].defaultSelected=!0)}else{for(n=""+Te(n),e=null,u=0;u<t.length;u++){if(t[u].value===n){t[u].selected=!0,l&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function ks(t,e,n){if(e!=null&&(e=""+Te(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Te(n):""}function $s(t,e,n,l){if(e==null){if(l!=null){if(n!=null)throw Error(s(92));if(st(l)){if(1<l.length)throw Error(s(93));l=l[0]}n=l}n==null&&(n=""),e=n}n=Te(e),t.defaultValue=n,l=t.textContent,l===n&&l!==""&&l!==null&&(t.value=l),Ki(t)}function ml(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var jv=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 Ps(t,e,n){var l=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?l?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":l?t.setProperty(e,n):typeof n!="number"||n===0||jv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Ws(t,e,n){if(e!=null&&typeof e!="object")throw Error(s(62));if(t=t.style,n!=null){for(var l in n)!n.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)&&n[u]!==l&&Ps(t,u,l)}else for(var r in e)e.hasOwnProperty(r)&&Ps(t,r,e[r])}function Ji(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 Cv=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"]]),Dv=/^[\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 iu(t){return Dv.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Je(){}var Fi=null;function ki(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var pl=null,gl=null;function Is(t){var e=dl(t);if(e&&(t=e.stateNode)){var n=t[ie]||null;t:switch(t=e.stateNode,e.type){case"input":if(Zi(t,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),e=n.name,n.type==="radio"&&e!=null){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Ae(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var l=n[e];if(l!==t&&l.form===t.form){var u=l[ie]||null;if(!u)throw Error(s(90));Zi(l,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<n.length;e++)l=n[e],l.form===t.form&&Js(l)}break t;case"textarea":ks(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&vl(t,!!n.multiple,e,!1)}}}var $i=!1;function tf(t,e,n){if($i)return t(e,n);$i=!0;try{var l=t(e);return l}finally{if($i=!1,(pl!==null||gl!==null)&&(Ju(),pl&&(e=pl,t=gl,gl=pl=null,Is(e),t)))for(e=0;e<t.length;e++)Is(t[e])}}function ea(t,e){var n=t.stateNode;if(n===null)return null;var l=n[ie]||null;if(l===null)return null;n=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(n&&typeof n!="function")throw Error(s(231,e,typeof n));return n}var Fe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pi=!1;if(Fe)try{var na={};Object.defineProperty(na,"passive",{get:function(){Pi=!0}}),window.addEventListener("test",na,na),window.removeEventListener("test",na,na)}catch{Pi=!1}var hn=null,Wi=null,ru=null;function ef(){if(ru)return ru;var t,e=Wi,n=e.length,l,u="value"in hn?hn.value:hn.textContent,r=u.length;for(t=0;t<n&&e[t]===u[t];t++);var f=n-t;for(l=1;l<=f&&e[n-l]===u[r-l];l++);return ru=u.slice(t,1<l?1-l:void 0)}function cu(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 su(){return!0}function nf(){return!1}function re(t){function e(n,l,u,r,f){this._reactName=n,this._targetInst=u,this.type=l,this.nativeEvent=r,this.target=f,this.currentTarget=null;for(var h in t)t.hasOwnProperty(h)&&(n=t[h],this[h]=n?n(r):r[h]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?su:nf,this.isPropagationStopped=nf,this}return _(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=su)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=su)},persist:function(){},isPersistent:su}),e}var Ln={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fu=re(Ln),la=_({},Ln,{view:0,detail:0}),Rv=re(la),Ii,tr,aa,ou=_({},la,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:nr,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!==aa&&(aa&&t.type==="mousemove"?(Ii=t.screenX-aa.screenX,tr=t.screenY-aa.screenY):tr=Ii=0,aa=t),Ii)},movementY:function(t){return"movementY"in t?t.movementY:tr}}),lf=re(ou),Uv=_({},ou,{dataTransfer:0}),qv=re(Uv),Qv=_({},la,{relatedTarget:0}),er=re(Qv),Nv=_({},Ln,{animationName:0,elapsedTime:0,pseudoElement:0}),Hv=re(Nv),wv=_({},Ln,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Bv=re(wv),Yv=_({},Ln,{data:0}),af=re(Yv),Gv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Lv={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"},Xv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Kv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Xv[t])?!!e[t]:!1}function nr(){return Kv}var Zv=_({},la,{key:function(t){if(t.key){var e=Gv[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=cu(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Lv[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:nr,charCode:function(t){return t.type==="keypress"?cu(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?cu(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Vv=re(Zv),Jv=_({},ou,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),uf=re(Jv),Fv=_({},la,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nr}),kv=re(Fv),$v=_({},Ln,{propertyName:0,elapsedTime:0,pseudoElement:0}),Pv=re($v),Wv=_({},ou,{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}),Iv=re(Wv),tm=_({},Ln,{newState:0,oldState:0}),em=re(tm),nm=[9,13,27,32],lr=Fe&&"CompositionEvent"in window,ua=null;Fe&&"documentMode"in document&&(ua=document.documentMode);var lm=Fe&&"TextEvent"in window&&!ua,rf=Fe&&(!lr||ua&&8<ua&&11>=ua),cf=" ",sf=!1;function ff(t,e){switch(t){case"keyup":return nm.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function of(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var bl=!1;function am(t,e){switch(t){case"compositionend":return of(e);case"keypress":return e.which!==32?null:(sf=!0,cf);case"textInput":return t=e.data,t===cf&&sf?null:t;default:return null}}function um(t,e){if(bl)return t==="compositionend"||!lr&&ff(t,e)?(t=ef(),ru=Wi=hn=null,bl=!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 rf&&e.locale!=="ko"?null:e.data;default:return null}}var im={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 df(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!im[t.type]:e==="textarea"}function hf(t,e,n,l){pl?gl?gl.push(l):gl=[l]:pl=l,e=ti(e,"onChange"),0<e.length&&(n=new fu("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var ia=null,ra=null;function rm(t){$d(t,0)}function du(t){var e=ta(t);if(Js(e))return t}function yf(t,e){if(t==="change")return e}var vf=!1;if(Fe){var ar;if(Fe){var ur="oninput"in document;if(!ur){var mf=document.createElement("div");mf.setAttribute("oninput","return;"),ur=typeof mf.oninput=="function"}ar=ur}else ar=!1;vf=ar&&(!document.documentMode||9<document.documentMode)}function pf(){ia&&(ia.detachEvent("onpropertychange",gf),ra=ia=null)}function gf(t){if(t.propertyName==="value"&&du(ra)){var e=[];hf(e,ra,t,ki(t)),tf(rm,e)}}function cm(t,e,n){t==="focusin"?(pf(),ia=e,ra=n,ia.attachEvent("onpropertychange",gf)):t==="focusout"&&pf()}function sm(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return du(ra)}function fm(t,e){if(t==="click")return du(e)}function om(t,e){if(t==="input"||t==="change")return du(e)}function dm(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var me=typeof Object.is=="function"?Object.is:dm;function ca(t,e){if(me(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),l=Object.keys(e);if(n.length!==l.length)return!1;for(l=0;l<n.length;l++){var u=n[l];if(!Ni.call(e,u)||!me(t[u],e[u]))return!1}return!0}function bf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Sf(t,e){var n=bf(t);t=0;for(var l;n;){if(n.nodeType===3){if(l=t+n.textContent.length,t<=e&&l>=e)return{node:n,offset:e-t};t=l}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=bf(n)}}function Of(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Of(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function _f(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=uu(t.document);e instanceof t.HTMLIFrameElement;){try{var n=typeof e.contentWindow.location.href=="string"}catch{n=!1}if(n)t=e.contentWindow;else break;e=uu(t.document)}return e}function ir(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 hm=Fe&&"documentMode"in document&&11>=document.documentMode,Sl=null,rr=null,sa=null,cr=!1;function Ef(t,e,n){var l=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;cr||Sl==null||Sl!==uu(l)||(l=Sl,"selectionStart"in l&&ir(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}),sa&&ca(sa,l)||(sa=l,l=ti(rr,"onSelect"),0<l.length&&(e=new fu("onSelect","select",null,e,n),t.push({event:e,listeners:l}),e.target=Sl)))}function Xn(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ol={animationend:Xn("Animation","AnimationEnd"),animationiteration:Xn("Animation","AnimationIteration"),animationstart:Xn("Animation","AnimationStart"),transitionrun:Xn("Transition","TransitionRun"),transitionstart:Xn("Transition","TransitionStart"),transitioncancel:Xn("Transition","TransitionCancel"),transitionend:Xn("Transition","TransitionEnd")},sr={},xf={};Fe&&(xf=document.createElement("div").style,"AnimationEvent"in window||(delete Ol.animationend.animation,delete Ol.animationiteration.animation,delete Ol.animationstart.animation),"TransitionEvent"in window||delete Ol.transitionend.transition);function Kn(t){if(sr[t])return sr[t];if(!Ol[t])return t;var e=Ol[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in xf)return sr[t]=e[n];return t}var Tf=Kn("animationend"),Af=Kn("animationiteration"),zf=Kn("animationstart"),ym=Kn("transitionrun"),vm=Kn("transitionstart"),mm=Kn("transitioncancel"),Mf=Kn("transitionend"),jf=new Map,fr="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(" ");fr.push("scrollEnd");function Qe(t,e){jf.set(t,e),Gn(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)},ze=[],_l=0,or=0;function yu(){for(var t=_l,e=or=_l=0;e<t;){var n=ze[e];ze[e++]=null;var l=ze[e];ze[e++]=null;var u=ze[e];ze[e++]=null;var r=ze[e];if(ze[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&&Cf(n,u,r)}}function vu(t,e,n,l){ze[_l++]=t,ze[_l++]=e,ze[_l++]=n,ze[_l++]=l,or|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function dr(t,e,n,l){return vu(t,e,n,l),mu(t)}function Zn(t,e){return vu(t,null,null,e),mu(t)}function Cf(t,e,n){t.lanes|=n;var l=t.alternate;l!==null&&(l.lanes|=n);for(var u=!1,r=t.return;r!==null;)r.childLanes|=n,l=r.alternate,l!==null&&(l.childLanes|=n),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-ve(n),t=r.hiddenUpdates,l=t[u],l===null?t[u]=[e]:l.push(e),e.lane=n|536870912),r):null}function mu(t){if(50<Da)throw Da=0,Oc=null,Error(s(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var El={};function pm(t,e,n,l){this.tag=t,this.key=n,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 pe(t,e,n,l){return new pm(t,e,n,l)}function hr(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ke(t,e){var n=t.alternate;return n===null?(n=pe(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Df(t,e){t.flags&=65011714;var n=t.alternate;return n===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=n.childLanes,t.lanes=n.lanes,t.child=n.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=n.memoizedProps,t.memoizedState=n.memoizedState,t.updateQueue=n.updateQueue,t.type=n.type,e=n.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),t}function pu(t,e,n,l,u,r){var f=0;if(l=t,typeof t=="function")hr(t)&&(f=1);else if(typeof t=="string")f=_p(t,n,w.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Y:return t=pe(31,n,e,u),t.elementType=Y,t.lanes=r,t;case Q:return Vn(n.children,u,r,e);case $:f=8,u|=24;break;case at:return t=pe(12,n,e,u|2),t.elementType=at,t.lanes=r,t;case k:return t=pe(13,n,e,u),t.elementType=k,t.lanes=r,t;case L:return t=pe(19,n,e,u),t.elementType=L,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Tt:f=10;break t;case dt:f=9;break t;case qt:f=11;break t;case j:f=14;break t;case X:f=16,l=null;break t}f=29,n=Error(s(130,t===null?"null":typeof t,"")),l=null}return e=pe(f,n,e,u),e.elementType=t,e.type=l,e.lanes=r,e}function Vn(t,e,n,l){return t=pe(7,t,l,e),t.lanes=n,t}function yr(t,e,n){return t=pe(6,t,null,e),t.lanes=n,t}function Rf(t){var e=pe(18,null,null,0);return e.stateNode=t,e}function vr(t,e,n){return e=pe(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Uf=new WeakMap;function Me(t,e){if(typeof t=="object"&&t!==null){var n=Uf.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Ds(e)},Uf.set(t,e),e)}return{value:t,source:e,stack:Ds(e)}}var xl=[],Tl=0,gu=null,fa=0,je=[],Ce=0,yn=null,Ye=1,Ge="";function $e(t,e){xl[Tl++]=fa,xl[Tl++]=gu,gu=t,fa=e}function qf(t,e,n){je[Ce++]=Ye,je[Ce++]=Ge,je[Ce++]=yn,yn=t;var l=Ye;t=Ge;var u=32-ve(l)-1;l&=~(1<<u),n+=1;var r=32-ve(e)+u;if(30<r){var f=u-u%5;r=(l&(1<<f)-1).toString(32),l>>=f,u-=f,Ye=1<<32-ve(e)+u|n<<u|l,Ge=r+t}else Ye=1<<r|n<<u|l,Ge=t}function mr(t){t.return!==null&&($e(t,1),qf(t,1,0))}function pr(t){for(;t===gu;)gu=xl[--Tl],xl[Tl]=null,fa=xl[--Tl],xl[Tl]=null;for(;t===yn;)yn=je[--Ce],je[Ce]=null,Ge=je[--Ce],je[Ce]=null,Ye=je[--Ce],je[Ce]=null}function Qf(t,e){je[Ce++]=Ye,je[Ce++]=Ge,je[Ce++]=yn,Ye=e.id,Ge=e.overflow,yn=t}var Pt=null,Rt=null,bt=!1,vn=null,De=!1,gr=Error(s(519));function mn(t){var e=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw oa(Me(e,t)),gr}function Nf(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[$t]=t,e[ie]=l,n){case"dialog":mt("cancel",e),mt("close",e);break;case"iframe":case"object":case"embed":mt("load",e);break;case"video":case"audio":for(n=0;n<Ua.length;n++)mt(Ua[n],e);break;case"source":mt("error",e);break;case"img":case"image":case"link":mt("error",e),mt("load",e);break;case"details":mt("toggle",e);break;case"input":mt("invalid",e),Fs(e,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0);break;case"select":mt("invalid",e);break;case"textarea":mt("invalid",e),$s(e,l.value,l.defaultValue,l.children)}n=l.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||l.suppressHydrationWarning===!0||th(e.textContent,n)?(l.popover!=null&&(mt("beforetoggle",e),mt("toggle",e)),l.onScroll!=null&&mt("scroll",e),l.onScrollEnd!=null&&mt("scrollend",e),l.onClick!=null&&(e.onclick=Je),e=!0):e=!1,e||mn(t,!0)}function Hf(t){for(Pt=t.return;Pt;)switch(Pt.tag){case 5:case 31:case 13:De=!1;return;case 27:case 3:De=!0;return;default:Pt=Pt.return}}function Al(t){if(t!==Pt)return!1;if(!bt)return Hf(t),bt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||Nc(t.type,t.memoizedProps)),n=!n),n&&Rt&&mn(t),Hf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Rt=sh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Rt=sh(t)}else e===27?(e=Rt,Cn(t.type)?(t=Gc,Gc=null,Rt=t):Rt=e):Rt=Pt?Ue(t.stateNode.nextSibling):null;return!0}function Jn(){Rt=Pt=null,bt=!1}function br(){var t=vn;return t!==null&&(oe===null?oe=t:oe.push.apply(oe,t),vn=null),t}function oa(t){vn===null?vn=[t]:vn.push(t)}var Sr=b(null),Fn=null,Pe=null;function pn(t,e,n){H(Sr,e._currentValue),e._currentValue=n}function We(t){t._currentValue=Sr.current,D(Sr)}function Or(t,e,n){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===n)break;t=t.return}}function _r(t,e,n,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 h=r;r=u;for(var g=0;g<e.length;g++)if(h.context===e[g]){r.lanes|=n,h=r.alternate,h!==null&&(h.lanes|=n),Or(r.return,n,t),l||(f=null);break t}r=h.next}}else if(u.tag===18){if(f=u.return,f===null)throw Error(s(341));f.lanes|=n,r=f.alternate,r!==null&&(r.lanes|=n),Or(f,n,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 zl(t,e,n,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(s(387));if(f=f.memoizedProps,f!==null){var h=u.type;me(u.pendingProps.value,f.value)||(t!==null?t.push(h):t=[h])}}else if(u===St.current){if(f=u.alternate,f===null)throw Error(s(387));f.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(wa):t=[wa])}u=u.return}t!==null&&_r(e,t,n,l),e.flags|=262144}function bu(t){for(t=t.firstContext;t!==null;){if(!me(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function kn(t){Fn=t,Pe=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Wt(t){return wf(Fn,t)}function Su(t,e){return Fn===null&&kn(t),wf(t,e)}function wf(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},Pe===null){if(t===null)throw Error(s(308));Pe=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else Pe=Pe.next=e;return n}var gm=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,l){t.push(l)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},bm=a.unstable_scheduleCallback,Sm=a.unstable_NormalPriority,Xt={$$typeof:Tt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Er(){return{controller:new gm,data:new Map,refCount:0}}function da(t){t.refCount--,t.refCount===0&&bm(Sm,function(){t.controller.abort()})}var ha=null,xr=0,Ml=0,jl=null;function Om(t,e){if(ha===null){var n=ha=[];xr=0,Ml=zc(),jl={status:"pending",value:void 0,then:function(l){n.push(l)}}}return xr++,e.then(Bf,Bf),e}function Bf(){if(--xr===0&&ha!==null){jl!==null&&(jl.status="fulfilled");var t=ha;ha=null,Ml=0,jl=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function _m(t,e){var n=[],l={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return t.then(function(){l.status="fulfilled",l.value=e;for(var u=0;u<n.length;u++)(0,n[u])(e)},function(u){for(l.status="rejected",l.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),l}var Yf=T.S;T.S=function(t,e){xd=he(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Om(t,e),Yf!==null&&Yf(t,e)};var $n=b(null);function Tr(){var t=$n.current;return t!==null?t:Dt.pooledCache}function Ou(t,e){e===null?H($n,$n.current):H($n,e.pool)}function Gf(){var t=Tr();return t===null?null:{parent:Xt._currentValue,pool:t}}var Cl=Error(s(460)),Ar=Error(s(474)),_u=Error(s(542)),Eu={then:function(){}};function Lf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Xf(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(Je,Je),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Zf(t),t;default:if(typeof e.status=="string")e.then(Je,Je);else{if(t=Dt,t!==null&&100<t.shellSuspendCounter)throw Error(s(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,Zf(t),t}throw Wn=e,Cl}}function Pn(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Wn=n,Cl):n}}var Wn=null;function Kf(){if(Wn===null)throw Error(s(459));var t=Wn;return Wn=null,t}function Zf(t){if(t===Cl||t===_u)throw Error(s(483))}var Dl=null,ya=0;function xu(t){var e=ya;return ya+=1,Dl===null&&(Dl=[]),Xf(Dl,t,e)}function va(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function Tu(t,e){throw e.$$typeof===q?Error(s(525)):(t=Object.prototype.toString.call(e),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Vf(t){function e(O,S){if(t){var E=O.deletions;E===null?(O.deletions=[S],O.flags|=16):E.push(S)}}function n(O,S){if(!t)return null;for(;S!==null;)e(O,S),S=S.sibling;return null}function l(O){for(var S=new Map;O!==null;)O.key!==null?S.set(O.key,O):S.set(O.index,O),O=O.sibling;return S}function u(O,S){return O=ke(O,S),O.index=0,O.sibling=null,O}function r(O,S,E){return O.index=E,t?(E=O.alternate,E!==null?(E=E.index,E<S?(O.flags|=67108866,S):E):(O.flags|=67108866,S)):(O.flags|=1048576,S)}function f(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function h(O,S,E,R){return S===null||S.tag!==6?(S=yr(E,O.mode,R),S.return=O,S):(S=u(S,E),S.return=O,S)}function g(O,S,E,R){var nt=E.type;return nt===Q?C(O,S,E.props.children,R,E.key):S!==null&&(S.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===X&&Pn(nt)===S.type)?(S=u(S,E.props),va(S,E),S.return=O,S):(S=pu(E.type,E.key,E.props,null,O.mode,R),va(S,E),S.return=O,S)}function x(O,S,E,R){return S===null||S.tag!==4||S.stateNode.containerInfo!==E.containerInfo||S.stateNode.implementation!==E.implementation?(S=vr(E,O.mode,R),S.return=O,S):(S=u(S,E.children||[]),S.return=O,S)}function C(O,S,E,R,nt){return S===null||S.tag!==7?(S=Vn(E,O.mode,R,nt),S.return=O,S):(S=u(S,E),S.return=O,S)}function U(O,S,E){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=yr(""+S,O.mode,E),S.return=O,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case B:return E=pu(S.type,S.key,S.props,null,O.mode,E),va(E,S),E.return=O,E;case J:return S=vr(S,O.mode,E),S.return=O,S;case X:return S=Pn(S),U(O,S,E)}if(st(S)||tt(S))return S=Vn(S,O.mode,E,null),S.return=O,S;if(typeof S.then=="function")return U(O,xu(S),E);if(S.$$typeof===Tt)return U(O,Su(O,S),E);Tu(O,S)}return null}function A(O,S,E,R){var nt=S!==null?S.key:null;if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return nt!==null?null:h(O,S,""+E,R);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case B:return E.key===nt?g(O,S,E,R):null;case J:return E.key===nt?x(O,S,E,R):null;case X:return E=Pn(E),A(O,S,E,R)}if(st(E)||tt(E))return nt!==null?null:C(O,S,E,R,null);if(typeof E.then=="function")return A(O,S,xu(E),R);if(E.$$typeof===Tt)return A(O,S,Su(O,E),R);Tu(O,E)}return null}function z(O,S,E,R,nt){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return O=O.get(E)||null,h(S,O,""+R,nt);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case B:return O=O.get(R.key===null?E:R.key)||null,g(S,O,R,nt);case J:return O=O.get(R.key===null?E:R.key)||null,x(S,O,R,nt);case X:return R=Pn(R),z(O,S,E,R,nt)}if(st(R)||tt(R))return O=O.get(E)||null,C(S,O,R,nt,null);if(typeof R.then=="function")return z(O,S,E,xu(R),nt);if(R.$$typeof===Tt)return z(O,S,E,Su(S,R),nt);Tu(S,R)}return null}function F(O,S,E,R){for(var nt=null,Ot=null,W=S,ot=S=0,gt=null;W!==null&&ot<E.length;ot++){W.index>ot?(gt=W,W=null):gt=W.sibling;var _t=A(O,W,E[ot],R);if(_t===null){W===null&&(W=gt);break}t&&W&&_t.alternate===null&&e(O,W),S=r(_t,S,ot),Ot===null?nt=_t:Ot.sibling=_t,Ot=_t,W=gt}if(ot===E.length)return n(O,W),bt&&$e(O,ot),nt;if(W===null){for(;ot<E.length;ot++)W=U(O,E[ot],R),W!==null&&(S=r(W,S,ot),Ot===null?nt=W:Ot.sibling=W,Ot=W);return bt&&$e(O,ot),nt}for(W=l(W);ot<E.length;ot++)gt=z(W,O,ot,E[ot],R),gt!==null&&(t&&gt.alternate!==null&&W.delete(gt.key===null?ot:gt.key),S=r(gt,S,ot),Ot===null?nt=gt:Ot.sibling=gt,Ot=gt);return t&&W.forEach(function(Qn){return e(O,Qn)}),bt&&$e(O,ot),nt}function lt(O,S,E,R){if(E==null)throw Error(s(151));for(var nt=null,Ot=null,W=S,ot=S=0,gt=null,_t=E.next();W!==null&&!_t.done;ot++,_t=E.next()){W.index>ot?(gt=W,W=null):gt=W.sibling;var Qn=A(O,W,_t.value,R);if(Qn===null){W===null&&(W=gt);break}t&&W&&Qn.alternate===null&&e(O,W),S=r(Qn,S,ot),Ot===null?nt=Qn:Ot.sibling=Qn,Ot=Qn,W=gt}if(_t.done)return n(O,W),bt&&$e(O,ot),nt;if(W===null){for(;!_t.done;ot++,_t=E.next())_t=U(O,_t.value,R),_t!==null&&(S=r(_t,S,ot),Ot===null?nt=_t:Ot.sibling=_t,Ot=_t);return bt&&$e(O,ot),nt}for(W=l(W);!_t.done;ot++,_t=E.next())_t=z(W,O,ot,_t.value,R),_t!==null&&(t&&_t.alternate!==null&&W.delete(_t.key===null?ot:_t.key),S=r(_t,S,ot),Ot===null?nt=_t:Ot.sibling=_t,Ot=_t);return t&&W.forEach(function(Up){return e(O,Up)}),bt&&$e(O,ot),nt}function Ct(O,S,E,R){if(typeof E=="object"&&E!==null&&E.type===Q&&E.key===null&&(E=E.props.children),typeof E=="object"&&E!==null){switch(E.$$typeof){case B:t:{for(var nt=E.key;S!==null;){if(S.key===nt){if(nt=E.type,nt===Q){if(S.tag===7){n(O,S.sibling),R=u(S,E.props.children),R.return=O,O=R;break t}}else if(S.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===X&&Pn(nt)===S.type){n(O,S.sibling),R=u(S,E.props),va(R,E),R.return=O,O=R;break t}n(O,S);break}else e(O,S);S=S.sibling}E.type===Q?(R=Vn(E.props.children,O.mode,R,E.key),R.return=O,O=R):(R=pu(E.type,E.key,E.props,null,O.mode,R),va(R,E),R.return=O,O=R)}return f(O);case J:t:{for(nt=E.key;S!==null;){if(S.key===nt)if(S.tag===4&&S.stateNode.containerInfo===E.containerInfo&&S.stateNode.implementation===E.implementation){n(O,S.sibling),R=u(S,E.children||[]),R.return=O,O=R;break t}else{n(O,S);break}else e(O,S);S=S.sibling}R=vr(E,O.mode,R),R.return=O,O=R}return f(O);case X:return E=Pn(E),Ct(O,S,E,R)}if(st(E))return F(O,S,E,R);if(tt(E)){if(nt=tt(E),typeof nt!="function")throw Error(s(150));return E=nt.call(E),lt(O,S,E,R)}if(typeof E.then=="function")return Ct(O,S,xu(E),R);if(E.$$typeof===Tt)return Ct(O,S,Su(O,E),R);Tu(O,E)}return typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint"?(E=""+E,S!==null&&S.tag===6?(n(O,S.sibling),R=u(S,E),R.return=O,O=R):(n(O,S),R=yr(E,O.mode,R),R.return=O,O=R),f(O)):n(O,S)}return function(O,S,E,R){try{ya=0;var nt=Ct(O,S,E,R);return Dl=null,nt}catch(W){if(W===Cl||W===_u)throw W;var Ot=pe(29,W,null,O.mode);return Ot.lanes=R,Ot.return=O,Ot}finally{}}}var In=Vf(!0),Jf=Vf(!1),gn=!1;function zr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Mr(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 bn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Sn(t,e,n){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(xt&2)!==0){var u=l.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),l.pending=e,e=mu(t),Cf(t,null,n),e}return vu(t,l,e,n),mu(t)}function ma(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Hs(t,n)}}function jr(t,e){var n=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,n===l)){var u=null,r=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?u=r=f:r=r.next=f,n=n.next}while(n!==null);r===null?u=r=e:r=r.next=e}else u=r=e;n={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:r,shared:l.shared,callbacks:l.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var Cr=!1;function pa(){if(Cr){var t=jl;if(t!==null)throw t}}function ga(t,e,n,l){Cr=!1;var u=t.updateQueue;gn=!1;var r=u.firstBaseUpdate,f=u.lastBaseUpdate,h=u.shared.pending;if(h!==null){u.shared.pending=null;var g=h,x=g.next;g.next=null,f===null?r=x:f.next=x,f=g;var C=t.alternate;C!==null&&(C=C.updateQueue,h=C.lastBaseUpdate,h!==f&&(h===null?C.firstBaseUpdate=x:h.next=x,C.lastBaseUpdate=g))}if(r!==null){var U=u.baseState;f=0,C=x=g=null,h=r;do{var A=h.lane&-536870913,z=A!==h.lane;if(z?(pt&A)===A:(l&A)===A){A!==0&&A===Ml&&(Cr=!0),C!==null&&(C=C.next={lane:0,tag:h.tag,payload:h.payload,callback:null,next:null});t:{var F=t,lt=h;A=e;var Ct=n;switch(lt.tag){case 1:if(F=lt.payload,typeof F=="function"){U=F.call(Ct,U,A);break t}U=F;break t;case 3:F.flags=F.flags&-65537|128;case 0:if(F=lt.payload,A=typeof F=="function"?F.call(Ct,U,A):F,A==null)break t;U=_({},U,A);break t;case 2:gn=!0}}A=h.callback,A!==null&&(t.flags|=64,z&&(t.flags|=8192),z=u.callbacks,z===null?u.callbacks=[A]:z.push(A))}else z={lane:A,tag:h.tag,payload:h.payload,callback:h.callback,next:null},C===null?(x=C=z,g=U):C=C.next=z,f|=A;if(h=h.next,h===null){if(h=u.shared.pending,h===null)break;z=h,h=z.next,z.next=null,u.lastBaseUpdate=z,u.shared.pending=null}}while(!0);C===null&&(g=U),u.baseState=g,u.firstBaseUpdate=x,u.lastBaseUpdate=C,r===null&&(u.shared.lanes=0),Tn|=f,t.lanes=f,t.memoizedState=U}}function Ff(t,e){if(typeof t!="function")throw Error(s(191,t));t.call(e)}function kf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Ff(n[t],e)}var Rl=b(null),Au=b(0);function $f(t,e){t=cn,H(Au,t),H(Rl,e),cn=t|e.baseLanes}function Dr(){H(Au,cn),H(Rl,Rl.current)}function Rr(){cn=Au.current,D(Rl),D(Au)}var ge=b(null),Re=null;function On(t){var e=t.alternate;H(Yt,Yt.current&1),H(ge,t),Re===null&&(e===null||Rl.current!==null||e.memoizedState!==null)&&(Re=t)}function Ur(t){H(Yt,Yt.current),H(ge,t),Re===null&&(Re=t)}function Pf(t){t.tag===22?(H(Yt,Yt.current),H(ge,t),Re===null&&(Re=t)):_n()}function _n(){H(Yt,Yt.current),H(ge,ge.current)}function be(t){D(ge),Re===t&&(Re=null),D(Yt)}var Yt=b(0);function zu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Bc(n)||Yc(n)))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 Ie=0,ft=null,Mt=null,Kt=null,Mu=!1,Ul=!1,tl=!1,ju=0,ba=0,ql=null,Em=0;function Nt(){throw Error(s(321))}function qr(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!me(t[n],e[n]))return!1;return!0}function Qr(t,e,n,l,u,r){return Ie=r,ft=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,T.H=t===null||t.memoizedState===null?Qo:$r,tl=!1,r=n(l,u),tl=!1,Ul&&(r=If(e,n,l,u)),Wf(t),r}function Wf(t){T.H=_a;var e=Mt!==null&&Mt.next!==null;if(Ie=0,Kt=Mt=ft=null,Mu=!1,ba=0,ql=null,e)throw Error(s(300));t===null||Zt||(t=t.dependencies,t!==null&&bu(t)&&(Zt=!0))}function If(t,e,n,l){ft=t;var u=0;do{if(Ul&&(ql=null),ba=0,Ul=!1,25<=u)throw Error(s(301));if(u+=1,Kt=Mt=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=No,r=e(n,l)}while(Ul);return r}function xm(){var t=T.H,e=t.useState()[0];return e=typeof e.then=="function"?Sa(e):e,t=t.useState()[0],(Mt!==null?Mt.memoizedState:null)!==t&&(ft.flags|=1024),e}function Nr(){var t=ju!==0;return ju=0,t}function Hr(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function wr(t){if(Mu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}Mu=!1}Ie=0,Kt=Mt=ft=null,Ul=!1,ba=ju=0,ql=null}function ae(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kt===null?ft.memoizedState=Kt=t:Kt=Kt.next=t,Kt}function Gt(){if(Mt===null){var t=ft.alternate;t=t!==null?t.memoizedState:null}else t=Mt.next;var e=Kt===null?ft.memoizedState:Kt.next;if(e!==null)Kt=e,Mt=t;else{if(t===null)throw ft.alternate===null?Error(s(467)):Error(s(310));Mt=t,t={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},Kt===null?ft.memoizedState=Kt=t:Kt=Kt.next=t}return Kt}function Cu(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Sa(t){var e=ba;return ba+=1,ql===null&&(ql=[]),t=Xf(ql,t,e),e=ft,(Kt===null?e.memoizedState:Kt.next)===null&&(e=e.alternate,T.H=e===null||e.memoizedState===null?Qo:$r),t}function Du(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Sa(t);if(t.$$typeof===Tt)return Wt(t)}throw Error(s(438,String(t)))}function Br(t){var e=null,n=ft.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ft.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}),n===null&&(n=Cu(),ft.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),l=0;l<t;l++)n[l]=et;return e.index++,n}function tn(t,e){return typeof e=="function"?e(t):e}function Ru(t){var e=Gt();return Yr(e,Mt,t)}function Yr(t,e,n){var l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=n;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 h=f=null,g=null,x=e,C=!1;do{var U=x.lane&-536870913;if(U!==x.lane?(pt&U)===U:(Ie&U)===U){var A=x.revertLane;if(A===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),U===Ml&&(C=!0);else if((Ie&A)===A){x=x.next,A===Ml&&(C=!0);continue}else U={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},g===null?(h=g=U,f=r):g=g.next=U,ft.lanes|=A,Tn|=A;U=x.action,tl&&n(r,U),r=x.hasEagerState?x.eagerState:n(r,U)}else A={lane:U,revertLane:x.revertLane,gesture:x.gesture,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},g===null?(h=g=A,f=r):g=g.next=A,ft.lanes|=U,Tn|=U;x=x.next}while(x!==null&&x!==e);if(g===null?f=r:g.next=h,!me(r,t.memoizedState)&&(Zt=!0,C&&(n=jl,n!==null)))throw n;t.memoizedState=r,t.baseState=f,t.baseQueue=g,l.lastRenderedState=r}return u===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Gr(t){var e=Gt(),n=e.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=t;var l=n.dispatch,u=n.pending,r=e.memoizedState;if(u!==null){n.pending=null;var f=u=u.next;do r=t(r,f.action),f=f.next;while(f!==u);me(r,e.memoizedState)||(Zt=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,l]}function to(t,e,n){var l=ft,u=Gt(),r=bt;if(r){if(n===void 0)throw Error(s(407));n=n()}else n=e();var f=!me((Mt||u).memoizedState,n);if(f&&(u.memoizedState=n,Zt=!0),u=u.queue,Kr(lo.bind(null,l,u,t),[t]),u.getSnapshot!==e||f||Kt!==null&&Kt.memoizedState.tag&1){if(l.flags|=2048,Ql(9,{destroy:void 0},no.bind(null,l,u,n,e),null),Dt===null)throw Error(s(349));r||(Ie&127)!==0||eo(l,e,n)}return n}function eo(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ft.updateQueue,e===null?(e=Cu(),ft.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function no(t,e,n,l){e.value=n,e.getSnapshot=l,ao(e)&&uo(t)}function lo(t,e,n){return n(function(){ao(e)&&uo(t)})}function ao(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!me(t,n)}catch{return!0}}function uo(t){var e=Zn(t,2);e!==null&&de(e,t,2)}function Lr(t){var e=ae();if(typeof t=="function"){var n=t;if(t=n(),tl){on(!0);try{n()}finally{on(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:t},e}function io(t,e,n,l){return t.baseState=n,Yr(t,Mt,typeof l=="function"?l:tn)}function Tm(t,e,n,l,u){if(Qu(t))throw Error(s(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?n(!0):r.isTransition=!1,l(r),n=e.pending,n===null?(r.next=e.pending=r,ro(e,r)):(r.next=n.next,e.pending=n.next=r)}}function ro(t,e){var n=e.action,l=e.payload,u=t.state;if(e.isTransition){var r=T.T,f={};T.T=f;try{var h=n(u,l),g=T.S;g!==null&&g(f,h),co(t,e,h)}catch(x){Xr(t,e,x)}finally{r!==null&&f.types!==null&&(r.types=f.types),T.T=r}}else try{r=n(u,l),co(t,e,r)}catch(x){Xr(t,e,x)}}function co(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){so(t,e,l)},function(l){return Xr(t,e,l)}):so(t,e,n)}function so(t,e,n){e.status="fulfilled",e.value=n,fo(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,ro(t,n)))}function Xr(t,e,n){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do e.status="rejected",e.reason=n,fo(e),e=e.next;while(e!==l)}t.action=null}function fo(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function oo(t,e){return e}function ho(t,e){if(bt){var n=Dt.formState;if(n!==null){t:{var l=ft;if(bt){if(Rt){e:{for(var u=Rt,r=De;u.nodeType!==8;){if(!r){u=null;break e}if(u=Ue(u.nextSibling),u===null){u=null;break e}}r=u.data,u=r==="F!"||r==="F"?u:null}if(u){Rt=Ue(u.nextSibling),l=u.data==="F!";break t}}mn(l)}l=!1}l&&(e=n[0])}}return n=ae(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:e},n.queue=l,n=Ro.bind(null,ft,l),l.dispatch=n,l=Lr(!1),r=kr.bind(null,ft,!1,l.queue),l=ae(),u={state:e,dispatch:null,action:t,pending:null},l.queue=u,n=Tm.bind(null,ft,u,r,n),u.dispatch=n,l.memoizedState=t,[e,n,!1]}function yo(t){var e=Gt();return vo(e,Mt,t)}function vo(t,e,n){if(e=Yr(t,e,oo)[0],t=Ru(tn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Sa(e)}catch(f){throw f===Cl?_u:f}else l=e;e=Gt();var u=e.queue,r=u.dispatch;return n!==e.memoizedState&&(ft.flags|=2048,Ql(9,{destroy:void 0},Am.bind(null,u,n),null)),[l,r,t]}function Am(t,e){t.action=e}function mo(t){var e=Gt(),n=Mt;if(n!==null)return vo(e,n,t);Gt(),e=e.memoizedState,n=Gt();var l=n.queue.dispatch;return n.memoizedState=t,[e,l,!1]}function Ql(t,e,n,l){return t={tag:t,create:n,deps:l,inst:e,next:null},e=ft.updateQueue,e===null&&(e=Cu(),ft.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(l=n.next,n.next=t,t.next=l,e.lastEffect=t),t}function po(){return Gt().memoizedState}function Uu(t,e,n,l){var u=ae();ft.flags|=t,u.memoizedState=Ql(1|e,{destroy:void 0},n,l===void 0?null:l)}function qu(t,e,n,l){var u=Gt();l=l===void 0?null:l;var r=u.memoizedState.inst;Mt!==null&&l!==null&&qr(l,Mt.memoizedState.deps)?u.memoizedState=Ql(e,r,n,l):(ft.flags|=t,u.memoizedState=Ql(1|e,r,n,l))}function go(t,e){Uu(8390656,8,t,e)}function Kr(t,e){qu(2048,8,t,e)}function zm(t){ft.flags|=4;var e=ft.updateQueue;if(e===null)e=Cu(),ft.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function bo(t){var e=Gt().memoizedState;return zm({ref:e,nextImpl:t}),function(){if((xt&2)!==0)throw Error(s(440));return e.impl.apply(void 0,arguments)}}function So(t,e){return qu(4,2,t,e)}function Oo(t,e){return qu(4,4,t,e)}function _o(t,e){if(typeof e=="function"){t=t();var n=e(t);return function(){typeof n=="function"?n():e(null)}}if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function Eo(t,e,n){n=n!=null?n.concat([t]):null,qu(4,4,_o.bind(null,e,t),n)}function Zr(){}function xo(t,e){var n=Gt();e=e===void 0?null:e;var l=n.memoizedState;return e!==null&&qr(e,l[1])?l[0]:(n.memoizedState=[t,e],t)}function To(t,e){var n=Gt();e=e===void 0?null:e;var l=n.memoizedState;if(e!==null&&qr(e,l[1]))return l[0];if(l=t(),tl){on(!0);try{t()}finally{on(!1)}}return n.memoizedState=[l,e],l}function Vr(t,e,n){return n===void 0||(Ie&1073741824)!==0&&(pt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=Ad(),ft.lanes|=t,Tn|=t,n)}function Ao(t,e,n,l){return me(n,e)?n:Rl.current!==null?(t=Vr(t,n,l),me(t,e)||(Zt=!0),t):(Ie&42)===0||(Ie&1073741824)!==0&&(pt&261930)===0?(Zt=!0,t.memoizedState=n):(t=Ad(),ft.lanes|=t,Tn|=t,e)}function zo(t,e,n,l,u){var r=N.p;N.p=r!==0&&8>r?r:8;var f=T.T,h={};T.T=h,kr(t,!1,e,n);try{var g=u(),x=T.S;if(x!==null&&x(h,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var C=_m(g,l);Oa(t,e,C,_e(t))}else Oa(t,e,l,_e(t))}catch(U){Oa(t,e,{then:function(){},status:"rejected",reason:U},_e())}finally{N.p=r,f!==null&&h.types!==null&&(f.types=h.types),T.T=f}}function Mm(){}function Jr(t,e,n,l){if(t.tag!==5)throw Error(s(476));var u=Mo(t).queue;zo(t,u,e,K,n===null?Mm:function(){return jo(t),n(l)})}function Mo(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:K,baseState:K,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:K},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function jo(t){var e=Mo(t);e.next===null&&(e=t.alternate.memoizedState),Oa(t,e.next.queue,{},_e())}function Fr(){return Wt(wa)}function Co(){return Gt().memoizedState}function Do(){return Gt().memoizedState}function jm(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=_e();t=bn(n);var l=Sn(e,t,n);l!==null&&(de(l,e,n),ma(l,e,n)),e={cache:Er()},t.payload=e;return}e=e.return}}function Cm(t,e,n){var l=_e();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Qu(t)?Uo(e,n):(n=dr(t,e,n,l),n!==null&&(de(n,t,l),qo(n,e,l)))}function Ro(t,e,n){var l=_e();Oa(t,e,n,l)}function Oa(t,e,n,l){var u={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Qu(t))Uo(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,h=r(f,n);if(u.hasEagerState=!0,u.eagerState=h,me(h,f))return vu(t,e,u,0),Dt===null&&yu(),!1}catch{}finally{}if(n=dr(t,e,u,l),n!==null)return de(n,t,l),qo(n,e,l),!0}return!1}function kr(t,e,n,l){if(l={lane:2,revertLane:zc(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},Qu(t)){if(e)throw Error(s(479))}else e=dr(t,n,l,2),e!==null&&de(e,t,2)}function Qu(t){var e=t.alternate;return t===ft||e!==null&&e===ft}function Uo(t,e){Ul=Mu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function qo(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,Hs(t,n)}}var _a={readContext:Wt,use:Du,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt,useHostTransitionStatus:Nt,useFormState:Nt,useActionState:Nt,useOptimistic:Nt,useMemoCache:Nt,useCacheRefresh:Nt};_a.useEffectEvent=Nt;var Qo={readContext:Wt,use:Du,useCallback:function(t,e){return ae().memoizedState=[t,e===void 0?null:e],t},useContext:Wt,useEffect:go,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Uu(4194308,4,_o.bind(null,e,t),n)},useLayoutEffect:function(t,e){return Uu(4194308,4,t,e)},useInsertionEffect:function(t,e){Uu(4,2,t,e)},useMemo:function(t,e){var n=ae();e=e===void 0?null:e;var l=t();if(tl){on(!0);try{t()}finally{on(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ae();if(n!==void 0){var u=n(e);if(tl){on(!0);try{n(e)}finally{on(!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=Cm.bind(null,ft,t),[l.memoizedState,t]},useRef:function(t){var e=ae();return t={current:t},e.memoizedState=t},useState:function(t){t=Lr(t);var e=t.queue,n=Ro.bind(null,ft,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Zr,useDeferredValue:function(t,e){var n=ae();return Vr(n,t,e)},useTransition:function(){var t=Lr(!1);return t=zo.bind(null,ft,t.queue,!0,!1),ae().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ft,u=ae();if(bt){if(n===void 0)throw Error(s(407));n=n()}else{if(n=e(),Dt===null)throw Error(s(349));(pt&127)!==0||eo(l,e,n)}u.memoizedState=n;var r={value:n,getSnapshot:e};return u.queue=r,go(lo.bind(null,l,r,t),[t]),l.flags|=2048,Ql(9,{destroy:void 0},no.bind(null,l,r,n,e),null),n},useId:function(){var t=ae(),e=Dt.identifierPrefix;if(bt){var n=Ge,l=Ye;n=(l&~(1<<32-ve(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=ju++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Em++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Fr,useFormState:ho,useActionState:ho,useOptimistic:function(t){var e=ae();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=kr.bind(null,ft,!0,n),n.dispatch=e,[t,e]},useMemoCache:Br,useCacheRefresh:function(){return ae().memoizedState=jm.bind(null,ft)},useEffectEvent:function(t){var e=ae(),n={impl:t};return e.memoizedState=n,function(){if((xt&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},$r={readContext:Wt,use:Du,useCallback:xo,useContext:Wt,useEffect:Kr,useImperativeHandle:Eo,useInsertionEffect:So,useLayoutEffect:Oo,useMemo:To,useReducer:Ru,useRef:po,useState:function(){return Ru(tn)},useDebugValue:Zr,useDeferredValue:function(t,e){var n=Gt();return Ao(n,Mt.memoizedState,t,e)},useTransition:function(){var t=Ru(tn)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:Sa(t),e]},useSyncExternalStore:to,useId:Co,useHostTransitionStatus:Fr,useFormState:yo,useActionState:yo,useOptimistic:function(t,e){var n=Gt();return io(n,Mt,t,e)},useMemoCache:Br,useCacheRefresh:Do};$r.useEffectEvent=bo;var No={readContext:Wt,use:Du,useCallback:xo,useContext:Wt,useEffect:Kr,useImperativeHandle:Eo,useInsertionEffect:So,useLayoutEffect:Oo,useMemo:To,useReducer:Gr,useRef:po,useState:function(){return Gr(tn)},useDebugValue:Zr,useDeferredValue:function(t,e){var n=Gt();return Mt===null?Vr(n,t,e):Ao(n,Mt.memoizedState,t,e)},useTransition:function(){var t=Gr(tn)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:Sa(t),e]},useSyncExternalStore:to,useId:Co,useHostTransitionStatus:Fr,useFormState:mo,useActionState:mo,useOptimistic:function(t,e){var n=Gt();return Mt!==null?io(n,Mt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Br,useCacheRefresh:Do};No.useEffectEvent=bo;function Pr(t,e,n,l){e=t.memoizedState,n=n(l,e),n=n==null?e:_({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Wr={enqueueSetState:function(t,e,n){t=t._reactInternals;var l=_e(),u=bn(l);u.payload=e,n!=null&&(u.callback=n),e=Sn(t,u,l),e!==null&&(de(e,t,l),ma(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=_e(),u=bn(l);u.tag=1,u.payload=e,n!=null&&(u.callback=n),e=Sn(t,u,l),e!==null&&(de(e,t,l),ma(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=_e(),l=bn(n);l.tag=2,e!=null&&(l.callback=e),e=Sn(t,l,n),e!==null&&(de(e,t,n),ma(e,t,n))}};function Ho(t,e,n,l,u,r,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,r,f):e.prototype&&e.prototype.isPureReactComponent?!ca(n,l)||!ca(u,r):!0}function wo(t,e,n,l){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,l),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,l),e.state!==t&&Wr.enqueueReplaceState(e,e.state,null)}function el(t,e){var n=e;if("ref"in e){n={};for(var l in e)l!=="ref"&&(n[l]=e[l])}if(t=t.defaultProps){n===e&&(n=_({},n));for(var u in t)n[u]===void 0&&(n[u]=t[u])}return n}function Bo(t){hu(t)}function Yo(t){console.error(t)}function Go(t){hu(t)}function Nu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(l){setTimeout(function(){throw l})}}function Lo(t,e,n){try{var l=t.onCaughtError;l(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Ir(t,e,n){return n=bn(n),n.tag=3,n.payload={element:null},n.callback=function(){Nu(t,e)},n}function Xo(t){return t=bn(t),t.tag=3,t}function Ko(t,e,n,l){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var r=l.value;t.payload=function(){return u(r)},t.callback=function(){Lo(e,n,l)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Lo(e,n,l),typeof u!="function"&&(An===null?An=new Set([this]):An.add(this));var h=l.stack;this.componentDidCatch(l.value,{componentStack:h!==null?h:""})})}function Dm(t,e,n,l,u){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&zl(e,n,u,!0),n=ge.current,n!==null){switch(n.tag){case 31:case 13:return Re===null?Fu():n.alternate===null&&Ht===0&&(Ht=3),n.flags&=-257,n.flags|=65536,n.lanes=u,l===Eu?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),xc(t,l,u)),!1;case 22:return n.flags|=65536,l===Eu?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([l])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([l]):n.add(l)),xc(t,l,u)),!1}throw Error(s(435,n.tag))}return xc(t,l,u),Fu(),!1}if(bt)return e=ge.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,l!==gr&&(t=Error(s(422),{cause:l}),oa(Me(t,n)))):(l!==gr&&(e=Error(s(423),{cause:l}),oa(Me(e,n))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,l=Me(l,n),u=Ir(t.stateNode,l,u),jr(t,u),Ht!==4&&(Ht=2)),!1;var r=Error(s(520),{cause:l});if(r=Me(r,n),Ca===null?Ca=[r]:Ca.push(r),Ht!==4&&(Ht=2),e===null)return!0;l=Me(l,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=u&-u,n.lanes|=t,t=Ir(n.stateNode,l,t),jr(n,t),!1;case 1:if(e=n.type,r=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(An===null||!An.has(r))))return n.flags|=65536,u&=-u,n.lanes|=u,u=Xo(u),Ko(u,t,n,l),jr(n,u),!1}n=n.return}while(n!==null);return!1}var tc=Error(s(461)),Zt=!1;function It(t,e,n,l){e.child=t===null?Jf(e,null,n,l):In(e,t.child,n,l)}function Zo(t,e,n,l,u){n=n.render;var r=e.ref;if("ref"in l){var f={};for(var h in l)h!=="ref"&&(f[h]=l[h])}else f=l;return kn(e),l=Qr(t,e,n,f,r,u),h=Nr(),t!==null&&!Zt?(Hr(t,e,u),en(t,e,u)):(bt&&h&&mr(e),e.flags|=1,It(t,e,l,u),e.child)}function Vo(t,e,n,l,u){if(t===null){var r=n.type;return typeof r=="function"&&!hr(r)&&r.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=r,Jo(t,e,r,l,u)):(t=pu(n.type,null,l,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(r=t.child,!cc(t,u)){var f=r.memoizedProps;if(n=n.compare,n=n!==null?n:ca,n(f,l)&&t.ref===e.ref)return en(t,e,u)}return e.flags|=1,t=ke(r,l),t.ref=e.ref,t.return=e,e.child=t}function Jo(t,e,n,l,u){if(t!==null){var r=t.memoizedProps;if(ca(r,l)&&t.ref===e.ref)if(Zt=!1,e.pendingProps=l=r,cc(t,u))(t.flags&131072)!==0&&(Zt=!0);else return e.lanes=t.lanes,en(t,e,u)}return ec(t,e,n,l,u)}function Fo(t,e,n,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|n:n,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 ko(t,e,r,n,l)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&Ou(e,r!==null?r.cachePool:null),r!==null?$f(e,r):Dr(),Pf(e);else return l=e.lanes=536870912,ko(t,e,r!==null?r.baseLanes|n:n,n,l)}else r!==null?(Ou(e,r.cachePool),$f(e,r),_n(),e.memoizedState=null):(t!==null&&Ou(e,null),Dr(),_n());return It(t,e,u,n),e.child}function Ea(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function ko(t,e,n,l,u){var r=Tr();return r=r===null?null:{parent:Xt._currentValue,pool:r},e.memoizedState={baseLanes:n,cachePool:r},t!==null&&Ou(e,null),Dr(),Pf(e),t!==null&&zl(t,e,l,!0),e.childLanes=u,null}function Hu(t,e){return e=Bu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function $o(t,e,n){return In(e,t.child,null,n),t=Hu(e,e.pendingProps),t.flags|=2,be(e),e.memoizedState=null,t}function Rm(t,e,n){var l=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(bt){if(l.mode==="hidden")return t=Hu(e,l),e.lanes=536870912,Ea(null,t);if(Ur(e),(t=Rt)?(t=ch(t,De),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:yn!==null?{id:Ye,overflow:Ge}:null,retryLane:536870912,hydrationErrors:null},n=Rf(t),n.return=e,e.child=n,Pt=e,Rt=null)):t=null,t===null)throw mn(e);return e.lanes=536870912,null}return Hu(e,l)}var r=t.memoizedState;if(r!==null){var f=r.dehydrated;if(Ur(e),u)if(e.flags&256)e.flags&=-257,e=$o(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(s(558));else if(Zt||zl(t,e,n,!1),u=(n&t.childLanes)!==0,Zt||u){if(l=Dt,l!==null&&(f=ws(l,n),f!==0&&f!==r.retryLane))throw r.retryLane=f,Zn(t,f),de(l,t,f),tc;Fu(),e=$o(t,e,n)}else t=r.treeContext,Rt=Ue(f.nextSibling),Pt=e,bt=!0,vn=null,De=!1,t!==null&&Qf(e,t),e=Hu(e,l),e.flags|=4096;return e}return t=ke(t.child,{mode:l.mode,children:l.children}),t.ref=e.ref,e.child=t,t.return=e,t}function wu(t,e){var n=e.ref;if(n===null)t!==null&&t.ref!==null&&(e.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function ec(t,e,n,l,u){return kn(e),n=Qr(t,e,n,l,void 0,u),l=Nr(),t!==null&&!Zt?(Hr(t,e,u),en(t,e,u)):(bt&&l&&mr(e),e.flags|=1,It(t,e,n,u),e.child)}function Po(t,e,n,l,u,r){return kn(e),e.updateQueue=null,n=If(e,l,n,u),Wf(t),l=Nr(),t!==null&&!Zt?(Hr(t,e,r),en(t,e,r)):(bt&&l&&mr(e),e.flags|=1,It(t,e,n,r),e.child)}function Wo(t,e,n,l,u){if(kn(e),e.stateNode===null){var r=El,f=n.contextType;typeof f=="object"&&f!==null&&(r=Wt(f)),r=new n(l,r),e.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Wr,e.stateNode=r,r._reactInternals=e,r=e.stateNode,r.props=l,r.state=e.memoizedState,r.refs={},zr(e),f=n.contextType,r.context=typeof f=="object"&&f!==null?Wt(f):El,r.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Pr(e,n,f,l),r.state=e.memoizedState),typeof n.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&&Wr.enqueueReplaceState(r,r.state,null),ga(e,l,r,u),pa(),r.state=e.memoizedState),typeof r.componentDidMount=="function"&&(e.flags|=4194308),l=!0}else if(t===null){r=e.stateNode;var h=e.memoizedProps,g=el(n,h);r.props=g;var x=r.context,C=n.contextType;f=El,typeof C=="object"&&C!==null&&(f=Wt(C));var U=n.getDerivedStateFromProps;C=typeof U=="function"||typeof r.getSnapshotBeforeUpdate=="function",h=e.pendingProps!==h,C||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(h||x!==f)&&wo(e,r,l,f),gn=!1;var A=e.memoizedState;r.state=A,ga(e,l,r,u),pa(),x=e.memoizedState,h||A!==x||gn?(typeof U=="function"&&(Pr(e,n,U,l),x=e.memoizedState),(g=gn||Ho(e,n,g,l,A,x,f))?(C||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=x),r.props=l,r.state=x,r.context=f,l=g):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{r=e.stateNode,Mr(t,e),f=e.memoizedProps,C=el(n,f),r.props=C,U=e.pendingProps,A=r.context,x=n.contextType,g=El,typeof x=="object"&&x!==null&&(g=Wt(x)),h=n.getDerivedStateFromProps,(x=typeof h=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(f!==U||A!==g)&&wo(e,r,l,g),gn=!1,A=e.memoizedState,r.state=A,ga(e,l,r,u),pa();var z=e.memoizedState;f!==U||A!==z||gn||t!==null&&t.dependencies!==null&&bu(t.dependencies)?(typeof h=="function"&&(Pr(e,n,h,l),z=e.memoizedState),(C=gn||Ho(e,n,C,l,A,z,g)||t!==null&&t.dependencies!==null&&bu(t.dependencies))?(x||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(l,z,g),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(l,z,g)),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=z),r.props=l,r.state=z,r.context=g,l=C):(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,wu(t,e),l=(e.flags&128)!==0,r||l?(r=e.stateNode,n=l&&typeof n.getDerivedStateFromError!="function"?null:r.render(),e.flags|=1,t!==null&&l?(e.child=In(e,t.child,null,u),e.child=In(e,null,n,u)):It(t,e,n,u),e.memoizedState=r.state,t=e.child):t=en(t,e,u),t}function Io(t,e,n,l){return Jn(),e.flags|=256,It(t,e,n,l),e.child}var nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lc(t){return{baseLanes:t,cachePool:Gf()}}function ac(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Oe),t}function td(t,e,n){var l=e.pendingProps,u=!1,r=(e.flags&128)!==0,f;if((f=r)||(f=t!==null&&t.memoizedState===null?!1:(Yt.current&2)!==0),f&&(u=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(bt){if(u?On(e):_n(),(t=Rt)?(t=ch(t,De),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:yn!==null?{id:Ye,overflow:Ge}:null,retryLane:536870912,hydrationErrors:null},n=Rf(t),n.return=e,e.child=n,Pt=e,Rt=null)):t=null,t===null)throw mn(e);return Yc(t)?e.lanes=32:e.lanes=536870912,null}var h=l.children;return l=l.fallback,u?(_n(),u=e.mode,h=Bu({mode:"hidden",children:h},u),l=Vn(l,u,n,null),h.return=e,l.return=e,h.sibling=l,e.child=h,l=e.child,l.memoizedState=lc(n),l.childLanes=ac(t,f,n),e.memoizedState=nc,Ea(null,l)):(On(e),uc(e,h))}var g=t.memoizedState;if(g!==null&&(h=g.dehydrated,h!==null)){if(r)e.flags&256?(On(e),e.flags&=-257,e=ic(t,e,n)):e.memoizedState!==null?(_n(),e.child=t.child,e.flags|=128,e=null):(_n(),h=l.fallback,u=e.mode,l=Bu({mode:"visible",children:l.children},u),h=Vn(h,u,n,null),h.flags|=2,l.return=e,h.return=e,l.sibling=h,e.child=l,In(e,t.child,null,n),l=e.child,l.memoizedState=lc(n),l.childLanes=ac(t,f,n),e.memoizedState=nc,e=Ea(null,l));else if(On(e),Yc(h)){if(f=h.nextSibling&&h.nextSibling.dataset,f)var x=f.dgst;f=x,l=Error(s(419)),l.stack="",l.digest=f,oa({value:l,source:null,stack:null}),e=ic(t,e,n)}else if(Zt||zl(t,e,n,!1),f=(n&t.childLanes)!==0,Zt||f){if(f=Dt,f!==null&&(l=ws(f,n),l!==0&&l!==g.retryLane))throw g.retryLane=l,Zn(t,l),de(f,t,l),tc;Bc(h)||Fu(),e=ic(t,e,n)}else Bc(h)?(e.flags|=192,e.child=t.child,e=null):(t=g.treeContext,Rt=Ue(h.nextSibling),Pt=e,bt=!0,vn=null,De=!1,t!==null&&Qf(e,t),e=uc(e,l.children),e.flags|=4096);return e}return u?(_n(),h=l.fallback,u=e.mode,g=t.child,x=g.sibling,l=ke(g,{mode:"hidden",children:l.children}),l.subtreeFlags=g.subtreeFlags&65011712,x!==null?h=ke(x,h):(h=Vn(h,u,n,null),h.flags|=2),h.return=e,l.return=e,l.sibling=h,e.child=l,Ea(null,l),l=e.child,h=t.child.memoizedState,h===null?h=lc(n):(u=h.cachePool,u!==null?(g=Xt._currentValue,u=u.parent!==g?{parent:g,pool:g}:u):u=Gf(),h={baseLanes:h.baseLanes|n,cachePool:u}),l.memoizedState=h,l.childLanes=ac(t,f,n),e.memoizedState=nc,Ea(t.child,l)):(On(e),n=t.child,t=n.sibling,n=ke(n,{mode:"visible",children:l.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function uc(t,e){return e=Bu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function Bu(t,e){return t=pe(22,t,null,e),t.lanes=0,t}function ic(t,e,n){return In(e,t.child,null,n),t=uc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function ed(t,e,n){t.lanes|=e;var l=t.alternate;l!==null&&(l.lanes|=e),Or(t.return,e,n)}function rc(t,e,n,l,u,r){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:u,treeForkCount:r}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=n,f.tailMode=u,f.treeForkCount=r)}function nd(t,e,n){var l=e.pendingProps,u=l.revealOrder,r=l.tail;l=l.children;var f=Yt.current,h=(f&2)!==0;if(h?(f=f&1|2,e.flags|=128):f&=1,H(Yt,f),It(t,e,l,n),l=bt?fa:0,!h&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&ed(t,n,e);else if(t.tag===19)ed(t,n,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(n=e.child,u=null;n!==null;)t=n.alternate,t!==null&&zu(t)===null&&(u=n),n=n.sibling;n=u,n===null?(u=e.child,e.child=null):(u=n.sibling,n.sibling=null),rc(e,!1,u,n,r,l);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&zu(t)===null){e.child=u;break}t=u.sibling,u.sibling=n,n=u,u=t}rc(e,!0,n,null,r,l);break;case"together":rc(e,!1,null,null,void 0,l);break;default:e.memoizedState=null}return e.child}function en(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Tn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(zl(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(s(153));if(e.child!==null){for(t=e.child,n=ke(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=ke(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function cc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&bu(t)))}function Um(t,e,n){switch(e.tag){case 3:le(e,e.stateNode.containerInfo),pn(e,Xt,t.memoizedState.cache),Jn();break;case 27:case 5:kl(e);break;case 4:le(e,e.stateNode.containerInfo);break;case 10:pn(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,Ur(e),null;break;case 13:var l=e.memoizedState;if(l!==null)return l.dehydrated!==null?(On(e),e.flags|=128,null):(n&e.child.childLanes)!==0?td(t,e,n):(On(e),t=en(t,e,n),t!==null?t.sibling:null);On(e);break;case 19:var u=(t.flags&128)!==0;if(l=(n&e.childLanes)!==0,l||(zl(t,e,n,!1),l=(n&e.childLanes)!==0),u){if(l)return nd(t,e,n);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),H(Yt,Yt.current),l)break;return null;case 22:return e.lanes=0,Fo(t,e,n,e.pendingProps);case 24:pn(e,Xt,t.memoizedState.cache)}return en(t,e,n)}function ld(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Zt=!0;else{if(!cc(t,n)&&(e.flags&128)===0)return Zt=!1,Um(t,e,n);Zt=(t.flags&131072)!==0}else Zt=!1,bt&&(e.flags&1048576)!==0&&qf(e,fa,e.index);switch(e.lanes=0,e.tag){case 16:t:{var l=e.pendingProps;if(t=Pn(e.elementType),e.type=t,typeof t=="function")hr(t)?(l=el(t,l),e.tag=1,e=Wo(null,e,t,l,n)):(e.tag=0,e=ec(null,e,t,l,n));else{if(t!=null){var u=t.$$typeof;if(u===qt){e.tag=11,e=Zo(null,e,t,l,n);break t}else if(u===j){e.tag=14,e=Vo(null,e,t,l,n);break t}}throw e=it(t)||t,Error(s(306,e,""))}}return e;case 0:return ec(t,e,e.type,e.pendingProps,n);case 1:return l=e.type,u=el(l,e.pendingProps),Wo(t,e,l,u,n);case 3:t:{if(le(e,e.stateNode.containerInfo),t===null)throw Error(s(387));l=e.pendingProps;var r=e.memoizedState;u=r.element,Mr(t,e),ga(e,l,null,n);var f=e.memoizedState;if(l=f.cache,pn(e,Xt,l),l!==r.cache&&_r(e,[Xt],n,!0),pa(),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=Io(t,e,l,n);break t}else if(l!==u){u=Me(Error(s(424)),e),oa(u),e=Io(t,e,l,n);break t}else{switch(t=e.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(Rt=Ue(t.firstChild),Pt=e,bt=!0,vn=null,De=!0,n=Jf(e,null,l,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Jn(),l===u){e=en(t,e,n);break t}It(t,e,l,n)}e=e.child}return e;case 26:return wu(t,e),t===null?(n=yh(e.type,null,e.pendingProps,null))?e.memoizedState=n:bt||(n=e.type,t=e.pendingProps,l=ei(rt.current).createElement(n),l[$t]=e,l[ie]=t,te(l,n,t),Ft(l),e.stateNode=l):e.memoizedState=yh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return kl(e),t===null&&bt&&(l=e.stateNode=oh(e.type,e.pendingProps,rt.current),Pt=e,De=!0,u=Rt,Cn(e.type)?(Gc=u,Rt=Ue(l.firstChild)):Rt=u),It(t,e,e.pendingProps.children,n),wu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&bt&&((u=l=Rt)&&(l=sp(l,e.type,e.pendingProps,De),l!==null?(e.stateNode=l,Pt=e,Rt=Ue(l.firstChild),De=!1,u=!0):u=!1),u||mn(e)),kl(e),u=e.type,r=e.pendingProps,f=t!==null?t.memoizedProps:null,l=r.children,Nc(u,r)?l=null:f!==null&&Nc(u,f)&&(e.flags|=32),e.memoizedState!==null&&(u=Qr(t,e,xm,null,null,n),wa._currentValue=u),wu(t,e),It(t,e,l,n),e.child;case 6:return t===null&&bt&&((t=n=Rt)&&(n=fp(n,e.pendingProps,De),n!==null?(e.stateNode=n,Pt=e,Rt=null,t=!0):t=!1),t||mn(e)),null;case 13:return td(t,e,n);case 4:return le(e,e.stateNode.containerInfo),l=e.pendingProps,t===null?e.child=In(e,null,l,n):It(t,e,l,n),e.child;case 11:return Zo(t,e,e.type,e.pendingProps,n);case 7:return It(t,e,e.pendingProps,n),e.child;case 8:return It(t,e,e.pendingProps.children,n),e.child;case 12:return It(t,e,e.pendingProps.children,n),e.child;case 10:return l=e.pendingProps,pn(e,e.type,l.value),It(t,e,l.children,n),e.child;case 9:return u=e.type._context,l=e.pendingProps.children,kn(e),u=Wt(u),l=l(u),e.flags|=1,It(t,e,l,n),e.child;case 14:return Vo(t,e,e.type,e.pendingProps,n);case 15:return Jo(t,e,e.type,e.pendingProps,n);case 19:return nd(t,e,n);case 31:return Rm(t,e,n);case 22:return Fo(t,e,n,e.pendingProps);case 24:return kn(e),l=Wt(Xt),t===null?(u=Tr(),u===null&&(u=Dt,r=Er(),u.pooledCache=r,r.refCount++,r!==null&&(u.pooledCacheLanes|=n),u=r),e.memoizedState={parent:l,cache:u},zr(e),pn(e,Xt,u)):((t.lanes&n)!==0&&(Mr(t,e),ga(e,null,null,n),pa()),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),pn(e,Xt,l)):(l=r.cache,pn(e,Xt,l),l!==u.cache&&_r(e,[Xt],n,!0))),It(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(s(156,e.tag))}function nn(t){t.flags|=4}function sc(t,e,n,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(Cd())t.flags|=8192;else throw Wn=Eu,Ar}else t.flags&=-16777217}function ad(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!bh(e))if(Cd())t.flags|=8192;else throw Wn=Eu,Ar}function Yu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Qs():536870912,t.lanes|=e,Bl|=e)}function xa(t,e){if(!bt)switch(t.tailMode){case"hidden":e=t.tail;for(var n=null;e!==null;)e.alternate!==null&&(n=e),e=e.sibling;n===null?t.tail=null:n.sibling=null;break;case"collapsed":n=t.tail;for(var l=null;n!==null;)n.alternate!==null&&(l=n),n=n.sibling;l===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function Ut(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,l=0;if(e)for(var u=t.child;u!==null;)n|=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;)n|=u.lanes|u.childLanes,l|=u.subtreeFlags,l|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=l,t.childLanes=n,e}function qm(t,e,n){var l=e.pendingProps;switch(pr(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ut(e),null;case 1:return Ut(e),null;case 3:return n=e.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),e.memoizedState.cache!==l&&(e.flags|=2048),We(Xt),Bt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Al(e)?nn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,br())),Ut(e),null;case 26:var u=e.type,r=e.memoizedState;return t===null?(nn(e),r!==null?(Ut(e),ad(e,r)):(Ut(e),sc(e,u,null,l,n))):r?r!==t.memoizedState?(nn(e),Ut(e),ad(e,r)):(Ut(e),e.flags&=-16777217):(t=t.memoizedProps,t!==l&&nn(e),Ut(e),sc(e,u,t,l,n)),null;case 27:if(Pa(e),n=rt.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&nn(e);else{if(!l){if(e.stateNode===null)throw Error(s(166));return Ut(e),null}t=w.current,Al(e)?Nf(e):(t=oh(u,l,n),e.stateNode=t,nn(e))}return Ut(e),null;case 5:if(Pa(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==l&&nn(e);else{if(!l){if(e.stateNode===null)throw Error(s(166));return Ut(e),null}if(r=w.current,Al(e))Nf(e);else{var f=ei(rt.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[$t]=e,r[ie]=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(te(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&&nn(e)}}return Ut(e),sc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==l&&nn(e);else{if(typeof l!="string"&&e.stateNode===null)throw Error(s(166));if(t=rt.current,Al(e)){if(t=e.stateNode,n=e.memoizedProps,l=null,u=Pt,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}t[$t]=e,t=!!(t.nodeValue===n||l!==null&&l.suppressHydrationWarning===!0||th(t.nodeValue,n)),t||mn(e,!0)}else t=ei(t).createTextNode(l),t[$t]=e,e.stateNode=t}return Ut(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(l=Al(e),n!==null){if(t===null){if(!l)throw Error(s(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(557));t[$t]=e}else Jn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),t=!1}else n=br(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(be(e),e):(be(e),null);if((e.flags&128)!==0)throw Error(s(558))}return Ut(e),null;case 13:if(l=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Al(e),l!==null&&l.dehydrated!==null){if(t===null){if(!u)throw Error(s(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(s(317));u[$t]=e}else Jn(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Ut(e),u=!1}else u=br(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(be(e),e):(be(e),null)}return be(e),(e.flags&128)!==0?(e.lanes=n,e):(n=l!==null,t=t!==null&&t.memoizedState!==null,n&&(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)),n!==t&&n&&(e.child.flags|=8192),Yu(e,e.updateQueue),Ut(e),null);case 4:return Bt(),t===null&&Dc(e.stateNode.containerInfo),Ut(e),null;case 10:return We(e.type),Ut(e),null;case 19:if(D(Yt),l=e.memoizedState,l===null)return Ut(e),null;if(u=(e.flags&128)!==0,r=l.rendering,r===null)if(u)xa(l,!1);else{if(Ht!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=zu(t),r!==null){for(e.flags|=128,xa(l,!1),t=r.updateQueue,e.updateQueue=t,Yu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Df(n,t),n=n.sibling;return H(Yt,Yt.current&1|2),bt&&$e(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&he()>Zu&&(e.flags|=128,u=!0,xa(l,!1),e.lanes=4194304)}else{if(!u)if(t=zu(r),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,Yu(e,t),xa(l,!0),l.tail===null&&l.tailMode==="hidden"&&!r.alternate&&!bt)return Ut(e),null}else 2*he()-l.renderingStartTime>Zu&&n!==536870912&&(e.flags|=128,u=!0,xa(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=he(),t.sibling=null,n=Yt.current,H(Yt,u?n&1|2:n&1),bt&&$e(e,l.treeForkCount),t):(Ut(e),null);case 22:case 23:return be(e),Rr(),l=e.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(e.flags|=8192):l&&(e.flags|=8192),l?(n&536870912)!==0&&(e.flags&128)===0&&(Ut(e),e.subtreeFlags&6&&(e.flags|=8192)):Ut(e),n=e.updateQueue,n!==null&&Yu(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),l=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(l=e.memoizedState.cachePool.pool),l!==n&&(e.flags|=2048),t!==null&&D($n),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),We(Xt),Ut(e),null;case 25:return null;case 30:return null}throw Error(s(156,e.tag))}function Qm(t,e){switch(pr(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return We(Xt),Bt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Pa(e),null;case 31:if(e.memoizedState!==null){if(be(e),e.alternate===null)throw Error(s(340));Jn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(be(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(s(340));Jn()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return D(Yt),null;case 4:return Bt(),null;case 10:return We(e.type),null;case 22:case 23:return be(e),Rr(),t!==null&&D($n),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return We(Xt),null;case 25:return null;default:return null}}function ud(t,e){switch(pr(e),e.tag){case 3:We(Xt),Bt();break;case 26:case 27:case 5:Pa(e);break;case 4:Bt();break;case 31:e.memoizedState!==null&&be(e);break;case 13:be(e);break;case 19:D(Yt);break;case 10:We(e.type);break;case 22:case 23:be(e),Rr(),t!==null&&D($n);break;case 24:We(Xt)}}function Ta(t,e){try{var n=e.updateQueue,l=n!==null?n.lastEffect:null;if(l!==null){var u=l.next;n=u;do{if((n.tag&t)===t){l=void 0;var r=n.create,f=n.inst;l=r(),f.destroy=l}n=n.next}while(n!==u)}}catch(h){zt(e,e.return,h)}}function En(t,e,n){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,h=f.destroy;if(h!==void 0){f.destroy=void 0,u=e;var g=n,x=h;try{x()}catch(C){zt(u,g,C)}}}l=l.next}while(l!==r)}}catch(C){zt(e,e.return,C)}}function id(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{kf(e,n)}catch(l){zt(t,t.return,l)}}}function rd(t,e,n){n.props=el(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){zt(t,e,l)}}function Aa(t,e){try{var n=t.ref;if(n!==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 n=="function"?t.refCleanup=n(l):n.current=l}}catch(u){zt(t,e,u)}}function Le(t,e){var n=t.ref,l=t.refCleanup;if(n!==null)if(typeof l=="function")try{l()}catch(u){zt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){zt(t,e,u)}else n.current=null}function cd(t){var e=t.type,n=t.memoizedProps,l=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&l.focus();break t;case"img":n.src?l.src=n.src:n.srcSet&&(l.srcset=n.srcSet)}}catch(u){zt(t,t.return,u)}}function fc(t,e,n){try{var l=t.stateNode;lp(l,t.type,n,e),l[ie]=e}catch(u){zt(t,t.return,u)}}function sd(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Cn(t.type)||t.tag===4}function oc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||sd(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&&Cn(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 dc(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(t,e):(e=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,e.appendChild(t),n=n._reactRootContainer,n!=null||e.onclick!==null||(e.onclick=Je));else if(l!==4&&(l===27&&Cn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(dc(t,e,n),t=t.sibling;t!==null;)dc(t,e,n),t=t.sibling}function Gu(t,e,n){var l=t.tag;if(l===5||l===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(l!==4&&(l===27&&Cn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(Gu(t,e,n),t=t.sibling;t!==null;)Gu(t,e,n),t=t.sibling}function fd(t){var e=t.stateNode,n=t.memoizedProps;try{for(var l=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);te(e,l,n),e[$t]=t,e[ie]=n}catch(r){zt(t,t.return,r)}}var ln=!1,Vt=!1,hc=!1,od=typeof WeakSet=="function"?WeakSet:Set,kt=null;function Nm(t,e){if(t=t.containerInfo,qc=ci,t=_f(t),ir(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var l=n.getSelection&&n.getSelection();if(l&&l.rangeCount!==0){n=l.anchorNode;var u=l.anchorOffset,r=l.focusNode;l=l.focusOffset;try{n.nodeType,r.nodeType}catch{n=null;break t}var f=0,h=-1,g=-1,x=0,C=0,U=t,A=null;e:for(;;){for(var z;U!==n||u!==0&&U.nodeType!==3||(h=f+u),U!==r||l!==0&&U.nodeType!==3||(g=f+l),U.nodeType===3&&(f+=U.nodeValue.length),(z=U.firstChild)!==null;)A=U,U=z;for(;;){if(U===t)break e;if(A===n&&++x===u&&(h=f),A===r&&++C===l&&(g=f),(z=U.nextSibling)!==null)break;U=A,A=U.parentNode}U=z}n=h===-1||g===-1?null:{start:h,end:g}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qc={focusedElem:t,selectionRange:n},ci=!1,kt=e;kt!==null;)if(e=kt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,kt=t;else for(;kt!==null;){switch(e=kt,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(n=0;n<t.length;n++)u=t[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&r!==null){t=void 0,n=e,u=r.memoizedProps,r=r.memoizedState,l=n.stateNode;try{var F=el(n.type,u);t=l.getSnapshotBeforeUpdate(F,r),l.__reactInternalSnapshotBeforeUpdate=t}catch(lt){zt(n,n.return,lt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)wc(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":wc(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(s(163))}if(t=e.sibling,t!==null){t.return=e.return,kt=t;break}kt=e.return}}function dd(t,e,n){var l=n.flags;switch(n.tag){case 0:case 11:case 15:un(t,n),l&4&&Ta(5,n);break;case 1:if(un(t,n),l&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){zt(n,n.return,f)}else{var u=el(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){zt(n,n.return,f)}}l&64&&id(n),l&512&&Aa(n,n.return);break;case 3:if(un(t,n),l&64&&(t=n.updateQueue,t!==null)){if(e=null,n.child!==null)switch(n.child.tag){case 27:case 5:e=n.child.stateNode;break;case 1:e=n.child.stateNode}try{kf(t,e)}catch(f){zt(n,n.return,f)}}break;case 27:e===null&&l&4&&fd(n);case 26:case 5:un(t,n),e===null&&l&4&&cd(n),l&512&&Aa(n,n.return);break;case 12:un(t,n);break;case 31:un(t,n),l&4&&vd(t,n);break;case 13:un(t,n),l&4&&md(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Zm.bind(null,n),op(t,n))));break;case 22:if(l=n.memoizedState!==null||ln,!l){e=e!==null&&e.memoizedState!==null||Vt,u=ln;var r=Vt;ln=l,(Vt=e)&&!r?rn(t,n,(n.subtreeFlags&8772)!==0):un(t,n),ln=u,Vt=r}break;case 30:break;default:un(t,n)}}function hd(t){var e=t.alternate;e!==null&&(t.alternate=null,hd(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Xi(e)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Qt=null,ce=!1;function an(t,e,n){for(n=n.child;n!==null;)yd(t,e,n),n=n.sibling}function yd(t,e,n){if(ye&&typeof ye.onCommitFiberUnmount=="function")try{ye.onCommitFiberUnmount($l,n)}catch{}switch(n.tag){case 26:Vt||Le(n,e),an(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Vt||Le(n,e);var l=Qt,u=ce;Cn(n.type)&&(Qt=n.stateNode,ce=!1),an(t,e,n),Qa(n.stateNode),Qt=l,ce=u;break;case 5:Vt||Le(n,e);case 6:if(l=Qt,u=ce,Qt=null,an(t,e,n),Qt=l,ce=u,Qt!==null)if(ce)try{(Qt.nodeType===9?Qt.body:Qt.nodeName==="HTML"?Qt.ownerDocument.body:Qt).removeChild(n.stateNode)}catch(r){zt(n,e,r)}else try{Qt.removeChild(n.stateNode)}catch(r){zt(n,e,r)}break;case 18:Qt!==null&&(ce?(t=Qt,ih(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Jl(t)):ih(Qt,n.stateNode));break;case 4:l=Qt,u=ce,Qt=n.stateNode.containerInfo,ce=!0,an(t,e,n),Qt=l,ce=u;break;case 0:case 11:case 14:case 15:En(2,n,e),Vt||En(4,n,e),an(t,e,n);break;case 1:Vt||(Le(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&rd(n,e,l)),an(t,e,n);break;case 21:an(t,e,n);break;case 22:Vt=(l=Vt)||n.memoizedState!==null,an(t,e,n),Vt=l;break;default:an(t,e,n)}}function vd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Jl(t)}catch(n){zt(e,e.return,n)}}}function md(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Jl(t)}catch(n){zt(e,e.return,n)}}function Hm(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new od),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new od),e;default:throw Error(s(435,t.tag))}}function Lu(t,e){var n=Hm(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var u=Vm.bind(null,t,l);l.then(u,u)}})}function se(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var u=n[l],r=t,f=e,h=f;t:for(;h!==null;){switch(h.tag){case 27:if(Cn(h.type)){Qt=h.stateNode,ce=!1;break t}break;case 5:Qt=h.stateNode,ce=!1;break t;case 3:case 4:Qt=h.stateNode.containerInfo,ce=!0;break t}h=h.return}if(Qt===null)throw Error(s(160));yd(r,f,u),Qt=null,ce=!1,r=u.alternate,r!==null&&(r.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)pd(e,t),e=e.sibling}var Ne=null;function pd(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:se(e,t),fe(t),l&4&&(En(3,t,t.return),Ta(3,t),En(5,t,t.return));break;case 1:se(e,t),fe(t),l&512&&(Vt||n===null||Le(n,n.return)),l&64&&ln&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?l:n.concat(l))));break;case 26:var u=Ne;if(se(e,t),fe(t),l&512&&(Vt||n===null||Le(n,n.return)),l&4){var r=n!==null?n.memoizedState:null;if(l=t.memoizedState,n===null)if(l===null)if(t.stateNode===null){t:{l=t.type,n=t.memoizedProps,u=u.ownerDocument||u;e:switch(l){case"title":r=u.getElementsByTagName("title")[0],(!r||r[Il]||r[$t]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=u.createElement(l),u.head.insertBefore(r,u.querySelector("head > title"))),te(r,l,n),r[$t]=t,Ft(r),l=r;break t;case"link":var f=ph("link","href",u).get(l+(n.href||""));if(f){for(var h=0;h<f.length;h++)if(r=f[h],r.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&r.getAttribute("rel")===(n.rel==null?null:n.rel)&&r.getAttribute("title")===(n.title==null?null:n.title)&&r.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(h,1);break e}}r=u.createElement(l),te(r,l,n),u.head.appendChild(r);break;case"meta":if(f=ph("meta","content",u).get(l+(n.content||""))){for(h=0;h<f.length;h++)if(r=f[h],r.getAttribute("content")===(n.content==null?null:""+n.content)&&r.getAttribute("name")===(n.name==null?null:n.name)&&r.getAttribute("property")===(n.property==null?null:n.property)&&r.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(h,1);break e}}r=u.createElement(l),te(r,l,n),u.head.appendChild(r);break;default:throw Error(s(468,l))}r[$t]=t,Ft(r),l=r}t.stateNode=l}else gh(u,t.type,t.stateNode);else t.stateNode=mh(u,l,t.memoizedProps);else r!==l?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,l===null?gh(u,t.type,t.stateNode):mh(u,l,t.memoizedProps)):l===null&&t.stateNode!==null&&fc(t,t.memoizedProps,n.memoizedProps)}break;case 27:se(e,t),fe(t),l&512&&(Vt||n===null||Le(n,n.return)),n!==null&&l&4&&fc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(se(e,t),fe(t),l&512&&(Vt||n===null||Le(n,n.return)),t.flags&32){u=t.stateNode;try{ml(u,"")}catch(F){zt(t,t.return,F)}}l&4&&t.stateNode!=null&&(u=t.memoizedProps,fc(t,u,n!==null?n.memoizedProps:u)),l&1024&&(hc=!0);break;case 6:if(se(e,t),fe(t),l&4){if(t.stateNode===null)throw Error(s(162));l=t.memoizedProps,n=t.stateNode;try{n.nodeValue=l}catch(F){zt(t,t.return,F)}}break;case 3:if(ai=null,u=Ne,Ne=ni(e.containerInfo),se(e,t),Ne=u,fe(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Jl(e.containerInfo)}catch(F){zt(t,t.return,F)}hc&&(hc=!1,gd(t));break;case 4:l=Ne,Ne=ni(t.stateNode.containerInfo),se(e,t),fe(t),Ne=l;break;case 12:se(e,t),fe(t);break;case 31:se(e,t),fe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Lu(t,l)));break;case 13:se(e,t),fe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ku=he()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Lu(t,l)));break;case 22:u=t.memoizedState!==null;var g=n!==null&&n.memoizedState!==null,x=ln,C=Vt;if(ln=x||u,Vt=C||g,se(e,t),Vt=C,ln=x,fe(t),l&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(n===null||g||ln||Vt||nl(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){g=n=e;try{if(r=g.stateNode,u)f=r.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{h=g.stateNode;var U=g.memoizedProps.style,A=U!=null&&U.hasOwnProperty("display")?U.display:null;h.style.display=A==null||typeof A=="boolean"?"":(""+A).trim()}}catch(F){zt(g,g.return,F)}}}else if(e.tag===6){if(n===null){g=e;try{g.stateNode.nodeValue=u?"":g.memoizedProps}catch(F){zt(g,g.return,F)}}}else if(e.tag===18){if(n===null){g=e;try{var z=g.stateNode;u?rh(z,!0):rh(g.stateNode,!1)}catch(F){zt(g,g.return,F)}}}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;n===e&&(n=null),e=e.return}n===e&&(n=null),e.sibling.return=e.return,e=e.sibling}l&4&&(l=t.updateQueue,l!==null&&(n=l.retryQueue,n!==null&&(l.retryQueue=null,Lu(t,n))));break;case 19:se(e,t),fe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Lu(t,l)));break;case 30:break;case 21:break;default:se(e,t),fe(t)}}function fe(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(sd(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var u=n.stateNode,r=oc(t);Gu(t,r,u);break;case 5:var f=n.stateNode;n.flags&32&&(ml(f,""),n.flags&=-33);var h=oc(t);Gu(t,h,f);break;case 3:case 4:var g=n.stateNode.containerInfo,x=oc(t);dc(t,x,g);break;default:throw Error(s(161))}}catch(C){zt(t,t.return,C)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function gd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;gd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function un(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)dd(t,e.alternate,e),e=e.sibling}function nl(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:En(4,e,e.return),nl(e);break;case 1:Le(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&rd(e,e.return,n),nl(e);break;case 27:Qa(e.stateNode);case 26:case 5:Le(e,e.return),nl(e);break;case 22:e.memoizedState===null&&nl(e);break;case 30:nl(e);break;default:nl(e)}t=t.sibling}}function rn(t,e,n){for(n=n&&(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:rn(u,r,n),Ta(4,r);break;case 1:if(rn(u,r,n),l=r,u=l.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(x){zt(l,l.return,x)}if(l=r,u=l.updateQueue,u!==null){var h=l.stateNode;try{var g=u.shared.hiddenCallbacks;if(g!==null)for(u.shared.hiddenCallbacks=null,u=0;u<g.length;u++)Ff(g[u],h)}catch(x){zt(l,l.return,x)}}n&&f&64&&id(r),Aa(r,r.return);break;case 27:fd(r);case 26:case 5:rn(u,r,n),n&&l===null&&f&4&&cd(r),Aa(r,r.return);break;case 12:rn(u,r,n);break;case 31:rn(u,r,n),n&&f&4&&vd(u,r);break;case 13:rn(u,r,n),n&&f&4&&md(u,r);break;case 22:r.memoizedState===null&&rn(u,r,n),Aa(r,r.return);break;case 30:break;default:rn(u,r,n)}e=e.sibling}}function yc(t,e){var n=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),t=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),t!==n&&(t!=null&&t.refCount++,n!=null&&da(n))}function vc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&da(t))}function He(t,e,n,l){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)bd(t,e,n,l),e=e.sibling}function bd(t,e,n,l){var u=e.flags;switch(e.tag){case 0:case 11:case 15:He(t,e,n,l),u&2048&&Ta(9,e);break;case 1:He(t,e,n,l);break;case 3:He(t,e,n,l),u&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&da(t)));break;case 12:if(u&2048){He(t,e,n,l),t=e.stateNode;try{var r=e.memoizedProps,f=r.id,h=r.onPostCommit;typeof h=="function"&&h(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(g){zt(e,e.return,g)}}else He(t,e,n,l);break;case 31:He(t,e,n,l);break;case 13:He(t,e,n,l);break;case 23:break;case 22:r=e.stateNode,f=e.alternate,e.memoizedState!==null?r._visibility&2?He(t,e,n,l):za(t,e):r._visibility&2?He(t,e,n,l):(r._visibility|=2,Nl(t,e,n,l,(e.subtreeFlags&10256)!==0||!1)),u&2048&&yc(f,e);break;case 24:He(t,e,n,l),u&2048&&vc(e.alternate,e);break;default:He(t,e,n,l)}}function Nl(t,e,n,l,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var r=t,f=e,h=n,g=l,x=f.flags;switch(f.tag){case 0:case 11:case 15:Nl(r,f,h,g,u),Ta(8,f);break;case 23:break;case 22:var C=f.stateNode;f.memoizedState!==null?C._visibility&2?Nl(r,f,h,g,u):za(r,f):(C._visibility|=2,Nl(r,f,h,g,u)),u&&x&2048&&yc(f.alternate,f);break;case 24:Nl(r,f,h,g,u),u&&x&2048&&vc(f.alternate,f);break;default:Nl(r,f,h,g,u)}e=e.sibling}}function za(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,l=e,u=l.flags;switch(l.tag){case 22:za(n,l),u&2048&&yc(l.alternate,l);break;case 24:za(n,l),u&2048&&vc(l.alternate,l);break;default:za(n,l)}e=e.sibling}}var Ma=8192;function Hl(t,e,n){if(t.subtreeFlags&Ma)for(t=t.child;t!==null;)Sd(t,e,n),t=t.sibling}function Sd(t,e,n){switch(t.tag){case 26:Hl(t,e,n),t.flags&Ma&&t.memoizedState!==null&&Ep(n,Ne,t.memoizedState,t.memoizedProps);break;case 5:Hl(t,e,n);break;case 3:case 4:var l=Ne;Ne=ni(t.stateNode.containerInfo),Hl(t,e,n),Ne=l;break;case 22:t.memoizedState===null&&(l=t.alternate,l!==null&&l.memoizedState!==null?(l=Ma,Ma=16777216,Hl(t,e,n),Ma=l):Hl(t,e,n));break;default:Hl(t,e,n)}}function Od(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 ja(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];kt=l,Ed(l,t)}Od(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)_d(t),t=t.sibling}function _d(t){switch(t.tag){case 0:case 11:case 15:ja(t),t.flags&2048&&En(9,t,t.return);break;case 3:ja(t);break;case 12:ja(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Xu(t)):ja(t);break;default:ja(t)}}function Xu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var l=e[n];kt=l,Ed(l,t)}Od(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:En(8,e,e.return),Xu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Xu(e));break;default:Xu(e)}t=t.sibling}}function Ed(t,e){for(;kt!==null;){var n=kt;switch(n.tag){case 0:case 11:case 15:En(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var l=n.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:da(n.memoizedState.cache)}if(l=n.child,l!==null)l.return=n,kt=l;else t:for(n=t;kt!==null;){l=kt;var u=l.sibling,r=l.return;if(hd(l),l===n){kt=null;break t}if(u!==null){u.return=r,kt=u;break t}kt=r}}}var wm={getCacheForType:function(t){var e=Wt(Xt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return Wt(Xt).controller.signal}},Bm=typeof WeakMap=="function"?WeakMap:Map,xt=0,Dt=null,vt=null,pt=0,At=0,Se=null,xn=!1,wl=!1,mc=!1,cn=0,Ht=0,Tn=0,ll=0,pc=0,Oe=0,Bl=0,Ca=null,oe=null,gc=!1,Ku=0,xd=0,Zu=1/0,Vu=null,An=null,Jt=0,zn=null,Yl=null,sn=0,bc=0,Sc=null,Td=null,Da=0,Oc=null;function _e(){return(xt&2)!==0&&pt!==0?pt&-pt:T.T!==null?zc():Bs()}function Ad(){if(Oe===0)if((pt&536870912)===0||bt){var t=tu;tu<<=1,(tu&3932160)===0&&(tu=262144),Oe=t}else Oe=536870912;return t=ge.current,t!==null&&(t.flags|=32),Oe}function de(t,e,n){(t===Dt&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(Gl(t,0),Mn(t,pt,Oe,!1)),Wl(t,n),((xt&2)===0||t!==Dt)&&(t===Dt&&((xt&2)===0&&(ll|=n),Ht===4&&Mn(t,pt,Oe,!1)),Xe(t))}function zd(t,e,n){if((xt&6)!==0)throw Error(s(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Pl(t,e),u=l?Lm(t,e):Ec(t,e,!0),r=l;do{if(u===0){wl&&!l&&Mn(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!Ym(n)){u=Ec(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 h=t;u=Ca;var g=h.current.memoizedState.isDehydrated;if(g&&(Gl(h,f).flags|=256),f=Ec(h,f,!1),f!==2){if(mc&&!g){h.errorRecoveryDisabledLanes|=r,ll|=r,u=4;break t}r=oe,oe=u,r!==null&&(oe===null?oe=r:oe.push.apply(oe,r))}u=f}if(r=!1,u!==2)continue}}if(u===1){Gl(t,0),Mn(t,e,0,!0);break}t:{switch(l=t,r=u,r){case 0:case 1:throw Error(s(345));case 4:if((e&4194048)!==e)break;case 6:Mn(l,e,Oe,!xn);break t;case 2:oe=null;break;case 3:case 5:break;default:throw Error(s(329))}if((e&62914560)===e&&(u=Ku+300-he(),10<u)){if(Mn(l,e,Oe,!xn),nu(l,0,!0)!==0)break t;sn=e,l.timeoutHandle=ah(Md.bind(null,l,n,oe,Vu,gc,e,Oe,ll,Bl,xn,r,"Throttled",-0,0),u);break t}Md(l,n,oe,Vu,gc,e,Oe,ll,Bl,xn,r,null,-0,0)}}break}while(!0);Xe(t)}function Md(t,e,n,l,u,r,f,h,g,x,C,U,A,z){if(t.timeoutHandle=-1,U=e.subtreeFlags,U&8192||(U&16785408)===16785408){U={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Je},Sd(e,r,U);var F=(r&62914560)===r?Ku-he():(r&4194048)===r?xd-he():0;if(F=xp(U,F),F!==null){sn=r,t.cancelPendingCommit=F(Nd.bind(null,t,e,r,n,l,u,f,h,g,C,U,null,A,z)),Mn(t,r,f,!x);return}}Nd(t,e,r,n,l,u,f,h,g)}function Ym(t){for(var e=t;;){var n=e.tag;if((n===0||n===11||n===15)&&e.flags&16384&&(n=e.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var l=0;l<n.length;l++){var u=n[l],r=u.getSnapshot;u=u.value;try{if(!me(r(),u))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;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 Mn(t,e,n,l){e&=~pc,e&=~ll,t.suspendedLanes|=e,t.pingedLanes&=~e,l&&(t.warmLanes|=e),l=t.expirationTimes;for(var u=e;0<u;){var r=31-ve(u),f=1<<r;l[r]=-1,u&=~f}n!==0&&Ns(t,n,e)}function Ju(){return(xt&6)===0?(Ra(0),!1):!0}function _c(){if(vt!==null){if(At===0)var t=vt.return;else t=vt,Pe=Fn=null,wr(t),Dl=null,ya=0,t=vt;for(;t!==null;)ud(t.alternate,t),t=t.return;vt=null}}function Gl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,ip(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),sn=0,_c(),Dt=t,vt=n=ke(t.current,null),pt=e,At=0,Se=null,xn=!1,wl=Pl(t,e),mc=!1,Bl=Oe=pc=ll=Tn=Ht=0,oe=Ca=null,gc=!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-ve(l),r=1<<u;e|=t[u],l&=~r}return cn=e,yu(),n}function jd(t,e){ft=null,T.H=_a,e===Cl||e===_u?(e=Kf(),At=3):e===Ar?(e=Kf(),At=4):At=e===tc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Se=e,vt===null&&(Ht=1,Nu(t,Me(e,t.current)))}function Cd(){var t=ge.current;return t===null?!0:(pt&4194048)===pt?Re===null:(pt&62914560)===pt||(pt&536870912)!==0?t===Re:!1}function Dd(){var t=T.H;return T.H=_a,t===null?_a:t}function Rd(){var t=T.A;return T.A=wm,t}function Fu(){Ht=4,xn||(pt&4194048)!==pt&&ge.current!==null||(wl=!0),(Tn&134217727)===0&&(ll&134217727)===0||Dt===null||Mn(Dt,pt,Oe,!1)}function Ec(t,e,n){var l=xt;xt|=2;var u=Dd(),r=Rd();(Dt!==t||pt!==e)&&(Vu=null,Gl(t,e)),e=!1;var f=Ht;t:do try{if(At!==0&&vt!==null){var h=vt,g=Se;switch(At){case 8:_c(),f=6;break t;case 3:case 2:case 9:case 6:ge.current===null&&(e=!0);var x=At;if(At=0,Se=null,Ll(t,h,g,x),n&&wl){f=0;break t}break;default:x=At,At=0,Se=null,Ll(t,h,g,x)}}Gm(),f=Ht;break}catch(C){jd(t,C)}while(!0);return e&&t.shellSuspendCounter++,Pe=Fn=null,xt=l,T.H=u,T.A=r,vt===null&&(Dt=null,pt=0,yu()),f}function Gm(){for(;vt!==null;)Ud(vt)}function Lm(t,e){var n=xt;xt|=2;var l=Dd(),u=Rd();Dt!==t||pt!==e?(Vu=null,Zu=he()+500,Gl(t,e)):wl=Pl(t,e);t:do try{if(At!==0&&vt!==null){e=vt;var r=Se;e:switch(At){case 1:At=0,Se=null,Ll(t,e,r,1);break;case 2:case 9:if(Lf(r)){At=0,Se=null,qd(e);break}e=function(){At!==2&&At!==9||Dt!==t||(At=7),Xe(t)},r.then(e,e);break t;case 3:At=7;break t;case 4:At=5;break t;case 7:Lf(r)?(At=0,Se=null,qd(e)):(At=0,Se=null,Ll(t,e,r,7));break;case 5:var f=null;switch(vt.tag){case 26:f=vt.memoizedState;case 5:case 27:var h=vt;if(f?bh(f):h.stateNode.complete){At=0,Se=null;var g=h.sibling;if(g!==null)vt=g;else{var x=h.return;x!==null?(vt=x,ku(x)):vt=null}break e}}At=0,Se=null,Ll(t,e,r,5);break;case 6:At=0,Se=null,Ll(t,e,r,6);break;case 8:_c(),Ht=6;break t;default:throw Error(s(462))}}Xm();break}catch(C){jd(t,C)}while(!0);return Pe=Fn=null,T.H=l,T.A=u,xt=n,vt!==null?0:(Dt=null,pt=0,yu(),Ht)}function Xm(){for(;vt!==null&&!dv();)Ud(vt)}function Ud(t){var e=ld(t.alternate,t,cn);t.memoizedProps=t.pendingProps,e===null?ku(t):vt=e}function qd(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Po(n,e,e.pendingProps,e.type,void 0,pt);break;case 11:e=Po(n,e,e.pendingProps,e.type.render,e.ref,pt);break;case 5:wr(e);default:ud(n,e),e=vt=Df(e,cn),e=ld(n,e,cn)}t.memoizedProps=t.pendingProps,e===null?ku(t):vt=e}function Ll(t,e,n,l){Pe=Fn=null,wr(e),Dl=null,ya=0;var u=e.return;try{if(Dm(t,u,e,n,pt)){Ht=1,Nu(t,Me(n,t.current)),vt=null;return}}catch(r){if(u!==null)throw vt=u,r;Ht=1,Nu(t,Me(n,t.current)),vt=null;return}e.flags&32768?(bt||l===1?t=!0:wl||(pt&536870912)!==0?t=!1:(xn=t=!0,(l===2||l===9||l===3||l===6)&&(l=ge.current,l!==null&&l.tag===13&&(l.flags|=16384))),Qd(e,t)):ku(e)}function ku(t){var e=t;do{if((e.flags&32768)!==0){Qd(e,xn);return}t=e.return;var n=qm(e.alternate,e,cn);if(n!==null){vt=n;return}if(e=e.sibling,e!==null){vt=e;return}vt=e=t}while(e!==null);Ht===0&&(Ht=5)}function Qd(t,e){do{var n=Qm(t.alternate,t);if(n!==null){n.flags&=32767,vt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){vt=t;return}vt=t=n}while(t!==null);Ht=6,vt=null}function Nd(t,e,n,l,u,r,f,h,g){t.cancelPendingCommit=null;do $u();while(Jt!==0);if((xt&6)!==0)throw Error(s(327));if(e!==null){if(e===t.current)throw Error(s(177));if(r=e.lanes|e.childLanes,r|=or,_v(t,n,r,f,h,g),t===Dt&&(vt=Dt=null,pt=0),Yl=e,zn=t,sn=n,bc=r,Sc=u,Td=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Jm(Wa,function(){return Gd(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=T.T,T.T=null,u=N.p,N.p=2,f=xt,xt|=4;try{Nm(t,e,n)}finally{xt=f,N.p=u,T.T=l}}Jt=1,Hd(),wd(),Bd()}}function Hd(){if(Jt===1){Jt=0;var t=zn,e=Yl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=T.T,T.T=null;var l=N.p;N.p=2;var u=xt;xt|=4;try{pd(e,t);var r=Qc,f=_f(t.containerInfo),h=r.focusedElem,g=r.selectionRange;if(f!==h&&h&&h.ownerDocument&&Of(h.ownerDocument.documentElement,h)){if(g!==null&&ir(h)){var x=g.start,C=g.end;if(C===void 0&&(C=x),"selectionStart"in h)h.selectionStart=x,h.selectionEnd=Math.min(C,h.value.length);else{var U=h.ownerDocument||document,A=U&&U.defaultView||window;if(A.getSelection){var z=A.getSelection(),F=h.textContent.length,lt=Math.min(g.start,F),Ct=g.end===void 0?lt:Math.min(g.end,F);!z.extend&&lt>Ct&&(f=Ct,Ct=lt,lt=f);var O=Sf(h,lt),S=Sf(h,Ct);if(O&&S&&(z.rangeCount!==1||z.anchorNode!==O.node||z.anchorOffset!==O.offset||z.focusNode!==S.node||z.focusOffset!==S.offset)){var E=U.createRange();E.setStart(O.node,O.offset),z.removeAllRanges(),lt>Ct?(z.addRange(E),z.extend(S.node,S.offset)):(E.setEnd(S.node,S.offset),z.addRange(E))}}}}for(U=[],z=h;z=z.parentNode;)z.nodeType===1&&U.push({element:z,left:z.scrollLeft,top:z.scrollTop});for(typeof h.focus=="function"&&h.focus(),h=0;h<U.length;h++){var R=U[h];R.element.scrollLeft=R.left,R.element.scrollTop=R.top}}ci=!!qc,Qc=qc=null}finally{xt=u,N.p=l,T.T=n}}t.current=e,Jt=2}}function wd(){if(Jt===2){Jt=0;var t=zn,e=Yl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=T.T,T.T=null;var l=N.p;N.p=2;var u=xt;xt|=4;try{dd(t,e.alternate,e)}finally{xt=u,N.p=l,T.T=n}}Jt=3}}function Bd(){if(Jt===4||Jt===3){Jt=0,hv();var t=zn,e=Yl,n=sn,l=Td;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Jt=5:(Jt=0,Yl=zn=null,Yd(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(An=null),Gi(n),e=e.stateNode,ye&&typeof ye.onCommitFiberRoot=="function")try{ye.onCommitFiberRoot($l,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=T.T,u=N.p,N.p=2,T.T=null;try{for(var r=t.onRecoverableError,f=0;f<l.length;f++){var h=l[f];r(h.value,{componentStack:h.stack})}}finally{T.T=e,N.p=u}}(sn&3)!==0&&$u(),Xe(t),u=t.pendingLanes,(n&261930)!==0&&(u&42)!==0?t===Oc?Da++:(Da=0,Oc=t):Da=0,Ra(0)}}function Yd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,da(e)))}function $u(){return Hd(),wd(),Bd(),Gd()}function Gd(){if(Jt!==5)return!1;var t=zn,e=bc;bc=0;var n=Gi(sn),l=T.T,u=N.p;try{N.p=32>n?32:n,T.T=null,n=Sc,Sc=null;var r=zn,f=sn;if(Jt=0,Yl=zn=null,sn=0,(xt&6)!==0)throw Error(s(331));var h=xt;if(xt|=4,_d(r.current),bd(r,r.current,f,n),xt=h,Ra(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot($l,r)}catch{}return!0}finally{N.p=u,T.T=l,Yd(t,e)}}function Ld(t,e,n){e=Me(n,e),e=Ir(t.stateNode,e,2),t=Sn(t,e,2),t!==null&&(Wl(t,2),Xe(t))}function zt(t,e,n){if(t.tag===3)Ld(t,t,n);else for(;e!==null;){if(e.tag===3){Ld(e,t,n);break}else if(e.tag===1){var l=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(An===null||!An.has(l))){t=Me(n,t),n=Xo(2),l=Sn(e,n,2),l!==null&&(Ko(n,l,e,t),Wl(l,2),Xe(l));break}}e=e.return}}function xc(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new Bm;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(n)||(mc=!0,u.add(n),t=Km.bind(null,t,e,n),e.then(t,t))}function Km(t,e,n){var l=t.pingCache;l!==null&&l.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,Dt===t&&(pt&n)===n&&(Ht===4||Ht===3&&(pt&62914560)===pt&&300>he()-Ku?(xt&2)===0&&Gl(t,0):pc|=n,Bl===pt&&(Bl=0)),Xe(t)}function Xd(t,e){e===0&&(e=Qs()),t=Zn(t,e),t!==null&&(Wl(t,e),Xe(t))}function Zm(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Xd(t,n)}function Vm(t,e){var n=0;switch(t.tag){case 31:case 13:var l=t.stateNode,u=t.memoizedState;u!==null&&(n=u.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(e),Xd(t,n)}function Jm(t,e){return Hi(t,e)}var Pu=null,Xl=null,Tc=!1,Wu=!1,Ac=!1,jn=0;function Xe(t){t!==Xl&&t.next===null&&(Xl===null?Pu=Xl=t:Xl=Xl.next=t),Wu=!0,Tc||(Tc=!0,km())}function Ra(t,e){if(!Ac&&Wu){Ac=!0;do for(var n=!1,l=Pu;l!==null;){if(t!==0){var u=l.pendingLanes;if(u===0)var r=0;else{var f=l.suspendedLanes,h=l.pingedLanes;r=(1<<31-ve(42|t)+1)-1,r&=u&~(f&~h),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Jd(l,r))}else r=pt,r=nu(l,l===Dt?r:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(r&3)===0||Pl(l,r)||(n=!0,Jd(l,r));l=l.next}while(n);Ac=!1}}function Fm(){Kd()}function Kd(){Wu=Tc=!1;var t=0;jn!==0&&up()&&(t=jn);for(var e=he(),n=null,l=Pu;l!==null;){var u=l.next,r=Zd(l,e);r===0?(l.next=null,n===null?Pu=u:n.next=u,u===null&&(Xl=n)):(n=l,(t!==0||(r&3)!==0)&&(Wu=!0)),l=u}Jt!==0&&Jt!==5||Ra(t),jn!==0&&(jn=0)}function Zd(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,u=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var f=31-ve(r),h=1<<f,g=u[f];g===-1?((h&n)===0||(h&l)!==0)&&(u[f]=Ov(h,e)):g<=e&&(t.expiredLanes|=h),r&=~h}if(e=Dt,n=pt,n=nu(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,n===0||t===e&&(At===2||At===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&wi(l),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Pl(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(l!==null&&wi(l),Gi(n)){case 2:case 8:n=Us;break;case 32:n=Wa;break;case 268435456:n=qs;break;default:n=Wa}return l=Vd.bind(null,t),n=Hi(n,l),t.callbackPriority=e,t.callbackNode=n,e}return l!==null&&l!==null&&wi(l),t.callbackPriority=2,t.callbackNode=null,2}function Vd(t,e){if(Jt!==0&&Jt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if($u()&&t.callbackNode!==n)return null;var l=pt;return l=nu(t,t===Dt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(zd(t,l,e),Zd(t,he()),t.callbackNode!=null&&t.callbackNode===n?Vd.bind(null,t):null)}function Jd(t,e){if($u())return null;zd(t,e,!0)}function km(){rp(function(){(xt&6)!==0?Hi(Rs,Fm):Kd()})}function zc(){if(jn===0){var t=Ml;t===0&&(t=Ia,Ia<<=1,(Ia&261888)===0&&(Ia=256)),jn=t}return jn}function Fd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:iu(""+t)}function kd(t,e){var n=e.ownerDocument.createElement("input");return n.name=e.name,n.value=e.value,t.id&&n.setAttribute("form",t.id),e.parentNode.insertBefore(n,e),t=new FormData(t),n.parentNode.removeChild(n),t}function $m(t,e,n,l,u){if(e==="submit"&&n&&n.stateNode===u){var r=Fd((u[ie]||null).action),f=l.submitter;f&&(e=(e=f[ie]||null)?Fd(e.formAction):f.getAttribute("formAction"),e!==null&&(r=e,f=null));var h=new fu("action","action",null,l,u);t.push({event:h,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(jn!==0){var g=f?kd(u,f):new FormData(u);Jr(n,{pending:!0,data:g,method:u.method,action:r},null,g)}}else typeof r=="function"&&(h.preventDefault(),g=f?kd(u,f):new FormData(u),Jr(n,{pending:!0,data:g,method:u.method,action:r},r,g))},currentTarget:u}]})}}for(var Mc=0;Mc<fr.length;Mc++){var jc=fr[Mc],Pm=jc.toLowerCase(),Wm=jc[0].toUpperCase()+jc.slice(1);Qe(Pm,"on"+Wm)}Qe(Tf,"onAnimationEnd"),Qe(Af,"onAnimationIteration"),Qe(zf,"onAnimationStart"),Qe("dblclick","onDoubleClick"),Qe("focusin","onFocus"),Qe("focusout","onBlur"),Qe(ym,"onTransitionRun"),Qe(vm,"onTransitionStart"),Qe(mm,"onTransitionCancel"),Qe(Mf,"onTransitionEnd"),yl("onMouseEnter",["mouseout","mouseover"]),yl("onMouseLeave",["mouseout","mouseover"]),yl("onPointerEnter",["pointerout","pointerover"]),yl("onPointerLeave",["pointerout","pointerover"]),Gn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Gn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Gn("onBeforeInput",["compositionend","keypress","textInput","paste"]),Gn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Gn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Gn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ua="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(" "),Im=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ua));function $d(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var l=t[n],u=l.event;l=l.listeners;t:{var r=void 0;if(e)for(var f=l.length-1;0<=f;f--){var h=l[f],g=h.instance,x=h.currentTarget;if(h=h.listener,g!==r&&u.isPropagationStopped())break t;r=h,u.currentTarget=x;try{r(u)}catch(C){hu(C)}u.currentTarget=null,r=g}else for(f=0;f<l.length;f++){if(h=l[f],g=h.instance,x=h.currentTarget,h=h.listener,g!==r&&u.isPropagationStopped())break t;r=h,u.currentTarget=x;try{r(u)}catch(C){hu(C)}u.currentTarget=null,r=g}}}}function mt(t,e){var n=e[Li];n===void 0&&(n=e[Li]=new Set);var l=t+"__bubble";n.has(l)||(Pd(e,t,2,!1),n.add(l))}function Cc(t,e,n){var l=0;e&&(l|=4),Pd(n,t,l,e)}var Iu="_reactListening"+Math.random().toString(36).slice(2);function Dc(t){if(!t[Iu]){t[Iu]=!0,Ls.forEach(function(n){n!=="selectionchange"&&(Im.has(n)||Cc(n,!1,t),Cc(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Iu]||(e[Iu]=!0,Cc("selectionchange",!1,e))}}function Pd(t,e,n,l){switch(Ah(e)){case 2:var u=zp;break;case 8:u=Mp;break;default:u=Vc}n=u.bind(null,e,n,t),u=void 0,!Pi||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),l?u!==void 0?t.addEventListener(e,n,{capture:!0,passive:u}):t.addEventListener(e,n,!0):u!==void 0?t.addEventListener(e,n,{passive:u}):t.addEventListener(e,n,!1)}function Rc(t,e,n,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 h=l.stateNode.containerInfo;if(h===u)break;if(f===4)for(f=l.return;f!==null;){var g=f.tag;if((g===3||g===4)&&f.stateNode.containerInfo===u)return;f=f.return}for(;h!==null;){if(f=ol(h),f===null)return;if(g=f.tag,g===5||g===6||g===26||g===27){l=r=f;continue t}h=h.parentNode}}l=l.return}tf(function(){var x=r,C=ki(n),U=[];t:{var A=jf.get(t);if(A!==void 0){var z=fu,F=t;switch(t){case"keypress":if(cu(n)===0)break t;case"keydown":case"keyup":z=Vv;break;case"focusin":F="focus",z=er;break;case"focusout":F="blur",z=er;break;case"beforeblur":case"afterblur":z=er;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":z=lf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=qv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=kv;break;case Tf:case Af:case zf:z=Hv;break;case Mf:z=Pv;break;case"scroll":case"scrollend":z=Rv;break;case"wheel":z=Iv;break;case"copy":case"cut":case"paste":z=Bv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=uf;break;case"toggle":case"beforetoggle":z=em}var lt=(e&4)!==0,Ct=!lt&&(t==="scroll"||t==="scrollend"),O=lt?A!==null?A+"Capture":null:A;lt=[];for(var S=x,E;S!==null;){var R=S;if(E=R.stateNode,R=R.tag,R!==5&&R!==26&&R!==27||E===null||O===null||(R=ea(S,O),R!=null&&lt.push(qa(S,R,E))),Ct)break;S=S.return}0<lt.length&&(A=new z(A,F,null,n,C),U.push({event:A,listeners:lt}))}}if((e&7)===0){t:{if(A=t==="mouseover"||t==="pointerover",z=t==="mouseout"||t==="pointerout",A&&n!==Fi&&(F=n.relatedTarget||n.fromElement)&&(ol(F)||F[fl]))break t;if((z||A)&&(A=C.window===C?C:(A=C.ownerDocument)?A.defaultView||A.parentWindow:window,z?(F=n.relatedTarget||n.toElement,z=x,F=F?ol(F):null,F!==null&&(Ct=d(F),lt=F.tag,F!==Ct||lt!==5&&lt!==27&&lt!==6)&&(F=null)):(z=null,F=x),z!==F)){if(lt=lf,R="onMouseLeave",O="onMouseEnter",S="mouse",(t==="pointerout"||t==="pointerover")&&(lt=uf,R="onPointerLeave",O="onPointerEnter",S="pointer"),Ct=z==null?A:ta(z),E=F==null?A:ta(F),A=new lt(R,S+"leave",z,n,C),A.target=Ct,A.relatedTarget=E,R=null,ol(C)===x&&(lt=new lt(O,S+"enter",F,n,C),lt.target=E,lt.relatedTarget=Ct,R=lt),Ct=R,z&&F)e:{for(lt=tp,O=z,S=F,E=0,R=O;R;R=lt(R))E++;R=0;for(var nt=S;nt;nt=lt(nt))R++;for(;0<E-R;)O=lt(O),E--;for(;0<R-E;)S=lt(S),R--;for(;E--;){if(O===S||S!==null&&O===S.alternate){lt=O;break e}O=lt(O),S=lt(S)}lt=null}else lt=null;z!==null&&Wd(U,A,z,lt,!1),F!==null&&Ct!==null&&Wd(U,Ct,F,lt,!0)}}t:{if(A=x?ta(x):window,z=A.nodeName&&A.nodeName.toLowerCase(),z==="select"||z==="input"&&A.type==="file")var Ot=yf;else if(df(A))if(vf)Ot=om;else{Ot=sm;var W=cm}else z=A.nodeName,!z||z.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?x&&Ji(x.elementType)&&(Ot=yf):Ot=fm;if(Ot&&(Ot=Ot(t,x))){hf(U,Ot,n,C);break t}W&&W(t,A,x),t==="focusout"&&x&&A.type==="number"&&x.memoizedProps.value!=null&&Vi(A,"number",A.value)}switch(W=x?ta(x):window,t){case"focusin":(df(W)||W.contentEditable==="true")&&(Sl=W,rr=x,sa=null);break;case"focusout":sa=rr=Sl=null;break;case"mousedown":cr=!0;break;case"contextmenu":case"mouseup":case"dragend":cr=!1,Ef(U,n,C);break;case"selectionchange":if(hm)break;case"keydown":case"keyup":Ef(U,n,C)}var ot;if(lr)t:{switch(t){case"compositionstart":var gt="onCompositionStart";break t;case"compositionend":gt="onCompositionEnd";break t;case"compositionupdate":gt="onCompositionUpdate";break t}gt=void 0}else bl?ff(t,n)&&(gt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(gt="onCompositionStart");gt&&(rf&&n.locale!=="ko"&&(bl||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&bl&&(ot=ef()):(hn=C,Wi="value"in hn?hn.value:hn.textContent,bl=!0)),W=ti(x,gt),0<W.length&&(gt=new af(gt,t,null,n,C),U.push({event:gt,listeners:W}),ot?gt.data=ot:(ot=of(n),ot!==null&&(gt.data=ot)))),(ot=lm?am(t,n):um(t,n))&&(gt=ti(x,"onBeforeInput"),0<gt.length&&(W=new af("onBeforeInput","beforeinput",null,n,C),U.push({event:W,listeners:gt}),W.data=ot)),$m(U,t,x,n,C)}$d(U,e)})}function qa(t,e,n){return{instance:t,listener:e,currentTarget:n}}function ti(t,e){for(var n=e+"Capture",l=[];t!==null;){var u=t,r=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||r===null||(u=ea(t,n),u!=null&&l.unshift(qa(t,u,r)),u=ea(t,e),u!=null&&l.push(qa(t,u,r))),t.tag===3)return l;t=t.return}return[]}function tp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Wd(t,e,n,l,u){for(var r=e._reactName,f=[];n!==null&&n!==l;){var h=n,g=h.alternate,x=h.stateNode;if(h=h.tag,g!==null&&g===l)break;h!==5&&h!==26&&h!==27||x===null||(g=x,u?(x=ea(n,r),x!=null&&f.unshift(qa(n,x,g))):u||(x=ea(n,r),x!=null&&f.push(qa(n,x,g)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var ep=/\r\n?/g,np=/\u0000|\uFFFD/g;function Id(t){return(typeof t=="string"?t:""+t).replace(ep,`
`).replace(np,"")}function th(t,e){return e=Id(e),Id(t)===e}function jt(t,e,n,l,u,r){switch(n){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":au(t,"class",l);break;case"tabIndex":au(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":au(t,n,l);break;case"style":Ws(t,l,r);break;case"data":if(e!=="object"){au(t,"data",l);break}case"src":case"href":if(l===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=iu(""+l),t.setAttribute(n,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(n,"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"&&(n==="formAction"?(e!=="input"&&jt(t,e,"name",u.name,u,null),jt(t,e,"formEncType",u.formEncType,u,null),jt(t,e,"formMethod",u.formMethod,u,null),jt(t,e,"formTarget",u.formTarget,u,null)):(jt(t,e,"encType",u.encType,u,null),jt(t,e,"method",u.method,u,null),jt(t,e,"target",u.target,u,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(n);break}l=iu(""+l),t.setAttribute(n,l);break;case"onClick":l!=null&&(t.onclick=Je);break;case"onScroll":l!=null&&mt("scroll",t);break;case"onScrollEnd":l!=null&&mt("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(u.children!=null)throw Error(s(60));t.innerHTML=n}}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}n=iu(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);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(n,""+l):t.removeAttribute(n);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(n,""):t.removeAttribute(n);break;case"capture":case"download":l===!0?t.setAttribute(n,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(n,l):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(n,l):t.removeAttribute(n);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(n):t.setAttribute(n,l);break;case"popover":mt("beforetoggle",t),mt("toggle",t),lu(t,"popover",l);break;case"xlinkActuate":Ve(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Ve(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Ve(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Ve(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Ve(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Ve(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Ve(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Ve(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Ve(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":lu(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=Cv.get(n)||n,lu(t,n,l))}}function Uc(t,e,n,l,u,r){switch(n){case"style":Ws(t,l,r);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(n=l.__html,n!=null){if(u.children!=null)throw Error(s(60));t.innerHTML=n}}break;case"children":typeof l=="string"?ml(t,l):(typeof l=="number"||typeof l=="bigint")&&ml(t,""+l);break;case"onScroll":l!=null&&mt("scroll",t);break;case"onScrollEnd":l!=null&&mt("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Je);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Xs.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),e=n.slice(2,u?n.length-7:void 0),r=t[ie]||null,r=r!=null?r[n]:null,typeof r=="function"&&t.removeEventListener(e,r,u),typeof l=="function")){typeof r!="function"&&r!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,l,u);break t}n in t?t[n]=l:l===!0?t.setAttribute(n,""):lu(t,n,l)}}}function te(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":mt("error",t),mt("load",t);var l=!1,u=!1,r;for(r in n)if(n.hasOwnProperty(r)){var f=n[r];if(f!=null)switch(r){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:jt(t,e,r,f,n,null)}}u&&jt(t,e,"srcSet",n.srcSet,n,null),l&&jt(t,e,"src",n.src,n,null);return;case"input":mt("invalid",t);var h=r=f=u=null,g=null,x=null;for(l in n)if(n.hasOwnProperty(l)){var C=n[l];if(C!=null)switch(l){case"name":u=C;break;case"type":f=C;break;case"checked":g=C;break;case"defaultChecked":x=C;break;case"value":r=C;break;case"defaultValue":h=C;break;case"children":case"dangerouslySetInnerHTML":if(C!=null)throw Error(s(137,e));break;default:jt(t,e,l,C,n,null)}}Fs(t,r,h,g,x,f,u,!1);return;case"select":mt("invalid",t),l=f=r=null;for(u in n)if(n.hasOwnProperty(u)&&(h=n[u],h!=null))switch(u){case"value":r=h;break;case"defaultValue":f=h;break;case"multiple":l=h;default:jt(t,e,u,h,n,null)}e=r,n=f,t.multiple=!!l,e!=null?vl(t,!!l,e,!1):n!=null&&vl(t,!!l,n,!0);return;case"textarea":mt("invalid",t),r=u=l=null;for(f in n)if(n.hasOwnProperty(f)&&(h=n[f],h!=null))switch(f){case"value":l=h;break;case"defaultValue":u=h;break;case"children":r=h;break;case"dangerouslySetInnerHTML":if(h!=null)throw Error(s(91));break;default:jt(t,e,f,h,n,null)}$s(t,l,u,r);return;case"option":for(g in n)if(n.hasOwnProperty(g)&&(l=n[g],l!=null))switch(g){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:jt(t,e,g,l,n,null)}return;case"dialog":mt("beforetoggle",t),mt("toggle",t),mt("cancel",t),mt("close",t);break;case"iframe":case"object":mt("load",t);break;case"video":case"audio":for(l=0;l<Ua.length;l++)mt(Ua[l],t);break;case"image":mt("error",t),mt("load",t);break;case"details":mt("toggle",t);break;case"embed":case"source":case"link":mt("error",t),mt("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(x in n)if(n.hasOwnProperty(x)&&(l=n[x],l!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:jt(t,e,x,l,n,null)}return;default:if(Ji(e)){for(C in n)n.hasOwnProperty(C)&&(l=n[C],l!==void 0&&Uc(t,e,C,l,n,void 0));return}}for(h in n)n.hasOwnProperty(h)&&(l=n[h],l!=null&&jt(t,e,h,l,n,null))}function lp(t,e,n,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,h=null,g=null,x=null,C=null;for(z in n){var U=n[z];if(n.hasOwnProperty(z)&&U!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":g=U;default:l.hasOwnProperty(z)||jt(t,e,z,null,l,U)}}for(var A in l){var z=l[A];if(U=n[A],l.hasOwnProperty(A)&&(z!=null||U!=null))switch(A){case"type":r=z;break;case"name":u=z;break;case"checked":x=z;break;case"defaultChecked":C=z;break;case"value":f=z;break;case"defaultValue":h=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(s(137,e));break;default:z!==U&&jt(t,e,A,z,l,U)}}Zi(t,f,h,g,x,C,r,u);return;case"select":z=f=h=A=null;for(r in n)if(g=n[r],n.hasOwnProperty(r)&&g!=null)switch(r){case"value":break;case"multiple":z=g;default:l.hasOwnProperty(r)||jt(t,e,r,null,l,g)}for(u in l)if(r=l[u],g=n[u],l.hasOwnProperty(u)&&(r!=null||g!=null))switch(u){case"value":A=r;break;case"defaultValue":h=r;break;case"multiple":f=r;default:r!==g&&jt(t,e,u,r,l,g)}e=h,n=f,l=z,A!=null?vl(t,!!n,A,!1):!!l!=!!n&&(e!=null?vl(t,!!n,e,!0):vl(t,!!n,n?[]:"",!1));return;case"textarea":z=A=null;for(h in n)if(u=n[h],n.hasOwnProperty(h)&&u!=null&&!l.hasOwnProperty(h))switch(h){case"value":break;case"children":break;default:jt(t,e,h,null,l,u)}for(f in l)if(u=l[f],r=n[f],l.hasOwnProperty(f)&&(u!=null||r!=null))switch(f){case"value":A=u;break;case"defaultValue":z=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==r&&jt(t,e,f,u,l,r)}ks(t,A,z);return;case"option":for(var F in n)if(A=n[F],n.hasOwnProperty(F)&&A!=null&&!l.hasOwnProperty(F))switch(F){case"selected":t.selected=!1;break;default:jt(t,e,F,null,l,A)}for(g in l)if(A=l[g],z=n[g],l.hasOwnProperty(g)&&A!==z&&(A!=null||z!=null))switch(g){case"selected":t.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:jt(t,e,g,A,l,z)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var lt in n)A=n[lt],n.hasOwnProperty(lt)&&A!=null&&!l.hasOwnProperty(lt)&&jt(t,e,lt,null,l,A);for(x in l)if(A=l[x],z=n[x],l.hasOwnProperty(x)&&A!==z&&(A!=null||z!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(s(137,e));break;default:jt(t,e,x,A,l,z)}return;default:if(Ji(e)){for(var Ct in n)A=n[Ct],n.hasOwnProperty(Ct)&&A!==void 0&&!l.hasOwnProperty(Ct)&&Uc(t,e,Ct,void 0,l,A);for(C in l)A=l[C],z=n[C],!l.hasOwnProperty(C)||A===z||A===void 0&&z===void 0||Uc(t,e,C,A,l,z);return}}for(var O in n)A=n[O],n.hasOwnProperty(O)&&A!=null&&!l.hasOwnProperty(O)&&jt(t,e,O,null,l,A);for(U in l)A=l[U],z=n[U],!l.hasOwnProperty(U)||A===z||A==null&&z==null||jt(t,e,U,A,l,z)}function eh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function ap(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),l=0;l<n.length;l++){var u=n[l],r=u.transferSize,f=u.initiatorType,h=u.duration;if(r&&h&&eh(f)){for(f=0,h=u.responseEnd,l+=1;l<n.length;l++){var g=n[l],x=g.startTime;if(x>h)break;var C=g.transferSize,U=g.initiatorType;C&&eh(U)&&(g=g.responseEnd,f+=C*(g<h?1:(h-x)/(g-x)))}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 qc=null,Qc=null;function ei(t){return t.nodeType===9?t:t.ownerDocument}function nh(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 lh(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 Nc(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 Hc=null;function up(){var t=window.event;return t&&t.type==="popstate"?t===Hc?!1:(Hc=t,!0):(Hc=null,!1)}var ah=typeof setTimeout=="function"?setTimeout:void 0,ip=typeof clearTimeout=="function"?clearTimeout:void 0,uh=typeof Promise=="function"?Promise:void 0,rp=typeof queueMicrotask=="function"?queueMicrotask:typeof uh<"u"?function(t){return uh.resolve(null).then(t).catch(cp)}:ah;function cp(t){setTimeout(function(){throw t})}function Cn(t){return t==="head"}function ih(t,e){var n=e,l=0;do{var u=n.nextSibling;if(t.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(l===0){t.removeChild(u),Jl(e);return}l--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")l++;else if(n==="html")Qa(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,Qa(n);for(var r=n.firstChild;r;){var f=r.nextSibling,h=r.nodeName;r[Il]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=f}}else n==="body"&&Qa(t.ownerDocument.body);n=u}while(n);Jl(e)}function rh(t,e){var n=t;t=0;do{var l=n.nextSibling;if(n.nodeType===1?e?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(e?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=l}while(n)}function wc(t){var e=t.firstChild;for(e&&e.nodeType===10&&(e=e.nextSibling);e;){var n=e;switch(e=e.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":wc(n),Xi(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function sp(t,e,n,l){for(;t.nodeType===1;){var u=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Il])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(r=t.getAttribute("rel"),r==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(r!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(r=t.getAttribute("src"),(r!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&r&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var r=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===r)return t}else return t;if(t=Ue(t.nextSibling),t===null)break}return null}function fp(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Ue(t.nextSibling),t===null))return null;return t}function ch(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=Ue(t.nextSibling),t===null))return null;return t}function Bc(t){return t.data==="$?"||t.data==="$~"}function Yc(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function op(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var l=function(){e(),n.removeEventListener("DOMContentLoaded",l)};n.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Ue(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?"||e==="$~"||e==="&"||e==="F!"||e==="F")break;if(e==="/$"||e==="/&")return null}}return t}var Gc=null;function sh(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return Ue(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function fh(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(e===0)return t;e--}else n!=="/$"&&n!=="/&"||e++}t=t.previousSibling}return null}function oh(t,e,n){switch(e=ei(n),t){case"html":if(t=e.documentElement,!t)throw Error(s(452));return t;case"head":if(t=e.head,!t)throw Error(s(453));return t;case"body":if(t=e.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function Qa(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Xi(t)}var qe=new Map,dh=new Set;function ni(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var fn=N.d;N.d={f:dp,r:hp,D:yp,C:vp,L:mp,m:pp,X:bp,S:gp,M:Sp};function dp(){var t=fn.f(),e=Ju();return t||e}function hp(t){var e=dl(t);e!==null&&e.tag===5&&e.type==="form"?jo(e):fn.r(t)}var Kl=typeof document>"u"?null:document;function hh(t,e,n){var l=Kl;if(l&&typeof e=="string"&&e){var u=Ae(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),dh.has(u)||(dh.add(u),t={rel:t,crossOrigin:n,href:e},l.querySelector(u)===null&&(e=l.createElement("link"),te(e,"link",t),Ft(e),l.head.appendChild(e)))}}function yp(t){fn.D(t),hh("dns-prefetch",t,null)}function vp(t,e){fn.C(t,e),hh("preconnect",t,e)}function mp(t,e,n){fn.L(t,e,n);var l=Kl;if(l&&t&&e){var u='link[rel="preload"][as="'+Ae(e)+'"]';e==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Ae(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Ae(n.imageSizes)+'"]')):u+='[href="'+Ae(t)+'"]';var r=u;switch(e){case"style":r=Zl(t);break;case"script":r=Vl(t)}qe.has(r)||(t=_({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),qe.set(r,t),l.querySelector(u)!==null||e==="style"&&l.querySelector(Na(r))||e==="script"&&l.querySelector(Ha(r))||(e=l.createElement("link"),te(e,"link",t),Ft(e),l.head.appendChild(e)))}}function pp(t,e){fn.m(t,e);var n=Kl;if(n&&t){var l=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Ae(l)+'"][href="'+Ae(t)+'"]',r=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=Vl(t)}if(!qe.has(r)&&(t=_({rel:"modulepreload",href:t},e),qe.set(r,t),n.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Ha(r)))return}l=n.createElement("link"),te(l,"link",t),Ft(l),n.head.appendChild(l)}}}function gp(t,e,n){fn.S(t,e,n);var l=Kl;if(l&&t){var u=hl(l).hoistableStyles,r=Zl(t);e=e||"default";var f=u.get(r);if(!f){var h={loading:0,preload:null};if(f=l.querySelector(Na(r)))h.loading=5;else{t=_({rel:"stylesheet",href:t,"data-precedence":e},n),(n=qe.get(r))&&Lc(t,n);var g=f=l.createElement("link");Ft(g),te(g,"link",t),g._p=new Promise(function(x,C){g.onload=x,g.onerror=C}),g.addEventListener("load",function(){h.loading|=1}),g.addEventListener("error",function(){h.loading|=2}),h.loading|=4,li(f,e,l)}f={type:"stylesheet",instance:f,count:1,state:h},u.set(r,f)}}}function bp(t,e){fn.X(t,e);var n=Kl;if(n&&t){var l=hl(n).hoistableScripts,u=Vl(t),r=l.get(u);r||(r=n.querySelector(Ha(u)),r||(t=_({src:t,async:!0},e),(e=qe.get(u))&&Xc(t,e),r=n.createElement("script"),Ft(r),te(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(u,r))}}function Sp(t,e){fn.M(t,e);var n=Kl;if(n&&t){var l=hl(n).hoistableScripts,u=Vl(t),r=l.get(u);r||(r=n.querySelector(Ha(u)),r||(t=_({src:t,async:!0,type:"module"},e),(e=qe.get(u))&&Xc(t,e),r=n.createElement("script"),Ft(r),te(r,"link",t),n.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(u,r))}}function yh(t,e,n,l){var u=(u=rt.current)?ni(u):null;if(!u)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=Zl(n.href),n=hl(u).hoistableStyles,l=n.get(e),l||(l={type:"style",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=Zl(n.href);var r=hl(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(Na(t)))&&!r._p&&(f.instance=r,f.state.loading=5),qe.has(t)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},qe.set(t,n),r||Op(u,t,n,f.state))),e&&l===null)throw Error(s(528,""));return f}if(e&&l!==null)throw Error(s(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=Vl(n),n=hl(u).hoistableScripts,l=n.get(e),l||(l={type:"script",instance:null,count:0,state:null},n.set(e,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function Zl(t){return'href="'+Ae(t)+'"'}function Na(t){return'link[rel="stylesheet"]['+t+"]"}function vh(t){return _({},t,{"data-precedence":t.precedence,precedence:null})}function Op(t,e,n,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}),te(e,"link",n),Ft(e),t.head.appendChild(e))}function Vl(t){return'[src="'+Ae(t)+'"]'}function Ha(t){return"script[async]"+t}function mh(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var l=t.querySelector('style[data-href~="'+Ae(n.href)+'"]');if(l)return e.instance=l,Ft(l),l;var u=_({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Ft(l),te(l,"style",u),li(l,n.precedence,t),e.instance=l;case"stylesheet":u=Zl(n.href);var r=t.querySelector(Na(u));if(r)return e.state.loading|=4,e.instance=r,Ft(r),r;l=vh(n),(u=qe.get(u))&&Lc(l,u),r=(t.ownerDocument||t).createElement("link"),Ft(r);var f=r;return f._p=new Promise(function(h,g){f.onload=h,f.onerror=g}),te(r,"link",l),e.state.loading|=4,li(r,n.precedence,t),e.instance=r;case"script":return r=Vl(n.src),(u=t.querySelector(Ha(r)))?(e.instance=u,Ft(u),u):(l=n,(u=qe.get(r))&&(l=_({},n),Xc(l,u)),t=t.ownerDocument||t,u=t.createElement("script"),Ft(u),te(u,"link",l),t.head.appendChild(u),e.instance=u);case"void":return null;default:throw Error(s(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(l=e.instance,e.state.loading|=4,li(l,n.precedence,t));return e.instance}function li(t,e,n){for(var l=n.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 h=l[f];if(h.dataset.precedence===e)r=h;else if(r!==u)break}r?r.parentNode.insertBefore(t,r.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Lc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Xc(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ai=null;function ph(t,e,n){if(ai===null){var l=new Map,u=ai=new Map;u.set(n,l)}else u=ai,l=u.get(n),l||(l=new Map,u.set(n,l));if(l.has(t))return l;for(l.set(t,null),n=n.getElementsByTagName(t),u=0;u<n.length;u++){var r=n[u];if(!(r[Il]||r[$t]||t==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var f=r.getAttribute(e)||"";f=t+f;var h=l.get(f);h?h.push(r):l.set(f,[r])}}return l}function gh(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function _p(t,e,n){if(n===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 Ep(t,e,n,l){if(n.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var u=Zl(l.href),r=e.querySelector(Na(u));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=ui.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=r,Ft(r);return}r=e.ownerDocument||e,l=vh(l),(u=qe.get(u))&&Lc(l,u),r=r.createElement("link"),Ft(r);var f=r;f._p=new Promise(function(h,g){f.onload=h,f.onerror=g}),te(r,"link",l),n.instance=r}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=ui.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Kc=0;function xp(t,e){return t.stylesheets&&t.count===0&&ri(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var l=setTimeout(function(){if(t.stylesheets&&ri(t,t.stylesheets),t.unsuspend){var r=t.unsuspend;t.unsuspend=null,r()}},6e4+e);0<t.imgBytes&&Kc===0&&(Kc=62500*ap());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ri(t,t.stylesheets),t.unsuspend)){var r=t.unsuspend;t.unsuspend=null,r()}},(t.imgBytes>Kc?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function ui(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ri(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var ii=null;function ri(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,ii=new Map,e.forEach(Tp,t),ii=null,ui.call(t))}function Tp(t,e){if(!(e.state.loading&4)){var n=ii.get(t);if(n)var l=n.get(null);else{n=new Map,ii.set(t,n);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")&&(n.set(f.dataset.precedence,f),l=f)}l&&n.set(null,l)}u=e.instance,f=u.getAttribute("data-precedence"),r=n.get(f)||l,r===l&&n.set(null,u),n.set(f,u),this.count++,l=ui.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 wa={$$typeof:Tt,Provider:null,Consumer:null,_currentValue:K,_currentValue2:K,_threadCount:0};function Ap(t,e,n,l,u,r,f,h,g){this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Bi(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Bi(0),this.hiddenUpdates=Bi(null),this.identifierPrefix=l,this.onUncaughtError=u,this.onCaughtError=r,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function Sh(t,e,n,l,u,r,f,h,g,x,C,U){return t=new Ap(t,e,n,f,g,x,C,U,h),e=1,r===!0&&(e|=24),r=pe(3,null,null,e),t.current=r,r.stateNode=t,e=Er(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:l,isDehydrated:n,cache:e},zr(r),t}function Oh(t){return t?(t=El,t):El}function _h(t,e,n,l,u,r){u=Oh(u),l.context===null?l.context=u:l.pendingContext=u,l=bn(e),l.payload={element:n},r=r===void 0?null:r,r!==null&&(l.callback=r),n=Sn(t,l,e),n!==null&&(de(n,t,e),ma(n,t,e))}function Eh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Zc(t,e){Eh(t,e),(t=t.alternate)&&Eh(t,e)}function xh(t){if(t.tag===13||t.tag===31){var e=Zn(t,67108864);e!==null&&de(e,t,67108864),Zc(t,67108864)}}function Th(t){if(t.tag===13||t.tag===31){var e=_e();e=Yi(e);var n=Zn(t,e);n!==null&&de(n,t,e),Zc(t,e)}}var ci=!0;function zp(t,e,n,l){var u=T.T;T.T=null;var r=N.p;try{N.p=2,Vc(t,e,n,l)}finally{N.p=r,T.T=u}}function Mp(t,e,n,l){var u=T.T;T.T=null;var r=N.p;try{N.p=8,Vc(t,e,n,l)}finally{N.p=r,T.T=u}}function Vc(t,e,n,l){if(ci){var u=Jc(l);if(u===null)Rc(t,e,l,si,n),zh(t,l);else if(Cp(u,t,e,n,l))l.stopPropagation();else if(zh(t,l),e&4&&-1<jp.indexOf(t)){for(;u!==null;){var r=dl(u);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var f=Yn(r.pendingLanes);if(f!==0){var h=r;for(h.pendingLanes|=2,h.entangledLanes|=2;f;){var g=1<<31-ve(f);h.entanglements[1]|=g,f&=~g}Xe(r),(xt&6)===0&&(Zu=he()+500,Ra(0))}}break;case 31:case 13:h=Zn(r,2),h!==null&&de(h,r,2),Ju(),Zc(r,2)}if(r=Jc(l),r===null&&Rc(t,e,l,si,n),r===u)break;u=r}u!==null&&l.stopPropagation()}else Rc(t,e,l,null,n)}}function Jc(t){return t=ki(t),Fc(t)}var si=null;function Fc(t){if(si=null,t=ol(t),t!==null){var e=d(t);if(e===null)t=null;else{var n=e.tag;if(n===13){if(t=y(e),t!==null)return t;t=null}else if(n===31){if(t=v(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return si=t,null}function Ah(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(yv()){case Rs:return 2;case Us:return 8;case Wa:case vv:return 32;case qs:return 268435456;default:return 32}default:return 32}}var kc=!1,Dn=null,Rn=null,Un=null,Ba=new Map,Ya=new Map,qn=[],jp="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 zh(t,e){switch(t){case"focusin":case"focusout":Dn=null;break;case"dragenter":case"dragleave":Rn=null;break;case"mouseover":case"mouseout":Un=null;break;case"pointerover":case"pointerout":Ba.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ya.delete(e.pointerId)}}function Ga(t,e,n,l,u,r){return t===null||t.nativeEvent!==r?(t={blockedOn:e,domEventName:n,eventSystemFlags:l,nativeEvent:r,targetContainers:[u]},e!==null&&(e=dl(e),e!==null&&xh(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function Cp(t,e,n,l,u){switch(e){case"focusin":return Dn=Ga(Dn,t,e,n,l,u),!0;case"dragenter":return Rn=Ga(Rn,t,e,n,l,u),!0;case"mouseover":return Un=Ga(Un,t,e,n,l,u),!0;case"pointerover":var r=u.pointerId;return Ba.set(r,Ga(Ba.get(r)||null,t,e,n,l,u)),!0;case"gotpointercapture":return r=u.pointerId,Ya.set(r,Ga(Ya.get(r)||null,t,e,n,l,u)),!0}return!1}function Mh(t){var e=ol(t.target);if(e!==null){var n=d(e);if(n!==null){if(e=n.tag,e===13){if(e=y(n),e!==null){t.blockedOn=e,Ys(t.priority,function(){Th(n)});return}}else if(e===31){if(e=v(n),e!==null){t.blockedOn=e,Ys(t.priority,function(){Th(n)});return}}else if(e===3&&n.stateNode.current.memoizedState.isDehydrated){t.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}t.blockedOn=null}function fi(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Jc(t.nativeEvent);if(n===null){n=t.nativeEvent;var l=new n.constructor(n.type,n);Fi=l,n.target.dispatchEvent(l),Fi=null}else return e=dl(n),e!==null&&xh(e),t.blockedOn=n,!1;e.shift()}return!0}function jh(t,e,n){fi(t)&&n.delete(e)}function Dp(){kc=!1,Dn!==null&&fi(Dn)&&(Dn=null),Rn!==null&&fi(Rn)&&(Rn=null),Un!==null&&fi(Un)&&(Un=null),Ba.forEach(jh),Ya.forEach(jh)}function oi(t,e){t.blockedOn===e&&(t.blockedOn=null,kc||(kc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Dp)))}var di=null;function Ch(t){di!==t&&(di=t,a.unstable_scheduleCallback(a.unstable_NormalPriority,function(){di===t&&(di=null);for(var e=0;e<t.length;e+=3){var n=t[e],l=t[e+1],u=t[e+2];if(typeof l!="function"){if(Fc(l||n)===null)continue;break}var r=dl(n);r!==null&&(t.splice(e,3),e-=3,Jr(r,{pending:!0,data:u,method:n.method,action:l},l,u))}}))}function Jl(t){function e(g){return oi(g,t)}Dn!==null&&oi(Dn,t),Rn!==null&&oi(Rn,t),Un!==null&&oi(Un,t),Ba.forEach(e),Ya.forEach(e);for(var n=0;n<qn.length;n++){var l=qn[n];l.blockedOn===t&&(l.blockedOn=null)}for(;0<qn.length&&(n=qn[0],n.blockedOn===null);)Mh(n),n.blockedOn===null&&qn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(l=0;l<n.length;l+=3){var u=n[l],r=n[l+1],f=u[ie]||null;if(typeof r=="function")f||Ch(n);else if(f){var h=null;if(r&&r.hasAttribute("formAction")){if(u=r,f=r[ie]||null)h=f.formAction;else if(Fc(u)!==null)continue}else h=f.action;typeof h=="function"?n[l+1]=h:(n.splice(l,3),l-=3),Ch(n)}}}function Dh(){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(n,20)}function n(){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(n,100),function(){l=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),u!==null&&(u(),u=null)}}}function $c(t){this._internalRoot=t}hi.prototype.render=$c.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(s(409));var n=e.current,l=_e();_h(n,l,t,e,null,null)},hi.prototype.unmount=$c.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;_h(t.current,2,null,t,null,null),Ju(),e[fl]=null}};function hi(t){this._internalRoot=t}hi.prototype.unstable_scheduleHydration=function(t){if(t){var e=Bs();t={blockedOn:null,target:t,priority:e};for(var n=0;n<qn.length&&e!==0&&e<qn[n].priority;n++);qn.splice(n,0,t),n===0&&Mh(t)}};var Rh=i.version;if(Rh!=="19.2.1")throw Error(s(527,Rh,"19.2.1"));N.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=p(e),t=t!==null?M(t):null,t=t===null?null:t.stateNode,t};var Rp={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:T,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yi.isDisabled&&yi.supportsFiber)try{$l=yi.inject(Rp),ye=yi}catch{}}return Xa.createRoot=function(t,e){if(!o(t))throw Error(s(299));var n=!1,l="",u=Bo,r=Yo,f=Go;return e!=null&&(e.unstable_strictMode===!0&&(n=!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=Sh(t,1,!1,null,null,n,l,null,u,r,f,Dh),t[fl]=e.current,Dc(t),new $c(e)},Xa.hydrateRoot=function(t,e,n){if(!o(t))throw Error(s(299));var l=!1,u="",r=Bo,f=Yo,h=Go,g=null;return n!=null&&(n.unstable_strictMode===!0&&(l=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(r=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(h=n.onRecoverableError),n.formState!==void 0&&(g=n.formState)),e=Sh(t,1,!0,e,n??null,l,u,g,r,f,h,Dh),e.context=Oh(null),n=e.current,l=_e(),l=Yi(l),u=bn(l),u.callback=null,Sn(n,u,l),n=l,e.current.lanes=n,Wl(e,n),Xe(e),t[fl]=e.current,Dc(t),new hi(e)},Xa.version="19.2.1",Xa}var Lh;function Zp(){if(Lh)return Ic.exports;Lh=1;function a(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(a)}catch(i){console.error(i)}}return a(),Ic.exports=Kp(),Ic.exports}var Vp=Zp(),rl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(a){return this.listeners.add(a),this.onSubscribe(),()=>{this.listeners.delete(a),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},ul=typeof window>"u"||"Deno"in globalThis;function ne(){}function Jp(a,i){return typeof a=="function"?a(i):a}function fs(a){return typeof a=="number"&&a>=0&&a!==1/0}function yy(a,i){return Math.max(a+(i||0)-Date.now(),0)}function Nn(a,i){return typeof a=="function"?a(i):a}function we(a,i){return typeof a=="function"?a(i):a}function Xh(a,i){const{type:c="all",exact:s,fetchStatus:o,predicate:d,queryKey:y,stale:v}=a;if(y){if(s){if(i.queryHash!==bs(y,i.options))return!1}else if(!Va(i.queryKey,y))return!1}if(c!=="all"){const m=i.isActive();if(c==="active"&&!m||c==="inactive"&&m)return!1}return!(typeof v=="boolean"&&i.isStale()!==v||o&&o!==i.state.fetchStatus||d&&!d(i))}function Kh(a,i){const{exact:c,status:s,predicate:o,mutationKey:d}=a;if(d){if(!i.options.mutationKey)return!1;if(c){if(Hn(i.options.mutationKey)!==Hn(d))return!1}else if(!Va(i.options.mutationKey,d))return!1}return!(s&&i.state.status!==s||o&&!o(i))}function bs(a,i){return(i?.queryKeyHashFn||Hn)(a)}function Hn(a){return JSON.stringify(a,(i,c)=>os(c)?Object.keys(c).sort().reduce((s,o)=>(s[o]=c[o],s),{}):c)}function Va(a,i){return a===i?!0:typeof a!=typeof i?!1:a&&i&&typeof a=="object"&&typeof i=="object"?Object.keys(i).every(c=>Va(a[c],i[c])):!1}function Ss(a,i){if(a===i)return a;const c=Zh(a)&&Zh(i);if(c||os(a)&&os(i)){const s=c?a:Object.keys(a),o=s.length,d=c?i:Object.keys(i),y=d.length,v=c?[]:{},m=new Set(s);let p=0;for(let M=0;M<y;M++){const _=c?M:d[M];(!c&&m.has(_)||c)&&a[_]===void 0&&i[_]===void 0?(v[_]=void 0,p++):(v[_]=Ss(a[_],i[_]),v[_]===a[_]&&a[_]!==void 0&&p++)}return o===y&&p===o?a:v}return i}function Oi(a,i){if(!i||Object.keys(a).length!==Object.keys(i).length)return!1;for(const c in a)if(a[c]!==i[c])return!1;return!0}function Zh(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function os(a){if(!Vh(a))return!1;const i=a.constructor;if(i===void 0)return!0;const c=i.prototype;return!(!Vh(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Vh(a){return Object.prototype.toString.call(a)==="[object Object]"}function Fp(a){return new Promise(i=>{setTimeout(i,a)})}function ds(a,i,c){return typeof c.structuralSharing=="function"?c.structuralSharing(a,i):c.structuralSharing!==!1?Ss(a,i):i}function kp(a,i,c=0){const s=[...a,i];return c&&s.length>c?s.slice(1):s}function $p(a,i,c=0){const s=[i,...a];return c&&s.length>c?s.slice(0,-1):s}var Ee=Symbol();function vy(a,i){return!a.queryFn&&i?.initialPromise?()=>i.initialPromise:!a.queryFn||a.queryFn===Ee?()=>Promise.reject(new Error(`Missing queryFn: '${a.queryHash}'`)):a.queryFn}function my(a,i){return typeof a=="function"?a(...i):!!a}var Pp=class extends rl{#e;#t;#n;constructor(){super(),this.#n=a=>{if(!ul&&window.addEventListener){const i=()=>a();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(a){this.#n=a,this.#t?.(),this.#t=a(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(a){this.#e!==a&&(this.#e=a,this.onFocus())}onFocus(){const a=this.isFocused();this.listeners.forEach(i=>{i(a)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Os=new Pp,Wp=class extends rl{#e=!0;#t;#n;constructor(){super(),this.#n=a=>{if(!ul&&window.addEventListener){const i=()=>a(!0),c=()=>a(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",c,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",c)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(a){this.#n=a,this.#t?.(),this.#t=a(this.setOnline.bind(this))}setOnline(a){this.#e!==a&&(this.#e=a,this.listeners.forEach(c=>{c(a)}))}isOnline(){return this.#e}},_i=new Wp;function hs(){let a,i;const c=new Promise((o,d)=>{a=o,i=d});c.status="pending",c.catch(()=>{});function s(o){Object.assign(c,o),delete c.resolve,delete c.reject}return c.resolve=o=>{s({status:"fulfilled",value:o}),a(o)},c.reject=o=>{s({status:"rejected",reason:o}),i(o)},c}function Ip(a){return Math.min(1e3*2**a,3e4)}function py(a){return(a??"online")==="online"?_i.isOnline():!0}var gy=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function ls(a){return a instanceof gy}function by(a){let i=!1,c=0,s=!1,o;const d=hs(),y=Q=>{s||(q(new gy(Q)),a.abort?.())},v=()=>{i=!0},m=()=>{i=!1},p=()=>Os.isFocused()&&(a.networkMode==="always"||_i.isOnline())&&a.canRun(),M=()=>py(a.networkMode)&&a.canRun(),_=Q=>{s||(s=!0,a.onSuccess?.(Q),o?.(),d.resolve(Q))},q=Q=>{s||(s=!0,a.onError?.(Q),o?.(),d.reject(Q))},B=()=>new Promise(Q=>{o=$=>{(s||p())&&Q($)},a.onPause?.()}).then(()=>{o=void 0,s||a.onContinue?.()}),J=()=>{if(s)return;let Q;const $=c===0?a.initialPromise:void 0;try{Q=$??a.fn()}catch(at){Q=Promise.reject(at)}Promise.resolve(Q).then(_).catch(at=>{if(s)return;const dt=a.retry??(ul?0:3),Tt=a.retryDelay??Ip,qt=typeof Tt=="function"?Tt(c,at):Tt,k=dt===!0||typeof dt=="number"&&c<dt||typeof dt=="function"&&dt(c,at);if(i||!k){q(at);return}c++,a.onFail?.(c,at),Fp(qt).then(()=>p()?void 0:B()).then(()=>{i?q(at):J()})})};return{promise:d,cancel:y,continue:()=>(o?.(),d),cancelRetry:v,continueRetry:m,canStart:M,start:()=>(M()?J():B().then(J),d)}}var t0=a=>setTimeout(a,0);function e0(){let a=[],i=0,c=v=>{v()},s=v=>{v()},o=t0;const d=v=>{i?a.push(v):o(()=>{c(v)})},y=()=>{const v=a;a=[],v.length&&o(()=>{s(()=>{v.forEach(m=>{c(m)})})})};return{batch:v=>{let m;i++;try{m=v()}finally{i--,i||y()}return m},batchCalls:v=>(...m)=>{d(()=>{v(...m)})},schedule:d,setNotifyFunction:v=>{c=v},setBatchNotifyFunction:v=>{s=v},setScheduler:v=>{o=v}}}var wt=e0(),Sy=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),fs(this.gcTime)&&(this.#e=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(a){this.gcTime=Math.max(this.gcTime||0,a??(ul?1/0:300*1e3))}clearGcTimeout(){this.#e&&(clearTimeout(this.#e),this.#e=void 0)}},n0=class extends Sy{#e;#t;#n;#l;#a;#u;#r;constructor(a){super(),this.#r=!1,this.#u=a.defaultOptions,this.setOptions(a.options),this.observers=[],this.#l=a.client,this.#n=this.#l.getQueryCache(),this.queryKey=a.queryKey,this.queryHash=a.queryHash,this.#e=l0(this.options),this.state=a.state??this.#e,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(a){this.options={...this.#u,...a},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(a,i){const c=ds(this.state.data,a,this.options);return this.#i({data:c,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),c}setState(a,i){this.#i({type:"setState",state:a,setStateOptions:i})}cancel(a){const i=this.#a?.promise;return this.#a?.cancel(a),i?i.then(ne).catch(ne):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#e)}isActive(){return this.observers.some(a=>we(a.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ee||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(a=>Nn(a.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(a=>a.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(a=0){return this.state.data===void 0?!0:a==="static"?!1:this.state.isInvalidated?!0:!yy(this.state.dataUpdatedAt,a)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(a){this.observers.includes(a)||(this.observers.push(a),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:a}))}removeObserver(a){this.observers.includes(a)&&(this.observers=this.observers.filter(i=>i!==a),this.observers.length||(this.#a&&(this.#r?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:a}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}fetch(a,i){if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(a&&this.setOptions(a),!this.options.queryFn){const m=this.observers.find(p=>p.options.queryFn);m&&this.setOptions(m.options)}const c=new AbortController,s=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#r=!0,c.signal)})},o=()=>{const m=vy(this.options,i),M=(()=>{const _={client:this.#l,queryKey:this.queryKey,meta:this.meta};return s(_),_})();return this.#r=!1,this.options.persister?this.options.persister(m,M,this):m(M)},y=(()=>{const m={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:o};return s(m),m})();this.options.behavior?.onFetch(y,this),this.#t=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==y.fetchOptions?.meta)&&this.#i({type:"fetch",meta:y.fetchOptions?.meta});const v=m=>{ls(m)&&m.silent||this.#i({type:"error",error:m}),ls(m)||(this.#n.config.onError?.(m,this),this.#n.config.onSettled?.(this.state.data,m,this)),this.scheduleGc()};return this.#a=by({initialPromise:i?.initialPromise,fn:y.fetchFn,abort:c.abort.bind(c),onSuccess:m=>{if(m===void 0){v(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(m)}catch(p){v(p);return}this.#n.config.onSuccess?.(m,this),this.#n.config.onSettled?.(m,this.state.error,this),this.scheduleGc()},onError:v,onFail:(m,p)=>{this.#i({type:"failed",failureCount:m,error:p})},onPause:()=>{this.#i({type:"pause"})},onContinue:()=>{this.#i({type:"continue"})},retry:y.options.retry,retryDelay:y.options.retryDelay,networkMode:y.options.networkMode,canRun:()=>!0}),this.#a.start()}#i(a){const i=c=>{switch(a.type){case"failed":return{...c,fetchFailureCount:a.failureCount,fetchFailureReason:a.error};case"pause":return{...c,fetchStatus:"paused"};case"continue":return{...c,fetchStatus:"fetching"};case"fetch":return{...c,...Oy(c.data,this.options),fetchMeta:a.meta??null};case"success":return this.#t=void 0,{...c,data:a.data,dataUpdateCount:c.dataUpdateCount+1,dataUpdatedAt:a.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!a.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const s=a.error;return ls(s)&&s.revert&&this.#t?{...this.#t,fetchStatus:"idle"}:{...c,error:s,errorUpdateCount:c.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:c.fetchFailureCount+1,fetchFailureReason:s,fetchStatus:"idle",status:"error"};case"invalidate":return{...c,isInvalidated:!0};case"setState":return{...c,...a.state}}};this.state=i(this.state),wt.batch(()=>{this.observers.forEach(c=>{c.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:a})})}};function Oy(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:py(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function l0(a){const i=typeof a.initialData=="function"?a.initialData():a.initialData,c=i!==void 0,s=c?typeof a.initialDataUpdatedAt=="function"?a.initialDataUpdatedAt():a.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:c?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:c?"success":"pending",fetchStatus:"idle"}}var a0=class extends rl{constructor(a={}){super(),this.config=a,this.#e=new Map}#e;build(a,i,c){const s=i.queryKey,o=i.queryHash??bs(s,i);let d=this.get(o);return d||(d=new n0({client:a,queryKey:s,queryHash:o,options:a.defaultQueryOptions(i),state:c,defaultOptions:a.getQueryDefaults(s)}),this.add(d)),d}add(a){this.#e.has(a.queryHash)||(this.#e.set(a.queryHash,a),this.notify({type:"added",query:a}))}remove(a){const i=this.#e.get(a.queryHash);i&&(a.destroy(),i===a&&this.#e.delete(a.queryHash),this.notify({type:"removed",query:a}))}clear(){wt.batch(()=>{this.getAll().forEach(a=>{this.remove(a)})})}get(a){return this.#e.get(a)}getAll(){return[...this.#e.values()]}find(a){const i={exact:!0,...a};return this.getAll().find(c=>Xh(i,c))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(c=>Xh(a,c)):i}notify(a){wt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}onFocus(){wt.batch(()=>{this.getAll().forEach(a=>{a.onFocus()})})}onOnline(){wt.batch(()=>{this.getAll().forEach(a=>{a.onOnline()})})}},u0=class extends Sy{#e;#t;#n;constructor(a){super(),this.mutationId=a.mutationId,this.#t=a.mutationCache,this.#e=[],this.state=a.state||_y(),this.setOptions(a.options),this.scheduleGc()}setOptions(a){this.options=a,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(a){this.#e.includes(a)||(this.#e.push(a),this.clearGcTimeout(),this.#t.notify({type:"observerAdded",mutation:this,observer:a}))}removeObserver(a){this.#e=this.#e.filter(i=>i!==a),this.scheduleGc(),this.#t.notify({type:"observerRemoved",mutation:this,observer:a})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#t.remove(this))}continue(){return this.#n?.continue()??this.execute(this.state.variables)}async execute(a){const i=()=>{this.#l({type:"continue"})};this.#n=by({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(o,d)=>{this.#l({type:"failed",failureCount:o,error:d})},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 c=this.state.status==="pending",s=!this.#n.canStart();try{if(c)i();else{this.#l({type:"pending",variables:a,isPaused:s}),await this.#t.config.onMutate?.(a,this);const d=await this.options.onMutate?.(a);d!==this.state.context&&this.#l({type:"pending",context:d,variables:a,isPaused:s})}const o=await this.#n.start();return await this.#t.config.onSuccess?.(o,a,this.state.context,this),await this.options.onSuccess?.(o,a,this.state.context),await this.#t.config.onSettled?.(o,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(o,null,a,this.state.context),this.#l({type:"success",data:o}),o}catch(o){try{throw await this.#t.config.onError?.(o,a,this.state.context,this),await this.options.onError?.(o,a,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,a,this.state.context),o}finally{this.#l({type:"error",error:o})}}finally{this.#t.runNext(this)}}#l(a){const i=c=>{switch(a.type){case"failed":return{...c,failureCount:a.failureCount,failureReason:a.error};case"pause":return{...c,isPaused:!0};case"continue":return{...c,isPaused:!1};case"pending":return{...c,context:a.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:a.isPaused,status:"pending",variables:a.variables,submittedAt:Date.now()};case"success":return{...c,data:a.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...c,data:void 0,error:a.error,failureCount:c.failureCount+1,failureReason:a.error,isPaused:!1,status:"error"}}};this.state=i(this.state),wt.batch(()=>{this.#e.forEach(c=>{c.onMutationUpdate(a)}),this.#t.notify({mutation:this,type:"updated",action:a})})}};function _y(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var i0=class extends rl{constructor(a={}){super(),this.config=a,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(a,i,c){const s=new u0({mutationCache:this,mutationId:++this.#n,options:a.defaultMutationOptions(i),state:c});return this.add(s),s}add(a){this.#e.add(a);const i=vi(a);if(typeof i=="string"){const c=this.#t.get(i);c?c.push(a):this.#t.set(i,[a])}this.notify({type:"added",mutation:a})}remove(a){if(this.#e.delete(a)){const i=vi(a);if(typeof i=="string"){const c=this.#t.get(i);if(c)if(c.length>1){const s=c.indexOf(a);s!==-1&&c.splice(s,1)}else c[0]===a&&this.#t.delete(i)}}this.notify({type:"removed",mutation:a})}canRun(a){const i=vi(a);if(typeof i=="string"){const s=this.#t.get(i)?.find(o=>o.state.status==="pending");return!s||s===a}else return!0}runNext(a){const i=vi(a);return typeof i=="string"?this.#t.get(i)?.find(s=>s!==a&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){wt.batch(()=>{this.#e.forEach(a=>{this.notify({type:"removed",mutation:a})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(a){const i={exact:!0,...a};return this.getAll().find(c=>Kh(i,c))}findAll(a={}){return this.getAll().filter(i=>Kh(a,i))}notify(a){wt.batch(()=>{this.listeners.forEach(i=>{i(a)})})}resumePausedMutations(){const a=this.getAll().filter(i=>i.state.isPaused);return wt.batch(()=>Promise.all(a.map(i=>i.continue().catch(ne))))}};function vi(a){return a.options.scope?.id}function Ei(a){return{onFetch:(i,c)=>{const s=i.options,o=i.fetchOptions?.meta?.fetchMore?.direction,d=i.state.data?.pages||[],y=i.state.data?.pageParams||[];let v={pages:[],pageParams:[]},m=0;const p=async()=>{let M=!1;const _=J=>{Object.defineProperty(J,"signal",{enumerable:!0,get:()=>(i.signal.aborted?M=!0:i.signal.addEventListener("abort",()=>{M=!0}),i.signal)})},q=vy(i.options,i.fetchOptions),B=async(J,Q,$)=>{if(M)return Promise.reject();if(Q==null&&J.pages.length)return Promise.resolve(J);const dt=(()=>{const L={client:i.client,queryKey:i.queryKey,pageParam:Q,direction:$?"backward":"forward",meta:i.options.meta};return _(L),L})(),Tt=await q(dt),{maxPages:qt}=i.options,k=$?$p:kp;return{pages:k(J.pages,Tt,qt),pageParams:k(J.pageParams,Q,qt)}};if(o&&d.length){const J=o==="backward",Q=J?Ey:ys,$={pages:d,pageParams:y},at=Q(s,$);v=await B($,at,J)}else{const J=a??d.length;do{const Q=m===0?y[0]??s.initialPageParam:ys(s,v);if(m>0&&Q==null)break;v=await B(v,Q),m++}while(m<J)}return v};i.options.persister?i.fetchFn=()=>i.options.persister?.(p,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},c):i.fetchFn=p}}}function ys(a,{pages:i,pageParams:c}){const s=i.length-1;return i.length>0?a.getNextPageParam(i[s],i,c[s],c):void 0}function Ey(a,{pages:i,pageParams:c}){return i.length>0?a.getPreviousPageParam?.(i[0],i,c[0],c):void 0}function r0(a,i){return i?ys(a,i)!=null:!1}function c0(a,i){return!i||!a.getPreviousPageParam?!1:Ey(a,i)!=null}var s0=class{#e;#t;#n;#l;#a;#u;#r;#i;constructor(a={}){this.#e=a.queryCache||new a0,this.#t=a.mutationCache||new i0,this.#n=a.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#r=Os.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#i=_i.subscribe(async a=>{a&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#u--,this.#u===0&&(this.#r?.(),this.#r=void 0,this.#i?.(),this.#i=void 0)}isFetching(a){return this.#e.findAll({...a,fetchStatus:"fetching"}).length}isMutating(a){return this.#t.findAll({...a,status:"pending"}).length}getQueryData(a){const i=this.defaultQueryOptions({queryKey:a});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(a){const i=this.defaultQueryOptions(a),c=this.#e.build(this,i),s=c.state.data;return s===void 0?this.fetchQuery(a):(a.revalidateIfStale&&c.isStaleByTime(Nn(i.staleTime,c))&&this.prefetchQuery(i),Promise.resolve(s))}getQueriesData(a){return this.#e.findAll(a).map(({queryKey:i,state:c})=>{const s=c.data;return[i,s]})}setQueryData(a,i,c){const s=this.defaultQueryOptions({queryKey:a}),d=this.#e.get(s.queryHash)?.state.data,y=Jp(i,d);if(y!==void 0)return this.#e.build(this,s).setData(y,{...c,manual:!0})}setQueriesData(a,i,c){return wt.batch(()=>this.#e.findAll(a).map(({queryKey:s})=>[s,this.setQueryData(s,i,c)]))}getQueryState(a){const i=this.defaultQueryOptions({queryKey:a});return this.#e.get(i.queryHash)?.state}removeQueries(a){const i=this.#e;wt.batch(()=>{i.findAll(a).forEach(c=>{i.remove(c)})})}resetQueries(a,i){const c=this.#e;return wt.batch(()=>(c.findAll(a).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...a},i)))}cancelQueries(a,i={}){const c={revert:!0,...i},s=wt.batch(()=>this.#e.findAll(a).map(o=>o.cancel(c)));return Promise.all(s).then(ne).catch(ne)}invalidateQueries(a,i={}){return wt.batch(()=>(this.#e.findAll(a).forEach(c=>{c.invalidate()}),a?.refetchType==="none"?Promise.resolve():this.refetchQueries({...a,type:a?.refetchType??a?.type??"active"},i)))}refetchQueries(a,i={}){const c={...i,cancelRefetch:i.cancelRefetch??!0},s=wt.batch(()=>this.#e.findAll(a).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let d=o.fetch(void 0,c);return c.throwOnError||(d=d.catch(ne)),o.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(s).then(ne)}fetchQuery(a){const i=this.defaultQueryOptions(a);i.retry===void 0&&(i.retry=!1);const c=this.#e.build(this,i);return c.isStaleByTime(Nn(i.staleTime,c))?c.fetch(i):Promise.resolve(c.state.data)}prefetchQuery(a){return this.fetchQuery(a).then(ne).catch(ne)}fetchInfiniteQuery(a){return a.behavior=Ei(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(ne).catch(ne)}ensureInfiniteQueryData(a){return a.behavior=Ei(a.pages),this.ensureQueryData(a)}resumePausedMutations(){return _i.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(a){this.#n=a}setQueryDefaults(a,i){this.#l.set(Hn(a),{queryKey:a,defaultOptions:i})}getQueryDefaults(a){const i=[...this.#l.values()],c={};return i.forEach(s=>{Va(a,s.queryKey)&&Object.assign(c,s.defaultOptions)}),c}setMutationDefaults(a,i){this.#a.set(Hn(a),{mutationKey:a,defaultOptions:i})}getMutationDefaults(a){const i=[...this.#a.values()],c={};return i.forEach(s=>{Va(a,s.mutationKey)&&Object.assign(c,s.defaultOptions)}),c}defaultQueryOptions(a){if(a._defaulted)return a;const i={...this.#n.queries,...this.getQueryDefaults(a.queryKey),...a,_defaulted:!0};return i.queryHash||(i.queryHash=bs(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===Ee&&(i.enabled=!1),i}defaultMutationOptions(a){return a?._defaulted?a:{...this.#n.mutations,...a?.mutationKey&&this.getMutationDefaults(a.mutationKey),...a,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Ja=class extends rl{constructor(a,i){super(),this.options=i,this.#e=a,this.#i=null,this.#r=hs(),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;#n=void 0;#l=void 0;#a;#u;#r;#i;#h;#o;#d;#s;#f;#c;#v=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Jh(this.#t,this.options)?this.#y():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return vs(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return vs(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#S(),this.#O(),this.#t.removeObserver(this)}setOptions(a){const i=this.options,c=this.#t;if(this.options=this.#e.defaultQueryOptions(a),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof we(this.options.enabled,this.#t)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#_(),this.#t.setOptions(this.options),i._defaulted&&!Oi(this.options,i)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#t,observer:this});const s=this.hasListeners();s&&Fh(this.#t,c,this.options,i)&&this.#y(),this.updateResult(),s&&(this.#t!==c||we(this.options.enabled,this.#t)!==we(i.enabled,this.#t)||Nn(this.options.staleTime,this.#t)!==Nn(i.staleTime,this.#t))&&this.#m();const o=this.#p();s&&(this.#t!==c||we(this.options.enabled,this.#t)!==we(i.enabled,this.#t)||o!==this.#c)&&this.#g(o)}getOptimisticResult(a){const i=this.#e.getQueryCache().build(this.#e,a),c=this.createResult(i,a);return o0(this,c)&&(this.#l=c,this.#u=this.options,this.#a=this.#t.state),c}getCurrentResult(){return this.#l}trackResult(a,i){return new Proxy(a,{get:(c,s)=>(this.trackProp(s),i?.(s),Reflect.get(c,s))})}trackProp(a){this.#v.add(a)}getCurrentQuery(){return this.#t}refetch({...a}={}){return this.fetch({...a})}fetchOptimistic(a){const i=this.#e.defaultQueryOptions(a),c=this.#e.getQueryCache().build(this.#e,i);return c.fetch().then(()=>this.createResult(c,i))}fetch(a){return this.#y({...a,cancelRefetch:a.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#y(a){this.#_();let i=this.#t.fetch(this.options,a);return a?.throwOnError||(i=i.catch(ne)),i}#m(){this.#S();const a=Nn(this.options.staleTime,this.#t);if(ul||this.#l.isStale||!fs(a))return;const c=yy(this.#l.dataUpdatedAt,a)+1;this.#s=setTimeout(()=>{this.#l.isStale||this.updateResult()},c)}#p(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#g(a){this.#O(),this.#c=a,!(ul||we(this.options.enabled,this.#t)===!1||!fs(this.#c)||this.#c===0)&&(this.#f=setInterval(()=>{(this.options.refetchIntervalInBackground||Os.isFocused())&&this.#y()},this.#c))}#b(){this.#m(),this.#g(this.#p())}#S(){this.#s&&(clearTimeout(this.#s),this.#s=void 0)}#O(){this.#f&&(clearInterval(this.#f),this.#f=void 0)}createResult(a,i){const c=this.#t,s=this.options,o=this.#l,d=this.#a,y=this.#u,m=a!==c?a.state:this.#n,{state:p}=a;let M={...p},_=!1,q;if(i._optimisticResults){const X=this.hasListeners(),Y=!X&&Jh(a,i),et=X&&Fh(a,c,i,s);(Y||et)&&(M={...M,...Oy(p.data,a.options)}),i._optimisticResults==="isRestoring"&&(M.fetchStatus="idle")}let{error:B,errorUpdatedAt:J,status:Q}=M;q=M.data;let $=!1;if(i.placeholderData!==void 0&&q===void 0&&Q==="pending"){let X;o?.isPlaceholderData&&i.placeholderData===y?.placeholderData?(X=o.data,$=!0):X=typeof i.placeholderData=="function"?i.placeholderData(this.#d?.state.data,this.#d):i.placeholderData,X!==void 0&&(Q="success",q=ds(o?.data,X,i),_=!0)}if(i.select&&q!==void 0&&!$)if(o&&q===d?.data&&i.select===this.#h)q=this.#o;else try{this.#h=i.select,q=i.select(q),q=ds(o?.data,q,i),this.#o=q,this.#i=null}catch(X){this.#i=X}this.#i&&(B=this.#i,q=this.#o,J=Date.now(),Q="error");const at=M.fetchStatus==="fetching",dt=Q==="pending",Tt=Q==="error",qt=dt&&at,k=q!==void 0,j={status:Q,fetchStatus:M.fetchStatus,isPending:dt,isSuccess:Q==="success",isError:Tt,isInitialLoading:qt,isLoading:qt,data:q,dataUpdatedAt:M.dataUpdatedAt,error:B,errorUpdatedAt:J,failureCount:M.fetchFailureCount,failureReason:M.fetchFailureReason,errorUpdateCount:M.errorUpdateCount,isFetched:M.dataUpdateCount>0||M.errorUpdateCount>0,isFetchedAfterMount:M.dataUpdateCount>m.dataUpdateCount||M.errorUpdateCount>m.errorUpdateCount,isFetching:at,isRefetching:at&&!dt,isLoadingError:Tt&&!k,isPaused:M.fetchStatus==="paused",isPlaceholderData:_,isRefetchError:Tt&&k,isStale:_s(a,i),refetch:this.refetch,promise:this.#r};if(this.options.experimental_prefetchInRender){const X=I=>{j.status==="error"?I.reject(j.error):j.data!==void 0&&I.resolve(j.data)},Y=()=>{const I=this.#r=j.promise=hs();X(I)},et=this.#r;switch(et.status){case"pending":a.queryHash===c.queryHash&&X(et);break;case"fulfilled":(j.status==="error"||j.data!==et.value)&&Y();break;case"rejected":(j.status!=="error"||j.error!==et.reason)&&Y();break}}return j}updateResult(){const a=this.#l,i=this.createResult(this.#t,this.options);if(this.#a=this.#t.state,this.#u=this.options,this.#a.data!==void 0&&(this.#d=this.#t),Oi(i,a))return;this.#l=i;const c=()=>{if(!a)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!this.#v.size)return!0;const d=new Set(o??this.#v);return this.options.throwOnError&&d.add("error"),Object.keys(this.#l).some(y=>{const v=y;return this.#l[v]!==a[v]&&d.has(v)})};this.#E({listeners:c()})}#_(){const a=this.#e.getQueryCache().build(this.#e,this.options);if(a===this.#t)return;const i=this.#t;this.#t=a,this.#n=a.state,this.hasListeners()&&(i?.removeObserver(this),a.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#b()}#E(a){wt.batch(()=>{a.listeners&&this.listeners.forEach(i=>{i(this.#l)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function f0(a,i){return we(i.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&i.retryOnMount===!1)}function Jh(a,i){return f0(a,i)||a.state.data!==void 0&&vs(a,i,i.refetchOnMount)}function vs(a,i,c){if(we(i.enabled,a)!==!1&&Nn(i.staleTime,a)!=="static"){const s=typeof c=="function"?c(a):c;return s==="always"||s!==!1&&_s(a,i)}return!1}function Fh(a,i,c,s){return(a!==i||we(s.enabled,a)===!1)&&(!c.suspense||a.state.status!=="error")&&_s(a,c)}function _s(a,i){return we(i.enabled,a)!==!1&&a.isStaleByTime(Nn(i.staleTime,a))}function o0(a,i){return!Oi(a.getCurrentResult(),i)}function kh(a,i){const c=new Set(i);return a.filter(s=>!c.has(s))}function d0(a,i,c){const s=a.slice(0);return s[i]=c,s}var h0=class extends rl{#e;#t;#n;#l;#a;#u;#r;#i;#h=[];constructor(a,i,c){super(),this.#e=a,this.#l=c,this.#n=[],this.#a=[],this.#t=[],this.setQueries(i)}onSubscribe(){this.listeners.size===1&&this.#a.forEach(a=>{a.subscribe(i=>{this.#f(a,i)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#a.forEach(a=>{a.destroy()})}setQueries(a,i){this.#n=a,this.#l=i,wt.batch(()=>{const c=this.#a,s=this.#s(this.#n);this.#h=s,s.forEach(v=>v.observer.setOptions(v.defaultedQueryOptions));const o=s.map(v=>v.observer),d=o.map(v=>v.getCurrentResult()),y=o.some((v,m)=>v!==c[m]);c.length===o.length&&!y||(this.#a=o,this.#t=d,this.hasListeners()&&(kh(c,o).forEach(v=>{v.destroy()}),kh(o,c).forEach(v=>{v.subscribe(m=>{this.#f(v,m)})}),this.#c()))})}getCurrentResult(){return this.#t}getQueries(){return this.#a.map(a=>a.getCurrentQuery())}getObservers(){return this.#a}getOptimisticResult(a,i){const c=this.#s(a),s=c.map(o=>o.observer.getOptimisticResult(o.defaultedQueryOptions));return[s,o=>this.#d(o??s,i),()=>this.#o(s,c)]}#o(a,i){return i.map((c,s)=>{const o=a[s];return c.defaultedQueryOptions.notifyOnChangeProps?o:c.observer.trackResult(o,d=>{i.forEach(y=>{y.observer.trackProp(d)})})})}#d(a,i){return i?((!this.#u||this.#t!==this.#i||i!==this.#r)&&(this.#r=i,this.#i=this.#t,this.#u=Ss(this.#u,i(a))),this.#u):a}#s(a){const i=new Map(this.#a.map(s=>[s.options.queryHash,s])),c=[];return a.forEach(s=>{const o=this.#e.defaultQueryOptions(s),d=i.get(o.queryHash);d?c.push({defaultedQueryOptions:o,observer:d}):c.push({defaultedQueryOptions:o,observer:new Ja(this.#e,o)})}),c}#f(a,i){const c=this.#a.indexOf(a);c!==-1&&(this.#t=d0(this.#t,c,i),this.#c())}#c(){if(this.hasListeners()){const a=this.#u,i=this.#o(this.#t,this.#h),c=this.#d(i,this.#l?.combine);a!==c&&wt.batch(()=>{this.listeners.forEach(s=>{s(this.#t)})})}}},xy=class extends Ja{constructor(a,i){super(a,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(a){super.setOptions({...a,behavior:Ei()})}getOptimisticResult(a){return a.behavior=Ei(),super.getOptimisticResult(a)}fetchNextPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(a){return this.fetch({...a,meta:{fetchMore:{direction:"backward"}}})}createResult(a,i){const{state:c}=a,s=super.createResult(a,i),{isFetching:o,isRefetching:d,isError:y,isRefetchError:v}=s,m=c.fetchMeta?.fetchMore?.direction,p=y&&m==="forward",M=o&&m==="forward",_=y&&m==="backward",q=o&&m==="backward";return{...s,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:r0(i,c.data),hasPreviousPage:c0(i,c.data),isFetchNextPageError:p,isFetchingNextPage:M,isFetchPreviousPageError:_,isFetchingPreviousPage:q,isRefetchError:v&&!p&&!_,isRefetching:d&&!M&&!q}}},y0=class extends rl{#e;#t=void 0;#n;#l;constructor(i,c){super(),this.#e=i,this.setOptions(c),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(i){const c=this.options;this.options=this.#e.defaultMutationOptions(i),Oi(this.options,c)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),c?.mutationKey&&this.options.mutationKey&&Hn(c.mutationKey)!==Hn(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(i){this.#a(),this.#u(i)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#u()}mutate(i,c){return this.#l=c,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(i)}#a(){const i=this.#n?.state??_y();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){wt.batch(()=>{if(this.#l&&this.hasListeners()){const c=this.#t.variables,s=this.#t.context;i?.type==="success"?(this.#l.onSuccess?.(i.data,c,s),this.#l.onSettled?.(i.data,null,c,s)):i?.type==="error"&&(this.#l.onError?.(i.error,c,s),this.#l.onSettled?.(void 0,i.error,c,s))}this.listeners.forEach(c=>{c(this.#t)})})}},Ty=G.createContext(void 0),Fa=a=>{const i=G.useContext(Ty);if(a)return a;if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},v0=({client:a,children:i})=>(G.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),V.jsx(Ty.Provider,{value:a,children:i})),Ay=G.createContext(!1),zy=()=>G.useContext(Ay);Ay.Provider;function m0(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var p0=G.createContext(m0()),My=()=>G.useContext(p0),jy=(a,i)=>{(a.suspense||a.throwOnError||a.experimental_prefetchInRender)&&(i.isReset()||(a.retryOnMount=!1))},Cy=a=>{G.useEffect(()=>{a.clearReset()},[a])},Dy=({result:a,errorResetBoundary:i,throwOnError:c,query:s,suspense:o})=>a.isError&&!i.isReset()&&!a.isFetching&&s&&(o&&a.data===void 0||my(c,[a.error,s])),Es=(a,i)=>i.state.data===void 0,Ry=a=>{if(a.suspense){const i=s=>s==="static"?s:Math.max(s??1e3,1e3),c=a.staleTime;a.staleTime=typeof c=="function"?(...s)=>i(c(...s)):i(c),typeof a.gcTime=="number"&&(a.gcTime=Math.max(a.gcTime,1e3))}},Uy=(a,i)=>a.isLoading&&a.isFetching&&!i,ms=(a,i)=>a?.suspense&&i.isPending,xi=(a,i,c)=>i.fetchOptimistic(a).catch(()=>{c.clearReset()});function qy({queries:a,...i},c){const s=Fa(c),o=zy(),d=My(),y=G.useMemo(()=>a.map(Q=>{const $=s.defaultQueryOptions(Q);return $._optimisticResults=o?"isRestoring":"optimistic",$}),[a,s,o]);y.forEach(Q=>{Ry(Q),jy(Q,d)}),Cy(d);const[v]=G.useState(()=>new h0(s,y,i)),[m,p,M]=v.getOptimisticResult(y,i.combine),_=!o&&i.subscribed!==!1;G.useSyncExternalStore(G.useCallback(Q=>_?v.subscribe(wt.batchCalls(Q)):ne,[v,_]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),G.useEffect(()=>{v.setQueries(y,i)},[y,i,v]);const B=m.some((Q,$)=>ms(y[$],Q))?m.flatMap((Q,$)=>{const at=y[$];if(at){const dt=new Ja(s,at);if(ms(at,Q))return xi(at,dt,d);Uy(Q,o)&&xi(at,dt,d)}return[]}):[];if(B.length>0)throw Promise.all(B);const J=m.find((Q,$)=>{const at=y[$];return at&&Dy({result:Q,errorResetBoundary:d,throwOnError:at.throwOnError,query:s.getQueryCache().get(at.queryHash),suspense:at.suspense})});if(J?.error)throw J.error;return p(M())}function zi(a,i,c){const s=zy(),o=My(),d=Fa(c),y=d.defaultQueryOptions(a);d.getDefaultOptions().queries?._experimental_beforeQuery?.(y),y._optimisticResults=s?"isRestoring":"optimistic",Ry(y),jy(y,o),Cy(o);const v=!d.getQueryCache().get(y.queryHash),[m]=G.useState(()=>new i(d,y)),p=m.getOptimisticResult(y),M=!s&&a.subscribed!==!1;if(G.useSyncExternalStore(G.useCallback(_=>{const q=M?m.subscribe(wt.batchCalls(_)):ne;return m.updateResult(),q},[m,M]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),G.useEffect(()=>{m.setOptions(y)},[y,m]),ms(y,p))throw xi(y,m,o);if(Dy({result:p,errorResetBoundary:o,throwOnError:y.throwOnError,query:d.getQueryCache().get(y.queryHash),suspense:y.suspense}))throw p.error;return d.getDefaultOptions().queries?._experimental_afterQuery?.(y,p),y.experimental_prefetchInRender&&!ul&&Uy(p,s)&&(v?xi(y,m,o):d.getQueryCache().get(y.queryHash)?.promise)?.catch(ne).finally(()=>{m.updateResult()}),y.notifyOnChangeProps?p:m.trackResult(p)}function g0(a,i){return zi(a,Ja,i)}function b0(a,i){return zi({...a,enabled:!0,suspense:!0,throwOnError:Es,placeholderData:void 0},Ja,i)}function S0(a,i){return zi({...a,enabled:!0,suspense:!0,throwOnError:Es},xy,i)}function O0(a,i){return qy({...a,queries:a.queries.map(c=>({...c,suspense:!0,throwOnError:Es,enabled:!0,placeholderData:void 0}))},i)}function _0(a,i){const c=Fa(i);c.getQueryState(a.queryKey)||c.prefetchQuery(a)}function E0(a,i){const c=Fa(i);c.getQueryState(a.queryKey)||c.prefetchInfiniteQuery(a)}function x0(a,i){const c=Fa(i),[s]=G.useState(()=>new y0(c,a));G.useEffect(()=>{s.setOptions(a)},[s,a]);const o=G.useSyncExternalStore(G.useCallback(y=>s.subscribe(wt.batchCalls(y)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),d=G.useCallback((y,v)=>{s.mutate(y,v).catch(ne)},[s]);if(o.error&&my(s.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:d,mutateAsync:o.mutate}}function T0(a,i){return zi(a,xy,i)}function A0(a,i){if(a instanceof RegExp)return{keys:!1,pattern:a};var c,s,o,d,y=[],v="",m=a.split("/");for(m[0]||m.shift();o=m.shift();)c=o[0],c==="*"?(y.push(c),v+=o[1]==="?"?"(?:/(.*))?":"/(.*)"):c===":"?(s=o.indexOf("?",1),d=o.indexOf(".",1),y.push(o.substring(1,~s?s:~d?d:o.length)),v+=~s&&!~d?"(?:/([^/]+?))?":"/([^/]+?)",~d&&(v+=(~s?"?":"")+"\\"+o.substring(d))):v+="/"+o;return{keys:y,pattern:new RegExp("^"+v+(i?"(?=$|/)":"/?$"),"i")}}var as={exports:{}},us={};/**
 * @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 $h;function z0(){if($h)return us;$h=1;var a=Ai();function i(_,q){return _===q&&(_!==0||1/_===1/q)||_!==_&&q!==q}var c=typeof Object.is=="function"?Object.is:i,s=a.useState,o=a.useEffect,d=a.useLayoutEffect,y=a.useDebugValue;function v(_,q){var B=q(),J=s({inst:{value:B,getSnapshot:q}}),Q=J[0].inst,$=J[1];return d(function(){Q.value=B,Q.getSnapshot=q,m(Q)&&$({inst:Q})},[_,B,q]),o(function(){return m(Q)&&$({inst:Q}),_(function(){m(Q)&&$({inst:Q})})},[_]),y(B),B}function m(_){var q=_.getSnapshot;_=_.value;try{var B=q();return!c(_,B)}catch{return!0}}function p(_,q){return q()}var M=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:v;return us.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:M,us}var Ph;function M0(){return Ph||(Ph=1,as.exports=z0()),as.exports}var j0=M0();const C0=hy.useInsertionEffect,D0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",R0=D0?G.useLayoutEffect:G.useEffect,U0=C0||R0,Qy=a=>{const i=G.useRef([a,(...c)=>i[0](...c)]).current;return U0(()=>{i[0]=a}),i[1]},q0="popstate",xs="pushState",Ts="replaceState",Q0="hashchange",Wh=[q0,xs,Ts,Q0],N0=a=>{for(const i of Wh)addEventListener(i,a);return()=>{for(const i of Wh)removeEventListener(i,a)}},Ny=(a,i)=>j0.useSyncExternalStore(N0,a,i),H0=()=>location.search,w0=({ssrSearch:a=""}={})=>Ny(H0,()=>a),Ih=()=>location.pathname,B0=({ssrPath:a}={})=>Ny(Ih,a?()=>a:Ih),Y0=(a,{replace:i=!1,state:c=null}={})=>history[i?Ts:xs](c,"",a),G0=(a={})=>[B0(a),Y0],ty=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[ty]>"u"){for(const a of[xs,Ts]){const i=history[a];history[a]=function(){const c=i.apply(this,arguments),s=new Event(a);return s.arguments=arguments,dispatchEvent(s),c}}Object.defineProperty(window,ty,{value:!0})}const L0=(a,i)=>i.toLowerCase().indexOf(a.toLowerCase())?"~"+i:i.slice(a.length)||"/",Hy=(a="")=>a==="/"?"":a,X0=(a,i)=>a[0]==="~"?a.slice(1):Hy(i)+a,K0=(a="",i)=>L0(ey(Hy(a)),ey(i)),ey=a=>{try{return decodeURI(a)}catch{return a}},wy={hook:G0,searchHook:w0,parser:A0,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:a=>a},By=G.createContext(wy),Mi=()=>G.useContext(By),Yy={},Gy=G.createContext(Yy),Z0=()=>G.useContext(Gy),As=a=>{const[i,c]=a.hook(a);return[K0(a.base,i),Qy((s,o)=>c(X0(s,a.base),o))]},Ly=(a,i,c,s)=>{const{pattern:o,keys:d}=i instanceof RegExp?{keys:!1,pattern:i}:a(i||"*",s),y=o.exec(c)||[],[v,...m]=y;return v!==void 0?[!0,(()=>{const p=d!==!1?Object.fromEntries(d.map((_,q)=>[_,m[q]])):y.groups;let M={...m};return p&&Object.assign(M,p),M})(),...s?[v]:[]]:[!1,null]},V0=({children:a,...i})=>{const c=Mi(),s=i.hook?wy:c;let o=s;const[d,y]=i.ssrPath?.split("?")??[];y&&(i.ssrSearch=y,i.ssrPath=d),i.hrefs=i.hrefs??i.hook?.hrefs;let v=G.useRef({}),m=v.current,p=m;for(let M in s){const _=M==="base"?s[M]+(i[M]||""):i[M]||s[M];m===p&&_!==p[M]&&(v.current=p={...p}),p[M]=_,_!==s[M]&&(o=p)}return G.createElement(By.Provider,{value:o,children:a})},ny=({children:a,component:i},c)=>i?G.createElement(i,{params:c}):typeof a=="function"?a(c):a,J0=a=>{let i=G.useRef(Yy),c=i.current;for(const s in a)a[s]!==c[s]&&(c=a);return Object.keys(a).length===0&&(c=a),i.current=c},ly=({path:a,nest:i,match:c,...s})=>{const o=Mi(),[d]=As(o),[y,v,m]=c??Ly(o.parser,a,d,i),p=J0({...Z0(),...v});if(!y)return null;const M=m?G.createElement(V0,{base:m},ny(s,p)):ny(s,p);return G.createElement(Gy.Provider,{value:p,children:M})};G.forwardRef((a,i)=>{const c=Mi(),[s,o]=As(c),{to:d="",href:y=d,onClick:v,asChild:m,children:p,className:M,replace:_,state:q,...B}=a,J=Qy($=>{$.ctrlKey||$.metaKey||$.altKey||$.shiftKey||$.button!==0||(v?.($),$.defaultPrevented||($.preventDefault(),o(y,a)))}),Q=c.hrefs(y[0]==="~"?y.slice(1):c.base+y,c);return m&&G.isValidElement(p)?G.cloneElement(p,{onClick:J,href:Q}):G.createElement("a",{...B,onClick:J,href:Q,className:M?.call?M(s===y):M,children:p,ref:i})});const Xy=a=>Array.isArray(a)?a.flatMap(i=>Xy(i&&i.type===G.Fragment?i.props.children:i)):[a],F0=({children:a,location:i})=>{const c=Mi(),[s]=As(c);for(const o of Xy(a)){let d=0;if(G.isValidElement(o)&&(d=Ly(c.parser,o.props.path,i||s,o.props.nest))[0])return G.cloneElement(o,{match:d})}return null};function il(a){return!!a&&!Array.isArray(a)&&typeof a=="object"}const k0=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Ky(a){return k0&&il(a)&&Symbol.asyncIterator in a}var $0=Object.create,Zy=Object.defineProperty,P0=Object.getOwnPropertyDescriptor,Vy=Object.getOwnPropertyNames,W0=Object.getPrototypeOf,I0=Object.prototype.hasOwnProperty,ka=(a,i)=>function(){return i||(0,a[Vy(a)[0]])((i={exports:{}}).exports,i),i.exports},tg=(a,i,c,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(var o=Vy(i),d=0,y=o.length,v;d<y;d++)v=o[d],!I0.call(a,v)&&v!==c&&Zy(a,v,{get:(m=>i[m]).bind(null,v),enumerable:!(s=P0(i,v))||s.enumerable});return a},ji=(a,i,c)=>(c=a!=null?$0(W0(a)):{},tg(Zy(c,"default",{value:a,enumerable:!0}),a));const Jy=()=>{},ay=a=>{Object.freeze&&Object.freeze(a)};function Fy(a,i,c){var s;const o=i.join(".");return(s=c[o])!==null&&s!==void 0||(c[o]=new Proxy(Jy,{get(d,y){if(!(typeof y!="string"||y==="then"))return Fy(a,[...i,y],c)},apply(d,y,v){const m=i[i.length-1];let p={args:v,path:i};return m==="call"?p={args:v.length>=2?[v[1]]:[],path:i.slice(0,-1)}:m==="apply"&&(p={args:v.length>=2?v[1]:[],path:i.slice(0,-1)}),ay(p.args),ay(p.path),a(p)}})),c[o]}const Ci=a=>Fy(a,[],Object.create(null)),zs=a=>new Proxy(Jy,{get(i,c){if(c!=="then")return a(c)}});var ky=ka({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,i){function c(s){"@babel/helpers - typeof";return i.exports=c=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,c(s)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),eg=ka({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var c=ky().default;function s(o,d){if(c(o)!="object"||!o)return o;var y=o[Symbol.toPrimitive];if(y!==void 0){var v=y.call(o,d||"default");if(c(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(o)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),ng=ka({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var c=ky().default,s=eg();function o(d){var y=s(d,"string");return c(y)=="symbol"?y:y+""}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),$y=ka({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var c=ng();function s(o,d,y){return(d=c(d))in o?Object.defineProperty(o,d,{value:y,enumerable:!0,configurable:!0,writable:!0}):o[d]=y,o}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Ms=ka({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,i){var c=$y();function s(d,y){var v=Object.keys(d);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(d);y&&(m=m.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),v.push.apply(v,m)}return v}function o(d){for(var y=1;y<arguments.length;y++){var v=arguments[y]!=null?arguments[y]:{};y%2?s(Object(v),!0).forEach(function(m){c(d,m,v[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(v)):s(Object(v)).forEach(function(m){Object.defineProperty(d,m,Object.getOwnPropertyDescriptor(v,m))})}return d}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}});ji(Ms());ji($y());var mi=ji(Ms());function lg(a,i){if("error"in a){const s=i.deserialize(a.error);return{ok:!1,error:(0,mi.default)((0,mi.default)({},a),{},{error:s})}}return{ok:!0,result:(0,mi.default)((0,mi.default)({},a.result),(!a.result.type||a.result.type==="data")&&{type:"data",data:i.deserialize(a.result.data)})}}var is=class extends Error{constructor(){super("Unable to transform response from server")}};function ag(a,i){let c;try{c=lg(a,i)}catch{throw new is}if(!c.ok&&(!il(c.error.error)||typeof c.error.error.code!="number"))throw new is;if(c.ok&&!il(c.result))throw new is;return c}ji(Ms());function Di(a){const i={subscribe(c){let s=null,o=!1,d=!1,y=!1;function v(){if(s===null){y=!0;return}d||(d=!0,typeof s=="function"?s():s&&s.unsubscribe())}return s=a({next(m){var p;o||(p=c.next)===null||p===void 0||p.call(c,m)},error(m){var p;o||(o=!0,(p=c.error)===null||p===void 0||p.call(c,m),v())},complete(){var m;o||(o=!0,(m=c.complete)===null||m===void 0||m.call(c),v())}}),y&&v(),{unsubscribe:v}},pipe(...c){return c.reduce(ug,i)}};return i}function ug(a,i){return i(a)}function ig(a){const i=new AbortController;return new Promise((s,o)=>{let d=!1;function y(){d||(d=!0,v.unsubscribe())}i.signal.addEventListener("abort",()=>{o(i.signal.reason)});const v=a.subscribe({next(m){d=!0,s(m),y()},error(m){o(m)},complete(){i.abort(),y()}})})}var rg=Object.create,Py=Object.defineProperty,cg=Object.getOwnPropertyDescriptor,Wy=Object.getOwnPropertyNames,sg=Object.getPrototypeOf,fg=Object.prototype.hasOwnProperty,wn=(a,i)=>function(){return i||(0,a[Wy(a)[0]])((i={exports:{}}).exports,i),i.exports},og=(a,i,c,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(var o=Wy(i),d=0,y=o.length,v;d<y;d++)v=o[d],!fg.call(a,v)&&v!==c&&Py(a,v,{get:(m=>i[m]).bind(null,v),enumerable:!(s=cg(i,v))||s.enumerable});return a},cl=(a,i,c)=>(c=a!=null?rg(sg(a)):{},og(i||!a||!a.__esModule?Py(c,"default",{value:a,enumerable:!0}):c,a)),dg=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(a,i){function c(s,o){if(s==null)return{};var d={};for(var y in s)if({}.hasOwnProperty.call(s,y)){if(o.includes(y))continue;d[y]=s[y]}return d}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),hg=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutProperties.js"(a,i){var c=dg();function s(o,d){if(o==null)return{};var y,v,m=c(o,d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(o);for(v=0;v<p.length;v++)y=p[v],d.includes(y)||{}.propertyIsEnumerable.call(o,y)&&(m[y]=o[y])}return m}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Iy=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,i){function c(s){"@babel/helpers - typeof";return i.exports=c=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,c(s)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),yg=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var c=Iy().default;function s(o,d){if(c(o)!="object"||!o)return o;var y=o[Symbol.toPrimitive];if(y!==void 0){var v=y.call(o,d||"default");if(c(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(o)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),vg=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var c=Iy().default,s=yg();function o(d){var y=s(d,"string");return c(y)=="symbol"?y:y+""}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),mg=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var c=vg();function s(o,d,y){return(d=c(d))in o?Object.defineProperty(o,d,{value:y,enumerable:!0,configurable:!0,writable:!0}):o[d]=y,o}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),$a=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,i){var c=mg();function s(d,y){var v=Object.keys(d);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(d);y&&(m=m.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),v.push.apply(v,m)}return v}function o(d){for(var y=1;y<arguments.length;y++){var v=arguments[y]!=null?arguments[y]:{};y%2?s(Object(v),!0).forEach(function(m){c(d,m,v[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(v)):s(Object(v)).forEach(function(m){Object.defineProperty(d,m,Object.getOwnPropertyDescriptor(v,m))})}return d}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),pg=cl(hg(),1),uy=cl($a(),1);const gg=["cursor","direction"];function Ke(a,i,c){const s=a.flatMap(o=>o.split("."));if(!i&&(!c||c==="any"))return s.length?[s]:[];if(c==="infinite"&&il(i)&&("direction"in i||"cursor"in i)){const{cursor:o,direction:d}=i,y=(0,pg.default)(i,gg);return[s,{input:y,type:"infinite"}]}return[s,(0,uy.default)((0,uy.default)({},typeof i<"u"&&i!==Ee&&{input:i}),c&&c!=="any"&&{type:c})]}function bi(a){return Ke(a,void 0,"any")}var bg=Object.create,tv=Object.defineProperty,Sg=Object.getOwnPropertyDescriptor,ev=Object.getOwnPropertyNames,Og=Object.getPrototypeOf,_g=Object.prototype.hasOwnProperty,Ze=(a,i)=>function(){return i||(0,a[ev(a)[0]])((i={exports:{}}).exports,i),i.exports},Eg=(a,i,c,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(var o=ev(i),d=0,y=o.length,v;d<y;d++)v=o[d],!_g.call(a,v)&&v!==c&&tv(a,v,{get:(m=>i[m]).bind(null,v),enumerable:!(s=Sg(i,v))||s.enumerable});return a},Lt=(a,i,c)=>(c=a!=null?bg(Og(a)):{},Eg(i||!a||!a.__esModule?tv(c,"default",{value:a,enumerable:!0}):c,a)),nv=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/typeof.js"(a,i){function c(s){"@babel/helpers - typeof";return i.exports=c=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,c(s)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),xg=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var c=nv().default;function s(o,d){if(c(o)!="object"||!o)return o;var y=o[Symbol.toPrimitive];if(y!==void 0){var v=y.call(o,d||"default");if(c(v)!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(o)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Tg=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var c=nv().default,s=xg();function o(d){var y=s(d,"string");return c(y)=="symbol"?y:y+""}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}}),sl=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var c=Tg();function s(o,d,y){return(d=c(d))in o?Object.defineProperty(o,d,{value:y,enumerable:!0,configurable:!0,writable:!0}):o[d]=y,o}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),Be=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectSpread2.js"(a,i){var c=sl();function s(d,y){var v=Object.keys(d);if(Object.getOwnPropertySymbols){var m=Object.getOwnPropertySymbols(d);y&&(m=m.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),v.push.apply(v,m)}return v}function o(d){for(var y=1;y<arguments.length;y++){var v=arguments[y]!=null?arguments[y]:{};y%2?s(Object(v),!0).forEach(function(m){c(d,m,v[m])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(v)):s(Object(v)).forEach(function(m){Object.defineProperty(d,m,Object.getOwnPropertyDescriptor(v,m))})}return d}i.exports=o,i.exports.__esModule=!0,i.exports.default=i.exports}});function Ag(a){return i=>{let c=0,s=null;const o=[];function d(){s||(s=i.subscribe({next(v){for(const p of o){var m;(m=p.next)===null||m===void 0||m.call(p,v)}},error(v){for(const p of o){var m;(m=p.error)===null||m===void 0||m.call(p,v)}},complete(){for(const m of o){var v;(v=m.complete)===null||v===void 0||v.call(m)}}}))}function y(){if(c===0&&s){const v=s;s=null,v.unsubscribe()}}return Di(v=>(c++,o.push(v),d(),{unsubscribe(){c--,y();const m=o.findIndex(p=>p===v);m>-1&&o.splice(m,1)}}))}}function zg(a){let i=a;const c=[],s=y=>{i!==void 0&&y.next(i),c.push(y)},o=y=>{c.splice(c.indexOf(y),1)},d=Di(y=>(s(y),()=>{o(y)}));return d.next=y=>{if(i!==y){i=y;for(const v of c)v.next(y)}},d.get=()=>i,d}function Mg(a){return Di(i=>{function c(o=0,d=a.op){const y=a.links[o];if(!y)throw new Error("No more links to execute - did you forget to add an ending link?");return y({op:d,next(m){return c(o+1,m)}})}return c().subscribe(i)})}var pi=Lt(sl(),1),Fl=Lt(Be(),1);function jg(a){return a instanceof Ti}function Cg(a){return il(a)&&il(a.error)&&typeof a.error.code=="number"&&typeof a.error.message=="string"}function Dg(a,i){return typeof a=="string"?a:il(a)&&typeof a.message=="string"?a.message:i}var Ti=class Si extends Error{constructor(i,c){var s,o;const d=c?.cause;super(i,{cause:d}),(0,pi.default)(this,"cause",void 0),(0,pi.default)(this,"shape",void 0),(0,pi.default)(this,"data",void 0),(0,pi.default)(this,"meta",void 0),this.meta=c?.meta,this.cause=d,this.shape=c==null||(s=c.result)===null||s===void 0?void 0:s.error,this.data=c==null||(o=c.result)===null||o===void 0?void 0:o.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Si.prototype)}static from(i,c={}){const s=i;return jg(s)?(c.meta&&(s.meta=(0,Fl.default)((0,Fl.default)({},s.meta),c.meta)),s):Cg(s)?new Si(s.error.message,(0,Fl.default)((0,Fl.default)({},c),{},{result:s})):new Si(Dg(s,"Unknown error"),(0,Fl.default)((0,Fl.default)({},c),{},{cause:s}))}};function Rg(a){const i=a;return i?"input"in i?i:{input:i,output:i}:{input:{serialize:c=>c,deserialize:c=>c},output:{serialize:c=>c,deserialize:c=>c}}}const iy=a=>typeof a=="function";function Ug(a){if(a)return a;if(typeof window<"u"&&iy(window.fetch))return window.fetch;if(typeof globalThis<"u"&&iy(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Za=Lt(Be());function qg(a){return{url:a.url.toString(),fetch:a.fetch,transformer:Rg(a.transformer),methodOverride:a.methodOverride}}function Qg(a){const i={};for(let c=0;c<a.length;c++){const s=a[c];i[c]=s}return i}const Ng={query:"GET",mutation:"POST",subscription:"PATCH"};function lv(a){return"input"in a?a.transformer.input.serialize(a.input):Qg(a.inputs.map(i=>a.transformer.input.serialize(i)))}const av=a=>{const i=a.url.split("?");let s=i[0].replace(/\/$/,"")+"/"+a.path;const o=[];if(i[1]&&o.push(i[1]),"inputs"in a&&o.push("batch=1"),a.type==="query"||a.type==="subscription"){const d=lv(a);d!==void 0&&a.methodOverride!=="POST"&&o.push(`input=${encodeURIComponent(JSON.stringify(d))}`)}return o.length&&(s+="?"+o.join("&")),s},Hg=a=>{if(a.type==="query"&&a.methodOverride!=="POST")return;const i=lv(a);return i!==void 0?JSON.stringify(i):void 0},wg=a=>Lg((0,Za.default)((0,Za.default)({},a),{},{contentTypeHeader:"application/json",getUrl:av,getBody:Hg}));var Bg=class extends Error{constructor(){const a="AbortError";super(a),this.name=a,this.message=a}};const Yg=a=>{var i;if(a?.aborted)throw(i=a.throwIfAborted)===null||i===void 0||i.call(a),typeof DOMException<"u"?new DOMException("AbortError","AbortError"):new Bg};async function Gg(a){var i;Yg(a.signal);const c=a.getUrl(a),s=a.getBody(a),o=(i=a.methodOverride)!==null&&i!==void 0?i:Ng[a.type],d=await(async()=>{const v=await a.headers();return Symbol.iterator in v?Object.fromEntries(v):v})(),y=(0,Za.default)((0,Za.default)((0,Za.default)({},a.contentTypeHeader&&o!=="GET"?{"content-type":a.contentTypeHeader}:{}),a.trpcAcceptHeader?{"trpc-accept":a.trpcAcceptHeader}:void 0),d);return Ug(a.fetch)(c,{method:o,signal:a.signal,body:s,headers:y})}async function Lg(a){const i={},c=await Gg(a);i.response=c;const s=await c.json();return i.responseJSON=s,{json:s,meta:i}}Lt(Be(),1);const ry=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function cy(a){let i=null,c=null;const s=()=>{clearTimeout(c),c=null,i=null};function o(v){const m=[[]];let p=0;for(;;){const q=v[p];if(!q)break;const B=m[m.length-1];if(q.aborted){var M;(M=q.reject)===null||M===void 0||M.call(q,new Error("Aborted")),p++;continue}if(a.validate(B.concat(q).map(Q=>Q.key))){B.push(q),p++;continue}if(B.length===0){var _;(_=q.reject)===null||_===void 0||_.call(q,new Error("Input is too big for a single dispatch")),p++;continue}m.push([])}return m}function d(){const v=o(i);s();for(const m of v){if(!m.length)continue;const p={items:m};for(const _ of m)_.batch=p;a.fetch(p.items.map(_=>_.key)).then(async _=>{await Promise.all(_.map(async(B,J)=>{const Q=p.items[J];try{var $;const dt=await Promise.resolve(B);($=Q.resolve)===null||$===void 0||$.call(Q,dt)}catch(dt){var at;(at=Q.reject)===null||at===void 0||at.call(Q,dt)}Q.batch=null,Q.reject=null,Q.resolve=null}));for(const B of p.items){var q;(q=B.reject)===null||q===void 0||q.call(B,new Error("Missing result")),B.batch=null}}).catch(_=>{for(const B of p.items){var q;(q=B.reject)===null||q===void 0||q.call(B,_),B.batch=null}})}}function y(v){var m;const p={aborted:!1,key:v,batch:null,resolve:ry,reject:ry},M=new Promise((_,q)=>{var B;p.reject=q,p.resolve=_,(B=i)!==null&&B!==void 0||(i=[]),i.push(p)});return(m=c)!==null&&m!==void 0||(c=setTimeout(d)),M}return{load:y}}function Xg(...a){const i=new AbortController,c=a.length;let s=0;const o=()=>{++s===c&&i.abort()};for(const d of a)d?.aborted?o():d?.addEventListener("abort",o,{once:!0});return i.signal}var gi=Lt(Be(),1);function Kg(a){var i,c;const s=qg(a),o=(i=a.maxURLLength)!==null&&i!==void 0?i:1/0,d=(c=a.maxItems)!==null&&c!==void 0?c:1/0;return()=>{const y=M=>({validate(_){if(o===1/0&&d===1/0)return!0;if(_.length>d)return!1;const q=_.map(Q=>Q.path).join(","),B=_.map(Q=>Q.input);return av((0,gi.default)((0,gi.default)({},s),{},{type:M,path:q,inputs:B,signal:null})).length<=o},async fetch(_){const q=_.map(dt=>dt.path).join(","),B=_.map(dt=>dt.input),J=Xg(..._.map(dt=>dt.signal)),Q=await wg((0,gi.default)((0,gi.default)({},s),{},{path:q,inputs:B,type:M,headers(){return a.headers?typeof a.headers=="function"?a.headers({opList:_}):a.headers:{}},signal:J}));return(Array.isArray(Q.json)?Q.json:_.map(()=>Q.json)).map(dt=>({meta:Q.meta,json:dt}))}}),v=cy(y("query")),m=cy(y("mutation")),p={query:v,mutation:m};return({op:M})=>Di(_=>{/* istanbul ignore if -- @preserve */if(M.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const B=p[M.type].load(M);let J;return B.then(Q=>{J=Q;const $=ag(Q.json,s.transformer.output);if(!$.ok){_.error(Ti.from($.error,{meta:Q.meta}));return}_.next({context:Q.meta,result:$.result}),_.complete()}).catch(Q=>{_.error(Ti.from(Q,{meta:J?.meta}))}),()=>{}})}}Lt(Be(),1);const uv=(a,...i)=>typeof a=="function"?a(...i):a;Lt(sl(),1);function Zg(){let a,i;return{promise:new Promise((s,o)=>{a=s,i=o}),resolve:a,reject:i}}async function Vg(a){const i=await uv(a.url);if(!a.connectionParams)return i;const s=`${i.includes("?")?"&":"?"}connectionParams=1`;return i+s}async function Jg(a){const i={method:"connectionParams",data:await uv(a)};return JSON.stringify(i)}Lt(sl(),1);var al=Lt(sl(),1);function Fg(a){const{promise:i,resolve:c,reject:s}=Zg();return a.addEventListener("open",()=>{a.removeEventListener("error",s),c()}),a.addEventListener("error",s),i}function kg(a,{intervalMs:i,pongTimeoutMs:c}){let s,o;function d(){s=setTimeout(()=>{a.send("PING"),o=setTimeout(()=>{a.close()},c)},i)}function y(){clearTimeout(s),d()}function v(){clearTimeout(o),y()}a.addEventListener("open",d),a.addEventListener("message",({data:m})=>{clearTimeout(s),d(),m==="PONG"&&v()}),a.addEventListener("close",()=>{clearTimeout(s),clearTimeout(o)})}var $g=class ps{constructor(i){var c;if((0,al.default)(this,"id",++ps.connectCount),(0,al.default)(this,"WebSocketPonyfill",void 0),(0,al.default)(this,"urlOptions",void 0),(0,al.default)(this,"keepAliveOpts",void 0),(0,al.default)(this,"wsObservable",zg(null)),(0,al.default)(this,"openPromise",null),this.WebSocketPonyfill=(c=i.WebSocketPonyfill)!==null&&c!==void 0?c: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=++ps.connectCount;const c=Vg(i.urlOptions).then(s=>new i.WebSocketPonyfill(s));i.openPromise=c.then(async s=>{i.ws=s,s.addEventListener("message",function({data:o}){o==="PING"&&this.send("PONG")}),i.keepAliveOpts.enabled&&kg(s,i.keepAliveOpts),s.addEventListener("close",()=>{i.ws===s&&(i.ws=null)}),await Fg(s),i.urlOptions.connectionParams&&s.send(await Jg(i.urlOptions.connectionParams))});try{await i.openPromise}finally{i.openPromise=null}}async close(){var i=this;try{await i.openPromise}finally{var c;(c=i.ws)===null||c===void 0||c.close()}}};(0,al.default)($g,"connectCount",0);Lt(sl(),1);Lt(Be(),1);var rs=Lt(sl(),1),sy=Lt(Be(),1),Ri=class{constructor(a){(0,rs.default)(this,"links",void 0),(0,rs.default)(this,"runtime",void 0),(0,rs.default)(this,"requestId",void 0),this.requestId=0,this.runtime={},this.links=a.links.map(i=>i(this.runtime))}$request(a){var i;return Mg({links:this.links,op:(0,sy.default)((0,sy.default)({},a),{},{context:(i=a.context)!==null&&i!==void 0?i:{},id:++this.requestId})}).pipe(Ag())}async requestAsPromise(a){var i=this;try{const c=i.$request(a);return(await ig(c)).result.data}catch(c){throw Ti.from(c)}}query(a,i,c){return this.requestAsPromise({type:"query",path:a,input:i,context:c?.context,signal:c?.signal})}mutation(a,i,c){return this.requestAsPromise({type:"mutation",path:a,input:i,context:c?.context,signal:c?.signal})}subscription(a,i,c){return this.$request({type:"subscription",path:a,input:i,context:c.context,signal:c.signal}).subscribe({next(o){switch(o.result.type){case"state":{var d;(d=c.onConnectionStateChange)===null||d===void 0||d.call(c,o.result);break}case"started":{var y;(y=c.onStarted)===null||y===void 0||y.call(c,{context:o.context});break}case"stopped":{var v;(v=c.onStopped)===null||v===void 0||v.call(c);break}case"data":case void 0:{var m;(m=c.onData)===null||m===void 0||m.call(c,o.result.data);break}}},error(o){var d;(d=c.onError)===null||d===void 0||d.call(c,o)},complete(){var o;(o=c.onComplete)===null||o===void 0||o.call(c)}})}};const iv=Symbol.for("trpc_untypedClient"),Pg={query:"query",mutate:"mutation",subscribe:"subscription"},Wg=a=>Pg[a];function rv(a){const i=Ci(({path:c,args:s})=>{const o=[...c],d=Wg(o.pop()),y=o.join(".");return a[d](y,...s)});return zs(c=>c===iv?a:i[c])}function Ig(a){const i=new Ri(a);return rv(i)}function js(a){return a[iv]}Lt(Be(),1);Lt(Be(),1);var tb=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(a,i){function c(o){var d,y,v,m=2;for(typeof Symbol<"u"&&(y=Symbol.asyncIterator,v=Symbol.iterator);m--;){if(y&&(d=o[y])!=null)return d.call(o);if(v&&(d=o[v])!=null)return new s(d.call(o));y="@@asyncIterator",v="@@iterator"}throw new TypeError("Object is not async iterable")}function s(o){function d(y){if(Object(y)!==y)return Promise.reject(new TypeError(y+" is not an object."));var v=y.done;return Promise.resolve(y.value).then(function(m){return{value:m,done:v}})}return s=function(v){this.s=v,this.n=v.next},s.prototype={s:null,n:null,next:function(){return d(this.n.apply(this.s,arguments))},return:function(v){var m=this.s.return;return m===void 0?Promise.resolve({value:v,done:!0}):d(m.apply(this.s,arguments))},throw:function(v){var m=this.s.return;return m===void 0?Promise.reject(v):d(m.apply(this.s,arguments))}},new s(o)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}});Lt(tb(),1);Lt(Be(),1);var eb=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/usingCtx.js"(a,i){function c(){var s=typeof SuppressedError=="function"?SuppressedError:function(v,m){var p=Error();return p.name="SuppressedError",p.error=v,p.suppressed=m,p},o={},d=[];function y(v,m){if(m!=null){if(Object(m)!==m)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(v)var p=m[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(p===void 0&&(p=m[Symbol.dispose||Symbol.for("Symbol.dispose")],v))var M=p;if(typeof p!="function")throw new TypeError("Object is not disposable.");M&&(p=function(){try{M.call(m)}catch(q){return Promise.reject(q)}}),d.push({v:m,d:p,a:v})}else v&&d.push({d:m,a:v});return m}return{e:o,u:y.bind(null,!1),a:y.bind(null,!0),d:function(){var m,p=this.e,M=0;function _(){for(;m=d.pop();)try{if(!m.a&&M===1)return M=0,d.push(m),Promise.resolve().then(_);if(m.d){var B=m.d.call(m.v);if(m.a)return M|=2,Promise.resolve(B).then(_,q)}else M|=1}catch(J){return q(J)}if(M===1)return p!==o?Promise.reject(p):Promise.resolve();if(p!==o)throw p}function q(B){return p=p!==o?new s(B,p):B,_()}return _()}}}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),cv=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(a,i){function c(s,o){this.v=s,this.k=o}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),nb=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(a,i){var c=cv();function s(o){return new c(o,0)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),lb=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(a,i){var c=cv();function s(d){return function(){return new o(d.apply(this,arguments))}}function o(d){var y,v;function m(M,_){try{var q=d[M](_),B=q.value,J=B instanceof c;Promise.resolve(J?B.v:B).then(function(Q){if(J){var $=M==="return"?"return":"next";if(!B.k||Q.done)return m($,Q);Q=d[$](Q).value}p(q.done?"return":"normal",Q)},function(Q){m("throw",Q)})}catch(Q){p("throw",Q)}}function p(M,_){switch(M){case"return":y.resolve({value:_,done:!0});break;case"throw":y.reject(_);break;default:y.resolve({value:_,done:!1})}(y=y.next)?m(y.key,y.arg):v=null}this._invoke=function(M,_){return new Promise(function(q,B){var J={key:M,arg:_,resolve:q,reject:B,next:null};v?v=v.next=J:(y=v=J,m(M,_))})},typeof d.return!="function"&&(this.return=void 0)}o.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},o.prototype.next=function(d){return this._invoke("next",d)},o.prototype.throw=function(d){return this._invoke("throw",d)},o.prototype.return=function(d){return this._invoke("return",d)},i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}});Lt(eb(),1);Lt(nb(),1);Lt(lb(),1);Lt(Be(),1);function ab(a){return Ci(({path:i,args:c})=>{var s;const o=[...i],d=o.pop();if(d==="useMutation")return a[d](o,...c);if(d==="_def")return{path:o};const[y,...v]=c,m=(s=v[0])!==null&&s!==void 0?s:{};return a[d](o,y,m)})}var cs;const ub=["client","ssrContext","ssrState","abortOnUnmount"],ib=(cs=G.createContext)===null||cs===void 0?void 0:cs.call(hy,null),rb=a=>{switch(a){case"queryOptions":case"fetch":case"ensureData":case"prefetch":case"getData":case"setData":case"setQueriesData":return"query";case"infiniteQueryOptions":case"fetchInfinite":case"prefetchInfinite":case"getInfiniteData":case"setInfiniteData":return"infinite";case"setMutationDefaults":case"getMutationDefaults":case"isMutating":case"cancel":case"invalidate":case"refetch":case"reset":return"any"}};function cb(a){return Ci(i=>{const c=[...i.path],s=c.pop(),o=[...i.args],d=o.shift(),y=rb(s),v=Ke(c,d,y);return{infiniteQueryOptions:()=>a.infiniteQueryOptions(c,v,o[0]),queryOptions:()=>a.queryOptions(c,v,...o),fetch:()=>a.fetchQuery(v,...o),fetchInfinite:()=>a.fetchInfiniteQuery(v,o[0]),prefetch:()=>a.prefetchQuery(v,...o),prefetchInfinite:()=>a.prefetchInfiniteQuery(v,o[0]),ensureData:()=>a.ensureQueryData(v,...o),invalidate:()=>a.invalidateQueries(v,...o),reset:()=>a.resetQueries(v,...o),refetch:()=>a.refetchQueries(v,...o),cancel:()=>a.cancelQuery(v,...o),setData:()=>{a.setQueryData(v,o[0],o[1])},setQueriesData:()=>a.setQueriesData(v,o[0],o[1],o[2]),setInfiniteData:()=>{a.setInfiniteQueryData(v,o[0],o[1])},getData:()=>a.getQueryData(v),getInfiniteData:()=>a.getInfiniteQueryData(v),setMutationDefaults:()=>a.setMutationDefaults(bi(c),d),getMutationDefaults:()=>a.getMutationDefaults(bi(c)),isMutating:()=>a.isMutating({mutationKey:bi(c)})}[s]()})}function sb(a){const i=rv(a.client),c=cb(a);return zs(s=>{const o=s;return o==="client"?i:ub.includes(o)?a[o]:c[s]})}var fb=cl($a(),1);function fy(a){const i=a instanceof Ri?a:js(a);return Ci(c=>{const s=c.path,o=s.join("."),[d,y]=c.args;return(0,fb.default)({queryKey:Ke(s,d,"query"),queryFn:()=>i.query(o,d,y?.trpc)},y)})}var ss=cl($a(),1);function ue(a,i,c){var s;const o=a[0];let d=(s=a[1])===null||s===void 0?void 0:s.input;if(c){var y;d=(0,ss.default)((0,ss.default)((0,ss.default)({},(y=d)!==null&&y!==void 0?y:{}),c.pageParam?{cursor:c.pageParam}:{}),{},{direction:c.direction})}return[o.join("."),d,i?.trpc]}var ob=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(a,i){function c(o){var d,y,v,m=2;for(typeof Symbol<"u"&&(y=Symbol.asyncIterator,v=Symbol.iterator);m--;){if(y&&(d=o[y])!=null)return d.call(o);if(v&&(d=o[v])!=null)return new s(d.call(o));y="@@asyncIterator",v="@@iterator"}throw new TypeError("Object is not async iterable")}function s(o){function d(y){if(Object(y)!==y)return Promise.reject(new TypeError(y+" is not an object."));var v=y.done;return Promise.resolve(y.value).then(function(m){return{value:m,done:v}})}return s=function(v){this.s=v,this.n=v.next},s.prototype={s:null,n:null,next:function(){return d(this.n.apply(this.s,arguments))},return:function(v){var m=this.s.return;return m===void 0?Promise.resolve({value:v,done:!0}):d(m.apply(this.s,arguments))},throw:function(v){var m=this.s.return;return m===void 0?Promise.reject(v):d(m.apply(this.s,arguments))}},new s(o)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),db=cl(ob(),1);function gs(a){return{path:a.path.join(".")}}function Ka(a){const i=gs(a);return G.useMemo(()=>i,[i])}async function sv(a,i,c){const o=i.getQueryCache().build(i,{queryKey:c});o.setState({data:[],status:"success"});const d=[];var y=!1,v=!1,m;try{for(var p=(0,db.default)(a),M;y=!(M=await p.next()).done;y=!1){const _=M.value;d.push(_),o.setState({data:[...d]})}}catch(_){v=!0,m=_}finally{try{y&&p.return!=null&&await p.return()}finally{if(v)throw m}}return d}var Et=cl($a(),1);function hb(a){const{client:i,queryClient:c}=a,s=i instanceof Ri?i:js(i);return{infiniteQueryOptions:(o,d,y)=>{var v,m;const p=((v=d[1])===null||v===void 0?void 0:v.input)===Ee,M=async _=>{var q;const B=(0,Et.default)((0,Et.default)({},y),{},{trpc:(0,Et.default)((0,Et.default)({},y?.trpc),!(y==null||(q=y.trpc)===null||q===void 0)&&q.abortOnUnmount?{signal:_.signal}:{signal:null})});return await s.query(...ue(d,B,{direction:_.direction,pageParam:_.pageParam}))};return Object.assign((0,Et.default)((0,Et.default)({},y),{},{initialData:y?.initialData,queryKey:d,queryFn:p?Ee:M,initialPageParam:(m=y?.initialCursor)!==null&&m!==void 0?m:null}),{trpc:gs({path:o})})},queryOptions:(o,d,y)=>{var v;const m=((v=d[1])===null||v===void 0?void 0:v.input)===Ee,p=async M=>{var _;const q=(0,Et.default)((0,Et.default)({},y),{},{trpc:(0,Et.default)((0,Et.default)({},y?.trpc),!(y==null||(_=y.trpc)===null||_===void 0)&&_.abortOnUnmount?{signal:M.signal}:{signal:null})}),B=await s.query(...ue(d,q));return Ky(B)?sv(B,c,d):B};return Object.assign((0,Et.default)((0,Et.default)({},y),{},{initialData:y?.initialData,queryKey:d,queryFn:m?Ee:p}),{trpc:gs({path:o})})},fetchQuery:(o,d)=>c.fetchQuery((0,Et.default)((0,Et.default)({},d),{},{queryKey:o,queryFn:()=>s.query(...ue(o,d))})),fetchInfiniteQuery:(o,d)=>{var y;return c.fetchInfiniteQuery((0,Et.default)((0,Et.default)({},d),{},{queryKey:o,queryFn:({pageParam:v,direction:m})=>s.query(...ue(o,d,{pageParam:v,direction:m})),initialPageParam:(y=d?.initialCursor)!==null&&y!==void 0?y:null}))},prefetchQuery:(o,d)=>c.prefetchQuery((0,Et.default)((0,Et.default)({},d),{},{queryKey:o,queryFn:()=>s.query(...ue(o,d))})),prefetchInfiniteQuery:(o,d)=>{var y;return c.prefetchInfiniteQuery((0,Et.default)((0,Et.default)({},d),{},{queryKey:o,queryFn:({pageParam:v,direction:m})=>s.query(...ue(o,d,{pageParam:v,direction:m})),initialPageParam:(y=d?.initialCursor)!==null&&y!==void 0?y:null}))},ensureQueryData:(o,d)=>c.ensureQueryData((0,Et.default)((0,Et.default)({},d),{},{queryKey:o,queryFn:()=>s.query(...ue(o,d))})),invalidateQueries:(o,d,y)=>c.invalidateQueries((0,Et.default)((0,Et.default)({},d),{},{queryKey:o}),y),resetQueries:(o,d,y)=>c.resetQueries((0,Et.default)((0,Et.default)({},d),{},{queryKey:o}),y),refetchQueries:(o,d,y)=>c.refetchQueries((0,Et.default)((0,Et.default)({},d),{},{queryKey:o}),y),cancelQuery:(o,d)=>c.cancelQueries({queryKey:o},d),setQueryData:(o,d,y)=>c.setQueryData(o,d,y),setQueriesData:(o,d,y,v)=>c.setQueriesData((0,Et.default)((0,Et.default)({},d),{},{queryKey:o}),y,v),getQueryData:o=>c.getQueryData(o),setInfiniteQueryData:(o,d,y)=>c.setQueryData(o,d,y),getInfiniteQueryData:o=>c.getQueryData(o),setMutationDefaults:(o,d)=>{const y=o[0],v=m=>s.mutation(...ue([y,{input:m}],a));return c.setMutationDefaults(o,typeof d=="function"?d({canonicalMutationFn:v}):d)},getMutationDefaults:o=>c.getMutationDefaults(o),isMutating:o=>c.isMutating((0,Et.default)((0,Et.default)({},o),{},{exact:!0}))}}var Z=cl($a());const oy=(a,i)=>new Proxy(a,{get(s,o){return i(o),s[o]}});function yb(a){var i,c;const s=(i=void 0)!==null&&i!==void 0?i:k=>k.originalFn(),o=(c=void 0)!==null&&c!==void 0?c:ib,d=Ig,y=k=>{var L;const{abortOnUnmount:j=!1,queryClient:X,ssrContext:Y}=k,[et,I]=G.useState((L=k.ssrState)!==null&&L!==void 0?L:!1),tt=k.client instanceof Ri?k.client:js(k.client),ht=G.useMemo(()=>hb({client:tt,queryClient:X}),[tt,X]),it=G.useMemo(()=>(0,Z.default)({abortOnUnmount:j,queryClient:X,client:tt,ssrContext:Y??null,ssrState:et},ht),[j,tt,ht,X,Y,et]);return G.useEffect(()=>{I(st=>st?"mounted":!1)},[]),V.jsx(o.Provider,{value:it,children:k.children})};function v(){const k=G.useContext(o);if(!k)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return k}function m(k,L){var j;const{queryClient:X,ssrState:Y}=v();return Y&&Y!=="mounted"&&((j=X.getQueryCache().find({queryKey:k}))===null||j===void 0?void 0:j.state.status)==="error"?(0,Z.default)({retryOnMount:!1},L):L}function p(k,L,j){var X,Y,et,I,tt;const ht=v(),{abortOnUnmount:it,client:st,ssrState:T,queryClient:N,prefetchQuery:K}=ht,ut=Ke(k,L,"query"),yt=N.getQueryDefaults(ut),b=L===Ee;typeof window>"u"&&T==="prepass"&&(j==null||(X=j.trpc)===null||X===void 0?void 0:X.ssr)!==!1&&((Y=j?.enabled)!==null&&Y!==void 0?Y:yt?.enabled)!==!1&&!b&&!N.getQueryCache().find({queryKey:ut})&&K(ut,j);const D=m(ut,(0,Z.default)((0,Z.default)({},yt),j)),H=(et=(I=j==null||(tt=j.trpc)===null||tt===void 0?void 0:tt.abortOnUnmount)!==null&&I!==void 0?I:void 0)!==null&&et!==void 0?et:it,w=g0((0,Z.default)((0,Z.default)({},D),{},{queryKey:ut,queryFn:b?L:async P=>{const rt=(0,Z.default)((0,Z.default)({},D),{},{trpc:(0,Z.default)((0,Z.default)({},D?.trpc),H?{signal:P.signal}:{signal:null})}),St=await st.query(...ue(ut,rt));return Ky(St)?sv(St,N,ut):St}}),N);return w.trpc=Ka({path:k}),w}function M(k,L,j){var X,Y,et;const I=v(),tt=Ke(k,L,"query"),ht=L===Ee,it=(X=(Y=j==null||(et=j.trpc)===null||et===void 0?void 0:et.abortOnUnmount)!==null&&Y!==void 0?Y:void 0)!==null&&X!==void 0?X:I.abortOnUnmount;_0((0,Z.default)((0,Z.default)({},j),{},{queryKey:tt,queryFn:ht?L:st=>{const T={trpc:(0,Z.default)((0,Z.default)({},j?.trpc),it?{signal:st.signal}:{})};return I.client.query(...ue(tt,T))}}))}function _(k,L,j){var X,Y,et;const I=v(),tt=Ke(k,L,"query"),ht=(X=(Y=j==null||(et=j.trpc)===null||et===void 0?void 0:et.abortOnUnmount)!==null&&Y!==void 0?Y:void 0)!==null&&X!==void 0?X:I.abortOnUnmount,it=b0((0,Z.default)((0,Z.default)({},j),{},{queryKey:tt,queryFn:st=>{const T=(0,Z.default)((0,Z.default)({},j),{},{trpc:(0,Z.default)((0,Z.default)({},j?.trpc),ht?{signal:st.signal}:{signal:null})});return I.client.query(...ue(tt,T))}}),I.queryClient);return it.trpc=Ka({path:k}),[it.data,it]}function q(k,L){const{client:j,queryClient:X}=v(),Y=bi(k),et=X.defaultMutationOptions(X.getMutationDefaults(Y)),I=x0((0,Z.default)((0,Z.default)({},L),{},{mutationKey:Y,mutationFn:tt=>j.mutation(...ue([k,{input:tt}],L)),onSuccess(...tt){var ht,it;return s({originalFn:()=>{var T,N,K;return(T=L==null||(N=L.onSuccess)===null||N===void 0?void 0:N.call(L,...tt))!==null&&T!==void 0?T:et==null||(K=et.onSuccess)===null||K===void 0?void 0:K.call(et,...tt)},queryClient:X,meta:(ht=(it=L?.meta)!==null&&it!==void 0?it:et?.meta)!==null&&ht!==void 0?ht:{}})}}),X);return I.trpc=Ka({path:k}),I}const B={data:void 0,error:null,status:"idle"},J={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function Q(k,L,j){var X;const Y=(X=j?.enabled)!==null&&X!==void 0?X:L!==Ee,et=Hn(Ke(k,L,"any")),{client:I}=v(),tt=G.useRef(j);G.useEffect(()=>{tt.current=j});const[ht]=G.useState(new Set([])),it=G.useCallback(b=>{ht.add(b)},[ht]),st=G.useRef(null),T=G.useCallback(b=>{const D=K.current,H=K.current=b(D);let w=!1;for(const P of ht)if(D[P]!==H[P]){w=!0;break}w&&yt(oy(H,it))},[it,ht]),N=G.useCallback(()=>{var b;if((b=st.current)===null||b===void 0||b.unsubscribe(),!Y){T(()=>(0,Z.default)((0,Z.default)({},B),{},{reset:N}));return}T(()=>(0,Z.default)((0,Z.default)({},J),{},{reset:N}));const D=I.subscription(k.join("."),L??void 0,{onStarted:()=>{var H,w;(H=(w=tt.current).onStarted)===null||H===void 0||H.call(w),T(P=>(0,Z.default)((0,Z.default)({},P),{},{status:"pending",error:null}))},onData:H=>{var w,P;(w=(P=tt.current).onData)===null||w===void 0||w.call(P,H),T(rt=>(0,Z.default)((0,Z.default)({},rt),{},{status:"pending",data:H,error:null}))},onError:H=>{var w,P;(w=(P=tt.current).onError)===null||w===void 0||w.call(P,H),T(rt=>(0,Z.default)((0,Z.default)({},rt),{},{status:"error",error:H}))},onConnectionStateChange:H=>{T(w=>{switch(H.state){case"idle":return(0,Z.default)((0,Z.default)({},w),{},{status:H.state,error:null,data:void 0});case"connecting":return(0,Z.default)((0,Z.default)({},w),{},{error:H.error,status:H.state});case"pending":return w}})},onComplete:()=>{var H,w;(H=(w=tt.current).onComplete)===null||H===void 0||H.call(w),T(P=>(0,Z.default)((0,Z.default)({},P),{},{status:"idle",error:null,data:void 0}))}});st.current=D},[I,et,Y,T]);G.useEffect(()=>(N(),()=>{var b;(b=st.current)===null||b===void 0||b.unsubscribe()}),[N]);const K=G.useRef(Y?(0,Z.default)((0,Z.default)({},J),{},{reset:N}):(0,Z.default)((0,Z.default)({},B),{},{reset:N})),[ut,yt]=G.useState(oy(K.current,it));return ut}function $(k,L,j){var X,Y,et,I,tt;const{client:ht,ssrState:it,prefetchInfiniteQuery:st,queryClient:T,abortOnUnmount:N}=v(),K=Ke(k,L,"infinite"),ut=T.getQueryDefaults(K),yt=L===Ee;typeof window>"u"&&it==="prepass"&&(j==null||(X=j.trpc)===null||X===void 0?void 0:X.ssr)!==!1&&((Y=j?.enabled)!==null&&Y!==void 0?Y:ut?.enabled)!==!1&&!yt&&!T.getQueryCache().find({queryKey:K})&&st(K,(0,Z.default)((0,Z.default)({},ut),j));const b=m(K,(0,Z.default)((0,Z.default)({},ut),j)),D=(et=j==null||(I=j.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&et!==void 0?et:N,H=T0((0,Z.default)((0,Z.default)({},b),{},{initialPageParam:(tt=j.initialCursor)!==null&&tt!==void 0?tt:null,persister:j.persister,queryKey:K,queryFn:yt?L:w=>{var P;const rt=(0,Z.default)((0,Z.default)({},b),{},{trpc:(0,Z.default)((0,Z.default)({},b?.trpc),D?{signal:w.signal}:{signal:null})});return ht.query(...ue(K,rt,{pageParam:(P=w.pageParam)!==null&&P!==void 0?P:j.initialCursor,direction:w.direction}))}}),T);return H.trpc=Ka({path:k}),H}function at(k,L,j){var X,Y,et;const I=v(),tt=Ke(k,L,"infinite"),ht=I.queryClient.getQueryDefaults(tt),it=L===Ee,st=m(tt,(0,Z.default)((0,Z.default)({},ht),j)),T=(X=j==null||(Y=j.trpc)===null||Y===void 0?void 0:Y.abortOnUnmount)!==null&&X!==void 0?X:I.abortOnUnmount;E0((0,Z.default)((0,Z.default)({},j),{},{initialPageParam:(et=j.initialCursor)!==null&&et!==void 0?et:null,queryKey:tt,queryFn:it?L:N=>{var K;const ut=(0,Z.default)((0,Z.default)({},st),{},{trpc:(0,Z.default)((0,Z.default)({},st?.trpc),T?{signal:N.signal}:{})});return I.client.query(...ue(tt,ut,{pageParam:(K=N.pageParam)!==null&&K!==void 0?K:j.initialCursor,direction:N.direction}))}}))}function dt(k,L,j){var X,Y,et;const I=v(),tt=Ke(k,L,"infinite"),ht=I.queryClient.getQueryDefaults(tt),it=m(tt,(0,Z.default)((0,Z.default)({},ht),j)),st=(X=j==null||(Y=j.trpc)===null||Y===void 0?void 0:Y.abortOnUnmount)!==null&&X!==void 0?X:I.abortOnUnmount,T=S0((0,Z.default)((0,Z.default)({},j),{},{initialPageParam:(et=j.initialCursor)!==null&&et!==void 0?et:null,queryKey:tt,queryFn:N=>{var K;const ut=(0,Z.default)((0,Z.default)({},it),{},{trpc:(0,Z.default)((0,Z.default)({},it?.trpc),st?{signal:N.signal}:{})});return I.client.query(...ue(tt,ut,{pageParam:(K=N.pageParam)!==null&&K!==void 0?K:j.initialCursor,direction:N.direction}))}}),I.queryClient);return T.trpc=Ka({path:k}),[T.data,T]}return{Provider:y,createClient:d,useContext:v,useUtils:v,useQuery:p,usePrefetchQuery:M,useSuspenseQuery:_,useQueries:(k,L)=>{const{ssrState:j,queryClient:X,prefetchQuery:Y,client:et}=v(),I=fy(et),tt=k(I);if(typeof window>"u"&&j==="prepass")for(const it of tt){var ht;const st=it;((ht=st.trpc)===null||ht===void 0?void 0:ht.ssr)!==!1&&!X.getQueryCache().find({queryKey:st.queryKey})&&Y(st.queryKey,st)}return qy({queries:tt.map(it=>(0,Z.default)((0,Z.default)({},it),{},{queryKey:it.queryKey})),combine:L?.combine},X)},useSuspenseQueries:k=>{const{queryClient:L,client:j}=v(),X=fy(j),Y=k(X),et=O0({queries:Y.map(I=>(0,Z.default)((0,Z.default)({},I),{},{queryFn:I.queryFn,queryKey:I.queryKey}))},L);return[et.map(I=>I.data),et]},useMutation:q,useSubscription:Q,useInfiniteQuery:$,usePrefetchInfiniteQuery:at,useSuspenseInfiniteQuery:dt}}function vb(a){const i=ab(a);return zs(c=>c==="useContext"||c==="useUtils"?()=>{const s=a.useUtils();return G.useMemo(()=>sb(s),[s])}:a.hasOwnProperty(c)?a[c]:i[c])}function mb(a){const i=yb();return vb(i)}const xe=mb(),pb=xe.createClient({links:[Kg({url:"/api/trpc"})]}),dy="/media/images/capas/capa-placeholder.svg";function gb(){const{data:a,isLoading:i}=xe.biblioteca.getCatalogo.useQuery(),{data:c}=xe.auth.me.useQuery(),s=a?.[0],o=a?.slice(1)??[];return V.jsxs("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)",fontFamily:"var(--font-corpo)"},children:[V.jsxs("header",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem 1.25rem",borderBottom:"var(--border-thin)"},children:[V.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",style:{height:32}}),V.jsx("a",{href:"/admin",className:"btn btn-ghost",style:{padding:"0.5rem 1rem",fontSize:"0.75rem"},children:c?"área do editor":"entrar"})]}),V.jsxs("div",{style:{maxWidth:960,margin:"0 auto",padding:"1.5rem 1.25rem 4rem"},children:[i&&V.jsx("p",{style:{color:"var(--color-text-on-dark-muted)",fontSize:"0.875rem"},children:"carregando..."}),!i&&(!a||a.length===0)&&V.jsxs("div",{style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)",borderRadius:"var(--radius-lg)",padding:"2.5rem",textAlign:"center",color:"var(--color-text-on-dark-muted)"},children:[V.jsx("p",{style:{fontFamily:"var(--font-display)",fontSize:"1.25rem",color:"var(--clr-branco)",marginBottom:"0.5rem"},children:"A estante ainda está sendo montada"}),V.jsx("p",{style:{fontSize:"0.875rem"},children:"Em breve os primeiros livros aparecem aqui."})]}),s&&V.jsx("section",{style:{marginBottom:"3rem"},children:V.jsxs("div",{style:{display:"flex",gap:"1.5rem",background:"var(--color-bg-card-dark)",border:"var(--border-thin)",borderRadius:"var(--radius-xl)",padding:"1.5rem",boxShadow:"var(--shadow-borgonha-md)"},children:[V.jsx("img",{src:s.capaUrl||dy,alt:s.titulo,style:{width:110,aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-md)",flexShrink:0}}),V.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",gap:"0.5rem"},children:[V.jsx("span",{style:{fontFamily:"var(--font-ui)",fontSize:"0.7rem",letterSpacing:"var(--tracking-caps)",textTransform:"uppercase",color:"var(--clr-acento-400)",fontWeight:700},children:"destaque"}),V.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.35rem",color:"var(--clr-branco)",fontWeight:600},children:s.titulo}),s.serie&&V.jsxs("span",{style:{fontSize:"0.8rem",color:"var(--color-text-on-dark-muted)"},children:[s.serie,s.volumeNumero?` · volume ${s.volumeNumero}`:""]}),V.jsx("a",{href:`/livro/${s.id}`,className:"btn btn-primary",style:{width:"fit-content",marginTop:"0.5rem"},children:"ler agora"})]})]})}),o.length>0&&V.jsxs("section",{children:[V.jsx("h2",{style:{fontFamily:"var(--font-ui)",fontSize:"0.75rem",letterSpacing:"var(--tracking-wider)",textTransform:"uppercase",color:"var(--color-text-on-dark-subtle)",marginBottom:"1rem"},children:"todos os livros"}),V.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(120px, 1fr))",gap:"1.25rem"},children:o.map(d=>V.jsxs("a",{href:`/livro/${d.id}`,style:{display:"block"},children:[V.jsx("img",{src:d.capaUrl||dy,alt:d.titulo,style:{width:"100%",aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-md)",boxShadow:"var(--shadow-sm)"}}),V.jsx("p",{style:{fontSize:"0.8rem",marginTop:"0.5rem",color:"var(--clr-branco)"},children:d.titulo}),V.jsx("p",{style:{fontSize:"0.7rem",color:"var(--color-text-on-dark-muted)"},children:d.autor})]},d.id))})]})]})]})}function fv(){const a=xe.useUtils(),{data:i,isLoading:c}=xe.auth.me.useQuery(),s=xe.auth.login.useMutation({onSuccess:()=>a.auth.me.invalidate()}),o=xe.auth.logout.useMutation({onSuccess:()=>a.auth.me.invalidate()}),d=i?.papel==="editor"||i?.papel==="admin";return{usuario:i,isLoading:c,login:s,logout:o,podePublicar:d}}function bb(){const{login:a}=fv(),[i,c]=G.useState(""),[s,o]=G.useState("");return V.jsx("div",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},className:"flex items-center justify-center px-6",children:V.jsxs("div",{className:"max-w-sm w-full space-y-3",children:[V.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",style:{height:32,marginBottom:"1.5rem"}}),V.jsx("h1",{style:{fontFamily:"var(--font-display)"},className:"text-lg font-medium",children:"Entrar"}),V.jsx("input",{className:"w-full rounded px-3 py-2",style:{background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},placeholder:"e-mail",value:i,onChange:d=>c(d.target.value)}),V.jsx("input",{className:"w-full rounded px-3 py-2",style:{background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},placeholder:"senha",type:"password",value:s,onChange:d=>o(d.target.value)}),V.jsx("button",{className:"btn btn-primary w-full",onClick:()=>a.mutate({email:i,senha:s}),disabled:a.isPending,children:a.isPending?"entrando...":"entrar"}),a.isError&&V.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:a.error.message})]})})}function Sb(){const a=xe.useUtils(),i=xe.biblioteca.admin.criar.useMutation({onSuccess:()=>a.biblioteca.admin.listar.invalidate()}),[c,s]=G.useState(""),[o,d]=G.useState(""),[y,v]=G.useState(""),[m,p]=G.useState(""),[M,_]=G.useState(""),[q,B]=G.useState(""),[J,Q]=G.useState(null),[$,at]=G.useState(null),[dt,Tt]=G.useState(!1),[qt,k]=G.useState(null),L={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};async function j(Y,et,I,tt={}){const ht=new FormData;ht.append(et,I);for(const[st,T]of Object.entries(tt))ht.append(st,T);const it=await fetch(Y,{method:"POST",body:ht});if(!it.ok){const st=await it.json().catch(()=>({}));throw new Error(st.erro||"Falha no upload.")}return it.json()}async function X(){if(!J){k("Selecione o arquivo DOCX.");return}k(null),Tt(!0);try{const{docxOriginalUrl:Y,epubUrl:et}=await j("/api/admin/upload-docx","arquivo",J,{titulo:c,autor:M});let I;$&&(I=(await j("/api/admin/upload-capa","imagem",$)).url),await i.mutateAsync({titulo:c,subtitulo:o||void 0,serie:y||void 0,volumeNumero:m?Number(m):void 0,autor:M,resumo:q||void 0,capaUrl:I,epubUrl:et,docxOriginalUrl:Y}),s(""),d(""),v(""),p(""),_(""),B(""),Q(null),at(null)}catch(Y){k(Y instanceof Error?Y.message:"Erro ao publicar.")}finally{Tt(!1)}}return V.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[V.jsx("h2",{style:{fontFamily:"var(--font-display)"},className:"font-medium",children:"Novo livro"}),V.jsx("input",{className:"w-full rounded px-3 py-2",style:L,placeholder:"título",value:c,onChange:Y=>s(Y.target.value)}),V.jsx("input",{className:"w-full rounded px-3 py-2",style:L,placeholder:"subtítulo (opcional)",value:o,onChange:Y=>d(Y.target.value)}),V.jsxs("div",{className:"flex gap-3",children:[V.jsx("input",{className:"flex-1 rounded px-3 py-2",style:L,placeholder:"série (opcional)",value:y,onChange:Y=>v(Y.target.value)}),V.jsx("input",{className:"w-28 rounded px-3 py-2",style:L,placeholder:"volume nº",value:m,onChange:Y=>p(Y.target.value)})]}),V.jsx("input",{className:"w-full rounded px-3 py-2",style:L,placeholder:"autor",value:M,onChange:Y=>_(Y.target.value)}),V.jsx("textarea",{className:"w-full rounded px-3 py-2",style:L,placeholder:"resumo (opcional)",value:q,onChange:Y=>B(Y.target.value)}),V.jsx("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:"arquivo DOCX"}),V.jsx("input",{type:"file",accept:".docx",onChange:Y=>Q(Y.target.files?.[0]??null)}),V.jsx("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:"capa (opcional)"}),V.jsx("input",{type:"file",accept:"image/*",onChange:Y=>at(Y.target.files?.[0]??null)}),qt&&V.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:qt}),V.jsx("button",{className:"btn btn-primary",onClick:X,disabled:dt||!c||!M,children:dt?"processando...":"salvar como rascunho"})]})}function Ob(){const a=xe.useUtils(),{data:i}=xe.biblioteca.admin.listar.useQuery(),c=xe.biblioteca.admin.atualizar.useMutation({onSuccess:()=>a.biblioteca.admin.listar.invalidate()});return V.jsxs("div",{className:"mt-6 space-y-2",children:[V.jsx("h2",{style:{fontFamily:"var(--font-display)"},className:"font-medium",children:"Livros"}),i?.map(s=>V.jsxs("div",{className:"flex items-center justify-between rounded px-3 py-2",style:{border:"var(--border-thin)"},children:[V.jsxs("div",{children:[V.jsx("p",{className:"text-sm font-medium",children:s.titulo}),V.jsxs("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:[s.status," · ",s.epubUrl?"epub ok":"sem epub"]})]}),V.jsx("button",{className:"btn btn-ghost text-sm",style:{padding:"0.4rem 0.9rem",fontSize:"0.75rem"},onClick:()=>c.mutate({id:s.id,status:s.status==="publicado"?"rascunho":"publicado"}),children:s.status==="publicado"?"despublicar":"publicar"})]},s.id))]})}function _b(){const{usuario:a,isLoading:i,podePublicar:c,logout:s}=fv();return i?null:a?c?V.jsx("div",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:V.jsxs("div",{className:"max-w-xl mx-auto p-6 space-y-6",children:[V.jsxs("div",{className:"flex justify-between items-center",children:[V.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",style:{height:28}}),V.jsx("button",{style:{color:"var(--color-text-on-dark-muted)"},className:"text-sm",onClick:()=>s.mutate(),children:"sair"})]}),V.jsx(Sb,{}),V.jsx(Ob,{})]})}):V.jsx("div",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},className:"p-6",children:"Sua conta não tem permissão de editor."}):V.jsx(bb,{})}function Eb(){const[a]=G.useState(()=>new s0);return V.jsx(xe.Provider,{client:pb,queryClient:a,children:V.jsx(v0,{client:a,children:V.jsxs(F0,{children:[V.jsx(ly,{path:"/admin",component:_b}),V.jsx(ly,{path:"/",component:gb})]})})})}Vp.createRoot(document.getElementById("root")).render(V.jsx(G.StrictMode,{children:V.jsx(Eb,{})}));
