var aj=Object.defineProperty;var ij=(e,t,n)=>t in e?aj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Jr=(e,t,n)=>ij(e,typeof t!="symbol"?t+"":t,n);function iR(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();function Mo(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ah={exports:{}},Vc={},ih={exports:{}},wn={};/** * @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 qw;function lj(){if(qw)return wn;qw=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),i=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),v=Symbol.iterator;function p(B){return B===null||typeof B!="object"?null:(B=v&&B[v]||B["@@iterator"],typeof B=="function"?B:null)}var y={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,C={};function g(B,V,U){this.props=B,this.context=V,this.refs=C,this.updater=U||y}g.prototype.isReactComponent={},g.prototype.setState=function(B,V){if(typeof B!="object"&&typeof B!="function"&&B!=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,B,V,"setState")},g.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};function S(){}S.prototype=g.prototype;function x(B,V,U){this.props=B,this.context=V,this.refs=C,this.updater=U||y}var w=x.prototype=new S;w.constructor=x,h(w,g.prototype),w.isPureReactComponent=!0;var R=Array.isArray,$=Object.prototype.hasOwnProperty,O={current:null},I={key:!0,ref:!0,__self:!0,__source:!0};function N(B,V,U){var q,G={},Z=null,ee=null;if(V!=null)for(q in V.ref!==void 0&&(ee=V.ref),V.key!==void 0&&(Z=""+V.key),V)$.call(V,q)&&!I.hasOwnProperty(q)&&(G[q]=V[q]);var J=arguments.length-2;if(J===1)G.children=U;else if(1>>1,V=F[B];if(0>>1;Bo(G,K))Zo(ee,G)?(F[B]=ee,F[Z]=K,B=Z):(F[B]=G,F[q]=K,B=q);else if(Zo(ee,K))F[B]=ee,F[Z]=K,B=Z;else break e}}return W}function o(F,W){var K=F.sortIndex-W.sortIndex;return K!==0?K:F.id-W.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],d=[],m=1,v=null,p=3,y=!1,h=!1,C=!1,g=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(F){for(var W=n(d);W!==null;){if(W.callback===null)r(d);else if(W.startTime<=F)r(d),W.sortIndex=W.expirationTime,t(u,W);else break;W=n(d)}}function R(F){if(C=!1,w(F),!h)if(n(u)!==null)h=!0,j($);else{var W=n(d);W!==null&&z(R,W.startTime-F)}}function $(F,W){h=!1,C&&(C=!1,S(N),N=-1),y=!0;var K=p;try{for(w(W),v=n(u);v!==null&&(!(v.expirationTime>W)||F&&!k());){var B=v.callback;if(typeof B=="function"){v.callback=null,p=v.priorityLevel;var V=B(v.expirationTime<=W);W=e.unstable_now(),typeof V=="function"?v.callback=V:v===n(u)&&r(u),w(W)}else r(u);v=n(u)}if(v!==null)var U=!0;else{var q=n(d);q!==null&&z(R,q.startTime-W),U=!1}return U}finally{v=null,p=K,y=!1}}var O=!1,I=null,N=-1,P=5,T=-1;function k(){return!(e.unstable_now()-TF||125B?(F.sortIndex=K,t(d,F),n(u)===null&&F===n(d)&&(C?(S(N),N=-1):C=!0,z(R,K-B))):(F.sortIndex=V,t(u,F),h||y||(h=!0,j($))),F},e.unstable_shouldYield=k,e.unstable_wrapCallback=function(F){var W=p;return function(){var K=p;p=W;try{return F.apply(this,arguments)}finally{p=K}}}}(ch)),ch}var Zw;function dj(){return Zw||(Zw=1,sh.exports=uj()),sh.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 Jw;function fj(){if(Jw)return uo;Jw=1;var e=uv(),t=dj();function n(c){for(var f="https://reactjs.org/docs/error-decoder.html?invariant="+c,b=1;b"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),u=Object.prototype.hasOwnProperty,d=/^[: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]*$/,m={},v={};function p(c){return u.call(v,c)?!0:u.call(m,c)?!1:d.test(c)?v[c]=!0:(m[c]=!0,!1)}function y(c,f,b,E){if(b!==null&&b.type===0)return!1;switch(typeof f){case"function":case"symbol":return!0;case"boolean":return E?!1:b!==null?!b.acceptsBooleans:(c=c.toLowerCase().slice(0,5),c!=="data-"&&c!=="aria-");default:return!1}}function h(c,f,b,E){if(f===null||typeof f>"u"||y(c,f,b,E))return!0;if(E)return!1;if(b!==null)switch(b.type){case 3:return!f;case 4:return f===!1;case 5:return isNaN(f);case 6:return isNaN(f)||1>f}return!1}function C(c,f,b,E,M,L,Q){this.acceptsBooleans=f===2||f===3||f===4,this.attributeName=E,this.attributeNamespace=M,this.mustUseProperty=b,this.propertyName=c,this.type=f,this.sanitizeURL=L,this.removeEmptyString=Q}var g={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(c){g[c]=new C(c,0,!1,c,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(c){var f=c[0];g[f]=new C(f,1,!1,c[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(c){g[c]=new C(c,2,!1,c.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(c){g[c]=new C(c,2,!1,c,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(c){g[c]=new C(c,3,!1,c.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(c){g[c]=new C(c,3,!0,c,null,!1,!1)}),["capture","download"].forEach(function(c){g[c]=new C(c,4,!1,c,null,!1,!1)}),["cols","rows","size","span"].forEach(function(c){g[c]=new C(c,6,!1,c,null,!1,!1)}),["rowSpan","start"].forEach(function(c){g[c]=new C(c,5,!1,c.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function x(c){return c[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(c){var f=c.replace(S,x);g[f]=new C(f,1,!1,c,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(c){var f=c.replace(S,x);g[f]=new C(f,1,!1,c,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(c){var f=c.replace(S,x);g[f]=new C(f,1,!1,c,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(c){g[c]=new C(c,1,!1,c.toLowerCase(),null,!1,!1)}),g.xlinkHref=new C("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(c){g[c]=new C(c,1,!1,c.toLowerCase(),null,!0,!0)});function w(c,f,b,E){var M=g.hasOwnProperty(f)?g[f]:null;(M!==null?M.type!==0:E||!(2ge||M[Q]!==L[ge]){var $e=` `+M[Q].replace(" at new "," at ");return c.displayName&&$e.includes("")&&($e=$e.replace("",c.displayName)),$e}while(1<=Q&&0<=ge);break}}}finally{U=!1,Error.prepareStackTrace=b}return(c=c?c.displayName||c.name:"")?V(c):""}function G(c){switch(c.tag){case 5:return V(c.type);case 16:return V("Lazy");case 13:return V("Suspense");case 19:return V("SuspenseList");case 0:case 2:case 15:return c=q(c.type,!1),c;case 11:return c=q(c.type.render,!1),c;case 1:return c=q(c.type,!0),c;default:return""}}function Z(c){if(c==null)return null;if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case I:return"Fragment";case O:return"Portal";case P:return"Profiler";case N:return"StrictMode";case A:return"Suspense";case _:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case k:return(c.displayName||"Context")+".Consumer";case T:return(c._context.displayName||"Context")+".Provider";case H:var f=c.render;return c=c.displayName,c||(c=f.displayName||f.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case D:return f=c.displayName||null,f!==null?f:Z(c.type)||"Memo";case j:f=c._payload,c=c._init;try{return Z(c(f))}catch{}}return null}function ee(c){var f=c.type;switch(c.tag){case 24:return"Cache";case 9:return(f.displayName||"Context")+".Consumer";case 10:return(f._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return c=f.render,c=c.displayName||c.name||"",f.displayName||(c!==""?"ForwardRef("+c+")":"ForwardRef");case 7:return"Fragment";case 5:return f;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Z(f);case 8:return f===N?"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 f=="function")return f.displayName||f.name||null;if(typeof f=="string")return f}return null}function J(c){switch(typeof c){case"boolean":case"number":case"string":case"undefined":return c;case"object":return c;default:return""}}function oe(c){var f=c.type;return(c=c.nodeName)&&c.toLowerCase()==="input"&&(f==="checkbox"||f==="radio")}function ae(c){var f=oe(c)?"checked":"value",b=Object.getOwnPropertyDescriptor(c.constructor.prototype,f),E=""+c[f];if(!c.hasOwnProperty(f)&&typeof b<"u"&&typeof b.get=="function"&&typeof b.set=="function"){var M=b.get,L=b.set;return Object.defineProperty(c,f,{configurable:!0,get:function(){return M.call(this)},set:function(Q){E=""+Q,L.call(this,Q)}}),Object.defineProperty(c,f,{enumerable:b.enumerable}),{getValue:function(){return E},setValue:function(Q){E=""+Q},stopTracking:function(){c._valueTracker=null,delete c[f]}}}}function te(c){c._valueTracker||(c._valueTracker=ae(c))}function ne(c){if(!c)return!1;var f=c._valueTracker;if(!f)return!0;var b=f.getValue(),E="";return c&&(E=oe(c)?c.checked?"true":"false":c.value),c=E,c!==b?(f.setValue(c),!0):!1}function ie(c){if(c=c||(typeof document<"u"?document:void 0),typeof c>"u")return null;try{return c.activeElement||c.body}catch{return c.body}}function de(c,f){var b=f.checked;return K({},f,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:b??c._wrapperState.initialChecked})}function ve(c,f){var b=f.defaultValue==null?"":f.defaultValue,E=f.checked!=null?f.checked:f.defaultChecked;b=J(f.value!=null?f.value:b),c._wrapperState={initialChecked:E,initialValue:b,controlled:f.type==="checkbox"||f.type==="radio"?f.checked!=null:f.value!=null}}function se(c,f){f=f.checked,f!=null&&w(c,"checked",f,!1)}function he(c,f){se(c,f);var b=J(f.value),E=f.type;if(b!=null)E==="number"?(b===0&&c.value===""||c.value!=b)&&(c.value=""+b):c.value!==""+b&&(c.value=""+b);else if(E==="submit"||E==="reset"){c.removeAttribute("value");return}f.hasOwnProperty("value")?je(c,f.type,b):f.hasOwnProperty("defaultValue")&&je(c,f.type,J(f.defaultValue)),f.checked==null&&f.defaultChecked!=null&&(c.defaultChecked=!!f.defaultChecked)}function Se(c,f,b){if(f.hasOwnProperty("value")||f.hasOwnProperty("defaultValue")){var E=f.type;if(!(E!=="submit"&&E!=="reset"||f.value!==void 0&&f.value!==null))return;f=""+c._wrapperState.initialValue,b||f===c.value||(c.value=f),c.defaultValue=f}b=c.name,b!==""&&(c.name=""),c.defaultChecked=!!c._wrapperState.initialChecked,b!==""&&(c.name=b)}function je(c,f,b){(f!=="number"||ie(c.ownerDocument)!==c)&&(b==null?c.defaultValue=""+c._wrapperState.initialValue:c.defaultValue!==""+b&&(c.defaultValue=""+b))}var Te=Array.isArray;function Ce(c,f,b,E){if(c=c.options,f){f={};for(var M=0;M"+f.valueOf().toString()+"",f=nt.firstChild;c.firstChild;)c.removeChild(c.firstChild);for(;f.firstChild;)c.appendChild(f.firstChild)}});function Ze(c,f){if(f){var b=c.firstChild;if(b&&b===c.lastChild&&b.nodeType===3){b.nodeValue=f;return}}c.textContent=f}var Le={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},Re=["Webkit","ms","Moz","O"];Object.keys(Le).forEach(function(c){Re.forEach(function(f){f=f+c.charAt(0).toUpperCase()+c.substring(1),Le[f]=Le[c]})});function qe(c,f,b){return f==null||typeof f=="boolean"||f===""?"":b||typeof f!="number"||f===0||Le.hasOwnProperty(c)&&Le[c]?(""+f).trim():f+"px"}function ye(c,f){c=c.style;for(var b in f)if(f.hasOwnProperty(b)){var E=b.indexOf("--")===0,M=qe(b,f[b],E);b==="float"&&(b="cssFloat"),E?c.setProperty(b,M):c[b]=M}}var Oe=K({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 Fe(c,f){if(f){if(Oe[c]&&(f.children!=null||f.dangerouslySetInnerHTML!=null))throw Error(n(137,c));if(f.dangerouslySetInnerHTML!=null){if(f.children!=null)throw Error(n(60));if(typeof f.dangerouslySetInnerHTML!="object"||!("__html"in f.dangerouslySetInnerHTML))throw Error(n(61))}if(f.style!=null&&typeof f.style!="object")throw Error(n(62))}}function we(c,f){if(c.indexOf("-")===-1)return typeof f.is=="string";switch(c){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 He=null;function ot(c){return c=c.target||c.srcElement||window,c.correspondingUseElement&&(c=c.correspondingUseElement),c.nodeType===3?c.parentNode:c}var gt=null,yt=null,Rt=null;function qt(c){if(c=Ic(c)){if(typeof gt!="function")throw Error(n(280));var f=c.stateNode;f&&(f=Fd(f),gt(c.stateNode,c.type,f))}}function Wt(c){yt?Rt?Rt.push(c):Rt=[c]:yt=c}function It(){if(yt){var c=yt,f=Rt;if(Rt=yt=null,qt(c),f)for(c=0;c>>=0,c===0?32:31-(ar(c)/Yn|0)|0}var Qn=64,Wn=4194304;function Zn(c){switch(c&-c){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 c&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return c&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return c}}function mn(c,f){var b=c.pendingLanes;if(b===0)return 0;var E=0,M=c.suspendedLanes,L=c.pingedLanes,Q=b&268435455;if(Q!==0){var ge=Q&~M;ge!==0?E=Zn(ge):(L&=Q,L!==0&&(E=Zn(L)))}else Q=b&~M,Q!==0?E=Zn(Q):L!==0&&(E=Zn(L));if(E===0)return 0;if(f!==0&&f!==E&&(f&M)===0&&(M=E&-E,L=f&-f,M>=L||M===16&&(L&4194240)!==0))return f;if((E&4)!==0&&(E|=b&16),f=c.entangledLanes,f!==0)for(c=c.entanglements,f&=E;0b;b++)f.push(c);return f}function en(c,f,b){c.pendingLanes|=f,f!==536870912&&(c.suspendedLanes=0,c.pingedLanes=0),c=c.eventTimes,f=31-Pn(f),c[f]=b}function _n(c,f){var b=c.pendingLanes&~f;c.pendingLanes=f,c.suspendedLanes=0,c.pingedLanes=0,c.expiredLanes&=f,c.mutableReadLanes&=f,c.entangledLanes&=f,f=c.entanglements;var E=c.eventTimes;for(c=c.expirationTimes;0=bc),AS=" ",BS=!1;function HS(c,f){switch(c){case"keyup":return eD.indexOf(f.keyCode)!==-1;case"keydown":return f.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function VS(c){return c=c.detail,typeof c=="object"&&"data"in c?c.data:null}var Hl=!1;function nD(c,f){switch(c){case"compositionend":return VS(f);case"keypress":return f.which!==32?null:(BS=!0,AS);case"textInput":return c=f.data,c===AS&&BS?null:c;default:return null}}function rD(c,f){if(Hl)return c==="compositionend"||!Fp&&HS(c,f)?(c=DS(),Id=_p=oi=null,Hl=!1,c):null;switch(c){case"paste":return null;case"keypress":if(!(f.ctrlKey||f.altKey||f.metaKey)||f.ctrlKey&&f.altKey){if(f.char&&1=f)return{node:b,offset:f-c};c=E}e:{for(;b;){if(b.nextSibling){b=b.nextSibling;break e}b=b.parentNode}b=void 0}b=XS(b)}}function ZS(c,f){return c&&f?c===f?!0:c&&c.nodeType===3?!1:f&&f.nodeType===3?ZS(c,f.parentNode):"contains"in c?c.contains(f):c.compareDocumentPosition?!!(c.compareDocumentPosition(f)&16):!1:!1}function JS(){for(var c=window,f=ie();f instanceof c.HTMLIFrameElement;){try{var b=typeof f.contentWindow.location.href=="string"}catch{b=!1}if(b)c=f.contentWindow;else break;f=ie(c.document)}return f}function Hp(c){var f=c&&c.nodeName&&c.nodeName.toLowerCase();return f&&(f==="input"&&(c.type==="text"||c.type==="search"||c.type==="tel"||c.type==="url"||c.type==="password")||f==="textarea"||c.contentEditable==="true")}function fD(c){var f=JS(),b=c.focusedElem,E=c.selectionRange;if(f!==b&&b&&b.ownerDocument&&ZS(b.ownerDocument.documentElement,b)){if(E!==null&&Hp(b)){if(f=E.start,c=E.end,c===void 0&&(c=f),"selectionStart"in b)b.selectionStart=f,b.selectionEnd=Math.min(c,b.value.length);else if(c=(f=b.ownerDocument||document)&&f.defaultView||window,c.getSelection){c=c.getSelection();var M=b.textContent.length,L=Math.min(E.start,M);E=E.end===void 0?L:Math.min(E.end,M),!c.extend&&L>E&&(M=E,E=L,L=M),M=QS(b,L);var Q=QS(b,E);M&&Q&&(c.rangeCount!==1||c.anchorNode!==M.node||c.anchorOffset!==M.offset||c.focusNode!==Q.node||c.focusOffset!==Q.offset)&&(f=f.createRange(),f.setStart(M.node,M.offset),c.removeAllRanges(),L>E?(c.addRange(f),c.extend(Q.node,Q.offset)):(f.setEnd(Q.node,Q.offset),c.addRange(f)))}}for(f=[],c=b;c=c.parentNode;)c.nodeType===1&&f.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof b.focus=="function"&&b.focus(),b=0;b=document.documentMode,Vl=null,Vp=null,wc=null,Wp=!1;function ex(c,f,b){var E=b.window===b?b.document:b.nodeType===9?b:b.ownerDocument;Wp||Vl==null||Vl!==ie(E)||(E=Vl,"selectionStart"in E&&Hp(E)?E={start:E.selectionStart,end:E.selectionEnd}:(E=(E.ownerDocument&&E.ownerDocument.defaultView||window).getSelection(),E={anchorNode:E.anchorNode,anchorOffset:E.anchorOffset,focusNode:E.focusNode,focusOffset:E.focusOffset}),wc&&xc(wc,E)||(wc=E,E=kd(Vp,"onSelect"),0Yl||(c.current=ng[Yl],ng[Yl]=null,Yl--)}function Un(c,f){Yl++,ng[Yl]=c.current,c.current=f}var si={},Hr=li(si),ao=li(!1),Xi=si;function Gl(c,f){var b=c.type.contextTypes;if(!b)return si;var E=c.stateNode;if(E&&E.__reactInternalMemoizedUnmaskedChildContext===f)return E.__reactInternalMemoizedMaskedChildContext;var M={},L;for(L in b)M[L]=f[L];return E&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=f,c.__reactInternalMemoizedMaskedChildContext=M),M}function io(c){return c=c.childContextTypes,c!=null}function Ad(){Xn(ao),Xn(Hr)}function px(c,f,b){if(Hr.current!==si)throw Error(n(168));Un(Hr,f),Un(ao,b)}function gx(c,f,b){var E=c.stateNode;if(f=f.childContextTypes,typeof E.getChildContext!="function")return b;E=E.getChildContext();for(var M in E)if(!(M in f))throw Error(n(108,ee(c)||"Unknown",M));return K({},b,E)}function Bd(c){return c=(c=c.stateNode)&&c.__reactInternalMemoizedMergedChildContext||si,Xi=Hr.current,Un(Hr,c),Un(ao,ao.current),!0}function hx(c,f,b){var E=c.stateNode;if(!E)throw Error(n(169));b?(c=gx(c,f,Xi),E.__reactInternalMemoizedMergedChildContext=c,Xn(ao),Xn(Hr),Un(Hr,c)):Xn(ao),Un(ao,b)}var Aa=null,Hd=!1,rg=!1;function yx(c){Aa===null?Aa=[c]:Aa.push(c)}function $D(c){Hd=!0,yx(c)}function ci(){if(!rg&&Aa!==null){rg=!0;var c=0,f=Zt;try{var b=Aa;for(Zt=1;c>=Q,M-=Q,Ba=1<<32-Pn(f)+M|b<an?(Pr=Qt,Qt=null):Pr=Qt.sibling;var Dn=at(ze,Qt,Ae[an],pt);if(Dn===null){Qt===null&&(Qt=Pr);break}c&&Qt&&Dn.alternate===null&&f(ze,Qt),Ie=L(Dn,Ie,an),Xt===null?Vt=Dn:Xt.sibling=Dn,Xt=Dn,Qt=Pr}if(an===Ae.length)return b(ze,Qt),nr&&Zi(ze,an),Vt;if(Qt===null){for(;anan?(Pr=Qt,Qt=null):Pr=Qt.sibling;var yi=at(ze,Qt,Dn.value,pt);if(yi===null){Qt===null&&(Qt=Pr);break}c&&Qt&&yi.alternate===null&&f(ze,Qt),Ie=L(yi,Ie,an),Xt===null?Vt=yi:Xt.sibling=yi,Xt=yi,Qt=Pr}if(Dn.done)return b(ze,Qt),nr&&Zi(ze,an),Vt;if(Qt===null){for(;!Dn.done;an++,Dn=Ae.next())Dn=dt(ze,Dn.value,pt),Dn!==null&&(Ie=L(Dn,Ie,an),Xt===null?Vt=Dn:Xt.sibling=Dn,Xt=Dn);return nr&&Zi(ze,an),Vt}for(Qt=E(ze,Qt);!Dn.done;an++,Dn=Ae.next())Dn=_t(Qt,ze,an,Dn.value,pt),Dn!==null&&(c&&Dn.alternate!==null&&Qt.delete(Dn.key===null?an:Dn.key),Ie=L(Dn,Ie,an),Xt===null?Vt=Dn:Xt.sibling=Dn,Xt=Dn);return c&&Qt.forEach(function(oj){return f(ze,oj)}),nr&&Zi(ze,an),Vt}function ur(ze,Ie,Ae,pt){if(typeof Ae=="object"&&Ae!==null&&Ae.type===I&&Ae.key===null&&(Ae=Ae.props.children),typeof Ae=="object"&&Ae!==null){switch(Ae.$$typeof){case $:e:{for(var Vt=Ae.key,Xt=Ie;Xt!==null;){if(Xt.key===Vt){if(Vt=Ae.type,Vt===I){if(Xt.tag===7){b(ze,Xt.sibling),Ie=M(Xt,Ae.props.children),Ie.return=ze,ze=Ie;break e}}else if(Xt.elementType===Vt||typeof Vt=="object"&&Vt!==null&&Vt.$$typeof===j&&$x(Vt)===Xt.type){b(ze,Xt.sibling),Ie=M(Xt,Ae.props),Ie.ref=Pc(ze,Xt,Ae),Ie.return=ze,ze=Ie;break e}b(ze,Xt);break}else f(ze,Xt);Xt=Xt.sibling}Ae.type===I?(Ie=il(Ae.props.children,ze.mode,pt,Ae.key),Ie.return=ze,ze=Ie):(pt=hf(Ae.type,Ae.key,Ae.props,null,ze.mode,pt),pt.ref=Pc(ze,Ie,Ae),pt.return=ze,ze=pt)}return Q(ze);case O:e:{for(Xt=Ae.key;Ie!==null;){if(Ie.key===Xt)if(Ie.tag===4&&Ie.stateNode.containerInfo===Ae.containerInfo&&Ie.stateNode.implementation===Ae.implementation){b(ze,Ie.sibling),Ie=M(Ie,Ae.children||[]),Ie.return=ze,ze=Ie;break e}else{b(ze,Ie);break}else f(ze,Ie);Ie=Ie.sibling}Ie=eh(Ae,ze.mode,pt),Ie.return=ze,ze=Ie}return Q(ze);case j:return Xt=Ae._init,ur(ze,Ie,Xt(Ae._payload),pt)}if(Te(Ae))return At(ze,Ie,Ae,pt);if(W(Ae))return Ht(ze,Ie,Ae,pt);Ud(ze,Ae)}return typeof Ae=="string"&&Ae!==""||typeof Ae=="number"?(Ae=""+Ae,Ie!==null&&Ie.tag===6?(b(ze,Ie.sibling),Ie=M(Ie,Ae),Ie.return=ze,ze=Ie):(b(ze,Ie),Ie=Jg(Ae,ze.mode,pt),Ie.return=ze,ze=Ie),Q(ze)):b(ze,Ie)}return ur}var Jl=Ex(!0),Ox=Ex(!1),qd=li(null),Yd=null,es=null,cg=null;function ug(){cg=es=Yd=null}function dg(c){var f=qd.current;Xn(qd),c._currentValue=f}function fg(c,f,b){for(;c!==null;){var E=c.alternate;if((c.childLanes&f)!==f?(c.childLanes|=f,E!==null&&(E.childLanes|=f)):E!==null&&(E.childLanes&f)!==f&&(E.childLanes|=f),c===b)break;c=c.return}}function ts(c,f){Yd=c,cg=es=null,c=c.dependencies,c!==null&&c.firstContext!==null&&((c.lanes&f)!==0&&(lo=!0),c.firstContext=null)}function Lo(c){var f=c._currentValue;if(cg!==c)if(c={context:c,memoizedValue:f,next:null},es===null){if(Yd===null)throw Error(n(308));es=c,Yd.dependencies={lanes:0,firstContext:c}}else es=es.next=c;return f}var Ji=null;function mg(c){Ji===null?Ji=[c]:Ji.push(c)}function Rx(c,f,b,E){var M=f.interleaved;return M===null?(b.next=b,mg(f)):(b.next=M.next,M.next=b),f.interleaved=b,Va(c,E)}function Va(c,f){c.lanes|=f;var b=c.alternate;for(b!==null&&(b.lanes|=f),b=c,c=c.return;c!==null;)c.childLanes|=f,b=c.alternate,b!==null&&(b.childLanes|=f),b=c,c=c.return;return b.tag===3?b.stateNode:null}var ui=!1;function vg(c){c.updateQueue={baseState:c.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ix(c,f){c=c.updateQueue,f.updateQueue===c&&(f.updateQueue={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,effects:c.effects})}function Wa(c,f){return{eventTime:c,lane:f,tag:0,payload:null,callback:null,next:null}}function di(c,f,b){var E=c.updateQueue;if(E===null)return null;if(E=E.shared,(Nn&2)!==0){var M=E.pending;return M===null?f.next=f:(f.next=M.next,M.next=f),E.pending=f,Va(c,b)}return M=E.interleaved,M===null?(f.next=f,mg(E)):(f.next=M.next,M.next=f),E.interleaved=f,Va(c,b)}function Gd(c,f,b){if(f=f.updateQueue,f!==null&&(f=f.shared,(b&4194240)!==0)){var E=f.lanes;E&=c.pendingLanes,b|=E,f.lanes=b,An(c,b)}}function Px(c,f){var b=c.updateQueue,E=c.alternate;if(E!==null&&(E=E.updateQueue,b===E)){var M=null,L=null;if(b=b.firstBaseUpdate,b!==null){do{var Q={eventTime:b.eventTime,lane:b.lane,tag:b.tag,payload:b.payload,callback:b.callback,next:null};L===null?M=L=Q:L=L.next=Q,b=b.next}while(b!==null);L===null?M=L=f:L=L.next=f}else M=L=f;b={baseState:E.baseState,firstBaseUpdate:M,lastBaseUpdate:L,shared:E.shared,effects:E.effects},c.updateQueue=b;return}c=b.lastBaseUpdate,c===null?b.firstBaseUpdate=f:c.next=f,b.lastBaseUpdate=f}function Xd(c,f,b,E){var M=c.updateQueue;ui=!1;var L=M.firstBaseUpdate,Q=M.lastBaseUpdate,ge=M.shared.pending;if(ge!==null){M.shared.pending=null;var $e=ge,Ue=$e.next;$e.next=null,Q===null?L=Ue:Q.next=Ue,Q=$e;var lt=c.alternate;lt!==null&&(lt=lt.updateQueue,ge=lt.lastBaseUpdate,ge!==Q&&(ge===null?lt.firstBaseUpdate=Ue:ge.next=Ue,lt.lastBaseUpdate=$e))}if(L!==null){var dt=M.baseState;Q=0,lt=Ue=$e=null,ge=L;do{var at=ge.lane,_t=ge.eventTime;if((E&at)===at){lt!==null&&(lt=lt.next={eventTime:_t,lane:0,tag:ge.tag,payload:ge.payload,callback:ge.callback,next:null});e:{var At=c,Ht=ge;switch(at=f,_t=b,Ht.tag){case 1:if(At=Ht.payload,typeof At=="function"){dt=At.call(_t,dt,at);break e}dt=At;break e;case 3:At.flags=At.flags&-65537|128;case 0:if(At=Ht.payload,at=typeof At=="function"?At.call(_t,dt,at):At,at==null)break e;dt=K({},dt,at);break e;case 2:ui=!0}}ge.callback!==null&&ge.lane!==0&&(c.flags|=64,at=M.effects,at===null?M.effects=[ge]:at.push(ge))}else _t={eventTime:_t,lane:at,tag:ge.tag,payload:ge.payload,callback:ge.callback,next:null},lt===null?(Ue=lt=_t,$e=dt):lt=lt.next=_t,Q|=at;if(ge=ge.next,ge===null){if(ge=M.shared.pending,ge===null)break;at=ge,ge=at.next,at.next=null,M.lastBaseUpdate=at,M.shared.pending=null}}while(!0);if(lt===null&&($e=dt),M.baseState=$e,M.firstBaseUpdate=Ue,M.lastBaseUpdate=lt,f=M.shared.interleaved,f!==null){M=f;do Q|=M.lane,M=M.next;while(M!==f)}else L===null&&(M.shared.lanes=0);nl|=Q,c.lanes=Q,c.memoizedState=dt}}function Nx(c,f,b){if(c=f.effects,f.effects=null,c!==null)for(f=0;fb?b:4,c(!0);var E=bg.transition;bg.transition={};try{c(!1),f()}finally{Zt=b,bg.transition=E}}function Gx(){return Fo().memoizedState}function ID(c,f,b){var E=pi(c);if(b={lane:E,action:b,hasEagerState:!1,eagerState:null,next:null},Xx(c))Qx(f,b);else if(b=Rx(c,f,b,E),b!==null){var M=Zr();ca(b,c,E,M),Zx(b,f,E)}}function PD(c,f,b){var E=pi(c),M={lane:E,action:b,hasEagerState:!1,eagerState:null,next:null};if(Xx(c))Qx(f,M);else{var L=c.alternate;if(c.lanes===0&&(L===null||L.lanes===0)&&(L=f.lastRenderedReducer,L!==null))try{var Q=f.lastRenderedState,ge=L(Q,b);if(M.hasEagerState=!0,M.eagerState=ge,oa(ge,Q)){var $e=f.interleaved;$e===null?(M.next=M,mg(f)):(M.next=$e.next,$e.next=M),f.interleaved=M;return}}catch{}finally{}b=Rx(c,f,M,E),b!==null&&(M=Zr(),ca(b,c,E,M),Zx(b,f,E))}}function Xx(c){var f=c.alternate;return c===lr||f!==null&&f===lr}function Qx(c,f){_c=Jd=!0;var b=c.pending;b===null?f.next=f:(f.next=b.next,b.next=f),c.pending=f}function Zx(c,f,b){if((b&4194240)!==0){var E=f.lanes;E&=c.pendingLanes,b|=E,f.lanes=b,An(c,b)}}var nf={readContext:Lo,useCallback:Vr,useContext:Vr,useEffect:Vr,useImperativeHandle:Vr,useInsertionEffect:Vr,useLayoutEffect:Vr,useMemo:Vr,useReducer:Vr,useRef:Vr,useState:Vr,useDebugValue:Vr,useDeferredValue:Vr,useTransition:Vr,useMutableSource:Vr,useSyncExternalStore:Vr,useId:Vr,unstable_isNewReconciler:!1},ND={readContext:Lo,useCallback:function(c,f){return Ia().memoizedState=[c,f===void 0?null:f],c},useContext:Lo,useEffect:Bx,useImperativeHandle:function(c,f,b){return b=b!=null?b.concat([c]):null,ef(4194308,4,Wx.bind(null,f,c),b)},useLayoutEffect:function(c,f){return ef(4194308,4,c,f)},useInsertionEffect:function(c,f){return ef(4,2,c,f)},useMemo:function(c,f){var b=Ia();return f=f===void 0?null:f,c=c(),b.memoizedState=[c,f],c},useReducer:function(c,f,b){var E=Ia();return f=b!==void 0?b(f):f,E.memoizedState=E.baseState=f,c={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:c,lastRenderedState:f},E.queue=c,c=c.dispatch=ID.bind(null,lr,c),[E.memoizedState,c]},useRef:function(c){var f=Ia();return c={current:c},f.memoizedState=c},useState:Fx,useDebugValue:Og,useDeferredValue:function(c){return Ia().memoizedState=c},useTransition:function(){var c=Fx(!1),f=c[0];return c=RD.bind(null,c[1]),Ia().memoizedState=c,[f,c]},useMutableSource:function(){},useSyncExternalStore:function(c,f,b){var E=lr,M=Ia();if(nr){if(b===void 0)throw Error(n(407));b=b()}else{if(b=f(),Ir===null)throw Error(n(349));(tl&30)!==0||Dx(E,f,b)}M.memoizedState=b;var L={value:b,getSnapshot:f};return M.queue=L,Bx(kx.bind(null,E,L,c),[c]),E.flags|=2048,kc(9,jx.bind(null,E,L,b,f),void 0,null),b},useId:function(){var c=Ia(),f=Ir.identifierPrefix;if(nr){var b=Ha,E=Ba;b=(E&~(1<<32-Pn(E)-1)).toString(32)+b,f=":"+f+"R"+b,b=Dc++,0<\/script>",c=c.removeChild(c.firstChild)):typeof E.is=="string"?c=Q.createElement(b,{is:E.is}):(c=Q.createElement(b),b==="select"&&(Q=c,E.multiple?Q.multiple=!0:E.size&&(Q.size=E.size))):c=Q.createElementNS(c,b),c[Oa]=f,c[Rc]=E,yw(c,f,!1,!1),f.stateNode=c;e:{switch(Q=we(b,E),b){case"dialog":Gn("cancel",c),Gn("close",c),M=E;break;case"iframe":case"object":case"embed":Gn("load",c),M=E;break;case"video":case"audio":for(M=0;M<$c.length;M++)Gn($c[M],c);M=E;break;case"source":Gn("error",c),M=E;break;case"img":case"image":case"link":Gn("error",c),Gn("load",c),M=E;break;case"details":Gn("toggle",c),M=E;break;case"input":ve(c,E),M=de(c,E),Gn("invalid",c);break;case"option":M=E;break;case"select":c._wrapperState={wasMultiple:!!E.multiple},M=K({},E,{value:void 0}),Gn("invalid",c);break;case"textarea":Ne(c,E),M=xe(c,E),Gn("invalid",c);break;default:M=E}Fe(b,M),ge=M;for(L in ge)if(ge.hasOwnProperty(L)){var $e=ge[L];L==="style"?ye(c,$e):L==="dangerouslySetInnerHTML"?($e=$e?$e.__html:void 0,$e!=null&&We(c,$e)):L==="children"?typeof $e=="string"?(b!=="textarea"||$e!=="")&&Ze(c,$e):typeof $e=="number"&&Ze(c,""+$e):L!=="suppressContentEditableWarning"&&L!=="suppressHydrationWarning"&&L!=="autoFocus"&&(o.hasOwnProperty(L)?$e!=null&&L==="onScroll"&&Gn("scroll",c):$e!=null&&w(c,L,$e,Q))}switch(b){case"input":te(c),Se(c,E,!1);break;case"textarea":te(c),Be(c);break;case"option":E.value!=null&&c.setAttribute("value",""+J(E.value));break;case"select":c.multiple=!!E.multiple,L=E.value,L!=null?Ce(c,!!E.multiple,L,!1):E.defaultValue!=null&&Ce(c,!!E.multiple,E.defaultValue,!0);break;default:typeof M.onClick=="function"&&(c.onclick=Ld)}switch(b){case"button":case"input":case"select":case"textarea":E=!!E.autoFocus;break e;case"img":E=!0;break e;default:E=!1}}E&&(f.flags|=4)}f.ref!==null&&(f.flags|=512,f.flags|=2097152)}return Wr(f),null;case 6:if(c&&f.stateNode!=null)Cw(c,f,c.memoizedProps,E);else{if(typeof E!="string"&&f.stateNode===null)throw Error(n(166));if(b=el(Tc.current),el(Ra.current),Kd(f)){if(E=f.stateNode,b=f.memoizedProps,E[Oa]=f,(L=E.nodeValue!==b)&&(c=Co,c!==null))switch(c.tag){case 3:zd(E.nodeValue,b,(c.mode&1)!==0);break;case 5:c.memoizedProps.suppressHydrationWarning!==!0&&zd(E.nodeValue,b,(c.mode&1)!==0)}L&&(f.flags|=4)}else E=(b.nodeType===9?b:b.ownerDocument).createTextNode(E),E[Oa]=f,f.stateNode=E}return Wr(f),null;case 13:if(Xn(ir),E=f.memoizedState,c===null||c.memoizedState!==null&&c.memoizedState.dehydrated!==null){if(nr&&So!==null&&(f.mode&1)!==0&&(f.flags&128)===0)wx(),Zl(),f.flags|=98560,L=!1;else if(L=Kd(f),E!==null&&E.dehydrated!==null){if(c===null){if(!L)throw Error(n(318));if(L=f.memoizedState,L=L!==null?L.dehydrated:null,!L)throw Error(n(317));L[Oa]=f}else Zl(),(f.flags&128)===0&&(f.memoizedState=null),f.flags|=4;Wr(f),L=!1}else aa!==null&&(Yg(aa),aa=null),L=!0;if(!L)return f.flags&65536?f:null}return(f.flags&128)!==0?(f.lanes=b,f):(E=E!==null,E!==(c!==null&&c.memoizedState!==null)&&E&&(f.child.flags|=8192,(f.mode&1)!==0&&(c===null||(ir.current&1)!==0?Sr===0&&(Sr=3):Qg())),f.updateQueue!==null&&(f.flags|=4),Wr(f),null);case 4:return ns(),zg(c,f),c===null&&Ec(f.stateNode.containerInfo),Wr(f),null;case 10:return dg(f.type._context),Wr(f),null;case 17:return io(f.type)&&Ad(),Wr(f),null;case 19:if(Xn(ir),L=f.memoizedState,L===null)return Wr(f),null;if(E=(f.flags&128)!==0,Q=L.rendering,Q===null)if(E)zc(L,!1);else{if(Sr!==0||c!==null&&(c.flags&128)!==0)for(c=f.child;c!==null;){if(Q=Qd(c),Q!==null){for(f.flags|=128,zc(L,!1),E=Q.updateQueue,E!==null&&(f.updateQueue=E,f.flags|=4),f.subtreeFlags=0,E=b,b=f.child;b!==null;)L=b,c=E,L.flags&=14680066,Q=L.alternate,Q===null?(L.childLanes=0,L.lanes=c,L.child=null,L.subtreeFlags=0,L.memoizedProps=null,L.memoizedState=null,L.updateQueue=null,L.dependencies=null,L.stateNode=null):(L.childLanes=Q.childLanes,L.lanes=Q.lanes,L.child=Q.child,L.subtreeFlags=0,L.deletions=null,L.memoizedProps=Q.memoizedProps,L.memoizedState=Q.memoizedState,L.updateQueue=Q.updateQueue,L.type=Q.type,c=Q.dependencies,L.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),b=b.sibling;return Un(ir,ir.current&1|2),f.child}c=c.sibling}L.tail!==null&&Ct()>is&&(f.flags|=128,E=!0,zc(L,!1),f.lanes=4194304)}else{if(!E)if(c=Qd(Q),c!==null){if(f.flags|=128,E=!0,b=c.updateQueue,b!==null&&(f.updateQueue=b,f.flags|=4),zc(L,!0),L.tail===null&&L.tailMode==="hidden"&&!Q.alternate&&!nr)return Wr(f),null}else 2*Ct()-L.renderingStartTime>is&&b!==1073741824&&(f.flags|=128,E=!0,zc(L,!1),f.lanes=4194304);L.isBackwards?(Q.sibling=f.child,f.child=Q):(b=L.last,b!==null?b.sibling=Q:f.child=Q,L.last=Q)}return L.tail!==null?(f=L.tail,L.rendering=f,L.tail=f.sibling,L.renderingStartTime=Ct(),f.sibling=null,b=ir.current,Un(ir,E?b&1|2:b&1),f):(Wr(f),null);case 22:case 23:return Xg(),E=f.memoizedState!==null,c!==null&&c.memoizedState!==null!==E&&(f.flags|=8192),E&&(f.mode&1)!==0?(xo&1073741824)!==0&&(Wr(f),f.subtreeFlags&6&&(f.flags|=8192)):Wr(f),null;case 24:return null;case 25:return null}throw Error(n(156,f.tag))}function LD(c,f){switch(ag(f),f.tag){case 1:return io(f.type)&&Ad(),c=f.flags,c&65536?(f.flags=c&-65537|128,f):null;case 3:return ns(),Xn(ao),Xn(Hr),yg(),c=f.flags,(c&65536)!==0&&(c&128)===0?(f.flags=c&-65537|128,f):null;case 5:return gg(f),null;case 13:if(Xn(ir),c=f.memoizedState,c!==null&&c.dehydrated!==null){if(f.alternate===null)throw Error(n(340));Zl()}return c=f.flags,c&65536?(f.flags=c&-65537|128,f):null;case 19:return Xn(ir),null;case 4:return ns(),null;case 10:return dg(f.type._context),null;case 22:case 23:return Xg(),null;case 24:return null;default:return null}}var lf=!1,Kr=!1,FD=typeof WeakSet=="function"?WeakSet:Set,zt=null;function os(c,f){var b=c.ref;if(b!==null)if(typeof b=="function")try{b(null)}catch(E){cr(c,f,E)}else b.current=null}function Lg(c,f,b){try{b()}catch(E){cr(c,f,E)}}var Sw=!1;function AD(c,f){if(Xp=Od,c=JS(),Hp(c)){if("selectionStart"in c)var b={start:c.selectionStart,end:c.selectionEnd};else e:{b=(b=c.ownerDocument)&&b.defaultView||window;var E=b.getSelection&&b.getSelection();if(E&&E.rangeCount!==0){b=E.anchorNode;var M=E.anchorOffset,L=E.focusNode;E=E.focusOffset;try{b.nodeType,L.nodeType}catch{b=null;break e}var Q=0,ge=-1,$e=-1,Ue=0,lt=0,dt=c,at=null;t:for(;;){for(var _t;dt!==b||M!==0&&dt.nodeType!==3||(ge=Q+M),dt!==L||E!==0&&dt.nodeType!==3||($e=Q+E),dt.nodeType===3&&(Q+=dt.nodeValue.length),(_t=dt.firstChild)!==null;)at=dt,dt=_t;for(;;){if(dt===c)break t;if(at===b&&++Ue===M&&(ge=Q),at===L&&++lt===E&&($e=Q),(_t=dt.nextSibling)!==null)break;dt=at,at=dt.parentNode}dt=_t}b=ge===-1||$e===-1?null:{start:ge,end:$e}}else b=null}b=b||{start:0,end:0}}else b=null;for(Qp={focusedElem:c,selectionRange:b},Od=!1,zt=f;zt!==null;)if(f=zt,c=f.child,(f.subtreeFlags&1028)!==0&&c!==null)c.return=f,zt=c;else for(;zt!==null;){f=zt;try{var At=f.alternate;if((f.flags&1024)!==0)switch(f.tag){case 0:case 11:case 15:break;case 1:if(At!==null){var Ht=At.memoizedProps,ur=At.memoizedState,ze=f.stateNode,Ie=ze.getSnapshotBeforeUpdate(f.elementType===f.type?Ht:ia(f.type,Ht),ur);ze.__reactInternalSnapshotBeforeUpdate=Ie}break;case 3:var Ae=f.stateNode.containerInfo;Ae.nodeType===1?Ae.textContent="":Ae.nodeType===9&&Ae.documentElement&&Ae.removeChild(Ae.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(n(163))}}catch(pt){cr(f,f.return,pt)}if(c=f.sibling,c!==null){c.return=f.return,zt=c;break}zt=f.return}return At=Sw,Sw=!1,At}function Lc(c,f,b){var E=f.updateQueue;if(E=E!==null?E.lastEffect:null,E!==null){var M=E=E.next;do{if((M.tag&c)===c){var L=M.destroy;M.destroy=void 0,L!==void 0&&Lg(f,b,L)}M=M.next}while(M!==E)}}function sf(c,f){if(f=f.updateQueue,f=f!==null?f.lastEffect:null,f!==null){var b=f=f.next;do{if((b.tag&c)===c){var E=b.create;b.destroy=E()}b=b.next}while(b!==f)}}function Fg(c){var f=c.ref;if(f!==null){var b=c.stateNode;switch(c.tag){case 5:c=b;break;default:c=b}typeof f=="function"?f(c):f.current=c}}function xw(c){var f=c.alternate;f!==null&&(c.alternate=null,xw(f)),c.child=null,c.deletions=null,c.sibling=null,c.tag===5&&(f=c.stateNode,f!==null&&(delete f[Oa],delete f[Rc],delete f[tg],delete f[xD],delete f[wD])),c.stateNode=null,c.return=null,c.dependencies=null,c.memoizedProps=null,c.memoizedState=null,c.pendingProps=null,c.stateNode=null,c.updateQueue=null}function ww(c){return c.tag===5||c.tag===3||c.tag===4}function $w(c){e:for(;;){for(;c.sibling===null;){if(c.return===null||ww(c.return))return null;c=c.return}for(c.sibling.return=c.return,c=c.sibling;c.tag!==5&&c.tag!==6&&c.tag!==18;){if(c.flags&2||c.child===null||c.tag===4)continue e;c.child.return=c,c=c.child}if(!(c.flags&2))return c.stateNode}}function Ag(c,f,b){var E=c.tag;if(E===5||E===6)c=c.stateNode,f?b.nodeType===8?b.parentNode.insertBefore(c,f):b.insertBefore(c,f):(b.nodeType===8?(f=b.parentNode,f.insertBefore(c,b)):(f=b,f.appendChild(c)),b=b._reactRootContainer,b!=null||f.onclick!==null||(f.onclick=Ld));else if(E!==4&&(c=c.child,c!==null))for(Ag(c,f,b),c=c.sibling;c!==null;)Ag(c,f,b),c=c.sibling}function Bg(c,f,b){var E=c.tag;if(E===5||E===6)c=c.stateNode,f?b.insertBefore(c,f):b.appendChild(c);else if(E!==4&&(c=c.child,c!==null))for(Bg(c,f,b),c=c.sibling;c!==null;)Bg(c,f,b),c=c.sibling}var kr=null,la=!1;function fi(c,f,b){for(b=b.child;b!==null;)Ew(c,f,b),b=b.sibling}function Ew(c,f,b){if(Cn&&typeof Cn.onCommitFiberUnmount=="function")try{Cn.onCommitFiberUnmount(Kt,b)}catch{}switch(b.tag){case 5:Kr||os(b,f);case 6:var E=kr,M=la;kr=null,fi(c,f,b),kr=E,la=M,kr!==null&&(la?(c=kr,b=b.stateNode,c.nodeType===8?c.parentNode.removeChild(b):c.removeChild(b)):kr.removeChild(b.stateNode));break;case 18:kr!==null&&(la?(c=kr,b=b.stateNode,c.nodeType===8?eg(c.parentNode,b):c.nodeType===1&&eg(c,b),Ea(c)):eg(kr,b.stateNode));break;case 4:E=kr,M=la,kr=b.stateNode.containerInfo,la=!0,fi(c,f,b),kr=E,la=M;break;case 0:case 11:case 14:case 15:if(!Kr&&(E=b.updateQueue,E!==null&&(E=E.lastEffect,E!==null))){M=E=E.next;do{var L=M,Q=L.destroy;L=L.tag,Q!==void 0&&((L&2)!==0||(L&4)!==0)&&Lg(b,f,Q),M=M.next}while(M!==E)}fi(c,f,b);break;case 1:if(!Kr&&(os(b,f),E=b.stateNode,typeof E.componentWillUnmount=="function"))try{E.props=b.memoizedProps,E.state=b.memoizedState,E.componentWillUnmount()}catch(ge){cr(b,f,ge)}fi(c,f,b);break;case 21:fi(c,f,b);break;case 22:b.mode&1?(Kr=(E=Kr)||b.memoizedState!==null,fi(c,f,b),Kr=E):fi(c,f,b);break;default:fi(c,f,b)}}function Ow(c){var f=c.updateQueue;if(f!==null){c.updateQueue=null;var b=c.stateNode;b===null&&(b=c.stateNode=new FD),f.forEach(function(E){var M=GD.bind(null,c,E);b.has(E)||(b.add(E),E.then(M,M))})}}function sa(c,f){var b=f.deletions;if(b!==null)for(var E=0;EM&&(M=Q),E&=~L}if(E=M,E=Ct()-E,E=(120>E?120:480>E?480:1080>E?1080:1920>E?1920:3e3>E?3e3:4320>E?4320:1960*HD(E/1960))-E,10c?16:c,vi===null)var E=!1;else{if(c=vi,vi=null,mf=0,(Nn&6)!==0)throw Error(n(331));var M=Nn;for(Nn|=4,zt=c.current;zt!==null;){var L=zt,Q=L.child;if((zt.flags&16)!==0){var ge=L.deletions;if(ge!==null){for(var $e=0;$eCt()-Wg?ol(c,0):Vg|=b),co(c,f)}function Fw(c,f){f===0&&((c.mode&1)===0?f=1:(f=Wn,Wn<<=1,(Wn&130023424)===0&&(Wn=4194304)));var b=Zr();c=Va(c,f),c!==null&&(en(c,f,b),co(c,b))}function YD(c){var f=c.memoizedState,b=0;f!==null&&(b=f.retryLane),Fw(c,b)}function GD(c,f){var b=0;switch(c.tag){case 13:var E=c.stateNode,M=c.memoizedState;M!==null&&(b=M.retryLane);break;case 19:E=c.stateNode;break;default:throw Error(n(314))}E!==null&&E.delete(f),Fw(c,b)}var Aw;Aw=function(c,f,b){if(c!==null)if(c.memoizedProps!==f.pendingProps||ao.current)lo=!0;else{if((c.lanes&b)===0&&(f.flags&128)===0)return lo=!1,kD(c,f,b);lo=(c.flags&131072)!==0}else lo=!1,nr&&(f.flags&1048576)!==0&&bx(f,Wd,f.index);switch(f.lanes=0,f.tag){case 2:var E=f.type;af(c,f),c=f.pendingProps;var M=Gl(f,Hr.current);ts(f,b),M=Sg(null,f,E,c,M,b);var L=xg();return f.flags|=1,typeof M=="object"&&M!==null&&typeof M.render=="function"&&M.$$typeof===void 0?(f.tag=1,f.memoizedState=null,f.updateQueue=null,io(E)?(L=!0,Bd(f)):L=!1,f.memoizedState=M.state!==null&&M.state!==void 0?M.state:null,vg(f),M.updater=rf,f.stateNode=M,M._reactInternals=f,Ig(f,E,c,b),f=Tg(null,f,E,!0,L,b)):(f.tag=0,nr&&L&&og(f),Qr(null,f,M,b),f=f.child),f;case 16:E=f.elementType;e:{switch(af(c,f),c=f.pendingProps,M=E._init,E=M(E._payload),f.type=E,M=f.tag=QD(E),c=ia(E,c),M){case 0:f=Mg(null,f,E,c,b);break e;case 1:f=fw(null,f,E,c,b);break e;case 11:f=lw(null,f,E,c,b);break e;case 14:f=sw(null,f,E,ia(E.type,c),b);break e}throw Error(n(306,E,""))}return f;case 0:return E=f.type,M=f.pendingProps,M=f.elementType===E?M:ia(E,M),Mg(c,f,E,M,b);case 1:return E=f.type,M=f.pendingProps,M=f.elementType===E?M:ia(E,M),fw(c,f,E,M,b);case 3:e:{if(mw(f),c===null)throw Error(n(387));E=f.pendingProps,L=f.memoizedState,M=L.element,Ix(c,f),Xd(f,E,null,b);var Q=f.memoizedState;if(E=Q.element,L.isDehydrated)if(L={element:E,isDehydrated:!1,cache:Q.cache,pendingSuspenseBoundaries:Q.pendingSuspenseBoundaries,transitions:Q.transitions},f.updateQueue.baseState=L,f.memoizedState=L,f.flags&256){M=rs(Error(n(423)),f),f=vw(c,f,E,b,M);break e}else if(E!==M){M=rs(Error(n(424)),f),f=vw(c,f,E,b,M);break e}else for(So=ii(f.stateNode.containerInfo.firstChild),Co=f,nr=!0,aa=null,b=Ox(f,null,E,b),f.child=b;b;)b.flags=b.flags&-3|4096,b=b.sibling;else{if(Zl(),E===M){f=Ka(c,f,b);break e}Qr(c,f,E,b)}f=f.child}return f;case 5:return Mx(f),c===null&&lg(f),E=f.type,M=f.pendingProps,L=c!==null?c.memoizedProps:null,Q=M.children,Zp(E,M)?Q=null:L!==null&&Zp(E,L)&&(f.flags|=32),dw(c,f),Qr(c,f,Q,b),f.child;case 6:return c===null&&lg(f),null;case 13:return pw(c,f,b);case 4:return pg(f,f.stateNode.containerInfo),E=f.pendingProps,c===null?f.child=Jl(f,null,E,b):Qr(c,f,E,b),f.child;case 11:return E=f.type,M=f.pendingProps,M=f.elementType===E?M:ia(E,M),lw(c,f,E,M,b);case 7:return Qr(c,f,f.pendingProps,b),f.child;case 8:return Qr(c,f,f.pendingProps.children,b),f.child;case 12:return Qr(c,f,f.pendingProps.children,b),f.child;case 10:e:{if(E=f.type._context,M=f.pendingProps,L=f.memoizedProps,Q=M.value,Un(qd,E._currentValue),E._currentValue=Q,L!==null)if(oa(L.value,Q)){if(L.children===M.children&&!ao.current){f=Ka(c,f,b);break e}}else for(L=f.child,L!==null&&(L.return=f);L!==null;){var ge=L.dependencies;if(ge!==null){Q=L.child;for(var $e=ge.firstContext;$e!==null;){if($e.context===E){if(L.tag===1){$e=Wa(-1,b&-b),$e.tag=2;var Ue=L.updateQueue;if(Ue!==null){Ue=Ue.shared;var lt=Ue.pending;lt===null?$e.next=$e:($e.next=lt.next,lt.next=$e),Ue.pending=$e}}L.lanes|=b,$e=L.alternate,$e!==null&&($e.lanes|=b),fg(L.return,b,f),ge.lanes|=b;break}$e=$e.next}}else if(L.tag===10)Q=L.type===f.type?null:L.child;else if(L.tag===18){if(Q=L.return,Q===null)throw Error(n(341));Q.lanes|=b,ge=Q.alternate,ge!==null&&(ge.lanes|=b),fg(Q,b,f),Q=L.sibling}else Q=L.child;if(Q!==null)Q.return=L;else for(Q=L;Q!==null;){if(Q===f){Q=null;break}if(L=Q.sibling,L!==null){L.return=Q.return,Q=L;break}Q=Q.return}L=Q}Qr(c,f,M.children,b),f=f.child}return f;case 9:return M=f.type,E=f.pendingProps.children,ts(f,b),M=Lo(M),E=E(M),f.flags|=1,Qr(c,f,E,b),f.child;case 14:return E=f.type,M=ia(E,f.pendingProps),M=ia(E.type,M),sw(c,f,E,M,b);case 15:return cw(c,f,f.type,f.pendingProps,b);case 17:return E=f.type,M=f.pendingProps,M=f.elementType===E?M:ia(E,M),af(c,f),f.tag=1,io(E)?(c=!0,Bd(f)):c=!1,ts(f,b),ew(f,E,M),Ig(f,E,M,b),Tg(null,f,E,!0,c,b);case 19:return hw(c,f,b);case 22:return uw(c,f,b)}throw Error(n(156,f.tag))};function Bw(c,f){return Jt(c,f)}function XD(c,f,b,E){this.tag=c,this.key=b,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=f,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=E,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Bo(c,f,b,E){return new XD(c,f,b,E)}function Zg(c){return c=c.prototype,!(!c||!c.isReactComponent)}function QD(c){if(typeof c=="function")return Zg(c)?1:0;if(c!=null){if(c=c.$$typeof,c===H)return 11;if(c===D)return 14}return 2}function hi(c,f){var b=c.alternate;return b===null?(b=Bo(c.tag,f,c.key,c.mode),b.elementType=c.elementType,b.type=c.type,b.stateNode=c.stateNode,b.alternate=c,c.alternate=b):(b.pendingProps=f,b.type=c.type,b.flags=0,b.subtreeFlags=0,b.deletions=null),b.flags=c.flags&14680064,b.childLanes=c.childLanes,b.lanes=c.lanes,b.child=c.child,b.memoizedProps=c.memoizedProps,b.memoizedState=c.memoizedState,b.updateQueue=c.updateQueue,f=c.dependencies,b.dependencies=f===null?null:{lanes:f.lanes,firstContext:f.firstContext},b.sibling=c.sibling,b.index=c.index,b.ref=c.ref,b}function hf(c,f,b,E,M,L){var Q=2;if(E=c,typeof c=="function")Zg(c)&&(Q=1);else if(typeof c=="string")Q=5;else e:switch(c){case I:return il(b.children,M,L,f);case N:Q=8,M|=8;break;case P:return c=Bo(12,b,f,M|2),c.elementType=P,c.lanes=L,c;case A:return c=Bo(13,b,f,M),c.elementType=A,c.lanes=L,c;case _:return c=Bo(19,b,f,M),c.elementType=_,c.lanes=L,c;case z:return yf(b,M,L,f);default:if(typeof c=="object"&&c!==null)switch(c.$$typeof){case T:Q=10;break e;case k:Q=9;break e;case H:Q=11;break e;case D:Q=14;break e;case j:Q=16,E=null;break e}throw Error(n(130,c==null?c:typeof c,""))}return f=Bo(Q,b,f,M),f.elementType=c,f.type=E,f.lanes=L,f}function il(c,f,b,E){return c=Bo(7,c,E,f),c.lanes=b,c}function yf(c,f,b,E){return c=Bo(22,c,E,f),c.elementType=z,c.lanes=b,c.stateNode={isHidden:!1},c}function Jg(c,f,b){return c=Bo(6,c,null,f),c.lanes=b,c}function eh(c,f,b){return f=Bo(4,c.children!==null?c.children:[],c.key,f),f.lanes=b,f.stateNode={containerInfo:c.containerInfo,pendingChildren:null,implementation:c.implementation},f}function ZD(c,f,b,E,M){this.tag=f,this.containerInfo=c,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=St(0),this.expirationTimes=St(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=St(0),this.identifierPrefix=E,this.onRecoverableError=M,this.mutableSourceEagerHydrationData=null}function th(c,f,b,E,M,L,Q,ge,$e){return c=new ZD(c,f,b,ge,$e),f===1?(f=1,L===!0&&(f|=8)):f=0,L=Bo(3,null,null,f),c.current=L,L.stateNode=c,L.memoizedState={element:E,isDehydrated:b,cache:null,transitions:null,pendingSuspenseBoundaries:null},vg(L),c}function JD(c,f,b){var E=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),lh.exports=fj(),lh.exports}var t1;function mj(){if(t1)return Ef;t1=1;var e=lR();return Ef.createRoot=e.createRoot,Ef.hydrateRoot=e.hydrateRoot,Ef}var vj=mj(),uh={exports:{}},dh={};/** * @license React * use-sync-external-store-with-selector.production.js * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var n1;function pj(){if(n1)return dh;n1=1;var e=uv();function t(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,o=e.useRef,a=e.useEffect,i=e.useMemo,s=e.useDebugValue;return dh.useSyncExternalStoreWithSelector=function(u,d,m,v,p){var y=o(null);if(y.current===null){var h={hasValue:!1,value:null};y.current=h}else h=y.current;y=i(function(){function g($){if(!S){if(S=!0,x=$,$=v($),p!==void 0&&h.hasValue){var O=h.value;if(p(O,$))return w=O}return w=$}if(O=w,n(x,$))return O;var I=v($);return p!==void 0&&p(O,I)?(x=$,O):(x=$,w=I)}var S=!1,x,w,R=m===void 0?null:m;return[function(){return g(d())},R===null?void 0:function(){return g(R())}]},[d,m,v,p]);var C=r(u,y[0],y[1]);return a(function(){h.hasValue=!0,h.value=C},[C]),s(C),C},dh}var r1;function gj(){return r1||(r1=1,uh.exports=pj()),uh.exports}var hj=gj();function yj(e){e()}function bj(){let e=null,t=null;return{clear(){e=null,t=null},notify(){yj(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var o1={notify(){},get:()=>[]};function Cj(e,t){let n,r=o1,o=0,a=!1;function i(C){m();const g=r.subscribe(C);let S=!1;return()=>{S||(S=!0,g(),v())}}function s(){r.notify()}function u(){h.onStateChange&&h.onStateChange()}function d(){return a}function m(){o++,n||(n=e.subscribe(u),r=bj())}function v(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=o1)}function p(){a||(a=!0,m())}function y(){a&&(a=!1,v())}const h={addNestedSub:i,notifyNestedSubs:s,handleChangeWrapper:u,isSubscribed:d,trySubscribe:p,tryUnsubscribe:y,getListeners:()=>r};return h}var Sj=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",xj=Sj(),wj=()=>typeof navigator<"u"&&navigator.product==="ReactNative",$j=wj(),Ej=()=>xj||$j?l.useLayoutEffect:l.useEffect,Oj=Ej(),fh=Symbol.for("react-redux-context"),mh=typeof globalThis<"u"?globalThis:{};function Rj(){if(!l.createContext)return{};const e=mh[fh]??(mh[fh]=new Map);let t=e.get(l.createContext);return t||(t=l.createContext(null),e.set(l.createContext,t)),t}var _i=Rj();function Ij(e){const{children:t,context:n,serverState:r,store:o}=e,a=l.useMemo(()=>{const u=Cj(o);return{store:o,subscription:u,getServerState:r?()=>r:void 0}},[o,r]),i=l.useMemo(()=>o.getState(),[o]);Oj(()=>{const{subscription:u}=a;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),i!==o.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[a,i]);const s=n||_i;return l.createElement(s.Provider,{value:a},t)}var Pj=Ij;function Wb(e=_i){return function(){return l.useContext(e)}}var sR=Wb();function cR(e=_i){const t=e===_i?sR:Wb(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var Nj=cR();function Mj(e=_i){const t=e===_i?Nj:cR(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var uR=Mj(),Tj=(e,t)=>e===t;function _j(e=_i){const t=e===_i?sR:Wb(e),n=(r,o={})=>{const{equalityFn:a=Tj}=typeof o=="function"?{equalityFn:o}:o,i=t(),{store:s,subscription:u,getServerState:d}=i;l.useRef(!0);const m=l.useCallback({[r.name](p){return r(p)}}[r.name],[r]),v=hj.useSyncExternalStoreWithSelector(u.addNestedSub,s.getState,d||s.getState,m,a);return l.useDebugValue(v),v};return Object.assign(n,{withTypes:()=>n}),n}var Xo=_j(),Wc={},a1;function Dj(){if(a1)return Wc;a1=1,Object.defineProperty(Wc,"__esModule",{value:!0}),Wc.parse=i,Wc.serialize=d;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,a=(()=>{const p=function(){};return p.prototype=Object.create(null),p})();function i(p,y){const h=new a,C=p.length;if(C<2)return h;const g=(y==null?void 0:y.decode)||m;let S=0;do{const x=p.indexOf("=",S);if(x===-1)break;const w=p.indexOf(";",S),R=w===-1?C:w;if(x>R){S=p.lastIndexOf(";",x-1)+1;continue}const $=s(p,S,x),O=u(p,x,$),I=p.slice($,O);if(h[I]===void 0){let N=s(p,x+1,R),P=u(p,R,N);const T=g(p.slice(N,P));h[I]=T}S=R+1}while(Sh;){const C=p.charCodeAt(--y);if(C!==32&&C!==9)return y+1}return h}function d(p,y,h){const C=(h==null?void 0:h.encode)||encodeURIComponent;if(!e.test(p))throw new TypeError(`argument name is invalid: ${p}`);const g=C(y);if(!t.test(g))throw new TypeError(`argument val is invalid: ${y}`);let S=p+"="+g;if(!h)return S;if(h.maxAge!==void 0){if(!Number.isInteger(h.maxAge))throw new TypeError(`option maxAge is invalid: ${h.maxAge}`);S+="; Max-Age="+h.maxAge}if(h.domain){if(!n.test(h.domain))throw new TypeError(`option domain is invalid: ${h.domain}`);S+="; Domain="+h.domain}if(h.path){if(!r.test(h.path))throw new TypeError(`option path is invalid: ${h.path}`);S+="; Path="+h.path}if(h.expires){if(!v(h.expires)||!Number.isFinite(h.expires.valueOf()))throw new TypeError(`option expires is invalid: ${h.expires}`);S+="; Expires="+h.expires.toUTCString()}if(h.httpOnly&&(S+="; HttpOnly"),h.secure&&(S+="; Secure"),h.partitioned&&(S+="; Partitioned"),h.priority)switch(typeof h.priority=="string"?h.priority.toLowerCase():void 0){case"low":S+="; Priority=Low";break;case"medium":S+="; Priority=Medium";break;case"high":S+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${h.priority}`)}if(h.sameSite)switch(typeof h.sameSite=="string"?h.sameSite.toLowerCase():h.sameSite){case!0:case"strict":S+="; SameSite=Strict";break;case"lax":S+="; SameSite=Lax";break;case"none":S+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${h.sameSite}`)}return S}function m(p){if(p.indexOf("%")===-1)return p;try{return decodeURIComponent(p)}catch{return p}}function v(p){return o.call(p)==="[object Date]"}return Wc}Dj();/** * react-router v7.6.2 * * 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 dR=e=>{throw TypeError(e)},jj=(e,t,n)=>t.has(e)||dR("Cannot "+n),vh=(e,t,n)=>(jj(e,t,"read from private field"),n?n.call(e):t.get(e)),kj=(e,t,n)=>t.has(e)?dR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),i1="popstate";function zj(e={}){function t(r,o){let{pathname:a,search:i,hash:s}=r.location;return _u("",{pathname:a,search:i,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Di(o)}return Fj(t,n,null,e)}function $n(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function fr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Lj(){return Math.random().toString(36).substring(2,10)}function l1(e,t){return{usr:e.state,key:e.key,idx:t}}function _u(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Vi(t):t,state:n,key:t&&t.key||r||Lj()}}function Di({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Vi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Fj(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:a=!1}=r,i=o.history,s="POP",u=null,d=m();d==null&&(d=0,i.replaceState({...i.state,idx:d},""));function m(){return(i.state||{idx:null}).idx}function v(){s="POP";let g=m(),S=g==null?null:g-d;d=g,u&&u({action:s,location:C.location,delta:S})}function p(g,S){s="PUSH";let x=_u(C.location,g,S);d=m()+1;let w=l1(x,d),R=C.createHref(x);try{i.pushState(w,"",R)}catch($){if($ instanceof DOMException&&$.name==="DataCloneError")throw $;o.location.assign(R)}a&&u&&u({action:s,location:C.location,delta:1})}function y(g,S){s="REPLACE";let x=_u(C.location,g,S);d=m();let w=l1(x,d),R=C.createHref(x);i.replaceState(w,"",R),a&&u&&u({action:s,location:C.location,delta:0})}function h(g){return fR(g)}let C={get action(){return s},get location(){return e(o,i)},listen(g){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(i1,v),u=g,()=>{o.removeEventListener(i1,v),u=null}},createHref(g){return t(o,g)},createURL:h,encodeLocation(g){let S=h(g);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:p,replace:y,go(g){return i.go(g)}};return C}function fR(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),$n(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Di(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var mu,s1=class{constructor(e){if(kj(this,mu,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(vh(this,mu).has(e))return vh(this,mu).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){vh(this,mu).set(e,t)}};mu=new WeakMap;var Aj=new Set(["lazy","caseSensitive","path","id","index","children"]);function Bj(e){return Aj.has(e)}var Hj=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function Vj(e){return Hj.has(e)}function Wj(e){return e.index===!0}function Pm(e,t,n=[],r={}){return e.map((o,a)=>{let i=[...n,String(a)],s=typeof o.id=="string"?o.id:i.join("-");if($n(o.index!==!0||!o.children,"Cannot specify children on an index route"),$n(!r[s],`Found a route id collision on id "${s}". Route id's must be globally unique within Data Router usages`),Wj(o)){let u={...o,...t(o),id:s};return r[s]=u,u}else{let u={...o,...t(o),id:s,children:void 0};return r[s]=u,o.children&&(u.children=Pm(o.children,t,i,r)),u}})}function Oi(e,t,n="/"){return tm(e,t,n,!1)}function tm(e,t,n,r){let o=typeof t=="string"?Vi(t):t,a=Qo(o.pathname||"/",n);if(a==null)return null;let i=mR(e);Uj(i);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:i,route:a};u.relativePath.startsWith("/")&&($n(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length));let d=_a([r,u.relativePath]),m=n.concat(u);a.children&&a.children.length>0&&($n(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),mR(a.children,t,m,d)),!(a.path==null&&!a.index)&&t.push({path:d,score:Jj(d,a.index),routesMeta:m})};return e.forEach((a,i)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))o(a,i);else for(let u of vR(a.path))o(a,i,u)}),t}function vR(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return o?[a,""]:[a];let i=vR(r.join("/")),s=[];return s.push(...i.map(u=>u===""?a:[a,u].join("/"))),o&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function Uj(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ek(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var qj=/^:[\w-]+$/,Yj=3,Gj=2,Xj=1,Qj=10,Zj=-2,c1=e=>e==="*";function Jj(e,t){let n=e.split("/"),r=n.length;return n.some(c1)&&(r+=Zj),t&&(r+=Gj),n.filter(o=>!c1(o)).reduce((o,a)=>o+(qj.test(a)?Yj:a===""?Xj:Qj),r)}function ek(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function tk(e,t,n=!1){let{routesMeta:r}=e,o={},a="/",i=[];for(let s=0;s{if(m==="*"){let h=s[p]||"";i=a.slice(0,a.length-h.length).replace(/(.)\/+$/,"$1")}const y=s[p];return v&&!y?d[m]=void 0:d[m]=(y||"").replace(/%2F/g,"/"),d},{}),pathname:a,pathnameBase:i,pattern:e}}function nk(e,t=!1,n=!0){fr(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 r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(r.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function rk(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return fr(!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 (${t}).`),e}}function Qo(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function ok(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Vi(e):e;return{pathname:n?n.startsWith("/")?n:ak(n,t):t,search:lk(r),hash:sk(o)}}function ak(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function ph(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in and the router will parse it for you.`}function pR(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function fv(e){let t=pR(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function mv(e,t,n,r=!1){let o;typeof e=="string"?o=Vi(e):(o={...e},$n(!o.pathname||!o.pathname.includes("?"),ph("?","pathname","search",o)),$n(!o.pathname||!o.pathname.includes("#"),ph("#","pathname","hash",o)),$n(!o.search||!o.search.includes("#"),ph("#","search","hash",o)));let a=e===""||o.pathname==="",i=a?"/":o.pathname,s;if(i==null)s=n;else{let v=t.length-1;if(!r&&i.startsWith("..")){let p=i.split("/");for(;p[0]==="..";)p.shift(),v-=1;o.pathname=p.join("/")}s=v>=0?t[v]:"/"}let u=ok(o,s),d=i&&i!=="/"&&i.endsWith("/"),m=(a||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||m)&&(u.pathname+="/"),u}var _a=e=>e.join("/").replace(/\/\/+/g,"/"),ik=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),lk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sk=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,Mm=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Du(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var gR=["POST","PUT","PATCH","DELETE"],ck=new Set(gR),uk=["GET",...gR],dk=new Set(uk),fk=new Set([301,302,303,307,308]),mk=new Set([307,308]),gh={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},vk={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Kc={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Kb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pk=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),hR="remix-router-transitions",yR=Symbol("ResetLoaderData");function gk(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";$n(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||pk,a={},i=Pm(e.routes,o,void 0,a),s,u=e.basename||"/",d=e.dataStrategy||Sk,m={unstable_middleware:!1,...e.future},v=null,p=new Set,y=null,h=null,C=null,g=e.hydrationData!=null,S=Oi(i,e.history.location,u),x=!1,w=null,R;if(S==null&&!e.patchRoutesOnNavigation){let ue=qo(404,{pathname:e.history.location.pathname}),{matches:fe,route:be}=S1(i);R=!0,S=fe,w={[be.id]:ue}}else if(S&&!e.hydrationData&&Wt(S,i,e.history.location.pathname).active&&(S=null),S)if(S.some(ue=>ue.route.lazy))R=!1;else if(!S.some(ue=>ue.route.loader))R=!0;else{let ue=e.hydrationData?e.hydrationData.loaderData:null,fe=e.hydrationData?e.hydrationData.errors:null;if(fe){let be=S.findIndex(De=>fe[De.route.id]!==void 0);R=S.slice(0,be+1).every(De=>!A0(De.route,ue,fe))}else R=S.every(be=>!A0(be.route,ue,fe))}else{R=!1,S=[];let ue=Wt(null,i,e.history.location.pathname);ue.active&&ue.matches&&(x=!0,S=ue.matches)}let $,O={historyAction:e.history.action,location:e.history.location,matches:S,initialized:R,navigation:gh,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||w,fetchers:new Map,blockers:new Map},I="POP",N=!1,P,T=!1,k=new Map,H=null,A=!1,_=!1,D=new Set,j=new Map,z=0,F=-1,W=new Map,K=new Set,B=new Map,V=new Map,U=new Set,q=new Map,G,Z=null;function ee(){if(v=e.history.listen(({action:ue,location:fe,delta:be})=>{if(G){G(),G=void 0;return}fr(q.size===0||be!=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 De=He({currentLocation:O.location,nextLocation:fe,historyAction:ue});if(De&&be!=null){let Pe=new Promise(ke=>{G=ke});e.history.go(be*-1),we(De,{state:"blocked",location:fe,proceed(){we(De,{state:"proceeding",proceed:void 0,reset:void 0,location:fe}),Pe.then(()=>e.history.go(be))},reset(){let ke=new Map(O.blockers);ke.set(De,Kc),ae({blockers:ke})}});return}return de(ue,fe)}),n){Tk(t,k);let ue=()=>_k(t,k);t.addEventListener("pagehide",ue),H=()=>t.removeEventListener("pagehide",ue)}return O.initialized||de("POP",O.location,{initialHydration:!0}),$}function J(){v&&v(),H&&H(),p.clear(),P&&P.abort(),O.fetchers.forEach((ue,fe)=>We(fe)),O.blockers.forEach((ue,fe)=>Fe(fe))}function oe(ue){return p.add(ue),()=>p.delete(ue)}function ae(ue,fe={}){O={...O,...ue};let be=[],De=[];O.fetchers.forEach((Pe,ke)=>{Pe.state==="idle"&&(U.has(ke)?be.push(ke):De.push(ke))}),U.forEach(Pe=>{!O.fetchers.has(Pe)&&!j.has(Pe)&&be.push(Pe)}),[...p].forEach(Pe=>Pe(O,{deletedFetchers:be,viewTransitionOpts:fe.viewTransitionOpts,flushSync:fe.flushSync===!0})),be.forEach(Pe=>We(Pe)),De.forEach(Pe=>O.fetchers.delete(Pe))}function te(ue,fe,{flushSync:be}={}){var et,Je;let De=O.actionData!=null&&O.navigation.formMethod!=null&&Ro(O.navigation.formMethod)&&O.navigation.state==="loading"&&((et=ue.state)==null?void 0:et._isRedirect)!==!0,Pe;fe.actionData?Object.keys(fe.actionData).length>0?Pe=fe.actionData:Pe=null:De?Pe=O.actionData:Pe=null;let ke=fe.loaderData?b1(O.loaderData,fe.loaderData,fe.matches||[],fe.errors):O.loaderData,Qe=O.blockers;Qe.size>0&&(Qe=new Map(Qe),Qe.forEach((Ge,rt)=>Qe.set(rt,Kc)));let Ke=N===!0||O.navigation.formMethod!=null&&Ro(O.navigation.formMethod)&&((Je=ue.state)==null?void 0:Je._isRedirect)!==!0;s&&(i=s,s=void 0),A||I==="POP"||(I==="PUSH"?e.history.push(ue,ue.state):I==="REPLACE"&&e.history.replace(ue,ue.state));let Ye;if(I==="POP"){let Ge=k.get(O.location.pathname);Ge&&Ge.has(ue.pathname)?Ye={currentLocation:O.location,nextLocation:ue}:k.has(ue.pathname)&&(Ye={currentLocation:ue,nextLocation:O.location})}else if(T){let Ge=k.get(O.location.pathname);Ge?Ge.add(ue.pathname):(Ge=new Set([ue.pathname]),k.set(O.location.pathname,Ge)),Ye={currentLocation:O.location,nextLocation:ue}}ae({...fe,actionData:Pe,loaderData:ke,historyAction:I,location:ue,initialized:!0,navigation:gh,revalidation:"idle",restoreScrollPosition:qt(ue,fe.matches||O.matches),preventScrollReset:Ke,blockers:Qe},{viewTransitionOpts:Ye,flushSync:be===!0}),I="POP",N=!1,T=!1,A=!1,_=!1,Z==null||Z.resolve(),Z=null}async function ne(ue,fe){if(typeof ue=="number"){e.history.go(ue);return}let be=F0(O.location,O.matches,u,ue,fe==null?void 0:fe.fromRouteId,fe==null?void 0:fe.relative),{path:De,submission:Pe,error:ke}=u1(!1,be,fe),Qe=O.location,Ke=_u(O.location,De,fe&&fe.state);Ke={...Ke,...e.history.encodeLocation(Ke)};let Ye=fe&&fe.replace!=null?fe.replace:void 0,et="PUSH";Ye===!0?et="REPLACE":Ye===!1||Pe!=null&&Ro(Pe.formMethod)&&Pe.formAction===O.location.pathname+O.location.search&&(et="REPLACE");let Je=fe&&"preventScrollReset"in fe?fe.preventScrollReset===!0:void 0,Ge=(fe&&fe.flushSync)===!0,rt=He({currentLocation:Qe,nextLocation:Ke,historyAction:et});if(rt){we(rt,{state:"blocked",location:Ke,proceed(){we(rt,{state:"proceeding",proceed:void 0,reset:void 0,location:Ke}),ne(ue,fe)},reset(){let st=new Map(O.blockers);st.set(rt,Kc),ae({blockers:st})}});return}await de(et,Ke,{submission:Pe,pendingError:ke,preventScrollReset:Je,replace:fe&&fe.replace,enableViewTransition:fe&&fe.viewTransition,flushSync:Ge})}function ie(){Z||(Z=Dk()),Be(),ae({revalidation:"loading"});let ue=Z.promise;return O.navigation.state==="submitting"?ue:O.navigation.state==="idle"?(de(O.historyAction,O.location,{startUninterruptedRevalidation:!0}),ue):(de(I||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:T===!0}),ue)}async function de(ue,fe,be){P&&P.abort(),P=null,I=ue,A=(be&&be.startUninterruptedRevalidation)===!0,Rt(O.location,O.matches),N=(be&&be.preventScrollReset)===!0,T=(be&&be.enableViewTransition)===!0;let De=s||i,Pe=be&&be.overrideNavigation,ke=be!=null&&be.initialHydration&&O.matches&&O.matches.length>0&&!x?O.matches:Oi(De,fe,u),Qe=(be&&be.flushSync)===!0;if(ke&&O.initialized&&!_&&Rk(O.location,fe)&&!(be&&be.submission&&Ro(be.submission.formMethod))){te(fe,{matches:ke},{flushSync:Qe});return}let Ke=Wt(ke,De,fe.pathname);if(Ke.active&&Ke.matches&&(ke=Ke.matches),!ke){let{error:Lt,notFoundMatches:Bt,route:Pt}=ot(fe.pathname);te(fe,{matches:Bt,loaderData:{},errors:{[Pt.id]:Lt}},{flushSync:Qe});return}P=new AbortController;let Ye=ys(e.history,fe,P.signal,be&&be.submission),et=new s1(e.unstable_getContext?await e.unstable_getContext():void 0),Je;if(be&&be.pendingError)Je=[dl(ke).route.id,{type:"error",error:be.pendingError}];else if(be&&be.submission&&Ro(be.submission.formMethod)){let Lt=await ve(Ye,fe,be.submission,ke,et,Ke.active,be&&be.initialHydration===!0,{replace:be.replace,flushSync:Qe});if(Lt.shortCircuited)return;if(Lt.pendingActionResult){let[Bt,Pt]=Lt.pendingActionResult;if(Oo(Pt)&&Du(Pt.error)&&Pt.error.status===404){P=null,te(fe,{matches:Lt.matches,loaderData:{},errors:{[Bt]:Pt.error}});return}}ke=Lt.matches||ke,Je=Lt.pendingActionResult,Pe=hh(fe,be.submission),Qe=!1,Ke.active=!1,Ye=ys(e.history,Ye.url,Ye.signal)}let{shortCircuited:Ge,matches:rt,loaderData:st,errors:Nt}=await se(Ye,fe,ke,et,Ke.active,Pe,be&&be.submission,be&&be.fetcherSubmission,be&&be.replace,be&&be.initialHydration===!0,Qe,Je);Ge||(P=null,te(fe,{matches:rt||ke,...C1(Je),loaderData:st,errors:Nt}))}async function ve(ue,fe,be,De,Pe,ke,Qe,Ke={}){Be();let Ye=Nk(fe,be);if(ae({navigation:Ye},{flushSync:Ke.flushSync===!0}),ke){let Ge=await It(De,fe.pathname,ue.signal);if(Ge.type==="aborted")return{shortCircuited:!0};if(Ge.type==="error"){let rt=dl(Ge.partialMatches).route.id;return{matches:Ge.partialMatches,pendingActionResult:[rt,{type:"error",error:Ge.error}]}}else if(Ge.matches)De=Ge.matches;else{let{notFoundMatches:rt,error:st,route:Nt}=ot(fe.pathname);return{matches:rt,pendingActionResult:[Nt.id,{type:"error",error:st}]}}}let et,Je=vu(De,fe);if(!Je.route.action&&!Je.route.lazy)et={type:"error",error:qo(405,{method:ue.method,pathname:fe.pathname,routeId:Je.route.id})};else{let Ge=Es(o,a,ue,De,Je,Qe?[]:r,Pe),rt=await Ne(ue,Ge,Pe,null);if(et=rt[Je.route.id],!et){for(let st of De)if(rt[st.route.id]){et=rt[st.route.id];break}}if(ue.signal.aborted)return{shortCircuited:!0}}if(ml(et)){let Ge;return Ke&&Ke.replace!=null?Ge=Ke.replace:Ge=g1(et.response.headers.get("Location"),new URL(ue.url),u)===O.location.pathname+O.location.search,await xe(ue,et,!0,{submission:be,replace:Ge}),{shortCircuited:!0}}if(Oo(et)){let Ge=dl(De,Je.route.id);return(Ke&&Ke.replace)!==!0&&(I="PUSH"),{matches:De,pendingActionResult:[Ge.route.id,et,Je.route.id]}}return{matches:De,pendingActionResult:[Je.route.id,et]}}async function se(ue,fe,be,De,Pe,ke,Qe,Ke,Ye,et,Je,Ge){let rt=ke||hh(fe,Qe),st=Qe||Ke||w1(rt),Nt=!A&&!et;if(Pe){if(Nt){let wt=he(Ge);ae({navigation:rt,...wt!==void 0?{actionData:wt}:{}},{flushSync:Je})}let Ut=await It(be,fe.pathname,ue.signal);if(Ut.type==="aborted")return{shortCircuited:!0};if(Ut.type==="error"){let wt=dl(Ut.partialMatches).route.id;return{matches:Ut.partialMatches,loaderData:{},errors:{[wt]:Ut.error}}}else if(Ut.matches)be=Ut.matches;else{let{error:wt,notFoundMatches:Mt,route:Kt}=ot(fe.pathname);return{matches:Mt,loaderData:{},errors:{[Kt.id]:wt}}}}let Lt=s||i,{dsMatches:Bt,revalidatingFetchers:Pt}=d1(ue,De,o,a,e.history,O,be,st,fe,et?[]:r,et===!0,_,D,U,B,K,Lt,u,e.patchRoutesOnNavigation!=null,Ge);if(F=++z,!e.dataStrategy&&!Bt.some(Ut=>Ut.shouldLoad)&&Pt.length===0){let Ut=qe();return te(fe,{matches:be,loaderData:{},errors:Ge&&Oo(Ge[1])?{[Ge[0]]:Ge[1].error}:null,...C1(Ge),...Ut?{fetchers:new Map(O.fetchers)}:{}},{flushSync:Je}),{shortCircuited:!0}}if(Nt){let Ut={};if(!Pe){Ut.navigation=rt;let wt=he(Ge);wt!==void 0&&(Ut.actionData=wt)}Pt.length>0&&(Ut.fetchers=Se(Pt)),ae(Ut,{flushSync:Je})}Pt.forEach(Ut=>{Le(Ut.key),Ut.controller&&j.set(Ut.key,Ut.controller)});let rn=()=>Pt.forEach(Ut=>Le(Ut.key));P&&P.signal.addEventListener("abort",rn);let{loaderResults:Jt,fetcherResults:ct}=await Ee(Bt,Pt,ue,De);if(ue.signal.aborted)return{shortCircuited:!0};P&&P.signal.removeEventListener("abort",rn),Pt.forEach(Ut=>j.delete(Ut.key));let ut=Of(Jt);if(ut)return await xe(ue,ut.result,!0,{replace:Ye}),{shortCircuited:!0};if(ut=Of(ct),ut)return K.add(ut.key),await xe(ue,ut.result,!0,{replace:Ye}),{shortCircuited:!0};let{loaderData:Tt,errors:Ct}=y1(O,be,Jt,Ge,Pt,ct);et&&O.errors&&(Ct={...O.errors,...Ct});let Yt=qe(),pn=ye(F),On=Yt||pn||Pt.length>0;return{matches:be,loaderData:Tt,errors:Ct,...On?{fetchers:new Map(O.fetchers)}:{}}}function he(ue){if(ue&&!Oo(ue[1]))return{[ue[0]]:ue[1].data};if(O.actionData)return Object.keys(O.actionData).length===0?null:O.actionData}function Se(ue){return ue.forEach(fe=>{let be=O.fetchers.get(fe.key),De=Uc(void 0,be?be.data:void 0);O.fetchers.set(fe.key,De)}),new Map(O.fetchers)}async function je(ue,fe,be,De){Le(ue);let Pe=(De&&De.flushSync)===!0,ke=s||i,Qe=F0(O.location,O.matches,u,be,fe,De==null?void 0:De.relative),Ke=Oi(ke,Qe,u),Ye=Wt(Ke,ke,Qe);if(Ye.active&&Ye.matches&&(Ke=Ye.matches),!Ke){tt(ue,fe,qo(404,{pathname:Qe}),{flushSync:Pe});return}let{path:et,submission:Je,error:Ge}=u1(!0,Qe,De);if(Ge){tt(ue,fe,Ge,{flushSync:Pe});return}let rt=vu(Ke,et),st=new s1(e.unstable_getContext?await e.unstable_getContext():void 0),Nt=(De&&De.preventScrollReset)===!0;if(Je&&Ro(Je.formMethod)){await Te(ue,fe,et,rt,Ke,st,Ye.active,Pe,Nt,Je);return}B.set(ue,{routeId:fe,path:et}),await Ce(ue,fe,et,rt,Ke,st,Ye.active,Pe,Nt,Je)}async function Te(ue,fe,be,De,Pe,ke,Qe,Ke,Ye,et){Be(),B.delete(ue);function Je(on){if(!on.route.action&&!on.route.lazy){let Pn=qo(405,{method:et.formMethod,pathname:be,routeId:fe});return tt(ue,fe,Pn,{flushSync:Ke}),!0}return!1}if(!Qe&&Je(De))return;let Ge=O.fetchers.get(ue);Ve(ue,Mk(et,Ge),{flushSync:Ke});let rt=new AbortController,st=ys(e.history,be,rt.signal,et);if(Qe){let on=await It(Pe,be,st.signal,ue);if(on.type==="aborted")return;if(on.type==="error"){tt(ue,fe,on.error,{flushSync:Ke});return}else if(on.matches){if(Pe=on.matches,De=vu(Pe,be),Je(De))return}else{tt(ue,fe,qo(404,{pathname:be}),{flushSync:Ke});return}}j.set(ue,rt);let Nt=z,Lt=Es(o,a,st,Pe,De,r,ke),Pt=(await Ne(st,Lt,ke,ue))[De.route.id];if(st.signal.aborted){j.get(ue)===rt&&j.delete(ue);return}if(U.has(ue)){if(ml(Pt)||Oo(Pt)){Ve(ue,xi(void 0));return}}else{if(ml(Pt))if(j.delete(ue),F>Nt){Ve(ue,xi(void 0));return}else return K.add(ue),Ve(ue,Uc(et)),xe(st,Pt,!1,{fetcherSubmission:et,preventScrollReset:Ye});if(Oo(Pt)){tt(ue,fe,Pt.error);return}}let rn=O.navigation.location||O.location,Jt=ys(e.history,rn,rt.signal),ct=s||i,ut=O.navigation.state!=="idle"?Oi(ct,O.navigation.location,u):O.matches;$n(ut,"Didn't find any matches after fetcher action");let Tt=++z;W.set(ue,Tt);let Ct=Uc(et,Pt.data);O.fetchers.set(ue,Ct);let{dsMatches:Yt,revalidatingFetchers:pn}=d1(Jt,ke,o,a,e.history,O,ut,et,rn,r,!1,_,D,U,B,K,ct,u,e.patchRoutesOnNavigation!=null,[De.route.id,Pt]);pn.filter(on=>on.key!==ue).forEach(on=>{let Pn=on.key,ar=O.fetchers.get(Pn),Yn=Uc(void 0,ar?ar.data:void 0);O.fetchers.set(Pn,Yn),Le(Pn),on.controller&&j.set(Pn,on.controller)}),ae({fetchers:new Map(O.fetchers)});let On=()=>pn.forEach(on=>Le(on.key));rt.signal.addEventListener("abort",On);let{loaderResults:Ut,fetcherResults:wt}=await Ee(Yt,pn,Jt,ke);if(rt.signal.aborted)return;if(rt.signal.removeEventListener("abort",On),W.delete(ue),j.delete(ue),pn.forEach(on=>j.delete(on.key)),O.fetchers.has(ue)){let on=xi(Pt.data);O.fetchers.set(ue,on)}let Mt=Of(Ut);if(Mt)return xe(Jt,Mt.result,!1,{preventScrollReset:Ye});if(Mt=Of(wt),Mt)return K.add(Mt.key),xe(Jt,Mt.result,!1,{preventScrollReset:Ye});let{loaderData:Kt,errors:Cn}=y1(O,ut,Ut,void 0,pn,wt);ye(Tt),O.navigation.state==="loading"&&Tt>F?($n(I,"Expected pending action"),P&&P.abort(),te(O.navigation.location,{matches:ut,loaderData:Kt,errors:Cn,fetchers:new Map(O.fetchers)})):(ae({errors:Cn,loaderData:b1(O.loaderData,Kt,ut,Cn),fetchers:new Map(O.fetchers)}),_=!1)}async function Ce(ue,fe,be,De,Pe,ke,Qe,Ke,Ye,et){let Je=O.fetchers.get(ue);Ve(ue,Uc(et,Je?Je.data:void 0),{flushSync:Ke});let Ge=new AbortController,rt=ys(e.history,be,Ge.signal);if(Qe){let Pt=await It(Pe,be,rt.signal,ue);if(Pt.type==="aborted")return;if(Pt.type==="error"){tt(ue,fe,Pt.error,{flushSync:Ke});return}else if(Pt.matches)Pe=Pt.matches,De=vu(Pe,be);else{tt(ue,fe,qo(404,{pathname:be}),{flushSync:Ke});return}}j.set(ue,Ge);let st=z,Nt=Es(o,a,rt,Pe,De,r,ke),Bt=(await Ne(rt,Nt,ke,ue))[De.route.id];if(j.get(ue)===Ge&&j.delete(ue),!rt.signal.aborted){if(U.has(ue)){Ve(ue,xi(void 0));return}if(ml(Bt))if(F>st){Ve(ue,xi(void 0));return}else{K.add(ue),await xe(rt,Bt,!1,{preventScrollReset:Ye});return}if(Oo(Bt)){tt(ue,fe,Bt.error);return}Ve(ue,xi(Bt.data))}}async function xe(ue,fe,be,{submission:De,fetcherSubmission:Pe,preventScrollReset:ke,replace:Qe}={}){fe.response.headers.has("X-Remix-Revalidate")&&(_=!0);let Ke=fe.response.headers.get("Location");$n(Ke,"Expected a Location header on the redirect Response"),Ke=g1(Ke,new URL(ue.url),u);let Ye=_u(O.location,Ke,{_isRedirect:!0});if(n){let Nt=!1;if(fe.response.headers.has("X-Remix-Reload-Document"))Nt=!0;else if(Kb.test(Ke)){const Lt=fR(Ke,!0);Nt=Lt.origin!==t.location.origin||Qo(Lt.pathname,u)==null}if(Nt){Qe?t.location.replace(Ke):t.location.assign(Ke);return}}P=null;let et=Qe===!0||fe.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Je,formAction:Ge,formEncType:rt}=O.navigation;!De&&!Pe&&Je&&Ge&&rt&&(De=w1(O.navigation));let st=De||Pe;if(mk.has(fe.response.status)&&st&&Ro(st.formMethod))await de(et,Ye,{submission:{...st,formAction:Ke},preventScrollReset:ke||N,enableViewTransition:be?T:void 0});else{let Nt=hh(Ye,De);await de(et,Ye,{overrideNavigation:Nt,fetcherSubmission:Pe,preventScrollReset:ke||N,enableViewTransition:be?T:void 0})}}async function Ne(ue,fe,be,De){let Pe,ke={};try{Pe=await xk(d,ue,fe,De,be,!1)}catch(Qe){return fe.filter(Ke=>Ke.shouldLoad).forEach(Ke=>{ke[Ke.route.id]={type:"error",error:Qe}}),ke}if(ue.signal.aborted)return ke;for(let[Qe,Ke]of Object.entries(Pe))if(Ik(Ke)){let Ye=Ke.result;ke[Qe]={type:"redirect",response:Ek(Ye,ue,Qe,fe,u)}}else ke[Qe]=await $k(Ke);return ke}async function Ee(ue,fe,be,De){let Pe=Ne(be,ue,De,null),ke=Promise.all(fe.map(async Ye=>{if(Ye.matches&&Ye.match&&Ye.request&&Ye.controller){let Je=(await Ne(Ye.request,Ye.matches,De,Ye.key))[Ye.match.route.id];return{[Ye.key]:Je}}else return Promise.resolve({[Ye.key]:{type:"error",error:qo(404,{pathname:Ye.path})}})})),Qe=await Pe,Ke=(await ke).reduce((Ye,et)=>Object.assign(Ye,et),{});return{loaderResults:Qe,fetcherResults:Ke}}function Be(){_=!0,B.forEach((ue,fe)=>{j.has(fe)&&D.add(fe),Le(fe)})}function Ve(ue,fe,be={}){O.fetchers.set(ue,fe),ae({fetchers:new Map(O.fetchers)},{flushSync:(be&&be.flushSync)===!0})}function tt(ue,fe,be,De={}){let Pe=dl(O.matches,fe);We(ue),ae({errors:{[Pe.route.id]:be},fetchers:new Map(O.fetchers)},{flushSync:(De&&De.flushSync)===!0})}function nt(ue){return V.set(ue,(V.get(ue)||0)+1),U.has(ue)&&U.delete(ue),O.fetchers.get(ue)||vk}function We(ue){let fe=O.fetchers.get(ue);j.has(ue)&&!(fe&&fe.state==="loading"&&W.has(ue))&&Le(ue),B.delete(ue),W.delete(ue),K.delete(ue),U.delete(ue),D.delete(ue),O.fetchers.delete(ue)}function Ze(ue){let fe=(V.get(ue)||0)-1;fe<=0?(V.delete(ue),U.add(ue)):V.set(ue,fe),ae({fetchers:new Map(O.fetchers)})}function Le(ue){let fe=j.get(ue);fe&&(fe.abort(),j.delete(ue))}function Re(ue){for(let fe of ue){let be=nt(fe),De=xi(be.data);O.fetchers.set(fe,De)}}function qe(){let ue=[],fe=!1;for(let be of K){let De=O.fetchers.get(be);$n(De,`Expected fetcher: ${be}`),De.state==="loading"&&(K.delete(be),ue.push(be),fe=!0)}return Re(ue),fe}function ye(ue){let fe=[];for(let[be,De]of W)if(De0}function Oe(ue,fe){let be=O.blockers.get(ue)||Kc;return q.get(ue)!==fe&&q.set(ue,fe),be}function Fe(ue){O.blockers.delete(ue),q.delete(ue)}function we(ue,fe){let be=O.blockers.get(ue)||Kc;$n(be.state==="unblocked"&&fe.state==="blocked"||be.state==="blocked"&&fe.state==="blocked"||be.state==="blocked"&&fe.state==="proceeding"||be.state==="blocked"&&fe.state==="unblocked"||be.state==="proceeding"&&fe.state==="unblocked",`Invalid blocker state transition: ${be.state} -> ${fe.state}`);let De=new Map(O.blockers);De.set(ue,fe),ae({blockers:De})}function He({currentLocation:ue,nextLocation:fe,historyAction:be}){if(q.size===0)return;q.size>1&&fr(!1,"A router only supports one blocker at a time");let De=Array.from(q.entries()),[Pe,ke]=De[De.length-1],Qe=O.blockers.get(Pe);if(!(Qe&&Qe.state==="proceeding")&&ke({currentLocation:ue,nextLocation:fe,historyAction:be}))return Pe}function ot(ue){let fe=qo(404,{pathname:ue}),be=s||i,{matches:De,route:Pe}=S1(be);return{notFoundMatches:De,route:Pe,error:fe}}function gt(ue,fe,be){if(y=ue,C=fe,h=be||null,!g&&O.navigation===gh){g=!0;let De=qt(O.location,O.matches);De!=null&&ae({restoreScrollPosition:De})}return()=>{y=null,C=null,h=null}}function yt(ue,fe){return h&&h(ue,fe.map(De=>Kj(De,O.loaderData)))||ue.key}function Rt(ue,fe){if(y&&C){let be=yt(ue,fe);y[be]=C()}}function qt(ue,fe){if(y){let be=yt(ue,fe),De=y[be];if(typeof De=="number")return De}return null}function Wt(ue,fe,be){if(e.patchRoutesOnNavigation)if(ue){if(Object.keys(ue[0].params).length>0)return{active:!0,matches:tm(fe,be,u,!0)}}else return{active:!0,matches:tm(fe,be,u,!0)||[]};return{active:!1,matches:null}}async function It(ue,fe,be,De){if(!e.patchRoutesOnNavigation)return{type:"success",matches:ue};let Pe=ue;for(;;){let ke=s==null,Qe=s||i,Ke=a;try{await e.patchRoutesOnNavigation({signal:be,path:fe,matches:Pe,fetcherKey:De,patch:(Je,Ge)=>{be.aborted||f1(Je,Ge,Qe,Ke,o)}})}catch(Je){return{type:"error",error:Je,partialMatches:Pe}}finally{ke&&!be.aborted&&(i=[...i])}if(be.aborted)return{type:"aborted"};let Ye=Oi(Qe,fe,u);if(Ye)return{type:"success",matches:Ye};let et=tm(Qe,fe,u,!0);if(!et||Pe.length===et.length&&Pe.every((Je,Ge)=>Je.route.id===et[Ge].route.id))return{type:"success",matches:null};Pe=et}}function bt(ue){a={},s=Pm(ue,o,void 0,a)}function mt(ue,fe){let be=s==null;f1(ue,fe,s||i,a,o),be&&(i=[...i],ae({}))}return $={get basename(){return u},get future(){return m},get state(){return O},get routes(){return i},get window(){return t},initialize:ee,subscribe:oe,enableScrollRestoration:gt,navigate:ne,fetch:je,revalidate:ie,createHref:ue=>e.history.createHref(ue),encodeLocation:ue=>e.history.encodeLocation(ue),getFetcher:nt,deleteFetcher:Ze,dispose:J,getBlocker:Oe,deleteBlocker:Fe,patchRoutes:mt,_internalFetchControllers:j,_internalSetRoutes:bt},$}function hk(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function F0(e,t,n,r,o,a){let i,s;if(o){i=[];for(let d of t)if(i.push(d),d.route.id===o){s=d;break}}else i=t,s=t[t.length-1];let u=mv(r||".",fv(i),Qo(e.pathname,n)||e.pathname,a==="path");if(r==null&&(u.search=e.search,u.hash=e.hash),(r==null||r===""||r===".")&&s){let d=Ub(u.search);if(s.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!s.route.index&&d){let m=new URLSearchParams(u.search),v=m.getAll("index");m.delete("index"),v.filter(y=>y).forEach(y=>m.append("index",y));let p=m.toString();u.search=p?`?${p}`:""}}return n!=="/"&&(u.pathname=u.pathname==="/"?n:_a([n,u.pathname])),Di(u)}function u1(e,t,n){if(!n||!hk(n))return{path:t};if(n.formMethod&&!Pk(n.formMethod))return{path:t,error:qo(405,{method:n.formMethod})};let r=()=>({path:t,error:qo(400,{type:"invalid-body"})}),a=(n.formMethod||"get").toUpperCase(),i=$R(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ro(a))return r();let v=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((p,[y,h])=>`${p}${y}=${h} `,""):String(n.body);return{path:t,submission:{formMethod:a,formAction:i,formEncType:n.formEncType,formData:void 0,json:void 0,text:v}}}else if(n.formEncType==="application/json"){if(!Ro(a))return r();try{let v=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:a,formAction:i,formEncType:n.formEncType,formData:void 0,json:v,text:void 0}}}catch{return r()}}}$n(typeof FormData=="function","FormData is not available in this environment");let s,u;if(n.formData)s=H0(n.formData),u=n.formData;else if(n.body instanceof FormData)s=H0(n.body),u=n.body;else if(n.body instanceof URLSearchParams)s=n.body,u=h1(s);else if(n.body==null)s=new URLSearchParams,u=new FormData;else try{s=new URLSearchParams(n.body),u=h1(s)}catch{return r()}let d={formMethod:a,formAction:i,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Ro(d.formMethod))return{path:t,submission:d};let m=Vi(t);return e&&m.search&&Ub(m.search)&&s.append("index",""),m.search=`?${s}`,{path:Di(m),submission:d}}function d1(e,t,n,r,o,a,i,s,u,d,m,v,p,y,h,C,g,S,x,w){var A;let R=w?Oo(w[1])?w[1].error:w[1].data:void 0,$=o.createURL(a.location),O=o.createURL(u),I;if(m&&a.errors){let _=Object.keys(a.errors)[0];I=i.findIndex(D=>D.route.id===_)}else if(w&&Oo(w[1])){let _=w[0];I=i.findIndex(D=>D.route.id===_)-1}let N=w?w[1].statusCode:void 0,P=N&&N>=400,T={currentUrl:$,currentParams:((A=a.matches[0])==null?void 0:A.params)||{},nextUrl:O,nextParams:i[0].params,...s,actionResult:R,actionStatus:N},k=i.map((_,D)=>{let{route:j}=_,z=null;if(I!=null&&D>I?z=!1:j.lazy?z=!0:j.loader==null?z=!1:m?z=A0(j,a.loaderData,a.errors):yk(a.loaderData,a.matches[D],_)&&(z=!0),z!==null)return B0(n,r,e,_,d,t,z);let F=P?!1:v||$.pathname+$.search===O.pathname+O.search||$.search!==O.search||bk(a.matches[D],_),W={...T,defaultShouldRevalidate:F},K=Tm(_,W);return B0(n,r,e,_,d,t,K,W)}),H=[];return h.forEach((_,D)=>{if(m||!i.some(U=>U.route.id===_.routeId)||y.has(D))return;let j=a.fetchers.get(D),z=j&&j.state!=="idle"&&j.data===void 0,F=Oi(g,_.path,S);if(!F){if(x&&z)return;H.push({key:D,routeId:_.routeId,path:_.path,matches:null,match:null,request:null,controller:null});return}if(C.has(D))return;let W=vu(F,_.path),K=new AbortController,B=ys(o,_.path,K.signal),V=null;if(p.has(D))p.delete(D),V=Es(n,r,B,F,W,d,t);else if(z)v&&(V=Es(n,r,B,F,W,d,t));else{let U={...T,defaultShouldRevalidate:P?!1:v};Tm(W,U)&&(V=Es(n,r,B,F,W,d,t,U))}V&&H.push({key:D,routeId:_.routeId,path:_.path,matches:V,match:W,request:B,controller:K})}),{dsMatches:k,revalidatingFetchers:H}}function A0(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&e.id in t,o=n!=null&&n[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function yk(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}function bk(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function Tm(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function f1(e,t,n,r,o){let a;if(e){let u=r[e];$n(u,`No route found to patch children into: routeId = ${e}`),u.children||(u.children=[]),a=u.children}else a=n;let i=t.filter(u=>!a.some(d=>bR(u,d))),s=Pm(i,o,[e||"_","patch",String((a==null?void 0:a.length)||"0")],r);a.push(...s)}function bR(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var o;return(o=t.children)==null?void 0:o.some(a=>bR(n,a))}):!1}var m1=new WeakMap,CR=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if($n(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let a=o.lazy[e];if(!a)return;let i=m1.get(o);i||(i={},m1.set(o,i));let s=i[e];if(s)return s;let u=(async()=>{let d=Bj(e),v=o[e]!==void 0&&e!=="hasErrorBoundary";if(d)fr(!d,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),i[e]=Promise.resolve();else if(v)fr(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let p=await a();p!=null&&(Object.assign(o,{[e]:p}),Object.assign(o,r(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(p=>p===void 0)&&(o.lazy=void 0))})();return i[e]=u,u},v1=new WeakMap;function Ck(e,t,n,r,o){let a=n[e.id];if($n(a,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let m=v1.get(a);if(m)return{lazyRoutePromise:m,lazyHandlerPromise:m};let v=(async()=>{$n(typeof e.lazy=="function","No lazy route function found");let p=await e.lazy(),y={};for(let h in p){let C=p[h];if(C===void 0)continue;let g=Vj(h),x=a[h]!==void 0&&h!=="hasErrorBoundary";g?fr(!g,"Route property "+h+" is not a supported property to be returned from a lazy route function. This property will be ignored."):x?fr(!x,`Route "${a.id}" has a static property "${h}" defined but its lazy function is also returning a value for this property. The lazy route property "${h}" will be ignored.`):y[h]=C}Object.assign(a,y),Object.assign(a,{...r(a),lazy:void 0})})();return v1.set(a,v),v.catch(()=>{}),{lazyRoutePromise:v,lazyHandlerPromise:v}}let i=Object.keys(e.lazy),s=[],u;for(let m of i){if(o&&o.includes(m))continue;let v=CR({key:m,route:e,manifest:n,mapRouteProperties:r});v&&(s.push(v),m===t&&(u=v))}let d=s.length>0?Promise.all(s).then(()=>{}):void 0;return d==null||d.catch(()=>{}),u==null||u.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:u}}async function p1(e){let t=e.matches.filter(o=>o.shouldLoad),n={};return(await Promise.all(t.map(o=>o.resolve()))).forEach((o,a)=>{n[t[a].route.id]=o}),n}async function Sk(e){return e.matches.some(t=>t.route.unstable_middleware)?SR(e,!1,()=>p1(e),(t,n)=>({[n]:{type:"error",result:t}})):p1(e)}async function SR(e,t,n,r){let{matches:o,request:a,params:i,context:s}=e,u={handlerResult:void 0};try{let d=o.flatMap(v=>v.route.unstable_middleware?v.route.unstable_middleware.map(p=>[v.route.id,p]):[]),m=await xR({request:a,params:i,context:s},d,t,u,n);return t?m:u.handlerResult}catch(d){if(!u.middlewareError)throw d;let m=await r(u.middlewareError.error,u.middlewareError.routeId);return u.handlerResult?Object.assign(u.handlerResult,m):m}}async function xR(e,t,n,r,o,a=0){let{request:i}=e;if(i.signal.aborted)throw i.signal.reason?i.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${i.method} ${i.url}`);let s=t[a];if(!s)return r.handlerResult=await o(),r.handlerResult;let[u,d]=s,m=!1,v,p=async()=>{if(m)throw new Error("You may only call `next()` once per middleware");m=!0,await xR(e,t,n,r,o,a+1)};try{let y=await d({request:e.request,params:e.params,context:e.context},p);return m?y===void 0?v:y:p()}catch(y){throw r.middlewareError?r.middlewareError.error!==y&&(r.middlewareError={routeId:u,error:y}):r.middlewareError={routeId:u,error:y},y}}function wR(e,t,n,r,o){let a=CR({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),i=Ck(r.route,Ro(n.method)?"action":"loader",t,e,o);return{middleware:a,route:i.lazyRoutePromise,handler:i.lazyHandlerPromise}}function B0(e,t,n,r,o,a,i,s=null){let u=!1,d=wR(e,t,n,r,o);return{...r,_lazyPromises:d,shouldLoad:i,unstable_shouldRevalidateArgs:s,unstable_shouldCallHandler(m){return u=!0,s?typeof m=="boolean"?Tm(r,{...s,defaultShouldRevalidate:m}):Tm(r,s):i},resolve(m){return u||i||m&&n.method==="GET"&&(r.route.lazy||r.route.loader)?wk({request:n,match:r,lazyHandlerPromise:d==null?void 0:d.handler,lazyRoutePromise:d==null?void 0:d.route,handlerOverride:m,scopedContext:a}):Promise.resolve({type:"data",result:void 0})}}}function Es(e,t,n,r,o,a,i,s=null){return r.map(u=>u.route.id!==o.route.id?{...u,shouldLoad:!1,unstable_shouldRevalidateArgs:s,unstable_shouldCallHandler:()=>!1,_lazyPromises:wR(e,t,n,u,a),resolve:()=>Promise.resolve({type:"data",result:void 0})}:B0(e,t,n,u,a,i,!0,s))}async function xk(e,t,n,r,o,a){n.some(d=>{var m;return(m=d._lazyPromises)==null?void 0:m.middleware})&&await Promise.all(n.map(d=>{var m;return(m=d._lazyPromises)==null?void 0:m.middleware}));let i={request:t,params:n[0].params,context:o,matches:n},u=await e({...i,fetcherKey:r,unstable_runClientMiddleware:d=>{let m=i;return SR(m,!1,()=>d({...m,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(v,p)=>({[p]:{type:"error",result:v}}))}});try{await Promise.all(n.flatMap(d=>{var m,v;return[(m=d._lazyPromises)==null?void 0:m.handler,(v=d._lazyPromises)==null?void 0:v.route]}))}catch{}return u}async function wk({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:o,scopedContext:a}){let i,s,u=Ro(e.method),d=u?"action":"loader",m=v=>{let p,y=new Promise((g,S)=>p=S);s=()=>p(),e.signal.addEventListener("abort",s);let h=g=>typeof v!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${t.route.id}]`)):v({request:e,params:t.params,context:a},...g!==void 0?[g]:[]),C=(async()=>{try{return{type:"data",result:await(o?o(S=>h(S)):h())}}catch(g){return{type:"error",result:g}}})();return Promise.race([C,y])};try{let v=u?t.route.action:t.route.loader;if(n||r)if(v){let p,[y]=await Promise.all([m(v).catch(h=>{p=h}),n,r]);if(p!==void 0)throw p;i=y}else{await n;let p=u?t.route.action:t.route.loader;if(p)[i]=await Promise.all([m(p),r]);else if(d==="action"){let y=new URL(e.url),h=y.pathname+y.search;throw qo(405,{method:e.method,pathname:h,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(v)i=await m(v);else{let p=new URL(e.url),y=p.pathname+p.search;throw qo(404,{pathname:y})}}catch(v){return{type:"error",result:v}}finally{s&&e.signal.removeEventListener("abort",s)}return i}async function $k(e){var r,o,a,i,s,u;let{result:t,type:n}=e;if(ER(t)){let d;try{let m=t.headers.get("Content-Type");m&&/\bapplication\/json\b/.test(m)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(m){return{type:"error",error:m}}return n==="error"?{type:"error",error:new Mm(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:"data",data:d,statusCode:t.status,headers:t.headers}}return n==="error"?x1(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:(r=t.init)==null?void 0:r.status,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new Mm(((a=t.init)==null?void 0:a.status)||500,void 0,t.data),statusCode:Du(t)?t.status:void 0,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Du(t)?t.status:void 0}:x1(t)?{type:"data",data:t.data,statusCode:(s=t.init)==null?void 0:s.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function Ek(e,t,n,r,o){let a=e.headers.get("Location");if($n(a,"Redirects returned/thrown from loaders/actions must have a Location header"),!Kb.test(a)){let i=r.slice(0,r.findIndex(s=>s.route.id===n)+1);a=F0(new URL(t.url),i,o,a),e.headers.set("Location",a)}return e}function g1(e,t,n){if(Kb.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=Qo(o.pathname,n)!=null;if(o.origin===t.origin&&a)return o.pathname+o.search+o.hash}return e}function ys(e,t,n,r){let o=e.createURL($R(t)).toString(),a={signal:n};if(r&&Ro(r.formMethod)){let{formMethod:i,formEncType:s}=r;a.method=i.toUpperCase(),s==="application/json"?(a.headers=new Headers({"Content-Type":s}),a.body=JSON.stringify(r.json)):s==="text/plain"?a.body=r.text:s==="application/x-www-form-urlencoded"&&r.formData?a.body=H0(r.formData):a.body=r.formData}return new Request(o,a)}function H0(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function h1(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function Ok(e,t,n,r=!1,o=!1){let a={},i=null,s,u=!1,d={},m=n&&Oo(n[1])?n[1].error:void 0;return e.forEach(v=>{if(!(v.route.id in t))return;let p=v.route.id,y=t[p];if($n(!ml(y),"Cannot handle redirect results in processLoaderData"),Oo(y)){let h=y.error;if(m!==void 0&&(h=m,m=void 0),i=i||{},o)i[p]=h;else{let C=dl(e,p);i[C.route.id]==null&&(i[C.route.id]=h)}r||(a[p]=yR),u||(u=!0,s=Du(y.error)?y.error.status:500),y.headers&&(d[p]=y.headers)}else a[p]=y.data,y.statusCode&&y.statusCode!==200&&!u&&(s=y.statusCode),y.headers&&(d[p]=y.headers)}),m!==void 0&&n&&(i={[n[0]]:m},n[2]&&(a[n[2]]=void 0)),{loaderData:a,errors:i,statusCode:s||200,loaderHeaders:d}}function y1(e,t,n,r,o,a){let{loaderData:i,errors:s}=Ok(t,n,r);return o.filter(u=>!u.matches||u.matches.some(d=>d.shouldLoad)).forEach(u=>{let{key:d,match:m,controller:v}=u,p=a[d];if($n(p,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(Oo(p)){let y=dl(e.matches,m==null?void 0:m.route.id);s&&s[y.route.id]||(s={...s,[y.route.id]:p.error}),e.fetchers.delete(d)}else if(ml(p))$n(!1,"Unhandled fetcher revalidation redirect");else{let y=xi(p.data);e.fetchers.set(d,y)}}),{loaderData:i,errors:s}}function b1(e,t,n,r){let o=Object.entries(t).filter(([,a])=>a!==yR).reduce((a,[i,s])=>(a[i]=s,a),{});for(let a of n){let i=a.route.id;if(!t.hasOwnProperty(i)&&e.hasOwnProperty(i)&&a.route.loader&&(o[i]=e[i]),r&&r.hasOwnProperty(i))break}return o}function C1(e){return e?Oo(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function dl(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function S1(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function qo(e,{pathname:t,routeId:n,method:r,type:o,message:a}={}){let i="Unknown Server Error",s="Unknown @remix-run/router error";return e===400?(i="Bad Request",r&&t&&n?s=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:o==="invalid-body"&&(s="Unable to encode submission body")):e===403?(i="Forbidden",s=`Route "${n}" does not match URL "${t}"`):e===404?(i="Not Found",s=`No route matches URL "${t}"`):e===405&&(i="Method Not Allowed",r&&t&&n?s=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(s=`Invalid request method "${r.toUpperCase()}"`)),new Mm(e||500,i,new Error(s),!0)}function Of(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(ml(o))return{key:r,result:o}}}function $R(e){let t=typeof e=="string"?Vi(e):e;return Di({...t,hash:""})}function Rk(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Ik(e){return ER(e.result)&&fk.has(e.result.status)}function Oo(e){return e.type==="error"}function ml(e){return(e&&e.type)==="redirect"}function x1(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function ER(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function Pk(e){return dk.has(e.toUpperCase())}function Ro(e){return ck.has(e.toUpperCase())}function Ub(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function vu(e,t){let n=typeof t=="string"?Vi(t).search:t.search;if(e[e.length-1].route.index&&Ub(n||""))return e[e.length-1];let r=pR(e);return r[r.length-1]}function w1(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:a,json:i}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(i!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:i,text:void 0}}}function hh(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Nk(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Uc(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Mk(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function xi(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 Tk(e,t){try{let n=e.sessionStorage.getItem(hR);if(n){let r=JSON.parse(n);for(let[o,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(o,new Set(a||[]))}}catch{}}function _k(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(hR,JSON.stringify(n))}catch(r){fr(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function Dk(){let e,t,n=new Promise((r,o)=>{e=async a=>{r(a);try{await n}catch{}},t=async a=>{o(a);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var _l=l.createContext(null);_l.displayName="DataRouter";var rd=l.createContext(null);rd.displayName="DataRouterState";var qb=l.createContext({isTransitioning:!1});qb.displayName="ViewTransition";var OR=l.createContext(new Map);OR.displayName="Fetchers";var jk=l.createContext(null);jk.displayName="Await";var Sa=l.createContext(null);Sa.displayName="Navigation";var vv=l.createContext(null);vv.displayName="Location";var xa=l.createContext({outlet:null,matches:[],isDataRoute:!1});xa.displayName="Route";var Yb=l.createContext(null);Yb.displayName="RouteError";function kk(e,{relative:t}={}){$n(Ks(),"useHref() may be used only in the context of a component.");let{basename:n,navigator:r}=l.useContext(Sa),{hash:o,pathname:a,search:i}=od(e,{relative:t}),s=a;return n!=="/"&&(s=a==="/"?n:_a([n,a])),r.createHref({pathname:s,search:i,hash:o})}function Ks(){return l.useContext(vv)!=null}function ei(){return $n(Ks(),"useLocation() may be used only in the context of a component."),l.useContext(vv).location}var RR="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function IR(e){l.useContext(Sa).static||l.useLayoutEffect(e)}function pv(){let{isDataRoute:e}=l.useContext(xa);return e?Qk():zk()}function zk(){$n(Ks(),"useNavigate() may be used only in the context of a component.");let e=l.useContext(_l),{basename:t,navigator:n}=l.useContext(Sa),{matches:r}=l.useContext(xa),{pathname:o}=ei(),a=JSON.stringify(fv(r)),i=l.useRef(!1);return IR(()=>{i.current=!0}),l.useCallback((u,d={})=>{if(fr(i.current,RR),!i.current)return;if(typeof u=="number"){n.go(u);return}let m=mv(u,JSON.parse(a),o,d.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:_a([t,m.pathname])),(d.replace?n.replace:n.push)(m,d.state,d)},[t,n,a,o,e])}var Lk=l.createContext(null);function Fk(e){let t=l.useContext(xa).outlet;return t&&l.createElement(Lk.Provider,{value:e},t)}function od(e,{relative:t}={}){let{matches:n}=l.useContext(xa),{pathname:r}=ei(),o=JSON.stringify(fv(n));return l.useMemo(()=>mv(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function Ak(e,t,n,r){$n(Ks(),"useRoutes() may be used only in the context of a component.");let{navigator:o}=l.useContext(Sa),{matches:a}=l.useContext(xa),i=a[a.length-1],s=i?i.params:{},u=i?i.pathname:"/",d=i?i.pathnameBase:"/",m=i&&i.route;{let S=m&&m.path||"";PR(u,!m||S.endsWith("*")||S.endsWith("*?"),`You rendered descendant (or called \`useRoutes()\`) at "${u}" (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 v=ei(),p;p=v;let y=p.pathname||"/",h=y;if(d!=="/"){let S=d.replace(/^\//,"").split("/");h="/"+y.replace(/^\//,"").split("/").slice(S.length).join("/")}let C=Oi(e,{pathname:h});return fr(m||C!=null,`No routes matched location "${p.pathname}${p.search}${p.hash}" `),fr(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${p.pathname}${p.search}${p.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.`),Kk(C&&C.map(S=>Object.assign({},S,{params:Object.assign({},s,S.params),pathname:_a([d,o.encodeLocation?o.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?d:_a([d,o.encodeLocation?o.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),a,n,r)}function Bk(){let e=Xk(),t=Du(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},a={padding:"2px 4px",backgroundColor:r},i=null;return console.error("Error handled by React Router default ErrorBoundary:",e),i=l.createElement(l.Fragment,null,l.createElement("p",null,"💿 Hey developer 👋"),l.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",l.createElement("code",{style:a},"ErrorBoundary")," or"," ",l.createElement("code",{style:a},"errorElement")," prop on your route.")),l.createElement(l.Fragment,null,l.createElement("h2",null,"Unexpected Application Error!"),l.createElement("h3",{style:{fontStyle:"italic"}},t),n?l.createElement("pre",{style:o},n):null,i)}var Hk=l.createElement(Bk,null),Vk=class extends l.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,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?l.createElement(xa.Provider,{value:this.props.routeContext},l.createElement(Yb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Wk({routeContext:e,match:t,children:n}){let r=l.useContext(_l);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),l.createElement(xa.Provider,{value:e},n)}function Kk(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,a=n==null?void 0:n.errors;if(a!=null){let u=o.findIndex(d=>d.route.id&&(a==null?void 0:a[d.route.id])!==void 0);$n(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),o=o.slice(0,Math.min(o.length,u+1))}let i=!1,s=-1;if(n)for(let u=0;u=0?o=o.slice(0,s+1):o=[o[0]];break}}}return o.reduceRight((u,d,m)=>{let v,p=!1,y=null,h=null;n&&(v=a&&d.route.id?a[d.route.id]:void 0,y=d.route.errorElement||Hk,i&&(s<0&&m===0?(PR("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,h=null):s===m&&(p=!0,h=d.route.hydrateFallbackElement||null)));let C=t.concat(o.slice(0,m+1)),g=()=>{let S;return v?S=y:p?S=h:d.route.Component?S=l.createElement(d.route.Component,null):d.route.element?S=d.route.element:S=u,l.createElement(Wk,{match:d,routeContext:{outlet:u,matches:C,isDataRoute:n!=null},children:S})};return n&&(d.route.ErrorBoundary||d.route.errorElement||m===0)?l.createElement(Vk,{location:n.location,revalidation:n.revalidation,component:y,error:v,children:g(),routeContext:{outlet:null,matches:C,isDataRoute:!0}}):g()},null)}function Gb(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Uk(e){let t=l.useContext(_l);return $n(t,Gb(e)),t}function qk(e){let t=l.useContext(rd);return $n(t,Gb(e)),t}function Yk(e){let t=l.useContext(xa);return $n(t,Gb(e)),t}function Xb(e){let t=Yk(e),n=t.matches[t.matches.length-1];return $n(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Gk(){return Xb("useRouteId")}function Xk(){var r;let e=l.useContext(Yb),t=qk("useRouteError"),n=Xb("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Qk(){let{router:e}=Uk("useNavigate"),t=Xb("useNavigate"),n=l.useRef(!1);return IR(()=>{n.current=!0}),l.useCallback(async(o,a={})=>{fr(n.current,RR),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...a}))},[e,t])}var $1={};function PR(e,t,n){!t&&!$1[e]&&($1[e]=!0,fr(!1,n))}var E1={};function O1(e,t){!e&&!E1[t]&&(E1[t]=!0,console.warn(t))}function Zk(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&fr(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:l.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&fr(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:l.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&fr(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:l.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var Jk=["HydrateFallback","hydrateFallbackElement"],e3=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function t3({router:e,flushSync:t}){let[n,r]=l.useState(e.state),[o,a]=l.useState(),[i,s]=l.useState({isTransitioning:!1}),[u,d]=l.useState(),[m,v]=l.useState(),[p,y]=l.useState(),h=l.useRef(new Map),C=l.useCallback((w,{deletedFetchers:R,flushSync:$,viewTransitionOpts:O})=>{w.fetchers.forEach((N,P)=>{N.data!==void 0&&h.current.set(P,N.data)}),R.forEach(N=>h.current.delete(N)),O1($===!1||t!=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 I=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(O1(O==null||I,"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."),!O||!I){t&&$?t(()=>r(w)):l.startTransition(()=>r(w));return}if(t&&$){t(()=>{m&&(u&&u.resolve(),m.skipTransition()),s({isTransitioning:!0,flushSync:!0,currentLocation:O.currentLocation,nextLocation:O.nextLocation})});let N=e.window.document.startViewTransition(()=>{t(()=>r(w))});N.finished.finally(()=>{t(()=>{d(void 0),v(void 0),a(void 0),s({isTransitioning:!1})})}),t(()=>v(N));return}m?(u&&u.resolve(),m.skipTransition(),y({state:w,currentLocation:O.currentLocation,nextLocation:O.nextLocation})):(a(w),s({isTransitioning:!0,flushSync:!1,currentLocation:O.currentLocation,nextLocation:O.nextLocation}))},[e.window,t,m,u]);l.useLayoutEffect(()=>e.subscribe(C),[e,C]),l.useEffect(()=>{i.isTransitioning&&!i.flushSync&&d(new e3)},[i]),l.useEffect(()=>{if(u&&o&&e.window){let w=o,R=u.promise,$=e.window.document.startViewTransition(async()=>{l.startTransition(()=>r(w)),await R});$.finished.finally(()=>{d(void 0),v(void 0),a(void 0),s({isTransitioning:!1})}),v($)}},[o,u,e.window]),l.useEffect(()=>{u&&o&&n.location.key===o.location.key&&u.resolve()},[u,m,n.location,o]),l.useEffect(()=>{!i.isTransitioning&&p&&(a(p.state),s({isTransitioning:!0,flushSync:!1,currentLocation:p.currentLocation,nextLocation:p.nextLocation}),y(void 0))},[i.isTransitioning,p]);let g=l.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:w=>e.navigate(w),push:(w,R,$)=>e.navigate(w,{state:R,preventScrollReset:$==null?void 0:$.preventScrollReset}),replace:(w,R,$)=>e.navigate(w,{replace:!0,state:R,preventScrollReset:$==null?void 0:$.preventScrollReset})}),[e]),S=e.basename||"/",x=l.useMemo(()=>({router:e,navigator:g,static:!1,basename:S}),[e,g,S]);return l.createElement(l.Fragment,null,l.createElement(_l.Provider,{value:x},l.createElement(rd.Provider,{value:n},l.createElement(OR.Provider,{value:h.current},l.createElement(qb.Provider,{value:i},l.createElement(o3,{basename:S,location:n.location,navigationType:n.historyAction,navigator:g},l.createElement(n3,{routes:e.routes,future:e.future,state:n})))))),null)}var n3=l.memo(r3);function r3({routes:e,future:t,state:n}){return Ak(e,void 0,n,t)}function V0({to:e,replace:t,state:n,relative:r}){$n(Ks()," may be used only in the context of a component.");let{static:o}=l.useContext(Sa);fr(!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:a}=l.useContext(xa),{pathname:i}=ei(),s=pv(),u=mv(e,fv(a),i,r==="path"),d=JSON.stringify(u);return l.useEffect(()=>{s(JSON.parse(d),{replace:t,state:n,relative:r})},[s,d,r,t,n]),null}function NR(e){return Fk(e.context)}function o3({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:a=!1}){$n(!Ks(),"You cannot render a inside another . You should never have more than one in your app.");let i=e.replace(/^\/*/,"/"),s=l.useMemo(()=>({basename:i,navigator:o,static:a,future:{}}),[i,o,a]);typeof n=="string"&&(n=Vi(n));let{pathname:u="/",search:d="",hash:m="",state:v=null,key:p="default"}=n,y=l.useMemo(()=>{let h=Qo(u,i);return h==null?null:{location:{pathname:h,search:d,hash:m,state:v,key:p},navigationType:r}},[i,u,d,m,v,p,r]);return fr(y!=null,` is not able to match the URL "${u}${d}${m}" because it does not start with the basename, so the won't render anything.`),y==null?null:l.createElement(Sa.Provider,{value:s},l.createElement(vv.Provider,{children:t,value:y}))}var nm="get",rm="application/x-www-form-urlencoded";function gv(e){return e!=null&&typeof e.tagName=="string"}function a3(e){return gv(e)&&e.tagName.toLowerCase()==="button"}function i3(e){return gv(e)&&e.tagName.toLowerCase()==="form"}function l3(e){return gv(e)&&e.tagName.toLowerCase()==="input"}function s3(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function c3(e,t){return e.button===0&&(!t||t==="_self")&&!s3(e)}var Rf=null;function u3(){if(Rf===null)try{new FormData(document.createElement("form"),0),Rf=!1}catch{Rf=!0}return Rf}var d3=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function yh(e){return e!=null&&!d3.has(e)?(fr(!1,`"${e}" is not a valid \`encType\` for \`
\`/\`\` and will default to "${rm}"`),null):e}function f3(e,t){let n,r,o,a,i;if(i3(e)){let s=e.getAttribute("action");r=s?Qo(s,t):null,n=e.getAttribute("method")||nm,o=yh(e.getAttribute("enctype"))||rm,a=new FormData(e)}else if(a3(e)||l3(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a