@ottocode/web-ui 0.1.228 → 0.1.231
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.
- package/dist/index.js +8 -8
- package/dist/web-assets/assets/{ccip-DHHtmdPc.js → ccip-B9INFTpd.js} +1 -1
- package/dist/web-assets/assets/framework-D1oGmMLS.js +9 -0
- package/dist/web-assets/assets/{icons-CbeCRR3U.js → icons-khclnxlW.js} +1 -1
- package/dist/web-assets/assets/{index-C4uL_Xp0.js → index-DPWXQdJ1.js} +129 -122
- package/dist/web-assets/assets/index-qUy2y5nu.css +1 -0
- package/dist/web-assets/assets/{markdown-SoEfzd-U.js → markdown-CrMWZKHp.js} +1 -1
- package/dist/web-assets/assets/{syntax-CVWjfjrj.js → syntax-Te76tk3I.js} +1 -1
- package/dist/web-assets/index.html +6 -6
- package/package.json +1 -1
- package/dist/web-assets/assets/framework-b6tAm-K5.js +0 -9
- package/dist/web-assets/assets/index-DceooZGE.css +0 -1
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var ib=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function yg(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}function ub(l){if(Object.prototype.hasOwnProperty.call(l,"__esModule"))return l;var i=l.default;if(typeof i=="function"){var s=function o(){var r=!1;try{r=this instanceof o}catch{}return r?Reflect.construct(i,arguments,this.constructor):i.apply(this,arguments)};s.prototype=i.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(l).forEach(function(o){var r=Object.getOwnPropertyDescriptor(l,o);Object.defineProperty(s,o,r.get?r:{enumerable:!0,get:function(){return l[o]}})}),s}var Do={exports:{}},mi={};var Em;function pg(){if(Em)return mi;Em=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.fragment");function s(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 m in r)m!=="key"&&(h[m]=r[m])}else h=r;return r=h.ref,{$$typeof:l,type:o,key:y,ref:r!==void 0?r:null,props:h}}return mi.Fragment=i,mi.jsx=s,mi.jsxs=s,mi}var Tm;function vg(){return Tm||(Tm=1,Do.exports=pg()),Do.exports}var at=vg(),Uo={exports:{}},st={};var Mm;function gg(){if(Mm)return st;Mm=1;var l=Symbol.for("react.transitional.element"),i=Symbol.for("react.portal"),s=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"),m=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),S=Symbol.for("react.activity"),g=Symbol.iterator;function _(M){return M===null||typeof M!="object"?null:(M=g&&M[g]||M["@@iterator"],typeof M=="function"?M:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},O=Object.assign,L={};function j(M,H,K){this.props=M,this.context=H,this.refs=L,this.updater=K||T}j.prototype.isReactComponent={},j.prototype.setState=function(M,H){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,H,"setState")},j.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function q(){}q.prototype=j.prototype;function G(M,H,K){this.props=M,this.context=H,this.refs=L,this.updater=K||T}var X=G.prototype=new q;X.constructor=G,O(X,j.prototype),X.isPureReactComponent=!0;var I=Array.isArray;function k(){}var Y={H:null,A:null,T:null,S:null},Q=Object.prototype.hasOwnProperty;function Z(M,H,K){var J=K.ref;return{$$typeof:l,type:M,key:H,ref:J!==void 0?J:null,props:K}}function ut(M,H){return Z(M.type,H,M.props)}function tt(M){return typeof M=="object"&&M!==null&&M.$$typeof===l}function W(M){var H={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(K){return H[K]})}var Rt=/\/+/g;function bt(M,H){return typeof M=="object"&&M!==null&&M.key!=null?W(""+M.key):H.toString(36)}function Yt(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(k,k):(M.status="pending",M.then(function(H){M.status==="pending"&&(M.status="fulfilled",M.value=H)},function(H){M.status==="pending"&&(M.status="rejected",M.reason=H)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function U(M,H,K,J,et){var rt=typeof M;(rt==="undefined"||rt==="boolean")&&(M=null);var pt=!1;if(M===null)pt=!0;else switch(rt){case"bigint":case"string":case"number":pt=!0;break;case"object":switch(M.$$typeof){case l:case i:pt=!0;break;case b:return pt=M._init,U(pt(M._payload),H,K,J,et)}}if(pt)return et=et(M),pt=J===""?"."+bt(M,0):J,I(et)?(K="",pt!=null&&(K=pt.replace(Rt,"$&/")+"/"),U(et,H,K,"",function(Fe){return Fe})):et!=null&&(tt(et)&&(et=ut(et,K+(et.key==null||M&&M.key===et.key?"":(""+et.key).replace(Rt,"$&/")+"/")+pt)),H.push(et)),1;pt=0;var Ht=J===""?".":J+":";if(I(M))for(var Dt=0;Dt<M.length;Dt++)J=M[Dt],rt=Ht+bt(J,Dt),pt+=U(J,H,K,rt,et);else if(Dt=_(M),typeof Dt=="function")for(M=Dt.call(M),Dt=0;!(J=M.next()).done;)J=J.value,rt=Ht+bt(J,Dt++),pt+=U(J,H,K,rt,et);else if(rt==="object"){if(typeof M.then=="function")return U(Yt(M),H,K,J,et);throw H=String(M),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.")}return pt}function V(M,H,K){if(M==null)return M;var J=[],et=0;return U(M,J,"","",function(rt){return H.call(K,rt,et++)}),J}function it(M){if(M._status===-1){var H=M._result;H=H(),H.then(function(K){(M._status===0||M._status===-1)&&(M._status=1,M._result=K)},function(K){(M._status===0||M._status===-1)&&(M._status=2,M._result=K)}),M._status===-1&&(M._status=0,M._result=H)}if(M._status===1)return M._result.default;throw M._result}var Et=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var H=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(H))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},_t={map:V,forEach:function(M,H,K){V(M,function(){H.apply(this,arguments)},K)},count:function(M){var H=0;return V(M,function(){H++}),H},toArray:function(M){return V(M,function(H){return H})||[]},only:function(M){if(!tt(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return st.Activity=S,st.Children=_t,st.Component=j,st.Fragment=s,st.Profiler=r,st.PureComponent=G,st.StrictMode=o,st.Suspense=v,st.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Y,st.__COMPILER_RUNTIME={__proto__:null,c:function(M){return Y.H.useMemoCache(M)}},st.cache=function(M){return function(){return M.apply(null,arguments)}},st.cacheSignal=function(){return null},st.cloneElement=function(M,H,K){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var J=O({},M.props),et=M.key;if(H!=null)for(rt in H.key!==void 0&&(et=""+H.key),H)!Q.call(H,rt)||rt==="key"||rt==="__self"||rt==="__source"||rt==="ref"&&H.ref===void 0||(J[rt]=H[rt]);var rt=arguments.length-2;if(rt===1)J.children=K;else if(1<rt){for(var pt=Array(rt),Ht=0;Ht<rt;Ht++)pt[Ht]=arguments[Ht+2];J.children=pt}return Z(M.type,et,J)},st.createContext=function(M){return M={$$typeof:y,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:h,_context:M},M},st.createElement=function(M,H,K){var J,et={},rt=null;if(H!=null)for(J in H.key!==void 0&&(rt=""+H.key),H)Q.call(H,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(et[J]=H[J]);var pt=arguments.length-2;if(pt===1)et.children=K;else if(1<pt){for(var Ht=Array(pt),Dt=0;Dt<pt;Dt++)Ht[Dt]=arguments[Dt+2];et.children=Ht}if(M&&M.defaultProps)for(J in pt=M.defaultProps,pt)et[J]===void 0&&(et[J]=pt[J]);return Z(M,rt,et)},st.createRef=function(){return{current:null}},st.forwardRef=function(M){return{$$typeof:m,render:M}},st.isValidElement=tt,st.lazy=function(M){return{$$typeof:b,_payload:{_status:-1,_result:M},_init:it}},st.memo=function(M,H){return{$$typeof:d,type:M,compare:H===void 0?null:H}},st.startTransition=function(M){var H=Y.T,K={};Y.T=K;try{var J=M(),et=Y.S;et!==null&&et(K,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(k,Et)}catch(rt){Et(rt)}finally{H!==null&&K.types!==null&&(H.types=K.types),Y.T=H}},st.unstable_useCacheRefresh=function(){return Y.H.useCacheRefresh()},st.use=function(M){return Y.H.use(M)},st.useActionState=function(M,H,K){return Y.H.useActionState(M,H,K)},st.useCallback=function(M,H){return Y.H.useCallback(M,H)},st.useContext=function(M){return Y.H.useContext(M)},st.useDebugValue=function(){},st.useDeferredValue=function(M,H){return Y.H.useDeferredValue(M,H)},st.useEffect=function(M,H){return Y.H.useEffect(M,H)},st.useEffectEvent=function(M){return Y.H.useEffectEvent(M)},st.useId=function(){return Y.H.useId()},st.useImperativeHandle=function(M,H,K){return Y.H.useImperativeHandle(M,H,K)},st.useInsertionEffect=function(M,H){return Y.H.useInsertionEffect(M,H)},st.useLayoutEffect=function(M,H){return Y.H.useLayoutEffect(M,H)},st.useMemo=function(M,H){return Y.H.useMemo(M,H)},st.useOptimistic=function(M,H){return Y.H.useOptimistic(M,H)},st.useReducer=function(M,H,K){return Y.H.useReducer(M,H,K)},st.useRef=function(M){return Y.H.useRef(M)},st.useState=function(M){return Y.H.useState(M)},st.useSyncExternalStore=function(M,H,K){return Y.H.useSyncExternalStore(M,H,K)},st.useTransition=function(){return Y.H.useTransition()},st.version="19.2.4",st}var Om;function Ci(){return Om||(Om=1,Uo.exports=gg()),Uo.exports}var F=Ci();const Ri=yg(F);var Lo={exports:{}},yi={},wo={exports:{}},No={};var Cm;function Sg(){return Cm||(Cm=1,(function(l){function i(U,V){var it=U.length;U.push(V);t:for(;0<it;){var Et=it-1>>>1,_t=U[Et];if(0<r(_t,V))U[Et]=V,U[it]=_t,it=Et;else break t}}function s(U){return U.length===0?null:U[0]}function o(U){if(U.length===0)return null;var V=U[0],it=U.pop();if(it!==V){U[0]=it;t:for(var Et=0,_t=U.length,M=_t>>>1;Et<M;){var H=2*(Et+1)-1,K=U[H],J=H+1,et=U[J];if(0>r(K,it))J<_t&&0>r(et,K)?(U[Et]=et,U[J]=it,Et=J):(U[Et]=K,U[H]=it,Et=H);else if(J<_t&&0>r(et,it))U[Et]=et,U[J]=it,Et=J;else break t}}return V}function r(U,V){var it=U.sortIndex-V.sortIndex;return it!==0?it:U.id-V.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,m=y.now();l.unstable_now=function(){return y.now()-m}}var v=[],d=[],b=1,S=null,g=3,_=!1,T=!1,O=!1,L=!1,j=typeof setTimeout=="function"?setTimeout:null,q=typeof clearTimeout=="function"?clearTimeout:null,G=typeof setImmediate<"u"?setImmediate:null;function X(U){for(var V=s(d);V!==null;){if(V.callback===null)o(d);else if(V.startTime<=U)o(d),V.sortIndex=V.expirationTime,i(v,V);else break;V=s(d)}}function I(U){if(O=!1,X(U),!T)if(s(v)!==null)T=!0,k||(k=!0,W());else{var V=s(d);V!==null&&Yt(I,V.startTime-U)}}var k=!1,Y=-1,Q=5,Z=-1;function ut(){return L?!0:!(l.unstable_now()-Z<Q)}function tt(){if(L=!1,k){var U=l.unstable_now();Z=U;var V=!0;try{t:{T=!1,O&&(O=!1,q(Y),Y=-1),_=!0;var it=g;try{e:{for(X(U),S=s(v);S!==null&&!(S.expirationTime>U&&ut());){var Et=S.callback;if(typeof Et=="function"){S.callback=null,g=S.priorityLevel;var _t=Et(S.expirationTime<=U);if(U=l.unstable_now(),typeof _t=="function"){S.callback=_t,X(U),V=!0;break e}S===s(v)&&o(v),X(U)}else o(v);S=s(v)}if(S!==null)V=!0;else{var M=s(d);M!==null&&Yt(I,M.startTime-U),V=!1}}break t}finally{S=null,g=it,_=!1}V=void 0}}finally{V?W():k=!1}}}var W;if(typeof G=="function")W=function(){G(tt)};else if(typeof MessageChannel<"u"){var Rt=new MessageChannel,bt=Rt.port2;Rt.port1.onmessage=tt,W=function(){bt.postMessage(null)}}else W=function(){j(tt,0)};function Yt(U,V){Y=j(function(){U(l.unstable_now())},V)}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"):Q=0<U?Math.floor(1e3/U):5},l.unstable_getCurrentPriorityLevel=function(){return g},l.unstable_next=function(U){switch(g){case 1:case 2:case 3:var V=3;break;default:V=g}var it=g;g=V;try{return U()}finally{g=it}},l.unstable_requestPaint=function(){L=!0},l.unstable_runWithPriority=function(U,V){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var it=g;g=U;try{return V()}finally{g=it}},l.unstable_scheduleCallback=function(U,V,it){var Et=l.unstable_now();switch(typeof it=="object"&&it!==null?(it=it.delay,it=typeof it=="number"&&0<it?Et+it:Et):it=Et,U){case 1:var _t=-1;break;case 2:_t=250;break;case 5:_t=1073741823;break;case 4:_t=1e4;break;default:_t=5e3}return _t=it+_t,U={id:b++,callback:V,priorityLevel:U,startTime:it,expirationTime:_t,sortIndex:-1},it>Et?(U.sortIndex=it,i(d,U),s(v)===null&&U===s(d)&&(O?(q(Y),Y=-1):O=!0,Yt(I,it-Et))):(U.sortIndex=_t,i(v,U),T||_||(T=!0,k||(k=!0,W()))),U},l.unstable_shouldYield=ut,l.unstable_wrapCallback=function(U){var V=g;return function(){var it=g;g=V;try{return U.apply(this,arguments)}finally{g=it}}}})(No)),No}var Am;function bg(){return Am||(Am=1,wo.exports=Sg()),wo.exports}var Bo={exports:{}},ae={};var xm;function _g(){if(xm)return ae;xm=1;var l=Ci();function i(v){var d="https://react.dev/errors/"+v;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var b=2;b<arguments.length;b++)d+="&args[]="+encodeURIComponent(arguments[b])}return"Minified React error #"+v+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(){}var o={d:{f:s,r:function(){throw Error(i(522))},D:s,C:s,L:s,m:s,X:s,S:s,M:s},p:0,findDOMNode:null},r=Symbol.for("react.portal");function h(v,d,b){var S=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:r,key:S==null?null:""+S,children:v,containerInfo:d,implementation:b}}var y=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(v,d){if(v==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return ae.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,ae.createPortal=function(v,d){var b=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(i(299));return h(v,d,null,b)},ae.flushSync=function(v){var d=y.T,b=o.p;try{if(y.T=null,o.p=2,v)return v()}finally{y.T=d,o.p=b,o.d.f()}},ae.preconnect=function(v,d){typeof v=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,o.d.C(v,d))},ae.prefetchDNS=function(v){typeof v=="string"&&o.d.D(v)},ae.preinit=function(v,d){if(typeof v=="string"&&d&&typeof d.as=="string"){var b=d.as,S=m(b,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,_=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;b==="style"?o.d.S(v,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:S,integrity:g,fetchPriority:_}):b==="script"&&o.d.X(v,{crossOrigin:S,integrity:g,fetchPriority:_,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},ae.preinitModule=function(v,d){if(typeof v=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var b=m(d.as,d.crossOrigin);o.d.M(v,{crossOrigin:b,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&o.d.M(v)},ae.preload=function(v,d){if(typeof v=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var b=d.as,S=m(b,d.crossOrigin);o.d.L(v,b,{crossOrigin:S,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},ae.preloadModule=function(v,d){if(typeof v=="string")if(d){var b=m(d.as,d.crossOrigin);o.d.m(v,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:b,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else o.d.m(v)},ae.requestFormReset=function(v){o.d.r(v)},ae.unstable_batchedUpdates=function(v,d){return v(d)},ae.useFormState=function(v,d,b){return y.H.useFormState(v,d,b)},ae.useFormStatus=function(){return y.H.useHostTransitionStatus()},ae.version="19.2.4",ae}var zm;function yy(){if(zm)return Bo.exports;zm=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(i){console.error(i)}}return l(),Bo.exports=_g(),Bo.exports}var Dm;function Rg(){if(Dm)return yi;Dm=1;var l=bg(),i=Ci(),s=yy();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 m(t){if(t.tag===31){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function v(t){if(h(t)!==t)throw Error(o(188))}function d(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 u=n.return;if(u===null)break;var c=u.alternate;if(c===null){if(a=u.return,a!==null){n=a;continue}break}if(u.child===c.child){for(c=u.child;c;){if(c===n)return v(u),t;if(c===a)return v(u),e;c=c.sibling}throw Error(o(188))}if(n.return!==a.return)n=u,a=c;else{for(var f=!1,p=u.child;p;){if(p===n){f=!0,n=u,a=c;break}if(p===a){f=!0,a=u,n=c;break}p=p.sibling}if(!f){for(p=c.child;p;){if(p===n){f=!0,n=c,a=u;break}if(p===a){f=!0,a=c,n=u;break}p=p.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 b(t){var e=t.tag;if(e===5||e===26||e===27||e===6)return t;for(t=t.child;t!==null;){if(e=b(t),e!==null)return e;t=t.sibling}return null}var S=Object.assign,g=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),L=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),G=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),Q=Symbol.for("react.lazy"),Z=Symbol.for("react.activity"),ut=Symbol.for("react.memo_cache_sentinel"),tt=Symbol.iterator;function W(t){return t===null||typeof t!="object"?null:(t=tt&&t[tt]||t["@@iterator"],typeof t=="function"?t:null)}var Rt=Symbol.for("react.client.reference");function bt(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===Rt?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case O:return"Fragment";case j:return"Profiler";case L:return"StrictMode";case I:return"Suspense";case k:return"SuspenseList";case Z:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case T:return"Portal";case G:return t.displayName||"Context";case q:return(t._context.displayName||"Context")+".Consumer";case X:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Y:return e=t.displayName||null,e!==null?e:bt(t.type)||"Memo";case Q:e=t._payload,t=t._init;try{return bt(t(e))}catch{}}return null}var Yt=Array.isArray,U=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=s.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,it={pending:!1,data:null,method:null,action:null},Et=[],_t=-1;function M(t){return{current:t}}function H(t){0>_t||(t.current=Et[_t],Et[_t]=null,_t--)}function K(t,e){_t++,Et[_t]=t.current,t.current=e}var J=M(null),et=M(null),rt=M(null),pt=M(null);function Ht(t,e){switch(K(rt,e),K(et,t),K(J,null),e.nodeType){case 9:case 11:t=(t=e.documentElement)&&(t=t.namespaceURI)?Zd(t):0;break;default:if(t=e.tagName,e=e.namespaceURI)e=Zd(e),t=Jd(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}H(J),K(J,t)}function Dt(){H(J),H(et),H(rt)}function Fe(t){t.memoizedState!==null&&K(pt,t);var e=J.current,n=Jd(e,t.type);e!==n&&(K(et,t),K(J,n))}function We(t){et.current===t&&(H(J),H(et)),pt.current===t&&(H(pt),ri._currentValue=it)}var Sn,Sl;function Ve(t){if(Sn===void 0)try{throw Error()}catch(n){var e=n.stack.trim().match(/\n( *(at )?)/);Sn=e&&e[1]||"",Sl=-1<n.stack.indexOf(`
|
|
2
|
-
at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
3
|
-
`+Sn+t+Sl}var bl=!1;function xa(t,e){if(!t||bl)return"";bl=!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 u=Object.getOwnPropertyDescriptor(a.DetermineComponentFrameRoot,"name");u&&u.configurable&&Object.defineProperty(a.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var c=a.DetermineComponentFrameRoot(),f=c[0],p=c[1];if(f&&p){var R=f.split(`
|
|
4
|
-
`),x=p.split(`
|
|
5
|
-
`);for(u=a=0;a<R.length&&!R[a].includes("DetermineComponentFrameRoot");)a++;for(;u<x.length&&!x[u].includes("DetermineComponentFrameRoot");)u++;if(a===R.length||u===x.length)for(a=R.length-1,u=x.length-1;1<=a&&0<=u&&R[a]!==x[u];)u--;for(;1<=a&&0<=u;a--,u--)if(R[a]!==x[u]){if(a!==1||u!==1)do if(a--,u--,0>u||R[a]!==x[u]){var w=`
|
|
6
|
-
`+R[a].replace(" at new "," at ");return t.displayName&&w.includes("<anonymous>")&&(w=w.replace("<anonymous>",t.displayName)),w}while(1<=a&&0<=u);break}}}finally{bl=!1,Error.prepareStackTrace=n}return(n=t?t.displayName||t.name:"")?Ve(n):""}function Ai(t,e){switch(t.tag){case 26:case 27:case 5:return Ve(t.type);case 16:return Ve("Lazy");case 13:return t.child!==e&&e!==null?Ve("Suspense Fallback"):Ve("Suspense");case 19:return Ve("SuspenseList");case 0:case 15:return xa(t.type,!1);case 11:return xa(t.type.render,!1);case 1:return xa(t.type,!0);case 31:return Ve("Activity");default:return""}}function $e(t){try{var e="",n=null;do e+=Ai(t,n),n=t,t=t.return;while(t);return e}catch(a){return`
|
|
7
|
-
Error generating stack: `+a.message+`
|
|
8
|
-
`+a.stack}}var In=Object.prototype.hasOwnProperty,Qe=l.unstable_scheduleCallback,_l=l.unstable_cancelCallback,vs=l.unstable_shouldYield,xi=l.unstable_requestPaint,le=l.unstable_now,zi=l.unstable_getCurrentPriorityLevel,xt=l.unstable_ImmediatePriority,Gt=l.unstable_UserBlockingPriority,ne=l.unstable_NormalPriority,Di=l.unstable_LowPriority,Mr=l.unstable_IdlePriority,Wy=l.log,$y=l.unstable_setDisableYieldValue,Rl=null,ye=null;function bn(t){if(typeof Wy=="function"&&$y(t),ye&&typeof ye.setStrictMode=="function")try{ye.setStrictMode(Rl,t)}catch{}}var pe=Math.clz32?Math.clz32:ep,Iy=Math.log,tp=Math.LN2;function ep(t){return t>>>=0,t===0?32:31-(Iy(t)/tp|0)|0}var Ui=256,Li=262144,wi=4194304;function ta(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 Ni(t,e,n){var a=t.pendingLanes;if(a===0)return 0;var u=0,c=t.suspendedLanes,f=t.pingedLanes;t=t.warmLanes;var p=a&134217727;return p!==0?(a=p&~c,a!==0?u=ta(a):(f&=p,f!==0?u=ta(f):n||(n=p&~t,n!==0&&(u=ta(n))))):(p=a&~c,p!==0?u=ta(p):f!==0?u=ta(f):n||(n=a&~t,n!==0&&(u=ta(n)))),u===0?0:e!==0&&e!==u&&(e&c)===0&&(c=u&-u,n=e&-e,c>=n||c===32&&(n&4194048)!==0)?e:u}function El(t,e){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&e)===0}function np(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 Or(){var t=wi;return wi<<=1,(wi&62914560)===0&&(wi=4194304),t}function gs(t){for(var e=[],n=0;31>n;n++)e.push(t);return e}function Tl(t,e){t.pendingLanes|=e,e!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function ap(t,e,n,a,u,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 p=t.entanglements,R=t.expirationTimes,x=t.hiddenUpdates;for(n=f&~n;0<n;){var w=31-pe(n),B=1<<w;p[w]=0,R[w]=-1;var z=x[w];if(z!==null)for(x[w]=null,w=0;w<z.length;w++){var D=z[w];D!==null&&(D.lane&=-536870913)}n&=~B}a!==0&&Cr(t,a,0),c!==0&&u===0&&t.tag!==0&&(t.suspendedLanes|=c&~(f&~e))}function Cr(t,e,n){t.pendingLanes|=e,t.suspendedLanes&=~e;var a=31-pe(e);t.entangledLanes|=e,t.entanglements[a]=t.entanglements[a]|1073741824|n&261930}function Ar(t,e){var n=t.entangledLanes|=e;for(t=t.entanglements;n;){var a=31-pe(n),u=1<<a;u&e|t[a]&e&&(t[a]|=e),n&=~u}}function xr(t,e){var n=e&-e;return n=(n&42)!==0?1:Ss(n),(n&(t.suspendedLanes|e))!==0?0:n}function Ss(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 bs(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function zr(){var t=V.p;return t!==0?t:(t=window.event,t===void 0?32:pm(t.type))}function Dr(t,e){var n=V.p;try{return V.p=t,e()}finally{V.p=n}}var _n=Math.random().toString(36).slice(2),Wt="__reactFiber$"+_n,se="__reactProps$"+_n,za="__reactContainer$"+_n,_s="__reactEvents$"+_n,lp="__reactListeners$"+_n,ip="__reactHandles$"+_n,Ur="__reactResources$"+_n,Ml="__reactMarker$"+_n;function Rs(t){delete t[Wt],delete t[se],delete t[_s],delete t[lp],delete t[ip]}function Da(t){var e=t[Wt];if(e)return e;for(var n=t.parentNode;n;){if(e=n[za]||n[Wt]){if(n=e.alternate,e.child!==null||n!==null&&n.child!==null)for(t=tm(t);t!==null;){if(n=t[Wt])return n;t=tm(t)}return e}t=n,n=t.parentNode}return null}function Ua(t){if(t=t[Wt]||t[za]){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 La(t){var e=t[Ur];return e||(e=t[Ur]={hoistableStyles:new Map,hoistableScripts:new Map}),e}function kt(t){t[Ml]=!0}var Lr=new Set,wr={};function ea(t,e){wa(t,e),wa(t+"Capture",e)}function wa(t,e){for(wr[t]=e,t=0;t<e.length;t++)Lr.add(e[t])}var up=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]*$"),Nr={},Br={};function sp(t){return In.call(Br,t)?!0:In.call(Nr,t)?!1:up.test(t)?Br[t]=!0:(Nr[t]=!0,!1)}function Bi(t,e,n){if(sp(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 ji(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 Ie(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 Oe(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function jr(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function cp(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 u=a.get,c=a.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return u.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 Es(t){if(!t._valueTracker){var e=jr(t)?"checked":"value";t._valueTracker=cp(t,e,""+t[e])}}function Hr(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),a="";return t&&(a=jr(t)?t.checked?"true":"false":t.value),t=a,t!==n?(e.setValue(t),!0):!1}function Hi(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 op=/[\n"\\]/g;function Ce(t){return t.replace(op,function(e){return"\\"+e.charCodeAt(0).toString(16)+" "})}function Ts(t,e,n,a,u,c,f,p){t.name="",f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"?t.type=f:t.removeAttribute("type"),e!=null?f==="number"?(e===0&&t.value===""||t.value!=e)&&(t.value=""+Oe(e)):t.value!==""+Oe(e)&&(t.value=""+Oe(e)):f!=="submit"&&f!=="reset"||t.removeAttribute("value"),e!=null?Ms(t,f,Oe(e)):n!=null?Ms(t,f,Oe(n)):a!=null&&t.removeAttribute("value"),u==null&&c!=null&&(t.defaultChecked=!!c),u!=null&&(t.checked=u&&typeof u!="function"&&typeof u!="symbol"),p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"?t.name=""+Oe(p):t.removeAttribute("name")}function qr(t,e,n,a,u,c,f,p){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)){Es(t);return}n=n!=null?""+Oe(n):"",e=e!=null?""+Oe(e):n,p||e===t.value||(t.value=e),t.defaultValue=e}a=a??u,a=typeof a!="function"&&typeof a!="symbol"&&!!a,t.checked=p?t.checked:!!a,t.defaultChecked=!!a,f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(t.name=f),Es(t)}function Ms(t,e,n){e==="number"&&Hi(t.ownerDocument)===t||t.defaultValue===""+n||(t.defaultValue=""+n)}function Na(t,e,n,a){if(t=t.options,e){e={};for(var u=0;u<n.length;u++)e["$"+n[u]]=!0;for(n=0;n<t.length;n++)u=e.hasOwnProperty("$"+t[n].value),t[n].selected!==u&&(t[n].selected=u),u&&a&&(t[n].defaultSelected=!0)}else{for(n=""+Oe(n),e=null,u=0;u<t.length;u++){if(t[u].value===n){t[u].selected=!0,a&&(t[u].defaultSelected=!0);return}e!==null||t[u].disabled||(e=t[u])}e!==null&&(e.selected=!0)}}function Qr(t,e,n){if(e!=null&&(e=""+Oe(e),e!==t.value&&(t.value=e),n==null)){t.defaultValue!==e&&(t.defaultValue=e);return}t.defaultValue=n!=null?""+Oe(n):""}function Yr(t,e,n,a){if(e==null){if(a!=null){if(n!=null)throw Error(o(92));if(Yt(a)){if(1<a.length)throw Error(o(93));a=a[0]}n=a}n==null&&(n=""),e=n}n=Oe(e),t.defaultValue=n,a=t.textContent,a===n&&a!==""&&a!==null&&(t.value=a),Es(t)}function Ba(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&n.nodeType===3){n.nodeValue=e;return}}t.textContent=e}var rp=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 Gr(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||rp.has(e)?e==="float"?t.cssFloat=n:t[e]=(""+n).trim():t[e]=n+"px"}function Xr(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 u in e)a=e[u],e.hasOwnProperty(u)&&n[u]!==a&&Gr(t,u,a)}else for(var c in e)e.hasOwnProperty(c)&&Gr(t,c,e[c])}function Os(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 fp=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"]]),hp=/^[\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 qi(t){return hp.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function tn(){}var Cs=null;function As(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ja=null,Ha=null;function Vr(t){var e=Ua(t);if(e&&(t=e.stateNode)){var n=t[se]||null;t:switch(t=e.stateNode,e.type){case"input":if(Ts(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="'+Ce(""+e)+'"][type="radio"]'),e=0;e<n.length;e++){var a=n[e];if(a!==t&&a.form===t.form){var u=a[se]||null;if(!u)throw Error(o(90));Ts(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name)}}for(e=0;e<n.length;e++)a=n[e],a.form===t.form&&Hr(a)}break t;case"textarea":Qr(t,n.value,n.defaultValue);break t;case"select":e=n.value,e!=null&&Na(t,!!n.multiple,e,!1)}}}var xs=!1;function Kr(t,e,n){if(xs)return t(e,n);xs=!0;try{var a=t(e);return a}finally{if(xs=!1,(ja!==null||Ha!==null)&&(Ou(),ja&&(e=ja,t=Ha,Ha=ja=null,Vr(e),t)))for(e=0;e<t.length;e++)Vr(t[e])}}function Cl(t,e){var n=t.stateNode;if(n===null)return null;var a=n[se]||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 en=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zs=!1;if(en)try{var Al={};Object.defineProperty(Al,"passive",{get:function(){zs=!0}}),window.addEventListener("test",Al,Al),window.removeEventListener("test",Al,Al)}catch{zs=!1}var Rn=null,Ds=null,Qi=null;function Zr(){if(Qi)return Qi;var t,e=Ds,n=e.length,a,u="value"in Rn?Rn.value:Rn.textContent,c=u.length;for(t=0;t<n&&e[t]===u[t];t++);var f=n-t;for(a=1;a<=f&&e[n-a]===u[c-a];a++);return Qi=u.slice(t,1<a?1-a:void 0)}function Yi(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 Gi(){return!0}function Jr(){return!1}function ce(t){function e(n,a,u,c,f){this._reactName=n,this._targetInst=u,this.type=a,this.nativeEvent=c,this.target=f,this.currentTarget=null;for(var p in t)t.hasOwnProperty(p)&&(n=t[p],this[p]=n?n(c):c[p]);return this.isDefaultPrevented=(c.defaultPrevented!=null?c.defaultPrevented:c.returnValue===!1)?Gi:Jr,this.isPropagationStopped=Jr,this}return S(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=Gi)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Gi)},persist:function(){},isPersistent:Gi}),e}var na={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Xi=ce(na),xl=S({},na,{view:0,detail:0}),dp=ce(xl),Us,Ls,zl,Vi=S({},xl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ns,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"?(Us=t.screenX-zl.screenX,Ls=t.screenY-zl.screenY):Ls=Us=0,zl=t),Us)},movementY:function(t){return"movementY"in t?t.movementY:Ls}}),Pr=ce(Vi),mp=S({},Vi,{dataTransfer:0}),yp=ce(mp),pp=S({},xl,{relatedTarget:0}),ws=ce(pp),vp=S({},na,{animationName:0,elapsedTime:0,pseudoElement:0}),gp=ce(vp),Sp=S({},na,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),bp=ce(Sp),_p=S({},na,{data:0}),kr=ce(_p),Rp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ep={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"},Tp={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mp(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Tp[t])?!!e[t]:!1}function Ns(){return Mp}var Op=S({},xl,{key:function(t){if(t.key){var e=Rp[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Yi(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Ep[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ns,charCode:function(t){return t.type==="keypress"?Yi(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Yi(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Cp=ce(Op),Ap=S({},Vi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fr=ce(Ap),xp=S({},xl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ns}),zp=ce(xp),Dp=S({},na,{propertyName:0,elapsedTime:0,pseudoElement:0}),Up=ce(Dp),Lp=S({},Vi,{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}),wp=ce(Lp),Np=S({},na,{newState:0,oldState:0}),Bp=ce(Np),jp=[9,13,27,32],Bs=en&&"CompositionEvent"in window,Dl=null;en&&"documentMode"in document&&(Dl=document.documentMode);var Hp=en&&"TextEvent"in window&&!Dl,Wr=en&&(!Bs||Dl&&8<Dl&&11>=Dl),$r=" ",Ir=!1;function tf(t,e){switch(t){case"keyup":return jp.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function ef(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var qa=!1;function qp(t,e){switch(t){case"compositionend":return ef(e);case"keypress":return e.which!==32?null:(Ir=!0,$r);case"textInput":return t=e.data,t===$r&&Ir?null:t;default:return null}}function Qp(t,e){if(qa)return t==="compositionend"||!Bs&&tf(t,e)?(t=Zr(),Qi=Ds=Rn=null,qa=!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 Wr&&e.locale!=="ko"?null:e.data;default:return null}}var Yp={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 nf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Yp[t.type]:e==="textarea"}function af(t,e,n,a){ja?Ha?Ha.push(a):Ha=[a]:ja=a,e=Lu(e,"onChange"),0<e.length&&(n=new Xi("onChange","change",null,n,a),t.push({event:n,listeners:e}))}var Ul=null,Ll=null;function Gp(t){Qd(t,0)}function Ki(t){var e=Ol(t);if(Hr(e))return t}function lf(t,e){if(t==="change")return e}var uf=!1;if(en){var js;if(en){var Hs="oninput"in document;if(!Hs){var sf=document.createElement("div");sf.setAttribute("oninput","return;"),Hs=typeof sf.oninput=="function"}js=Hs}else js=!1;uf=js&&(!document.documentMode||9<document.documentMode)}function cf(){Ul&&(Ul.detachEvent("onpropertychange",of),Ll=Ul=null)}function of(t){if(t.propertyName==="value"&&Ki(Ll)){var e=[];af(e,Ll,t,As(t)),Kr(Gp,e)}}function Xp(t,e,n){t==="focusin"?(cf(),Ul=e,Ll=n,Ul.attachEvent("onpropertychange",of)):t==="focusout"&&cf()}function Vp(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ki(Ll)}function Kp(t,e){if(t==="click")return Ki(e)}function Zp(t,e){if(t==="input"||t==="change")return Ki(e)}function Jp(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var ve=typeof Object.is=="function"?Object.is:Jp;function wl(t,e){if(ve(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 u=n[a];if(!In.call(e,u)||!ve(t[u],e[u]))return!1}return!0}function rf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function ff(t,e){var n=rf(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=rf(n)}}function hf(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?hf(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function df(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var e=Hi(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=Hi(t.document)}return e}function qs(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 Pp=en&&"documentMode"in document&&11>=document.documentMode,Qa=null,Qs=null,Nl=null,Ys=!1;function mf(t,e,n){var a=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Ys||Qa==null||Qa!==Hi(a)||(a=Qa,"selectionStart"in a&&qs(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}),Nl&&wl(Nl,a)||(Nl=a,a=Lu(Qs,"onSelect"),0<a.length&&(e=new Xi("onSelect","select",null,e,n),t.push({event:e,listeners:a}),e.target=Qa)))}function aa(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var Ya={animationend:aa("Animation","AnimationEnd"),animationiteration:aa("Animation","AnimationIteration"),animationstart:aa("Animation","AnimationStart"),transitionrun:aa("Transition","TransitionRun"),transitionstart:aa("Transition","TransitionStart"),transitioncancel:aa("Transition","TransitionCancel"),transitionend:aa("Transition","TransitionEnd")},Gs={},yf={};en&&(yf=document.createElement("div").style,"AnimationEvent"in window||(delete Ya.animationend.animation,delete Ya.animationiteration.animation,delete Ya.animationstart.animation),"TransitionEvent"in window||delete Ya.transitionend.transition);function la(t){if(Gs[t])return Gs[t];if(!Ya[t])return t;var e=Ya[t],n;for(n in e)if(e.hasOwnProperty(n)&&n in yf)return Gs[t]=e[n];return t}var pf=la("animationend"),vf=la("animationiteration"),gf=la("animationstart"),kp=la("transitionrun"),Fp=la("transitionstart"),Wp=la("transitioncancel"),Sf=la("transitionend"),bf=new Map,Xs="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(" ");Xs.push("scrollEnd");function Ye(t,e){bf.set(t,e),ea(e,[t])}var Zi=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)},Ae=[],Ga=0,Vs=0;function Ji(){for(var t=Ga,e=Vs=Ga=0;e<t;){var n=Ae[e];Ae[e++]=null;var a=Ae[e];Ae[e++]=null;var u=Ae[e];Ae[e++]=null;var c=Ae[e];if(Ae[e++]=null,a!==null&&u!==null){var f=a.pending;f===null?u.next=u:(u.next=f.next,f.next=u),a.pending=u}c!==0&&_f(n,u,c)}}function Pi(t,e,n,a){Ae[Ga++]=t,Ae[Ga++]=e,Ae[Ga++]=n,Ae[Ga++]=a,Vs|=a,t.lanes|=a,t=t.alternate,t!==null&&(t.lanes|=a)}function Ks(t,e,n,a){return Pi(t,e,n,a),ki(t)}function ia(t,e){return Pi(t,null,null,e),ki(t)}function _f(t,e,n){t.lanes|=n;var a=t.alternate;a!==null&&(a.lanes|=n);for(var u=!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||(u=!0)),t=c,c=c.return;return t.tag===3?(c=t.stateNode,u&&e!==null&&(u=31-pe(n),t=c.hiddenUpdates,a=t[u],a===null?t[u]=[e]:a.push(e),e.lane=n|536870912),c):null}function ki(t){if(50<ai)throw ai=0,to=null,Error(o(185));for(var e=t.return;e!==null;)t=e,e=t.return;return t.tag===3?t.stateNode:null}var Xa={};function $p(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 ge(t,e,n,a){return new $p(t,e,n,a)}function Zs(t){return t=t.prototype,!(!t||!t.isReactComponent)}function nn(t,e){var n=t.alternate;return n===null?(n=ge(t.tag,e,t.key,t.mode),n.elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.type=t.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=t.flags&65011712,n.childLanes=t.childLanes,n.lanes=t.lanes,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,e=t.dependencies,n.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n.refCleanup=t.refCleanup,n}function Rf(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 Fi(t,e,n,a,u,c){var f=0;if(a=t,typeof t=="function")Zs(t)&&(f=1);else if(typeof t=="string")f=ag(t,n,J.current)?26:t==="html"||t==="head"||t==="body"?27:5;else t:switch(t){case Z:return t=ge(31,n,e,u),t.elementType=Z,t.lanes=c,t;case O:return ua(n.children,u,c,e);case L:f=8,u|=24;break;case j:return t=ge(12,n,e,u|2),t.elementType=j,t.lanes=c,t;case I:return t=ge(13,n,e,u),t.elementType=I,t.lanes=c,t;case k:return t=ge(19,n,e,u),t.elementType=k,t.lanes=c,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case G:f=10;break t;case q:f=9;break t;case X:f=11;break t;case Y:f=14;break t;case Q:f=16,a=null;break t}f=29,n=Error(o(130,t===null?"null":typeof t,"")),a=null}return e=ge(f,n,e,u),e.elementType=t,e.type=a,e.lanes=c,e}function ua(t,e,n,a){return t=ge(7,t,a,e),t.lanes=n,t}function Js(t,e,n){return t=ge(6,t,null,e),t.lanes=n,t}function Ef(t){var e=ge(18,null,null,0);return e.stateNode=t,e}function Ps(t,e,n){return e=ge(4,t.children!==null?t.children:[],t.key,e),e.lanes=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}var Tf=new WeakMap;function xe(t,e){if(typeof t=="object"&&t!==null){var n=Tf.get(t);return n!==void 0?n:(e={value:t,source:e,stack:$e(e)},Tf.set(t,e),e)}return{value:t,source:e,stack:$e(e)}}var Va=[],Ka=0,Wi=null,Bl=0,ze=[],De=0,En=null,Ke=1,Ze="";function an(t,e){Va[Ka++]=Bl,Va[Ka++]=Wi,Wi=t,Bl=e}function Mf(t,e,n){ze[De++]=Ke,ze[De++]=Ze,ze[De++]=En,En=t;var a=Ke;t=Ze;var u=32-pe(a)-1;a&=~(1<<u),n+=1;var c=32-pe(e)+u;if(30<c){var f=u-u%5;c=(a&(1<<f)-1).toString(32),a>>=f,u-=f,Ke=1<<32-pe(e)+u|n<<u|a,Ze=c+t}else Ke=1<<c|n<<u|a,Ze=t}function ks(t){t.return!==null&&(an(t,1),Mf(t,1,0))}function Fs(t){for(;t===Wi;)Wi=Va[--Ka],Va[Ka]=null,Bl=Va[--Ka],Va[Ka]=null;for(;t===En;)En=ze[--De],ze[De]=null,Ze=ze[--De],ze[De]=null,Ke=ze[--De],ze[De]=null}function Of(t,e){ze[De++]=Ke,ze[De++]=Ze,ze[De++]=En,Ke=e.id,Ze=e.overflow,En=t}var $t=null,Ut=null,yt=!1,Tn=null,Ue=!1,Ws=Error(o(519));function Mn(t){var e=Error(o(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw jl(xe(e,t)),Ws}function Cf(t){var e=t.stateNode,n=t.type,a=t.memoizedProps;switch(e[Wt]=t,e[se]=a,n){case"dialog":ht("cancel",e),ht("close",e);break;case"iframe":case"object":case"embed":ht("load",e);break;case"video":case"audio":for(n=0;n<ii.length;n++)ht(ii[n],e);break;case"source":ht("error",e);break;case"img":case"image":case"link":ht("error",e),ht("load",e);break;case"details":ht("toggle",e);break;case"input":ht("invalid",e),qr(e,a.value,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name,!0);break;case"select":ht("invalid",e);break;case"textarea":ht("invalid",e),Yr(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||Vd(e.textContent,n)?(a.popover!=null&&(ht("beforetoggle",e),ht("toggle",e)),a.onScroll!=null&&ht("scroll",e),a.onScrollEnd!=null&&ht("scrollend",e),a.onClick!=null&&(e.onclick=tn),e=!0):e=!1,e||Mn(t,!0)}function Af(t){for($t=t.return;$t;)switch($t.tag){case 5:case 31:case 13:Ue=!1;return;case 27:case 3:Ue=!0;return;default:$t=$t.return}}function Za(t){if(t!==$t)return!1;if(!yt)return Af(t),yt=!0,!1;var e=t.tag,n;if((n=e!==3&&e!==27)&&((n=e===5)&&(n=t.type,n=!(n!=="form"&&n!=="button")||po(t.type,t.memoizedProps)),n=!n),n&&Ut&&Mn(t),Af(t),e===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=Id(t)}else if(e===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(o(317));Ut=Id(t)}else e===27?(e=Ut,qn(t.type)?(t=_o,_o=null,Ut=t):Ut=e):Ut=$t?we(t.stateNode.nextSibling):null;return!0}function sa(){Ut=$t=null,yt=!1}function $s(){var t=Tn;return t!==null&&(he===null?he=t:he.push.apply(he,t),Tn=null),t}function jl(t){Tn===null?Tn=[t]:Tn.push(t)}var Is=M(null),ca=null,ln=null;function On(t,e,n){K(Is,e._currentValue),e._currentValue=n}function un(t){t._currentValue=Is.current,H(Is)}function tc(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 ec(t,e,n,a){var u=t.child;for(u!==null&&(u.return=t);u!==null;){var c=u.dependencies;if(c!==null){var f=u.child;c=c.firstContext;t:for(;c!==null;){var p=c;c=u;for(var R=0;R<e.length;R++)if(p.context===e[R]){c.lanes|=n,p=c.alternate,p!==null&&(p.lanes|=n),tc(c.return,n,t),a||(f=null);break t}c=p.next}}else if(u.tag===18){if(f=u.return,f===null)throw Error(o(341));f.lanes|=n,c=f.alternate,c!==null&&(c.lanes|=n),tc(f,n,t),f=null}else f=u.child;if(f!==null)f.return=u;else for(f=u;f!==null;){if(f===t){f=null;break}if(u=f.sibling,u!==null){u.return=f.return,f=u;break}f=f.return}u=f}}function Ja(t,e,n,a){t=null;for(var u=e,c=!1;u!==null;){if(!c){if((u.flags&524288)!==0)c=!0;else if((u.flags&262144)!==0)break}if(u.tag===10){var f=u.alternate;if(f===null)throw Error(o(387));if(f=f.memoizedProps,f!==null){var p=u.type;ve(u.pendingProps.value,f.value)||(t!==null?t.push(p):t=[p])}}else if(u===pt.current){if(f=u.alternate,f===null)throw Error(o(387));f.memoizedState.memoizedState!==u.memoizedState.memoizedState&&(t!==null?t.push(ri):t=[ri])}u=u.return}t!==null&&ec(e,t,n,a),e.flags|=262144}function $i(t){for(t=t.firstContext;t!==null;){if(!ve(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function oa(t){ca=t,ln=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function It(t){return xf(ca,t)}function Ii(t,e){return ca===null&&oa(t),xf(t,e)}function xf(t,e){var n=e._currentValue;if(e={context:e,memoizedValue:n,next:null},ln===null){if(t===null)throw Error(o(308));ln=e,t.dependencies={lanes:0,firstContext:e},t.flags|=524288}else ln=ln.next=e;return n}var Ip=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()})}},tv=l.unstable_scheduleCallback,ev=l.unstable_NormalPriority,Xt={$$typeof:G,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nc(){return{controller:new Ip,data:new Map,refCount:0}}function Hl(t){t.refCount--,t.refCount===0&&tv(ev,function(){t.controller.abort()})}var ql=null,ac=0,Pa=0,ka=null;function nv(t,e){if(ql===null){var n=ql=[];ac=0,Pa=uo(),ka={status:"pending",value:void 0,then:function(a){n.push(a)}}}return ac++,e.then(zf,zf),e}function zf(){if(--ac===0&&ql!==null){ka!==null&&(ka.status="fulfilled");var t=ql;ql=null,Pa=0,ka=null;for(var e=0;e<t.length;e++)(0,t[e])()}}function av(t,e){var n=[],a={status:"pending",value:null,reason:null,then:function(u){n.push(u)}};return t.then(function(){a.status="fulfilled",a.value=e;for(var u=0;u<n.length;u++)(0,n[u])(e)},function(u){for(a.status="rejected",a.reason=u,u=0;u<n.length;u++)(0,n[u])(void 0)}),a}var Df=U.S;U.S=function(t,e){md=le(),typeof e=="object"&&e!==null&&typeof e.then=="function"&&nv(t,e),Df!==null&&Df(t,e)};var ra=M(null);function lc(){var t=ra.current;return t!==null?t:zt.pooledCache}function tu(t,e){e===null?K(ra,ra.current):K(ra,e.pool)}function Uf(){var t=lc();return t===null?null:{parent:Xt._currentValue,pool:t}}var Fa=Error(o(460)),ic=Error(o(474)),eu=Error(o(542)),nu={then:function(){}};function Lf(t){return t=t.status,t==="fulfilled"||t==="rejected"}function wf(t,e,n){switch(n=t[n],n===void 0?t.push(e):n!==e&&(e.then(tn,tn),e=n),e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Bf(t),t;default:if(typeof e.status=="string")e.then(tn,tn);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 u=e;u.status="fulfilled",u.value=a}},function(a){if(e.status==="pending"){var u=e;u.status="rejected",u.reason=a}})}switch(e.status){case"fulfilled":return e.value;case"rejected":throw t=e.reason,Bf(t),t}throw ha=e,Fa}}function fa(t){try{var e=t._init;return e(t._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ha=n,Fa):n}}var ha=null;function Nf(){if(ha===null)throw Error(o(459));var t=ha;return ha=null,t}function Bf(t){if(t===Fa||t===eu)throw Error(o(483))}var Wa=null,Ql=0;function au(t){var e=Ql;return Ql+=1,Wa===null&&(Wa=[]),wf(Wa,t,e)}function Yl(t,e){e=e.props.ref,t.ref=e!==void 0?e:null}function lu(t,e){throw e.$$typeof===g?Error(o(525)):(t=Object.prototype.toString.call(e),Error(o(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)))}function jf(t){function e(C,E){if(t){var A=C.deletions;A===null?(C.deletions=[E],C.flags|=16):A.push(E)}}function n(C,E){if(!t)return null;for(;E!==null;)e(C,E),E=E.sibling;return null}function a(C){for(var E=new Map;C!==null;)C.key!==null?E.set(C.key,C):E.set(C.index,C),C=C.sibling;return E}function u(C,E){return C=nn(C,E),C.index=0,C.sibling=null,C}function c(C,E,A){return C.index=A,t?(A=C.alternate,A!==null?(A=A.index,A<E?(C.flags|=67108866,E):A):(C.flags|=67108866,E)):(C.flags|=1048576,E)}function f(C){return t&&C.alternate===null&&(C.flags|=67108866),C}function p(C,E,A,N){return E===null||E.tag!==6?(E=Js(A,C.mode,N),E.return=C,E):(E=u(E,A),E.return=C,E)}function R(C,E,A,N){var nt=A.type;return nt===O?w(C,E,A.props.children,N,A.key):E!==null&&(E.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===Q&&fa(nt)===E.type)?(E=u(E,A.props),Yl(E,A),E.return=C,E):(E=Fi(A.type,A.key,A.props,null,C.mode,N),Yl(E,A),E.return=C,E)}function x(C,E,A,N){return E===null||E.tag!==4||E.stateNode.containerInfo!==A.containerInfo||E.stateNode.implementation!==A.implementation?(E=Ps(A,C.mode,N),E.return=C,E):(E=u(E,A.children||[]),E.return=C,E)}function w(C,E,A,N,nt){return E===null||E.tag!==7?(E=ua(A,C.mode,N,nt),E.return=C,E):(E=u(E,A),E.return=C,E)}function B(C,E,A){if(typeof E=="string"&&E!==""||typeof E=="number"||typeof E=="bigint")return E=Js(""+E,C.mode,A),E.return=C,E;if(typeof E=="object"&&E!==null){switch(E.$$typeof){case _:return A=Fi(E.type,E.key,E.props,null,C.mode,A),Yl(A,E),A.return=C,A;case T:return E=Ps(E,C.mode,A),E.return=C,E;case Q:return E=fa(E),B(C,E,A)}if(Yt(E)||W(E))return E=ua(E,C.mode,A,null),E.return=C,E;if(typeof E.then=="function")return B(C,au(E),A);if(E.$$typeof===G)return B(C,Ii(C,E),A);lu(C,E)}return null}function z(C,E,A,N){var nt=E!==null?E.key:null;if(typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint")return nt!==null?null:p(C,E,""+A,N);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case _:return A.key===nt?R(C,E,A,N):null;case T:return A.key===nt?x(C,E,A,N):null;case Q:return A=fa(A),z(C,E,A,N)}if(Yt(A)||W(A))return nt!==null?null:w(C,E,A,N,null);if(typeof A.then=="function")return z(C,E,au(A),N);if(A.$$typeof===G)return z(C,E,Ii(C,A),N);lu(C,A)}return null}function D(C,E,A,N,nt){if(typeof N=="string"&&N!==""||typeof N=="number"||typeof N=="bigint")return C=C.get(A)||null,p(E,C,""+N,nt);if(typeof N=="object"&&N!==null){switch(N.$$typeof){case _:return C=C.get(N.key===null?A:N.key)||null,R(E,C,N,nt);case T:return C=C.get(N.key===null?A:N.key)||null,x(E,C,N,nt);case Q:return N=fa(N),D(C,E,A,N,nt)}if(Yt(N)||W(N))return C=C.get(A)||null,w(E,C,N,nt,null);if(typeof N.then=="function")return D(C,E,A,au(N),nt);if(N.$$typeof===G)return D(C,E,A,Ii(E,N),nt);lu(E,N)}return null}function P(C,E,A,N){for(var nt=null,vt=null,$=E,ot=E=0,mt=null;$!==null&&ot<A.length;ot++){$.index>ot?(mt=$,$=null):mt=$.sibling;var gt=z(C,$,A[ot],N);if(gt===null){$===null&&($=mt);break}t&&$&>.alternate===null&&e(C,$),E=c(gt,E,ot),vt===null?nt=gt:vt.sibling=gt,vt=gt,$=mt}if(ot===A.length)return n(C,$),yt&&an(C,ot),nt;if($===null){for(;ot<A.length;ot++)$=B(C,A[ot],N),$!==null&&(E=c($,E,ot),vt===null?nt=$:vt.sibling=$,vt=$);return yt&&an(C,ot),nt}for($=a($);ot<A.length;ot++)mt=D($,C,ot,A[ot],N),mt!==null&&(t&&mt.alternate!==null&&$.delete(mt.key===null?ot:mt.key),E=c(mt,E,ot),vt===null?nt=mt:vt.sibling=mt,vt=mt);return t&&$.forEach(function(Vn){return e(C,Vn)}),yt&&an(C,ot),nt}function lt(C,E,A,N){if(A==null)throw Error(o(151));for(var nt=null,vt=null,$=E,ot=E=0,mt=null,gt=A.next();$!==null&&!gt.done;ot++,gt=A.next()){$.index>ot?(mt=$,$=null):mt=$.sibling;var Vn=z(C,$,gt.value,N);if(Vn===null){$===null&&($=mt);break}t&&$&&Vn.alternate===null&&e(C,$),E=c(Vn,E,ot),vt===null?nt=Vn:vt.sibling=Vn,vt=Vn,$=mt}if(gt.done)return n(C,$),yt&&an(C,ot),nt;if($===null){for(;!gt.done;ot++,gt=A.next())gt=B(C,gt.value,N),gt!==null&&(E=c(gt,E,ot),vt===null?nt=gt:vt.sibling=gt,vt=gt);return yt&&an(C,ot),nt}for($=a($);!gt.done;ot++,gt=A.next())gt=D($,C,ot,gt.value,N),gt!==null&&(t&>.alternate!==null&&$.delete(gt.key===null?ot:gt.key),E=c(gt,E,ot),vt===null?nt=gt:vt.sibling=gt,vt=gt);return t&&$.forEach(function(mg){return e(C,mg)}),yt&&an(C,ot),nt}function At(C,E,A,N){if(typeof A=="object"&&A!==null&&A.type===O&&A.key===null&&(A=A.props.children),typeof A=="object"&&A!==null){switch(A.$$typeof){case _:t:{for(var nt=A.key;E!==null;){if(E.key===nt){if(nt=A.type,nt===O){if(E.tag===7){n(C,E.sibling),N=u(E,A.props.children),N.return=C,C=N;break t}}else if(E.elementType===nt||typeof nt=="object"&&nt!==null&&nt.$$typeof===Q&&fa(nt)===E.type){n(C,E.sibling),N=u(E,A.props),Yl(N,A),N.return=C,C=N;break t}n(C,E);break}else e(C,E);E=E.sibling}A.type===O?(N=ua(A.props.children,C.mode,N,A.key),N.return=C,C=N):(N=Fi(A.type,A.key,A.props,null,C.mode,N),Yl(N,A),N.return=C,C=N)}return f(C);case T:t:{for(nt=A.key;E!==null;){if(E.key===nt)if(E.tag===4&&E.stateNode.containerInfo===A.containerInfo&&E.stateNode.implementation===A.implementation){n(C,E.sibling),N=u(E,A.children||[]),N.return=C,C=N;break t}else{n(C,E);break}else e(C,E);E=E.sibling}N=Ps(A,C.mode,N),N.return=C,C=N}return f(C);case Q:return A=fa(A),At(C,E,A,N)}if(Yt(A))return P(C,E,A,N);if(W(A)){if(nt=W(A),typeof nt!="function")throw Error(o(150));return A=nt.call(A),lt(C,E,A,N)}if(typeof A.then=="function")return At(C,E,au(A),N);if(A.$$typeof===G)return At(C,E,Ii(C,A),N);lu(C,A)}return typeof A=="string"&&A!==""||typeof A=="number"||typeof A=="bigint"?(A=""+A,E!==null&&E.tag===6?(n(C,E.sibling),N=u(E,A),N.return=C,C=N):(n(C,E),N=Js(A,C.mode,N),N.return=C,C=N),f(C)):n(C,E)}return function(C,E,A,N){try{Ql=0;var nt=At(C,E,A,N);return Wa=null,nt}catch($){if($===Fa||$===eu)throw $;var vt=ge(29,$,null,C.mode);return vt.lanes=N,vt.return=C,vt}}}var da=jf(!0),Hf=jf(!1),Cn=!1;function uc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function sc(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 An(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function xn(t,e,n){var a=t.updateQueue;if(a===null)return null;if(a=a.shared,(St&2)!==0){var u=a.pending;return u===null?e.next=e:(e.next=u.next,u.next=e),a.pending=e,e=ki(t),_f(t,null,n),e}return Pi(t,a,e,n),ki(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,Ar(t,n)}}function cc(t,e){var n=t.updateQueue,a=t.alternate;if(a!==null&&(a=a.updateQueue,n===a)){var u=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?u=c=f:c=c.next=f,n=n.next}while(n!==null);c===null?u=c=e:c=c.next=e}else u=c=e;n={baseState:a.baseState,firstBaseUpdate:u,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 oc=!1;function Xl(){if(oc){var t=ka;if(t!==null)throw t}}function Vl(t,e,n,a){oc=!1;var u=t.updateQueue;Cn=!1;var c=u.firstBaseUpdate,f=u.lastBaseUpdate,p=u.shared.pending;if(p!==null){u.shared.pending=null;var R=p,x=R.next;R.next=null,f===null?c=x:f.next=x,f=R;var w=t.alternate;w!==null&&(w=w.updateQueue,p=w.lastBaseUpdate,p!==f&&(p===null?w.firstBaseUpdate=x:p.next=x,w.lastBaseUpdate=R))}if(c!==null){var B=u.baseState;f=0,w=x=R=null,p=c;do{var z=p.lane&-536870913,D=z!==p.lane;if(D?(dt&z)===z:(a&z)===z){z!==0&&z===Pa&&(oc=!0),w!==null&&(w=w.next={lane:0,tag:p.tag,payload:p.payload,callback:null,next:null});t:{var P=t,lt=p;z=e;var At=n;switch(lt.tag){case 1:if(P=lt.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=lt.payload,z=typeof P=="function"?P.call(At,B,z):P,z==null)break t;B=S({},B,z);break t;case 2:Cn=!0}}z=p.callback,z!==null&&(t.flags|=64,D&&(t.flags|=8192),D=u.callbacks,D===null?u.callbacks=[z]:D.push(z))}else D={lane:z,tag:p.tag,payload:p.payload,callback:p.callback,next:null},w===null?(x=w=D,R=B):w=w.next=D,f|=z;if(p=p.next,p===null){if(p=u.shared.pending,p===null)break;D=p,p=D.next,D.next=null,u.lastBaseUpdate=D,u.shared.pending=null}}while(!0);w===null&&(R=B),u.baseState=R,u.firstBaseUpdate=x,u.lastBaseUpdate=w,c===null&&(u.shared.lanes=0),wn|=f,t.lanes=f,t.memoizedState=B}}function qf(t,e){if(typeof t!="function")throw Error(o(191,t));t.call(e)}function Qf(t,e){var n=t.callbacks;if(n!==null)for(t.callbacks=null,t=0;t<n.length;t++)qf(n[t],e)}var $a=M(null),iu=M(0);function Yf(t,e){t=yn,K(iu,t),K($a,e),yn=t|e.baseLanes}function rc(){K(iu,yn),K($a,$a.current)}function fc(){yn=iu.current,H($a),H(iu)}var Se=M(null),Le=null;function zn(t){var e=t.alternate;K(qt,qt.current&1),K(Se,t),Le===null&&(e===null||$a.current!==null||e.memoizedState!==null)&&(Le=t)}function hc(t){K(qt,qt.current),K(Se,t),Le===null&&(Le=t)}function Gf(t){t.tag===22?(K(qt,qt.current),K(Se,t),Le===null&&(Le=t)):Dn()}function Dn(){K(qt,qt.current),K(Se,Se.current)}function be(t){H(Se),Le===t&&(Le=null),H(qt)}var qt=M(0);function uu(t){for(var e=t;e!==null;){if(e.tag===13){var n=e.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||So(n)||bo(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 sn=0,ct=null,Ot=null,Vt=null,su=!1,Ia=!1,ma=!1,cu=0,Kl=0,tl=null,lv=0;function Bt(){throw Error(o(321))}function dc(t,e){if(e===null)return!1;for(var n=0;n<e.length&&n<t.length;n++)if(!ve(t[n],e[n]))return!1;return!0}function mc(t,e,n,a,u,c){return sn=c,ct=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,U.H=t===null||t.memoizedState===null?Mh:xc,ma=!1,c=n(a,u),ma=!1,Ia&&(c=Vf(e,n,a,u)),Xf(t),c}function Xf(t){U.H=Pl;var e=Ot!==null&&Ot.next!==null;if(sn=0,Vt=Ot=ct=null,su=!1,Kl=0,tl=null,e)throw Error(o(300));t===null||Kt||(t=t.dependencies,t!==null&&$i(t)&&(Kt=!0))}function Vf(t,e,n,a){ct=t;var u=0;do{if(Ia&&(tl=null),Kl=0,Ia=!1,25<=u)throw Error(o(301));if(u+=1,Vt=Ot=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=Oh,c=e(n,a)}while(Ia);return c}function iv(){var t=U.H,e=t.useState()[0];return e=typeof e.then=="function"?Zl(e):e,t=t.useState()[0],(Ot!==null?Ot.memoizedState:null)!==t&&(ct.flags|=1024),e}function yc(){var t=cu!==0;return cu=0,t}function pc(t,e,n){e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~n}function vc(t){if(su){for(t=t.memoizedState;t!==null;){var e=t.queue;e!==null&&(e.pending=null),t=t.next}su=!1}sn=0,Vt=Ot=ct=null,Ia=!1,Kl=cu=0,tl=null}function ie(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vt===null?ct.memoizedState=Vt=t:Vt=Vt.next=t,Vt}function Qt(){if(Ot===null){var t=ct.alternate;t=t!==null?t.memoizedState:null}else t=Ot.next;var e=Vt===null?ct.memoizedState:Vt.next;if(e!==null)Vt=e,Ot=t;else{if(t===null)throw ct.alternate===null?Error(o(467)):Error(o(310));Ot=t,t={memoizedState:Ot.memoizedState,baseState:Ot.baseState,baseQueue:Ot.baseQueue,queue:Ot.queue,next:null},Vt===null?ct.memoizedState=Vt=t:Vt=Vt.next=t}return Vt}function ou(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Zl(t){var e=Kl;return Kl+=1,tl===null&&(tl=[]),t=wf(tl,t,e),e=ct,(Vt===null?e.memoizedState:Vt.next)===null&&(e=e.alternate,U.H=e===null||e.memoizedState===null?Mh:xc),t}function ru(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Zl(t);if(t.$$typeof===G)return It(t)}throw Error(o(438,String(t)))}function gc(t){var e=null,n=ct.updateQueue;if(n!==null&&(e=n.memoCache),e==null){var a=ct.alternate;a!==null&&(a=a.updateQueue,a!==null&&(a=a.memoCache,a!=null&&(e={data:a.data.map(function(u){return u.slice()}),index:0})))}if(e==null&&(e={data:[],index:0}),n===null&&(n=ou(),ct.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]=ut;return e.index++,n}function cn(t,e){return typeof e=="function"?e(t):e}function fu(t){var e=Qt();return Sc(e,Ot,t)}function Sc(t,e,n){var a=t.queue;if(a===null)throw Error(o(311));a.lastRenderedReducer=n;var u=t.baseQueue,c=a.pending;if(c!==null){if(u!==null){var f=u.next;u.next=c.next,c.next=f}e.baseQueue=u=c,a.pending=null}if(c=t.baseState,u===null)t.memoizedState=c;else{e=u.next;var p=f=null,R=null,x=e,w=!1;do{var B=x.lane&-536870913;if(B!==x.lane?(dt&B)===B:(sn&B)===B){var z=x.revertLane;if(z===0)R!==null&&(R=R.next={lane:0,revertLane:0,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null}),B===Pa&&(w=!0);else if((sn&z)===z){x=x.next,z===Pa&&(w=!0);continue}else B={lane:0,revertLane:x.revertLane,gesture:null,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},R===null?(p=R=B,f=c):R=R.next=B,ct.lanes|=z,wn|=z;B=x.action,ma&&n(c,B),c=x.hasEagerState?x.eagerState:n(c,B)}else z={lane:B,revertLane:x.revertLane,gesture:x.gesture,action:x.action,hasEagerState:x.hasEagerState,eagerState:x.eagerState,next:null},R===null?(p=R=z,f=c):R=R.next=z,ct.lanes|=B,wn|=B;x=x.next}while(x!==null&&x!==e);if(R===null?f=c:R.next=p,!ve(c,t.memoizedState)&&(Kt=!0,w&&(n=ka,n!==null)))throw n;t.memoizedState=c,t.baseState=f,t.baseQueue=R,a.lastRenderedState=c}return u===null&&(a.lanes=0),[t.memoizedState,a.dispatch]}function bc(t){var e=Qt(),n=e.queue;if(n===null)throw Error(o(311));n.lastRenderedReducer=t;var a=n.dispatch,u=n.pending,c=e.memoizedState;if(u!==null){n.pending=null;var f=u=u.next;do c=t(c,f.action),f=f.next;while(f!==u);ve(c,e.memoizedState)||(Kt=!0),e.memoizedState=c,e.baseQueue===null&&(e.baseState=c),n.lastRenderedState=c}return[c,a]}function Kf(t,e,n){var a=ct,u=Qt(),c=yt;if(c){if(n===void 0)throw Error(o(407));n=n()}else n=e();var f=!ve((Ot||u).memoizedState,n);if(f&&(u.memoizedState=n,Kt=!0),u=u.queue,Ec(Pf.bind(null,a,u,t),[t]),u.getSnapshot!==e||f||Vt!==null&&Vt.memoizedState.tag&1){if(a.flags|=2048,el(9,{destroy:void 0},Jf.bind(null,a,u,n,e),null),zt===null)throw Error(o(349));c||(sn&127)!==0||Zf(a,e,n)}return n}function Zf(t,e,n){t.flags|=16384,t={getSnapshot:e,value:n},e=ct.updateQueue,e===null?(e=ou(),ct.updateQueue=e,e.stores=[t]):(n=e.stores,n===null?e.stores=[t]:n.push(t))}function Jf(t,e,n,a){e.value=n,e.getSnapshot=a,kf(e)&&Ff(t)}function Pf(t,e,n){return n(function(){kf(e)&&Ff(t)})}function kf(t){var e=t.getSnapshot;t=t.value;try{var n=e();return!ve(t,n)}catch{return!0}}function Ff(t){var e=ia(t,2);e!==null&&de(e,t,2)}function _c(t){var e=ie();if(typeof t=="function"){var n=t;if(t=n(),ma){bn(!0);try{n()}finally{bn(!1)}}}return e.memoizedState=e.baseState=t,e.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:t},e}function Wf(t,e,n,a){return t.baseState=n,Sc(t,Ot,typeof a=="function"?a:cn)}function uv(t,e,n,a,u){if(mu(t))throw Error(o(485));if(t=e.action,t!==null){var c={payload:u,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,$f(e,c)):(c.next=n.next,e.pending=n.next=c)}}function $f(t,e){var n=e.action,a=e.payload,u=t.state;if(e.isTransition){var c=U.T,f={};U.T=f;try{var p=n(u,a),R=U.S;R!==null&&R(f,p),If(t,e,p)}catch(x){Rc(t,e,x)}finally{c!==null&&f.types!==null&&(c.types=f.types),U.T=c}}else try{c=n(u,a),If(t,e,c)}catch(x){Rc(t,e,x)}}function If(t,e,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(a){th(t,e,a)},function(a){return Rc(t,e,a)}):th(t,e,n)}function th(t,e,n){e.status="fulfilled",e.value=n,eh(e),t.state=n,e=t.pending,e!==null&&(n=e.next,n===e?t.pending=null:(n=n.next,e.next=n,$f(t,n)))}function Rc(t,e,n){var a=t.pending;if(t.pending=null,a!==null){a=a.next;do e.status="rejected",e.reason=n,eh(e),e=e.next;while(e!==a)}t.action=null}function eh(t){t=t.listeners;for(var e=0;e<t.length;e++)(0,t[e])()}function nh(t,e){return e}function ah(t,e){if(yt){var n=zt.formState;if(n!==null){t:{var a=ct;if(yt){if(Ut){e:{for(var u=Ut,c=Ue;u.nodeType!==8;){if(!c){u=null;break e}if(u=we(u.nextSibling),u===null){u=null;break e}}c=u.data,u=c==="F!"||c==="F"?u:null}if(u){Ut=we(u.nextSibling),a=u.data==="F!";break t}}Mn(a)}a=!1}a&&(e=n[0])}}return n=ie(),n.memoizedState=n.baseState=e,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:nh,lastRenderedState:e},n.queue=a,n=Rh.bind(null,ct,a),a.dispatch=n,a=_c(!1),c=Ac.bind(null,ct,!1,a.queue),a=ie(),u={state:e,dispatch:null,action:t,pending:null},a.queue=u,n=uv.bind(null,ct,u,c,n),u.dispatch=n,a.memoizedState=t,[e,n,!1]}function lh(t){var e=Qt();return ih(e,Ot,t)}function ih(t,e,n){if(e=Sc(t,e,nh)[0],t=fu(cn)[0],typeof e=="object"&&e!==null&&typeof e.then=="function")try{var a=Zl(e)}catch(f){throw f===Fa?eu:f}else a=e;e=Qt();var u=e.queue,c=u.dispatch;return n!==e.memoizedState&&(ct.flags|=2048,el(9,{destroy:void 0},sv.bind(null,u,n),null)),[a,c,t]}function sv(t,e){t.action=e}function uh(t){var e=Qt(),n=Ot;if(n!==null)return ih(e,n,t);Qt(),e=e.memoizedState,n=Qt();var a=n.queue.dispatch;return n.memoizedState=t,[e,a,!1]}function el(t,e,n,a){return t={tag:t,create:n,deps:a,inst:e,next:null},e=ct.updateQueue,e===null&&(e=ou(),ct.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 sh(){return Qt().memoizedState}function hu(t,e,n,a){var u=ie();ct.flags|=t,u.memoizedState=el(1|e,{destroy:void 0},n,a===void 0?null:a)}function du(t,e,n,a){var u=Qt();a=a===void 0?null:a;var c=u.memoizedState.inst;Ot!==null&&a!==null&&dc(a,Ot.memoizedState.deps)?u.memoizedState=el(e,c,n,a):(ct.flags|=t,u.memoizedState=el(1|e,c,n,a))}function ch(t,e){hu(8390656,8,t,e)}function Ec(t,e){du(2048,8,t,e)}function cv(t){ct.flags|=4;var e=ct.updateQueue;if(e===null)e=ou(),ct.updateQueue=e,e.events=[t];else{var n=e.events;n===null?e.events=[t]:n.push(t)}}function oh(t){var e=Qt().memoizedState;return cv({ref:e,nextImpl:t}),function(){if((St&2)!==0)throw Error(o(440));return e.impl.apply(void 0,arguments)}}function rh(t,e){return du(4,2,t,e)}function fh(t,e){return du(4,4,t,e)}function hh(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 dh(t,e,n){n=n!=null?n.concat([t]):null,du(4,4,hh.bind(null,e,t),n)}function Tc(){}function mh(t,e){var n=Qt();e=e===void 0?null:e;var a=n.memoizedState;return e!==null&&dc(e,a[1])?a[0]:(n.memoizedState=[t,e],t)}function yh(t,e){var n=Qt();e=e===void 0?null:e;var a=n.memoizedState;if(e!==null&&dc(e,a[1]))return a[0];if(a=t(),ma){bn(!0);try{t()}finally{bn(!1)}}return n.memoizedState=[a,e],a}function Mc(t,e,n){return n===void 0||(sn&1073741824)!==0&&(dt&261930)===0?t.memoizedState=e:(t.memoizedState=n,t=pd(),ct.lanes|=t,wn|=t,n)}function ph(t,e,n,a){return ve(n,e)?n:$a.current!==null?(t=Mc(t,n,a),ve(t,e)||(Kt=!0),t):(sn&42)===0||(sn&1073741824)!==0&&(dt&261930)===0?(Kt=!0,t.memoizedState=n):(t=pd(),ct.lanes|=t,wn|=t,e)}function vh(t,e,n,a,u){var c=V.p;V.p=c!==0&&8>c?c:8;var f=U.T,p={};U.T=p,Ac(t,!1,e,n);try{var R=u(),x=U.S;if(x!==null&&x(p,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var w=av(R,a);Jl(t,e,w,Ee(t))}else Jl(t,e,a,Ee(t))}catch(B){Jl(t,e,{then:function(){},status:"rejected",reason:B},Ee())}finally{V.p=c,f!==null&&p.types!==null&&(f.types=p.types),U.T=f}}function ov(){}function Oc(t,e,n,a){if(t.tag!==5)throw Error(o(476));var u=gh(t).queue;vh(t,u,e,it,n===null?ov:function(){return Sh(t),n(a)})}function gh(t){var e=t.memoizedState;if(e!==null)return e;e={memoizedState:it,baseState:it,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:it},next:null};var n={};return e.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:n},next:null},t.memoizedState=e,t=t.alternate,t!==null&&(t.memoizedState=e),e}function Sh(t){var e=gh(t);e.next===null&&(e=t.alternate.memoizedState),Jl(t,e.next.queue,{},Ee())}function Cc(){return It(ri)}function bh(){return Qt().memoizedState}function _h(){return Qt().memoizedState}function rv(t){for(var e=t.return;e!==null;){switch(e.tag){case 24:case 3:var n=Ee();t=An(n);var a=xn(e,t,n);a!==null&&(de(a,e,n),Gl(a,e,n)),e={cache:nc()},t.payload=e;return}e=e.return}}function fv(t,e,n){var a=Ee();n={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},mu(t)?Eh(e,n):(n=Ks(t,e,n,a),n!==null&&(de(n,t,a),Th(n,e,a)))}function Rh(t,e,n){var a=Ee();Jl(t,e,n,a)}function Jl(t,e,n,a){var u={lane:a,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(mu(t))Eh(e,u);else{var c=t.alternate;if(t.lanes===0&&(c===null||c.lanes===0)&&(c=e.lastRenderedReducer,c!==null))try{var f=e.lastRenderedState,p=c(f,n);if(u.hasEagerState=!0,u.eagerState=p,ve(p,f))return Pi(t,e,u,0),zt===null&&Ji(),!1}catch{}if(n=Ks(t,e,u,a),n!==null)return de(n,t,a),Th(n,e,a),!0}return!1}function Ac(t,e,n,a){if(a={lane:2,revertLane:uo(),gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},mu(t)){if(e)throw Error(o(479))}else e=Ks(t,n,a,2),e!==null&&de(e,t,2)}function mu(t){var e=t.alternate;return t===ct||e!==null&&e===ct}function Eh(t,e){Ia=su=!0;var n=t.pending;n===null?e.next=e:(e.next=n.next,n.next=e),t.pending=e}function Th(t,e,n){if((n&4194048)!==0){var a=e.lanes;a&=t.pendingLanes,n|=a,e.lanes=n,Ar(t,n)}}var Pl={readContext:It,use:ru,useCallback:Bt,useContext:Bt,useEffect:Bt,useImperativeHandle:Bt,useLayoutEffect:Bt,useInsertionEffect:Bt,useMemo:Bt,useReducer:Bt,useRef:Bt,useState:Bt,useDebugValue:Bt,useDeferredValue:Bt,useTransition:Bt,useSyncExternalStore:Bt,useId:Bt,useHostTransitionStatus:Bt,useFormState:Bt,useActionState:Bt,useOptimistic:Bt,useMemoCache:Bt,useCacheRefresh:Bt};Pl.useEffectEvent=Bt;var Mh={readContext:It,use:ru,useCallback:function(t,e){return ie().memoizedState=[t,e===void 0?null:e],t},useContext:It,useEffect:ch,useImperativeHandle:function(t,e,n){n=n!=null?n.concat([t]):null,hu(4194308,4,hh.bind(null,e,t),n)},useLayoutEffect:function(t,e){return hu(4194308,4,t,e)},useInsertionEffect:function(t,e){hu(4,2,t,e)},useMemo:function(t,e){var n=ie();e=e===void 0?null:e;var a=t();if(ma){bn(!0);try{t()}finally{bn(!1)}}return n.memoizedState=[a,e],a},useReducer:function(t,e,n){var a=ie();if(n!==void 0){var u=n(e);if(ma){bn(!0);try{n(e)}finally{bn(!1)}}}else u=e;return a.memoizedState=a.baseState=u,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:u},a.queue=t,t=t.dispatch=fv.bind(null,ct,t),[a.memoizedState,t]},useRef:function(t){var e=ie();return t={current:t},e.memoizedState=t},useState:function(t){t=_c(t);var e=t.queue,n=Rh.bind(null,ct,e);return e.dispatch=n,[t.memoizedState,n]},useDebugValue:Tc,useDeferredValue:function(t,e){var n=ie();return Mc(n,t,e)},useTransition:function(){var t=_c(!1);return t=vh.bind(null,ct,t.queue,!0,!1),ie().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,e,n){var a=ct,u=ie();if(yt){if(n===void 0)throw Error(o(407));n=n()}else{if(n=e(),zt===null)throw Error(o(349));(dt&127)!==0||Zf(a,e,n)}u.memoizedState=n;var c={value:n,getSnapshot:e};return u.queue=c,ch(Pf.bind(null,a,c,t),[t]),a.flags|=2048,el(9,{destroy:void 0},Jf.bind(null,a,c,n,e),null),n},useId:function(){var t=ie(),e=zt.identifierPrefix;if(yt){var n=Ze,a=Ke;n=(a&~(1<<32-pe(a)-1)).toString(32)+n,e="_"+e+"R_"+n,n=cu++,0<n&&(e+="H"+n.toString(32)),e+="_"}else n=lv++,e="_"+e+"r_"+n.toString(32)+"_";return t.memoizedState=e},useHostTransitionStatus:Cc,useFormState:ah,useActionState:ah,useOptimistic:function(t){var e=ie();e.memoizedState=e.baseState=t;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return e.queue=n,e=Ac.bind(null,ct,!0,n),n.dispatch=e,[t,e]},useMemoCache:gc,useCacheRefresh:function(){return ie().memoizedState=rv.bind(null,ct)},useEffectEvent:function(t){var e=ie(),n={impl:t};return e.memoizedState=n,function(){if((St&2)!==0)throw Error(o(440));return n.impl.apply(void 0,arguments)}}},xc={readContext:It,use:ru,useCallback:mh,useContext:It,useEffect:Ec,useImperativeHandle:dh,useInsertionEffect:rh,useLayoutEffect:fh,useMemo:yh,useReducer:fu,useRef:sh,useState:function(){return fu(cn)},useDebugValue:Tc,useDeferredValue:function(t,e){var n=Qt();return ph(n,Ot.memoizedState,t,e)},useTransition:function(){var t=fu(cn)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:Zl(t),e]},useSyncExternalStore:Kf,useId:bh,useHostTransitionStatus:Cc,useFormState:lh,useActionState:lh,useOptimistic:function(t,e){var n=Qt();return Wf(n,Ot,t,e)},useMemoCache:gc,useCacheRefresh:_h};xc.useEffectEvent=oh;var Oh={readContext:It,use:ru,useCallback:mh,useContext:It,useEffect:Ec,useImperativeHandle:dh,useInsertionEffect:rh,useLayoutEffect:fh,useMemo:yh,useReducer:bc,useRef:sh,useState:function(){return bc(cn)},useDebugValue:Tc,useDeferredValue:function(t,e){var n=Qt();return Ot===null?Mc(n,t,e):ph(n,Ot.memoizedState,t,e)},useTransition:function(){var t=bc(cn)[0],e=Qt().memoizedState;return[typeof t=="boolean"?t:Zl(t),e]},useSyncExternalStore:Kf,useId:bh,useHostTransitionStatus:Cc,useFormState:uh,useActionState:uh,useOptimistic:function(t,e){var n=Qt();return Ot!==null?Wf(n,Ot,t,e):(n.baseState=t,[t,n.queue.dispatch])},useMemoCache:gc,useCacheRefresh:_h};Oh.useEffectEvent=oh;function zc(t,e,n,a){e=t.memoizedState,n=n(a,e),n=n==null?e:S({},e,n),t.memoizedState=n,t.lanes===0&&(t.updateQueue.baseState=n)}var Dc={enqueueSetState:function(t,e,n){t=t._reactInternals;var a=Ee(),u=An(a);u.payload=e,n!=null&&(u.callback=n),e=xn(t,u,a),e!==null&&(de(e,t,a),Gl(e,t,a))},enqueueReplaceState:function(t,e,n){t=t._reactInternals;var a=Ee(),u=An(a);u.tag=1,u.payload=e,n!=null&&(u.callback=n),e=xn(t,u,a),e!==null&&(de(e,t,a),Gl(e,t,a))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var n=Ee(),a=An(n);a.tag=2,e!=null&&(a.callback=e),e=xn(t,a,n),e!==null&&(de(e,t,n),Gl(e,t,n))}};function Ch(t,e,n,a,u,c,f){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(a,c,f):e.prototype&&e.prototype.isPureReactComponent?!wl(n,a)||!wl(u,c):!0}function Ah(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&&Dc.enqueueReplaceState(e,e.state,null)}function ya(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=S({},n));for(var u in t)n[u]===void 0&&(n[u]=t[u])}return n}function xh(t){Zi(t)}function zh(t){console.error(t)}function Dh(t){Zi(t)}function yu(t,e){try{var n=t.onUncaughtError;n(e.value,{componentStack:e.stack})}catch(a){setTimeout(function(){throw a})}}function Uh(t,e,n){try{var a=t.onCaughtError;a(n.value,{componentStack:n.stack,errorBoundary:e.tag===1?e.stateNode:null})}catch(u){setTimeout(function(){throw u})}}function Uc(t,e,n){return n=An(n),n.tag=3,n.payload={element:null},n.callback=function(){yu(t,e)},n}function Lh(t){return t=An(t),t.tag=3,t}function wh(t,e,n,a){var u=n.type.getDerivedStateFromError;if(typeof u=="function"){var c=a.value;t.payload=function(){return u(c)},t.callback=function(){Uh(e,n,a)}}var f=n.stateNode;f!==null&&typeof f.componentDidCatch=="function"&&(t.callback=function(){Uh(e,n,a),typeof u!="function"&&(Nn===null?Nn=new Set([this]):Nn.add(this));var p=a.stack;this.componentDidCatch(a.value,{componentStack:p!==null?p:""})})}function hv(t,e,n,a,u){if(n.flags|=32768,a!==null&&typeof a=="object"&&typeof a.then=="function"){if(e=n.alternate,e!==null&&Ja(e,n,u,!0),n=Se.current,n!==null){switch(n.tag){case 31:case 13:return Le===null?Cu():n.alternate===null&&jt===0&&(jt=3),n.flags&=-257,n.flags|=65536,n.lanes=u,a===nu?n.flags|=16384:(e=n.updateQueue,e===null?n.updateQueue=new Set([a]):e.add(a),ao(t,a,u)),!1;case 22:return n.flags|=65536,a===nu?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)),ao(t,a,u)),!1}throw Error(o(435,n.tag))}return ao(t,a,u),Cu(),!1}if(yt)return e=Se.current,e!==null?((e.flags&65536)===0&&(e.flags|=256),e.flags|=65536,e.lanes=u,a!==Ws&&(t=Error(o(422),{cause:a}),jl(xe(t,n)))):(a!==Ws&&(e=Error(o(423),{cause:a}),jl(xe(e,n))),t=t.current.alternate,t.flags|=65536,u&=-u,t.lanes|=u,a=xe(a,n),u=Uc(t.stateNode,a,u),cc(t,u),jt!==4&&(jt=2)),!1;var c=Error(o(520),{cause:a});if(c=xe(c,n),ni===null?ni=[c]:ni.push(c),jt!==4&&(jt=2),e===null)return!0;a=xe(a,n),n=e;do{switch(n.tag){case 3:return n.flags|=65536,t=u&-u,n.lanes|=t,t=Uc(n.stateNode,a,t),cc(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"&&(Nn===null||!Nn.has(c))))return n.flags|=65536,u&=-u,n.lanes|=u,u=Lh(u),wh(u,t,n,a),cc(n,u),!1}n=n.return}while(n!==null);return!1}var Lc=Error(o(461)),Kt=!1;function te(t,e,n,a){e.child=t===null?Hf(e,null,n,a):da(e,t.child,n,a)}function Nh(t,e,n,a,u){n=n.render;var c=e.ref;if("ref"in a){var f={};for(var p in a)p!=="ref"&&(f[p]=a[p])}else f=a;return oa(e),a=mc(t,e,n,f,c,u),p=yc(),t!==null&&!Kt?(pc(t,e,u),on(t,e,u)):(yt&&p&&ks(e),e.flags|=1,te(t,e,a,u),e.child)}function Bh(t,e,n,a,u){if(t===null){var c=n.type;return typeof c=="function"&&!Zs(c)&&c.defaultProps===void 0&&n.compare===null?(e.tag=15,e.type=c,jh(t,e,c,a,u)):(t=Fi(n.type,null,a,e,e.mode,u),t.ref=e.ref,t.return=e,e.child=t)}if(c=t.child,!Yc(t,u)){var f=c.memoizedProps;if(n=n.compare,n=n!==null?n:wl,n(f,a)&&t.ref===e.ref)return on(t,e,u)}return e.flags|=1,t=nn(c,a),t.ref=e.ref,t.return=e,e.child=t}function jh(t,e,n,a,u){if(t!==null){var c=t.memoizedProps;if(wl(c,a)&&t.ref===e.ref)if(Kt=!1,e.pendingProps=a=c,Yc(t,u))(t.flags&131072)!==0&&(Kt=!0);else return e.lanes=t.lanes,on(t,e,u)}return wc(t,e,n,a,u)}function Hh(t,e,n,a){var u=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,u=0;a!==null;)u=u|a.lanes|a.childLanes,a=a.sibling;a=u&~c}else a=0,e.child=null;return qh(t,e,c,n,a)}if((n&536870912)!==0)e.memoizedState={baseLanes:0,cachePool:null},t!==null&&tu(e,c!==null?c.cachePool:null),c!==null?Yf(e,c):rc(),Gf(e);else return a=e.lanes=536870912,qh(t,e,c!==null?c.baseLanes|n:n,n,a)}else c!==null?(tu(e,c.cachePool),Yf(e,c),Dn(),e.memoizedState=null):(t!==null&&tu(e,null),rc(),Dn());return te(t,e,u,n),e.child}function kl(t,e){return t!==null&&t.tag===22||e.stateNode!==null||(e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),e.sibling}function qh(t,e,n,a,u){var c=lc();return c=c===null?null:{parent:Xt._currentValue,pool:c},e.memoizedState={baseLanes:n,cachePool:c},t!==null&&tu(e,null),rc(),Gf(e),t!==null&&Ja(t,e,a,!0),e.childLanes=u,null}function pu(t,e){return e=gu({mode:e.mode,children:e.children},t.mode),e.ref=t.ref,t.child=e,e.return=t,e}function Qh(t,e,n){return da(e,t.child,null,n),t=pu(e,e.pendingProps),t.flags|=2,be(e),e.memoizedState=null,t}function dv(t,e,n){var a=e.pendingProps,u=(e.flags&128)!==0;if(e.flags&=-129,t===null){if(yt){if(a.mode==="hidden")return t=pu(e,a),e.lanes=536870912,kl(null,t);if(hc(e),(t=Ut)?(t=$d(t,Ue),t=t!==null&&t.data==="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:En!==null?{id:Ke,overflow:Ze}:null,retryLane:536870912,hydrationErrors:null},n=Ef(t),n.return=e,e.child=n,$t=e,Ut=null)):t=null,t===null)throw Mn(e);return e.lanes=536870912,null}return pu(e,a)}var c=t.memoizedState;if(c!==null){var f=c.dehydrated;if(hc(e),u)if(e.flags&256)e.flags&=-257,e=Qh(t,e,n);else if(e.memoizedState!==null)e.child=t.child,e.flags|=128,e=null;else throw Error(o(558));else if(Kt||Ja(t,e,n,!1),u=(n&t.childLanes)!==0,Kt||u){if(a=zt,a!==null&&(f=xr(a,n),f!==0&&f!==c.retryLane))throw c.retryLane=f,ia(t,f),de(a,t,f),Lc;Cu(),e=Qh(t,e,n)}else t=c.treeContext,Ut=we(f.nextSibling),$t=e,yt=!0,Tn=null,Ue=!1,t!==null&&Of(e,t),e=pu(e,a),e.flags|=4096;return e}return t=nn(t.child,{mode:a.mode,children:a.children}),t.ref=e.ref,e.child=t,t.return=e,t}function vu(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 wc(t,e,n,a,u){return oa(e),n=mc(t,e,n,a,void 0,u),a=yc(),t!==null&&!Kt?(pc(t,e,u),on(t,e,u)):(yt&&a&&ks(e),e.flags|=1,te(t,e,n,u),e.child)}function Yh(t,e,n,a,u,c){return oa(e),e.updateQueue=null,n=Vf(e,a,n,u),Xf(t),a=yc(),t!==null&&!Kt?(pc(t,e,c),on(t,e,c)):(yt&&a&&ks(e),e.flags|=1,te(t,e,n,c),e.child)}function Gh(t,e,n,a,u){if(oa(e),e.stateNode===null){var c=Xa,f=n.contextType;typeof f=="object"&&f!==null&&(c=It(f)),c=new n(a,c),e.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=Dc,e.stateNode=c,c._reactInternals=e,c=e.stateNode,c.props=a,c.state=e.memoizedState,c.refs={},uc(e),f=n.contextType,c.context=typeof f=="object"&&f!==null?It(f):Xa,c.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(zc(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&&Dc.enqueueReplaceState(c,c.state,null),Vl(e,a,c,u),Xl(),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!0}else if(t===null){c=e.stateNode;var p=e.memoizedProps,R=ya(n,p);c.props=R;var x=c.context,w=n.contextType;f=Xa,typeof w=="object"&&w!==null&&(f=It(w));var B=n.getDerivedStateFromProps;w=typeof B=="function"||typeof c.getSnapshotBeforeUpdate=="function",p=e.pendingProps!==p,w||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(p||x!==f)&&Ah(e,c,a,f),Cn=!1;var z=e.memoizedState;c.state=z,Vl(e,a,c,u),Xl(),x=e.memoizedState,p||z!==x||Cn?(typeof B=="function"&&(zc(e,n,B,a),x=e.memoizedState),(R=Cn||Ch(e,n,R,a,z,x,f))?(w||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=x),c.props=a,c.state=x,c.context=f,a=R):(typeof c.componentDidMount=="function"&&(e.flags|=4194308),a=!1)}else{c=e.stateNode,sc(t,e),f=e.memoizedProps,w=ya(n,f),c.props=w,B=e.pendingProps,z=c.context,x=n.contextType,R=Xa,typeof x=="object"&&x!==null&&(R=It(x)),p=n.getDerivedStateFromProps,(x=typeof p=="function"||typeof c.getSnapshotBeforeUpdate=="function")||typeof c.UNSAFE_componentWillReceiveProps!="function"&&typeof c.componentWillReceiveProps!="function"||(f!==B||z!==R)&&Ah(e,c,a,R),Cn=!1,z=e.memoizedState,c.state=z,Vl(e,a,c,u),Xl();var D=e.memoizedState;f!==B||z!==D||Cn||t!==null&&t.dependencies!==null&&$i(t.dependencies)?(typeof p=="function"&&(zc(e,n,p,a),D=e.memoizedState),(w=Cn||Ch(e,n,w,a,z,D,R)||t!==null&&t.dependencies!==null&&$i(t.dependencies))?(x||typeof c.UNSAFE_componentWillUpdate!="function"&&typeof c.componentWillUpdate!="function"||(typeof c.componentWillUpdate=="function"&&c.componentWillUpdate(a,D,R),typeof c.UNSAFE_componentWillUpdate=="function"&&c.UNSAFE_componentWillUpdate(a,D,R)),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=R,a=w):(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,vu(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=da(e,t.child,null,u),e.child=da(e,null,n,u)):te(t,e,n,u),e.memoizedState=c.state,t=e.child):t=on(t,e,u),t}function Xh(t,e,n,a){return sa(),e.flags|=256,te(t,e,n,a),e.child}var Nc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Bc(t){return{baseLanes:t,cachePool:Uf()}}function jc(t,e,n){return t=t!==null?t.childLanes&~n:0,e&&(t|=Re),t}function Vh(t,e,n){var a=e.pendingProps,u=!1,c=(e.flags&128)!==0,f;if((f=c)||(f=t!==null&&t.memoizedState===null?!1:(qt.current&2)!==0),f&&(u=!0,e.flags&=-129),f=(e.flags&32)!==0,e.flags&=-33,t===null){if(yt){if(u?zn(e):Dn(),(t=Ut)?(t=$d(t,Ue),t=t!==null&&t.data!=="&"?t:null,t!==null&&(e.memoizedState={dehydrated:t,treeContext:En!==null?{id:Ke,overflow:Ze}:null,retryLane:536870912,hydrationErrors:null},n=Ef(t),n.return=e,e.child=n,$t=e,Ut=null)):t=null,t===null)throw Mn(e);return bo(t)?e.lanes=32:e.lanes=536870912,null}var p=a.children;return a=a.fallback,u?(Dn(),u=e.mode,p=gu({mode:"hidden",children:p},u),a=ua(a,u,n,null),p.return=e,a.return=e,p.sibling=a,e.child=p,a=e.child,a.memoizedState=Bc(n),a.childLanes=jc(t,f,n),e.memoizedState=Nc,kl(null,a)):(zn(e),Hc(e,p))}var R=t.memoizedState;if(R!==null&&(p=R.dehydrated,p!==null)){if(c)e.flags&256?(zn(e),e.flags&=-257,e=qc(t,e,n)):e.memoizedState!==null?(Dn(),e.child=t.child,e.flags|=128,e=null):(Dn(),p=a.fallback,u=e.mode,a=gu({mode:"visible",children:a.children},u),p=ua(p,u,n,null),p.flags|=2,a.return=e,p.return=e,a.sibling=p,e.child=a,da(e,t.child,null,n),a=e.child,a.memoizedState=Bc(n),a.childLanes=jc(t,f,n),e.memoizedState=Nc,e=kl(null,a));else if(zn(e),bo(p)){if(f=p.nextSibling&&p.nextSibling.dataset,f)var x=f.dgst;f=x,a=Error(o(419)),a.stack="",a.digest=f,jl({value:a,source:null,stack:null}),e=qc(t,e,n)}else if(Kt||Ja(t,e,n,!1),f=(n&t.childLanes)!==0,Kt||f){if(f=zt,f!==null&&(a=xr(f,n),a!==0&&a!==R.retryLane))throw R.retryLane=a,ia(t,a),de(f,t,a),Lc;So(p)||Cu(),e=qc(t,e,n)}else So(p)?(e.flags|=192,e.child=t.child,e=null):(t=R.treeContext,Ut=we(p.nextSibling),$t=e,yt=!0,Tn=null,Ue=!1,t!==null&&Of(e,t),e=Hc(e,a.children),e.flags|=4096);return e}return u?(Dn(),p=a.fallback,u=e.mode,R=t.child,x=R.sibling,a=nn(R,{mode:"hidden",children:a.children}),a.subtreeFlags=R.subtreeFlags&65011712,x!==null?p=nn(x,p):(p=ua(p,u,n,null),p.flags|=2),p.return=e,a.return=e,a.sibling=p,e.child=a,kl(null,a),a=e.child,p=t.child.memoizedState,p===null?p=Bc(n):(u=p.cachePool,u!==null?(R=Xt._currentValue,u=u.parent!==R?{parent:R,pool:R}:u):u=Uf(),p={baseLanes:p.baseLanes|n,cachePool:u}),a.memoizedState=p,a.childLanes=jc(t,f,n),e.memoizedState=Nc,kl(t.child,a)):(zn(e),n=t.child,t=n.sibling,n=nn(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 Hc(t,e){return e=gu({mode:"visible",children:e},t.mode),e.return=t,t.child=e}function gu(t,e){return t=ge(22,t,null,e),t.lanes=0,t}function qc(t,e,n){return da(e,t.child,null,n),t=Hc(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function Kh(t,e,n){t.lanes|=e;var a=t.alternate;a!==null&&(a.lanes|=e),tc(t.return,e,n)}function Qc(t,e,n,a,u,c){var f=t.memoizedState;f===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:u,treeForkCount:c}:(f.isBackwards=e,f.rendering=null,f.renderingStartTime=0,f.last=a,f.tail=n,f.tailMode=u,f.treeForkCount=c)}function Zh(t,e,n){var a=e.pendingProps,u=a.revealOrder,c=a.tail;a=a.children;var f=qt.current,p=(f&2)!==0;if(p?(f=f&1|2,e.flags|=128):f&=1,K(qt,f),te(t,e,a,n),a=yt?Bl:0,!p&&t!==null&&(t.flags&128)!==0)t:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Kh(t,n,e);else if(t.tag===19)Kh(t,n,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break t;for(;t.sibling===null;){if(t.return===null||t.return===e)break t;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(u){case"forwards":for(n=e.child,u=null;n!==null;)t=n.alternate,t!==null&&uu(t)===null&&(u=n),n=n.sibling;n=u,n===null?(u=e.child,e.child=null):(u=n.sibling,n.sibling=null),Qc(e,!1,u,n,c,a);break;case"backwards":case"unstable_legacy-backwards":for(n=null,u=e.child,e.child=null;u!==null;){if(t=u.alternate,t!==null&&uu(t)===null){e.child=u;break}t=u.sibling,u.sibling=n,n=u,u=t}Qc(e,!0,n,null,c,a);break;case"together":Qc(e,!1,null,null,void 0,a);break;default:e.memoizedState=null}return e.child}function on(t,e,n){if(t!==null&&(e.dependencies=t.dependencies),wn|=e.lanes,(n&e.childLanes)===0)if(t!==null){if(Ja(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=nn(t,t.pendingProps),e.child=n,n.return=e;t.sibling!==null;)t=t.sibling,n=n.sibling=nn(t,t.pendingProps),n.return=e;n.sibling=null}return e.child}function Yc(t,e){return(t.lanes&e)!==0?!0:(t=t.dependencies,!!(t!==null&&$i(t)))}function mv(t,e,n){switch(e.tag){case 3:Ht(e,e.stateNode.containerInfo),On(e,Xt,t.memoizedState.cache),sa();break;case 27:case 5:Fe(e);break;case 4:Ht(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,hc(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?Vh(t,e,n):(zn(e),t=on(t,e,n),t!==null?t.sibling:null);zn(e);break;case 19:var u=(t.flags&128)!==0;if(a=(n&e.childLanes)!==0,a||(Ja(t,e,n,!1),a=(n&e.childLanes)!==0),u){if(a)return Zh(t,e,n);e.flags|=128}if(u=e.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),K(qt,qt.current),a)break;return null;case 22:return e.lanes=0,Hh(t,e,n,e.pendingProps);case 24:On(e,Xt,t.memoizedState.cache)}return on(t,e,n)}function Jh(t,e,n){if(t!==null)if(t.memoizedProps!==e.pendingProps)Kt=!0;else{if(!Yc(t,n)&&(e.flags&128)===0)return Kt=!1,mv(t,e,n);Kt=(t.flags&131072)!==0}else Kt=!1,yt&&(e.flags&1048576)!==0&&Mf(e,Bl,e.index);switch(e.lanes=0,e.tag){case 16:t:{var a=e.pendingProps;if(t=fa(e.elementType),e.type=t,typeof t=="function")Zs(t)?(a=ya(t,a),e.tag=1,e=Gh(null,e,t,a,n)):(e.tag=0,e=wc(null,e,t,a,n));else{if(t!=null){var u=t.$$typeof;if(u===X){e.tag=11,e=Nh(null,e,t,a,n);break t}else if(u===Y){e.tag=14,e=Bh(null,e,t,a,n);break t}}throw e=bt(t)||t,Error(o(306,e,""))}}return e;case 0:return wc(t,e,e.type,e.pendingProps,n);case 1:return a=e.type,u=ya(a,e.pendingProps),Gh(t,e,a,u,n);case 3:t:{if(Ht(e,e.stateNode.containerInfo),t===null)throw Error(o(387));a=e.pendingProps;var c=e.memoizedState;u=c.element,sc(t,e),Vl(e,a,null,n);var f=e.memoizedState;if(a=f.cache,On(e,Xt,a),a!==c.cache&&ec(e,[Xt],n,!0),Xl(),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=Xh(t,e,a,n);break t}else if(a!==u){u=xe(Error(o(424)),e),jl(u),e=Xh(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=we(t.firstChild),$t=e,yt=!0,Tn=null,Ue=!0,n=Hf(e,null,a,n),e.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(sa(),a===u){e=on(t,e,n);break t}te(t,e,a,n)}e=e.child}return e;case 26:return vu(t,e),t===null?(n=lm(e.type,null,e.pendingProps,null))?e.memoizedState=n:yt||(n=e.type,t=e.pendingProps,a=wu(rt.current).createElement(n),a[Wt]=e,a[se]=t,ee(a,n,t),kt(a),e.stateNode=a):e.memoizedState=lm(e.type,t.memoizedProps,e.pendingProps,t.memoizedState),null;case 27:return Fe(e),t===null&&yt&&(a=e.stateNode=em(e.type,e.pendingProps,rt.current),$t=e,Ue=!0,u=Ut,qn(e.type)?(_o=u,Ut=we(a.firstChild)):Ut=u),te(t,e,e.pendingProps.children,n),vu(t,e),t===null&&(e.flags|=4194304),e.child;case 5:return t===null&&yt&&((u=a=Ut)&&(a=Vv(a,e.type,e.pendingProps,Ue),a!==null?(e.stateNode=a,$t=e,Ut=we(a.firstChild),Ue=!1,u=!0):u=!1),u||Mn(e)),Fe(e),u=e.type,c=e.pendingProps,f=t!==null?t.memoizedProps:null,a=c.children,po(u,c)?a=null:f!==null&&po(u,f)&&(e.flags|=32),e.memoizedState!==null&&(u=mc(t,e,iv,null,null,n),ri._currentValue=u),vu(t,e),te(t,e,a,n),e.child;case 6:return t===null&&yt&&((t=n=Ut)&&(n=Kv(n,e.pendingProps,Ue),n!==null?(e.stateNode=n,$t=e,Ut=null,t=!0):t=!1),t||Mn(e)),null;case 13:return Vh(t,e,n);case 4:return Ht(e,e.stateNode.containerInfo),a=e.pendingProps,t===null?e.child=da(e,null,a,n):te(t,e,a,n),e.child;case 11:return Nh(t,e,e.type,e.pendingProps,n);case 7:return te(t,e,e.pendingProps,n),e.child;case 8:return te(t,e,e.pendingProps.children,n),e.child;case 12:return te(t,e,e.pendingProps.children,n),e.child;case 10:return a=e.pendingProps,On(e,e.type,a.value),te(t,e,a.children,n),e.child;case 9:return u=e.type._context,a=e.pendingProps.children,oa(e),u=It(u),a=a(u),e.flags|=1,te(t,e,a,n),e.child;case 14:return Bh(t,e,e.type,e.pendingProps,n);case 15:return jh(t,e,e.type,e.pendingProps,n);case 19:return Zh(t,e,n);case 31:return dv(t,e,n);case 22:return Hh(t,e,n,e.pendingProps);case 24:return oa(e),a=It(Xt),t===null?(u=lc(),u===null&&(u=zt,c=nc(),u.pooledCache=c,c.refCount++,c!==null&&(u.pooledCacheLanes|=n),u=c),e.memoizedState={parent:a,cache:u},uc(e),On(e,Xt,u)):((t.lanes&n)!==0&&(sc(t,e),Vl(e,null,null,n),Xl()),u=t.memoizedState,c=e.memoizedState,u.parent!==a?(u={parent:a,cache:a},e.memoizedState=u,e.lanes===0&&(e.memoizedState=e.updateQueue.baseState=u),On(e,Xt,a)):(a=c.cache,On(e,Xt,a),a!==u.cache&&ec(e,[Xt],n,!0))),te(t,e,e.pendingProps.children,n),e.child;case 29:throw e.pendingProps}throw Error(o(156,e.tag))}function rn(t){t.flags|=4}function Gc(t,e,n,a,u){if((e=(t.mode&32)!==0)&&(e=!1),e){if(t.flags|=16777216,(u&335544128)===u)if(t.stateNode.complete)t.flags|=8192;else if(bd())t.flags|=8192;else throw ha=nu,ic}else t.flags&=-16777217}function Ph(t,e){if(e.type!=="stylesheet"||(e.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!om(e))if(bd())t.flags|=8192;else throw ha=nu,ic}function Su(t,e){e!==null&&(t.flags|=4),t.flags&16384&&(e=t.tag!==22?Or():536870912,t.lanes|=e,il|=e)}function Fl(t,e){if(!yt)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 u=t.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags&65011712,a|=u.flags&65011712,u.return=t,u=u.sibling;else for(u=t.child;u!==null;)n|=u.lanes|u.childLanes,a|=u.subtreeFlags,a|=u.flags,u.return=t,u=u.sibling;return t.subtreeFlags|=a,t.childLanes=n,e}function yv(t,e,n){var a=e.pendingProps;switch(Fs(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),un(Xt),Dt(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Za(e)?rn(e):t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,$s())),Lt(e),null;case 26:var u=e.type,c=e.memoizedState;return t===null?(rn(e),c!==null?(Lt(e),Ph(e,c)):(Lt(e),Gc(e,u,null,a,n))):c?c!==t.memoizedState?(rn(e),Lt(e),Ph(e,c)):(Lt(e),e.flags&=-16777217):(t=t.memoizedProps,t!==a&&rn(e),Lt(e),Gc(e,u,t,a,n)),null;case 27:if(We(e),n=rt.current,u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&rn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}t=J.current,Za(e)?Cf(e):(t=em(u,a,n),e.stateNode=t,rn(e))}return Lt(e),null;case 5:if(We(e),u=e.type,t!==null&&e.stateNode!=null)t.memoizedProps!==a&&rn(e);else{if(!a){if(e.stateNode===null)throw Error(o(166));return Lt(e),null}if(c=J.current,Za(e))Cf(e);else{var f=wu(rt.current);switch(c){case 1:c=f.createElementNS("http://www.w3.org/2000/svg",u);break;case 2:c=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);break;default:switch(u){case"svg":c=f.createElementNS("http://www.w3.org/2000/svg",u);break;case"math":c=f.createElementNS("http://www.w3.org/1998/Math/MathML",u);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(u,{is:a.is}):f.createElement(u)}}c[Wt]=e,c[se]=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(ee(c,u,a),u){case"button":case"input":case"select":case"textarea":a=!!a.autoFocus;break t;case"img":a=!0;break t;default:a=!1}a&&rn(e)}}return Lt(e),Gc(e,e.type,t===null?null:t.memoizedProps,e.pendingProps,n),null;case 6:if(t&&e.stateNode!=null)t.memoizedProps!==a&&rn(e);else{if(typeof a!="string"&&e.stateNode===null)throw Error(o(166));if(t=rt.current,Za(e)){if(t=e.stateNode,n=e.memoizedProps,a=null,u=$t,u!==null)switch(u.tag){case 27:case 5:a=u.memoizedProps}t[Wt]=e,t=!!(t.nodeValue===n||a!==null&&a.suppressHydrationWarning===!0||Vd(t.nodeValue,n)),t||Mn(e,!0)}else t=wu(t).createTextNode(a),t[Wt]=e,e.stateNode=t}return Lt(e),null;case 31:if(n=e.memoizedState,t===null||t.memoizedState!==null){if(a=Za(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[Wt]=e}else sa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),t=!1}else n=$s(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=n),t=!0;if(!t)return e.flags&256?(be(e),e):(be(e),null);if((e.flags&128)!==0)throw Error(o(558))}return Lt(e),null;case 13:if(a=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(u=Za(e),a!==null&&a.dehydrated!==null){if(t===null){if(!u)throw Error(o(318));if(u=e.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(o(317));u[Wt]=e}else sa(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;Lt(e),u=!1}else u=$s(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=u),u=!0;if(!u)return e.flags&256?(be(e),e):(be(e),null)}return be(e),(e.flags&128)!==0?(e.lanes=n,e):(n=a!==null,t=t!==null&&t.memoizedState!==null,n&&(a=e.child,u=null,a.alternate!==null&&a.alternate.memoizedState!==null&&a.alternate.memoizedState.cachePool!==null&&(u=a.alternate.memoizedState.cachePool.pool),c=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(c=a.memoizedState.cachePool.pool),c!==u&&(a.flags|=2048)),n!==t&&n&&(e.child.flags|=8192),Su(e,e.updateQueue),Lt(e),null);case 4:return Dt(),t===null&&ro(e.stateNode.containerInfo),Lt(e),null;case 10:return un(e.type),Lt(e),null;case 19:if(H(qt),a=e.memoizedState,a===null)return Lt(e),null;if(u=(e.flags&128)!==0,c=a.rendering,c===null)if(u)Fl(a,!1);else{if(jt!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(c=uu(t),c!==null){for(e.flags|=128,Fl(a,!1),t=c.updateQueue,e.updateQueue=t,Su(e,t),e.subtreeFlags=0,t=n,n=e.child;n!==null;)Rf(n,t),n=n.sibling;return K(qt,qt.current&1|2),yt&&an(e,a.treeForkCount),e.child}t=t.sibling}a.tail!==null&&le()>Tu&&(e.flags|=128,u=!0,Fl(a,!1),e.lanes=4194304)}else{if(!u)if(t=uu(c),t!==null){if(e.flags|=128,u=!0,t=t.updateQueue,e.updateQueue=t,Su(e,t),Fl(a,!0),a.tail===null&&a.tailMode==="hidden"&&!c.alternate&&!yt)return Lt(e),null}else 2*le()-a.renderingStartTime>Tu&&n!==536870912&&(e.flags|=128,u=!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=le(),t.sibling=null,n=qt.current,K(qt,u?n&1|2:n&1),yt&&an(e,a.treeForkCount),t):(Lt(e),null);case 22:case 23:return be(e),fc(),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&&Su(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(ra),null;case 24:return n=null,t!==null&&(n=t.memoizedState.cache),e.memoizedState.cache!==n&&(e.flags|=2048),un(Xt),Lt(e),null;case 25:return null;case 30:return null}throw Error(o(156,e.tag))}function pv(t,e){switch(Fs(e),e.tag){case 1:return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return un(Xt),Dt(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 26:case 27:case 5:return We(e),null;case 31:if(e.memoizedState!==null){if(be(e),e.alternate===null)throw Error(o(340));sa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 13:if(be(e),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(o(340));sa()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return H(qt),null;case 4:return Dt(),null;case 10:return un(e.type),null;case 22:case 23:return be(e),fc(),t!==null&&H(ra),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 24:return un(Xt),null;case 25:return null;default:return null}}function kh(t,e){switch(Fs(e),e.tag){case 3:un(Xt),Dt();break;case 26:case 27:case 5:We(e);break;case 4:Dt();break;case 31:e.memoizedState!==null&&be(e);break;case 13:be(e);break;case 19:H(qt);break;case 10:un(e.type);break;case 22:case 23:be(e),fc(),t!==null&&H(ra);break;case 24:un(Xt)}}function Wl(t,e){try{var n=e.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var u=a.next;n=u;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!==u)}}catch(p){Mt(e,e.return,p)}}function Un(t,e,n){try{var a=e.updateQueue,u=a!==null?a.lastEffect:null;if(u!==null){var c=u.next;a=c;do{if((a.tag&t)===t){var f=a.inst,p=f.destroy;if(p!==void 0){f.destroy=void 0,u=e;var R=n,x=p;try{x()}catch(w){Mt(u,R,w)}}}a=a.next}while(a!==c)}}catch(w){Mt(e,e.return,w)}}function Fh(t){var e=t.updateQueue;if(e!==null){var n=t.stateNode;try{Qf(e,n)}catch(a){Mt(t,t.return,a)}}}function Wh(t,e,n){n.props=ya(t.type,t.memoizedProps),n.state=t.memoizedState;try{n.componentWillUnmount()}catch(a){Mt(t,e,a)}}function $l(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(u){Mt(t,e,u)}}function Je(t,e){var n=t.ref,a=t.refCleanup;if(n!==null)if(typeof a=="function")try{a()}catch(u){Mt(t,e,u)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(u){Mt(t,e,u)}else n.current=null}function $h(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(u){Mt(t,t.return,u)}}function Xc(t,e,n){try{var a=t.stateNode;Hv(a,t.type,n,e),a[se]=e}catch(u){Mt(t,t.return,u)}}function Ih(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&qn(t.type)||t.tag===4}function Vc(t){t:for(;;){for(;t.sibling===null;){if(t.return===null||Ih(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&&qn(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 Kc(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=tn));else if(a!==4&&(a===27&&qn(t.type)&&(n=t.stateNode,e=null),t=t.child,t!==null))for(Kc(t,e,n),t=t.sibling;t!==null;)Kc(t,e,n),t=t.sibling}function bu(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&&qn(t.type)&&(n=t.stateNode),t=t.child,t!==null))for(bu(t,e,n),t=t.sibling;t!==null;)bu(t,e,n),t=t.sibling}function td(t){var e=t.stateNode,n=t.memoizedProps;try{for(var a=t.type,u=e.attributes;u.length;)e.removeAttributeNode(u[0]);ee(e,a,n),e[Wt]=t,e[se]=n}catch(c){Mt(t,t.return,c)}}var fn=!1,Zt=!1,Zc=!1,ed=typeof WeakSet=="function"?WeakSet:Set,Ft=null;function vv(t,e){if(t=t.containerInfo,mo=Yu,t=df(t),qs(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 u=a.anchorOffset,c=a.focusNode;a=a.focusOffset;try{n.nodeType,c.nodeType}catch{n=null;break t}var f=0,p=-1,R=-1,x=0,w=0,B=t,z=null;e:for(;;){for(var D;B!==n||u!==0&&B.nodeType!==3||(p=f+u),B!==c||a!==0&&B.nodeType!==3||(R=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&&++x===u&&(p=f),z===c&&++w===a&&(R=f),(D=B.nextSibling)!==null)break;B=z,z=B.parentNode}B=D}n=p===-1||R===-1?null:{start:p,end:R}}else n=null}n=n||{start:0,end:0}}else n=null;for(yo={focusedElem:t,selectionRange:n},Yu=!1,Ft=e;Ft!==null;)if(e=Ft,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,Ft=t;else for(;Ft!==null;){switch(e=Ft,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++)u=t[n],u.ref.impl=u.nextImpl;break;case 11:case 15:break;case 1:if((t&1024)!==0&&c!==null){t=void 0,n=e,u=c.memoizedProps,c=c.memoizedState,a=n.stateNode;try{var P=ya(n.type,u);t=a.getSnapshotBeforeUpdate(P,c),a.__reactInternalSnapshotBeforeUpdate=t}catch(lt){Mt(n,n.return,lt)}}break;case 3:if((t&1024)!==0){if(t=e.stateNode.containerInfo,n=t.nodeType,n===9)go(t);else if(n===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":go(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,Ft=t;break}Ft=e.return}}function nd(t,e,n){var a=n.flags;switch(n.tag){case 0:case 11:case 15:dn(t,n),a&4&&Wl(5,n);break;case 1:if(dn(t,n),a&4)if(t=n.stateNode,e===null)try{t.componentDidMount()}catch(f){Mt(n,n.return,f)}else{var u=ya(n.type,e.memoizedProps);e=e.memoizedState;try{t.componentDidUpdate(u,e,t.__reactInternalSnapshotBeforeUpdate)}catch(f){Mt(n,n.return,f)}}a&64&&Fh(n),a&512&&$l(n,n.return);break;case 3:if(dn(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{Qf(t,e)}catch(f){Mt(n,n.return,f)}}break;case 27:e===null&&a&4&&td(n);case 26:case 5:dn(t,n),e===null&&a&4&&$h(n),a&512&&$l(n,n.return);break;case 12:dn(t,n);break;case 31:dn(t,n),a&4&&id(t,n);break;case 13:dn(t,n),a&4&&ud(t,n),a&64&&(t=n.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(n=Ov.bind(null,n),Zv(t,n))));break;case 22:if(a=n.memoizedState!==null||fn,!a){e=e!==null&&e.memoizedState!==null||Zt,u=fn;var c=Zt;fn=a,(Zt=e)&&!c?mn(t,n,(n.subtreeFlags&8772)!==0):dn(t,n),fn=u,Zt=c}break;case 30:break;default:dn(t,n)}}function ad(t){var e=t.alternate;e!==null&&(t.alternate=null,ad(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&Rs(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,oe=!1;function hn(t,e,n){for(n=n.child;n!==null;)ld(t,e,n),n=n.sibling}function ld(t,e,n){if(ye&&typeof ye.onCommitFiberUnmount=="function")try{ye.onCommitFiberUnmount(Rl,n)}catch{}switch(n.tag){case 26:Zt||Je(n,e),hn(t,e,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Zt||Je(n,e);var a=wt,u=oe;qn(n.type)&&(wt=n.stateNode,oe=!1),hn(t,e,n),si(n.stateNode),wt=a,oe=u;break;case 5:Zt||Je(n,e);case 6:if(a=wt,u=oe,wt=null,hn(t,e,n),wt=a,oe=u,wt!==null)if(oe)try{(wt.nodeType===9?wt.body:wt.nodeName==="HTML"?wt.ownerDocument.body:wt).removeChild(n.stateNode)}catch(c){Mt(n,e,c)}else try{wt.removeChild(n.stateNode)}catch(c){Mt(n,e,c)}break;case 18:wt!==null&&(oe?(t=wt,Fd(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,n.stateNode),dl(t)):Fd(wt,n.stateNode));break;case 4:a=wt,u=oe,wt=n.stateNode.containerInfo,oe=!0,hn(t,e,n),wt=a,oe=u;break;case 0:case 11:case 14:case 15:Un(2,n,e),Zt||Un(4,n,e),hn(t,e,n);break;case 1:Zt||(Je(n,e),a=n.stateNode,typeof a.componentWillUnmount=="function"&&Wh(n,e,a)),hn(t,e,n);break;case 21:hn(t,e,n);break;case 22:Zt=(a=Zt)||n.memoizedState!==null,hn(t,e,n),Zt=a;break;default:hn(t,e,n)}}function id(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{dl(t)}catch(n){Mt(e,e.return,n)}}}function ud(t,e){if(e.memoizedState===null&&(t=e.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{dl(t)}catch(n){Mt(e,e.return,n)}}function gv(t){switch(t.tag){case 31:case 13:case 19:var e=t.stateNode;return e===null&&(e=t.stateNode=new ed),e;case 22:return t=t.stateNode,e=t._retryCache,e===null&&(e=t._retryCache=new ed),e;default:throw Error(o(435,t.tag))}}function _u(t,e){var n=gv(t);e.forEach(function(a){if(!n.has(a)){n.add(a);var u=Cv.bind(null,t,a);a.then(u,u)}})}function re(t,e){var n=e.deletions;if(n!==null)for(var a=0;a<n.length;a++){var u=n[a],c=t,f=e,p=f;t:for(;p!==null;){switch(p.tag){case 27:if(qn(p.type)){wt=p.stateNode,oe=!1;break t}break;case 5:wt=p.stateNode,oe=!1;break t;case 3:case 4:wt=p.stateNode.containerInfo,oe=!0;break t}p=p.return}if(wt===null)throw Error(o(160));ld(c,f,u),wt=null,oe=!1,c=u.alternate,c!==null&&(c.return=null),u.return=null}if(e.subtreeFlags&13886)for(e=e.child;e!==null;)sd(e,t),e=e.sibling}var Ge=null;function sd(t,e){var n=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:re(e,t),fe(t),a&4&&(Un(3,t,t.return),Wl(3,t),Un(5,t,t.return));break;case 1:re(e,t),fe(t),a&512&&(Zt||n===null||Je(n,n.return)),a&64&&fn&&(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 u=Ge;if(re(e,t),fe(t),a&512&&(Zt||n===null||Je(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,u=u.ownerDocument||u;e:switch(a){case"title":c=u.getElementsByTagName("title")[0],(!c||c[Ml]||c[Wt]||c.namespaceURI==="http://www.w3.org/2000/svg"||c.hasAttribute("itemprop"))&&(c=u.createElement(a),u.head.insertBefore(c,u.querySelector("head > title"))),ee(c,a,n),c[Wt]=t,kt(c),a=c;break t;case"link":var f=sm("link","href",u).get(a+(n.href||""));if(f){for(var p=0;p<f.length;p++)if(c=f[p],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(p,1);break e}}c=u.createElement(a),ee(c,a,n),u.head.appendChild(c);break;case"meta":if(f=sm("meta","content",u).get(a+(n.content||""))){for(p=0;p<f.length;p++)if(c=f[p],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(p,1);break e}}c=u.createElement(a),ee(c,a,n),u.head.appendChild(c);break;default:throw Error(o(468,a))}c[Wt]=t,kt(c),a=c}t.stateNode=a}else cm(u,t.type,t.stateNode);else t.stateNode=um(u,a,t.memoizedProps);else c!==a?(c===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):c.count--,a===null?cm(u,t.type,t.stateNode):um(u,a,t.memoizedProps)):a===null&&t.stateNode!==null&&Xc(t,t.memoizedProps,n.memoizedProps)}break;case 27:re(e,t),fe(t),a&512&&(Zt||n===null||Je(n,n.return)),n!==null&&a&4&&Xc(t,t.memoizedProps,n.memoizedProps);break;case 5:if(re(e,t),fe(t),a&512&&(Zt||n===null||Je(n,n.return)),t.flags&32){u=t.stateNode;try{Ba(u,"")}catch(P){Mt(t,t.return,P)}}a&4&&t.stateNode!=null&&(u=t.memoizedProps,Xc(t,u,n!==null?n.memoizedProps:u)),a&1024&&(Zc=!0);break;case 6:if(re(e,t),fe(t),a&4){if(t.stateNode===null)throw Error(o(162));a=t.memoizedProps,n=t.stateNode;try{n.nodeValue=a}catch(P){Mt(t,t.return,P)}}break;case 3:if(ju=null,u=Ge,Ge=Nu(e.containerInfo),re(e,t),Ge=u,fe(t),a&4&&n!==null&&n.memoizedState.isDehydrated)try{dl(e.containerInfo)}catch(P){Mt(t,t.return,P)}Zc&&(Zc=!1,cd(t));break;case 4:a=Ge,Ge=Nu(t.stateNode.containerInfo),re(e,t),fe(t),Ge=a;break;case 12:re(e,t),fe(t);break;case 31:re(e,t),fe(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,_u(t,a)));break;case 13:re(e,t),fe(t),t.child.flags&8192&&t.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(Eu=le()),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,_u(t,a)));break;case 22:u=t.memoizedState!==null;var R=n!==null&&n.memoizedState!==null,x=fn,w=Zt;if(fn=x||u,Zt=w||R,re(e,t),Zt=w,fn=x,fe(t),a&8192)t:for(e=t.stateNode,e._visibility=u?e._visibility&-2:e._visibility|1,u&&(n===null||R||fn||Zt||pa(t)),n=null,e=t;;){if(e.tag===5||e.tag===26){if(n===null){R=n=e;try{if(c=R.stateNode,u)f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none";else{p=R.stateNode;var B=R.memoizedProps.style,z=B!=null&&B.hasOwnProperty("display")?B.display:null;p.style.display=z==null||typeof z=="boolean"?"":(""+z).trim()}}catch(P){Mt(R,R.return,P)}}}else if(e.tag===6){if(n===null){R=e;try{R.stateNode.nodeValue=u?"":R.memoizedProps}catch(P){Mt(R,R.return,P)}}}else if(e.tag===18){if(n===null){R=e;try{var D=R.stateNode;u?Wd(D,!0):Wd(R.stateNode,!1)}catch(P){Mt(R,R.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,_u(t,n))));break;case 19:re(e,t),fe(t),a&4&&(a=t.updateQueue,a!==null&&(t.updateQueue=null,_u(t,a)));break;case 30:break;case 21:break;default:re(e,t),fe(t)}}function fe(t){var e=t.flags;if(e&2){try{for(var n,a=t.return;a!==null;){if(Ih(a)){n=a;break}a=a.return}if(n==null)throw Error(o(160));switch(n.tag){case 27:var u=n.stateNode,c=Vc(t);bu(t,c,u);break;case 5:var f=n.stateNode;n.flags&32&&(Ba(f,""),n.flags&=-33);var p=Vc(t);bu(t,p,f);break;case 3:case 4:var R=n.stateNode.containerInfo,x=Vc(t);Kc(t,x,R);break;default:throw Error(o(161))}}catch(w){Mt(t,t.return,w)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function cd(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var e=t;cd(e),e.tag===5&&e.flags&1024&&e.stateNode.reset(),t=t.sibling}}function dn(t,e){if(e.subtreeFlags&8772)for(e=e.child;e!==null;)nd(t,e.alternate,e),e=e.sibling}function pa(t){for(t=t.child;t!==null;){var e=t;switch(e.tag){case 0:case 11:case 14:case 15:Un(4,e,e.return),pa(e);break;case 1:Je(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount=="function"&&Wh(e,e.return,n),pa(e);break;case 27:si(e.stateNode);case 26:case 5:Je(e,e.return),pa(e);break;case 22:e.memoizedState===null&&pa(e);break;case 30:pa(e);break;default:pa(e)}t=t.sibling}}function mn(t,e,n){for(n=n&&(e.subtreeFlags&8772)!==0,e=e.child;e!==null;){var a=e.alternate,u=t,c=e,f=c.flags;switch(c.tag){case 0:case 11:case 15:mn(u,c,n),Wl(4,c);break;case 1:if(mn(u,c,n),a=c,u=a.stateNode,typeof u.componentDidMount=="function")try{u.componentDidMount()}catch(x){Mt(a,a.return,x)}if(a=c,u=a.updateQueue,u!==null){var p=a.stateNode;try{var R=u.shared.hiddenCallbacks;if(R!==null)for(u.shared.hiddenCallbacks=null,u=0;u<R.length;u++)qf(R[u],p)}catch(x){Mt(a,a.return,x)}}n&&f&64&&Fh(c),$l(c,c.return);break;case 27:td(c);case 26:case 5:mn(u,c,n),n&&a===null&&f&4&&$h(c),$l(c,c.return);break;case 12:mn(u,c,n);break;case 31:mn(u,c,n),n&&f&4&&id(u,c);break;case 13:mn(u,c,n),n&&f&4&&ud(u,c);break;case 22:c.memoizedState===null&&mn(u,c,n),$l(c,c.return);break;case 30:break;default:mn(u,c,n)}e=e.sibling}}function Jc(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 Pc(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 Xe(t,e,n,a){if(e.subtreeFlags&10256)for(e=e.child;e!==null;)od(t,e,n,a),e=e.sibling}function od(t,e,n,a){var u=e.flags;switch(e.tag){case 0:case 11:case 15:Xe(t,e,n,a),u&2048&&Wl(9,e);break;case 1:Xe(t,e,n,a);break;case 3:Xe(t,e,n,a),u&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(u&2048){Xe(t,e,n,a),t=e.stateNode;try{var c=e.memoizedProps,f=c.id,p=c.onPostCommit;typeof p=="function"&&p(f,e.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(R){Mt(e,e.return,R)}}else Xe(t,e,n,a);break;case 31:Xe(t,e,n,a);break;case 13:Xe(t,e,n,a);break;case 23:break;case 22:c=e.stateNode,f=e.alternate,e.memoizedState!==null?c._visibility&2?Xe(t,e,n,a):Il(t,e):c._visibility&2?Xe(t,e,n,a):(c._visibility|=2,nl(t,e,n,a,(e.subtreeFlags&10256)!==0||!1)),u&2048&&Jc(f,e);break;case 24:Xe(t,e,n,a),u&2048&&Pc(e.alternate,e);break;default:Xe(t,e,n,a)}}function nl(t,e,n,a,u){for(u=u&&((e.subtreeFlags&10256)!==0||!1),e=e.child;e!==null;){var c=t,f=e,p=n,R=a,x=f.flags;switch(f.tag){case 0:case 11:case 15:nl(c,f,p,R,u),Wl(8,f);break;case 23:break;case 22:var w=f.stateNode;f.memoizedState!==null?w._visibility&2?nl(c,f,p,R,u):Il(c,f):(w._visibility|=2,nl(c,f,p,R,u)),u&&x&2048&&Jc(f.alternate,f);break;case 24:nl(c,f,p,R,u),u&&x&2048&&Pc(f.alternate,f);break;default:nl(c,f,p,R,u)}e=e.sibling}}function Il(t,e){if(e.subtreeFlags&10256)for(e=e.child;e!==null;){var n=t,a=e,u=a.flags;switch(a.tag){case 22:Il(n,a),u&2048&&Jc(a.alternate,a);break;case 24:Il(n,a),u&2048&&Pc(a.alternate,a);break;default:Il(n,a)}e=e.sibling}}var ti=8192;function al(t,e,n){if(t.subtreeFlags&ti)for(t=t.child;t!==null;)rd(t,e,n),t=t.sibling}function rd(t,e,n){switch(t.tag){case 26:al(t,e,n),t.flags&ti&&t.memoizedState!==null&&lg(n,Ge,t.memoizedState,t.memoizedProps);break;case 5:al(t,e,n);break;case 3:case 4:var a=Ge;Ge=Nu(t.stateNode.containerInfo),al(t,e,n),Ge=a;break;case 22:t.memoizedState===null&&(a=t.alternate,a!==null&&a.memoizedState!==null?(a=ti,ti=16777216,al(t,e,n),ti=a):al(t,e,n));break;default:al(t,e,n)}}function fd(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 ei(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];Ft=a,dd(a,t)}fd(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)hd(t),t=t.sibling}function hd(t){switch(t.tag){case 0:case 11:case 15:ei(t),t.flags&2048&&Un(9,t,t.return);break;case 3:ei(t);break;case 12:ei(t);break;case 22:var e=t.stateNode;t.memoizedState!==null&&e._visibility&2&&(t.return===null||t.return.tag!==13)?(e._visibility&=-3,Ru(t)):ei(t);break;default:ei(t)}}function Ru(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];Ft=a,dd(a,t)}fd(t)}for(t=t.child;t!==null;){switch(e=t,e.tag){case 0:case 11:case 15:Un(8,e,e.return),Ru(e);break;case 22:n=e.stateNode,n._visibility&2&&(n._visibility&=-3,Ru(e));break;default:Ru(e)}t=t.sibling}}function dd(t,e){for(;Ft!==null;){var n=Ft;switch(n.tag){case 0:case 11:case 15:Un(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,Ft=a;else t:for(n=t;Ft!==null;){a=Ft;var u=a.sibling,c=a.return;if(ad(a),a===n){Ft=null;break t}if(u!==null){u.return=c,Ft=u;break t}Ft=c}}}var Sv={getCacheForType:function(t){var e=It(Xt),n=e.data.get(t);return n===void 0&&(n=t(),e.data.set(t,n)),n},cacheSignal:function(){return It(Xt).controller.signal}},bv=typeof WeakMap=="function"?WeakMap:Map,St=0,zt=null,ft=null,dt=0,Tt=0,_e=null,Ln=!1,ll=!1,kc=!1,yn=0,jt=0,wn=0,va=0,Fc=0,Re=0,il=0,ni=null,he=null,Wc=!1,Eu=0,md=0,Tu=1/0,Mu=null,Nn=null,Jt=0,Bn=null,ul=null,pn=0,$c=0,Ic=null,yd=null,ai=0,to=null;function Ee(){return(St&2)!==0&&dt!==0?dt&-dt:U.T!==null?uo():zr()}function pd(){if(Re===0)if((dt&536870912)===0||yt){var t=Li;Li<<=1,(Li&3932160)===0&&(Li=262144),Re=t}else Re=536870912;return t=Se.current,t!==null&&(t.flags|=32),Re}function de(t,e,n){(t===zt&&(Tt===2||Tt===9)||t.cancelPendingCommit!==null)&&(sl(t,0),jn(t,dt,Re,!1)),Tl(t,n),((St&2)===0||t!==zt)&&(t===zt&&((St&2)===0&&(va|=n),jt===4&&jn(t,dt,Re,!1)),Pe(t))}function vd(t,e,n){if((St&6)!==0)throw Error(o(327));var a=!n&&(e&127)===0&&(e&t.expiredLanes)===0||El(t,e),u=a?Ev(t,e):no(t,e,!0),c=a;do{if(u===0){ll&&!a&&jn(t,e,0,!1);break}else{if(n=t.current.alternate,c&&!_v(n)){u=no(t,e,!1),c=!1;continue}if(u===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 p=t;u=ni;var R=p.current.memoizedState.isDehydrated;if(R&&(sl(p,f).flags|=256),f=no(p,f,!1),f!==2){if(kc&&!R){p.errorRecoveryDisabledLanes|=c,va|=c,u=4;break t}c=he,he=u,c!==null&&(he===null?he=c:he.push.apply(he,c))}u=f}if(c=!1,u!==2)continue}}if(u===1){sl(t,0),jn(t,e,0,!0);break}t:{switch(a=t,c=u,c){case 0:case 1:throw Error(o(345));case 4:if((e&4194048)!==e)break;case 6:jn(a,e,Re,!Ln);break t;case 2:he=null;break;case 3:case 5:break;default:throw Error(o(329))}if((e&62914560)===e&&(u=Eu+300-le(),10<u)){if(jn(a,e,Re,!Ln),Ni(a,0,!0)!==0)break t;pn=e,a.timeoutHandle=Pd(gd.bind(null,a,n,he,Mu,Wc,e,Re,va,il,Ln,c,"Throttled",-0,0),u);break t}gd(a,n,he,Mu,Wc,e,Re,va,il,Ln,c,null,-0,0)}}break}while(!0);Pe(t)}function gd(t,e,n,a,u,c,f,p,R,x,w,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:tn},rd(e,c,B);var P=(c&62914560)===c?Eu-le():(c&4194048)===c?md-le():0;if(P=ig(B,P),P!==null){pn=c,t.cancelPendingCommit=P(Od.bind(null,t,e,c,n,a,u,f,p,R,w,B,null,z,D)),jn(t,c,f,!x);return}}Od(t,e,c,n,a,u,f,p,R)}function _v(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 u=n[a],c=u.getSnapshot;u=u.value;try{if(!ve(c(),u))return!1}catch{return!1}}if(n=e.child,e.subtreeFlags&16384&&n!==null)n.return=e,e=n;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function jn(t,e,n,a){e&=~Fc,e&=~va,t.suspendedLanes|=e,t.pingedLanes&=~e,a&&(t.warmLanes|=e),a=t.expirationTimes;for(var u=e;0<u;){var c=31-pe(u),f=1<<c;a[c]=-1,u&=~f}n!==0&&Cr(t,n,e)}function Ou(){return(St&6)===0?(li(0),!1):!0}function eo(){if(ft!==null){if(Tt===0)var t=ft.return;else t=ft,ln=ca=null,vc(t),Wa=null,Ql=0,t=ft;for(;t!==null;)kh(t.alternate,t),t=t.return;ft=null}}function sl(t,e){var n=t.timeoutHandle;n!==-1&&(t.timeoutHandle=-1,Yv(n)),n=t.cancelPendingCommit,n!==null&&(t.cancelPendingCommit=null,n()),pn=0,eo(),zt=t,ft=n=nn(t.current,null),dt=e,Tt=0,_e=null,Ln=!1,ll=El(t,e),kc=!1,il=Re=Fc=va=wn=jt=0,he=ni=null,Wc=!1,(e&8)!==0&&(e|=e&32);var a=t.entangledLanes;if(a!==0)for(t=t.entanglements,a&=e;0<a;){var u=31-pe(a),c=1<<u;e|=t[u],a&=~c}return yn=e,Ji(),n}function Sd(t,e){ct=null,U.H=Pl,e===Fa||e===eu?(e=Nf(),Tt=3):e===ic?(e=Nf(),Tt=4):Tt=e===Lc?8:e!==null&&typeof e=="object"&&typeof e.then=="function"?6:1,_e=e,ft===null&&(jt=1,yu(t,xe(e,t.current)))}function bd(){var t=Se.current;return t===null?!0:(dt&4194048)===dt?Le===null:(dt&62914560)===dt||(dt&536870912)!==0?t===Le:!1}function _d(){var t=U.H;return U.H=Pl,t===null?Pl:t}function Rd(){var t=U.A;return U.A=Sv,t}function Cu(){jt=4,Ln||(dt&4194048)!==dt&&Se.current!==null||(ll=!0),(wn&134217727)===0&&(va&134217727)===0||zt===null||jn(zt,dt,Re,!1)}function no(t,e,n){var a=St;St|=2;var u=_d(),c=Rd();(zt!==t||dt!==e)&&(Mu=null,sl(t,e)),e=!1;var f=jt;t:do try{if(Tt!==0&&ft!==null){var p=ft,R=_e;switch(Tt){case 8:eo(),f=6;break t;case 3:case 2:case 9:case 6:Se.current===null&&(e=!0);var x=Tt;if(Tt=0,_e=null,cl(t,p,R,x),n&&ll){f=0;break t}break;default:x=Tt,Tt=0,_e=null,cl(t,p,R,x)}}Rv(),f=jt;break}catch(w){Sd(t,w)}while(!0);return e&&t.shellSuspendCounter++,ln=ca=null,St=a,U.H=u,U.A=c,ft===null&&(zt=null,dt=0,Ji()),f}function Rv(){for(;ft!==null;)Ed(ft)}function Ev(t,e){var n=St;St|=2;var a=_d(),u=Rd();zt!==t||dt!==e?(Mu=null,Tu=le()+500,sl(t,e)):ll=El(t,e);t:do try{if(Tt!==0&&ft!==null){e=ft;var c=_e;e:switch(Tt){case 1:Tt=0,_e=null,cl(t,e,c,1);break;case 2:case 9:if(Lf(c)){Tt=0,_e=null,Td(e);break}e=function(){Tt!==2&&Tt!==9||zt!==t||(Tt=7),Pe(t)},c.then(e,e);break t;case 3:Tt=7;break t;case 4:Tt=5;break t;case 7:Lf(c)?(Tt=0,_e=null,Td(e)):(Tt=0,_e=null,cl(t,e,c,7));break;case 5:var f=null;switch(ft.tag){case 26:f=ft.memoizedState;case 5:case 27:var p=ft;if(f?om(f):p.stateNode.complete){Tt=0,_e=null;var R=p.sibling;if(R!==null)ft=R;else{var x=p.return;x!==null?(ft=x,Au(x)):ft=null}break e}}Tt=0,_e=null,cl(t,e,c,5);break;case 6:Tt=0,_e=null,cl(t,e,c,6);break;case 8:eo(),jt=6;break t;default:throw Error(o(462))}}Tv();break}catch(w){Sd(t,w)}while(!0);return ln=ca=null,U.H=a,U.A=u,St=n,ft!==null?0:(zt=null,dt=0,Ji(),jt)}function Tv(){for(;ft!==null&&!vs();)Ed(ft)}function Ed(t){var e=Jh(t.alternate,t,yn);t.memoizedProps=t.pendingProps,e===null?Au(t):ft=e}function Td(t){var e=t,n=e.alternate;switch(e.tag){case 15:case 0:e=Yh(n,e,e.pendingProps,e.type,void 0,dt);break;case 11:e=Yh(n,e,e.pendingProps,e.type.render,e.ref,dt);break;case 5:vc(e);default:kh(n,e),e=ft=Rf(e,yn),e=Jh(n,e,yn)}t.memoizedProps=t.pendingProps,e===null?Au(t):ft=e}function cl(t,e,n,a){ln=ca=null,vc(e),Wa=null,Ql=0;var u=e.return;try{if(hv(t,u,e,n,dt)){jt=1,yu(t,xe(n,t.current)),ft=null;return}}catch(c){if(u!==null)throw ft=u,c;jt=1,yu(t,xe(n,t.current)),ft=null;return}e.flags&32768?(yt||a===1?t=!0:ll||(dt&536870912)!==0?t=!1:(Ln=t=!0,(a===2||a===9||a===3||a===6)&&(a=Se.current,a!==null&&a.tag===13&&(a.flags|=16384))),Md(e,t)):Au(e)}function Au(t){var e=t;do{if((e.flags&32768)!==0){Md(e,Ln);return}t=e.return;var n=yv(e.alternate,e,yn);if(n!==null){ft=n;return}if(e=e.sibling,e!==null){ft=e;return}ft=e=t}while(e!==null);jt===0&&(jt=5)}function Md(t,e){do{var n=pv(t.alternate,t);if(n!==null){n.flags&=32767,ft=n;return}if(n=t.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!e&&(t=t.sibling,t!==null)){ft=t;return}ft=t=n}while(t!==null);jt=6,ft=null}function Od(t,e,n,a,u,c,f,p,R){t.cancelPendingCommit=null;do xu();while(Jt!==0);if((St&6)!==0)throw Error(o(327));if(e!==null){if(e===t.current)throw Error(o(177));if(c=e.lanes|e.childLanes,c|=Vs,ap(t,n,c,f,p,R),t===zt&&(ft=zt=null,dt=0),ul=e,Bn=t,pn=n,$c=c,Ic=u,yd=a,(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,Av(ne,function(){return Dd(),null})):(t.callbackNode=null,t.callbackPriority=0),a=(e.flags&13878)!==0,(e.subtreeFlags&13878)!==0||a){a=U.T,U.T=null,u=V.p,V.p=2,f=St,St|=4;try{vv(t,e,n)}finally{St=f,V.p=u,U.T=a}}Jt=1,Cd(),Ad(),xd()}}function Cd(){if(Jt===1){Jt=0;var t=Bn,e=ul,n=(e.flags&13878)!==0;if((e.subtreeFlags&13878)!==0||n){n=U.T,U.T=null;var a=V.p;V.p=2;var u=St;St|=4;try{sd(e,t);var c=yo,f=df(t.containerInfo),p=c.focusedElem,R=c.selectionRange;if(f!==p&&p&&p.ownerDocument&&hf(p.ownerDocument.documentElement,p)){if(R!==null&&qs(p)){var x=R.start,w=R.end;if(w===void 0&&(w=x),"selectionStart"in p)p.selectionStart=x,p.selectionEnd=Math.min(w,p.value.length);else{var B=p.ownerDocument||document,z=B&&B.defaultView||window;if(z.getSelection){var D=z.getSelection(),P=p.textContent.length,lt=Math.min(R.start,P),At=R.end===void 0?lt:Math.min(R.end,P);!D.extend&<>At&&(f=At,At=lt,lt=f);var C=ff(p,lt),E=ff(p,At);if(C&&E&&(D.rangeCount!==1||D.anchorNode!==C.node||D.anchorOffset!==C.offset||D.focusNode!==E.node||D.focusOffset!==E.offset)){var A=B.createRange();A.setStart(C.node,C.offset),D.removeAllRanges(),lt>At?(D.addRange(A),D.extend(E.node,E.offset)):(A.setEnd(E.node,E.offset),D.addRange(A))}}}}for(B=[],D=p;D=D.parentNode;)D.nodeType===1&&B.push({element:D,left:D.scrollLeft,top:D.scrollTop});for(typeof p.focus=="function"&&p.focus(),p=0;p<B.length;p++){var N=B[p];N.element.scrollLeft=N.left,N.element.scrollTop=N.top}}Yu=!!mo,yo=mo=null}finally{St=u,V.p=a,U.T=n}}t.current=e,Jt=2}}function Ad(){if(Jt===2){Jt=0;var t=Bn,e=ul,n=(e.flags&8772)!==0;if((e.subtreeFlags&8772)!==0||n){n=U.T,U.T=null;var a=V.p;V.p=2;var u=St;St|=4;try{nd(t,e.alternate,e)}finally{St=u,V.p=a,U.T=n}}Jt=3}}function xd(){if(Jt===4||Jt===3){Jt=0,xi();var t=Bn,e=ul,n=pn,a=yd;(e.subtreeFlags&10256)!==0||(e.flags&10256)!==0?Jt=5:(Jt=0,ul=Bn=null,zd(t,t.pendingLanes));var u=t.pendingLanes;if(u===0&&(Nn=null),bs(n),e=e.stateNode,ye&&typeof ye.onCommitFiberRoot=="function")try{ye.onCommitFiberRoot(Rl,e,void 0,(e.current.flags&128)===128)}catch{}if(a!==null){e=U.T,u=V.p,V.p=2,U.T=null;try{for(var c=t.onRecoverableError,f=0;f<a.length;f++){var p=a[f];c(p.value,{componentStack:p.stack})}}finally{U.T=e,V.p=u}}(pn&3)!==0&&xu(),Pe(t),u=t.pendingLanes,(n&261930)!==0&&(u&42)!==0?t===to?ai++:(ai=0,to=t):ai=0,li(0)}}function zd(t,e){(t.pooledCacheLanes&=e)===0&&(e=t.pooledCache,e!=null&&(t.pooledCache=null,Hl(e)))}function xu(){return Cd(),Ad(),xd(),Dd()}function Dd(){if(Jt!==5)return!1;var t=Bn,e=$c;$c=0;var n=bs(pn),a=U.T,u=V.p;try{V.p=32>n?32:n,U.T=null,n=Ic,Ic=null;var c=Bn,f=pn;if(Jt=0,ul=Bn=null,pn=0,(St&6)!==0)throw Error(o(331));var p=St;if(St|=4,hd(c.current),od(c,c.current,f,n),St=p,li(0,!1),ye&&typeof ye.onPostCommitFiberRoot=="function")try{ye.onPostCommitFiberRoot(Rl,c)}catch{}return!0}finally{V.p=u,U.T=a,zd(t,e)}}function Ud(t,e,n){e=xe(n,e),e=Uc(t.stateNode,e,2),t=xn(t,e,2),t!==null&&(Tl(t,2),Pe(t))}function Mt(t,e,n){if(t.tag===3)Ud(t,t,n);else for(;e!==null;){if(e.tag===3){Ud(e,t,n);break}else if(e.tag===1){var a=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof a.componentDidCatch=="function"&&(Nn===null||!Nn.has(a))){t=xe(n,t),n=Lh(2),a=xn(e,n,2),a!==null&&(wh(n,a,e,t),Tl(a,2),Pe(a));break}}e=e.return}}function ao(t,e,n){var a=t.pingCache;if(a===null){a=t.pingCache=new bv;var u=new Set;a.set(e,u)}else u=a.get(e),u===void 0&&(u=new Set,a.set(e,u));u.has(n)||(kc=!0,u.add(n),t=Mv.bind(null,t,e,n),e.then(t,t))}function Mv(t,e,n){var a=t.pingCache;a!==null&&a.delete(e),t.pingedLanes|=t.suspendedLanes&n,t.warmLanes&=~n,zt===t&&(dt&n)===n&&(jt===4||jt===3&&(dt&62914560)===dt&&300>le()-Eu?(St&2)===0&&sl(t,0):Fc|=n,il===dt&&(il=0)),Pe(t)}function Ld(t,e){e===0&&(e=Or()),t=ia(t,e),t!==null&&(Tl(t,e),Pe(t))}function Ov(t){var e=t.memoizedState,n=0;e!==null&&(n=e.retryLane),Ld(t,n)}function Cv(t,e){var n=0;switch(t.tag){case 31:case 13:var a=t.stateNode,u=t.memoizedState;u!==null&&(n=u.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),Ld(t,n)}function Av(t,e){return Qe(t,e)}var zu=null,ol=null,lo=!1,Du=!1,io=!1,Hn=0;function Pe(t){t!==ol&&t.next===null&&(ol===null?zu=ol=t:ol=ol.next=t),Du=!0,lo||(lo=!0,zv())}function li(t,e){if(!io&&Du){io=!0;do for(var n=!1,a=zu;a!==null;){if(t!==0){var u=a.pendingLanes;if(u===0)var c=0;else{var f=a.suspendedLanes,p=a.pingedLanes;c=(1<<31-pe(42|t)+1)-1,c&=u&~(f&~p),c=c&201326741?c&201326741|1:c?c|2:0}c!==0&&(n=!0,jd(a,c))}else c=dt,c=Ni(a,a===zt?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),(c&3)===0||El(a,c)||(n=!0,jd(a,c));a=a.next}while(n);io=!1}}function xv(){wd()}function wd(){Du=lo=!1;var t=0;Hn!==0&&Qv()&&(t=Hn);for(var e=le(),n=null,a=zu;a!==null;){var u=a.next,c=Nd(a,e);c===0?(a.next=null,n===null?zu=u:n.next=u,u===null&&(ol=n)):(n=a,(t!==0||(c&3)!==0)&&(Du=!0)),a=u}Jt!==0&&Jt!==5||li(t),Hn!==0&&(Hn=0)}function Nd(t,e){for(var n=t.suspendedLanes,a=t.pingedLanes,u=t.expirationTimes,c=t.pendingLanes&-62914561;0<c;){var f=31-pe(c),p=1<<f,R=u[f];R===-1?((p&n)===0||(p&a)!==0)&&(u[f]=np(p,e)):R<=e&&(t.expiredLanes|=p),c&=~p}if(e=zt,n=dt,n=Ni(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&&_l(a),t.callbackNode=null,t.callbackPriority=0;if((n&3)===0||El(t,n)){if(e=n&-n,e===t.callbackPriority)return e;switch(a!==null&&_l(a),bs(n)){case 2:case 8:n=Gt;break;case 32:n=ne;break;case 268435456:n=Mr;break;default:n=ne}return a=Bd.bind(null,t),n=Qe(n,a),t.callbackPriority=e,t.callbackNode=n,e}return a!==null&&a!==null&&_l(a),t.callbackPriority=2,t.callbackNode=null,2}function Bd(t,e){if(Jt!==0&&Jt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var n=t.callbackNode;if(xu()&&t.callbackNode!==n)return null;var a=dt;return a=Ni(t,t===zt?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),a===0?null:(vd(t,a,e),Nd(t,le()),t.callbackNode!=null&&t.callbackNode===n?Bd.bind(null,t):null)}function jd(t,e){if(xu())return null;vd(t,e,!0)}function zv(){Gv(function(){(St&6)!==0?Qe(xt,xv):wd()})}function uo(){if(Hn===0){var t=Pa;t===0&&(t=Ui,Ui<<=1,(Ui&261888)===0&&(Ui=256)),Hn=t}return Hn}function Hd(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:qi(""+t)}function qd(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 Dv(t,e,n,a,u){if(e==="submit"&&n&&n.stateNode===u){var c=Hd((u[se]||null).action),f=a.submitter;f&&(e=(e=f[se]||null)?Hd(e.formAction):f.getAttribute("formAction"),e!==null&&(c=e,f=null));var p=new Xi("action","action",null,a,u);t.push({event:p,listeners:[{instance:null,listener:function(){if(a.defaultPrevented){if(Hn!==0){var R=f?qd(u,f):new FormData(u);Oc(n,{pending:!0,data:R,method:u.method,action:c},null,R)}}else typeof c=="function"&&(p.preventDefault(),R=f?qd(u,f):new FormData(u),Oc(n,{pending:!0,data:R,method:u.method,action:c},c,R))},currentTarget:u}]})}}for(var so=0;so<Xs.length;so++){var co=Xs[so],Uv=co.toLowerCase(),Lv=co[0].toUpperCase()+co.slice(1);Ye(Uv,"on"+Lv)}Ye(pf,"onAnimationEnd"),Ye(vf,"onAnimationIteration"),Ye(gf,"onAnimationStart"),Ye("dblclick","onDoubleClick"),Ye("focusin","onFocus"),Ye("focusout","onBlur"),Ye(kp,"onTransitionRun"),Ye(Fp,"onTransitionStart"),Ye(Wp,"onTransitionCancel"),Ye(Sf,"onTransitionEnd"),wa("onMouseEnter",["mouseout","mouseover"]),wa("onMouseLeave",["mouseout","mouseover"]),wa("onPointerEnter",["pointerout","pointerover"]),wa("onPointerLeave",["pointerout","pointerover"]),ea("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ea("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ea("onBeforeInput",["compositionend","keypress","textInput","paste"]),ea("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ea("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ea("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ii="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(" "),wv=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ii));function Qd(t,e){e=(e&4)!==0;for(var n=0;n<t.length;n++){var a=t[n],u=a.event;a=a.listeners;t:{var c=void 0;if(e)for(var f=a.length-1;0<=f;f--){var p=a[f],R=p.instance,x=p.currentTarget;if(p=p.listener,R!==c&&u.isPropagationStopped())break t;c=p,u.currentTarget=x;try{c(u)}catch(w){Zi(w)}u.currentTarget=null,c=R}else for(f=0;f<a.length;f++){if(p=a[f],R=p.instance,x=p.currentTarget,p=p.listener,R!==c&&u.isPropagationStopped())break t;c=p,u.currentTarget=x;try{c(u)}catch(w){Zi(w)}u.currentTarget=null,c=R}}}}function ht(t,e){var n=e[_s];n===void 0&&(n=e[_s]=new Set);var a=t+"__bubble";n.has(a)||(Yd(e,t,2,!1),n.add(a))}function oo(t,e,n){var a=0;e&&(a|=4),Yd(n,t,a,e)}var Uu="_reactListening"+Math.random().toString(36).slice(2);function ro(t){if(!t[Uu]){t[Uu]=!0,Lr.forEach(function(n){n!=="selectionchange"&&(wv.has(n)||oo(n,!1,t),oo(n,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Uu]||(e[Uu]=!0,oo("selectionchange",!1,e))}}function Yd(t,e,n,a){switch(pm(e)){case 2:var u=cg;break;case 8:u=og;break;default:u=Oo}n=u.bind(null,e,n,t),u=void 0,!zs||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(u=!0),a?u!==void 0?t.addEventListener(e,n,{capture:!0,passive:u}):t.addEventListener(e,n,!0):u!==void 0?t.addEventListener(e,n,{passive:u}):t.addEventListener(e,n,!1)}function fo(t,e,n,a,u){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 p=a.stateNode.containerInfo;if(p===u)break;if(f===4)for(f=a.return;f!==null;){var R=f.tag;if((R===3||R===4)&&f.stateNode.containerInfo===u)return;f=f.return}for(;p!==null;){if(f=Da(p),f===null)return;if(R=f.tag,R===5||R===6||R===26||R===27){a=c=f;continue t}p=p.parentNode}}a=a.return}Kr(function(){var x=c,w=As(n),B=[];t:{var z=bf.get(t);if(z!==void 0){var D=Xi,P=t;switch(t){case"keypress":if(Yi(n)===0)break t;case"keydown":case"keyup":D=Cp;break;case"focusin":P="focus",D=ws;break;case"focusout":P="blur",D=ws;break;case"beforeblur":case"afterblur":D=ws;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=Pr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":D=yp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":D=zp;break;case pf:case vf:case gf:D=gp;break;case Sf:D=Up;break;case"scroll":case"scrollend":D=dp;break;case"wheel":D=wp;break;case"copy":case"cut":case"paste":D=bp;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":D=Fr;break;case"toggle":case"beforetoggle":D=Bp}var lt=(e&4)!==0,At=!lt&&(t==="scroll"||t==="scrollend"),C=lt?z!==null?z+"Capture":null:z;lt=[];for(var E=x,A;E!==null;){var N=E;if(A=N.stateNode,N=N.tag,N!==5&&N!==26&&N!==27||A===null||C===null||(N=Cl(E,C),N!=null&<.push(ui(E,N,A))),At)break;E=E.return}0<lt.length&&(z=new D(z,P,null,n,w),B.push({event:z,listeners:lt}))}}if((e&7)===0){t:{if(z=t==="mouseover"||t==="pointerover",D=t==="mouseout"||t==="pointerout",z&&n!==Cs&&(P=n.relatedTarget||n.fromElement)&&(Da(P)||P[za]))break t;if((D||z)&&(z=w.window===w?w:(z=w.ownerDocument)?z.defaultView||z.parentWindow:window,D?(P=n.relatedTarget||n.toElement,D=x,P=P?Da(P):null,P!==null&&(At=h(P),lt=P.tag,P!==At||lt!==5&<!==27&<!==6)&&(P=null)):(D=null,P=x),D!==P)){if(lt=Pr,N="onMouseLeave",C="onMouseEnter",E="mouse",(t==="pointerout"||t==="pointerover")&&(lt=Fr,N="onPointerLeave",C="onPointerEnter",E="pointer"),At=D==null?z:Ol(D),A=P==null?z:Ol(P),z=new lt(N,E+"leave",D,n,w),z.target=At,z.relatedTarget=A,N=null,Da(w)===x&&(lt=new lt(C,E+"enter",P,n,w),lt.target=A,lt.relatedTarget=At,N=lt),At=N,D&&P)e:{for(lt=Nv,C=D,E=P,A=0,N=C;N;N=lt(N))A++;N=0;for(var nt=E;nt;nt=lt(nt))N++;for(;0<A-N;)C=lt(C),A--;for(;0<N-A;)E=lt(E),N--;for(;A--;){if(C===E||E!==null&&C===E.alternate){lt=C;break e}C=lt(C),E=lt(E)}lt=null}else lt=null;D!==null&&Gd(B,z,D,lt,!1),P!==null&&At!==null&&Gd(B,At,P,lt,!0)}}t:{if(z=x?Ol(x):window,D=z.nodeName&&z.nodeName.toLowerCase(),D==="select"||D==="input"&&z.type==="file")var vt=lf;else if(nf(z))if(uf)vt=Zp;else{vt=Vp;var $=Xp}else D=z.nodeName,!D||D.toLowerCase()!=="input"||z.type!=="checkbox"&&z.type!=="radio"?x&&Os(x.elementType)&&(vt=lf):vt=Kp;if(vt&&(vt=vt(t,x))){af(B,vt,n,w);break t}$&&$(t,z,x),t==="focusout"&&x&&z.type==="number"&&x.memoizedProps.value!=null&&Ms(z,"number",z.value)}switch($=x?Ol(x):window,t){case"focusin":(nf($)||$.contentEditable==="true")&&(Qa=$,Qs=x,Nl=null);break;case"focusout":Nl=Qs=Qa=null;break;case"mousedown":Ys=!0;break;case"contextmenu":case"mouseup":case"dragend":Ys=!1,mf(B,n,w);break;case"selectionchange":if(Pp)break;case"keydown":case"keyup":mf(B,n,w)}var ot;if(Bs)t:{switch(t){case"compositionstart":var mt="onCompositionStart";break t;case"compositionend":mt="onCompositionEnd";break t;case"compositionupdate":mt="onCompositionUpdate";break t}mt=void 0}else qa?tf(t,n)&&(mt="onCompositionEnd"):t==="keydown"&&n.keyCode===229&&(mt="onCompositionStart");mt&&(Wr&&n.locale!=="ko"&&(qa||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&qa&&(ot=Zr()):(Rn=w,Ds="value"in Rn?Rn.value:Rn.textContent,qa=!0)),$=Lu(x,mt),0<$.length&&(mt=new kr(mt,t,null,n,w),B.push({event:mt,listeners:$}),ot?mt.data=ot:(ot=ef(n),ot!==null&&(mt.data=ot)))),(ot=Hp?qp(t,n):Qp(t,n))&&(mt=Lu(x,"onBeforeInput"),0<mt.length&&($=new kr("onBeforeInput","beforeinput",null,n,w),B.push({event:$,listeners:mt}),$.data=ot)),Dv(B,t,x,n,w)}Qd(B,e)})}function ui(t,e,n){return{instance:t,listener:e,currentTarget:n}}function Lu(t,e){for(var n=e+"Capture",a=[];t!==null;){var u=t,c=u.stateNode;if(u=u.tag,u!==5&&u!==26&&u!==27||c===null||(u=Cl(t,n),u!=null&&a.unshift(ui(t,u,c)),u=Cl(t,e),u!=null&&a.push(ui(t,u,c))),t.tag===3)return a;t=t.return}return[]}function Nv(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function Gd(t,e,n,a,u){for(var c=e._reactName,f=[];n!==null&&n!==a;){var p=n,R=p.alternate,x=p.stateNode;if(p=p.tag,R!==null&&R===a)break;p!==5&&p!==26&&p!==27||x===null||(R=x,u?(x=Cl(n,c),x!=null&&f.unshift(ui(n,x,R))):u||(x=Cl(n,c),x!=null&&f.push(ui(n,x,R)))),n=n.return}f.length!==0&&t.push({event:e,listeners:f})}var Bv=/\r\n?/g,jv=/\u0000|\uFFFD/g;function Xd(t){return(typeof t=="string"?t:""+t).replace(Bv,`
|
|
9
|
-
`).replace(jv,"")}function Vd(t,e){return e=Xd(e),Xd(t)===e}function Ct(t,e,n,a,u,c){switch(n){case"children":typeof a=="string"?e==="body"||e==="textarea"&&a===""||Ba(t,a):(typeof a=="number"||typeof a=="bigint")&&e!=="body"&&Ba(t,""+a);break;case"className":ji(t,"class",a);break;case"tabIndex":ji(t,"tabindex",a);break;case"dir":case"role":case"viewBox":case"width":case"height":ji(t,n,a);break;case"style":Xr(t,a,c);break;case"data":if(e!=="object"){ji(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=qi(""+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",u.name,u,null),Ct(t,e,"formEncType",u.formEncType,u,null),Ct(t,e,"formMethod",u.formMethod,u,null),Ct(t,e,"formTarget",u.formTarget,u,null)):(Ct(t,e,"encType",u.encType,u,null),Ct(t,e,"method",u.method,u,null),Ct(t,e,"target",u.target,u,null)));if(a==null||typeof a=="symbol"||typeof a=="boolean"){t.removeAttribute(n);break}a=qi(""+a),t.setAttribute(n,a);break;case"onClick":a!=null&&(t.onclick=tn);break;case"onScroll":a!=null&&ht("scroll",t);break;case"onScrollEnd":a!=null&&ht("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(u.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=qi(""+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":ht("beforetoggle",t),ht("toggle",t),Bi(t,"popover",a);break;case"xlinkActuate":Ie(t,"http://www.w3.org/1999/xlink","xlink:actuate",a);break;case"xlinkArcrole":Ie(t,"http://www.w3.org/1999/xlink","xlink:arcrole",a);break;case"xlinkRole":Ie(t,"http://www.w3.org/1999/xlink","xlink:role",a);break;case"xlinkShow":Ie(t,"http://www.w3.org/1999/xlink","xlink:show",a);break;case"xlinkTitle":Ie(t,"http://www.w3.org/1999/xlink","xlink:title",a);break;case"xlinkType":Ie(t,"http://www.w3.org/1999/xlink","xlink:type",a);break;case"xmlBase":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:base",a);break;case"xmlLang":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:lang",a);break;case"xmlSpace":Ie(t,"http://www.w3.org/XML/1998/namespace","xml:space",a);break;case"is":Bi(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=fp.get(n)||n,Bi(t,n,a))}}function ho(t,e,n,a,u,c){switch(n){case"style":Xr(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(u.children!=null)throw Error(o(60));t.innerHTML=n}}break;case"children":typeof a=="string"?Ba(t,a):(typeof a=="number"||typeof a=="bigint")&&Ba(t,""+a);break;case"onScroll":a!=null&&ht("scroll",t);break;case"onScrollEnd":a!=null&&ht("scrollend",t);break;case"onClick":a!=null&&(t.onclick=tn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!wr.hasOwnProperty(n))t:{if(n[0]==="o"&&n[1]==="n"&&(u=n.endsWith("Capture"),e=n.slice(2,u?n.length-7:void 0),c=t[se]||null,c=c!=null?c[n]:null,typeof c=="function"&&t.removeEventListener(e,c,u),typeof a=="function")){typeof c!="function"&&c!==null&&(n in t?t[n]=null:t.hasAttribute(n)&&t.removeAttribute(n)),t.addEventListener(e,a,u);break t}n in t?t[n]=a:a===!0?t.setAttribute(n,""):Bi(t,n,a)}}}function ee(t,e,n){switch(e){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ht("error",t),ht("load",t);var a=!1,u=!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":u=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Ct(t,e,c,f,n,null)}}u&&Ct(t,e,"srcSet",n.srcSet,n,null),a&&Ct(t,e,"src",n.src,n,null);return;case"input":ht("invalid",t);var p=c=f=u=null,R=null,x=null;for(a in n)if(n.hasOwnProperty(a)){var w=n[a];if(w!=null)switch(a){case"name":u=w;break;case"type":f=w;break;case"checked":R=w;break;case"defaultChecked":x=w;break;case"value":c=w;break;case"defaultValue":p=w;break;case"children":case"dangerouslySetInnerHTML":if(w!=null)throw Error(o(137,e));break;default:Ct(t,e,a,w,n,null)}}qr(t,c,p,R,x,f,u,!1);return;case"select":ht("invalid",t),a=f=c=null;for(u in n)if(n.hasOwnProperty(u)&&(p=n[u],p!=null))switch(u){case"value":c=p;break;case"defaultValue":f=p;break;case"multiple":a=p;default:Ct(t,e,u,p,n,null)}e=c,n=f,t.multiple=!!a,e!=null?Na(t,!!a,e,!1):n!=null&&Na(t,!!a,n,!0);return;case"textarea":ht("invalid",t),c=u=a=null;for(f in n)if(n.hasOwnProperty(f)&&(p=n[f],p!=null))switch(f){case"value":a=p;break;case"defaultValue":u=p;break;case"children":c=p;break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(o(91));break;default:Ct(t,e,f,p,n,null)}Yr(t,a,u,c);return;case"option":for(R in n)n.hasOwnProperty(R)&&(a=n[R],a!=null)&&(R==="selected"?t.selected=a&&typeof a!="function"&&typeof a!="symbol":Ct(t,e,R,a,n,null));return;case"dialog":ht("beforetoggle",t),ht("toggle",t),ht("cancel",t),ht("close",t);break;case"iframe":case"object":ht("load",t);break;case"video":case"audio":for(a=0;a<ii.length;a++)ht(ii[a],t);break;case"image":ht("error",t),ht("load",t);break;case"details":ht("toggle",t);break;case"embed":case"source":case"link":ht("error",t),ht("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(x in n)if(n.hasOwnProperty(x)&&(a=n[x],a!=null))switch(x){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,e));default:Ct(t,e,x,a,n,null)}return;default:if(Os(e)){for(w in n)n.hasOwnProperty(w)&&(a=n[w],a!==void 0&&ho(t,e,w,a,n,void 0));return}}for(p in n)n.hasOwnProperty(p)&&(a=n[p],a!=null&&Ct(t,e,p,a,n,null))}function Hv(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 u=null,c=null,f=null,p=null,R=null,x=null,w=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":R=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":u=D;break;case"checked":x=D;break;case"defaultChecked":w=D;break;case"value":f=D;break;case"defaultValue":p=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)}}Ts(t,f,p,R,x,w,c,u);return;case"select":D=f=p=z=null;for(c in n)if(R=n[c],n.hasOwnProperty(c)&&R!=null)switch(c){case"value":break;case"multiple":D=R;default:a.hasOwnProperty(c)||Ct(t,e,c,null,a,R)}for(u in a)if(c=a[u],R=n[u],a.hasOwnProperty(u)&&(c!=null||R!=null))switch(u){case"value":z=c;break;case"defaultValue":p=c;break;case"multiple":f=c;default:c!==R&&Ct(t,e,u,c,a,R)}e=p,n=f,a=D,z!=null?Na(t,!!n,z,!1):!!a!=!!n&&(e!=null?Na(t,!!n,e,!0):Na(t,!!n,n?[]:"",!1));return;case"textarea":D=z=null;for(p in n)if(u=n[p],n.hasOwnProperty(p)&&u!=null&&!a.hasOwnProperty(p))switch(p){case"value":break;case"children":break;default:Ct(t,e,p,null,a,u)}for(f in a)if(u=a[f],c=n[f],a.hasOwnProperty(f)&&(u!=null||c!=null))switch(f){case"value":z=u;break;case"defaultValue":D=u;break;case"children":break;case"dangerouslySetInnerHTML":if(u!=null)throw Error(o(91));break;default:u!==c&&Ct(t,e,f,u,a,c)}Qr(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(R in a)z=a[R],D=n[R],a.hasOwnProperty(R)&&z!==D&&(z!=null||D!=null)&&(R==="selected"?t.selected=z&&typeof z!="function"&&typeof z!="symbol":Ct(t,e,R,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 lt in n)z=n[lt],n.hasOwnProperty(lt)&&z!=null&&!a.hasOwnProperty(lt)&&Ct(t,e,lt,null,a,z);for(x in a)if(z=a[x],D=n[x],a.hasOwnProperty(x)&&z!==D&&(z!=null||D!=null))switch(x){case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(o(137,e));break;default:Ct(t,e,x,z,a,D)}return;default:if(Os(e)){for(var At in n)z=n[At],n.hasOwnProperty(At)&&z!==void 0&&!a.hasOwnProperty(At)&&ho(t,e,At,void 0,a,z);for(w in a)z=a[w],D=n[w],!a.hasOwnProperty(w)||z===D||z===void 0&&D===void 0||ho(t,e,w,z,a,D);return}}for(var C in n)z=n[C],n.hasOwnProperty(C)&&z!=null&&!a.hasOwnProperty(C)&&Ct(t,e,C,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 Kd(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function qv(){if(typeof performance.getEntriesByType=="function"){for(var t=0,e=0,n=performance.getEntriesByType("resource"),a=0;a<n.length;a++){var u=n[a],c=u.transferSize,f=u.initiatorType,p=u.duration;if(c&&p&&Kd(f)){for(f=0,p=u.responseEnd,a+=1;a<n.length;a++){var R=n[a],x=R.startTime;if(x>p)break;var w=R.transferSize,B=R.initiatorType;w&&Kd(B)&&(R=R.responseEnd,f+=w*(R<p?1:(p-x)/(R-x)))}if(--a,e+=8*(c+f)/(u.duration/1e3),t++,10<t)break}}if(0<t)return e/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}var mo=null,yo=null;function wu(t){return t.nodeType===9?t:t.ownerDocument}function Zd(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 Jd(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 po(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 vo=null;function Qv(){var t=window.event;return t&&t.type==="popstate"?t===vo?!1:(vo=t,!0):(vo=null,!1)}var Pd=typeof setTimeout=="function"?setTimeout:void 0,Yv=typeof clearTimeout=="function"?clearTimeout:void 0,kd=typeof Promise=="function"?Promise:void 0,Gv=typeof queueMicrotask=="function"?queueMicrotask:typeof kd<"u"?function(t){return kd.resolve(null).then(t).catch(Xv)}:Pd;function Xv(t){setTimeout(function(){throw t})}function qn(t){return t==="head"}function Fd(t,e){var n=e,a=0;do{var u=n.nextSibling;if(t.removeChild(n),u&&u.nodeType===8)if(n=u.data,n==="/$"||n==="/&"){if(a===0){t.removeChild(u),dl(e);return}a--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")a++;else if(n==="html")si(t.ownerDocument.documentElement);else if(n==="head"){n=t.ownerDocument.head,si(n);for(var c=n.firstChild;c;){var f=c.nextSibling,p=c.nodeName;c[Ml]||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&c.rel.toLowerCase()==="stylesheet"||n.removeChild(c),c=f}}else n==="body"&&si(t.ownerDocument.body);n=u}while(n);dl(e)}function Wd(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 go(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":go(n),Rs(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}t.removeChild(n)}}function Vv(t,e,n,a){for(;t.nodeType===1;){var u=n;if(t.nodeName.toLowerCase()!==e.toLowerCase()){if(!a&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(a){if(!t[Ml])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!==u.rel||t.getAttribute("href")!==(u.href==null||u.href===""?null:u.href)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin)||t.getAttribute("title")!==(u.title==null?null:u.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(c=t.getAttribute("src"),(c!==(u.src==null?null:u.src)||t.getAttribute("type")!==(u.type==null?null:u.type)||t.getAttribute("crossorigin")!==(u.crossOrigin==null?null:u.crossOrigin))&&c&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(e==="input"&&t.type==="hidden"){var c=u.name==null?null:""+u.name;if(u.type==="hidden"&&t.getAttribute("name")===c)return t}else return t;if(t=we(t.nextSibling),t===null)break}return null}function Kv(t,e,n){if(e==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=we(t.nextSibling),t===null))return null;return t}function $d(t,e){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!e||(t=we(t.nextSibling),t===null))return null;return t}function So(t){return t.data==="$?"||t.data==="$~"}function bo(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState!=="loading"}function Zv(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 we(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 _o=null;function Id(t){t=t.nextSibling;for(var e=0;t;){if(t.nodeType===8){var n=t.data;if(n==="/$"||n==="/&"){if(e===0)return we(t.nextSibling);e--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||e++}t=t.nextSibling}return null}function tm(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 em(t,e,n){switch(e=wu(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 si(t){for(var e=t.attributes;e.length;)t.removeAttributeNode(e[0]);Rs(t)}var Ne=new Map,nm=new Set;function Nu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var vn=V.d;V.d={f:Jv,r:Pv,D:kv,C:Fv,L:Wv,m:$v,X:tg,S:Iv,M:eg};function Jv(){var t=vn.f(),e=Ou();return t||e}function Pv(t){var e=Ua(t);e!==null&&e.tag===5&&e.type==="form"?Sh(e):vn.r(t)}var rl=typeof document>"u"?null:document;function am(t,e,n){var a=rl;if(a&&typeof e=="string"&&e){var u=Ce(e);u='link[rel="'+t+'"][href="'+u+'"]',typeof n=="string"&&(u+='[crossorigin="'+n+'"]'),nm.has(u)||(nm.add(u),t={rel:t,crossOrigin:n,href:e},a.querySelector(u)===null&&(e=a.createElement("link"),ee(e,"link",t),kt(e),a.head.appendChild(e)))}}function kv(t){vn.D(t),am("dns-prefetch",t,null)}function Fv(t,e){vn.C(t,e),am("preconnect",t,e)}function Wv(t,e,n){vn.L(t,e,n);var a=rl;if(a&&t&&e){var u='link[rel="preload"][as="'+Ce(e)+'"]';e==="image"&&n&&n.imageSrcSet?(u+='[imagesrcset="'+Ce(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(u+='[imagesizes="'+Ce(n.imageSizes)+'"]')):u+='[href="'+Ce(t)+'"]';var c=u;switch(e){case"style":c=fl(t);break;case"script":c=hl(t)}Ne.has(c)||(t=S({rel:"preload",href:e==="image"&&n&&n.imageSrcSet?void 0:t,as:e},n),Ne.set(c,t),a.querySelector(u)!==null||e==="style"&&a.querySelector(ci(c))||e==="script"&&a.querySelector(oi(c))||(e=a.createElement("link"),ee(e,"link",t),kt(e),a.head.appendChild(e)))}}function $v(t,e){vn.m(t,e);var n=rl;if(n&&t){var a=e&&typeof e.as=="string"?e.as:"script",u='link[rel="modulepreload"][as="'+Ce(a)+'"][href="'+Ce(t)+'"]',c=u;switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":c=hl(t)}if(!Ne.has(c)&&(t=S({rel:"modulepreload",href:t},e),Ne.set(c,t),n.querySelector(u)===null)){switch(a){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(oi(c)))return}a=n.createElement("link"),ee(a,"link",t),kt(a),n.head.appendChild(a)}}}function Iv(t,e,n){vn.S(t,e,n);var a=rl;if(a&&t){var u=La(a).hoistableStyles,c=fl(t);e=e||"default";var f=u.get(c);if(!f){var p={loading:0,preload:null};if(f=a.querySelector(ci(c)))p.loading=5;else{t=S({rel:"stylesheet",href:t,"data-precedence":e},n),(n=Ne.get(c))&&Ro(t,n);var R=f=a.createElement("link");kt(R),ee(R,"link",t),R._p=new Promise(function(x,w){R.onload=x,R.onerror=w}),R.addEventListener("load",function(){p.loading|=1}),R.addEventListener("error",function(){p.loading|=2}),p.loading|=4,Bu(f,e,a)}f={type:"stylesheet",instance:f,count:1,state:p},u.set(c,f)}}}function tg(t,e){vn.X(t,e);var n=rl;if(n&&t){var a=La(n).hoistableScripts,u=hl(t),c=a.get(u);c||(c=n.querySelector(oi(u)),c||(t=S({src:t,async:!0},e),(e=Ne.get(u))&&Eo(t,e),c=n.createElement("script"),kt(c),ee(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function eg(t,e){vn.M(t,e);var n=rl;if(n&&t){var a=La(n).hoistableScripts,u=hl(t),c=a.get(u);c||(c=n.querySelector(oi(u)),c||(t=S({src:t,async:!0,type:"module"},e),(e=Ne.get(u))&&Eo(t,e),c=n.createElement("script"),kt(c),ee(c,"link",t),n.head.appendChild(c)),c={type:"script",instance:c,count:1,state:null},a.set(u,c))}}function lm(t,e,n,a){var u=(u=rt.current)?Nu(u):null;if(!u)throw Error(o(446));switch(t){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(e=fl(n.href),n=La(u).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=fl(n.href);var c=La(u).hoistableStyles,f=c.get(t);if(f||(u=u.ownerDocument||u,f={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(t,f),(c=u.querySelector(ci(t)))&&!c._p&&(f.instance=c,f.state.loading=5),Ne.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},Ne.set(t,n),c||ng(u,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=hl(n),n=La(u).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 fl(t){return'href="'+Ce(t)+'"'}function ci(t){return'link[rel="stylesheet"]['+t+"]"}function im(t){return S({},t,{"data-precedence":t.precedence,precedence:null})}function ng(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}),ee(e,"link",n),kt(e),t.head.appendChild(e))}function hl(t){return'[src="'+Ce(t)+'"]'}function oi(t){return"script[async]"+t}function um(t,e,n){if(e.count++,e.instance===null)switch(e.type){case"style":var a=t.querySelector('style[data-href~="'+Ce(n.href)+'"]');if(a)return e.instance=a,kt(a),a;var u=S({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return a=(t.ownerDocument||t).createElement("style"),kt(a),ee(a,"style",u),Bu(a,n.precedence,t),e.instance=a;case"stylesheet":u=fl(n.href);var c=t.querySelector(ci(u));if(c)return e.state.loading|=4,e.instance=c,kt(c),c;a=im(n),(u=Ne.get(u))&&Ro(a,u),c=(t.ownerDocument||t).createElement("link"),kt(c);var f=c;return f._p=new Promise(function(p,R){f.onload=p,f.onerror=R}),ee(c,"link",a),e.state.loading|=4,Bu(c,n.precedence,t),e.instance=c;case"script":return c=hl(n.src),(u=t.querySelector(oi(c)))?(e.instance=u,kt(u),u):(a=n,(u=Ne.get(c))&&(a=S({},n),Eo(a,u)),t=t.ownerDocument||t,u=t.createElement("script"),kt(u),ee(u,"link",a),t.head.appendChild(u),e.instance=u);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,Bu(a,n.precedence,t));return e.instance}function Bu(t,e,n){for(var a=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=a.length?a[a.length-1]:null,c=u,f=0;f<a.length;f++){var p=a[f];if(p.dataset.precedence===e)c=p;else if(c!==u)break}c?c.parentNode.insertBefore(t,c.nextSibling):(e=n.nodeType===9?n.head:n,e.insertBefore(t,e.firstChild))}function Ro(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.title==null&&(t.title=e.title)}function Eo(t,e){t.crossOrigin==null&&(t.crossOrigin=e.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=e.referrerPolicy),t.integrity==null&&(t.integrity=e.integrity)}var ju=null;function sm(t,e,n){if(ju===null){var a=new Map,u=ju=new Map;u.set(n,a)}else u=ju,a=u.get(n),a||(a=new Map,u.set(n,a));if(a.has(t))return a;for(a.set(t,null),n=n.getElementsByTagName(t),u=0;u<n.length;u++){var c=n[u];if(!(c[Ml]||c[Wt]||t==="link"&&c.getAttribute("rel")==="stylesheet")&&c.namespaceURI!=="http://www.w3.org/2000/svg"){var f=c.getAttribute(e)||"";f=t+f;var p=a.get(f);p?p.push(c):a.set(f,[c])}}return a}function cm(t,e,n){t=t.ownerDocument||t,t.head.insertBefore(n,e==="title"?t.querySelector("head > title"):null)}function ag(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 om(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}function lg(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 u=fl(a.href),c=e.querySelector(ci(u));if(c){e=c._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(t.count++,t=Hu.bind(t),e.then(t,t)),n.state.loading|=4,n.instance=c,kt(c);return}c=e.ownerDocument||e,a=im(a),(u=Ne.get(u))&&Ro(a,u),c=c.createElement("link"),kt(c);var f=c;f._p=new Promise(function(p,R){f.onload=p,f.onerror=R}),ee(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=Hu.bind(t),e.addEventListener("load",n),e.addEventListener("error",n))}}var To=0;function ig(t,e){return t.stylesheets&&t.count===0&&Qu(t,t.stylesheets),0<t.count||0<t.imgCount?function(n){var a=setTimeout(function(){if(t.stylesheets&&Qu(t,t.stylesheets),t.unsuspend){var c=t.unsuspend;t.unsuspend=null,c()}},6e4+e);0<t.imgBytes&&To===0&&(To=62500*qv());var u=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&Qu(t,t.stylesheets),t.unsuspend)){var c=t.unsuspend;t.unsuspend=null,c()}},(t.imgBytes>To?50:800)+e);return t.unsuspend=n,function(){t.unsuspend=null,clearTimeout(a),clearTimeout(u)}}:null}function Hu(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qu(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var qu=null;function Qu(t,e){t.stylesheets=null,t.unsuspend!==null&&(t.count++,qu=new Map,e.forEach(ug,t),qu=null,Hu.call(t))}function ug(t,e){if(!(e.state.loading&4)){var n=qu.get(t);if(n)var a=n.get(null);else{n=new Map,qu.set(t,n);for(var u=t.querySelectorAll("link[data-precedence],style[data-precedence]"),c=0;c<u.length;c++){var f=u[c];(f.nodeName==="LINK"||f.getAttribute("media")!=="not all")&&(n.set(f.dataset.precedence,f),a=f)}a&&n.set(null,a)}u=e.instance,f=u.getAttribute("data-precedence"),c=n.get(f)||a,c===a&&n.set(null,u),n.set(f,u),this.count++,a=Hu.bind(this),u.addEventListener("load",a),u.addEventListener("error",a),c?c.parentNode.insertBefore(u,c.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(u,t.firstChild)),e.state.loading|=4}}var ri={$$typeof:G,Provider:null,Consumer:null,_currentValue:it,_currentValue2:it,_threadCount:0};function sg(t,e,n,a,u,c,f,p,R){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=gs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gs(0),this.hiddenUpdates=gs(null),this.identifierPrefix=a,this.onUncaughtError=u,this.onCaughtError=c,this.onRecoverableError=f,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=R,this.incompleteTransitions=new Map}function rm(t,e,n,a,u,c,f,p,R,x,w,B){return t=new sg(t,e,n,f,R,x,w,B,p),e=1,c===!0&&(e|=24),c=ge(3,null,null,e),t.current=c,c.stateNode=t,e=nc(),e.refCount++,t.pooledCache=e,e.refCount++,c.memoizedState={element:a,isDehydrated:n,cache:e},uc(c),t}function fm(t){return t?(t=Xa,t):Xa}function hm(t,e,n,a,u,c){u=fm(u),a.context===null?a.context=u:a.pendingContext=u,a=An(e),a.payload={element:n},c=c===void 0?null:c,c!==null&&(a.callback=c),n=xn(t,a,e),n!==null&&(de(n,t,e),Gl(n,t,e))}function dm(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var n=t.retryLane;t.retryLane=n!==0&&n<e?n:e}}function Mo(t,e){dm(t,e),(t=t.alternate)&&dm(t,e)}function mm(t){if(t.tag===13||t.tag===31){var e=ia(t,67108864);e!==null&&de(e,t,67108864),Mo(t,67108864)}}function ym(t){if(t.tag===13||t.tag===31){var e=Ee();e=Ss(e);var n=ia(t,e);n!==null&&de(n,t,e),Mo(t,e)}}var Yu=!0;function cg(t,e,n,a){var u=U.T;U.T=null;var c=V.p;try{V.p=2,Oo(t,e,n,a)}finally{V.p=c,U.T=u}}function og(t,e,n,a){var u=U.T;U.T=null;var c=V.p;try{V.p=8,Oo(t,e,n,a)}finally{V.p=c,U.T=u}}function Oo(t,e,n,a){if(Yu){var u=Co(a);if(u===null)fo(t,e,a,Gu,n),vm(t,a);else if(fg(u,t,e,n,a))a.stopPropagation();else if(vm(t,a),e&4&&-1<rg.indexOf(t)){for(;u!==null;){var c=Ua(u);if(c!==null)switch(c.tag){case 3:if(c=c.stateNode,c.current.memoizedState.isDehydrated){var f=ta(c.pendingLanes);if(f!==0){var p=c;for(p.pendingLanes|=2,p.entangledLanes|=2;f;){var R=1<<31-pe(f);p.entanglements[1]|=R,f&=~R}Pe(c),(St&6)===0&&(Tu=le()+500,li(0))}}break;case 31:case 13:p=ia(c,2),p!==null&&de(p,c,2),Ou(),Mo(c,2)}if(c=Co(a),c===null&&fo(t,e,a,Gu,n),c===u)break;u=c}u!==null&&a.stopPropagation()}else fo(t,e,a,null,n)}}function Co(t){return t=As(t),Ao(t)}var Gu=null;function Ao(t){if(Gu=null,t=Da(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=m(e),t!==null)return t;t=null}else if(n===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null)}}return Gu=t,null}function pm(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(zi()){case xt:return 2;case Gt:return 8;case ne:case Di:return 32;case Mr:return 268435456;default:return 32}default:return 32}}var xo=!1,Qn=null,Yn=null,Gn=null,fi=new Map,hi=new Map,Xn=[],rg="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 vm(t,e){switch(t){case"focusin":case"focusout":Qn=null;break;case"dragenter":case"dragleave":Yn=null;break;case"mouseover":case"mouseout":Gn=null;break;case"pointerover":case"pointerout":fi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":hi.delete(e.pointerId)}}function di(t,e,n,a,u,c){return t===null||t.nativeEvent!==c?(t={blockedOn:e,domEventName:n,eventSystemFlags:a,nativeEvent:c,targetContainers:[u]},e!==null&&(e=Ua(e),e!==null&&mm(e)),t):(t.eventSystemFlags|=a,e=t.targetContainers,u!==null&&e.indexOf(u)===-1&&e.push(u),t)}function fg(t,e,n,a,u){switch(e){case"focusin":return Qn=di(Qn,t,e,n,a,u),!0;case"dragenter":return Yn=di(Yn,t,e,n,a,u),!0;case"mouseover":return Gn=di(Gn,t,e,n,a,u),!0;case"pointerover":var c=u.pointerId;return fi.set(c,di(fi.get(c)||null,t,e,n,a,u)),!0;case"gotpointercapture":return c=u.pointerId,hi.set(c,di(hi.get(c)||null,t,e,n,a,u)),!0}return!1}function gm(t){var e=Da(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,Dr(t.priority,function(){ym(n)});return}}else if(e===31){if(e=m(n),e!==null){t.blockedOn=e,Dr(t.priority,function(){ym(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 Xu(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var n=Co(t.nativeEvent);if(n===null){n=t.nativeEvent;var a=new n.constructor(n.type,n);Cs=a,n.target.dispatchEvent(a),Cs=null}else return e=Ua(n),e!==null&&mm(e),t.blockedOn=n,!1;e.shift()}return!0}function Sm(t,e,n){Xu(t)&&n.delete(e)}function hg(){xo=!1,Qn!==null&&Xu(Qn)&&(Qn=null),Yn!==null&&Xu(Yn)&&(Yn=null),Gn!==null&&Xu(Gn)&&(Gn=null),fi.forEach(Sm),hi.forEach(Sm)}function Vu(t,e){t.blockedOn===e&&(t.blockedOn=null,xo||(xo=!0,l.unstable_scheduleCallback(l.unstable_NormalPriority,hg)))}var Ku=null;function bm(t){Ku!==t&&(Ku=t,l.unstable_scheduleCallback(l.unstable_NormalPriority,function(){Ku===t&&(Ku=null);for(var e=0;e<t.length;e+=3){var n=t[e],a=t[e+1],u=t[e+2];if(typeof a!="function"){if(Ao(a||n)===null)continue;break}var c=Ua(n);c!==null&&(t.splice(e,3),e-=3,Oc(c,{pending:!0,data:u,method:n.method,action:a},a,u))}}))}function dl(t){function e(R){return Vu(R,t)}Qn!==null&&Vu(Qn,t),Yn!==null&&Vu(Yn,t),Gn!==null&&Vu(Gn,t),fi.forEach(e),hi.forEach(e);for(var n=0;n<Xn.length;n++){var a=Xn[n];a.blockedOn===t&&(a.blockedOn=null)}for(;0<Xn.length&&(n=Xn[0],n.blockedOn===null);)gm(n),n.blockedOn===null&&Xn.shift();if(n=(t.ownerDocument||t).$$reactFormReplay,n!=null)for(a=0;a<n.length;a+=3){var u=n[a],c=n[a+1],f=u[se]||null;if(typeof c=="function")f||bm(n);else if(f){var p=null;if(c&&c.hasAttribute("formAction")){if(u=c,f=c[se]||null)p=f.formAction;else if(Ao(u)!==null)continue}else p=f.action;typeof p=="function"?n[a+1]=p:(n.splice(a,3),a-=3),bm(n)}}}function _m(){function t(c){c.canIntercept&&c.info==="react-transition"&&c.intercept({handler:function(){return new Promise(function(f){return u=f})},focusReset:"manual",scroll:"manual"})}function e(){u!==null&&(u(),u=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,u=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),u!==null&&(u(),u=null)}}}function zo(t){this._internalRoot=t}Zu.prototype.render=zo.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(o(409));var n=e.current,a=Ee();hm(n,a,t,e,null,null)},Zu.prototype.unmount=zo.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;hm(t.current,2,null,t,null,null),Ou(),e[za]=null}};function Zu(t){this._internalRoot=t}Zu.prototype.unstable_scheduleHydration=function(t){if(t){var e=zr();t={blockedOn:null,target:t,priority:e};for(var n=0;n<Xn.length&&e!==0&&e<Xn[n].priority;n++);Xn.splice(n,0,t),n===0&&gm(t)}};var Rm=i.version;if(Rm!=="19.2.4")throw Error(o(527,Rm,"19.2.4"));V.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=d(e),t=t!==null?b(t):null,t=t===null?null:t.stateNode,t};var dg={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.4"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ju=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ju.isDisabled&&Ju.supportsFiber)try{Rl=Ju.inject(dg),ye=Ju}catch{}}return yi.createRoot=function(t,e){if(!r(t))throw Error(o(299));var n=!1,a="",u=xh,c=zh,f=Dh;return e!=null&&(e.unstable_strictMode===!0&&(n=!0),e.identifierPrefix!==void 0&&(a=e.identifierPrefix),e.onUncaughtError!==void 0&&(u=e.onUncaughtError),e.onCaughtError!==void 0&&(c=e.onCaughtError),e.onRecoverableError!==void 0&&(f=e.onRecoverableError)),e=rm(t,1,!1,null,null,n,a,null,u,c,f,_m),t[za]=e.current,ro(t),new zo(e)},yi.hydrateRoot=function(t,e,n){if(!r(t))throw Error(o(299));var a=!1,u="",c=xh,f=zh,p=Dh,R=null;return n!=null&&(n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(u=n.identifierPrefix),n.onUncaughtError!==void 0&&(c=n.onUncaughtError),n.onCaughtError!==void 0&&(f=n.onCaughtError),n.onRecoverableError!==void 0&&(p=n.onRecoverableError),n.formState!==void 0&&(R=n.formState)),e=rm(t,1,!0,e,n??null,a,u,R,c,f,p,_m),e.context=fm(null),n=e.current,a=Ee(),a=Ss(a),u=An(a),u.callback=null,xn(n,u,a),n=a,e.current.lanes=n,Tl(e,n),Pe(e),t[za]=e.current,ro(t),new Zu(e)},yi.version="19.2.4",yi}var Um;function Eg(){if(Um)return Lo.exports;Um=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(i){console.error(i)}}return l(),Lo.exports=Rg(),Lo.exports}var sb=Eg(),gl=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(){}},Tg={setTimeout:(l,i)=>setTimeout(l,i),clearTimeout:l=>clearTimeout(l),setInterval:(l,i)=>setInterval(l,i),clearInterval:l=>clearInterval(l)},Mg=class{#t=Tg;#e=!1;setTimeoutProvider(l){this.#t=l}setTimeout(l,i){return this.#t.setTimeout(l,i)}clearTimeout(l){this.#t.clearTimeout(l)}setInterval(l,i){return this.#t.setInterval(l,i)}clearInterval(l){this.#t.clearInterval(l)}},Sa=new Mg;function Og(l){setTimeout(l,0)}var Ma=typeof window>"u"||"Deno"in globalThis;function ue(){}function Cg(l,i){return typeof l=="function"?l(i):l}function Po(l){return typeof l=="number"&&l>=0&&l!==1/0}function py(l,i){return Math.max(l+(i||0)-Date.now(),0)}function Pn(l,i){return typeof l=="function"?l(i):l}function Be(l,i){return typeof l=="function"?l(i):l}function Lm(l,i){const{type:s="all",exact:o,fetchStatus:r,predicate:h,queryKey:y,stale:m}=l;if(y){if(o){if(i.queryHash!==ur(y,i.options))return!1}else if(!Ei(i.queryKey,y))return!1}if(s!=="all"){const v=i.isActive();if(s==="active"&&!v||s==="inactive"&&v)return!1}return!(typeof m=="boolean"&&i.isStale()!==m||r&&r!==i.state.fetchStatus||h&&!h(i))}function wm(l,i){const{exact:s,status:o,predicate:r,mutationKey:h}=l;if(h){if(!i.options.mutationKey)return!1;if(s){if(Oa(i.options.mutationKey)!==Oa(h))return!1}else if(!Ei(i.options.mutationKey,h))return!1}return!(o&&i.state.status!==o||r&&!r(i))}function ur(l,i){return(i?.queryKeyHashFn||Oa)(l)}function Oa(l){return JSON.stringify(l,(i,s)=>ko(s)?Object.keys(s).sort().reduce((o,r)=>(o[r]=s[r],o),{}):s)}function Ei(l,i){return l===i?!0:typeof l!=typeof i?!1:l&&i&&typeof l=="object"&&typeof i=="object"?Object.keys(i).every(s=>Ei(l[s],i[s])):!1}var Ag=Object.prototype.hasOwnProperty;function vy(l,i,s=0){if(l===i)return l;if(s>500)return i;const o=Nm(l)&&Nm(i);if(!o&&!(ko(l)&&ko(i)))return i;const h=(o?l:Object.keys(l)).length,y=o?i:Object.keys(i),m=y.length,v=o?new Array(m):{};let d=0;for(let b=0;b<m;b++){const S=o?b:y[b],g=l[S],_=i[S];if(g===_){v[S]=g,(o?b<h:Ag.call(l,S))&&d++;continue}if(g===null||_===null||typeof g!="object"||typeof _!="object"){v[S]=_;continue}const T=vy(g,_,s+1);v[S]=T,T===g&&d++}return h===m&&d===h?l:v}function es(l,i){if(!i||Object.keys(l).length!==Object.keys(i).length)return!1;for(const s in l)if(l[s]!==i[s])return!1;return!0}function Nm(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function ko(l){if(!Bm(l))return!1;const i=l.constructor;if(i===void 0)return!0;const s=i.prototype;return!(!Bm(s)||!s.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(l)!==Object.prototype)}function Bm(l){return Object.prototype.toString.call(l)==="[object Object]"}function xg(l){return new Promise(i=>{Sa.setTimeout(i,l)})}function Fo(l,i,s){return typeof s.structuralSharing=="function"?s.structuralSharing(l,i):s.structuralSharing!==!1?vy(l,i):i}function zg(l,i,s=0){const o=[...l,i];return s&&o.length>s?o.slice(1):o}function Dg(l,i,s=0){const o=[i,...l];return s&&o.length>s?o.slice(0,-1):o}var sr=Symbol();function gy(l,i){return!l.queryFn&&i?.initialPromise?()=>i.initialPromise:!l.queryFn||l.queryFn===sr?()=>Promise.reject(new Error(`Missing queryFn: '${l.queryHash}'`)):l.queryFn}function cr(l,i){return typeof l=="function"?l(...i):!!l}function Ug(l,i,s){let o=!1,r;return Object.defineProperty(l,"signal",{enumerable:!0,get:()=>(r??=i(),o||(o=!0,r.aborted?s():r.addEventListener("abort",s,{once:!0})),r)}),l}var Lg=class extends gl{#t;#e;#n;constructor(){super(),this.#n=l=>{if(!Ma&&window.addEventListener){const i=()=>l();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}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(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(l){this.#t!==l&&(this.#t=l,this.onFocus())}onFocus(){const l=this.isFocused();this.listeners.forEach(i=>{i(l)})}isFocused(){return typeof this.#t=="boolean"?this.#t:globalThis.document?.visibilityState!=="hidden"}},or=new Lg;function Wo(){let l,i;const s=new Promise((r,h)=>{l=r,i=h});s.status="pending",s.catch(()=>{});function o(r){Object.assign(s,r),delete s.resolve,delete s.reject}return s.resolve=r=>{o({status:"fulfilled",value:r}),l(r)},s.reject=r=>{o({status:"rejected",reason:r}),i(r)},s}var wg=Og;function Ng(){let l=[],i=0,s=m=>{m()},o=m=>{m()},r=wg;const h=m=>{i?l.push(m):r(()=>{s(m)})},y=()=>{const m=l;l=[],m.length&&r(()=>{o(()=>{m.forEach(v=>{s(v)})})})};return{batch:m=>{let v;i++;try{v=m()}finally{i--,i||y()}return v},batchCalls:m=>(...v)=>{h(()=>{m(...v)})},schedule:h,setNotifyFunction:m=>{s=m},setBatchNotifyFunction:m=>{o=m},setScheduler:m=>{r=m}}}var Pt=Ng(),Bg=class extends gl{#t=!0;#e;#n;constructor(){super(),this.#n=l=>{if(!Ma&&window.addEventListener){const i=()=>l(!0),s=()=>l(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",s,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",s)}}}}onSubscribe(){this.#e||this.setEventListener(this.#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(s=>{s(l)}))}isOnline(){return this.#t}},ns=new Bg;function jg(l){return Math.min(1e3*2**l,3e4)}function Sy(l){return(l??"online")==="online"?ns.isOnline():!0}var $o=class extends Error{constructor(l){super("CancelledError"),this.revert=l?.revert,this.silent=l?.silent}};function by(l){let i=!1,s=0,o;const r=Wo(),h=()=>r.status!=="pending",y=O=>{if(!h()){const L=new $o(O);g(L),l.onCancel?.(L)}},m=()=>{i=!0},v=()=>{i=!1},d=()=>or.isFocused()&&(l.networkMode==="always"||ns.isOnline())&&l.canRun(),b=()=>Sy(l.networkMode)&&l.canRun(),S=O=>{h()||(o?.(),r.resolve(O))},g=O=>{h()||(o?.(),r.reject(O))},_=()=>new Promise(O=>{o=L=>{(h()||d())&&O(L)},l.onPause?.()}).then(()=>{o=void 0,h()||l.onContinue?.()}),T=()=>{if(h())return;let O;const L=s===0?l.initialPromise:void 0;try{O=L??l.fn()}catch(j){O=Promise.reject(j)}Promise.resolve(O).then(S).catch(j=>{if(h())return;const q=l.retry??(Ma?0:3),G=l.retryDelay??jg,X=typeof G=="function"?G(s,j):G,I=q===!0||typeof q=="number"&&s<q||typeof q=="function"&&q(s,j);if(i||!I){g(j);return}s++,l.onFail?.(s,j),xg(X).then(()=>d()?void 0:_()).then(()=>{i?g(j):T()})})};return{promise:r,status:()=>r.status,cancel:y,continue:()=>(o?.(),r),cancelRetry:m,continueRetry:v,canStart:b,start:()=>(b()?T():_().then(T),r)}}var _y=class{#t;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Po(this.gcTime)&&(this.#t=Sa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(l){this.gcTime=Math.max(this.gcTime||0,l??(Ma?1/0:300*1e3))}clearGcTimeout(){this.#t&&(Sa.clearTimeout(this.#t),this.#t=void 0)}},Hg=class extends _y{#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=Hm(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 i=Hm(this.options);i.data!==void 0&&(this.setState(jm(i.data,i.dataUpdatedAt)),this.#t=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#n.remove(this)}setData(l,i){const s=Fo(this.state.data,l,this.options);return this.#i({data:s,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),s}setState(l,i){this.#i({type:"setState",state:l,setStateOptions:i})}cancel(l){const i=this.#a?.promise;return this.#a?.cancel(l),i?i.then(ue).catch(ue):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#t)}isActive(){return this.observers.some(l=>Be(l.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===sr||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStatic(){return this.getObserversCount()>0?this.observers.some(l=>Pn(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:!py(this.state.dataUpdatedAt,l)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(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(i=>i!==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,i){if(this.state.fetchStatus!=="idle"&&this.#a?.status()!=="rejected"){if(this.state.data!==void 0&&i?.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 m=this.observers.find(v=>v.options.queryFn);m&&this.setOptions(m.options)}const s=new AbortController,o=m=>{Object.defineProperty(m,"signal",{enumerable:!0,get:()=>(this.#s=!0,s.signal)})},r=()=>{const m=gy(this.options,i),d=(()=>{const b={client:this.#l,queryKey:this.queryKey,meta:this.meta};return o(b),b})();return this.#s=!1,this.options.persister?this.options.persister(m,d,this):m(d)},y=(()=>{const m={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#l,state:this.state,fetchFn:r};return o(m),m})();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=by({initialPromise:i?.initialPromise,fn:y.fetchFn,onCancel:m=>{m instanceof $o&&m.revert&&this.setState({...this.#e,fetchStatus:"idle"}),s.abort()},onFail:(m,v)=>{this.#i({type:"failed",failureCount:m,error:v})},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 m=await this.#a.start();if(m===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(m),this.#n.config.onSuccess?.(m,this),this.#n.config.onSettled?.(m,this.state.error,this),m}catch(m){if(m instanceof $o){if(m.silent)return this.#a.promise;if(m.revert){if(this.state.data===void 0)throw m;return this.state.data}}throw this.#i({type:"error",error:m}),this.#n.config.onError?.(m,this),this.#n.config.onSettled?.(this.state.data,m,this),m}finally{this.scheduleGc()}}#i(l){const i=s=>{switch(l.type){case"failed":return{...s,fetchFailureCount:l.failureCount,fetchFailureReason:l.error};case"pause":return{...s,fetchStatus:"paused"};case"continue":return{...s,fetchStatus:"fetching"};case"fetch":return{...s,...Ry(s.data,this.options),fetchMeta:l.meta??null};case"success":const o={...s,...jm(l.data,l.dataUpdatedAt),dataUpdateCount:s.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{...s,error:r,errorUpdateCount:s.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:s.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...s,isInvalidated:!0};case"setState":return{...s,...l.state}}};this.state=i(this.state),Pt.batch(()=>{this.observers.forEach(s=>{s.onQueryUpdate()}),this.#n.notify({query:this,type:"updated",action:l})})}};function Ry(l,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Sy(i.networkMode)?"fetching":"paused",...l===void 0&&{error:null,status:"pending"}}}function jm(l,i){return{data:l,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Hm(l){const i=typeof l.initialData=="function"?l.initialData():l.initialData,s=i!==void 0,o=s?typeof l.initialDataUpdatedAt=="function"?l.initialDataUpdatedAt():l.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:s?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:s?"success":"pending",fetchStatus:"idle"}}var Ey=class extends gl{constructor(l,i){super(),this.options=i,this.#t=l,this.#i=null,this.#s=Wo(),this.bindMethods(),this.setOptions(i)}#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),qm(this.#e,this.options)?this.#f():this.updateResult(),this.#S())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Io(this.#e,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Io(this.#e,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#_(),this.#e.removeObserver(this)}setOptions(l){const i=this.options,s=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 Be(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),i._defaulted&&!es(this.options,i)&&this.#t.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#e,observer:this});const o=this.hasListeners();o&&Qm(this.#e,s,this.options,i)&&this.#f(),this.updateResult(),o&&(this.#e!==s||Be(this.options.enabled,this.#e)!==Be(i.enabled,this.#e)||Pn(this.options.staleTime,this.#e)!==Pn(i.staleTime,this.#e))&&this.#p();const r=this.#v();o&&(this.#e!==s||Be(this.options.enabled,this.#e)!==Be(i.enabled,this.#e)||r!==this.#c)&&this.#g(r)}getOptimisticResult(l){const i=this.#t.getQueryCache().build(this.#t,l),s=this.createResult(i,l);return Qg(this,s)&&(this.#l=s,this.#u=this.options,this.#a=this.#e.state),s}getCurrentResult(){return this.#l}trackResult(l,i){return new Proxy(l,{get:(s,o)=>(this.trackProp(o),i?.(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(s,o))})}trackProp(l){this.#m.add(l)}getCurrentQuery(){return this.#e}refetch({...l}={}){return this.fetch({...l})}fetchOptimistic(l){const i=this.#t.defaultQueryOptions(l),s=this.#t.getQueryCache().build(this.#t,i);return s.fetch().then(()=>this.createResult(s,i))}fetch(l){return this.#f({...l,cancelRefetch:l.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#l))}#f(l){this.#R();let i=this.#e.fetch(this.options,l);return l?.throwOnError||(i=i.catch(ue)),i}#p(){this.#b();const l=Pn(this.options.staleTime,this.#e);if(Ma||this.#l.isStale||!Po(l))return;const s=py(this.#l.dataUpdatedAt,l)+1;this.#o=Sa.setTimeout(()=>{this.#l.isStale||this.updateResult()},s)}#v(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.#e):this.options.refetchInterval)??!1}#g(l){this.#_(),this.#c=l,!(Ma||Be(this.options.enabled,this.#e)===!1||!Po(this.#c)||this.#c===0)&&(this.#r=Sa.setInterval(()=>{(this.options.refetchIntervalInBackground||or.isFocused())&&this.#f()},this.#c))}#S(){this.#p(),this.#g(this.#v())}#b(){this.#o&&(Sa.clearTimeout(this.#o),this.#o=void 0)}#_(){this.#r&&(Sa.clearInterval(this.#r),this.#r=void 0)}createResult(l,i){const s=this.#e,o=this.options,r=this.#l,h=this.#a,y=this.#u,v=l!==s?l.state:this.#n,{state:d}=l;let b={...d},S=!1,g;if(i._optimisticResults){const Q=this.hasListeners(),Z=!Q&&qm(l,i),ut=Q&&Qm(l,s,i,o);(Z||ut)&&(b={...b,...Ry(d.data,l.options)}),i._optimisticResults==="isRestoring"&&(b.fetchStatus="idle")}let{error:_,errorUpdatedAt:T,status:O}=b;g=b.data;let L=!1;if(i.placeholderData!==void 0&&g===void 0&&O==="pending"){let Q;r?.isPlaceholderData&&i.placeholderData===y?.placeholderData?(Q=r.data,L=!0):Q=typeof i.placeholderData=="function"?i.placeholderData(this.#d?.state.data,this.#d):i.placeholderData,Q!==void 0&&(O="success",g=Fo(r?.data,Q,i),S=!0)}if(i.select&&g!==void 0&&!L)if(r&&g===h?.data&&i.select===this.#y)g=this.#h;else try{this.#y=i.select,g=i.select(g),g=Fo(r?.data,g,i),this.#h=g,this.#i=null}catch(Q){this.#i=Q}this.#i&&(_=this.#i,g=this.#h,T=Date.now(),O="error");const j=b.fetchStatus==="fetching",q=O==="pending",G=O==="error",X=q&&j,I=g!==void 0,Y={status:O,fetchStatus:b.fetchStatus,isPending:q,isSuccess:O==="success",isError:G,isInitialLoading:X,isLoading:X,data:g,dataUpdatedAt:b.dataUpdatedAt,error:_,errorUpdatedAt:T,failureCount:b.fetchFailureCount,failureReason:b.fetchFailureReason,errorUpdateCount:b.errorUpdateCount,isFetched:b.dataUpdateCount>0||b.errorUpdateCount>0,isFetchedAfterMount:b.dataUpdateCount>v.dataUpdateCount||b.errorUpdateCount>v.errorUpdateCount,isFetching:j,isRefetching:j&&!q,isLoadingError:G&&!I,isPaused:b.fetchStatus==="paused",isPlaceholderData:S,isRefetchError:G&&I,isStale:rr(l,i),refetch:this.refetch,promise:this.#s,isEnabled:Be(i.enabled,l)!==!1};if(this.options.experimental_prefetchInRender){const Q=Y.data!==void 0,Z=Y.status==="error"&&!Q,ut=Rt=>{Z?Rt.reject(Y.error):Q&&Rt.resolve(Y.data)},tt=()=>{const Rt=this.#s=Y.promise=Wo();ut(Rt)},W=this.#s;switch(W.status){case"pending":l.queryHash===s.queryHash&&ut(W);break;case"fulfilled":(Z||Y.data!==W.value)&&tt();break;case"rejected":(!Z||Y.error!==W.reason)&&tt();break}}return Y}updateResult(){const l=this.#l,i=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),es(i,l))return;this.#l=i;const s=()=>{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 m=y;return this.#l[m]!==l[m]&&h.has(m)})};this.#E({listeners:s()})}#R(){const l=this.#t.getQueryCache().build(this.#t,this.options);if(l===this.#e)return;const i=this.#e;this.#e=l,this.#n=l.state,this.hasListeners()&&(i?.removeObserver(this),l.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#S()}#E(l){Pt.batch(()=>{l.listeners&&this.listeners.forEach(i=>{i(this.#l)}),this.#t.getQueryCache().notify({query:this.#e,type:"observerResultsUpdated"})})}};function qg(l,i){return Be(i.enabled,l)!==!1&&l.state.data===void 0&&!(l.state.status==="error"&&i.retryOnMount===!1)}function qm(l,i){return qg(l,i)||l.state.data!==void 0&&Io(l,i,i.refetchOnMount)}function Io(l,i,s){if(Be(i.enabled,l)!==!1&&Pn(i.staleTime,l)!=="static"){const o=typeof s=="function"?s(l):s;return o==="always"||o!==!1&&rr(l,i)}return!1}function Qm(l,i,s,o){return(l!==i||Be(o.enabled,l)===!1)&&(!s.suspense||l.state.status!=="error")&&rr(l,s)}function rr(l,i){return Be(i.enabled,l)!==!1&&l.isStaleByTime(Pn(i.staleTime,l))}function Qg(l,i){return!es(l.getCurrentResult(),i)}function as(l){return{onFetch:(i,s)=>{const o=i.options,r=i.fetchOptions?.meta?.fetchMore?.direction,h=i.state.data?.pages||[],y=i.state.data?.pageParams||[];let m={pages:[],pageParams:[]},v=0;const d=async()=>{let b=!1;const S=T=>{Ug(T,()=>i.signal,()=>b=!0)},g=gy(i.options,i.fetchOptions),_=async(T,O,L)=>{if(b)return Promise.reject();if(O==null&&T.pages.length)return Promise.resolve(T);const q=(()=>{const k={client:i.client,queryKey:i.queryKey,pageParam:O,direction:L?"backward":"forward",meta:i.options.meta};return S(k),k})(),G=await g(q),{maxPages:X}=i.options,I=L?Dg:zg;return{pages:I(T.pages,G,X),pageParams:I(T.pageParams,O,X)}};if(r&&h.length){const T=r==="backward",O=T?Ty:tr,L={pages:h,pageParams:y},j=O(o,L);m=await _(L,j,T)}else{const T=l??h.length;do{const O=v===0?y[0]??o.initialPageParam:tr(o,m);if(v>0&&O==null)break;m=await _(m,O),v++}while(v<T)}return m};i.options.persister?i.fetchFn=()=>i.options.persister?.(d,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},s):i.fetchFn=d}}}function tr(l,{pages:i,pageParams:s}){const o=i.length-1;return i.length>0?l.getNextPageParam(i[o],i,s[o],s):void 0}function Ty(l,{pages:i,pageParams:s}){return i.length>0?l.getPreviousPageParam?.(i[0],i,s[0],s):void 0}function Yg(l,i){return i?tr(l,i)!=null:!1}function Gg(l,i){return!i||!l.getPreviousPageParam?!1:Ty(l,i)!=null}var Xg=class extends Ey{constructor(l,i){super(l,i)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(l){super.setOptions({...l,behavior:as()})}getOptimisticResult(l){return l.behavior=as(),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,i){const{state:s}=l,o=super.createResult(l,i),{isFetching:r,isRefetching:h,isError:y,isRefetchError:m}=o,v=s.fetchMeta?.fetchMore?.direction,d=y&&v==="forward",b=r&&v==="forward",S=y&&v==="backward",g=r&&v==="backward";return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:Yg(i,s.data),hasPreviousPage:Gg(i,s.data),isFetchNextPageError:d,isFetchingNextPage:b,isFetchPreviousPageError:S,isFetchingPreviousPage:g,isRefetchError:m&&!d&&!S,isRefetching:h&&!b&&!g}}},Vg=class extends _y{#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||My(),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(i=>i!==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 i=()=>{this.#a({type:"continue"})},s={client:this.#t,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#l=by({fn:()=>this.options.mutationFn?this.options.mutationFn(l,s):Promise.reject(new Error("No mutationFn found")),onFail:(h,y)=>{this.#a({type:"failed",failureCount:h,error:y})},onPause:()=>{this.#a({type:"pause"})},onContinue:i,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)i();else{this.#a({type:"pending",variables:l,isPaused:r}),this.#n.config.onMutate&&await this.#n.config.onMutate(l,this,s);const y=await this.options.onMutate?.(l,s);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,s),await this.options.onSuccess?.(h,l,this.state.context,s),await this.#n.config.onSettled?.(h,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(h,null,l,this.state.context,s),this.#a({type:"success",data:h}),h}catch(h){try{await this.#n.config.onError?.(h,l,this.state.context,this,s)}catch(y){Promise.reject(y)}try{await this.options.onError?.(h,l,this.state.context,s)}catch(y){Promise.reject(y)}try{await this.#n.config.onSettled?.(void 0,h,this.state.variables,this.state.context,this,s)}catch(y){Promise.reject(y)}try{await this.options.onSettled?.(void 0,h,l,this.state.context,s)}catch(y){Promise.reject(y)}throw this.#a({type:"error",error:h}),h}finally{this.#n.runNext(this)}}#a(l){const i=s=>{switch(l.type){case"failed":return{...s,failureCount:l.failureCount,failureReason:l.error};case"pause":return{...s,isPaused:!0};case"continue":return{...s,isPaused:!1};case"pending":return{...s,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{...s,data:l.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...s,data:void 0,error:l.error,failureCount:s.failureCount+1,failureReason:l.error,isPaused:!1,status:"error"}}};this.state=i(this.state),Pt.batch(()=>{this.#e.forEach(s=>{s.onMutationUpdate(l)}),this.#n.notify({mutation:this,type:"updated",action:l})})}};function My(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Kg=class extends gl{constructor(l={}){super(),this.config=l,this.#t=new Set,this.#e=new Map,this.#n=0}#t;#e;#n;build(l,i,s){const o=new Vg({client:l,mutationCache:this,mutationId:++this.#n,options:l.defaultMutationOptions(i),state:s});return this.add(o),o}add(l){this.#t.add(l);const i=Pu(l);if(typeof i=="string"){const s=this.#e.get(i);s?s.push(l):this.#e.set(i,[l])}this.notify({type:"added",mutation:l})}remove(l){if(this.#t.delete(l)){const i=Pu(l);if(typeof i=="string"){const s=this.#e.get(i);if(s)if(s.length>1){const o=s.indexOf(l);o!==-1&&s.splice(o,1)}else s[0]===l&&this.#e.delete(i)}}this.notify({type:"removed",mutation:l})}canRun(l){const i=Pu(l);if(typeof i=="string"){const o=this.#e.get(i)?.find(r=>r.state.status==="pending");return!o||o===l}else return!0}runNext(l){const i=Pu(l);return typeof i=="string"?this.#e.get(i)?.find(o=>o!==l&&o.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){Pt.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 i={exact:!0,...l};return this.getAll().find(s=>wm(i,s))}findAll(l={}){return this.getAll().filter(i=>wm(l,i))}notify(l){Pt.batch(()=>{this.listeners.forEach(i=>{i(l)})})}resumePausedMutations(){const l=this.getAll().filter(i=>i.state.isPaused);return Pt.batch(()=>Promise.all(l.map(i=>i.continue().catch(ue))))}};function Pu(l){return l.options.scope?.id}var Zg=class extends gl{#t;#e=void 0;#n;#l;constructor(l,i){super(),this.#t=l,this.setOptions(i),this.bindMethods(),this.#a()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(l){const i=this.options;this.options=this.#t.defaultMutationOptions(l),es(this.options,i)||this.#t.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),i?.mutationKey&&this.options.mutationKey&&Oa(i.mutationKey)!==Oa(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,i){return this.#l=i,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??My();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){Pt.batch(()=>{if(this.#l&&this.hasListeners()){const i=this.#e.variables,s=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,i,s,o)}catch(r){Promise.reject(r)}try{this.#l.onSettled?.(l.data,null,i,s,o)}catch(r){Promise.reject(r)}}else if(l?.type==="error"){try{this.#l.onError?.(l.error,i,s,o)}catch(r){Promise.reject(r)}try{this.#l.onSettled?.(void 0,l.error,i,s,o)}catch(r){Promise.reject(r)}}}this.listeners.forEach(i=>{i(this.#e)})})}},Jg=class extends gl{constructor(l={}){super(),this.config=l,this.#t=new Map}#t;build(l,i,s){const o=i.queryKey,r=i.queryHash??ur(o,i);let h=this.get(r);return h||(h=new Hg({client:l,queryKey:o,queryHash:r,options:l.defaultQueryOptions(i),state:s,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 i=this.#t.get(l.queryHash);i&&(l.destroy(),i===l&&this.#t.delete(l.queryHash),this.notify({type:"removed",query:l}))}clear(){Pt.batch(()=>{this.getAll().forEach(l=>{this.remove(l)})})}get(l){return this.#t.get(l)}getAll(){return[...this.#t.values()]}find(l){const i={exact:!0,...l};return this.getAll().find(s=>Lm(i,s))}findAll(l={}){const i=this.getAll();return Object.keys(l).length>0?i.filter(s=>Lm(l,s)):i}notify(l){Pt.batch(()=>{this.listeners.forEach(i=>{i(l)})})}onFocus(){Pt.batch(()=>{this.getAll().forEach(l=>{l.onFocus()})})}onOnline(){Pt.batch(()=>{this.getAll().forEach(l=>{l.onOnline()})})}},cb=class{#t;#e;#n;#l;#a;#u;#s;#i;constructor(l={}){this.#t=l.queryCache||new Jg,this.#e=l.mutationCache||new Kg,this.#n=l.defaultOptions||{},this.#l=new Map,this.#a=new Map,this.#u=0}mount(){this.#u++,this.#u===1&&(this.#s=or.subscribe(async l=>{l&&(await this.resumePausedMutations(),this.#t.onFocus())}),this.#i=ns.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 i=this.defaultQueryOptions({queryKey:l});return this.#t.get(i.queryHash)?.state.data}ensureQueryData(l){const i=this.defaultQueryOptions(l),s=this.#t.build(this,i),o=s.state.data;return o===void 0?this.fetchQuery(l):(l.revalidateIfStale&&s.isStaleByTime(Pn(i.staleTime,s))&&this.prefetchQuery(i),Promise.resolve(o))}getQueriesData(l){return this.#t.findAll(l).map(({queryKey:i,state:s})=>{const o=s.data;return[i,o]})}setQueryData(l,i,s){const o=this.defaultQueryOptions({queryKey:l}),h=this.#t.get(o.queryHash)?.state.data,y=Cg(i,h);if(y!==void 0)return this.#t.build(this,o).setData(y,{...s,manual:!0})}setQueriesData(l,i,s){return Pt.batch(()=>this.#t.findAll(l).map(({queryKey:o})=>[o,this.setQueryData(o,i,s)]))}getQueryState(l){const i=this.defaultQueryOptions({queryKey:l});return this.#t.get(i.queryHash)?.state}removeQueries(l){const i=this.#t;Pt.batch(()=>{i.findAll(l).forEach(s=>{i.remove(s)})})}resetQueries(l,i){const s=this.#t;return Pt.batch(()=>(s.findAll(l).forEach(o=>{o.reset()}),this.refetchQueries({type:"active",...l},i)))}cancelQueries(l,i={}){const s={revert:!0,...i},o=Pt.batch(()=>this.#t.findAll(l).map(r=>r.cancel(s)));return Promise.all(o).then(ue).catch(ue)}invalidateQueries(l,i={}){return Pt.batch(()=>(this.#t.findAll(l).forEach(s=>{s.invalidate()}),l?.refetchType==="none"?Promise.resolve():this.refetchQueries({...l,type:l?.refetchType??l?.type??"active"},i)))}refetchQueries(l,i={}){const s={...i,cancelRefetch:i.cancelRefetch??!0},o=Pt.batch(()=>this.#t.findAll(l).filter(r=>!r.isDisabled()&&!r.isStatic()).map(r=>{let h=r.fetch(void 0,s);return s.throwOnError||(h=h.catch(ue)),r.state.fetchStatus==="paused"?Promise.resolve():h}));return Promise.all(o).then(ue)}fetchQuery(l){const i=this.defaultQueryOptions(l);i.retry===void 0&&(i.retry=!1);const s=this.#t.build(this,i);return s.isStaleByTime(Pn(i.staleTime,s))?s.fetch(i):Promise.resolve(s.state.data)}prefetchQuery(l){return this.fetchQuery(l).then(ue).catch(ue)}fetchInfiniteQuery(l){return l.behavior=as(l.pages),this.fetchQuery(l)}prefetchInfiniteQuery(l){return this.fetchInfiniteQuery(l).then(ue).catch(ue)}ensureInfiniteQueryData(l){return l.behavior=as(l.pages),this.ensureQueryData(l)}resumePausedMutations(){return ns.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,i){this.#l.set(Oa(l),{queryKey:l,defaultOptions:i})}getQueryDefaults(l){const i=[...this.#l.values()],s={};return i.forEach(o=>{Ei(l,o.queryKey)&&Object.assign(s,o.defaultOptions)}),s}setMutationDefaults(l,i){this.#a.set(Oa(l),{mutationKey:l,defaultOptions:i})}getMutationDefaults(l){const i=[...this.#a.values()],s={};return i.forEach(o=>{Ei(l,o.mutationKey)&&Object.assign(s,o.defaultOptions)}),s}defaultQueryOptions(l){if(l._defaulted)return l;const i={...this.#n.queries,...this.getQueryDefaults(l.queryKey),...l,_defaulted:!0};return i.queryHash||(i.queryHash=ur(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===sr&&(i.enabled=!1),i}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()}},Oy=F.createContext(void 0),Cy=l=>{const i=F.useContext(Oy);if(!i)throw new Error("No QueryClient set, use QueryClientProvider to set one");return i},ob=({client:l,children:i})=>(F.useEffect(()=>(l.mount(),()=>{l.unmount()}),[l]),at.jsx(Oy.Provider,{value:l,children:i})),Ay=F.createContext(!1),Pg=()=>F.useContext(Ay);Ay.Provider;function kg(){let l=!1;return{clearReset:()=>{l=!1},reset:()=>{l=!0},isReset:()=>l}}var Fg=F.createContext(kg()),Wg=()=>F.useContext(Fg),$g=(l,i,s)=>{const o=s?.state.error&&typeof l.throwOnError=="function"?cr(l.throwOnError,[s.state.error,s]):l.throwOnError;(l.suspense||l.experimental_prefetchInRender||o)&&(i.isReset()||(l.retryOnMount=!1))},Ig=l=>{F.useEffect(()=>{l.clearReset()},[l])},t0=({result:l,errorResetBoundary:i,throwOnError:s,query:o,suspense:r})=>l.isError&&!i.isReset()&&!l.isFetching&&o&&(r&&l.data===void 0||cr(s,[l.error,o])),e0=l=>{if(l.suspense){const s=r=>r==="static"?r:Math.max(r??1e3,1e3),o=l.staleTime;l.staleTime=typeof o=="function"?(...r)=>s(o(...r)):s(o),typeof l.gcTime=="number"&&(l.gcTime=Math.max(l.gcTime,1e3))}},n0=(l,i)=>l.isLoading&&l.isFetching&&!i,a0=(l,i)=>l?.suspense&&i.isPending,Ym=(l,i,s)=>i.fetchOptimistic(l).catch(()=>{s.clearReset()});function xy(l,i,s){const o=Pg(),r=Wg(),h=Cy(),y=h.defaultQueryOptions(l);h.getDefaultOptions().queries?._experimental_beforeQuery?.(y);const m=h.getQueryCache().get(y.queryHash);y._optimisticResults=o?"isRestoring":"optimistic",e0(y),$g(y,r,m),Ig(r);const v=!h.getQueryCache().get(y.queryHash),[d]=F.useState(()=>new i(h,y)),b=d.getOptimisticResult(y),S=!o&&l.subscribed!==!1;if(F.useSyncExternalStore(F.useCallback(g=>{const _=S?d.subscribe(Pt.batchCalls(g)):ue;return d.updateResult(),_},[d,S]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),F.useEffect(()=>{d.setOptions(y)},[y,d]),a0(y,b))throw Ym(y,d,r);if(t0({result:b,errorResetBoundary:r,throwOnError:y.throwOnError,query:m,suspense:y.suspense}))throw b.error;return h.getDefaultOptions().queries?._experimental_afterQuery?.(y,b),y.experimental_prefetchInRender&&!Ma&&n0(b,o)&&(v?Ym(y,d,r):m?.promise)?.catch(ue).finally(()=>{d.updateResult()}),y.notifyOnChangeProps?b:d.trackResult(b)}function rb(l,i){return xy(l,Ey)}function fb(l,i){const s=Cy(),[o]=F.useState(()=>new Zg(s,l));F.useEffect(()=>{o.setOptions(l)},[o,l]);const r=F.useSyncExternalStore(F.useCallback(y=>o.subscribe(Pt.batchCalls(y)),[o]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),h=F.useCallback((y,m)=>{o.mutate(y,m).catch(ue)},[o]);if(r.error&&cr(o.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:h,mutateAsync:r.mutate}}function hb(l,i){return xy(l,Xg)}var Nt=(l=>(l[l.None=0]="None",l[l.Mutable=1]="Mutable",l[l.Watching=2]="Watching",l[l.RecursedCheck=4]="RecursedCheck",l[l.Recursed=8]="Recursed",l[l.Dirty=16]="Dirty",l[l.Pending=32]="Pending",l))(Nt||{});function zy({update:l,notify:i,unwatched:s}){return{link:o,unlink:r,propagate:h,checkDirty:y,shallowPropagate:m};function o(d,b,S){const g=b.depsTail;if(g!==void 0&&g.dep===d)return;const _=g!==void 0?g.nextDep:b.deps;if(_!==void 0&&_.dep===d){_.version=S,b.depsTail=_;return}const T=d.subsTail;if(T!==void 0&&T.version===S&&T.sub===b)return;const O=b.depsTail=d.subsTail={version:S,dep:d,sub:b,prevDep:g,nextDep:_,prevSub:T,nextSub:void 0};_!==void 0&&(_.prevDep=O),g!==void 0?g.nextDep=O:b.deps=O,T!==void 0?T.nextSub=O:d.subs=O}function r(d,b=d.sub){const S=d.dep,g=d.prevDep,_=d.nextDep,T=d.nextSub,O=d.prevSub;return _!==void 0?_.prevDep=g:b.depsTail=g,g!==void 0?g.nextDep=_:b.deps=_,T!==void 0?T.prevSub=O:S.subsTail=O,O!==void 0?O.nextSub=T:(S.subs=T)===void 0&&s(S),_}function h(d){let b=d.nextSub,S;t:do{const g=d.sub;let _=g.flags;if(_&60?_&12?_&4?!(_&48)&&v(d,g)?(g.flags=_|40,_&=1):_=0:g.flags=_&-9|32:_=0:g.flags=_|32,_&2&&i(g),_&1){const T=g.subs;if(T!==void 0){const O=(d=T).nextSub;O!==void 0&&(S={value:b,prev:S},b=O);continue}}if((d=b)!==void 0){b=d.nextSub;continue}for(;S!==void 0;)if(d=S.value,S=S.prev,d!==void 0){b=d.nextSub;continue t}break}while(!0)}function y(d,b){let S,g=0,_=!1;t:do{const T=d.dep,O=T.flags;if(b.flags&16)_=!0;else if((O&17)===17){if(l(T)){const L=T.subs;L.nextSub!==void 0&&m(L),_=!0}}else if((O&33)===33){(d.nextSub!==void 0||d.prevSub!==void 0)&&(S={value:d,prev:S}),d=T.deps,b=T,++g;continue}if(!_){const L=d.nextDep;if(L!==void 0){d=L;continue}}for(;g--;){const L=b.subs,j=L.nextSub!==void 0;if(j?(d=S.value,S=S.prev):d=L,_){if(l(b)){j&&m(L),b=d.sub;continue}_=!1}else b.flags&=-33;b=d.sub;const q=d.nextDep;if(q!==void 0){d=q;continue t}}return _}while(!0)}function m(d){do{const b=d.sub,S=b.flags;(S&48)===32&&(b.flags=S|16,(S&6)===2&&i(b))}while((d=d.nextSub)!==void 0)}function v(d,b){let S=b.depsTail;for(;S!==void 0;){if(S===d)return!0;S=S.prevDep}return!1}}let fr=0,ga=0,bi=0;const gn=[],{link:db,unlink:Dy,propagate:mb,checkDirty:l0,shallowPropagate:yb}=zy({update(l){return l.depsTail!==void 0?c0(l):o0(l)},notify(l){let i=bi,s=i;do if(gn[i++]=l,l.flags&=-3,l=l.subs?.sub,l===void 0||!(l.flags&2))break;while(!0);for(bi=i;s<--i;){const o=gn[s];gn[s++]=gn[i],gn[i]=o}},unwatched(l){l.flags&1?l.depsTail!==void 0&&(l.depsTail=void 0,l.flags=17,ds(l)):h0.call(l)}});function i0(){return fr}function u0(){++fr}function s0(){--fr||f0()}function c0(l){l.depsTail=void 0,l.flags=5;try{const i=l.value;return i!==(l.value=l.getter(i))}finally{l.flags&=-5,ds(l)}}function o0(l){return l.flags=1,l.currentValue!==(l.currentValue=l.pendingValue)}function r0(l){const i=l.flags;if(i&16||i&32&&l0(l.deps,l)){l.depsTail=void 0,l.flags=6;try{l.fn()}finally{l.flags&=-5,ds(l)}}else l.flags=2}function f0(){try{for(;ga<bi;){const l=gn[ga];gn[ga++]=void 0,r0(l)}}finally{for(;ga<bi;){const l=gn[ga];gn[ga++]=void 0,l.flags|=10}ga=0,bi=0}}function h0(){this.depsTail=void 0,this.flags=0,ds(this);const l=this.subs;l!==void 0&&Dy(l)}function ds(l){const i=l.depsTail;let s=i!==void 0?i.nextDep:l.deps;for(;s!==void 0;)s=Dy(s,l)}function hr(l,i,s){const o=typeof l=="object",r=o?l:void 0;return{next:(o?l.next:l)?.bind(r),error:(o?l.error:i)?.bind(r),complete:(o?l.complete:s)?.bind(r)}}const er=[];let $u=0;const{link:Gm,unlink:d0,propagate:m0,checkDirty:Uy,shallowPropagate:Xm}=zy({update(l){return l._update()},notify(l){er[nr++]=l,l.flags&=~Nt.Watching},unwatched(l){l.depsTail!==void 0&&(l.depsTail=void 0,l.flags=Nt.Mutable|Nt.Dirty,ls(l))}});let ku=0,nr=0,ke;function ls(l){const i=l.depsTail;let s=i!==void 0?i.nextDep:l.deps;for(;s!==void 0;)s=d0(s,l)}function Ly(){if(!(i0()>0)){for(;ku<nr;){const l=er[ku];er[ku++]=void 0,l.notify()}ku=0,nr=0}}function wy(l,i){const s=typeof l=="function",o=l,r={_snapshot:s?void 0:l,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:s?Nt.None:Nt.Mutable,get(){return ke!==void 0&&Gm(r,ke,$u),r._snapshot},subscribe(h){const y=hr(h),m={current:!1},v=y0(()=>{r.get(),m.current?y.next?.(r._snapshot):m.current=!0});return{unsubscribe:()=>{v.stop()}}},_update(h){const y=ke,m=Object.is;if(s)ke=r,++$u,r.depsTail=void 0;else if(h===void 0)return!1;s&&(r.flags=Nt.Mutable|Nt.RecursedCheck);try{const v=r._snapshot,d=typeof h=="function"?h(v):h===void 0&&s?o(v):h;return v===void 0||!m(v,d)?(r._snapshot=d,!0):!1}finally{ke=y,s&&(r.flags&=~Nt.RecursedCheck),ls(r)}}};return s?(r.flags=Nt.Mutable|Nt.Dirty,r.get=function(){const h=r.flags;if(h&Nt.Dirty||h&Nt.Pending&&Uy(r.deps,r)){if(r._update()){const y=r.subs;y!==void 0&&Xm(y)}}else h&Nt.Pending&&(r.flags=h&~Nt.Pending);return ke!==void 0&&Gm(r,ke,$u),r._snapshot}):r.set=function(h){if(r._update(h)){const y=r.subs;y!==void 0&&(m0(y),Xm(y),Ly())}},r}function y0(l){const i=()=>{const o=ke;ke=s,++$u,s.depsTail=void 0,s.flags=Nt.Watching|Nt.RecursedCheck;try{return l()}finally{ke=o,s.flags&=~Nt.RecursedCheck,ls(s)}},s={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Nt.Watching|Nt.RecursedCheck,notify(){const o=this.flags;o&Nt.Dirty||o&Nt.Pending&&Uy(this.deps,this)?i():this.flags=Nt.Watching},stop(){this.flags=Nt.None,this.depsTail=void 0,ls(this)}};return i(),s}class p0{constructor(i){this.atom=wy(i)}setState(i){this.atom.set(i)}get state(){return this.atom.get()}get(){return this.state}subscribe(i){return this.atom.subscribe(hr(i))}}class v0{constructor(i){this.atom=wy(i)}get state(){return this.atom.get()}get(){return this.state}subscribe(i){return this.atom.subscribe(hr(i))}}function g0(l){return typeof l=="function"?new v0(l):new p0(l)}function S0(l){try{u0(),l()}finally{s0(),Ly()}}const kn="__TSR_index",Vm="popstate",Km="beforeunload";function b0(l){let i=l.getLocation();const s=new Set,o=y=>{i=l.getLocation(),s.forEach(m=>m({location:i,action:y}))},r=y=>{l.notifyOnIndexChange??!0?o(y):i=l.getLocation()},h=async({task:y,navigateOpts:m,...v})=>{if(m?.ignoreBlocker??!1){y();return}const b=l.getBlockers?.()??[],S=v.type==="PUSH"||v.type==="REPLACE";if(typeof document<"u"&&b.length&&S)for(const g of b){const _=is(v.path,v.state);if(await g.blockerFn({currentLocation:i,nextLocation:_,action:v.type})){l.onBlocked?.();return}}y()};return{get location(){return i},get length(){return l.getLength()},subscribers:s,subscribe:y=>(s.add(y),()=>{s.delete(y)}),push:(y,m,v)=>{const d=i.state[kn];m=Zm(d+1,m),h({task:()=>{l.pushState(y,m),o({type:"PUSH"})},navigateOpts:v,type:"PUSH",path:y,state:m})},replace:(y,m,v)=>{const d=i.state[kn];m=Zm(d,m),h({task:()=>{l.replaceState(y,m),o({type:"REPLACE"})},navigateOpts:v,type:"REPLACE",path:y,state:m})},go:(y,m)=>{h({task:()=>{l.go(y),r({type:"GO",index:y})},navigateOpts:m,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:()=>i.state[kn]!==0,createHref:y=>l.createHref(y),block:y=>{if(!l.setBlockers)return()=>{};const m=l.getBlockers?.()??[];return l.setBlockers([...m,y]),()=>{const v=l.getBlockers?.()??[];l.setBlockers?.(v.filter(d=>d!==y))}},flush:()=>l.flush?.(),destroy:()=>l.destroy?.(),notify:o}}function Zm(l,i){i||(i={});const s=dr();return{...i,key:s,__TSR_key:s,[kn]:l}}function _0(l){const i=typeof document<"u"?window:void 0,s=i.history.pushState,o=i.history.replaceState;let r=[];const h=()=>r,y=Q=>r=Q,m=(Q=>Q),v=(()=>is(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state));if(!i.history.state?.__TSR_key&&!i.history.state?.key){const Q=dr();i.history.replaceState({[kn]:0,key:Q,__TSR_key:Q},"")}let d=v(),b,S=!1,g=!1,_=!1,T=!1;const O=()=>d;let L,j;const q=()=>{L&&(Y._ignoreSubscribers=!0,(L.isPush?i.history.pushState:i.history.replaceState)(L.state,"",L.href),Y._ignoreSubscribers=!1,L=void 0,j=void 0,b=void 0)},G=(Q,Z,ut)=>{const tt=m(Z);j||(b=d),d=is(Z,ut),L={href:tt,state:ut,isPush:L?.isPush||Q==="push"},j||(j=Promise.resolve().then(()=>q()))},X=Q=>{d=v(),Y.notify({type:Q})},I=async()=>{if(g){g=!1;return}const Q=v(),Z=Q.state[kn]-d.state[kn],ut=Z===1,tt=Z===-1,W=!ut&&!tt||S;S=!1;const Rt=W?"GO":tt?"BACK":"FORWARD",bt=W?{type:"GO",index:Z}:{type:tt?"BACK":"FORWARD"};if(_)_=!1;else{const Yt=h();if(typeof document<"u"&&Yt.length){for(const U of Yt)if(await U.blockerFn({currentLocation:d,nextLocation:Q,action:Rt})){g=!0,i.history.go(1),Y.notify(bt);return}}}d=v(),Y.notify(bt)},k=Q=>{if(T){T=!1;return}let Z=!1;const ut=h();if(typeof document<"u"&&ut.length)for(const tt of ut){const W=tt.enableBeforeUnload??!0;if(W===!0){Z=!0;break}if(typeof W=="function"&&W()===!0){Z=!0;break}}if(Z)return Q.preventDefault(),Q.returnValue=""},Y=b0({getLocation:O,getLength:()=>i.history.length,pushState:(Q,Z)=>G("push",Q,Z),replaceState:(Q,Z)=>G("replace",Q,Z),back:Q=>(Q&&(_=!0),T=!0,i.history.back()),forward:Q=>{Q&&(_=!0),T=!0,i.history.forward()},go:Q=>{S=!0,i.history.go(Q)},createHref:Q=>m(Q),flush:q,destroy:()=>{i.history.pushState=s,i.history.replaceState=o,i.removeEventListener(Km,k,{capture:!0}),i.removeEventListener(Vm,I)},onBlocked:()=>{b&&d!==b&&(d=b)},getBlockers:h,setBlockers:y,notifyOnIndexChange:!1});return i.addEventListener(Km,k,{capture:!0}),i.addEventListener(Vm,I),i.history.pushState=function(...Q){const Z=s.apply(i.history,Q);return Y._ignoreSubscribers||X("PUSH"),Z},i.history.replaceState=function(...Q){const Z=o.apply(i.history,Q);return Y._ignoreSubscribers||X("REPLACE"),Z},Y}function R0(l){let i=l.replace(/[\x00-\x1f\x7f]/g,"");return i.startsWith("//")&&(i="/"+i.replace(/^\/+/,"")),i}function is(l,i){const s=R0(l),o=s.indexOf("#"),r=s.indexOf("?"),h=dr();return{href:s,pathname:s.substring(0,o>0?r>0?Math.min(o,r):o:r>0?r:s.length),hash:o>-1?s.substring(o):"",search:r>-1?s.slice(r,o===-1?void 0:o):"",state:i||{[kn]:0,key:h,__TSR_key:h}}}function dr(){return(Math.random()+1).toString(36).substring(7)}const E0=!1;function _i(l){let i;return S0(()=>{i=l()}),i}function Ti(l){return l[l.length-1]}function T0(l){return typeof l=="function"}function Zn(l,i){return T0(l)?l(i):l}const M0=Object.prototype.hasOwnProperty,Jm=Object.prototype.propertyIsEnumerable;function Te(l,i,s=0){if(l===i)return l;if(s>500)return i;const o=i,r=Fm(l)&&Fm(o);if(!r&&!(us(l)&&us(o)))return o;const h=r?l:Pm(l);if(!h)return o;const y=r?o:Pm(o);if(!y)return o;const m=h.length,v=y.length,d=r?new Array(v):{};let b=0;for(let S=0;S<v;S++){const g=r?S:y[S],_=l[g],T=o[g];if(_===T){d[g]=_,(r?S<m:M0.call(l,g))&&b++;continue}if(_===null||T===null||typeof _!="object"||typeof T!="object"){d[g]=T;continue}const O=Te(_,T,s+1);d[g]=O,O===_&&b++}return m===v&&b===m?l:d}function Pm(l){const i=Object.getOwnPropertyNames(l);for(const r of i)if(!Jm.call(l,r))return!1;const s=Object.getOwnPropertySymbols(l);if(s.length===0)return i;const o=i;for(const r of s){if(!Jm.call(l,r))return!1;o.push(r)}return o}function us(l){if(!km(l))return!1;const i=l.constructor;if(typeof i>"u")return!0;const s=i.prototype;return!(!km(s)||!s.hasOwnProperty("isPrototypeOf"))}function km(l){return Object.prototype.toString.call(l)==="[object Object]"}function Fm(l){return Array.isArray(l)&&l.length===Object.keys(l).length}function Ra(l,i,s){if(l===i)return!0;if(typeof l!=typeof i)return!1;if(Array.isArray(l)&&Array.isArray(i)){if(l.length!==i.length)return!1;for(let o=0,r=l.length;o<r;o++)if(!Ra(l[o],i[o],s))return!1;return!0}if(us(l)&&us(i)){const o=s?.ignoreUndefined??!0;if(s?.partial){for(const y in i)if((!o||i[y]!==void 0)&&!Ra(l[y],i[y],s))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 i)if((!o||i[y]!==void 0)&&(h++,h>r||!Ra(l[y],i[y],s)))return!1;return r===h}return!1}function pl(l){let i,s;const o=new Promise((r,h)=>{i=r,s=h});return o.status="pending",o.resolve=r=>{o.status="resolved",o.value=r,i(r),l?.(r)},o.reject=r=>{o.status="rejected",s(r)},o}function Mi(l){return!!(l&&typeof l=="object"&&typeof l.then=="function")}function O0(l){return l.replace(/[\x00-\x1f\x7f]/g,"")}function Wm(l){let i;try{i=decodeURI(l)}catch{i=l.replaceAll(/%[0-9A-F]{2}/gi,s=>{try{return decodeURI(s)}catch{return s}})}return O0(i)}const C0=["http:","https:","mailto:","tel:"];function ss(l,i){if(!l)return!1;try{const s=new URL(l);return!i.has(s.protocol)}catch{return!1}}function pi(l){if(!l)return{path:l,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(l)&&!l.startsWith("//"))return{path:l,handledProtocolRelativeURL:!1};const i=/%25|%5C/gi;let s=0,o="",r;for(;(r=i.exec(l))!==null;)o+=Wm(l.slice(s,r.index))+r[0],s=i.lastIndex;o=o+Wm(s?l.slice(s):l);let h=!1;return o.startsWith("//")&&(h=!0,o="/"+o.replace(/^\/+/,"")),{path:o,handledProtocolRelativeURL:h}}function A0(l){return/\s|[^\u0000-\u007F]/.test(l)?l.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):l}var x0="Invariant failed";function Wn(l,i){if(!l)throw new Error(x0)}function cs(l){const i=new Map;let s,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,s=h.next,h.next=void 0,o&&(h.prev=o,o.next=h)),o=h)};return{get(h){const y=i.get(h);if(y)return r(y),y.value},set(h,y){if(i.size>=l&&s){const v=s;i.delete(v.key),v.next&&(s=v.next,v.next.prev=void 0),v===o&&(o=void 0)}const m=i.get(h);if(m)m.value=y,r(m);else{const v={key:h,value:y,prev:o};o&&(o.next=v),o=v,s||(s=v),i.set(h,v)}},clear(){i.clear(),s=void 0,o=void 0}}}const vl=0,Ca=1,Aa=2,Oi=3,ba=4,Ny=5;function z0(l){const i=l.indexOf("{");if(i===-1)return null;const s=l.indexOf("}",i);return s===-1||i+1>=l.length?null:[i,s]}function mr(l,i,s=new Uint16Array(6)){const o=l.indexOf("/",i),r=o===-1?l.length:o,h=l.substring(i,r);if(!h||!h.includes("$"))return s[0]=vl,s[1]=i,s[2]=i,s[3]=r,s[4]=r,s[5]=r,s;if(h==="$"){const m=l.length;return s[0]=Aa,s[1]=i,s[2]=i,s[3]=m,s[4]=m,s[5]=m,s}if(h.charCodeAt(0)===36)return s[0]=Ca,s[1]=i,s[2]=i+1,s[3]=r,s[4]=r,s[5]=r,s;const y=z0(h);if(y){const[m,v]=y,d=h.charCodeAt(m+1);if(d===45){if(m+2<h.length&&h.charCodeAt(m+2)===36){const b=m+3,S=v;if(b<S)return s[0]=Oi,s[1]=i+m,s[2]=i+b,s[3]=i+S,s[4]=i+v+1,s[5]=r,s}}else if(d===36){const b=m+1,S=m+2;return S===v?(s[0]=Aa,s[1]=i+m,s[2]=i+b,s[3]=i+S,s[4]=i+v+1,s[5]=l.length,s):(s[0]=Ca,s[1]=i+m,s[2]=i+S,s[3]=i+v,s[4]=i+v+1,s[5]=r,s)}}return s[0]=vl,s[1]=i,s[2]=i,s[3]=r,s[4]=r,s[5]=r,s}function ms(l,i,s,o,r,h,y){y?.(s);let m=o;{const v=s.fullPath??s.from,d=v.length,b=s.options?.caseSensitive??l,S=!!(s.options?.params?.parse&&s.options?.skipRouteOnParseError?.params);for(;m<d;){const _=mr(v,m,i);let T;const O=m,L=_[5];switch(m=L+1,h++,_[0]){case vl:{const q=v.substring(_[2],_[3]);if(b){const G=r.static?.get(q);if(G)T=G;else{r.static??=new Map;const X=_a(s.fullPath??s.from);X.parent=r,X.depth=h,T=X,r.static.set(q,X)}}else{const G=q.toLowerCase(),X=r.staticInsensitive?.get(G);if(X)T=X;else{r.staticInsensitive??=new Map;const I=_a(s.fullPath??s.from);I.parent=r,I.depth=h,T=I,r.staticInsensitive.set(G,I)}}break}case Ca:{const q=v.substring(O,_[1]),G=v.substring(_[4],L),X=b&&!!(q||G),I=q?X?q:q.toLowerCase():void 0,k=G?X?G:G.toLowerCase():void 0,Y=!S&&r.dynamic?.find(Q=>!Q.skipOnParamError&&Q.caseSensitive===X&&Q.prefix===I&&Q.suffix===k);if(Y)T=Y;else{const Q=Ho(Ca,s.fullPath??s.from,X,I,k);T=Q,Q.depth=h,Q.parent=r,r.dynamic??=[],r.dynamic.push(Q)}break}case Oi:{const q=v.substring(O,_[1]),G=v.substring(_[4],L),X=b&&!!(q||G),I=q?X?q:q.toLowerCase():void 0,k=G?X?G:G.toLowerCase():void 0,Y=!S&&r.optional?.find(Q=>!Q.skipOnParamError&&Q.caseSensitive===X&&Q.prefix===I&&Q.suffix===k);if(Y)T=Y;else{const Q=Ho(Oi,s.fullPath??s.from,X,I,k);T=Q,Q.parent=r,Q.depth=h,r.optional??=[],r.optional.push(Q)}break}case Aa:{const q=v.substring(O,_[1]),G=v.substring(_[4],L),X=b&&!!(q||G),I=q?X?q:q.toLowerCase():void 0,k=G?X?G:G.toLowerCase():void 0,Y=Ho(Aa,s.fullPath??s.from,X,I,k);T=Y,Y.parent=r,Y.depth=h,r.wildcard??=[],r.wildcard.push(Y)}}r=T}if(S&&s.children&&!s.isRoot&&s.id&&s.id.charCodeAt(s.id.lastIndexOf("/")+1)===95){const _=_a(s.fullPath??s.from);_.kind=Ny,_.parent=r,h++,_.depth=h,r.pathless??=[],r.pathless.push(_),r=_}const g=(s.path||!s.children)&&!s.isRoot;if(g&&v.endsWith("/")){const _=_a(s.fullPath??s.from);_.kind=ba,_.parent=r,h++,_.depth=h,r.index=_,r=_}r.parse=s.options?.params?.parse??null,r.skipOnParamError=S,r.parsingPriority=s.options?.skipRouteOnParseError?.priority??0,g&&!r.route&&(r.route=s,r.fullPath=s.fullPath??s.from)}if(s.children)for(const v of s.children)ms(l,i,v,m,r,h,y)}function jo(l,i){if(l.skipOnParamError&&!i.skipOnParamError)return-1;if(!l.skipOnParamError&&i.skipOnParamError)return 1;if(l.skipOnParamError&&i.skipOnParamError&&(l.parsingPriority||i.parsingPriority))return i.parsingPriority-l.parsingPriority;if(l.prefix&&i.prefix&&l.prefix!==i.prefix){if(l.prefix.startsWith(i.prefix))return-1;if(i.prefix.startsWith(l.prefix))return 1}if(l.suffix&&i.suffix&&l.suffix!==i.suffix){if(l.suffix.endsWith(i.suffix))return-1;if(i.suffix.endsWith(l.suffix))return 1}return l.prefix&&!i.prefix?-1:!l.prefix&&i.prefix?1:l.suffix&&!i.suffix?-1:!l.suffix&&i.suffix?1:l.caseSensitive&&!i.caseSensitive?-1:!l.caseSensitive&&i.caseSensitive?1:0}function Kn(l){if(l.pathless)for(const i of l.pathless)Kn(i);if(l.static)for(const i of l.static.values())Kn(i);if(l.staticInsensitive)for(const i of l.staticInsensitive.values())Kn(i);if(l.dynamic?.length){l.dynamic.sort(jo);for(const i of l.dynamic)Kn(i)}if(l.optional?.length){l.optional.sort(jo);for(const i of l.optional)Kn(i)}if(l.wildcard?.length){l.wildcard.sort(jo);for(const i of l.wildcard)Kn(i)}}function _a(l){return{kind:vl,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,i,s,o,r){return{kind:l,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:i,parent:null,parse:null,skipOnParamError:!1,parsingPriority:0,caseSensitive:s,prefix:o,suffix:r}}function D0(l,i){const s=_a("/"),o=new Uint16Array(6);for(const r of l)ms(!1,o,r,1,s,0);Kn(s),i.masksTree=s,i.flatCache=cs(1e3)}function U0(l,i){l||="/";const s=i.flatCache.get(l);if(s)return s;const o=yr(l,i.masksTree);return i.flatCache.set(l,o),o}function L0(l,i,s,o,r){l||="/",o||="/";const h=i?`case\0${l}`:l;let y=r.singleCache.get(h);if(!y){y=_a("/");const m=new Uint16Array(6);ms(i,m,{from:l},1,y,0),r.singleCache.set(h,y)}return yr(o,y,s)}function w0(l,i,s=!1){const o=s?l:`nofuzz\0${l}`,r=i.matchCache.get(o);if(r!==void 0)return r;l||="/";let h;try{h=yr(l,i.segmentTree,s)}catch(y){if(y instanceof URIError)h=null;else throw y}return h&&(h.branch=j0(h.route)),i.matchCache.set(o,h),h}function N0(l){return l==="/"?l:l.replace(/\/{1,}$/,"")}function B0(l,i=!1,s){const o=_a(l.fullPath),r=new Uint16Array(6),h={},y={};let m=0;return ms(i,r,l,1,o,0,d=>{if(s?.(d,m),Wn(!(d.id in h),`Duplicate routes found with id: ${String(d.id)}`),h[d.id]=d,m!==0&&d.path){const b=N0(d.fullPath);(!y[b]||d.fullPath.endsWith("/"))&&(y[b]=d)}m++}),Kn(o),{processedTree:{segmentTree:o,singleCache:cs(1e3),matchCache:cs(1e3),flatCache:null,masksTree:null},routesById:h,routesByPath:y}}function yr(l,i,s=!1){const o=l.split("/"),r=q0(l,o,i,s);if(!r)return null;const[h]=By(l,o,r);return{route:r.node.route,rawParams:h,parsedParams:r.parsedParams}}function By(l,i,s){const o=H0(s.node);let r=null;const h={};let y=s.extract?.part??0,m=s.extract?.node??0,v=s.extract?.path??0,d=s.extract?.segment??0;for(;m<o.length;y++,m++,v++,d++){const b=o[m];if(b.kind===ba)break;if(b.kind===Ny){d--,y--,v--;continue}const S=i[y],g=v;if(S&&(v+=S.length),b.kind===Ca){r??=s.node.fullPath.split("/");const _=r[d],T=b.prefix?.length??0;if(_.charCodeAt(T)===123){const L=b.suffix?.length??0,j=_.substring(T+2,_.length-L-1),q=S.substring(T,S.length-L);h[j]=decodeURIComponent(q)}else{const L=_.substring(1);h[L]=decodeURIComponent(S)}}else if(b.kind===Oi){if(s.skipped&1<<m){y--,v=g-1;continue}r??=s.node.fullPath.split("/");const _=r[d],T=b.prefix?.length??0,O=b.suffix?.length??0,L=_.substring(T+3,_.length-O-1),j=b.suffix||b.prefix?S.substring(T,S.length-O):S;j&&(h[L]=decodeURIComponent(j))}else if(b.kind===Aa){const _=b,T=l.substring(g+(_.prefix?.length??0),l.length-(_.suffix?.length??0)),O=decodeURIComponent(T);h["*"]=O,h._splat=O;break}}return s.rawParams&&Object.assign(h,s.rawParams),[h,{part:y,node:m,path:v,segment:d}]}function j0(l){const i=[l];for(;l.parentRoute;)l=l.parentRoute,i.push(l);return i.reverse(),i}function H0(l){const i=Array(l.depth+1);do i[l.depth]=l,l=l.parent;while(l);return i}function q0(l,i,s,o){if(l==="/"&&s.index)return{node:s.index,skipped:0};const r=!Ti(i),h=r&&l!=="/",y=i.length-(r?1:0),m=[{node:s,index:1,skipped:0,depth:1,statics:1,dynamics:0,optionals:0}];let v=null,d=null,b=null;for(;m.length;){const S=m.pop(),{node:g,index:_,skipped:T,depth:O,statics:L,dynamics:j,optionals:q}=S;let{extract:G,rawParams:X,parsedParams:I}=S;if(g.skipOnParamError){if(!qo(l,i,S))continue;X=S.rawParams,G=S.extract,I=S.parsedParams}o&&g.route&&g.kind!==ba&&vi(d,S)&&(d=S);const k=_===y;if(k&&(g.route&&!h&&vi(b,S)&&(b=S),!g.optional&&!g.wildcard&&!g.index&&!g.pathless))continue;const Y=k?void 0:i[_];let Q;if(k&&g.index){const Z={node:g.index,index:_,skipped:T,depth:O+1,statics:L,dynamics:j,optionals:q,extract:G,rawParams:X,parsedParams:I};let ut=!0;if(g.index.skipOnParamError&&(qo(l,i,Z)||(ut=!1)),ut){if(L===y&&!j&&!q&&!T)return Z;vi(b,Z)&&(b=Z)}}if(g.wildcard&&vi(v,S))for(const Z of g.wildcard){const{prefix:ut,suffix:tt}=Z;if(ut&&(k||!(Z.caseSensitive?Y:Q??=Y.toLowerCase()).startsWith(ut)))continue;if(tt){if(k)continue;const Rt=i.slice(_).join("/").slice(-tt.length);if((Z.caseSensitive?Rt:Rt.toLowerCase())!==tt)continue}const W={node:Z,index:y,skipped:T,depth:O,statics:L,dynamics:j,optionals:q,extract:G,rawParams:X,parsedParams:I};if(!(Z.skipOnParamError&&!qo(l,i,W))){v=W;break}}if(g.optional){const Z=T|1<<O,ut=O+1;for(let tt=g.optional.length-1;tt>=0;tt--){const W=g.optional[tt];m.push({node:W,index:_,skipped:Z,depth:ut,statics:L,dynamics:j,optionals:q,extract:G,rawParams:X,parsedParams:I})}if(!k)for(let tt=g.optional.length-1;tt>=0;tt--){const W=g.optional[tt],{prefix:Rt,suffix:bt}=W;if(Rt||bt){const Yt=W.caseSensitive?Y:Q??=Y.toLowerCase();if(Rt&&!Yt.startsWith(Rt)||bt&&!Yt.endsWith(bt))continue}m.push({node:W,index:_+1,skipped:T,depth:ut,statics:L,dynamics:j,optionals:q+1,extract:G,rawParams:X,parsedParams:I})}}if(!k&&g.dynamic&&Y)for(let Z=g.dynamic.length-1;Z>=0;Z--){const ut=g.dynamic[Z],{prefix:tt,suffix:W}=ut;if(tt||W){const Rt=ut.caseSensitive?Y:Q??=Y.toLowerCase();if(tt&&!Rt.startsWith(tt)||W&&!Rt.endsWith(W))continue}m.push({node:ut,index:_+1,skipped:T,depth:O+1,statics:L,dynamics:j+1,optionals:q,extract:G,rawParams:X,parsedParams:I})}if(!k&&g.staticInsensitive){const Z=g.staticInsensitive.get(Q??=Y.toLowerCase());Z&&m.push({node:Z,index:_+1,skipped:T,depth:O+1,statics:L+1,dynamics:j,optionals:q,extract:G,rawParams:X,parsedParams:I})}if(!k&&g.static){const Z=g.static.get(Y);Z&&m.push({node:Z,index:_+1,skipped:T,depth:O+1,statics:L+1,dynamics:j,optionals:q,extract:G,rawParams:X,parsedParams:I})}if(g.pathless){const Z=O+1;for(let ut=g.pathless.length-1;ut>=0;ut--){const tt=g.pathless[ut];m.push({node:tt,index:_,skipped:T,depth:Z,statics:L,dynamics:j,optionals:q,extract:G,rawParams:X,parsedParams:I})}}}if(b&&v)return vi(v,b)?b:v;if(b)return b;if(v)return v;if(o&&d){let S=d.index;for(let _=0;_<d.index;_++)S+=i[_].length;const g=S===l.length?"/":l.slice(S);return d.rawParams??={},d.rawParams["**"]=decodeURIComponent(g),d}return null}function qo(l,i,s){try{const[o,r]=By(l,i,s);s.rawParams=o,s.extract=r;const h=s.node.parse(o);return s.parsedParams=Object.assign({},s.parsedParams,h),!0}catch{return null}}function vi(l,i){return l?i.statics>l.statics||i.statics===l.statics&&(i.dynamics>l.dynamics||i.dynamics===l.dynamics&&(i.optionals>l.optionals||i.optionals===l.optionals&&((i.node.kind===ba)>(l.node.kind===ba)||i.node.kind===ba==(l.node.kind===ba)&&i.depth>l.depth))):!0}function Iu(l){return pr(l.filter(i=>i!==void 0).join("/"))}function pr(l){return l.replace(/\/{2,}/g,"/")}function jy(l){return l==="/"?l:l.replace(/^\/{1,}/,"")}function Fn(l){const i=l.length;return i>1&&l[i-1]==="/"?l.replace(/\/{1,}$/,""):l}function Hy(l){return Fn(jy(l))}function os(l,i){return l?.endsWith("/")&&l!=="/"&&l!==`${i}/`?l.slice(0,-1):l}function Q0(l,i,s){return os(l,s)===os(i,s)}function Y0({base:l,to:i,trailingSlash:s="never",cache:o}){const r=i.startsWith("/"),h=!r&&i===".";let y;if(o){y=r?i:h?l:l+"\0"+i;const S=o.get(y);if(S)return S}let m;if(h)m=l.split("/");else if(r)m=i.split("/");else{for(m=l.split("/");m.length>1&&Ti(m)==="";)m.pop();const S=i.split("/");for(let g=0,_=S.length;g<_;g++){const T=S[g];T===""?g?g===_-1&&m.push(T):m=[T]:T===".."?m.pop():T==="."||m.push(T)}}m.length>1&&(Ti(m)===""?s==="never"&&m.pop():s==="always"&&m.push(""));let v,d="";for(let S=0;S<m.length;S++){S>0&&(d+="/");const g=m[S];if(!g)continue;v=mr(g,0,v);const _=v[0];if(_===vl){d+=g;continue}const T=v[5],O=g.substring(0,v[1]),L=g.substring(v[4],T),j=g.substring(v[2],v[3]);_===Ca?d+=O||L?`${O}{$${j}}${L}`:`$${j}`:_===Aa?d+=O||L?`${O}{$}${L}`:"$":d+=`${O}{-$${j}}${L}`}d=pr(d);const b=d||"/";return y&&o&&o.set(y,b),b}function G0(l){const i=new Map(l.map(r=>[encodeURIComponent(r),r])),s=Array.from(i.keys()).map(r=>r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),o=new RegExp(s,"g");return r=>r.replace(o,h=>i.get(h)??h)}function Qo(l,i,s){const o=i[l];return typeof o!="string"?o:l==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(o)?o:o.split("/").map(r=>Im(r,s)).join("/"):Im(o,s)}function $m({path:l,params:i,decoder:s,...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 m=0,v,d="";for(;m<y;){const S=m;v=mr(l,S,v);const g=v[5];if(m=g+1,S===g)continue;const _=v[0];if(_===vl){d+="/"+l.substring(S,g);continue}if(_===Aa){const T=i._splat;h._splat=T,h["*"]=T;const O=l.substring(S,v[1]),L=l.substring(v[4],g);if(!T){r=!0,(O||L)&&(d+="/"+O+L);continue}const j=Qo("_splat",i,s);d+="/"+O+j+L;continue}if(_===Ca){const T=l.substring(v[2],v[3]);!r&&!(T in i)&&(r=!0),h[T]=i[T];const O=l.substring(S,v[1]),L=l.substring(v[4],g),j=Qo(T,i,s)??"undefined";d+="/"+O+j+L;continue}if(_===Oi){const T=l.substring(v[2],v[3]),O=i[T];if(O==null)continue;h[T]=O;const L=l.substring(S,v[1]),j=l.substring(v[4],g),q=Qo(T,i,s)??"";d+="/"+L+q+j;continue}}return l.endsWith("/")&&(d+="/"),{usedParams:h,interpolatedPath:d||"/",isMissingParams:r}}function Im(l,i){const s=encodeURIComponent(l);return i?.(s)??s}function me(l){return!!l?.isNotFound}function X0(){try{if(typeof window<"u"&&typeof window.sessionStorage=="object")return window.sessionStorage}catch{}}const ar="tsr-scroll-restoration-v1_3",V0=(l,i)=>{let s;return(...o)=>{s||(s=setTimeout(()=>{l(...o),s=null},i))}};function K0(){const l=X0();if(!l)return null;const i=l.getItem(ar);let s=i?JSON.parse(i):{};return{state:s,set:o=>{s=Zn(o,s)||s;try{l.setItem(ar,JSON.stringify(s))}catch{console.warn("[ts-router] Could not persist scroll restoration state to sessionStorage.")}}}}const Fu=K0(),Z0=l=>l.state.__TSR_key||l.href;function J0(l){const i=[];let s;for(;s=l.parentNode;)i.push(`${l.tagName}:nth-child(${Array.prototype.indexOf.call(s.children,l)+1})`),l=s;return`${i.reverse().join(" > ")}`.toLowerCase()}let rs=!1;function P0({storageKey:l,key:i,behavior:s,shouldScrollRestoration:o,scrollToTopSelectors:r,location:h}){let y;try{y=JSON.parse(sessionStorage.getItem(l)||"{}")}catch(d){console.error(d);return}const m=i||window.history.state?.__TSR_key,v=y[m];rs=!0;t:{if(o&&v&&Object.keys(v).length>0){for(const S in v){const g=v[S];if(S==="window")window.scrollTo({top:g.scrollY,left:g.scrollX,behavior:s});else if(S){const _=document.querySelector(S);_&&(_.scrollLeft=g.scrollX,_.scrollTop=g.scrollY)}}break t}const d=(h??window.location).hash.split("#",2)[1];if(d){const S=window.history.state?.__hashScrollIntoViewOptions??!0;if(S){const g=document.getElementById(d);g&&g.scrollIntoView(S)}break t}const b={top:0,left:0,behavior:s};if(window.scrollTo(b),r)for(const S of r){if(S==="window")continue;const g=typeof S=="function"?S():document.querySelector(S);g&&g.scrollTo(b)}}rs=!1}function k0(l,i){if(!Fu||((l.options.scrollRestoration??!1)&&(l.isScrollRestoring=!0),l.isScrollRestorationSetup||!Fu))return;l.isScrollRestorationSetup=!0,rs=!1;const o=l.options.getScrollRestorationKey||Z0;window.history.scrollRestoration="manual";const r=h=>{if(rs||!l.isScrollRestoring)return;let y="";if(h.target===document||h.target===window)y="window";else{const v=h.target.getAttribute("data-scroll-restoration-id");v?y=`[data-scroll-restoration-id="${v}"]`:y=J0(h.target)}const m=o(l.state.location);Fu.set(v=>{const d=v[m]||={},b=d[y]||={};if(y==="window")b.scrollX=window.scrollX||0,b.scrollY=window.scrollY||0;else if(y){const S=document.querySelector(y);S&&(b.scrollX=S.scrollLeft||0,b.scrollY=S.scrollTop||0)}return v})};typeof document<"u"&&document.addEventListener("scroll",V0(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})||(P0({storageKey:ar,key:y,behavior:l.options.scrollRestorationBehavior,shouldScrollRestoration:l.isScrollRestoring,scrollToTopSelectors:l.options.scrollToTopSelectors,location:l.history.location}),l.isScrollRestoring&&Fu.set(m=>(m[y]||={},m)))})}function F0(l){if(typeof document<"u"&&document.querySelector){const i=l.state.location.state.__hashScrollIntoViewOptions??!0;if(i&&l.state.location.hash!==""){const s=document.getElementById(l.state.location.hash);s&&s.scrollIntoView(i)}}}function W0(l,i=String){const s=new URLSearchParams;for(const o in l){const r=l[o];r!==void 0&&s.set(o,i(r))}return s.toString()}function Yo(l){return l?l==="false"?!1:l==="true"?!0:+l*0===0&&+l+""===l?+l:l:""}function $0(l){const i=new URLSearchParams(l),s={};for(const[o,r]of i.entries()){const h=s[o];h==null?s[o]=Yo(r):Array.isArray(h)?h.push(Yo(r)):s[o]=[h,Yo(r)]}return s}const I0=eS(JSON.parse),tS=nS(JSON.stringify,JSON.parse);function eS(l){return i=>{i[0]==="?"&&(i=i.substring(1));const s=$0(i);for(const o in s){const r=s[o];if(typeof r=="string")try{s[o]=l(r)}catch{}}return s}}function nS(l,i){const s=typeof i=="function";function o(r){if(typeof r=="object"&&r!==null)try{return l(r)}catch{}else if(s&&typeof r=="string")try{return i(r),l(r)}catch{}return r}return r=>{const h=W0(r,o);return h?`?${h}`:""}}const je="__root__";function aS(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 i=new Headers(l.headers);l.href&&i.get("Location")===null&&i.set("Location",l.href);const s=new Response(null,{status:l.statusCode,headers:i});if(s.options=l,l.throw)throw s;return s}function Me(l){return l instanceof Response&&!!l.options}const lr=l=>{if(!l.rendered)return l.rendered=!0,l.onReady?.()},ys=(l,i)=>!!(l.preload&&!l.router.state.matches.some(s=>s.id===i)),Ea=(l,i,s=!0)=>{const o={...l.router.options.context??{}},r=s?i:i-1;for(let h=0;h<=r;h++){const y=l.matches[h];if(!y)continue;const m=l.router.getMatch(y.id);m&&Object.assign(o,m.__routeContext,m.__beforeLoadContext)}return o},ty=(l,i)=>{if(!l.matches.length)return;const s=i.routeId,o=l.matches.findIndex(y=>y.routeId===l.router.routeTree.id),r=o>=0?o:0;let h=s?l.matches.findIndex(y=>y.routeId===s):l.firstBadMatchIndex??l.matches.length-1;h<0&&(h=r);for(let y=h;y>=0;y--){const m=l.matches[y];if(l.router.looseRoutesById[m.routeId].options.notFoundComponent)return y}return s?h:r},Jn=(l,i,s)=>{if(!(!Me(s)&&!me(s)))throw Me(s)&&s.redirectHandled&&!s.options.reloadDocument||(i&&(i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.loaderPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loaderPromise=void 0,i._nonReactive.error=s,l.updateMatch(i.id,o=>({...o,status:Me(s)?"redirected":o.status==="pending"?"success":o.status,context:Ea(l,i.index),isFetching:!1,error:s})),me(s)&&!s.routeId&&(s.routeId=i.routeId),i._nonReactive.loadPromise?.resolve()),Me(s)&&(l.rendered=!0,s.options._fromLocation=l.location,s.redirectHandled=!0,s=l.router.resolveRedirect(s))),s},qy=(l,i)=>{const s=l.router.getMatch(i);return!!(!s||s._nonReactive.dehydrated)},ey=(l,i,s)=>{const o=Ea(l,s);l.updateMatch(i,r=>({...r,context:o}))},gi=(l,i,s,o)=>{const{id:r,routeId:h}=l.matches[i],y=l.router.looseRoutesById[h];if(s instanceof Promise)throw s;s.routerCode=o,l.firstBadMatchIndex??=i,Jn(l,l.router.getMatch(r),s);try{y.options.onError?.(s)}catch(m){s=m,Jn(l,l.router.getMatch(r),s)}l.updateMatch(r,m=>(m._nonReactive.beforeLoadPromise?.resolve(),m._nonReactive.beforeLoadPromise=void 0,m._nonReactive.loadPromise?.resolve(),{...m,error:s,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!l.preload&&!Me(s)&&!me(s)&&(l.serialError??=s)},Qy=(l,i,s,o)=>{if(o._nonReactive.pendingTimeout!==void 0)return;const r=s.options.pendingMs??l.router.options.defaultPendingMs;if(!!(l.onReady&&!ys(l,i)&&(s.options.loader||s.options.beforeLoad||Gy(s))&&typeof r=="number"&&r!==1/0&&(s.options.pendingComponent??l.router.options?.defaultPendingComponent))){const y=setTimeout(()=>{lr(l)},r);o._nonReactive.pendingTimeout=y}},lS=(l,i,s)=>{const o=l.router.getMatch(i);if(!o._nonReactive.beforeLoadPromise&&!o._nonReactive.loaderPromise)return;Qy(l,i,s,o);const r=()=>{const h=l.router.getMatch(i);h.preload&&(h.status==="redirected"||h.status==="notFound")&&Jn(l,h,h.error)};return o._nonReactive.beforeLoadPromise?o._nonReactive.beforeLoadPromise.then(r):r()},iS=(l,i,s,o)=>{const r=l.router.getMatch(i),h=r._nonReactive.loadPromise;r._nonReactive.loadPromise=pl(()=>{h?.resolve()});const{paramsError:y,searchError:m}=r;y&&gi(l,s,y,"PARSE_PARAMS"),m&&gi(l,s,m,"VALIDATE_SEARCH"),Qy(l,i,o,r);const v=new AbortController;let d=!1;const b=()=>{d||(d=!0,l.updateMatch(i,X=>({...X,isFetching:"beforeLoad",fetchCount:X.fetchCount+1,abortController:v})))},S=()=>{r._nonReactive.beforeLoadPromise?.resolve(),r._nonReactive.beforeLoadPromise=void 0,l.updateMatch(i,X=>({...X,isFetching:!1}))};if(!o.options.beforeLoad){_i(()=>{b(),S()});return}r._nonReactive.beforeLoadPromise=pl();const g={...Ea(l,s,!1),...r.__routeContext},{search:_,params:T,cause:O}=r,L=ys(l,i),j={search:_,abortController:v,params:T,preload:L,context:g,location:l.location,navigate:X=>l.router.navigate({...X,_fromLocation:l.location}),buildLocation:l.router.buildLocation,cause:L?"preload":O,matches:l.matches,routeId:o.id,...l.router.options.additionalContext},q=X=>{if(X===void 0){_i(()=>{b(),S()});return}(Me(X)||me(X))&&(b(),gi(l,s,X,"BEFORE_LOAD")),_i(()=>{b(),l.updateMatch(i,I=>({...I,__beforeLoadContext:X})),S()})};let G;try{if(G=o.options.beforeLoad(j),Mi(G))return b(),G.catch(X=>{gi(l,s,X,"BEFORE_LOAD")}).then(q)}catch(X){b(),gi(l,s,X,"BEFORE_LOAD")}q(G)},uS=(l,i)=>{const{id:s,routeId:o}=l.matches[i],r=l.router.looseRoutesById[o],h=()=>m(),y=()=>iS(l,s,i,r),m=()=>{if(qy(l,s))return;const v=lS(l,s,r);return Mi(v)?v.then(y):y()};return h()},sS=(l,i,s)=>{const o=l.router.getMatch(i);if(!o||!s.options.head&&!s.options.scripts&&!s.options.headers)return;const r={ssr:l.router.options.ssr,matches:l.matches,match:o,params:o.params,loaderData:o.loaderData};return Promise.all([s.options.head?.(r),s.options.scripts?.(r),s.options.headers?.(r)]).then(([h,y,m])=>{const v=h?.meta,d=h?.links,b=h?.scripts,S=h?.styles;return{meta:v,links:d,headScripts:b,headers:m,scripts:y,styles:S}})},Yy=(l,i,s,o,r)=>{const h=i[o-1],{params:y,loaderDeps:m,abortController:v,cause:d}=l.router.getMatch(s),b=Ea(l,o),S=ys(l,s);return{params:y,deps:m,preload:!!S,parentMatchPromise:h,abortController:v,context:b,location:l.location,navigate:g=>l.router.navigate({...g,_fromLocation:l.location}),cause:S?"preload":d,route:r,...l.router.options.additionalContext}},ny=async(l,i,s,o,r)=>{try{const h=l.router.getMatch(s);try{(!(E0??l.router.isServer)||h.ssr===!0)&&fs(r);const y=r.options.loader?.(Yy(l,i,s,o,r)),m=r.options.loader&&Mi(y);if((m||r._lazyPromise||r._componentsPromise||r.options.head||r.options.scripts||r.options.headers||h._nonReactive.minPendingPromise)&&l.updateMatch(s,b=>({...b,isFetching:"loader"})),r.options.loader){const b=m?await y:y;Jn(l,l.router.getMatch(s),b),b!==void 0&&l.updateMatch(s,S=>({...S,loaderData:b}))}r._lazyPromise&&await r._lazyPromise;const d=h._nonReactive.minPendingPromise;d&&await d,r._componentsPromise&&await r._componentsPromise,l.updateMatch(s,b=>({...b,error:void 0,context:Ea(l,o),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(y){let m=y;if(m?.name==="AbortError"){if(h.abortController.signal.aborted){h._nonReactive.loaderPromise?.resolve(),h._nonReactive.loaderPromise=void 0;return}l.updateMatch(s,d=>({...d,status:d.status==="pending"?"success":d.status,isFetching:!1,context:Ea(l,o)}));return}const v=h._nonReactive.minPendingPromise;v&&await v,me(y)&&await r.options.notFoundComponent?.preload?.(),Jn(l,l.router.getMatch(s),y);try{r.options.onError?.(y)}catch(d){m=d,Jn(l,l.router.getMatch(s),d)}l.updateMatch(s,d=>({...d,error:m,context:Ea(l,o),status:"error",isFetching:!1}))}}catch(h){const y=l.router.getMatch(s);y&&(y._nonReactive.loaderPromise=void 0),Jn(l,y,h)}},cS=async(l,i,s)=>{async function o(S,g,_,T,O){const L=Date.now()-g.updatedAt,j=S?O.options.preloadStaleTime??l.router.options.defaultPreloadStaleTime??3e4:O.options.staleTime??l.router.options.defaultStaleTime??0,q=O.options.shouldReload,G=typeof q=="function"?q(Yy(l,i,r,s,O)):q,{status:X,invalid:I}=T,k=L>j&&(!!l.forceStaleReload||T.cause==="enter"||_!==void 0&&_!==T.id);y=X==="success"&&(I||(G??k)),S&&O.options.preload===!1||(y&&!l.sync?(m=!0,(async()=>{try{await ny(l,i,r,s,O);const Y=l.router.getMatch(r);Y._nonReactive.loaderPromise?.resolve(),Y._nonReactive.loadPromise?.resolve(),Y._nonReactive.loaderPromise=void 0}catch(Y){Me(Y)&&await l.router.navigate(Y.options)}})()):X!=="success"||y&&l.sync?await ny(l,i,r,s,O):ey(l,r,s))}const{id:r,routeId:h}=l.matches[s];let y=!1,m=!1;const v=l.router.looseRoutesById[h];if(qy(l,r)){if(!l.router.getMatch(r))return l.matches[s];ey(l,r,s)}else{const S=l.router.getMatch(r),g=l.router.state.matches[s]?.routeId===h?l.router.state.matches[s].id:l.router.state.matches.find(T=>T.routeId===h)?.id,_=ys(l,r);if(S._nonReactive.loaderPromise){if(S.status==="success"&&!l.sync&&!S.preload)return S;await S._nonReactive.loaderPromise;const T=l.router.getMatch(r),O=T._nonReactive.error||T.error;O&&Jn(l,T,O),T.status==="pending"&&await o(_,S,g,T,v)}else{const T=_&&!l.router.state.matches.some(L=>L.id===r),O=l.router.getMatch(r);O._nonReactive.loaderPromise=pl(),T!==O.preload&&l.updateMatch(r,L=>({...L,preload:T})),await o(_,S,g,O,v)}}const d=l.router.getMatch(r);m||(d._nonReactive.loaderPromise?.resolve(),d._nonReactive.loadPromise?.resolve()),clearTimeout(d._nonReactive.pendingTimeout),d._nonReactive.pendingTimeout=void 0,m||(d._nonReactive.loaderPromise=void 0),d._nonReactive.dehydrated=void 0;const b=m?d.isFetching:!1;return b!==d.isFetching||d.invalid!==!1?(l.updateMatch(r,S=>({...S,isFetching:b,invalid:!1})),l.router.getMatch(r)):d};async function ay(l){const i=l,s=[];i.router.state.matches.some(g=>g._forcePending)&&lr(i);let o;for(let g=0;g<i.matches.length;g++){try{const _=uS(i,g);Mi(_)&&await _}catch(_){if(Me(_))throw _;if(me(_))o=_;else if(!i.preload)throw _;break}if(i.serialError)break}const r=i.firstBadMatchIndex??i.matches.length,h=o&&!i.preload?ty(i,o):void 0,y=o&&i.preload?0:h!==void 0?Math.min(h+1,r):r;let m,v;for(let g=0;g<y;g++)s.push(cS(i,s,g));try{await Promise.all(s)}catch{const g=await Promise.allSettled(s);for(const _ of g){if(_.status!=="rejected")continue;const T=_.reason;if(Me(T))throw T;me(T)?m??=T:v??=T}if(v!==void 0)throw v}const d=m??(o&&!i.preload?o:void 0);let b=i.serialError?i.firstBadMatchIndex??0:i.matches.length-1;if(!d&&o&&i.preload)return i.matches;if(d){const g=ty(i,d);Wn(g!==void 0);const _=i.matches[g],T=i.router.looseRoutesById[_.routeId],O=i.router.options?.defaultNotFoundComponent;!T.options.notFoundComponent&&O&&(T.options.notFoundComponent=O),d.routeId=_.routeId;const L=_.routeId===i.router.routeTree.id;i.updateMatch(_.id,j=>({...j,...L?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:d},isFetching:!1})),b=g,await fs(T)}else if(!i.preload){const g=i.matches[0];g.globalNotFound||i.router.getMatch(g.id)?.globalNotFound&&i.updateMatch(g.id,T=>({...T,globalNotFound:!1,error:void 0}))}if(i.serialError&&i.firstBadMatchIndex!==void 0){const g=i.router.looseRoutesById[i.matches[i.firstBadMatchIndex].routeId];await fs(g)}for(let g=0;g<=b;g++){const _=i.matches[g],{id:T,routeId:O}=_,L=i.router.looseRoutesById[O];try{const j=sS(i,T,L);if(j){const q=await j;i.updateMatch(T,G=>({...G,...q}))}}catch(j){console.error(`Error executing head for route ${O}:`,j)}}const S=lr(i);if(Mi(S)&&await S,d)throw d;if(i.serialError&&!i.preload&&!i.onReady)throw i.serialError;return i.matches}async function fs(l){if(!l._lazyLoaded&&l._lazyPromise===void 0&&(l.lazyFn?l._lazyPromise=l.lazyFn().then(i=>{const{id:s,...o}=i.options;Object.assign(l.options,o),l._lazyLoaded=!0,l._lazyPromise=void 0}):l._lazyLoaded=!0),!l._componentsLoaded&&l._componentsPromise===void 0){const i=()=>{const s=[];for(const o of Xy){const r=l.options[o]?.preload;r&&s.push(r())}if(s.length)return Promise.all(s).then(()=>{l._componentsLoaded=!0,l._componentsPromise=void 0});l._componentsLoaded=!0,l._componentsPromise=void 0};l._componentsPromise=l._lazyPromise?l._lazyPromise.then(i):i()}return l._componentsPromise}function Gy(l){for(const i of Xy)if(l.options[i]?.preload)return!0;return!1}const Xy=["component","errorComponent","pendingComponent","notFoundComponent"];function oS(l){return{input:({url:i})=>{for(const s of l)i=ir(s,i);return i},output:({url:i})=>{for(let s=l.length-1;s>=0;s--)i=Vy(l[s],i);return i}}}function rS(l){const i=Hy(l.basepath),s=`/${i}`,o=`${s}/`,r=l.caseSensitive?s:s.toLowerCase(),h=l.caseSensitive?o:o.toLowerCase();return{input:({url:y})=>{const m=l.caseSensitive?y.pathname:y.pathname.toLowerCase();return m===r?y.pathname="/":m.startsWith(h)&&(y.pathname=y.pathname.slice(s.length)),y},output:({url:y})=>(y.pathname=Iu(["/",i,y.pathname]),y)}}function ir(l,i){const s=l?.input?.({url:i});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return i}function Vy(l,i){const s=l?.output?.({url:i});if(s){if(typeof s=="string")return new URL(s);if(s instanceof URL)return s}return i}function Ta(l){const i=l.resolvedLocation,s=l.location,o=i?.pathname!==s.pathname,r=i?.href!==s.href,h=i?.hash!==s.hash;return{fromLocation:i,toLocation:s,pathChanged:o,hrefChanged:r,hashChanged:h}}function fS(l){const i=l.filter(s=>s.status!=="redirected");return i.length===l.length?l:i}class hS{constructor(i){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=s=>s(),this.update=s=>{const o=this.options,r=this.basepath??o?.basepath??"/",h=this.basepath===void 0,y=o?.rewrite;if(this.options={...o,...s},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=G0(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=_0()),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 g;this.resolvePathCache=cs(1e3),g=this.buildRouteTree(),this.setRoutes(g)}!this.__store&&this.latestLocation&&(this.__store=g0(mS(this.latestLocation)),k0(this));let m=!1;const v=this.options.basepath??"/",d=this.options.rewrite;if(h||r!==v||y!==d){this.basepath=v;const g=[],_=Hy(v);_&&_!=="/"&&g.push(rS({basepath:v})),d&&g.push(d),this.rewrite=g.length===0?void 0:g.length===1?g[0]:oS(g),this.history&&this.updateLatestLocation(),m=!0}m&&this.__store&&this.__store.setState(g=>({...g,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 s=B0(this.routeTree,this.options.caseSensitive,(o,r)=>{o.init({originalIndex:r})});return this.options.routeMasks&&D0(this.options.routeMasks,s.processedTree),s},this.subscribe=(s,o)=>{const r={eventType:s,fn:o};return this.subscribers.add(r),()=>{this.subscribers.delete(r)}},this.emit=s=>{this.subscribers.forEach(o=>{o.eventType===s.type&&o.fn(s)})},this.parseLocation=(s,o)=>{const r=({pathname:v,search:d,hash:b,href:S,state:g})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(v)){const q=this.options.parseSearch(d),G=this.options.stringifySearch(q);return{href:v+G+b,publicHref:S,pathname:pi(v).path,external:!1,searchStr:G,search:Te(o?.search,q),hash:pi(b.slice(1)).path,state:Te(o?.state,g)}}const _=new URL(S,this.origin),T=ir(this.rewrite,_),O=this.options.parseSearch(T.search),L=this.options.stringifySearch(O);return T.search=L,{href:T.href.replace(T.origin,""),publicHref:S,pathname:pi(T.pathname).path,external:!!this.rewrite&&T.origin!==this.origin,searchStr:L,search:Te(o?.search,O),hash:pi(T.hash.slice(1)).path,state:Te(o?.state,g)}},h=r(s),{__tempLocation:y,__tempKey:m}=h.state;if(y&&(!m||m===this.tempLocationKey)){const v=r(y);return v.state.key=h.state.key,v.state.__TSR_key=h.state.__TSR_key,delete v.state.__tempLocation,{...v,maskedLocation:h}}return h},this.resolvePathWithBase=(s,o)=>Y0({base:s,to:pr(o),trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(s,o,r)=>typeof s=="string"?this.matchRoutesInternal({pathname:s,search:o},r):this.matchRoutesInternal(s,o),this.getMatchedRoutes=s=>yS({pathname:s,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=s=>{const o=this.getMatch(s);o&&(o.abortController.abort(),clearTimeout(o._nonReactive.pendingTimeout),o._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{const s=this.state.matches.filter(h=>h.status==="pending"),o=this.state.matches.filter(h=>h.isFetching==="loader");new Set([...this.state.pendingMatches??[],...s,...o]).forEach(h=>{this.cancelMatch(h.id)})},this.buildLocation=s=>{const o=(h={})=>{const y=h._fromLocation||this.pendingBuiltLocation||this.latestLocation,m=this.matchRoutesLightweight(y);h.from;const v=h.unsafeRelative==="path"?y.pathname:h.from??m.fullPath,d=this.resolvePathWithBase(v,"."),b=m.search,S={...m.params},g=h.to?this.resolvePathWithBase(d,`${h.to}`):this.resolvePathWithBase(d,"."),_=h.params===!1||h.params===null?{}:(h.params??!0)===!0?S:Object.assign(S,Zn(h.params,S)),T=this.getMatchedRoutes(g);let O=T.matchedRoutes;if((!T.foundRoute||T.foundRoute.path!=="/"&&T.routeParams["**"])&&this.options.notFoundRoute&&(O=[...O,this.options.notFoundRoute]),Object.keys(_).length>0)for(const tt of O){const W=tt.options.params?.stringify??tt.options.stringifyParams;if(W)try{Object.assign(_,W(_))}catch{}}const j=s.leaveParams?g:pi($m({path:g,params:_,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let q=b;if(s._includeValidateSearch&&this.options.search?.strict){const tt={};O.forEach(W=>{if(W.options.validateSearch)try{Object.assign(tt,ts(W.options.validateSearch,{...tt,...q}))}catch{}}),q=tt}q=pS({search:q,dest:h,destRoutes:O,_includeValidateSearch:s._includeValidateSearch}),q=Te(b,q);const G=this.options.stringifySearch(q),X=h.hash===!0?y.hash:h.hash?Zn(h.hash,y.hash):void 0,I=X?`#${X}`:"";let k=h.state===!0?y.state:h.state?Zn(h.state,y.state):{};k=Te(y.state,k);const Y=`${j}${G}${I}`;let Q,Z,ut=!1;if(this.rewrite){const tt=new URL(Y,this.origin),W=Vy(this.rewrite,tt);Q=tt.href.replace(tt.origin,""),W.origin!==this.origin?(Z=W.href,ut=!0):Z=W.pathname+W.search+W.hash}else Q=A0(Y),Z=Q;return{publicHref:Z,href:Q,pathname:j,search:q,searchStr:G,state:k,hash:X??"",external:ut,unmaskOnReload:h.unmaskOnReload}},r=(h={},y)=>{const m=o(h);let v=y?o(y):void 0;if(!v){const d={};if(this.options.routeMasks){const b=U0(m.pathname,this.processedTree);if(b){Object.assign(d,b.rawParams);const{from:S,params:g,..._}=b.route,T=g===!1||g===null?{}:(g??!0)===!0?d:Object.assign(d,Zn(g,d));y={from:s.from,..._,params:T},v=o(y)}}}return v&&(m.maskedLocation=v),m};return s.mask?r(s,{from:s.from,...s.mask}):r(s)},this.commitLocation=async({viewTransition:s,ignoreBlocker:o,...r})=>{const h=()=>{const v=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];v.forEach(b=>{r.state[b]=this.latestLocation.state[b]});const d=Ra(r.state,this.latestLocation.state);return v.forEach(b=>{delete r.state[b]}),d},y=Fn(this.latestLocation.href)===Fn(r.href),m=this.commitLocationPromise;if(this.commitLocationPromise=pl(()=>{m?.resolve()}),y&&h())this.load();else{let{maskedLocation:v,hashScrollIntoView:d,...b}=r;v&&(b={...v,state:{...v.state,__tempKey:void 0,__tempLocation:{...b,search:b.searchStr,state:{...b.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(b.unmaskOnReload??this.options.unmaskOnReload??!1)&&(b.state.__tempKey=this.tempLocationKey)),b.state.__hashScrollIntoViewOptions=d??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=s,this.history[r.replace?"replace":"push"](b.publicHref,b.state,{ignoreBlocker:o})}return this.resetNextScroll=r.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:s,resetScroll:o,hashScrollIntoView:r,viewTransition:h,ignoreBlocker:y,href:m,...v}={})=>{if(m){const S=this.history.location.state.__TSR_index,g=is(m,{__TSR_index:s?S:S+1}),_=new URL(g.pathname,this.origin),T=ir(this.rewrite,_);v.to=T.pathname,v.search=this.options.parseSearch(g.search),v.hash=g.hash.slice(1)}const d=this.buildLocation({...v,_includeValidateSearch:!0});this.pendingBuiltLocation=d;const b=this.commitLocation({...d,viewTransition:h,replace:s,resetScroll:o,hashScrollIntoView:r,ignoreBlocker:y});return Promise.resolve().then(()=>{this.pendingBuiltLocation===d&&(this.pendingBuiltLocation=void 0)}),b},this.navigate=async({to:s,reloadDocument:o,href:r,publicHref:h,...y})=>{let m=!1;if(r)try{new URL(`${r}`),m=!0}catch{}if(m&&!o&&(o=!0),o){if(s!==void 0||!r){const d=this.buildLocation({to:s,...y});r=r??d.publicHref,h=h??d.publicHref}const v=!m&&h?h:r;if(ss(v,this.protocolAllowlist))return Promise.resolve();if(!y.ignoreBlocker){const b=this.history.getBlockers?.()??[];for(const S of b)if(S?.blockerFn&&await S.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return y.replace?window.location.replace(v):window.location.href=v,Promise.resolve()}return this.buildAndCommitLocation({...y,href:r,to:s,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const s=this.matchRoutes(this.latestLocation);this.__store.setState(o=>({...o,status:"pending",statusCode:200,isLoading:!0,location:this.latestLocation,pendingMatches:s,cachedMatches:o.cachedMatches.filter(r=>!s.some(h=>h.id===r.id))}))},this.load=async s=>{let o,r,h;const y=this.state.resolvedLocation??this.state.location;for(h=new Promise(v=>{this.startTransition(async()=>{try{this.beforeLoad();const d=this.latestLocation,b=this.state.resolvedLocation;this.state.redirect||this.emit({type:"onBeforeNavigate",...Ta({resolvedLocation:b,location:d})}),this.emit({type:"onBeforeLoad",...Ta({resolvedLocation:b,location:d})}),await ay({router:this,sync:s?.sync,forceStaleReload:y.href===d.href,matches:this.state.pendingMatches,location:d,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let S=[],g=[],_=[],T=[];_i(()=>{this.__store.setState(O=>{const L=O.matches,j=O.pendingMatches||O.matches;return S=L.filter(q=>!j.some(G=>G.id===q.id)),g=L.filter(q=>!j.some(G=>G.routeId===q.routeId)),_=j.filter(q=>!L.some(G=>G.routeId===q.routeId)),T=j.filter(q=>L.some(G=>G.routeId===q.routeId)),{...O,isLoading:!1,loadedAt:Date.now(),matches:j,pendingMatches:void 0,cachedMatches:[...O.cachedMatches,...S.filter(q=>q.status!=="error"&&q.status!=="notFound"&&q.status!=="redirected")]}}),this.clearExpiredCache()}),[[g,"onLeave"],[_,"onEnter"],[T,"onStay"]].forEach(([O,L])=>{O.forEach(j=>{this.looseRoutesById[j.routeId].options[L]?.(j)})})})})}})}catch(d){Me(d)?(o=d,this.navigate({...o.options,replace:!0,ignoreBlocker:!0})):me(d)&&(r=d),this.__store.setState(b=>({...b,statusCode:o?o.status:r?404:b.matches.some(S=>S.status==="error")?500:200,redirect:o}))}this.latestLoadPromise===h&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),v()})}),this.latestLoadPromise=h,await h;this.latestLoadPromise&&h!==this.latestLoadPromise;)await this.latestLoadPromise;let m;this.hasNotFoundMatch()?m=404:this.__store.state.matches.some(v=>v.status==="error")&&(m=500),m!==void 0&&this.__store.setState(v=>({...v,statusCode:m}))},this.startViewTransition=s=>{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,m=typeof o.types=="function"?o.types(Ta({resolvedLocation:y,location:h})):o.types;if(m===!1){s();return}r={update:s,types:m}}else r=s;document.startViewTransition(r)}else s()},this.updateMatch=(s,o)=>{this.startTransition(()=>{const r=this.state.pendingMatches?.some(h=>h.id===s)?"pendingMatches":this.state.matches.some(h=>h.id===s)?"matches":this.state.cachedMatches.some(h=>h.id===s)?"cachedMatches":"";r&&(r==="cachedMatches"?this.__store.setState(h=>({...h,cachedMatches:fS(h.cachedMatches.map(y=>y.id===s?o(y):y))})):this.__store.setState(h=>({...h,[r]:h[r]?.map(y=>y.id===s?o(y):y)})))})},this.getMatch=s=>{const o=r=>r.id===s;return this.state.cachedMatches.find(o)??this.state.pendingMatches?.find(o)??this.state.matches.find(o)},this.invalidate=s=>{const o=r=>s?.filter?.(r)??!0?{...r,invalid:!0,...s?.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:s?.sync})},this.getParsedLocationHref=s=>s.publicHref||"/",this.resolveRedirect=s=>{const o=s.headers.get("Location");if(!s.options.href||s.options._builtLocation){const r=s.options._builtLocation??this.buildLocation(s.options),h=this.getParsedLocationHref(r);s.options.href=h,s.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;s.options.href=h,s.headers.set("Location",h)}}catch{}if(s.options.href&&!s.options._builtLocation&&ss(s.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return s.headers.get("Location")||s.headers.set("Location",s.options.href),s},this.clearCache=s=>{const o=s?.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 s=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:s})},this.loadRouteChunk=fs,this.preloadRoute=async s=>{const o=s._builtLocation??this.buildLocation(s);let r=this.matchRoutes(o,{throwOnError:!0,preload:!0,dest:s});const h=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(m=>m.id)),y=new Set([...h,...this.state.cachedMatches.map(m=>m.id)]);_i(()=>{r.forEach(m=>{y.has(m.id)||this.__store.setState(v=>({...v,cachedMatches:[...v.cachedMatches,m]}))})});try{return r=await ay({router:this,matches:r,location:o,preload:!0,updateMatch:(m,v)=>{h.has(m)?r=r.map(d=>d.id===m?v(d):d):this.updateMatch(m,v)}}),r}catch(m){if(Me(m))return m.options.reloadDocument?void 0:await this.preloadRoute({...m.options,_fromLocation:o});me(m)||console.error(m);return}},this.matchRoute=(s,o)=>{const r={...s,to:s.to?this.resolvePathWithBase(s.from||"",s.to):void 0,params:s.params||{},leaveParams:!0},h=this.buildLocation(r);if(o?.pending&&this.state.status!=="pending")return!1;const m=(o?.pending===void 0?!this.state.isLoading:o.pending)?this.latestLocation:this.state.resolvedLocation||this.state.location,v=L0(h.pathname,o?.caseSensitive??!1,o?.fuzzy??!1,m.pathname,this.processedTree);return!v||s.params&&!Ra(v.rawParams,s.params,{partial:!0})?!1:o?.includeSearch??!0?Ra(m.search,h.search,{partial:!0})?v.rawParams:!1:v.rawParams},this.hasNotFoundMatch=()=>this.__store.state.matches.some(s=>s.status==="notFound"||s.globalNotFound),this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...i,caseSensitive:i.caseSensitive??!1,notFoundMode:i.notFoundMode??"fuzzy",stringifySearch:i.stringifySearch??tS,parseSearch:i.parseSearch??I0,protocolAllowlist:i.protocolAllowlist??C0}),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:i,routesByPath:s,processedTree:o}){this.routesById=i,this.routesByPath=s,this.processedTree=o;const r=this.options.notFoundRoute;r&&(r.init({originalIndex:99999999999}),this.routesById[r.id]=r)}get looseRoutesById(){return this.routesById}getParentContext(i){return i?.id?i.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(i,s){const o=this.getMatchedRoutes(i.pathname),{foundRoute:r,routeParams:h,parsedParams:y}=o;let{matchedRoutes:m}=o,v=!1;(r?r.path!=="/"&&h["**"]:Fn(i.pathname))&&(this.options.notFoundRoute?m=[...m,this.options.notFoundRoute]:v=!0);const d=v?gS(this.options.notFoundMode,m):void 0,b=new Array(m.length),S=new Map(this.state.matches.map(g=>[g.routeId,g]));for(let g=0;g<m.length;g++){const _=m[g],T=b[g-1];let O,L,j;{const bt=T?.search??i.search,Yt=T?._strictSearch??void 0;try{const U=ts(_.options.validateSearch,{...bt})??void 0;O={...bt,...U},L={...Yt,...U},j=void 0}catch(U){let V=U;if(U instanceof hs||(V=new hs(U.message,{cause:U})),s?.throwOnError)throw V;O=bt,L={},j=V}}const q=_.options.loaderDeps?.({search:O})??"",G=q?JSON.stringify(q):"",{interpolatedPath:X,usedParams:I}=$m({path:_.fullPath,params:h,decoder:this.pathParamsDecoder,server:this.isServer}),k=_.id+X+G,Y=this.getMatch(k),Q=S.get(_.id),Z=Y?._strictParams??I;let ut;if(!Y)try{ly(_,I,y,Z)}catch(bt){if(me(bt)||Me(bt)?ut=bt:ut=new dS(bt.message,{cause:bt}),s?.throwOnError)throw ut}Object.assign(h,Z);const tt=Q?"stay":"enter";let W;if(Y)W={...Y,cause:tt,params:Q?.params??h,_strictParams:Z,search:Te(Q?Q.search:Y.search,O),_strictSearch:L};else{const bt=_.options.loader||_.options.beforeLoad||_.lazyFn||Gy(_)?"pending":"success";W={id:k,ssr:_.options.ssr,index:g,routeId:_.id,params:Q?.params??h,_strictParams:Z,pathname:X,updatedAt:Date.now(),search:Q?Te(Q.search,O):O,_strictSearch:L,searchError:void 0,status:bt,isFetching:!1,error:void 0,paramsError:ut,__routeContext:void 0,_nonReactive:{loadPromise:pl()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:tt,loaderDeps:Q?Te(Q.loaderDeps,q):q,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:_.options.staticData||{},fullPath:_.fullPath}}s?.preload||(W.globalNotFound=d===_.id),W.searchError=j;const Rt=this.getParentContext(T);W.context={...Rt,...W.__routeContext,...W.__beforeLoadContext},b[g]=W}for(let g=0;g<b.length;g++){const _=b[g],T=this.looseRoutesById[_.routeId],O=this.getMatch(_.id),L=S.get(_.routeId);if(_.params=L?Te(L.params,h):h,!O){const j=b[g-1],q=this.getParentContext(j);if(T.options.context){const G={deps:_.loaderDeps,params:_.params,context:q??{},location:i,navigate:X=>this.navigate({...X,_fromLocation:i}),buildLocation:this.buildLocation,cause:_.cause,abortController:_.abortController,preload:!!_.preload,matches:b,routeId:T.id};_.__routeContext=T.options.context(G)??void 0}_.context={...q,..._.__routeContext,..._.__beforeLoadContext}}}return b}matchRoutesLightweight(i){const{matchedRoutes:s,routeParams:o,parsedParams:r}=this.getMatchedRoutes(i.pathname),h=Ti(s),y={...i.search};for(const b of s)try{Object.assign(y,ts(b.options.validateSearch,y))}catch{}const m=Ti(this.state.matches),v=m&&m.routeId===h.id&&i.pathname===this.state.location.pathname;let d;if(v)d=m.params;else{const b={...o};for(const S of s)try{ly(S,o,r??{},b)}catch{}d=b}return{matchedRoutes:s,fullPath:h.fullPath,search:y,params:d}}}class hs extends Error{}class dS extends Error{}function mS(l){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:l,matches:[],pendingMatches:[],cachedMatches:[],statusCode:200}}function ts(l,i){if(l==null)return{};if("~standard"in l){const s=l["~standard"].validate(i);if(s instanceof Promise)throw new hs("Async validation not supported");if(s.issues)throw new hs(JSON.stringify(s.issues,void 0,2),{cause:s});return s.value}return"parse"in l?l.parse(i):typeof l=="function"?l(i):{}}function yS({pathname:l,routesById:i,processedTree:s}){const o={},r=Fn(l);let h,y;const m=w0(r,s,!0);return m&&(h=m.route,Object.assign(o,m.rawParams),y=Object.assign({},m.parsedParams)),{matchedRoutes:m?.branch||[i[je]],routeParams:o,foundRoute:h,parsedParams:y}}function pS({search:l,dest:i,destRoutes:s,_includeValidateSearch:o}){return vS(s)(l,i,o??!1)}function vS(l){const i={dest:null,_includeValidateSearch:!1,middlewares:[]};for(const r of l){if("search"in r.options)r.options.search?.middlewares&&i.middlewares.push(...r.options.search.middlewares);else if(r.options.preSearchFilters||r.options.postSearchFilters){const h=({search:y,next:m})=>{let v=y;"preSearchFilters"in r.options&&r.options.preSearchFilters&&(v=r.options.preSearchFilters.reduce((b,S)=>S(b),y));const d=m(v);return"postSearchFilters"in r.options&&r.options.postSearchFilters?r.options.postSearchFilters.reduce((b,S)=>S(b),d):d};i.middlewares.push(h)}if(r.options.validateSearch){const h=({search:y,next:m})=>{const v=m(y);if(!i._includeValidateSearch)return v;try{return{...v,...ts(r.options.validateSearch,v)??void 0}}catch{return v}};i.middlewares.push(h)}}const s=({search:r})=>{const h=i.dest;return h.search?h.search===!0?r:Zn(h.search,r):{}};i.middlewares.push(s);const o=(r,h,y)=>{if(r>=y.length)return h;const m=y[r];return m({search:h,next:d=>o(r+1,d,y)})};return function(h,y,m){return i.dest=y,i._includeValidateSearch=m,o(0,h,i.middlewares)}}function gS(l,i){if(l!=="root")for(let s=i.length-1;s>=0;s--){const o=i[s];if(o.children)return o.id}return je}function ly(l,i,s,o){const r=l.options.params?.parse??l.options.parseParams;if(r)if(l.options.skipRouteOnParseError)for(const h in i)h in s&&(o[h]=s[h]);else{const h=r(o);Object.assign(o,h)}}const SS="Error preloading route! ☝️";class Ky{constructor(i){if(this.init=s=>{this.originalIndex=s.originalIndex;const o=this.options,r=!o?.path&&!o?.id;this.parentRoute=this.options.getParentRoute?.(),r?this._path=je:this.parentRoute||Wn(!1);let h=r?je:o?.path;h&&h!=="/"&&(h=jy(h));const y=o?.id||h;let m=r?je:Iu([this.parentRoute.id===je?"":this.parentRoute.id,y]);h===je&&(h="/"),m!==je&&(m=Iu(["/",m]));const v=m===je?"/":Iu([this.parentRoute.fullPath,h]);this._path=h,this._id=m,this._fullPath=v,this._to=Fn(v)},this.addChildren=s=>this._addFileChildren(s),this._addFileChildren=s=>(Array.isArray(s)&&(this.children=s),typeof s=="object"&&s!==null&&(this.children=Object.values(s)),this),this._addFileTypes=()=>this,this.updateLoader=s=>(Object.assign(this.options,s),this),this.update=s=>(Object.assign(this.options,s),this),this.lazy=s=>(this.lazyFn=s,this),this.redirect=s=>aS({from:this.fullPath,...s}),this.options=i||{},this.isRoot=!i?.getParentRoute,i?.id&&i?.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 bS extends Ky{constructor(i){super(i)}}const Wu=typeof window<"u"?F.useLayoutEffect:F.useEffect;function Go(l){const i=F.useRef({value:l,prev:null}),s=i.current.value;return l!==s&&(i.current={value:l,prev:s}),i.current.prev}function _S(l,i,s={},o={}){F.useEffect(()=>{if(!l.current||o.disabled||typeof IntersectionObserver!="function")return;const r=new IntersectionObserver(([h])=>{i(h)},s);return r.observe(l.current),()=>{r.disconnect()}},[i,s,o.disabled,l])}function RS(l){const i=F.useRef(null);return F.useImperativeHandle(l,()=>i.current,[]),i}function vr(l){const i=l.errorComponent??gr;return at.jsx(ES,{getResetKey:l.getResetKey,onCatch:l.onCatch,children:({error:s,reset:o})=>s?F.createElement(i,{error:s,reset:o}):l.children})}class ES extends F.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(i){return{resetKey:i.getResetKey()}}static getDerivedStateFromError(i){return{error:i}}reset(){this.setState({error:null})}componentDidUpdate(i,s){s.error&&s.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(i,s){this.props.onCatch&&this.props.onCatch(i,s)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function gr({error:l}){const[i,s]=F.useState(!1);return at.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[at.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[at.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),at.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>s(o=>!o),children:i?"Hide Error":"Show Error"})]}),at.jsx("div",{style:{height:".25rem"}}),i?at.jsx("div",{children:at.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:l.message?at.jsx("code",{children:l.message}):null})}):null]})}function TS({children:l,fallback:i=null}){return Zy()?at.jsx(Ri.Fragment,{children:l}):at.jsx(Ri.Fragment,{children:i})}function Zy(){return Ri.useSyncExternalStore(MS,()=>!0,()=>!1)}function MS(){return()=>{}}var Xo={exports:{}},Vo={},Ko={exports:{}},Zo={};var iy;function OS(){if(iy)return Zo;iy=1;var l=Ci();function i(S,g){return S===g&&(S!==0||1/S===1/g)||S!==S&&g!==g}var s=typeof Object.is=="function"?Object.is:i,o=l.useState,r=l.useEffect,h=l.useLayoutEffect,y=l.useDebugValue;function m(S,g){var _=g(),T=o({inst:{value:_,getSnapshot:g}}),O=T[0].inst,L=T[1];return h(function(){O.value=_,O.getSnapshot=g,v(O)&&L({inst:O})},[S,_,g]),r(function(){return v(O)&&L({inst:O}),S(function(){v(O)&&L({inst:O})})},[S]),y(_),_}function v(S){var g=S.getSnapshot;S=S.value;try{var _=g();return!s(S,_)}catch{return!0}}function d(S,g){return g()}var b=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:m;return Zo.useSyncExternalStore=l.useSyncExternalStore!==void 0?l.useSyncExternalStore:b,Zo}var uy;function CS(){return uy||(uy=1,Ko.exports=OS()),Ko.exports}var sy;function AS(){if(sy)return Vo;sy=1;var l=Ci(),i=CS();function s(d,b){return d===b&&(d!==0||1/d===1/b)||d!==d&&b!==b}var o=typeof Object.is=="function"?Object.is:s,r=i.useSyncExternalStore,h=l.useRef,y=l.useEffect,m=l.useMemo,v=l.useDebugValue;return Vo.useSyncExternalStoreWithSelector=function(d,b,S,g,_){var T=h(null);if(T.current===null){var O={hasValue:!1,value:null};T.current=O}else O=T.current;T=m(function(){function j(k){if(!q){if(q=!0,G=k,k=g(k),_!==void 0&&O.hasValue){var Y=O.value;if(_(Y,k))return X=Y}return X=k}if(Y=X,o(G,k))return Y;var Q=g(k);return _!==void 0&&_(Y,Q)?(G=k,Y):(G=k,X=Q)}var q=!1,G,X,I=S===void 0?null:S;return[function(){return j(b())},I===null?void 0:function(){return j(I())}]},[b,S,g,_]);var L=r(d,T[0],T[1]);return y(function(){O.hasValue=!0,O.value=L},[L]),v(L),L},Vo}var cy;function xS(){return cy||(cy=1,Xo.exports=AS()),Xo.exports}var zS=xS();function DS(l,i){return l===i}function US(l,i,s=DS){const o=F.useCallback(y=>{if(!l)return()=>{};const{unsubscribe:m}=l.subscribe(y);return m},[l]),r=F.useCallback(()=>l?.get(),[l]);return zS.useSyncExternalStoreWithSelector(o,r,r,i,s)}const Jy=F.createContext(null);function qe(l){const i=F.useContext(Jy);return l?.warn,i}function He(l){const i=qe({warn:l?.router===void 0}),s=l?.router||i,o=F.useRef(void 0);return US(s.__store,r=>{if(l?.select){if(l.structuralSharing??s.options.defaultStructuralSharing){const h=Te(o.current,l.select(r));return o.current=h,h}return l.select(r)}return r})}const ps=F.createContext(void 0),LS=F.createContext(void 0);function $n(l){const i=F.useContext(l.from?LS:ps);return He({select:o=>{const r=o.matches.find(h=>l.from?l.from===h.routeId:h.id===i);if(Wn(!((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 Sr(l){return $n({from:l.from,strict:l.strict,structuralSharing:l.structuralSharing,select:i=>l.select?l.select(i.loaderData):i.loaderData})}function br(l){const{select:i,...s}=l;return $n({...s,select:o=>i?i(o.loaderDeps):o.loaderDeps})}function _r(l){return $n({from:l.from,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,strict:l.strict,select:i=>{const s=l.strict===!1?i.params:i._strictParams;return l.select?l.select(s):s}})}function Rr(l){return $n({from:l.from,strict:l.strict,shouldThrow:l.shouldThrow,structuralSharing:l.structuralSharing,select:i=>l.select?l.select(i.search):i.search})}function Er(l){const i=qe();return F.useCallback(s=>i.navigate({...s,from:s.from??l?.from}),[l?.from,i])}function Tr(l){return $n({...l,select:i=>l.select?l.select(i.context):i.context})}var wS=yy();function NS(l,i){const s=qe(),o=RS(i),{activeProps:r,inactiveProps:h,activeOptions:y,to:m,preload:v,preloadDelay:d,hashScrollIntoView:b,replace:S,startTransition:g,resetScroll:_,viewTransition:T,children:O,target:L,disabled:j,style:q,className:G,onClick:X,onBlur:I,onFocus:k,onMouseEnter:Y,onMouseLeave:Q,onTouchStart:Z,ignoreBlocker:ut,params:tt,search:W,hash:Rt,state:bt,mask:Yt,reloadDocument:U,unsafeRelative:V,from:it,_fromLocation:Et,..._t}=l,M=Zy(),H=He({select:xt=>{const Gt=xt.matches[xt.matches.length-1];return{search:Gt?.search,hash:xt.location.hash,path:Gt?.pathname}},structuralSharing:!0}),K=l.from,J=F.useMemo(()=>({...l,from:K}),[s,H,K,l._fromLocation,l.hash,l.to,l.search,l.params,l.state,l.mask,l.unsafeRelative]),et=F.useMemo(()=>s.buildLocation({...J}),[s,J]),rt=et.maskedLocation?et.maskedLocation.publicHref:et.publicHref,pt=et.maskedLocation?et.maskedLocation.external:et.external,Ht=F.useMemo(()=>YS(rt,pt,s.history,j),[j,pt,rt,s.history]),Dt=F.useMemo(()=>{if(Ht?.external)return ss(Ht.href,s.protocolAllowlist)?void 0:Ht.href;if(!GS(m)&&!(typeof m!="string"||m.indexOf(":")===-1))try{return new URL(m),ss(m,s.protocolAllowlist)?void 0:m}catch{}},[m,Ht,s.protocolAllowlist]),Fe=He({select:xt=>{if(Dt)return!1;if(y?.exact){if(!Q0(xt.location.pathname,et.pathname,s.basepath))return!1}else{const Gt=os(xt.location.pathname,s.basepath),ne=os(et.pathname,s.basepath);if(!(Gt.startsWith(ne)&&(Gt.length===ne.length||Gt[ne.length]==="/")))return!1}return(y?.includeSearch??!0)&&!Ra(xt.location.search,et.search,{partial:!y?.exact,ignoreUndefined:!y?.explicitUndefined})?!1:y?.includeHash?M&&xt.location.hash===et.hash:!0}}),We=Fe?Zn(r,{})??BS:Jo,Sn=Fe?Jo:Zn(h,{})??Jo,Sl=[G,We.className,Sn.className].filter(Boolean).join(" "),Ve=(q||We.style||Sn.style)&&{...q,...We.style,...Sn.style},[bl,xa]=F.useState(!1),Ai=F.useRef(!1),$e=l.reloadDocument||Dt?!1:v??s.options.defaultPreload,In=d??s.options.defaultPreloadDelay??0,Qe=F.useCallback(()=>{s.preloadRoute({...J,_builtLocation:et}).catch(xt=>{console.warn(xt),console.warn(SS)})},[s,J,et]),_l=F.useCallback(xt=>{xt?.isIntersecting&&Qe()},[Qe]);_S(o,_l,QS,{disabled:!!j||$e!=="viewport"}),F.useEffect(()=>{Ai.current||!j&&$e==="render"&&(Qe(),Ai.current=!0)},[j,Qe,$e]);const vs=xt=>{const Gt=xt.currentTarget.getAttribute("target"),ne=L!==void 0?L:Gt;if(!j&&!XS(xt)&&!xt.defaultPrevented&&(!ne||ne==="_self")&&xt.button===0){xt.preventDefault(),wS.flushSync(()=>{xa(!0)});const Di=s.subscribe("onResolved",()=>{Di(),xa(!1)});s.navigate({...J,replace:S,resetScroll:_,hashScrollIntoView:b,startTransition:g,viewTransition:T,ignoreBlocker:ut})}};if(Dt)return{..._t,ref:o,href:Dt,...O&&{children:O},...L&&{target:L},...j&&{disabled:j},...q&&{style:q},...G&&{className:G},...X&&{onClick:X},...I&&{onBlur:I},...k&&{onFocus:k},...Y&&{onMouseEnter:Y},...Q&&{onMouseLeave:Q},...Z&&{onTouchStart:Z}};const xi=xt=>{if(j||$e!=="intent")return;if(!In){Qe();return}const Gt=xt.currentTarget;if(Si.has(Gt))return;const ne=setTimeout(()=>{Si.delete(Gt),Qe()},In);Si.set(Gt,ne)},le=xt=>{j||$e!=="intent"||Qe()},zi=xt=>{if(j||!$e||!In)return;const Gt=xt.currentTarget,ne=Si.get(Gt);ne&&(clearTimeout(ne),Si.delete(Gt))};return{..._t,...We,...Sn,href:Ht?.href,ref:o,onClick:ml([X,vs]),onBlur:ml([I,zi]),onFocus:ml([k,xi]),onMouseEnter:ml([Y,xi]),onMouseLeave:ml([Q,zi]),onTouchStart:ml([Z,le]),disabled:!!j,target:L,...Ve&&{style:Ve},...Sl&&{className:Sl},...j&&jS,...Fe&&HS,...M&&bl&&qS}}const Jo={},BS={className:"active"},jS={role:"link","aria-disabled":!0},HS={"data-status":"active","aria-current":"page"},qS={"data-transitioning":"transitioning"},Si=new WeakMap,QS={rootMargin:"100px"},ml=l=>i=>{for(const s of l)if(s){if(i.defaultPrevented)return;s(i)}};function YS(l,i,s,o){if(!o)return i?{href:l,external:!0}:{href:s.createHref(l)||"/",external:!1}}function GS(l){if(typeof l!="string")return!1;const i=l.charCodeAt(0);return i===47?l.charCodeAt(1)!==47:i===46}const Py=F.forwardRef((l,i)=>{const{_asChild:s,...o}=l,{type:r,...h}=NS(o,i),y=typeof o.children=="function"?o.children({isActive:h["data-status"]==="active"}):o.children;if(!s){const{disabled:m,...v}=h;return F.createElement("a",v,y)}return F.createElement(s,h,y)});function XS(l){return!!(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey)}class VS extends Ky{constructor(i){super(i),this.useMatch=s=>$n({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>Tr({...s,from:this.id}),this.useSearch=s=>Rr({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>_r({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>br({...s,from:this.id}),this.useLoaderData=s=>Sr({...s,from:this.id}),this.useNavigate=()=>Er({from:this.fullPath}),this.Link=Ri.forwardRef((s,o)=>at.jsx(Py,{ref:o,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}}function KS(l){return new VS(l)}class ZS extends bS{constructor(i){super(i),this.useMatch=s=>$n({select:s?.select,from:this.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>Tr({...s,from:this.id}),this.useSearch=s=>Rr({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useParams=s=>_r({select:s?.select,structuralSharing:s?.structuralSharing,from:this.id}),this.useLoaderDeps=s=>br({...s,from:this.id}),this.useLoaderData=s=>Sr({...s,from:this.id}),this.useNavigate=()=>Er({from:this.fullPath}),this.Link=Ri.forwardRef((s,o)=>at.jsx(Py,{ref:o,from:this.fullPath,...s})),this.$$typeof=Symbol.for("react.memo")}}function pb(l){return new ZS(l)}function oy(l){return typeof l=="object"?new ry(l,{silent:!0}).createRoute(l):new ry(l,{silent:!0}).createRoute}class ry{constructor(i,s){this.path=i,this.createRoute=o=>{const r=KS(o);return r.isRoot=!1,r},this.silent=s?.silent}}class fy{constructor(i){this.useMatch=s=>$n({select:s?.select,from:this.options.id,structuralSharing:s?.structuralSharing}),this.useRouteContext=s=>Tr({...s,from:this.options.id}),this.useSearch=s=>Rr({select:s?.select,structuralSharing:s?.structuralSharing,from:this.options.id}),this.useParams=s=>_r({select:s?.select,structuralSharing:s?.structuralSharing,from:this.options.id}),this.useLoaderDeps=s=>br({...s,from:this.options.id}),this.useLoaderData=s=>Sr({...s,from:this.options.id}),this.useNavigate=()=>{const s=qe();return Er({from:s.routesById[this.options.id].fullPath})},this.options=i,this.$$typeof=Symbol.for("react.memo")}}function hy(l){return typeof l=="object"?new fy(l):i=>new fy({id:l,...i})}function JS(){const l=qe(),i=F.useRef({router:l,mounted:!1}),[s,o]=F.useState(!1),{hasPendingMatches:r,isLoading:h}=He({select:S=>({isLoading:S.isLoading,hasPendingMatches:S.matches.some(g=>g.status==="pending")}),structuralSharing:!0}),y=Go(h),m=h||s||r,v=Go(m),d=h||r,b=Go(d);return l.startTransition=S=>{o(!0),F.startTransition(()=>{S(),o(!1)})},F.useEffect(()=>{const S=l.history.subscribe(l.load),g=l.buildLocation({to:l.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Fn(l.latestLocation.publicHref)!==Fn(g.publicHref)&&l.commitLocation({...g,replace:!0}),()=>{S()}},[l,l.history]),Wu(()=>{if(typeof window<"u"&&l.ssr||i.current.router===l&&i.current.mounted)return;i.current={router:l,mounted:!0},(async()=>{try{await l.load()}catch(g){console.error(g)}})()},[l]),Wu(()=>{y&&!h&&l.emit({type:"onLoad",...Ta(l.state)})},[y,l,h]),Wu(()=>{b&&!d&&l.emit({type:"onBeforeRouteMount",...Ta(l.state)})},[d,b,l]),Wu(()=>{if(v&&!m){const S=Ta(l.state);l.emit({type:"onResolved",...S}),l.__store.setState(g=>({...g,status:"idle",resolvedLocation:g.location})),S.hrefChanged&&F0(l)}},[m,v,l]),null}function PS(l){const i=He({select:s=>`not-found-${s.location.pathname}-${s.status}`});return at.jsx(vr,{getResetKey:()=>i,onCatch:(s,o)=>{if(me(s))l.onCatch?.(s,o);else throw s},errorComponent:({error:s})=>{if(me(s))return l.fallback?.(s);throw s},children:l.children})}function kS(){return at.jsx("p",{children:"Not Found"})}function yl(l){return at.jsx(at.Fragment,{children:l.children})}function ky(l,i,s){return i.options.notFoundComponent?at.jsx(i.options.notFoundComponent,{...s}):l.options.defaultNotFoundComponent?at.jsx(l.options.defaultNotFoundComponent,{...s}):at.jsx(kS,{})}function FS(){return qe().isScrollRestoring,null}const Fy=F.memo(function({matchId:i}){const s=qe(),o=He({select:O=>{const L=O.matches.findIndex(q=>q.id===i),j=O.matches[L];return Wn(j),{routeId:j.routeId,ssr:j.ssr,_displayPending:j._displayPending,resetKey:O.loadedAt,parentRouteId:O.matches[L-1]?.routeId}},structuralSharing:!0}),r=s.routesById[o.routeId],h=r.options.pendingComponent??s.options.defaultPendingComponent,y=h?at.jsx(h,{}):null,m=r.options.errorComponent??s.options.defaultErrorComponent,v=r.options.onCatch??s.options.defaultOnCatch,d=r.isRoot?r.options.notFoundComponent??s.options.notFoundRoute?.options.component:r.options.notFoundComponent,b=o.ssr===!1||o.ssr==="data-only",S=(!r.isRoot||r.options.wrapInSuspense||b)&&(r.options.wrapInSuspense??h??(r.options.errorComponent?.preload||b))?F.Suspense:yl,g=m?vr:yl,_=d?PS:yl,T=r.isRoot?r.options.shellComponent??yl:yl;return at.jsxs(T,{children:[at.jsx(ps.Provider,{value:i,children:at.jsx(S,{fallback:y,children:at.jsx(g,{getResetKey:()=>o.resetKey,errorComponent:m||gr,onCatch:(O,L)=>{if(me(O))throw O;v?.(O,L)},children:at.jsx(_,{fallback:O=>{if(!d||O.routeId&&O.routeId!==o.routeId||!O.routeId&&!r.isRoot)throw O;return F.createElement(d,O)},children:b||o._displayPending?at.jsx(TS,{fallback:y,children:at.jsx(dy,{matchId:i})}):at.jsx(dy,{matchId:i})})})})}),o.parentRouteId===je&&s.options.scrollRestoration?at.jsxs(at.Fragment,{children:[at.jsx(WS,{}),at.jsx(FS,{})]}):null]})});function WS(){const l=qe(),i=F.useRef(void 0);return at.jsx("script",{suppressHydrationWarning:!0,ref:s=>{s&&(i.current===void 0||i.current.href!==l.latestLocation.href)&&(l.emit({type:"onRendered",...Ta(l.state)}),i.current=l.latestLocation)}},l.latestLocation.state.__TSR_key)}const dy=F.memo(function({matchId:i}){const s=qe(),{match:o,key:r,routeId:h}=He({select:v=>{const d=v.matches.find(T=>T.id===i),b=d.routeId,g=(s.routesById[b].options.remountDeps??s.options.defaultRemountDeps)?.({routeId:b,loaderDeps:d.loaderDeps,params:d._strictParams,search:d._strictSearch});return{key:g?JSON.stringify(g):void 0,routeId:b,match:{id:d.id,status:d.status,error:d.error,invalid:d.invalid,_forcePending:d._forcePending,_displayPending:d._displayPending}}},structuralSharing:!0}),y=s.routesById[h],m=F.useMemo(()=>{const v=y.options.component??s.options.defaultComponent;return v?at.jsx(v,{},r):at.jsx($S,{})},[r,y.options.component,s.options.defaultComponent]);if(o._displayPending)throw s.getMatch(o.id)?._nonReactive.displayPendingPromise;if(o._forcePending)throw s.getMatch(o.id)?._nonReactive.minPendingPromise;if(o.status==="pending"){const v=y.options.pendingMinMs??s.options.defaultPendingMinMs;if(v){const d=s.getMatch(o.id);if(d&&!d._nonReactive.minPendingPromise){const b=pl();d._nonReactive.minPendingPromise=b,setTimeout(()=>{b.resolve(),d._nonReactive.minPendingPromise=void 0},v)}}throw s.getMatch(o.id)?._nonReactive.loadPromise}if(o.status==="notFound")return Wn(me(o.error)),ky(s,y,o.error);if(o.status==="redirected")throw Wn(Me(o.error)),s.getMatch(o.id)?._nonReactive.loadPromise;if(o.status==="error")throw o.error;return m}),$S=F.memo(function(){const i=qe(),s=F.useContext(ps),o=He({select:d=>d.matches.find(b=>b.id===s)?.routeId}),r=i.routesById[o],h=He({select:d=>{const S=d.matches.find(g=>g.id===s);return Wn(S),S.globalNotFound}}),y=He({select:d=>{const b=d.matches,S=b.findIndex(g=>g.id===s);return b[S+1]?.id}}),m=i.options.defaultPendingComponent?at.jsx(i.options.defaultPendingComponent,{}):null;if(h)return ky(i,r,void 0);if(!y)return null;const v=at.jsx(Fy,{matchId:y});return o===je?at.jsx(F.Suspense,{fallback:m,children:v}):v});function IS(){const l=qe(),s=l.routesById[je].options.pendingComponent??l.options.defaultPendingComponent,o=s?at.jsx(s,{}):null,r=typeof document<"u"&&l.ssr?yl:F.Suspense,h=at.jsxs(r,{fallback:o,children:[at.jsx(JS,{}),at.jsx(tb,{})]});return l.options.InnerWrap?at.jsx(l.options.InnerWrap,{children:h}):h}function tb(){const l=qe(),i=He({select:r=>r.matches[0]?.id}),s=He({select:r=>r.loadedAt}),o=i?at.jsx(Fy,{matchId:i}):null;return at.jsx(ps.Provider,{value:i,children:l.options.disableGlobalCatchBoundary?o:at.jsx(vr,{getResetKey:()=>s,errorComponent:gr,onCatch:void 0,children:o})})}const vb=l=>new eb(l);class eb extends hS{constructor(i){super(i)}}typeof globalThis<"u"?(globalThis.createFileRoute=oy,globalThis.createLazyFileRoute=hy):typeof window<"u"&&(window.createFileRoute=oy,window.createLazyFileRoute=hy);function nb({router:l,children:i,...s}){Object.keys(s).length>0&&l.update({...l.options,...s,context:{...l.options.context,...s.context}});const o=at.jsx(Jy.Provider,{value:l,children:i});return l.options.Wrap?at.jsx(l.options.Wrap,{children:o}):o}function gb({router:l,...i}){return at.jsx(nb,{router:l,...i,children:at.jsx(IS,{})})}const ab="modulepreload",lb=function(l){return"/"+l},my={},Sb=function(i,s,o){let r=Promise.resolve();if(s&&s.length>0){let v=function(d){return Promise.all(d.map(b=>Promise.resolve(b).then(S=>({status:"fulfilled",value:S}),S=>({status:"rejected",reason:S}))))};document.getElementsByTagName("link");const y=document.querySelector("meta[property=csp-nonce]"),m=y?.nonce||y?.getAttribute("nonce");r=v(s.map(d=>{if(d=lb(d),d in my)return;my[d]=!0;const b=d.endsWith(".css"),S=b?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${d}"]${S}`))return;const g=document.createElement("link");if(g.rel=b?"stylesheet":ab,b||(g.as="script"),g.crossOrigin="",g.href=d,m&&g.setAttribute("nonce",m),document.head.appendChild(g),b)return new Promise((_,T)=>{g.addEventListener("load",_),g.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${d}`)))})}))}function h(y){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=y,window.dispatchEvent(m),!m.defaultPrevented)throw y}return r.then(y=>{for(const m of y||[])m.status==="rejected"&&h(m.reason);return i().catch(h)})};export{$S as O,cb as Q,Ri as R,Sb as _,Cy as a,fb as b,ib as c,hb as d,ub as e,pb as f,yg as g,oy as h,aS as i,at as j,Er as k,vb as l,ob as m,gb as n,sb as o,F as r,rb as u};
|