@ottocode/web-ui 0.1.209 → 0.1.210

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,9 @@
1
+ var HS=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ug(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var zo={exports:{}},di={};var Sm;function sg(){if(Sm)return di;Sm=1;var l=Symbol.for("react.transitional.element"),s=Symbol.for("react.fragment");function u(o,r,h){var y=null;if(h!==void 0&&(y=""+h),r.key!==void 0&&(y=""+r.key),"key"in r){h={};for(var d in r)d!=="key"&&(h[d]=r[d])}else h=r;return r=h.ref,{$$typeof:l,type:o,key:y,ref:r!==void 0?r:null,props:h}}return di.Fragment=s,di.jsx=u,di.jsxs=u,di}var bm;function cg(){return bm||(bm=1,zo.exports=sg()),zo.exports}var et=cg(),xo={exports:{}},st={};var _m;function og(){if(_m)return st;_m=1;var l=Symbol.for("react.transitional.element"),s=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),h=Symbol.for("react.consumer"),y=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.for("react.activity"),S=Symbol.iterator;function R(T){return T===null||typeof T!="object"?null:(T=S&&T[S]||T["@@iterator"],typeof T=="function"?T:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,w={};function Q(T,H,K){this.props=T,this.context=H,this.refs=w,this.updater=K||A}Q.prototype.isReactComponent={},Q.prototype.setState=function(T,H){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,H,"setState")},Q.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function Y(){}Y.prototype=Q.prototype;function V(T,H,K){this.props=T,this.context=H,this.refs=w,this.updater=K||A}var q=V.prototype=new Y;q.constructor=V,x(q,Q.prototype),q.isPureReactComponent=!0;var $=Array.isArray;function k(){}var G={H:null,A:null,T:null,S:null},j=Object.prototype.hasOwnProperty;function J(T,H,K){var Z=K.ref;return{$$typeof:l,type:T,key:H,ref:Z!==void 0?Z:null,props:K}}function it(T,H){return J(T.type,H,T.props)}function at(T){return typeof T=="object"&&T!==null&&T.$$typeof===l}function tt(T){var H={"=":"=0",":":"=2"};return"$"+T.replace(/[=:]/g,function(K){return H[K]})}var ft=/\/+/g;function ct(T,H){return typeof T=="object"&&T!==null&&T.key!=null?tt(""+T.key):H.toString(36)}function qt(T){switch(T.status){case"fulfilled":return T.value;case"rejected":throw T.reason;default:switch(typeof T.status=="string"?T.then(k,k):(T.status="pending",T.then(function(H){T.status==="pending"&&(T.status="fulfilled",T.value=H)},function(H){T.status==="pending"&&(T.status="rejected",T.reason=H)})),T.status){case"fulfilled":return T.value;case"rejected":throw T.reason}}throw T}function U(T,H,K,Z,ut){var ht=typeof T;(ht==="undefined"||ht==="boolean")&&(T=null);var yt=!1;if(T===null)yt=!0;else switch(ht){case"bigint":case"string":case"number":yt=!0;break;case"object":switch(T.$$typeof){case l:case s:yt=!0;break;case g:return yt=T._init,U(yt(T._payload),H,K,Z,ut)}}if(yt)return ut=ut(T),yt=Z===""?"."+ct(T,0):Z,$(ut)?(K="",yt!=null&&(K=yt.replace(ft,"$&/")+"/"),U(ut,H,K,"",function(Ve){return Ve})):ut!=null&&(at(ut)&&(ut=it(ut,K+(ut.key==null||T&&T.key===ut.key?"":(""+ut.key).replace(ft,"$&/")+"/")+yt)),H.push(ut)),1;yt=0;var Qt=Z===""?".":Z+":";if($(T))for(var xt=0;xt<T.length;xt++)Z=T[xt],ht=Qt+ct(Z,xt),yt+=U(Z,H,K,ht,ut);else if(xt=R(T),typeof xt=="function")for(T=xt.call(T),xt=0;!(Z=T.next()).done;)Z=Z.value,ht=Qt+ct(Z,xt++),yt+=U(Z,H,K,ht,ut);else if(ht==="object"){if(typeof T.then=="function")return U(qt(T),H,K,Z,ut);throw H=String(T),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(T).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return yt}function X(T,H,K){if(T==null)return T;var Z=[],ut=0;return U(T,Z,"","",function(ht){return H.call(K,ht,ut++)}),Z}function lt(T){if(T._status===-1){var H=T._result;H=H(),H.then(function(K){(T._status===0||T._status===-1)&&(T._status=1,T._result=K)},function(K){(T._status===0||T._status===-1)&&(T._status=2,T._result=K)}),T._status===-1&&(T._status=0,T._result=H)}if(T._status===1)return T._result.default;throw T._result}var _t=typeof reportError=="function"?reportError:function(T){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=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(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",T);return}console.error(T)},Et={map:X,forEach:function(T,H,K){X(T,function(){H.apply(this,arguments)},K)},count:function(T){var H=0;return X(T,function(){H++}),H},toArray:function(T){return X(T,function(H){return H})||[]},only:function(T){if(!at(T))throw Error("React.Children.only expected to receive a single React element child.");return T}};return st.Activity=b,st.Children=Et,st.Component=Q,st.Fragment=u,st.Profiler=r,st.PureComponent=V,st.StrictMode=o,st.Suspense=p,st.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=G,st.__COMPILER_RUNTIME={__proto__:null,c:function(T){return G.H.useMemoCache(T)}},st.cache=function(T){return function(){return T.apply(null,arguments)}},st.cacheSignal=function(){return null},st.cloneElement=function(T,H,K){if(T==null)throw Error("The argument must be a React element, but you passed "+T+".");var Z=x({},T.props),ut=T.key;if(H!=null)for(ht in H.key!==void 0&&(ut=""+H.key),H)!j.call(H,ht)||ht==="key"||ht==="__self"||ht==="__source"||ht==="ref"&&H.ref===void 0||(Z[ht]=H[ht]);var ht=arguments.length-2;if(ht===1)Z.children=K;else if(1<ht){for(var yt=Array(ht),Qt=0;Qt<ht;Qt++)yt[Qt]=arguments[Qt+2];Z.children=yt}return J(T.type,ut,Z)},st.createContext=function(T){return T={$$typeof:y,_currentValue:T,_currentValue2:T,_threadCount:0,Provider:null,Consumer:null},T.Provider=T,T.Consumer={$$typeof:h,_context:T},T},st.createElement=function(T,H,K){var Z,ut={},ht=null;if(H!=null)for(Z in H.key!==void 0&&(ht=""+H.key),H)j.call(H,Z)&&Z!=="key"&&Z!=="__self"&&Z!=="__source"&&(ut[Z]=H[Z]);var yt=arguments.length-2;if(yt===1)ut.children=K;else if(1<yt){for(var Qt=Array(yt),xt=0;xt<yt;xt++)Qt[xt]=arguments[xt+2];ut.children=Qt}if(T&&T.defaultProps)for(Z in yt=T.defaultProps,yt)ut[Z]===void 0&&(ut[Z]=yt[Z]);return J(T,ht,ut)},st.createRef=function(){return{current:null}},st.forwardRef=function(T){return{$$typeof:d,render:T}},st.isValidElement=at,st.lazy=function(T){return{$$typeof:g,_payload:{_status:-1,_result:T},_init:lt}},st.memo=function(T,H){return{$$typeof:v,type:T,compare:H===void 0?null:H}},st.startTransition=function(T){var H=G.T,K={};G.T=K;try{var Z=T(),ut=G.S;ut!==null&&ut(K,Z),typeof Z=="object"&&Z!==null&&typeof Z.then=="function"&&Z.then(k,_t)}catch(ht){_t(ht)}finally{H!==null&&K.types!==null&&(H.types=K.types),G.T=H}},st.unstable_useCacheRefresh=function(){return G.H.useCacheRefresh()},st.use=function(T){return G.H.use(T)},st.useActionState=function(T,H,K){return G.H.useActionState(T,H,K)},st.useCallback=function(T,H){return G.H.useCallback(T,H)},st.useContext=function(T){return G.H.useContext(T)},st.useDebugValue=function(){},st.useDeferredValue=function(T,H){return G.H.useDeferredValue(T,H)},st.useEffect=function(T,H){return G.H.useEffect(T,H)},st.useEffectEvent=function(T){return G.H.useEffectEvent(T)},st.useId=function(){return G.H.useId()},st.useImperativeHandle=function(T,H,K){return G.H.useImperativeHandle(T,H,K)},st.useInsertionEffect=function(T,H){return G.H.useInsertionEffect(T,H)},st.useLayoutEffect=function(T,H){return G.H.useLayoutEffect(T,H)},st.useMemo=function(T,H){return G.H.useMemo(T,H)},st.useOptimistic=function(T,H){return G.H.useOptimistic(T,H)},st.useReducer=function(T,H,K){return G.H.useReducer(T,H,K)},st.useRef=function(T){return G.H.useRef(T)},st.useState=function(T){return G.H.useState(T)},st.useSyncExternalStore=function(T,H,K){return G.H.useSyncExternalStore(T,H,K)},st.useTransition=function(){return G.H.useTransition()},st.version="19.2.4",st}var Rm;function Ci(){return Rm||(Rm=1,xo.exports=og()),xo.exports}var W=Ci();const Ei=ug(W);var Do={exports:{}},mi={},Uo={exports:{}},Lo={};var Em;function rg(){return Em||(Em=1,(function(l){function s(U,X){var lt=U.length;U.push(X);t:for(;0<lt;){var _t=lt-1>>>1,Et=U[_t];if(0<r(Et,X))U[_t]=X,U[lt]=Et,lt=_t;else break t}}function u(U){return U.length===0?null:U[0]}function o(U){if(U.length===0)return null;var X=U[0],lt=U.pop();if(lt!==X){U[0]=lt;t:for(var _t=0,Et=U.length,T=Et>>>1;_t<T;){var H=2*(_t+1)-1,K=U[H],Z=H+1,ut=U[Z];if(0>r(K,lt))Z<Et&&0>r(ut,K)?(U[_t]=ut,U[Z]=lt,_t=Z):(U[_t]=K,U[H]=lt,_t=H);else if(Z<Et&&0>r(ut,lt))U[_t]=ut,U[Z]=lt,_t=Z;else break t}}return X}function r(U,X){var lt=U.sortIndex-X.sortIndex;return lt!==0?lt:U.id-X.id}if(l.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var h=performance;l.unstable_now=function(){return h.now()}}else{var y=Date,d=y.now();l.unstable_now=function(){return y.now()-d}}var p=[],v=[],g=1,b=null,S=3,R=!1,A=!1,x=!1,w=!1,Q=typeof setTimeout=="function"?setTimeout:null,Y=typeof clearTimeout=="function"?clearTimeout:null,V=typeof setImmediate<"u"?setImmediate:null;function q(U){for(var X=u(v);X!==null;){if(X.callback===null)o(v);else if(X.startTime<=U)o(v),X.sortIndex=X.expirationTime,s(p,X);else break;X=u(v)}}function $(U){if(x=!1,q(U),!A)if(u(p)!==null)A=!0,k||(k=!0,tt());else{var X=u(v);X!==null&&qt($,X.startTime-U)}}var k=!1,G=-1,j=5,J=-1;function it(){return w?!0:!(l.unstable_now()-J<j)}function at(){if(w=!1,k){var U=l.unstable_now();J=U;var X=!0;try{t:{A=!1,x&&(x=!1,Y(G),G=-1),R=!0;var lt=S;try{e:{for(q(U),b=u(p);b!==null&&!(b.expirationTime>U&&it());){var _t=b.callback;if(typeof _t=="function"){b.callback=null,S=b.priorityLevel;var Et=_t(b.expirationTime<=U);if(U=l.unstable_now(),typeof Et=="function"){b.callback=Et,q(U),X=!0;break e}b===u(p)&&o(p),q(U)}else o(p);b=u(p)}if(b!==null)X=!0;else{var T=u(v);T!==null&&qt($,T.startTime-U),X=!1}}break t}finally{b=null,S=lt,R=!1}X=void 0}}finally{X?tt():k=!1}}}var tt;if(typeof V=="function")tt=function(){V(at)};else if(typeof MessageChannel<"u"){var ft=new MessageChannel,ct=ft.port2;ft.port1.onmessage=at,tt=function(){ct.postMessage(null)}}else tt=function(){Q(at,0)};function qt(U,X){G=Q(function(){U(l.unstable_now())},X)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function(U){U.callback=null},l.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):j=0<U?Math.floor(1e3/U):5},l.unstable_getCurrentPriorityLevel=function(){return S},l.unstable_next=function(U){switch(S){case 1:case 2:case 3:var X=3;break;default:X=S}var lt=S;S=X;try{return U()}finally{S=lt}},l.unstable_requestPaint=function(){w=!0},l.unstable_runWithPriority=function(U,X){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var lt=S;S=U;try{return X()}finally{S=lt}},l.unstable_scheduleCallback=function(U,X,lt){var _t=l.unstable_now();switch(typeof lt=="object"&&lt!==null?(lt=lt.delay,lt=typeof lt=="number"&&0<lt?_t+lt:_t):lt=_t,U){case 1:var Et=-1;break;case 2:Et=250;break;case 5:Et=1073741823;break;case 4:Et=1e4;break;default:Et=5e3}return Et=lt+Et,U={id:g++,callback:X,priorityLevel:U,startTime:lt,expirationTime:Et,sortIndex:-1},lt>_t?(U.sortIndex=lt,s(v,U),u(p)===null&&U===u(v)&&(x?(Y(G),G=-1):x=!0,qt($,lt-_t))):(U.sortIndex=Et,s(p,U),A||R||(A=!0,k||(k=!0,tt()))),U},l.unstable_shouldYield=it,l.unstable_wrapCallback=function(U){var X=S;return function(){var lt=S;S=X;try{return U.apply(this,arguments)}finally{S=lt}}}})(Lo)),Lo}var Tm;function fg(){return Tm||(Tm=1,Uo.exports=rg()),Uo.exports}var wo={exports:{}},ne={};var Om;function hg(){if(Om)return ne;Om=1;var l=Ci();function s(p){var v="https://react.dev/errors/"+p;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)v+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+p+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function u(){}var o={d:{f:u,r:function(){throw Error(s(522))},D:u,C:u,L:u,m:u,X:u,S:u,M:u},p:0,findDOMNode:null},r=Symbol.for("react.portal");function h(p,v,g){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:b==null?null:""+b,children:p,containerInfo:v,implementation:g}}var y=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(p,v){if(p==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return ne.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ne.createPortal=function(p,v){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(s(299));return h(p,v,null,g)},ne.flushSync=function(p){var v=y.T,g=o.p;try{if(y.T=null,o.p=2,p)return p()}finally{y.T=v,o.p=g,o.d.f()}},ne.preconnect=function(p,v){typeof p=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,o.d.C(p,v))},ne.prefetchDNS=function(p){typeof p=="string"&&o.d.D(p)},ne.preinit=function(p,v){if(typeof p=="string"&&v&&typeof v.as=="string"){var g=v.as,b=d(g,v.crossOrigin),S=typeof v.integrity=="string"?v.integrity:void 0,R=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;g==="style"?o.d.S(p,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:R}):g==="script"&&o.d.X(p,{crossOrigin:b,integrity:S,fetchPriority:R,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},ne.preinitModule=function(p,v){if(typeof p=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var g=d(v.as,v.crossOrigin);o.d.M(p,{crossOrigin:g,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&o.d.M(p)},ne.preload=function(p,v){if(typeof p=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var g=v.as,b=d(g,v.crossOrigin);o.d.L(p,g,{crossOrigin:b,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},ne.preloadModule=function(p,v){if(typeof p=="string")if(v){var g=d(v.as,v.crossOrigin);o.d.m(p,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:g,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else o.d.m(p)},ne.requestFormReset=function(p){o.d.r(p)},ne.unstable_batchedUpdates=function(p,v){return p(v)},ne.useFormState=function(p,v,g){return y.H.useFormState(p,v,g)},ne.useFormStatus=function(){return y.H.useHostTransitionStatus()},ne.version="19.2.4",ne}var Mm;function sy(){if(Mm)return wo.exports;Mm=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(s){console.error(s)}}return l(),wo.exports=hg(),wo.exports}var Cm;function dg(){if(Cm)return mi;Cm=1;var l=fg(),s=Ci(),u=sy();function o(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 r(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function h(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 d(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 p(t){if(h(t)!==t)throw Error(o(188))}function v(t){var e=t.alternate;if(!e){if(e=h(t),e===null)throw Error(o(188));return e!==t?null:t}for(var n=t,a=e;;){var i=n.return;if(i===null)break;var c=i.alternate;if(c===null){if(a=i.return,a!==null){n=a;continue}break}if(i.child===c.child){for(c=i.child;c;){if(c===n)return p(i),t;if(c===a)return p(i),e;c=c.sibling}throw Error(o(188))}if(n.return!==a.return)n=i,a=c;else{for(var f=!1,m=i.child;m;){if(m===n){f=!0,n=i,a=c;break}if(m===a){f=!0,a=i,n=c;break}m=m.sibling}if(!f){for(m=c.child;m;){if(m===n){f=!0,n=c,a=i;break}if(m===a){f=!0,a=c,n=i;break}m=m.sibling}if(!f)throw Error(o(189))}}if(n.alternate!==a)throw Error(o(190))}if(n.tag!==3)throw Error(o(188));return n.stateNode.current===n?t:e}function g(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=g(t),e!==null)return e;t=t.sibling}return null}var b=Object.assign,S=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),Y=Symbol.for("react.consumer"),V=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),it=Symbol.for("react.memo_cache_sentinel"),at=Symbol.iterator;function tt(t){return t===null||typeof t!="object"?null:(t=at&&t[at]||t["@@iterator"],typeof t=="function"?t:null)}var ft=Symbol.for("react.client.reference");function ct(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ft?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case x:return"Fragment";case Q:return"Profiler";case w:return"StrictMode";case $:return"Suspense";case k:return"SuspenseList";case J:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case A:return"Portal";case V:return t.displayName||"Context";case Y:return(t._context.displayName||"Context")+".Consumer";case q:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case G:return e=t.displayName||null,e!==null?e:ct(t.type)||"Memo";case j:e=t._payload,t=t._init;try{return ct(t(e))}catch{}}return null}var qt=Array.isArray,U=s.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=u.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,lt={pending:!1,data:null,method:null,action:null},_t=[],Et=-1;function T(t){return{current:t}}function H(t){0>Et||(t.current=_t[Et],_t[Et]=null,Et--)}function K(t,e){Et++,_t[Et]=t.current,t.current=e}var Z=T(null),ut=T(null),ht=T(null),yt=T(null);function Qt(t,e){switch(K(ht,e),K(ut,t),K(Z,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Yd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Yd(e),t=Vd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(Z),K(Z,t)}function xt(){H(Z),H(ut),H(ht)}function Ve(t){t.memoizedState!==null&&K(yt,t);var e=Z.current,n=Vd(e,t.type);e!==n&&(K(ut,t),K(Z,n))}function Fe(t){ut.current===t&&(H(Z),H(ut)),yt.current===t&&(H(yt),oi._currentValue=lt)}var Ra,gl;function ke(t){if(Ra===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Ra=e&&e[1]||"",gl=-1<n.stack.indexOf(`
2
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
3
+ `+Ra+t+gl}var Ea=!1;function Ta(t,e){if(!t||Ea)return"";Ea=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var a={DetermineComponentFrameRoot:function(){try{if(e){var B=function(){throw Error()};if(Object.defineProperty(B.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(B,[])}catch(D){var z=D}Reflect.construct(t,[],B)}else{try{B.call()}catch(D){z=D}t.call(B.prototype)}}else{try{throw Error()}catch(D){z=D}(B=t())&&typeof B.catch=="function"&&B.catch(function(){})}}catch(D){if(D&&z&&typeof D.stack=="string")return[D.stack,z.stack]}return[null,null]}};a.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),f=c[0],m=c[1];if(f&&m){var _=f.split(`
4
+ `),C=m.split(`
5
+ `);for(i=a=0;a<_.length&&!_[a].includes("DetermineComponentFrameRoot");)a++;for(;i<C.length&&!C[i].includes("DetermineComponentFrameRoot");)i++;if(a===_.length||i===C.length)for(a=_.length-1,i=C.length-1;1<=a&&0<=i&&_[a]!==C[i];)i--;for(;1<=a&&0<=i;a--,i--)if(_[a]!==C[i]){if(a!==1||i!==1)do if(a--,i--,0>i||_[a]!==C[i]){var L=`
6
+ `+_[a].replace(" at new "," at ");return t.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",t.displayName)),L}while(1<=a&&0<=i);break}}}finally{Ea=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?ke(n):""}function gn(t,e){switch(t.tag){case 26:case 27:case 5:return ke(t.type);case 16:return ke("Lazy");case 13:return t.child!==e&&e!==null?ke("Suspense Fallback"):ke("Suspense");case 19:return ke("SuspenseList");case 0:case 15:return Ta(t.type,!1);case 11:return Ta(t.type.render,!1);case 1:return Ta(t.type,!0);case 31:return ke("Activity");default:return""}}function Oa(t){try{var e="",n=null;do e+=gn(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
7
+ Error generating stack: `+a.message+`
8
+ `+a.stack}}var qe=Object.prototype.hasOwnProperty,Sl=l.unstable_scheduleCallback,bl=l.unstable_cancelCallback,Ai=l.unstable_shouldYield,ms=l.unstable_requestPaint,ae=l.unstable_now,ys=l.unstable_getCurrentPriorityLevel,Dt=l.unstable_ImmediatePriority,Ft=l.unstable_UserBlockingPriority,ee=l.unstable_NormalPriority,zi=l.unstable_LowPriority,_r=l.unstable_IdlePriority,Yy=l.log,Vy=l.unstable_setDisableYieldValue,_l=null,de=null;function Sn(t){if(typeof Yy=="function"&&Vy(t),de&&typeof de.setStrictMode=="function")try{de.setStrictMode(_l,t)}catch{}}var me=Math.clz32?Math.clz32:Zy,Xy=Math.log,Ky=Math.LN2;function Zy(t){return t>>>=0,t===0?32:31-(Xy(t)/Ky|0)|0}var xi=256,Di=262144,Ui=4194304;function Fn(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 Li(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var i=0,c=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var m=a&134217727;return m!==0?(a=m&~c,a!==0?i=Fn(a):(f&=m,f!==0?i=Fn(f):n||(n=m&~t,n!==0&&(i=Fn(n))))):(m=a&~c,m!==0?i=Fn(m):f!==0?i=Fn(f):n||(n=a&~t,n!==0&&(i=Fn(n)))),i===0?0:e!==0&&e!==i&&(e&c)===0&&(c=i&-i,n=e&-e,c>=n||c===32&&(n&4194048)!==0)?e:i}function Rl(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function Jy(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 Rr(){var t=Ui;return Ui<<=1,(Ui&62914560)===0&&(Ui=4194304),t}function ps(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function El(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Py(t,e,n,a,i,c){var f=t.pendingLanes;t.pendingLanes=n,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=n,t.entangledLanes&=n,t.errorRecoveryDisabledLanes&=n,t.shellSuspendCounter=0;var m=t.entanglements,_=t.expirationTimes,C=t.hiddenUpdates;for(n=f&~n;0<n;){var L=31-me(n),B=1<<L;m[L]=0,_[L]=-1;var z=C[L];if(z!==null)for(C[L]=null,L=0;L<z.length;L++){var D=z[L];D!==null&&(D.lane&=-536870913)}n&=~B}a!==0&&Er(t,a,0),c!==0&&i===0&&t.tag!==0&&(t.suspendedLanes|=c&~(f&~e))}function Er(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-me(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function Tr(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-me(n),i=1<<a;i&e|t[a]&e&&(t[a]|=e),n&=~i}}function Or(t,e){var n=e&-e;return n=(n&42)!==0?1:vs(n),(n&(t.suspendedLanes|e))!==0?0:n}function vs(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 gs(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Mr(){var t=X.p;return t!==0?t:(t=window.event,t===void 0?32:hm(t.type))}function Cr(t,e){var n=X.p;try{return X.p=t,e()}finally{X.p=n}}var bn=Math.random().toString(36).slice(2),kt="__reactFiber$"+bn,ue="__reactProps$"+bn,Ma="__reactContainer$"+bn,Ss="__reactEvents$"+bn,Fy="__reactListeners$"+bn,ky="__reactHandles$"+bn,Ar="__reactResources$"+bn,Tl="__reactMarker$"+bn;function bs(t){delete t[kt],delete t[ue],delete t[Ss],delete t[Fy],delete t[ky]}function Ca(t){var e=t[kt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[Ma]||n[kt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=kd(t);t!==null;){if(n=t[kt])return n;t=kd(t)}return e}t=n,n=t.parentNode}return null}function Aa(t){if(t=t[kt]||t[Ma]){var e=t.tag;if(e===5||e===6||e===13||e===31||e===26||e===27||e===3)return t}return null}function Ol(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t.stateNode;throw Error(o(33))}function za(t){var e=t[Ar];return e||(e=t[Ar]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function Jt(t){t[Tl]=!0}var zr=new Set,xr={};function kn(t,e){xa(t,e),xa(t+"Capture",e)}function xa(t,e){for(xr[t]=e,t=0;t<e.length;t++)zr.add(e[t])}var Wy=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]*$"),Dr={},Ur={};function $y(t){return qe.call(Ur,t)?!0:qe.call(Dr,t)?!1:Wy.test(t)?Ur[t]=!0:(Dr[t]=!0,!1)}function wi(t,e,n){if($y(e))if(n===null)t.removeAttribute(e);else{switch(typeof n){case"undefined":case"function":case"symbol":t.removeAttribute(e);return;case"boolean":var a=e.toLowerCase().slice(0,5);if(a!=="data-"&&a!=="aria-"){t.removeAttribute(e);return}}t.setAttribute(e,""+n)}}function Ni(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 We(t,e,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}t.setAttributeNS(e,n,""+a)}}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 Lr(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Iy(t,e,n){var a=Object.getOwnPropertyDescriptor(t.constructor.prototype,e);if(!t.hasOwnProperty(e)&&typeof a<"u"&&typeof a.get=="function"&&typeof a.set=="function"){var i=a.get,c=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(f){n=""+f,c.call(this,f)}}),Object.defineProperty(t,e,{enumerable:a.enumerable}),{getValue:function(){return n},setValue:function(f){n=""+f},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function _s(t){if(!t._valueTracker){var e=Lr(t)?"checked":"value";t._valueTracker=Iy(t,e,""+t[e])}}function wr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=Lr(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function Bi(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 tp=/[\n"\\]/g;function Oe(t){return t.replace(tp,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Rs(t,e,n,a,i,c,f,m){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Te(e)):t.value!==""+Te(e)&&(t.value=""+Te(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Es(t,f,Te(e)):n!=null?Es(t,f,Te(n)):a!=null&&t.removeAttribute("value"),i==null&&c!=null&&(t.defaultChecked=!!c),i!=null&&(t.checked=i&&typeof i!="function"&&typeof i!="symbol"),m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"?t.name=""+Te(m):t.removeAttribute("name")}function Nr(t,e,n,a,i,c,f,m){if(c!=null&&typeof c!="function"&&typeof c!="symbol"&&typeof c!="boolean"&&(t.type=c),e!=null||n!=null){if(!(c!=="submit"&&c!=="reset"||e!=null)){_s(t);return}n=n!=null?""+Te(n):"",e=e!=null?""+Te(e):n,m||e===t.value||(t.value=e),t.defaultValue=e}a=a??i,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=m?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),_s(t)}function Es(t,e,n){e==="number"&&Bi(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Da(t,e,n,a){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&a&&(t[n].defaultSelected=!0)}else{for(n=""+Te(n),e=null,i=0;i<t.length;i++){if(t[i].value===n){t[i].selected=!0,a&&(t[i].defaultSelected=!0);return}e!==null||t[i].disabled||(e=t[i])}e!==null&&(e.selected=!0)}}function Br(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 Hr(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(o(92));if(qt(a)){if(1<a.length)throw Error(o(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=Te(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),_s(t)}function Ua(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var ep=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function jr(t,e,n){var a=e.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?a?t.setProperty(e,""):e==="float"?t.cssFloat="":t[e]="":a?t.setProperty(e,n):typeof n!="number"||n===0||ep.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function qr(t,e,n){if(e!=null&&typeof e!="object")throw Error(o(62));if(t=t.style,n!=null){for(var a in n)!n.hasOwnProperty(a)||e!=null&&e.hasOwnProperty(a)||(a.indexOf("--")===0?t.setProperty(a,""):a==="float"?t.cssFloat="":t[a]="");for(var i in e)a=e[i],e.hasOwnProperty(i)&&n[i]!==a&&jr(t,i,a)}else for(var c in e)e.hasOwnProperty(c)&&jr(t,c,e[c])}function Ts(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 np=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),ap=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Hi(t){return ap.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function $e(){}var Os=null;function Ms(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var La=null,wa=null;function Qr(t){var e=Aa(t);if(e&&(t=e.stateNode)){var n=t[ue]||null;t:switch(t=e.stateNode,e.type){case"input":if(Rs(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="'+Oe(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var i=a[ue]||null;if(!i)throw Error(o(90));Rs(a,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&wr(a)}break t;case"textarea":Br(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Da(t,!!n.multiple,e,!1)}}}var Cs=!1;function Gr(t,e,n){if(Cs)return t(e,n);Cs=!0;try{var a=t(e);return a}finally{if(Cs=!1,(La!==null||wa!==null)&&(Tu(),La&&(e=La,t=wa,wa=La=null,Qr(e),t)))for(e=0;e<t.length;e++)Qr(t[e])}}function Ml(t,e){var n=t.stateNode;if(n===null)return null;var a=n[ue]||null;if(a===null)return null;n=a[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":(a=!a.disabled)||(t=t.type,a=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!a;break t;default:t=!1}if(t)return null;if(n&&typeof n!="function")throw Error(o(231,e,typeof n));return n}var Ie=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),As=!1;if(Ie)try{var Cl={};Object.defineProperty(Cl,"passive",{get:function(){As=!0}}),window.addEventListener("test",Cl,Cl),window.removeEventListener("test",Cl,Cl)}catch{As=!1}var _n=null,zs=null,ji=null;function Yr(){if(ji)return ji;var t,e=zs,n=e.length,a,i="value"in _n?_n.value:_n.textContent,c=i.length;for(t=0;t<n&&e[t]===i[t];t++);var f=n-t;for(a=1;a<=f&&e[n-a]===i[c-a];a++);return ji=i.slice(t,1<a?1-a:void 0)}function qi(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 Qi(){return!0}function Vr(){return!1}function se(t){function e(n,a,i,c,f){this._reactName=n,this._targetInst=i,this.type=a,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var m in t)t.hasOwnProperty(m)&&(n=t[m],this[m]=n?n(c):c[m]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Qi:Vr,this.isPropagationStopped=Vr,this}return b(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=Qi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Qi)},persist:function(){},isPersistent:Qi}),e}var Wn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gi=se(Wn),Al=b({},Wn,{view:0,detail:0}),lp=se(Al),xs,Ds,zl,Yi=b({},Al,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ls,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!==zl&&(zl&&t.type==="mousemove"?(xs=t.screenX-zl.screenX,Ds=t.screenY-zl.screenY):Ds=xs=0,zl=t),xs)},movementY:function(t){return"movementY"in t?t.movementY:Ds}}),Xr=se(Yi),ip=b({},Yi,{dataTransfer:0}),up=se(ip),sp=b({},Al,{relatedTarget:0}),Us=se(sp),cp=b({},Wn,{animationName:0,elapsedTime:0,pseudoElement:0}),op=se(cp),rp=b({},Wn,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),fp=se(rp),hp=b({},Wn,{data:0}),Kr=se(hp),dp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mp={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"},yp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function pp(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=yp[t])?!!e[t]:!1}function Ls(){return pp}var vp=b({},Al,{key:function(t){if(t.key){var e=dp[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=qi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?mp[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ls,charCode:function(t){return t.type==="keypress"?qi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?qi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),gp=se(vp),Sp=b({},Yi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Zr=se(Sp),bp=b({},Al,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ls}),_p=se(bp),Rp=b({},Wn,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ep=se(Rp),Tp=b({},Yi,{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}),Op=se(Tp),Mp=b({},Wn,{newState:0,oldState:0}),Cp=se(Mp),Ap=[9,13,27,32],ws=Ie&&"CompositionEvent"in window,xl=null;Ie&&"documentMode"in document&&(xl=document.documentMode);var zp=Ie&&"TextEvent"in window&&!xl,Jr=Ie&&(!ws||xl&&8<xl&&11>=xl),Pr=" ",Fr=!1;function kr(t,e){switch(t){case"keyup":return Ap.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wr(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Na=!1;function xp(t,e){switch(t){case"compositionend":return Wr(e);case"keypress":return e.which!==32?null:(Fr=!0,Pr);case"textInput":return t=e.data,t===Pr&&Fr?null:t;default:return null}}function Dp(t,e){if(Na)return t==="compositionend"||!ws&&kr(t,e)?(t=Yr(),ji=zs=_n=null,Na=!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 Jr&&e.locale!=="ko"?null:e.data;default:return null}}var Up={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 $r(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Up[t.type]:e==="textarea"}function Ir(t,e,n,a){La?wa?wa.push(a):wa=[a]:La=a,e=Du(e,"onChange"),0<e.length&&(n=new Gi("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var Dl=null,Ul=null;function Lp(t){Bd(t,0)}function Vi(t){var e=Ol(t);if(wr(e))return t}function tf(t,e){if(t==="change")return e}var ef=!1;if(Ie){var Ns;if(Ie){var Bs="oninput"in document;if(!Bs){var nf=document.createElement("div");nf.setAttribute("oninput","return;"),Bs=typeof nf.oninput=="function"}Ns=Bs}else Ns=!1;ef=Ns&&(!document.documentMode||9<document.documentMode)}function af(){Dl&&(Dl.detachEvent("onpropertychange",lf),Ul=Dl=null)}function lf(t){if(t.propertyName==="value"&&Vi(Ul)){var e=[];Ir(e,Ul,t,Ms(t)),Gr(Lp,e)}}function wp(t,e,n){t==="focusin"?(af(),Dl=e,Ul=n,Dl.attachEvent("onpropertychange",lf)):t==="focusout"&&af()}function Np(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Vi(Ul)}function Bp(t,e){if(t==="click")return Vi(e)}function Hp(t,e){if(t==="input"||t==="change")return Vi(e)}function jp(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ye=typeof Object.is=="function"?Object.is:jp;function Ll(t,e){if(ye(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var n=Object.keys(t),a=Object.keys(e);if(n.length!==a.length)return!1;for(a=0;a<n.length;a++){var i=n[a];if(!qe.call(e,i)||!ye(t[i],e[i]))return!1}return!0}function uf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function sf(t,e){var n=uf(t);t=0;for(var a;n;){if(n.nodeType===3){if(a=t+n.textContent.length,t<=e&&a>=e)return{node:n,offset:e-t};t=a}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=uf(n)}}function cf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?cf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function of(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Bi(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=Bi(t.document)}return e}function Hs(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 qp=Ie&&"documentMode"in document&&11>=document.documentMode,Ba=null,js=null,wl=null,qs=!1;function rf(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qs||Ba==null||Ba!==Bi(a)||(a=Ba,"selectionStart"in a&&Hs(a)?a={start:a.selectionStart,end:a.selectionEnd}:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection(),a={anchorNode:a.anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset}),wl&&Ll(wl,a)||(wl=a,a=Du(js,"onSelect"),0<a.length&&(e=new Gi("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=Ba)))}function $n(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ha={animationend:$n("Animation","AnimationEnd"),animationiteration:$n("Animation","AnimationIteration"),animationstart:$n("Animation","AnimationStart"),transitionrun:$n("Transition","TransitionRun"),transitionstart:$n("Transition","TransitionStart"),transitioncancel:$n("Transition","TransitionCancel"),transitionend:$n("Transition","TransitionEnd")},Qs={},ff={};Ie&&(ff=document.createElement("div").style,"AnimationEvent"in window||(delete Ha.animationend.animation,delete Ha.animationiteration.animation,delete Ha.animationstart.animation),"TransitionEvent"in window||delete Ha.transitionend.transition);function In(t){if(Qs[t])return Qs[t];if(!Ha[t])return t;var e=Ha[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in ff)return Qs[t]=e[n];return t}var hf=In("animationend"),df=In("animationiteration"),mf=In("animationstart"),Qp=In("transitionrun"),Gp=In("transitionstart"),Yp=In("transitioncancel"),yf=In("transitionend"),pf=new Map,Gs="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(" ");Gs.push("scrollEnd");function Qe(t,e){pf.set(t,e),kn(e,[t])}var Xi=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)},Me=[],ja=0,Ys=0;function Ki(){for(var t=ja,e=Ys=ja=0;e<t;){var n=Me[e];Me[e++]=null;var a=Me[e];Me[e++]=null;var i=Me[e];Me[e++]=null;var c=Me[e];if(Me[e++]=null,a!==null&&i!==null){var f=a.pending;f===null?i.next=i:(i.next=f.next,f.next=i),a.pending=i}c!==0&&vf(n,i,c)}}function Zi(t,e,n,a){Me[ja++]=t,Me[ja++]=e,Me[ja++]=n,Me[ja++]=a,Ys|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Vs(t,e,n,a){return Zi(t,e,n,a),Ji(t)}function ta(t,e){return Zi(t,null,null,e),Ji(t)}function vf(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var i=!1,c=t.return;c!==null;)c.childLanes|=n,a=c.alternate,a!==null&&(a.childLanes|=n),c.tag===22&&(t=c.stateNode,t===null||t._visibility&1||(i=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,i&&e!==null&&(i=31-me(n),t=c.hiddenUpdates,a=t[i],a===null?t[i]=[e]:a.push(e),e.lane=n|536870912),c):null}function Ji(t){if(50<ni)throw ni=0,$c=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var qa={};function Vp(t,e,n,a){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=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function pe(t,e,n,a){return new Vp(t,e,n,a)}function Xs(t){return t=t.prototype,!(!t||!t.isReactComponent)}function tn(t,e){var n=t.alternate;return n===null?(n=pe(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function gf(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 Pi(t,e,n,a,i,c){var f=0;if(a=t,typeof t=="function")Xs(t)&&(f=1);else if(typeof t=="string")f=Pv(t,n,Z.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case J:return t=pe(31,n,e,i),t.elementType=J,t.lanes=c,t;case x:return ea(n.children,i,c,e);case w:f=8,i|=24;break;case Q:return t=pe(12,n,e,i|2),t.elementType=Q,t.lanes=c,t;case $:return t=pe(13,n,e,i),t.elementType=$,t.lanes=c,t;case k:return t=pe(19,n,e,i),t.elementType=k,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case V:f=10;break t;case Y:f=9;break t;case q:f=11;break t;case G:f=14;break t;case j:f=16,a=null;break t}f=29,n=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=pe(f,n,e,i),e.elementType=t,e.type=a,e.lanes=c,e}function ea(t,e,n,a){return t=pe(7,t,a,e),t.lanes=n,t}function Ks(t,e,n){return t=pe(6,t,null,e),t.lanes=n,t}function Sf(t){var e=pe(18,null,null,0);return e.stateNode=t,e}function Zs(t,e,n){return e=pe(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var bf=new WeakMap;function Ce(t,e){if(typeof t=="object"&&t!==null){var n=bf.get(t);return n!==void 0?n:(e={value:t,source:e,stack:Oa(e)},bf.set(t,e),e)}return{value:t,source:e,stack:Oa(e)}}var Qa=[],Ga=0,Fi=null,Nl=0,Ae=[],ze=0,Rn=null,Xe=1,Ke="";function en(t,e){Qa[Ga++]=Nl,Qa[Ga++]=Fi,Fi=t,Nl=e}function _f(t,e,n){Ae[ze++]=Xe,Ae[ze++]=Ke,Ae[ze++]=Rn,Rn=t;var a=Xe;t=Ke;var i=32-me(a)-1;a&=~(1<<i),n+=1;var c=32-me(e)+i;if(30<c){var f=i-i%5;c=(a&(1<<f)-1).toString(32),a>>=f,i-=f,Xe=1<<32-me(e)+i|n<<i|a,Ke=c+t}else Xe=1<<c|n<<i|a,Ke=t}function Js(t){t.return!==null&&(en(t,1),_f(t,1,0))}function Ps(t){for(;t===Fi;)Fi=Qa[--Ga],Qa[Ga]=null,Nl=Qa[--Ga],Qa[Ga]=null;for(;t===Rn;)Rn=Ae[--ze],Ae[ze]=null,Ke=Ae[--ze],Ae[ze]=null,Xe=Ae[--ze],Ae[ze]=null}function Rf(t,e){Ae[ze++]=Xe,Ae[ze++]=Ke,Ae[ze++]=Rn,Xe=e.id,Ke=e.overflow,Rn=t}var Wt=null,Ut=null,gt=!1,En=null,xe=!1,Fs=Error(o(519));function Tn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Bl(Ce(e,t)),Fs}function Ef(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[kt]=t,e[ue]=a,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<li.length;n++)mt(li[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),Nr(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":mt("invalid",e);break;case"textarea":mt("invalid",e),Hr(e,a.value,a.defaultValue,a.children)}n=a.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||e.textContent===""+n||a.suppressHydrationWarning===!0||Qd(e.textContent,n)?(a.popover!=null&&(mt("beforetoggle",e),mt("toggle",e)),a.onScroll!=null&&mt("scroll",e),a.onScrollEnd!=null&&mt("scrollend",e),a.onClick!=null&&(e.onclick=$e),e=!0):e=!1,e||Tn(t,!0)}function Tf(t){for(Wt=t.return;Wt;)switch(Wt.tag){case 5:case 31:case 13:xe=!1;return;case 27:case 3:xe=!0;return;default:Wt=Wt.return}}function Ya(t){if(t!==Wt)return!1;if(!gt)return Tf(t),gt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||mo(t.type,t.memoizedProps)),n=!n),n&&Ut&&Tn(t),Tf(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=Fd(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=Fd(t)}else e===27?(e=Ut,jn(t.type)?(t=So,So=null,Ut=t):Ut=e):Ut=Wt?Ue(t.stateNode.nextSibling):null;return!0}function na(){Ut=Wt=null,gt=!1}function ks(){var t=En;return t!==null&&(fe===null?fe=t:fe.push.apply(fe,t),En=null),t}function Bl(t){En===null?En=[t]:En.push(t)}var Ws=T(null),aa=null,nn=null;function On(t,e,n){K(Ws,e._currentValue),e._currentValue=n}function an(t){t._currentValue=Ws.current,H(Ws)}function $s(t,e,n){for(;t!==null;){var a=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,a!==null&&(a.childLanes|=e)):a!==null&&(a.childLanes&e)!==e&&(a.childLanes|=e),t===n)break;t=t.return}}function Is(t,e,n,a){var i=t.child;for(i!==null&&(i.return=t);i!==null;){var c=i.dependencies;if(c!==null){var f=i.child;c=c.firstContext;t:for(;c!==null;){var m=c;c=i;for(var _=0;_<e.length;_++)if(m.context===e[_]){c.lanes|=n,m=c.alternate,m!==null&&(m.lanes|=n),$s(c.return,n,t),a||(f=null);break t}c=m.next}}else if(i.tag===18){if(f=i.return,f===null)throw Error(o(341));f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),$s(f,n,t),f=null}else f=i.child;if(f!==null)f.return=i;else for(f=i;f!==null;){if(f===t){f=null;break}if(i=f.sibling,i!==null){i.return=f.return,f=i;break}f=f.return}i=f}}function Va(t,e,n,a){t=null;for(var i=e,c=!1;i!==null;){if(!c){if((i.flags&524288)!==0)c=!0;else if((i.flags&262144)!==0)break}if(i.tag===10){var f=i.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var m=i.type;ye(i.pendingProps.value,f.value)||(t!==null?t.push(m):t=[m])}}else if(i===yt.current){if(f=i.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(t!==null?t.push(oi):t=[oi])}i=i.return}t!==null&&Is(e,t,n,a),e.flags|=262144}function ki(t){for(t=t.firstContext;t!==null;){if(!ye(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function la(t){aa=t,nn=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function $t(t){return Of(aa,t)}function Wi(t,e){return aa===null&&la(t),Of(t,e)}function Of(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},nn===null){if(t===null)throw Error(o(308));nn=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else nn=nn.next=e;return n}var Xp=typeof AbortController<"u"?AbortController:function(){var t=[],e=this.signal={aborted:!1,addEventListener:function(n,a){t.push(a)}};this.abort=function(){e.aborted=!0,t.forEach(function(n){return n()})}},Kp=l.unstable_scheduleCallback,Zp=l.unstable_NormalPriority,Gt={$$typeof:V,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function tc(){return{controller:new Xp,data:new Map,refCount:0}}function Hl(t){t.refCount--,t.refCount===0&&Kp(Zp,function(){t.controller.abort()})}var jl=null,ec=0,Xa=0,Ka=null;function Jp(t,e){if(jl===null){var n=jl=[];ec=0,Xa=lo(),Ka={status:"pending",value:void 0,then:function(a){n.push(a)}}}return ec++,e.then(Mf,Mf),e}function Mf(){if(--ec===0&&jl!==null){Ka!==null&&(Ka.status="fulfilled");var t=jl;jl=null,Xa=0,Ka=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function Pp(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(i){n.push(i)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var i=0;i<n.length;i++)(0,n[i])(e)},function(i){for(a.status="rejected",a.reason=i,i=0;i<n.length;i++)(0,n[i])(void 0)}),a}var Cf=U.S;U.S=function(t,e){rd=ae(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&Jp(t,e),Cf!==null&&Cf(t,e)};var ia=T(null);function nc(){var t=ia.current;return t!==null?t:zt.pooledCache}function $i(t,e){e===null?K(ia,ia.current):K(ia,e.pool)}function Af(){var t=nc();return t===null?null:{parent:Gt._currentValue,pool:t}}var Za=Error(o(460)),ac=Error(o(474)),Ii=Error(o(542)),tu={then:function(){}};function zf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function xf(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then($e,$e),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Uf(t),t;default:if(typeof e.status=="string")e.then($e,$e);else{if(t=zt,t!==null&&100<t.shellSuspendCounter)throw Error(o(482));t=e,t.status="pending",t.then(function(a){if(e.status==="pending"){var i=e;i.status="fulfilled",i.value=a}},function(a){if(e.status==="pending"){var i=e;i.status="rejected",i.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Uf(t),t}throw sa=e,Za}}function ua(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(sa=n,Za):n}}var sa=null;function Df(){if(sa===null)throw Error(o(459));var t=sa;return sa=null,t}function Uf(t){if(t===Za||t===Ii)throw Error(o(483))}var Ja=null,ql=0;function eu(t){var e=ql;return ql+=1,Ja===null&&(Ja=[]),xf(Ja,t,e)}function Ql(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function nu(t,e){throw e.$$typeof===S?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function Lf(t){function e(O,E){if(t){var M=O.deletions;M===null?(O.deletions=[E],O.flags|=16):M.push(E)}}function n(O,E){if(!t)return null;for(;E!==null;)e(O,E),E=E.sibling;return null}function a(O){for(var E=new Map;O!==null;)O.key!==null?E.set(O.key,O):E.set(O.index,O),O=O.sibling;return E}function i(O,E){return O=tn(O,E),O.index=0,O.sibling=null,O}function c(O,E,M){return O.index=M,t?(M=O.alternate,M!==null?(M=M.index,M<E?(O.flags|=67108866,E):M):(O.flags|=67108866,E)):(O.flags|=1048576,E)}function f(O){return t&&O.alternate===null&&(O.flags|=67108866),O}function m(O,E,M,N){return E===null||E.tag!==6?(E=Ks(M,O.mode,N),E.return=O,E):(E=i(E,M),E.return=O,E)}function _(O,E,M,N){var I=M.type;return I===x?L(O,E,M.props.children,N,M.key):E!==null&&(E.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===j&&ua(I)===E.type)?(E=i(E,M.props),Ql(E,M),E.return=O,E):(E=Pi(M.type,M.key,M.props,null,O.mode,N),Ql(E,M),E.return=O,E)}function C(O,E,M,N){return E===null||E.tag!==4||E.stateNode.containerInfo!==M.containerInfo||E.stateNode.implementation!==M.implementation?(E=Zs(M,O.mode,N),E.return=O,E):(E=i(E,M.children||[]),E.return=O,E)}function L(O,E,M,N,I){return E===null||E.tag!==7?(E=ea(M,O.mode,N,I),E.return=O,E):(E=i(E,M),E.return=O,E)}function B(O,E,M){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Ks(""+E,O.mode,M),E.return=O,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case R:return M=Pi(E.type,E.key,E.props,null,O.mode,M),Ql(M,E),M.return=O,M;case A:return E=Zs(E,O.mode,M),E.return=O,E;case j:return E=ua(E),B(O,E,M)}if(qt(E)||tt(E))return E=ea(E,O.mode,M,null),E.return=O,E;if(typeof E.then=="function")return B(O,eu(E),M);if(E.$$typeof===V)return B(O,Wi(O,E),M);nu(O,E)}return null}function z(O,E,M,N){var I=E!==null?E.key:null;if(typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint")return I!==null?null:m(O,E,""+M,N);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case R:return M.key===I?_(O,E,M,N):null;case A:return M.key===I?C(O,E,M,N):null;case j:return M=ua(M),z(O,E,M,N)}if(qt(M)||tt(M))return I!==null?null:L(O,E,M,N,null);if(typeof M.then=="function")return z(O,E,eu(M),N);if(M.$$typeof===V)return z(O,E,Wi(O,M),N);nu(O,M)}return null}function D(O,E,M,N,I){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return O=O.get(M)||null,m(E,O,""+N,I);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case R:return O=O.get(N.key===null?M:N.key)||null,_(E,O,N,I);case A:return O=O.get(N.key===null?M:N.key)||null,C(E,O,N,I);case j:return N=ua(N),D(O,E,M,N,I)}if(qt(N)||tt(N))return O=O.get(M)||null,L(E,O,N,I,null);if(typeof N.then=="function")return D(O,E,M,eu(N),I);if(N.$$typeof===V)return D(O,E,M,Wi(E,N),I);nu(E,N)}return null}function P(O,E,M,N){for(var I=null,St=null,F=E,rt=E=0,vt=null;F!==null&&rt<M.length;rt++){F.index>rt?(vt=F,F=null):vt=F.sibling;var bt=z(O,F,M[rt],N);if(bt===null){F===null&&(F=vt);break}t&&F&&bt.alternate===null&&e(O,F),E=c(bt,E,rt),St===null?I=bt:St.sibling=bt,St=bt,F=vt}if(rt===M.length)return n(O,F),gt&&en(O,rt),I;if(F===null){for(;rt<M.length;rt++)F=B(O,M[rt],N),F!==null&&(E=c(F,E,rt),St===null?I=F:St.sibling=F,St=F);return gt&&en(O,rt),I}for(F=a(F);rt<M.length;rt++)vt=D(F,O,rt,M[rt],N),vt!==null&&(t&&vt.alternate!==null&&F.delete(vt.key===null?rt:vt.key),E=c(vt,E,rt),St===null?I=vt:St.sibling=vt,St=vt);return t&&F.forEach(function(Vn){return e(O,Vn)}),gt&&en(O,rt),I}function nt(O,E,M,N){if(M==null)throw Error(o(151));for(var I=null,St=null,F=E,rt=E=0,vt=null,bt=M.next();F!==null&&!bt.done;rt++,bt=M.next()){F.index>rt?(vt=F,F=null):vt=F.sibling;var Vn=z(O,F,bt.value,N);if(Vn===null){F===null&&(F=vt);break}t&&F&&Vn.alternate===null&&e(O,F),E=c(Vn,E,rt),St===null?I=Vn:St.sibling=Vn,St=Vn,F=vt}if(bt.done)return n(O,F),gt&&en(O,rt),I;if(F===null){for(;!bt.done;rt++,bt=M.next())bt=B(O,bt.value,N),bt!==null&&(E=c(bt,E,rt),St===null?I=bt:St.sibling=bt,St=bt);return gt&&en(O,rt),I}for(F=a(F);!bt.done;rt++,bt=M.next())bt=D(F,O,rt,bt.value,N),bt!==null&&(t&&bt.alternate!==null&&F.delete(bt.key===null?rt:bt.key),E=c(bt,E,rt),St===null?I=bt:St.sibling=bt,St=bt);return t&&F.forEach(function(ig){return e(O,ig)}),gt&&en(O,rt),I}function At(O,E,M,N){if(typeof M=="object"&&M!==null&&M.type===x&&M.key===null&&(M=M.props.children),typeof M=="object"&&M!==null){switch(M.$$typeof){case R:t:{for(var I=M.key;E!==null;){if(E.key===I){if(I=M.type,I===x){if(E.tag===7){n(O,E.sibling),N=i(E,M.props.children),N.return=O,O=N;break t}}else if(E.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===j&&ua(I)===E.type){n(O,E.sibling),N=i(E,M.props),Ql(N,M),N.return=O,O=N;break t}n(O,E);break}else e(O,E);E=E.sibling}M.type===x?(N=ea(M.props.children,O.mode,N,M.key),N.return=O,O=N):(N=Pi(M.type,M.key,M.props,null,O.mode,N),Ql(N,M),N.return=O,O=N)}return f(O);case A:t:{for(I=M.key;E!==null;){if(E.key===I)if(E.tag===4&&E.stateNode.containerInfo===M.containerInfo&&E.stateNode.implementation===M.implementation){n(O,E.sibling),N=i(E,M.children||[]),N.return=O,O=N;break t}else{n(O,E);break}else e(O,E);E=E.sibling}N=Zs(M,O.mode,N),N.return=O,O=N}return f(O);case j:return M=ua(M),At(O,E,M,N)}if(qt(M))return P(O,E,M,N);if(tt(M)){if(I=tt(M),typeof I!="function")throw Error(o(150));return M=I.call(M),nt(O,E,M,N)}if(typeof M.then=="function")return At(O,E,eu(M),N);if(M.$$typeof===V)return At(O,E,Wi(O,M),N);nu(O,M)}return typeof M=="string"&&M!==""||typeof M=="number"||typeof M=="bigint"?(M=""+M,E!==null&&E.tag===6?(n(O,E.sibling),N=i(E,M),N.return=O,O=N):(n(O,E),N=Ks(M,O.mode,N),N.return=O,O=N),f(O)):n(O,E)}return function(O,E,M,N){try{ql=0;var I=At(O,E,M,N);return Ja=null,I}catch(F){if(F===Za||F===Ii)throw F;var St=pe(29,F,null,O.mode);return St.lanes=N,St.return=O,St}}}var ca=Lf(!0),wf=Lf(!1),Mn=!1;function lc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ic(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 Cn(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function An(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(Rt&2)!==0){var i=a.pending;return i===null?e.next=e:(e.next=i.next,i.next=e),a.pending=e,e=Ji(t),vf(t,null,n),e}return Zi(t,a,e,n),Ji(t)}function Gl(t,e,n){if(e=e.updateQueue,e!==null&&(e=e.shared,(n&4194048)!==0)){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Tr(t,n)}}function uc(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var i=null,c=null;if(n=n.firstBaseUpdate,n!==null){do{var f={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};c===null?i=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?i=c=e:c=c.next=e}else i=c=e;n={baseState:a.baseState,firstBaseUpdate:i,lastBaseUpdate:c,shared:a.shared,callbacks:a.callbacks},t.updateQueue=n;return}t=n.lastBaseUpdate,t===null?n.firstBaseUpdate=e:t.next=e,n.lastBaseUpdate=e}var sc=!1;function Yl(){if(sc){var t=Ka;if(t!==null)throw t}}function Vl(t,e,n,a){sc=!1;var i=t.updateQueue;Mn=!1;var c=i.firstBaseUpdate,f=i.lastBaseUpdate,m=i.shared.pending;if(m!==null){i.shared.pending=null;var _=m,C=_.next;_.next=null,f===null?c=C:f.next=C,f=_;var L=t.alternate;L!==null&&(L=L.updateQueue,m=L.lastBaseUpdate,m!==f&&(m===null?L.firstBaseUpdate=C:m.next=C,L.lastBaseUpdate=_))}if(c!==null){var B=i.baseState;f=0,L=C=_=null,m=c;do{var z=m.lane&-536870913,D=z!==m.lane;if(D?(pt&z)===z:(a&z)===z){z!==0&&z===Xa&&(sc=!0),L!==null&&(L=L.next={lane:0,tag:m.tag,payload:m.payload,callback:null,next:null});t:{var P=t,nt=m;z=e;var At=n;switch(nt.tag){case 1:if(P=nt.payload,typeof P=="function"){B=P.call(At,B,z);break t}B=P;break t;case 3:P.flags=P.flags&-65537|128;case 0:if(P=nt.payload,z=typeof P=="function"?P.call(At,B,z):P,z==null)break t;B=b({},B,z);break t;case 2:Mn=!0}}z=m.callback,z!==null&&(t.flags|=64,D&&(t.flags|=8192),D=i.callbacks,D===null?i.callbacks=[z]:D.push(z))}else D={lane:z,tag:m.tag,payload:m.payload,callback:m.callback,next:null},L===null?(C=L=D,_=B):L=L.next=D,f|=z;if(m=m.next,m===null){if(m=i.shared.pending,m===null)break;D=m,m=D.next,D.next=null,i.lastBaseUpdate=D,i.shared.pending=null}}while(!0);L===null&&(_=B),i.baseState=_,i.firstBaseUpdate=C,i.lastBaseUpdate=L,c===null&&(i.shared.lanes=0),Ln|=f,t.lanes=f,t.memoizedState=B}}function Nf(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Bf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)Nf(n[t],e)}var Pa=T(null),au=T(0);function Hf(t,e){t=dn,K(au,t),K(Pa,e),dn=t|e.baseLanes}function cc(){K(au,dn),K(Pa,Pa.current)}function oc(){dn=au.current,H(Pa),H(au)}var ve=T(null),De=null;function zn(t){var e=t.alternate;K(Ht,Ht.current&1),K(ve,t),De===null&&(e===null||Pa.current!==null||e.memoizedState!==null)&&(De=t)}function rc(t){K(Ht,Ht.current),K(ve,t),De===null&&(De=t)}function jf(t){t.tag===22?(K(Ht,Ht.current),K(ve,t),De===null&&(De=t)):xn()}function xn(){K(Ht,Ht.current),K(ve,ve.current)}function ge(t){H(ve),De===t&&(De=null),H(Ht)}var Ht=T(0);function lu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||vo(n)||go(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 ln=0,ot=null,Mt=null,Yt=null,iu=!1,Fa=!1,oa=!1,uu=0,Xl=0,ka=null,Fp=0;function Nt(){throw Error(o(321))}function fc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ye(t[n],e[n]))return!1;return!0}function hc(t,e,n,a,i,c){return ln=c,ot=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,U.H=t===null||t.memoizedState===null?_h:Cc,oa=!1,c=n(a,i),oa=!1,Fa&&(c=Qf(e,n,a,i)),qf(t),c}function qf(t){U.H=Jl;var e=Mt!==null&&Mt.next!==null;if(ln=0,Yt=Mt=ot=null,iu=!1,Xl=0,ka=null,e)throw Error(o(300));t===null||Vt||(t=t.dependencies,t!==null&&ki(t)&&(Vt=!0))}function Qf(t,e,n,a){ot=t;var i=0;do{if(Fa&&(ka=null),Xl=0,Fa=!1,25<=i)throw Error(o(301));if(i+=1,Yt=Mt=null,t.updateQueue!=null){var c=t.updateQueue;c.lastEffect=null,c.events=null,c.stores=null,c.memoCache!=null&&(c.memoCache.index=0)}U.H=Rh,c=e(n,a)}while(Fa);return c}function kp(){var t=U.H,e=t.useState()[0];return e=typeof e.then=="function"?Kl(e):e,t=t.useState()[0],(Mt!==null?Mt.memoizedState:null)!==t&&(ot.flags|=1024),e}function dc(){var t=uu!==0;return uu=0,t}function mc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function yc(t){if(iu){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}iu=!1}ln=0,Yt=Mt=ot=null,Fa=!1,Xl=uu=0,ka=null}function le(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Yt===null?ot.memoizedState=Yt=t:Yt=Yt.next=t,Yt}function jt(){if(Mt===null){var t=ot.alternate;t=t!==null?t.memoizedState:null}else t=Mt.next;var e=Yt===null?ot.memoizedState:Yt.next;if(e!==null)Yt=e,Mt=t;else{if(t===null)throw ot.alternate===null?Error(o(467)):Error(o(310));Mt=t,t={memoizedState:Mt.memoizedState,baseState:Mt.baseState,baseQueue:Mt.baseQueue,queue:Mt.queue,next:null},Yt===null?ot.memoizedState=Yt=t:Yt=Yt.next=t}return Yt}function su(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Kl(t){var e=Xl;return Xl+=1,ka===null&&(ka=[]),t=xf(ka,t,e),e=ot,(Yt===null?e.memoizedState:Yt.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?_h:Cc),t}function cu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Kl(t);if(t.$$typeof===V)return $t(t)}throw Error(o(438,String(t)))}function pc(t){var e=null,n=ot.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=ot.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(i){return i.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=su(),ot.updateQueue=n),n.memoCache=e,n=e.data[e.index],n===void 0)for(n=e.data[e.index]=Array(t),a=0;a<t;a++)n[a]=it;return e.index++,n}function un(t,e){return typeof e=="function"?e(t):e}function ou(t){var e=jt();return vc(e,Mt,t)}function vc(t,e,n){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=n;var i=t.baseQueue,c=a.pending;if(c!==null){if(i!==null){var f=i.next;i.next=c.next,c.next=f}e.baseQueue=i=c,a.pending=null}if(c=t.baseState,i===null)t.memoizedState=c;else{e=i.next;var m=f=null,_=null,C=e,L=!1;do{var B=C.lane&-536870913;if(B!==C.lane?(pt&B)===B:(ln&B)===B){var z=C.revertLane;if(z===0)_!==null&&(_=_.next={lane:0,revertLane:0,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null}),B===Xa&&(L=!0);else if((ln&z)===z){C=C.next,z===Xa&&(L=!0);continue}else B={lane:0,revertLane:C.revertLane,gesture:null,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},_===null?(m=_=B,f=c):_=_.next=B,ot.lanes|=z,Ln|=z;B=C.action,oa&&n(c,B),c=C.hasEagerState?C.eagerState:n(c,B)}else z={lane:B,revertLane:C.revertLane,gesture:C.gesture,action:C.action,hasEagerState:C.hasEagerState,eagerState:C.eagerState,next:null},_===null?(m=_=z,f=c):_=_.next=z,ot.lanes|=B,Ln|=B;C=C.next}while(C!==null&&C!==e);if(_===null?f=c:_.next=m,!ye(c,t.memoizedState)&&(Vt=!0,L&&(n=Ka,n!==null)))throw n;t.memoizedState=c,t.baseState=f,t.baseQueue=_,a.lastRenderedState=c}return i===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function gc(t){var e=jt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var a=n.dispatch,i=n.pending,c=e.memoizedState;if(i!==null){n.pending=null;var f=i=i.next;do c=t(c,f.action),f=f.next;while(f!==i);ye(c,e.memoizedState)||(Vt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),n.lastRenderedState=c}return[c,a]}function Gf(t,e,n){var a=ot,i=jt(),c=gt;if(c){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!ye((Mt||i).memoizedState,n);if(f&&(i.memoizedState=n,Vt=!0),i=i.queue,_c(Xf.bind(null,a,i,t),[t]),i.getSnapshot!==e||f||Yt!==null&&Yt.memoizedState.tag&1){if(a.flags|=2048,Wa(9,{destroy:void 0},Vf.bind(null,a,i,n,e),null),zt===null)throw Error(o(349));c||(ln&127)!==0||Yf(a,e,n)}return n}function Yf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ot.updateQueue,e===null?(e=su(),ot.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Vf(t,e,n,a){e.value=n,e.getSnapshot=a,Kf(e)&&Zf(t)}function Xf(t,e,n){return n(function(){Kf(e)&&Zf(t)})}function Kf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ye(t,n)}catch{return!0}}function Zf(t){var e=ta(t,2);e!==null&&he(e,t,2)}function Sc(t){var e=le();if(typeof t=="function"){var n=t;if(t=n(),oa){Sn(!0);try{n()}finally{Sn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:t},e}function Jf(t,e,n,a){return t.baseState=n,vc(t,Mt,typeof a=="function"?a:un)}function Wp(t,e,n,a,i){if(hu(t))throw Error(o(485));if(t=e.action,t!==null){var c={payload:i,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(f){c.listeners.push(f)}};U.T!==null?n(!0):c.isTransition=!1,a(c),n=e.pending,n===null?(c.next=e.pending=c,Pf(e,c)):(c.next=n.next,e.pending=n.next=c)}}function Pf(t,e){var n=e.action,a=e.payload,i=t.state;if(e.isTransition){var c=U.T,f={};U.T=f;try{var m=n(i,a),_=U.S;_!==null&&_(f,m),Ff(t,e,m)}catch(C){bc(t,e,C)}finally{c!==null&&f.types!==null&&(c.types=f.types),U.T=c}}else try{c=n(i,a),Ff(t,e,c)}catch(C){bc(t,e,C)}}function Ff(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){kf(t,e,a)},function(a){return bc(t,e,a)}):kf(t,e,n)}function kf(t,e,n){e.status="fulfilled",e.value=n,Wf(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,Pf(t,n)))}function bc(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,Wf(e),e=e.next;while(e!==a)}t.action=null}function Wf(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function $f(t,e){return e}function If(t,e){if(gt){var n=zt.formState;if(n!==null){t:{var a=ot;if(gt){if(Ut){e:{for(var i=Ut,c=xe;i.nodeType!==8;){if(!c){i=null;break e}if(i=Ue(i.nextSibling),i===null){i=null;break e}}c=i.data,i=c==="F!"||c==="F"?i:null}if(i){Ut=Ue(i.nextSibling),a=i.data==="F!";break t}}Tn(a)}a=!1}a&&(e=n[0])}}return n=le(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$f,lastRenderedState:e},n.queue=a,n=gh.bind(null,ot,a),a.dispatch=n,a=Sc(!1),c=Mc.bind(null,ot,!1,a.queue),a=le(),i={state:e,dispatch:null,action:t,pending:null},a.queue=i,n=Wp.bind(null,ot,i,c,n),i.dispatch=n,a.memoizedState=t,[e,n,!1]}function th(t){var e=jt();return eh(e,Mt,t)}function eh(t,e,n){if(e=vc(t,e,$f)[0],t=ou(un)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Kl(e)}catch(f){throw f===Za?Ii:f}else a=e;e=jt();var i=e.queue,c=i.dispatch;return n!==e.memoizedState&&(ot.flags|=2048,Wa(9,{destroy:void 0},$p.bind(null,i,n),null)),[a,c,t]}function $p(t,e){t.action=e}function nh(t){var e=jt(),n=Mt;if(n!==null)return eh(e,n,t);jt(),e=e.memoizedState,n=jt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function Wa(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=ot.updateQueue,e===null&&(e=su(),ot.updateQueue=e),n=e.lastEffect,n===null?e.lastEffect=t.next=t:(a=n.next,n.next=t,t.next=a,e.lastEffect=t),t}function ah(){return jt().memoizedState}function ru(t,e,n,a){var i=le();ot.flags|=t,i.memoizedState=Wa(1|e,{destroy:void 0},n,a===void 0?null:a)}function fu(t,e,n,a){var i=jt();a=a===void 0?null:a;var c=i.memoizedState.inst;Mt!==null&&a!==null&&fc(a,Mt.memoizedState.deps)?i.memoizedState=Wa(e,c,n,a):(ot.flags|=t,i.memoizedState=Wa(1|e,c,n,a))}function lh(t,e){ru(8390656,8,t,e)}function _c(t,e){fu(2048,8,t,e)}function Ip(t){ot.flags|=4;var e=ot.updateQueue;if(e===null)e=su(),ot.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function ih(t){var e=jt().memoizedState;return Ip({ref:e,nextImpl:t}),function(){if((Rt&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function uh(t,e){return fu(4,2,t,e)}function sh(t,e){return fu(4,4,t,e)}function ch(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 oh(t,e,n){n=n!=null?n.concat([t]):null,fu(4,4,ch.bind(null,e,t),n)}function Rc(){}function rh(t,e){var n=jt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&fc(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function fh(t,e){var n=jt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&fc(e,a[1]))return a[0];if(a=t(),oa){Sn(!0);try{t()}finally{Sn(!1)}}return n.memoizedState=[a,e],a}function Ec(t,e,n){return n===void 0||(ln&1073741824)!==0&&(pt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=hd(),ot.lanes|=t,Ln|=t,n)}function hh(t,e,n,a){return ye(n,e)?n:Pa.current!==null?(t=Ec(t,n,a),ye(t,e)||(Vt=!0),t):(ln&42)===0||(ln&1073741824)!==0&&(pt&261930)===0?(Vt=!0,t.memoizedState=n):(t=hd(),ot.lanes|=t,Ln|=t,e)}function dh(t,e,n,a,i){var c=X.p;X.p=c!==0&&8>c?c:8;var f=U.T,m={};U.T=m,Mc(t,!1,e,n);try{var _=i(),C=U.S;if(C!==null&&C(m,_),_!==null&&typeof _=="object"&&typeof _.then=="function"){var L=Pp(_,a);Zl(t,e,L,_e(t))}else Zl(t,e,a,_e(t))}catch(B){Zl(t,e,{then:function(){},status:"rejected",reason:B},_e())}finally{X.p=c,f!==null&&m.types!==null&&(f.types=m.types),U.T=f}}function tv(){}function Tc(t,e,n,a){if(t.tag!==5)throw Error(o(476));var i=mh(t).queue;dh(t,i,e,lt,n===null?tv:function(){return yh(t),n(a)})}function mh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:lt,baseState:lt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:lt},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:un,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function yh(t){var e=mh(t);e.next===null&&(e=t.alternate.memoizedState),Zl(t,e.next.queue,{},_e())}function Oc(){return $t(oi)}function ph(){return jt().memoizedState}function vh(){return jt().memoizedState}function ev(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=_e();t=Cn(n);var a=An(e,t,n);a!==null&&(he(a,e,n),Gl(a,e,n)),e={cache:tc()},t.payload=e;return}e=e.return}}function nv(t,e,n){var a=_e();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},hu(t)?Sh(e,n):(n=Vs(t,e,n,a),n!==null&&(he(n,t,a),bh(n,e,a)))}function gh(t,e,n){var a=_e();Zl(t,e,n,a)}function Zl(t,e,n,a){var i={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(hu(t))Sh(e,i);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var f=e.lastRenderedState,m=c(f,n);if(i.hasEagerState=!0,i.eagerState=m,ye(m,f))return Zi(t,e,i,0),zt===null&&Ki(),!1}catch{}if(n=Vs(t,e,i,a),n!==null)return he(n,t,a),bh(n,e,a),!0}return!1}function Mc(t,e,n,a){if(a={lane:2,revertLane:lo(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},hu(t)){if(e)throw Error(o(479))}else e=Vs(t,n,a,2),e!==null&&he(e,t,2)}function hu(t){var e=t.alternate;return t===ot||e!==null&&e===ot}function Sh(t,e){Fa=iu=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function bh(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Tr(t,n)}}var Jl={readContext:$t,use:cu,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};Jl.useEffectEvent=Nt;var _h={readContext:$t,use:cu,useCallback:function(t,e){return le().memoizedState=[t,e===void 0?null:e],t},useContext:$t,useEffect:lh,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,ru(4194308,4,ch.bind(null,e,t),n)},useLayoutEffect:function(t,e){return ru(4194308,4,t,e)},useInsertionEffect:function(t,e){ru(4,2,t,e)},useMemo:function(t,e){var n=le();e=e===void 0?null:e;var a=t();if(oa){Sn(!0);try{t()}finally{Sn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=le();if(n!==void 0){var i=n(e);if(oa){Sn(!0);try{n(e)}finally{Sn(!1)}}}else i=e;return a.memoizedState=a.baseState=i,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:i},a.queue=t,t=t.dispatch=nv.bind(null,ot,t),[a.memoizedState,t]},useRef:function(t){var e=le();return t={current:t},e.memoizedState=t},useState:function(t){t=Sc(t);var e=t.queue,n=gh.bind(null,ot,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Rc,useDeferredValue:function(t,e){var n=le();return Ec(n,t,e)},useTransition:function(){var t=Sc(!1);return t=dh.bind(null,ot,t.queue,!0,!1),le().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=ot,i=le();if(gt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),zt===null)throw Error(o(349));(pt&127)!==0||Yf(a,e,n)}i.memoizedState=n;var c={value:n,getSnapshot:e};return i.queue=c,lh(Xf.bind(null,a,c,t),[t]),a.flags|=2048,Wa(9,{destroy:void 0},Vf.bind(null,a,c,n,e),null),n},useId:function(){var t=le(),e=zt.identifierPrefix;if(gt){var n=Ke,a=Xe;n=(a&~(1<<32-me(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=uu++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=Fp++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Oc,useFormState:If,useActionState:If,useOptimistic:function(t){var e=le();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Mc.bind(null,ot,!0,n),n.dispatch=e,[t,e]},useMemoCache:pc,useCacheRefresh:function(){return le().memoizedState=ev.bind(null,ot)},useEffectEvent:function(t){var e=le(),n={impl:t};return e.memoizedState=n,function(){if((Rt&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},Cc={readContext:$t,use:cu,useCallback:rh,useContext:$t,useEffect:_c,useImperativeHandle:oh,useInsertionEffect:uh,useLayoutEffect:sh,useMemo:fh,useReducer:ou,useRef:ah,useState:function(){return ou(un)},useDebugValue:Rc,useDeferredValue:function(t,e){var n=jt();return hh(n,Mt.memoizedState,t,e)},useTransition:function(){var t=ou(un)[0],e=jt().memoizedState;return[typeof t=="boolean"?t:Kl(t),e]},useSyncExternalStore:Gf,useId:ph,useHostTransitionStatus:Oc,useFormState:th,useActionState:th,useOptimistic:function(t,e){var n=jt();return Jf(n,Mt,t,e)},useMemoCache:pc,useCacheRefresh:vh};Cc.useEffectEvent=ih;var Rh={readContext:$t,use:cu,useCallback:rh,useContext:$t,useEffect:_c,useImperativeHandle:oh,useInsertionEffect:uh,useLayoutEffect:sh,useMemo:fh,useReducer:gc,useRef:ah,useState:function(){return gc(un)},useDebugValue:Rc,useDeferredValue:function(t,e){var n=jt();return Mt===null?Ec(n,t,e):hh(n,Mt.memoizedState,t,e)},useTransition:function(){var t=gc(un)[0],e=jt().memoizedState;return[typeof t=="boolean"?t:Kl(t),e]},useSyncExternalStore:Gf,useId:ph,useHostTransitionStatus:Oc,useFormState:nh,useActionState:nh,useOptimistic:function(t,e){var n=jt();return Mt!==null?Jf(n,Mt,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:pc,useCacheRefresh:vh};Rh.useEffectEvent=ih;function Ac(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:b({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var zc={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=_e(),i=Cn(a);i.payload=e,n!=null&&(i.callback=n),e=An(t,i,a),e!==null&&(he(e,t,a),Gl(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=_e(),i=Cn(a);i.tag=1,i.payload=e,n!=null&&(i.callback=n),e=An(t,i,a),e!==null&&(he(e,t,a),Gl(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=_e(),a=Cn(n);a.tag=2,e!=null&&(a.callback=e),e=An(t,a,n),e!==null&&(he(e,t,n),Gl(e,t,n))}};function Eh(t,e,n,a,i,c,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,c,f):e.prototype&&e.prototype.isPureReactComponent?!Ll(n,a)||!Ll(i,c):!0}function Th(t,e,n,a){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(n,a),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(n,a),e.state!==t&&zc.enqueueReplaceState(e,e.state,null)}function ra(t,e){var n=e;if("ref"in e){n={};for(var a in e)a!=="ref"&&(n[a]=e[a])}if(t=t.defaultProps){n===e&&(n=b({},n));for(var i in t)n[i]===void 0&&(n[i]=t[i])}return n}function Oh(t){Xi(t)}function Mh(t){console.error(t)}function Ch(t){Xi(t)}function du(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Ah(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(i){setTimeout(function(){throw i})}}function xc(t,e,n){return n=Cn(n),n.tag=3,n.payload={element:null},n.callback=function(){du(t,e)},n}function zh(t){return t=Cn(t),t.tag=3,t}function xh(t,e,n,a){var i=n.type.getDerivedStateFromError;if(typeof i=="function"){var c=a.value;t.payload=function(){return i(c)},t.callback=function(){Ah(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Ah(e,n,a),typeof i!="function"&&(wn===null?wn=new Set([this]):wn.add(this));var m=a.stack;this.componentDidCatch(a.value,{componentStack:m!==null?m:""})})}function av(t,e,n,a,i){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&Va(e,n,i,!0),n=ve.current,n!==null){switch(n.tag){case 31:case 13:return De===null?Ou():n.alternate===null&&Bt===0&&(Bt=3),n.flags&=-257,n.flags|=65536,n.lanes=i,a===tu?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),eo(t,a,i)),!1;case 22:return n.flags|=65536,a===tu?n.flags|=16384:(e=n.updateQueue,e===null?(e={transitions:null,markerInstances:null,retryQueue:new Set([a])},n.updateQueue=e):(n=e.retryQueue,n===null?e.retryQueue=new Set([a]):n.add(a)),eo(t,a,i)),!1}throw Error(o(435,n.tag))}return eo(t,a,i),Ou(),!1}if(gt)return e=ve.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=i,a!==Fs&&(t=Error(o(422),{cause:a}),Bl(Ce(t,n)))):(a!==Fs&&(e=Error(o(423),{cause:a}),Bl(Ce(e,n))),t=t.current.alternate,t.flags|=65536,i&=-i,t.lanes|=i,a=Ce(a,n),i=xc(t.stateNode,a,i),uc(t,i),Bt!==4&&(Bt=2)),!1;var c=Error(o(520),{cause:a});if(c=Ce(c,n),ei===null?ei=[c]:ei.push(c),Bt!==4&&(Bt=2),e===null)return!0;a=Ce(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=i&-i,n.lanes|=t,t=xc(n.stateNode,a,t),uc(n,t),!1;case 1:if(e=n.type,c=n.stateNode,(n.flags&128)===0&&(typeof e.getDerivedStateFromError=="function"||c!==null&&typeof c.componentDidCatch=="function"&&(wn===null||!wn.has(c))))return n.flags|=65536,i&=-i,n.lanes|=i,i=zh(i),xh(i,t,n,a),uc(n,i),!1}n=n.return}while(n!==null);return!1}var Dc=Error(o(461)),Vt=!1;function It(t,e,n,a){e.child=t===null?wf(e,null,n,a):ca(e,t.child,n,a)}function Dh(t,e,n,a,i){n=n.render;var c=e.ref;if("ref"in a){var f={};for(var m in a)m!=="ref"&&(f[m]=a[m])}else f=a;return la(e),a=hc(t,e,n,f,c,i),m=dc(),t!==null&&!Vt?(mc(t,e,i),sn(t,e,i)):(gt&&m&&Js(e),e.flags|=1,It(t,e,a,i),e.child)}function Uh(t,e,n,a,i){if(t===null){var c=n.type;return typeof c=="function"&&!Xs(c)&&c.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=c,Lh(t,e,c,a,i)):(t=Pi(n.type,null,a,e,e.mode,i),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!qc(t,i)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:Ll,n(f,a)&&t.ref===e.ref)return sn(t,e,i)}return e.flags|=1,t=tn(c,a),t.ref=e.ref,t.return=e,e.child=t}function Lh(t,e,n,a,i){if(t!==null){var c=t.memoizedProps;if(Ll(c,a)&&t.ref===e.ref)if(Vt=!1,e.pendingProps=a=c,qc(t,i))(t.flags&131072)!==0&&(Vt=!0);else return e.lanes=t.lanes,sn(t,e,i)}return Uc(t,e,n,a,i)}function wh(t,e,n,a){var i=a.children,c=t!==null?t.memoizedState:null;if(t===null&&e.stateNode===null&&(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),a.mode==="hidden"){if((e.flags&128)!==0){if(c=c!==null?c.baseLanes|n:n,t!==null){for(a=e.child=t.child,i=0;a!==null;)i=i|a.lanes|a.childLanes,a=a.sibling;a=i&~c}else a=0,e.child=null;return Nh(t,e,c,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&$i(e,c!==null?c.cachePool:null),c!==null?Hf(e,c):cc(),jf(e);else return a=e.lanes=536870912,Nh(t,e,c!==null?c.baseLanes|n:n,n,a)}else c!==null?($i(e,c.cachePool),Hf(e,c),xn(),e.memoizedState=null):(t!==null&&$i(e,null),cc(),xn());return It(t,e,i,n),e.child}function Pl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function Nh(t,e,n,a,i){var c=nc();return c=c===null?null:{parent:Gt._currentValue,pool:c},e.memoizedState={baseLanes:n,cachePool:c},t!==null&&$i(e,null),cc(),jf(e),t!==null&&Va(t,e,a,!0),e.childLanes=i,null}function mu(t,e){return e=pu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Bh(t,e,n){return ca(e,t.child,null,n),t=mu(e,e.pendingProps),t.flags|=2,ge(e),e.memoizedState=null,t}function lv(t,e,n){var a=e.pendingProps,i=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(gt){if(a.mode==="hidden")return t=mu(e,a),e.lanes=536870912,Pl(null,t);if(rc(e),(t=Ut)?(t=Pd(t,xe),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Rn!==null?{id:Xe,overflow:Ke}:null,retryLane:536870912,hydrationErrors:null},n=Sf(t),n.return=e,e.child=n,Wt=e,Ut=null)):t=null,t===null)throw Tn(e);return e.lanes=536870912,null}return mu(e,a)}var c=t.memoizedState;if(c!==null){var f=c.dehydrated;if(rc(e),i)if(e.flags&256)e.flags&=-257,e=Bh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Vt||Va(t,e,n,!1),i=(n&t.childLanes)!==0,Vt||i){if(a=zt,a!==null&&(f=Or(a,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,ta(t,f),he(a,t,f),Dc;Ou(),e=Bh(t,e,n)}else t=c.treeContext,Ut=Ue(f.nextSibling),Wt=e,gt=!0,En=null,xe=!1,t!==null&&Rf(e,t),e=mu(e,a),e.flags|=4096;return e}return t=tn(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function yu(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(o(284));(t===null||t.ref!==n)&&(e.flags|=4194816)}}function Uc(t,e,n,a,i){return la(e),n=hc(t,e,n,a,void 0,i),a=dc(),t!==null&&!Vt?(mc(t,e,i),sn(t,e,i)):(gt&&a&&Js(e),e.flags|=1,It(t,e,n,i),e.child)}function Hh(t,e,n,a,i,c){return la(e),e.updateQueue=null,n=Qf(e,a,n,i),qf(t),a=dc(),t!==null&&!Vt?(mc(t,e,c),sn(t,e,c)):(gt&&a&&Js(e),e.flags|=1,It(t,e,n,c),e.child)}function jh(t,e,n,a,i){if(la(e),e.stateNode===null){var c=qa,f=n.contextType;typeof f=="object"&&f!==null&&(c=$t(f)),c=new n(a,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=zc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=a,c.state=e.memoizedState,c.refs={},lc(e),f=n.contextType,c.context=typeof f=="object"&&f!==null?$t(f):qa,c.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Ac(e,n,f,a),c.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(f=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),f!==c.state&&zc.enqueueReplaceState(c,c.state,null),Vl(e,a,c,i),Yl(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){c=e.stateNode;var m=e.memoizedProps,_=ra(n,m);c.props=_;var C=c.context,L=n.contextType;f=qa,typeof L=="object"&&L!==null&&(f=$t(L));var B=n.getDerivedStateFromProps;L=typeof B=="function"||typeof c.getSnapshotBeforeUpdate=="function",m=e.pendingProps!==m,L||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(m||C!==f)&&Th(e,c,a,f),Mn=!1;var z=e.memoizedState;c.state=z,Vl(e,a,c,i),Yl(),C=e.memoizedState,m||z!==C||Mn?(typeof B=="function"&&(Ac(e,n,B,a),C=e.memoizedState),(_=Mn||Eh(e,n,_,a,z,C,f))?(L||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount()),typeof c.componentDidMount=="function"&&(e.flags|=4194308)):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=a,e.memoizedState=C),c.props=a,c.state=C,c.context=f,a=_):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{c=e.stateNode,ic(t,e),f=e.memoizedProps,L=ra(n,f),c.props=L,B=e.pendingProps,z=c.context,C=n.contextType,_=qa,typeof C=="object"&&C!==null&&(_=$t(C)),m=n.getDerivedStateFromProps,(C=typeof m=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==B||z!==_)&&Th(e,c,a,_),Mn=!1,z=e.memoizedState,c.state=z,Vl(e,a,c,i),Yl();var D=e.memoizedState;f!==B||z!==D||Mn||t!==null&&t.dependencies!==null&&ki(t.dependencies)?(typeof m=="function"&&(Ac(e,n,m,a),D=e.memoizedState),(L=Mn||Eh(e,n,L,a,z,D,_)||t!==null&&t.dependencies!==null&&ki(t.dependencies))?(C||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,D,_),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,D,_)),typeof c.componentDidUpdate=="function"&&(e.flags|=4),typeof c.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),e.memoizedProps=a,e.memoizedState=D),c.props=a,c.state=D,c.context=_,a=L):(typeof c.componentDidUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=4),typeof c.getSnapshotBeforeUpdate!="function"||f===t.memoizedProps&&z===t.memoizedState||(e.flags|=1024),a=!1)}return c=a,yu(t,e),a=(e.flags&128)!==0,c||a?(c=e.stateNode,n=a&&typeof n.getDerivedStateFromError!="function"?null:c.render(),e.flags|=1,t!==null&&a?(e.child=ca(e,t.child,null,i),e.child=ca(e,null,n,i)):It(t,e,n,i),e.memoizedState=c.state,t=e.child):t=sn(t,e,i),t}function qh(t,e,n,a){return na(),e.flags|=256,It(t,e,n,a),e.child}var Lc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function wc(t){return{baseLanes:t,cachePool:Af()}}function Nc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=be),t}function Qh(t,e,n){var a=e.pendingProps,i=!1,c=(e.flags&128)!==0,f;if((f=c)||(f=t!==null&&t.memoizedState===null?!1:(Ht.current&2)!==0),f&&(i=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(gt){if(i?zn(e):xn(),(t=Ut)?(t=Pd(t,xe),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:Rn!==null?{id:Xe,overflow:Ke}:null,retryLane:536870912,hydrationErrors:null},n=Sf(t),n.return=e,e.child=n,Wt=e,Ut=null)):t=null,t===null)throw Tn(e);return go(t)?e.lanes=32:e.lanes=536870912,null}var m=a.children;return a=a.fallback,i?(xn(),i=e.mode,m=pu({mode:"hidden",children:m},i),a=ea(a,i,n,null),m.return=e,a.return=e,m.sibling=a,e.child=m,a=e.child,a.memoizedState=wc(n),a.childLanes=Nc(t,f,n),e.memoizedState=Lc,Pl(null,a)):(zn(e),Bc(e,m))}var _=t.memoizedState;if(_!==null&&(m=_.dehydrated,m!==null)){if(c)e.flags&256?(zn(e),e.flags&=-257,e=Hc(t,e,n)):e.memoizedState!==null?(xn(),e.child=t.child,e.flags|=128,e=null):(xn(),m=a.fallback,i=e.mode,a=pu({mode:"visible",children:a.children},i),m=ea(m,i,n,null),m.flags|=2,a.return=e,m.return=e,a.sibling=m,e.child=a,ca(e,t.child,null,n),a=e.child,a.memoizedState=wc(n),a.childLanes=Nc(t,f,n),e.memoizedState=Lc,e=Pl(null,a));else if(zn(e),go(m)){if(f=m.nextSibling&&m.nextSibling.dataset,f)var C=f.dgst;f=C,a=Error(o(419)),a.stack="",a.digest=f,Bl({value:a,source:null,stack:null}),e=Hc(t,e,n)}else if(Vt||Va(t,e,n,!1),f=(n&t.childLanes)!==0,Vt||f){if(f=zt,f!==null&&(a=Or(f,n),a!==0&&a!==_.retryLane))throw _.retryLane=a,ta(t,a),he(f,t,a),Dc;vo(m)||Ou(),e=Hc(t,e,n)}else vo(m)?(e.flags|=192,e.child=t.child,e=null):(t=_.treeContext,Ut=Ue(m.nextSibling),Wt=e,gt=!0,En=null,xe=!1,t!==null&&Rf(e,t),e=Bc(e,a.children),e.flags|=4096);return e}return i?(xn(),m=a.fallback,i=e.mode,_=t.child,C=_.sibling,a=tn(_,{mode:"hidden",children:a.children}),a.subtreeFlags=_.subtreeFlags&65011712,C!==null?m=tn(C,m):(m=ea(m,i,n,null),m.flags|=2),m.return=e,a.return=e,a.sibling=m,e.child=a,Pl(null,a),a=e.child,m=t.child.memoizedState,m===null?m=wc(n):(i=m.cachePool,i!==null?(_=Gt._currentValue,i=i.parent!==_?{parent:_,pool:_}:i):i=Af(),m={baseLanes:m.baseLanes|n,cachePool:i}),a.memoizedState=m,a.childLanes=Nc(t,f,n),e.memoizedState=Lc,Pl(t.child,a)):(zn(e),n=t.child,t=n.sibling,n=tn(n,{mode:"visible",children:a.children}),n.return=e,n.sibling=null,t!==null&&(f=e.deletions,f===null?(e.deletions=[t],e.flags|=16):f.push(t)),e.child=n,e.memoizedState=null,n)}function Bc(t,e){return e=pu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function pu(t,e){return t=pe(22,t,null,e),t.lanes=0,t}function Hc(t,e,n){return ca(e,t.child,null,n),t=Bc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Gh(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),$s(t.return,e,n)}function jc(t,e,n,a,i,c){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:i,treeForkCount:c}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=n,f.tailMode=i,f.treeForkCount=c)}function Yh(t,e,n){var a=e.pendingProps,i=a.revealOrder,c=a.tail;a=a.children;var f=Ht.current,m=(f&2)!==0;if(m?(f=f&1|2,e.flags|=128):f&=1,K(Ht,f),It(t,e,a,n),a=gt?Nl:0,!m&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Gh(t,n,e);else if(t.tag===19)Gh(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(i){case"forwards":for(n=e.child,i=null;n!==null;)t=n.alternate,t!==null&&lu(t)===null&&(i=n),n=n.sibling;n=i,n===null?(i=e.child,e.child=null):(i=n.sibling,n.sibling=null),jc(e,!1,i,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=e.child,e.child=null;i!==null;){if(t=i.alternate,t!==null&&lu(t)===null){e.child=i;break}t=i.sibling,i.sibling=n,n=i,i=t}jc(e,!0,n,null,c,a);break;case"together":jc(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function sn(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),Ln|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Va(t,e,n,!1),(n&e.childLanes)===0)return null}else return null;if(t!==null&&e.child!==t.child)throw Error(o(153));if(e.child!==null){for(t=e.child,n=tn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=tn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function qc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&ki(t)))}function iv(t,e,n){switch(e.tag){case 3:Qt(e,e.stateNode.containerInfo),On(e,Gt,t.memoizedState.cache),na();break;case 27:case 5:Ve(e);break;case 4:Qt(e,e.stateNode.containerInfo);break;case 10:On(e,e.type,e.memoizedProps.value);break;case 31:if(e.memoizedState!==null)return e.flags|=128,rc(e),null;break;case 13:var a=e.memoizedState;if(a!==null)return a.dehydrated!==null?(zn(e),e.flags|=128,null):(n&e.child.childLanes)!==0?Qh(t,e,n):(zn(e),t=sn(t,e,n),t!==null?t.sibling:null);zn(e);break;case 19:var i=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(Va(t,e,n,!1),a=(n&e.childLanes)!==0),i){if(a)return Yh(t,e,n);e.flags|=128}if(i=e.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),K(Ht,Ht.current),a)break;return null;case 22:return e.lanes=0,wh(t,e,n,e.pendingProps);case 24:On(e,Gt,t.memoizedState.cache)}return sn(t,e,n)}function Vh(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Vt=!0;else{if(!qc(t,n)&&(e.flags&128)===0)return Vt=!1,iv(t,e,n);Vt=(t.flags&131072)!==0}else Vt=!1,gt&&(e.flags&1048576)!==0&&_f(e,Nl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=ua(e.elementType),e.type=t,typeof t=="function")Xs(t)?(a=ra(t,a),e.tag=1,e=jh(null,e,t,a,n)):(e.tag=0,e=Uc(null,e,t,a,n));else{if(t!=null){var i=t.$$typeof;if(i===q){e.tag=11,e=Dh(null,e,t,a,n);break t}else if(i===G){e.tag=14,e=Uh(null,e,t,a,n);break t}}throw e=ct(t)||t,Error(o(306,e,""))}}return e;case 0:return Uc(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,i=ra(a,e.pendingProps),jh(t,e,a,i,n);case 3:t:{if(Qt(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var c=e.memoizedState;i=c.element,ic(t,e),Vl(e,a,null,n);var f=e.memoizedState;if(a=f.cache,On(e,Gt,a),a!==c.cache&&Is(e,[Gt],n,!0),Yl(),a=f.element,c.isDehydrated)if(c={element:a,isDehydrated:!1,cache:f.cache},e.updateQueue.baseState=c,e.memoizedState=c,e.flags&256){e=qh(t,e,a,n);break t}else if(a!==i){i=Ce(Error(o(424)),e),Bl(i),e=qh(t,e,a,n);break t}else for(t=e.stateNode.containerInfo,t.nodeType===9?t=t.body:t=t.nodeName==="HTML"?t.ownerDocument.body:t,Ut=Ue(t.firstChild),Wt=e,gt=!0,En=null,xe=!0,n=wf(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(na(),a===i){e=sn(t,e,n);break t}It(t,e,a,n)}e=e.child}return e;case 26:return yu(t,e),t===null?(n=tm(e.type,null,e.pendingProps,null))?e.memoizedState=n:gt||(n=e.type,t=e.pendingProps,a=Uu(ht.current).createElement(n),a[kt]=e,a[ue]=t,te(a,n,t),Jt(a),e.stateNode=a):e.memoizedState=tm(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Ve(e),t===null&&gt&&(a=e.stateNode=Wd(e.type,e.pendingProps,ht.current),Wt=e,xe=!0,i=Ut,jn(e.type)?(So=i,Ut=Ue(a.firstChild)):Ut=i),It(t,e,e.pendingProps.children,n),yu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&gt&&((i=a=Ut)&&(a=Nv(a,e.type,e.pendingProps,xe),a!==null?(e.stateNode=a,Wt=e,Ut=Ue(a.firstChild),xe=!1,i=!0):i=!1),i||Tn(e)),Ve(e),i=e.type,c=e.pendingProps,f=t!==null?t.memoizedProps:null,a=c.children,mo(i,c)?a=null:f!==null&&mo(i,f)&&(e.flags|=32),e.memoizedState!==null&&(i=hc(t,e,kp,null,null,n),oi._currentValue=i),yu(t,e),It(t,e,a,n),e.child;case 6:return t===null&&gt&&((t=n=Ut)&&(n=Bv(n,e.pendingProps,xe),n!==null?(e.stateNode=n,Wt=e,Ut=null,t=!0):t=!1),t||Tn(e)),null;case 13:return Qh(t,e,n);case 4:return Qt(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=ca(e,null,a,n):It(t,e,a,n),e.child;case 11:return Dh(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 a=e.pendingProps,On(e,e.type,a.value),It(t,e,a.children,n),e.child;case 9:return i=e.type._context,a=e.pendingProps.children,la(e),i=$t(i),a=a(i),e.flags|=1,It(t,e,a,n),e.child;case 14:return Uh(t,e,e.type,e.pendingProps,n);case 15:return Lh(t,e,e.type,e.pendingProps,n);case 19:return Yh(t,e,n);case 31:return lv(t,e,n);case 22:return wh(t,e,n,e.pendingProps);case 24:return la(e),a=$t(Gt),t===null?(i=nc(),i===null&&(i=zt,c=tc(),i.pooledCache=c,c.refCount++,c!==null&&(i.pooledCacheLanes|=n),i=c),e.memoizedState={parent:a,cache:i},lc(e),On(e,Gt,i)):((t.lanes&n)!==0&&(ic(t,e),Vl(e,null,null,n),Yl()),i=t.memoizedState,c=e.memoizedState,i.parent!==a?(i={parent:a,cache:a},e.memoizedState=i,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=i),On(e,Gt,a)):(a=c.cache,On(e,Gt,a),a!==i.cache&&Is(e,[Gt],n,!0))),It(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function cn(t){t.flags|=4}function Qc(t,e,n,a,i){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(i&335544128)===i)if(t.stateNode.complete)t.flags|=8192;else if(pd())t.flags|=8192;else throw sa=tu,ac}else t.flags&=-16777217}function Xh(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!im(e))if(pd())t.flags|=8192;else throw sa=tu,ac}function vu(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Rr():536870912,t.lanes|=e,el|=e)}function Fl(t,e){if(!gt)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 a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:a.sibling=null}}function Lt(t){var e=t.alternate!==null&&t.alternate.child===t.child,n=0,a=0;if(e)for(var i=t.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags&65011712,a|=i.flags&65011712,i.return=t,i=i.sibling;else for(i=t.child;i!==null;)n|=i.lanes|i.childLanes,a|=i.subtreeFlags,a|=i.flags,i.return=t,i=i.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function uv(t,e,n){var a=e.pendingProps;switch(Ps(e),e.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Lt(e),null;case 1:return Lt(e),null;case 3:return n=e.stateNode,a=null,t!==null&&(a=t.memoizedState.cache),e.memoizedState.cache!==a&&(e.flags|=2048),an(Gt),xt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ya(e)?cn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,ks())),Lt(e),null;case 26:var i=e.type,c=e.memoizedState;return t===null?(cn(e),c!==null?(Lt(e),Xh(e,c)):(Lt(e),Qc(e,i,null,a,n))):c?c!==t.memoizedState?(cn(e),Lt(e),Xh(e,c)):(Lt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&cn(e),Lt(e),Qc(e,i,t,a,n)),null;case 27:if(Fe(e),n=ht.current,i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&cn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}t=Z.current,Ya(e)?Ef(e):(t=Wd(i,a,n),e.stateNode=t,cn(e))}return Lt(e),null;case 5:if(Fe(e),i=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&cn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}if(c=Z.current,Ya(e))Ef(e);else{var f=Uu(ht.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":c=f.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof a.is=="string"?f.createElement("select",{is:a.is}):f.createElement("select"),a.multiple?c.multiple=!0:a.size&&(c.size=a.size);break;default:c=typeof a.is=="string"?f.createElement(i,{is:a.is}):f.createElement(i)}}c[kt]=e,c[ue]=a;t:for(f=e.child;f!==null;){if(f.tag===5||f.tag===6)c.appendChild(f.stateNode);else if(f.tag!==4&&f.tag!==27&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break t;for(;f.sibling===null;){if(f.return===null||f.return===e)break t;f=f.return}f.sibling.return=f.return,f=f.sibling}e.stateNode=c;t:switch(te(c,i,a),i){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&cn(e)}}return Lt(e),Qc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&cn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=ht.current,Ya(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,i=Wt,i!==null)switch(i.tag){case 27:case 5:a=i.memoizedProps}t[kt]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Qd(t.nodeValue,n)),t||Tn(e,!0)}else t=Uu(t).createTextNode(a),t[kt]=e,e.stateNode=t}return Lt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=Ya(e),n!==null){if(t===null){if(!a)throw Error(o(318));if(t=e.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(557));t[kt]=e}else na(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),t=!1}else n=ks(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(ge(e),e):(ge(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Lt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(i=Ya(e),a!==null&&a.dehydrated!==null){if(t===null){if(!i)throw Error(o(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(o(317));i[kt]=e}else na(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),i=!1}else i=ks(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=i),i=!0;if(!i)return e.flags&256?(ge(e),e):(ge(e),null)}return ge(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,i=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(i=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==i&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),vu(e,e.updateQueue),Lt(e),null);case 4:return xt(),t===null&&co(e.stateNode.containerInfo),Lt(e),null;case 10:return an(e.type),Lt(e),null;case 19:if(H(Ht),a=e.memoizedState,a===null)return Lt(e),null;if(i=(e.flags&128)!==0,c=a.rendering,c===null)if(i)Fl(a,!1);else{if(Bt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=lu(t),c!==null){for(e.flags|=128,Fl(a,!1),t=c.updateQueue,e.updateQueue=t,vu(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)gf(n,t),n=n.sibling;return K(Ht,Ht.current&1|2),gt&&en(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&ae()>Ru&&(e.flags|=128,i=!0,Fl(a,!1),e.lanes=4194304)}else{if(!i)if(t=lu(c),t!==null){if(e.flags|=128,i=!0,t=t.updateQueue,e.updateQueue=t,vu(e,t),Fl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!gt)return Lt(e),null}else 2*ae()-a.renderingStartTime>Ru&&n!==536870912&&(e.flags|=128,i=!0,Fl(a,!1),e.lanes=4194304);a.isBackwards?(c.sibling=e.child,e.child=c):(t=a.last,t!==null?t.sibling=c:e.child=c,a.last=c)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ae(),t.sibling=null,n=Ht.current,K(Ht,i?n&1|2:n&1),gt&&en(e,a.treeForkCount),t):(Lt(e),null);case 22:case 23:return ge(e),oc(),a=e.memoizedState!==null,t!==null?t.memoizedState!==null!==a&&(e.flags|=8192):a&&(e.flags|=8192),a?(n&536870912)!==0&&(e.flags&128)===0&&(Lt(e),e.subtreeFlags&6&&(e.flags|=8192)):Lt(e),n=e.updateQueue,n!==null&&vu(e,n.retryQueue),n=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(n=t.memoizedState.cachePool.pool),a=null,e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),a!==n&&(e.flags|=2048),t!==null&&H(ia),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),an(Gt),Lt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function sv(t,e){switch(Ps(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return an(Gt),xt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return Fe(e),null;case 31:if(e.memoizedState!==null){if(ge(e),e.alternate===null)throw Error(o(340));na()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(ge(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));na()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return H(Ht),null;case 4:return xt(),null;case 10:return an(e.type),null;case 22:case 23:return ge(e),oc(),t!==null&&H(ia),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return an(Gt),null;case 25:return null;default:return null}}function Kh(t,e){switch(Ps(e),e.tag){case 3:an(Gt),xt();break;case 26:case 27:case 5:Fe(e);break;case 4:xt();break;case 31:e.memoizedState!==null&&ge(e);break;case 13:ge(e);break;case 19:H(Ht);break;case 10:an(e.type);break;case 22:case 23:ge(e),oc(),t!==null&&H(ia);break;case 24:an(Gt)}}function kl(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var i=a.next;n=i;do{if((n.tag&t)===t){a=void 0;var c=n.create,f=n.inst;a=c(),f.destroy=a}n=n.next}while(n!==i)}}catch(m){Ot(e,e.return,m)}}function Dn(t,e,n){try{var a=e.updateQueue,i=a!==null?a.lastEffect:null;if(i!==null){var c=i.next;a=c;do{if((a.tag&t)===t){var f=a.inst,m=f.destroy;if(m!==void 0){f.destroy=void 0,i=e;var _=n,C=m;try{C()}catch(L){Ot(i,_,L)}}}a=a.next}while(a!==c)}}catch(L){Ot(e,e.return,L)}}function Zh(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Bf(e,n)}catch(a){Ot(t,t.return,a)}}}function Jh(t,e,n){n.props=ra(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Ot(t,e,a)}}function Wl(t,e){try{var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}typeof n=="function"?t.refCleanup=n(a):n.current=a}}catch(i){Ot(t,e,i)}}function Ze(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(i){Ot(t,e,i)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(i){Ot(t,e,i)}else n.current=null}function Ph(t){var e=t.type,n=t.memoizedProps,a=t.stateNode;try{t:switch(e){case"button":case"input":case"select":case"textarea":n.autoFocus&&a.focus();break t;case"img":n.src?a.src=n.src:n.srcSet&&(a.srcset=n.srcSet)}}catch(i){Ot(t,t.return,i)}}function Gc(t,e,n){try{var a=t.stateNode;zv(a,t.type,n,e),a[ue]=e}catch(i){Ot(t,t.return,i)}}function Fh(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&jn(t.type)||t.tag===4}function Yc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Fh(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&&jn(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 Vc(t,e,n){var a=t.tag;if(a===5||a===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=$e));else if(a!==4&&(a===27&&jn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Vc(t,e,n),t=t.sibling;t!==null;)Vc(t,e,n),t=t.sibling}function gu(t,e,n){var a=t.tag;if(a===5||a===6)t=t.stateNode,e?n.insertBefore(t,e):n.appendChild(t);else if(a!==4&&(a===27&&jn(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 kh(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,i=e.attributes;i.length;)e.removeAttributeNode(i[0]);te(e,a,n),e[kt]=t,e[ue]=n}catch(c){Ot(t,t.return,c)}}var on=!1,Xt=!1,Xc=!1,Wh=typeof WeakSet=="function"?WeakSet:Set,Pt=null;function cv(t,e){if(t=t.containerInfo,fo=qu,t=of(t),Hs(t)){if("selectionStart"in t)var n={start:t.selectionStart,end:t.selectionEnd};else t:{n=(n=t.ownerDocument)&&n.defaultView||window;var a=n.getSelection&&n.getSelection();if(a&&a.rangeCount!==0){n=a.anchorNode;var i=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break t}var f=0,m=-1,_=-1,C=0,L=0,B=t,z=null;e:for(;;){for(var D;B!==n||i!==0&&B.nodeType!==3||(m=f+i),B!==c||a!==0&&B.nodeType!==3||(_=f+a),B.nodeType===3&&(f+=B.nodeValue.length),(D=B.firstChild)!==null;)z=B,B=D;for(;;){if(B===t)break e;if(z===n&&++C===i&&(m=f),z===c&&++L===a&&(_=f),(D=B.nextSibling)!==null)break;B=z,z=B.parentNode}B=D}n=m===-1||_===-1?null:{start:m,end:_}}else n=null}n=n||{start:0,end:0}}else n=null;for(ho={focusedElem:t,selectionRange:n},qu=!1,Pt=e;Pt!==null;)if(e=Pt,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Pt=t;else for(;Pt!==null;){switch(e=Pt,c=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++)i=t[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,n=e,i=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var P=ra(n.type,i);t=a.getSnapshotBeforeUpdate(P,c),a.__reactInternalSnapshotBeforeUpdate=t}catch(nt){Ot(n,n.return,nt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)po(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":po(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(o(163))}if(t=e.sibling,t!==null){t.return=e.return,Pt=t;break}Pt=e.return}}function $h(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:fn(t,n),a&4&&kl(5,n);break;case 1:if(fn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Ot(n,n.return,f)}else{var i=ra(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(i,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Ot(n,n.return,f)}}a&64&&Zh(n),a&512&&Wl(n,n.return);break;case 3:if(fn(t,n),a&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{Bf(t,e)}catch(f){Ot(n,n.return,f)}}break;case 27:e===null&&a&4&&kh(n);case 26:case 5:fn(t,n),e===null&&a&4&&Ph(n),a&512&&Wl(n,n.return);break;case 12:fn(t,n);break;case 31:fn(t,n),a&4&&ed(t,n);break;case 13:fn(t,n),a&4&&nd(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=vv.bind(null,n),Hv(t,n))));break;case 22:if(a=n.memoizedState!==null||on,!a){e=e!==null&&e.memoizedState!==null||Xt,i=on;var c=Xt;on=a,(Xt=e)&&!c?hn(t,n,(n.subtreeFlags&8772)!==0):fn(t,n),on=i,Xt=c}break;case 30:break;default:fn(t,n)}}function Ih(t){var e=t.alternate;e!==null&&(t.alternate=null,Ih(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&bs(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 wt=null,ce=!1;function rn(t,e,n){for(n=n.child;n!==null;)td(t,e,n),n=n.sibling}function td(t,e,n){if(de&&typeof de.onCommitFiberUnmount=="function")try{de.onCommitFiberUnmount(_l,n)}catch{}switch(n.tag){case 26:Xt||Ze(n,e),rn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Xt||Ze(n,e);var a=wt,i=ce;jn(n.type)&&(wt=n.stateNode,ce=!1),rn(t,e,n),ui(n.stateNode),wt=a,ce=i;break;case 5:Xt||Ze(n,e);case 6:if(a=wt,i=ce,wt=null,rn(t,e,n),wt=a,ce=i,wt!==null)if(ce)try{(wt.nodeType===9?wt.body:wt.nodeName==="HTML"?wt.ownerDocument.body:wt).removeChild(n.stateNode)}catch(c){Ot(n,e,c)}else try{wt.removeChild(n.stateNode)}catch(c){Ot(n,e,c)}break;case 18:wt!==null&&(ce?(t=wt,Zd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),ol(t)):Zd(wt,n.stateNode));break;case 4:a=wt,i=ce,wt=n.stateNode.containerInfo,ce=!0,rn(t,e,n),wt=a,ce=i;break;case 0:case 11:case 14:case 15:Dn(2,n,e),Xt||Dn(4,n,e),rn(t,e,n);break;case 1:Xt||(Ze(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Jh(n,e,a)),rn(t,e,n);break;case 21:rn(t,e,n);break;case 22:Xt=(a=Xt)||n.memoizedState!==null,rn(t,e,n),Xt=a;break;default:rn(t,e,n)}}function ed(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{ol(t)}catch(n){Ot(e,e.return,n)}}}function nd(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{ol(t)}catch(n){Ot(e,e.return,n)}}function ov(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new Wh),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new Wh),e;default:throw Error(o(435,t.tag))}}function Su(t,e){var n=ov(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var i=gv.bind(null,t,a);a.then(i,i)}})}function oe(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var i=n[a],c=t,f=e,m=f;t:for(;m!==null;){switch(m.tag){case 27:if(jn(m.type)){wt=m.stateNode,ce=!1;break t}break;case 5:wt=m.stateNode,ce=!1;break t;case 3:case 4:wt=m.stateNode.containerInfo,ce=!0;break t}m=m.return}if(wt===null)throw Error(o(160));td(c,f,i),wt=null,ce=!1,c=i.alternate,c!==null&&(c.return=null),i.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)ad(e,t),e=e.sibling}var Ge=null;function ad(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:oe(e,t),re(t),a&4&&(Dn(3,t,t.return),kl(3,t),Dn(5,t,t.return));break;case 1:oe(e,t),re(t),a&512&&(Xt||n===null||Ze(n,n.return)),a&64&&on&&(t=t.updateQueue,t!==null&&(a=t.callbacks,a!==null&&(n=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=n===null?a:n.concat(a))));break;case 26:var i=Ge;if(oe(e,t),re(t),a&512&&(Xt||n===null||Ze(n,n.return)),a&4){var c=n!==null?n.memoizedState:null;if(a=t.memoizedState,n===null)if(a===null)if(t.stateNode===null){t:{a=t.type,n=t.memoizedProps,i=i.ownerDocument||i;e:switch(a){case"title":c=i.getElementsByTagName("title")[0],(!c||c[Tl]||c[kt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=i.createElement(a),i.head.insertBefore(c,i.querySelector("head > title"))),te(c,a,n),c[kt]=t,Jt(c),a=c;break t;case"link":var f=am("link","href",i).get(a+(n.href||""));if(f){for(var m=0;m<f.length;m++)if(c=f[m],c.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&c.getAttribute("rel")===(n.rel==null?null:n.rel)&&c.getAttribute("title")===(n.title==null?null:n.title)&&c.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){f.splice(m,1);break e}}c=i.createElement(a),te(c,a,n),i.head.appendChild(c);break;case"meta":if(f=am("meta","content",i).get(a+(n.content||""))){for(m=0;m<f.length;m++)if(c=f[m],c.getAttribute("content")===(n.content==null?null:""+n.content)&&c.getAttribute("name")===(n.name==null?null:n.name)&&c.getAttribute("property")===(n.property==null?null:n.property)&&c.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&c.getAttribute("charset")===(n.charSet==null?null:n.charSet)){f.splice(m,1);break e}}c=i.createElement(a),te(c,a,n),i.head.appendChild(c);break;default:throw Error(o(468,a))}c[kt]=t,Jt(c),a=c}t.stateNode=a}else lm(i,t.type,t.stateNode);else t.stateNode=nm(i,a,t.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?lm(i,t.type,t.stateNode):nm(i,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Gc(t,t.memoizedProps,n.memoizedProps)}break;case 27:oe(e,t),re(t),a&512&&(Xt||n===null||Ze(n,n.return)),n!==null&&a&4&&Gc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(oe(e,t),re(t),a&512&&(Xt||n===null||Ze(n,n.return)),t.flags&32){i=t.stateNode;try{Ua(i,"")}catch(P){Ot(t,t.return,P)}}a&4&&t.stateNode!=null&&(i=t.memoizedProps,Gc(t,i,n!==null?n.memoizedProps:i)),a&1024&&(Xc=!0);break;case 6:if(oe(e,t),re(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(P){Ot(t,t.return,P)}}break;case 3:if(Nu=null,i=Ge,Ge=Lu(e.containerInfo),oe(e,t),Ge=i,re(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{ol(e.containerInfo)}catch(P){Ot(t,t.return,P)}Xc&&(Xc=!1,ld(t));break;case 4:a=Ge,Ge=Lu(t.stateNode.containerInfo),oe(e,t),re(t),Ge=a;break;case 12:oe(e,t),re(t);break;case 31:oe(e,t),re(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Su(t,a)));break;case 13:oe(e,t),re(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(_u=ae()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Su(t,a)));break;case 22:i=t.memoizedState!==null;var _=n!==null&&n.memoizedState!==null,C=on,L=Xt;if(on=C||i,Xt=L||_,oe(e,t),Xt=L,on=C,re(t),a&8192)t:for(e=t.stateNode,e._visibility=i?e._visibility&-2:e._visibility|1,i&&(n===null||_||on||Xt||fa(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){_=n=e;try{if(c=_.stateNode,i)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{m=_.stateNode;var B=_.memoizedProps.style,z=B!=null&&B.hasOwnProperty("display")?B.display:null;m.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(P){Ot(_,_.return,P)}}}else if(e.tag===6){if(n===null){_=e;try{_.stateNode.nodeValue=i?"":_.memoizedProps}catch(P){Ot(_,_.return,P)}}}else if(e.tag===18){if(n===null){_=e;try{var D=_.stateNode;i?Jd(D,!0):Jd(_.stateNode,!1)}catch(P){Ot(_,_.return,P)}}}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}a&4&&(a=t.updateQueue,a!==null&&(n=a.retryQueue,n!==null&&(a.retryQueue=null,Su(t,n))));break;case 19:oe(e,t),re(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,Su(t,a)));break;case 30:break;case 21:break;default:oe(e,t),re(t)}}function re(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(Fh(a)){n=a;break}a=a.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var i=n.stateNode,c=Yc(t);gu(t,c,i);break;case 5:var f=n.stateNode;n.flags&32&&(Ua(f,""),n.flags&=-33);var m=Yc(t);gu(t,m,f);break;case 3:case 4:var _=n.stateNode.containerInfo,C=Yc(t);Vc(t,C,_);break;default:throw Error(o(161))}}catch(L){Ot(t,t.return,L)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function ld(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;ld(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function fn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)$h(t,e.alternate,e),e=e.sibling}function fa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Dn(4,e,e.return),fa(e);break;case 1:Ze(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Jh(e,e.return,n),fa(e);break;case 27:ui(e.stateNode);case 26:case 5:Ze(e,e.return),fa(e);break;case 22:e.memoizedState===null&&fa(e);break;case 30:fa(e);break;default:fa(e)}t=t.sibling}}function hn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,i=t,c=e,f=c.flags;switch(c.tag){case 0:case 11:case 15:hn(i,c,n),kl(4,c);break;case 1:if(hn(i,c,n),a=c,i=a.stateNode,typeof i.componentDidMount=="function")try{i.componentDidMount()}catch(C){Ot(a,a.return,C)}if(a=c,i=a.updateQueue,i!==null){var m=a.stateNode;try{var _=i.shared.hiddenCallbacks;if(_!==null)for(i.shared.hiddenCallbacks=null,i=0;i<_.length;i++)Nf(_[i],m)}catch(C){Ot(a,a.return,C)}}n&&f&64&&Zh(c),Wl(c,c.return);break;case 27:kh(c);case 26:case 5:hn(i,c,n),n&&a===null&&f&4&&Ph(c),Wl(c,c.return);break;case 12:hn(i,c,n);break;case 31:hn(i,c,n),n&&f&4&&ed(i,c);break;case 13:hn(i,c,n),n&&f&4&&nd(i,c);break;case 22:c.memoizedState===null&&hn(i,c,n),Wl(c,c.return);break;case 30:break;default:hn(i,c,n)}e=e.sibling}}function Kc(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&&Hl(n))}function Zc(t,e){t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Hl(t))}function Ye(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)id(t,e,n,a),e=e.sibling}function id(t,e,n,a){var i=e.flags;switch(e.tag){case 0:case 11:case 15:Ye(t,e,n,a),i&2048&&kl(9,e);break;case 1:Ye(t,e,n,a);break;case 3:Ye(t,e,n,a),i&2048&&(t=null,e.alternate!==null&&(t=e.alternate.memoizedState.cache),e=e.memoizedState.cache,e!==t&&(e.refCount++,t!=null&&Hl(t)));break;case 12:if(i&2048){Ye(t,e,n,a),t=e.stateNode;try{var c=e.memoizedProps,f=c.id,m=c.onPostCommit;typeof m=="function"&&m(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(_){Ot(e,e.return,_)}}else Ye(t,e,n,a);break;case 31:Ye(t,e,n,a);break;case 13:Ye(t,e,n,a);break;case 23:break;case 22:c=e.stateNode,f=e.alternate,e.memoizedState!==null?c._visibility&2?Ye(t,e,n,a):$l(t,e):c._visibility&2?Ye(t,e,n,a):(c._visibility|=2,$a(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),i&2048&&Kc(f,e);break;case 24:Ye(t,e,n,a),i&2048&&Zc(e.alternate,e);break;default:Ye(t,e,n,a)}}function $a(t,e,n,a,i){for(i=i&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,f=e,m=n,_=a,C=f.flags;switch(f.tag){case 0:case 11:case 15:$a(c,f,m,_,i),kl(8,f);break;case 23:break;case 22:var L=f.stateNode;f.memoizedState!==null?L._visibility&2?$a(c,f,m,_,i):$l(c,f):(L._visibility|=2,$a(c,f,m,_,i)),i&&C&2048&&Kc(f.alternate,f);break;case 24:$a(c,f,m,_,i),i&&C&2048&&Zc(f.alternate,f);break;default:$a(c,f,m,_,i)}e=e.sibling}}function $l(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,i=a.flags;switch(a.tag){case 22:$l(n,a),i&2048&&Kc(a.alternate,a);break;case 24:$l(n,a),i&2048&&Zc(a.alternate,a);break;default:$l(n,a)}e=e.sibling}}var Il=8192;function Ia(t,e,n){if(t.subtreeFlags&Il)for(t=t.child;t!==null;)ud(t,e,n),t=t.sibling}function ud(t,e,n){switch(t.tag){case 26:Ia(t,e,n),t.flags&Il&&t.memoizedState!==null&&Fv(n,Ge,t.memoizedState,t.memoizedProps);break;case 5:Ia(t,e,n);break;case 3:case 4:var a=Ge;Ge=Lu(t.stateNode.containerInfo),Ia(t,e,n),Ge=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=Il,Il=16777216,Ia(t,e,n),Il=a):Ia(t,e,n));break;default:Ia(t,e,n)}}function sd(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 ti(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];Pt=a,od(a,t)}sd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)cd(t),t=t.sibling}function cd(t){switch(t.tag){case 0:case 11:case 15:ti(t),t.flags&2048&&Dn(9,t,t.return);break;case 3:ti(t);break;case 12:ti(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,bu(t)):ti(t);break;default:ti(t)}}function bu(t){var e=t.deletions;if((t.flags&16)!==0){if(e!==null)for(var n=0;n<e.length;n++){var a=e[n];Pt=a,od(a,t)}sd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Dn(8,e,e.return),bu(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,bu(e));break;default:bu(e)}t=t.sibling}}function od(t,e){for(;Pt!==null;){var n=Pt;switch(n.tag){case 0:case 11:case 15:Dn(8,n,e);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var a=n.memoizedState.cachePool.pool;a!=null&&a.refCount++}break;case 24:Hl(n.memoizedState.cache)}if(a=n.child,a!==null)a.return=n,Pt=a;else t:for(n=t;Pt!==null;){a=Pt;var i=a.sibling,c=a.return;if(Ih(a),a===n){Pt=null;break t}if(i!==null){i.return=c,Pt=i;break t}Pt=c}}}var rv={getCacheForType:function(t){var e=$t(Gt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return $t(Gt).controller.signal}},fv=typeof WeakMap=="function"?WeakMap:Map,Rt=0,zt=null,dt=null,pt=0,Tt=0,Se=null,Un=!1,tl=!1,Jc=!1,dn=0,Bt=0,Ln=0,ha=0,Pc=0,be=0,el=0,ei=null,fe=null,Fc=!1,_u=0,rd=0,Ru=1/0,Eu=null,wn=null,Kt=0,Nn=null,nl=null,mn=0,kc=0,Wc=null,fd=null,ni=0,$c=null;function _e(){return(Rt&2)!==0&&pt!==0?pt&-pt:U.T!==null?lo():Mr()}function hd(){if(be===0)if((pt&536870912)===0||gt){var t=Di;Di<<=1,(Di&3932160)===0&&(Di=262144),be=t}else be=536870912;return t=ve.current,t!==null&&(t.flags|=32),be}function he(t,e,n){(t===zt&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)&&(al(t,0),Bn(t,pt,be,!1)),El(t,n),((Rt&2)===0||t!==zt)&&(t===zt&&((Rt&2)===0&&(ha|=n),Bt===4&&Bn(t,pt,be,!1)),Je(t))}function dd(t,e,n){if((Rt&6)!==0)throw Error(o(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||Rl(t,e),i=a?mv(t,e):to(t,e,!0),c=a;do{if(i===0){tl&&!a&&Bn(t,e,0,!1);break}else{if(n=t.current.alternate,c&&!hv(n)){i=to(t,e,!1),c=!1;continue}if(i===2){if(c=e,t.errorRecoveryDisabledLanes&c)var f=0;else f=t.pendingLanes&-536870913,f=f!==0?f:f&536870912?536870912:0;if(f!==0){e=f;t:{var m=t;i=ei;var _=m.current.memoizedState.isDehydrated;if(_&&(al(m,f).flags|=256),f=to(m,f,!1),f!==2){if(Jc&&!_){m.errorRecoveryDisabledLanes|=c,ha|=c,i=4;break t}c=fe,fe=i,c!==null&&(fe===null?fe=c:fe.push.apply(fe,c))}i=f}if(c=!1,i!==2)continue}}if(i===1){al(t,0),Bn(t,e,0,!0);break}t:{switch(a=t,c=i,c){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:Bn(a,e,be,!Un);break t;case 2:fe=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(i=_u+300-ae(),10<i)){if(Bn(a,e,be,!Un),Li(a,0,!0)!==0)break t;mn=e,a.timeoutHandle=Xd(md.bind(null,a,n,fe,Eu,Fc,e,be,ha,el,Un,c,"Throttled",-0,0),i);break t}md(a,n,fe,Eu,Fc,e,be,ha,el,Un,c,null,-0,0)}}break}while(!0);Je(t)}function md(t,e,n,a,i,c,f,m,_,C,L,B,z,D){if(t.timeoutHandle=-1,B=e.subtreeFlags,B&8192||(B&16785408)===16785408){B={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:$e},ud(e,c,B);var P=(c&62914560)===c?_u-ae():(c&4194048)===c?rd-ae():0;if(P=kv(B,P),P!==null){mn=c,t.cancelPendingCommit=P(Rd.bind(null,t,e,c,n,a,i,f,m,_,L,B,null,z,D)),Bn(t,c,f,!C);return}}Rd(t,e,c,n,a,i,f,m,_)}function hv(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 a=0;a<n.length;a++){var i=n[a],c=i.getSnapshot;i=i.value;try{if(!ye(c(),i))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 Bn(t,e,n,a){e&=~Pc,e&=~ha,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var i=e;0<i;){var c=31-me(i),f=1<<c;a[c]=-1,i&=~f}n!==0&&Er(t,n,e)}function Tu(){return(Rt&6)===0?(ai(0),!1):!0}function Ic(){if(dt!==null){if(Tt===0)var t=dt.return;else t=dt,nn=aa=null,yc(t),Ja=null,ql=0,t=dt;for(;t!==null;)Kh(t.alternate,t),t=t.return;dt=null}}function al(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Uv(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),mn=0,Ic(),zt=t,dt=n=tn(t.current,null),pt=e,Tt=0,Se=null,Un=!1,tl=Rl(t,e),Jc=!1,el=be=Pc=ha=Ln=Bt=0,fe=ei=null,Fc=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var i=31-me(a),c=1<<i;e|=t[i],a&=~c}return dn=e,Ki(),n}function yd(t,e){ot=null,U.H=Jl,e===Za||e===Ii?(e=Df(),Tt=3):e===ac?(e=Df(),Tt=4):Tt=e===Dc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,Se=e,dt===null&&(Bt=1,du(t,Ce(e,t.current)))}function pd(){var t=ve.current;return t===null?!0:(pt&4194048)===pt?De===null:(pt&62914560)===pt||(pt&536870912)!==0?t===De:!1}function vd(){var t=U.H;return U.H=Jl,t===null?Jl:t}function gd(){var t=U.A;return U.A=rv,t}function Ou(){Bt=4,Un||(pt&4194048)!==pt&&ve.current!==null||(tl=!0),(Ln&134217727)===0&&(ha&134217727)===0||zt===null||Bn(zt,pt,be,!1)}function to(t,e,n){var a=Rt;Rt|=2;var i=vd(),c=gd();(zt!==t||pt!==e)&&(Eu=null,al(t,e)),e=!1;var f=Bt;t:do try{if(Tt!==0&&dt!==null){var m=dt,_=Se;switch(Tt){case 8:Ic(),f=6;break t;case 3:case 2:case 9:case 6:ve.current===null&&(e=!0);var C=Tt;if(Tt=0,Se=null,ll(t,m,_,C),n&&tl){f=0;break t}break;default:C=Tt,Tt=0,Se=null,ll(t,m,_,C)}}dv(),f=Bt;break}catch(L){yd(t,L)}while(!0);return e&&t.shellSuspendCounter++,nn=aa=null,Rt=a,U.H=i,U.A=c,dt===null&&(zt=null,pt=0,Ki()),f}function dv(){for(;dt!==null;)Sd(dt)}function mv(t,e){var n=Rt;Rt|=2;var a=vd(),i=gd();zt!==t||pt!==e?(Eu=null,Ru=ae()+500,al(t,e)):tl=Rl(t,e);t:do try{if(Tt!==0&&dt!==null){e=dt;var c=Se;e:switch(Tt){case 1:Tt=0,Se=null,ll(t,e,c,1);break;case 2:case 9:if(zf(c)){Tt=0,Se=null,bd(e);break}e=function(){Tt!==2&&Tt!==9||zt!==t||(Tt=7),Je(t)},c.then(e,e);break t;case 3:Tt=7;break t;case 4:Tt=5;break t;case 7:zf(c)?(Tt=0,Se=null,bd(e)):(Tt=0,Se=null,ll(t,e,c,7));break;case 5:var f=null;switch(dt.tag){case 26:f=dt.memoizedState;case 5:case 27:var m=dt;if(f?im(f):m.stateNode.complete){Tt=0,Se=null;var _=m.sibling;if(_!==null)dt=_;else{var C=m.return;C!==null?(dt=C,Mu(C)):dt=null}break e}}Tt=0,Se=null,ll(t,e,c,5);break;case 6:Tt=0,Se=null,ll(t,e,c,6);break;case 8:Ic(),Bt=6;break t;default:throw Error(o(462))}}yv();break}catch(L){yd(t,L)}while(!0);return nn=aa=null,U.H=a,U.A=i,Rt=n,dt!==null?0:(zt=null,pt=0,Ki(),Bt)}function yv(){for(;dt!==null&&!Ai();)Sd(dt)}function Sd(t){var e=Vh(t.alternate,t,dn);t.memoizedProps=t.pendingProps,e===null?Mu(t):dt=e}function bd(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Hh(n,e,e.pendingProps,e.type,void 0,pt);break;case 11:e=Hh(n,e,e.pendingProps,e.type.render,e.ref,pt);break;case 5:yc(e);default:Kh(n,e),e=dt=gf(e,dn),e=Vh(n,e,dn)}t.memoizedProps=t.pendingProps,e===null?Mu(t):dt=e}function ll(t,e,n,a){nn=aa=null,yc(e),Ja=null,ql=0;var i=e.return;try{if(av(t,i,e,n,pt)){Bt=1,du(t,Ce(n,t.current)),dt=null;return}}catch(c){if(i!==null)throw dt=i,c;Bt=1,du(t,Ce(n,t.current)),dt=null;return}e.flags&32768?(gt||a===1?t=!0:tl||(pt&536870912)!==0?t=!1:(Un=t=!0,(a===2||a===9||a===3||a===6)&&(a=ve.current,a!==null&&a.tag===13&&(a.flags|=16384))),_d(e,t)):Mu(e)}function Mu(t){var e=t;do{if((e.flags&32768)!==0){_d(e,Un);return}t=e.return;var n=uv(e.alternate,e,dn);if(n!==null){dt=n;return}if(e=e.sibling,e!==null){dt=e;return}dt=e=t}while(e!==null);Bt===0&&(Bt=5)}function _d(t,e){do{var n=sv(t.alternate,t);if(n!==null){n.flags&=32767,dt=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){dt=t;return}dt=t=n}while(t!==null);Bt=6,dt=null}function Rd(t,e,n,a,i,c,f,m,_){t.cancelPendingCommit=null;do Cu();while(Kt!==0);if((Rt&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(c=e.lanes|e.childLanes,c|=Ys,Py(t,n,c,f,m,_),t===zt&&(dt=zt=null,pt=0),nl=e,Nn=t,mn=n,kc=c,Wc=i,fd=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Sv(ee,function(){return Cd(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=U.T,U.T=null,i=X.p,X.p=2,f=Rt,Rt|=4;try{cv(t,e,n)}finally{Rt=f,X.p=i,U.T=a}}Kt=1,Ed(),Td(),Od()}}function Ed(){if(Kt===1){Kt=0;var t=Nn,e=nl,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=U.T,U.T=null;var a=X.p;X.p=2;var i=Rt;Rt|=4;try{ad(e,t);var c=ho,f=of(t.containerInfo),m=c.focusedElem,_=c.selectionRange;if(f!==m&&m&&m.ownerDocument&&cf(m.ownerDocument.documentElement,m)){if(_!==null&&Hs(m)){var C=_.start,L=_.end;if(L===void 0&&(L=C),"selectionStart"in m)m.selectionStart=C,m.selectionEnd=Math.min(L,m.value.length);else{var B=m.ownerDocument||document,z=B&&B.defaultView||window;if(z.getSelection){var D=z.getSelection(),P=m.textContent.length,nt=Math.min(_.start,P),At=_.end===void 0?nt:Math.min(_.end,P);!D.extend&&nt>At&&(f=At,At=nt,nt=f);var O=sf(m,nt),E=sf(m,At);if(O&&E&&(D.rangeCount!==1||D.anchorNode!==O.node||D.anchorOffset!==O.offset||D.focusNode!==E.node||D.focusOffset!==E.offset)){var M=B.createRange();M.setStart(O.node,O.offset),D.removeAllRanges(),nt>At?(D.addRange(M),D.extend(E.node,E.offset)):(M.setEnd(E.node,E.offset),D.addRange(M))}}}}for(B=[],D=m;D=D.parentNode;)D.nodeType===1&&B.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<B.length;m++){var N=B[m];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}qu=!!fo,ho=fo=null}finally{Rt=i,X.p=a,U.T=n}}t.current=e,Kt=2}}function Td(){if(Kt===2){Kt=0;var t=Nn,e=nl,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=U.T,U.T=null;var a=X.p;X.p=2;var i=Rt;Rt|=4;try{$h(t,e.alternate,e)}finally{Rt=i,X.p=a,U.T=n}}Kt=3}}function Od(){if(Kt===4||Kt===3){Kt=0,ms();var t=Nn,e=nl,n=mn,a=fd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Kt=5:(Kt=0,nl=Nn=null,Md(t,t.pendingLanes));var i=t.pendingLanes;if(i===0&&(wn=null),gs(n),e=e.stateNode,de&&typeof de.onCommitFiberRoot=="function")try{de.onCommitFiberRoot(_l,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=U.T,i=X.p,X.p=2,U.T=null;try{for(var c=t.onRecoverableError,f=0;f<a.length;f++){var m=a[f];c(m.value,{componentStack:m.stack})}}finally{U.T=e,X.p=i}}(mn&3)!==0&&Cu(),Je(t),i=t.pendingLanes,(n&261930)!==0&&(i&42)!==0?t===$c?ni++:(ni=0,$c=t):ni=0,ai(0)}}function Md(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Hl(e)))}function Cu(){return Ed(),Td(),Od(),Cd()}function Cd(){if(Kt!==5)return!1;var t=Nn,e=kc;kc=0;var n=gs(mn),a=U.T,i=X.p;try{X.p=32>n?32:n,U.T=null,n=Wc,Wc=null;var c=Nn,f=mn;if(Kt=0,nl=Nn=null,mn=0,(Rt&6)!==0)throw Error(o(331));var m=Rt;if(Rt|=4,cd(c.current),id(c,c.current,f,n),Rt=m,ai(0,!1),de&&typeof de.onPostCommitFiberRoot=="function")try{de.onPostCommitFiberRoot(_l,c)}catch{}return!0}finally{X.p=i,U.T=a,Md(t,e)}}function Ad(t,e,n){e=Ce(n,e),e=xc(t.stateNode,e,2),t=An(t,e,2),t!==null&&(El(t,2),Je(t))}function Ot(t,e,n){if(t.tag===3)Ad(t,t,n);else for(;e!==null;){if(e.tag===3){Ad(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(wn===null||!wn.has(a))){t=Ce(n,t),n=zh(2),a=An(e,n,2),a!==null&&(xh(n,a,e,t),El(a,2),Je(a));break}}e=e.return}}function eo(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new fv;var i=new Set;a.set(e,i)}else i=a.get(e),i===void 0&&(i=new Set,a.set(e,i));i.has(n)||(Jc=!0,i.add(n),t=pv.bind(null,t,e,n),e.then(t,t))}function pv(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,zt===t&&(pt&n)===n&&(Bt===4||Bt===3&&(pt&62914560)===pt&&300>ae()-_u?(Rt&2)===0&&al(t,0):Pc|=n,el===pt&&(el=0)),Je(t)}function zd(t,e){e===0&&(e=Rr()),t=ta(t,e),t!==null&&(El(t,e),Je(t))}function vv(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),zd(t,n)}function gv(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,i=t.memoizedState;i!==null&&(n=i.retryLane);break;case 19:a=t.stateNode;break;case 22:a=t.stateNode._retryCache;break;default:throw Error(o(314))}a!==null&&a.delete(e),zd(t,n)}function Sv(t,e){return Sl(t,e)}var Au=null,il=null,no=!1,zu=!1,ao=!1,Hn=0;function Je(t){t!==il&&t.next===null&&(il===null?Au=il=t:il=il.next=t),zu=!0,no||(no=!0,_v())}function ai(t,e){if(!ao&&zu){ao=!0;do for(var n=!1,a=Au;a!==null;){if(t!==0){var i=a.pendingLanes;if(i===0)var c=0;else{var f=a.suspendedLanes,m=a.pingedLanes;c=(1<<31-me(42|t)+1)-1,c&=i&~(f&~m),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,Ld(a,c))}else c=pt,c=Li(a,a===zt?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||Rl(a,c)||(n=!0,Ld(a,c));a=a.next}while(n);ao=!1}}function bv(){xd()}function xd(){zu=no=!1;var t=0;Hn!==0&&Dv()&&(t=Hn);for(var e=ae(),n=null,a=Au;a!==null;){var i=a.next,c=Dd(a,e);c===0?(a.next=null,n===null?Au=i:n.next=i,i===null&&(il=n)):(n=a,(t!==0||(c&3)!==0)&&(zu=!0)),a=i}Kt!==0&&Kt!==5||ai(t),Hn!==0&&(Hn=0)}function Dd(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,i=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var f=31-me(c),m=1<<f,_=i[f];_===-1?((m&n)===0||(m&a)!==0)&&(i[f]=Jy(m,e)):_<=e&&(t.expiredLanes|=m),c&=~m}if(e=zt,n=pt,n=Li(t,t===e?n:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a=t.callbackNode,n===0||t===e&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)return a!==null&&a!==null&&bl(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||Rl(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&bl(a),gs(n)){case 2:case 8:n=Ft;break;case 32:n=ee;break;case 268435456:n=_r;break;default:n=ee}return a=Ud.bind(null,t),n=Sl(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&bl(a),t.callbackPriority=2,t.callbackNode=null,2}function Ud(t,e){if(Kt!==0&&Kt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(Cu()&&t.callbackNode!==n)return null;var a=pt;return a=Li(t,t===zt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(dd(t,a,e),Dd(t,ae()),t.callbackNode!=null&&t.callbackNode===n?Ud.bind(null,t):null)}function Ld(t,e){if(Cu())return null;dd(t,e,!0)}function _v(){Lv(function(){(Rt&6)!==0?Sl(Dt,bv):xd()})}function lo(){if(Hn===0){var t=Xa;t===0&&(t=xi,xi<<=1,(xi&261888)===0&&(xi=256)),Hn=t}return Hn}function wd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Hi(""+t)}function Nd(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 Rv(t,e,n,a,i){if(e==="submit"&&n&&n.stateNode===i){var c=wd((i[ue]||null).action),f=a.submitter;f&&(e=(e=f[ue]||null)?wd(e.formAction):f.getAttribute("formAction"),e!==null&&(c=e,f=null));var m=new Gi("action","action",null,a,i);t.push({event:m,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Hn!==0){var _=f?Nd(i,f):new FormData(i);Tc(n,{pending:!0,data:_,method:i.method,action:c},null,_)}}else typeof c=="function"&&(m.preventDefault(),_=f?Nd(i,f):new FormData(i),Tc(n,{pending:!0,data:_,method:i.method,action:c},c,_))},currentTarget:i}]})}}for(var io=0;io<Gs.length;io++){var uo=Gs[io],Ev=uo.toLowerCase(),Tv=uo[0].toUpperCase()+uo.slice(1);Qe(Ev,"on"+Tv)}Qe(hf,"onAnimationEnd"),Qe(df,"onAnimationIteration"),Qe(mf,"onAnimationStart"),Qe("dblclick","onDoubleClick"),Qe("focusin","onFocus"),Qe("focusout","onBlur"),Qe(Qp,"onTransitionRun"),Qe(Gp,"onTransitionStart"),Qe(Yp,"onTransitionCancel"),Qe(yf,"onTransitionEnd"),xa("onMouseEnter",["mouseout","mouseover"]),xa("onMouseLeave",["mouseout","mouseover"]),xa("onPointerEnter",["pointerout","pointerover"]),xa("onPointerLeave",["pointerout","pointerover"]),kn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),kn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),kn("onBeforeInput",["compositionend","keypress","textInput","paste"]),kn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),kn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),kn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var li="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(" "),Ov=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(li));function Bd(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],i=a.event;a=a.listeners;t:{var c=void 0;if(e)for(var f=a.length-1;0<=f;f--){var m=a[f],_=m.instance,C=m.currentTarget;if(m=m.listener,_!==c&&i.isPropagationStopped())break t;c=m,i.currentTarget=C;try{c(i)}catch(L){Xi(L)}i.currentTarget=null,c=_}else for(f=0;f<a.length;f++){if(m=a[f],_=m.instance,C=m.currentTarget,m=m.listener,_!==c&&i.isPropagationStopped())break t;c=m,i.currentTarget=C;try{c(i)}catch(L){Xi(L)}i.currentTarget=null,c=_}}}}function mt(t,e){var n=e[Ss];n===void 0&&(n=e[Ss]=new Set);var a=t+"__bubble";n.has(a)||(Hd(e,t,2,!1),n.add(a))}function so(t,e,n){var a=0;e&&(a|=4),Hd(n,t,a,e)}var xu="_reactListening"+Math.random().toString(36).slice(2);function co(t){if(!t[xu]){t[xu]=!0,zr.forEach(function(n){n!=="selectionchange"&&(Ov.has(n)||so(n,!1,t),so(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[xu]||(e[xu]=!0,so("selectionchange",!1,e))}}function Hd(t,e,n,a){switch(hm(e)){case 2:var i=Iv;break;case 8:i=tg;break;default:i=To}n=i.bind(null,e,n,t),i=void 0,!As||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(i=!0),a?i!==void 0?t.addEventListener(e,n,{capture:!0,passive:i}):t.addEventListener(e,n,!0):i!==void 0?t.addEventListener(e,n,{passive:i}):t.addEventListener(e,n,!1)}function oo(t,e,n,a,i){var c=a;if((e&1)===0&&(e&2)===0&&a!==null)t:for(;;){if(a===null)return;var f=a.tag;if(f===3||f===4){var m=a.stateNode.containerInfo;if(m===i)break;if(f===4)for(f=a.return;f!==null;){var _=f.tag;if((_===3||_===4)&&f.stateNode.containerInfo===i)return;f=f.return}for(;m!==null;){if(f=Ca(m),f===null)return;if(_=f.tag,_===5||_===6||_===26||_===27){a=c=f;continue t}m=m.parentNode}}a=a.return}Gr(function(){var C=c,L=Ms(n),B=[];t:{var z=pf.get(t);if(z!==void 0){var D=Gi,P=t;switch(t){case"keypress":if(qi(n)===0)break t;case"keydown":case"keyup":D=gp;break;case"focusin":P="focus",D=Us;break;case"focusout":P="blur",D=Us;break;case"beforeblur":case"afterblur":D=Us;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":D=Xr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=up;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=_p;break;case hf:case df:case mf:D=op;break;case yf:D=Ep;break;case"scroll":case"scrollend":D=lp;break;case"wheel":D=Op;break;case"copy":case"cut":case"paste":D=fp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=Zr;break;case"toggle":case"beforetoggle":D=Cp}var nt=(e&4)!==0,At=!nt&&(t==="scroll"||t==="scrollend"),O=nt?z!==null?z+"Capture":null:z;nt=[];for(var E=C,M;E!==null;){var N=E;if(M=N.stateNode,N=N.tag,N!==5&&N!==26&&N!==27||M===null||O===null||(N=Ml(E,O),N!=null&&nt.push(ii(E,N,M))),At)break;E=E.return}0<nt.length&&(z=new D(z,P,null,n,L),B.push({event:z,listeners:nt}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",D=t==="mouseout"||t==="pointerout",z&&n!==Os&&(P=n.relatedTarget||n.fromElement)&&(Ca(P)||P[Ma]))break t;if((D||z)&&(z=L.window===L?L:(z=L.ownerDocument)?z.defaultView||z.parentWindow:window,D?(P=n.relatedTarget||n.toElement,D=C,P=P?Ca(P):null,P!==null&&(At=h(P),nt=P.tag,P!==At||nt!==5&&nt!==27&&nt!==6)&&(P=null)):(D=null,P=C),D!==P)){if(nt=Xr,N="onMouseLeave",O="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(nt=Zr,N="onPointerLeave",O="onPointerEnter",E="pointer"),At=D==null?z:Ol(D),M=P==null?z:Ol(P),z=new nt(N,E+"leave",D,n,L),z.target=At,z.relatedTarget=M,N=null,Ca(L)===C&&(nt=new nt(O,E+"enter",P,n,L),nt.target=M,nt.relatedTarget=At,N=nt),At=N,D&&P)e:{for(nt=Mv,O=D,E=P,M=0,N=O;N;N=nt(N))M++;N=0;for(var I=E;I;I=nt(I))N++;for(;0<M-N;)O=nt(O),M--;for(;0<N-M;)E=nt(E),N--;for(;M--;){if(O===E||E!==null&&O===E.alternate){nt=O;break e}O=nt(O),E=nt(E)}nt=null}else nt=null;D!==null&&jd(B,z,D,nt,!1),P!==null&&At!==null&&jd(B,At,P,nt,!0)}}t:{if(z=C?Ol(C):window,D=z.nodeName&&z.nodeName.toLowerCase(),D==="select"||D==="input"&&z.type==="file")var St=tf;else if($r(z))if(ef)St=Hp;else{St=Np;var F=wp}else D=z.nodeName,!D||D.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?C&&Ts(C.elementType)&&(St=tf):St=Bp;if(St&&(St=St(t,C))){Ir(B,St,n,L);break t}F&&F(t,z,C),t==="focusout"&&C&&z.type==="number"&&C.memoizedProps.value!=null&&Es(z,"number",z.value)}switch(F=C?Ol(C):window,t){case"focusin":($r(F)||F.contentEditable==="true")&&(Ba=F,js=C,wl=null);break;case"focusout":wl=js=Ba=null;break;case"mousedown":qs=!0;break;case"contextmenu":case"mouseup":case"dragend":qs=!1,rf(B,n,L);break;case"selectionchange":if(qp)break;case"keydown":case"keyup":rf(B,n,L)}var rt;if(ws)t:{switch(t){case"compositionstart":var vt="onCompositionStart";break t;case"compositionend":vt="onCompositionEnd";break t;case"compositionupdate":vt="onCompositionUpdate";break t}vt=void 0}else Na?kr(t,n)&&(vt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(vt="onCompositionStart");vt&&(Jr&&n.locale!=="ko"&&(Na||vt!=="onCompositionStart"?vt==="onCompositionEnd"&&Na&&(rt=Yr()):(_n=L,zs="value"in _n?_n.value:_n.textContent,Na=!0)),F=Du(C,vt),0<F.length&&(vt=new Kr(vt,t,null,n,L),B.push({event:vt,listeners:F}),rt?vt.data=rt:(rt=Wr(n),rt!==null&&(vt.data=rt)))),(rt=zp?xp(t,n):Dp(t,n))&&(vt=Du(C,"onBeforeInput"),0<vt.length&&(F=new Kr("onBeforeInput","beforeinput",null,n,L),B.push({event:F,listeners:vt}),F.data=rt)),Rv(B,t,C,n,L)}Bd(B,e)})}function ii(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Du(t,e){for(var n=e+"Capture",a=[];t!==null;){var i=t,c=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||c===null||(i=Ml(t,n),i!=null&&a.unshift(ii(t,i,c)),i=Ml(t,e),i!=null&&a.push(ii(t,i,c))),t.tag===3)return a;t=t.return}return[]}function Mv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function jd(t,e,n,a,i){for(var c=e._reactName,f=[];n!==null&&n!==a;){var m=n,_=m.alternate,C=m.stateNode;if(m=m.tag,_!==null&&_===a)break;m!==5&&m!==26&&m!==27||C===null||(_=C,i?(C=Ml(n,c),C!=null&&f.unshift(ii(n,C,_))):i||(C=Ml(n,c),C!=null&&f.push(ii(n,C,_)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var Cv=/\r\n?/g,Av=/\u0000|\uFFFD/g;function qd(t){return(typeof t=="string"?t:""+t).replace(Cv,`
9
+ `).replace(Av,"")}function Qd(t,e){return e=qd(e),qd(t)===e}function Ct(t,e,n,a,i,c){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Ua(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Ua(t,""+a);break;case"className":Ni(t,"class",a);break;case"tabIndex":Ni(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":Ni(t,n,a);break;case"style":qr(t,a,c);break;case"data":if(e!=="object"){Ni(t,"data",a);break}case"src":case"href":if(a===""&&(e!=="a"||n!=="href")){t.removeAttribute(n);break}if(a==null||typeof a=="function"||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Hi(""+a),t.setAttribute(n,a);break;case"action":case"formAction":if(typeof a=="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 c=="function"&&(n==="formAction"?(e!=="input"&&Ct(t,e,"name",i.name,i,null),Ct(t,e,"formEncType",i.formEncType,i,null),Ct(t,e,"formMethod",i.formMethod,i,null),Ct(t,e,"formTarget",i.formTarget,i,null)):(Ct(t,e,"encType",i.encType,i,null),Ct(t,e,"method",i.method,i,null),Ct(t,e,"target",i.target,i,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=Hi(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=$e);break;case"onScroll":a!=null&&mt("scroll",t);break;case"onScrollEnd":a!=null&&mt("scrollend",t);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"multiple":t.multiple=a&&typeof a!="function"&&typeof a!="symbol";break;case"muted":t.muted=a&&typeof a!="function"&&typeof a!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(a==null||typeof a=="function"||typeof a=="boolean"||typeof a=="symbol"){t.removeAttribute("xlink:href");break}n=Hi(""+a),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":a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""+a):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":a&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,""):t.removeAttribute(n);break;case"capture":case"download":a===!0?t.setAttribute(n,""):a!==!1&&a!=null&&typeof a!="function"&&typeof a!="symbol"?t.setAttribute(n,a):t.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":a!=null&&typeof a!="function"&&typeof a!="symbol"&&!isNaN(a)&&1<=a?t.setAttribute(n,a):t.removeAttribute(n);break;case"rowSpan":case"start":a==null||typeof a=="function"||typeof a=="symbol"||isNaN(a)?t.removeAttribute(n):t.setAttribute(n,a);break;case"popover":mt("beforetoggle",t),mt("toggle",t),wi(t,"popover",a);break;case"xlinkActuate":We(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":We(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":We(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":We(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":We(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":We(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":We(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":We(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":We(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":wi(t,"is",a);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=np.get(n)||n,wi(t,n,a))}}function ro(t,e,n,a,i,c){switch(n){case"style":qr(t,a,c);break;case"dangerouslySetInnerHTML":if(a!=null){if(typeof a!="object"||!("__html"in a))throw Error(o(61));if(n=a.__html,n!=null){if(i.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof a=="string"?Ua(t,a):(typeof a=="number"||typeof a=="bigint")&&Ua(t,""+a);break;case"onScroll":a!=null&&mt("scroll",t);break;case"onScrollEnd":a!=null&&mt("scrollend",t);break;case"onClick":a!=null&&(t.onclick=$e);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!xr.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(i=n.endsWith("Capture"),e=n.slice(2,i?n.length-7:void 0),c=t[ue]||null,c=c!=null?c[n]:null,typeof c=="function"&&t.removeEventListener(e,c,i),typeof a=="function")){typeof c!="function"&&c!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,i);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):wi(t,n,a)}}}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 a=!1,i=!1,c;for(c in n)if(n.hasOwnProperty(c)){var f=n[c];if(f!=null)switch(c){case"src":a=!0;break;case"srcSet":i=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Ct(t,e,c,f,n,null)}}i&&Ct(t,e,"srcSet",n.srcSet,n,null),a&&Ct(t,e,"src",n.src,n,null);return;case"input":mt("invalid",t);var m=c=f=i=null,_=null,C=null;for(a in n)if(n.hasOwnProperty(a)){var L=n[a];if(L!=null)switch(a){case"name":i=L;break;case"type":f=L;break;case"checked":_=L;break;case"defaultChecked":C=L;break;case"value":c=L;break;case"defaultValue":m=L;break;case"children":case"dangerouslySetInnerHTML":if(L!=null)throw Error(o(137,e));break;default:Ct(t,e,a,L,n,null)}}Nr(t,c,m,_,C,f,i,!1);return;case"select":mt("invalid",t),a=f=c=null;for(i in n)if(n.hasOwnProperty(i)&&(m=n[i],m!=null))switch(i){case"value":c=m;break;case"defaultValue":f=m;break;case"multiple":a=m;default:Ct(t,e,i,m,n,null)}e=c,n=f,t.multiple=!!a,e!=null?Da(t,!!a,e,!1):n!=null&&Da(t,!!a,n,!0);return;case"textarea":mt("invalid",t),c=i=a=null;for(f in n)if(n.hasOwnProperty(f)&&(m=n[f],m!=null))switch(f){case"value":a=m;break;case"defaultValue":i=m;break;case"children":c=m;break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(o(91));break;default:Ct(t,e,f,m,n,null)}Hr(t,a,i,c);return;case"option":for(_ in n)n.hasOwnProperty(_)&&(a=n[_],a!=null)&&(_==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":Ct(t,e,_,a,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(a=0;a<li.length;a++)mt(li[a],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(C in n)if(n.hasOwnProperty(C)&&(a=n[C],a!=null))switch(C){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Ct(t,e,C,a,n,null)}return;default:if(Ts(e)){for(L in n)n.hasOwnProperty(L)&&(a=n[L],a!==void 0&&ro(t,e,L,a,n,void 0));return}}for(m in n)n.hasOwnProperty(m)&&(a=n[m],a!=null&&Ct(t,e,m,a,n,null))}function zv(t,e,n,a){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,c=null,f=null,m=null,_=null,C=null,L=null;for(D in n){var B=n[D];if(n.hasOwnProperty(D)&&B!=null)switch(D){case"checked":break;case"value":break;case"defaultValue":_=B;default:a.hasOwnProperty(D)||Ct(t,e,D,null,a,B)}}for(var z in a){var D=a[z];if(B=n[z],a.hasOwnProperty(z)&&(D!=null||B!=null))switch(z){case"type":c=D;break;case"name":i=D;break;case"checked":C=D;break;case"defaultChecked":L=D;break;case"value":f=D;break;case"defaultValue":m=D;break;case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(o(137,e));break;default:D!==B&&Ct(t,e,z,D,a,B)}}Rs(t,f,m,_,C,L,c,i);return;case"select":D=f=m=z=null;for(c in n)if(_=n[c],n.hasOwnProperty(c)&&_!=null)switch(c){case"value":break;case"multiple":D=_;default:a.hasOwnProperty(c)||Ct(t,e,c,null,a,_)}for(i in a)if(c=a[i],_=n[i],a.hasOwnProperty(i)&&(c!=null||_!=null))switch(i){case"value":z=c;break;case"defaultValue":m=c;break;case"multiple":f=c;default:c!==_&&Ct(t,e,i,c,a,_)}e=m,n=f,a=D,z!=null?Da(t,!!n,z,!1):!!a!=!!n&&(e!=null?Da(t,!!n,e,!0):Da(t,!!n,n?[]:"",!1));return;case"textarea":D=z=null;for(m in n)if(i=n[m],n.hasOwnProperty(m)&&i!=null&&!a.hasOwnProperty(m))switch(m){case"value":break;case"children":break;default:Ct(t,e,m,null,a,i)}for(f in a)if(i=a[f],c=n[f],a.hasOwnProperty(f)&&(i!=null||c!=null))switch(f){case"value":z=i;break;case"defaultValue":D=i;break;case"children":break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(o(91));break;default:i!==c&&Ct(t,e,f,i,a,c)}Br(t,z,D);return;case"option":for(var P in n)z=n[P],n.hasOwnProperty(P)&&z!=null&&!a.hasOwnProperty(P)&&(P==="selected"?t.selected=!1:Ct(t,e,P,null,a,z));for(_ in a)z=a[_],D=n[_],a.hasOwnProperty(_)&&z!==D&&(z!=null||D!=null)&&(_==="selected"?t.selected=z&&typeof z!="function"&&typeof z!="symbol":Ct(t,e,_,z,a,D));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 nt in n)z=n[nt],n.hasOwnProperty(nt)&&z!=null&&!a.hasOwnProperty(nt)&&Ct(t,e,nt,null,a,z);for(C in a)if(z=a[C],D=n[C],a.hasOwnProperty(C)&&z!==D&&(z!=null||D!=null))switch(C){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,e));break;default:Ct(t,e,C,z,a,D)}return;default:if(Ts(e)){for(var At in n)z=n[At],n.hasOwnProperty(At)&&z!==void 0&&!a.hasOwnProperty(At)&&ro(t,e,At,void 0,a,z);for(L in a)z=a[L],D=n[L],!a.hasOwnProperty(L)||z===D||z===void 0&&D===void 0||ro(t,e,L,z,a,D);return}}for(var O in n)z=n[O],n.hasOwnProperty(O)&&z!=null&&!a.hasOwnProperty(O)&&Ct(t,e,O,null,a,z);for(B in a)z=a[B],D=n[B],!a.hasOwnProperty(B)||z===D||z==null&&D==null||Ct(t,e,B,z,a,D)}function Gd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function xv(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var i=n[a],c=i.transferSize,f=i.initiatorType,m=i.duration;if(c&&m&&Gd(f)){for(f=0,m=i.responseEnd,a+=1;a<n.length;a++){var _=n[a],C=_.startTime;if(C>m)break;var L=_.transferSize,B=_.initiatorType;L&&Gd(B)&&(_=_.responseEnd,f+=L*(_<m?1:(m-C)/(_-C)))}if(--a,e+=8*(c+f)/(i.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 fo=null,ho=null;function Uu(t){return t.nodeType===9?t:t.ownerDocument}function Yd(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 Vd(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 mo(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 yo=null;function Dv(){var t=window.event;return t&&t.type==="popstate"?t===yo?!1:(yo=t,!0):(yo=null,!1)}var Xd=typeof setTimeout=="function"?setTimeout:void 0,Uv=typeof clearTimeout=="function"?clearTimeout:void 0,Kd=typeof Promise=="function"?Promise:void 0,Lv=typeof queueMicrotask=="function"?queueMicrotask:typeof Kd<"u"?function(t){return Kd.resolve(null).then(t).catch(wv)}:Xd;function wv(t){setTimeout(function(){throw t})}function jn(t){return t==="head"}function Zd(t,e){var n=e,a=0;do{var i=n.nextSibling;if(t.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"||n==="/&"){if(a===0){t.removeChild(i),ol(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")ui(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,ui(n);for(var c=n.firstChild;c;){var f=c.nextSibling,m=c.nodeName;c[Tl]||m==="SCRIPT"||m==="STYLE"||m==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&ui(t.ownerDocument.body);n=i}while(n);ol(e)}function Jd(t,e){var n=t;t=0;do{var a=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||""),a&&a.nodeType===8)if(n=a.data,n==="/$"){if(t===0)break;t--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||t++;n=a}while(n)}function po(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":po(n),bs(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Nv(t,e,n,a){for(;t.nodeType===1;){var i=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Tl])switch(e){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(c=t.getAttribute("rel"),c==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(c!==i.rel||t.getAttribute("href")!==(i.href==null||i.href===""?null:i.href)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin)||t.getAttribute("title")!==(i.title==null?null:i.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(i.src==null?null:i.src)||t.getAttribute("type")!==(i.type==null?null:i.type)||t.getAttribute("crossorigin")!==(i.crossOrigin==null?null:i.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=i.name==null?null:""+i.name;if(i.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=Ue(t.nextSibling),t===null)break}return null}function Bv(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 Pd(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 vo(t){return t.data==="$?"||t.data==="$~"}function go(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Hv(t,e){var n=t.ownerDocument;if(t.data==="$~")t._reactRetry=e;else if(t.data!=="$?"||n.readyState!=="loading")e();else{var a=function(){e(),n.removeEventListener("DOMContentLoaded",a)};n.addEventListener("DOMContentLoaded",a),t._reactRetry=a}}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 So=null;function Fd(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 kd(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 Wd(t,e,n){switch(e=Uu(n),t){case"html":if(t=e.documentElement,!t)throw Error(o(452));return t;case"head":if(t=e.head,!t)throw Error(o(453));return t;case"body":if(t=e.body,!t)throw Error(o(454));return t;default:throw Error(o(451))}}function ui(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);bs(t)}var Le=new Map,$d=new Set;function Lu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var yn=X.d;X.d={f:jv,r:qv,D:Qv,C:Gv,L:Yv,m:Vv,X:Kv,S:Xv,M:Zv};function jv(){var t=yn.f(),e=Tu();return t||e}function qv(t){var e=Aa(t);e!==null&&e.tag===5&&e.type==="form"?yh(e):yn.r(t)}var ul=typeof document>"u"?null:document;function Id(t,e,n){var a=ul;if(a&&typeof e=="string"&&e){var i=Oe(e);i='link[rel="'+t+'"][href="'+i+'"]',typeof n=="string"&&(i+='[crossorigin="'+n+'"]'),$d.has(i)||($d.add(i),t={rel:t,crossOrigin:n,href:e},a.querySelector(i)===null&&(e=a.createElement("link"),te(e,"link",t),Jt(e),a.head.appendChild(e)))}}function Qv(t){yn.D(t),Id("dns-prefetch",t,null)}function Gv(t,e){yn.C(t,e),Id("preconnect",t,e)}function Yv(t,e,n){yn.L(t,e,n);var a=ul;if(a&&t&&e){var i='link[rel="preload"][as="'+Oe(e)+'"]';e==="image"&&n&&n.imageSrcSet?(i+='[imagesrcset="'+Oe(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(i+='[imagesizes="'+Oe(n.imageSizes)+'"]')):i+='[href="'+Oe(t)+'"]';var c=i;switch(e){case"style":c=sl(t);break;case"script":c=cl(t)}Le.has(c)||(t=b({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Le.set(c,t),a.querySelector(i)!==null||e==="style"&&a.querySelector(si(c))||e==="script"&&a.querySelector(ci(c))||(e=a.createElement("link"),te(e,"link",t),Jt(e),a.head.appendChild(e)))}}function Vv(t,e){yn.m(t,e);var n=ul;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",i='link[rel="modulepreload"][as="'+Oe(a)+'"][href="'+Oe(t)+'"]',c=i;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=cl(t)}if(!Le.has(c)&&(t=b({rel:"modulepreload",href:t},e),Le.set(c,t),n.querySelector(i)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(ci(c)))return}a=n.createElement("link"),te(a,"link",t),Jt(a),n.head.appendChild(a)}}}function Xv(t,e,n){yn.S(t,e,n);var a=ul;if(a&&t){var i=za(a).hoistableStyles,c=sl(t);e=e||"default";var f=i.get(c);if(!f){var m={loading:0,preload:null};if(f=a.querySelector(si(c)))m.loading=5;else{t=b({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Le.get(c))&&bo(t,n);var _=f=a.createElement("link");Jt(_),te(_,"link",t),_._p=new Promise(function(C,L){_.onload=C,_.onerror=L}),_.addEventListener("load",function(){m.loading|=1}),_.addEventListener("error",function(){m.loading|=2}),m.loading|=4,wu(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:m},i.set(c,f)}}}function Kv(t,e){yn.X(t,e);var n=ul;if(n&&t){var a=za(n).hoistableScripts,i=cl(t),c=a.get(i);c||(c=n.querySelector(ci(i)),c||(t=b({src:t,async:!0},e),(e=Le.get(i))&&_o(t,e),c=n.createElement("script"),Jt(c),te(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function Zv(t,e){yn.M(t,e);var n=ul;if(n&&t){var a=za(n).hoistableScripts,i=cl(t),c=a.get(i);c||(c=n.querySelector(ci(i)),c||(t=b({src:t,async:!0,type:"module"},e),(e=Le.get(i))&&_o(t,e),c=n.createElement("script"),Jt(c),te(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(i,c))}}function tm(t,e,n,a){var i=(i=ht.current)?Lu(i):null;if(!i)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=sl(n.href),n=za(i).hoistableStyles,a=n.get(e),a||(a={type:"style",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){t=sl(n.href);var c=za(i).hoistableStyles,f=c.get(t);if(f||(i=i.ownerDocument||i,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,f),(c=i.querySelector(si(t)))&&!c._p&&(f.instance=c,f.state.loading=5),Le.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},Le.set(t,n),c||Jv(i,t,n,f.state))),e&&a===null)throw Error(o(528,""));return f}if(e&&a!==null)throw Error(o(529,""));return null;case"script":return e=n.async,n=n.src,typeof n=="string"&&e&&typeof e!="function"&&typeof e!="symbol"?(e=cl(n),n=za(i).hoistableScripts,a=n.get(e),a||(a={type:"script",instance:null,count:0,state:null},n.set(e,a)),a):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,t))}}function sl(t){return'href="'+Oe(t)+'"'}function si(t){return'link[rel="stylesheet"]['+t+"]"}function em(t){return b({},t,{"data-precedence":t.precedence,precedence:null})}function Jv(t,e,n,a){t.querySelector('link[rel="preload"][as="style"]['+e+"]")?a.loading=1:(e=t.createElement("link"),a.preload=e,e.addEventListener("load",function(){return a.loading|=1}),e.addEventListener("error",function(){return a.loading|=2}),te(e,"link",n),Jt(e),t.head.appendChild(e))}function cl(t){return'[src="'+Oe(t)+'"]'}function ci(t){return"script[async]"+t}function nm(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Oe(n.href)+'"]');if(a)return e.instance=a,Jt(a),a;var i=b({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),Jt(a),te(a,"style",i),wu(a,n.precedence,t),e.instance=a;case"stylesheet":i=sl(n.href);var c=t.querySelector(si(i));if(c)return e.state.loading|=4,e.instance=c,Jt(c),c;a=em(n),(i=Le.get(i))&&bo(a,i),c=(t.ownerDocument||t).createElement("link"),Jt(c);var f=c;return f._p=new Promise(function(m,_){f.onload=m,f.onerror=_}),te(c,"link",a),e.state.loading|=4,wu(c,n.precedence,t),e.instance=c;case"script":return c=cl(n.src),(i=t.querySelector(ci(c)))?(e.instance=i,Jt(i),i):(a=n,(i=Le.get(c))&&(a=b({},n),_o(a,i)),t=t.ownerDocument||t,i=t.createElement("script"),Jt(i),te(i,"link",a),t.head.appendChild(i),e.instance=i);case"void":return null;default:throw Error(o(443,e.type))}else e.type==="stylesheet"&&(e.state.loading&4)===0&&(a=e.instance,e.state.loading|=4,wu(a,n.precedence,t));return e.instance}function wu(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=a.length?a[a.length-1]:null,c=i,f=0;f<a.length;f++){var m=a[f];if(m.dataset.precedence===e)c=m;else if(c!==i)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function bo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function _o(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var Nu=null;function am(t,e,n){if(Nu===null){var a=new Map,i=Nu=new Map;i.set(n,a)}else i=Nu,a=i.get(n),a||(a=new Map,i.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),i=0;i<n.length;i++){var c=n[i];if(!(c[Tl]||c[kt]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(e)||"";f=t+f;var m=a.get(f);m?m.push(c):a.set(f,[c])}}return a}function lm(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function Pv(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;return e.rel==="stylesheet"?(t=e.disabled,typeof e.precedence=="string"&&t==null):!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 im(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function Fv(t,e,n,a){if(n.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var i=sl(a.href),c=e.querySelector(si(i));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Bu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=c,Jt(c);return}c=e.ownerDocument||e,a=em(a),(i=Le.get(i))&&bo(a,i),c=c.createElement("link"),Jt(c);var f=c;f._p=new Promise(function(m,_){f.onload=m,f.onerror=_}),te(c,"link",a),n.instance=c}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(n,e),(e=n.state.preload)&&(n.state.loading&3)===0&&(t.count++,n=Bu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var Ro=0;function kv(t,e){return t.stylesheets&&t.count===0&&ju(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&ju(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&Ro===0&&(Ro=62500*xv());var i=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&ju(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>Ro?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(i)}}:null}function Bu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ju(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Hu=null;function ju(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Hu=new Map,e.forEach(Wv,t),Hu=null,Bu.call(t))}function Wv(t,e){if(!(e.state.loading&4)){var n=Hu.get(t);if(n)var a=n.get(null);else{n=new Map,Hu.set(t,n);for(var i=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<i.length;c++){var f=i[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}i=e.instance,f=i.getAttribute("data-precedence"),c=n.get(f)||a,c===a&&n.set(null,i),n.set(f,i),this.count++,a=Bu.bind(this),i.addEventListener("load",a),i.addEventListener("error",a),c?c.parentNode.insertBefore(i,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(i,t.firstChild)),e.state.loading|=4}}var oi={$$typeof:V,Provider:null,Consumer:null,_currentValue:lt,_currentValue2:lt,_threadCount:0};function $v(t,e,n,a,i,c,f,m,_){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=ps(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ps(0),this.hiddenUpdates=ps(null),this.identifierPrefix=a,this.onUncaughtError=i,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=_,this.incompleteTransitions=new Map}function um(t,e,n,a,i,c,f,m,_,C,L,B){return t=new $v(t,e,n,f,_,C,L,B,m),e=1,c===!0&&(e|=24),c=pe(3,null,null,e),t.current=c,c.stateNode=t,e=tc(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:e},lc(c),t}function sm(t){return t?(t=qa,t):qa}function cm(t,e,n,a,i,c){i=sm(i),a.context===null?a.context=i:a.pendingContext=i,a=Cn(e),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=An(t,a,e),n!==null&&(he(n,t,e),Gl(n,t,e))}function om(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Eo(t,e){om(t,e),(t=t.alternate)&&om(t,e)}function rm(t){if(t.tag===13||t.tag===31){var e=ta(t,67108864);e!==null&&he(e,t,67108864),Eo(t,67108864)}}function fm(t){if(t.tag===13||t.tag===31){var e=_e();e=vs(e);var n=ta(t,e);n!==null&&he(n,t,e),Eo(t,e)}}var qu=!0;function Iv(t,e,n,a){var i=U.T;U.T=null;var c=X.p;try{X.p=2,To(t,e,n,a)}finally{X.p=c,U.T=i}}function tg(t,e,n,a){var i=U.T;U.T=null;var c=X.p;try{X.p=8,To(t,e,n,a)}finally{X.p=c,U.T=i}}function To(t,e,n,a){if(qu){var i=Oo(a);if(i===null)oo(t,e,a,Qu,n),dm(t,a);else if(ng(i,t,e,n,a))a.stopPropagation();else if(dm(t,a),e&4&&-1<eg.indexOf(t)){for(;i!==null;){var c=Aa(i);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=Fn(c.pendingLanes);if(f!==0){var m=c;for(m.pendingLanes|=2,m.entangledLanes|=2;f;){var _=1<<31-me(f);m.entanglements[1]|=_,f&=~_}Je(c),(Rt&6)===0&&(Ru=ae()+500,ai(0))}}break;case 31:case 13:m=ta(c,2),m!==null&&he(m,c,2),Tu(),Eo(c,2)}if(c=Oo(a),c===null&&oo(t,e,a,Qu,n),c===i)break;i=c}i!==null&&a.stopPropagation()}else oo(t,e,a,null,n)}}function Oo(t){return t=Ms(t),Mo(t)}var Qu=null;function Mo(t){if(Qu=null,t=Ca(t),t!==null){var e=h(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=d(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 Qu=t,null}function hm(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(ys()){case Dt:return 2;case Ft:return 8;case ee:case zi:return 32;case _r:return 268435456;default:return 32}default:return 32}}var Co=!1,qn=null,Qn=null,Gn=null,ri=new Map,fi=new Map,Yn=[],eg="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 dm(t,e){switch(t){case"focusin":case"focusout":qn=null;break;case"dragenter":case"dragleave":Qn=null;break;case"mouseover":case"mouseout":Gn=null;break;case"pointerover":case"pointerout":ri.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":fi.delete(e.pointerId)}}function hi(t,e,n,a,i,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[i]},e!==null&&(e=Aa(e),e!==null&&rm(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,i!==null&&e.indexOf(i)===-1&&e.push(i),t)}function ng(t,e,n,a,i){switch(e){case"focusin":return qn=hi(qn,t,e,n,a,i),!0;case"dragenter":return Qn=hi(Qn,t,e,n,a,i),!0;case"mouseover":return Gn=hi(Gn,t,e,n,a,i),!0;case"pointerover":var c=i.pointerId;return ri.set(c,hi(ri.get(c)||null,t,e,n,a,i)),!0;case"gotpointercapture":return c=i.pointerId,fi.set(c,hi(fi.get(c)||null,t,e,n,a,i)),!0}return!1}function mm(t){var e=Ca(t.target);if(e!==null){var n=h(e);if(n!==null){if(e=n.tag,e===13){if(e=y(n),e!==null){t.blockedOn=e,Cr(t.priority,function(){fm(n)});return}}else if(e===31){if(e=d(n),e!==null){t.blockedOn=e,Cr(t.priority,function(){fm(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 Gu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Oo(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);Os=a,n.target.dispatchEvent(a),Os=null}else return e=Aa(n),e!==null&&rm(e),t.blockedOn=n,!1;e.shift()}return!0}function ym(t,e,n){Gu(t)&&n.delete(e)}function ag(){Co=!1,qn!==null&&Gu(qn)&&(qn=null),Qn!==null&&Gu(Qn)&&(Qn=null),Gn!==null&&Gu(Gn)&&(Gn=null),ri.forEach(ym),fi.forEach(ym)}function Yu(t,e){t.blockedOn===e&&(t.blockedOn=null,Co||(Co=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,ag)))}var Vu=null;function pm(t){Vu!==t&&(Vu=t,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Vu===t&&(Vu=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],i=t[e+2];if(typeof a!="function"){if(Mo(a||n)===null)continue;break}var c=Aa(n);c!==null&&(t.splice(e,3),e-=3,Tc(c,{pending:!0,data:i,method:n.method,action:a},a,i))}}))}function ol(t){function e(_){return Yu(_,t)}qn!==null&&Yu(qn,t),Qn!==null&&Yu(Qn,t),Gn!==null&&Yu(Gn,t),ri.forEach(e),fi.forEach(e);for(var n=0;n<Yn.length;n++){var a=Yn[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Yn.length&&(n=Yn[0],n.blockedOn===null);)mm(n),n.blockedOn===null&&Yn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var i=n[a],c=n[a+1],f=i[ue]||null;if(typeof c=="function")f||pm(n);else if(f){var m=null;if(c&&c.hasAttribute("formAction")){if(i=c,f=c[ue]||null)m=f.formAction;else if(Mo(i)!==null)continue}else m=f.action;typeof m=="function"?n[a+1]=m:(n.splice(a,3),a-=3),pm(n)}}}function vm(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return i=f})},focusReset:"manual",scroll:"manual"})}function e(){i!==null&&(i(),i=null),a||setTimeout(n,20)}function n(){if(!a&&!navigation.transition){var c=navigation.currentEntry;c&&c.url!=null&&navigation.navigate(c.url,{state:c.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var a=!1,i=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",e),navigation.addEventListener("navigateerror",e),setTimeout(n,100),function(){a=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",e),navigation.removeEventListener("navigateerror",e),i!==null&&(i(),i=null)}}}function Ao(t){this._internalRoot=t}Xu.prototype.render=Ao.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,a=_e();cm(n,a,t,e,null,null)},Xu.prototype.unmount=Ao.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;cm(t.current,2,null,t,null,null),Tu(),e[Ma]=null}};function Xu(t){this._internalRoot=t}Xu.prototype.unstable_scheduleHydration=function(t){if(t){var e=Mr();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Yn.length&&e!==0&&e<Yn[n].priority;n++);Yn.splice(n,0,t),n===0&&mm(t)}};var gm=s.version;if(gm!=="19.2.4")throw Error(o(527,gm,"19.2.4"));X.findDOMNode=function(t){var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(o(188)):(t=Object.keys(t).join(","),Error(o(268,t)));return t=v(e),t=t!==null?g(t):null,t=t===null?null:t.stateNode,t};var lg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ku=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ku.isDisabled&&Ku.supportsFiber)try{_l=Ku.inject(lg),de=Ku}catch{}}return mi.createRoot=function(t,e){if(!r(t))throw Error(o(299));var n=!1,a="",i=Oh,c=Mh,f=Ch;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(i=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=um(t,1,!1,null,null,n,a,null,i,c,f,vm),t[Ma]=e.current,co(t),new Ao(e)},mi.hydrateRoot=function(t,e,n){if(!r(t))throw Error(o(299));var a=!1,i="",c=Oh,f=Mh,m=Ch,_=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(m=n.onRecoverableError),n.formState!==void 0&&(_=n.formState)),e=um(t,1,!0,e,n??null,a,i,_,c,f,m,vm),e.context=sm(null),n=e.current,a=_e(),a=vs(a),i=Cn(a),i.callback=null,An(n,i,a),n=a,e.current.lanes=n,El(e,n),Je(e),t[Ma]=e.current,co(t),new Xu(e)},mi.version="19.2.4",mi}var Am;function mg(){if(Am)return Do.exports;Am=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(s){console.error(s)}}return l(),Do.exports=dg(),Do.exports}var jS=mg(),vl=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(l){return this.listeners.add(l),this.onSubscribe(),()=>{this.listeners.delete(l),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},yg={setTimeout:(l,s)=>setTimeout(l,s),clearTimeout:l=>clearTimeout(l),setInterval:(l,s)=>setInterval(l,s),clearInterval:l=>clearInterval(l)},pg=class{#t=yg;#e=!1;setTimeoutProvider(l){this.#t=l}setTimeout(l,s){return this.#t.setTimeout(l,s)}clearTimeout(l){this.#t.clearTimeout(l)}setInterval(l,s){return this.#t.setInterval(l,s)}clearInterval(l){this.#t.clearInterval(l)}},da=new pg;function vg(l){setTimeout(l,0)}var ga=typeof window>"u"||"Deno"in globalThis;function ie(){}function gg(l,s){return typeof l=="function"?l(s):l}function Fo(l){return typeof l=="number"&&l>=0&&l!==1/0}function cy(l,s){return Math.max(l+(s||0)-Date.now(),0)}function Jn(l,s){return typeof l=="function"?l(s):l}function we(l,s){return typeof l=="function"?l(s):l}function zm(l,s){const{type:u="all",exact:o,fetchStatus:r,predicate:h,queryKey:y,stale:d}=l;if(y){if(o){if(s.queryHash!==ir(y,s.options))return!1}else if(!Ti(s.queryKey,y))return!1}if(u!=="all"){const p=s.isActive();if(u==="active"&&!p||u==="inactive"&&p)return!1}return!(typeof d=="boolean"&&s.isStale()!==d||r&&r!==s.state.fetchStatus||h&&!h(s))}function xm(l,s){const{exact:u,status:o,predicate:r,mutationKey:h}=l;if(h){if(!s.options.mutationKey)return!1;if(u){if(Sa(s.options.mutationKey)!==Sa(h))return!1}else if(!Ti(s.options.mutationKey,h))return!1}return!(o&&s.state.status!==o||r&&!r(s))}function ir(l,s){return(s?.queryKeyHashFn||Sa)(l)}function Sa(l){return JSON.stringify(l,(s,u)=>ko(u)?Object.keys(u).sort().reduce((o,r)=>(o[r]=u[r],o),{}):u)}function Ti(l,s){return l===s?!0:typeof l!=typeof s?!1:l&&s&&typeof l=="object"&&typeof s=="object"?Object.keys(s).every(u=>Ti(l[u],s[u])):!1}var Sg=Object.prototype.hasOwnProperty;function oy(l,s,u=0){if(l===s)return l;if(u>500)return s;const o=Dm(l)&&Dm(s);if(!o&&!(ko(l)&&ko(s)))return s;const h=(o?l:Object.keys(l)).length,y=o?s:Object.keys(s),d=y.length,p=o?new Array(d):{};let v=0;for(let g=0;g<d;g++){const b=o?g:y[g],S=l[b],R=s[b];if(S===R){p[b]=S,(o?g<h:Sg.call(l,b))&&v++;continue}if(S===null||R===null||typeof S!="object"||typeof R!="object"){p[b]=R;continue}const A=oy(S,R,u+1);p[b]=A,A===S&&v++}return h===d&&v===h?l:p}function ts(l,s){if(!s||Object.keys(l).length!==Object.keys(s).length)return!1;for(const u in l)if(l[u]!==s[u])return!1;return!0}function Dm(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function ko(l){if(!Um(l))return!1;const s=l.constructor;if(s===void 0)return!0;const u=s.prototype;return!(!Um(u)||!u.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function Um(l){return Object.prototype.toString.call(l)==="[object Object]"}function bg(l){return new Promise(s=>{da.setTimeout(s,l)})}function Wo(l,s,u){return typeof u.structuralSharing=="function"?u.structuralSharing(l,s):u.structuralSharing!==!1?oy(l,s):s}function _g(l,s,u=0){const o=[...l,s];return u&&o.length>u?o.slice(1):o}function Rg(l,s,u=0){const o=[s,...l];return u&&o.length>u?o.slice(0,-1):o}var ur=Symbol();function ry(l,s){return!l.queryFn&&s?.initialPromise?()=>s.initialPromise:!l.queryFn||l.queryFn===ur?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function sr(l,s){return typeof l=="function"?l(...s):!!l}function Eg(l,s,u){let o=!1,r;return Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(r??=s(),o||(o=!0,r.aborted?u():r.addEventListener("abort",u,{once:!0})),r)}),l}var Tg=class extends vl{#t;#e;#n;constructor(){super(),this.#n=l=>{if(!ga&&window.addEventListener){const s=()=>l();return window.addEventListener("visibilitychange",s,!1),()=>{window.removeEventListener("visibilitychange",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(l){this.#n=l,this.#e?.(),this.#e=l(s=>{typeof s=="boolean"?this.setFocused(s):this.onFocus()})}setFocused(l){this.#t!==l&&(this.#t=l,this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(s=>{s(l)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},cr=new Tg;function $o(){let l,s;const u=new Promise((r,h)=>{l=r,s=h});u.status="pending",u.catch(()=>{});function o(r){Object.assign(u,r),delete u.resolve,delete u.reject}return u.resolve=r=>{o({status:"fulfilled",value:r}),l(r)},u.reject=r=>{o({status:"rejected",reason:r}),s(r)},u}var Og=vg;function Mg(){let l=[],s=0,u=d=>{d()},o=d=>{d()},r=Og;const h=d=>{s?l.push(d):r(()=>{u(d)})},y=()=>{const d=l;l=[],d.length&&r(()=>{o(()=>{d.forEach(p=>{u(p)})})})};return{batch:d=>{let p;s++;try{p=d()}finally{s--,s||y()}return p},batchCalls:d=>(...p)=>{h(()=>{d(...p)})},schedule:h,setNotifyFunction:d=>{u=d},setBatchNotifyFunction:d=>{o=d},setScheduler:d=>{r=d}}}var Zt=Mg(),Cg=class extends vl{#t=!0;#e;#n;constructor(){super(),this.#n=l=>{if(!ga&&window.addEventListener){const s=()=>l(!0),u=()=>l(!1);return window.addEventListener("online",s,!1),window.addEventListener("offline",u,!1),()=>{window.removeEventListener("online",s),window.removeEventListener("offline",u)}}}}onSubscribe(){this.#e||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#e?.(),this.#e=void 0)}setEventListener(l){this.#n=l,this.#e?.(),this.#e=l(this.setOnline.bind(this))}setOnline(l){this.#t!==l&&(this.#t=l,this.listeners.forEach(u=>{u(l)}))}isOnline(){return this.#t}},es=new Cg;function Ag(l){return Math.min(1e3*2**l,3e4)}function fy(l){return(l??"online")==="online"?es.isOnline():!0}var Io=class extends Error{constructor(l){super("CancelledError"),this.revert=l?.revert,this.silent=l?.silent}};function hy(l){let s=!1,u=0,o;const r=$o(),h=()=>r.status!=="pending",y=x=>{if(!h()){const w=new Io(x);S(w),l.onCancel?.(w)}},d=()=>{s=!0},p=()=>{s=!1},v=()=>cr.isFocused()&&(l.networkMode==="always"||es.isOnline())&&l.canRun(),g=()=>fy(l.networkMode)&&l.canRun(),b=x=>{h()||(o?.(),r.resolve(x))},S=x=>{h()||(o?.(),r.reject(x))},R=()=>new Promise(x=>{o=w=>{(h()||v())&&x(w)},l.onPause?.()}).then(()=>{o=void 0,h()||l.onContinue?.()}),A=()=>{if(h())return;let x;const w=u===0?l.initialPromise:void 0;try{x=w??l.fn()}catch(Q){x=Promise.reject(Q)}Promise.resolve(x).then(b).catch(Q=>{if(h())return;const Y=l.retry??(ga?0:3),V=l.retryDelay??Ag,q=typeof V=="function"?V(u,Q):V,$=Y===!0||typeof Y=="number"&&u<Y||typeof Y=="function"&&Y(u,Q);if(s||!$){S(Q);return}u++,l.onFail?.(u,Q),bg(q).then(()=>v()?void 0:R()).then(()=>{s?S(Q):A()})})};return{promise:r,status:()=>r.status,cancel:y,continue:()=>(o?.(),r),cancelRetry:d,continueRetry:p,canStart:g,start:()=>(g()?A():R().then(A),r)}}var dy=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Fo(this.gcTime)&&(this.#t=da.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(ga?1/0:300*1e3))}clearGcTimeout(){this.#t&&(da.clearTimeout(this.#t),this.#t=void 0)}},zg=class extends dy{#t;#e;#n;#l;#a;#u;#s;constructor(l){super(),this.#s=!1,this.#u=l.defaultOptions,this.setOptions(l.options),this.observers=[],this.#l=l.client,this.#n=this.#l.getQueryCache(),this.queryKey=l.queryKey,this.queryHash=l.queryHash,this.#t=wm(this.options),this.state=l.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#a?.promise}setOptions(l){if(this.options={...this.#u,...l},this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const s=wm(this.options);s.data!==void 0&&(this.setState(Lm(s.data,s.dataUpdatedAt)),this.#t=s)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(l,s){const u=Wo(this.state.data,l,this.options);return this.#i({data:u,type:"success",dataUpdatedAt:s?.updatedAt,manual:s?.manual}),u}setState(l,s){this.#i({type:"setState",state:l,setStateOptions:s})}cancel(l){const s=this.#a?.promise;return this.#a?.cancel(l),s?s.then(ie).catch(ie):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(l=>we(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ur||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>Jn(l.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(l=>l.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(l=0){return this.state.data===void 0?!0:l==="static"?!1:this.state.isInvalidated?!0:!cy(this.state.dataUpdatedAt,l)}onFocus(){this.observers.find(s=>s.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(s=>s.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(l){this.observers.includes(l)||(this.observers.push(l),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",query:this,observer:l}))}removeObserver(l){this.observers.includes(l)&&(this.observers=this.observers.filter(s=>s!==l),this.observers.length||(this.#a&&(this.#s?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#n.notify({type:"observerRemoved",query:this,observer:l}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#i({type:"invalidate"})}async fetch(l,s){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&s?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(l&&this.setOptions(l),!this.options.queryFn){const d=this.observers.find(p=>p.options.queryFn);d&&this.setOptions(d.options)}const u=new AbortController,o=d=>{Object.defineProperty(d,"signal",{enumerable:!0,get:()=>(this.#s=!0,u.signal)})},r=()=>{const d=ry(this.options,s),v=(()=>{const g={client:this.#l,queryKey:this.queryKey,meta:this.meta};return o(g),g})();return this.#s=!1,this.options.persister?this.options.persister(d,v,this):d(v)},y=(()=>{const d={fetchOptions:s,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:r};return o(d),d})();this.options.behavior?.onFetch(y,this),this.#e=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==y.fetchOptions?.meta)&&this.#i({type:"fetch",meta:y.fetchOptions?.meta}),this.#a=hy({initialPromise:s?.initialPromise,fn:y.fetchFn,onCancel:d=>{d instanceof Io&&d.revert&&this.setState({...this.#e,fetchStatus:"idle"}),u.abort()},onFail:(d,p)=>{this.#i({type:"failed",failureCount:d,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});try{const d=await this.#a.start();if(d===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(d),this.#n.config.onSuccess?.(d,this),this.#n.config.onSettled?.(d,this.state.error,this),d}catch(d){if(d instanceof Io){if(d.silent)return this.#a.promise;if(d.revert){if(this.state.data===void 0)throw d;return this.state.data}}throw this.#i({type:"error",error:d}),this.#n.config.onError?.(d,this),this.#n.config.onSettled?.(this.state.data,d,this),d}finally{this.scheduleGc()}}#i(l){const s=u=>{switch(l.type){case"failed":return{...u,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...u,fetchStatus:"paused"};case"continue":return{...u,fetchStatus:"fetching"};case"fetch":return{...u,...my(u.data,this.options),fetchMeta:l.meta??null};case"success":const o={...u,...Lm(l.data,l.dataUpdatedAt),dataUpdateCount:u.dataUpdateCount+1,...!l.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#e=l.manual?o:void 0,o;case"error":const r=l.error;return{...u,error:r,errorUpdateCount:u.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:u.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...u,isInvalidated:!0};case"setState":return{...u,...l.state}}};this.state=s(this.state),Zt.batch(()=>{this.observers.forEach(u=>{u.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:l})})}};function my(l,s){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:fy(s.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function Lm(l,s){return{data:l,dataUpdatedAt:s??Date.now(),error:null,isInvalidated:!1,status:"success"}}function wm(l){const s=typeof l.initialData=="function"?l.initialData():l.initialData,u=s!==void 0,o=u?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:s,dataUpdateCount:0,dataUpdatedAt:u?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:u?"success":"pending",fetchStatus:"idle"}}var yy=class extends vl{constructor(l,s){super(),this.options=s,this.#t=l,this.#i=null,this.#s=$o(),this.bindMethods(),this.setOptions(s)}#t;#e=void 0;#n=void 0;#l=void 0;#a;#u;#s;#i;#y;#h;#d;#o;#r;#c;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#e.addObserver(this),Nm(this.#e,this.options)?this.#f():this.updateResult(),this.#S())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return tr(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return tr(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#_(),this.#e.removeObserver(this)}setOptions(l){const s=this.options,u=this.#e;if(this.options=this.#t.defaultQueryOptions(l),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof we(this.options.enabled,this.#e)!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#R(),this.#e.setOptions(this.options),s._defaulted&&!ts(this.options,s)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&Bm(this.#e,u,this.options,s)&&this.#f(),this.updateResult(),o&&(this.#e!==u||we(this.options.enabled,this.#e)!==we(s.enabled,this.#e)||Jn(this.options.staleTime,this.#e)!==Jn(s.staleTime,this.#e))&&this.#p();const r=this.#v();o&&(this.#e!==u||we(this.options.enabled,this.#e)!==we(s.enabled,this.#e)||r!==this.#c)&&this.#g(r)}getOptimisticResult(l){const s=this.#t.getQueryCache().build(this.#t,l),u=this.createResult(s,l);return Dg(this,u)&&(this.#l=u,this.#u=this.options,this.#a=this.#e.state),u}getCurrentResult(){return this.#l}trackResult(l,s){return new Proxy(l,{get:(u,o)=>(this.trackProp(o),s?.(o),o==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&this.#s.status==="pending"&&this.#s.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(u,o))})}trackProp(l){this.#m.add(l)}getCurrentQuery(){return this.#e}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const s=this.#t.defaultQueryOptions(l),u=this.#t.getQueryCache().build(this.#t,s);return u.fetch().then(()=>this.createResult(u,s))}fetch(l){return this.#f({...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#f(l){this.#R();let s=this.#e.fetch(this.options,l);return l?.throwOnError||(s=s.catch(ie)),s}#p(){this.#b();const l=Jn(this.options.staleTime,this.#e);if(ga||this.#l.isStale||!Fo(l))return;const u=cy(this.#l.dataUpdatedAt,l)+1;this.#o=da.setTimeout(()=>{this.#l.isStale||this.updateResult()},u)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(l){this.#_(),this.#c=l,!(ga||we(this.options.enabled,this.#e)===!1||!Fo(this.#c)||this.#c===0)&&(this.#r=da.setInterval(()=>{(this.options.refetchIntervalInBackground||cr.isFocused())&&this.#f()},this.#c))}#S(){this.#p(),this.#g(this.#v())}#b(){this.#o&&(da.clearTimeout(this.#o),this.#o=void 0)}#_(){this.#r&&(da.clearInterval(this.#r),this.#r=void 0)}createResult(l,s){const u=this.#e,o=this.options,r=this.#l,h=this.#a,y=this.#u,p=l!==u?l.state:this.#n,{state:v}=l;let g={...v},b=!1,S;if(s._optimisticResults){const j=this.hasListeners(),J=!j&&Nm(l,s),it=j&&Bm(l,u,s,o);(J||it)&&(g={...g,...my(v.data,l.options)}),s._optimisticResults==="isRestoring"&&(g.fetchStatus="idle")}let{error:R,errorUpdatedAt:A,status:x}=g;S=g.data;let w=!1;if(s.placeholderData!==void 0&&S===void 0&&x==="pending"){let j;r?.isPlaceholderData&&s.placeholderData===y?.placeholderData?(j=r.data,w=!0):j=typeof s.placeholderData=="function"?s.placeholderData(this.#d?.state.data,this.#d):s.placeholderData,j!==void 0&&(x="success",S=Wo(r?.data,j,s),b=!0)}if(s.select&&S!==void 0&&!w)if(r&&S===h?.data&&s.select===this.#y)S=this.#h;else try{this.#y=s.select,S=s.select(S),S=Wo(r?.data,S,s),this.#h=S,this.#i=null}catch(j){this.#i=j}this.#i&&(R=this.#i,S=this.#h,A=Date.now(),x="error");const Q=g.fetchStatus==="fetching",Y=x==="pending",V=x==="error",q=Y&&Q,$=S!==void 0,G={status:x,fetchStatus:g.fetchStatus,isPending:Y,isSuccess:x==="success",isError:V,isInitialLoading:q,isLoading:q,data:S,dataUpdatedAt:g.dataUpdatedAt,error:R,errorUpdatedAt:A,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:Q,isRefetching:Q&&!Y,isLoadingError:V&&!$,isPaused:g.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:V&&$,isStale:or(l,s),refetch:this.refetch,promise:this.#s,isEnabled:we(s.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const j=G.data!==void 0,J=G.status==="error"&&!j,it=ft=>{J?ft.reject(G.error):j&&ft.resolve(G.data)},at=()=>{const ft=this.#s=G.promise=$o();it(ft)},tt=this.#s;switch(tt.status){case"pending":l.queryHash===u.queryHash&&it(tt);break;case"fulfilled":(J||G.data!==tt.value)&&at();break;case"rejected":(!J||G.error!==tt.reason)&&at();break}}return G}updateResult(){const l=this.#l,s=this.createResult(this.#e,this.options);if(this.#a=this.#e.state,this.#u=this.options,this.#a.data!==void 0&&(this.#d=this.#e),ts(s,l))return;this.#l=s;const u=()=>{if(!l)return!0;const{notifyOnChangeProps:o}=this.options,r=typeof o=="function"?o():o;if(r==="all"||!r&&!this.#m.size)return!0;const h=new Set(r??this.#m);return this.options.throwOnError&&h.add("error"),Object.keys(this.#l).some(y=>{const d=y;return this.#l[d]!==l[d]&&h.has(d)})};this.#E({listeners:u()})}#R(){const l=this.#t.getQueryCache().build(this.#t,this.options);if(l===this.#e)return;const s=this.#e;this.#e=l,this.#n=l.state,this.hasListeners()&&(s?.removeObserver(this),l.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#S()}#E(l){Zt.batch(()=>{l.listeners&&this.listeners.forEach(s=>{s(this.#l)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function xg(l,s){return we(s.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&s.retryOnMount===!1)}function Nm(l,s){return xg(l,s)||l.state.data!==void 0&&tr(l,s,s.refetchOnMount)}function tr(l,s,u){if(we(s.enabled,l)!==!1&&Jn(s.staleTime,l)!=="static"){const o=typeof u=="function"?u(l):u;return o==="always"||o!==!1&&or(l,s)}return!1}function Bm(l,s,u,o){return(l!==s||we(o.enabled,l)===!1)&&(!u.suspense||l.state.status!=="error")&&or(l,u)}function or(l,s){return we(s.enabled,l)!==!1&&l.isStaleByTime(Jn(s.staleTime,l))}function Dg(l,s){return!ts(l.getCurrentResult(),s)}function ns(l){return{onFetch:(s,u)=>{const o=s.options,r=s.fetchOptions?.meta?.fetchMore?.direction,h=s.state.data?.pages||[],y=s.state.data?.pageParams||[];let d={pages:[],pageParams:[]},p=0;const v=async()=>{let g=!1;const b=A=>{Eg(A,()=>s.signal,()=>g=!0)},S=ry(s.options,s.fetchOptions),R=async(A,x,w)=>{if(g)return Promise.reject();if(x==null&&A.pages.length)return Promise.resolve(A);const Y=(()=>{const k={client:s.client,queryKey:s.queryKey,pageParam:x,direction:w?"backward":"forward",meta:s.options.meta};return b(k),k})(),V=await S(Y),{maxPages:q}=s.options,$=w?Rg:_g;return{pages:$(A.pages,V,q),pageParams:$(A.pageParams,x,q)}};if(r&&h.length){const A=r==="backward",x=A?py:er,w={pages:h,pageParams:y},Q=x(o,w);d=await R(w,Q,A)}else{const A=l??h.length;do{const x=p===0?y[0]??o.initialPageParam:er(o,d);if(p>0&&x==null)break;d=await R(d,x),p++}while(p<A)}return d};s.options.persister?s.fetchFn=()=>s.options.persister?.(v,{client:s.client,queryKey:s.queryKey,meta:s.options.meta,signal:s.signal},u):s.fetchFn=v}}}function er(l,{pages:s,pageParams:u}){const o=s.length-1;return s.length>0?l.getNextPageParam(s[o],s,u[o],u):void 0}function py(l,{pages:s,pageParams:u}){return s.length>0?l.getPreviousPageParam?.(s[0],s,u[0],u):void 0}function Ug(l,s){return s?er(l,s)!=null:!1}function Lg(l,s){return!s||!l.getPreviousPageParam?!1:py(l,s)!=null}var wg=class extends yy{constructor(l,s){super(l,s)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(l){super.setOptions({...l,behavior:ns()})}getOptimisticResult(l){return l.behavior=ns(),super.getOptimisticResult(l)}fetchNextPage(l){return this.fetch({...l,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(l){return this.fetch({...l,meta:{fetchMore:{direction:"backward"}}})}createResult(l,s){const{state:u}=l,o=super.createResult(l,s),{isFetching:r,isRefetching:h,isError:y,isRefetchError:d}=o,p=u.fetchMeta?.fetchMore?.direction,v=y&&p==="forward",g=r&&p==="forward",b=y&&p==="backward",S=r&&p==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Ug(s,u.data),hasPreviousPage:Lg(s,u.data),isFetchNextPageError:v,isFetchingNextPage:g,isFetchPreviousPageError:b,isFetchingPreviousPage:S,isRefetchError:d&&!v&&!b,isRefetching:h&&!g&&!S}}},Ng=class extends dy{#t;#e;#n;#l;constructor(l){super(),this.#t=l.client,this.mutationId=l.mutationId,this.#n=l.mutationCache,this.#e=[],this.state=l.state||vy(),this.setOptions(l.options),this.scheduleGc()}setOptions(l){this.options=l,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(l){this.#e.includes(l)||(this.#e.push(l),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:l}))}removeObserver(l){this.#e=this.#e.filter(s=>s!==l),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:l})}optionalRemove(){this.#e.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(l){const s=()=>{this.#a({type:"continue"})},u={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=hy({fn:()=>this.options.mutationFn?this.options.mutationFn(l,u):Promise.reject(new Error("No mutationFn found")),onFail:(h,y)=>{this.#a({type:"failed",failureCount:h,error:y})},onPause:()=>{this.#a({type:"pause"})},onContinue:s,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const o=this.state.status==="pending",r=!this.#l.canStart();try{if(o)s();else{this.#a({type:"pending",variables:l,isPaused:r}),this.#n.config.onMutate&&await this.#n.config.onMutate(l,this,u);const y=await this.options.onMutate?.(l,u);y!==this.state.context&&this.#a({type:"pending",context:y,variables:l,isPaused:r})}const h=await this.#l.start();return await this.#n.config.onSuccess?.(h,l,this.state.context,this,u),await this.options.onSuccess?.(h,l,this.state.context,u),await this.#n.config.onSettled?.(h,null,this.state.variables,this.state.context,this,u),await this.options.onSettled?.(h,null,l,this.state.context,u),this.#a({type:"success",data:h}),h}catch(h){try{await this.#n.config.onError?.(h,l,this.state.context,this,u)}catch(y){Promise.reject(y)}try{await this.options.onError?.(h,l,this.state.context,u)}catch(y){Promise.reject(y)}try{await this.#n.config.onSettled?.(void 0,h,this.state.variables,this.state.context,this,u)}catch(y){Promise.reject(y)}try{await this.options.onSettled?.(void 0,h,l,this.state.context,u)}catch(y){Promise.reject(y)}throw this.#a({type:"error",error:h}),h}finally{this.#n.runNext(this)}}#a(l){const s=u=>{switch(l.type){case"failed":return{...u,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...u,isPaused:!0};case"continue":return{...u,isPaused:!1};case"pending":return{...u,context:l.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:l.isPaused,status:"pending",variables:l.variables,submittedAt:Date.now()};case"success":return{...u,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...u,data:void 0,error:l.error,failureCount:u.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=s(this.state),Zt.batch(()=>{this.#e.forEach(u=>{u.onMutationUpdate(l)}),this.#n.notify({mutation:this,type:"updated",action:l})})}};function vy(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Bg=class extends vl{constructor(l={}){super(),this.config=l,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(l,s,u){const o=new Ng({client:l,mutationCache:this,mutationId:++this.#n,options:l.defaultMutationOptions(s),state:u});return this.add(o),o}add(l){this.#t.add(l);const s=Zu(l);if(typeof s=="string"){const u=this.#e.get(s);u?u.push(l):this.#e.set(s,[l])}this.notify({type:"added",mutation:l})}remove(l){if(this.#t.delete(l)){const s=Zu(l);if(typeof s=="string"){const u=this.#e.get(s);if(u)if(u.length>1){const o=u.indexOf(l);o!==-1&&u.splice(o,1)}else u[0]===l&&this.#e.delete(s)}}this.notify({type:"removed",mutation:l})}canRun(l){const s=Zu(l);if(typeof s=="string"){const o=this.#e.get(s)?.find(r=>r.state.status==="pending");return!o||o===l}else return!0}runNext(l){const s=Zu(l);return typeof s=="string"?this.#e.get(s)?.find(o=>o!==l&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Zt.batch(()=>{this.#t.forEach(l=>{this.notify({type:"removed",mutation:l})}),this.#t.clear(),this.#e.clear()})}getAll(){return Array.from(this.#t)}find(l){const s={exact:!0,...l};return this.getAll().find(u=>xm(s,u))}findAll(l={}){return this.getAll().filter(s=>xm(l,s))}notify(l){Zt.batch(()=>{this.listeners.forEach(s=>{s(l)})})}resumePausedMutations(){const l=this.getAll().filter(s=>s.state.isPaused);return Zt.batch(()=>Promise.all(l.map(s=>s.continue().catch(ie))))}};function Zu(l){return l.options.scope?.id}var Hg=class extends vl{#t;#e=void 0;#n;#l;constructor(l,s){super(),this.#t=l,this.setOptions(s),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(l){const s=this.options;this.options=this.#t.defaultMutationOptions(l),ts(this.options,s)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),s?.mutationKey&&this.options.mutationKey&&Sa(s.mutationKey)!==Sa(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(l){this.#a(),this.#u(l)}getCurrentResult(){return this.#e}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#a(),this.#u()}mutate(l,s){return this.#l=s,this.#n?.removeObserver(this),this.#n=this.#t.getMutationCache().build(this.#t,this.options),this.#n.addObserver(this),this.#n.execute(l)}#a(){const l=this.#n?.state??vy();this.#e={...l,isPending:l.status==="pending",isSuccess:l.status==="success",isError:l.status==="error",isIdle:l.status==="idle",mutate:this.mutate,reset:this.reset}}#u(l){Zt.batch(()=>{if(this.#l&&this.hasListeners()){const s=this.#e.variables,u=this.#e.context,o={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};if(l?.type==="success"){try{this.#l.onSuccess?.(l.data,s,u,o)}catch(r){Promise.reject(r)}try{this.#l.onSettled?.(l.data,null,s,u,o)}catch(r){Promise.reject(r)}}else if(l?.type==="error"){try{this.#l.onError?.(l.error,s,u,o)}catch(r){Promise.reject(r)}try{this.#l.onSettled?.(void 0,l.error,s,u,o)}catch(r){Promise.reject(r)}}}this.listeners.forEach(s=>{s(this.#e)})})}},jg=class extends vl{constructor(l={}){super(),this.config=l,this.#t=new Map}#t;build(l,s,u){const o=s.queryKey,r=s.queryHash??ir(o,s);let h=this.get(r);return h||(h=new zg({client:l,queryKey:o,queryHash:r,options:l.defaultQueryOptions(s),state:u,defaultOptions:l.getQueryDefaults(o)}),this.add(h)),h}add(l){this.#t.has(l.queryHash)||(this.#t.set(l.queryHash,l),this.notify({type:"added",query:l}))}remove(l){const s=this.#t.get(l.queryHash);s&&(l.destroy(),s===l&&this.#t.delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){Zt.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return this.#t.get(l)}getAll(){return[...this.#t.values()]}find(l){const s={exact:!0,...l};return this.getAll().find(u=>zm(s,u))}findAll(l={}){const s=this.getAll();return Object.keys(l).length>0?s.filter(u=>zm(l,u)):s}notify(l){Zt.batch(()=>{this.listeners.forEach(s=>{s(l)})})}onFocus(){Zt.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){Zt.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},qS=class{#t;#e;#n;#l;#a;#u;#s;#i;constructor(l={}){this.#t=l.queryCache||new jg,this.#e=l.mutationCache||new Bg,this.#n=l.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#s=cr.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=es.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#t.onOnline())}))}unmount(){this.#u--,this.#u===0&&(this.#s?.(),this.#s=void 0,this.#i?.(),this.#i=void 0)}isFetching(l){return this.#t.findAll({...l,fetchStatus:"fetching"}).length}isMutating(l){return this.#e.findAll({...l,status:"pending"}).length}getQueryData(l){const s=this.defaultQueryOptions({queryKey:l});return this.#t.get(s.queryHash)?.state.data}ensureQueryData(l){const s=this.defaultQueryOptions(l),u=this.#t.build(this,s),o=u.state.data;return o===void 0?this.fetchQuery(l):(l.revalidateIfStale&&u.isStaleByTime(Jn(s.staleTime,u))&&this.prefetchQuery(s),Promise.resolve(o))}getQueriesData(l){return this.#t.findAll(l).map(({queryKey:s,state:u})=>{const o=u.data;return[s,o]})}setQueryData(l,s,u){const o=this.defaultQueryOptions({queryKey:l}),h=this.#t.get(o.queryHash)?.state.data,y=gg(s,h);if(y!==void 0)return this.#t.build(this,o).setData(y,{...u,manual:!0})}setQueriesData(l,s,u){return Zt.batch(()=>this.#t.findAll(l).map(({queryKey:o})=>[o,this.setQueryData(o,s,u)]))}getQueryState(l){const s=this.defaultQueryOptions({queryKey:l});return this.#t.get(s.queryHash)?.state}removeQueries(l){const s=this.#t;Zt.batch(()=>{s.findAll(l).forEach(u=>{s.remove(u)})})}resetQueries(l,s){const u=this.#t;return Zt.batch(()=>(u.findAll(l).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...l},s)))}cancelQueries(l,s={}){const u={revert:!0,...s},o=Zt.batch(()=>this.#t.findAll(l).map(r=>r.cancel(u)));return Promise.all(o).then(ie).catch(ie)}invalidateQueries(l,s={}){return Zt.batch(()=>(this.#t.findAll(l).forEach(u=>{u.invalidate()}),l?.refetchType==="none"?Promise.resolve():this.refetchQueries({...l,type:l?.refetchType??l?.type??"active"},s)))}refetchQueries(l,s={}){const u={...s,cancelRefetch:s.cancelRefetch??!0},o=Zt.batch(()=>this.#t.findAll(l).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let h=r.fetch(void 0,u);return u.throwOnError||(h=h.catch(ie)),r.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(o).then(ie)}fetchQuery(l){const s=this.defaultQueryOptions(l);s.retry===void 0&&(s.retry=!1);const u=this.#t.build(this,s);return u.isStaleByTime(Jn(s.staleTime,u))?u.fetch(s):Promise.resolve(u.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(ie).catch(ie)}fetchInfiniteQuery(l){return l.behavior=ns(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(ie).catch(ie)}ensureInfiniteQueryData(l){return l.behavior=ns(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return es.isOnline()?this.#e.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#t}getMutationCache(){return this.#e}getDefaultOptions(){return this.#n}setDefaultOptions(l){this.#n=l}setQueryDefaults(l,s){this.#l.set(Sa(l),{queryKey:l,defaultOptions:s})}getQueryDefaults(l){const s=[...this.#l.values()],u={};return s.forEach(o=>{Ti(l,o.queryKey)&&Object.assign(u,o.defaultOptions)}),u}setMutationDefaults(l,s){this.#a.set(Sa(l),{mutationKey:l,defaultOptions:s})}getMutationDefaults(l){const s=[...this.#a.values()],u={};return s.forEach(o=>{Ti(l,o.mutationKey)&&Object.assign(u,o.defaultOptions)}),u}defaultQueryOptions(l){if(l._defaulted)return l;const s={...this.#n.queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return s.queryHash||(s.queryHash=ir(s.queryKey,s)),s.refetchOnReconnect===void 0&&(s.refetchOnReconnect=s.networkMode!=="always"),s.throwOnError===void 0&&(s.throwOnError=!!s.suspense),!s.networkMode&&s.persister&&(s.networkMode="offlineFirst"),s.queryFn===ur&&(s.enabled=!1),s}defaultMutationOptions(l){return l?._defaulted?l:{...this.#n.mutations,...l?.mutationKey&&this.getMutationDefaults(l.mutationKey),...l,_defaulted:!0}}clear(){this.#t.clear(),this.#e.clear()}},gy=W.createContext(void 0),Sy=l=>{const s=W.useContext(gy);if(!s)throw new Error("No QueryClient set, use QueryClientProvider to set one");return s},QS=({client:l,children:s})=>(W.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),et.jsx(gy.Provider,{value:l,children:s})),by=W.createContext(!1),qg=()=>W.useContext(by);by.Provider;function Qg(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var Gg=W.createContext(Qg()),Yg=()=>W.useContext(Gg),Vg=(l,s,u)=>{const o=u?.state.error&&typeof l.throwOnError=="function"?sr(l.throwOnError,[u.state.error,u]):l.throwOnError;(l.suspense||l.experimental_prefetchInRender||o)&&(s.isReset()||(l.retryOnMount=!1))},Xg=l=>{W.useEffect(()=>{l.clearReset()},[l])},Kg=({result:l,errorResetBoundary:s,throwOnError:u,query:o,suspense:r})=>l.isError&&!s.isReset()&&!l.isFetching&&o&&(r&&l.data===void 0||sr(u,[l.error,o])),Zg=l=>{if(l.suspense){const u=r=>r==="static"?r:Math.max(r??1e3,1e3),o=l.staleTime;l.staleTime=typeof o=="function"?(...r)=>u(o(...r)):u(o),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},Jg=(l,s)=>l.isLoading&&l.isFetching&&!s,Pg=(l,s)=>l?.suspense&&s.isPending,Hm=(l,s,u)=>s.fetchOptimistic(l).catch(()=>{u.clearReset()});function _y(l,s,u){const o=qg(),r=Yg(),h=Sy(),y=h.defaultQueryOptions(l);h.getDefaultOptions().queries?._experimental_beforeQuery?.(y);const d=h.getQueryCache().get(y.queryHash);y._optimisticResults=o?"isRestoring":"optimistic",Zg(y),Vg(y,r,d),Xg(r);const p=!h.getQueryCache().get(y.queryHash),[v]=W.useState(()=>new s(h,y)),g=v.getOptimisticResult(y),b=!o&&l.subscribed!==!1;if(W.useSyncExternalStore(W.useCallback(S=>{const R=b?v.subscribe(Zt.batchCalls(S)):ie;return v.updateResult(),R},[v,b]),()=>v.getCurrentResult(),()=>v.getCurrentResult()),W.useEffect(()=>{v.setOptions(y)},[y,v]),Pg(y,g))throw Hm(y,v,r);if(Kg({result:g,errorResetBoundary:r,throwOnError:y.throwOnError,query:d,suspense:y.suspense}))throw g.error;return h.getDefaultOptions().queries?._experimental_afterQuery?.(y,g),y.experimental_prefetchInRender&&!ga&&Jg(g,o)&&(p?Hm(y,v,r):d?.promise)?.catch(ie).finally(()=>{v.updateResult()}),y.notifyOnChangeProps?g:v.trackResult(g)}function GS(l,s){return _y(l,yy)}function YS(l,s){const u=Sy(),[o]=W.useState(()=>new Hg(u,l));W.useEffect(()=>{o.setOptions(l)},[o,l]);const r=W.useSyncExternalStore(W.useCallback(y=>o.subscribe(Zt.batchCalls(y)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),h=W.useCallback((y,d)=>{o.mutate(y,d).catch(ie)},[o]);if(r.error&&sr(o.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:h,mutateAsync:r.mutate}}function VS(l,s){return _y(l,wg)}const fl=new WeakMap,ku=new WeakMap,as={current:[]};let No=!1,_i=0;const bi=new Set,Ju=new Map;function Ry(l){const s=Array.from(l).sort((u,o)=>u instanceof hl&&u.options.deps.includes(o)?1:o instanceof hl&&o.options.deps.includes(u)?-1:0);for(const u of s){if(as.current.includes(u))continue;as.current.push(u),u.recompute();const o=ku.get(u);if(o)for(const r of o){const h=fl.get(r);h&&Ry(h)}}}function Fg(l){const s={prevVal:l.prevState,currentVal:l.state};for(const u of l.listeners)u(s)}function kg(l){const s={prevVal:l.prevState,currentVal:l.state};for(const u of l.listeners)u(s)}function Ey(l){if(_i>0&&!Ju.has(l)&&Ju.set(l,l.prevState),bi.add(l),!(_i>0)&&!No)try{for(No=!0;bi.size>0;){const s=Array.from(bi);bi.clear();for(const u of s){const o=Ju.get(u)??u.prevState;u.prevState=o,Fg(u)}for(const u of s){const o=fl.get(u);o&&(as.current.push(u),Ry(o))}for(const u of s){const o=fl.get(u);if(o)for(const r of o)kg(r)}}}finally{No=!1,as.current=[],Ju.clear()}}function Wg(l){_i++;try{l()}finally{if(_i--,_i===0){const s=bi.values().next().value;s&&Ey(s)}}}function $g(l){return typeof l=="function"}class nr{constructor(s,u){this.listeners=new Set,this.subscribe=o=>{var r,h;this.listeners.add(o);const y=(h=(r=this.options)==null?void 0:r.onSubscribe)==null?void 0:h.call(r,o,this);return()=>{this.listeners.delete(o),y?.()}},this.prevState=s,this.state=s,this.options=u}setState(s){var u,o,r;this.prevState=this.state,(u=this.options)!=null&&u.updateFn?this.state=this.options.updateFn(this.prevState)(s):$g(s)?this.state=s(this.prevState):this.state=s,(r=(o=this.options)==null?void 0:o.onUpdate)==null||r.call(o),Ey(this)}}class hl{constructor(s){this.listeners=new Set,this._subscriptions=[],this.lastSeenDepValues=[],this.getDepVals=()=>{const u=this.options.deps.length,o=new Array(u),r=new Array(u);for(let h=0;h<u;h++){const y=this.options.deps[h];o[h]=y.prevState,r[h]=y.state}return this.lastSeenDepValues=r,{prevDepVals:o,currDepVals:r,prevVal:this.prevState??void 0}},this.recompute=()=>{var u,o;this.prevState=this.state;const r=this.getDepVals();this.state=this.options.fn(r),(o=(u=this.options).onUpdate)==null||o.call(u)},this.checkIfRecalculationNeededDeeply=()=>{for(const h of this.options.deps)h instanceof hl&&h.checkIfRecalculationNeededDeeply();let u=!1;const o=this.lastSeenDepValues,{currDepVals:r}=this.getDepVals();for(let h=0;h<r.length;h++)if(r[h]!==o[h]){u=!0;break}u&&this.recompute()},this.mount=()=>(this.registerOnGraph(),this.checkIfRecalculationNeededDeeply(),()=>{this.unregisterFromGraph();for(const u of this._subscriptions)u()}),this.subscribe=u=>{var o,r;this.listeners.add(u);const h=(r=(o=this.options).onSubscribe)==null?void 0:r.call(o,u,this);return()=>{this.listeners.delete(u),h?.()}},this.options=s,this.state=s.fn({prevDepVals:void 0,prevVal:void 0,currDepVals:this.getDepVals().currDepVals})}registerOnGraph(s=this.options.deps){for(const u of s)if(u instanceof hl)u.registerOnGraph(),this.registerOnGraph(u.options.deps);else if(u instanceof nr){let o=fl.get(u);o||(o=new Set,fl.set(u,o)),o.add(this);let r=ku.get(this);r||(r=new Set,ku.set(this,r)),r.add(u)}}unregisterFromGraph(s=this.options.deps){for(const u of s)if(u instanceof hl)this.unregisterFromGraph(u.options.deps);else if(u instanceof nr){const o=fl.get(u);o&&o.delete(this);const r=ku.get(this);r&&r.delete(u)}}}const Pn="__TSR_index",jm="popstate",qm="beforeunload";function Ig(l){let s=l.getLocation();const u=new Set,o=y=>{s=l.getLocation(),u.forEach(d=>d({location:s,action:y}))},r=y=>{l.notifyOnIndexChange??!0?o(y):s=l.getLocation()},h=async({task:y,navigateOpts:d,...p})=>{if(d?.ignoreBlocker??!1){y();return}const g=l.getBlockers?.()??[],b=p.type==="PUSH"||p.type==="REPLACE";if(typeof document<"u"&&g.length&&b)for(const S of g){const R=ls(p.path,p.state);if(await S.blockerFn({currentLocation:s,nextLocation:R,action:p.type})){l.onBlocked?.();return}}y()};return{get location(){return s},get length(){return l.getLength()},subscribers:u,subscribe:y=>(u.add(y),()=>{u.delete(y)}),push:(y,d,p)=>{const v=s.state[Pn];d=Qm(v+1,d),h({task:()=>{l.pushState(y,d),o({type:"PUSH"})},navigateOpts:p,type:"PUSH",path:y,state:d})},replace:(y,d,p)=>{const v=s.state[Pn];d=Qm(v,d),h({task:()=>{l.replaceState(y,d),o({type:"REPLACE"})},navigateOpts:p,type:"REPLACE",path:y,state:d})},go:(y,d)=>{h({task:()=>{l.go(y),r({type:"GO",index:y})},navigateOpts:d,type:"GO"})},back:y=>{h({task:()=>{l.back(y?.ignoreBlocker??!1),r({type:"BACK"})},navigateOpts:y,type:"BACK"})},forward:y=>{h({task:()=>{l.forward(y?.ignoreBlocker??!1),r({type:"FORWARD"})},navigateOpts:y,type:"FORWARD"})},canGoBack:()=>s.state[Pn]!==0,createHref:y=>l.createHref(y),block:y=>{if(!l.setBlockers)return()=>{};const d=l.getBlockers?.()??[];return l.setBlockers([...d,y]),()=>{const p=l.getBlockers?.()??[];l.setBlockers?.(p.filter(v=>v!==y))}},flush:()=>l.flush?.(),destroy:()=>l.destroy?.(),notify:o}}function Qm(l,s){s||(s={});const u=rr();return{...s,key:u,__TSR_key:u,[Pn]:l}}function t0(l){const s=typeof document<"u"?window:void 0,u=s.history.pushState,o=s.history.replaceState;let r=[];const h=()=>r,y=j=>r=j,d=(j=>j),p=(()=>ls(`${s.location.pathname}${s.location.search}${s.location.hash}`,s.history.state));if(!s.history.state?.__TSR_key&&!s.history.state?.key){const j=rr();s.history.replaceState({[Pn]:0,key:j,__TSR_key:j},"")}let v=p(),g,b=!1,S=!1,R=!1,A=!1;const x=()=>v;let w,Q;const Y=()=>{w&&(G._ignoreSubscribers=!0,(w.isPush?s.history.pushState:s.history.replaceState)(w.state,"",w.href),G._ignoreSubscribers=!1,w=void 0,Q=void 0,g=void 0)},V=(j,J,it)=>{const at=d(J);Q||(g=v),v=ls(J,it),w={href:at,state:it,isPush:w?.isPush||j==="push"},Q||(Q=Promise.resolve().then(()=>Y()))},q=j=>{v=p(),G.notify({type:j})},$=async()=>{if(S){S=!1;return}const j=p(),J=j.state[Pn]-v.state[Pn],it=J===1,at=J===-1,tt=!it&&!at||b;b=!1;const ft=tt?"GO":at?"BACK":"FORWARD",ct=tt?{type:"GO",index:J}:{type:at?"BACK":"FORWARD"};if(R)R=!1;else{const qt=h();if(typeof document<"u"&&qt.length){for(const U of qt)if(await U.blockerFn({currentLocation:v,nextLocation:j,action:ft})){S=!0,s.history.go(1),G.notify(ct);return}}}v=p(),G.notify(ct)},k=j=>{if(A){A=!1;return}let J=!1;const it=h();if(typeof document<"u"&&it.length)for(const at of it){const tt=at.enableBeforeUnload??!0;if(tt===!0){J=!0;break}if(typeof tt=="function"&&tt()===!0){J=!0;break}}if(J)return j.preventDefault(),j.returnValue=""},G=Ig({getLocation:x,getLength:()=>s.history.length,pushState:(j,J)=>V("push",j,J),replaceState:(j,J)=>V("replace",j,J),back:j=>(j&&(R=!0),A=!0,s.history.back()),forward:j=>{j&&(R=!0),A=!0,s.history.forward()},go:j=>{b=!0,s.history.go(j)},createHref:j=>d(j),flush:Y,destroy:()=>{s.history.pushState=u,s.history.replaceState=o,s.removeEventListener(qm,k,{capture:!0}),s.removeEventListener(jm,$)},onBlocked:()=>{g&&v!==g&&(v=g)},getBlockers:h,setBlockers:y,notifyOnIndexChange:!1});return s.addEventListener(qm,k,{capture:!0}),s.addEventListener(jm,$),s.history.pushState=function(...j){const J=u.apply(s.history,j);return G._ignoreSubscribers||q("PUSH"),J},s.history.replaceState=function(...j){const J=o.apply(s.history,j);return G._ignoreSubscribers||q("REPLACE"),J},G}function e0(l){let s=l.replace(/[\x00-\x1f\x7f]/g,"");return s.startsWith("//")&&(s="/"+s.replace(/^\/+/,"")),s}function ls(l,s){const u=e0(l),o=u.indexOf("#"),r=u.indexOf("?"),h=rr();return{href:u,pathname:u.substring(0,o>0?r>0?Math.min(o,r):o:r>0?r:u.length),hash:o>-1?u.substring(o):"",search:r>-1?u.slice(r,o===-1?void 0:o):"",state:s||{[Pn]:0,key:h,__TSR_key:h}}}function rr(){return(Math.random()+1).toString(36).substring(7)}const n0=!1;function Ri(l){let s;return Wg(()=>{s=l()}),s}function Oi(l){return l[l.length-1]}function a0(l){return typeof l=="function"}function Kn(l,s){return a0(l)?l(s):l}const l0=Object.prototype.hasOwnProperty,Gm=Object.prototype.propertyIsEnumerable;function Re(l,s,u=0){if(l===s)return l;if(u>500)return s;const o=s,r=Xm(l)&&Xm(o);if(!r&&!(is(l)&&is(o)))return o;const h=r?l:Ym(l);if(!h)return o;const y=r?o:Ym(o);if(!y)return o;const d=h.length,p=y.length,v=r?new Array(p):{};let g=0;for(let b=0;b<p;b++){const S=r?b:y[b],R=l[S],A=o[S];if(R===A){v[S]=R,(r?b<d:l0.call(l,S))&&g++;continue}if(R===null||A===null||typeof R!="object"||typeof A!="object"){v[S]=A;continue}const x=Re(R,A,u+1);v[S]=x,x===R&&g++}return d===p&&g===d?l:v}function Ym(l){const s=Object.getOwnPropertyNames(l);for(const r of s)if(!Gm.call(l,r))return!1;const u=Object.getOwnPropertySymbols(l);if(u.length===0)return s;const o=s;for(const r of u){if(!Gm.call(l,r))return!1;o.push(r)}return o}function is(l){if(!Vm(l))return!1;const s=l.constructor;if(typeof s>"u")return!0;const u=s.prototype;return!(!Vm(u)||!u.hasOwnProperty("isPrototypeOf"))}function Vm(l){return Object.prototype.toString.call(l)==="[object Object]"}function Xm(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function pa(l,s,u){if(l===s)return!0;if(typeof l!=typeof s)return!1;if(Array.isArray(l)&&Array.isArray(s)){if(l.length!==s.length)return!1;for(let o=0,r=l.length;o<r;o++)if(!pa(l[o],s[o],u))return!1;return!0}if(is(l)&&is(s)){const o=u?.ignoreUndefined??!0;if(u?.partial){for(const y in s)if((!o||s[y]!==void 0)&&!pa(l[y],s[y],u))return!1;return!0}let r=0;if(!o)r=Object.keys(l).length;else for(const y in l)l[y]!==void 0&&r++;let h=0;for(const y in s)if((!o||s[y]!==void 0)&&(h++,h>r||!pa(l[y],s[y],u)))return!1;return r===h}return!1}function yl(l){let s,u;const o=new Promise((r,h)=>{s=r,u=h});return o.status="pending",o.resolve=r=>{o.status="resolved",o.value=r,s(r),l?.(r)},o.reject=r=>{o.status="rejected",u(r)},o}function dl(l){return!!(l&&typeof l=="object"&&typeof l.then=="function")}function i0(l){return l.replace(/[\x00-\x1f\x7f]/g,"")}function Km(l){let s;try{s=decodeURI(l)}catch{s=l.replaceAll(/%[0-9A-F]{2}/gi,u=>{try{return decodeURI(u)}catch{return u}})}return i0(s)}const u0=["http:","https:","mailto:","tel:"];function us(l,s){if(!l)return!1;try{const u=new URL(l);return!s.has(u.protocol)}catch{return!1}}function yi(l){if(!l)return{path:l,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(l)&&!l.startsWith("//"))return{path:l,handledProtocolRelativeURL:!1};const s=/%25|%5C/gi;let u=0,o="",r;for(;(r=s.exec(l))!==null;)o+=Km(l.slice(u,r.index))+r[0],u=s.lastIndex;o=o+Km(u?l.slice(u):l);let h=!1;return o.startsWith("//")&&(h=!0,o="/"+o.replace(/^\/+/,"")),{path:o,handledProtocolRelativeURL:h}}function s0(l){return/\s|[^\u0000-\u007F]/.test(l)?l.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):l}var c0="Invariant failed";function vn(l,s){if(!l)throw new Error(c0)}function ss(l){const s=new Map;let u,o;const r=h=>{h.next&&(h.prev?(h.prev.next=h.next,h.next.prev=h.prev,h.next=void 0,o&&(o.next=h,h.prev=o)):(h.next.prev=void 0,u=h.next,h.next=void 0,o&&(h.prev=o,o.next=h)),o=h)};return{get(h){const y=s.get(h);if(y)return r(y),y.value},set(h,y){if(s.size>=l&&u){const p=u;s.delete(p.key),p.next&&(u=p.next,p.next.prev=void 0),p===o&&(o=void 0)}const d=s.get(h);if(d)d.value=y,r(d);else{const p={key:h,value:y,prev:o};o&&(o.next=p),o=p,u||(u=p),s.set(h,p)}},clear(){s.clear(),u=void 0,o=void 0}}}const pl=0,ba=1,_a=2,Mi=3,ma=4,Ty=5;function o0(l){const s=l.indexOf("{");if(s===-1)return null;const u=l.indexOf("}",s);return u===-1||s+1>=l.length?null:[s,u]}function fr(l,s,u=new Uint16Array(6)){const o=l.indexOf("/",s),r=o===-1?l.length:o,h=l.substring(s,r);if(!h||!h.includes("$"))return u[0]=pl,u[1]=s,u[2]=s,u[3]=r,u[4]=r,u[5]=r,u;if(h==="$"){const d=l.length;return u[0]=_a,u[1]=s,u[2]=s,u[3]=d,u[4]=d,u[5]=d,u}if(h.charCodeAt(0)===36)return u[0]=ba,u[1]=s,u[2]=s+1,u[3]=r,u[4]=r,u[5]=r,u;const y=o0(h);if(y){const[d,p]=y,v=h.charCodeAt(d+1);if(v===45){if(d+2<h.length&&h.charCodeAt(d+2)===36){const g=d+3,b=p;if(g<b)return u[0]=Mi,u[1]=s+d,u[2]=s+g,u[3]=s+b,u[4]=s+p+1,u[5]=r,u}}else if(v===36){const g=d+1,b=d+2;return b===p?(u[0]=_a,u[1]=s+d,u[2]=s+g,u[3]=s+b,u[4]=s+p+1,u[5]=l.length,u):(u[0]=ba,u[1]=s+d,u[2]=s+b,u[3]=s+p,u[4]=s+p+1,u[5]=r,u)}}return u[0]=pl,u[1]=s,u[2]=s,u[3]=r,u[4]=r,u[5]=r,u}function fs(l,s,u,o,r,h,y){y?.(u);let d=o;{const p=u.fullPath??u.from,v=p.length,g=u.options?.caseSensitive??l,b=!!(u.options?.params?.parse&&u.options?.skipRouteOnParseError?.params);for(;d<v;){const R=fr(p,d,s);let A;const x=d,w=R[5];switch(d=w+1,h++,R[0]){case pl:{const Y=p.substring(R[2],R[3]);if(g){const V=r.static?.get(Y);if(V)A=V;else{r.static??=new Map;const q=ya(u.fullPath??u.from);q.parent=r,q.depth=h,A=q,r.static.set(Y,q)}}else{const V=Y.toLowerCase(),q=r.staticInsensitive?.get(V);if(q)A=q;else{r.staticInsensitive??=new Map;const $=ya(u.fullPath??u.from);$.parent=r,$.depth=h,A=$,r.staticInsensitive.set(V,$)}}break}case ba:{const Y=p.substring(x,R[1]),V=p.substring(R[4],w),q=g&&!!(Y||V),$=Y?q?Y:Y.toLowerCase():void 0,k=V?q?V:V.toLowerCase():void 0,G=!b&&r.dynamic?.find(j=>!j.skipOnParamError&&j.caseSensitive===q&&j.prefix===$&&j.suffix===k);if(G)A=G;else{const j=Ho(ba,u.fullPath??u.from,q,$,k);A=j,j.depth=h,j.parent=r,r.dynamic??=[],r.dynamic.push(j)}break}case Mi:{const Y=p.substring(x,R[1]),V=p.substring(R[4],w),q=g&&!!(Y||V),$=Y?q?Y:Y.toLowerCase():void 0,k=V?q?V:V.toLowerCase():void 0,G=!b&&r.optional?.find(j=>!j.skipOnParamError&&j.caseSensitive===q&&j.prefix===$&&j.suffix===k);if(G)A=G;else{const j=Ho(Mi,u.fullPath??u.from,q,$,k);A=j,j.parent=r,j.depth=h,r.optional??=[],r.optional.push(j)}break}case _a:{const Y=p.substring(x,R[1]),V=p.substring(R[4],w),q=g&&!!(Y||V),$=Y?q?Y:Y.toLowerCase():void 0,k=V?q?V:V.toLowerCase():void 0,G=Ho(_a,u.fullPath??u.from,q,$,k);A=G,G.parent=r,G.depth=h,r.wildcard??=[],r.wildcard.push(G)}}r=A}if(b&&u.children&&!u.isRoot&&u.id&&u.id.charCodeAt(u.id.lastIndexOf("/")+1)===95){const R=ya(u.fullPath??u.from);R.kind=Ty,R.parent=r,h++,R.depth=h,r.pathless??=[],r.pathless.push(R),r=R}const S=(u.path||!u.children)&&!u.isRoot;if(S&&p.endsWith("/")){const R=ya(u.fullPath??u.from);R.kind=ma,R.parent=r,h++,R.depth=h,r.index=R,r=R}r.parse=u.options?.params?.parse??null,r.skipOnParamError=b,r.parsingPriority=u.options?.skipRouteOnParseError?.priority??0,S&&!r.route&&(r.route=u,r.fullPath=u.fullPath??u.from)}if(u.children)for(const p of u.children)fs(l,s,p,d,r,h,y)}function Bo(l,s){if(l.skipOnParamError&&!s.skipOnParamError)return-1;if(!l.skipOnParamError&&s.skipOnParamError)return 1;if(l.skipOnParamError&&s.skipOnParamError&&(l.parsingPriority||s.parsingPriority))return s.parsingPriority-l.parsingPriority;if(l.prefix&&s.prefix&&l.prefix!==s.prefix){if(l.prefix.startsWith(s.prefix))return-1;if(s.prefix.startsWith(l.prefix))return 1}if(l.suffix&&s.suffix&&l.suffix!==s.suffix){if(l.suffix.endsWith(s.suffix))return-1;if(s.suffix.endsWith(l.suffix))return 1}return l.prefix&&!s.prefix?-1:!l.prefix&&s.prefix?1:l.suffix&&!s.suffix?-1:!l.suffix&&s.suffix?1:l.caseSensitive&&!s.caseSensitive?-1:!l.caseSensitive&&s.caseSensitive?1:0}function Xn(l){if(l.pathless)for(const s of l.pathless)Xn(s);if(l.static)for(const s of l.static.values())Xn(s);if(l.staticInsensitive)for(const s of l.staticInsensitive.values())Xn(s);if(l.dynamic?.length){l.dynamic.sort(Bo);for(const s of l.dynamic)Xn(s)}if(l.optional?.length){l.optional.sort(Bo);for(const s of l.optional)Xn(s)}if(l.wildcard?.length){l.wildcard.sort(Bo);for(const s of l.wildcard)Xn(s)}}function ya(l){return{kind:pl,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:l,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0}}function Ho(l,s,u,o,r){return{kind:l,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:s,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:u,prefix:o,suffix:r}}function r0(l,s){const u=ya("/"),o=new Uint16Array(6);for(const r of l)fs(!1,o,r,1,u,0);Xn(u),s.masksTree=u,s.flatCache=ss(1e3)}function f0(l,s){l||="/";const u=s.flatCache.get(l);if(u)return u;const o=hr(l,s.masksTree);return s.flatCache.set(l,o),o}function h0(l,s,u,o,r){l||="/",o||="/";const h=s?`case\0${l}`:l;let y=r.singleCache.get(h);if(!y){y=ya("/");const d=new Uint16Array(6);fs(s,d,{from:l},1,y,0),r.singleCache.set(h,y)}return hr(o,y,u)}function d0(l,s,u=!1){const o=u?l:`nofuzz\0${l}`,r=s.matchCache.get(o);if(r!==void 0)return r;l||="/";let h;try{h=hr(l,s.segmentTree,u)}catch(y){if(y instanceof URIError)h=null;else throw y}return h&&(h.branch=p0(h.route)),s.matchCache.set(o,h),h}function m0(l){return l==="/"?l:l.replace(/\/{1,}$/,"")}function y0(l,s=!1,u){const o=ya(l.fullPath),r=new Uint16Array(6),h={},y={};let d=0;return fs(s,r,l,1,o,0,v=>{if(u?.(v,d),vn(!(v.id in h),`Duplicate routes found with id: ${String(v.id)}`),h[v.id]=v,d!==0&&v.path){const g=m0(v.fullPath);(!y[g]||v.fullPath.endsWith("/"))&&(y[g]=v)}d++}),Xn(o),{processedTree:{segmentTree:o,singleCache:ss(1e3),matchCache:ss(1e3),flatCache:null,masksTree:null},routesById:h,routesByPath:y}}function hr(l,s,u=!1){const o=l.split("/"),r=g0(l,o,s,u);if(!r)return null;const[h]=Oy(l,o,r);return{route:r.node.route,rawParams:h,parsedParams:r.parsedParams}}function Oy(l,s,u){const o=v0(u.node);let r=null;const h={};let y=u.extract?.part??0,d=u.extract?.node??0,p=u.extract?.path??0,v=u.extract?.segment??0;for(;d<o.length;y++,d++,p++,v++){const g=o[d];if(g.kind===ma)break;if(g.kind===Ty){v--,y--,p--;continue}const b=s[y],S=p;if(b&&(p+=b.length),g.kind===ba){r??=u.node.fullPath.split("/");const R=r[v],A=g.prefix?.length??0;if(R.charCodeAt(A)===123){const w=g.suffix?.length??0,Q=R.substring(A+2,R.length-w-1),Y=b.substring(A,b.length-w);h[Q]=decodeURIComponent(Y)}else{const w=R.substring(1);h[w]=decodeURIComponent(b)}}else if(g.kind===Mi){if(u.skipped&1<<d){y--,p=S-1;continue}r??=u.node.fullPath.split("/");const R=r[v],A=g.prefix?.length??0,x=g.suffix?.length??0,w=R.substring(A+3,R.length-x-1),Q=g.suffix||g.prefix?b.substring(A,b.length-x):b;Q&&(h[w]=decodeURIComponent(Q))}else if(g.kind===_a){const R=g,A=l.substring(S+(R.prefix?.length??0),l.length-(R.suffix?.length??0)),x=decodeURIComponent(A);h["*"]=x,h._splat=x;break}}return u.rawParams&&Object.assign(h,u.rawParams),[h,{part:y,node:d,path:p,segment:v}]}function p0(l){const s=[l];for(;l.parentRoute;)l=l.parentRoute,s.push(l);return s.reverse(),s}function v0(l){const s=Array(l.depth+1);do s[l.depth]=l,l=l.parent;while(l);return s}function g0(l,s,u,o){if(l==="/"&&u.index)return{node:u.index,skipped:0};const r=!Oi(s),h=r&&l!=="/",y=s.length-(r?1:0),d=[{node:u,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let p=null,v=null,g=null;for(;d.length;){const b=d.pop(),{node:S,index:R,skipped:A,depth:x,statics:w,dynamics:Q,optionals:Y}=b;let{extract:V,rawParams:q,parsedParams:$}=b;if(S.skipOnParamError){if(!jo(l,s,b))continue;q=b.rawParams,V=b.extract,$=b.parsedParams}o&&S.route&&S.kind!==ma&&pi(v,b)&&(v=b);const k=R===y;if(k&&(S.route&&!h&&pi(g,b)&&(g=b),!S.optional&&!S.wildcard&&!S.index&&!S.pathless))continue;const G=k?void 0:s[R];let j;if(k&&S.index){const J={node:S.index,index:R,skipped:A,depth:x+1,statics:w,dynamics:Q,optionals:Y,extract:V,rawParams:q,parsedParams:$};let it=!0;if(S.index.skipOnParamError&&(jo(l,s,J)||(it=!1)),it){if(w===y&&!Q&&!Y&&!A)return J;pi(g,J)&&(g=J)}}if(S.wildcard&&pi(p,b))for(const J of S.wildcard){const{prefix:it,suffix:at}=J;if(it&&(k||!(J.caseSensitive?G:j??=G.toLowerCase()).startsWith(it)))continue;if(at){if(k)continue;const ft=s.slice(R).join("/").slice(-at.length);if((J.caseSensitive?ft:ft.toLowerCase())!==at)continue}const tt={node:J,index:y,skipped:A,depth:x,statics:w,dynamics:Q,optionals:Y,extract:V,rawParams:q,parsedParams:$};if(!(J.skipOnParamError&&!jo(l,s,tt))){p=tt;break}}if(S.optional){const J=A|1<<x,it=x+1;for(let at=S.optional.length-1;at>=0;at--){const tt=S.optional[at];d.push({node:tt,index:R,skipped:J,depth:it,statics:w,dynamics:Q,optionals:Y,extract:V,rawParams:q,parsedParams:$})}if(!k)for(let at=S.optional.length-1;at>=0;at--){const tt=S.optional[at],{prefix:ft,suffix:ct}=tt;if(ft||ct){const qt=tt.caseSensitive?G:j??=G.toLowerCase();if(ft&&!qt.startsWith(ft)||ct&&!qt.endsWith(ct))continue}d.push({node:tt,index:R+1,skipped:A,depth:it,statics:w,dynamics:Q,optionals:Y+1,extract:V,rawParams:q,parsedParams:$})}}if(!k&&S.dynamic&&G)for(let J=S.dynamic.length-1;J>=0;J--){const it=S.dynamic[J],{prefix:at,suffix:tt}=it;if(at||tt){const ft=it.caseSensitive?G:j??=G.toLowerCase();if(at&&!ft.startsWith(at)||tt&&!ft.endsWith(tt))continue}d.push({node:it,index:R+1,skipped:A,depth:x+1,statics:w,dynamics:Q+1,optionals:Y,extract:V,rawParams:q,parsedParams:$})}if(!k&&S.staticInsensitive){const J=S.staticInsensitive.get(j??=G.toLowerCase());J&&d.push({node:J,index:R+1,skipped:A,depth:x+1,statics:w+1,dynamics:Q,optionals:Y,extract:V,rawParams:q,parsedParams:$})}if(!k&&S.static){const J=S.static.get(G);J&&d.push({node:J,index:R+1,skipped:A,depth:x+1,statics:w+1,dynamics:Q,optionals:Y,extract:V,rawParams:q,parsedParams:$})}if(S.pathless){const J=x+1;for(let it=S.pathless.length-1;it>=0;it--){const at=S.pathless[it];d.push({node:at,index:R,skipped:A,depth:J,statics:w,dynamics:Q,optionals:Y,extract:V,rawParams:q,parsedParams:$})}}}if(g&&p)return pi(p,g)?g:p;if(g)return g;if(p)return p;if(o&&v){let b=v.index;for(let R=0;R<v.index;R++)b+=s[R].length;const S=b===l.length?"/":l.slice(b);return v.rawParams??={},v.rawParams["**"]=decodeURIComponent(S),v}return null}function jo(l,s,u){try{const[o,r]=Oy(l,s,u);u.rawParams=o,u.extract=r;const h=u.node.parse(o);return u.parsedParams=Object.assign({},u.parsedParams,h),!0}catch{return null}}function pi(l,s){return l?s.statics>l.statics||s.statics===l.statics&&(s.dynamics>l.dynamics||s.dynamics===l.dynamics&&(s.optionals>l.optionals||s.optionals===l.optionals&&((s.node.kind===ma)>(l.node.kind===ma)||s.node.kind===ma==(l.node.kind===ma)&&s.depth>l.depth))):!0}function Wu(l){return dr(l.filter(s=>s!==void 0).join("/"))}function dr(l){return l.replace(/\/{2,}/g,"/")}function My(l){return l==="/"?l:l.replace(/^\/{1,}/,"")}function pn(l){const s=l.length;return s>1&&l[s-1]==="/"?l.replace(/\/{1,}$/,""):l}function Cy(l){return pn(My(l))}function cs(l,s){return l?.endsWith("/")&&l!=="/"&&l!==`${s}/`?l.slice(0,-1):l}function S0(l,s,u){return cs(l,u)===cs(s,u)}function b0({base:l,to:s,trailingSlash:u="never",cache:o}){const r=s.startsWith("/"),h=!r&&s===".";let y;if(o){y=r?s:h?l:l+"\0"+s;const b=o.get(y);if(b)return b}let d;if(h)d=l.split("/");else if(r)d=s.split("/");else{for(d=l.split("/");d.length>1&&Oi(d)==="";)d.pop();const b=s.split("/");for(let S=0,R=b.length;S<R;S++){const A=b[S];A===""?S?S===R-1&&d.push(A):d=[A]:A===".."?d.pop():A==="."||d.push(A)}}d.length>1&&(Oi(d)===""?u==="never"&&d.pop():u==="always"&&d.push(""));let p,v="";for(let b=0;b<d.length;b++){b>0&&(v+="/");const S=d[b];if(!S)continue;p=fr(S,0,p);const R=p[0];if(R===pl){v+=S;continue}const A=p[5],x=S.substring(0,p[1]),w=S.substring(p[4],A),Q=S.substring(p[2],p[3]);R===ba?v+=x||w?`${x}{$${Q}}${w}`:`$${Q}`:R===_a?v+=x||w?`${x}{$}${w}`:"$":v+=`${x}{-$${Q}}${w}`}v=dr(v);const g=v||"/";return y&&o&&o.set(y,g),g}function _0(l){const s=new Map(l.map(r=>[encodeURIComponent(r),r])),u=Array.from(s.keys()).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),o=new RegExp(u,"g");return r=>r.replace(o,h=>s.get(h)??h)}function qo(l,s,u){const o=s[l];return typeof o!="string"?o:l==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(o)?o:o.split("/").map(r=>Zm(r,u)).join("/"):Zm(o,u)}function Qo({path:l,params:s,decoder:u,...o}){let r=!1;const h={};if(!l||l==="/")return{interpolatedPath:"/",usedParams:h,isMissingParams:r};if(!l.includes("$"))return{interpolatedPath:l,usedParams:h,isMissingParams:r};const y=l.length;let d=0,p,v="";for(;d<y;){const b=d;p=fr(l,b,p);const S=p[5];if(d=S+1,b===S)continue;const R=p[0];if(R===pl){v+="/"+l.substring(b,S);continue}if(R===_a){const A=s._splat;h._splat=A,h["*"]=A;const x=l.substring(b,p[1]),w=l.substring(p[4],S);if(!A){r=!0,(x||w)&&(v+="/"+x+w);continue}const Q=qo("_splat",s,u);v+="/"+x+Q+w;continue}if(R===ba){const A=l.substring(p[2],p[3]);!r&&!(A in s)&&(r=!0),h[A]=s[A];const x=l.substring(b,p[1]),w=l.substring(p[4],S),Q=qo(A,s,u)??"undefined";v+="/"+x+Q+w;continue}if(R===Mi){const A=l.substring(p[2],p[3]),x=s[A];if(x==null)continue;h[A]=x;const w=l.substring(b,p[1]),Q=l.substring(p[4],S),Y=qo(A,s,u)??"";v+="/"+w+Y+Q;continue}}return l.endsWith("/")&&(v+="/"),{usedParams:h,interpolatedPath:v||"/",isMissingParams:r}}function Zm(l,s){const u=encodeURIComponent(l);return s?.(u)??u}function Ee(l){return!!l?.isNotFound}function R0(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const ar="tsr-scroll-restoration-v1_3",E0=(l,s)=>{let u;return(...o)=>{u||(u=setTimeout(()=>{l(...o),u=null},s))}};function T0(){const l=R0();if(!l)return null;const s=l.getItem(ar);let u=s?JSON.parse(s):{};return{state:u,set:o=>{u=Kn(o,u)||u;try{l.setItem(ar,JSON.stringify(u))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const Pu=T0(),O0=l=>l.state.__TSR_key||l.href;function M0(l){const s=[];let u;for(;u=l.parentNode;)s.push(`${l.tagName}:nth-child(${Array.prototype.indexOf.call(u.children,l)+1})`),l=u;return`${s.reverse().join(" > ")}`.toLowerCase()}let os=!1;function C0({storageKey:l,key:s,behavior:u,shouldScrollRestoration:o,scrollToTopSelectors:r,location:h}){let y;try{y=JSON.parse(sessionStorage.getItem(l)||"{}")}catch(v){console.error(v);return}const d=s||window.history.state?.__TSR_key,p=y[d];os=!0;t:{if(o&&p&&Object.keys(p).length>0){for(const b in p){const S=p[b];if(b==="window")window.scrollTo({top:S.scrollY,left:S.scrollX,behavior:u});else if(b){const R=document.querySelector(b);R&&(R.scrollLeft=S.scrollX,R.scrollTop=S.scrollY)}}break t}const v=(h??window.location).hash.split("#",2)[1];if(v){const b=window.history.state?.__hashScrollIntoViewOptions??!0;if(b){const S=document.getElementById(v);S&&S.scrollIntoView(b)}break t}const g={top:0,left:0,behavior:u};if(window.scrollTo(g),r)for(const b of r){if(b==="window")continue;const S=typeof b=="function"?b():document.querySelector(b);S&&S.scrollTo(g)}}os=!1}function A0(l,s){if(!Pu||((l.options.scrollRestoration??!1)&&(l.isScrollRestoring=!0),l.isScrollRestorationSetup||!Pu))return;l.isScrollRestorationSetup=!0,os=!1;const o=l.options.getScrollRestorationKey||O0;window.history.scrollRestoration="manual";const r=h=>{if(os||!l.isScrollRestoring)return;let y="";if(h.target===document||h.target===window)y="window";else{const p=h.target.getAttribute("data-scroll-restoration-id");p?y=`[data-scroll-restoration-id="${p}"]`:y=M0(h.target)}const d=o(l.state.location);Pu.set(p=>{const v=p[d]||={},g=v[y]||={};if(y==="window")g.scrollX=window.scrollX||0,g.scrollY=window.scrollY||0;else if(y){const b=document.querySelector(y);b&&(g.scrollX=b.scrollLeft||0,g.scrollY=b.scrollTop||0)}return p})};typeof document<"u"&&document.addEventListener("scroll",E0(r,100),!0),l.subscribe("onRendered",h=>{const y=o(h.toLocation);if(!l.resetNextScroll){l.resetNextScroll=!0;return}typeof l.options.scrollRestoration=="function"&&!l.options.scrollRestoration({location:l.latestLocation})||(C0({storageKey:ar,key:y,behavior:l.options.scrollRestorationBehavior,shouldScrollRestoration:l.isScrollRestoring,scrollToTopSelectors:l.options.scrollToTopSelectors,location:l.history.location}),l.isScrollRestoring&&Pu.set(d=>(d[y]||={},d)))})}function z0(l){if(typeof document<"u"&&document.querySelector){const s=l.state.location.state.__hashScrollIntoViewOptions??!0;if(s&&l.state.location.hash!==""){const u=document.getElementById(l.state.location.hash);u&&u.scrollIntoView(s)}}}function x0(l,s=String){const u=new URLSearchParams;for(const o in l){const r=l[o];r!==void 0&&u.set(o,s(r))}return u.toString()}function Go(l){return l?l==="false"?!1:l==="true"?!0:+l*0===0&&+l+""===l?+l:l:""}function D0(l){const s=new URLSearchParams(l),u={};for(const[o,r]of s.entries()){const h=u[o];h==null?u[o]=Go(r):Array.isArray(h)?h.push(Go(r)):u[o]=[h,Go(r)]}return u}const U0=w0(JSON.parse),L0=N0(JSON.stringify,JSON.parse);function w0(l){return s=>{s[0]==="?"&&(s=s.substring(1));const u=D0(s);for(const o in u){const r=u[o];if(typeof r=="string")try{u[o]=l(r)}catch{}}return u}}function N0(l,s){const u=typeof s=="function";function o(r){if(typeof r=="object"&&r!==null)try{return l(r)}catch{}else if(u&&typeof r=="string")try{return s(r),l(r)}catch{}return r}return r=>{const h=x0(r,o);return h?`?${h}`:""}}const Ne="__root__";function B0(l){if(l.statusCode=l.statusCode||l.code||307,!l._builtLocation&&!l.reloadDocument&&typeof l.href=="string")try{new URL(l.href),l.reloadDocument=!0}catch{}const s=new Headers(l.headers);l.href&&s.get("Location")===null&&s.set("Location",l.href);const u=new Response(null,{status:l.statusCode,headers:s});if(u.options=l,l.throw)throw u;return u}function Be(l){return l instanceof Response&&!!l.options}const $u=l=>{if(!l.rendered)return l.rendered=!0,l.onReady?.()},hs=(l,s)=>!!(l.preload&&!l.router.state.matches.some(u=>u.id===s)),ml=(l,s,u=!0)=>{const o={...l.router.options.context??{}},r=u?s:s-1;for(let h=0;h<=r;h++){const y=l.matches[h];if(!y)continue;const d=l.router.getMatch(y.id);d&&Object.assign(o,d.__routeContext,d.__beforeLoadContext)}return o},Ay=(l,s,u)=>{const o=l.router.routesById[s.routeId??""]??l.router.routeTree;!o.options.notFoundComponent&&l.router.options?.defaultNotFoundComponent&&(o.options.notFoundComponent=l.router.options.defaultNotFoundComponent);const r=u==="BEFORE_LOAD"&&o.parentRoute;r||vn(o.options.notFoundComponent);const h=l.matches.find(y=>y.routeId===o.id);vn(h,"Could not find match for route: "+o.id),l.updateMatch(h.id,y=>({...y,status:"notFound",error:s,isFetching:!1})),r&&(s.routeId=o.parentRoute.id,Ay(l,s,u))},Zn=(l,s,u,o)=>{if(!(!Be(u)&&!Ee(u))){if(Be(u)&&u.redirectHandled&&!u.options.reloadDocument)throw u;if(s){s._nonReactive.beforeLoadPromise?.resolve(),s._nonReactive.loaderPromise?.resolve(),s._nonReactive.beforeLoadPromise=void 0,s._nonReactive.loaderPromise=void 0;const r=Be(u)?"redirected":"notFound";s._nonReactive.error=u,l.updateMatch(s.id,h=>({...h,status:r,context:ml(l,s.index),isFetching:!1,error:u})),Ee(u)&&!u.routeId&&(u.routeId=s.routeId),s._nonReactive.loadPromise?.resolve()}throw Be(u)?(l.rendered=!0,u.options._fromLocation=l.location,u.redirectHandled=!0,u=l.router.resolveRedirect(u),u):(Ay(l,u,o),u)}},zy=(l,s)=>!!l.router.getMatch(s)._nonReactive.dehydrated,vi=(l,s,u,o)=>{const{id:r,routeId:h}=l.matches[s],y=l.router.looseRoutesById[h];if(u instanceof Promise)throw u;u.routerCode=o,l.firstBadMatchIndex??=s,Zn(l,l.router.getMatch(r),u,o);try{y.options.onError?.(u)}catch(d){u=d,Zn(l,l.router.getMatch(r),u,o)}l.updateMatch(r,d=>(d._nonReactive.beforeLoadPromise?.resolve(),d._nonReactive.beforeLoadPromise=void 0,d._nonReactive.loadPromise?.resolve(),{...d,error:u,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController}))},xy=(l,s,u,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const r=u.options.pendingMs??l.router.options.defaultPendingMs;if(!!(l.onReady&&!hs(l,s)&&(u.options.loader||u.options.beforeLoad||Ly(u))&&typeof r=="number"&&r!==1/0&&(u.options.pendingComponent??l.router.options?.defaultPendingComponent))){const y=setTimeout(()=>{$u(l)},r);o._nonReactive.pendingTimeout=y}},H0=(l,s,u)=>{const o=l.router.getMatch(s);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;xy(l,s,u,o);const r=()=>{const h=l.router.getMatch(s);h.preload&&(h.status==="redirected"||h.status==="notFound")&&Zn(l,h,h.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(r):r()},j0=(l,s,u,o)=>{const r=l.router.getMatch(s),h=r._nonReactive.loadPromise;r._nonReactive.loadPromise=yl(()=>{h?.resolve()});const{paramsError:y,searchError:d}=r;y&&vi(l,u,y,"PARSE_PARAMS"),d&&vi(l,u,d,"VALIDATE_SEARCH"),xy(l,s,o,r);const p=new AbortController;let v=!1;const g=()=>{v||(v=!0,l.updateMatch(s,q=>({...q,isFetching:"beforeLoad",fetchCount:q.fetchCount+1,abortController:p})))},b=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,l.updateMatch(s,q=>({...q,isFetching:!1}))};if(!o.options.beforeLoad){Ri(()=>{g(),b()});return}r._nonReactive.beforeLoadPromise=yl();const S={...ml(l,u,!1),...r.__routeContext},{search:R,params:A,cause:x}=r,w=hs(l,s),Q={search:R,abortController:p,params:A,preload:w,context:S,location:l.location,navigate:q=>l.router.navigate({...q,_fromLocation:l.location}),buildLocation:l.router.buildLocation,cause:w?"preload":x,matches:l.matches,routeId:o.id,...l.router.options.additionalContext},Y=q=>{if(q===void 0){Ri(()=>{g(),b()});return}(Be(q)||Ee(q))&&(g(),vi(l,u,q,"BEFORE_LOAD")),Ri(()=>{g(),l.updateMatch(s,$=>({...$,__beforeLoadContext:q})),b()})};let V;try{if(V=o.options.beforeLoad(Q),dl(V))return g(),V.catch(q=>{vi(l,u,q,"BEFORE_LOAD")}).then(Y)}catch(q){g(),vi(l,u,q,"BEFORE_LOAD")}Y(V)},q0=(l,s)=>{const{id:u,routeId:o}=l.matches[s],r=l.router.looseRoutesById[o],h=()=>d(),y=()=>j0(l,u,s,r),d=()=>{if(zy(l,u))return;const p=H0(l,u,r);return dl(p)?p.then(y):y()};return h()},Q0=(l,s,u)=>{const o=l.router.getMatch(s);if(!o||!u.options.head&&!u.options.scripts&&!u.options.headers)return;const r={ssr:l.router.options.ssr,matches:l.matches,match:o,params:o.params,loaderData:o.loaderData};return Promise.all([u.options.head?.(r),u.options.scripts?.(r),u.options.headers?.(r)]).then(([h,y,d])=>{const p=h?.meta,v=h?.links,g=h?.scripts,b=h?.styles;return{meta:p,links:v,headScripts:g,headers:d,scripts:y,styles:b}})},Dy=(l,s,u,o)=>{const r=l.matchPromises[u-1],{params:h,loaderDeps:y,abortController:d,cause:p}=l.router.getMatch(s),v=ml(l,u),g=hs(l,s);return{params:h,deps:y,preload:!!g,parentMatchPromise:r,abortController:d,context:v,location:l.location,navigate:b=>l.router.navigate({...b,_fromLocation:l.location}),cause:g?"preload":p,route:o,...l.router.options.additionalContext}},Jm=async(l,s,u,o)=>{try{const r=l.router.getMatch(s);try{(!(n0??l.router.isServer)||r.ssr===!0)&&Uy(o);const h=o.options.loader?.(Dy(l,s,u,o)),y=o.options.loader&&dl(h);if((y||o._lazyPromise||o._componentsPromise||o.options.head||o.options.scripts||o.options.headers||r._nonReactive.minPendingPromise)&&l.updateMatch(s,v=>({...v,isFetching:"loader"})),o.options.loader){const v=y?await h:h;Zn(l,l.router.getMatch(s),v),v!==void 0&&l.updateMatch(s,g=>({...g,loaderData:v}))}o._lazyPromise&&await o._lazyPromise;const p=r._nonReactive.minPendingPromise;p&&await p,o._componentsPromise&&await o._componentsPromise,l.updateMatch(s,v=>({...v,error:void 0,context:ml(l,u),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(h){let y=h;if(y?.name==="AbortError"){if(r.abortController.signal.aborted){r._nonReactive.loaderPromise?.resolve(),r._nonReactive.loaderPromise=void 0;return}l.updateMatch(s,p=>({...p,status:p.status==="pending"?"success":p.status,isFetching:!1,context:ml(l,u)}));return}const d=r._nonReactive.minPendingPromise;d&&await d,Ee(h)&&await o.options.notFoundComponent?.preload?.(),Zn(l,l.router.getMatch(s),h);try{o.options.onError?.(h)}catch(p){y=p,Zn(l,l.router.getMatch(s),p)}l.updateMatch(s,p=>({...p,error:y,context:ml(l,u),status:"error",isFetching:!1}))}}catch(r){const h=l.router.getMatch(s);h&&(h._nonReactive.loaderPromise=void 0),Zn(l,h,r)}},G0=async(l,s)=>{async function u(g,b,S,R){const A=Date.now()-b.updatedAt,x=g?R.options.preloadStaleTime??l.router.options.defaultPreloadStaleTime??3e4:R.options.staleTime??l.router.options.defaultStaleTime??0,w=R.options.shouldReload,Q=typeof w=="function"?w(Dy(l,o,s,R)):w,{status:Y,invalid:V}=S;h=Y==="success"&&(V||(Q??A>x)),g&&R.options.preload===!1||(h&&!l.sync?(y=!0,(async()=>{try{await Jm(l,o,s,R);const q=l.router.getMatch(o);q._nonReactive.loaderPromise?.resolve(),q._nonReactive.loadPromise?.resolve(),q._nonReactive.loaderPromise=void 0}catch(q){Be(q)&&await l.router.navigate(q.options)}})()):(Y!=="success"||h&&l.sync)&&await Jm(l,o,s,R))}const{id:o,routeId:r}=l.matches[s];let h=!1,y=!1;const d=l.router.looseRoutesById[r];if(!zy(l,o)){const g=l.router.getMatch(o),b=hs(l,o);if(g._nonReactive.loaderPromise){if(g.status==="success"&&!l.sync&&!g.preload)return g;await g._nonReactive.loaderPromise;const S=l.router.getMatch(o),R=S._nonReactive.error||S.error;R&&Zn(l,S,R),S.status==="pending"&&await u(b,g,S,d)}else{const S=b&&!l.router.state.matches.some(A=>A.id===o),R=l.router.getMatch(o);R._nonReactive.loaderPromise=yl(),S!==R.preload&&l.updateMatch(o,A=>({...A,preload:S})),await u(b,g,R,d)}}const p=l.router.getMatch(o);y||(p._nonReactive.loaderPromise?.resolve(),p._nonReactive.loadPromise?.resolve()),clearTimeout(p._nonReactive.pendingTimeout),p._nonReactive.pendingTimeout=void 0,y||(p._nonReactive.loaderPromise=void 0),p._nonReactive.dehydrated=void 0;const v=y?p.isFetching:!1;return v!==p.isFetching||p.invalid!==!1?(l.updateMatch(o,g=>({...g,isFetching:v,invalid:!1})),l.router.getMatch(o)):p};async function Pm(l){const s=Object.assign(l,{matchPromises:[]});s.router.state.matches.some(u=>u._forcePending)&&$u(s);try{for(let d=0;d<s.matches.length;d++){const p=q0(s,d);dl(p)&&await p}const u=s.firstBadMatchIndex??s.matches.length;for(let d=0;d<u;d++)s.matchPromises.push(G0(s,d));const r=(await Promise.allSettled(s.matchPromises)).filter(d=>d.status==="rejected").map(d=>d.reason);let h;for(const d of r){if(Be(d))throw d;!h&&Ee(d)&&(h=d)}for(const d of s.matches){const{id:p,routeId:v}=d,g=s.router.looseRoutesById[v];try{const b=Q0(s,p,g);if(b){const S=await b;s.updateMatch(p,R=>({...R,...S}))}}catch(b){console.error(`Error executing head for route ${v}:`,b)}}if(h)throw h;const y=$u(s);dl(y)&&await y}catch(u){if(Ee(u)&&!s.preload){const o=$u(s);throw dl(o)&&await o,u}if(Be(u))throw u}return s.matches}async function Uy(l){if(!l._lazyLoaded&&l._lazyPromise===void 0&&(l.lazyFn?l._lazyPromise=l.lazyFn().then(s=>{const{id:u,...o}=s.options;Object.assign(l.options,o),l._lazyLoaded=!0,l._lazyPromise=void 0}):l._lazyLoaded=!0),!l._componentsLoaded&&l._componentsPromise===void 0){const s=()=>{const u=[];for(const o of wy){const r=l.options[o]?.preload;r&&u.push(r())}if(u.length)return Promise.all(u).then(()=>{l._componentsLoaded=!0,l._componentsPromise=void 0});l._componentsLoaded=!0,l._componentsPromise=void 0};l._componentsPromise=l._lazyPromise?l._lazyPromise.then(s):s()}return l._componentsPromise}function Ly(l){for(const s of wy)if(l.options[s]?.preload)return!0;return!1}const wy=["component","errorComponent","pendingComponent","notFoundComponent"];function Y0(l){return{input:({url:s})=>{for(const u of l)s=lr(u,s);return s},output:({url:s})=>{for(let u=l.length-1;u>=0;u--)s=Ny(l[u],s);return s}}}function V0(l){const s=Cy(l.basepath),u=`/${s}`,o=`${u}/`,r=l.caseSensitive?u:u.toLowerCase(),h=l.caseSensitive?o:o.toLowerCase();return{input:({url:y})=>{const d=l.caseSensitive?y.pathname:y.pathname.toLowerCase();return d===r?y.pathname="/":d.startsWith(h)&&(y.pathname=y.pathname.slice(u.length)),y},output:({url:y})=>(y.pathname=Wu(["/",s,y.pathname]),y)}}function lr(l,s){const u=l?.input?.({url:s});if(u){if(typeof u=="string")return new URL(u);if(u instanceof URL)return u}return s}function Ny(l,s){const u=l?.output?.({url:s});if(u){if(typeof u=="string")return new URL(u);if(u instanceof URL)return u}return s}function va(l){const s=l.resolvedLocation,u=l.location,o=s?.pathname!==u.pathname,r=s?.href!==u.href,h=s?.hash!==u.hash;return{fromLocation:s,toLocation:u,pathChanged:o,hrefChanged:r,hashChanged:h}}class X0{constructor(s){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.isScrollRestoring=!1,this.isScrollRestorationSetup=!1,this.startTransition=u=>u(),this.update=u=>{u.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/framework/react/guide/not-found-errors#migrating-from-notfoundroute for more info.");const o=this.options,r=this.basepath??o?.basepath??"/",h=this.basepath===void 0,y=o?.rewrite;if(this.options={...o,...u},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=_0(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=t0()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let S;this.resolvePathCache=ss(1e3),S=this.buildRouteTree(),this.setRoutes(S)}!this.__store&&this.latestLocation&&(this.__store=new nr(Z0(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(S=>!["redirected"].includes(S.status))}}}),A0(this));let d=!1;const p=this.options.basepath??"/",v=this.options.rewrite;if(h||r!==p||y!==v){this.basepath=p;const S=[],R=Cy(p);R&&R!=="/"&&S.push(V0({basepath:p})),v&&S.push(v),this.rewrite=S.length===0?void 0:S.length===1?S[0]:Y0(S),this.history&&this.updateLatestLocation(),d=!0}d&&this.__store&&(this.__store.state={...this.state,location:this.latestLocation}),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a)"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const u=y0(this.routeTree,this.options.caseSensitive,(o,r)=>{o.init({originalIndex:r})});return this.options.routeMasks&&r0(this.options.routeMasks,u.processedTree),u},this.subscribe=(u,o)=>{const r={eventType:u,fn:o};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=u=>{this.subscribers.forEach(o=>{o.eventType===u.type&&o.fn(u)})},this.parseLocation=(u,o)=>{const r=({pathname:p,search:v,hash:g,href:b,state:S})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(p)){const Y=this.options.parseSearch(v),V=this.options.stringifySearch(Y);return{href:p+V+g,publicHref:b,pathname:yi(p).path,external:!1,searchStr:V,search:Re(o?.search,Y),hash:yi(g.slice(1)).path,state:Re(o?.state,S)}}const R=new URL(b,this.origin),A=lr(this.rewrite,R),x=this.options.parseSearch(A.search),w=this.options.stringifySearch(x);return A.search=w,{href:A.href.replace(A.origin,""),publicHref:b,pathname:yi(A.pathname).path,external:!!this.rewrite&&A.origin!==this.origin,searchStr:w,search:Re(o?.search,x),hash:yi(A.hash.slice(1)).path,state:Re(o?.state,S)}},h=r(u),{__tempLocation:y,__tempKey:d}=h.state;if(y&&(!d||d===this.tempLocationKey)){const p=r(y);return p.state.key=h.state.key,p.state.__TSR_key=h.state.__TSR_key,delete p.state.__tempLocation,{...p,maskedLocation:h}}return h},this.resolvePathWithBase=(u,o)=>b0({base:u,to:dr(o),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(u,o,r)=>typeof u=="string"?this.matchRoutesInternal({pathname:u,search:o},r):this.matchRoutesInternal(u,o),this.getMatchedRoutes=u=>J0({pathname:u,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=u=>{const o=this.getMatch(u);o&&(o.abortController.abort(),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const u=this.state.matches.filter(h=>h.status==="pending"),o=this.state.matches.filter(h=>h.isFetching==="loader");new Set([...this.state.pendingMatches??[],...u,...o]).forEach(h=>{this.cancelMatch(h.id)})},this.buildLocation=u=>{const o=(h={})=>{const y=h._fromLocation||this.pendingBuiltLocation||this.latestLocation,d=this.matchRoutesLightweight(y);h.from;const p=h.unsafeRelative==="path"?y.pathname:h.from??d.fullPath,v=this.resolvePathWithBase(p,"."),g=d.search,b={...d.params},S=h.to?this.resolvePathWithBase(v,`${h.to}`):this.resolvePathWithBase(v,"."),R=h.params===!1||h.params===null?{}:(h.params??!0)===!0?b:Object.assign(b,Kn(h.params,b)),A=Qo({path:S,params:R,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath,x=this.getMatchedRoutes(A);let w=x.matchedRoutes;(x.foundRoute?x.foundRoute.path!=="/"&&x.routeParams["**"]:pn(A))&&this.options.notFoundRoute&&(w=[...w,this.options.notFoundRoute]);let Y=!1;if(Object.keys(R).length>0)for(const ft of w){const ct=ft.options.params?.stringify??ft.options.stringifyParams;ct&&(Y=!0,Object.assign(R,ct(R)))}const V=u.leaveParams?S:yi(Y?Qo({path:S,params:R,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath:A).path;let q=g;if(u._includeValidateSearch&&this.options.search?.strict){const ft={};w.forEach(ct=>{if(ct.options.validateSearch)try{Object.assign(ft,Iu(ct.options.validateSearch,{...ft,...q}))}catch{}}),q=ft}q=P0({search:q,dest:h,destRoutes:w,_includeValidateSearch:u._includeValidateSearch}),q=Re(g,q);const $=this.options.stringifySearch(q),k=h.hash===!0?y.hash:h.hash?Kn(h.hash,y.hash):void 0,G=k?`#${k}`:"";let j=h.state===!0?y.state:h.state?Kn(h.state,y.state):{};j=Re(y.state,j);const J=`${V}${$}${G}`;let it,at,tt=!1;if(this.rewrite){const ft=new URL(J,this.origin),ct=Ny(this.rewrite,ft);it=ft.href.replace(ft.origin,""),ct.origin!==this.origin?(at=ct.href,tt=!0):at=ct.pathname+ct.search+ct.hash}else it=s0(J),at=it;return{publicHref:at,href:it,pathname:V,search:q,searchStr:$,state:j,hash:k??"",external:tt,unmaskOnReload:h.unmaskOnReload}},r=(h={},y)=>{const d=o(h);let p=y?o(y):void 0;if(!p){const v={};if(this.options.routeMasks){const g=f0(d.pathname,this.processedTree);if(g){Object.assign(v,g.rawParams);const{from:b,params:S,...R}=g.route,A=S===!1||S===null?{}:(S??!0)===!0?v:Object.assign(v,Kn(S,v));y={from:u.from,...R,params:A},p=o(y)}}}return p&&(d.maskedLocation=p),d};return u.mask?r(u,{from:u.from,...u.mask}):r(u)},this.commitLocation=async({viewTransition:u,ignoreBlocker:o,...r})=>{const h=()=>{const p=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];p.forEach(g=>{r.state[g]=this.latestLocation.state[g]});const v=pa(r.state,this.latestLocation.state);return p.forEach(g=>{delete r.state[g]}),v},y=pn(this.latestLocation.href)===pn(r.href),d=this.commitLocationPromise;if(this.commitLocationPromise=yl(()=>{d?.resolve()}),y&&h())this.load();else{let{maskedLocation:p,hashScrollIntoView:v,...g}=r;p&&(g={...p,state:{...p.state,__tempKey:void 0,__tempLocation:{...g,search:g.searchStr,state:{...g.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(g.unmaskOnReload??this.options.unmaskOnReload??!1)&&(g.state.__tempKey=this.tempLocationKey)),g.state.__hashScrollIntoViewOptions=v??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=u,this.history[r.replace?"replace":"push"](g.publicHref,g.state,{ignoreBlocker:o})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:u,resetScroll:o,hashScrollIntoView:r,viewTransition:h,ignoreBlocker:y,href:d,...p}={})=>{if(d){const b=this.history.location.state.__TSR_index,S=ls(d,{__TSR_index:u?b:b+1}),R=new URL(S.pathname,this.origin),A=lr(this.rewrite,R);p.to=A.pathname,p.search=this.options.parseSearch(S.search),p.hash=S.hash.slice(1)}const v=this.buildLocation({...p,_includeValidateSearch:!0});this.pendingBuiltLocation=v;const g=this.commitLocation({...v,viewTransition:h,replace:u,resetScroll:o,hashScrollIntoView:r,ignoreBlocker:y});return Promise.resolve().then(()=>{this.pendingBuiltLocation===v&&(this.pendingBuiltLocation=void 0)}),g},this.navigate=async({to:u,reloadDocument:o,href:r,publicHref:h,...y})=>{let d=!1;if(r)try{new URL(`${r}`),d=!0}catch{}if(d&&!o&&(o=!0),o){if(u!==void 0||!r){const v=this.buildLocation({to:u,...y});r=r??v.publicHref,h=h??v.publicHref}const p=!d&&h?h:r;if(us(p,this.protocolAllowlist))return Promise.resolve();if(!y.ignoreBlocker){const g=this.history.getBlockers?.()??[];for(const b of g)if(b?.blockerFn&&await b.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return y.replace?window.location.replace(p):window.location.href=p,Promise.resolve()}return this.buildAndCommitLocation({...y,href:r,to:u,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const u=this.matchRoutes(this.latestLocation);this.__store.setState(o=>({...o,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:u,cachedMatches:o.cachedMatches.filter(r=>!u.some(h=>h.id===r.id))}))},this.load=async u=>{let o,r,h;for(h=new Promise(d=>{this.startTransition(async()=>{try{this.beforeLoad();const p=this.latestLocation,v=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...va({resolvedLocation:v,location:p})}),this.emit({type:"onBeforeLoad",...va({resolvedLocation:v,location:p})}),await Pm({router:this,sync:u?.sync,matches:this.state.pendingMatches,location:p,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let g=[],b=[],S=[];Ri(()=>{this.__store.setState(R=>{const A=R.matches,x=R.pendingMatches||R.matches;return g=A.filter(w=>!x.some(Q=>Q.id===w.id)),b=x.filter(w=>!A.some(Q=>Q.id===w.id)),S=x.filter(w=>A.some(Q=>Q.id===w.id)),{...R,isLoading:!1,loadedAt:Date.now(),matches:x,pendingMatches:void 0,cachedMatches:[...R.cachedMatches,...g.filter(w=>w.status!=="error"&&w.status!=="notFound")]}}),this.clearExpiredCache()}),[[g,"onLeave"],[b,"onEnter"],[S,"onStay"]].forEach(([R,A])=>{R.forEach(x=>{this.looseRoutesById[x.routeId].options[A]?.(x)})})})})}})}catch(p){Be(p)?(o=p,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):Ee(p)&&(r=p),this.__store.setState(v=>({...v,statusCode:o?o.status:r?404:v.matches.some(g=>g.status==="error")?500:200,redirect:o}))}this.latestLoadPromise===h&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),d()})}),this.latestLoadPromise=h,await h;this.latestLoadPromise&&h!==this.latestLoadPromise;)await this.latestLoadPromise;let y;this.hasNotFoundMatch()?y=404:this.__store.state.matches.some(d=>d.status==="error")&&(y=500),y!==void 0&&this.__store.setState(d=>({...d,statusCode:y}))},this.startViewTransition=u=>{const o=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,o&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let r;if(typeof o=="object"&&this.isViewTransitionTypesSupported){const h=this.latestLocation,y=this.state.resolvedLocation,d=typeof o.types=="function"?o.types(va({resolvedLocation:y,location:h})):o.types;if(d===!1){u();return}r={update:u,types:d}}else r=u;document.startViewTransition(r)}else u()},this.updateMatch=(u,o)=>{this.startTransition(()=>{const r=this.state.pendingMatches?.some(h=>h.id===u)?"pendingMatches":this.state.matches.some(h=>h.id===u)?"matches":this.state.cachedMatches.some(h=>h.id===u)?"cachedMatches":"";r&&this.__store.setState(h=>({...h,[r]:h[r]?.map(y=>y.id===u?o(y):y)}))})},this.getMatch=u=>{const o=r=>r.id===u;return this.state.cachedMatches.find(o)??this.state.pendingMatches?.find(o)??this.state.matches.find(o)},this.invalidate=u=>{const o=r=>u?.filter?.(r)??!0?{...r,invalid:!0,...u?.forcePending||r.status==="error"||r.status==="notFound"?{status:"pending",error:void 0}:void 0}:r;return this.__store.setState(r=>({...r,matches:r.matches.map(o),cachedMatches:r.cachedMatches.map(o),pendingMatches:r.pendingMatches?.map(o)})),this.shouldViewTransition=!1,this.load({sync:u?.sync})},this.getParsedLocationHref=u=>u.publicHref||"/",this.resolveRedirect=u=>{const o=u.headers.get("Location");if(!u.options.href||u.options._builtLocation){const r=u.options._builtLocation??this.buildLocation(u.options),h=this.getParsedLocationHref(r);u.options.href=h,u.headers.set("Location",h)}else if(o)try{const r=new URL(o);if(this.origin&&r.origin===this.origin){const h=r.pathname+r.search+r.hash;u.options.href=h,u.headers.set("Location",h)}}catch{}if(u.options.href&&!u.options._builtLocation&&us(u.options.href,this.protocolAllowlist))throw new Error(`Redirect blocked: unsafe protocol in href "${u.options.href}". Allowed protocols: ${Array.from(this.protocolAllowlist).join(", ")}.`);return u.headers.get("Location")||u.headers.set("Location",u.options.href),u},this.clearCache=u=>{const o=u?.filter;o!==void 0?this.__store.setState(r=>({...r,cachedMatches:r.cachedMatches.filter(h=>!o(h))})):this.__store.setState(r=>({...r,cachedMatches:[]}))},this.clearExpiredCache=()=>{const u=o=>{const r=this.looseRoutesById[o.routeId];if(!r.options.loader)return!0;const h=(o.preload?r.options.preloadGcTime??this.options.defaultPreloadGcTime:r.options.gcTime??this.options.defaultGcTime)??300*1e3;return o.status==="error"?!0:Date.now()-o.updatedAt>=h};this.clearCache({filter:u})},this.loadRouteChunk=Uy,this.preloadRoute=async u=>{const o=this.buildLocation(u);let r=this.matchRoutes(o,{throwOnError:!0,preload:!0,dest:u});const h=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(d=>d.id)),y=new Set([...h,...this.state.cachedMatches.map(d=>d.id)]);Ri(()=>{r.forEach(d=>{y.has(d.id)||this.__store.setState(p=>({...p,cachedMatches:[...p.cachedMatches,d]}))})});try{return r=await Pm({router:this,matches:r,location:o,preload:!0,updateMatch:(d,p)=>{h.has(d)?r=r.map(v=>v.id===d?p(v):v):this.updateMatch(d,p)}}),r}catch(d){if(Be(d))return d.options.reloadDocument?void 0:await this.preloadRoute({...d.options,_fromLocation:o});Ee(d)||console.error(d);return}},this.matchRoute=(u,o)=>{const r={...u,to:u.to?this.resolvePathWithBase(u.from||"",u.to):void 0,params:u.params||{},leaveParams:!0},h=this.buildLocation(r);if(o?.pending&&this.state.status!=="pending")return!1;const d=(o?.pending===void 0?!this.state.isLoading:o.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,p=h0(h.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,d.pathname,this.processedTree);return!p||u.params&&!pa(p.rawParams,u.params,{partial:!0})?!1:o?.includeSearch??!0?pa(d.search,h.search,{partial:!0})?p.rawParams:!1:p.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(u=>u.status==="notFound"||u.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...s,caseSensitive:s.caseSensitive??!1,notFoundMode:s.notFoundMode??"fuzzy",stringifySearch:s.stringifySearch??L0,parseSearch:s.parseSearch??U0,protocolAllowlist:s.protocolAllowlist??u0}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.__store.state}setRoutes({routesById:s,routesByPath:u,processedTree:o}){this.routesById=s,this.routesByPath=u,this.processedTree=o;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}get looseRoutesById(){return this.routesById}getParentContext(s){return s?.id?s.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(s,u){const o=this.getMatchedRoutes(s.pathname),{foundRoute:r,routeParams:h,parsedParams:y}=o;let{matchedRoutes:d}=o,p=!1;(r?r.path!=="/"&&h["**"]:pn(s.pathname))&&(this.options.notFoundRoute?d=[...d,this.options.notFoundRoute]:p=!0);const v=p?k0(this.options.notFoundMode,d):void 0,g=new Array(d.length),b=new Map(this.state.matches.map(S=>[S.routeId,S]));for(let S=0;S<d.length;S++){const R=d[S],A=g[S-1];let x,w,Q;{const ct=A?.search??s.search,qt=A?._strictSearch??void 0;try{const U=Iu(R.options.validateSearch,{...ct})??void 0;x={...ct,...U},w={...qt,...U},Q=void 0}catch(U){let X=U;if(U instanceof rs||(X=new rs(U.message,{cause:U})),u?.throwOnError)throw X;x=ct,w={},Q=X}}const Y=R.options.loaderDeps?.({search:x})??"",V=Y?JSON.stringify(Y):"",{interpolatedPath:q,usedParams:$}=Qo({path:R.fullPath,params:h,decoder:this.pathParamsDecoder,server:this.isServer}),k=R.id+q+V,G=this.getMatch(k),j=b.get(R.id),J=G?._strictParams??$;let it;if(!G)try{Fm(R,$,y,J)}catch(ct){if(Ee(ct)||Be(ct)?it=ct:it=new K0(ct.message,{cause:ct}),u?.throwOnError)throw it}Object.assign(h,J);const at=j?"stay":"enter";let tt;if(G)tt={...G,cause:at,params:j?.params??h,_strictParams:J,search:Re(j?j.search:G.search,x),_strictSearch:w};else{const ct=R.options.loader||R.options.beforeLoad||R.lazyFn||Ly(R)?"pending":"success";tt={id:k,ssr:R.options.ssr,index:S,routeId:R.id,params:j?.params??h,_strictParams:J,pathname:q,updatedAt:Date.now(),search:j?Re(j.search,x):x,_strictSearch:w,searchError:void 0,status:ct,isFetching:!1,error:void 0,paramsError:it,__routeContext:void 0,_nonReactive:{loadPromise:yl()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:at,loaderDeps:j?Re(j.loaderDeps,Y):Y,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:R.options.staticData||{},fullPath:R.fullPath}}u?.preload||(tt.globalNotFound=v===R.id),tt.searchError=Q;const ft=this.getParentContext(A);tt.context={...ft,...tt.__routeContext,...tt.__beforeLoadContext},g[S]=tt}for(let S=0;S<g.length;S++){const R=g[S],A=this.looseRoutesById[R.routeId],x=this.getMatch(R.id),w=b.get(R.routeId);if(R.params=w?Re(w.params,h):h,!x){const Q=g[S-1],Y=this.getParentContext(Q);if(A.options.context){const V={deps:R.loaderDeps,params:R.params,context:Y??{},location:s,navigate:q=>this.navigate({...q,_fromLocation:s}),buildLocation:this.buildLocation,cause:R.cause,abortController:R.abortController,preload:!!R.preload,matches:g,routeId:A.id};R.__routeContext=A.options.context(V)??void 0}R.context={...Y,...R.__routeContext,...R.__beforeLoadContext}}}return g}matchRoutesLightweight(s){const{matchedRoutes:u,routeParams:o,parsedParams:r}=this.getMatchedRoutes(s.pathname),h=Oi(u),y={...s.search};for(const g of u)try{Object.assign(y,Iu(g.options.validateSearch,y))}catch{}const d=Oi(this.state.matches),p=d&&d.routeId===h.id&&s.pathname===this.state.location.pathname;let v;if(p)v=d.params;else{const g={...o};for(const b of u)try{Fm(b,o,r??{},g)}catch{}v=g}return{matchedRoutes:u,fullPath:h.fullPath,search:y,params:v}}}class rs extends Error{}class K0 extends Error{}function Z0(l){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:l,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function Iu(l,s){if(l==null)return{};if("~standard"in l){const u=l["~standard"].validate(s);if(u instanceof Promise)throw new rs("Async validation not supported");if(u.issues)throw new rs(JSON.stringify(u.issues,void 0,2),{cause:u});return u.value}return"parse"in l?l.parse(s):typeof l=="function"?l(s):{}}function J0({pathname:l,routesById:s,processedTree:u}){const o={},r=pn(l);let h,y;const d=d0(r,u,!0);return d&&(h=d.route,Object.assign(o,d.rawParams),y=Object.assign({},d.parsedParams)),{matchedRoutes:d?.branch||[s[Ne]],routeParams:o,foundRoute:h,parsedParams:y}}function P0({search:l,dest:s,destRoutes:u,_includeValidateSearch:o}){return F0(u)(l,s,o??!1)}function F0(l){const s={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const r of l){if("search"in r.options)r.options.search?.middlewares&&s.middlewares.push(...r.options.search.middlewares);else if(r.options.preSearchFilters||r.options.postSearchFilters){const h=({search:y,next:d})=>{let p=y;"preSearchFilters"in r.options&&r.options.preSearchFilters&&(p=r.options.preSearchFilters.reduce((g,b)=>b(g),y));const v=d(p);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((g,b)=>b(g),v):v};s.middlewares.push(h)}if(r.options.validateSearch){const h=({search:y,next:d})=>{const p=d(y);if(!s._includeValidateSearch)return p;try{return{...p,...Iu(r.options.validateSearch,p)??void 0}}catch{return p}};s.middlewares.push(h)}}const u=({search:r})=>{const h=s.dest;return h.search?h.search===!0?r:Kn(h.search,r):{}};s.middlewares.push(u);const o=(r,h,y)=>{if(r>=y.length)return h;const d=y[r];return d({search:h,next:v=>o(r+1,v,y)})};return function(h,y,d){return s.dest=y,s._includeValidateSearch=d,o(0,h,s.middlewares)}}function k0(l,s){if(l!=="root")for(let u=s.length-1;u>=0;u--){const o=s[u];if(o.children)return o.id}return Ne}function Fm(l,s,u,o){const r=l.options.params?.parse??l.options.parseParams;if(r)if(l.options.skipRouteOnParseError)for(const h in s)h in u&&(o[h]=u[h]);else{const h=r(o);Object.assign(o,h)}}const W0="Error preloading route! ☝️";class By{constructor(s){if(this.init=u=>{this.originalIndex=u.originalIndex;const o=this.options,r=!o?.path&&!o?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=Ne:this.parentRoute||vn(!1);let h=r?Ne:o?.path;h&&h!=="/"&&(h=My(h));const y=o?.id||h;let d=r?Ne:Wu([this.parentRoute.id===Ne?"":this.parentRoute.id,y]);h===Ne&&(h="/"),d!==Ne&&(d=Wu(["/",d]));const p=d===Ne?"/":Wu([this.parentRoute.fullPath,h]);this._path=h,this._id=d,this._fullPath=p,this._to=pn(p)},this.addChildren=u=>this._addFileChildren(u),this._addFileChildren=u=>(Array.isArray(u)&&(this.children=u),typeof u=="object"&&u!==null&&(this.children=Object.values(u)),this),this._addFileTypes=()=>this,this.updateLoader=u=>(Object.assign(this.options,u),this),this.update=u=>(Object.assign(this.options,u),this),this.lazy=u=>(this.lazyFn=u,this),this.redirect=u=>B0({from:this.fullPath,...u}),this.options=s||{},this.isRoot=!s?.getParentRoute,s?.id&&s?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}}class $0 extends By{constructor(s){super(s)}}const Fu=typeof window<"u"?W.useLayoutEffect:W.useEffect;function Yo(l){const s=W.useRef({value:l,prev:null}),u=s.current.value;return l!==u&&(s.current={value:l,prev:u}),s.current.prev}function I0(l,s,u={},o={}){W.useEffect(()=>{if(!l.current||o.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([h])=>{s(h)},u);return r.observe(l.current),()=>{r.disconnect()}},[s,u,o.disabled,l])}function tS(l){const s=W.useRef(null);return W.useImperativeHandle(l,()=>s.current,[]),s}function mr(l){const s=l.errorComponent??yr;return et.jsx(eS,{getResetKey:l.getResetKey,onCatch:l.onCatch,children:({error:u,reset:o})=>u?W.createElement(s,{error:u,reset:o}):l.children})}class eS extends W.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(s){return{resetKey:s.getResetKey()}}static getDerivedStateFromError(s){return{error:s}}reset(){this.setState({error:null})}componentDidUpdate(s,u){u.error&&u.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(s,u){this.props.onCatch&&this.props.onCatch(s,u)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function yr({error:l}){const[s,u]=W.useState(!1);return et.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[et.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[et.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),et.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>u(o=>!o),children:s?"Hide Error":"Show Error"})]}),et.jsx("div",{style:{height:".25rem"}}),s?et.jsx("div",{children:et.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:l.message?et.jsx("code",{children:l.message}):null})}):null]})}function nS({children:l,fallback:s=null}){return Hy()?et.jsx(Ei.Fragment,{children:l}):et.jsx(Ei.Fragment,{children:s})}function Hy(){return Ei.useSyncExternalStore(aS,()=>!0,()=>!1)}function aS(){return()=>{}}var Vo={exports:{}},Xo={},Ko={exports:{}},Zo={};var km;function lS(){if(km)return Zo;km=1;var l=Ci();function s(b,S){return b===S&&(b!==0||1/b===1/S)||b!==b&&S!==S}var u=typeof Object.is=="function"?Object.is:s,o=l.useState,r=l.useEffect,h=l.useLayoutEffect,y=l.useDebugValue;function d(b,S){var R=S(),A=o({inst:{value:R,getSnapshot:S}}),x=A[0].inst,w=A[1];return h(function(){x.value=R,x.getSnapshot=S,p(x)&&w({inst:x})},[b,R,S]),r(function(){return p(x)&&w({inst:x}),b(function(){p(x)&&w({inst:x})})},[b]),y(R),R}function p(b){var S=b.getSnapshot;b=b.value;try{var R=S();return!u(b,R)}catch{return!0}}function v(b,S){return S()}var g=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?v:d;return Zo.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:g,Zo}var Wm;function iS(){return Wm||(Wm=1,Ko.exports=lS()),Ko.exports}var $m;function uS(){if($m)return Xo;$m=1;var l=Ci(),s=iS();function u(v,g){return v===g&&(v!==0||1/v===1/g)||v!==v&&g!==g}var o=typeof Object.is=="function"?Object.is:u,r=s.useSyncExternalStore,h=l.useRef,y=l.useEffect,d=l.useMemo,p=l.useDebugValue;return Xo.useSyncExternalStoreWithSelector=function(v,g,b,S,R){var A=h(null);if(A.current===null){var x={hasValue:!1,value:null};A.current=x}else x=A.current;A=d(function(){function Q(k){if(!Y){if(Y=!0,V=k,k=S(k),R!==void 0&&x.hasValue){var G=x.value;if(R(G,k))return q=G}return q=k}if(G=q,o(V,k))return G;var j=S(k);return R!==void 0&&R(G,j)?(V=k,G):(V=k,q=j)}var Y=!1,V,q,$=b===void 0?null:b;return[function(){return Q(g())},$===null?void 0:function(){return Q($())}]},[g,b,S,R]);var w=r(v,A[0],A[1]);return y(function(){x.hasValue=!0,x.value=w},[w]),p(w),w},Xo}var Im;function sS(){return Im||(Im=1,Vo.exports=uS()),Vo.exports}var cS=sS();function oS(l,s=o=>o,u={}){const o=u.equal??rS;return cS.useSyncExternalStoreWithSelector(l.subscribe,()=>l.state,()=>l.state,s,o)}function rS(l,s){if(Object.is(l,s))return!0;if(typeof l!="object"||l===null||typeof s!="object"||s===null)return!1;if(l instanceof Map&&s instanceof Map){if(l.size!==s.size)return!1;for(const[o,r]of l)if(!s.has(o)||!Object.is(r,s.get(o)))return!1;return!0}if(l instanceof Set&&s instanceof Set){if(l.size!==s.size)return!1;for(const o of l)if(!s.has(o))return!1;return!0}if(l instanceof Date&&s instanceof Date)return l.getTime()===s.getTime();const u=ty(l);if(u.length!==ty(s).length)return!1;for(let o=0;o<u.length;o++)if(!Object.prototype.hasOwnProperty.call(s,u[o])||!Object.is(l[u[o]],s[u[o]]))return!1;return!0}function ty(l){return Object.keys(l).concat(Object.getOwnPropertySymbols(l))}const Jo=W.createContext(null);function jy(){return typeof document>"u"?Jo:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Jo,Jo)}function je(l){const s=W.useContext(jy());return l?.warn,s}function He(l){const s=je({warn:l?.router===void 0}),u=l?.router||s,o=W.useRef(void 0);return oS(u.__store,r=>{if(l?.select){if(l.structuralSharing??u.options.defaultStructuralSharing){const h=Re(o.current,l.select(r));return o.current=h,h}return l.select(r)}return r})}const ds=W.createContext(void 0),fS=W.createContext(void 0);function Pe(l){const s=W.useContext(l.from?fS:ds);return He({select:o=>{const r=o.matches.find(h=>l.from?l.from===h.routeId:h.id===s);if(vn(!((l.shouldThrow??!0)&&!r),`Could not find ${l.from?`an active match from "${l.from}"`:"a nearest match!"}`),r!==void 0)return l.select?l.select(r):r},structuralSharing:l.structuralSharing})}function pr(l){return Pe({from:l.from,strict:l.strict,structuralSharing:l.structuralSharing,select:s=>l.select?l.select(s.loaderData):s.loaderData})}function vr(l){const{select:s,...u}=l;return Pe({...u,select:o=>s?s(o.loaderDeps):o.loaderDeps})}function gr(l){return Pe({from:l.from,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,strict:l.strict,select:s=>{const u=l.strict===!1?s.params:s._strictParams;return l.select?l.select(u):u}})}function Sr(l){return Pe({from:l.from,strict:l.strict,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,select:s=>l.select?l.select(s.search):s.search})}function br(l){const s=je();return W.useCallback(u=>s.navigate({...u,from:u.from??l?.from}),[l?.from,s])}var hS=sy();function dS(l,s){const u=je(),o=tS(s),{activeProps:r,inactiveProps:h,activeOptions:y,to:d,preload:p,preloadDelay:v,hashScrollIntoView:g,replace:b,startTransition:S,resetScroll:R,viewTransition:A,children:x,target:w,disabled:Q,style:Y,className:V,onClick:q,onFocus:$,onMouseEnter:k,onMouseLeave:G,onTouchStart:j,ignoreBlocker:J,params:it,search:at,hash:tt,state:ft,mask:ct,reloadDocument:qt,unsafeRelative:U,from:X,_fromLocation:lt,..._t}=l,Et=Hy(),T=He({select:Dt=>Dt.location.search,structuralSharing:!0}),H=l.from,K=W.useMemo(()=>({...l,from:H}),[u,T,H,l._fromLocation,l.hash,l.to,l.search,l.params,l.state,l.mask,l.unsafeRelative]),Z=W.useMemo(()=>u.buildLocation({...K}),[u,K]),ut=Z.maskedLocation?Z.maskedLocation.publicHref:Z.publicHref,ht=Z.maskedLocation?Z.maskedLocation.external:Z.external,yt=W.useMemo(()=>SS(ut,ht,u.history,Q),[Q,ht,ut,u.history]),Qt=W.useMemo(()=>{if(yt?.external)return us(yt.href,u.protocolAllowlist)?void 0:yt.href;if(!bS(d)&&!(typeof d!="string"||d.indexOf(":")===-1))try{return new URL(d),us(d,u.protocolAllowlist)?void 0:d}catch{}},[d,yt,u.protocolAllowlist]),xt=He({select:Dt=>{if(Qt)return!1;if(y?.exact){if(!S0(Dt.location.pathname,Z.pathname,u.basepath))return!1}else{const Ft=cs(Dt.location.pathname,u.basepath),ee=cs(Z.pathname,u.basepath);if(!(Ft.startsWith(ee)&&(Ft.length===ee.length||Ft[ee.length]==="/")))return!1}return(y?.includeSearch??!0)&&!pa(Dt.location.search,Z.search,{partial:!y?.exact,ignoreUndefined:!y?.explicitUndefined})?!1:y?.includeHash?Et&&Dt.location.hash===Z.hash:!0}}),Ve=xt?Kn(r,{})??mS:Po,Fe=xt?Po:Kn(h,{})??Po,Ra=[V,Ve.className,Fe.className].filter(Boolean).join(" "),gl=(Y||Ve.style||Fe.style)&&{...Y,...Ve.style,...Fe.style},[ke,Ea]=W.useState(!1),Ta=W.useRef(!1),gn=l.reloadDocument||Qt?!1:p??u.options.defaultPreload,Oa=v??u.options.defaultPreloadDelay??0,qe=W.useCallback(()=>{u.preloadRoute({...K}).catch(Dt=>{console.warn(Dt),console.warn(W0)})},[u,K]),Sl=W.useCallback(Dt=>{Dt?.isIntersecting&&qe()},[qe]);I0(o,Sl,gS,{disabled:!!Q||gn!=="viewport"}),W.useEffect(()=>{Ta.current||!Q&&gn==="render"&&(qe(),Ta.current=!0)},[Q,qe,gn]);const bl=Dt=>{const Ft=Dt.currentTarget.getAttribute("target"),ee=w!==void 0?w:Ft;if(!Q&&!_S(Dt)&&!Dt.defaultPrevented&&(!ee||ee==="_self")&&Dt.button===0){Dt.preventDefault(),hS.flushSync(()=>{Ea(!0)});const zi=u.subscribe("onResolved",()=>{zi(),Ea(!1)});u.navigate({...K,replace:b,resetScroll:R,hashScrollIntoView:g,startTransition:S,viewTransition:A,ignoreBlocker:J})}};if(Qt)return{..._t,ref:o,href:Qt,...x&&{children:x},...w&&{target:w},...Q&&{disabled:Q},...Y&&{style:Y},...V&&{className:V},...q&&{onClick:q},...$&&{onFocus:$},...k&&{onMouseEnter:k},...G&&{onMouseLeave:G},...j&&{onTouchStart:j}};const Ai=Dt=>{Q||gn&&qe()},ms=Ai,ae=Dt=>{if(!(Q||!gn))if(!Oa)qe();else{const Ft=Dt.target;if(gi.has(Ft))return;const ee=setTimeout(()=>{gi.delete(Ft),qe()},Oa);gi.set(Ft,ee)}},ys=Dt=>{if(Q||!gn||!Oa)return;const Ft=Dt.target,ee=gi.get(Ft);ee&&(clearTimeout(ee),gi.delete(Ft))};return{..._t,...Ve,...Fe,href:yt?.href,ref:o,onClick:Si([q,bl]),onFocus:Si([$,Ai]),onMouseEnter:Si([k,ae]),onMouseLeave:Si([G,ys]),onTouchStart:Si([j,ms]),disabled:!!Q,target:w,...gl&&{style:gl},...Ra&&{className:Ra},...Q&&yS,...xt&&pS,...Et&&ke&&vS}}const Po={},mS={className:"active"},yS={role:"link","aria-disabled":!0},pS={"data-status":"active","aria-current":"page"},vS={"data-transitioning":"transitioning"},gi=new WeakMap,gS={rootMargin:"100px"},Si=l=>s=>{for(const u of l)if(u){if(s.defaultPrevented)return;u(s)}};function SS(l,s,u,o){if(!o)return s?{href:l,external:!0}:{href:u.createHref(l)||"/",external:!1}}function bS(l){if(typeof l!="string")return!1;const s=l.charCodeAt(0);return s===47?l.charCodeAt(1)!==47:s===46}const qy=W.forwardRef((l,s)=>{const{_asChild:u,...o}=l,{type:r,...h}=dS(o,s),y=typeof o.children=="function"?o.children({isActive:h["data-status"]==="active"}):o.children;if(!u){const{disabled:d,...p}=h;return W.createElement("a",p,y)}return W.createElement(u,h,y)});function _S(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}class RS extends By{constructor(s){super(s),this.useMatch=u=>Pe({select:u?.select,from:this.id,structuralSharing:u?.structuralSharing}),this.useRouteContext=u=>Pe({...u,from:this.id,select:o=>u?.select?u.select(o.context):o.context}),this.useSearch=u=>Sr({select:u?.select,structuralSharing:u?.structuralSharing,from:this.id}),this.useParams=u=>gr({select:u?.select,structuralSharing:u?.structuralSharing,from:this.id}),this.useLoaderDeps=u=>vr({...u,from:this.id}),this.useLoaderData=u=>pr({...u,from:this.id}),this.useNavigate=()=>br({from:this.fullPath}),this.Link=Ei.forwardRef((u,o)=>et.jsx(qy,{ref:o,from:this.fullPath,...u})),this.$$typeof=Symbol.for("react.memo")}}function ES(l){return new RS(l)}class TS extends $0{constructor(s){super(s),this.useMatch=u=>Pe({select:u?.select,from:this.id,structuralSharing:u?.structuralSharing}),this.useRouteContext=u=>Pe({...u,from:this.id,select:o=>u?.select?u.select(o.context):o.context}),this.useSearch=u=>Sr({select:u?.select,structuralSharing:u?.structuralSharing,from:this.id}),this.useParams=u=>gr({select:u?.select,structuralSharing:u?.structuralSharing,from:this.id}),this.useLoaderDeps=u=>vr({...u,from:this.id}),this.useLoaderData=u=>pr({...u,from:this.id}),this.useNavigate=()=>br({from:this.fullPath}),this.Link=Ei.forwardRef((u,o)=>et.jsx(qy,{ref:o,from:this.fullPath,...u})),this.$$typeof=Symbol.for("react.memo")}}function XS(l){return new TS(l)}function ey(l){return typeof l=="object"?new ny(l,{silent:!0}).createRoute(l):new ny(l,{silent:!0}).createRoute}class ny{constructor(s,u){this.path=s,this.createRoute=o=>{this.silent;const r=ES(o);return r.isRoot=!1,r},this.silent=u?.silent}}class ay{constructor(s){this.useMatch=u=>Pe({select:u?.select,from:this.options.id,structuralSharing:u?.structuralSharing}),this.useRouteContext=u=>Pe({from:this.options.id,select:o=>u?.select?u.select(o.context):o.context}),this.useSearch=u=>Sr({select:u?.select,structuralSharing:u?.structuralSharing,from:this.options.id}),this.useParams=u=>gr({select:u?.select,structuralSharing:u?.structuralSharing,from:this.options.id}),this.useLoaderDeps=u=>vr({...u,from:this.options.id}),this.useLoaderData=u=>pr({...u,from:this.options.id}),this.useNavigate=()=>{const u=je();return br({from:u.routesById[this.options.id].fullPath})},this.options=s,this.$$typeof=Symbol.for("react.memo")}}function ly(l){return typeof l=="object"?new ay(l):s=>new ay({id:l,...s})}function OS(){const l=je(),s=W.useRef({router:l,mounted:!1}),[u,o]=W.useState(!1),{hasPendingMatches:r,isLoading:h}=He({select:b=>({isLoading:b.isLoading,hasPendingMatches:b.matches.some(S=>S.status==="pending")}),structuralSharing:!0}),y=Yo(h),d=h||u||r,p=Yo(d),v=h||r,g=Yo(v);return l.startTransition=b=>{o(!0),W.startTransition(()=>{b(),o(!1)})},W.useEffect(()=>{const b=l.history.subscribe(l.load),S=l.buildLocation({to:l.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return pn(l.latestLocation.publicHref)!==pn(S.publicHref)&&l.commitLocation({...S,replace:!0}),()=>{b()}},[l,l.history]),Fu(()=>{if(typeof window<"u"&&l.ssr||s.current.router===l&&s.current.mounted)return;s.current={router:l,mounted:!0},(async()=>{try{await l.load()}catch(S){console.error(S)}})()},[l]),Fu(()=>{y&&!h&&l.emit({type:"onLoad",...va(l.state)})},[y,l,h]),Fu(()=>{g&&!v&&l.emit({type:"onBeforeRouteMount",...va(l.state)})},[v,g,l]),Fu(()=>{if(p&&!d){const b=va(l.state);l.emit({type:"onResolved",...b}),l.__store.setState(S=>({...S,status:"idle",resolvedLocation:S.location})),b.hrefChanged&&z0(l)}},[d,p,l]),null}function MS(l){const s=He({select:u=>`not-found-${u.location.pathname}-${u.status}`});return et.jsx(mr,{getResetKey:()=>s,onCatch:(u,o)=>{if(Ee(u))l.onCatch?.(u,o);else throw u},errorComponent:({error:u})=>{if(Ee(u))return l.fallback?.(u);throw u},children:l.children})}function CS(){return et.jsx("p",{children:"Not Found"})}function rl(l){return et.jsx(et.Fragment,{children:l.children})}function Qy(l,s,u){return s.options.notFoundComponent?et.jsx(s.options.notFoundComponent,{...u}):l.options.defaultNotFoundComponent?et.jsx(l.options.defaultNotFoundComponent,{...u}):et.jsx(CS,{})}function AS(){return je().isScrollRestoring,null}const Gy=W.memo(function({matchId:s}){const u=je(),o=He({select:x=>{const w=x.matches.findIndex(Y=>Y.id===s),Q=x.matches[w];return vn(Q),{routeId:Q.routeId,ssr:Q.ssr,_displayPending:Q._displayPending,resetKey:x.loadedAt,parentRouteId:x.matches[w-1]?.routeId}},structuralSharing:!0}),r=u.routesById[o.routeId],h=r.options.pendingComponent??u.options.defaultPendingComponent,y=h?et.jsx(h,{}):null,d=r.options.errorComponent??u.options.defaultErrorComponent,p=r.options.onCatch??u.options.defaultOnCatch,v=r.isRoot?r.options.notFoundComponent??u.options.notFoundRoute?.options.component:r.options.notFoundComponent,g=o.ssr===!1||o.ssr==="data-only",b=(!r.isRoot||r.options.wrapInSuspense||g)&&(r.options.wrapInSuspense??h??(r.options.errorComponent?.preload||g))?W.Suspense:rl,S=d?mr:rl,R=v?MS:rl,A=r.isRoot?r.options.shellComponent??rl:rl;return et.jsxs(A,{children:[et.jsx(ds.Provider,{value:s,children:et.jsx(b,{fallback:y,children:et.jsx(S,{getResetKey:()=>o.resetKey,errorComponent:d||yr,onCatch:(x,w)=>{if(Ee(x))throw x;p?.(x,w)},children:et.jsx(R,{fallback:x=>{if(!v||x.routeId&&x.routeId!==o.routeId||!x.routeId&&!r.isRoot)throw x;return W.createElement(v,x)},children:g||o._displayPending?et.jsx(nS,{fallback:y,children:et.jsx(iy,{matchId:s})}):et.jsx(iy,{matchId:s})})})})}),o.parentRouteId===Ne&&u.options.scrollRestoration?et.jsxs(et.Fragment,{children:[et.jsx(zS,{}),et.jsx(AS,{})]}):null]})});function zS(){const l=je(),s=W.useRef(void 0);return et.jsx("script",{suppressHydrationWarning:!0,ref:u=>{u&&(s.current===void 0||s.current.href!==l.latestLocation.href)&&(l.emit({type:"onRendered",...va(l.state)}),s.current=l.latestLocation)}},l.latestLocation.state.__TSR_key)}const iy=W.memo(function({matchId:s}){const u=je(),{match:o,key:r,routeId:h}=He({select:p=>{const v=p.matches.find(A=>A.id===s),g=v.routeId,S=(u.routesById[g].options.remountDeps??u.options.defaultRemountDeps)?.({routeId:g,loaderDeps:v.loaderDeps,params:v._strictParams,search:v._strictSearch});return{key:S?JSON.stringify(S):void 0,routeId:g,match:{id:v.id,status:v.status,error:v.error,invalid:v.invalid,_forcePending:v._forcePending,_displayPending:v._displayPending}}},structuralSharing:!0}),y=u.routesById[h],d=W.useMemo(()=>{const p=y.options.component??u.options.defaultComponent;return p?et.jsx(p,{},r):et.jsx(xS,{})},[r,y.options.component,u.options.defaultComponent]);if(o._displayPending)throw u.getMatch(o.id)?._nonReactive.displayPendingPromise;if(o._forcePending)throw u.getMatch(o.id)?._nonReactive.minPendingPromise;if(o.status==="pending"){const p=y.options.pendingMinMs??u.options.defaultPendingMinMs;if(p){const v=u.getMatch(o.id);if(v&&!v._nonReactive.minPendingPromise){const g=yl();v._nonReactive.minPendingPromise=g,setTimeout(()=>{g.resolve(),v._nonReactive.minPendingPromise=void 0},p)}}throw u.getMatch(o.id)?._nonReactive.loadPromise}if(o.status==="notFound")return vn(Ee(o.error)),Qy(u,y,o.error);if(o.status==="redirected")throw vn(Be(o.error)),u.getMatch(o.id)?._nonReactive.loadPromise;if(o.status==="error")throw o.error;return d}),xS=W.memo(function(){const s=je(),u=W.useContext(ds),o=He({select:v=>v.matches.find(g=>g.id===u)?.routeId}),r=s.routesById[o],h=He({select:v=>{const b=v.matches.find(S=>S.id===u);return vn(b),b.globalNotFound}}),y=He({select:v=>{const g=v.matches,b=g.findIndex(S=>S.id===u);return g[b+1]?.id}}),d=s.options.defaultPendingComponent?et.jsx(s.options.defaultPendingComponent,{}):null;if(h)return Qy(s,r,void 0);if(!y)return null;const p=et.jsx(Gy,{matchId:y});return o===Ne?et.jsx(W.Suspense,{fallback:d,children:p}):p});function DS(){const l=je(),u=l.routesById[Ne].options.pendingComponent??l.options.defaultPendingComponent,o=u?et.jsx(u,{}):null,r=typeof document<"u"&&l.ssr?rl:W.Suspense,h=et.jsxs(r,{fallback:o,children:[et.jsx(OS,{}),et.jsx(US,{})]});return l.options.InnerWrap?et.jsx(l.options.InnerWrap,{children:h}):h}function US(){const l=je(),s=He({select:r=>r.matches[0]?.id}),u=He({select:r=>r.loadedAt}),o=s?et.jsx(Gy,{matchId:s}):null;return et.jsx(ds.Provider,{value:s,children:l.options.disableGlobalCatchBoundary?o:et.jsx(mr,{getResetKey:()=>u,errorComponent:yr,onCatch:r=>{r.message||r.toString()},children:o})})}const KS=l=>new LS(l);class LS extends X0{constructor(s){super(s)}}typeof globalThis<"u"?(globalThis.createFileRoute=ey,globalThis.createLazyFileRoute=ly):typeof window<"u"&&(window.createFileRoute=ey,window.createLazyFileRoute=ly);function wS({router:l,children:s,...u}){Object.keys(u).length>0&&l.update({...l.options,...u,context:{...l.options.context,...u.context}});const o=jy(),r=et.jsx(o.Provider,{value:l,children:s});return l.options.Wrap?et.jsx(l.options.Wrap,{children:r}):r}function ZS({router:l,...s}){return et.jsx(wS,{router:l,...s,children:et.jsx(DS,{})})}const NS="modulepreload",BS=function(l){return"/"+l},uy={},JS=function(s,u,o){let r=Promise.resolve();if(u&&u.length>0){let p=function(v){return Promise.all(v.map(g=>Promise.resolve(g).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const y=document.querySelector("meta[property=csp-nonce]"),d=y?.nonce||y?.getAttribute("nonce");r=p(u.map(v=>{if(v=BS(v),v in uy)return;uy[v]=!0;const g=v.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${v}"]${b}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":NS,g||(S.as="script"),S.crossOrigin="",S.href=v,d&&S.setAttribute("nonce",d),document.head.appendChild(S),g)return new Promise((R,A)=>{S.addEventListener("load",R),S.addEventListener("error",()=>A(new Error(`Unable to preload CSS for ${v}`)))})}))}function h(y){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=y,window.dispatchEvent(d),!d.defaultPrevented)throw y}return r.then(y=>{for(const d of y||[])d.status==="rejected"&&h(d.reason);return s().catch(h)})};export{xS as O,qS as Q,Ei as R,JS as _,Sy as a,YS as b,HS as c,VS as d,XS as e,ey as f,ug as g,B0 as h,br as i,et as j,KS as k,QS as l,ZS as m,jS as n,W as r,GS as u};