function vv(e,n){for(var a=0;as[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const d of l.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function a(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(o){if(o.ep)return;o.ep=!0;const l=a(o);fetch(o.href,l)}})();function _g(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lu={exports:{}},bi={},Au={exports:{}},et={};/** * @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 p0;function bv(){if(p0)return et;p0=1;var e=Symbol.for("react.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),d=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),h=Symbol.iterator;function w(T){return T===null||typeof T!="object"?null:(T=h&&T[h]||T["@@iterator"],typeof T=="function"?T:null)}var k={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,E={};function C(T,A,ee){this.props=T,this.context=A,this.refs=E,this.updater=ee||k}C.prototype.isReactComponent={},C.prototype.setState=function(T,A){if(typeof T!="object"&&typeof T!="function"&&T!=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,T,A,"setState")},C.prototype.forceUpdate=function(T){this.updater.enqueueForceUpdate(this,T,"forceUpdate")};function I(){}I.prototype=C.prototype;function M(T,A,ee){this.props=T,this.context=A,this.refs=E,this.updater=ee||k}var _=M.prototype=new I;_.constructor=M,j(_,C.prototype),_.isPureReactComponent=!0;var V=Array.isArray,H=Object.prototype.hasOwnProperty,re={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function b(T,A,ee){var ie,oe={},ae=null,ue=null;if(A!=null)for(ie in A.ref!==void 0&&(ue=A.ref),A.key!==void 0&&(ae=""+A.key),A)H.call(A,ie)&&!O.hasOwnProperty(ie)&&(oe[ie]=A[ie]);var ye=arguments.length-2;if(ye===1)oe.children=ee;else if(1>>1,A=F[T];if(0>>1;To(oe,W))aeo(ue,oe)?(F[T]=ue,F[ae]=W,T=ae):(F[T]=oe,F[ie]=W,T=ie);else if(aeo(ue,W))F[T]=ue,F[ae]=W,T=ae;else break e}}return U}function o(F,U){var W=F.sortIndex-U.sortIndex;return W!==0?W:F.id-U.id}if(typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var g=[],m=[],x=1,h=null,w=3,k=!1,j=!1,E=!1,C=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,M=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function _(F){for(var U=a(m);U!==null;){if(U.callback===null)s(m);else if(U.startTime<=F)s(m),U.sortIndex=U.expirationTime,n(g,U);else break;U=a(m)}}function V(F){if(E=!1,_(F),!j)if(a(g)!==null)j=!0,q(H);else{var U=a(m);U!==null&&P(V,U.startTime-F)}}function H(F,U){j=!1,E&&(E=!1,I(b),b=-1),k=!0;var W=w;try{for(_(U),h=a(g);h!==null&&(!(h.expirationTime>U)||F&&!G());){var T=h.callback;if(typeof T=="function"){h.callback=null,w=h.priorityLevel;var A=T(h.expirationTime<=U);U=e.unstable_now(),typeof A=="function"?h.callback=A:h===a(g)&&s(g),_(U)}else s(g);h=a(g)}if(h!==null)var ee=!0;else{var ie=a(m);ie!==null&&P(V,ie.startTime-U),ee=!1}return ee}finally{h=null,w=W,k=!1}}var re=!1,O=null,b=-1,R=5,N=-1;function G(){return!(e.unstable_now()-NF||125T?(F.sortIndex=W,n(m,F),a(g)===null&&F===a(m)&&(E?(I(b),b=-1):E=!0,P(V,W-T))):(F.sortIndex=A,n(g,F),j||k||(j=!0,q(H))),F},e.unstable_shouldYield=G,e.unstable_wrapCallback=function(F){var U=w;return function(){var W=w;w=U;try{return F.apply(this,arguments)}finally{w=W}}}})(zu)),zu}var v0;function Cv(){return v0||(v0=1,Bu.exports=Sv()),Bu.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 b0;function jv(){if(b0)return Tn;b0=1;var e=Ul(),n=Cv();function a(t){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+t,i=1;i"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),g=Object.prototype.hasOwnProperty,m=/^[: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]*$/,x={},h={};function w(t){return g.call(h,t)?!0:g.call(x,t)?!1:m.test(t)?h[t]=!0:(x[t]=!0,!1)}function k(t,r,i,c){if(i!==null&&i.type===0)return!1;switch(typeof r){case"function":case"symbol":return!0;case"boolean":return c?!1:i!==null?!i.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function j(t,r,i,c){if(r===null||typeof r>"u"||k(t,r,i,c))return!0;if(c)return!1;if(i!==null)switch(i.type){case 3:return!r;case 4:return r===!1;case 5:return isNaN(r);case 6:return isNaN(r)||1>r}return!1}function E(t,r,i,c,p,y,S){this.acceptsBooleans=r===2||r===3||r===4,this.attributeName=c,this.attributeNamespace=p,this.mustUseProperty=i,this.propertyName=t,this.type=r,this.sanitizeURL=y,this.removeEmptyString=S}var C={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){C[t]=new E(t,0,!1,t,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var r=t[0];C[r]=new E(r,1,!1,t[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){C[t]=new E(t,2,!1,t.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){C[t]=new E(t,2,!1,t,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(t){C[t]=new E(t,3,!1,t.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(t){C[t]=new E(t,3,!0,t,null,!1,!1)}),["capture","download"].forEach(function(t){C[t]=new E(t,4,!1,t,null,!1,!1)}),["cols","rows","size","span"].forEach(function(t){C[t]=new E(t,6,!1,t,null,!1,!1)}),["rowSpan","start"].forEach(function(t){C[t]=new E(t,5,!1,t.toLowerCase(),null,!1,!1)});var I=/[\-:]([a-z])/g;function M(t){return t[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(t){var r=t.replace(I,M);C[r]=new E(r,1,!1,t,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var r=t.replace(I,M);C[r]=new E(r,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(t){var r=t.replace(I,M);C[r]=new E(r,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(t){C[t]=new E(t,1,!1,t.toLowerCase(),null,!1,!1)}),C.xlinkHref=new E("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(t){C[t]=new E(t,1,!1,t.toLowerCase(),null,!0,!0)});function _(t,r,i,c){var p=C.hasOwnProperty(r)?C[r]:null;(p!==null?p.type!==0:c||!(2D||p[S]!==y[D]){var B=` `+p[S].replace(" at new "," at ");return t.displayName&&B.includes("")&&(B=B.replace("",t.displayName)),B}while(1<=S&&0<=D);break}}}finally{ee=!1,Error.prepareStackTrace=i}return(t=t?t.displayName||t.name:"")?A(t):""}function oe(t){switch(t.tag){case 5:return A(t.type);case 16:return A("Lazy");case 13:return A("Suspense");case 19:return A("SuspenseList");case 0:case 2:case 15:return t=ie(t.type,!1),t;case 11:return t=ie(t.type.render,!1),t;case 1:return t=ie(t.type,!0),t;default:return""}}function ae(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case O:return"Fragment";case re:return"Portal";case R:return"Profiler";case b:return"StrictMode";case X:return"Suspense";case K:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case G:return(t.displayName||"Context")+".Consumer";case N:return(t._context.displayName||"Context")+".Provider";case Y:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case te:return r=t.displayName||null,r!==null?r:ae(t.type)||"Memo";case q:r=t._payload,t=t._init;try{return ae(t(r))}catch{}}return null}function ue(t){var r=t.type;switch(t.tag){case 24:return"Cache";case 9:return(r.displayName||"Context")+".Consumer";case 10:return(r._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=r.render,t=t.displayName||t.name||"",r.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return r;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ae(r);case 8:return r===b?"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 r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r}return null}function ye(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function ve(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Ve(t){var r=ve(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),c=""+t[r];if(!t.hasOwnProperty(r)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var p=i.get,y=i.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return p.call(this)},set:function(S){c=""+S,y.call(this,S)}}),Object.defineProperty(t,r,{enumerable:i.enumerable}),{getValue:function(){return c},setValue:function(S){c=""+S},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function je(t){t._valueTracker||(t._valueTracker=Ve(t))}function Ue(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var i=r.getValue(),c="";return t&&(c=ve(t)?t.checked?"true":"false":t.value),t=c,t!==i?(r.setValue(t),!0):!1}function Oe(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}}function dt(t,r){var i=r.checked;return W({},r,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??t._wrapperState.initialChecked})}function yt(t,r){var i=r.defaultValue==null?"":r.defaultValue,c=r.checked!=null?r.checked:r.defaultChecked;i=ye(r.value!=null?r.value:i),t._wrapperState={initialChecked:c,initialValue:i,controlled:r.type==="checkbox"||r.type==="radio"?r.checked!=null:r.value!=null}}function vt(t,r){r=r.checked,r!=null&&_(t,"checked",r,!1)}function Se(t,r){vt(t,r);var i=ye(r.value),c=r.type;if(i!=null)c==="number"?(i===0&&t.value===""||t.value!=i)&&(t.value=""+i):t.value!==""+i&&(t.value=""+i);else if(c==="submit"||c==="reset"){t.removeAttribute("value");return}r.hasOwnProperty("value")?we(t,r.type,i):r.hasOwnProperty("defaultValue")&&we(t,r.type,ye(r.defaultValue)),r.checked==null&&r.defaultChecked!=null&&(t.defaultChecked=!!r.defaultChecked)}function Re(t,r,i){if(r.hasOwnProperty("value")||r.hasOwnProperty("defaultValue")){var c=r.type;if(!(c!=="submit"&&c!=="reset"||r.value!==void 0&&r.value!==null))return;r=""+t._wrapperState.initialValue,i||r===t.value||(t.value=r),t.defaultValue=r}i=t.name,i!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,i!==""&&(t.name=i)}function we(t,r,i){(r!=="number"||Oe(t.ownerDocument)!==t)&&(i==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+i&&(t.defaultValue=""+i))}var me=Array.isArray;function Fe(t,r,i,c){if(t=t.options,r){r={};for(var p=0;p"+r.valueOf().toString()+"",r=Qt.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;r.firstChild;)t.appendChild(r.firstChild)}});function Je(t,r){if(r){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=r;return}}t.textContent=r}var wn={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},ft=["Webkit","ms","Moz","O"];Object.keys(wn).forEach(function(t){ft.forEach(function(r){r=r+t.charAt(0).toUpperCase()+t.substring(1),wn[r]=wn[t]})});function Mn(t,r,i){return r==null||typeof r=="boolean"||r===""?"":i||typeof r!="number"||r===0||wn.hasOwnProperty(t)&&wn[t]?(""+r).trim():r+"px"}function Te(t,r){t=t.style;for(var i in r)if(r.hasOwnProperty(i)){var c=i.indexOf("--")===0,p=Mn(i,r[i],c);i==="float"&&(i="cssFloat"),c?t.setProperty(i,p):t[i]=p}}var Ze=W({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 ot(t,r){if(r){if(Ze[t]&&(r.children!=null||r.dangerouslySetInnerHTML!=null))throw Error(a(137,t));if(r.dangerouslySetInnerHTML!=null){if(r.children!=null)throw Error(a(60));if(typeof r.dangerouslySetInnerHTML!="object"||!("__html"in r.dangerouslySetInnerHTML))throw Error(a(61))}if(r.style!=null&&typeof r.style!="object")throw Error(a(62))}}function it(t,r){if(t.indexOf("-")===-1)return typeof r.is=="string";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 Zt=null;function gt(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var xr=null,an=null,Vn=null;function Dr(t){if(t=si(t)){if(typeof xr!="function")throw Error(a(280));var r=t.stateNode;r&&(r=mo(r),xr(t.stateNode,t.type,r))}}function Ye(t){an?Vn?Vn.push(t):Vn=[t]:an=t}function Nt(){if(an){var t=an,r=Vn;if(Vn=an=null,Dr(t),r)for(t=0;t>>=0,t===0?32:31-(qa(t)/st|0)|0}var mn=64,kn=4194304;function Kr(t){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: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 t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function Yr(t,r){var i=t.pendingLanes;if(i===0)return 0;var c=0,p=t.suspendedLanes,y=t.pingedLanes,S=i&268435455;if(S!==0){var D=S&~p;D!==0?c=Kr(D):(y&=S,y!==0&&(c=Kr(y)))}else S=i&~p,S!==0?c=Kr(S):y!==0&&(c=Kr(y));if(c===0)return 0;if(r!==0&&r!==c&&(r&p)===0&&(p=c&-c,y=r&-r,p>=y||p===16&&(y&4194240)!==0))return r;if((c&4)!==0&&(c|=i&16),r=t.entangledLanes,r!==0)for(t=t.entanglements,r&=c;0i;i++)r.push(t);return r}function Us(t,r,i){t.pendingLanes|=r,r!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,r=31-on(r),t[r]=i}function zy(t,r){var i=t.pendingLanes&~r;t.pendingLanes=r,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=r,t.mutableReadLanes&=r,t.entangledLanes&=r,r=t.entanglements;var c=t.eventTimes;for(t=t.expirationTimes;0=qs),oh=" ",lh=!1;function ch(t,r){switch(t){case"keyup":return p2.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function uh(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var es=!1;function g2(t,r){switch(t){case"compositionend":return uh(r);case"keypress":return r.which!==32?null:(lh=!0,oh);case"textInput":return t=r.data,t===oh&&lh?null:t;default:return null}}function x2(t,r){if(es)return t==="compositionend"||!gc&&ch(t,r)?(t=th(),ro=uc=Qr=null,es=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1=r)return{node:i,offset:r-t};t=c}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=xh(i)}}function vh(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?vh(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function bh(){for(var t=window,r=Oe();r instanceof t.HTMLIFrameElement;){try{var i=typeof r.contentWindow.location.href=="string"}catch{i=!1}if(i)t=r.contentWindow;else break;r=Oe(t.document)}return r}function vc(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}function E2(t){var r=bh(),i=t.focusedElem,c=t.selectionRange;if(r!==i&&i&&i.ownerDocument&&vh(i.ownerDocument.documentElement,i)){if(c!==null&&vc(i)){if(r=c.start,t=c.end,t===void 0&&(t=r),"selectionStart"in i)i.selectionStart=r,i.selectionEnd=Math.min(t,i.value.length);else if(t=(r=i.ownerDocument||document)&&r.defaultView||window,t.getSelection){t=t.getSelection();var p=i.textContent.length,y=Math.min(c.start,p);c=c.end===void 0?y:Math.min(c.end,p),!t.extend&&y>c&&(p=c,c=y,y=p),p=yh(i,y);var S=yh(i,c);p&&S&&(t.rangeCount!==1||t.anchorNode!==p.node||t.anchorOffset!==p.offset||t.focusNode!==S.node||t.focusOffset!==S.offset)&&(r=r.createRange(),r.setStart(p.node,p.offset),t.removeAllRanges(),y>c?(t.addRange(r),t.extend(S.node,S.offset)):(r.setEnd(S.node,S.offset),t.addRange(r)))}}for(r=[],t=i;t=t.parentNode;)t.nodeType===1&&r.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i=document.documentMode,ts=null,bc=null,ei=null,wc=!1;function wh(t,r,i){var c=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;wc||ts==null||ts!==Oe(c)||(c=ts,"selectionStart"in c&&vc(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),ei&&Zs(ei,c)||(ei=c,c=fo(bc,"onSelect"),0is||(t.current=Ic[is],Ic[is]=null,is--)}function wt(t,r){is++,Ic[is]=t.current,t.current=r}var na={},cn=ta(na),Sn=ta(!1),Ea=na;function os(t,r){var i=t.type.contextTypes;if(!i)return na;var c=t.stateNode;if(c&&c.__reactInternalMemoizedUnmaskedChildContext===r)return c.__reactInternalMemoizedMaskedChildContext;var p={},y;for(y in i)p[y]=r[y];return c&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=r,t.__reactInternalMemoizedMaskedChildContext=p),p}function Cn(t){return t=t.childContextTypes,t!=null}function go(){jt(Sn),jt(cn)}function Lh(t,r,i){if(cn.current!==na)throw Error(a(168));wt(cn,r),wt(Sn,i)}function Ah(t,r,i){var c=t.stateNode;if(r=r.childContextTypes,typeof c.getChildContext!="function")return i;c=c.getChildContext();for(var p in c)if(!(p in r))throw Error(a(108,ue(t)||"Unknown",p));return W({},i,c)}function xo(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||na,Ea=cn.current,wt(cn,t),wt(Sn,Sn.current),!0}function Oh(t,r,i){var c=t.stateNode;if(!c)throw Error(a(169));i?(t=Ah(t,r,Ea),c.__reactInternalMemoizedMergedChildContext=t,jt(Sn),jt(cn),wt(cn,t)):jt(Sn),wt(Sn,i)}var Or=null,yo=!1,Dc=!1;function Bh(t){Or===null?Or=[t]:Or.push(t)}function O2(t){yo=!0,Bh(t)}function ra(){if(!Dc&&Or!==null){Dc=!0;var t=0,r=mt;try{var i=Or;for(mt=1;t>=S,p-=S,Br=1<<32-on(r)+p|i<He?(Jt=ze,ze=null):Jt=ze.sibling;var ct=de(Q,ze,Z[He],pe);if(ct===null){ze===null&&(ze=Jt);break}t&&ze&&ct.alternate===null&&r(Q,ze),$=y(ct,$,He),Be===null?Me=ct:Be.sibling=ct,Be=ct,ze=Jt}if(He===Z.length)return i(Q,ze),Tt&&Ta(Q,He),Me;if(ze===null){for(;HeHe?(Jt=ze,ze=null):Jt=ze.sibling;var fa=de(Q,ze,ct.value,pe);if(fa===null){ze===null&&(ze=Jt);break}t&&ze&&fa.alternate===null&&r(Q,ze),$=y(fa,$,He),Be===null?Me=fa:Be.sibling=fa,Be=fa,ze=Jt}if(ct.done)return i(Q,ze),Tt&&Ta(Q,He),Me;if(ze===null){for(;!ct.done;He++,ct=Z.next())ct=he(Q,ct.value,pe),ct!==null&&($=y(ct,$,He),Be===null?Me=ct:Be.sibling=ct,Be=ct);return Tt&&Ta(Q,He),Me}for(ze=c(Q,ze);!ct.done;He++,ct=Z.next())ct=ke(ze,Q,He,ct.value,pe),ct!==null&&(t&&ct.alternate!==null&&ze.delete(ct.key===null?He:ct.key),$=y(ct,$,He),Be===null?Me=ct:Be.sibling=ct,Be=ct);return t&&ze.forEach(function(yv){return r(Q,yv)}),Tt&&Ta(Q,He),Me}function Bt(Q,$,Z,pe){if(typeof Z=="object"&&Z!==null&&Z.type===O&&Z.key===null&&(Z=Z.props.children),typeof Z=="object"&&Z!==null){switch(Z.$$typeof){case H:e:{for(var Me=Z.key,Be=$;Be!==null;){if(Be.key===Me){if(Me=Z.type,Me===O){if(Be.tag===7){i(Q,Be.sibling),$=p(Be,Z.props.children),$.return=Q,Q=$;break e}}else if(Be.elementType===Me||typeof Me=="object"&&Me!==null&&Me.$$typeof===q&&Wh(Me)===Be.type){i(Q,Be.sibling),$=p(Be,Z.props),$.ref=ii(Q,Be,Z),$.return=Q,Q=$;break e}i(Q,Be);break}else r(Q,Be);Be=Be.sibling}Z.type===O?($=La(Z.props.children,Q.mode,pe,Z.key),$.return=Q,Q=$):(pe=Ko(Z.type,Z.key,Z.props,null,Q.mode,pe),pe.ref=ii(Q,$,Z),pe.return=Q,Q=pe)}return S(Q);case re:e:{for(Be=Z.key;$!==null;){if($.key===Be)if($.tag===4&&$.stateNode.containerInfo===Z.containerInfo&&$.stateNode.implementation===Z.implementation){i(Q,$.sibling),$=p($,Z.children||[]),$.return=Q,Q=$;break e}else{i(Q,$);break}else r(Q,$);$=$.sibling}$=Mu(Z,Q.mode,pe),$.return=Q,Q=$}return S(Q);case q:return Be=Z._init,Bt(Q,$,Be(Z._payload),pe)}if(me(Z))return Ee(Q,$,Z,pe);if(U(Z))return Pe(Q,$,Z,pe);ko(Q,Z)}return typeof Z=="string"&&Z!==""||typeof Z=="number"?(Z=""+Z,$!==null&&$.tag===6?(i(Q,$.sibling),$=p($,Z),$.return=Q,Q=$):(i(Q,$),$=Ru(Z,Q.mode,pe),$.return=Q,Q=$),S(Q)):i(Q,$)}return Bt}var ds=Kh(!0),Yh=Kh(!1),So=ta(null),Co=null,fs=null,zc=null;function Vc(){zc=fs=Co=null}function Uc(t){var r=So.current;jt(So),t._currentValue=r}function $c(t,r,i){for(;t!==null;){var c=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,c!==null&&(c.childLanes|=r)):c!==null&&(c.childLanes&r)!==r&&(c.childLanes|=r),t===i)break;t=t.return}}function hs(t,r){Co=t,zc=fs=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&r)!==0&&(jn=!0),t.firstContext=null)}function Hn(t){var r=t._currentValue;if(zc!==t)if(t={context:t,memoizedValue:r,next:null},fs===null){if(Co===null)throw Error(a(308));fs=t,Co.dependencies={lanes:0,firstContext:t}}else fs=fs.next=t;return r}var Pa=null;function Hc(t){Pa===null?Pa=[t]:Pa.push(t)}function Gh(t,r,i,c){var p=r.interleaved;return p===null?(i.next=i,Hc(r)):(i.next=p.next,p.next=i),r.interleaved=i,Vr(t,c)}function Vr(t,r){t.lanes|=r;var i=t.alternate;for(i!==null&&(i.lanes|=r),i=t,t=t.return;t!==null;)t.childLanes|=r,i=t.alternate,i!==null&&(i.childLanes|=r),i=t,t=t.return;return i.tag===3?i.stateNode:null}var aa=!1;function Wc(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Xh(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Ur(t,r){return{eventTime:t,lane:r,tag:0,payload:null,callback:null,next:null}}function sa(t,r,i){var c=t.updateQueue;if(c===null)return null;if(c=c.shared,(lt&2)!==0){var p=c.pending;return p===null?r.next=r:(r.next=p.next,p.next=r),c.pending=r,Vr(t,i)}return p=c.interleaved,p===null?(r.next=r,Hc(c)):(r.next=p.next,p.next=r),c.interleaved=r,Vr(t,i)}function jo(t,r,i){if(r=r.updateQueue,r!==null&&(r=r.shared,(i&4194240)!==0)){var c=r.lanes;c&=t.pendingLanes,i|=c,r.lanes=i,sc(t,i)}}function qh(t,r){var i=t.updateQueue,c=t.alternate;if(c!==null&&(c=c.updateQueue,i===c)){var p=null,y=null;if(i=i.firstBaseUpdate,i!==null){do{var S={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};y===null?p=y=S:y=y.next=S,i=i.next}while(i!==null);y===null?p=y=r:y=y.next=r}else p=y=r;i={baseState:c.baseState,firstBaseUpdate:p,lastBaseUpdate:y,shared:c.shared,effects:c.effects},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=r:t.next=r,i.lastBaseUpdate=r}function Eo(t,r,i,c){var p=t.updateQueue;aa=!1;var y=p.firstBaseUpdate,S=p.lastBaseUpdate,D=p.shared.pending;if(D!==null){p.shared.pending=null;var B=D,ne=B.next;B.next=null,S===null?y=ne:S.next=ne,S=B;var fe=t.alternate;fe!==null&&(fe=fe.updateQueue,D=fe.lastBaseUpdate,D!==S&&(D===null?fe.firstBaseUpdate=ne:D.next=ne,fe.lastBaseUpdate=B))}if(y!==null){var he=p.baseState;S=0,fe=ne=B=null,D=y;do{var de=D.lane,ke=D.eventTime;if((c&de)===de){fe!==null&&(fe=fe.next={eventTime:ke,lane:0,tag:D.tag,payload:D.payload,callback:D.callback,next:null});e:{var Ee=t,Pe=D;switch(de=r,ke=i,Pe.tag){case 1:if(Ee=Pe.payload,typeof Ee=="function"){he=Ee.call(ke,he,de);break e}he=Ee;break e;case 3:Ee.flags=Ee.flags&-65537|128;case 0:if(Ee=Pe.payload,de=typeof Ee=="function"?Ee.call(ke,he,de):Ee,de==null)break e;he=W({},he,de);break e;case 2:aa=!0}}D.callback!==null&&D.lane!==0&&(t.flags|=64,de=p.effects,de===null?p.effects=[D]:de.push(D))}else ke={eventTime:ke,lane:de,tag:D.tag,payload:D.payload,callback:D.callback,next:null},fe===null?(ne=fe=ke,B=he):fe=fe.next=ke,S|=de;if(D=D.next,D===null){if(D=p.shared.pending,D===null)break;de=D,D=de.next,de.next=null,p.lastBaseUpdate=de,p.shared.pending=null}}while(!0);if(fe===null&&(B=he),p.baseState=B,p.firstBaseUpdate=ne,p.lastBaseUpdate=fe,r=p.shared.interleaved,r!==null){p=r;do S|=p.lane,p=p.next;while(p!==r)}else y===null&&(p.shared.lanes=0);Fa|=S,t.lanes=S,t.memoizedState=he}}function Jh(t,r,i){if(t=r.effects,r.effects=null,t!==null)for(r=0;ri?i:4,t(!0);var c=qc.transition;qc.transition={};try{t(!1),r()}finally{mt=i,qc.transition=c}}function gp(){return Wn().memoizedState}function U2(t,r,i){var c=ca(t);if(i={lane:c,action:i,hasEagerState:!1,eagerState:null,next:null},xp(t))yp(r,i);else if(i=Gh(t,r,i,c),i!==null){var p=xn();cr(i,t,c,p),vp(i,r,c)}}function $2(t,r,i){var c=ca(t),p={lane:c,action:i,hasEagerState:!1,eagerState:null,next:null};if(xp(t))yp(r,p);else{var y=t.alternate;if(t.lanes===0&&(y===null||y.lanes===0)&&(y=r.lastRenderedReducer,y!==null))try{var S=r.lastRenderedState,D=y(S,i);if(p.hasEagerState=!0,p.eagerState=D,ar(D,S)){var B=r.interleaved;B===null?(p.next=p,Hc(r)):(p.next=B.next,B.next=p),r.interleaved=p;return}}catch{}finally{}i=Gh(t,r,p,c),i!==null&&(p=xn(),cr(i,t,c,p),vp(i,r,c))}}function xp(t){var r=t.alternate;return t===Mt||r!==null&&r===Mt}function yp(t,r){ui=Po=!0;var i=t.pending;i===null?r.next=r:(r.next=i.next,i.next=r),t.pending=r}function vp(t,r,i){if((i&4194240)!==0){var c=r.lanes;c&=t.pendingLanes,i|=c,r.lanes=i,sc(t,i)}}var Fo={readContext:Hn,useCallback:un,useContext:un,useEffect:un,useImperativeHandle:un,useInsertionEffect:un,useLayoutEffect:un,useMemo:un,useReducer:un,useRef:un,useState:un,useDebugValue:un,useDeferredValue:un,useTransition:un,useMutableSource:un,useSyncExternalStore:un,useId:un,unstable_isNewReconciler:!1},H2={readContext:Hn,useCallback:function(t,r){return kr().memoizedState=[t,r===void 0?null:r],t},useContext:Hn,useEffect:lp,useImperativeHandle:function(t,r,i){return i=i!=null?i.concat([t]):null,Ro(4194308,4,dp.bind(null,r,t),i)},useLayoutEffect:function(t,r){return Ro(4194308,4,t,r)},useInsertionEffect:function(t,r){return Ro(4,2,t,r)},useMemo:function(t,r){var i=kr();return r=r===void 0?null:r,t=t(),i.memoizedState=[t,r],t},useReducer:function(t,r,i){var c=kr();return r=i!==void 0?i(r):r,c.memoizedState=c.baseState=r,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:r},c.queue=t,t=t.dispatch=U2.bind(null,Mt,t),[c.memoizedState,t]},useRef:function(t){var r=kr();return t={current:t},r.memoizedState=t},useState:ip,useDebugValue:ru,useDeferredValue:function(t){return kr().memoizedState=t},useTransition:function(){var t=ip(!1),r=t[0];return t=V2.bind(null,t[1]),kr().memoizedState=t,[r,t]},useMutableSource:function(){},useSyncExternalStore:function(t,r,i){var c=Mt,p=kr();if(Tt){if(i===void 0)throw Error(a(407));i=i()}else{if(i=r(),qt===null)throw Error(a(349));(Ma&30)!==0||tp(c,r,i)}p.memoizedState=i;var y={value:i,getSnapshot:r};return p.queue=y,lp(rp.bind(null,c,y,t),[t]),c.flags|=2048,hi(9,np.bind(null,c,y,i,r),void 0,null),i},useId:function(){var t=kr(),r=qt.identifierPrefix;if(Tt){var i=zr,c=Br;i=(c&~(1<<32-on(c)-1)).toString(32)+i,r=":"+r+"R"+i,i=di++,0<\/script>",t=t.removeChild(t.firstChild)):typeof c.is=="string"?t=S.createElement(i,{is:c.is}):(t=S.createElement(i),i==="select"&&(S=t,c.multiple?S.multiple=!0:c.size&&(S.size=c.size))):t=S.createElementNS(t,i),t[br]=r,t[ai]=c,Bp(t,r,!1,!1),r.stateNode=t;e:{switch(S=it(i,c),i){case"dialog":Ct("cancel",t),Ct("close",t),p=c;break;case"iframe":case"object":case"embed":Ct("load",t),p=c;break;case"video":case"audio":for(p=0;pys&&(r.flags|=128,c=!0,pi(y,!1),r.lanes=4194304)}else{if(!c)if(t=No(S),t!==null){if(r.flags|=128,c=!0,i=t.updateQueue,i!==null&&(r.updateQueue=i,r.flags|=4),pi(y,!0),y.tail===null&&y.tailMode==="hidden"&&!S.alternate&&!Tt)return dn(r),null}else 2*at()-y.renderingStartTime>ys&&i!==1073741824&&(r.flags|=128,c=!0,pi(y,!1),r.lanes=4194304);y.isBackwards?(S.sibling=r.child,r.child=S):(i=y.last,i!==null?i.sibling=S:r.child=S,y.last=S)}return y.tail!==null?(r=y.tail,y.rendering=r,y.tail=r.sibling,y.renderingStartTime=at(),r.sibling=null,i=Rt.current,wt(Rt,c?i&1|2:i&1),r):(dn(r),null);case 22:case 23:return Nu(),c=r.memoizedState!==null,t!==null&&t.memoizedState!==null!==c&&(r.flags|=8192),c&&(r.mode&1)!==0?(An&1073741824)!==0&&(dn(r),r.subtreeFlags&6&&(r.flags|=8192)):dn(r),null;case 24:return null;case 25:return null}throw Error(a(156,r.tag))}function Q2(t,r){switch(Lc(r),r.tag){case 1:return Cn(r.type)&&go(),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return ps(),jt(Sn),jt(cn),Xc(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 5:return Yc(r),null;case 13:if(jt(Rt),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(a(340));us()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return jt(Rt),null;case 4:return ps(),null;case 10:return Uc(r.type._context),null;case 22:case 23:return Nu(),null;case 24:return null;default:return null}}var Lo=!1,fn=!1,Z2=typeof WeakSet=="function"?WeakSet:Set,Ce=null;function gs(t,r){var i=t.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(c){Ft(t,r,c)}else i.current=null}function mu(t,r,i){try{i()}catch(c){Ft(t,r,c)}}var Up=!1;function ev(t,r){if(Nc=to,t=bh(),vc(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var c=i.getSelection&&i.getSelection();if(c&&c.rangeCount!==0){i=c.anchorNode;var p=c.anchorOffset,y=c.focusNode;c=c.focusOffset;try{i.nodeType,y.nodeType}catch{i=null;break e}var S=0,D=-1,B=-1,ne=0,fe=0,he=t,de=null;t:for(;;){for(var ke;he!==i||p!==0&&he.nodeType!==3||(D=S+p),he!==y||c!==0&&he.nodeType!==3||(B=S+c),he.nodeType===3&&(S+=he.nodeValue.length),(ke=he.firstChild)!==null;)de=he,he=ke;for(;;){if(he===t)break t;if(de===i&&++ne===p&&(D=S),de===y&&++fe===c&&(B=S),(ke=he.nextSibling)!==null)break;he=de,de=he.parentNode}he=ke}i=D===-1||B===-1?null:{start:D,end:B}}else i=null}i=i||{start:0,end:0}}else i=null;for(Tc={focusedElem:t,selectionRange:i},to=!1,Ce=r;Ce!==null;)if(r=Ce,t=r.child,(r.subtreeFlags&1028)!==0&&t!==null)t.return=r,Ce=t;else for(;Ce!==null;){r=Ce;try{var Ee=r.alternate;if((r.flags&1024)!==0)switch(r.tag){case 0:case 11:case 15:break;case 1:if(Ee!==null){var Pe=Ee.memoizedProps,Bt=Ee.memoizedState,Q=r.stateNode,$=Q.getSnapshotBeforeUpdate(r.elementType===r.type?Pe:ir(r.type,Pe),Bt);Q.__reactInternalSnapshotBeforeUpdate=$}break;case 3:var Z=r.stateNode.containerInfo;Z.nodeType===1?Z.textContent="":Z.nodeType===9&&Z.documentElement&&Z.removeChild(Z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(pe){Ft(r,r.return,pe)}if(t=r.sibling,t!==null){t.return=r.return,Ce=t;break}Ce=r.return}return Ee=Up,Up=!1,Ee}function mi(t,r,i){var c=r.updateQueue;if(c=c!==null?c.lastEffect:null,c!==null){var p=c=c.next;do{if((p.tag&t)===t){var y=p.destroy;p.destroy=void 0,y!==void 0&&mu(r,i,y)}p=p.next}while(p!==c)}}function Ao(t,r){if(r=r.updateQueue,r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&t)===t){var c=i.create;i.destroy=c()}i=i.next}while(i!==r)}}function gu(t){var r=t.ref;if(r!==null){var i=t.stateNode;switch(t.tag){case 5:t=i;break;default:t=i}typeof r=="function"?r(t):r.current=t}}function $p(t){var r=t.alternate;r!==null&&(t.alternate=null,$p(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&(delete r[br],delete r[ai],delete r[Fc],delete r[L2],delete r[A2])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function Hp(t){return t.tag===5||t.tag===3||t.tag===4}function Wp(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Hp(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.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function xu(t,r,i){var c=t.tag;if(c===5||c===6)t=t.stateNode,r?i.nodeType===8?i.parentNode.insertBefore(t,r):i.insertBefore(t,r):(i.nodeType===8?(r=i.parentNode,r.insertBefore(t,i)):(r=i,r.appendChild(t)),i=i._reactRootContainer,i!=null||r.onclick!==null||(r.onclick=po));else if(c!==4&&(t=t.child,t!==null))for(xu(t,r,i),t=t.sibling;t!==null;)xu(t,r,i),t=t.sibling}function yu(t,r,i){var c=t.tag;if(c===5||c===6)t=t.stateNode,r?i.insertBefore(t,r):i.appendChild(t);else if(c!==4&&(t=t.child,t!==null))for(yu(t,r,i),t=t.sibling;t!==null;)yu(t,r,i),t=t.sibling}var en=null,or=!1;function ia(t,r,i){for(i=i.child;i!==null;)Kp(t,r,i),i=i.sibling}function Kp(t,r,i){if(Wt&&typeof Wt.onCommitFiberUnmount=="function")try{Wt.onCommitFiberUnmount(Wr,i)}catch{}switch(i.tag){case 5:fn||gs(i,r);case 6:var c=en,p=or;en=null,ia(t,r,i),en=c,or=p,en!==null&&(or?(t=en,i=i.stateNode,t.nodeType===8?t.parentNode.removeChild(i):t.removeChild(i)):en.removeChild(i.stateNode));break;case 18:en!==null&&(or?(t=en,i=i.stateNode,t.nodeType===8?Mc(t.parentNode,i):t.nodeType===1&&Mc(t,i),Ys(t)):Mc(en,i.stateNode));break;case 4:c=en,p=or,en=i.stateNode.containerInfo,or=!0,ia(t,r,i),en=c,or=p;break;case 0:case 11:case 14:case 15:if(!fn&&(c=i.updateQueue,c!==null&&(c=c.lastEffect,c!==null))){p=c=c.next;do{var y=p,S=y.destroy;y=y.tag,S!==void 0&&((y&2)!==0||(y&4)!==0)&&mu(i,r,S),p=p.next}while(p!==c)}ia(t,r,i);break;case 1:if(!fn&&(gs(i,r),c=i.stateNode,typeof c.componentWillUnmount=="function"))try{c.props=i.memoizedProps,c.state=i.memoizedState,c.componentWillUnmount()}catch(D){Ft(i,r,D)}ia(t,r,i);break;case 21:ia(t,r,i);break;case 22:i.mode&1?(fn=(c=fn)||i.memoizedState!==null,ia(t,r,i),fn=c):ia(t,r,i);break;default:ia(t,r,i)}}function Yp(t){var r=t.updateQueue;if(r!==null){t.updateQueue=null;var i=t.stateNode;i===null&&(i=t.stateNode=new Z2),r.forEach(function(c){var p=cv.bind(null,t,c);i.has(c)||(i.add(c),c.then(p,p))})}}function lr(t,r){var i=r.deletions;if(i!==null)for(var c=0;cp&&(p=S),c&=~y}if(c=p,c=at()-c,c=(120>c?120:480>c?480:1080>c?1080:1920>c?1920:3e3>c?3e3:4320>c?4320:1960*nv(c/1960))-c,10t?16:t,la===null)var c=!1;else{if(t=la,la=null,Uo=0,(lt&6)!==0)throw Error(a(331));var p=lt;for(lt|=4,Ce=t.current;Ce!==null;){var y=Ce,S=y.child;if((Ce.flags&16)!==0){var D=y.deletions;if(D!==null){for(var B=0;Bat()-wu?Da(t,0):bu|=i),Nn(t,r)}function i0(t,r){r===0&&((t.mode&1)===0?r=1:(r=kn,kn<<=1,(kn&130023424)===0&&(kn=4194304)));var i=xn();t=Vr(t,r),t!==null&&(Us(t,r,i),Nn(t,i))}function lv(t){var r=t.memoizedState,i=0;r!==null&&(i=r.retryLane),i0(t,i)}function cv(t,r){var i=0;switch(t.tag){case 13:var c=t.stateNode,p=t.memoizedState;p!==null&&(i=p.retryLane);break;case 19:c=t.stateNode;break;default:throw Error(a(314))}c!==null&&c.delete(r),i0(t,i)}var o0;o0=function(t,r,i){if(t!==null)if(t.memoizedProps!==r.pendingProps||Sn.current)jn=!0;else{if((t.lanes&i)===0&&(r.flags&128)===0)return jn=!1,q2(t,r,i);jn=(t.flags&131072)!==0}else jn=!1,Tt&&(r.flags&1048576)!==0&&zh(r,bo,r.index);switch(r.lanes=0,r.tag){case 2:var c=r.type;_o(t,r),t=r.pendingProps;var p=os(r,cn.current);hs(r,i),p=Qc(null,r,c,t,p,i);var y=Zc();return r.flags|=1,typeof p=="object"&&p!==null&&typeof p.render=="function"&&p.$$typeof===void 0?(r.tag=1,r.memoizedState=null,r.updateQueue=null,Cn(c)?(y=!0,xo(r)):y=!1,r.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,Wc(r),p.updater=Io,r.stateNode=p,p._reactInternals=r,su(r,c,t,i),r=cu(null,r,c,!0,y,i)):(r.tag=0,Tt&&y&&_c(r),gn(null,r,p,i),r=r.child),r;case 16:c=r.elementType;e:{switch(_o(t,r),t=r.pendingProps,p=c._init,c=p(c._payload),r.type=c,p=r.tag=dv(c),t=ir(c,t),p){case 0:r=lu(null,r,c,t,i);break e;case 1:r=Ip(null,r,c,t,i);break e;case 11:r=Tp(null,r,c,t,i);break e;case 14:r=Pp(null,r,c,ir(c.type,t),i);break e}throw Error(a(306,c,""))}return r;case 0:return c=r.type,p=r.pendingProps,p=r.elementType===c?p:ir(c,p),lu(t,r,c,p,i);case 1:return c=r.type,p=r.pendingProps,p=r.elementType===c?p:ir(c,p),Ip(t,r,c,p,i);case 3:e:{if(Dp(r),t===null)throw Error(a(387));c=r.pendingProps,y=r.memoizedState,p=y.element,Xh(t,r),Eo(r,c,null,i);var S=r.memoizedState;if(c=S.element,y.isDehydrated)if(y={element:c,isDehydrated:!1,cache:S.cache,pendingSuspenseBoundaries:S.pendingSuspenseBoundaries,transitions:S.transitions},r.updateQueue.baseState=y,r.memoizedState=y,r.flags&256){p=ms(Error(a(423)),r),r=_p(t,r,c,i,p);break e}else if(c!==p){p=ms(Error(a(424)),r),r=_p(t,r,c,i,p);break e}else for(Ln=ea(r.stateNode.containerInfo.firstChild),_n=r,Tt=!0,sr=null,i=Yh(r,null,c,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(us(),c===p){r=$r(t,r,i);break e}gn(t,r,c,i)}r=r.child}return r;case 5:return Qh(r),t===null&&Oc(r),c=r.type,p=r.pendingProps,y=t!==null?t.memoizedProps:null,S=p.children,Pc(c,p)?S=null:y!==null&&Pc(c,y)&&(r.flags|=32),Fp(t,r),gn(t,r,S,i),r.child;case 6:return t===null&&Oc(r),null;case 13:return Lp(t,r,i);case 4:return Kc(r,r.stateNode.containerInfo),c=r.pendingProps,t===null?r.child=ds(r,null,c,i):gn(t,r,c,i),r.child;case 11:return c=r.type,p=r.pendingProps,p=r.elementType===c?p:ir(c,p),Tp(t,r,c,p,i);case 7:return gn(t,r,r.pendingProps,i),r.child;case 8:return gn(t,r,r.pendingProps.children,i),r.child;case 12:return gn(t,r,r.pendingProps.children,i),r.child;case 10:e:{if(c=r.type._context,p=r.pendingProps,y=r.memoizedProps,S=p.value,wt(So,c._currentValue),c._currentValue=S,y!==null)if(ar(y.value,S)){if(y.children===p.children&&!Sn.current){r=$r(t,r,i);break e}}else for(y=r.child,y!==null&&(y.return=r);y!==null;){var D=y.dependencies;if(D!==null){S=y.child;for(var B=D.firstContext;B!==null;){if(B.context===c){if(y.tag===1){B=Ur(-1,i&-i),B.tag=2;var ne=y.updateQueue;if(ne!==null){ne=ne.shared;var fe=ne.pending;fe===null?B.next=B:(B.next=fe.next,fe.next=B),ne.pending=B}}y.lanes|=i,B=y.alternate,B!==null&&(B.lanes|=i),$c(y.return,i,r),D.lanes|=i;break}B=B.next}}else if(y.tag===10)S=y.type===r.type?null:y.child;else if(y.tag===18){if(S=y.return,S===null)throw Error(a(341));S.lanes|=i,D=S.alternate,D!==null&&(D.lanes|=i),$c(S,i,r),S=y.sibling}else S=y.child;if(S!==null)S.return=y;else for(S=y;S!==null;){if(S===r){S=null;break}if(y=S.sibling,y!==null){y.return=S.return,S=y;break}S=S.return}y=S}gn(t,r,p.children,i),r=r.child}return r;case 9:return p=r.type,c=r.pendingProps.children,hs(r,i),p=Hn(p),c=c(p),r.flags|=1,gn(t,r,c,i),r.child;case 14:return c=r.type,p=ir(c,r.pendingProps),p=ir(c.type,p),Pp(t,r,c,p,i);case 15:return Rp(t,r,r.type,r.pendingProps,i);case 17:return c=r.type,p=r.pendingProps,p=r.elementType===c?p:ir(c,p),_o(t,r),r.tag=1,Cn(c)?(t=!0,xo(r)):t=!1,hs(r,i),wp(r,c,p),su(r,c,p,i),cu(null,r,c,!0,t,i);case 19:return Op(t,r,i);case 22:return Mp(t,r,i)}throw Error(a(156,r.tag))};function l0(t,r){return ut(t,r)}function uv(t,r,i,c){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yn(t,r,i,c){return new uv(t,r,i,c)}function Pu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function dv(t){if(typeof t=="function")return Pu(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Y)return 11;if(t===te)return 14}return 2}function da(t,r){var i=t.alternate;return i===null?(i=Yn(t.tag,r,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=r,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&14680064,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,r=t.dependencies,i.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i}function Ko(t,r,i,c,p,y){var S=2;if(c=t,typeof t=="function")Pu(t)&&(S=1);else if(typeof t=="string")S=5;else e:switch(t){case O:return La(i.children,p,y,r);case b:S=8,p|=8;break;case R:return t=Yn(12,i,r,p|2),t.elementType=R,t.lanes=y,t;case X:return t=Yn(13,i,r,p),t.elementType=X,t.lanes=y,t;case K:return t=Yn(19,i,r,p),t.elementType=K,t.lanes=y,t;case P:return Yo(i,p,y,r);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case N:S=10;break e;case G:S=9;break e;case Y:S=11;break e;case te:S=14;break e;case q:S=16,c=null;break e}throw Error(a(130,t==null?t:typeof t,""))}return r=Yn(S,i,r,p),r.elementType=t,r.type=c,r.lanes=y,r}function La(t,r,i,c){return t=Yn(7,t,c,r),t.lanes=i,t}function Yo(t,r,i,c){return t=Yn(22,t,c,r),t.elementType=P,t.lanes=i,t.stateNode={isHidden:!1},t}function Ru(t,r,i){return t=Yn(6,t,null,r),t.lanes=i,t}function Mu(t,r,i){return r=Yn(4,t.children!==null?t.children:[],t.key,r),r.lanes=i,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}function fv(t,r,i,c,p){this.tag=r,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=ac(0),this.expirationTimes=ac(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ac(0),this.identifierPrefix=c,this.onRecoverableError=p,this.mutableSourceEagerHydrationData=null}function Fu(t,r,i,c,p,y,S,D,B){return t=new fv(t,r,i,D,B),r===1?(r=1,y===!0&&(r|=8)):r=0,y=Yn(3,null,null,r),t.current=y,y.stateNode=t,y.memoizedState={element:c,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wc(y),t}function hv(t,r,i){var c=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Ou.exports=jv(),Ou.exports}var k0;function Ev(){if(k0)return el;k0=1;var e=Lg();return el.createRoot=e.createRoot,el.hydrateRoot=e.hydrateRoot,el}var Nv=Ev(),v=Ul();const ge=_g(v),Tv=vv({__proto__:null,default:ge},[v]);/** * react-router v7.15.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */var Ag=e=>{throw TypeError(e)},Og=(e,n,a)=>n.has(e)||Ag("Cannot "+a),Gn=(e,n,a)=>(Og(e,n,"read from private field"),a?a.call(e):n.get(e)),Ei=(e,n,a)=>n.has(e)?Ag("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,a),Cr=(e,n,a,s)=>(Og(e,n,"write to private field"),n.set(e,a),a),S0="popstate";function C0(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function Pv(e={}){function n(s,o){var m;let l=(m=o.state)==null?void 0:m.masked,{pathname:d,search:f,hash:g}=l||s.location;return Di("",{pathname:d,search:f,hash:g},o.state&&o.state.usr||null,o.state&&o.state.key||"default",l?{pathname:s.location.pathname,search:s.location.search,hash:s.location.hash}:void 0)}function a(s,o){return typeof o=="string"?o:Mr(o)}return Mv(n,a,null,e)}function qe(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function Dt(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function Rv(){return Math.random().toString(36).substring(2,10)}function j0(e,n){return{usr:e.state,key:e.key,idx:n,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Di(e,n,a=null,s,o){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?Ir(n):n,state:a,key:n&&n.key||s||Rv(),mask:o}}function Mr({pathname:e="/",search:n="",hash:a=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function Ir(e){let n={};if(e){let a=e.indexOf("#");a>=0&&(n.hash=e.substring(a),e=e.substring(0,a));let s=e.indexOf("?");s>=0&&(n.search=e.substring(s),e=e.substring(0,s)),e&&(n.pathname=e)}return n}function Mv(e,n,a,s={}){let{window:o=document.defaultView,v5Compat:l=!1}=s,d=o.history,f="POP",g=null,m=x();m==null&&(m=0,d.replaceState({...d.state,idx:m},""));function x(){return(d.state||{idx:null}).idx}function h(){f="POP";let C=x(),I=C==null?null:C-m;m=C,g&&g({action:f,location:E.location,delta:I})}function w(C,I){f="PUSH";let M=C0(C)?C:Di(E.location,C,I);m=x()+1;let _=j0(M,m),V=E.createHref(M.mask||M);try{d.pushState(_,"",V)}catch(H){if(H instanceof DOMException&&H.name==="DataCloneError")throw H;o.location.assign(V)}l&&g&&g({action:f,location:E.location,delta:1})}function k(C,I){f="REPLACE";let M=C0(C)?C:Di(E.location,C,I);m=x();let _=j0(M,m),V=E.createHref(M.mask||M);d.replaceState(_,"",V),l&&g&&g({action:f,location:E.location,delta:0})}function j(C){return Bg(C)}let E={get action(){return f},get location(){return e(o,d)},listen(C){if(g)throw new Error("A history only accepts one active listener");return o.addEventListener(S0,h),g=C,()=>{o.removeEventListener(S0,h),g=null}},createHref(C){return n(o,C)},createURL:j,encodeLocation(C){let I=j(C);return{pathname:I.pathname,search:I.search,hash:I.hash}},push:w,replace:k,go(C){return d.go(C)}};return E}function Bg(e,n=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),qe(a,"No window.location.(origin|href) available to create URL");let s=typeof e=="string"?e:Mr(e);return s=s.replace(/ $/,"%20"),!n&&s.startsWith("//")&&(s=a+s),new URL(s,a)}var Ni,E0=class{constructor(e){if(Ei(this,Ni,new Map),e)for(let[n,a]of e)this.set(n,a)}get(e){if(Gn(this,Ni).has(e))return Gn(this,Ni).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,n){Gn(this,Ni).set(e,n)}};Ni=new WeakMap;var Fv=new Set(["lazy","caseSensitive","path","id","index","children"]);function Iv(e){return Fv.has(e)}var Dv=new Set(["lazy","caseSensitive","path","id","index","middleware","children"]);function _v(e){return Dv.has(e)}function Lv(e){return e.index===!0}function _i(e,n,a=[],s={},o=!1){return e.map((l,d)=>{let f=[...a,String(d)],g=typeof l.id=="string"?l.id:f.join("-");if(qe(l.index!==!0||!l.children,"Cannot specify children on an index route"),qe(o||!s[g],`Found a route id collision on id "${g}". Route id's must be globally unique within Data Router usages`),Lv(l)){let m={...l,id:g};return s[g]=N0(m,n(m)),m}else{let m={...l,id:g,children:void 0};return s[g]=N0(m,n(m)),l.children&&(m.children=_i(l.children,n,f,s,o)),m}})}function N0(e,n){return Object.assign(e,{...n,...typeof n.lazy=="object"&&n.lazy!=null?{lazy:{...e.lazy,...n.lazy}}:{}})}function zg(e,n,a="/"){return dr(e,n,a,!1)}function dr(e,n,a,s,o){let l=typeof n=="string"?Ir(n):n,d=er(l.pathname||"/",a);if(d==null)return null;let f=o??ml(e),g=null,m=Gv(d);for(let x=0;g==null&&x{let x={relativePath:m===void 0?d.path||"":m,caseSensitive:d.caseSensitive===!0,childrenIndex:f,route:d};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(s)&&g)return;qe(x.relativePath.startsWith(s),`Absolute route path "${x.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(s.length)}let h=Qn([s,x.relativePath]),w=a.concat(x);d.children&&d.children.length>0&&(qe(d.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),Ug(d.children,n,w,h,g)),!(d.path==null&&!d.index)&&n.push({path:h,score:Hv(h,d.index),routesMeta:w})};return e.forEach((d,f)=>{var g;if(d.path===""||!((g=d.path)!=null&&g.includes("?")))l(d,f);else for(let m of $g(d.path))l(d,f,!0,m)}),n}function $g(e){let n=e.split("/");if(n.length===0)return[];let[a,...s]=n,o=a.endsWith("?"),l=a.replace(/\?$/,"");if(s.length===0)return o?[l,""]:[l];let d=$g(s.join("/")),f=[];return f.push(...d.map(g=>g===""?l:[l,g].join("/"))),o&&f.push(...d),f.map(g=>e.startsWith("/")&&g===""?"/":g)}function Av(e){e.sort((n,a)=>n.score!==a.score?a.score-n.score:Wv(n.routesMeta.map(s=>s.childrenIndex),a.routesMeta.map(s=>s.childrenIndex)))}var Ov=/^:[\w-]+$/,Bv=3,zv=2,Vv=1,Uv=10,$v=-2,T0=e=>e==="*";function Hv(e,n){let a=e.split("/"),s=a.length;return a.some(T0)&&(s+=$v),n&&(s+=zv),a.filter(o=>!T0(o)).reduce((o,l)=>o+(Ov.test(l)?Bv:l===""?Vv:Uv),s)}function Wv(e,n){return e.length===n.length&&e.slice(0,-1).every((s,o)=>s===n[o])?e[e.length-1]-n[n.length-1]:0}function Kv(e,n,a=!1){let{routesMeta:s}=e,o={},l="/",d=[];for(let f=0;f{if(x==="*"){let j=f[w]||"";d=l.slice(0,l.length-j.length).replace(/(.)\/+$/,"$1")}const k=f[w];return h&&!k?m[x]=void 0:m[x]=(k||"").replace(/%2F/g,"/"),m},{}),pathname:l,pathnameBase:d,pattern:e}}function Yv(e,n=!1,a=!0){Dt(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let s=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(d,f,g,m,x)=>{if(s.push({paramName:f,isOptional:g!=null}),g){let h=x.charAt(m+d.length);return h&&h!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(s.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),s]}function Gv(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Dt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function er(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let a=n.endsWith("/")?n.length-1:n.length,s=e.charAt(a);return s&&s!=="/"?null:e.slice(a)||"/"}function Xv({basename:e,pathname:n}){return n==="/"?e:Qn([e,n])}var Hg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,qd=e=>Hg.test(e);function qv(e,n="/"){let{pathname:a,search:s="",hash:o=""}=typeof e=="string"?Ir(e):e,l;return a?(a=Jd(a),a.startsWith("/")?l=P0(a.substring(1),"/"):l=P0(a,n)):l=n,{pathname:l,search:Qv(s),hash:Zv(o)}}function P0(e,n){let a=Pl(n).split("/");return e.split("/").forEach(o=>{o===".."?a.length>1&&a.pop():o!=="."&&a.push(o)}),a.length>1?a.join("/"):"/"}function Vu(e,n,a,s){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function Wg(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function $l(e){let n=Wg(e);return n.map((a,s)=>s===n.length-1?a.pathname:a.pathnameBase)}function Ui(e,n,a,s=!1){let o;typeof e=="string"?o=Ir(e):(o={...e},qe(!o.pathname||!o.pathname.includes("?"),Vu("?","pathname","search",o)),qe(!o.pathname||!o.pathname.includes("#"),Vu("#","pathname","hash",o)),qe(!o.search||!o.search.includes("#"),Vu("#","search","hash",o)));let l=e===""||o.pathname==="",d=l?"/":o.pathname,f;if(d==null)f=a;else{let h=n.length-1;if(!s&&d.startsWith("..")){let w=d.split("/");for(;w[0]==="..";)w.shift(),h-=1;o.pathname=w.join("/")}f=h>=0?n[h]:"/"}let g=qv(o,f),m=d&&d!=="/"&&d.endsWith("/"),x=(l||d===".")&&a.endsWith("/");return!g.pathname.endsWith("/")&&(m||x)&&(g.pathname+="/"),g}var Jd=e=>e.replace(/\/\/+/g,"/"),Qn=e=>Jd(e.join("/")),Pl=e=>e.replace(/\/+$/,""),Jv=e=>Pl(e).replace(/^\/*/,"/"),Qv=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Zv=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,$i=class{constructor(e,n,a,s=!1){this.status=e,this.statusText=n||"",this.internal=s,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function Li(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Hi(e){let n=e.map(a=>a.route.path).filter(Boolean);return Qn(n)||"/"}var Kg=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Yg(e,n){let a=e;if(typeof a!="string"||!Hg.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let s=a,o=!1;if(Kg)try{let l=new URL(window.location.href),d=a.startsWith("//")?new URL(l.protocol+a):new URL(a),f=er(d.pathname,n);d.origin===l.origin&&f!=null?a=f+d.search+d.hash:o=!0}catch{Dt(!1,` contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:o,to:a}}var ya=Symbol("Uninstrumented");function eb(e,n){let a={lazy:[],"lazy.loader":[],"lazy.action":[],"lazy.middleware":[],middleware:[],loader:[],action:[]};e.forEach(o=>o({id:n.id,index:n.index,path:n.path,instrument(l){let d=Object.keys(a);for(let f of d)l[f]&&a[f].push(l[f])}}));let s={};if(typeof n.lazy=="function"&&a.lazy.length>0){let o=Cs(a.lazy,n.lazy,()=>{});o&&(s.lazy=o)}if(typeof n.lazy=="object"){let o=n.lazy;["middleware","loader","action"].forEach(l=>{let d=o[l],f=a[`lazy.${l}`];if(typeof d=="function"&&f.length>0){let g=Cs(f,d,()=>{});g&&(s.lazy=Object.assign(s.lazy||{},{[l]:g}))}})}return["loader","action"].forEach(o=>{let l=n[o];if(typeof l=="function"&&a[o].length>0){let d=l[ya]??l,f=Cs(a[o],d,(...g)=>R0(g[0]));f&&(o==="loader"&&d.hydrate===!0&&(f.hydrate=!0),f[ya]=d,s[o]=f)}}),n.middleware&&n.middleware.length>0&&a.middleware.length>0&&(s.middleware=n.middleware.map(o=>{let l=o[ya]??o,d=Cs(a.middleware,l,(...f)=>R0(f[0]));return d?(d[ya]=l,d):o})),s}function tb(e,n){let a={navigate:[],fetch:[]};if(n.forEach(s=>s({instrument(o){let l=Object.keys(o);for(let d of l)o[d]&&a[d].push(o[d])}})),a.navigate.length>0){let s=e.navigate[ya]??e.navigate,o=Cs(a.navigate,s,(...l)=>{let[d,f]=l;return{to:typeof d=="number"||typeof d=="string"?d:d?Mr(d):".",...M0(e,f??{})}});o&&(o[ya]=s,e.navigate=o)}if(a.fetch.length>0){let s=e.fetch[ya]??e.fetch,o=Cs(a.fetch,s,(...l)=>{let[d,,f,g]=l;return{href:f??".",fetcherKey:d,...M0(e,g??{})}});o&&(o[ya]=s,e.fetch=o)}return e}function Cs(e,n,a){return e.length===0?null:async(...s)=>{let o=await Gg(e,a(...s),()=>n(...s),e.length-1);if(o.type==="error")throw o.value;return o.value}}async function Gg(e,n,a,s){let o=e[s],l;if(o){let d,f=async()=>(d?console.error("You cannot call instrumented handlers more than once"):d=Gg(e,n,a,s-1),l=await d,qe(l,"Expected a result"),l.type==="error"&&l.value instanceof Error?{status:"error",error:l.value}:{status:"success",error:void 0});try{await o(f,n)}catch(g){console.error("An instrumentation function threw an error:",g)}d||await f(),await d}else try{l={type:"success",value:await a()}}catch(d){l={type:"error",value:d}}return l||{type:"error",value:new Error("No result assigned in instrumentation chain.")}}function R0(e){let{request:n,context:a,params:s,pattern:o}=e;return{request:nb(n),params:{...s},pattern:o,context:rb(a)}}function M0(e,n){return{currentUrl:Mr(e.state.location),..."formMethod"in n?{formMethod:n.formMethod}:{},..."formEncType"in n?{formEncType:n.formEncType}:{},..."formData"in n?{formData:n.formData}:{},..."body"in n?{body:n.body}:{}}}function nb(e){return{method:e.method,url:e.url,headers:{get:(...n)=>e.headers.get(...n)}}}function rb(e){if(sb(e)){let n={...e};return Object.freeze(n),n}else return{get:n=>e.get(n)}}var ab=Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function sb(e){if(e===null||typeof e!="object")return!1;const n=Object.getPrototypeOf(e);return n===Object.prototype||n===null||Object.getOwnPropertyNames(n).sort().join("\0")===ab}var Xg=["POST","PUT","PATCH","DELETE"],ib=new Set(Xg),ob=["GET",...Xg],lb=new Set(ob),qg=new Set([301,302,303,307,308]),cb=new Set([307,308]),Uu={state:"idle",location:void 0,matches:void 0,historyAction:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ub={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},wi={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},db=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Jg="remix-router-transitions",Qg=Symbol("ResetLoaderData"),Ba,bs,ha,ws,fb=class{constructor(e){Ei(this,Ba),Ei(this,bs),Ei(this,ha),Ei(this,ws),Cr(this,Ba,e),Cr(this,bs,ml(e))}get stableRoutes(){return Gn(this,Ba)}get activeRoutes(){return Gn(this,ha)??Gn(this,Ba)}get branches(){return Gn(this,ws)??Gn(this,bs)}get hasHMRRoutes(){return Gn(this,ha)!=null}setRoutes(e){Cr(this,Ba,e),Cr(this,bs,ml(e))}setHmrRoutes(e){Cr(this,ha,e),Cr(this,ws,ml(e))}commitHmrRoutes(){Gn(this,ha)&&(Cr(this,Ba,Gn(this,ha)),Cr(this,bs,Gn(this,ws)),Cr(this,ha,void 0),Cr(this,ws,void 0))}};Ba=new WeakMap;bs=new WeakMap;ha=new WeakMap;ws=new WeakMap;function hb(e){const n=e.window?e.window:typeof window<"u"?window:void 0,a=typeof n<"u"&&typeof n.document<"u"&&typeof n.document.createElement<"u";qe(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let s=e.hydrationRouteProperties||[],o=e.mapRouteProperties||db,l=o;if(e.instrumentations){let L=e.instrumentations;l=z=>({...o(z),...eb(L.map(J=>J.route).filter(Boolean),z)})}let d={},f=new fb(_i(e.routes,l,void 0,d)),g=e.basename||"/";g.startsWith("/")||(g=`/${g}`);let m=e.dataStrategy||yb,x={...e.future},h=null,w=new Set,k=null,j=null,E=null,C=null,I=e.hydrationData!=null,M=dr(f.activeRoutes,e.history.location,g,!1,f.branches),_=!1,V=null,H,re;if(M==null&&!e.patchRoutesOnNavigation){let L=Xn(404,{pathname:e.history.location.pathname}),{matches:z,route:J}=tl(f.activeRoutes);H=!0,re=!H,M=z,V={[J.id]:L}}else if(M&&!e.hydrationData&&Fn(M,f.activeRoutes,e.history.location.pathname).active&&(M=null),M)if(M.some(L=>L.route.lazy))H=!1,re=!H;else if(!M.some(L=>Qd(L.route)))H=!0,re=!H;else{let L=e.hydrationData?e.hydrationData.loaderData:null,z=e.hydrationData?e.hydrationData.errors:null,J=M;if(z){let le=M.findIndex(ce=>z[ce.route.id]!==void 0);J=J.slice(0,le+1)}re=!1,H=!0,J.forEach(le=>{let ce=Zg(le.route,L,z);re=re||ce.renderFallback,H=H&&!ce.shouldLoad})}else{H=!1,re=!H,M=[];let L=Fn(null,f.activeRoutes,e.history.location.pathname);L.active&&L.matches&&(_=!0,M=L.matches)}let O,b={historyAction:e.history.action,location:e.history.location,matches:M,initialized:H,renderFallback:re,navigation:Uu,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||V,fetchers:new Map,blockers:new Map},R="POP",N=null,G=!1,Y,X=!1,K=new Map,te=null,q=!1,P=!1,F=new Set,U=new Map,W=0,T=-1,A=new Map,ee=new Set,ie=new Map,oe=new Map,ae=new Set,ue=new Map,ye,ve=null;function Ve(){if(h=e.history.listen(({action:L,location:z,delta:J})=>{if(ye){ye(),ye=void 0;return}Dt(ue.size===0||J!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let le=Vn({currentLocation:b.location,nextLocation:z,historyAction:L});if(le&&J!=null){let ce=new Promise(Ie=>{ye=Ie});e.history.go(J*-1),an(le,{state:"blocked",location:z,proceed(){an(le,{state:"proceeding",proceed:void 0,reset:void 0,location:z}),ce.then(()=>e.history.go(J))},reset(){let Ie=new Map(b.blockers);Ie.set(le,wi),Oe({blockers:Ie})}}),N==null||N.resolve(),N=null;return}return Se(L,z)}),a){Lb(n,K);let L=()=>Ab(n,K);n.addEventListener("pagehide",L),te=()=>n.removeEventListener("pagehide",L)}return b.initialized||Se("POP",b.location,{initialHydration:!0}),O}function je(){h&&h(),te&&te(),w.clear(),Y&&Y.abort(),b.fetchers.forEach((L,z)=>Mn(b.fetchers,z)),b.blockers.forEach((L,z)=>xr(z))}function Ue(L){if(w.add(L),k){let{newErrors:z}=k;k=null,L(b,{deletedFetchers:[],newErrors:z,viewTransitionOpts:void 0,flushSync:!1})}return()=>w.delete(L)}function Oe(L,z={}){L.matches&&(L.matches=L.matches.map(ce=>{let Ie=d[ce.route.id],De=ce.route;return De.element!==Ie.element||De.errorElement!==Ie.errorElement||De.hydrateFallbackElement!==Ie.hydrateFallbackElement?{...ce,route:Ie}:ce})),b={...b,...L};let J=[],le=[];b.fetchers.forEach((ce,Ie)=>{ce.state==="idle"&&(ae.has(Ie)?J.push(Ie):le.push(Ie))}),ae.forEach(ce=>{!b.fetchers.has(ce)&&!U.has(ce)&&J.push(ce)}),w.size===0&&(k={newErrors:L.errors??null}),[...w].forEach(ce=>ce(b,{deletedFetchers:J,newErrors:L.errors??null,viewTransitionOpts:z.viewTransitionOpts,flushSync:z.flushSync===!0})),J.forEach(ce=>Mn(b.fetchers,ce)),le.forEach(ce=>b.fetchers.delete(ce))}function dt(L,z,{flushSync:J}={}){var $e,Xe;let le=b.actionData!=null&&b.navigation.formMethod!=null&&hn(b.navigation.formMethod)&&b.navigation.state==="loading"&&(($e=L.state)==null?void 0:$e._isRedirect)!==!0,ce;z.actionData?Object.keys(z.actionData).length>0?ce=z.actionData:ce=null:le?ce=b.actionData:ce=null;let Ie=z.loaderData?U0(b.loaderData,z.loaderData,z.matches||[],z.errors):b.loaderData,De=b.blockers;De.size>0&&(De=new Map(De),De.forEach((Le,tt)=>De.set(tt,wi)));let Ke=q?!1:$t(L,z.matches||b.matches),xe=G===!0||b.navigation.formMethod!=null&&hn(b.navigation.formMethod)&&((Xe=L.state)==null?void 0:Xe._isRedirect)!==!0;f.commitHmrRoutes(),q||R==="POP"||(R==="PUSH"?e.history.push(L,L.state):R==="REPLACE"&&e.history.replace(L,L.state));let _e;if(R==="POP"){let Le=K.get(b.location.pathname);Le&&Le.has(L.pathname)?_e={currentLocation:b.location,nextLocation:L}:K.has(L.pathname)&&(_e={currentLocation:L,nextLocation:b.location})}else if(X){let Le=K.get(b.location.pathname);Le?Le.add(L.pathname):(Le=new Set([L.pathname]),K.set(b.location.pathname,Le)),_e={currentLocation:b.location,nextLocation:L}}Oe({...z,actionData:ce,loaderData:Ie,historyAction:R,location:L,initialized:!0,renderFallback:!1,navigation:Uu,revalidation:"idle",restoreScrollPosition:Ke,preventScrollReset:xe,blockers:De},{viewTransitionOpts:_e,flushSync:J===!0}),R="POP",G=!1,X=!1,q=!1,P=!1,N==null||N.resolve(),N=null,ve==null||ve.resolve(),ve=null}async function yt(L,z){if(N==null||N.resolve(),N=null,typeof L=="number"){N||(N=K0());let ut=N.promise;return e.history.go(L),ut}let J=bd(b.location,b.matches,g,L,z==null?void 0:z.fromRouteId,z==null?void 0:z.relative),{path:le,submission:ce,error:Ie}=F0(!1,J,z),De;z!=null&&z.mask&&(De={pathname:"",search:"",hash:"",...typeof z.mask=="string"?Ir(z.mask):{...b.location.mask,...z.mask}});let Ke=b.location,xe=Di(Ke,le,z&&z.state,void 0,De);xe={...xe,...e.history.encodeLocation(xe)};let _e=z&&z.replace!=null?z.replace:void 0,$e="PUSH";_e===!0?$e="REPLACE":_e===!1||ce!=null&&hn(ce.formMethod)&&ce.formAction===b.location.pathname+b.location.search&&($e="REPLACE");let Xe=z&&"preventScrollReset"in z?z.preventScrollReset===!0:void 0,Le=(z&&z.flushSync)===!0,tt=Vn({currentLocation:Ke,nextLocation:xe,historyAction:$e});if(tt){an(tt,{state:"blocked",location:xe,proceed(){an(tt,{state:"proceeding",proceed:void 0,reset:void 0,location:xe}),yt(L,z)},reset(){let ut=new Map(b.blockers);ut.set(tt,wi),Oe({blockers:ut})}});return}await Se($e,xe,{submission:ce,pendingError:Ie,preventScrollReset:Xe,replace:z&&z.replace,enableViewTransition:z&&z.viewTransition,flushSync:Le,callSiteDefaultShouldRevalidate:z&&z.defaultShouldRevalidate})}function vt(){ve||(ve=K0()),Qt(),Oe({revalidation:"loading"});let L=ve.promise;return b.navigation.state==="submitting"?L:b.navigation.state==="idle"?(Se(b.historyAction,b.location,{startUninterruptedRevalidation:!0}),L):(Se(R||b.historyAction,b.navigation.location,{overrideNavigation:b.navigation,enableViewTransition:X===!0}),L)}async function Se(L,z,J){Y&&Y.abort(),Y=null,R=L,q=(J&&J.startUninterruptedRevalidation)===!0,Lt(b.location,b.matches),G=(J&&J.preventScrollReset)===!0,X=(J&&J.enableViewTransition)===!0;let le=f.activeRoutes,ce=J!=null&&J.initialHydration&&b.matches&&b.matches.length>0&&!_?b.matches:dr(le,z,g,!1,f.branches),Ie=(J&&J.flushSync)===!0;if(ce&&b.initialized&&!P&&Eb(b.location,z)&&!(J&&J.submission&&hn(J.submission.formMethod))){dt(z,{matches:ce},{flushSync:Ie});return}let De=Fn(ce,le,z.pathname);if(De.active&&De.matches&&(ce=De.matches),!ce){let{error:St,notFoundMatches:pt,route:at}=Dr(z.pathname);dt(z,{matches:pt,loaderData:{},errors:{[at.id]:St}},{flushSync:Ie});return}let Ke=J&&J.overrideNavigation?{...J.overrideNavigation,matches:ce,historyAction:L}:void 0;Y=new AbortController;let xe=ks(e.history,z,Y.signal,J&&J.submission),_e=e.getContext?await e.getContext():new E0,$e;if(J&&J.pendingError)$e=[ga(ce).route.id,{type:"error",error:J.pendingError}];else if(J&&J.submission&&hn(J.submission.formMethod)){let St=await Re(xe,z,J.submission,ce,L,_e,De.active,J&&J.initialHydration===!0,{replace:J.replace,flushSync:Ie});if(St.shortCircuited)return;if(St.pendingActionResult){let[pt,at]=St.pendingActionResult;if(On(at)&&Li(at.error)&&at.error.status===404){Y=null,dt(z,{matches:St.matches,loaderData:{},errors:{[pt]:at.error}});return}}ce=St.matches||ce,$e=St.pendingActionResult,Ke=$u(z,ce,L,J.submission),Ie=!1,De.active=!1,xe=ks(e.history,xe.url,xe.signal)}let{shortCircuited:Xe,matches:Le,loaderData:tt,errors:ut,workingFetchers:Ot}=await we(xe,z,ce,L,_e,De.active,Ke,J&&J.submission,J&&J.fetcherSubmission,J&&J.replace,J&&J.initialHydration===!0,Ie,$e,J&&J.callSiteDefaultShouldRevalidate);Xe||(Y=null,dt(z,{matches:Le||ce,...$0($e),loaderData:tt,errors:ut,...Ot?{fetchers:Ot}:{}}))}async function Re(L,z,J,le,ce,Ie,De,Ke,xe={}){Qt();let _e=Db(z,le,ce,J);if(Oe({navigation:_e},{flushSync:xe.flushSync===!0}),De){let Le=await kt(le,z.pathname,L.signal);if(Le.type==="aborted")return{shortCircuited:!0};if(Le.type==="error"){if(Le.partialMatches.length===0){let{matches:ut,route:Ot}=tl(f.activeRoutes);return{matches:ut,pendingActionResult:[Ot.id,{type:"error",error:Le.error}]}}let tt=ga(Le.partialMatches).route.id;return{matches:Le.partialMatches,pendingActionResult:[tt,{type:"error",error:Le.error}]}}else if(Le.matches)le=Le.matches;else{let{notFoundMatches:tt,error:ut,route:Ot}=Dr(z.pathname);return{matches:tt,pendingActionResult:[Ot.id,{type:"error",error:ut}]}}}let $e,Xe=gl(le,z);if(!Xe.route.action&&!Xe.route.lazy)$e={type:"error",error:Xn(405,{method:L.method,pathname:z.pathname,routeId:Xe.route.id})};else{let Le=Ps(l,d,L,z,le,Xe,Ke?[]:s,Ie),tt=await rt(L,z,Le,Ie,null);if($e=tt[Xe.route.id],!$e){for(let ut of le)if(tt[ut.route.id]){$e=tt[ut.route.id];break}}if(L.signal.aborted)return{shortCircuited:!0}}if(Va($e)){let Le;return xe&&xe.replace!=null?Le=xe.replace:Le=B0($e.response.headers.get("Location"),new URL(L.url),g,e.history)===b.location.pathname+b.location.search,await Ge(L,$e,!0,{submission:J,replace:Le}),{shortCircuited:!0}}if(On($e)){let Le=ga(le,Xe.route.id);return(xe&&xe.replace)!==!0&&(R="PUSH"),{matches:le,pendingActionResult:[Le.route.id,$e,Xe.route.id]}}return{matches:le,pendingActionResult:[Xe.route.id,$e]}}async function we(L,z,J,le,ce,Ie,De,Ke,xe,_e,$e,Xe,Le,tt){let ut=De||$u(z,J,le,Ke),Ot=Ke||xe||W0(ut),St=!q&&!$e;if(Ie){if(St){let ln=me(Le);Oe({navigation:ut,...ln!==void 0?{actionData:ln}:{}},{flushSync:Xe})}let st=await kt(J,z.pathname,L.signal);if(st.type==="aborted")return{shortCircuited:!0};if(st.type==="error"){if(st.partialMatches.length===0){let{matches:mn,route:kn}=tl(f.activeRoutes);return{matches:mn,loaderData:{},errors:{[kn.id]:st.error}}}let ln=ga(st.partialMatches).route.id;return{matches:st.partialMatches,loaderData:{},errors:{[ln]:st.error}}}else if(st.matches)J=st.matches;else{let{error:ln,notFoundMatches:mn,route:kn}=Dr(z.pathname);return{matches:mn,loaderData:{},errors:{[kn.id]:ln}}}}let pt=f.activeRoutes,{dsMatches:at,revalidatingFetchers:sn}=I0(L,ce,l,d,e.history,b,J,Ot,z,$e?[]:s,$e===!0,P,F,ae,ie,ee,pt,g,e.patchRoutesOnNavigation!=null,f.branches,Le,tt);if(T=++W,!e.dataStrategy&&!at.some(st=>st.shouldLoad)&&!at.some(st=>st.route.middleware&&st.route.middleware.length>0)&&sn.length===0){let st=new Map(b.fetchers),ln=it(st);return dt(z,{matches:J,loaderData:{},errors:Le&&On(Le[1])?{[Le[0]]:Le[1].error}:null,...$0(Le),...ln?{fetchers:st}:{}},{flushSync:Xe}),{shortCircuited:!0}}if(St){let st={};if(!Ie){st.navigation=ut;let ln=me(Le);ln!==void 0&&(st.actionData=ln)}sn.length>0&&(st.fetchers=Fe(sn)),Oe(st,{flushSync:Xe})}sn.forEach(st=>{Ze(st.key),st.controller&&U.set(st.key,st.controller)});let _r=()=>sn.forEach(st=>Ze(st.key));Y&&Y.signal.addEventListener("abort",_r);let{loaderResults:nr,fetcherResults:rr}=await ht(at,sn,L,z,ce);if(L.signal.aborted)return{shortCircuited:!0};Y&&Y.signal.removeEventListener("abort",_r),sn.forEach(st=>U.delete(st.key));let vr=nl(nr);if(vr)return await Ge(L,vr.result,!0,{replace:_e}),{shortCircuited:!0};if(vr=nl(rr),vr)return ee.add(vr.key),await Ge(L,vr.result,!0,{replace:_e}),{shortCircuited:!0};let In=new Map(b.fetchers),{loaderData:Wr,errors:Wt}=V0(b,J,nr,Le,sn,rr,In);$e&&b.errors&&(Wt={...b.errors,...Wt});let Xa=it(In),on=Zt(T,In),qa=Xa||on||sn.length>0;return{matches:J,loaderData:Wr,errors:Wt,...qa?{workingFetchers:In}:{}}}function me(L){if(L&&!On(L[1]))return{[L[0]]:L[1].data};if(b.actionData)return Object.keys(b.actionData).length===0?null:b.actionData}function Fe(L){let z=new Map(b.fetchers);return L.forEach(J=>{let le=z.get(J.key),ce=ki(void 0,le?le.data:void 0);z.set(J.key,ce)}),z}async function be(L,z,J,le){Ze(L);let ce=(le&&le.flushSync)===!0,Ie=f.activeRoutes,De=bd(b.location,b.matches,g,J,z,le==null?void 0:le.relative),Ke=dr(Ie,De,g,!1,f.branches),xe=Fn(Ke,Ie,De);if(xe.active&&xe.matches&&(Ke=xe.matches),!Ke){Je(L,z,Xn(404,{pathname:De}),{flushSync:ce});return}let{path:_e,submission:$e,error:Xe}=F0(!0,De,le);if(Xe){Je(L,z,Xe,{flushSync:ce});return}let Le=e.getContext?await e.getContext():new E0,tt=(le&&le.preventScrollReset)===!0;if($e&&hn($e.formMethod)){await Ae(L,z,_e,Ke,Le,xe.active,ce,tt,$e,le&&le.defaultShouldRevalidate);return}ie.set(L,{routeId:z,path:_e}),await Qe(L,z,_e,Ke,Le,xe.active,ce,tt,$e)}async function Ae(L,z,J,le,ce,Ie,De,Ke,xe,_e){Qt(),ie.delete(L);let $e=b.fetchers.get(L);Pt(L,_b(xe,$e),{flushSync:De});let Xe=new AbortController,Le=ks(e.history,J,Xe.signal,xe);if(Ie){let bt=await kt(le,new URL(Le.url).pathname,Le.signal,L);if(bt.type==="aborted")return;if(bt.type==="error"){Je(L,z,bt.error,{flushSync:De});return}else if(bt.matches)le=bt.matches;else{Je(L,z,Xn(404,{pathname:J}),{flushSync:De});return}}let tt=gl(le,J);if(!tt.route.action&&!tt.route.lazy){let bt=Xn(405,{method:xe.formMethod,pathname:J,routeId:z});Je(L,z,bt,{flushSync:De});return}U.set(L,Xe);let ut=W,Ot=Ps(l,d,Le,J,le,tt,s,ce),St=await rt(Le,J,Ot,ce,L),pt=St[tt.route.id];if(!pt){for(let bt of Ot)if(St[bt.route.id]){pt=St[bt.route.id];break}}if(Le.signal.aborted){U.get(L)===Xe&&U.delete(L);return}if(ae.has(L)){if(Va(pt)||On(pt)){Pt(L,Er(void 0));return}}else{if(Va(pt))if(U.delete(L),T>ut){Pt(L,Er(void 0));return}else return ee.add(L),Pt(L,ki(xe)),Ge(Le,pt,!1,{fetcherSubmission:xe,preventScrollReset:Ke});if(On(pt)){Je(L,z,pt.error);return}}let at=b.navigation.location||b.location,sn=ks(e.history,at,Xe.signal),_r=f.activeRoutes,nr=b.navigation.state!=="idle"?dr(_r,b.navigation.location,g,!1,f.branches):b.matches;qe(nr,"Didn't find any matches after fetcher action");let rr=++W;A.set(L,rr);let{dsMatches:vr,revalidatingFetchers:In}=I0(sn,ce,l,d,e.history,b,nr,xe,at,s,!1,P,F,ae,ie,ee,_r,g,e.patchRoutesOnNavigation!=null,f.branches,[tt.route.id,pt],_e),Wr=ki(xe,pt.data),Wt=new Map(b.fetchers);Wt.set(L,Wr),In.filter(bt=>bt.key!==L).forEach(bt=>{let Lr=bt.key,Ja=Wt.get(Lr),Qi=ki(void 0,Ja?Ja.data:void 0);Wt.set(Lr,Qi),Ze(Lr),bt.controller&&U.set(Lr,bt.controller)}),Oe({fetchers:Wt});let Xa=()=>In.forEach(bt=>Ze(bt.key));Xe.signal.addEventListener("abort",Xa);let{loaderResults:on,fetcherResults:qa}=await ht(vr,In,sn,at,ce);if(Xe.signal.aborted)return;Xe.signal.removeEventListener("abort",Xa),A.delete(L),U.delete(L),In.forEach(bt=>U.delete(bt.key));let st=b.fetchers.has(L),ln=bt=>{if(!st)return bt;let Lr=new Map(bt.fetchers);return Lr.set(L,Er(pt.data)),{...bt,fetchers:Lr}},mn=nl(on);if(mn)return b=ln(b),Ge(sn,mn.result,!1,{preventScrollReset:Ke});if(mn=nl(qa),mn)return ee.add(mn.key),b=ln(b),Ge(sn,mn.result,!1,{preventScrollReset:Ke});let kn=new Map(b.fetchers);st&&kn.set(L,Er(pt.data));let{loaderData:Kr,errors:Yr}=V0(b,nr,on,void 0,In,qa,kn);Zt(rr,kn),b.navigation.state==="loading"&&rr>T?(qe(R,"Expected pending action"),Y&&Y.abort(),dt(b.navigation.location,{matches:nr,loaderData:Kr,errors:Yr,fetchers:kn})):(Oe({errors:Yr,loaderData:U0(b.loaderData,Kr,nr,Yr),fetchers:kn}),P=!1)}async function Qe(L,z,J,le,ce,Ie,De,Ke,xe){let _e=b.fetchers.get(L);Pt(L,ki(xe,_e?_e.data:void 0),{flushSync:De});let $e=new AbortController,Xe=ks(e.history,J,$e.signal);if(Ie){let pt=await kt(le,new URL(Xe.url).pathname,Xe.signal,L);if(pt.type==="aborted")return;if(pt.type==="error"){Je(L,z,pt.error,{flushSync:De});return}else if(pt.matches)le=pt.matches;else{Je(L,z,Xn(404,{pathname:J}),{flushSync:De});return}}let Le=gl(le,J);U.set(L,$e);let tt=W,ut=Ps(l,d,Xe,J,le,Le,s,ce),Ot=await rt(Xe,J,ut,ce,L),St=Ot[Le.route.id];if(!St){for(let pt of le)if(Ot[pt.route.id]){St=Ot[pt.route.id];break}}if(U.get(L)===$e&&U.delete(L),!Xe.signal.aborted){if(ae.has(L)){Pt(L,Er(void 0));return}if(Va(St))if(T>tt){Pt(L,Er(void 0));return}else{ee.add(L),await Ge(Xe,St,!1,{preventScrollReset:Ke});return}if(On(St)){Je(L,z,St.error);return}Pt(L,Er(St.data))}}async function Ge(L,z,J,{submission:le,fetcherSubmission:ce,preventScrollReset:Ie,replace:De}={}){J||(N==null||N.resolve(),N=null),z.response.headers.has("X-Remix-Revalidate")&&(P=!0);let Ke=z.response.headers.get("Location");qe(Ke,"Expected a Location header on the redirect Response"),Ke=B0(Ke,new URL(L.url),g,e.history);let xe=Di(b.location,Ke,{_isRedirect:!0});if(a){let ut=!1;if(z.response.headers.has("X-Remix-Reload-Document"))ut=!0;else if(qd(Ke)){const Ot=Bg(Ke,!0);ut=Ot.origin!==n.location.origin||er(Ot.pathname,g)==null}if(ut){De?n.location.replace(Ke):n.location.assign(Ke);return}}Y=null;let _e=De===!0||z.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:$e,formAction:Xe,formEncType:Le}=b.navigation;!le&&!ce&&$e&&Xe&&Le&&(le=W0(b.navigation));let tt=le||ce;if(cb.has(z.response.status)&&tt&&hn(tt.formMethod))await Se(_e,xe,{submission:{...tt,formAction:Ke},preventScrollReset:Ie||G,enableViewTransition:J?X:void 0});else{let ut=$u(xe,[],_e,le);await Se(_e,xe,{overrideNavigation:ut,fetcherSubmission:ce,preventScrollReset:Ie||G,enableViewTransition:J?X:void 0})}}async function rt(L,z,J,le,ce){var Ke;let Ie,De={};try{Ie=await bb(m,L,z,J,ce,le,!1)}catch(xe){return J.filter(_e=>_e.shouldLoad).forEach(_e=>{De[_e.route.id]={type:"error",error:xe}}),De}if(L.signal.aborted)return De;if(!hn(L.method))for(let xe of J){if(((Ke=Ie[xe.route.id])==null?void 0:Ke.type)==="error")break;!Ie.hasOwnProperty(xe.route.id)&&!b.loaderData.hasOwnProperty(xe.route.id)&&(!b.errors||!b.errors.hasOwnProperty(xe.route.id))&&xe.shouldCallHandler()&&(Ie[xe.route.id]={type:"error",result:new Error(`No result returned from dataStrategy for route ${xe.route.id}`)})}for(let[xe,_e]of Object.entries(Ie))if(Rb(_e)){let $e=_e.result;De[xe]={type:"redirect",response:Cb($e,L,xe,J,g)}}else De[xe]=await Sb(_e);return De}async function ht(L,z,J,le,ce){let Ie=rt(J,le,L,ce,null),De=Promise.all(z.map(async _e=>{if(_e.matches&&_e.match&&_e.request&&_e.controller){let Xe=(await rt(_e.request,_e.path,_e.matches,ce,_e.key))[_e.match.route.id];return{[_e.key]:Xe}}else return Promise.resolve({[_e.key]:{type:"error",error:Xn(404,{pathname:_e.path})}})})),Ke=await Ie,xe=(await De).reduce((_e,$e)=>Object.assign(_e,$e),{});return{loaderResults:Ke,fetcherResults:xe}}function Qt(){P=!0,ie.forEach((L,z)=>{U.has(z)&&F.add(z),Ze(z)})}function Pt(L,z,J={}){let le=new Map(b.fetchers);le.set(L,z),Oe({fetchers:le},{flushSync:(J&&J.flushSync)===!0})}function Je(L,z,J,le={}){let ce=ga(b.matches,z),Ie=new Map(b.fetchers);Mn(Ie,L),Oe({errors:{[ce.route.id]:J},fetchers:Ie},{flushSync:(le&&le.flushSync)===!0})}function wn(L){return oe.set(L,(oe.get(L)||0)+1),ae.has(L)&&ae.delete(L),b.fetchers.get(L)||ub}function ft(L,z){Ze(L,z==null?void 0:z.reason),Pt(L,Er(null))}function Mn(L,z){let J=b.fetchers.get(z);U.has(z)&&!(J&&J.state==="loading"&&A.has(z))&&Ze(z),ie.delete(z),A.delete(z),ee.delete(z),ae.delete(z),F.delete(z),L.delete(z)}function Te(L){let z=(oe.get(L)||0)-1;z<=0?(oe.delete(L),ae.add(L)):oe.set(L,z),Oe({fetchers:new Map(b.fetchers)})}function Ze(L,z){let J=U.get(L);J&&(J.abort(z),U.delete(L))}function ot(L,z){for(let J of L){let le=z.get(J);qe(le,`Expected fetcher: ${J}`);let ce=Er(le.data);z.set(J,ce)}}function it(L){let z=[],J=!1;for(let le of ee){let ce=L.get(le);qe(ce,`Expected fetcher: ${le}`),ce.state==="loading"&&(ee.delete(le),z.push(le),J=!0)}return ot(z,L),J}function Zt(L,z){let J=[];for(let[le,ce]of A)if(ce0}function gt(L,z){let J=b.blockers.get(L)||wi;return ue.get(L)!==z&&ue.set(L,z),J}function xr(L){b.blockers.delete(L),ue.delete(L)}function an(L,z){let J=b.blockers.get(L)||wi;qe(J.state==="unblocked"&&z.state==="blocked"||J.state==="blocked"&&z.state==="blocked"||J.state==="blocked"&&z.state==="proceeding"||J.state==="blocked"&&z.state==="unblocked"||J.state==="proceeding"&&z.state==="unblocked",`Invalid blocker state transition: ${J.state} -> ${z.state}`);let le=new Map(b.blockers);le.set(L,z),Oe({blockers:le})}function Vn({currentLocation:L,nextLocation:z,historyAction:J}){if(ue.size===0)return;ue.size>1&&Dt(!1,"A router only supports one blocker at a time");let le=Array.from(ue.entries()),[ce,Ie]=le[le.length-1],De=b.blockers.get(ce);if(!(De&&De.state==="proceeding")&&Ie({currentLocation:L,nextLocation:z,historyAction:J}))return ce}function Dr(L){let z=Xn(404,{pathname:L}),J=f.activeRoutes,{matches:le,route:ce}=tl(J);return{notFoundMatches:le,route:ce,error:z}}function Ye(L,z,J){if(j=L,C=z,E=J||null,!I&&b.navigation===Uu){I=!0;let le=$t(b.location,b.matches);le!=null&&Oe({restoreScrollPosition:le})}return()=>{j=null,C=null,E=null}}function Nt(L,z){return E&&E(L,z.map(le=>Vg(le,b.loaderData)))||L.key}function Lt(L,z){if(j&&C){let J=Nt(L,z);j[J]=C()}}function $t(L,z){if(j){let J=Nt(L,z),le=j[J];if(typeof le=="number")return le}return null}function Fn(L,z,J){if(e.patchRoutesOnNavigation){let le=f.branches;if(L){if(Object.keys(L[0].params).length>0)return{active:!0,matches:dr(z,J,g,!0,le)}}else return{active:!0,matches:dr(z,J,g,!0,le)||[]}}return{active:!1,matches:null}}async function kt(L,z,J,le){if(!e.patchRoutesOnNavigation)return{type:"success",matches:L};let ce=L;for(;;){let Ie=d;try{await e.patchRoutesOnNavigation({signal:J,path:z,matches:ce,fetcherKey:le,patch:(_e,$e)=>{J.aborted||D0(_e,$e,f,Ie,l,!1)}})}catch(_e){return{type:"error",error:_e,partialMatches:ce}}if(J.aborted)return{type:"aborted"};let De=f.branches,Ke=dr(f.activeRoutes,z,g,!1,De),xe=null;if(Ke){if(Object.keys(Ke[0].params).length===0)return{type:"success",matches:Ke};if(xe=dr(f.activeRoutes,z,g,!0,De),!(xe&&ce.lengthJ.route.id===z[le].route.id)}function yr(L){d={},f.setHmrRoutes(_i(L,l,void 0,d))}function Ht(L,z,J=!1){D0(L,z,f,d,l,J),f.hasHMRRoutes||Oe({})}return O={get basename(){return g},get future(){return x},get state(){return b},get routes(){return f.stableRoutes},get branches(){return f.branches},get manifest(){return d},get window(){return n},initialize:Ve,subscribe:Ue,enableScrollRestoration:Ye,navigate:yt,fetch:be,revalidate:vt,createHref:L=>e.history.createHref(L),encodeLocation:L=>e.history.encodeLocation(L),getFetcher:wn,resetFetcher:ft,deleteFetcher:Te,dispose:je,getBlocker:gt,deleteBlocker:xr,patchRoutes:Ht,_internalFetchControllers:U,_internalSetRoutes:yr,_internalSetStateDoNotUseOrYouWillBreakYourApp(L){Oe(L)}},e.instrumentations&&(O=tb(O,e.instrumentations.map(L=>L.router).filter(Boolean))),O}function pb(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function bd(e,n,a,s,o,l){let d,f;if(o){d=[];for(let m of n)if(d.push(m),m.route.id===o){f=m;break}}else d=n,f=n[n.length-1];let g=Ui(s||".",$l(d),er(e.pathname,a)||e.pathname,l==="path");if(s==null&&(g.search=e.search,g.hash=e.hash),(s==null||s===""||s===".")&&f){let m=ef(g.search);if(f.route.index&&!m)g.search=g.search?g.search.replace(/^\?/,"?index&"):"?index";else if(!f.route.index&&m){let x=new URLSearchParams(g.search),h=x.getAll("index");x.delete("index"),h.filter(k=>k).forEach(k=>x.append("index",k));let w=x.toString();g.search=w?`?${w}`:""}}return a!=="/"&&(g.pathname=Xv({basename:a,pathname:g.pathname})),Mr(g)}function F0(e,n,a){if(!a||!pb(a))return{path:n};if(a.formMethod&&!Ib(a.formMethod))return{path:n,error:Xn(405,{method:a.formMethod})};let s=()=>({path:n,error:Xn(400,{type:"invalid-body"})}),l=(a.formMethod||"get").toUpperCase(),d=i1(n);if(a.body!==void 0){if(a.formEncType==="text/plain"){if(!hn(l))return s();let h=typeof a.body=="string"?a.body:a.body instanceof FormData||a.body instanceof URLSearchParams?Array.from(a.body.entries()).reduce((w,[k,j])=>`${w}${k}=${j} `,""):String(a.body);return{path:n,submission:{formMethod:l,formAction:d,formEncType:a.formEncType,formData:void 0,json:void 0,text:h}}}else if(a.formEncType==="application/json"){if(!hn(l))return s();try{let h=typeof a.body=="string"?JSON.parse(a.body):a.body;return{path:n,submission:{formMethod:l,formAction:d,formEncType:a.formEncType,formData:void 0,json:h,text:void 0}}}catch{return s()}}}qe(typeof FormData=="function","FormData is not available in this environment");let f,g;if(a.formData)f=kd(a.formData),g=a.formData;else if(a.body instanceof FormData)f=kd(a.body),g=a.body;else if(a.body instanceof URLSearchParams)f=a.body,g=z0(f);else if(a.body==null)f=new URLSearchParams,g=new FormData;else try{f=new URLSearchParams(a.body),g=z0(f)}catch{return s()}let m={formMethod:l,formAction:d,formEncType:a&&a.formEncType||"application/x-www-form-urlencoded",formData:g,json:void 0,text:void 0};if(hn(m.formMethod))return{path:n,submission:m};let x=Ir(n);return e&&x.search&&ef(x.search)&&f.append("index",""),x.search=`?${f}`,{path:Mr(x),submission:m}}function I0(e,n,a,s,o,l,d,f,g,m,x,h,w,k,j,E,C,I,M,_,V,H){var q;let re=V?On(V[1])?V[1].error:V[1].data:void 0,O=o.createURL(l.location),b=o.createURL(g),R;if(x&&l.errors){let P=Object.keys(l.errors)[0];R=d.findIndex(F=>F.route.id===P)}else if(V&&On(V[1])){let P=V[0];R=d.findIndex(F=>F.route.id===P)-1}let N=V?V[1].statusCode:void 0,G=N&&N>=400,Y={currentUrl:O,currentParams:((q=l.matches[0])==null?void 0:q.params)||{},nextUrl:b,nextParams:d[0].params,...f,actionResult:re,actionStatus:N},X=Hi(d),K=d.map((P,F)=>{let{route:U}=P,W=null;if(R!=null&&F>R)W=!1;else if(U.lazy)W=!0;else if(!Qd(U))W=!1;else if(x){let{shouldLoad:ie}=Zg(U,l.loaderData,l.errors);W=ie}else mb(l.loaderData,l.matches[F],P)&&(W=!0);if(W!==null)return wd(a,s,e,g,X,P,m,n,W);let T=!1;typeof H=="boolean"?T=H:G?T=!1:(h||O.pathname+O.search===b.pathname+b.search||O.search!==b.search||gb(l.matches[F],P))&&(T=!0);let A={...Y,defaultShouldRevalidate:T},ee=Pi(P,A);return wd(a,s,e,g,X,P,m,n,ee,A,H)}),te=[];return j.forEach((P,F)=>{if(x||!d.some(ae=>ae.route.id===P.routeId)||k.has(F))return;let U=l.fetchers.get(F),W=U&&U.state!=="idle"&&U.data===void 0,T=dr(C,P.path,I??"/",!1,_);if(!T){if(M&&W)return;te.push({key:F,routeId:P.routeId,path:P.path,matches:null,match:null,request:null,controller:null});return}if(E.has(F))return;let A=gl(T,P.path),ee=new AbortController,ie=ks(o,P.path,ee.signal),oe=null;if(w.has(F))w.delete(F),oe=Ps(a,s,ie,P.path,T,A,m,n);else if(W)h&&(oe=Ps(a,s,ie,P.path,T,A,m,n));else{let ae;typeof H=="boolean"?ae=H:G?ae=!1:ae=h;let ue={...Y,defaultShouldRevalidate:ae};Pi(A,ue)&&(oe=Ps(a,s,ie,P.path,T,A,m,n,ue))}oe&&te.push({key:F,routeId:P.routeId,path:P.path,matches:oe,match:A,request:ie,controller:ee})}),{dsMatches:K,revalidatingFetchers:te}}function Qd(e){return e.loader!=null||e.middleware!=null&&e.middleware.length>0}function Zg(e,n,a){if(e.lazy)return{shouldLoad:!0,renderFallback:!0};if(!Qd(e))return{shouldLoad:!1,renderFallback:!1};let s=n!=null&&e.id in n,o=a!=null&&a[e.id]!==void 0;if(!s&&o)return{shouldLoad:!1,renderFallback:!1};if(typeof e.loader=="function"&&e.loader.hydrate===!0)return{shouldLoad:!0,renderFallback:!s};let l=!s&&!o;return{shouldLoad:l,renderFallback:l}}function mb(e,n,a){let s=!n||a.route.id!==n.route.id,o=!e.hasOwnProperty(a.route.id);return s||o}function gb(e,n){let a=e.route.path;return e.pathname!==n.pathname||a!=null&&a.endsWith("*")&&e.params["*"]!==n.params["*"]}function Pi(e,n){if(e.route.shouldRevalidate){let a=e.route.shouldRevalidate(n);if(typeof a=="boolean")return a}return n.defaultShouldRevalidate}function D0(e,n,a,s,o,l){let d;if(e){let m=s[e];qe(m,`No route found to patch children into: routeId = ${e}`),m.children||(m.children=[]),d=m.children}else d=a.activeRoutes;let f=[],g=[];if(n.forEach(m=>{let x=d.find(h=>e1(m,h));x?g.push({existingRoute:x,newRoute:m}):f.push(m)}),f.length>0){let m=_i(f,o,[e||"_","patch",String((d==null?void 0:d.length)||"0")],s);d.push(...m)}if(l&&g.length>0)for(let m=0;m{var l;return(l=n.children)==null?void 0:l.some(d=>e1(s,d))}))??!1:!1}var _0=new WeakMap,t1=({key:e,route:n,manifest:a,mapRouteProperties:s})=>{let o=a[n.id];if(qe(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let l=o.lazy[e];if(!l)return;let d=_0.get(o);d||(d={},_0.set(o,d));let f=d[e];if(f)return f;let g=(async()=>{let m=Iv(e),h=o[e]!==void 0&&e!=="hasErrorBoundary";if(m)Dt(!m,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),d[e]=Promise.resolve();else if(h)Dt(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let w=await l();w!=null&&(Object.assign(o,{[e]:w}),Object.assign(o,s(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(w=>w===void 0)&&(o.lazy=void 0))})();return d[e]=g,g},L0=new WeakMap;function xb(e,n,a,s,o){let l=a[e.id];if(qe(l,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let x=L0.get(l);if(x)return{lazyRoutePromise:x,lazyHandlerPromise:x};let h=(async()=>{qe(typeof e.lazy=="function","No lazy route function found");let w=await e.lazy(),k={};for(let j in w){let E=w[j];if(E===void 0)continue;let C=_v(j),M=l[j]!==void 0&&j!=="hasErrorBoundary";C?Dt(!C,"Route property "+j+" is not a supported property to be returned from a lazy route function. This property will be ignored."):M?Dt(!M,`Route "${l.id}" has a static property "${j}" defined but its lazy function is also returning a value for this property. The lazy route property "${j}" will be ignored.`):k[j]=E}Object.assign(l,k),Object.assign(l,{...s(l),lazy:void 0})})();return L0.set(l,h),h.catch(()=>{}),{lazyRoutePromise:h,lazyHandlerPromise:h}}let d=Object.keys(e.lazy),f=[],g;for(let x of d){if(o&&o.includes(x))continue;let h=t1({key:x,route:e,manifest:a,mapRouteProperties:s});h&&(f.push(h),x===n&&(g=h))}let m=f.length>0?Promise.all(f).then(()=>{}):void 0;return m==null||m.catch(()=>{}),g==null||g.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:g}}async function A0(e){let n=e.matches.filter(o=>o.shouldLoad),a={};return(await Promise.all(n.map(o=>o.resolve()))).forEach((o,l)=>{a[n[l].route.id]=o}),a}async function yb(e){return e.matches.some(n=>n.route.middleware)?n1(e,()=>A0(e)):A0(e)}function n1(e,n){return vb(e,n,s=>{if(Fb(s))throw s;return s},Tb,a);function a(s,o,l){if(l)return Promise.resolve(Object.assign(l.value,{[o]:{type:"error",result:s}}));{let{matches:d}=e,f=Math.min(Math.max(d.findIndex(m=>m.route.id===o),0),Math.max(d.findIndex(m=>m.shouldCallHandler()),0)),g=ga(d,d[f].route.id).route.id;return Promise.resolve({[g]:{type:"error",result:s}})}}}async function vb(e,n,a,s,o){let{matches:l,...d}=e,f=l.flatMap(m=>m.route.middleware?m.route.middleware.map(x=>[m.route.id,x]):[]);return await r1(d,f,n,a,s,o)}async function r1(e,n,a,s,o,l,d=0){let{request:f}=e;if(f.signal.aborted)throw f.signal.reason??new Error(`Request aborted: ${f.method} ${f.url}`);let g=n[d];if(!g)return await a();let[m,x]=g,h,w=async()=>{if(h)throw new Error("You may only call `next()` once per middleware");try{return h={value:await r1(e,n,a,s,o,l,d+1)},h.value}catch(k){return h={value:await l(k,m,h)},h.value}};try{let k=await x(e,w),j=k!=null?s(k):void 0;return o(j)?j:h?j??h.value:(h={value:await w()},h.value)}catch(k){return await l(k,m,h)}}function a1(e,n,a,s,o){let l=t1({key:"middleware",route:s.route,manifest:n,mapRouteProperties:e}),d=xb(s.route,hn(a.method)?"action":"loader",n,e,o);return{middleware:l,route:d.lazyRoutePromise,handler:d.lazyHandlerPromise}}function wd(e,n,a,s,o,l,d,f,g,m=null,x){let h=!1,w=a1(e,n,a,l,d);return{...l,_lazyPromises:w,shouldLoad:g,shouldRevalidateArgs:m,shouldCallHandler(k){return h=!0,m?typeof x=="boolean"?Pi(l,{...m,defaultShouldRevalidate:x}):typeof k=="boolean"?Pi(l,{...m,defaultShouldRevalidate:k}):Pi(l,m):g},resolve(k){let{lazy:j,loader:E,middleware:C}=l.route,I=h||g||k&&!hn(a.method)&&(j||E),M=C&&C.length>0&&!E&&!j;return I&&(hn(a.method)||!M)?wb({request:a,path:s,pattern:o,match:l,lazyHandlerPromise:w==null?void 0:w.handler,lazyRoutePromise:w==null?void 0:w.route,handlerOverride:k,scopedContext:f}):Promise.resolve({type:"data",result:void 0})}}}function Ps(e,n,a,s,o,l,d,f,g=null){return o.map(m=>m.route.id!==l.route.id?{...m,shouldLoad:!1,shouldRevalidateArgs:g,shouldCallHandler:()=>!1,_lazyPromises:a1(e,n,a,m,d),resolve:()=>Promise.resolve({type:"data",result:void 0})}:wd(e,n,a,s,Hi(o),m,d,f,!0,g))}async function bb(e,n,a,s,o,l,d){s.some(x=>{var h;return(h=x._lazyPromises)==null?void 0:h.middleware})&&await Promise.all(s.map(x=>{var h;return(h=x._lazyPromises)==null?void 0:h.middleware}));let f={request:n,url:s1(n,a),pattern:Hi(s),params:s[0].params,context:l,matches:s},m=await e({...f,fetcherKey:o,runClientMiddleware:x=>{let h=f;return n1(h,()=>x({...h,fetcherKey:o,runClientMiddleware:()=>{throw new Error("Cannot call `runClientMiddleware()` from within an `runClientMiddleware` handler")}}))}});try{await Promise.all(s.flatMap(x=>{var h,w;return[(h=x._lazyPromises)==null?void 0:h.handler,(w=x._lazyPromises)==null?void 0:w.route]}))}catch{}return m}async function wb({request:e,path:n,pattern:a,match:s,lazyHandlerPromise:o,lazyRoutePromise:l,handlerOverride:d,scopedContext:f}){let g,m,x=hn(e.method),h=x?"action":"loader",w=k=>{let j,E=new Promise((M,_)=>j=_);m=()=>j(),e.signal.addEventListener("abort",m);let C=M=>typeof k!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${h}" [routeId: ${s.route.id}]`)):k({request:e,url:s1(e,n),pattern:a,params:s.params,context:f},...M!==void 0?[M]:[]),I=(async()=>{try{return{type:"data",result:await(d?d(_=>C(_)):C())}}catch(M){return{type:"error",result:M}}})();return Promise.race([I,E])};try{let k=x?s.route.action:s.route.loader;if(o||l)if(k){let j,[E]=await Promise.all([w(k).catch(C=>{j=C}),o,l]);if(j!==void 0)throw j;g=E}else{await o;let j=x?s.route.action:s.route.loader;if(j)[g]=await Promise.all([w(j),l]);else if(h==="action"){let E=new URL(e.url),C=E.pathname+E.search;throw Xn(405,{method:e.method,pathname:C,routeId:s.route.id})}else return{type:"data",result:void 0}}else if(k)g=await w(k);else{let j=new URL(e.url),E=j.pathname+j.search;throw Xn(404,{pathname:E})}}catch(k){return{type:"error",result:k}}finally{m&&e.signal.removeEventListener("abort",m)}return g}async function kb(e){let n=e.headers.get("Content-Type");return n&&/\bapplication\/json\b/.test(n)?e.body==null?null:e.json():e.text()}async function Sb(e){var s,o,l,d,f;let{result:n,type:a}=e;if(Zd(n)){let g;try{g=await kb(n)}catch(m){return{type:"error",error:m}}return a==="error"?{type:"error",error:new $i(n.status,n.statusText,g),statusCode:n.status,headers:n.headers}:{type:"data",data:g,statusCode:n.status,headers:n.headers}}return a==="error"?H0(n)?n.data instanceof Error?{type:"error",error:n.data,statusCode:(s=n.init)==null?void 0:s.status,headers:(o=n.init)!=null&&o.headers?new Headers(n.init.headers):void 0}:{type:"error",error:Nb(n),statusCode:Li(n)?n.status:void 0,headers:(l=n.init)!=null&&l.headers?new Headers(n.init.headers):void 0}:{type:"error",error:n,statusCode:Li(n)?n.status:void 0}:H0(n)?{type:"data",data:n.data,statusCode:(d=n.init)==null?void 0:d.status,headers:(f=n.init)!=null&&f.headers?new Headers(n.init.headers):void 0}:{type:"data",data:n}}function Cb(e,n,a,s,o){let l=e.headers.get("Location");if(qe(l,"Redirects returned/thrown from loaders/actions must have a Location header"),!qd(l)){let d=s.slice(0,s.findIndex(f=>f.route.id===a)+1);l=bd(new URL(n.url),d,o,l),e.headers.set("Location",l)}return e}var O0=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function B0(e,n,a,s){if(qd(e)){let o=e,l=o.startsWith("//")?new URL(n.protocol+o):new URL(o);if(O0.includes(l.protocol))throw new Error("Invalid redirect location");let d=er(l.pathname,a)!=null;if(l.origin===n.origin&&d)return Jd(l.pathname)+l.search+l.hash}try{let o=s.createURL(e);if(O0.includes(o.protocol))throw new Error("Invalid redirect location")}catch{}return e}function ks(e,n,a,s){let o=e.createURL(i1(n)).toString(),l={signal:a};if(s&&hn(s.formMethod)){let{formMethod:d,formEncType:f}=s;l.method=d.toUpperCase(),f==="application/json"?(l.headers=new Headers({"Content-Type":f}),l.body=JSON.stringify(s.json)):f==="text/plain"?l.body=s.text:f==="application/x-www-form-urlencoded"&&s.formData?l.body=kd(s.formData):l.body=s.formData}return new Request(o,l)}function s1(e,n){let a=new URL(e.url),s=typeof n=="string"?Ir(n):n;if(a.pathname=s.pathname||"/",s.search){let o=new URLSearchParams(s.search),l=o.getAll("index");o.delete("index");for(let d of l.filter(Boolean))o.append("index",d);a.search=o.size?`?${o.toString()}`:""}else a.search="";return a.hash=s.hash||"",a}function kd(e){let n=new URLSearchParams;for(let[a,s]of e.entries())n.append(a,typeof s=="string"?s:s.name);return n}function z0(e){let n=new FormData;for(let[a,s]of e.entries())n.append(a,s);return n}function jb(e,n,a,s=!1,o=!1){let l={},d=null,f,g=!1,m={},x=a&&On(a[1])?a[1].error:void 0;return e.forEach(h=>{if(!(h.route.id in n))return;let w=h.route.id,k=n[w];if(qe(!Va(k),"Cannot handle redirect results in processLoaderData"),On(k)){let j=k.error;if(x!==void 0&&(j=x,x=void 0),d=d||{},o)d[w]=j;else{let E=ga(e,w);d[E.route.id]==null&&(d[E.route.id]=j)}s||(l[w]=Qg),g||(g=!0,f=Li(k.error)?k.error.status:500),k.headers&&(m[w]=k.headers)}else l[w]=k.data,k.statusCode&&k.statusCode!==200&&!g&&(f=k.statusCode),k.headers&&(m[w]=k.headers)}),x!==void 0&&a&&(d={[a[0]]:x},a[2]&&(l[a[2]]=void 0)),{loaderData:l,errors:d,statusCode:f||200,loaderHeaders:m}}function V0(e,n,a,s,o,l,d){let{loaderData:f,errors:g}=jb(n,a,s);return o.filter(m=>!m.matches||m.matches.some(x=>x.shouldLoad)).forEach(m=>{let{key:x,match:h,controller:w}=m;if(w&&w.signal.aborted)return;let k=l[x];if(qe(k,"Did not find corresponding fetcher result"),On(k)){let j=ga(e.matches,h==null?void 0:h.route.id);g&&g[j.route.id]||(g={...g,[j.route.id]:k.error}),d.delete(x)}else if(Va(k))qe(!1,"Unhandled fetcher revalidation redirect");else{let j=Er(k.data);d.set(x,j)}}),{loaderData:f,errors:g}}function U0(e,n,a,s){let o=Object.entries(n).filter(([,l])=>l!==Qg).reduce((l,[d,f])=>(l[d]=f,l),{});for(let l of a){let d=l.route.id;if(!n.hasOwnProperty(d)&&e.hasOwnProperty(d)&&l.route.loader&&(o[d]=e[d]),s&&s.hasOwnProperty(d))break}return o}function $0(e){return e?On(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ga(e,n){return(n?e.slice(0,e.findIndex(s=>s.route.id===n)+1):[...e]).reverse().find(s=>s.route.hasErrorBoundary===!0)||e[0]}function tl(e){let n=e.length===1?e[0]:e.find(a=>a.index||!a.path||a.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n}}function Xn(e,{pathname:n,routeId:a,method:s,type:o,message:l}={}){let d="Unknown Server Error",f="Unknown @remix-run/router error";return e===400?(d="Bad Request",s&&n&&a?f=`You made a ${s} request to "${n}" but did not provide a \`loader\` for route "${a}", so there is no way to handle the request.`:o==="invalid-body"&&(f="Unable to encode submission body")):e===403?(d="Forbidden",f=`Route "${a}" does not match URL "${n}"`):e===404?(d="Not Found",f=`No route matches URL "${n}"`):e===405&&(d="Method Not Allowed",s&&n&&a?f=`You made a ${s.toUpperCase()} request to "${n}" but did not provide an \`action\` for route "${a}", so there is no way to handle the request.`:s&&(f=`Invalid request method "${s.toUpperCase()}"`)),new $i(e||500,d,new Error(f),!0)}function nl(e){let n=Object.entries(e);for(let a=n.length-1;a>=0;a--){let[s,o]=n[a];if(Va(o))return{key:s,result:o}}}function i1(e){let n=typeof e=="string"?Ir(e):e;return Mr({...n,hash:""})}function Eb(e,n){return e.pathname!==n.pathname||e.search!==n.search?!1:e.hash===""?n.hash!=="":e.hash===n.hash?!0:n.hash!==""}function Nb(e){var n,a;return new $i(((n=e.init)==null?void 0:n.status)??500,((a=e.init)==null?void 0:a.statusText)??"Internal Server Error",e.data)}function Tb(e){return e!=null&&typeof e=="object"&&Object.entries(e).every(([n,a])=>typeof n=="string"&&Pb(a))}function Pb(e){return e!=null&&typeof e=="object"&&"type"in e&&"result"in e&&(e.type==="data"||e.type==="error")}function Rb(e){return Zd(e.result)&&qg.has(e.result.status)}function On(e){return e.type==="error"}function Va(e){return(e&&e.type)==="redirect"}function H0(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Zd(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Mb(e){return qg.has(e)}function Fb(e){return Zd(e)&&Mb(e.status)&&e.headers.has("Location")}function Ib(e){return lb.has(e.toUpperCase())}function hn(e){return ib.has(e.toUpperCase())}function ef(e){return new URLSearchParams(e).getAll("index").some(n=>n==="")}function gl(e,n){let a=typeof n=="string"?Ir(n).search:n.search;if(e[e.length-1].route.index&&ef(a||""))return e[e.length-1];let s=Wg(e);return s[s.length-1]}function W0(e){let{formMethod:n,formAction:a,formEncType:s,text:o,formData:l,json:d}=e;if(!(!n||!a||!s)){if(o!=null)return{formMethod:n,formAction:a,formEncType:s,formData:void 0,json:void 0,text:o};if(l!=null)return{formMethod:n,formAction:a,formEncType:s,formData:l,json:void 0,text:void 0};if(d!==void 0)return{formMethod:n,formAction:a,formEncType:s,formData:void 0,json:d,text:void 0}}}function $u(e,n,a,s){return s?{state:"loading",location:e,matches:n,historyAction:a,formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text}:{state:"loading",location:e,matches:n,historyAction:a,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Db(e,n,a,s){return{state:"submitting",location:e,matches:n,historyAction:a,formMethod:s.formMethod,formAction:s.formAction,formEncType:s.formEncType,formData:s.formData,json:s.json,text:s.text}}function ki(e,n){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function _b(e,n){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n?n.data:void 0}}function Er(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Lb(e,n){try{let a=e.sessionStorage.getItem(Jg);if(a){let s=JSON.parse(a);for(let[o,l]of Object.entries(s||{}))l&&Array.isArray(l)&&n.set(o,new Set(l||[]))}}catch{}}function Ab(e,n){if(n.size>0){let a={};for(let[s,o]of n)a[s]=[...o];try{e.sessionStorage.setItem(Jg,JSON.stringify(a))}catch(s){Dt(!1,`Failed to save applied view transitions in sessionStorage (${s}).`)}}}function K0(){let e,n,a=new Promise((s,o)=>{e=async l=>{s(l);try{await a}catch{}},n=async l=>{o(l);try{await a}catch{}}});return{promise:a,resolve:e,reject:n}}var Ya=v.createContext(null);Ya.displayName="DataRouter";var Wi=v.createContext(null);Wi.displayName="DataRouterState";var o1=v.createContext(!1);function l1(){return v.useContext(o1)}var tf=v.createContext({isTransitioning:!1});tf.displayName="ViewTransition";var c1=v.createContext(new Map);c1.displayName="Fetchers";var Ob=v.createContext(null);Ob.displayName="Await";var zn=v.createContext(null);zn.displayName="Navigation";var Hl=v.createContext(null);Hl.displayName="Location";var tr=v.createContext({outlet:null,matches:[],isDataRoute:!1});tr.displayName="Route";var nf=v.createContext(null);nf.displayName="RouteError";var u1="REACT_ROUTER_ERROR",Bb="REDIRECT",zb="ROUTE_ERROR_RESPONSE";function Vb(e){if(e.startsWith(`${u1}:${Bb}:{`))try{let n=JSON.parse(e.slice(28));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.location=="string"&&typeof n.reloadDocument=="boolean"&&typeof n.replace=="boolean")return n}catch{}}function Ub(e){if(e.startsWith(`${u1}:${zb}:{`))try{let n=JSON.parse(e.slice(40));if(typeof n=="object"&&n&&typeof n.status=="number"&&typeof n.statusText=="string")return new $i(n.status,n.statusText,n.data)}catch{}}function $b(e,{relative:n}={}){qe(As(),"useHref() may be used only in the context of a component.");let{basename:a,navigator:s}=v.useContext(zn),{hash:o,pathname:l,search:d}=Ki(e,{relative:n}),f=l;return a!=="/"&&(f=l==="/"?a:Qn([a,l])),s.createHref({pathname:f,search:d,hash:o})}function As(){return v.useContext(Hl)!=null}function Ut(){return qe(As(),"useLocation() may be used only in the context of a component."),v.useContext(Hl).location}var d1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function f1(e){v.useContext(zn).static||v.useLayoutEffect(e)}function bn(){let{isDataRoute:e}=v.useContext(tr);return e?a5():Hb()}function Hb(){qe(As(),"useNavigate() may be used only in the context of a component.");let e=v.useContext(Ya),{basename:n,navigator:a}=v.useContext(zn),{matches:s}=v.useContext(tr),{pathname:o}=Ut(),l=JSON.stringify($l(s)),d=v.useRef(!1);return f1(()=>{d.current=!0}),v.useCallback((g,m={})=>{if(Dt(d.current,d1),!d.current)return;if(typeof g=="number"){a.go(g);return}let x=Ui(g,JSON.parse(l),o,m.relative==="path");e==null&&n!=="/"&&(x.pathname=x.pathname==="/"?n:Qn([n,x.pathname])),(m.replace?a.replace:a.push)(x,m.state,m)},[n,a,l,o,e])}var Wb=v.createContext(null);function Kb(e){let n=v.useContext(tr).outlet;return v.useMemo(()=>n&&v.createElement(Wb.Provider,{value:e},n),[n,e])}function Wl(){let{matches:e}=v.useContext(tr),n=e[e.length-1];return(n==null?void 0:n.params)??{}}function Ki(e,{relative:n}={}){let{matches:a}=v.useContext(tr),{pathname:s}=Ut(),o=JSON.stringify($l(a));return v.useMemo(()=>Ui(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function Yb(e,n,a){qe(As(),"useRoutes() may be used only in the context of a component.");let{navigator:s}=v.useContext(zn),{matches:o}=v.useContext(tr),l=o[o.length-1],d=l?l.params:{},f=l?l.pathname:"/",g=l?l.pathnameBase:"/",m=l&&l.route;{let C=m&&m.path||"";m1(f,!m||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${f}" (under ) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. Please change the parent to .`)}let x=Ut(),h;h=x;let w=h.pathname||"/",k=w;if(g!=="/"){let C=g.replace(/^\//,"").split("/");k="/"+w.replace(/^\//,"").split("/").slice(C.length).join("/")}let j=a&&a.state.matches.length?a.state.matches.map(C=>Object.assign(C,{route:a.manifest[C.route.id]||C.route})):zg(e,{pathname:k});return Dt(m||j!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Dt(j==null||j[j.length-1].route.element!==void 0||j[j.length-1].route.Component!==void 0||j[j.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an with a null value by default resulting in an "empty" page.`),Qb(j&&j.map(C=>Object.assign({},C,{params:Object.assign({},d,C.params),pathname:Qn([g,s.encodeLocation?s.encodeLocation(C.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?g:Qn([g,s.encodeLocation?s.encodeLocation(C.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:C.pathnameBase])})),o,a)}function Gb(){let e=r5(),n=Li(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,s="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:s},l={padding:"2px 4px",backgroundColor:s},d=null;return console.error("Error handled by React Router default ErrorBoundary:",e),d=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:l},"ErrorBoundary")," or"," ",v.createElement("code",{style:l},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},n),a?v.createElement("pre",{style:o},a):null,d)}var Xb=v.createElement(Gb,null),h1=class extends v.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){this.props.onError?this.props.onError(e,n):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const a=Ub(e.digest);a&&(e=a)}let n=e!==void 0?v.createElement(tr.Provider,{value:this.props.routeContext},v.createElement(nf.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?v.createElement(qb,{error:e},n):n}};h1.contextType=o1;var Hu=new WeakMap;function qb({children:e,error:n}){let{basename:a}=v.useContext(zn);if(typeof n=="object"&&n&&"digest"in n&&typeof n.digest=="string"){let s=Vb(n.digest);if(s){let o=Hu.get(n);if(o)throw o;let l=Yg(s.location,a);if(Kg&&!Hu.get(n))if(l.isExternal||s.reloadDocument)window.location.href=l.absoluteURL||l.to;else{const d=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:s.replace}));throw Hu.set(n,d),d}return v.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return e}function Jb({routeContext:e,match:n,children:a}){let s=v.useContext(Ya);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),v.createElement(tr.Provider,{value:e},a)}function Qb(e,n=[],a){let s=a==null?void 0:a.state;if(e==null){if(!s)return null;if(s.errors)e=s.matches;else if(n.length===0&&!s.initialized&&s.matches.length>0)e=s.matches;else return null}let o=e,l=s==null?void 0:s.errors;if(l!=null){let x=o.findIndex(h=>h.route.id&&(l==null?void 0:l[h.route.id])!==void 0);qe(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),o=o.slice(0,Math.min(o.length,x+1))}let d=!1,f=-1;if(a&&s){d=s.renderFallback;for(let x=0;x=0?o=o.slice(0,f+1):o=[o[0]];break}}}}let g=a==null?void 0:a.onError,m=s&&g?(x,h)=>{var w,k;g(x,{location:s.location,params:((k=(w=s.matches)==null?void 0:w[0])==null?void 0:k.params)??{},pattern:Hi(s.matches),errorInfo:h})}:void 0;return o.reduceRight((x,h,w)=>{let k,j=!1,E=null,C=null;s&&(k=l&&h.route.id?l[h.route.id]:void 0,E=h.route.errorElement||Xb,d&&(f<0&&w===0?(m1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),j=!0,C=null):f===w&&(j=!0,C=h.route.hydrateFallbackElement||null)));let I=n.concat(o.slice(0,w+1)),M=()=>{let _;return k?_=E:j?_=C:h.route.Component?_=v.createElement(h.route.Component,null):h.route.element?_=h.route.element:_=x,v.createElement(Jb,{match:h,routeContext:{outlet:x,matches:I,isDataRoute:s!=null},children:_})};return s&&(h.route.ErrorBoundary||h.route.errorElement||w===0)?v.createElement(h1,{location:s.location,revalidation:s.revalidation,component:E,error:k,children:M(),routeContext:{outlet:null,matches:I,isDataRoute:!0},onError:m}):M()},null)}function rf(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Zb(e){let n=v.useContext(Ya);return qe(n,rf(e)),n}function p1(e){let n=v.useContext(Wi);return qe(n,rf(e)),n}function e5(e){let n=v.useContext(tr);return qe(n,rf(e)),n}function af(e){let n=e5(e),a=n.matches[n.matches.length-1];return qe(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function t5(){return af("useRouteId")}function n5(){let{matches:e,loaderData:n}=p1("useMatches");return v.useMemo(()=>e.map(a=>Vg(a,n)),[e,n])}function r5(){var s;let e=v.useContext(nf),n=p1("useRouteError"),a=af("useRouteError");return e!==void 0?e:(s=n.errors)==null?void 0:s[a]}function a5(){let{router:e}=Zb("useNavigate"),n=af("useNavigate"),a=v.useRef(!1);return f1(()=>{a.current=!0}),v.useCallback(async(o,l={})=>{Dt(a.current,d1),a.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:n,...l}))},[e,n])}var Y0={};function m1(e,n,a){!n&&!Y0[e]&&(Y0[e]=!0,Dt(!1,a))}var G0={};function X0(e,n){!e&&!G0[n]&&(G0[n]=!0,console.warn(n))}var s5="useOptimistic",q0=Tv[s5],i5=()=>{};function o5(e){return q0?q0(e):[e,i5]}function l5(e){let n={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Dt(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(n,{element:v.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Dt(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(n,{hydrateFallbackElement:v.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Dt(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(n,{errorElement:v.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),n}var c5=["HydrateFallback","hydrateFallbackElement"],u5=class{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=a=>{this.status==="pending"&&(this.status="resolved",e(a))},this.reject=a=>{this.status==="pending"&&(this.status="rejected",n(a))}})}};function d5({router:e,flushSync:n,onError:a,useTransitions:s}){s=l1()||s;let[l,d]=v.useState(e.state),[f,g]=o5(l),[m,x]=v.useState(),[h,w]=v.useState({isTransitioning:!1}),[k,j]=v.useState(),[E,C]=v.useState(),[I,M]=v.useState(),_=v.useRef(new Map),V=v.useCallback((b,{deletedFetchers:R,newErrors:N,flushSync:G,viewTransitionOpts:Y})=>{N&&a&&Object.values(N).forEach(K=>{var te;return a(K,{location:b.location,params:((te=b.matches[0])==null?void 0:te.params)??{},pattern:Hi(b.matches)})}),b.fetchers.forEach((K,te)=>{K.data!==void 0&&_.current.set(te,K.data)}),R.forEach(K=>_.current.delete(K)),X0(G===!1||n!=null,'You provided the `flushSync` option to a router update, but you are not using the `` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let X=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(X0(Y==null||X,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!Y||!X){n&&G?n(()=>d(b)):s===!1?d(b):v.startTransition(()=>{s===!0&&g(K=>J0(K,b)),d(b)});return}if(n&&G){n(()=>{E&&(k==null||k.resolve(),E.skipTransition()),w({isTransitioning:!0,flushSync:!0,currentLocation:Y.currentLocation,nextLocation:Y.nextLocation})});let K=e.window.document.startViewTransition(()=>{n(()=>d(b))});K.finished.finally(()=>{n(()=>{j(void 0),C(void 0),x(void 0),w({isTransitioning:!1})})}),n(()=>C(K));return}E?(k==null||k.resolve(),E.skipTransition(),M({state:b,currentLocation:Y.currentLocation,nextLocation:Y.nextLocation})):(x(b),w({isTransitioning:!0,flushSync:!1,currentLocation:Y.currentLocation,nextLocation:Y.nextLocation}))},[e.window,n,E,k,s,g,a]);v.useLayoutEffect(()=>e.subscribe(V),[e,V]),v.useEffect(()=>{h.isTransitioning&&!h.flushSync&&j(new u5)},[h]),v.useEffect(()=>{if(k&&m&&e.window){let b=m,R=k.promise,N=e.window.document.startViewTransition(async()=>{s===!1?d(b):v.startTransition(()=>{s===!0&&g(G=>J0(G,b)),d(b)}),await R});N.finished.finally(()=>{j(void 0),C(void 0),x(void 0),w({isTransitioning:!1})}),C(N)}},[m,k,e.window,s,g]),v.useEffect(()=>{k&&m&&f.location.key===m.location.key&&k.resolve()},[k,E,f.location,m]),v.useEffect(()=>{!h.isTransitioning&&I&&(x(I.state),w({isTransitioning:!0,flushSync:!1,currentLocation:I.currentLocation,nextLocation:I.nextLocation}),M(void 0))},[h.isTransitioning,I]);let H=v.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:b=>e.navigate(b),push:(b,R,N)=>e.navigate(b,{state:R,preventScrollReset:N==null?void 0:N.preventScrollReset}),replace:(b,R,N)=>e.navigate(b,{replace:!0,state:R,preventScrollReset:N==null?void 0:N.preventScrollReset})}),[e]),re=e.basename||"/",O=v.useMemo(()=>({router:e,navigator:H,static:!1,basename:re,onError:a}),[e,H,re,a]);return v.createElement(v.Fragment,null,v.createElement(Ya.Provider,{value:O},v.createElement(Wi.Provider,{value:f},v.createElement(c1.Provider,{value:_.current},v.createElement(tf.Provider,{value:h},v.createElement(p5,{basename:re,location:f.location,navigationType:f.historyAction,navigator:H,useTransitions:s},v.createElement(f5,{routes:e.routes,manifest:e.manifest,future:e.future,state:f,isStatic:!1,onError:a})))))),null)}function J0(e,n){return{...e,navigation:n.navigation.state!=="idle"?n.navigation:e.navigation,revalidation:n.revalidation!=="idle"?n.revalidation:e.revalidation,actionData:n.navigation.state!=="submitting"?n.actionData:e.actionData,fetchers:n.fetchers}}var f5=v.memo(h5);function h5({routes:e,manifest:n,future:a,state:s,isStatic:o,onError:l}){return Yb(e,void 0,{manifest:n,state:s,isStatic:o,onError:l})}function g1({to:e,replace:n,state:a,relative:s}){qe(As()," may be used only in the context of a component.");let{static:o}=v.useContext(zn);Dt(!o," must not be used on the initial render in a . This is a no-op, but you should modify your code so the is only ever rendered in response to some user interaction or state change.");let{matches:l}=v.useContext(tr),{pathname:d}=Ut(),f=bn(),g=Ui(e,$l(l),d,s==="path"),m=JSON.stringify(g);return v.useEffect(()=>{f(JSON.parse(m),{replace:n,state:a,relative:s})},[f,m,s,n,a]),null}function p5({basename:e="/",children:n=null,location:a,navigationType:s="POP",navigator:o,static:l=!1,useTransitions:d}){qe(!As(),"You cannot render a inside another . You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),g=v.useMemo(()=>({basename:f,navigator:o,static:l,useTransitions:d,future:{}}),[f,o,l,d]);typeof a=="string"&&(a=Ir(a));let{pathname:m="/",search:x="",hash:h="",state:w=null,key:k="default",mask:j}=a,E=v.useMemo(()=>{let C=er(m,f);return C==null?null:{location:{pathname:C,search:x,hash:h,state:w,key:k,mask:j},navigationType:s}},[f,m,x,h,w,k,s,j]);return Dt(E!=null,` is not able to match the URL "${m}${x}${h}" because it does not start with the basename, so the won't render anything.`),E==null?null:v.createElement(zn.Provider,{value:g},v.createElement(Hl.Provider,{children:n,value:E}))}var xl="get",yl="application/x-www-form-urlencoded";function Kl(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function m5(e){return Kl(e)&&e.tagName.toLowerCase()==="button"}function g5(e){return Kl(e)&&e.tagName.toLowerCase()==="form"}function x5(e){return Kl(e)&&e.tagName.toLowerCase()==="input"}function y5(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function v5(e,n){return e.button===0&&(!n||n==="_self")&&!y5(e)}function Sd(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,a)=>{let s=e[a];return n.concat(Array.isArray(s)?s.map(o=>[a,o]):[[a,s]])},[]))}function b5(e,n){let a=Sd(e);return n&&n.forEach((s,o)=>{a.has(o)||n.getAll(o).forEach(l=>{a.append(o,l)})}),a}var rl=null;function w5(){if(rl===null)try{new FormData(document.createElement("form"),0),rl=!1}catch{rl=!0}return rl}var k5=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Wu(e){return e!=null&&!k5.has(e)?(Dt(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${yl}"`),null):e}function S5(e,n){let a,s,o,l,d;if(g5(e)){let f=e.getAttribute("action");s=f?er(f,n):null,a=e.getAttribute("method")||xl,o=Wu(e.getAttribute("enctype"))||yl,l=new FormData(e)}else if(m5(e)||x5(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a