function Hp(a,i){for(var c=0;c<i.length;c++){const s=i[c];if(typeof s!="string"&&!Array.isArray(s)){for(const f in s)if(f!=="default"&&!(f in a)){const d=Object.getOwnPropertyDescriptor(s,f);d&&Object.defineProperty(a,f,d.get?d:{enumerable:!0,get:()=>s[f]})}}}return Object.freeze(Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}))}(function(){const i=document.createElement("link").relList;if(i&&i.supports&&i.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))s(f);new MutationObserver(f=>{for(const d of f)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(f){const d={};return f.integrity&&(d.integrity=f.integrity),f.referrerPolicy&&(d.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?d.credentials="include":f.crossOrigin==="anonymous"?d.credentials="omit":d.credentials="same-origin",d}function s(f){if(f.ep)return;f.ep=!0;const d=c(f);fetch(f.href,d)}})();function wp(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 qh;function Bp(){if(qh)return La;qh=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function c(s,f,d){var y=null;if(d!==void 0&&(y=""+d),f.key!==void 0&&(y=""+f.key),"key"in f){d={};for(var m in f)m!=="key"&&(d[m]=f[m])}else d=f;return f=d.ref,{$$typeof:a,type:s,key:y,ref:f!==void 0?f:null,props:d}}return La.Fragment=i,La.jsx=c,La.jsxs=c,La}var Qh;function Yp(){return Qh||(Qh=1,Pc.exports=Bp()),Pc.exports}var N=Yp(),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 Nh;function Gp(){if(Nh)return ct;Nh=1;var a=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),c=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),d=Symbol.for("react.consumer"),y=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),q=Symbol.iterator;function Y(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,w){this.props=b,this.context=D,this.refs=$,this.updater=w||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,w){this.props=b,this.context=D,this.refs=$,this.updater=w||J}var qt=Tt.prototype=new dt;qt.constructor=Tt,Q(qt,at.prototype),qt.isPureReactComponent=!0;var k=Array.isArray;function X(){}var M={H:null,A:null,T:null,S:null},K=Object.prototype.hasOwnProperty;function G(b,D,w){var B=w.ref;return{$$typeof:a,type:b,key:D,ref:B!==void 0?B:null,props:w}}function et(b,D){return G(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(w){return D[w]})}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(X,X):(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,w,B,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 z:return St=b._init,T(St(b._payload),D,w,B,P)}}if(St)return P=P(b),St=B===""?"."+it(b,0):B,k(P)?(w="",St!=null&&(w=St.replace(ht,"$&/")+"/"),T(P,D,w,"",function(kl){return kl})):P!=null&&(I(P)&&(P=et(P,w+(P.key==null||b&&b.key===P.key?"":(""+P.key).replace(ht,"$&/")+"/")+St)),D.push(P)),1;St=0;var ae=B===""?".":B+":";if(k(b))for(var Bt=0;Bt<b.length;Bt++)B=b[Bt],rt=ae+it(B,Bt),St+=T(B,D,w,rt,P);else if(Bt=Y(b),typeof Bt=="function")for(b=Bt.call(b),Bt=0;!(B=b.next()).done;)B=B.value,rt=ae+it(B,Bt++),St+=T(B,D,w,rt,P);else if(rt==="object"){if(typeof b.then=="function")return T(st(b),D,w,B,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 H(b,D,w){if(b==null)return b;var B=[],P=0;return T(b,B,"","",function(rt){return D.call(w,rt,P++)}),B}function Z(b){if(b._status===-1){var D=b._result;D=D(),D.then(function(w){(b._status===0||b._status===-1)&&(b._status=1,b._result=w)},function(w){(b._status===0||b._status===-1)&&(b._status=2,b._result=w)}),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:H,forEach:function(b,D,w){H(b,function(){D.apply(this,arguments)},w)},count:function(b){var D=0;return H(b,function(){D++}),D},toArray:function(b){return H(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=f,ct.PureComponent=Tt,ct.StrictMode=s,ct.Suspense=v,ct.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,ct.__COMPILER_RUNTIME={__proto__:null,c:function(b){return M.H.useMemoCache(b)}},ct.cache=function(b){return function(){return b.apply(null,arguments)}},ct.cacheSignal=function(){return null},ct.cloneElement=function(b,D,w){if(b==null)throw Error("The argument must be a React element, but you passed "+b+".");var B=Q({},b.props),P=b.key;if(D!=null)for(rt in D.key!==void 0&&(P=""+D.key),D)!K.call(D,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&D.ref===void 0||(B[rt]=D[rt]);var rt=arguments.length-2;if(rt===1)B.children=w;else if(1<rt){for(var St=Array(rt),ae=0;ae<rt;ae++)St[ae]=arguments[ae+2];B.children=St}return G(b.type,P,B)},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,w){var B,P={},rt=null;if(D!=null)for(B in D.key!==void 0&&(rt=""+D.key),D)K.call(D,B)&&B!=="key"&&B!=="__self"&&B!=="__source"&&(P[B]=D[B]);var St=arguments.length-2;if(St===1)P.children=w;else if(1<St){for(var ae=Array(St),Bt=0;Bt<St;Bt++)ae[Bt]=arguments[Bt+2];P.children=ae}if(b&&b.defaultProps)for(B in St=b.defaultProps,St)P[B]===void 0&&(P[B]=St[B]);return G(b,rt,P)},ct.createRef=function(){return{current:null}},ct.forwardRef=function(b){return{$$typeof:m,render:b}},ct.isValidElement=I,ct.lazy=function(b){return{$$typeof:z,_payload:{_status:-1,_result:b},_init:Z}},ct.memo=function(b,D){return{$$typeof:p,type:b,compare:D===void 0?null:D}},ct.startTransition=function(b){var D=M.T,w={};M.T=w;try{var B=b(),P=M.S;P!==null&&P(w,B),typeof B=="object"&&B!==null&&typeof B.then=="function"&&B.then(X,ut)}catch(rt){ut(rt)}finally{D!==null&&w.types!==null&&(D.types=w.types),M.T=D}},ct.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},ct.use=function(b){return M.H.use(b)},ct.useActionState=function(b,D,w){return M.H.useActionState(b,D,w)},ct.useCallback=function(b,D){return M.H.useCallback(b,D)},ct.useContext=function(b){return M.H.useContext(b)},ct.useDebugValue=function(){},ct.useDeferredValue=function(b,D){return M.H.useDeferredValue(b,D)},ct.useEffect=function(b,D){return M.H.useEffect(b,D)},ct.useEffectEvent=function(b){return M.H.useEffectEvent(b)},ct.useId=function(){return M.H.useId()},ct.useImperativeHandle=function(b,D,w){return M.H.useImperativeHandle(b,D,w)},ct.useInsertionEffect=function(b,D){return M.H.useInsertionEffect(b,D)},ct.useLayoutEffect=function(b,D){return M.H.useLayoutEffect(b,D)},ct.useMemo=function(b,D){return M.H.useMemo(b,D)},ct.useOptimistic=function(b,D){return M.H.useOptimistic(b,D)},ct.useReducer=function(b,D,w){return M.H.useReducer(b,D,w)},ct.useRef=function(b){return M.H.useRef(b)},ct.useState=function(b){return M.H.useState(b)},ct.useSyncExternalStore=function(b,D,w){return M.H.useSyncExternalStore(b,D,w)},ct.useTransition=function(){return M.H.useTransition()},ct.version="19.2.1",ct}var Hh;function Ai(){return Hh||(Hh=1,Wc.exports=Gp()),Wc.exports}var L=Ai();const Lp=wp(L),my=Hp({__proto__:null,default:Lp},[L]);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 wh;function Xp(){return wh||(wh=1,(function(a){function i(T,H){var Z=T.length;T.push(H);t:for(;0<Z;){var ut=Z-1>>>1,yt=T[ut];if(0<f(yt,H))T[ut]=H,T[Z]=yt,Z=ut;else break t}}function c(T){return T.length===0?null:T[0]}function s(T){if(T.length===0)return null;var H=T[0],Z=T.pop();if(Z!==H){T[0]=Z;t:for(var ut=0,yt=T.length,b=yt>>>1;ut<b;){var D=2*(ut+1)-1,w=T[D],B=D+1,P=T[B];if(0>f(w,Z))B<yt&&0>f(P,w)?(T[ut]=P,T[B]=Z,ut=B):(T[ut]=w,T[D]=Z,ut=D);else if(B<yt&&0>f(P,Z))T[ut]=P,T[B]=Z,ut=B;else break t}}return H}function f(T,H){var Z=T.sortIndex-H.sortIndex;return Z!==0?Z:T.id-H.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,m=y.now();a.unstable_now=function(){return y.now()-m}}var v=[],p=[],z=1,_=null,q=3,Y=!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 H=c(p);H!==null;){if(H.callback===null)s(p);else if(H.startTime<=T)s(p),H.sortIndex=H.expirationTime,i(v,H);else break;H=c(p)}}function k(T){if(Q=!1,qt(T),!J)if(c(v)!==null)J=!0,X||(X=!0,tt());else{var H=c(p);H!==null&&st(k,H.startTime-T)}}var X=!1,M=-1,K=5,G=-1;function et(){return $?!0:!(a.unstable_now()-G<K)}function I(){if($=!1,X){var T=a.unstable_now();G=T;var H=!0;try{t:{J=!1,Q&&(Q=!1,dt(M),M=-1),Y=!0;var Z=q;try{e:{for(qt(T),_=c(v);_!==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),H=!0;break e}_===c(v)&&s(v),qt(T)}else s(v);_=c(v)}if(_!==null)H=!0;else{var b=c(p);b!==null&&st(k,b.startTime-T),H=!1}}break t}finally{_=null,q=Z,Y=!1}H=void 0}}finally{H?tt():X=!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,H){M=at(function(){T(a.unstable_now())},H)}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"):K=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 H=3;break;default:H=q}var Z=q;q=H;try{return T()}finally{q=Z}},a.unstable_requestPaint=function(){$=!0},a.unstable_runWithPriority=function(T,H){switch(T){case 1:case 2:case 3:case 4:case 5:break;default:T=3}var Z=q;q=T;try{return H()}finally{q=Z}},a.unstable_scheduleCallback=function(T,H,Z){var ut=a.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?ut+Z:ut):Z=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=Z+yt,T={id:z++,callback:H,priorityLevel:T,startTime:Z,expirationTime:yt,sortIndex:-1},Z>ut?(T.sortIndex=Z,i(p,T),c(v)===null&&T===c(p)&&(Q?(dt(M),M=-1):Q=!0,st(k,Z-ut))):(T.sortIndex=yt,i(v,T),J||Y||(J=!0,X||(X=!0,tt()))),T},a.unstable_shouldYield=et,a.unstable_wrapCallback=function(T){var H=q;return function(){var Z=q;q=H;try{return T.apply(this,arguments)}finally{q=Z}}}})(es)),es}var Bh;function Kp(){return Bh||(Bh=1,ts.exports=Xp()),ts.exports}var ns={exports:{}},ne={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Yh;function Zp(){if(Yh)return ne;Yh=1;var a=Ai();function i(v){var p="https://react.dev/errors/"+v;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var z=2;z<arguments.length;z++)p+="&args[]="+encodeURIComponent(arguments[z])}return"Minified React error #"+v+"; 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},f=Symbol.for("react.portal");function d(v,p,z){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:f,key:_==null?null:""+_,children:v,containerInfo:p,implementation:z}}var y=a.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(v,p){if(v==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ne.createPortal=function(v,p){var z=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(v,p,null,z)},ne.flushSync=function(v){var p=y.T,z=s.p;try{if(y.T=null,s.p=2,v)return v()}finally{y.T=p,s.p=z,s.d.f()}},ne.preconnect=function(v,p){typeof v=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(v,p))},ne.prefetchDNS=function(v){typeof v=="string"&&s.d.D(v)},ne.preinit=function(v,p){if(typeof v=="string"&&p&&typeof p.as=="string"){var z=p.as,_=m(z,p.crossOrigin),q=typeof p.integrity=="string"?p.integrity:void 0,Y=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;z==="style"?s.d.S(v,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:_,integrity:q,fetchPriority:Y}):z==="script"&&s.d.X(v,{crossOrigin:_,integrity:q,fetchPriority:Y,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},ne.preinitModule=function(v,p){if(typeof v=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var z=m(p.as,p.crossOrigin);s.d.M(v,{crossOrigin:z,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(v)},ne.preload=function(v,p){if(typeof v=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var z=p.as,_=m(z,p.crossOrigin);s.d.L(v,z,{crossOrigin:_,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},ne.preloadModule=function(v,p){if(typeof v=="string")if(p){var z=m(p.as,p.crossOrigin);s.d.m(v,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:z,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(v)},ne.requestFormReset=function(v){s.d.r(v)},ne.unstable_batchedUpdates=function(v,p){return v(p)},ne.useFormState=function(v,p,z){return y.H.useFormState(v,p,z)},ne.useFormStatus=function(){return y.H.useHostTransitionStatus()},ne.version="19.2.1",ne}var Gh;function Vp(){if(Gh)return ns.exports;Gh=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=Zp(),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 Lh;function Jp(){if(Lh)return Xa;Lh=1;var a=Kp(),i=Ai(),c=Vp();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 f(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 m(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function v(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 v(u),t;if(r===l)return v(u),e;r=r.sibling}throw Error(s(188))}if(n.return!==l.return)n=u,l=r;else{for(var o=!1,h=u.child;h;){if(h===n){o=!0,n=u,l=r;break}if(h===l){o=!0,l=u,n=r;break}h=h.sibling}if(!o){for(h=r.child;h;){if(h===n){o=!0,n=r,l=u;break}if(h===l){o=!0,l=r,n=u;break}h=h.sibling}if(!o)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 z(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=z(t),e!==null)return e;t=t.sibling}return null}var _=Object.assign,q=Symbol.for("react.element"),Y=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"),X=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),K=Symbol.for("react.lazy"),G=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 X:return"SuspenseList";case G: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 M:return e=t.displayName||null,e!==null?e:it(t.type)||"Memo";case K: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,H=c.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={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 w(t,e){yt++,ut[yt]=t.current,t.current=e}var B=b(null),P=b(null),rt=b(null),St=b(null);function ae(t,e){switch(w(rt,e),w(P,t),w(B,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?lh(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=lh(e),t=ah(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}D(B),w(B,t)}function Bt(){D(B),D(P),D(rt)}function kl(t){t.memoizedState!==null&&w(St,t);var e=B.current,n=ah(e,t.type);e!==n&&(w(P,t),w(B,n))}function Pa(t){P.current===t&&(D(B),D(P)),St.current===t&&(D(St),wa._currentValue=Z)}var Ui,Ds;function Bn(t){if(Ui===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ui=e&&e[1]||"",Ds=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ui+t+Ds}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(j){var A=j}Reflect.construct(t,[],U)}else{try{U.call()}catch(j){A=j}t.call(U.prototype)}}else{try{throw Error()}catch(j){A=j}(U=t())&&typeof U.catch=="function"&&U.catch(function(){})}}catch(j){if(j&&A&&typeof j.stack=="string")return[j.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(),o=r[0],h=r[1];if(o&&h){var g=o.split(`
`),E=h.split(`
`);for(u=l=0;l<g.length&&!g[l].includes("DetermineComponentFrameRoot");)l++;for(;u<E.length&&!E[u].includes("DetermineComponentFrameRoot");)u++;if(l===g.length||u===E.length)for(l=g.length-1,u=E.length-1;1<=l&&0<=u&&g[l]!==E[u];)u--;for(;1<=l&&0<=u;l--,u--)if(g[l]!==E[u]){if(l!==1||u!==1)do if(l--,u--,0>u||g[l]!==E[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 yv(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 Rs(t){try{var e="",n=null;do e+=yv(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,vv=a.unstable_shouldYield,mv=a.unstable_requestPaint,ye=a.unstable_now,pv=a.unstable_getCurrentPriorityLevel,Us=a.unstable_ImmediatePriority,qs=a.unstable_UserBlockingPriority,Wa=a.unstable_NormalPriority,gv=a.unstable_LowPriority,Qs=a.unstable_IdlePriority,bv=a.log,Sv=a.unstable_setDisableYieldValue,$l=null,ve=null;function fn(t){if(typeof bv=="function"&&Sv(t),ve&&typeof ve.setStrictMode=="function")try{ve.setStrictMode($l,t)}catch{}}var me=Math.clz32?Math.clz32:xv,Ov=Math.log,_v=Math.LN2;function xv(t){return t>>>=0,t===0?32:31-(Ov(t)/_v|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,o=t.pingedLanes;t=t.warmLanes;var h=l&134217727;return h!==0?(l=h&~r,l!==0?u=Yn(l):(o&=h,o!==0?u=Yn(o):n||(n=h&~t,n!==0&&(u=Yn(n))))):(h=l&~r,h!==0?u=Yn(h):o!==0?u=Yn(o):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 Ev(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 Ns(){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 Tv(t,e,n,l,u,r){var o=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,E=t.hiddenUpdates;for(n=o&~n;0<n;){var C=31-me(n),U=1<<C;h[C]=0,g[C]=-1;var A=E[C];if(A!==null)for(E[C]=null,C=0;C<A.length;C++){var j=A[C];j!==null&&(j.lane&=-536870913)}n&=~U}l!==0&&Hs(t,l,0),r!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=r&~(o&~e))}function Hs(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var l=31-me(e);t.entangledLanes|=e,t.entanglements[l]=t.entanglements[l]|1073741824|n&261930}function ws(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var l=31-me(n),u=1<<l;u&e|t[l]&e&&(t[l]|=e),n&=~u}}function Bs(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 Ys(){var t=H.p;return t!==0?t:(t=window.event,t===void 0?32:jh(t.type))}function Gs(t,e){var n=H.p;try{return H.p=t,e()}finally{H.p=n}}var dn=Math.random().toString(36).slice(2),$t="__reactFiber$"+dn,re="__reactProps$"+dn,ol="__reactContainer$"+dn,Li="__reactEvents$"+dn,Av="__reactListeners$"+dn,jv="__reactHandles$"+dn,Ls="__reactResources$"+dn,Il="__reactMarker$"+dn;function Xi(t){delete t[$t],delete t[re],delete t[Li],delete t[Av],delete t[jv]}function fl(t){var e=t[$t];if(e)return e;for(var n=t.parentNode;n;){if(e=n[ol]||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[ol]){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[Ls];return e||(e=t[Ls]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Ft(t){t[Il]=!0}var Xs=new Set,Ks={};function Gn(t,e){yl(t,e),yl(t+"Capture",e)}function yl(t,e){for(Ks[t]=e,t=0;t<e.length;t++)Xs.add(e[t])}var zv=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]*$"),Zs={},Vs={};function Mv(t){return Ni.call(Vs,t)?!0:Ni.call(Zs,t)?!1:zv.test(t)?Vs[t]=!0:(Zs[t]=!0,!1)}function lu(t,e,n){if(Mv(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 Js(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Cv(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(o){n=""+o,r.call(this,o)}}),Object.defineProperty(t,e,{enumerable:l.enumerable}),{getValue:function(){return n},setValue:function(o){n=""+o},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function Ki(t){if(!t._valueTracker){var e=Js(t)?"checked":"value";t._valueTracker=Cv(t,e,""+t[e])}}function Fs(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),l="";return t&&(l=Js(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 Dv=/[\n"\\]/g;function Ae(t){return t.replace(Dv,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Zi(t,e,n,l,u,r,o,h){t.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?t.type=o:t.removeAttribute("type"),e!=null?o==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Te(e)):t.value!==""+Te(e)&&(t.value=""+Te(e)):o!=="submit"&&o!=="reset"||t.removeAttribute("value"),e!=null?Vi(t,o,Te(e)):n!=null?Vi(t,o,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 ks(t,e,n,l,u,r,o,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,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(t.name=o),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 $s(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 Ps(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 Rv=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 Ws(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||Rv.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Is(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&&Ws(t,u,l)}else for(var r in e)e.hasOwnProperty(r)&&Ws(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 Uv=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"]]),qv=/^[\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 qv.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 to(t){var e=dl(t);if(e&&(t=e.stateNode)){var n=t[re]||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[re]||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&&Fs(l)}break t;case"textarea":$s(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&vl(t,!!n.multiple,e,!1)}}}var $i=!1;function eo(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,to(e),t)))for(e=0;e<t.length;e++)to(t[e])}}function ea(t,e){var n=t.stateNode;if(n===null)return null;var l=n[re]||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 no(){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 o=n-t;for(l=1;l<=o&&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 lo(){return!1}function ce(t){function e(n,l,u,r,o){this._reactName=n,this._targetInst=u,this.type=l,this.nativeEvent=r,this.target=o,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:lo,this.isPropagationStopped=lo,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},ou=ce(Ln),la=_({},Ln,{view:0,detail:0}),Qv=ce(la),Ii,tr,aa,fu=_({},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}}),ao=ce(fu),Nv=_({},fu,{dataTransfer:0}),Hv=ce(Nv),wv=_({},la,{relatedTarget:0}),er=ce(wv),Bv=_({},Ln,{animationName:0,elapsedTime:0,pseudoElement:0}),Yv=ce(Bv),Gv=_({},Ln,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Lv=ce(Gv),Xv=_({},Ln,{data:0}),uo=ce(Xv),Kv={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Zv={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"},Vv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Jv(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Vv[t])?!!e[t]:!1}function nr(){return Jv}var Fv=_({},la,{key:function(t){if(t.key){var e=Kv[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"?Zv[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}}),kv=ce(Fv),$v=_({},fu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),io=ce($v),Pv=_({},la,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:nr}),Wv=ce(Pv),Iv=_({},Ln,{propertyName:0,elapsedTime:0,pseudoElement:0}),tm=ce(Iv),em=_({},fu,{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}),nm=ce(em),lm=_({},Ln,{newState:0,oldState:0}),am=ce(lm),um=[9,13,27,32],lr=Fe&&"CompositionEvent"in window,ua=null;Fe&&"documentMode"in document&&(ua=document.documentMode);var im=Fe&&"TextEvent"in window&&!ua,ro=Fe&&(!lr||ua&&8<ua&&11>=ua),co=" ",so=!1;function oo(t,e){switch(t){case"keyup":return um.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function fo(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var bl=!1;function rm(t,e){switch(t){case"compositionend":return fo(e);case"keypress":return e.which!==32?null:(so=!0,co);case"textInput":return t=e.data,t===co&&so?null:t;default:return null}}function cm(t,e){if(bl)return t==="compositionend"||!lr&&oo(t,e)?(t=no(),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 ro&&e.locale!=="ko"?null:e.data;default:return null}}var sm={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 ho(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!sm[t.type]:e==="textarea"}function yo(t,e,n,l){pl?gl?gl.push(l):gl=[l]:pl=l,e=ti(e,"onChange"),0<e.length&&(n=new ou("onChange","change",null,n,l),t.push({event:n,listeners:e}))}var ia=null,ra=null;function om(t){Pd(t,0)}function du(t){var e=ta(t);if(Fs(e))return t}function vo(t,e){if(t==="change")return e}var mo=!1;if(Fe){var ar;if(Fe){var ur="oninput"in document;if(!ur){var po=document.createElement("div");po.setAttribute("oninput","return;"),ur=typeof po.oninput=="function"}ar=ur}else ar=!1;mo=ar&&(!document.documentMode||9<document.documentMode)}function go(){ia&&(ia.detachEvent("onpropertychange",bo),ra=ia=null)}function bo(t){if(t.propertyName==="value"&&du(ra)){var e=[];yo(e,ra,t,ki(t)),eo(om,e)}}function fm(t,e,n){t==="focusin"?(go(),ia=e,ra=n,ia.attachEvent("onpropertychange",bo)):t==="focusout"&&go()}function dm(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return du(ra)}function hm(t,e){if(t==="click")return du(e)}function ym(t,e){if(t==="input"||t==="change")return du(e)}function vm(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var pe=typeof Object.is=="function"?Object.is:vm;function ca(t,e){if(pe(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)||!pe(t[u],e[u]))return!1}return!0}function So(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Oo(t,e){var n=So(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=So(n)}}function _o(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?_o(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function xo(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 mm=Fe&&"documentMode"in document&&11>=document.documentMode,Sl=null,rr=null,sa=null,cr=!1;function Eo(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 ou("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={},To={};Fe&&(To=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 To)return sr[t]=e[n];return t}var Ao=Kn("animationend"),jo=Kn("animationiteration"),zo=Kn("animationstart"),pm=Kn("transitionrun"),gm=Kn("transitionstart"),bm=Kn("transitioncancel"),Mo=Kn("transitionend"),Co=new Map,or="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(" ");or.push("scrollEnd");function Qe(t,e){Co.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)},je=[],_l=0,fr=0;function yu(){for(var t=_l,e=fr=_l=0;e<t;){var n=je[e];je[e++]=null;var l=je[e];je[e++]=null;var u=je[e];je[e++]=null;var r=je[e];if(je[e++]=null,l!==null&&u!==null){var o=l.pending;o===null?u.next=u:(u.next=o.next,o.next=u),l.pending=u}r!==0&&Do(n,u,r)}}function vu(t,e,n,l){je[_l++]=t,je[_l++]=e,je[_l++]=n,je[_l++]=l,fr|=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 Do(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-me(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 xl={};function Sm(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 ge(t,e,n,l){return new Sm(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=ge(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 Ro(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 o=0;if(l=t,typeof t=="function")hr(t)&&(o=1);else if(typeof t=="string")o=Tp(t,n,B.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case G:return t=ge(31,n,e,u),t.elementType=G,t.lanes=r,t;case Q:return Vn(n.children,u,r,e);case $:o=8,u|=24;break;case at:return t=ge(12,n,e,u|2),t.elementType=at,t.lanes=r,t;case k:return t=ge(13,n,e,u),t.elementType=k,t.lanes=r,t;case X:return t=ge(19,n,e,u),t.elementType=X,t.lanes=r,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Tt:o=10;break t;case dt:o=9;break t;case qt:o=11;break t;case M:o=14;break t;case K:o=16,l=null;break t}o=29,n=Error(s(130,t===null?"null":typeof t,"")),l=null}return e=ge(o,n,e,u),e.elementType=t,e.type=l,e.lanes=r,e}function Vn(t,e,n,l){return t=ge(7,t,l,e),t.lanes=n,t}function yr(t,e,n){return t=ge(6,t,null,e),t.lanes=n,t}function Uo(t){var e=ge(18,null,null,0);return e.stateNode=t,e}function vr(t,e,n){return e=ge(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var qo=new WeakMap;function ze(t,e){if(typeof t=="object"&&t!==null){var n=qo.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Rs(e)},qo.set(t,e),e)}return{value:t,source:e,stack:Rs(e)}}var El=[],Tl=0,gu=null,oa=0,Me=[],Ce=0,yn=null,Ye=1,Ge="";function $e(t,e){El[Tl++]=oa,El[Tl++]=gu,gu=t,oa=e}function Qo(t,e,n){Me[Ce++]=Ye,Me[Ce++]=Ge,Me[Ce++]=yn,yn=t;var l=Ye;t=Ge;var u=32-me(l)-1;l&=~(1<<u),n+=1;var r=32-me(e)+u;if(30<r){var o=u-u%5;r=(l&(1<<o)-1).toString(32),l>>=o,u-=o,Ye=1<<32-me(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),Qo(t,1,0))}function pr(t){for(;t===gu;)gu=El[--Tl],El[Tl]=null,oa=El[--Tl],El[Tl]=null;for(;t===yn;)yn=Me[--Ce],Me[Ce]=null,Ge=Me[--Ce],Me[Ce]=null,Ye=Me[--Ce],Me[Ce]=null}function No(t,e){Me[Ce++]=Ye,Me[Ce++]=Ge,Me[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 fa(ze(e,t)),gr}function Ho(t){var e=t.stateNode,n=t.type,l=t.memoizedProps;switch(e[$t]=t,e[re]=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),ks(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),Ps(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||eh(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 wo(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 wo(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),wo(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Rt=oh(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));Rt=oh(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&&(de===null?de=t:de.push.apply(de,t),vn=null),t}function fa(t){vn===null?vn=[t]:vn.push(t)}var Sr=b(null),Fn=null,Pe=null;function pn(t,e,n){w(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 o=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||(o=null);break t}r=h.next}}else if(u.tag===18){if(o=u.return,o===null)throw Error(s(341));o.lanes|=n,r=o.alternate,r!==null&&(r.lanes|=n),Or(o,n,t),o=null}else o=u.child;if(o!==null)o.return=u;else for(o=u;o!==null;){if(o===t){o=null;break}if(u=o.sibling,u!==null){u.return=o.return,o=u;break}o=o.return}u=o}}function jl(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 o=u.alternate;if(o===null)throw Error(s(387));if(o=o.memoizedProps,o!==null){var h=u.type;pe(u.pendingProps.value,o.value)||(t!==null?t.push(h):t=[h])}}else if(u===St.current){if(o=u.alternate,o===null)throw Error(s(387));o.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(!pe(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 Bo(Fn,t)}function Su(t,e){return Fn===null&&kn(t),Bo(t,e)}function Bo(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 Om=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()})}},_m=a.unstable_scheduleCallback,xm=a.unstable_NormalPriority,Xt={$$typeof:Tt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xr(){return{controller:new Om,data:new Map,refCount:0}}function da(t){t.refCount--,t.refCount===0&&_m(xm,function(){t.controller.abort()})}var ha=null,Er=0,zl=0,Ml=null;function Em(t,e){if(ha===null){var n=ha=[];Er=0,zl=jc(),Ml={status:"pending",value:void 0,then:function(l){n.push(l)}}}return Er++,e.then(Yo,Yo),e}function Yo(){if(--Er===0&&ha!==null){Ml!==null&&(Ml.status="fulfilled");var t=ha;ha=null,zl=0,Ml=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Tm(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 Go=T.S;T.S=function(t,e){Td=ye(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Em(t,e),Go!==null&&Go(t,e)};var $n=b(null);function Tr(){var t=$n.current;return t!==null?t:Dt.pooledCache}function Ou(t,e){e===null?w($n,$n.current):w($n,e.pool)}function Lo(){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)),xu={then:function(){}};function Xo(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Ko(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,Vo(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,Vo(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 Zo(){if(Wn===null)throw Error(s(459));var t=Wn;return Wn=null,t}function Vo(t){if(t===Cl||t===_u)throw Error(s(483))}var Dl=null,ya=0;function Eu(t){var e=ya;return ya+=1,Dl===null&&(Dl=[]),Ko(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 Jo(t){function e(O,S){if(t){var x=O.deletions;x===null?(O.deletions=[S],O.flags|=16):x.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,x){return O.index=x,t?(x=O.alternate,x!==null?(x=x.index,x<S?(O.flags|=67108866,S):x):(O.flags|=67108866,S)):(O.flags|=1048576,S)}function o(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function h(O,S,x,R){return S===null||S.tag!==6?(S=yr(x,O.mode,R),S.return=O,S):(S=u(S,x),S.return=O,S)}function g(O,S,x,R){var nt=x.type;return nt===Q?C(O,S,x.props.children,R,x.key):S!==null&&(S.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===K&&Pn(nt)===S.type)?(S=u(S,x.props),va(S,x),S.return=O,S):(S=pu(x.type,x.key,x.props,null,O.mode,R),va(S,x),S.return=O,S)}function E(O,S,x,R){return S===null||S.tag!==4||S.stateNode.containerInfo!==x.containerInfo||S.stateNode.implementation!==x.implementation?(S=vr(x,O.mode,R),S.return=O,S):(S=u(S,x.children||[]),S.return=O,S)}function C(O,S,x,R,nt){return S===null||S.tag!==7?(S=Vn(x,O.mode,R,nt),S.return=O,S):(S=u(S,x),S.return=O,S)}function U(O,S,x){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=yr(""+S,O.mode,x),S.return=O,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case Y:return x=pu(S.type,S.key,S.props,null,O.mode,x),va(x,S),x.return=O,x;case J:return S=vr(S,O.mode,x),S.return=O,S;case K:return S=Pn(S),U(O,S,x)}if(st(S)||tt(S))return S=Vn(S,O.mode,x,null),S.return=O,S;if(typeof S.then=="function")return U(O,Eu(S),x);if(S.$$typeof===Tt)return U(O,Su(O,S),x);Tu(O,S)}return null}function A(O,S,x,R){var nt=S!==null?S.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return nt!==null?null:h(O,S,""+x,R);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Y:return x.key===nt?g(O,S,x,R):null;case J:return x.key===nt?E(O,S,x,R):null;case K:return x=Pn(x),A(O,S,x,R)}if(st(x)||tt(x))return nt!==null?null:C(O,S,x,R,null);if(typeof x.then=="function")return A(O,S,Eu(x),R);if(x.$$typeof===Tt)return A(O,S,Su(O,x),R);Tu(O,x)}return null}function j(O,S,x,R,nt){if(typeof R=="string"&&R!==""||typeof R=="number"||typeof R=="bigint")return O=O.get(x)||null,h(S,O,""+R,nt);if(typeof R=="object"&&R!==null){switch(R.$$typeof){case Y:return O=O.get(R.key===null?x:R.key)||null,g(S,O,R,nt);case J:return O=O.get(R.key===null?x:R.key)||null,E(S,O,R,nt);case K:return R=Pn(R),j(O,S,x,R,nt)}if(st(R)||tt(R))return O=O.get(x)||null,C(S,O,R,nt,null);if(typeof R.then=="function")return j(O,S,x,Eu(R),nt);if(R.$$typeof===Tt)return j(O,S,x,Su(S,R),nt);Tu(S,R)}return null}function F(O,S,x,R){for(var nt=null,Ot=null,W=S,ft=S=0,gt=null;W!==null&&ft<x.length;ft++){W.index>ft?(gt=W,W=null):gt=W.sibling;var _t=A(O,W,x[ft],R);if(_t===null){W===null&&(W=gt);break}t&&W&&_t.alternate===null&&e(O,W),S=r(_t,S,ft),Ot===null?nt=_t:Ot.sibling=_t,Ot=_t,W=gt}if(ft===x.length)return n(O,W),bt&&$e(O,ft),nt;if(W===null){for(;ft<x.length;ft++)W=U(O,x[ft],R),W!==null&&(S=r(W,S,ft),Ot===null?nt=W:Ot.sibling=W,Ot=W);return bt&&$e(O,ft),nt}for(W=l(W);ft<x.length;ft++)gt=j(W,O,ft,x[ft],R),gt!==null&&(t&&gt.alternate!==null&&W.delete(gt.key===null?ft:gt.key),S=r(gt,S,ft),Ot===null?nt=gt:Ot.sibling=gt,Ot=gt);return t&&W.forEach(function(Qn){return e(O,Qn)}),bt&&$e(O,ft),nt}function lt(O,S,x,R){if(x==null)throw Error(s(151));for(var nt=null,Ot=null,W=S,ft=S=0,gt=null,_t=x.next();W!==null&&!_t.done;ft++,_t=x.next()){W.index>ft?(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,ft),Ot===null?nt=Qn:Ot.sibling=Qn,Ot=Qn,W=gt}if(_t.done)return n(O,W),bt&&$e(O,ft),nt;if(W===null){for(;!_t.done;ft++,_t=x.next())_t=U(O,_t.value,R),_t!==null&&(S=r(_t,S,ft),Ot===null?nt=_t:Ot.sibling=_t,Ot=_t);return bt&&$e(O,ft),nt}for(W=l(W);!_t.done;ft++,_t=x.next())_t=j(W,O,ft,_t.value,R),_t!==null&&(t&&_t.alternate!==null&&W.delete(_t.key===null?ft:_t.key),S=r(_t,S,ft),Ot===null?nt=_t:Ot.sibling=_t,Ot=_t);return t&&W.forEach(function(Np){return e(O,Np)}),bt&&$e(O,ft),nt}function Ct(O,S,x,R){if(typeof x=="object"&&x!==null&&x.type===Q&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Y:t:{for(var nt=x.key;S!==null;){if(S.key===nt){if(nt=x.type,nt===Q){if(S.tag===7){n(O,S.sibling),R=u(S,x.props.children),R.return=O,O=R;break t}}else if(S.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===K&&Pn(nt)===S.type){n(O,S.sibling),R=u(S,x.props),va(R,x),R.return=O,O=R;break t}n(O,S);break}else e(O,S);S=S.sibling}x.type===Q?(R=Vn(x.props.children,O.mode,R,x.key),R.return=O,O=R):(R=pu(x.type,x.key,x.props,null,O.mode,R),va(R,x),R.return=O,O=R)}return o(O);case J:t:{for(nt=x.key;S!==null;){if(S.key===nt)if(S.tag===4&&S.stateNode.containerInfo===x.containerInfo&&S.stateNode.implementation===x.implementation){n(O,S.sibling),R=u(S,x.children||[]),R.return=O,O=R;break t}else{n(O,S);break}else e(O,S);S=S.sibling}R=vr(x,O.mode,R),R.return=O,O=R}return o(O);case K:return x=Pn(x),Ct(O,S,x,R)}if(st(x))return F(O,S,x,R);if(tt(x)){if(nt=tt(x),typeof nt!="function")throw Error(s(150));return x=nt.call(x),lt(O,S,x,R)}if(typeof x.then=="function")return Ct(O,S,Eu(x),R);if(x.$$typeof===Tt)return Ct(O,S,Su(O,x),R);Tu(O,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,S!==null&&S.tag===6?(n(O,S.sibling),R=u(S,x),R.return=O,O=R):(n(O,S),R=yr(x,O.mode,R),R.return=O,O=R),o(O)):n(O,S)}return function(O,S,x,R){try{ya=0;var nt=Ct(O,S,x,R);return Dl=null,nt}catch(W){if(W===Cl||W===_u)throw W;var Ot=ge(29,W,null,O.mode);return Ot.lanes=R,Ot.return=O,Ot}finally{}}}var In=Jo(!0),Fo=Jo(!1),gn=!1;function jr(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function zr(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,(Et&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),Do(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,ws(t,n)}}function Mr(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 o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};r===null?u=r=o:r=r.next=o,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=Ml;if(t!==null)throw t}}function ga(t,e,n,l){Cr=!1;var u=t.updateQueue;gn=!1;var r=u.firstBaseUpdate,o=u.lastBaseUpdate,h=u.shared.pending;if(h!==null){u.shared.pending=null;var g=h,E=g.next;g.next=null,o===null?r=E:o.next=E,o=g;var C=t.alternate;C!==null&&(C=C.updateQueue,h=C.lastBaseUpdate,h!==o&&(h===null?C.firstBaseUpdate=E:h.next=E,C.lastBaseUpdate=g))}if(r!==null){var U=u.baseState;o=0,C=E=g=null,h=r;do{var A=h.lane&-536870913,j=A!==h.lane;if(j?(pt&A)===A:(l&A)===A){A!==0&&A===zl&&(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,j&&(t.flags|=8192),j=u.callbacks,j===null?u.callbacks=[A]:j.push(A))}else j={lane:A,tag:h.tag,payload:h.payload,callback:h.callback,next:null},C===null?(E=C=j,g=U):C=C.next=j,o|=A;if(h=h.next,h===null){if(h=u.shared.pending,h===null)break;j=h,h=j.next,j.next=null,u.lastBaseUpdate=j,u.shared.pending=null}}while(!0);C===null&&(g=U),u.baseState=g,u.firstBaseUpdate=E,u.lastBaseUpdate=C,r===null&&(u.shared.lanes=0),Tn|=o,t.lanes=o,t.memoizedState=U}}function ko(t,e){if(typeof t!="function")throw Error(s(191,t));t.call(e)}function $o(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)ko(n[t],e)}var Rl=b(null),Au=b(0);function Po(t,e){t=cn,w(Au,t),w(Rl,e),cn=t|e.baseLanes}function Dr(){w(Au,cn),w(Rl,Rl.current)}function Rr(){cn=Au.current,D(Rl),D(Au)}var be=b(null),Re=null;function On(t){var e=t.alternate;w(Yt,Yt.current&1),w(be,t),Re===null&&(e===null||Rl.current!==null||e.memoizedState!==null)&&(Re=t)}function Ur(t){w(Yt,Yt.current),w(be,t),Re===null&&(Re=t)}function Wo(t){t.tag===22?(w(Yt,Yt.current),w(be,t),Re===null&&(Re=t)):_n()}function _n(){w(Yt,Yt.current),w(be,be.current)}function Se(t){D(be),Re===t&&(Re=null),D(Yt)}var Yt=b(0);function ju(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,ot=null,zt=null,Kt=null,zu=!1,Ul=!1,tl=!1,Mu=0,ba=0,ql=null,Am=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(!pe(t[n],e[n]))return!1;return!0}function Qr(t,e,n,l,u,r){return Ie=r,ot=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,T.H=t===null||t.memoizedState===null?Nf:$r,tl=!1,r=n(l,u),tl=!1,Ul&&(r=tf(e,n,l,u)),Io(t),r}function Io(t){T.H=_a;var e=zt!==null&&zt.next!==null;if(Ie=0,Kt=zt=ot=null,zu=!1,ba=0,ql=null,e)throw Error(s(300));t===null||Zt||(t=t.dependencies,t!==null&&bu(t)&&(Zt=!0))}function tf(t,e,n,l){ot=t;var u=0;do{if(Ul&&(ql=null),ba=0,Ul=!1,25<=u)throw Error(s(301));if(u+=1,Kt=zt=null,t.updateQueue!=null){var r=t.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}T.H=Hf,r=e(n,l)}while(Ul);return r}function jm(){var t=T.H,e=t.useState()[0];return e=typeof e.then=="function"?Sa(e):e,t=t.useState()[0],(zt!==null?zt.memoizedState:null)!==t&&(ot.flags|=1024),e}function Nr(){var t=Mu!==0;return Mu=0,t}function Hr(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function wr(t){if(zu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}zu=!1}Ie=0,Kt=zt=ot=null,Ul=!1,ba=Mu=0,ql=null}function ue(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Kt===null?ot.memoizedState=Kt=t:Kt=Kt.next=t,Kt}function Gt(){if(zt===null){var t=ot.alternate;t=t!==null?t.memoizedState:null}else t=zt.next;var e=Kt===null?ot.memoizedState:Kt.next;if(e!==null)Kt=e,zt=t;else{if(t===null)throw ot.alternate===null?Error(s(467)):Error(s(310));zt=t,t={memoizedState:zt.memoizedState,baseState:zt.baseState,baseQueue:zt.baseQueue,queue:zt.queue,next:null},Kt===null?ot.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=Ko(ql,t,e),e=ot,(Kt===null?e.memoizedState:Kt.next)===null&&(e=e.alternate,T.H=e===null||e.memoizedState===null?Nf:$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=ot.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var l=ot.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(),ot.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,zt,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 o=u.next;u.next=r.next,r.next=o}e.baseQueue=u=r,l.pending=null}if(r=t.baseState,u===null)t.memoizedState=r;else{e=u.next;var h=o=null,g=null,E=e,C=!1;do{var U=E.lane&-536870913;if(U!==E.lane?(pt&U)===U:(Ie&U)===U){var A=E.revertLane;if(A===0)g!==null&&(g=g.next={lane:0,revertLane:0,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),U===zl&&(C=!0);else if((Ie&A)===A){E=E.next,A===zl&&(C=!0);continue}else U={lane:0,revertLane:E.revertLane,gesture:null,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},g===null?(h=g=U,o=r):g=g.next=U,ot.lanes|=A,Tn|=A;U=E.action,tl&&n(r,U),r=E.hasEagerState?E.eagerState:n(r,U)}else A={lane:U,revertLane:E.revertLane,gesture:E.gesture,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null},g===null?(h=g=A,o=r):g=g.next=A,ot.lanes|=U,Tn|=U;E=E.next}while(E!==null&&E!==e);if(g===null?o=r:g.next=h,!pe(r,t.memoizedState)&&(Zt=!0,C&&(n=Ml,n!==null)))throw n;t.memoizedState=r,t.baseState=o,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 o=u=u.next;do r=t(r,o.action),o=o.next;while(o!==u);pe(r,e.memoizedState)||(Zt=!0),e.memoizedState=r,e.baseQueue===null&&(e.baseState=r),n.lastRenderedState=r}return[r,l]}function ef(t,e,n){var l=ot,u=Gt(),r=bt;if(r){if(n===void 0)throw Error(s(407));n=n()}else n=e();var o=!pe((zt||u).memoizedState,n);if(o&&(u.memoizedState=n,Zt=!0),u=u.queue,Kr(af.bind(null,l,u,t),[t]),u.getSnapshot!==e||o||Kt!==null&&Kt.memoizedState.tag&1){if(l.flags|=2048,Ql(9,{destroy:void 0},lf.bind(null,l,u,n,e),null),Dt===null)throw Error(s(349));r||(Ie&127)!==0||nf(l,e,n)}return n}function nf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ot.updateQueue,e===null?(e=Cu(),ot.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function lf(t,e,n,l){e.value=n,e.getSnapshot=l,uf(e)&&rf(t)}function af(t,e,n){return n(function(){uf(e)&&rf(t)})}function uf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!pe(t,n)}catch{return!0}}function rf(t){var e=Zn(t,2);e!==null&&he(e,t,2)}function Lr(t){var e=ue();if(typeof t=="function"){var n=t;if(t=n(),tl){fn(!0);try{n()}finally{fn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:t},e}function cf(t,e,n,l){return t.baseState=n,Yr(t,zt,typeof l=="function"?l:tn)}function zm(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(o){r.listeners.push(o)}};T.T!==null?n(!0):r.isTransition=!1,l(r),n=e.pending,n===null?(r.next=e.pending=r,sf(e,r)):(r.next=n.next,e.pending=n.next=r)}}function sf(t,e){var n=e.action,l=e.payload,u=t.state;if(e.isTransition){var r=T.T,o={};T.T=o;try{var h=n(u,l),g=T.S;g!==null&&g(o,h),of(t,e,h)}catch(E){Xr(t,e,E)}finally{r!==null&&o.types!==null&&(r.types=o.types),T.T=r}}else try{r=n(u,l),of(t,e,r)}catch(E){Xr(t,e,E)}}function of(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(l){ff(t,e,l)},function(l){return Xr(t,e,l)}):ff(t,e,n)}function ff(t,e,n){e.status="fulfilled",e.value=n,df(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,sf(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,df(e),e=e.next;while(e!==l)}t.action=null}function df(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function hf(t,e){return e}function yf(t,e){if(bt){var n=Dt.formState;if(n!==null){t:{var l=ot;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=ue(),n.memoizedState=n.baseState=e,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hf,lastRenderedState:e},n.queue=l,n=Uf.bind(null,ot,l),l.dispatch=n,l=Lr(!1),r=kr.bind(null,ot,!1,l.queue),l=ue(),u={state:e,dispatch:null,action:t,pending:null},l.queue=u,n=zm.bind(null,ot,u,r,n),u.dispatch=n,l.memoizedState=t,[e,n,!1]}function vf(t){var e=Gt();return mf(e,zt,t)}function mf(t,e,n){if(e=Yr(t,e,hf)[0],t=Ru(tn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var l=Sa(e)}catch(o){throw o===Cl?_u:o}else l=e;e=Gt();var u=e.queue,r=u.dispatch;return n!==e.memoizedState&&(ot.flags|=2048,Ql(9,{destroy:void 0},Mm.bind(null,u,n),null)),[l,r,t]}function Mm(t,e){t.action=e}function pf(t){var e=Gt(),n=zt;if(n!==null)return mf(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=ot.updateQueue,e===null&&(e=Cu(),ot.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 gf(){return Gt().memoizedState}function Uu(t,e,n,l){var u=ue();ot.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;zt!==null&&l!==null&&qr(l,zt.memoizedState.deps)?u.memoizedState=Ql(e,r,n,l):(ot.flags|=t,u.memoizedState=Ql(1|e,r,n,l))}function bf(t,e){Uu(8390656,8,t,e)}function Kr(t,e){qu(2048,8,t,e)}function Cm(t){ot.flags|=4;var e=ot.updateQueue;if(e===null)e=Cu(),ot.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function Sf(t){var e=Gt().memoizedState;return Cm({ref:e,nextImpl:t}),function(){if((Et&2)!==0)throw Error(s(440));return e.impl.apply(void 0,arguments)}}function Of(t,e){return qu(4,2,t,e)}function _f(t,e){return qu(4,4,t,e)}function xf(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 Ef(t,e,n){n=n!=null?n.concat([t]):null,qu(4,4,xf.bind(null,e,t),n)}function Zr(){}function Tf(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 Af(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){fn(!0);try{t()}finally{fn(!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=jd(),ot.lanes|=t,Tn|=t,n)}function jf(t,e,n,l){return pe(n,e)?n:Rl.current!==null?(t=Vr(t,n,l),pe(t,e)||(Zt=!0),t):(Ie&42)===0||(Ie&1073741824)!==0&&(pt&261930)===0?(Zt=!0,t.memoizedState=n):(t=jd(),ot.lanes|=t,Tn|=t,e)}function zf(t,e,n,l,u){var r=H.p;H.p=r!==0&&8>r?r:8;var o=T.T,h={};T.T=h,kr(t,!1,e,n);try{var g=u(),E=T.S;if(E!==null&&E(h,g),g!==null&&typeof g=="object"&&typeof g.then=="function"){var C=Tm(g,l);Oa(t,e,C,xe(t))}else Oa(t,e,l,xe(t))}catch(U){Oa(t,e,{then:function(){},status:"rejected",reason:U},xe())}finally{H.p=r,o!==null&&h.types!==null&&(o.types=h.types),T.T=o}}function Dm(){}function Jr(t,e,n,l){if(t.tag!==5)throw Error(s(476));var u=Mf(t).queue;zf(t,u,e,Z,n===null?Dm:function(){return Cf(t),n(l)})}function Mf(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:tn,lastRenderedState:Z},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 Cf(t){var e=Mf(t);e.next===null&&(e=t.alternate.memoizedState),Oa(t,e.next.queue,{},xe())}function Fr(){return Wt(wa)}function Df(){return Gt().memoizedState}function Rf(){return Gt().memoizedState}function Rm(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=xe();t=bn(n);var l=Sn(e,t,n);l!==null&&(he(l,e,n),ma(l,e,n)),e={cache:xr()},t.payload=e;return}e=e.return}}function Um(t,e,n){var l=xe();n={lane:l,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Qu(t)?qf(e,n):(n=dr(t,e,n,l),n!==null&&(he(n,t,l),Qf(n,e,l)))}function Uf(t,e,n){var l=xe();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))qf(e,u);else{var r=t.alternate;if(t.lanes===0&&(r===null||r.lanes===0)&&(r=e.lastRenderedReducer,r!==null))try{var o=e.lastRenderedState,h=r(o,n);if(u.hasEagerState=!0,u.eagerState=h,pe(h,o))return vu(t,e,u,0),Dt===null&&yu(),!1}catch{}finally{}if(n=dr(t,e,u,l),n!==null)return he(n,t,l),Qf(n,e,l),!0}return!1}function kr(t,e,n,l){if(l={lane:2,revertLane:jc(),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&&he(e,t,2)}function Qu(t){var e=t.alternate;return t===ot||e!==null&&e===ot}function qf(t,e){Ul=zu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Qf(t,e,n){if((n&4194048)!==0){var l=e.lanes;l&=t.pendingLanes,n|=l,e.lanes=n,ws(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 Nf={readContext:Wt,use:Du,useCallback:function(t,e){return ue().memoizedState=[t,e===void 0?null:e],t},useContext:Wt,useEffect:bf,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,Uu(4194308,4,xf.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=ue();e=e===void 0?null:e;var l=t();if(tl){fn(!0);try{t()}finally{fn(!1)}}return n.memoizedState=[l,e],l},useReducer:function(t,e,n){var l=ue();if(n!==void 0){var u=n(e);if(tl){fn(!0);try{n(e)}finally{fn(!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=Um.bind(null,ot,t),[l.memoizedState,t]},useRef:function(t){var e=ue();return t={current:t},e.memoizedState=t},useState:function(t){t=Lr(t);var e=t.queue,n=Uf.bind(null,ot,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Zr,useDeferredValue:function(t,e){var n=ue();return Vr(n,t,e)},useTransition:function(){var t=Lr(!1);return t=zf.bind(null,ot,t.queue,!0,!1),ue().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var l=ot,u=ue();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||nf(l,e,n)}u.memoizedState=n;var r={value:n,getSnapshot:e};return u.queue=r,bf(af.bind(null,l,r,t),[t]),l.flags|=2048,Ql(9,{destroy:void 0},lf.bind(null,l,r,n,e),null),n},useId:function(){var t=ue(),e=Dt.identifierPrefix;if(bt){var n=Ge,l=Ye;n=(l&~(1<<32-me(l)-1)).toString(32)+n,e="_"+e+"R_"+n,n=Mu++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Am++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Fr,useFormState:yf,useActionState:yf,useOptimistic:function(t){var e=ue();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,ot,!0,n),n.dispatch=e,[t,e]},useMemoCache:Br,useCacheRefresh:function(){return ue().memoizedState=Rm.bind(null,ot)},useEffectEvent:function(t){var e=ue(),n={impl:t};return e.memoizedState=n,function(){if((Et&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},$r={readContext:Wt,use:Du,useCallback:Tf,useContext:Wt,useEffect:Kr,useImperativeHandle:Ef,useInsertionEffect:Of,useLayoutEffect:_f,useMemo:Af,useReducer:Ru,useRef:gf,useState:function(){return Ru(tn)},useDebugValue:Zr,useDeferredValue:function(t,e){var n=Gt();return jf(n,zt.memoizedState,t,e)},useTransition:function(){var t=Ru(tn)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:Sa(t),e]},useSyncExternalStore:ef,useId:Df,useHostTransitionStatus:Fr,useFormState:vf,useActionState:vf,useOptimistic:function(t,e){var n=Gt();return cf(n,zt,t,e)},useMemoCache:Br,useCacheRefresh:Rf};$r.useEffectEvent=Sf;var Hf={readContext:Wt,use:Du,useCallback:Tf,useContext:Wt,useEffect:Kr,useImperativeHandle:Ef,useInsertionEffect:Of,useLayoutEffect:_f,useMemo:Af,useReducer:Gr,useRef:gf,useState:function(){return Gr(tn)},useDebugValue:Zr,useDeferredValue:function(t,e){var n=Gt();return zt===null?Vr(n,t,e):jf(n,zt.memoizedState,t,e)},useTransition:function(){var t=Gr(tn)[0],e=Gt().memoizedState;return[typeof t=="boolean"?t:Sa(t),e]},useSyncExternalStore:ef,useId:Df,useHostTransitionStatus:Fr,useFormState:pf,useActionState:pf,useOptimistic:function(t,e){var n=Gt();return zt!==null?cf(n,zt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:Br,useCacheRefresh:Rf};Hf.useEffectEvent=Sf;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=xe(),u=bn(l);u.payload=e,n!=null&&(u.callback=n),e=Sn(t,u,l),e!==null&&(he(e,t,l),ma(e,t,l))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var l=xe(),u=bn(l);u.tag=1,u.payload=e,n!=null&&(u.callback=n),e=Sn(t,u,l),e!==null&&(he(e,t,l),ma(e,t,l))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=xe(),l=bn(n);l.tag=2,e!=null&&(l.callback=e),e=Sn(t,l,n),e!==null&&(he(e,t,n),ma(e,t,n))}};function wf(t,e,n,l,u,r,o){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,r,o):e.prototype&&e.prototype.isPureReactComponent?!ca(n,l)||!ca(u,r):!0}function Bf(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 Yf(t){hu(t)}function Gf(t){console.error(t)}function Lf(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 Xf(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 Kf(t){return t=bn(t),t.tag=3,t}function Zf(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(){Xf(e,n,l)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(t.callback=function(){Xf(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 qm(t,e,n,l,u){if(n.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(e=n.alternate,e!==null&&jl(e,n,u,!0),n=be.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===xu?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([l]):e.add(l),Ec(t,l,u)),!1;case 22:return n.flags|=65536,l===xu?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)),Ec(t,l,u)),!1}throw Error(s(435,n.tag))}return Ec(t,l,u),Fu(),!1}if(bt)return e=be.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,l!==gr&&(t=Error(s(422),{cause:l}),fa(ze(t,n)))):(l!==gr&&(e=Error(s(423),{cause:l}),fa(ze(e,n))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,l=ze(l,n),u=Ir(t.stateNode,l,u),Mr(t,u),Ht!==4&&(Ht=2)),!1;var r=Error(s(520),{cause:l});if(r=ze(r,n),Ca===null?Ca=[r]:Ca.push(r),Ht!==4&&(Ht=2),e===null)return!0;l=ze(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),Mr(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=Kf(u),Zf(u,t,n,l),Mr(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?Fo(e,null,n,l):In(e,t.child,n,l)}function Vf(t,e,n,l,u){n=n.render;var r=e.ref;if("ref"in l){var o={};for(var h in l)h!=="ref"&&(o[h]=l[h])}else o=l;return kn(e),l=Qr(t,e,n,o,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 Jf(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,Ff(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 o=r.memoizedProps;if(n=n.compare,n=n!==null?n:ca,n(o,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 Ff(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 kf(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 $f(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?Po(e,r):Dr(),Wo(e);else return l=e.lanes=536870912,$f(t,e,r!==null?r.baseLanes|n:n,n,l)}else r!==null?(Ou(e,r.cachePool),Po(e,r),_n(),e.memoizedState=null):(t!==null&&Ou(e,null),Dr(),_n());return It(t,e,u,n),e.child}function xa(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function $f(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(),Wo(e),t!==null&&jl(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 Pf(t,e,n){return In(e,t.child,null,n),t=Hu(e,e.pendingProps),t.flags|=2,Se(e),e.memoizedState=null,t}function Qm(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,xa(null,t);if(Ur(e),(t=Rt)?(t=sh(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=Uo(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 o=r.dehydrated;if(Ur(e),u)if(e.flags&256)e.flags&=-257,e=Pf(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||jl(t,e,n,!1),u=(n&t.childLanes)!==0,Zt||u){if(l=Dt,l!==null&&(o=Bs(l,n),o!==0&&o!==r.retryLane))throw r.retryLane=o,Zn(t,o),he(l,t,o),tc;Fu(),e=Pf(t,e,n)}else t=r.treeContext,Rt=Ue(o.nextSibling),Pt=e,bt=!0,vn=null,De=!1,t!==null&&No(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 Wf(t,e,n,l,u,r){return kn(e),e.updateQueue=null,n=tf(e,l,n,u),Io(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 If(t,e,n,l,u){if(kn(e),e.stateNode===null){var r=xl,o=n.contextType;typeof o=="object"&&o!==null&&(r=Wt(o)),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={},jr(e),o=n.contextType,r.context=typeof o=="object"&&o!==null?Wt(o):xl,r.state=e.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(Pr(e,n,o,l),r.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(o=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),o!==r.state&&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 E=r.context,C=n.contextType;o=xl,typeof C=="object"&&C!==null&&(o=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||E!==o)&&Bf(e,r,l,o),gn=!1;var A=e.memoizedState;r.state=A,ga(e,l,r,u),pa(),E=e.memoizedState,h||A!==E||gn?(typeof U=="function"&&(Pr(e,n,U,l),E=e.memoizedState),(g=gn||wf(e,n,g,l,A,E,o))?(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=E),r.props=l,r.state=E,r.context=o,l=g):(typeof r.componentDidMount=="function"&&(e.flags|=4194308),l=!1)}else{r=e.stateNode,zr(t,e),o=e.memoizedProps,C=el(n,o),r.props=C,U=e.pendingProps,A=r.context,E=n.contextType,g=xl,typeof E=="object"&&E!==null&&(g=Wt(E)),h=n.getDerivedStateFromProps,(E=typeof h=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(o!==U||A!==g)&&Bf(e,r,l,g),gn=!1,A=e.memoizedState,r.state=A,ga(e,l,r,u),pa();var j=e.memoizedState;o!==U||A!==j||gn||t!==null&&t.dependencies!==null&&bu(t.dependencies)?(typeof h=="function"&&(Pr(e,n,h,l),j=e.memoizedState),(C=gn||wf(e,n,C,l,A,j,g)||t!==null&&t.dependencies!==null&&bu(t.dependencies))?(E||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(l,j,g),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(l,j,g)),typeof r.componentDidUpdate=="function"&&(e.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof r.componentDidUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=1024),e.memoizedProps=l,e.memoizedState=j),r.props=l,r.state=j,r.context=g,l=C):(typeof r.componentDidUpdate!="function"||o===t.memoizedProps&&A===t.memoizedState||(e.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||o===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 td(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:Lo()}}function ac(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=_e),t}function ed(t,e,n){var l=e.pendingProps,u=!1,r=(e.flags&128)!==0,o;if((o=r)||(o=t!==null&&t.memoizedState===null?!1:(Yt.current&2)!==0),o&&(u=!0,e.flags&=-129),o=(e.flags&32)!==0,e.flags&=-33,t===null){if(bt){if(u?On(e):_n(),(t=Rt)?(t=sh(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=Uo(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,o,n),e.memoizedState=nc,xa(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,o,n),e.memoizedState=nc,e=xa(null,l));else if(On(e),Yc(h)){if(o=h.nextSibling&&h.nextSibling.dataset,o)var E=o.dgst;o=E,l=Error(s(419)),l.stack="",l.digest=o,fa({value:l,source:null,stack:null}),e=ic(t,e,n)}else if(Zt||jl(t,e,n,!1),o=(n&t.childLanes)!==0,Zt||o){if(o=Dt,o!==null&&(l=Bs(o,n),l!==0&&l!==g.retryLane))throw g.retryLane=l,Zn(t,l),he(o,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&&No(e,t),e=uc(e,l.children),e.flags|=4096);return e}return u?(_n(),h=l.fallback,u=e.mode,g=t.child,E=g.sibling,l=ke(g,{mode:"hidden",children:l.children}),l.subtreeFlags=g.subtreeFlags&65011712,E!==null?h=ke(E,h):(h=Vn(h,u,n,null),h.flags|=2),h.return=e,l.return=e,l.sibling=h,e.child=l,xa(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=Lo(),h={baseLanes:h.baseLanes|n,cachePool:u}),l.memoizedState=h,l.childLanes=ac(t,o,n),e.memoizedState=nc,xa(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&&(o=e.deletions,o===null?(e.deletions=[t],e.flags|=16):o.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=ge(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 nd(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 o=t.memoizedState;o===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:l,tail:n,tailMode:u,treeForkCount:r}:(o.isBackwards=e,o.rendering=null,o.renderingStartTime=0,o.last=l,o.tail=n,o.tailMode=u,o.treeForkCount=r)}function ld(t,e,n){var l=e.pendingProps,u=l.revealOrder,r=l.tail;l=l.children;var o=Yt.current,h=(o&2)!==0;if(h?(o=o&1|2,e.flags|=128):o&=1,w(Yt,o),It(t,e,l,n),l=bt?oa:0,!h&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&nd(t,n,e);else if(t.tag===19)nd(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&&ju(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&&ju(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(jl(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 Nm(t,e,n){switch(e.tag){case 3:ae(e,e.stateNode.containerInfo),pn(e,Xt,t.memoizedState.cache),Jn();break;case 27:case 5:kl(e);break;case 4:ae(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?ed(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||(jl(t,e,n,!1),l=(n&e.childLanes)!==0),u){if(l)return ld(t,e,n);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),w(Yt,Yt.current),l)break;return null;case 22:return e.lanes=0,kf(t,e,n,e.pendingProps);case 24:pn(e,Xt,t.memoizedState.cache)}return en(t,e,n)}function ad(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,Nm(t,e,n);Zt=(t.flags&131072)!==0}else Zt=!1,bt&&(e.flags&1048576)!==0&&Qo(e,oa,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=If(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=Vf(null,e,t,l,n);break t}else if(u===M){e.tag=14,e=Jf(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),If(t,e,l,u,n);case 3:t:{if(ae(e,e.stateNode.containerInfo),t===null)throw Error(s(387));l=e.pendingProps;var r=e.memoizedState;u=r.element,zr(t,e),ga(e,l,null,n);var o=e.memoizedState;if(l=o.cache,pn(e,Xt,l),l!==r.cache&&_r(e,[Xt],n,!0),pa(),l=o.element,r.isDehydrated)if(r={element:l,isDehydrated:!1,cache:o.cache},e.updateQueue.baseState=r,e.memoizedState=r,e.flags&256){e=td(t,e,l,n);break t}else if(l!==u){u=ze(Error(s(424)),e),fa(u),e=td(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=Fo(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=vh(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[re]=t,te(l,n,t),Ft(l),e.stateNode=l):e.memoizedState=vh(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return kl(e),t===null&&bt&&(l=e.stateNode=dh(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=dp(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,o=t!==null?t.memoizedProps:null,l=r.children,Nc(u,r)?l=null:o!==null&&Nc(u,o)&&(e.flags|=32),e.memoizedState!==null&&(u=Qr(t,e,jm,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=hp(n,e.pendingProps,De),n!==null?(e.stateNode=n,Pt=e,Rt=null,t=!0):t=!1),t||mn(e)),null;case 13:return ed(t,e,n);case 4:return ae(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 Vf(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 Jf(t,e,e.type,e.pendingProps,n);case 15:return Ff(t,e,e.type,e.pendingProps,n);case 19:return ld(t,e,n);case 31:return Qm(t,e,n);case 22:return kf(t,e,n,e.pendingProps);case 24:return kn(e),l=Wt(Xt),t===null?(u=Tr(),u===null&&(u=Dt,r=xr(),u.pooledCache=r,r.refCount++,r!==null&&(u.pooledCacheLanes|=n),u=r),e.memoizedState={parent:l,cache:u},jr(e),pn(e,Xt,u)):((t.lanes&n)!==0&&(zr(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(Dd())t.flags|=8192;else throw Wn=xu,Ar}else t.flags&=-16777217}function ud(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!Sh(e))if(Dd())t.flags|=8192;else throw Wn=xu,Ar}function Yu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Ns():536870912,t.lanes|=e,Bl|=e)}function Ea(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 Hm(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),ud(e,r)):(Ut(e),sc(e,u,null,l,n))):r?r!==t.memoizedState?(nn(e),Ut(e),ud(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=B.current,Al(e)?Ho(e):(t=dh(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=B.current,Al(e))Ho(e);else{var o=ei(rt.current);switch(r){case 1:r=o.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:r=o.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":r=o.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":r=o.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;case"script":r=o.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild);break;case"select":r=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?r.multiple=!0:l.size&&(r.size=l.size);break;default:r=typeof l.is=="string"?o.createElement(u,{is:l.is}):o.createElement(u)}}r[$t]=e,r[re]=l;t:for(o=e.child;o!==null;){if(o.tag===5||o.tag===6)r.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===e)break t;for(;o.sibling===null;){if(o.return===null||o.return===e)break t;o=o.return}o.sibling.return=o.return,o=o.sibling}e.stateNode=r;t:switch(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||eh(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?(Se(e),e):(Se(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?(Se(e),e):(Se(e),null)}return Se(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)Ea(l,!1);else{if(Ht!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(r=ju(t),r!==null){for(e.flags|=128,Ea(l,!1),t=r.updateQueue,e.updateQueue=t,Yu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Ro(n,t),n=n.sibling;return w(Yt,Yt.current&1|2),bt&&$e(e,l.treeForkCount),e.child}t=t.sibling}l.tail!==null&&ye()>Zu&&(e.flags|=128,u=!0,Ea(l,!1),e.lanes=4194304)}else{if(!u)if(t=ju(r),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,Yu(e,t),Ea(l,!0),l.tail===null&&l.tailMode==="hidden"&&!r.alternate&&!bt)return Ut(e),null}else 2*ye()-l.renderingStartTime>Zu&&n!==536870912&&(e.flags|=128,u=!0,Ea(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=ye(),t.sibling=null,n=Yt.current,w(Yt,u?n&1|2:n&1),bt&&$e(e,l.treeForkCount),t):(Ut(e),null);case 22:case 23:return Se(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 wm(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(Se(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(Se(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 Se(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 id(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&&Se(e);break;case 13:Se(e);break;case 19:D(Yt);break;case 10:We(e.type);break;case 22:case 23:Se(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,o=n.inst;l=r(),o.destroy=l}n=n.next}while(n!==u)}}catch(h){jt(e,e.return,h)}}function xn(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 o=l.inst,h=o.destroy;if(h!==void 0){o.destroy=void 0,u=e;var g=n,E=h;try{E()}catch(C){jt(u,g,C)}}}l=l.next}while(l!==r)}}catch(C){jt(e,e.return,C)}}function rd(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{$o(e,n)}catch(l){jt(t,t.return,l)}}}function cd(t,e,n){n.props=el(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(l){jt(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){jt(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){jt(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){jt(t,e,u)}else n.current=null}function sd(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){jt(t,t.return,u)}}function oc(t,e,n){try{var l=t.stateNode;ip(l,t.type,n,e),l[re]=e}catch(u){jt(t,t.return,u)}}function od(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Cn(t.type)||t.tag===4}function fc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||od(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[re]=n}catch(r){jt(t,t.return,r)}}var ln=!1,Vt=!1,hc=!1,dd=typeof WeakSet=="function"?WeakSet:Set,kt=null;function Bm(t,e){if(t=t.containerInfo,qc=ci,t=xo(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 o=0,h=-1,g=-1,E=0,C=0,U=t,A=null;e:for(;;){for(var j;U!==n||u!==0&&U.nodeType!==3||(h=o+u),U!==r||l!==0&&U.nodeType!==3||(g=o+l),U.nodeType===3&&(o+=U.nodeValue.length),(j=U.firstChild)!==null;)A=U,U=j;for(;;){if(U===t)break e;if(A===n&&++E===u&&(h=o),A===r&&++C===l&&(g=o),(j=U.nextSibling)!==null)break;U=A,A=U.parentNode}U=j}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){jt(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 hd(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(o){jt(n,n.return,o)}else{var u=el(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(o){jt(n,n.return,o)}}l&64&&rd(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{$o(t,e)}catch(o){jt(n,n.return,o)}}break;case 27:e===null&&l&4&&fd(n);case 26:case 5:un(t,n),e===null&&l&4&&sd(n),l&512&&Aa(n,n.return);break;case 12:un(t,n);break;case 31:un(t,n),l&4&&md(t,n);break;case 13:un(t,n),l&4&&pd(t,n),l&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Fm.bind(null,n),yp(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 yd(t){var e=t.alternate;e!==null&&(t.alternate=null,yd(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,se=!1;function an(t,e,n){for(n=n.child;n!==null;)vd(t,e,n),n=n.sibling}function vd(t,e,n){if(ve&&typeof ve.onCommitFiberUnmount=="function")try{ve.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=se;Cn(n.type)&&(Qt=n.stateNode,se=!1),an(t,e,n),Qa(n.stateNode),Qt=l,se=u;break;case 5:Vt||Le(n,e);case 6:if(l=Qt,u=se,Qt=null,an(t,e,n),Qt=l,se=u,Qt!==null)if(se)try{(Qt.nodeType===9?Qt.body:Qt.nodeName==="HTML"?Qt.ownerDocument.body:Qt).removeChild(n.stateNode)}catch(r){jt(n,e,r)}else try{Qt.removeChild(n.stateNode)}catch(r){jt(n,e,r)}break;case 18:Qt!==null&&(se?(t=Qt,rh(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),Jl(t)):rh(Qt,n.stateNode));break;case 4:l=Qt,u=se,Qt=n.stateNode.containerInfo,se=!0,an(t,e,n),Qt=l,se=u;break;case 0:case 11:case 14:case 15:xn(2,n,e),Vt||xn(4,n,e),an(t,e,n);break;case 1:Vt||(Le(n,e),l=n.stateNode,typeof l.componentWillUnmount=="function"&&cd(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 md(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{Jl(t)}catch(n){jt(e,e.return,n)}}}function pd(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){jt(e,e.return,n)}}function Ym(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new dd),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new dd),e;default:throw Error(s(435,t.tag))}}function Lu(t,e){var n=Ym(t);e.forEach(function(l){if(!n.has(l)){n.add(l);var u=km.bind(null,t,l);l.then(u,u)}})}function oe(t,e){var n=e.deletions;if(n!==null)for(var l=0;l<n.length;l++){var u=n[l],r=t,o=e,h=o;t:for(;h!==null;){switch(h.tag){case 27:if(Cn(h.type)){Qt=h.stateNode,se=!1;break t}break;case 5:Qt=h.stateNode,se=!1;break t;case 3:case 4:Qt=h.stateNode.containerInfo,se=!0;break t}h=h.return}if(Qt===null)throw Error(s(160));vd(r,o,u),Qt=null,se=!1,r=u.alternate,r!==null&&(r.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)gd(e,t),e=e.sibling}var Ne=null;function gd(t,e){var n=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:oe(e,t),fe(t),l&4&&(xn(3,t,t.return),Ta(3,t),xn(5,t,t.return));break;case 1:oe(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(oe(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 o=gh("link","href",u).get(l+(n.href||""));if(o){for(var h=0;h<o.length;h++)if(r=o[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)){o.splice(h,1);break e}}r=u.createElement(l),te(r,l,n),u.head.appendChild(r);break;case"meta":if(o=gh("meta","content",u).get(l+(n.content||""))){for(h=0;h<o.length;h++)if(r=o[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)){o.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 bh(u,t.type,t.stateNode);else t.stateNode=ph(u,l,t.memoizedProps);else r!==l?(r===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):r.count--,l===null?bh(u,t.type,t.stateNode):ph(u,l,t.memoizedProps)):l===null&&t.stateNode!==null&&oc(t,t.memoizedProps,n.memoizedProps)}break;case 27:oe(e,t),fe(t),l&512&&(Vt||n===null||Le(n,n.return)),n!==null&&l&4&&oc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(oe(e,t),fe(t),l&512&&(Vt||n===null||Le(n,n.return)),t.flags&32){u=t.stateNode;try{ml(u,"")}catch(F){jt(t,t.return,F)}}l&4&&t.stateNode!=null&&(u=t.memoizedProps,oc(t,u,n!==null?n.memoizedProps:u)),l&1024&&(hc=!0);break;case 6:if(oe(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){jt(t,t.return,F)}}break;case 3:if(ai=null,u=Ne,Ne=ni(e.containerInfo),oe(e,t),Ne=u,fe(t),l&4&&n!==null&&n.memoizedState.isDehydrated)try{Jl(e.containerInfo)}catch(F){jt(t,t.return,F)}hc&&(hc=!1,bd(t));break;case 4:l=Ne,Ne=ni(t.stateNode.containerInfo),oe(e,t),fe(t),Ne=l;break;case 12:oe(e,t),fe(t);break;case 31:oe(e,t),fe(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Lu(t,l)));break;case 13:oe(e,t),fe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Ku=ye()),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,E=ln,C=Vt;if(ln=E||u,Vt=C||g,oe(e,t),Vt=C,ln=E,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)o=r.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.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){jt(g,g.return,F)}}}else if(e.tag===6){if(n===null){g=e;try{g.stateNode.nodeValue=u?"":g.memoizedProps}catch(F){jt(g,g.return,F)}}}else if(e.tag===18){if(n===null){g=e;try{var j=g.stateNode;u?ch(j,!0):ch(g.stateNode,!1)}catch(F){jt(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:oe(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:oe(e,t),fe(t)}}function fe(t){var e=t.flags;if(e&2){try{for(var n,l=t.return;l!==null;){if(od(l)){n=l;break}l=l.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var u=n.stateNode,r=fc(t);Gu(t,r,u);break;case 5:var o=n.stateNode;n.flags&32&&(ml(o,""),n.flags&=-33);var h=fc(t);Gu(t,h,o);break;case 3:case 4:var g=n.stateNode.containerInfo,E=fc(t);dc(t,E,g);break;default:throw Error(s(161))}}catch(C){jt(t,t.return,C)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function bd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;bd(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;)hd(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:xn(4,e,e.return),nl(e);break;case 1:Le(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&cd(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,o=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(E){jt(l,l.return,E)}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++)ko(g[u],h)}catch(E){jt(l,l.return,E)}}n&&o&64&&rd(r),Aa(r,r.return);break;case 27:fd(r);case 26:case 5:rn(u,r,n),n&&l===null&&o&4&&sd(r),Aa(r,r.return);break;case 12:rn(u,r,n);break;case 31:rn(u,r,n),n&&o&4&&md(u,r);break;case 13:rn(u,r,n),n&&o&4&&pd(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;)Sd(t,e,n,l),e=e.sibling}function Sd(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,o=r.id,h=r.onPostCommit;typeof h=="function"&&h(o,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(g){jt(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,o=e.alternate,e.memoizedState!==null?r._visibility&2?He(t,e,n,l):ja(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(o,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,o=e,h=n,g=l,E=o.flags;switch(o.tag){case 0:case 11:case 15:Nl(r,o,h,g,u),Ta(8,o);break;case 23:break;case 22:var C=o.stateNode;o.memoizedState!==null?C._visibility&2?Nl(r,o,h,g,u):ja(r,o):(C._visibility|=2,Nl(r,o,h,g,u)),u&&E&2048&&yc(o.alternate,o);break;case 24:Nl(r,o,h,g,u),u&&E&2048&&vc(o.alternate,o);break;default:Nl(r,o,h,g,u)}e=e.sibling}}function ja(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:ja(n,l),u&2048&&yc(l.alternate,l);break;case 24:ja(n,l),u&2048&&vc(l.alternate,l);break;default:ja(n,l)}e=e.sibling}}var za=8192;function Hl(t,e,n){if(t.subtreeFlags&za)for(t=t.child;t!==null;)Od(t,e,n),t=t.sibling}function Od(t,e,n){switch(t.tag){case 26:Hl(t,e,n),t.flags&za&&t.memoizedState!==null&&Ap(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=za,za=16777216,Hl(t,e,n),za=l):Hl(t,e,n));break;default:Hl(t,e,n)}}function _d(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 Ma(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)}_d(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)xd(t),t=t.sibling}function xd(t){switch(t.tag){case 0:case 11:case 15:Ma(t),t.flags&2048&&xn(9,t,t.return);break;case 3:Ma(t);break;case 12:Ma(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)):Ma(t);break;default:Ma(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)}_d(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:xn(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:xn(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(yd(l),l===n){kt=null;break t}if(u!==null){u.return=r,kt=u;break t}kt=r}}}var Gm={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}},Lm=typeof WeakMap=="function"?WeakMap:Map,Et=0,Dt=null,vt=null,pt=0,At=0,Oe=null,En=!1,wl=!1,mc=!1,cn=0,Ht=0,Tn=0,ll=0,pc=0,_e=0,Bl=0,Ca=null,de=null,gc=!1,Ku=0,Td=0,Zu=1/0,Vu=null,An=null,Jt=0,jn=null,Yl=null,sn=0,bc=0,Sc=null,Ad=null,Da=0,Oc=null;function xe(){return(Et&2)!==0&&pt!==0?pt&-pt:T.T!==null?jc():Ys()}function jd(){if(_e===0)if((pt&536870912)===0||bt){var t=tu;tu<<=1,(tu&3932160)===0&&(tu=262144),_e=t}else _e=536870912;return t=be.current,t!==null&&(t.flags|=32),_e}function he(t,e,n){(t===Dt&&(At===2||At===9)||t.cancelPendingCommit!==null)&&(Gl(t,0),zn(t,pt,_e,!1)),Wl(t,n),((Et&2)===0||t!==Dt)&&(t===Dt&&((Et&2)===0&&(ll|=n),Ht===4&&zn(t,pt,_e,!1)),Xe(t))}function zd(t,e,n){if((Et&6)!==0)throw Error(s(327));var l=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Pl(t,e),u=l?Zm(t,e):xc(t,e,!0),r=l;do{if(u===0){wl&&!l&&zn(t,e,0,!1);break}else{if(n=t.current.alternate,r&&!Xm(n)){u=xc(t,e,!1),r=!1;continue}if(u===2){if(r=e,t.errorRecoveryDisabledLanes&r)var o=0;else o=t.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){e=o;t:{var h=t;u=Ca;var g=h.current.memoizedState.isDehydrated;if(g&&(Gl(h,o).flags|=256),o=xc(h,o,!1),o!==2){if(mc&&!g){h.errorRecoveryDisabledLanes|=r,ll|=r,u=4;break t}r=de,de=u,r!==null&&(de===null?de=r:de.push.apply(de,r))}u=o}if(r=!1,u!==2)continue}}if(u===1){Gl(t,0),zn(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:zn(l,e,_e,!En);break t;case 2:de=null;break;case 3:case 5:break;default:throw Error(s(329))}if((e&62914560)===e&&(u=Ku+300-ye(),10<u)){if(zn(l,e,_e,!En),nu(l,0,!0)!==0)break t;sn=e,l.timeoutHandle=uh(Md.bind(null,l,n,de,Vu,gc,e,_e,ll,Bl,En,r,"Throttled",-0,0),u);break t}Md(l,n,de,Vu,gc,e,_e,ll,Bl,En,r,null,-0,0)}}break}while(!0);Xe(t)}function Md(t,e,n,l,u,r,o,h,g,E,C,U,A,j){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},Od(e,r,U);var F=(r&62914560)===r?Ku-ye():(r&4194048)===r?Td-ye():0;if(F=jp(U,F),F!==null){sn=r,t.cancelPendingCommit=F(Hd.bind(null,t,e,r,n,l,u,o,h,g,C,U,null,A,j)),zn(t,r,o,!E);return}}Hd(t,e,r,n,l,u,o,h,g)}function Xm(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(!pe(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 zn(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-me(u),o=1<<r;l[r]=-1,u&=~o}n!==0&&Hs(t,n,e)}function Ju(){return(Et&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;)id(t.alternate,t),t=t.return;vt=null}}function Gl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,sp(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,Oe=null,En=!1,wl=Pl(t,e),mc=!1,Bl=_e=pc=ll=Tn=Ht=0,de=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-me(l),r=1<<u;e|=t[u],l&=~r}return cn=e,yu(),n}function Cd(t,e){ot=null,T.H=_a,e===Cl||e===_u?(e=Zo(),At=3):e===Ar?(e=Zo(),At=4):At=e===tc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Oe=e,vt===null&&(Ht=1,Nu(t,ze(e,t.current)))}function Dd(){var t=be.current;return t===null?!0:(pt&4194048)===pt?Re===null:(pt&62914560)===pt||(pt&536870912)!==0?t===Re:!1}function Rd(){var t=T.H;return T.H=_a,t===null?_a:t}function Ud(){var t=T.A;return T.A=Gm,t}function Fu(){Ht=4,En||(pt&4194048)!==pt&&be.current!==null||(wl=!0),(Tn&134217727)===0&&(ll&134217727)===0||Dt===null||zn(Dt,pt,_e,!1)}function xc(t,e,n){var l=Et;Et|=2;var u=Rd(),r=Ud();(Dt!==t||pt!==e)&&(Vu=null,Gl(t,e)),e=!1;var o=Ht;t:do try{if(At!==0&&vt!==null){var h=vt,g=Oe;switch(At){case 8:_c(),o=6;break t;case 3:case 2:case 9:case 6:be.current===null&&(e=!0);var E=At;if(At=0,Oe=null,Ll(t,h,g,E),n&&wl){o=0;break t}break;default:E=At,At=0,Oe=null,Ll(t,h,g,E)}}Km(),o=Ht;break}catch(C){Cd(t,C)}while(!0);return e&&t.shellSuspendCounter++,Pe=Fn=null,Et=l,T.H=u,T.A=r,vt===null&&(Dt=null,pt=0,yu()),o}function Km(){for(;vt!==null;)qd(vt)}function Zm(t,e){var n=Et;Et|=2;var l=Rd(),u=Ud();Dt!==t||pt!==e?(Vu=null,Zu=ye()+500,Gl(t,e)):wl=Pl(t,e);t:do try{if(At!==0&&vt!==null){e=vt;var r=Oe;e:switch(At){case 1:At=0,Oe=null,Ll(t,e,r,1);break;case 2:case 9:if(Xo(r)){At=0,Oe=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:Xo(r)?(At=0,Oe=null,Qd(e)):(At=0,Oe=null,Ll(t,e,r,7));break;case 5:var o=null;switch(vt.tag){case 26:o=vt.memoizedState;case 5:case 27:var h=vt;if(o?Sh(o):h.stateNode.complete){At=0,Oe=null;var g=h.sibling;if(g!==null)vt=g;else{var E=h.return;E!==null?(vt=E,ku(E)):vt=null}break e}}At=0,Oe=null,Ll(t,e,r,5);break;case 6:At=0,Oe=null,Ll(t,e,r,6);break;case 8:_c(),Ht=6;break t;default:throw Error(s(462))}}Vm();break}catch(C){Cd(t,C)}while(!0);return Pe=Fn=null,T.H=l,T.A=u,Et=n,vt!==null?0:(Dt=null,pt=0,yu(),Ht)}function Vm(){for(;vt!==null&&!vv();)qd(vt)}function qd(t){var e=ad(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=Wf(n,e,e.pendingProps,e.type,void 0,pt);break;case 11:e=Wf(n,e,e.pendingProps,e.type.render,e.ref,pt);break;case 5:wr(e);default:id(n,e),e=vt=Ro(e,cn),e=ad(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(qm(t,u,e,n,pt)){Ht=1,Nu(t,ze(n,t.current)),vt=null;return}}catch(r){if(u!==null)throw vt=u,r;Ht=1,Nu(t,ze(n,t.current)),vt=null;return}e.flags&32768?(bt||l===1?t=!0:wl||(pt&536870912)!==0?t=!1:(En=t=!0,(l===2||l===9||l===3||l===6)&&(l=be.current,l!==null&&l.tag===13&&(l.flags|=16384))),Nd(e,t)):ku(e)}function ku(t){var e=t;do{if((e.flags&32768)!==0){Nd(e,En);return}t=e.return;var n=Hm(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 Nd(t,e){do{var n=wm(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 Hd(t,e,n,l,u,r,o,h,g){t.cancelPendingCommit=null;do $u();while(Jt!==0);if((Et&6)!==0)throw Error(s(327));if(e!==null){if(e===t.current)throw Error(s(177));if(r=e.lanes|e.childLanes,r|=fr,Tv(t,n,r,o,h,g),t===Dt&&(vt=Dt=null,pt=0),Yl=e,jn=t,sn=n,bc=r,Sc=u,Ad=l,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,$m(Wa,function(){return Ld(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||l){l=T.T,T.T=null,u=H.p,H.p=2,o=Et,Et|=4;try{Bm(t,e,n)}finally{Et=o,H.p=u,T.T=l}}Jt=1,wd(),Bd(),Yd()}}function wd(){if(Jt===1){Jt=0;var t=jn,e=Yl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=T.T,T.T=null;var l=H.p;H.p=2;var u=Et;Et|=4;try{gd(e,t);var r=Qc,o=xo(t.containerInfo),h=r.focusedElem,g=r.selectionRange;if(o!==h&&h&&h.ownerDocument&&_o(h.ownerDocument.documentElement,h)){if(g!==null&&ir(h)){var E=g.start,C=g.end;if(C===void 0&&(C=E),"selectionStart"in h)h.selectionStart=E,h.selectionEnd=Math.min(C,h.value.length);else{var U=h.ownerDocument||document,A=U&&U.defaultView||window;if(A.getSelection){var j=A.getSelection(),F=h.textContent.length,lt=Math.min(g.start,F),Ct=g.end===void 0?lt:Math.min(g.end,F);!j.extend&&lt>Ct&&(o=Ct,Ct=lt,lt=o);var O=Oo(h,lt),S=Oo(h,Ct);if(O&&S&&(j.rangeCount!==1||j.anchorNode!==O.node||j.anchorOffset!==O.offset||j.focusNode!==S.node||j.focusOffset!==S.offset)){var x=U.createRange();x.setStart(O.node,O.offset),j.removeAllRanges(),lt>Ct?(j.addRange(x),j.extend(S.node,S.offset)):(x.setEnd(S.node,S.offset),j.addRange(x))}}}}for(U=[],j=h;j=j.parentNode;)j.nodeType===1&&U.push({element:j,left:j.scrollLeft,top:j.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{Et=u,H.p=l,T.T=n}}t.current=e,Jt=2}}function Bd(){if(Jt===2){Jt=0;var t=jn,e=Yl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=T.T,T.T=null;var l=H.p;H.p=2;var u=Et;Et|=4;try{hd(t,e.alternate,e)}finally{Et=u,H.p=l,T.T=n}}Jt=3}}function Yd(){if(Jt===4||Jt===3){Jt=0,mv();var t=jn,e=Yl,n=sn,l=Ad;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Jt=5:(Jt=0,Yl=jn=null,Gd(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(An=null),Gi(n),e=e.stateNode,ve&&typeof ve.onCommitFiberRoot=="function")try{ve.onCommitFiberRoot($l,e,void 0,(e.current.flags&128)===128)}catch{}if(l!==null){e=T.T,u=H.p,H.p=2,T.T=null;try{for(var r=t.onRecoverableError,o=0;o<l.length;o++){var h=l[o];r(h.value,{componentStack:h.stack})}}finally{T.T=e,H.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 Gd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,da(e)))}function $u(){return wd(),Bd(),Yd(),Ld()}function Ld(){if(Jt!==5)return!1;var t=jn,e=bc;bc=0;var n=Gi(sn),l=T.T,u=H.p;try{H.p=32>n?32:n,T.T=null,n=Sc,Sc=null;var r=jn,o=sn;if(Jt=0,Yl=jn=null,sn=0,(Et&6)!==0)throw Error(s(331));var h=Et;if(Et|=4,xd(r.current),Sd(r,r.current,o,n),Et=h,Ra(0,!1),ve&&typeof ve.onPostCommitFiberRoot=="function")try{ve.onPostCommitFiberRoot($l,r)}catch{}return!0}finally{H.p=u,T.T=l,Gd(t,e)}}function Xd(t,e,n){e=ze(n,e),e=Ir(t.stateNode,e,2),t=Sn(t,e,2),t!==null&&(Wl(t,2),Xe(t))}function jt(t,e,n){if(t.tag===3)Xd(t,t,n);else for(;e!==null;){if(e.tag===3){Xd(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=ze(n,t),n=Kf(2),l=Sn(e,n,2),l!==null&&(Zf(n,l,e,t),Wl(l,2),Xe(l));break}}e=e.return}}function Ec(t,e,n){var l=t.pingCache;if(l===null){l=t.pingCache=new Lm;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=Jm.bind(null,t,e,n),e.then(t,t))}function Jm(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>ye()-Ku?(Et&2)===0&&Gl(t,0):pc|=n,Bl===pt&&(Bl=0)),Xe(t)}function Kd(t,e){e===0&&(e=Ns()),t=Zn(t,e),t!==null&&(Wl(t,e),Xe(t))}function Fm(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Kd(t,n)}function km(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),Kd(t,n)}function $m(t,e){return Hi(t,e)}var Pu=null,Xl=null,Tc=!1,Wu=!1,Ac=!1,Mn=0;function Xe(t){t!==Xl&&t.next===null&&(Xl===null?Pu=Xl=t:Xl=Xl.next=t),Wu=!0,Tc||(Tc=!0,Wm())}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 o=l.suspendedLanes,h=l.pingedLanes;r=(1<<31-me(42|t)+1)-1,r&=u&~(o&~h),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(n=!0,Fd(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,Fd(l,r));l=l.next}while(n);Ac=!1}}function Pm(){Zd()}function Zd(){Wu=Tc=!1;var t=0;Mn!==0&&cp()&&(t=Mn);for(var e=ye(),n=null,l=Pu;l!==null;){var u=l.next,r=Vd(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),Mn!==0&&(Mn=0)}function Vd(t,e){for(var n=t.suspendedLanes,l=t.pingedLanes,u=t.expirationTimes,r=t.pendingLanes&-62914561;0<r;){var o=31-me(r),h=1<<o,g=u[o];g===-1?((h&n)===0||(h&l)!==0)&&(u[o]=Ev(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=qs;break;case 32:n=Wa;break;case 268435456:n=Qs;break;default:n=Wa}return l=Jd.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 Jd(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),Vd(t,ye()),t.callbackNode!=null&&t.callbackNode===n?Jd.bind(null,t):null)}function Fd(t,e){if($u())return null;zd(t,e,!0)}function Wm(){op(function(){(Et&6)!==0?Hi(Us,Pm):Zd()})}function jc(){if(Mn===0){var t=zl;t===0&&(t=Ia,Ia<<=1,(Ia&261888)===0&&(Ia=256)),Mn=t}return Mn}function kd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:iu(""+t)}function $d(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 Im(t,e,n,l,u){if(e==="submit"&&n&&n.stateNode===u){var r=kd((u[re]||null).action),o=l.submitter;o&&(e=(e=o[re]||null)?kd(e.formAction):o.getAttribute("formAction"),e!==null&&(r=e,o=null));var h=new ou("action","action",null,l,u);t.push({event:h,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Mn!==0){var g=o?$d(u,o):new FormData(u);Jr(n,{pending:!0,data:g,method:u.method,action:r},null,g)}}else typeof r=="function"&&(h.preventDefault(),g=o?$d(u,o):new FormData(u),Jr(n,{pending:!0,data:g,method:u.method,action:r},r,g))},currentTarget:u}]})}}for(var zc=0;zc<or.length;zc++){var Mc=or[zc],tp=Mc.toLowerCase(),ep=Mc[0].toUpperCase()+Mc.slice(1);Qe(tp,"on"+ep)}Qe(Ao,"onAnimationEnd"),Qe(jo,"onAnimationIteration"),Qe(zo,"onAnimationStart"),Qe("dblclick","onDoubleClick"),Qe("focusin","onFocus"),Qe("focusout","onBlur"),Qe(pm,"onTransitionRun"),Qe(gm,"onTransitionStart"),Qe(bm,"onTransitionCancel"),Qe(Mo,"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(" "),np=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ua));function Pd(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 o=l.length-1;0<=o;o--){var h=l[o],g=h.instance,E=h.currentTarget;if(h=h.listener,g!==r&&u.isPropagationStopped())break t;r=h,u.currentTarget=E;try{r(u)}catch(C){hu(C)}u.currentTarget=null,r=g}else for(o=0;o<l.length;o++){if(h=l[o],g=h.instance,E=h.currentTarget,h=h.listener,g!==r&&u.isPropagationStopped())break t;r=h,u.currentTarget=E;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)||(Wd(e,t,2,!1),n.add(l))}function Cc(t,e,n){var l=0;e&&(l|=4),Wd(n,t,l,e)}var Iu="_reactListening"+Math.random().toString(36).slice(2);function Dc(t){if(!t[Iu]){t[Iu]=!0,Xs.forEach(function(n){n!=="selectionchange"&&(np.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 Wd(t,e,n,l){switch(jh(e)){case 2:var u=Cp;break;case 8:u=Dp;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 o=l.tag;if(o===3||o===4){var h=l.stateNode.containerInfo;if(h===u)break;if(o===4)for(o=l.return;o!==null;){var g=o.tag;if((g===3||g===4)&&o.stateNode.containerInfo===u)return;o=o.return}for(;h!==null;){if(o=fl(h),o===null)return;if(g=o.tag,g===5||g===6||g===26||g===27){l=r=o;continue t}h=h.parentNode}}l=l.return}eo(function(){var E=r,C=ki(n),U=[];t:{var A=Co.get(t);if(A!==void 0){var j=ou,F=t;switch(t){case"keypress":if(cu(n)===0)break t;case"keydown":case"keyup":j=kv;break;case"focusin":F="focus",j=er;break;case"focusout":F="blur",j=er;break;case"beforeblur":case"afterblur":j=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":j=ao;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=Hv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=Wv;break;case Ao:case jo:case zo:j=Yv;break;case Mo:j=tm;break;case"scroll":case"scrollend":j=Qv;break;case"wheel":j=nm;break;case"copy":case"cut":case"paste":j=Lv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=io;break;case"toggle":case"beforetoggle":j=am}var lt=(e&4)!==0,Ct=!lt&&(t==="scroll"||t==="scrollend"),O=lt?A!==null?A+"Capture":null:A;lt=[];for(var S=E,x;S!==null;){var R=S;if(x=R.stateNode,R=R.tag,R!==5&&R!==26&&R!==27||x===null||O===null||(R=ea(S,O),R!=null&&lt.push(qa(S,R,x))),Ct)break;S=S.return}0<lt.length&&(A=new j(A,F,null,n,C),U.push({event:A,listeners:lt}))}}if((e&7)===0){t:{if(A=t==="mouseover"||t==="pointerover",j=t==="mouseout"||t==="pointerout",A&&n!==Fi&&(F=n.relatedTarget||n.fromElement)&&(fl(F)||F[ol]))break t;if((j||A)&&(A=C.window===C?C:(A=C.ownerDocument)?A.defaultView||A.parentWindow:window,j?(F=n.relatedTarget||n.toElement,j=E,F=F?fl(F):null,F!==null&&(Ct=d(F),lt=F.tag,F!==Ct||lt!==5&&lt!==27&&lt!==6)&&(F=null)):(j=null,F=E),j!==F)){if(lt=ao,R="onMouseLeave",O="onMouseEnter",S="mouse",(t==="pointerout"||t==="pointerover")&&(lt=io,R="onPointerLeave",O="onPointerEnter",S="pointer"),Ct=j==null?A:ta(j),x=F==null?A:ta(F),A=new lt(R,S+"leave",j,n,C),A.target=Ct,A.relatedTarget=x,R=null,fl(C)===E&&(lt=new lt(O,S+"enter",F,n,C),lt.target=x,lt.relatedTarget=Ct,R=lt),Ct=R,j&&F)e:{for(lt=lp,O=j,S=F,x=0,R=O;R;R=lt(R))x++;R=0;for(var nt=S;nt;nt=lt(nt))R++;for(;0<x-R;)O=lt(O),x--;for(;0<R-x;)S=lt(S),R--;for(;x--;){if(O===S||S!==null&&O===S.alternate){lt=O;break e}O=lt(O),S=lt(S)}lt=null}else lt=null;j!==null&&Id(U,A,j,lt,!1),F!==null&&Ct!==null&&Id(U,Ct,F,lt,!0)}}t:{if(A=E?ta(E):window,j=A.nodeName&&A.nodeName.toLowerCase(),j==="select"||j==="input"&&A.type==="file")var Ot=vo;else if(ho(A))if(mo)Ot=ym;else{Ot=dm;var W=fm}else j=A.nodeName,!j||j.toLowerCase()!=="input"||A.type!=="checkbox"&&A.type!=="radio"?E&&Ji(E.elementType)&&(Ot=vo):Ot=hm;if(Ot&&(Ot=Ot(t,E))){yo(U,Ot,n,C);break t}W&&W(t,A,E),t==="focusout"&&E&&A.type==="number"&&E.memoizedProps.value!=null&&Vi(A,"number",A.value)}switch(W=E?ta(E):window,t){case"focusin":(ho(W)||W.contentEditable==="true")&&(Sl=W,rr=E,sa=null);break;case"focusout":sa=rr=Sl=null;break;case"mousedown":cr=!0;break;case"contextmenu":case"mouseup":case"dragend":cr=!1,Eo(U,n,C);break;case"selectionchange":if(mm)break;case"keydown":case"keyup":Eo(U,n,C)}var ft;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?oo(t,n)&&(gt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(gt="onCompositionStart");gt&&(ro&&n.locale!=="ko"&&(bl||gt!=="onCompositionStart"?gt==="onCompositionEnd"&&bl&&(ft=no()):(hn=C,Wi="value"in hn?hn.value:hn.textContent,bl=!0)),W=ti(E,gt),0<W.length&&(gt=new uo(gt,t,null,n,C),U.push({event:gt,listeners:W}),ft?gt.data=ft:(ft=fo(n),ft!==null&&(gt.data=ft)))),(ft=im?rm(t,n):cm(t,n))&&(gt=ti(E,"onBeforeInput"),0<gt.length&&(W=new uo("onBeforeInput","beforeinput",null,n,C),U.push({event:W,listeners:gt}),W.data=ft)),Im(U,t,E,n,C)}Pd(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 lp(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Id(t,e,n,l,u){for(var r=e._reactName,o=[];n!==null&&n!==l;){var h=n,g=h.alternate,E=h.stateNode;if(h=h.tag,g!==null&&g===l)break;h!==5&&h!==26&&h!==27||E===null||(g=E,u?(E=ea(n,r),E!=null&&o.unshift(qa(n,E,g))):u||(E=ea(n,r),E!=null&&o.push(qa(n,E,g)))),n=n.return}o.length!==0&&t.push({event:e,listeners:o})}var ap=/\r\n?/g,up=/\u0000|\uFFFD/g;function th(t){return(typeof t=="string"?t:""+t).replace(ap,`
`).replace(up,"")}function eh(t,e){return e=th(e),th(t)===e}function Mt(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":Is(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"&&Mt(t,e,"name",u.name,u,null),Mt(t,e,"formEncType",u.formEncType,u,null),Mt(t,e,"formMethod",u.formMethod,u,null),Mt(t,e,"formTarget",u.formTarget,u,null)):(Mt(t,e,"encType",u.encType,u,null),Mt(t,e,"method",u.method,u,null),Mt(t,e,"target",u.target,u,null)));if(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=Uv.get(n)||n,lu(t,n,l))}}function Uc(t,e,n,l,u,r){switch(n){case"style":Is(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(!Ks.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[re]||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 o=n[r];if(o!=null)switch(r){case"src":l=!0;break;case"srcSet":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:Mt(t,e,r,o,n,null)}}u&&Mt(t,e,"srcSet",n.srcSet,n,null),l&&Mt(t,e,"src",n.src,n,null);return;case"input":mt("invalid",t);var h=r=o=u=null,g=null,E=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":o=C;break;case"checked":g=C;break;case"defaultChecked":E=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:Mt(t,e,l,C,n,null)}}ks(t,r,h,g,E,o,u,!1);return;case"select":mt("invalid",t),l=o=r=null;for(u in n)if(n.hasOwnProperty(u)&&(h=n[u],h!=null))switch(u){case"value":r=h;break;case"defaultValue":o=h;break;case"multiple":l=h;default:Mt(t,e,u,h,n,null)}e=r,n=o,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(o in n)if(n.hasOwnProperty(o)&&(h=n[o],h!=null))switch(o){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:Mt(t,e,o,h,n,null)}Ps(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:Mt(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(E in n)if(n.hasOwnProperty(E)&&(l=n[E],l!=null))switch(E){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,e));default:Mt(t,e,E,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&&Mt(t,e,h,l,n,null))}function ip(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,o=null,h=null,g=null,E=null,C=null;for(j in n){var U=n[j];if(n.hasOwnProperty(j)&&U!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":g=U;default:l.hasOwnProperty(j)||Mt(t,e,j,null,l,U)}}for(var A in l){var j=l[A];if(U=n[A],l.hasOwnProperty(A)&&(j!=null||U!=null))switch(A){case"type":r=j;break;case"name":u=j;break;case"checked":E=j;break;case"defaultChecked":C=j;break;case"value":o=j;break;case"defaultValue":h=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,e));break;default:j!==U&&Mt(t,e,A,j,l,U)}}Zi(t,o,h,g,E,C,r,u);return;case"select":j=o=h=A=null;for(r in n)if(g=n[r],n.hasOwnProperty(r)&&g!=null)switch(r){case"value":break;case"multiple":j=g;default:l.hasOwnProperty(r)||Mt(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":o=r;default:r!==g&&Mt(t,e,u,r,l,g)}e=h,n=o,l=j,A!=null?vl(t,!!n,A,!1):!!l!=!!n&&(e!=null?vl(t,!!n,e,!0):vl(t,!!n,n?[]:"",!1));return;case"textarea":j=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:Mt(t,e,h,null,l,u)}for(o in l)if(u=l[o],r=n[o],l.hasOwnProperty(o)&&(u!=null||r!=null))switch(o){case"value":A=u;break;case"defaultValue":j=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(s(91));break;default:u!==r&&Mt(t,e,o,u,l,r)}$s(t,A,j);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:Mt(t,e,F,null,l,A)}for(g in l)if(A=l[g],j=n[g],l.hasOwnProperty(g)&&A!==j&&(A!=null||j!=null))switch(g){case"selected":t.selected=A&&typeof A!="function"&&typeof A!="symbol";break;default:Mt(t,e,g,A,l,j)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var lt in n)A=n[lt],n.hasOwnProperty(lt)&&A!=null&&!l.hasOwnProperty(lt)&&Mt(t,e,lt,null,l,A);for(E in l)if(A=l[E],j=n[E],l.hasOwnProperty(E)&&A!==j&&(A!=null||j!=null))switch(E){case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(s(137,e));break;default:Mt(t,e,E,A,l,j)}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],j=n[C],!l.hasOwnProperty(C)||A===j||A===void 0&&j===void 0||Uc(t,e,C,A,l,j);return}}for(var O in n)A=n[O],n.hasOwnProperty(O)&&A!=null&&!l.hasOwnProperty(O)&&Mt(t,e,O,null,l,A);for(U in l)A=l[U],j=n[U],!l.hasOwnProperty(U)||A===j||A==null&&j==null||Mt(t,e,U,A,l,j)}function nh(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function rp(){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,o=u.initiatorType,h=u.duration;if(r&&h&&nh(o)){for(o=0,h=u.responseEnd,l+=1;l<n.length;l++){var g=n[l],E=g.startTime;if(E>h)break;var C=g.transferSize,U=g.initiatorType;C&&nh(U)&&(g=g.responseEnd,o+=C*(g<h?1:(h-E)/(g-E)))}if(--l,e+=8*(r+o)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var qc=null,Qc=null;function ei(t){return t.nodeType===9?t:t.ownerDocument}function lh(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 ah(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 cp(){var t=window.event;return t&&t.type==="popstate"?t===Hc?!1:(Hc=t,!0):(Hc=null,!1)}var uh=typeof setTimeout=="function"?setTimeout:void 0,sp=typeof clearTimeout=="function"?clearTimeout:void 0,ih=typeof Promise=="function"?Promise:void 0,op=typeof queueMicrotask=="function"?queueMicrotask:typeof ih<"u"?function(t){return ih.resolve(null).then(t).catch(fp)}:uh;function fp(t){setTimeout(function(){throw t})}function Cn(t){return t==="head"}function rh(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 o=r.nextSibling,h=r.nodeName;r[Il]||h==="SCRIPT"||h==="STYLE"||h==="LINK"&&r.rel.toLowerCase()==="stylesheet"||n.removeChild(r),r=o}}else n==="body"&&Qa(t.ownerDocument.body);n=u}while(n);Jl(e)}function ch(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 dp(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 hp(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 sh(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 yp(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 oh(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 dh(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,hh=new Set;function ni(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var on=H.d;H.d={f:vp,r:mp,D:pp,C:gp,L:bp,m:Sp,X:_p,S:Op,M:xp};function vp(){var t=on.f(),e=Ju();return t||e}function mp(t){var e=dl(t);e!==null&&e.tag===5&&e.type==="form"?Cf(e):on.r(t)}var Kl=typeof document>"u"?null:document;function yh(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+'"]'),hh.has(u)||(hh.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 pp(t){on.D(t),yh("dns-prefetch",t,null)}function gp(t,e){on.C(t,e),yh("preconnect",t,e)}function bp(t,e,n){on.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 Sp(t,e){on.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 Op(t,e,n){on.S(t,e,n);var l=Kl;if(l&&t){var u=hl(l).hoistableStyles,r=Zl(t);e=e||"default";var o=u.get(r);if(!o){var h={loading:0,preload:null};if(o=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=o=l.createElement("link");Ft(g),te(g,"link",t),g._p=new Promise(function(E,C){g.onload=E,g.onerror=C}),g.addEventListener("load",function(){h.loading|=1}),g.addEventListener("error",function(){h.loading|=2}),h.loading|=4,li(o,e,l)}o={type:"stylesheet",instance:o,count:1,state:h},u.set(r,o)}}}function _p(t,e){on.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 xp(t,e){on.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 vh(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,o=r.get(t);if(o||(u=u.ownerDocument||u,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(t,o),(r=u.querySelector(Na(t)))&&!r._p&&(o.instance=r,o.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||Ep(u,t,n,o.state))),e&&l===null)throw Error(s(528,""));return o}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 mh(t){return _({},t,{"data-precedence":t.precedence,precedence:null})}function Ep(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 ph(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=mh(n),(u=qe.get(u))&&Lc(l,u),r=(t.ownerDocument||t).createElement("link"),Ft(r);var o=r;return o._p=new Promise(function(h,g){o.onload=h,o.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,o=0;o<l.length;o++){var h=l[o];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 gh(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 o=r.getAttribute(e)||"";o=t+o;var h=l.get(o);h?h.push(r):l.set(o,[r])}}return l}function bh(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Tp(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 Sh(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Ap(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=mh(l),(u=qe.get(u))&&Lc(l,u),r=r.createElement("link"),Ft(r);var o=r;o._p=new Promise(function(h,g){o.onload=h,o.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 jp(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*rp());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(zp,t),ii=null,ui.call(t))}function zp(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 o=u[r];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(n.set(o.dataset.precedence,o),l=o)}l&&n.set(null,l)}u=e.instance,o=u.getAttribute("data-precedence"),r=n.get(o)||l,r===l&&n.set(null,u),n.set(o,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:Z,_currentValue2:Z,_threadCount:0};function Mp(t,e,n,l,u,r,o,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=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=g,this.incompleteTransitions=new Map}function Oh(t,e,n,l,u,r,o,h,g,E,C,U){return t=new Mp(t,e,n,o,g,E,C,U,h),e=1,r===!0&&(e|=24),r=ge(3,null,null,e),t.current=r,r.stateNode=t,e=xr(),e.refCount++,t.pooledCache=e,e.refCount++,r.memoizedState={element:l,isDehydrated:n,cache:e},jr(r),t}function _h(t){return t?(t=xl,t):xl}function xh(t,e,n,l,u,r){u=_h(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&&(he(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 Th(t){if(t.tag===13||t.tag===31){var e=Zn(t,67108864);e!==null&&he(e,t,67108864),Zc(t,67108864)}}function Ah(t){if(t.tag===13||t.tag===31){var e=xe();e=Yi(e);var n=Zn(t,e);n!==null&&he(n,t,e),Zc(t,e)}}var ci=!0;function Cp(t,e,n,l){var u=T.T;T.T=null;var r=H.p;try{H.p=2,Vc(t,e,n,l)}finally{H.p=r,T.T=u}}function Dp(t,e,n,l){var u=T.T;T.T=null;var r=H.p;try{H.p=8,Vc(t,e,n,l)}finally{H.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(Up(u,t,e,n,l))l.stopPropagation();else if(zh(t,l),e&4&&-1<Rp.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 o=Yn(r.pendingLanes);if(o!==0){var h=r;for(h.pendingLanes|=2,h.entangledLanes|=2;o;){var g=1<<31-me(o);h.entanglements[1]|=g,o&=~g}Xe(r),(Et&6)===0&&(Zu=ye()+500,Ra(0))}}break;case 31:case 13:h=Zn(r,2),h!==null&&he(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=fl(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=m(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 jh(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(pv()){case Us:return 2;case qs:return 8;case Wa:case gv: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=[],Rp="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&&Th(e)),t):(t.eventSystemFlags|=l,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function Up(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=fl(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,Gs(t.priority,function(){Ah(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,Gs(t.priority,function(){Ah(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 oi(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&&Th(e),t.blockedOn=n,!1;e.shift()}return!0}function Ch(t,e,n){oi(t)&&n.delete(e)}function qp(){kc=!1,Dn!==null&&oi(Dn)&&(Dn=null),Rn!==null&&oi(Rn)&&(Rn=null),Un!==null&&oi(Un)&&(Un=null),Ba.forEach(Ch),Ya.forEach(Ch)}function fi(t,e){t.blockedOn===e&&(t.blockedOn=null,kc||(kc=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,qp)))}var di=null;function Dh(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 fi(g,t)}Dn!==null&&fi(Dn,t),Rn!==null&&fi(Rn,t),Un!==null&&fi(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],o=u[re]||null;if(typeof r=="function")o||Dh(n);else if(o){var h=null;if(r&&r.hasAttribute("formAction")){if(u=r,o=r[re]||null)h=o.formAction;else if(Fc(u)!==null)continue}else h=o.action;typeof h=="function"?n[l+1]=h:(n.splice(l,3),l-=3),Dh(n)}}}function Rh(){function t(r){r.canIntercept&&r.info==="react-transition"&&r.intercept({handler:function(){return new Promise(function(o){return u=o})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=null),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=xe();xh(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;xh(t.current,2,null,t,null,null),Ju(),e[ol]=null}};function hi(t){this._internalRoot=t}hi.prototype.unstable_scheduleHydration=function(t){if(t){var e=Ys();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 Uh=i.version;if(Uh!=="19.2.1")throw Error(s(527,Uh,"19.2.1"));H.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?z(t):null,t=t===null?null:t.stateNode,t};var Qp={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(Qp),ve=yi}catch{}}return Xa.createRoot=function(t,e){if(!f(t))throw Error(s(299));var n=!1,l="",u=Yf,r=Gf,o=Lf;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&&(o=e.onRecoverableError)),e=Oh(t,1,!1,null,null,n,l,null,u,r,o,Rh),t[ol]=e.current,Dc(t),new $c(e)},Xa.hydrateRoot=function(t,e,n){if(!f(t))throw Error(s(299));var l=!1,u="",r=Yf,o=Gf,h=Lf,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&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(h=n.onRecoverableError),n.formState!==void 0&&(g=n.formState)),e=Oh(t,1,!0,e,n??null,l,u,g,r,o,h,Rh),e.context=_h(null),n=e.current,l=xe(),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[ol]=e.current,Dc(t),new hi(e)},Xa.version="19.2.1",Xa}var Xh;function Fp(){if(Xh)return Ic.exports;Xh=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=Jp(),Ic.exports}var kp=Fp(),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 le(){}function $p(a,i){return typeof a=="function"?a(i):a}function fs(a){return typeof a=="number"&&a>=0&&a!==1/0}function py(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 Kh(a,i){const{type:c="all",exact:s,fetchStatus:f,predicate:d,queryKey:y,stale:m}=a;if(y){if(s){if(i.queryHash!==Ss(y,i.options))return!1}else if(!Va(i.queryKey,y))return!1}if(c!=="all"){const v=i.isActive();if(c==="active"&&!v||c==="inactive"&&v)return!1}return!(typeof m=="boolean"&&i.isStale()!==m||f&&f!==i.state.fetchStatus||d&&!d(i))}function Zh(a,i){const{exact:c,status:s,predicate:f,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||f&&!f(i))}function Ss(a,i){return(i?.queryKeyHashFn||Hn)(a)}function Hn(a){return JSON.stringify(a,(i,c)=>ds(c)?Object.keys(c).sort().reduce((s,f)=>(s[f]=c[f],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 Os(a,i){if(a===i)return a;const c=Vh(a)&&Vh(i);if(c||ds(a)&&ds(i)){const s=c?a:Object.keys(a),f=s.length,d=c?i:Object.keys(i),y=d.length,m=c?[]:{},v=new Set(s);let p=0;for(let z=0;z<y;z++){const _=c?z:d[z];(!c&&v.has(_)||c)&&a[_]===void 0&&i[_]===void 0?(m[_]=void 0,p++):(m[_]=Os(a[_],i[_]),m[_]===a[_]&&a[_]!==void 0&&p++)}return f===y&&p===f?a:m}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 Vh(a){return Array.isArray(a)&&a.length===Object.keys(a).length}function ds(a){if(!Jh(a))return!1;const i=a.constructor;if(i===void 0)return!0;const c=i.prototype;return!(!Jh(c)||!c.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(a)!==Object.prototype)}function Jh(a){return Object.prototype.toString.call(a)==="[object Object]"}function Pp(a){return new Promise(i=>{setTimeout(i,a)})}function hs(a,i,c){return typeof c.structuralSharing=="function"?c.structuralSharing(a,i):c.structuralSharing!==!1?Os(a,i):i}function Wp(a,i,c=0){const s=[...a,i];return c&&s.length>c?s.slice(1):s}function Ip(a,i,c=0){const s=[i,...a];return c&&s.length>c?s.slice(0,-1):s}var Ee=Symbol();function gy(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 by(a,i){return typeof a=="function"?a(...i):!!a}var t0=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"}},_s=new t0,e0=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 e0;function ys(){let a,i;const c=new Promise((f,d)=>{a=f,i=d});c.status="pending",c.catch(()=>{});function s(f){Object.assign(c,f),delete c.resolve,delete c.reject}return c.resolve=f=>{s({status:"fulfilled",value:f}),a(f)},c.reject=f=>{s({status:"rejected",reason:f}),i(f)},c}function n0(a){return Math.min(1e3*2**a,3e4)}function Sy(a){return(a??"online")==="online"?_i.isOnline():!0}var Oy=class extends Error{constructor(a){super("CancelledError"),this.revert=a?.revert,this.silent=a?.silent}};function ls(a){return a instanceof Oy}function _y(a){let i=!1,c=0,s=!1,f;const d=ys(),y=Q=>{s||(q(new Oy(Q)),a.abort?.())},m=()=>{i=!0},v=()=>{i=!1},p=()=>_s.isFocused()&&(a.networkMode==="always"||_i.isOnline())&&a.canRun(),z=()=>Sy(a.networkMode)&&a.canRun(),_=Q=>{s||(s=!0,a.onSuccess?.(Q),f?.(),d.resolve(Q))},q=Q=>{s||(s=!0,a.onError?.(Q),f?.(),d.reject(Q))},Y=()=>new Promise(Q=>{f=$=>{(s||p())&&Q($)},a.onPause?.()}).then(()=>{f=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??n0,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),Pp(qt).then(()=>p()?void 0:Y()).then(()=>{i?q(at):J()})})};return{promise:d,cancel:y,continue:()=>(f?.(),d),cancelRetry:m,continueRetry:v,canStart:z,start:()=>(z()?J():Y().then(J),d)}}var l0=a=>setTimeout(a,0);function a0(){let a=[],i=0,c=m=>{m()},s=m=>{m()},f=l0;const d=m=>{i?a.push(m):f(()=>{c(m)})},y=()=>{const m=a;a=[],m.length&&f(()=>{s(()=>{m.forEach(v=>{c(v)})})})};return{batch:m=>{let v;i++;try{v=m()}finally{i--,i||y()}return v},batchCalls:m=>(...v)=>{d(()=>{m(...v)})},schedule:d,setNotifyFunction:m=>{c=m},setBatchNotifyFunction:m=>{s=m},setScheduler:m=>{f=m}}}var wt=a0(),xy=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)}},u0=class extends xy{#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=i0(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=hs(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(le).catch(le):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:!py(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 v=this.observers.find(p=>p.options.queryFn);v&&this.setOptions(v.options)}const c=new AbortController,s=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(this.#r=!0,c.signal)})},f=()=>{const v=gy(this.options,i),z=(()=>{const _={client:this.#l,queryKey:this.queryKey,meta:this.meta};return s(_),_})();return this.#r=!1,this.options.persister?this.options.persister(v,z,this):v(z)},y=(()=>{const v={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:f};return s(v),v})();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 m=v=>{ls(v)&&v.silent||this.#i({type:"error",error:v}),ls(v)||(this.#n.config.onError?.(v,this),this.#n.config.onSettled?.(this.state.data,v,this)),this.scheduleGc()};return this.#a=_y({initialPromise:i?.initialPromise,fn:y.fetchFn,abort:c.abort.bind(c),onSuccess:v=>{if(v===void 0){m(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(v)}catch(p){m(p);return}this.#n.config.onSuccess?.(v,this),this.#n.config.onSettled?.(v,this.state.error,this),this.scheduleGc()},onError:m,onFail:(v,p)=>{this.#i({type:"failed",failureCount:v,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,...Ey(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 Ey(a,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Sy(i.networkMode)?"fetching":"paused",...a===void 0&&{error:null,status:"pending"}}}function i0(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 r0=class extends rl{constructor(a={}){super(),this.config=a,this.#e=new Map}#e;build(a,i,c){const s=i.queryKey,f=i.queryHash??Ss(s,i);let d=this.get(f);return d||(d=new u0({client:a,queryKey:s,queryHash:f,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=>Kh(i,c))}findAll(a={}){const i=this.getAll();return Object.keys(a).length>0?i.filter(c=>Kh(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()})})}},c0=class extends xy{#e;#t;#n;constructor(a){super(),this.mutationId=a.mutationId,this.#t=a.mutationCache,this.#e=[],this.state=a.state||Ty(),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=_y({fn:()=>this.options.mutationFn?this.options.mutationFn(a):Promise.reject(new Error("No mutationFn found")),onFail:(f,d)=>{this.#l({type:"failed",failureCount:f,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 f=await this.#n.start();return await this.#t.config.onSuccess?.(f,a,this.state.context,this),await this.options.onSuccess?.(f,a,this.state.context),await this.#t.config.onSettled?.(f,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(f,null,a,this.state.context),this.#l({type:"success",data:f}),f}catch(f){try{throw await this.#t.config.onError?.(f,a,this.state.context,this),await this.options.onError?.(f,a,this.state.context),await this.#t.config.onSettled?.(void 0,f,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,f,a,this.state.context),f}finally{this.#l({type:"error",error:f})}}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 Ty(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var s0=class extends 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 c0({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(f=>f.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=>Zh(i,c))}findAll(a={}){return this.getAll().filter(i=>Zh(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(le))))}};function vi(a){return a.options.scope?.id}function xi(a){return{onFetch:(i,c)=>{const s=i.options,f=i.fetchOptions?.meta?.fetchMore?.direction,d=i.state.data?.pages||[],y=i.state.data?.pageParams||[];let m={pages:[],pageParams:[]},v=0;const p=async()=>{let z=!1;const _=J=>{Object.defineProperty(J,"signal",{enumerable:!0,get:()=>(i.signal.aborted?z=!0:i.signal.addEventListener("abort",()=>{z=!0}),i.signal)})},q=gy(i.options,i.fetchOptions),Y=async(J,Q,$)=>{if(z)return Promise.reject();if(Q==null&&J.pages.length)return Promise.resolve(J);const dt=(()=>{const X={client:i.client,queryKey:i.queryKey,pageParam:Q,direction:$?"backward":"forward",meta:i.options.meta};return _(X),X})(),Tt=await q(dt),{maxPages:qt}=i.options,k=$?Ip:Wp;return{pages:k(J.pages,Tt,qt),pageParams:k(J.pageParams,Q,qt)}};if(f&&d.length){const J=f==="backward",Q=J?Ay:vs,$={pages:d,pageParams:y},at=Q(s,$);m=await Y($,at,J)}else{const J=a??d.length;do{const Q=v===0?y[0]??s.initialPageParam:vs(s,m);if(v>0&&Q==null)break;m=await Y(m,Q),v++}while(v<J)}return m};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 vs(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 Ay(a,{pages:i,pageParams:c}){return i.length>0?a.getPreviousPageParam?.(i[0],i,c[0],c):void 0}function o0(a,i){return i?vs(a,i)!=null:!1}function f0(a,i){return!i||!a.getPreviousPageParam?!1:Ay(a,i)!=null}var d0=class{#e;#t;#n;#l;#a;#u;#r;#i;constructor(a={}){this.#e=a.queryCache||new r0,this.#t=a.mutationCache||new s0,this.#n=a.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#r=_s.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=$p(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(f=>f.cancel(c)));return Promise.all(s).then(le).catch(le)}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(f=>!f.isDisabled()&&!f.isStatic()).map(f=>{let d=f.fetch(void 0,c);return c.throwOnError||(d=d.catch(le)),f.state.fetchStatus==="paused"?Promise.resolve():d}));return Promise.all(s).then(le)}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(le).catch(le)}fetchInfiniteQuery(a){return a.behavior=xi(a.pages),this.fetchQuery(a)}prefetchInfiniteQuery(a){return this.fetchInfiniteQuery(a).then(le).catch(le)}ensureInfiniteQueryData(a){return a.behavior=xi(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=Ss(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=ys(),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;#f;#d;#s;#o;#c;#v=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Fh(this.#t,this.options)?this.#y():this.updateResult(),this.#b())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ms(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ms(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&&kh(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 f=this.#p();s&&(this.#t!==c||we(this.options.enabled,this.#t)!==we(i.enabled,this.#t)||f!==this.#c)&&this.#g(f)}getOptimisticResult(a){const i=this.#e.getQueryCache().build(this.#e,a),c=this.createResult(i,a);return y0(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(le)),i}#m(){this.#S();const a=Nn(this.options.staleTime,this.#t);if(ul||this.#l.isStale||!fs(a))return;const c=py(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.#o=setInterval(()=>{(this.options.refetchIntervalInBackground||_s.isFocused())&&this.#y()},this.#c))}#b(){this.#m(),this.#g(this.#p())}#S(){this.#s&&(clearTimeout(this.#s),this.#s=void 0)}#O(){this.#o&&(clearInterval(this.#o),this.#o=void 0)}createResult(a,i){const c=this.#t,s=this.options,f=this.#l,d=this.#a,y=this.#u,v=a!==c?a.state:this.#n,{state:p}=a;let z={...p},_=!1,q;if(i._optimisticResults){const K=this.hasListeners(),G=!K&&Fh(a,i),et=K&&kh(a,c,i,s);(G||et)&&(z={...z,...Ey(p.data,a.options)}),i._optimisticResults==="isRestoring"&&(z.fetchStatus="idle")}let{error:Y,errorUpdatedAt:J,status:Q}=z;q=z.data;let $=!1;if(i.placeholderData!==void 0&&q===void 0&&Q==="pending"){let K;f?.isPlaceholderData&&i.placeholderData===y?.placeholderData?(K=f.data,$=!0):K=typeof i.placeholderData=="function"?i.placeholderData(this.#d?.state.data,this.#d):i.placeholderData,K!==void 0&&(Q="success",q=hs(f?.data,K,i),_=!0)}if(i.select&&q!==void 0&&!$)if(f&&q===d?.data&&i.select===this.#h)q=this.#f;else try{this.#h=i.select,q=i.select(q),q=hs(f?.data,q,i),this.#f=q,this.#i=null}catch(K){this.#i=K}this.#i&&(Y=this.#i,q=this.#f,J=Date.now(),Q="error");const at=z.fetchStatus==="fetching",dt=Q==="pending",Tt=Q==="error",qt=dt&&at,k=q!==void 0,M={status:Q,fetchStatus:z.fetchStatus,isPending:dt,isSuccess:Q==="success",isError:Tt,isInitialLoading:qt,isLoading:qt,data:q,dataUpdatedAt:z.dataUpdatedAt,error:Y,errorUpdatedAt:J,failureCount:z.fetchFailureCount,failureReason:z.fetchFailureReason,errorUpdateCount:z.errorUpdateCount,isFetched:z.dataUpdateCount>0||z.errorUpdateCount>0,isFetchedAfterMount:z.dataUpdateCount>v.dataUpdateCount||z.errorUpdateCount>v.errorUpdateCount,isFetching:at,isRefetching:at&&!dt,isLoadingError:Tt&&!k,isPaused:z.fetchStatus==="paused",isPlaceholderData:_,isRefetchError:Tt&&k,isStale:xs(a,i),refetch:this.refetch,promise:this.#r};if(this.options.experimental_prefetchInRender){const K=I=>{M.status==="error"?I.reject(M.error):M.data!==void 0&&I.resolve(M.data)},G=()=>{const I=this.#r=M.promise=ys();K(I)},et=this.#r;switch(et.status){case"pending":a.queryHash===c.queryHash&&K(et);break;case"fulfilled":(M.status==="error"||M.data!==et.value)&&G();break;case"rejected":(M.status!=="error"||M.error!==et.reason)&&G();break}}return M}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,f=typeof s=="function"?s():s;if(f==="all"||!f&&!this.#v.size)return!0;const d=new Set(f??this.#v);return this.options.throwOnError&&d.add("error"),Object.keys(this.#l).some(y=>{const m=y;return this.#l[m]!==a[m]&&d.has(m)})};this.#x({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()}#x(a){wt.batch(()=>{a.listeners&&this.listeners.forEach(i=>{i(this.#l)}),this.#e.getQueryCache().notify({query:this.#t,type:"observerResultsUpdated"})})}};function h0(a,i){return we(i.enabled,a)!==!1&&a.state.data===void 0&&!(a.state.status==="error"&&i.retryOnMount===!1)}function Fh(a,i){return h0(a,i)||a.state.data!==void 0&&ms(a,i,i.refetchOnMount)}function ms(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&&xs(a,i)}return!1}function kh(a,i,c,s){return(a!==i||we(s.enabled,a)===!1)&&(!c.suspense||a.state.status!=="error")&&xs(a,c)}function xs(a,i){return we(i.enabled,a)!==!1&&a.isStaleByTime(Nn(i.staleTime,a))}function y0(a,i){return!Oi(a.getCurrentResult(),i)}function $h(a,i){const c=new Set(i);return a.filter(s=>!c.has(s))}function v0(a,i,c){const s=a.slice(0);return s[i]=c,s}var m0=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.#o(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(m=>m.observer.setOptions(m.defaultedQueryOptions));const f=s.map(m=>m.observer),d=f.map(m=>m.getCurrentResult()),y=f.some((m,v)=>m!==c[v]);c.length===f.length&&!y||(this.#a=f,this.#t=d,this.hasListeners()&&($h(c,f).forEach(m=>{m.destroy()}),$h(f,c).forEach(m=>{m.subscribe(v=>{this.#o(m,v)})}),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(f=>f.observer.getOptimisticResult(f.defaultedQueryOptions));return[s,f=>this.#d(f??s,i),()=>this.#f(s,c)]}#f(a,i){return i.map((c,s)=>{const f=a[s];return c.defaultedQueryOptions.notifyOnChangeProps?f:c.observer.trackResult(f,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=Os(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 f=this.#e.defaultQueryOptions(s),d=i.get(f.queryHash);d?c.push({defaultedQueryOptions:f,observer:d}):c.push({defaultedQueryOptions:f,observer:new Ja(this.#e,f)})}),c}#o(a,i){const c=this.#a.indexOf(a);c!==-1&&(this.#t=v0(this.#t,c,i),this.#c())}#c(){if(this.hasListeners()){const a=this.#u,i=this.#f(this.#t,this.#h),c=this.#d(i,this.#l?.combine);a!==c&&wt.batch(()=>{this.listeners.forEach(s=>{s(this.#t)})})}}},jy=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:xi()})}getOptimisticResult(a){return a.behavior=xi(),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:f,isRefetching:d,isError:y,isRefetchError:m}=s,v=c.fetchMeta?.fetchMore?.direction,p=y&&v==="forward",z=f&&v==="forward",_=y&&v==="backward",q=f&&v==="backward";return{...s,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:o0(i,c.data),hasPreviousPage:f0(i,c.data),isFetchNextPageError:p,isFetchingNextPage:z,isFetchPreviousPageError:_,isFetchingPreviousPage:q,isRefetchError:m&&!p&&!_,isRefetching:d&&!z&&!q}}},p0=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??Ty();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)})})}},zy=L.createContext(void 0),Fa=a=>{const i=L.useContext(zy);if(a)return a;if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},g0=({client:a,children:i})=>(L.useEffect(()=>(a.mount(),()=>{a.unmount()}),[a]),N.jsx(zy.Provider,{value:a,children:i})),My=L.createContext(!1),Cy=()=>L.useContext(My);My.Provider;function b0(){let a=!1;return{clearReset:()=>{a=!1},reset:()=>{a=!0},isReset:()=>a}}var S0=L.createContext(b0()),Dy=()=>L.useContext(S0),Ry=(a,i)=>{(a.suspense||a.throwOnError||a.experimental_prefetchInRender)&&(i.isReset()||(a.retryOnMount=!1))},Uy=a=>{L.useEffect(()=>{a.clearReset()},[a])},qy=({result:a,errorResetBoundary:i,throwOnError:c,query:s,suspense:f})=>a.isError&&!i.isReset()&&!a.isFetching&&s&&(f&&a.data===void 0||by(c,[a.error,s])),Es=(a,i)=>i.state.data===void 0,Qy=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))}},Ny=(a,i)=>a.isLoading&&a.isFetching&&!i,ps=(a,i)=>a?.suspense&&i.isPending,Ei=(a,i,c)=>i.fetchOptimistic(a).catch(()=>{c.clearReset()});function Hy({queries:a,...i},c){const s=Fa(c),f=Cy(),d=Dy(),y=L.useMemo(()=>a.map(Q=>{const $=s.defaultQueryOptions(Q);return $._optimisticResults=f?"isRestoring":"optimistic",$}),[a,s,f]);y.forEach(Q=>{Qy(Q),Ry(Q,d)}),Uy(d);const[m]=L.useState(()=>new m0(s,y,i)),[v,p,z]=m.getOptimisticResult(y,i.combine),_=!f&&i.subscribed!==!1;L.useSyncExternalStore(L.useCallback(Q=>_?m.subscribe(wt.batchCalls(Q)):le,[m,_]),()=>m.getCurrentResult(),()=>m.getCurrentResult()),L.useEffect(()=>{m.setQueries(y,i)},[y,i,m]);const Y=v.some((Q,$)=>ps(y[$],Q))?v.flatMap((Q,$)=>{const at=y[$];if(at){const dt=new Ja(s,at);if(ps(at,Q))return Ei(at,dt,d);Ny(Q,f)&&Ei(at,dt,d)}return[]}):[];if(Y.length>0)throw Promise.all(Y);const J=v.find((Q,$)=>{const at=y[$];return at&&qy({result:Q,errorResetBoundary:d,throwOnError:at.throwOnError,query:s.getQueryCache().get(at.queryHash),suspense:at.suspense})});if(J?.error)throw J.error;return p(z())}function ji(a,i,c){const s=Cy(),f=Dy(),d=Fa(c),y=d.defaultQueryOptions(a);d.getDefaultOptions().queries?._experimental_beforeQuery?.(y),y._optimisticResults=s?"isRestoring":"optimistic",Qy(y),Ry(y,f),Uy(f);const m=!d.getQueryCache().get(y.queryHash),[v]=L.useState(()=>new i(d,y)),p=v.getOptimisticResult(y),z=!s&&a.subscribed!==!1;if(L.useSyncExternalStore(L.useCallback(_=>{const q=z?v.subscribe(wt.batchCalls(_)):le;return v.updateResult(),q},[v,z]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),L.useEffect(()=>{v.setOptions(y)},[y,v]),ps(y,p))throw Ei(y,v,f);if(qy({result:p,errorResetBoundary:f,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&&Ny(p,s)&&(m?Ei(y,v,f):d.getQueryCache().get(y.queryHash)?.promise)?.catch(le).finally(()=>{v.updateResult()}),y.notifyOnChangeProps?p:v.trackResult(p)}function O0(a,i){return ji(a,Ja,i)}function _0(a,i){return ji({...a,enabled:!0,suspense:!0,throwOnError:Es,placeholderData:void 0},Ja,i)}function x0(a,i){return ji({...a,enabled:!0,suspense:!0,throwOnError:Es},jy,i)}function E0(a,i){return Hy({...a,queries:a.queries.map(c=>({...c,suspense:!0,throwOnError:Es,enabled:!0,placeholderData:void 0}))},i)}function T0(a,i){const c=Fa(i);c.getQueryState(a.queryKey)||c.prefetchQuery(a)}function A0(a,i){const c=Fa(i);c.getQueryState(a.queryKey)||c.prefetchInfiniteQuery(a)}function j0(a,i){const c=Fa(i),[s]=L.useState(()=>new p0(c,a));L.useEffect(()=>{s.setOptions(a)},[s,a]);const f=L.useSyncExternalStore(L.useCallback(y=>s.subscribe(wt.batchCalls(y)),[s]),()=>s.getCurrentResult(),()=>s.getCurrentResult()),d=L.useCallback((y,m)=>{s.mutate(y,m).catch(le)},[s]);if(f.error&&by(s.options.throwOnError,[f.error]))throw f.error;return{...f,mutate:d,mutateAsync:f.mutate}}function z0(a,i){return ji(a,jy,i)}function M0(a,i){if(a instanceof RegExp)return{keys:!1,pattern:a};var c,s,f,d,y=[],m="",v=a.split("/");for(v[0]||v.shift();f=v.shift();)c=f[0],c==="*"?(y.push(c),m+=f[1]==="?"?"(?:/(.*))?":"/(.*)"):c===":"?(s=f.indexOf("?",1),d=f.indexOf(".",1),y.push(f.substring(1,~s?s:~d?d:f.length)),m+=~s&&!~d?"(?:/([^/]+?))?":"/([^/]+?)",~d&&(m+=(~s?"?":"")+"\\"+f.substring(d))):m+="/"+f;return{keys:y,pattern:new RegExp("^"+m+(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 Ph;function C0(){if(Ph)return us;Ph=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,f=a.useEffect,d=a.useLayoutEffect,y=a.useDebugValue;function m(_,q){var Y=q(),J=s({inst:{value:Y,getSnapshot:q}}),Q=J[0].inst,$=J[1];return d(function(){Q.value=Y,Q.getSnapshot=q,v(Q)&&$({inst:Q})},[_,Y,q]),f(function(){return v(Q)&&$({inst:Q}),_(function(){v(Q)&&$({inst:Q})})},[_]),y(Y),Y}function v(_){var q=_.getSnapshot;_=_.value;try{var Y=q();return!c(_,Y)}catch{return!0}}function p(_,q){return q()}var z=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?p:m;return us.useSyncExternalStore=a.useSyncExternalStore!==void 0?a.useSyncExternalStore:z,us}var Wh;function D0(){return Wh||(Wh=1,as.exports=C0()),as.exports}var R0=D0();const U0=my.useInsertionEffect,q0=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Q0=q0?L.useLayoutEffect:L.useEffect,N0=U0||Q0,wy=a=>{const i=L.useRef([a,(...c)=>i[0](...c)]).current;return N0(()=>{i[0]=a}),i[1]},H0="popstate",Ts="pushState",As="replaceState",w0="hashchange",Ih=[H0,Ts,As,w0],B0=a=>{for(const i of Ih)addEventListener(i,a);return()=>{for(const i of Ih)removeEventListener(i,a)}},By=(a,i)=>R0.useSyncExternalStore(B0,a,i),Y0=()=>location.search,G0=({ssrSearch:a=""}={})=>By(Y0,()=>a),ty=()=>location.pathname,L0=({ssrPath:a}={})=>By(ty,a?()=>a:ty),X0=(a,{replace:i=!1,state:c=null}={})=>history[i?As:Ts](c,"",a),K0=(a={})=>[L0(a),X0],ey=Symbol.for("wouter_v3");if(typeof history<"u"&&typeof window[ey]>"u"){for(const a of[Ts,As]){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,ey,{value:!0})}const Z0=(a,i)=>i.toLowerCase().indexOf(a.toLowerCase())?"~"+i:i.slice(a.length)||"/",Yy=(a="")=>a==="/"?"":a,V0=(a,i)=>a[0]==="~"?a.slice(1):Yy(i)+a,J0=(a="",i)=>Z0(ny(Yy(a)),ny(i)),ny=a=>{try{return decodeURI(a)}catch{return a}},Gy={hook:K0,searchHook:G0,parser:M0,base:"",ssrPath:void 0,ssrSearch:void 0,hrefs:a=>a},Ly=L.createContext(Gy),zi=()=>L.useContext(Ly),Xy={},Ky=L.createContext(Xy),F0=()=>L.useContext(Ky),js=a=>{const[i,c]=a.hook(a);return[J0(a.base,i),wy((s,f)=>c(V0(s,a.base),f))]},Zy=(a,i,c,s)=>{const{pattern:f,keys:d}=i instanceof RegExp?{keys:!1,pattern:i}:a(i||"*",s),y=f.exec(c)||[],[m,...v]=y;return m!==void 0?[!0,(()=>{const p=d!==!1?Object.fromEntries(d.map((_,q)=>[_,v[q]])):y.groups;let z={...v};return p&&Object.assign(z,p),z})(),...s?[m]:[]]:[!1,null]},k0=({children:a,...i})=>{const c=zi(),s=i.hook?Gy:c;let f=s;const[d,y]=i.ssrPath?.split("?")??[];y&&(i.ssrSearch=y,i.ssrPath=d),i.hrefs=i.hrefs??i.hook?.hrefs;let m=L.useRef({}),v=m.current,p=v;for(let z in s){const _=z==="base"?s[z]+(i[z]||""):i[z]||s[z];v===p&&_!==p[z]&&(m.current=p={...p}),p[z]=_,_!==s[z]&&(f=p)}return L.createElement(Ly.Provider,{value:f,children:a})},ly=({children:a,component:i},c)=>i?L.createElement(i,{params:c}):typeof a=="function"?a(c):a,$0=a=>{let i=L.useRef(Xy),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},ay=({path:a,nest:i,match:c,...s})=>{const f=zi(),[d]=js(f),[y,m,v]=c??Zy(f.parser,a,d,i),p=$0({...F0(),...m});if(!y)return null;const z=v?L.createElement(k0,{base:v},ly(s,p)):ly(s,p);return L.createElement(Ky.Provider,{value:p,children:z})};L.forwardRef((a,i)=>{const c=zi(),[s,f]=js(c),{to:d="",href:y=d,onClick:m,asChild:v,children:p,className:z,replace:_,state:q,...Y}=a,J=wy($=>{$.ctrlKey||$.metaKey||$.altKey||$.shiftKey||$.button!==0||(m?.($),$.defaultPrevented||($.preventDefault(),f(y,a)))}),Q=c.hrefs(y[0]==="~"?y.slice(1):c.base+y,c);return v&&L.isValidElement(p)?L.cloneElement(p,{onClick:J,href:Q}):L.createElement("a",{...Y,onClick:J,href:Q,className:z?.call?z(s===y):z,children:p,ref:i})});const Vy=a=>Array.isArray(a)?a.flatMap(i=>Vy(i&&i.type===L.Fragment?i.props.children:i)):[a],P0=({children:a,location:i})=>{const c=zi(),[s]=js(c);for(const f of Vy(a)){let d=0;if(L.isValidElement(f)&&(d=Zy(c.parser,f.props.path,i||s,f.props.nest))[0])return L.cloneElement(f,{match:d})}return null};function il(a){return!!a&&!Array.isArray(a)&&typeof a=="object"}const W0=typeof Symbol=="function"&&!!Symbol.asyncIterator;function Jy(a){return W0&&il(a)&&Symbol.asyncIterator in a}var I0=Object.create,Fy=Object.defineProperty,tg=Object.getOwnPropertyDescriptor,ky=Object.getOwnPropertyNames,eg=Object.getPrototypeOf,ng=Object.prototype.hasOwnProperty,ka=(a,i)=>function(){return i||(0,a[ky(a)[0]])((i={exports:{}}).exports,i),i.exports},lg=(a,i,c,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(var f=ky(i),d=0,y=f.length,m;d<y;d++)m=f[d],!ng.call(a,m)&&m!==c&&Fy(a,m,{get:(v=>i[v]).bind(null,m),enumerable:!(s=tg(i,m))||s.enumerable});return a},Mi=(a,i,c)=>(c=a!=null?I0(eg(a)):{},lg(Fy(c,"default",{value:a,enumerable:!0}),a));const $y=()=>{},uy=a=>{Object.freeze&&Object.freeze(a)};function Py(a,i,c){var s;const f=i.join(".");return(s=c[f])!==null&&s!==void 0||(c[f]=new Proxy($y,{get(d,y){if(!(typeof y!="string"||y==="then"))return Py(a,[...i,y],c)},apply(d,y,m){const v=i[i.length-1];let p={args:m,path:i};return v==="call"?p={args:m.length>=2?[m[1]]:[],path:i.slice(0,-1)}:v==="apply"&&(p={args:m.length>=2?m[1]:[],path:i.slice(0,-1)}),uy(p.args),uy(p.path),a(p)}})),c[f]}const Ci=a=>Py(a,[],Object.create(null)),zs=a=>new Proxy($y,{get(i,c){if(c!=="then")return a(c)}});var Wy=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(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},i.exports.__esModule=!0,i.exports.default=i.exports,c(s)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),ag=ka({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var c=Wy().default;function s(f,d){if(c(f)!="object"||!f)return f;var y=f[Symbol.toPrimitive];if(y!==void 0){var m=y.call(f,d||"default");if(c(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(f)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),ug=ka({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var c=Wy().default,s=ag();function f(d){var y=s(d,"string");return c(y)=="symbol"?y:y+""}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}}),Iy=ka({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var c=ug();function s(f,d,y){return(d=c(d))in f?Object.defineProperty(f,d,{value:y,enumerable:!0,configurable:!0,writable:!0}):f[d]=y,f}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=Iy();function s(d,y){var m=Object.keys(d);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(d);y&&(v=v.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),m.push.apply(m,v)}return m}function f(d){for(var y=1;y<arguments.length;y++){var m=arguments[y]!=null?arguments[y]:{};y%2?s(Object(m),!0).forEach(function(v){c(d,v,m[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(m)):s(Object(m)).forEach(function(v){Object.defineProperty(d,v,Object.getOwnPropertyDescriptor(m,v))})}return d}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}});Mi(Ms());Mi(Iy());var mi=Mi(Ms());function ig(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 rg(a,i){let c;try{c=ig(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}Mi(Ms());function Di(a){const i={subscribe(c){let s=null,f=!1,d=!1,y=!1;function m(){if(s===null){y=!0;return}d||(d=!0,typeof s=="function"?s():s&&s.unsubscribe())}return s=a({next(v){var p;f||(p=c.next)===null||p===void 0||p.call(c,v)},error(v){var p;f||(f=!0,(p=c.error)===null||p===void 0||p.call(c,v),m())},complete(){var v;f||(f=!0,(v=c.complete)===null||v===void 0||v.call(c),m())}}),y&&m(),{unsubscribe:m}},pipe(...c){return c.reduce(cg,i)}};return i}function cg(a,i){return i(a)}function sg(a){const i=new AbortController;return new Promise((s,f)=>{let d=!1;function y(){d||(d=!0,m.unsubscribe())}i.signal.addEventListener("abort",()=>{f(i.signal.reason)});const m=a.subscribe({next(v){d=!0,s(v),y()},error(v){f(v)},complete(){i.abort(),y()}})})}var og=Object.create,tv=Object.defineProperty,fg=Object.getOwnPropertyDescriptor,ev=Object.getOwnPropertyNames,dg=Object.getPrototypeOf,hg=Object.prototype.hasOwnProperty,wn=(a,i)=>function(){return i||(0,a[ev(a)[0]])((i={exports:{}}).exports,i),i.exports},yg=(a,i,c,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(var f=ev(i),d=0,y=f.length,m;d<y;d++)m=f[d],!hg.call(a,m)&&m!==c&&tv(a,m,{get:(v=>i[v]).bind(null,m),enumerable:!(s=fg(i,m))||s.enumerable});return a},cl=(a,i,c)=>(c=a!=null?og(dg(a)):{},yg(i||!a||!a.__esModule?tv(c,"default",{value:a,enumerable:!0}):c,a)),vg=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/objectWithoutPropertiesLoose.js"(a,i){function c(s,f){if(s==null)return{};var d={};for(var y in s)if({}.hasOwnProperty.call(s,y)){if(f.includes(y))continue;d[y]=s[y]}return d}i.exports=c,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/objectWithoutProperties.js"(a,i){var c=vg();function s(f,d){if(f==null)return{};var y,m,v=c(f,d);if(Object.getOwnPropertySymbols){var p=Object.getOwnPropertySymbols(f);for(m=0;m<p.length;m++)y=p[m],d.includes(y)||{}.propertyIsEnumerable.call(f,y)&&(v[y]=f[y])}return v}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),nv=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(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},i.exports.__esModule=!0,i.exports.default=i.exports,c(s)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),pg=wn({"../../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(f,d){if(c(f)!="object"||!f)return f;var y=f[Symbol.toPrimitive];if(y!==void 0){var m=y.call(f,d||"default");if(c(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(f)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),gg=wn({"../../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=pg();function f(d){var y=s(d,"string");return c(y)=="symbol"?y:y+""}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}}),bg=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/defineProperty.js"(a,i){var c=gg();function s(f,d,y){return(d=c(d))in f?Object.defineProperty(f,d,{value:y,enumerable:!0,configurable:!0,writable:!0}):f[d]=y,f}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=bg();function s(d,y){var m=Object.keys(d);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(d);y&&(v=v.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),m.push.apply(m,v)}return m}function f(d){for(var y=1;y<arguments.length;y++){var m=arguments[y]!=null?arguments[y]:{};y%2?s(Object(m),!0).forEach(function(v){c(d,v,m[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(m)):s(Object(m)).forEach(function(v){Object.defineProperty(d,v,Object.getOwnPropertyDescriptor(m,v))})}return d}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}}),Sg=cl(mg(),1),iy=cl($a(),1);const Og=["cursor","direction"];function Ke(a,i,c){const s=a.flatMap(f=>f.split("."));if(!i&&(!c||c==="any"))return s.length?[s]:[];if(c==="infinite"&&il(i)&&("direction"in i||"cursor"in i)){const{cursor:f,direction:d}=i,y=(0,Sg.default)(i,Og);return[s,{input:y,type:"infinite"}]}return[s,(0,iy.default)((0,iy.default)({},typeof i<"u"&&i!==Ee&&{input:i}),c&&c!=="any"&&{type:c})]}function bi(a){return Ke(a,void 0,"any")}var _g=Object.create,lv=Object.defineProperty,xg=Object.getOwnPropertyDescriptor,av=Object.getOwnPropertyNames,Eg=Object.getPrototypeOf,Tg=Object.prototype.hasOwnProperty,Ze=(a,i)=>function(){return i||(0,a[av(a)[0]])((i={exports:{}}).exports,i),i.exports},Ag=(a,i,c,s)=>{if(i&&typeof i=="object"||typeof i=="function")for(var f=av(i),d=0,y=f.length,m;d<y;d++)m=f[d],!Tg.call(a,m)&&m!==c&&lv(a,m,{get:(v=>i[v]).bind(null,m),enumerable:!(s=xg(i,m))||s.enumerable});return a},Lt=(a,i,c)=>(c=a!=null?_g(Eg(a)):{},Ag(i||!a||!a.__esModule?lv(c,"default",{value:a,enumerable:!0}):c,a)),uv=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(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},i.exports.__esModule=!0,i.exports.default=i.exports,c(s)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),jg=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPrimitive.js"(a,i){var c=uv().default;function s(f,d){if(c(f)!="object"||!f)return f;var y=f[Symbol.toPrimitive];if(y!==void 0){var m=y.call(f,d||"default");if(c(m)!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(d==="string"?String:Number)(f)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),zg=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/toPropertyKey.js"(a,i){var c=uv().default,s=jg();function f(d){var y=s(d,"string");return c(y)=="symbol"?y:y+""}i.exports=f,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=zg();function s(f,d,y){return(d=c(d))in f?Object.defineProperty(f,d,{value:y,enumerable:!0,configurable:!0,writable:!0}):f[d]=y,f}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 m=Object.keys(d);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(d);y&&(v=v.filter(function(p){return Object.getOwnPropertyDescriptor(d,p).enumerable})),m.push.apply(m,v)}return m}function f(d){for(var y=1;y<arguments.length;y++){var m=arguments[y]!=null?arguments[y]:{};y%2?s(Object(m),!0).forEach(function(v){c(d,v,m[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(d,Object.getOwnPropertyDescriptors(m)):s(Object(m)).forEach(function(v){Object.defineProperty(d,v,Object.getOwnPropertyDescriptor(m,v))})}return d}i.exports=f,i.exports.__esModule=!0,i.exports.default=i.exports}});function Mg(a){return i=>{let c=0,s=null;const f=[];function d(){s||(s=i.subscribe({next(m){for(const p of f){var v;(v=p.next)===null||v===void 0||v.call(p,m)}},error(m){for(const p of f){var v;(v=p.error)===null||v===void 0||v.call(p,m)}},complete(){for(const v of f){var m;(m=v.complete)===null||m===void 0||m.call(v)}}}))}function y(){if(c===0&&s){const m=s;s=null,m.unsubscribe()}}return Di(m=>(c++,f.push(m),d(),{unsubscribe(){c--,y();const v=f.findIndex(p=>p===m);v>-1&&f.splice(v,1)}}))}}function Cg(a){let i=a;const c=[],s=y=>{i!==void 0&&y.next(i),c.push(y)},f=y=>{c.splice(c.indexOf(y),1)},d=Di(y=>(s(y),()=>{f(y)}));return d.next=y=>{if(i!==y){i=y;for(const m of c)m.next(y)}},d.get=()=>i,d}function Dg(a){return Di(i=>{function c(f=0,d=a.op){const y=a.links[f];if(!y)throw new Error("No more links to execute - did you forget to add an ending link?");return y({op:d,next(v){return c(f+1,v)}})}return c().subscribe(i)})}var pi=Lt(sl(),1),Fl=Lt(Be(),1);function Rg(a){return a instanceof Ti}function Ug(a){return il(a)&&il(a.error)&&typeof a.error.code=="number"&&typeof a.error.message=="string"}function qg(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,f;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||(f=c.result)===null||f===void 0?void 0:f.error.data,this.name="TRPCClientError",Object.setPrototypeOf(this,Si.prototype)}static from(i,c={}){const s=i;return Rg(s)?(c.meta&&(s.meta=(0,Fl.default)((0,Fl.default)({},s.meta),c.meta)),s):Ug(s)?new Si(s.error.message,(0,Fl.default)((0,Fl.default)({},c),{},{result:s})):new Si(qg(s,"Unknown error"),(0,Fl.default)((0,Fl.default)({},c),{},{cause:s}))}};function Qg(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 ry=a=>typeof a=="function";function Ng(a){if(a)return a;if(typeof window<"u"&&ry(window.fetch))return window.fetch;if(typeof globalThis<"u"&&ry(globalThis.fetch))return globalThis.fetch;throw new Error("No fetch implementation found")}var Za=Lt(Be());function Hg(a){return{url:a.url.toString(),fetch:a.fetch,transformer:Qg(a.transformer),methodOverride:a.methodOverride}}function wg(a){const i={};for(let c=0;c<a.length;c++){const s=a[c];i[c]=s}return i}const Bg={query:"GET",mutation:"POST",subscription:"PATCH"};function iv(a){return"input"in a?a.transformer.input.serialize(a.input):wg(a.inputs.map(i=>a.transformer.input.serialize(i)))}const rv=a=>{const i=a.url.split("?");let s=i[0].replace(/\/$/,"")+"/"+a.path;const f=[];if(i[1]&&f.push(i[1]),"inputs"in a&&f.push("batch=1"),a.type==="query"||a.type==="subscription"){const d=iv(a);d!==void 0&&a.methodOverride!=="POST"&&f.push(`input=${encodeURIComponent(JSON.stringify(d))}`)}return f.length&&(s+="?"+f.join("&")),s},Yg=a=>{if(a.type==="query"&&a.methodOverride!=="POST")return;const i=iv(a);return i!==void 0?JSON.stringify(i):void 0},Gg=a=>Zg((0,Za.default)((0,Za.default)({},a),{},{contentTypeHeader:"application/json",getUrl:rv,getBody:Yg}));var Lg=class extends Error{constructor(){const a="AbortError";super(a),this.name=a,this.message=a}};const Xg=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 Lg};async function Kg(a){var i;Xg(a.signal);const c=a.getUrl(a),s=a.getBody(a),f=(i=a.methodOverride)!==null&&i!==void 0?i:Bg[a.type],d=await(async()=>{const m=await a.headers();return Symbol.iterator in m?Object.fromEntries(m):m})(),y=(0,Za.default)((0,Za.default)((0,Za.default)({},a.contentTypeHeader&&f!=="GET"?{"content-type":a.contentTypeHeader}:{}),a.trpcAcceptHeader?{"trpc-accept":a.trpcAcceptHeader}:void 0),d);return Ng(a.fetch)(c,{method:f,signal:a.signal,body:s,headers:y})}async function Zg(a){const i={},c=await Kg(a);i.response=c;const s=await c.json();return i.responseJSON=s,{json:s,meta:i}}Lt(Be(),1);const cy=()=>{throw new Error("Something went wrong. Please submit an issue at https://github.com/trpc/trpc/issues/new")};function sy(a){let i=null,c=null;const s=()=>{clearTimeout(c),c=null,i=null};function f(m){const v=[[]];let p=0;for(;;){const q=m[p];if(!q)break;const Y=v[v.length-1];if(q.aborted){var z;(z=q.reject)===null||z===void 0||z.call(q,new Error("Aborted")),p++;continue}if(a.validate(Y.concat(q).map(Q=>Q.key))){Y.push(q),p++;continue}if(Y.length===0){var _;(_=q.reject)===null||_===void 0||_.call(q,new Error("Input is too big for a single dispatch")),p++;continue}v.push([])}return v}function d(){const m=f(i);s();for(const v of m){if(!v.length)continue;const p={items:v};for(const _ of v)_.batch=p;a.fetch(p.items.map(_=>_.key)).then(async _=>{await Promise.all(_.map(async(Y,J)=>{const Q=p.items[J];try{var $;const dt=await Promise.resolve(Y);($=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 Y of p.items){var q;(q=Y.reject)===null||q===void 0||q.call(Y,new Error("Missing result")),Y.batch=null}}).catch(_=>{for(const Y of p.items){var q;(q=Y.reject)===null||q===void 0||q.call(Y,_),Y.batch=null}})}}function y(m){var v;const p={aborted:!1,key:m,batch:null,resolve:cy,reject:cy},z=new Promise((_,q)=>{var Y;p.reject=q,p.resolve=_,(Y=i)!==null&&Y!==void 0||(i=[]),i.push(p)});return(v=c)!==null&&v!==void 0||(c=setTimeout(d)),z}return{load:y}}function Vg(...a){const i=new AbortController,c=a.length;let s=0;const f=()=>{++s===c&&i.abort()};for(const d of a)d?.aborted?f():d?.addEventListener("abort",f,{once:!0});return i.signal}var gi=Lt(Be(),1);function Jg(a){var i,c;const s=Hg(a),f=(i=a.maxURLLength)!==null&&i!==void 0?i:1/0,d=(c=a.maxItems)!==null&&c!==void 0?c:1/0;return()=>{const y=z=>({validate(_){if(f===1/0&&d===1/0)return!0;if(_.length>d)return!1;const q=_.map(Q=>Q.path).join(","),Y=_.map(Q=>Q.input);return rv((0,gi.default)((0,gi.default)({},s),{},{type:z,path:q,inputs:Y,signal:null})).length<=f},async fetch(_){const q=_.map(dt=>dt.path).join(","),Y=_.map(dt=>dt.input),J=Vg(..._.map(dt=>dt.signal)),Q=await Gg((0,gi.default)((0,gi.default)({},s),{},{path:q,inputs:Y,type:z,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}))}}),m=sy(y("query")),v=sy(y("mutation")),p={query:m,mutation:v};return({op:z})=>Di(_=>{/* istanbul ignore if -- @preserve */if(z.type==="subscription")throw new Error("Subscriptions are unsupported by `httpLink` - use `httpSubscriptionLink` or `wsLink`");const Y=p[z.type].load(z);let J;return Y.then(Q=>{J=Q;const $=rg(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 cv=(a,...i)=>typeof a=="function"?a(...i):a;Lt(sl(),1);function Fg(){let a,i;return{promise:new Promise((s,f)=>{a=s,i=f}),resolve:a,reject:i}}async function kg(a){const i=await cv(a.url);if(!a.connectionParams)return i;const s=`${i.includes("?")?"&":"?"}connectionParams=1`;return i+s}async function $g(a){const i={method:"connectionParams",data:await cv(a)};return JSON.stringify(i)}Lt(sl(),1);var al=Lt(sl(),1);function Pg(a){const{promise:i,resolve:c,reject:s}=Fg();return a.addEventListener("open",()=>{a.removeEventListener("error",s),c()}),a.addEventListener("error",s),i}function Wg(a,{intervalMs:i,pongTimeoutMs:c}){let s,f;function d(){s=setTimeout(()=>{a.send("PING"),f=setTimeout(()=>{a.close()},c)},i)}function y(){clearTimeout(s),d()}function m(){clearTimeout(f),y()}a.addEventListener("open",d),a.addEventListener("message",({data:v})=>{clearTimeout(s),d(),v==="PONG"&&m()}),a.addEventListener("close",()=>{clearTimeout(s),clearTimeout(f)})}var Ig=class gs{constructor(i){var c;if((0,al.default)(this,"id",++gs.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",Cg(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=++gs.connectCount;const c=kg(i.urlOptions).then(s=>new i.WebSocketPonyfill(s));i.openPromise=c.then(async s=>{i.ws=s,s.addEventListener("message",function({data:f}){f==="PING"&&this.send("PONG")}),i.keepAliveOpts.enabled&&Wg(s,i.keepAliveOpts),s.addEventListener("close",()=>{i.ws===s&&(i.ws=null)}),await Pg(s),i.urlOptions.connectionParams&&s.send(await $g(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)(Ig,"connectCount",0);Lt(sl(),1);Lt(Be(),1);var rs=Lt(sl(),1),oy=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 Dg({links:this.links,op:(0,oy.default)((0,oy.default)({},a),{},{context:(i=a.context)!==null&&i!==void 0?i:{},id:++this.requestId})}).pipe(Mg())}async requestAsPromise(a){var i=this;try{const c=i.$request(a);return(await sg(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(f){switch(f.result.type){case"state":{var d;(d=c.onConnectionStateChange)===null||d===void 0||d.call(c,f.result);break}case"started":{var y;(y=c.onStarted)===null||y===void 0||y.call(c,{context:f.context});break}case"stopped":{var m;(m=c.onStopped)===null||m===void 0||m.call(c);break}case"data":case void 0:{var v;(v=c.onData)===null||v===void 0||v.call(c,f.result.data);break}}},error(f){var d;(d=c.onError)===null||d===void 0||d.call(c,f)},complete(){var f;(f=c.onComplete)===null||f===void 0||f.call(c)}})}};const sv=Symbol.for("trpc_untypedClient"),tb={query:"query",mutate:"mutation",subscribe:"subscription"},eb=a=>tb[a];function ov(a){const i=Ci(({path:c,args:s})=>{const f=[...c],d=eb(f.pop()),y=f.join(".");return a[d](y,...s)});return zs(c=>c===sv?a:i[c])}function nb(a){const i=new Ri(a);return ov(i)}function Cs(a){return a[sv]}Lt(Be(),1);Lt(Be(),1);var lb=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(a,i){function c(f){var d,y,m,v=2;for(typeof Symbol<"u"&&(y=Symbol.asyncIterator,m=Symbol.iterator);v--;){if(y&&(d=f[y])!=null)return d.call(f);if(m&&(d=f[m])!=null)return new s(d.call(f));y="@@asyncIterator",m="@@iterator"}throw new TypeError("Object is not async iterable")}function s(f){function d(y){if(Object(y)!==y)return Promise.reject(new TypeError(y+" is not an object."));var m=y.done;return Promise.resolve(y.value).then(function(v){return{value:v,done:m}})}return s=function(m){this.s=m,this.n=m.next},s.prototype={s:null,n:null,next:function(){return d(this.n.apply(this.s,arguments))},return:function(m){var v=this.s.return;return v===void 0?Promise.resolve({value:m,done:!0}):d(v.apply(this.s,arguments))},throw:function(m){var v=this.s.return;return v===void 0?Promise.reject(m):d(v.apply(this.s,arguments))}},new s(f)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}});Lt(lb(),1);Lt(Be(),1);var ab=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(m,v){var p=Error();return p.name="SuppressedError",p.error=m,p.suppressed=v,p},f={},d=[];function y(m,v){if(v!=null){if(Object(v)!==v)throw new TypeError("using declarations can only be used with objects, functions, null, or undefined.");if(m)var p=v[Symbol.asyncDispose||Symbol.for("Symbol.asyncDispose")];if(p===void 0&&(p=v[Symbol.dispose||Symbol.for("Symbol.dispose")],m))var z=p;if(typeof p!="function")throw new TypeError("Object is not disposable.");z&&(p=function(){try{z.call(v)}catch(q){return Promise.reject(q)}}),d.push({v,d:p,a:m})}else m&&d.push({d:v,a:m});return v}return{e:f,u:y.bind(null,!1),a:y.bind(null,!0),d:function(){var v,p=this.e,z=0;function _(){for(;v=d.pop();)try{if(!v.a&&z===1)return z=0,d.push(v),Promise.resolve().then(_);if(v.d){var Y=v.d.call(v.v);if(v.a)return z|=2,Promise.resolve(Y).then(_,q)}else z|=1}catch(J){return q(J)}if(z===1)return p!==f?Promise.reject(p):Promise.resolve();if(p!==f)throw p}function q(Y){return p=p!==f?new s(Y,p):Y,_()}return _()}}}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),fv=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/OverloadYield.js"(a,i){function c(s,f){this.v=s,this.k=f}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),ub=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/awaitAsyncGenerator.js"(a,i){var c=fv();function s(f){return new c(f,0)}i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}}),ib=Ze({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/wrapAsyncGenerator.js"(a,i){var c=fv();function s(d){return function(){return new f(d.apply(this,arguments))}}function f(d){var y,m;function v(z,_){try{var q=d[z](_),Y=q.value,J=Y instanceof c;Promise.resolve(J?Y.v:Y).then(function(Q){if(J){var $=z==="return"?"return":"next";if(!Y.k||Q.done)return v($,Q);Q=d[$](Q).value}p(q.done?"return":"normal",Q)},function(Q){v("throw",Q)})}catch(Q){p("throw",Q)}}function p(z,_){switch(z){case"return":y.resolve({value:_,done:!0});break;case"throw":y.reject(_);break;default:y.resolve({value:_,done:!1})}(y=y.next)?v(y.key,y.arg):m=null}this._invoke=function(z,_){return new Promise(function(q,Y){var J={key:z,arg:_,resolve:q,reject:Y,next:null};m?m=m.next=J:(y=m=J,v(z,_))})},typeof d.return!="function"&&(this.return=void 0)}f.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},f.prototype.next=function(d){return this._invoke("next",d)},f.prototype.throw=function(d){return this._invoke("throw",d)},f.prototype.return=function(d){return this._invoke("return",d)},i.exports=s,i.exports.__esModule=!0,i.exports.default=i.exports}});Lt(ab(),1);Lt(ub(),1);Lt(ib(),1);Lt(Be(),1);function rb(a){return Ci(({path:i,args:c})=>{var s;const f=[...i],d=f.pop();if(d==="useMutation")return a[d](f,...c);if(d==="_def")return{path:f};const[y,...m]=c,v=(s=m[0])!==null&&s!==void 0?s:{};return a[d](f,y,v)})}var cs;const cb=["client","ssrContext","ssrState","abortOnUnmount"],sb=(cs=L.createContext)===null||cs===void 0?void 0:cs.call(my,null),ob=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 fb(a){return Ci(i=>{const c=[...i.path],s=c.pop(),f=[...i.args],d=f.shift(),y=ob(s),m=Ke(c,d,y);return{infiniteQueryOptions:()=>a.infiniteQueryOptions(c,m,f[0]),queryOptions:()=>a.queryOptions(c,m,...f),fetch:()=>a.fetchQuery(m,...f),fetchInfinite:()=>a.fetchInfiniteQuery(m,f[0]),prefetch:()=>a.prefetchQuery(m,...f),prefetchInfinite:()=>a.prefetchInfiniteQuery(m,f[0]),ensureData:()=>a.ensureQueryData(m,...f),invalidate:()=>a.invalidateQueries(m,...f),reset:()=>a.resetQueries(m,...f),refetch:()=>a.refetchQueries(m,...f),cancel:()=>a.cancelQuery(m,...f),setData:()=>{a.setQueryData(m,f[0],f[1])},setQueriesData:()=>a.setQueriesData(m,f[0],f[1],f[2]),setInfiniteData:()=>{a.setInfiniteQueryData(m,f[0],f[1])},getData:()=>a.getQueryData(m),getInfiniteData:()=>a.getInfiniteQueryData(m),setMutationDefaults:()=>a.setMutationDefaults(bi(c),d),getMutationDefaults:()=>a.getMutationDefaults(bi(c)),isMutating:()=>a.isMutating({mutationKey:bi(c)})}[s]()})}function db(a){const i=ov(a.client),c=fb(a);return zs(s=>{const f=s;return f==="client"?i:cb.includes(f)?a[f]:c[s]})}var hb=cl($a(),1);function fy(a){const i=a instanceof Ri?a:Cs(a);return Ci(c=>{const s=c.path,f=s.join("."),[d,y]=c.args;return(0,hb.default)({queryKey:Ke(s,d,"query"),queryFn:()=>i.query(f,d,y?.trpc)},y)})}var ss=cl($a(),1);function ie(a,i,c){var s;const f=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[f.join("."),d,i?.trpc]}var yb=wn({"../../node_modules/.pnpm/@oxc-project+runtime@0.72.2/node_modules/@oxc-project/runtime/src/helpers/asyncIterator.js"(a,i){function c(f){var d,y,m,v=2;for(typeof Symbol<"u"&&(y=Symbol.asyncIterator,m=Symbol.iterator);v--;){if(y&&(d=f[y])!=null)return d.call(f);if(m&&(d=f[m])!=null)return new s(d.call(f));y="@@asyncIterator",m="@@iterator"}throw new TypeError("Object is not async iterable")}function s(f){function d(y){if(Object(y)!==y)return Promise.reject(new TypeError(y+" is not an object."));var m=y.done;return Promise.resolve(y.value).then(function(v){return{value:v,done:m}})}return s=function(m){this.s=m,this.n=m.next},s.prototype={s:null,n:null,next:function(){return d(this.n.apply(this.s,arguments))},return:function(m){var v=this.s.return;return v===void 0?Promise.resolve({value:m,done:!0}):d(v.apply(this.s,arguments))},throw:function(m){var v=this.s.return;return v===void 0?Promise.reject(m):d(v.apply(this.s,arguments))}},new s(f)}i.exports=c,i.exports.__esModule=!0,i.exports.default=i.exports}}),vb=cl(yb(),1);function bs(a){return{path:a.path.join(".")}}function Ka(a){const i=bs(a);return L.useMemo(()=>i,[i])}async function dv(a,i,c){const f=i.getQueryCache().build(i,{queryKey:c});f.setState({data:[],status:"success"});const d=[];var y=!1,m=!1,v;try{for(var p=(0,vb.default)(a),z;y=!(z=await p.next()).done;y=!1){const _=z.value;d.push(_),f.setState({data:[...d]})}}catch(_){m=!0,v=_}finally{try{y&&p.return!=null&&await p.return()}finally{if(m)throw v}}return d}var xt=cl($a(),1);function mb(a){const{client:i,queryClient:c}=a,s=i instanceof Ri?i:Cs(i);return{infiniteQueryOptions:(f,d,y)=>{var m,v;const p=((m=d[1])===null||m===void 0?void 0:m.input)===Ee,z=async _=>{var q;const Y=(0,xt.default)((0,xt.default)({},y),{},{trpc:(0,xt.default)((0,xt.default)({},y?.trpc),!(y==null||(q=y.trpc)===null||q===void 0)&&q.abortOnUnmount?{signal:_.signal}:{signal:null})});return await s.query(...ie(d,Y,{direction:_.direction,pageParam:_.pageParam}))};return Object.assign((0,xt.default)((0,xt.default)({},y),{},{initialData:y?.initialData,queryKey:d,queryFn:p?Ee:z,initialPageParam:(v=y?.initialCursor)!==null&&v!==void 0?v:null}),{trpc:bs({path:f})})},queryOptions:(f,d,y)=>{var m;const v=((m=d[1])===null||m===void 0?void 0:m.input)===Ee,p=async z=>{var _;const q=(0,xt.default)((0,xt.default)({},y),{},{trpc:(0,xt.default)((0,xt.default)({},y?.trpc),!(y==null||(_=y.trpc)===null||_===void 0)&&_.abortOnUnmount?{signal:z.signal}:{signal:null})}),Y=await s.query(...ie(d,q));return Jy(Y)?dv(Y,c,d):Y};return Object.assign((0,xt.default)((0,xt.default)({},y),{},{initialData:y?.initialData,queryKey:d,queryFn:v?Ee:p}),{trpc:bs({path:f})})},fetchQuery:(f,d)=>c.fetchQuery((0,xt.default)((0,xt.default)({},d),{},{queryKey:f,queryFn:()=>s.query(...ie(f,d))})),fetchInfiniteQuery:(f,d)=>{var y;return c.fetchInfiniteQuery((0,xt.default)((0,xt.default)({},d),{},{queryKey:f,queryFn:({pageParam:m,direction:v})=>s.query(...ie(f,d,{pageParam:m,direction:v})),initialPageParam:(y=d?.initialCursor)!==null&&y!==void 0?y:null}))},prefetchQuery:(f,d)=>c.prefetchQuery((0,xt.default)((0,xt.default)({},d),{},{queryKey:f,queryFn:()=>s.query(...ie(f,d))})),prefetchInfiniteQuery:(f,d)=>{var y;return c.prefetchInfiniteQuery((0,xt.default)((0,xt.default)({},d),{},{queryKey:f,queryFn:({pageParam:m,direction:v})=>s.query(...ie(f,d,{pageParam:m,direction:v})),initialPageParam:(y=d?.initialCursor)!==null&&y!==void 0?y:null}))},ensureQueryData:(f,d)=>c.ensureQueryData((0,xt.default)((0,xt.default)({},d),{},{queryKey:f,queryFn:()=>s.query(...ie(f,d))})),invalidateQueries:(f,d,y)=>c.invalidateQueries((0,xt.default)((0,xt.default)({},d),{},{queryKey:f}),y),resetQueries:(f,d,y)=>c.resetQueries((0,xt.default)((0,xt.default)({},d),{},{queryKey:f}),y),refetchQueries:(f,d,y)=>c.refetchQueries((0,xt.default)((0,xt.default)({},d),{},{queryKey:f}),y),cancelQuery:(f,d)=>c.cancelQueries({queryKey:f},d),setQueryData:(f,d,y)=>c.setQueryData(f,d,y),setQueriesData:(f,d,y,m)=>c.setQueriesData((0,xt.default)((0,xt.default)({},d),{},{queryKey:f}),y,m),getQueryData:f=>c.getQueryData(f),setInfiniteQueryData:(f,d,y)=>c.setQueryData(f,d,y),getInfiniteQueryData:f=>c.getQueryData(f),setMutationDefaults:(f,d)=>{const y=f[0],m=v=>s.mutation(...ie([y,{input:v}],a));return c.setMutationDefaults(f,typeof d=="function"?d({canonicalMutationFn:m}):d)},getMutationDefaults:f=>c.getMutationDefaults(f),isMutating:f=>c.isMutating((0,xt.default)((0,xt.default)({},f),{},{exact:!0}))}}var V=cl($a());const dy=(a,i)=>new Proxy(a,{get(s,f){return i(f),s[f]}});function pb(a){var i,c;const s=(i=void 0)!==null&&i!==void 0?i:k=>k.originalFn(),f=(c=void 0)!==null&&c!==void 0?c:sb,d=nb,y=k=>{var X;const{abortOnUnmount:M=!1,queryClient:K,ssrContext:G}=k,[et,I]=L.useState((X=k.ssrState)!==null&&X!==void 0?X:!1),tt=k.client instanceof Ri?k.client:Cs(k.client),ht=L.useMemo(()=>mb({client:tt,queryClient:K}),[tt,K]),it=L.useMemo(()=>(0,V.default)({abortOnUnmount:M,queryClient:K,client:tt,ssrContext:G??null,ssrState:et},ht),[M,tt,ht,K,G,et]);return L.useEffect(()=>{I(st=>st?"mounted":!1)},[]),N.jsx(f.Provider,{value:it,children:k.children})};function m(){const k=L.useContext(f);if(!k)throw new Error("Unable to find tRPC Context. Did you forget to wrap your App inside `withTRPC` HoC?");return k}function v(k,X){var M;const{queryClient:K,ssrState:G}=m();return G&&G!=="mounted"&&((M=K.getQueryCache().find({queryKey:k}))===null||M===void 0?void 0:M.state.status)==="error"?(0,V.default)({retryOnMount:!1},X):X}function p(k,X,M){var K,G,et,I,tt;const ht=m(),{abortOnUnmount:it,client:st,ssrState:T,queryClient:H,prefetchQuery:Z}=ht,ut=Ke(k,X,"query"),yt=H.getQueryDefaults(ut),b=X===Ee;typeof window>"u"&&T==="prepass"&&(M==null||(K=M.trpc)===null||K===void 0?void 0:K.ssr)!==!1&&((G=M?.enabled)!==null&&G!==void 0?G:yt?.enabled)!==!1&&!b&&!H.getQueryCache().find({queryKey:ut})&&Z(ut,M);const D=v(ut,(0,V.default)((0,V.default)({},yt),M)),w=(et=(I=M==null||(tt=M.trpc)===null||tt===void 0?void 0:tt.abortOnUnmount)!==null&&I!==void 0?I:void 0)!==null&&et!==void 0?et:it,B=O0((0,V.default)((0,V.default)({},D),{},{queryKey:ut,queryFn:b?X:async P=>{const rt=(0,V.default)((0,V.default)({},D),{},{trpc:(0,V.default)((0,V.default)({},D?.trpc),w?{signal:P.signal}:{signal:null})}),St=await st.query(...ie(ut,rt));return Jy(St)?dv(St,H,ut):St}}),H);return B.trpc=Ka({path:k}),B}function z(k,X,M){var K,G,et;const I=m(),tt=Ke(k,X,"query"),ht=X===Ee,it=(K=(G=M==null||(et=M.trpc)===null||et===void 0?void 0:et.abortOnUnmount)!==null&&G!==void 0?G:void 0)!==null&&K!==void 0?K:I.abortOnUnmount;T0((0,V.default)((0,V.default)({},M),{},{queryKey:tt,queryFn:ht?X:st=>{const T={trpc:(0,V.default)((0,V.default)({},M?.trpc),it?{signal:st.signal}:{})};return I.client.query(...ie(tt,T))}}))}function _(k,X,M){var K,G,et;const I=m(),tt=Ke(k,X,"query"),ht=(K=(G=M==null||(et=M.trpc)===null||et===void 0?void 0:et.abortOnUnmount)!==null&&G!==void 0?G:void 0)!==null&&K!==void 0?K:I.abortOnUnmount,it=_0((0,V.default)((0,V.default)({},M),{},{queryKey:tt,queryFn:st=>{const T=(0,V.default)((0,V.default)({},M),{},{trpc:(0,V.default)((0,V.default)({},M?.trpc),ht?{signal:st.signal}:{signal:null})});return I.client.query(...ie(tt,T))}}),I.queryClient);return it.trpc=Ka({path:k}),[it.data,it]}function q(k,X){const{client:M,queryClient:K}=m(),G=bi(k),et=K.defaultMutationOptions(K.getMutationDefaults(G)),I=j0((0,V.default)((0,V.default)({},X),{},{mutationKey:G,mutationFn:tt=>M.mutation(...ie([k,{input:tt}],X)),onSuccess(...tt){var ht,it;return s({originalFn:()=>{var T,H,Z;return(T=X==null||(H=X.onSuccess)===null||H===void 0?void 0:H.call(X,...tt))!==null&&T!==void 0?T:et==null||(Z=et.onSuccess)===null||Z===void 0?void 0:Z.call(et,...tt)},queryClient:K,meta:(ht=(it=X?.meta)!==null&&it!==void 0?it:et?.meta)!==null&&ht!==void 0?ht:{}})}}),K);return I.trpc=Ka({path:k}),I}const Y={data:void 0,error:null,status:"idle"},J={data:void 0,error:null,status:"connecting"};/* istanbul ignore next -- @preserve */function Q(k,X,M){var K;const G=(K=M?.enabled)!==null&&K!==void 0?K:X!==Ee,et=Hn(Ke(k,X,"any")),{client:I}=m(),tt=L.useRef(M);L.useEffect(()=>{tt.current=M});const[ht]=L.useState(new Set([])),it=L.useCallback(b=>{ht.add(b)},[ht]),st=L.useRef(null),T=L.useCallback(b=>{const D=Z.current,w=Z.current=b(D);let B=!1;for(const P of ht)if(D[P]!==w[P]){B=!0;break}B&&yt(dy(w,it))},[it,ht]),H=L.useCallback(()=>{var b;if((b=st.current)===null||b===void 0||b.unsubscribe(),!G){T(()=>(0,V.default)((0,V.default)({},Y),{},{reset:H}));return}T(()=>(0,V.default)((0,V.default)({},J),{},{reset:H}));const D=I.subscription(k.join("."),X??void 0,{onStarted:()=>{var w,B;(w=(B=tt.current).onStarted)===null||w===void 0||w.call(B),T(P=>(0,V.default)((0,V.default)({},P),{},{status:"pending",error:null}))},onData:w=>{var B,P;(B=(P=tt.current).onData)===null||B===void 0||B.call(P,w),T(rt=>(0,V.default)((0,V.default)({},rt),{},{status:"pending",data:w,error:null}))},onError:w=>{var B,P;(B=(P=tt.current).onError)===null||B===void 0||B.call(P,w),T(rt=>(0,V.default)((0,V.default)({},rt),{},{status:"error",error:w}))},onConnectionStateChange:w=>{T(B=>{switch(w.state){case"idle":return(0,V.default)((0,V.default)({},B),{},{status:w.state,error:null,data:void 0});case"connecting":return(0,V.default)((0,V.default)({},B),{},{error:w.error,status:w.state});case"pending":return B}})},onComplete:()=>{var w,B;(w=(B=tt.current).onComplete)===null||w===void 0||w.call(B),T(P=>(0,V.default)((0,V.default)({},P),{},{status:"idle",error:null,data:void 0}))}});st.current=D},[I,et,G,T]);L.useEffect(()=>(H(),()=>{var b;(b=st.current)===null||b===void 0||b.unsubscribe()}),[H]);const Z=L.useRef(G?(0,V.default)((0,V.default)({},J),{},{reset:H}):(0,V.default)((0,V.default)({},Y),{},{reset:H})),[ut,yt]=L.useState(dy(Z.current,it));return ut}function $(k,X,M){var K,G,et,I,tt;const{client:ht,ssrState:it,prefetchInfiniteQuery:st,queryClient:T,abortOnUnmount:H}=m(),Z=Ke(k,X,"infinite"),ut=T.getQueryDefaults(Z),yt=X===Ee;typeof window>"u"&&it==="prepass"&&(M==null||(K=M.trpc)===null||K===void 0?void 0:K.ssr)!==!1&&((G=M?.enabled)!==null&&G!==void 0?G:ut?.enabled)!==!1&&!yt&&!T.getQueryCache().find({queryKey:Z})&&st(Z,(0,V.default)((0,V.default)({},ut),M));const b=v(Z,(0,V.default)((0,V.default)({},ut),M)),D=(et=M==null||(I=M.trpc)===null||I===void 0?void 0:I.abortOnUnmount)!==null&&et!==void 0?et:H,w=z0((0,V.default)((0,V.default)({},b),{},{initialPageParam:(tt=M.initialCursor)!==null&&tt!==void 0?tt:null,persister:M.persister,queryKey:Z,queryFn:yt?X:B=>{var P;const rt=(0,V.default)((0,V.default)({},b),{},{trpc:(0,V.default)((0,V.default)({},b?.trpc),D?{signal:B.signal}:{signal:null})});return ht.query(...ie(Z,rt,{pageParam:(P=B.pageParam)!==null&&P!==void 0?P:M.initialCursor,direction:B.direction}))}}),T);return w.trpc=Ka({path:k}),w}function at(k,X,M){var K,G,et;const I=m(),tt=Ke(k,X,"infinite"),ht=I.queryClient.getQueryDefaults(tt),it=X===Ee,st=v(tt,(0,V.default)((0,V.default)({},ht),M)),T=(K=M==null||(G=M.trpc)===null||G===void 0?void 0:G.abortOnUnmount)!==null&&K!==void 0?K:I.abortOnUnmount;A0((0,V.default)((0,V.default)({},M),{},{initialPageParam:(et=M.initialCursor)!==null&&et!==void 0?et:null,queryKey:tt,queryFn:it?X:H=>{var Z;const ut=(0,V.default)((0,V.default)({},st),{},{trpc:(0,V.default)((0,V.default)({},st?.trpc),T?{signal:H.signal}:{})});return I.client.query(...ie(tt,ut,{pageParam:(Z=H.pageParam)!==null&&Z!==void 0?Z:M.initialCursor,direction:H.direction}))}}))}function dt(k,X,M){var K,G,et;const I=m(),tt=Ke(k,X,"infinite"),ht=I.queryClient.getQueryDefaults(tt),it=v(tt,(0,V.default)((0,V.default)({},ht),M)),st=(K=M==null||(G=M.trpc)===null||G===void 0?void 0:G.abortOnUnmount)!==null&&K!==void 0?K:I.abortOnUnmount,T=x0((0,V.default)((0,V.default)({},M),{},{initialPageParam:(et=M.initialCursor)!==null&&et!==void 0?et:null,queryKey:tt,queryFn:H=>{var Z;const ut=(0,V.default)((0,V.default)({},it),{},{trpc:(0,V.default)((0,V.default)({},it?.trpc),st?{signal:H.signal}:{})});return I.client.query(...ie(tt,ut,{pageParam:(Z=H.pageParam)!==null&&Z!==void 0?Z:M.initialCursor,direction:H.direction}))}}),I.queryClient);return T.trpc=Ka({path:k}),[T.data,T]}return{Provider:y,createClient:d,useContext:m,useUtils:m,useQuery:p,usePrefetchQuery:z,useSuspenseQuery:_,useQueries:(k,X)=>{const{ssrState:M,queryClient:K,prefetchQuery:G,client:et}=m(),I=fy(et),tt=k(I);if(typeof window>"u"&&M==="prepass")for(const it of tt){var ht;const st=it;((ht=st.trpc)===null||ht===void 0?void 0:ht.ssr)!==!1&&!K.getQueryCache().find({queryKey:st.queryKey})&&G(st.queryKey,st)}return Hy({queries:tt.map(it=>(0,V.default)((0,V.default)({},it),{},{queryKey:it.queryKey})),combine:X?.combine},K)},useSuspenseQueries:k=>{const{queryClient:X,client:M}=m(),K=fy(M),G=k(K),et=E0({queries:G.map(I=>(0,V.default)((0,V.default)({},I),{},{queryFn:I.queryFn,queryKey:I.queryKey}))},X);return[et.map(I=>I.data),et]},useMutation:q,useSubscription:Q,useInfiniteQuery:$,usePrefetchInfiniteQuery:at,useSuspenseInfiniteQuery:dt}}function gb(a){const i=rb(a);return zs(c=>c==="useContext"||c==="useUtils"?()=>{const s=a.useUtils();return L.useMemo(()=>db(s),[s])}:a.hasOwnProperty(c)?a[c]:i[c])}function bb(a){const i=pb();return gb(i)}const ee=bb(),Sb=ee.createClient({links:[Jg({url:"/api/trpc"})]}),hy="/media/images/capas/capa-placeholder.svg",os="biblioteca_modo_exibicao";function yy(){if(typeof window>"u")return"desktop";const a=window.innerWidth;return a<768?"mobile":a<1024?"tablet":"desktop"}function Ob(){const[a,i]=L.useState(yy);return L.useEffect(()=>{function c(){i(yy())}return window.addEventListener("resize",c),()=>window.removeEventListener("resize",c)},[]),a}function _b({livros:a,titulo:i}){const{data:c}=ee.config.obter.useQuery(),s=Ob(),[f,d]=L.useState(()=>typeof window>"u"?"grade":localStorage.getItem(os)||"grade");L.useEffect(()=>{c&&!localStorage.getItem(os)&&d(c.modoPadrao)},[c]);function y(v){d(v),localStorage.setItem(os,v)}const m=s==="desktop"?c?.colunasDesktop??4:s==="tablet"?c?.colunasTablet??2:null;return N.jsxs("section",{children:[N.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"1rem"},children:[N.jsx("h2",{style:{fontFamily:"var(--font-ui)",fontSize:"0.75rem",letterSpacing:"var(--tracking-wider)",textTransform:"uppercase",color:"var(--color-text-on-dark-subtle)"},children:i}),N.jsxs("div",{style:{display:"flex",gap:"0.4rem"},children:[N.jsx("button",{"aria-label":"ver em grade","aria-pressed":f==="grade",onClick:()=>y("grade"),style:vy(f==="grade"),children:N.jsx(xb,{})}),N.jsx("button",{"aria-label":"ver em lista","aria-pressed":f==="lista",onClick:()=>y("lista"),style:vy(f==="lista"),children:N.jsx(Eb,{})})]})]}),f==="grade"?N.jsx("div",{style:{display:"grid",gridTemplateColumns:m?`repeat(${m}, 1fr)`:"repeat(auto-fill, minmax(110px, 1fr))",gap:"1.25rem"},children:a.map(v=>N.jsxs("a",{href:`/livro/${v.id}`,style:{display:"block"},children:[N.jsx("img",{src:v.capaUrl||hy,alt:v.titulo,style:{width:"100%",aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-md)",boxShadow:"var(--shadow-sm)"}}),N.jsx("p",{style:{fontSize:"0.8rem",marginTop:"0.5rem",color:"var(--clr-branco)"},children:v.titulo}),N.jsx("p",{style:{fontSize:"0.7rem",color:"var(--color-text-on-dark-muted)"},children:v.autor})]},v.id))}):N.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"0.75rem"},children:a.map(v=>N.jsxs("a",{href:`/livro/${v.id}`,style:{display:"flex",gap:"1rem",alignItems:"center",padding:"0.5rem",borderRadius:"var(--radius-md)",background:"var(--color-bg-card-dark)"},children:[N.jsx("img",{src:v.capaUrl||hy,alt:v.titulo,style:{width:48,aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"4px",flexShrink:0}}),N.jsxs("div",{children:[N.jsx("p",{style:{fontSize:"0.9rem",color:"var(--clr-branco)"},children:v.titulo}),N.jsxs("p",{style:{fontSize:"0.75rem",color:"var(--color-text-on-dark-muted)"},children:[v.autor,v.serie?` · ${v.serie}`:""]})]})]},v.id))})]})}function vy(a){return{width:32,height:32,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:"var(--radius-sm)",background:a?"var(--clr-acento-alpha12)":"transparent",color:a?"var(--clr-acento-400)":"var(--color-text-on-dark-subtle)",border:"none",cursor:"pointer"}}function xb(){return N.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[N.jsx("rect",{x:"1",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),N.jsx("rect",{x:"9",y:"1",width:"6",height:"6",rx:"1",fill:"currentColor"}),N.jsx("rect",{x:"1",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"}),N.jsx("rect",{x:"9",y:"9",width:"6",height:"6",rx:"1",fill:"currentColor"})]})}function Eb(){return N.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none","aria-hidden":"true",children:[N.jsx("rect",{x:"1",y:"2",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),N.jsx("rect",{x:"1",y:"6.75",width:"14",height:"2.5",rx:"1",fill:"currentColor"}),N.jsx("rect",{x:"1",y:"11.5",width:"14",height:"2.5",rx:"1",fill:"currentColor"})]})}const Tb="/media/images/capas/capa-placeholder.svg";function Ab(){const{data:a,isLoading:i}=ee.biblioteca.getCatalogo.useQuery(),{data:c}=ee.auth.me.useQuery(),s=a?.[0],f=a?.slice(1)??[];return N.jsxs("main",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)",fontFamily:"var(--font-corpo)"},children:[N.jsxs("header",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"1rem 1.25rem",borderBottom:"var(--border-thin)"},children:[N.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",style:{height:32}}),N.jsx("a",{href:"/admin",className:"btn btn-ghost",style:{padding:"0.5rem 1rem",fontSize:"0.75rem"},children:c?"área do editor":"entrar"})]}),N.jsxs("div",{style:{maxWidth:960,margin:"0 auto",padding:"1.5rem 1.25rem 4rem"},children:[i&&N.jsx("p",{style:{color:"var(--color-text-on-dark-muted)",fontSize:"0.875rem"},children:"carregando..."}),!i&&(!a||a.length===0)&&N.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:[N.jsx("p",{style:{fontFamily:"var(--font-display)",fontSize:"1.25rem",color:"var(--clr-branco)",marginBottom:"0.5rem"},children:"A estante ainda está sendo montada"}),N.jsx("p",{style:{fontSize:"0.875rem"},children:"Em breve os primeiros livros aparecem aqui."})]}),s&&N.jsx("section",{style:{marginBottom:"3rem"},children:N.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:[N.jsx("img",{src:s.capaUrl||Tb,alt:s.titulo,style:{width:110,aspectRatio:"2 / 3",objectFit:"cover",borderRadius:"var(--radius-md)",flexShrink:0}}),N.jsxs("div",{style:{display:"flex",flexDirection:"column",justifyContent:"center",gap:"0.5rem"},children:[N.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"}),N.jsx("h1",{style:{fontFamily:"var(--font-display)",fontSize:"1.35rem",color:"var(--clr-branco)",fontWeight:600},children:s.titulo}),s.serie&&N.jsxs("span",{style:{fontSize:"0.8rem",color:"var(--color-text-on-dark-muted)"},children:[s.serie,s.volumeNumero?` · volume ${s.volumeNumero}`:""]}),N.jsx("a",{href:`/livro/${s.id}`,className:"btn btn-primary",style:{width:"fit-content",marginTop:"0.5rem"},children:"ler agora"})]})]})}),f.length>0&&N.jsx(_b,{livros:f,titulo:"todos os livros"})]})]})}function hv(){const a=ee.useUtils(),{data:i,isLoading:c}=ee.auth.me.useQuery(),s=ee.auth.login.useMutation({onSuccess:()=>a.auth.me.invalidate()}),f=ee.auth.logout.useMutation({onSuccess:()=>a.auth.me.invalidate()}),d=i?.papel==="editor"||i?.papel==="admin";return{usuario:i,isLoading:c,login:s,logout:f,podePublicar:d}}function jb(){const{login:a}=hv(),[i,c]=L.useState(""),[s,f]=L.useState("");return N.jsx("div",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},className:"flex items-center justify-center px-6",children:N.jsxs("div",{className:"max-w-sm w-full space-y-3",children:[N.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",style:{height:32,marginBottom:"1.5rem"}}),N.jsx("h1",{style:{fontFamily:"var(--font-display)"},className:"text-lg font-medium",children:"Entrar"}),N.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)}),N.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=>f(d.target.value)}),N.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&&N.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:a.error.message})]})})}function zb(){const{data:a}=ee.config.obter.useQuery(),i=ee.useUtils(),c=ee.config.atualizar.useMutation({onSuccess:()=>i.config.obter.invalidate()});return a?N.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[N.jsx("h2",{style:{fontFamily:"var(--font-display)"},className:"font-medium",children:"Configurações de exibição"}),N.jsx("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:"Controla como os livros aparecem na Home. O celular sempre se ajusta sozinho — só desktop e tablet usam esse número fixo."}),N.jsxs("div",{className:"flex gap-4 items-center",children:[N.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no desktop",N.jsx("input",{type:"number",min:1,max:6,defaultValue:a.colunasDesktop,className:"w-full rounded px-3 py-2 mt-1",style:{background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},onBlur:s=>c.mutate({colunasDesktop:Number(s.target.value)})})]}),N.jsxs("label",{className:"text-sm flex-1",style:{color:"var(--color-text-on-dark-muted)"},children:["colunas no tablet",N.jsx("input",{type:"number",min:1,max:6,defaultValue:a.colunasTablet,className:"w-full rounded px-3 py-2 mt-1",style:{background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},onBlur:s=>c.mutate({colunasTablet:Number(s.target.value)})})]})]}),N.jsxs("label",{className:"text-sm block",style:{color:"var(--color-text-on-dark-muted)"},children:["modo padrão pra quem visita pela primeira vez",N.jsxs("select",{defaultValue:a.modoPadrao,className:"w-full rounded px-3 py-2 mt-1",style:{background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"},onChange:s=>c.mutate({modoPadrao:s.target.value}),children:[N.jsx("option",{value:"grade",style:{color:"#000"},children:"grade"}),N.jsx("option",{value:"lista",style:{color:"#000"},children:"lista"})]})]})]}):null}function Mb(){const a=ee.useUtils(),i=ee.biblioteca.admin.criar.useMutation({onSuccess:()=>a.biblioteca.admin.listar.invalidate()}),[c,s]=L.useState(""),[f,d]=L.useState(""),[y,m]=L.useState(""),[v,p]=L.useState(""),[z,_]=L.useState(""),[q,Y]=L.useState(""),[J,Q]=L.useState(null),[$,at]=L.useState(null),[dt,Tt]=L.useState(!1),[qt,k]=L.useState(null),X={background:"rgba(255,255,255,0.06)",border:"var(--border-medium)",color:"var(--clr-branco)"};async function M(G,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(G,{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 K(){if(!J){k("Selecione o arquivo DOCX.");return}k(null),Tt(!0);try{const{docxOriginalUrl:G,epubUrl:et}=await M("/api/admin/upload-docx","arquivo",J,{titulo:c,autor:z});let I;$&&(I=(await M("/api/admin/upload-capa","imagem",$)).url),await i.mutateAsync({titulo:c,subtitulo:f||void 0,serie:y||void 0,volumeNumero:v?Number(v):void 0,autor:z,resumo:q||void 0,capaUrl:I,epubUrl:et,docxOriginalUrl:G}),s(""),d(""),m(""),p(""),_(""),Y(""),Q(null),at(null)}catch(G){k(G instanceof Error?G.message:"Erro ao publicar.")}finally{Tt(!1)}}return N.jsxs("div",{className:"space-y-3 rounded-lg p-4",style:{background:"var(--color-bg-card-dark)",border:"var(--border-thin)"},children:[N.jsx("h2",{style:{fontFamily:"var(--font-display)"},className:"font-medium",children:"Novo livro"}),N.jsx("input",{className:"w-full rounded px-3 py-2",style:X,placeholder:"título",value:c,onChange:G=>s(G.target.value)}),N.jsx("input",{className:"w-full rounded px-3 py-2",style:X,placeholder:"subtítulo (opcional)",value:f,onChange:G=>d(G.target.value)}),N.jsxs("div",{className:"flex gap-3",children:[N.jsx("input",{className:"flex-1 rounded px-3 py-2",style:X,placeholder:"série (opcional)",value:y,onChange:G=>m(G.target.value)}),N.jsx("input",{className:"w-28 rounded px-3 py-2",style:X,placeholder:"volume nº",value:v,onChange:G=>p(G.target.value)})]}),N.jsx("input",{className:"w-full rounded px-3 py-2",style:X,placeholder:"autor",value:z,onChange:G=>_(G.target.value)}),N.jsx("textarea",{className:"w-full rounded px-3 py-2",style:X,placeholder:"resumo (opcional)",value:q,onChange:G=>Y(G.target.value)}),N.jsx("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:"arquivo DOCX"}),N.jsx("input",{type:"file",accept:".docx",onChange:G=>Q(G.target.files?.[0]??null)}),N.jsx("label",{className:"block text-sm",style:{color:"var(--color-text-on-dark-muted)"},children:"capa (opcional)"}),N.jsx("input",{type:"file",accept:"image/*",onChange:G=>at(G.target.files?.[0]??null)}),qt&&N.jsx("p",{className:"text-sm",style:{color:"#ff8080"},children:qt}),N.jsx("button",{className:"btn btn-primary",onClick:K,disabled:dt||!c||!z,children:dt?"processando...":"salvar como rascunho"})]})}function Cb(){const a=ee.useUtils(),{data:i}=ee.biblioteca.admin.listar.useQuery(),c=ee.biblioteca.admin.atualizar.useMutation({onSuccess:()=>a.biblioteca.admin.listar.invalidate()});return N.jsxs("div",{className:"mt-6 space-y-2",children:[N.jsx("h2",{style:{fontFamily:"var(--font-display)"},className:"font-medium",children:"Livros"}),i?.map(s=>N.jsxs("div",{className:"flex items-center justify-between rounded px-3 py-2",style:{border:"var(--border-thin)"},children:[N.jsxs("div",{children:[N.jsx("p",{className:"text-sm font-medium",children:s.titulo}),N.jsxs("p",{className:"text-xs",style:{color:"var(--color-text-on-dark-muted)"},children:[s.status," · ",s.epubUrl?"epub ok":"sem epub"]})]}),N.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 Db(){const{usuario:a,isLoading:i,podePublicar:c,logout:s}=hv();return i?null:a?c?N.jsx("div",{style:{minHeight:"100dvh",background:"var(--gradient-hero)",color:"var(--color-text-on-dark)"},children:N.jsxs("div",{className:"max-w-xl mx-auto p-6 space-y-6",children:[N.jsxs("div",{className:"flex justify-between items-center",children:[N.jsx("img",{src:"/media/images/logo-biblioteca-onfide.svg",alt:"Biblioteca OnFide",style:{height:28}}),N.jsx("button",{style:{color:"var(--color-text-on-dark-muted)"},className:"text-sm",onClick:()=>s.mutate(),children:"sair"})]}),N.jsx(Mb,{}),N.jsx(Cb,{}),N.jsx(zb,{})]})}):N.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."}):N.jsx(jb,{})}function Rb(){const[a]=L.useState(()=>new d0);return N.jsx(ee.Provider,{client:Sb,queryClient:a,children:N.jsx(g0,{client:a,children:N.jsxs(P0,{children:[N.jsx(ay,{path:"/admin",component:Db}),N.jsx(ay,{path:"/",component:Ab})]})})})}kp.createRoot(document.getElementById("root")).render(N.jsx(L.StrictMode,{children:N.jsx(Rb,{})}));
