From 77268c36e0a1697fa5ce94e1b567aba608a05b6f Mon Sep 17 00:00:00 2001 From: zahrabayatt Date: Fri, 1 Nov 2024 16:31:51 +0000 Subject: [PATCH] deploy: 9807586aeefc42750aa2a78383c376767dfeb7db --- assets/index-CyiDxAYe.js | 82 ++++++++++++++++++++++++++++++++++++++++ assets/index-DRT8ENZZ.js | 68 --------------------------------- index.html | 2 +- 3 files changed, 83 insertions(+), 69 deletions(-) create mode 100644 assets/index-CyiDxAYe.js delete mode 100644 assets/index-DRT8ENZZ.js diff --git a/assets/index-CyiDxAYe.js b/assets/index-CyiDxAYe.js new file mode 100644 index 0000000..66960fe --- /dev/null +++ b/assets/index-CyiDxAYe.js @@ -0,0 +1,82 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))i(l);new MutationObserver(l=>{for(const u of l)if(u.type==="childList")for(const a of u.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function n(l){const u={};return l.integrity&&(u.integrity=l.integrity),l.referrerPolicy&&(u.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?u.credentials="include":l.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function i(l){if(l.ep)return;l.ep=!0;const u=n(l);fetch(l.href,u)}})();var Fo=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function kE(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Q0={exports:{}},Nu={},Y0={exports:{}},pe={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Pl=Symbol.for("react.element"),PE=Symbol.for("react.portal"),LE=Symbol.for("react.fragment"),RE=Symbol.for("react.strict_mode"),TE=Symbol.for("react.profiler"),IE=Symbol.for("react.provider"),ME=Symbol.for("react.context"),NE=Symbol.for("react.forward_ref"),OE=Symbol.for("react.suspense"),AE=Symbol.for("react.memo"),zE=Symbol.for("react.lazy"),xg=Symbol.iterator;function FE(e){return e===null||typeof e!="object"?null:(e=xg&&e[xg]||e["@@iterator"],typeof e=="function"?e:null)}var X0={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Z0=Object.assign,q0={};function po(e,t,n){this.props=e,this.context=t,this.refs=q0,this.updater=n||X0}po.prototype.isReactComponent={};po.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};po.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function J0(){}J0.prototype=po.prototype;function Vf(e,t,n){this.props=e,this.context=t,this.refs=q0,this.updater=n||X0}var Kf=Vf.prototype=new J0;Kf.constructor=Vf;Z0(Kf,po.prototype);Kf.isPureReactComponent=!0;var Sg=Array.isArray,em=Object.prototype.hasOwnProperty,Gf={current:null},tm={key:!0,ref:!0,__self:!0,__source:!0};function nm(e,t,n){var i,l={},u=null,a=null;if(t!=null)for(i in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(u=""+t.key),t)em.call(t,i)&&!tm.hasOwnProperty(i)&&(l[i]=t[i]);var f=arguments.length-2;if(f===1)l.children=n;else if(1>>1,ie=b[V];if(0>>1;Vl(Le,K))otl(gn,Le)?(b[V]=gn,b[ot]=K,V=ot):(b[V]=Le,b[be]=K,V=be);else if(otl(gn,K))b[V]=gn,b[ot]=K,V=ot;else break e}}return X}function l(b,X){var K=b.sortIndex-X.sortIndex;return K!==0?K:b.id-X.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var a=Date,f=a.now();e.unstable_now=function(){return a.now()-f}}var h=[],g=[],v=1,y=null,x=3,L=!1,R=!1,I=!1,F=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,w=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function S(b){for(var X=n(g);X!==null;){if(X.callback===null)i(g);else if(X.startTime<=b)i(g),X.sortIndex=X.expirationTime,t(h,X);else break;X=n(g)}}function M(b){if(I=!1,S(b),!R)if(n(h)!==null)R=!0,ve(D);else{var X=n(g);X!==null&&ne(M,X.startTime-b)}}function D(b,X){R=!1,I&&(I=!1,C(U),U=-1),L=!0;var K=x;try{for(S(X),y=n(h);y!==null&&(!(y.expirationTime>X)||b&&!q());){var V=y.callback;if(typeof V=="function"){y.callback=null,x=y.priorityLevel;var ie=V(y.expirationTime<=X);X=e.unstable_now(),typeof ie=="function"?y.callback=ie:y===n(h)&&i(h),S(X)}else i(h);y=n(h)}if(y!==null)var Xe=!0;else{var be=n(g);be!==null&&ne(M,be.startTime-X),Xe=!1}return Xe}finally{y=null,x=K,L=!1}}var $=!1,W=null,U=-1,G=5,te=-1;function q(){return!(e.unstable_now()-teb||125V?(b.sortIndex=K,t(g,b),n(h)===null&&b===n(g)&&(I?(C(U),U=-1):I=!0,ne(M,K-V))):(b.sortIndex=ie,t(h,b),R||L||(R=!0,ve(D))),b},e.unstable_shouldYield=q,e.unstable_wrapCallback=function(b){var X=x;return function(){var K=x;x=X;try{return b.apply(this,arguments)}finally{x=K}}}})(sm);lm.exports=sm;var GE=lm.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var QE=ee,Zt=GE;function B(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zc=Object.prototype.hasOwnProperty,YE=/^[: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]*$/,Eg={},kg={};function XE(e){return Zc.call(kg,e)?!0:Zc.call(Eg,e)?!1:YE.test(e)?kg[e]=!0:(Eg[e]=!0,!1)}function ZE(e,t,n,i){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return i?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function qE(e,t,n,i){if(t===null||typeof t>"u"||ZE(e,t,n,i))return!0;if(i)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Pt(e,t,n,i,l,u,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=i,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=u,this.removeEmptyString=a}var dt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){dt[e]=new Pt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];dt[t]=new Pt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){dt[e]=new Pt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){dt[e]=new Pt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){dt[e]=new Pt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){dt[e]=new Pt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){dt[e]=new Pt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){dt[e]=new Pt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){dt[e]=new Pt(e,5,!1,e.toLowerCase(),null,!1,!1)});var Yf=/[\-:]([a-z])/g;function Xf(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Yf,Xf);dt[t]=new Pt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Yf,Xf);dt[t]=new Pt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Yf,Xf);dt[t]=new Pt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){dt[e]=new Pt(e,1,!1,e.toLowerCase(),null,!1,!1)});dt.xlinkHref=new Pt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){dt[e]=new Pt(e,1,!1,e.toLowerCase(),null,!0,!0)});function Zf(e,t,n,i){var l=dt.hasOwnProperty(t)?dt[t]:null;(l!==null?l.type!==0:i||!(2f||l[a]!==u[f]){var h=` +`+l[a].replace(" at new "," at ");return e.displayName&&h.includes("")&&(h=h.replace("",e.displayName)),h}while(1<=a&&0<=f);break}}}finally{xc=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Go(e):""}function JE(e){switch(e.tag){case 5:return Go(e.type);case 16:return Go("Lazy");case 13:return Go("Suspense");case 19:return Go("SuspenseList");case 0:case 2:case 15:return e=Sc(e.type,!1),e;case 11:return e=Sc(e.type.render,!1),e;case 1:return e=Sc(e.type,!0),e;default:return""}}function tf(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Fi:return"Fragment";case zi:return"Portal";case qc:return"Profiler";case qf:return"StrictMode";case Jc:return"Suspense";case ef:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case cm:return(e.displayName||"Context")+".Consumer";case am:return(e._context.displayName||"Context")+".Provider";case Jf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ed:return t=e.displayName||null,t!==null?t:tf(e.type)||"Memo";case Sr:t=e._payload,e=e._init;try{return tf(e(t))}catch{}}return null}function ek(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return tf(t);case 8:return t===qf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Fr(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function dm(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function tk(e){var t=dm(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),i=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,u=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(a){i=""+a,u.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return i},setValue:function(a){i=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Es(e){e._valueTracker||(e._valueTracker=tk(e))}function hm(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=dm(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function nu(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function nf(e,t){var n=t.checked;return Ue({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Lg(e,t){var n=t.defaultValue==null?"":t.defaultValue,i=t.checked!=null?t.checked:t.defaultChecked;n=Fr(t.value!=null?t.value:n),e._wrapperState={initialChecked:i,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function pm(e,t){t=t.checked,t!=null&&Zf(e,"checked",t,!1)}function rf(e,t){pm(e,t);var n=Fr(t.value),i=t.type;if(n!=null)i==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(i==="submit"||i==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?of(e,t.type,n):t.hasOwnProperty("defaultValue")&&of(e,t.type,Fr(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Rg(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var i=t.type;if(!(i!=="submit"&&i!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function of(e,t,n){(t!=="number"||nu(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Qo=Array.isArray;function Qi(e,t,n,i){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=ks.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function cl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qo={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},nk=["Webkit","ms","Moz","O"];Object.keys(qo).forEach(function(e){nk.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),qo[t]=qo[e]})});function ym(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||qo.hasOwnProperty(e)&&qo[e]?(""+t).trim():t+"px"}function wm(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var i=n.indexOf("--")===0,l=ym(n,t[n],i);n==="float"&&(n="cssFloat"),i?e.setProperty(n,l):e[n]=l}}var rk=Ue({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function uf(e,t){if(t){if(rk[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(B(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(B(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(B(61))}if(t.style!=null&&typeof t.style!="object")throw Error(B(62))}}function af(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){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 cf=null;function td(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ff=null,Yi=null,Xi=null;function Mg(e){if(e=Tl(e)){if(typeof ff!="function")throw Error(B(280));var t=e.stateNode;t&&(t=Du(t),ff(e.stateNode,e.type,t))}}function _m(e){Yi?Xi?Xi.push(e):Xi=[e]:Yi=e}function xm(){if(Yi){var e=Yi,t=Xi;if(Xi=Yi=null,Mg(e),t)for(e=0;e>>=0,e===0?32:31-(pk(e)/gk|0)|0}var Ps=64,Ls=4194304;function Yo(e){switch(e&-e){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: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function lu(e,t){var n=e.pendingLanes;if(n===0)return 0;var i=0,l=e.suspendedLanes,u=e.pingedLanes,a=n&268435455;if(a!==0){var f=a&~l;f!==0?i=Yo(f):(u&=a,u!==0&&(i=Yo(u)))}else a=n&~l,a!==0?i=Yo(a):u!==0&&(i=Yo(u));if(i===0)return 0;if(t!==0&&t!==i&&!(t&l)&&(l=i&-i,u=t&-t,l>=u||l===16&&(u&4194240)!==0))return t;if(i&4&&(i|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=i;0n;n++)t.push(e);return t}function Ll(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Pn(t),e[t]=n}function wk(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var i=e.eventTimes;for(e=e.expirationTimes;0=el),Ug=" ",bg=!1;function bm(e,t){switch(e){case"keyup":return Gk.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Di=!1;function Yk(e,t){switch(e){case"compositionend":return Wm(t);case"keypress":return t.which!==32?null:(bg=!0,Ug);case"textInput":return e=t.data,e===Ug&&bg?null:e;default:return null}}function Xk(e,t){if(Di)return e==="compositionend"||!ad&&bm(e,t)?(e=Bm(),Ks=ld=Pr=null,Di=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Vg(n)}}function Km(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Km(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gm(){for(var e=window,t=nu();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=nu(e.document)}return t}function cd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function o4(e){var t=Gm(),n=e.focusedElem,i=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Km(n.ownerDocument.documentElement,n)){if(i!==null&&cd(n)){if(t=i.start,e=i.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,u=Math.min(i.start,l);i=i.end===void 0?u:Math.min(i.end,l),!e.extend&&u>i&&(l=i,i=u,u=l),l=Kg(n,u);var a=Kg(n,i);l&&a&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),u>i?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,ji=null,vf=null,nl=null,yf=!1;function Gg(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;yf||ji==null||ji!==nu(i)||(i=ji,"selectionStart"in i&&cd(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),nl&&ml(nl,i)||(nl=i,i=au(vf,"onSelect"),0bi||(e.current=Ef[bi],Ef[bi]=null,bi--)}function Te(e,t){bi++,Ef[bi]=e.current,e.current=t}var Dr={},yt=Ur(Dr),At=Ur(!1),ai=Dr;function ro(e,t){var n=e.type.contextTypes;if(!n)return Dr;var i=e.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===t)return i.__reactInternalMemoizedMaskedChildContext;var l={},u;for(u in n)l[u]=t[u];return i&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function zt(e){return e=e.childContextTypes,e!=null}function fu(){Oe(At),Oe(yt)}function e0(e,t,n){if(yt.current!==Dr)throw Error(B(168));Te(yt,t),Te(At,n)}function nv(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!="function")return n;i=i.getChildContext();for(var l in i)if(!(l in t))throw Error(B(108,ek(e)||"Unknown",l));return Ue({},n,i)}function du(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dr,ai=yt.current,Te(yt,e),Te(At,At.current),!0}function t0(e,t,n){var i=e.stateNode;if(!i)throw Error(B(169));n?(e=nv(e,t,ai),i.__reactInternalMemoizedMergedChildContext=e,Oe(At),Oe(yt),Te(yt,e)):Oe(At),Te(At,n)}var Yn=null,ju=!1,Fc=!1;function rv(e){Yn===null?Yn=[e]:Yn.push(e)}function v4(e){ju=!0,rv(e)}function br(){if(!Fc&&Yn!==null){Fc=!0;var e=0,t=Ce;try{var n=Yn;for(Ce=1;e>=a,l-=a,Zn=1<<32-Pn(t)+l|n<U?(G=W,W=null):G=W.sibling;var te=x(C,W,S[U],M);if(te===null){W===null&&(W=G);break}e&&W&&te.alternate===null&&t(C,W),w=u(te,w,U),$===null?D=te:$.sibling=te,$=te,W=G}if(U===S.length)return n(C,W),Fe&&ei(C,U),D;if(W===null){for(;UU?(G=W,W=null):G=W.sibling;var q=x(C,W,te.value,M);if(q===null){W===null&&(W=G);break}e&&W&&q.alternate===null&&t(C,W),w=u(q,w,U),$===null?D=q:$.sibling=q,$=q,W=G}if(te.done)return n(C,W),Fe&&ei(C,U),D;if(W===null){for(;!te.done;U++,te=S.next())te=y(C,te.value,M),te!==null&&(w=u(te,w,U),$===null?D=te:$.sibling=te,$=te);return Fe&&ei(C,U),D}for(W=i(C,W);!te.done;U++,te=S.next())te=L(W,C,U,te.value,M),te!==null&&(e&&te.alternate!==null&&W.delete(te.key===null?U:te.key),w=u(te,w,U),$===null?D=te:$.sibling=te,$=te);return e&&W.forEach(function(Z){return t(C,Z)}),Fe&&ei(C,U),D}function F(C,w,S,M){if(typeof S=="object"&&S!==null&&S.type===Fi&&S.key===null&&(S=S.props.children),typeof S=="object"&&S!==null){switch(S.$$typeof){case Cs:e:{for(var D=S.key,$=w;$!==null;){if($.key===D){if(D=S.type,D===Fi){if($.tag===7){n(C,$.sibling),w=l($,S.props.children),w.return=C,C=w;break e}}else if($.elementType===D||typeof D=="object"&&D!==null&&D.$$typeof===Sr&&i0(D)===$.type){n(C,$.sibling),w=l($,S.props),w.ref=Wo(C,$,S),w.return=C,C=w;break e}n(C,$);break}else t(C,$);$=$.sibling}S.type===Fi?(w=ui(S.props.children,C.mode,M,S.key),w.return=C,C=w):(M=eu(S.type,S.key,S.props,null,C.mode,M),M.ref=Wo(C,w,S),M.return=C,C=M)}return a(C);case zi:e:{for($=S.key;w!==null;){if(w.key===$)if(w.tag===4&&w.stateNode.containerInfo===S.containerInfo&&w.stateNode.implementation===S.implementation){n(C,w.sibling),w=l(w,S.children||[]),w.return=C,C=w;break e}else{n(C,w);break}else t(C,w);w=w.sibling}w=Hc(S,C.mode,M),w.return=C,C=w}return a(C);case Sr:return $=S._init,F(C,w,$(S._payload),M)}if(Qo(S))return R(C,w,S,M);if(Do(S))return I(C,w,S,M);As(C,S)}return typeof S=="string"&&S!==""||typeof S=="number"?(S=""+S,w!==null&&w.tag===6?(n(C,w.sibling),w=l(w,S),w.return=C,C=w):(n(C,w),w=$c(S,C.mode,M),w.return=C,C=w),a(C)):n(C,w)}return F}var oo=sv(!0),uv=sv(!1),gu=Ur(null),mu=null,Hi=null,pd=null;function gd(){pd=Hi=mu=null}function md(e){var t=gu.current;Oe(gu),e._currentValue=t}function Lf(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function qi(e,t){mu=e,pd=Hi=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ot=!0),e.firstContext=null)}function hn(e){var t=e._currentValue;if(pd!==e)if(e={context:e,memoizedValue:t,next:null},Hi===null){if(mu===null)throw Error(B(308));Hi=e,mu.dependencies={lanes:0,firstContext:e}}else Hi=Hi.next=e;return t}var ii=null;function vd(e){ii===null?ii=[e]:ii.push(e)}function av(e,t,n,i){var l=t.interleaved;return l===null?(n.next=n,vd(t)):(n.next=l.next,l.next=n),t.interleaved=n,ir(e,i)}function ir(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Cr=!1;function yd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function cv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function er(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Nr(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,we&2){var l=i.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),i.pending=t,ir(e,n)}return l=i.interleaved,l===null?(t.next=t,vd(i)):(t.next=l.next,l.next=t),i.interleaved=t,ir(e,n)}function Qs(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,rd(e,n)}}function o0(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var l=null,u=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};u===null?l=u=a:u=u.next=a,n=n.next}while(n!==null);u===null?l=u=t:u=u.next=t}else l=u=t;n={baseState:i.baseState,firstBaseUpdate:l,lastBaseUpdate:u,shared:i.shared,effects:i.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function vu(e,t,n,i){var l=e.updateQueue;Cr=!1;var u=l.firstBaseUpdate,a=l.lastBaseUpdate,f=l.shared.pending;if(f!==null){l.shared.pending=null;var h=f,g=h.next;h.next=null,a===null?u=g:a.next=g,a=h;var v=e.alternate;v!==null&&(v=v.updateQueue,f=v.lastBaseUpdate,f!==a&&(f===null?v.firstBaseUpdate=g:f.next=g,v.lastBaseUpdate=h))}if(u!==null){var y=l.baseState;a=0,v=g=h=null,f=u;do{var x=f.lane,L=f.eventTime;if((i&x)===x){v!==null&&(v=v.next={eventTime:L,lane:0,tag:f.tag,payload:f.payload,callback:f.callback,next:null});e:{var R=e,I=f;switch(x=t,L=n,I.tag){case 1:if(R=I.payload,typeof R=="function"){y=R.call(L,y,x);break e}y=R;break e;case 3:R.flags=R.flags&-65537|128;case 0:if(R=I.payload,x=typeof R=="function"?R.call(L,y,x):R,x==null)break e;y=Ue({},y,x);break e;case 2:Cr=!0}}f.callback!==null&&f.lane!==0&&(e.flags|=64,x=l.effects,x===null?l.effects=[f]:x.push(f))}else L={eventTime:L,lane:x,tag:f.tag,payload:f.payload,callback:f.callback,next:null},v===null?(g=v=L,h=y):v=v.next=L,a|=x;if(f=f.next,f===null){if(f=l.shared.pending,f===null)break;x=f,f=x.next,x.next=null,l.lastBaseUpdate=x,l.shared.pending=null}}while(!0);if(v===null&&(h=y),l.baseState=h,l.firstBaseUpdate=g,l.lastBaseUpdate=v,t=l.shared.interleaved,t!==null){l=t;do a|=l.lane,l=l.next;while(l!==t)}else u===null&&(l.shared.lanes=0);di|=a,e.lanes=a,e.memoizedState=y}}function l0(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var i=jc.transition;jc.transition={};try{e(!1),t()}finally{Ce=n,jc.transition=i}}function Lv(){return pn().memoizedState}function x4(e,t,n){var i=Ar(e);if(n={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null},Rv(e))Tv(t,n);else if(n=av(e,t,n,i),n!==null){var l=Ct();Ln(n,e,i,l),Iv(n,t,i)}}function S4(e,t,n){var i=Ar(e),l={lane:i,action:n,hasEagerState:!1,eagerState:null,next:null};if(Rv(e))Tv(t,l);else{var u=e.alternate;if(e.lanes===0&&(u===null||u.lanes===0)&&(u=t.lastRenderedReducer,u!==null))try{var a=t.lastRenderedState,f=u(a,n);if(l.hasEagerState=!0,l.eagerState=f,Rn(f,a)){var h=t.interleaved;h===null?(l.next=l,vd(t)):(l.next=h.next,h.next=l),t.interleaved=l;return}}catch{}finally{}n=av(e,t,l,i),n!==null&&(l=Ct(),Ln(n,e,i,l),Iv(n,t,i))}}function Rv(e){var t=e.alternate;return e===Be||t!==null&&t===Be}function Tv(e,t){rl=wu=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Iv(e,t,n){if(n&4194240){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,rd(e,n)}}var _u={readContext:hn,useCallback:gt,useContext:gt,useEffect:gt,useImperativeHandle:gt,useInsertionEffect:gt,useLayoutEffect:gt,useMemo:gt,useReducer:gt,useRef:gt,useState:gt,useDebugValue:gt,useDeferredValue:gt,useTransition:gt,useMutableSource:gt,useSyncExternalStore:gt,useId:gt,unstable_isNewReconciler:!1},C4={readContext:hn,useCallback:function(e,t){return An().memoizedState=[e,t===void 0?null:t],e},useContext:hn,useEffect:u0,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Xs(4194308,4,Sv.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Xs(4194308,4,e,t)},useInsertionEffect:function(e,t){return Xs(4,2,e,t)},useMemo:function(e,t){var n=An();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var i=An();return t=n!==void 0?n(t):t,i.memoizedState=i.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},i.queue=e,e=e.dispatch=x4.bind(null,Be,e),[i.memoizedState,e]},useRef:function(e){var t=An();return e={current:e},t.memoizedState=e},useState:s0,useDebugValue:Pd,useDeferredValue:function(e){return An().memoizedState=e},useTransition:function(){var e=s0(!1),t=e[0];return e=_4.bind(null,e[1]),An().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=Be,l=An();if(Fe){if(n===void 0)throw Error(B(407));n=n()}else{if(n=t(),it===null)throw Error(B(349));fi&30||pv(i,t,n)}l.memoizedState=n;var u={value:n,getSnapshot:t};return l.queue=u,u0(mv.bind(null,i,u,e),[e]),i.flags|=2048,El(9,gv.bind(null,i,u,n,t),void 0,null),n},useId:function(){var e=An(),t=it.identifierPrefix;if(Fe){var n=qn,i=Zn;n=(i&~(1<<32-Pn(i)-1)).toString(32)+n,t=":"+t+"R"+n,n=Sl++,0<\/script>",e=e.removeChild(e.firstChild)):typeof i.is=="string"?e=a.createElement(n,{is:i.is}):(e=a.createElement(n),n==="select"&&(a=e,i.multiple?a.multiple=!0:i.size&&(a.size=i.size))):e=a.createElementNS(e,n),e[zn]=t,e[wl]=i,Uv(e,t,!1,!1),t.stateNode=e;e:{switch(a=af(n,i),n){case"dialog":Ne("cancel",e),Ne("close",e),l=i;break;case"iframe":case"object":case"embed":Ne("load",e),l=i;break;case"video":case"audio":for(l=0;luo&&(t.flags|=128,i=!0,$o(u,!1),t.lanes=4194304)}else{if(!i)if(e=yu(a),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),$o(u,!0),u.tail===null&&u.tailMode==="hidden"&&!a.alternate&&!Fe)return mt(t),null}else 2*Qe()-u.renderingStartTime>uo&&n!==1073741824&&(t.flags|=128,i=!0,$o(u,!1),t.lanes=4194304);u.isBackwards?(a.sibling=t.child,t.child=a):(n=u.last,n!==null?n.sibling=a:t.child=a,u.last=a)}return u.tail!==null?(t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=Qe(),t.sibling=null,n=je.current,Te(je,i?n&1|2:n&1),t):(mt(t),null);case 22:case 23:return Nd(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?Gt&1073741824&&(mt(t),t.subtreeFlags&6&&(t.flags|=8192)):mt(t),null;case 24:return null;case 25:return null}throw Error(B(156,t.tag))}function M4(e,t){switch(dd(t),t.tag){case 1:return zt(t.type)&&fu(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return lo(),Oe(At),Oe(yt),xd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _d(t),null;case 13:if(Oe(je),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(B(340));io()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Oe(je),null;case 4:return lo(),null;case 10:return md(t.type._context),null;case 22:case 23:return Nd(),null;case 24:return null;default:return null}}var Fs=!1,vt=!1,N4=typeof WeakSet=="function"?WeakSet:Set,Y=null;function Vi(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(i){$e(e,t,i)}else n.current=null}function Ff(e,t,n){try{n()}catch(i){$e(e,t,i)}}var w0=!1;function O4(e,t){if(wf=su,e=Gm(),cd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var l=i.anchorOffset,u=i.focusNode;i=i.focusOffset;try{n.nodeType,u.nodeType}catch{n=null;break e}var a=0,f=-1,h=-1,g=0,v=0,y=e,x=null;t:for(;;){for(var L;y!==n||l!==0&&y.nodeType!==3||(f=a+l),y!==u||i!==0&&y.nodeType!==3||(h=a+i),y.nodeType===3&&(a+=y.nodeValue.length),(L=y.firstChild)!==null;)x=y,y=L;for(;;){if(y===e)break t;if(x===n&&++g===l&&(f=a),x===u&&++v===i&&(h=a),(L=y.nextSibling)!==null)break;y=x,x=y.parentNode}y=L}n=f===-1||h===-1?null:{start:f,end:h}}else n=null}n=n||{start:0,end:0}}else n=null;for(_f={focusedElem:e,selectionRange:n},su=!1,Y=t;Y!==null;)if(t=Y,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Y=e;else for(;Y!==null;){t=Y;try{var R=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(R!==null){var I=R.memoizedProps,F=R.memoizedState,C=t.stateNode,w=C.getSnapshotBeforeUpdate(t.elementType===t.type?I:Sn(t.type,I),F);C.__reactInternalSnapshotBeforeUpdate=w}break;case 3:var S=t.stateNode.containerInfo;S.nodeType===1?S.textContent="":S.nodeType===9&&S.documentElement&&S.removeChild(S.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(B(163))}}catch(M){$e(t,t.return,M)}if(e=t.sibling,e!==null){e.return=t.return,Y=e;break}Y=t.return}return R=w0,w0=!1,R}function il(e,t,n){var i=t.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var l=i=i.next;do{if((l.tag&e)===e){var u=l.destroy;l.destroy=void 0,u!==void 0&&Ff(t,n,u)}l=l.next}while(l!==i)}}function bu(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var i=n.create;n.destroy=i()}n=n.next}while(n!==t)}}function Df(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function $v(e){var t=e.alternate;t!==null&&(e.alternate=null,$v(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zn],delete t[wl],delete t[Cf],delete t[g4],delete t[m4])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Hv(e){return e.tag===5||e.tag===3||e.tag===4}function _0(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Hv(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function jf(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=cu));else if(i!==4&&(e=e.child,e!==null))for(jf(e,t,n),e=e.sibling;e!==null;)jf(e,t,n),e=e.sibling}function Bf(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(e=e.child,e!==null))for(Bf(e,t,n),e=e.sibling;e!==null;)Bf(e,t,n),e=e.sibling}var ct=null,Cn=!1;function wr(e,t,n){for(n=n.child;n!==null;)Vv(e,t,n),n=n.sibling}function Vv(e,t,n){if(Fn&&typeof Fn.onCommitFiberUnmount=="function")try{Fn.onCommitFiberUnmount(Ou,n)}catch{}switch(n.tag){case 5:vt||Vi(n,t);case 6:var i=ct,l=Cn;ct=null,wr(e,t,n),ct=i,Cn=l,ct!==null&&(Cn?(e=ct,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ct.removeChild(n.stateNode));break;case 18:ct!==null&&(Cn?(e=ct,n=n.stateNode,e.nodeType===8?zc(e.parentNode,n):e.nodeType===1&&zc(e,n),pl(e)):zc(ct,n.stateNode));break;case 4:i=ct,l=Cn,ct=n.stateNode.containerInfo,Cn=!0,wr(e,t,n),ct=i,Cn=l;break;case 0:case 11:case 14:case 15:if(!vt&&(i=n.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){l=i=i.next;do{var u=l,a=u.destroy;u=u.tag,a!==void 0&&(u&2||u&4)&&Ff(n,t,a),l=l.next}while(l!==i)}wr(e,t,n);break;case 1:if(!vt&&(Vi(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=n.memoizedProps,i.state=n.memoizedState,i.componentWillUnmount()}catch(f){$e(n,t,f)}wr(e,t,n);break;case 21:wr(e,t,n);break;case 22:n.mode&1?(vt=(i=vt)||n.memoizedState!==null,wr(e,t,n),vt=i):wr(e,t,n);break;default:wr(e,t,n)}}function x0(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new N4),t.forEach(function(i){var l=W4.bind(null,e,i);n.has(i)||(n.add(i),i.then(l,l))})}}function xn(e,t){var n=t.deletions;if(n!==null)for(var i=0;il&&(l=a),i&=~u}if(i=l,i=Qe()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*z4(i/1960))-i,10e?16:e,Lr===null)var i=!1;else{if(e=Lr,Lr=null,Cu=0,we&6)throw Error(B(331));var l=we;for(we|=4,Y=e.current;Y!==null;){var u=Y,a=u.child;if(Y.flags&16){var f=u.deletions;if(f!==null){for(var h=0;hQe()-Id?si(e,0):Td|=n),Ft(e,t)}function Jv(e,t){t===0&&(e.mode&1?(t=Ls,Ls<<=1,!(Ls&130023424)&&(Ls=4194304)):t=1);var n=Ct();e=ir(e,t),e!==null&&(Ll(e,t,n),Ft(e,n))}function b4(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Jv(e,n)}function W4(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(B(314))}i!==null&&i.delete(t),Jv(e,n)}var e1;e1=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||At.current)Ot=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ot=!1,T4(e,t,n);Ot=!!(e.flags&131072)}else Ot=!1,Fe&&t.flags&1048576&&iv(t,pu,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;Zs(e,t),e=t.pendingProps;var l=ro(t,yt.current);qi(t,n),l=Cd(null,t,i,e,l,n);var u=Ed();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,zt(i)?(u=!0,du(t)):u=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,yd(t),l.updater=Uu,t.stateNode=l,l._reactInternals=t,Tf(t,i,e,n),t=Nf(null,t,i,!0,u,n)):(t.tag=0,Fe&&u&&fd(t),St(null,t,l,n),t=t.child),t;case 16:i=t.elementType;e:{switch(Zs(e,t),e=t.pendingProps,l=i._init,i=l(i._payload),t.type=i,l=t.tag=H4(i),e=Sn(i,e),l){case 0:t=Mf(null,t,i,e,n);break e;case 1:t=m0(null,t,i,e,n);break e;case 11:t=p0(null,t,i,e,n);break e;case 14:t=g0(null,t,i,Sn(i.type,e),n);break e}throw Error(B(306,i,""))}return t;case 0:return i=t.type,l=t.pendingProps,l=t.elementType===i?l:Sn(i,l),Mf(e,t,i,l,n);case 1:return i=t.type,l=t.pendingProps,l=t.elementType===i?l:Sn(i,l),m0(e,t,i,l,n);case 3:e:{if(Dv(t),e===null)throw Error(B(387));i=t.pendingProps,u=t.memoizedState,l=u.element,cv(e,t),vu(t,i,null,n);var a=t.memoizedState;if(i=a.element,u.isDehydrated)if(u={element:i,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=u,t.memoizedState=u,t.flags&256){l=so(Error(B(423)),t),t=v0(e,t,i,n,l);break e}else if(i!==l){l=so(Error(B(424)),t),t=v0(e,t,i,n,l);break e}else for(Yt=Mr(t.stateNode.containerInfo.firstChild),Xt=t,Fe=!0,kn=null,n=uv(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(io(),i===l){t=or(e,t,n);break e}St(e,t,i,n)}t=t.child}return t;case 5:return fv(t),e===null&&Pf(t),i=t.type,l=t.pendingProps,u=e!==null?e.memoizedProps:null,a=l.children,xf(i,l)?a=null:u!==null&&xf(i,u)&&(t.flags|=32),Fv(e,t),St(e,t,a,n),t.child;case 6:return e===null&&Pf(t),null;case 13:return jv(e,t,n);case 4:return wd(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=oo(t,null,i,n):St(e,t,i,n),t.child;case 11:return i=t.type,l=t.pendingProps,l=t.elementType===i?l:Sn(i,l),p0(e,t,i,l,n);case 7:return St(e,t,t.pendingProps,n),t.child;case 8:return St(e,t,t.pendingProps.children,n),t.child;case 12:return St(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(i=t.type._context,l=t.pendingProps,u=t.memoizedProps,a=l.value,Te(gu,i._currentValue),i._currentValue=a,u!==null)if(Rn(u.value,a)){if(u.children===l.children&&!At.current){t=or(e,t,n);break e}}else for(u=t.child,u!==null&&(u.return=t);u!==null;){var f=u.dependencies;if(f!==null){a=u.child;for(var h=f.firstContext;h!==null;){if(h.context===i){if(u.tag===1){h=er(-1,n&-n),h.tag=2;var g=u.updateQueue;if(g!==null){g=g.shared;var v=g.pending;v===null?h.next=h:(h.next=v.next,v.next=h),g.pending=h}}u.lanes|=n,h=u.alternate,h!==null&&(h.lanes|=n),Lf(u.return,n,t),f.lanes|=n;break}h=h.next}}else if(u.tag===10)a=u.type===t.type?null:u.child;else if(u.tag===18){if(a=u.return,a===null)throw Error(B(341));a.lanes|=n,f=a.alternate,f!==null&&(f.lanes|=n),Lf(a,n,t),a=u.sibling}else a=u.child;if(a!==null)a.return=u;else for(a=u;a!==null;){if(a===t){a=null;break}if(u=a.sibling,u!==null){u.return=a.return,a=u;break}a=a.return}u=a}St(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,i=t.pendingProps.children,qi(t,n),l=hn(l),i=i(l),t.flags|=1,St(e,t,i,n),t.child;case 14:return i=t.type,l=Sn(i,t.pendingProps),l=Sn(i.type,l),g0(e,t,i,l,n);case 15:return Av(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,l=t.pendingProps,l=t.elementType===i?l:Sn(i,l),Zs(e,t),t.tag=1,zt(i)?(e=!0,du(t)):e=!1,qi(t,n),Mv(t,i,l),Tf(t,i,l,n),Nf(null,t,i,!0,e,n);case 19:return Bv(e,t,n);case 22:return zv(e,t,n)}throw Error(B(156,t.tag))};function t1(e,t){return Rm(e,t)}function $4(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function fn(e,t,n,i){return new $4(e,t,n,i)}function Ad(e){return e=e.prototype,!(!e||!e.isReactComponent)}function H4(e){if(typeof e=="function")return Ad(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Jf)return 11;if(e===ed)return 14}return 2}function zr(e,t){var n=e.alternate;return n===null?(n=fn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function eu(e,t,n,i,l,u){var a=2;if(i=e,typeof e=="function")Ad(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Fi:return ui(n.children,l,u,t);case qf:a=8,l|=8;break;case qc:return e=fn(12,n,t,l|2),e.elementType=qc,e.lanes=u,e;case Jc:return e=fn(13,n,t,l),e.elementType=Jc,e.lanes=u,e;case ef:return e=fn(19,n,t,l),e.elementType=ef,e.lanes=u,e;case fm:return $u(n,l,u,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case am:a=10;break e;case cm:a=9;break e;case Jf:a=11;break e;case ed:a=14;break e;case Sr:a=16,i=null;break e}throw Error(B(130,e==null?e:typeof e,""))}return t=fn(a,n,t,l),t.elementType=e,t.type=i,t.lanes=u,t}function ui(e,t,n,i){return e=fn(7,e,i,t),e.lanes=n,e}function $u(e,t,n,i){return e=fn(22,e,i,t),e.elementType=fm,e.lanes=n,e.stateNode={isHidden:!1},e}function $c(e,t,n){return e=fn(6,e,null,t),e.lanes=n,e}function Hc(e,t,n){return t=fn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function V4(e,t,n,i,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ec(0),this.expirationTimes=Ec(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ec(0),this.identifierPrefix=i,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function zd(e,t,n,i,l,u,a,f,h){return e=new V4(e,t,n,f,h),t===1?(t=1,u===!0&&(t|=8)):t=0,u=fn(3,null,null,t),e.current=u,u.stateNode=e,u.memoizedState={element:i,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},yd(u),e}function K4(e,t,n){var i=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o1)}catch(e){console.error(e)}}o1(),om.exports=qt;var l1=om.exports,s1,T0=l1;s1=T0.createRoot,T0.hydrateRoot;const I0="pushstate",M0="popstate",u1="beforeunload",a1=e=>(e.preventDefault(),e.returnValue=""),Z4=()=>{removeEventListener(u1,a1,{capture:!0})};function c1(e){let t=e.getLocation();const n=new Set;let i=[];const l=()=>{t=e.getLocation(),n.forEach(a=>a())},u=async(a,f)=>{var h;if(!((f==null?void 0:f.ignoreBlocker)??!1)&&typeof document<"u"&&i.length){for(const v of i)if(!await v()){(h=e.onBlocked)==null||h.call(e,l);return}}a()};return{get location(){return t},get length(){return e.getLength()},subscribers:n,subscribe:a=>(n.add(a),()=>{n.delete(a)}),push:(a,f,h)=>{f=N0(f),u(()=>{e.pushState(a,f),l()},h)},replace:(a,f,h)=>{f=N0(f),u(()=>{e.replaceState(a,f),l()},h)},go:(a,f)=>{u(()=>{e.go(a),l()},f)},back:a=>{u(()=>{e.back(),l()},a)},forward:a=>{u(()=>{e.forward(),l()},a)},createHref:a=>e.createHref(a),block:a=>(i.push(a),i.length===1&&addEventListener(u1,a1,{capture:!0}),()=>{i=i.filter(f=>f!==a),i.length||Z4()}),flush:()=>{var a;return(a=e.flush)==null?void 0:a.call(e)},destroy:()=>{var a;return(a=e.destroy)==null?void 0:a.call(e)},notify:l}}function N0(e){return e||(e={}),{...e,key:e3()}}function q4(e){const t=typeof document<"u"?window:void 0,n=t.history.pushState,i=t.history.replaceState,l=I=>I,u=()=>Pu(`${t.location.pathname}${t.location.search}${t.location.hash}`,t.history.state);let a=u(),f;const h=()=>a;let g,v;const y=()=>{g&&(R._ignoreSubscribers=!0,(g.isPush?t.history.pushState:t.history.replaceState)(g.state,"",g.href),R._ignoreSubscribers=!1,g=void 0,v=void 0,f=void 0)},x=(I,F,C)=>{const w=l(F);v||(f=a),a=Pu(F,C),g={href:w,state:C,isPush:(g==null?void 0:g.isPush)||I==="push"},v||(v=Promise.resolve().then(()=>y()))},L=()=>{a=u(),R.notify()},R=c1({getLocation:h,getLength:()=>t.history.length,pushState:(I,F)=>x("push",I,F),replaceState:(I,F)=>x("replace",I,F),back:()=>t.history.back(),forward:()=>t.history.forward(),go:I=>t.history.go(I),createHref:I=>l(I),flush:y,destroy:()=>{t.history.pushState=n,t.history.replaceState=i,t.removeEventListener(I0,L),t.removeEventListener(M0,L)},onBlocked:I=>{f&&a!==f&&(a=f,I())}});return t.addEventListener(I0,L),t.addEventListener(M0,L),t.history.pushState=function(...I){const F=n.apply(t.history,I);return R._ignoreSubscribers||L(),F},t.history.replaceState=function(...I){const F=i.apply(t.history,I);return R._ignoreSubscribers||L(),F},R}function J4(e={initialEntries:["/"]}){const t=e.initialEntries;let n=e.initialIndex??t.length-1;const i=t.map(()=>({}));return c1({getLocation:()=>Pu(t[n],i[n]),getLength:()=>t.length,pushState:(u,a)=>{n{i[n]=a,t[n]=u},back:()=>{n=Math.max(n-1,0)},forward:()=>{n=Math.min(n+1,t.length-1)},go:u=>{n=Math.min(Math.max(n+u,0),t.length-1)},createHref:u=>u})}function Pu(e,t){const n=e.indexOf("#"),i=e.indexOf("?");return{href:e,pathname:e.substring(0,n>0?i>0?Math.min(n,i):n:i>0?i:e.length),hash:n>-1?e.substring(n):"",search:i>-1?e.slice(i,n===-1?void 0:n):"",state:t||{}}}function e3(){return(Math.random()+1).toString(36).substring(7)}var t3="Invariant failed";function Mt(e,t){if(!e)throw new Error(t3)}const Vc=ee.createContext(null);function f1(){return typeof document>"u"?Vc:window.__TSR_ROUTER_CONTEXT__?window.__TSR_ROUTER_CONTEXT__:(window.__TSR_ROUTER_CONTEXT__=Vc,Vc)}function Wr(e){const t=ee.useContext(f1());return e==null||e.warn,t}var d1={exports:{}},h1={},p1={exports:{}},g1={};/** + * @license React + * use-sync-external-store-shim.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var ao=ee;function n3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var r3=typeof Object.is=="function"?Object.is:n3,i3=ao.useState,o3=ao.useEffect,l3=ao.useLayoutEffect,s3=ao.useDebugValue;function u3(e,t){var n=t(),i=i3({inst:{value:n,getSnapshot:t}}),l=i[0].inst,u=i[1];return l3(function(){l.value=n,l.getSnapshot=t,Kc(l)&&u({inst:l})},[e,n,t]),o3(function(){return Kc(l)&&u({inst:l}),e(function(){Kc(l)&&u({inst:l})})},[e]),s3(n),n}function Kc(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r3(e,n)}catch{return!0}}function a3(e,t){return t()}var c3=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?a3:u3;g1.useSyncExternalStore=ao.useSyncExternalStore!==void 0?ao.useSyncExternalStore:c3;p1.exports=g1;var f3=p1.exports;/** + * @license React + * use-sync-external-store-shim/with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var Qu=ee,d3=f3;function h3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var p3=typeof Object.is=="function"?Object.is:h3,g3=d3.useSyncExternalStore,m3=Qu.useRef,v3=Qu.useEffect,y3=Qu.useMemo,w3=Qu.useDebugValue;h1.useSyncExternalStoreWithSelector=function(e,t,n,i,l){var u=m3(null);if(u.current===null){var a={hasValue:!1,value:null};u.current=a}else a=u.current;u=y3(function(){function h(L){if(!g){if(g=!0,v=L,L=i(L),l!==void 0&&a.hasValue){var R=a.value;if(l(R,L))return y=R}return y=L}if(R=y,p3(v,L))return R;var I=i(L);return l!==void 0&&l(R,I)?R:(v=L,y=I)}var g=!1,v,y,x=n===void 0?null:n;return[function(){return h(t())},x===null?void 0:function(){return h(x())}]},[t,n,i,l]);var f=g3(e,u[0],u[1]);return v3(function(){a.hasValue=!0,a.value=f},[f]),w3(f),f};d1.exports=h1;var _3=d1.exports;class x3{constructor(t,n){this.listeners=new Set,this._batching=!1,this._flushing=0,this.subscribe=i=>{var l,u;this.listeners.add(i);const a=(u=(l=this.options)==null?void 0:l.onSubscribe)==null?void 0:u.call(l,i,this);return()=>{this.listeners.delete(i),a==null||a()}},this.setState=i=>{var l,u,a;const f=this.state;this.state=(l=this.options)!=null&&l.updateFn?this.options.updateFn(f)(i):i(f),(a=(u=this.options)==null?void 0:u.onUpdate)==null||a.call(u),this._flush()},this._flush=()=>{if(this._batching)return;const i=++this._flushing;this.listeners.forEach(l=>{this._flushing===i&&l()})},this.batch=i=>{if(this._batching)return i();this._batching=!0,i(),this._batching=!1,this._flush()},this.state=t,this.options=n}}function S3(e,t=n=>n){return _3.useSyncExternalStoreWithSelector(e.subscribe,()=>e.state,()=>e.state,t,C3)}function C3(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let i=0;i{t.substring(0,1)==="?"&&(t=t.substring(1));const n=k3(t);for(const i in n){const l=n[i];if(typeof l=="string")try{n[i]=e(l)}catch{}}return n}}function T3(e,t){function n(i){if(typeof i=="object"&&i!==null)try{return e(i)}catch{}else if(typeof i=="string"&&typeof t=="function")try{return t(i),e(i)}catch{}return i}return i=>{i={...i},Object.keys(i).forEach(u=>{const a=i[u];typeof a>"u"||a===void 0?delete i[u]:i[u]=n(a)});const l=E3(i).toString();return l?`?${l}`:""}}function sl(e){return e[e.length-1]}function I3(e){return typeof e=="function"}function Gi(e,t){return I3(e)?e(t):e}function ul(e,t){return t.reduce((n,i)=>(n[i]=e[i],n),{})}function Oi(e,t){if(e===t)return e;const n=t,i=z0(e)&&z0(n);if(i||co(e)&&co(n)){const l=i?e:Object.keys(e),u=l.length,a=i?n:Object.keys(n),f=a.length,h=i?[]:{};let g=0;for(let v=0;v"u")return!0;const n=t.prototype;return!(!A0(n)||!n.hasOwnProperty("isPrototypeOf"))}function A0(e){return Object.prototype.toString.call(e)==="[object Object]"}function z0(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function F0(e,t){let n=Object.keys(e);return t&&(n=n.filter(i=>e[i]!==void 0)),n}function eo(e,t,n){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(co(e)&&co(t)){const i=(n==null?void 0:n.ignoreUndefined)??!0,l=F0(e,i),u=F0(t,i);return!(n!=null&&n.partial)&&l.length!==u.length?!1:u.every(a=>eo(e[a],t[a],n))}return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length?!1:!e.some((i,l)=>!eo(i,t[l],n)):!1}const Zo=typeof window<"u"?ee.useLayoutEffect:ee.useEffect;function Ai(e){let t,n;const i=new Promise((l,u)=>{t=l,n=u});return i.status="pending",i.resolve=l=>{i.status="resolved",i.value=l,t(l),e==null||e(l)},i.reject=l=>{i.status="rejected",n(l)},i}function Gc(e){const t=ee.useRef({value:e,prev:null}),n=t.current.value;return e!==n&&(t.current={value:e,prev:n}),t.current.prev}function M3(e,t,n={},i={}){const l=ee.useRef(typeof IntersectionObserver=="function"),u=ee.useRef(null);return ee.useEffect(()=>{if(!(!e.current||!l.current||i.disabled))return u.current=new IntersectionObserver(([a])=>{t(a)},n),u.current.observe(e.current),()=>{var a;(a=u.current)==null||a.disconnect()}},[t,n,i.disabled,e]),u.current}function N3(e){const t=ee.useRef(null);return ee.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function tr(e){return Yu(e.filter(t=>t!==void 0).join("/"))}function Yu(e){return e.replace(/\/{2,}/g,"/")}function Bd(e){return e==="/"?e:e.replace(/^\/{1,}/,"")}function li(e){return e==="/"?e:e.replace(/\/{1,}$/,"")}function O3(e){return li(Bd(e))}function Lu(e,t){return e.endsWith("/")&&e!=="/"&&e!==`${t}/`?e.slice(0,-1):e}function A3(e,t,n){return Lu(e,n)===Lu(t,n)}function z3({basepath:e,base:t,to:n,trailingSlash:i="never",caseSensitive:l}){var u,a;t=Ru(e,t,l),n=Ru(e,n,l);let f=fo(t);const h=fo(n);f.length>1&&((u=sl(f))==null?void 0:u.value)==="/"&&f.pop(),h.forEach((v,y)=>{v.value==="/"?y?y===h.length-1&&f.push(v):f=[v]:v.value===".."?f.pop():v.value==="."||f.push(v)}),f.length>1&&(((a=sl(f))==null?void 0:a.value)==="/"?i==="never"&&f.pop():i==="always"&&f.push({type:"pathname",value:"/"}));const g=tr([e,...f.map(v=>v.value)]);return Yu(g)}function fo(e){if(!e)return[];e=Yu(e);const t=[];if(e.slice(0,1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),!e)return t;const n=e.split("/").filter(Boolean);return t.push(...n.map(i=>i==="$"||i==="*"?{type:"wildcard",value:i}:i.charAt(0)==="$"?{type:"param",value:i}:{type:"pathname",value:decodeURI(i)})),e.slice(-1)==="/"&&(e=e.substring(1),t.push({type:"pathname",value:"/"})),t}function Bs({path:e,params:t,leaveWildcards:n,leaveParams:i}){const l=fo(e),u={};for(const[a,f]of Object.entries(t)){const h=typeof f=="string";["*","_splat"].includes(a)?u[a]=h?encodeURI(f):f:u[a]=h?encodeURIComponent(f):f}return tr(l.map(a=>{if(a.type==="wildcard"){const f=u._splat;return n?`${a.value}${f??""}`:f}if(a.type==="param"){if(i){const f=u[a.value];return`${a.value}${f??""}`}return u[a.value.substring(1)]??"undefined"}return a.value}))}function Us(e,t,n){const i=F3(e,t,n);if(!(n.to&&!i))return i??{}}function Ru(e,t,n=!1){const i=n?e:e.toLowerCase(),l=n?t:t.toLowerCase();switch(!0){case i==="/":return t;case l===i:return"";case t.length{for(let h=0;h=l.length-1,x=h>=u.length-1;if(v){if(v.type==="wildcard"){const L=decodeURI(tr(l.slice(h).map(R=>R.value)));return a["*"]=L,a._splat=L,!0}if(v.type==="pathname"){if(v.value==="/"&&!(g!=null&&g.value))return!0;if(g){if(n.caseSensitive){if(v.value!==g.value)return!1}else if(v.value.toLowerCase()!==g.value.toLowerCase())return!1}}if(!g)return!1;if(v.type==="param"){if(g.value==="/")return!1;g.value.charAt(0)!=="$"&&(a[v.value.substring(1)]=decodeURIComponent(g.value))}}if(!y&&x)return a["**"]=tr(l.slice(h+1).map(L=>L.value)),!!n.fuzzy&&(v==null?void 0:v.value)!=="/"}return!0})()?a:void 0}function ni(e){return!!(e!=null&&e.isRedirect)}function Qc(e){return!!(e!=null&&e.isRedirect)&&e.href}function Ud(e){const t=e.errorComponent??Xu;return T.jsx(D3,{getResetKey:e.getResetKey,onCatch:e.onCatch,children:({error:n,reset:i})=>n?ee.createElement(t,{error:n,reset:i}):e.children})}class D3 extends ee.Component{constructor(){super(...arguments),this.state={error:null}}static getDerivedStateFromProps(t){return{resetKey:t.getResetKey()}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidUpdate(t,n){n.error&&n.resetKey!==this.state.resetKey&&this.reset()}componentDidCatch(t,n){this.props.onCatch&&this.props.onCatch(t,n)}render(){return this.props.children({error:this.state.resetKey!==this.props.getResetKey()?null:this.state.error,reset:()=>{this.reset()}})}}function Xu({error:e}){const[t,n]=ee.useState(!1);return T.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[T.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[T.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),T.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>n(i=>!i),children:t?"Hide Error":"Show Error"})]}),T.jsx("div",{style:{height:".25rem"}}),t?T.jsx("div",{children:T.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:e.message?T.jsx("code",{children:e.message}):null})}):null]})}function Et(e){const t=Wr({warn:(e==null?void 0:e.router)===void 0});return S3(((e==null?void 0:e.router)||t).__store,e==null?void 0:e.select)}function j3(e={}){if(e.isNotFound=!0,e.throw)throw e;return e}function En(e){return!!(e!=null&&e.isNotFound)}function B3(e){const t=Et({select:n=>`not-found-${n.location.pathname}-${n.status}`});return T.jsx(Ud,{getResetKey:()=>t,onCatch:(n,i)=>{var l;if(En(n))(l=e.onCatch)==null||l.call(e,n,i);else throw n},errorComponent:({error:n})=>{var i;if(En(n))return(i=e.fallback)==null?void 0:i.call(e,n);throw n},children:e.children})}function U3(){return T.jsx("p",{children:"Not Found"})}const b3={stringify:e=>JSON.stringify(e,function(n,i){const l=this[n],u=D0.find(a=>a.stringifyCondition(l));return u?u.stringify(l):i}),parse:e=>JSON.parse(e,function(n,i){const l=this[n],u=D0.find(a=>a.parseCondition(l));return u?u.parse(l):i})},D0=[{stringifyCondition:e=>e instanceof Date,stringify:e=>({$date:e.toISOString()}),parseCondition:e=>co(e)&&e.$date,parse:e=>new Date(e.$date)},{stringifyCondition:e=>e===void 0,stringify:()=>({$undefined:""}),parseCondition:e=>co(e)&&e.$undefined==="",parse:()=>{}}],m1=["component","errorComponent","pendingComponent","notFoundComponent"];function W3(e){var t;for(const n of m1)if((t=e.options[n])!=null&&t.preload)return!0;return!1}function j0(e,t){if(e==null)return{};if("~validate"in e){const n=e["~validate"]({value:t});if("value"in n)return n.value;throw new v1(JSON.stringify(n.issues,void 0,2))}return"parse"in e?e.parse(t):typeof e=="function"?e(t):{}}function $3(e){return new H3(e)}class H3{constructor(t){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this.resetNextScroll=!0,this.shouldViewTransition=void 0,this.subscribers=new Set,this.startReactTransition=n=>n(),this.update=n=>{n.notFoundRoute&&console.warn("The notFoundRoute API is deprecated and will be removed in the next major version. See https://tanstack.com/router/v1/docs/guide/not-found-errors#migrating-from-notfoundroute for more info.");const i=this.options;this.options={...this.options,...n},this.isServer=this.options.isServer??typeof document>"u",(!this.basepath||n.basepath&&n.basepath!==i.basepath)&&(n.basepath===void 0||n.basepath===""||n.basepath==="/"?this.basepath="/":this.basepath=`/${O3(n.basepath)}`),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.history=this.options.history??(this.isServer?J4({initialEntries:[this.basepath||"/"]}):q4()),this.latestLocation=this.parseLocation()),this.options.routeTree!==this.routeTree&&(this.routeTree=this.options.routeTree,this.buildRouteTree()),this.__store||(this.__store=new x3(K3(this.latestLocation),{onUpdate:()=>{this.__store.state={...this.state,cachedMatches:this.state.cachedMatches.filter(l=>!["redirected"].includes(l.status))}}}))},this.buildRouteTree=()=>{this.routesById={},this.routesByPath={};const n=this.options.notFoundRoute;n&&(n.init({originalIndex:99999999999,defaultSsr:this.options.defaultSsr}),this.routesById[n.id]=n);const i=a=>{a.forEach((f,h)=>{f.init({originalIndex:h,defaultSsr:this.options.defaultSsr});const g=this.routesById[f.id];if(Mt(!g,`Duplicate routes found with id: ${String(f.id)}`),this.routesById[f.id]=f,!f.isRoot&&f.path){const y=li(f.fullPath);(!this.routesByPath[y]||f.fullPath.endsWith("/"))&&(this.routesByPath[y]=f)}const v=f.children;v!=null&&v.length&&i(v)})};i([this.routeTree]);const l=[];Object.values(this.routesById).forEach((a,f)=>{var h;if(a.isRoot||!a.path)return;const g=Bd(a.fullPath),v=fo(g);for(;v.length>1&&((h=v[0])==null?void 0:h.value)==="/";)v.shift();const y=v.map(x=>x.value==="/"?.75:x.type==="param"?.5:x.type==="wildcard"?.25:1);l.push({child:a,trimmed:g,parsed:v,index:f,scores:y})}),this.flatRoutes=l.sort((a,f)=>{const h=Math.min(a.scores.length,f.scores.length);for(let g=0;gf.parsed[g].value?1:-1;return a.index-f.index}).map((a,f)=>(a.child.rank=f,a.child))},this.subscribe=(n,i)=>{const l={eventType:n,fn:i};return this.subscribers.add(l),()=>{this.subscribers.delete(l)}},this.emit=n=>{this.subscribers.forEach(i=>{i.eventType===n.type&&i.fn(n)})},this.parseLocation=n=>{const i=({pathname:f,search:h,hash:g,state:v})=>{const y=this.options.parseSearch(h),x=this.options.stringifySearch(y);return{pathname:f,searchStr:x,search:Oi(n==null?void 0:n.search,y),hash:g.split("#").reverse()[0]??"",href:`${f}${x}${g}`,state:Oi(n==null?void 0:n.state,v)}},l=i(this.history.location),{__tempLocation:u,__tempKey:a}=l.state;if(u&&(!a||a===this.tempLocationKey)){const f=i(u);return f.state.key=l.state.key,delete f.state.__tempLocation,{...f,maskedLocation:l}}return l},this.resolvePathWithBase=(n,i)=>z3({basepath:this.basepath,base:n,to:Yu(i),trailingSlash:this.options.trailingSlash,caseSensitive:this.options.caseSensitive}),this.getMatchedRoutes=(n,i)=>{let l={};const u=li(n.pathname),a=v=>Us(this.basepath,u,{to:v.fullPath,caseSensitive:v.options.caseSensitive??this.options.caseSensitive,fuzzy:!0});let f=(i==null?void 0:i.to)!==void 0?this.routesByPath[i.to]:void 0;f?l=a(f):f=this.flatRoutes.find(v=>{const y=a(v);return y?(l=y,!0):!1});let h=f||this.routesById[Qt];const g=[h];for(;h.parentRoute;)h=h.parentRoute,g.unshift(h);return{matchedRoutes:g,routeParams:l,foundRoute:f}},this.cancelMatch=n=>{const i=this.getMatch(n);i&&(i.abortController.abort(),clearTimeout(i.pendingTimeout))},this.cancelMatches=()=>{var n;(n=this.state.pendingMatches)==null||n.forEach(i=>{this.cancelMatch(i.id)})},this.buildLocation=n=>{const i=(u={},a)=>{var f,h,g,v,y,x;const L=u._fromLocation?this.matchRoutes(u._fromLocation,{_buildLocation:!0}):this.state.matches,R=u.from!=null?L.find(q=>Us(this.basepath,li(q.pathname),{to:u.from,caseSensitive:!1,fuzzy:!1})):void 0,I=(R==null?void 0:R.pathname)||this.latestLocation.pathname;Mt(u.from==null||R!=null,"Could not find match for from: "+u.from);const F=(f=this.state.pendingMatches)!=null&&f.length?(h=sl(this.state.pendingMatches))==null?void 0:h.search:((g=sl(L))==null?void 0:g.search)||this.latestLocation.search,C=a==null?void 0:a.matchedRoutes.filter(q=>L.find(Z=>Z.routeId===q.id));let w;if(u.to)w=this.resolvePathWithBase(I,`${u.to}`);else{const q=this.routesById[(v=C==null?void 0:C.find(Z=>{const Ee=Bs({path:Z.fullPath,params:(a==null?void 0:a.routeParams)??{}});return tr([this.basepath,Ee])===I}))==null?void 0:v.id];w=this.resolvePathWithBase(I,(q==null?void 0:q.to)??I)}const S={...(y=sl(L))==null?void 0:y.params};let M=(u.params??!0)===!0?S:{...S,...Gi(u.params,S)};Object.keys(M).length>0&&(a==null||a.matchedRoutes.map(q=>{var Z;return((Z=q.options.params)==null?void 0:Z.stringify)??q.options.stringifyParams}).filter(Boolean).forEach(q=>{M={...M,...q(M)}})),w=Bs({path:w,params:M??{},leaveWildcards:!1,leaveParams:n.leaveParams});let D=F;if(n._includeValidateSearch){let q=(x=this.options.search)!=null&&x.strict?{}:D;a==null||a.matchedRoutes.forEach(Z=>{try{Z.options.validateSearch&&(q={...q,...j0(Z.options.validateSearch,{...q,...D})??{}})}catch{}}),D=q}D=(q=>{const Z=(a==null?void 0:a.matchedRoutes.reduce((Pe,ve)=>{var ne;let b=[];return"search"in ve.options?(ne=ve.options.search)!=null&&ne.middlewares&&(b=ve.options.search.middlewares):(ve.options.preSearchFilters||ve.options.postSearchFilters)&&(b=[({search:K,next:V})=>{let ie=K;"preSearchFilters"in ve.options&&ve.options.preSearchFilters&&(ie=ve.options.preSearchFilters.reduce((be,Le)=>Le(be),K));const Xe=V(ie);return"postSearchFilters"in ve.options&&ve.options.postSearchFilters?ve.options.postSearchFilters.reduce((be,Le)=>Le(be),Xe):Xe}]),Pe.concat(b)},[]))??[],Ee=({search:Pe})=>u.search?u.search===!0?Pe:Gi(u.search,Pe):{};Z.push(Ee);const Ae=(Pe,ve)=>{if(Pe>=Z.length)return ve;const ne=Z[Pe];return ne({search:ve,next:X=>Ae(Pe+1,X)})};return Ae(0,q)})(D),D=Oi(F,D);const W=this.options.stringifySearch(D),U=u.hash===!0?this.latestLocation.hash:u.hash?Gi(u.hash,this.latestLocation.hash):void 0,G=U?`#${U}`:"";let te=u.state===!0?this.latestLocation.state:u.state?Gi(u.state,this.latestLocation.state):{};return te=Oi(this.latestLocation.state,te),{pathname:w,search:D,searchStr:W,state:te,hash:U??"",href:`${w}${W}${G}`,unmaskOnReload:u.unmaskOnReload}},l=(u={},a)=>{var f;const h=i(u);let g=a?i(a):void 0;if(!g){let x={};const L=(f=this.options.routeMasks)==null?void 0:f.find(R=>{const I=Us(this.basepath,h.pathname,{to:R.from,caseSensitive:!1,fuzzy:!1});return I?(x=I,!0):!1});if(L){const{from:R,...I}=L;a={...ul(n,["from"]),...I,params:x},g=i(a)}}const v=this.getMatchedRoutes(h,u),y=i(u,v);if(g){const x=this.getMatchedRoutes(g,a),L=i(a,x);y.maskedLocation=L}return y};return n.mask?l(n,{...ul(n,["from"]),...n.mask}):l(n)},this.commitLocation=({viewTransition:n,ignoreBlocker:i,...l})=>{const u=()=>{l.state.key=this.latestLocation.state.key;const h=eo(l.state,this.latestLocation.state);return delete l.state.key,h},a=this.latestLocation.href===l.href,f=this.commitLocationPromise;if(this.commitLocationPromise=Ai(()=>{f==null||f.resolve()}),a&&u())this.load();else{let{maskedLocation:h,...g}=l;h&&(g={...h,state:{...h.state,__tempKey:void 0,__tempLocation:{...g,search:g.searchStr,state:{...g.state,__tempKey:void 0,__tempLocation:void 0,key:void 0}}}},(g.unmaskOnReload??this.options.unmaskOnReload??!1)&&(g.state.__tempKey=this.tempLocationKey)),this.shouldViewTransition=n,this.history[l.replace?"replace":"push"](g.href,g.state,{ignoreBlocker:i})}return this.resetNextScroll=l.resetScroll??!0,this.history.subscribers.size||this.load(),this.commitLocationPromise},this.buildAndCommitLocation=({replace:n,resetScroll:i,viewTransition:l,ignoreBlocker:u,...a}={})=>{const f=a.href;if(f){const g=Pu(f,{});a.to=g.pathname,a.search=this.options.parseSearch(g.search),a.hash=g.hash.slice(1)}const h=this.buildLocation({...a,_includeValidateSearch:!0});return this.commitLocation({...h,viewTransition:l,replace:n,resetScroll:i,ignoreBlocker:u})},this.navigate=({to:n,...i})=>{const l=String(n);let u;try{new URL(`${l}`),u=!0}catch{}return Mt(!u),this.buildAndCommitLocation({...i,to:n})},this.load=async()=>{this.latestLocation=this.parseLocation(this.latestLocation);let n,i,l;for(l=new Promise(u=>{this.startReactTransition(async()=>{var a;try{const f=this.latestLocation,h=this.state.resolvedLocation,g=h.href!==f.href;this.cancelMatches();let v;this.__store.batch(()=>{v=this.matchRoutes(f),this.__store.setState(y=>({...y,status:"pending",isLoading:!0,location:f,pendingMatches:v,cachedMatches:y.cachedMatches.filter(x=>!v.find(L=>L.id===x.id))}))}),this.state.redirect||this.emit({type:"onBeforeNavigate",fromLocation:h,toLocation:f,pathChanged:g}),this.emit({type:"onBeforeLoad",fromLocation:h,toLocation:f,pathChanged:g}),await this.loadMatches({matches:v,location:f,onReady:async()=>{this.startViewTransition(async()=>{let y,x,L;this.__store.batch(()=>{this.__store.setState(R=>{const I=R.matches,F=R.pendingMatches||R.matches;return y=I.filter(C=>!F.find(w=>w.id===C.id)),x=F.filter(C=>!I.find(w=>w.id===C.id)),L=I.filter(C=>F.find(w=>w.id===C.id)),{...R,isLoading:!1,loadedAt:Date.now(),matches:F,pendingMatches:void 0,cachedMatches:[...R.cachedMatches,...y.filter(C=>C.status!=="error")]}}),this.clearExpiredCache()}),[[y,"onLeave"],[x,"onEnter"],[L,"onStay"]].forEach(([R,I])=>{R.forEach(F=>{var C,w;(w=(C=this.looseRoutesById[F.routeId].options)[I])==null||w.call(C,F)})})})}})}catch(f){Qc(f)?(n=f,this.isServer||this.navigate({...f,replace:!0,ignoreBlocker:!0})):En(f)&&(i=f),this.__store.setState(h=>({...h,statusCode:n?n.statusCode:i?404:h.matches.some(g=>g.status==="error")?500:200,redirect:n}))}this.latestLoadPromise===l&&((a=this.commitLocationPromise)==null||a.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),u()})}),this.latestLoadPromise=l,await l;this.latestLoadPromise&&l!==this.latestLoadPromise;)await this.latestLoadPromise},this.startViewTransition=n=>{const i=this.shouldViewTransition??this.options.defaultViewTransition;delete this.shouldViewTransition,i&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"?document.startViewTransition(n):n()},this.updateMatch=(n,i)=>{var l;let u;const a=(l=this.state.pendingMatches)==null?void 0:l.find(g=>g.id===n),f=this.state.matches.find(g=>g.id===n),h=a?"pendingMatches":f?"matches":"cachedMatches";return this.__store.setState(g=>{var v;return{...g,[h]:(v=g[h])==null?void 0:v.map(y=>y.id===n?u=i(y):y)}}),u},this.getMatch=n=>[...this.state.cachedMatches,...this.state.pendingMatches??[],...this.state.matches].find(i=>i.id===n),this.loadMatches=async({location:n,matches:i,preload:l,onReady:u,updateMatch:a=this.updateMatch})=>{let f,h=!1;const g=async()=>{h||(h=!0,await(u==null?void 0:u()))};!this.isServer&&!this.state.matches.length&&g();const v=(y,x)=>{var L,R,I;if(Qc(x))throw x;if(ni(x)||En(x)){if(a(y.id,F=>({...F,status:ni(x)?"redirected":En(x)?"notFound":"error",isFetching:!1,error:x,beforeLoadPromise:void 0,loaderPromise:void 0})),x.routeId||(x.routeId=y.routeId),(L=y.beforeLoadPromise)==null||L.resolve(),(R=y.loaderPromise)==null||R.resolve(),(I=y.loadPromise)==null||I.resolve(),ni(x))throw h=!0,x=this.resolveRedirect({...x,_fromLocation:n}),x;if(En(x))throw this._handleNotFound(i,x,{updateMatch:a}),x}};try{await new Promise((y,x)=>{(async()=>{var L,R,I;try{const F=(S,M,D)=>{var $,W;const{id:U,routeId:G}=i[S],te=this.looseRoutesById[G];if(M instanceof Promise)throw M;M.routerCode=D,f=f??S,v(this.getMatch(U),M);try{(W=($=te.options).onError)==null||W.call($,M)}catch(q){M=q,v(this.getMatch(U),M)}a(U,q=>{var Z,Ee;return(Z=q.beforeLoadPromise)==null||Z.resolve(),(Ee=q.loadPromise)==null||Ee.resolve(),{...q,error:M,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController,beforeLoadPromise:void 0}})};for(const[S,{id:M,routeId:D}]of i.entries()){const $=this.getMatch(M),W=(L=i[S-1])==null?void 0:L.id,U=this.looseRoutesById[D],G=U.options.pendingMs??this.options.defaultPendingMs,te=!!(u&&!this.isServer&&!l&&(U.options.loader||U.options.beforeLoad)&&typeof G=="number"&&G!==1/0&&(U.options.pendingComponent??this.options.defaultPendingComponent));if($.beforeLoadPromise||$.loaderPromise)te&&setTimeout(()=>{try{g()}catch{}},G),await $.beforeLoadPromise;else{try{a(M,ie=>({...ie,loadPromise:Ai(()=>{var Xe;(Xe=ie.loadPromise)==null||Xe.resolve()}),beforeLoadPromise:Ai()}));const q=new AbortController;let Z;te&&(Z=setTimeout(()=>{try{g()}catch{}},G));const{paramsError:Ee,searchError:Ae}=this.getMatch(M);Ee&&F(S,Ee,"PARSE_PARAMS"),Ae&&F(S,Ae,"VALIDATE_SEARCH");const Pe=()=>W?this.getMatch(W).context:this.options.context??{};a(M,ie=>({...ie,isFetching:"beforeLoad",fetchCount:ie.fetchCount+1,abortController:q,pendingTimeout:Z,context:{...Pe(),...ie.__routeContext,...ie.__beforeLoadContext}}));const{search:ve,params:ne,context:b,cause:X}=this.getMatch(M),K={search:ve,abortController:q,params:ne,preload:!!l,context:b,location:n,navigate:ie=>this.navigate({...ie,_fromLocation:n}),buildLocation:this.buildLocation,cause:l?"preload":X,matches:i};let V=await((I=(R=U.options).beforeLoad)==null?void 0:I.call(R,K))??{};this.serializeLoaderData&&(V=this.serializeLoaderData("__beforeLoadContext",V,{router:this,match:this.getMatch(M)})),(ni(V)||En(V))&&F(S,V,"BEFORE_LOAD"),a(M,ie=>({...ie,__beforeLoadContext:V,context:{...Pe(),...ie.__routeContext,...V},abortController:q}))}catch(q){F(S,q,"BEFORE_LOAD")}a(M,q=>{var Z;return(Z=q.beforeLoadPromise)==null||Z.resolve(),{...q,beforeLoadPromise:void 0,isFetching:!1}})}}const C=i.slice(0,f),w=[];C.forEach(({id:S,routeId:M},D)=>{w.push((async()=>{const{loaderPromise:$}=this.getMatch(S);let W=!1;if($)await $;else{const U=w[D-1],G=this.looseRoutesById[M],te=()=>{const{params:K,loaderDeps:V,abortController:ie,context:Xe,cause:be}=this.getMatch(S);return{params:K,deps:V,preload:!!l,parentMatchPromise:U,abortController:ie,context:Xe,location:n,navigate:Le=>this.navigate({...Le,_fromLocation:n}),cause:l?"preload":be,route:G}},q=Date.now()-this.getMatch(S).updatedAt,Z=l?G.options.preloadStaleTime??this.options.defaultPreloadStaleTime??3e4:G.options.staleTime??this.options.defaultStaleTime??0,Ee=G.options.shouldReload,Ae=typeof Ee=="function"?Ee(te()):Ee;a(S,K=>({...K,loaderPromise:Ai(),preload:!!l&&!this.state.matches.find(V=>V.id===S)}));const Pe=async()=>{var K,V,ie,Xe,be,Le,ot,gn;try{const jt=async()=>{const He=this.getMatch(S);He.minPendingPromise&&await He.minPendingPromise};try{G._lazyPromise===void 0&&(G.lazyFn?G._lazyPromise=G.lazyFn().then(tt=>{const{id:mn,...lt}=tt.options;Object.assign(G.options,lt)}):G._lazyPromise=Promise.resolve()),G._componentsPromise===void 0&&(G._componentsPromise=G._lazyPromise.then(()=>Promise.all(m1.map(async tt=>{const mn=G.options[tt];mn!=null&&mn.preload&&await mn.preload()})))),a(S,tt=>({...tt,isFetching:"loader"}));let He=await((V=(K=G.options).loader)==null?void 0:V.call(K,te()));this.serializeLoaderData&&(He=this.serializeLoaderData("loaderData",He,{router:this,match:this.getMatch(S)})),v(this.getMatch(S),He),await G._lazyPromise,await jt();const sr=(Xe=(ie=G.options).meta)==null?void 0:Xe.call(ie,{matches:i,match:this.getMatch(S),params:this.getMatch(S).params,loaderData:He}),Bt=(Le=(be=G.options).headers)==null?void 0:Le.call(be,{loaderData:He});a(S,tt=>({...tt,error:void 0,status:"success",isFetching:!1,updatedAt:Date.now(),loaderData:He,meta:sr,headers:Bt}))}catch(He){let sr=He;await jt(),v(this.getMatch(S),He);try{(gn=(ot=G.options).onError)==null||gn.call(ot,He)}catch(Bt){sr=Bt,v(this.getMatch(S),Bt)}a(S,Bt=>({...Bt,error:sr,status:"error",isFetching:!1}))}await G._componentsPromise}catch(jt){v(this.getMatch(S),jt)}},{status:ve,invalid:ne}=this.getMatch(S);W=ve==="success"&&(ne||(Ae??q>Z)),l&&G.options.preload===!1||(W?(async()=>{try{await Pe()}catch(K){Qc(K)&&await this.navigate(K)}})():ve!=="success"&&await Pe());const{loaderPromise:b,loadPromise:X}=this.getMatch(S);b==null||b.resolve(),X==null||X.resolve()}return a(S,U=>({...U,isFetching:W?U.isFetching:!1,loaderPromise:void 0,invalid:!1})),this.getMatch(S)})())}),await Promise.all(w),y()}catch(F){x(F)}})()}),await g()}catch(y){if(ni(y)||En(y))throw En(y)&&!l&&await g(),y}return i},this.invalidate=n=>{const i=l=>{var u;return((u=n==null?void 0:n.filter)==null?void 0:u.call(n,l))??!0?{...l,invalid:!0,...l.status==="error"?{status:"pending",error:void 0}:{}}:l};return this.__store.setState(l=>{var u;return{...l,matches:l.matches.map(i),cachedMatches:l.cachedMatches.map(i),pendingMatches:(u=l.pendingMatches)==null?void 0:u.map(i)}}),this.load()},this.resolveRedirect=n=>{const i=n;return i.href||(i.href=this.buildLocation(i).href),i},this.clearCache=n=>{const i=n==null?void 0:n.filter;i!==void 0?this.__store.setState(l=>({...l,cachedMatches:l.cachedMatches.filter(u=>!i(u))})):this.__store.setState(l=>({...l,cachedMatches:[]}))},this.clearExpiredCache=()=>{const n=i=>{const l=this.looseRoutesById[i.routeId];if(!l.options.loader)return!0;const u=(i.preload?l.options.preloadGcTime??this.options.defaultPreloadGcTime:l.options.gcTime??this.options.defaultGcTime)??5*60*1e3;return!(i.status!=="error"&&Date.now()-i.updatedAt{const i=this.buildLocation(n);let l=this.matchRoutes(i,{throwOnError:!0,preload:!0,dest:n});const u=Object.fromEntries([...this.state.matches,...this.state.pendingMatches??[],...this.state.cachedMatches].map(f=>[f.id,!0]));this.__store.batch(()=>{l.forEach(f=>{u[f.id]||this.__store.setState(h=>({...h,cachedMatches:[...h.cachedMatches,f]}))})});const a=new Set([...this.state.matches,...this.state.pendingMatches??[]].map(f=>f.id));try{return l=await this.loadMatches({matches:l,location:i,preload:!0,updateMatch:(f,h)=>{a.has(f)?l=l.map(g=>g.id===f?h(g):g):this.updateMatch(f,h)}}),l}catch(f){if(ni(f))return await this.preloadRoute({...f,_fromLocation:i});console.error(f);return}},this.matchRoute=(n,i)=>{const l={...n,to:n.to?this.resolvePathWithBase(n.from||"",n.to):void 0,params:n.params||{},leaveParams:!0},u=this.buildLocation(l);if(i!=null&&i.pending&&this.state.status!=="pending")return!1;const f=((i==null?void 0:i.pending)===void 0?!this.state.isLoading:i.pending)?this.latestLocation:this.state.resolvedLocation,h=Us(this.basepath,f.pathname,{...i,to:u.pathname});return!h||n.params&&!eo(h,n.params,{partial:!0})?!1:h&&((i==null?void 0:i.includeSearch)??!0)?eo(f.search,u.search,{partial:!0})?h:!1:h},this.dehydrate=()=>{var n;const i=((n=this.options.errorSerializer)==null?void 0:n.serialize)??G3;return{state:{dehydratedMatches:this.state.matches.map(l=>({...ul(l,["id","status","updatedAt"]),error:l.error?{data:i(l.error),__isServerError:!0}:void 0}))},manifest:this.manifest}},this.hydrate=()=>{var n,i,l;let u;typeof document<"u"&&(u=this.options.transformer.parse((n=window.__TSR__)==null?void 0:n.dehydrated)),Mt(u),this.dehydratedData=u.payload,(l=(i=this.options).hydrate)==null||l.call(i,u.payload);const a=u.router.state,f=this.matchRoutes(this.state.location).map(h=>{const g=a.dehydratedMatches.find(v=>v.id===h.id);return Mt(g,`Could not find a client-side match for dehydrated match with id: ${h.id}!`),{...h,...g}});this.__store.setState(h=>({...h,matches:f})),this.manifest=u.router.manifest},this.injectedHtml=[],this.injectHtml=n=>{const i=()=>(this.injectedHtml=this.injectedHtml.filter(l=>l!==i),n);this.injectedHtml.push(i)},this.streamedKeys=new Set,this.getStreamedValue=n=>{var i;if(this.isServer)return;const l=(i=window.__TSR__)==null?void 0:i.streamedValues[n];if(l)return l.parsed||(l.parsed=this.options.transformer.parse(l.value)),l.parsed},this.streamValue=(n,i)=>{var l;this.streamedKeys.has(n),this.streamedKeys.add(n);const u=`__TSR__.streamedValues['${n}'] = { value: ${(l=this.serializer)==null?void 0:l.call(this,this.options.transformer.stringify(i))}}`;this.injectHtml(` +